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.fd080cb6.async.js

663 lines
4.3 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(k,D,i){var y=i("y1pI");function p(S){return y(this.__data__,S)>-1}k.exports=p},"+BJd":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("6MrE"),v=i.n(S)},"+QRC":function(k,D,i){"use strict";var y=i("E9nw"),p={"text/plain":"Text","text/html":"Url",default:"Text"},S="Copy to clipboard: #{key}, Enter";function v(f){var d=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return f.replace(/#{\s*key\s*}/g,d)}function m(f,d){var u,o,n,t,a,e,l=!1;d||(d={}),u=d.debug||!1;try{n=y(),t=document.createRange(),a=document.getSelection(),e=document.createElement("span"),e.textContent=f,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(s){if(s.stopPropagation(),d.format)if(s.preventDefault(),typeof s.clipboardData=="undefined"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var c=p[d.format]||p.default;window.clipboardData.setData(c,f)}else s.clipboardData.clearData(),s.clipboardData.setData(d.format,f);d.onCopy&&(s.preventDefault(),d.onCopy(s.clipboardData))}),document.body.appendChild(e),t.selectNodeContents(e),a.addRange(t);var r=document.execCommand("copy");if(!r)throw new Error("copy command was unsuccessful");l=!0}catch(s){u&&console.error("unable to copy using execCommand: ",s),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(d.format||"text",f),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"),o=v("message"in d?d.message:S),window.prompt(o,f)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(t):a.removeAllRanges()),e&&document.body.removeChild(e),n()}return l}k.exports=m},"+TT/":function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("OELB"),v=S.parsePercent,m=i("7aKB"),f=y.each,d=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function o(A,b,w,x,T){var _=0,E=0;x==null&&(x=Infinity),T==null&&(T=Infinity);var C=0;b.eachChild(function(I,O){var F=I.position,R=I.getBoundingRect(),B=b.childAt(O+1),P=B&&B.getBoundingRect(),X,M;if(A==="horizontal"){var z=R.width+(P?-P.x+R.x:0);X=_+z,X>x||I.newline?(_=0,X=z,E+=C+w,C=R.height):C=Math.max(C,R.height)}else{var W=R.height+(P?-P.y+R.y:0);M=E+W,M>T||I.newline?(_+=C+w,E=0,M=W,C=R.width):C=Math.max(C,R.width)}if(I.newline)return;F[0]=_,F[1]=E,A==="horizontal"?_=X+w:E=M+w})}var n=o,t=y.curry(o,"vertical"),a=y.curry(o,"horizontal");function e(A,b,w){var x=b.width,T=b.height,_=v(A.x,x),E=v(A.y,T),C=v(A.x2,x),I=v(A.y2,T);return(isNaN(_)||isNaN(parseFloat(A.x)))&&(_=0),(isNaN(C)||isNaN(parseFloat(A.x2)))&&(C=x),(isNaN(E)||isNaN(parseFloat(A.y)))&&(E=0),(isNaN(I)||isNaN(parseFloat(A.y2)))&&(I=T),w=m.normalizeCssArray(w||0),{width:Math.max(C-_-w[1]-w[3],0),height:Math.max(I-E-w[0]-w[2],0)}}function l(A,b,w){w=m.normalizeCssArray(w||0);var x=b.width,T=b.height,_=v(A.left,x),E=v(A.top,T),C=v(A.right,x),I=v(A.bottom,T),O=v(A.width,x),F=v(A.height,T),R=w[2]+w[0],B=w[1]+w[3],P=A.aspect;isNaN(O)&&(O=x-C-B-_),isNaN(F)&&(F=T-I-R-E),P!=null&&(isNaN(O)&&isNaN(F)&&(P>x/T?O=x*.8:F=T*.8),isNaN(O)&&(O=P*F),isNaN(F)&&(F=O/P)),isNaN(_)&&(_=x-C-O-B),isNaN(E)&&(E=T-I-F-R);switch(A.left||A.right){case"center":_=x/2-O/2-w[3];break;case"right":_=x-O-B;break}switch(A.top||A.bottom){case"middle":case"center":E=T/2-F/2-w[0];break;case"bottom":E=T-F-R;break}_=_||0,E=E||0,isNaN(O)&&(O=x-B-_-(C||0)),isNaN(F)&&(F=T-R-E-(I||0));var X=new p(_+w[3],E+w[0],O,F);return X.margin=w,X}function r(A,b,w,x,T){var _=!T||!T.hv||T.hv[0],E=!T||!T.hv||T.hv[1],C=T&&T.boundingMode||"all";if(!_&&!E)return;var I;if(C==="raw")I=A.type==="group"?new p(0,0,+b.width||0,+b.height||0):A.getBoundingRect();else if(I=A.getBoundingRect(),A.needLocalTransform()){var O=A.getLocalTransform();I=I.clone(),I.applyTransform(O)}b=l(y.defaults({width:I.width,height:I.height},b),w,x);var F=A.position,R=_?b.x-I.x:0,B=E?b.y-I.y:0;A.attr("position",C==="raw"?[R,B]:[F[0]+R,F[1]+B])}function s(A,b){return A[u[b][0]]!=null||A[u[b][1]]!=null&&A[u[b][2]]!=null}function c(A,b,w){!y.isObject(w)&&(w={});var x=w.ignoreSize;!y.isArray(x)&&(x=[x,x]);var T=E(u[0],0),_=E(u[1],1);O(u[0],A,T),O(u[1],A,_);function E(F,R){var B={},P=0,X={},M=0,z=2;if(f(F,function(V){X[V]=A[V]}),f(F,function(V){C(b,V)&&(B[V]=X[V]=b[V]),I(B,V)&&P++,I(X,V)&&M++}),x[R])return I(b,F[1])?X[F[2]]=null:I(b,F[2])&&(X[F[1]]=null),X;if(M===z||!P)return X;if(P>=z)return B;for(var W=0;W<F.length;W++){var H=F[W];if(!C(B,H)&&C(A,H)){B[H]=A[H];break}}return B}function C(F,R){return F.hasOwnProperty(R)}function I(F,R){return F[R]!=null&&F[R]!=="auto"}function O(F,R,B){f(F,function(P){R[P]=B[P]})}}function h(A){return g({},A)}function g(A,b){return b&&A&&f(d,function(w){b.hasOwnProperty(w)&&(A[w]=b[w])}),A}D.LOCATION_PARAMS=d,D.HV_NAMES=u,D.box=n,D.vbox=t,D.hbox=a,D.getAvailableSize=e,D.getLayoutRect=l,D.positionElement=r,D.sizeCalculable=s,D.mergeLayoutParam=c,D.getLayoutParams=h,D.copyLayoutParams=g},"+Zaj":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("ugBc")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CalendarOutlined";var n=v.forwardRef(o);D.default=n},"+d4F":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("y3Yb"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"+eQT":function(k,D,i){"use strict";var y=i("wd/R"),p=i.n(y),S=i("Kwbf"),v={getNow:function(){return p()()},getWeekDay:function(dr){var Kr=dr.clone().locale("en_US");return Kr.weekday()+Kr.localeData().firstDayOfWeek()},getYear:function(dr){return dr.year()},getMonth:function(dr){return dr.month()},getDate:function(dr){return dr.date()},getHour:function(dr){return dr.hour()},getMinute:function(dr){return dr.minute()},getSecond:function(dr){return dr.second()},addYear:function(dr,Kr){var Br=dr.clone();return Br.add(Kr,"year")},addMonth:function(dr,Kr){var Br=dr.clone();return Br.add(Kr,"month")},addDate:function(dr,Kr){var Br=dr.clone();return Br.add(Kr,"day")},setYear:function(dr,Kr){var Br=dr.clone();return Br.year(Kr)},setMonth:function(dr,Kr){var Br=dr.clone();return Br.month(Kr)},setDate:function(dr,Kr){var Br=dr.clone();return Br.date(Kr)},setHour:function(dr,Kr){var Br=dr.clone();return Br.hour(Kr)},setMinute:function(dr,Kr){var Br=dr.clone();return Br.minute(Kr)},setSecond:function(dr,Kr){var Br=dr.clone();return Br.second(Kr)},isAfter:function(dr,Kr){return dr.isAfter(Kr)},isValidate:function(dr){return dr.isValid()},locale:{getWeekFirstDay:function(dr){var Kr=p()().locale(dr);return Kr.localeData().firstDayOfWeek()},getWeek:function(dr,Kr){var Br=Kr.clone(),Pn=Br.locale(dr);return Pn.week()},getShortWeekDays:function(dr){var Kr=p()().locale(dr);return Kr.localeData().weekdaysMin()},getShortMonths:function(dr){var Kr=p()().locale(dr);return Kr.localeData().monthsShort()},format:function(dr,Kr,Br){var Pn=Kr.clone(),$r=Pn.locale(dr);return $r.format(Br)},parse:function(dr,Kr,Br){for(var Pn=[],$r=0;$r<Br.length;$r+=1){var Mr=Br[$r],Gn=Kr;if(Mr.includes("wo")||Mr.includes("Wo")){Mr=Mr.replace(/wo/g,"w").replace(/Wo/g,"W");var zr=Mr.match(/[-YyMmDdHhSsWwGg]+/g),Nn=Gn.match(/[-\d]+/g);zr&&Nn?(Mr=zr.join(""),Gn=Nn.join("")):Pn.push(Mr.replace(/o/g,""))}var Qn=p()(Gn,Mr,dr,!0);if(Qn.isValid())return Qn}for(var Zn=0;Zn<Pn.length;Zn+=1){var Yn=p()(Kr,Pn[Zn],dr,!1);if(Yn.isValid())return Object(S.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),Yn}return null}}},m=v,f=i("pVnL"),d=i.n(f),u=i("q1tI"),o=i.n(u),n=i("2/Rp");function t(at){return u.createElement(n.a,d()({size:"small",type:"primary"},at))}var a=i("mr32");function e(at){return u.createElement(a.a,d()({color:"blue"},at))}var l=i("lSNA"),r=i.n(l),s=i("lwsE"),c=i.n(s),h=i("W8MJ"),g=i.n(h),A=i("7W2i"),b=i.n(A),w=i("LQ03"),x=i.n(w),T=i("TSYQ"),_=i.n(T),E=i("r/2G"),C=i.n(E),I=i("XzQk"),O=i.n(I),F=i("kbBi"),R=i.n(F),B=i("1OyB"),P=i("vuIU"),X=i("Ji7U"),M=i("LK+K"),z=i("rePB"),W=i("VTBJ"),H=i("ODXe"),V=i("6cGi"),Q=i("U8pU"),G=i("4IlW"),ee=u.createContext({}),q=ee,se={visibility:"hidden"};function re(at){var dr=at.prefixCls,Kr=at.prevIcon,Br=Kr===void 0?"\u2039":Kr,Pn=at.nextIcon,$r=Pn===void 0?"\u203A":Pn,Mr=at.superPrevIcon,Gn=Mr===void 0?"\xAB":Mr,zr=at.superNextIcon,Nn=zr===void 0?"\xBB":zr,Qn=at.onSuperPrev,Zn=at.onSuperNext,Yn=at.onPrev,ui=at.onNext,ai=at.children,hi=u.useContext(q),pi=hi.hideNextBtn,zi=hi.hidePrevBtn;return u.createElement("div",{className:dr},Qn&&u.createElement("button",{type:"button",onClick:Qn,tabIndex:-1,className:"".concat(dr,"-super-prev-btn"),style:zi?se:{}},Gn),Yn&&u.createElement("button",{type:"button",onClick:Yn,tabIndex:-1,className:"".concat(dr,"-prev-btn"),style:zi?se:{}},Br),u.createElement("div",{className:"".concat(dr,"-view")},ai),ui&&u.createElement("button",{type:"button",onClick:ui,tabIndex:-1,className:"".concat(dr,"-next-btn"),style:pi?se:{}},$r),Zn&&u.createElement("button",{type:"button",onClick:Zn,tabIndex:-1,className:"".concat(dr,"-super-next-btn"),style:pi?se:{}},Nn))}var Ae=re;function Te(at){var dr=u.useContext(q),Kr=dr.hideHeader;if(Kr)return null;var Br=at.prefixCls,Pn=at.generateConfig,$r=at.locale,Mr=at.value,Gn=at.format,zr="".concat(Br,"-header");return u.createElement(Ae,{prefixCls:zr},Mr?Pn.locale.format($r.locale,Mr,Gn):"\xA0")}var Re=Te,Ge=i("YrtM"),Ue=i("KQm4"),nt=new Map;function Le(at,dr,Kr){if(nt.get(at)&&cancelAnimationFrame(nt.get(at)),Kr<=0){nt.set(at,requestAnimationFrame(function(){at.scrollTop=dr}));return}var Br=dr-at.scrollTop,Pn=Br/Kr*10;nt.set(at,requestAnimationFrame(function(){at.scrollTop+=Pn,at.scrollTop!==dr&&Le(at,dr,Kr-10)}))}function le(at,dr){var Kr=dr.onLeftRight,Br=dr.onCtrlLeftRight,Pn=dr.onUpDown,$r=dr.onPageUpDown,Mr=dr.onEnter,Gn=at.which,zr=at.ctrlKey,Nn=at.metaKey;switch(Gn){case G.a.LEFT:if(zr||Nn){if(Br)return Br(-1),!0}else if(Kr)return Kr(-1),!0;break;case G.a.RIGHT:if(zr||Nn){if(Br)return Br(1),!0}else if(Kr)return Kr(1),!0;break;case G.a.UP:if(Pn)return Pn(-1),!0;break;case G.a.DOWN:if(Pn)return Pn(1),!0;break;case G.a.PAGE_UP:if($r)return $r(-1),!0;break;case G.a.PAGE_DOWN:if($r)return $r(1),!0;break;case G.a.ENTER:if(Mr)return Mr(),!0;break}return!1}function Xe(at,dr,Kr,Br){var Pn=at;if(!Pn)switch(dr){case"time":Pn=Br?"hh:mm:ss a":"HH:mm:ss";break;case"week":Pn="gggg-wo";break;case"month":Pn="YYYY-MM";break;case"quarter":Pn="YYYY-[Q]Q";break;case"year":Pn="YYYY";break;default:Pn=Kr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Pn}function pe(at,dr){var Kr=at==="time"?8:10;return Math.max(Kr,dr.length)+2}var Z=null,Y=new Set;function ne(at){return!Z&&typeof window!="undefined"&&window.addEventListener&&(Z=function(Kr){Object(Ue.a)(Y).forEach(function(Br){Br(Kr)})},window.addEventListener("mousedown",Z)),Y.add(at),function(){Y.delete(at),Y.size===0&&(window.removeEventListener("mousedown",Z),Z=null)}}var ce=function(dr){return dr==="month"||dr==="date"?"year":dr},ye=function(dr){return dr==="date"?"month":dr},Ee=function(dr){return dr==="month"||dr==="date"?"quarter":dr},Ce=function(dr){return dr==="date"?"week":dr},ue={year:ce,month:ye,quarter:Ee,week:Ce,time:null,date:null};function ge(at,dr){return at.some(function(Kr){return Kr&&Kr.contains(dr)})}function Oe(at){var dr=at.prefixCls,Kr=at.units,Br=at.onSelect,Pn=at.value,$r=at.active,Mr=at.hideDisabledOptions,Gn="".concat(dr,"-cell"),zr=u.useContext(q),Nn=zr.open,Qn=u.useRef(null),Zn=u.useRef(new Map);return u.useLayoutEffect(function(){var Yn=Zn.current.get(Pn);Yn&&Nn!==!1&&Le(Qn.current,Yn.offsetTop,120)},[Pn]),u.useLayoutEffect(function(){if(Nn){var Yn=Zn.current.get(Pn);Yn&&Le(Qn.current,Yn.offsetTop,0)}},[Nn]),u.createElement("ul",{className:_()("".concat(dr,"-column"),Object(z.a)({},"".concat(dr,"-column-active"),$r)),ref:Qn,style:{position:"relative"}},Kr.map(function(Yn){var ui;return Mr&&Yn.disabled?null:u.createElement("li",{key:Yn.value,ref:function(hi){Zn.current.set(Yn.value,hi)},className:_()(Gn,(ui={},Object(z.a)(ui,"".concat(Gn,"-disabled"),Yn.disabled),Object(z.a)(ui,"".concat(Gn,"-selected"),Pn===Yn.value),ui)),onClick:function(){if(Yn.disabled)return;Br(Yn.value)}},u.createElement("div",{className:"".concat(Gn,"-inner")},Yn.label))}))}var Je=Oe;function lt(at,dr){for(var Kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Br=String(at);Br.length<dr;)Br="".concat(Kr).concat(at);return Br}var tt=function(){for(var dr=arguments.length,Kr=new Array(dr),Br=0;Br<dr;Br++)Kr[Br]=arguments[Br];return Kr};function ke(at){return at==null?[]:Array.isArray(at)?at:[at]}function st(at){var dr={};return Object.keys(at).forEach(function(Kr){(Kr.substr(0,5)==="data-"||Kr.substr(0,5)==="aria-"||Kr==="role"||Kr==="name")&&Kr.substr(0,7)!=="data-__"&&(dr[Kr]=at[Kr])}),dr}function Ve(at,dr){return at?at[dr]:null}function Ot(at,dr,Kr){var Br=[Ve(at,0),Ve(at,1)];return Br[Kr]=typeof dr=="function"?dr(Br[Kr]):dr,!Br[0]&&!Br[1]?null:Br}function Ut(at,dr,Kr,Br,Pn){var $r=at.setHour(dr,Kr);return $r=at.setMinute($r,Br),$r=at.setSecond($r,Pn),$r}function ir(at,dr,Kr,Br,Pn,$r){var Mr=Math.floor(at/Br)*Br;if(Mr<at)return[Mr,60-Pn,60-$r];var Gn=Math.floor(dr/Pn)*Pn;if(Gn<dr)return[Mr,Gn,60-$r];var zr=Math.floor(Kr/$r)*$r;return[Mr,Gn,zr]}function lr(at,dr){if(at.length!==dr.length)return!0;for(var Kr=0;Kr<at.length;Kr+=1)if(at[Kr].disabled!==dr[Kr].disabled)return!0;return!1}function Sr(at,dr,Kr,Br){for(var Pn=[],$r=at;$r<=dr;$r+=Kr)Pn.push({label:lt($r,2),value:$r,disabled:(Br||[]).includes($r)});return Pn}function mt(at){var dr=at.generateConfig,Kr=at.prefixCls,Br=at.operationRef,Pn=at.activeColumnIndex,$r=at.value,Mr=at.showHour,Gn=at.showMinute,zr=at.showSecond,Nn=at.use12Hours,Qn=at.hourStep,Zn=Qn===void 0?1:Qn,Yn=at.minuteStep,ui=Yn===void 0?1:Yn,ai=at.secondStep,hi=ai===void 0?1:ai,pi=at.disabledHours,zi=at.disabledMinutes,Ci=at.disabledSeconds,na=at.hideDisabledOptions,La=at.onSelect,pa=[],ca="".concat(Kr,"-content"),wa="".concat(Kr,"-time-panel"),Ca,No=$r?dr.getHour($r):-1,fo=$r?dr.getMinute($r):-1,ea=$r?dr.getSecond($r):-1,ua=function(Xa,Wa,Jo,hs){var Eo=$r||dr.getNow(),Ws=Math.max(0,Wa),_o=Math.max(0,Jo),Mo=Math.max(0,hs);return Eo=Ut(dr,Eo,!Nn||!Xa?Ws:Ws+12,_o,Mo),Eo},da=Sr(0,23,Zn,pi&&pi()),Ra=Object(Ge.a)(function(){return da},da,lr);Nn&&(Ca=No>=12,No%=12);var Za=u.useMemo(function(){if(!Nn)return[!1,!1];var to=[!0,!0];return Ra.forEach(function(Xa){var Wa=Xa.disabled,Jo=Xa.value;if(Wa)return;Jo>=12?to[1]=!1:to[0]=!1}),to},[Nn,Ra]),Qa=Object(H.a)(Za,2),oo=Qa[0],bo=Qa[1],es=u.useMemo(function(){return Nn?Ra.filter(Ca?function(to){return to.value>=12}:function(to){return to.value<12}).map(function(to){var Xa=to.value%12,Wa=Xa===0?"12":lt(Xa,2);return Object(W.a)(Object(W.a)({},to),{},{label:Wa,value:Xa})}):Ra},[Nn,Ra]),ss=Sr(0,59,ui,zi&&zi(No)),Rs=Sr(0,59,hi,Ci&&Ci(No,fo));Br.current={onUpDown:function(Xa){var Wa=pa[Pn];if(Wa)for(var Jo=Wa.units.findIndex(function(_o){return _o.value===Wa.value}),hs=Wa.units.length,Eo=1;Eo<hs;Eo+=1){var Ws=Wa.units[(Jo+Xa*Eo+hs)%hs];if(Ws.disabled!==!0){Wa.onSelect(Ws.value);break}}}};function Ko(to,Xa,Wa,Jo,hs){to!==!1&&pa.push({node:u.cloneElement(Xa,{prefixCls:wa,value:Wa,active:Pn===pa.length,onSelect:hs,units:Jo,hideDisabledOptions:na}),onSelect:hs,value:Wa,units:Jo})}Ko(Mr,u.createElement(Je,{key:"hour"}),No,es,function(to){La(ua(Ca,to,fo,ea),"mouse")}),Ko(Gn,u.createElement(Je,{key:"minute"}),fo,ss,function(to){La(ua(Ca,No,to,ea),"mouse")}),Ko(zr,u.createElement(Je,{key:"second"}),ea,Rs,function(to){La(ua(Ca,No,fo,to),"mouse")});var qo=-1;return typeof Ca=="boolean"&&(qo=Ca?1:0),Ko(Nn===!0,u.createElement(Je,{key:"12hours"}),qo,[{label:"AM",value:0,disabled:oo},{label:"PM",value:1,disabled:bo}],function(to){La(ua(!!to,No,fo,ea),"mouse")}),u.createElement("div",{className:ca},pa.map(function(to){var Xa=to.node;return Xa}))}var or=mt,et=function(dr){return dr.filter(function(Kr){return Kr!==!1}).length};function ur(at){var dr=at.generateConfig,Kr=at.format,Br=Kr===void 0?"HH:mm:ss":Kr,Pn=at.prefixCls,$r=at.active,Mr=at.operationRef,Gn=at.showHour,zr=at.showMinute,Nn=at.showSecond,Qn=at.use12Hours,Zn=Qn===void 0?!1:Qn,Yn=at.onSelect,ui=at.value,ai="".concat(Pn,"-time-panel"),hi=u.useRef(),pi=u.useState(-1),zi=Object(H.a)(pi,2),Ci=zi[0],na=zi[1],La=et([Gn,zr,Nn,Zn]);return Mr.current={onKeyDown:function(ca){return le(ca,{onLeftRight:function(Ca){na((Ci+Ca+La)%La)},onUpDown:function(Ca){Ci===-1?na(0):hi.current&&hi.current.onUpDown(Ca)},onEnter:function(){Yn(ui||dr.getNow(),"key"),na(-1)}})},onBlur:function(){na(-1)}},u.createElement("div",{className:_()(ai,Object(z.a)({},"".concat(ai,"-active"),$r))},u.createElement(Re,Object.assign({},at,{format:Br,prefixCls:Pn})),u.createElement(or,Object.assign({},at,{prefixCls:Pn,activeColumnIndex:Ci,operationRef:hi})))}var qr=ur,Fe=7;function $t(at,dr){return!at&&!dr?!0:!at||!dr?!1:void 0}function Lr(at,dr,Kr){var Br=$t(dr,Kr);if(typeof Br=="boolean")return Br;var Pn=Math.floor(at.getYear(dr)/10),$r=Math.floor(at.getYear(Kr)/10);return Pn===$r}function pt(at,dr,Kr){var Br=$t(dr,Kr);return typeof Br=="boolean"?Br:at.getYear(dr)===at.getYear(Kr)}function qt(at,dr){var Kr=Math.floor(at.getMonth(dr)/3);return Kr+1}function vr(at,dr,Kr){var Br=$t(dr,Kr);return typeof Br=="boolean"?Br:pt(at,dr,Kr)&&qt(at,dr)===qt(at,Kr)}function pn(at,dr,Kr){var Br=$t(dr,Kr);return typeof Br=="boolean"?Br:pt(at,dr,Kr)&&at.getMonth(dr)===at.getMonth(Kr)}function fr(at,dr,Kr){var Br=$t(dr,Kr);return typeof Br=="boolean"?Br:at.getYear(dr)===at.getYear(Kr)&&at.getMonth(dr)===at.getMonth(Kr)&&at.getDate(dr)===at.getDate(Kr)}function gr(at,dr,Kr){var Br=$t(dr,Kr);return typeof Br=="boolean"?Br:at.getHour(dr)===at.getHour(Kr)&&at.getMinute(dr)===at.getMinute(Kr)&&at.getSecond(dr)===at.getSecond(Kr)}function dn(at,dr,Kr,Br){var Pn=$t(Kr,Br);return typeof Pn=="boolean"?Pn:at.locale.getWeek(dr,Kr)===at.locale.getWeek(dr,Br)}function Qt(at,dr,Kr){return fr(at,dr,Kr)&&gr(at,dr,Kr)}function sr(at,dr,Kr,Br){return!dr||!Kr||!Br?!1:!fr(at,dr,Br)&&!fr(at,Kr,Br)&&at.isAfter(Br,dr)&&at.isAfter(Kr,Br)}function Qr(at,dr,Kr){var Br=dr.locale.getWeekFirstDay(at),Pn=dr.setDate(Kr,1),$r=dr.getWeekDay(Pn),Mr=dr.addDate(Pn,Br-$r);return dr.getMonth(Mr)===dr.getMonth(Kr)&&dr.getDate(Mr)>1&&(Mr=dr.addDate(Mr,-7)),Mr}function Cn(at,dr,Kr){var Br=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(dr){case"year":return Kr.addYear(at,Br*10);case"quarter":case"month":return Kr.addYear(at,Br);default:return Kr.addMonth(at,Br)}}var Fn=u.createContext({}),ti=Fn;function ki(at){var dr=at.cellPrefixCls,Kr=at.generateConfig,Br=at.rangedValue,Pn=at.hoverRangedValue,$r=at.isInView,Mr=at.isSameCell,Gn=at.offsetCell,zr=at.today,Nn=at.value;function Qn(Zn){var Yn,ui=Gn(Zn,-1),ai=Gn(Zn,1),hi=Ve(Br,0),pi=Ve(Br,1),zi=Ve(Pn,0),Ci=Ve(Pn,1),na=sr(Kr,zi,Ci,Zn);function La(fo){return Mr(hi,fo)}function pa(fo){return Mr(pi,fo)}var ca=Mr(zi,Zn),wa=Mr(Ci,Zn),Ca=(na||wa)&&(!$r(ui)||pa(ui)),No=(na||ca)&&(!$r(ai)||La(ai));return Yn={},Object(z.a)(Yn,"".concat(dr,"-in-view"),$r(Zn)),Object(z.a)(Yn,"".concat(dr,"-in-range"),sr(Kr,hi,pi,Zn)),Object(z.a)(Yn,"".concat(dr,"-range-start"),La(Zn)),Object(z.a)(Yn,"".concat(dr,"-range-end"),pa(Zn)),Object(z.a)(Yn,"".concat(dr,"-range-start-single"),La(Zn)&&!pi),Object(z.a)(Yn,"".concat(dr,"-range-end-single"),pa(Zn)&&!hi),Object(z.a)(Yn,"".concat(dr,"-range-start-near-hover"),La(Zn)&&(Mr(ui,zi)||sr(Kr,zi,Ci,ui))),Object(z.a)(Yn,"".concat(dr,"-range-end-near-hover"),pa(Zn)&&(Mr(ai,Ci)||sr(Kr,zi,Ci,ai))),Object(z.a)(Yn,"".concat(dr,"-range-hover"),na),Object(z.a)(Yn,"".concat(dr,"-range-hover-start"),ca),Object(z.a)(Yn,"".concat(dr,"-range-hover-end"),wa),Object(z.a)(Yn,"".concat(dr,"-range-hover-edge-start"),Ca),Object(z.a)(Yn,"".concat(dr,"-range-hover-edge-end"),No),Object(z.a)(Yn,"".concat(dr,"-range-hover-edge-start-near-range"),Ca&&Mr(ui,pi)),Object(z.a)(Yn,"".concat(dr,"-range-hover-edge-end-near-range"),No&&Mr(ai,hi)),Object(z.a)(Yn,"".concat(dr,"-today"),Mr(zr,Zn)),Object(z.a)(Yn,"".concat(dr,"-selected"),Mr(Nn,Zn)),Yn}return Qn}function Dn(at){for(var dr=at.prefixCls,Kr=at.disabledDate,Br=at.onSelect,Pn=at.rowNum,$r=at.colNum,Mr=at.prefixColumn,Gn=at.rowClassName,zr=at.baseDate,Nn=at.getCellClassName,Qn=at.getCellText,Zn=at.getCellNode,Yn=at.getCellDate,ui=at.titleCell,ai=at.headerCells,hi=u.useContext(q),pi=hi.onDateMouseEnter,zi=hi.onDateMouseLeave,Ci="".concat(dr,"-cell"),na=[],La=0;La<Pn;La+=1){for(var pa=[],ca=void 0,wa=function(fo){var ea=La*$r+fo,ua=Yn(zr,ea),da=Kr&&Kr(ua);fo===0&&(ca=ua,Mr&&pa.push(Mr(ca))),pa.push(u.createElement("td",{key:fo,title:ui&&ui(ua),className:_()(Ci,Object(W.a)(Object(z.a)({},"".concat(Ci,"-disabled"),da),Nn(ua))),onClick:function(){da||Br(ua)},onMouseEnter:function(){!da&&pi&&pi(ua)},onMouseLeave:function(){!da&&zi&&zi(ua)}},Zn?Zn(ua):u.createElement("div",{className:"".concat(Ci,"-inner")},Qn(ua))))},Ca=0;Ca<$r;Ca+=1)wa(Ca);na.push(u.createElement("tr",{key:La,className:Gn&&Gn(ca)},pa))}return u.createElement("div",{className:"".concat(dr,"-body")},u.createElement("table",{className:"".concat(dr,"-content")},ai&&u.createElement("thead",null,u.createElement("tr",null,ai)),u.createElement("tbody",null,na)))}function Bn(at){var dr=at.prefixCls,Kr=at.generateConfig,Br=at.prefixColumn,Pn=at.locale,$r=at.rowCount,Mr=at.viewDate,Gn=at.value,zr=at.dateRender,Nn=u.useContext(ti),Qn=Nn.rangedValue,Zn=Nn.hoverRangedValue,Yn=Qr(Pn.locale,Kr,Mr),ui="".concat(dr,"-cell"),ai=Kr.locale.getWeekFirstDay(Pn.locale),hi=Kr.getNow(),pi=[],zi=Pn.shortWeekDays||(Kr.locale.getShortWeekDays?Kr.locale.getShortWeekDays(Pn.locale):[]);Br&&pi.push(u.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ci=0;Ci<Fe;Ci+=1)pi.push(u.createElement("th",{key:Ci},zi[(Ci+ai)%Fe]));var na=ki({cellPrefixCls:ui,today:hi,value:Gn,generateConfig:Kr,rangedValue:Br?null:Qn,hoverRangedValue:Br?null:Zn,isSameCell:function(ca,wa){return fr(Kr,ca,wa)},isInView:function(ca){return pn(Kr,ca,Mr)},offsetCell:function(ca,wa){return Kr.addDate(ca,wa)}}),La=zr?function(pa){return zr(pa,hi)}:void 0;return u.createElement(Dn,Object.assign({},at,{rowNum:$r,colNum:Fe,baseDate:Yn,getCellNode:La,getCellText:Kr.getDate,getCellClassName:na,getCellDate:Kr.addDate,titleCell:function(ca){return Kr.locale.format(Pn.locale,ca,"YYYY-MM-DD")},headerCells:pi}))}var Ft=Bn;function vt(at){var dr=at.prefixCls,Kr=at.generateConfig,Br=at.locale,Pn=at.viewDate,$r=at.onNextMonth,Mr=at.onPrevMonth,Gn=at.onNextYear,zr=at.onPrevYear,Nn=at.onYearClick,Qn=at.onMonthClick,Zn=u.useContext(q),Yn=Zn.hideHeader;if(Yn)return null;var ui="".concat(dr,"-header"),ai=Br.shortMonths||(Kr.locale.getShortMonths?Kr.locale.getShortMonths(Br.locale):[]),hi=Kr.getMonth(Pn),pi=u.createElement("button",{type:"button",key:"year",onClick:Nn,tabIndex:-1,className:"".concat(dr,"-year-btn")},Kr.locale.format(Br.locale,Pn,Br.yearFormat)),zi=u.createElement("button",{type:"button",key:"month",onClick:Qn,tabIndex:-1,className:"".concat(dr,"-month-btn")},Br.monthFormat?Kr.locale.format(Br.locale,Pn,Br.monthFormat):ai[hi]),Ci=Br.monthBeforeYear?[zi,pi]:[pi,zi];return u.createElement(Ae,Object.assign({},at,{prefixCls:ui,onSuperPrev:zr,onPrev:Mr,onNext:$r,onSuperNext:Gn}),Ci)}var _e=vt,Ne=6;function Ie(at){var dr=at.prefixCls,Kr=at.panelName,Br=Kr===void 0?"date":Kr,Pn=at.keyboardConfig,$r=at.active,Mr=at.operationRef,Gn=at.generateConfig,zr=at.value,Nn=at.viewDate,Qn=at.onViewDateChange,Zn=at.onPanelChange,Yn=at.onSelect,ui="".concat(dr,"-").concat(Br,"-panel");Mr.current={onKeyDown:function(zi){return le(zi,Object(W.a)({onLeftRight:function(na){Yn(Gn.addDate(zr||Nn,na),"key")},onCtrlLeftRight:function(na){Yn(Gn.addYear(zr||Nn,na),"key")},onUpDown:function(na){Yn(Gn.addDate(zr||Nn,na*Fe),"key")},onPageUpDown:function(na){Yn(Gn.addMonth(zr||Nn,na),"key")}},Pn))}};var ai=function(zi){var Ci=Gn.addYear(Nn,zi);Qn(Ci),Zn(null,Ci)},hi=function(zi){var Ci=Gn.addMonth(Nn,zi);Qn(Ci),Zn(null,Ci)};return u.createElement("div",{className:_()(ui,Object(z.a)({},"".concat(ui,"-active"),$r))},u.createElement(_e,Object.assign({},at,{prefixCls:dr,value:zr,viewDate:Nn,onPrevYear:function(){ai(-1)},onNextYear:function(){ai(1)},onPrevMonth:function(){hi(-1)},onNextMonth:function(){hi(1)},onMonthClick:function(){Zn("month",Nn)},onYearClick:function(){Zn("year",Nn)}})),u.createElement(Ft,Object.assign({},at,{onSelect:function(zi){return Yn(zi,"mouse")},prefixCls:dr,value:zr,viewDate:Nn,rowCount:Ne})))}var Ze=Ie;function ct(at,dr,Kr){if(!Kr)return dr;var Br=dr;return Br=at.setHour(Br,at.getHour(Kr)),Br=at.setMinute(Br,at.getMinute(Kr)),Br=at.setSecond(Br,at.getSecond(Kr)),Br}var gt=tt("date","time");function kt(at){var dr=at.prefixCls,Kr=at.operationRef,Br=at.generateConfig,Pn=at.value,$r=at.defaultValue,Mr=at.disabledTime,Gn=at.showTime,zr=at.onSelect,Nn="".concat(dr,"-datetime-panel"),Qn=u.useState(null),Zn=Object(H.a)(Qn,2),Yn=Zn[0],ui=Zn[1],ai=u.useRef({}),hi=u.useRef({}),pi=Object(Q.a)(Gn)==="object"?Object(W.a)({},Gn):{};function zi(pa){var ca=gt.indexOf(Yn)+pa,wa=gt[ca]||null;return wa}var Ci=function(ca){hi.current.onBlur&&hi.current.onBlur(ca),ui(null)};Kr.current={onKeyDown:function(ca){if(ca.which===G.a.TAB){var wa=zi(ca.shiftKey?-1:1);return ui(wa),wa&&ca.preventDefault(),!0}if(Yn){var Ca=Yn==="date"?ai:hi;return Ca.current&&Ca.current.onKeyDown&&Ca.current.onKeyDown(ca),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(ca.which)?(ui("date"),!0):!1},onBlur:Ci,onClose:Ci};var na=function(ca,wa){var Ca=ca;wa==="date"&&!Pn&&pi.defaultValue?(Ca=Br.setHour(Ca,Br.getHour(pi.defaultValue)),Ca=Br.setMinute(Ca,Br.getMinute(pi.defaultValue)),Ca=Br.setSecond(Ca,Br.getSecond(pi.defaultValue))):wa==="time"&&!Pn&&$r&&(Ca=Br.setYear(Ca,Br.getYear($r)),Ca=Br.setMonth(Ca,Br.getMonth($r)),Ca=Br.setDate(Ca,Br.getDate($r))),zr&&zr(Ca,"mouse")},La=Mr?Mr(Pn||null):{};return u.createElement("div",{className:_()(Nn,Object(z.a)({},"".concat(Nn,"-active"),Yn))},u.createElement(Ze,Object.assign({},at,{operationRef:ai,active:Yn==="date",onSelect:function(ca){na(ct(Br,ca,Gn&&Object(Q.a)(Gn)==="object"?Gn.defaultValue:null),"date")}})),u.createElement(qr,Object.assign({},at,{format:void 0},pi,La,{defaultValue:void 0,operationRef:hi,active:Yn==="time",onSelect:function(ca){na(ca,"time")}})))}var xr=kt;function Hr(at){var dr=at.prefixCls,Kr=at.generateConfig,Br=at.locale,Pn=at.value,$r="".concat(dr,"-cell"),Mr=function(Qn){return u.createElement("td",{key:"week",className:_()($r,"".concat($r,"-week"))},Kr.locale.getWeek(Br.locale,Qn))},Gn="".concat(dr,"-week-panel-row"),zr=function(Qn){return _()(Gn,Object(z.a)({},"".concat(Gn,"-selected"),dn(Kr,Br.locale,Pn,Qn)))};return u.createElement(Ze,Object.assign({},at,{panelName:"week",prefixColumn:Mr,rowClassName:zr,keyboardConfig:{onLeftRight:null}}))}var on=Hr;function Nt(at){var dr=at.prefixCls,Kr=at.generateConfig,Br=at.locale,Pn=at.viewDate,$r=at.onNextYear,Mr=at.onPrevYear,Gn=at.onYearClick,zr=u.useContext(q),Nn=zr.hideHeader;if(Nn)return null;var Qn="".concat(dr,"-header");return u.createElement(Ae,Object.assign({},at,{prefixCls:Qn,onSuperPrev:Mr,onSuperNext:$r}),u.createElement("button",{type:"button",onClick:Gn,className:"".concat(dr,"-year-btn")},Kr.locale.format(Br.locale,Pn,Br.yearFormat)))}var ot=Nt,dt=3,Yt=4;function Pt(at){var dr=at.prefixCls,Kr=at.locale,Br=at.value,Pn=at.viewDate,$r=at.generateConfig,Mr=at.monthCellRender,Gn=u.useContext(ti),zr=Gn.rangedValue,Nn=Gn.hoverRangedValue,Qn="".concat(dr,"-cell"),Zn=ki({cellPrefixCls:Qn,value:Br,generateConfig:$r,rangedValue:zr,hoverRangedValue:Nn,isSameCell:function(pi,zi){return pn($r,pi,zi)},isInView:function(){return!0},offsetCell:function(pi,zi){return $r.addMonth(pi,zi)}}),Yn=Kr.shortMonths||($r.locale.getShortMonths?$r.locale.getShortMonths(Kr.locale):[]),ui=$r.setMonth(Pn,0),ai=Mr?function(hi){return Mr(hi,Kr)}:void 0;return u.createElement(Dn,Object.assign({},at,{rowNum:Yt,colNum:dt,baseDate:ui,getCellNode:ai,getCellText:function(pi){return Kr.monthFormat?$r.locale.format(Kr.locale,pi,Kr.monthFormat):Yn[$r.getMonth(pi)]},getCellClassName:Zn,getCellDate:$r.addMonth,titleCell:function(pi){return $r.locale.format(Kr.locale,pi,"YYYY-MM")}}))}var Et=Pt;function Bt(at){var dr=at.prefixCls,Kr=at.operationRef,Br=at.onViewDateChange,Pn=at.generateConfig,$r=at.value,Mr=at.viewDate,Gn=at.onPanelChange,zr=at.onSelect,Nn="".concat(dr,"-month-panel");Kr.current={onKeyDown:function(Yn){return le(Yn,{onLeftRight:function(ai){zr(Pn.addMonth($r||Mr,ai),"key")},onCtrlLeftRight:function(ai){zr(Pn.addYear($r||Mr,ai),"key")},onUpDown:function(ai){zr(Pn.addMonth($r||Mr,ai*dt),"key")},onEnter:function(){Gn("date",$r||Mr)}})}};var Qn=function(Yn){var ui=Pn.addYear(Mr,Yn);Br(ui),Gn(null,ui)};return u.createElement("div",{className:Nn},u.createElement(ot,Object.assign({},at,{prefixCls:dr,onPrevYear:function(){Qn(-1)},onNextYear:function(){Qn(1)},onYearClick:function(){Gn("year",Mr)}})),u.createElement(Et,Object.assign({},at,{prefixCls:dr,onSelect:function(Yn){zr(Yn,"mouse"),Gn("date",Yn)}})))}var wt=Bt;function Mt(at){var dr=at.prefixCls,Kr=at.generateConfig,Br=at.locale,Pn=at.viewDate,$r=at.onNextYear,Mr=at.onPrevYear,Gn=at.onYearClick,zr=u.useContext(q),Nn=zr.hideHeader;if(Nn)return null;var Qn="".concat(dr,"-header");return u.createElement(Ae,Object.assign({},at,{prefixCls:Qn,onSuperPrev:Mr,onSuperNext:$r}),u.createElement("button",{type:"button",onClick:Gn,className:"".concat(dr,"-year-btn")},Kr.locale.format(Br.locale,Pn,Br.yearFormat)))}var Nr=Mt,Tr=4,yr=1;function en(at){var dr=at.prefixCls,Kr=at.locale,Br=at.value,Pn=at.viewDate,$r=at.generateConfig,Mr=u.useContext(ti),Gn=Mr.rangedValue,zr=Mr.hoverRangedValue,Nn="".concat(dr,"-cell"),Qn=ki({cellPrefixCls:Nn,value:Br,generateConfig:$r,rangedValue:Gn,hoverRangedValue:zr,isSameCell:function(ui,ai){return vr($r,ui,ai)},isInView:function(){return!0},offsetCell:function(ui,ai){return $r.addMonth(ui,ai*3)}}),Zn=$r.setDate($r.setMonth(Pn,0),1);return u.createElement(Dn,Object.assign({},at,{rowNum:yr,colNum:Tr,baseDate:Zn,getCellText:function(ui){return $r.locale.format(Kr.locale,ui,Kr.quarterFormat||"[Q]Q")},getCellClassName:Qn,getCellDate:function(ui,ai){return $r.addMonth(ui,ai*3)},titleCell:function(ui){return $r.locale.format(Kr.locale,ui,"YYYY-[Q]Q")}}))}var sn=en;function Vn(at){var dr=at.prefixCls,Kr=at.operationRef,Br=at.onViewDateChange,Pn=at.generateConfig,$r=at.value,Mr=at.viewDate,Gn=at.onPanelChange,zr=at.onSelect,Nn="".concat(dr,"-quarter-panel");Kr.current={onKeyDown:function(Yn){return le(Yn,{onLeftRight:function(ai){zr(Pn.addMonth($r||Mr,ai*3),"key")},onCtrlLeftRight:function(ai){zr(Pn.addYear($r||Mr,ai),"key")},onUpDown:function(ai){zr(Pn.addYear($r||Mr,ai),"key")}})}};var Qn=function(Yn){var ui=Pn.addYear(Mr,Yn);Br(ui),Gn(null,ui)};return u.createElement("div",{className:Nn},u.createElement(Nr,Object.assign({},at,{prefixCls:dr,onPrevYear:function(){Qn(-1)},onNextYear:function(){Qn(1)},onYearClick:function(){Gn("year",Mr)}})),u.createElement(sn,Object.assign({},at,{prefixCls:dr,onSelect:function(Yn){zr(Yn,"mouse")}})))}var jn=Vn;function ri(at){var dr=at.prefixCls,Kr=at.generateConfig,Br=at.viewDate,Pn=at.onPrevDecade,$r=at.onNextDecade,Mr=at.onDecadeClick,Gn=u.useContext(q),zr=Gn.hideHeader;if(zr)return null;var Nn="".concat(dr,"-header"),Qn=Kr.getYear(Br),Zn=Math.floor(Qn/Pe)*Pe,Yn=Zn+Pe-1;return u.createElement(Ae,Object.assign({},at,{prefixCls:Nn,onSuperPrev:Pn,onSuperNext:$r}),u.createElement("button",{type:"button",onClick:Mr,className:"".concat(dr,"-decade-btn")},Zn,"-",Yn))}var ci=ri,gi=3,Ni=4;function Qe(at){var dr=at.prefixCls,Kr=at.value,Br=at.viewDate,Pn=at.locale,$r=at.generateConfig,Mr=u.useContext(ti),Gn=Mr.rangedValue,zr=Mr.hoverRangedValue,Nn="".concat(dr,"-cell"),Qn=$r.getYear(Br),Zn=Math.floor(Qn/Pe)*Pe,Yn=Zn+Pe-1,ui=$r.setYear(Br,Zn-Math.ceil((gi*Ni-Pe)/2)),ai=function(zi){var Ci=$r.getYear(zi);return Zn<=Ci&&Ci<=Yn},hi=ki({cellPrefixCls:Nn,value:Kr,generateConfig:$r,rangedValue:Gn,hoverRangedValue:zr,isSameCell:function(zi,Ci){return pt($r,zi,Ci)},isInView:ai,offsetCell:function(zi,Ci){return $r.addYear(zi,Ci)}});return u.createElement(Dn,Object.assign({},at,{rowNum:Ni,colNum:gi,baseDate:ui,getCellText:$r.getYear,getCellClassName:hi,getCellDate:$r.addYear,titleCell:function(zi){return $r.locale.format(Pn.locale,zi,"YYYY")}}))}var Se=Qe,Pe=10;function He(at){var dr=at.prefixCls,Kr=at.operationRef,Br=at.onViewDateChange,Pn=at.generateConfig,$r=at.value,Mr=at.viewDate,Gn=at.sourceMode,zr=at.onSelect,Nn=at.onPanelChange,Qn="".concat(dr,"-year-panel");Kr.current={onKeyDown:function(ui){return le(ui,{onLeftRight:function(hi){zr(Pn.addYear($r||Mr,hi),"key")},onCtrlLeftRight:function(hi){zr(Pn.addYear($r||Mr,hi*Pe),"key")},onUpDown:function(hi){zr(Pn.addYear($r||Mr,hi*gi),"key")},onEnter:function(){Nn(Gn==="date"?"date":"month",$r||Mr)}})}};var Zn=function(ui){var ai=Pn.addYear(Mr,ui*10);Br(ai),Nn(null,ai)};return u.createElement("div",{className:Qn},u.createElement(ci,Object.assign({},at,{prefixCls:dr,onPrevDecade:function(){Zn(-1)},onNextDecade:function(){Zn(1)},onDecadeClick:function(){Nn("decade",Mr)}})),u.createElement(Se,Object.assign({},at,{prefixCls:dr,onSelect:function(ui){Nn(Gn==="date"?"date":"month",ui),zr(ui,"mouse")}})))}var Ye=He;function ze(at){var dr=at.prefixCls,Kr=at.generateConfig,Br=at.viewDate,Pn=at.onPrevDecades,$r=at.onNextDecades,Mr=u.useContext(q),Gn=Mr.hideHeader;if(Gn)return null;var zr="".concat(dr,"-header"),Nn=Kr.getYear(Br),Qn=Math.floor(Nn/tn)*tn,Zn=Qn+tn-1;return u.createElement(Ae,Object.assign({},at,{prefixCls:zr,onSuperPrev:Pn,onSuperNext:$r}),Qn,"-",Zn)}var $e=ze,St=3,ft=4;function Ht(at){var dr=Fr-1,Kr=at.prefixCls,Br=at.viewDate,Pn=at.generateConfig,$r=at.disabledDate,Mr="".concat(Kr,"-cell"),Gn=Pn.getYear(Br),zr=Math.floor(Gn/Fr)*Fr,Nn=Math.floor(Gn/tn)*tn,Qn=Nn+tn-1,Zn=Pn.setYear(Br,Nn-Math.ceil((St*ft*Fr-tn)/2)),Yn=function(ai){var hi,pi=$r&&$r(ai),zi=Pn.getYear(ai),Ci=zi+dr;return hi={},Object(z.a)(hi,"".concat(Mr,"-disabled"),pi),Object(z.a)(hi,"".concat(Mr,"-in-view"),Nn<=zi&&Ci<=Qn),Object(z.a)(hi,"".concat(Mr,"-selected"),zi===zr),hi};return u.createElement(Dn,Object.assign({},at,{rowNum:ft,colNum:St,baseDate:Zn,getCellText:function(ai){var hi=Pn.getYear(ai);return"".concat(hi,"-").concat(hi+dr)},getCellClassName:Yn,getCellDate:function(ai,hi){return Pn.addYear(ai,hi*Fr)}}))}var Er=Ht,Fr=10,tn=Fr*10;function Zt(at){var dr=at.prefixCls,Kr=at.onViewDateChange,Br=at.generateConfig,Pn=at.viewDate,$r=at.operationRef,Mr=at.onSelect,Gn=at.onPanelChange,zr="".concat(dr,"-decade-panel");$r.current={onKeyDown:function(Yn){return le(Yn,{onLeftRight:function(ai){Mr(Br.addYear(Pn,ai*Fr),"key")},onCtrlLeftRight:function(ai){Mr(Br.addYear(Pn,ai*tn),"key")},onUpDown:function(ai){Mr(Br.addYear(Pn,ai*Fr*St),"key")},onEnter:function(){Gn("year",Pn)}})}};var Nn=function(Yn){var ui=Br.addYear(Pn,Yn*tn);Kr(ui),Gn(null,ui)},Qn=function(Yn){Mr(Yn,"mouse"),Gn("year",Yn)};return u.createElement("div",{className:zr},u.createElement($e,Object.assign({},at,{prefixCls:dr,onPrevDecades:function(){Nn(-1)},onNextDecades:function(){Nn(1)}})),u.createElement(Er,Object.assign({},at,{prefixCls:dr,onSelect:Qn})))}var Rn=Zt;function vn(at,dr,Kr){return Kr?u.createElement("div",{className:"".concat(at,"-footer-extra")},Kr(dr)):null}function Un(at){var dr=at.prefixCls,Kr=at.rangeList,Br=Kr===void 0?[]:Kr,Pn=at.components,$r=Pn===void 0?{}:Pn,Mr=at.needConfirmButton,Gn=at.onNow,zr=at.onOk,Nn=at.okDisabled,Qn=at.showNow,Zn=at.locale,Yn,ui;if(Br.length){var ai=$r.rangeItem||"span";Yn=u.createElement(u.Fragment,null,Br.map(function(pi){var zi=pi.label,Ci=pi.onClick,na=pi.onMouseEnter,La=pi.onMouseLeave;return u.createElement("li",{key:zi,className:"".concat(dr,"-preset")},u.createElement(ai,{onClick:Ci,onMouseEnter:na,onMouseLeave:La},zi))}))}if(Mr){var hi=$r.button||"button";Gn&&!Yn&&Qn!==!1&&(Yn=u.createElement("li",{className:"".concat(dr,"-now")},u.createElement("a",{className:"".concat(dr,"-now-btn"),onClick:Gn},Zn.now))),ui=Mr&&u.createElement("li",{className:"".concat(dr,"-ok")},u.createElement(hi,{disabled:Nn,onClick:zr},Zn.ok))}return!Yn&&!ui?null:u.createElement("ul",{className:"".concat(dr,"-ranges")},Yn,ui)}function hn(at){var dr,Kr=at.prefixCls,Br=Kr===void 0?"rc-picker":Kr,Pn=at.className,$r=at.style,Mr=at.locale,Gn=at.generateConfig,zr=at.value,Nn=at.defaultValue,Qn=at.pickerValue,Zn=at.defaultPickerValue,Yn=at.disabledDate,ui=at.mode,ai=at.picker,hi=ai===void 0?"date":ai,pi=at.tabIndex,zi=pi===void 0?0:pi,Ci=at.showNow,na=at.showTime,La=at.showToday,pa=at.renderExtraFooter,ca=at.hideHeader,wa=at.onSelect,Ca=at.onChange,No=at.onPanelChange,fo=at.onMouseDown,ea=at.onPickerValueChange,ua=at.onOk,da=at.components,Ra=at.direction,Za=at.hourStep,Qa=Za===void 0?1:Za,oo=at.minuteStep,bo=oo===void 0?1:oo,es=at.secondStep,ss=es===void 0?1:es,Rs=hi==="date"&&!!na||hi==="time",Ko=24%Qa===0,qo=60%bo===0,to=60%ss===0,Xa=u.useContext(q),Wa=Xa.operationRef,Jo=Xa.panelRef,hs=Xa.onSelect,Eo=Xa.hideRanges,Ws=Xa.defaultOpenValue,_o=u.useContext(ti),Mo=_o.inRange,xs=_o.panelPosition,Go=_o.rangedValue,ns=_o.hoverRangedValue,is=u.useRef({}),bs=u.useRef(!0),Sl=Object(V.a)(null,{value:zr,defaultValue:Nn,postState:function(Ua){return!Ua&&Ws&&hi==="time"?Ws:Ua}}),Fs=Object(H.a)(Sl,2),Ms=Fs[0],cs=Fs[1],_s=Object(V.a)(null,{value:Qn,defaultValue:Zn||Ms,postState:function(Ua){return Ua||Gn.getNow()}}),Us=Object(H.a)(_s,2),ks=Us[0],ps=Us[1],Es=function(Ua){ps(Ua),ea&&ea(Ua)},tl=function(Ua){var Oo=ue[hi];return Oo?Oo(Ua):Ua},Os=Object(V.a)(function(){return hi==="time"?"time":tl("date")},{value:ui}),Ro=Object(H.a)(Os,2),wo=Ro[0],ms=Ro[1];u.useEffect(function(){ms(hi)},[hi]);var As=u.useState(function(){return wo}),ao=Object(H.a)(As,2),Ct=ao[0],zt=ao[1],gn=function(Ua,Oo){var as=tl(Ua||wo);zt(wo),ms(as),No&&(wo!==as||Qt(Gn,ks,ks))&&No(Oo,as)},$n=function(Ua,Oo){var as=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(wo===hi||as)&&(cs(Ua),wa&&wa(Ua),hs&&hs(Ua,Oo),Ca&&!Qt(Gn,Ua,Ms)&&Ca(Ua))},bi=function(Ua){return is.current&&is.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(Ua.which)&&Ua.preventDefault(),is.current.onKeyDown(Ua)):(Object(S.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},oi=function(Ua){is.current&&is.current.onBlur&&is.current.onBlur(Ua)};Wa&&xs!=="right"&&(Wa.current={onKeyDown:bi,onClose:function(){is.current&&is.current.onClose&&is.current.onClose()}}),u.useEffect(function(){zr&&!bs.current&&ps(zr)},[zr]),u.useEffect(function(){bs.current=!1},[]);var Yi,ha=Object(W.a)(Object(W.a)({},at),{},{operationRef:is,prefixCls:Br,viewDate:ks,value:Ms,onViewDateChange:Es,sourceMode:Ct,onPanelChange:gn,disabledDate:wo!=="decade"?Yn:void 0});delete ha.onChange,delete ha.onSelect;switch(wo){case"decade":Yi=u.createElement(Rn,Object.assign({},ha,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}}));break;case"year":Yi=u.createElement(Ye,Object.assign({},ha,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}}));break;case"month":Yi=u.createElement(wt,Object.assign({},ha,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}}));break;case"quarter":Yi=u.createElement(jn,Object.assign({},ha,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}}));break;case"week":Yi=u.createElement(on,Object.assign({},ha,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}}));break;case"time":delete ha.showTime,Yi=u.createElement(qr,Object.assign({},ha,Object(Q.a)(na)==="object"?na:null,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}}));break;default:na?Yi=u.createElement(xr,Object.assign({},ha,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}})):Yi=u.createElement(Ze,Object.assign({},ha,{onSelect:function(Ua,Oo){Es(Ua),$n(Ua,Oo)}}))}var Pa,Co,vo=function(){var Ua=Gn.getNow(),Oo=ir(Gn.getHour(Ua),Gn.getMinute(Ua),Gn.getSecond(Ua),Ko?Qa:1,qo?bo:1,to?ss:1),as=Ut(Gn,Ua,Oo[0],Oo[1],Oo[2]);$n(as,"submit")};Eo||(Pa=vn(Br,wo,pa),Co=Un({prefixCls:Br,components:da,needConfirmButton:Rs,okDisabled:!Ms||Yn&&Yn(Ms),locale:Mr,showNow:Ci,onNow:Rs&&vo,onOk:function(){Ms&&($n(Ms,"submit",!0),ua&&ua(Ms))}}));var ko;if(La&&wo==="date"&&hi==="date"&&!na){var ls=Gn.getNow(),jo="".concat(Br,"-today-btn"),Zo=Yn&&Yn(ls);ko=u.createElement("a",{className:_()(jo,Zo&&"".concat(jo,"-disabled")),"aria-disabled":Zo,onClick:function(){Zo||$n(ls,"mouse",!0)}},Mr.today)}return u.createElement(q.Provider,{value:Object(W.a)(Object(W.a)({},Xa),{},{hideHeader:"hideHeader"in at?ca:Xa.hideHeader,hidePrevBtn:Mo&&xs==="right",hideNextBtn:Mo&&xs==="left"})},u.createElement("div",{tabIndex:zi,className:_()("".concat(Br,"-panel"),Pn,(dr={},Object(z.a)(dr,"".concat(Br,"-panel-has-range"),Go&&Go[0]&&Go[1]),Object(z.a)(dr,"".concat(Br,"-panel-has-range-hover"),ns&&ns[0]&&ns[1]),Object(z.a)(dr,"".concat(Br,"-panel-rtl"),Ra==="rtl"),dr)),style:$r,onKeyDown:bi,onBlur:oi,onMouseDown:fo,ref:Jo},Yi,Pa||Co||ko?u.createElement("div",{className:"".concat(Br,"-footer")},Pa,Co,ko):null))}var Wr=hn,Kn=i("JX7q"),ei=i("i8i4"),Si=i.n(ei),Vr=i("l4aY"),fn=i("m+aA"),kn=i("c+Xe"),It=i("zT1h"),yt=i("QC+M");function xt(at,dr,Kr){return Kr?at[0]===dr[0]:at[0]===dr[0]&&at[1]===dr[1]}function Tt(at,dr,Kr){var Br=at[dr]||{};return Object(W.a)(Object(W.a)({},Br),Kr)}function Lt(at,dr,Kr,Br){for(var Pn=Kr.points,$r=Object.keys(at),Mr=0;Mr<$r.length;Mr+=1){var Gn=$r[Mr];if(xt(at[Gn].points,Pn,Br))return"".concat(dr,"-placement-").concat(Gn)}return""}var _t=i("Ff2n"),Xt=i("xEkU"),er=i.n(Xt),nr=i("9mu1"),br=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function On(at,dr){var Kr={};return Kr[at.toLowerCase()]=dr.toLowerCase(),Kr["Webkit".concat(at)]="webkit".concat(dr),Kr["Moz".concat(at)]="moz".concat(dr),Kr["ms".concat(at)]="MS".concat(dr),Kr["O".concat(at)]="o".concat(dr.toLowerCase()),Kr}function bn(at,dr){var Kr={animationend:On("Animation","AnimationEnd"),transitionend:On("Transition","TransitionEnd")};return at&&("AnimationEvent"in dr||delete Kr.animationend.animation,"TransitionEvent"in dr||delete Kr.transitionend.transition),Kr}var qn=bn(br,typeof window!="undefined"?window:{}),an={};if(br){var _r=document.createElement("div");an=_r.style}var mn={};function In(at){if(mn[at])return mn[at];var dr=qn[at];if(dr)for(var Kr=Object.keys(dr),Br=Kr.length,Pn=0;Pn<Br;Pn+=1){var $r=Kr[Pn];if(Object.prototype.hasOwnProperty.call(dr,$r)&&$r in an)return mn[at]=dr[$r],mn[at]}return""}var Wn=In("animationend"),Jn=In("transitionend"),Ei=!!(Wn&&Jn);function yi(at,dr){if(!at)return null;if(Object(Q.a)(at)==="object"){var Kr=dr.replace(/-\w/g,function(Br){return Br[1].toUpperCase()});return at[Kr]}return"".concat(at,"-").concat(dr)}var mi="none",Vi="appear",la="enter",Gi="leave";function ia(at){var dr=at,Kr=!!u.forwardRef;Object(Q.a)(at)==="object"&&(dr=at.transitionSupport,Kr="forwardRef"in at?at.forwardRef:Kr);function Br($r){return!!($r.motionName&&dr)}var Pn=function($r){Object(X.a)(Gn,$r);var Mr=Object(M.a)(Gn);function Gn(){var zr;return Object(B.a)(this,Gn),zr=Mr.apply(this,arguments),zr.$cacheEle=null,zr.node=null,zr.raf=null,zr.destroyed=!1,zr.deadlineId=null,zr.state={status:mi,statusActive:!1,newStatus:!1,statusStyle:null},zr.onDomUpdate=function(){var Nn=zr.state,Qn=Nn.status,Zn=Nn.newStatus,Yn=zr.props,ui=Yn.onAppearStart,ai=Yn.onEnterStart,hi=Yn.onLeaveStart,pi=Yn.onAppearActive,zi=Yn.onEnterActive,Ci=Yn.onLeaveActive,na=Yn.motionAppear,La=Yn.motionEnter,pa=Yn.motionLeave;if(!Br(zr.props))return;var ca=zr.getElement();zr.$cacheEle!==ca&&(zr.removeEventListener(zr.$cacheEle),zr.addEventListener(ca),zr.$cacheEle=ca),Zn&&Qn===Vi&&na?zr.updateStatus(ui,null,null,function(){zr.updateActiveStatus(pi,Vi)}):Zn&&Qn===la&&La?zr.updateStatus(ai,null,null,function(){zr.updateActiveStatus(zi,la)}):Zn&&Qn===Gi&&pa&&zr.updateStatus(hi,null,null,function(){zr.updateActiveStatus(Ci,Gi)})},zr.onMotionEnd=function(Nn){if(Nn&&!Nn.deadline&&Nn.target!==zr.getElement())return;var Qn=zr.state,Zn=Qn.status,Yn=Qn.statusActive,ui=zr.props,ai=ui.onAppearEnd,hi=ui.onEnterEnd,pi=ui.onLeaveEnd;Zn===Vi&&Yn?zr.updateStatus(ai,{status:mi},Nn):Zn===la&&Yn?zr.updateStatus(hi,{status:mi},Nn):Zn===Gi&&Yn&&zr.updateStatus(pi,{status:mi},Nn)},zr.setNodeRef=function(Nn){var Qn=zr.props.internalRef;zr.node=Nn,Object(kn.b)(Qn,Nn)},zr.getElement=function(){try{return Object(fn.a)(zr.node||Object(Kn.a)(zr))}catch(Nn){return zr.$cacheEle}},zr.addEventListener=function(Nn){if(!Nn)return;Nn.addEventListener(Jn,zr.onMotionEnd),Nn.addEventListener(Wn,zr.onMotionEnd)},zr.removeEventListener=function(Nn){if(!Nn)return;Nn.removeEventListener(Jn,zr.onMotionEnd),Nn.removeEventListener(Wn,zr.onMotionEnd)},zr.updateStatus=function(Nn,Qn,Zn,Yn){var ui=Nn?Nn(zr.getElement(),Zn):null;if(ui===!1||zr.destroyed)return;var ai;Yn&&(ai=function(){zr.nextFrame(Yn)}),zr.setState(Object(W.a)({statusStyle:Object(Q.a)(ui)==="object"?ui:null,newStatus:!1},Qn),ai)},zr.updateActiveStatus=function(Nn,Qn){zr.nextFrame(function(){var Zn=zr.state.status;if(Zn!==Qn)return;var Yn=zr.props.motionDeadline;zr.updateStatus(Nn,{statusActive:!0}),Yn>0&&(zr.deadlineId=setTimeout(function(){zr.onMotionEnd({deadline:!0})},Yn))})},zr.nextFrame=function(Nn){zr.cancelNextFrame(),zr.raf=er()(Nn)},zr.cancelNextFrame=function(){zr.raf&&(er.a.cancel(zr.raf),zr.raf=null)},zr}return Object(P.a)(Gn,[{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 Nn,Qn=this.state,Zn=Qn.status,Yn=Qn.statusActive,ui=Qn.statusStyle,ai=this.props,hi=ai.children,pi=ai.motionName,zi=ai.visible,Ci=ai.removeOnLeave,na=ai.leavedClassName,La=ai.eventProps;return hi?Zn===mi||!Br(this.props)?zi?hi(Object(W.a)({},La),this.setNodeRef):Ci?null:hi(Object(W.a)(Object(W.a)({},La),{},{className:na}),this.setNodeRef):hi(Object(W.a)(Object(W.a)({},La),{},{className:_()(yi(pi,Zn),(Nn={},Object(z.a)(Nn,yi(pi,"".concat(Zn,"-active")),Yn),Object(z.a)(Nn,pi,typeof pi=="string"),Nn)),style:ui}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Nn,Qn){var Zn=Qn.prevProps,Yn=Qn.status;if(!Br(Nn))return{};var ui=Nn.visible,ai=Nn.motionAppear,hi=Nn.motionEnter,pi=Nn.motionLeave,zi=Nn.motionLeaveImmediately,Ci={prevProps:Nn};return(Yn===Vi&&!ai||Yn===la&&!hi||Yn===Gi&&!pi)&&(Ci.status=mi,Ci.statusActive=!1,Ci.newStatus=!1),!Zn&&ui&&ai&&(Ci.status=Vi,Ci.statusActive=!1,Ci.newStatus=!0),Zn&&!Zn.visible&&ui&&hi&&(Ci.status=la,Ci.statusActive=!1,Ci.newStatus=!0),(Zn&&Zn.visible&&!ui&&pi||!Zn&&zi&&!ui&&pi)&&(Ci.status=Gi,Ci.statusActive=!1,Ci.newStatus=!0),Ci}}]),Gn}(u.Component);return Pn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Kr?u.forwardRef(function($r,Mr){return u.createElement(Pn,Object.assign({internalRef:Mr},$r))}):Pn}var $i=ia(Ei),xn="add",Ti="keep",Ji="remove",Wi="removed";function qi(at){var dr;return at&&Object(Q.a)(at)==="object"&&"key"in at?dr=at:dr={key:at},Object(W.a)(Object(W.a)({},dr),{},{key:String(dr.key)})}function Ir(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return at.map(qi)}function ar(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Kr=[],Br=0,Pn=dr.length,$r=Ir(at),Mr=Ir(dr);$r.forEach(function(Nn){for(var Qn=!1,Zn=Br;Zn<Pn;Zn+=1){var Yn=Mr[Zn];if(Yn.key===Nn.key){Br<Zn&&(Kr=Kr.concat(Mr.slice(Br,Zn).map(function(ui){return Object(W.a)(Object(W.a)({},ui),{},{status:xn})})),Br=Zn),Kr.push(Object(W.a)(Object(W.a)({},Yn),{},{status:Ti})),Br+=1,Qn=!0;break}}Qn||Kr.push(Object(W.a)(Object(W.a)({},Nn),{},{status:Ji}))}),Br<Pn&&(Kr=Kr.concat(Mr.slice(Br).map(function(Nn){return Object(W.a)(Object(W.a)({},Nn),{},{status:xn})})));var Gn={};Kr.forEach(function(Nn){var Qn=Nn.key;Gn[Qn]=(Gn[Qn]||0)+1});var zr=Object.keys(Gn).filter(function(Nn){return Gn[Nn]>1});return zr.forEach(function(Nn){Kr=Kr.filter(function(Qn){var Zn=Qn.key,Yn=Qn.status;return Zn!==Nn||Yn!==Ji}),Kr.forEach(function(Qn){Qn.key===Nn&&(Qn.status=Ti)})}),Kr}var nn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Gt(at){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$i,Kr=function(Br){Object(X.a)($r,Br);var Pn=Object(M.a)($r);function $r(){var Mr;return Object(B.a)(this,$r),Mr=Pn.apply(this,arguments),Mr.state={keyEntities:[]},Mr.removeKey=function(Gn){Mr.setState(function(zr){var Nn=zr.keyEntities;return{keyEntities:Nn.map(function(Qn){return Qn.key!==Gn?Qn:Object(W.a)(Object(W.a)({},Qn),{},{status:Wi})})}})},Mr}return Object(P.a)($r,[{key:"render",value:function(){var Gn=this,zr=this.state.keyEntities,Nn=this.props,Qn=Nn.component,Zn=Nn.children,Yn=Object(_t.a)(Nn,["component","children"]),ui=Qn||u.Fragment,ai={};return nn.forEach(function(hi){ai[hi]=Yn[hi],delete Yn[hi]}),delete Yn.keys,u.createElement(ui,Object.assign({},Yn),zr.map(function(hi){var pi=hi.status,zi=Object(_t.a)(hi,["status"]),Ci=pi===xn||pi===Ti;return u.createElement(dr,Object.assign({},ai,{key:zi.key,visible:Ci,eventProps:zi,onLeaveEnd:function(){ai.onLeaveEnd&&ai.onLeaveEnd.apply(ai,arguments),Gn.removeKey(zi.key)}}),Zn)}))}}],[{key:"getDerivedStateFromProps",value:function(Gn,zr){var Nn=Gn.keys,Qn=zr.keyEntities,Zn=Ir(Nn);if(!at)return{keyEntities:Zn.map(function(ai){return Object(W.a)(Object(W.a)({},ai),{},{status:Ti})})};var Yn=ar(Qn,Zn),ui=Qn.length;return{keyEntities:Yn.filter(function(ai){for(var hi=null,pi=0;pi<ui;pi+=1){var zi=Qn[pi];if(zi.key===ai.key){hi=zi;break}}return!(hi&&hi.status===Wi&&ai.status===Ji)})}}}]),$r}(u.Component);return Kr.defaultProps={component:"div"},Kr}var wr=Gt(Ei),Pr=$i,Jr=function(dr,Kr){var Br=dr.prefixCls,Pn=dr.className,$r=dr.style,Mr=dr.children,Gn=dr.onMouseEnter,zr=dr.onMouseLeave,Nn=dr.onMouseDown,Qn=dr.onTouchStart,Zn=Mr;return u.Children.count(Mr)>1&&(Zn=u.createElement("div",{className:"".concat(Br,"-content")},Mr)),u.createElement("div",{ref:Kr,className:Pn,onMouseEnter:Gn,onMouseLeave:zr,onMouseDown:Nn,onTouchStart:Qn,style:$r},Zn)},wn=u.forwardRef(Jr);wn.displayName="PopupInner";var bt=wn;function mr(at){var dr=at.prefixCls,Kr=at.motion,Br=at.animation,Pn=at.transitionName;return Kr||(Br?{motionName:"".concat(dr,"-").concat(Br)}:Pn?{motionName:Pn}:null)}function Ar(at){return at&&at.motionName}var Ur=function(at){Object(X.a)(Kr,at);var dr=Object(M.a)(Kr);function Kr(){var Br;return Object(B.a)(this,Kr),Br=dr.apply(this,arguments),Br.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Br.popupRef=o.a.createRef(),Br.alignRef=o.a.createRef(),Br.nextFrameState=null,Br.nextFrameId=null,Br.onAlign=function(Pn,$r){var Mr=Br.state.status,Gn=Br.props,zr=Gn.getClassNameFromAlign,Nn=Gn.onAlign,Qn=zr($r);Mr==="align"?Br.setState({alignClassName:Qn,status:"aligned"},function(){Br.alignRef.current.forceAlign()}):Mr==="aligned"?(Br.setState({alignClassName:Qn,status:"afterAlign"}),Nn(Pn,$r)):Br.setState({alignClassName:Qn})},Br.onMotionEnd=function(){var Pn=Br.props.visible;Br.setState({status:Pn?"AfterMotion":"stable",inMotion:!1})},Br.setStateOnNextFrame=function(Pn){Br.cancelFrameState(),Br.nextFrameState=Object(W.a)(Object(W.a)({},Br.nextFrameState),Pn),Br.nextFrameId=er()(function(){var $r=Object(W.a)({},Br.nextFrameState);Br.nextFrameState=null,Br.setState($r)})},Br.getMotion=function(){return Object(W.a)({},mr(Br.props))},Br.getAlignTarget=function(){var Pn=Br.props,$r=Pn.point,Mr=Pn.getRootDomNode;return $r||Mr},Br.cancelFrameState=function(){er.a.cancel(Br.nextFrameId)},Br.renderPopupElement=function(){var Pn=Br.state,$r=Pn.status,Mr=Pn.targetHeight,Gn=Pn.targetWidth,zr=Pn.alignClassName,Nn=Br.props,Qn=Nn.prefixCls,Zn=Nn.className,Yn=Nn.style,ui=Nn.stretch,ai=Nn.visible,hi=Nn.align,pi=Nn.destroyPopupOnHide,zi=Nn.onMouseEnter,Ci=Nn.onMouseLeave,na=Nn.onMouseDown,La=Nn.onTouchStart,pa=Nn.children,ca=_()(Qn,Zn,zr),wa="".concat(Qn,"-hidden"),Ca={};ui&&(ui.indexOf("height")!==-1?Ca.height=Mr:ui.indexOf("minHeight")!==-1&&(Ca.minHeight=Mr),ui.indexOf("width")!==-1?Ca.width=Gn:ui.indexOf("minWidth")!==-1&&(Ca.minWidth=Gn));var No=Object(W.a)(Object(W.a)(Object(W.a)(Object(W.a)({},Ca),Br.getZIndexStyle()),Yn),{},{opacity:$r==="stable"||!ai?void 0:0,pointerEvents:$r==="stable"||!ai?void 0:"none"}),fo=Br.getMotion(),ea=ai;ai&&$r!=="beforeMotion"&&$r!=="motion"&&$r!=="stable"&&(fo.motionAppear=!1,fo.motionEnter=!1,fo.motionLeave=!1),($r==="afterAlign"||$r==="beforeMotion")&&(ea=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ra){var Za=fo==null?void 0:fo[Ra];fo[Ra]=function(){for(var Qa=arguments.length,oo=new Array(Qa),bo=0;bo<Qa;bo++)oo[bo]=arguments[bo];Za==null||Za.apply(void 0,oo),Br.setState({inMotion:!0})}});var ua=!ai||$r!=="align"&&$r!=="aligned"&&$r!=="stable",da=!0;return $r==="stable"&&(da=ai),pi&&!da?null:o.a.createElement(Pr,Object.assign({visible:ea},fo,{removeOnLeave:!1,onEnterEnd:Br.onMotionEnd,onLeaveEnd:Br.onMotionEnd,leavedClassName:wa}),function(Ra,Za){var Qa=Ra.style,oo=Ra.className;return o.a.createElement(nr.a,{target:Br.getAlignTarget(),key:"popup",ref:Br.alignRef,monitorWindowResize:!0,disabled:ua,align:hi,onAlign:Br.onAlign},o.a.createElement(bt,{prefixCls:Qn,className:_()(ca,oo),ref:Object(kn.a)(Za,Br.popupRef),onMouseEnter:zi,onMouseLeave:Ci,onMouseDown:na,onTouchStart:La,style:Object(W.a)(Object(W.a)({},No),Qa)},pa))})},Br.renderMaskElement=function(){var Pn=Br.props,$r=Pn.mask,Mr=Pn.maskMotion,Gn=Pn.maskTransitionName,zr=Pn.maskAnimation,Nn=Pn.prefixCls,Qn=Pn.visible;if(!$r)return null;var Zn={};return Mr&&Mr.motionName&&(Zn=Object(W.a)({motionAppear:!0},mr({motion:Mr,prefixCls:Nn,transitionName:Gn,animation:zr}))),o.a.createElement(Pr,Object.assign({},Zn,{visible:Qn,removeOnLeave:!0}),function(Yn){var ui=Yn.className;return o.a.createElement("div",{style:Br.getZIndexStyle(),key:"mask",className:_()("".concat(Nn,"-mask"),ui)})})},Br}return Object(P.a)(Kr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pn=this.state.status,$r=this.props,Mr=$r.getRootDomNode,Gn=$r.visible,zr=$r.stretch;if(this.cancelFrameState(),Gn&&Pn!=="stable")switch(Pn){case null:{this.setStateOnNextFrame({status:zr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Ar(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Nn=["measure","align",null,"beforeMotion","motion"],Qn=Nn.indexOf(Pn),Zn=Nn[Qn+1];Qn!==-1&&Zn&&this.setStateOnNextFrame({status:Zn})}}if(Pn==="measure"){var Yn=Mr();Yn&&this.setStateOnNextFrame({targetHeight:Yn.offsetHeight,targetWidth:Yn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Pn=this.props.zIndex;return{zIndex:Pn}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Pn,$r){var Mr=Pn.visible,Gn=Object(_t.a)(Pn,["visible"]),zr=$r.prevVisible,Nn=$r.status,Qn=$r.inMotion,Zn={prevVisible:Mr,status:Nn},Yn=mr(Gn);return zr===null&&Mr===!1?(Zn.status="stable",Zn.inMotion=!1):Mr!==zr&&(Zn.inMotion=!1,Mr||Ar(Yn)&&Qn?Zn.status=null:Zn.status="stable",Mr&&(Zn.alignClassName=null)),Zn}}]),Kr}(u.Component),un=Ur,An=u.createContext(null),ln=An;function Hn(){}function Ln(){return""}function ni(){return window.document}var Ai=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ii(at){var dr=function(Kr){Object(X.a)(Pn,Kr);var Br=Object(M.a)(Pn);function Pn($r){var Mr;Object(B.a)(this,Pn),Mr=Br.call(this,$r),Mr.popupRef=o.a.createRef(),Mr.triggerRef=o.a.createRef(),Mr.onMouseEnter=function(zr){var Nn=Mr.props.mouseEnterDelay;Mr.fireEvents("onMouseEnter",zr),Mr.delaySetPopupVisible(!0,Nn,Nn?null:zr)},Mr.onMouseMove=function(zr){Mr.fireEvents("onMouseMove",zr),Mr.setPoint(zr)},Mr.onMouseLeave=function(zr){Mr.fireEvents("onMouseLeave",zr),Mr.delaySetPopupVisible(!1,Mr.props.mouseLeaveDelay)},Mr.onPopupMouseEnter=function(){Mr.clearDelayTimer()},Mr.onPopupMouseLeave=function(zr){if(zr.relatedTarget&&!zr.relatedTarget.setTimeout&&Mr.popupRef.current&&Mr.popupRef.current.popupRef.current&&Object(Vr.a)(Mr.popupRef.current.popupRef.current,zr.relatedTarget))return;Mr.delaySetPopupVisible(!1,Mr.props.mouseLeaveDelay)},Mr.onFocus=function(zr){Mr.fireEvents("onFocus",zr),Mr.clearDelayTimer(),Mr.isFocusToShow()&&(Mr.focusTime=Date.now(),Mr.delaySetPopupVisible(!0,Mr.props.focusDelay))},Mr.onMouseDown=function(zr){Mr.fireEvents("onMouseDown",zr),Mr.preClickTime=Date.now()},Mr.onTouchStart=function(zr){Mr.fireEvents("onTouchStart",zr),Mr.preTouchTime=Date.now()},Mr.onBlur=function(zr){Mr.fireEvents("onBlur",zr),Mr.clearDelayTimer(),Mr.isBlurToHide()&&Mr.delaySetPopupVisible(!1,Mr.props.blurDelay)},Mr.onContextMenu=function(zr){zr.preventDefault(),Mr.fireEvents("onContextMenu",zr),Mr.setPopupVisible(!0,zr)},Mr.onContextMenuClose=function(){Mr.isContextMenuToShow()&&Mr.close()},Mr.onClick=function(zr){if(Mr.fireEvents("onClick",zr),Mr.focusTime){var Nn;if(Mr.preClickTime&&Mr.preTouchTime?Nn=Math.min(Mr.preClickTime,Mr.preTouchTime):Mr.preClickTime?Nn=Mr.preClickTime:Mr.preTouchTime&&(Nn=Mr.preTouchTime),Math.abs(Nn-Mr.focusTime)<20)return;Mr.focusTime=0}Mr.preClickTime=0,Mr.preTouchTime=0,Mr.isClickToShow()&&(Mr.isClickToHide()||Mr.isBlurToHide())&&zr&&zr.preventDefault&&zr.preventDefault();var Qn=!Mr.state.popupVisible;(Mr.isClickToHide()&&!Qn||Qn&&Mr.isClickToShow())&&Mr.setPopupVisible(!Mr.state.popupVisible,zr)},Mr.onPopupMouseDown=function(){if(Mr.hasPopupMouseDown=!0,clearTimeout(Mr.mouseDownTimeout),Mr.mouseDownTimeout=window.setTimeout(function(){Mr.hasPopupMouseDown=!1},0),Mr.context){var zr;(zr=Mr.context).onPopupMouseDown.apply(zr,arguments)}},Mr.onDocumentClick=function(zr){if(Mr.props.mask&&!Mr.props.maskClosable)return;var Nn=zr.target,Qn=Mr.getRootDomNode(),Zn=Mr.getPopupDomNode();!Object(Vr.a)(Qn,Nn)&&!Object(Vr.a)(Zn,Nn)&&!Mr.hasPopupMouseDown&&Mr.close()},Mr.getRootDomNode=function(){var zr=Mr.props.getTriggerDOMNode;if(zr)return zr(Mr.triggerRef.current);try{var Nn=Object(fn.a)(Mr.triggerRef.current);if(Nn)return Nn}catch(Qn){}return Si.a.findDOMNode(Object(Kn.a)(Mr))},Mr.getPopupClassNameFromAlign=function(zr){var Nn=[],Qn=Mr.props,Zn=Qn.popupPlacement,Yn=Qn.builtinPlacements,ui=Qn.prefixCls,ai=Qn.alignPoint,hi=Qn.getPopupClassNameFromAlign;return Zn&&Yn&&Nn.push(Lt(Yn,ui,zr,ai)),hi&&Nn.push(hi(zr)),Nn.join(" ")},Mr.getComponent=function(){var zr=Mr.props,Nn=zr.prefixCls,Qn=zr.destroyPopupOnHide,Zn=zr.popupClassName,Yn=zr.onPopupAlign,ui=zr.popupMotion,ai=zr.popupAnimation,hi=zr.popupTransitionName,pi=zr.popupStyle,zi=zr.mask,Ci=zr.maskAnimation,na=zr.maskTransitionName,La=zr.maskMotion,pa=zr.zIndex,ca=zr.popup,wa=zr.stretch,Ca=zr.alignPoint,No=Mr.state,fo=No.popupVisible,ea=No.point,ua=Mr.getPopupAlign(),da={};return Mr.isMouseEnterToShow()&&(da.onMouseEnter=Mr.onPopupMouseEnter),Mr.isMouseLeaveToHide()&&(da.onMouseLeave=Mr.onPopupMouseLeave),da.onMouseDown=Mr.onPopupMouseDown,da.onTouchStart=Mr.onPopupMouseDown,o.a.createElement(un,Object.assign({prefixCls:Nn,destroyPopupOnHide:Qn,visible:fo,point:Ca&&ea,className:Zn,align:ua,onAlign:Yn,animation:ai,getClassNameFromAlign:Mr.getPopupClassNameFromAlign},da,{stretch:wa,getRootDomNode:Mr.getRootDomNode,style:pi,mask:zi,zIndex:pa,transitionName:hi,maskAnimation:Ci,maskTransitionName:na,maskMotion:La,ref:Mr.popupRef,motion:ui}),typeof ca=="function"?ca():ca)},Mr.getContainer=function(){var zr=Object(Kn.a)(Mr),Nn=zr.props,Qn=document.createElement("div");Qn.style.position="absolute",Qn.style.top="0",Qn.style.left="0",Qn.style.width="100%";var Zn=Nn.getPopupContainer?Nn.getPopupContainer(Mr.getRootDomNode()):Nn.getDocument().body;return Zn.appendChild(Qn),Qn},Mr.setPoint=function(zr){var Nn=Mr.props.alignPoint;if(!Nn||!zr)return;Mr.setState({point:{pageX:zr.pageX,pageY:zr.pageY}})},Mr.handlePortalUpdate=function(){Mr.state.prevPopupVisible!==Mr.state.popupVisible&&Mr.props.afterPopupVisibleChange(Mr.state.popupVisible)};var Gn;return"popupVisible"in $r?Gn=!!$r.popupVisible:Gn=!!$r.defaultPopupVisible,Mr.state={prevPopupVisible:Gn,popupVisible:Gn},Ai.forEach(function(zr){Mr["fire".concat(zr)]=function(Nn){Mr.fireEvents(zr,Nn)}}),Mr}return Object(P.a)(Pn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Mr=this.props,Gn=this.state;if(Gn.popupVisible){var zr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(zr=Mr.getDocument(),this.clickOutsideHandler=Object(It.a)(zr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(zr=zr||Mr.getDocument(),this.touchOutsideHandler=Object(It.a)(zr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(zr=zr||Mr.getDocument(),this.contextMenuOutsideHandler1=Object(It.a)(zr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(It.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 Mr=this.props,Gn=Mr.popupPlacement,zr=Mr.popupAlign,Nn=Mr.builtinPlacements;return Gn&&Nn?Tt(Nn,Gn,zr):zr}},{key:"setPopupVisible",value:function(Mr,Gn){var zr=this.props.alignPoint,Nn=this.state.popupVisible;this.clearDelayTimer(),Nn!==Mr&&("popupVisible"in this.props||this.setState({popupVisible:Mr,prevPopupVisible:Nn}),this.props.onPopupVisibleChange(Mr)),zr&&Gn&&this.setPoint(Gn)}},{key:"delaySetPopupVisible",value:function(Mr,Gn,zr){var Nn=this,Qn=Gn*1e3;if(this.clearDelayTimer(),Qn){var Zn=zr?{pageX:zr.pageX,pageY:zr.pageY}:null;this.delayTimer=window.setTimeout(function(){Nn.setPopupVisible(Mr,Zn),Nn.clearDelayTimer()},Qn)}else this.setPopupVisible(Mr,zr)}},{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(Mr){var Gn=this.props.children.props,zr=this.props;return Gn[Mr]&&zr[Mr]?this["fire".concat(Mr)]:Gn[Mr]||zr[Mr]}},{key:"isClickToShow",value:function(){var Mr=this.props,Gn=Mr.action,zr=Mr.showAction;return Gn.indexOf("click")!==-1||zr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Mr=this.props,Gn=Mr.action,zr=Mr.showAction;return Gn.indexOf("contextMenu")!==-1||zr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Mr=this.props,Gn=Mr.action,zr=Mr.hideAction;return Gn.indexOf("click")!==-1||zr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Mr=this.props,Gn=Mr.action,zr=Mr.showAction;return Gn.indexOf("hover")!==-1||zr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Mr=this.props,Gn=Mr.action,zr=Mr.hideAction;return Gn.indexOf("hover")!==-1||zr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Mr=this.props,Gn=Mr.action,zr=Mr.showAction;return Gn.indexOf("focus")!==-1||zr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Mr=this.props,Gn=Mr.action,zr=Mr.hideAction;return Gn.indexOf("focus")!==-1||zr.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(Mr,Gn){var zr=this.props.children.props[Mr];zr&&zr(Gn);var Nn=this.props[Mr];Nn&&Nn(Gn)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Mr=this.state.popupVisible,Gn=this.props,zr=Gn.children,Nn=Gn.forceRender,Qn=Gn.alignPoint,Zn=Gn.className,Yn=Gn.autoDestroy,ui=o.a.Children.only(zr),ai={key:"trigger"};this.isContextMenuToShow()?ai.onContextMenu=this.onContextMenu:ai.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ai.onClick=this.onClick,ai.onMouseDown=this.onMouseDown,ai.onTouchStart=this.onTouchStart):(ai.onClick=this.createTwoChains("onClick"),ai.onMouseDown=this.createTwoChains("onMouseDown"),ai.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ai.onMouseEnter=this.onMouseEnter,Qn&&(ai.onMouseMove=this.onMouseMove)):ai.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ai.onMouseLeave=this.onMouseLeave:ai.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ai.onFocus=this.onFocus,ai.onBlur=this.onBlur):(ai.onFocus=this.createTwoChains("onFocus"),ai.onBlur=this.createTwoChains("onBlur"));var hi=_()(ui&&ui.props&&ui.props.className,Zn);hi&&(ai.className=hi);var pi=Object(W.a)({},ai);Object(kn.c)(ui)&&(pi.ref=Object(kn.a)(this.triggerRef,ui.ref));var zi=o.a.cloneElement(ui,pi),Ci;return(Mr||this.popupRef.current||Nn)&&(Ci=o.a.createElement(at,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Mr&&Yn&&(Ci=null),o.a.createElement(ln.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},zi,Ci)}}],[{key:"getDerivedStateFromProps",value:function(Mr,Gn){var zr=Mr.popupVisible,Nn={};return zr!==void 0&&Gn.popupVisible!==zr&&(Nn.popupVisible=zr,Nn.prevPopupVisible=Gn.popupVisible),Nn}}]),Pn}(o.a.Component);return dr.contextType=ln,dr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ln,getDocument:ni,onPopupVisibleChange:Hn,afterPopupVisibleChange:Hn,onPopupAlign:Hn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},dr}var _i=ii(yt.a),Ri={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 ji(at){var dr,Kr=at.prefixCls,Br=at.popupElement,Pn=at.popupStyle,$r=at.visible,Mr=at.dropdownClassName,Gn=at.dropdownAlign,zr=at.transitionName,Nn=at.getPopupContainer,Qn=at.children,Zn=at.range,Yn=at.popupPlacement,ui=at.direction,ai="".concat(Kr,"-dropdown"),hi=function(){return Yn!==void 0?Yn:ui==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(_i,{showAction:[],hideAction:[],popupPlacement:hi(),builtinPlacements:Ri,prefixCls:ai,popupTransitionName:zr,popup:Br,popupAlign:Gn,popupVisible:$r,popupClassName:_()(Mr,(dr={},Object(z.a)(dr,"".concat(ai,"-range"),Zn),Object(z.a)(dr,"".concat(ai,"-rtl"),ui==="rtl"),dr)),popupStyle:Pn,getPopupContainer:Nn},Qn)}var wi=ji;function Ii(at){var dr=at.open,Kr=at.value,Br=at.isClickOutside,Pn=at.triggerOpen,$r=at.forwardKeyDown,Mr=at.blurToCancel,Gn=at.onSubmit,zr=at.onCancel,Nn=at.onFocus,Qn=at.onBlur,Zn=Object(u.useState)(!1),Yn=Object(H.a)(Zn,2),ui=Yn[0],ai=Yn[1],hi=Object(u.useState)(!1),pi=Object(H.a)(hi,2),zi=pi[0],Ci=pi[1],na=Object(u.useRef)(!1),La=Object(u.useRef)(!1),pa={onMouseDown:function(){ai(!0),Pn(!0)},onKeyDown:function(wa){switch(wa.which){case G.a.ENTER:{dr?Gn()!==!1&&ai(!0):Pn(!0),wa.preventDefault();return}case G.a.TAB:{ui&&dr&&!wa.shiftKey?(ai(!1),wa.preventDefault()):!ui&&dr&&(!$r(wa)&&wa.shiftKey&&(ai(!0),wa.preventDefault()));return}case G.a.ESC:{ai(!0),zr();return}}!dr&&![G.a.SHIFT].includes(wa.which)?Pn(!0):ui||$r(wa)},onFocus:function(wa){ai(!0),Ci(!0),Nn&&Nn(wa)},onBlur:function(wa){if(na.current||!Br(document.activeElement)){na.current=!1;return}Mr?setTimeout(function(){Br(document.activeElement)&&zr()},0):dr&&(Pn(!1),La.current&&Gn()),Ci(!1),Qn&&Qn(wa)}};return Object(u.useEffect)(function(){La.current=!1},[dr]),Object(u.useEffect)(function(){La.current=!0},[Kr]),Object(u.useEffect)(function(){return ne(function(ca){var wa=ca.target;dr&&(Br(wa)?zi||Pn(!1):(na.current=!0,requestAnimationFrame(function(){na.current=!1})))})}),[pa,{focused:zi,typing:ui}]}function Oi(at){var dr=at.valueTexts,Kr=at.onTextChange,Br=u.useState(""),Pn=Object(H.a)(Br,2),$r=Pn[0],Mr=Pn[1],Gn=u.useRef([]);Gn.current=dr;function zr(Qn){Mr(Qn),Kr(Qn)}function Nn(){Mr(Gn.current[0])}return u.useEffect(function(){dr.every(function(Qn){return Qn!==$r})&&Nn()},[dr.join("||")]),[$r,zr,Nn]}var Ui=i("Gytx"),Zi=i.n(Ui);function ma(at,dr){var Kr=dr.formatList,Br=dr.generateConfig,Pn=dr.locale;return Object(Ge.a)(function(){if(!at)return[[""],""];for(var $r="",Mr=[],Gn=0;Gn<Kr.length;Gn+=1){var zr=Kr[Gn],Nn=Br.locale.format(Pn.locale,at,zr);Mr.push(Nn),Gn===0&&($r=Nn)}return[Mr,$r]},[at,Kr],function($r,Mr){return $r[0]!==Mr[0]||!Zi()($r[1],Mr[1])})}function Hi(at,dr){var Kr=dr.formatList,Br=dr.generateConfig,Pn=dr.locale,$r=Object(u.useState)(null),Mr=Object(H.a)($r,2),Gn=Mr[0],zr=Mr[1],Nn=Object(u.useRef)(null);function Qn(pi){var zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Nn.current),zi){zr(pi);return}Nn.current=requestAnimationFrame(function(){zr(pi)})}var Zn=ma(Gn,{formatList:Kr,generateConfig:Br,locale:Pn}),Yn=Object(H.a)(Zn,2),ui=Yn[1];function ai(pi){Qn(pi)}function hi(){var pi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qn(null,pi)}return Object(u.useEffect)(function(){hi(!0)},[at]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(Nn.current)}},[]),[ui,ai,hi]}function xa(at){var dr,Kr=at.prefixCls,Br=Kr===void 0?"rc-picker":Kr,Pn=at.id,$r=at.tabIndex,Mr=at.style,Gn=at.className,zr=at.dropdownClassName,Nn=at.dropdownAlign,Qn=at.popupStyle,Zn=at.transitionName,Yn=at.generateConfig,ui=at.locale,ai=at.inputReadOnly,hi=at.allowClear,pi=at.autoFocus,zi=at.showTime,Ci=at.picker,na=Ci===void 0?"date":Ci,La=at.format,pa=at.use12Hours,ca=at.value,wa=at.defaultValue,Ca=at.open,No=at.defaultOpen,fo=at.defaultOpenValue,ea=at.suffixIcon,ua=at.clearIcon,da=at.disabled,Ra=at.disabledDate,Za=at.placeholder,Qa=at.getPopupContainer,oo=at.pickerRef,bo=at.panelRender,es=at.onChange,ss=at.onOpenChange,Rs=at.onFocus,Ko=at.onBlur,qo=at.onMouseDown,to=at.onMouseUp,Xa=at.onMouseEnter,Wa=at.onMouseLeave,Jo=at.onContextMenu,hs=at.onClick,Eo=at.direction,Ws=at.autoComplete,_o=Ws===void 0?"off":Ws,Mo=u.useRef(null),xs=na==="date"&&!!zi||na==="time",Go=ke(Xe(La,na,zi,pa)),ns=u.useRef(null),is=u.useRef(null),bs=Object(V.a)(null,{value:ca,defaultValue:wa}),Sl=Object(H.a)(bs,2),Fs=Sl[0],Ms=Sl[1],cs=u.useState(Fs),_s=Object(H.a)(cs,2),Us=_s[0],ks=_s[1],ps=u.useRef(null),Es=Object(V.a)(!1,{value:Ca,defaultValue:No,postState:function(Xo){return da?!1:Xo},onChange:function(Xo){ss&&ss(Xo),!Xo&&ps.current&&ps.current.onClose&&ps.current.onClose()}}),tl=Object(H.a)(Es,2),Os=tl[0],Ro=tl[1],wo=ma(Us,{formatList:Go,generateConfig:Yn,locale:ui}),ms=Object(H.a)(wo,2),As=ms[0],ao=ms[1],Ct=Oi({valueTexts:As,onTextChange:function(Xo){var Zs=Yn.locale.parse(ui.locale,Xo,Go);Zs&&(!Ra||!Ra(Zs))&&ks(Zs)}}),zt=Object(H.a)(Ct,3),gn=zt[0],$n=zt[1],bi=zt[2],oi=function(Xo){ks(Xo),Ms(Xo),es&&!Qt(Yn,Fs,Xo)&&es(Xo,Xo?Yn.locale.format(ui.locale,Xo,Go[0]):"")},Yi=function(Xo){if(da&&Xo)return;Ro(Xo)},ha=function(Xo){return Os&&ps.current&&ps.current.onKeyDown?ps.current.onKeyDown(Xo):(Object(S.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Pa=function(){to&&to.apply(void 0,arguments),Mo.current&&(Mo.current.focus(),Yi(!0))},Co=Ii({blurToCancel:xs,open:Os,value:gn,triggerOpen:Yi,forwardKeyDown:ha,isClickOutside:function(Xo){return!ge([ns.current,is.current],Xo)},onSubmit:function(){return Ra&&Ra(Us)?!1:(oi(Us),Yi(!1),bi(),!0)},onCancel:function(){Yi(!1),ks(Fs),bi()},onFocus:Rs,onBlur:Ko}),vo=Object(H.a)(Co,2),ko=vo[0],ls=vo[1],jo=ls.focused,Zo=ls.typing;u.useEffect(function(){Os||(ks(Fs),!As.length||As[0]===""?$n(""):ao!==gn&&bi())},[Os,As]),u.useEffect(function(){Os||bi()},[na]),u.useEffect(function(){ks(Fs)},[Fs]),oo&&(oo.current={focus:function(){Mo.current&&Mo.current.focus()},blur:function(){Mo.current&&Mo.current.blur()}});var ts=Object(W.a)(Object(W.a)({},at),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Ua=u.createElement(Wr,Object.assign({},ts,{generateConfig:Yn,className:_()(Object(z.a)({},"".concat(Br,"-panel-focused"),!Zo)),value:Us,locale:ui,tabIndex:-1,onChange:ks,direction:Eo}));bo&&(Ua=bo(Ua));var Oo=u.createElement("div",{className:"".concat(Br,"-panel-container"),onMouseDown:function(Xo){Xo.preventDefault()}},Ua),as;ea&&(as=u.createElement("span",{className:"".concat(Br,"-suffix")},ea));var Ul;hi&&Fs&&!da&&(Ul=u.createElement("span",{onMouseDown:function(Xo){Xo.preventDefault(),Xo.stopPropagation()},onMouseUp:function(Xo){Xo.preventDefault(),Xo.stopPropagation(),oi(null),Yi(!1)},className:"".concat(Br,"-clear")},ua||u.createElement("span",{className:"".concat(Br,"-clear-btn")})));var vl=function(Xo,Zs){(Zs==="submit"||Zs!=="key"&&!xs)&&(oi(Xo),Yi(!1))},Qs=Eo==="rtl"?"bottomRight":"bottomLeft",il=Hi(gn,{formatList:Go,generateConfig:Yn,locale:ui}),ll=Object(H.a)(il,3),jl=ll[0],Hl=ll[1],Js=ll[2];return u.createElement(q.Provider,{value:{operationRef:ps,hideHeader:na==="time",panelRef:ns,onSelect:vl,open:Os,defaultOpenValue:fo,onDateMouseEnter:Hl,onDateMouseLeave:Js}},u.createElement(wi,{visible:Os,popupElement:Oo,popupStyle:Qn,prefixCls:Br,dropdownClassName:zr,dropdownAlign:Nn,getPopupContainer:Qa,transitionName:Zn,popupPlacement:Qs,direction:Eo},u.createElement("div",{className:_()(Br,Gn,(dr={},Object(z.a)(dr,"".concat(Br,"-disabled"),da),Object(z.a)(dr,"".concat(Br,"-focused"),jo),Object(z.a)(dr,"".concat(Br,"-rtl"),Eo==="rtl"),dr)),style:Mr,onMouseDown:qo,onMouseUp:Pa,onMouseEnter:Xa,onMouseLeave:Wa,onContextMenu:Jo,onClick:hs},u.createElement("div",{className:_()("".concat(Br,"-input"),Object(z.a)({},"".concat(Br,"-input-placeholder"),!!jl)),ref:is},u.createElement("input",Object.assign({id:Pn,tabIndex:$r,disabled:da,readOnly:ai||!Zo,value:jl||gn,onChange:function(Xo){$n(Xo.target.value)},autoFocus:pi,placeholder:Za,ref:Mo,title:gn},ko,{size:pe(na,Go[0])},st(at),{autoComplete:_o})),as,Ul))))}var Ea=function(at){Object(X.a)(Kr,at);var dr=Object(M.a)(Kr);function Kr(){var Br;return Object(B.a)(this,Kr),Br=dr.apply(this,arguments),Br.pickerRef=u.createRef(),Br.focus=function(){Br.pickerRef.current&&Br.pickerRef.current.focus()},Br.blur=function(){Br.pickerRef.current&&Br.pickerRef.current.blur()},Br}return Object(P.a)(Kr,[{key:"render",value:function(){return u.createElement(xa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Kr}(u.Component),ta=Ea;function ra(at,dr,Kr){var Br=at.picker,Pn=at.locale,$r=at.selectedValue,Mr=at.disabledDate,Gn=at.disabled,zr=at.generateConfig,Nn=Ve($r,0),Qn=Ve($r,1);function Zn(pi){var zi=zr.getYear(pi),Ci=zr.locale.getWeek(Pn.locale,pi);return zi*100+Ci}function Yn(pi){var zi=zr.getYear(pi),Ci=zr.getMonth(pi);return zi*100+Ci}function ui(pi){var zi=zr.getYear(pi),Ci=qt(zr,pi);return zi*10+Ci}var ai=u.useCallback(function(pi){if(Mr&&Mr(pi))return!0;if(Gn[1]&&Qn)return!fr(zr,pi,Qn)&&zr.isAfter(pi,Qn);if(dr&&Qn)switch(Br){case"quarter":return ui(pi)>ui(Qn);case"month":return Yn(pi)>Yn(Qn);case"week":return Zn(pi)>Zn(Qn);default:return!fr(zr,pi,Qn)&&zr.isAfter(pi,Qn)}return!1},[Mr,Gn[1],Qn,dr]),hi=u.useCallback(function(pi){if(Mr&&Mr(pi))return!0;if(Gn[0]&&Nn)return!fr(zr,pi,Qn)&&zr.isAfter(Nn,pi);if(Kr&&Nn)switch(Br){case"quarter":return ui(pi)<ui(Nn);case"month":return Yn(pi)<Yn(Nn);case"week":return Zn(pi)<Zn(Nn);default:return!fr(zr,pi,Nn)&&zr.isAfter(Nn,pi)}return!1},[Mr,Gn[0],Nn,Kr]);return[ai,hi]}function ga(at,dr,Kr,Br){var Pn=Cn(at,Kr,Br,1);function $r(Mr){return Mr(at,dr)?"same":Mr(Pn,dr)?"closing":"far"}switch(Kr){case"year":return $r(function(Mr,Gn){return Lr(Br,Mr,Gn)});case"quarter":case"month":return $r(function(Mr,Gn){return pt(Br,Mr,Gn)});default:return $r(function(Mr,Gn){return pn(Br,Mr,Gn)})}}function sa(at,dr,Kr,Br){var Pn=Ve(at,0),$r=Ve(at,1);if(dr===0)return Pn;if(Pn&&$r){var Mr=ga(Pn,$r,Kr,Br);switch(Mr){case"same":return Pn;case"closing":return Pn;default:return Cn($r,Kr,Br,-1)}}return Pn}function Ba(at){var dr=at.values,Kr=at.picker,Br=at.defaultDates,Pn=at.generateConfig,$r=u.useState(function(){return[Ve(Br,0),Ve(Br,1)]}),Mr=Object(H.a)($r,2),Gn=Mr[0],zr=Mr[1],Nn=u.useState(null),Qn=Object(H.a)(Nn,2),Zn=Qn[0],Yn=Qn[1],ui=Ve(dr,0),ai=Ve(dr,1);function hi(zi){return Gn[zi]?Gn[zi]:Ve(Zn,zi)||sa(dr,zi,Kr,Pn)||ui||ai||Pn.getNow()}function pi(zi,Ci){if(zi){var na=Ot(Zn,zi,Ci);zr(Ot(Gn,null,Ci)||[null,null]);var La=(Ci+1)%2;Ve(dr,La)||(na=Ot(na,zi,La)),Yn(na)}else(ui||ai)&&Yn(null)}return[hi,pi]}function va(at,dr){return at&&at[0]&&at[1]&&dr.isAfter(at[0],at[1])?[at[1],at[0]]:at}function Ia(at,dr,Kr,Br){return at||Br&&Br[dr]?!0:!!Kr[(dr+1)%2]}function za(at){var dr,Kr,Br,Pn=at.prefixCls,$r=Pn===void 0?"rc-picker":Pn,Mr=at.id,Gn=at.style,zr=at.className,Nn=at.popupStyle,Qn=at.dropdownClassName,Zn=at.transitionName,Yn=at.dropdownAlign,ui=at.getPopupContainer,ai=at.generateConfig,hi=at.locale,pi=at.placeholder,zi=at.autoFocus,Ci=at.disabled,na=at.format,La=at.picker,pa=La===void 0?"date":La,ca=at.showTime,wa=at.use12Hours,Ca=at.separator,No=Ca===void 0?"~":Ca,fo=at.value,ea=at.defaultValue,ua=at.defaultPickerValue,da=at.open,Ra=at.defaultOpen,Za=at.disabledDate,Qa=at.disabledTime,oo=at.dateRender,bo=at.panelRender,es=at.ranges,ss=at.allowEmpty,Rs=at.allowClear,Ko=at.suffixIcon,qo=at.clearIcon,to=at.pickerRef,Xa=at.inputReadOnly,Wa=at.mode,Jo=at.renderExtraFooter,hs=at.onChange,Eo=at.onOpenChange,Ws=at.onPanelChange,_o=at.onCalendarChange,Mo=at.onFocus,xs=at.onBlur,Go=at.onOk,ns=at.components,is=at.order,bs=at.direction,Sl=at.activePickerIndex,Fs=at.autoComplete,Ms=Fs===void 0?"off":Fs,cs=pa==="date"&&!!ca||pa==="time",_s=Object(u.useRef)({}),Us=Object(u.useRef)(null),ks=Object(u.useRef)(null),ps=Object(u.useRef)(null),Es=Object(u.useRef)(null),tl=Object(u.useRef)(null),Os=Object(u.useRef)(null),Ro=Object(u.useRef)(null),wo=ke(Xe(na,pa,ca,wa)),ms=Object(V.a)(0,{value:Sl}),As=Object(H.a)(ms,2),ao=As[0],Ct=As[1],zt=Object(u.useRef)(null),gn=u.useMemo(function(){return Array.isArray(Ci)?Ci:[Ci||!1,Ci||!1]},[Ci]),$n=Object(V.a)(null,{value:fo,defaultValue:ea,postState:function(j){return pa==="time"&&!is?j:va(j,ai)}}),bi=Object(H.a)($n,2),oi=bi[0],Yi=bi[1],ha=Ba({values:oi,picker:pa,defaultDates:ua,generateConfig:ai}),Pa=Object(H.a)(ha,2),Co=Pa[0],vo=Pa[1],ko=Object(V.a)(oi,{postState:function(j){var J=j;if(gn[0]&&gn[1])return J;for(var te=0;te<2;te+=1)gn[te]&&!Ve(J,te)&&!Ve(ss,te)&&(J=Ot(J,ai.getNow(),te));return J}}),ls=Object(H.a)(ko,2),jo=ls[0],Zo=ls[1],ts=Object(V.a)([pa,pa],{value:Wa}),Ua=Object(H.a)(ts,2),Oo=Ua[0],as=Ua[1];Object(u.useEffect)(function(){as([pa,pa])},[pa]);var Ul=function(j,J){as(j),Ws&&Ws(J,j)},vl=ra({picker:pa,selectedValue:jo,locale:hi,disabled:gn,disabledDate:Za,generateConfig:ai},_s.current[1],_s.current[0]),Qs=Object(H.a)(vl,2),il=Qs[0],ll=Qs[1],jl=Object(V.a)(!1,{value:da,defaultValue:Ra,postState:function(j){return gn[ao]?!1:j},onChange:function(j){Eo&&Eo(j),!j&&zt.current&&zt.current.onClose&&zt.current.onClose()}}),Hl=Object(H.a)(jl,2),Js=Hl[0],fs=Hl[1],Xo=Js&&ao===0,Zs=Js&&ao===1,Gl=Object(u.useState)(0),Kl=Object(H.a)(Gl,2),ka=Kl[0],Ll=Kl[1];Object(u.useEffect)(function(){!Js&&Us.current&&Ll(Us.current.offsetWidth)},[Js]);var kl=u.useRef();function Al(K,j){if(K)clearTimeout(kl.current),_s.current[j]=!0,Ct(j),fs(K),Js||vo(null,j);else if(ao===j){fs(K);var J=_s.current;kl.current=setTimeout(function(){J===_s.current&&(_s.current={})})}}function Is(K){Al(!0,K),setTimeout(function(){var j=[Os,Ro][K];j.current&&j.current.focus()},0)}function al(K,j){var J=K,te=Ve(J,0),me=Ve(J,1);te&&me&&ai.isAfter(te,me)&&(pa==="week"&&!dn(ai,hi.locale,te,me)||pa==="quarter"&&!vr(ai,te,me)||pa!=="week"&&pa!=="quarter"&&pa!=="time"&&!fr(ai,te,me)?(j===0?(J=[te,null],me=null):(te=null,J=[null,me]),_s.current=Object(z.a)({},j,!0)):(pa!=="time"||is!==!1)&&(J=va(J,ai))),Zo(J);var we=J&&J[0]?ai.locale.format(hi.locale,J[0],wo[0]):"",je=J&&J[1]?ai.locale.format(hi.locale,J[1],wo[0]):"";if(_o){var qe={range:j===0?"start":"end"};_o(J,[we,je],qe)}var it=Ia(te,0,gn,ss),Rt=Ia(me,1,gn,ss),hr=J===null||it&&Rt;hr&&(Yi(J),hs&&(!Qt(ai,Ve(oi,0),te)||!Qt(ai,Ve(oi,1),me))&&hs(J,[we,je]));var tr=null;j===0&&!gn[1]?tr=1:j===1&&!gn[0]&&(tr=0),tr!==null&&tr!==ao&&(!_s.current[tr]||!Ve(J,tr))&&Ve(J,j)?Is(tr):Al(!1,j)}var eu=function(j){return Js&&zt.current&&zt.current.onKeyDown?zt.current.onKeyDown(j):(Object(S.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Nl={formatList:wo,generateConfig:ai,locale:hi},yl=ma(Ve(jo,0),Nl),Ls=Object(H.a)(yl,2),Xs=Ls[0],Wl=Ls[1],ol=ma(Ve(jo,1),Nl),So=Object(H.a)(ol,2),io=So[0],Bo=So[1],ds=function(j,J){var te=ai.locale.parse(hi.locale,j,wo),me=J===0?il:ll;te&&!me(te)&&(Zo(Ot(jo,te,J)),vo(te,J))},gs=Oi({valueTexts:Xs,onTextChange:function(j){return ds(j,0)}}),Wo=Object(H.a)(gs,3),vs=Wo[0],Ps=Wo[1],js=Wo[2],bl=Oi({valueTexts:io,onTextChange:function(j){return ds(j,1)}}),ml=Object(H.a)(bl,3),Dl=ml[0],xl=ml[1],El=ml[2],Pl=Object(u.useState)(null),zs=Object(H.a)(Pl,2),Cs=zs[0],Vs=zs[1],Ts=Object(u.useState)(null),ul=Object(H.a)(Ts,2),Cl=ul[0],Xl=ul[1],Jl=Hi(vs,{formatList:wo,generateConfig:ai,locale:hi}),cl=Object(H.a)(Jl,3),zl=cl[0],tu=cl[1],Iu=cl[2],bu=Hi(Dl,{formatList:wo,generateConfig:ai,locale:hi}),du=Object(H.a)(bu,3),hu=du[0],nu=du[1],dl=du[2],Tl=function(j){Xl(Ot(jo,j,ao)),ao===0?tu(j):nu(j)},wl=function(){Xl(Ot(jo,null,ao)),ao===0?Iu():dl()},Zl=function(j,J){return{blurToCancel:cs,forwardKeyDown:eu,onBlur:xs,isClickOutside:function(me){return!ge([ks.current,ps.current,Es.current],me)},onFocus:function(me){Ct(j),Mo&&Mo(me)},triggerOpen:function(me){Al(me,j)},onSubmit:function(){al(jo,j),J()},onCancel:function(){Al(!1,j),Zo(oi),J()}}},_l=Ii(Object(W.a)(Object(W.a)({},Zl(0,js)),{},{open:Xo,value:vs})),fu=Object(H.a)(_l,2),hl=fu[0],fl=fu[1],pu=fl.focused,mu=fl.typing,Lu=Ii(Object(W.a)(Object(W.a)({},Zl(1,El)),{},{open:Zs,value:Dl})),Ml=Object(H.a)(Lu,2),$l=Ml[0],iu=Ml[1],au=iu.focused,Yl=iu.typing,Ru=function(j){!Js&&!Os.current.contains(j.target)&&!Ro.current.contains(j.target)&&(gn[0]?gn[1]||Is(1):Is(0))},Nu=function(j){Js&&(pu||au)&&!Os.current.contains(j.target)&&!Ro.current.contains(j.target)&&j.preventDefault()},Ql=oi&&oi[0]?ai.locale.format(hi.locale,oi[0],"YYYYMMDDHHmmss"):"",gu=oi&&oi[1]?ai.locale.format(hi.locale,oi[1],"YYYYMMDDHHmmss"):"";Object(u.useEffect)(function(){Js||(Zo(oi),!Xs.length||Xs[0]===""?Ps(""):Wl!==vs&&js(),!io.length||io[0]===""?xl(""):Bo!==Dl&&El())},[Js,Xs,io]),Object(u.useEffect)(function(){Zo(oi)},[Ql,gu]),to&&(to.current={focus:function(){Os.current&&Os.current.focus()},blur:function(){Os.current&&Os.current.blur(),Ro.current&&Ro.current.blur()}});var wu=Object.keys(es||{}),vu=wu.map(function(K){var j=es[K],J=typeof j=="function"?j():j;return{label:K,onClick:function(){al(J,null),Al(!1,ao)},onMouseEnter:function(){Vs(J)},onMouseLeave:function(){Vs(null)}}});function Gs(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null;Js&&Cl&&Cl[0]&&Cl[1]&&ai.isAfter(Cl[1],Cl[0])&&(J=Cl);var te=ca;if(ca&&Object(Q.a)(ca)==="object"&&ca.defaultValue){var me=ca.defaultValue;te=Object(W.a)(Object(W.a)({},ca),{},{defaultValue:Ve(me,ao)||void 0})}var we=null;return oo&&(we=function(qe,it){return oo(qe,it,{range:ao?"end":"start"})}),u.createElement(ti.Provider,{value:{inRange:!0,panelPosition:K,rangedValue:Cs||jo,hoverRangedValue:J}},u.createElement(Wr,Object.assign({},at,j,{dateRender:we,showTime:te,mode:Oo[ao],generateConfig:ai,style:void 0,direction:bs,disabledDate:ao===0?il:ll,disabledTime:function(qe){return Qa?Qa(qe,ao===0?"start":"end"):!1},className:_()(Object(z.a)({},"".concat($r,"-panel-focused"),ao===0?!mu:!Yl)),value:Ve(jo,ao),locale:hi,tabIndex:-1,onPanelChange:function(qe,it){Ul(Ot(Oo,it,ao),Ot(jo,qe,ao));var Rt=qe;K==="right"&&Oo[ao]===it&&(Rt=Cn(Rt,it,ai,-1)),vo(Rt,ao)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var gl=0,ru=0;ao&&ps.current&&tl.current&&ks.current&&(gl=ps.current.offsetWidth+tl.current.offsetWidth,ks.current.offsetWidth&&gl>ks.current.offsetWidth&&(ru=gl));var Du=bs==="rtl"?{right:gl}:{left:gl};function Su(){var K,j=vn($r,Oo[ao],Jo),J=Un({prefixCls:$r,components:ns,needConfirmButton:cs,okDisabled:!Ve(jo,ao)||Za&&Za(jo[ao]),locale:hi,rangeList:vu,onOk:function(){Ve(jo,ao)&&(al(jo,ao),Go&&Go(jo))}});if(pa!=="time"&&!ca){var te=Co(ao),me=Cn(te,pa,ai),we=Oo[ao],je=we===pa,qe=Gs(je?"left":!1,{pickerValue:te,onPickerValueChange:function(tr){vo(tr,ao)}}),it=Gs("right",{pickerValue:me,onPickerValueChange:function(tr){vo(Cn(tr,pa,ai,-1),ao)}});bs==="rtl"?K=u.createElement(u.Fragment,null,it,je&&qe):K=u.createElement(u.Fragment,null,qe,je&&it)}else K=Gs();var Rt=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat($r,"-panels")},K),(j||J)&&u.createElement("div",{className:"".concat($r,"-footer")},j,J));return bo&&(Rt=bo(Rt)),u.createElement("div",{className:"".concat($r,"-panel-container"),style:{marginLeft:ru},ref:ks,onMouseDown:function(tr){tr.preventDefault()}},Rt)}var cu=u.createElement("div",{className:_()("".concat($r,"-range-wrapper"),"".concat($r,"-").concat(pa,"-range-wrapper")),style:{minWidth:ka}},u.createElement("div",{className:"".concat($r,"-range-arrow"),style:Du}),Su()),ou;Ko&&(ou=u.createElement("span",{className:"".concat($r,"-suffix")},Ko));var su;Rs&&(Ve(oi,0)&&!gn[0]||Ve(oi,1)&&!gn[1])&&(su=u.createElement("span",{onMouseDown:function(j){j.preventDefault(),j.stopPropagation()},onMouseUp:function(j){j.preventDefault(),j.stopPropagation();var J=oi;gn[0]||(J=Ot(J,null,0)),gn[1]||(J=Ot(J,null,1)),al(J,null),Al(!1,ao)},className:"".concat($r,"-clear")},qo||u.createElement("span",{className:"".concat($r,"-clear-btn")})));var xu={size:pe(pa,wo[0])},Au=0,he=0;ps.current&&Es.current&&tl.current&&(ao===0?he=ps.current.offsetWidth:(Au=gl,he=Es.current.offsetWidth));var $=bs==="rtl"?{right:Au}:{left:Au},L=function(j,J){var te=Ot(jo,j,ao);J==="submit"||J!=="key"&&!cs?(al(te,ao),ao===0?Iu():dl()):Zo(te)};return u.createElement(q.Provider,{value:{operationRef:zt,hideHeader:pa==="time",onDateMouseEnter:Tl,onDateMouseLeave:wl,hideRanges:!0,onSelect:L,open:Js}},u.createElement(wi,{visible:Js,popupElement:cu,popupStyle:Nn,prefixCls:$r,dropdownClassName:Qn,dropdownAlign:Yn,getPopupContainer:ui,transitionName:Zn,range:!0,direction:bs},u.createElement("div",Object.assign({ref:Us,className:_()($r,"".concat($r,"-range"),zr,(dr={},Object(z.a)(dr,"".concat($r,"-disabled"),gn[0]&&gn[1]),Object(z.a)(dr,"".concat($r,"-focused"),ao===0?pu:au),Object(z.a)(dr,"".concat($r,"-rtl"),bs==="rtl"),dr)),style:Gn,onClick:Ru,onMouseDown:Nu},st(at)),u.createElement("div",{className:_()("".concat($r,"-input"),(Kr={},Object(z.a)(Kr,"".concat($r,"-input-active"),ao===0),Object(z.a)(Kr,"".concat($r,"-input-placeholder"),!!zl),Kr)),ref:ps},u.createElement("input",Object.assign({id:Mr,disabled:gn[0],readOnly:Xa||!mu,value:zl||vs,onChange:function(j){Ps(j.target.value)},autoFocus:zi,placeholder:Ve(pi,0)||"",ref:Os},hl,xu,{autoComplete:Ms}))),u.createElement("div",{className:"".concat($r,"-range-separator"),ref:tl},No),u.createElement("div",{className:_()("".concat($r,"-input"),(Br={},Object(z.a)(Br,"".concat($r,"-input-active"),ao===1),Object(z.a)(Br,"".concat($r,"-input-placeholder"),!!hu),Br)),ref:Es},u.createElement("input",Object.assign({disabled:gn[1],readOnly:Xa||!Yl,value:hu||Dl,onChange:function(j){xl(j.target.value)},placeholder:Ve(pi,1)||"",ref:Ro},$l,xu,{autoComplete:Ms}))),u.createElement("div",{className:"".concat($r,"-active-bar"),style:Object(W.a)(Object(W.a)({},$),{},{width:he,position:"absolute"})}),ou,su)))}var Va=function(at){Object(X.a)(Kr,at);var dr=Object(M.a)(Kr);function Kr(){var Br;return Object(B.a)(this,Kr),Br=dr.apply(this,arguments),Br.pickerRef=u.createRef(),Br.focus=function(){Br.pickerRef.current&&Br.pickerRef.current.focus()},Br.blur=function(){Br.pickerRef.current&&Br.pickerRef.current.blur()},Br}return Object(P.a)(Kr,[{key:"render",value:function(){return u.createElement(za,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Kr}(u.Component),Ya=Va,Bi=ta,ro=i("61s2");function lo(at,dr,Kr){return Kr!==void 0?Kr:at==="year"&&dr.lang.yearPlaceholder?dr.lang.yearPlaceholder:at==="quarter"&&dr.lang.quarterPlaceholder?dr.lang.quarterPlaceholder:at==="month"&&dr.lang.monthPlaceholder?dr.lang.monthPlaceholder:at==="week"&&dr.lang.weekPlaceholder?dr.lang.weekPlaceholder:at==="time"&&dr.timePickerLocale.placeholder?dr.timePickerLocale.placeholder:dr.lang.placeholder}function no(at,dr,Kr){return Kr!==void 0?Kr:at==="year"&&dr.lang.yearPlaceholder?dr.lang.rangeYearPlaceholder:at==="month"&&dr.lang.monthPlaceholder?dr.lang.rangeMonthPlaceholder:at==="week"&&dr.lang.weekPlaceholder?dr.lang.rangeWeekPlaceholder:at==="time"&&dr.timePickerLocale.placeholder?dr.timePickerLocale.rangePlaceholder:dr.lang.rangePlaceholder}var co=i("uaoM"),To=i("H84U"),Ga=i("YMnH"),Po=i("3Nzz"),uo=function(at,dr){var Kr={};for(var Br in at)Object.prototype.hasOwnProperty.call(at,Br)&&dr.indexOf(Br)<0&&(Kr[Br]=at[Br]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,Br=Object.getOwnPropertySymbols(at);Pn<Br.length;Pn++)dr.indexOf(Br[Pn])<0&&Object.prototype.propertyIsEnumerable.call(at,Br[Pn])&&(Kr[Br[Pn]]=at[Br[Pn]]);return Kr};function ho(at){function dr(zr,Nn){var Qn=function(Zn){b()(ui,Zn);var Yn=x()(ui);function ui(ai){var hi;return c()(this,ui),hi=Yn.call(this,ai),hi.pickerRef=u.createRef(),hi.focus=function(){hi.pickerRef.current&&hi.pickerRef.current.focus()},hi.blur=function(){hi.pickerRef.current&&hi.pickerRef.current.blur()},hi.getDefaultLocale=function(){var pi=hi.props.locale,zi=d()(d()({},ro.a),pi);return zi.lang=d()(d()({},zi.lang),(pi||{}).lang),zi},hi.renderPicker=function(pi){var zi=hi.context,Ci=zi.getPrefixCls,na=zi.direction,La=zi.getPopupContainer,pa=hi.props,ca=pa.prefixCls,wa=pa.getPopupContainer,Ca=pa.className,No=pa.size,fo=pa.bordered,ea=fo===void 0?!0:fo,ua=pa.placeholder,da=uo(pa,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ra=hi.props,Za=Ra.format,Qa=Ra.showTime,oo=Ci("picker",ca),bo={showToday:!0},es={};zr&&(es.picker=zr);var ss=zr||hi.props.picker;return es=d()(d()(d()({},es),Qa?Fo(d()({format:Za,picker:ss},Qa)):{}),ss==="time"?Fo(d()(d()({format:Za},hi.props),{picker:ss})):{}),u.createElement(Po.b.Consumer,null,function(Rs){var Ko,qo=No||Rs;return u.createElement(Bi,d()({ref:hi.pickerRef,placeholder:lo(ss,pi,ua),suffixIcon:ss==="time"?u.createElement(O.a,null):u.createElement(C.a,null),clearIcon:u.createElement(R.a,null),allowClear:!0,transitionName:"slide-up"},bo,da,es,{locale:pi.lang,className:_()(Ca,(Ko={},r()(Ko,"".concat(oo,"-").concat(qo),qo),r()(Ko,"".concat(oo,"-borderless"),!ea),Ko)),prefixCls:oo,getPopupContainer:wa||La,generateConfig:at,prevIcon:u.createElement("span",{className:"".concat(oo,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(oo,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(oo,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(oo,"-super-next-icon")}),components:Qo,direction:na}))})},Object(co.a)(zr!=="quarter",Nn,"DatePicker.".concat(Nn," is legacy usage. Please use DatePicker[picker='").concat(zr,"'] directly.")),hi}return g()(ui,[{key:"render",value:function(){return u.createElement(Ga.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),ui}(u.Component);return Qn.contextType=To.b,Nn&&(Qn.displayName=Nn),Qn}var Kr=dr(),Br=dr("week","WeekPicker"),Pn=dr("month","MonthPicker"),$r=dr("year","YearPicker"),Mr=dr("time","TimePicker"),Gn=dr("quarter","QuarterPicker");return{DatePicker:Kr,WeekPicker:Br,MonthPicker:Pn,YearPicker:$r,TimePicker:Mr,QuarterPicker:Gn}}var zo=i("8ISB"),Oa=i.n(zo),mo=function(at,dr){var Kr={};for(var Br in at)Object.prototype.hasOwnProperty.call(at,Br)&&dr.indexOf(Br)<0&&(Kr[Br]=at[Br]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pn=0,Br=Object.getOwnPropertySymbols(at);Pn<Br.length;Pn++)dr.indexOf(Br[Pn])<0&&Object.prototype.propertyIsEnumerable.call(at,Br[Pn])&&(Kr[Br[Pn]]=at[Br[Pn]]);return Kr};function Do(at){var dr=function(Kr){b()(Pn,Kr);var Br=x()(Pn);function Pn(){var $r;return c()(this,Pn),$r=Br.apply(this,arguments),$r.pickerRef=u.createRef(),$r.focus=function(){$r.pickerRef.current&&$r.pickerRef.current.focus()},$r.blur=function(){$r.pickerRef.current&&$r.pickerRef.current.blur()},$r.getDefaultLocale=function(){var Mr=$r.props.locale,Gn=d()(d()({},ro.a),Mr);return Gn.lang=d()(d()({},Gn.lang),(Mr||{}).lang),Gn},$r.renderPicker=function(Mr){var Gn=$r.context,zr=Gn.getPrefixCls,Nn=Gn.direction,Qn=Gn.getPopupContainer,Zn=$r.props,Yn=Zn.prefixCls,ui=Zn.getPopupContainer,ai=Zn.className,hi=Zn.size,pi=Zn.bordered,zi=pi===void 0?!0:pi,Ci=Zn.placeholder,na=mo(Zn,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),La=$r.props,pa=La.format,ca=La.showTime,wa=La.picker,Ca=zr("picker",Yn),No={};return No=d()(d()(d()({},No),ca?Fo(d()({format:pa,picker:wa},ca)):{}),wa==="time"?Fo(d()(d()({format:pa},$r.props),{picker:wa})):{}),u.createElement(Po.b.Consumer,null,function(fo){var ea,ua=hi||fo;return u.createElement(Ya,d()({separator:u.createElement("span",{"aria-label":"to",className:"".concat(Ca,"-separator")},u.createElement(Oa.a,null)),ref:$r.pickerRef,placeholder:no(wa,Mr,Ci),suffixIcon:wa==="time"?u.createElement(O.a,null):u.createElement(C.a,null),clearIcon:u.createElement(R.a,null),allowClear:!0,transitionName:"slide-up"},na,No,{className:_()(ai,(ea={},r()(ea,"".concat(Ca,"-").concat(ua),ua),r()(ea,"".concat(Ca,"-borderless"),!zi),ea)),locale:Mr.lang,prefixCls:Ca,getPopupContainer:ui||Qn,generateConfig:at,prevIcon:u.createElement("span",{className:"".concat(Ca,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(Ca,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(Ca,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(Ca,"-super-next-icon")}),components:Qo,direction:Nn}))})},$r}return g()(Pn,[{key:"render",value:function(){return u.createElement(Ga.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Pn}(u.Component);return dr.contextType=To.b,dr}var Qo={button:t,rangeItem:e};function xo(at){return at?Array.isArray(at)?at:[at]:[]}function Fo(at){var dr=at.format,Kr=at.picker,Br=at.showHour,Pn=at.showMinute,$r=at.showSecond,Mr=at.use12Hours,Gn=xo(dr)[0],zr=d()({},at);return Gn&&(!Gn.includes("s")&&$r===void 0&&(zr.showSecond=!1),!Gn.includes("m")&&Pn===void 0&&(zr.showMinute=!1),!Gn.includes("H")&&!Gn.includes("h")&&Br===void 0&&(zr.showHour=!1),(Gn.includes("a")||Gn.includes("A"))&&Mr===void 0&&(zr.use12Hours=!0)),Kr==="time"?zr:{showTime:zr}}function Ho(at){var dr=ho(at),Kr=dr.DatePicker,Br=dr.WeekPicker,Pn=dr.MonthPicker,$r=dr.YearPicker,Mr=dr.TimePicker,Gn=dr.QuarterPicker,zr=Do(at),Nn=Kr;return Nn.WeekPicker=Br,Nn.MonthPicker=Pn,Nn.YearPicker=$r,Nn.RangePicker=zr,Nn.TimePicker=Mr,Nn.QuarterPicker=Gn,Nn}var go=Ho,qa=go(m),_a=D.a=qa},"+lIL":function(k,D,i){var y=i("ProS");i("/ry/"),i("3OrL");var p=i("L5E0"),S=i("7Phj");y.registerVisual(p),y.registerLayout(S)},"+nKL":function(k,D,i){"use strict";var y=i("wx14"),p=i("VTBJ"),S=i("U8pU"),v=i("ODXe"),m=i("rePB"),f=i("Ff2n"),d=i("q1tI"),u=i("i8i4"),o=i("TSYQ"),n=i.n(o),t=i("t23M"),a=d.forwardRef(function(Xe,pe){var Z=Xe.height,Y=Xe.offsetY,ne=Xe.offsetX,ce=Xe.children,ye=Xe.prefixCls,Ee=Xe.onInnerResize,Ce=Xe.innerProps,ue=Xe.rtl,ge=Xe.extra,Oe={},Je={display:"flex",flexDirection:"column"};if(Y!==void 0){var lt;Oe={height:Z,position:"relative",overflow:"hidden"},Je=Object(p.a)(Object(p.a)({},Je),{},(lt={transform:"translateY(".concat(Y,"px)")},Object(m.a)(lt,ue?"marginRight":"marginLeft",-ne),Object(m.a)(lt,"position","absolute"),Object(m.a)(lt,"left",0),Object(m.a)(lt,"right",0),Object(m.a)(lt,"top",0),lt))}return d.createElement("div",{style:Oe},d.createElement(t.a,{onResize:function(ke){var st=ke.offsetHeight;st&&Ee&&Ee()}},d.createElement("div",Object(y.a)({style:Je,className:n()(Object(m.a)({},"".concat(ye,"-holder-inner"),ye)),ref:pe},Ce),ce,ge)))});a.displayName="Filler";var e=a,l=i("wgJM");function r(Xe,pe){var Z="touches"in Xe?Xe.touches[0]:Xe;return Z[pe?"pageX":"pageY"]}var s=d.forwardRef(function(Xe,pe){var Z,Y=Xe.prefixCls,ne=Xe.rtl,ce=Xe.scrollOffset,ye=Xe.scrollRange,Ee=Xe.onStartMove,Ce=Xe.onStopMove,ue=Xe.onScroll,ge=Xe.horizontal,Oe=Xe.spinSize,Je=Xe.containerSize,lt=Xe.style,tt=Xe.thumbStyle,ke=d.useState(!1),st=Object(v.a)(ke,2),Ve=st[0],Ot=st[1],Ut=d.useState(null),ir=Object(v.a)(Ut,2),lr=ir[0],Sr=ir[1],mt=d.useState(null),or=Object(v.a)(mt,2),et=or[0],ur=or[1],qr=!ne,Fe=d.useRef(),$t=d.useRef(),Lr=d.useState(!1),pt=Object(v.a)(Lr,2),qt=pt[0],vr=pt[1],pn=d.useRef(),fr=function(){clearTimeout(pn.current),vr(!0),pn.current=setTimeout(function(){vr(!1)},3e3)},gr=ye-Je||0,dn=Je-Oe||0,Qt=gr>0,sr=d.useMemo(function(){if(ce===0||gr===0)return 0;var vt=ce/gr;return vt*dn},[ce,gr,dn]),Qr=function(_e){_e.stopPropagation(),_e.preventDefault()},Cn=d.useRef({top:sr,dragging:Ve,pageY:lr,startTop:et});Cn.current={top:sr,dragging:Ve,pageY:lr,startTop:et};var Fn=function(_e){Ot(!0),Sr(r(_e,ge)),ur(Cn.current.top),Ee(),_e.stopPropagation(),_e.preventDefault()};d.useEffect(function(){var vt=function(Ze){Ze.preventDefault()},_e=Fe.current,Ne=$t.current;return _e.addEventListener("touchstart",vt),Ne.addEventListener("touchstart",Fn),function(){_e.removeEventListener("touchstart",vt),Ne.removeEventListener("touchstart",Fn)}},[]);var ti=d.useRef();ti.current=gr;var ki=d.useRef();ki.current=dn,d.useEffect(function(){if(Ve){var vt,_e=function(Ze){var ct=Cn.current,gt=ct.dragging,kt=ct.pageY,xr=ct.startTop;if(l.a.cancel(vt),gt){var Hr=r(Ze,ge)-kt,on=xr;!qr&&ge?on-=Hr:on+=Hr;var Nt=ti.current,ot=ki.current,dt=ot?on/ot:0,Yt=Math.ceil(dt*Nt);Yt=Math.max(Yt,0),Yt=Math.min(Yt,Nt),vt=Object(l.a)(function(){ue(Yt,ge)})}},Ne=function(){Ot(!1),Ce()};return window.addEventListener("mousemove",_e),window.addEventListener("touchmove",_e),window.addEventListener("mouseup",Ne),window.addEventListener("touchend",Ne),function(){window.removeEventListener("mousemove",_e),window.removeEventListener("touchmove",_e),window.removeEventListener("mouseup",Ne),window.removeEventListener("touchend",Ne),l.a.cancel(vt)}}},[Ve]),d.useEffect(function(){fr()},[ce]),d.useImperativeHandle(pe,function(){return{delayHidden:fr}});var Dn="".concat(Y,"-scrollbar"),Bn={position:"absolute",visibility:qt&&Qt?null:"hidden"},Ft={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ge?(Bn.height=8,Bn.left=0,Bn.right=0,Bn.bottom=0,Ft.height="100%",Ft.width=Oe,qr?Ft.left=sr:Ft.right=sr):(Bn.width=8,Bn.top=0,Bn.bottom=0,qr?Bn.right=0:Bn.left=0,Ft.width="100%",Ft.height=Oe,Ft.top=sr),d.createElement("div",{ref:Fe,className:n()(Dn,(Z={},Object(m.a)(Z,"".concat(Dn,"-horizontal"),ge),Object(m.a)(Z,"".concat(Dn,"-vertical"),!ge),Object(m.a)(Z,"".concat(Dn,"-visible"),qt),Z)),style:Object(p.a)(Object(p.a)({},Bn),lt),onMouseDown:Qr,onMouseMove:fr},d.createElement("div",{ref:$t,className:n()("".concat(Dn,"-thumb"),Object(m.a)({},"".concat(Dn,"-thumb-moving"),Ve)),style:Object(p.a)(Object(p.a)({},Ft),tt),onMouseDown:Fn}))}),c=s;function h(Xe){var pe=Xe.children,Z=Xe.setRef,Y=d.useCallback(function(ne){Z(ne)},[]);return d.cloneElement(pe,{ref:Y})}function g(Xe,pe,Z,Y,ne,ce,ye){var Ee=ye.getKey;return Xe.slice(pe,Z+1).map(function(Ce,ue){var ge=pe+ue,Oe=ce(Ce,ge,{style:{width:Y}}),Je=Ee(Ce);return d.createElement(h,{key:Je,setRef:function(tt){return ne(Ce,tt)}},Oe)})}var A=i("m+aA"),b=i("1OyB"),w=i("vuIU"),x=function(){function Xe(){Object(b.a)(this,Xe),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(w.a)(Xe,[{key:"set",value:function(Z,Y){this.maps[Z]=Y,this.id+=1}},{key:"get",value:function(Z){return this.maps[Z]}}]),Xe}(),T=x;function _(Xe,pe,Z){var Y=d.useState(0),ne=Object(v.a)(Y,2),ce=ne[0],ye=ne[1],Ee=Object(d.useRef)(new Map),Ce=Object(d.useRef)(new T),ue=Object(d.useRef)();function ge(){l.a.cancel(ue.current)}function Oe(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ge();var tt=function(){Ee.current.forEach(function(st,Ve){if(st&&st.offsetParent){var Ot=Object(A.a)(st),Ut=Ot.offsetHeight;Ce.current.get(Ve)!==Ut&&Ce.current.set(Ve,Ot.offsetHeight)}}),ye(function(st){return st+1})};lt?tt():ue.current=Object(l.a)(tt)}function Je(lt,tt){var ke=Xe(lt),st=Ee.current.get(ke);tt?(Ee.current.set(ke,tt),Oe()):Ee.current.delete(ke),!st!==!tt&&(tt?pe==null||pe(lt):Z==null||Z(lt))}return Object(d.useEffect)(function(){return ge},[]),[Je,Oe,Ce.current,ce]}var E=i("TNol"),C=i("mBDr"),I=i("6cGi"),O=i("c+Xe"),F=i("ub+h"),R=i("bG1m"),B=i("Kwbf"),P=10;function X(Xe,pe,Z,Y,ne,ce,ye,Ee){var Ce=d.useRef(),ue=d.useState(null),ge=Object(v.a)(ue,2),Oe=ge[0],Je=ge[1];return Object(E.a)(function(){if(Oe&&Oe.times<P){if(!Xe.current){Je(function(fr){return Object(p.a)({},fr)});return}ce();var lt=Oe.targetAlign,tt=Oe.originAlign,ke=Oe.index,st=Oe.offset,Ve=Xe.current.clientHeight,Ot=!1,Ut=lt,ir=null;if(Ve){for(var lr=lt||tt,Sr=0,mt=0,or=0,et=Math.min(pe.length-1,ke),ur=0;ur<=et;ur+=1){var qr=ne(pe[ur]);mt=Sr;var Fe=Z.get(qr);or=mt+(Fe===void 0?Y:Fe),Sr=or}for(var $t=lr==="top"?st:Ve-st,Lr=et;Lr>=0;Lr-=1){var pt=ne(pe[Lr]),qt=Z.get(pt);if(qt===void 0){Ot=!0;break}if($t-=qt,$t<=0)break}switch(lr){case"top":ir=mt-st;break;case"bottom":ir=or-Ve+st;break;default:{var vr=Xe.current.scrollTop,pn=vr+Ve;mt<vr?Ut="top":or>pn&&(Ut="bottom")}}ir!==null&&ye(ir),ir!==Oe.lastTop&&(Ot=!0)}Ot&&Je(Object(p.a)(Object(p.a)({},Oe),{},{times:Oe.times+1,targetAlign:Ut,lastTop:ir}))}},[Oe,Xe.current]),function(lt){if(lt==null){Ee();return}if(l.a.cancel(Ce.current),typeof lt=="number")ye(lt);else if(lt&&Object(S.a)(lt)==="object"){var tt,ke=lt.align;"index"in lt?tt=lt.index:tt=pe.findIndex(function(Ot){return ne(Ot)===lt.key});var st=lt.offset,Ve=st===void 0?0:st;Je({times:0,index:tt,offset:Ve,originAlign:ke})}}}function M(Xe,pe,Z,Y){var ne=Z-Xe,ce=pe-Z,ye=Math.min(ne,ce)*2;if(Y<=ye){var Ee=Math.floor(Y/2);return Y%2?Z+Ee+1:Z-Ee}return ne>ce?Z-(Y-ce):Z+(Y-ne)}function z(Xe,pe,Z){var Y=Xe.length,ne=pe.length,ce,ye;if(Y===0&&ne===0)return null;Y<ne?(ce=Xe,ye=pe):(ce=pe,ye=Xe);var Ee={__EMPTY_ITEM__:!0};function Ce(tt){return tt!==void 0?Z(tt):Ee}for(var ue=null,ge=Math.abs(Y-ne)!==1,Oe=0;Oe<ye.length;Oe+=1){var Je=Ce(ce[Oe]),lt=Ce(ye[Oe]);if(Je!==lt){ue=Oe,ge=ge||Je!==Ce(ye[Oe+1]);break}}return ue===null?null:{index:ue,multiple:ge}}function W(Xe,pe,Z){var Y=d.useState(Xe),ne=Object(v.a)(Y,2),ce=ne[0],ye=ne[1],Ee=d.useState(null),Ce=Object(v.a)(Ee,2),ue=Ce[0],ge=Ce[1];return d.useEffect(function(){var Oe=z(ce||[],Xe||[],pe);(Oe==null?void 0:Oe.index)!==void 0&&(Z==null||Z(Oe.index),ge(Xe[Oe.index])),ye(Xe)},[Xe]),[ue]}var H=(typeof navigator=="undefined"?"undefined":Object(S.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),V=H,Q=function(Xe,pe){var Z=Object(d.useRef)(!1),Y=Object(d.useRef)(null);function ne(){clearTimeout(Y.current),Z.current=!0,Y.current=setTimeout(function(){Z.current=!1},50)}var ce=Object(d.useRef)({top:Xe,bottom:pe});return ce.current.top=Xe,ce.current.bottom=pe,function(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=ye<0&&ce.current.top||ye>0&&ce.current.bottom;return Ee&&Ce?(clearTimeout(Y.current),Z.current=!1):(!Ce||Z.current)&&ne(),!Z.current&&Ce}};function G(Xe,pe,Z,Y,ne){var ce=Object(d.useRef)(0),ye=Object(d.useRef)(null),Ee=Object(d.useRef)(null),Ce=Object(d.useRef)(!1),ue=Q(pe,Z);function ge(st,Ve){if(l.a.cancel(ye.current),ce.current+=Ve,Ee.current=Ve,ue(Ve))return;V||st.preventDefault(),ye.current=Object(l.a)(function(){var Ot=Ce.current?10:1;ne(ce.current*Ot),ce.current=0})}function Oe(st,Ve){ne(Ve,!0),V||st.preventDefault()}var Je=Object(d.useRef)(null),lt=Object(d.useRef)(null);function tt(st){if(!Xe)return;l.a.cancel(lt.current),lt.current=Object(l.a)(function(){Je.current=null},2);var Ve=st.deltaX,Ot=st.deltaY,Ut=st.shiftKey,ir=Ve,lr=Ot;(Je.current==="sx"||!Je.current&&(Ut||!1)&&Ot&&!Ve)&&(ir=Ot,lr=0,Je.current="sx");var Sr=Math.abs(ir),mt=Math.abs(lr);Je.current===null&&(Je.current=Y&&Sr>mt?"x":"y"),Je.current==="y"?ge(st,lr):Oe(st,ir)}function ke(st){if(!Xe)return;Ce.current=st.detail===Ee.current}return[tt,ke]}var ee=14/15;function q(Xe,pe,Z){var Y=Object(d.useRef)(!1),ne=Object(d.useRef)(0),ce=Object(d.useRef)(null),ye=Object(d.useRef)(null),Ee,Ce=function(Je){if(Y.current){var lt=Math.ceil(Je.touches[0].pageY),tt=ne.current-lt;ne.current=lt,Z(tt)&&Je.preventDefault(),clearInterval(ye.current),ye.current=setInterval(function(){tt*=ee,(!Z(tt,!0)||Math.abs(tt)<=.1)&&clearInterval(ye.current)},16)}},ue=function(){Y.current=!1,Ee()},ge=function(Je){Ee(),Je.touches.length===1&&!Y.current&&(Y.current=!0,ne.current=Math.ceil(Je.touches[0].pageY),ce.current=Je.target,ce.current.addEventListener("touchmove",Ce),ce.current.addEventListener("touchend",ue))};Ee=function(){ce.current&&(ce.current.removeEventListener("touchmove",Ce),ce.current.removeEventListener("touchend",ue))},Object(E.a)(function(){return Xe&&pe.current.addEventListener("touchstart",ge),function(){var Oe;(Oe=pe.current)===null||Oe===void 0||Oe.removeEventListener("touchstart",ge),Ee(),clearInterval(ye.current)}},[Xe])}var se=20;function re(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Z=Xe/pe*100;return isNaN(Z)&&(Z=0),Z=Math.max(Z,se),Z=Math.min(Z,Xe/2),Math.floor(Z)}function Ae(Xe,pe,Z,Y){var ne=d.useMemo(function(){return[new Map,[]]},[Xe,Z.id,Y]),ce=Object(v.a)(ne,2),ye=ce[0],Ee=ce[1],Ce=function(ge){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge,Je=ye.get(ge),lt=ye.get(Oe);if(Je===void 0||lt===void 0)for(var tt=Xe.length,ke=Ee.length;ke<tt;ke+=1){var st,Ve=Xe[ke],Ot=pe(Ve);ye.set(Ot,ke);var Ut=(st=Z.get(Ot))!==null&&st!==void 0?st:Y;if(Ee[ke]=(Ee[ke-1]||0)+Ut,Ot===ge&&(Je=ke),Ot===Oe&&(lt=ke),Je!==void 0&&lt!==void 0)break}return{top:Ee[Je-1]||0,bottom:Ee[lt]}};return Ce}var Te=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Re=[],Ge={overflowY:"auto",overflowAnchor:"none"};function Ue(Xe,pe){var Z=Xe.prefixCls,Y=Z===void 0?"rc-virtual-list":Z,ne=Xe.className,ce=Xe.height,ye=Xe.itemHeight,Ee=Xe.fullHeight,Ce=Ee===void 0?!0:Ee,ue=Xe.style,ge=Xe.data,Oe=Xe.children,Je=Xe.itemKey,lt=Xe.virtual,tt=Xe.direction,ke=Xe.scrollWidth,st=Xe.component,Ve=st===void 0?"div":st,Ot=Xe.onScroll,Ut=Xe.onVirtualScroll,ir=Xe.onVisibleChange,lr=Xe.innerProps,Sr=Xe.extraRender,mt=Xe.styles,or=Object(f.a)(Xe,Te),et=!!(lt!==!1&&ce&&ye),ur=et&&ge&&(ye*ge.length>ce||!!ke),qr=tt==="rtl",Fe=n()(Y,Object(m.a)({},"".concat(Y,"-rtl"),qr),ne),$t=ge||Re,Lr=Object(d.useRef)(),pt=Object(d.useRef)(),qt=Object(d.useState)(0),vr=Object(v.a)(qt,2),pn=vr[0],fr=vr[1],gr=Object(d.useState)(0),dn=Object(v.a)(gr,2),Qt=dn[0],sr=dn[1],Qr=Object(d.useState)(!1),Cn=Object(v.a)(Qr,2),Fn=Cn[0],ti=Cn[1],ki=function(){ti(!0)},Dn=function(){ti(!1)},Bn=d.useCallback(function(Kn){return typeof Je=="function"?Je(Kn):Kn==null?void 0:Kn[Je]},[Je]),Ft={getKey:Bn};function vt(Kn){fr(function(ei){var Si;typeof Kn=="function"?Si=Kn(ei):Si=Kn;var Vr=ci(Si);return Lr.current.scrollTop=Vr,Vr})}var _e=Object(d.useRef)({start:0,end:$t.length}),Ne=Object(d.useRef)(),Ie=W($t,Bn),Ze=Object(v.a)(Ie,1),ct=Ze[0];Ne.current=ct;var gt=_(Bn,null,null),kt=Object(v.a)(gt,4),xr=kt[0],Hr=kt[1],on=kt[2],Nt=kt[3],ot=d.useMemo(function(){if(!et)return{scrollHeight:void 0,start:0,end:$t.length-1,offset:void 0};if(!ur){var Kn;return{scrollHeight:((Kn=pt.current)===null||Kn===void 0?void 0:Kn.offsetHeight)||0,start:0,end:$t.length-1,offset:void 0}}for(var ei=0,Si,Vr,fn,kn=$t.length,It=0;It<kn;It+=1){var yt=$t[It],xt=Bn(yt),Tt=on.get(xt),Lt=ei+(Tt===void 0?ye:Tt);Lt>=pn&&Si===void 0&&(Si=It,Vr=ei),Lt>pn+ce&&fn===void 0&&(fn=It),ei=Lt}return Si===void 0&&(Si=0,Vr=0,fn=Math.ceil(ce/ye)),fn===void 0&&(fn=$t.length-1),fn=Math.min(fn+1,$t.length-1),{scrollHeight:ei,start:Si,end:fn,offset:Vr}},[ur,et,pn,$t,Nt,ce]),dt=ot.scrollHeight,Yt=ot.start,Pt=ot.end,Et=ot.offset;_e.current.start=Yt,_e.current.end=Pt;var Bt=d.useState({width:0,height:ce}),wt=Object(v.a)(Bt,2),Mt=wt[0],Nr=wt[1],Tr=function(ei){Nr({width:ei.width||ei.offsetWidth,height:ei.height||ei.offsetHeight})},yr=Object(d.useRef)(),en=Object(d.useRef)(),sn=d.useMemo(function(){return re(Mt.width,ke)},[Mt.width,ke]),Vn=d.useMemo(function(){return re(Mt.height,dt)},[Mt.height,dt]),jn=dt-ce,ri=Object(d.useRef)(jn);ri.current=jn;function ci(Kn){var ei=Kn;return Number.isNaN(ri.current)||(ei=Math.min(ei,ri.current)),ei=Math.max(ei,0),ei}var gi=pn<=0,Ni=pn>=jn,Qe=Q(gi,Ni),Se=function(){return{x:qr?-Qt:Qt,y:pn}},Pe=Object(d.useRef)(Se()),He=Object(C.a)(function(){if(Ut){var Kn=Se();(Pe.current.x!==Kn.x||Pe.current.y!==Kn.y)&&(Ut(Kn),Pe.current=Kn)}});function Ye(Kn,ei){var Si=Kn;ei?(Object(u.flushSync)(function(){sr(Si)}),He()):vt(Si)}function ze(Kn){var ei=Kn.currentTarget.scrollTop;ei!==pn&&vt(ei),Ot==null||Ot(Kn),He()}var $e=function(ei){var Si=ei,Vr=ke-Mt.width;return Si=Math.max(Si,0),Si=Math.min(Si,Vr),Si},St=Object(C.a)(function(Kn,ei){ei?(Object(u.flushSync)(function(){sr(function(Si){var Vr=Si+(qr?-Kn:Kn);return $e(Vr)})}),He()):vt(function(Si){var Vr=Si+Kn;return Vr})}),ft=G(et,gi,Ni,!!ke,St),Ht=Object(v.a)(ft,2),Er=Ht[0],Fr=Ht[1];q(et,Lr,function(Kn,ei){return Qe(Kn,ei)?!1:(Er({preventDefault:function(){},deltaY:Kn}),!0)}),Object(E.a)(function(){function Kn(Si){et&&Si.preventDefault()}var ei=Lr.current;return ei.addEventListener("wheel",Er),ei.addEventListener("DOMMouseScroll",Fr),ei.addEventListener("MozMousePixelScroll",Kn),function(){ei.removeEventListener("wheel",Er),ei.removeEventListener("DOMMouseScroll",Fr),ei.removeEventListener("MozMousePixelScroll",Kn)}},[et]),Object(E.a)(function(){ke&&sr(function(Kn){return $e(Kn)})},[Mt.width,ke]);var tn=function(){var ei,Si;(ei=yr.current)===null||ei===void 0||ei.delayHidden(),(Si=en.current)===null||Si===void 0||Si.delayHidden()},Zt=X(Lr,$t,on,ye,Bn,function(){return Hr(!0)},vt,tn);d.useImperativeHandle(pe,function(){return{getScrollInfo:Se,scrollTo:function(ei){function Si(Vr){return Vr&&Object(S.a)(Vr)==="object"&&("left"in Vr||"top"in Vr)}Si(ei)?(ei.left!==void 0&&sr($e(ei.left)),Zt(ei.top)):Zt(ei)}}}),Object(E.a)(function(){if(ir){var Kn=$t.slice(Yt,Pt+1);ir(Kn,$t)}},[Yt,Pt,$t]);var Rn=Ae($t,Bn,on,ye),vn=Sr==null?void 0:Sr({start:Yt,end:Pt,virtual:ur,offsetX:Qt,offsetY:Et,rtl:qr,getSize:Rn}),Un=g($t,Yt,Pt,ke,xr,Oe,Ft),hn=null;ce&&(hn=Object(p.a)(Object(m.a)({},Ce?"height":"maxHeight",ce),Ge),et&&(hn.overflowY="hidden",ke&&(hn.overflowX="hidden"),Fn&&(hn.pointerEvents="none")));var Wr={};return qr&&(Wr.dir="rtl"),d.createElement("div",Object(y.a)({style:Object(p.a)(Object(p.a)({},ue),{},{position:"relative"}),className:Fe},Wr,or),d.createElement(t.a,{onResize:Tr},d.createElement(Ve,{className:"".concat(Y,"-holder"),style:hn,ref:Lr,onScroll:ze,onMouseEnter:tn},d.createElement(e,{prefixCls:Y,height:dt,offsetX:Qt,offsetY:Et,scrollWidth:ke,onInnerResize:Hr,ref:pt,innerProps:lr,rtl:qr,extra:vn},Un))),ur&&dt>ce&&d.createElement(c,{ref:yr,prefixCls:Y,scrollOffset:pn,scrollRange:dt,rtl:qr,onScroll:Ye,onStartMove:ki,onStopMove:Dn,spinSize:Vn,containerSize:Mt.height,style:mt==null?void 0:mt.verticalScrollBar,thumbStyle:mt==null?void 0:mt.verticalScrollBarThumb}),ur&&ke&&d.createElement(c,{ref:en,prefixCls:Y,scrollOffset:Qt,scrollRange:ke,rtl:qr,onScroll:Ye,onStartMove:ki,onStopMove:Dn,spinSize:sn,containerSize:Mt.width,horizontal:!0,style:mt==null?void 0:mt.horizontalScrollBar,thumbStyle:mt==null?void 0:mt.horizontalScrollBarThumb}))}var nt=d.forwardRef(Ue);nt.displayName="List";var Le=nt,le=D.a=Le},"+rIm":function(k,D,i){var y=i("bYtY"),p=y.retrieve,S=y.defaults,v=y.extend,m=y.each,f=i("7aKB"),d=i("IwbS"),u=i("Qxkt"),o=i("OELB"),n=o.isRadianAroundZero,t=o.remRadian,a=i("oVpE"),e=a.createSymbol,l=i("Fofx"),r=i("QBsz"),s=r.applyTransform,c=i("aX7z"),h=c.shouldShowAllLabels,g=Math.PI,A=function(M,z){this.opt=z,this.axisModel=M,S(z,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new d.Group;var W=new d.Group({position:z.position.slice(),rotation:z.rotation});W.updateTransform(),this._transform=W.transform,this._dumbGroup=W};A.prototype={constructor:A,hasBuilder:function(M){return!!b[M]},add:function(M){b[M].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var M=this.opt,z=this.axisModel;if(!z.get("axisLine.show"))return;var W=this.axisModel.axis.getExtent(),H=this._transform,V=[W[0],0],Q=[W[1],0];H&&(s(V,V,H),s(Q,Q,H));var G=v({lineCap:"round"},z.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:M.strokeContainThreshold||5,silent:!0,z2:1}));var ee=z.get("axisLine.symbol"),q=z.get("axisLine.symbolSize"),se=z.get("axisLine.symbolOffset")||0;if(typeof se=="number"&&(se=[se,se]),ee!=null){typeof ee=="string"&&(ee=[ee,ee]),(typeof q=="string"||typeof q=="number")&&(q=[q,q]);var re=q[0],Ae=q[1];m([{rotate:M.rotation+Math.PI/2,offset:se[0],r:0},{rotate:M.rotation-Math.PI/2,offset:se[1],r:Math.sqrt((V[0]-Q[0])*(V[0]-Q[0])+(V[1]-Q[1])*(V[1]-Q[1]))}],function(Te,Re){if(ee[Re]!=="none"&&ee[Re]!=null){var Ge=e(ee[Re],-re/2,-Ae/2,re,Ae,G.stroke,!0),Ue=Te.r+Te.offset,nt=[V[0]+Ue*Math.cos(M.rotation),V[1]-Ue*Math.sin(M.rotation)];Ge.attr({rotation:Te.rotate,position:nt,silent:!0,z2:11}),this.group.add(Ge)}},this)}},axisTickLabel:function(){var M=this.axisModel,z=this.opt,W=R(this,M,z),H=P(this,M,z);E(M,H,W),B(this,M,z)},axisName:function(){var M=this.opt,z=this.axisModel,W=p(M.axisName,z.get("name"));if(!W)return;var H=z.get("nameLocation"),V=M.nameDirection,Q=z.getModel("nameTextStyle"),G=z.get("nameGap")||0,ee=this.axisModel.axis.getExtent(),q=ee[0]>ee[1]?-1:1,se=[H==="start"?ee[0]-q*G:H==="end"?ee[1]+q*G:(ee[0]+ee[1])/2,O(H)?M.labelOffset+V*G:0],re,Ae=z.get("nameRotate");Ae!=null&&(Ae=Ae*g/180);var Te;O(H)?re=x(M.rotation,Ae!=null?Ae:M.rotation,V):(re=T(M,H,Ae||0,ee),Te=M.axisNameAvailableWidth,Te!=null&&(Te=Math.abs(Te/Math.sin(re.rotation)),!isFinite(Te)&&(Te=null)));var Re=Q.getFont(),Ge=z.get("nameTruncate",!0)||{},Ue=Ge.ellipsis,nt=p(M.nameTruncateMaxWidth,Ge.maxWidth,Te),Le=Ue!=null&&nt!=null?f.truncateText(W,nt,Re,Ue,{minChar:2,placeholder:Ge.placeholder}):W,le=z.get("tooltip",!0),Xe=z.mainType,pe={componentType:Xe,name:W,$vars:["name"]};pe[Xe+"Index"]=z.componentIndex;var Z=new d.Text({anid:"name",__fullText:W,__truncatedText:Le,position:se,rotation:re.rotation,silent:_(z),z2:1,tooltip:le&&le.show?v({content:W,formatter:function(){return W},formatterParams:pe},le):null});d.setTextStyle(Z.style,Q,{text:Le,textFont:Re,textFill:Q.getTextColor()||z.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||re.textAlign,textVerticalAlign:Q.get("verticalAlign")||re.textVerticalAlign}),z.get("triggerEvent")&&(Z.eventData=w(z),Z.eventData.targetType="axisName",Z.eventData.name=W),this._dumbGroup.add(Z),Z.updateTransform(),this.group.add(Z),Z.decomposeTransform()}},w=A.makeAxisEventDataBase=function(M){var z={componentType:M.mainType,componentIndex:M.componentIndex};return z[M.mainType+"Index"]=M.componentIndex,z},x=A.innerTextLayout=function(M,z,W){var H=t(z-M),V,Q;return n(H)?(Q=W>0?"top":"bottom",V="center"):n(H-g)?(Q=W>0?"bottom":"top",V="center"):(Q="middle",H>0&&H<g?V=W>0?"right":"left":V=W>0?"left":"right"),{rotation:H,textAlign:V,textVerticalAlign:Q}};function T(M,z,W,H){var V=t(W-M.rotation),Q,G,ee=H[0]>H[1],q=z==="start"&&!ee||z!=="start"&&ee;return n(V-g/2)?(G=q?"bottom":"top",Q="center"):n(V-g*1.5)?(G=q?"top":"bottom",Q="center"):(G="middle",V<g*1.5&&V>g/2?Q=q?"left":"right":Q=q?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var _=A.isLabelSilent=function(M){var z=M.get("tooltip");return M.get("silent")||!(M.get("triggerEvent")||z&&z.show)};function E(M,z,W){if(h(M.axis))return;var H=M.get("axisLabel.showMinLabel"),V=M.get("axisLabel.showMaxLabel");z=z||[],W=W||[];var Q=z[0],G=z[1],ee=z[z.length-1],q=z[z.length-2],se=W[0],re=W[1],Ae=W[W.length-1],Te=W[W.length-2];H===!1?(C(Q),C(se)):I(Q,G)&&(H?(C(G),C(re)):(C(Q),C(se))),V===!1?(C(ee),C(Ae)):I(q,ee)&&(V?(C(q),C(Te)):(C(ee),C(Ae)))}function C(M){M&&(M.ignore=!0)}function I(M,z,W){var H=M&&M.getBoundingRect().clone(),V=z&&z.getBoundingRect().clone();if(!H||!V)return;var Q=l.identity([]);return l.rotate(Q,Q,-M.rotation),H.applyTransform(l.mul([],Q,M.getLocalTransform())),V.applyTransform(l.mul([],Q,z.getLocalTransform())),H.intersect(V)}function O(M){return M==="middle"||M==="center"}function F(M,z,W,H,V){for(var Q=[],G=[],ee=[],q=0;q<M.length;q++){var se=M[q].coord;G[0]=se,G[1]=0,ee[0]=se,ee[1]=W,z&&(s(G,G,z),s(ee,ee,z));var re=new d.Line({anid:V+"_"+M[q].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:ee[0],y2:ee[1]},style:H,z2:2,silent:!0});Q.push(re)}return Q}function R(M,z,W){var H=z.axis,V=z.getModel("axisTick");if(!V.get("show")||H.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=W.tickDirection*V.get("length"),ee=H.getTicksCoords(),q=F(ee,M._transform,G,S(Q.getLineStyle(),{stroke:z.get("axisLine.lineStyle.color")}),"ticks"),se=0;se<q.length;se++)M.group.add(q[se]);return q}function B(M,z,W){var H=z.axis,V=z.getModel("minorTick");if(!V.get("show")||H.scale.isBlank())return;var Q=H.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),ee=W.tickDirection*V.get("length"),q=S(G.getLineStyle(),S(z.getModel("axisTick").getLineStyle(),{stroke:z.get("axisLine.lineStyle.color")})),se=0;se<Q.length;se++)for(var re=F(Q[se],M._transform,ee,q,"minorticks_"+se),Ae=0;Ae<re.length;Ae++)M.group.add(re[Ae])}function P(M,z,W){var H=z.axis,V=p(W.axisLabelShow,z.get("axisLabel.show"));if(!V||H.scale.isBlank())return;var Q=z.getModel("axisLabel"),G=Q.get("margin"),ee=H.getViewLabels(),q=(p(W.labelRotate,Q.get("rotate"))||0)*g/180,se=x(W.rotation,q,W.labelDirection),re=z.getCategories&&z.getCategories(!0),Ae=[],Te=_(z),Re=z.get("triggerEvent");return m(ee,function(Ge,Ue){var nt=Ge.tickValue,Le=Ge.formattedLabel,le=Ge.rawLabel,Xe=Q;re&&re[nt]&&re[nt].textStyle&&(Xe=new u(re[nt].textStyle,Q,z.ecModel));var pe=Xe.getTextColor()||z.get("axisLine.lineStyle.color"),Z=H.dataToCoord(nt),Y=[Z,W.labelOffset+W.labelDirection*G],ne=new d.Text({anid:"label_"+nt,position:Y,rotation:se.rotation,silent:Te,z2:10});d.setTextStyle(ne.style,Xe,{text:Le,textAlign:Xe.getShallow("align",!0)||se.textAlign,textVerticalAlign:Xe.getShallow("verticalAlign",!0)||Xe.getShallow("baseline",!0)||se.textVerticalAlign,textFill:typeof pe=="function"?pe(H.type==="category"?le:H.type==="value"?nt+"":nt,Ue):pe}),Re&&(ne.eventData=w(z),ne.eventData.targetType="axisLabel",ne.eventData.value=le),M._dumbGroup.add(ne),ne.updateTransform(),Ae.push(ne),M.group.add(ne),ne.decomposeTransform()}),Ae}var X=A;k.exports=X},"+wW9":function(k,D,i){var y=i("bYtY"),p=y.each,S=y.isArray,v=y.isObject,m=i("JuEJ"),f=i("4NO4"),d=f.normalizeToArray;function u(l,r){r=r.split(",");for(var s=l,c=0;c<r.length&&!(s=s&&s[r[c]],s==null);c++);return s}function o(l,r,s,c){r=r.split(",");for(var h=l,g,A=0;A<r.length-1;A++)g=r[A],h[g]==null&&(h[g]={}),h=h[g];(c||h[r[A]]==null)&&(h[r[A]]=s)}function n(l){p(t,function(r){r[0]in l&&!(r[1]in l)&&(l[r[1]]=l[r[0]])})}var t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],a=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,r){m(l,r),l.series=d(l.series),p(l.series,function(s){if(!v(s))return;var c=s.type;if(c==="line")s.clipOverflow!=null&&(s.clip=s.clipOverflow);else if(c==="pie"||c==="gauge")s.clockWise!=null&&(s.clockwise=s.clockWise);else if(c==="gauge"){var h=u(s,"pointer.color");h!=null&&o(s,"itemStyle.color",h)}n(s)}),l.dataRange&&(l.visualMap=l.dataRange),p(a,function(s){var c=l[s];c&&(S(c)||(c=[c]),p(c,function(h){n(h)}))})}k.exports=e},"/IIm":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("H6uX"),m=i("IwbS"),f=i("pP6R"),d=i("gPAo"),u=S.curry,o=S.each,n=S.map,t=Math.min,a=Math.max,e=Math.pow,l=1e4,r=6,s=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"},A={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 w(ue){v.call(this),this._zr=ue,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={},o(Y,function(ge,Oe){this._handlers[Oe]=S.bind(ge,this)},this)}w.prototype={constructor:w,enableBrush:function(ue){return this._brushType&&T(this),ue.brushType&&x(this,ue),this},setPanels:function(ue){if(ue&&ue.length){var ge=this._panels={};S.each(ue,function(Oe){ge[Oe.panelId]=S.clone(Oe)})}else this._panels=null;return this},mount:function(ue){ue=ue||{},this._enableGlobalPan=ue.enableGlobalPan;var ge=this.group;return this._zr.add(ge),ge.attr({position:ue.position||[0,0],rotation:ue.rotation||0,scale:ue.scale||[1,1]}),this._transform=ge.getLocalTransform(),this},eachCover:function(ue,ge){o(this._covers,ue,ge)},updateCovers:function(ue){ue=S.map(ue,function(Ut){return S.merge(S.clone(A),Ut,!0)});var ge="\0-brush-index-",Oe=this._covers,Je=this._covers=[],lt=this,tt=this._creatingCover;return new d(Oe,ue,st,ke).add(Ve).update(Ve).remove(Ot).execute(),this;function ke(Ut,ir){return(Ut.id!=null?Ut.id:ge+ir)+"-"+Ut.brushType}function st(Ut,ir){return ke(Ut.__brushOption,ir)}function Ve(Ut,ir){var lr=ue[Ut];if(ir!=null&&Oe[ir]===tt)Je[Ut]=Oe[ir];else{var Sr=Je[Ut]=ir!=null?(Oe[ir].__brushOption=lr,Oe[ir]):I(lt,C(lt,lr));R(lt,Sr)}}function Ot(Ut){Oe[Ut]!==tt&&lt.group.remove(Oe[Ut])}},unmount:function(){return this.enableBrush(!1),M(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},S.mixin(w,v);function x(ue,ge){var Oe=ue._zr;ue._enableGlobalPan||f.take(Oe,c,ue._uid),_(Oe,ue._handlers),ue._brushType=ge.brushType,ue._brushOption=S.merge(S.clone(A),ge,!0)}function T(ue){var ge=ue._zr;f.release(ge,c,ue._uid),E(ge,ue._handlers),ue._brushType=ue._brushOption=null}function _(ue,ge){o(ge,function(Oe,Je){ue.on(Je,Oe)})}function E(ue,ge){o(ge,function(Oe,Je){ue.off(Je,Oe)})}function C(ue,ge){var Oe=ye[ge.brushType].createCover(ue,ge);return Oe.__brushOption=ge,F(Oe,ge),ue.group.add(Oe),Oe}function I(ue,ge){var Oe=B(ge);return Oe.endCreating&&(Oe.endCreating(ue,ge),F(ge,ge.__brushOption)),ge}function O(ue,ge){var Oe=ge.__brushOption;B(ge).updateCoverShape(ue,ge,Oe.range,Oe)}function F(ue,ge){var Oe=ge.z;Oe==null&&(Oe=l),ue.traverse(function(Je){Je.z=Oe,Je.z2=Oe})}function R(ue,ge){B(ge).updateCommon(ue,ge),O(ue,ge)}function B(ue){return ye[ue.__brushOption.brushType]}function P(ue,ge,Oe){var Je=ue._panels;if(!Je)return!0;var lt,tt=ue._transform;return o(Je,function(ke){ke.isTargetByCursor(ge,Oe,tt)&&(lt=ke)}),lt}function X(ue,ge){var Oe=ue._panels;if(!Oe)return!0;var Je=ge.__brushOption.panelId;return Je!=null?Oe[Je]:!0}function M(ue){var ge=ue._covers,Oe=ge.length;return o(ge,function(Je){ue.group.remove(Je)},ue),ge.length=0,!!Oe}function z(ue,ge){var Oe=n(ue._covers,function(Je){var lt=Je.__brushOption,tt=S.clone(lt.range);return{brushType:lt.brushType,panelId:lt.panelId,range:tt}});ue.trigger("brush",Oe,{isEnd:!!ge.isEnd,removeOnClick:!!ge.removeOnClick})}function W(ue){var ge=ue._track;if(!ge.length)return!1;var Oe=ge[ge.length-1],Je=ge[0],lt=Oe[0]-Je[0],tt=Oe[1]-Je[1],ke=e(lt*lt+tt*tt,.5);return ke>r}function H(ue){var ge=ue.length-1;return ge<0&&(ge=0),[ue[0],ue[ge]]}function V(ue,ge,Oe,Je){var lt=new m.Group;return lt.add(new m.Rect({name:"main",style:q(Oe),silent:!0,draggable:!0,cursor:"move",drift:u(ue,ge,lt,"nswe"),ondragend:u(z,ge,{isEnd:!0})})),o(Je,function(tt){lt.add(new m.Rect({name:tt,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(ue,ge,lt,tt),ondragend:u(z,ge,{isEnd:!0})}))}),lt}function Q(ue,ge,Oe,Je){var lt=Je.brushStyle.lineWidth||0,tt=a(lt,s),ke=Oe[0][0],st=Oe[1][0],Ve=ke-lt/2,Ot=st-lt/2,Ut=Oe[0][1],ir=Oe[1][1],lr=Ut-tt+lt/2,Sr=ir-tt+lt/2,mt=Ut-ke,or=ir-st,et=mt+lt,ur=or+lt;ee(ue,ge,"main",ke,st,mt,or),Je.transformable&&(ee(ue,ge,"w",Ve,Ot,tt,ur),ee(ue,ge,"e",lr,Ot,tt,ur),ee(ue,ge,"n",Ve,Ot,et,tt),ee(ue,ge,"s",Ve,Sr,et,tt),ee(ue,ge,"nw",Ve,Ot,tt,tt),ee(ue,ge,"ne",lr,Ot,tt,tt),ee(ue,ge,"sw",Ve,Sr,tt,tt),ee(ue,ge,"se",lr,Sr,tt,tt))}function G(ue,ge){var Oe=ge.__brushOption,Je=Oe.transformable,lt=ge.childAt(0);lt.useStyle(q(Oe)),lt.attr({silent:!Je,cursor:Je?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(tt){var ke=ge.childOfName(tt),st=Ae(ue,tt);ke&&ke.attr({silent:!Je,invisible:!Je,cursor:Je?g[st]+"-resize":null})})}function ee(ue,ge,Oe,Je,lt,tt,ke){var st=ge.childOfName(Oe);st&&st.setShape(nt(Ue(ue,ge,[[Je,lt],[Je+tt,lt+ke]])))}function q(ue){return S.defaults({strokeNoScale:!0},ue.brushStyle)}function se(ue,ge,Oe,Je){var lt=[t(ue,Oe),t(ge,Je)],tt=[a(ue,Oe),a(ge,Je)];return[[lt[0],tt[0]],[lt[1],tt[1]]]}function re(ue){return m.getTransform(ue.group)}function Ae(ue,ge){if(ge.length>1){ge=ge.split("");var Oe=[Ae(ue,ge[0]),Ae(ue,ge[1])];return(Oe[0]==="e"||Oe[0]==="w")&&Oe.reverse(),Oe.join("")}else{var Je={w:"left",e:"right",n:"top",s:"bottom"},lt={left:"w",right:"e",top:"n",bottom:"s"},Oe=m.transformDirection(Je[ge],re(ue));return lt[Oe]}}function Te(ue,ge,Oe,Je,lt,tt,ke,st){var Ve=Je.__brushOption,Ot=ue(Ve.range),Ut=Ge(Oe,tt,ke);o(lt.split(""),function(ir){var lr=h[ir];Ot[lr[0]][lr[1]]+=Ut[lr[0]]}),Ve.range=ge(se(Ot[0][0],Ot[1][0],Ot[0][1],Ot[1][1])),R(Oe,Je),z(Oe,{isEnd:!1})}function Re(ue,ge,Oe,Je,lt){var tt=ge.__brushOption.range,ke=Ge(ue,Oe,Je);o(tt,function(st){st[0]+=ke[0],st[1]+=ke[1]}),R(ue,ge),z(ue,{isEnd:!1})}function Ge(ue,ge,Oe){var Je=ue.group,lt=Je.transformCoordToLocal(ge,Oe),tt=Je.transformCoordToLocal(0,0);return[lt[0]-tt[0],lt[1]-tt[1]]}function Ue(ue,ge,Oe){var Je=X(ue,ge);return Je&&Je!==!0?Je.clipPath(Oe,ue._transform):S.clone(Oe)}function nt(ue){var ge=t(ue[0][0],ue[1][0]),Oe=t(ue[0][1],ue[1][1]),Je=a(ue[0][0],ue[1][0]),lt=a(ue[0][1],ue[1][1]);return{x:ge,y:Oe,width:Je-ge,height:lt-Oe}}function Le(ue,ge,Oe){if(!ue._brushType||ce(ue,ge))return;var Je=ue._zr,lt=ue._covers,tt=P(ue,ge,Oe);if(!ue._dragging)for(var ke=0;ke<lt.length;ke++){var st=lt[ke].__brushOption;if(tt&&(tt===!0||st.panelId===tt.panelId)&&ye[st.brushType].contain(lt[ke],Oe[0],Oe[1]))return}tt&&Je.setCursorStyle("crosshair")}function le(ue){var ge=ue.event;ge.preventDefault&&ge.preventDefault()}function Xe(ue,ge,Oe){return ue.childOfName("main").contain(ge,Oe)}function pe(ue,ge,Oe,Je){var lt=ue._creatingCover,tt=ue._creatingPanel,ke=ue._brushOption,st;if(ue._track.push(Oe.slice()),W(ue)||lt){if(tt&&!lt){ke.brushMode==="single"&&M(ue);var Ve=S.clone(ke);Ve.brushType=Z(Ve.brushType,tt),Ve.panelId=tt===!0?null:tt.panelId,lt=ue._creatingCover=C(ue,Ve),ue._covers.push(lt)}if(lt){var Ot=ye[Z(ue._brushType,tt)],Ut=lt.__brushOption;Ut.range=Ot.getCreatingRange(Ue(ue,lt,ue._track)),Je&&(I(ue,lt),Ot.updateCommon(ue,lt)),O(ue,lt),st={isEnd:Je}}}else Je&&ke.brushMode==="single"&&ke.removeOnClick&&(P(ue,ge,Oe)&&M(ue)&&(st={isEnd:Je,removeOnClick:!0}));return st}function Z(ue,ge){return ue==="auto"?ge.defaultBrushType:ue}var Y={mousedown:function(ue){if(this._dragging)ne(this,ue);else if(!ue.target||!ue.target.draggable){le(ue);var ge=this.group.transformCoordToLocal(ue.offsetX,ue.offsetY);this._creatingCover=null;var Oe=this._creatingPanel=P(this,ue,ge);Oe&&(this._dragging=!0,this._track=[ge.slice()])}},mousemove:function(ue){var ge=ue.offsetX,Oe=ue.offsetY,Je=this.group.transformCoordToLocal(ge,Oe);if(Le(this,ue,Je),this._dragging){le(ue);var lt=pe(this,ue,Je,!1);lt&&z(this,lt)}},mouseup:function(ue){ne(this,ue)}};function ne(ue,ge){if(ue._dragging){le(ge);var Oe=ge.offsetX,Je=ge.offsetY,lt=ue.group.transformCoordToLocal(Oe,Je),tt=pe(ue,ge,lt,!0);ue._dragging=!1,ue._track=[],ue._creatingCover=null,tt&&z(ue,tt)}}function ce(ue,ge,Oe){var Je=ue._zr;return ge<0||ge>Je.getWidth()||Oe<0||Oe>Je.getHeight()}var ye={lineX:Ee(0),lineY:Ee(1),rect:{createCover:function(ue,ge){return V(u(Te,function(Oe){return Oe},function(Oe){return Oe}),ue,ge,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(ue){var ge=H(ue);return se(ge[1][0],ge[1][1],ge[0][0],ge[0][1])},updateCoverShape:function(ue,ge,Oe,Je){Q(ue,ge,Oe,Je)},updateCommon:G,contain:Xe},polygon:{createCover:function(ue,ge){var Oe=new m.Group;return Oe.add(new m.Polyline({name:"main",style:q(ge),silent:!0})),Oe},getCreatingRange:function(ue){return ue},endCreating:function(ue,ge){ge.remove(ge.childAt(0)),ge.add(new m.Polygon({name:"main",draggable:!0,drift:u(Re,ue,ge),ondragend:u(z,ue,{isEnd:!0})}))},updateCoverShape:function(ue,ge,Oe,Je){ge.childAt(0).setShape({points:Ue(ue,ge,Oe)})},updateCommon:G,contain:Xe}};function Ee(ue){return{createCover:function(ge,Oe){return V(u(Te,function(Je){var lt=[Je,[0,100]];return ue&&lt.reverse(),lt},function(Je){return Je[ue]}),ge,Oe,[["w","e"],["n","s"]][ue])},getCreatingRange:function(ge){var Oe=H(ge),Je=t(Oe[0][ue],Oe[1][ue]),lt=a(Oe[0][ue],Oe[1][ue]);return[Je,lt]},updateCoverShape:function(ge,Oe,Je,lt){var tt,ke=X(ge,Oe);if(ke!==!0&&ke.getLinearBrushOtherExtent)tt=ke.getLinearBrushOtherExtent(ue,ge._transform);else{var st=ge._zr;tt=[0,[st.getWidth(),st.getHeight()][1-ue]]}var Ve=[Je,tt];ue&&Ve.reverse(),Q(ge,Oe,Ve,lt)},updateCommon:G,contain:Xe}}var Ce=w;k.exports=Ce},"/MfK":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DeleteOutlined";var d=D.a=p.forwardRef(f)},"/POA":function(k,D,i){!function(y,p){if(!0)k.exports=p();else var S,v}(window,function(){return function(y){var p={};function S(v){if(p[v])return p[v].exports;var m=p[v]={i:v,l:!1,exports:{}};return y[v].call(m.exports,m,m.exports,S),m.l=!0,m.exports}return S.m=y,S.c=p,S.d=function(v,m,f){S.o(v,m)||Object.defineProperty(v,m,{enumerable:!0,get:f})},S.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},S.t=function(v,m){if(1&m&&(v=S(v)),8&m)return v;if(4&m&&typeof v=="object"&&v&&v.__esModule)return v;var f=Object.create(null);if(S.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:v}),2&m&&typeof v!="string")for(var d in v)S.d(f,d,function(u){return v[u]}.bind(null,d));return f},S.n=function(v){var m=v&&v.__esModule?function(){return v.default}:function(){return v};return S.d(m,"a",m),m},S.o=function(v,m){return Object.prototype.hasOwnProperty.call(v,m)},S.p="",S(S.s=34)}([function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.forwardEvent=p.EventEmitter=void 0;var v=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 n=0;n<d._listeners.length;n++)if(d._listeners[n]===u)return void d._listeners.splice(n,1)}}}}),this._event},enumerable:!1,configurable:!0}),m.prototype.fire=function(f,d){for(var u=[],o=0;o<this._listeners.length;o++)u.push(this._listeners[o]);for(o=0;o<u.length;o++)u[o].call(void 0,f,d)},m.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},m}();p.EventEmitter=v,p.forwardEvent=function(m,f){return m(function(d){return f.fire(d)})}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.IUnicodeService=p.IOptionsService=p.ILogService=p.IInstantiationService=p.IDirtyRowService=p.ICharsetService=p.ICoreService=p.ICoreMouseService=p.IBufferService=void 0;var v=S(14);p.IBufferService=v.createDecorator("BufferService"),p.ICoreMouseService=v.createDecorator("CoreMouseService"),p.ICoreService=v.createDecorator("CoreService"),p.ICharsetService=v.createDecorator("CharsetService"),p.IDirtyRowService=v.createDecorator("DirtyRowService"),p.IInstantiationService=v.createDecorator("InstantiationService"),p.ILogService=v.createDecorator("LogService"),p.IOptionsService=v.createDecorator("OptionsService"),p.IUnicodeService=v.createDecorator("UnicodeService")},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getDisposeArrayDisposable=p.disposeArray=p.Disposable=void 0;var v=function(){function f(){this._disposables=[],this._isDisposed=!1}return f.prototype.dispose=function(){this._isDisposed=!0;for(var d=0,u=this._disposables;d<u.length;d++)u[d].dispose();this._disposables.length=0},f.prototype.register=function(d){return this._disposables.push(d),d},f.prototype.unregister=function(d){var u=this._disposables.indexOf(d);u!==-1&&this._disposables.splice(u,1)},f}();function m(f){for(var d=0,u=f;d<u.length;d++)u[d].dispose();f.length=0}p.Disposable=v,p.disposeArray=m,p.getDisposeArrayDisposable=function(f){return{dispose:function(){return m(f)}}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WHITESPACE_CELL_CODE=p.WHITESPACE_CELL_WIDTH=p.WHITESPACE_CELL_CHAR=p.NULL_CELL_CODE=p.NULL_CELL_WIDTH=p.NULL_CELL_CHAR=p.CHAR_DATA_CODE_INDEX=p.CHAR_DATA_WIDTH_INDEX=p.CHAR_DATA_CHAR_INDEX=p.CHAR_DATA_ATTR_INDEX=p.DEFAULT_ATTR=p.DEFAULT_COLOR=void 0,p.DEFAULT_COLOR=256,p.DEFAULT_ATTR=256|p.DEFAULT_COLOR<<9,p.CHAR_DATA_ATTR_INDEX=0,p.CHAR_DATA_CHAR_INDEX=1,p.CHAR_DATA_WIDTH_INDEX=2,p.CHAR_DATA_CODE_INDEX=3,p.NULL_CELL_CHAR="",p.NULL_CELL_WIDTH=1,p.NULL_CELL_CODE=0,p.WHITESPACE_CELL_CHAR=" ",p.WHITESPACE_CELL_WIDTH=1,p.WHITESPACE_CELL_CODE=32},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(t,a){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,a)},function(n,t){function a(){this.constructor=n}v(n,t),n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.CellData=void 0;var f=S(8),d=S(3),u=S(6),o=function(n){function t(){var a=n!==null&&n.apply(this,arguments)||this;return a.content=0,a.fg=0,a.bg=0,a.extended=new u.ExtendedAttrs,a.combinedData="",a}return m(t,n),t.fromCharData=function(a){var e=new t;return e.setFromCharData(a),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?f.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(a){this.fg=a[d.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(a[d.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(a[d.CHAR_DATA_CHAR_INDEX].length===2){var l=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var r=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(l-55296)+r-56320+65536|a[d.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|a[d.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=a[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|a[d.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(u.AttributeData);p.CellData=o},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ISoundService=p.ISelectionService=p.IRenderService=p.IMouseService=p.ICoreBrowserService=p.ICharSizeService=void 0;var v=S(14);p.ICharSizeService=v.createDecorator("CharSizeService"),p.ICoreBrowserService=v.createDecorator("CoreBrowserService"),p.IMouseService=v.createDecorator("MouseService"),p.IRenderService=v.createDecorator("RenderService"),p.ISelectionService=v.createDecorator("SelectionService"),p.ISoundService=v.createDecorator("SoundService")},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExtendedAttrs=p.AttributeData=void 0;var v=function(){function f(){this.fg=0,this.bg=0,this.extended=new m}return f.toColorRGB=function(d){return[d>>>16&255,d>>>8&255,255&d]},f.fromColorRGB=function(d){return(255&d[0])<<16|(255&d[1])<<8|255&d[2]},f.prototype.clone=function(){var d=new f;return d.fg=this.fg,d.bg=this.bg,d.extended=this.extended.clone(),d},f.prototype.isInverse=function(){return 67108864&this.fg},f.prototype.isBold=function(){return 134217728&this.fg},f.prototype.isUnderline=function(){return 268435456&this.fg},f.prototype.isBlink=function(){return 536870912&this.fg},f.prototype.isInvisible=function(){return 1073741824&this.fg},f.prototype.isItalic=function(){return 67108864&this.bg},f.prototype.isDim=function(){return 134217728&this.bg},f.prototype.getFgColorMode=function(){return 50331648&this.fg},f.prototype.getBgColorMode=function(){return 50331648&this.bg},f.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},f.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},f.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},f.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},f.prototype.isFgDefault=function(){return(50331648&this.fg)==0},f.prototype.isBgDefault=function(){return(50331648&this.bg)==0},f.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},f.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},f.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},f.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},f.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},f.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()},f.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},f.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},f.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},f.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},f.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},f}();p.AttributeData=v;var m=function(){function f(d,u){d===void 0&&(d=0),u===void 0&&(u=-1),this.underlineStyle=d,this.underlineColor=u}return f.prototype.clone=function(){return new f(this.underlineStyle,this.underlineColor)},f.prototype.isEmpty=function(){return this.underlineStyle===0},f}();p.ExtendedAttrs=m},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.addDisposableDomListener=void 0,p.addDisposableDomListener=function(v,m,f,d){v.addEventListener(m,f,d);var u=!1;return{dispose:function(){u||(u=!0,v.removeEventListener(m,f,d))}}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Utf8ToUtf32=p.StringToUtf32=p.utf32ToString=p.stringFromCodePoint=void 0,p.stringFromCodePoint=function(f){return f>65535?(f-=65536,String.fromCharCode(55296+(f>>10))+String.fromCharCode(f%1024+56320)):String.fromCharCode(f)},p.utf32ToString=function(f,d,u){d===void 0&&(d=0),u===void 0&&(u=f.length);for(var o="",n=d;n<u;++n){var t=f[n];t>65535?(t-=65536,o+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):o+=String.fromCharCode(t)}return o};var v=function(){function f(){this._interim=0}return f.prototype.clear=function(){this._interim=0},f.prototype.decode=function(d,u){var o=d.length;if(!o)return 0;var n=0,t=0;this._interim&&(56320<=(l=d.charCodeAt(t++))&&l<=57343?u[n++]=1024*(this._interim-55296)+l-56320+65536:(u[n++]=this._interim,u[n++]=l),this._interim=0);for(var a=t;a<o;++a){var e=d.charCodeAt(a);if(55296<=e&&e<=56319){if(++a>=o)return this._interim=e,n;var l;56320<=(l=d.charCodeAt(a))&&l<=57343?u[n++]=1024*(e-55296)+l-56320+65536:(u[n++]=e,u[n++]=l)}else u[n++]=e}return n},f}();p.StringToUtf32=v;var m=function(){function f(){this.interim=new Uint8Array(3)}return f.prototype.clear=function(){this.interim.fill(0)},f.prototype.decode=function(d,u){var o=d.length;if(!o)return 0;var n,t,a,e,l=0,r=0,s=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,A=void 0;(A=63&this.interim[++g])&&g<4;)h<<=6,h|=A;for(var b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,w=b-g;s<w;){if(s>=o)return 0;if((192&(A=d[s++]))!=128){s--,c=!0;break}this.interim[g++]=A,h<<=6,h|=63&A}c||(b===2?h<128?s--: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 x=o-4,T=s;T<o;){for(;!(!(T<x)||128&(n=d[T])||128&(t=d[T+1])||128&(a=d[T+2])||128&(e=d[T+3]));)u[l++]=n,u[l++]=t,u[l++]=a,u[l++]=e,T+=4;if((n=d[T++])<128)u[l++]=n;else if((224&n)==192){if(T>=o)return this.interim[0]=n,l;if((192&(t=d[T++]))!=128){T--;continue}if((r=(31&n)<<6|63&t)<128){T--;continue}u[l++]=r}else if((240&n)==224){if(T>=o)return this.interim[0]=n,l;if((192&(t=d[T++]))!=128){T--;continue}if(T>=o)return this.interim[0]=n,this.interim[1]=t,l;if((192&(a=d[T++]))!=128){T--;continue}if((r=(15&n)<<12|(63&t)<<6|63&a)<2048||r>=55296&&r<=57343)continue;u[l++]=r}else if((248&n)==240){if(T>=o)return this.interim[0]=n,l;if((192&(t=d[T++]))!=128){T--;continue}if(T>=o)return this.interim[0]=n,this.interim[1]=t,l;if((192&(a=d[T++]))!=128){T--;continue}if(T>=o)return this.interim[0]=n,this.interim[1]=t,this.interim[2]=a,l;if((192&(e=d[T++]))!=128){T--;continue}if((r=(7&n)<<18|(63&t)<<12|(63&a)<<6|63&e)<65536||r>1114111)continue;u[l++]=r}}return l},f}();p.Utf8ToUtf32=m},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CHAR_ATLAS_CELL_SPACING=p.DIM_OPACITY=p.INVERTED_DEFAULT_COLOR=void 0,p.INVERTED_DEFAULT_COLOR=257,p.DIM_OPACITY=.5,p.CHAR_ATLAS_CELL_SPACING=1},function(y,p,S){"use strict";var v,m,f,d;function u(n){var t=n.toString(16);return t.length<2?"0"+t:t}function o(n,t){return n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)}Object.defineProperty(p,"__esModule",{value:!0}),p.contrastRatio=p.toPaddedHex=p.rgba=p.rgb=p.css=p.color=p.channels=void 0,function(n){n.toCss=function(t,a,e,l){return l!==void 0?"#"+u(t)+u(a)+u(e)+u(l):"#"+u(t)+u(a)+u(e)},n.toRgba=function(t,a,e,l){return l===void 0&&(l=255),(t<<24|a<<16|e<<8|l)>>>0}}(v=p.channels||(p.channels={})),(m=p.color||(p.color={})).blend=function(n,t){var a=(255&t.rgba)/255;if(a===1)return{css:t.css,rgba:t.rgba};var e=t.rgba>>24&255,l=t.rgba>>16&255,r=t.rgba>>8&255,s=n.rgba>>24&255,c=n.rgba>>16&255,h=n.rgba>>8&255,g=s+Math.round((e-s)*a),A=c+Math.round((l-c)*a),b=h+Math.round((r-h)*a);return{css:v.toCss(g,A,b),rgba:v.toRgba(g,A,b)}},m.isOpaque=function(n){return(255&n.rgba)==255},m.ensureContrastRatio=function(n,t,a){var e=d.ensureContrastRatio(n.rgba,t.rgba,a);if(e)return d.toColor(e>>24&255,e>>16&255,e>>8&255)},m.opaque=function(n){var t=(255|n.rgba)>>>0,a=d.toChannels(t),e=a[0],l=a[1],r=a[2];return{css:v.toCss(e,l,r),rgba:t}},m.opacity=function(n,t){var a=Math.round(255*t),e=d.toChannels(n.rgba),l=e[0],r=e[1],s=e[2];return{css:v.toCss(l,r,s,a),rgba:v.toRgba(l,r,s,a)}},(p.css||(p.css={})).toColor=function(n){switch(n.length){case 7:return{css:n,rgba:(parseInt(n.slice(1),16)<<8|255)>>>0};case 9:return{css:n,rgba:parseInt(n.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(n){function t(a,e,l){var r=a/255,s=e/255,c=l/255;return .2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}n.relativeLuminance=function(a){return t(a>>16&255,a>>8&255,255&a)},n.relativeLuminance2=t}(f=p.rgb||(p.rgb={})),function(n){function t(e,l,r){for(var s=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,A=l>>16&255,b=l>>8&255,w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));w<r&&(g>0||A>0||b>0);)g-=Math.max(0,Math.ceil(.1*g)),A-=Math.max(0,Math.ceil(.1*A)),b-=Math.max(0,Math.ceil(.1*b)),w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));return(g<<24|A<<16|b<<8|255)>>>0}function a(e,l,r){for(var s=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,A=l>>16&255,b=l>>8&255,w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));w<r&&(g<255||A<255||b<255);)g=Math.min(255,g+Math.ceil(.1*(255-g))),A=Math.min(255,A+Math.ceil(.1*(255-A))),b=Math.min(255,b+Math.ceil(.1*(255-b))),w=o(f.relativeLuminance2(g,b,A),f.relativeLuminance2(s,c,h));return(g<<24|A<<16|b<<8|255)>>>0}n.ensureContrastRatio=function(e,l,r){var s=f.relativeLuminance(e>>8),c=f.relativeLuminance(l>>8);if(o(s,c)<r)return c<s?t(e,l,r):a(e,l,r)},n.reduceLuminance=t,n.increaseLuminance=a,n.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},n.toColor=function(e,l,r){return{css:v.toCss(e,l,r),rgba:v.toRgba(e,l,r)}}}(d=p.rgba||(p.rgba={})),p.toPaddedHex=u,p.contrastRatio=o},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.isLinux=p.isWindows=p.isIphone=p.isIpad=p.isMac=p.isSafari=p.isFirefox=void 0;var v=typeof navigator=="undefined",m=v?"node":navigator.userAgent,f=v?"node":navigator.platform;function d(u,o){return u.indexOf(o)>=0}p.isFirefox=!!~m.indexOf("Firefox"),p.isSafari=/^((?!chrome|android).)*safari/i.test(m),p.isMac=d(["Macintosh","MacIntel","MacPPC","Mac68K"],f),p.isIpad=f==="iPad",p.isIphone=f==="iPhone",p.isWindows=d(["Windows","Win16","Win32","WinCE"],f),p.isLinux=f.indexOf("Linux")>=0},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.C1=p.C0=void 0,function(v){v.NUL="\0",v.SOH="",v.STX="",v.ETX="",v.EOT="",v.ENQ="",v.ACK="",v.BEL="\x07",v.BS="\b",v.HT=" ",v.LF=`
`,v.VT="\v",v.FF="\f",v.CR="\r",v.SO="",v.SI="",v.DLE="",v.DC1="",v.DC2="",v.DC3="",v.DC4="",v.NAK="",v.SYN="",v.ETB="",v.CAN="",v.EM="",v.SUB="",v.ESC="",v.FS="",v.GS="",v.RS="",v.US="",v.SP=" ",v.DEL="\x7F"}(p.C0||(p.C0={})),function(v){v.PAD="\x80",v.HOP="\x81",v.BPH="\x82",v.NBH="\x83",v.IND="\x84",v.NEL="\x85",v.SSA="\x86",v.ESA="\x87",v.HTS="\x88",v.HTJ="\x89",v.VTS="\x8A",v.PLD="\x8B",v.PLU="\x8C",v.RI="\x8D",v.SS2="\x8E",v.SS3="\x8F",v.DCS="\x90",v.PU1="\x91",v.PU2="\x92",v.STS="\x93",v.CCH="\x94",v.MW="\x95",v.SPA="\x96",v.EPA="\x97",v.SOS="\x98",v.SGCI="\x99",v.SCI="\x9A",v.CSI="\x9B",v.ST="\x9C",v.OSC="\x9D",v.PM="\x9E",v.APC="\x9F"}(p.C1||(p.C1={}))},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseRenderLayer=void 0;var v=S(3),m=S(9),f=S(25),d=S(6),u=S(28),o=S(10),n=S(17),t=function(){function a(e,l,r,s,c,h,g,A){this._container=e,this._alpha=s,this._colors=c,this._rendererId=h,this._bufferService=g,this._optionsService=A,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+l+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return a.prototype.dispose=function(){var e;n.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},a.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},a.prototype.onOptionsChanged=function(){},a.prototype.onBlur=function(){},a.prototype.onFocus=function(){},a.prototype.onCursorMove=function(){},a.prototype.onGridChanged=function(e,l){},a.prototype.onSelectionChanged=function(e,l,r){r===void 0&&(r=!1)},a.prototype.setColors=function(e){this._refreshCharAtlas(e)},a.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)}},a.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=f.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},a.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)},a.prototype._fillCells=function(e,l,r,s){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight)},a.prototype._fillBottomLineAtCells=function(e,l,r){r===void 0&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},a.prototype._fillLeftLineAtCell=function(e,l,r){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},a.prototype._strokeRectAtCell=function(e,l,r,s){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,s*this._scaledCellHeight-window.devicePixelRatio)},a.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))},a.prototype._clearCells=function(e,l,r,s){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight))},a.prototype._fillCharTrueColor=function(e,l,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(r),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},a.prototype._drawChars=function(e,l,r){var s,c,h=this._getContrastColor(e);h||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,r,h):(e.isInverse()?(s=e.isBgDefault()?m.INVERTED_DEFAULT_COLOR:e.getBgColor(),c=e.isFgDefault()?m.INVERTED_DEFAULT_COLOR:e.getFgColor()):(c=e.isBgDefault()?v.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?v.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||v.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||v.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=s,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,r*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,r))},a.prototype._drawUncachedChars=function(e,l,r,s){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(s)this._ctx.fillStyle=s.css;else if(e.isBgDefault())this._ctx.fillStyle=o.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(s)this._ctx.fillStyle=s.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(r),e.isDim()&&(this._ctx.globalAlpha=m.DIM_OPACITY),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},a.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},a.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},a.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 r=e.getFgColor(),s=e.getFgColorMode(),c=e.getBgColor(),h=e.getBgColorMode(),g=!!e.isInverse(),A=!!e.isInverse();if(g){var b=r;r=c,c=b;var w=s;s=h,h=w}var x=this._resolveBackgroundRgba(h,c,g),T=this._resolveForegroundRgba(s,r,g,A),_=o.rgba.ensureContrastRatio(x,T,this._optionsService.options.minimumContrastRatio);if(_){var E={css:o.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,E),E}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},a.prototype._resolveBackgroundRgba=function(e,l,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},a.prototype._resolveForegroundRgba=function(e,l,r,s){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&s&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},a}();p.BaseRenderLayer=t},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createDecorator=p.getServiceDependencies=p.serviceRegistry=void 0;function v(m,f,d){f.di$target===f?f.di$dependencies.push({id:m,index:d}):(f.di$dependencies=[{id:m,index:d}],f.di$target=f)}p.serviceRegistry=new Map,p.getServiceDependencies=function(m){return m.di$dependencies||[]},p.createDecorator=function(m){if(p.serviceRegistry.has(m))return p.serviceRegistry.get(m);var f=function d(u,o,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");v(d,u,n)};return f.toString=function(){return m},p.serviceRegistry.set(m,f),f}},function(y,p,S){"use strict";function v(m,f,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 o=d;o<u;++o)m[o]=f;return m}Object.defineProperty(p,"__esModule",{value:!0}),p.concat=p.fillFallback=p.fill=void 0,p.fill=function(m,f,d,u){return m.fill?m.fill(f,d,u):v(m,f,d,u)},p.fillFallback=v,p.concat=function(m,f){var d=new m.constructor(m.length+f.length);return d.set(m),d.set(f,m.length),d}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferLine=p.DEFAULT_ATTR_DATA=void 0;var v=S(8),m=S(3),f=S(4),d=S(6);p.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);var u=function(){function o(n,t,a){a===void 0&&(a=!1),this.isWrapped=a,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*n);for(var e=t||f.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),l=0;l<n;++l)this.setCell(l,e);this.length=n}return o.prototype.get=function(n){var t=this._data[3*n+0],a=2097151&t;return[this._data[3*n+1],2097152&t?this._combined[n]:a?v.stringFromCodePoint(a):"",t>>22,2097152&t?this._combined[n].charCodeAt(this._combined[n].length-1):a]},o.prototype.set=function(n,t){this._data[3*n+1]=t[m.CHAR_DATA_ATTR_INDEX],t[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[n]=t[1],this._data[3*n+0]=2097152|n|t[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*n+0]=t[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[m.CHAR_DATA_WIDTH_INDEX]<<22},o.prototype.getWidth=function(n){return this._data[3*n+0]>>22},o.prototype.hasWidth=function(n){return 12582912&this._data[3*n+0]},o.prototype.getFg=function(n){return this._data[3*n+1]},o.prototype.getBg=function(n){return this._data[3*n+2]},o.prototype.hasContent=function(n){return 4194303&this._data[3*n+0]},o.prototype.getCodePoint=function(n){var t=this._data[3*n+0];return 2097152&t?this._combined[n].charCodeAt(this._combined[n].length-1):2097151&t},o.prototype.isCombined=function(n){return 2097152&this._data[3*n+0]},o.prototype.getString=function(n){var t=this._data[3*n+0];return 2097152&t?this._combined[n]:2097151&t?v.stringFromCodePoint(2097151&t):""},o.prototype.loadCell=function(n,t){var a=3*n;return t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[n]),268435456&t.bg&&(t.extended=this._extendedAttrs[n]),t},o.prototype.setCell=function(n,t){2097152&t.content&&(this._combined[n]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[n]=t.extended),this._data[3*n+0]=t.content,this._data[3*n+1]=t.fg,this._data[3*n+2]=t.bg},o.prototype.setCellFromCodePoint=function(n,t,a,e,l,r){268435456&l&&(this._extendedAttrs[n]=r),this._data[3*n+0]=t|a<<22,this._data[3*n+1]=e,this._data[3*n+2]=l},o.prototype.addCodepointToCell=function(n,t){var a=this._data[3*n+0];2097152&a?this._combined[n]+=v.stringFromCodePoint(t):(2097151&a?(this._combined[n]=v.stringFromCodePoint(2097151&a)+v.stringFromCodePoint(t),a&=-2097152,a|=2097152):a=t|1<<22,this._data[3*n+0]=a)},o.prototype.insertCells=function(n,t,a,e){if((n%=this.length)&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-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-n){for(var l=new f.CellData,r=this.length-n-t-1;r>=0;--r)this.setCell(n+t+r,this.loadCell(n+r,l));for(r=0;r<t;++r)this.setCell(n+r,a)}else for(r=n;r<this.length;++r)this.setCell(r,a);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)},o.prototype.deleteCells=function(n,t,a,e){if(n%=this.length,t<this.length-n){for(var l=new f.CellData,r=0;r<this.length-n-t;++r)this.setCell(n+r,this.loadCell(n+t+r,l));for(r=this.length-t;r<this.length;++r)this.setCell(r,a)}else for(r=n;r<this.length;++r)this.setCell(r,a);n&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-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(n)!==0||this.hasContent(n)||this.setCellFromCodePoint(n,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)},o.prototype.replaceCells=function(n,t,a,e){for(n&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-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);n<t&&n<this.length;)this.setCell(n++,a)},o.prototype.resize=function(n,t){if(n!==this.length){if(n>this.length){var a=new Uint32Array(3*n);this.length&&(3*n<this._data.length?a.set(this._data.subarray(0,3*n)):a.set(this._data)),this._data=a;for(var e=this.length;e<n;++e)this.setCell(e,t)}else if(n){(a=new Uint32Array(3*n)).set(this._data.subarray(0,3*n)),this._data=a;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var r=parseInt(l[e],10);r>=n&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=n}},o.prototype.fill=function(n){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,n)},o.prototype.copyFrom=function(n){for(var t in this.length!==n.length?this._data=new Uint32Array(n._data):this._data.set(n._data),this.length=n.length,this._combined={},n._combined)this._combined[t]=n._combined[t];for(var t in this._extendedAttrs={},n._extendedAttrs)this._extendedAttrs[t]=n._extendedAttrs[t];this.isWrapped=n.isWrapped},o.prototype.clone=function(){var n=new o(0);for(var t in n._data=new Uint32Array(this._data),n.length=this.length,this._combined)n._combined[t]=this._combined[t];for(var t in this._extendedAttrs)n._extendedAttrs[t]=this._extendedAttrs[t];return n.isWrapped=this.isWrapped,n},o.prototype.getTrimmedLength=function(){for(var n=this.length-1;n>=0;--n)if(4194303&this._data[3*n+0])return n+(this._data[3*n+0]>>22);return 0},o.prototype.copyCellsFrom=function(n,t,a,e,l){var r=n._data;if(l)for(var s=e-1;s>=0;s--)for(var c=0;c<3;c++)this._data[3*(a+s)+c]=r[3*(t+s)+c];else for(s=0;s<e;s++)for(c=0;c<3;c++)this._data[3*(a+s)+c]=r[3*(t+s)+c];var h=Object.keys(n._combined);for(c=0;c<h.length;c++){var g=parseInt(h[c],10);g>=t&&(this._combined[g-t+a]=n._combined[g])}},o.prototype.translateToString=function(n,t,a){n===void 0&&(n=!1),t===void 0&&(t=0),a===void 0&&(a=this.length),n&&(a=Math.min(a,this.getTrimmedLength()));for(var e="";t<a;){var l=this._data[3*t+0],r=2097151&l;e+=2097152&l?this._combined[t]:r?v.stringFromCodePoint(r):m.WHITESPACE_CELL_CHAR,t+=l>>22||1}return e},o}();p.BufferLine=u},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeElementFromParent=void 0,p.removeElementFromParent=function(){for(var v,m=[],f=0;f<arguments.length;f++)m[f]=arguments[f];for(var d=0,u=m;d<u.length;d++){var o=u[d];(v=o==null?void 0:o.parentElement)===null||v===void 0||v.removeChild(o)}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.tooMuchOutput=p.promptLabel=void 0,p.promptLabel="Terminal input",p.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(_,E){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,I){C.__proto__=I}||function(C,I){for(var O in I)I.hasOwnProperty(O)&&(C[O]=I[O])})(_,E)},function(T,_){function E(){this.constructor=T}v(T,_),T.prototype=_===null?Object.create(_):(E.prototype=_.prototype,new E)});Object.defineProperty(p,"__esModule",{value:!0}),p.InputHandler=p.WindowsOptionsReportType=void 0;var f,d=S(12),u=S(20),o=S(39),n=S(2),t=S(15),a=S(8),e=S(16),l=S(0),r=S(3),s=S(4),c=S(6),h=S(22),g=S(24),A={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(T,_){if(T>24)return _.setWinLines||!1;switch(T){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(T){T[T.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",T[T.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(f=p.WindowsOptionsReportType||(p.WindowsOptionsReportType={}));var w=function(){function T(_,E,C,I){this._bufferService=_,this._coreService=E,this._logService=C,this._optionsService=I,this._data=new Uint32Array(0)}return T.prototype.hook=function(_){this._data=new Uint32Array(0)},T.prototype.put=function(_,E,C){this._data=t.concat(this._data,_.subarray(E,C))},T.prototype.unhook=function(_){if(_){var E=a.utf32ToString(this._data);switch(this._data=new Uint32Array(0),E){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 C=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+C+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.C0.ESC+"\\");case" q":var I={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return I-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+I+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",E),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},T}(),x=function(T){function _(E,C,I,O,F,R,B,P,X){X===void 0&&(X=new o.EscapeSequenceParser);var M=T.call(this)||this;M._bufferService=E,M._charsetService=C,M._coreService=I,M._dirtyRowService=O,M._logService=F,M._optionsService=R,M._coreMouseService=B,M._unicodeService=P,M._parser=X,M._parseBuffer=new Uint32Array(4096),M._stringDecoder=new a.StringToUtf32,M._utf8Decoder=new a.Utf8ToUtf32,M._workCell=new s.CellData,M._windowTitle="",M._iconName="",M._windowTitleStack=[],M._iconNameStack=[],M._curAttrData=e.DEFAULT_ATTR_DATA.clone(),M._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),M._onRequestBell=new l.EventEmitter,M._onRequestRefreshRows=new l.EventEmitter,M._onRequestReset=new l.EventEmitter,M._onRequestScroll=new l.EventEmitter,M._onRequestSyncScrollBar=new l.EventEmitter,M._onRequestWindowsOptionsReport=new l.EventEmitter,M._onA11yChar=new l.EventEmitter,M._onA11yTab=new l.EventEmitter,M._onCursorMove=new l.EventEmitter,M._onLineFeed=new l.EventEmitter,M._onScroll=new l.EventEmitter,M._onTitleChange=new l.EventEmitter,M.register(M._parser),M._parser.setCsiHandlerFallback(function(V,Q){M._logService.debug("Unknown CSI code: ",{identifier:M._parser.identToString(V),params:Q.toArray()})}),M._parser.setEscHandlerFallback(function(V){M._logService.debug("Unknown ESC code: ",{identifier:M._parser.identToString(V)})}),M._parser.setExecuteHandlerFallback(function(V){M._logService.debug("Unknown EXECUTE code: ",{code:V})}),M._parser.setOscHandlerFallback(function(V,Q,G){M._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),M._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),M._logService.debug("Unknown DCS code: ",{identifier:M._parser.identToString(V),action:Q,payload:G})}),M._parser.setPrintHandler(function(V,Q,G){return M.print(V,Q,G)}),M._parser.setCsiHandler({final:"@"},function(V){return M.insertChars(V)}),M._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return M.scrollLeft(V)}),M._parser.setCsiHandler({final:"A"},function(V){return M.cursorUp(V)}),M._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return M.scrollRight(V)}),M._parser.setCsiHandler({final:"B"},function(V){return M.cursorDown(V)}),M._parser.setCsiHandler({final:"C"},function(V){return M.cursorForward(V)}),M._parser.setCsiHandler({final:"D"},function(V){return M.cursorBackward(V)}),M._parser.setCsiHandler({final:"E"},function(V){return M.cursorNextLine(V)}),M._parser.setCsiHandler({final:"F"},function(V){return M.cursorPrecedingLine(V)}),M._parser.setCsiHandler({final:"G"},function(V){return M.cursorCharAbsolute(V)}),M._parser.setCsiHandler({final:"H"},function(V){return M.cursorPosition(V)}),M._parser.setCsiHandler({final:"I"},function(V){return M.cursorForwardTab(V)}),M._parser.setCsiHandler({final:"J"},function(V){return M.eraseInDisplay(V)}),M._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return M.eraseInDisplay(V)}),M._parser.setCsiHandler({final:"K"},function(V){return M.eraseInLine(V)}),M._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return M.eraseInLine(V)}),M._parser.setCsiHandler({final:"L"},function(V){return M.insertLines(V)}),M._parser.setCsiHandler({final:"M"},function(V){return M.deleteLines(V)}),M._parser.setCsiHandler({final:"P"},function(V){return M.deleteChars(V)}),M._parser.setCsiHandler({final:"S"},function(V){return M.scrollUp(V)}),M._parser.setCsiHandler({final:"T"},function(V){return M.scrollDown(V)}),M._parser.setCsiHandler({final:"X"},function(V){return M.eraseChars(V)}),M._parser.setCsiHandler({final:"Z"},function(V){return M.cursorBackwardTab(V)}),M._parser.setCsiHandler({final:"`"},function(V){return M.charPosAbsolute(V)}),M._parser.setCsiHandler({final:"a"},function(V){return M.hPositionRelative(V)}),M._parser.setCsiHandler({final:"b"},function(V){return M.repeatPrecedingCharacter(V)}),M._parser.setCsiHandler({final:"c"},function(V){return M.sendDeviceAttributesPrimary(V)}),M._parser.setCsiHandler({prefix:">",final:"c"},function(V){return M.sendDeviceAttributesSecondary(V)}),M._parser.setCsiHandler({final:"d"},function(V){return M.linePosAbsolute(V)}),M._parser.setCsiHandler({final:"e"},function(V){return M.vPositionRelative(V)}),M._parser.setCsiHandler({final:"f"},function(V){return M.hVPosition(V)}),M._parser.setCsiHandler({final:"g"},function(V){return M.tabClear(V)}),M._parser.setCsiHandler({final:"h"},function(V){return M.setMode(V)}),M._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return M.setModePrivate(V)}),M._parser.setCsiHandler({final:"l"},function(V){return M.resetMode(V)}),M._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return M.resetModePrivate(V)}),M._parser.setCsiHandler({final:"m"},function(V){return M.charAttributes(V)}),M._parser.setCsiHandler({final:"n"},function(V){return M.deviceStatus(V)}),M._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return M.deviceStatusPrivate(V)}),M._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return M.softReset(V)}),M._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return M.setCursorStyle(V)}),M._parser.setCsiHandler({final:"r"},function(V){return M.setScrollRegion(V)}),M._parser.setCsiHandler({final:"s"},function(V){return M.saveCursor(V)}),M._parser.setCsiHandler({final:"t"},function(V){return M.windowOptions(V)}),M._parser.setCsiHandler({final:"u"},function(V){return M.restoreCursor(V)}),M._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return M.insertColumns(V)}),M._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return M.deleteColumns(V)}),M._parser.setExecuteHandler(d.C0.BEL,function(){return M.bell()}),M._parser.setExecuteHandler(d.C0.LF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(d.C0.VT,function(){return M.lineFeed()}),M._parser.setExecuteHandler(d.C0.FF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(d.C0.CR,function(){return M.carriageReturn()}),M._parser.setExecuteHandler(d.C0.BS,function(){return M.backspace()}),M._parser.setExecuteHandler(d.C0.HT,function(){return M.tab()}),M._parser.setExecuteHandler(d.C0.SO,function(){return M.shiftOut()}),M._parser.setExecuteHandler(d.C0.SI,function(){return M.shiftIn()}),M._parser.setExecuteHandler(d.C1.IND,function(){return M.index()}),M._parser.setExecuteHandler(d.C1.NEL,function(){return M.nextLine()}),M._parser.setExecuteHandler(d.C1.HTS,function(){return M.tabSet()}),M._parser.setOscHandler(0,new h.OscHandler(function(V){M.setTitle(V),M.setIconName(V)})),M._parser.setOscHandler(1,new h.OscHandler(function(V){return M.setIconName(V)})),M._parser.setOscHandler(2,new h.OscHandler(function(V){return M.setTitle(V)})),M._parser.setEscHandler({final:"7"},function(){return M.saveCursor()}),M._parser.setEscHandler({final:"8"},function(){return M.restoreCursor()}),M._parser.setEscHandler({final:"D"},function(){return M.index()}),M._parser.setEscHandler({final:"E"},function(){return M.nextLine()}),M._parser.setEscHandler({final:"H"},function(){return M.tabSet()}),M._parser.setEscHandler({final:"M"},function(){return M.reverseIndex()}),M._parser.setEscHandler({final:"="},function(){return M.keypadApplicationMode()}),M._parser.setEscHandler({final:">"},function(){return M.keypadNumericMode()}),M._parser.setEscHandler({final:"c"},function(){return M.fullReset()}),M._parser.setEscHandler({final:"n"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"o"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"|"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"}"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"~"},function(){return M.setgLevel(1)}),M._parser.setEscHandler({intermediates:"%",final:"@"},function(){return M.selectDefaultCharset()}),M._parser.setEscHandler({intermediates:"%",final:"G"},function(){return M.selectDefaultCharset()});var z=function(Q){W._parser.setEscHandler({intermediates:"(",final:Q},function(){return M.selectCharset("("+Q)}),W._parser.setEscHandler({intermediates:")",final:Q},function(){return M.selectCharset(")"+Q)}),W._parser.setEscHandler({intermediates:"*",final:Q},function(){return M.selectCharset("*"+Q)}),W._parser.setEscHandler({intermediates:"+",final:Q},function(){return M.selectCharset("+"+Q)}),W._parser.setEscHandler({intermediates:"-",final:Q},function(){return M.selectCharset("-"+Q)}),W._parser.setEscHandler({intermediates:".",final:Q},function(){return M.selectCharset("."+Q)}),W._parser.setEscHandler({intermediates:"/",final:Q},function(){return M.selectCharset("/"+Q)})},W=this;for(var H in u.CHARSETS)z(H);return M._parser.setEscHandler({intermediates:"#",final:"8"},function(){return M.screenAlignmentPattern()}),M._parser.setErrorHandler(function(V){return M._logService.error("Parsing error: ",V),V}),M._parser.setDcsHandler({intermediates:"$",final:"q"},new w(M._bufferService,M._coreService,M._logService,M._optionsService)),M}return m(_,T),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(){T.prototype.dispose.call(this)},_.prototype.parse=function(E){var C=this._bufferService.buffer,I=C.x,O=C.y;if(this._logService.debug("parsing data",E),this._parseBuffer.length<E.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(E.length,131072))),this._dirtyRowService.clearRange(),E.length>131072)for(var F=0;F<E.length;F+=131072){var R=F+131072<E.length?F+131072:E.length,B=typeof E=="string"?this._stringDecoder.decode(E.substring(F,R),this._parseBuffer):this._utf8Decoder.decode(E.subarray(F,R),this._parseBuffer);this._parser.parse(this._parseBuffer,B)}else B=typeof E=="string"?this._stringDecoder.decode(E,this._parseBuffer):this._utf8Decoder.decode(E,this._parseBuffer),this._parser.parse(this._parseBuffer,B);(C=this._bufferService.buffer).x===I&&C.y===O||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(E,C,I){var O,F,R=this._bufferService.buffer,B=this._charsetService.charset,P=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,M=this._coreService.decPrivateModes.wraparound,z=this._coreService.modes.insertMode,W=this._curAttrData,H=R.lines.get(R.ybase+R.y);this._dirtyRowService.markDirty(R.y),R.x&&I-C>0&&H.getWidth(R.x-1)===2&&H.setCellFromCodePoint(R.x-1,0,1,W.fg,W.bg,W.extended);for(var V=C;V<I;++V){if(O=E[V],F=this._unicodeService.wcwidth(O),O<127&&B){var Q=B[String.fromCharCode(O)];Q&&(O=Q.charCodeAt(0))}if(P&&this._onA11yChar.fire(a.stringFromCodePoint(O)),F||!R.x){if(R.x+F-1>=X){if(M){for(;R.x<X;)H.setCellFromCodePoint(R.x++,0,1,W.fg,W.bg,W.extended);R.x=0,R.y++,R.y===R.scrollBottom+1?(R.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(R.y>=this._bufferService.rows&&(R.y=this._bufferService.rows-1),R.lines.get(R.ybase+R.y).isWrapped=!0),H=R.lines.get(R.ybase+R.y)}else if(R.x=X-1,F===2)continue}if(z&&(H.insertCells(R.x,F,R.getNullCell(W),W),H.getWidth(X-1)===2&&H.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,W.fg,W.bg,W.extended)),H.setCellFromCodePoint(R.x++,O,F,W.fg,W.bg,W.extended),F>0)for(;--F;)H.setCellFromCodePoint(R.x++,0,0,W.fg,W.bg,W.extended)}else H.getWidth(R.x-1)?H.addCodepointToCell(R.x-1,O):H.addCodepointToCell(R.x-2,O)}I-C>0&&(H.loadCell(R.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),R.x<X&&I-C>0&&H.getWidth(R.x)===0&&!H.hasContent(R.x)&&H.setCellFromCodePoint(R.x,0,1,W.fg,W.bg,W.extended),this._dirtyRowService.markDirty(R.y)},_.prototype.addCsiHandler=function(E,C){var I=this;return E.final!=="t"||E.prefix||E.intermediates?this._parser.addCsiHandler(E,C):this._parser.addCsiHandler(E,function(O){return!b(O.params[0],I._optionsService.options.windowOptions)||C(O)})},_.prototype.addDcsHandler=function(E,C){return this._parser.addDcsHandler(E,new g.DcsHandler(C))},_.prototype.addEscHandler=function(E,C){return this._parser.addEscHandler(E,C)},_.prototype.addOscHandler=function(E,C){return this._parser.addOscHandler(E,new h.OscHandler(C))},_.prototype.bell=function(){this._onRequestBell.fire()},_.prototype.lineFeed=function(){var E=this._bufferService.buffer;this._dirtyRowService.markDirty(E.y),this._optionsService.options.convertEol&&(E.x=0),E.y++,E.y===E.scrollBottom+1?(E.y--,this._onRequestScroll.fire(this._eraseAttrData())):E.y>=this._bufferService.rows&&(E.y=this._bufferService.rows-1),E.x>=this._bufferService.cols&&E.x--,this._dirtyRowService.markDirty(E.y),this._onLineFeed.fire()},_.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},_.prototype.backspace=function(){var E,C=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(C.x>0&&C.x--);if(this._restrictCursor(this._bufferService.cols),C.x>0)C.x--;else if(C.x===0&&C.y>C.scrollTop&&C.y<=C.scrollBottom&&((E=C.lines.get(C.ybase+C.y))===null||E===void 0?void 0:E.isWrapped)){C.lines.get(C.ybase+C.y).isWrapped=!1,C.y--,C.x=this._bufferService.cols-1;var I=C.lines.get(C.ybase+C.y);I.hasWidth(C.x)&&!I.hasContent(C.x)&&C.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var E=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-E)}},_.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},_.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},_.prototype._restrictCursor=function(E){E===void 0&&(E=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(E,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(E,C){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=E,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+C):(this._bufferService.buffer.x=E,this._bufferService.buffer.y=C),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(E,C){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+E,this._bufferService.buffer.y+C)},_.prototype.cursorUp=function(E){var C=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;C>=0?this._moveCursor(0,-Math.min(C,E.params[0]||1)):this._moveCursor(0,-(E.params[0]||1))},_.prototype.cursorDown=function(E){var C=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;C>=0?this._moveCursor(0,Math.min(C,E.params[0]||1)):this._moveCursor(0,E.params[0]||1)},_.prototype.cursorForward=function(E){this._moveCursor(E.params[0]||1,0)},_.prototype.cursorBackward=function(E){this._moveCursor(-(E.params[0]||1),0)},_.prototype.cursorNextLine=function(E){this.cursorDown(E),this._bufferService.buffer.x=0},_.prototype.cursorPrecedingLine=function(E){this.cursorUp(E),this._bufferService.buffer.x=0},_.prototype.cursorCharAbsolute=function(E){this._setCursor((E.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.cursorPosition=function(E){this._setCursor(E.length>=2?(E.params[1]||1)-1:0,(E.params[0]||1)-1)},_.prototype.charPosAbsolute=function(E){this._setCursor((E.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.hPositionRelative=function(E){this._moveCursor(E.params[0]||1,0)},_.prototype.linePosAbsolute=function(E){this._setCursor(this._bufferService.buffer.x,(E.params[0]||1)-1)},_.prototype.vPositionRelative=function(E){this._moveCursor(0,E.params[0]||1)},_.prototype.hVPosition=function(E){this.cursorPosition(E)},_.prototype.tabClear=function(E){var C=E.params[0];C===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:C===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(E){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=E.params[0]||1;C--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(E){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=E.params[0]||1,I=this._bufferService.buffer;C--;)I.x=I.prevStop()},_.prototype._eraseInBufferLine=function(E,C,I,O){O===void 0&&(O=!1);var F=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+E);F.replaceCells(C,I,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),O&&(F.isWrapped=!1)},_.prototype._resetBufferLine=function(E){var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+E);C.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),C.isWrapped=!1},_.prototype.eraseInDisplay=function(E){var C;switch(this._restrictCursor(),E.params[0]){case 0:for(C=this._bufferService.buffer.y,this._dirtyRowService.markDirty(C),this._eraseInBufferLine(C++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);C<this._bufferService.rows;C++)this._resetBufferLine(C);this._dirtyRowService.markDirty(C);break;case 1:for(C=this._bufferService.buffer.y,this._dirtyRowService.markDirty(C),this._eraseInBufferLine(C,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(C+1).isWrapped=!1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 2:for(C=this._bufferService.rows,this._dirtyRowService.markDirty(C-1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 3:var I=this._bufferService.buffer.lines.length-this._bufferService.rows;I>0&&(this._bufferService.buffer.lines.trimStart(I),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-I,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-I,0),this._onScroll.fire(0))}},_.prototype.eraseInLine=function(E){switch(this._restrictCursor(),E.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(E){this._restrictCursor();var C=E.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){for(var O=I.ybase+I.y,F=this._bufferService.rows-1-I.scrollBottom,R=this._bufferService.rows-1+I.ybase-F+1;C--;)I.lines.splice(R-1,1),I.lines.splice(O,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},_.prototype.deleteLines=function(E){this._restrictCursor();var C=E.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){var O,F=I.ybase+I.y;for(O=this._bufferService.rows-1-I.scrollBottom,O=this._bufferService.rows-1+I.ybase-O;C--;)I.lines.splice(F,1),I.lines.splice(O,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},_.prototype.insertChars=function(E){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.insertCells(this._bufferService.buffer.x,E.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.deleteChars=function(E){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.deleteCells(this._bufferService.buffer.x,E.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.scrollUp=function(E){for(var C=E.params[0]||1,I=this._bufferService.buffer;C--;)I.lines.splice(I.ybase+I.scrollTop,1),I.lines.splice(I.ybase+I.scrollBottom,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},_.prototype.scrollDown=function(E){for(var C=E.params[0]||1,I=this._bufferService.buffer;C--;)I.lines.splice(I.ybase+I.scrollBottom,1),I.lines.splice(I.ybase+I.scrollTop,0,I.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},_.prototype.scrollLeft=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,O=C.scrollTop;O<=C.scrollBottom;++O){var F=C.lines.get(C.ybase+O);F.deleteCells(0,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},_.prototype.scrollRight=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,O=C.scrollTop;O<=C.scrollBottom;++O){var F=C.lines.get(C.ybase+O);F.insertCells(0,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},_.prototype.insertColumns=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,O=C.scrollTop;O<=C.scrollBottom;++O){var F=this._bufferService.buffer.lines.get(C.ybase+O);F.insertCells(C.x,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},_.prototype.deleteColumns=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,O=C.scrollTop;O<=C.scrollBottom;++O){var F=C.lines.get(C.ybase+O);F.deleteCells(C.x,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},_.prototype.eraseChars=function(E){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(E.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.repeatPrecedingCharacter=function(E){if(this._parser.precedingCodepoint){for(var C=E.params[0]||1,I=new Uint32Array(C),O=0;O<C;++O)I[O]=this._parser.precedingCodepoint;this.print(I,0,I.length)}},_.prototype.sendDeviceAttributesPrimary=function(E){E.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(E){E.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(E.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},_.prototype._is=function(E){return(this._optionsService.options.termName+"").indexOf(E)===0},_.prototype.setMode=function(E){for(var C=0;C<E.length;C++)switch(E.params[C]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(E){for(var C=0;C<E.length;C++)switch(E.params[C]){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(E){for(var C=0;C<E.length;C++)switch(E.params[C]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(E){for(var C=0;C<E.length;C++)switch(E.params[C]){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(),E.params[C]===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(E,C,I,O,F){return C===2?(E|=50331648,E&=-16777216,E|=c.AttributeData.fromColorRGB([I,O,F])):C===5&&(E&=-50331904,E|=33554432|255&I),E},_.prototype._extractColor=function(E,C,I){var O=[0,0,-1,0,0,0],F=0,R=0;do{if(O[R+F]=E.params[C+R],E.hasSubParams(C+R)){var B=E.getSubParams(C+R),P=0;do O[1]===5&&(F=1),O[R+P+1+F]=B[P];while(++P<B.length&&P+R+1+F<O.length);break}if(O[1]===5&&R+F>=2||O[1]===2&&R+F>=5)break;O[1]&&(F=1)}while(++R+C<E.length&&R+F<O.length);for(P=2;P<O.length;++P)O[P]===-1&&(O[P]=0);switch(O[0]){case 38:I.fg=this._updateAttrColor(I.fg,O[1],O[3],O[4],O[5]);break;case 48:I.bg=this._updateAttrColor(I.bg,O[1],O[3],O[4],O[5]);break;case 58:I.extended=I.extended.clone(),I.extended.underlineColor=this._updateAttrColor(I.extended.underlineColor,O[1],O[3],O[4],O[5])}return R},_.prototype._processUnderline=function(E,C){C.extended=C.extended.clone(),(!~E||E>5)&&(E=1),C.extended.underlineStyle=E,C.fg|=268435456,E===0&&(C.fg&=-268435457),C.updateExtended()},_.prototype.charAttributes=function(E){if(E.length===1&&E.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var C,I=E.length,O=this._curAttrData,F=0;F<I;F++)(C=E.params[F])>=30&&C<=37?(O.fg&=-50331904,O.fg|=16777216|C-30):C>=40&&C<=47?(O.bg&=-50331904,O.bg|=16777216|C-40):C>=90&&C<=97?(O.fg&=-50331904,O.fg|=16777224|C-90):C>=100&&C<=107?(O.bg&=-50331904,O.bg|=16777224|C-100):C===0?(O.fg=e.DEFAULT_ATTR_DATA.fg,O.bg=e.DEFAULT_ATTR_DATA.bg):C===1?O.fg|=134217728:C===3?O.bg|=67108864:C===4?(O.fg|=268435456,this._processUnderline(E.hasSubParams(F)?E.getSubParams(F)[0]:1,O)):C===5?O.fg|=536870912:C===7?O.fg|=67108864:C===8?O.fg|=1073741824:C===2?O.bg|=134217728:C===21?this._processUnderline(2,O):C===22?(O.fg&=-134217729,O.bg&=-134217729):C===23?O.bg&=-67108865:C===24?O.fg&=-268435457:C===25?O.fg&=-536870913:C===27?O.fg&=-67108865:C===28?O.fg&=-1073741825:C===39?(O.fg&=-67108864,O.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):C===49?(O.bg&=-67108864,O.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):C===38||C===48||C===58?F+=this._extractColor(E,F,O):C===59?(O.extended=O.extended.clone(),O.extended.underlineColor=-1,O.updateExtended()):C===100?(O.fg&=-67108864,O.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,O.bg&=-67108864,O.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",C)},_.prototype.deviceStatus=function(E){switch(E.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var C=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+C+";"+I+"R")}},_.prototype.deviceStatusPrivate=function(E){switch(E.params[0]){case 6:var C=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"[?"+C+";"+I+"R")}},_.prototype.softReset=function(E){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(E){var C=E.params[0]||1;switch(C){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var I=C%2==1;this._optionsService.options.cursorBlink=I},_.prototype.setScrollRegion=function(E){var C,I=E.params[0]||1;(E.length<2||(C=E.params[1])>this._bufferService.rows||C===0)&&(C=this._bufferService.rows),C>I&&(this._bufferService.buffer.scrollTop=I-1,this._bufferService.buffer.scrollBottom=C-1,this._setCursor(0,0))},_.prototype.windowOptions=function(E){if(b(E.params[0],this._optionsService.options.windowOptions)){var C=E.length>1?E.params[1]:0;switch(E.params[0]){case 14:C!==2&&this._onRequestWindowsOptionsReport.fire(f.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(f.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:C!==0&&C!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),C!==0&&C!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:C!==0&&C!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),C!==0&&C!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(E){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(E){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(E){this._windowTitle=E,this._onTitleChange.fire(E)},_.prototype.setIconName=function(E){this._iconName=E},_.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(E){E.length===2?E[0]!=="/"&&this._charsetService.setgCharset(A[E[0]],u.CHARSETS[E[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},_.prototype.index=function(){this._restrictCursor();var E=this._bufferService.buffer;this._bufferService.buffer.y++,E.y===E.scrollBottom+1?(E.y--,this._onRequestScroll.fire(this._eraseAttrData())):E.y>=this._bufferService.rows&&(E.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 E=this._bufferService.buffer;if(E.y===E.scrollTop){var C=E.scrollBottom-E.scrollTop;E.lines.shiftElements(E.ybase+E.y,C,1),E.lines.set(E.ybase+E.y,E.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(E.scrollTop,E.scrollBottom)}else E.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(E){this._charsetService.setgLevel(E)},_.prototype.screenAlignmentPattern=function(){var E=new s.CellData;E.content=1<<22|"E".charCodeAt(0),E.fg=this._curAttrData.fg,E.bg=this._curAttrData.bg;var C=this._bufferService.buffer;this._setCursor(0,0);for(var I=0;I<this._bufferService.rows;++I){var O=C.ybase+C.y+I,F=C.lines.get(O);F&&(F.fill(E),F.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(n.Disposable);p.InputHandler=x},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DEFAULT_CHARSET=p.CHARSETS=void 0,p.CHARSETS={},p.DEFAULT_CHARSET=p.CHARSETS.B,p.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"},p.CHARSETS.A={"#":"\xA3"},p.CHARSETS.B=void 0,p.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},p.CHARSETS.C=p.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},p.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},p.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},p.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},p.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},p.CHARSETS.E=p.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},p.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},p.CHARSETS.H=p.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},p.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Params=void 0;var v=function(){function m(f,d){if(f===void 0&&(f=32),d===void 0&&(d=32),this.maxLength=f,this.maxSubParamsLength=d,d>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(f),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(f),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return m.fromArray=function(f){var d=new m;if(!f.length)return d;for(var u=f[0]instanceof Array?1:0;u<f.length;++u){var o=f[u];if(o instanceof Array)for(var n=0;n<o.length;++n)d.addSubParam(o[n]);else d.addParam(o)}return d},m.prototype.clone=function(){var f=new m(this.maxLength,this.maxSubParamsLength);return f.params.set(this.params),f.length=this.length,f._subParams.set(this._subParams),f._subParamsLength=this._subParamsLength,f._subParamsIdx.set(this._subParamsIdx),f._rejectDigits=this._rejectDigits,f._rejectSubDigits=this._rejectSubDigits,f._digitIsSub=this._digitIsSub,f},m.prototype.toArray=function(){for(var f=[],d=0;d<this.length;++d){f.push(this.params[d]);var u=this._subParamsIdx[d]>>8,o=255&this._subParamsIdx[d];o-u>0&&f.push(Array.prototype.slice.call(this._subParams,u,o))}return f},m.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},m.prototype.addParam=function(f){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=f>2147483647?2147483647:f}},m.prototype.addSubParam=function(f){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=f>2147483647?2147483647:f,this._subParamsIdx[this.length-1]++}},m.prototype.hasSubParams=function(f){return(255&this._subParamsIdx[f])-(this._subParamsIdx[f]>>8)>0},m.prototype.getSubParams=function(f){var d=this._subParamsIdx[f]>>8,u=255&this._subParamsIdx[f];return u-d>0?this._subParams.subarray(d,u):null},m.prototype.getSubParamsAll=function(){for(var f={},d=0;d<this.length;++d){var u=this._subParamsIdx[d]>>8,o=255&this._subParamsIdx[d];o-u>0&&(f[d]=this._subParams.slice(u,o))}return f},m.prototype.addDigit=function(f){var d;if(!(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,o=u[d-1];u[d-1]=~o?Math.min(10*o+f,2147483647):f}},m}();p.Params=v},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OscHandler=p.OscParser=void 0;var v=S(23),m=S(8),f=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(o,n){this._handlers[o]===void 0&&(this._handlers[o]=[]);var t=this._handlers[o];return t.push(n),{dispose:function(){var e=t.indexOf(n);e!==-1&&t.splice(e,1)}}},u.prototype.setHandler=function(o,n){this._handlers[o]=[n]},u.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},u.prototype.setHandlerFallback=function(o){this._handlerFb=o},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 o=this._handlers[this._id];if(o)for(var n=o.length-1;n>=0;n--)o[n].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(o,n,t){var a=this._handlers[this._id];if(a)for(var e=a.length-1;e>=0;e--)a[e].put(o,n,t);else this._handlerFb(this._id,"PUT",m.utf32ToString(o,n,t))},u.prototype._end=function(o){var n=this._handlers[this._id];if(n){for(var t=n.length-1;t>=0&&n[t].end(o)===!1;t--);for(t--;t>=0;t--)n[t].end(!1)}else this._handlerFb(this._id,"END",o)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(o,n,t){if(this._state!==3){if(this._state===1)for(;n<t;){var a=o[n++];if(a===59){this._state=2,this._start();break}if(a<48||57<a)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+a-48}this._state===2&&t-n>0&&this._put(o,n,t)}},u.prototype.end=function(o){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(o)),this._id=-1,this._state=0)},u}();p.OscParser=f;var d=function(){function u(o){this._handler=o,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(o,n,t){this._hitLimit||(this._data+=m.utf32ToString(o,n,t),this._data.length>v.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(o){var n;return this._hitLimit?n=!1:o&&(n=this._handler(this._data)),this._data="",this._hitLimit=!1,n},u}();p.OscHandler=d},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PAYLOAD_LIMIT=void 0,p.PAYLOAD_LIMIT=1e7},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DcsHandler=p.DcsParser=void 0;var v=S(8),m=S(21),f=S(23),d=[],u=function(){function n(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=function(){}}return n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.addHandler=function(t,a){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(a),{dispose:function(){var r=e.indexOf(a);r!==-1&&e.splice(r,1)}}},n.prototype.setHandler=function(t,a){this._handlers[t]=[a]},n.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},n.prototype.setHandlerFallback=function(t){this._handlerFb=t},n.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=d,this._ident=0},n.prototype.hook=function(t,a){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(a);else this._handlerFb(this._ident,"HOOK",a)},n.prototype.put=function(t,a,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(t,a,e);else this._handlerFb(this._ident,"PUT",v.utf32ToString(t,a,e))},n.prototype.unhook=function(t){if(this._active.length){for(var a=this._active.length-1;a>=0&&this._active[a].unhook(t)===!1;a--);for(a--;a>=0;a--)this._active[a].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=d,this._ident=0},n}();p.DcsParser=u;var o=function(){function n(t){this._handler=t,this._data="",this._hitLimit=!1}return n.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},n.prototype.put=function(t,a,e){this._hitLimit||(this._data+=v.utf32ToString(t,a,e),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},n.prototype.unhook=function(t){var a;return this._hitLimit?a=!1:t&&(a=this._handler(this._data,this._params||new m.Params)),this._params=void 0,this._data="",this._hitLimit=!1,a},n}();p.DcsHandler=o},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeTerminalFromCache=p.acquireCharAtlas=void 0;var v=S(26),m=S(43),f=[];p.acquireCharAtlas=function(d,u,o,n,t){for(var a=v.generateConfig(n,t,d,o),e=0;e<f.length;e++){var l=(r=f[e]).ownedBy.indexOf(u);if(l>=0){if(v.configEquals(r.config,a))return r.atlas;r.ownedBy.length===1?(r.atlas.dispose(),f.splice(e,1)):r.ownedBy.splice(l,1);break}}for(e=0;e<f.length;e++){var r=f[e];if(v.configEquals(r.config,a))return r.ownedBy.push(u),r.atlas}var s={atlas:new m.DynamicCharAtlas(document,a),config:a,ownedBy:[u]};return f.push(s),s.atlas},p.removeTerminalFromCache=function(d){for(var u=0;u<f.length;u++){var o=f[u].ownedBy.indexOf(d);if(o!==-1){f[u].ownedBy.length===1?(f[u].atlas.dispose(),f.splice(u,1)):f[u].ownedBy.splice(o,1);break}}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.is256Color=p.configEquals=p.generateConfig=void 0;var v=S(3);p.generateConfig=function(m,f,d,u){var o={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:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:o}},p.configEquals=function(m,f){for(var d=0;d<m.colors.ansi.length;d++)if(m.colors.ansi[d].rgba!==f.colors.ansi[d].rgba)return!1;return m.devicePixelRatio===f.devicePixelRatio&&m.fontFamily===f.fontFamily&&m.fontSize===f.fontSize&&m.fontWeight===f.fontWeight&&m.fontWeightBold===f.fontWeightBold&&m.allowTransparency===f.allowTransparency&&m.scaledCharWidth===f.scaledCharWidth&&m.scaledCharHeight===f.scaledCharHeight&&m.colors.foreground===f.colors.foreground&&m.colors.background===f.colors.background},p.is256Color=function(m){return m<v.DEFAULT_COLOR}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorManager=p.DEFAULT_ANSI_COLORS=void 0;var v=S(10),m=S(45),f=v.css.toColor("#ffffff"),d=v.css.toColor("#000000"),u=v.css.toColor("#ffffff"),o=v.css.toColor("#000000"),n={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};p.DEFAULT_ANSI_COLORS=function(){for(var a=[v.css.toColor("#2e3436"),v.css.toColor("#cc0000"),v.css.toColor("#4e9a06"),v.css.toColor("#c4a000"),v.css.toColor("#3465a4"),v.css.toColor("#75507b"),v.css.toColor("#06989a"),v.css.toColor("#d3d7cf"),v.css.toColor("#555753"),v.css.toColor("#ef2929"),v.css.toColor("#8ae234"),v.css.toColor("#fce94f"),v.css.toColor("#729fcf"),v.css.toColor("#ad7fa8"),v.css.toColor("#34e2e2"),v.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],l=0;l<216;l++){var r=e[l/36%6|0],s=e[l/6%6|0],c=e[l%6];a.push({css:v.channels.toCss(r,s,c),rgba:v.channels.toRgba(r,s,c)})}for(l=0;l<24;l++){var h=8+10*l;a.push({css:v.channels.toCss(h,h,h),rgba:v.channels.toRgba(h,h,h)})}return a}();var t=function(){function a(e,l){this.allowTransparency=l;var r=e.createElement("canvas");r.width=1,r.height=1;var s=r.getContext("2d");if(!s)throw new Error("Could not get rendering context");this._ctx=s,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new m.ColorContrastCache,this.colors={foreground:f,background:d,cursor:u,cursorAccent:o,selectionTransparent:n,selectionOpaque:v.color.blend(d,n),ansi:p.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return a.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},a.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,f),this.colors.background=this._parseColor(e.background,d),this.colors.cursor=this._parseColor(e.cursor,u,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,o,!0),this.colors.selectionTransparent=this._parseColor(e.selection,n,!0),this.colors.selectionOpaque=v.color.blend(this.colors.background,this.colors.selectionTransparent),v.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=v.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,p.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,p.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,p.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,p.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,p.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,p.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,p.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,p.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,p.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,p.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,p.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,p.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,p.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,p.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,p.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,p.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},a.prototype._parseColor=function(e,l,r){if(r===void 0&&(r=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 s=this._ctx.getImageData(0,0,1,1).data;if(s[3]!==255){if(!r)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(x){return Number(x)}),h=c[0],g=c[1],A=c[2],b=c[3],w=Math.round(255*b);return{rgba:v.channels.toRgba(h,g,A,w),css:e}}return{css:this._ctx.fillStyle,rgba:v.channels.toRgba(s[0],s[1],s[2],s[3])}},a}();p.ColorManager=t},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.throwIfFalsy=void 0,p.throwIfFalsy=function(v){if(!v)throw new Error("value must not be falsy");return v}},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(a,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,r){l.__proto__=r}||function(l,r){for(var s in r)r.hasOwnProperty(s)&&(l[s]=r[s])})(a,e)},function(t,a){function e(){this.constructor=t}v(t,a),t.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)});Object.defineProperty(p,"__esModule",{value:!0}),p.CharacterJoinerRegistry=p.JoinedCellData=void 0;var f=S(6),d=S(3),u=S(4),o=function(t){function a(e,l,r){var s=t.call(this)||this;return s.content=0,s.combinedData="",s.fg=e.fg,s.bg=e.bg,s.combinedData=l,s._width=r,s}return m(a,t),a.prototype.isCombined=function(){return 2097152},a.prototype.getWidth=function(){return this._width},a.prototype.getChars=function(){return this.combinedData},a.prototype.getCode=function(){return 2097151},a.prototype.setFromCharData=function(e){throw new Error("not implemented")},a.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},a}(f.AttributeData);p.JoinedCellData=o;var n=function(){function t(a){this._bufferService=a,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return t.prototype.registerCharacterJoiner=function(a){var e={id:this._nextCharacterJoinerId++,handler:a};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(a){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===a)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(a){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(a);if(!e||e.length===0)return[];for(var l=[],r=e.translateToString(!0),s=0,c=0,h=0,g=e.getFg(0),A=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!==A){if(b-s>1)for(var w=this._getJoinedRanges(r,h,c,e,s),x=0;x<w.length;x++)l.push(w[x]);s=b,h=c,g=this._workCell.fg,A=this._workCell.bg}c+=this._workCell.getChars().length||d.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-s>1)for(w=this._getJoinedRanges(r,h,c,e,s),x=0;x<w.length;x++)l.push(w[x]);return l},t.prototype._getJoinedRanges=function(a,e,l,r,s){for(var c=a.substring(e,l),h=this._characterJoiners[0].handler(c),g=1;g<this._characterJoiners.length;g++)for(var A=this._characterJoiners[g].handler(c),b=0;b<A.length;b++)t._mergeRanges(h,A[b]);return this._stringRangesToCellRanges(h,r,s),h},t.prototype._stringRangesToCellRanges=function(a,e,l){var r=0,s=!1,c=0,h=a[r];if(h){for(var g=l;g<this._bufferService.cols;g++){var A=e.getWidth(g),b=e.getString(g).length||d.WHITESPACE_CELL_CHAR.length;if(A!==0){if(!s&&h[0]<=c&&(h[0]=g,s=!0),h[1]<=c){if(h[1]=g,!(h=a[++r]))break;h[0]<=c?(h[0]=g,s=!0):s=!1}c+=b}}h&&(h[1]=this._bufferService.cols)}},t._mergeRanges=function(a,e){for(var l=!1,r=0;r<a.length;r++){var s=a[r];if(l){if(e[1]<=s[0])return a[r-1][1]=e[1],a;if(e[1]<=s[1])return a[r-1][1]=Math.max(e[1],s[1]),a.splice(r,1),a;a.splice(r,1),r--}else{if(e[1]<=s[0])return a.splice(r,0,e),a;if(e[1]<=s[1])return s[0]=Math.min(e[0],s[0]),a;e[0]<s[1]&&(s[0]=Math.min(e[0],s[0]),l=!0)}}return l?a[a.length-1][1]=e[1]:a.push(e),a},t}();p.CharacterJoinerRegistry=n},function(y,p,S){"use strict";function v(m,f){var d=f.getBoundingClientRect();return[m.clientX-d.left,m.clientY-d.top]}Object.defineProperty(p,"__esModule",{value:!0}),p.getRawByteCoords=p.getCoords=p.getCoordsRelativeToElement=void 0,p.getCoordsRelativeToElement=v,p.getCoords=function(m,f,d,u,o,n,t,a){if(o){var e=v(m,f);if(e)return e[0]=Math.ceil((e[0]+(a?n/2:0))/n),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),d+(a?1:0)),e[1]=Math.min(Math.max(e[1],1),u),e}},p.getRawByteCoords=function(m){if(m)return{x:m[0]+32,y:m[1]+32}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RenderDebouncer=void 0;var v=function(){function m(f){this._renderCallback=f}return m.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},m.prototype.refresh=function(f,d,u){var o=this;this._rowCount=u,f=f!==void 0?f:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return o._innerRefresh()}))},m.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=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(f,d)}},m}();p.RenderDebouncer=v},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(u,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a])})(u,o)},function(d,u){function o(){this.constructor=d}v(d,u),d.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.ScreenDprMonitor=void 0;var f=function(d){function u(){var o=d!==null&&d.apply(this,arguments)||this;return o._currentDevicePixelRatio=window.devicePixelRatio,o}return m(u,d),u.prototype.setListener=function(o){var n=this;this._listener&&this.clearListener(),this._listener=o,this._outerListener=function(){n._listener&&(n._listener(window.devicePixelRatio,n._currentDevicePixelRatio),n._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var o;this._outerListener&&((o=this._resolutionMediaMatchList)===null||o===void 0||o.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}(S(2).Disposable);p.ScreenDprMonitor=f},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clone=void 0,p.clone=function v(m,f){if(f===void 0&&(f=5),typeof m!="object")return m;var d=Array.isArray(m)?[]:{};for(var u in m)d[u]=f<=1?m[u]:m[u]?v(m[u],f-1):m[u];return d}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var v=S(4),m=S(35),f=S(18),d=S(0),u=S(83),o=function(){function r(s){this._core=new m.Terminal(s),this._addonManager=new u.AddonManager}return r.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(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new l(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),new t(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(s,c){this._verifyIntegers(s,c),this._core.resize(s,c)},r.prototype.open=function(s){this._core.open(s)},r.prototype.attachCustomKeyEventHandler=function(s){this._core.attachCustomKeyEventHandler(s)},r.prototype.registerLinkMatcher=function(s,c,h){return this._checkProposedApi(),this._core.registerLinkMatcher(s,c,h)},r.prototype.deregisterLinkMatcher=function(s){this._checkProposedApi(),this._core.deregisterLinkMatcher(s)},r.prototype.registerLinkProvider=function(s){return this._checkProposedApi(),this._core.registerLinkProvider(s)},r.prototype.registerCharacterJoiner=function(s){return this._checkProposedApi(),this._core.registerCharacterJoiner(s)},r.prototype.deregisterCharacterJoiner=function(s){this._checkProposedApi(),this._core.deregisterCharacterJoiner(s)},r.prototype.registerMarker=function(s){return this._checkProposedApi(),this._verifyIntegers(s),this._core.addMarker(s)},r.prototype.addMarker=function(s){return this.registerMarker(s)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(s,c,h){this._verifyIntegers(s,c,h),this._core.select(s,c,h)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(s,c){this._verifyIntegers(s,c),this._core.selectLines(s,c)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(s){this._verifyIntegers(s),this._core.scrollLines(s)},r.prototype.scrollPages=function(s){this._verifyIntegers(s),this._core.scrollPages(s)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(s){this._verifyIntegers(s),this._core.scrollToLine(s)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(s,c){this._core.write(s,c)},r.prototype.writeUtf8=function(s,c){this._core.write(s,c)},r.prototype.writeln=function(s,c){this._core.write(s),this._core.write(`\r
`,c)},r.prototype.paste=function(s){this._core.paste(s)},r.prototype.getOption=function(s){return this._core.optionsService.getOption(s)},r.prototype.setOption=function(s,c){this._core.optionsService.setOption(s,c)},r.prototype.refresh=function(s,c){this._verifyIntegers(s,c),this._core.refresh(s,c)},r.prototype.reset=function(){this._core.reset()},r.prototype.loadAddon=function(s){return this._addonManager.loadAddon(this,s)},Object.defineProperty(r,"strings",{get:function(){return f},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];for(var h=0,g=s;h<g.length;h++){var A=g[h];if(A===1/0||isNaN(A)||A%1!=0)throw new Error("This API only accepts integers")}},r}();p.Terminal=o;var n=function(){function r(s,c){this._buffer=s,this.type=c}return r.prototype.init=function(s){return this._buffer=s,this},Object.defineProperty(r.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),r.prototype.getLine=function(s){var c=this._buffer.lines.get(s);if(c)return new a(c)},r.prototype.getNullCell=function(){return new v.CellData},r}(),t=function(){function r(s){var c=this;this._buffers=s,this._onBufferChange=new d.EventEmitter,this._normal=new n(this._buffers.normal,"normal"),this._alternate=new n(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(r.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.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(r.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),r}(),a=function(){function r(s){this._line=s}return Object.defineProperty(r.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),r.prototype.getCell=function(s,c){if(!(s<0||s>=this._line.length))return c?(this._line.loadCell(s,c),c):this._line.loadCell(s,new v.CellData)},r.prototype.translateToString=function(s,c,h){return this._line.translateToString(s,c,h)},r}(),e=function(){function r(s){this._core=s}return r.prototype.registerCsiHandler=function(s,c){return this._core.addCsiHandler(s,function(h){return c(h.toArray())})},r.prototype.addCsiHandler=function(s,c){return this.registerCsiHandler(s,c)},r.prototype.registerDcsHandler=function(s,c){return this._core.addDcsHandler(s,function(h,g){return c(h,g.toArray())})},r.prototype.addDcsHandler=function(s,c){return this.registerDcsHandler(s,c)},r.prototype.registerEscHandler=function(s,c){return this._core.addEscHandler(s,c)},r.prototype.addEscHandler=function(s,c){return this.registerEscHandler(s,c)},r.prototype.registerOscHandler=function(s,c){return this._core.addOscHandler(s,c)},r.prototype.addOscHandler=function(s,c){return this.registerOscHandler(s,c)},r}(),l=function(){function r(s){this._core=s}return r.prototype.register=function(s){this._core.unicodeService.register(s)},Object.defineProperty(r.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(c){this._core.unicodeService.activeVersion=c},enumerable:!1,configurable:!0}),r}()},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(M,z){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,H){W.__proto__=H}||function(W,H){for(var V in H)H.hasOwnProperty(V)&&(W[V]=H[V])})(M,z)},function(X,M){function z(){this.constructor=X}v(X,M),X.prototype=M===null?Object.create(M):(z.prototype=M.prototype,new z)});Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var f=S(36),d=S(37),u=S(38),o=S(12),n=S(19),t=S(40),a=S(50),e=S(51),l=S(11),r=S(7),s=S(18),c=S(54),h=S(55),g=S(56),A=S(57),b=S(59),w=S(0),x=S(16),T=S(27),_=S(60),E=S(5),C=S(61),I=S(62),O=S(63),F=S(64),R=S(65),B=typeof window!="undefined"?window.document:null,P=function(X){function M(z){z===void 0&&(z={});var W=X.call(this,z)||this;return W.browser=l,W._keyDownHandled=!1,W._onCursorMove=new w.EventEmitter,W._onKey=new w.EventEmitter,W._onRender=new w.EventEmitter,W._onSelectionChange=new w.EventEmitter,W._onTitleChange=new w.EventEmitter,W._onFocus=new w.EventEmitter,W._onBlur=new w.EventEmitter,W._onA11yCharEmitter=new w.EventEmitter,W._onA11yTabEmitter=new w.EventEmitter,W._setup(),W.linkifier=W._instantiationService.createInstance(a.Linkifier),W.linkifier2=W.register(W._instantiationService.createInstance(O.Linkifier2)),W.register(W._inputHandler.onRequestBell(function(){return W.bell()})),W.register(W._inputHandler.onRequestRefreshRows(function(H,V){return W.refresh(H,V)})),W.register(W._inputHandler.onRequestReset(function(){return W.reset()})),W.register(W._inputHandler.onRequestScroll(function(H,V){return W.scroll(H,V||void 0)})),W.register(W._inputHandler.onRequestWindowsOptionsReport(function(H){return W._reportWindowsOptions(H)})),W.register(w.forwardEvent(W._inputHandler.onCursorMove,W._onCursorMove)),W.register(w.forwardEvent(W._inputHandler.onTitleChange,W._onTitleChange)),W.register(w.forwardEvent(W._inputHandler.onA11yChar,W._onA11yCharEmitter)),W.register(w.forwardEvent(W._inputHandler.onA11yTab,W._onA11yTabEmitter)),W.register(W._bufferService.onResize(function(H){return W._afterResize(H.cols,H.rows)})),W}return m(M,X),Object.defineProperty(M.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),M.prototype.dispose=function(){var z,W,H;this._isDisposed||(X.prototype.dispose.call(this),(z=this._renderService)===null||z===void 0||z.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(H=(W=this.element)===null||W===void 0?void 0:W.parentNode)===null||H===void 0||H.removeChild(this.element))},M.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(M.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),M.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},M.prototype._updateOptions=function(z){var W,H,V,Q;switch(X.prototype._updateOptions.call(this,z),z){case"fontFamily":case"fontSize":(W=this._renderService)===null||W===void 0||W.clear(),(H=this._charSizeService)===null||H===void 0||H.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new 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)}},M.prototype._onTextAreaFocus=function(z){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(z),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},M.prototype.blur=function(){var z;return(z=this.textarea)===null||z===void 0?void 0:z.blur()},M.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},M.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var z=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),W=this._bufferService.buffer.y*z,H=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=H+"px",this.textarea.style.top=W+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=z+"px",this.textarea.style.lineHeight=z+"px",this.textarea.style.zIndex="-5"}},M.prototype._initGlobal=function(){var z=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(H){z.hasSelection()&&u.copyHandler(H,z._selectionService)}));var W=function(V){return u.handlePasteEvent(V,z.textarea,z._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",W)),this.register(r.addDisposableDomListener(this.element,"paste",W)),l.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(H){H.button===2&&u.rightClickHandler(H,z.textarea,z.screenElement,z._selectionService,z.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(H){u.rightClickHandler(H,z.textarea,z.screenElement,z._selectionService,z.options.rightClickSelectsWord)})),l.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(H){H.button===1&&u.moveTextAreaUnderMouseCursor(H,z.textarea,z.screenElement)}))},M.prototype._bindKeys=function(){var z=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(W){return z._keyUp(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(W){return z._keyDown(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(W){return z._keyPress(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return z._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(W){return z._compositionHelper.compositionupdate(W)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return z._compositionHelper.compositionend()})),this.register(this.onRender(function(){return z._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(W){return z._queueLinkification(W.start,W.end)}))},M.prototype.open=function(z){var W=this;if(!z)throw new Error("Terminal requires a parent element.");B.body.contains(z)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=z.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"),z.appendChild(this.element);var H=B.createDocumentFragment();this._viewportElement=B.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),H.appendChild(this._viewportElement),this._viewportScrollArea=B.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=B.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=B.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),H.appendChild(this.screenElement),this.textarea=B.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",s.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(r.addDisposableDomListener(this.textarea,"focus",function(G){return W._onTextAreaFocus(G)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return W._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(F.CoreBrowserService,this.textarea);this._instantiationService.setService(E.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(C.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(E.ICharSizeService,this._charSizeService),this._compositionView=B.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(f.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(H),this._theme=this.options.theme||this._theme,this._colorManager=new T.ColorManager(B,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(G){return W._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(E.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(G){return W._onRender.fire(G)})),this.onResize(function(G){return W._renderService.resize(G.cols,G.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(E.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(I.MouseService),this._instantiationService.setService(E.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(d.Viewport,function(G,ee){return W.scrollLines(G,ee)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return W.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){W._renderService.onCursorMove(),W._syncTextArea()})),this.register(this.onResize(function(){return W._renderService.onResize(W.cols,W.rows)})),this.register(this.onBlur(function(){return W._renderService.onBlur()})),this.register(this.onFocus(function(){return W._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return W.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(E.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(G){return W.scrollLines(G.amount,G.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return W._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(G){return W._renderService.onSelectionChanged(G.start,G.end,G.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(G){W.textarea.value=G,W.textarea.focus(),W.textarea.select()})),this.register(this.onScroll(function(){W.viewport.syncScrollArea(),W._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return W._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(h.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return W._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(r.addDisposableDomListener(this.element,"mousedown",function(G){return W._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()},M.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(A.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},M.prototype._setTheme=function(z){var W,H,V;this._theme=z,(W=this._colorManager)===null||W===void 0||W.setTheme(z),(H=this._renderService)===null||H===void 0||H.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},M.prototype.bindMouse=function(){var z=this,W=this,H=this.element;function V(re){var Ae,Te,Re=W._mouseService.getRawByteCoords(re,W.screenElement,W.cols,W.rows);if(!Re)return!1;switch(re.overrideType||re.type){case"mousemove":Te=32,re.buttons===void 0?(Ae=3,re.button!==void 0&&(Ae=re.button<3?re.button:3)):Ae=1&re.buttons?0:4&re.buttons?1:2&re.buttons?2:3;break;case"mouseup":Te=0,Ae=re.button<3?re.button:3;break;case"mousedown":Te=1,Ae=re.button<3?re.button:3;break;case"wheel":re.deltaY!==0&&(Te=re.deltaY<0?0:1),Ae=4;break;default:return!1}return!(Te===void 0||Ae===void 0||Ae>4)&&W._coreMouseService.triggerMouseEvent({col:Re.x-33,row:Re.y-33,button:Ae,action:Te,ctrl:re.ctrlKey,alt:re.altKey,shift:re.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(Ae){return V(Ae),Ae.buttons||(z._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&z._document.removeEventListener("mousemove",Q.mousedrag)),z.cancel(Ae)},ee=function(Ae){return V(Ae),Ae.preventDefault(),z.cancel(Ae)},q=function(Ae){Ae.buttons&&V(Ae)},se=function(Ae){Ae.buttons||V(Ae)};this.register(this._coreMouseService.onProtocolChange(function(re){re?(z.optionsService.options.logLevel==="debug"&&z._logService.debug("Binding to mouse events:",z._coreMouseService.explainEvents(re)),z.element.classList.add("enable-mouse-events"),z._selectionService.disable()):(z._logService.debug("Unbinding from mouse events."),z.element.classList.remove("enable-mouse-events"),z._selectionService.enable()),8&re?Q.mousemove||(H.addEventListener("mousemove",se),Q.mousemove=se):(H.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&re?Q.wheel||(H.addEventListener("wheel",ee,{passive:!1}),Q.wheel=ee):(H.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&re?Q.mouseup||(Q.mouseup=G):(z._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&re?Q.mousedrag||(Q.mousedrag=q):(z._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(H,"mousedown",function(re){if(re.preventDefault(),z.focus(),z._coreMouseService.areMouseEventsActive&&!z._selectionService.shouldForceSelection(re))return V(re),Q.mouseup&&z._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&z._document.addEventListener("mousemove",Q.mousedrag),z.cancel(re)})),this.register(r.addDisposableDomListener(H,"wheel",function(re){if(!Q.wheel){if(!z.buffer.hasScrollback){var Ae=z.viewport.getLinesScrolled(re);if(Ae===0)return;for(var Te=o.C0.ESC+(z._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(re.deltaY<0?"A":"B"),Re="",Ge=0;Ge<Math.abs(Ae);Ge++)Re+=Te;z._coreService.triggerDataEvent(Re,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(H,"wheel",function(re){if(!Q.wheel)return z.viewport.onWheel(re)?void 0:z.cancel(re)},{passive:!1})),this.register(r.addDisposableDomListener(H,"touchstart",function(re){if(!z._coreMouseService.areMouseEventsActive)return z.viewport.onTouchStart(re),z.cancel(re)},{passive:!0})),this.register(r.addDisposableDomListener(H,"touchmove",function(re){if(!z._coreMouseService.areMouseEventsActive)return z.viewport.onTouchMove(re)?void 0:z.cancel(re)},{passive:!1}))},M.prototype.refresh=function(z,W){var H;(H=this._renderService)===null||H===void 0||H.refreshRows(z,W)},M.prototype._queueLinkification=function(z,W){var H;(H=this.linkifier)===null||H===void 0||H.linkifyRows(z,W)},M.prototype.updateCursorStyle=function(z){this._selectionService&&this._selectionService.shouldColumnSelect(z)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},M.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},M.prototype.scrollLines=function(z,W){X.prototype.scrollLines.call(this,z,W),this.refresh(0,this.rows-1)},M.prototype.paste=function(z){u.paste(z,this.textarea,this._coreService)},M.prototype.attachCustomKeyEventHandler=function(z){this._customKeyEventHandler=z},M.prototype.registerLinkMatcher=function(z,W,H){var V=this.linkifier.registerLinkMatcher(z,W,H);return this.refresh(0,this.rows-1),V},M.prototype.deregisterLinkMatcher=function(z){this.linkifier.deregisterLinkMatcher(z)&&this.refresh(0,this.rows-1)},M.prototype.registerLinkProvider=function(z){return this.linkifier2.registerLinkProvider(z)},M.prototype.registerCharacterJoiner=function(z){var W=this._renderService.registerCharacterJoiner(z);return this.refresh(0,this.rows-1),W},M.prototype.deregisterCharacterJoiner=function(z){this._renderService.deregisterCharacterJoiner(z)&&this.refresh(0,this.rows-1)},Object.defineProperty(M.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),M.prototype.addMarker=function(z){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+z)},M.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},M.prototype.select=function(z,W,H){this._selectionService.setSelection(z,W,H)},M.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},M.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]}},M.prototype.clearSelection=function(){var z;(z=this._selectionService)===null||z===void 0||z.clearSelection()},M.prototype.selectAll=function(){var z;(z=this._selectionService)===null||z===void 0||z.selectAll()},M.prototype.selectLines=function(z,W){var H;(H=this._selectionService)===null||H===void 0||H.selectLines(z,W)},M.prototype._keyDown=function(z){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1)return!1;if(!this._compositionHelper.keydown(z))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var W=b.evaluateKeyboardEvent(z,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(z),W.type===3||W.type===2){var H=this.rows-1;return this.scrollLines(W.type===2?-H:H),this.cancel(z,!0)}return W.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,z)||(W.cancel&&this.cancel(z,!0),!W.key||(W.key!==o.C0.ETX&&W.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:W.key,domEvent:z}),this._showCursor(),this._coreService.triggerDataEvent(W.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(z,!0)))},M.prototype._isThirdLevelShift=function(z,W){var H=z.isMac&&!this.options.macOptionIsMeta&&W.altKey&&!W.ctrlKey&&!W.metaKey||z.isWindows&&W.altKey&&W.ctrlKey&&!W.metaKey;return W.type==="keypress"?H:H&&(!W.keyCode||W.keyCode>47)},M.prototype._keyUp=function(z){this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1||(function(W){return W.keyCode===16||W.keyCode===17||W.keyCode===18}(z)||this.focus(),this.updateCursorStyle(z))},M.prototype._keyPress=function(z){var W;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1)return!1;if(this.cancel(z),z.charCode)W=z.charCode;else if(z.which===null||z.which===void 0)W=z.keyCode;else{if(z.which===0||z.charCode===0)return!1;W=z.which}return!(!W||(z.altKey||z.ctrlKey||z.metaKey)&&!this._isThirdLevelShift(this.browser,z))&&(W=String.fromCharCode(W),this._onKey.fire({key:W,domEvent:z}),this._showCursor(),this._coreService.triggerDataEvent(W,!0),!0)},M.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},M.prototype.resize=function(z,W){z!==this.cols||W!==this.rows?X.prototype.resize.call(this,z,W):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},M.prototype._afterResize=function(z,W){var H,V;(H=this._charSizeService)===null||H===void 0||H.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},M.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 z=1;z<this.rows;z++)this.buffer.lines.push(this.buffer.getBlankLine(x.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},M.prototype.reset=function(){var z,W;this.options.rows=this.rows,this.options.cols=this.cols;var H=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(z=this._selectionService)===null||z===void 0||z.reset(),this._customKeyEventHandler=H,this.refresh(0,this.rows-1),(W=this.viewport)===null||W===void 0||W.syncScrollArea()},M.prototype._reportWindowsOptions=function(z){if(this._renderService)switch(z){case n.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var W=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),H=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+H+";"+W+"t");break;case n.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[6;"+Q+";"+V+"t")}},M.prototype.cancel=function(z,W){if(this.options.cancelEvents||W)return z.preventDefault(),z.stopPropagation(),!1},M.prototype._visualBell=function(){return!1},M.prototype._soundBell=function(){return this.options.bellStyle==="sound"},M}(R.CoreTerminal);p.Terminal=P},function(y,p,S){"use strict";var v=this&&this.__decorate||function(o,n,t,a){var e,l=arguments.length,r=l<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,t,a);else for(var s=o.length-1;s>=0;s--)(e=o[s])&&(r=(l<3?e(r):l>3?e(n,t,r):e(n,t))||r);return l>3&&r&&Object.defineProperty(n,t,r),r},m=this&&this.__param||function(o,n){return function(t,a){n(t,a,o)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CompositionHelper=void 0;var f=S(5),d=S(1),u=function(){function o(n,t,a,e,l,r){this._textarea=n,this._compositionView=t,this._bufferService=a,this._optionsService=e,this._charSizeService=l,this._coreService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(o.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),o.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},o.prototype.compositionupdate=function(n){var t=this;this._compositionView.textContent=n.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},o.prototype.compositionend=function(){this._finalizeComposition(!0)},o.prototype.keydown=function(n){if(this._isComposing||this._isSendingComposition){if(n.keyCode===229)return!1;if(n.keyCode===16||n.keyCode===17||n.keyCode===18)return!1;this._finalizeComposition(!1)}return n.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},o.prototype._finalizeComposition=function(n){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,n){var a={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(a.start,a.end):t._textarea.value.substring(a.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)}},o.prototype._handleAnyTextareaChanges=function(){var n=this,t=this._textarea.value;setTimeout(function(){if(!n._isComposing){var a=n._textarea.value.replace(t,"");a.length>0&&n._coreService.triggerDataEvent(a,!0)}},0)},o.prototype.updateCompositionElements=function(n){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var a=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*a,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=a+"px",this._compositionView.style.lineHeight=a+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var r=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=e+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"}n||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},o=v([m(2,d.IBufferService),m(3,d.IOptionsService),m(4,f.ICharSizeService),m(5,d.ICoreService)],o)}();p.CompositionHelper=u},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,h=arguments.length,g=h<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Viewport=void 0;var u=S(2),o=S(7),n=S(5),t=S(1),a=function(e){function l(r,s,c,h,g,A,b){var w=e.call(this)||this;return w._scrollLines=r,w._viewportElement=s,w._scrollArea=c,w._bufferService=h,w._optionsService=g,w._charSizeService=A,w._renderService=b,w.scrollBarWidth=0,w._currentRowHeight=0,w._lastRecordedBufferLength=0,w._lastRecordedViewportHeight=0,w._lastRecordedBufferHeight=0,w._lastTouchY=0,w._lastScrollTop=0,w._wheelPartialScroll=0,w._refreshAnimationFrame=null,w._ignoreNextScrollEvent=!1,w.scrollBarWidth=w._viewportElement.offsetWidth-w._scrollArea.offsetWidth||15,w.register(o.addDisposableDomListener(w._viewportElement,"scroll",w._onScroll.bind(w))),setTimeout(function(){return w.syncScrollArea()},0),w}return m(l,e),l.prototype.onThemeChange=function(r){this._viewportElement.style.backgroundColor=r.background.css},l.prototype._refresh=function(r){var s=this;if(r)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return s._innerRefresh()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var r=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==r&&(this._lastRecordedBufferHeight=r,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==s&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=s),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(r){if(r===void 0&&(r=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(r);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var s=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===s&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(r)}else this._refresh(r)},l.prototype._onScroll=function(r){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var s=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(s,!0)}},l.prototype._bubbleScroll=function(r,s){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&c<this._lastRecordedBufferHeight)||(r.cancelable&&r.preventDefault(),!1)},l.prototype.onWheel=function(r){var s=this._getPixelsScrolled(r);return s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},l.prototype._getPixelsScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_LINE?s*=this._currentRowHeight:r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._currentRowHeight*this._bufferService.rows),s},l.prototype.getLinesScrolled=function(r){if(r.deltaY===0)return 0;var s=this._applyScrollModifier(r.deltaY,r);return r.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(s/=this._currentRowHeight+0,this._wheelPartialScroll+=s,s=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):r.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s},l.prototype._applyScrollModifier=function(r,s){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&s.altKey||c==="ctrl"&&s.ctrlKey||c==="shift"&&s.shiftKey?r*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:r*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(r){this._lastTouchY=r.touches[0].pageY},l.prototype.onTouchMove=function(r){var s=this._lastTouchY-r.touches[0].pageY;return this._lastTouchY=r.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(r,s))},l=f([d(3,t.IBufferService),d(4,t.IOptionsService),d(5,n.ICharSizeService),d(6,n.IRenderService)],l)}(u.Disposable);p.Viewport=a},function(y,p,S){"use strict";function v(u){return u.replace(/\r?\n/g,"\r")}function m(u,o){return o?"[200~"+u+"[201~":u}function f(u,o,n){u=m(u=v(u),n.decPrivateModes.bracketedPasteMode),n.triggerDataEvent(u,!0),o.value=""}function d(u,o,n){var t=n.getBoundingClientRect(),a=u.clientX-t.left-10,e=u.clientY-t.top-10;o.style.width="20px",o.style.height="20px",o.style.left=a+"px",o.style.top=e+"px",o.style.zIndex="1000",o.focus()}Object.defineProperty(p,"__esModule",{value:!0}),p.rightClickHandler=p.moveTextAreaUnderMouseCursor=p.paste=p.handlePasteEvent=p.copyHandler=p.bracketTextForPaste=p.prepareTextForTerminal=void 0,p.prepareTextForTerminal=v,p.bracketTextForPaste=m,p.copyHandler=function(u,o){u.clipboardData&&u.clipboardData.setData("text/plain",o.selectionText),u.preventDefault()},p.handlePasteEvent=function(u,o,n){u.stopPropagation(),u.clipboardData&&f(u.clipboardData.getData("text/plain"),o,n)},p.paste=f,p.moveTextAreaUnderMouseCursor=d,p.rightClickHandler=function(u,o,n,t,a){d(u,o,n),a&&!t.isClickInSelection(u)&&t.selectWordAtCursor(u),o.value=t.selectionText,o.select()}},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.EscapeSequenceParser=p.VT500_TRANSITION_TABLE=p.TransitionTable=void 0;var f=S(2),d=S(15),u=S(21),o=S(22),n=S(24),t=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,r){d.fill(this.table,l<<4|r)},e.prototype.add=function(l,r,s,c){this.table[r<<8|l]=s<<4|c},e.prototype.addMany=function(l,r,s,c){for(var h=0;h<l.length;h++)this.table[r<<8|l[h]]=s<<4|c},e}();p.TransitionTable=t,p.VT500_TRANSITION_TABLE=function(){var e=new t(4095),l=Array.apply(null,Array(256)).map(function(A,b){return b}),r=function(b,w){return l.slice(b,w)},s=r(32,127),c=r(0,24);c.push(25),c.push.apply(c,r(28,32));var h,g=r(0,14);for(h in e.setDefault(1,0),e.addMany(s,0,2,0),g)e.addMany([24,26,153,154],h,3,0),e.addMany(r(128,144),h,3,0),e.addMany(r(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(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,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(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(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(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(c,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(c,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(c,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(c,13,13,13),e.addMany(s,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 a=function(e){function l(r){r===void 0&&(r=p.VT500_TRANSITION_TABLE);var s=e.call(this)||this;return s._transitions=r,s.initialState=0,s.currentState=s.initialState,s._params=new u.Params,s._params.addParam(0),s._collect=0,s.precedingCodepoint=0,s._printHandlerFb=function(c,h,g){},s._executeHandlerFb=function(c){},s._csiHandlerFb=function(c,h){},s._escHandlerFb=function(c){},s._errorHandlerFb=function(c){return c},s._printHandler=s._printHandlerFb,s._executeHandlers=Object.create(null),s._csiHandlers=Object.create(null),s._escHandlers=Object.create(null),s._oscParser=new o.OscParser,s._dcsParser=new n.DcsParser,s._errorHandler=s._errorHandlerFb,s.setEscHandler({final:"\\"},function(){}),s}return m(l,e),l.prototype._identifier=function(r,s){s===void 0&&(s=[64,126]);var c=0;if(r.prefix){if(r.prefix.length>1)throw new Error("only one byte as prefix supported");if((c=r.prefix.charCodeAt(0))&&60>c||c>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(r.intermediates){if(r.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var h=0;h<r.intermediates.length;++h){var g=r.intermediates.charCodeAt(h);if(32>g||g>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=g}}if(r.final.length!==1)throw new Error("final must be a single byte");var A=r.final.charCodeAt(0);if(s[0]>A||A>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return c<<=8,c|=A},l.prototype.identToString=function(r){for(var s=[];r;)s.push(String.fromCharCode(255&r)),r>>=8;return s.reverse().join("")},l.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},l.prototype.setPrintHandler=function(r){this._printHandler=r},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(r,s){var c=this._identifier(r,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var h=this._escHandlers[c];return h.push(s),{dispose:function(){var A=h.indexOf(s);A!==-1&&h.splice(A,1)}}},l.prototype.setEscHandler=function(r,s){this._escHandlers[this._identifier(r,[48,126])]=[s]},l.prototype.clearEscHandler=function(r){this._escHandlers[this._identifier(r,[48,126])]&&delete this._escHandlers[this._identifier(r,[48,126])]},l.prototype.setEscHandlerFallback=function(r){this._escHandlerFb=r},l.prototype.setExecuteHandler=function(r,s){this._executeHandlers[r.charCodeAt(0)]=s},l.prototype.clearExecuteHandler=function(r){this._executeHandlers[r.charCodeAt(0)]&&delete this._executeHandlers[r.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(r){this._executeHandlerFb=r},l.prototype.addCsiHandler=function(r,s){var c=this._identifier(r);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var h=this._csiHandlers[c];return h.push(s),{dispose:function(){var A=h.indexOf(s);A!==-1&&h.splice(A,1)}}},l.prototype.setCsiHandler=function(r,s){this._csiHandlers[this._identifier(r)]=[s]},l.prototype.clearCsiHandler=function(r){this._csiHandlers[this._identifier(r)]&&delete this._csiHandlers[this._identifier(r)]},l.prototype.setCsiHandlerFallback=function(r){this._csiHandlerFb=r},l.prototype.addDcsHandler=function(r,s){return this._dcsParser.addHandler(this._identifier(r),s)},l.prototype.setDcsHandler=function(r,s){this._dcsParser.setHandler(this._identifier(r),s)},l.prototype.clearDcsHandler=function(r){this._dcsParser.clearHandler(this._identifier(r))},l.prototype.setDcsHandlerFallback=function(r){this._dcsParser.setHandlerFallback(r)},l.prototype.addOscHandler=function(r,s){return this._oscParser.addHandler(r,s)},l.prototype.setOscHandler=function(r,s){this._oscParser.setHandler(r,s)},l.prototype.clearOscHandler=function(r){this._oscParser.clearHandler(r)},l.prototype.setOscHandlerFallback=function(r){this._oscParser.setHandlerFallback(r)},l.prototype.setErrorHandler=function(r){this._errorHandler=r},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(r,s){for(var c=0,h=0,g=this.currentState,A=this._oscParser,b=this._dcsParser,w=this._collect,x=this._params,T=this._transitions.table,_=0;_<s;++_){switch((h=T[g<<8|((c=r[_])<160?c:160)])>>4){case 2:for(var E=_+1;;++E){if(E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,_,E),_=E-1;break}if(++E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,_,E),_=E-1;break}if(++E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,_,E),_=E-1;break}if(++E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,_,E),_=E-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:w,params:x,abort:!1}).abort)return;break;case 7:for(var C=this._csiHandlers[w<<8|c],I=C?C.length-1:-1;I>=0&&C[I](x)===!1;I--);I<0&&this._csiHandlerFb(w<<8|c,x),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:x.addParam(0);break;case 58:x.addSubParam(-1);break;default:x.addDigit(c-48)}while(++_<s&&(c=r[_])>47&&c<60);_--;break;case 9:w<<=8,w|=c;break;case 10:for(var O=this._escHandlers[w<<8|c],F=O?O.length-1:-1;F>=0&&O[F]()===!1;F--);F<0&&this._escHandlerFb(w<<8|c),this.precedingCodepoint=0;break;case 11:x.reset(),x.addParam(0),w=0;break;case 12:b.hook(w<<8|c,x);break;case 13:for(var R=_+1;;++R)if(R>=s||(c=r[R])===24||c===26||c===27||c>127&&c<160){b.put(r,_,R),_=R-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(h|=1),x.reset(),x.addParam(0),w=0,this.precedingCodepoint=0;break;case 4:A.start();break;case 5:for(var B=_+1;;B++)if(B>=s||(c=r[B])<32||c>127&&c<=159){A.put(r,_,B),_=B-1;break}break;case 6:A.end(c!==24&&c!==26),c===27&&(h|=1),x.reset(),x.addParam(0),w=0,this.precedingCodepoint=0}g=15&h}this._collect=w,this.currentState=g},l}(f.Disposable);p.EscapeSequenceParser=a},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(b,w){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var _ in T)T.hasOwnProperty(_)&&(x[_]=T[_])})(b,w)},function(A,b){function w(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),f=this&&this.__decorate||function(A,b,w,x){var T,_=arguments.length,E=_<3?b:x===null?x=Object.getOwnPropertyDescriptor(b,w):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(A,b,w,x);else for(var C=A.length-1;C>=0;C--)(T=A[C])&&(E=(_<3?T(E):_>3?T(b,w,E):T(b,w))||E);return _>3&&E&&Object.defineProperty(b,w,E),E},d=this&&this.__param||function(A,b){return function(w,x){b(w,x,A)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Renderer=void 0;var u=S(41),o=S(47),n=S(48),t=S(49),a=S(29),e=S(2),l=S(5),r=S(1),s=S(25),c=S(0),h=1,g=function(A){function b(w,x,T,_,E,C,I,O,F){var R=A.call(this)||this;R._colors=w,R._screenElement=x,R._bufferService=E,R._charSizeService=C,R._optionsService=I,R._id=h++,R._onRequestRedraw=new c.EventEmitter;var B=R._optionsService.options.allowTransparency;return R._characterJoinerRegistry=new a.CharacterJoinerRegistry(R._bufferService),R._renderLayers=[new u.TextRenderLayer(R._screenElement,0,R._colors,R._characterJoinerRegistry,B,R._id,R._bufferService,I),new o.SelectionRenderLayer(R._screenElement,1,R._colors,R._id,R._bufferService,I),new t.LinkRenderLayer(R._screenElement,2,R._colors,R._id,T,_,R._bufferService,I),new n.CursorRenderLayer(R._screenElement,3,R._colors,R._id,R._onRequestRedraw,R._bufferService,I,O,F)],R.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},R._devicePixelRatio=window.devicePixelRatio,R._updateDimensions(),R.onOptionsChanged(),R}return m(b,A),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var w=0,x=this._renderLayers;w<x.length;w++)x[w].dispose();A.prototype.dispose.call(this),s.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(w){this._colors=w;for(var x=0,T=this._renderLayers;x<T.length;x++){var _=T[x];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(w,x){this._updateDimensions();for(var T=0,_=this._renderLayers;T<_.length;T++)_[T].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(w){return w.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(w){return w.onFocus()})},b.prototype.onSelectionChanged=function(w,x,T){T===void 0&&(T=!1),this._runOperation(function(_){return _.onSelectionChanged(w,x,T)})},b.prototype.onCursorMove=function(){this._runOperation(function(w){return w.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(w){return w.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(w){return w.reset()})},b.prototype._runOperation=function(w){for(var x=0,T=this._renderLayers;x<T.length;x++)w(T[x])},b.prototype.renderRows=function(w,x){for(var T=0,_=this._renderLayers;T<_.length;T++)_[T].onGridChanged(w,x)},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(w){return this._characterJoinerRegistry.registerCharacterJoiner(w)},b.prototype.deregisterCharacterJoiner=function(w){return this._characterJoinerRegistry.deregisterCharacterJoiner(w)},b=f([d(4,r.IBufferService),d(5,l.ICharSizeService),d(6,r.IOptionsService),d(7,r.ICoreService),d(8,l.ICoreBrowserService)],b)}(e.Disposable);p.Renderer=g},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.TextRenderLayer=void 0;var f=S(42),d=S(13),u=S(6),o=S(3),n=S(29),t=S(4),a=function(e){function l(r,s,c,h,g,A,b,w){var x=e.call(this,r,"text",s,g,c,A,b,w)||this;return x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new t.CellData,x._state=new f.GridCache,x._characterJoinerRegistry=h,x}return m(l,e),l.prototype.resize=function(r){e.prototype.resize.call(this,r);var s=this._getFont(!1,!1);this._characterWidth===r.scaledCharWidth&&this._characterFont===s||(this._characterWidth=r.scaledCharWidth,this._characterFont=s,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(r,s,c,h){for(var g=r;g<=s;g++)for(var A=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(A),w=c?c.getJoinedCharacters(A):[],x=0;x<this._bufferService.cols;x++){b.loadCell(x,this._workCell);var T=this._workCell,_=!1,E=x;if(T.getWidth()!==0){if(w.length>0&&x===w[0][0]){_=!0;var C=w.shift();T=new n.JoinedCellData(this._workCell,b.translateToString(!0,C[0],C[1]),C[1]-C[0]),E=C[1]-1}!_&&this._isOverlapping(T)&&E<b.length-1&&b.getCodePoint(E+1)===o.NULL_CELL_CODE&&(T.content&=-12582913,T.content|=2<<22),h(T,x,g),x=E}}},l.prototype._drawBackground=function(r,s){var c=this,h=this._ctx,g=this._bufferService.cols,A=0,b=0,w=null;h.save(),this._forEachCell(r,s,null,function(x,T,_){var E=null;x.isInverse()?E=x.isFgDefault()?c._colors.foreground.css:x.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(x.getFgColor()).join(",")+")":c._colors.ansi[x.getFgColor()].css:x.isBgRGB()?E="rgb("+u.AttributeData.toColorRGB(x.getBgColor()).join(",")+")":x.isBgPalette()&&(E=c._colors.ansi[x.getBgColor()].css),w===null&&(A=T,b=_),_!==b?(h.fillStyle=w||"",c._fillCells(A,b,g-A,1),A=T,b=_):w!==E&&(h.fillStyle=w||"",c._fillCells(A,b,T-A,1),A=T,b=_),w=E}),w!==null&&(h.fillStyle=w,this._fillCells(A,b,g-A,1)),h.restore()},l.prototype._drawForeground=function(r,s){var c=this;this._forEachCell(r,s,this._characterJoinerRegistry,function(h,g,A){if(!h.isInvisible()&&(c._drawChars(h,g,A),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 w=h.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&w<8&&(w+=8),c._ctx.fillStyle=c._colors.ansi[w].css}c._fillBottomLineAtCells(g,A,h.getWidth()),c._ctx.restore()}})},l.prototype.onGridChanged=function(r,s){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,r,this._bufferService.cols,s-r+1),this._drawBackground(r,s),this._drawForeground(r,s))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.prototype._isOverlapping=function(r){if(r.getWidth()!==1)return!1;if(r.getCode()<256)return!1;var s=r.getChars();if(this._characterOverlapCache.hasOwnProperty(s))return this._characterOverlapCache[s];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(s).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=c,c},l}(d.BaseRenderLayer);p.TextRenderLayer=a},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridCache=void 0;var v=function(){function m(){this.cache=[]}return m.prototype.resize=function(f,d){for(var u=0;u<f;u++){this.cache.length<=u&&this.cache.push([]);for(var o=this.cache[u].length;o<d;o++)this.cache[u].push(void 0);this.cache[u].length=d}this.cache.length=f},m.prototype.clear=function(){for(var f=0;f<this.cache.length;f++)for(var d=0;d<this.cache[f].length;d++)this.cache[f][d]=void 0},m}();p.GridCache=v},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(h,g){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var w in b)b.hasOwnProperty(w)&&(A[w]=b[w])})(h,g)},function(c,h){function g(){this.constructor=c}v(c,h),c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(p,"__esModule",{value:!0}),p.NoneCharAtlas=p.DynamicCharAtlas=p.getGlyphCacheKey=void 0;var f=S(9),d=S(44),u=S(27),o=S(46),n=S(11),t=S(28),a=S(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)}p.getGlyphCacheKey=l;var r=function(c){function h(g,A){var b=c.call(this)||this;b._config=A,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 w=g.createElement("canvas");w.width=b._config.scaledCharWidth,w.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(w.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(1024/b._config.scaledCharWidth),b._height=Math.floor(1024/b._config.scaledCharHeight);var x=b._width*b._height;return b._cacheMap=new o.LRUMap(x),b._cacheMap.prealloc(x),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,A,b,w){if(A.code===32)return!0;if(!this._canCache(A))return!1;var x=l(A),T=this._cacheMap.get(x);if(T!=null)return this._drawFromCache(g,T,b,w),!0;if(this._drawToCacheCount<100){var _=void 0;_=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var E=this._drawToCache(A,_);return this._cacheMap.set(x,E),this._drawFromCache(g,E,b,w),!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,A,b,w){if(!A.isEmpty){var x=this._toCoordinateX(A.index),T=this._toCoordinateY(A.index);g.drawImage(A.inBitmap?this._bitmap:this._cacheCanvas,x,T,this._config.scaledCharWidth,this._config.scaledCharHeight,b,w,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===f.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===f.INVERTED_DEFAULT_COLOR?a.color.opaque(this._config.colors.background):g.fg<256?this._getColorFromAnsiIndex(g.fg):this._config.colors.foreground},h.prototype._drawToCache=function(g,A){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 w=g.bold?this._config.fontWeightBold:this._config.fontWeight,x=g.italic?"italic":"";this._tmpCtx.font=x+" "+w+" "+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=f.DIM_OPACITY),this._tmpCtx.fillText(g.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var T=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),_=!1;this._config.allowTransparency||(_=function(O,F){for(var R=!0,B=F.rgba>>>24,P=F.rgba>>>16&255,X=F.rgba>>>8&255,M=0;M<O.data.length;M+=4)O.data[M]===B&&O.data[M+1]===P&&O.data[M+2]===X?O.data[M+3]=0:R=!1;return R}(T,b));var E=this._toCoordinateX(A),C=this._toCoordinateY(A);this._cacheCtx.putImageData(T,E,C);var I={index:A,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(I),I},h.prototype._addGlyphToBitmap=function(g){var A=this;!("createImageBitmap"in window)||n.isFirefox||n.isSafari||(this._glyphsWaitingOnBitmap.push(g),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return A._generateBitmap()},100)))},h.prototype._generateBitmap=function(){var g=this,A=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){g._bitmap=b;for(var w=0;w<A.length;w++)A[w].inBitmap=!0}),this._bitmapCommitTimeout=null},h}(d.BaseCharAtlas);p.DynamicCharAtlas=r;var s=function(c){function h(g,A){return c.call(this)||this}return m(h,c),h.prototype.draw=function(g,A,b,w){return!1},h}(d.BaseCharAtlas);p.NoneCharAtlas=s},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseCharAtlas=void 0;var v=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}();p.BaseCharAtlas=v},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorContrastCache=void 0;var v=function(){function m(){this._color={},this._rgba={}}return m.prototype.clear=function(){this._color={},this._rgba={}},m.prototype.setCss=function(f,d,u){this._rgba[f]||(this._rgba[f]={}),this._rgba[f][d]=u},m.prototype.getCss=function(f,d){return this._rgba[f]?this._rgba[f][d]:void 0},m.prototype.setColor=function(f,d,u){this._color[f]||(this._color[f]={}),this._color[f][d]=u},m.prototype.getColor=function(f,d){return this._color[f]?this._color[f][d]:void 0},m}();p.ColorContrastCache=v},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LRUMap=void 0;var v=function(){function m(f){this.capacity=f,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return m.prototype._unlinkNode=function(f){var d=f.prev,u=f.next;f===this._head&&(this._head=u),f===this._tail&&(this._tail=d),d!==null&&(d.next=u),u!==null&&(u.prev=d)},m.prototype._appendNode=function(f){var d=this._tail;d!==null&&(d.next=f),f.prev=d,f.next=null,this._tail=f,this._head===null&&(this._head=f)},m.prototype.prealloc=function(f){for(var d=this._nodePool,u=0;u<f;u++)d.push({prev:null,next:null,key:null,value:null})},m.prototype.get=function(f){var d=this._map[f];return d!==void 0?(this._unlinkNode(d),this._appendNode(d),d.value):null},m.prototype.peekValue=function(f){var d=this._map[f];return d!==void 0?d.value:null},m.prototype.peek=function(){var f=this._head;return f===null?null:f.value},m.prototype.set=function(f,d){var u=this._map[f];if(u!==void 0)u=this._map[f],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=f,u.value=d,this._map[f]=u;else{var o=this._nodePool;o.length>0?((u=o.pop()).key=f,u.value=d):u={prev:null,next:null,key:f,value:d},this._map[f]=u,this.size++}this._appendNode(u)},m}();p.LRUMap=v},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(u,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a])})(u,o)},function(d,u){function o(){this.constructor=d}v(d,u),d.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionRenderLayer=void 0;var f=function(d){function u(o,n,t,a,e,l){var r=d.call(this,o,"selection",n,!0,t,a,e,l)||this;return r._clearState(),r}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(o){d.prototype.resize.call(this,o),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(o,n,t){if(this._didStateChange(o,n,t,this._bufferService.buffer.ydisp))if(this._clearAll(),o&&n){var a=o[1]-this._bufferService.buffer.ydisp,e=n[1]-this._bufferService.buffer.ydisp,l=Math.max(a,0),r=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||r<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,t){var s=o[0],c=n[0]-s,h=r-l+1;this._fillCells(s,l,c,h)}else{s=a===l?o[0]:0;var g=l===r?n[0]:this._bufferService.cols;this._fillCells(s,l,g-s,1);var A=Math.max(r-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,A),l!==r){var b=e===r?n[0]:this._bufferService.cols;this._fillCells(0,r,b,1)}}this._state.start=[o[0],o[1]],this._state.end=[n[0],n[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(o,n,t,a){return!this._areCoordinatesEqual(o,this._state.start)||!this._areCoordinatesEqual(n,this._state.end)||t!==this._state.columnSelectMode||a!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(o,n){return!(!o||!n)&&o[0]===n[0]&&o[1]===n[1]},u}(S(13).BaseRenderLayer);p.SelectionRenderLayer=f},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(t,a){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,a)},function(n,t){function a(){this.constructor=n}v(n,t),n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.CursorRenderLayer=void 0;var f=S(13),d=S(4),u=function(n){function t(a,e,l,r,s,c,h,g,A){var b=n.call(this,a,"cursor",e,!0,l,r,c,h)||this;return b._onRequestRedraw=s,b._coreService=g,b._coreBrowserService=A,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,n),t.prototype.resize=function(a){n.prototype.resize.call(this,a),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 a,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new o(this._coreBrowserService.isFocused,function(){e._render(!0)})):((a=this._cursorBlinkStateManager)===null||a===void 0||a.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(a,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(a){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 r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(r,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var s=this._optionsService.options.cursorStyle;return s&&s!=="block"?this._cursorRenderers[s](r,l,this._cell):this._renderBlurCursor(r,l,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=l,this._state.isFocused=!1,this._state.style=s,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&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"](r,l,this._cell),this._ctx.restore(),this._state.x=r,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(a,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(a,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(a,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(a,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,a,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(a,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(a,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(a,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(a,e,l.getWidth(),1),this._ctx.restore()},t}(f.BaseRenderLayer);p.CursorRenderLayer=u;var o=function(){function n(t,a){this._renderCallback=a,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(n.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},n.prototype._restartInterval=function(t){var a=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(a._animationTimeRestarted){var e=600-(Date.now()-a._animationTimeRestarted);if(a._animationTimeRestarted=void 0,e>0)return void a._restartInterval(e)}a.isCursorVisible=!1,a._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0}),a._blinkInterval=window.setInterval(function(){if(a._animationTimeRestarted){var l=600-(Date.now()-a._animationTimeRestarted);return a._animationTimeRestarted=void 0,void a._restartInterval(l)}a.isCursorVisible=!a.isCursorVisible,a._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0})},600)},t)},n.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},n}()},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(t,a){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var r in l)l.hasOwnProperty(r)&&(e[r]=l[r])})(t,a)},function(n,t){function a(){this.constructor=n}v(n,t),n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.LinkRenderLayer=void 0;var f=S(13),d=S(9),u=S(26),o=function(n){function t(a,e,l,r,s,c,h,g){var A=n.call(this,a,"link",e,!0,l,r,h,g)||this;return s.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),s.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return A._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return A._onHideLinkUnderline(b)}),A}return m(t,n),t.prototype.resize=function(a){n.prototype.resize.call(this,a),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 a=this._state.y2-this._state.y1-1;a>0&&this._clearCells(0,this._state.y1+1,this._state.cols,a),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(a){if(a.fg===d.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:a.fg&&u.is256Color(a.fg)?this._ctx.fillStyle=this._colors.ansi[a.fg].css:this._ctx.fillStyle=this._colors.foreground.css,a.y1===a.y2)this._fillBottomLineAtCells(a.x1,a.y1,a.x2-a.x1);else{this._fillBottomLineAtCells(a.x1,a.y1,a.cols-a.x1);for(var e=a.y1+1;e<a.y2;e++)this._fillBottomLineAtCells(0,e,a.cols);this._fillBottomLineAtCells(0,a.y2,a.x2)}this._state=a},t.prototype._onHideLinkUnderline=function(a){this._clearCurrentLink()},t}(f.BaseRenderLayer);p.LinkRenderLayer=o},function(y,p,S){"use strict";var v=this&&this.__decorate||function(n,t,a,e){var l,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,a):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,a,e);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(s=(r<3?l(s):r>3?l(t,a,s):l(t,a))||s);return r>3&&s&&Object.defineProperty(t,a,s),s},m=this&&this.__param||function(n,t){return function(a,e){t(a,e,n)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZone=p.Linkifier=void 0;var f=S(0),d=S(1),u=function(){function n(t,a,e){this._bufferService=t,this._logService=a,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(n.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),n.prototype.attachToDom=function(t,a){this._element=t,this._mouseZoneManager=a},n.prototype.linkifyRows=function(t,a){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=a):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,a)),this._mouseZoneManager.clearAll(t,a),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},n._timeBeforeLatency))},n.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var a=t.ydisp+this._rowsToLinkify.start;if(!(a>=t.lines.length)){for(var e=t.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,a,e,l,l);r.hasNext();)for(var s=r.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(s.range.first,s.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")},n.prototype.registerLinkMatcher=function(t,a,e){if(e===void 0&&(e={}),!a)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:t,handler:a,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},n.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var a=this._linkMatchers.length-1;a>=0;a--)if(t.priority<=this._linkMatchers[a].priority)return void this._linkMatchers.splice(a+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},n.prototype.deregisterLinkMatcher=function(t){for(var a=0;a<this._linkMatchers.length;a++)if(this._linkMatchers[a].id===t)return this._linkMatchers.splice(a,1),!0;return!1},n.prototype._doLinkifyRow=function(t,a,e){for(var l,r=this,s=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=a.indexOf(b,c+1),s.lastIndex=c+b.length,c<0)return"break";var w=g._bufferService.buffer.stringIndexToBufferIndex(t,c);if(w[0]<0)return"break";var x=g._bufferService.buffer.lines.get(w[0]);if(!x)return"break";var T=x.getFg(w[1]),_=T?T>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(E){r._rowsTimeoutId||E&&r._addLink(w[1],w[0]-r._bufferService.buffer.ydisp,b,e,_)}):g._addLink(w[1],w[0]-g._bufferService.buffer.ydisp,b,e,_)},g=this;(l=s.exec(a))!==null&&!(h()==="break"););},n.prototype._addLink=function(t,a,e,l,r){var s=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),h=t%this._bufferService.cols,g=a+Math.floor(t/this._bufferService.cols),A=(h+c)%this._bufferService.cols,b=g+Math.floor((h+c)/this._bufferService.cols);A===0&&(A=this._bufferService.cols,b--),this._mouseZoneManager.add(new o(h+1,g+1,A+1,b+1,function(w){if(l.handler)return l.handler(w,e);var x=window.open();x?(x.opener=null,x.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(h,g,A,b,r)),s._element.classList.add("xterm-cursor-pointer")},function(w){s._onLinkTooltip.fire(s._createLinkHoverEvent(h,g,A,b,r)),l.hoverTooltipCallback&&l.hoverTooltipCallback(w,e,{start:{x:h,y:g},end:{x:A,y:b}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(h,g,A,b,r)),s._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(w){return!l.willLinkActivate||l.willLinkActivate(w,e)}))}},n.prototype._createLinkHoverEvent=function(t,a,e,l,r){return{x1:t,y1:a,x2:e,y2:l,cols:this._bufferService.cols,fg:r}},n._timeBeforeLatency=200,n=v([m(0,d.IBufferService),m(1,d.ILogService),m(2,d.IUnicodeService)],n)}();p.Linkifier=u;var o=function(t,a,e,l,r,s,c,h,g){this.x1=t,this.y1=a,this.x2=e,this.y2=l,this.clickCallback=r,this.hoverCallback=s,this.tooltipCallback=c,this.leaveCallback=h,this.willLinkActivate=g};p.MouseZone=o},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(b,w){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var _ in T)T.hasOwnProperty(_)&&(x[_]=T[_])})(b,w)},function(A,b){function w(){this.constructor=A}v(A,b),A.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),f=this&&this.__decorate||function(A,b,w,x){var T,_=arguments.length,E=_<3?b:x===null?x=Object.getOwnPropertyDescriptor(b,w):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(A,b,w,x);else for(var C=A.length-1;C>=0;C--)(T=A[C])&&(E=(_<3?T(E):_>3?T(b,w,E):T(b,w))||E);return _>3&&E&&Object.defineProperty(b,w,E),E},d=this&&this.__param||function(A,b){return function(w,x){b(w,x,A)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionService=void 0;var u=S(11),o=S(52),n=S(4),t=S(0),a=S(5),e=S(1),l=S(30),r=S(53),s=S(2),c=String.fromCharCode(160),h=new RegExp(c,"g"),g=function(A){function b(w,x,T,_,E,C,I){var O=A.call(this)||this;return O._element=w,O._screenElement=x,O._bufferService=T,O._coreService=_,O._mouseService=E,O._optionsService=C,O._renderService=I,O._dragScrollAmount=0,O._enabled=!0,O._workCell=new n.CellData,O._mouseDownTimeStamp=0,O._onLinuxMouseSelection=O.register(new t.EventEmitter),O._onRedrawRequest=O.register(new t.EventEmitter),O._onSelectionChange=O.register(new t.EventEmitter),O._onRequestScrollLines=O.register(new t.EventEmitter),O._mouseMoveListener=function(F){return O._onMouseMove(F)},O._mouseUpListener=function(F){return O._onMouseUp(F)},O._coreService.onUserInput(function(){O.hasSelection&&O.clearSelection()}),O._trimListener=O._bufferService.buffer.lines.onTrim(function(F){return O._onTrim(F)}),O.register(O._bufferService.buffers.onBufferActivate(function(F){return O._onBufferActivate(F)})),O.enable(),O._model=new o.SelectionModel(O._bufferService),O._activeSelectionMode=0,O}return m(b,A),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 x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!x||!T)&&(x[0]!==T[0]||x[1]!==T[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!x||!T)return"";var _=this._bufferService.buffer,E=[];if(this._activeSelectionMode===3){if(x[0]===T[0])return"";for(var C=x[1];C<=T[1];C++){var I=_.translateBufferLineToString(C,!0,x[0],T[0]);E.push(I)}}else{var O=x[1]===T[1]?T[0]:void 0;for(E.push(_.translateBufferLineToString(x[1],!0,x[0],O)),C=x[1]+1;C<=T[1]-1;C++){var F=_.lines.get(C);I=_.translateBufferLineToString(C,!0),F&&F.isWrapped?E[E.length-1]+=I:E.push(I)}x[1]!==T[1]&&(F=_.lines.get(T[1]),I=_.translateBufferLineToString(T[1],!0,0,T[0]),F&&F.isWrapped?E[E.length-1]+=I:E.push(I))}return E.map(function(R){return R.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(w){var x=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return x._refresh()})),u.isLinux&&w)&&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(w){var x=this._getMouseBufferCoords(w),T=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(T&&_&&x)&&this._areCoordsInSelection(x,T,_)},b.prototype._areCoordsInSelection=function(w,x,T){return w[1]>x[1]&&w[1]<T[1]||x[1]===T[1]&&w[1]===x[1]&&w[0]>=x[0]&&w[0]<T[0]||x[1]<T[1]&&w[1]===T[1]&&w[0]<T[0]||x[1]<T[1]&&w[1]===x[1]&&w[0]>=x[0]},b.prototype.selectWordAtCursor=function(w){var x=this._getMouseBufferCoords(w);x&&(this._selectWordAt(x,!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(w,x){this._model.clearSelection(),w=Math.max(w,0),x=Math.min(x,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,w],this._model.selectionEnd=[this._bufferService.cols,x],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(w){this._model.onTrim(w)&&this.refresh()},b.prototype._getMouseBufferCoords=function(w){var x=this._mouseService.getCoords(w,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(x)return x[0]--,x[1]--,x[1]+=this._bufferService.buffer.ydisp,x},b.prototype._getMouseEventScrollAmount=function(w){var x=l.getCoordsRelativeToElement(w,this._screenElement)[1],T=this._renderService.dimensions.canvasHeight;return x>=0&&x<=T?0:(x>T&&(x-=T),x=Math.min(Math.max(x,-50),50),(x/=50)/Math.abs(x)+Math.round(14*x))},b.prototype.shouldForceSelection=function(w){return u.isMac?w.altKey&&this._optionsService.options.macOptionClickForcesSelection:w.shiftKey},b.prototype.onMouseDown=function(w){if(this._mouseDownTimeStamp=w.timeStamp,(w.button!==2||!this.hasSelection)&&w.button===0){if(!this._enabled){if(!this.shouldForceSelection(w))return;w.stopPropagation()}w.preventDefault(),this._dragScrollAmount=0,this._enabled&&w.shiftKey?this._onIncrementalClick(w):w.detail===1?this._onSingleClick(w):w.detail===2?this._onDoubleClick(w):w.detail===3&&this._onTripleClick(w),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var w=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return w._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(w){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(w))},b.prototype._onSingleClick=function(w){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(w)?3:0,this._model.selectionStart=this._getMouseBufferCoords(w),this._model.selectionStart){this._model.selectionEnd=void 0;var x=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);x&&x.length!==this._model.selectionStart[0]&&x.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(w){var x=this._getMouseBufferCoords(w);x&&(this._activeSelectionMode=1,this._selectWordAt(x,!0))},b.prototype._onTripleClick=function(w){var x=this._getMouseBufferCoords(w);x&&(this._activeSelectionMode=2,this._selectLineAt(x[1]))},b.prototype.shouldColumnSelect=function(w){return w.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(w){if(w.stopImmediatePropagation(),this._model.selectionStart){var x=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(w),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(w),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var T=this._bufferService.buffer;if(this._model.selectionEnd[1]<T.lines.length){var _=T.lines.get(this._model.selectionEnd[1]);_&&_.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}x&&x[0]===this._model.selectionEnd[0]&&x[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 w=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(w.ydisp+this._bufferService.rows,w.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=w.ydisp),this.refresh()}},b.prototype._onMouseUp=function(w){var x=w.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&x<500&&w.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var T=this._mouseService.getCoords(w,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(T&&T[0]!==void 0&&T[1]!==void 0){var _=r.moveToCellSequence(T[0]-1,T[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(_,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(w){var x=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=w.activeBuffer.lines.onTrim(function(T){return x._onTrim(T)})},b.prototype._convertViewportColToCharacterIndex=function(w,x){for(var T=x[0],_=0;x[0]>=_;_++){var E=w.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?T--:E>1&&x[0]!==_&&(T+=E-1)}return T},b.prototype.setSelection=function(w,x,T){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[w,x],this._model.selectionStartLength=T,this.refresh()},b.prototype._getWordAt=function(w,x,T,_){if(T===void 0&&(T=!0),_===void 0&&(_=!0),!(w[0]>=this._bufferService.cols)){var E=this._bufferService.buffer,C=E.lines.get(w[1]);if(C){var I=E.translateBufferLineToString(w[1],!1),O=this._convertViewportColToCharacterIndex(C,w),F=O,R=w[0]-O,B=0,P=0,X=0,M=0;if(I.charAt(O)===" "){for(;O>0&&I.charAt(O-1)===" ";)O--;for(;F<I.length&&I.charAt(F+1)===" ";)F++}else{var z=w[0],W=w[0];C.getWidth(z)===0&&(B++,z--),C.getWidth(W)===2&&(P++,W++);var H=C.getString(W).length;for(H>1&&(M+=H-1,F+=H-1);z>0&&O>0&&!this._isCharWordSeparator(C.loadCell(z-1,this._workCell));){C.loadCell(z-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(B++,z--):V>1&&(X+=V-1,O-=V-1),O--,z--}for(;W<C.length&&F+1<I.length&&!this._isCharWordSeparator(C.loadCell(W+1,this._workCell));){C.loadCell(W+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(P++,W++):Q>1&&(M+=Q-1,F+=Q-1),F++,W++}}F++;var G=O+R-B+X,ee=Math.min(this._bufferService.cols,F-O+B+P-X-M);if(x||I.slice(O,F).trim()!==""){if(T&&G===0&&C.getCodePoint(0)!==32){var q=E.lines.get(w[1]-1);if(q&&C.isWrapped&&q.getCodePoint(this._bufferService.cols-1)!==32){var se=this._getWordAt([this._bufferService.cols-1,w[1]-1],!1,!0,!1);if(se){var re=this._bufferService.cols-se.start;G-=re,ee+=re}}}if(_&&G+ee===this._bufferService.cols&&C.getCodePoint(this._bufferService.cols-1)!==32){var Ae=E.lines.get(w[1]+1);if(Ae&&Ae.isWrapped&&Ae.getCodePoint(0)!==32){var Te=this._getWordAt([0,w[1]+1],!1,!1,!0);Te&&(ee+=Te.length)}}return{start:G,length:ee}}}}},b.prototype._selectWordAt=function(w,x){var T=this._getWordAt(w,x);if(T){for(;T.start<0;)T.start+=this._bufferService.cols,w[1]--;this._model.selectionStart=[T.start,w[1]],this._model.selectionStartLength=T.length}},b.prototype._selectToWordAt=function(w){var x=this._getWordAt(w,!0);if(x){for(var T=w[1];x.start<0;)x.start+=this._bufferService.cols,T--;if(!this._model.areSelectionValuesReversed())for(;x.start+x.length>this._bufferService.cols;)x.length-=this._bufferService.cols,T++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?x.start:x.start+x.length,T]}},b.prototype._isCharWordSeparator=function(w){return w.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(w.getChars())>=0},b.prototype._selectLineAt=function(w){var x=this._bufferService.buffer.getWrappedRangeForLine(w);this._model.selectionStart=[0,x.first],this._model.selectionEnd=[this._bufferService.cols,x.last],this._model.selectionStartLength=0},b=f([d(2,e.IBufferService),d(3,e.ICoreService),d(4,a.IMouseService),d(5,e.IOptionsService),d(6,a.IRenderService)],b)}(s.Disposable);p.SelectionService=g},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionModel=void 0;var v=function(){function m(f){this._bufferService=f,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 f=this.selectionStart,d=this.selectionEnd;return!(!f||!d)&&(f[1]>d[1]||f[1]===d[1]&&f[0]>d[0])},m.prototype.onTrim=function(f){return this.selectionStart&&(this.selectionStart[1]-=f),this.selectionEnd&&(this.selectionEnd[1]-=f),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},m}();p.SelectionModel=v},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.moveToCellSequence=void 0;var v=S(12);function m(t,a,e,l){var r=t-f(e,t),s=a-f(e,a);return n(Math.abs(r-s)-function(c,h,g){for(var A=0,b=c-f(g,c),w=h-f(g,h),x=0;x<Math.abs(b-w);x++){var T=d(c,h)==="A"?-1:1,_=g.buffer.lines.get(b+T*x);_&&_.isWrapped&&A++}return A}(t,a,e),o(d(t,a),l))}function f(t,a){for(var e=0,l=t.buffer.lines.get(a),r=l&&l.isWrapped;r&&a>=0&&a<t.rows;)e++,r=(l=t.buffer.lines.get(--a))&&l.isWrapped;return e}function d(t,a){return t>a?"A":"B"}function u(t,a,e,l,r,s){for(var c=t,h=a,g="";c!==e||h!==l;)c+=r?1:-1,r&&c>s.cols-1?(g+=s.buffer.translateBufferLineToString(h,!1,t,c),c=0,t=0,h++):!r&&c<0&&(g+=s.buffer.translateBufferLineToString(h,!1,0,t+1),t=c=s.cols-1,h--);return g+s.buffer.translateBufferLineToString(h,!1,t,c)}function o(t,a){var e=a?"O":"[";return v.C0.ESC+e+t}function n(t,a){t=Math.floor(t);for(var e="",l=0;l<t;l++)e+=a;return e}p.moveToCellSequence=function(t,a,e,l){var r,s=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(g,A,b,w,x,T){return m(A,w,x,T).length===0?"":n(u(g,A,g,A-f(x,A),!1,x).length,o("D",T))}(s,c,0,a,e,l)+m(c,a,e,l)+function(g,A,b,w,x,T){var _;_=m(A,w,x,T).length>0?w-f(x,w):A;var E=w,C=function(I,O,F,R,B,P){var X;return X=m(F,R,B,P).length>0?R-f(B,R):O,I<F&&X<=R||I>=F&&X<R?"C":"D"}(g,A,b,w,x,T);return n(u(g,_,b,E,C==="C",x).length,o(C,T))}(s,c,t,a,e,l);if(c===a)return r=s>t?"D":"C",n(Math.abs(s-t),o(r,l));r=c>a?"D":"C";var h=Math.abs(c-a);return n(function(g,A){return A.cols-g}(c>a?t:s,e)+(h-1)*e.cols+1+((c>a?s:t)-1),o(r,l))}},function(y,p,S){"use strict";var v=this&&this.__decorate||function(u,o,n,t){var a,e=arguments.length,l=e<3?o:t===null?t=Object.getOwnPropertyDescriptor(o,n):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,o,n,t);else for(var r=u.length-1;r>=0;r--)(a=u[r])&&(l=(e<3?a(l):e>3?a(o,n,l):a(o,n))||l);return e>3&&l&&Object.defineProperty(o,n,l),l},m=this&&this.__param||function(u,o){return function(n,t){o(n,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SoundService=void 0;var f=S(1),d=function(){function u(o){this._optionsService=o}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var n=window.AudioContext||window.webkitAudioContext;if(!n)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new n}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var o=u.audioContext;if(o){var n=o.createBufferSource();o.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){n.buffer=t,n.connect(o.destination),n.start(0)})}},u.prototype._base64ToArrayBuffer=function(o){for(var n=window.atob(o),t=n.length,a=new Uint8Array(t),e=0;e<t;e++)a[e]=n.charCodeAt(e);return a.buffer},u.prototype._removeMimeType=function(o){return o.split(",")[1]},u=v([m(0,f.IOptionsService)],u)}();p.SoundService=d},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,h=arguments.length,g=h<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZoneManager=void 0;var u=S(2),o=S(7),n=S(5),t=S(1),a=function(e){function l(r,s,c,h,g,A){var b=e.call(this)||this;return b._element=r,b._screenElement=s,b._bufferService=c,b._mouseService=h,b._selectionService=g,b._optionsService=A,b._zones=[],b._areZonesActive=!1,b._lastHoverCoords=[void 0,void 0],b._initialSelectionLength=0,b.register(o.addDisposableDomListener(b._element,"mousedown",function(w){return b._onMouseDown(w)})),b._mouseMoveListener=function(w){return b._onMouseMove(w)},b._mouseLeaveListener=function(w){return b._onMouseLeave(w)},b._clickListener=function(w){return b._onClick(w)},b}return m(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(r){this._zones.push(r),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(r,s){if(this._zones.length!==0){r&&s||(r=0,s=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var h=this._zones[c];(h.y1>r&&h.y1<=s+1||h.y2>r&&h.y2<=s+1||h.y1<r&&h.y2>s+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(r){this._lastHoverCoords[0]===r.pageX&&this._lastHoverCoords[1]===r.pageY||(this._onHover(r),this._lastHoverCoords=[r.pageX,r.pageY])},l.prototype._onHover=function(r){var s=this,c=this._findZoneEventAt(r);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(r),this._tooltipTimeout=window.setTimeout(function(){return s._onTooltip(r)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(r){this._tooltipTimeout=void 0;var s=this._findZoneEventAt(r);s&&s.tooltipCallback&&s.tooltipCallback(r)},l.prototype._onMouseDown=function(r){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var s=this._findZoneEventAt(r);(s==null?void 0:s.willLinkActivate(r))&&(r.preventDefault(),r.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(r){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(r){var s=this._findZoneEventAt(r),c=this._getSelectionLength();s&&c===this._initialSelectionLength&&(s.clickCallback(r),r.preventDefault(),r.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var r=this._selectionService.selectionText;return r?r.length:0},l.prototype._findZoneEventAt=function(r){var s=this._mouseService.getCoords(r,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(s)for(var c=s[0],h=s[1],g=0;g<this._zones.length;g++){var A=this._zones[g];if(A.y1===A.y2){if(h===A.y1&&c>=A.x1&&c<A.x2)return A}else if(h===A.y1&&c>=A.x1||h===A.y2&&c<A.x2||h>A.y1&&h<A.y2)return A}},l=f([d(2,t.IBufferService),d(3,n.IMouseService),d(4,n.ISelectionService),d(5,t.IOptionsService)],l)}(u.Disposable);p.MouseZoneManager=a},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(r,s){return(v=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])})(r,s)},function(l,r){function s(){this.constructor=l}v(l,r),l.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0}),p.AccessibilityManager=void 0;var f=S(18),d=S(11),u=S(31),o=S(7),n=S(2),t=S(32),a=S(17),e=function(l){function r(s,c){var h=l.call(this)||this;h._terminal=s,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(A){return h._onBoundaryFocus(A,0)},h._bottomBoundaryFocusListener=function(A){return h._onBoundaryFocus(A,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(A){return h._onResize(A.rows)})),h.register(h._terminal.onRender(function(A){return h._refreshRows(A.start,A.end)})),h.register(h._terminal.onScroll(function(){return h._refreshRows()})),h.register(h._terminal.onA11yChar(function(A){return h._onChar(A)})),h.register(h._terminal.onLineFeed(function(){return h._onChar(`
`)})),h.register(h._terminal.onA11yTab(function(A){return h._onTab(A)})),h.register(h._terminal.onKey(function(A){return h._onKey(A.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(o.addDisposableDomListener(window,"resize",function(){return h._refreshRowsDimensions()})),h}return m(r,l),r.prototype.dispose=function(){l.prototype.dispose.call(this),a.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(s,c){var h=s.target,g=this._rowElements[c===0?1:this._rowElements.length-2];if(h.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&s.relatedTarget===g){var A,b;if(c===0?(A=h,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(A=this._rowElements.shift(),b=h,this._rowContainer.removeChild(A)),A.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var w=this._createAccessibilityTreeNode();this._rowElements.unshift(w),this._rowContainer.insertAdjacentElement("afterbegin",w)}else w=this._createAccessibilityTreeNode(),this._rowElements.push(w),this._rowContainer.appendChild(w);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(),s.preventDefault(),s.stopImmediatePropagation()}},r.prototype._onResize=function(s){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>s;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},r.prototype._createAccessibilityTreeNode=function(){var s=document.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s},r.prototype._onTab=function(s){for(var c=0;c<s;c++)this._onChar(" ")},r.prototype._onChar=function(s){var c=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){c._accessibilityTreeRoot.appendChild(c._liveRegion)},0))},r.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&a.removeElementFromParent(this._liveRegion)},r.prototype._onKey=function(s){this._clearLiveRegion(),this._charsToConsume.push(s)},r.prototype._refreshRows=function(s,c){this._renderRowsDebouncer.refresh(s,c,this._terminal.rows)},r.prototype._renderRows=function(s,c){for(var h=this._terminal.buffer,g=h.lines.length.toString(),A=s;A<=c;A++){var b=h.translateBufferLineToString(h.ydisp+A,!0),w=(h.ydisp+A+1).toString(),x=this._rowElements[A];x&&(b.length===0?x.innerHTML="&nbsp;":x.textContent=b,x.setAttribute("aria-posinset",w),x.setAttribute("aria-setsize",g))}this._announceCharacters()},r.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var s=0;s<this._terminal.rows;s++)this._refreshRowDimensions(this._rowElements[s])}},r.prototype._refreshRowDimensions=function(s){s.style.height=this._renderService.dimensions.actualCellHeight+"px"},r.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},r}(n.Disposable);p.AccessibilityManager=e},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(g,A){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var x in w)w.hasOwnProperty(x)&&(b[x]=w[x])})(g,A)},function(h,g){function A(){this.constructor=h}v(h,g),h.prototype=g===null?Object.create(g):(A.prototype=g.prototype,new A)}),f=this&&this.__decorate||function(h,g,A,b){var w,x=arguments.length,T=x<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,A):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(h,g,A,b);else for(var _=h.length-1;_>=0;_--)(w=h[_])&&(T=(x<3?w(T):x>3?w(g,A,T):w(g,A))||T);return x>3&&T&&Object.defineProperty(g,A,T),T},d=this&&this.__param||function(h,g){return function(A,b){g(A,b,h)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DomRenderer=void 0;var u=S(58),o=S(9),n=S(2),t=S(5),a=S(1),e=S(0),l=S(10),r=S(17),s=1,c=function(h){function g(A,b,w,x,T,_,E,C,I){var O=h.call(this)||this;return O._colors=A,O._element=b,O._screenElement=w,O._viewportElement=x,O._linkifier=T,O._linkifier2=_,O._charSizeService=E,O._optionsService=C,O._bufferService=I,O._terminalClass=s++,O._rowElements=[],O._rowContainer=document.createElement("div"),O._rowContainer.classList.add("xterm-rows"),O._rowContainer.style.lineHeight="normal",O._rowContainer.setAttribute("aria-hidden","true"),O._refreshRowElements(O._bufferService.cols,O._bufferService.rows),O._selectionContainer=document.createElement("div"),O._selectionContainer.classList.add("xterm-selection"),O._selectionContainer.setAttribute("aria-hidden","true"),O.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},O._updateDimensions(),O._injectCss(),O._rowFactory=new u.DomRendererRowFactory(document,O._optionsService,O._colors),O._element.classList.add("xterm-dom-renderer-owner-"+O._terminalClass),O._screenElement.appendChild(O._rowContainer),O._screenElement.appendChild(O._selectionContainer),O._linkifier.onShowLinkUnderline(function(F){return O._onLinkHover(F)}),O._linkifier.onHideLinkUnderline(function(F){return O._onLinkLeave(F)}),O._linkifier2.onShowLinkUnderline(function(F){return O._onLinkHover(F)}),O._linkifier2.onHideLinkUnderline(function(F){return O._onLinkLeave(F)}),O}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),r.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 A=0,b=this._rowElements;A<b.length;A++){var w=b[A];w.style.width=this.dimensions.canvasWidth+"px",w.style.height=this.dimensions.actualCellHeight+"px",w.style.lineHeight=this.dimensions.actualCellHeight+"px",w.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var x=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=x,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(A){this._colors=A,this._injectCss()},g.prototype._injectCss=function(){var A=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(w,x){b+=A._terminalSelector+" .xterm-fg-"+x+" { color: "+w.css+"; }"+A._terminalSelector+" .xterm-bg-"+x+" { background-color: "+w.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+o.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},g.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},g.prototype._refreshRowElements=function(A,b){for(var w=this._rowElements.length;w<=b;w++){var x=document.createElement("div");this._rowContainer.appendChild(x),this._rowElements.push(x)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(A,b){this._refreshRowElements(A,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(A,b,w){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&b){var x=A[1]-this._bufferService.buffer.ydisp,T=b[1]-this._bufferService.buffer.ydisp,_=Math.max(x,0),E=Math.min(T,this._bufferService.rows-1);if(!(_>=this._bufferService.rows||E<0)){var C=document.createDocumentFragment();if(w)C.appendChild(this._createSelectionElement(_,A[0],b[0],E-_+1));else{var I=x===_?A[0]:0,O=_===E?b[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(_,I,O));var F=E-_-1;if(C.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,F)),_!==E){var R=T===E?b[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(E,0,R))}}this._selectionContainer.appendChild(C)}}},g.prototype._createSelectionElement=function(A,b,w,x){x===void 0&&(x=1);var T=document.createElement("div");return T.style.height=x*this.dimensions.actualCellHeight+"px",T.style.top=A*this.dimensions.actualCellHeight+"px",T.style.left=b*this.dimensions.actualCellWidth+"px",T.style.width=this.dimensions.actualCellWidth*(w-b)+"px",T},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var A=0,b=this._rowElements;A<b.length;A++)b[A].innerHTML=""},g.prototype.renderRows=function(A,b){for(var w=this._bufferService.buffer.ybase+this._bufferService.buffer.y,x=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),T=this._optionsService.options.cursorBlink,_=A;_<=b;_++){var E=this._rowElements[_];E.innerHTML="";var C=_+this._bufferService.buffer.ydisp,I=this._bufferService.buffer.lines.get(C),O=this._optionsService.options.cursorStyle;E.appendChild(this._rowFactory.createRow(I,C===w,O,x,T,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(A){return-1},g.prototype.deregisterCharacterJoiner=function(A){return!1},g.prototype._onLinkHover=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)},g.prototype._onLinkLeave=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)},g.prototype._setCellUnderline=function(A,b,w,x,T,_){for(;A!==b||w!==x;){var E=this._rowElements[w];if(!E)return;var C=E.children[A];C&&(C.style.textDecoration=_?"underline":"none"),++A>=T&&(A=0,w++)}},g=f([d(6,t.ICharSizeService),d(7,a.IOptionsService),d(8,a.IBufferService)],g)}(n.Disposable);p.DomRenderer=c},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DomRendererRowFactory=p.CURSOR_STYLE_UNDERLINE_CLASS=p.CURSOR_STYLE_BAR_CLASS=p.CURSOR_STYLE_BLOCK_CLASS=p.CURSOR_BLINK_CLASS=p.CURSOR_CLASS=p.UNDERLINE_CLASS=p.ITALIC_CLASS=p.DIM_CLASS=p.BOLD_CLASS=void 0;var v=S(9),m=S(3),f=S(4),d=S(10);p.BOLD_CLASS="xterm-bold",p.DIM_CLASS="xterm-dim",p.ITALIC_CLASS="xterm-italic",p.UNDERLINE_CLASS="xterm-underline",p.CURSOR_CLASS="xterm-cursor",p.CURSOR_BLINK_CLASS="xterm-cursor-blink",p.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",p.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",p.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var u=function(){function n(t,a,e){this._document=t,this._optionsService=a,this._colors=e,this._workCell=new f.CellData}return n.prototype.setColors=function(t){this._colors=t},n.prototype.createRow=function(t,a,e,l,r,s,c){for(var h=this._document.createDocumentFragment(),g=0,A=Math.min(t.length,c)-1;A>=0;A--)if(t.loadCell(A,this._workCell).getCode()!==m.NULL_CELL_CODE||a&&A===l){g=A+1;break}for(A=0;A<g;A++){t.loadCell(A,this._workCell);var b=this._workCell.getWidth();if(b!==0){var w=this._document.createElement("span");if(b>1&&(w.style.width=s*b+"px"),a&&A===l)switch(w.classList.add(p.CURSOR_CLASS),r&&w.classList.add(p.CURSOR_BLINK_CLASS),e){case"bar":w.classList.add(p.CURSOR_STYLE_BAR_CLASS);break;case"underline":w.classList.add(p.CURSOR_STYLE_UNDERLINE_CLASS);break;default:w.classList.add(p.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&w.classList.add(p.BOLD_CLASS),this._workCell.isItalic()&&w.classList.add(p.ITALIC_CLASS),this._workCell.isDim()&&w.classList.add(p.DIM_CLASS),this._workCell.isUnderline()&&w.classList.add(p.UNDERLINE_CLASS),this._workCell.isInvisible()?w.textContent=m.WHITESPACE_CELL_CHAR:w.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var x=this._workCell.getFgColor(),T=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),E=this._workCell.getBgColorMode(),C=!!this._workCell.isInverse();if(C){var I=x;x=_,_=I;var O=T;T=E,E=O}switch(T){case 16777216:case 33554432:this._workCell.isBold()&&x<8&&this._optionsService.options.drawBoldTextInBrightColors&&(x+=8),this._applyMinimumContrast(w,this._colors.background,this._colors.ansi[x])||w.classList.add("xterm-fg-"+x);break;case 50331648:var F=d.rgba.toColor(x>>16&255,x>>8&255,255&x);this._applyMinimumContrast(w,this._colors.background,F)||this._addStyle(w,"color:#"+o(x.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(w,this._colors.background,this._colors.foreground)||C&&w.classList.add("xterm-fg-"+v.INVERTED_DEFAULT_COLOR)}switch(E){case 16777216:case 33554432:w.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(w,"background-color:#"+o(_.toString(16),"0",6));break;case 0:default:C&&w.classList.add("xterm-bg-"+v.INVERTED_DEFAULT_COLOR)}h.appendChild(w)}}return h},n.prototype._applyMinimumContrast=function(t,a,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(a,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)},n.prototype._addStyle=function(t,a){t.setAttribute("style",""+(t.getAttribute("style")||"")+a+";")},n}();function o(n,t,a){for(;n.length<a;)n=t+n;return n}p.DomRendererRowFactory=u},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.evaluateKeyboardEvent=void 0;var v=S(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:["'",'"']};p.evaluateKeyboardEvent=function(f,d,u,o){var n={type:0,cancel:!1,key:void 0},t=(f.shiftKey?1:0)|(f.altKey?2:0)|(f.ctrlKey?4:0)|(f.metaKey?8:0);switch(f.keyCode){case 0:f.key==="UIKeyInputUpArrow"?n.key=d?v.C0.ESC+"OA":v.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?n.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?n.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(n.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B");break;case 8:if(f.shiftKey){n.key=v.C0.BS;break}if(f.altKey){n.key=v.C0.ESC+v.C0.DEL;break}n.key=v.C0.DEL;break;case 9:if(f.shiftKey){n.key=v.C0.ESC+"[Z";break}n.key=v.C0.HT,n.cancel=!0;break;case 13:n.key=f.altKey?v.C0.ESC+v.C0.CR:v.C0.CR,n.cancel=!0;break;case 27:n.key=v.C0.ESC,f.altKey&&(n.key=v.C0.ESC+v.C0.ESC),n.cancel=!0;break;case 37:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"D",n.key===v.C0.ESC+"[1;3D"&&(n.key=v.C0.ESC+(u?"b":"[1;5D"))):n.key=d?v.C0.ESC+"OD":v.C0.ESC+"[D";break;case 39:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"C",n.key===v.C0.ESC+"[1;3C"&&(n.key=v.C0.ESC+(u?"f":"[1;5C"))):n.key=d?v.C0.ESC+"OC":v.C0.ESC+"[C";break;case 38:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"A",u||n.key!==v.C0.ESC+"[1;3A"||(n.key=v.C0.ESC+"[1;5A")):n.key=d?v.C0.ESC+"OA":v.C0.ESC+"[A";break;case 40:if(f.metaKey)break;t?(n.key=v.C0.ESC+"[1;"+(t+1)+"B",u||n.key!==v.C0.ESC+"[1;3B"||(n.key=v.C0.ESC+"[1;5B")):n.key=d?v.C0.ESC+"OB":v.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(n.key=v.C0.ESC+"[2~");break;case 46:n.key=t?v.C0.ESC+"[3;"+(t+1)+"~":v.C0.ESC+"[3~";break;case 36:n.key=t?v.C0.ESC+"[1;"+(t+1)+"H":d?v.C0.ESC+"OH":v.C0.ESC+"[H";break;case 35:n.key=t?v.C0.ESC+"[1;"+(t+1)+"F":d?v.C0.ESC+"OF":v.C0.ESC+"[F";break;case 33:f.shiftKey?n.type=2:n.key=v.C0.ESC+"[5~";break;case 34:f.shiftKey?n.type=3:n.key=v.C0.ESC+"[6~";break;case 112:n.key=t?v.C0.ESC+"[1;"+(t+1)+"P":v.C0.ESC+"OP";break;case 113:n.key=t?v.C0.ESC+"[1;"+(t+1)+"Q":v.C0.ESC+"OQ";break;case 114:n.key=t?v.C0.ESC+"[1;"+(t+1)+"R":v.C0.ESC+"OR";break;case 115:n.key=t?v.C0.ESC+"[1;"+(t+1)+"S":v.C0.ESC+"OS";break;case 116:n.key=t?v.C0.ESC+"[15;"+(t+1)+"~":v.C0.ESC+"[15~";break;case 117:n.key=t?v.C0.ESC+"[17;"+(t+1)+"~":v.C0.ESC+"[17~";break;case 118:n.key=t?v.C0.ESC+"[18;"+(t+1)+"~":v.C0.ESC+"[18~";break;case 119:n.key=t?v.C0.ESC+"[19;"+(t+1)+"~":v.C0.ESC+"[19~";break;case 120:n.key=t?v.C0.ESC+"[20;"+(t+1)+"~":v.C0.ESC+"[20~";break;case 121:n.key=t?v.C0.ESC+"[21;"+(t+1)+"~":v.C0.ESC+"[21~";break;case 122:n.key=t?v.C0.ESC+"[23;"+(t+1)+"~":v.C0.ESC+"[23~";break;case 123:n.key=t?v.C0.ESC+"[24;"+(t+1)+"~":v.C0.ESC+"[24~";break;default:if(!f.ctrlKey||f.shiftKey||f.altKey||f.metaKey)if(u&&!o||!f.altKey||f.metaKey)u&&!f.altKey&&!f.ctrlKey&&f.metaKey?f.keyCode===65&&(n.type=1):f.key&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&f.keyCode>=48&&f.key.length===1?n.key=f.key:f.key&&f.ctrlKey&&f.key==="_"&&(n.key=v.C0.US);else{var a=m[f.keyCode],e=a&&a[f.shiftKey?1:0];if(e)n.key=v.C0.ESC+e;else if(f.keyCode>=65&&f.keyCode<=90){var l=f.ctrlKey?f.keyCode-64:f.keyCode+32;n.key=v.C0.ESC+String.fromCharCode(l)}}else f.keyCode>=65&&f.keyCode<=90?n.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?n.key=v.C0.NUL:f.keyCode>=51&&f.keyCode<=55?n.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?n.key=v.C0.DEL:f.keyCode===219?n.key=v.C0.ESC:f.keyCode===220?n.key=v.C0.FS:f.keyCode===221&&(n.key=v.C0.GS)}return n}},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(c,h){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,A){g.__proto__=A}||function(g,A){for(var b in A)A.hasOwnProperty(b)&&(g[b]=A[b])})(c,h)},function(s,c){function h(){this.constructor=s}v(s,c),s.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),f=this&&this.__decorate||function(s,c,h,g){var A,b=arguments.length,w=b<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(s,c,h,g);else for(var x=s.length-1;x>=0;x--)(A=s[x])&&(w=(b<3?A(w):b>3?A(c,h,w):A(c,h))||w);return b>3&&w&&Object.defineProperty(c,h,w),w},d=this&&this.__param||function(s,c){return function(h,g){c(h,g,s)}};Object.defineProperty(p,"__esModule",{value:!0}),p.RenderService=void 0;var u=S(31),o=S(0),n=S(2),t=S(32),a=S(7),e=S(1),l=S(5),r=function(s){function c(h,g,A,b,w,x){var T=s.call(this)||this;if(T._renderer=h,T._rowCount=g,T._isPaused=!1,T._needsFullRefresh=!1,T._isNextRenderRedrawOnly=!0,T._needsSelectionRefresh=!1,T._canvasWidth=0,T._canvasHeight=0,T._selectionState={start:void 0,end:void 0,columnSelectMode:!1},T._onDimensionsChange=new o.EventEmitter,T._onRender=new o.EventEmitter,T._onRefreshRequest=new o.EventEmitter,T.register({dispose:function(){return T._renderer.dispose()}}),T._renderDebouncer=new u.RenderDebouncer(function(E,C){return T._renderRows(E,C)}),T.register(T._renderDebouncer),T._screenDprMonitor=new t.ScreenDprMonitor,T._screenDprMonitor.setListener(function(){return T.onDevicePixelRatioChange()}),T.register(T._screenDprMonitor),T.register(x.onResize(function(E){return T._fullRefresh()})),T.register(b.onOptionChange(function(){return T._renderer.onOptionsChanged()})),T.register(w.onCharSizeChange(function(){return T.onCharSizeChanged()})),T._renderer.onRequestRedraw(function(E){return T.refreshRows(E.start,E.end,!0)}),T.register(a.addDisposableDomListener(window,"resize",function(){return T.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var _=new IntersectionObserver(function(E){return T._onIntersectionChange(E[E.length-1])},{threshold:0});_.observe(A),T.register({dispose:function(){return _.disconnect()}})}return T}return m(c,s),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,A){A===void 0&&(A=!1),this._isPaused?this._needsFullRefresh=!0:(A||(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(){s.prototype.dispose.call(this)},c.prototype.setRenderer=function(h){var g=this;this._renderer.dispose(),this._renderer=h,this._renderer.onRequestRedraw(function(A){return g.refreshRows(A.start,A.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(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,A){this._selectionState.start=h,this._selectionState.end=g,this._selectionState.columnSelectMode=A,this._renderer.onSelectionChanged(h,g,A)},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=f([d(3,e.IOptionsService),d(4,l.ICharSizeService),d(5,e.IBufferService)],c)}(n.Disposable);p.RenderService=r},function(y,p,S){"use strict";var v=this&&this.__decorate||function(n,t,a,e){var l,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,a):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,a,e);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(s=(r<3?l(s):r>3?l(t,a,s):l(t,a))||s);return r>3&&s&&Object.defineProperty(t,a,s),s},m=this&&this.__param||function(n,t){return function(a,e){t(a,e,n)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CharSizeService=void 0;var f=S(1),d=S(0),u=function(){function n(t,a,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new o(t,a,this._optionsService)}return Object.defineProperty(n.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),n.prototype.measure=function(){var t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())},n=v([m(2,f.IOptionsService)],n)}();p.CharSizeService=u;var o=function(){function n(t,a,e){this._document=t,this._parentElement=a,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 n.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},n}()},function(y,p,S){"use strict";var v=this&&this.__decorate||function(o,n,t,a){var e,l=arguments.length,r=l<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,t,a);else for(var s=o.length-1;s>=0;s--)(e=o[s])&&(r=(l<3?e(r):l>3?e(n,t,r):e(n,t))||r);return l>3&&r&&Object.defineProperty(n,t,r),r},m=this&&this.__param||function(o,n){return function(t,a){n(t,a,o)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseService=void 0;var f=S(5),d=S(30),u=function(){function o(n,t){this._renderService=n,this._charSizeService=t}return o.prototype.getCoords=function(n,t,a,e,l){return d.getCoords(n,t,a,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},o.prototype.getRawByteCoords=function(n,t,a,e){var l=this.getCoords(n,t,a,e);return d.getRawByteCoords(l)},o=v([m(0,f.IRenderService),m(1,f.ICharSizeService)],o)}();p.MouseService=u},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,h=arguments.length,g=h<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Linkifier2=void 0;var u=S(1),o=S(0),n=S(2),t=S(7),a=function(e){function l(r){var s=e.call(this)||this;return s._bufferService=r,s._linkProviders=[],s._linkCacheDisposables=[],s._isMouseOut=!0,s._activeLine=-1,s._onShowLinkUnderline=s.register(new o.EventEmitter),s._onHideLinkUnderline=s.register(new o.EventEmitter),s.register(n.getDisposeArrayDisposable(s._linkCacheDisposables)),s}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(r){var s=this;return this._linkProviders.push(r),{dispose:function(){var h=s._linkProviders.indexOf(r);h!==-1&&s._linkProviders.splice(h,1)}}},l.prototype.attachToDom=function(r,s,c){var h=this;this._element=r,this._mouseService=s,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(r){if(this._lastMouseEvent=r,this._element&&this._mouseService){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);if(s){this._isMouseOut=!1;for(var c=r.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&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._onHover(s),this._lastBufferCell=s)}}},l.prototype._onHover=function(r){if(this._activeLine!==r.y)return this._clearCurrentLink(),void this._askForLink(r,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,r)||(this._clearCurrentLink(),this._askForLink(r,!0))},l.prototype._askForLink=function(r,s){var c=this;this._activeProviderReplies&&s||(this._activeProviderReplies=new Map,this._activeLine=r.y);var h=!1;this._linkProviders.forEach(function(g,A){var b;s?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(A))&&(h=c._checkLinkProviderResult(A,r,h)):g.provideLinks(r.y,function(w){var x,T;if(!c._isMouseOut){var _=w==null?void 0:w.map(function(E){return{link:E}});(x=c._activeProviderReplies)===null||x===void 0||x.set(A,_),h=c._checkLinkProviderResult(A,r,h),((T=c._activeProviderReplies)===null||T===void 0?void 0:T.size)===c._linkProviders.length&&c._removeIntersectingLinks(r.y,c._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(r,s){for(var c=new Set,h=0;h<s.size;h++){var g=s.get(h);if(g)for(var A=0;A<g.length;A++)for(var b=g[A],w=b.link.range.start.y<r?0:b.link.range.start.x,x=b.link.range.end.y>r?this._bufferService.cols:b.link.range.end.x,T=w;T<=x;T++){if(c.has(T)){g.splice(A--,1);break}c.add(T)}}},l.prototype._checkLinkProviderResult=function(r,s,c){var h,g=this;if(!this._activeProviderReplies)return c;for(var A=this._activeProviderReplies.get(r),b=!1,w=0;w<r;w++)this._activeProviderReplies.has(w)&&!this._activeProviderReplies.get(w)||(b=!0);if(!b&&A){var x=A.find(function(_){return g._linkAtPosition(_.link,s)});x&&(c=!0,this._handleNewLink(x))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(w=0;w<this._activeProviderReplies.size;w++){var T=(h=this._activeProviderReplies.get(w))===null||h===void 0?void 0:h.find(function(_){return g._linkAtPosition(_.link,s)});if(T){c=!0,this._handleNewLink(T);break}}return c},l.prototype._onClick=function(r){if(this._element&&this._mouseService&&this._currentLink){var s=this._positionFromMouseEvent(r,this._element,this._mouseService);s&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(r,this._currentLink.link.text)}},l.prototype._clearCurrentLink=function(r,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!r||!s||this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,n.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(r){var s=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._linkAtPosition(r.link,c)&&(this._currentLink=r,this._currentLink.state={decorations:{underline:r.link.decorations===void 0||r.link.decorations.underline,pointerCursor:r.link.decorations===void 0||r.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,r.link,this._lastMouseEvent),r.link.decorations={},Object.defineProperties(r.link.decorations,{pointerCursor:{get:function(){var g,A;return(A=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.pointerCursor},set:function(g){var A,b;((A=s._currentLink)===null||A===void 0?void 0:A.state)&&s._currentLink.state.decorations.pointerCursor!==g&&(s._currentLink.state.decorations.pointerCursor=g,s._currentLink.state.isHovered&&((b=s._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",g)))}},underline:{get:function(){var g,A;return(A=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.underline},set:function(g){var A,b,w;((A=s._currentLink)===null||A===void 0?void 0:A.state)&&((w=(b=s._currentLink)===null||b===void 0?void 0:b.state)===null||w===void 0?void 0:w.decorations.underline)!==g&&(s._currentLink.state.decorations.underline=g,s._currentLink.state.isHovered&&s._fireUnderlineEvent(r.link,g))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(h){var g=h.start===0?0:h.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(g,h.end+1+s._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(r,s,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(s,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(c,s.text)},l.prototype._fireUnderlineEvent=function(r,s){var c=r.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);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},l.prototype._linkLeave=function(r,s,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(s,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(c,s.text)},l.prototype._linkAtPosition=function(r,s){var c=r.range.start.y===r.range.end.y,h=r.range.start.y<s.y,g=r.range.end.y>s.y;return(c&&r.range.start.x<=s.x&&r.range.end.x>=s.x||h&&r.range.end.x>=s.x||g&&r.range.start.x<=s.x||h&&g)&&r.range.start.y<=s.y&&r.range.end.y>=s.y},l.prototype._positionFromMouseEvent=function(r,s,c){var h=c.getCoords(r,s,this._bufferService.cols,this._bufferService.rows);if(h)return{x:h[0],y:h[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(r,s,c,h,g){return{x1:r,y1:s,x2:c,y2:h,cols:this._bufferService.cols,fg:g}},l=f([d(0,u.IBufferService)],l)}(n.Disposable);p.Linkifier2=a},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CoreBrowserService=void 0;var v=function(){function m(f){this._textarea=f}return Object.defineProperty(m.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),m}();p.CoreBrowserService=v},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(x,T){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,E){_.__proto__=E}||function(_,E){for(var C in E)E.hasOwnProperty(C)&&(_[C]=E[C])})(x,T)},function(w,x){function T(){this.constructor=w}v(w,x),w.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)});Object.defineProperty(p,"__esModule",{value:!0}),p.CoreTerminal=void 0;var f=S(2),d=S(1),u=S(66),o=S(67),n=S(68),t=S(74),a=S(75),e=S(0),l=S(76),r=S(77),s=S(78),c=S(80),h=S(81),g=S(19),A=S(82),b=function(w){function x(T){var _=w.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(T),_._instantiationService.setService(d.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(n.BufferService)),_._instantiationService.setService(d.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(o.LogService),_._instantiationService.setService(d.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(a.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(d.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(l.CoreMouseService),_._instantiationService.setService(d.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(r.DirtyRowService),_._instantiationService.setService(d.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(s.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(E){return _._updateOptions(E)})),_._writeBuffer=new A.WriteBuffer(function(E){return _._inputHandler.parse(E)}),_}return m(x,w),Object.defineProperty(x.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){var T;this._isDisposed||(w.prototype.dispose.call(this),(T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)},x.prototype.write=function(T,_){this._writeBuffer.write(T,_)},x.prototype.writeSync=function(T){this._writeBuffer.writeSync(T)},x.prototype.resize=function(T,_){isNaN(T)||isNaN(_)||(T=Math.max(T,n.MINIMUM_COLS),_=Math.max(_,n.MINIMUM_ROWS),this._bufferService.resize(T,_))},x.prototype.scroll=function(T,_){_===void 0&&(_=!1);var E,C=this._bufferService.buffer;(E=this._cachedBlankLine)&&E.length===this.cols&&E.getFg(0)===T.fg&&E.getBg(0)===T.bg||(E=C.getBlankLine(T,_),this._cachedBlankLine=E),E.isWrapped=_;var I=C.ybase+C.scrollTop,O=C.ybase+C.scrollBottom;if(C.scrollTop===0){var F=C.lines.isFull;O===C.lines.length-1?F?C.lines.recycle().copyFrom(E):C.lines.push(E.clone()):C.lines.splice(O+1,0,E.clone()),F?this._bufferService.isUserScrolling&&(C.ydisp=Math.max(C.ydisp-1,0)):(C.ybase++,this._bufferService.isUserScrolling||C.ydisp++)}else{var R=O-I+1;C.lines.shiftElements(I+1,R-1,-1),C.lines.set(O,E.clone())}this._bufferService.isUserScrolling||(C.ydisp=C.ybase),this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom),this._onScroll.fire(C.ydisp)},x.prototype.scrollLines=function(T,_){var E=this._bufferService.buffer;if(T<0){if(E.ydisp===0)return;this._bufferService.isUserScrolling=!0}else T+E.ydisp>=E.ybase&&(this._bufferService.isUserScrolling=!1);var C=E.ydisp;E.ydisp=Math.max(Math.min(E.ydisp+T,E.ybase),0),C!==E.ydisp&&(_||this._onScroll.fire(E.ydisp))},x.prototype.scrollPages=function(T){this.scrollLines(T*(this.rows-1))},x.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},x.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},x.prototype.scrollToLine=function(T){var _=T-this._bufferService.buffer.ydisp;_!==0&&this.scrollLines(_)},x.prototype.addEscHandler=function(T,_){return this._inputHandler.addEscHandler(T,_)},x.prototype.addDcsHandler=function(T,_){return this._inputHandler.addDcsHandler(T,_)},x.prototype.addCsiHandler=function(T,_){return this._inputHandler.addCsiHandler(T,_)},x.prototype.addOscHandler=function(T,_){return this._inputHandler.addOscHandler(T,_)},x.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},x.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},x.prototype._updateOptions=function(T){var _;switch(T){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)}},x.prototype._enableWindowsMode=function(){var T=this;if(!this._windowsMode){var _=[];_.push(this.onLineFeed(h.updateWindowsModeWrappedState.bind(null,this._bufferService))),_.push(this.addCsiHandler({final:"H"},function(){return h.updateWindowsModeWrappedState(T._bufferService),!1})),this._windowsMode={dispose:function(){for(var C=0,I=_;C<I.length;C++)I[C].dispose()}}}},x}(f.Disposable);p.CoreTerminal=b},function(y,p,S){"use strict";var v=this&&this.__spreadArrays||function(){for(var o=0,n=0,t=arguments.length;n<t;n++)o+=arguments[n].length;var a=Array(o),e=0;for(n=0;n<t;n++)for(var l=arguments[n],r=0,s=l.length;r<s;r++,e++)a[e]=l[r];return a};Object.defineProperty(p,"__esModule",{value:!0}),p.InstantiationService=p.ServiceCollection=void 0;var m=S(1),f=S(14),d=function(){function o(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._entries=new Map;for(var a=0,e=n;a<e.length;a++){var l=e[a],r=l[0],s=l[1];this.set(r,s)}}return o.prototype.set=function(n,t){var a=this._entries.get(n);return this._entries.set(n,t),a},o.prototype.forEach=function(n){this._entries.forEach(function(t,a){return n(a,t)})},o.prototype.has=function(n){return this._entries.has(n)},o.prototype.get=function(n){return this._entries.get(n)},o}();p.ServiceCollection=d;var u=function(){function o(){this._services=new d,this._services.set(m.IInstantiationService,this)}return o.prototype.setService=function(n,t){this._services.set(n,t)},o.prototype.getService=function(n){return this._services.get(n)},o.prototype.createInstance=function(n){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];for(var e=f.getServiceDependencies(n).sort(function(A,b){return A.index-b.index}),l=[],r=0,s=e;r<s.length;r++){var c=s[r],h=this._services.get(c.id);if(!h)throw new Error("[createInstance] "+n.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 "+n.name+" at position "+(g+1)+" conflicts with "+t.length+" static arguments");return new(n.bind.apply(n,v([void 0],v(t,l))))},o}();p.InstantiationService=u},function(y,p,S){"use strict";var v=this&&this.__decorate||function(t,a,e,l){var r,s=arguments.length,c=s<3?a:l===null?l=Object.getOwnPropertyDescriptor(a,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,a,e,l);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(c=(s<3?r(c):s>3?r(a,e,c):r(a,e))||c);return s>3&&c&&Object.defineProperty(a,e,c),c},m=this&&this.__param||function(t,a){return function(e,l){a(e,l,t)}},f=this&&this.__spreadArrays||function(){for(var t=0,a=0,e=arguments.length;a<e;a++)t+=arguments[a].length;var l=Array(t),r=0;for(a=0;a<e;a++)for(var s=arguments[a],c=0,h=s.length;c<h;c++,r++)l[r]=s[c];return l};Object.defineProperty(p,"__esModule",{value:!0}),p.LogService=p.LogLevel=void 0;var d,u=S(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=p.LogLevel||(p.LogLevel={}));var o={debug:d.DEBUG,info:d.INFO,warn:d.WARN,error:d.ERROR,off:d.OFF},n=function(){function t(a){var e=this;this._optionsService=a,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=o[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(a){for(var e=0;e<a.length;e++)typeof a[e]=="function"&&(a[e]=a[e]())},t.prototype._log=function(a,e,l){this._evalLazyOptionalParams(l),a.call.apply(a,f([console,"xterm.js: "+e],l))},t.prototype.debug=function(a){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.DEBUG&&this._log(console.log,a,e)},t.prototype.info=function(a){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.INFO&&this._log(console.info,a,e)},t.prototype.warn=function(a){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.WARN&&this._log(console.warn,a,e)},t.prototype.error=function(a){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.ERROR&&this._log(console.error,a,e)},t=v([m(0,u.IOptionsService)],t)}();p.LogService=n},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(l,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(l,r)},function(e,l){function r(){this.constructor=e}v(e,l),e.prototype=l===null?Object.create(l):(r.prototype=l.prototype,new r)}),f=this&&this.__decorate||function(e,l,r,s){var c,h=arguments.length,g=h<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},d=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.BufferService=p.MINIMUM_ROWS=p.MINIMUM_COLS=void 0;var u=S(1),o=S(69),n=S(0),t=S(2);p.MINIMUM_COLS=2,p.MINIMUM_ROWS=1;var a=function(e){function l(r){var s=e.call(this)||this;return s._optionsService=r,s.isUserScrolling=!1,s._onResize=new n.EventEmitter,s.cols=Math.max(r.options.cols,p.MINIMUM_COLS),s.rows=Math.max(r.options.rows,p.MINIMUM_ROWS),s.buffers=new o.BufferSet(r,s),s}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(r,s){this.cols=r,this.rows=s,this.buffers.resize(r,s),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:r,rows:s})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=f([d(0,u.IOptionsService)],l)}(t.Disposable);p.BufferService=a},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(n,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var l in e)e.hasOwnProperty(l)&&(a[l]=e[l])})(n,t)},function(o,n){function t(){this.constructor=o}v(o,n),o.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(p,"__esModule",{value:!0}),p.BufferSet=void 0;var f=S(70),d=S(0),u=function(o){function n(t,a){var e=o.call(this)||this;return e._onBufferActivate=e.register(new d.EventEmitter),e._normal=new f.Buffer(!0,t,a),e._normal.fillViewportRows(),e._alt=new f.Buffer(!1,t,a),e._activeBuffer=e._normal,e.setupTabStops(),e}return m(n,o),Object.defineProperty(n.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),n.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},n.prototype.activateAltBuffer=function(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}))},n.prototype.resize=function(t,a){this._normal.resize(t,a),this._alt.resize(t,a)},n.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},n}(S(2).Disposable);p.BufferSet=u},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferStringIterator=p.Buffer=p.MAX_BUFFER_SIZE=void 0;var v=S(71),m=S(16),f=S(4),d=S(3),u=S(72),o=S(73),n=S(20),t=S(6);p.MAX_BUFFER_SIZE=4294967295;var a=function(){function l(r,s,c){this._hasScrollback=r,this._optionsService=s,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=n.DEFAULT_CHARSET,this.markers=[],this._nullCell=f.CellData.fromCharData([0,d.NULL_CELL_CHAR,d.NULL_CELL_WIDTH,d.NULL_CELL_CODE]),this._whitespaceCell=f.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 v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(r){return r?(this._nullCell.fg=r.fg,this._nullCell.bg=r.bg,this._nullCell.extended=r.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new t.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(r){return r?(this._whitespaceCell.fg=r.fg,this._whitespaceCell.bg=r.bg,this._whitespaceCell.extended=r.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new t.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(r,s){return new m.BufferLine(this._bufferService.cols,this.getNullCell(r),s)},Object.defineProperty(l.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCursorInViewport",{get:function(){var s=this.ybase+this.y-this.ydisp;return s>=0&&s<this._rows},enumerable:!1,configurable:!0}),l.prototype._getCorrectBufferLength=function(r){if(!this._hasScrollback)return r;var s=r+this._optionsService.options.scrollback;return s>p.MAX_BUFFER_SIZE?p.MAX_BUFFER_SIZE:s},l.prototype.fillViewportRows=function(r){if(this.lines.length===0){r===void 0&&(r=m.DEFAULT_ATTR_DATA);for(var s=this._rows;s--;)this.lines.push(this.getBlankLine(r))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(r,s){var c=this.getNullCell(m.DEFAULT_ATTR_DATA),h=this._getCorrectBufferLength(s);if(h>this.lines.maxLength&&(this.lines.maxLength=h),this.lines.length>0){if(this._cols<r)for(var g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);var A=0;if(this._rows<s)for(var b=this._rows;b<s;b++)this.lines.length<s+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new m.BufferLine(r,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+A+1?(this.ybase--,A++,this.ydisp>0&&this.ydisp--):this.lines.push(new m.BufferLine(r,c)));else for(b=this._rows;b>s;b--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(h<this.lines.maxLength){var w=this.lines.length-h;w>0&&(this.lines.trimStart(w),this.ybase=Math.max(this.ybase-w,0),this.ydisp=Math.max(this.ydisp-w,0),this.savedY=Math.max(this.savedY-w,0)),this.lines.maxLength=h}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,s-1),A&&(this.y+=A),this.savedX=Math.min(this.savedX,r-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(r,s),this._cols>r))for(g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);this._cols=r,this._rows=s},Object.defineProperty(l.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),l.prototype._reflow=function(r,s){this._cols!==r&&(r>this._cols?this._reflowLarger(r,s):this._reflowSmaller(r,s))},l.prototype._reflowLarger=function(r,s){var c=u.reflowLargerGetLinesToRemove(this.lines,this._cols,r,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(r,s,h.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(r,s,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<s&&this.lines.push(new m.BufferLine(r,h))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},l.prototype._reflowSmaller=function(r,s){for(var c=this.getNullCell(m.DEFAULT_ATTR_DATA),h=[],g=0,A=this.lines.length-1;A>=0;A--){var b=this.lines.get(A);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=r)){for(var w=[b];b.isWrapped&&A>0;)b=this.lines.get(--A),w.unshift(b);var x=this.ybase+this.y;if(!(x>=A&&x<A+w.length)){var T=w[w.length-1].getTrimmedLength(),_=u.reflowSmallerGetNewLineLengths(w,this._cols,r),E=_.length-w.length,C=void 0;C=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+E):Math.max(0,this.lines.length-this.lines.maxLength+E);for(var I=[],O=0;O<E;O++){var F=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);I.push(F)}I.length>0&&(h.push({start:A+w.length+g,newLines:I}),g+=I.length),w.push.apply(w,I);var R=_.length-1,B=_[R];B===0&&(B=_[--R]);for(var P=w.length-E-1,X=T;P>=0;){var M=Math.min(X,B);if(w[R].copyCellsFrom(w[P],X-M,B-M,M,!0),(B-=M)===0&&(B=_[--R]),(X-=M)===0){P--;var z=Math.max(P,0);X=u.getWrappedLineTrimmedLength(w,z,this._cols)}}for(O=0;O<w.length;O++)_[O]<r&&w[O].setCell(_[O],c);for(var W=E-C;W-- >0;)this.ybase===0?this.y<s-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+g)-s&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+E,this.ybase+s-1)}}}if(h.length>0){var H=[],V=[];for(O=0;O<this.lines.length;O++)V.push(this.lines.get(O));var Q=this.lines.length,G=Q-1,ee=0,q=h[ee];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var se=0;for(O=Math.min(this.lines.maxLength-1,Q+g-1);O>=0;O--)if(q&&q.start>G+se){for(var re=q.newLines.length-1;re>=0;re--)this.lines.set(O--,q.newLines[re]);O++,H.push({index:G+1,amount:q.newLines.length}),se+=q.newLines.length,q=h[++ee]}else this.lines.set(O,V[G--]);var Ae=0;for(O=H.length-1;O>=0;O--)H[O].index+=Ae,this.lines.onInsertEmitter.fire(H[O]),Ae+=H[O].amount;var Te=Math.max(0,Q+g-this.lines.maxLength);Te>0&&this.lines.onTrimEmitter.fire(Te)}},l.prototype.stringIndexToBufferIndex=function(r,s,c){for(c===void 0&&(c=!1);s;){var h=this.lines.get(r);if(!h)return[-1,-1];for(var g=c?h.getTrimmedLength():h.length,A=0;A<g;++A)if(h.get(A)[d.CHAR_DATA_WIDTH_INDEX]&&(s-=h.get(A)[d.CHAR_DATA_CHAR_INDEX].length||1),s<0)return[r,A];r++}return[r,0]},l.prototype.translateBufferLineToString=function(r,s,c,h){c===void 0&&(c=0);var g=this.lines.get(r);return g?g.translateToString(s,c,h):""},l.prototype.getWrappedRangeForLine=function(r){for(var s=r,c=r;s>0&&this.lines.get(s).isWrapped;)s--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:s,last:c}},l.prototype.setupTabStops=function(r){for(r!=null?this.tabs[r]||(r=this.prevStop(r)):(this.tabs={},r=0);r<this._cols;r+=this._optionsService.options.tabStopWidth)this.tabs[r]=!0},l.prototype.prevStop=function(r){for(r==null&&(r=this.x);!this.tabs[--r]&&r>0;);return r>=this._cols?this._cols-1:r<0?0:r},l.prototype.nextStop=function(r){for(r==null&&(r=this.x);!this.tabs[++r]&&r<this._cols;);return r>=this._cols?this._cols-1:r<0?0:r},l.prototype.addMarker=function(r){var s=this,c=new o.Marker(r);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 s._removeMarker(c)})),c},l.prototype._removeMarker=function(r){this.markers.splice(this.markers.indexOf(r),1)},l.prototype.iterator=function(r,s,c,h,g){return new e(this,r,s,c,h,g)},l}();p.Buffer=a;var e=function(){function l(r,s,c,h,g,A){c===void 0&&(c=0),h===void 0&&(h=r.lines.length),g===void 0&&(g=0),A===void 0&&(A=0),this._buffer=r,this._trimRight=s,this._startIndex=c,this._endIndex=h,this._startOverscan=g,this._endOverscan=A,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return l.prototype.hasNext=function(){return this._current<this._endIndex},l.prototype.next=function(){var r=this._buffer.getWrappedRangeForLine(this._current);r.first<this._startIndex-this._startOverscan&&(r.first=this._startIndex-this._startOverscan),r.last>this._endIndex+this._endOverscan&&(r.last=this._endIndex+this._endOverscan),r.first=Math.max(r.first,0),r.last=Math.min(r.last,this._buffer.lines.length);for(var s="",c=r.first;c<=r.last;++c)s+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=r.last+1,{range:r,content:s}},l}();p.BufferStringIterator=e},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CircularList=void 0;var v=S(0),m=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new v.EventEmitter,this.onInsertEmitter=new v.EventEmitter,this.onTrimEmitter=new v.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(f.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxLength",{get:function(){return this._maxLength},set:function(u){if(this._maxLength!==u){for(var o=new Array(u),n=0;n<Math.min(u,this.length);n++)o[n]=this._array[this._getCyclicIndex(n)];this._array=o,this._maxLength=u,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._length},set:function(u){if(u>this._length)for(var o=this._length;o<u;o++)this._array[o]=void 0;this._length=u},enumerable:!1,configurable:!0}),f.prototype.get=function(d){return this._array[this._getCyclicIndex(d)]},f.prototype.set=function(d,u){this._array[this._getCyclicIndex(d)]=u},f.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++},f.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(f.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),f.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},f.prototype.splice=function(d,u){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];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+o.length)]=this._array[this._getCyclicIndex(t)];for(t=0;t<o.length;t++)this._array[this._getCyclicIndex(d+t)]=o[t];if(this._length+o.length>this._maxLength){var a=this._length+o.length-this._maxLength;this._startIndex+=a,this._length=this._maxLength,this.onTrimEmitter.fire(a)}else this._length+=o.length},f.prototype.trimStart=function(d){d>this._length&&(d=this._length),this._startIndex+=d,this._length-=d,this.onTrimEmitter.fire(d)},f.prototype.shiftElements=function(d,u,o){if(!(u<=0)){if(d<0||d>=this._length)throw new Error("start argument out of range");if(d+o<0)throw new Error("Cannot shift elements in list beyond index 0");if(o>0){for(var n=u-1;n>=0;n--)this.set(d+n+o,this.get(d+n));var t=d+u+o-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n<u;n++)this.set(d+n+o,this.get(d+n))}},f.prototype._getCyclicIndex=function(d){return(this._startIndex+d)%this._maxLength},f}();p.CircularList=m},function(y,p,S){"use strict";function v(m,f,d){if(f===m.length-1)return m[f].getTrimmedLength();var u=!m[f].hasContent(d-1)&&m[f].getWidth(d-1)===1,o=m[f+1].getWidth(0)===2;return u&&o?d-1:d}Object.defineProperty(p,"__esModule",{value:!0}),p.getWrappedLineTrimmedLength=p.reflowSmallerGetNewLineLengths=p.reflowLargerApplyNewLayout=p.reflowLargerCreateNewLayout=p.reflowLargerGetLinesToRemove=void 0,p.reflowLargerGetLinesToRemove=function(m,f,d,u,o){for(var n=[],t=0;t<m.length-1;t++){var a=t,e=m.get(++a);if(e.isWrapped){for(var l=[m.get(t)];a<m.length&&e.isWrapped;)l.push(e),e=m.get(++a);if(u>=t&&u<a)t+=l.length-1;else{for(var r=0,s=v(l,r,f),c=1,h=0;c<l.length;){var g=v(l,c,f),A=g-h,b=d-s,w=Math.min(A,b);l[r].copyCellsFrom(l[c],h,s,w,!1),(s+=w)===d&&(r++,s=0),(h+=w)===g&&(c++,h=0),s===0&&r!==0&&l[r-1].getWidth(d-1)===2&&(l[r].copyCellsFrom(l[r-1],d-1,s++,1,!1),l[r-1].setCell(d-1,o))}l[r].replaceCells(s,d,o);for(var x=0,T=l.length-1;T>0&&(T>r||l[T].getTrimmedLength()===0);T--)x++;x>0&&(n.push(t+l.length-x),n.push(x)),t+=l.length-1}}}return n},p.reflowLargerCreateNewLayout=function(m,f){for(var d=[],u=0,o=f[u],n=0,t=0;t<m.length;t++)if(o===t){var a=f[++u];m.onDeleteEmitter.fire({index:t-n,amount:a}),t+=a-1,n+=a,o=f[++u]}else d.push(t);return{layout:d,countRemoved:n}},p.reflowLargerApplyNewLayout=function(m,f){for(var d=[],u=0;u<f.length;u++)d.push(m.get(f[u]));for(u=0;u<d.length;u++)m.set(u,d[u]);m.length=f.length},p.reflowSmallerGetNewLineLengths=function(m,f,d){for(var u=[],o=m.map(function(s,c){return v(m,c,f)}).reduce(function(s,c){return s+c}),n=0,t=0,a=0;a<o;){if(o-a<d){u.push(o-a);break}n+=d;var e=v(m,t,f);n>e&&(n-=e,t++);var l=m[t].getWidth(n-1)===2;l&&n--;var r=l?d-1:d;u.push(r),a+=r}return u},p.getWrappedLineTrimmedLength=v},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(o,n){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var e in a)a.hasOwnProperty(e)&&(t[e]=a[e])})(o,n)},function(u,o){function n(){this.constructor=u}v(u,o),u.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0}),p.Marker=void 0;var f=S(0),d=function(u){function o(n){var t=u.call(this)||this;return t.line=n,t._id=o._nextId++,t.isDisposed=!1,t._onDispose=new f.EventEmitter,t}return m(o,u),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},o._nextId=1,o}(S(2).Disposable);p.Marker=d},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OptionsService=p.DEFAULT_OPTIONS=p.DEFAULT_BELL_SOUND=void 0;var v=S(0),m=S(11),f=S(33);p.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",p.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:p.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 o(n){this._onOptionChange=new v.EventEmitter,this.options=f.clone(p.DEFAULT_OPTIONS);for(var t=0,a=Object.keys(n);t<a.length;t++){var e=a[t];if(e in this.options){var l=n[e];this.options[e]=l}}}return Object.defineProperty(o.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),o.prototype.setOption=function(n,t){if(!(n in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+n+'"');if(d.indexOf(n)!==-1)throw new Error('Option "'+n+'" can only be set in the constructor');this.options[n]!==t&&(t=this._sanitizeAndValidateOption(n,t),this.options[n]!==t&&(this.options[n]=t,this._onOptionChange.fire(n)))},o.prototype._sanitizeAndValidateOption=function(n,t){switch(n){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=p.DEFAULT_OPTIONS[n]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(n+" 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(n+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(n+" cannot be less than or equal to 0, value: "+t)}return t},o.prototype.getOption=function(n){if(!(n in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+n+'"');return this.options[n]},o}();p.OptionsService=u},function(y,p,S){"use strict";var v,m=this&&this.__extends||(v=function(s,c){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var A in g)g.hasOwnProperty(A)&&(h[A]=g[A])})(s,c)},function(r,s){function c(){this.constructor=r}v(r,s),r.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}),f=this&&this.__decorate||function(r,s,c,h){var g,A=arguments.length,b=A<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,s,c,h);else for(var w=r.length-1;w>=0;w--)(g=r[w])&&(b=(A<3?g(b):A>3?g(s,c,b):g(s,c))||b);return A>3&&b&&Object.defineProperty(s,c,b),b},d=this&&this.__param||function(r,s){return function(c,h){s(c,h,r)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreService=void 0;var u=S(1),o=S(0),n=S(33),t=S(2),a=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(r){function s(c,h,g,A){var b=r.call(this)||this;return b._bufferService=h,b._logService=g,b._optionsService=A,b.isCursorInitialized=!1,b.isCursorHidden=!1,b._onData=b.register(new o.EventEmitter),b._onUserInput=b.register(new o.EventEmitter),b._onBinary=b.register(new o.EventEmitter),b._scrollToBottom=c,b.register({dispose:function(){return b._scrollToBottom=void 0}}),b.modes=n.clone(a),b.decPrivateModes=n.clone(e),b}return m(s,r),Object.defineProperty(s.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this.modes=n.clone(a),this.decPrivateModes=n.clone(e)},s.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(A){return A.charCodeAt(0)})}),this._onData.fire(c)}},s.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))},s=f([d(1,u.IBufferService),d(2,u.ILogService),d(3,u.IOptionsService)],s)}(t.Disposable);p.CoreService=l},function(y,p,S){"use strict";var v=this&&this.__decorate||function(e,l,r,s){var c,h=arguments.length,g=h<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,r,s);else for(var A=e.length-1;A>=0;A--)(c=e[A])&&(g=(h<3?c(g):h>3?c(l,r,g):c(l,r))||g);return h>3&&g&&Object.defineProperty(l,r,g),g},m=this&&this.__param||function(e,l){return function(r,s){l(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreMouseService=void 0;var f=S(1),d=S(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 o(e,l){var r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(r|=64,r|=e.action):(r|=3&e.button,4&e.button&&(r|=64),8&e.button&&(r|=128),e.action===32?r|=32:e.action!==0||l||(r|=3)),r}var n=String.fromCharCode,t={DEFAULT:function(l){var r=[o(l,!1)+32,l.col+32,l.row+32];return r[0]>255||r[1]>255||r[2]>255?"":""+n(r[0])+n(r[1])+n(r[2])},SGR:function(l){var r=l.action===0&&l.button!==4?"m":"M";return"[<"+o(l,!0)+";"+l.col+";"+l.row+r}},a=function(){function e(l,r){this._bufferService=l,this._coreService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new d.EventEmitter,this._lastEvent=null;for(var s=0,c=Object.keys(u);s<c.length;s++){var h=c[s];this.addProtocol(h,u[h])}for(var g=0,A=Object.keys(t);g<A.length;g++){var b=A[g];this.addEncoding(b,t[b])}this.reset()}return e.prototype.addProtocol=function(l,r){this._protocols[l]=r},e.prototype.addEncoding=function(l,r){this._encodings[l]=r},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(r){if(!this._protocols[r])throw new Error('unknown protocol "'+r+'"');this._activeProtocol=r,this._onProtocolChange.fire(this._protocols[r].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(r){if(!this._encodings[r])throw new Error('unknown encoding "'+r+'"');this._activeEncoding=r},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 r=this._encodings[this._activeEncoding](l);return r&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(r):this._coreService.triggerDataEvent(r,!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,r){return l.col===r.col&&l.row===r.row&&l.button===r.button&&l.action===r.action&&l.ctrl===r.ctrl&&l.alt===r.alt&&l.shift===r.shift},e=v([m(0,f.IBufferService),m(1,f.ICoreService)],e)}();p.CoreMouseService=a},function(y,p,S){"use strict";var v=this&&this.__decorate||function(u,o,n,t){var a,e=arguments.length,l=e<3?o:t===null?t=Object.getOwnPropertyDescriptor(o,n):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,o,n,t);else for(var r=u.length-1;r>=0;r--)(a=u[r])&&(l=(e<3?a(l):e>3?a(o,n,l):a(o,n))||l);return e>3&&l&&Object.defineProperty(o,n,l),l},m=this&&this.__param||function(u,o){return function(n,t){o(n,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DirtyRowService=void 0;var f=S(1),d=function(){function u(o){this._bufferService=o,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(o){o<this._start?this._start=o:o>this._end&&(this._end=o)},u.prototype.markRangeDirty=function(o,n){if(o>n){var t=o;o=n,n=t}o<this._start&&(this._start=o),n>this._end&&(this._end=n)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=v([m(0,f.IBufferService)],u)}();p.DirtyRowService=d},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeService=void 0;var v=S(0),m=S(79),f=function(){function d(){this._providers=Object.create(null),this._active="",this._onChange=new v.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(o){if(!this._providers[o])throw new Error('unknown Unicode version "'+o+'"');this._active=o,this._activeProvider=this._providers[o],this._onChange.fire(o)},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 o=0,n=u.length,t=0;t<n;++t){var a=u.charCodeAt(t);if(55296<=a&&a<=56319){if(++t>=n)return o+this.wcwidth(a);var e=u.charCodeAt(t);56320<=e&&e<=57343?a=1024*(a-55296)+e-56320+65536:o+=this.wcwidth(e)}o+=this.wcwidth(a)}return o},d}();p.UnicodeService=f},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeV6=void 0;var v,m=S(15),f=[[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 o(){if(this.version="6",!v){v=new Uint8Array(65536),m.fill(v,1),v[0]=0,m.fill(v,0,1,32),m.fill(v,0,127,160),m.fill(v,2,4352,4448),v[9001]=2,v[9002]=2,m.fill(v,2,11904,42192),v[12351]=1,m.fill(v,2,44032,55204),m.fill(v,2,63744,64256),m.fill(v,2,65040,65050),m.fill(v,2,65072,65136),m.fill(v,2,65280,65377),m.fill(v,2,65504,65511);for(var n=0;n<f.length;++n)m.fill(v,0,f[n][0],f[n][1]+1)}}return o.prototype.wcwidth=function(n){return n<32?0:n<127?1:n<65536?v[n]:function(t,a){var e,l=0,r=a.length-1;if(t<a[0][0]||t>a[r][1])return!1;for(;r>=l;)if(t>a[e=l+r>>1][1])l=e+1;else{if(!(t<a[e][0]))return!0;r=e-1}return!1}(n,d)?0:n>=131072&&n<=196605||n>=196608&&n<=262141?2:1},o}();p.UnicodeV6=u},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CharsetService=void 0;var v=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(f){this.glevel=f,this.charset=this._charsets[f]},m.prototype.setgCharset=function(f,d){this._charsets[f]=d,this.glevel===f&&(this.charset=d)},m}();p.CharsetService=v},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.updateWindowsModeWrappedState=void 0;var v=S(3);p.updateWindowsModeWrappedState=function(m){var f=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),d=f==null?void 0:f.get(m.cols-1),u=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);u&&d&&(u.isWrapped=d[v.CHAR_DATA_CODE_INDEX]!==v.NULL_CELL_CODE&&d[v.CHAR_DATA_CODE_INDEX]!==v.WHITESPACE_CELL_CODE)}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WriteBuffer=void 0;var v=function(){function m(f){this._action=f,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return m.prototype.writeSync=function(f){if(this._writeBuffer.length){for(var d=this._bufferOffset;d<this._writeBuffer.length;++d){var u=this._writeBuffer[d],o=this._callbacks[d];this._action(u),o&&o()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(f)},m.prototype.write=function(f,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+=f.length,this._writeBuffer.push(f),this._callbacks.push(d)},m.prototype._innerWrite=function(){for(var f=this,d=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],o=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,o&&o(),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 f._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},m}();p.WriteBuffer=v},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AddonManager=void 0;var v=function(){function m(){this._addons=[]}return m.prototype.dispose=function(){for(var f=this._addons.length-1;f>=0;f--)this._addons[f].instance.dispose()},m.prototype.loadAddon=function(f,d){var u=this,o={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(o),d.dispose=function(){return u._wrappedAddonDispose(o)},d.activate(f)},m.prototype._wrappedAddonDispose=function(f){if(!f.isDisposed){for(var d=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===f){d=u;break}if(d===-1)throw new Error("Could not dispose an addon that has not been loaded");f.isDisposed=!0,f.dispose.apply(f.instance),this._addons.splice(d,1)}},m}();p.AddonManager=v}])})},"/SeX":function(k,D,i){var y=i("knOB"),p=i("qZFw"),S=function(m){this.name=m||"",this.cx=0,this.cy=0,this._radiusAxis=new y,this._angleAxis=new p,this._radiusAxis.polar=this._angleAxis.polar=this};S.prototype={type:"polar",axisPointerEnabled:!0,constructor:S,dimensions:["radius","angle"],model:null,containPoint:function(m){var f=this.pointToCoord(m);return this._radiusAxis.contain(f[0])&&this._angleAxis.contain(f[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 f=[],d=this._angleAxis,u=this._radiusAxis;return d.scale.type===m&&f.push(d),u.scale.type===m&&f.push(u),f},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(m){var f=this._angleAxis;return m===f?this._radiusAxis:f},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(m){var f=m!=null&&m!=="auto"?this.getAxis(m):this.getBaseAxis();return{baseAxes:[f],otherAxes:[this.getOtherAxis(f)]}},dataToPoint:function(m,f){return this.coordToPoint([this._radiusAxis.dataToRadius(m[0],f),this._angleAxis.dataToAngle(m[1],f)])},pointToData:function(m,f){var d=this.pointToCoord(m);return[this._radiusAxis.radiusToData(d[0],f),this._angleAxis.angleToData(d[1],f)]},pointToCoord:function(m){var f=m[0]-this.cx,d=m[1]-this.cy,u=this.getAngleAxis(),o=u.getExtent(),n=Math.min(o[0],o[1]),t=Math.max(o[0],o[1]);u.inverse?n=t-360:t=n+360;var a=Math.sqrt(f*f+d*d);f/=a,d/=a;for(var e=Math.atan2(-d,f)/Math.PI*180,l=e<n?1:-1;e<n||e>t;)e+=l*360;return[a,e]},coordToPoint:function(m){var f=m[0],d=m[1]/180*Math.PI,u=Math.cos(d)*f+this.cx,o=-Math.sin(d)*f+this.cy;return[u,o]},getArea:function(){var m=this.getAngleAxis(),f=this.getRadiusAxis(),d=f.getExtent().slice();d[0]>d[1]&&d.reverse();var u=m.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:d[0],r:d[1],startAngle:-u[0]*o,endAngle:-u[1]*o,clockwise:m.inverse,contain:function(n,t){var a=n-this.cx,e=t-this.cy,l=a*a+e*e,r=this.r,s=this.r0;return l<=r*r&&l>=s*s}}}};var v=S;k.exports=v},"/WM3":function(k,D,i){var y=i("QuXc"),p=i("bYtY"),S=p.isFunction,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,f){var d=m.getData(),u=(m.visualColorAccessPath||"itemStyle.color").split("."),o=m.get(u),n=S(o)&&!(o instanceof y)?o:null;(!o||n)&&(o=m.getColorFromPalette(m.name,null,f.getSeriesCount())),d.setVisual("color",o);var t=(m.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),a=m.get(t);if(d.setVisual("borderColor",a),!f.isSeriesFiltered(m)){n&&d.each(function(l){d.setItemVisual(l,"color",n(m.getDataParams(l)))});var e=function(l,r){var s=l.getItemModel(r),c=s.get(u,!0),h=s.get(t,!0);c!=null&&l.setItemVisual(r,"color",c),h!=null&&l.setItemVisual(r,"borderColor",h)};return{dataEach:d.hasItemOption?e:null}}}};k.exports=v},"/d5a":function(k,D){var i={average:function(S){for(var v=0,m=0,f=0;f<S.length;f++)isNaN(S[f])||(v+=S[f],m++);return m===0?NaN:v/m},sum:function(S){for(var v=0,m=0;m<S.length;m++)v+=S[m]||0;return v},max:function(S){for(var v=-Infinity,m=0;m<S.length;m++)S[m]>v&&(v=S[m]);return isFinite(v)?v:NaN},min:function(S){for(var v=Infinity,m=0;m<S.length;m++)S[m]<v&&(v=S[m]);return isFinite(v)?v:NaN},nearest:function(S){return S[0]}},y=function(S,v){return Math.round(S.length/2)};function p(S){return{seriesType:S,modifyOutputEnd:!0,reset:function(v,m,f){var d=v.getData(),u=v.get("sampling"),o=v.coordinateSystem;if(o.type==="cartesian2d"&&u){var n=o.getBaseAxis(),t=o.getOtherAxis(n),a=n.getExtent(),e=a[1]-a[0],l=Math.round(d.count()/e);if(l>1){var r;typeof u=="string"?r=i[u]:typeof u=="function"&&(r=u),r&&v.setData(d.downSample(d.mapDimension(t.dim),1/l,r,y))}}}}}k.exports=p},"/ezw":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("cDf5"),f=i.n(m),d=i("q1tI"),u=i("TSYQ"),o=i.n(u),n=function(W){var H=W.prefixCls,V=W.className,Q=W.width,G=W.style;return d.createElement("h3",{className:o()(H,V),style:v()({width:Q},G)})},t=n,a=i("RIqP"),e=i.n(a),l=function(W){var H=function(re){var Ae=W.width,Te=W.rows,Re=Te===void 0?2:Te;return Array.isArray(Ae)?Ae[re]:Re-1===re?Ae:void 0},V=W.prefixCls,Q=W.className,G=W.style,ee=W.rows,q=e()(Array(ee)).map(function(se,re){return d.createElement("li",{key:re,style:{width:H(re)}})});return d.createElement("ul",{className:o()(V,Q),style:G},q)},r=l,s=i("H84U"),c=function(W){var H,V,Q=W.prefixCls,G=W.className,ee=W.style,q=W.size,se=W.shape,re=o()((H={},p()(H,"".concat(Q,"-lg"),q==="large"),p()(H,"".concat(Q,"-sm"),q==="small"),H)),Ae=o()((V={},p()(V,"".concat(Q,"-circle"),se==="circle"),p()(V,"".concat(Q,"-square"),se==="square"),p()(V,"".concat(Q,"-round"),se==="round"),V)),Te=typeof q=="number"?{width:q,height:q,lineHeight:"".concat(q,"px")}:{};return d.createElement("span",{className:o()(Q,G,re,Ae),style:v()(v()({},Te),ee)})},h=c,g=i("BGR+"),A=function(W){var H=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,q=W.className,se=W.active,re=G("skeleton",ee),Ae=Object(g.default)(W,["prefixCls"]),Te=o()(re,q,"".concat(re,"-element"),p()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Te},d.createElement(h,v()({prefixCls:"".concat(re,"-avatar")},Ae)))};return d.createElement(s.a,null,H)};A.defaultProps={size:"default",shape:"circle"};var b=A,w=function(W){var H=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,q=W.className,se=W.active,re=G("skeleton",ee),Ae=Object(g.default)(W,["prefixCls"]),Te=o()(re,q,"".concat(re,"-element"),p()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Te},d.createElement(h,v()({prefixCls:"".concat(re,"-button")},Ae)))};return d.createElement(s.a,null,H)};w.defaultProps={size:"default"};var x=w,T=function(W){var H=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,q=W.className,se=W.active,re=G("skeleton",ee),Ae=Object(g.default)(W,["prefixCls"]),Te=o()(re,q,"".concat(re,"-element"),p()({},"".concat(re,"-active"),se));return d.createElement("div",{className:Te},d.createElement(h,v()({prefixCls:"".concat(re,"-input")},Ae)))};return d.createElement(s.a,null,H)};T.defaultProps={size:"default"};var _=T,E="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",C=function(W){var H=function(Q){var G=Q.getPrefixCls,ee=W.prefixCls,q=W.className,se=W.style,re=G("skeleton",ee),Ae=o()(re,q,"".concat(re,"-element"));return d.createElement("div",{className:Ae},d.createElement("div",{className:o()("".concat(re,"-image"),q),style:se},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(re,"-image-svg")},d.createElement("path",{d:E,className:"".concat(re,"-image-path")}))))};return d.createElement(s.a,null,H)},I=C;function O(z){return z&&f()(z)==="object"?z:{}}function F(z,W){return z&&!W?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function R(z,W){return!z&&W?{width:"38%"}:z&&W?{width:"50%"}:{}}function B(z,W){var H={};return(!z||!W)&&(H.width="61%"),!z&&W?H.rows=3:H.rows=2,H}var P=function(W){var H=function(Q){var G=Q.getPrefixCls,ee=Q.direction,q=W.prefixCls,se=W.loading,re=W.className,Ae=W.children,Te=W.avatar,Re=W.title,Ge=W.paragraph,Ue=W.active,nt=W.round,Le=G("skeleton",q);if(se||!("loading"in W)){var le,Xe=!!Te,pe=!!Re,Z=!!Ge,Y;if(Xe){var ne=v()(v()({prefixCls:"".concat(Le,"-avatar")},F(pe,Z)),O(Te));Y=d.createElement("div",{className:"".concat(Le,"-header")},d.createElement(h,ne))}var ce;if(pe||Z){var ye;if(pe){var Ee=v()(v()({prefixCls:"".concat(Le,"-title")},R(Xe,Z)),O(Re));ye=d.createElement(t,Ee)}var Ce;if(Z){var ue=v()(v()({prefixCls:"".concat(Le,"-paragraph")},B(Xe,pe)),O(Ge));Ce=d.createElement(r,ue)}ce=d.createElement("div",{className:"".concat(Le,"-content")},ye,Ce)}var ge=o()(Le,re,(le={},p()(le,"".concat(Le,"-with-avatar"),Xe),p()(le,"".concat(Le,"-active"),Ue),p()(le,"".concat(Le,"-rtl"),ee==="rtl"),p()(le,"".concat(Le,"-round"),nt),le));return d.createElement("div",{className:ge},Y,ce)}return Ae};return d.createElement(s.a,null,H)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=x,P.Avatar=b,P.Input=_,P.Image=I;var X=P,M=D.a=X},"/iHx":function(k,D,i){var y=i("6GrX"),p=i("IwbS"),S=["textStyle","color"],v={getTextColor:function(m){var f=this.ecModel;return this.getShallow("color")||(!m&&f?f.get(S):null)},getFont:function(){return p.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"))}};k.exports=v},"/ry/":function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("5GhG"),v=S.seriesModelMixin,m=p.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,v,!0);var f=m;k.exports=f},"/stD":function(k,D,i){var y=i("bYtY"),p=i("IUWy"),S=i("Kagy"),v=S.toolbox.brush;function m(u,o,n){this.model=u,this.ecModel=o,this.api=n,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(v.title)};var f=m.prototype;f.render=f.updateView=function(u,o,n){var t,a,e;o.eachComponent({mainType:"brush"},function(l){t=l.brushType,a=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=t,this._brushMode=a,y.each(u.get("type",!0),function(l){u.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?e:l===t)?"emphasis":"normal")})},f.getIcons=function(){var u=this.model,o=u.get("icon",!0),n={};return y.each(u.get("type",!0),function(t){o[t]&&(n[t]=o[t])}),n},f.onclick=function(u,o,n){var t=this._brushType,a=this._brushMode;n==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?t:t===n?!1:n,brushMode:n==="keep"?a==="multiple"?"single":"multiple":a}})},p.register("brush",m);var d=m;k.exports=d},"/wGt":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),l=i.n(e),r=i("q1tI"),s=i("Ff2n"),c=i("1OyB"),h=i("vuIU"),g=i("Ji7U"),A=i("md7G"),b=i("foSv"),w=i("1W/9"),x=i("rePB"),T=i("JX7q"),_=i("TSYQ"),E=i.n(_),C=i("qx4F"),I=i("4IlW");function O(ye){return Array.isArray(ye)?ye:[ye]}var F={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},R=Object.keys(F).filter(function(ye){if(typeof document=="undefined")return!1;var Ee=document.getElementsByTagName("html")[0];return ye in(Ee?Ee.style:{})})[0],B=F[R];function P(ye,Ee,Ce,ue){ye.addEventListener?ye.addEventListener(Ee,Ce,ue):ye.attachEvent&&ye.attachEvent("on".concat(Ee),Ce)}function X(ye,Ee,Ce,ue){ye.removeEventListener?ye.removeEventListener(Ee,Ce,ue):ye.attachEvent&&ye.detachEvent("on".concat(Ee),Ce)}function M(ye,Ee){var Ce=typeof ye=="function"?ye(Ee):ye;return Array.isArray(Ce)?Ce.length===2?Ce:[Ce[0],Ce[1]]:[Ce]}var z=function(Ee){return!isNaN(parseFloat(Ee))&&isFinite(Ee)},W=!(typeof window!="undefined"&&window.document&&window.document.createElement),H=function ye(Ee,Ce,ue,ge){if(!Ce||Ce===document||Ce instanceof Document)return!1;if(Ce===Ee.parentNode)return!0;var Oe=Math.max(Math.abs(ue),Math.abs(ge))===Math.abs(ge),Je=Math.max(Math.abs(ue),Math.abs(ge))===Math.abs(ue),lt=Ce.scrollHeight-Ce.clientHeight,tt=Ce.scrollWidth-Ce.clientWidth,ke=document.defaultView.getComputedStyle(Ce),st=ke.overflowY==="auto"||ke.overflowY==="scroll",Ve=ke.overflowX==="auto"||ke.overflowX==="scroll",Ot=lt&&st,Ut=tt&&Ve;return Oe&&(!Ot||Ot&&(Ce.scrollTop>=lt&&ge<0||Ce.scrollTop<=0&&ge>0))||Je&&(!Ut||Ut&&(Ce.scrollLeft>=tt&&ue<0||Ce.scrollLeft<=0&&ue>0))?ye(Ee,Ce.parentNode,ue,ge):!1};function V(ye){var Ee=Q();return function(){var ue=Object(b.a)(ye),ge;if(Ee){var Oe=Object(b.a)(this).constructor;ge=Reflect.construct(ue,arguments,Oe)}else ge=ue.apply(this,arguments);return Object(A.a)(this,ge)}}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(ye){return!1}}var G={},ee=function(ye){Object(g.a)(Ce,ye);var Ee=V(Ce);function Ce(ue){var ge;return Object(c.a)(this,Ce),ge=Ee.call(this,ue),ge.domFocus=function(){ge.dom&&ge.dom.focus()},ge.removeStartHandler=function(Oe){if(Oe.touches.length>1)return;ge.startPos={x:Oe.touches[0].clientX,y:Oe.touches[0].clientY}},ge.removeMoveHandler=function(Oe){if(Oe.changedTouches.length>1)return;var Je=Oe.currentTarget,lt=Oe.changedTouches[0].clientX-ge.startPos.x,tt=Oe.changedTouches[0].clientY-ge.startPos.y;(Je===ge.maskDom||Je===ge.handlerDom||Je===ge.contentDom&&H(Je,Oe.target,lt,tt))&&Oe.cancelable&&Oe.preventDefault()},ge.transitionEnd=function(Oe){var Je=Oe.target;X(Je,B,ge.transitionEnd),Je.style.transition=""},ge.onKeyDown=function(Oe){if(Oe.keyCode===I.a.ESC){var Je=ge.props.onClose;Oe.stopPropagation(),Je&&Je(Oe)}},ge.onWrapperTransitionEnd=function(Oe){var Je=ge.props,lt=Je.open,tt=Je.afterVisibleChange;Oe.target===ge.contentWrapper&&Oe.propertyName.match(/transform$/)&&(ge.dom.style.transition="",!lt&&ge.getCurrentDrawerSome()&&(document.body.style.overflowX="",ge.maskDom&&(ge.maskDom.style.left="",ge.maskDom.style.width="")),tt&&tt(!!lt))},ge.openLevelTransition=function(){var Oe=ge.props,Je=Oe.open,lt=Oe.width,tt=Oe.height,ke=ge.getHorizontalBoolAndPlacementName(),st=ke.isHorizontal,Ve=ke.placementName,Ot=ge.contentDom?ge.contentDom.getBoundingClientRect()[st?"width":"height"]:0,Ut=(st?lt:tt)||Ot;ge.setLevelAndScrolling(Je,Ve,Ut)},ge.setLevelTransform=function(Oe,Je,lt,tt){var ke=ge.props,st=ke.placement,Ve=ke.levelMove,Ot=ke.duration,Ut=ke.ease,ir=ke.showMask;ge.levelDom.forEach(function(lr){lr.style.transition="transform ".concat(Ot," ").concat(Ut),P(lr,B,ge.transitionEnd);var Sr=Oe?lt:0;if(Ve){var mt=M(Ve,{target:lr,open:Oe});Sr=Oe?mt[0]:mt[1]||0}var or=typeof Sr=="number"?"".concat(Sr,"px"):Sr,et=st==="left"||st==="top"?or:"-".concat(or);et=ir&&st==="right"&&tt?"calc(".concat(et," + ").concat(tt,"px)"):et,lr.style.transform=Sr?"".concat(Je,"(").concat(et,")"):""})},ge.setLevelAndScrolling=function(Oe,Je,lt){var tt=ge.props.onChange;if(!W){var ke=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(C.a)(!0):0;ge.setLevelTransform(Oe,Je,lt,ke),ge.toggleScrollingToDrawerAndBody(ke)}tt&&tt(Oe)},ge.toggleScrollingToDrawerAndBody=function(Oe){var Je=ge.props,lt=Je.getOpenCount,tt=Je.getContainer,ke=Je.showMask,st=Je.open,Ve=tt&&tt(),Ot=lt&&lt();if(Ve&&Ve.parentNode===document.body&&ke){var Ut=["touchstart"],ir=[document.body,ge.maskDom,ge.handlerDom,ge.contentDom];st&&document.body.style.overflow!=="hidden"?(Oe&&ge.addScrollingEffect(Oe),Ot===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",ir.forEach(function(lr,Sr){if(!lr)return;P(lr,Ut[Sr]||"touchmove",Sr?ge.removeMoveHandler:ge.removeStartHandler,ge.passive)})):ge.getCurrentDrawerSome()&&(Ot||(document.body.style.overflow=""),document.body.style.touchAction="",Oe&&ge.remScrollingEffect(Oe),ir.forEach(function(lr,Sr){if(!lr)return;X(lr,Ut[Sr]||"touchmove",Sr?ge.removeMoveHandler:ge.removeStartHandler,ge.passive)}))}},ge.addScrollingEffect=function(Oe){var Je=ge.props,lt=Je.placement,tt=Je.duration,ke=Je.ease,st=Je.getOpenCount,Ve=Je.switchScrollingEffect,Ot=st&&st();Ot===1&&Ve();var Ut="width ".concat(tt," ").concat(ke),ir="transform ".concat(tt," ").concat(ke);ge.dom.style.transition="none";switch(lt){case"right":ge.dom.style.transform="translateX(-".concat(Oe,"px)");break;case"top":case"bottom":ge.dom.style.width="calc(100% - ".concat(Oe,"px)"),ge.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(ge.timeout),ge.timeout=setTimeout(function(){ge.dom&&(ge.dom.style.transition="".concat(ir,",").concat(Ut),ge.dom.style.width="",ge.dom.style.transform="")})},ge.remScrollingEffect=function(Oe){var Je=ge.props,lt=Je.placement,tt=Je.duration,ke=Je.ease,st=Je.getOpenCount,Ve=Je.switchScrollingEffect,Ot=st&&st();Ot||Ve(!0),R&&(document.body.style.overflowX="hidden"),ge.dom.style.transition="none";var Ut,ir="width ".concat(tt," ").concat(ke),lr="transform ".concat(tt," ").concat(ke);switch(lt){case"left":{ge.dom.style.width="100%",ir="width 0s ".concat(ke," ").concat(tt);break}case"right":{ge.dom.style.transform="translateX(".concat(Oe,"px)"),ge.dom.style.width="100%",ir="width 0s ".concat(ke," ").concat(tt),ge.maskDom&&(ge.maskDom.style.left="-".concat(Oe,"px"),ge.maskDom.style.width="calc(100% + ".concat(Oe,"px)"));break}case"top":case"bottom":{ge.dom.style.width="calc(100% + ".concat(Oe,"px)"),ge.dom.style.height="100%",ge.dom.style.transform="translateZ(0)",Ut="height 0s ".concat(ke," ").concat(tt);break}default:break}clearTimeout(ge.timeout),ge.timeout=setTimeout(function(){ge.dom&&(ge.dom.style.transition="".concat(lr,",").concat(Ut?"".concat(Ut,","):"").concat(ir),ge.dom.style.transform="",ge.dom.style.width="",ge.dom.style.height="")})},ge.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(Oe){return G[Oe]})},ge.getLevelDom=function(Oe){var Je=Oe.level,lt=Oe.getContainer;if(W)return;var tt=lt&&lt(),ke=tt?tt.parentNode:null;if(ge.levelDom=[],Je==="all"){var st=ke?Array.prototype.slice.call(ke.children):[];st.forEach(function(Ve){Ve.nodeName!=="SCRIPT"&&Ve.nodeName!=="STYLE"&&Ve.nodeName!=="LINK"&&Ve!==tt&&ge.levelDom.push(Ve)})}else Je&&O(Je).forEach(function(Ve){document.querySelectorAll(Ve).forEach(function(Ot){ge.levelDom.push(Ot)})})},ge.getHorizontalBoolAndPlacementName=function(){var Oe=ge.props.placement,Je=Oe==="left"||Oe==="right",lt="translate".concat(Je?"X":"Y");return{isHorizontal:Je,placementName:lt}},ge.state={_self:Object(T.a)(ge)},ge}return Object(h.a)(Ce,[{key:"componentDidMount",value:function(){var ge=this;if(!W){var Oe=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Oe=!0,null}}))}catch(st){}this.passive=Oe?{passive:!1}:!1}var Je=this.props,lt=Je.open,tt=Je.getContainer,ke=tt&&tt();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),lt&&(ke&&ke.parentNode===document.body&&(G[this.drawerId]=lt),this.openLevelTransition(),this.forceUpdate(function(){ge.domFocus()}))}},{key:"componentDidUpdate",value:function(ge){var Oe=this.props,Je=Oe.open,lt=Oe.getContainer,tt=lt&&lt();Je!==ge.open&&(Je&&this.domFocus(),tt&&tt.parentNode===document.body&&(G[this.drawerId]=!!Je),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var ge=this.props,Oe=ge.getOpenCount,Je=ge.open,lt=ge.switchScrollingEffect,tt=typeof Oe=="function"&&Oe();delete G[this.drawerId],Je&&(this.setLevelTransform(!1),document.body.style.touchAction=""),tt||(document.body.style.overflow="",lt(!0))}},{key:"render",value:function(){var ge,Oe=this,Je=this.props,lt=Je.className,tt=Je.children,ke=Je.style,st=Je.width,Ve=Je.height,Ot=Je.defaultOpen,Ut=Je.open,ir=Je.prefixCls,lr=Je.placement,Sr=Je.level,mt=Je.levelMove,or=Je.ease,et=Je.duration,ur=Je.getContainer,qr=Je.handler,Fe=Je.onChange,$t=Je.afterVisibleChange,Lr=Je.showMask,pt=Je.maskClosable,qt=Je.maskStyle,vr=Je.onClose,pn=Je.onHandleClick,fr=Je.keyboard,gr=Je.getOpenCount,dn=Je.switchScrollingEffect,Qt=Object(s.a)(Je,["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"]),sr=this.dom?Ut:!1,Qr=E()(ir,(ge={},Object(x.a)(ge,"".concat(ir,"-").concat(lr),!0),Object(x.a)(ge,"".concat(ir,"-open"),sr),Object(x.a)(ge,lt||"",!!lt),Object(x.a)(ge,"no-mask",!Lr),ge)),Cn=this.getHorizontalBoolAndPlacementName(),Fn=Cn.placementName,ti=lr==="left"||lr==="top"?"-100%":"100%",ki=sr?"":"".concat(Fn,"(").concat(ti,")"),Dn=qr&&r.cloneElement(qr,{onClick:function(Ft){qr.props.onClick&&qr.props.onClick(),pn&&pn(Ft)},ref:function(Ft){Oe.handlerDom=Ft}});return r.createElement("div",Object.assign({},Qt,{tabIndex:-1,className:Qr,style:ke,ref:function(Ft){Oe.dom=Ft},onKeyDown:sr&&fr?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Lr&&r.createElement("div",{className:"".concat(ir,"-mask"),onClick:pt?vr:void 0,style:qt,ref:function(Ft){Oe.maskDom=Ft}}),r.createElement("div",{className:"".concat(ir,"-content-wrapper"),style:{transform:ki,msTransform:ki,width:z(st)?"".concat(st,"px"):st,height:z(Ve)?"".concat(Ve,"px"):Ve},ref:function(Ft){Oe.contentWrapper=Ft}},r.createElement("div",{className:"".concat(ir,"-content"),ref:function(Ft){Oe.contentDom=Ft},onTouchStart:sr&&Lr?this.removeStartHandler:void 0,onTouchMove:sr&&Lr?this.removeMoveHandler:void 0},tt),Dn))}}],[{key:"getDerivedStateFromProps",value:function(ge,Oe){var Je=Oe.prevProps,lt=Oe._self,tt={prevProps:ge};if(Je!==void 0){var ke=ge.placement,st=ge.level;ke!==Je.placement&&(lt.contentDom=null),st!==Je.level&&lt.getLevelDom(ge)}return tt}}]),Ce}(r.Component);ee.defaultProps={switchScrollingEffect:function(){}};var q=ee;function se(ye){var Ee=re();return function(){var ue=Object(b.a)(ye),ge;if(Ee){var Oe=Object(b.a)(this).constructor;ge=Reflect.construct(ue,arguments,Oe)}else ge=ue.apply(this,arguments);return Object(A.a)(this,ge)}}function re(){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(ye){return!1}}var Ae=function(ye){Object(g.a)(Ce,ye);var Ee=se(Ce);function Ce(ue){var ge;Object(c.a)(this,Ce),ge=Ee.call(this,ue),ge.onHandleClick=function(Je){var lt=ge.props,tt=lt.onHandleClick,ke=lt.open;if(tt&&tt(Je),typeof ke=="undefined"){var st=ge.state.open;ge.setState({open:!st})}},ge.onClose=function(Je){var lt=ge.props,tt=lt.onClose,ke=lt.open;tt&&tt(Je),typeof ke=="undefined"&&ge.setState({open:!1})};var Oe=typeof ue.open!="undefined"?ue.open:!!ue.defaultOpen;return ge.state={open:Oe},"onMaskClick"in ue&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),ge}return Object(h.a)(Ce,[{key:"render",value:function(){var ge=this,Oe=this.props,Je=Oe.defaultOpen,lt=Oe.getContainer,tt=Oe.wrapperClassName,ke=Oe.forceRender,st=Oe.handler,Ve=Object(s.a)(Oe,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Ot=this.state.open;if(!lt)return r.createElement("div",{className:tt,ref:function(lr){ge.dom=lr}},r.createElement(q,Object.assign({},Ve,{open:Ot,handler:st,getContainer:function(){return ge.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ut=!!st||ke;return r.createElement(w.a,{visible:Ot,forceRender:Ut,getContainer:lt,wrapperClassName:tt},function(ir){var lr=ir.visible,Sr=ir.afterClose,mt=Object(s.a)(ir,["visible","afterClose"]);return r.createElement(q,Object.assign({},Ve,mt,{open:lr!==void 0?lr:Ot,afterVisibleChange:Sr!==void 0?Sr:Ve.afterVisibleChange,handler:st,onClose:ge.onClose,onHandleClick:ge.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(ge,Oe){var Je=Oe.prevProps,lt={prevProps:ge};return typeof Je!="undefined"&&ge.open!==Je.open&&(lt.open=ge.open),lt}}]),Ce}(r.Component);Ae.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:r.createElement("div",{className:"drawer-handle"},r.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Te=Ae,Re=Te,Ge=i("V/uB"),Ue=i.n(Ge),nt=i("BGR+"),Le=i("H84U"),le=i("CWQg"),Xe=function(ye,Ee){var Ce={};for(var ue in ye)Object.prototype.hasOwnProperty.call(ye,ue)&&Ee.indexOf(ue)<0&&(Ce[ue]=ye[ue]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ue=Object.getOwnPropertySymbols(ye);ge<ue.length;ge++)Ee.indexOf(ue[ge])<0&&Object.prototype.propertyIsEnumerable.call(ye,ue[ge])&&(Ce[ue[ge]]=ye[ue[ge]]);return Ce},pe=r.createContext(null),Z=Object(le.a)("top","right","bottom","left"),Y={distance:180},ne=function(ye){a()(Ce,ye);var Ee=l()(Ce);function Ce(){var ue;return f()(this,Ce),ue=Ee.apply(this,arguments),ue.state={push:!1},ue.push=function(){ue.props.push&&ue.setState({push:!0})},ue.pull=function(){ue.props.push&&ue.setState({push:!1})},ue.onDestroyTransitionEnd=function(){var ge=ue.getDestroyOnClose();if(!ge)return;ue.props.visible||(ue.destroyClose=!0,ue.forceUpdate())},ue.getDestroyOnClose=function(){return ue.props.destroyOnClose&&!ue.props.visible},ue.getPushDistance=function(){var ge=ue.props.push,Oe;return typeof ge=="boolean"?Oe=ge?Y.distance:0:Oe=ge.distance,parseFloat(String(Oe||0))},ue.getPushTransform=function(ge){var Oe=ue.getPushDistance();if(ge==="left"||ge==="right")return"translateX(".concat(ge==="left"?Oe:-Oe,"px)");if(ge==="top"||ge==="bottom")return"translateY(".concat(ge==="top"?Oe:-Oe,"px)")},ue.getRcDrawerStyle=function(){var ge=ue.props,Oe=ge.zIndex,Je=ge.placement,lt=ge.mask,tt=ge.style,ke=ue.state.push,st=lt?{}:ue.getOffsetStyle();return v()(v()({zIndex:Oe,transform:ke?ue.getPushTransform(Je):void 0},st),tt)},ue.renderBody=function(){var ge=ue.props,Oe=ge.bodyStyle,Je=ge.drawerStyle,lt=ge.prefixCls,tt=ge.visible;if(ue.destroyClose&&!tt)return null;ue.destroyClose=!1;var ke={},st=ue.getDestroyOnClose();return st&&(ke.opacity=0,ke.transition="opacity .3s"),r.createElement("div",{className:"".concat(lt,"-wrapper-body"),style:v()(v()({},ke),Je),onTransitionEnd:ue.onDestroyTransitionEnd},ue.renderHeader(),r.createElement("div",{className:"".concat(lt,"-body"),style:Oe},ue.props.children),ue.renderFooter())},ue.renderProvider=function(ge){return ue.parentDrawer=ge,r.createElement(Le.a,null,function(Oe){var Je=Oe.getPopupContainer,lt=Oe.getPrefixCls,tt=ue.props,ke=tt.prefixCls,st=tt.placement,Ve=tt.className,Ot=tt.mask,Ut=tt.direction,ir=tt.visible,lr=Xe(tt,["prefixCls","placement","className","mask","direction","visible"]),Sr=lt("select",ke),mt=E()(Ve,p()({"no-mask":!Ot},"".concat(Sr,"-rtl"),Ut==="rtl")),or=Ot?ue.getOffsetStyle():{};return r.createElement(pe.Provider,{value:n()(ue)},r.createElement(Re,v()({handler:!1},Object(nt.default)(lr,["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:lr.getContainer===void 0&&Je?function(){return Je(document.body)}:lr.getContainer},or,{prefixCls:Sr,open:ir,showMask:Ot,placement:st,style:ue.getRcDrawerStyle(),className:mt}),ue.renderBody()))})},ue}return u()(Ce,[{key:"componentDidMount",value:function(){var ge=this.props.visible;ge&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(ge){var Oe=this.props.visible;ge.visible!==Oe&&this.parentDrawer&&(Oe?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var ge=this.props,Oe=ge.placement,Je=ge.width,lt=ge.height,tt=ge.visible,ke=ge.mask;if(!tt&&!ke)return{};var st={};return Oe==="left"||Oe==="right"?st.width=Je:st.height=lt,st}},{key:"renderHeader",value:function(){var ge=this.props,Oe=ge.title,Je=ge.prefixCls,lt=ge.closable,tt=ge.headerStyle;if(!Oe&&!lt)return null;var ke=Oe?"".concat(Je,"-header"):"".concat(Je,"-header-no-title");return r.createElement("div",{className:ke,style:tt},Oe&&r.createElement("div",{className:"".concat(Je,"-title")},Oe),lt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var ge=this.props,Oe=ge.footer,Je=ge.footerStyle,lt=ge.prefixCls;if(!Oe)return null;var tt="".concat(lt,"-footer");return r.createElement("div",{className:tt,style:Je},Oe)}},{key:"renderCloseIcon",value:function(){var ge=this.props,Oe=ge.closable,Je=ge.closeIcon,lt=Je===void 0?r.createElement(Ue.a,null):Je,tt=ge.prefixCls,ke=ge.onClose;return Oe&&r.createElement("button",{onClick:ke,"aria-label":"Close",className:"".concat(tt,"-close"),style:{"--scroll-bar":"".concat(Object(C.a)(),"px")}},lt)}},{key:"render",value:function(){return r.createElement(pe.Consumer,null,this.renderProvider)}}]),Ce}(r.Component);ne.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var ce=D.a=Object(Le.c)({prefixCls:"drawer"})(ne)},"/y7N":function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("6GrX"),v=i("7aKB"),m=i("Fofx"),f=i("aX7z"),d=i("+rIm");function u(c){var h=c.get("type"),g=c.getModel(h+"Style"),A;return h==="line"?(A=g.getLineStyle(),A.fill=null):h==="shadow"&&(A=g.getAreaStyle(),A.stroke=null),A}function o(c,h,g,A,b){var w=g.get("value"),x=t(w,h.axis,h.ecModel,g.get("seriesDataIndices"),{precision:g.get("label.precision"),formatter:g.get("label.formatter")}),T=g.getModel("label"),_=v.normalizeCssArray(T.get("padding")||0),E=T.getFont(),C=S.getBoundingRect(x,E),I=b.position,O=C.width+_[1]+_[3],F=C.height+_[0]+_[2],R=b.align;R==="right"&&(I[0]-=O),R==="center"&&(I[0]-=O/2);var B=b.verticalAlign;B==="bottom"&&(I[1]-=F),B==="middle"&&(I[1]-=F/2),n(I,O,F,A);var P=T.get("backgroundColor");(!P||P==="auto")&&(P=h.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:O,height:F,r:T.get("borderRadius")},position:I.slice(),style:{text:x,textFont:E,textFill:T.getTextColor(),textPosition:"inside",textPadding:_,fill:P,stroke:T.get("borderColor")||"transparent",lineWidth:T.get("borderWidth")||0,shadowBlur:T.get("shadowBlur"),shadowColor:T.get("shadowColor"),shadowOffsetX:T.get("shadowOffsetX"),shadowOffsetY:T.get("shadowOffsetY")},z2:10}}function n(c,h,g,A){var b=A.getWidth(),w=A.getHeight();c[0]=Math.min(c[0]+h,b)-h,c[1]=Math.min(c[1]+g,w)-g,c[0]=Math.max(c[0],0),c[1]=Math.max(c[1],0)}function t(c,h,g,A,b){c=h.scale.parse(c);var w=h.scale.getLabel(c,{precision:b.precision}),x=b.formatter;if(x){var T={value:f.getAxisRawValue(h,c),axisDimension:h.dim,axisIndex:h.index,seriesData:[]};y.each(A,function(_){var E=g.getSeriesByIndex(_.seriesIndex),C=_.dataIndexInside,I=E&&E.getDataParams(C);I&&T.seriesData.push(I)}),y.isString(x)?w=x.replace("{value}",w):y.isFunction(x)&&(w=x(T))}return w}function a(c,h,g){var A=m.create();return m.rotate(A,A,g.rotation),m.translate(A,A,g.position),p.applyTransform([c.dataToCoord(h),(g.labelOffset||0)+(g.labelDirection||1)*(g.labelMargin||0)],A)}function e(c,h,g,A,b,w){var x=d.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),o(h,A,b,w,{position:a(A.axis,c,g),align:x.textAlign,verticalAlign:x.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 r(c,h,g){return g=g||0,{x:c[g],y:c[1-g],width:h[g],height:h[1-g]}}function s(c,h,g,A,b,w){return{cx:c,cy:h,r0:g,r:A,startAngle:b,endAngle:w,clockwise:!0}}D.buildElStyle=u,D.buildLabelElOption=o,D.getValueLabel=t,D.getTransformedPosition=a,D.buildCartesianSingleLabelElOption=e,D.makeLineShape=l,D.makeRectShape=r,D.makeSectorShape=s},"/zsF":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("bE4E"),v=i.n(S)},"0/Rx":function(k,D){function i(y){return{seriesType:y,reset:function(p,S){var v=S.findComponents({mainType:"legend"});if(!v||!v.length)return;var m=p.getData();m.filterSelf(function(f){for(var d=m.getName(f),u=0;u<v.length;u++)if(!v[u].isSelected(d))return!1;return!0})}}}k.exports=i},"01d+":function(k,D,i){var y=i("bYtY"),p=y.each,S=i("HF/U"),v=S.simpleLayout,m=S.simpleLayoutEdge;function f(d,u){d.eachSeriesByType("graph",function(o){var n=o.get("layout"),t=o.coordinateSystem;if(t&&t.type!=="view"){var a=o.getData(),e=[];p(t.dimensions,function(g){e=e.concat(a.mapDimension(g,!0))});for(var l=0;l<a.count();l++){for(var r=[],s=!1,c=0;c<e.length;c++){var h=a.get(e[c],l);isNaN(h)||(s=!0),r.push(h)}s?a.setItemLayout(l,t.dataToPoint(r)):a.setItemLayout(l,[NaN,NaN])}m(a.graph)}else(!n||n==="none")&&v(o)})}k.exports=f},"03A+":function(k,D,i){var y=i("JTzB"),p=i("ExA7"),S=Object.prototype,v=S.hasOwnProperty,m=S.propertyIsEnumerable,f=y(function(){return arguments}())?y:function(d){return p(d)&&v.call(d,"callee")&&!m.call(d,"callee")};k.exports=f},"06DH":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("Kagy"),v=i("IUWy"),m=S.toolbox.magicType,f="__ec_magicType_stack__";function d(a){this.model=a}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:p.clone(m.title),option:{},seriesIndex:{}};var u=d.prototype;u.getIcons=function(){var a=this.model,e=a.get("icon"),l={};return p.each(a.get("type"),function(r){e[r]&&(l[r]=e[r])}),l};var o={line:function(a,e,l,r){if(a==="bar")return p.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.line")||{},!0)},bar:function(a,e,l,r){if(a==="line")return p.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},r.get("option.bar")||{},!0)},stack:function(a,e,l,r){var s=l.get("stack")===f;if(a==="line"||a==="bar")return r.setIconStatus("stack",s?"normal":"emphasis"),p.merge({id:e,stack:s?"":f},r.get("option.stack")||{},!0)}},n=[["line","bar"],["stack"]];u.onclick=function(a,e,l){var r=this.model,s=r.get("seriesIndex."+l);if(!o[l])return;var c={series:[]},h=function(b){var w=b.subType,x=b.id,T=o[l](w,x,b,r);T&&(p.defaults(T,b.option),c.series.push(T));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(l==="line"||l==="bar")){var E=_.getAxesByScale("ordinal")[0];if(E){var C=E.dim,I=C+"Axis",O=a.queryComponents({mainType:I,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],F=O.componentIndex;c[I]=c[I]||[];for(var R=0;R<=F;R++)c[I][F]=c[I][F]||{};c[I][F].boundaryGap=l==="bar"}}};p.each(n,function(b){p.indexOf(b,l)>=0&&p.each(b,function(w){r.setIconStatus(w,"normal")})}),r.setIconStatus(l,"emphasis"),a.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},h);var g;if(l==="stack"){var A=c.series&&c.series[0]&&c.series[0].stack===f;g=A?p.merge({stack:m.title.tiled},m.title):p.clone(m.title)}e.dispatchAction({type:"changeMagicType",currentType:l,newOption:c,newTitle:g,featureName:"magicType"})},y.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)}),v.register("magicType",d);var t=d;k.exports=t},"06Qe":function(k,D,i){var y=i("ItGF"),p="urn:schemas-microsoft-com:vml",S=typeof window=="undefined"?null:window,v=!1,m=S&&S.document;function f(o){return d(o)}var d;if(m&&!y.canvasSupported)try{!m.namespaces.zrvml&&m.namespaces.add("zrvml",p),d=function(n){return m.createElement("<zrvml:"+n+' class="zrvml">')}}catch(o){d=function(t){return m.createElement("<"+t+' xmlns="'+p+'" class="zrvml">')}}function u(){if(v||!m)return;v=!0;var o=m.styleSheets;o.length<31?m.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):o[0].addRule(".zrvml","behavior:url(#default#VML)")}D.doc=m,D.createNode=f,D.initVML=u},"09Wf":function(k,D,i){"use strict";i.d(D,"b",function(){return p}),i.d(D,"a",function(){return S});var y=i("CWQg"),p=Object(y.a)("success","processing","error","default","warning"),S=Object(y.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(k,D,i){var y=i("T4UG"),p=i("I3/A"),S=i("7aKB"),v=S.encodeHTML,m=i("Qxkt"),f=i("Tghj"),d=f.__DEV__,u=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(n,t){for(var a=n.edges||n.links,e=n.data||n.nodes,l=n.levels,r=this.levelModels={},s=0;s<l.length;s++)l[s].depth!=null&&l[s].depth>=0&&(r[l[s].depth]=new m(l[s],this,t));if(e&&a){var c=p(e,a,this,!0,h);return c.data}function h(g,A){g.wrapMethod("getItemModel",function(b,w){return b.customizeGetParent(function(x){var T=this.parentModel,_=T.getData().getItemLayout(w).depth,E=T.levelModels[_];return E||this.parentModel}),b}),A.wrapMethod("getItemModel",function(b,w){return b.customizeGetParent(function(x){var T=this.parentModel,_=T.getGraph().getEdgeByIndex(w),E=_.node1.getLayout().depth,C=T.levelModels[E];return C||this.parentModel}),b})}},setNodePosition:function(n,t){var a=this.option.data[n];a.localX=t[0],a.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(n,t,a){if(a==="edge"){var e=this.getDataParams(n,a),l=e.data,r=l.source+" -- "+l.target;return e.value&&(r+=" : "+e.value),v(r)}else if(a==="node"){var s=this.getGraph().getNodeByIndex(n),c=s.getLayout().value,h=this.getDataParams(n,a).data.name;if(c)var r=h+" : "+c;return v(r)}return u.superCall(this,"formatTooltip",n,t)},optionUpdated:function(){var n=this.option;n.focusNodeAdjacency===!0&&(n.focusNodeAdjacency="allEdges")},getDataParams:function(n,t){var a=u.superCall(this,"getDataParams",n,t);if(a.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(n),l=e.getLayout().value;a.value=l}return a},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}}),o=u;k.exports=o},"0Cz8":function(k,D,i){var y=i("Xi7e"),p=i("ebwN"),S=i("e4Nc"),v=200;function m(f,d){var u=this.__data__;if(u instanceof y){var o=u.__data__;if(!p||o.length<v-1)return o.push([f,d]),this.size=++u.size,this;u=this.__data__=new S(o)}return u.set(f,d),this.size=u.size,this}k.exports=m},"0HBW":function(k,D,i){var y=i("ProS"),p=i("bYtY");i("Hxpc"),i("7uqq"),i("dmGj"),i("SehX");function S(v,m){m.update="updateView",y.registerAction(m,function(f,d){var u={};return d.eachComponent({mainType:"geo",query:f},function(o){o[v](f.name);var n=o.coordinateSystem;p.each(n.regions,function(t){u[t.name]=o.isSelected(t.name)||!1})}),{selected:u,name:f.name}})}S("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),S("select",{type:"geoSelect",event:"geoselected"}),S("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(k,D,i){var y=i("bYtY"),p=i("+TT/"),S=i("OELB"),v=i("IDmD"),m=864e5;function f(o,n,t){this._model=o}f.prototype={constructor:f,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(o){o=S.parseDate(o);var n=o.getFullYear(),t=o.getMonth()+1;t=t<10?"0"+t:t;var a=o.getDate();a=a<10?"0"+a:a;var e=o.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:n,m:t,d:a,day:e,time:o.getTime(),formatedDate:n+"-"+t+"-"+a,date:o}},getNextNDay:function(o,n){return n=n||0,n===0?this.getDateInfo(o):(o=new Date(this.getDateInfo(o).time),o.setDate(o.getDate()+n),this.getDateInfo(o))},update:function(o,n){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,a=["width","height"],e=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),r=this._orient==="horizontal"?[t,7]:[7,t];y.each([0,1],function(g){h(e,g)&&(l[a[g]]=e[g]*r[g])});var s={width:n.getWidth(),height:n.getHeight()},c=this._rect=p.getLayoutRect(l,s);y.each([0,1],function(g){h(e,g)||(e[g]=c[a[g]]/r[g])});function h(g,A){return g[A]!=null&&g[A]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(o,n){y.isArray(o)&&(o=o[0]),n==null&&(n=!0);var t=this.getDateInfo(o),a=this._rangeInfo,e=t.formatedDate;if(n&&!(t.time>=a.start.time&&t.time<a.end.time+m))return[NaN,NaN];var l=t.day,r=this._getRangeInfo([a.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]},pointToData:function(o){var n=this.pointToDate(o);return n&&n.time},dataToRect:function(o,n){var t=this.dataToPoint(o,n);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(o){var n=Math.floor((o[0]-this._rect.x)/this._sw)+1,t=Math.floor((o[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,n-1,a):this._getDateByWeeksAndDay(n,t-1,a)},convertToPixel:y.curry(d,"dataToPoint"),convertFromPixel:y.curry(d,"pointToData"),_initRangeOption:function(){var o=this._model.get("range"),n=o;if(y.isArray(n)&&n.length===1&&(n=n[0]),/^\d{4}$/.test(n)&&(o=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var t=this.getDateInfo(n),a=t.date;a.setMonth(a.getMonth()+1);var e=this.getNextNDay(a,-1);o=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(o=[n,n]);var l=this._getRangeInfo(o);return l.start.time>l.end.time&&o.reverse(),o},_getRangeInfo:function(o){o=[this.getDateInfo(o[0]),this.getDateInfo(o[1])];var n;o[0].time>o[1].time&&(n=!0,o.reverse());var t=Math.floor(o[1].time/m)-Math.floor(o[0].time/m)+1,a=new Date(o[0].time),e=a.getDate(),l=o[1].date.getDate();a.setDate(e+t-1);var r=a.getDate();if(r!==l)for(var s=a.getTime()-o[1].time>0?1:-1;(r=a.getDate())!==l&&(a.getTime()-o[1].time)*s>0;)t-=s,a.setDate(r-s);var c=Math.floor((t+o[0].day+6)/7),h=n?-c+1:c-1;return n&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:t,weeks:c,nthWeek:h,fweek:o[0].day,lweek:o[1].day}},_getDateByWeeksAndDay:function(o,n,t){var a=this._getRangeInfo(t);if(o>a.weeks||o===0&&n<a.fweek||o===a.weeks&&n>a.lweek)return!1;var e=(o-1)*7-a.fweek+n,l=new Date(a.start.time);return l.setDate(a.start.d+e),this.getDateInfo(l)}},f.dimensions=f.prototype.dimensions,f.getDimensionsInfo=f.prototype.getDimensionsInfo,f.create=function(o,n){var t=[];return o.eachComponent("calendar",function(a){var e=new f(a,o,n);t.push(e),a.coordinateSystem=e}),o.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=t[a.get("calendarIndex")||0])}),t};function d(o,n,t,a){var e=t.calendarModel,l=t.seriesModel,r=e?e.coordinateSystem:l?l.coordinateSystem:null;return r===this?r[o](a):null}v.register("calendar",f);var u=f;k.exports=u},"0NbB":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CaretDownOutlined";var d=D.a=p.forwardRef(f)},"0V0F":function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.each;function v(f){var d=p();f.eachSeries(function(u){var o=u.get("stack");if(o){var n=d.get(o)||d.set(o,[]),t=u.getData(),a={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(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;n.length&&t.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}}),d.each(m)}function m(f){S(f,function(d,u){var o=[],n=[NaN,NaN],t=[d.stackResultDimension,d.stackedOverDimension],a=d.data,e=d.isStackedByIndex,l=a.map(t,function(r,s,c){var h=a.get(d.stackedDimension,c);if(isNaN(h))return n;var g,A;e?A=a.getRawIndex(c):g=a.get(d.stackedByDimension,c);for(var b=NaN,w=u-1;w>=0;w--){var x=f[w];if(e||(A=x.data.rawIndexOf(x.stackedByDimension,g)),A>=0){var T=x.data.getByRawIndex(x.stackResultDimension,A);if(h>=0&&T>0||h<=0&&T<0){h+=T,b=T;break}}}return o[0]=h,o[1]=b,o});a.hostModel.setData(l),d.data=l})}k.exports=v},"0XgM":function(k,D,i){},"0fbx":function(k,D,i){},"0o9m":function(k,D,i){var y=i("ProS");i("hNWo"),i("RlCK"),i("XpcN");var p=i("kDyi"),S=i("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,p),S.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(k,D,i){var y=i("ProS");y.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),y.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(k,D){var i=arguments[3],y=arguments[4],p=arguments[5],S=JSON.stringify;k.exports=function(v,m){for(var f,d=Object.keys(p),u=0,o=d.length;u<o;u++){var n=d[u],t=p[n].exports;if(t===v||t&&t.default===v){f=n;break}}if(!f){f=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var a={},u=0,o=d.length;u<o;u++){var n=d[u];a[n]=n}y[f]=["function(require,module,exports){"+v+"(self); }",a]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[f]=f,y[e]=["function(require,module,exports){var f = require("+S(f)+");(f.default ? f.default : f)(self);}",l];var r={};s(e);function s(w){r[w]=!0;for(var x in y[w][1]){var T=y[w][1][x];r[T]||s(T)}}var c="("+i+")({"+Object.keys(r).map(function(w){return S(w)+":["+y[w][0]+","+S(y[w][1])+"]"}).join(",")+"},{},["+S(e)+"])",h=window.URL||window.webkitURL||window.mozURL||window.msURL,g=new Blob([c],{type:"text/javascript"});if(m&&m.bare)return g;var A=h.createObjectURL(g),b=new Worker(A);return b.objectURL=A,b}},"0s+r":function(k,D,i){var y=i("bYtY"),p=i("QBsz"),S=i("y23F"),v=i("H6uX"),m=i("YH21"),f=i("C0SR"),d="silent";function u(s,c,h){return{type:s,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:o}}function o(){m.stop(this.event)}function n(){}n.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],a=function(c,h,g,A){v.call(this),this.storage=c,this.painter=h,this.painterRoot=A,g=g||new n,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,S.call(this),this.setHandlerProxy(g)};a.prototype={constructor:a,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,A=l(this,h,g),b=this._hovered,w=b.target;w&&!w.__zr&&(b=this.findHover(b.x,b.y),w=b.target);var x=this._hovered=A?{x:h,y:g}:this.findHover(h,g),T=x.target,_=this.proxy;_.setCursor&&_.setCursor(T?T.cursor:"default"),w&&T!==w&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(x,"mousemove",c),T&&T!==w&&this.dispatchToElement(x,"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 A=c.target;if(A&&A.silent)return;for(var b="on"+h,w=u(h,c,g);A&&!(A[b]&&(w.cancelBubble=A[b].call(A,w)),A.trigger(h,w),A=A.parent,w.cancelBubble););w.cancelBubble||(this.trigger(h,w),this.painter&&this.painter.eachOtherLayer(function(x){typeof x[b]=="function"&&x[b].call(x,w),x.trigger&&x.trigger(h,w)}))},findHover:function(c,h,g){for(var A=this.storage.getDisplayList(),b={x:c,y:h},w=A.length-1;w>=0;w--){var x;if(A[w]!==g&&!A[w].ignore&&(x=e(A[w],c,h))&&(!b.topTarget&&(b.topTarget=A[w]),x!==d)){b.target=A[w];break}}return b},processGesture:function(c,h){this._gestureMgr||(this._gestureMgr=new f);var g=this._gestureMgr;h==="start"&&g.clear();var A=g.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(h==="end"&&g.clear(),A){var b=A.type;c.gestureEvent=b,this.dispatchToElement({target:A.target},b,A.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){a.prototype[s]=function(c){var h=c.zrX,g=c.zrY,A=l(this,h,g),b,w;if((s!=="mouseup"||!A)&&(b=this.findHover(h,g),w=b.target),s==="mousedown")this._downEl=w,this._downPoint=[c.zrX,c.zrY],this._upEl=w;else if(s==="mouseup")this._upEl=w;else if(s==="click"){if(this._downEl!==this._upEl||!this._downPoint||p.dist(this._downPoint,[c.zrX,c.zrY])>4)return;this._downPoint=null}this.dispatchToElement(b,s,c)}});function e(s,c,h){if(s[s.rectHover?"rectContain":"contain"](c,h)){for(var g=s,A;g;){if(g.clipPath&&!g.clipPath.contain(c,h))return!1;g.silent&&(A=!0),g=g.parent}return A?d:!0}return!1}function l(s,c,h){var g=s.painter;return c<0||c>g.getWidth()||h<0||h>g.getHeight()}y.mixin(a,v),y.mixin(a,S);var r=a;k.exports=r},"0ycA":function(k,D){function i(){return[]}k.exports=i},"10cm":function(k,D,i){var y=i("ProS"),p=i("2B6p"),S=p.updateCenterAndZoom;i("0qV/");var v={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(v,function(m,f){f.eachComponent({mainType:"series",query:m},function(d){var u=d.coordinateSystem,o=S(u,m);d.setCenter&&d.setCenter(o.center),d.setZoom&&d.setZoom(o.zoom)})})},"15/o":function(k,D,i){},"19Vz":function(k,D,i){(function(y){y(i("VrN/"))})(function(y){y.defineOption("placeholder","",function(u,o,n){var t=n&&n!=y.Init;if(o&&!t)u.on("blur",m),u.on("change",f),u.on("swapDoc",f),y.on(u.getInputField(),"compositionupdate",u.state.placeholderCompose=function(){v(u)}),f(u);else if(!o&&t){u.off("blur",m),u.off("change",f),u.off("swapDoc",f),y.off(u.getInputField(),"compositionupdate",u.state.placeholderCompose),p(u);var a=u.getWrapperElement();a.className=a.className.replace(" CodeMirror-empty","")}o&&!u.hasFocus()&&m(u)});function p(u){u.state.placeholder&&(u.state.placeholder.parentNode.removeChild(u.state.placeholder),u.state.placeholder=null)}function S(u){p(u);var o=u.state.placeholder=document.createElement("pre");o.style.cssText="height: 0; overflow: visible",o.style.direction=u.getOption("direction"),o.className="CodeMirror-placeholder CodeMirror-line-like";var n=u.getOption("placeholder");typeof n=="string"&&(n=document.createTextNode(n)),o.appendChild(n),u.display.lineSpace.insertBefore(o,u.display.lineSpace.firstChild)}function v(u){setTimeout(function(){var o=!1,n=u.getInputField();n.nodeName=="TEXTAREA"?o=!n.value:u.lineCount()==1&&(o=!/[^\u200b]/.test(n.querySelector(".CodeMirror-line").textContent)),o?S(u):p(u)},20)}function m(u){d(u)&&S(u)}function f(u){var o=u.getWrapperElement(),n=d(u);o.className=o.className.replace(" CodeMirror-empty","")+(n?" CodeMirror-empty":""),n?S(u):p(u)}function d(u){return u.lineCount()===1&&u.getLine(0)===""}})},"1Jh7":function(k,D,i){var y=i("y+Vt"),p=i("T6xi"),S=y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,f){p.buildPath(m,f,!1)}});k.exports=S},"1LEl":function(k,D,i){var y=i("ProS"),p=i("F9bG"),S=y.extendComponentView({type:"axisPointer",render:function(m,f,d){var u=f.getComponent("tooltip"),o=m.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click";p.register("axisPointer",d,function(n,t,a){o!=="none"&&(n==="leave"||o.indexOf(n)>=0)&&a({type:"updateAxisPointer",currTrigger:n,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(m,f){p.unregister(f.getZr(),"axisPointer"),S.superApply(this._model,"remove",arguments)},dispose:function(m,f){p.unregister("axisPointer",f),S.superApply(this._model,"dispose",arguments)}}),v=S;k.exports=v},"1MYJ":function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var v=this.__dirtyPath,m=this.shape.paths,f=0;f<m.length;f++)v=v||m[f].__dirtyPath;this.__dirtyPath=v,this.__dirty=this.__dirty||v},beforeBrush:function(){this._updatePathDirty();for(var v=this.shape.paths||[],m=this.getGlobalScale(),f=0;f<v.length;f++)v[f].path||v[f].createPathProxy(),v[f].path.setScale(m[0],m[1],v[f].segmentIgnoreThreshold)},buildPath:function(v,m){for(var f=m.paths||[],d=0;d<f.length;d++)f[d].buildPath(v,f[d].shape,!0)},afterBrush:function(){for(var v=this.shape.paths||[],m=0;m<v.length;m++)v[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});k.exports=p},"1NG9":function(k,D,i){var y=i("y+Vt"),p=i("QBsz"),S=i("iXp4"),v=p.min,m=p.max,f=p.scaleAndAdd,d=p.copy,u=[],o=[],n=[];function t(h){return isNaN(h[0])||isNaN(h[1])}function a(h,g,A,b,w,x,T,_,E,C,I){return C==="none"||!C?l.apply(this,arguments):e.apply(this,arguments)}function e(h,g,A,b,w,x,T,_,E,C,I){for(var O=0,F=A,R=0;R<b;R++){var B=g[F];if(F>=w||F<0)break;if(t(B)){if(I){F+=x;continue}break}if(F===A)h[x>0?"moveTo":"lineTo"](B[0],B[1]);else if(E>0){var P=g[O],X=C==="y"?1:0,M=(B[X]-P[X])*E;d(o,P),o[X]=P[X]+M,d(n,B),n[X]=B[X]-M,h.bezierCurveTo(o[0],o[1],n[0],n[1],B[0],B[1])}else h.lineTo(B[0],B[1]);O=F,F+=x}return R}function l(h,g,A,b,w,x,T,_,E,C,I){for(var O=0,F=A,R=0;R<b;R++){var B=g[F];if(F>=w||F<0)break;if(t(B)){if(I){F+=x;continue}break}if(F===A)h[x>0?"moveTo":"lineTo"](B[0],B[1]),d(o,B);else if(E>0){var P=F+x,X=g[P];if(I)for(;X&&t(g[P]);)P+=x,X=g[P];var M=.5,z=g[O],X=g[P];if(!X||t(X))d(n,B);else{t(X)&&!I&&(X=B),p.sub(u,X,z);var W,H;if(C==="x"||C==="y"){var V=C==="x"?0:1;W=Math.abs(B[V]-z[V]),H=Math.abs(B[V]-X[V])}else W=p.dist(B,z),H=p.dist(B,X);M=H/(H+W),f(n,B,u,-E*(1-M))}v(o,o,_),m(o,o,T),v(n,n,_),m(n,n,T),h.bezierCurveTo(o[0],o[1],n[0],n[1],B[0],B[1]),f(o,B,u,E*M)}else h.lineTo(B[0],B[1]);O=F,F+=x}return R}function r(h,g){var A=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var w=0;w<h.length;w++){var x=h[w];x[0]<A[0]&&(A[0]=x[0]),x[1]<A[1]&&(A[1]=x[1]),x[0]>b[0]&&(b[0]=x[0]),x[1]>b[1]&&(b[1]=x[1])}return{min:g?A:b,max:g?b:A}}var s=y.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:S(y.prototype.brush),buildPath:function(h,g){var A=g.points,b=0,w=A.length,x=r(A,g.smoothConstraint);if(g.connectNulls){for(;w>0&&t(A[w-1]);w--);for(;b<w&&t(A[b]);b++);}for(;b<w;)b+=a(h,A,b,w,w,1,x.min,x.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:S(y.prototype.brush),buildPath:function(h,g){var A=g.points,b=g.stackedOnPoints,w=0,x=A.length,T=g.smoothMonotone,_=r(A,g.smoothConstraint),E=r(b,g.smoothConstraint);if(g.connectNulls){for(;x>0&&t(A[x-1]);x--);for(;w<x&&t(A[w]);w++);}for(;w<x;){var C=a(h,A,w,x,x,1,_.min,_.max,g.smooth,T,g.connectNulls);a(h,b,w+C-1,C,x,-1,E.min,E.max,g.stackedOnSmooth,T,g.connectNulls),w+=C+1,h.closePath()}}});D.Polyline=s,D.Polygon=c},"1RvN":function(k,D){var i=function(){this.head=null,this.tail=null,this._len=0},y=i.prototype;y.insert=function(f){var d=new p(f);return this.insertEntry(d),d},y.insertEntry=function(f){this.head?(this.tail.next=f,f.prev=this.tail,f.next=null,this.tail=f):this.head=this.tail=f,this._len++},y.remove=function(f){var d=f.prev,u=f.next;d?d.next=u:this.head=u,u?u.prev=d:this.tail=d,f.next=f.prev=null,this._len--},y.len=function(){return this._len},y.clear=function(){this.head=this.tail=null,this._len=0};var p=function(d){this.value=d,this.next,this.prev},S=function(d){this._list=new i,this._map={},this._maxSize=d||10,this._lastRemovedEntry=null},v=S.prototype;v.put=function(f,d){var u=this._list,o=this._map,n=null;if(o[f]==null){var t=u.len(),a=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=u.head;u.remove(e),delete o[e.key],n=e.value,this._lastRemovedEntry=e}a?a.value=d:a=new p(d),a.key=f,u.insertEntry(a),o[f]=a}return n},v.get=function(f){var d=this._map[f],u=this._list;if(d!=null)return d!==u.tail&&(u.remove(d),u.insertEntry(d)),d.value},v.clear=function(){this._list.clear(),this._map={}};var m=S;k.exports=m},"1bdT":function(k,D,i){var y=i("3gBT"),p=i("H6uX"),S=i("DN4a"),v=i("vWvF"),m=i("bYtY"),f=function(o){S.call(this,o),p.call(this,o),v.call(this,o),this.id=o.id||y()};f.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(o,n){switch(this.draggable){case"horizontal":n=0;break;case"vertical":o=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=o,t[5]+=n,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(o,n){},attrKV:function(o,n){if(o==="position"||o==="scale"||o==="origin"){if(n){var t=this[o];t||(t=this[o]=[]),t[0]=n[0],t[1]=n[1]}}else this[o]=n},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(o,n){if(typeof o=="string")this.attrKV(o,n);else if(m.isObject(o))for(var t in o)o.hasOwnProperty(t)&&this.attrKV(t,o[t]);return this.dirty(!1),this},setClipPath:function(o){var n=this.__zr;n&&o.addSelfToZr(n),this.clipPath&&this.clipPath!==o&&this.removeClipPath(),this.clipPath=o,o.__zr=n,o.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var o=this.clipPath;o&&(o.__zr&&o.removeSelfFromZr(o.__zr),o.__zr=null,o.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(o){this.__zr=o;var n=this.animators;if(n)for(var t=0;t<n.length;t++)o.animation.addAnimator(n[t]);this.clipPath&&this.clipPath.addSelfToZr(o)},removeSelfFromZr:function(o){this.__zr=null;var n=this.animators;if(n)for(var t=0;t<n.length;t++)o.animation.removeAnimator(n[t]);this.clipPath&&this.clipPath.removeSelfFromZr(o)}},m.mixin(f,v),m.mixin(f,S),m.mixin(f,p);var d=f;k.exports=d},"1dTM":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("GQ8N"),p=C(i("Lo0S")),S=i("VSMT"),v=i("GdRQ"),m=i("SZEN"),f=i("vewr"),d=_(i("YJ9k")),u=_(i("MZdM")),o=_(i("ItS6")),n=_(i("whVF")),t=_(i("Fv0C")),a=_(i("LCi9")),e=_(i("rwxt")),l=_(i("Mmt2")),r=_(i("iUHT")),s=_(i("mHUz")),c=_(i("P2ho")),h=i("NBmB");i("mdZa");var g=_(i("34/K")),A=_(i("hXwI")),b=_(i("SgaC")),w=_(i("3690")),x=_(i("8K/p")),T=_(i("xO64"));function _(ce){return ce&&ce.__esModule?ce:{default:ce}}function E(){if(typeof WeakMap!="function")return null;var ce=new WeakMap;return E=function(){return ce},ce}function C(ce){if(ce&&ce.__esModule)return ce;if(ce===null||I(ce)!=="object"&&typeof ce!="function")return{default:ce};var ye=E();if(ye&&ye.has(ce))return ye.get(ce);var Ee={},Ce=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ue in ce)if(Object.prototype.hasOwnProperty.call(ce,ue)){var ge=Ce?Object.getOwnPropertyDescriptor(ce,ue):null;ge&&(ge.get||ge.set)?Object.defineProperty(Ee,ue,ge):Ee[ue]=ce[ue]}return Ee.default=ce,ye&&ye.set(ce,Ee),Ee}function I(ce){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(Ee){return typeof Ee}:I=function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},I(ce)}function O(ce,ye){if(!(ce instanceof ye))throw new TypeError("Cannot call a class as a function")}function F(ce,ye){for(var Ee=0;Ee<ye.length;Ee++){var Ce=ye[Ee];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(ce,Ce.key,Ce)}}function R(ce,ye,Ee){return ye&&F(ce.prototype,ye),Ee&&F(ce,Ee),ce}function B(ce,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");ce.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ce,writable:!0,configurable:!0}}),ye&&P(ce,ye)}function P(ce,ye){return P=Object.setPrototypeOf||function(Ce,ue){return Ce.__proto__=ue,Ce},P(ce,ye)}function X(ce){var ye=W();return function(){var Ce=H(ce),ue;if(ye){var ge=H(this).constructor;ue=Reflect.construct(Ce,arguments,ge)}else ue=Ce.apply(this,arguments);return M(this,ue)}}function M(ce,ye){return ye&&(I(ye)==="object"||typeof ye=="function")?ye:z(ce)}function z(ce){if(ce===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}function W(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ce){return!1}}function H(ce){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(Ee){return Ee.__proto__||Object.getPrototypeOf(Ee)},H(ce)}var V=3,Q="rgb(40, 40, 40)",G=17,ee=50,q=19,se=75,re=50,Ae=1e3,Te=50,Re=1,Ge=1<<1,Ue=1<<2,nt=1<<3,Le=1<<4,le=1<<24,Xe=1<<25,pe=1<<26,Z=1<<27,Y=1<<28,ne=function(ce){B(Ee,ce);var ye=X(Ee);function Ee(Ce,ue,ge){var Oe;if(O(this,Ee),!Ce)throw new Error("Must specify target");if(!ue)throw new Error("Must specify URL");Oe=ye.call(this),Oe._target=Ce,Oe._url=ue,ge=ge||{},Oe._rfbCredentials=ge.credentials||{},Oe._shared="shared"in ge?!!ge.shared:!0,Oe._repeaterID=ge.repeaterID||"",Oe._wsProtocols=ge.wsProtocols||[],Oe._rfbConnectionState="",Oe._rfbInitState="",Oe._rfbAuthScheme=-1,Oe._rfbCleanDisconnect=!0,Oe._rfbVersion=0,Oe._rfbMaxVersion=3.8,Oe._rfbTightVNC=!1,Oe._rfbVeNCryptState=0,Oe._rfbXvpVer=0,Oe._fbWidth=0,Oe._fbHeight=0,Oe._fbName="",Oe._capabilities={power:!1},Oe._supportsFence=!1,Oe._supportsContinuousUpdates=!1,Oe._enabledContinuousUpdates=!1,Oe._supportsSetDesktopSize=!1,Oe._screenID=0,Oe._screenFlags=0,Oe._qemuExtKeyEventSupported=!1,Oe._clipboardText=null,Oe._clipboardServerCapabilitiesActions={},Oe._clipboardServerCapabilitiesFormats={},Oe._sock=null,Oe._display=null,Oe._flushing=!1,Oe._keyboard=null,Oe._gestures=null,Oe._disconnTimer=null,Oe._resizeTimeout=null,Oe._mouseMoveTimer=null,Oe._decoders={},Oe._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Oe._mousePos={},Oe._mouseButtonMask=0,Oe._mouseLastMoveTime=0,Oe._viewportDragging=!1,Oe._viewportDragPos={},Oe._viewportHasMoved=!1,Oe._accumulatedWheelDeltaX=0,Oe._accumulatedWheelDeltaY=0,Oe._gestureLastTapTime=null,Oe._gestureFirstDoubleTapEv=null,Oe._gestureLastMagnitudeX=0,Oe._gestureLastMagnitudeY=0,Oe._eventHandlers={focusCanvas:Oe._focusCanvas.bind(z(Oe)),windowResize:Oe._windowResize.bind(z(Oe)),handleMouse:Oe._handleMouse.bind(z(Oe)),handleWheel:Oe._handleWheel.bind(z(Oe)),handleGesture:Oe._handleGesture.bind(z(Oe))},p.Debug(">> RFB.constructor"),Oe._screen=document.createElement("div"),Oe._screen.style.display="flex",Oe._screen.style.width="100%",Oe._screen.style.height="100%",Oe._screen.style.overflow="auto",Oe._screen.style.background=Q,Oe._canvas=document.createElement("canvas"),Oe._canvas.style.margin="auto",Oe._canvas.style.outline="none",Oe._canvas.style.flexShrink="0",Oe._canvas.width=0,Oe._canvas.height=0,Oe._canvas.tabIndex=-1,Oe._screen.appendChild(Oe._canvas),Oe._cursor=new e.default,Oe._cursorImage=Ee.cursors.none,Oe._decoders[h.encodings.encodingRaw]=new g.default,Oe._decoders[h.encodings.encodingCopyRect]=new A.default,Oe._decoders[h.encodings.encodingRRE]=new b.default,Oe._decoders[h.encodings.encodingHextile]=new w.default,Oe._decoders[h.encodings.encodingTight]=new x.default,Oe._decoders[h.encodings.encodingTightPNG]=new T.default;try{Oe._display=new u.default(Oe._canvas)}catch(Je){throw p.Error("Display exception: "+Je),Je}return Oe._display.onflush=Oe._onFlush.bind(z(Oe)),Oe._keyboard=new t.default(Oe._canvas),Oe._keyboard.onkeyevent=Oe._handleKeyEvent.bind(z(Oe)),Oe._gestures=new a.default,Oe._sock=new l.default,Oe._sock.on("message",function(){Oe._handleMessage()}),Oe._sock.on("open",function(){Oe._rfbConnectionState==="connecting"&&Oe._rfbInitState===""?(Oe._rfbInitState="ProtocolVersion",p.Debug("Starting VNC handshake")):Oe._fail("Unexpected server connection while "+Oe._rfbConnectionState)}),Oe._sock.on("close",function(Je){p.Debug("WebSocket on-close event");var lt="";Je.code&&(lt="(code: "+Je.code,Je.reason&&(lt+=", reason: "+Je.reason),lt+=")");switch(Oe._rfbConnectionState){case"connecting":Oe._fail("Connection closed "+lt);break;case"connected":Oe._updateConnectionState("disconnecting"),Oe._updateConnectionState("disconnected");break;case"disconnecting":Oe._updateConnectionState("disconnected");break;case"disconnected":Oe._fail("Unexpected server disconnect when already disconnected "+lt);break;default:Oe._fail("Unexpected server disconnect before connecting "+lt);break}Oe._sock.off("close")}),Oe._sock.on("error",function(Je){return p.Warn("WebSocket on-error event")}),setTimeout(Oe._updateConnectionState.bind(z(Oe),"connecting")),p.Debug("<< RFB.constructor"),Oe.dragViewport=!1,Oe.focusOnClick=!0,Oe._viewOnly=!1,Oe._clipViewport=!1,Oe._scaleViewport=!1,Oe._resizeSession=!1,Oe._showDotCursor=!1,ge.showDotCursor!==void 0&&(p.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Oe._showDotCursor=ge.showDotCursor),Oe._qualityLevel=6,Oe._compressionLevel=2,Oe}return R(Ee,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(ue){this._rfbCredentials=ue,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;p.Info("Sending Ctrl-Alt-Del"),this.sendKey(s.default.XK_Control_L,"ControlLeft",!0),this.sendKey(s.default.XK_Alt_L,"AltLeft",!0),this.sendKey(s.default.XK_Delete,"Delete",!0),this.sendKey(s.default.XK_Delete,"Delete",!1),this.sendKey(s.default.XK_Alt_L,"AltLeft",!1),this.sendKey(s.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(ue,ge,Oe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Oe===void 0){this.sendKey(ue,ge,!0),this.sendKey(ue,ge,!1);return}var Je=c.default[ge];if(this._qemuExtKeyEventSupported&&Je)ue=ue||0,p.Info("Sending key ("+(Oe?"down":"up")+"): keysym "+ue+", scancode "+Je),Ee.messages.QEMUExtendedKeyEvent(this._sock,ue,Oe,Je);else{if(!ue)return;p.Info("Sending keysym ("+(Oe?"down":"up")+"): "+ue),Ee.messages.keyEvent(this._sock,ue,Oe?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(ue){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Re]&&this._clipboardServerCapabilitiesActions[Z])this._clipboardText=ue,Ee.messages.extendedClipboardNotify(this._sock,[Re]);else{for(var ge=new Uint8Array(ue.length),Oe=0;Oe<ue.length;Oe++)ge[Oe]=ue.charCodeAt(Oe);Ee.messages.clientCutText(this._sock,ge)}}},{key:"_connect",value:function(){p.Debug(">> RFB.connect"),p.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(ue){ue.name==="SyntaxError"?this._fail("Invalid host or port ("+ue+")"):this._fail("Error when opening socket ("+ue+")")}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),p.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){p.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(ue){if(!(ue.name==="NotFoundError"))throw ue}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),p.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(ue){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(ue){this._fbName=ue,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(ue){var ge=this;window.requestAnimationFrame(function(){ge._updateClip(),ge._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var ue=this._display.clipViewport,ge=this._clipViewport;if(this._scaleViewport&&(ge=!1),ue!==ge&&(this._display.clipViewport=ge),ge){var Oe=this._screenSize();this._display.viewportChangeSize(Oe.w,Oe.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var ue=this._screenSize();this._display.autoscale(ue.w,ue.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var ue=this._screenSize();Ee.messages.setDesktopSize(this._sock,Math.floor(ue.w),Math.floor(ue.h),this._screenID,this._screenFlags),p.Debug("Requested new desktop size: "+ue.w+"x"+ue.h)}},{key:"_screenSize",value:function(){var ue=this._screen.getBoundingClientRect();return{w:ue.width,h:ue.height}}},{key:"_fixScrollbars",value:function(){var ue=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=ue}},{key:"_updateConnectionState",value:function(ue){var ge=this,Oe=this._rfbConnectionState;if(ue===Oe){p.Debug("Already in state '"+ue+"', ignoring");return}if(Oe==="disconnected"){p.Error("Tried changing state of a disconnected RFB object");return}switch(ue){case"connected":if(Oe!=="connecting"){p.Error("Bad transition to connected state, previous connection state: "+Oe);return}break;case"disconnected":if(Oe!=="disconnecting"){p.Error("Bad transition to disconnected state, previous connection state: "+Oe);return}break;case"connecting":if(Oe!==""){p.Error("Bad transition to connecting state, previous connection state: "+Oe);return}break;case"disconnecting":if(Oe!=="connected"&&Oe!=="connecting"){p.Error("Bad transition to disconnecting state, previous connection state: "+Oe);return}break;default:p.Error("Unknown connection state: "+ue);return}this._rfbConnectionState=ue,p.Debug("New state '"+ue+"', was '"+Oe+"'."),this._disconnTimer&&ue!=="disconnecting"&&(p.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(ue){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){p.Error("Disconnection timed out."),ge._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(ue){switch(this._rfbConnectionState){case"disconnecting":p.Error("Failed when disconnecting: "+ue);break;case"connected":p.Error("Failed while connected: "+ue);break;case"connecting":p.Error("Failed when connecting: "+ue);break;default:p.Error("RFB failure: "+ue);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(ue,ge){this._capabilities[ue]=ge,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){p.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":p.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(ue,ge,Oe){this.sendKey(ue,ge,Oe)}},{key:"_handleMouse",value:function(ue){if(ue.type==="click"&&ue.target!==this._canvas)return;if(ue.stopPropagation(),ue.preventDefault(),ue.type==="click"||ue.type==="contextmenu")return;var ge=(0,m.clientToElement)(ue.clientX,ue.clientY,this._canvas);switch(ue.type){case"mousedown":(0,f.setCapture)(this._canvas),this._handleMouseButton(ge.x,ge.y,!0,1<<ue.button);break;case"mouseup":this._handleMouseButton(ge.x,ge.y,!1,1<<ue.button);break;case"mousemove":this._handleMouseMove(ge.x,ge.y);break}}},{key:"_handleMouseButton",value:function(ue,ge,Oe,Je){if(this.dragViewport)if(Oe&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:ue,y:ge},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(ue,ge,Je)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(ue,ge,this._mouseButtonMask)),Oe?this._mouseButtonMask|=Je:this._mouseButtonMask&=~Je,this._sendMouse(ue,ge,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(ue,ge){var Oe=this;if(this._viewportDragging){var Je=this._viewportDragPos.x-ue,lt=this._viewportDragPos.y-ge;(this._viewportHasMoved||Math.abs(Je)>v.dragThreshold||Math.abs(lt)>v.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:ue,y:ge},this._display.viewportChangePos(Je,lt));return}if(this._mousePos={x:ue,y:ge},this._mouseMoveTimer==null){var tt=Date.now()-this._mouseLastMoveTime;tt>G?(this._sendMouse(ue,ge,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Oe._handleDelayedMouseMove()},G-tt)}}},{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(ue,ge,Oe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ee.messages.pointerEvent(this._sock,this._display.absX(ue),this._display.absY(ge),Oe)}},{key:"_handleWheel",value:function(ue){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ue.stopPropagation(),ue.preventDefault();var ge=(0,m.clientToElement)(ue.clientX,ue.clientY,this._canvas),Oe=ue.deltaX,Je=ue.deltaY;ue.deltaMode!==0&&(Oe*=q,Je*=q),this._accumulatedWheelDeltaX+=Oe,this._accumulatedWheelDeltaY+=Je,Math.abs(this._accumulatedWheelDeltaX)>=ee&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(ge.x,ge.y,!0,1<<5),this._handleMouseButton(ge.x,ge.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(ge.x,ge.y,!0,1<<6),this._handleMouseButton(ge.x,ge.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=ee&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(ge.x,ge.y,!0,1<<3),this._handleMouseButton(ge.x,ge.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(ge.x,ge.y,!0,1<<4),this._handleMouseButton(ge.x,ge.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(ue,ge,Oe){this._handleMouseMove(ge,Oe),this._cursor.move(ue.detail.clientX,ue.detail.clientY)}},{key:"_handleTapEvent",value:function(ue,ge){var Oe=(0,m.clientToElement)(ue.detail.clientX,ue.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<Ae&&this._gestureFirstDoubleTapEv.detail.type===ue.detail.type){var Je=this._gestureFirstDoubleTapEv.detail.clientX-ue.detail.clientX,lt=this._gestureFirstDoubleTapEv.detail.clientY-ue.detail.clientY,tt=Math.hypot(Je,lt);tt<Te?Oe=(0,m.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=ue}else this._gestureFirstDoubleTapEv=ue;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!0,ge),this._handleMouseButton(Oe.x,Oe.y,!1,ge)}},{key:"_handleGesture",value:function(ue){var ge,Oe=(0,m.clientToElement)(ue.detail.clientX,ue.detail.clientY,this._canvas);switch(ue.type){case"gesturestart":switch(ue.detail.type){case"onetap":this._handleTapEvent(ue,1);break;case"twotap":this._handleTapEvent(ue,4);break;case"threetap":this._handleTapEvent(ue,2);break;case"drag":this._fakeMouseMove(ue,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!0,1);break;case"longpress":this._fakeMouseMove(ue,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=ue.detail.magnitudeX,this._gestureLastMagnitudeY=ue.detail.magnitudeY,this._fakeMouseMove(ue,Oe.x,Oe.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(ue.detail.magnitudeX,ue.detail.magnitudeY),this._fakeMouseMove(ue,Oe.x,Oe.y);break}break;case"gesturemove":switch(ue.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(ue,Oe.x,Oe.y);break;case"twodrag":for(this._fakeMouseMove(ue,Oe.x,Oe.y);ue.detail.magnitudeY-this._gestureLastMagnitudeY>re;)this._handleMouseButton(Oe.x,Oe.y,!0,8),this._handleMouseButton(Oe.x,Oe.y,!1,8),this._gestureLastMagnitudeY+=re;for(;ue.detail.magnitudeY-this._gestureLastMagnitudeY<-re;)this._handleMouseButton(Oe.x,Oe.y,!0,16),this._handleMouseButton(Oe.x,Oe.y,!1,16),this._gestureLastMagnitudeY-=re;for(;ue.detail.magnitudeX-this._gestureLastMagnitudeX>re;)this._handleMouseButton(Oe.x,Oe.y,!0,32),this._handleMouseButton(Oe.x,Oe.y,!1,32),this._gestureLastMagnitudeX+=re;for(;ue.detail.magnitudeX-this._gestureLastMagnitudeX<-re;)this._handleMouseButton(Oe.x,Oe.y,!0,64),this._handleMouseButton(Oe.x,Oe.y,!1,64),this._gestureLastMagnitudeX-=re;break;case"pinch":if(this._fakeMouseMove(ue,Oe.x,Oe.y),ge=Math.hypot(ue.detail.magnitudeX,ue.detail.magnitudeY),Math.abs(ge-this._gestureLastMagnitudeX)>se){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);ge-this._gestureLastMagnitudeX>se;)this._handleMouseButton(Oe.x,Oe.y,!0,8),this._handleMouseButton(Oe.x,Oe.y,!1,8),this._gestureLastMagnitudeX+=se;for(;ge-this._gestureLastMagnitudeX<-se;)this._handleMouseButton(Oe.x,Oe.y,!0,16),this._handleMouseButton(Oe.x,Oe.y,!1,16),this._gestureLastMagnitudeX-=se}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(ue.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(ue,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!1,1);break;case"longpress":this._fakeMouseMove(ue,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var ue=this._sock.rQshiftStr(12).substr(4,7);p.Info("Server ProtocolVersion: "+ue);var ge=0;switch(ue){case"000.000":ge=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 "+ue)}if(ge){for(var Oe="ID:"+this._repeaterID;Oe.length<250;)Oe+="\0";return this._sock.sendString(Oe),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Je="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Je+`
`),p.Debug("Sent ProtocolVersion: "+Je),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function ue(Je,lt){for(var tt=0;tt<lt.length;tt++)if(lt[tt]===Je)return!0;return!1}if(this._rfbVersion>=3.7){var ge=this._sock.rQshift8();if(this._sock.rQwait("security type",ge,1))return!1;if(ge===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Oe=this._sock.rQshiftBytes(ge);if(p.Debug("Server security types: "+Oe),ue(1,Oe))this._rfbAuthScheme=1;else if(ue(22,Oe))this._rfbAuthScheme=22;else if(ue(16,Oe))this._rfbAuthScheme=16;else if(ue(2,Oe))this._rfbAuthScheme=2;else if(ue(19,Oe))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Oe+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",p.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var ue=this._sock.rQshift32(),ge="";if(ue>0){if(this._sock.rQwait("reason",ue,4))return!1;ge=this._sock.rQshiftStr(ue)}return ge!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:ge}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+ge+")")):(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 ue=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(ue),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var ue=this._sock.rQshift8(),ge=this._sock.rQshift8();if(!(ue==0&&ge==2))return this._fail("Unsupported VeNCrypt version "+ue+"."+ge);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Oe=this._sock.rQshift8();if(Oe!=0)return this._fail("VeNCrypt failure "+Oe);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Je=this._sock.rQshift8();if(Je<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Je,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var lt=[],tt=0;tt<this._rfbVeNCryptSubtypesLength;tt++)lt.push(this._sock.rQshift32());if(lt.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 ke=(0,S.encodeUTF8)(this._rfbCredentials.username),st=(0,S.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,ke.length]),this._sock.send([0,0,0,st.length]),this._sock.sendString(ke),this._sock.sendString(st),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 ue=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),ge=Ee.genDES(this._rfbCredentials.password,ue);return this._sock.send(ge),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(ue){for(var ge={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Oe={},Je=0;Je<ue;Je++){var lt=this._sock.rQshift32(),tt=this._sock.rQshiftStr(4),ke=this._sock.rQshiftStr(8);Oe[lt]={vendor:tt,signature:ke}}return p.Debug("Server Tight tunnel types: "+Oe),Oe[1]&&Oe[1].vendor==="SICR"&&Oe[1].signature==="SCHANNEL"&&(p.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Oe[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Oe[0]?Oe[0].vendor!=ge[0].vendor||Oe[0].signature!=ge[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(p.Debug("Selected tunnel type: "+ge[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 ue=this._sock.rQshift32();if(ue>0&&this._sock.rQwait("tunnel capabilities",16*ue,4))return!1;if(this._rfbTightVNC=!0,ue>0)return this._negotiateTightTunnels(ue),!1}if(this._sock.rQwait("sub auth count",4))return!1;var ge=this._sock.rQshift32();if(ge===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*ge,4))return!1;for(var Oe={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Je=[],lt=0;lt<ge;lt++){this._sock.rQshift32();var tt=this._sock.rQshiftStr(12);Je.push(tt)}p.Debug("Server Tight authentication types: "+Je);for(var ke in Oe)if(Je.indexOf(ke)!=-1){this._sock.send([0,0,0,Oe[ke]]),p.Debug("Selected authentication type: "+ke);switch(ke){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: "+ke+")")}}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 ue=this._sock.rQshift32();return ue===0?(this._rfbInitState="ClientInitialisation",p.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=ue,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:ue}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var ue=this._sock.rQshift16(),ge=this._sock.rQshift16(),Oe=this._sock.rQshift8(),Je=this._sock.rQshift8(),lt=this._sock.rQshift8(),tt=this._sock.rQshift8(),ke=this._sock.rQshift16(),st=this._sock.rQshift16(),Ve=this._sock.rQshift16(),Ot=this._sock.rQshift8(),Ut=this._sock.rQshift8(),ir=this._sock.rQshift8();this._sock.rQskipBytes(3);var lr=this._sock.rQshift32();if(this._sock.rQwait("server init name",lr,24))return!1;var Sr=this._sock.rQshiftStr(lr);if(Sr=(0,S.decodeUTF8)(Sr,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+lr))return!1;var mt=this._sock.rQshift16(),or=this._sock.rQshift16(),et=this._sock.rQshift16();this._sock.rQskipBytes(2);var ur=(mt+or+et)*16;if(this._sock.rQwait("TightVNC extended server init header",ur,32+lr))return!1;this._sock.rQskipBytes(16*mt),this._sock.rQskipBytes(16*or),this._sock.rQskipBytes(16*et)}return p.Info("Screen: "+ue+"x"+ge+", bpp: "+Oe+", depth: "+Je+", bigEndian: "+lt+", trueColor: "+tt+", redMax: "+ke+", greenMax: "+st+", blueMax: "+Ve+", redShift: "+Ot+", greenShift: "+Ut+", blueShift: "+ir),this._setDesktopName(Sr),this._resize(ue,ge),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(p.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ee.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ee.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var ue=[];ue.push(h.encodings.encodingCopyRect),this._fbDepth==24&&(ue.push(h.encodings.encodingTight),ue.push(h.encodings.encodingTightPNG),ue.push(h.encodings.encodingHextile),ue.push(h.encodings.encodingRRE)),ue.push(h.encodings.encodingRaw),ue.push(h.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),ue.push(h.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),ue.push(h.encodings.pseudoEncodingDesktopSize),ue.push(h.encodings.pseudoEncodingLastRect),ue.push(h.encodings.pseudoEncodingQEMUExtendedKeyEvent),ue.push(h.encodings.pseudoEncodingExtendedDesktopSize),ue.push(h.encodings.pseudoEncodingXvp),ue.push(h.encodings.pseudoEncodingFence),ue.push(h.encodings.pseudoEncodingContinuousUpdates),ue.push(h.encodings.pseudoEncodingDesktopName),ue.push(h.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(ue.push(h.encodings.pseudoEncodingVMwareCursor),ue.push(h.encodings.pseudoEncodingCursor)),Ee.messages.clientEncodings(this._sock,ue)}},{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 p.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(p.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var ue=this._sock.rQshift32();if(ue=(0,y.toSigned32bit)(ue),this._sock.rQwait("ServerCutText content",Math.abs(ue),8))return!1;if(ue>=0){var ge=this._sock.rQshiftStr(ue);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:ge}}))}else{ue=Math.abs(ue);var Oe=this._sock.rQshift32(),Je=Oe&65535,lt=Oe&4278190080,tt=!!(lt&le);if(tt){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var ke=0;ke<=15;ke++){var st=1<<ke;Je&st&&(this._clipboardServerCapabilitiesFormats[st]=!0,this._sock.rQshift32())}for(var Ve=24;Ve<=31;Ve++){var Ot=1<<Ve;this._clipboardServerCapabilitiesActions[Ot]=!!(lt&Ot)}var Ut=[le,Xe,pe,Z,Y];Ee.messages.extendedClipboardCaps(this._sock,Ut,{extendedClipboardFormatText:0})}else if(lt===Xe){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(Je&Re&&Ee.messages.extendedClipboardProvide(this._sock,[Re],[this._clipboardText]))}else if(lt===pe){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Z]&&(this._clipboardText!=null?Ee.messages.extendedClipboardNotify(this._sock,[Re]):Ee.messages.extendedClipboardNotify(this._sock,[]))}else if(lt===Z){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Xe]&&(Je&Re&&Ee.messages.extendedClipboardRequest(this._sock,[Re]))}else if(lt===Y){if(this._viewOnly)return!0;if(!(Je&Re))return!0;this._clipboardText=null;var ir=this._sock.rQshiftBytes(ue-4),lr=new o.default,Sr=null;lr.setInput(ir);for(var mt=0;mt<=15;mt++){var or=1<<mt;if(Je&or){var et=0,ur=lr.inflate(4);et|=ur[0]<<24,et|=ur[1]<<16,et|=ur[2]<<8,et|=ur[3];var qr=lr.inflate(et);or===Re&&(Sr=qr)}}if(lr.setInput(null),Sr!==null){for(var Fe="",$t=0;$t<Sr.length;$t++)Fe+=String.fromCharCode(Sr[$t]);Sr=Fe,Sr=(0,S.decodeUTF8)(Sr),Sr.length>0&&Sr.charAt(Sr.length-1)==="\0"&&(Sr=Sr.slice(0,-1)),Sr=Sr.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Sr}}))}}else return this._fail("Unexpected action in extended clipboard message: "+lt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var ue=this._sock.rQshift32(),ge=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",ge,9))return!1;ge>64&&(p.Warn("Bad payload length ("+ge+") in fence response"),ge=64);var Oe=this._sock.rQshiftStr(ge);return this._supportsFence=!0,ue&1<<31?(ue&=1<<0|1<<1,Ee.messages.clientFence(this._sock,ue,Oe),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var ue=this._sock.rQshift8(),ge=this._sock.rQshift8();switch(ge){case 0:p.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=ue,p.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+ge+")");break}return!0}},{key:"_normalMsg",value:function(){var ue;this._FBU.rects>0?ue=0:ue=this._sock.rQshift8();var ge,Oe;switch(ue){case 0:return Oe=this._framebufferUpdate(),Oe&&!this._enabledContinuousUpdates&&Ee.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Oe;case 1:return this._handleSetColourMapMsg();case 2:return p.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return ge=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,ge&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),p.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+ue+")"),p.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 ue=this._sock.rQshiftBytes(12);this._FBU.x=(ue[0]<<8)+ue[1],this._FBU.y=(ue[2]<<8)+ue[3],this._FBU.width=(ue[4]<<8)+ue[5],this._FBU.height=(ue[6]<<8)+ue[7],this._FBU.encoding=parseInt((ue[8]<<24)+(ue[9]<<16)+(ue[10]<<8)+ue[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 ue=document.createEvent("keyboardEvent");ue.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(ge){}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 ue=this._FBU.x,ge=this._FBU.y,Oe=this._FBU.width,Je=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var lt=this._sock.rQshift8();this._sock.rQshift8();var tt,ke=4;if(lt==0){var st=4294967040|0;if(tt=new Array(Oe*Je*ke),this._sock.rQwait("VMware cursor classic encoding",Oe*Je*ke*2,2))return!1;for(var Ve=new Array(Oe*Je),Ot=0;Ot<Oe*Je;Ot++)Ve[Ot]=this._sock.rQshift32();for(var Ut=new Array(Oe*Je),ir=0;ir<Oe*Je;ir++)Ut[ir]=this._sock.rQshift32();for(var lr=0;lr<Oe*Je;lr++)if(Ve[lr]==0){var Sr=Ut[lr],mt=Sr>>8&255,or=Sr>>16&255,et=Sr>>24&255;tt[lr*ke]=mt,tt[lr*ke+1]=or,tt[lr*ke+2]=et,tt[lr*ke+3]=255}else(Ve[lr]&st)==st?Ut[lr]==0?(tt[lr*ke]=0,tt[lr*ke+1]=0,tt[lr*ke+2]=0,tt[lr*ke+3]=0):((Ut[lr]&st)==st,tt[lr*ke]=0,tt[lr*ke+1]=0,tt[lr*ke+2]=0,tt[lr*ke+3]=255):(tt[lr*ke]=0,tt[lr*ke+1]=0,tt[lr*ke+2]=0,tt[lr*ke+3]=255)}else if(lt==1){if(this._sock.rQwait("VMware cursor alpha encoding",Oe*Je*4,2))return!1;tt=new Array(Oe*Je*ke);for(var ur=0;ur<Oe*Je;ur++){var qr=this._sock.rQshift32();tt[ur*4]=qr>>24&255,tt[ur*4+1]=qr>>16&255,tt[ur*4+2]=qr>>8&255,tt[ur*4+3]=qr&255}}else return p.Warn("The given cursor type is not supported: "+lt+" given."),!1;return this._updateCursor(tt,ue,ge,Oe,Je),!0}},{key:"_handleCursor",value:function(){var ue=this._FBU.x,ge=this._FBU.y,Oe=this._FBU.width,Je=this._FBU.height,lt=Oe*Je*4,tt=Math.ceil(Oe/8)*Je,ke=lt+tt;if(this._sock.rQwait("cursor encoding",ke))return!1;for(var st=this._sock.rQshiftBytes(lt),Ve=this._sock.rQshiftBytes(tt),Ot=new Uint8Array(Oe*Je*4),Ut=0,ir=0;ir<Je;ir++)for(var lr=0;lr<Oe;lr++){var Sr=ir*Math.ceil(Oe/8)+Math.floor(lr/8),mt=Ve[Sr]<<lr%8&128?255:0;Ot[Ut]=st[Ut+2],Ot[Ut+1]=st[Ut+1],Ot[Ut+2]=st[Ut],Ot[Ut+3]=mt,Ut+=4}return this._updateCursor(Ot,ue,ge,Oe,Je),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var ue=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",ue,4))return!1;var ge=this._sock.rQshiftStr(ue);return ge=(0,S.decodeUTF8)(ge,!0),this._setDesktopName(ge),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var ue=this._sock.rQpeek8(),ge=4+ue*16;if(this._sock.rQwait("ExtendedDesktopSize",ge))return!1;var Oe=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Oe&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Je=0;Je<ue;Je+=1)Je===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 lt="";switch(this._FBU.y){case 1:lt="Resize is administratively prohibited";break;case 2:lt="Out of resources";break;case 3:lt="Invalid screen layout";break;default:lt="Unknown reason";break}p.Warn("Server did not accept the resize request: "+lt)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var ue=this._decoders[this._FBU.encoding];if(!ue)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return ue.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(ge){return this._fail("Error decoding rect: "+ge),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Ee.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(ue,ge){this._fbWidth=ue,this._fbHeight=ge,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(ue,ge){if(this._rfbXvpVer<ue)return;p.Info("Sending XVP operation "+ge+" (version "+ue+")"),Ee.messages.xvpOp(this._sock,ue,ge)}},{key:"_updateCursor",value:function(ue,ge,Oe,Je,lt){this._cursorImage={rgbaPixels:ue,hotx:ge,hoty:Oe,w:Je,h:lt},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var ue=3;ue<this._cursorImage.rgbaPixels.length;ue+=4)if(this._cursorImage.rgbaPixels[ue])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var ue=this._shouldShowDotCursor()?Ee.cursors.dot:this._cursorImage;this._cursor.change(ue.rgbaPixels,ue.hotx,ue.hoty,ue.w,ue.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(ue){this._viewOnly=ue,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(ue?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(ue){p.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(ue){this._clipViewport=ue,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(ue){this._scaleViewport=ue,ue&&this._clipViewport&&this._updateClip(),this._updateScale(),!ue&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(ue){this._resizeSession=ue,ue&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(ue){this._showDotCursor=ue,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(ue){this._screen.style.background=ue}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(ue){if(!Number.isInteger(ue)||ue<0||ue>9){p.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===ue)return;this._qualityLevel=ue,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(ue){if(!Number.isInteger(ue)||ue<0||ue>9){p.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===ue)return;this._compressionLevel=ue,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(ue,ge){var Oe=ue.split("").map(function(Je){return Je.charCodeAt(0)});return new r.default(Oe).encrypt(ge)}}]),Ee}(d.default);D.default=ne,ne.messages={keyEvent:function(ye,Ee,Ce){var ue=ye._sQ,ge=ye._sQlen;ue[ge]=4,ue[ge+1]=Ce,ue[ge+2]=0,ue[ge+3]=0,ue[ge+4]=Ee>>24,ue[ge+5]=Ee>>16,ue[ge+6]=Ee>>8,ue[ge+7]=Ee,ye._sQlen+=8,ye.flush()},QEMUExtendedKeyEvent:function(ye,Ee,Ce,ue){function ge(tt){var ke=ue>>8,st=ue&255;return ke===224&&st<127?st|128:tt}var Oe=ye._sQ,Je=ye._sQlen;Oe[Je]=255,Oe[Je+1]=0,Oe[Je+2]=Ce>>8,Oe[Je+3]=Ce,Oe[Je+4]=Ee>>24,Oe[Je+5]=Ee>>16,Oe[Je+6]=Ee>>8,Oe[Je+7]=Ee;var lt=ge(ue);Oe[Je+8]=lt>>24,Oe[Je+9]=lt>>16,Oe[Je+10]=lt>>8,Oe[Je+11]=lt,ye._sQlen+=12,ye.flush()},pointerEvent:function(ye,Ee,Ce,ue){var ge=ye._sQ,Oe=ye._sQlen;ge[Oe]=5,ge[Oe+1]=ue,ge[Oe+2]=Ee>>8,ge[Oe+3]=Ee,ge[Oe+4]=Ce>>8,ge[Oe+5]=Ce,ye._sQlen+=6,ye.flush()},_buildExtendedClipboardFlags:function(ye,Ee){for(var Ce=new Uint8Array(4),ue=0,ge=0,Oe=0;Oe<ye.length;Oe++)ge|=ye[Oe];for(var Je=0;Je<Ee.length;Je++)ue|=Ee[Je];return Ce[0]=ge>>24,Ce[1]=0,Ce[2]=0,Ce[3]=ue,Ce},extendedClipboardProvide:function(ye,Ee,Ce){for(var ue=new n.default,ge=[],Oe=0;Oe<Ee.length;Oe++){if(Ee[Oe]!=Re)throw new Error("Unsupported extended clipboard format for Provide message.");Ce[Oe]=Ce[Oe].replace(/\r\n|\r|\n/gm,`\r
`);var Je=(0,S.encodeUTF8)(Ce[Oe]+"\0");ge.push(Je.length>>24&255,Je.length>>16&255,Je.length>>8&255,Je.length&255);for(var lt=0;lt<Je.length;lt++)ge.push(Je.charCodeAt(lt))}var tt=ue.deflate(new Uint8Array(ge)),ke=new Uint8Array(4+tt.length);ke.set(ne.messages._buildExtendedClipboardFlags([Y],Ee)),ke.set(tt,4),ne.messages.clientCutText(ye,ke,!0)},extendedClipboardNotify:function(ye,Ee){var Ce=ne.messages._buildExtendedClipboardFlags([Z],Ee);ne.messages.clientCutText(ye,Ce,!0)},extendedClipboardRequest:function(ye,Ee){var Ce=ne.messages._buildExtendedClipboardFlags([Xe],Ee);ne.messages.clientCutText(ye,Ce,!0)},extendedClipboardCaps:function(ye,Ee,Ce){var ue=Object.keys(Ce),ge=new Uint8Array(4+4*ue.length);ue.map(function(lt){return parseInt(lt)}),ue.sort(function(lt,tt){return lt-tt}),ge.set(ne.messages._buildExtendedClipboardFlags(Ee,[]));for(var Oe=4,Je=0;Je<ue.length;Je++)ge[Oe]=Ce[ue[Je]]>>24,ge[Oe+1]=Ce[ue[Je]]>>16,ge[Oe+2]=Ce[ue[Je]]>>8,ge[Oe+3]=Ce[ue[Je]]>>0,Oe+=4,ge[3]|=1<<ue[Je];ne.messages.clientCutText(ye,ge,!0)},clientCutText:function(ye,Ee){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ue=ye._sQ,ge=ye._sQlen;ue[ge]=6,ue[ge+1]=0,ue[ge+2]=0,ue[ge+3]=0;var Oe;Ce?Oe=(0,y.toUnsigned32bit)(-Ee.length):Oe=Ee.length,ue[ge+4]=Oe>>24,ue[ge+5]=Oe>>16,ue[ge+6]=Oe>>8,ue[ge+7]=Oe,ye._sQlen+=8;for(var Je=0,lt=Ee.length;lt>0;){for(var tt=Math.min(lt,ye._sQbufferSize-ye._sQlen),ke=0;ke<tt;ke++)ue[ye._sQlen+ke]=Ee[Je+ke];ye._sQlen+=tt,ye.flush(),lt-=tt,Je+=tt}},setDesktopSize:function(ye,Ee,Ce,ue,ge){var Oe=ye._sQ,Je=ye._sQlen;Oe[Je]=251,Oe[Je+1]=0,Oe[Je+2]=Ee>>8,Oe[Je+3]=Ee,Oe[Je+4]=Ce>>8,Oe[Je+5]=Ce,Oe[Je+6]=1,Oe[Je+7]=0,Oe[Je+8]=ue>>24,Oe[Je+9]=ue>>16,Oe[Je+10]=ue>>8,Oe[Je+11]=ue,Oe[Je+12]=0,Oe[Je+13]=0,Oe[Je+14]=0,Oe[Je+15]=0,Oe[Je+16]=Ee>>8,Oe[Je+17]=Ee,Oe[Je+18]=Ce>>8,Oe[Je+19]=Ce,Oe[Je+20]=ge>>24,Oe[Je+21]=ge>>16,Oe[Je+22]=ge>>8,Oe[Je+23]=ge,ye._sQlen+=24,ye.flush()},clientFence:function(ye,Ee,Ce){var ue=ye._sQ,ge=ye._sQlen;ue[ge]=248,ue[ge+1]=0,ue[ge+2]=0,ue[ge+3]=0,ue[ge+4]=Ee>>24,ue[ge+5]=Ee>>16,ue[ge+6]=Ee>>8,ue[ge+7]=Ee;var Oe=Ce.length;ue[ge+8]=Oe;for(var Je=0;Je<Oe;Je++)ue[ge+9+Je]=Ce.charCodeAt(Je);ye._sQlen+=9+Oe,ye.flush()},enableContinuousUpdates:function(ye,Ee,Ce,ue,ge,Oe){var Je=ye._sQ,lt=ye._sQlen;Je[lt]=150,Je[lt+1]=Ee,Je[lt+2]=Ce>>8,Je[lt+3]=Ce,Je[lt+4]=ue>>8,Je[lt+5]=ue,Je[lt+6]=ge>>8,Je[lt+7]=ge,Je[lt+8]=Oe>>8,Je[lt+9]=Oe,ye._sQlen+=10,ye.flush()},pixelFormat:function(ye,Ee,Ce){var ue=ye._sQ,ge=ye._sQlen,Oe;Ee>16?Oe=32:Ee>8?Oe=16:Oe=8;var Je=Math.floor(Ee/3);ue[ge]=0,ue[ge+1]=0,ue[ge+2]=0,ue[ge+3]=0,ue[ge+4]=Oe,ue[ge+5]=Ee,ue[ge+6]=0,ue[ge+7]=Ce?1:0,ue[ge+8]=0,ue[ge+9]=(1<<Je)-1,ue[ge+10]=0,ue[ge+11]=(1<<Je)-1,ue[ge+12]=0,ue[ge+13]=(1<<Je)-1,ue[ge+14]=Je*2,ue[ge+15]=Je*1,ue[ge+16]=Je*0,ue[ge+17]=0,ue[ge+18]=0,ue[ge+19]=0,ye._sQlen+=20,ye.flush()},clientEncodings:function(ye,Ee){var Ce=ye._sQ,ue=ye._sQlen;Ce[ue]=2,Ce[ue+1]=0,Ce[ue+2]=Ee.length>>8,Ce[ue+3]=Ee.length;for(var ge=ue+4,Oe=0;Oe<Ee.length;Oe++){var Je=Ee[Oe];Ce[ge]=Je>>24,Ce[ge+1]=Je>>16,Ce[ge+2]=Je>>8,Ce[ge+3]=Je,ge+=4}ye._sQlen+=ge-ue,ye.flush()},fbUpdateRequest:function(ye,Ee,Ce,ue,ge,Oe){var Je=ye._sQ,lt=ye._sQlen;typeof Ce=="undefined"&&(Ce=0),typeof ue=="undefined"&&(ue=0),Je[lt]=3,Je[lt+1]=Ee?1:0,Je[lt+2]=Ce>>8&255,Je[lt+3]=Ce&255,Je[lt+4]=ue>>8&255,Je[lt+5]=ue&255,Je[lt+6]=ge>>8&255,Je[lt+7]=ge&255,Je[lt+8]=Oe>>8&255,Je[lt+9]=Oe&255,ye._sQlen+=10,ye.flush()},xvpOp:function(ye,Ee,Ce){var ue=ye._sQ,ge=ye._sQlen;ue[ge]=250,ue[ge+1]=0,ue[ge+2]=Ee,ue[ge+3]=Ce,ye._sQlen+=4,ye.flush()}},ne.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(k,D,i){(function(y){y(i("VrN/"))})(function(y){"use strict";var p={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},S={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(v,m){var f=v.indentUnit,d={},u=m.htmlMode?p:S;for(var o in u)d[o]=u[o];for(var o in m)d[o]=m[o];var n,t;function a(O,F){function R(X){return F.tokenize=X,X(O,F)}var B=O.next();if(B=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?R(r("atom","]]>")):null:O.match("--")?R(r("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),R(s(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),F.tokenize=r("meta","?>"),"meta"):(n=O.eat("/")?"closeTag":"openTag",F.tokenize=e,"tag bracket");if(B=="&"){var P;return O.eat("#")?O.eat("x")?P=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):P=O.eatWhile(/[\d]/)&&O.eat(";"):P=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),P?"atom":"error"}else return O.eatWhile(/[^&<]/),null}a.isInText=!0;function e(O,F){var R=O.next();if(R==">"||R=="/"&&O.eat(">"))return F.tokenize=a,n=R==">"?"endTag":"selfcloseTag","tag bracket";if(R=="=")return n="equals",null;if(R=="<"){F.tokenize=a,F.state=A,F.tagName=F.tagStart=null;var B=F.tokenize(O,F);return B?B+" tag error":"tag error"}else return/[\'\"]/.test(R)?(F.tokenize=l(R),F.stringStartCol=O.column(),F.tokenize(O,F)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(O){var F=function(B,P){for(;!B.eol();)if(B.next()==O){P.tokenize=e;break}return"string"};return F.isInAttribute=!0,F}function r(O,F){return function(R,B){for(;!R.eol();){if(R.match(F)){B.tokenize=a;break}R.next()}return O}}function s(O){return function(F,R){for(var B;(B=F.next())!=null;){if(B=="<")return R.tokenize=s(O+1),R.tokenize(F,R);if(B==">")if(O==1){R.tokenize=a;break}else return R.tokenize=s(O-1),R.tokenize(F,R)}return"meta"}}function c(O,F,R){this.prev=O.context,this.tagName=F,this.indent=O.indented,this.startOfLine=R,(d.doNotIndent.hasOwnProperty(F)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function h(O){O.context&&(O.context=O.context.prev)}function g(O,F){for(var R;;){if(!O.context)return;if(R=O.context.tagName,!d.contextGrabbers.hasOwnProperty(R)||!d.contextGrabbers[R].hasOwnProperty(F))return;h(O)}}function A(O,F,R){return O=="openTag"?(R.tagStart=F.column(),b):O=="closeTag"?w:A}function b(O,F,R){return O=="word"?(R.tagName=F.current(),t="tag",_):d.allowMissingTagName&&O=="endTag"?(t="tag bracket",_(O,F,R)):(t="error",b)}function w(O,F,R){if(O=="word"){var B=F.current();return R.context&&R.context.tagName!=B&&d.implicitlyClosed.hasOwnProperty(R.context.tagName)&&h(R),R.context&&R.context.tagName==B||d.matchClosing===!1?(t="tag",x):(t="tag error",T)}else return d.allowMissingTagName&&O=="endTag"?(t="tag bracket",x(O,F,R)):(t="error",T)}function x(O,F,R){return O!="endTag"?(t="error",x):(h(R),A)}function T(O,F,R){return t="error",x(O,F,R)}function _(O,F,R){if(O=="word")return t="attribute",E;if(O=="endTag"||O=="selfcloseTag"){var B=R.tagName,P=R.tagStart;return R.tagName=R.tagStart=null,O=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(B)?g(R,B):(g(R,B),R.context=new c(R,B,P==R.indented)),A}return t="error",_}function E(O,F,R){return O=="equals"?C:(d.allowMissing||(t="error"),_(O,F,R))}function C(O,F,R){return O=="string"?I:O=="word"&&d.allowUnquoted?(t="string",_):(t="error",_(O,F,R))}function I(O,F,R){return O=="string"?I:_(O,F,R)}return{startState:function(F){var R={tokenize:a,state:A,indented:F||0,tagName:null,tagStart:null,context:null};return F!=null&&(R.baseIndent=F),R},token:function(F,R){if(!R.tagName&&F.sol()&&(R.indented=F.indentation()),F.eatSpace())return null;n=null;var B=R.tokenize(F,R);return(B||n)&&B!="comment"&&(t=null,R.state=R.state(n||B,F,R),t&&(B=t=="error"?B+" error":t)),B},indent:function(F,R,B){var P=F.context;if(F.tokenize.isInAttribute)return F.tagStart==F.indented?F.stringStartCol+1:F.indented+f;if(P&&P.noIndent)return y.Pass;if(F.tokenize!=e&&F.tokenize!=a)return B?B.match(/^(\s*)/)[0].length:0;if(F.tagName)return d.multilineTagIndentPastTag!==!1?F.tagStart+F.tagName.length+2:F.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var X=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);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 M=d.contextGrabbers[P.tagName];if(M&&M.hasOwnProperty(X[2]))P=P.prev;else break}for(;P&&P.prev&&!P.startOfLine;)P=P.prev;return P?P.indent+f:F.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(F){F.state==C&&(F.state=_)},xmlCurrentTag:function(F){return F.tagName?{name:F.tagName,close:F.type=="closeTag"}:null},xmlCurrentContext:function(F){for(var R=[],B=F.context;B;B=B.prev)B.tagName&&R.push(B.tagName);return R.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(k,D,i){var y=i("e4Nc"),p=i("ftKO"),S=i("3A9y");function v(m){var f=-1,d=m==null?0:m.length;for(this.__data__=new y;++f<d;)this.add(m[f])}v.prototype.add=v.prototype.push=p,v.prototype.has=S,k.exports=v},"1n7x":function(k,D,i){(function(y,p){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(v,m){k.exports=m(i("dtIV"),i("wOnQ"))})(self,function(S,v){return function(){var m={"./src/plugin/hyperlinks.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=a.n(e),r=a("./node_modules/core-js/modules/es.string.link.js"),s=a.n(r),c=a("./src/worker.js"),h=a("./src/utils.js"),g=[],A={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return A.toContainer.call(this).then(function(){if(this.opt.enableLinks){var x=this.prop.container,T=x.querySelectorAll("a"),_=(0,h.unitConvert)(x.getBoundingClientRect(),this.prop.pageSize.k);g=[],Array.prototype.forEach.call(T,function(E){for(var C=E.getClientRects(),I=0;I<C.length;I++){var O=(0,h.unitConvert)(C[I],this.prop.pageSize.k);O.left-=_.left,O.top-=_.top;var F=Math.floor(O.top/this.prop.pageSize.inner.height)+1,R=this.opt.margin[0]+O.top%this.prop.pageSize.inner.height,B=this.opt.margin[1]+O.left;g.push({page:F,top:R,left:B,clientRect:O,link:E})}},this)}})},c.default.prototype.toPdf=function(){return A.toPdf.call(this).then(function(){if(this.opt.enableLinks){g.forEach(function(T){this.prop.pdf.setPage(T.page),this.prop.pdf.link(T.left,T.top,T.clientRect.width,T.clientRect.height,{url:T.link.href})},this);var x=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(x)}})}},"./src/plugin/jspdf-plugin.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/es.symbol.js"),l=a.n(e),r=a("./node_modules/core-js/modules/es.symbol.description.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.object.to-string.js"),h=a.n(c),g=a("./node_modules/core-js/modules/es.symbol.iterator.js"),A=a.n(g),b=a("./node_modules/core-js/modules/es.array.iterator.js"),w=a.n(b),x=a("./node_modules/core-js/modules/es.string.iterator.js"),T=a.n(x),_=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),E=a.n(_),C=a("jspdf"),I=a.n(C);function O(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(B){return typeof B}:O=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},O(F)}C.jsPDF.getPageSize=function(F,R,B){if(O(F)==="object"){var P=F;F=P.orientation,R=P.unit||R,B=P.format||B}R=R||"mm",B=B||"a4",F=(""+(F||"P")).toLowerCase();var X=(""+B).toLowerCase(),M={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(R){case"pt":var z=1;break;case"mm":var z=72/25.4;break;case"cm":var z=72/2.54;break;case"in":var z=72;break;case"px":var z=72/96;break;case"pc":var z=12;break;case"em":var z=12;break;case"ex":var z=6;break;default:throw"Invalid unit: "+R}if(M.hasOwnProperty(X))var W=M[X][1]/z,H=M[X][0]/z;else try{var W=B[1],H=B[0]}catch(G){throw new Error("Invalid format: "+B)}if(F==="p"||F==="portrait"){if(F="p",H>W){var V=H;H=W,W=V}}else if(F==="l"||F==="landscape"){if(F="l",W>H){var V=H;H=W,W=V}}else throw"Invalid orientation: "+F;var Q={width:H,height:W,unit:R,k:z};return Q},t.default=C.jsPDF},"./src/plugin/pagebreaks.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/es.array.concat.js"),l=a.n(e),r=a("./node_modules/core-js/modules/es.array.slice.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.array.join.js"),h=a.n(c),g=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),A=a.n(g),b=a("./node_modules/core-js/modules/es.object.keys.js"),w=a.n(b),x=a("./src/worker.js"),T=a("./src/utils.js"),_={toContainer:x.default.prototype.toContainer};x.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},x.default.prototype.toContainer=function(){return _.toContainer.call(this).then(function(){var I=this.prop.container,O=this.prop.pageSize.inner.px.height,F=[].concat(this.opt.pagebreak.mode),R={avoidAll:F.indexOf("avoid-all")!==-1,css:F.indexOf("css")!==-1,legacy:F.indexOf("legacy")!==-1},B={},P=this;["before","after","avoid"].forEach(function(z){var W=R.avoidAll&&z==="avoid";B[z]=W?[]:[].concat(P.opt.pagebreak[z]||[]),B[z].length>0&&(B[z]=Array.prototype.slice.call(I.querySelectorAll(B[z].join(", "))))});var X=I.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var M=I.querySelectorAll("*");Array.prototype.forEach.call(M,function(W){var H={before:!1,after:R.legacy&&X.indexOf(W)!==-1,avoid:R.avoidAll};if(R.css){var V=window.getComputedStyle(W),Q=["always","page","left","right"],G=["avoid","avoid-page"];H={before:H.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:H.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:H.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(H).forEach(function(Te){H[Te]=H[Te]||B[Te].indexOf(W)!==-1});var ee=W.getBoundingClientRect();if(H.avoid&&!H.before){var q=Math.floor(ee.top/O),se=Math.floor(ee.bottom/O),re=Math.abs(ee.bottom-ee.top)/O;se!==q&&re<=1&&(H.before=!0)}if(H.before){var Ae=(0,T.createElement)("div",{style:{display:"block",height:O-ee.top%O+"px"}});W.parentNode.insertBefore(Ae,W)}if(H.after){var Ae=(0,T.createElement)("div",{style:{display:"block",height:O-ee.bottom%O+"px"}});W.parentNode.insertBefore(Ae,W.nextSibling)}})})}},"./src/utils.js":function(n,t,a){"use strict";a.r(t),a.d(t,{objType:function(){return F},createElement:function(){return R},cloneNode:function(){return B},unitConvert:function(){return P},toPx:function(){return X}});var e=a("./node_modules/core-js/modules/es.number.constructor.js"),l=a.n(e),r=a("./node_modules/core-js/modules/es.symbol.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.symbol.description.js"),h=a.n(c),g=a("./node_modules/core-js/modules/es.object.to-string.js"),A=a.n(g),b=a("./node_modules/core-js/modules/es.symbol.iterator.js"),w=a.n(b),x=a("./node_modules/core-js/modules/es.array.iterator.js"),T=a.n(x),_=a("./node_modules/core-js/modules/es.string.iterator.js"),E=a.n(_),C=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),I=a.n(C);function O(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(W){return typeof W}:O=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},O(M)}var F=function(z){var W=O(z);return W==="undefined"?"undefined":W==="string"||z instanceof String?"string":W==="number"||z instanceof Number?"number":W==="function"||z instanceof Function?"function":!!z&&z.constructor===Array?"array":z&&z.nodeType===1?"element":W==="object"?"object":"unknown"},R=function(z,W){var H=document.createElement(z);if(W.className&&(H.className=W.className),W.innerHTML){H.innerHTML=W.innerHTML;for(var V=H.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in W.style)H.style[G]=W.style[G];return H},B=function M(z,W){for(var H=z.nodeType===3?document.createTextNode(z.nodeValue):z.cloneNode(!1),V=z.firstChild;V;V=V.nextSibling)(W===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&H.appendChild(M(V,W));return z.nodeType===1&&(z.nodeName==="CANVAS"?(H.width=z.width,H.height=z.height,H.getContext("2d").drawImage(z,0,0)):(z.nodeName==="TEXTAREA"||z.nodeName==="SELECT")&&(H.value=z.value),H.addEventListener("load",function(){H.scrollTop=z.scrollTop,H.scrollLeft=z.scrollLeft},!0)),H},P=function(z,W){if(F(z)==="number")return z*72/96/W;var H={};for(var V in z)H[V]=z[V]*72/96/W;return H},X=function(z,W){return Math.floor(z*W/72*96)}},"./src/worker.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/es.object.assign.js"),l=a.n(e),r=a("./node_modules/core-js/modules/es.array.map.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.object.keys.js"),h=a.n(c),g=a("./node_modules/core-js/modules/es.array.concat.js"),A=a.n(g),b=a("./node_modules/core-js/modules/es.object.to-string.js"),w=a.n(b),x=a("./node_modules/core-js/modules/es.regexp.to-string.js"),T=a.n(x),_=a("./node_modules/core-js/modules/es.function.name.js"),E=a.n(_),C=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),I=a.n(C),O=a("jspdf"),F=a.n(O),R=a("html2canvas"),B=a.n(R),P=a("./src/utils.js"),X=a("./node_modules/es6-promise/dist/es6-promise.js"),M=a.n(X),z=M().Promise,W=function H(V){var Q=Object.assign(H.convert(z.resolve()),JSON.parse(JSON.stringify(H.template))),G=H.convert(z.resolve(),Q);return G=G.setProgress(1,H,1,[H]),G=G.set(V),G};W.prototype=Object.create(z.prototype),W.prototype.constructor=W,W.convert=function(V,Q){return V.__proto__=Q||W.prototype,V},W.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:{}}},W.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.")}})},W.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.")}},W.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 q=(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(q),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},W.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,R(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)})},W.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})},W.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,q=G.height,se=Math.floor(G.width*this.prop.pageSize.inner.ratio),re=Math.ceil(q/se),Ae=this.prop.pageSize.inner.height,Te=document.createElement("canvas"),Re=Te.getContext("2d");Te.width=G.width,Te.height=se,this.prop.pdf=this.prop.pdf||new O.jsPDF(ee.jsPDF);for(var Ge=0;Ge<re;Ge++){Ge===re-1&&q%se!==0&&(Te.height=q%se,Ae=Te.height*this.prop.pageSize.inner.width/Te.width);var Ue=Te.width,nt=Te.height;Re.fillStyle="white",Re.fillRect(0,0,Ue,nt),Re.drawImage(G,0,Ge*se,Ue,nt,0,0,Ue,nt),Ge&&this.prop.pdf.addPage();var Le=Te.toDataURL("image/"+ee.image.type,ee.image.quality);this.prop.pdf.addImage(Le,ee.image.type,ee.margin[1],ee.margin[0],this.prop.pageSize.inner.width,Ae)}})},W.prototype.output=function(V,Q,G){return G=G||"pdf",G.toLowerCase()==="img"||G.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},W.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)})},W.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.'}})},W.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)})},W.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 W.template.prop?function(){this.prop[G]=V[G]}:function(){this.opt[G]=V[G]}}},this);return this.then(function(){return this.thenList(Q)})},W.prototype.get=function(V,Q){return this.then(function(){var ee=V in W.template.prop?this.prop[V]:this.opt[V];return Q?Q(ee):ee})},W.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)},W.prototype.setPageSize=function(V){return this.then(function(){V=V||O.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})},W.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},W.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)},W.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function(q,se){return G.updateProgress(null,null,1,[q]),z.prototype.then.call(this,function(Ae){return G.updateProgress(null,q),Ae}).then(q,se).then(function(Ae){return G.updateProgress(1),Ae})})},W.prototype.thenCore=function(V,Q,G){G=G||z.prototype.then;var ee=this;V&&(V=V.bind(ee)),Q&&(Q=Q.bind(ee));var q=z.toString().indexOf("[native code]")!==-1&&z.name==="Promise",se=q?ee:W.convert(Object.assign({},ee),z.prototype),re=G.call(se,V,Q);return W.convert(re,ee.__proto__)},W.prototype.thenExternal=function(V,Q){return z.prototype.then.call(this,V,Q)},W.prototype.thenList=function(V){var Q=this;return V.forEach(function(ee){Q=Q.thenCore(ee)}),Q},W.prototype.catch=function(H){H&&(H=H.bind(this));var V=z.prototype.catch.call(this,H);return W.convert(V,this)},W.prototype.catchExternal=function(V){return z.prototype.catch.call(this,V)},W.prototype.error=function(V){return this.then(function(){throw new Error(V)})},W.prototype.using=W.prototype.set,W.prototype.saveAs=W.prototype.save,W.prototype.export=W.prototype.output,W.prototype.run=W.prototype.then,t.default=W},"./node_modules/core-js/internals/a-function.js":function(n){n.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(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/well-known-symbol.js"),l=a("./node_modules/core-js/internals/object-create.js"),r=a("./node_modules/core-js/internals/object-define-property.js"),s=e("unscopables"),c=Array.prototype;c[s]==null&&r.f(c,s,{configurable:!0,value:l(null)}),n.exports=function(h){c[s][h]=!0}},"./node_modules/core-js/internals/an-object.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js");n.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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/array-iteration.js").forEach,l=a("./node_modules/core-js/internals/array-method-is-strict.js"),r=l("forEach");n.exports=r?[].forEach:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-indexed-object.js"),l=a("./node_modules/core-js/internals/to-length.js"),r=a("./node_modules/core-js/internals/to-absolute-index.js"),s=function(h){return function(g,A,b){var w=e(g),x=l(w.length),T=r(b,x),_;if(h&&A!=A){for(;x>T;)if(_=w[T++],_!=_)return!0}else for(;x>T;T++)if((h||T in w)&&w[T]===A)return h||T||0;return!h&&-1}};n.exports={includes:s(!0),indexOf:s(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(n,t,a){var e=a("./node_modules/core-js/internals/function-bind-context.js"),l=a("./node_modules/core-js/internals/indexed-object.js"),r=a("./node_modules/core-js/internals/to-object.js"),s=a("./node_modules/core-js/internals/to-length.js"),c=a("./node_modules/core-js/internals/array-species-create.js"),h=[].push,g=function(b){var w=b==1,x=b==2,T=b==3,_=b==4,E=b==6,C=b==7,I=b==5||E;return function(O,F,R,B){for(var P=r(O),X=l(P),M=e(F,R,3),z=s(X.length),W=0,H=B||c,V=w?H(O,z):x||C?H(O,0):void 0,Q,G;z>W;W++)if((I||W in X)&&(Q=X[W],G=M(Q,W,P),b))if(w)V[W]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return W;case 2:h.call(V,Q)}else switch(b){case 4:return!1;case 7:h.call(V,Q)}return E?-1:T||_?_:V}};n.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(n,t,a){var e=a("./node_modules/core-js/internals/fails.js"),l=a("./node_modules/core-js/internals/well-known-symbol.js"),r=a("./node_modules/core-js/internals/engine-v8-version.js"),s=l("species");n.exports=function(c){return r>=51||!e(function(){var h=[],g=h.constructor={};return g[s]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/fails.js");n.exports=function(l,r){var s=[][l];return!!s&&e(function(){s.call(null,r||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js"),l=a("./node_modules/core-js/internals/is-array.js"),r=a("./node_modules/core-js/internals/well-known-symbol.js"),s=r("species");n.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[s],h===null&&(h=void 0))),h===void 0?Array:h}},"./node_modules/core-js/internals/array-species-create.js":function(n,t,a){var e=a("./node_modules/core-js/internals/array-species-constructor.js");n.exports=function(l,r){return new(e(l))(r===0?0:r)}},"./node_modules/core-js/internals/classof-raw.js":function(n){var t={}.toString;n.exports=function(a){return t.call(a).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-string-tag-support.js"),l=a("./node_modules/core-js/internals/classof-raw.js"),r=a("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag"),c=l(function(){return arguments}())=="Arguments",h=function(A,b){try{return A[b]}catch(w){}};n.exports=e?l:function(g){var A,b,w;return g===void 0?"Undefined":g===null?"Null":typeof(b=h(A=Object(g),s))=="string"?b:c?l(A):(w=l(A))=="Object"&&typeof A.callee=="function"?"Arguments":w}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,t,a){var e=a("./node_modules/core-js/internals/has.js"),l=a("./node_modules/core-js/internals/own-keys.js"),r=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),s=a("./node_modules/core-js/internals/object-define-property.js");n.exports=function(c,h){for(var g=l(h),A=s.f,b=r.f,w=0;w<g.length;w++){var x=g[w];e(c,x)||A(c,x,b(h,x))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(n,t,a){var e=a("./node_modules/core-js/internals/fails.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/require-object-coercible.js"),l=a("./node_modules/core-js/internals/to-string.js"),r=/"/g;n.exports=function(s,c,h,g){var A=l(e(s)),b="<"+c;return h!==""&&(b+=" "+h+'="'+l(g).replace(r,"&quot;")+'"'),b+">"+A+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=a("./node_modules/core-js/internals/object-create.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js"),s=a("./node_modules/core-js/internals/set-to-string-tag.js"),c=a("./node_modules/core-js/internals/iterators.js"),h=function(){return this};n.exports=function(g,A,b){var w=A+" Iterator";return g.prototype=l(e,{next:r(1,b)}),s(g,w,!1,!0),c[w]=h,g}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/object-define-property.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js");n.exports=e?function(s,c,h){return l.f(s,c,r(1,h))}:function(s,c,h){return s[c]=h,s}},"./node_modules/core-js/internals/create-property-descriptor.js":function(n){n.exports=function(t,a){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:a}}},"./node_modules/core-js/internals/create-property.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/to-property-key.js"),l=a("./node_modules/core-js/internals/object-define-property.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js");n.exports=function(s,c,h){var g=e(c);g in s?l.f(s,g,r(0,h)):s[g]=h}},"./node_modules/core-js/internals/define-iterator.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/create-iterator-constructor.js"),r=a("./node_modules/core-js/internals/object-get-prototype-of.js"),s=a("./node_modules/core-js/internals/object-set-prototype-of.js"),c=a("./node_modules/core-js/internals/set-to-string-tag.js"),h=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),g=a("./node_modules/core-js/internals/redefine.js"),A=a("./node_modules/core-js/internals/well-known-symbol.js"),b=a("./node_modules/core-js/internals/is-pure.js"),w=a("./node_modules/core-js/internals/iterators.js"),x=a("./node_modules/core-js/internals/iterators-core.js"),T=x.IteratorPrototype,_=x.BUGGY_SAFARI_ITERATORS,E=A("iterator"),C="keys",I="values",O="entries",F=function(){return this};n.exports=function(R,B,P,X,M,z,W){l(P,B,X);var H=function(Ge){if(Ge===M&&q)return q;if(!_&&Ge in G)return G[Ge];switch(Ge){case C:return function(){return new P(this,Ge)};case I:return function(){return new P(this,Ge)};case O:return function(){return new P(this,Ge)}}return function(){return new P(this)}},V=B+" Iterator",Q=!1,G=R.prototype,ee=G[E]||G["@@iterator"]||M&&G[M],q=!_&&ee||H(M),se=B=="Array"&&G.entries||ee,re,Ae,Te;if(se&&(re=r(se.call(new R)),T!==Object.prototype&&re.next&&(!b&&r(re)!==T&&(s?s(re,T):typeof re[E]!="function"&&h(re,E,F)),c(re,V,!0,!0),b&&(w[V]=F))),M==I&&ee&&ee.name!==I&&(Q=!0,q=function(){return ee.call(this)}),(!b||W)&&G[E]!==q&&h(G,E,q),w[B]=q,M)if(Ae={values:H(I),keys:z?q:H(C),entries:H(O)},W)for(Te in Ae)(_||Q||!(Te in G))&&g(G,Te,Ae[Te]);else e({target:B,proto:!0,forced:_||Q},Ae);return Ae}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/path.js"),l=a("./node_modules/core-js/internals/has.js"),r=a("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),s=a("./node_modules/core-js/internals/object-define-property.js").f;n.exports=function(c){var h=e.Symbol||(e.Symbol={});l(h,c)||s(h,c,{value:r.f(c)})}},"./node_modules/core-js/internals/descriptors.js":function(n,t,a){var e=a("./node_modules/core-js/internals/fails.js");n.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/is-object.js"),r=e.document,s=l(r)&&l(r.createElement);n.exports=function(c){return s?r.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(n){n.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(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js");n.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/engine-user-agent.js"),r=e.process,s=e.Deno,c=r&&r.versions||s&&s.version,h=c&&c.v8,g,A;h?(g=h.split("."),A=g[0]<4?1:g[0]+g[1]):l&&(g=l.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=l.match(/Chrome\/(\d+)/),g&&(A=g[1]))),n.exports=A&&+A},"./node_modules/core-js/internals/enum-bug-keys.js":function(n){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=a("./node_modules/core-js/internals/redefine.js"),c=a("./node_modules/core-js/internals/set-global.js"),h=a("./node_modules/core-js/internals/copy-constructor-properties.js"),g=a("./node_modules/core-js/internals/is-forced.js");n.exports=function(A,b){var w=A.target,x=A.global,T=A.stat,_,E,C,I,O,F;if(x?E=e:T?E=e[w]||c(w,{}):E=(e[w]||{}).prototype,E)for(C in b){if(O=b[C],A.noTargetGet?(F=l(E,C),I=F&&F.value):I=E[C],_=g(x?C:w+(T?".":"#")+C,A.forced),!_&&I!==void 0){if(typeof O===typeof I)continue;h(O,I)}(A.sham||I&&I.sham)&&r(O,"sham",!0),s(E,C,O,A)}}},"./node_modules/core-js/internals/fails.js":function(n){n.exports=function(t){try{return!!t()}catch(a){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(n,t,a){var e=a("./node_modules/core-js/internals/a-function.js");n.exports=function(l,r,s){if(e(l),r===void 0)return l;switch(s){case 0:return function(){return l.call(r)};case 1:return function(c){return l.call(r,c)};case 2:return function(c,h){return l.call(r,c,h)};case 3:return function(c,h,g){return l.call(r,c,h,g)}}return function(){return l.apply(r,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=function(s){return typeof s=="function"?s:void 0};n.exports=function(r,s){return arguments.length<2?l(e[r]):e[r]&&e[r][s]}},"./node_modules/core-js/internals/global.js":function(n){var t=function(e){return e&&e.Math==Math&&e};n.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(n,t,a){var e=a("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;n.exports=Object.hasOwn||function(s,c){return l.call(e(s),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(n){n.exports={}},"./node_modules/core-js/internals/html.js":function(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js");n.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/fails.js"),r=a("./node_modules/core-js/internals/document-create-element.js");n.exports=!e&&!l(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(n,t,a){var e=a("./node_modules/core-js/internals/fails.js"),l=a("./node_modules/core-js/internals/classof-raw.js"),r="".split;n.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(s){return l(s)=="String"?r.call(s,""):Object(s)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js"),l=a("./node_modules/core-js/internals/object-set-prototype-of.js");n.exports=function(r,s,c){var h,g;return l&&typeof(h=s.constructor)=="function"&&h!==c&&e(g=h.prototype)&&g!==c.prototype&&l(r,g),r}},"./node_modules/core-js/internals/inspect-source.js":function(n,t,a){var e=a("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return l.call(r)}),n.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(n,t,a){var e=a("./node_modules/core-js/internals/native-weak-map.js"),l=a("./node_modules/core-js/internals/global.js"),r=a("./node_modules/core-js/internals/is-object.js"),s=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=a("./node_modules/core-js/internals/has.js"),h=a("./node_modules/core-js/internals/shared-store.js"),g=a("./node_modules/core-js/internals/shared-key.js"),A=a("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",w=l.WeakMap,x,T,_,E=function(X){return _(X)?T(X):x(X,{})},C=function(X){return function(M){var z;if(!r(M)||(z=T(M)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return z}};if(e||h.state){var I=h.state||(h.state=new w),O=I.get,F=I.has,R=I.set;x=function(X,M){if(F.call(I,X))throw new TypeError(b);return M.facade=X,R.call(I,X,M),M},T=function(X){return O.call(I,X)||{}},_=function(X){return F.call(I,X)}}else{var B=g("state");A[B]=!0,x=function(X,M){if(c(X,B))throw new TypeError(b);return M.facade=X,s(X,B,M),M},T=function(X){return c(X,B)?X[B]:{}},_=function(X){return c(X,B)}}n.exports={set:x,get:T,has:_,enforce:E,getterFor:C}},"./node_modules/core-js/internals/is-array.js":function(n,t,a){var e=a("./node_modules/core-js/internals/classof-raw.js");n.exports=Array.isArray||function(r){return e(r)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(n,t,a){var e=a("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,r=function(b,w){var x=c[s(b)];return x==g?!0:x==h?!1:typeof w=="function"?e(w):!!w},s=r.normalize=function(A){return String(A).replace(l,".").toLowerCase()},c=r.data={},h=r.NATIVE="N",g=r.POLYFILL="P";n.exports=r},"./node_modules/core-js/internals/is-object.js":function(n){n.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(n){n.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js"),l=a("./node_modules/core-js/internals/use-symbol-as-uid.js");n.exports=l?function(r){return typeof r=="symbol"}:function(r){var s=e("Symbol");return typeof s=="function"&&Object(r)instanceof s}},"./node_modules/core-js/internals/iterators-core.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/fails.js"),l=a("./node_modules/core-js/internals/object-get-prototype-of.js"),r=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=a("./node_modules/core-js/internals/has.js"),c=a("./node_modules/core-js/internals/well-known-symbol.js"),h=a("./node_modules/core-js/internals/is-pure.js"),g=c("iterator"),A=!1,b=function(){return this},w,x,T;[].keys&&(T=[].keys(),"next"in T?(x=l(l(T)),x!==Object.prototype&&(w=x)):A=!0);var _=w==null||e(function(){var E={};return w[g].call(E)!==E});_&&(w={}),(!h||_)&&!s(w,g)&&r(w,g,b),n.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:A}},"./node_modules/core-js/internals/iterators.js":function(n){n.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/engine-v8-version.js"),l=a("./node_modules/core-js/internals/fails.js");n.exports=!!Object.getOwnPropertySymbols&&!l(function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/inspect-source.js"),r=e.WeakMap;n.exports=typeof r=="function"&&/native code/.test(l(r))},"./node_modules/core-js/internals/object-assign.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/fails.js"),r=a("./node_modules/core-js/internals/object-keys.js"),s=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),h=a("./node_modules/core-js/internals/to-object.js"),g=a("./node_modules/core-js/internals/indexed-object.js"),A=Object.assign,b=Object.defineProperty;n.exports=!A||l(function(){if(e&&A({b:1},A(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},x={},T=Symbol(),_="abcdefghijklmnopqrst";return w[T]=7,_.split("").forEach(function(E){x[E]=E}),A({},w)[T]!=7||r(A({},x)).join("")!=_})?function(x,T){for(var _=h(x),E=arguments.length,C=1,I=s.f,O=c.f;E>C;)for(var F=g(arguments[C++]),R=I?r(F).concat(I(F)):r(F),B=R.length,P=0,X;B>P;)X=R[P++],(!e||O.call(F,X))&&(_[X]=F[X]);return _}:A},"./node_modules/core-js/internals/object-create.js":function(n,t,a){var e=a("./node_modules/core-js/internals/an-object.js"),l=a("./node_modules/core-js/internals/object-define-properties.js"),r=a("./node_modules/core-js/internals/enum-bug-keys.js"),s=a("./node_modules/core-js/internals/hidden-keys.js"),c=a("./node_modules/core-js/internals/html.js"),h=a("./node_modules/core-js/internals/document-create-element.js"),g=a("./node_modules/core-js/internals/shared-key.js"),A=">",b="<",w="prototype",x="script",T=g("IE_PROTO"),_=function(){},E=function(B){return b+x+A+B+b+"/"+x+A},C=function(B){B.write(E("")),B.close();var P=B.parentWindow.Object;return B=null,P},I=function(){var B=h("iframe"),P="java"+x+":",X;if(B.style)return B.style.display="none",c.appendChild(B),B.src=String(P),X=B.contentWindow.document,X.open(),X.write(E("document.F=Object")),X.close(),X.F},O,F=function(){try{O=new ActiveXObject("htmlfile")}catch(P){}F=document.domain&&O?C(O):I()||C(O);for(var B=r.length;B--;)delete F[w][r[B]];return F()};s[T]=!0,n.exports=Object.create||function(B,P){var X;return B!==null?(_[w]=e(B),X=new _,_[w]=null,X[T]=B):X=F(),P===void 0?X:l(X,P)}},"./node_modules/core-js/internals/object-define-properties.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/object-define-property.js"),r=a("./node_modules/core-js/internals/an-object.js"),s=a("./node_modules/core-js/internals/object-keys.js");n.exports=e?Object.defineProperties:function(h,g){r(h);for(var A=s(g),b=A.length,w=0,x;b>w;)l.f(h,x=A[w++],g[x]);return h}},"./node_modules/core-js/internals/object-define-property.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/ie8-dom-define.js"),r=a("./node_modules/core-js/internals/an-object.js"),s=a("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(g,A,b){if(r(g),A=s(A),r(b),l)try{return c(g,A,b)}catch(w){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(g[A]=b.value),g}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js"),s=a("./node_modules/core-js/internals/to-indexed-object.js"),c=a("./node_modules/core-js/internals/to-property-key.js"),h=a("./node_modules/core-js/internals/has.js"),g=a("./node_modules/core-js/internals/ie8-dom-define.js"),A=Object.getOwnPropertyDescriptor;t.f=e?A:function(w,x){if(w=s(w),x=c(x),g)try{return A(w,x)}catch(T){}if(h(w,x))return r(!l.f.call(w,x),w[x])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-indexed-object.js"),l=a("./node_modules/core-js/internals/object-get-own-property-names.js").f,r={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(g){try{return l(g)}catch(A){return s.slice()}};n.exports.f=function(g){return s&&r.call(g)=="[object Window]"?c(g):l(e(g))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,t,a){var e=a("./node_modules/core-js/internals/object-keys-internal.js"),l=a("./node_modules/core-js/internals/enum-bug-keys.js"),r=l.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(c){return e(c,r)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,t,a){var e=a("./node_modules/core-js/internals/has.js"),l=a("./node_modules/core-js/internals/to-object.js"),r=a("./node_modules/core-js/internals/shared-key.js"),s=a("./node_modules/core-js/internals/correct-prototype-getter.js"),c=r("IE_PROTO"),h=Object.prototype;n.exports=s?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(n,t,a){var e=a("./node_modules/core-js/internals/has.js"),l=a("./node_modules/core-js/internals/to-indexed-object.js"),r=a("./node_modules/core-js/internals/array-includes.js").indexOf,s=a("./node_modules/core-js/internals/hidden-keys.js");n.exports=function(c,h){var g=l(c),A=0,b=[],w;for(w in g)!e(s,w)&&e(g,w)&&b.push(w);for(;h.length>A;)e(g,w=h[A++])&&(~r(b,w)||b.push(w));return b}},"./node_modules/core-js/internals/object-keys.js":function(n,t,a){var e=a("./node_modules/core-js/internals/object-keys-internal.js"),l=a("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(s){return e(s,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,t){"use strict";var a={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!a.call({1:2},1);t.f=l?function(s){var c=e(this,s);return!!c&&c.enumerable}:a},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,t,a){var e=a("./node_modules/core-js/internals/an-object.js"),l=a("./node_modules/core-js/internals/a-possible-prototype.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,s={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(s,[]),r=s instanceof Array}catch(h){}return function(g,A){return e(g),l(A),r?c.call(g,A):g.__proto__=A,g}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/to-string-tag-support.js"),l=a("./node_modules/core-js/internals/classof.js");n.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js");n.exports=function(l,r){var s,c;if(r==="string"&&typeof(s=l.toString)=="function"&&!e(c=s.call(l)))return c;if(typeof(s=l.valueOf)=="function"&&!e(c=s.call(l)))return c;if(r!=="string"&&typeof(s=l.toString)=="function"&&!e(c=s.call(l)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js"),l=a("./node_modules/core-js/internals/object-get-own-property-names.js"),r=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=a("./node_modules/core-js/internals/an-object.js");n.exports=e("Reflect","ownKeys")||function(h){var g=l.f(s(h)),A=r.f;return A?g.concat(A(h)):g}},"./node_modules/core-js/internals/path.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js");n.exports=e},"./node_modules/core-js/internals/redefine.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),r=a("./node_modules/core-js/internals/has.js"),s=a("./node_modules/core-js/internals/set-global.js"),c=a("./node_modules/core-js/internals/inspect-source.js"),h=a("./node_modules/core-js/internals/internal-state.js"),g=h.get,A=h.enforce,b=String(String).split("String");(n.exports=function(w,x,T,_){var E=_?!!_.unsafe:!1,C=_?!!_.enumerable:!1,I=_?!!_.noTargetGet:!1,O;if(typeof T=="function"&&(typeof x=="string"&&!r(T,"name")&&l(T,"name",x),O=A(T),O.source||(O.source=b.join(typeof x=="string"?x:""))),w===e){C?w[x]=T:s(x,T);return}else E?!I&&w[x]&&(C=!0):delete w[x];C?w[x]=T:l(w,x,T)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/an-object.js");n.exports=function(){var l=e(this),r="";return l.global&&(r+="g"),l.ignoreCase&&(r+="i"),l.multiline&&(r+="m"),l.dotAll&&(r+="s"),l.unicode&&(r+="u"),l.sticky&&(r+="y"),r}},"./node_modules/core-js/internals/require-object-coercible.js":function(n){n.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(n,t,a){var e=a("./node_modules/core-js/internals/global.js");n.exports=function(l,r){try{Object.defineProperty(e,l,{value:r,configurable:!0,writable:!0})}catch(s){e[l]=r}return r}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,t,a){var e=a("./node_modules/core-js/internals/object-define-property.js").f,l=a("./node_modules/core-js/internals/has.js"),r=a("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag");n.exports=function(c,h,g){c&&!l(c=g?c:c.prototype,s)&&e(c,s,{configurable:!0,value:h})}},"./node_modules/core-js/internals/shared-key.js":function(n,t,a){var e=a("./node_modules/core-js/internals/shared.js"),l=a("./node_modules/core-js/internals/uid.js"),r=e("keys");n.exports=function(s){return r[s]||(r[s]=l(s))}},"./node_modules/core-js/internals/shared-store.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",s=e[r]||l(r,{});n.exports=s},"./node_modules/core-js/internals/shared.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-pure.js"),l=a("./node_modules/core-js/internals/shared-store.js");(n.exports=function(r,s){return l[r]||(l[r]=s!==void 0?s:{})})("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(n,t,a){var e=a("./node_modules/core-js/internals/fails.js");n.exports=function(l){return e(function(){var r=""[l]('"');return r!==r.toLowerCase()||r.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-integer.js"),l=a("./node_modules/core-js/internals/to-string.js"),r=a("./node_modules/core-js/internals/require-object-coercible.js"),s=function(h){return function(g,A){var b=l(r(g)),w=e(A),x=b.length,T,_;return w<0||w>=x?h?"":void 0:(T=b.charCodeAt(w),T<55296||T>56319||w+1===x||(_=b.charCodeAt(w+1))<56320||_>57343?h?b.charAt(w):T:h?b.slice(w,w+2):(T-55296<<10)+(_-56320)+65536)}};n.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js/internals/string-trim.js":function(n,t,a){var e=a("./node_modules/core-js/internals/require-object-coercible.js"),l=a("./node_modules/core-js/internals/to-string.js"),r=a("./node_modules/core-js/internals/whitespaces.js"),s="["+r+"]",c=RegExp("^"+s+s+"*"),h=RegExp(s+s+"*$"),g=function(b){return function(w){var x=l(e(w));return b&1&&(x=x.replace(c,"")),b&2&&(x=x.replace(h,"")),x}};n.exports={start:g(1),end:g(2),trim:g(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-integer.js"),l=Math.max,r=Math.min;n.exports=function(s,c){var h=e(s);return h<0?l(h+c,0):r(h,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,t,a){var e=a("./node_modules/core-js/internals/indexed-object.js"),l=a("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(r){return e(l(r))}},"./node_modules/core-js/internals/to-integer.js":function(n){var t=Math.ceil,a=Math.floor;n.exports=function(e){return isNaN(e=+e)?0:(e>0?a:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-integer.js"),l=Math.min;n.exports=function(r){return r>0?l(e(r),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,t,a){var e=a("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js"),l=a("./node_modules/core-js/internals/is-symbol.js"),r=a("./node_modules/core-js/internals/ordinary-to-primitive.js"),s=a("./node_modules/core-js/internals/well-known-symbol.js"),c=s("toPrimitive");n.exports=function(h,g){if(!e(h)||l(h))return h;var A=h[c],b;if(A!==void 0){if(g===void 0&&(g="default"),b=A.call(h,g),!e(b)||l(b))return b;throw TypeError("Can't convert object to primitive value")}return g===void 0&&(g="number"),r(h,g)}},"./node_modules/core-js/internals/to-property-key.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-primitive.js"),l=a("./node_modules/core-js/internals/is-symbol.js");n.exports=function(r){var s=e(r,"string");return l(s)?s:String(s)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(n,t,a){var e=a("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),r={};r[l]="z",n.exports=String(r)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-symbol.js");n.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(n){var t=0,a=Math.random();n.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+a).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(n,t,a){var e=a("./node_modules/core-js/internals/native-symbol.js");n.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(n,t,a){var e=a("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/shared.js"),r=a("./node_modules/core-js/internals/has.js"),s=a("./node_modules/core-js/internals/uid.js"),c=a("./node_modules/core-js/internals/native-symbol.js"),h=a("./node_modules/core-js/internals/use-symbol-as-uid.js"),g=l("wks"),A=e.Symbol,b=h?A:A&&A.withoutSetter||s;n.exports=function(w){return(!r(g,w)||!(c||typeof g[w]=="string"))&&(c&&r(A,w)?g[w]=A[w]:g[w]=b("Symbol."+w)),g[w]}},"./node_modules/core-js/internals/whitespaces.js":function(n){n.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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/fails.js"),r=a("./node_modules/core-js/internals/is-array.js"),s=a("./node_modules/core-js/internals/is-object.js"),c=a("./node_modules/core-js/internals/to-object.js"),h=a("./node_modules/core-js/internals/to-length.js"),g=a("./node_modules/core-js/internals/create-property.js"),A=a("./node_modules/core-js/internals/array-species-create.js"),b=a("./node_modules/core-js/internals/array-method-has-species-support.js"),w=a("./node_modules/core-js/internals/well-known-symbol.js"),x=a("./node_modules/core-js/internals/engine-v8-version.js"),T=w("isConcatSpreadable"),_=9007199254740991,E="Maximum allowed index exceeded",C=x>=51||!l(function(){var R=[];return R[T]=!1,R.concat()[0]!==R}),I=b("concat"),O=function(B){if(!s(B))return!1;var P=B[T];return P!==void 0?!!P:r(B)},F=!C||!I;e({target:"Array",proto:!0,forced:F},{concat:function(B){var P=c(this),X=A(P,0),M=0,z,W,H,V,Q;for(z=-1,H=arguments.length;z<H;z++)if(Q=z===-1?P:arguments[z],O(Q)){if(V=h(Q.length),M+V>_)throw TypeError(E);for(W=0;W<V;W++,M++)W in Q&&g(X,M,Q[W])}else{if(M>=_)throw TypeError(E);g(X,M++,Q)}return X.length=M,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/to-indexed-object.js"),l=a("./node_modules/core-js/internals/add-to-unscopables.js"),r=a("./node_modules/core-js/internals/iterators.js"),s=a("./node_modules/core-js/internals/internal-state.js"),c=a("./node_modules/core-js/internals/define-iterator.js"),h="Array Iterator",g=s.set,A=s.getterFor(h);n.exports=c(Array,"Array",function(b,w){g(this,{type:h,target:e(b),index:0,kind:w})},function(){var b=A(this),w=b.target,x=b.kind,T=b.index++;return!w||T>=w.length?(b.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:T,done:!1}:x=="values"?{value:w[T],done:!1}:{value:[T,w[T]],done:!1}},"values"),r.Arguments=r.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/indexed-object.js"),r=a("./node_modules/core-js/internals/to-indexed-object.js"),s=a("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,h=l!=Object,g=s("join",",");e({target:"Array",proto:!0,forced:h||!g},{join:function(b){return c.call(r(this),b===void 0?",":b)}})},"./node_modules/core-js/modules/es.array.map.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/array-iteration.js").map,r=a("./node_modules/core-js/internals/array-method-has-species-support.js"),s=r("map");e({target:"Array",proto:!0,forced:!s},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/is-object.js"),r=a("./node_modules/core-js/internals/is-array.js"),s=a("./node_modules/core-js/internals/to-absolute-index.js"),c=a("./node_modules/core-js/internals/to-length.js"),h=a("./node_modules/core-js/internals/to-indexed-object.js"),g=a("./node_modules/core-js/internals/create-property.js"),A=a("./node_modules/core-js/internals/well-known-symbol.js"),b=a("./node_modules/core-js/internals/array-method-has-species-support.js"),w=b("slice"),x=A("species"),T=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!w},{slice:function(C,I){var O=h(this),F=c(O.length),R=s(C,F),B=s(I===void 0?F:I,F),P,X,M;if(r(O)&&(P=O.constructor,typeof P=="function"&&(P===Array||r(P.prototype))?P=void 0:l(P)&&(P=P[x],P===null&&(P=void 0)),P===Array||P===void 0))return T.call(O,R,B);for(X=new(P===void 0?Array:P)(_(B-R,0)),M=0;R<B;R++,M++)R in O&&g(X,M,O[R]);return X.length=M,X}})},"./node_modules/core-js/modules/es.function.name.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/object-define-property.js").f,r=Function.prototype,s=r.toString,c=/^\s*function ([^ (]*)/,h="name";e&&!(h in r)&&l(r,h,{configurable:!0,get:function(){try{return s.call(this).match(c)[1]}catch(A){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/descriptors.js"),l=a("./node_modules/core-js/internals/global.js"),r=a("./node_modules/core-js/internals/is-forced.js"),s=a("./node_modules/core-js/internals/redefine.js"),c=a("./node_modules/core-js/internals/has.js"),h=a("./node_modules/core-js/internals/classof-raw.js"),g=a("./node_modules/core-js/internals/inherit-if-required.js"),A=a("./node_modules/core-js/internals/is-symbol.js"),b=a("./node_modules/core-js/internals/to-primitive.js"),w=a("./node_modules/core-js/internals/fails.js"),x=a("./node_modules/core-js/internals/object-create.js"),T=a("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,E=a("./node_modules/core-js/internals/object-define-property.js").f,C=a("./node_modules/core-js/internals/string-trim.js").trim,I="Number",O=l[I],F=O.prototype,R=h(x(F))==I,B=function(H){if(A(H))throw TypeError("Cannot convert a Symbol value to a number");var V=b(H,"number"),Q,G,ee,q,se,re,Ae,Te;if(typeof V=="string"&&V.length>2){if(V=C(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,q=49;break;case 79:case 111:ee=8,q=55;break;default:return+V}for(se=V.slice(2),re=se.length,Ae=0;Ae<re;Ae++)if(Te=se.charCodeAt(Ae),Te<48||Te>q)return NaN;return parseInt(se,ee)}}return+V};if(r(I,!O(" 0o1")||!O("0b1")||O("+0x1"))){for(var P=function(H){var V=arguments.length<1?0:H,Q=this;return Q instanceof P&&(R?w(function(){F.valueOf.call(Q)}):h(Q)!=I)?g(new O(B(V)),Q,P):B(V)},X=e?T(O):"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(","),M=0,z;X.length>M;M++)c(O,z=X[M])&&!c(P,z)&&E(P,z,_(O,z));P.prototype=F,F.constructor=P,s(l,I,P)}},"./node_modules/core-js/modules/es.object.assign.js":function(n,t,a){var e=a("./node_modules/core-js/internals/export.js"),l=a("./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(n,t,a){var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/to-object.js"),r=a("./node_modules/core-js/internals/object-keys.js"),s=a("./node_modules/core-js/internals/fails.js"),c=s(function(){r(1)});e({target:"Object",stat:!0,forced:c},{keys:function(g){return r(l(g))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-string-tag-support.js"),l=a("./node_modules/core-js/internals/redefine.js"),r=a("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",r,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/redefine.js"),l=a("./node_modules/core-js/internals/an-object.js"),r=a("./node_modules/core-js/internals/to-string.js"),s=a("./node_modules/core-js/internals/fails.js"),c=a("./node_modules/core-js/internals/regexp-flags.js"),h="toString",g=RegExp.prototype,A=g[h],b=s(function(){return A.call({source:"a",flags:"b"})!="/a/b"}),w=A.name!=h;(b||w)&&e(RegExp.prototype,h,function(){var T=l(this),_=r(T.source),E=T.flags,C=r(E===void 0&&T instanceof RegExp&&!("flags"in g)?c.call(T):E);return"/"+_+"/"+C},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/string-multibyte.js").charAt,l=a("./node_modules/core-js/internals/to-string.js"),r=a("./node_modules/core-js/internals/internal-state.js"),s=a("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",h=r.set,g=r.getterFor(c);s(String,"String",function(A){h(this,{type:c,string:l(A),index:0})},function(){var b=g(this),w=b.string,x=b.index,T;return x>=w.length?{value:void 0,done:!0}:(T=e(w,x),b.index+=T.length,{value:T,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/create-html.js"),r=a("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:r("link")},{link:function(c){return l(this,"a","href",c)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/descriptors.js"),r=a("./node_modules/core-js/internals/global.js"),s=a("./node_modules/core-js/internals/has.js"),c=a("./node_modules/core-js/internals/is-object.js"),h=a("./node_modules/core-js/internals/object-define-property.js").f,g=a("./node_modules/core-js/internals/copy-constructor-properties.js"),A=r.Symbol;if(l&&typeof A=="function"&&(!("description"in A.prototype)||A().description!==void 0)){var b={},w=function(){var I=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),O=this instanceof w?new A(I):I===void 0?A():A(I);return I===""&&(b[O]=!0),O};g(w,A);var x=w.prototype=A.prototype;x.constructor=w;var T=x.toString,_=String(A("test"))=="Symbol(test)",E=/^Symbol\((.*)\)[^)]+$/;h(x,"description",{configurable:!0,get:function(){var I=c(this)?this.valueOf():this,O=T.call(I);if(s(b,I))return"";var F=_?O.slice(7,-1):O.replace(E,"$1");return F===""?void 0:F}}),e({global:!0,forced:!0},{Symbol:w})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(n,t,a){var e=a("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),l=a("./node_modules/core-js/internals/global.js"),r=a("./node_modules/core-js/internals/get-built-in.js"),s=a("./node_modules/core-js/internals/is-pure.js"),c=a("./node_modules/core-js/internals/descriptors.js"),h=a("./node_modules/core-js/internals/native-symbol.js"),g=a("./node_modules/core-js/internals/fails.js"),A=a("./node_modules/core-js/internals/has.js"),b=a("./node_modules/core-js/internals/is-array.js"),w=a("./node_modules/core-js/internals/is-object.js"),x=a("./node_modules/core-js/internals/is-symbol.js"),T=a("./node_modules/core-js/internals/an-object.js"),_=a("./node_modules/core-js/internals/to-object.js"),E=a("./node_modules/core-js/internals/to-indexed-object.js"),C=a("./node_modules/core-js/internals/to-property-key.js"),I=a("./node_modules/core-js/internals/to-string.js"),O=a("./node_modules/core-js/internals/create-property-descriptor.js"),F=a("./node_modules/core-js/internals/object-create.js"),R=a("./node_modules/core-js/internals/object-keys.js"),B=a("./node_modules/core-js/internals/object-get-own-property-names.js"),P=a("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),M=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),z=a("./node_modules/core-js/internals/object-define-property.js"),W=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),H=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=a("./node_modules/core-js/internals/redefine.js"),Q=a("./node_modules/core-js/internals/shared.js"),G=a("./node_modules/core-js/internals/shared-key.js"),ee=a("./node_modules/core-js/internals/hidden-keys.js"),q=a("./node_modules/core-js/internals/uid.js"),se=a("./node_modules/core-js/internals/well-known-symbol.js"),re=a("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ae=a("./node_modules/core-js/internals/define-well-known-symbol.js"),Te=a("./node_modules/core-js/internals/set-to-string-tag.js"),Re=a("./node_modules/core-js/internals/internal-state.js"),Ge=a("./node_modules/core-js/internals/array-iteration.js").forEach,Ue=G("hidden"),nt="Symbol",Le="prototype",le=se("toPrimitive"),Xe=Re.set,pe=Re.getterFor(nt),Z=Object[Le],Y=l.Symbol,ne=r("JSON","stringify"),ce=M.f,ye=z.f,Ee=P.f,Ce=W.f,ue=Q("symbols"),ge=Q("op-symbols"),Oe=Q("string-to-symbol-registry"),Je=Q("symbol-to-string-registry"),lt=Q("wks"),tt=l.QObject,ke=!tt||!tt[Le]||!tt[Le].findChild,st=c&&g(function(){return F(ye({},"a",{get:function(){return ye(this,"a",{value:7}).a}})).a!=7})?function(ur,qr,Fe){var $t=ce(Z,qr);$t&&delete Z[qr],ye(ur,qr,Fe),$t&&ur!==Z&&ye(Z,qr,$t)}:ye,Ve=function(qr,Fe){var $t=ue[qr]=F(Y[Le]);return Xe($t,{type:nt,tag:qr,description:Fe}),c||($t.description=Fe),$t},Ot=function(qr,Fe,$t){qr===Z&&Ot(ge,Fe,$t),T(qr);var Lr=C(Fe);return T($t),A(ue,Lr)?($t.enumerable?(A(qr,Ue)&&qr[Ue][Lr]&&(qr[Ue][Lr]=!1),$t=F($t,{enumerable:O(0,!1)})):(A(qr,Ue)||ye(qr,Ue,O(1,{})),qr[Ue][Lr]=!0),st(qr,Lr,$t)):ye(qr,Lr,$t)},Ut=function(qr,Fe){T(qr);var $t=E(Fe),Lr=R($t).concat(or($t));return Ge(Lr,function(pt){(!c||lr.call($t,pt))&&Ot(qr,pt,$t[pt])}),qr},ir=function(qr,Fe){return Fe===void 0?F(qr):Ut(F(qr),Fe)},lr=function(qr){var Fe=C(qr),$t=Ce.call(this,Fe);return this===Z&&A(ue,Fe)&&!A(ge,Fe)?!1:$t||!A(this,Fe)||!A(ue,Fe)||A(this,Ue)&&this[Ue][Fe]?$t:!0},Sr=function(qr,Fe){var $t=E(qr),Lr=C(Fe);if($t===Z&&A(ue,Lr)&&!A(ge,Lr))return;var pt=ce($t,Lr);return pt&&A(ue,Lr)&&!(A($t,Ue)&&$t[Ue][Lr])&&(pt.enumerable=!0),pt},mt=function(qr){var Fe=Ee(E(qr)),$t=[];return Ge(Fe,function(Lr){!A(ue,Lr)&&!A(ee,Lr)&&$t.push(Lr)}),$t},or=function(qr){var Fe=qr===Z,$t=Ee(Fe?ge:E(qr)),Lr=[];return Ge($t,function(pt){A(ue,pt)&&(!Fe||A(Z,pt))&&Lr.push(ue[pt])}),Lr};if(h||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var qr=!arguments.length||arguments[0]===void 0?void 0:I(arguments[0]),Fe=q(qr),$t=function Lr(pt){this===Z&&Lr.call(ge,pt),A(this,Ue)&&A(this[Ue],Fe)&&(this[Ue][Fe]=!1),st(this,Fe,O(1,pt))};return c&&ke&&st(Z,Fe,{configurable:!0,set:$t}),Ve(Fe,qr)},V(Y[Le],"toString",function(){return pe(this).tag}),V(Y,"withoutSetter",function(ur){return Ve(q(ur),ur)}),W.f=lr,z.f=Ot,M.f=Sr,B.f=P.f=mt,X.f=or,re.f=function(ur){return Ve(se(ur),ur)},c&&(ye(Y[Le],"description",{configurable:!0,get:function(){return pe(this).description}}),s||V(Z,"propertyIsEnumerable",lr,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Y}),Ge(R(lt),function(ur){Ae(ur)}),e({target:nt,stat:!0,forced:!h},{for:function(qr){var Fe=I(qr);if(A(Oe,Fe))return Oe[Fe];var $t=Y(Fe);return Oe[Fe]=$t,Je[$t]=Fe,$t},keyFor:function(qr){if(!x(qr))throw TypeError(qr+" is not a symbol");if(A(Je,qr))return Je[qr]},useSetter:function(){ke=!0},useSimple:function(){ke=!1}}),e({target:"Object",stat:!0,forced:!h,sham:!c},{create:ir,defineProperty:Ot,defineProperties:Ut,getOwnPropertyDescriptor:Sr}),e({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:mt,getOwnPropertySymbols:or}),e({target:"Object",stat:!0,forced:g(function(){X.f(1)})},{getOwnPropertySymbols:function(qr){return X.f(_(qr))}}),ne){var et=!h||g(function(){var ur=Y();return ne([ur])!="[null]"||ne({a:ur})!="{}"||ne(Object(ur))!="{}"});e({target:"JSON",stat:!0,forced:et},{stringify:function(qr,Fe,$t){for(var Lr=[qr],pt=1,qt;arguments.length>pt;)Lr.push(arguments[pt++]);return qt=Fe,!w(Fe)&&qr===void 0||x(qr)?void 0:(b(Fe)||(Fe=function(pn,fr){if(typeof qt=="function"&&(fr=qt.call(this,pn,fr)),!x(fr))return fr}),Lr[1]=Fe,ne.apply(null,Lr))}})}Y[Le][le]||H(Y[Le],le,Y[Le].valueOf),Te(Y,nt),ee[Ue]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/dom-iterables.js"),r=a("./node_modules/core-js/internals/array-for-each.js"),s=a("./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!==r)try{s(g,"forEach",r)}catch(A){g.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),l=a("./node_modules/core-js/internals/dom-iterables.js"),r=a("./node_modules/core-js/modules/es.array.iterator.js"),s=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=a("./node_modules/core-js/internals/well-known-symbol.js"),h=c("iterator"),g=c("toStringTag"),A=r.values;for(var b in l){var w=e[b],x=w&&w.prototype;if(x){if(x[h]!==A)try{s(x,h,A)}catch(_){x[h]=A}if(x[g]||s(x,g,b),l[b]){for(var T in r)if(x[T]!==r[T])try{s(x,T,r[T])}catch(_){x[T]=r[T]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(n){/*!
* @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,a){n.exports=a()})(this,function(){"use strict";function t(tt){var ke=typeof tt;return tt!==null&&(ke==="object"||ke==="function")}function a(tt){return typeof tt=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(ke){return Object.prototype.toString.call(ke)==="[object Array]"};var l=e,r=0,s=void 0,c=void 0,h=function(ke,st){R[r]=ke,R[r+1]=st,r+=2,r===2&&(c?c(B):X())};function g(tt){c=tt}function A(tt){h=tt}var b=typeof window!="undefined"?window:void 0,w=b||{},x=w.MutationObserver||w.WebKitMutationObserver,T=typeof self=="undefined"&&typeof p!="undefined"&&{}.toString.call(p)==="[object process]",_=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return p.nextTick(B)}}function C(){return typeof s!="undefined"?function(){s(B)}:F()}function I(){var tt=0,ke=new x(B),st=document.createTextNode("");return ke.observe(st,{characterData:!0}),function(){st.data=tt=++tt%2}}function O(){var tt=new MessageChannel;return tt.port1.onmessage=B,function(){return tt.port2.postMessage(0)}}function F(){var tt=setTimeout;return function(){return tt(B,1)}}var R=new Array(1e3);function B(){for(var tt=0;tt<r;tt+=2){var ke=R[tt],st=R[tt+1];ke(st),R[tt]=void 0,R[tt+1]=void 0}r=0}function P(){try{var tt=Function("return this")().require("vertx");return s=tt.runOnLoop||tt.runOnContext,C()}catch(ke){return F()}}var X=void 0;T?X=E():x?X=I():_?X=O():b===void 0&&!0?X=P():X=F();function M(tt,ke){var st=this,Ve=new this.constructor(H);Ve[W]===void 0&&ne(Ve);var Ot=st._state;if(Ot){var Ut=arguments[Ot-1];h(function(){return Xe(Ot,Ve,Ut,st._result)})}else Le(st,Ve,tt,ke);return Ve}function z(tt){var ke=this;if(tt&&typeof tt=="object"&&tt.constructor===ke)return tt;var st=new ke(H);return Re(st,tt),st}var W=Math.random().toString(36).substring(2);function H(){}var V=void 0,Q=1,G=2;function ee(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function se(tt,ke,st,Ve){try{tt.call(ke,st,Ve)}catch(Ot){return Ot}}function re(tt,ke,st){h(function(Ve){var Ot=!1,Ut=se(st,ke,function(ir){if(Ot)return;Ot=!0,ke!==ir?Re(Ve,ir):Ue(Ve,ir)},function(ir){if(Ot)return;Ot=!0,nt(Ve,ir)},"Settle: "+(Ve._label||" unknown promise"));!Ot&&Ut&&(Ot=!0,nt(Ve,Ut))},tt)}function Ae(tt,ke){ke._state===Q?Ue(tt,ke._result):ke._state===G?nt(tt,ke._result):Le(ke,void 0,function(st){return Re(tt,st)},function(st){return nt(tt,st)})}function Te(tt,ke,st){ke.constructor===tt.constructor&&st===M&&ke.constructor.resolve===z?Ae(tt,ke):st===void 0?Ue(tt,ke):a(st)?re(tt,ke,st):Ue(tt,ke)}function Re(tt,ke){if(tt===ke)nt(tt,ee());else if(t(ke)){var st=void 0;try{st=ke.then}catch(Ve){nt(tt,Ve);return}Te(tt,ke,st)}else Ue(tt,ke)}function Ge(tt){tt._onerror&&tt._onerror(tt._result),le(tt)}function Ue(tt,ke){if(tt._state!==V)return;tt._result=ke,tt._state=Q,tt._subscribers.length!==0&&h(le,tt)}function nt(tt,ke){if(tt._state!==V)return;tt._state=G,tt._result=ke,h(Ge,tt)}function Le(tt,ke,st,Ve){var Ot=tt._subscribers,Ut=Ot.length;tt._onerror=null,Ot[Ut]=ke,Ot[Ut+Q]=st,Ot[Ut+G]=Ve,Ut===0&&tt._state&&h(le,tt)}function le(tt){var ke=tt._subscribers,st=tt._state;if(ke.length===0)return;for(var Ve=void 0,Ot=void 0,Ut=tt._result,ir=0;ir<ke.length;ir+=3)Ve=ke[ir],Ot=ke[ir+st],Ve?Xe(st,Ve,Ot,Ut):Ot(Ut);tt._subscribers.length=0}function Xe(tt,ke,st,Ve){var Ot=a(st),Ut=void 0,ir=void 0,lr=!0;if(Ot){try{Ut=st(Ve)}catch(Sr){lr=!1,ir=Sr}if(ke===Ut){nt(ke,q());return}}else Ut=Ve;ke._state!==V||(Ot&&lr?Re(ke,Ut):lr===!1?nt(ke,ir):tt===Q?Ue(ke,Ut):tt===G&&nt(ke,Ut))}function pe(tt,ke){try{ke(function(Ve){Re(tt,Ve)},function(Ve){nt(tt,Ve)})}catch(st){nt(tt,st)}}var Z=0;function Y(){return Z++}function ne(tt){tt[W]=Z++,tt._state=void 0,tt._result=void 0,tt._subscribers=[]}function ce(){return new Error("Array Methods must be provided an Array")}var ye=function(){function tt(ke,st){this._instanceConstructor=ke,this.promise=new ke(H),this.promise[W]||ne(this.promise),l(st)?(this.length=st.length,this._remaining=st.length,this._result=new Array(this.length),this.length===0?Ue(this.promise,this._result):(this.length=this.length||0,this._enumerate(st),this._remaining===0&&Ue(this.promise,this._result))):nt(this.promise,ce())}return tt.prototype._enumerate=function(st){for(var Ve=0;this._state===V&&Ve<st.length;Ve++)this._eachEntry(st[Ve],Ve)},tt.prototype._eachEntry=function(st,Ve){var Ot=this._instanceConstructor,Ut=Ot.resolve;if(Ut===z){var ir=void 0,lr=void 0,Sr=!1;try{ir=st.then}catch(or){Sr=!0,lr=or}if(ir===M&&st._state!==V)this._settledAt(st._state,Ve,st._result);else if(typeof ir!="function")this._remaining--,this._result[Ve]=st;else if(Ot===Je){var mt=new Ot(H);Sr?nt(mt,lr):Te(mt,st,ir),this._willSettleAt(mt,Ve)}else this._willSettleAt(new Ot(function(or){return or(st)}),Ve)}else this._willSettleAt(Ut(st),Ve)},tt.prototype._settledAt=function(st,Ve,Ot){var Ut=this.promise;Ut._state===V&&(this._remaining--,st===G?nt(Ut,Ot):this._result[Ve]=Ot),this._remaining===0&&Ue(Ut,this._result)},tt.prototype._willSettleAt=function(st,Ve){var Ot=this;Le(st,void 0,function(Ut){return Ot._settledAt(Q,Ve,Ut)},function(Ut){return Ot._settledAt(G,Ve,Ut)})},tt}();function Ee(tt){return new ye(this,tt).promise}function Ce(tt){var ke=this;return l(tt)?new ke(function(st,Ve){for(var Ot=tt.length,Ut=0;Ut<Ot;Ut++)ke.resolve(tt[Ut]).then(st,Ve)}):new ke(function(st,Ve){return Ve(new TypeError("You must pass an array to race."))})}function ue(tt){var ke=this,st=new ke(H);return nt(st,tt),st}function ge(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Oe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Je=function(){function tt(ke){this[W]=Y(),this._result=this._state=void 0,this._subscribers=[],H!==ke&&(typeof ke!="function"&&ge(),this instanceof tt?pe(this,ke):Oe())}return tt.prototype.catch=function(st){return this.then(null,st)},tt.prototype.finally=function(st){var Ve=this,Ot=Ve.constructor;return a(st)?Ve.then(function(Ut){return Ot.resolve(st()).then(function(){return Ut})},function(Ut){return Ot.resolve(st()).then(function(){throw Ut})}):Ve.then(st,st)},tt}();Je.prototype.then=M,Je.all=Ee,Je.race=Ce,Je.resolve=z,Je.reject=ue,Je._setScheduler=g,Je._setAsap=A,Je._asap=h;function lt(){var tt=void 0;if(typeof y!="undefined")tt=y;else if(typeof self!="undefined")tt=self;else try{tt=Function("return this")()}catch(Ve){throw new Error("polyfill failed because global object is unavailable in this environment")}var ke=tt.Promise;if(ke){var st=null;try{st=Object.prototype.toString.call(ke.resolve())}catch(Ve){}if(st==="[object Promise]"&&!ke.cast)return}tt.Promise=Je}return Je.polyfill=lt,Je.Promise=Je,Je})},html2canvas:function(n){"use strict";n.exports=v},jspdf:function(n){"use strict";n.exports=S}},f={};function d(o){var n=f[o];if(n!==void 0)return n.exports;var t=f[o]={exports:{}};return m[o].call(t.exports,t,t.exports,d),t.exports}!function(){d.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return d.d(n,{a:n}),n}}(),!function(){d.d=function(o,n){for(var t in n)d.o(n,t)&&!d.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:n[t]})}}(),!function(){d.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}}(),!function(){d.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var u={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/d.r(u);var o=d("./src/worker.js"),n=d("./src/plugin/jspdf-plugin.js"),t=d("./src/plugin/pagebreaks.js"),a=d("./src/plugin/hyperlinks.js"),e=function l(r,s){var c=new l.Worker(s);return r?c.from(r).save():c};e.Worker=o.default,u.default=e}(),u=u.default,u}()})}).call(this,i("yLpj"),i("Q2Ig"))},"1q3G":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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(k,D,i){var y=i("MBQ8"),p=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(v){return v.stack=null,p.superApply(this,"getInitialData",arguments)}}),S=p;k.exports=S},"1u/T":function(k,D,i){var y=i("ProS"),p={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(p,function(S,v){v.eachComponent({mainType:"visualMap",query:S},function(m){m.setSelected(S.selected)})})},"1uat":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.Hasher,m=p.x64,f=m.Word,d=m.WordArray,u=p.algo;function o(){return f.create.apply(f,arguments)}var n=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],t=[];(function(){for(var e=0;e<80;e++)t[e]=o()})();var a=u.SHA512=v.extend({_doReset:function(){this._hash=new d.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(l,r){for(var s=this._hash.words,c=s[0],h=s[1],g=s[2],A=s[3],b=s[4],w=s[5],x=s[6],T=s[7],_=c.high,E=c.low,C=h.high,I=h.low,O=g.high,F=g.low,R=A.high,B=A.low,P=b.high,X=b.low,M=w.high,z=w.low,W=x.high,H=x.low,V=T.high,Q=T.low,G=_,ee=E,q=C,se=I,re=O,Ae=F,Te=R,Re=B,Ge=P,Ue=X,nt=M,Le=z,le=W,Xe=H,pe=V,Z=Q,Y=0;Y<80;Y++){var ne,ce,ye=t[Y];if(Y<16)ce=ye.high=l[r+Y*2]|0,ne=ye.low=l[r+Y*2+1]|0;else{var Ee=t[Y-15],Ce=Ee.high,ue=Ee.low,ge=(Ce>>>1|ue<<31)^(Ce>>>8|ue<<24)^Ce>>>7,Oe=(ue>>>1|Ce<<31)^(ue>>>8|Ce<<24)^(ue>>>7|Ce<<25),Je=t[Y-2],lt=Je.high,tt=Je.low,ke=(lt>>>19|tt<<13)^(lt<<3|tt>>>29)^lt>>>6,st=(tt>>>19|lt<<13)^(tt<<3|lt>>>29)^(tt>>>6|lt<<26),Ve=t[Y-7],Ot=Ve.high,Ut=Ve.low,ir=t[Y-16],lr=ir.high,Sr=ir.low;ne=Oe+Ut,ce=ge+Ot+(ne>>>0<Oe>>>0?1:0),ne=ne+st,ce=ce+ke+(ne>>>0<st>>>0?1:0),ne=ne+Sr,ce=ce+lr+(ne>>>0<Sr>>>0?1:0),ye.high=ce,ye.low=ne}var mt=Ge&nt^~Ge&le,or=Ue&Le^~Ue&Xe,et=G&q^G&re^q&re,ur=ee&se^ee&Ae^se&Ae,qr=(G>>>28|ee<<4)^(G<<30|ee>>>2)^(G<<25|ee>>>7),Fe=(ee>>>28|G<<4)^(ee<<30|G>>>2)^(ee<<25|G>>>7),$t=(Ge>>>14|Ue<<18)^(Ge>>>18|Ue<<14)^(Ge<<23|Ue>>>9),Lr=(Ue>>>14|Ge<<18)^(Ue>>>18|Ge<<14)^(Ue<<23|Ge>>>9),pt=n[Y],qt=pt.high,vr=pt.low,pn=Z+Lr,fr=pe+$t+(pn>>>0<Z>>>0?1:0),pn=pn+or,fr=fr+mt+(pn>>>0<or>>>0?1:0),pn=pn+vr,fr=fr+qt+(pn>>>0<vr>>>0?1:0),pn=pn+ne,fr=fr+ce+(pn>>>0<ne>>>0?1:0),gr=Fe+ur,dn=qr+et+(gr>>>0<Fe>>>0?1:0);pe=le,Z=Xe,le=nt,Xe=Le,nt=Ge,Le=Ue,Ue=Re+pn|0,Ge=Te+fr+(Ue>>>0<Re>>>0?1:0)|0,Te=re,Re=Ae,re=q,Ae=se,q=G,se=ee,ee=pn+gr|0,G=fr+dn+(ee>>>0<pn>>>0?1:0)|0}E=c.low=E+ee,c.high=_+G+(E>>>0<ee>>>0?1:0),I=h.low=I+se,h.high=C+q+(I>>>0<se>>>0?1:0),F=g.low=F+Ae,g.high=O+re+(F>>>0<Ae>>>0?1:0),B=A.low=B+Re,A.high=R+Te+(B>>>0<Re>>>0?1:0),X=b.low=X+Ue,b.high=P+Ge+(X>>>0<Ue>>>0?1:0),z=w.low=z+Le,w.high=M+nt+(z>>>0<Le>>>0?1:0),H=x.low=H+Xe,x.high=W+le+(H>>>0<Xe>>>0?1:0),Q=T.low=Q+Z,T.high=V+pe+(Q>>>0<Z>>>0?1:0)},_doFinalize:function(){var l=this._data,r=l.words,s=this._nDataBytes*8,c=l.sigBytes*8;r[c>>>5]|=128<<24-c%32,r[(c+128>>>10<<5)+30]=Math.floor(s/4294967296),r[(c+128>>>10<<5)+31]=s,l.sigBytes=r.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var l=v.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});p.SHA512=v._createHelper(a),p.HmacSHA512=v._createHmacHelper(a)}(),y.SHA512})},"1vzs":function(k,D,i){"use strict";i.d(D,"a",function(){return r});var y=i("q1tI"),p=i.n(y),S=i("HQEm"),v=i.n(S),m=i("gZBC"),f=i.n(m),d=i("NAnI"),u=i.n(d),o=i("V/uB"),n=i.n(o),t=i("kbBi"),a=i.n(t),e=i("w6Tc"),l=i.n(e);function r(s){var c=s.suffixIcon,h=s.clearIcon,g=s.menuItemSelectedIcon,A=s.removeIcon,b=s.loading,w=s.multiple,x=s.prefixCls,T=h;h||(T=y.createElement(a.a,null));var _=null;if(c!==void 0)_=c;else if(b)_=y.createElement(f.a,{spin:!0});else{var E="".concat(x,"-suffix");_=function(F){var R=F.open,B=F.showSearch;return R&&B?y.createElement(l.a,{className:E}):y.createElement(v.a,{className:E})}}var C=null;g!==void 0?C=g:w?C=y.createElement(u.a,null):C=null;var I=null;return A!==void 0?I=A:I=y.createElement(n.a,null),{clearIcon:T,suffixIcon:_,itemIcon:C,removeIcon:I}}},"1xaR":function(k,D,i){var y=i("ProS"),p=i("bYtY");i("qgGe"),i("NA0q"),i("RPvy");var S=i("mOdp"),v=i("y3NT"),m=i("0/Rx");y.registerVisual(p.curry(S,"sunburst")),y.registerLayout(p.curry(v,"sunburst")),y.registerProcessor(p.curry(m,"sunburst"))},"24YM":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SizeSensorId=D.SensorTabIndex=D.SensorClassName=void 0;var y="size-sensor-id";D.SizeSensorId=y;var p="size-sensor-object";D.SensorClassName=p;var S="-1";D.SensorTabIndex=S},"2548":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("6GrX"),v=i("IUWy"),m=i("IwbS"),f=i("Qxkt"),d=i("gPAo"),u=i("eRkO"),o=y.extendComponentView({type:"toolbox",render:function(t,a,e,l){var r=this.group;if(r.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),c=t.get("feature")||{},h=this._features||(this._features={}),g=[];p.each(c,function(w,x){g.push(x)}),new d(this._featureNames||[],g).add(A).update(A).remove(p.curry(A,null)).execute(),this._featureNames=g;function A(w,x){var T=g[w],_=g[x],E=c[T],C=new f(E,t,t.ecModel),I;if(l&&l.newTitle!=null&&l.featureName===T&&(E.title=l.newTitle),T&&!_){if(n(T))I={model:C,onclick:C.option.onclick,featureName:T};else{var O=v.get(T);if(!O)return;I=new O(C,a,e)}h[T]=I}else{if(I=h[_],!I)return;I.model=C,I.ecModel=a,I.api=e}if(!T&&_){I.dispose&&I.dispose(a,e);return}if(!C.get("show")||I.unusable){I.remove&&I.remove(a,e);return}b(C,I,T),C.setIconStatus=function(F,R){var B=this.option,P=this.iconPaths;B.iconStatus=B.iconStatus||{},B.iconStatus[F]=R,P[F]&&P[F].trigger(R)},I.render&&I.render(C,a,e,l)}function b(w,x,T){var _=w.getModel("iconStyle"),E=w.getModel("emphasis.iconStyle"),C=x.getIcons?x.getIcons():w.get("icon"),I=w.get("title")||{};if(typeof C=="string"){var O=C,F=I;C={},I={},C[T]=O,I[T]=F}var R=w.iconPaths={};p.each(C,function(B,P){var X=m.createIcon(B,{},{x:-s/2,y:-s/2,width:s,height:s});X.setStyle(_.getItemStyle()),X.hoverStyle=E.getItemStyle(),X.setStyle({text:I[P],textAlign:E.get("textAlign"),textBorderRadius:E.get("textBorderRadius"),textPadding:E.get("textPadding"),textFill:null});var M=t.getModel("tooltip");M&&M.get("show")&&X.attr("tooltip",p.extend({content:I[P],formatter:M.get("formatter",!0)||function(){return I[P]},formatterParams:{componentType:"toolbox",name:P,title:I[P],$vars:["name","title"]},position:M.get("position",!0)||"bottom"},M.option)),m.setHoverStyle(X),t.get("showTitle")&&(X.__title=I[P],X.on("mouseover",function(){var z=E.getItemStyle(),W=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:E.get("textFill")||z.fill||z.stroke||"#000",textBackgroundColor:E.get("textBackgroundColor"),textPosition:E.get("textPosition")||W})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(w.get("iconStatus."+P)||"normal"),r.add(X),X.on("click",p.bind(x.onclick,x,a,e,P)),R[P]=X})}u.layout(r,t,e),r.add(u.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(w){var x=w.__title,T=w.hoverStyle;if(T&&x){var _=S.getBoundingRect(x,S.makeFont(T)),E=w.position[0]+r.position[0],C=w.position[1]+r.position[1]+s,I=!1;C+_.height>e.getHeight()&&(T.textPosition="top",I=!0);var O=I?-5-_.height:s+8;E+_.width/2>e.getWidth()?(T.textPosition=["100%",O],T.textAlign="right"):E-_.width/2<0&&(T.textPosition=[0,O],T.textAlign="left")}})},updateView:function(t,a,e,l){p.each(this._features,function(r){r.updateView&&r.updateView(r.model,a,e,l)})},remove:function(t,a){p.each(this._features,function(e){e.remove&&e.remove(t,a)}),this.group.removeAll()},dispose:function(t,a){p.each(this._features,function(e){e.dispose&&e.dispose(t,a)})}});function n(t){return t.indexOf("my")===0}k.exports=o},"2B6p":function(k,D){function i(y,p,S){var v=y.getZoom(),m=y.getCenter(),f=p.zoom,d=y.dataToPoint(m);if(p.dx!=null&&p.dy!=null){d[0]-=p.dx,d[1]-=p.dy;var m=y.pointToData(d);y.setCenter(m)}if(f!=null){if(S){var u=S.min||0,o=S.max||Infinity;f=Math.max(Math.min(v*f,o),u)/v}y.scale[0]*=f,y.scale[1]*=f;var n=y.position,t=(p.originX-n[0])*(f-1),a=(p.originY-n[1])*(f-1);n[0]-=t,n[1]-=a,y.updateTransform();var m=y.pointToData(d);y.setCenter(m),y.setZoom(f*v)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=i},"2BaD":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseCircleOutlined";var d=D.a=p.forwardRef(f)},"2DNl":function(k,D,i){var y=i("IMiH"),p=i("loD1"),S=i("59Ip"),v=i("aKvl"),m=i("n1HI"),f=i("hX1E"),d=f.normalizeRadian,u=i("Sj9i"),o=i("hyiK"),n=y.CMD,t=Math.PI*2,a=1e-4;function e(x,T){return Math.abs(x-T)<a}var l=[-1,-1,-1],r=[-1,-1];function s(){var x=r[0];r[0]=r[1],r[1]=x}function c(x,T,_,E,C,I,O,F,R,B){if(B>T&&B>E&&B>I&&B>F||B<T&&B<E&&B<I&&B<F)return 0;var P=u.cubicRootAt(T,E,I,F,B,l);if(P===0)return 0;for(var X=0,M=-1,z,W,H=0;H<P;H++){var V=l[H],Q=V===0||V===1?.5:1,G=u.cubicAt(x,_,C,O,V);if(G<R)continue;M<0&&(M=u.cubicExtrema(T,E,I,F,r),r[1]<r[0]&&M>1&&s(),z=u.cubicAt(T,E,I,F,r[0]),M>1&&(W=u.cubicAt(T,E,I,F,r[1]))),M===2?V<r[0]?X+=z<T?Q:-Q:V<r[1]?X+=W<z?Q:-Q:X+=F<W?Q:-Q:V<r[0]?X+=z<T?Q:-Q:X+=F<z?Q:-Q}return X}function h(x,T,_,E,C,I,O,F){if(F>T&&F>E&&F>I||F<T&&F<E&&F<I)return 0;var R=u.quadraticRootAt(T,E,I,F,l);if(R===0)return 0;var B=u.quadraticExtremum(T,E,I);if(B>=0&&B<=1){for(var P=0,X=u.quadraticAt(T,E,I,B),M=0;M<R;M++){var z=l[M]===0||l[M]===1?.5:1,W=u.quadraticAt(x,_,C,l[M]);if(W<O)continue;l[M]<B?P+=X<T?z:-z:P+=I<X?z:-z}return P}else{var z=l[0]===0||l[0]===1?.5:1,W=u.quadraticAt(x,_,C,l[0]);return W<O?0:I<T?z:-z}}function g(x,T,_,E,C,I,O,F){if(F-=T,F>_||F<-_)return 0;var R=Math.sqrt(_*_-F*F);l[0]=-R,l[1]=R;var B=Math.abs(E-C);if(B<1e-4)return 0;if(B%t<1e-4){E=0,C=t;var P=I?1:-1;return O>=l[0]+x&&O<=l[1]+x?P:0}if(I){var R=E;E=d(C),C=d(R)}else E=d(E),C=d(C);E>C&&(C+=t);for(var X=0,M=0;M<2;M++){var z=l[M];if(z+x>O){var W=Math.atan2(F,z),P=I?1:-1;W<0&&(W=t+W),(W>=E&&W<=C||W+t>=E&&W+t<=C)&&(W>Math.PI/2&&W<Math.PI*1.5&&(P=-P),X+=P)}}return X}function A(x,T,_,E,C){for(var I=0,O=0,F=0,R=0,B=0,P=0;P<x.length;){var X=x[P++];X===n.M&&P>1&&(_||(I+=o(O,F,R,B,E,C))),P===1&&(O=x[P],F=x[P+1],R=O,B=F);switch(X){case n.M:R=x[P++],B=x[P++],O=R,F=B;break;case n.L:if(_){if(p.containStroke(O,F,x[P],x[P+1],T,E,C))return!0}else I+=o(O,F,x[P],x[P+1],E,C)||0;O=x[P++],F=x[P++];break;case n.C:if(_){if(S.containStroke(O,F,x[P++],x[P++],x[P++],x[P++],x[P],x[P+1],T,E,C))return!0}else I+=c(O,F,x[P++],x[P++],x[P++],x[P++],x[P],x[P+1],E,C)||0;O=x[P++],F=x[P++];break;case n.Q:if(_){if(v.containStroke(O,F,x[P++],x[P++],x[P],x[P+1],T,E,C))return!0}else I+=h(O,F,x[P++],x[P++],x[P],x[P+1],E,C)||0;O=x[P++],F=x[P++];break;case n.A:var M=x[P++],z=x[P++],W=x[P++],H=x[P++],V=x[P++],Q=x[P++];P+=1;var G=1-x[P++],ee=Math.cos(V)*W+M,q=Math.sin(V)*H+z;P>1?I+=o(O,F,ee,q,E,C):(R=ee,B=q);var se=(E-M)*H/W+M;if(_){if(m.containStroke(M,z,H,V,V+Q,G,T,se,C))return!0}else I+=g(M,z,H,V,V+Q,G,se,C);O=Math.cos(V+Q)*W+M,F=Math.sin(V+Q)*H+z;break;case n.R:R=O=x[P++],B=F=x[P++];var re=x[P++],Ae=x[P++],ee=R+re,q=B+Ae;if(_){if(p.containStroke(R,B,ee,B,T,E,C)||p.containStroke(ee,B,ee,q,T,E,C)||p.containStroke(ee,q,R,q,T,E,C)||p.containStroke(R,q,R,B,T,E,C))return!0}else I+=o(ee,B,ee,q,E,C),I+=o(R,q,R,B,E,C);break;case n.Z:if(_){if(p.containStroke(O,F,R,B,T,E,C))return!0}else I+=o(O,F,R,B,E,C);O=R,F=B;break}}return!_&&!e(F,B)&&(I+=o(O,F,R,B,E,C)||0),I!==0}function b(x,T,_){return A(x,0,!1,T,_)}function w(x,T,_,E){return A(x,T,!0,_,E)}D.contain=b,D.containStroke=w},"2dDv":function(k,D,i){var y=i("bYtY"),p=i("Fofx"),S=i("+TT/"),v=i("aX7z"),m=i("D1WM"),f=i("IwbS"),d=i("OELB"),u=i("72pK"),o=y.each,n=Math.min,t=Math.max,a=Math.floor,e=Math.ceil,l=d.round,r=Math.PI;function s(b,w,x){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,w,x)}s.prototype={type:"parallel",constructor:s,_init:function(b,w,x){var T=b.dimensions,_=b.parallelAxisIndex;o(T,function(E,C){var I=_[C],O=w.getComponent("parallelAxis",I),F=this._axesMap.set(E,new m(E,v.createScaleByModel(O),[0,0],O.get("type"),I)),R=F.type==="category";F.onBand=R&&O.get("boundaryGap"),F.inverse=O.get("inverse"),O.axis=F,F.model=O,F.coordinateSystem=O.coordinateSystem=this},this)},update:function(b,w){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var w=this._makeLayoutInfo(),x=w.axisBase,T=w.layoutBase,_=w.pixelDimIndex,E=b[1-_],C=b[_];return E>=x&&E<=x+w.axisLength&&C>=T&&C<=T+w.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,w){w.eachSeries(function(x){if(!b.contains(x,w))return;var T=x.getData();o(this.dimensions,function(_){var E=this._axesMap.get(_);E.scale.unionExtentFromData(T,T.mapDimension(_)),v.niceScaleExtent(E.scale,E.model)},this)},this)},resize:function(b,w){this._rect=S.getLayoutRect(b.getBoxLayoutParams(),{width:w.getWidth(),height:w.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,w=this._rect,x=["x","y"],T=["width","height"],_=b.get("layout"),E=_==="horizontal"?0:1,C=w[T[E]],I=[0,C],O=this.dimensions.length,F=c(b.get("axisExpandWidth"),I),R=c(b.get("axisExpandCount")||0,[0,O]),B=b.get("axisExpandable")&&O>3&&O>R&&R>1&&F>0&&C>0,P=b.get("axisExpandWindow"),X;if(P)X=c(P[1]-P[0],I),P[1]=P[0]+X;else{X=c(F*(R-1),I);var M=b.get("axisExpandCenter")||a(O/2);P=[F*M-X/2],P[1]=P[0]+X}var z=(C-X)/(O-R);z<3&&(z=0);var W=[a(l(P[0]/F,1))+1,e(l(P[1]/F,1))-1],H=z/F*P[0];return{layout:_,pixelDimIndex:E,layoutBase:w[x[E]],layoutLength:C,axisBase:w[x[1-E]],axisLength:w[T[1-E]],axisExpandable:B,axisExpandWidth:F,axisCollapseWidth:z,axisExpandWindow:P,axisCount:O,winInnerIndices:W,axisExpandWindow0Pos:H}},_layoutAxes:function(){var b=this._rect,w=this._axesMap,x=this.dimensions,T=this._makeLayoutInfo(),_=T.layout;w.each(function(E){var C=[0,T.axisLength],I=E.inverse?1:0;E.setExtent(C[I],C[1-I])}),o(x,function(E,C){var I=(T.axisExpandable?g:h)(C,T),O={horizontal:{x:I.position,y:T.axisLength},vertical:{x:0,y:I.position}},F={horizontal:r/2,vertical:0},R=[O[_].x+b.x,O[_].y+b.y],B=F[_],P=p.create();p.rotate(P,P,B),p.translate(P,P,R),this._axesLayout[E]={position:R,rotation:B,transform:P,axisNameAvailableWidth:I.axisNameAvailableWidth,axisLabelShow:I.axisLabelShow,nameTruncateMaxWidth:I.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,w){return this.axisCoordToPoint(this._axesMap.get(w).dataToCoord(b),w)},eachActiveState:function(b,w,x,T){x==null&&(x=0),T==null&&(T=b.count());var _=this._axesMap,E=this.dimensions,C=[],I=[];y.each(E,function(z){C.push(b.mapDimension(z)),I.push(_.get(z).model)});for(var O=this.hasAxisBrushed(),F=x;F<T;F++){var R;if(!O)R="normal";else{R="active";for(var B=b.getValues(C,F),P=0,X=E.length;P<X;P++){var M=I[P].getActiveState(B[P]);if(M==="inactive"){R="inactive";break}}}w(R,F)}},hasAxisBrushed:function(){for(var b=this.dimensions,w=this._axesMap,x=!1,T=0,_=b.length;T<_;T++)w.get(b[T]).model.getActiveState()!=="normal"&&(x=!0);return x},axisCoordToPoint:function(b,w){var x=this._axesLayout[w];return f.applyTransform([b,0],x.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var w=this._makeLayoutInfo(),x=w.pixelDimIndex,T=w.axisExpandWindow.slice(),_=T[1]-T[0],E=[0,w.axisExpandWidth*(w.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:T};var C=b[x]-w.layoutBase-w.axisExpandWindow0Pos,I,O="slide",F=w.axisCollapseWidth,R=this._model.get("axisExpandSlideTriggerArea"),B=R[0]!=null;if(F)B&&F&&C<_*R[0]?(O="jump",I=C-_*R[2]):B&&F&&C>_*(1-R[0])?(O="jump",I=C-_*(1-R[2])):(I=C-_*R[1])>=0&&(I=C-_*(1-R[1]))<=0&&(I=0),I*=w.axisExpandWidth/F,I?u(I,T,E,"all"):O="none";else{var _=T[1]-T[0],P=E[1]*C/_;T=[t(0,P-_/2)],T[1]=n(E[1],T[0]+_),T[0]=T[1]-_}return{axisExpandWindow:T,behavior:O}}};function c(b,w){return n(t(b,w[0]),w[1])}function h(b,w){var x=w.layoutLength/(w.axisCount-1);return{position:x*b,axisNameAvailableWidth:x,axisLabelShow:!0}}function g(b,w){var x=w.layoutLength,T=w.axisExpandWidth,_=w.axisCount,E=w.axisCollapseWidth,C=w.winInnerIndices,I,O=E,F=!1,R;return b<C[0]?(I=b*E,R=E):b<=C[1]?(I=w.axisExpandWindow0Pos+b*T-w.axisExpandWindow[0],O=T,F=!0):(I=x-(_-1-b)*E,R=E),{position:I,axisNameAvailableWidth:O,axisLabelShow:F,nameTruncateMaxWidth:R}}var A=s;k.exports=A},"2fGM":function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("nkfE"),v=i("ICMv"),m=p.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,v);var f={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function d(u,o){return o.type||(o.data?"category":"value")}S("angle",m,d,f.angle),S("radius",m,d,f.radius)},"2fM7":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),l=i("BGR+"),r=i("TSYQ"),s=i.n(r),c=i("1OyB"),h=i("vuIU"),g=i("Ji7U"),A=i("LK+K"),b=i("rePB"),w=i("Ff2n"),x=i("ODXe"),T=i("4IlW"),_=i("bX4T"),E=i("YrtM"),C=i("+nKL"),I=function(Ne){var Ie=Ne.className,Ze=Ne.customizeIcon,ct=Ne.customizeIconProps,gt=Ne.onMouseDown,kt=Ne.onClick,xr=Ne.children,Hr;return typeof Ze=="function"?Hr=Ze(ct):Hr=Ze,e.createElement("span",{className:Ie,onMouseDown:function(Nt){Nt.preventDefault(),gt&&gt(Nt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:kt,"aria-hidden":!0},Hr!==void 0?Hr:e.createElement("span",{className:s()(Ie.split(/\s+/).map(function(on){return"".concat(on,"-icon")}))},xr))},O=I,F=function(Ne,Ie){var Ze=Ne.prefixCls,ct=Ne.id,gt=Ne.flattenOptions,kt=Ne.childrenAsData,xr=Ne.values,Hr=Ne.searchValue,on=Ne.multiple,Nt=Ne.defaultActiveFirstOption,ot=Ne.height,dt=Ne.itemHeight,Yt=Ne.notFoundContent,Pt=Ne.open,Et=Ne.menuItemSelectedIcon,Bt=Ne.virtual,wt=Ne.onSelect,Mt=Ne.onToggleOpen,Nr=Ne.onActiveValue,Tr=Ne.onScroll,yr=Ne.onMouseEnter,en="".concat(Ze,"-item"),sn=Object(E.a)(function(){return gt},[Pt,gt],function(ze,$e){return $e[0]&&ze[1]!==$e[1]}),Vn=e.useRef(null),jn=function($e){$e.preventDefault()},ri=function($e){Vn.current&&Vn.current.scrollTo({index:$e})},ci=function($e){for(var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ft=sn.length,Ht=0;Ht<ft;Ht+=1){var Er=($e+Ht*St+ft)%ft,Fr=sn[Er],tn=Fr.group,Zt=Fr.data;if(!tn&&!Zt.disabled)return Er}return-1},gi=e.useState(function(){return ci(0)}),Ni=Object(x.a)(gi,2),Qe=Ni[0],Se=Ni[1],Pe=function($e){Se($e);var St=sn[$e];if(!St){Nr(null,-1);return}Nr(St.data.value,$e)};e.useEffect(function(){Pe(Nt!==!1?ci(0):-1)},[sn.length,Hr]),e.useEffect(function(){var ze=setTimeout(function(){if(!on&&Pt&&xr.size===1){var $e=Array.from(xr)[0],St=sn.findIndex(function(ft){var Ht=ft.data;return Ht.value===$e});Pe(St),ri(St)}});return function(){return clearTimeout(ze)}},[Pt]);var He=function($e){$e!==void 0&&wt($e,{selected:!xr.has($e)}),on||Mt(!1)};if(e.useImperativeHandle(Ie,function(){return{onKeyDown:function($e){var St=$e.which;switch(St){case T.a.UP:case T.a.DOWN:{var ft=0;if(St===T.a.UP?ft=-1:St===T.a.DOWN&&(ft=1),ft!==0){var Ht=ci(Qe+ft,ft);ri(Ht),Pe(Ht)}break}case T.a.ENTER:{var Er=sn[Qe];Er&&!Er.data.disabled?He(Er.data.value):He(void 0),Pt&&$e.preventDefault();break}case T.a.ESC:Mt(!1)}},onKeyUp:function(){},scrollTo:function($e){ri($e)}}}),sn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(ct,"_list"),className:"".concat(en,"-empty"),onMouseDown:jn},Yt);function Ye(ze){var $e=sn[ze];if(!$e)return null;var St=$e.data||{},ft=St.value,Ht=St.label,Er=St.children,Fr=Object(_.a)(St,!0),tn=kt?Er:Ht;return $e?e.createElement("div",Object.assign({"aria-label":typeof tn=="string"?tn:null},Fr,{key:ze,role:"option",id:"".concat(ct,"_list_").concat(ze),"aria-selected":xr.has(ft)}),ft):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(ct,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ye(Qe-1),Ye(Qe),Ye(Qe+1)),e.createElement(C.a,{itemKey:"key",ref:Vn,data:sn,height:ot,itemHeight:dt,fullHeight:!1,onMouseDown:jn,onScroll:Tr,virtual:Bt,onMouseEnter:yr},function(ze,$e){var St,ft=ze.group,Ht=ze.groupOption,Er=ze.data,Fr=Er.label,tn=Er.key;if(ft)return e.createElement("div",{className:s()(en,"".concat(en,"-group"))},Fr!==void 0?Fr:tn);var Zt=Er.disabled,Rn=Er.value,vn=Er.title,Un=Er.children,hn=Er.style,Wr=Er.className,Kn=Object(w.a)(Er,["disabled","value","title","children","style","className"]),ei=xr.has(Rn),Si="".concat(en,"-option"),Vr=s()(en,Si,Wr,(St={},Object(b.a)(St,"".concat(Si,"-grouped"),Ht),Object(b.a)(St,"".concat(Si,"-active"),Qe===$e&&!Zt),Object(b.a)(St,"".concat(Si,"-disabled"),Zt),Object(b.a)(St,"".concat(Si,"-selected"),ei),St)),fn=kt?Un:Fr,kn=!Et||typeof Et=="function"||ei;return e.createElement("div",Object.assign({},Kn,{"aria-selected":ei,className:Vr,title:vn,onMouseMove:function(){if(Qe===$e||Zt)return;Pe($e)},onClick:function(){Zt||He(Rn)},style:hn}),e.createElement("div",{className:"".concat(Si,"-content")},fn||Rn),e.isValidElement(Et)||ei,kn&&e.createElement(O,{className:"".concat(en,"-option-state"),customizeIcon:Et,customizeIconProps:{isSelected:ei}},ei?"\u2713":null))}))},R=e.forwardRef(F);R.displayName="OptionList";var B=R,P=function(){return null};P.isSelectOption=!0;var X=P,M=function(){return null};M.isSelectOptGroup=!0;var z=M,W=i("VTBJ"),H=i("Zm9Q");function V(_e){var Ne=_e.key,Ie=_e.props,Ze=Ie.children,ct=Ie.value,gt=Object(w.a)(Ie,["children","value"]);return Object(W.a)({key:Ne,value:ct!==void 0?ct:Ne,children:Ze},gt)}function Q(_e){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(H.a)(_e).map(function(Ie,Ze){if(!e.isValidElement(Ie)||!Ie.type)return null;var ct=Ie.type.isSelectOptGroup,gt=Ie.key,kt=Ie.props,xr=kt.children,Hr=Object(w.a)(kt,["children"]);return Ne||!ct?V(Ie):Object(W.a)(Object(W.a)({key:"__RC_SELECT_GRP__".concat(gt===null?Ze:gt,"__"),label:gt},Hr),{},{options:Q(xr)})}).filter(function(Ie){return Ie})}var G=i("KQm4"),ee=i("T5bk"),q=i("U8pU"),se=i("Kwbf");function re(_e){return Array.isArray(_e)?_e:_e!==void 0?[_e]:[]}function Ae(_e,Ne){var Ie=Ne.labelInValue,Ze=Ne.combobox;if(_e===void 0||_e===""&&Ze)return[];var ct=Array.isArray(_e)?_e:[_e];return Ie?ct.map(function(gt){var kt=gt.key,xr=gt.value;return xr!==void 0?xr:kt}):ct}function Te(_e,Ne){var Ie=Ne.optionLabelProp,Ze=Ne.labelInValue,ct=Ne.prevValue,gt=Ne.options,kt=Ne.getLabeledValue,xr=_e;return Ze&&(xr=xr.map(function(Hr){return kt(Hr,{options:gt,prevValue:ct,labelInValue:Ze,optionLabelProp:Ie})})),xr}function Re(_e,Ne){var Ie=Object(G.a)(Ne),Ze;for(Ze=_e.length-1;Ze>=0&&_e[Ze].disabled;Ze-=1);var ct=null;return Ze!==-1&&(ct=Ie[Ze],Ie.splice(Ze,1)),{values:Ie,removedValue:ct}}var Ge=typeof window!="undefined"&&window.document&&window.document.documentElement,Ue=Ge,nt=0;function Le(){var _e;return Ue?(_e=nt,nt+=1):_e="TEST_OR_SSR",_e}function le(_e,Ne){var Ie=_e.key,Ze;return"value"in _e&&(Ze=_e.value),Ie!=null?Ie:Ze!==void 0?Ze:"rc-index-key-".concat(Ne)}function Xe(_e){var Ne=[];function Ie(Ze,ct){Ze.forEach(function(gt){ct||!("options"in gt)?Ne.push({key:le(gt,Ne.length),groupOption:ct,data:gt}):(Ne.push({key:le(gt,Ne.length),group:!0,data:gt}),Ie(gt.options,!0))})}return Ie(_e,!1),Ne}function pe(_e){var Ne=Object(W.a)({},_e);return"props"in Ne||Object.defineProperty(Ne,"props",{get:function(){return Object(se.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ne}}),Ne}function Z(_e,Ne){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ze=Ie.prevValueOptions,ct=Ze===void 0?[]:Ze,gt=new Map;return Ne.forEach(function(kt){if(!kt.group){var xr=kt.data;gt.set(xr.value,xr)}}),_e.map(function(kt){var xr=gt.get(kt);return xr||(xr=Object(W.a)({},ct.find(function(Hr){return Hr._INTERNAL_OPTION_VALUE_===kt}))),pe(xr)})}var Y=function(Ne,Ie){var Ze=Ie.options,ct=Ie.prevValue,gt=Ie.labelInValue,kt=Ie.optionLabelProp,xr=Z([Ne],Ze)[0],Hr={value:Ne},on,Nt=re(ct);return gt&&(on=Nt.find(function(ot){return Object(q.a)(ot)==="object"&&"value"in ot?ot.value===Ne:ot.key===Ne})),on&&Object(q.a)(on)==="object"&&"label"in on?(Hr.label=on.label,xr&&typeof on.label=="string"&&typeof xr[kt]=="string"&&on.label.trim()!==xr[kt].trim()&&Object(se.a)(!1,"`label` of `value` is not same as `label` in Select options.")):xr&&kt in xr?Hr.label=xr[kt]:Hr.label=Ne,Hr.key=Hr.value,Hr};function ne(_e){return re(_e).join("")}function ce(_e){return function(Ne,Ie){var Ze=Ne.toLowerCase();if("options"in Ie)return ne(Ie.label).toLowerCase().includes(Ze);var ct=Ie[_e],gt=ne(ct).toLowerCase();return gt.includes(Ze)}}function ye(_e,Ne,Ie){var Ze=Ie.optionFilterProp,ct=Ie.filterOption,gt=[],kt;return ct===!1?Ne:(typeof ct=="function"?kt=ct:kt=ce(Ze),Ne.forEach(function(xr){if("options"in xr){var Hr=kt(_e,xr);if(Hr)gt.push(xr);else{var on=xr.options.filter(function(Nt){return kt(_e,Nt)});on.length&&gt.push(Object(W.a)(Object(W.a)({},xr),{},{options:on}))}return}kt(_e,pe(xr))&&gt.push(xr)}),gt)}function Ee(_e,Ne){if(!Ne||!Ne.length)return null;var Ie=!1;function Ze(gt,kt){var xr=Object(ee.a)(kt),Hr=xr[0],on=xr.slice(1);if(!Hr)return[gt];var Nt=gt.split(Hr);return Ie=Ie||Nt.length>1,Nt.reduce(function(ot,dt){return[].concat(Object(G.a)(ot),Object(G.a)(Ze(dt,on)))},[]).filter(function(ot){return ot})}var ct=Ze(_e,Ne);return Ie?ct:null}function Ce(_e,Ne){var Ie=Z([_e],Ne)[0];return Ie.disabled}function ue(_e,Ne,Ie,Ze){var ct=re(Ne).slice().sort(),gt=Object(G.a)(_e),kt=new Set;return _e.forEach(function(xr){xr.options?xr.options.forEach(function(Hr){kt.add(Hr.value)}):kt.add(xr.value)}),ct.forEach(function(xr){var Hr=Ze?xr.value:xr;if(!kt.has(Hr)){var on;gt.push(Ze?(on={},Object(b.a)(on,Ie,xr.label),Object(b.a)(on,"value",Hr),on):{value:Hr})}}),gt}var ge=i("6cGi"),Oe=i("HTfv"),Je=i("c+Xe"),lt=function(Ne,Ie){var Ze=Ne.prefixCls,ct=Ne.id,gt=Ne.inputElement,kt=Ne.disabled,xr=Ne.tabIndex,Hr=Ne.autoFocus,on=Ne.autoComplete,Nt=Ne.editable,ot=Ne.accessibilityIndex,dt=Ne.value,Yt=Ne.onKeyDown,Pt=Ne.onMouseDown,Et=Ne.onChange,Bt=Ne.onPaste,wt=Ne.onCompositionStart,Mt=Ne.onCompositionEnd,Nr=Ne.open,Tr=Ne.attrs,yr=gt||e.createElement("input",null),en=yr,sn=en.ref,Vn=en.props,jn=Vn.onKeyDown,ri=Vn.onChange,ci=Vn.onMouseDown,gi=Vn.onCompositionStart,Ni=Vn.onCompositionEnd,Qe=Vn.style;return yr=e.cloneElement(yr,Object(W.a)(Object(W.a)({id:ct,ref:Object(Je.a)(Ie,sn),disabled:kt,tabIndex:xr,autoComplete:on||"off",autoFocus:Hr,className:"".concat(Ze,"-selection-search-input"),style:Object(W.a)(Object(W.a)({},Qe),{},{opacity:Nt?null:0}),role:"combobox","aria-expanded":Nr,"aria-haspopup":"listbox","aria-owns":"".concat(ct,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ct,"_list"),"aria-activedescendant":"".concat(ct,"_list_").concat(ot)},Tr),{},{value:Nt?dt:"",readOnly:!Nt,unselectable:Nt?null:"on",onKeyDown:function(Pe){Yt(Pe),jn&&jn(Pe)},onMouseDown:function(Pe){Pt(Pe),ci&&ci(Pe)},onChange:function(Pe){Et(Pe),ri&&ri(Pe)},onCompositionStart:function(Pe){wt(Pe),gi&&gi(Pe)},onCompositionEnd:function(Pe){Mt(Pe),Ni&&Ni(Pe)},onPaste:Bt})),yr},tt=e.forwardRef(lt);tt.displayName="Input";var ke=tt;function st(_e,Ne){Ue?e.useLayoutEffect(_e,Ne):e.useEffect(_e,Ne)}var Ve="__RC_SELECT_MAX_REST_COUNT__",Ot=function(Ne){var Ie=Ne.id,Ze=Ne.prefixCls,ct=Ne.values,gt=Ne.open,kt=Ne.searchValue,xr=Ne.inputRef,Hr=Ne.placeholder,on=Ne.disabled,Nt=Ne.mode,ot=Ne.showSearch,dt=Ne.autoFocus,Yt=Ne.autoComplete,Pt=Ne.accessibilityIndex,Et=Ne.tabIndex,Bt=Ne.removeIcon,wt=Ne.choiceTransitionName,Mt=Ne.maxTagCount,Nr=Ne.maxTagTextLength,Tr=Ne.maxTagPlaceholder,yr=Tr===void 0?function(Rn){return"+ ".concat(Rn.length," ...")}:Tr,en=Ne.tagRender,sn=Ne.onSelect,Vn=Ne.onInputChange,jn=Ne.onInputPaste,ri=Ne.onInputKeyDown,ci=Ne.onInputMouseDown,gi=Ne.onInputCompositionStart,Ni=Ne.onInputCompositionEnd,Qe=e.useState(!1),Se=Object(x.a)(Qe,2),Pe=Se[0],He=Se[1],Ye=e.useRef(null),ze=e.useState(0),$e=Object(x.a)(ze,2),St=$e[0],ft=$e[1];e.useEffect(function(){He(!0)},[]);var Ht=gt||Nt==="tags"?kt:"",Er=Nt==="tags"||gt&&ot;st(function(){ft(Ye.current.scrollWidth)},[Ht]);var Fr=ct,tn;typeof Mt=="number"&&(tn=ct.length-Mt,Fr=ct.slice(0,Mt)),typeof Nr=="number"&&(Fr=Fr.map(function(Rn){var vn=Rn.label,Un=Object(w.a)(Rn,["label"]),hn=vn;if(typeof vn=="string"||typeof vn=="number"){var Wr=String(hn);Wr.length>Nr&&(hn="".concat(Wr.slice(0,Nr),"..."))}return Object(W.a)(Object(W.a)({},Un),{},{label:hn})})),tn>0&&Fr.push({key:Ve,label:typeof yr=="function"?yr(ct.slice(Mt)):yr});var Zt=e.createElement(Oe.CSSMotionList,{component:!1,keys:Fr,motionName:wt,motionAppear:Pe},function(Rn){var vn=Rn.key,Un=Rn.label,hn=Rn.value,Wr=Rn.disabled,Kn=Rn.className,ei=Rn.style,Si=vn||hn,Vr=vn!==Ve&&!Wr,fn=function(yt){yt.preventDefault(),yt.stopPropagation()},kn=function(yt){yt&&yt.stopPropagation(),sn(hn,{selected:!1})};return typeof en=="function"?e.createElement("span",{key:Si,onMouseDown:fn,className:Kn,style:ei},en({label:Un,value:hn,disabled:Wr,closable:Vr,onClose:kn})):e.createElement("span",{key:Si,className:s()(Kn,"".concat(Ze,"-selection-item"),Object(b.a)({},"".concat(Ze,"-selection-item-disabled"),Wr)),style:ei},e.createElement("span",{className:"".concat(Ze,"-selection-item-content")},Un),Vr&&e.createElement(O,{className:"".concat(Ze,"-selection-item-remove"),onMouseDown:fn,onClick:kn,customizeIcon:Bt},"\xD7"))});return e.createElement(e.Fragment,null,Zt,e.createElement("span",{className:"".concat(Ze,"-selection-search"),style:{width:St}},e.createElement(ke,{ref:xr,open:gt,prefixCls:Ze,id:Ie,inputElement:null,disabled:on,autoFocus:dt,autoComplete:Yt,editable:Er,accessibilityIndex:Pt,value:Ht,onKeyDown:ri,onMouseDown:ci,onChange:Vn,onPaste:jn,onCompositionStart:gi,onCompositionEnd:Ni,tabIndex:Et,attrs:Object(_.a)(Ne,!0)}),e.createElement("span",{ref:Ye,className:"".concat(Ze,"-selection-search-mirror"),"aria-hidden":!0},Ht,"\xA0")),!ct.length&&!Ht&&e.createElement("span",{className:"".concat(Ze,"-selection-placeholder")},Hr))},Ut=Ot,ir=function(Ne){var Ie=Ne.inputElement,Ze=Ne.prefixCls,ct=Ne.id,gt=Ne.inputRef,kt=Ne.disabled,xr=Ne.autoFocus,Hr=Ne.autoComplete,on=Ne.accessibilityIndex,Nt=Ne.mode,ot=Ne.open,dt=Ne.values,Yt=Ne.placeholder,Pt=Ne.tabIndex,Et=Ne.showSearch,Bt=Ne.searchValue,wt=Ne.activeValue,Mt=Ne.onInputKeyDown,Nr=Ne.onInputMouseDown,Tr=Ne.onInputChange,yr=Ne.onInputPaste,en=Ne.onInputCompositionStart,sn=Ne.onInputCompositionEnd,Vn=e.useState(!1),jn=Object(x.a)(Vn,2),ri=jn[0],ci=jn[1],gi=Nt==="combobox",Ni=gi||Et&&ot,Qe=dt[0],Se=Bt||"";gi&&wt&&!ri&&(Se=wt),e.useEffect(function(){gi&&ci(!1)},[gi,wt]);var Pe=Nt!=="combobox"&&!ot?!1:!!Se,He=Qe&&(typeof Qe.label=="string"||typeof Qe.label=="number")?Qe.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(Ze,"-selection-search")},e.createElement(ke,{ref:gt,prefixCls:Ze,id:ct,open:ot,inputElement:Ie,disabled:kt,autoFocus:xr,autoComplete:Hr,editable:Ni,accessibilityIndex:on,value:Se,onKeyDown:Mt,onMouseDown:Nr,onChange:function(ze){ci(!0),Tr(ze)},onPaste:yr,onCompositionStart:en,onCompositionEnd:sn,tabIndex:Pt,attrs:Object(_.a)(Ne,!0)})),!gi&&Qe&&!Pe&&e.createElement("span",{className:"".concat(Ze,"-selection-item"),title:He},Qe.label),!Qe&&!Pe&&e.createElement("span",{className:"".concat(Ze,"-selection-placeholder")},Yt))},lr=ir;function Sr(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ne=e.useRef(null),Ie=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Ie.current)}},[]);function Ze(ct){(ct||Ne.current===null)&&(Ne.current=ct),window.clearTimeout(Ie.current),Ie.current=window.setTimeout(function(){Ne.current=null},_e)}return[function(){return Ne.current},Ze]}var mt=function(Ne,Ie){var Ze=Object(e.useRef)(null),ct=Object(e.useRef)(!1),gt=Ne.prefixCls,kt=Ne.multiple,xr=Ne.open,Hr=Ne.mode,on=Ne.showSearch,Nt=Ne.tokenWithEnter,ot=Ne.onSearch,dt=Ne.onSearchSubmit,Yt=Ne.onToggleOpen,Pt=Ne.onInputKeyDown,Et=Ne.domRef;e.useImperativeHandle(Ie,function(){return{focus:function(){Ze.current.focus()},blur:function(){Ze.current.blur()}}});var Bt=Sr(0),wt=Object(x.a)(Bt,2),Mt=wt[0],Nr=wt[1],Tr=function(Pe){var He=Pe.which;(He===T.a.UP||He===T.a.DOWN)&&Pe.preventDefault(),Pt&&Pt(Pe),He===T.a.ENTER&&Hr==="tags"&&!ct.current&&!xr&&dt(Pe.target.value),[T.a.SHIFT,T.a.TAB,T.a.BACKSPACE,T.a.ESC].includes(He)||Yt(!0)},yr=function(){Nr(!0)},en=Object(e.useRef)(null),sn=function(Pe){ot(Pe,!0,ct.current)!==!1&&Yt(!0)},Vn=function(){ct.current=!0},jn=function(){ct.current=!1},ri=function(Pe){var He=Pe.target.value;if(Nt&&en.current&&/[\r\n]/.test(en.current)){var Ye=en.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");He=He.replace(Ye,en.current)}en.current=null,sn(He)},ci=function(Pe){var He=Pe.clipboardData,Ye=He.getData("text");en.current=Ye},gi=function(Pe){var He=Mt();if(Pe.target!==Ze.current){He||Pe.preventDefault();var Ye=document.body.style.msTouchAction!==void 0;Ye?setTimeout(function(){Ze.current.focus()}):Ze.current.focus()}(Hr!=="combobox"&&(!on||!He)||!xr)&&(xr&&ot("",!0,!1),Yt())},Ni={inputRef:Ze,onInputKeyDown:Tr,onInputMouseDown:yr,onInputChange:ri,onInputPaste:ci,onInputCompositionStart:Vn,onInputCompositionEnd:jn},Qe=kt?e.createElement(Ut,Object.assign({},Ne,Ni)):e.createElement(lr,Object.assign({},Ne,Ni));return e.createElement("div",{ref:Et,className:"".concat(gt,"-selector"),onMouseDown:gi},Qe)},or=e.forwardRef(mt);or.displayName="Selector";var et=or,ur=i("Uaa1"),qr=function(Ne){var Ie=typeof Ne!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ie,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ie,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ie,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ie,adjustY:1}}}},Fe=function(Ne,Ie){var Ze=Ne.prefixCls,ct=Ne.disabled,gt=Ne.visible,kt=Ne.children,xr=Ne.popupElement,Hr=Ne.containerWidth,on=Ne.animation,Nt=Ne.transitionName,ot=Ne.dropdownStyle,dt=Ne.dropdownClassName,Yt=Ne.direction,Pt=Yt===void 0?"ltr":Yt,Et=Ne.dropdownMatchSelectWidth,Bt=Et===void 0?!0:Et,wt=Ne.dropdownRender,Mt=Ne.dropdownAlign,Nr=Ne.getPopupContainer,Tr=Ne.empty,yr=Ne.getTriggerDOMNode,en=Object(w.a)(Ne,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),sn="".concat(Ze,"-dropdown"),Vn=xr;wt&&(Vn=wt(xr));var jn=e.useMemo(function(){return qr(Bt)},[Bt]),ri=on?"".concat(sn,"-").concat(on):Nt,ci=e.useRef(null);e.useImperativeHandle(Ie,function(){return{getPopupElement:function(){return ci.current}}});var gi=Object(W.a)({minWidth:Hr},ot);return typeof Bt=="number"?gi.width=Bt:Bt&&(gi.width=Hr),e.createElement(ur.a,Object.assign({},en,{showAction:[],hideAction:[],popupPlacement:Pt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:jn,prefixCls:sn,popupTransitionName:ri,popup:e.createElement("div",{ref:ci},Vn),popupAlign:Mt,popupVisible:gt,getPopupContainer:Nr,popupClassName:s()(dt,Object(b.a)({},"".concat(sn,"-empty"),Tr)),popupStyle:gi,getTriggerDOMNode:yr}),kt)},$t=e.forwardRef(Fe);$t.displayName="SelectTrigger";var Lr=$t,pt="RC_SELECT_INTERNAL_PROPS_MARK";function qt(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ne=e.useState(!1),Ie=Object(x.a)(Ne,2),Ze=Ie[0],ct=Ie[1],gt=e.useRef(null),kt=function(){window.clearTimeout(gt.current)};e.useEffect(function(){return kt},[]);var xr=function(on,Nt){kt(),gt.current=window.setTimeout(function(){ct(on),Nt&&Nt()},_e)};return[Ze,xr,kt]}function vr(_e,Ne,Ie){var Ze=e.useRef(null);Ze.current={elements:_e.filter(function(ct){return ct}),open:Ne,triggerOpen:Ie},e.useEffect(function(){function ct(gt){var kt=gt.target;Ze.current.open&&Ze.current.elements.every(function(xr){return!xr.contains(kt)&&xr!==kt})&&Ze.current.triggerOpen(!1)}return window.addEventListener("mousedown",ct),function(){return window.removeEventListener("mousedown",ct)}},[])}function pn(_e){var Ne=e.useRef(_e),Ie=e.useMemo(function(){var Ze=new Map;Ne.current.forEach(function(gt){var kt=gt.value,xr=gt.label;kt!==xr&&Ze.set(kt,xr)});var ct=_e.map(function(gt){var kt=Ze.get(gt.value);return gt.value===gt.label&&kt?Object(W.a)(Object(W.a)({},gt),{},{label:kt}):gt});return Ne.current=ct,ct},[_e]);return Ie}function fr(_e,Ne){var Ie=e.useRef(null),Ze=e.useMemo(function(){var gt=new Map;return Ne.forEach(function(kt){var xr=kt.data.value;gt.set(xr,kt)}),gt},[_e,Ne]);Ie.current=Ze;var ct=function(kt){return kt.map(function(xr){return Ie.current.get(xr)}).filter(Boolean)};return ct}var gr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function dn(_e){var Ne=_e.prefixCls,Ie=_e.components.optionList,Ze=_e.convertChildrenToData,ct=_e.flattenOptions,gt=_e.getLabeledValue,kt=_e.filterOptions,xr=_e.isValueDisabled,Hr=_e.findValueOption,on=_e.warningProps,Nt=_e.fillOptionsWithMissingValue,ot=_e.omitDOMProps;function dt(Pt,Et){var Bt,wt=Pt.prefixCls,Mt=wt===void 0?Ne:wt,Nr=Pt.className,Tr=Pt.id,yr=Pt.open,en=Pt.defaultOpen,sn=Pt.options,Vn=Pt.children,jn=Pt.mode,ri=Pt.value,ci=Pt.defaultValue,gi=Pt.labelInValue,Ni=Pt.showSearch,Qe=Pt.inputValue,Se=Pt.searchValue,Pe=Pt.filterOption,He=Pt.optionFilterProp,Ye=He===void 0?"value":He,ze=Pt.autoClearSearchValue,$e=ze===void 0?!0:ze,St=Pt.onSearch,ft=Pt.allowClear,Ht=Pt.clearIcon,Er=Pt.showArrow,Fr=Pt.inputIcon,tn=Pt.menuItemSelectedIcon,Zt=Pt.disabled,Rn=Pt.loading,vn=Pt.defaultActiveFirstOption,Un=Pt.notFoundContent,hn=Un===void 0?"Not Found":Un,Wr=Pt.optionLabelProp,Kn=Pt.backfill,ei=Pt.getInputElement,Si=Pt.getPopupContainer,Vr=Pt.listHeight,fn=Vr===void 0?200:Vr,kn=Pt.listItemHeight,It=kn===void 0?20:kn,yt=Pt.animation,xt=Pt.transitionName,Tt=Pt.virtual,Lt=Pt.dropdownStyle,_t=Pt.dropdownClassName,Xt=Pt.dropdownMatchSelectWidth,er=Pt.dropdownRender,nr=Pt.dropdownAlign,br=Pt.showAction,On=br===void 0?[]:br,bn=Pt.direction,qn=Pt.tokenSeparators,an=Pt.tagRender,_r=Pt.onPopupScroll,mn=Pt.onDropdownVisibleChange,In=Pt.onFocus,Wn=Pt.onBlur,Jn=Pt.onKeyUp,Ei=Pt.onKeyDown,yi=Pt.onMouseDown,mi=Pt.onChange,Vi=Pt.onSelect,la=Pt.onDeselect,Gi=Pt.onClear,ia=Pt.internalProps,$i=ia===void 0?{}:ia,xn=Object(w.a)(Pt,["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"]),Ti=$i.mark===pt,Ji=ot?ot(xn):xn;gr.forEach(function(ea){delete Ji[ea]});var Wi=Object(e.useRef)(null),qi=Object(e.useRef)(null),Ir=Object(e.useRef)(null),ar=Object(e.useRef)(null),nn=Object(e.useMemo)(function(){return(qn||[]).some(function(ea){return[`
`,`\r
`].includes(ea)})},[qn]),Gt=qt(),wr=Object(x.a)(Gt,3),Pr=wr[0],Jr=wr[1],wn=wr[2],bt=Object(e.useState)(),mr=Object(x.a)(bt,2),Ar=mr[0],Ur=mr[1];Object(e.useEffect)(function(){Ur("rc_select_".concat(Le()))},[]);var un=Tr||Ar,An=Wr;An===void 0&&(An=sn?"label":"children");var ln=jn==="combobox"?!1:gi,Hn=jn==="tags"||jn==="multiple",Ln=Ni!==void 0?Ni:Hn||jn==="combobox",ni=Object(e.useRef)(null);e.useImperativeHandle(Et,function(){return{focus:Ir.current.focus,blur:Ir.current.blur}});var Ai=Object(ge.a)(ci,{value:ri}),ii=Object(x.a)(Ai,2),_i=ii[0],Ri=ii[1],ji=Object(e.useMemo)(function(){return Ae(_i,{labelInValue:ln,combobox:jn==="combobox"})},[_i,ln]),wi=Object(e.useMemo)(function(){return new Set(ji)},[ji]),Ii=Object(e.useState)(null),Oi=Object(x.a)(Ii,2),Ui=Oi[0],Zi=Oi[1],ma=Object(e.useState)(""),Hi=Object(x.a)(ma,2),xa=Hi[0],Ea=Hi[1],ta=xa;jn==="combobox"&&_i!==void 0?ta=_i:Se!==void 0?ta=Se:Qe&&(ta=Qe);var ra=Object(e.useMemo)(function(){var ea=sn;return ea===void 0&&(ea=Ze(Vn)),jn==="tags"&&Nt&&(ea=Nt(ea,_i,An,gi)),ea||[]},[sn,Vn,jn,_i]),ga=Object(e.useMemo)(function(){return ct(ra,Pt)},[ra]),sa=fr(ji,ga),Ba=Object(e.useMemo)(function(){if(!ta||!Ln)return Object(G.a)(ra);var ea=kt(ta,ra,{optionFilterProp:Ye,filterOption:jn==="combobox"&&Pe===void 0?function(){return!0}:Pe});return jn==="tags"&&ea.every(function(ua){return ua[Ye]!==ta})&&ea.unshift({value:ta,label:ta,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ea},[ra,ta,jn,Ln]),va=Object(e.useMemo)(function(){return ct(Ba,Pt)},[Ba]);Object(e.useEffect)(function(){ar.current&&ar.current.scrollTo&&ar.current.scrollTo(0)},[ta]);var Ia=Object(e.useMemo)(function(){var ea=ji.map(function(ua){var da=sa([ua]),Ra=gt(ua,{options:da,prevValue:_i,labelInValue:ln,optionLabelProp:An});return Object(W.a)(Object(W.a)({},Ra),{},{disabled:xr(ua,da)})});return!jn&&ea.length===1&&ea[0].value===null&&ea[0].label===null?[]:ea},[_i,ra,jn]);Ia=pn(Ia);var za=function(ua,da,Ra){var Za=sa([ua]),Qa=Hr([ua],Za)[0];if(!$i.skipTriggerSelect){var oo=ln?gt(ua,{options:Za,prevValue:_i,labelInValue:ln,optionLabelProp:An}):ua;da&&Vi?Vi(oo,Qa):!da&&la&&la(oo,Qa)}Ti&&(da&&$i.onRawSelect?$i.onRawSelect(ua,Qa,Ra):!da&&$i.onRawDeselect&&$i.onRawDeselect(ua,Qa,Ra))},Va=Object(e.useState)([]),Ya=Object(x.a)(Va,2),Bi=Ya[0],ro=Ya[1],lo=function(ua){if(Ti&&$i.skipTriggerChange)return;var da=sa(ua),Ra=Te(Array.from(ua),{labelInValue:ln,options:da,getLabeledValue:gt,prevValue:_i,optionLabelProp:An}),Za=Hn?Ra:Ra[0];if(mi&&(ji.length!==0||Ra.length!==0)){var Qa=Hr(ua,da,{prevValueOptions:Bi});ro(Qa.map(function(oo,bo){var es=Object(W.a)({},oo);return Object.defineProperty(es,"_INTERNAL_OPTION_VALUE_",{get:function(){return ua[bo]}}),es})),mi(Za,Hn?Qa:Qa[0])}Ri(Za)},no=function(ua,da){var Ra=da.selected,Za=da.source;if(Zt)return;var Qa;Hn?(Qa=new Set(ji),Ra?Qa.add(ua):Qa.delete(ua)):(Qa=new Set,Qa.add(ua)),(Hn||!Hn&&Array.from(ji)[0]!==ua)&&lo(Array.from(Qa)),za(ua,!Hn||Ra,Za),jn==="combobox"?(Ea(String(ua)),Zi("")):(!Hn||$e)&&(Ea(""),Zi(""))},co=function(ua,da){no(ua,Object(W.a)(Object(W.a)({},da),{},{source:"option"}))},To=function(ua,da){no(ua,Object(W.a)(Object(W.a)({},da),{},{source:"selection"}))},Ga=jn==="combobox"&&ei&&ei()||null,Po=Object(ge.a)(void 0,{defaultValue:en,value:yr}),uo=Object(x.a)(Po,2),ho=uo[0],zo=uo[1],Oa=ho,mo=!hn&&!Ba.length;(Zt||mo&&Oa&&jn==="combobox")&&(Oa=!1);var Do=mo?!1:Oa,Qo=function(ua){var da=ua!==void 0?ua:!Oa;ho!==da&&!Zt&&(zo(da),mn&&mn(da))};vr([Wi.current,qi.current&&qi.current.getPopupElement()],Do,Qo);var xo=function(ua,da,Ra){var Za=!0,Qa=ua;Zi(null);var oo=Ra?null:Ee(ua,qn),bo=oo;if(jn==="combobox")da&&lo([Qa]);else if(oo){Qa="",jn!=="tags"&&(bo=oo.map(function(ss){var Rs=ga.find(function(Ko){var qo=Ko.data;return qo[An]===ss});return Rs?Rs.data.value:null}).filter(function(ss){return ss!==null}));var es=Array.from(new Set([].concat(Object(G.a)(ji),Object(G.a)(bo))));lo(es),es.forEach(function(ss){za(ss,!0,"input")}),Qo(!1),Za=!1}return Ea(Qa),St&&ta!==Qa&&St(Qa),Za},Fo=function(ua){var da=Array.from(new Set([].concat(Object(G.a)(ji),[ua])));lo(da),da.forEach(function(Ra){za(Ra,!0,"input")}),Ea("")};Object(e.useEffect)(function(){ho&&!!Zt&&zo(!1)},[Zt]),Object(e.useEffect)(function(){!Oa&&!Hn&&jn!=="combobox"&&xo("",!1,!1)},[Oa]);var Ho=Sr(),go=Object(x.a)(Ho,2),qa=go[0],_a=go[1],at=function(ua){var da=qa(),Ra=ua.which;if(!Oa&&Ra===T.a.ENTER&&Qo(!0),_a(!!ta),Ra===T.a.BACKSPACE&&!da&&Hn&&!ta&&ji.length){var Za=Re(Ia,ji);Za.removedValue!==null&&(lo(Za.values),za(Za.removedValue,!1,"input"))}for(var Qa=arguments.length,oo=new Array(Qa>1?Qa-1:0),bo=1;bo<Qa;bo++)oo[bo-1]=arguments[bo];if(Oa&&ar.current){var es;(es=ar.current).onKeyDown.apply(es,[ua].concat(oo))}Ei&&Ei.apply(void 0,[ua].concat(oo))},dr=function(ua){for(var da=arguments.length,Ra=new Array(da>1?da-1:0),Za=1;Za<da;Za++)Ra[Za-1]=arguments[Za];if(Oa&&ar.current){var Qa;(Qa=ar.current).onKeyUp.apply(Qa,[ua].concat(Ra))}Jn&&Jn.apply(void 0,[ua].concat(Ra))},Kr=Object(e.useRef)(!1),Br=function(){Jr(!0),Zt||(In&&!Kr.current&&In.apply(void 0,arguments),On.includes("focus")&&Qo(!0)),Kr.current=!0},Pn=function(){if(Jr(!1,function(){Kr.current=!1,Qo(!1)}),Zt)return;ta&&(jn==="tags"?(xo("",!1,!1),lo(Array.from(new Set([].concat(Object(G.a)(ji),[ta]))))):jn==="multiple"&&Ea("")),Wn&&Wn.apply(void 0,arguments)},$r=[];Object(e.useEffect)(function(){return function(){$r.forEach(function(ea){return clearTimeout(ea)}),$r.splice(0,$r.length)}},[]);var Mr=function(ua){var da=ua.target,Ra=qi.current&&qi.current.getPopupElement();if(Ra&&Ra.contains(da)){var Za=setTimeout(function(){var es=$r.indexOf(Za);es!==-1&&$r.splice(es,1),wn(),Ra.contains(document.activeElement)||Ir.current.focus()});$r.push(Za)}if(yi){for(var Qa=arguments.length,oo=new Array(Qa>1?Qa-1:0),bo=1;bo<Qa;bo++)oo[bo-1]=arguments[bo];yi.apply(void 0,[ua].concat(oo))}},Gn=Object(e.useState)(0),zr=Object(x.a)(Gn,2),Nn=zr[0],Qn=zr[1],Zn=vn!==void 0?vn:jn!=="combobox",Yn=function(ua,da){Qn(da),Kn&&jn==="combobox"&&ua!==null&&Zi(String(ua))},ui=Object(e.useState)(null),ai=Object(x.a)(ui,2),hi=ai[0],pi=ai[1],zi=Object(e.useState)({}),Ci=Object(x.a)(zi,2),na=Ci[1];function La(){na({})}st(function(){if(Do){var ea=Math.ceil(Wi.current.offsetWidth);hi!==ea&&pi(ea)}},[Do]);var pa=e.createElement(Ie,{ref:ar,prefixCls:Mt,id:un,open:Oa,childrenAsData:!sn,options:Ba,flattenOptions:va,multiple:Hn,values:wi,height:fn,itemHeight:It,onSelect:co,onToggleOpen:Qo,onActiveValue:Yn,defaultActiveFirstOption:Zn,notFoundContent:hn,onScroll:_r,searchValue:ta,menuItemSelectedIcon:tn,virtual:Tt!==!1&&Xt!==!1,onMouseEnter:La}),ca,wa=function(){Ti&&$i.onClear&&$i.onClear(),Gi&&Gi(),lo([]),xo("",!1,!1)};!Zt&&ft&&(ji.length||ta)&&(ca=e.createElement(O,{className:"".concat(Mt,"-clear"),onMouseDown:wa,customizeIcon:Ht},"\xD7"));var Ca=Er!==void 0?Er:Rn||!Hn&&jn!=="combobox",No;Ca&&(No=e.createElement(O,{className:s()("".concat(Mt,"-arrow"),Object(b.a)({},"".concat(Mt,"-arrow-loading"),Rn)),customizeIcon:Fr,customizeIconProps:{loading:Rn,searchValue:ta,open:Oa,focused:Pr,showSearch:Ln}}));var fo=s()(Mt,Nr,(Bt={},Object(b.a)(Bt,"".concat(Mt,"-focused"),Pr),Object(b.a)(Bt,"".concat(Mt,"-multiple"),Hn),Object(b.a)(Bt,"".concat(Mt,"-single"),!Hn),Object(b.a)(Bt,"".concat(Mt,"-allow-clear"),ft),Object(b.a)(Bt,"".concat(Mt,"-show-arrow"),Ca),Object(b.a)(Bt,"".concat(Mt,"-disabled"),Zt),Object(b.a)(Bt,"".concat(Mt,"-loading"),Rn),Object(b.a)(Bt,"".concat(Mt,"-open"),Oa),Object(b.a)(Bt,"".concat(Mt,"-customize-input"),Ga),Object(b.a)(Bt,"".concat(Mt,"-show-search"),Ln),Bt));return e.createElement("div",Object.assign({className:fo},Ji,{ref:Wi,onMouseDown:Mr,onKeyDown:at,onKeyUp:dr,onFocus:Br,onBlur:Pn}),Pr&&!Oa&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ji.join(", "))),e.createElement(Lr,{ref:qi,disabled:Zt,prefixCls:Mt,visible:Do,popupElement:pa,containerWidth:hi,animation:yt,transitionName:xt,dropdownStyle:Lt,dropdownClassName:_t,direction:bn,dropdownMatchSelectWidth:Xt,dropdownRender:er,dropdownAlign:nr,getPopupContainer:Si,empty:!ra.length,getTriggerDOMNode:function(){return ni.current}},e.createElement(et,Object.assign({},Pt,{domRef:ni,prefixCls:Mt,inputElement:Ga,ref:Ir,id:un,showSearch:Ln,mode:jn,accessibilityIndex:Nn,multiple:Hn,tagRender:an,values:Ia,open:Oa,onToggleOpen:Qo,searchValue:ta,activeValue:Ui,onSearch:xo,onSearchSubmit:Fo,onSelect:To,tokenWithEnter:nn}))),No,ca)}var Yt=e.forwardRef(dt);return Yt}function Qt(_e){var Ne=_e.mode,Ie=_e.options,Ze=_e.children,ct=_e.backfill,gt=_e.allowClear,kt=_e.placeholder,xr=_e.getInputElement,Hr=_e.showSearch,on=_e.onSearch,Nt=_e.defaultOpen,ot=_e.autoFocus,dt=_e.labelInValue,Yt=_e.value,Pt=_e.inputValue,Et=_e.optionLabelProp,Bt=Ne==="multiple"||Ne==="tags",wt=Hr!==void 0?Hr:Bt||Ne==="combobox",Mt=Ie||Q(Ze);if(Object(se.a)(Ne!=="tags"||Mt.every(function(en){return!en.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ne==="tags"||Ne==="combobox"){var Nr=Mt.some(function(en){return en.options?en.options.some(function(sn){return typeof("value"in sn?sn.value:sn.key)=="number"}):typeof("value"in en?en.value:en.key)=="number"});Object(se.a)(!Nr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(se.a)(Ne!=="combobox"||!Et,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(se.a)(Ne==="combobox"||!ct,"`backfill` only works with `combobox` mode."),Object(se.a)(Ne==="combobox"||!xr,"`getInputElement` only work with `combobox` mode."),Object(se.b)(Ne!=="combobox"||!xr||!gt||!kt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),on&&!wt&&Ne!=="combobox"&&Ne!=="tags"&&Object(se.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(se.b)(!Nt||ot,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Yt!=null){var Tr=re(Yt);Object(se.a)(!dt||Tr.every(function(en){return Object(q.a)(en)==="object"&&("key"in en||"value"in en)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(se.a)(!Bt||Array.isArray(Yt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ze){var yr=null;Object(H.a)(Ze).some(function(en){if(!e.isValidElement(en)||!en.type)return!1;var sn=en.type;if(sn.isSelectOption)return!1;if(sn.isSelectOptGroup){var Vn=Object(H.a)(en.props.children).every(function(jn){return!e.isValidElement(jn)||!en.type||jn.type.isSelectOption?!0:(yr=jn.type,!1)});return!Vn}return yr=sn,!0}),yr&&Object(se.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(yr.displayName||yr.name||yr,"`.")),Object(se.a)(Pt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var sr=Qt,Qr=dn({prefixCls:"rc-select",components:{optionList:B},convertChildrenToData:Q,flattenOptions:Xe,getLabeledValue:Y,filterOptions:ye,isValueDisabled:Ce,findValueOption:Z,warningProps:sr,fillOptionsWithMissingValue:ue}),Cn=function(_e){Object(g.a)(Ie,_e);var Ne=Object(A.a)(Ie);function Ie(){var Ze;return Object(c.a)(this,Ie),Ze=Ne.apply(this,arguments),Ze.selectRef=e.createRef(),Ze.focus=function(){Ze.selectRef.current.focus()},Ze.blur=function(){Ze.selectRef.current.blur()},Ze}return Object(h.a)(Ie,[{key:"render",value:function(){return e.createElement(Qr,Object.assign({ref:this.selectRef},this.props))}}]),Ie}(e.Component);Cn.Option=X,Cn.OptGroup=z;var Fn=Cn,ti=Fn,ki=i("H84U"),Dn=i("1vzs"),Bn=i("3Nzz"),Ft=function(_e){n()(Ie,_e);var Ne=a()(Ie);function Ie(){var Ze;return f()(this,Ie),Ze=Ne.apply(this,arguments),Ze.selectRef=e.createRef(),Ze.focus=function(){Ze.selectRef.current&&Ze.selectRef.current.focus()},Ze.blur=function(){Ze.selectRef.current&&Ze.selectRef.current.blur()},Ze.getMode=function(){var ct=Ze.props.mode;return ct==="combobox"?void 0:ct===Ie.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":ct},Ze.renderSelect=function(ct){var gt=ct.getPopupContainer,kt=ct.getPrefixCls,xr=ct.renderEmpty,Hr=ct.direction,on=ct.virtual,Nt=ct.dropdownMatchSelectWidth,ot=Ze.props,dt=ot.prefixCls,Yt=ot.notFoundContent,Pt=ot.className,Et=ot.size,Bt=ot.listHeight,wt=Bt===void 0?256:Bt,Mt=ot.listItemHeight,Nr=Mt===void 0?24:Mt,Tr=ot.getPopupContainer,yr=ot.dropdownClassName,en=ot.bordered,sn=kt("select",dt),Vn=Ze.getMode(),jn=Vn==="multiple"||Vn==="tags",ri;Yt!==void 0?ri=Yt:Vn==="combobox"?ri=null:ri=xr("Select");var ci=Object(Dn.a)(v()(v()({},Ze.props),{multiple:jn,prefixCls:sn})),gi=ci.suffixIcon,Ni=ci.itemIcon,Qe=ci.removeIcon,Se=ci.clearIcon,Pe=Object(l.default)(Ze.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),He=s()(yr,p()({},"".concat(sn,"-dropdown-").concat(Hr),Hr==="rtl"));return e.createElement(Bn.b.Consumer,null,function(Ye){var ze,$e=Et||Ye,St=s()(Pt,(ze={},p()(ze,"".concat(sn,"-lg"),$e==="large"),p()(ze,"".concat(sn,"-sm"),$e==="small"),p()(ze,"".concat(sn,"-rtl"),Hr==="rtl"),p()(ze,"".concat(sn,"-borderless"),!en),ze));return e.createElement(ti,v()({ref:Ze.selectRef,virtual:on,dropdownMatchSelectWidth:Nt},Pe,{listHeight:wt,listItemHeight:Nr,mode:Vn,prefixCls:sn,direction:Hr,inputIcon:gi,menuItemSelectedIcon:Ni,removeIcon:Qe,clearIcon:Se,notFoundContent:ri,className:St,getPopupContainer:Tr||gt,dropdownClassName:He}))})},Ze}return u()(Ie,[{key:"render",value:function(){return e.createElement(ki.a,null,this.renderSelect)}}]),Ie}(e.Component);Ft.Option=X,Ft.OptGroup=z,Ft.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ft.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var vt=D.a=Ft},"2fw6":function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(v,m,f){f&&v.moveTo(m.cx+m.r,m.cy),v.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});k.exports=p},"2gN3":function(k,D,i){var y=i("Kz5y"),p=y["__core-js_shared__"];k.exports=p},"2jpz":function(k,D,i){"use strict";i.d(D,"a",function(){return h});var y=i("cDf5"),p=i.n(y),S=i("q1tI"),v=i.n(S),m=i("TSYQ"),f=i.n(m),d=i("gZBC"),u=i.n(d),o=i("vk+C"),n=i.n(o),t=i("pG52"),a=i.n(t),e=i("Csr3"),l=i.n(e),r=i("e5VY"),s=i.n(r),c=i("0n0R");function h(g,A,b,w){var x=w.isLeaf,T=w.expanded,_=w.loading;if(_)return S.createElement(u.a,{className:"".concat(g,"-switcher-loading-icon")});var E;if(b&&p()(b)==="object"&&(E=b.showLeafIcon),x)return b?p()(b)==="object"&&!E?S.createElement("span",{className:"".concat(g,"-switcher-leaf-line")}):S.createElement(n.a,{className:"".concat(g,"-switcher-line-icon")}):null;var C="".concat(g,"-switcher-icon");return Object(c.b)(A)?Object(c.a)(A,{className:f()(A.props.className||"",C)}):A||(b?T?S.createElement(a.a,{className:"".concat(g,"-switcher-line-icon")}):S.createElement(l.a,{className:"".concat(g,"-switcher-line-icon")}):S.createElement(s.a,{className:C}))}},"2oIt":function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},"2uGb":function(k,D,i){var y=i("ProS");i("ko1b"),i("s2lz"),i("RBEP");var p=i("kMLO"),S=i("nKiI");y.registerVisual(p),y.registerLayout(S)},"2w7y":function(k,D,i){var y=i("ProS");i("qMZE"),i("g0SD"),y.registerPreprocessor(function(p){p.markPoint=p.markPoint||{}})},"33Ds":function(k,D,i){var y=i("ProS"),p=i("b9oc"),S=i("Kagy"),v=i("IUWy"),m=S.toolbox.restore;function f(o){this.model=o}f.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=f.prototype;d.onclick=function(o,n,t){p.clear(o),n.dispatchAction({type:"restore",from:this.uid})},v.register("restore",f),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,n){n.resetOption("recreate")});var u=f;k.exports=u},"34/K":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var d=0;d<f.length;d++){var u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m),this._lines=0}return S(m,[{key:"decodeRect",value:function(d,u,o,n,t,a,e){this._lines===0&&(this._lines=n);var l=e==8?1:4,r=o*l;if(t.rQwait("RAW",r))return!1;var s=u+(n-this._lines),c=Math.min(this._lines,Math.floor(t.rQlen/r)),h=t.rQ,g=t.rQi;if(e==8){for(var A=o*c,b=new Uint8Array(A*4),w=0;w<A;w++)b[w*4+0]=(h[g+w]>>0&3)*255/3,b[w*4+1]=(h[g+w]>>2&3)*255/3,b[w*4+2]=(h[g+w]>>4&3)*255/3,b[w*4+4]=0;h=b,g=0}return a.blitImage(d,s,o,c,h,g),t.rQskipBytes(c*r),this._lines-=c,!(this._lines>0)}}]),m}();D.default=v},"3690":function(k,D,i){"use strict";function y(o){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(o)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=v(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return S=function(){return o},o}function v(o){if(o&&o.__esModule)return o;if(o===null||y(o)!=="object"&&typeof o!="function")return{default:o};var n=S();if(n&&n.has(o))return n.get(o);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var l=a?Object.getOwnPropertyDescriptor(o,e):null;l&&(l.get||l.set)?Object.defineProperty(t,e,l):t[e]=o[e]}return t.default=o,n&&n.set(o,t),t}function m(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function f(o,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(o,a.key,a)}}function d(o,n,t){return n&&f(o.prototype,n),t&&f(o,t),o}var u=function(){function o(){m(this,o),this._tiles=0,this._lastsubencoding=0}return d(o,[{key:"decodeRect",value:function(t,a,e,l,r,s,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(r.rQwait("HEXTILE",h))return!1;var g=r.rQ,A=r.rQi,b=g[A];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var w=this._totalTiles-this._tiles,x=w%this._tilesX,T=Math.floor(w/this._tilesX),_=t+x*16,E=a+T*16,C=Math.min(16,t+e-_),I=Math.min(16,a+l-E);if(b&1)h+=C*I*4;else if(b&2&&(h+=4),b&4&&(h+=4),b&8){if(h++,r.rQwait("HEXTILE",h))return!1;var O=g[A+h-1];b&16?h+=O*(4+2):h+=O*2}if(r.rQwait("HEXTILE",h))return!1;if(A++,b===0)this._lastsubencoding&1?p.Debug(" Ignoring blank after RAW"):s.fillRect(_,E,C,I,this._background);else if(b&1)s.blitImage(_,E,C,I,g,A),A+=h-1;else{if(b&2&&(this._background=[g[A],g[A+1],g[A+2],g[A+3]],A+=4),b&4&&(this._foreground=[g[A],g[A+1],g[A+2],g[A+3]],A+=4),s.startTile(_,E,C,I,this._background),b&8){var F=g[A];A++;for(var R=0;R<F;R++){var B=void 0;b&16?(B=[g[A],g[A+1],g[A+2],g[A+3]],A+=4):B=this._foreground;var P=g[A];A++;var X=P>>4,M=P&15,z=g[A];A++;var W=(z>>4)+1,H=(z&15)+1;s.subTile(X,M,W,H,B)}}s.finishTile()}r.rQi=A,this._lastsubencoding=b,this._tiles--}return!0}}]),o}();D.default=u},"3A9y":function(k,D){function i(y){return this.__data__.has(y)}k.exports=i},"3C/r":function(k,D){var i=function(S,v){this.image=S,this.repeat=v,this.type="pattern"};i.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var y=i;k.exports=y},"3CBa":function(k,D,i){var y=i("hydK"),p=y.createElement,S=i("bYtY"),v=i("SUKs"),m=i("y+Vt"),f=i("Dagg"),d=i("dqUG"),u=i("DBLp"),o=i("sW+o"),n=i("n6Mw"),t=i("vKoX"),a=i("P47w"),e=a.path,l=a.image,r=a.text;function s(C){return parseInt(C,10)}function c(C){return C instanceof m?e:C instanceof f?l:C instanceof d?r:e}function h(C,I){return I&&C&&I.parentNode!==C}function g(C,I,O){if(h(C,I)&&O){var F=O.nextSibling;F?C.insertBefore(I,F):C.appendChild(I)}}function A(C,I){if(h(C,I)){var O=C.firstChild;O?C.insertBefore(I,O):C.appendChild(I)}}function b(C,I){I&&C&&I.parentNode===C&&C.removeChild(I)}function w(C){return C.__textSvgEl}function x(C){return C.__svgEl}var T=function(I,O,F,R){this.root=I,this.storage=O,this._opts=F=S.extend({},F||{});var B=p("svg");B.setAttribute("xmlns","http://www.w3.org/2000/svg"),B.setAttribute("version","1.1"),B.setAttribute("baseProfile","full"),B.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=p("g");B.appendChild(P);var X=p("g");B.appendChild(X),this.gradientManager=new o(R,X),this.clipPathManager=new n(R,X),this.shadowManager=new t(R,X);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=B,this._svgRoot=X,this._backgroundRoot=P,this._viewport=M,I.appendChild(M),M.appendChild(B),this.resize(F.width,F.height),this._visibleList=[]};T.prototype={constructor:T,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var I=this.getViewportRoot();if(I)return{offsetLeft:I.offsetLeft||0,offsetTop:I.offsetTop||0}},refresh:function(){var I=this.storage.getDisplayList(!0);this._paintList(I)},setBackgroundColor:function(I){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var O=p("rect");O.setAttribute("width",this.getWidth()),O.setAttribute("height",this.getHeight()),O.setAttribute("x",0),O.setAttribute("y",0),O.setAttribute("id",0),O.style.fill=I,this._backgroundRoot.appendChild(O),this._backgroundNode=O},_paintList:function(I){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var O=this._svgRoot,F=this._visibleList,R=I.length,B=[],P;for(P=0;P<R;P++){var X=I[P],M=c(X),z=x(X)||w(X);X.invisible||(X.__dirty&&(M&&M.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(z,X)),X.__dirty=!1),B.push(X))}var W=u(F,B),H;for(P=0;P<W.length;P++){var V=W[P];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=F[V.indices[Q]],z=x(X),G=w(X);b(O,z),b(O,G)}}for(P=0;P<W.length;P++){var V=W[P];if(V.added)for(var Q=0;Q<V.count;Q++){var X=B[V.indices[Q]],z=x(X),G=w(X);H?g(O,z,H):A(O,z),z?g(O,G,z):H?g(O,G,H):A(O,G),g(O,G,z),H=G||z||H,this.gradientManager.addWithoutUpdate(z||G,X),this.shadowManager.addWithoutUpdate(z||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=B[V.indices[Q]],z=x(X),G=w(X),z=x(X),G=w(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(z||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(z||G,X),this.clipPathManager.markUsed(X),G&&g(O,G,z),H=z||G||H}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=B},_getDefs:function(I){var O=this._svgDom,F=O.getElementsByTagName("defs");if(F.length===0)if(I){var F=O.insertBefore(p("defs"),O.firstChild);return F.contains||(F.contains=function(B){var P=F.children;if(!P)return!1;for(var X=P.length-1;X>=0;--X)if(P[X]===B)return!0;return!1}),F}else return null;else return F[0]},resize:function(I,O){var F=this._viewport;F.style.display="none";var R=this._opts;if(I!=null&&(R.width=I),O!=null&&(R.height=O),I=this._getSize(0),O=this._getSize(1),F.style.display="",this._width!==I||this._height!==O){this._width=I,this._height=O;var B=F.style;B.width=I+"px",B.height=O+"px";var P=this._svgDom;P.setAttribute("width",I),P.setAttribute("height",O)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",I),this._backgroundNode.setAttribute("height",O))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(I){var O=this._opts,F=["width","height"][I],R=["clientWidth","clientHeight"][I],B=["paddingLeft","paddingTop"][I],P=["paddingRight","paddingBottom"][I];if(O[F]!=null&&O[F]!=="auto")return parseFloat(O[F]);var X=this.root,M=document.defaultView.getComputedStyle(X);return(X[R]||s(M[F])||s(X.style[F]))-(s(M[B])||0)-(s(M[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 I=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+I}};function _(C){return function(){v('In SVG mode painter not support method "'+C+'"')}}S.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(C){T.prototype[C]=_(C)});var E=T;k.exports=E},"3Fdi":function(k,D){var i=Function.prototype,y=i.toString;function p(S){if(S!=null){try{return y.call(S)}catch(v){}try{return S+""}catch(v){}}return""}k.exports=p},"3LNs":function(k,D,i){var y=i("bYtY"),p=i("Yl7c"),S=i("IwbS"),v=i("zTMp"),m=i("YH21"),f=i("iLNv"),d=i("4NO4"),u=d.makeInner,o=u(),n=y.clone,t=y.bind;function a(){}a.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(g,A,b,w){var x=A.get("value"),T=A.get("status");if(this._axisModel=g,this._axisPointerModel=A,this._api=b,!w&&this._lastValue===x&&this._lastStatus===T)return;this._lastValue=x,this._lastStatus=T;var _=this._group,E=this._handle;if(!T||T==="hide"){_&&_.hide(),E&&E.hide();return}_&&_.show(),E&&E.show();var C={};this.makeElOption(C,x,g,A,b);var I=C.graphicKey;I!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=I;var O=this._moveAnimation=this.determineAnimation(g,A);if(!_)_=this._group=new S.Group,this.createPointerEl(_,C,g,A),this.createLabelEl(_,C,g,A),b.getZr().add(_);else{var F=y.curry(e,A,O);this.updatePointerEl(_,C,F,A),this.updateLabelEl(_,C,F,A)}c(_,A,!0),this._renderHandle(x)},remove:function(g){this.clear(g)},dispose:function(g){this.clear(g)},determineAnimation:function(g,A){var b=A.get("animation"),w=g.axis,x=w.type==="category",T=A.get("snap");if(!T&&!x)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(x&&w.getBandWidth()>_)return!0;if(T){var E=v.getAxisInfo(g).seriesDataCount,C=w.getExtent();return Math.abs(C[0]-C[1])/E>_}return!1}return b===!0},makeElOption:function(g,A,b,w,x){},createPointerEl:function(g,A,b,w){var x=A.pointer;if(x){var T=o(g).pointerEl=new S[x.type](n(A.pointer));g.add(T)}},createLabelEl:function(g,A,b,w){if(A.label){var x=o(g).labelEl=new S.Rect(n(A.label));g.add(x),r(x,w)}},updatePointerEl:function(g,A,b){var w=o(g).pointerEl;w&&A.pointer&&(w.setStyle(A.pointer.style),b(w,{shape:A.pointer.shape}))},updateLabelEl:function(g,A,b,w){var x=o(g).labelEl;x&&(x.setStyle(A.label.style),b(x,{shape:A.label.shape,position:A.label.position}),r(x,w))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var A=this._axisPointerModel,b=this._api.getZr(),w=this._handle,x=A.getModel("handle"),T=A.get("status");if(!x.get("show")||!T||T==="hide"){w&&b.remove(w),this._handle=null;return}var _;this._handle||(_=!0,w=this._handle=S.createIcon(x.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(I){m.stop(I.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(w)),c(w,A,!1);var E=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];w.setStyle(x.getItemStyle(null,E));var C=x.get("size");y.isArray(C)||(C=[C,C]),w.attr("scale",[C[0]/2,C[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",x.get("throttle")||0,"fixRate"),this._moveHandleToValue(g,_)},_moveHandleToValue:function(g,A){e(this._axisPointerModel,!A&&this._moveAnimation,this._handle,s(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,A){var b=this._handle;if(!b)return;this._dragging=!0;var w=this.updateHandleTransform(s(b),[g,A],this._axisModel,this._axisPointerModel);this._payloadInfo=w,b.stopAnimation(),b.attr(s(w)),o(b).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var g=this._handle;if(!g)return;var A=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:A.cursorPoint[0],y:A.cursorPoint[1],tooltipOption:A.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(g){this._dragging=!1;var A=this._handle;if(!A)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 A=g.getZr(),b=this._group,w=this._handle;A&&b&&(this._lastGraphicKey=null,b&&A.remove(b),w&&A.remove(w),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(g,A,b){return b=b||0,{x:g[b],y:g[1-b],width:A[b],height:A[1-b]}}},a.prototype.constructor=a;function e(g,A,b,w){l(o(b).lastProp,w)||(o(b).lastProp=w,A?S.updateProps(b,w,g):(b.stopAnimation(),b.attr(w)))}function l(g,A){if(y.isObject(g)&&y.isObject(A)){var b=!0;return y.each(A,function(w,x){b=b&&l(g[x],w)}),!!b}else return g===A}function r(g,A){g[A.get("label.show")?"show":"hide"]()}function s(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,A,b){var w=A.get("z"),x=A.get("zlevel");g&&g.traverse(function(T){T.type!=="group"&&(w!=null&&(T.z=w),x!=null&&(T.zlevel=x),T.silent=b)})}p.enableClassExtend(a);var h=a;k.exports=h},"3OrL":function(k,D,i){var y=i("bYtY"),p=i("6Ic6"),S=i("IwbS"),v=i("y+Vt"),m=["itemStyle"],f=["emphasis","itemStyle"],d=p.extend({type:"boxplot",render:function(e,l,r){var s=e.getData(),c=this.group,h=this._data;this._data||c.removeAll();var g=e.get("layout")==="horizontal"?1:0;s.diff(h).add(function(A){if(s.hasValue(A)){var b=s.getItemLayout(A),w=o(b,s,A,g,!0);s.setItemGraphicEl(A,w),c.add(w)}}).update(function(A,b){var w=h.getItemGraphicEl(b);if(!s.hasValue(A)){c.remove(w);return}var x=s.getItemLayout(A);w?n(x,w,s,A):w=o(x,s,A,g),c.add(w),s.setItemGraphicEl(A,w)}).remove(function(A){var b=h.getItemGraphicEl(A);b&&c.remove(b)}).execute(),this._data=s},remove:function(e){var l=this.group,r=this._data;this._data=null,r&&r.eachItemGraphicEl(function(s){s&&l.remove(s)})},dispose:y.noop}),u=v.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var r=l.points,s=0;for(e.moveTo(r[s][0],r[s][1]),s++;s<4;s++)e.lineTo(r[s][0],r[s][1]);for(e.closePath();s<r.length;s++)e.moveTo(r[s][0],r[s][1]),s++,e.lineTo(r[s][0],r[s][1])}});function o(e,l,r,s,c){var h=e.ends,g=new u({shape:{points:c?t(h,s,e):h}});return n(e,g,l,r,c),g}function n(e,l,r,s,c){var h=r.hostModel,g=S[c?"initProps":"updateProps"];g(l,{shape:{points:e.ends}},h,s);var A=r.getItemModel(s),b=A.getModel(m),w=r.getItemVisual(s,"color"),x=b.getItemStyle(["borderColor"]);x.stroke=w,x.strokeNoScale=!0,l.useStyle(x),l.z2=100;var T=A.getModel(f).getItemStyle();S.setHoverStyle(l,T)}function t(e,l,r){return y.map(e,function(s){return s=s.slice(),s[l]=r.initBaseline,s})}var a=d;k.exports=a},"3S7+":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("J4zp"),v=i.n(S),m=i("pVnL"),f=i.n(m),d=i("q1tI"),u=i.n(d),o=i("U8pU"),n=i("VTBJ"),t=i("Ff2n"),a=i("1OyB"),e=i("vuIU"),l=i("JX7q"),r=i("Ji7U"),s=i("LK+K"),c=i("i8i4"),h=i.n(c),g=i("l4aY"),A=i("m+aA"),b=i("c+Xe"),w=i("zT1h"),x=i("QC+M"),T=i("TSYQ"),_=i.n(T);function E(Dn,Bn,Ft){return Ft?Dn[0]===Bn[0]:Dn[0]===Bn[0]&&Dn[1]===Bn[1]}function C(Dn,Bn,Ft){var vt=Dn[Bn]||{};return Object(n.a)(Object(n.a)({},vt),Ft)}function I(Dn,Bn,Ft,vt){for(var _e=Ft.points,Ne=Object.keys(Dn),Ie=0;Ie<Ne.length;Ie+=1){var Ze=Ne[Ie];if(E(Dn[Ze].points,_e,vt))return"".concat(Bn,"-placement-").concat(Ze)}return""}var O=i("xEkU"),F=i.n(O),R=i("9mu1"),B=i("rePB"),P=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(Dn,Bn){var Ft={};return Ft[Dn.toLowerCase()]=Bn.toLowerCase(),Ft["Webkit".concat(Dn)]="webkit".concat(Bn),Ft["Moz".concat(Dn)]="moz".concat(Bn),Ft["ms".concat(Dn)]="MS".concat(Bn),Ft["O".concat(Dn)]="o".concat(Bn.toLowerCase()),Ft}function M(Dn,Bn){var Ft={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return Dn&&("AnimationEvent"in Bn||delete Ft.animationend.animation,"TransitionEvent"in Bn||delete Ft.transitionend.transition),Ft}var z=M(P,typeof window!="undefined"?window:{}),W={};if(P){var H=document.createElement("div");W=H.style}var V={};function Q(Dn){if(V[Dn])return V[Dn];var Bn=z[Dn];if(Bn)for(var Ft=Object.keys(Bn),vt=Ft.length,_e=0;_e<vt;_e+=1){var Ne=Ft[_e];if(Object.prototype.hasOwnProperty.call(Bn,Ne)&&Ne in W)return V[Dn]=Bn[Ne],V[Dn]}return""}var G=Q("animationend"),ee=Q("transitionend"),q=!!(G&&ee);function se(Dn,Bn){if(!Dn)return null;if(Object(o.a)(Dn)==="object"){var Ft=Bn.replace(/-\w/g,function(vt){return vt[1].toUpperCase()});return Dn[Ft]}return"".concat(Dn,"-").concat(Bn)}var re="none",Ae="appear",Te="enter",Re="leave";function Ge(Dn){var Bn=Dn,Ft=!!d.forwardRef;Object(o.a)(Dn)==="object"&&(Bn=Dn.transitionSupport,Ft="forwardRef"in Dn?Dn.forwardRef:Ft);function vt(Ne){return!!(Ne.motionName&&Bn)}var _e=function(Ne){Object(r.a)(Ze,Ne);var Ie=Object(s.a)(Ze);function Ze(){var ct;return Object(a.a)(this,Ze),ct=Ie.apply(this,arguments),ct.$cacheEle=null,ct.node=null,ct.raf=null,ct.destroyed=!1,ct.deadlineId=null,ct.state={status:re,statusActive:!1,newStatus:!1,statusStyle:null},ct.onDomUpdate=function(){var gt=ct.state,kt=gt.status,xr=gt.newStatus,Hr=ct.props,on=Hr.onAppearStart,Nt=Hr.onEnterStart,ot=Hr.onLeaveStart,dt=Hr.onAppearActive,Yt=Hr.onEnterActive,Pt=Hr.onLeaveActive,Et=Hr.motionAppear,Bt=Hr.motionEnter,wt=Hr.motionLeave;if(!vt(ct.props))return;var Mt=ct.getElement();ct.$cacheEle!==Mt&&(ct.removeEventListener(ct.$cacheEle),ct.addEventListener(Mt),ct.$cacheEle=Mt),xr&&kt===Ae&&Et?ct.updateStatus(on,null,null,function(){ct.updateActiveStatus(dt,Ae)}):xr&&kt===Te&&Bt?ct.updateStatus(Nt,null,null,function(){ct.updateActiveStatus(Yt,Te)}):xr&&kt===Re&&wt&&ct.updateStatus(ot,null,null,function(){ct.updateActiveStatus(Pt,Re)})},ct.onMotionEnd=function(gt){if(gt&&!gt.deadline&&gt.target!==ct.getElement())return;var kt=ct.state,xr=kt.status,Hr=kt.statusActive,on=ct.props,Nt=on.onAppearEnd,ot=on.onEnterEnd,dt=on.onLeaveEnd;xr===Ae&&Hr?ct.updateStatus(Nt,{status:re},gt):xr===Te&&Hr?ct.updateStatus(ot,{status:re},gt):xr===Re&&Hr&&ct.updateStatus(dt,{status:re},gt)},ct.setNodeRef=function(gt){var kt=ct.props.internalRef;ct.node=gt,Object(b.b)(kt,gt)},ct.getElement=function(){try{return Object(A.a)(ct.node||Object(l.a)(ct))}catch(gt){return ct.$cacheEle}},ct.addEventListener=function(gt){if(!gt)return;gt.addEventListener(ee,ct.onMotionEnd),gt.addEventListener(G,ct.onMotionEnd)},ct.removeEventListener=function(gt){if(!gt)return;gt.removeEventListener(ee,ct.onMotionEnd),gt.removeEventListener(G,ct.onMotionEnd)},ct.updateStatus=function(gt,kt,xr,Hr){var on=gt?gt(ct.getElement(),xr):null;if(on===!1||ct.destroyed)return;var Nt;Hr&&(Nt=function(){ct.nextFrame(Hr)}),ct.setState(Object(n.a)({statusStyle:Object(o.a)(on)==="object"?on:null,newStatus:!1},kt),Nt)},ct.updateActiveStatus=function(gt,kt){ct.nextFrame(function(){var xr=ct.state.status;if(xr!==kt)return;var Hr=ct.props.motionDeadline;ct.updateStatus(gt,{statusActive:!0}),Hr>0&&(ct.deadlineId=setTimeout(function(){ct.onMotionEnd({deadline:!0})},Hr))})},ct.nextFrame=function(gt){ct.cancelNextFrame(),ct.raf=F()(gt)},ct.cancelNextFrame=function(){ct.raf&&(F.a.cancel(ct.raf),ct.raf=null)},ct}return Object(e.a)(Ze,[{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 gt,kt=this.state,xr=kt.status,Hr=kt.statusActive,on=kt.statusStyle,Nt=this.props,ot=Nt.children,dt=Nt.motionName,Yt=Nt.visible,Pt=Nt.removeOnLeave,Et=Nt.leavedClassName,Bt=Nt.eventProps;return ot?xr===re||!vt(this.props)?Yt?ot(Object(n.a)({},Bt),this.setNodeRef):Pt?null:ot(Object(n.a)(Object(n.a)({},Bt),{},{className:Et}),this.setNodeRef):ot(Object(n.a)(Object(n.a)({},Bt),{},{className:_()(se(dt,xr),(gt={},Object(B.a)(gt,se(dt,"".concat(xr,"-active")),Hr),Object(B.a)(gt,dt,typeof dt=="string"),gt)),style:on}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(gt,kt){var xr=kt.prevProps,Hr=kt.status;if(!vt(gt))return{};var on=gt.visible,Nt=gt.motionAppear,ot=gt.motionEnter,dt=gt.motionLeave,Yt=gt.motionLeaveImmediately,Pt={prevProps:gt};return(Hr===Ae&&!Nt||Hr===Te&&!ot||Hr===Re&&!dt)&&(Pt.status=re,Pt.statusActive=!1,Pt.newStatus=!1),!xr&&on&&Nt&&(Pt.status=Ae,Pt.statusActive=!1,Pt.newStatus=!0),xr&&!xr.visible&&on&&ot&&(Pt.status=Te,Pt.statusActive=!1,Pt.newStatus=!0),(xr&&xr.visible&&!on&&dt||!xr&&Yt&&!on&&dt)&&(Pt.status=Re,Pt.statusActive=!1,Pt.newStatus=!0),Pt}}]),Ze}(d.Component);return _e.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Ft?d.forwardRef(function(Ne,Ie){return d.createElement(_e,Object.assign({internalRef:Ie},Ne))}):_e}var Ue=Ge(q),nt="add",Le="keep",le="remove",Xe="removed";function pe(Dn){var Bn;return Dn&&Object(o.a)(Dn)==="object"&&"key"in Dn?Bn=Dn:Bn={key:Dn},Object(n.a)(Object(n.a)({},Bn),{},{key:String(Bn.key)})}function Z(){var Dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Dn.map(pe)}function Y(){var Dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=[],vt=0,_e=Bn.length,Ne=Z(Dn),Ie=Z(Bn);Ne.forEach(function(gt){for(var kt=!1,xr=vt;xr<_e;xr+=1){var Hr=Ie[xr];if(Hr.key===gt.key){vt<xr&&(Ft=Ft.concat(Ie.slice(vt,xr).map(function(on){return Object(n.a)(Object(n.a)({},on),{},{status:nt})})),vt=xr),Ft.push(Object(n.a)(Object(n.a)({},Hr),{},{status:Le})),vt+=1,kt=!0;break}}kt||Ft.push(Object(n.a)(Object(n.a)({},gt),{},{status:le}))}),vt<_e&&(Ft=Ft.concat(Ie.slice(vt).map(function(gt){return Object(n.a)(Object(n.a)({},gt),{},{status:nt})})));var Ze={};Ft.forEach(function(gt){var kt=gt.key;Ze[kt]=(Ze[kt]||0)+1});var ct=Object.keys(Ze).filter(function(gt){return Ze[gt]>1});return ct.forEach(function(gt){Ft=Ft.filter(function(kt){var xr=kt.key,Hr=kt.status;return xr!==gt||Hr!==le}),Ft.forEach(function(kt){kt.key===gt&&(kt.status=Le)})}),Ft}var ne=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ce(Dn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,Ft=function(vt){Object(r.a)(Ne,vt);var _e=Object(s.a)(Ne);function Ne(){var Ie;return Object(a.a)(this,Ne),Ie=_e.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(Ze){Ie.setState(function(ct){var gt=ct.keyEntities;return{keyEntities:gt.map(function(kt){return kt.key!==Ze?kt:Object(n.a)(Object(n.a)({},kt),{},{status:Xe})})}})},Ie}return Object(e.a)(Ne,[{key:"render",value:function(){var Ze=this,ct=this.state.keyEntities,gt=this.props,kt=gt.component,xr=gt.children,Hr=Object(t.a)(gt,["component","children"]),on=kt||d.Fragment,Nt={};return ne.forEach(function(ot){Nt[ot]=Hr[ot],delete Hr[ot]}),delete Hr.keys,d.createElement(on,Object.assign({},Hr),ct.map(function(ot){var dt=ot.status,Yt=Object(t.a)(ot,["status"]),Pt=dt===nt||dt===Le;return d.createElement(Bn,Object.assign({},Nt,{key:Yt.key,visible:Pt,eventProps:Yt,onLeaveEnd:function(){Nt.onLeaveEnd&&Nt.onLeaveEnd.apply(Nt,arguments),Ze.removeKey(Yt.key)}}),xr)}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,ct){var gt=Ze.keys,kt=ct.keyEntities,xr=Z(gt);if(!Dn)return{keyEntities:xr.map(function(Nt){return Object(n.a)(Object(n.a)({},Nt),{},{status:Le})})};var Hr=Y(kt,xr),on=kt.length;return{keyEntities:Hr.filter(function(Nt){for(var ot=null,dt=0;dt<on;dt+=1){var Yt=kt[dt];if(Yt.key===Nt.key){ot=Yt;break}}return!(ot&&ot.status===Xe&&Nt.status===le)})}}}]),Ne}(d.Component);return Ft.defaultProps={component:"div"},Ft}var ye=ce(q),Ee=Ue,Ce=function(Bn,Ft){var vt=Bn.prefixCls,_e=Bn.className,Ne=Bn.style,Ie=Bn.children,Ze=Bn.onMouseEnter,ct=Bn.onMouseLeave,gt=Bn.onMouseDown,kt=Bn.onTouchStart,xr=Ie;return d.Children.count(Ie)>1&&(xr=d.createElement("div",{className:"".concat(vt,"-content")},Ie)),d.createElement("div",{ref:Ft,className:_e,onMouseEnter:Ze,onMouseLeave:ct,onMouseDown:gt,onTouchStart:kt,style:Ne},xr)},ue=d.forwardRef(Ce);ue.displayName="PopupInner";var ge=ue;function Oe(Dn){var Bn=Dn.prefixCls,Ft=Dn.motion,vt=Dn.animation,_e=Dn.transitionName;return Ft||(vt?{motionName:"".concat(Bn,"-").concat(vt)}:_e?{motionName:_e}:null)}function Je(Dn){return Dn&&Dn.motionName}var lt=function(Dn){Object(r.a)(Ft,Dn);var Bn=Object(s.a)(Ft);function Ft(){var vt;return Object(a.a)(this,Ft),vt=Bn.apply(this,arguments),vt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},vt.popupRef=u.a.createRef(),vt.alignRef=u.a.createRef(),vt.nextFrameState=null,vt.nextFrameId=null,vt.onAlign=function(_e,Ne){var Ie=vt.state.status,Ze=vt.props,ct=Ze.getClassNameFromAlign,gt=Ze.onAlign,kt=ct(Ne);Ie==="align"?vt.setState({alignClassName:kt,status:"aligned"},function(){vt.alignRef.current.forceAlign()}):Ie==="aligned"?(vt.setState({alignClassName:kt,status:"afterAlign"}),gt(_e,Ne)):vt.setState({alignClassName:kt})},vt.onMotionEnd=function(){var _e=vt.props.visible;vt.setState({status:_e?"AfterMotion":"stable",inMotion:!1})},vt.setStateOnNextFrame=function(_e){vt.cancelFrameState(),vt.nextFrameState=Object(n.a)(Object(n.a)({},vt.nextFrameState),_e),vt.nextFrameId=F()(function(){var Ne=Object(n.a)({},vt.nextFrameState);vt.nextFrameState=null,vt.setState(Ne)})},vt.getMotion=function(){return Object(n.a)({},Oe(vt.props))},vt.getAlignTarget=function(){var _e=vt.props,Ne=_e.point,Ie=_e.getRootDomNode;return Ne||Ie},vt.cancelFrameState=function(){F.a.cancel(vt.nextFrameId)},vt.renderPopupElement=function(){var _e=vt.state,Ne=_e.status,Ie=_e.targetHeight,Ze=_e.targetWidth,ct=_e.alignClassName,gt=vt.props,kt=gt.prefixCls,xr=gt.className,Hr=gt.style,on=gt.stretch,Nt=gt.visible,ot=gt.align,dt=gt.destroyPopupOnHide,Yt=gt.onMouseEnter,Pt=gt.onMouseLeave,Et=gt.onMouseDown,Bt=gt.onTouchStart,wt=gt.children,Mt=_()(kt,xr,ct),Nr="".concat(kt,"-hidden"),Tr={};on&&(on.indexOf("height")!==-1?Tr.height=Ie:on.indexOf("minHeight")!==-1&&(Tr.minHeight=Ie),on.indexOf("width")!==-1?Tr.width=Ze:on.indexOf("minWidth")!==-1&&(Tr.minWidth=Ze));var yr=Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)({},Tr),vt.getZIndexStyle()),Hr),{},{opacity:Ne==="stable"||!Nt?void 0:0,pointerEvents:Ne==="stable"||!Nt?void 0:"none"}),en=vt.getMotion(),sn=Nt;Nt&&Ne!=="beforeMotion"&&Ne!=="motion"&&Ne!=="stable"&&(en.motionAppear=!1,en.motionEnter=!1,en.motionLeave=!1),(Ne==="afterAlign"||Ne==="beforeMotion")&&(sn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ri){var ci=en==null?void 0:en[ri];en[ri]=function(){for(var gi=arguments.length,Ni=new Array(gi),Qe=0;Qe<gi;Qe++)Ni[Qe]=arguments[Qe];ci==null||ci.apply(void 0,Ni),vt.setState({inMotion:!0})}});var Vn=!Nt||Ne!=="align"&&Ne!=="aligned"&&Ne!=="stable",jn=!0;return Ne==="stable"&&(jn=Nt),dt&&!jn?null:u.a.createElement(Ee,Object.assign({visible:sn},en,{removeOnLeave:!1,onEnterEnd:vt.onMotionEnd,onLeaveEnd:vt.onMotionEnd,leavedClassName:Nr}),function(ri,ci){var gi=ri.style,Ni=ri.className;return u.a.createElement(R.a,{target:vt.getAlignTarget(),key:"popup",ref:vt.alignRef,monitorWindowResize:!0,disabled:Vn,align:ot,onAlign:vt.onAlign},u.a.createElement(ge,{prefixCls:kt,className:_()(Mt,Ni),ref:Object(b.a)(ci,vt.popupRef),onMouseEnter:Yt,onMouseLeave:Pt,onMouseDown:Et,onTouchStart:Bt,style:Object(n.a)(Object(n.a)({},yr),gi)},wt))})},vt.renderMaskElement=function(){var _e=vt.props,Ne=_e.mask,Ie=_e.maskMotion,Ze=_e.maskTransitionName,ct=_e.maskAnimation,gt=_e.prefixCls,kt=_e.visible;if(!Ne)return null;var xr={};return Ie&&Ie.motionName&&(xr=Object(n.a)({motionAppear:!0},Oe({motion:Ie,prefixCls:gt,transitionName:Ze,animation:ct}))),u.a.createElement(Ee,Object.assign({},xr,{visible:kt,removeOnLeave:!0}),function(Hr){var on=Hr.className;return u.a.createElement("div",{style:vt.getZIndexStyle(),key:"mask",className:_()("".concat(gt,"-mask"),on)})})},vt}return Object(e.a)(Ft,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _e=this.state.status,Ne=this.props,Ie=Ne.getRootDomNode,Ze=Ne.visible,ct=Ne.stretch;if(this.cancelFrameState(),Ze&&_e!=="stable")switch(_e){case null:{this.setStateOnNextFrame({status:ct?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Je(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var gt=["measure","align",null,"beforeMotion","motion"],kt=gt.indexOf(_e),xr=gt[kt+1];kt!==-1&&xr&&this.setStateOnNextFrame({status:xr})}}if(_e==="measure"){var Hr=Ie();Hr&&this.setStateOnNextFrame({targetHeight:Hr.offsetHeight,targetWidth:Hr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var _e=this.props.zIndex;return{zIndex:_e}}},{key:"render",value:function(){return u.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(_e,Ne){var Ie=_e.visible,Ze=Object(t.a)(_e,["visible"]),ct=Ne.prevVisible,gt=Ne.status,kt=Ne.inMotion,xr={prevVisible:Ie,status:gt},Hr=Oe(Ze);return ct===null&&Ie===!1?(xr.status="stable",xr.inMotion=!1):Ie!==ct&&(xr.inMotion=!1,Ie||Je(Hr)&&kt?xr.status=null:xr.status="stable",Ie&&(xr.alignClassName=null)),xr}}]),Ft}(d.Component),tt=lt,ke=d.createContext(null),st=ke;function Ve(){}function Ot(){return""}function Ut(){return window.document}var ir=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function lr(Dn){var Bn=function(Ft){Object(r.a)(_e,Ft);var vt=Object(s.a)(_e);function _e(Ne){var Ie;Object(a.a)(this,_e),Ie=vt.call(this,Ne),Ie.popupRef=u.a.createRef(),Ie.triggerRef=u.a.createRef(),Ie.onMouseEnter=function(ct){var gt=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",ct),Ie.delaySetPopupVisible(!0,gt,gt?null:ct)},Ie.onMouseMove=function(ct){Ie.fireEvents("onMouseMove",ct),Ie.setPoint(ct)},Ie.onMouseLeave=function(ct){Ie.fireEvents("onMouseLeave",ct),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function(ct){if(ct.relatedTarget&&!ct.relatedTarget.setTimeout&&Ie.popupRef.current&&Ie.popupRef.current.popupRef.current&&Object(g.a)(Ie.popupRef.current.popupRef.current,ct.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function(ct){Ie.fireEvents("onFocus",ct),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function(ct){Ie.fireEvents("onMouseDown",ct),Ie.preClickTime=Date.now()},Ie.onTouchStart=function(ct){Ie.fireEvents("onTouchStart",ct),Ie.preTouchTime=Date.now()},Ie.onBlur=function(ct){Ie.fireEvents("onBlur",ct),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function(ct){ct.preventDefault(),Ie.fireEvents("onContextMenu",ct),Ie.setPopupVisible(!0,ct)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function(ct){if(Ie.fireEvents("onClick",ct),Ie.focusTime){var gt;if(Ie.preClickTime&&Ie.preTouchTime?gt=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?gt=Ie.preClickTime:Ie.preTouchTime&&(gt=Ie.preTouchTime),Math.abs(gt-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&ct&&ct.preventDefault&&ct.preventDefault();var kt=!Ie.state.popupVisible;(Ie.isClickToHide()&&!kt||kt&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,ct)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var ct;(ct=Ie.context).onPopupMouseDown.apply(ct,arguments)}},Ie.onDocumentClick=function(ct){if(Ie.props.mask&&!Ie.props.maskClosable)return;var gt=ct.target,kt=Ie.getRootDomNode(),xr=Ie.getPopupDomNode();!Object(g.a)(kt,gt)&&!Object(g.a)(xr,gt)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var ct=Ie.props.getTriggerDOMNode;if(ct)return ct(Ie.triggerRef.current);try{var gt=Object(A.a)(Ie.triggerRef.current);if(gt)return gt}catch(kt){}return h.a.findDOMNode(Object(l.a)(Ie))},Ie.getPopupClassNameFromAlign=function(ct){var gt=[],kt=Ie.props,xr=kt.popupPlacement,Hr=kt.builtinPlacements,on=kt.prefixCls,Nt=kt.alignPoint,ot=kt.getPopupClassNameFromAlign;return xr&&Hr&&gt.push(I(Hr,on,ct,Nt)),ot&&gt.push(ot(ct)),gt.join(" ")},Ie.getComponent=function(){var ct=Ie.props,gt=ct.prefixCls,kt=ct.destroyPopupOnHide,xr=ct.popupClassName,Hr=ct.onPopupAlign,on=ct.popupMotion,Nt=ct.popupAnimation,ot=ct.popupTransitionName,dt=ct.popupStyle,Yt=ct.mask,Pt=ct.maskAnimation,Et=ct.maskTransitionName,Bt=ct.maskMotion,wt=ct.zIndex,Mt=ct.popup,Nr=ct.stretch,Tr=ct.alignPoint,yr=Ie.state,en=yr.popupVisible,sn=yr.point,Vn=Ie.getPopupAlign(),jn={};return Ie.isMouseEnterToShow()&&(jn.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(jn.onMouseLeave=Ie.onPopupMouseLeave),jn.onMouseDown=Ie.onPopupMouseDown,jn.onTouchStart=Ie.onPopupMouseDown,u.a.createElement(tt,Object.assign({prefixCls:gt,destroyPopupOnHide:kt,visible:en,point:Tr&&sn,className:xr,align:Vn,onAlign:Hr,animation:Nt,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},jn,{stretch:Nr,getRootDomNode:Ie.getRootDomNode,style:dt,mask:Yt,zIndex:wt,transitionName:ot,maskAnimation:Pt,maskTransitionName:Et,maskMotion:Bt,ref:Ie.popupRef,motion:on}),typeof Mt=="function"?Mt():Mt)},Ie.getContainer=function(){var ct=Object(l.a)(Ie),gt=ct.props,kt=document.createElement("div");kt.style.position="absolute",kt.style.top="0",kt.style.left="0",kt.style.width="100%";var xr=gt.getPopupContainer?gt.getPopupContainer(Ie.getRootDomNode()):gt.getDocument().body;return xr.appendChild(kt),kt},Ie.setPoint=function(ct){var gt=Ie.props.alignPoint;if(!gt||!ct)return;Ie.setState({point:{pageX:ct.pageX,pageY:ct.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)};var Ze;return"popupVisible"in Ne?Ze=!!Ne.popupVisible:Ze=!!Ne.defaultPopupVisible,Ie.state={prevPopupVisible:Ze,popupVisible:Ze},ir.forEach(function(ct){Ie["fire".concat(ct)]=function(gt){Ie.fireEvents(ct,gt)}}),Ie}return Object(e.a)(_e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,Ze=this.state;if(Ze.popupVisible){var ct;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ct=Ie.getDocument(),this.clickOutsideHandler=Object(w.a)(ct,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ct=ct||Ie.getDocument(),this.touchOutsideHandler=Object(w.a)(ct,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ct=ct||Ie.getDocument(),this.contextMenuOutsideHandler1=Object(w.a)(ct,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(w.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 Ie=this.props,Ze=Ie.popupPlacement,ct=Ie.popupAlign,gt=Ie.builtinPlacements;return Ze&&gt?C(gt,Ze,ct):ct}},{key:"setPopupVisible",value:function(Ie,Ze){var ct=this.props.alignPoint,gt=this.state.popupVisible;this.clearDelayTimer(),gt!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:gt}),this.props.onPopupVisibleChange(Ie)),ct&&Ze&&this.setPoint(Ze)}},{key:"delaySetPopupVisible",value:function(Ie,Ze,ct){var gt=this,kt=Ze*1e3;if(this.clearDelayTimer(),kt){var xr=ct?{pageX:ct.pageX,pageY:ct.pageY}:null;this.delayTimer=window.setTimeout(function(){gt.setPopupVisible(Ie,xr),gt.clearDelayTimer()},kt)}else this.setPopupVisible(Ie,ct)}},{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(Ie){var Ze=this.props.children.props,ct=this.props;return Ze[Ie]&&ct[Ie]?this["fire".concat(Ie)]:Ze[Ie]||ct[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,Ze=Ie.action,ct=Ie.showAction;return Ze.indexOf("click")!==-1||ct.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,Ze=Ie.action,ct=Ie.showAction;return Ze.indexOf("contextMenu")!==-1||ct.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,Ze=Ie.action,ct=Ie.hideAction;return Ze.indexOf("click")!==-1||ct.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,Ze=Ie.action,ct=Ie.showAction;return Ze.indexOf("hover")!==-1||ct.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,Ze=Ie.action,ct=Ie.hideAction;return Ze.indexOf("hover")!==-1||ct.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,Ze=Ie.action,ct=Ie.showAction;return Ze.indexOf("focus")!==-1||ct.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,Ze=Ie.action,ct=Ie.hideAction;return Ze.indexOf("focus")!==-1||ct.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(Ie,Ze){var ct=this.props.children.props[Ie];ct&&ct(Ze);var gt=this.props[Ie];gt&&gt(Ze)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,Ze=this.props,ct=Ze.children,gt=Ze.forceRender,kt=Ze.alignPoint,xr=Ze.className,Hr=Ze.autoDestroy,on=u.a.Children.only(ct),Nt={key:"trigger"};this.isContextMenuToShow()?Nt.onContextMenu=this.onContextMenu:Nt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Nt.onClick=this.onClick,Nt.onMouseDown=this.onMouseDown,Nt.onTouchStart=this.onTouchStart):(Nt.onClick=this.createTwoChains("onClick"),Nt.onMouseDown=this.createTwoChains("onMouseDown"),Nt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Nt.onMouseEnter=this.onMouseEnter,kt&&(Nt.onMouseMove=this.onMouseMove)):Nt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Nt.onMouseLeave=this.onMouseLeave:Nt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Nt.onFocus=this.onFocus,Nt.onBlur=this.onBlur):(Nt.onFocus=this.createTwoChains("onFocus"),Nt.onBlur=this.createTwoChains("onBlur"));var ot=_()(on&&on.props&&on.props.className,xr);ot&&(Nt.className=ot);var dt=Object(n.a)({},Nt);Object(b.c)(on)&&(dt.ref=Object(b.a)(this.triggerRef,on.ref));var Yt=u.a.cloneElement(on,dt),Pt;return(Ie||this.popupRef.current||gt)&&(Pt=u.a.createElement(Dn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&Hr&&(Pt=null),u.a.createElement(st.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Yt,Pt)}}],[{key:"getDerivedStateFromProps",value:function(Ie,Ze){var ct=Ie.popupVisible,gt={};return ct!==void 0&&Ze.popupVisible!==ct&&(gt.popupVisible=ct,gt.prevPopupVisible=Ze.popupVisible),gt}}]),_e}(u.a.Component);return Bn.contextType=st,Bn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ot,getDocument:Ut,onPopupVisibleChange:Ve,afterPopupVisibleChange:Ve,onPopupAlign:Ve,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Bn}var Sr=lr(x.a),mt={adjustX:1,adjustY:1},or=[0,0],et={left:{points:["cr","cl"],overflow:mt,offset:[-4,0],targetOffset:or},right:{points:["cl","cr"],overflow:mt,offset:[4,0],targetOffset:or},top:{points:["bc","tc"],overflow:mt,offset:[0,-4],targetOffset:or},bottom:{points:["tc","bc"],overflow:mt,offset:[0,4],targetOffset:or},topLeft:{points:["bl","tl"],overflow:mt,offset:[0,-4],targetOffset:or},leftTop:{points:["tr","tl"],overflow:mt,offset:[-4,0],targetOffset:or},topRight:{points:["br","tr"],overflow:mt,offset:[0,-4],targetOffset:or},rightTop:{points:["tl","tr"],overflow:mt,offset:[4,0],targetOffset:or},bottomRight:{points:["tr","br"],overflow:mt,offset:[0,4],targetOffset:or},rightBottom:{points:["bl","br"],overflow:mt,offset:[4,0],targetOffset:or},bottomLeft:{points:["tl","bl"],overflow:mt,offset:[0,4],targetOffset:or},leftBottom:{points:["br","bl"],overflow:mt,offset:[-4,0],targetOffset:or}},ur=et,qr=function(Bn){var Ft=Bn.overlay,vt=Bn.prefixCls,_e=Bn.id,Ne=Bn.overlayInnerStyle;return d.createElement("div",{className:"".concat(vt,"-inner"),id:_e,role:"tooltip",style:Ne},typeof Ft=="function"?Ft():Ft)},Fe=qr,$t=function(Bn,Ft){var vt=Bn.overlayClassName,_e=Bn.trigger,Ne=_e===void 0?["hover"]:_e,Ie=Bn.mouseEnterDelay,Ze=Ie===void 0?0:Ie,ct=Bn.mouseLeaveDelay,gt=ct===void 0?.1:ct,kt=Bn.overlayStyle,xr=Bn.prefixCls,Hr=xr===void 0?"rc-tooltip":xr,on=Bn.children,Nt=Bn.onVisibleChange,ot=Bn.afterVisibleChange,dt=Bn.transitionName,Yt=Bn.animation,Pt=Bn.placement,Et=Pt===void 0?"right":Pt,Bt=Bn.align,wt=Bt===void 0?{}:Bt,Mt=Bn.destroyTooltipOnHide,Nr=Mt===void 0?!1:Mt,Tr=Bn.defaultVisible,yr=Bn.getTooltipContainer,en=Bn.overlayInnerStyle,sn=Object(t.a)(Bn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Vn=Object(d.useRef)(null);Object(d.useImperativeHandle)(Ft,function(){return Vn.current});var jn=Object(n.a)({},sn);"visible"in Bn&&(jn.popupVisible=Bn.visible);var ri=function(){var Se=Bn.arrowContent,Pe=Se===void 0?null:Se,He=Bn.overlay,Ye=Bn.id;return[d.createElement("div",{className:"".concat(Hr,"-arrow"),key:"arrow"},Pe),d.createElement(Fe,{key:"content",prefixCls:Hr,id:Ye,overlay:He,overlayInnerStyle:en})]},ci=!1,gi=!1;if(typeof Nr=="boolean")ci=Nr;else if(Nr&&Object(o.a)(Nr)==="object"){var Ni=Nr.keepParent;ci=Ni===!0,gi=Ni===!1}return d.createElement(Sr,Object.assign({popupClassName:vt,prefixCls:Hr,popup:ri,action:Ne,builtinPlacements:et,popupPlacement:Et,ref:Vn,popupAlign:wt,getPopupContainer:yr,onPopupVisibleChange:Nt,afterPopupVisibleChange:ot,popupTransitionName:dt,popupAnimation:Yt,defaultPopupVisible:Tr,destroyPopupOnHide:ci,autoDestroy:gi,mouseLeaveDelay:gt,popupStyle:kt,mouseEnterDelay:Ze},jn),on)},Lr=Object(d.forwardRef)($t),pt=Lr,qt={adjustX:1,adjustY:1},vr={adjustX:0,adjustY:0},pn=[0,0];function fr(Dn){return typeof Dn=="boolean"?Dn?qt:vr:f()(f()({},vr),Dn)}function gr(Dn){var Bn=Dn.arrowWidth,Ft=Bn===void 0?5:Bn,vt=Dn.horizontalArrowShift,_e=vt===void 0?16:vt,Ne=Dn.verticalArrowShift,Ie=Ne===void 0?8:Ne,Ze=Dn.autoAdjustOverflow,ct={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:[-(_e+Ft),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Ie+Ft)]},topRight:{points:["br","tc"],offset:[_e+Ft,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Ie+Ft)]},bottomRight:{points:["tr","bc"],offset:[_e+Ft,4]},rightBottom:{points:["bl","cr"],offset:[4,Ie+Ft]},bottomLeft:{points:["tl","bc"],offset:[-(_e+Ft),4]},leftBottom:{points:["br","cl"],offset:[-4,Ie+Ft]}};return Object.keys(ct).forEach(function(gt){ct[gt]=Dn.arrowPointAtCenter?f()(f()({},ct[gt]),{overflow:fr(Ze),targetOffset:pn}):f()(f()({},et[gt]),{overflow:fr(Ze)}),ct[gt].ignoreShake=!0}),ct}var dn=i("0n0R"),Qt=i("H84U"),sr=i("09Wf"),Qr=function(Bn,Ft){var vt={},_e=f()({},Bn);return Ft.forEach(function(Ne){Bn&&Ne in Bn&&(vt[Ne]=Bn[Ne],delete _e[Ne])}),{picked:vt,omitted:_e}},Cn=new RegExp("^(".concat(sr.a.join("|"),")(-inverse)?$"));function Fn(Dn,Bn){var Ft=Dn.type;if((Ft.__ANT_BUTTON===!0||Ft.__ANT_SWITCH===!0||Ft.__ANT_CHECKBOX===!0||Dn.type==="button")&&Dn.props.disabled){var vt=Qr(Dn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),_e=vt.picked,Ne=vt.omitted,Ie=f()(f()({display:"inline-block"},_e),{cursor:"not-allowed",width:Dn.props.block?"100%":null}),Ze=f()(f()({},Ne),{pointerEvents:"none"}),ct=Object(dn.a)(Dn,{style:Ze,className:null});return d.createElement("span",{style:Ie,className:_()(Dn.props.className,"".concat(Bn,"-disabled-compatible-wrapper"))},ct)}return Dn}var ti=d.forwardRef(function(Dn,Bn){var Ft,vt=d.useContext(Qt.b),_e=vt.getPopupContainer,Ne=vt.getPrefixCls,Ie=vt.direction,Ze=d.useState(!!Dn.visible||!!Dn.defaultVisible),ct=v()(Ze,2),gt=ct[0],kt=ct[1];d.useEffect(function(){"visible"in Dn&&kt(Dn.visible)},[Dn.visible]);var xr=function(){var Ni=Dn.title,Qe=Dn.overlay;return!Ni&&!Qe&&Ni!==0},Hr=function(Ni){"visible"in Dn||kt(xr()?!1:Ni),Dn.onVisibleChange&&!xr()&&Dn.onVisibleChange(Ni)},on=function(){var Ni=Dn.builtinPlacements,Qe=Dn.arrowPointAtCenter,Se=Dn.autoAdjustOverflow;return Ni||gr({arrowPointAtCenter:Qe,autoAdjustOverflow:Se})},Nt=function(Ni,Qe){var Se=on(),Pe=Object.keys(Se).filter(function(ze){return Se[ze].points[0]===Qe.points[0]&&Se[ze].points[1]===Qe.points[1]})[0];if(!Pe)return;var He=Ni.getBoundingClientRect(),Ye={top:"50%",left:"50%"};Pe.indexOf("top")>=0||Pe.indexOf("Bottom")>=0?Ye.top="".concat(He.height-Qe.offset[1],"px"):(Pe.indexOf("Top")>=0||Pe.indexOf("bottom")>=0)&&(Ye.top="".concat(-Qe.offset[1],"px")),Pe.indexOf("left")>=0||Pe.indexOf("Right")>=0?Ye.left="".concat(He.width-Qe.offset[0],"px"):(Pe.indexOf("right")>=0||Pe.indexOf("Left")>=0)&&(Ye.left="".concat(-Qe.offset[0],"px")),Ni.style.transformOrigin="".concat(Ye.left," ").concat(Ye.top)},ot=function(){var Ni=Dn.title,Qe=Dn.overlay;return Ni===0?Ni:Qe||Ni||""},dt=Dn.prefixCls,Yt=Dn.openClassName,Pt=Dn.getPopupContainer,Et=Dn.getTooltipContainer,Bt=Dn.overlayClassName,wt=Dn.color,Mt=Dn.overlayInnerStyle,Nr=Dn.children,Tr=Ne("tooltip",dt),yr=gt;!("visible"in Dn)&&xr()&&(yr=!1);var en=Fn(Object(dn.b)(Nr)?Nr:d.createElement("span",null,Nr),Tr),sn=en.props,Vn=_()(sn.className,p()({},Yt||"".concat(Tr,"-open"),!0)),jn=_()(Bt,(Ft={},p()(Ft,"".concat(Tr,"-rtl"),Ie==="rtl"),p()(Ft,"".concat(Tr,"-").concat(wt),wt&&Cn.test(wt)),Ft)),ri,ci;return wt&&!Cn.test(wt)&&(ri=f()(f()({},Mt),{background:wt}),ci={background:wt}),d.createElement(pt,f()({},Dn,{prefixCls:Tr,overlayClassName:jn,getTooltipContainer:Pt||Et||_e,ref:Bn,builtinPlacements:on(),overlay:ot(),visible:yr,onVisibleChange:Hr,onPopupAlign:Nt,overlayInnerStyle:ri,arrowContent:d.createElement("span",{className:"".concat(Tr,"-arrow-content"),style:ci})}),yr?Object(dn.a)(en,{className:Vn}):en)});ti.displayName="Tooltip",ti.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var ki=D.a=ti},"3TkU":function(k,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("QUw5"),i("Swgg"),i("LBfv"),i("noeP")},"3X6L":function(k,D,i){var y=i("bYtY"),p=i("7a+S"),S=i("OKJ2"),v=p.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(v,S);var m=v;k.exports=m},"3e3G":function(k,D,i){var y=i("bYtY"),p=i("QuXc"),S=function(f,d,u,o,n){this.x=f==null?.5:f,this.y=d==null?.5:d,this.r=u==null?.5:u,this.type="radial",this.global=n||!1,p.call(this,o)};S.prototype={constructor:S},y.inherits(S,p);var v=S;k.exports=v},"3gBT":function(k,D){var i=2311;function y(){return i++}k.exports=y},"3hzK":function(k,D){var i={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")}}};k.exports=i},"3m61":function(k,D){function i(p){return p instanceof Array||(p=[p,p]),p}function y(p){p.eachSeriesByType("graph",function(S){var v=S.getGraph(),m=S.getEdgeData(),f=i(S.get("edgeSymbol")),d=i(S.get("edgeSymbolSize")),u="lineStyle.color".split("."),o="lineStyle.opacity".split(".");m.setVisual("fromSymbol",f&&f[0]),m.setVisual("toSymbol",f&&f[1]),m.setVisual("fromSymbolSize",d&&d[0]),m.setVisual("toSymbolSize",d&&d[1]),m.setVisual("color",S.get(u)),m.setVisual("opacity",S.get(o)),m.each(function(n){var t=m.getItemModel(n),a=v.getEdgeByIndex(n),e=i(t.getShallow("symbol",!0)),l=i(t.getShallow("symbolSize",!0)),r=t.get(u),s=t.get(o);switch(r){case"source":r=a.node1.getVisual("color");break;case"target":r=a.node2.getVisual("color");break}e[0]&&a.setVisual("fromSymbol",e[0]),e[1]&&a.setVisual("toSymbol",e[1]),l[0]&&a.setVisual("fromSymbolSize",l[0]),l[1]&&a.setVisual("toSymbolSize",l[1]),a.setVisual("color",r),a.setVisual("opacity",s)})})}k.exports=y},"3ouR":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseSquareOutlined";var d=D.a=p.forwardRef(f)},"3y9D":function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.WordArray,m=S.Hasher,f=p.algo,d=[],u=f.SHA1=m.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(n,t){for(var a=this._hash.words,e=a[0],l=a[1],r=a[2],s=a[3],c=a[4],h=0;h<80;h++){if(h<16)d[h]=n[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 A=(e<<5|e>>>27)+c+d[h];h<20?A+=(l&r|~l&s)+1518500249:h<40?A+=(l^r^s)+1859775393:h<60?A+=(l&r|l&s|r&s)-1894007588:A+=(l^r^s)-899497514,c=s,s=r,r=l<<30|l>>>2,l=e,e=A}a[0]=a[0]+e|0,a[1]=a[1]+l|0,a[2]=a[2]+r|0,a[3]=a[3]+s|0,a[4]=a[4]+c|0},_doFinalize:function(){var n=this._data,t=n.words,a=this._nDataBytes*8,e=n.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(a/4294967296),t[(e+64>>>9<<4)+15]=a,n.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var n=m.clone.call(this);return n._hash=this._hash.clone(),n}});p.SHA1=m._createHelper(u),p.HmacSHA1=m._createHmacHelper(u)}(),y.SHA1})},"3zoK":function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("KCsZ"),v=i("nkfE"),m=i("OELB"),f=i("ICMv"),d=p.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return S([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var a=this.activeIntervals=y.clone(t);if(a)for(var e=a.length-1;e>=0;e--)m.asc(a[e])},getActiveState:function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(t))return"inactive";if(a.length===1){var e=a[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var l=0,r=a.length;l<r;l++)if(a[l][0]<=t&&t<=a[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,f);function o(t,a){return a.type||(a.data?"category":"value")}v("parallel",d,o,u);var n=d;k.exports=n},"49sm":function(k,D){var i={}.toString;k.exports=Array.isArray||function(y){return i.call(y)=="[object Array]"}},"4Feb":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("IwbS"),m=i("x3X8"),f=m.getDefaultLabel,d=i("MwEJ"),u=i("nVfU"),o=u.getLayoutOnAxis,n=i("gPAo"),t=i("T4UG"),a=i("Qxkt"),e=i("6Ic6"),l=i("sK/D"),r=l.createClipPath,s=i("qj72"),c=i("ANjR"),h=i("MHtr"),g=i("6usn"),A=i("Rx6q"),b=v.CACHED_LABEL_STYLE_PROPERTIES,w=["itemStyle"],x=["emphasis","itemStyle"],T=["label"],_=["emphasis","label"],E="e\0\0",C={cartesian2d:s,geo:c,singleAxis:h,polar:g,calendar:A};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(re,Ae){return d(this.getSource(),this)},getDataParams:function(re,Ae,Te){var Re=t.prototype.getDataParams.apply(this,arguments);return Te&&(Re.info=Te.info),Re}}),e.extend({type:"custom",_data:null,render:function(re,Ae,Te,Re){var Ge=this._data,Ue=re.getData(),nt=this.group,Le=R(re,Ue,Ae,Te);Ue.diff(Ge).add(function(Xe){P(null,Xe,Le(Xe,Re),re,nt,Ue)}).update(function(Xe,pe){var Z=Ge.getItemGraphicEl(pe);P(Z,Xe,Le(Xe,Re),re,nt,Ue)}).remove(function(Xe){var pe=Ge.getItemGraphicEl(Xe);pe&&nt.remove(pe)}).execute();var le=re.get("clip",!0)?r(re.coordinateSystem,!1,re):null;le?nt.setClipPath(le):nt.removeClipPath(),this._data=Ue},incrementalPrepareRender:function(re,Ae,Te){this.group.removeAll(),this._data=null},incrementalRender:function(re,Ae,Te,Re,Ge){var Ue=Ae.getData(),nt=R(Ae,Ue,Te,Re);function Le(pe){pe.isGroup||(pe.incremental=!0,pe.useHoverLayer=!0)}for(var le=re.start;le<re.end;le++){var Xe=P(null,le,nt(le,Ge),Ae,this.group,Ue);Xe.traverse(Le)}},dispose:S.noop,filterForExposedEvent:function(re,Ae,Te,Re){var Ge=Ae.element;if(Ge==null||Te.name===Ge)return!0;for(;(Te=Te.parent)&&Te!==this.group;)if(Te.name===Ge)return!0;return!1}});function I(re){var Ae=re.type,Te;if(Ae==="path"){var Re=re.shape,Ge=Re.width!=null&&Re.height!=null?{x:Re.x||0,y:Re.y||0,width:Re.width,height:Re.height}:null,Ue=ee(Re);Te=v.makePath(Ue,null,Ge,Re.layout||"center"),Te.__customPathData=Ue}else if(Ae==="image")Te=new v.Image({}),Te.__customImagePath=re.style.image;else if(Ae==="text")Te=new v.Text({}),Te.__customText=re.style.text;else if(Ae==="group")Te=new v.Group;else{if(Ae==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var nt=v.getShapeClass(Ae);Te=new nt}return Te.__customGraphicType=Ae,Te.name=re.name,Te}function O(re,Ae,Te,Re,Ge,Ue,nt){var Le={},le=Te.style||{};if(Te.shape&&(Le.shape=S.clone(Te.shape)),Te.position&&(Le.position=Te.position.slice()),Te.scale&&(Le.scale=Te.scale.slice()),Te.origin&&(Le.origin=Te.origin.slice()),Te.rotation&&(Le.rotation=Te.rotation),re.type==="image"&&Te.style){var Xe=Le.style={};S.each(["x","y","width","height"],function(Y){F(Y,Xe,le,re.style,Ue)})}if(re.type==="text"&&Te.style){var Xe=Le.style={};S.each(["x","y"],function(ne){F(ne,Xe,le,re.style,Ue)}),!le.hasOwnProperty("textFill")&&le.fill&&(le.textFill=le.fill),!le.hasOwnProperty("textStroke")&&le.stroke&&(le.textStroke=le.stroke)}if(re.type!=="group"&&(re.useStyle(le),Ue)){re.style.opacity=0;var pe=le.opacity;pe==null&&(pe=1),v.initProps(re,{style:{opacity:pe}},Re,Ae)}Ue?re.attr(Le):v.updateProps(re,Le,Re,Ae),Te.hasOwnProperty("z2")&&re.attr("z2",Te.z2||0),Te.hasOwnProperty("silent")&&re.attr("silent",Te.silent),Te.hasOwnProperty("invisible")&&re.attr("invisible",Te.invisible),Te.hasOwnProperty("ignore")&&re.attr("ignore",Te.ignore),Te.hasOwnProperty("info")&&re.attr("info",Te.info);var Z=Te.styleEmphasis;v.setElementHoverStyle(re,Z),nt&&v.setAsHighDownDispatcher(re,Z!==!1)}function F(re,Ae,Te,Re,Ge){Te[re]!=null&&!Ge&&(Ae[re]=Te[re],Te[re]=Re[re])}function R(re,Ae,Te,Re){var Ge=re.get("renderItem"),Ue=re.coordinateSystem,nt={};Ue&&(nt=Ue.prepareCustoms?Ue.prepareCustoms():C[Ue.type](Ue));var Le=S.defaults({getWidth:Re.getWidth,getHeight:Re.getHeight,getZr:Re.getZr,getDevicePixelRatio:Re.getDevicePixelRatio,value:Ee,style:Ce,styleEmphasis:ue,visual:ge,barLayout:Oe,currentSeriesIndices:Je,font:lt},nt.api||{}),le={context:{},seriesId:re.id,seriesName:re.name,seriesIndex:re.seriesIndex,coordSys:nt.coordSys,dataInsideLength:Ae.count(),encode:B(re.getData())},Xe,pe=!0,Z,Y,ne,ce;return function(tt,ke){return Xe=tt,pe=!0,Ge&&Ge(S.defaults({dataIndexInside:tt,dataIndex:Ae.getRawIndex(tt),actionType:ke?ke.type:null},le),Le)};function ye(tt){tt==null&&(tt=Xe),pe&&(Z=Ae.getItemModel(tt),Y=Z.getModel(T),ne=Z.getModel(_),ce=Ae.getItemVisual(tt,"color"),pe=!1)}function Ee(tt,ke){return ke==null&&(ke=Xe),Ae.get(Ae.getDimension(tt||0),ke)}function Ce(tt,ke){ke==null&&(ke=Xe),ye(ke);var st=Z.getModel(w).getItemStyle();ce!=null&&(st.fill=ce);var Ve=Ae.getItemVisual(ke,"opacity");Ve!=null&&(st.opacity=Ve);var Ot=tt?V(tt,Y):Y;return v.setTextStyle(st,Ot,null,{autoColor:ce,isRectText:!0}),st.text=Ot.getShallow("show")?S.retrieve2(re.getFormattedLabel(ke,"normal"),f(Ae,ke)):null,tt&&Q(st,tt),st}function ue(tt,ke){ke==null&&(ke=Xe),ye(ke);var st=Z.getModel(x).getItemStyle(),Ve=tt?V(tt,ne):ne;return v.setTextStyle(st,Ve,null,{isRectText:!0},!0),st.text=Ve.getShallow("show")?S.retrieve3(re.getFormattedLabel(ke,"emphasis"),re.getFormattedLabel(ke,"normal"),f(Ae,ke)):null,tt&&Q(st,tt),st}function ge(tt,ke){return ke==null&&(ke=Xe),Ae.getItemVisual(ke,tt)}function Oe(tt){if(Ue.getBaseAxis){var ke=Ue.getBaseAxis();return o(S.defaults({axis:ke},tt),Re)}}function Je(){return Te.getCurrentSeriesIndices()}function lt(tt){return v.getFont(tt,Te)}}function B(re){var Ae={};return S.each(re.dimensions,function(Te,Re){var Ge=re.getDimensionInfo(Te);if(!Ge.isExtraCoord){var Ue=Ge.coordDim,nt=Ae[Ue]=Ae[Ue]||[];nt[Ge.coordDimIndex]=Re}}),Ae}function P(re,Ae,Te,Re,Ge,Ue){return re=X(re,Ae,Te,Re,Ge,Ue,!0),re&&Ue.setItemGraphicEl(Ae,re),re}function X(re,Ae,Te,Re,Ge,Ue,nt){var Le=!Te;Te=Te||{};var le=Te.type,Xe=Te.shape,pe=Te.style;if(re&&(Le||le!=null&&le!==re.__customGraphicType||le==="path"&&q(Xe)&&ee(Xe)!==re.__customPathData||le==="image"&&se(pe,"image")&&pe.image!==re.__customImagePath||le==="text"&&se(Xe,"text")&&pe.text!==re.__customText)&&(Ge.remove(re),re=null),Le)return;var Z=!re;return!re&&(re=I(Te)),O(re,Ae,Te,Re,Ue,Z,nt),le==="group"&&M(re,Ae,Te,Re,Ue),Ge.add(re),re}function M(re,Ae,Te,Re,Ge){var Ue=Te.children,nt=Ue?Ue.length:0,Le=Te.$mergeChildren,le=Le==="byName"||Te.diffChildrenByName,Xe=Le===!1;if(!nt&&!le&&!Xe)return;if(le){z({oldChildren:re.children()||[],newChildren:Ue||[],dataIndex:Ae,animatableModel:Re,group:re,data:Ge});return}Xe&&re.removeAll();for(var pe=0;pe<nt;pe++)Ue[pe]&&X(re.childAt(pe),Ae,Ue[pe],Re,re,Ge)}function z(re){new n(re.oldChildren,re.newChildren,W,W,re).add(H).update(H).remove(G).execute()}function W(re,Ae){var Te=re&&re.name;return Te!=null?Te:E+Ae}function H(re,Ae){var Te=this.context,Re=re!=null?Te.newChildren[re]:null,Ge=Ae!=null?Te.oldChildren[Ae]:null;X(Ge,Te.dataIndex,Re,Te.animatableModel,Te.group,Te.data)}function V(re,Ae){var Te=new a({},Ae);return S.each(b,function(Re,Ge){re.hasOwnProperty(Re)&&(Te.option[Ge]=re[Re])}),Te}function Q(re,Ae){for(var Te in Ae)(Ae.hasOwnProperty(Te)||!b.hasOwnProperty(Te))&&(re[Te]=Ae[Te])}function G(re){var Ae=this.context,Te=Ae.oldChildren[re];Te&&Ae.group.remove(Te)}function ee(re){return re&&(re.pathData||re.d)}function q(re){return re&&(re.hasOwnProperty("pathData")||re.hasOwnProperty("d"))}function se(re,Ae){return re&&re.hasOwnProperty(Ae)}},"4HMb":function(k,D,i){var y=i("bYtY"),p=i("6GrX"),S=i("4NO4"),v=S.makeInner,m=i("aX7z"),f=m.makeLabelFormatter,d=m.getOptionCategoryInterval,u=m.shouldShowAllLabels,o=v();function n(T){return T.type==="category"?a(T):r(T)}function t(T,_){return T.type==="category"?l(T,_):{ticks:T.scale.getTicks()}}function a(T){var _=T.getLabelModel(),E=e(T,_);return!_.get("show")||T.scale.isBlank()?{labels:[],labelCategoryInterval:E.labelCategoryInterval}:E}function e(T,_){var E=s(T,"labels"),C=d(_),I=c(E,C);if(I)return I;var O,F;return y.isFunction(C)?O=x(T,C):(F=C==="auto"?g(T):C,O=w(T,F)),h(E,C,{labels:O,labelCategoryInterval:F})}function l(T,_){var E=s(T,"ticks"),C=d(_),I=c(E,C);if(I)return I;var O,F;if((!_.get("show")||T.scale.isBlank())&&(O=[]),y.isFunction(C))O=x(T,C,!0);else if(C==="auto"){var R=e(T,T.getLabelModel());F=R.labelCategoryInterval,O=y.map(R.labels,function(B){return B.tickValue})}else F=C,O=w(T,F,!0);return h(E,C,{ticks:O,tickCategoryInterval:F})}function r(T){var _=T.scale.getTicks(),E=f(T);return{labels:y.map(_,function(C,I){return{formattedLabel:E(C,I),rawLabel:T.scale.getLabel(C),tickValue:C}})}}function s(T,_){return o(T)[_]||(o(T)[_]=[])}function c(T,_){for(var E=0;E<T.length;E++)if(T[E].key===_)return T[E].value}function h(T,_,E){return T.push({key:_,value:E}),E}function g(T){var _=o(T).autoInterval;return _!=null?_:o(T).autoInterval=T.calculateCategoryInterval()}function A(T){var _=b(T),E=f(T),C=(_.axisRotate-_.labelRotate)/180*Math.PI,I=T.scale,O=I.getExtent(),F=I.count();if(O[1]-O[0]<1)return 0;var R=1;F>40&&(R=Math.max(1,Math.floor(F/40)));for(var B=O[0],P=T.dataToCoord(B+1)-T.dataToCoord(B),X=Math.abs(P*Math.cos(C)),M=Math.abs(P*Math.sin(C)),z=0,W=0;B<=O[1];B+=R){var H=0,V=0,Q=p.getBoundingRect(E(B),_.font,"center","top");H=Q.width*1.3,V=Q.height*1.3,z=Math.max(z,H,7),W=Math.max(W,V,7)}var G=z/X,ee=W/M;isNaN(G)&&(G=Infinity),isNaN(ee)&&(ee=Infinity);var q=Math.max(0,Math.floor(Math.min(G,ee))),se=o(T.model),re=T.getExtent(),Ae=se.lastAutoInterval,Te=se.lastTickCount;return Ae!=null&&Te!=null&&Math.abs(Ae-q)<=1&&Math.abs(Te-F)<=1&&Ae>q&&se.axisExtend0===re[0]&&se.axisExtend1===re[1]?q=Ae:(se.lastTickCount=F,se.lastAutoInterval=q,se.axisExtend0=re[0],se.axisExtend1=re[1]),q}function b(T){var _=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:_.get("rotate")||0,font:_.getFont()}}function w(T,_,E){var C=f(T),I=T.scale,O=I.getExtent(),F=T.getLabelModel(),R=[],B=Math.max((_||0)+1,1),P=O[0],X=I.count();P!==0&&B>1&&X/B>2&&(P=Math.round(Math.ceil(P/B)*B));var M=u(T),z=F.get("showMinLabel")||M,W=F.get("showMaxLabel")||M;z&&P!==O[0]&&V(O[0]);for(var H=P;H<=O[1];H+=B)V(H);W&&H-B!==O[1]&&V(O[1]);function V(Q){R.push(E?Q:{formattedLabel:C(Q),rawLabel:I.getLabel(Q),tickValue:Q})}return R}function x(T,_,E){var C=T.scale,I=f(T),O=[];return y.each(C.getTicks(),function(F){var R=C.getLabel(F);_(F,R)&&O.push(E?F:{formattedLabel:I(F),rawLabel:R,tickValue:F})}),O}D.createAxisLabels=n,D.createAxisTicks=t,D.calculateCategoryInterval=A},"4NO4":function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=y.each,v=y.isObject,m=y.isArray,f="series\0";function d(E){return E instanceof Array?E:E==null?[]:[E]}function u(E,C,I){if(E){E[C]=E[C]||{},E.emphasis=E.emphasis||{},E.emphasis[C]=E.emphasis[C]||{};for(var O=0,F=I.length;O<F;O++){var R=I[O];!E.emphasis[C].hasOwnProperty(R)&&E[C].hasOwnProperty(R)&&(E.emphasis[C][R]=E[C][R])}}}var o=["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 n(E){return v(E)&&!m(E)&&!(E instanceof Date)?E.value:E}function t(E){return v(E)&&!(E instanceof Array)}function a(E,C){C=(C||[]).slice();var I=y.map(E||[],function(O,F){return{exist:O}});return S(C,function(O,F){if(!v(O))return;for(var R=0;R<I.length;R++)if(!I[R].option&&O.id!=null&&I[R].exist.id===O.id+""){I[R].option=O,C[F]=null;return}for(var R=0;R<I.length;R++){var B=I[R].exist;if(!I[R].option&&(B.id==null||O.id==null)&&O.name!=null&&!r(O)&&!r(B)&&B.name===O.name+""){I[R].option=O,C[F]=null;return}}}),S(C,function(O,F){if(!v(O))return;for(var R=0;R<I.length;R++){var B=I[R].exist;if(!I[R].option&&!r(B)&&O.id==null){I[R].option=O;break}}R>=I.length&&I.push({option:O})}),I}function e(E){var C=y.createHashMap();S(E,function(I,O){var F=I.exist;F&&C.set(F.id,I)}),S(E,function(I,O){var F=I.option;y.assert(!F||F.id==null||!C.get(F.id)||C.get(F.id)===I,"id duplicates: "+(F&&F.id)),F&&F.id!=null&&C.set(F.id,I),!I.keyInfo&&(I.keyInfo={})}),S(E,function(I,O){var F=I.exist,R=I.option,B=I.keyInfo;if(!v(R))return;if(B.name=R.name!=null?R.name+"":F?F.name:f+O,F)B.id=F.id;else if(R.id!=null)B.id=R.id+"";else{var P=0;do B.id="\0"+B.name+"\0"+P++;while(C.get(B.id))}C.set(B.id,I)})}function l(E){var C=E.name;return!!(C&&C.indexOf(f))}function r(E){return v(E)&&E.id&&(E.id+"").indexOf("\0_ec_\0")===0}function s(E,C){var I={},O={};return F(E||[],I),F(C||[],O,I),[R(I),R(O)];function F(B,P,X){for(var M=0,z=B.length;M<z;M++)for(var W=B[M].seriesId,H=d(B[M].dataIndex),V=X&&X[W],Q=0,G=H.length;Q<G;Q++){var ee=H[Q];V&&V[ee]?V[ee]=null:(P[W]||(P[W]={}))[ee]=1}}function R(B,P){var X=[];for(var M in B)if(B.hasOwnProperty(M)&&B[M]!=null)if(P)X.push(+M);else{var z=R(B[M],!0);z.length&&X.push({seriesId:M,dataIndex:z})}return X}}function c(E,C){if(C.dataIndexInside!=null)return C.dataIndexInside;if(C.dataIndex!=null)return y.isArray(C.dataIndex)?y.map(C.dataIndex,function(I){return E.indexOfRawIndex(I)}):E.indexOfRawIndex(C.dataIndex);if(C.name!=null)return y.isArray(C.name)?y.map(C.name,function(I){return E.indexOfName(I)}):E.indexOfName(C.name)}function h(){var E="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(C){return C[E]||(C[E]={})}}var g=0;function A(E,C,I){if(y.isString(C)){var O={};O[C+"Index"]=0,C=O}var F=I&&I.defaultMainType;F&&!b(C,F+"Index")&&!b(C,F+"Id")&&!b(C,F+"Name")&&(C[F+"Index"]=0);var R={};return S(C,function(B,P){var B=C[P];if(P==="dataIndex"||P==="dataIndexInside"){R[P]=B;return}var X=P.match(/^(\w+)(Index|Id|Name)$/)||[],M=X[1],z=(X[2]||"").toLowerCase();if(!M||!z||B==null||z==="index"&&B==="none"||I&&I.includeMainTypes&&y.indexOf(I.includeMainTypes,M)<0)return;var W={mainType:M};(z!=="index"||B!=="all")&&(W[z]=B);var H=E.queryComponents(W);R[M+"Models"]=H,R[M+"Model"]=H[0]}),R}function b(E,C){return E&&E.hasOwnProperty(C)}function w(E,C,I){E.setAttribute?E.setAttribute(C,I):E[C]=I}function x(E,C){return E.getAttribute?E.getAttribute(C):E[C]}function T(E){return E==="auto"?p.domSupported?"html":"richText":E||"html"}function _(E,C){var I=y.createHashMap(),O=[];return y.each(E,function(F){var R=C(F);(I.get(R)||(O.push(R),I.set(R,[]))).push(F)}),{keys:O,buckets:I}}D.normalizeToArray=d,D.defaultEmphasis=u,D.TEXT_STYLE_OPTIONS=o,D.getDataItemValue=n,D.isDataItemOption=t,D.mappingToExists=a,D.makeIdAndName=e,D.isNameSpecified=l,D.isIdInner=r,D.compressBatches=s,D.queryDataIndex=c,D.makeInner=h,D.parseFinder=A,D.setAttribute=w,D.getAttribute=x,D.getTooltipRenderMode=T,D.groupData=_},"4NgU":function(k,D,i){var y=i("Yl7c");function p(v){this._setting=v||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}p.prototype.parse=function(v){return v},p.prototype.getSetting=function(v){return this._setting[v]},p.prototype.contain=function(v){var m=this._extent;return v>=m[0]&&v<=m[1]},p.prototype.normalize=function(v){var m=this._extent;return m[1]===m[0]?.5:(v-m[0])/(m[1]-m[0])},p.prototype.scale=function(v){var m=this._extent;return v*(m[1]-m[0])+m[0]},p.prototype.unionExtent=function(v){var m=this._extent;v[0]<m[0]&&(m[0]=v[0]),v[1]>m[1]&&(m[1]=v[1])},p.prototype.unionExtentFromData=function(v,m){this.unionExtent(v.getApproximateExtent(m))},p.prototype.getExtent=function(){return this._extent.slice()},p.prototype.setExtent=function(v,m){var f=this._extent;isNaN(v)||(f[0]=v),isNaN(m)||(f[1]=m)},p.prototype.isBlank=function(){return this._isBlank},p.prototype.setBlank=function(v){this._isBlank=v},p.prototype.getLabel=null,y.enableClassExtend(p),y.enableClassManagement(p,{registerWhenExtend:!0});var S=p;k.exports=S},"4fz+":function(k,D,i){var y=i("bYtY"),p=i("1bdT"),S=i("mFDi"),v=function(d){d=d||{},p.call(this,d);for(var u in d)d.hasOwnProperty(u)&&(this[u]=d[u]);this._children=[],this.__storage=null,this.__dirty=!0};v.prototype={constructor:v,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,o=0;o<u.length;o++)if(u[o].name===d)return u[o]},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 o=this._children,n=o.indexOf(u);n>=0&&(o.splice(n,0,d),this._doAdd(d))}return this},_doAdd:function(d){d.parent&&d.parent.remove(d),d.parent=this;var u=this.__storage,o=this.__zr;u&&u!==d.__storage&&(u.addToStorage(d),d instanceof v&&d.addChildrenToStorage(u)),o&&o.refresh()},remove:function(d){var u=this.__zr,o=this.__storage,n=this._children,t=y.indexOf(n,d);return t<0?this:(n.splice(t,1),d.parent=null,o&&(o.delFromStorage(d),d instanceof v&&d.delChildrenFromStorage(o)),u&&u.refresh(),this)},removeAll:function(){var d=this._children,u=this.__storage,o,n;for(n=0;n<d.length;n++)o=d[n],u&&(u.delFromStorage(o),o instanceof v&&o.delChildrenFromStorage(u)),o.parent=null;return d.length=0,this},eachChild:function(d,u){for(var o=this._children,n=0;n<o.length;n++){var t=o[n];d.call(u,t,n)}return this},traverse:function(d,u){for(var o=0;o<this._children.length;o++){var n=this._children[o];d.call(u,n),n.type==="group"&&n.traverse(d,u)}return this},addChildrenToStorage:function(d){for(var u=0;u<this._children.length;u++){var o=this._children[u];d.addToStorage(o),o instanceof v&&o.addChildrenToStorage(d)}},delChildrenFromStorage:function(d){for(var u=0;u<this._children.length;u++){var o=this._children[u];d.delFromStorage(o),o instanceof v&&o.delChildrenFromStorage(d)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(d){for(var u=null,o=new S(0,0,0,0),n=d||this._children,t=[],a=0;a<n.length;a++){var e=n[a];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),r=e.getLocalTransform(t);r?(o.copy(l),o.applyTransform(r),u=u||o.clone(),u.union(o)):(u=u||l.clone(),u.union(l))}return u||o}},y.inherits(v,p);var m=v;k.exports=m},"4i/N":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseOutlined";var d=D.a=p.forwardRef(f)},"4kuk":function(k,D,i){var y=i("SfRM"),p=i("Hvzi"),S=i("u8Dt"),v=i("ekgI"),m=i("JSQU");function f(d){var u=-1,o=d==null?0:d.length;for(this.clear();++u<o;){var n=d[u];this.set(n[0],n[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=S,f.prototype.has=v,f.prototype.set=m,k.exports=f},"4mN7":function(k,D,i){var y=i("QBsz"),p=i("Sj9i"),S=Math.min,v=Math.max,m=Math.sin,f=Math.cos,d=Math.PI*2,u=y.create(),o=y.create(),n=y.create();function t(h,g,A){if(h.length===0)return;var b=h[0],w=b[0],x=b[0],T=b[1],_=b[1],E;for(E=1;E<h.length;E++)b=h[E],w=S(w,b[0]),x=v(x,b[0]),T=S(T,b[1]),_=v(_,b[1]);g[0]=w,g[1]=T,A[0]=x,A[1]=_}function a(h,g,A,b,w,x){w[0]=S(h,A),w[1]=S(g,b),x[0]=v(h,A),x[1]=v(g,b)}var e=[],l=[];function r(h,g,A,b,w,x,T,_,E,C){var I=p.cubicExtrema,O=p.cubicAt,F,R=I(h,A,w,T,e);for(E[0]=Infinity,E[1]=Infinity,C[0]=-Infinity,C[1]=-Infinity,F=0;F<R;F++){var B=O(h,A,w,T,e[F]);E[0]=S(B,E[0]),C[0]=v(B,C[0])}for(R=I(g,b,x,_,l),F=0;F<R;F++){var P=O(g,b,x,_,l[F]);E[1]=S(P,E[1]),C[1]=v(P,C[1])}E[0]=S(h,E[0]),C[0]=v(h,C[0]),E[0]=S(T,E[0]),C[0]=v(T,C[0]),E[1]=S(g,E[1]),C[1]=v(g,C[1]),E[1]=S(_,E[1]),C[1]=v(_,C[1])}function s(h,g,A,b,w,x,T,_){var E=p.quadraticExtremum,C=p.quadraticAt,I=v(S(E(h,A,w),1),0),O=v(S(E(g,b,x),1),0),F=C(h,A,w,I),R=C(g,b,x,O);T[0]=S(h,w,F),T[1]=S(g,x,R),_[0]=v(h,w,F),_[1]=v(g,x,R)}function c(h,g,A,b,w,x,T,_,E){var C=y.min,I=y.max,O=Math.abs(w-x);if(O%d<1e-4&&O>1e-4){_[0]=h-A,_[1]=g-b,E[0]=h+A,E[1]=g+b;return}if(u[0]=f(w)*A+h,u[1]=m(w)*b+g,o[0]=f(x)*A+h,o[1]=m(x)*b+g,C(_,u,o),I(E,u,o),w=w%d,w<0&&(w=w+d),x=x%d,x<0&&(x=x+d),w>x&&!T?x+=d:w<x&&T&&(w+=d),T){var F=x;x=w,w=F}for(var R=0;R<x;R+=Math.PI/2)R>w&&(n[0]=f(R)*A+h,n[1]=m(R)*b+g,C(_,n,_),I(E,n,E))}D.fromPoints=t,D.fromLine=a,D.fromCubic=r,D.fromQuadratic=s,D.fromArc=c},"4vCz":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("X2/X")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PlusSquareOutlined";var n=v.forwardRef(o);D.default=n},"4xFK":function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},"56rv":function(k,D,i){var y=i("IwbS"),p=i("x3X8"),S=p.getDefaultLabel;function v(f,d,u,o,n,t,a){var e=u.getModel("label"),l=u.getModel("emphasis.label");y.setLabelStyle(f,d,e,l,{labelFetcher:n,labelDataIndex:t,defaultText:S(n.getData(),t),isRectText:!0,autoColor:o}),m(f),m(d)}function m(f,d){f.textPosition==="outside"&&(f.textPosition=d)}D.setLabel=v},"59Ip":function(k,D,i){var y=i("Sj9i");function p(S,v,m,f,d,u,o,n,t,a,e){if(t===0)return!1;var l=t;if(e>v+l&&e>f+l&&e>u+l&&e>n+l||e<v-l&&e<f-l&&e<u-l&&e<n-l||a>S+l&&a>m+l&&a>d+l&&a>o+l||a<S-l&&a<m-l&&a<d-l&&a<o-l)return!1;var r=y.cubicProjectPoint(S,v,m,f,d,u,o,n,a,e,null);return r<=l/2}D.containStroke=p},"5Dmo":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("5YgA"),v=i.n(S)},"5GOC":function(k,D,i){"use strict";var y=i("cIOH"),p=i("b56q"),S=i("15/o")},"5GhG":function(k,D,i){var y=i("5GtS"),p=i("bYtY"),S=i("L0Ub"),v=S.getDimensionTypeByAxis,m=i("D5nY"),f=m.makeSeriesEncodeForAxisCoordSys,d={_baseAxisDim:null,getInitialData:function(u,o){var n,t=o.getComponent("xAxis",this.get("xAxisIndex")),a=o.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),l=a.get("type"),r;e==="category"?(u.layout="horizontal",n=t.getOrdinalMeta(),r=!0):l==="category"?(u.layout="vertical",n=a.getOrdinalMeta(),r=!0):u.layout=u.layout||"horizontal";var s=["x","y"],c=u.layout==="horizontal"?0:1,h=this._baseAxisDim=s[c],g=s[1-c],A=[t,a],b=A[c].get("type"),w=A[1-c].get("type"),x=u.data;if(x&&r){var T=[];p.each(x,function(C,I){var O;C.value&&p.isArray(C.value)?(O=C.value.slice(),C.value.unshift(I)):p.isArray(C)?(O=C.slice(),C.unshift(I)):O=C,T.push(O)}),u.data=T}var _=this.defaultValueDimensions,E=[{name:h,type:v(b),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:v(w),dimsDef:_.slice()}];return y(this,{coordDimensions:E,dimensionsCount:_.length+1,encodeDefaulter:p.curry(f,E,this)})},getBaseAxis:function(){var u=this._baseAxisDim;return this.ecModel.getComponent(u+"Axis",this.get(u+"AxisIndex")).axis}};D.seriesModelMixin=d},"5GtS":function(k,D,i){var y=i("sdST"),p=i("YXkt"),S=i("bYtY"),v=S.extend,m=S.isArray;function f(d,u,o){u=m(u)&&{coordDimensions:u}||v({},u);var n=d.getSource(),t=y(n,u),a=new p(t,d);return a.initData(n,o),a}k.exports=f},"5Hur":function(k,D,i){var y=i("4NO4"),p=y.makeInner,S=y.normalizeToArray,v=p();function m(d,u){for(var o=d.length,n=0;n<o;n++)if(d[n].length>u)return d[n];return d[o-1]}var f={clearColorPalette:function(){v(this).colorIdx=0,v(this).colorNameMap={}},getColorFromPalette:function(d,u,o){u=u||this;var n=v(u),t=n.colorIdx||0,a=n.colorNameMap=n.colorNameMap||{};if(a.hasOwnProperty(d))return a[d];var e=S(this.get("color",!0)),l=this.get("colorLayer",!0),r=o==null||!l?e:m(l,o);if(r=r||e,!r||!r.length)return;var s=r[t];return d&&(a[d]=s),n.colorIdx=(t+1)%r.length,s}};k.exports=f},"5NDa":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("OnYD"),v=i.n(S),m=i("+L6B")},"5NHt":function(k,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("N5BQ"),i("IyUQ"),i("LBfv"),i("noeP")},"5OYt":function(k,D,i){"use strict";var y=i("J4zp"),p=i.n(y),S=i("q1tI"),v=i.n(S),m=i("ACnJ");function f(){var d=Object(S.useState)({}),u=p()(d,2),o=u[0],n=u[1];return Object(S.useEffect)(function(){var t=m.a.subscribe(function(a){n(a)});return function(){return m.a.unsubscribe(t)}},[]),o}D.a=f},"5RzL":function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),l=i.n(e),r=i("1OyB"),s=i("vuIU"),c=i("Ji7U"),h=i("LK+K"),g=i("KQm4"),A=i("U8pU"),b=i("ODXe"),w=i("VTBJ"),x=i("rePB"),T=i("Ff2n"),_=i("4IlW"),E=i("TSYQ"),C=i.n(E),I=i("6cGi"),O=i("bX4T"),F=i("8XRh"),R=function(ar){var nn=ar.className,Gt=ar.customizeIcon,wr=ar.customizeIconProps,Pr=ar.onMouseDown,Jr=ar.onClick,wn=ar.children,bt;return typeof Gt=="function"?bt=Gt(wr):bt=Gt,e.createElement("span",{className:nn,onMouseDown:function(Ar){Ar.preventDefault(),Pr&&Pr(Ar)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Jr,"aria-hidden":!0},bt!==void 0?bt:e.createElement("span",{className:C()(nn.split(/\s+/).map(function(mr){return"".concat(mr,"-icon")}))},wn))},B=R,P=i("c+Xe"),X=function(ar,nn){var Gt=ar.prefixCls,wr=ar.id,Pr=ar.inputElement,Jr=ar.disabled,wn=ar.tabIndex,bt=ar.autoFocus,mr=ar.autoComplete,Ar=ar.editable,Ur=ar.accessibilityIndex,un=ar.value,An=ar.maxLength,ln=ar.onKeyDown,Hn=ar.onMouseDown,Ln=ar.onChange,ni=ar.onPaste,Ai=ar.onCompositionStart,ii=ar.onCompositionEnd,_i=ar.open,Ri=ar.attrs,ji=Pr||e.createElement("input",null),wi=ji,Ii=wi.ref,Oi=wi.props,Ui=Oi.onKeyDown,Zi=Oi.onChange,ma=Oi.onMouseDown,Hi=Oi.onCompositionStart,xa=Oi.onCompositionEnd,Ea=Oi.style;return ji=e.cloneElement(ji,Object(w.a)(Object(w.a)({id:wr,ref:Object(P.a)(nn,Ii),disabled:Jr,tabIndex:wn,autoComplete:mr||"off",type:"search",autoFocus:bt,className:"".concat(Gt,"-selection-search-input"),style:Object(w.a)(Object(w.a)({},Ea),{},{opacity:Ar?null:0}),role:"combobox","aria-expanded":_i,"aria-haspopup":"listbox","aria-owns":"".concat(wr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(wr,"_list"),"aria-activedescendant":"".concat(wr,"_list_").concat(Ur)},Ri),{},{value:Ar?un:"",maxLength:An,readOnly:!Ar,unselectable:Ar?null:"on",onKeyDown:function(ra){ln(ra),Ui&&Ui(ra)},onMouseDown:function(ra){Hn(ra),ma&&ma(ra)},onChange:function(ra){Ln(ra),Zi&&Zi(ra)},onCompositionStart:function(ra){Ai(ra),Hi&&Hi(ra)},onCompositionEnd:function(ra){ii(ra),xa&&xa(ra)},onPaste:ni})),ji},M=e.forwardRef(X);M.displayName="Input";var z=M;function W(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function H(Ir,ar){var nn=ar.labelInValue,Gt=ar.combobox;if(Ir===void 0||Ir===""&&Gt)return[];var wr=Array.isArray(Ir)?Ir:[Ir];return nn?wr.map(function(Pr){var Jr=Pr.key,wn=Pr.value;return wn!==void 0?wn:Jr}):wr}function V(Ir,ar){var nn=ar.optionLabelProp,Gt=ar.labelInValue,wr=ar.prevValue,Pr=ar.options,Jr=ar.getLabeledValue,wn=Ir;return Gt&&(wn=wn.map(function(bt){return Jr(bt,{options:Pr,prevValue:wr,labelInValue:Gt,optionLabelProp:nn})})),wn}function Q(Ir,ar){var nn=Object(g.a)(ar),Gt;for(Gt=Ir.length-1;Gt>=0&&Ir[Gt].disabled;Gt-=1);var wr=null;return Gt!==-1&&(wr=nn[Gt],nn.splice(Gt,1)),{values:nn,removedValue:wr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,ee=G,q=0;function se(){var Ir;return ee?(Ir=q,q+=1):Ir="TEST_OR_SSR",Ir}function re(Ir,ar){ee?e.useLayoutEffect(Ir,ar):e.useEffect(Ir,ar)}var Ae="__RC_SELECT_MAX_REST_COUNT__",Te=function(ar){var nn=ar.id,Gt=ar.prefixCls,wr=ar.values,Pr=ar.open,Jr=ar.searchValue,wn=ar.inputRef,bt=ar.placeholder,mr=ar.disabled,Ar=ar.mode,Ur=ar.showSearch,un=ar.autoFocus,An=ar.autoComplete,ln=ar.accessibilityIndex,Hn=ar.tabIndex,Ln=ar.removeIcon,ni=ar.choiceTransitionName,Ai=ar.maxTagCount,ii=ar.maxTagTextLength,_i=ar.maxTagPlaceholder,Ri=_i===void 0?function(Ga){return"+ ".concat(Ga.length," ...")}:_i,ji=ar.tagRender,wi=ar.onSelect,Ii=ar.onInputChange,Oi=ar.onInputPaste,Ui=ar.onInputKeyDown,Zi=ar.onInputMouseDown,ma=ar.onInputCompositionStart,Hi=ar.onInputCompositionEnd,xa=Object(e.useState)(!1),Ea=Object(b.a)(xa,2),ta=Ea[0],ra=Ea[1],ga=e.useRef(null),sa=Object(e.useState)(0),Ba=Object(b.a)(sa,2),va=Ba[0],Ia=Ba[1],za=Object(e.useState)(!1),Va=Object(b.a)(za,2),Ya=Va[0],Bi=Va[1];e.useEffect(function(){ra(!0)},[]);var ro=Pr||Ar==="tags"?Jr:"",lo=Ar==="tags"||Ur&&(Pr||Ya);re(function(){Ia(ga.current.scrollWidth)},[ro]);var no=wr,co;typeof Ai=="number"&&(co=wr.length-Ai,no=wr.slice(0,Ai)),typeof ii=="number"&&(no=no.map(function(Ga){var Po=Ga.label,uo=Object(T.a)(Ga,["label"]),ho=Po;if(typeof Po=="string"||typeof Po=="number"){var zo=String(ho);zo.length>ii&&(ho="".concat(zo.slice(0,ii),"..."))}return Object(w.a)(Object(w.a)({},uo),{},{label:ho})})),co>0&&no.push({key:Ae,label:typeof Ri=="function"?Ri(wr.slice(Ai)):Ri});var To=e.createElement(F.a,{component:!1,keys:no,motionName:ni,motionAppear:ta},function(Ga){var Po=Ga.key,uo=Ga.label,ho=Ga.value,zo=Ga.disabled,Oa=Ga.className,mo=Ga.style,Do=Po||ho,Qo=!mr&&Po!==Ae&&!zo,xo=function(go){go.preventDefault(),go.stopPropagation()},Fo=function(go){go&&go.stopPropagation(),wi(ho,{selected:!1})};return typeof ji=="function"?e.createElement("span",{key:Do,onMouseDown:xo,className:Oa,style:mo},ji({label:uo,value:ho,disabled:zo,closable:Qo,onClose:Fo})):e.createElement("span",{key:Do,className:C()(Oa,"".concat(Gt,"-selection-item"),Object(x.a)({},"".concat(Gt,"-selection-item-disabled"),zo)),style:mo},e.createElement("span",{className:"".concat(Gt,"-selection-item-content")},uo),Qo&&e.createElement(B,{className:"".concat(Gt,"-selection-item-remove"),onMouseDown:xo,onClick:Fo,customizeIcon:Ln},"\xD7"))});return e.createElement(e.Fragment,null,To,e.createElement("span",{className:"".concat(Gt,"-selection-search"),style:{width:va},onFocus:function(){Bi(!0)},onBlur:function(){Bi(!1)}},e.createElement(z,{ref:wn,open:Pr,prefixCls:Gt,id:nn,inputElement:null,disabled:mr,autoFocus:un,autoComplete:An,editable:lo,accessibilityIndex:ln,value:ro,onKeyDown:Ui,onMouseDown:Zi,onChange:Ii,onPaste:Oi,onCompositionStart:ma,onCompositionEnd:Hi,tabIndex:Hn,attrs:Object(O.a)(ar,!0)}),e.createElement("span",{ref:ga,className:"".concat(Gt,"-selection-search-mirror"),"aria-hidden":!0},ro,"\xA0")),!wr.length&&!ro&&e.createElement("span",{className:"".concat(Gt,"-selection-placeholder")},bt))},Re=Te,Ge=function(ar){var nn=ar.inputElement,Gt=ar.prefixCls,wr=ar.id,Pr=ar.inputRef,Jr=ar.disabled,wn=ar.autoFocus,bt=ar.autoComplete,mr=ar.accessibilityIndex,Ar=ar.mode,Ur=ar.open,un=ar.values,An=ar.placeholder,ln=ar.tabIndex,Hn=ar.showSearch,Ln=ar.searchValue,ni=ar.activeValue,Ai=ar.maxLength,ii=ar.onInputKeyDown,_i=ar.onInputMouseDown,Ri=ar.onInputChange,ji=ar.onInputPaste,wi=ar.onInputCompositionStart,Ii=ar.onInputCompositionEnd,Oi=e.useState(!1),Ui=Object(b.a)(Oi,2),Zi=Ui[0],ma=Ui[1],Hi=Ar==="combobox",xa=Hi||Hn,Ea=un[0],ta=Ln||"";Hi&&ni&&!Zi&&(ta=ni),e.useEffect(function(){Hi&&ma(!1)},[Hi,ni]);var ra=Ar!=="combobox"&&!Ur?!1:!!ta,ga=Ea&&(typeof Ea.label=="string"||typeof Ea.label=="number")?Ea.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(Gt,"-selection-search")},e.createElement(z,{ref:Pr,prefixCls:Gt,id:wr,open:Ur,inputElement:nn,disabled:Jr,autoFocus:wn,autoComplete:bt,editable:xa,accessibilityIndex:mr,value:ta,onKeyDown:ii,onMouseDown:_i,onChange:function(Ba){ma(!0),Ri(Ba)},onPaste:ji,onCompositionStart:wi,onCompositionEnd:Ii,tabIndex:ln,attrs:Object(O.a)(ar,!0),maxLength:Hi?Ai:void 0})),!Hi&&Ea&&!ra&&e.createElement("span",{className:"".concat(Gt,"-selection-item"),title:ga},Ea.label),!Ea&&!ra&&e.createElement("span",{className:"".concat(Gt,"-selection-placeholder")},An))},Ue=Ge;function nt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ar=e.useRef(null),nn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(nn.current)}},[]);function Gt(wr){(wr||ar.current===null)&&(ar.current=wr),window.clearTimeout(nn.current),nn.current=window.setTimeout(function(){ar.current=null},Ir)}return[function(){return ar.current},Gt]}var Le=function(ar,nn){var Gt=Object(e.useRef)(null),wr=Object(e.useRef)(!1),Pr=ar.prefixCls,Jr=ar.multiple,wn=ar.open,bt=ar.mode,mr=ar.showSearch,Ar=ar.tokenWithEnter,Ur=ar.onSearch,un=ar.onSearchSubmit,An=ar.onToggleOpen,ln=ar.onInputKeyDown,Hn=ar.domRef;e.useImperativeHandle(nn,function(){return{focus:function(){Gt.current.focus()},blur:function(){Gt.current.blur()}}});var Ln=nt(0),ni=Object(b.a)(Ln,2),Ai=ni[0],ii=ni[1],_i=function(ra){var ga=ra.which;(ga===_.a.UP||ga===_.a.DOWN)&&ra.preventDefault(),ln&&ln(ra),ga===_.a.ENTER&&bt==="tags"&&!wr.current&&!wn&&un(ra.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(ga)||An(!0)},Ri=function(){ii(!0)},ji=Object(e.useRef)(null),wi=function(ra){Ur(ra,!0,wr.current)!==!1&&An(!0)},Ii=function(){wr.current=!0},Oi=function(){wr.current=!1},Ui=function(ra){var ga=ra.target.value;if(Ar&&ji.current&&/[\r\n]/.test(ji.current)){var sa=ji.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");ga=ga.replace(sa,ji.current)}ji.current=null,wi(ga)},Zi=function(ra){var ga=ra.clipboardData,sa=ga.getData("text");ji.current=sa},ma=function(ra){var ga=ra.target;if(ga!==Gt.current){var sa=document.body.style.msTouchAction!==void 0;sa?setTimeout(function(){Gt.current.focus()}):Gt.current.focus()}},Hi=function(ra){var ga=Ai();ra.target!==Gt.current&&!ga&&ra.preventDefault(),(bt!=="combobox"&&(!mr||!ga)||!wn)&&(wn&&Ur("",!0,!1),An())},xa={inputRef:Gt,onInputKeyDown:_i,onInputMouseDown:Ri,onInputChange:Ui,onInputPaste:Zi,onInputCompositionStart:Ii,onInputCompositionEnd:Oi},Ea=Jr?e.createElement(Re,Object.assign({},ar,xa)):e.createElement(Ue,Object.assign({},ar,xa));return e.createElement("div",{ref:Hn,className:"".concat(Pr,"-selector"),onClick:ma,onMouseDown:Hi},Ea)},le=e.forwardRef(Le);le.displayName="Selector";var Xe=le,pe=i("uciX"),Z=function(ar){var nn=typeof ar!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:nn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:nn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:nn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:nn,adjustY:1}}}},Y=function(ar,nn){var Gt=ar.prefixCls,wr=ar.disabled,Pr=ar.visible,Jr=ar.children,wn=ar.popupElement,bt=ar.containerWidth,mr=ar.animation,Ar=ar.transitionName,Ur=ar.dropdownStyle,un=ar.dropdownClassName,An=ar.direction,ln=An===void 0?"ltr":An,Hn=ar.dropdownMatchSelectWidth,Ln=Hn===void 0?!0:Hn,ni=ar.dropdownRender,Ai=ar.dropdownAlign,ii=ar.getPopupContainer,_i=ar.empty,Ri=ar.getTriggerDOMNode,ji=Object(T.a)(ar,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),wi="".concat(Gt,"-dropdown"),Ii=wn;ni&&(Ii=ni(wn));var Oi=e.useMemo(function(){return Z(Ln)},[Ln]),Ui=mr?"".concat(wi,"-").concat(mr):Ar,Zi=e.useRef(null);e.useImperativeHandle(nn,function(){return{getPopupElement:function(){return Zi.current}}});var ma=Object(w.a)({minWidth:bt},Ur);return typeof Ln=="number"?ma.width=Ln:Ln&&(ma.width=bt),e.createElement(pe.a,Object.assign({},ji,{showAction:[],hideAction:[],popupPlacement:ln==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Oi,prefixCls:wi,popupTransitionName:Ui,popup:e.createElement("div",{ref:Zi},Ii),popupAlign:Ai,popupVisible:Pr,getPopupContainer:ii,popupClassName:C()(un,Object(x.a)({},"".concat(wi,"-empty"),_i)),popupStyle:ma,getTriggerDOMNode:Ri}),Jr)},ne=e.forwardRef(Y);ne.displayName="SelectTrigger";var ce=ne,ye="RC_SELECT_INTERNAL_PROPS_MARK";function Ee(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ar=e.useState(!1),nn=Object(b.a)(ar,2),Gt=nn[0],wr=nn[1],Pr=e.useRef(null),Jr=function(){window.clearTimeout(Pr.current)};e.useEffect(function(){return Jr},[]);var wn=function(mr,Ar){Jr(),Pr.current=window.setTimeout(function(){wr(mr),Ar&&Ar()},Ir)};return[Gt,wn,Jr]}var Ce=i("T5bk"),ue=i("Kwbf");function ge(Ir,ar){var nn=Ir.key,Gt;return"value"in Ir&&(Gt=Ir.value),nn!=null?nn:Gt!==void 0?Gt:"rc-index-key-".concat(ar)}function Oe(Ir){var ar=[];function nn(Gt,wr){Gt.forEach(function(Pr){wr||!("options"in Pr)?ar.push({key:ge(Pr,ar.length),groupOption:wr,data:Pr}):(ar.push({key:ge(Pr,ar.length),group:!0,data:Pr}),nn(Pr.options,!0))})}return nn(Ir,!1),ar}function Je(Ir){var ar=Object(w.a)({},Ir);return"props"in ar||Object.defineProperty(ar,"props",{get:function(){return Object(ue.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ar}}),ar}function lt(Ir,ar){var nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gt=nn.prevValueOptions,wr=Gt===void 0?[]:Gt,Pr=new Map;return ar.forEach(function(Jr){if(!Jr.group){var wn=Jr.data;Pr.set(wn.value,wn)}}),Ir.map(function(Jr){var wn=Pr.get(Jr);return wn||(wn=Object(w.a)({},wr.find(function(bt){return bt._INTERNAL_OPTION_VALUE_===Jr}))),Je(wn)})}var tt=function(ar,nn){var Gt=nn.options,wr=nn.prevValue,Pr=nn.labelInValue,Jr=nn.optionLabelProp,wn=lt([ar],Gt)[0],bt={value:ar},mr,Ar=W(wr);return Pr&&(mr=Ar.find(function(Ur){return Object(A.a)(Ur)==="object"&&"value"in Ur?Ur.value===ar:Ur.key===ar})),mr&&Object(A.a)(mr)==="object"&&"label"in mr?(bt.label=mr.label,wn&&typeof mr.label=="string"&&typeof wn[Jr]=="string"&&mr.label.trim()!==wn[Jr].trim()&&Object(ue.a)(!1,"`label` of `value` is not same as `label` in Select options.")):wn&&Jr in wn?bt.label=wn[Jr]:bt.label=ar,bt.key=bt.value,bt};function ke(Ir){return W(Ir).join("")}function st(Ir){return function(ar,nn){var Gt=ar.toLowerCase();if("options"in nn)return ke(nn.label).toLowerCase().includes(Gt);var wr=nn[Ir],Pr=ke(wr).toLowerCase();return Pr.includes(Gt)}}function Ve(Ir,ar,nn){var Gt=nn.optionFilterProp,wr=nn.filterOption,Pr=[],Jr;return wr===!1?Object(g.a)(ar):(typeof wr=="function"?Jr=wr:Jr=st(Gt),ar.forEach(function(wn){if("options"in wn){var bt=Jr(Ir,wn);if(bt)Pr.push(wn);else{var mr=wn.options.filter(function(Ar){return Jr(Ir,Ar)});mr.length&&Pr.push(Object(w.a)(Object(w.a)({},wn),{},{options:mr}))}return}Jr(Ir,Je(wn))&&Pr.push(wn)}),Pr)}function Ot(Ir,ar){if(!ar||!ar.length)return null;var nn=!1;function Gt(Pr,Jr){var wn=Object(Ce.a)(Jr),bt=wn[0],mr=wn.slice(1);if(!bt)return[Pr];var Ar=Pr.split(bt);return nn=nn||Ar.length>1,Ar.reduce(function(Ur,un){return[].concat(Object(g.a)(Ur),Object(g.a)(Gt(un,mr)))},[]).filter(function(Ur){return Ur})}var wr=Gt(Ir,ar);return nn?wr:null}function Ut(Ir,ar){var nn=lt([Ir],ar)[0];return nn.disabled}function ir(Ir,ar,nn,Gt){var wr=W(ar).slice().sort(),Pr=Object(g.a)(Ir),Jr=new Set;return Ir.forEach(function(wn){wn.options?wn.options.forEach(function(bt){Jr.add(bt.value)}):Jr.add(wn.value)}),wr.forEach(function(wn){var bt=Gt?wn.value:wn;if(!Jr.has(bt)){var mr;Pr.push(Gt?(mr={},Object(x.a)(mr,nn,wn.label),Object(x.a)(mr,"value",bt),mr):{value:bt})}}),Pr}function lr(Ir,ar,nn){var Gt=e.useRef(null);Gt.current={elements:Ir.filter(function(wr){return wr}),open:ar,triggerOpen:nn},e.useEffect(function(){function wr(Pr){var Jr=Pr.target;Gt.current.open&&Gt.current.elements.every(function(wn){return!wn.contains(Jr)&&wn!==Jr})&&Gt.current.triggerOpen(!1)}return window.addEventListener("mousedown",wr),function(){return window.removeEventListener("mousedown",wr)}},[])}function Sr(Ir){var ar=e.useRef(Ir),nn=e.useMemo(function(){var Gt=new Map;ar.current.forEach(function(Pr){var Jr=Pr.value,wn=Pr.label;Jr!==wn&&Gt.set(Jr,wn)});var wr=Ir.map(function(Pr){var Jr=Gt.get(Pr.value);return Pr.value===Pr.label&&Jr?Object(w.a)(Object(w.a)({},Pr),{},{label:Jr}):Pr});return ar.current=wr,wr},[Ir]);return nn}function mt(Ir,ar){var nn=e.useRef(null),Gt=e.useMemo(function(){var Pr=new Map;return ar.forEach(function(Jr){var wn=Jr.data.value;Pr.set(wn,Jr)}),Pr},[Ir,ar]);nn.current=Gt;var wr=function(Jr){return Jr.map(function(wn){return nn.current.get(wn)}).filter(Boolean)};return wr}var or=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function et(Ir){var ar=Ir.prefixCls,nn=Ir.components.optionList,Gt=Ir.convertChildrenToData,wr=Ir.flattenOptions,Pr=Ir.getLabeledValue,Jr=Ir.filterOptions,wn=Ir.isValueDisabled,bt=Ir.findValueOption,mr=Ir.warningProps,Ar=Ir.fillOptionsWithMissingValue,Ur=Ir.omitDOMProps;function un(ln,Hn){var Ln,ni=ln.prefixCls,Ai=ni===void 0?ar:ni,ii=ln.className,_i=ln.id,Ri=ln.open,ji=ln.defaultOpen,wi=ln.options,Ii=ln.children,Oi=ln.mode,Ui=ln.value,Zi=ln.defaultValue,ma=ln.labelInValue,Hi=ln.showSearch,xa=ln.inputValue,Ea=ln.searchValue,ta=ln.filterOption,ra=ln.filterSort,ga=ln.optionFilterProp,sa=ga===void 0?"value":ga,Ba=ln.autoClearSearchValue,va=Ba===void 0?!0:Ba,Ia=ln.onSearch,za=ln.allowClear,Va=ln.clearIcon,Ya=ln.showArrow,Bi=ln.inputIcon,ro=ln.menuItemSelectedIcon,lo=ln.disabled,no=ln.loading,co=ln.defaultActiveFirstOption,To=ln.notFoundContent,Ga=To===void 0?"Not Found":To,Po=ln.optionLabelProp,uo=ln.backfill,ho=ln.getInputElement,zo=ln.getPopupContainer,Oa=ln.listHeight,mo=Oa===void 0?200:Oa,Do=ln.listItemHeight,Qo=Do===void 0?20:Do,xo=ln.animation,Fo=ln.transitionName,Ho=ln.virtual,go=ln.dropdownStyle,qa=ln.dropdownClassName,_a=ln.dropdownMatchSelectWidth,at=ln.dropdownRender,dr=ln.dropdownAlign,Kr=ln.showAction,Br=Kr===void 0?[]:Kr,Pn=ln.direction,$r=ln.tokenSeparators,Mr=ln.tagRender,Gn=ln.onPopupScroll,zr=ln.onDropdownVisibleChange,Nn=ln.onFocus,Qn=ln.onBlur,Zn=ln.onKeyUp,Yn=ln.onKeyDown,ui=ln.onMouseDown,ai=ln.onChange,hi=ln.onSelect,pi=ln.onDeselect,zi=ln.onClear,Ci=ln.internalProps,na=Ci===void 0?{}:Ci,La=Object(T.a)(ln,["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"]),pa=na.mark===ye,ca=Ur?Ur(La):La;or.forEach(function(So){delete ca[So]});var wa=Object(e.useRef)(null),Ca=Object(e.useRef)(null),No=Object(e.useRef)(null),fo=Object(e.useRef)(null),ea=Object(e.useMemo)(function(){return($r||[]).some(function(So){return[`
`,`\r
`].includes(So)})},[$r]),ua=Ee(),da=Object(b.a)(ua,3),Ra=da[0],Za=da[1],Qa=da[2],oo=Object(e.useState)(),bo=Object(b.a)(oo,2),es=bo[0],ss=bo[1];Object(e.useEffect)(function(){ss("rc_select_".concat(se()))},[]);var Rs=_i||es,Ko=Po;Ko===void 0&&(Ko=wi?"label":"children");var qo=Oi==="combobox"?!1:ma,to=Oi==="tags"||Oi==="multiple",Xa=Hi!==void 0?Hi:to||Oi==="combobox",Wa=Object(e.useRef)(null);e.useImperativeHandle(Hn,function(){return{focus:No.current.focus,blur:No.current.blur}});var Jo=Object(I.a)(Zi,{value:Ui}),hs=Object(b.a)(Jo,2),Eo=hs[0],Ws=hs[1],_o=Object(e.useMemo)(function(){return H(Eo,{labelInValue:qo,combobox:Oi==="combobox"})},[Eo,qo]),Mo=Object(e.useMemo)(function(){return new Set(_o)},[_o]),xs=Object(e.useState)(null),Go=Object(b.a)(xs,2),ns=Go[0],is=Go[1],bs=Object(e.useState)(""),Sl=Object(b.a)(bs,2),Fs=Sl[0],Ms=Sl[1],cs=Fs;Oi==="combobox"&&Eo!==void 0?cs=Eo:Ea!==void 0?cs=Ea:xa&&(cs=xa);var _s=Object(e.useMemo)(function(){var So=wi;return So===void 0&&(So=Gt(Ii)),Oi==="tags"&&Ar&&(So=Ar(So,Eo,Ko,ma)),So||[]},[wi,Ii,Oi,Eo]),Us=Object(e.useMemo)(function(){return wr(_s,ln)},[_s]),ks=mt(_o,Us),ps=Object(e.useMemo)(function(){if(!cs||!Xa)return Object(g.a)(_s);var So=Jr(cs,_s,{optionFilterProp:sa,filterOption:Oi==="combobox"&&ta===void 0?function(){return!0}:ta});return Oi==="tags"&&So.every(function(io){return io[sa]!==cs})&&So.unshift({value:cs,label:cs,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ra&&Array.isArray(So)?Object(g.a)(So).sort(ra):So},[_s,cs,Oi,Xa,ra]),Es=Object(e.useMemo)(function(){return wr(ps,ln)},[ps]);Object(e.useEffect)(function(){fo.current&&fo.current.scrollTo&&fo.current.scrollTo(0)},[cs]);var tl=Object(e.useMemo)(function(){var So=_o.map(function(io){var Bo=ks([io]),ds=Pr(io,{options:Bo,prevValue:Eo,labelInValue:qo,optionLabelProp:Ko});return Object(w.a)(Object(w.a)({},ds),{},{disabled:wn(io,Bo)})});return!Oi&&So.length===1&&So[0].value===null&&So[0].label===null?[]:So},[Eo,_s,Oi]);tl=Sr(tl);var Os=function(io,Bo,ds){var gs=ks([io]),Wo=bt([io],gs)[0];if(!na.skipTriggerSelect){var vs=qo?Pr(io,{options:gs,prevValue:Eo,labelInValue:qo,optionLabelProp:Ko}):io;Bo&&hi?hi(vs,Wo):!Bo&&pi&&pi(vs,Wo)}pa&&(Bo&&na.onRawSelect?na.onRawSelect(io,Wo,ds):!Bo&&na.onRawDeselect&&na.onRawDeselect(io,Wo,ds))},Ro=Object(e.useState)([]),wo=Object(b.a)(Ro,2),ms=wo[0],As=wo[1],ao=function(io){if(pa&&na.skipTriggerChange)return;var Bo=ks(io),ds=V(Array.from(io),{labelInValue:qo,options:Bo,getLabeledValue:Pr,prevValue:Eo,optionLabelProp:Ko}),gs=to?ds:ds[0];if(ai&&(_o.length!==0||ds.length!==0)){var Wo=bt(io,Bo,{prevValueOptions:ms});As(Wo.map(function(vs,Ps){var js=Object(w.a)({},vs);return Object.defineProperty(js,"_INTERNAL_OPTION_VALUE_",{get:function(){return io[Ps]}}),js})),ai(gs,to?Wo:Wo[0])}Ws(gs)},Ct=function(io,Bo){var ds=Bo.selected,gs=Bo.source;if(lo)return;var Wo;to?(Wo=new Set(_o),ds?Wo.add(io):Wo.delete(io)):(Wo=new Set,Wo.add(io)),(to||!to&&Array.from(_o)[0]!==io)&&ao(Array.from(Wo)),Os(io,!to||ds,gs),Oi==="combobox"?(Ms(String(io)),is("")):(!to||va)&&(Ms(""),is(""))},zt=function(io,Bo){Ct(io,Object(w.a)(Object(w.a)({},Bo),{},{source:"option"}))},gn=function(io,Bo){Ct(io,Object(w.a)(Object(w.a)({},Bo),{},{source:"selection"}))},$n=Oi==="combobox"&&ho&&ho()||null,bi=Object(I.a)(void 0,{defaultValue:ji,value:Ri}),oi=Object(b.a)(bi,2),Yi=oi[0],ha=oi[1],Pa=Yi,Co=!Ga&&!ps.length;(lo||Co&&Pa&&Oi==="combobox")&&(Pa=!1);var vo=Co?!1:Pa,ko=function(io){var Bo=io!==void 0?io:!Pa;Yi!==Bo&&!lo&&(ha(Bo),zr&&zr(Bo))};lr([wa.current,Ca.current&&Ca.current.getPopupElement()],vo,ko);var ls=function(io,Bo,ds){var gs=!0,Wo=io;is(null);var vs=ds?null:Ot(io,$r),Ps=vs;if(Oi==="combobox")Bo&&ao([Wo]);else if(vs){Wo="",Oi!=="tags"&&(Ps=vs.map(function(bl){var ml=Us.find(function(Dl){var xl=Dl.data;return xl[Ko]===bl});return ml?ml.data.value:null}).filter(function(bl){return bl!==null}));var js=Array.from(new Set([].concat(Object(g.a)(_o),Object(g.a)(Ps))));ao(js),js.forEach(function(bl){Os(bl,!0,"input")}),ko(!1),gs=!1}return Ms(Wo),Ia&&cs!==Wo&&Ia(Wo),gs},jo=function(io){var Bo=Array.from(new Set([].concat(Object(g.a)(_o),[io])));ao(Bo),Bo.forEach(function(ds){Os(ds,!0,"input")}),Ms("")};Object(e.useEffect)(function(){Yi&&!!lo&&ha(!1)},[lo]),Object(e.useEffect)(function(){!Pa&&!to&&Oi!=="combobox"&&ls("",!1,!1)},[Pa]);var Zo=nt(),ts=Object(b.a)(Zo,2),Ua=ts[0],Oo=ts[1],as=function(io){var Bo=Ua(),ds=io.which;if(!Pa&&ds===_.a.ENTER&&ko(!0),Oo(!!cs),ds===_.a.BACKSPACE&&!Bo&&to&&!cs&&_o.length){var gs=Q(tl,_o);gs.removedValue!==null&&(ao(gs.values),Os(gs.removedValue,!1,"input"))}for(var Wo=arguments.length,vs=new Array(Wo>1?Wo-1:0),Ps=1;Ps<Wo;Ps++)vs[Ps-1]=arguments[Ps];if(Pa&&fo.current){var js;(js=fo.current).onKeyDown.apply(js,[io].concat(vs))}Yn&&Yn.apply(void 0,[io].concat(vs))},Ul=function(io){for(var Bo=arguments.length,ds=new Array(Bo>1?Bo-1:0),gs=1;gs<Bo;gs++)ds[gs-1]=arguments[gs];if(Pa&&fo.current){var Wo;(Wo=fo.current).onKeyUp.apply(Wo,[io].concat(ds))}Zn&&Zn.apply(void 0,[io].concat(ds))},vl=Object(e.useRef)(!1),Qs=function(){Za(!0),lo||(Nn&&!vl.current&&Nn.apply(void 0,arguments),Br.includes("focus")&&ko(!0)),vl.current=!0},il=function(){if(Za(!1,function(){vl.current=!1,ko(!1)}),lo)return;cs&&(Oi==="tags"?(ls("",!1,!1),ao(Array.from(new Set([].concat(Object(g.a)(_o),[cs]))))):Oi==="multiple"&&Ms("")),Qn&&Qn.apply(void 0,arguments)},ll=[];Object(e.useEffect)(function(){return function(){ll.forEach(function(So){return clearTimeout(So)}),ll.splice(0,ll.length)}},[]);var jl=function(io){var Bo=io.target,ds=Ca.current&&Ca.current.getPopupElement();if(ds&&ds.contains(Bo)){var gs=setTimeout(function(){var js=ll.indexOf(gs);js!==-1&&ll.splice(js,1),Qa(),ds.contains(document.activeElement)||No.current.focus()});ll.push(gs)}if(ui){for(var Wo=arguments.length,vs=new Array(Wo>1?Wo-1:0),Ps=1;Ps<Wo;Ps++)vs[Ps-1]=arguments[Ps];ui.apply(void 0,[io].concat(vs))}},Hl=Object(e.useState)(0),Js=Object(b.a)(Hl,2),fs=Js[0],Xo=Js[1],Zs=co!==void 0?co:Oi!=="combobox",Gl=function(io,Bo){var ds=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},gs=ds.source,Wo=gs===void 0?"keyboard":gs;Xo(Bo),uo&&Oi==="combobox"&&io!==null&&Wo==="keyboard"&&is(String(io))},Kl=Object(e.useState)(null),ka=Object(b.a)(Kl,2),Ll=ka[0],kl=ka[1],Al=Object(e.useState)({}),Is=Object(b.a)(Al,2),al=Is[1];function eu(){al({})}re(function(){if(vo){var So=Math.ceil(wa.current.offsetWidth);Ll!==So&&kl(So)}},[vo]);var Nl=e.createElement(nn,{ref:fo,prefixCls:Ai,id:Rs,open:Pa,childrenAsData:!wi,options:ps,flattenOptions:Es,multiple:to,values:Mo,height:mo,itemHeight:Qo,onSelect:zt,onToggleOpen:ko,onActiveValue:Gl,defaultActiveFirstOption:Zs,notFoundContent:Ga,onScroll:Gn,searchValue:cs,menuItemSelectedIcon:ro,virtual:Ho!==!1&&_a!==!1,onMouseEnter:eu}),yl,Ls=function(){pa&&na.onClear&&na.onClear(),zi&&zi(),ao([]),ls("",!1,!1)};!lo&&za&&(_o.length||cs)&&(yl=e.createElement(B,{className:"".concat(Ai,"-clear"),onMouseDown:Ls,customizeIcon:Va},"\xD7"));var Xs=Ya!==void 0?Ya:no||!to&&Oi!=="combobox",Wl;Xs&&(Wl=e.createElement(B,{className:C()("".concat(Ai,"-arrow"),Object(x.a)({},"".concat(Ai,"-arrow-loading"),no)),customizeIcon:Bi,customizeIconProps:{loading:no,searchValue:cs,open:Pa,focused:Ra,showSearch:Xa}}));var ol=C()(Ai,ii,(Ln={},Object(x.a)(Ln,"".concat(Ai,"-focused"),Ra),Object(x.a)(Ln,"".concat(Ai,"-multiple"),to),Object(x.a)(Ln,"".concat(Ai,"-single"),!to),Object(x.a)(Ln,"".concat(Ai,"-allow-clear"),za),Object(x.a)(Ln,"".concat(Ai,"-show-arrow"),Xs),Object(x.a)(Ln,"".concat(Ai,"-disabled"),lo),Object(x.a)(Ln,"".concat(Ai,"-loading"),no),Object(x.a)(Ln,"".concat(Ai,"-open"),Pa),Object(x.a)(Ln,"".concat(Ai,"-customize-input"),$n),Object(x.a)(Ln,"".concat(Ai,"-show-search"),Xa),Ln));return e.createElement("div",Object.assign({className:ol},ca,{ref:wa,onMouseDown:jl,onKeyDown:as,onKeyUp:Ul,onFocus:Qs,onBlur:il}),Ra&&!Pa&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(_o.join(", "))),e.createElement(ce,{ref:Ca,disabled:lo,prefixCls:Ai,visible:vo,popupElement:Nl,containerWidth:Ll,animation:xo,transitionName:Fo,dropdownStyle:go,dropdownClassName:qa,direction:Pn,dropdownMatchSelectWidth:_a,dropdownRender:at,dropdownAlign:dr,getPopupContainer:zo,empty:!_s.length,getTriggerDOMNode:function(){return Wa.current}},e.createElement(Xe,Object.assign({},ln,{domRef:Wa,prefixCls:Ai,inputElement:$n,ref:No,id:Rs,showSearch:Xa,mode:Oi,accessibilityIndex:fs,multiple:to,tagRender:Mr,values:tl,open:Pa,onToggleOpen:ko,searchValue:cs,activeValue:ns,onSearch:ls,onSearchSubmit:jo,onSelect:gn,tokenWithEnter:ea}))),Wl,yl)}var An=e.forwardRef(un);return An}var ur=i("Zm9Q"),qr=i("JX7q"),Fe=e.createContext(null),$t=function(ar){var nn=ar.prefixCls,Gt=ar.level,wr=ar.isStart,Pr=ar.isEnd;if(!Gt)return null;for(var Jr="".concat(nn,"-indent-unit"),wn=[],bt=0;bt<Gt;bt+=1){var mr;wn.push(e.createElement("span",{key:bt,className:C()(Jr,(mr={},Object(x.a)(mr,"".concat(Jr,"-start"),wr[bt]),Object(x.a)(mr,"".concat(Jr,"-end"),Pr[bt]),mr))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(nn,"-indent")},wn)},Lr=$t,pt="open",qt="close",vr="---",pn=function(Ir){Object(c.a)(nn,Ir);var ar=Object(h.a)(nn);function nn(){var Gt;return Object(r.a)(this,nn),Gt=ar.apply(this,arguments),Gt.state={dragNodeHighlight:!1},Gt.onSelectorClick=function(wr){var Pr=Gt.props.context.onNodeClick;Pr(wr,Nt(Gt.props)),Gt.isSelectable()?Gt.onSelect(wr):Gt.onCheck(wr)},Gt.onSelectorDoubleClick=function(wr){var Pr=Gt.props.context.onNodeDoubleClick;Pr(wr,Nt(Gt.props))},Gt.onSelect=function(wr){if(Gt.isDisabled())return;var Pr=Gt.props.context.onNodeSelect;wr.preventDefault(),Pr(wr,Nt(Gt.props))},Gt.onCheck=function(wr){if(Gt.isDisabled())return;var Pr=Gt.props,Jr=Pr.disableCheckbox,wn=Pr.checked,bt=Gt.props.context.onNodeCheck;if(!Gt.isCheckable()||Jr)return;wr.preventDefault();var mr=!wn;bt(wr,Nt(Gt.props),mr)},Gt.onMouseEnter=function(wr){var Pr=Gt.props.context.onNodeMouseEnter;Pr(wr,Nt(Gt.props))},Gt.onMouseLeave=function(wr){var Pr=Gt.props.context.onNodeMouseLeave;Pr(wr,Nt(Gt.props))},Gt.onContextMenu=function(wr){var Pr=Gt.props.context.onNodeContextMenu;Pr(wr,Nt(Gt.props))},Gt.onDragStart=function(wr){var Pr=Gt.props.context.onNodeDragStart;wr.stopPropagation(),Gt.setState({dragNodeHighlight:!0}),Pr(wr,Object(qr.a)(Gt));try{wr.dataTransfer.setData("text/plain","")}catch(Jr){}},Gt.onDragEnter=function(wr){var Pr=Gt.props.context.onNodeDragEnter;wr.preventDefault(),wr.stopPropagation(),Pr(wr,Object(qr.a)(Gt))},Gt.onDragOver=function(wr){var Pr=Gt.props.context.onNodeDragOver;wr.preventDefault(),wr.stopPropagation(),Pr(wr,Object(qr.a)(Gt))},Gt.onDragLeave=function(wr){var Pr=Gt.props.context.onNodeDragLeave;wr.stopPropagation(),Pr(wr,Object(qr.a)(Gt))},Gt.onDragEnd=function(wr){var Pr=Gt.props.context.onNodeDragEnd;wr.stopPropagation(),Gt.setState({dragNodeHighlight:!1}),Pr(wr,Object(qr.a)(Gt))},Gt.onDrop=function(wr){var Pr=Gt.props.context.onNodeDrop;wr.preventDefault(),wr.stopPropagation(),Gt.setState({dragNodeHighlight:!1}),Pr(wr,Object(qr.a)(Gt))},Gt.onExpand=function(wr){var Pr=Gt.props.context.onNodeExpand;Pr(wr,Nt(Gt.props))},Gt.setSelectHandle=function(wr){Gt.selectHandle=wr},Gt.getNodeState=function(){var wr=Gt.props.expanded;return Gt.isLeaf()?null:wr?pt:qt},Gt.hasChildren=function(){var wr=Gt.props.eventKey,Pr=Gt.props.context.keyEntities,Jr=Pr[wr]||{},wn=Jr.children;return!!(wn||[]).length},Gt.isLeaf=function(){var wr=Gt.props,Pr=wr.isLeaf,Jr=wr.loaded,wn=Gt.props.context.loadData,bt=Gt.hasChildren();return Pr===!1?!1:Pr||!wn&&!bt||wn&&Jr&&!bt},Gt.isDisabled=function(){var wr=Gt.props.disabled,Pr=Gt.props.context.disabled;return!!(Pr||wr)},Gt.isCheckable=function(){var wr=Gt.props.checkable,Pr=Gt.props.context.checkable;return!Pr||wr===!1?!1:Pr},Gt.syncLoadData=function(wr){var Pr=wr.expanded,Jr=wr.loading,wn=wr.loaded,bt=Gt.props.context,mr=bt.loadData,Ar=bt.onNodeLoad;if(Jr)return;mr&&Pr&&!Gt.isLeaf()&&(!Gt.hasChildren()&&!wn&&Ar(Nt(Gt.props)))},Gt.renderSwitcher=function(){var wr=Gt.props,Pr=wr.expanded,Jr=wr.switcherIcon,wn=Gt.props.context,bt=wn.prefixCls,mr=wn.switcherIcon,Ar=Jr||mr;if(Gt.isLeaf())return e.createElement("span",{className:C()("".concat(bt,"-switcher"),"".concat(bt,"-switcher-noop"))},typeof Ar=="function"?Ar(Object(w.a)(Object(w.a)({},Gt.props),{},{isLeaf:!0})):Ar);var Ur=C()("".concat(bt,"-switcher"),"".concat(bt,"-switcher_").concat(Pr?pt:qt));return e.createElement("span",{onClick:Gt.onExpand,className:Ur},typeof Ar=="function"?Ar(Object(w.a)(Object(w.a)({},Gt.props),{},{isLeaf:!1})):Ar)},Gt.renderCheckbox=function(){var wr=Gt.props,Pr=wr.checked,Jr=wr.halfChecked,wn=wr.disableCheckbox,bt=Gt.props.context.prefixCls,mr=Gt.isDisabled(),Ar=Gt.isCheckable();if(!Ar)return null;var Ur=typeof Ar!="boolean"?Ar:null;return e.createElement("span",{className:C()("".concat(bt,"-checkbox"),Pr&&"".concat(bt,"-checkbox-checked"),!Pr&&Jr&&"".concat(bt,"-checkbox-indeterminate"),(mr||wn)&&"".concat(bt,"-checkbox-disabled")),onClick:Gt.onCheck},Ur)},Gt.renderIcon=function(){var wr=Gt.props.loading,Pr=Gt.props.context.prefixCls;return e.createElement("span",{className:C()("".concat(Pr,"-iconEle"),"".concat(Pr,"-icon__").concat(Gt.getNodeState()||"docu"),wr&&"".concat(Pr,"-icon_loading"))})},Gt.renderSelector=function(){var wr=Gt.state.dragNodeHighlight,Pr=Gt.props,Jr=Pr.title,wn=Pr.selected,bt=Pr.icon,mr=Pr.loading,Ar=Pr.data,Ur=Gt.props.context,un=Ur.prefixCls,An=Ur.showIcon,ln=Ur.icon,Hn=Ur.draggable,Ln=Ur.loadData,ni=Ur.titleRender,Ai=Gt.isDisabled(),ii="".concat(un,"-node-content-wrapper"),_i;if(An){var Ri=bt||ln;_i=Ri?e.createElement("span",{className:C()("".concat(un,"-iconEle"),"".concat(un,"-icon__customize"))},typeof Ri=="function"?Ri(Gt.props):Ri):Gt.renderIcon()}else Ln&&mr&&(_i=Gt.renderIcon());var ji;typeof Jr=="function"?ji=Jr(Ar):ni?ji=ni(Ar):ji=Jr;var wi=e.createElement("span",{className:"".concat(un,"-title")},ji);return e.createElement("span",{ref:Gt.setSelectHandle,title:typeof Jr=="string"?Jr:"",className:C()("".concat(ii),"".concat(ii,"-").concat(Gt.getNodeState()||"normal"),!Ai&&(wn||wr)&&"".concat(un,"-node-selected"),!Ai&&Hn&&"draggable"),draggable:!Ai&&Hn||void 0,"aria-grabbed":!Ai&&Hn||void 0,onMouseEnter:Gt.onMouseEnter,onMouseLeave:Gt.onMouseLeave,onContextMenu:Gt.onContextMenu,onClick:Gt.onSelectorClick,onDoubleClick:Gt.onSelectorDoubleClick,onDragStart:Hn?Gt.onDragStart:void 0},_i,wi)},Gt}return Object(s.a)(nn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var wr=this.props.selectable,Pr=this.props.context.selectable;return typeof wr=="boolean"?wr:Pr}},{key:"render",value:function(){var wr,Pr=this.props,Jr=Pr.eventKey,wn=Pr.className,bt=Pr.style,mr=Pr.dragOver,Ar=Pr.dragOverGapTop,Ur=Pr.dragOverGapBottom,un=Pr.isLeaf,An=Pr.isStart,ln=Pr.isEnd,Hn=Pr.expanded,Ln=Pr.selected,ni=Pr.checked,Ai=Pr.halfChecked,ii=Pr.loading,_i=Pr.domRef,Ri=Pr.active,ji=Pr.onMouseMove,wi=Object(T.a)(Pr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ii=this.props.context,Oi=Ii.prefixCls,Ui=Ii.filterTreeNode,Zi=Ii.draggable,ma=Ii.keyEntities,Hi=this.isDisabled(),xa=Ie(wi),Ea=ma[Jr]||{},ta=Ea.level,ra=ln[ln.length-1];return e.createElement("div",Object.assign({ref:_i,className:C()(wn,"".concat(Oi,"-treenode"),(wr={},Object(x.a)(wr,"".concat(Oi,"-treenode-disabled"),Hi),Object(x.a)(wr,"".concat(Oi,"-treenode-switcher-").concat(Hn?"open":"close"),!un),Object(x.a)(wr,"".concat(Oi,"-treenode-checkbox-checked"),ni),Object(x.a)(wr,"".concat(Oi,"-treenode-checkbox-indeterminate"),Ai),Object(x.a)(wr,"".concat(Oi,"-treenode-selected"),Ln),Object(x.a)(wr,"".concat(Oi,"-treenode-loading"),ii),Object(x.a)(wr,"".concat(Oi,"-treenode-active"),Ri),Object(x.a)(wr,"".concat(Oi,"-treenode-leaf-last"),ra),Object(x.a)(wr,"drag-over",!Hi&&mr),Object(x.a)(wr,"drag-over-gap-top",!Hi&&Ar),Object(x.a)(wr,"drag-over-gap-bottom",!Hi&&Ur),Object(x.a)(wr,"filter-node",Ui&&Ui(Nt(this.props))),wr)),style:bt,onDragEnter:Zi?this.onDragEnter:void 0,onDragOver:Zi?this.onDragOver:void 0,onDragLeave:Zi?this.onDragLeave:void 0,onDrop:Zi?this.onDrop:void 0,onDragEnd:Zi?this.onDragEnd:void 0,onMouseMove:ji},xa),e.createElement(Lr,{prefixCls:Oi,level:ta,isStart:An,isEnd:ln}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),nn}(e.Component),fr=function(ar){return e.createElement(Fe.Consumer,null,function(nn){return e.createElement(pn,Object.assign({},ar,{context:nn}))})};fr.displayName="TreeNode",fr.defaultProps={title:vr},fr.isTreeNode=1;var gr=fr,dn=.25,Qt=2;function sr(Ir,ar){var nn=Ir.slice(),Gt=nn.indexOf(ar);return Gt>=0&&nn.splice(Gt,1),nn}function Qr(Ir,ar){var nn=Ir.slice();return nn.indexOf(ar)===-1&&nn.push(ar),nn}function Cn(Ir){return Ir.split("-")}function Fn(Ir,ar){return"".concat(Ir,"-").concat(ar)}function ti(Ir){return Ir&&Ir.type&&Ir.type.isTreeNode}function ki(Ir,ar){var nn=[Ir],Gt=ar[Ir];function wr(){var Pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Pr.forEach(function(Jr){var wn=Jr.key,bt=Jr.children;nn.push(wn),wr(bt)})}return wr(Gt.children),nn}function Dn(Ir,ar){var nn=Ir.clientY,Gt=ar.selectHandle.getBoundingClientRect(),wr=Gt.top,Pr=Gt.bottom,Jr=Gt.height,wn=Math.max(Jr*dn,Qt);return nn<=wr+wn?-1:nn>=Pr-wn?1:0}function Bn(Ir,ar){if(!Ir)return;var nn=ar.multiple;return nn?Ir.slice():Ir.length?[Ir[0]]:Ir}var Ft=function(ar){return ar};function vt(Ir,ar){if(!Ir)return[];var nn=ar||{},Gt=nn.processProps,wr=Gt===void 0?Ft:Gt,Pr=Array.isArray(Ir)?Ir:[Ir];return Pr.map(function(Jr){var wn=Jr.children,bt=Object(T.a)(Jr,["children"]),mr=vt(wn,ar);return l.a.createElement(gr,Object.assign({},wr(bt)),mr)})}function _e(Ir){if(!Ir)return null;var ar;if(Array.isArray(Ir))ar={checkedKeys:Ir,halfCheckedKeys:void 0};else if(Object(A.a)(Ir)==="object")ar={checkedKeys:Ir.checked||void 0,halfCheckedKeys:Ir.halfChecked||void 0};else return Object(ue.a)(!1,"`checkedKeys` is not an array or an object"),null;return ar}function Ne(Ir,ar){var nn=new Set;function Gt(wr){if(nn.has(wr))return;var Pr=ar[wr];if(!Pr)return;nn.add(wr);var Jr=Pr.parent,wn=Pr.node;if(wn.disabled)return;Jr&&Gt(Jr.key)}return(Ir||[]).forEach(function(wr){Gt(wr)}),Object(g.a)(nn)}function Ie(Ir){var ar={};return Object.keys(Ir).forEach(function(nn){(nn.startsWith("data-")||nn.startsWith("aria-"))&&(ar[nn]=Ir[nn])}),ar}function Ze(Ir,ar){return Ir!=null?Ir:ar}function ct(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ar=new Map;function nn(Gt){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Gt||[]).forEach(function(Pr){var Jr=Pr.key,wn=Pr.children;Object(ue.a)(Jr!=null,"Tree node must have a certain key: [".concat(wr).concat(Jr,"]"));var bt=String(Jr);Object(ue.a)(!ar.has(bt)||Jr===null||Jr===void 0,"Same 'key' exist in the Tree: ".concat(bt)),ar.set(bt,!0),nn(wn,"".concat(wr).concat(bt," > "))})}nn(Ir)}function gt(Ir){function ar(nn){var Gt=Object(ur.a)(nn);return Gt.map(function(wr){if(!ti(wr))return Object(ue.a)(!wr,"Tree/TreeNode can only accept TreeNode as children."),null;var Pr=wr.key,Jr=wr.props,wn=Jr.children,bt=Object(T.a)(Jr,["children"]),mr=Object(w.a)({key:Pr},bt),Ar=ar(wn);return Ar.length&&(mr.children=Ar),mr}).filter(function(wr){return wr})}return ar(Ir)}function kt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],nn=new Set(ar===!0?[]:ar),Gt=[];function wr(Pr){var Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Pr.map(function(wn,bt){var mr=Fn(Jr?Jr.pos:"0",bt),Ar=Ze(wn.key,mr),Ur=Object(w.a)(Object(w.a)({},wn),{},{parent:Jr,pos:mr,children:null,data:wn,isStart:[].concat(Object(g.a)(Jr?Jr.isStart:[]),[bt===0]),isEnd:[].concat(Object(g.a)(Jr?Jr.isEnd:[]),[bt===Pr.length-1])});return Gt.push(Ur),ar===!0||nn.has(Ar)?Ur.children=wr(wn.children||[],Ur):Ur.children=[],Ur})}return wr(Ir),Gt}function xr(Ir,ar,nn){var Gt;nn?typeof nn=="string"?Gt=function(Jr){return Jr[nn]}:typeof nn=="function"&&(Gt=function(Jr){return nn(Jr)}):Gt=function(Jr,wn){return Ze(Jr.key,wn)};function wr(Pr,Jr,wn){var bt=Pr?Pr.children:Ir,mr=Pr?Fn(wn.pos,Jr):"0";if(Pr){var Ar=Gt(Pr,mr),Ur={node:Pr,index:Jr,pos:mr,key:Ar,parentPos:wn.node?wn.pos:null,level:wn.level+1};ar(Ur)}bt&&bt.forEach(function(un,An){wr(un,An,{node:Pr,pos:mr,level:wn?wn.level+1:-1})})}wr(null)}function Hr(Ir){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nn=ar.initWrapper,Gt=ar.processEntity,wr=ar.onProcessFinished,Pr=arguments.length>2?arguments[2]:void 0,Jr={},wn={},bt={posEntities:Jr,keyEntities:wn};return nn&&(bt=nn(bt)||bt),xr(Ir,function(mr){var Ar=mr.node,Ur=mr.index,un=mr.pos,An=mr.key,ln=mr.parentPos,Hn=mr.level,Ln={node:Ar,index:Ur,key:An,pos:un,level:Hn},ni=Ze(An,un);Jr[un]=Ln,wn[ni]=Ln,Ln.parent=Jr[ln],Ln.parent&&(Ln.parent.children=Ln.parent.children||[],Ln.parent.children.push(Ln)),Gt&&Gt(Ln,bt)},Pr),wr&&wr(bt),bt}function on(Ir,ar){var nn=ar.expandedKeys,Gt=ar.selectedKeys,wr=ar.loadedKeys,Pr=ar.loadingKeys,Jr=ar.checkedKeys,wn=ar.halfCheckedKeys,bt=ar.dragOverNodeKey,mr=ar.dropPosition,Ar=ar.keyEntities,Ur=Ar[Ir],un={eventKey:Ir,expanded:nn.indexOf(Ir)!==-1,selected:Gt.indexOf(Ir)!==-1,loaded:wr.indexOf(Ir)!==-1,loading:Pr.indexOf(Ir)!==-1,checked:Jr.indexOf(Ir)!==-1,halfChecked:wn.indexOf(Ir)!==-1,pos:String(Ur?Ur.pos:""),dragOver:bt===Ir&&mr===0,dragOverGapTop:bt===Ir&&mr===-1,dragOverGapBottom:bt===Ir&&mr===1};return un}function Nt(Ir){var ar=Ir.data,nn=Ir.expanded,Gt=Ir.selected,wr=Ir.checked,Pr=Ir.loaded,Jr=Ir.loading,wn=Ir.halfChecked,bt=Ir.dragOver,mr=Ir.dragOverGapTop,Ar=Ir.dragOverGapBottom,Ur=Ir.pos,un=Ir.active,An=Object(w.a)(Object(w.a)({},ar),{},{expanded:nn,selected:Gt,checked:wr,loaded:Pr,loading:Jr,halfChecked:wn,dragOver:bt,dragOverGapTop:mr,dragOverGapBottom:Ar,pos:Ur,active:un});return"props"in An||Object.defineProperty(An,"props",{get:function(){return Object(ue.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ir}}),An}function ot(Ir,ar){var nn=new Set;return Ir.forEach(function(Gt){ar.has(Gt)||nn.add(Gt)}),nn}function dt(Ir){var ar=Ir||{},nn=ar.disabled,Gt=ar.disableCheckbox,wr=ar.checkable;return!!(nn||Gt)||wr===!1}function Yt(Ir,ar,nn,Gt){for(var wr=new Set(Ir),Pr=new Set,Jr=0;Jr<=nn;Jr+=1){var wn=ar.get(Jr)||new Set;wn.forEach(function(Ur){var un=Ur.key,An=Ur.node,ln=Ur.children,Hn=ln===void 0?[]:ln;wr.has(un)&&!Gt(An)&&Hn.filter(function(Ln){return!Gt(Ln.node)}).forEach(function(Ln){wr.add(Ln.key)})})}for(var bt=new Set,mr=nn;mr>=0;mr-=1){var Ar=ar.get(mr)||new Set;Ar.forEach(function(Ur){var un=Ur.parent,An=Ur.node;if(Gt(An)||!Ur.parent||bt.has(Ur.parent.key))return;if(Gt(Ur.parent.node)){bt.add(un.key);return}var ln=!0,Hn=!1;(un.children||[]).filter(function(Ln){return!Gt(Ln.node)}).forEach(function(Ln){var ni=Ln.key,Ai=wr.has(ni);ln&&!Ai&&(ln=!1),!Hn&&(Ai||Pr.has(ni))&&(Hn=!0)}),ln&&wr.add(un.key),Hn&&Pr.add(un.key),bt.add(un.key)})}return{checkedKeys:Array.from(wr),halfCheckedKeys:Array.from(ot(Pr,wr))}}function Pt(Ir,ar,nn,Gt,wr){for(var Pr=new Set(Ir),Jr=new Set(ar),wn=0;wn<=Gt;wn+=1){var bt=nn.get(wn)||new Set;bt.forEach(function(un){var An=un.key,ln=un.node,Hn=un.children,Ln=Hn===void 0?[]:Hn;!Pr.has(An)&&!Jr.has(An)&&!wr(ln)&&Ln.filter(function(ni){return!wr(ni.node)}).forEach(function(ni){Pr.delete(ni.key)})})}Jr=new Set;for(var mr=new Set,Ar=Gt;Ar>=0;Ar-=1){var Ur=nn.get(Ar)||new Set;Ur.forEach(function(un){var An=un.parent,ln=un.node;if(wr(ln)||!un.parent||mr.has(un.parent.key))return;if(wr(un.parent.node)){mr.add(An.key);return}var Hn=!0,Ln=!1;(An.children||[]).filter(function(ni){return!wr(ni.node)}).forEach(function(ni){var Ai=ni.key,ii=Pr.has(Ai);Hn&&!ii&&(Hn=!1),!Ln&&(ii||Jr.has(Ai))&&(Ln=!0)}),Hn||Pr.delete(An.key),Ln&&Jr.add(An.key),mr.add(An.key)})}return{checkedKeys:Array.from(Pr),halfCheckedKeys:Array.from(ot(Jr,Pr))}}function Et(Ir,ar,nn,Gt){var wr=[],Pr;Gt?Pr=Gt:Pr=dt;var Jr=new Set(Ir.filter(function(Ar){var Ur=!!nn[Ar];return Ur||wr.push(Ar),Ur})),wn=new Map,bt=0;Object.keys(nn).forEach(function(Ar){var Ur=nn[Ar],un=Ur.level,An=wn.get(un);An||(An=new Set,wn.set(un,An)),An.add(Ur),bt=Math.max(bt,un)}),Object(ue.a)(!wr.length,"Tree missing follow keys: ".concat(wr.slice(0,100).map(function(Ar){return"'".concat(Ar,"'")}).join(", ")));var mr;return ar===!0?mr=Yt(Jr,wn,bt,Pr):mr=Pt(Jr,ar.halfCheckedKeys,wn,bt,Pr),mr}var Bt=i("YrtM"),wt=i("+nKL"),Mt=function(ar,nn){var Gt=ar.className,wr=ar.style,Pr=ar.motion,Jr=ar.motionNodes,wn=ar.motionType,bt=ar.onMotionStart,mr=ar.onMotionEnd,Ar=ar.active,Ur=ar.treeNodeRequiredProps,un=Object(T.a)(ar,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),An=e.useState(!0),ln=Object(b.a)(An,2),Hn=ln[0],Ln=ln[1],ni=e.useContext(Fe),Ai=ni.prefixCls,ii=e.useRef(!1),_i=function(){ii.current||mr(),ii.current=!0};return Object(e.useEffect)(function(){Jr&&wn==="hide"&&Hn&&Ln(!1)},[Jr]),Object(e.useEffect)(function(){return Jr&&bt(),function(){Jr&&_i()}},[]),Jr?e.createElement(F.b,Object.assign({ref:nn,visible:Hn},Pr,{motionAppear:wn==="show",onAppearEnd:_i,onLeaveEnd:_i}),function(Ri,ji){var wi=Ri.className,Ii=Ri.style;return e.createElement("div",{ref:ji,className:C()("".concat(Ai,"-treenode-motion"),wi),style:Ii},Jr.map(function(Oi){var Ui=Oi.data,Zi=Ui.key,ma=Object(T.a)(Ui,["key"]),Hi=Oi.isStart,xa=Oi.isEnd;delete ma.children;var Ea=on(Zi,Ur);return e.createElement(gr,Object.assign({},ma,Ea,{active:Ar,data:Oi.data,key:Zi,isStart:Hi,isEnd:xa}))}))}):e.createElement(gr,Object.assign({domRef:nn,className:Gt,style:wr},un,{active:Ar}))};Mt.displayName="MotionTreeNode";var Nr=e.forwardRef(Mt),Tr=Nr;function yr(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],nn=Ir.length,Gt=ar.length;if(Math.abs(nn-Gt)!==1)return{add:!1,key:null};function wr(Pr,Jr){var wn=new Map;Pr.forEach(function(mr){wn.set(mr,!0)});var bt=Jr.filter(function(mr){return!wn.has(mr)});return bt.length===1?bt[0]:null}return nn<Gt?{add:!0,key:wr(Ir,ar)}:{add:!1,key:wr(ar,Ir)}}function en(Ir,ar,nn){var Gt=Ir.findIndex(function(wn){var bt=wn.data;return bt.key===nn}),wr=Ir[Gt+1],Pr=ar.findIndex(function(wn){var bt=wn.data;return bt.key===nn});if(wr){var Jr=ar.findIndex(function(wn){var bt=wn.data;return bt.key===wr.data.key});return ar.slice(Pr+1,Jr)}return ar.slice(Pr+1)}var sn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Vn=function(){},jn="RC_TREE_MOTION_".concat(Math.random()),ri={key:jn},ci={key:jn,level:0,index:0,pos:"0",node:ri},gi={parent:null,children:[],pos:ci.pos,data:ri,isStart:[],isEnd:[]};function Ni(Ir,ar,nn,Gt){return ar===!1||!nn?Ir:Ir.slice(0,Math.ceil(nn/Gt)+1)}function Qe(Ir){var ar=Ir.data.key,nn=Ir.pos;return Ze(ar,nn)}function Se(Ir){for(var ar=String(Ir.data.key),nn=Ir;nn.parent;)nn=nn.parent,ar="".concat(nn.data.key," > ").concat(ar);return ar}var Pe=function(ar,nn){var Gt=ar.prefixCls,wr=ar.data,Pr=ar.selectable,Jr=ar.checkable,wn=ar.expandedKeys,bt=ar.selectedKeys,mr=ar.checkedKeys,Ar=ar.loadedKeys,Ur=ar.loadingKeys,un=ar.halfCheckedKeys,An=ar.keyEntities,ln=ar.disabled,Hn=ar.dragging,Ln=ar.dragOverNodeKey,ni=ar.dropPosition,Ai=ar.motion,ii=ar.height,_i=ar.itemHeight,Ri=ar.virtual,ji=ar.focusable,wi=ar.activeItem,Ii=ar.focused,Oi=ar.tabIndex,Ui=ar.onKeyDown,Zi=ar.onFocus,ma=ar.onBlur,Hi=ar.onActiveChange,xa=ar.onListChangeStart,Ea=ar.onListChangeEnd,ta=Object(T.a)(ar,["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"]),ra=e.useRef(null);e.useImperativeHandle(nn,function(){return{scrollTo:function(Fo){ra.current.scrollTo(Fo)}}});var ga=e.useState(wn),sa=Object(b.a)(ga,2),Ba=sa[0],va=sa[1],Ia=e.useState(wr),za=Object(b.a)(Ia,2),Va=za[0],Ya=za[1],Bi=e.useState(wr),ro=Object(b.a)(Bi,2),lo=ro[0],no=ro[1],co=e.useState([]),To=Object(b.a)(co,2),Ga=To[0],Po=To[1],uo=e.useState(null),ho=Object(b.a)(uo,2),zo=ho[0],Oa=ho[1];function mo(){Ya(wr),no(wr),Po([]),Oa(null),Ea()}e.useEffect(function(){va(wn);var xo=yr(Ba,wn);if(xo.key!==null)if(xo.add){var Fo=Va.findIndex(function(dr){var Kr=dr.data.key;return Kr===xo.key}),Ho=Ni(en(Va,wr,xo.key),Ri,ii,_i),go=Va.slice();go.splice(Fo+1,0,gi),no(go),Po(Ho),Oa("show")}else{var qa=wr.findIndex(function(dr){var Kr=dr.data.key;return Kr===xo.key}),_a=Ni(en(wr,Va,xo.key),Ri,ii,_i),at=wr.slice();at.splice(qa+1,0,gi),no(at),Po(_a),Oa("hide")}else Va!==wr&&(Ya(wr),no(wr))},[wn,wr]),e.useEffect(function(){Hn||mo()},[Hn]);var Do=Ai?lo:wr,Qo={expandedKeys:wn,selectedKeys:bt,loadedKeys:Ar,loadingKeys:Ur,checkedKeys:mr,halfCheckedKeys:un,dragOverNodeKey:Ln,dropPosition:ni,keyEntities:An};return e.createElement(e.Fragment,null,Ii&&wi&&e.createElement("span",{style:sn,"aria-live":"assertive"},Se(wi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:sn,disabled:ji===!1||ln,tabIndex:ji!==!1?Oi:null,onKeyDown:Ui,onFocus:Zi,onBlur:ma,value:"",onChange:Vn})),e.createElement(wt.a,Object.assign({},ta,{data:Do,itemKey:Qe,height:ii,fullHeight:!1,virtual:Ri,itemHeight:_i,prefixCls:"".concat(Gt,"-list"),ref:ra}),function(xo){var Fo=xo.pos,Ho=xo.data,go=Ho.key,qa=Object(T.a)(Ho,["key"]),_a=xo.isStart,at=xo.isEnd,dr=Ze(go,Fo);delete qa.children;var Kr=on(dr,Qo);return e.createElement(Tr,Object.assign({},qa,Kr,{active:wi&&go===wi.data.key,pos:Fo,data:xo.data,isStart:_a,isEnd:at,motion:Ai,motionNodes:go===jn?Ga:null,motionType:zo,onMotionStart:xa,onMotionEnd:mo,treeNodeRequiredProps:Qo,onMouseMove:function(){Hi(null)}}))}))},He=e.forwardRef(Pe);He.displayName="NodeList";var Ye=He,ze=function(Ir){Object(c.a)(nn,Ir);var ar=Object(h.a)(nn);function nn(){var Gt;return Object(r.a)(this,nn),Gt=ar.apply(this,arguments),Gt.destroyed=!1,Gt.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},Gt.listRef=e.createRef(),Gt.onNodeDragStart=function(wr,Pr){var Jr=Gt.state,wn=Jr.expandedKeys,bt=Jr.keyEntities,mr=Gt.props.onDragStart,Ar=Pr.props.eventKey;Gt.dragNode=Pr;var Ur=sr(wn,Ar);Gt.setState({dragging:!0,dragNodesKeys:ki(Ar,bt)}),Gt.setExpandedKeys(Ur),mr&&mr({event:wr,node:Nt(Pr.props)})},Gt.onNodeDragEnter=function(wr,Pr){var Jr=Gt.state,wn=Jr.expandedKeys,bt=Jr.keyEntities,mr=Jr.dragNodesKeys,Ar=Gt.props.onDragEnter,Ur=Pr.props,un=Ur.pos,An=Ur.eventKey;if(!Gt.dragNode||mr.indexOf(An)!==-1)return;var ln=Dn(wr,Pr);if(Gt.dragNode.props.eventKey===An&&ln===0){Gt.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Gt.setState({dragOverNodeKey:An,dropPosition:ln}),Gt.delayedDragEnterLogic||(Gt.delayedDragEnterLogic={}),Object.keys(Gt.delayedDragEnterLogic).forEach(function(Hn){clearTimeout(Gt.delayedDragEnterLogic[Hn])}),Gt.delayedDragEnterLogic[un]=window.setTimeout(function(){if(!Gt.state.dragging)return;var Hn=Object(g.a)(wn),Ln=bt[An];Ln&&(Ln.children||[]).length&&(Hn=Qr(wn,An)),"expandedKeys"in Gt.props||Gt.setExpandedKeys(Hn),Ar&&Ar({event:wr,node:Nt(Pr.props),expandedKeys:Hn})},400)},0)},Gt.onNodeDragOver=function(wr,Pr){var Jr=Gt.state.dragNodesKeys,wn=Gt.props.onDragOver,bt=Pr.props.eventKey;if(Jr.indexOf(bt)!==-1)return;if(Gt.dragNode&&bt===Gt.state.dragOverNodeKey){var mr=Dn(wr,Pr);if(mr===Gt.state.dropPosition)return;Gt.setState({dropPosition:mr})}wn&&wn({event:wr,node:Nt(Pr.props)})},Gt.onNodeDragLeave=function(wr,Pr){var Jr=Gt.props.onDragLeave;Gt.setState({dragOverNodeKey:""}),Jr&&Jr({event:wr,node:Nt(Pr.props)})},Gt.onNodeDragEnd=function(wr,Pr){var Jr=Gt.props.onDragEnd;Gt.setState({dragOverNodeKey:""}),Gt.cleanDragState(),Jr&&Jr({event:wr,node:Nt(Pr.props)}),Gt.dragNode=null},Gt.onNodeDrop=function(wr,Pr){var Jr=Gt.state,wn=Jr.dragNodesKeys,bt=wn===void 0?[]:wn,mr=Jr.dropPosition,Ar=Gt.props.onDrop,Ur=Pr.props,un=Ur.eventKey,An=Ur.pos;if(Gt.setState({dragOverNodeKey:""}),Gt.cleanDragState(),bt.indexOf(un)!==-1){Object(ue.a)(!1,"Can not drop to dragNode(include it's children node)");return}var ln=Cn(An),Hn={event:wr,node:Nt(Pr.props),dragNode:Gt.dragNode?Nt(Gt.dragNode.props):null,dragNodesKeys:bt.slice(),dropPosition:mr+Number(ln[ln.length-1]),dropToGap:!1};mr!==0&&(Hn.dropToGap=!0),Ar&&Ar(Hn),Gt.dragNode=null},Gt.cleanDragState=function(){var wr=Gt.state.dragging;wr&&Gt.setState({dragging:!1})},Gt.onNodeClick=function(wr,Pr){var Jr=Gt.props.onClick;Jr&&Jr(wr,Pr)},Gt.onNodeDoubleClick=function(wr,Pr){var Jr=Gt.props.onDoubleClick;Jr&&Jr(wr,Pr)},Gt.onNodeSelect=function(wr,Pr){var Jr=Gt.state.selectedKeys,wn=Gt.state.keyEntities,bt=Gt.props,mr=bt.onSelect,Ar=bt.multiple,Ur=Pr.selected,un=Pr.key,An=!Ur;An?Ar?Jr=Qr(Jr,un):Jr=[un]:Jr=sr(Jr,un);var ln=Jr.map(function(Hn){var Ln=wn[Hn];return Ln?Ln.node:null}).filter(function(Hn){return Hn});Gt.setUncontrolledState({selectedKeys:Jr}),mr&&mr(Jr,{event:"select",selected:An,node:Pr,selectedNodes:ln,nativeEvent:wr.nativeEvent})},Gt.onNodeCheck=function(wr,Pr,Jr){var wn=Gt.state,bt=wn.keyEntities,mr=wn.checkedKeys,Ar=wn.halfCheckedKeys,Ur=Gt.props,un=Ur.checkStrictly,An=Ur.onCheck,ln=Pr.key,Hn,Ln={event:"check",node:Pr,checked:Jr,nativeEvent:wr.nativeEvent};if(un){var ni=Jr?Qr(mr,ln):sr(mr,ln),Ai=sr(Ar,ln);Hn={checked:ni,halfChecked:Ai},Ln.checkedNodes=ni.map(function(Ii){return bt[Ii]}).filter(function(Ii){return Ii}).map(function(Ii){return Ii.node}),Gt.setUncontrolledState({checkedKeys:ni})}else{var ii=Et([].concat(Object(g.a)(mr),[ln]),!0,bt),_i=ii.checkedKeys,Ri=ii.halfCheckedKeys;if(!Jr){var ji=new Set(_i);ji.delete(ln);var wi=Et(Array.from(ji),{checked:!1,halfCheckedKeys:Ri},bt);_i=wi.checkedKeys,Ri=wi.halfCheckedKeys}Hn=_i,Ln.checkedNodes=[],Ln.checkedNodesPositions=[],Ln.halfCheckedKeys=Ri,_i.forEach(function(Ii){var Oi=bt[Ii];if(!Oi)return;var Ui=Oi.node,Zi=Oi.pos;Ln.checkedNodes.push(Ui),Ln.checkedNodesPositions.push({node:Ui,pos:Zi})}),Gt.setUncontrolledState({checkedKeys:_i},!1,{halfCheckedKeys:Ri})}An&&An(Hn,Ln)},Gt.onNodeLoad=function(wr){return new Promise(function(Pr){Gt.setState(function(Jr){var wn=Jr.loadedKeys,bt=wn===void 0?[]:wn,mr=Jr.loadingKeys,Ar=mr===void 0?[]:mr,Ur=Gt.props,un=Ur.loadData,An=Ur.onLoad,ln=wr.key;if(!un||bt.indexOf(ln)!==-1||Ar.indexOf(ln)!==-1)return{};var Hn=un(wr);return Hn.then(function(){var Ln=Gt.state,ni=Ln.loadedKeys,Ai=Ln.loadingKeys,ii=Qr(ni,ln),_i=sr(Ai,ln);An&&An(ii,{event:"load",node:wr}),Gt.setUncontrolledState({loadedKeys:ii}),Gt.setState({loadingKeys:_i}),Pr()}),{loadingKeys:Qr(Ar,ln)}})})},Gt.onNodeMouseEnter=function(wr,Pr){var Jr=Gt.props.onMouseEnter;Jr&&Jr({event:wr,node:Pr})},Gt.onNodeMouseLeave=function(wr,Pr){var Jr=Gt.props.onMouseLeave;Jr&&Jr({event:wr,node:Pr})},Gt.onNodeContextMenu=function(wr,Pr){var Jr=Gt.props.onRightClick;Jr&&(wr.preventDefault(),Jr({event:wr,node:Pr}))},Gt.onFocus=function(){var wr=Gt.props.onFocus;Gt.setState({focused:!0}),wr&&wr.apply(void 0,arguments)},Gt.onBlur=function(){var wr=Gt.props.onBlur;Gt.setState({focused:!1}),Gt.onActiveChange(null),wr&&wr.apply(void 0,arguments)},Gt.getTreeNodeRequiredProps=function(){var wr=Gt.state,Pr=wr.expandedKeys,Jr=wr.selectedKeys,wn=wr.loadedKeys,bt=wr.loadingKeys,mr=wr.checkedKeys,Ar=wr.halfCheckedKeys,Ur=wr.dragOverNodeKey,un=wr.dropPosition,An=wr.keyEntities;return{expandedKeys:Pr||[],selectedKeys:Jr||[],loadedKeys:wn||[],loadingKeys:bt||[],checkedKeys:mr||[],halfCheckedKeys:Ar||[],dragOverNodeKey:Ur,dropPosition:un,keyEntities:An}},Gt.setExpandedKeys=function(wr){var Pr=Gt.state.treeData,Jr=kt(Pr,wr);Gt.setUncontrolledState({expandedKeys:wr,flattenNodes:Jr},!0)},Gt.onNodeExpand=function(wr,Pr){var Jr=Gt.state.expandedKeys,wn=Gt.state.listChanging,bt=Gt.props,mr=bt.onExpand,Ar=bt.loadData,Ur=Pr.key,un=Pr.expanded;if(wn)return;var An=Jr.indexOf(Ur),ln=!un;if(Object(ue.a)(un&&An!==-1||!un&&An===-1,"Expand state not sync with index check"),ln?Jr=Qr(Jr,Ur):Jr=sr(Jr,Ur),Gt.setExpandedKeys(Jr),mr&&mr(Jr,{node:Pr,expanded:ln,nativeEvent:wr.nativeEvent}),ln&&Ar){var Hn=Gt.onNodeLoad(Pr);Hn&&Hn.then(function(){var Ln=kt(Gt.state.treeData,Jr);Gt.setUncontrolledState({flattenNodes:Ln})})}},Gt.onListChangeStart=function(){Gt.setUncontrolledState({listChanging:!0})},Gt.onListChangeEnd=function(){setTimeout(function(){Gt.setUncontrolledState({listChanging:!1})})},Gt.onActiveChange=function(wr){var Pr=Gt.state.activeKey,Jr=Gt.props.onActiveChange;if(Pr===wr)return;Gt.setState({activeKey:wr}),wr!==null&&Gt.scrollTo({key:wr}),Jr&&Jr(wr)},Gt.getActiveItem=function(){var wr=Gt.state,Pr=wr.activeKey,Jr=wr.flattenNodes;return Pr===null?null:Jr.find(function(wn){var bt=wn.data.key;return bt===Pr})||null},Gt.offsetActiveKey=function(wr){var Pr=Gt.state,Jr=Pr.flattenNodes,wn=Pr.activeKey,bt=Jr.findIndex(function(Ur){var un=Ur.data.key;return un===wn});bt===-1&&wr<0&&(bt=Jr.length),bt=(bt+wr+Jr.length)%Jr.length;var mr=Jr[bt];if(mr){var Ar=mr.data.key;Gt.onActiveChange(Ar)}else Gt.onActiveChange(null)},Gt.onKeyDown=function(wr){var Pr=Gt.state,Jr=Pr.activeKey,wn=Pr.expandedKeys,bt=Pr.checkedKeys,mr=Gt.props,Ar=mr.onKeyDown,Ur=mr.checkable,un=mr.selectable;switch(wr.which){case _.a.UP:{Gt.offsetActiveKey(-1),wr.preventDefault();break}case _.a.DOWN:{Gt.offsetActiveKey(1),wr.preventDefault();break}}var An=Gt.getActiveItem();if(An&&An.data){var ln=Gt.getTreeNodeRequiredProps(),Hn=An.data.isLeaf===!1||!!(An.data.children||[]).length,Ln=Nt(Object(w.a)(Object(w.a)({},on(Jr,ln)),{},{data:An.data,active:!0}));switch(wr.which){case _.a.LEFT:{Hn&&wn.includes(Jr)?Gt.onNodeExpand({},Ln):An.parent&&Gt.onActiveChange(An.parent.data.key),wr.preventDefault();break}case _.a.RIGHT:{Hn&&!wn.includes(Jr)?Gt.onNodeExpand({},Ln):An.children&&An.children.length&&Gt.onActiveChange(An.children[0].data.key),wr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{Ur&&!Ln.disabled&&Ln.checkable!==!1&&!Ln.disableCheckbox?Gt.onNodeCheck({},Ln,!bt.includes(Jr)):!Ur&&un&&!Ln.disabled&&Ln.selectable!==!1&&Gt.onNodeSelect({},Ln);break}}}Ar&&Ar(wr)},Gt.setUncontrolledState=function(wr){var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Gt.destroyed)return;var wn=!1,bt=!0,mr={};Object.keys(wr).forEach(function(Ar){if(Ar in Gt.props){bt=!1;return}wn=!0,mr[Ar]=wr[Ar]}),wn&&(!Pr||bt)&&Gt.setState(Object(w.a)(Object(w.a)({},mr),Jr))},Gt.scrollTo=function(wr){Gt.listRef.current.scrollTo(wr)},Gt}return Object(s.a)(nn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var wr,Pr=this.state,Jr=Pr.focused,wn=Pr.flattenNodes,bt=Pr.keyEntities,mr=Pr.dragging,Ar=Pr.activeKey,Ur=this.props,un=Ur.prefixCls,An=Ur.className,ln=Ur.style,Hn=Ur.showLine,Ln=Ur.focusable,ni=Ur.tabIndex,Ai=ni===void 0?0:ni,ii=Ur.selectable,_i=Ur.showIcon,Ri=Ur.icon,ji=Ur.switcherIcon,wi=Ur.draggable,Ii=Ur.checkable,Oi=Ur.checkStrictly,Ui=Ur.disabled,Zi=Ur.motion,ma=Ur.loadData,Hi=Ur.filterTreeNode,xa=Ur.height,Ea=Ur.itemHeight,ta=Ur.virtual,ra=Ur.titleRender,ga=Ur.onContextMenu,sa=Ie(this.props);return e.createElement(Fe.Provider,{value:{prefixCls:un,selectable:ii,showIcon:_i,icon:Ri,switcherIcon:ji,draggable:wi,checkable:Ii,checkStrictly:Oi,disabled:Ui,keyEntities:bt,loadData:ma,filterTreeNode:Hi,titleRender:ra,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:C()(un,An,(wr={},Object(x.a)(wr,"".concat(un,"-show-line"),Hn),Object(x.a)(wr,"".concat(un,"-focused"),Jr),Object(x.a)(wr,"".concat(un,"-active-focused"),Ar!==null),wr))},e.createElement(Ye,Object.assign({ref:this.listRef,prefixCls:un,style:ln,data:wn,disabled:Ui,selectable:ii,checkable:!!Ii,motion:Zi,dragging:mr,height:xa,itemHeight:Ea,virtual:ta,focusable:Ln,focused:Jr,tabIndex:Ai,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ga},this.getTreeNodeRequiredProps(),sa))))}}],[{key:"getDerivedStateFromProps",value:function(wr,Pr){var Jr=Pr.prevProps,wn={prevProps:wr};function bt(Ri){return!Jr&&Ri in wr||Jr&&Jr[Ri]!==wr[Ri]}var mr;if(bt("treeData")?mr=wr.treeData:bt("children")&&(Object(ue.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),mr=gt(wr.children)),mr){wn.treeData=mr;var Ar=Hr(mr);wn.keyEntities=Object(w.a)(Object(x.a)({},jn,ci),Ar.keyEntities)}var Ur=wn.keyEntities||Pr.keyEntities;if(bt("expandedKeys")||Jr&&bt("autoExpandParent"))wn.expandedKeys=wr.autoExpandParent||!Jr&&wr.defaultExpandParent?Ne(wr.expandedKeys,Ur):wr.expandedKeys;else if(!Jr&&wr.defaultExpandAll){var un=Object(w.a)({},Ur);delete un[jn],wn.expandedKeys=Object.keys(un).map(function(Ri){return un[Ri].key})}else!Jr&&wr.defaultExpandedKeys&&(wn.expandedKeys=wr.autoExpandParent||wr.defaultExpandParent?Ne(wr.defaultExpandedKeys,Ur):wr.defaultExpandedKeys);if(wn.expandedKeys||delete wn.expandedKeys,mr||wn.expandedKeys){var An=kt(mr||Pr.treeData,wn.expandedKeys||Pr.expandedKeys);wn.flattenNodes=An}if(wr.selectable&&(bt("selectedKeys")?wn.selectedKeys=Bn(wr.selectedKeys,wr):!Jr&&wr.defaultSelectedKeys&&(wn.selectedKeys=Bn(wr.defaultSelectedKeys,wr))),wr.checkable){var ln;if(bt("checkedKeys")?ln=_e(wr.checkedKeys)||{}:!Jr&&wr.defaultCheckedKeys?ln=_e(wr.defaultCheckedKeys)||{}:mr&&(ln=_e(wr.checkedKeys)||{checkedKeys:Pr.checkedKeys,halfCheckedKeys:Pr.halfCheckedKeys}),ln){var Hn=ln,Ln=Hn.checkedKeys,ni=Ln===void 0?[]:Ln,Ai=Hn.halfCheckedKeys,ii=Ai===void 0?[]:Ai;if(!wr.checkStrictly){var _i=Et(ni,!0,Ur);ni=_i.checkedKeys,ii=_i.halfCheckedKeys}wn.checkedKeys=ni,wn.halfCheckedKeys=ii}}return bt("loadedKeys")&&(wn.loadedKeys=wr.loadedKeys),wn}}]),nn}(e.Component);ze.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:[]},ze.TreeNode=gr;var $e=ze,St=$e,ft=e.createContext(null);function Ht(Ir,ar){if(!Ir)return!0;var nn=Ir.data,Gt=nn.disabled,wr=nn.disableCheckbox;switch(ar){case"select":return Gt;case"checkbox":return Gt||wr}return!1}function Er(Ir,ar){var nn=e.useCallback(function(wr){var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Jr=arguments.length>2?arguments[2]:void 0,wn=Ir.get(wr);return!Jr&&Ht(wn,Pr)?null:wn},[Ir]),Gt=e.useCallback(function(wr){var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Jr=arguments.length>2?arguments[2]:void 0,wn=ar.get(wr);return!Jr&&Ht(wn,Pr)?null:wn},[ar]);return[nn,Gt]}function Fr(Ir){return e.useMemo(function(){var ar=new Map,nn=new Map;return Ir.forEach(function(Gt){ar.set(Gt.key,Gt),nn.set(Gt.data.value,Gt)}),[ar,nn]},[Ir])}var tn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zt=function(ar,nn){var Gt=ar.prefixCls,wr=ar.height,Pr=ar.itemHeight,Jr=ar.virtual,wn=ar.options,bt=ar.flattenOptions,mr=ar.multiple,Ar=ar.searchValue,Ur=ar.onSelect,un=ar.onToggleOpen,An=ar.open,ln=ar.notFoundContent,Hn=ar.onMouseEnter,Ln=e.useContext(ft),ni=Ln.checkable,Ai=Ln.checkedKeys,ii=Ln.halfCheckedKeys,_i=Ln.treeExpandedKeys,Ri=Ln.treeDefaultExpandAll,ji=Ln.treeDefaultExpandedKeys,wi=Ln.onTreeExpand,Ii=Ln.treeIcon,Oi=Ln.showTreeIcon,Ui=Ln.switcherIcon,Zi=Ln.treeLine,ma=Ln.treeNodeFilterProp,Hi=Ln.loadData,xa=Ln.treeLoadedKeys,Ea=Ln.treeMotion,ta=Ln.onTreeLoad,ra=e.useRef(),ga=Object(Bt.a)(function(){return wn},[An,wn],function(Kr,Br){return Br[0]&&Kr[1]!==Br[1]}),sa=Fr(bt),Ba=Object(b.a)(sa,2),va=Ba[0],Ia=Ba[1],za=Er(va,Ia),Va=Object(b.a)(za,2),Ya=Va[0],Bi=Va[1],ro=e.useMemo(function(){return Ai.map(function(Kr){var Br=Bi(Kr);return Br?Br.key:null})},[Ai]),lo=e.useMemo(function(){return ni?{checked:ro,halfChecked:ii}:null},[ro,ii,ni]);e.useEffect(function(){if(An&&!mr&&ro.length){var Kr;(Kr=ra.current)===null||Kr===void 0||Kr.scrollTo({key:ro[0]})}},[An]);var no=String(Ar).toLowerCase(),co=function(Br){return no?String(Br[ma]).toLowerCase().includes(no):!1},To=e.useState(ji),Ga=Object(b.a)(To,2),Po=Ga[0],uo=Ga[1],ho=e.useState(null),zo=Object(b.a)(ho,2),Oa=zo[0],mo=zo[1],Do=e.useMemo(function(){return _i?Object(g.a)(_i):Ar?Oa:Po},[Po,Oa,no,_i]);e.useEffect(function(){Ar&&mo(bt.map(function(Kr){return Kr.key}))},[Ar]);var Qo=function(Br){uo(Br),mo(Br),wi&&wi(Br)},xo=function(Br){Br.preventDefault()},Fo=function(Br,Pn){var $r=Pn.node.key,Mr=Ya($r,ni?"checkbox":"select");Mr!==null&&Ur(Mr.data.value,{selected:!Ai.includes(Mr.data.value)}),mr||un(!1)},Ho=e.useState(null),go=Object(b.a)(Ho,2),qa=go[0],_a=go[1],at=Ya(qa);if(e.useImperativeHandle(nn,function(){return{onKeyDown:function(Br){var Pn,$r=Br.which;switch($r){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Pn=ra.current)===null||Pn===void 0||Pn.onKeyDown(Br);break;case _.a.ENTER:{at!==null&&Fo(null,{node:{key:qa},selected:!Ai.includes(at.data.value)});break}case _.a.ESC:un(!1)}},onKeyUp:function(){}}}),ga.length===0)return e.createElement("div",{role:"listbox",className:"".concat(Gt,"-empty"),onMouseDown:xo},ln);var dr={};return xa&&(dr.loadedKeys=xa),Do&&(dr.expandedKeys=Do),e.createElement("div",{onMouseDown:xo,onMouseEnter:Hn},at&&An&&e.createElement("span",{style:tn,"aria-live":"assertive"},at.data.value),e.createElement(St,Object.assign({ref:ra,focusable:!1,prefixCls:"".concat(Gt,"-tree"),treeData:ga,height:wr,itemHeight:Pr,virtual:Jr,multiple:mr,icon:Ii,showIcon:Oi,switcherIcon:Ui,showLine:Zi,loadData:Ar?null:Hi,motion:Ea,checkable:ni,checkStrictly:!0,checkedKeys:lo,selectedKeys:ni?[]:ro,defaultExpandAll:Ri},dr,{onActiveChange:_a,onSelect:Fo,onCheck:Fo,onExpand:Qo,onLoad:ta,filterTreeNode:co})))},Rn=e.forwardRef(Zt);Rn.displayName="OptionList";var vn=Rn,Un=function(){return null},hn=Un;function Wr(Ir){return Object(ur.a)(Ir).map(function(ar){if(!e.isValidElement(ar)||!ar.type)return null;var nn=ar.key,Gt=ar.props,wr=Gt.children,Pr=Gt.value,Jr=Object(T.a)(Gt,["children","value"]),wn=Object(w.a)({key:nn,value:Pr},Jr),bt=Wr(wr);return bt.length&&(wn.children=bt),wn}).filter(function(ar){return ar})}function Kn(Ir){if(!Ir)return Ir;var ar=Object(w.a)({},Ir);return"props"in ar||Object.defineProperty(ar,"props",{get:function(){return Object(ue.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),ar}}),ar}function ei(Ir,ar,nn,Gt,wr){var Pr=null,Jr=null;function wn(){function bt(mr){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return mr.map(function(un,An){var ln="".concat(Ar,"-").concat(An),Hn=nn.includes(un.value),Ln=bt(un.children||[],ln,Hn),ni=e.createElement(hn,Object.assign({},un),Ln.map(function(ii){return ii.node}));if(ar===un.value&&(Pr=ni),Hn){var Ai={pos:ln,node:ni,children:Ln};return Ur||Jr.push(Ai),Ai}return null}).filter(function(un){return un})}Jr||(Jr=[],bt(Gt),Jr.sort(function(mr,Ar){var Ur=mr.node.props.value,un=Ar.node.props.value,An=nn.indexOf(Ur),ln=nn.indexOf(un);return An-ln}))}Object.defineProperty(Ir,"triggerNode",{get:function(){return Object(ue.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),wn(),Pr}}),Object.defineProperty(Ir,"allCheckedNodes",{get:function(){return Object(ue.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),wn(),wr?Jr:Jr.map(function(mr){var Ar=mr.node;return Ar})}})}function Si(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function Vr(Ir,ar){var nn=new Map;return ar.forEach(function(Gt){var wr=Gt.data;nn.set(wr.value,wr)}),Ir.map(function(Gt){return Kn(nn.get(Gt))})}function fn(Ir,ar){var nn=Vr([Ir],ar)[0];return nn?nn.disabled:!1}function kn(Ir){return Ir.disabled||Ir.disableCheckbox||Ir.checkable===!1}function It(Ir){for(var ar=Ir.parent,nn=0,Gt=ar;Gt;)Gt=Gt.parent,nn+=1;return nn}function yt(Ir){function ar(Gt){return(Gt||[]).map(function(wr){var Pr=wr.value,Jr=wr.key,wn=wr.children,bt=Object(w.a)(Object(w.a)({},wr),{},{key:"key"in wr?Jr:Pr});return wn&&(bt.children=ar(wn)),bt})}var nn=kt(ar(Ir),!0);return nn.map(function(Gt){return{key:Gt.data.key,data:Gt.data,level:It(Gt)}})}function xt(Ir){return function(ar,nn){var Gt=nn[Ir];return String(Gt).toLowerCase().includes(String(ar).toLowerCase())}}function Tt(Ir,ar,nn){var Gt=nn.optionFilterProp,wr=nn.filterOption;if(wr===!1)return ar;var Pr;typeof wr=="function"?Pr=wr:Pr=xt(Gt);function Jr(wn){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return wn.map(function(mr){var Ar=mr.children,Ur=bt||Pr(Ir,Kn(mr)),un=Jr(Ar||[],Ur);return Ur||un.length?Object(w.a)(Object(w.a)({},mr),{},{children:un}):null}).filter(function(mr){return mr})}return Jr(ar)}function Lt(Ir,ar,nn,Gt){var wr=new Map;return Si(ar).forEach(function(Pr){Pr&&Object(A.a)(Pr)==="object"&&"value"in Pr&&wr.set(Pr.value,Pr)}),Ir.map(function(Pr){var Jr={value:Pr},wn=nn(Pr,"select",!0),bt=wn?Gt(wn.data):Pr;if(wr.has(Pr)){var mr=wr.get(Pr);Jr.label="label"in mr?mr.label:bt,"halfChecked"in mr&&(Jr.halfChecked=mr.halfChecked)}else Jr.label=bt;return Jr})}function _t(Ir,ar){var nn=new Set(Ir);return nn.add(ar),Array.from(nn)}function Xt(Ir,ar){var nn=new Set(Ir);return nn.delete(ar),Array.from(nn)}function er(Ir){var ar=Ir.searchPlaceholder,nn=Ir.treeCheckStrictly,Gt=Ir.treeCheckable,wr=Ir.labelInValue,Pr=Ir.value,Jr=Ir.multiple;Object(ue.a)(!ar,"`searchPlaceholder` has been removed."),nn&&wr===!1&&Object(ue.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(wr||nn)&&Object(ue.a)(Si(Pr).every(function(wn){return wn&&Object(A.a)(wn)==="object"&&"value"in wn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),nn||Jr||Gt?Object(ue.a)(!Pr||Array.isArray(Pr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(ue.a)(!Array.isArray(Pr),"`value` should not be array when `TreeSelect` is single mode.")}var nr=er,br=10;function On(Ir,ar){var nn=ar.id,Gt=ar.pId,wr=ar.rootPId,Pr={},Jr=[],wn=Ir.map(function(bt){var mr=Object(w.a)({},bt),Ar=mr[nn];return Pr[Ar]=mr,mr.key=mr.key||Ar,mr});return wn.forEach(function(bt){var mr=bt[Gt],Ar=Pr[mr];Ar&&(Ar.children=Ar.children||[],Ar.children.push(bt)),(mr===wr||!Ar&&wr===null)&&Jr.push(bt)}),Jr}function bn(Ir,ar){var nn=0,Gt=new Set;function wr(Pr){return(Pr||[]).map(function(Jr){var wn=Jr.key,bt=Jr.value,mr=Jr.children,Ar=Object(T.a)(Jr,["key","value","children"]),Ur="value"in Jr?bt:wn,un=Object(w.a)(Object(w.a)({},Ar),{},{key:wn!=null?wn:Ur,value:Ur,title:ar(Jr)});return"children"in Jr&&(un.children=wr(mr)),un})}return wr(Ir)}function qn(Ir,ar,nn){var Gt=nn.getLabelProp,wr=nn.simpleMode,Pr=e.useRef({});return Ir?(Pr.current.formatTreeData=Pr.current.treeData===Ir?Pr.current.formatTreeData:bn(wr?On(Ir,Object(w.a)({id:"id",pId:"pId",rootPId:null},wr!==!0?wr:{})):Ir,Gt),Pr.current.treeData=Ir):Pr.current.formatTreeData=Pr.current.children===ar?Pr.current.formatTreeData:bn(Wr(ar),Gt),Pr.current.formatTreeData}var an="SHOW_ALL",_r="SHOW_PARENT",mn="SHOW_CHILD";function In(Ir,ar,nn){var Gt=new Set(Ir);return ar===mn?Ir.filter(function(wr){var Pr=nn[wr];return!(Pr&&Pr.children&&Pr.children.every(function(Jr){var wn=Jr.node;return kn(wn)||Gt.has(wn.key)}))}):ar===_r?Ir.filter(function(wr){var Pr=nn[wr],Jr=Pr?Pr.parent:null;return!(Jr&&!kn(Jr.node)&&Gt.has(Jr.node.key))}):Ir}function Wn(Ir,ar){var nn=ar.value,Gt=ar.getEntityByValue,wr=ar.getEntityByKey,Pr=ar.treeConduction,Jr=ar.showCheckedStrategy,wn=ar.conductKeyEntities,bt=ar.getLabelProp;return e.useMemo(function(){var mr=Ir;if(Pr){var Ar=In(Ir.map(function(Ur){var un=Gt(Ur);return un?un.key:Ur}),Jr,wn);mr=Ar.map(function(Ur){var un=wr(Ur);return un?un.data.value:Ur})}return Lt(mr,nn,Gt,bt)},[Ir,nn,Pr,Jr,Gt])}var Jn=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ei=et({prefixCls:"rc-tree-select",components:{optionList:vn},convertChildrenToData:function(){return null},flattenOptions:yt,getLabeledValue:tt,filterOptions:Tt,isValueDisabled:fn,findValueOption:Vr,omitDOMProps:function(ar){var nn=Object(w.a)({},ar);return Jn.forEach(function(Gt){delete nn[Gt]}),nn}});Ei.displayName="Select";var yi=e.forwardRef(function(Ir,ar){var nn=Ir.multiple,Gt=Ir.treeCheckable,wr=Ir.treeCheckStrictly,Pr=Ir.showCheckedStrategy,Jr=Pr===void 0?"SHOW_CHILD":Pr,wn=Ir.labelInValue,bt=Ir.loadData,mr=Ir.treeLoadedKeys,Ar=Ir.treeNodeFilterProp,Ur=Ar===void 0?"value":Ar,un=Ir.treeNodeLabelProp,An=Ir.treeDataSimpleMode,ln=Ir.treeData,Hn=Ir.treeExpandedKeys,Ln=Ir.treeDefaultExpandedKeys,ni=Ir.treeDefaultExpandAll,Ai=Ir.children,ii=Ir.treeIcon,_i=Ir.showTreeIcon,Ri=Ir.switcherIcon,ji=Ir.treeLine,wi=Ir.treeMotion,Ii=Ir.filterTreeNode,Oi=Ir.dropdownPopupAlign,Ui=Ir.onChange,Zi=Ir.onTreeExpand,ma=Ir.onTreeLoad,Hi=Ir.onDropdownVisibleChange,xa=Ir.onSelect,Ea=Ir.onDeselect,ta=Gt||wr,ra=nn||ta,ga=Gt&&!wr,sa=wr||wn,Ba=e.useRef(null);e.useImperativeHandle(ar,function(){return{focus:Ba.current.focus,blur:Ba.current.blur}});var va=function($r){return ln&&$r.label||$r.title},Ia=function($r){return un?$r[un]:va($r)},za=qn(ln,Ai,{getLabelProp:va,simpleMode:An}),Va=Object(e.useMemo)(function(){return yt(za)},[za]),Ya=Fr(Va),Bi=Object(b.a)(Ya,2),ro=Bi[0],lo=Bi[1],no=Er(ro,lo),co=Object(b.a)(no,2),To=co[0],Ga=co[1],Po=Object(e.useMemo)(function(){return ga?Hr(za):{keyEntities:null}},[za,Gt,wr]),uo=Po.keyEntities,ho=Object(I.a)(Ir.defaultValue,{value:Ir.value}),zo=Object(b.a)(ho,2),Oa=zo[0],mo=zo[1],Do=function($r){var Mr=[],Gn=[];return $r.forEach(function(zr){Ga(zr)?Gn.push(zr):Mr.push(zr)}),{missingRawValues:Mr,existRawValues:Gn}},Qo=Object(e.useMemo)(function(){var Pn=[],$r=[];if(Si(Oa).forEach(function(ui){if(ui&&Object(A.a)(ui)==="object"&&"value"in ui)if(ui.halfChecked&&wr){var ai=Ga(ui.value);Pn.push(ai?ai.key:ui.value)}else $r.push(ui.value);else $r.push(ui)}),ga){var Mr=Do($r),Gn=Mr.missingRawValues,zr=Mr.existRawValues,Nn=zr.map(function(ui){return Ga(ui).key}),Qn=Et(Nn,!0,uo),Zn=Qn.checkedKeys,Yn=Qn.halfCheckedKeys;return[[].concat(Object(g.a)(Gn),Object(g.a)(Zn.map(function(ui){return To(ui).data.value}))),Yn]}return[$r,Pn]},[Oa,ra,sa,Gt,wr]),xo=Object(b.a)(Qo,2),Fo=xo[0],Ho=xo[1],go=Wn(Fo,{treeConduction:ga,value:Oa,showCheckedStrategy:Jr,conductKeyEntities:uo,getEntityByValue:Ga,getEntityByKey:To,getLabelProp:Ia}),qa=function($r,Mr,Gn){if(mo(ra?$r:$r[0]),Ui){var zr=$r;if(ga&&Jr!=="SHOW_ALL"){var Nn=$r.map(function(Ci){var na=Ga(Ci);return na?na.key:Ci}),Qn=In(Nn,Jr,uo);zr=Qn.map(function(Ci){var na=To(Ci);return na?na.data.value:Ci})}var Zn=Mr||{triggerValue:void 0,selected:void 0},Yn=Zn.triggerValue,ui=Zn.selected,ai=sa?Lt(zr,Oa,Ga,Ia):zr;if(wr){var hi=Ho.map(function(Ci){var na=To(Ci);return na?na.data.value:Ci}).filter(function(Ci){return!zr.includes(Ci)});ai=[].concat(Object(g.a)(ai),Object(g.a)(Lt(hi,Oa,Ga,Ia)))}var pi={preValue:go,triggerValue:Yn},zi=!0;(wr||Gn==="selection"&&!ui)&&(zi=!1),ei(pi,Yn,$r,za,zi),ta?pi.checked=ui:pi.selected=ui,Ui(ra?ai:ai[0],sa?null:zr.map(function(Ci){var na=Ga(Ci);return na?Ia(na.data):null}),pi)}},_a=function($r,Mr,Gn){var zr=$r;if(!ra)qa([$r],{selected:!0,triggerValue:$r},Gn);else{var Nn=_t(Fo,$r);if(ga){var Qn=Do(Nn),Zn=Qn.missingRawValues,Yn=Qn.existRawValues,ui=Yn.map(function(pi){return Ga(pi).key}),ai=Et(ui,!0,uo),hi=ai.checkedKeys;Nn=[].concat(Object(g.a)(Zn),Object(g.a)(hi.map(function(pi){return To(pi).data.value})))}qa(Nn,{selected:!0,triggerValue:$r},Gn)}xa&&xa(zr,Mr)},at=function($r,Mr,Gn){var zr=$r,Nn=Xt(Fo,$r);if(ga){var Qn=Do(Nn),Zn=Qn.missingRawValues,Yn=Qn.existRawValues,ui=Yn.map(function(pi){return Ga(pi).key}),ai=Et(ui,{checked:!1,halfCheckedKeys:Ho},uo),hi=ai.checkedKeys;Nn=[].concat(Object(g.a)(Zn),Object(g.a)(hi.map(function(pi){return To(pi).data.value})))}qa(Nn,{selected:!1,triggerValue:$r},Gn),Ea&&Ea(zr,Mr)},dr=function(){qa([],null,"clear")},Kr=e.useCallback(function(Pn){if(Hi){var $r={};Object.defineProperty($r,"documentClickClose",{get:function(){return Object(ue.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Hi(Pn,$r)}},[Hi]),Br={optionLabelProp:null,optionFilterProp:Ur,dropdownAlign:Oi,internalProps:{mark:ye,onClear:dr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:_a,onRawDeselect:at}};return"filterTreeNode"in Ir&&(Br.filterOption=Ii),e.createElement(ft.Provider,{value:{checkable:ta,loadData:bt,treeLoadedKeys:mr,onTreeLoad:ma,checkedKeys:Fo,halfCheckedKeys:Ho,treeDefaultExpandAll:ni,treeExpandedKeys:Hn,treeDefaultExpandedKeys:Ln,onTreeExpand:Zi,treeIcon:ii,treeMotion:wi,showTreeIcon:_i,switcherIcon:Ri,treeLine:ji,treeNodeFilterProp:Ur}},e.createElement(Ei,Object.assign({ref:Ba,mode:ra?"multiple":null},Ir,Br,{value:go,labelInValue:!0,options:za,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Kr})))}),mi=function(Ir){Object(c.a)(nn,Ir);var ar=Object(h.a)(nn);function nn(){var Gt;return Object(r.a)(this,nn),Gt=ar.apply(this,arguments),Gt.selectRef=e.createRef(),Gt.focus=function(){Gt.selectRef.current.focus()},Gt.blur=function(){Gt.selectRef.current.blur()},Gt}return Object(s.a)(nn,[{key:"render",value:function(){return e.createElement(yi,Object.assign({ref:this.selectRef},this.props))}}]),nn}(e.Component);mi.TreeNode=hn,mi.SHOW_ALL=an,mi.SHOW_PARENT=_r,mi.SHOW_CHILD=mn;var Vi=mi,la=Vi,Gi=i("BGR+"),ia=i("H84U"),$i=i("uaoM"),xn=i("1vzs"),Ti=i("2jpz"),Ji=i("3Nzz"),Wi=function(Ir){n()(nn,Ir);var ar=a()(nn);function nn(Gt){var wr;return f()(this,nn),wr=ar.call(this,Gt),wr.selectRef=e.createRef(),wr.renderTreeSelect=function(Pr){var Jr=Pr.getPopupContainer,wn=Pr.getPrefixCls,bt=Pr.renderEmpty,mr=Pr.direction,Ar=Pr.virtual,Ur=Pr.dropdownMatchSelectWidth,un=wr.props,An=un.prefixCls,ln=un.size,Hn=un.className,Ln=un.treeCheckable,ni=un.multiple,Ai=un.listHeight,ii=Ai===void 0?256:Ai,_i=un.listItemHeight,Ri=_i===void 0?26:_i,ji=un.notFoundContent,wi=un.switcherIcon,Ii=un.treeLine,Oi=un.getPopupContainer,Ui=un.dropdownClassName,Zi=un.bordered,ma=un.treeIcon,Hi=ma===void 0?!1:ma,xa=wn("select",An),Ea=wn("select-tree",An),ta=wn("tree-select",An),ra=C()(Ui,"".concat(ta,"-dropdown"),v()({},"".concat(ta,"-dropdown-rtl"),mr==="rtl")),ga=!!(Ln||ni),sa=Object(xn.a)(p()(p()({},wr.props),{multiple:ga,prefixCls:xa})),Ba=sa.suffixIcon,va=sa.itemIcon,Ia=sa.removeIcon,za=sa.clearIcon,Va;ji!==void 0?Va=ji:Va=bt("Select");var Ya=Object(Gi.default)(wr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(Ji.b.Consumer,null,function(Bi){var ro,lo=ln||Bi,no=C()(!An&&ta,(ro={},v()(ro,"".concat(xa,"-lg"),lo==="large"),v()(ro,"".concat(xa,"-sm"),lo==="small"),v()(ro,"".concat(xa,"-rtl"),mr==="rtl"),v()(ro,"".concat(xa,"-borderless"),!Zi),ro),Hn);return e.createElement(la,p()({virtual:Ar,dropdownMatchSelectWidth:Ur},Ya,{ref:wr.selectRef,prefixCls:xa,className:no,listHeight:ii,listItemHeight:Ri,treeCheckable:Ln&&e.createElement("span",{className:"".concat(xa,"-tree-checkbox-inner")}),inputIcon:Ba,menuItemSelectedIcon:va,removeIcon:Ia,clearIcon:za,switcherIcon:function(To){return Object(Ti.a)(Ea,wi,Ii,To)},showTreeIcon:Hi,notFoundContent:Va,getPopupContainer:Oi||Jr,treeMotion:null,dropdownClassName:ra}))})},Object($i.a)(Gt.multiple!==!1||!Gt.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),wr}return u()(nn,[{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(ia.a,null,this.renderTreeSelect)}}]),nn}(e.Component);Wi.TreeNode=hn,Wi.SHOW_ALL=an,Wi.SHOW_PARENT=_r,Wi.SHOW_CHILD=mn,Wi.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var qi=D.a=Wi},"5Uyt":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("KmBX"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"5YOS":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("xb2K"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"5YgA":function(k,D,i){},"5bA4":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="LeftOutlined";var d=D.a=p.forwardRef(f)},"5hvy":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"))})(this,function(y){return function(p){var S=y,v=S.lib,m=v.WordArray,f=v.Hasher,d=S.x64,u=d.Word,o=S.algo,n=[],t=[],a=[];(function(){for(var r=1,s=0,c=0;c<24;c++){n[r+5*s]=(c+1)*(c+2)/2%64;var h=s%5,g=(2*r+3*s)%5;r=h,s=g}for(var r=0;r<5;r++)for(var s=0;s<5;s++)t[r+5*s]=s+(2*r+3*s)%5*5;for(var A=1,b=0;b<24;b++){for(var w=0,x=0,T=0;T<7;T++){if(A&1){var _=(1<<T)-1;_<32?x^=1<<_:w^=1<<_-32}A&128?A=A<<1^113:A<<=1}a[b]=u.create(w,x)}})();var e=[];(function(){for(var r=0;r<25;r++)e[r]=u.create()})();var l=o.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var s=this._state=[],c=0;c<25;c++)s[c]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(s,c){for(var h=this._state,g=this.blockSize/2,A=0;A<g;A++){var b=s[c+2*A],w=s[c+2*A+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var x=h[A];x.high^=w,x.low^=b}for(var T=0;T<24;T++){for(var _=0;_<5;_++){for(var E=0,C=0,I=0;I<5;I++){var x=h[_+5*I];E^=x.high,C^=x.low}var O=e[_];O.high=E,O.low=C}for(var _=0;_<5;_++)for(var F=e[(_+4)%5],R=e[(_+1)%5],B=R.high,P=R.low,E=F.high^(B<<1|P>>>31),C=F.low^(P<<1|B>>>31),I=0;I<5;I++){var x=h[_+5*I];x.high^=E,x.low^=C}for(var X=1;X<25;X++){var E,C,x=h[X],M=x.high,z=x.low,W=n[X];W<32?(E=M<<W|z>>>32-W,C=z<<W|M>>>32-W):(E=z<<W-32|M>>>64-W,C=M<<W-32|z>>>64-W);var H=e[t[X]];H.high=E,H.low=C}var V=e[0],Q=h[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var I=0;I<5;I++){var X=_+5*I,x=h[X],G=e[X],ee=e[(_+1)%5+5*I],q=e[(_+2)%5+5*I];x.high=G.high^~ee.high&q.high,x.low=G.low^~ee.low&q.low}var x=h[0],se=a[T];x.high^=se.high,x.low^=se.low}},_doFinalize:function(){var s=this._data,c=s.words,h=this._nDataBytes*8,g=s.sigBytes*8,A=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(p.ceil((g+1)/A)*A>>>5)-1]|=128,s.sigBytes=c.length*4,this._process();for(var b=this._state,w=this.cfg.outputLength/8,x=w/8,T=[],_=0;_<x;_++){var E=b[_],C=E.high,I=E.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T.push(I),T.push(C)}return new m.init(T,w)},clone:function(){for(var s=f.clone.call(this),c=s._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return s}});S.SHA3=f._createHelper(l),S.HmacSHA3=f._createHmacHelper(l)}(Math),y.SHA3})},"5nXd":function(k,D,i){var y=i("MFOe"),p=y.slice,S=y.pluck,v=y.each,m=y.bind,f=y.create,d=y.isList,u=y.isFunction,o=y.isObject;k.exports={createStore:a};var n={version:"2.0.12",enabled:!1,get:function(l,r){var s=this.storage.read(this._namespacePrefix+l);return this._deserialize(s,r)},set:function(l,r){return r===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(r)),r)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var r=this;this.storage.each(function(s,c){l.call(r,r._deserialize(s),(c||"").replace(r._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return a.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return a(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 a(e,l,r){r||(r=""),e&&!d(e)&&(e=[e]),l&&!d(l)&&(l=[l]);var s=r?"__storejs_"+r+"_":"",c=r?new RegExp("^"+s):null,h=/^[a-zA-Z0-9_\-]*$/;if(!h.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:s,_namespaceRegexp:c,_testStorage:function(w){try{var x="__storejs__test__";w.write(x,x);var T=w.read(x)===x;return w.remove(x),T}catch(_){return!1}},_assignPluginFnProp:function(w,x){var T=this[x];this[x]=function(){var E=p(arguments,0),C=this;function I(){return T?(v(arguments,function(F,R){E[R]=F}),T.apply(C,E)):void 0}var O=[I].concat(E);return w.apply(C,O)}},_serialize:function(w){return JSON.stringify(w)},_deserialize:function(w,x){if(!w)return x;var T="";try{T=JSON.parse(w)}catch(_){T=w}return T!==void 0?T:x},_addStorage:function(w){if(this.enabled)return;this._testStorage(w)&&(this.storage=w,this.enabled=!0)},_addPlugin:function(w){var x=this;if(d(w)){v(w,function(E){x._addPlugin(E)});return}var T=S(this.plugins,function(E){return w===E});if(T)return;if(this.plugins.push(w),!u(w))throw new Error("Plugins must be function values that return objects");var _=w.call(this);if(!o(_))throw new Error("Plugins must return an object of function properties");v(_,function(E,C){if(!u(E))throw new Error("Bad plugin property: "+C+" from plugin "+w.name+". Plugins should only return functions.");x._assignPluginFnProp(E,C)})},addStorage:function(w){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(w)}},A=f(g,n,{plugins:[]});return A.raw={},v(A,function(b,w){u(b)&&(A.raw[w]=m(A,b))}),v(e,function(b){A._addStorage(b)}),v(l,function(b){A._addPlugin(b)}),A}},"5rEg":function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lwsE"),v=i.n(S),m=i("W8MJ"),f=i.n(m),d=i("7W2i"),u=i.n(d),o=i("LQ03"),n=i.n(o),t=i("lSNA"),a=i.n(t),e=i("q1tI"),l=i("TSYQ"),r=i.n(l),s=i("BGR+"),c=i("kbBi"),h=i.n(c),g=i("CWQg"),A=i("0n0R"),b=Object(g.a)("text","input");function w(ne){return!!(ne.prefix||ne.suffix||ne.allowClear)}var x=function(ne){u()(ye,ne);var ce=n()(ye);function ye(){var Ee;return v()(this,ye),Ee=ce.apply(this,arguments),Ee.containerRef=e.createRef(),Ee.onInputMouseUp=function(Ce){var ue;if((ue=Ee.containerRef.current)===null||ue===void 0?void 0:ue.contains(Ce.target)){var ge=Ee.props.triggerFocus;ge()}},Ee}return f()(ye,[{key:"renderClearIcon",value:function(Ce){var ue=this.props,ge=ue.allowClear,Oe=ue.value,Je=ue.disabled,lt=ue.readOnly,tt=ue.inputType,ke=ue.handleReset;if(!ge)return null;var st=!Je&&!lt&&Oe,Ve=tt===b[0]?"".concat(Ce,"-textarea-clear-icon"):"".concat(Ce,"-clear-icon");return e.createElement(h.a,{onClick:ke,className:r()(Ve,a()({},"".concat(Ve,"-hidden"),!st)),role:"button"})}},{key:"renderSuffix",value:function(Ce){var ue=this.props,ge=ue.suffix,Oe=ue.allowClear;return ge||Oe?e.createElement("span",{className:"".concat(Ce,"-suffix")},this.renderClearIcon(Ce),ge):null}},{key:"renderLabeledIcon",value:function(Ce,ue){var ge,Oe=this.props,Je=Oe.focused,lt=Oe.value,tt=Oe.prefix,ke=Oe.className,st=Oe.size,Ve=Oe.suffix,Ot=Oe.disabled,Ut=Oe.allowClear,ir=Oe.direction,lr=Oe.style,Sr=Oe.readOnly,mt=Oe.bordered,or=this.renderSuffix(Ce);if(!w(this.props))return Object(A.a)(ue,{value:lt});var et=tt?e.createElement("span",{className:"".concat(Ce,"-prefix")},tt):null,ur=r()(ke,"".concat(Ce,"-affix-wrapper"),(ge={},a()(ge,"".concat(Ce,"-affix-wrapper-focused"),Je),a()(ge,"".concat(Ce,"-affix-wrapper-disabled"),Ot),a()(ge,"".concat(Ce,"-affix-wrapper-sm"),st==="small"),a()(ge,"".concat(Ce,"-affix-wrapper-lg"),st==="large"),a()(ge,"".concat(Ce,"-affix-wrapper-input-with-clear-btn"),Ve&&Ut&&lt),a()(ge,"".concat(Ce,"-affix-wrapper-rtl"),ir==="rtl"),a()(ge,"".concat(Ce,"-affix-wrapper-readonly"),Sr),a()(ge,"".concat(Ce,"-affix-wrapper-borderless"),!mt),ge));return e.createElement("span",{ref:this.containerRef,className:ur,style:lr,onMouseUp:this.onInputMouseUp},et,Object(A.a)(ue,{style:null,value:lt,className:F(Ce,mt,st,Ot)}),or)}},{key:"renderInputWithLabel",value:function(Ce,ue){var ge,Oe,Je=this.props,lt=Je.addonBefore,tt=Je.addonAfter,ke=Je.style,st=Je.size,Ve=Je.className,Ot=Je.direction;if(!lt&&!tt)return ue;var Ut="".concat(Ce,"-group"),ir="".concat(Ut,"-addon"),lr=lt?e.createElement("span",{className:ir},lt):null,Sr=tt?e.createElement("span",{className:ir},tt):null,mt=r()("".concat(Ce,"-wrapper"),(ge={},a()(ge,Ut,lt||tt),a()(ge,"".concat(Ut,"-rtl"),Ot==="rtl"),ge)),or=r()(Ve,"".concat(Ce,"-group-wrapper"),(Oe={},a()(Oe,"".concat(Ce,"-group-wrapper-sm"),st==="small"),a()(Oe,"".concat(Ce,"-group-wrapper-lg"),st==="large"),a()(Oe,"".concat(Ce,"-group-wrapper-rtl"),Ot==="rtl"),Oe));return e.createElement("span",{className:or,style:ke},e.createElement("span",{className:mt},lr,Object(A.a)(ue,{style:null}),Sr))}},{key:"renderTextAreaWithClearIcon",value:function(Ce,ue){var ge,Oe=this.props,Je=Oe.value,lt=Oe.allowClear,tt=Oe.className,ke=Oe.style,st=Oe.direction,Ve=Oe.bordered;if(!lt)return Object(A.a)(ue,{value:Je});var Ot=r()(tt,"".concat(Ce,"-affix-wrapper"),"".concat(Ce,"-affix-wrapper-textarea-with-clear-btn"),(ge={},a()(ge,"".concat(Ce,"-affix-wrapper-rtl"),st==="rtl"),a()(ge,"".concat(Ce,"-affix-wrapper-borderless"),!Ve),ge));return e.createElement("span",{className:Ot,style:ke},Object(A.a)(ue,{style:null,value:Je}),this.renderClearIcon(Ce))}},{key:"render",value:function(){var Ce=this.props,ue=Ce.prefixCls,ge=Ce.inputType,Oe=Ce.element;return ge===b[0]?this.renderTextAreaWithClearIcon(ue,Oe):this.renderInputWithLabel(ue,this.renderLabeledIcon(ue,Oe))}}]),ye}(e.Component),T=x,_=i("H84U"),E=i("3Nzz"),C=i("uaoM");function I(ne){return typeof ne=="undefined"||ne===null?"":ne}function O(ne,ce,ye){if(ye){var Ee=ce;if(ce.type==="click"){Ee=Object.create(ce),Ee.target=ne,Ee.currentTarget=ne;var Ce=ne.value;ne.value="",ye(Ee),ne.value=Ce;return}ye(Ee)}}function F(ne,ce,ye,Ee,Ce){var ue;return r()(ne,(ue={},a()(ue,"".concat(ne,"-sm"),ye==="small"),a()(ue,"".concat(ne,"-lg"),ye==="large"),a()(ue,"".concat(ne,"-disabled"),Ee),a()(ue,"".concat(ne,"-rtl"),Ce==="rtl"),a()(ue,"".concat(ne,"-borderless"),!ce),ue))}var R=function(ne){u()(ye,ne);var ce=n()(ye);function ye(Ee){var Ce;v()(this,ye),Ce=ce.call(this,Ee),Ce.direction="ltr",Ce.focus=function(){Ce.input.focus()},Ce.saveClearableInput=function(ge){Ce.clearableInput=ge},Ce.saveInput=function(ge){Ce.input=ge},Ce.onFocus=function(ge){var Oe=Ce.props.onFocus;Ce.setState({focused:!0},Ce.clearPasswordValueAttribute),Oe&&Oe(ge)},Ce.onBlur=function(ge){var Oe=Ce.props.onBlur;Ce.setState({focused:!1},Ce.clearPasswordValueAttribute),Oe&&Oe(ge)},Ce.handleReset=function(ge){Ce.setValue("",function(){Ce.focus()}),O(Ce.input,ge,Ce.props.onChange)},Ce.renderInput=function(ge,Oe,Je){var lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},tt=Ce.props,ke=tt.className,st=tt.addonBefore,Ve=tt.addonAfter,Ot=tt.size,Ut=tt.disabled,ir=Object(s.default)(Ce.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",p()({autoComplete:lt.autoComplete},ir,{onChange:Ce.handleChange,onFocus:Ce.onFocus,onBlur:Ce.onBlur,onKeyDown:Ce.handleKeyDown,className:r()(F(ge,Je,Ot||Oe,Ut,Ce.direction),a()({},ke,ke&&!st&&!Ve)),ref:Ce.saveInput}))},Ce.clearPasswordValueAttribute=function(){Ce.removePasswordTimeout=setTimeout(function(){Ce.input&&Ce.input.getAttribute("type")==="password"&&Ce.input.hasAttribute("value")&&Ce.input.removeAttribute("value")})},Ce.handleChange=function(ge){Ce.setValue(ge.target.value,Ce.clearPasswordValueAttribute),O(Ce.input,ge,Ce.props.onChange)},Ce.handleKeyDown=function(ge){var Oe=Ce.props,Je=Oe.onPressEnter,lt=Oe.onKeyDown;ge.keyCode===13&&Je&&Je(ge),lt&&lt(ge)},Ce.renderComponent=function(ge){var Oe=ge.getPrefixCls,Je=ge.direction,lt=ge.input,tt=Ce.state,ke=tt.value,st=tt.focused,Ve=Ce.props,Ot=Ve.prefixCls,Ut=Ve.bordered,ir=Ut===void 0?!0:Ut,lr=Oe("input",Ot);return Ce.direction=Je,e.createElement(E.b.Consumer,null,function(Sr){return e.createElement(T,p()({size:Sr},Ce.props,{prefixCls:lr,inputType:"input",value:I(ke),element:Ce.renderInput(lr,Sr,ir,lt),handleReset:Ce.handleReset,ref:Ce.saveClearableInput,direction:Je,focused:st,triggerFocus:Ce.focus,bordered:ir}))})};var ue=typeof Ee.value=="undefined"?Ee.defaultValue:Ee.value;return Ce.state={value:ue,focused:!1,prevValue:Ee.value},Ce}return f()(ye,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(Ce){return w(Ce)!==w(this.props)&&Object(C.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(Ce,ue){this.props.value===void 0&&this.setState({value:Ce},ue)}},{key:"render",value:function(){return e.createElement(_.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Ce,ue){var ge=ue.prevValue,Oe={prevValue:Ce.value};return(Ce.value!==void 0||ge!==Ce.value)&&(Oe.value=Ce.value),Oe}}]),ye}(e.Component);R.defaultProps={type:"text"};var B=R,P=function(ce){return e.createElement(_.a,null,function(ye){var Ee,Ce=ye.getPrefixCls,ue=ye.direction,ge=ce.prefixCls,Oe=ce.className,Je=Oe===void 0?"":Oe,lt=Ce("input-group",ge),tt=r()(lt,(Ee={},a()(Ee,"".concat(lt,"-lg"),ce.size==="large"),a()(Ee,"".concat(lt,"-sm"),ce.size==="small"),a()(Ee,"".concat(lt,"-compact"),ce.compact),a()(Ee,"".concat(lt,"-rtl"),ue==="rtl"),Ee),Je);return e.createElement("span",{className:tt,style:ce.style,onMouseEnter:ce.onMouseEnter,onMouseLeave:ce.onMouseLeave,onFocus:ce.onFocus,onBlur:ce.onBlur},ce.children)})},X=P,M=i("c+Xe"),z=i("w6Tc"),W=i.n(z),H=i("gZBC"),V=i.n(H),Q=i("2/Rp"),G=function(ne,ce){var ye={};for(var Ee in ne)Object.prototype.hasOwnProperty.call(ne,Ee)&&ce.indexOf(Ee)<0&&(ye[Ee]=ne[Ee]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Ee=Object.getOwnPropertySymbols(ne);Ce<Ee.length;Ce++)ce.indexOf(Ee[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ne,Ee[Ce])&&(ye[Ee[Ce]]=ne[Ee[Ce]]);return ye},ee=e.forwardRef(function(ne,ce){var ye=e.useRef(null),Ee=function(ke){var st=ne.onChange,Ve=ne.onSearch;ke&&ke.target&&ke.type==="click"&&Ve&&Ve(ke.target.value,ke),st&&st(ke)},Ce=function(ke){var st;document.activeElement===((st=ye.current)===null||st===void 0?void 0:st.input)&&ke.preventDefault()},ue=function(ke){var st,Ve=ne.onSearch,Ot=ne.loading,Ut=ne.disabled;if(Ot||Ut)return;Ve&&Ve((st=ye.current)===null||st===void 0?void 0:st.input.value,ke)},ge=function(ke){var st=ne.enterButton,Ve=ne.size;return st?e.createElement(E.b.Consumer,{key:"enterButton"},function(Ot){return e.createElement(Q.a,{className:"".concat(ke,"-button"),type:"primary",size:Ve||Ot},e.createElement(V.a,null))}):e.createElement(V.a,{className:"".concat(ke,"-icon"),key:"loadingIcon"})},Oe=function(ke){var st=ne.suffix,Ve=ne.enterButton,Ot=ne.loading;if(Ot&&!Ve)return[st,ge(ke)];if(Ve)return st;var Ut=e.createElement(W.a,{className:"".concat(ke,"-icon"),key:"searchIcon",onClick:ue});return st?[Object(A.c)(st,null,{key:"suffix"}),Ut]:Ut},Je=function(ke,st){var Ve=ne.enterButton,Ot=ne.disabled,Ut=ne.addonAfter,ir=ne.loading,lr="".concat(ke,"-button");if(ir&&Ve)return[ge(ke),Ut];if(!Ve)return Ut;var Sr,mt=Ve,or=mt.type&&mt.type.__ANT_BUTTON===!0;return or||mt.type==="button"?Sr=Object(A.a)(mt,p()({onMouseDown:Ce,onClick:ue,key:"enterButton"},or?{className:lr,size:st}:{})):Sr=e.createElement(Q.a,{className:lr,type:"primary",size:st,disabled:Ot,key:"enterButton",onMouseDown:Ce,onClick:ue},Ve===!0?e.createElement(W.a,null):Ve),Ut?[Sr,Object(A.c)(Ut,null,{key:"addonAfter"})]:Sr},lt=function(ke){var st=ke.getPrefixCls,Ve=ke.direction,Ot=ne.prefixCls,Ut=ne.inputPrefixCls,ir=ne.enterButton,lr=ne.className,Sr=ne.size,mt=G(ne,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete mt.onSearch,delete mt.loading;var or=st("input-search",Ot),et=st("input",Ut),ur=function(Fe){var $t;if(ir){var Lr;$t=r()(or,lr,(Lr={},a()(Lr,"".concat(or,"-rtl"),Ve==="rtl"),a()(Lr,"".concat(or,"-enter-button"),!!ir),a()(Lr,"".concat(or,"-").concat(Fe),!!Fe),Lr))}else $t=r()(or,lr,a()({},"".concat(or,"-rtl"),Ve==="rtl"));return $t};return e.createElement(E.b.Consumer,null,function(qr){return e.createElement(B,p()({ref:Object(M.a)(ye,ce),onPressEnter:ue},mt,{size:Sr||qr,prefixCls:et,addonAfter:Je(or,Sr||qr),suffix:Oe(or),onChange:Ee,className:ur(Sr||qr)}))})};return e.createElement(_.a,null,lt)});ee.defaultProps={enterButton:!1},ee.displayName="Search";var q=ee,se=i("Y1PL"),re=function(ne){u()(ye,ne);var ce=n()(ye);function ye(Ee){var Ce;v()(this,ye),Ce=ce.call(this,Ee),Ce.focus=function(){Ce.resizableTextArea.textArea.focus()},Ce.saveTextArea=function(ge){Ce.resizableTextArea=ge==null?void 0:ge.resizableTextArea},Ce.saveClearableInput=function(ge){Ce.clearableInput=ge},Ce.handleChange=function(ge){Ce.setValue(ge.target.value),O(Ce.resizableTextArea.textArea,ge,Ce.props.onChange)},Ce.handleReset=function(ge){Ce.setValue("",function(){Ce.focus()}),O(Ce.resizableTextArea.textArea,ge,Ce.props.onChange)},Ce.renderTextArea=function(ge,Oe){return e.createElement(se.default,p()({},Object(s.default)(Ce.props,["allowClear","bordered"]),{className:r()(Ce.props.className,a()({},"".concat(ge,"-borderless"),!Oe)),prefixCls:ge,onChange:Ce.handleChange,ref:Ce.saveTextArea}))},Ce.renderComponent=function(ge){var Oe=ge.getPrefixCls,Je=ge.direction,lt=Ce.state.value,tt=Ce.props,ke=tt.prefixCls,st=tt.bordered,Ve=st===void 0?!0:st,Ot=Oe("input",ke);return e.createElement(T,p()({},Ce.props,{prefixCls:Ot,direction:Je,inputType:"text",value:I(lt),element:Ce.renderTextArea(Ot,Ve),handleReset:Ce.handleReset,ref:Ce.saveClearableInput,triggerFocus:Ce.focus,bordered:Ve}))};var ue=typeof Ee.value=="undefined"?Ee.defaultValue:Ee.value;return Ce.state={value:ue},Ce}return f()(ye,[{key:"setValue",value:function(Ce,ue){this.props.value===void 0&&this.setState({value:Ce},ue)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(_.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Ce){return Ce.value!==void 0?{value:Ce.value}:null}}]),ye}(e.Component),Ae=re,Te=i("J4zp"),Re=i.n(Te),Ge=i("qPY4"),Ue=i.n(Ge),nt=i("fUL4"),Le=i.n(nt),le=function(ne,ce){var ye={};for(var Ee in ne)Object.prototype.hasOwnProperty.call(ne,Ee)&&ce.indexOf(Ee)<0&&(ye[Ee]=ne[Ee]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Ee=Object.getOwnPropertySymbols(ne);Ce<Ee.length;Ce++)ce.indexOf(Ee[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ne,Ee[Ce])&&(ye[Ee[Ce]]=ne[Ee[Ce]]);return ye},Xe={click:"onClick",hover:"onMouseOver"},pe=e.forwardRef(function(ne,ce){var ye=Object(e.useState)(!1),Ee=Re()(ye,2),Ce=Ee[0],ue=Ee[1],ge=function(){var tt=ne.disabled;if(tt)return;ue(!Ce)},Oe=function(tt){var ke,st=ne.action,Ve=ne.iconRender,Ot=Ve===void 0?function(){return null}:Ve,Ut=Xe[st]||"",ir=Ot(Ce),lr=(ke={},a()(ke,Ut,ge),a()(ke,"className","".concat(tt,"-icon")),a()(ke,"key","passwordIcon"),a()(ke,"onMouseDown",function(mt){mt.preventDefault()}),a()(ke,"onMouseUp",function(mt){mt.preventDefault()}),ke);return e.cloneElement(e.isValidElement(ir)?ir:e.createElement("span",null,ir),lr)},Je=function(tt){var ke=tt.getPrefixCls,st=ne.className,Ve=ne.prefixCls,Ot=ne.inputPrefixCls,Ut=ne.size,ir=ne.visibilityToggle,lr=le(ne,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Sr=ke("input",Ot),mt=ke("input-password",Ve),or=ir&&Oe(mt),et=r()(mt,st,a()({},"".concat(mt,"-").concat(Ut),!!Ut)),ur=p()(p()({},Object(s.default)(lr,["suffix","iconRender"])),{type:Ce?"text":"password",className:et,prefixCls:Sr,suffix:or});return Ut&&(ur.size=Ut),e.createElement(B,p()({ref:ce},ur))};return e.createElement(_.a,null,Je)});pe.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(ce){return ce?e.createElement(Ue.a,null):e.createElement(Le.a,null)}},pe.displayName="Password";var Z=pe;B.Group=X,B.Search=q,B.TextArea=Ae,B.Password=Z;var Y=D.a=B},"5s0K":function(k,D,i){var y=i("bYtY");function p(){var S=[],v={},m;return{add:function(f,d,u,o,n){return y.isString(o)&&(n=o,o=0),v[f.id]?!1:(v[f.id]=1,S.push({el:f,target:d,time:u,delay:o,easing:n}),!0)},done:function(f){return m=f,this},start:function(){for(var f=S.length,d=0,u=S.length;d<u;d++){var o=S[d];o.el.animateTo(o.target,o.time,o.delay,o.easing,n)}return this;function n(){f--,f||(S.length=0,v={},m&&m())}}}}D.createWrap=p},"5yev":function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},"6/nd":function(k,D,i){var y=i("ProS");y.registerAction("legendScroll","legendscroll",function(p,S){var v=p.scrollDataIndex;v!=null&&S.eachComponent({mainType:"legend",subType:"scroll",query:p},function(m){m.setScrollDataIndex(v)})})},"62sa":function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=p.makeInner,v=i("zTMp"),m=i("Ez2D"),f=y.each,d=y.curry,u=S();function o(A,b,w){var x=A.currTrigger,T=[A.x,A.y],_=A,E=A.dispatchAction||y.bind(w.dispatchAction,w),C=b.getComponent("axisPointer").coordSysAxesInfo;if(!C)return;g(T)&&(T=m({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var I=g(T),O=_.axesInfo,F=C.axesInfo,R=x==="leave"||g(T),B={},P={},X={list:[],map:{}},M={showPointer:d(a,P),showTooltip:d(e,X)};f(C.coordSysMap,function(W,H){var V=I||W.containPoint(T);f(C.coordSysAxesInfo[H],function(Q,G){var ee=Q.axis,q=c(O,Q);if(!R&&V&&(!O||q)){var se=q&&q.value;se==null&&!I&&(se=ee.pointToData(T)),se!=null&&n(Q,se,M,!1,B)}})});var z={};return f(F,function(W,H){var V=W.linkGroup;V&&!P[H]&&f(V.axesInfo,function(Q,G){var ee=P[G];if(Q!==W&&ee){var q=ee.value;V.mapper&&(q=W.axis.scale.parse(V.mapper(q,h(Q),h(W)))),z[W.key]=q}})}),f(z,function(W,H){n(F[H],W,M,!0,B)}),l(P,F,B),r(X,T,A,E),s(F,E,w),B}function n(A,b,w,x,T){var _=A.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!A.involveSeries){w.showPointer(A,b);return}var E=t(b,A),C=E.payloadBatch,I=E.snapToValue;C[0]&&T.seriesIndex==null&&y.extend(T,C[0]),!x&&A.snap&&(_.containData(I)&&I!=null&&(b=I)),w.showPointer(A,b,C,T),w.showTooltip(A,E,I)}function t(A,b){var w=b.axis,x=w.dim,T=A,_=[],E=Number.MAX_VALUE,C=-1;return f(b.seriesModels,function(I,O){var F=I.getData().mapDimension(x,!0),R,B;if(I.getAxisTooltipData){var P=I.getAxisTooltipData(F,A,w);B=P.dataIndices,R=P.nestestValue}else{if(B=I.getData().indicesOfNearest(F[0],A,w.type==="category"?.5:null),!B.length)return;R=I.getData().get(F[0],B[0])}if(R==null||!isFinite(R))return;var X=A-R,M=Math.abs(X);M<=E&&((M<E||X>=0&&C<0)&&(E=M,C=X,T=R,_.length=0),f(B,function(z){_.push({seriesIndex:I.seriesIndex,dataIndexInside:z,dataIndex:I.getData().getRawIndex(z)})}))}),{payloadBatch:_,snapToValue:T}}function a(A,b,w,x){A[b.key]={value:w,payloadBatch:x}}function e(A,b,w,x){var T=w.payloadBatch,_=b.axis,E=_.model,C=b.axisPointerModel;if(!b.triggerTooltip||!T.length)return;var I=b.coordSys.model,O=v.makeKey(I),F=A.map[O];F||(F=A.map[O]={coordSysId:I.id,coordSysIndex:I.componentIndex,coordSysType:I.type,coordSysMainType:I.mainType,dataByAxis:[]},A.list.push(F)),F.dataByAxis.push({axisDim:_.dim,axisIndex:E.componentIndex,axisType:E.type,axisId:E.id,value:x,valueLabelOpt:{precision:C.get("label.precision"),formatter:C.get("label.formatter")},seriesDataIndices:T.slice()})}function l(A,b,w){var x=w.axesInfo=[];f(b,function(T,_){var E=T.axisPointerModel.option,C=A[_];C?(!T.useHandle&&(E.status="show"),E.value=C.value,E.seriesDataIndices=(C.payloadBatch||[]).slice()):!T.useHandle&&(E.status="hide"),E.status==="show"&&x.push({axisDim:T.axis.dim,axisIndex:T.axis.model.componentIndex,value:E.value})})}function r(A,b,w,x){if(g(b)||!A.list.length){x({type:"hideTip"});return}var T=((A.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};x({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:T.dataIndexInside,dataIndex:T.dataIndex,seriesIndex:T.seriesIndex,dataByCoordSys:A.list})}function s(A,b,w){var x=w.getZr(),T="axisPointerLastHighlights",_=u(x)[T]||{},E=u(x)[T]={};f(A,function(O,F){var R=O.axisPointerModel.option;R.status==="show"&&f(R.seriesDataIndices,function(B){var P=B.seriesIndex+" | "+B.dataIndex;E[P]=B})});var C=[],I=[];y.each(_,function(O,F){!E[F]&&I.push(O)}),y.each(E,function(O,F){!_[F]&&C.push(O)}),I.length&&w.dispatchAction({type:"downplay",escapeConnect:!0,batch:I}),C.length&&w.dispatchAction({type:"highlight",escapeConnect:!0,batch:C})}function c(A,b){for(var w=0;w<(A||[]).length;w++){var x=A[w];if(b.axis.dim===x.axisDim&&b.axis.model.componentIndex===x.axisIndex)return x}}function h(A){var b=A.axis.model,w={},x=w.axisDim=A.axis.dim;return w.axisIndex=w[x+"AxisIndex"]=b.componentIndex,w.axisName=w[x+"AxisName"]=b.name,w.axisId=w[x+"AxisId"]=b.id,w}function g(A){return!A||A[0]==null||isNaN(A[0])||A[1]==null||isNaN(A[1])}k.exports=o},"6BzB":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.shrinkBuf=y,D.arraySet=p,D.flattenChunks=S,D.Buf32=D.Buf16=D.Buf8=void 0;function y(d,u){return d.length===u?d:d.subarray?d.subarray(0,u):(d.length=u,d)}function p(d,u,o,n,t){if(u.subarray&&d.subarray){d.set(u.subarray(o,o+n),t);return}for(var a=0;a<n;a++)d[t+a]=u[o+a]}function S(d){var u,o,n,t,a,e;for(n=0,u=0,o=d.length;u<o;u++)n+=d[u].length;for(e=new Uint8Array(n),t=0,u=0,o=d.length;u<o;u++)a=d[u],e.set(a,t),t+=a.length;return e}var v=Uint8Array;D.Buf8=v;var m=Uint16Array;D.Buf16=m;var f=Int32Array;D.Buf32=f},"6D9b":function(k,D,i){},"6GrX":function(k,D,i){var y=i("mFDi"),p=i("Xnb7"),S=i("bYtY"),v=S.getContext,m=S.extend,f=S.retrieve2,d=S.retrieve3,u=S.trim,o={},n=0,t=5e3,a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function r(X,M){l[X]=M}function s(X,M){M=M||e;var z=X+":"+M;if(o[z])return o[z];for(var W=(X+"").split(`
`),H=0,V=0,Q=W.length;V<Q;V++)H=Math.max(O(W[V],M).width,H);return n>t&&(n=0,o={}),n++,o[z]=H,H}function c(X,M,z,W,H,V,Q,G){return Q?g(X,M,z,W,H,V,Q,G):h(X,M,z,W,H,V,G)}function h(X,M,z,W,H,V,Q){var G=F(X,M,H,V,Q),ee=s(X,M);H&&(ee+=H[1]+H[3]);var q=G.outerHeight,se=A(0,ee,z),re=b(0,q,W),Ae=new y(se,re,ee,q);return Ae.lineHeight=G.lineHeight,Ae}function g(X,M,z,W,H,V,Q,G){var ee=R(X,{rich:Q,truncate:G,font:M,textAlign:z,textPadding:H,textLineHeight:V}),q=ee.outerWidth,se=ee.outerHeight,re=A(0,q,z),Ae=b(0,se,W);return new y(re,Ae,q,se)}function A(X,M,z){return z==="right"?X-=M:z==="center"&&(X-=M/2),X}function b(X,M,z){return z==="middle"?X-=M/2:z==="bottom"&&(X-=M),X}function w(X,M,z){var W=M.textPosition,H=M.textDistance,V=z.x,Q=z.y;H=H||0;var G=z.height,ee=z.width,q=G/2,se="left",re="top";switch(W){case"left":V-=H,Q+=q,se="right",re="middle";break;case"right":V+=H+ee,Q+=q,re="middle";break;case"top":V+=ee/2,Q-=H,se="center",re="bottom";break;case"bottom":V+=ee/2,Q+=G+H,se="center";break;case"inside":V+=ee/2,Q+=q,se="center",re="middle";break;case"insideLeft":V+=H,Q+=q,re="middle";break;case"insideRight":V+=ee-H,Q+=q,se="right",re="middle";break;case"insideTop":V+=ee/2,Q+=H,se="center";break;case"insideBottom":V+=ee/2,Q+=G-H,se="center",re="bottom";break;case"insideTopLeft":V+=H,Q+=H;break;case"insideTopRight":V+=ee-H,Q+=H,se="right";break;case"insideBottomLeft":V+=H,Q+=G-H,re="bottom";break;case"insideBottomRight":V+=ee-H,Q+=G-H,se="right",re="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=se,X.textVerticalAlign=re,X}function x(X,M,z){var W={textPosition:X,textDistance:z};return w({},W,M)}function T(X,M,z,W,H){if(!M)return"";var V=(X+"").split(`
`);H=_(M,z,W,H);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=E(V[Q],H);return V.join(`
`)}function _(X,M,z,W){W=m({},W),W.font=M;var z=f(z,"...");W.maxIterations=f(W.maxIterations,2);var H=W.minChar=f(W.minChar,0);W.cnCharWidth=s("\u56FD",M);var V=W.ascCharWidth=s("a",M);W.placeholder=f(W.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<H&&Q>=V;G++)Q-=V;var ee=s(z,M);return ee>Q&&(z="",ee=0),Q=X-ee,W.ellipsis=z,W.ellipsisWidth=ee,W.contentWidth=Q,W.containerWidth=X,W}function E(X,M){var z=M.containerWidth,W=M.font,H=M.contentWidth;if(!z)return"";var V=s(X,W);if(V<=z)return X;for(var Q=0;;Q++){if(V<=H||Q>=M.maxIterations){X+=M.ellipsis;break}var G=Q===0?C(X,H,M.ascCharWidth,M.cnCharWidth):V>0?Math.floor(X.length*H/V):0;X=X.substr(0,G),V=s(X,W)}return X===""&&(X=M.placeholder),X}function C(X,M,z,W){for(var H=0,V=0,Q=X.length;V<Q&&H<M;V++){var G=X.charCodeAt(V);H+=0<=G&&G<=127?z:W}return V}function I(X){return s("\u56FD",X)}function O(X,M){return l.measureText(X,M)}l.measureText=function(X,M){var z=v();return z.font=M||e,z.measureText(X)};function F(X,M,z,W,H){X!=null&&(X+="");var V=f(W,I(M)),Q=X?X.split(`
`):[],G=Q.length*V,ee=G,q=!0;if(z&&(ee+=z[0]+z[2]),X&&H){q=!1;var se=H.outerHeight,re=H.outerWidth;if(se!=null&&ee>se)X="",Q=[];else if(re!=null)for(var Ae=_(re-(z?z[1]+z[3]:0),M,H.ellipsis,{minChar:H.minChar,placeholder:H.placeholder}),Te=0,Re=Q.length;Te<Re;Te++)Q[Te]=E(Q[Te],Ae)}return{lines:Q,height:G,outerHeight:ee,lineHeight:V,canCacheByTextString:q}}function R(X,M){var z={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return z;for(var W=a.lastIndex=0,H;(H=a.exec(X))!=null;){var V=H.index;V>W&&B(z,X.substring(W,V)),B(z,H[2],H[1]),W=a.lastIndex}W<X.length&&B(z,X.substring(W,X.length));var Q=z.lines,G=0,ee=0,q=[],se=M.textPadding,re=M.truncate,Ae=re&&re.outerWidth,Te=re&&re.outerHeight;se&&(Ae!=null&&(Ae-=se[1]+se[3]),Te!=null&&(Te-=se[0]+se[2]));for(var Re=0;Re<Q.length;Re++){for(var Ge=Q[Re],Ue=0,nt=0,Le=0;Le<Ge.tokens.length;Le++){var le=Ge.tokens[Le],Xe=le.styleName&&M.rich[le.styleName]||{},pe=le.textPadding=Xe.textPadding,Z=le.font=Xe.font||M.font,Y=le.textHeight=f(Xe.textHeight,I(Z));if(pe&&(Y+=pe[0]+pe[2]),le.height=Y,le.lineHeight=d(Xe.textLineHeight,M.textLineHeight,Y),le.textAlign=Xe&&Xe.textAlign||M.textAlign,le.textVerticalAlign=Xe&&Xe.textVerticalAlign||"middle",Te!=null&&G+le.lineHeight>Te)return{lines:[],width:0,height:0};le.textWidth=s(le.text,Z);var ne=Xe.textWidth,ce=ne==null||ne==="auto";if(typeof ne=="string"&&ne.charAt(ne.length-1)==="%")le.percentWidth=ne,q.push(le),ne=0;else{if(ce){ne=le.textWidth;var ye=Xe.textBackgroundColor,Ee=ye&&ye.image;Ee&&(Ee=p.findExistImage(Ee),p.isImageReady(Ee)&&(ne=Math.max(ne,Ee.width*Y/Ee.height)))}var Ce=pe?pe[1]+pe[3]:0;ne+=Ce;var ue=Ae!=null?Ae-nt:null;ue!=null&&ue<ne&&(!ce||ue<Ce?(le.text="",le.textWidth=ne=0):(le.text=T(le.text,ue-Ce,Z,re.ellipsis,{minChar:re.minChar}),le.textWidth=s(le.text,Z),ne=le.textWidth+Ce))}nt+=le.width=ne,Xe&&(Ue=Math.max(Ue,le.lineHeight))}Ge.width=nt,Ge.lineHeight=Ue,G+=Ue,ee=Math.max(ee,nt)}z.outerWidth=z.width=f(M.textWidth,ee),z.outerHeight=z.height=f(M.textHeight,G),se&&(z.outerWidth+=se[1]+se[3],z.outerHeight+=se[0]+se[2]);for(var Re=0;Re<q.length;Re++){var le=q[Re],ge=le.percentWidth;le.width=parseInt(ge,10)/100*ee}return z}function B(X,M,z){for(var W=M==="",H=M.split(`
`),V=X.lines,Q=0;Q<H.length;Q++){var G=H[Q],ee={styleName:z,text:G,isLineHolder:!G&&!W};if(Q)V.push({tokens:[ee]});else{var q=(V[V.length-1]||(V[0]={tokens:[]})).tokens,se=q.length;se===1&&q[0].isLineHolder?q[0]=ee:(G||!se||W)&&q.push(ee)}}}function P(X){var M=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return M&&u(M)||X.textFont||X.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=s,D.getBoundingRect=c,D.adjustTextX=A,D.adjustTextY=b,D.calculateTextPosition=w,D.adjustTextPositionOnRect=x,D.truncateText=T,D.getLineHeight=I,D.measureText=O,D.parsePlainText=F,D.parseRichText=R,D.makeFont=P},"6Hfg":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("FhB9")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="SwapRightOutlined";var n=v.forwardRef(o);D.default=n},"6Ic6":function(k,D,i){var y=i("bYtY"),p=y.each,S=i("4fz+"),v=i("iRjW"),m=i("Yl7c"),f=i("4NO4"),d=i("IwbS"),u=i("9H2F"),o=u.createTask,n=i("zM3Q"),t=f.makeInner(),a=n();function e(){this.group=new S,this.uid=v.getUID("viewChart"),this.renderTask=o({plan:c,reset:h}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(b,w){},render:function(b,w,x,T){},highlight:function(b,w,x,T){s(b.getData(),T,"emphasis")},downplay:function(b,w,x,T){s(b.getData(),T,"normal")},remove:function(b,w){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,w,x,T){this.render(b,w,x,T)};function r(b,w,x){if(b&&(b.trigger(w,x),b.isGroup&&!d.isHighDownDispatcher(b)))for(var T=0,_=b.childCount();T<_;T++)r(b.childAt(T),w,x)}function s(b,w,x){var T=f.queryDataIndex(b,w),_=w&&w.highlightKey!=null?d.getHighlightDigit(w.highlightKey):null;T!=null?p(f.normalizeToArray(T),function(E){r(b.getItemGraphicEl(E),x,_)}):b.eachItemGraphicEl(function(E){r(E,x,_)})}m.enableClassExtend(e,["dispose"]),m.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(b,w){t(b).updateMethod=w};function c(b){return a(b.model)}function h(b){var w=b.model,x=b.ecModel,T=b.api,_=b.payload,E=w.pipelineContext.progressiveRender,C=b.view,I=_&&t(_).updateMethod,O=E?"incrementalPrepareRender":I&&C[I]?I:"render";return O!=="render"&&C[O](w,x,T,_),g[O]}var g={incrementalPrepareRender:{progress:function(b,w){w.view.incrementalRender(b,w.model,w.ecModel,w.api,w.payload)}},render:{forceFirstProgress:!0,progress:function(b,w){w.view.render(w.model,w.ecModel,w.api,w.payload)}}},A=e;k.exports=A},"6MrE":function(k,D,i){},"6Qwc":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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"};D.default=y},"6SEX":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("qWUW"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"6UJt":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("v56E"),v=i.n(S),m=i("R9oj"),f=i("5NDa")},"6VBw":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("ODXe"),S=i("rePB"),v=i("Ff2n"),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),u=i("Pw59"),o=i("Qi1f"),n=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function a(b){var w=b.primaryColor,x=b.secondaryColor;t.primaryColor=w,t.secondaryColor=x||Object(o.b)(w),t.calculated=!!x}function e(){return Object(y.a)({},t)}var l=function(w){var x=w.icon,T=w.className,_=w.onClick,E=w.style,C=w.primaryColor,I=w.secondaryColor,O=Object(v.a)(w,n),F=t;if(C&&(F={primaryColor:C,secondaryColor:I||Object(o.b)(C)}),Object(o.f)(),Object(o.g)(Object(o.c)(x),"icon should be icon definiton, but got ".concat(x)),!Object(o.c)(x))return null;var R=x;return R&&typeof R.icon=="function"&&(R=Object(y.a)(Object(y.a)({},R),{},{icon:R.icon(F.primaryColor,F.secondaryColor)})),Object(o.a)(R.icon,"svg-".concat(R.name),Object(y.a)({className:T,onClick:_,style:E,"data-icon":R.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},O))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=a;var r=l;function s(b){var w=Object(o.d)(b),x=Object(p.a)(w,2),T=x[0],_=x[1];return r.setTwoToneColors({primaryColor:T,secondaryColor:_})}function c(){var b=r.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];s("#1890ff");var g=m.forwardRef(function(b,w){var x,T=b.className,_=b.icon,E=b.spin,C=b.rotate,I=b.tabIndex,O=b.onClick,F=b.twoToneColor,R=Object(v.a)(b,h),B=m.useContext(u.a),P=B.prefixCls,X=P===void 0?"anticon":P,M=B.rootClassName,z=d()(M,X,(x={},Object(S.a)(x,"".concat(X,"-").concat(_.name),!!_.name),Object(S.a)(x,"".concat(X,"-spin"),!!E||_.name==="loading"),x),T),W=I;W===void 0&&O&&(W=-1);var H=C?{msTransform:"rotate(".concat(C,"deg)"),transform:"rotate(".concat(C,"deg)")}:void 0,V=Object(o.d)(F),Q=Object(p.a)(V,2),G=Q[0],ee=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},R),{},{ref:w,tabIndex:W,onClick:O,className:z}),m.createElement(r,{icon:_,primaryColor:G,secondaryColor:ee,style:H}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=s;var A=D.a=g},"6cGi":function(k,D,i){"use strict";i.d(D,"a",function(){return f});var y=i("ODXe"),p=i("mBDr"),S=i("TNol"),v=i("dm2S");function m(d){return d!==void 0}function f(d,u){var o=u||{},n=o.defaultValue,t=o.value,a=o.onChange,e=o.postState,l=Object(v.a)(function(){return m(t)?t:m(n)?typeof n=="function"?n():n:typeof d=="function"?d():d}),r=Object(y.a)(l,2),s=r[0],c=r[1],h=t!==void 0?t:s,g=e?e(h):h,A=Object(p.a)(a),b=Object(v.a)([h]),w=Object(y.a)(b,2),x=w[0],T=w[1];Object(S.b)(function(){var E=x[0];s!==E&&A(s,E)},[x]),Object(S.b)(function(){m(t)||c(t)},[t]);var _=Object(p.a)(function(E,C){c(E,C),T([h],C)});return[g,_]}},"6fms":function(k,D,i){var y=i("SUKs"),p=i("06Qe"),S=i("bYtY"),v=S.each;function m(o){return parseInt(o,10)}function f(o,n){p.initVML(),this.root=o,this.storage=n;var t=document.createElement("div"),a=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",a.style.cssText="position:absolute;left:0;top:0;",o.appendChild(t),this._vmlRoot=a,this._vmlViewport=t,this.resize();var e=n.delFromStorage,l=n.addToStorage;n.delFromStorage=function(r){e.call(n,r),r&&(r.onRemove&&r.onRemove(a))},n.addToStorage=function(r){r.onAdd&&r.onAdd(a),l.call(n,r)},this._firstPaint=!0}f.prototype={constructor:f,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},refresh:function(){var n=this.storage.getDisplayList(!0,!0);this._paintList(n)},_paintList:function(n){for(var t=this._vmlRoot,a=0;a<n.length;a++){var e=n[a];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(n,t){var n=n==null?this._getWidth():n,t=t==null?this._getHeight():t;if(this._width!==n||this._height!==t){this._width=n,this._height=t;var a=this._vmlViewport.style;a.width=n+"px",a.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 n=this.root,t=n.currentStyle;return(n.clientWidth||m(t.width))-m(t.paddingLeft)-m(t.paddingRight)|0},_getHeight:function(){var n=this.root,t=n.currentStyle;return(n.clientHeight||m(t.height))-m(t.paddingTop)-m(t.paddingBottom)|0}};function d(o){return function(){y('In IE8.0 VML mode painter not support method "'+o+'"')}}v(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(o){f.prototype[o]=d(o)});var u=f;k.exports=u},"6r85":function(k,D,i){var y=i("bYtY");function p(S){if(!S||!y.isArray(S.series))return;y.each(S.series,function(v){y.isObject(v)&&v.type==="k"&&(v.type="candlestick")})}k.exports=p},"6sVZ":function(k,D){var i=Object.prototype;function y(p){var S=p&&p.constructor,v=typeof S=="function"&&S.prototype||i;return p===v}k.exports=y},"6uqw":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("ItGF"),v=i("YOMW"),m=i("XxSj"),f=i("K4ya"),d=i("4NO4"),u=i("OELB"),o=m.mapVisual,n=m.eachVisual,t=p.isArray,a=p.each,e=u.asc,l=u.linearMap,r=p.noop,s=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,A){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(h,A)},optionUpdated:function(h,g){var A=this.option;S.canvasSupported||(A.realtime=!1),!g&&f.replaceVisualOption(A,h,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(h){var g=this.stateList;h=p.bind(h,this),this.controllerVisuals=f.createVisualMappings(this.option.controller,g,h),this.targetVisuals=f.createVisualMappings(this.option.target,g,h)},getTargetSeriesIndices:function(){var h=this.option.seriesIndex,g=[];return h==null||h==="all"?this.ecModel.eachSeries(function(A,b){g.push(b)}):g=d.normalizeToArray(h),g},eachTargetSeries:function(h,g){p.each(this.getTargetSeriesIndices(),function(A){h.call(g,this.ecModel.getSeriesByIndex(A))},this)},isTargetSeries:function(h){var g=!1;return this.eachTargetSeries(function(A){A===h&&(g=!0)}),g},formatValueText:function(h,g,A){var b=this.option,w=b.precision,x=this.dataBound,T=b.formatter,_,E;if(A=A||["<",">"],p.isArray(h)&&(h=h.slice(),_=!0),E=g?h:_?[C(h[0]),C(h[1])]:C(h),p.isString(T))return T.replace("{value}",_?E[0]:E).replace("{value2}",_?E[1]:E);if(p.isFunction(T))return _?T(h[0],h[1]):T(h);if(_)return h[0]===x[0]?A[0]+" "+E[1]:h[1]===x[1]?A[1]+" "+E[0]:E[0]+" - "+E[1];return E;function C(I){return I===x[0]?"min":I===x[1]?"max":(+I).toFixed(Math.min(w,20))}},resetExtent:function(){var h=this.option,g=e([h.min,h.max]);this._dataExtent=g},getDataDimension:function(h){var g=this.option.dimension,A=h.dimensions;if(g==null&&!A.length)return;if(g!=null)return h.getDimension(g);for(var b=h.dimensions,w=b.length-1;w>=0;w--){var x=b[w],T=h.getDimensionInfo(x);if(!T.isCalculationCoord)return x}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var h=this.ecModel,g=this.option,A={inRange:g.inRange,outOfRange:g.outOfRange},b=g.target||(g.target={}),w=g.controller||(g.controller={});p.merge(b,A),p.merge(w,A);var x=this.isCategory();T.call(this,b),T.call(this,w),_.call(this,b,"inRange","outOfRange"),E.call(this,w);function T(C){t(g.color)&&!C.inRange&&(C.inRange={color:g.color.slice().reverse()}),C.inRange=C.inRange||{color:h.get("gradientColor")},a(this.stateList,function(I){var O=C[I];if(p.isString(O)){var F=v.get(O,"active",x);F?(C[I]={},C[I][O]=F):delete C[I]}},this)}function _(C,I,O){var F=C[I],R=C[O];F&&!R&&(R=C[O]={},a(F,function(B,P){if(!m.isValidType(P))return;var X=v.get(P,"inactive",x);X!=null&&(R[P]=X,P==="color"&&!R.hasOwnProperty("opacity")&&!R.hasOwnProperty("colorAlpha")&&(R.opacity=[0,0]))}))}function E(C){var I=(C.inRange||{}).symbol||(C.outOfRange||{}).symbol,O=(C.inRange||{}).symbolSize||(C.outOfRange||{}).symbolSize,F=this.get("inactiveColor");a(this.stateList,function(R){var B=this.itemSize,P=C[R];P||(P=C[R]={color:x?F:[F]}),P.symbol==null&&(P.symbol=I&&p.clone(I)||(x?"roundRect":["roundRect"])),P.symbolSize==null&&(P.symbolSize=O&&p.clone(O)||(x?B[0]:[B[0],B[0]])),P.symbol=o(P.symbol,function(z){return z==="none"||z==="square"?"roundRect":z});var X=P.symbolSize;if(X!=null){var M=-Infinity;n(X,function(z){z>M&&(M=z)}),P.symbolSize=o(X,function(z){return l(z,[0,M],[0,B[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:r,getValueState:r,getVisualMeta:r}),c=s;k.exports=c},"6usn":function(k,D,i){var y=i("bYtY");function p(v,m){return y.map(["Radius","Angle"],function(f,d){var u=this["get"+f+"Axis"](),o=m[d],n=v[d]/2,t="dataTo"+f,a=u.type==="category"?u.getBandWidth():Math.abs(u[t](o-n)-u[t](o+n));return f==="Angle"&&(a=a*Math.PI/180),a},this)}function S(v){var m=v.getRadiusAxis(),f=v.getAngleAxis(),d=m.getExtent();return d[0]>d[1]&&d.reverse(),{coordSys:{type:"polar",cx:v.cx,cy:v.cy,r:d[1],r0:d[0]},api:{coord:y.bind(function(u){var o=m.dataToRadius(u[0]),n=f.dataToAngle(u[1]),t=v.coordToPoint([o,n]);return t.push(o,n*Math.PI/180),t}),size:y.bind(p,v)}}}k.exports=S},"6xvX":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("V7ic"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"711d":function(k,D){function i(y){return function(p){return p==null?void 0:p[y]}}k.exports=i},"72pK":function(k,D){function i(S,v,m,f,d,u){S=S||0;var o=m[1]-m[0];if(d!=null&&(d=p(d,[0,o])),u!=null&&(u=Math.max(u,d!=null?d:0)),f==="all"){var n=Math.abs(v[1]-v[0]);n=p(n,[0,o]),d=u=p(n,[d,u]),f=0}v[0]=p(v[0],m),v[1]=p(v[1],m);var t=y(v,f);v[f]+=S;var a=d||0,e=m.slice();t.sign<0?e[0]+=a:e[1]-=a,v[f]=p(v[f],e);var l=y(v,f);d!=null&&(l.sign!==t.sign||l.span<d)&&(v[1-f]=v[f]+t.sign*d);var l=y(v,f);return u!=null&&l.span>u&&(v[1-f]=v[f]+l.sign*u),v}function y(S,v){var m=S[v]-S[1-v];return{span:Math.abs(m),sign:m>0?-1:m<0?1:v?-1:1}}function p(S,v){return Math.min(v[1]!=null?v[1]:Infinity,Math.max(v[0]!=null?v[0]:-Infinity,S))}k.exports=i},"75ce":function(k,D,i){var y=i("ProS");i("IXuL"),i("8X+K");var p=i("f5Yq"),S=i("h8O9"),v=i("/d5a");i("Ae16"),y.registerVisual(p("line","circle","line")),y.registerLayout(S("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,v("line"))},"75ev":function(k,D,i){var y=i("ProS");i("IWNH"),i("bNin"),i("v5uJ");var p=i("f5Yq"),S=i("yik8");y.registerVisual(p("tree","circle")),y.registerLayout(S)},"77Zs":function(k,D,i){var y=i("Xi7e");function p(){this.__data__=new y,this.size=0}k.exports=p},"7AJT":function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,u,o){p.call(this,m,f,d),this.type=u||"value",this.position=o||"bottom"};S.prototype={constructor:S,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},getGlobalExtent:function(m){var f=this.getExtent();return f[0]=this.toGlobalCoord(f[0]),f[1]=this.toGlobalCoord(f[1]),m&&f[0]>f[1]&&f.reverse(),f},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(m,f){return this.coordToData(this.toLocalCoord(m[this.dim==="x"?0:1]),f)},toLocalCoord:null,toGlobalCoord:null},y.inherits(S,p);var v=S;k.exports=v},"7Cbv":function(k,D,i){"use strict";var y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),p=new Uint8Array(16);function S(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(p)}var v=/^(?:[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"&&v.test(e)}for(var f=m,d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));function o(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(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(!f(r))throw TypeError("Stringified UUID is invalid");return r}var n=o;function t(e,l,r){e=e||{};var s=e.random||(e.rng||S)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,l){r=r||0;for(var c=0;c<16;++c)l[r+c]=s[c];return l}return n(s)}var a=D.a=t},"7DRL":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=S.createHashMap,m=S.isString,f=S.isArray,d=S.each,u=S.assert,o=i("MEGo"),n=o.parseXML,t=v(),a={registerMap:function(l,r,s){var c;return f(r)?c=r:r.svg?c=[{type:"svg",source:r.svg,specialAreas:r.specialAreas}]:(r.geoJson&&!r.features&&(s=r.specialAreas,r=r.geoJson),c=[{type:"geoJSON",source:r,specialAreas:s}]),d(c,function(h){var g=h.type;g==="geoJson"&&(g=h.type="geoJSON");var A=e[g];A(h)}),t.set(l,c)},retrieveMap:function(l){return t.get(l)}},e={geoJSON:function(l){var r=l.source;l.geoJSON=m(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r},svg:function(l){l.svgXML=n(l.source)}};k.exports=a},"7G+c":function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.isTypedArray,v=i("Yl7c"),m=v.enableClassCheck,f=i("k9D9"),d=f.SOURCE_FORMAT_ORIGINAL,u=f.SERIES_LAYOUT_BY_COLUMN,o=f.SOURCE_FORMAT_UNKNOWN,n=f.SOURCE_FORMAT_TYPED_ARRAY,t=f.SOURCE_FORMAT_KEYED_COLUMNS;function a(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===t?{}:[]),this.sourceFormat=l.sourceFormat||o,this.seriesLayoutBy=l.seriesLayoutBy||u,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&p(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}a.seriesDataToSource=function(l){return new a({data:l,sourceFormat:S(l)?n:d,fromDataset:!1})},m(a);var e=a;k.exports=e},"7GkX":function(k,D,i){var y=i("b80T"),p=i("A90E"),S=i("MMmD");function v(m){return S(m)?y(m):p(m)}k.exports=v},"7Kak":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("KPFz"),v=i.n(S)},"7Phj":function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=p.parsePercent,v=y.each;function m(o){var n=f(o);v(n,function(t){var a=t.seriesModels;if(!a.length)return;d(t),v(a,function(e,l){u(e,t.boxOffsetList[l],t.boxWidthList[l])})})}function f(o){var n=[],t=[];return o.eachSeriesByType("boxplot",function(a){var e=a.getBaseAxis(),l=y.indexOf(t,e);l<0&&(l=t.length,t[l]=e,n[l]={axis:e,seriesModels:[]}),n[l].seriesModels.push(a)}),n}function d(o){var n,t=o.axis,a=o.seriesModels,e=a.length,l=o.boxWidthList=[],r=o.boxOffsetList=[],s=[],c;if(t.type==="category")c=t.getBandWidth();else{var h=0;v(a,function(x){h=Math.max(h,x.getData().count())}),n=t.getExtent(),Math.abs(n[1]-n[0])/h}v(a,function(x){var T=x.get("boxWidth");y.isArray(T)||(T=[T,T]),s.push([S(T[0],c)||0,S(T[1],c)||0])});var g=c*.8-2,A=g/e*.3,b=(g-A*(e-1))/e,w=b/2-g/2;v(a,function(x,T){r.push(w),w+=A+b,l.push(Math.min(Math.max(b,s[T][0]),s[T][1]))})}function u(o,n,t){var a=o.coordinateSystem,e=o.getData(),l=t/2,r=o.get("layout")==="horizontal"?0:1,s=1-r,c=["x","y"],h=e.mapDimension(c[r]),g=e.mapDimension(c[s],!0);if(h==null||g.length<5)return;for(var A=0;A<e.count();A++){var b=e.get(h,A),w=I(b,g[2],A),x=I(b,g[0],A),T=I(b,g[1],A),_=I(b,g[3],A),E=I(b,g[4],A),C=[];O(C,T,0),O(C,_,1),C.push(x,T,E,_),F(C,x),F(C,E),F(C,w),e.setItemLayout(A,{initBaseline:w[s],ends:C})}function I(R,B,P){var X=e.get(B,P),M=[];M[r]=R,M[s]=X;var z;return isNaN(R)||isNaN(X)?z=[NaN,NaN]:(z=a.dataToPoint(M),z[r]+=n),z}function O(R,B,P){var X=B.slice(),M=B.slice();X[r]+=l,M[r]-=l,P?R.push(X,M):R.push(M,X)}function F(R,B){var P=B.slice(),X=B.slice();P[r]-=l,X[r]+=l,R.push(P,X)}}k.exports=m},"7SHv":function(k,D,i){var y=i("LPTA"),p=y.devicePixelRatio,S=i("bYtY"),v=i("SUKs"),m=i("mFDi"),f=i("BPZU"),d=i("Xmg4"),u=i("mLcG"),o=i("Dagg"),n=i("ItGF"),t=1e5,a=314159,e=.01,l=.001;function r(_){return parseInt(_,10)}function s(_){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(_,E,C){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),h.width=E,h.height=C,!c.intersect(h)}function A(_,E){if(_===E)return!1;if(!_||!E||_.length!==E.length)return!0;for(var C=0;C<_.length;C++)if(_[C]!==E[C])return!0;return!1}function b(_,E){for(var C=0;C<_.length;C++){var I=_[C];I.setTransform(E),E.beginPath(),I.buildPath(E,I.shape),E.clip(),I.restoreTransform(E)}}function w(_,E){var C=document.createElement("div");return C.style.cssText=["position:relative","width:"+_+"px","height:"+E+"px","padding:0","margin:0","border-width:0"].join(";")+";",C}var x=function(E,C,I){this.type="canvas";var O=!E.nodeName||E.nodeName.toUpperCase()==="CANVAS";this._opts=I=S.extend({},I||{}),this.dpr=I.devicePixelRatio||p,this._singleCanvas=O,this.root=E;var F=E.style;F&&(F["-webkit-tap-highlight-color"]="transparent",F["-webkit-user-select"]=F["user-select"]=F["-webkit-touch-callout"]="none",E.innerHTML=""),this.storage=C;var R=this._zlevelList=[],B=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,O){var X=E.width,M=E.height;I.width!=null&&(X=I.width),I.height!=null&&(M=I.height),this.dpr=I.devicePixelRatio||1,E.width=X*this.dpr,E.height=M*this.dpr,this._width=X,this._height=M;var z=new d(E,this,this.dpr);z.__builtin__=!0,z.initContext(),B[a]=z,z.zlevel=a,R.push(a),this._domRoot=E}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=w(this._width,this._height);E.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};x.prototype={constructor:x,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var E=this.getViewportRoot();if(E)return{offsetLeft:E.offsetLeft||0,offsetTop:E.offsetTop||0}},refresh:function(E){var C=this.storage.getDisplayList(!0),I=this._zlevelList;this._redrawId=Math.random(),this._paintList(C,E,this._redrawId);for(var O=0;O<I.length;O++){var F=I[O],R=this._layers[F];if(!R.__builtin__&&R.refresh){var B=O===0?this._backgroundColor:null;R.refresh(B)}}return this.refreshHover(),this},addHover:function(E,C){if(E.__hoverMir)return;var I=new E.constructor({style:E.style,shape:E.shape,z:E.z,z2:E.z2,silent:E.silent});return I.__from=E,E.__hoverMir=I,C&&I.setStyle(C),this._hoverElements.push(I),I},removeHover:function(E){var C=E.__hoverMir,I=this._hoverElements,O=S.indexOf(I,C);O>=0&&I.splice(O,1),E.__hoverMir=null},clearHover:function(E){for(var C=this._hoverElements,I=0;I<C.length;I++){var O=C[I].__from;O&&(O.__hoverMir=null)}C.length=0},refreshHover:function(){var E=this._hoverElements,C=E.length,I=this._hoverlayer;if(I&&I.clear(),!C)return;f(E,this.storage.displayableSortFunc),I||(I=this._hoverlayer=this.getLayer(t));var O={};I.ctx.save();for(var F=0;F<C;){var R=E[F],B=R.__from;if(!(B&&B.__zr)){E.splice(F,1),B.__hoverMir=null,C--;continue}F++,B.invisible||(R.transform=B.transform,R.invTransform=B.invTransform,R.__clipPaths=B.__clipPaths,this._doPaintEl(R,I,!0,O))}I.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(E,C,I){if(this._redrawId!==I)return;C=C||!1,this._updateLayerStatus(E);var O=this._doPaintList(E,C);if(this._needsManuallyCompositing&&this._compositeManually(),!O){var F=this;u(function(){F._paintList(E,C,I)})}},_compositeManually:function(){var E=this.getLayer(a).ctx,C=this._domRoot.width,I=this._domRoot.height;E.clearRect(0,0,C,I),this.eachBuiltinLayer(function(O){O.virtual&&E.drawImage(O.dom,0,0,C,I)})},_doPaintList:function(E,C){for(var I=[],O=0;O<this._zlevelList.length;O++){var F=this._zlevelList[O],R=this._layers[F];R.__builtin__&&R!==this._hoverlayer&&(R.__dirty||C)&&I.push(R)}for(var B=!0,P=0;P<I.length;P++){var R=I[P],X=R.ctx,M={};X.save();var z=C?R.__startIndex:R.__drawIndex,W=!C&&R.incremental&&Date.now,H=W&&Date.now(),V=R.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(R.__startIndex===R.__endIndex)R.clear(!1,V);else if(z===R.__startIndex){var Q=E[z];(!Q.incremental||!Q.notClear||C)&&R.clear(!1,V)}z===-1&&(console.error("For some unknown reason. drawIndex is -1"),z=R.__startIndex);for(var G=z;G<R.__endIndex;G++){var ee=E[G];if(this._doPaintEl(ee,R,C,M),ee.__dirty=ee.__dirtyText=!1,W){var q=Date.now()-H;if(q>15)break}}R.__drawIndex=G,R.__drawIndex<R.__endIndex&&(B=!1),M.prevElClipPaths&&X.restore(),X.restore()}return n.wxa&&S.each(this._layers,function(se){se&&se.ctx&&se.ctx.draw&&se.ctx.draw()}),B},_doPaintEl:function(E,C,I,O){var F=C.ctx,R=E.transform;if((C.__dirty||I)&&!E.invisible&&E.style.opacity!==0&&!(R&&!R[0]&&!R[3])&&!(E.culling&&g(E,this._width,this._height))){var B=E.__clipPaths,P=O.prevElClipPaths;(!P||A(B,P))&&(P&&(F.restore(),O.prevElClipPaths=null,O.prevEl=null),B&&(F.save(),b(B,F),O.prevElClipPaths=B)),E.beforeBrush&&E.beforeBrush(F),E.brush(F,O.prevEl||null),O.prevEl=E,E.afterBrush&&E.afterBrush(F)}},getLayer:function(E,C){this._singleCanvas&&!this._needsManuallyCompositing&&(E=a);var I=this._layers[E];return I||(I=new d("zr_"+E,this,this.dpr),I.zlevel=E,I.__builtin__=!0,this._layerConfig[E]?S.merge(I,this._layerConfig[E],!0):this._layerConfig[E-e]&&S.merge(I,this._layerConfig[E-e],!0),C&&(I.virtual=C),this.insertLayer(E,I),I.initContext()),I},insertLayer:function(E,C){var I=this._layers,O=this._zlevelList,F=O.length,R=null,B=-1,P=this._domRoot;if(I[E]){v("ZLevel "+E+" has been used already");return}if(!s(C)){v("Layer of zlevel "+E+" is not valid");return}if(F>0&&E>O[0]){for(B=0;B<F-1&&!(O[B]<E&&O[B+1]>E);B++);R=I[O[B]]}if(O.splice(B+1,0,E),I[E]=C,!C.virtual)if(R){var X=R.dom;X.nextSibling?P.insertBefore(C.dom,X.nextSibling):P.appendChild(C.dom)}else P.firstChild?P.insertBefore(C.dom,P.firstChild):P.appendChild(C.dom)},eachLayer:function(E,C){var I=this._zlevelList,O,F;for(F=0;F<I.length;F++)O=I[F],E.call(C,this._layers[O],O)},eachBuiltinLayer:function(E,C){var I=this._zlevelList,O,F,R;for(R=0;R<I.length;R++)F=I[R],O=this._layers[F],O.__builtin__&&E.call(C,O,F)},eachOtherLayer:function(E,C){var I=this._zlevelList,O,F,R;for(R=0;R<I.length;R++)F=I[R],O=this._layers[F],O.__builtin__||E.call(C,O,F)},getLayers:function(){return this._layers},_updateLayerStatus:function(E){this.eachBuiltinLayer(function(M,z){M.__dirty=M.__used=!1});function C(M){F&&(F.__endIndex!==M&&(F.__dirty=!0),F.__endIndex=M)}if(this._singleCanvas)for(var I=1;I<E.length;I++){var O=E[I];if(O.zlevel!==E[I-1].zlevel||O.incremental){this._needsManuallyCompositing=!0;break}}for(var F=null,R=0,B,I=0;I<E.length;I++){var O=E[I],P=O.zlevel,X;B!==P&&(B=P,R=0),O.incremental?(X=this.getLayer(P+l,this._needsManuallyCompositing),X.incremental=!0,R=1):X=this.getLayer(P+(R>0?e:0),this._needsManuallyCompositing),X.__builtin__||v("ZLevel "+P+" has been used by unkown layer "+X.id),X!==F&&(X.__used=!0,X.__startIndex!==I&&(X.__dirty=!0),X.__startIndex=I,X.incremental?X.__drawIndex=-1:X.__drawIndex=I,C(I),F=X),O.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=I))}C(I),this.eachBuiltinLayer(function(M,z){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(E){E.clear()},setBackgroundColor:function(E){this._backgroundColor=E},configLayer:function(E,C){if(C){var I=this._layerConfig;I[E]?S.merge(I[E],C,!0):I[E]=C;for(var O=0;O<this._zlevelList.length;O++){var F=this._zlevelList[O];if(F===E||F===E+e){var R=this._layers[F];S.merge(R,I[E],!0)}}}},delLayer:function(E){var C=this._layers,I=this._zlevelList,O=C[E];if(!O)return;O.dom.parentNode.removeChild(O.dom),delete C[E],I.splice(S.indexOf(I,E),1)},resize:function(E,C){if(this._domRoot.style){var I=this._domRoot;I.style.display="none";var O=this._opts;if(E!=null&&(O.width=E),C!=null&&(O.height=C),E=this._getSize(0),C=this._getSize(1),I.style.display="",this._width!==E||C!==this._height){I.style.width=E+"px",I.style.height=C+"px";for(var F in this._layers)this._layers.hasOwnProperty(F)&&this._layers[F].resize(E,C);S.each(this._progressiveLayers,function(R){R.resize(E,C)}),this.refresh(!0)}this._width=E,this._height=C}else{if(E==null||C==null)return;this._width=E,this._height=C,this.getLayer(a).resize(E,C)}return this},clearLayer:function(E){var C=this._layers[E];C&&C.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(E){if(E=E||{},this._singleCanvas&&!this._compositeManually)return this._layers[a].dom;var C=new d("image",this,E.pixelRatio||this.dpr);if(C.initContext(),C.clear(!1,E.backgroundColor||this._backgroundColor),E.pixelRatio<=this.dpr){this.refresh();var I=C.dom.width,O=C.dom.height,F=C.ctx;this.eachLayer(function(M){M.__builtin__?F.drawImage(M.dom,0,0,I,O):M.renderToCanvas&&(C.ctx.save(),M.renderToCanvas(C.ctx),C.ctx.restore())})}else for(var R={},B=this.storage.getDisplayList(!0),P=0;P<B.length;P++){var X=B[P];this._doPaintEl(X,C,!0,R)}return C.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(E){var C=this._opts,I=["width","height"][E],O=["clientWidth","clientHeight"][E],F=["paddingLeft","paddingTop"][E],R=["paddingRight","paddingBottom"][E];if(C[I]!=null&&C[I]!=="auto")return parseFloat(C[I]);var B=this.root,P=document.defaultView.getComputedStyle(B);return(B[O]||r(P[I])||r(B.style[I]))-(r(P[F])||0)-(r(P[R])||0)|0},pathToImage:function(E,C){C=C||this.dpr;var I=document.createElement("canvas"),O=I.getContext("2d"),F=E.getBoundingRect(),R=E.style,B=R.shadowBlur*C,P=R.shadowOffsetX*C,X=R.shadowOffsetY*C,M=R.hasStroke()?R.lineWidth:0,z=Math.max(M/2,-P+B),W=Math.max(M/2,P+B),H=Math.max(M/2,-X+B),V=Math.max(M/2,X+B),Q=F.width+z+W,G=F.height+H+V;I.width=Q*C,I.height=G*C,O.scale(C,C),O.clearRect(0,0,Q,G),O.dpr=C;var ee={position:E.position,rotation:E.rotation,scale:E.scale};E.position=[z-F.x,H-F.y],E.rotation=0,E.scale=[1,1],E.updateTransform(),E&&E.brush(O);var q=o,se=new q({style:{x:0,y:0,image:I}});return ee.position!=null&&(se.position=E.position=ee.position),ee.rotation!=null&&(se.rotation=E.rotation=ee.rotation),ee.scale!=null&&(se.scale=E.scale=ee.scale),se}};var T=x;k.exports=T},"7a+S":function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("YXkt"),v=i("4NO4"),m=p.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,o){this._data,this._names,this.mergeDefaultAndTheme(d,o),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||[],o=d.axisType,n=this._names=[];if(o==="category"){var t=[];y.each(u,function(l,r){var s=v.getDataItemValue(l),c;y.isObject(l)?(c=y.clone(l),c.value=r):c=r,t.push(c),!y.isString(s)&&(s==null||isNaN(s))&&(s=""),n.push(s+"")}),u=t}var a={category:"ordinal",time:"time"}[o]||"number",e=this._data=new S([{name:"value",type:a}],this);e.initData(u,n)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),f=m;k.exports=f},"7aKB":function(k,D,i){var y=i("bYtY"),p=i("6GrX"),S=i("OELB");function v(w){return isNaN(w)?"-":(w=(w+"").split("."),w[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(w.length>1?"."+w[1]:""))}function m(w,x){return w=(w||"").toLowerCase().replace(/-(.)/g,function(T,_){return _.toUpperCase()}),x&&w&&(w=w.charAt(0).toUpperCase()+w.slice(1)),w}var f=y.normalizeCssArray,d=/([&<>"'])/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function o(w){return w==null?"":(w+"").replace(d,function(x,T){return u[T]})}var n=["a","b","c","d","e","f","g"],t=function(w,x){return"{"+w+(x==null?"":x)+"}"};function a(w,x,T){y.isArray(x)||(x=[x]);var _=x.length;if(!_)return"";for(var E=x[0].$vars||[],C=0;C<E.length;C++){var I=n[C];w=w.replace(t(I),t(I,0))}for(var O=0;O<_;O++)for(var F=0;F<E.length;F++){var R=x[O][E[F]];w=w.replace(t(n[F],O),T?o(R):R)}return w}function e(w,x,T){return y.each(x,function(_,E){w=w.replace("{"+E+"}",T?o(_):_)}),w}function l(w,x){w=y.isString(w)?{color:w,extraCssText:x}:w||{};var T=w.color,_=w.type,x=w.extraCssText,E=w.renderMode||"html",C=w.markerId||"X";return T?E==="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:'+o(T)+";"+(x||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+o(T)+";"+(x||"")+'"></span>':{renderMode:E,content:"{marker"+C+"|} ",style:{color:T}}:""}function r(w,x){return w+="","0000".substr(0,x-w.length)+w}function s(w,x,T){(w==="week"||w==="month"||w==="quarter"||w==="half-year"||w==="year")&&(w=`MM-dd
yyyy`);var _=S.parseDate(x),E=T?"UTC":"",C=_["get"+E+"FullYear"](),I=_["get"+E+"Month"]()+1,O=_["get"+E+"Date"](),F=_["get"+E+"Hours"](),R=_["get"+E+"Minutes"](),B=_["get"+E+"Seconds"](),P=_["get"+E+"Milliseconds"]();return w=w.replace("MM",r(I,2)).replace("M",I).replace("yyyy",C).replace("yy",C%100).replace("dd",r(O,2)).replace("d",O).replace("hh",r(F,2)).replace("h",F).replace("mm",r(R,2)).replace("m",R).replace("ss",r(B,2)).replace("s",B).replace("SSS",r(P,3)),w}function c(w){return w&&w.charAt(0).toUpperCase()+w.substr(1)}var h=p.truncateText;function g(w){return p.getBoundingRect(w.text,w.font,w.textAlign,w.textVerticalAlign,w.textPadding,w.textLineHeight,w.rich,w.truncate)}function A(w,x,T,_,E,C,I,O){return p.getBoundingRect(w,x,T,_,E,O,C,I)}function b(w,x){if(x==="_blank"||x==="blank"){var T=window.open();T.opener=null,T.location=w}else window.open(w,x)}D.addCommas=v,D.toCamelCase=m,D.normalizeCssArray=f,D.encodeHTML=o,D.formatTpl=a,D.formatTplSimple=e,D.getTooltipMarker=l,D.formatTime=s,D.capitalFirst=c,D.truncateText=h,D.getTextBoundingRect=g,D.getTextRect=A,D.windowOpen=b},"7bkD":function(k,D,i){var y=i("bYtY");function p(S,v){v=v||{};var m=S.coordinateSystem,f=S.axis,d={},u=f.position,o=f.orient,n=m.getRect(),t=[n.x,n.x+n.width,n.y,n.y+n.height],a={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};d.position=[o==="vertical"?a.vertical[u]:t[0],o==="horizontal"?a.horizontal[u]:t[3]];var e={horizontal:0,vertical:1};d.rotation=Math.PI/2*e[o];var l={top:-1,bottom:1,right:1,left:-1};d.labelDirection=d.tickDirection=d.nameDirection=l[u],S.get("axisTick.inside")&&(d.tickDirection=-d.tickDirection),y.retrieve(v.labelInside,S.get("axisLabel.inside"))&&(d.labelDirection=-d.labelDirection);var r=v.rotate;return r==null&&(r=S.get("axisLabel.rotate")),d.labelRotation=u==="top"?-r:r,d.z2=1,d}D.layout=p},"7fqy":function(k,D){function i(y){var p=-1,S=Array(y.size);return y.forEach(function(v,m){S[++p]=[m,v]}),S}k.exports=i},"7hqr":function(k,D,i){var y=i("bYtY"),p=y.each,S=y.isString;function v(d,u,o){o=o||{};var n=o.byIndex,t=o.stackedCoordDimension,a=!!(d&&d.get("stack")),e,l,r,s;if(p(u,function(A,b){S(A)&&(u[b]=A={name:A}),a&&!A.isExtraCoord&&(!n&&!e&&A.ordinalMeta&&(e=A),!l&&A.type!=="ordinal"&&A.type!=="time"&&(!t||t===A.coordDim)&&(l=A))}),l&&!n&&!e&&(n=!0),l){r="__\0ecstackresult",s="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=l.coordDim,h=l.type,g=0;p(u,function(A){A.coordDim===c&&g++}),u.push({name:r,coordDim:c,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0}),g++,u.push({name:s,coordDim:s,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:n,stackedOverDimension:s,stackResultDimension:r}}function m(d,u){return!!u&&u===d.getCalculationInfo("stackedDimension")}function f(d,u){return m(d,u)?d.getCalculationInfo("stackResultDimension"):u}D.enableDataStack=v,D.isDimensionStacked=m,D.getStackedDimension=f},"7mYs":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),v=i("7aKB"),m=i("OELB"),f={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(o,n,t){var a=this.group;a.removeAll();var e=o.coordinateSystem,l=e.getRangeInfo(),r=e.getOrient();this._renderDayRect(o,l,a),this._renderLines(o,l,r,a),this._renderYearText(o,l,r,a),this._renderMonthText(o,r,a),this._renderWeekText(o,l,r,a)},_renderDayRect:function(o,n,t){for(var a=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),l=a.getCellWidth(),r=a.getCellHeight(),s=n.start.time;s<=n.end.time;s=a.getNextNDay(s,1).time){var c=a.dataToRect([s],!1).tl,h=new S.Rect({shape:{x:c[0],y:c[1],width:l,height:r},cursor:"default",style:e});t.add(h)}},_renderLines:function(o,n,t,a){var e=this,l=o.coordinateSystem,r=o.getModel("splitLine.lineStyle").getLineStyle(),s=o.get("splitLine.show"),c=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=n.start,g=0;h.time<=n.end.time;g++){b(h.formatedDate),g===0&&(h=l.getDateInfo(n.start.y+"-"+n.start.m));var A=h.date;A.setMonth(A.getMonth()+1),h=l.getDateInfo(A)}b(l.getNextNDay(n.end.time,1).formatedDate);function b(w){e._firstDayOfMonth.push(l.getDateInfo(w)),e._firstDayPoints.push(l.dataToRect([w],!1).tl);var x=e._getLinePointsOfOneWeek(o,w,t);e._tlpoints.push(x[0]),e._blpoints.push(x[x.length-1]),s&&e._drawSplitline(x,r,a)}s&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),r,a),s&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),r,a)},_getEdgesPoints:function(o,n,t){var a=[o[0].slice(),o[o.length-1].slice()],e=t==="horizontal"?0:1;return a[0][e]=a[0][e]-n/2,a[1][e]=a[1][e]+n/2,a},_drawSplitline:function(o,n,t){var a=new S.Polyline({z2:20,shape:{points:o},style:n});t.add(a)},_getLinePointsOfOneWeek:function(o,n,t){var a=o.coordinateSystem;n=a.getDateInfo(n);for(var e=[],l=0;l<7;l++){var r=a.getNextNDay(n.time,l),s=a.dataToRect([r.time],!1);e[2*r.day]=s.tl,e[2*r.day+1]=s[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(o,n){return typeof o=="string"&&o?v.formatTplSimple(o,n):typeof o=="function"?o(n):n.nameMap},_yearTextPositionControl:function(o,n,t,a,e){n=n.slice();var l=["center","bottom"];a==="bottom"?(n[1]+=e,l=["center","top"]):a==="left"?n[0]-=e:a==="right"?(n[0]+=e,l=["center","top"]):n[1]-=e;var r=0;return(a==="left"||a==="right")&&(r=Math.PI/2),{rotation:r,position:n,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(o,n,t,a){var e=o.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),r=e.get("position");r||(r=t!=="horizontal"?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,h=(s[0][1]+s[1][1])/2,g=t==="horizontal"?0:1,A={top:[c,s[g][1]],bottom:[c,s[1-g][1]],left:[s[1-g][0],h],right:[s[g][0],h]},b=n.start.y;+n.end.y>+n.start.y&&(b=b+"-"+n.end.y);var w=e.get("formatter"),x={start:n.start.y,end:n.end.y,nameMap:b},T=this._formatterLabel(w,x),_=new S.Text({z2:30});S.setTextStyle(_.style,e,{text:T}),_.attr(this._yearTextPositionControl(_,A[r],t,r,l)),a.add(_)},_monthTextPositionControl:function(o,n,t,a,e){var l="left",r="top",s=o[0],c=o[1];return t==="horizontal"?(c=c+e,n&&(l="center"),a==="start"&&(r="bottom")):(s=s+e,n&&(r="middle"),a==="start"&&(l="right")),{x:s,y:c,textAlign:l,textVerticalAlign:r}},_renderMonthText:function(o,n,t){var a=o.getModel("monthLabel");if(!a.get("show"))return;var e=a.get("nameMap"),l=a.get("margin"),r=a.get("position"),s=a.get("align"),c=[this._tlpoints,this._blpoints];p.isString(e)&&(e=f[e.toUpperCase()]||[]);var h=r==="start"?0:1,g=n==="horizontal"?0:1;l=r==="start"?-l:l;for(var A=s==="center",b=0;b<c[h].length-1;b++){var w=c[h][b].slice(),x=this._firstDayOfMonth[b];if(A){var T=this._firstDayPoints[b];w[g]=(T[g]+c[0][b+1][g])/2}var _=a.get("formatter"),E=e[+x.m-1],C={yyyy:x.y,yy:(x.y+"").slice(2),MM:x.m,M:+x.m,nameMap:E},I=this._formatterLabel(_,C),O=new S.Text({z2:30});p.extend(S.setTextStyle(O.style,a,{text:I}),this._monthTextPositionControl(w,A,n,r,l)),t.add(O)}},_weekTextPositionControl:function(o,n,t,a,e){var l="center",r="middle",s=o[0],c=o[1],h=t==="start";return n==="horizontal"?(s=s+a+(h?1:-1)*e[0]/2,l=h?"right":"left"):(c=c+a+(h?1:-1)*e[1]/2,r=h?"bottom":"top"),{x:s,y:c,textAlign:l,textVerticalAlign:r}},_renderWeekText:function(o,n,t,a){var e=o.getModel("dayLabel");if(!e.get("show"))return;var l=o.coordinateSystem,r=e.get("position"),s=e.get("nameMap"),c=e.get("margin"),h=l.getFirstDayOfWeek();p.isString(s)&&(s=d[s.toUpperCase()]||[]);var g=l.getNextNDay(n.end.time,7-n.lweek).time,A=[l.getCellWidth(),l.getCellHeight()];c=m.parsePercent(c,A[t==="horizontal"?0:1]),r==="start"&&(g=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var b=0;b<7;b++){var w=l.getNextNDay(g,b),x=l.dataToRect([w.time],!1).center,T=b;T=Math.abs((b+h)%7);var _=new S.Text({z2:30});p.extend(S.setTextStyle(_.style,e,{text:s[T]}),this._weekTextPositionControl(x,t,r,c,A)),a.add(_)}}});k.exports=u},"7oTu":function(k,D,i){var y=i("IMiH"),p=i("QBsz"),S=p.applyTransform,v=y.CMD,m=[[],[],[]],f=Math.sqrt,d=Math.atan2;function u(o,n){var t=o.data,a,e,l,r,s,c,h=v.M,g=v.C,A=v.L,b=v.R,w=v.A,x=v.Q;for(l=0,r=0;l<t.length;){a=t[l++],r=l,e=0;switch(a){case h:e=1;break;case A:e=1;break;case g:e=3;break;case x:e=2;break;case w:var T=n[4],_=n[5],E=f(n[0]*n[0]+n[1]*n[1]),C=f(n[2]*n[2]+n[3]*n[3]),I=d(-n[1]/C,n[0]/E);t[l]*=E,t[l++]+=T,t[l]*=C,t[l++]+=_,t[l++]*=E,t[l++]*=C,t[l++]+=I,t[l++]+=I,l+=2,r=l;break;case b:c[0]=t[l++],c[1]=t[l++],S(c,c,n),t[r++]=c[0],t[r++]=c[1],c[0]+=t[l++],c[1]+=t[l++],S(c,c,n),t[r++]=c[0],t[r++]=c[1]}for(s=0;s<e;s++){var c=m[s];c[0]=t[l++],c[1]=t[l++],S(c,c,n),t[r++]=c[0],t[r++]=c[1]}}}k.exports=u},"7pVf":function(k,D,i){var y=i("ProS"),p=i("ZqQs");i("oE7X"),i("OUJF"),i("3X6L"),i("NH9N"),y.registerPreprocessor(p)},"7ph2":function(k,D){function i(S){return S instanceof Array||(S=[S,S]),S}var y="lineStyle.opacity".split("."),p={seriesType:"lines",reset:function(S,v,m){var f=i(S.get("symbol")),d=i(S.get("symbolSize")),u=S.getData();u.setVisual("fromSymbol",f&&f[0]),u.setVisual("toSymbol",f&&f[1]),u.setVisual("fromSymbolSize",d&&d[0]),u.setVisual("toSymbolSize",d&&d[1]),u.setVisual("opacity",S.get(y));function o(n,t){var a=n.getItemModel(t),e=i(a.getShallow("symbol",!0)),l=i(a.getShallow("symbolSize",!0)),r=a.get(y);e[0]&&n.setItemVisual(t,"fromSymbol",e[0]),e[1]&&n.setItemVisual(t,"toSymbol",e[1]),l[0]&&n.setItemVisual(t,"fromSymbolSize",l[0]),l[1]&&n.setItemVisual(t,"toSymbolSize",l[1]),n.setItemVisual(t,"opacity",r)}return{dataEach:u.hasItemOption?o:null}}};k.exports=p},"7uqq":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("AUH6"),f=i("+TT/"),d=i("OELB"),u=i("W4dC"),o=i("7DRL");function n(l,r){var s=l.get("boundingCoords");if(s!=null){var c=s[0],h=s[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(),A,b=l.get("layoutCenter"),w=l.get("layoutSize"),x=r.getWidth(),T=r.getHeight(),_=g.width/g.height*this.aspectScale,E=!1;b&&w&&(b=[d.parsePercent(b[0],x),d.parsePercent(b[1],T)],w=d.parsePercent(w,Math.min(x,T)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(w)&&(E=!0));var C;if(E){var C={};_>1?(C.width=w,C.height=w/_):(C.height=w,C.width=w*_),C.y=b[1]-C.height/2,C.x=b[0]-C.width/2}else A=l.getBoxLayoutParams(),A.aspect=_,C=f.getLayoutRect(A,{width:x,height:T});this.setViewRect(C.x,C.y,C.width,C.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function t(l,r){v.each(r.get("geoCoord"),function(s,c){l.addGeoCoord(c,s)})}var a={dimensions:m.prototype.dimensions,create:function(l,r){var s=[];l.eachComponent("geo",function(h,g){var A=h.get("map"),b=h.get("aspectScale"),w=!0,x=o.retrieveMap(A);x&&x[0]&&x[0].type==="svg"?(b==null&&(b=1),w=!1):b==null&&(b=.75);var T=new m(A+g,A,h.get("nameMap"),w);T.aspectScale=b,T.zoomLimit=h.get("scaleLimit"),s.push(T),t(T,h),h.coordinateSystem=T,T.model=h,T.resize=n,T.resize(h,r)}),l.eachSeries(function(h){var g=h.get("coordinateSystem");if(g==="geo"){var A=h.get("geoIndex")||0;h.coordinateSystem=s[A]}});var c={};return l.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var g=h.getMapType();c[g]=c[g]||[],c[g].push(h)}}),v.each(c,function(h,g){var A=v.map(h,function(w){return w.get("nameMap")}),b=new m(g,g,v.mergeAll(A));b.zoomLimit=v.retrieve.apply(null,v.map(h,function(w){return w.get("scaleLimit")})),s.push(b),b.resize=n,b.aspectScale=h[0].get("aspectScale"),b.resize(h[0],r),v.each(h,function(w){w.coordinateSystem=b,t(b,w)})}),s},getFilledRegions:function(l,r,s){for(var c=(l||[]).slice(),h=v.createHashMap(),g=0;g<c.length;g++)h.set(c[g].name,c[g]);var A=u.load(r,s);return v.each(A.regions,function(b){var w=b.name;!h.get(w)&&c.push({name:w})}),c}};S.registerCoordinateSystem("geo",a);var e=a;k.exports=e},"7yuC":function(k,D,i){var y=i("QBsz"),p=y.scaleAndAdd;function S(v,m,f){for(var d=f.rect,u=d.width,o=d.height,n=[d.x+u/2,d.y+o/2],t=f.gravity==null?.1:f.gravity,a=0;a<v.length;a++){var e=v[a];e.p||(e.p=y.create(u*(Math.random()-.5)+n[0],o*(Math.random()-.5)+n[1])),e.pp=y.clone(e.p),e.edges=null}var l=f.friction==null?.6:f.friction,r=l;return{warmUp:function(){r=l*.8},setFixed:function(s){v[s].fixed=!0},setUnfixed:function(s){v[s].fixed=!1},step:function(s){for(var c=[],h=v.length,g=0;g<m.length;g++){var A=m[g];if(A.ignoreForceLayout)continue;var b=A.n1,w=A.n2;y.sub(c,w.p,b.p);var x=y.len(c)-A.d,T=w.w/(b.w+w.w);isNaN(T)&&(T=0),y.normalize(c,c),!b.fixed&&p(b.p,b.p,c,T*x*r),!w.fixed&&p(w.p,w.p,c,-(1-T)*x*r)}for(var g=0;g<h;g++){var _=v[g];_.fixed||(y.sub(c,n,_.p),p(_.p,_.p,c,t*r))}for(var g=0;g<h;g++)for(var b=v[g],E=g+1;E<h;E++){var w=v[E];y.sub(c,w.p,b.p);var x=y.len(c);x===0&&(y.set(c,Math.random()-.5,Math.random()-.5),x=1);var C=(b.rep+w.rep)/x/x;!b.fixed&&p(b.pp,b.pp,c,C),!w.fixed&&p(w.pp,w.pp,c,-C)}for(var I=[],g=0;g<h;g++){var _=v[g];_.fixed||(y.sub(I,_.p,_.pp),p(_.p,_.p,I,r),y.copy(_.pp,_.p))}r=r*.992,s&&s(v,m,r<.01)}}}D.forceLayout=S},"8+yF":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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},p={lookup:function(v){if(v>=32&&v<=255)return v;var m=y[v];return m!==void 0?m:16777216|v}};D.default=p},"8CQX":function(k,D,i){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.getKeycode=t,D.getKey=a,D.getKeysym=e;var p=n(i("mHUz")),S=n(i("8+yF")),v=n(i("6Qwc")),m=n(i("gIYZ")),f=n(i("mTgk")),d=o(i("GdRQ"));function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var s={},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(s,h,g):s[h]=l[h]}return s.default=l,r&&r.set(l,s),s}function n(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 v.default){var r=v.default[l.keyCode];if(d.isMac()&&r==="ContextMenu"&&(r="MetaRight"),l.location===2)switch(r){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.location===3)switch(r){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 r}return"Unidentified"}function a(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 r=t(l);return r in m.default?m.default[r]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var r=a(l);if(r==="Unidentified")return null;if(r in f.default){var s=l.location;if(r==="Meta"&&s===0&&(s=2),r==="Clear"&&s===3){var c=t(l);c==="NumLock"&&(s=0)}if((s===void 0||s>3)&&(s=0),r==="Meta"){var h=t(l);if(h==="AltLeft")return p.default.XK_Meta_L;if(h==="AltRight")return p.default.XK_Meta_R}if(r==="Clear"){var g=t(l);if(g==="NumLock")return p.default.XK_Num_Lock}return f.default[r][s]}if(r.length!==1)return null;var A=r.charCodeAt();return A?S.default.lookup(A):null}},"8EBN":function(k,D,i){(function(y){y(i("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 p=0;p<y.modeInfo.length;p++){var S=y.modeInfo[p];S.mimes&&(S.mime=S.mimes[0])}y.findModeByMIME=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.mime==v)return f;if(f.mimes){for(var d=0;d<f.mimes.length;d++)if(f.mimes[d]==v)return f}}if(/\+xml$/.test(v))return y.findModeByMIME("application/xml");if(/\+json$/.test(v))return y.findModeByMIME("application/json")},y.findModeByExtension=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.ext){for(var d=0;d<f.ext.length;d++)if(f.ext[d]==v)return f}}},y.findModeByFileName=function(v){for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.file&&f.file.test(v))return f}var d=v.lastIndexOf("."),u=d>-1&&v.substring(d+1,v.length);if(u)return y.findModeByExtension(u)},y.findModeByName=function(v){v=v.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.name.toLowerCase()==v)return f;if(f.alias){for(var d=0;d<f.alias.length;d++)if(f.alias[d].toLowerCase()==v)return f}}}})},"8IMR":function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},"8ISB":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("6Hfg"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"8K/p":function(k,D,i){"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(D,"__esModule",{value:!0}),D.default=void 0;var p=f(i("Lo0S")),S=v(i("ItS6"));function v(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 f(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var a=m();if(a&&a.has(t))return a.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=l?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(e,r,s):e[r]=t[r]}return e.default=t,a&&a.set(t,e),e}function d(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function u(t,a){for(var e=0;e<a.length;e++){var l=a[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function o(t,a,e){return a&&u(t.prototype,a),e&&u(t,e),t}var n=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 a=0;a<4;a++)this._zlibs[a]=new S.default}return o(t,[{key:"decodeRect",value:function(e,l,r,s,c,h,g){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var A=0;A<4;A++)this._ctl>>A&1&&(this._zlibs[A].reset(),p.Info("Reset zlib stream "+A));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,l,r,s,c,h,g);else if(this._ctl===9)b=this._jpegRect(e,l,r,s,c,h,g);else if(this._ctl===10)b=this._pngRect(e,l,r,s,c,h,g);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,l,r,s,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,r,s,c,h,g){if(c.rQwait("TIGHT",3))return!1;var A=c.rQi,b=c.rQ;return h.fillRect(e,l,r,s,[b[A+2],b[A+1],b[A]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,r,s,c,h,g){var A=this._readData(c);return A===null?!1:(h.imageRect(e,l,r,s,"image/jpeg",A),!0)}},{key:"_pngRect",value:function(e,l,r,s,c,h,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,r,s,c,h,g,A){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,w;switch(this._filter){case 0:w=this._copyFilter(b,l,r,s,c,h,g,A);break;case 1:w=this._paletteFilter(b,l,r,s,c,h,g,A);break;case 2:w=this._gradientFilter(b,l,r,s,c,h,g,A);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return w&&(this._filter=null),w}},{key:"_copyFilter",value:function(e,l,r,s,c,h,g,A){var b=s*c*3,w;if(b<12){if(h.rQwait("TIGHT",b))return!1;w=h.rQshiftBytes(b)}else{if(w=this._readData(h),w===null)return!1;this._zlibs[e].setInput(w),w=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return g.blitRgbImage(l,r,s,c,w,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,r,s,c,h,g,A){if(this._numColors===0){if(h.rQwait("TIGHT palette",1))return!1;var b=h.rQpeek8()+1,w=b*3;if(h.rQwait("TIGHT palette",1+w))return!1;this._numColors=b,h.rQskipBytes(1),h.rQshiftTo(this._palette,w)}var x=this._numColors<=2?1:8,T=Math.floor((s*x+7)/8),_=T*c,E;if(_<12){if(h.rQwait("TIGHT",_))return!1;E=h.rQshiftBytes(_)}else{if(E=this._readData(h),E===null)return!1;this._zlibs[e].setInput(E),E=this._zlibs[e].inflate(_),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(l,r,s,c,E,this._palette,g):this._paletteRect(l,r,s,c,E,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,r,s,c,h,g){for(var A=this._getScratchBuffer(r*s*4),b=Math.floor((r+7)/8),w=Math.floor(r/8),x=0;x<s;x++){var T=void 0,_=void 0,E=void 0;for(E=0;E<w;E++)for(var C=7;C>=0;C--)T=(x*r+E*8+7-C)*4,_=(c[x*b+E]>>C&1)*3,A[T]=h[_],A[T+1]=h[_+1],A[T+2]=h[_+2],A[T+3]=255;for(var I=7;I>=8-r%8;I--)T=(x*r+E*8+7-I)*4,_=(c[x*b+E]>>I&1)*3,A[T]=h[_],A[T+1]=h[_+1],A[T+2]=h[_+2],A[T+3]=255}g.blitRgbxImage(e,l,r,s,A,0,!1)}},{key:"_paletteRect",value:function(e,l,r,s,c,h,g){for(var A=this._getScratchBuffer(r*s*4),b=r*s*4,w=0,x=0;w<b;w+=4,x++){var T=c[x]*3;A[w]=h[T],A[w+1]=h[T+1],A[w+2]=h[T+2],A[w+3]=255}g.blitRgbxImage(e,l,r,s,A,0,!1)}},{key:"_gradientFilter",value:function(e,l,r,s,c,h,g,A){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 r=e.rQshiftBytes(this._len);return this._len=0,r}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),t}();D.default=n},"8SMY":function(k,D,i){var y=i("n4Lv"),p=y.prepareDataCoordInfo,S=y.getStackedOnPoint;function v(f,d){var u=[];return d.diff(f).add(function(o){u.push({cmd:"+",idx:o})}).update(function(o,n){u.push({cmd:"=",idx:n,idx1:o})}).remove(function(o){u.push({cmd:"-",idx:o})}).execute(),u}function m(f,d,u,o,n,t,a,e){for(var l=v(f,d),r=[],s=[],c=[],h=[],g=[],A=[],b=[],w=p(n,d,a),x=p(t,f,e),T=0;T<l.length;T++){var _=l[T],E=!0;switch(_.cmd){case"=":var C=f.getItemLayout(_.idx),I=d.getItemLayout(_.idx1);(isNaN(C[0])||isNaN(C[1]))&&(C=I.slice()),r.push(C),s.push(I),c.push(u[_.idx]),h.push(o[_.idx1]),b.push(d.getRawIndex(_.idx1));break;case"+":var O=_.idx;r.push(n.dataToPoint([d.get(w.dataDimsForPoint[0],O),d.get(w.dataDimsForPoint[1],O)])),s.push(d.getItemLayout(O).slice()),c.push(S(w,n,d,O)),h.push(o[O]),b.push(d.getRawIndex(O));break;case"-":var O=_.idx,F=f.getRawIndex(O);F!==O?(r.push(f.getItemLayout(O)),s.push(t.dataToPoint([f.get(x.dataDimsForPoint[0],O),f.get(x.dataDimsForPoint[1],O)])),c.push(u[O]),h.push(S(x,t,f,O)),b.push(F)):E=!1}E&&(g.push(_),A.push(A.length))}A.sort(function(z,W){return b[z]-b[W]});for(var R=[],B=[],P=[],X=[],M=[],T=0;T<A.length;T++){var O=A[T];R[T]=r[O],B[T]=s[O],P[T]=c[O],X[T]=h[O],M[T]=g[O]}return{current:R,next:B,stackedOnCurrent:P,stackedOnNext:X,status:M}}k.exports=m},"8Skl":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DownOutlined";var d=D.a=p.forwardRef(f)},"8Th4":function(k,D,i){var y=i("3LNs"),p=i("/y7N"),S=i("7bkD"),v=i("Znkb"),m=["x","y"],f=["width","height"],d=y.extend({makeElOption:function(a,e,l,r,s){var c=l.axis,h=c.coordinateSystem,g=n(h,1-o(c)),A=h.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var w=p.buildElStyle(r),x=u[b](c,A,g);x.style=w,a.graphicKey=x.type,a.pointer=x}var T=S.layout(l);p.buildCartesianSingleLabelElOption(e,a,T,l,r,s)},getHandleTransform:function(a,e,l){var r=S.layout(e,{labelInside:!1});return r.labelMargin=l.get("handle.margin"),{position:p.getTransformedPosition(e.axis,a,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(a,e,l,r){var s=l.axis,c=s.coordinateSystem,h=o(s),g=n(c,h),A=a.position;A[h]+=e[h],A[h]=Math.min(g[1],A[h]),A[h]=Math.max(g[0],A[h]);var b=n(c,1-h),w=(b[1]+b[0])/2,x=[w,w];return x[h]=A[h],{position:A,rotation:a.rotation,cursorPoint:x,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(a,e,l){var r=p.makeLineShape([e,l[0]],[e,l[1]],o(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,l){var r=a.getBandWidth(),s=l[1]-l[0];return{type:"Rect",shape:p.makeRectShape([e-r/2,l[0]],[r,s],o(a))}}};function o(a){return a.isHorizontal()?0:1}function n(a,e){var l=a.getRect();return[l[m[e]],l[m[e]]+l[f[e]]]}v.registerAxisPointerClass("SingleAxisPointer",d);var t=d;k.exports=t},"8Uz6":function(k,D,i){var y=i("hNWo"),p=i("+TT/"),S=p.mergeLayoutParam,v=p.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,o,n,t){var a=v(u);m.superCall(this,"init",u,o,n,t),f(this,u,a)},mergeOption:function(u,o){m.superCall(this,"mergeOption",u,o),f(this,this.option,u)}});function f(u,o,n){var t=u.getOrient(),a=[1,1];a[t.index]=0,S(o,n,{type:"box",ignoreSize:a})}var d=m;k.exports=d},"8X+K":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("4mN7"),m=v.fromPoints,f=i("9wZj"),d=i("FBjb"),u=i("8SMY"),o=i("IwbS"),n=i("4NO4"),t=i("1NG9"),a=t.Polyline,e=t.Polygon,l=i("6Ic6"),r=i("n4Lv"),s=r.prepareDataCoordInfo,c=r.getStackedOnPoint,h=i("sK/D"),g=h.createGridClipPath,A=h.createPolarClipPath;function b(R,B){if(R.length!==B.length)return;for(var P=0;P<R.length;P++){var X=R[P],M=B[P];if(X[0]!==M[0]||X[1]!==M[1])return}return!0}function w(R,B){var P=[],X=[],M=[],z=[];return m(R,P,X),m(B,M,z),Math.max(Math.abs(P[0]-M[0]),Math.abs(P[1]-M[1]),Math.abs(X[0]-z[0]),Math.abs(X[1]-z[1]))}function x(R){return typeof R=="number"?R:R?.5:0}function T(R,B,P){if(!P.valueDim)return[];for(var X=[],M=0,z=B.count();M<z;M++)X.push(c(P,R,B,M));return X}function _(R,B,P){for(var X=B.getBaseAxis(),M=X.dim==="x"||X.dim==="radius"?0:1,z=[],W=0;W<R.length-1;W++){var H=R[W+1],V=R[W];z.push(V);var Q=[];switch(P){case"end":Q[M]=H[M],Q[1-M]=V[1-M],z.push(Q);break;case"middle":var G=(V[M]+H[M])/2,ee=[];Q[M]=ee[M]=G,Q[1-M]=V[1-M],ee[1-M]=H[1-M],z.push(Q),z.push(ee);break;default:Q[M]=V[M],Q[1-M]=H[1-M],z.push(Q)}}return R[W]&&z.push(R[W]),z}function E(R,B){var P=R.getVisual("visualMeta");if(!P||!P.length||!R.count())return;if(B.type!=="cartesian2d")return;for(var X,M,z=P.length-1;z>=0;z--){var W=P[z].dimension,H=R.dimensions[W],V=R.getDimensionInfo(H);if(X=V&&V.coordDim,X==="x"||X==="y"){M=P[z];break}}if(!M)return;var Q=B.getAxis(X),G=S.map(M.stops,function(Ge){return{coord:Q.toGlobalCoord(Q.dataToCoord(Ge.value)),color:Ge.color}}),ee=G.length,q=M.outerColors.slice();ee&&G[0].coord>G[ee-1].coord&&(G.reverse(),q.reverse());var se=10,re=G[0].coord-se,Ae=G[ee-1].coord+se,Te=Ae-re;if(Te<.001)return"transparent";S.each(G,function(Ge){Ge.offset=(Ge.coord-re)/Te}),G.push({offset:ee?G[ee-1].offset:.5,color:q[1]||"transparent"}),G.unshift({offset:ee?G[0].offset:.5,color:q[0]||"transparent"});var Re=new o.LinearGradient(0,0,0,0,G,!0);return Re[X]=re,Re[X+"2"]=Ae,Re}function C(R,B,P){var X=R.get("showAllSymbol"),M=X==="auto";if(X&&!M)return;var z=P.getAxesByScale("ordinal")[0];if(!z)return;if(M&&I(z,B))return;var W=B.mapDimension(z.dim),H={};return S.each(z.getViewLabels(),function(V){H[V.tickValue]=1}),function(V){return!H.hasOwnProperty(B.get(W,V))}}function I(R,B){var P=R.getExtent(),X=Math.abs(P[1]-P[0])/R.scale.count();isNaN(X)&&(X=0);for(var M=B.count(),z=Math.max(1,Math.round(M/5)),W=0;W<M;W+=z)if(d.getSymbolSize(B,W)[R.isHorizontal()?1:0]*1.5>X)return!1;return!0}function O(R,B,P){if(R.type==="cartesian2d"){var X=R.getBaseAxis().isHorizontal(),M=g(R,B,P);if(!P.get("clip",!0)){var z=M.shape,W=Math.max(z.width,z.height);X?(z.y-=W,z.height+=W*2):(z.x-=W,z.width+=W*2)}return M}else return A(R,B,P)}var F=l.extend({type:"line",init:function(){var R=new o.Group,B=new f;this.group.add(B.group),this._symbolDraw=B,this._lineGroup=R},render:function(R,B,P){var X=R.coordinateSystem,M=this.group,z=R.getData(),W=R.getModel("lineStyle"),H=R.getModel("areaStyle"),V=z.mapArray(z.getItemLayout),Q=X.type==="polar",G=this._coordSys,ee=this._symbolDraw,q=this._polyline,se=this._polygon,re=this._lineGroup,Ae=R.get("animation"),Te=!H.isEmpty(),Re=H.get("origin"),Ge=s(X,z,Re),Ue=T(X,z,Ge),nt=R.get("showSymbol"),Le=nt&&!Q&&C(R,z,X),le=this._data;le&&le.eachItemGraphicEl(function(ye,Ee){ye.__temp&&(M.remove(ye),le.setItemGraphicEl(Ee,null))}),nt||ee.remove(),M.add(re);var Xe=!Q&&R.get("step"),pe;X&&X.getArea&&R.get("clip",!0)&&(pe=X.getArea(),pe.width!=null?(pe.x-=.1,pe.y-=.1,pe.width+=.2,pe.height+=.2):pe.r0&&(pe.r0-=.5,pe.r1+=.5)),this._clipShapeForSymbol=pe,q&&G.type===X.type&&Xe===this._step?(Te&&!se?se=this._newPolygon(V,Ue,X,Ae):se&&!Te&&(re.remove(se),se=this._polygon=null),re.setClipPath(O(X,!1,R)),nt&&ee.updateData(z,{isIgnore:Le,clipShape:pe}),z.eachItemGraphicEl(function(ye){ye.stopAnimation(!0)}),(!b(this._stackedOnPoints,Ue)||!b(this._points,V))&&(Ae?this._updateAnimation(z,Ue,X,P,Xe,Re):(Xe&&(V=_(V,X,Xe),Ue=_(Ue,X,Xe)),q.setShape({points:V}),se&&se.setShape({points:V,stackedOnPoints:Ue})))):(nt&&ee.updateData(z,{isIgnore:Le,clipShape:pe}),Xe&&(V=_(V,X,Xe),Ue=_(Ue,X,Xe)),q=this._newPolyline(V,X,Ae),Te&&(se=this._newPolygon(V,Ue,X,Ae)),re.setClipPath(O(X,!0,R)));var Z=E(z,X)||z.getVisual("color");q.useStyle(S.defaults(W.getLineStyle(),{fill:"none",stroke:Z,lineJoin:"bevel"}));var Y=R.get("smooth");if(Y=x(R.get("smooth")),q.setShape({smooth:Y,smoothMonotone:R.get("smoothMonotone"),connectNulls:R.get("connectNulls")}),se){var ne=z.getCalculationInfo("stackedOnSeries"),ce=0;se.useStyle(S.defaults(H.getAreaStyle(),{fill:Z,opacity:.7,lineJoin:"bevel"})),ne&&(ce=x(ne.get("smooth"))),se.setShape({smooth:Y,stackedOnSmooth:ce,smoothMonotone:R.get("smoothMonotone"),connectNulls:R.get("connectNulls")})}this._data=z,this._coordSys=X,this._stackedOnPoints=Ue,this._points=V,this._step=Xe,this._valueOrigin=Re},dispose:function(){},highlight:function(R,B,P,X){var M=R.getData(),z=n.queryDataIndex(M,X);if(!(z instanceof Array)&&z!=null&&z>=0){var W=M.getItemGraphicEl(z);if(!W){var H=M.getItemLayout(z);if(!H)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(H[0],H[1]))return;W=new d(M,z),W.position=H,W.setZ(R.get("zlevel"),R.get("z")),W.ignore=isNaN(H[0])||isNaN(H[1]),W.__temp=!0,M.setItemGraphicEl(z,W),W.stopSymbolAnimation(!0),this.group.add(W)}W.highlight()}else l.prototype.highlight.call(this,R,B,P,X)},downplay:function(R,B,P,X){var M=R.getData(),z=n.queryDataIndex(M,X);if(z!=null&&z>=0){var W=M.getItemGraphicEl(z);W&&(W.__temp?(M.setItemGraphicEl(z,null),this.group.remove(W)):W.downplay())}else l.prototype.downplay.call(this,R,B,P,X)},_newPolyline:function(R){var B=this._polyline;return B&&this._lineGroup.remove(B),B=new a({shape:{points:R},silent:!0,z2:10}),this._lineGroup.add(B),this._polyline=B,B},_newPolygon:function(R,B){var P=this._polygon;return P&&this._lineGroup.remove(P),P=new e({shape:{points:R,stackedOnPoints:B},silent:!0}),this._lineGroup.add(P),this._polygon=P,P},_updateAnimation:function(R,B,P,X,M,z){var W=this._polyline,H=this._polygon,V=R.hostModel,Q=u(this._data,R,this._stackedOnPoints,B,this._coordSys,P,this._valueOrigin,z),G=Q.current,ee=Q.stackedOnCurrent,q=Q.next,se=Q.stackedOnNext;if(M&&(G=_(Q.current,P,M),ee=_(Q.stackedOnCurrent,P,M),q=_(Q.next,P,M),se=_(Q.stackedOnNext,P,M)),w(G,q)>3e3||H&&w(ee,se)>3e3){W.setShape({points:q}),H&&H.setShape({points:q,stackedOnPoints:se});return}W.shape.__points=Q.current,W.shape.points=G,o.updateProps(W,{shape:{points:q}},V),H&&(H.setShape({points:G,stackedOnPoints:ee}),o.updateProps(H,{shape:{points:q,stackedOnPoints:se}},V));for(var re=[],Ae=Q.status,Te=0;Te<Ae.length;Te++){var Re=Ae[Te].cmd;if(Re==="="){var Ge=R.getItemGraphicEl(Ae[Te].idx1);Ge&&re.push({el:Ge,ptIdx:Te})}}W.animators&&W.animators.length&&W.animators[0].during(function(){for(var Ue=0;Ue<re.length;Ue++){var nt=re[Ue].el;nt.attr("position",W.shape.__points[re[Ue].ptIdx])}})},remove:function(R){var B=this.group,P=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),P&&P.eachItemGraphicEl(function(X,M){X.__temp&&(B.remove(X),P.setItemGraphicEl(M,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});k.exports=F},"8XDt":function(k,D,i){i("qH13");var y=i("aX58"),p=y.registerPainter,S=i("6fms");p("vml",S)},"8XRh":function(k,D,i){"use strict";i.d(D,"a",function(){return Ot});var y=i("rePB"),p=i("VTBJ"),S=i("ODXe"),v=i("U8pU"),m=i("TSYQ"),f=i.n(m),d=i("m+aA"),u=i("c+Xe"),o=i("q1tI"),n=i("Ff2n"),t=["children"],a=o.createContext({});function e(ir){var lr=ir.children,Sr=Object(n.a)(ir,t);return o.createElement(a.Provider,{value:Sr},lr)}var l=i("1OyB"),r=i("vuIU"),s=i("Ji7U"),c=i("LK+K"),h=function(ir){Object(s.a)(Sr,ir);var lr=Object(c.a)(Sr);function Sr(){return Object(l.a)(this,Sr),lr.apply(this,arguments)}return Object(r.a)(Sr,[{key:"render",value:function(){return this.props.children}}]),Sr}(o.Component),g=h,A=i("dm2S"),b="none",w="appear",x="enter",T="leave",_="none",E="prepare",C="start",I="active",O="end",F="prepared",R=i("MNnm");function B(ir,lr){var Sr={};return Sr[ir.toLowerCase()]=lr.toLowerCase(),Sr["Webkit".concat(ir)]="webkit".concat(lr),Sr["Moz".concat(ir)]="moz".concat(lr),Sr["ms".concat(ir)]="MS".concat(lr),Sr["O".concat(ir)]="o".concat(lr.toLowerCase()),Sr}function P(ir,lr){var Sr={animationend:B("Animation","AnimationEnd"),transitionend:B("Transition","TransitionEnd")};return ir&&("AnimationEvent"in lr||delete Sr.animationend.animation,"TransitionEvent"in lr||delete Sr.transitionend.transition),Sr}var X=P(Object(R.a)(),typeof window!="undefined"?window:{}),M={};if(Object(R.a)()){var z=document.createElement("div");M=z.style}var W={};function H(ir){if(W[ir])return W[ir];var lr=X[ir];if(lr)for(var Sr=Object.keys(lr),mt=Sr.length,or=0;or<mt;or+=1){var et=Sr[or];if(Object.prototype.hasOwnProperty.call(lr,et)&&et in M)return W[ir]=lr[et],W[ir]}return""}var V=H("animationend"),Q=H("transitionend"),G=!!(V&&Q),ee=V||"animationend",q=Q||"transitionend";function se(ir,lr){if(!ir)return null;if(Object(v.a)(ir)==="object"){var Sr=lr.replace(/-\w/g,function(mt){return mt[1].toUpperCase()});return ir[Sr]}return"".concat(ir,"-").concat(lr)}var re=function(ir){var lr=Object(o.useRef)(),Sr=Object(o.useRef)(ir);Sr.current=ir;var mt=o.useCallback(function(ur){Sr.current(ur)},[]);function or(ur){ur&&(ur.removeEventListener(q,mt),ur.removeEventListener(ee,mt))}function et(ur){lr.current&&lr.current!==ur&&or(lr.current),ur&&ur!==lr.current&&(ur.addEventListener(q,mt),ur.addEventListener(ee,mt),lr.current=ur)}return o.useEffect(function(){return function(){or(lr.current)}},[]),[et,or]},Ae=Object(R.a)()?o.useLayoutEffect:o.useEffect,Te=Ae,Re=i("wgJM"),Ge=function(){var ir=o.useRef(null);function lr(){Re.a.cancel(ir.current)}function Sr(mt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;lr();var et=Object(Re.a)(function(){or<=1?mt({isCanceled:function(){return et!==ir.current}}):Sr(mt,or-1)});ir.current=et}return o.useEffect(function(){return function(){lr()}},[]),[Sr,lr]},Ue=[E,C,I,O],nt=[E,F],Le=!1,le=!0;function Xe(ir){return ir===I||ir===O}var pe=function(ir,lr,Sr){var mt=Object(A.a)(_),or=Object(S.a)(mt,2),et=or[0],ur=or[1],qr=Ge(),Fe=Object(S.a)(qr,2),$t=Fe[0],Lr=Fe[1];function pt(){ur(E,!0)}var qt=lr?nt:Ue;return Te(function(){if(et!==_&&et!==O){var vr=qt.indexOf(et),pn=qt[vr+1],fr=Sr(et);fr===Le?ur(pn,!0):pn&&$t(function(gr){function dn(){if(gr.isCanceled())return;ur(pn,!0)}fr===!0?dn():Promise.resolve(fr).then(dn)})}},[ir,et]),o.useEffect(function(){return function(){Lr()}},[]),[pt,et]};function Z(ir,lr,Sr,mt){var or=mt.motionEnter,et=or===void 0?!0:or,ur=mt.motionAppear,qr=ur===void 0?!0:ur,Fe=mt.motionLeave,$t=Fe===void 0?!0:Fe,Lr=mt.motionDeadline,pt=mt.motionLeaveImmediately,qt=mt.onAppearPrepare,vr=mt.onEnterPrepare,pn=mt.onLeavePrepare,fr=mt.onAppearStart,gr=mt.onEnterStart,dn=mt.onLeaveStart,Qt=mt.onAppearActive,sr=mt.onEnterActive,Qr=mt.onLeaveActive,Cn=mt.onAppearEnd,Fn=mt.onEnterEnd,ti=mt.onLeaveEnd,ki=mt.onVisibleChanged,Dn=Object(A.a)(),Bn=Object(S.a)(Dn,2),Ft=Bn[0],vt=Bn[1],_e=Object(A.a)(b),Ne=Object(S.a)(_e,2),Ie=Ne[0],Ze=Ne[1],ct=Object(A.a)(null),gt=Object(S.a)(ct,2),kt=gt[0],xr=gt[1],Hr=Object(o.useRef)(!1),on=Object(o.useRef)(null);function Nt(){return Sr()}var ot=Object(o.useRef)(!1);function dt(){Ze(b,!0),xr(null,!0)}function Yt(ri){var ci=Nt();if(ri&&!ri.deadline&&ri.target!==ci)return;var gi=ot.current,Ni;Ie===w&&gi?Ni=Cn==null?void 0:Cn(ci,ri):Ie===x&&gi?Ni=Fn==null?void 0:Fn(ci,ri):Ie===T&&gi&&(Ni=ti==null?void 0:ti(ci,ri)),Ie!==b&&gi&&Ni!==!1&&dt()}var Pt=re(Yt),Et=Object(S.a)(Pt,1),Bt=Et[0],wt=function(ci){var gi,Ni,Qe;switch(ci){case w:return gi={},Object(y.a)(gi,E,qt),Object(y.a)(gi,C,fr),Object(y.a)(gi,I,Qt),gi;case x:return Ni={},Object(y.a)(Ni,E,vr),Object(y.a)(Ni,C,gr),Object(y.a)(Ni,I,sr),Ni;case T:return Qe={},Object(y.a)(Qe,E,pn),Object(y.a)(Qe,C,dn),Object(y.a)(Qe,I,Qr),Qe;default:return{}}},Mt=o.useMemo(function(){return wt(Ie)},[Ie]),Nr=pe(Ie,!ir,function(ri){if(ri===E){var ci=Mt[E];return ci?ci(Nt()):Le}if(en in Mt){var gi;xr(((gi=Mt[en])===null||gi===void 0?void 0:gi.call(Mt,Nt(),null))||null)}return en===I&&(Bt(Nt()),Lr>0&&(clearTimeout(on.current),on.current=setTimeout(function(){Yt({deadline:!0})},Lr))),en===F&&dt(),le}),Tr=Object(S.a)(Nr,2),yr=Tr[0],en=Tr[1],sn=Xe(en);ot.current=sn,Te(function(){vt(lr);var ri=Hr.current;Hr.current=!0;var ci;!ri&&lr&&qr&&(ci=w),ri&&lr&&et&&(ci=x),(ri&&!lr&&$t||!ri&&pt&&!lr&&$t)&&(ci=T);var gi=wt(ci);ci&&(ir||gi[E])?(Ze(ci),yr()):Ze(b)},[lr]),Object(o.useEffect)(function(){(Ie===w&&!qr||Ie===x&&!et||Ie===T&&!$t)&&Ze(b)},[qr,et,$t]),Object(o.useEffect)(function(){return function(){Hr.current=!1,clearTimeout(on.current)}},[]);var Vn=o.useRef(!1);Object(o.useEffect)(function(){Ft&&(Vn.current=!0),Ft!==void 0&&Ie===b&&((Vn.current||Ft)&&(ki==null||ki(Ft)),Vn.current=!0)},[Ft,Ie]);var jn=kt;return Mt[E]&&en===C&&(jn=Object(p.a)({transition:"none"},jn)),[Ie,en,jn,Ft!=null?Ft:lr]}function Y(ir){var lr=ir;Object(v.a)(ir)==="object"&&(lr=ir.transitionSupport);function Sr(or,et){return!!(or.motionName&&lr&&et!==!1)}var mt=o.forwardRef(function(or,et){var ur=or.visible,qr=ur===void 0?!0:ur,Fe=or.removeOnLeave,$t=Fe===void 0?!0:Fe,Lr=or.forceRender,pt=or.children,qt=or.motionName,vr=or.leavedClassName,pn=or.eventProps,fr=o.useContext(a),gr=fr.motion,dn=Sr(or,gr),Qt=Object(o.useRef)(),sr=Object(o.useRef)();function Qr(){try{return Qt.current instanceof HTMLElement?Qt.current:Object(d.a)(sr.current)}catch(xr){return null}}var Cn=Z(dn,qr,Qr,or),Fn=Object(S.a)(Cn,4),ti=Fn[0],ki=Fn[1],Dn=Fn[2],Bn=Fn[3],Ft=o.useRef(Bn);Bn&&(Ft.current=!0);var vt=o.useCallback(function(xr){Qt.current=xr,Object(u.b)(et,xr)},[et]),_e,Ne=Object(p.a)(Object(p.a)({},pn),{},{visible:qr});if(!pt)_e=null;else if(ti===b)Bn?_e=pt(Object(p.a)({},Ne),vt):!$t&&Ft.current&&vr?_e=pt(Object(p.a)(Object(p.a)({},Ne),{},{className:vr}),vt):Lr||!$t&&!vr?_e=pt(Object(p.a)(Object(p.a)({},Ne),{},{style:{display:"none"}}),vt):_e=null;else{var Ie,Ze;ki===E?Ze="prepare":Xe(ki)?Ze="active":ki===C&&(Ze="start");var ct=se(qt,"".concat(ti,"-").concat(Ze));_e=pt(Object(p.a)(Object(p.a)({},Ne),{},{className:f()(se(qt,ti),(Ie={},Object(y.a)(Ie,ct,ct&&Ze),Object(y.a)(Ie,qt,typeof qt=="string"),Ie)),style:Dn}),vt)}if(o.isValidElement(_e)&&Object(u.c)(_e)){var gt=_e,kt=gt.ref;kt||(_e=o.cloneElement(_e,{ref:vt}))}return o.createElement(g,{ref:sr},_e)});return mt.displayName="CSSMotion",mt}var ne=Y(G),ce=i("wx14"),ye=i("JX7q"),Ee="add",Ce="keep",ue="remove",ge="removed";function Oe(ir){var lr;return ir&&Object(v.a)(ir)==="object"&&"key"in ir?lr=ir:lr={key:ir},Object(p.a)(Object(p.a)({},lr),{},{key:String(lr.key)})}function Je(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ir.map(Oe)}function lt(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Sr=[],mt=0,or=lr.length,et=Je(ir),ur=Je(lr);et.forEach(function($t){for(var Lr=!1,pt=mt;pt<or;pt+=1){var qt=ur[pt];if(qt.key===$t.key){mt<pt&&(Sr=Sr.concat(ur.slice(mt,pt).map(function(vr){return Object(p.a)(Object(p.a)({},vr),{},{status:Ee})})),mt=pt),Sr.push(Object(p.a)(Object(p.a)({},qt),{},{status:Ce})),mt+=1,Lr=!0;break}}Lr||Sr.push(Object(p.a)(Object(p.a)({},$t),{},{status:ue}))}),mt<or&&(Sr=Sr.concat(ur.slice(mt).map(function($t){return Object(p.a)(Object(p.a)({},$t),{},{status:Ee})})));var qr={};Sr.forEach(function($t){var Lr=$t.key;qr[Lr]=(qr[Lr]||0)+1});var Fe=Object.keys(qr).filter(function($t){return qr[$t]>1});return Fe.forEach(function($t){Sr=Sr.filter(function(Lr){var pt=Lr.key,qt=Lr.status;return pt!==$t||qt!==ue}),Sr.forEach(function(Lr){Lr.key===$t&&(Lr.status=Ce)})}),Sr}var tt=["component","children","onVisibleChanged","onAllRemoved"],ke=["status"],st=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ve(ir){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Sr=function(mt){Object(s.a)(et,mt);var or=Object(c.a)(et);function et(){var ur;Object(l.a)(this,et);for(var qr=arguments.length,Fe=new Array(qr),$t=0;$t<qr;$t++)Fe[$t]=arguments[$t];return ur=or.call.apply(or,[this].concat(Fe)),Object(y.a)(Object(ye.a)(ur),"state",{keyEntities:[]}),Object(y.a)(Object(ye.a)(ur),"removeKey",function(Lr){var pt=ur.state.keyEntities,qt=pt.map(function(vr){return vr.key!==Lr?vr:Object(p.a)(Object(p.a)({},vr),{},{status:ge})});return ur.setState({keyEntities:qt}),qt.filter(function(vr){var pn=vr.status;return pn!==ge}).length}),ur}return Object(r.a)(et,[{key:"render",value:function(){var qr=this,Fe=this.state.keyEntities,$t=this.props,Lr=$t.component,pt=$t.children,qt=$t.onVisibleChanged,vr=$t.onAllRemoved,pn=Object(n.a)($t,tt),fr=Lr||o.Fragment,gr={};return st.forEach(function(dn){gr[dn]=pn[dn],delete pn[dn]}),delete pn.keys,o.createElement(fr,pn,Fe.map(function(dn,Qt){var sr=dn.status,Qr=Object(n.a)(dn,ke),Cn=sr===Ee||sr===Ce;return o.createElement(lr,Object(ce.a)({},gr,{key:Qr.key,visible:Cn,eventProps:Qr,onVisibleChanged:function(ti){if(qt==null||qt(ti,{key:Qr.key}),!ti){var ki=qr.removeKey(Qr.key);ki===0&&vr&&vr()}}}),function(Fn,ti){return pt(Object(p.a)(Object(p.a)({},Fn),{},{index:Qt}),ti)})}))}}],[{key:"getDerivedStateFromProps",value:function(qr,Fe){var $t=qr.keys,Lr=Fe.keyEntities,pt=Je($t),qt=lt(Lr,pt);return{keyEntities:qt.filter(function(vr){var pn=Lr.find(function(fr){var gr=fr.key;return vr.key===gr});return!(pn&&pn.status===ge&&vr.status===ue)})}}}]),et}(o.Component);return Object(y.a)(Sr,"defaultProps",{component:"div"}),Sr}var Ot=Ve(G),Ut=D.b=ne},"8hn6":function(k,D){var i="#eee",y=function(){return{axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},axisLabel:{textStyle:{color:i}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:i}}}},p=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],S={color:p,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:i},crossStyle:{color:i},label:{color:"#000"}}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:i}},toolbox:{iconStyle:{normal:{borderColor:i}}},dataZoom:{textStyle:{color:i}},visualMap:{textStyle:{color:i}},timeline:{lineStyle:{color:i},itemStyle:{normal:{color:p[1]}},label:{normal:{textStyle:{color:i}}},controlStyle:{normal:{color:i,borderColor:i}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:p},gauge:{title:{textStyle:{color:i}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};S.categoryAxis.splitLine.show=!1;var v=S;k.exports=v},"8nMs":function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("+rIm"),v=i("Znkb"),m=i("AVZG"),f=i("WN+l"),d=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],n=["splitArea","splitLine","minorSplitLine"],t=v.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(a,e,l,r){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new p.Group,this.group.add(this._axisGroup),!a.get("show"))return;var c=a.getCoordSysModel(),h=m.layout(c,a),g=new S(a,h);y.each(o,g.add,g),this._axisGroup.add(g.getGroup()),y.each(n,function(A){a.get(A+".show")&&this["_"+A](a,c)},this),p.groupTransition(s,this._axisGroup,a),t.superCall(this,"render",a,e,l,r)},remove:function(){u(this)},_splitLine:function(a,e){var l=a.axis;if(l.scale.isBlank())return;var r=a.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("color");c=y.isArray(c)?c:[c];for(var h=e.coordinateSystem.getRect(),g=l.isHorizontal(),A=0,b=l.getTicksCoords({tickModel:r}),w=[],x=[],T=s.getLineStyle(),_=0;_<b.length;_++){var E=l.toGlobalCoord(b[_].coord);g?(w[0]=E,w[1]=h.y,x[0]=E,x[1]=h.y+h.height):(w[0]=h.x,w[1]=E,x[0]=h.x+h.width,x[1]=E);var C=A++%c.length,I=b[_].tickValue;this._axisGroup.add(new p.Line({anid:I!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:w[0],y1:w[1],x2:x[0],y2:x[1]},style:y.defaults({stroke:c[C]},T),silent:!0}))}},_minorSplitLine:function(a,e){var l=a.axis,r=a.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=e.coordinateSystem.getRect(),h=l.isHorizontal(),g=l.getMinorTicksCoords();if(!g.length)return;for(var A=[],b=[],w=s.getLineStyle(),x=0;x<g.length;x++)for(var T=0;T<g[x].length;T++){var _=l.toGlobalCoord(g[x][T].coord);h?(A[0]=_,A[1]=c.y,b[0]=_,b[1]=c.y+c.height):(A[0]=c.x,A[1]=_,b[0]=c.x+c.width,b[1]=_),this._axisGroup.add(new p.Line({anid:"minor_line_"+g[x][T].tickValue,subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:b[0],y2:b[1]},style:w,silent:!0}))}},_splitArea:function(a,e){d(this,this._axisGroup,a,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(k,D,i){var y=i("mFDi"),p=i("4mN7"),S=i("QBsz"),v=i("BlVb");function m(d,u,o){if(this.name=d,this.geometries=u,o)o=[o[0],o[1]];else{var n=this.getBoundingRect();o=[n.x+n.width/2,n.y+n.height/2]}this.center=o}m.prototype={constructor:m,properties:null,getBoundingRect:function(){var d=this._rect;if(d)return d;for(var u=Number.MAX_VALUE,o=[u,u],n=[-u,-u],t=[],a=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var r=e[l].exterior;p.fromPoints(r,t,a),S.min(o,o,t),S.max(n,n,a)}return l===0&&(o[0]=o[1]=n[0]=n[1]=0),this._rect=new y(o[0],o[1],n[0]-o[0],n[1]-o[1])},contain:function(d){var u=this.getBoundingRect(),o=this.geometries;if(!u.contain(d[0],d[1]))return!1;e:for(var n=0,t=o.length;n<t;n++){if(o[n].type!=="polygon")continue;var a=o[n].exterior,e=o[n].interiors;if(v.contain(a,d[0],d[1])){for(var l=0;l<(e?e.length:0);l++)if(v.contain(e[l]))continue e;return!0}}return!1},transformTo:function(d,u,o,n){var t=this.getBoundingRect(),a=t.width/t.height;o?n||(n=o/a):o=a*n;for(var e=new y(d,u,o,n),l=t.calculateTransform(e),r=this.geometries,s=0;s<r.length;s++){if(r[s].type!=="polygon")continue;for(var c=r[s].exterior,h=r[s].interiors,g=0;g<c.length;g++)S.applyTransform(c[g],c[g],l);for(var A=0;A<(h?h.length:0);A++)for(var g=0;g<h[A].length;g++)S.applyTransform(h[A][g],h[A][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 f=m;k.exports=f},"8txm":function(k,D,i){},"8waO":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("iLNv"),v=i("ZWlE");i("hJvP"),i("IXyC"),i("xRUu");var m=5;y.extendComponentView({type:"parallel",render:function(u,o,n){this._model=u,this._api=n,this._handlers||(this._handlers={},p.each(f,function(t,a){n.getZr().on(a,this._handlers[a]=p.bind(t,this))},this)),S.createOrUpdate(this,"_throttledDispatchExpand",u.get("axisExpandRate"),"fixRate")},dispose:function(u,o){p.each(this._handlers,function(n,t){o.getZr().off(t,n)}),this._handlers=null},_throttledDispatchExpand:function(u){this._dispatchExpand(u)},_dispatchExpand:function(u){u&&this._api.dispatchAction(p.extend({type:"parallelAxisExpand"},u))}});var f={mousedown:function(u){d(this,"click")&&(this._mouseDownPoint=[u.offsetX,u.offsetY])},mouseup:function(u){var o=this._mouseDownPoint;if(d(this,"click")&&o){var n=[u.offsetX,u.offsetY],t=Math.pow(o[0]-n[0],2)+Math.pow(o[1]-n[1],2);if(t>m)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(u){if(this._mouseDownPoint||!d(this,"mousemove"))return;var o=this._model,n=o.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]),t=n.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(o.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:t==="jump"?null:!1})}};function d(u,o){var n=u._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===o}y.registerPreprocessor(v)},"8x+h":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("K4ya"),f=i("Qxkt"),d=["#ddd"],u=S.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,a){var e=this.option;!a&&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=v.map(t,function(a){return o(this.option,a)},this)},setBrushOption:function(t){this.brushOption=o(this.option,t),this.brushType=this.brushOption.brushType}});function o(t,a){return v.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new f(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},a,!0)}var n=u;k.exports=n},"8z0m":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("RIqP"),v=i.n(S),m=i("pVnL"),f=i.n(m),d=i("J4zp"),u=i.n(d),o=i("q1tI"),n=i.n(o),t=i("TSYQ"),a=i.n(t);function e(fr,gr){var dn="cannot "+fr.method+" "+fr.action+" "+gr.status+"'",Qt=new Error(dn);return Qt.status=gr.status,Qt.method=fr.method,Qt.url=fr.action,Qt}function l(fr){var gr=fr.responseText||fr.response;if(!gr)return gr;try{return JSON.parse(gr)}catch(dn){return gr}}function r(fr){var gr=new XMLHttpRequest;fr.onProgress&&gr.upload&&(gr.upload.onprogress=function(Qr){Qr.total>0&&(Qr.percent=Qr.loaded/Qr.total*100),fr.onProgress(Qr)});var dn=new FormData;fr.data&&Object.keys(fr.data).forEach(function(sr){var Qr=fr.data[sr];if(Array.isArray(Qr)){Qr.forEach(function(Cn){dn.append(sr+"[]",Cn)});return}dn.append(sr,fr.data[sr])}),fr.file instanceof Blob?dn.append(fr.filename,fr.file,fr.file.name):dn.append(fr.filename,fr.file),gr.onerror=function(Qr){fr.onError(Qr)},gr.onload=function(){return gr.status<200||gr.status>=300?fr.onError(e(fr,gr),l(gr)):fr.onSuccess(l(gr),gr)},gr.open(fr.method,fr.action,!0),fr.withCredentials&&"withCredentials"in gr&&(gr.withCredentials=!0);var Qt=fr.headers||{};return Qt["X-Requested-With"]!==null&&gr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Qt).forEach(function(sr){Qt[sr]!==null&&gr.setRequestHeader(sr,Qt[sr])}),gr.send(dn),{abort:function(){gr.abort()}}}var s=+new Date,c=0;function h(){return"rc-upload-"+s+"-"+ ++c}function g(fr,gr){return fr.indexOf(gr,fr.length-gr.length)!==-1}var A=function(fr,gr){if(fr&&gr){var dn=Array.isArray(gr)?gr:gr.split(","),Qt=fr.name||"",sr=fr.type||"",Qr=sr.replace(/\/.*$/,"");return dn.some(function(Cn){var Fn=Cn.trim();return Fn.charAt(0)==="."?g(Qt.toLowerCase(),Fn.toLowerCase()):/\/\*$/.test(Fn)?Qr===Fn.replace(/\/.*$/,""):sr===Fn})}return!0};function b(fr,gr){var dn=fr.createReader(),Qt=[];function sr(){dn.readEntries(function(Qr){var Cn=Array.prototype.slice.apply(Qr);Qt=Qt.concat(Cn);var Fn=!Cn.length;Fn?gr(Qt):sr()})}sr()}var w=function(gr,dn,Qt){var sr=function Qr(Cn,Fn){Fn=Fn||"",Cn.isFile?Cn.file(function(ti){Qt(ti)&&(Cn.fullPath&&!ti.webkitRelativePath&&(Object.defineProperties(ti,{webkitRelativePath:{writable:!0}}),ti.webkitRelativePath=Cn.fullPath.replace(/^\//,""),Object.defineProperties(ti,{webkitRelativePath:{writable:!1}})),dn([ti]))}):Cn.isDirectory&&b(Cn,function(ti){ti.forEach(function(ki){Qr(ki,""+Fn+Cn.name+"/")})})};gr.forEach(function(Qr){sr(Qr.webkitGetAsEntry())})},x=w,T=Object.assign||function(fr){for(var gr=1;gr<arguments.length;gr++){var dn=arguments[gr];for(var Qt in dn)Object.prototype.hasOwnProperty.call(dn,Qt)&&(fr[Qt]=dn[Qt])}return fr},_=function(){function fr(gr,dn){var Qt=[],sr=!0,Qr=!1,Cn=void 0;try{for(var Fn=gr[Symbol.iterator](),ti;!(sr=(ti=Fn.next()).done)&&!(Qt.push(ti.value),dn&&Qt.length===dn);sr=!0);}catch(ki){Qr=!0,Cn=ki}finally{try{!sr&&Fn.return&&Fn.return()}finally{if(Qr)throw Cn}}return Qt}return function(gr,dn){if(Array.isArray(gr))return gr;if(Symbol.iterator in Object(gr))return fr(gr,dn);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function fr(gr,dn){for(var Qt=0;Qt<dn.length;Qt++){var sr=dn[Qt];sr.enumerable=sr.enumerable||!1,sr.configurable=!0,"value"in sr&&(sr.writable=!0),Object.defineProperty(gr,sr.key,sr)}}return function(gr,dn,Qt){return dn&&fr(gr.prototype,dn),Qt&&fr(gr,Qt),gr}}();function C(fr,gr,dn){return gr in fr?Object.defineProperty(fr,gr,{value:dn,enumerable:!0,configurable:!0,writable:!0}):fr[gr]=dn,fr}function I(fr,gr){var dn={};for(var Qt in fr){if(gr.indexOf(Qt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(fr,Qt))continue;dn[Qt]=fr[Qt]}return dn}function O(fr,gr){if(!(fr instanceof gr))throw new TypeError("Cannot call a class as a function")}function F(fr,gr){if(!fr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return gr&&(typeof gr=="object"||typeof gr=="function")?gr:fr}function R(fr,gr){if(typeof gr!="function"&&gr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof gr);fr.prototype=Object.create(gr&&gr.prototype,{constructor:{value:fr,enumerable:!1,writable:!0,configurable:!0}}),gr&&(Object.setPrototypeOf?Object.setPrototypeOf(fr,gr):fr.__proto__=gr)}var B=function(gr){return Object.keys(gr).reduce(function(dn,Qt){return(Qt.substr(0,5)==="data-"||Qt.substr(0,5)==="aria-"||Qt==="role")&&(dn[Qt]=gr[Qt]),dn},{})},P=function(fr){R(gr,fr);function gr(){var dn,Qt,sr,Qr;O(this,gr);for(var Cn=arguments.length,Fn=Array(Cn),ti=0;ti<Cn;ti++)Fn[ti]=arguments[ti];return Qr=(Qt=(sr=F(this,(dn=gr.__proto__||Object.getPrototypeOf(gr)).call.apply(dn,[this].concat(Fn))),sr),sr.state={uid:h()},sr.reqs={},sr.onChange=function(ki){var Dn=ki.target.files;sr.uploadFiles(Dn),sr.reset()},sr.onClick=function(ki){var Dn=sr.fileInput;if(!Dn)return;var Bn=sr.props,Ft=Bn.children,vt=Bn.onClick;Ft&&Ft.type==="button"&&(Dn.parentNode.focus(),Dn.parentNode.querySelector("button").blur()),Dn.click(),vt&&vt(ki)},sr.onKeyDown=function(ki){ki.key==="Enter"&&sr.onClick()},sr.onFileDrop=function(ki){var Dn=sr.props.multiple;if(ki.preventDefault(),ki.type==="dragover")return;if(sr.props.directory)x(Array.prototype.slice.call(ki.dataTransfer.items),sr.uploadFiles,function(Ft){return A(Ft,sr.props.accept)});else{var Bn=Array.prototype.slice.call(ki.dataTransfer.files).filter(function(Ft){return A(Ft,sr.props.accept)});Dn===!1&&(Bn=Bn.slice(0,1)),sr.uploadFiles(Bn)}},sr.uploadFiles=function(ki){var Dn=Array.prototype.slice.call(ki);Dn.map(function(Bn){return Bn.uid=h(),Bn}).forEach(function(Bn){sr.upload(Bn,Dn)})},sr.saveFileInput=function(ki){sr.fileInput=ki},Qt),F(sr,Qr)}return E(gr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Qt,sr){var Qr=this,Cn=this.props;if(!Cn.beforeUpload)return setTimeout(function(){return Qr.post(Qt)},0);var Fn=Cn.beforeUpload(Qt,sr);Fn&&Fn.then?Fn.then(function(ti){var ki=Object.prototype.toString.call(ti);return ki==="[object File]"||ki==="[object Blob]"?Qr.post(ti):Qr.post(Qt)}).catch(function(ti){console.log(ti)}):Fn!==!1&&setTimeout(function(){return Qr.post(Qt)},0);return}},{key:"post",value:function(Qt){var sr=this;if(!this._isMounted)return;var Qr=this.props,Cn=Qr.onStart,Fn=Qr.onProgress,ti=Qr.transformFile,ki=ti===void 0?function(Dn){return Dn}:ti;new Promise(function(Dn){var Bn=Qr.action;return typeof Bn=="function"&&(Bn=Bn(Qt)),Dn(Bn)}).then(function(Dn){var Bn=Qt.uid,Ft=Qr.customRequest||r,vt=Promise.resolve(ki(Qt)).then(function(_e){var Ne=Qr.data;return typeof Ne=="function"&&(Ne=Ne(_e)),Promise.all([_e,Ne])}).catch(function(_e){console.error(_e)});vt.then(function(_e){var Ne=_(_e,2),Ie=Ne[0],Ze=Ne[1],ct={action:Dn,filename:Qr.name,data:Ze,file:Ie,headers:Qr.headers,withCredentials:Qr.withCredentials,method:Qr.method||"post",onProgress:Fn?function(gt){Fn(gt,Qt)}:null,onSuccess:function(kt,xr){delete sr.reqs[Bn],Qr.onSuccess(kt,Qt,xr)},onError:function(kt,xr){delete sr.reqs[Bn],Qr.onError(kt,xr,Qt)}};Cn(Qt),sr.reqs[Bn]=Ft(ct)})})}},{key:"reset",value:function(){this.setState({uid:h()})}},{key:"abort",value:function(Qt){var sr=this.reqs;if(Qt){var Qr=Qt;Qt&&Qt.uid&&(Qr=Qt.uid),sr[Qr]&&sr[Qr].abort&&sr[Qr].abort(),delete sr[Qr]}else Object.keys(sr).forEach(function(Cn){sr[Cn]&&sr[Cn].abort&&sr[Cn].abort(),delete sr[Cn]})}},{key:"render",value:function(){var Qt,sr=this.props,Qr=sr.component,Cn=sr.prefixCls,Fn=sr.className,ti=sr.disabled,ki=sr.id,Dn=sr.style,Bn=sr.multiple,Ft=sr.accept,vt=sr.children,_e=sr.directory,Ne=sr.openFileDialogOnClick,Ie=sr.onMouseEnter,Ze=sr.onMouseLeave,ct=I(sr,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),gt=a()((Qt={},C(Qt,Cn,!0),C(Qt,Cn+"-disabled",ti),C(Qt,Fn,Fn),Qt)),kt=ti?{}:{onClick:Ne?this.onClick:function(){},onKeyDown:Ne?this.onKeyDown:function(){},onMouseEnter:Ie,onMouseLeave:Ze,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return n.a.createElement(Qr,T({},kt,{className:gt,role:"button",style:Dn}),n.a.createElement("input",T({},B(ct),{id:ki,type:"file",ref:this.saveFileInput,onClick:function(Hr){return Hr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ft,directory:_e?"directory":null,webkitdirectory:_e?"webkitdirectory":null,multiple:Bn,onChange:this.onChange})),vt)}}]),gr}(o.Component),X=P,M=Object.assign||function(fr){for(var gr=1;gr<arguments.length;gr++){var dn=arguments[gr];for(var Qt in dn)Object.prototype.hasOwnProperty.call(dn,Qt)&&(fr[Qt]=dn[Qt])}return fr},z=function(){function fr(gr,dn){for(var Qt=0;Qt<dn.length;Qt++){var sr=dn[Qt];sr.enumerable=sr.enumerable||!1,sr.configurable=!0,"value"in sr&&(sr.writable=!0),Object.defineProperty(gr,sr.key,sr)}}return function(gr,dn,Qt){return dn&&fr(gr.prototype,dn),Qt&&fr(gr,Qt),gr}}();function W(fr,gr){if(!(fr instanceof gr))throw new TypeError("Cannot call a class as a function")}function H(fr,gr){if(!fr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return gr&&(typeof gr=="object"||typeof gr=="function")?gr:fr}function V(fr,gr){if(typeof gr!="function"&&gr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof gr);fr.prototype=Object.create(gr&&gr.prototype,{constructor:{value:fr,enumerable:!1,writable:!0,configurable:!0}}),gr&&(Object.setPrototypeOf?Object.setPrototypeOf(fr,gr):fr.__proto__=gr)}function Q(){}var G=function(fr){V(gr,fr);function gr(){var dn,Qt,sr,Qr;W(this,gr);for(var Cn=arguments.length,Fn=Array(Cn),ti=0;ti<Cn;ti++)Fn[ti]=arguments[ti];return Qr=(Qt=(sr=H(this,(dn=gr.__proto__||Object.getPrototypeOf(gr)).call.apply(dn,[this].concat(Fn))),sr),sr.saveUploader=function(ki){sr.uploader=ki},Qt),H(sr,Qr)}return z(gr,[{key:"abort",value:function(Qt){this.uploader.abort(Qt)}},{key:"render",value:function(){return n.a.createElement(X,M({},this.props,{ref:this.saveUploader}))}}]),gr}(o.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,q=ee,se=function(fr,gr){var dn={};for(var Qt in fr)Object.prototype.hasOwnProperty.call(fr,Qt)&&gr.indexOf(Qt)<0&&(dn[Qt]=fr[Qt]);if(fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sr=0,Qt=Object.getOwnPropertySymbols(fr);sr<Qt.length;sr++)gr.indexOf(Qt[sr])<0&&Object.prototype.propertyIsEnumerable.call(fr,Qt[sr])&&(dn[Qt[sr]]=fr[Qt[sr]]);return dn},re=function(gr,dn){var Qt=gr.style,sr=gr.height,Qr=se(gr,["style","height"]);return o.createElement(vr,f()({ref:dn},Qr,{type:"drag",style:f()(f()({},Qt),{height:sr})}))},Ae=o.forwardRef(re);Ae.displayName="Dragger";var Te=Ae,Re=i("UmKh"),Ge=i("gZBC"),Ue=i.n(Ge),nt=i("+d4F"),Le=i.n(nt),le=i("XAae"),Xe=i.n(le),pe=i("6xvX"),Z=i.n(pe),Y=i("qPY4"),ne=i.n(Y),ce=i("QB+1"),ye=i.n(ce),Ee=i("Qs3X"),Ce=i.n(Ee),ue=i("0n0R");function ge(){return!0}function Oe(fr){return f()(f()({},fr),{lastModified:fr.lastModified,lastModifiedDate:fr.lastModifiedDate,name:fr.name,size:fr.size,type:fr.type,uid:fr.uid,percent:0,originFileObj:fr})}function Je(fr,gr){var dn=fr.uid!==void 0?"uid":"name";return gr.filter(function(Qt){return Qt[dn]===fr[dn]})[0]}function lt(fr,gr){var dn=fr.uid!==void 0?"uid":"name",Qt=gr.filter(function(sr){return sr[dn]!==fr[dn]});return Qt.length===gr.length?null:Qt}var tt=function(){var gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",dn=gr.split("/"),Qt=dn[dn.length-1],sr=Qt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(sr)||[""])[0]},ke=function(gr){return gr.indexOf("image/")===0},st=function(gr){if(gr.type&&!gr.thumbUrl)return ke(gr.type);var dn=gr.thumbUrl||gr.url,Qt=tt(dn);return/^data:image\//.test(dn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Qt)?!0:/^data:/.test(dn)?!1:!Qt},Ve=200;function Ot(fr){return new Promise(function(gr){if(!fr.type||!ke(fr.type)){gr("");return}var dn=document.createElement("canvas");dn.width=Ve,dn.height=Ve,dn.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(Ve,"px; height: ").concat(Ve,"px; z-index: 9999; display: none;"),document.body.appendChild(dn);var Qt=dn.getContext("2d"),sr=new Image;sr.onload=function(){var Qr=sr.width,Cn=sr.height,Fn=Ve,ti=Ve,ki=0,Dn=0;Qr<Cn?(ti=Cn*(Ve/Qr),Dn=-(ti-Fn)/2):(Fn=Qr*(Ve/Cn),ki=-(Fn-ti)/2),Qt.drawImage(sr,ki,Dn,Fn,ti);var Bn=dn.toDataURL();document.body.removeChild(dn),gr(Bn)},sr.src=window.URL.createObjectURL(fr)})}var Ut=i("3S7+"),ir=i("CFYs"),lr=i("H84U"),Sr=i("2/Rp"),mt=i("hkKa"),or=function(gr,dn){var Qt,sr=gr.listType,Qr=gr.previewFile,Cn=gr.onPreview,Fn=gr.onDownload,ti=gr.onRemove,ki=gr.locale,Dn=gr.iconRender,Bn=gr.isImageUrl,Ft=gr.prefixCls,vt=gr.items,_e=vt===void 0?[]:vt,Ne=gr.showPreviewIcon,Ie=gr.showRemoveIcon,Ze=gr.showDownloadIcon,ct=gr.removeIcon,gt=gr.downloadIcon,kt=gr.progress,xr=Object(mt.a)();o.useEffect(function(){if(sr!=="picture"&&sr!=="picture-card")return;(_e||[]).forEach(function(Tr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Tr.originFileObj instanceof File||Tr.originFileObj instanceof Blob)||Tr.thumbUrl!==void 0)return;Tr.thumbUrl="",Qr&&Qr(Tr.originFileObj).then(function(yr){Tr.thumbUrl=yr||"",xr()})})},[sr,_e,Qr]);var Hr=function(yr,en){return Cn?(en.preventDefault(),Cn(yr)):void 0},on=function(yr){typeof Fn=="function"?Fn(yr):yr.url&&window.open(yr.url)},Nt=function(yr){ti&&ti(yr)},ot=function(yr){if(Dn)return Dn(yr,sr);var en=yr.status==="uploading",sn=Bn&&Bn(yr)?o.createElement(Xe.a,null):o.createElement(Z.a,null),Vn=en?o.createElement(Ue.a,null):o.createElement(Le.a,null);return sr==="picture"?Vn=en?o.createElement(Ue.a,null):sn:sr==="picture-card"&&(Vn=en?ki.uploading:sn),Vn},dt=function(yr,en,sn,Vn){var jn={type:"text",size:"small",title:Vn,onClick:function(gi){en(),Object(ue.b)(yr)&&yr.props.onClick&&yr.props.onClick(gi)},className:"".concat(sn,"-list-item-card-actions-btn")};if(Object(ue.b)(yr)){var ri=Object(ue.a)(yr,f()(f()({},yr.props),{onClick:function(){}}));return o.createElement(Sr.a,f()({},jn,{icon:ri}))}return o.createElement(Sr.a,jn,o.createElement("span",null,yr))};o.useImperativeHandle(dn,function(){return{handlePreview:Hr,handleDownload:on}});var Yt=o.useContext(lr.b),Pt=Yt.getPrefixCls,Et=Yt.direction,Bt=Pt("upload",Ft),wt=_e.map(function(Tr){var yr,en,sn,Vn=ot(Tr),jn=o.createElement("div",{className:"".concat(Bt,"-text-icon")},Vn);if(sr==="picture"||sr==="picture-card")if(Tr.status==="uploading"||!Tr.thumbUrl&&!Tr.url){var ri,ci=a()((ri={},p()(ri,"".concat(Bt,"-list-item-thumbnail"),!0),p()(ri,"".concat(Bt,"-list-item-file"),Tr.status!=="uploading"),ri));jn=o.createElement("div",{className:ci},Vn)}else{var gi,Ni=Bn&&Bn(Tr)?o.createElement("img",{src:Tr.thumbUrl||Tr.url,alt:Tr.name,className:"".concat(Bt,"-list-item-image")}):Vn,Qe=a()((gi={},p()(gi,"".concat(Bt,"-list-item-thumbnail"),!0),p()(gi,"".concat(Bt,"-list-item-file"),Bn&&!Bn(Tr)),gi));jn=o.createElement("a",{className:Qe,onClick:function(hn){return Hr(Tr,hn)},href:Tr.url||Tr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ni)}if(Tr.status==="uploading"){var Se="percent"in Tr?o.createElement(ir.a,f()({},kt,{type:"line",percent:Tr.percent})):null;sn=o.createElement("div",{className:"".concat(Bt,"-list-item-progress"),key:"progress"},Se)}var Pe=a()((yr={},p()(yr,"".concat(Bt,"-list-item"),!0),p()(yr,"".concat(Bt,"-list-item-").concat(Tr.status),!0),p()(yr,"".concat(Bt,"-list-item-list-type-").concat(sr),!0),yr)),He=typeof Tr.linkProps=="string"?JSON.parse(Tr.linkProps):Tr.linkProps,Ye=Ie?dt(ct||o.createElement(ye.a,null),function(){return Nt(Tr)},Bt,ki.removeFile):null,ze=Ze&&Tr.status==="done"?dt(gt||o.createElement(Ce.a,null),function(){return on(Tr)},Bt,ki.downloadFile):null,$e=sr!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(Bt,"-list-item-card-actions ").concat(sr==="picture"?"picture":"")},ze,Ye),St=a()((en={},p()(en,"".concat(Bt,"-list-item-name"),!0),p()(en,"".concat(Bt,"-list-item-name-icon-count-").concat([ze,Ye].filter(function(Un){return Un}).length),!0),en)),ft=Tr.url?[o.createElement("a",f()({key:"view",target:"_blank",rel:"noopener noreferrer",className:St,title:Tr.name},He,{href:Tr.url,onClick:function(hn){return Hr(Tr,hn)}}),Tr.name),$e]:[o.createElement("span",{key:"view",className:St,onClick:function(hn){return Hr(Tr,hn)},title:Tr.name},Tr.name),$e],Ht={pointerEvents:"none",opacity:.5},Er=Ne?o.createElement("a",{href:Tr.url||Tr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Tr.url||Tr.thumbUrl?void 0:Ht,onClick:function(hn){return Hr(Tr,hn)},title:ki.previewFile},o.createElement(ne.a,null)):null,Fr=sr==="picture-card"&&Tr.status!=="uploading"&&o.createElement("span",{className:"".concat(Bt,"-list-item-actions")},Er,Tr.status==="done"&&ze,Ye),tn;Tr.response&&typeof Tr.response=="string"?tn=Tr.response:tn=Tr.error&&Tr.error.statusText||ki.uploadError;var Zt=o.createElement("span",null,jn,ft),Rn=o.createElement("div",{className:Pe},o.createElement("div",{className:"".concat(Bt,"-list-item-info")},Zt),Fr,o.createElement(Re.a,{transitionName:"fade",component:""},sn)),vn=a()(p()({},"".concat(Bt,"-list-picture-card-container"),sr==="picture-card"));return o.createElement("div",{key:Tr.uid,className:vn},Tr.status==="error"?o.createElement(Ut.a,{title:tn,getPopupContainer:function(hn){return hn.parentNode}},Rn):o.createElement("span",null,Rn))}),Mt=a()((Qt={},p()(Qt,"".concat(Bt,"-list"),!0),p()(Qt,"".concat(Bt,"-list-").concat(sr),!0),p()(Qt,"".concat(Bt,"-list-rtl"),Et==="rtl"),Qt)),Nr=sr==="picture-card"?"animate-inline":"animate";return o.createElement(Re.a,{transitionName:"".concat(Bt,"-").concat(Nr),component:"div",className:Mt},wt)},et=o.forwardRef(or);et.displayName="UploadList",et.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Ot,isImageUrl:st};var ur=et,qr=i("YMnH"),Fe=i("ZvpZ"),$t=i("uaoM"),Lr=i("sPtV"),pt=function(gr,dn){var Qt,sr=gr.fileList,Qr=gr.defaultFileList,Cn=gr.onRemove,Fn=gr.showUploadList,ti=gr.listType,ki=gr.onPreview,Dn=gr.onDownload,Bn=gr.previewFile,Ft=gr.disabled,vt=gr.locale,_e=gr.iconRender,Ne=gr.isImageUrl,Ie=gr.progress,Ze=gr.prefixCls,ct=gr.className,gt=gr.type,kt=gr.children,xr=gr.style,Hr=Object(Lr.a)(sr||Qr||[]),on=u()(Hr,2),Nt=on[0],ot=on[1],dt=o.useState("drop"),Yt=u()(dt,2),Pt=Yt[0],Et=Yt[1],Bt=o.useRef();o.useEffect(function(){ot(sr||Qr||[]),Object($t.a)("fileList"in gr||!("value"in gr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in gr&&ot(sr||[])},[sr]);var wt=function(ft){"fileList"in gr||ot(ft.fileList);var Ht=gr.onChange;Ht&&Ht(f()(f()({},ft),{fileList:v()(ft.fileList)}))},Mt=function(ft){var Ht=Oe(ft);Ht.status="uploading";var Er=Nt().concat(),Fr=Er.findIndex(function(tn){var Zt=tn.uid;return Zt===Ht.uid});Fr===-1?Er.push(Ht):Er[Fr]=Ht,wt({file:Ht,fileList:Er})},Nr=function(ft,Ht,Er){try{typeof ft=="string"&&(ft=JSON.parse(ft))}catch(tn){}var Fr=Je(Ht,Nt());if(!Fr)return;Fr.status="done",Fr.response=ft,Fr.xhr=Er,wt({file:f()({},Fr),fileList:Nt().concat()})},Tr=function(ft,Ht){var Er=Je(Ht,Nt());if(!Er)return;Er.percent=ft.percent,wt({event:ft,file:f()({},Er),fileList:Nt().concat()})},yr=function(ft,Ht,Er){var Fr=Je(Er,Nt());if(!Fr)return;Fr.error=ft,Fr.response=Ht,Fr.status="error",wt({file:f()({},Fr),fileList:Nt().concat()})},en=function(ft){Promise.resolve(typeof Cn=="function"?Cn(ft):Cn).then(function(Ht){if(Ht===!1)return;var Er=lt(ft,Nt());Er&&(ft.status="removed",Bt.current&&Bt.current.abort(ft),wt({file:ft,fileList:Er}))})},sn=function(ft){Et(ft.type)},Vn=function(ft,Ht){var Er=gr.beforeUpload;if(!Er)return!0;var Fr=Er(ft,Ht);if(Fr===!1){var tn=[];return Nt().concat(Ht.map(Oe)).forEach(function(Zt){tn.every(function(Rn){return Rn.uid!==Zt.uid})&&tn.push(Zt)}),wt({file:ft,fileList:tn}),!1}return Fr&&Fr.then?Fr:!0},jn=Object(mt.a)();o.useImperativeHandle(dn,function(){return{onStart:Mt,onSuccess:Nr,onProgress:Tr,onError:yr,fileList:Nt(),upload:Bt.current,forceUpdate:jn}});var ri=function(ft){var Ht=Fn.showRemoveIcon,Er=Fn.showPreviewIcon,Fr=Fn.showDownloadIcon,tn=Fn.removeIcon,Zt=Fn.downloadIcon;return o.createElement(ur,{listType:ti,items:Nt(),previewFile:Bn,onPreview:ki,onDownload:Dn,onRemove:en,showRemoveIcon:!Ft&&Ht,showPreviewIcon:Er,showDownloadIcon:Fr,removeIcon:tn,downloadIcon:Zt,iconRender:_e,locale:f()(f()({},ft),vt),isImageUrl:Ne,progress:Ie})},ci=o.useContext(lr.b),gi=ci.getPrefixCls,Ni=ci.direction,Qe=gi("upload",Ze),Se=f()(f()({onStart:Mt,onError:yr,onProgress:Tr,onSuccess:Nr},gr),{prefixCls:Qe,beforeUpload:Vn});delete Se.className,delete Se.style,(!kt||Ft)&&delete Se.id;var Pe=Fn?o.createElement(qr.a,{componentName:"Upload",defaultLocale:Fe.a.Upload},ri):null;if(gt==="drag"){var He,Ye=a()(Qe,(He={},p()(He,"".concat(Qe,"-drag"),!0),p()(He,"".concat(Qe,"-drag-uploading"),Nt().some(function(St){return St.status==="uploading"})),p()(He,"".concat(Qe,"-drag-hover"),Pt==="dragover"),p()(He,"".concat(Qe,"-disabled"),Ft),p()(He,"".concat(Qe,"-rtl"),Ni==="rtl"),He),ct);return o.createElement("span",null,o.createElement("div",{className:Ye,onDrop:sn,onDragOver:sn,onDragLeave:sn,style:xr},o.createElement(q,f()({},Se,{ref:Bt,className:"".concat(Qe,"-btn")}),o.createElement("div",{className:"".concat(Qe,"-drag-container")},kt))),Pe)}var ze=a()(Qe,(Qt={},p()(Qt,"".concat(Qe,"-select"),!0),p()(Qt,"".concat(Qe,"-select-").concat(ti),!0),p()(Qt,"".concat(Qe,"-disabled"),Ft),p()(Qt,"".concat(Qe,"-rtl"),Ni==="rtl"),Qt)),$e=o.createElement("div",{className:ze,style:kt?void 0:{display:"none"}},o.createElement(q,f()({},Se,{ref:Bt})));return ti==="picture-card"?o.createElement("span",{className:a()(ct,"".concat(Qe,"-picture-card-wrapper"))},Pe,$e):o.createElement("span",{className:ct},$e,Pe)},qt=o.forwardRef(pt);qt.Dragger=Te,qt.displayName="Upload",qt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:ge,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var vr=qt;vr.Dragger=Te;var pn=D.a=vr},"98bh":function(k,D,i){var y=i("ProS"),p=i("5GtS"),S=i("bYtY"),v=i("4NO4"),m=i("OELB"),f=m.getPercentWithPrecision,d=i("cCMj"),u=i("KxfA"),o=u.retrieveRawAttr,n=i("D5nY"),t=n.makeSeriesEncodeForNameBased,a=i("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new a(S.bind(this.getData,this),S.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(r)},mergeOption:function(r){e.superCall(this,"mergeOption",r),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(r,s){return p(this,{coordDimensions:["value"],encodeDefaulter:S.curry(t,this)})},_createSelectableList:function(){for(var r=this.getRawData(),s=r.mapDimension("value"),c=[],h=0,g=r.count();h<g;h++)c.push({name:r.getName(h),value:r.get(s,h),selected:o(r,h,"selected")});return c},getDataParams:function(r){var s=this.getData(),c=e.superCall(this,"getDataParams",r),h=[];return s.each(s.mapDimension("value"),function(g){h.push(g)}),c.percent=f(h,r,s.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(r){v.defaultEmphasis(r,"labelLine",["show"]);var s=r.labelLine,c=r.emphasis.labelLine;s.show=s.show&&r.label.show,c.show=c.show&&r.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"}});S.mixin(e,d);var l=e;k.exports=l},"9H2F":function(k,D,i){var y=i("bYtY"),p=y.assert,S=y.isArray,v=i("Tghj"),m=v.__DEV__;function f(a){return new d(a)}function d(a){a=a||{},this._reset=a.reset,this._plan=a.plan,this._count=a.count,this._onDirty=a.onDirty,this._dirty=!0,this.context}var u=d.prototype;u.perform=function(a){var e=this._upstream,l=a&&a.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var s;this._plan&&!l&&(s=this._plan(this.context));var c=b(this._modBy),h=this._modDataCount||0,g=b(a&&a.modBy),A=a&&a.modDataCount||0;(c!==g||h!==A)&&(s="reset");function b(O){return!(O>=1)&&(O=1),O}var w;(this._dirty||s==="reset")&&(this._dirty=!1,w=t(this,l)),this._modBy=g,this._modDataCount=A;var x=a&&a.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var T=this._dueIndex,_=Math.min(x!=null?this._dueIndex+x:Infinity,this._dueEnd);if(!l&&(w||T<_)){var E=this._progress;if(S(E))for(var C=0;C<E.length;C++)n(this,E[C],T,_,g,A);else n(this,E,T,_,g,A)}this._dueIndex=_;var I=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=I}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o=function(){var a,e,l,r,s,c={reset:function(A,b,w,x){e=A,a=b,l=w,r=x,s=Math.ceil(r/l),c.next=l>1&&r>0?g:h}};return c;function h(){return e<a?e++:null}function g(){var A=e%s*l+Math.ceil(e/s),b=e>=a?null:A<r?A:e;return e++,b}}();u.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function n(a,e,l,r,s,c){o.reset(l,r,s,c),a._callingProgress=e,a._callingProgress({start:l,end:r,count:r-l,next:o.next},a.context)}function t(a,e){a._dueIndex=a._outputDueEnd=a._dueEnd=0,a._settedOutputEnd=null;var l,r;!e&&a._reset&&(l=a._reset(a.context),l&&l.progress&&(r=l.forceFirstProgress,l=l.progress),S(l)&&!l.length&&(l=null)),a._progress=l,a._modBy=a._modDataCount=null;var s=a._downstream;return s&&s.dirty(),r}u.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},u.pipe=function(a){(this._downstream!==a||this._dirty)&&(this._downstream=a,a._upstream=this,a.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(a){this._outputDueEnd=this._settedOutputEnd=a},D.createTask=f},"9KIM":function(k,D,i){var y=i("mFDi"),p=i("xSat"),S=p.onIrrelevantElement,v=i("IwbS");function m(o){return o=u(o),function(n,t){return v.clipPointsByRect(n,o)}}function f(o,n){return o=u(o),function(t){var a=n!=null?n:t,e=a?o.width:o.height,l=a?o.x:o.y;return[l,l+(e||0)]}}function d(o,n,t){return o=u(o),function(a,e,l){return o.contain(e[0],e[1])&&!S(a,n,t)}}function u(o){return y.create(o)}D.makeRectPanelClipPath=m,D.makeLinearBrushOtherExtent=f,D.makeRectIsTargetByCursor=d},"9OqN":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.CTR=function(){var p=y.lib.BlockCipherMode.extend(),S=p.Encryptor=p.extend({processBlock:function(m,f){var d=this._cipher,u=d.blockSize,o=this._iv,n=this._counter;o&&(n=this._counter=o.slice(0),this._iv=void 0);var t=n.slice(0);d.encryptBlock(t,0),n[u-1]=n[u-1]+1|0;for(var a=0;a<u;a++)m[f+a]^=t[a]}});return p.Decryptor=S,p}(),y.mode.CTR})},"9ama":function(k,D,i){},"9eas":function(k,D,i){i("HM/N"),i("tBnm")},"9hCq":function(k,D,i){var y=i("IwbS"),p=i("+TT/"),S=i("bYtY"),v=i("VaxA"),m=v.wrapTreePathInfo,f=8,d=8,u=5;function o(e){this.group=new y.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,l,r,s){var c=e.getModel("breadcrumb"),h=this.group;if(h.removeAll(),!c.get("show")||!r)return;var g=c.getModel("itemStyle"),A=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(r,b,A),this._renderContent(e,b,g,A,s),p.positionElement(h,b.pos,b.box)},_prepare:function(e,l,r){for(var s=e;s;s=s.parentNode){var c=s.getModel().get("name"),h=r.getTextRect(c),g=Math.max(h.width+f*2,l.emptyItemWidth);l.totalWidth+=g+d,l.renderList.push({node:s,text:c,width:g})}},_renderContent:function(e,l,r,s,c){for(var h=0,g=l.emptyItemWidth,A=e.get("breadcrumb.height"),b=p.getAvailableSize(l.pos,l.box),w=l.totalWidth,x=l.renderList,T=x.length-1;T>=0;T--){var _=x[T],E=_.node,C=_.width,I=_.text;w>b.width&&(w-=C-g,C=g,I=null);var O=new y.Polygon({shape:{points:n(h,0,C,A,T===x.length-1,T===0)},style:S.defaults(r.getItemStyle(),{lineJoin:"bevel",text:I,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:S.curry(c,E)});this.group.add(O),t(O,e,E),h+=C+d}},remove:function(){this.group.removeAll()}};function n(e,l,r,s,c,h){var g=[[c?e:e-u,l],[e+r,l],[e+r,l+s],[c?e:e-u,l+s]];return!h&&g.splice(2,0,[e+r+u,l+s/2]),!c&&g.push([e,l+s/2]),g}function t(e,l,r){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&m(r,l)}}var a=o;k.exports=a},"9u0u":function(k,D,i){var y=i("bYtY");function p(v,m){var f={};return y.each(v,function(d){d.each(d.mapDimension("value"),function(u,o){var n="ec-"+d.getName(o);f[n]=f[n]||[],isNaN(u)||f[n].push(u)})}),v[0].map(v[0].mapDimension("value"),function(d,u){for(var o="ec-"+v[0].getName(u),n=0,t=Infinity,a=-Infinity,e=f[o].length,l=0;l<e;l++)t=Math.min(t,f[o][l]),a=Math.max(a,f[o][l]),n+=f[o][l];var r;return m==="min"?r=t:m==="max"?r=a:m==="average"?r=n/e:r=n,e===0?NaN:r})}function S(v){var m={};v.eachSeriesByType("map",function(f){var d=f.getHostGeoModel(),u=d?"o"+d.id:"i"+f.getMapType();(m[u]=m[u]||[]).push(f)}),y.each(m,function(f,d){for(var u=p(y.map(f,function(n){return n.getData()}),f[0].get("mapValueCalculation")),o=0;o<f.length;o++)f[o].originalData=f[o].getData();for(var o=0;o<f.length;o++)f[o].seriesGroup=f,f[o].needsDrawMap=o===0&&!f[o].getHostGeoModel(),f[o].setData(u.cloneShallow()),f[o].mainSeries=f[0]})}k.exports=S},"9wZj":function(k,D,i){var y=i("IwbS"),p=i("FBjb"),S=i("bYtY"),v=S.isObject;function m(t){this.group=new y.Group,this._symbolCtor=t||p}var f=m.prototype;function d(t,a,e,l){return a&&!isNaN(a[0])&&!isNaN(a[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(a[0],a[1]))&&t.getItemVisual(e,"symbol")!=="none"}f.updateData=function(t,a){a=u(a);var e=this.group,l=t.hostModel,r=this._data,s=this._symbolCtor,c=o(t);r||e.removeAll(),t.diff(r).add(function(h){var g=t.getItemLayout(h);if(d(t,g,h,a)){var A=new s(t,h,c);A.attr("position",g),t.setItemGraphicEl(h,A),e.add(A)}}).update(function(h,g){var A=r.getItemGraphicEl(g),b=t.getItemLayout(h);if(!d(t,b,h,a)){e.remove(A);return}A?(A.updateData(t,h,c),y.updateProps(A,{position:b},l)):(A=new s(t,h),A.attr("position",b)),e.add(A),t.setItemGraphicEl(h,A)}).remove(function(h){var g=r.getItemGraphicEl(h);g&&g.fadeOut(function(){e.remove(g)})}).execute(),this._data=t},f.isPersistent=function(){return!0},f.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(a,e){var l=t.getItemLayout(e);a.attr("position",l)})},f.incrementalPrepareUpdate=function(t){this._seriesScope=o(t),this._data=null,this.group.removeAll()},f.incrementalUpdate=function(t,a,e){e=u(e);function l(h){h.isGroup||(h.incremental=h.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){var s=a.getItemLayout(r);if(d(a,s,r,e)){var c=new this._symbolCtor(a,r,this._seriesScope);c.traverse(l),c.attr("position",s),this.group.add(c),a.setItemGraphicEl(r,c)}}};function u(t){return t!=null&&!v(t)&&(t={isIgnore:t}),t||{}}f.remove=function(t){var a=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(l){l.fadeOut(function(){a.remove(l)})}):a.removeAll()};function o(t){var a=t.hostModel;return{itemStyle:a.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:a.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a.getModel("label"),hoverLabelModel:a.getModel("emphasis.label"),cursorStyle:a.get("cursor")}}var n=m;k.exports=n},"9yH6":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("q1tI"),f=i("x1Ya"),d=i("TSYQ"),u=i.n(d),o=i("H84U"),n=m.createContext(null),t=n.Provider,a=n,e=i("cDf5"),l=i.n(e);function r(P,X){typeof P=="function"?P(X):l()(P)==="object"&&P&&"current"in P&&(P.current=X)}function s(){for(var P=arguments.length,X=new Array(P),M=0;M<P;M++)X[M]=arguments[M];return function(z){X.forEach(function(W){r(W,z)})}}var c=i("uaoM"),h=function(P,X){var M={};for(var z in P)Object.prototype.hasOwnProperty.call(P,z)&&X.indexOf(z)<0&&(M[z]=P[z]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,z=Object.getOwnPropertySymbols(P);W<z.length;W++)X.indexOf(z[W])<0&&Object.prototype.propertyIsEnumerable.call(P,z[W])&&(M[z[W]]=P[z[W]]);return M},g=function(X,M){var z,W=m.useContext(a),H=m.useContext(o.b),V=H.getPrefixCls,Q=H.direction,G=m.useRef(),ee=s(M,G);m.useEffect(function(){Object(c.a)(!("optionType"in X),"Radio","`optionType` is only support in Radio.Group.")},[]);var q=function(le){X.onChange&&X.onChange(le),(W==null?void 0:W.onChange)&&W.onChange(le)},se=X.prefixCls,re=X.className,Ae=X.children,Te=X.style,Re=h(X,["prefixCls","className","children","style"]),Ge=V("radio",se),Ue=v()({},Re);W&&(Ue.name=W.name,Ue.onChange=q,Ue.checked=X.value===W.value,Ue.disabled=X.disabled||W.disabled);var nt=u()(re,(z={},p()(z,"".concat(Ge,"-wrapper"),!0),p()(z,"".concat(Ge,"-wrapper-checked"),Ue.checked),p()(z,"".concat(Ge,"-wrapper-disabled"),Ue.disabled),p()(z,"".concat(Ge,"-wrapper-rtl"),Q==="rtl"),z));return m.createElement("label",{className:nt,style:Te,onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave},m.createElement(f.a,v()({},Ue,{prefixCls:Ge,ref:ee})),Ae!==void 0?m.createElement("span",null,Ae):null)},A=m.forwardRef(g);A.displayName="Radio",A.defaultProps={type:"radio"};var b=A,w=i("J4zp"),x=i.n(w),T=i("6cGi"),_=i("3Nzz"),E=m.forwardRef(function(P,X){var M=m.useContext(o.b),z=M.getPrefixCls,W=M.direction,H=m.useContext(_.b),V=Object(T.a)(P.defaultValue,{value:P.value}),Q=x()(V,2),G=Q[0],ee=Q[1],q=function(Ae){var Te=G,Re=Ae.target.value;"value"in P||ee(Re);var Ge=P.onChange;Ge&&Re!==Te&&Ge(Ae)},se=function(){var Ae,Te=P.prefixCls,Re=P.className,Ge=Re===void 0?"":Re,Ue=P.options,nt=P.optionType,Le=P.buttonStyle,le=P.disabled,Xe=P.children,pe=P.size,Z=P.style,Y=P.id,ne=P.onMouseEnter,ce=P.onMouseLeave,ye=z("radio",Te),Ee="".concat(ye,"-group"),Ce=Xe;if(Ue&&Ue.length>0){var ue=nt==="button"?"".concat(ye,"-button"):ye;Ce=Ue.map(function(Je){return typeof Je=="string"?m.createElement(b,{ref:X,key:Je,prefixCls:ue,disabled:le,value:Je,checked:G===Je},Je):m.createElement(b,{ref:X,key:"radio-group-value-options-".concat(Je.value),prefixCls:ue,disabled:Je.disabled||le,value:Je.value,checked:G===Je.value,style:Je.style},Je.label)})}var ge=pe||H,Oe=u()(Ee,"".concat(Ee,"-").concat(Le),(Ae={},p()(Ae,"".concat(Ee,"-").concat(ge),ge),p()(Ae,"".concat(Ee,"-rtl"),W==="rtl"),Ae),Ge);return m.createElement("div",{className:Oe,style:Z,onMouseEnter:ne,onMouseLeave:ce,id:Y},Ce)};return m.createElement(t,{value:{onChange:q,value:G,disabled:P.disabled,name:P.name}},se())});E.defaultProps={buttonStyle:"outline"};var C=m.memo(E),I=function(P,X){var M={};for(var z in P)Object.prototype.hasOwnProperty.call(P,z)&&X.indexOf(z)<0&&(M[z]=P[z]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,z=Object.getOwnPropertySymbols(P);W<z.length;W++)X.indexOf(z[W])<0&&Object.prototype.propertyIsEnumerable.call(P,z[W])&&(M[z[W]]=P[z[W]]);return M},O=function(X,M){var z=m.useContext(a),W=m.useContext(o.b),H=W.getPrefixCls,V=X.prefixCls,Q=I(X,["prefixCls"]),G=H("radio-button",V);return z&&(Q.checked=X.value===z.value,Q.disabled=X.disabled||z.disabled),m.createElement(b,v()({prefixCls:G},Q,{type:"radio",ref:M}))},F=m.forwardRef(O),R=b;R.Button=F,R.Group=C;var B=D.a=R},A1Ka:function(k,D,i){var y=i("bLfw"),p=i("sS/r"),S=i("D5nY"),v=S.detectSourceFormat,m=i("k9D9"),f=m.SERIES_LAYOUT_BY_COLUMN;y.extend({type:"dataset",defaultOption:{seriesLayoutBy:f,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){v(this)}}),p.extend({type:"dataset"})},A90E:function(k,D,i){var y=i("6sVZ"),p=i("V6Ve"),S=Object.prototype,v=S.hasOwnProperty;function m(f){if(!y(f))return p(f);var d=[];for(var u in Object(f))v.call(f,u)&&u!="constructor"&&d.push(u);return d}k.exports=m},ABKa:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("Qs9O")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FolderOutlined";var n=v.forwardRef(o);D.default=n},AE9C:function(k,D,i){var y=i("bYtY"),p=i("crZl"),S=i("IwbS"),v=i("oVpE"),m=v.createSymbol,f=i("+TT/"),d=i("y7Aq"),u=p.extend({type:"visualMap.piecewise",doRender:function(){var n=this.group;n.removeAll();var t=this.visualMapModel,a=t.get("textGap"),e=t.textStyleModel,l=e.getFont(),r=e.getTextColor(),s=this._getItemAlign(),c=t.itemSize,h=this._getViewData(),g=h.endsText,A=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(n,g[0],c,A,s),y.each(h.viewPieceList,b,this),g&&this._renderEndsText(n,g[1],c,A,s),f.box(t.get("orient"),n,t.get("itemGap")),this.renderBackground(n),this.positionGroup(n);function b(w){var x=w.piece,T=new S.Group;T.onclick=y.bind(this._onItemClick,this,x),this._enableHoverLink(T,w.indexInModelPieceList);var _=t.getRepresentValue(x);if(this._createItemSymbol(T,_,[0,0,c[0],c[1]]),A){var E=this.visualMapModel.getValueState(_);T.add(new S.Text({style:{x:s==="right"?-a:c[0]+a,y:c[1]/2,text:x.text,textVerticalAlign:"middle",textAlign:s,textFont:l,textFill:r,opacity:E==="outOfRange"?.5:1}}))}n.add(T)}},_enableHoverLink:function(n,t){n.on("mouseover",y.bind(a,this,"highlight")).on("mouseout",y.bind(a,this,"downplay"));function a(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:d.makeHighDownBatch(l.findTargetDataIndices(t),l)})}},_getItemAlign:function(){var n=this.visualMapModel,t=n.option;if(t.orient==="vertical")return d.getItemAlign(n,this.api,n.itemSize);var a=t.align;return(!a||a==="auto")&&(a="left"),a},_renderEndsText:function(n,t,a,e,l){if(!t)return;var r=new S.Group,s=this.visualMapModel.textStyleModel;r.add(new S.Text({style:{x:e?l==="right"?a[0]:0:a[0]/2,y:a[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),n.add(r)},_getViewData:function(){var n=this.visualMapModel,t=y.map(n.getPieceList(),function(r,s){return{piece:r,indexInModelPieceList:s}}),a=n.get("text"),e=n.get("orient"),l=n.get("inverse");return(e==="horizontal"?l:!l)?t.reverse():a&&(a=a.slice().reverse()),{viewPieceList:t,endsText:a}},_createItemSymbol:function(n,t,a){n.add(m(this.getControllerVisual(t,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(t,"color")))},_onItemClick:function(n){var t=this.visualMapModel,a=t.option,e=y.clone(a.selected),l=t.getSelectedMapKey(n);a.selectedMode==="single"?(e[l]=!0,y.each(e,function(r,s){e[s]=s===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),o=u;k.exports=o},AEZ6:function(k,D,i){var y=i("bYtY"),p=y.each,S=y.createHashMap,v=i("T4UG"),m=i("MwEJ"),f=v.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(o,n){var t=this.getSource();return d(t,this),m(t,this)},getRawIndicesByActiveState:function(o){var n=this.coordinateSystem,t=this.getData(),a=[];return n.eachActiveState(t,function(e,l){o===e&&a.push(t.getRawIndex(l))}),a},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(o,n){if(o.encodeDefine)return;var t=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(!t)return;var a=o.encodeDefine=S();p(t.dimensions,function(e){var l=u(e);a.set(e,l)})}function u(o){return+o.replace("dim","")}k.exports=f},AH3D:function(k,D,i){var y=i("ProS");i("y4/Y"),i("qWt2"),i("Qvb6"),y.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),y.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("5GtS"),v=i("4NO4"),m=v.defaultEmphasis,f=i("D5nY"),d=f.makeSeriesEncodeForNameBased,u=i("xKMd"),o=y.extendSeriesModel({type:"series.funnel",init:function(t){o.superApply(this,"init",arguments),this.legendVisualProvider=new u(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,a){return S(this,{coordDimensions:["value"],encodeDefaulter:p.curry(d,this)})},_defaultLabelLine:function(t){m(t,"labelLine",["show"]);var a=t.labelLine,e=t.emphasis.labelLine;a.show=a.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var a=this.getData(),e=o.superCall(this,"getDataParams",t),l=a.mapDimension("value"),r=a.getSum(l);return e.percent=r?+(a.get(l,t)/r*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}}}}),n=o;k.exports=n},ALsQ:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.CFB=function(){var p=y.lib.BlockCipherMode.extend();p.Encryptor=p.extend({processBlock:function(m,f){var d=this._cipher,u=d.blockSize;S.call(this,m,f,u,d),this._prevBlock=m.slice(f,f+u)}}),p.Decryptor=p.extend({processBlock:function(m,f){var d=this._cipher,u=d.blockSize,o=m.slice(f,f+u);S.call(this,m,f,u,d),this._prevBlock=o}});function S(v,m,f,d){var u,o=this._iv;o?(u=o.slice(0),this._iv=void 0):u=this._prevBlock,d.encryptBlock(u,0);for(var n=0;n<f;n++)v[m+n]^=u[n]}return p}(),y.mode.CFB})},ANjR:function(k,D,i){var y=i("bYtY");function p(v,m){return m=m||[0,0],y.map([0,1],function(f){var d=m[f],u=v[f]/2,o=[],n=[];return o[f]=d-u,n[f]=d+u,o[1-f]=n[1-f]=m[1-f],Math.abs(this.dataToPoint(o)[f]-this.dataToPoint(n)[f])},this)}function S(v){var m=v.getBoundingRect();return{coordSys:{type:"geo",x:m.x,y:m.y,width:m.width,height:m.height,zoom:v.getZoom()},api:{coord:function(f){return v.dataToPoint(f)},size:y.bind(p,v)}}}k.exports=S},AOa7:function(k,D,i){},AUH6:function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("bMXI"),v=i("W4dC");function m(u,o,n,t){S.call(this,u),this.map=o;var a=v.load(o,n);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=a.regions,this._rect=a.boundingRect}m.prototype={constructor:m,type:"geo",dimensions:["lng","lat"],containCoord:function(u){for(var o=this.regions,n=0;n<o.length;n++)if(o[n].contain(u))return!0;return!1},transformTo:function(u,o,n,t){var a=this.getBoundingRect(),e=this._invertLongitute;a=a.clone(),e&&(a.y=-a.y-a.height);var l=this._rawTransformable;if(l.transform=a.calculateTransform(new p(u,o,n,t)),l.decomposeTransform(),e){var r=l.scale;r[1]=-r[1]}l.updateTransform(),this._updateTransform()},getRegion:function(u){return this._regionsMap.get(u)},getRegionByCoord:function(u){for(var o=this.regions,n=0;n<o.length;n++)if(o[n].contain(u))return o[n]},addGeoCoord:function(u,o){this._nameCoordMap.set(u,o)},getGeoCoord:function(u){return this._nameCoordMap.get(u)},getBoundingRect:function(){return this._rect},dataToPoint:function(u,o,n){if(typeof u=="string"&&(u=this.getGeoCoord(u)),u)return S.prototype.dataToPoint.call(this,u,o,n)},convertToPixel:y.curry(f,"dataToPoint"),convertFromPixel:y.curry(f,"pointToData")},y.mixin(m,S);function f(u,o,n,t){var a=n.geoModel,e=n.seriesModel,l=a?a.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[u](t):null}var d=m;k.exports=d},AVZG:function(k,D,i){var y=i("bYtY");function p(S,v,m){m=m||{};var f=S.coordinateSystem,d=v.axis,u={},o=d.getAxesOnZeroOf()[0],n=d.position,t=o?"onZero":n,a=d.dim,e=f.getRect(),l=[e.x,e.x+e.width,e.y,e.y+e.height],r={left:0,right:1,top:0,bottom:1,onZero:2},s=v.get("offset")||0,c=a==="x"?[l[2]-s,l[3]+s]:[l[0]-s,l[1]+s];if(o){var h=o.toGlobalCoord(o.dataToCoord(0));c[r.onZero]=Math.max(Math.min(h,c[1]),c[0])}u.position=[a==="y"?c[r[t]]:l[0],a==="x"?c[r[t]]:l[3]],u.rotation=Math.PI/2*(a==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};u.labelDirection=u.tickDirection=u.nameDirection=g[n],u.labelOffset=o?c[r[n]]-c[r.onZero]:0,v.get("axisTick.inside")&&(u.tickDirection=-u.tickDirection),y.retrieve(m.labelInside,v.get("axisLabel.inside"))&&(u.labelDirection=-u.labelDirection);var A=v.get("axisLabel.rotate");return u.labelRotate=t==="top"?-A:A,u.z2=1,u}D.layout=p},"Ae+d":function(k,D){function i(p,S,v){var m=p.target,f=m.position;f[0]+=S,f[1]+=v,m.dirty()}function y(p,S,v,m){var f=p.target,d=p.zoomLimit,u=f.position,o=f.scale,n=p.zoom=p.zoom||1;if(n*=S,d){var t=d.min||0,a=d.max||Infinity;n=Math.max(Math.min(a,n),t)}var e=n/p.zoom;p.zoom=n,u[0]-=(v-u[0])*(e-1),u[1]-=(m-u[1])*(e-1),o[0]*=e,o[1]*=e,f.dirty()}D.updateViewOnPan=i,D.updateViewOnZoom=y},Ae16:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS");i("Wqna"),i("rySg"),y.extendComponentView({type:"grid",render:function(v,m){this.group.removeAll(),v.get("show")&&this.group.add(new S.Rect({shape:v.coordinateSystem.getRect(),style:p.defaults({fill:v.get("backgroundColor")},v.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(v){v.xAxis&&v.yAxis&&!v.grid&&(v.grid={})})},Awhp:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("PQMj"),v=i.n(S)},"B+YJ":function(k,D,i){i("TYVI"),i("p1MT")},"B6l+":function(k,D,i){var y=i("Sq3C"),p=i("Z1HP"),S=i("Sxd8"),v=i("dt0z");function m(f,d,u){f=v(f),d=S(d);var o=d?p(f):0;return d&&o<d?f+y(d-o,u):f}k.exports=m},B8du:function(k,D){function i(){return!1}k.exports=i},B9cy:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("0XgM"),v=i.n(S)},B9fm:function(k,D,i){var y=i("bYtY"),p=i("Qe9p"),S=i("YH21"),v=i("Ze12"),m=i("ItGF"),f=i("7aKB"),d=y.each,u=f.toCamelCase,o=["","-webkit-","-moz-","-o-"],n="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(o,function(A){return A+"transition:"+g}).join(";")}function a(c){var h=[],g=c.get("fontSize"),A=c.getTextColor();return A&&h.push("color:"+A),h.push("font:"+c.getFont()),g&&h.push("line-height:"+Math.round(g*3/2)+"px"),d(["decoration","align"],function(b){var w=c.get(b);w&&h.push("text-"+b+":"+w)}),h.join(";")}function e(c){var h=[],g=c.get("transitionDuration"),A=c.get("backgroundColor"),b=c.getModel("textStyle"),w=c.get("padding");return g&&h.push(t(g)),A&&(m.canvasSupported?h.push("background-Color:"+A):(h.push("background-Color:#"+p.toHex(A)),h.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(x){var T="border-"+x,_=u(T),E=c.get(_);E!=null&&h.push(T+":"+E+(x==="color"?"":"px"))}),h.push(a(b)),w!=null&&h.push("padding:"+f.normalizeCssArray(w).join("px ")+"px"),h.join(";")+";"}function l(c,h,g,A,b){var w=h&&h.painter;if(g){var x=w&&w.getViewportRoot();x&&v.transformLocalCoord(c,x,document.body,A,b)}else{c[0]=A,c[1]=b;var T=w&&w.getViewportRootOffset();T&&(c[0]+=T.offsetLeft,c[1]+=T.offsetTop)}}function r(c,h,g){if(m.wxa)return null;var A=document.createElement("div");A.domBelongToZr=!0,this.el=A;var b=this._zr=h.getZr(),w=this._appendToBody=g&&g.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,b,w,h.getWidth()/2,h.getHeight()/2),w?document.body.appendChild(A):c.appendChild(A),this._container=c,this._show=!1,this._hideTimeout;var x=this;A.onmouseenter=function(){x._enterable&&(clearTimeout(x._hideTimeout),x._show=!0),x._inContent=!0},A.onmousemove=function(T){if(T=T||window.event,!x._enterable){var _=b.handler,E=b.painter.getViewportRoot();S.normalizeEvent(E,T,!0),_.dispatch("mousemove",T)}},A.onmouseleave=function(){x._enterable&&(x._show&&x.hideLater(x._hideDelay)),x._inContent=!1}}r.prototype={constructor:r,_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=n+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 A=this.el.style;A.left=g[0]+"px",A.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 s=r;k.exports=s},BPZU:function(k,D){var i=32,y=7,p=256;function S(t){for(var a=0;t>=i;)a|=t&1,t>>=1;return t+a}function v(t,a,e,l){var r=a+1;if(r===e)return 1;if(l(t[r++],t[a])<0){for(;r<e&&l(t[r],t[r-1])<0;)r++;m(t,a,r)}else for(;r<e&&l(t[r],t[r-1])>=0;)r++;return r-a}function m(t,a,e){for(e--;a<e;){var l=t[a];t[a++]=t[e],t[e--]=l}}function f(t,a,e,l,r){for(l===a&&l++;l<e;l++){for(var s=t[l],c=a,h=l,g;c<h;)g=c+h>>>1,r(s,t[g])<0?h=g:c=g+1;var A=l-c;switch(A){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(;A>0;)t[c+A]=t[c+A-1],A--}t[c]=s}}function d(t,a,e,l,r,s){var c=0,h=0,g=1;if(s(t,a[e+r])>0){for(h=l-r;g<h&&s(t,a[e+r+g])>0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=r,g+=r}else{for(h=r+1;g<h&&s(t,a[e+r-g])<=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var A=c;c=r-g,g=r-A}for(c++;c<g;){var b=c+(g-c>>>1);s(t,a[e+b])>0?c=b+1:g=b}return g}function u(t,a,e,l,r,s){var c=0,h=0,g=1;if(s(t,a[e+r])<0){for(h=r+1;g<h&&s(t,a[e+r-g])<0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var A=c;c=r-g,g=r-A}else{for(h=l-r;g<h&&s(t,a[e+r+g])>=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=r,g+=r}for(c++;c<g;){var b=c+(g-c>>>1);s(t,a[e+b])<0?g=b:c=b+1}return g}function o(t,a){var e=y,l=0,r=p,s=0,c,h,g=0;l=t.length,l<2*p&&(r=l>>>1);var A=[];s=l<120?5:l<1542?10:l<119151?19:40,c=[],h=[];function b(C,I){c[g]=C,h[g]=I,g+=1}function w(){for(;g>1;){var C=g-2;if(C>=1&&h[C-1]<=h[C]+h[C+1]||C>=2&&h[C-2]<=h[C]+h[C-1])h[C-1]<h[C+1]&&C--;else if(h[C]>h[C+1])break;T(C)}}function x(){for(;g>1;){var C=g-2;C>0&&h[C-1]<h[C+1]&&C--,T(C)}}function T(C){var I=c[C],O=h[C],F=c[C+1],R=h[C+1];h[C]=O+R,C===g-3&&(c[C+1]=c[C+2],h[C+1]=h[C+2]),g--;var B=u(t[F],t,I,O,0,a);if(I+=B,O-=B,O===0)return;if(R=d(t[I+O-1],t,F,R,R-1,a),R===0)return;O<=R?_(I,O,F,R):E(I,O,F,R)}function _(C,I,O,F){var R=0;for(R=0;R<I;R++)A[R]=t[C+R];var B=0,P=O,X=C;if(t[X++]=t[P++],--F===0){for(R=0;R<I;R++)t[X+R]=A[B+R];return}if(I===1){for(R=0;R<F;R++)t[X+R]=t[P+R];t[X+F]=A[B];return}for(var M=e,z,W,H;;){z=0,W=0,H=!1;do if(a(t[P],A[B])<0){if(t[X++]=t[P++],W++,z=0,--F===0){H=!0;break}}else if(t[X++]=A[B++],z++,W=0,--I===1){H=!0;break}while((z|W)<M);if(H)break;do{if(z=u(t[P],A,B,I,0,a),z!==0){for(R=0;R<z;R++)t[X+R]=A[B+R];if(X+=z,B+=z,I-=z,I<=1){H=!0;break}}if(t[X++]=t[P++],--F===0){H=!0;break}if(W=d(A[B],t,P,F,0,a),W!==0){for(R=0;R<W;R++)t[X+R]=t[P+R];if(X+=W,P+=W,F-=W,F===0){H=!0;break}}if(t[X++]=A[B++],--I===1){H=!0;break}M--}while(z>=y||W>=y);if(H)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),I===1){for(R=0;R<F;R++)t[X+R]=t[P+R];t[X+F]=A[B]}else{if(I===0)throw new Error;for(R=0;R<I;R++)t[X+R]=A[B+R]}}function E(C,I,O,F){var R=0;for(R=0;R<F;R++)A[R]=t[O+R];var B=C+I-1,P=F-1,X=O+F-1,M=0,z=0;if(t[X--]=t[B--],--I===0){for(M=X-(F-1),R=0;R<F;R++)t[M+R]=A[R];return}if(F===1){for(X-=I,B-=I,z=X+1,M=B+1,R=I-1;R>=0;R--)t[z+R]=t[M+R];t[X]=A[P];return}for(var W=e;;){var H=0,V=0,Q=!1;do if(a(A[P],t[B])<0){if(t[X--]=t[B--],H++,V=0,--I===0){Q=!0;break}}else if(t[X--]=A[P--],V++,H=0,--F===1){Q=!0;break}while((H|V)<W);if(Q)break;do{if(H=I-u(A[P],t,C,I,I-1,a),H!==0){for(X-=H,B-=H,I-=H,z=X+1,M=B+1,R=H-1;R>=0;R--)t[z+R]=t[M+R];if(I===0){Q=!0;break}}if(t[X--]=A[P--],--F===1){Q=!0;break}if(V=F-d(t[B],A,0,F,F-1,a),V!==0){for(X-=V,P-=V,F-=V,z=X+1,M=P+1,R=0;R<V;R++)t[z+R]=A[M+R];if(F<=1){Q=!0;break}}if(t[X--]=t[B--],--I===0){Q=!0;break}W--}while(H>=y||V>=y);if(Q)break;W<0&&(W=0),W+=2}if(e=W,e<1&&(e=1),F===1){for(X-=I,B-=I,z=X+1,M=B+1,R=I-1;R>=0;R--)t[z+R]=t[M+R];t[X]=A[P]}else{if(F===0)throw new Error;for(M=X-(F-1),R=0;R<F;R++)t[M+R]=A[R]}}this.mergeRuns=w,this.forceMergeRuns=x,this.pushRun=b}function n(t,a,e,l){e||(e=0),l||(l=t.length);var r=l-e;if(r<2)return;var s=0;if(r<i){s=v(t,e,l,a),f(t,e,l,e+s,a);return}var c=new o(t,a),h=S(r);do{if(s=v(t,e,l,a),s<h){var g=r;g>h&&(g=h),f(t,e,e+g,e+s,a),s=g}c.pushRun(e,s),c.mergeRuns(),r-=s,e+=s}while(r!==0);c.forceMergeRuns()}k.exports=n},Bd2K:function(k,D,i){(function(y){y(i("VrN/"),i("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(o,n,t){if(t!=y.Init&&t&&o.removeKeyMap("autoCloseTags"),!n)return;var a={name:"autoCloseTags"};(typeof n!="object"||n.whenClosing!==!1)&&(a["'/'"]=function(e){return f(e)}),(typeof n!="object"||n.whenOpening!==!1)&&(a["'>'"]=function(e){return v(e)}),o.addKeyMap(a)});var p=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],S=["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 v(o){if(o.getOption("disableInput"))return y.Pass;for(var n=o.listSelections(),t=[],a=o.getOption("autoCloseTags"),e=0;e<n.length;e++){if(!n[e].empty())return y.Pass;var l=n[e].head,r=o.getTokenAt(l),s=y.innerMode(o.getMode(),r.state),c=s.state,h=s.mode.xmlCurrentTag&&s.mode.xmlCurrentTag(c),g=h&&h.name;if(!g)return y.Pass;var A=s.mode.configuration=="html",b=typeof a=="object"&&a.dontCloseTags||A&&p,w=typeof a=="object"&&a.indentTags||A&&S;r.end>l.ch&&(g=g.slice(0,g.length-r.end+l.ch));var x=g.toLowerCase();if(!g||r.type=="string"&&(r.end!=l.ch||!/[\"\']/.test(r.string.charAt(r.string.length-1))||r.string.length==1)||r.type=="tag"&&h.close||r.string.indexOf("/")==l.ch-r.start-1||b&&d(b,x)>-1||u(o,s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(c)||[],g,l,!0))return y.Pass;var T=typeof a=="object"&&a.emptyTags;if(T&&d(T,g)>-1){t[e]={text:"/>",newPos:y.Pos(l.line,l.ch+2)};continue}var _=w&&d(w,x)>-1;t[e]={indent:_,text:">"+(_?`
`:"")+"</"+g+">",newPos:_?y.Pos(l.line+1,0):y.Pos(l.line,l.ch+1)}}for(var E=typeof a=="object"&&a.dontIndentOnAutoClose,e=n.length-1;e>=0;e--){var C=t[e];o.replaceRange(C.text,n[e].head,n[e].anchor,"+insert");var I=o.listSelections().slice(0);I[e]={head:C.newPos,anchor:C.newPos},o.setSelections(I),!E&&C.indent&&(o.indentLine(C.newPos.line,null,!0),o.indentLine(C.newPos.line+1,null,!0))}}function m(o,n){for(var t=o.listSelections(),a=[],e=n?"/":"</",l=o.getOption("autoCloseTags"),r=typeof l=="object"&&l.dontIndentOnSlash,s=0;s<t.length;s++){if(!t[s].empty())return y.Pass;var c=t[s].head,h=o.getTokenAt(c),g=y.innerMode(o.getMode(),h.state),A=g.state;if(n&&(h.type=="string"||h.string.charAt(0)!="<"||h.start!=c.ch-1))return y.Pass;var b,w=g.mode.name!="xml"&&o.getMode().name=="htmlmixed";if(w&&g.mode.name=="javascript")b=e+"script";else if(w&&g.mode.name=="css")b=e+"style";else{var x=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(A);if(!x||x.length&&u(o,x,x[x.length-1],c))return y.Pass;b=e+x[x.length-1]}o.getLine(c.line).charAt(h.end)!=">"&&(b+=">"),a[s]=b}if(o.replaceSelections(a),t=o.listSelections(),!r)for(var s=0;s<t.length;s++)(s==t.length-1||t[s].head.line<t[s+1].head.line)&&o.indentLine(t[s].head.line)}function f(o){return o.getOption("disableInput")?y.Pass:m(o,!0)}y.commands.closeTag=function(o){return m(o)};function d(o,n){if(o.indexOf)return o.indexOf(n);for(var t=0,a=o.length;t<a;++t)if(o[t]==n)return t;return-1}function u(o,n,t,a,e){if(!y.scanForClosingTag)return!1;var l=Math.min(o.lastLine()+1,a.line+500),r=y.scanForClosingTag(o,a,null,l);if(!r||r.tag!=t)return!1;for(var s=e?1:0,c=n.length-1;c>=0&&n[c]==t;c--)++s;a=r.to;for(var c=1;c<s;c++){var h=y.scanForClosingTag(o,a,null,l);if(!h||h.tag!=t)return!1;a=h.to}return!0}})},BlVb:function(k,D,i){var y=i("hyiK"),p=1e-8;function S(m,f){return Math.abs(m-f)<p}function v(m,f,d){var u=0,o=m[0];if(!o)return!1;for(var n=1;n<m.length;n++){var t=m[n];u+=y(o[0],o[1],t[0],t[1],f,d),o=t}var a=m[0];return(!S(o[0],a[0])||!S(o[1],a[1]))&&(u+=y(o[0],o[1],a[0],a[1],f,d)),u!==0}D.contain=v},BoS7:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("czTT"),v=i.n(S)},Bq2U:function(k,D,i){var y=i("RDYZ"),p=i("Qe9p"),S=i("bYtY"),v=S.isArrayLike,m=Array.prototype.slice;function f(b,w){return b[w]}function d(b,w,x){b[w]=x}function u(b,w,x){return(w-b)*x+b}function o(b,w,x){return x>.5?w:b}function n(b,w,x,T,_){var E=b.length;if(_===1)for(var C=0;C<E;C++)T[C]=u(b[C],w[C],x);else for(var I=E&&b[0].length,C=0;C<E;C++)for(var O=0;O<I;O++)T[C][O]=u(b[C][O],w[C][O],x)}function t(b,w,x){var T=b.length,_=w.length;if(T!==_){var E=T>_;if(E)b.length=_;else for(var C=T;C<_;C++)b.push(x===1?w[C]:m.call(w[C]))}for(var I=b[0]&&b[0].length,C=0;C<b.length;C++)if(x===1)isNaN(b[C])&&(b[C]=w[C]);else for(var O=0;O<I;O++)isNaN(b[C][O])&&(b[C][O]=w[C][O])}function a(b,w,x){if(b===w)return!0;var T=b.length;if(T!==w.length)return!1;if(x===1){for(var _=0;_<T;_++)if(b[_]!==w[_])return!1}else for(var E=b[0].length,_=0;_<T;_++)for(var C=0;C<E;C++)if(b[_][C]!==w[_][C])return!1;return!0}function e(b,w,x,T,_,E,C,I,O){var F=b.length;if(O===1)for(var R=0;R<F;R++)I[R]=l(b[R],w[R],x[R],T[R],_,E,C);else for(var B=b[0].length,R=0;R<F;R++)for(var P=0;P<B;P++)I[R][P]=l(b[R][P],w[R][P],x[R][P],T[R][P],_,E,C)}function l(b,w,x,T,_,E,C){var I=(x-b)*.5,O=(T-w)*.5;return(2*(w-x)+I+O)*C+(-3*(w-x)-2*I-O)*E+I*_+w}function r(b){if(v(b)){var w=b.length;if(v(b[0])){for(var x=[],T=0;T<w;T++)x.push(m.call(b[T]));return x}return m.call(b)}return b}function s(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 w=b[b.length-1].value;return v(w&&w[0])?2:1}function h(b,w,x,T,_,E){var C=b._getter,I=b._setter,O=w==="spline",F=T.length;if(!F)return;var R=T[0].value,B=v(R),P=!1,X=!1,M=B?c(T):0,z;T.sort(function(Z,Y){return Z.time-Y.time}),z=T[F-1].time;for(var W=[],H=[],V=T[0].value,Q=!0,G=0;G<F;G++){W.push(T[G].time/z);var ee=T[G].value;if(B&&a(ee,V,M)||!B&&ee===V||(Q=!1),V=ee,typeof ee=="string"){var q=p.parse(ee);q?(ee=q,P=!0):X=!0}H.push(ee)}if(!E&&Q)return;for(var se=H[F-1],G=0;G<F-1;G++)B?t(H[G],se,M):isNaN(H[G])&&!isNaN(se)&&!X&&!P&&(H[G]=se);B&&t(C(b._target,_),se,M);var re=0,Ae=0,Te,Re,Ge,Ue,nt,Le;if(P)var le=[0,0,0,0];var Xe=function(Y,ne){var ce;if(ne<0)ce=0;else if(ne<Ae){for(Te=Math.min(re+1,F-1),ce=Te;ce>=0&&!(W[ce]<=ne);ce--);ce=Math.min(ce,F-2)}else{for(ce=re;ce<F&&!(W[ce]>ne);ce++);ce=Math.min(ce-1,F-2)}re=ce,Ae=ne;var ye=W[ce+1]-W[ce];if(ye===0)return;if(Re=(ne-W[ce])/ye,O)if(Ue=H[ce],Ge=H[ce===0?ce:ce-1],nt=H[ce>F-2?F-1:ce+1],Le=H[ce>F-3?F-1:ce+2],B)e(Ge,Ue,nt,Le,Re,Re*Re,Re*Re*Re,C(Y,_),M);else{var Ee;if(P)Ee=e(Ge,Ue,nt,Le,Re,Re*Re,Re*Re*Re,le,1),Ee=s(le);else{if(X)return o(Ue,nt,Re);Ee=l(Ge,Ue,nt,Le,Re,Re*Re,Re*Re*Re)}I(Y,_,Ee)}else if(B)n(H[ce],H[ce+1],Re,C(Y,_),M);else{var Ee;if(P)n(H[ce],H[ce+1],Re,le,1),Ee=s(le);else{if(X)return o(H[ce],H[ce+1],Re);Ee=u(H[ce],H[ce+1],Re)}I(Y,_,Ee)}},pe=new y({target:b._target,life:z,loop:b._loop,delay:b._delay,onframe:Xe,ondestroy:x});return w&&w!=="spline"&&(pe.easing=w),pe}var g=function(w,x,T,_){this._tracks={},this._target=w,this._loop=x||!1,this._getter=T||f,this._setter=_||d,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};g.prototype={when:function(w,x){var T=this._tracks;for(var _ in x){if(!x.hasOwnProperty(_))continue;if(!T[_]){T[_]=[];var E=this._getter(this._target,_);if(E==null)continue;w!==0&&T[_].push({time:0,value:r(E)})}T[_].push({time:w,value:x[_]})}return this},during:function(w){return this._onframeList.push(w),this},pause:function(){for(var w=0;w<this._clipList.length;w++)this._clipList[w].pause();this._paused=!0},resume:function(){for(var w=0;w<this._clipList.length;w++)this._clipList[w].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var w=this._doneList,x=w.length,T=0;T<x;T++)w[T].call(this)},start:function(w,x){var T=this,_=0,E=function(){_--,_||T._doneCallback()},C;for(var I in this._tracks){if(!this._tracks.hasOwnProperty(I))continue;var O=h(this,w,E,this._tracks[I],I,x);O&&(this._clipList.push(O),_++,this.animation&&this.animation.addClip(O),C=O)}if(C){var F=C.onframe;C.onframe=function(R,B){F(R,B);for(var P=0;P<T._onframeList.length;P++)T._onframeList[P](R,B)}}return _||this._doneCallback(),this},stop:function(w){for(var x=this._clipList,T=this.animation,_=0;_<x.length;_++){var E=x[_];w&&E.onframe(this._target,1),T&&T.removeClip(E)}x.length=0},delay:function(w){return this._delay=w,this},done:function(w){return w&&this._doneList.push(w),this},getClips:function(){return this._clipList}};var A=g;k.exports=A},Bqw1:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},Bsck:function(k,D,i){var y=i("bYtY"),p=i("Qxkt"),S=i("Mdki"),v=i("YXkt"),m=i("sdST"),f=function(n,t){this.name=n||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};f.prototype={constructor:f,isRemoved:function(){return this.dataIndex<0},eachNode:function(n,t,a){typeof n=="function"&&(a=t,t=n,n=null),n=n||{},y.isString(n)&&(n={order:n});var e=n.order||"preorder",l=this[n.attr||"children"],r;e==="preorder"&&(r=t.call(a,this));for(var s=0;!r&&s<l.length;s++)l[s].eachNode(n,t,a);e==="postorder"&&t.call(a,this)},updateDepthAndHeight:function(n){var t=0;this.depth=n;for(var a=0;a<this.children.length;a++){var e=this.children[a];e.updateDepthAndHeight(n+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(n){if(this.getId()===n)return this;for(var t=0,a=this.children,e=a.length;t<e;t++){var l=a[t].getNodeById(n);if(l)return l}},contains:function(n){if(n===this)return!0;for(var t=0,a=this.children,e=a.length;t<e;t++){var l=a[t].contains(n);if(l)return l}},getAncestors:function(n){for(var t=[],a=n?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},getValue:function(n){var t=this.hostTree.data;return t.get(t.getDimension(n||"value"),this.dataIndex)},setLayout:function(n,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,n,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(n){if(this.dataIndex<0)return;var t=this.hostTree,a=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?a.getModel(n,e.getModel(n)):a.getModel(n)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(n,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,n,t)},getVisual:function(n,t){return this.hostTree.data.getItemVisual(this.dataIndex,n,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(n){for(var t=n.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(n){return n!==this&&n.isAncestorOf(this)}};function d(n,t){this.root,this.data,this._nodes=[],this.hostModel=n,this.levelModels=y.map(t||[],function(a){return new p(a,n,n.ecModel)})}d.prototype={constructor:d,type:"tree",eachNode:function(n,t,a){this.root.eachNode(n,t,a)},getNodeByDataIndex:function(n){var t=this.data.getRawIndex(n);return this._nodes[t]},getNodeByName:function(n){return this.root.getNodeByName(n)},update:function(){for(var n=this.data,t=this._nodes,a=0,e=t.length;a<e;a++)t[a].dataIndex=-1;for(var a=0,e=n.count();a<e;a++)t[n.getRawIndex(a)].dataIndex=a},clearLayouts:function(){this.data.clearItemLayouts()}},d.createTree=function(n,t,a,e){var l=new d(t,a&&a.levels),r=[],s=1;c(n);function c(A,b){var w=A.value;s=Math.max(s,y.isArray(w)?w.length:1),r.push(A);var x=new f(A.name,l);b?u(x,b):l.root=x,l._nodes.push(x);var T=A.children;if(T)for(var _=0;_<T.length;_++)c(T[_],x)}l.root.updateDepthAndHeight(0);var h=m(r,{coordDimensions:["value"],dimensionsCount:s}),g=new v(h,t);return g.initData(r),e&&e(g),S({mainData:g,struct:l,structAttr:"tree"}),l.update(),l};function u(n,t){var a=t.children;if(n.parentNode===t)return;a.push(n),n.parentNode=t}var o=d;k.exports=o},BtR2:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="LikeOutlined";var d=D.a=p.forwardRef(f)},BuqR:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("6uqw"),m=i("XxSj"),f=i("YOMW"),d=i("OELB"),u=d.reformIntervals,o=v.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){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var r=this._mode=this._determineMode();n[this._mode].call(this),this._resetSelected(e,l);var s=this.option.categories;this.resetVisual(function(c,h){r==="categories"?(c.mappingMethod="category",c.categories=S.clone(s)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=S.map(this._pieceList,function(g){var g=S.clone(g);return h!=="inRange"&&(g.visual=null),g}))})},completeVisualOption:function(){var e=this.option,l={},r=m.listVisualTypes(),s=this.isCategory();S.each(e.pieces,function(h){S.each(r,function(g){h.hasOwnProperty(g)&&(l[g]=1)})}),S.each(l,function(h,g){var A=0;S.each(this.stateList,function(b){A|=c(e,b,g)||c(e.target,b,g)},this),!A&&S.each(this.stateList,function(b){(e[b]||(e[b]={}))[g]=f.get(g,b==="inRange"?"active":"inactive",s)})},this);function c(h,g,A){return h&&h[g]&&(S.isObject(h[g])?h[g].hasOwnProperty(A):h[g]===A)}v.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,l){var r=this.option,s=this._pieceList,c=(l?r:e).selected||{};if(r.selected=c,S.each(s,function(g,A){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var h=!1;S.each(s,function(g,A){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=S.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(r){var s=[],c=r.getData();c.each(this.getDataDimension(c),function(h,g){var A=m.findPieceIndex(h,this._pieceList);A===e&&s.push(g)},this),l.push({seriesId:r.id,dataIndex:s})},this),l},getRepresentValue:function(e){var l;if(this.isCategory())l=e.value;else if(e.value!=null)l=e.value;else{var r=e.interval||[];l=r[0]===-Infinity&&r[1]===Infinity?0:(r[0]+r[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],r=[],s=this;function c(b,w){var x=s.getRepresentValue({interval:b});w||(w=s.getValueState(x));var T=e(x,w);b[0]===-Infinity?r[0]=T:b[1]===Infinity?r[1]=T:l.push({value:b[0],color:T},{value:b[1],color:T})}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 A=-Infinity;return S.each(h,function(b){var w=b.interval;w&&(w[0]>A&&c([A,w[0]],"outOfRange"),c(w.slice()),A=w[1])},this),{stops:l,outerColors:r}}}),n={splitNumber:function(){var e=this.option,l=this._pieceList,r=Math.min(e.precision,20),s=this.getExtent(),c=e.splitNumber;c=Math.max(parseInt(c,10),1),e.splitNumber=c;for(var h=(s[1]-s[0])/c;+h.toFixed(r)!==h&&r<5;)r++;e.precision=r,h=+h.toFixed(r),e.minOpen&&l.push({interval:[-Infinity,s[0]],close:[0,0]});for(var g=0,A=s[0];g<c;A+=h,g++){var b=g===c-1?s[1]:A+h;l.push({interval:[A,b],close:[1,1]})}e.maxOpen&&l.push({interval:[s[1],Infinity],close:[0,0]}),u(l),S.each(l,function(w,x){w.index=x,w.text=this.formatValueText(w.interval)},this)},categories:function(){var e=this.option;S.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;S.each(e.pieces,function(r,s){S.isObject(r)||(r={value:r});var c={text:"",index:s};if(r.label!=null&&(c.text=r.label),r.hasOwnProperty("value")){var h=c.value=r.value;c.interval=[h,h],c.close=[1,1]}else{for(var g=c.interval=[],A=c.close=[0,0],b=[1,0,1],w=[-Infinity,Infinity],x=[],T=0;T<2;T++){for(var _=[["gte","gt","min"],["lte","lt","max"]][T],E=0;E<3&&g[T]==null;E++)g[T]=r[_[E]],A[T]=b[E],x[T]=E===2;g[T]==null&&(g[T]=w[T])}x[0]&&g[1]===Infinity&&(A[0]=0),x[1]&&g[0]===-Infinity&&(A[1]=0),g[0]===g[1]&&A[0]&&A[1]&&(c.value=g[0])}c.visual=m.retrieveVisuals(r),l.push(c)},this),t(e,l),u(l),S.each(l,function(r){var s=r.close,c=[["<","\u2264"][s[1]],[">","\u2265"][s[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,c)},this)}};function t(e,l){var r=e.inverse;(e.orient==="vertical"?!r:r)&&l.reverse()}var a=o;k.exports=a},BvKs:function(k,D,i){"use strict";i.d(D,"a",function(){return Nt});var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),l=i("VTBJ"),r=i("1OyB"),s=i("vuIU"),c=i("JX7q"),h=i("Ji7U"),g=i("LK+K"),A=i("I8Z2"),b=i("BGR+"),w=i("wx14"),x=i("rePB"),T=i("4IlW"),_=i("2GS6"),E=i("Gytx"),C=i.n(E),I=i("TSYQ"),O=i.n(I),F=i("U8pU"),R=i("ODXe"),B=/iPhone/i,P=/iPod/i,X=/iPad/i,M=/\bAndroid(?:.+)Mobile\b/i,z=/Android/i,W=/\bAndroid(?:.+)SD4930UR\b/i,H=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,ee=/BB10/i,q=/Opera Mini/i,se=/\b(CriOS|Chrome)(?:.+)Mobile/i,re=/Mobile(?:.+)Firefox\b/i;function Ae(ot,dt){return ot.test(dt)}function Te(ot){var dt=ot||(typeof navigator!="undefined"?navigator.userAgent:""),Yt=dt.split("[FBAN");if(typeof Yt[1]!="undefined"){var Pt=Yt,Et=Object(R.a)(Pt,1);dt=Et[0]}if(Yt=dt.split("Twitter"),typeof Yt[1]!="undefined"){var Bt=Yt,wt=Object(R.a)(Bt,1);dt=wt[0]}var Mt={apple:{phone:Ae(B,dt)&&!Ae(V,dt),ipod:Ae(P,dt),tablet:!Ae(B,dt)&&Ae(X,dt)&&!Ae(V,dt),device:(Ae(B,dt)||Ae(P,dt)||Ae(X,dt))&&!Ae(V,dt)},amazon:{phone:Ae(W,dt),tablet:!Ae(W,dt)&&Ae(H,dt),device:Ae(W,dt)||Ae(H,dt)},android:{phone:!Ae(V,dt)&&Ae(W,dt)||!Ae(V,dt)&&Ae(M,dt),tablet:!Ae(V,dt)&&!Ae(W,dt)&&!Ae(M,dt)&&(Ae(H,dt)||Ae(z,dt)),device:!Ae(V,dt)&&(Ae(W,dt)||Ae(H,dt)||Ae(M,dt)||Ae(z,dt))||Ae(/\bokhttp\b/i,dt)},windows:{phone:Ae(V,dt),tablet:Ae(Q,dt),device:Ae(V,dt)||Ae(Q,dt)},other:{blackberry:Ae(G,dt),blackberry10:Ae(ee,dt),opera:Ae(q,dt),firefox:Ae(re,dt),chrome:Ae(se,dt),device:Ae(G,dt)||Ae(ee,dt)||Ae(q,dt)||Ae(re,dt)||Ae(se,dt)},any:null,phone:null,tablet:null};return Mt.any=Mt.apple.device||Mt.android.device||Mt.windows.device||Mt.other.device,Mt.phone=Mt.apple.phone||Mt.android.phone||Mt.windows.phone,Mt.tablet=Mt.apple.tablet||Mt.android.tablet||Mt.windows.tablet,Mt}var Re=Object(l.a)(Object(l.a)({},Te()),{},{isMobile:Te}),Ge=Re;function Ue(){}function nt(ot,dt,Yt){var Pt=dt||"";return ot.key||"".concat(Pt,"item_").concat(Yt)}function Le(ot){return"".concat(ot,"-menu-")}function le(ot,dt){var Yt=-1;e.Children.forEach(ot,function(Pt){Yt+=1,Pt&&Pt.type&&Pt.type.isMenuItemGroup?e.Children.forEach(Pt.props.children,function(Et){Yt+=1,dt(Et,Yt)}):dt(Pt,Yt)})}function Xe(ot,dt,Yt){if(!ot||Yt.find)return;e.Children.forEach(ot,function(Pt){if(Pt){var Et=Pt.type;if(!Et||!(Et.isSubMenu||Et.isMenuItem||Et.isMenuItemGroup))return;dt.indexOf(Pt.key)!==-1?Yt.find=!0:Pt.props.children&&Xe(Pt.props.children,dt,Yt)}})}var pe=["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"],Z=function(dt){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=dt&&typeof dt.getBoundingClientRect=="function"&&dt.getBoundingClientRect().width;if(Pt){if(Yt){var Et=getComputedStyle(dt),Bt=Et.marginLeft,wt=Et.marginRight;Pt+=+Bt.replace("px","")+ +wt.replace("px","")}Pt=+Pt.toFixed(6)}return Pt||0},Y=function(dt,Yt,Pt){dt&&Object(F.a)(dt.style)==="object"&&(dt.style[Yt]=Pt)},ne=function(){return Ge.any},ce=i("KQm4"),ye=i("Ff2n"),Ee=i("i8i4"),Ce=i("bdgK"),ue=i("Uaa1"),ge=i("HTfv"),Oe={adjustX:1,adjustY:1},Je={topLeft:{points:["bl","tl"],overflow:Oe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Oe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Oe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Oe,offset:[4,0]}},lt={topLeft:{points:["bl","tl"],overflow:Oe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Oe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Oe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Oe,offset:[4,0]}},tt=Je,ke=0,st={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ve=function(dt,Yt,Pt){var Et=Le(Yt),Bt=dt.getState();dt.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},Bt.defaultActiveFirst),{},Object(x.a)({},Et,Pt))})},Ot=function(ot){Object(h.a)(Yt,ot);var dt=Object(g.a)(Yt);function Yt(Pt){var Et;Object(r.a)(this,Yt),Et=dt.call(this,Pt),Et.onDestroy=function(yr){Et.props.onDestroy(yr)},Et.onKeyDown=function(yr){var en=yr.keyCode,sn=Et.menuInstance,Vn=Et.props,jn=Vn.isOpen,ri=Vn.store;if(en===T.a.ENTER)return Et.onTitleClick(yr),Ve(ri,Et.props.eventKey,!0),!0;if(en===T.a.RIGHT)return jn?sn.onKeyDown(yr):(Et.triggerOpenChange(!0),Ve(ri,Et.props.eventKey,!0)),!0;if(en===T.a.LEFT){var ci;if(jn)ci=sn.onKeyDown(yr);else return;return ci||(Et.triggerOpenChange(!1),ci=!0),ci}return jn&&(en===T.a.UP||en===T.a.DOWN)?sn.onKeyDown(yr):void 0},Et.onOpenChange=function(yr){Et.props.onOpenChange(yr)},Et.onPopupVisibleChange=function(yr){Et.triggerOpenChange(yr,yr?"mouseenter":"mouseleave")},Et.onMouseEnter=function(yr){var en=Et.props,sn=en.eventKey,Vn=en.onMouseEnter,jn=en.store;Ve(jn,Et.props.eventKey,!1),Vn({key:sn,domEvent:yr})},Et.onMouseLeave=function(yr){var en=Et.props,sn=en.parentMenu,Vn=en.eventKey,jn=en.onMouseLeave;sn.subMenuInstance=Object(c.a)(Et),jn({key:Vn,domEvent:yr})},Et.onTitleMouseEnter=function(yr){var en=Et.props,sn=en.eventKey,Vn=en.onItemHover,jn=en.onTitleMouseEnter;Vn({key:sn,hover:!0}),jn({key:sn,domEvent:yr})},Et.onTitleMouseLeave=function(yr){var en=Et.props,sn=en.parentMenu,Vn=en.eventKey,jn=en.onItemHover,ri=en.onTitleMouseLeave;sn.subMenuInstance=Object(c.a)(Et),jn({key:Vn,hover:!1}),ri({key:Vn,domEvent:yr})},Et.onTitleClick=function(yr){var en=Object(c.a)(Et),sn=en.props;if(sn.onTitleClick({key:sn.eventKey,domEvent:yr}),sn.triggerSubMenuAction==="hover")return;Et.triggerOpenChange(!sn.isOpen,"click"),Ve(sn.store,Et.props.eventKey,!1)},Et.onSubMenuClick=function(yr){typeof Et.props.onClick=="function"&&Et.props.onClick(Et.addKeyPath(yr))},Et.onSelect=function(yr){Et.props.onSelect(yr)},Et.onDeselect=function(yr){Et.props.onDeselect(yr)},Et.getPrefixCls=function(){return"".concat(Et.props.rootPrefixCls,"-submenu")},Et.getActiveClassName=function(){return"".concat(Et.getPrefixCls(),"-active")},Et.getDisabledClassName=function(){return"".concat(Et.getPrefixCls(),"-disabled")},Et.getSelectedClassName=function(){return"".concat(Et.getPrefixCls(),"-selected")},Et.getOpenClassName=function(){return"".concat(Et.props.rootPrefixCls,"-submenu-open")},Et.saveMenuInstance=function(yr){Et.menuInstance=yr},Et.addKeyPath=function(yr){return Object(l.a)(Object(l.a)({},yr),{},{keyPath:(yr.keyPath||[]).concat(Et.props.eventKey)})},Et.triggerOpenChange=function(yr,en){var sn=Et.props.eventKey,Vn=function(){Et.onOpenChange({key:sn,item:Object(c.a)(Et),trigger:en,open:yr})};en==="mouseenter"?Et.mouseenterTimeout=setTimeout(function(){Vn()},0):Vn()},Et.isChildrenSelected=function(){var yr={find:!1};return Xe(Et.props.children,Et.props.selectedKeys,yr),yr.find},Et.isOpen=function(){return Et.props.openKeys.indexOf(Et.props.eventKey)!==-1},Et.adjustWidth=function(){if(!Et.subMenuTitle||!Et.menuInstance)return;var yr=Ee.findDOMNode(Et.menuInstance);if(yr.offsetWidth>=Et.subMenuTitle.offsetWidth)return;yr.style.minWidth="".concat(Et.subMenuTitle.offsetWidth,"px")},Et.saveSubMenuTitle=function(yr){Et.subMenuTitle=yr},Et.getBaseProps=function(){var yr=Object(c.a)(Et),en=yr.props;return{mode:en.mode==="horizontal"?"vertical":en.mode,visible:Et.props.isOpen,level:en.level+1,inlineIndent:en.inlineIndent,focusable:!1,onClick:Et.onSubMenuClick,onSelect:Et.onSelect,onDeselect:Et.onDeselect,onDestroy:Et.onDestroy,selectedKeys:en.selectedKeys,eventKey:"".concat(en.eventKey,"-menu-"),openKeys:en.openKeys,motion:en.motion,onOpenChange:Et.onOpenChange,subMenuOpenDelay:en.subMenuOpenDelay,parentMenu:Object(c.a)(Et),subMenuCloseDelay:en.subMenuCloseDelay,forceSubMenuRender:en.forceSubMenuRender,triggerSubMenuAction:en.triggerSubMenuAction,builtinPlacements:en.builtinPlacements,defaultActiveFirst:en.store.getState().defaultActiveFirst[Le(en.eventKey)],multiple:en.multiple,prefixCls:en.rootPrefixCls,id:Et.internalMenuId,manualRef:Et.saveMenuInstance,itemIcon:en.itemIcon,expandIcon:en.expandIcon,direction:en.direction}},Et.getMotion=function(yr,en){var sn=Object(c.a)(Et),Vn=sn.haveRendered,jn=Et.props,ri=jn.motion,ci=jn.rootPrefixCls,gi=Object(l.a)(Object(l.a)({},ri),{},{leavedClassName:"".concat(ci,"-hidden"),removeOnLeave:!1,motionAppear:Vn||!en||yr!=="inline"});return gi};var Bt=Pt.store,wt=Pt.eventKey,Mt=Bt.getState(),Nr=Mt.defaultActiveFirst;Et.isRootMenu=!1;var Tr=!1;return Nr&&(Tr=Nr[wt]),Ve(Bt,wt,Tr),Et}return Object(s.a)(Yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Et=this,Bt=this.props,wt=Bt.mode,Mt=Bt.parentMenu,Nr=Bt.manualRef;if(Nr&&Nr(this),wt!=="horizontal"||!Mt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Et.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Et=this.props,Bt=Et.onDestroy,wt=Et.eventKey;Bt&&Bt(wt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Et){var Bt=this,wt=this.getBaseProps(),Mt=this.getMotion(wt.mode,wt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||wt.visible||wt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Nr=wt.direction;return e.createElement(ge.default,Object.assign({visible:wt.visible},Mt),function(Tr){var yr=Tr.className,en=Tr.style,sn=O()("".concat(wt.prefixCls,"-sub"),yr,Object(x.a)({},"".concat(wt.prefixCls,"-rtl"),Nr==="rtl"));return e.createElement(qt,Object.assign({},wt,{id:Bt.internalMenuId,className:sn,style:en}),Et)})}},{key:"render",value:function(){var Et,Bt=Object(l.a)({},this.props),wt=Bt.isOpen,Mt=this.getPrefixCls(),Nr=Bt.mode==="inline",Tr=O()(Mt,"".concat(Mt,"-").concat(Bt.mode),(Et={},Object(x.a)(Et,Bt.className,!!Bt.className),Object(x.a)(Et,this.getOpenClassName(),wt),Object(x.a)(Et,this.getActiveClassName(),Bt.active||wt&&!Nr),Object(x.a)(Et,this.getDisabledClassName(),Bt.disabled),Object(x.a)(Et,this.getSelectedClassName(),this.isChildrenSelected()),Et));this.internalMenuId||(Bt.eventKey?this.internalMenuId="".concat(Bt.eventKey,"$Menu"):(ke+=1,this.internalMenuId="$__$".concat(ke,"$Menu")));var yr={},en={},sn={};Bt.disabled||(yr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},en={onClick:this.onTitleClick},sn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Vn={},jn=Bt.direction;Nr&&(jn==="rtl"?Vn.paddingRight=Bt.inlineIndent*Bt.level:Vn.paddingLeft=Bt.inlineIndent*Bt.level);var ri={};this.props.isOpen&&(ri={"aria-owns":this.internalMenuId});var ci=null;Bt.mode!=="horizontal"&&(ci=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ci=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var gi=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Vn,className:"".concat(Mt,"-title"),role:"button"},sn,en,{"aria-expanded":wt},ri,{"aria-haspopup":"true",title:typeof Bt.title=="string"?Bt.title:void 0}),Bt.title,ci||e.createElement("i",{className:"".concat(Mt,"-arrow")})),Ni=this.renderChildren(Bt.children),Qe=Bt.parentMenu.isRootMenu?Bt.parentMenu.props.getPopupContainer:function(Fr){return Fr.parentNode},Se=st[Bt.mode],Pe=Bt.popupOffset?{offset:Bt.popupOffset}:{},He=Bt.mode==="inline"?"":Bt.popupClassName;He+=jn==="rtl"?" ".concat(Mt,"-rtl"):"";var Ye=Bt.disabled,ze=Bt.triggerSubMenuAction,$e=Bt.subMenuOpenDelay,St=Bt.forceSubMenuRender,ft=Bt.subMenuCloseDelay,Ht=Bt.builtinPlacements;pe.forEach(function(Fr){return delete Bt[Fr]}),delete Bt.onClick;var Er=jn==="rtl"?Object.assign({},lt,Ht):Object.assign({},Je,Ht);return delete Bt.direction,e.createElement("li",Object.assign({},Bt,yr,{className:Tr,role:"menuitem"}),Nr&&gi,Nr&&Ni,!Nr&&e.createElement(ue.a,{prefixCls:Mt,popupClassName:O()("".concat(Mt,"-popup"),He),getPopupContainer:Qe,builtinPlacements:Er,popupPlacement:Se,popupVisible:wt,popupAlign:Pe,popup:Ni,action:Ye?[]:[ze],mouseEnterDelay:$e,mouseLeaveDelay:ft,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:St},gi))}}]),Yt}(e.Component);Ot.defaultProps={onMouseEnter:Ue,onMouseLeave:Ue,onTitleMouseEnter:Ue,onTitleMouseLeave:Ue,onTitleClick:Ue,manualRef:Ue,mode:"vertical",title:""};var Ut=Object(A.b)(function(ot,dt){var Yt=ot.openKeys,Pt=ot.activeKey,Et=ot.selectedKeys,Bt=dt.eventKey,wt=dt.subMenuKey;return{isOpen:Yt.indexOf(Bt)>-1,active:Pt[wt]===Bt,selectedKeys:Et}})(Ot);Ut.isSubMenu=!0;var ir=Ut,lr="menuitem-overflowed",Sr=.5,mt=function(ot){Object(h.a)(Yt,ot);var dt=Object(g.a)(Yt);function Yt(){var Pt;return Object(r.a)(this,Yt),Pt=dt.apply(this,arguments),Pt.resizeObserver=null,Pt.mutationObserver=null,Pt.originalTotalWidth=0,Pt.overflowedItems=[],Pt.menuItemSizes=[],Pt.cancelFrameId=null,Pt.state={lastVisibleIndex:void 0},Pt.getMenuItemNodes=function(){var Et=Pt.props.prefixCls,Bt=Ee.findDOMNode(Object(c.a)(Pt));return Bt?[].slice.call(Bt.children).filter(function(wt){return wt.className.split(" ").indexOf("".concat(Et,"-overflowed-submenu"))<0}):[]},Pt.getOverflowedSubMenuItem=function(Et,Bt,wt){var Mt=Pt.props,Nr=Mt.overflowedIndicator,Tr=Mt.level,yr=Mt.mode,en=Mt.prefixCls,sn=Mt.theme;if(Tr!==1||yr!=="horizontal")return null;var Vn=Pt.props.children[0],jn=Vn.props,ri=jn.children,ci=jn.title,gi=jn.style,Ni=Object(ye.a)(jn,["children","title","style"]),Qe=Object(l.a)({},gi),Se="".concat(Et,"-overflowed-indicator"),Pe="".concat(Et,"-overflowed-indicator");Bt.length===0&&wt!==!0?Qe=Object(l.a)(Object(l.a)({},Qe),{},{display:"none"}):wt&&(Qe=Object(l.a)(Object(l.a)({},Qe),{},{visibility:"hidden",position:"absolute"}),Se="".concat(Se,"-placeholder"),Pe="".concat(Pe,"-placeholder"));var He=sn?"".concat(en,"-").concat(sn):"",Ye={};return pe.forEach(function(ze){Ni[ze]!==void 0&&(Ye[ze]=Ni[ze])}),e.createElement(ir,Object.assign({title:Nr,className:"".concat(en,"-overflowed-submenu"),popupClassName:He},Ye,{key:Se,eventKey:Pe,disabled:!1,style:Qe}),Bt)},Pt.setChildrenWidthAndResize=function(){if(Pt.props.mode!=="horizontal")return;var Et=Ee.findDOMNode(Object(c.a)(Pt));if(!Et)return;var Bt=Et.children;if(!Bt||Bt.length===0)return;var wt=Et.children[Bt.length-1];Y(wt,"display","inline-block");var Mt=Pt.getMenuItemNodes(),Nr=Mt.filter(function(Tr){return Tr.className.split(" ").indexOf(lr)>=0});Nr.forEach(function(Tr){Y(Tr,"display","inline-block")}),Pt.menuItemSizes=Mt.map(function(Tr){return Z(Tr,!0)}),Nr.forEach(function(Tr){Y(Tr,"display","none")}),Pt.overflowedIndicatorWidth=Z(Et.children[Et.children.length-1],!0),Pt.originalTotalWidth=Pt.menuItemSizes.reduce(function(Tr,yr){return Tr+yr},0),Pt.handleResize(),Y(wt,"display","none")},Pt.handleResize=function(){if(Pt.props.mode!=="horizontal")return;var Et=Ee.findDOMNode(Object(c.a)(Pt));if(!Et)return;var Bt=Z(Et);Pt.overflowedItems=[];var wt=0,Mt;Pt.originalTotalWidth>Bt+Sr&&(Mt=-1,Pt.menuItemSizes.forEach(function(Nr){wt+=Nr,wt+Pt.overflowedIndicatorWidth<=Bt&&(Mt+=1)})),Pt.setState({lastVisibleIndex:Mt})},Pt}return Object(s.a)(Yt,[{key:"componentDidMount",value:function(){var Et=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Bt=Ee.findDOMNode(this);if(!Bt)return;this.resizeObserver=new Ce.default(function(wt){wt.forEach(function(){var Mt=Et.cancelFrameId;cancelAnimationFrame(Mt),Et.cancelFrameId=requestAnimationFrame(Et.setChildrenWidthAndResize)})}),[].slice.call(Bt.children).concat(Bt).forEach(function(wt){Et.resizeObserver.observe(wt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Et.resizeObserver.disconnect(),[].slice.call(Bt.children).concat(Bt).forEach(function(wt){Et.resizeObserver.observe(wt)}),Et.setChildrenWidthAndResize()}),this.mutationObserver.observe(Bt,{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(Et){var Bt=this,wt=this.state.lastVisibleIndex;return(Et||[]).reduce(function(Mt,Nr,Tr){var yr=Nr;if(Bt.props.mode==="horizontal"){var en=Bt.getOverflowedSubMenuItem(Nr.props.eventKey,[]);wt!==void 0&&Bt.props.className.indexOf("".concat(Bt.props.prefixCls,"-root"))!==-1&&(Tr>wt&&(yr=e.cloneElement(Nr,{style:{display:"none"},eventKey:"".concat(Nr.props.eventKey,"-hidden"),className:"".concat(lr)})),Tr===wt+1&&(Bt.overflowedItems=Et.slice(wt+1).map(function(Vn){return e.cloneElement(Vn,{key:Vn.props.eventKey,mode:"vertical-left"})}),en=Bt.getOverflowedSubMenuItem(Nr.props.eventKey,Bt.overflowedItems)));var sn=[].concat(Object(ce.a)(Mt),[en,yr]);return Tr===Et.length-1&&sn.push(Bt.getOverflowedSubMenuItem(Nr.props.eventKey,[],!0)),sn}return[].concat(Object(ce.a)(Mt),[yr])},[])}},{key:"render",value:function(){var Et=this.props,Bt=Et.visible,wt=Et.prefixCls,Mt=Et.overflowedIndicator,Nr=Et.mode,Tr=Et.level,yr=Et.tag,en=Et.children,sn=Et.theme,Vn=Object(ye.a)(Et,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),jn=yr;return e.createElement(jn,Object.assign({},Vn),this.renderChildren(en))}}]),Yt}(e.Component);mt.defaultProps={tag:"div",className:""};var or=mt;function et(ot){return ot.length?ot.every(function(dt){return!!dt.props.disabled}):!0}function ur(ot,dt,Yt){var Pt=ot.getState();ot.setState({activeKey:Object(l.a)(Object(l.a)({},Pt.activeKey),{},Object(x.a)({},dt,Yt))})}function qr(ot){return ot.eventKey||"0-menu-"}function Fe(ot,dt){var Yt=dt,Pt=ot.children,Et=ot.eventKey;if(Yt){var Bt;if(le(Pt,function(wt,Mt){wt&&wt.props&&!wt.props.disabled&&Yt===nt(wt,Et,Mt)&&(Bt=!0)}),Bt)return Yt}return Yt=null,ot.defaultActiveFirst&&le(Pt,function(wt,Mt){!Yt&&wt&&!wt.props.disabled&&(Yt=nt(wt,Et,Mt))}),Yt}function $t(ot){if(ot){var dt=this.instanceArray.indexOf(ot);dt!==-1?this.instanceArray[dt]=ot:this.instanceArray.push(ot)}}var Lr=function(ot){Object(h.a)(Yt,ot);var dt=Object(g.a)(Yt);function Yt(Pt){var Et;return Object(r.a)(this,Yt),Et=dt.call(this,Pt),Et.onKeyDown=function(Bt,wt){var Mt=Bt.keyCode,Nr;if(Et.getFlatInstanceArray().forEach(function(yr){yr&&yr.props.active&&yr.onKeyDown&&(Nr=yr.onKeyDown(Bt))}),Nr)return 1;var Tr=null;return(Mt===T.a.UP||Mt===T.a.DOWN)&&(Tr=Et.step(Mt===T.a.UP?-1:1)),Tr?(Bt.preventDefault(),ur(Et.props.store,qr(Et.props),Tr.props.eventKey),typeof wt=="function"&&wt(Tr),1):void 0},Et.onItemHover=function(Bt){var wt=Bt.key,Mt=Bt.hover;ur(Et.props.store,qr(Et.props),Mt?wt:null)},Et.onDeselect=function(Bt){Et.props.onDeselect(Bt)},Et.onSelect=function(Bt){Et.props.onSelect(Bt)},Et.onClick=function(Bt){Et.props.onClick(Bt)},Et.onOpenChange=function(Bt){Et.props.onOpenChange(Bt)},Et.onDestroy=function(Bt){Et.props.onDestroy(Bt)},Et.getFlatInstanceArray=function(){return Et.instanceArray},Et.step=function(Bt){var wt=Et.getFlatInstanceArray(),Mt=Et.props.store.getState().activeKey[qr(Et.props)],Nr=wt.length;if(!Nr)return null;Bt<0&&(wt=wt.concat().reverse());var Tr=-1;if(wt.every(function(Vn,jn){return Vn&&Vn.props.eventKey===Mt?(Tr=jn,!1):!0}),!Et.props.defaultActiveFirst&&Tr!==-1&&et(wt.slice(Tr,Nr-1)))return;var yr=(Tr+1)%Nr,en=yr;do{var sn=wt[en];if(!sn||sn.props.disabled)en=(en+1)%Nr;else return sn}while(en!==yr);return null},Et.renderCommonMenuItem=function(Bt,wt,Mt){var Nr=Et.props.store.getState(),Tr=Object(c.a)(Et),yr=Tr.props,en=nt(Bt,yr.eventKey,wt),sn=Bt.props;if(!sn||typeof Bt.type=="string")return Bt;var Vn=en===Nr.activeKey,jn=Object(l.a)(Object(l.a)({mode:sn.mode||yr.mode,level:yr.level,inlineIndent:yr.inlineIndent,renderMenuItem:Et.renderMenuItem,rootPrefixCls:yr.prefixCls,index:wt,parentMenu:yr.parentMenu,manualRef:sn.disabled?void 0:Object(_.a)(Bt.ref,$t.bind(Object(c.a)(Et))),eventKey:en,active:!sn.disabled&&Vn,multiple:yr.multiple,onClick:function(ci){(sn.onClick||Ue)(ci),Et.onClick(ci)},onItemHover:Et.onItemHover,motion:yr.motion,subMenuOpenDelay:yr.subMenuOpenDelay,subMenuCloseDelay:yr.subMenuCloseDelay,forceSubMenuRender:yr.forceSubMenuRender,onOpenChange:Et.onOpenChange,onDeselect:Et.onDeselect,onSelect:Et.onSelect,builtinPlacements:yr.builtinPlacements,itemIcon:sn.itemIcon||Et.props.itemIcon,expandIcon:sn.expandIcon||Et.props.expandIcon},Mt),{},{direction:yr.direction});return(yr.mode==="inline"||ne())&&(jn.triggerSubMenuAction="click"),e.cloneElement(Bt,jn)},Et.renderMenuItem=function(Bt,wt,Mt){if(!Bt)return null;var Nr=Et.props.store.getState(),Tr={openKeys:Nr.openKeys,selectedKeys:Nr.selectedKeys,triggerSubMenuAction:Et.props.triggerSubMenuAction,subMenuKey:Mt};return Et.renderCommonMenuItem(Bt,wt,Tr)},Pt.store.setState({activeKey:Object(l.a)(Object(l.a)({},Pt.store.getState().activeKey),{},Object(x.a)({},Pt.eventKey,Fe(Pt,Pt.activeKey)))}),Et.instanceArray=[],Et}return Object(s.a)(Yt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Et){return this.props.visible||Et.visible||this.props.className!==Et.className||!C()(this.props.style,Et.style)}},{key:"componentDidUpdate",value:function(Et){var Bt=this.props,wt="activeKey"in Bt?Bt.activeKey:Bt.store.getState().activeKey[qr(Bt)],Mt=Fe(Bt,wt);if(Mt!==wt)ur(Bt.store,qr(Bt),Mt);else if("activeKey"in Et){var Nr=Fe(Et,Et.activeKey);Mt!==Nr&&ur(Bt.store,qr(Bt),Mt)}}},{key:"render",value:function(){var Et=this,Bt=Object(w.a)({},this.props);this.instanceArray=[];var wt=O()(Bt.prefixCls,Bt.className,"".concat(Bt.prefixCls,"-").concat(Bt.mode)),Mt={className:wt,role:Bt.role||"menu"};Bt.id&&(Mt.id=Bt.id),Bt.focusable&&(Mt.tabIndex=0,Mt.onKeyDown=this.onKeyDown);var Nr=Bt.prefixCls,Tr=Bt.eventKey,yr=Bt.visible,en=Bt.level,sn=Bt.mode,Vn=Bt.overflowedIndicator,jn=Bt.theme;return pe.forEach(function(ri){return delete Bt[ri]}),delete Bt.onClick,e.createElement(or,Object.assign({},Bt,{prefixCls:Nr,mode:sn,tag:"ul",level:en,theme:jn,visible:yr,overflowedIndicator:Vn},Mt),e.Children.map(Bt.children,function(ri,ci){return Et.renderMenuItem(ri,ci,Tr||"0-menu-")}))}}]),Yt}(e.Component);Lr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ue};var pt=Object(A.b)()(Lr),qt=pt,vr=i("Kwbf");function pn(ot,dt,Yt){var Pt=ot.prefixCls,Et=ot.motion,Bt=ot.defaultMotions,wt=Bt===void 0?{}:Bt,Mt=ot.openAnimation,Nr=ot.openTransitionName,Tr=dt.switchingModeFromInline;if(Et)return Et;if(Object(F.a)(Mt)==="object"&&Mt)Object(vr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Mt=="string")return{motionName:"".concat(Pt,"-open-").concat(Mt)};if(Nr)return{motionName:Nr};var yr=wt[Yt];return yr||(Tr?null:wt.other)}var fr=function(ot){Object(h.a)(Yt,ot);var dt=Object(g.a)(Yt);function Yt(Pt){var Et;Object(r.a)(this,Yt),Et=dt.call(this,Pt),Et.inlineOpenKeys=[],Et.onSelect=function(Mt){var Nr=Object(c.a)(Et),Tr=Nr.props;if(Tr.selectable){var yr=Et.store.getState(),en=yr.selectedKeys,sn=Mt.key;Tr.multiple?en=en.concat([sn]):en=[sn],"selectedKeys"in Tr||Et.store.setState({selectedKeys:en}),Tr.onSelect(Object(l.a)(Object(l.a)({},Mt),{},{selectedKeys:en}))}},Et.onClick=function(Mt){var Nr=Et.getRealMenuMode(),Tr=Object(c.a)(Et),yr=Tr.store,en=Tr.props.onOpenChange;Nr!=="inline"&&!("openKeys"in Et.props)&&(yr.setState({openKeys:[]}),en([])),Et.props.onClick(Mt)},Et.onKeyDown=function(Mt,Nr){Et.innerMenu.getWrappedInstance().onKeyDown(Mt,Nr)},Et.onOpenChange=function(Mt){var Nr=Object(c.a)(Et),Tr=Nr.props,yr=Et.store.getState().openKeys.concat(),en=!1,sn=function(jn){var ri=!1;if(jn.open)ri=yr.indexOf(jn.key)===-1,ri&&yr.push(jn.key);else{var ci=yr.indexOf(jn.key);ri=ci!==-1,ri&&yr.splice(ci,1)}en=en||ri};Array.isArray(Mt)?Mt.forEach(sn):sn(Mt),en&&("openKeys"in Et.props||Et.store.setState({openKeys:yr}),Tr.onOpenChange(yr))},Et.onDeselect=function(Mt){var Nr=Object(c.a)(Et),Tr=Nr.props;if(Tr.selectable){var yr=Et.store.getState().selectedKeys.concat(),en=Mt.key,sn=yr.indexOf(en);sn!==-1&&yr.splice(sn,1),"selectedKeys"in Tr||Et.store.setState({selectedKeys:yr}),Tr.onDeselect(Object(l.a)(Object(l.a)({},Mt),{},{selectedKeys:yr}))}},Et.onMouseEnter=function(Mt){Et.restoreModeVerticalFromInline();var Nr=Et.props.onMouseEnter;Nr&&Nr(Mt)},Et.onTransitionEnd=function(Mt){var Nr=Mt.propertyName==="width"&&Mt.target===Mt.currentTarget,Tr=Mt.target.className,yr=Object.prototype.toString.call(Tr)==="[object SVGAnimatedString]"?Tr.animVal:Tr,en=Mt.propertyName==="font-size"&&yr.indexOf("anticon")>=0;(Nr||en)&&Et.restoreModeVerticalFromInline()},Et.setInnerMenu=function(Mt){Et.innerMenu=Mt},Et.isRootMenu=!0;var Bt=Pt.defaultSelectedKeys,wt=Pt.defaultOpenKeys;return"selectedKeys"in Pt&&(Bt=Pt.selectedKeys||[]),"openKeys"in Pt&&(wt=Pt.openKeys||[]),Et.store=Object(A.c)({selectedKeys:Bt,openKeys:wt,activeKey:{"0-menu-":Fe(Pt,Pt.activeKey)}}),Et.state={switchingModeFromInline:!1},Et}return Object(s.a)(Yt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Et){this.updateOpentKeysWhenSwitchMode(Et),this.updateMiniStore();var Bt=this.props,wt=Bt.siderCollapsed,Mt=Bt.inlineCollapsed,Nr=Bt.onOpenChange;(!Et.inlineCollapsed&&Mt||!Et.siderCollapsed&&wt)&&Nr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Et){var Bt=this.props,wt=this.store,Mt=this.inlineOpenKeys,Nr=wt.getState(),Tr={};Et.mode==="inline"&&Bt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Bt||((Bt.inlineCollapsed&&!Et.inlineCollapsed||Bt.siderCollapsed&&!Et.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Nr.openKeys.concat(),Tr.openKeys=[]),(!Bt.inlineCollapsed&&Et.inlineCollapsed||!Bt.siderCollapsed&&Et.siderCollapsed)&&(Tr.openKeys=Mt,this.inlineOpenKeys=[])),Object.keys(Tr).length&&wt.setState(Tr)}},{key:"updateMenuDisplay",value:function(){var Et=this.props.collapsedWidth,Bt=this.store,wt=this.prevOpenKeys,Mt=this.getInlineCollapsed()&&(Et===0||Et==="0"||Et==="0px");Mt?(this.prevOpenKeys=Bt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):wt&&(this.store.setState({openKeys:wt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Et=this.props.mode,Bt=this.state.switchingModeFromInline,wt=this.getInlineCollapsed();return Bt&&wt?"inline":wt?"vertical":Et}},{key:"getInlineCollapsed",value:function(){var Et=this.props,Bt=Et.inlineCollapsed,wt=Et.siderCollapsed;return wt!==void 0?wt:Bt}},{key:"restoreModeVerticalFromInline",value:function(){var Et=this.state.switchingModeFromInline;Et&&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 Et=Object(l.a)({},Object(b.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Bt=this.getRealMenuMode();return Et.className+=" ".concat(Et.prefixCls,"-root"),Et.direction==="rtl"&&(Et.className+=" ".concat(Et.prefixCls,"-rtl")),Et=Object(l.a)(Object(l.a)({},Et),{},{mode:Bt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:pn(this.props,this.state,Bt)}),delete Et.openAnimation,delete Et.openTransitionName,e.createElement(A.a,{store:this.store},e.createElement(qt,Object.assign({},Et,{ref:this.setInnerMenu}),this.props.children))}}]),Yt}(e.Component);fr.defaultProps={selectable:!0,onClick:Ue,onSelect:Ue,onOpenChange:Ue,onDeselect:Ue,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:e.createElement("span",null,"\xB7\xB7\xB7")};var gr=fr,dn=function(ot){Object(h.a)(Yt,ot);var dt=Object(g.a)(Yt);function Yt(){var Pt;return Object(r.a)(this,Yt),Pt=dt.apply(this,arguments),Pt.onKeyDown=function(Et){var Bt=Et.keyCode;return Bt===T.a.ENTER?(Pt.onClick(Et),!0):void 0},Pt.onMouseLeave=function(Et){var Bt=Pt.props,wt=Bt.eventKey,Mt=Bt.onItemHover,Nr=Bt.onMouseLeave;Mt({key:wt,hover:!1}),Nr({key:wt,domEvent:Et})},Pt.onMouseEnter=function(Et){var Bt=Pt.props,wt=Bt.eventKey,Mt=Bt.onItemHover,Nr=Bt.onMouseEnter;Mt({key:wt,hover:!0}),Nr({key:wt,domEvent:Et})},Pt.onClick=function(Et){var Bt=Pt.props,wt=Bt.eventKey,Mt=Bt.multiple,Nr=Bt.onClick,Tr=Bt.onSelect,yr=Bt.onDeselect,en=Bt.isSelected,sn={key:wt,keyPath:[wt],item:Object(c.a)(Pt),domEvent:Et};Nr(sn),Mt?en?yr(sn):Tr(sn):en||Tr(sn)},Pt.saveNode=function(Et){Pt.node=Et},Pt}return Object(s.a)(Yt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Et=this.props;Et.onDestroy&&Et.onDestroy(Et.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 Et,Bt=Object(l.a)({},this.props),wt=O()(this.getPrefixCls(),Bt.className,(Et={},Object(x.a)(Et,this.getActiveClassName(),!Bt.disabled&&Bt.active),Object(x.a)(Et,this.getSelectedClassName(),Bt.isSelected),Object(x.a)(Et,this.getDisabledClassName(),Bt.disabled),Et)),Mt=Object(l.a)(Object(l.a)({},Bt.attribute),{},{title:typeof Bt.title=="string"?Bt.title:void 0,className:wt,role:Bt.role||"menuitem","aria-disabled":Bt.disabled});Bt.role==="option"?Mt=Object(l.a)(Object(l.a)({},Mt),{},{role:"option","aria-selected":Bt.isSelected}):(Bt.role===null||Bt.role==="none")&&(Mt.role="none");var Nr={onClick:Bt.disabled?null:this.onClick,onMouseLeave:Bt.disabled?null:this.onMouseLeave,onMouseEnter:Bt.disabled?null:this.onMouseEnter},Tr=Object(l.a)({},Bt.style);Bt.mode==="inline"&&(Bt.direction==="rtl"?Tr.paddingRight=Bt.inlineIndent*Bt.level:Tr.paddingLeft=Bt.inlineIndent*Bt.level),pe.forEach(function(en){return delete Bt[en]}),delete Bt.direction;var yr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(yr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(Bt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Mt,Nr,{style:Tr,ref:this.saveNode}),Bt.children,yr)}}]),Yt}(e.Component);dn.isMenuItem=!0,dn.defaultProps={onSelect:Ue,onMouseEnter:Ue,onMouseLeave:Ue,manualRef:Ue};var Qt=Object(A.b)(function(ot,dt){var Yt=ot.activeKey,Pt=ot.selectedKeys,Et=dt.eventKey,Bt=dt.subMenuKey;return{active:Yt[Bt]===Et,isSelected:Pt.indexOf(Et)!==-1}})(dn),sr=Qt,Qr=function(ot){Object(h.a)(Yt,ot);var dt=Object(g.a)(Yt);function Yt(){var Pt;return Object(r.a)(this,Yt),Pt=dt.apply(this,arguments),Pt.renderInnerMenuItem=function(Et){var Bt=Pt.props,wt=Bt.renderMenuItem,Mt=Bt.index;return wt(Et,Mt,Pt.props.subMenuKey)},Pt}return Object(s.a)(Yt,[{key:"render",value:function(){var Et=Object(w.a)({},this.props),Bt=Et.className,wt=Bt===void 0?"":Bt,Mt=Et.rootPrefixCls,Nr="".concat(Mt,"-item-group-title"),Tr="".concat(Mt,"-item-group-list"),yr=Et.title,en=Et.children;return pe.forEach(function(sn){return delete Et[sn]}),delete Et.onClick,delete Et.direction,e.createElement("li",Object.assign({},Et,{className:"".concat(wt," ").concat(Mt,"-item-group")}),e.createElement("div",{className:Nr,title:typeof yr=="string"?yr:void 0},yr),e.createElement("ul",{className:Tr},e.Children.map(en,this.renderInnerMenuItem)))}}]),Yt}(e.Component);Qr.isMenuItemGroup=!0,Qr.defaultProps={disabled:!0};var Cn=Qr,Fn=function(dt){var Yt=dt.className,Pt=dt.rootPrefixCls,Et=dt.style;return e.createElement("li",{className:"".concat(Yt," ").concat(Pt,"-item-divider"),style:Et})};Fn.defaultProps={disabled:!0,className:"",style:{}};var ti=Fn,ki=gr,Dn=Object(e.createContext)({inlineCollapsed:!1}),Bn=Dn,Ft=i("0n0R"),vt=function(ot){n()(Yt,ot);var dt=a()(Yt);function Yt(){return f()(this,Yt),dt.apply(this,arguments)}return u()(Yt,[{key:"renderTitle",value:function(Et){var Bt=this.props,wt=Bt.icon,Mt=Bt.title,Nr=Bt.level,Tr=Bt.rootPrefixCls;if(!wt)return Et&&Nr===1&&Mt&&typeof Mt=="string"?e.createElement("div",{className:"".concat(Tr,"-inline-collapsed-noicon")},Mt.charAt(0)):Mt;var yr=Object(Ft.b)(Mt)&&Mt.type==="span";return e.createElement(e.Fragment,null,wt,yr?Mt:e.createElement("span",null,Mt))}},{key:"render",value:function(){var Et=this,Bt=this.props,wt=Bt.rootPrefixCls,Mt=Bt.popupClassName;return e.createElement(Bn.Consumer,null,function(Nr){var Tr=Nr.inlineCollapsed,yr=Nr.antdMenuTheme;return e.createElement(ir,p()({},Object(b.default)(Et.props,["icon"]),{title:Et.renderTitle(Tr),popupClassName:O()(wt,"".concat(wt,"-").concat(yr),Mt)}))})}}]),Yt}(e.Component);vt.contextType=Bn,vt.isSubMenu=1;var _e=vt,Ne=i("Zm9Q"),Ie=i("3S7+"),Ze=i("ZX9x"),ct=function(ot,dt){var Yt={};for(var Pt in ot)Object.prototype.hasOwnProperty.call(ot,Pt)&&dt.indexOf(Pt)<0&&(Yt[Pt]=ot[Pt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(ot);Et<Pt.length;Et++)dt.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(ot,Pt[Et])&&(Yt[Pt[Et]]=ot[Pt[Et]]);return Yt},gt=function(ot){n()(Yt,ot);var dt=a()(Yt);function Yt(){var Pt;return f()(this,Yt),Pt=dt.apply(this,arguments),Pt.renderItem=function(Et){var Bt=Et.siderCollapsed,wt=Pt.props,Mt=wt.level,Nr=wt.className,Tr=wt.children,yr=wt.rootPrefixCls,en=Pt.props,sn=en.title,Vn=en.icon,jn=en.danger,ri=ct(en,["title","icon","danger"]);return e.createElement(Bn.Consumer,null,function(ci){var gi,Ni=ci.inlineCollapsed,Qe=ci.direction,Se=sn;typeof sn=="undefined"?Se=Mt===1?Tr:"":sn===!1&&(Se="");var Pe={title:Se};!Bt&&!Ni&&(Pe.title=null,Pe.visible=!1);var He=Object(Ne.a)(Tr).length;return e.createElement(Ie.a,p()({},Pe,{placement:Qe==="rtl"?"left":"right",overlayClassName:"".concat(yr,"-inline-collapsed-tooltip")}),e.createElement(sr,p()({},ri,{className:O()(Nr,(gi={},v()(gi,"".concat(yr,"-item-danger"),jn),v()(gi,"".concat(yr,"-item-only-child"),(Vn?He+1:He)===1),gi)),title:sn}),Vn,Pt.renderItemChildren(Ni)))})},Pt}return u()(Yt,[{key:"renderItemChildren",value:function(Et){var Bt=this.props,wt=Bt.icon,Mt=Bt.children,Nr=Bt.level,Tr=Bt.rootPrefixCls;return!wt||Object(Ft.b)(Mt)&&Mt.type==="span"?Mt&&Et&&Nr===1&&typeof Mt=="string"?e.createElement("div",{className:"".concat(Tr,"-inline-collapsed-noicon")},Mt.charAt(0)):Mt:e.createElement("span",null,Mt)}},{key:"render",value:function(){return e.createElement(Ze.a.Consumer,null,this.renderItem)}}]),Yt}(e.Component);gt.isMenuItem=!0;var kt=i("H84U"),xr=i("uaoM"),Hr=i("EXcs"),on=function(ot){n()(Yt,ot);var dt=a()(Yt);function Yt(Pt){var Et;return f()(this,Yt),Et=dt.call(this,Pt),Et.renderMenu=function(Bt){var wt=Bt.getPopupContainer,Mt=Bt.getPrefixCls,Nr=Bt.direction,Tr=Et.props,yr=Tr.prefixCls,en=Tr.className,sn=Tr.theme,Vn={horizontal:{motionName:"slide-up"},inline:Hr.a,other:{motionName:"zoom-big"}},jn=Mt("menu",yr),ri=O()(en,"".concat(jn,"-").concat(sn),v()({},"".concat(jn,"-inline-collapsed"),Et.getInlineCollapsed()));return e.createElement(Bn.Provider,{value:{inlineCollapsed:Et.getInlineCollapsed()||!1,antdMenuTheme:sn,direction:Nr}},e.createElement(ki,p()({getPopupContainer:wt},Et.props,{className:ri,prefixCls:jn,direction:Nr,defaultMotions:Vn})))},Object(xr.a)(!("inlineCollapsed"in Pt&&Pt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(xr.a)(!(Pt.siderCollapsed!==void 0&&"inlineCollapsed"in Pt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Et}return u()(Yt,[{key:"getInlineCollapsed",value:function(){var Et=this.props,Bt=Et.inlineCollapsed,wt=Et.siderCollapsed;return wt!==void 0?wt:Bt}},{key:"render",value:function(){return e.createElement(kt.a,null,this.renderMenu)}}]),Yt}(e.Component);on.defaultProps={className:"",theme:"light",focusable:!1};var Nt=function(ot){n()(Yt,ot);var dt=a()(Yt);function Yt(){return f()(this,Yt),dt.apply(this,arguments)}return u()(Yt,[{key:"render",value:function(){var Et=this;return e.createElement(Ze.a.Consumer,null,function(Bt){return e.createElement(on,p()({},Et.props,Bt))})}}]),Yt}(e.Component);Nt.Divider=ti,Nt.Item=gt,Nt.SubMenu=_e,Nt.ItemGroup=Cn},C0SR:function(k,D,i){var y=i("YH21"),p=function(){this._track=[]};p.prototype={constructor:p,recognize:function(u,o,n){return this._doTrack(u,o,n),this._recognize(u)},clear:function(){return this._track.length=0,this},_doTrack:function(u,o,n){var t=u.touches;if(!t)return;for(var a={points:[],touches:[],target:o,event:u},e=0,l=t.length;e<l;e++){var r=t[e],s=y.clientToLocal(n,r,{});a.points.push([s.zrX,s.zrY]),a.touches.push(r)}this._track.push(a)},_recognize:function(u){for(var o in m)if(m.hasOwnProperty(o)){var n=m[o](this._track,u);if(n)return n}}};function S(d){var u=d[1][0]-d[0][0],o=d[1][1]-d[0][1];return Math.sqrt(u*u+o*o)}function v(d){return[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]}var m={pinch:function(u,o){var n=u.length;if(!n)return;var t=(u[n-1]||{}).points,a=(u[n-2]||{}).points||t;if(a&&a.length>1&&t&&t.length>1){var e=S(t)/S(a);!isFinite(e)&&(e=1),o.pinchScale=e;var l=v(t);return o.pinchX=l[0],o.pinchY=l[1],{type:"pinch",target:u[0].target,event:o}}}},f=p;k.exports=f},C0tN:function(k,D,i){i("0o9m"),i("8Uz6"),i("Ducp"),i("6/nd")},CBdT:function(k,D,i){var y=i("ProS");i("8waO"),i("AEZ6"),i("YNf1");var p=i("q3GZ");y.registerVisual(p)},CF2D:function(k,D,i){var y=i("ProS");i("vZI5"),i("GeKi");var p=i("6r85"),S=i("TJmX"),v=i("CbHG");y.registerPreprocessor(p),y.registerVisual(S),y.registerLayout(v)},CFYs:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),l=i.n(e),r=i("q1tI"),s=i.n(r),c=i("TSYQ"),h=i.n(c),g=i("BGR+"),A=i("V/uB"),b=i.n(A),w=i("NAnI"),x=i.n(w),T=i("J84W"),_=i.n(T),E=i("kbBi"),C=i.n(E),I=i("H84U"),O=i("CWQg"),F=i("uaoM"),R=i("lMfh"),B=i.n(R),P=2,X=.16,M=.05,z=.05,W=.15,H=5,V=4,Q=[{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 G(gt,kt,xr){var Hr;return Math.round(gt.h)>=60&&Math.round(gt.h)<=240?Hr=xr?Math.round(gt.h)-P*kt:Math.round(gt.h)+P*kt:Hr=xr?Math.round(gt.h)+P*kt:Math.round(gt.h)-P*kt,Hr<0?Hr+=360:Hr>=360&&(Hr-=360),Hr}function ee(gt,kt,xr){if(gt.h===0&&gt.s===0)return gt.s;var Hr;return xr?Hr=gt.s-X*kt:kt===V?Hr=gt.s+X:Hr=gt.s+M*kt,Hr>1&&(Hr=1),xr&&kt===H&&Hr>.1&&(Hr=.1),Hr<.06&&(Hr=.06),Number(Hr.toFixed(2))}function q(gt,kt,xr){var Hr;return xr?Hr=gt.v+z*kt:Hr=gt.v-W*kt,Hr>1&&(Hr=1),Number(Hr.toFixed(2))}function se(gt){for(var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xr=[],Hr=B()(gt),on=H;on>0;on-=1){var Nt=Hr.toHsv(),ot=B()({h:G(Nt,on,!0),s:ee(Nt,on,!0),v:q(Nt,on,!0)}).toHexString();xr.push(ot)}xr.push(Hr.toHexString());for(var dt=1;dt<=V;dt+=1){var Yt=Hr.toHsv(),Pt=B()({h:G(Yt,dt),s:ee(Yt,dt),v:q(Yt,dt)}).toHexString();xr.push(Pt)}return kt.theme==="dark"?Q.map(function(Et){var Bt=Et.index,wt=Et.opacity,Mt=B.a.mix(kt.backgroundColor||"#141414",xr[Bt],wt*100).toHexString();return Mt}):xr}var re={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"},Ae={},Te={};Object.keys(re).forEach(function(gt){Ae[gt]=se(re[gt]),Ae[gt].primary=Ae[gt][5],Te[gt]=se(re[gt],{theme:"dark",backgroundColor:"#141414"}),Te[gt].primary=Te[gt][5]});var Re=Ae.red,Ge=Ae.volcano,Ue=Ae.gold,nt=Ae.orange,Le=Ae.yellow,le=Ae.lime,Xe=Ae.green,pe=Ae.cyan,Z=Ae.blue,Y=Ae.geekblue,ne=Ae.purple,ce=Ae.magenta,ye=Ae.grey;function Ee(gt){return!gt||gt<0?0:gt>100?100:gt}function Ce(gt){var kt=gt.success,xr=gt.successPercent,Hr=xr;return kt&&"progress"in kt&&(Object(F.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Hr=kt.progress),kt&&"percent"in kt&&(Hr=kt.percent),Hr}var ue=function(gt,kt){var xr={};for(var Hr in gt)Object.prototype.hasOwnProperty.call(gt,Hr)&&kt.indexOf(Hr)<0&&(xr[Hr]=gt[Hr]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Hr=Object.getOwnPropertySymbols(gt);on<Hr.length;on++)kt.indexOf(Hr[on])<0&&Object.prototype.propertyIsEnumerable.call(gt,Hr[on])&&(xr[Hr[on]]=gt[Hr[on]]);return xr},ge=function(kt){var xr=[];return Object.keys(kt).forEach(function(Hr){var on=parseFloat(Hr.replace(/%/g,""));isNaN(on)||xr.push({key:on,value:kt[Hr]})}),xr=xr.sort(function(Hr,on){return Hr.key-on.key}),xr.map(function(Hr){var on=Hr.key,Nt=Hr.value;return"".concat(Nt," ").concat(on,"%")}).join(", ")},Oe=function(kt){var xr=kt.from,Hr=xr===void 0?re.blue:xr,on=kt.to,Nt=on===void 0?re.blue:on,ot=kt.direction,dt=ot===void 0?"to right":ot,Yt=ue(kt,["from","to","direction"]);if(Object.keys(Yt).length!==0){var Pt=ge(Yt);return{backgroundImage:"linear-gradient(".concat(dt,", ").concat(Pt,")")}}return{backgroundImage:"linear-gradient(".concat(dt,", ").concat(Hr,", ").concat(Nt,")")}},Je=function(kt){var xr=kt.prefixCls,Hr=kt.percent,on=kt.strokeWidth,Nt=kt.size,ot=kt.strokeColor,dt=kt.strokeLinecap,Yt=kt.children,Pt=kt.trailColor,Et=kt.success,Bt=ot&&typeof ot!="string"?Oe(ot):{background:ot},wt=Pt?{backgroundColor:Pt}:void 0,Mt=v()({width:"".concat(Ee(Hr),"%"),height:on||(Nt==="small"?6:8),borderRadius:dt==="square"?0:""},Bt),Nr=Ce(kt),Tr={width:"".concat(Ee(Nr),"%"),height:on||(Nt==="small"?6:8),borderRadius:dt==="square"?0:"",backgroundColor:Et==null?void 0:Et.strokeColor},yr=Nr!==void 0?r.createElement("div",{className:"".concat(xr,"-success-bg"),style:Tr}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(xr,"-outer")},r.createElement("div",{className:"".concat(xr,"-inner"),style:wt},r.createElement("div",{className:"".concat(xr,"-bg"),style:Mt}),yr)),Yt)},lt=Je,tt={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},ke=function(kt){var xr=kt.map(function(){return Object(r.useRef)()}),Hr=Object(r.useRef)();return Object(r.useEffect)(function(){var on=Date.now(),Nt=!1;Object.keys(xr).forEach(function(ot){var dt=xr[ot].current;if(!dt)return;Nt=!0;var Yt=dt.style;Yt.transitionDuration=".3s, .3s, .3s, .06s",Hr.current&&on-Hr.current<100&&(Yt.transitionDuration="0s, 0s")}),Nt&&(Hr.current=Date.now())}),[xr]};function st(){return st=Object.assign||function(gt){for(var kt=1;kt<arguments.length;kt++){var xr=arguments[kt];for(var Hr in xr)Object.prototype.hasOwnProperty.call(xr,Hr)&&(gt[Hr]=xr[Hr])}return gt},st.apply(this,arguments)}function Ve(gt,kt){return Sr(gt)||lr(gt,kt)||Ut(gt,kt)||Ot()}function Ot(){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 Ut(gt,kt){if(!gt)return;if(typeof gt=="string")return ir(gt,kt);var xr=Object.prototype.toString.call(gt).slice(8,-1);if(xr==="Object"&&gt.constructor&&(xr=gt.constructor.name),xr==="Map"||xr==="Set")return Array.from(gt);if(xr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xr))return ir(gt,kt)}function ir(gt,kt){(kt==null||kt>gt.length)&&(kt=gt.length);for(var xr=0,Hr=new Array(kt);xr<kt;xr++)Hr[xr]=gt[xr];return Hr}function lr(gt,kt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(gt)))return;var xr=[],Hr=!0,on=!1,Nt=void 0;try{for(var ot=gt[Symbol.iterator](),dt;!(Hr=(dt=ot.next()).done)&&!(xr.push(dt.value),kt&&xr.length===kt);Hr=!0);}catch(Yt){on=!0,Nt=Yt}finally{try{!Hr&&ot.return!=null&&ot.return()}finally{if(on)throw Nt}}return xr}function Sr(gt){if(Array.isArray(gt))return gt}function mt(gt,kt){if(gt==null)return{};var xr=or(gt,kt),Hr,on;if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(gt);for(on=0;on<Nt.length;on++){if(Hr=Nt[on],kt.indexOf(Hr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(gt,Hr))continue;xr[Hr]=gt[Hr]}}return xr}function or(gt,kt){if(gt==null)return{};var xr={},Hr=Object.keys(gt),on,Nt;for(Nt=0;Nt<Hr.length;Nt++){if(on=Hr[Nt],kt.indexOf(on)>=0)continue;xr[on]=gt[on]}return xr}var et=function(kt){var xr=kt.className,Hr=kt.percent,on=kt.prefixCls,Nt=kt.strokeColor,ot=kt.strokeLinecap,dt=kt.strokeWidth,Yt=kt.style,Pt=kt.trailColor,Et=kt.trailWidth,Bt=kt.transition,wt=mt(kt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete wt.gapPosition;var Mt=Array.isArray(Hr)?Hr:[Hr],Nr=Array.isArray(Nt)?Nt:[Nt],Tr=ke(Mt),yr=Ve(Tr,1),en=yr[0],sn=dt/2,Vn=100-dt/2,jn="M ".concat(ot==="round"?sn:0,",").concat(sn,`
L `).concat(ot==="round"?Vn:100,",").concat(sn),ri="0 0 100 ".concat(dt),ci=0;return s.a.createElement("svg",st({className:h()("".concat(on,"-line"),xr),viewBox:ri,preserveAspectRatio:"none",style:Yt},wt),s.a.createElement("path",{className:"".concat(on,"-line-trail"),d:jn,strokeLinecap:ot,stroke:Pt,strokeWidth:Et||dt,fillOpacity:"0"}),Mt.map(function(gi,Ni){var Qe={strokeDasharray:"".concat(gi,"px, 100px"),strokeDashoffset:"-".concat(ci,"px"),transition:Bt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Se=Nr[Ni]||Nr[Nr.length-1];return ci+=gi,s.a.createElement("path",{key:Ni,className:"".concat(on,"-line-path"),d:jn,strokeLinecap:ot,stroke:Se,strokeWidth:dt,fillOpacity:"0",ref:en[Ni],style:Qe})}))};et.defaultProps=tt;var ur=et;function qr(){return qr=Object.assign||function(gt){for(var kt=1;kt<arguments.length;kt++){var xr=arguments[kt];for(var Hr in xr)Object.prototype.hasOwnProperty.call(xr,Hr)&&(gt[Hr]=xr[Hr])}return gt},qr.apply(this,arguments)}function Fe(gt,kt){return vr(gt)||qt(gt,kt)||Lr(gt,kt)||$t()}function $t(){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 Lr(gt,kt){if(!gt)return;if(typeof gt=="string")return pt(gt,kt);var xr=Object.prototype.toString.call(gt).slice(8,-1);if(xr==="Object"&&gt.constructor&&(xr=gt.constructor.name),xr==="Map"||xr==="Set")return Array.from(gt);if(xr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xr))return pt(gt,kt)}function pt(gt,kt){(kt==null||kt>gt.length)&&(kt=gt.length);for(var xr=0,Hr=new Array(kt);xr<kt;xr++)Hr[xr]=gt[xr];return Hr}function qt(gt,kt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(gt)))return;var xr=[],Hr=!0,on=!1,Nt=void 0;try{for(var ot=gt[Symbol.iterator](),dt;!(Hr=(dt=ot.next()).done)&&!(xr.push(dt.value),kt&&xr.length===kt);Hr=!0);}catch(Yt){on=!0,Nt=Yt}finally{try{!Hr&&ot.return!=null&&ot.return()}finally{if(on)throw Nt}}return xr}function vr(gt){if(Array.isArray(gt))return gt}function pn(gt,kt){if(gt==null)return{};var xr=fr(gt,kt),Hr,on;if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(gt);for(on=0;on<Nt.length;on++){if(Hr=Nt[on],kt.indexOf(Hr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(gt,Hr))continue;xr[Hr]=gt[Hr]}}return xr}function fr(gt,kt){if(gt==null)return{};var xr={},Hr=Object.keys(gt),on,Nt;for(Nt=0;Nt<Hr.length;Nt++){if(on=Hr[Nt],kt.indexOf(on)>=0)continue;xr[on]=gt[on]}return xr}var gr=0;function dn(gt){return+gt.replace("%","")}function Qt(gt){return Array.isArray(gt)?gt:[gt]}function sr(gt,kt,xr,Hr){var on=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Nt=arguments.length>5?arguments[5]:void 0,ot=50-Hr/2,dt=0,Yt=-ot,Pt=0,Et=-2*ot;switch(Nt){case"left":dt=-ot,Yt=0,Pt=2*ot,Et=0;break;case"right":dt=ot,Yt=0,Pt=-2*ot,Et=0;break;case"bottom":Yt=ot,Et=2*ot;break;default:}var Bt="M 50,50 m ".concat(dt,",").concat(Yt,`
a `).concat(ot,",").concat(ot," 0 1 1 ").concat(Pt,",").concat(-Et,`
a `).concat(ot,",").concat(ot," 0 1 1 ").concat(-Pt,",").concat(Et),wt=Math.PI*2*ot,Mt={stroke:xr,strokeDasharray:"".concat(kt/100*(wt-on),"px ").concat(wt,"px"),strokeDashoffset:"-".concat(on/2+gt/100*(wt-on),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Bt,pathStyle:Mt}}var Qr=function(kt){var xr=kt.prefixCls,Hr=kt.strokeWidth,on=kt.trailWidth,Nt=kt.gapDegree,ot=kt.gapPosition,dt=kt.trailColor,Yt=kt.strokeLinecap,Pt=kt.style,Et=kt.className,Bt=kt.strokeColor,wt=kt.percent,Mt=pn(kt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Nr=Object(r.useMemo)(function(){return gr+=1,gr},[]),Tr=sr(0,100,dt,Hr,Nt,ot),yr=Tr.pathString,en=Tr.pathStyle,sn=Qt(wt),Vn=Qt(Bt),jn=Vn.find(function(Qe){return Object.prototype.toString.call(Qe)==="[object Object]"}),ri=ke(sn),ci=Fe(ri,1),gi=ci[0],Ni=function(){var Se=0;return sn.map(function(Pe,He){var Ye=Vn[He]||Vn[Vn.length-1],ze=Object.prototype.toString.call(Ye)==="[object Object]"?"url(#".concat(xr,"-gradient-").concat(Nr,")"):"",$e=sr(Se,Pe,Ye,Hr,Nt,ot);return Se+=Pe,s.a.createElement("path",{key:He,className:"".concat(xr,"-circle-path"),d:$e.pathString,stroke:ze,strokeLinecap:Yt,strokeWidth:Hr,opacity:Pe===0?0:1,fillOpacity:"0",style:$e.pathStyle,ref:gi[He]})})};return s.a.createElement("svg",qr({className:h()("".concat(xr,"-circle"),Et),viewBox:"0 0 100 100",style:Pt},Mt),jn&&s.a.createElement("defs",null,s.a.createElement("linearGradient",{id:"".concat(xr,"-gradient-").concat(Nr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(jn).sort(function(Qe,Se){return dn(Qe)-dn(Se)}).map(function(Qe,Se){return s.a.createElement("stop",{key:Se,offset:Qe,stopColor:jn[Qe]})}))),s.a.createElement("path",{className:"".concat(xr,"-circle-trail"),d:yr,stroke:dt,strokeLinecap:Yt,strokeWidth:on||Hr,fillOpacity:"0",style:en}),Ni().reverse())};Qr.defaultProps=tt;var Cn=Qr,Fn={Line:ur,Circle:Cn};function ti(gt){var kt=gt.percent,xr=gt.success,Hr=gt.successPercent,on=Ee(kt),Nt=Ce({success:xr,successPercent:Hr});return Nt?[Ee(Nt),Ee(on-Ee(Nt))]:on}function ki(gt){var kt=gt.success,xr=gt.strokeColor,Hr=gt.successPercent,on=xr||null,Nt=Ce({success:kt,successPercent:Hr});return Nt?[re.green,on]:on}var Dn=function(kt){var xr=kt.prefixCls,Hr=kt.width,on=kt.strokeWidth,Nt=kt.trailColor,ot=kt.strokeLinecap,dt=kt.gapPosition,Yt=kt.gapDegree,Pt=kt.type,Et=kt.children,Bt=Hr||120,wt={width:Bt,height:Bt,fontSize:Bt*.15+6},Mt=on||6,Nr=dt||Pt==="dashboard"&&"bottom"||"top",Tr=function(){return Yt||Yt===0?Yt:Pt==="dashboard"?75:void 0},yr=ki(kt),en=Object.prototype.toString.call(yr)==="[object Object]",sn=h()("".concat(xr,"-inner"),p()({},"".concat(xr,"-circle-gradient"),en));return r.createElement("div",{className:sn,style:wt},r.createElement(Cn,{percent:ti(kt),strokeWidth:Mt,trailWidth:Mt,strokeColor:yr,strokeLinecap:ot,trailColor:Nt,prefixCls:xr,gapDegree:Tr(),gapPosition:Nr}),Et)},Bn=Dn,Ft=function(kt){for(var xr=kt.size,Hr=kt.steps,on=kt.percent,Nt=on===void 0?0:on,ot=kt.strokeWidth,dt=ot===void 0?8:ot,Yt=kt.strokeColor,Pt=kt.trailColor,Et=kt.prefixCls,Bt=kt.children,wt=Math.floor(Hr*(Nt/100)),Mt=xr==="small"?2:14,Nr=[],Tr=0;Tr<Hr;Tr+=1)Nr.push(r.createElement("div",{key:Tr,className:h()("".concat(Et,"-steps-item"),p()({},"".concat(Et,"-steps-item-active"),Tr<=wt-1)),style:{backgroundColor:Tr<=wt-1?Yt:Pt,width:Mt,height:dt}}));return r.createElement("div",{className:"".concat(Et,"-steps-outer")},Nr,Bt)},vt=Ft,_e=function(gt,kt){var xr={};for(var Hr in gt)Object.prototype.hasOwnProperty.call(gt,Hr)&&kt.indexOf(Hr)<0&&(xr[Hr]=gt[Hr]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Hr=Object.getOwnPropertySymbols(gt);on<Hr.length;on++)kt.indexOf(Hr[on])<0&&Object.prototype.propertyIsEnumerable.call(gt,Hr[on])&&(xr[Hr[on]]=gt[Hr[on]]);return xr},Ne=Object(O.a)("line","circle","dashboard"),Ie=Object(O.a)("normal","exception","active","success"),Ze=function(gt){a()(xr,gt);var kt=l()(xr);function xr(){var Hr;return f()(this,xr),Hr=kt.apply(this,arguments),Hr.renderProgress=function(on){var Nt,ot=on.getPrefixCls,dt=on.direction,Yt=n()(Hr),Pt=Yt.props,Et=Pt.prefixCls,Bt=Pt.className,wt=Pt.size,Mt=Pt.type,Nr=Pt.steps,Tr=Pt.showInfo,yr=Pt.strokeColor,en=_e(Pt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),sn=ot("progress",Et),Vn=Hr.getProgressStatus(),jn=Hr.renderProcessInfo(sn,Vn);Object(F.a)(!("successPercent"in Pt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var ri;Mt==="line"?ri=Nr?r.createElement(vt,v()({},Hr.props,{strokeColor:typeof yr=="string"?yr:void 0,prefixCls:sn,steps:Nr}),jn):r.createElement(lt,v()({},Hr.props,{prefixCls:sn}),jn):(Mt==="circle"||Mt==="dashboard")&&(ri=r.createElement(Bn,v()({},Hr.props,{prefixCls:sn,progressStatus:Vn}),jn));var ci=h()(sn,(Nt={},p()(Nt,"".concat(sn,"-").concat(Mt==="dashboard"&&"circle"||Nr&&"steps"||Mt),!0),p()(Nt,"".concat(sn,"-status-").concat(Vn),!0),p()(Nt,"".concat(sn,"-show-info"),Tr),p()(Nt,"".concat(sn,"-").concat(wt),wt),p()(Nt,"".concat(sn,"-rtl"),dt==="rtl"),Nt),Bt);return r.createElement("div",v()({},Object(g.default)(en,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:ci}),ri)},Hr}return u()(xr,[{key:"getPercentNumber",value:function(){var on=this.props.percent,Nt=on===void 0?0:on,ot=Ce(this.props);return parseInt(ot!==void 0?ot.toString():Nt.toString(),10)}},{key:"getProgressStatus",value:function(){var on=this.props.status;return Ie.indexOf(on)<0&&this.getPercentNumber()>=100?"success":on||"normal"}},{key:"renderProcessInfo",value:function(on,Nt){var ot=this.props,dt=ot.showInfo,Yt=ot.format,Pt=ot.type,Et=ot.percent,Bt=Ce(this.props);if(!dt)return null;var wt,Mt=Yt||function(Tr){return"".concat(Tr,"%")},Nr=Pt==="line";return Yt||Nt!=="exception"&&Nt!=="success"?wt=Mt(Ee(Et),Ee(Bt)):Nt==="exception"?wt=Nr?r.createElement(C.a,null):r.createElement(b.a,null):Nt==="success"&&(wt=Nr?r.createElement(_.a,null):r.createElement(x.a,null)),r.createElement("span",{className:"".concat(on,"-text"),title:typeof wt=="string"?wt:void 0},wt)}},{key:"render",value:function(){return r.createElement(I.a,null,this.renderProgress)}}]),xr}(r.Component);Ze.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var ct=D.a=Ze},CH3K:function(k,D){function i(y,p){for(var S=-1,v=p.length,m=y.length;++S<v;)y[m+S]=p[S];return y}k.exports=i},"CMP+":function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,u){p.call(this,m,f,d),this.type=u||"value",this.model=null};S.prototype={constructor:S,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},y.inherits(S,p);var v=S;k.exports=v},CP8R:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},"CWI+":function(k,D,i){},CbHG:function(k,D,i){var y=i("IwbS"),p=y.subPixelOptimize,S=i("zM3Q"),v=i("OELB"),m=v.parsePercent,f=i("bYtY"),d=f.retrieve2,u=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:S(),reset:function(a){var e=a.coordinateSystem,l=a.getData(),r=t(a,l),s=0,c=1,h=["x","y"],g=l.mapDimension(h[s]),A=l.mapDimension(h[c],!0),b=A[0],w=A[1],x=A[2],T=A[3];if(l.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),g==null||A.length<4)return;return{progress:a.pipelineContext.large?E:_};function _(C,I){for(var O;(O=C.next())!=null;){var F=I.get(g,O),R=I.get(b,O),B=I.get(w,O),P=I.get(x,O),X=I.get(T,O),M=Math.min(R,B),z=Math.max(R,B),W=ee(M,F),H=ee(z,F),V=ee(P,F),Q=ee(X,F),G=[];q(G,H,0),q(G,W,1),G.push(re(Q),re(H),re(V),re(W)),I.setItemLayout(O,{sign:n(I,O,R,B,w),initBaseline:R>B?H[c]:W[c],ends:G,brushRect:se(P,X,F)})}function ee(Ae,Te){var Re=[];return Re[s]=Te,Re[c]=Ae,isNaN(Te)||isNaN(Ae)?[NaN,NaN]:e.dataToPoint(Re)}function q(Ae,Te,Re){var Ge=Te.slice(),Ue=Te.slice();Ge[s]=p(Ge[s]+r/2,1,!1),Ue[s]=p(Ue[s]-r/2,1,!0),Re?Ae.push(Ge,Ue):Ae.push(Ue,Ge)}function se(Ae,Te,Re){var Ge=ee(Ae,Re),Ue=ee(Te,Re);return Ge[s]-=r/2,Ue[s]-=r/2,{x:Ge[0],y:Ge[1],width:c?r:Ue[0]-Ge[0],height:c?Ue[1]-Ge[1]:r}}function re(Ae){return Ae[s]=p(Ae[s],1),Ae}}function E(C,I){for(var O=new u(C.count*4),F=0,R,B=[],P=[],X;(X=C.next())!=null;){var M=I.get(g,X),z=I.get(b,X),W=I.get(w,X),H=I.get(x,X),V=I.get(T,X);if(isNaN(M)||isNaN(H)||isNaN(V)){O[F++]=NaN,F+=3;continue}O[F++]=n(I,X,z,W,w),B[s]=M,B[c]=H,R=e.dataToPoint(B,null,P),O[F++]=R?R[0]:NaN,O[F++]=R?R[1]:NaN,B[c]=V,R=e.dataToPoint(B,null,P),O[F++]=R?R[1]:NaN}I.setLayout("largePoints",O)}}};function n(a,e,l,r,s){var c;return l>r?c=-1:l<r?c=1:c=e>0?a.get(s,e-1)<=r?1:-1:1,c}function t(a,e){var l=a.getBaseAxis(),r,s=l.type==="category"?l.getBandWidth():(r=l.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=m(d(a.get("barMaxWidth"),s),s),h=m(d(a.get("barMinWidth"),1),s),g=a.get("barWidth");return g!=null?m(g,s):Math.max(Math.min(s/2,c),h)}k.exports=o},CiB2:function(k,D,i){"use strict";i.d(D,"a",function(){return y});function y(p){if(p==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(k,D,i){i("5NHt"),i("f3JH")},CrYA:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"sessionStorage",read:v,write:m,each:f,remove:d,clearAll:u};function S(){return p.sessionStorage}function v(o){return S().getItem(o)}function m(o,n){return S().setItem(o,n)}function f(o){for(var n=S().length-1;n>=0;n--){var t=S().key(n);o(v(t),t)}}function d(o){return S().removeItem(o)}function u(){return S().clear()}},Csr3:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("4vCz"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},Cwc5:function(k,D,i){var y=i("NKxu"),p=i("Npjl");function S(v,m){var f=p(v,m);return y(f)?f:void 0}k.exports=S},D1Df:function(k,D,i){"use strict";function y(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(X){return typeof X}:y=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},y(B)}function p(){return p=Object.assign||function(B){for(var P=1;P<arguments.length;P++){var X=arguments[P];for(var M in X)Object.prototype.hasOwnProperty.call(X,M)&&(B[M]=X[M])}return B},p.apply(this,arguments)}function S(B,P){var X=Object.keys(B);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(B);P&&(M=M.filter(function(z){return Object.getOwnPropertyDescriptor(B,z).enumerable})),X.push.apply(X,M)}return X}function v(B){for(var P=1;P<arguments.length;P++){var X=arguments[P]!=null?arguments[P]:{};P%2?S(X,!0).forEach(function(M){r(B,M,X[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(X)):S(X).forEach(function(M){Object.defineProperty(B,M,Object.getOwnPropertyDescriptor(X,M))})}return B}function m(B,P){if(B==null)return{};var X=f(B,P),M,z;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(B);for(z=0;z<W.length;z++){if(M=W[z],P.indexOf(M)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(B,M))continue;X[M]=B[M]}}return X}function f(B,P){if(B==null)return{};var X={},M=Object.keys(B),z,W;for(W=0;W<M.length;W++){if(z=M[W],P.indexOf(z)>=0)continue;X[z]=B[z]}return X}function d(B,P){if(!(B instanceof P))throw new TypeError("Cannot call a class as a function")}function u(B,P){for(var X=0;X<P.length;X++){var M=P[X];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(B,M.key,M)}}function o(B,P,X){return P&&u(B.prototype,P),X&&u(B,X),B}function n(B,P){return P&&(y(P)==="object"||typeof P=="function")?P:a(B)}function t(B){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},t(B)}function a(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function e(B,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(P&&P.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),P&&l(B,P)}function l(B,P){return l=Object.setPrototypeOf||function(M,z){return M.__proto__=z,M},l(B,P)}function r(B,P,X){return P in B?Object.defineProperty(B,P,{value:X,enumerable:!0,configurable:!0,writable:!0}):B[P]=X,B}var s=i("q1tI"),c=i("17x9"),h=i("H38U"),g=i("aRTE");function A(B){for(var P="",X=0;X<B.length;X++){var M=B.charCodeAt(X);M<128?P+=String.fromCharCode(M):M<2048?(P+=String.fromCharCode(192|M>>6),P+=String.fromCharCode(128|M&63)):M<55296||M>=57344?(P+=String.fromCharCode(224|M>>12),P+=String.fromCharCode(128|M>>6&63),P+=String.fromCharCode(128|M&63)):(X++,M=65536+((M&1023)<<10|B.charCodeAt(X)&1023),P+=String.fromCharCode(240|M>>18),P+=String.fromCharCode(128|M>>12&63),P+=String.fromCharCode(128|M>>6&63),P+=String.fromCharCode(128|M&63))}return P}var b={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},w={},x=4,T=.1;function _(B){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X=[];return B.forEach(function(M,z){var W=null;M.forEach(function(H,V){if(!H&&W!==null){X.push("M".concat(W+P," ").concat(z+P,"h").concat(V-W,"v1H").concat(W+P,"z")),W=null;return}if(V===M.length-1){if(!H)return;W===null?X.push("M".concat(V+P,",").concat(z+P," h1v1H").concat(V+P,"z")):X.push("M".concat(W+P,",").concat(z+P," h").concat(V+1-W,"v1H").concat(W+P,"z"));return}H&&W===null&&(W=V)})}),X.join("")}function E(B,P){return B.slice().map(function(X,M){return M<P.y||M>=P.y+P.h?X:X.map(function(z,W){return W<P.x||W>=P.x+P.w?z:!1})})}function C(B,P){var X=B.imageSettings,M=B.size,z=B.includeMargin;if(X==null)return null;var W=z?x:0,H=P.length+W*2,V=Math.floor(M*T),Q=H/M,G=(X.width||V)*Q,ee=(X.height||V)*Q,q=X.x==null?P.length/2-G/2:X.x*Q,se=X.y==null?P.length/2-ee/2:X.y*Q,re=null;if(X.excavate){var Ae=Math.floor(q),Te=Math.floor(se),Re=Math.ceil(G+q-Ae),Ge=Math.ceil(ee+se-Te);re={x:Ae,y:Te,w:Re,h:Ge}}return{x:q,y:se,h:ee,w:G,excavation:re}}var I=function(){try{new Path2D().addPath(new Path2D)}catch(B){return!1}return!0}(),O=function(B){e(P,B);function P(){var X,M;d(this,P);for(var z=arguments.length,W=new Array(z),H=0;H<z;H++)W[H]=arguments[H];return M=n(this,(X=t(P)).call.apply(X,[this].concat(W))),r(a(M),"_canvas",void 0),r(a(M),"_image",void 0),r(a(M),"state",{imgLoaded:!1}),r(a(M),"handleImageLoad",function(){M.setState({imgLoaded:!0})}),M}return o(P,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var M=this.props,z=M.value,W=M.size,H=M.level,V=M.bgColor,Q=M.fgColor,G=M.includeMargin,ee=M.imageSettings,q=new h(-1,g[H]);if(q.addData(A(z)),q.make(),this._canvas!=null){var se=this._canvas,re=se.getContext("2d");if(!re)return;var Ae=q.modules;if(Ae===null)return;var Te=G?x:0,Re=Ae.length+Te*2,Ge=C(this.props,Ae);ee!=null&&Ge!=null&&(Ge.excavation!=null&&(Ae=E(Ae,Ge.excavation)));var Ue=window.devicePixelRatio||1;se.height=se.width=W*Ue;var nt=W/Re*Ue;re.scale(nt,nt),re.fillStyle=V,re.fillRect(0,0,Re,Re),re.fillStyle=Q,I?re.fill(new Path2D(_(Ae,Te))):Ae.forEach(function(Le,le){Le.forEach(function(Xe,pe){Xe&&re.fillRect(pe+Te,le+Te,1,1)})}),this.state.imgLoaded&&this._image&&Ge!=null&&re.drawImage(this._image,Ge.x+Te,Ge.y+Te,Ge.w,Ge.h)}}},{key:"render",value:function(){var M=this,z=this.props,W=z.value,H=z.size,V=z.level,Q=z.bgColor,G=z.fgColor,ee=z.style,q=z.includeMargin,se=z.imageSettings,re=m(z,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),Ae=v({height:H,width:H},ee),Te=null,Re=se&&se.src;return se!=null&&Re!=null&&(Te=s.createElement("img",{src:Re,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(Ue){return M._image=Ue}})),s.createElement(s.Fragment,null,s.createElement("canvas",p({style:Ae,height:H,width:H,ref:function(Ue){return M._canvas=Ue}},re)),Te)}}]),P}(s.PureComponent);r(O,"defaultProps",b);var F=function(B){e(P,B);function P(){return d(this,P),n(this,t(P).apply(this,arguments))}return o(P,[{key:"render",value:function(){var M=this.props,z=M.value,W=M.size,H=M.level,V=M.bgColor,Q=M.fgColor,G=M.includeMargin,ee=M.imageSettings,q=m(M,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),se=new h(-1,g[H]);se.addData(A(z)),se.make();var re=se.modules;if(re===null)return null;var Ae=G?x:0,Te=re.length+Ae*2,Re=C(this.props,re),Ge=null;ee!=null&&Re!=null&&(Re.excavation!=null&&(re=E(re,Re.excavation)),Ge=s.createElement("image",{xlinkHref:ee.src,height:Re.h,width:Re.w,x:Re.x+Ae,y:Re.y+Ae,preserveAspectRatio:"none"}));var Ue=_(re,Ae);return s.createElement("svg",p({shapeRendering:"crispEdges",height:W,width:W,viewBox:"0 0 ".concat(Te," ").concat(Te)},q),s.createElement("path",{fill:V,d:"M0,0 h".concat(Te,"v").concat(Te,"H0z")}),s.createElement("path",{fill:Q,d:Ue}),Ge)}}]),P}(s.PureComponent);r(F,"defaultProps",b);var R=function(P){var X=P.renderAs,M=m(P,["renderAs"]),z=X==="svg"?F:O;return s.createElement(z,M)};R.defaultProps=v({renderAs:"canvas"},b),k.exports=R},D1WM:function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,u,o){p.call(this,m,f,d),this.type=u||"value",this.axisIndex=o};S.prototype={constructor:S,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(S,p);var v=S;k.exports=v},D5nY:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("4NO4"),v=S.makeInner,m=S.getDataItemValue,f=i("bYtY"),d=f.createHashMap,u=f.each,o=f.map,n=f.isArray,t=f.isString,a=f.isObject,e=f.isTypedArray,l=f.isArrayLike,r=f.extend,s=f.assert,c=i("7G+c"),h=i("k9D9"),g=h.SOURCE_FORMAT_ORIGINAL,A=h.SOURCE_FORMAT_ARRAY_ROWS,b=h.SOURCE_FORMAT_OBJECT_ROWS,w=h.SOURCE_FORMAT_KEYED_COLUMNS,x=h.SOURCE_FORMAT_UNKNOWN,T=h.SOURCE_FORMAT_TYPED_ARRAY,_=h.SERIES_LAYOUT_BY_ROW,E={Must:1,Might:2,Not:3},C=v();function I(G){var ee=G.option.source,q=x;if(e(ee))q=T;else if(n(ee)){ee.length===0&&(q=A);for(var se=0,re=ee.length;se<re;se++){var Ae=ee[se];if(Ae==null)continue;if(n(Ae)){q=A;break}else if(a(Ae)){q=b;break}}}else if(a(ee)){for(var Te in ee)if(ee.hasOwnProperty(Te)&&l(ee[Te])){q=w;break}}else if(ee!=null)throw new Error("Invalid data");C(G).sourceFormat=q}function O(G){return C(G).source}function F(G){C(G).datasetMap=d()}function R(G){var ee=G.option,q=ee.data,se=e(q)?T:g,re=!1,Ae=ee.seriesLayoutBy,Te=ee.sourceHeader,Re=ee.dimensions,Ge=H(G);if(Ge){var Ue=Ge.option;q=Ue.source,se=C(Ge).sourceFormat,re=!0,Ae=Ae||Ue.seriesLayoutBy,Te==null&&(Te=Ue.sourceHeader),Re=Re||Ue.dimensions}var nt=B(q,se,Ae,Te,Re);C(G).source=new c({data:q,fromDataset:re,seriesLayoutBy:Ae,sourceFormat:se,dimensionsDefine:nt.dimensionsDefine,startIndex:nt.startIndex,dimensionsDetectCount:nt.dimensionsDetectCount,encodeDefine:ee.encode})}function B(G,ee,q,se,re){if(!G)return{dimensionsDefine:P(re)};var Ae,Te;if(ee===A)se==="auto"||se==null?X(function(Ge){Ge!=null&&Ge!=="-"&&(t(Ge)?Te==null&&(Te=1):Te=0)},q,G,10):Te=se?1:0,!re&&Te===1&&(re=[],X(function(Ge,Ue){re[Ue]=Ge!=null?Ge:""},q,G)),Ae=re?re.length:q===_?G.length:G[0]?G[0].length:null;else if(ee===b)re||(re=M(G));else if(ee===w)re||(re=[],u(G,function(Ge,Ue){re.push(Ue)}));else if(ee===g){var Re=m(G[0]);Ae=n(Re)&&Re.length||1}else ee===T;return{startIndex:Te,dimensionsDefine:P(re),dimensionsDetectCount:Ae}}function P(G){if(!G)return;var ee=d();return o(G,function(q,se){if(q=r({},a(q)?q:{name:q}),q.name==null)return q;q.name+="",q.displayName==null&&(q.displayName=q.name);var re=ee.get(q.name);return re?q.name+="-"+re.count++:ee.set(q.name,{count:1}),q})}function X(G,ee,q,se){if(se==null&&(se=Infinity),ee===_)for(var re=0;re<q.length&&re<se;re++)G(q[re]?q[re][0]:null,re);else for(var Ae=q[0]||[],re=0;re<Ae.length&&re<se;re++)G(Ae[re],re)}function M(G){for(var ee=0,q;ee<G.length&&!(q=G[ee++]););if(q){var se=[];return u(q,function(re,Ae){se.push(Ae)}),se}}function z(G,ee,q){var se={},re=H(ee);if(!re||!G)return se;var Ae=[],Te=[],Re=ee.ecModel,Ge=C(Re).datasetMap,Ue=re.uid+"_"+q.seriesLayoutBy,nt,Le;G=G.slice(),u(G,function(Z,Y){!a(Z)&&(G[Y]={name:Z}),Z.type==="ordinal"&&nt==null&&(nt=Y,Le=pe(G[Y])),se[Z.name]=[]});var le=Ge.get(Ue)||Ge.set(Ue,{categoryWayDim:Le,valueWayDim:0});u(G,function(Z,Y){var ne=Z.name,ce=pe(Z);if(nt==null){var ye=le.valueWayDim;Xe(se[ne],ye,ce),Xe(Te,ye,ce),le.valueWayDim+=ce}else if(nt===Y)Xe(se[ne],0,ce),Xe(Ae,0,ce);else{var ye=le.categoryWayDim;Xe(se[ne],ye,ce),Xe(Te,ye,ce),le.categoryWayDim+=ce}});function Xe(Z,Y,ne){for(var ce=0;ce<ne;ce++)Z.push(Y+ce)}function pe(Z){var Y=Z.dimsDef;return Y?Y.length:1}return Ae.length&&(se.itemName=Ae),Te.length&&(se.seriesName=Te),se}function W(G,ee,q){var se={},re=H(G);if(!re)return se;var Ae=ee.sourceFormat,Te=ee.dimensionsDefine,Re;(Ae===b||Ae===w)&&u(Te,function(nt,Le){(a(nt)?nt.name:nt)==="name"&&(Re=Le)});var Ge=function(){for(var nt={},Le={},le=[],Xe=0,pe=Math.min(5,q);Xe<pe;Xe++){var Z=Q(ee.data,Ae,ee.seriesLayoutBy,Te,ee.startIndex,Xe);le.push(Z);var Y=Z===E.Not;if(Y&&nt.v==null&&Xe!==Re&&(nt.v=Xe),(nt.n==null||nt.n===nt.v||!Y&&le[nt.n]===E.Not)&&(nt.n=Xe),ne(nt)&&le[nt.n]!==E.Not)return nt;Y||(Z===E.Might&&Le.v==null&&Xe!==Re&&(Le.v=Xe),(Le.n==null||Le.n===Le.v)&&(Le.n=Xe))}function ne(ce){return ce.v!=null&&ce.n!=null}return ne(nt)?nt:ne(Le)?Le:null}();if(Ge){se.value=Ge.v;var Ue=Re!=null?Re:Ge.n;se.itemName=[Ue],se.seriesName=[Ue]}return se}function H(G){var ee=G.option,q=ee.data;if(!q)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,q,se,re,Ae){var Te,Re=5;if(e(G))return E.Not;var Ge,Ue;if(se){var nt=se[Ae];a(nt)?(Ge=nt.name,Ue=nt.type):t(nt)&&(Ge=nt)}if(Ue!=null)return Ue==="ordinal"?E.Must:E.Not;if(ee===A)if(q===_){for(var Le=G[Ae],le=0;le<(Le||[]).length&&le<Re;le++)if((Te=Y(Le[re+le]))!=null)return Te}else for(var le=0;le<G.length&&le<Re;le++){var Xe=G[re+le];if(Xe&&(Te=Y(Xe[Ae]))!=null)return Te}else if(ee===b){if(!Ge)return E.Not;for(var le=0;le<G.length&&le<Re;le++){var pe=G[le];if(pe&&(Te=Y(pe[Ge]))!=null)return Te}}else if(ee===w){if(!Ge)return E.Not;var Le=G[Ge];if(!Le||e(Le))return E.Not;for(var le=0;le<Le.length&&le<Re;le++)if((Te=Y(Le[le]))!=null)return Te}else if(ee===g)for(var le=0;le<G.length&&le<Re;le++){var pe=G[le],Z=m(pe);if(!n(Z))return E.Not;if((Te=Y(Z[Ae]))!=null)return Te}function Y(ne){var ce=t(ne);if(ne!=null&&isFinite(ne)&&ne!=="")return ce?E.Might:E.Not;if(ce&&ne!=="-")return E.Must}return E.Not}D.BE_ORDINAL=E,D.detectSourceFormat=I,D.getSource=O,D.resetSourceDefaulter=F,D.prepareSource=R,D.makeSeriesEncodeForAxisCoordSys=z,D.makeSeriesEncodeForNameBased=W,D.guessOrdinal=V},D9ME:function(k,D,i){var y=i("IwbS"),p=i("fls0"),S=i("bYtY"),v=i("oVpE"),m=v.createSymbol,f=i("QBsz"),d=i("Sj9i");function u(t,a,e){y.Group.call(this),this.add(this.createLine(t,a,e)),this._updateEffectSymbol(t,a)}var o=u.prototype;o.createLine=function(t,a,e){return new p(t,a,e)},o._updateEffectSymbol=function(t,a){var e=t.getItemModel(a),l=e.getModel("effect"),r=l.get("symbolSize"),s=l.get("symbol");S.isArray(r)||(r=[r,r]);var c=l.get("color")||t.getItemVisual(a,"color"),h=this.childAt(1);if(this._symbolType!==s&&(this.remove(h),h=m(s,-.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",r),h.setColor(c),h.attr("scale",r),this._symbolType=s,this._symbolScale=r,this._updateEffectAnimation(t,l,a)},o._updateEffectAnimation=function(t,a,e){var l=this.childAt(1);if(!l)return;var r=this,s=t.getItemLayout(e),c=a.get("period")*1e3,h=a.get("loop"),g=a.get("constantSpeed"),A=S.retrieve(a.get("delay"),function(T){return T/t.count()*c/3}),b=typeof A=="function";if(l.ignore=!0,this.updateAnimationPoints(l,s),g>0&&(c=this.getLineLength(l)/g*1e3),c!==this._period||h!==this._loop){l.stopAnimation();var w=A;b&&(w=A(e)),l.__t>0&&(w=-c*l.__t),l.__t=0;var x=l.animate("",h).when(c,{__t:1}).delay(w).during(function(){r.updateSymbolPosition(l)});h||x.done(function(){r.remove(l)}),x.start()}this._period=c,this._loop=h},o.getLineLength=function(t){return f.dist(t.__p1,t.__cp1)+f.dist(t.__cp1,t.__p2)},o.updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},o.updateData=function(t,a,e){this.childAt(0).updateData(t,a,e),this._updateEffectSymbol(t,a)},o.updateSymbolPosition=function(t){var a=t.__p1,e=t.__p2,l=t.__cp1,r=t.__t,s=t.position,c=[s[0],s[1]],h=d.quadraticAt,g=d.quadraticDerivativeAt;s[0]=h(a[0],l[0],e[0],r),s[1]=h(a[1],l[1],e[1],r);var A=g(a[0],l[0],e[0],r),b=g(a[1],l[1],e[1],r);if(t.rotation=-Math.atan2(b,A)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var w=f.dist(c,s)*1.05;t.attr("scale",[t.scale[0],w]),r===1&&(s[0]=c[0]+(s[0]-c[0])/2,s[1]=c[1]+(s[1]-c[1])/2)}else if(t.__lastT===1){var w=2*f.dist(a,s);t.attr("scale",[t.scale[0],w])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},o.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var e=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,e,a)},S.inherits(u,y.Group);var n=u;k.exports=n},DBLp:function(k,D){function i(){}i.prototype={diff:function(f,d,u){u||(u=function(b,w){return b===w}),this.equals=u;var o=this;f=f.slice(),d=d.slice();var n=d.length,t=f.length,a=1,e=n+t,l=[{newPos:-1,components:[]}],r=this.extractCommon(l[0],d,f,0);if(l[0].newPos+1>=n&&r+1>=t){for(var s=[],c=0;c<d.length;c++)s.push(c);return[{indices:s,count:d.length}]}function h(){for(var A=-1*a;A<=a;A+=2){var b,w=l[A-1],x=l[A+1],T=(x?x.newPos:0)-A;w&&(l[A-1]=void 0);var _=w&&w.newPos+1<n,E=x&&0<=T&&T<t;if(!_&&!E){l[A]=void 0;continue}if(!_||E&&w.newPos<x.newPos?(b=p(x),o.pushComponent(b.components,void 0,!0)):(b=w,b.newPos++,o.pushComponent(b.components,!0,void 0)),T=o.extractCommon(b,d,f,A),b.newPos+1>=n&&T+1>=t)return y(o,b.components,d,f);l[A]=b}a++}for(;a<=e;){var g=h();if(g)return g}},pushComponent:function(f,d,u){var o=f[f.length-1];o&&o.added===d&&o.removed===u?f[f.length-1]={count:o.count+1,added:d,removed:u}:f.push({count:1,added:d,removed:u})},extractCommon:function(f,d,u,o){for(var n=d.length,t=u.length,a=f.newPos,e=a-o,l=0;a+1<n&&e+1<t&&this.equals(d[a+1],u[e+1]);)a++,e++,l++;return l&&f.components.push({count:l}),f.newPos=a,e},tokenize:function(f){return f.slice()},join:function(f){return f.slice()}};function y(m,f,d,u){for(var o=0,n=f.length,t=0,a=0;o<n;o++){var e=f[o];if(e.removed){for(var l=[],r=a;r<a+e.count;r++)l.push(r);e.indices=l,a+=e.count}else{for(var l=[],r=t;r<t+e.count;r++)l.push(r);e.indices=l,t+=e.count,e.added||(a+=e.count)}}return f}function p(m){return{newPos:m.newPos,components:m.components.slice(0)}}var S=new i;function v(m,f,d){return S.diff(m,f,d)}k.exports=v},DEFe:function(k,D,i){var y=i("bYtY"),p=i("SgGq"),S=i("Ae+d"),v=i("xSat"),m=v.onIrrelevantElement,f=i("IwbS"),d=i("W4dC"),u=i("iRjW"),o=u.getUID,n=i("DN4a");function t(s){var c=s.getItemStyle(),h=s.get("areaColor");return h!=null&&(c.fill=h),c}function a(s,c,h,g,A){h.off("click"),h.off("mousedown"),c.get("selectedMode")&&(h.on("mousedown",function(){s._mouseDownFlag=!0}),h.on("click",function(b){if(!s._mouseDownFlag)return;s._mouseDownFlag=!1;for(var w=b.target;!w.__regions;)w=w.parent;if(!w)return;var x={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(w.__regions,function(T){return{name:T.name,from:A.uid}})};x[c.mainType+"Id"]=c.id,g.dispatchAction(x),e(c,h)}))}function e(s,c){c.eachChild(function(h){y.each(h.__regions,function(g){h.trigger(s.isSelected(g.name)?"emphasis":"normal")})})}function l(s,c){var h=new f.Group;this.uid=o("ec_map_draw"),this._controller=new p(s.getZr()),this._controllerHost={target:c?h:null},this.group=h,this._updateGroup=c,this._mouseDownFlag,this._mapName,this._initialized,h.add(this._regionsGroup=new f.Group),h.add(this._backgroundGroup=new f.Group)}l.prototype={constructor:l,draw:function(s,c,h,g,A){var b=s.mainType==="geo",w=s.getData&&s.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(H){!w&&H.getHostGeoModel()===s&&(w=H.getData())});var x=s.coordinateSystem;this._updateBackground(x);var T=this._regionsGroup,_=this.group,E=x.getTransformInfo(),C=!T.childAt(0)||A,I;if(C)_.transform=E.roamTransform,_.decomposeTransform(),_.dirty();else{var O=new n;O.transform=E.roamTransform,O.decomposeTransform();var F={scale:O.scale,position:O.position};I=O.scale,f.updateProps(_,F,s)}var R=E.rawScale,B=E.rawPosition;T.removeAll();var P=["itemStyle"],X=["emphasis","itemStyle"],M=["label"],z=["emphasis","label"],W=y.createHashMap();y.each(x.regions,function(H){var V=W.get(H.name)||W.set(H.name,new f.Group),Q=new f.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=s.getRegionModel(H.name)||s,ee=G.getModel(P),q=G.getModel(X),se=t(ee),re=t(q),Ae=G.getModel(M),Te=G.getModel(z),Re;if(w){Re=w.indexOfName(H.name);var Ge=w.getItemVisual(Re,"color",!0);Ge&&(se.fill=Ge)}var Ue=function(ye){return[ye[0]*R[0]+B[0],ye[1]*R[1]+B[1]]};y.each(H.geometries,function(ye){if(ye.type!=="polygon")return;for(var Ee=[],Ce=0;Ce<ye.exterior.length;++Ce)Ee.push(Ue(ye.exterior[Ce]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ee}}));for(var Ce=0;Ce<(ye.interiors?ye.interiors.length:0);++Ce){for(var ue=ye.interiors[Ce],Ee=[],ge=0;ge<ue.length;++ge)Ee.push(Ue(ue[ge]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ee}}))}}),Q.setStyle(se),Q.style.strokeNoScale=!0,Q.culling=!0;var nt=Ae.get("show"),Le=Te.get("show"),le=w&&isNaN(w.get(w.mapDimension("value"),Re)),Xe=w&&w.getItemLayout(Re);if(b||le&&(nt||Le)||Xe&&Xe.showLabel){var pe=b?H.name:Re,Z;(!w||Re>=0)&&(Z=s);var Y=new f.Text({position:Ue(H.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(f.setLabelStyle(Y.style,Y.hoverStyle={},Ae,Te,{labelFetcher:Z,labelDataIndex:pe,defaultText:H.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!C){var ne=[1/I[0],1/I[1]];f.updateProps(Y,{scale:ne},s)}V.add(Y)}if(w)w.setItemGraphicEl(Re,V);else{var G=s.getRegionModel(H.name);Q.eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:H.name,region:G&&G.option||{}}}var ce=V.__regions||(V.__regions=[]);ce.push(H),V.highDownSilentOnTouch=!!s.get("selectedMode"),f.setHoverStyle(V,re),T.add(V)}),this._updateController(s,c,h),a(this,s,T,h,g),e(s,T)},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(s){var c=s.map;this._mapName!==c&&y.each(d.makeGraphic(c,this.uid),function(h){this._backgroundGroup.add(h)},this),this._mapName=c},_updateController:function(s,c,h){var g=s.coordinateSystem,A=this._controller,b=this._controllerHost;b.zoomLimit=s.get("scaleLimit"),b.zoom=g.getZoom(),A.enable(s.get("roam")||!1);var w=s.mainType;function x(){var T={type:"geoRoam",componentType:w};return T[w+"Id"]=s.id,T}A.off("pan").on("pan",function(T){this._mouseDownFlag=!1,S.updateViewOnPan(b,T.dx,T.dy),h.dispatchAction(y.extend(x(),{dx:T.dx,dy:T.dy}))},this),A.off("zoom").on("zoom",function(T){if(this._mouseDownFlag=!1,S.updateViewOnZoom(b,T.scale,T.originX,T.originY),h.dispatchAction(y.extend(x(),{zoom:T.scale,originX:T.originX,originY:T.originY})),this._updateGroup){var _=this.group.scale;this._regionsGroup.traverse(function(E){E.type==="text"&&E.attr("scale",[1/_[0],1/_[1]])})}},this),A.setPointerChecker(function(T,_,E){return g.getViewRectAfterRoam().contain(_,E)&&!m(T,h,s)})}};var r=l;k.exports=r},DFOY:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),l=i.n(e),r=i("q1tI"),s=i.n(r),c=i("VTBJ"),h=i("1OyB"),g=i("vuIU"),A=i("JX7q"),b=i("Ji7U"),w=i("LK+K"),x=i("i8i4"),T=i.n(x),_=i("l4aY"),E=i("m+aA"),C=i("c+Xe"),I=i("zT1h"),O=i("QC+M"),F=i("TSYQ"),R=i.n(F);function B(It,yt,xt){return xt?It[0]===yt[0]:It[0]===yt[0]&&It[1]===yt[1]}function P(It,yt,xt){var Tt=It[yt]||{};return Object(c.a)(Object(c.a)({},Tt),xt)}function X(It,yt,xt,Tt){for(var Lt=xt.points,_t=Object.keys(It),Xt=0;Xt<_t.length;Xt+=1){var er=_t[Xt];if(B(It[er].points,Lt,Tt))return"".concat(yt,"-placement-").concat(er)}return""}var M=i("Ff2n"),z=i("xEkU"),W=i.n(z),H=i("9mu1"),V=i("rePB"),Q=i("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function ee(It,yt){var xt={};return xt[It.toLowerCase()]=yt.toLowerCase(),xt["Webkit".concat(It)]="webkit".concat(yt),xt["Moz".concat(It)]="moz".concat(yt),xt["ms".concat(It)]="MS".concat(yt),xt["O".concat(It)]="o".concat(yt.toLowerCase()),xt}function q(It,yt){var xt={animationend:ee("Animation","AnimationEnd"),transitionend:ee("Transition","TransitionEnd")};return It&&("AnimationEvent"in yt||delete xt.animationend.animation,"TransitionEvent"in yt||delete xt.transitionend.transition),xt}var se=q(G,typeof window!="undefined"?window:{}),re={};if(G){var Ae=document.createElement("div");re=Ae.style}var Te={};function Re(It){if(Te[It])return Te[It];var yt=se[It];if(yt)for(var xt=Object.keys(yt),Tt=xt.length,Lt=0;Lt<Tt;Lt+=1){var _t=xt[Lt];if(Object.prototype.hasOwnProperty.call(yt,_t)&&_t in re)return Te[It]=yt[_t],Te[It]}return""}var Ge=Re("animationend"),Ue=Re("transitionend"),nt=!!(Ge&&Ue);function Le(It,yt){if(!It)return null;if(Object(Q.a)(It)==="object"){var xt=yt.replace(/-\w/g,function(Tt){return Tt[1].toUpperCase()});return It[xt]}return"".concat(It,"-").concat(yt)}var le="none",Xe="appear",pe="enter",Z="leave";function Y(It){var yt=It,xt=!!r.forwardRef;Object(Q.a)(It)==="object"&&(yt=It.transitionSupport,xt="forwardRef"in It?It.forwardRef:xt);function Tt(_t){return!!(_t.motionName&&yt)}var Lt=function(_t){Object(b.a)(er,_t);var Xt=Object(w.a)(er);function er(){var nr;return Object(h.a)(this,er),nr=Xt.apply(this,arguments),nr.$cacheEle=null,nr.node=null,nr.raf=null,nr.destroyed=!1,nr.deadlineId=null,nr.state={status:le,statusActive:!1,newStatus:!1,statusStyle:null},nr.onDomUpdate=function(){var br=nr.state,On=br.status,bn=br.newStatus,qn=nr.props,an=qn.onAppearStart,_r=qn.onEnterStart,mn=qn.onLeaveStart,In=qn.onAppearActive,Wn=qn.onEnterActive,Jn=qn.onLeaveActive,Ei=qn.motionAppear,yi=qn.motionEnter,mi=qn.motionLeave;if(!Tt(nr.props))return;var Vi=nr.getElement();nr.$cacheEle!==Vi&&(nr.removeEventListener(nr.$cacheEle),nr.addEventListener(Vi),nr.$cacheEle=Vi),bn&&On===Xe&&Ei?nr.updateStatus(an,null,null,function(){nr.updateActiveStatus(In,Xe)}):bn&&On===pe&&yi?nr.updateStatus(_r,null,null,function(){nr.updateActiveStatus(Wn,pe)}):bn&&On===Z&&mi&&nr.updateStatus(mn,null,null,function(){nr.updateActiveStatus(Jn,Z)})},nr.onMotionEnd=function(br){if(br&&!br.deadline&&br.target!==nr.getElement())return;var On=nr.state,bn=On.status,qn=On.statusActive,an=nr.props,_r=an.onAppearEnd,mn=an.onEnterEnd,In=an.onLeaveEnd;bn===Xe&&qn?nr.updateStatus(_r,{status:le},br):bn===pe&&qn?nr.updateStatus(mn,{status:le},br):bn===Z&&qn&&nr.updateStatus(In,{status:le},br)},nr.setNodeRef=function(br){var On=nr.props.internalRef;nr.node=br,Object(C.b)(On,br)},nr.getElement=function(){try{return Object(E.a)(nr.node||Object(A.a)(nr))}catch(br){return nr.$cacheEle}},nr.addEventListener=function(br){if(!br)return;br.addEventListener(Ue,nr.onMotionEnd),br.addEventListener(Ge,nr.onMotionEnd)},nr.removeEventListener=function(br){if(!br)return;br.removeEventListener(Ue,nr.onMotionEnd),br.removeEventListener(Ge,nr.onMotionEnd)},nr.updateStatus=function(br,On,bn,qn){var an=br?br(nr.getElement(),bn):null;if(an===!1||nr.destroyed)return;var _r;qn&&(_r=function(){nr.nextFrame(qn)}),nr.setState(Object(c.a)({statusStyle:Object(Q.a)(an)==="object"?an:null,newStatus:!1},On),_r)},nr.updateActiveStatus=function(br,On){nr.nextFrame(function(){var bn=nr.state.status;if(bn!==On)return;var qn=nr.props.motionDeadline;nr.updateStatus(br,{statusActive:!0}),qn>0&&(nr.deadlineId=setTimeout(function(){nr.onMotionEnd({deadline:!0})},qn))})},nr.nextFrame=function(br){nr.cancelNextFrame(),nr.raf=W()(br)},nr.cancelNextFrame=function(){nr.raf&&(W.a.cancel(nr.raf),nr.raf=null)},nr}return Object(g.a)(er,[{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 br,On=this.state,bn=On.status,qn=On.statusActive,an=On.statusStyle,_r=this.props,mn=_r.children,In=_r.motionName,Wn=_r.visible,Jn=_r.removeOnLeave,Ei=_r.leavedClassName,yi=_r.eventProps;return mn?bn===le||!Tt(this.props)?Wn?mn(Object(c.a)({},yi),this.setNodeRef):Jn?null:mn(Object(c.a)(Object(c.a)({},yi),{},{className:Ei}),this.setNodeRef):mn(Object(c.a)(Object(c.a)({},yi),{},{className:R()(Le(In,bn),(br={},Object(V.a)(br,Le(In,"".concat(bn,"-active")),qn),Object(V.a)(br,In,typeof In=="string"),br)),style:an}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(br,On){var bn=On.prevProps,qn=On.status;if(!Tt(br))return{};var an=br.visible,_r=br.motionAppear,mn=br.motionEnter,In=br.motionLeave,Wn=br.motionLeaveImmediately,Jn={prevProps:br};return(qn===Xe&&!_r||qn===pe&&!mn||qn===Z&&!In)&&(Jn.status=le,Jn.statusActive=!1,Jn.newStatus=!1),!bn&&an&&_r&&(Jn.status=Xe,Jn.statusActive=!1,Jn.newStatus=!0),bn&&!bn.visible&&an&&mn&&(Jn.status=pe,Jn.statusActive=!1,Jn.newStatus=!0),(bn&&bn.visible&&!an&&In||!bn&&Wn&&!an&&In)&&(Jn.status=Z,Jn.statusActive=!1,Jn.newStatus=!0),Jn}}]),er}(r.Component);return Lt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},xt?r.forwardRef(function(_t,Xt){return r.createElement(Lt,Object.assign({internalRef:Xt},_t))}):Lt}var ne=Y(nt),ce="add",ye="keep",Ee="remove",Ce="removed";function ue(It){var yt;return It&&Object(Q.a)(It)==="object"&&"key"in It?yt=It:yt={key:It},Object(c.a)(Object(c.a)({},yt),{},{key:String(yt.key)})}function ge(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return It.map(ue)}function Oe(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xt=[],Tt=0,Lt=yt.length,_t=ge(It),Xt=ge(yt);_t.forEach(function(br){for(var On=!1,bn=Tt;bn<Lt;bn+=1){var qn=Xt[bn];if(qn.key===br.key){Tt<bn&&(xt=xt.concat(Xt.slice(Tt,bn).map(function(an){return Object(c.a)(Object(c.a)({},an),{},{status:ce})})),Tt=bn),xt.push(Object(c.a)(Object(c.a)({},qn),{},{status:ye})),Tt+=1,On=!0;break}}On||xt.push(Object(c.a)(Object(c.a)({},br),{},{status:Ee}))}),Tt<Lt&&(xt=xt.concat(Xt.slice(Tt).map(function(br){return Object(c.a)(Object(c.a)({},br),{},{status:ce})})));var er={};xt.forEach(function(br){var On=br.key;er[On]=(er[On]||0)+1});var nr=Object.keys(er).filter(function(br){return er[br]>1});return nr.forEach(function(br){xt=xt.filter(function(On){var bn=On.key,qn=On.status;return bn!==br||qn!==Ee}),xt.forEach(function(On){On.key===br&&(On.status=ye)})}),xt}var Je=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function lt(It){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,xt=function(Tt){Object(b.a)(_t,Tt);var Lt=Object(w.a)(_t);function _t(){var Xt;return Object(h.a)(this,_t),Xt=Lt.apply(this,arguments),Xt.state={keyEntities:[]},Xt.removeKey=function(er){Xt.setState(function(nr){var br=nr.keyEntities;return{keyEntities:br.map(function(On){return On.key!==er?On:Object(c.a)(Object(c.a)({},On),{},{status:Ce})})}})},Xt}return Object(g.a)(_t,[{key:"render",value:function(){var er=this,nr=this.state.keyEntities,br=this.props,On=br.component,bn=br.children,qn=Object(M.a)(br,["component","children"]),an=On||r.Fragment,_r={};return Je.forEach(function(mn){_r[mn]=qn[mn],delete qn[mn]}),delete qn.keys,r.createElement(an,Object.assign({},qn),nr.map(function(mn){var In=mn.status,Wn=Object(M.a)(mn,["status"]),Jn=In===ce||In===ye;return r.createElement(yt,Object.assign({},_r,{key:Wn.key,visible:Jn,eventProps:Wn,onLeaveEnd:function(){_r.onLeaveEnd&&_r.onLeaveEnd.apply(_r,arguments),er.removeKey(Wn.key)}}),bn)}))}}],[{key:"getDerivedStateFromProps",value:function(er,nr){var br=er.keys,On=nr.keyEntities,bn=ge(br);if(!It)return{keyEntities:bn.map(function(_r){return Object(c.a)(Object(c.a)({},_r),{},{status:ye})})};var qn=Oe(On,bn),an=On.length;return{keyEntities:qn.filter(function(_r){for(var mn=null,In=0;In<an;In+=1){var Wn=On[In];if(Wn.key===_r.key){mn=Wn;break}}return!(mn&&mn.status===Ce&&_r.status===Ee)})}}}]),_t}(r.Component);return xt.defaultProps={component:"div"},xt}var tt=lt(nt),ke=ne,st=function(yt,xt){var Tt=yt.prefixCls,Lt=yt.className,_t=yt.style,Xt=yt.children,er=yt.onMouseEnter,nr=yt.onMouseLeave,br=yt.onMouseDown,On=yt.onTouchStart,bn=Xt;return r.Children.count(Xt)>1&&(bn=r.createElement("div",{className:"".concat(Tt,"-content")},Xt)),r.createElement("div",{ref:xt,className:Lt,onMouseEnter:er,onMouseLeave:nr,onMouseDown:br,onTouchStart:On,style:_t},bn)},Ve=r.forwardRef(st);Ve.displayName="PopupInner";var Ot=Ve;function Ut(It){var yt=It.prefixCls,xt=It.motion,Tt=It.animation,Lt=It.transitionName;return xt||(Tt?{motionName:"".concat(yt,"-").concat(Tt)}:Lt?{motionName:Lt}:null)}function ir(It){return It&&It.motionName}var lr=function(It){Object(b.a)(xt,It);var yt=Object(w.a)(xt);function xt(){var Tt;return Object(h.a)(this,xt),Tt=yt.apply(this,arguments),Tt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Tt.popupRef=s.a.createRef(),Tt.alignRef=s.a.createRef(),Tt.nextFrameState=null,Tt.nextFrameId=null,Tt.onAlign=function(Lt,_t){var Xt=Tt.state.status,er=Tt.props,nr=er.getClassNameFromAlign,br=er.onAlign,On=nr(_t);Xt==="align"?Tt.setState({alignClassName:On,status:"aligned"},function(){Tt.alignRef.current.forceAlign()}):Xt==="aligned"?(Tt.setState({alignClassName:On,status:"afterAlign"}),br(Lt,_t)):Tt.setState({alignClassName:On})},Tt.onMotionEnd=function(){var Lt=Tt.props.visible;Tt.setState({status:Lt?"AfterMotion":"stable",inMotion:!1})},Tt.setStateOnNextFrame=function(Lt){Tt.cancelFrameState(),Tt.nextFrameState=Object(c.a)(Object(c.a)({},Tt.nextFrameState),Lt),Tt.nextFrameId=W()(function(){var _t=Object(c.a)({},Tt.nextFrameState);Tt.nextFrameState=null,Tt.setState(_t)})},Tt.getMotion=function(){return Object(c.a)({},Ut(Tt.props))},Tt.getAlignTarget=function(){var Lt=Tt.props,_t=Lt.point,Xt=Lt.getRootDomNode;return _t||Xt},Tt.cancelFrameState=function(){W.a.cancel(Tt.nextFrameId)},Tt.renderPopupElement=function(){var Lt=Tt.state,_t=Lt.status,Xt=Lt.targetHeight,er=Lt.targetWidth,nr=Lt.alignClassName,br=Tt.props,On=br.prefixCls,bn=br.className,qn=br.style,an=br.stretch,_r=br.visible,mn=br.align,In=br.destroyPopupOnHide,Wn=br.onMouseEnter,Jn=br.onMouseLeave,Ei=br.onMouseDown,yi=br.onTouchStart,mi=br.children,Vi=R()(On,bn,nr),la="".concat(On,"-hidden"),Gi={};an&&(an.indexOf("height")!==-1?Gi.height=Xt:an.indexOf("minHeight")!==-1&&(Gi.minHeight=Xt),an.indexOf("width")!==-1?Gi.width=er:an.indexOf("minWidth")!==-1&&(Gi.minWidth=er));var ia=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},Gi),Tt.getZIndexStyle()),qn),{},{opacity:_t==="stable"||!_r?void 0:0,pointerEvents:_t==="stable"||!_r?void 0:"none"}),$i=Tt.getMotion(),xn=_r;_r&&_t!=="beforeMotion"&&_t!=="motion"&&_t!=="stable"&&($i.motionAppear=!1,$i.motionEnter=!1,$i.motionLeave=!1),(_t==="afterAlign"||_t==="beforeMotion")&&(xn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Wi){var qi=$i==null?void 0:$i[Wi];$i[Wi]=function(){for(var Ir=arguments.length,ar=new Array(Ir),nn=0;nn<Ir;nn++)ar[nn]=arguments[nn];qi==null||qi.apply(void 0,ar),Tt.setState({inMotion:!0})}});var Ti=!_r||_t!=="align"&&_t!=="aligned"&&_t!=="stable",Ji=!0;return _t==="stable"&&(Ji=_r),In&&!Ji?null:s.a.createElement(ke,Object.assign({visible:xn},$i,{removeOnLeave:!1,onEnterEnd:Tt.onMotionEnd,onLeaveEnd:Tt.onMotionEnd,leavedClassName:la}),function(Wi,qi){var Ir=Wi.style,ar=Wi.className;return s.a.createElement(H.a,{target:Tt.getAlignTarget(),key:"popup",ref:Tt.alignRef,monitorWindowResize:!0,disabled:Ti,align:mn,onAlign:Tt.onAlign},s.a.createElement(Ot,{prefixCls:On,className:R()(Vi,ar),ref:Object(C.a)(qi,Tt.popupRef),onMouseEnter:Wn,onMouseLeave:Jn,onMouseDown:Ei,onTouchStart:yi,style:Object(c.a)(Object(c.a)({},ia),Ir)},mi))})},Tt.renderMaskElement=function(){var Lt=Tt.props,_t=Lt.mask,Xt=Lt.maskMotion,er=Lt.maskTransitionName,nr=Lt.maskAnimation,br=Lt.prefixCls,On=Lt.visible;if(!_t)return null;var bn={};return Xt&&Xt.motionName&&(bn=Object(c.a)({motionAppear:!0},Ut({motion:Xt,prefixCls:br,transitionName:er,animation:nr}))),s.a.createElement(ke,Object.assign({},bn,{visible:On,removeOnLeave:!0}),function(qn){var an=qn.className;return s.a.createElement("div",{style:Tt.getZIndexStyle(),key:"mask",className:R()("".concat(br,"-mask"),an)})})},Tt}return Object(g.a)(xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Lt=this.state.status,_t=this.props,Xt=_t.getRootDomNode,er=_t.visible,nr=_t.stretch;if(this.cancelFrameState(),er&&Lt!=="stable")switch(Lt){case null:{this.setStateOnNextFrame({status:nr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:ir(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var br=["measure","align",null,"beforeMotion","motion"],On=br.indexOf(Lt),bn=br[On+1];On!==-1&&bn&&this.setStateOnNextFrame({status:bn})}}if(Lt==="measure"){var qn=Xt();qn&&this.setStateOnNextFrame({targetHeight:qn.offsetHeight,targetWidth:qn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Lt=this.props.zIndex;return{zIndex:Lt}}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Lt,_t){var Xt=Lt.visible,er=Object(M.a)(Lt,["visible"]),nr=_t.prevVisible,br=_t.status,On=_t.inMotion,bn={prevVisible:Xt,status:br},qn=Ut(er);return nr===null&&Xt===!1?(bn.status="stable",bn.inMotion=!1):Xt!==nr&&(bn.inMotion=!1,Xt||ir(qn)&&On?bn.status=null:bn.status="stable",Xt&&(bn.alignClassName=null)),bn}}]),xt}(r.Component),Sr=lr,mt=r.createContext(null),or=mt;function et(){}function ur(){return""}function qr(){return window.document}var Fe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function $t(It){var yt=function(xt){Object(b.a)(Lt,xt);var Tt=Object(w.a)(Lt);function Lt(_t){var Xt;Object(h.a)(this,Lt),Xt=Tt.call(this,_t),Xt.popupRef=s.a.createRef(),Xt.triggerRef=s.a.createRef(),Xt.onMouseEnter=function(nr){var br=Xt.props.mouseEnterDelay;Xt.fireEvents("onMouseEnter",nr),Xt.delaySetPopupVisible(!0,br,br?null:nr)},Xt.onMouseMove=function(nr){Xt.fireEvents("onMouseMove",nr),Xt.setPoint(nr)},Xt.onMouseLeave=function(nr){Xt.fireEvents("onMouseLeave",nr),Xt.delaySetPopupVisible(!1,Xt.props.mouseLeaveDelay)},Xt.onPopupMouseEnter=function(){Xt.clearDelayTimer()},Xt.onPopupMouseLeave=function(nr){if(nr.relatedTarget&&!nr.relatedTarget.setTimeout&&Xt.popupRef.current&&Xt.popupRef.current.popupRef.current&&Object(_.a)(Xt.popupRef.current.popupRef.current,nr.relatedTarget))return;Xt.delaySetPopupVisible(!1,Xt.props.mouseLeaveDelay)},Xt.onFocus=function(nr){Xt.fireEvents("onFocus",nr),Xt.clearDelayTimer(),Xt.isFocusToShow()&&(Xt.focusTime=Date.now(),Xt.delaySetPopupVisible(!0,Xt.props.focusDelay))},Xt.onMouseDown=function(nr){Xt.fireEvents("onMouseDown",nr),Xt.preClickTime=Date.now()},Xt.onTouchStart=function(nr){Xt.fireEvents("onTouchStart",nr),Xt.preTouchTime=Date.now()},Xt.onBlur=function(nr){Xt.fireEvents("onBlur",nr),Xt.clearDelayTimer(),Xt.isBlurToHide()&&Xt.delaySetPopupVisible(!1,Xt.props.blurDelay)},Xt.onContextMenu=function(nr){nr.preventDefault(),Xt.fireEvents("onContextMenu",nr),Xt.setPopupVisible(!0,nr)},Xt.onContextMenuClose=function(){Xt.isContextMenuToShow()&&Xt.close()},Xt.onClick=function(nr){if(Xt.fireEvents("onClick",nr),Xt.focusTime){var br;if(Xt.preClickTime&&Xt.preTouchTime?br=Math.min(Xt.preClickTime,Xt.preTouchTime):Xt.preClickTime?br=Xt.preClickTime:Xt.preTouchTime&&(br=Xt.preTouchTime),Math.abs(br-Xt.focusTime)<20)return;Xt.focusTime=0}Xt.preClickTime=0,Xt.preTouchTime=0,Xt.isClickToShow()&&(Xt.isClickToHide()||Xt.isBlurToHide())&&nr&&nr.preventDefault&&nr.preventDefault();var On=!Xt.state.popupVisible;(Xt.isClickToHide()&&!On||On&&Xt.isClickToShow())&&Xt.setPopupVisible(!Xt.state.popupVisible,nr)},Xt.onPopupMouseDown=function(){if(Xt.hasPopupMouseDown=!0,clearTimeout(Xt.mouseDownTimeout),Xt.mouseDownTimeout=window.setTimeout(function(){Xt.hasPopupMouseDown=!1},0),Xt.context){var nr;(nr=Xt.context).onPopupMouseDown.apply(nr,arguments)}},Xt.onDocumentClick=function(nr){if(Xt.props.mask&&!Xt.props.maskClosable)return;var br=nr.target,On=Xt.getRootDomNode(),bn=Xt.getPopupDomNode();!Object(_.a)(On,br)&&!Object(_.a)(bn,br)&&!Xt.hasPopupMouseDown&&Xt.close()},Xt.getRootDomNode=function(){var nr=Xt.props.getTriggerDOMNode;if(nr)return nr(Xt.triggerRef.current);try{var br=Object(E.a)(Xt.triggerRef.current);if(br)return br}catch(On){}return T.a.findDOMNode(Object(A.a)(Xt))},Xt.getPopupClassNameFromAlign=function(nr){var br=[],On=Xt.props,bn=On.popupPlacement,qn=On.builtinPlacements,an=On.prefixCls,_r=On.alignPoint,mn=On.getPopupClassNameFromAlign;return bn&&qn&&br.push(X(qn,an,nr,_r)),mn&&br.push(mn(nr)),br.join(" ")},Xt.getComponent=function(){var nr=Xt.props,br=nr.prefixCls,On=nr.destroyPopupOnHide,bn=nr.popupClassName,qn=nr.onPopupAlign,an=nr.popupMotion,_r=nr.popupAnimation,mn=nr.popupTransitionName,In=nr.popupStyle,Wn=nr.mask,Jn=nr.maskAnimation,Ei=nr.maskTransitionName,yi=nr.maskMotion,mi=nr.zIndex,Vi=nr.popup,la=nr.stretch,Gi=nr.alignPoint,ia=Xt.state,$i=ia.popupVisible,xn=ia.point,Ti=Xt.getPopupAlign(),Ji={};return Xt.isMouseEnterToShow()&&(Ji.onMouseEnter=Xt.onPopupMouseEnter),Xt.isMouseLeaveToHide()&&(Ji.onMouseLeave=Xt.onPopupMouseLeave),Ji.onMouseDown=Xt.onPopupMouseDown,Ji.onTouchStart=Xt.onPopupMouseDown,s.a.createElement(Sr,Object.assign({prefixCls:br,destroyPopupOnHide:On,visible:$i,point:Gi&&xn,className:bn,align:Ti,onAlign:qn,animation:_r,getClassNameFromAlign:Xt.getPopupClassNameFromAlign},Ji,{stretch:la,getRootDomNode:Xt.getRootDomNode,style:In,mask:Wn,zIndex:mi,transitionName:mn,maskAnimation:Jn,maskTransitionName:Ei,maskMotion:yi,ref:Xt.popupRef,motion:an}),typeof Vi=="function"?Vi():Vi)},Xt.getContainer=function(){var nr=Object(A.a)(Xt),br=nr.props,On=document.createElement("div");On.style.position="absolute",On.style.top="0",On.style.left="0",On.style.width="100%";var bn=br.getPopupContainer?br.getPopupContainer(Xt.getRootDomNode()):br.getDocument().body;return bn.appendChild(On),On},Xt.setPoint=function(nr){var br=Xt.props.alignPoint;if(!br||!nr)return;Xt.setState({point:{pageX:nr.pageX,pageY:nr.pageY}})},Xt.handlePortalUpdate=function(){Xt.state.prevPopupVisible!==Xt.state.popupVisible&&Xt.props.afterPopupVisibleChange(Xt.state.popupVisible)};var er;return"popupVisible"in _t?er=!!_t.popupVisible:er=!!_t.defaultPopupVisible,Xt.state={prevPopupVisible:er,popupVisible:er},Fe.forEach(function(nr){Xt["fire".concat(nr)]=function(br){Xt.fireEvents(nr,br)}}),Xt}return Object(g.a)(Lt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Xt=this.props,er=this.state;if(er.popupVisible){var nr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(nr=Xt.getDocument(),this.clickOutsideHandler=Object(I.a)(nr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nr=nr||Xt.getDocument(),this.touchOutsideHandler=Object(I.a)(nr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nr=nr||Xt.getDocument(),this.contextMenuOutsideHandler1=Object(I.a)(nr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(I.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 Xt=this.props,er=Xt.popupPlacement,nr=Xt.popupAlign,br=Xt.builtinPlacements;return er&&br?P(br,er,nr):nr}},{key:"setPopupVisible",value:function(Xt,er){var nr=this.props.alignPoint,br=this.state.popupVisible;this.clearDelayTimer(),br!==Xt&&("popupVisible"in this.props||this.setState({popupVisible:Xt,prevPopupVisible:br}),this.props.onPopupVisibleChange(Xt)),nr&&er&&this.setPoint(er)}},{key:"delaySetPopupVisible",value:function(Xt,er,nr){var br=this,On=er*1e3;if(this.clearDelayTimer(),On){var bn=nr?{pageX:nr.pageX,pageY:nr.pageY}:null;this.delayTimer=window.setTimeout(function(){br.setPopupVisible(Xt,bn),br.clearDelayTimer()},On)}else this.setPopupVisible(Xt,nr)}},{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(Xt){var er=this.props.children.props,nr=this.props;return er[Xt]&&nr[Xt]?this["fire".concat(Xt)]:er[Xt]||nr[Xt]}},{key:"isClickToShow",value:function(){var Xt=this.props,er=Xt.action,nr=Xt.showAction;return er.indexOf("click")!==-1||nr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Xt=this.props,er=Xt.action,nr=Xt.showAction;return er.indexOf("contextMenu")!==-1||nr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Xt=this.props,er=Xt.action,nr=Xt.hideAction;return er.indexOf("click")!==-1||nr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Xt=this.props,er=Xt.action,nr=Xt.showAction;return er.indexOf("hover")!==-1||nr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Xt=this.props,er=Xt.action,nr=Xt.hideAction;return er.indexOf("hover")!==-1||nr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Xt=this.props,er=Xt.action,nr=Xt.showAction;return er.indexOf("focus")!==-1||nr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Xt=this.props,er=Xt.action,nr=Xt.hideAction;return er.indexOf("focus")!==-1||nr.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(Xt,er){var nr=this.props.children.props[Xt];nr&&nr(er);var br=this.props[Xt];br&&br(er)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Xt=this.state.popupVisible,er=this.props,nr=er.children,br=er.forceRender,On=er.alignPoint,bn=er.className,qn=er.autoDestroy,an=s.a.Children.only(nr),_r={key:"trigger"};this.isContextMenuToShow()?_r.onContextMenu=this.onContextMenu:_r.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(_r.onClick=this.onClick,_r.onMouseDown=this.onMouseDown,_r.onTouchStart=this.onTouchStart):(_r.onClick=this.createTwoChains("onClick"),_r.onMouseDown=this.createTwoChains("onMouseDown"),_r.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(_r.onMouseEnter=this.onMouseEnter,On&&(_r.onMouseMove=this.onMouseMove)):_r.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?_r.onMouseLeave=this.onMouseLeave:_r.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(_r.onFocus=this.onFocus,_r.onBlur=this.onBlur):(_r.onFocus=this.createTwoChains("onFocus"),_r.onBlur=this.createTwoChains("onBlur"));var mn=R()(an&&an.props&&an.props.className,bn);mn&&(_r.className=mn);var In=Object(c.a)({},_r);Object(C.c)(an)&&(In.ref=Object(C.a)(this.triggerRef,an.ref));var Wn=s.a.cloneElement(an,In),Jn;return(Xt||this.popupRef.current||br)&&(Jn=s.a.createElement(It,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Xt&&qn&&(Jn=null),s.a.createElement(or.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Wn,Jn)}}],[{key:"getDerivedStateFromProps",value:function(Xt,er){var nr=Xt.popupVisible,br={};return nr!==void 0&&er.popupVisible!==nr&&(br.popupVisible=nr,br.prevPopupVisible=er.popupVisible),br}}]),Lt}(s.a.Component);return yt.contextType=or,yt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ur,getDocument:qr,onPopupVisibleChange:et,afterPopupVisibleChange:et,onPopupAlign:et,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},yt}var Lr=$t(O.a),pt=i("2W6z"),qt=i.n(pt),vr=i("4IlW"),pn=i("uK0f"),fr=i.n(pn);function gr(It,yt){if(It===yt)return!0;if(!It||!yt)return!1;var xt=It.length;if(yt.length!==xt)return!1;for(var Tt=0;Tt<xt;Tt++)if(It[Tt]!==yt[Tt])return!1;return!0}function dn(It){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dn=function(xt){return typeof xt}:dn=function(xt){return xt&&typeof Symbol=="function"&&xt.constructor===Symbol&&xt!==Symbol.prototype?"symbol":typeof xt},dn(It)}function Qt(It,yt){if(!(It instanceof yt))throw new TypeError("Cannot call a class as a function")}function sr(It,yt){for(var xt=0;xt<yt.length;xt++){var Tt=yt[xt];Tt.enumerable=Tt.enumerable||!1,Tt.configurable=!0,"value"in Tt&&(Tt.writable=!0),Object.defineProperty(It,Tt.key,Tt)}}function Qr(It,yt,xt){return yt&&sr(It.prototype,yt),xt&&sr(It,xt),It}function Cn(It,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Super expression must either be null or a function");It.prototype=Object.create(yt&&yt.prototype,{constructor:{value:It,writable:!0,configurable:!0}}),yt&&Fn(It,yt)}function Fn(It,yt){return Fn=Object.setPrototypeOf||function(Tt,Lt){return Tt.__proto__=Lt,Tt},Fn(It,yt)}function ti(It){var yt=Bn();return function(){var xt=Ft(It),Tt;if(yt){var Lt=Ft(this).constructor;Tt=Reflect.construct(xt,arguments,Lt)}else Tt=xt.apply(this,arguments);return ki(this,Tt)}}function ki(It,yt){return yt&&(dn(yt)==="object"||typeof yt=="function")?yt:Dn(It)}function Dn(It){if(It===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return It}function Bn(){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(It){return!1}}function Ft(It){return Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(xt){return xt.__proto__||Object.getPrototypeOf(xt)},Ft(It)}var vt=function(){var It=function(yt){Cn(Tt,yt);var xt=ti(Tt);function Tt(){var Lt;return Qt(this,Tt),Lt=xt.apply(this,arguments),Lt.menuItems={},Lt.saveMenuItem=function(_t){return function(Xt){Lt.menuItems[_t]=Xt}},Lt}return Qr(Tt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(_t){!_t.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(_t){var Xt=this.props,er=Xt.fieldNames,nr=Xt.defaultFieldNames;return er[_t]||nr[_t]}},{key:"getOption",value:function(_t,Xt){var er=this.props,nr=er.prefixCls,br=er.expandTrigger,On=er.expandIcon,bn=er.loadingIcon,qn=this.props.onSelect.bind(this,_t,Xt),an=this.props.onItemDoubleClick.bind(this,_t,Xt),_r={onClick:qn,onDoubleClick:an},mn="".concat(nr,"-menu-item"),In=null,Wn=_t[this.getFieldName("children")]&&_t[this.getFieldName("children")].length>0;(Wn||_t.isLeaf===!1)&&(mn+=" ".concat(nr,"-menu-item-expand"),_t.loading||(In=r.createElement("span",{className:"".concat(nr,"-menu-item-expand-icon")},On))),br==="hover"&&(Wn||_t.isLeaf===!1)&&(_r={onMouseEnter:this.delayOnSelect.bind(this,qn),onMouseLeave:this.delayOnSelect.bind(this),onClick:qn}),this.isActiveOption(_t,Xt)&&(mn+=" ".concat(nr,"-menu-item-active"),_r.ref=this.saveMenuItem(Xt)),_t.disabled&&(mn+=" ".concat(nr,"-menu-item-disabled"));var Jn=null;_t.loading&&(mn+=" ".concat(nr,"-menu-item-loading"),Jn=bn||null);var Ei="";return"title"in _t?Ei=_t.title:typeof _t[this.getFieldName("label")]=="string"&&(Ei=_t[this.getFieldName("label")]),r.createElement("li",Object.assign({key:_t[this.getFieldName("value")],className:mn,title:Ei},_r,{role:"menuitem",onMouseDown:function(mi){return mi.preventDefault()}}),_t[this.getFieldName("label")],In,Jn)}},{key:"getActiveOptions",value:function(_t){var Xt=this,er=this.props.options,nr=_t||this.props.activeValue;return fr()(er,function(br,On){return br[Xt.getFieldName("value")]===nr[On]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var _t=this,Xt=this.props.options,er=this.getActiveOptions().map(function(nr){return nr[_t.getFieldName("children")]}).filter(function(nr){return!!nr});return er.unshift(Xt),er}},{key:"delayOnSelect",value:function(_t){for(var Xt=this,er=arguments.length,nr=new Array(er>1?er-1:0),br=1;br<er;br++)nr[br-1]=arguments[br];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof _t=="function"&&(this.delayTimer=window.setTimeout(function(){_t(nr),Xt.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var _t=this.getShowOptions().length,Xt=0;Xt<_t;Xt++){var er=this.menuItems[Xt];er&&er.parentElement&&(er.parentElement.scrollTop=er.offsetTop)}}},{key:"isActiveOption",value:function(_t,Xt){var er=this.props.activeValue,nr=er===void 0?[]:er;return nr[Xt]===_t[this.getFieldName("value")]}},{key:"render",value:function(){var _t=this,Xt=this.props,er=Xt.prefixCls,nr=Xt.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(br,On){return r.createElement("ul",{className:"".concat(er,"-menu"),key:On,style:nr},br.map(function(bn){return _t.getOption(bn,On)}))}))}}]),Tt}(r.Component);return It.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},It}(),_e=vt,Ne={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}}},Ie=Ne;function Ze(It){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ze=function(xt){return typeof xt}:Ze=function(xt){return xt&&typeof Symbol=="function"&&xt.constructor===Symbol&&xt!==Symbol.prototype?"symbol":typeof xt},Ze(It)}function ct(It,yt){if(It==null)return{};var xt=gt(It,yt),Tt,Lt;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols(It);for(Lt=0;Lt<_t.length;Lt++){if(Tt=_t[Lt],yt.indexOf(Tt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(It,Tt))continue;xt[Tt]=It[Tt]}}return xt}function gt(It,yt){if(It==null)return{};var xt={},Tt=Object.keys(It),Lt,_t;for(_t=0;_t<Tt.length;_t++){if(Lt=Tt[_t],yt.indexOf(Lt)>=0)continue;xt[Lt]=It[Lt]}return xt}function kt(It){return Nt(It)||on(It)||Hr(It)||xr()}function xr(){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 Hr(It,yt){if(!It)return;if(typeof It=="string")return ot(It,yt);var xt=Object.prototype.toString.call(It).slice(8,-1);if(xt==="Object"&&It.constructor&&(xt=It.constructor.name),xt==="Map"||xt==="Set")return Array.from(It);if(xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(xt))return ot(It,yt)}function on(It){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(It))return Array.from(It)}function Nt(It){if(Array.isArray(It))return ot(It)}function ot(It,yt){(yt==null||yt>It.length)&&(yt=It.length);for(var xt=0,Tt=new Array(yt);xt<yt;xt++)Tt[xt]=It[xt];return Tt}function dt(It,yt){if(!(It instanceof yt))throw new TypeError("Cannot call a class as a function")}function Yt(It,yt){for(var xt=0;xt<yt.length;xt++){var Tt=yt[xt];Tt.enumerable=Tt.enumerable||!1,Tt.configurable=!0,"value"in Tt&&(Tt.writable=!0),Object.defineProperty(It,Tt.key,Tt)}}function Pt(It,yt,xt){return yt&&Yt(It.prototype,yt),xt&&Yt(It,xt),It}function Et(It,yt){if(typeof yt!="function"&&yt!==null)throw new TypeError("Super expression must either be null or a function");It.prototype=Object.create(yt&&yt.prototype,{constructor:{value:It,writable:!0,configurable:!0}}),yt&&Bt(It,yt)}function Bt(It,yt){return Bt=Object.setPrototypeOf||function(Tt,Lt){return Tt.__proto__=Lt,Tt},Bt(It,yt)}function wt(It){var yt=Tr();return function(){var xt=yr(It),Tt;if(yt){var Lt=yr(this).constructor;Tt=Reflect.construct(xt,arguments,Lt)}else Tt=xt.apply(this,arguments);return Mt(this,Tt)}}function Mt(It,yt){return yt&&(Ze(yt)==="object"||typeof yt=="function")?yt:Nr(It)}function Nr(It){if(It===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return It}function Tr(){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(It){return!1}}function yr(It){return yr=Object.setPrototypeOf?Object.getPrototypeOf:function(xt){return xt.__proto__||Object.getPrototypeOf(xt)},yr(It)}var en=function(){var It=function(yt){Et(Tt,yt);var xt=wt(Tt);function Tt(Lt){var _t;dt(this,Tt),_t=xt.call(this,Lt),_t.setPopupVisible=function(er){var nr=_t.state.value;"popupVisible"in _t.props||_t.setState({popupVisible:er}),er&&!_t.state.popupVisible&&_t.setState({activeValue:nr}),_t.props.onPopupVisibleChange(er)},_t.handleChange=function(er,nr,br){var On=nr.visible;(br.type!=="keydown"||br.keyCode===vr.a.ENTER)&&(_t.props.onChange(er.map(function(bn){return bn[_t.getFieldName("value")]}),er),_t.setPopupVisible(On))},_t.handlePopupVisibleChange=function(er){_t.setPopupVisible(er)},_t.handleMenuSelect=function(er,nr,br){var On=_t.trigger.getRootDomNode();On&&On.focus&&On.focus();var bn=_t.props,qn=bn.changeOnSelect,an=bn.loadData,_r=bn.expandTrigger;if(!er||er.disabled)return;var mn=_t.state.activeValue;mn=mn.slice(0,nr+1),mn[nr]=er[_t.getFieldName("value")];var In=_t.getActiveOptions(mn);if(er.isLeaf===!1&&!er[_t.getFieldName("children")]&&an){qn&&_t.handleChange(In,{visible:!0},br),_t.setState({activeValue:mn}),an(In);return}var Wn={};!er[_t.getFieldName("children")]||!er[_t.getFieldName("children")].length?(_t.handleChange(In,{visible:!1},br),Wn.value=mn):qn&&(br.type==="click"||br.type==="keydown")&&(_r==="hover"?_t.handleChange(In,{visible:!1},br):_t.handleChange(In,{visible:!0},br),Wn.value=mn),Wn.activeValue=mn,("value"in _t.props||br.type==="keydown"&&br.keyCode!==vr.a.ENTER)&&delete Wn.value,_t.setState(Wn)},_t.handleItemDoubleClick=function(){var er=_t.props.changeOnSelect;er&&_t.setPopupVisible(!1)},_t.handleKeyDown=function(er){var nr=_t.props.children;if(nr&&nr.props.onKeyDown){nr.props.onKeyDown(er);return}var br=kt(_t.state.activeValue),On=br.length-1<0?0:br.length-1,bn=_t.getCurrentLevelOptions(),qn=bn.map(function(In){return In[_t.getFieldName("value")]}).indexOf(br[On]);if(er.keyCode!==vr.a.DOWN&&er.keyCode!==vr.a.UP&&er.keyCode!==vr.a.LEFT&&er.keyCode!==vr.a.RIGHT&&er.keyCode!==vr.a.ENTER&&er.keyCode!==vr.a.SPACE&&er.keyCode!==vr.a.BACKSPACE&&er.keyCode!==vr.a.ESC&&er.keyCode!==vr.a.TAB)return;if(!_t.state.popupVisible&&er.keyCode!==vr.a.BACKSPACE&&er.keyCode!==vr.a.LEFT&&er.keyCode!==vr.a.RIGHT&&er.keyCode!==vr.a.ESC&&er.keyCode!==vr.a.TAB){_t.setPopupVisible(!0);return}if(er.keyCode===vr.a.DOWN||er.keyCode===vr.a.UP){er.preventDefault();var an=qn;an!==-1?er.keyCode===vr.a.DOWN?(an+=1,an=an>=bn.length?0:an):(an-=1,an=an<0?bn.length-1:an):an=0,br[On]=bn[an][_t.getFieldName("value")]}else if(er.keyCode===vr.a.LEFT||er.keyCode===vr.a.BACKSPACE)er.preventDefault(),br.splice(br.length-1,1);else if(er.keyCode===vr.a.RIGHT)er.preventDefault(),bn[qn]&&bn[qn][_t.getFieldName("children")]&&br.push(bn[qn][_t.getFieldName("children")][0][_t.getFieldName("value")]);else if(er.keyCode===vr.a.ESC||er.keyCode===vr.a.TAB){_t.setPopupVisible(!1);return}(!br||br.length===0)&&_t.setPopupVisible(!1);var _r=_t.getActiveOptions(br),mn=_r[_r.length-1];_t.handleMenuSelect(mn,_r.length-1,er),_t.props.onKeyDown&&_t.props.onKeyDown(er)},_t.saveTrigger=function(er){_t.trigger=er};var Xt=[];return"value"in Lt?Xt=Lt.value||[]:"defaultValue"in Lt&&(Xt=Lt.defaultValue||[]),qt()(!("filedNames"in Lt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),_t.state={popupVisible:Lt.popupVisible,activeValue:Xt,value:Xt,prevProps:Lt},_t.defaultFieldNames={label:"label",value:"value",children:"children"},_t}return Pt(Tt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(_t){var Xt=this.defaultFieldNames,er=this.props,nr=er.fieldNames,br=er.filedNames;return"filedNames"in this.props?br[_t]||Xt[_t]:nr[_t]||Xt[_t]}},{key:"getFieldNames",value:function(){var _t=this.props,Xt=_t.fieldNames,er=_t.filedNames;return"filedNames"in this.props?er:Xt}},{key:"getCurrentLevelOptions",value:function(){var _t=this,Xt=this.props.options,er=Xt===void 0?[]:Xt,nr=this.state.activeValue,br=nr===void 0?[]:nr,On=fr()(er,function(bn,qn){return bn[_t.getFieldName("value")]===br[qn]},{childrenKeyName:this.getFieldName("children")});return On[On.length-2]?On[On.length-2][this.getFieldName("children")]:kt(er).filter(function(bn){return!bn.disabled})}},{key:"getActiveOptions",value:function(_t){var Xt=this;return fr()(this.props.options||[],function(er,nr){return er[Xt.getFieldName("value")]===_t[nr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var _t=this.props,Xt=_t.prefixCls,er=_t.transitionName,nr=_t.popupClassName,br=_t.options,On=br===void 0?[]:br,bn=_t.disabled,qn=_t.builtinPlacements,an=_t.popupPlacement,_r=_t.children,mn=_t.dropdownRender,In=ct(_t,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Wn=r.createElement("div",null),Jn="";On&&On.length>0?Wn=r.createElement(_e,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Jn=" ".concat(Xt,"-menus-empty");var Ei=Wn;return mn&&(Ei=mn(Wn)),r.createElement(Lr,Object.assign({ref:this.saveTrigger},In,{popupPlacement:an,builtinPlacements:qn,popupTransitionName:er,action:bn?[]:["click"],popupVisible:bn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(Xt,"-menus"),popupClassName:nr+Jn,popup:Ei}),r.cloneElement(_r,{onKeyDown:this.handleKeyDown,tabIndex:bn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(_t,Xt){var er=Xt.prevProps,nr=er===void 0?{}:er,br={prevProps:_t};return"value"in _t&&!gr(nr.value,_t.value)&&(br.value=_t.value||[],"loadData"in _t||(br.activeValue=_t.value||[])),"popupVisible"in _t&&(br.popupVisible=_t.popupVisible),br}}]),Tt}(r.Component);return It.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Ie,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},It}(),sn=en,Vn=sn,jn=i("BGR+"),ri=i("kbBi"),ci=i.n(ri),gi=i("HQEm"),Ni=i.n(gi),Qe=i("fEPi"),Se=i.n(Qe),Pe=i("5YOS"),He=i.n(Pe),Ye=i("DFhj"),ze=i.n(Ye),$e=i("5rEg"),St=i("H84U"),ft=i("YMnH"),Ht=i("uaoM"),Er=i("3Nzz"),Fr=i("0n0R"),tn=function(It,yt){var xt={};for(var Tt in It)Object.prototype.hasOwnProperty.call(It,Tt)&&yt.indexOf(Tt)<0&&(xt[Tt]=It[Tt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Tt=Object.getOwnPropertySymbols(It);Lt<Tt.length;Lt++)yt.indexOf(Tt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(It,Tt[Lt])&&(xt[Tt[Lt]]=It[Tt[Lt]]);return xt},Zt=50;function Rn(It,yt,xt){return It.split(yt).map(function(Tt,Lt){return Lt===0?Tt:[r.createElement("span",{className:"".concat(xt,"-menu-item-keyword"),key:"seperator"},yt),Tt]})}function vn(It,yt,xt){return yt.some(function(Tt){return Tt[xt.label].indexOf(It)>-1})}function Un(It,yt,xt,Tt){return yt.map(function(Lt,_t){var Xt=Lt[Tt.label],er=Xt.indexOf(It)>-1?Rn(Xt,It,xt):Xt;return _t===0?er:[" / ",er]})}function hn(It,yt,xt,Tt){function Lt(_t){return _t[Tt.label].indexOf(xt)>-1}return It.findIndex(Lt)-yt.findIndex(Lt)}function Wr(It){var yt=It.fieldNames;return yt}function Kn(It){var yt=Wr(It)||{},xt={children:yt.children||"children",label:yt.label||"label",value:yt.value||"value"};return xt}function ei(It,yt){var xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Tt=Kn(yt),Lt=[],_t=Tt.children;return It.forEach(function(Xt){var er=xt.concat(Xt);(yt.changeOnSelect||!Xt[_t]||!Xt[_t].length)&&Lt.push(er),Xt[_t]&&(Lt=Lt.concat(ei(Xt[_t],yt,er)))}),Lt}var Si=function(yt){return yt.join(" / ")};function Vr(It){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(It||[]).forEach(function(xt){var Tt=yt.value||"value";Object(Ht.a)(Tt in xt,"Cascader","Not found `value` in `options`."),Vr(xt[yt.children||"children"],yt)})}var fn=function(It){a()(xt,It);var yt=l()(xt);function xt(Tt){var Lt;return f()(this,xt),Lt=yt.call(this,Tt),Lt.cachedOptions=[],Lt.setValue=function(_t){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Lt.props||Lt.setState({value:_t});var er=Lt.props.onChange;er&&er(_t,Xt)},Lt.saveInput=function(_t){Lt.input=_t},Lt.handleChange=function(_t,Xt){if(Lt.setState({inputValue:""}),Xt[0].__IS_FILTERED_OPTION){var er=_t[0],nr=Xt[0].path;Lt.setValue(er,nr);return}Lt.setValue(_t,Xt)},Lt.handlePopupVisibleChange=function(_t){"popupVisible"in Lt.props||Lt.setState(function(er){return{popupVisible:_t,inputFocused:_t,inputValue:_t?er.inputValue:""}});var Xt=Lt.props.onPopupVisibleChange;Xt&&Xt(_t)},Lt.handleInputBlur=function(){Lt.setState({inputFocused:!1})},Lt.handleInputClick=function(_t){var Xt=Lt.state,er=Xt.inputFocused,nr=Xt.popupVisible;(er||nr)&&_t.stopPropagation()},Lt.handleKeyDown=function(_t){(_t.keyCode===vr.a.BACKSPACE||_t.keyCode===vr.a.SPACE)&&_t.stopPropagation()},Lt.handleInputChange=function(_t){var Xt=Lt.state.popupVisible,er=_t.target.value;Xt||Lt.handlePopupVisibleChange(!0),Lt.setState({inputValue:er})},Lt.clearSelection=function(_t){var Xt=Lt.state.inputValue;_t.preventDefault(),_t.stopPropagation(),Xt?Lt.setState({inputValue:""}):(Lt.handlePopupVisibleChange(!1),Lt.clearSelectionTimeout=setTimeout(function(){Lt.setValue([])},200))},Lt.renderCascader=function(_t,Xt){var er=_t.getPopupContainer,nr=_t.getPrefixCls,br=_t.renderEmpty,On=_t.direction;return r.createElement(Er.b.Consumer,null,function(bn){var qn,an,_r,mn,In=n()(Lt),Wn=In.props,Jn=In.state,Ei=Wn.prefixCls,yi=Wn.inputPrefixCls,mi=Wn.children,Vi=Wn.placeholder,la=Vi===void 0?Xt.placeholder||"Please select":Vi,Gi=Wn.size,ia=Wn.disabled,$i=Wn.className,xn=Wn.style,Ti=Wn.allowClear,Ji=Wn.showSearch,Wi=Ji===void 0?!1:Ji,qi=Wn.suffixIcon,Ir=Wn.expandIcon,ar=Wn.notFoundContent,nn=Wn.popupClassName,Gt=Wn.bordered,wr=Wn.dropdownRender,Pr=tn(Wn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),Jr=Gi||bn,wn=Jn.value,bt=Jn.inputFocused,mr=On==="rtl",Ar=nr("cascader",Ei),Ur=nr("input",yi),un=R()((qn={},v()(qn,"".concat(Ur,"-lg"),Jr==="large"),v()(qn,"".concat(Ur,"-sm"),Jr==="small"),qn)),An=Ti&&!ia&&wn.length>0||Jn.inputValue?r.createElement(ci.a,{className:"".concat(Ar,"-picker-clear"),onClick:Lt.clearSelection}):null,ln=R()((an={},v()(an,"".concat(Ar,"-picker-arrow"),!0),v()(an,"".concat(Ar,"-picker-arrow-expand"),Jn.popupVisible),an)),Hn=R()($i,"".concat(Ar,"-picker"),(_r={},v()(_r,"".concat(Ar,"-picker-rtl"),mr),v()(_r,"".concat(Ar,"-picker-with-value"),Jn.inputValue),v()(_r,"".concat(Ar,"-picker-disabled"),ia),v()(_r,"".concat(Ar,"-picker-").concat(Jr),!!Jr),v()(_r,"".concat(Ar,"-picker-show-search"),!!Wi),v()(_r,"".concat(Ar,"-picker-focused"),bt),v()(_r,"".concat(Ar,"-picker-borderless"),!Gt),_r)),Ln=Object(jn.default)(Pr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),ni=Wn.options,Ai=Kn(Lt.props);if(ni&&ni.length>0)Jn.inputValue&&(ni=Lt.generateFilteredOptions(Ar,br));else{var ii;ni=[(ii={},v()(ii,Ai.label,ar||br("Cascader")),v()(ii,Ai.value,"ANT_CASCADER_NOT_FOUND"),ii)]}Jn.popupVisible?Lt.cachedOptions=ni:ni=Lt.cachedOptions;var _i={},Ri=(ni||[]).length===1&&ni[0].isEmptyNode;Ri&&(_i.height="auto");var ji=Wi.matchInputWidth!==!1;ji&&(Jn.inputValue||Ri)&&Lt.input&&(_i.width=Lt.input.input.offsetWidth);var wi;qi?wi=Object(Fr.c)(qi,r.createElement("span",{className:"".concat(Ar,"-picker-arrow")},qi),function(){var xa;return{className:R()((xa={},v()(xa,qi.props.className,qi.props.className),v()(xa,"".concat(Ar,"-picker-arrow"),!0),xa))}}):wi=r.createElement(Ni.a,{className:ln});var Ii=mi||r.createElement("span",{style:xn,className:Hn},r.createElement("span",{className:"".concat(Ar,"-picker-label")},Lt.getLabel()),r.createElement($e.a,p()({},Ln,{tabIndex:"-1",ref:Lt.saveInput,prefixCls:Ur,placeholder:wn&&wn.length>0?void 0:la,className:"".concat(Ar,"-input ").concat(un),value:Jn.inputValue,disabled:ia,readOnly:!Wi,autoComplete:Ln.autoComplete||"off",onClick:Wi?Lt.handleInputClick:void 0,onBlur:Wi?Lt.handleInputBlur:void 0,onKeyDown:Lt.handleKeyDown,onChange:Wi?Lt.handleInputChange:void 0})),An,wi),Oi;Ir?Oi=Ir:Oi=mr?r.createElement(ze.a,null):r.createElement(Se.a,null);var Ui=r.createElement("span",{className:"".concat(Ar,"-menu-item-loading-icon")},r.createElement(He.a,{spin:!0})),Zi=Wn.getPopupContainer||er,ma=Object(jn.default)(Wn,["inputIcon","expandIcon","loadingIcon","bordered"]),Hi=R()(nn,(mn={},v()(mn,"".concat(Ar,"-menu-").concat(On),On==="rtl"),v()(mn,"".concat(Ar,"-menu-empty"),ni.length===1&&ni[0].value==="ANT_CASCADER_NOT_FOUND"),mn));return r.createElement(Vn,p()({},ma,{prefixCls:Ar,getPopupContainer:Zi,options:ni,value:wn,popupVisible:Jn.popupVisible,onPopupVisibleChange:Lt.handlePopupVisibleChange,onChange:Lt.handleChange,dropdownMenuColumnStyle:_i,expandIcon:Oi,loadingIcon:Ui,popupClassName:Hi,popupPlacement:Lt.getPopupPlacement(On),dropdownRender:wr}),Ii)})},Lt.state={value:Tt.value||Tt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Tt.popupVisible,flattenOptions:Tt.showSearch?ei(Tt.options,Tt):void 0,prevProps:Tt},Lt}return u()(xt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Lt=this.props,_t=Lt.options,Xt=Lt.displayRender,er=Xt===void 0?Si:Xt,nr=Kn(this.props),br=this.state.value,On=Array.isArray(br[0])?br[0]:br,bn=fr()(_t,function(an,_r){return an[nr.value]===On[_r]},{childrenKeyName:nr.children}),qn=bn.length?bn.map(function(an){return an[nr.label]}):br;return er(qn,bn)}},{key:"generateFilteredOptions",value:function(Lt,_t){var Xt=this,er,nr=this.props,br=nr.showSearch,On=nr.notFoundContent,bn=Kn(this.props),qn=br.filter,an=qn===void 0?vn:qn,_r=br.render,mn=_r===void 0?Un:_r,In=br.sort,Wn=In===void 0?hn:In,Jn=br.limit,Ei=Jn===void 0?Zt:Jn,yi=this.state,mi=yi.flattenOptions,Vi=mi===void 0?[]:mi,la=yi.inputValue,Gi;if(Ei>0){Gi=[];var ia=0;Vi.some(function($i){var xn=an(Xt.state.inputValue,$i,bn);return xn&&(Gi.push($i),ia+=1),ia>=Ei})}else Object(Ht.a)(typeof Ei!="number","Cascader","'limit' of showSearch should be positive number or false."),Gi=Vi.filter(function($i){return an(Xt.state.inputValue,$i,bn)});return Gi=Gi.sort(function($i,xn){return Wn($i,xn,la,bn)}),Gi.length>0?Gi.map(function($i){var xn;return xn={__IS_FILTERED_OPTION:!0,path:$i},v()(xn,bn.value,$i.map(function(Ti){return Ti[bn.value]})),v()(xn,bn.label,mn(la,$i,Lt,bn)),v()(xn,"disabled",$i.some(function(Ti){return!!Ti.disabled})),v()(xn,"isEmptyNode",!0),xn}):[(er={},v()(er,bn.value,"ANT_CASCADER_NOT_FOUND"),v()(er,bn.label,On||_t("Cascader")),v()(er,"disabled",!0),v()(er,"isEmptyNode",!0),er)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",_t=this.props.popupPlacement;return _t!==void 0?_t:Lt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Lt=this;return r.createElement(St.a,null,function(_t){return r.createElement(ft.a,null,function(Xt){return Lt.renderCascader(_t,Xt)})})}}],[{key:"getDerivedStateFromProps",value:function(Lt,_t){var Xt=_t.prevProps,er={prevProps:Lt};return"value"in Lt&&(er.value=Lt.value||[]),"popupVisible"in Lt&&(er.popupVisible=Lt.popupVisible),Lt.showSearch&&Xt.options!==Lt.options&&(er.flattenOptions=ei(Lt.options,Lt)),er}}]),xt}(r.Component);fn.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var kn=D.a=fn},DFhj:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("GGyF"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},DL4k:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},DN4a:function(k,D,i){var y=i("Fofx"),p=i("QBsz"),S=y.identity,v=5e-5;function m(a){return a>v||a<-v}var f=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=f.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 a=this.parent,e=a&&a.transform,l=this.needLocalTransform(),r=this.transform;if(!(l||e)){r&&S(r);return}r=r||y.create(),l?this.getLocalTransform(r):S(r),e&&(l?y.mul(r,a.transform,r):y.copy(r,a.transform)),this.transform=r;var s=this.globalScaleRatio;if(s!=null&&s!==1){this.getGlobalScale(u);var c=u[0]<0?-1:1,h=u[1]<0?-1:1,g=((u[0]-c)*s+c)/u[0]||0,A=((u[1]-h)*s+h)/u[1]||0;r[0]*=g,r[1]*=g,r[2]*=A,r[3]*=A}this.invTransform=this.invTransform||y.create(),y.invert(this.invTransform,r)},d.getLocalTransform=function(a){return f.getLocalTransform(this,a)},d.setTransform=function(a){var e=this.transform,l=a.dpr||1;e?a.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):a.setTransform(l,0,0,l,0,0)},d.restoreTransform=function(a){var e=a.dpr||1;a.setTransform(e,0,0,e,0,0)};var o=[],n=y.create();d.setLocalTransform=function(a){if(!a)return;var e=a[0]*a[0]+a[1]*a[1],l=a[2]*a[2]+a[3]*a[3],r=this.position,s=this.scale;m(e-1)&&(e=Math.sqrt(e)),m(l-1)&&(l=Math.sqrt(l)),a[0]<0&&(e=-e),a[3]<0&&(l=-l),r[0]=a[4],r[1]=a[5],s[0]=e,s[1]=l,this.rotation=Math.atan2(-a[1]/l,a[0]/e)},d.decomposeTransform=function(){if(!this.transform)return;var a=this.parent,e=this.transform;a&&a.transform&&(y.mul(o,a.invTransform,e),e=o);var l=this.origin;l&&(l[0]||l[1])&&(n[4]=l[0],n[5]=l[1],y.mul(o,e,n),o[4]-=l[0],o[5]-=l[1],e=o),this.setLocalTransform(e)},d.getGlobalScale=function(a){var e=this.transform;return a=a||[],e?(a[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),a[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(a[0]=-a[0]),e[3]<0&&(a[1]=-a[1]),a):(a[0]=1,a[1]=1,a)},d.transformCoordToLocal=function(a,e){var l=[a,e],r=this.invTransform;return r&&p.applyTransform(l,l,r),l},d.transformCoordToGlobal=function(a,e){var l=[a,e],r=this.transform;return r&&p.applyTransform(l,l,r),l},f.getLocalTransform=function(a,e){e=e||[],S(e);var l=a.origin,r=a.scale||[1,1],s=a.rotation||0,c=a.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),y.scale(e,e,r),s&&y.rotate(e,e,s),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=c[0],e[5]+=c[1],e};var t=f;k.exports=t},DO2E:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},DSRE:function(k,D,i){(function(y){var p=i("Kz5y"),S=i("B8du"),v=D&&!D.nodeType&&D,m=v&&typeof y=="object"&&y&&!y.nodeType&&y,f=m&&m.exports===v,d=f?p.Buffer:void 0,u=d?d.isBuffer:void 0,o=u||S;y.exports=o}).call(this,i("YuTi")(k))},DYRE:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("OPEp"),v=i.n(S)},DZo9:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("JGo8"),v=i.n(S),m=i("+L6B"),f=i("MXD1"),d=i("5Dmo")},Dagg:function(k,D,i){var y=i("Gev7"),p=i("mFDi"),S=i("bYtY"),v=i("Xnb7");function m(d){y.call(this,d)}m.prototype={constructor:m,type:"image",brush:function(u,o){var n=this.style,t=n.image;n.bind(u,this,o);var a=this._image=v.createOrUpdateImage(t,this._image,this,this.onload);if(!a||!v.isImageReady(a))return;var e=n.x||0,l=n.y||0,r=n.width,s=n.height,c=a.width/a.height;if(r==null&&s!=null?r=s*c:s==null&&r!=null?s=r/c:r==null&&s==null&&(r=a.width,s=a.height),this.setTransform(u),n.sWidth&&n.sHeight){var h=n.sx||0,g=n.sy||0;u.drawImage(a,h,g,n.sWidth,n.sHeight,e,l,r,s)}else if(n.sx&&n.sy){var h=n.sx,g=n.sy,A=r-h,b=s-g;u.drawImage(a,h,g,A,b,e,l,r,s)}else u.drawImage(a,e,l,r,s);n.text!=null&&(this.restoreTransform(u),this.drawRectText(u,this.getBoundingRect()))},getBoundingRect:function(){var u=this.style;return this._rect||(this._rect=new p(u.x||0,u.y||0,u.width||0,u.height||0)),this._rect}},S.inherits(m,y);var f=m;k.exports=f},Dg8C:function(k,D,i){var y=i("XxSj"),p=i("bYtY");function S(v,m){v.eachSeriesByType("sankey",function(f){var d=f.getGraph(),u=d.nodes;if(u.length){var o=Infinity,n=-Infinity;p.each(u,function(t){var a=t.getLayout().value;a<o&&(o=a),a>n&&(n=a)}),p.each(u,function(t){var a=new y({type:"color",mappingMethod:"linear",dataExtent:[o,n],visual:f.get("color")}),e=a.mapValueToVisual(t.getLayout().value),l=t.getModel().get("itemStyle.color");l!=null?t.setVisual("color",l):t.setVisual("color",e)})}})}k.exports=S},DjyN:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("Urep"),v=i.n(S),m=i("OaEy")},"DlR+":function(k,D,i){var y=i("MFOe"),p=y.Global,S=y.trim;k.exports={name:"cookieStorage",read:m,write:d,each:f,remove:u,clearAll:o};var v=p.document;function m(t){if(!t||!n(t))return null;var a="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(v.cookie.replace(new RegExp(a),"$1"))}function f(t){for(var a=v.cookie.split(/; ?/g),e=a.length-1;e>=0;e--){if(!S(a[e]))continue;var l=a[e].split("="),r=unescape(l[0]),s=unescape(l[1]);t(s,r)}}function d(t,a){if(!t)return;v.cookie=escape(t)+"="+escape(a)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function u(t){if(!t||!n(t))return;v.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function o(){f(function(t,a){u(a)})}function n(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(v.cookie)}},Ducp:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("+TT/"),v=i("XpcN"),m=p.Group,f=["width","height"],d=["x","y"],u=v.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(n,t,a,e,l,r,s){var c=this;u.superCall(this,"renderInner",n,t,a,e,l,r,s);var h=this._controllerGroup,g=t.get("pageIconSize",!0);y.isArray(g)||(g=[g,g]),b("pagePrev",0);var A=t.getModel("pageTextStyle");h.add(new p.Text({name:"pageText",style:{textFill:A.getTextColor(),font:A.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(w,x){var T=w+"DataIndex",_=p.createIcon(t.get("pageIcons",!0)[t.getOrient().name][x],{onclick:y.bind(c._pageGo,c,T,t,e)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});_.name=w,h.add(_)}},layoutInner:function(n,t,a,e,l,r){var s=this.getSelectorGroup(),c=n.getOrient().index,h=f[c],g=d[c],A=f[1-c],b=d[1-c];l&&S.box("horizontal",s,n.get("selectorItemGap",!0));var w=n.get("selectorButtonGap",!0),x=s.getBoundingRect(),T=[-x.x,-x.y],_=y.clone(a);l&&(_[h]=a[h]-x[h]-w);var E=this._layoutContentAndController(n,e,_,c,h,A,b);if(l){if(r==="end")T[c]+=E[h]+w;else{var C=x[h]+w;T[c]-=C,E[g]-=C}E[h]+=x[h]+w,T[1-c]+=E[b]+E[A]/2-x[A]/2,E[A]=Math.max(E[A],x[A]),E[b]=Math.min(E[b],x[b]+T[1-c]),s.attr("position",T)}return E},_layoutContentAndController:function(n,t,a,e,l,r,s){var c=this.getContentGroup(),h=this._containerGroup,g=this._controllerGroup;S.box(n.get("orient"),c,n.get("itemGap"),e?a.width:null,e?null:a.height),S.box("horizontal",g,n.get("pageButtonItemGap",!0));var A=c.getBoundingRect(),b=g.getBoundingRect(),w=this._showController=A[l]>a[l],x=[-A.x,-A.y];t||(x[e]=c.position[e]);var T=[0,0],_=[-b.x,-b.y],E=y.retrieve2(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(w){var C=n.get("pageButtonPosition",!0);C==="end"?_[e]+=a[l]-b[l]:T[e]+=b[l]+E}_[1-e]+=A[r]/2-b[r]/2,c.attr("position",x),h.attr("position",T),g.attr("position",_);var I={x:0,y:0};if(I[l]=w?a[l]:A[l],I[r]=Math.max(A[r],b[r]),I[s]=Math.min(0,b[s]+_[1-e]),h.__rectSize=a[l],w){var O={x:0,y:0};O[l]=Math.max(a[l]-b[l]-E,0),O[r]=I[r],h.setClipPath(new p.Rect({shape:O})),h.__rectSize=O[l]}else g.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var F=this._getPageInfo(n);return F.pageIndex!=null&&p.updateProps(c,{position:F.contentPosition},w?n:!1),this._updatePageInfoView(n,F),I},_pageGo:function(n,t,a){var e=this._getPageInfo(t)[n];e!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(n,t){var a=this._controllerGroup;y.each(["pagePrev","pageNext"],function(h){var g=t[h+"DataIndex"]!=null,A=a.childOfName(h);A&&(A.setStyle("fill",g?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),A.cursor=g?"pointer":"default")});var e=a.childOfName("pageText"),l=n.get("pageFormatter"),r=t.pageIndex,s=r!=null?r+1:0,c=t.pageCount;e&&l&&e.setStyle("text",y.isString(l)?l.replace("{current}",s).replace("{total}",c):l({current:s,total:c}))},_getPageInfo:function(n){var t=n.get("scrollDataIndex",!0),a=this.getContentGroup(),e=this._containerGroup.__rectSize,l=n.getOrient().index,r=f[l],s=d[l],c=this._findTargetItemIndex(t),h=a.children(),g=h[c],A=h.length,b=A?1:0,w={contentPosition:a.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return w;var x=I(g);w.contentPosition[l]=-x.s;for(var T=c+1,_=x,E=x,C=null;T<=A;++T)C=I(h[T]),(!C&&E.e>_.s+e||C&&!O(C,_.s))&&(E.i>_.i?_=E:_=C,_&&(w.pageNextDataIndex==null&&(w.pageNextDataIndex=_.i),++w.pageCount)),E=C;for(var T=c-1,_=x,E=x,C=null;T>=-1;--T)C=I(h[T]),(!C||!O(E,C.s))&&_.i<E.i&&(E=_,w.pagePrevDataIndex==null&&(w.pagePrevDataIndex=_.i),++w.pageCount,++w.pageIndex),_=C;return w;function I(F){if(F){var R=F.getBoundingRect(),B=R[s]+F.position[l];return{s:B,e:B+R[r],i:F.__legendDataIndex}}}function O(F,R){return F.e>=R&&F.s<=R+e}},_findTargetItemIndex:function(n){if(!this._showController)return 0;var t,a=this.getContentGroup(),e;return a.eachChild(function(l,r){var s=l.__legendDataIndex;e==null&&s!=null&&(e=r),s===n&&(t=r)}),t!=null?t:e}}),o=u;k.exports=o},"E/ki":function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},E2g8:function(k,D,i){(function(y,p){/*!
* @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(S,v){k.exports=v()})(this,function(){"use strict";function S(ye){var Ee=typeof ye;return ye!==null&&(Ee==="object"||Ee==="function")}function v(ye){return typeof ye=="function"}var m=void 0;Array.isArray?m=Array.isArray:m=function(Ee){return Object.prototype.toString.call(Ee)==="[object Array]"};var f=m,d=0,u=void 0,o=void 0,n=function(Ee,Ce){x[d]=Ee,x[d+1]=Ce,d+=2,d===2&&(o?o(T):E())};function t(ye){o=ye}function a(ye){n=ye}var e=typeof window!="undefined"?window:void 0,l=e||{},r=l.MutationObserver||l.WebKitMutationObserver,s=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(T)}}function g(){return typeof u!="undefined"?function(){u(T)}:w()}function A(){var ye=0,Ee=new r(T),Ce=document.createTextNode("");return Ee.observe(Ce,{characterData:!0}),function(){Ce.data=ye=++ye%2}}function b(){var ye=new MessageChannel;return ye.port1.onmessage=T,function(){return ye.port2.postMessage(0)}}function w(){var ye=setTimeout;return function(){return ye(T,1)}}var x=new Array(1e3);function T(){for(var ye=0;ye<d;ye+=2){var Ee=x[ye],Ce=x[ye+1];Ee(Ce),x[ye]=void 0,x[ye+1]=void 0}d=0}function _(){try{var ye=Function("return this")().require("vertx");return u=ye.runOnLoop||ye.runOnContext,g()}catch(Ee){return w()}}var E=void 0;s?E=h():r?E=A():c?E=b():e===void 0&&!0?E=_():E=w();function C(ye,Ee){var Ce=this,ue=new this.constructor(F);ue[O]===void 0&&Ue(ue);var ge=Ce._state;if(ge){var Oe=arguments[ge-1];n(function(){return Ae(ge,ue,Oe,Ce._result)})}else se(Ce,ue,ye,Ee);return ue}function I(ye){var Ee=this;if(ye&&typeof ye=="object"&&ye.constructor===Ee)return ye;var Ce=new Ee(F);return Q(Ce,ye),Ce}var O=Math.random().toString(36).substring(2);function F(){}var R=void 0,B=1,P=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function M(){return new TypeError("A promises callback cannot return that same promise.")}function z(ye,Ee,Ce,ue){try{ye.call(Ee,Ce,ue)}catch(ge){return ge}}function W(ye,Ee,Ce){n(function(ue){var ge=!1,Oe=z(Ce,Ee,function(Je){if(ge)return;ge=!0,Ee!==Je?Q(ue,Je):ee(ue,Je)},function(Je){if(ge)return;ge=!0,q(ue,Je)},"Settle: "+(ue._label||" unknown promise"));!ge&&Oe&&(ge=!0,q(ue,Oe))},ye)}function H(ye,Ee){Ee._state===B?ee(ye,Ee._result):Ee._state===P?q(ye,Ee._result):se(Ee,void 0,function(Ce){return Q(ye,Ce)},function(Ce){return q(ye,Ce)})}function V(ye,Ee,Ce){Ee.constructor===ye.constructor&&Ce===C&&Ee.constructor.resolve===I?H(ye,Ee):Ce===void 0?ee(ye,Ee):v(Ce)?W(ye,Ee,Ce):ee(ye,Ee)}function Q(ye,Ee){if(ye===Ee)q(ye,X());else if(S(Ee)){var Ce=void 0;try{Ce=Ee.then}catch(ue){q(ye,ue);return}V(ye,Ee,Ce)}else ee(ye,Ee)}function G(ye){ye._onerror&&ye._onerror(ye._result),re(ye)}function ee(ye,Ee){if(ye._state!==R)return;ye._result=Ee,ye._state=B,ye._subscribers.length!==0&&n(re,ye)}function q(ye,Ee){if(ye._state!==R)return;ye._state=P,ye._result=Ee,n(G,ye)}function se(ye,Ee,Ce,ue){var ge=ye._subscribers,Oe=ge.length;ye._onerror=null,ge[Oe]=Ee,ge[Oe+B]=Ce,ge[Oe+P]=ue,Oe===0&&ye._state&&n(re,ye)}function re(ye){var Ee=ye._subscribers,Ce=ye._state;if(Ee.length===0)return;for(var ue=void 0,ge=void 0,Oe=ye._result,Je=0;Je<Ee.length;Je+=3)ue=Ee[Je],ge=Ee[Je+Ce],ue?Ae(Ce,ue,ge,Oe):ge(Oe);ye._subscribers.length=0}function Ae(ye,Ee,Ce,ue){var ge=v(Ce),Oe=void 0,Je=void 0,lt=!0;if(ge){try{Oe=Ce(ue)}catch(tt){lt=!1,Je=tt}if(Ee===Oe){q(Ee,M());return}}else Oe=ue;Ee._state!==R||(ge&&lt?Q(Ee,Oe):lt===!1?q(Ee,Je):ye===B?ee(Ee,Oe):ye===P&&q(Ee,Oe))}function Te(ye,Ee){try{Ee(function(ue){Q(ye,ue)},function(ue){q(ye,ue)})}catch(Ce){q(ye,Ce)}}var Re=0;function Ge(){return Re++}function Ue(ye){ye[O]=Re++,ye._state=void 0,ye._result=void 0,ye._subscribers=[]}function nt(){return new Error("Array Methods must be provided an Array")}var Le=function(){function ye(Ee,Ce){this._instanceConstructor=Ee,this.promise=new Ee(F),this.promise[O]||Ue(this.promise),f(Ce)?(this.length=Ce.length,this._remaining=Ce.length,this._result=new Array(this.length),this.length===0?ee(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ce),this._remaining===0&&ee(this.promise,this._result))):q(this.promise,nt())}return ye.prototype._enumerate=function(Ce){for(var ue=0;this._state===R&&ue<Ce.length;ue++)this._eachEntry(Ce[ue],ue)},ye.prototype._eachEntry=function(Ce,ue){var ge=this._instanceConstructor,Oe=ge.resolve;if(Oe===I){var Je=void 0,lt=void 0,tt=!1;try{Je=Ce.then}catch(st){tt=!0,lt=st}if(Je===C&&Ce._state!==R)this._settledAt(Ce._state,ue,Ce._result);else if(typeof Je!="function")this._remaining--,this._result[ue]=Ce;else if(ge===ne){var ke=new ge(F);tt?q(ke,lt):V(ke,Ce,Je),this._willSettleAt(ke,ue)}else this._willSettleAt(new ge(function(st){return st(Ce)}),ue)}else this._willSettleAt(Oe(Ce),ue)},ye.prototype._settledAt=function(Ce,ue,ge){var Oe=this.promise;Oe._state===R&&(this._remaining--,Ce===P?q(Oe,ge):this._result[ue]=ge),this._remaining===0&&ee(Oe,this._result)},ye.prototype._willSettleAt=function(Ce,ue){var ge=this;se(Ce,void 0,function(Oe){return ge._settledAt(B,ue,Oe)},function(Oe){return ge._settledAt(P,ue,Oe)})},ye}();function le(ye){return new Le(this,ye).promise}function Xe(ye){var Ee=this;return f(ye)?new Ee(function(Ce,ue){for(var ge=ye.length,Oe=0;Oe<ge;Oe++)Ee.resolve(ye[Oe]).then(Ce,ue)}):new Ee(function(Ce,ue){return ue(new TypeError("You must pass an array to race."))})}function pe(ye){var Ee=this,Ce=new Ee(F);return q(Ce,ye),Ce}function Z(){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 ne=function(){function ye(Ee){this[O]=Ge(),this._result=this._state=void 0,this._subscribers=[],F!==Ee&&(typeof Ee!="function"&&Z(),this instanceof ye?Te(this,Ee):Y())}return ye.prototype.catch=function(Ce){return this.then(null,Ce)},ye.prototype.finally=function(Ce){var ue=this,ge=ue.constructor;return v(Ce)?ue.then(function(Oe){return ge.resolve(Ce()).then(function(){return Oe})},function(Oe){return ge.resolve(Ce()).then(function(){throw Oe})}):ue.then(Ce,Ce)},ye}();ne.prototype.then=C,ne.all=le,ne.race=Xe,ne.resolve=I,ne.reject=pe,ne._setScheduler=t,ne._setAsap=a,ne._asap=n;function ce(){var ye=void 0;if(typeof p!="undefined")ye=p;else if(typeof self!="undefined")ye=self;else try{ye=Function("return this")()}catch(ue){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ee=ye.Promise;if(Ee){var Ce=null;try{Ce=Object.prototype.toString.call(Ee.resolve())}catch(ue){}if(Ce==="[object Promise]"&&!Ee.cast)return}ye.Promise=ne}return ne.polyfill=ce,ne.Promise=ne,ne})}).call(this,i("Q2Ig"),i("yLpj"))},E2jh:function(k,D,i){var y=i("2gN3"),p=function(){var v=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}();function S(v){return!!p&&p in v}k.exports=S},E4JC:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.StreamCipher,m=p.algo,f=[],d=[],u=[],o=m.Rabbit=v.extend({_doReset:function(){for(var a=this._key.words,e=this.cfg.iv,l=0;l<4;l++)a[l]=(a[l]<<8|a[l]>>>24)&16711935|(a[l]<<24|a[l]>>>8)&4278255360;var r=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],s=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var l=0;l<4;l++)n.call(this);for(var l=0;l<8;l++)s[l]^=r[l+4&7];if(e){var c=e.words,h=c[0],g=c[1],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=A>>>16|b&4294901760,x=b<<16|A&65535;s[0]^=A,s[1]^=w,s[2]^=b,s[3]^=x,s[4]^=A,s[5]^=w,s[6]^=b,s[7]^=x;for(var l=0;l<4;l++)n.call(this)}},_doProcessBlock:function(a,e){var l=this._X;n.call(this),f[0]=l[0]^l[5]>>>16^l[3]<<16,f[1]=l[2]^l[7]>>>16^l[5]<<16,f[2]=l[4]^l[1]>>>16^l[7]<<16,f[3]=l[6]^l[3]>>>16^l[1]<<16;for(var r=0;r<4;r++)f[r]=(f[r]<<8|f[r]>>>24)&16711935|(f[r]<<24|f[r]>>>8)&4278255360,a[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,a=this._C,e=0;e<8;e++)d[e]=a[e];a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0<d[0]>>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0<d[1]>>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0<d[2]>>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0<d[3]>>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0<d[4]>>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0<d[5]>>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0<d[6]>>>0?1:0)|0,this._b=a[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+a[e],r=l&65535,s=l>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,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}p.Rabbit=v._createHelper(o)}(),y.Rabbit})},E9nw:function(k,D){k.exports=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var y=document.activeElement,p=[],S=0;S<i.rangeCount;S++)p.push(i.getRangeAt(S));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return i.removeAllRanges(),function(){i.type==="Caret"&&i.removeAllRanges(),i.rangeCount||p.forEach(function(v){i.addRange(v)}),y&&y.focus()}}},ELLl:function(k,D,i){(function(y){y(i("VrN/"))})(function(y){var p={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},S=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,s,c){c&&c!=y.Init&&(r.removeKeyMap(m),r.state.closeBrackets=null),s&&(f(v(s,"pairs")),r.state.closeBrackets=s,r.addKeyMap(m))});function v(r,s){return s=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[s]!=null?r[s]:p[s]}var m={Backspace:o,Enter:n};function f(r){for(var s=0;s<r.length;s++){var c=r.charAt(s),h="'"+c+"'";m[h]||(m[h]=d(c))}}f(p.pairs+"`");function d(r){return function(s){return a(s,r)}}function u(r){var s=r.state.closeBrackets;if(!s||s.override)return s;var c=r.getModeAt(r.getCursor());return c.closeBrackets||s}function o(r){var s=u(r);if(!s||r.getOption("disableInput"))return y.Pass;for(var c=v(s,"pairs"),h=r.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var A=e(r,h[g].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}for(var g=h.length-1;g>=0;g--){var b=h[g].head;r.replaceRange("",S(b.line,b.ch-1),S(b.line,b.ch+1),"+delete")}}function n(r){var s=u(r),c=s&&v(s,"explode");if(!c||r.getOption("disableInput"))return y.Pass;for(var h=r.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var A=e(r,h[g].head);if(!A||c.indexOf(A)%2!=0)return y.Pass}r.operation(function(){var b=r.lineSeparator()||`
`;r.replaceSelection(b+b,null),r.execCommand("goCharLeft"),h=r.listSelections();for(var w=0;w<h.length;w++){var x=h[w].head.line;r.indentLine(x,null,!0),r.indentLine(x+1,null,!0)}})}function t(r){var s=y.cmpPos(r.anchor,r.head)>0;return{anchor:new S(r.anchor.line,r.anchor.ch+(s?-1:1)),head:new S(r.head.line,r.head.ch+(s?1:-1))}}function a(r,s){var c=u(r);if(!c||r.getOption("disableInput"))return y.Pass;var h=v(c,"pairs"),g=h.indexOf(s);if(g==-1)return y.Pass;for(var A=v(c,"closeBefore"),b=v(c,"triples"),w=h.charAt(g+1)==s,x=r.listSelections(),T=g%2==0,_,E=0;E<x.length;E++){var C=x[E],I=C.head,O,F=r.getRange(I,S(I.line,I.ch+1));if(T&&!C.empty())O="surround";else if((w||!T)&&F==s)w&&l(r,I)?O="both":b.indexOf(s)>=0&&r.getRange(I,S(I.line,I.ch+3))==s+s+s?O="skipThree":O="skip";else if(w&&I.ch>1&&b.indexOf(s)>=0&&r.getRange(S(I.line,I.ch-2),I)==s+s){if(I.ch>2&&/\bstring/.test(r.getTokenTypeAt(S(I.line,I.ch-2))))return y.Pass;O="addFour"}else if(w){var R=I.ch==0?" ":r.getRange(S(I.line,I.ch-1),I);if(!y.isWordChar(F)&&R!=s&&!y.isWordChar(R))O="both";else return y.Pass}else if(T&&(F.length===0||/\s/.test(F)||A.indexOf(F)>-1))O="both";else return y.Pass;if(!_)_=O;else if(_!=O)return y.Pass}var B=g%2?h.charAt(g-1):s,P=g%2?s:h.charAt(g+1);r.operation(function(){if(_=="skip")r.execCommand("goCharRight");else if(_=="skipThree")for(var X=0;X<3;X++)r.execCommand("goCharRight");else if(_=="surround"){for(var M=r.getSelections(),X=0;X<M.length;X++)M[X]=B+M[X]+P;r.replaceSelections(M,"around"),M=r.listSelections().slice();for(var X=0;X<M.length;X++)M[X]=t(M[X]);r.setSelections(M)}else _=="both"?(r.replaceSelection(B+P,null),r.triggerElectric(B+P),r.execCommand("goCharLeft")):_=="addFour"&&(r.replaceSelection(B+B+B+B,"before"),r.execCommand("goCharRight"))})}function e(r,s){var c=r.getRange(S(s.line,s.ch-1),S(s.line,s.ch+1));return c.length==2?c:null}function l(r,s){var c=r.getTokenAt(S(s.line,s.ch+1));return/\bstring/.test(c.type)&&c.start==s.ch&&(s.ch==0||!/\bstring/.test(r.getTokenTypeAt(s)))}})},ELcG:function(k,D,i){(function(y,p){k.exports=D=p(i("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(p){var S=y,v=S.lib,m=v.WordArray,f=v.Hasher,d=S.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]),o=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]),n=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]),a=m.create([0,1518500249,1859775393,2400959708,2840853838]),e=m.create([1352829926,1548603684,1836072691,2053994217,0]),l=d.RIPEMD160=f.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,x){for(var T=0;T<16;T++){var _=x+T,E=w[_];w[_]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var C=this._hash.words,I=a.words,O=e.words,F=u.words,R=o.words,B=n.words,P=t.words,X,M,z,W,H,V,Q,G,ee,q;V=X=C[0],Q=M=C[1],G=z=C[2],ee=W=C[3],q=H=C[4];for(var se,T=0;T<80;T+=1)se=X+w[x+F[T]]|0,T<16?se+=r(M,z,W)+I[0]:T<32?se+=s(M,z,W)+I[1]:T<48?se+=c(M,z,W)+I[2]:T<64?se+=h(M,z,W)+I[3]:se+=g(M,z,W)+I[4],se=se|0,se=A(se,B[T]),se=se+H|0,X=H,H=W,W=A(z,10),z=M,M=se,se=V+w[x+R[T]]|0,T<16?se+=g(Q,G,ee)+O[0]:T<32?se+=h(Q,G,ee)+O[1]:T<48?se+=c(Q,G,ee)+O[2]:T<64?se+=s(Q,G,ee)+O[3]:se+=r(Q,G,ee)+O[4],se=se|0,se=A(se,P[T]),se=se+q|0,V=q,q=ee,ee=A(G,10),G=Q,Q=se;se=C[1]+z+ee|0,C[1]=C[2]+W+q|0,C[2]=C[3]+H+V|0,C[3]=C[4]+X+Q|0,C[4]=C[0]+M+G|0,C[0]=se},_doFinalize:function(){var w=this._data,x=w.words,T=this._nDataBytes*8,_=w.sigBytes*8;x[_>>>5]|=128<<24-_%32,x[(_+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,w.sigBytes=(x.length+1)*4,this._process();for(var E=this._hash,C=E.words,I=0;I<5;I++){var O=C[I];C[I]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return E},clone:function(){var w=f.clone.call(this);return w._hash=this._hash.clone(),w}});function r(b,w,x){return b^w^x}function s(b,w,x){return b&w|~b&x}function c(b,w,x){return(b|~w)^x}function h(b,w,x){return b&x|w&~x}function g(b,w,x){return b^(w|~x)}function A(b,w){return b<<w|b>>>32-w}S.RIPEMD160=f._createHelper(l),S.HmacRIPEMD160=f._createHmacHelper(l)}(Math),y.RIPEMD160})},EMyp:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("mFDi"),v=i("K4ya"),m=i("qJCg"),f=i("iLNv"),d=i("vZ6x"),u=["inBrush","outOfBrush"],o="__ecBrushSelect",n="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,w,x){b.eachComponent({mainType:"brush"},function(T){x&&x.type==="takeGlobalCursor"&&T.setBrushOption(x.key==="brush"?x.brushOption:{brushType:!1})}),a(b)});function a(b){b.eachComponent({mainType:"brush"},function(w){var x=w.brushTargetManager=new d(w.option,b);x.setInputRanges(w.areas,b)})}y.registerVisual(t,function(b,w,x){var T=[],_,E;b.eachComponent({mainType:"brush"},function(C,I){var O={brushId:C.id,brushIndex:I,brushName:C.name,areas:p.clone(C.areas),selected:[]};T.push(O);var F=C.option,R=F.brushLink,B=[],P=[],X=[],M=0;I||(_=F.throttleType,E=F.throttleDelay);var z=p.map(C.areas,function(ee){return h(p.defaults({boundingRect:g[ee.brushType](ee)},ee))}),W=v.createVisualMappings(C.option,u,function(ee){ee.mappingMethod="fixed"});p.isArray(R)&&p.each(R,function(ee){B[ee]=1});function H(ee){return R==="all"||B[ee]}function V(ee){return!!ee.length}b.eachSeries(function(ee,q){var se=X[q]=[];ee.subType==="parallel"?Q(ee,q,se):G(ee,q,se)});function Q(ee,q){var se=ee.coordinateSystem;M|=se.hasAxisBrushed(),H(q)&&se.eachActiveState(ee.getData(),function(re,Ae){re==="active"&&(P[Ae]=1)})}function G(ee,q,se){var re=s(ee);if(!re||c(C,q))return;if(p.each(z,function(Te){re[Te.brushType]&&C.brushTargetManager.controlSeries(Te,ee,b)&&se.push(Te),M|=V(se)}),H(q)&&V(se)){var Ae=ee.getData();Ae.each(function(Te){r(re,se,Ae,Te)&&(P[Te]=1)})}}b.eachSeries(function(ee,q){var se={seriesId:ee.id,seriesIndex:q,seriesName:ee.name,dataIndex:[]};O.selected.push(se);var re=s(ee),Ae=X[q],Te=ee.getData(),Re=H(q)?function(Ge){return P[Ge]?(se.dataIndex.push(Te.getRawIndex(Ge)),"inBrush"):"outOfBrush"}:function(Ge){return r(re,Ae,Te,Ge)?(se.dataIndex.push(Te.getRawIndex(Ge)),"inBrush"):"outOfBrush"};(H(q)?M:V(Ae))&&v.applyVisual(u,W,Te,Re)})}),e(w,_,E,T,x)});function e(b,w,x,T,_){if(!_)return;var E=b.getZr();if(E[n])return;E[o]||(E[o]=l);var C=f.createOrUpdate(E,o,x,w);C(b,T)}function l(b,w){if(!b.isDisposed()){var x=b.getZr();x[n]=!0,b.dispatchAction({type:"brushSelect",batch:w}),x[n]=!1}}function r(b,w,x,T){for(var _=0,E=w.length;_<E;_++){var C=w[_];if(b[C.brushType](T,x,C.selectors,C))return!0}}function s(b){var w=b.brushSelector;if(p.isString(w)){var x=[];return p.each(m,function(_,E){x[E]=function(C,I,O,F){var R=I.getItemLayout(C);return _[w](R,O,F)}}),x}else if(p.isFunction(w)){var T={};return p.each(m,function(_,E){T[E]=w}),T}return w}function c(b,w){var x=b.option.seriesIndex;return x!=null&&x!=="all"&&(p.isArray(x)?p.indexOf(x,w)<0:w!==x)}function h(b){var w=b.selectors={};return p.each(m[b.brushType],function(x,T){w[T]=function(_){return x(_,w,b)}}),b}var g={lineX:p.noop,lineY:p.noop,rect:function(b){return A(b.range)},polygon:function(b){for(var w,x=b.range,T=0,_=x.length;T<_;T++){w=w||[[Infinity,-Infinity],[Infinity,-Infinity]];var E=x[T];E[0]<w[0][0]&&(w[0][0]=E[0]),E[0]>w[0][1]&&(w[0][1]=E[0]),E[1]<w[1][0]&&(w[1][0]=E[1]),E[1]>w[1][1]&&(w[1][1]=E[1])}return w&&A(w)}};function A(b){return new S(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}D.layoutCovers=a},ERHi:function(k,D,i){var y=i("ProS");i("Z6js"),i("R4Th");var p=i("f5Yq"),S=i("h8O9");y.registerVisual(p("effectScatter","circle")),y.registerLayout(S("effectScatter"))},ETIr:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.WordArray,m=p.enc,f=m.Base64={stringify:function(o){var n=o.words,t=o.sigBytes,a=this._map;o.clamp();for(var e=[],l=0;l<t;l+=3)for(var r=n[l>>>2]>>>24-l%4*8&255,s=n[l+1>>>2]>>>24-(l+1)%4*8&255,c=n[l+2>>>2]>>>24-(l+2)%4*8&255,h=r<<16|s<<8|c,g=0;g<4&&l+g*.75<t;g++)e.push(a.charAt(h>>>6*(3-g)&63));var A=a.charAt(64);if(A)for(;e.length%4;)e.push(A);return e.join("")},parse:function(o){var n=o.length,t=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var e=0;e<t.length;e++)a[t.charCodeAt(e)]=e}var l=t.charAt(64);if(l){var r=o.indexOf(l);r!==-1&&(n=r)}return d(o,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(u,o,n){for(var t=[],a=0,e=0;e<o;e++)if(e%4){var l=n[u.charCodeAt(e-1)]<<e%4*2,r=n[u.charCodeAt(e)]>>>6-e%4*2,s=l|r;t[a>>>2]|=s<<24-a%4*8,a++}return v.create(t,a)}}(),y.enc.Base64})},EXcs:function(k,D,i){"use strict";var y=function(){return{height:0,opacity:0}},p=function(d){return{height:d.scrollHeight,opacity:1}},S=function(d){return{height:d.offsetHeight}},v=function(d,u){return u.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:p,onEnterActive:p,onLeaveStart:S,onLeaveActive:y,onAppearEnd:v,onEnterEnd:v,onLeaveEnd:v,motionDeadline:500};D.a=m},EpBk:function(k,D){function i(y){var p=typeof y;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?y!=="__proto__":y===null}k.exports=i},Ez2D:function(k,D,i){var y=i("bYtY"),p=i("4NO4");function S(v,m){var f=[],d=v.seriesIndex,u;if(d==null||!(u=m.getSeriesByIndex(d)))return{point:[]};var o=u.getData(),n=p.queryDataIndex(o,v);if(n==null||n<0||y.isArray(n))return{point:[]};var t=o.getItemGraphicEl(n),a=u.coordinateSystem;if(u.getTooltipPosition)f=u.getTooltipPosition(n)||[];else if(a&&a.dataToPoint)f=a.dataToPoint(o.getValues(y.map(a.dimensions,function(l){return o.mapDimension(l)}),n,!0))||[];else if(t){var e=t.getBoundingRect().clone();e.applyTransform(t.transform),f=[e.x+e.width/2,e.y+e.height/2]}return{point:f,el:t}}k.exports=S},"F+F2":function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var p=y,S=p.lib,v=S.WordArray,m=v.init,f=v.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,o=[],n=0;n<u;n++)o[n>>>2]|=d[n]<<24-n%4*8;m.call(this,o,u)}else m.apply(this,arguments)};f.prototype=v}(),y.lib.WordArray})},F0hE:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("ca2m"),v=i("Qxkt"),m=i("ICMv"),f=S.valueAxis;function d(n,t){return p.defaults({show:t},n)}var u=y.extendComponentModel({type:"radar",optionUpdated:function(){var n=this.get("boundaryGap"),t=this.get("splitNumber"),a=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),r=this.get("axisType"),s=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),g=this.get("name.formatter"),A=this.get("nameGap"),b=this.get("triggerEvent"),w=p.map(this.get("indicator")||[],function(x){x.max!=null&&x.max>0&&!x.min?x.min=0:x.min!=null&&x.min<0&&!x.max&&(x.max=0);var T=c;if(x.color!=null&&(T=p.defaults({color:x.color},c)),x=p.merge(p.clone(x),{boundaryGap:n,splitNumber:t,scale:a,axisLine:e,axisTick:l,axisType:r,axisLabel:s,name:x.text,nameLocation:"end",nameGap:A,nameTextStyle:T,triggerEvent:b},!1),h||(x.name=""),typeof g=="string"){var _=x.name;x.name=g.replace("{value}",_!=null?_:"")}else typeof g=="function"&&(x.name=g(x.name,x));var E=p.extend(new v(x,null,this.ecModel),m);return E.mainType="radar",E.componentIndex=this.componentIndex,E},this);this.getIndicatorModels=function(){return w}},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:p.merge({lineStyle:{color:"#bbb"}},f.axisLine),axisLabel:d(f.axisLabel,!1),axisTick:d(f.axisTick,!1),axisType:"interval",splitLine:d(f.splitLine,!0),splitArea:d(f.splitArea,!0),indicator:[]}}),o=u;k.exports=o},F5Ls:function(k,D){var i={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function y(p,S){if(p==="china"){var v=i[S.name];if(v){var m=S.center;m[0]+=v[0]/10.5,m[1]+=-v[1]/(10.5/.75)}}}k.exports=y},F7hV:function(k,D,i){var y=i("MBQ8"),p=y.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var S=this.get("progressiveThreshold"),v=this.get("largeThreshold");return v>S&&(S=v),S},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}}});k.exports=p},F9bG:function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=i("4NO4"),v=S.makeInner,m=v(),f=y.each;function d(l,r,s){if(p.node)return;var c=r.getZr();m(c).records||(m(c).records={}),u(c,r);var h=m(c).records[l]||(m(c).records[l]={});h.handler=s}function u(l,r){if(m(l).initialized)return;m(l).initialized=!0,s("click",y.curry(t,"click")),s("mousemove",y.curry(t,"mousemove")),s("globalout",n);function s(c,h){l.on(c,function(g){var A=a(r);f(m(l).records,function(b){b&&h(b,g,A.dispatchAction)}),o(A.pendings,r)})}}function o(l,r){var s=l.showTip.length,c=l.hideTip.length,h;s?h=l.showTip[s-1]:c&&(h=l.hideTip[c-1]),h&&(h.dispatchAction=null,r.dispatchAction(h))}function n(l,r,s){l.handler("leave",null,s)}function t(l,r,s,c){r.handler(l,s,c)}function a(l){var r={showTip:[],hideTip:[]},s=function(c){var h=r[c.type];h?h.push(c):(c.dispatchAction=s,l.dispatchAction(c))};return{dispatchAction:s,pendings:r}}function e(l,r){if(p.node)return;var s=r.getZr(),c=(m(s).records||{})[l];c&&(m(s).records[l]=null)}D.register=d,D.unregister=e},FBjb:function(k,D,i){var y=i("bYtY"),p=i("oVpE"),S=p.createSymbol,v=i("IwbS"),m=i("OELB"),f=m.parsePercent,d=i("x3X8"),u=d.getDefaultLabel;function o(A,b,w){v.Group.call(this),this.updateData(A,b,w)}var n=o.prototype,t=o.getSymbolSize=function(A,b){var w=A.getItemVisual(b,"symbolSize");return w instanceof Array?w.slice():[+w,+w]};function a(A){return[A[0]/2,A[1]/2]}function e(A,b){this.parent.drift(A,b)}n._createSymbol=function(A,b,w,x,T){this.removeAll();var _=b.getItemVisual(w,"color"),E=S(A,-1,-1,2,2,_,T);E.attr({z2:100,culling:!0,scale:a(x)}),E.drift=e,this._symbolType=A,this.add(E)},n.stopSymbolAnimation=function(A){this.childAt(0).stopAnimation(A)},n.getSymbolPath=function(){return this.childAt(0)},n.getScale=function(){return this.childAt(0).scale},n.highlight=function(){this.childAt(0).trigger("emphasis")},n.downplay=function(){this.childAt(0).trigger("normal")},n.setZ=function(A,b){var w=this.childAt(0);w.zlevel=A,w.z=b},n.setDraggable=function(A){var b=this.childAt(0);b.draggable=A,b.cursor=A?"move":b.cursor},n.updateData=function(A,b,w){this.silent=!1;var x=A.getItemVisual(b,"symbol")||"circle",T=A.hostModel,_=t(A,b),E=x!==this._symbolType;if(E){var C=A.getItemVisual(b,"symbolKeepAspect");this._createSymbol(x,A,b,_,C)}else{var I=this.childAt(0);I.silent=!1,v.updateProps(I,{scale:a(_)},T,b)}if(this._updateCommon(A,b,_,w),E){var I=this.childAt(0),O=w&&w.fadeIn,F={scale:I.scale.slice()};O&&(F.style={opacity:I.style.opacity}),I.scale=[0,0],O&&(I.style.opacity=0),v.initProps(I,F,T,b)}this._seriesModel=T};var l=["itemStyle"],r=["emphasis","itemStyle"],s=["label"],c=["emphasis","label"];n._updateCommon=function(A,b,w,x){var T=this.childAt(0),_=A.hostModel,E=A.getItemVisual(b,"color");T.type!=="image"?T.useStyle({strokeNoScale:!0}):T.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var C=x&&x.itemStyle,I=x&&x.hoverItemStyle,O=x&&x.symbolOffset,F=x&&x.labelModel,R=x&&x.hoverLabelModel,B=x&&x.hoverAnimation,P=x&&x.cursorStyle;if(!x||A.hasItemOption){var X=x&&x.itemModel?x.itemModel:A.getItemModel(b);C=X.getModel(l).getItemStyle(["color"]),I=X.getModel(r).getItemStyle(),O=X.getShallow("symbolOffset"),F=X.getModel(s),R=X.getModel(c),B=X.getShallow("hoverAnimation"),P=X.getShallow("cursor")}else I=y.extend({},I);var M=T.style,z=A.getItemVisual(b,"symbolRotate");T.attr("rotation",(z||0)*Math.PI/180||0),O&&T.attr("position",[f(O[0],w[0]),f(O[1],w[1])]),P&&T.attr("cursor",P),T.setColor(E,x&&x.symbolInnerColor),T.setStyle(C);var W=A.getItemVisual(b,"opacity");W!=null&&(M.opacity=W);var H=A.getItemVisual(b,"liftZ"),V=T.__z2Origin;H!=null?V==null&&(T.__z2Origin=T.z2,T.z2+=H):V!=null&&(T.z2=V,T.__z2Origin=null);var Q=x&&x.useNameLabel;v.setLabelStyle(M,I,F,R,{labelFetcher:_,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:E});function G(ee,q){return Q?A.getName(ee):u(A,ee)}T.__symbolOriginalScale=a(w),T.hoverStyle=I,T.highDownOnUpdate=B&&_.isAnimationEnabled()?h:null,v.setHoverStyle(T)};function h(A,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var w=this.__symbolOriginalScale,x=w[1]/w[0],T={scale:[Math.max(w[0]*1.1,w[0]+3),Math.max(w[1]*1.1,w[1]+3*x)]};this.animateTo(T,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}n.fadeOut=function(A,b){var w=this.childAt(0);this.silent=w.silent=!0,!(b&&b.keepLabel)&&(w.style.text=null),v.updateProps(w,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,A)},y.inherits(o,v.Group);var g=o;k.exports=g},FGaS:function(k,D,i){var y=i("ProS"),p=i("IwbS"),S=i("bYtY"),v=i("oVpE");function m(d){return S.isArray(d)||(d=[+d,+d]),d}var f=y.extendChartView({type:"radar",render:function(d,u,o){var n=d.coordinateSystem,t=this.group,a=d.getData(),e=this._data;function l(c,h){var g=c.getItemVisual(h,"symbol")||"circle",A=c.getItemVisual(h,"color");if(g==="none")return;var b=m(c.getItemVisual(h,"symbolSize")),w=v.createSymbol(g,-1,-1,2,2,A);return w.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),w}function r(c,h,g,A,b,w){g.removeAll();for(var x=0;x<h.length-1;x++){var T=l(A,b);T&&(T.__dimIdx=x,c[x]?(T.attr("position",c[x]),p[w?"initProps":"updateProps"](T,{position:h[x]},d,b)):T.attr("position",h[x]),g.add(T))}}function s(c){return S.map(c,function(h){return[n.cx,n.cy]})}a.diff(e).add(function(c){var h=a.getItemLayout(c);if(!h)return;var g=new p.Polygon,A=new p.Polyline,b={shape:{points:h}};g.shape.points=s(h),A.shape.points=s(h),p.initProps(g,b,d,c),p.initProps(A,b,d,c);var w=new p.Group,x=new p.Group;w.add(A),w.add(g),w.add(x),r(A.shape.points,h,x,a,c,!0),a.setItemGraphicEl(c,w)}).update(function(c,h){var g=e.getItemGraphicEl(h),A=g.childAt(0),b=g.childAt(1),w=g.childAt(2),x={shape:{points:a.getItemLayout(c)}};if(!x.shape.points)return;r(A.shape.points,x.shape.points,w,a,c,!1),p.updateProps(A,x,d),p.updateProps(b,x,d),a.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),a.eachItemGraphicEl(function(c,h){var g=a.getItemModel(h),A=c.childAt(0),b=c.childAt(1),w=c.childAt(2),x=a.getItemVisual(h,"color");t.add(c),A.useStyle(S.defaults(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),A.hoverStyle=g.getModel("emphasis.lineStyle").getLineStyle();var T=g.getModel("areaStyle"),_=g.getModel("emphasis.areaStyle"),E=T.isEmpty()&&T.parentModel.isEmpty(),C=_.isEmpty()&&_.parentModel.isEmpty();C=C&&E,b.ignore=E,b.useStyle(S.defaults(T.getAreaStyle(),{fill:x,opacity:.7})),b.hoverStyle=_.getAreaStyle();var I=g.getModel("itemStyle").getItemStyle(["color"]),O=g.getModel("emphasis.itemStyle").getItemStyle(),F=g.getModel("label"),R=g.getModel("emphasis.label");w.eachChild(function(B){B.setStyle(I),B.hoverStyle=S.clone(O);var P=a.get(a.dimensions[B.__dimIdx],h);(P==null||isNaN(P))&&(P=""),p.setLabelStyle(B.style,B.hoverStyle,F,R,{labelFetcher:a.hostModel,labelDataIndex:h,labelDimIndex:B.__dimIdx,defaultText:P,autoColor:x,isRectText:!0})}),c.highDownOnUpdate=function(B,P){b.attr("ignore",P==="emphasis"?C:E)},p.setHoverStyle(c)}),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});k.exports=f},FH2Y:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("ZMnZ"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},FJo9:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("8txm"),v=i.n(S),m=i("MXD1")},FNN5:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("+rIm"),v=i("Znkb"),m=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],d=v.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(o,n){if(this.group.removeAll(),!o.get("show"))return;var t=o.axis,a=t.polar,e=a.getAngleAxis(),l=t.getTicksCoords(),r=t.getMinorTicksCoords(),s=e.getExtent()[0],c=t.getExtent(),h=u(a,o,s),g=new S(o,h);y.each(m,g.add,g),this.group.add(g.getGroup()),y.each(f,function(A){o.get(A+".show")&&!t.scale.isBlank()&&this["_"+A](o,a,s,c,l,r)},this)},_splitLine:function(o,n,t,a,e){var l=o.getModel("splitLine"),r=l.getModel("lineStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var h=[],g=0;g<e.length;g++){var A=c++%s.length;h[A]=h[A]||[],h[A].push(new p.Circle({shape:{cx:n.cx,cy:n.cy,r:e[g].coord}}))}for(var g=0;g<h.length;g++)this.group.add(p.mergePath(h[g],{style:y.defaults({stroke:s[g%s.length],fill:null},r.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,n,t,a,e,l){if(!l.length)return;for(var r=o.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=[],h=0;h<l.length;h++)for(var g=0;g<l[h].length;g++)c.push(new p.Circle({shape:{cx:n.cx,cy:n.cy,r:l[h][g].coord}}));this.group.add(p.mergePath(c,{style:y.defaults({fill:null},s.getLineStyle()),silent:!0}))},_splitArea:function(o,n,t,a,e){if(!e.length)return;var l=o.getModel("splitArea"),r=l.getModel("areaStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var h=[],g=e[0].coord,A=1;A<e.length;A++){var b=c++%s.length;h[b]=h[b]||[],h[b].push(new p.Sector({shape:{cx:n.cx,cy:n.cy,r0:g,r:e[A].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),g=e[A].coord}for(var A=0;A<h.length;A++)this.group.add(p.mergePath(h[A],{style:y.defaults({fill:s[A%s.length]},r.getAreaStyle()),silent:!0}))}});function u(o,n,t){return{position:[o.cx,o.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:n.getModel("axisLabel").get("rotate"),z2:1}}k.exports=d},FTAc:function(k,D,i){"use strict";i.d(D,"a",function(){return S});var y=i("q1tI"),p=i.n(y),S=y.createContext(null)},FUi9:function(k,D,i){var y=i("bYtY"),p=i("MwEJ"),S=i("aX7z"),v=i("ICMv"),m=i("Qxkt"),f=i("+TT/"),d=f.getLayoutRect;D.getLayoutRect=f.getLayoutRect;var u=i("7hqr"),o=u.enableDataStack,n=u.isDimensionStacked,t=u.getStackedDimension,a=i("hi0g");D.completeDimensions=a;var e=i("sdST");D.createDimensions=e;var l=i("oVpE");D.createSymbol=l.createSymbol;function r(g){return p(g.getSource(),g)}var s={isDimensionStacked:n,enableDataStack:o,getStackedDimension:t};function c(g,A){var b=A;m.isInstance(A)||(b=new m(A),y.mixin(b,v));var w=S.createScaleByModel(b);return w.setExtent(g[0],g[1]),S.niceScaleExtent(w,b),w}function h(g){y.mixin(g,v)}D.createList=r,D.dataStack=s,D.createScale=c,D.mixinAxisModelCommonMethods=h},"Fa/5":function(k,D,i){var y=i("ProS");i("y2l5"),i("q/+u");var p=i("f5Yq"),S=i("h8O9");i("Ae16"),y.registerVisual(p("scatter","circle")),y.registerLayout(S("scatter"))},FhB9:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},"Fm1+":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("a7Wl")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretUpOutlined";var n=v.forwardRef(o);D.default=n},Fofx:function(k,D){var i=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var n=new i(6);return p(n),n}function p(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function S(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function v(n,t,a){var e=t[0]*a[0]+t[2]*a[1],l=t[1]*a[0]+t[3]*a[1],r=t[0]*a[2]+t[2]*a[3],s=t[1]*a[2]+t[3]*a[3],c=t[0]*a[4]+t[2]*a[5]+t[4],h=t[1]*a[4]+t[3]*a[5]+t[5];return n[0]=e,n[1]=l,n[2]=r,n[3]=s,n[4]=c,n[5]=h,n}function m(n,t,a){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+a[0],n[5]=t[5]+a[1],n}function f(n,t,a){var e=t[0],l=t[2],r=t[4],s=t[1],c=t[3],h=t[5],g=Math.sin(a),A=Math.cos(a);return n[0]=e*A+s*g,n[1]=-e*g+s*A,n[2]=l*A+c*g,n[3]=-l*g+A*c,n[4]=A*r+g*h,n[5]=A*h-g*r,n}function d(n,t,a){var e=a[0],l=a[1];return n[0]=t[0]*e,n[1]=t[1]*l,n[2]=t[2]*e,n[3]=t[3]*l,n[4]=t[4]*e,n[5]=t[5]*l,n}function u(n,t){var a=t[0],e=t[2],l=t[4],r=t[1],s=t[3],c=t[5],h=a*s-r*e;return h?(h=1/h,n[0]=s*h,n[1]=-r*h,n[2]=-e*h,n[3]=a*h,n[4]=(e*c-s*l)*h,n[5]=(r*l-a*c)*h,n):null}function o(n){var t=y();return S(t,n),t}D.create=y,D.identity=p,D.copy=S,D.mul=v,D.translate=m,D.rotate=f,D.scale=d,D.invert=u,D.clone=o},Fv0C:function(k,D,i){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(s){return typeof s}:y=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},y(l)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=o(i("Lo0S")),S=i("vewr"),v=o(i("8CQX")),m=d(i("mHUz")),f=o(i("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 o(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var s={},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(s,h,g):s[h]=l[h]}return s.default=l,r&&r.set(l,s),s}function n(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function t(l,r){for(var s=0;s<r.length;s++){var c=r[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function a(l,r,s){return r&&t(l.prototype,r),s&&t(l,s),l}var e=function(){function l(r){n(this,l),this._target=r||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 a(l,[{key:"_sendKeyEvent",value:function(s,c,h){if(h)this._keyDownList[c]=s;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}p.Debug("onkeyevent "+(h?"down":"up")+", keysym: "+s,", code: "+c),this.onkeyevent(s,c,h)}},{key:"_getKeyCode",value:function(s){var c=v.getKeycode(s);if(c!=="Unidentified")return c;if(s.keyCode&&s.type!=="keypress"&&s.keyCode!==229)return"Platform"+s.keyCode;if(s.keyIdentifier){if(s.keyIdentifier.substr(0,2)!=="U+")return s.keyIdentifier;var h=parseInt(s.keyIdentifier.substr(2),16),g=String.fromCharCode(h).toUpperCase();return"Platform"+g.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(s){var c=this._getKeyCode(s),h=v.getKeysym(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&s.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,S.stopEvent)(s);return}if(f.isMac()||f.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]),(f.isMac()||f.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!1),(0,S.stopEvent)(s);return}if(!h&&(!s.key||f.isIE()||f.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,s);return}if(this._pendingKey=null,(0,S.stopEvent)(s),c==="ControlLeft"&&f.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=s.timeStamp;return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPress",value:function(s){if((0,S.stopEvent)(s),this._pendingKey===null)return;var c=this._getKeyCode(s),h=v.getKeysym(s);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!h){p.Info("keypress with no keysym:",s);return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPressTimeout",value:function(s){if(this._pendingKey===null)return;var c,h=this._pendingKey;if(this._pendingKey=null,s.keyCode>=48&&s.keyCode<=57)c=s.keyCode;else if(s.keyCode>=65&&s.keyCode<=90){var g=String.fromCharCode(s.keyCode);s.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),c=g.charCodeAt()}else c=0;this._sendKeyEvent(c,h,!0)}},{key:"_handleKeyUp",value:function(s){(0,S.stopEvent)(s);var c=this._getKeyCode(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),(f.isMac()||f.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),f.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(){p.Debug(">> Keyboard.allKeysUp");for(var s in this._keyDownList)this._sendKeyEvent(this._keyDownList[s],s,!1);p.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(s){if(s.skipCheckAlt)return;if(s.altKey)return;var c=this._target,h=this._keyDownList;["AltLeft","AltRight"].forEach(function(g){if(!(g in h))return;var A=new KeyboardEvent("keyup",{key:h[g],code:g});A.skipCheckAlt=!0,c.dispatchEvent(A)})}},{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),f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,s,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(f.isWindows()&&f.isFirefox()){var s=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,s)})}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}();D.default=e},FxDU:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=i("QO+J"),p=i("j5sG"),S=typeof ResizeObserver!="undefined"?p.createSensor:y.createSensor;D.createSensor=S},GGyF:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("wgjA")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="LeftOutlined";var n=v.forwardRef(o);D.default=n},GIiI:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PoweroffOutlined";var d=D.a=p.forwardRef(f)},GMDS:function(k,D,i){var y=i("bYtY"),p=i("4NgU"),S=i("jkPA"),v=p.prototype,m=p.extend({type:"ordinal",init:function(d,u){(!d||y.isArray(d))&&(d=new S({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),v.contain.call(this,d)&&this._ordinalMeta.categories[d]!=null},normalize:function(d){return v.normalize.call(this,this.parse(d))},scale:function(d){return Math.round(v.scale.call(this,d))},getTicks:function(){for(var d=[],u=this._extent,o=u[0];o<=u[1];)d.push(o),o++;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 f=m;k.exports=f},GQ8N:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.toUnsigned32bit=y,D.toSigned32bit=p;function y(S){return S>>>0}function p(S){return S|0}},GRuw:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("lPiR"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.WordArray,m=p.algo,f=m.SHA256,d=m.SHA224=f.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=f._doFinalize.call(this);return o.sigBytes-=4,o}});p.SHA224=f._createHelper(d),p.HmacSHA224=f._createHmacHelper(d)}(),y.SHA224})},GUcZ:function(k,D,i){"use strict";var y=i("fWQN"),p=i("mtLc"),S=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(_e,Ne){return _e.__proto__=Ne,_e},Object.assign=Object.assign||function(_e){if(_e==null)throw new TypeError("Cannot convert undefined or null to object");for(var Ne=Object(_e),Ie=1;Ie<arguments.length;Ie++){var Ze=arguments[Ie];if(Ze!=null)for(var ct in Ze)Ze.hasOwnProperty(ct)&&(Ne[ct]=Ze[ct])}return Ne},typeof self.Promise!="function"&&i("E2g8").polyfill()}}]),Ft}();S.install();var v=S,m=i("+qE3"),f=i.n(m),d=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"e",value:function(_e,Ne){(!_e||Ft.FORCE_GLOBAL_TAG)&&(_e=Ft.GLOBAL_TAG);var Ie="[".concat(_e,"] > ").concat(Ne);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","error",Ie),!Ft.ENABLE_ERROR)return;console.error?console.error(Ie):console.warn?console.warn(Ie):console.log(Ie)}},{key:"i",value:function(_e,Ne){(!_e||Ft.FORCE_GLOBAL_TAG)&&(_e=Ft.GLOBAL_TAG);var Ie="[".concat(_e,"] > ").concat(Ne);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","info",Ie),!Ft.ENABLE_INFO)return;console.info?console.info(Ie):console.log(Ie)}},{key:"w",value:function(_e,Ne){(!_e||Ft.FORCE_GLOBAL_TAG)&&(_e=Ft.GLOBAL_TAG);var Ie="[".concat(_e,"] > ").concat(Ne);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","warn",Ie),!Ft.ENABLE_WARN)return;console.warn?console.warn(Ie):console.log(Ie)}},{key:"d",value:function(_e,Ne){(!_e||Ft.FORCE_GLOBAL_TAG)&&(_e=Ft.GLOBAL_TAG);var Ie="[".concat(_e,"] > ").concat(Ne);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","debug",Ie),!Ft.ENABLE_DEBUG)return;console.debug?console.debug(Ie):console.log(Ie)}},{key:"v",value:function(_e,Ne){(!_e||Ft.FORCE_GLOBAL_TAG)&&(_e=Ft.GLOBAL_TAG);var Ie="[".concat(_e,"] > ").concat(Ne);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","verbose",Ie),!Ft.ENABLE_VERBOSE)return;console.log(Ie)}}]),Ft}();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 f.a;var u=d,o=function(){function Ft(){Object(y.a)(this,Ft),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(p.a)(Ft,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(_e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=_e,this._totalBytes+=_e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=_e,this._totalBytes+=_e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=_e,this._totalBytes+=_e,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var _e=(this._now()-this._lastCheckpoint)/1e3;return _e==0&&(_e=1),this._intervalBytes/_e/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 _e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/_e/1024}}]),Ft}(),n=o,t=i("yKVA"),a=i("879j"),e=function(){function Ft(vt){Object(y.a)(this,Ft),this._message=vt}return Object(p.a)(Ft,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Ft}(),l=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(Ne){return Object(y.a)(this,_e),vt.call(this,Ne)}return Object(p.a)(_e,[{key:"name",get:function(){return"IllegalStateException"}}]),_e}(e),r=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(Ne){return Object(y.a)(this,_e),vt.call(this,Ne)}return Object(p.a)(_e,[{key:"name",get:function(){return"InvalidArgumentException"}}]),_e}(e),s=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(Ne){return Object(y.a)(this,_e),vt.call(this,Ne)}return Object(p.a)(_e,[{key:"name",get:function(){return"NotImplementedException"}}]),_e}(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 Ft(vt){Object(y.a)(this,Ft),this._type=vt||"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(p.a)(Ft,[{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(_e){this._onContentLengthKnown=_e}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(_e){this._onURLRedirect=_e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(_e){this._onDataArrival=_e}},{key:"onError",get:function(){return this._onError},set:function(_e){this._onError=_e}},{key:"onComplete",get:function(){return this._onComplete},set:function(_e){this._onComplete=_e}},{key:"open",value:function(_e,Ne){throw new s("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new s("Unimplemented abstract function!")}}]),Ft}(),A=i("w4Tj"),b=i("oZsa"),w={};function x(){var Ft=self.navigator.userAgent.toLowerCase(),vt=/(edge)\/([\w.]+)/.exec(Ft)||/(opr)[\/]([\w.]+)/.exec(Ft)||/(chrome)[ \/]([\w.]+)/.exec(Ft)||/(iemobile)[\/]([\w.]+)/.exec(Ft)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ft)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ft)||/(webkit)[ \/]([\w.]+)/.exec(Ft)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Ft)||/(msie) ([\w.]+)/.exec(Ft)||Ft.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Ft)||Ft.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Ft)||[],_e=/(ipad)/.exec(Ft)||/(ipod)/.exec(Ft)||/(windows phone)/.exec(Ft)||/(iphone)/.exec(Ft)||/(kindle)/.exec(Ft)||/(android)/.exec(Ft)||/(windows)/.exec(Ft)||/(mac)/.exec(Ft)||/(linux)/.exec(Ft)||/(cros)/.exec(Ft)||[],Ne={browser:vt[5]||vt[3]||vt[1]||"",version:vt[2]||vt[4]||"0",majorVersion:vt[4]||vt[2]||"0",platform:_e[0]||""},Ie={};if(Ne.browser){Ie[Ne.browser]=!0;var Ze=Ne.majorVersion.split(".");Ie.version={major:parseInt(Ne.majorVersion,10),string:Ne.version},Ze.length>1&&(Ie.version.minor=parseInt(Ze[1],10)),Ze.length>2&&(Ie.version.build=parseInt(Ze[2],10))}if(Ne.platform&&(Ie[Ne.platform]=!0),(Ie.chrome||Ie.opr||Ie.safari)&&(Ie.webkit=!0),Ie.rv||Ie.iemobile){Ie.rv&&delete Ie.rv;var ct="msie";Ne.browser=ct,Ie[ct]=!0}if(Ie.edge){delete Ie.edge;var gt="msedge";Ne.browser=gt,Ie[gt]=!0}if(Ie.opr){var kt="opera";Ne.browser=kt,Ie[kt]=!0}if(Ie.safari&&Ie.android){var xr="android";Ne.browser=xr,Ie[xr]=!0}Ie.name=Ne.browser,Ie.platform=Ne.platform;for(var Hr in w)w.hasOwnProperty(Hr)&&delete w[Hr];Object.assign(w,Ie)}x();var T=w,_=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(Ne,Ie){var Ze;return Object(y.a)(this,_e),Ze=vt.call(this,"fetch-stream-loader"),Ze.TAG="FetchStreamLoader",Ze._seekHandler=Ne,Ze._config=Ie,Ze._needStash=!0,Ze._requestAbort=!1,Ze._contentLength=null,Ze._receivedLength=0,Ze}return Object(p.a)(_e,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(A.a)(Object(b.a)(_e.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie,Ze){var ct=this;this._dataSource=Ie,this._range=Ze;var gt=Ie.url;this._config.reuseRedirectedURL&&Ie.redirectedURL!=null&&(gt=Ie.redirectedURL);var kt=this._seekHandler.getConfig(gt,Ze),xr=new self.Headers;if(typeof kt.headers=="object"){var Hr=kt.headers;for(var on in Hr)Hr.hasOwnProperty(on)&&xr.append(on,Hr[on])}var Nt={method:"GET",headers:xr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var ot in this._config.headers)xr.append(ot,this._config.headers[ot]);Ie.cors===!1&&(Nt.mode="same-origin"),Ie.withCredentials&&(Nt.credentials="include"),Ie.referrerPolicy&&(Nt.referrerPolicy=Ie.referrerPolicy),this._status=c.kConnecting,self.fetch(kt.url,Nt).then(function(dt){if(ct._requestAbort){ct._requestAbort=!1,ct._status=c.kIdle;return}if(dt.ok&&dt.status>=200&&dt.status<=299){if(dt.url!==kt.url&&ct._onURLRedirect){var Yt=ct._seekHandler.removeURLParameters(dt.url);ct._onURLRedirect(Yt)}var Pt=dt.headers.get("Content-Length");return Pt!=null&&(ct._contentLength=parseInt(Pt),ct._contentLength!==0&&(ct._onContentLengthKnown&&ct._onContentLengthKnown(ct._contentLength))),ct._pump.call(ct,dt.body.getReader())}else if(ct._status=c.kError,ct._onError)ct._onError(h.HTTP_STATUS_CODE_INVALID,{code:dt.status,msg:dt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+dt.status+" "+dt.statusText)}).catch(function(dt){if(ct._status=c.kError,ct._onError)ct._onError(h.EXCEPTION,{code:-1,msg:dt.message});else throw dt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Ie){var Ze=this;return Ie.read().then(function(ct){if(ct.done)if(Ze._contentLength!==null&&Ze._receivedLength<Ze._contentLength){Ze._status=c.kError;var gt=h.EARLY_EOF,kt={code:-1,msg:"Fetch stream meet Early-EOF"};if(Ze._onError)Ze._onError(gt,kt);else throw new e(kt.msg)}else Ze._status=c.kComplete,Ze._onComplete&&Ze._onComplete(Ze._range.from,Ze._range.from+Ze._receivedLength-1);else{if(Ze._requestAbort===!0)return Ze._requestAbort=!1,Ze._status=c.kComplete,Ie.cancel();Ze._status=c.kBuffering;var xr=ct.value.buffer,Hr=Ze._range.from+Ze._receivedLength;Ze._receivedLength+=xr.byteLength,Ze._onDataArrival&&Ze._onDataArrival(xr,Hr,Ze._receivedLength),Ze._pump(Ie)}}).catch(function(ct){if(ct.code===11&&T.msedge)return;Ze._status=c.kError;var gt=0,kt=null;if((ct.code===19||ct.message==="network error")&&(Ze._contentLength===null||Ze._contentLength!==null&&Ze._receivedLength<Ze._contentLength)?(gt=h.EARLY_EOF,kt={code:ct.code,msg:"Fetch stream meet Early-EOF"}):(gt=h.EXCEPTION,kt={code:ct.code,msg:ct.message}),Ze._onError)Ze._onError(gt,kt);else throw new e(kt.msg)})}}],[{key:"isSupported",value:function(){try{var Ie=T.msedge&&T.version.minor>=15048,Ze=T.msedge?Ie:!0;return self.fetch&&self.ReadableStream&&Ze}catch(ct){return!1}}}]),_e}(g),E=_,C=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(Ne,Ie){var Ze;return Object(y.a)(this,_e),Ze=vt.call(this,"xhr-moz-chunked-loader"),Ze.TAG="MozChunkedLoader",Ze._seekHandler=Ne,Ze._config=Ie,Ze._needStash=!0,Ze._xhr=null,Ze._requestAbort=!1,Ze._contentLength=null,Ze._receivedLength=0,Ze}return Object(p.a)(_e,[{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(A.a)(Object(b.a)(_e.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie,Ze){this._dataSource=Ie,this._range=Ze;var ct=Ie.url;this._config.reuseRedirectedURL&&Ie.redirectedURL!=null&&(ct=Ie.redirectedURL);var gt=this._seekHandler.getConfig(ct,Ze);this._requestURL=gt.url;var kt=this._xhr=new XMLHttpRequest;if(kt.open("GET",gt.url,!0),kt.responseType="moz-chunked-arraybuffer",kt.onreadystatechange=this._onReadyStateChange.bind(this),kt.onprogress=this._onProgress.bind(this),kt.onloadend=this._onLoadEnd.bind(this),kt.onerror=this._onXhrError.bind(this),Ie.withCredentials&&(kt.withCredentials=!0),typeof gt.headers=="object"){var xr=gt.headers;for(var Hr in xr)xr.hasOwnProperty(Hr)&&kt.setRequestHeader(Hr,xr[Hr])}if(typeof this._config.headers=="object"){var on=this._config.headers;for(var Nt in on)on.hasOwnProperty(Nt)&&kt.setRequestHeader(Nt,on[Nt])}this._status=c.kConnecting,kt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Ie){var Ze=Ie.target;if(Ze.readyState===2){if(Ze.responseURL!=null&&Ze.responseURL!==this._requestURL&&this._onURLRedirect){var ct=this._seekHandler.removeURLParameters(Ze.responseURL);this._onURLRedirect(ct)}if(Ze.status!==0&&(Ze.status<200||Ze.status>299))if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:Ze.status,msg:Ze.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+Ze.status+" "+Ze.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Ie){if(this._status===c.kError)return;this._contentLength===null&&(Ie.total!==null&&Ie.total!==0&&(this._contentLength=Ie.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var Ze=Ie.target.response,ct=this._range.from+this._receivedLength;this._receivedLength+=Ze.byteLength,this._onDataArrival&&this._onDataArrival(Ze,ct,this._receivedLength)}},{key:"_onLoadEnd",value:function(Ie){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(Ie){this._status=c.kError;var Ze=0,ct=null;if(this._contentLength&&Ie.loaded<this._contentLength?(Ze=h.EARLY_EOF,ct={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Ze=h.EXCEPTION,ct={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(Ze,ct);else throw new e(ct.msg)}}],[{key:"isSupported",value:function(){try{var Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="moz-chunked-arraybuffer",Ie.responseType==="moz-chunked-arraybuffer"}catch(Ze){return u.w("MozChunkedLoader",Ze.message),!1}}}]),_e}(g),I=C,O=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(Ne,Ie){var Ze;return Object(y.a)(this,_e),Ze=vt.call(this,"xhr-msstream-loader"),Ze.TAG="MSStreamLoader",Ze._seekHandler=Ne,Ze._config=Ie,Ze._needStash=!0,Ze._xhr=null,Ze._reader=null,Ze._totalRange=null,Ze._currentRange=null,Ze._currentRequestURL=null,Ze._currentRedirectedURL=null,Ze._contentLength=null,Ze._receivedLength=0,Ze._bufferLimit=16*1024*1024,Ze._lastTimeBufferSize=0,Ze._isReconnecting=!1,Ze}return Object(p.a)(_e,[{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(A.a)(Object(b.a)(_e.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie,Ze){this._internalOpen(Ie,Ze,!1)}},{key:"_internalOpen",value:function(Ie,Ze,ct){this._dataSource=Ie,ct?this._currentRange=Ze:this._totalRange=Ze;var gt=Ie.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?gt=this._currentRedirectedURL:Ie.redirectedURL!=null&&(gt=Ie.redirectedURL));var kt=this._seekHandler.getConfig(gt,Ze);this._currentRequestURL=kt.url;var xr=this._reader=new self.MSStreamReader;xr.onprogress=this._msrOnProgress.bind(this),xr.onload=this._msrOnLoad.bind(this),xr.onerror=this._msrOnError.bind(this);var Hr=this._xhr=new XMLHttpRequest;if(Hr.open("GET",kt.url,!0),Hr.responseType="ms-stream",Hr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Hr.onerror=this._xhrOnError.bind(this),Ie.withCredentials&&(Hr.withCredentials=!0),typeof kt.headers=="object"){var on=kt.headers;for(var Nt in on)on.hasOwnProperty(Nt)&&Hr.setRequestHeader(Nt,on[Nt])}if(typeof this._config.headers=="object"){var ot=this._config.headers;for(var dt in ot)ot.hasOwnProperty(dt)&&Hr.setRequestHeader(dt,ot[dt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,Hr.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(Ie){var Ze=Ie.target;if(Ze.readyState===2)if(Ze.status>=200&&Ze.status<=299){if(this._status=c.kBuffering,Ze.responseURL!=null){var ct=this._seekHandler.removeURLParameters(Ze.responseURL);Ze.responseURL!==this._currentRequestURL&&ct!==this._currentRedirectedURL&&(this._currentRedirectedURL=ct,this._onURLRedirect&&this._onURLRedirect(ct))}var gt=Ze.getResponseHeader("Content-Length");if(gt!=null&&this._contentLength==null){var kt=parseInt(gt);kt>0&&(this._contentLength=kt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:Ze.status,msg:Ze.statusText});else throw new e("MSStreamLoader: Http code invalid, "+Ze.status+" "+Ze.statusText);else if(Ze.readyState===3&&(Ze.status>=200&&Ze.status<=299)){this._status=c.kBuffering;var xr=Ze.response;this._reader.readAsArrayBuffer(xr)}}},{key:"_xhrOnError",value:function(Ie){this._status=c.kError;var Ze=h.EXCEPTION,ct={code:-1,msg:Ie.constructor.name+" "+Ie.type};if(this._onError)this._onError(Ze,ct);else throw new e(ct.msg)}},{key:"_msrOnProgress",value:function(Ie){var Ze=Ie.target,ct=Ze.result;if(ct==null){this._doReconnectIfNeeded();return}var gt=ct.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=ct.byteLength;var kt=this._totalRange.from+this._receivedLength;this._receivedLength+=gt.byteLength,this._onDataArrival&&this._onDataArrival(gt,kt,this._receivedLength),ct.byteLength>=this._bufferLimit&&(u.v(this.TAG,"MSStream buffer exceeded max size near ".concat(kt+gt.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 Ie={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Ie,!0)}}},{key:"_msrOnLoad",value:function(Ie){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Ie){this._status=c.kError;var Ze=0,ct=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Ze=h.EARLY_EOF,ct={code:-1,msg:"MSStream meet Early-Eof"}):(Ze=h.EARLY_EOF,ct={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(Ze,ct);else throw new e(ct.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="ms-stream",Ie.responseType==="ms-stream"}catch(Ze){return u.w("MSStreamLoader",Ze.message),!1}}}]),_e}(g),F=O,R=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(Ne,Ie){var Ze;return Object(y.a)(this,_e),Ze=vt.call(this,"xhr-range-loader"),Ze.TAG="RangeLoader",Ze._seekHandler=Ne,Ze._config=Ie,Ze._needStash=!1,Ze._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],Ze._currentChunkSizeKB=384,Ze._currentSpeedNormalized=0,Ze._zeroSpeedChunkCount=0,Ze._xhr=null,Ze._speedSampler=new n,Ze._requestAbort=!1,Ze._waitForTotalLength=!1,Ze._totalLengthReceived=!1,Ze._currentRequestURL=null,Ze._currentRedirectedURL=null,Ze._currentRequestRange=null,Ze._totalLength=null,Ze._contentLength=null,Ze._receivedLength=0,Ze._lastTimeLoaded=0,Ze}return Object(p.a)(_e,[{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(A.a)(Object(b.a)(_e.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Ie,Ze){this._dataSource=Ie,this._range=Ze,this._status=c.kConnecting;var ct=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(ct=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!ct?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Ie=this._currentChunkSizeKB*1024,Ze=this._range.from+this._receivedLength,ct=Ze+Ie;this._contentLength!=null&&(ct-this._range.from>=this._contentLength&&(ct=this._range.from+this._contentLength-1)),this._currentRequestRange={from:Ze,to:ct},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Ie,Ze){this._lastTimeLoaded=0;var ct=Ie.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?ct=this._currentRedirectedURL:Ie.redirectedURL!=null&&(ct=Ie.redirectedURL));var gt=this._seekHandler.getConfig(ct,Ze);this._currentRequestURL=gt.url;var kt=this._xhr=new XMLHttpRequest;if(kt.open("GET",gt.url,!0),kt.responseType="arraybuffer",kt.onreadystatechange=this._onReadyStateChange.bind(this),kt.onprogress=this._onProgress.bind(this),kt.onload=this._onLoad.bind(this),kt.onerror=this._onXhrError.bind(this),Ie.withCredentials&&(kt.withCredentials=!0),typeof gt.headers=="object"){var xr=gt.headers;for(var Hr in xr)xr.hasOwnProperty(Hr)&&kt.setRequestHeader(Hr,xr[Hr])}if(typeof this._config.headers=="object"){var on=this._config.headers;for(var Nt in on)on.hasOwnProperty(Nt)&&kt.setRequestHeader(Nt,on[Nt])}kt.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(Ie){var Ze=Ie.target;if(Ze.readyState===2){if(Ze.responseURL!=null){var ct=this._seekHandler.removeURLParameters(Ze.responseURL);Ze.responseURL!==this._currentRequestURL&&ct!==this._currentRedirectedURL&&(this._currentRedirectedURL=ct,this._onURLRedirect&&this._onURLRedirect(ct))}if(Ze.status>=200&&Ze.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:Ze.status,msg:Ze.statusText});else throw new e("RangeLoader: Http code invalid, "+Ze.status+" "+Ze.statusText)}}},{key:"_onProgress",value:function(Ie){if(this._status===c.kError)return;if(this._contentLength===null){var Ze=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Ze=!0;var ct=Ie.total;this._internalAbort(),ct!=null&ct!==0&&(this._totalLength=ct)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Ze){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var gt=Ie.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Ie.loaded,this._speedSampler.addBytes(gt)}},{key:"_normalizeSpeed",value:function(Ie){var Ze=this._chunkSizeKBList,ct=Ze.length-1,gt=0,kt=0,xr=ct;if(Ie<Ze[0])return Ze[0];for(;kt<=xr;){if(gt=kt+Math.floor((xr-kt)/2),gt===ct||Ie>=Ze[gt]&&Ie<Ze[gt+1])return Ze[gt];Ze[gt]<Ie?kt=gt+1:xr=gt-1}}},{key:"_onLoad",value:function(Ie){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var Ze=this._speedSampler.lastSecondKBps;if(Ze===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Ze=this._speedSampler.currentKBps)),Ze!==0){var ct=this._normalizeSpeed(Ze);this._currentSpeedNormalized!==ct&&(this._currentSpeedNormalized=ct,this._currentChunkSizeKB=ct)}var gt=Ie.target.response,kt=this._range.from+this._receivedLength;this._receivedLength+=gt.byteLength;var xr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():xr=!0,this._onDataArrival&&this._onDataArrival(gt,kt,this._receivedLength),xr&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Ie){this._status=c.kError;var Ze=0,ct=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Ze=h.EARLY_EOF,ct={code:-1,msg:"RangeLoader meet Early-Eof"}):(Ze=h.EXCEPTION,ct={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(Ze,ct);else throw new e(ct.msg)}}],[{key:"isSupported",value:function(){try{var Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="arraybuffer",Ie.responseType==="arraybuffer"}catch(Ze){return u.w("RangeLoader",Ze.message),!1}}}]),_e}(g),B=R,P=function(Ft){Object(t.a)(_e,Ft);var vt=Object(a.a)(_e);function _e(){var Ne;return Object(y.a)(this,_e),Ne=vt.call(this,"websocket-loader"),Ne.TAG="WebSocketLoader",Ne._needStash=!0,Ne._ws=null,Ne._requestAbort=!1,Ne._receivedLength=0,Ne}return Object(p.a)(_e,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(A.a)(Object(b.a)(_e.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie){try{var Ze=this._ws=new self.WebSocket(Ie.url);Ze.binaryType="arraybuffer",Ze.onopen=this._onWebSocketOpen.bind(this),Ze.onclose=this._onWebSocketClose.bind(this),Ze.onmessage=this._onWebSocketMessage.bind(this),Ze.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(gt){this._status=c.kError;var ct={code:gt.code,msg:gt.message};if(this._onError)this._onError(h.EXCEPTION,ct);else throw new e(ct.msg)}}},{key:"abort",value:function(){var Ie=this._ws;Ie&&(Ie.readyState===0||Ie.readyState===1)&&(this._requestAbort=!0,Ie.close()),this._ws=null,this._status=c.kComplete}},{key:"_onWebSocketOpen",value:function(Ie){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Ie){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Ie){var Ze=this;if(Ie.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Ie.data);else if(Ie.data instanceof Blob){var ct=new FileReader;ct.onload=function(){Ze._dispatchArrayBuffer(ct.result)},ct.readAsArrayBuffer(Ie.data)}else{this._status=c.kError;var gt={code:-1,msg:"Unsupported WebSocket message type: "+Ie.data.constructor.name};if(this._onError)this._onError(h.EXCEPTION,gt);else throw new e(gt.msg)}}},{key:"_dispatchArrayBuffer",value:function(Ie){var Ze=Ie,ct=this._receivedLength;this._receivedLength+=Ze.byteLength,this._onDataArrival&&this._onDataArrival(Ze,ct,this._receivedLength)}},{key:"_onWebSocketError",value:function(Ie){this._status=c.kError;var Ze={code:Ie.code,msg:Ie.message};if(this._onError)this._onError(h.EXCEPTION,Ze);else throw new e(Ze.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Ie){return!1}}}]),_e}(g),X=P,M=function(){function Ft(vt){Object(y.a)(this,Ft),this._zeroStart=vt||!1}return Object(p.a)(Ft,[{key:"getConfig",value:function(_e,Ne){var Ie={};if(Ne.from!==0||Ne.to!==-1){var Ze;Ne.to!==-1?Ze="bytes=".concat(Ne.from.toString(),"-").concat(Ne.to.toString()):Ze="bytes=".concat(Ne.from.toString(),"-"),Ie.Range=Ze}else this._zeroStart&&(Ie.Range="bytes=0-");return{url:_e,headers:Ie}}},{key:"removeURLParameters",value:function(_e){return _e}}]),Ft}(),z=M,W=function(){function Ft(vt,_e){Object(y.a)(this,Ft),this._startName=vt,this._endName=_e}return Object(p.a)(Ft,[{key:"getConfig",value:function(_e,Ne){var Ie=_e;if(Ne.from!==0||Ne.to!==-1){var Ze=!0;Ie.indexOf("?")===-1&&(Ie+="?",Ze=!1),Ze&&(Ie+="&"),Ie+="".concat(this._startName,"=").concat(Ne.from.toString()),Ne.to!==-1&&(Ie+="&".concat(this._endName,"=").concat(Ne.to.toString()))}return{url:Ie,headers:{}}}},{key:"removeURLParameters",value:function(_e){var Ne=_e.split("?")[0],Ie=void 0,Ze=_e.indexOf("?");Ze!==-1&&(Ie=_e.substring(Ze+1));var ct="";if(Ie!=null&&Ie.length>0)for(var gt=Ie.split("&"),kt=0;kt<gt.length;kt++){var xr=gt[kt].split("="),Hr=kt>0;xr[0]!==this._startName&&xr[0]!==this._endName&&(Hr&&(ct+="&"),ct+=gt[kt])}return ct.length===0?Ne:Ne+"?"+ct}}]),Ft}(),H=W,V=function(){function Ft(vt,_e,Ne){Object(y.a)(this,Ft),this.TAG="IOController",this._config=_e,this._extraData=Ne,this._stashInitialSize=1024*384,_e.stashInitialSize!=null&&_e.stashInitialSize>0&&(this._stashInitialSize=_e.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,_e.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=vt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(vt.url),this._refTotalLength=vt.filesize?vt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new n,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(p.a)(Ft,[{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(_e){this._extraData=_e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(_e){this._onDataArrival=_e}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(_e){this._onSeeked=_e}},{key:"onError",get:function(){return this._onError},set:function(_e){this._onError=_e}},{key:"onComplete",get:function(){return this._onComplete},set:function(_e){this._onComplete=_e}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(_e){this._onRedirect=_e}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(_e){this._onRecoveredEarlyEof=_e}},{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===B?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var _e=this._config;if(_e.seekType==="range")this._seekHandler=new z(this._config.rangeLoadZeroStart);else if(_e.seekType==="param"){var Ne=_e.seekParamStart||"bstart",Ie=_e.seekParamEnd||"bend";this._seekHandler=new H(Ne,Ie)}else if(_e.seekType==="custom"){if(typeof _e.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new _e.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(_e.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;else if(E.isSupported())this._loaderClass=E;else if(I.isSupported())this._loaderClass=I;else if(B.isSupported())this._loaderClass=B;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(_e){this._currentRange={from:0,to:-1},_e&&(this._currentRange.from=_e),this._speedSampler.reset(),_e||(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 _e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(_e,!0)}}},{key:"seek",value:function(_e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(_e,!0)}},{key:"_internalSeek",value:function(_e,Ne){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Ne),this._loader.destroy(),this._loader=null;var Ie={from:_e,to:-1};this._currentRange={from:Ie.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Ie),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(_e){if(!_e||typeof _e!="string"||_e.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=_e}},{key:"_expandBuffer",value:function(_e){for(var Ne=this._stashSize;Ne+1024*1024*1<_e;)Ne*=2;if(Ne+=1024*1024*1,Ne===this._bufferSize)return;var Ie=new ArrayBuffer(Ne);if(this._stashUsed>0){var Ze=new Uint8Array(this._stashBuffer,0,this._stashUsed),ct=new Uint8Array(Ie,0,Ne);ct.set(Ze,0)}this._stashBuffer=Ie,this._bufferSize=Ne}},{key:"_normalizeSpeed",value:function(_e){var Ne=this._speedNormalizeList,Ie=Ne.length-1,Ze=0,ct=0,gt=Ie;if(_e<Ne[0])return Ne[0];for(;ct<=gt;){if(Ze=ct+Math.floor((gt-ct)/2),Ze===Ie||_e>=Ne[Ze]&&_e<Ne[Ze+1])return Ne[Ze];Ne[Ze]<_e?ct=Ze+1:gt=Ze-1}}},{key:"_adjustStashSize",value:function(_e){var Ne=0;this._config.isLive||_e<512?Ne=_e:_e>=512&&_e<=1024?Ne=Math.floor(_e*1.5):Ne=_e*2,Ne>8192&&(Ne=8192);var Ie=Ne*1024+1024*1024*1;this._bufferSize<Ie&&this._expandBuffer(Ie),this._stashSize=Ne*1024}},{key:"_dispatchChunks",value:function(_e,Ne){return this._currentRange.to=Ne+_e.byteLength-1,this._onDataArrival(_e,Ne)}},{key:"_onURLRedirect",value:function(_e){this._redirectedURL=_e,this._onRedirect&&this._onRedirect(_e)}},{key:"_onContentLengthKnown",value:function(_e){_e&&this._fullRequestFlag&&(this._totalLength=_e,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(_e,Ne,Ie){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(_e.byteLength);var Ze=this._speedSampler.lastSecondKBps;if(Ze!==0){var ct=this._normalizeSpeed(Ze);this._speedNormalized!==ct&&(this._speedNormalized=ct,this._adjustStashSize(ct))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Ne),this._stashUsed+_e.byteLength<=this._stashSize){var ot=new Uint8Array(this._stashBuffer,0,this._stashSize);ot.set(new Uint8Array(_e),this._stashUsed),this._stashUsed+=_e.byteLength}else{var dt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Yt=this._stashBuffer.slice(0,this._stashUsed),Pt=this._dispatchChunks(Yt,this._stashByteStart);if(Pt<Yt.byteLength){if(Pt>0){var Et=new Uint8Array(Yt,Pt);dt.set(Et,0),this._stashUsed=Et.byteLength,this._stashByteStart+=Pt}}else this._stashUsed=0,this._stashByteStart+=Pt;this._stashUsed+_e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+_e.byteLength),dt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dt.set(new Uint8Array(_e),this._stashUsed),this._stashUsed+=_e.byteLength}else{var Bt=this._dispatchChunks(_e,Ne);if(Bt<_e.byteLength){var wt=_e.byteLength-Bt;wt>this._bufferSize&&(this._expandBuffer(wt),dt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),dt.set(new Uint8Array(_e,Bt),0),this._stashUsed+=wt,this._stashByteStart=Ne+Bt}}}else if(this._stashUsed===0){var gt=this._dispatchChunks(_e,Ne);if(gt<_e.byteLength){var kt=_e.byteLength-gt;kt>this._bufferSize&&this._expandBuffer(kt);var xr=new Uint8Array(this._stashBuffer,0,this._bufferSize);xr.set(new Uint8Array(_e,gt),0),this._stashUsed+=kt,this._stashByteStart=Ne+gt}}else{this._stashUsed+_e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+_e.byteLength);var Hr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Hr.set(new Uint8Array(_e),this._stashUsed),this._stashUsed+=_e.byteLength;var on=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(on<this._stashUsed&&on>0){var Nt=new Uint8Array(this._stashBuffer,on);Hr.set(Nt,0)}this._stashUsed-=on,this._stashByteStart+=on}}},{key:"_flushStashBuffer",value:function(_e){if(this._stashUsed>0){var Ne=this._stashBuffer.slice(0,this._stashUsed),Ie=this._dispatchChunks(Ne,this._stashByteStart),Ze=Ne.byteLength-Ie;if(Ie<Ne.byteLength)if(_e)u.w(this.TAG,"".concat(Ze," bytes unconsumed data remain when flush buffer, dropped"));else{if(Ie>0){var ct=new Uint8Array(this._stashBuffer,0,this._bufferSize),gt=new Uint8Array(Ne,Ie);ct.set(gt,0),this._stashUsed=gt.byteLength,this._stashByteStart+=Ie}return 0}return this._stashUsed=0,this._stashByteStart=0,Ze}return 0}},{key:"_onLoaderComplete",value:function(_e,Ne){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(_e,Ne){u.e(this.TAG,"Loader error, code = ".concat(Ne.code,", msg = ").concat(Ne.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,_e=h.UNRECOVERABLE_EARLY_EOF);switch(_e){case h.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Ie=this._currentRange.to+1;Ie<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Ie,!1));return}_e=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(_e,Ne);else throw new e("IOException: "+Ne.msg)}}]),Ft}(),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 q=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var _e=new Q({},ee()),Ne=_e.loaderType;return _e.destroy(),Ne=="fetch-stream-loader"||Ne=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var _e=new Q({},ee()),Ne=_e.loaderType;return _e.destroy(),Ne}},{key:"supportNativeMediaPlayback",value:function(_e){Ft.videoElement==null&&(Ft.videoElement=window.document.createElement("video"));var Ne=Ft.videoElement.canPlayType(_e);return Ne==="probably"||Ne=="maybe"}},{key:"getFeatureList",value:function(){var _e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return _e.mseFlvPlayback=Ft.supportMSEH264Playback(),_e.networkStreamIO=Ft.supportNetworkStreamIO(),_e.networkLoaderName=Ft.getNetworkLoaderTypeName(),_e.mseLiveFlvPlayback=_e.mseFlvPlayback&&_e.networkStreamIO,_e.nativeMP4H264Playback=Ft.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),_e.nativeWebmVP8Playback=Ft.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),_e.nativeWebmVP9Playback=Ft.supportNativeMediaPlayback('video/webm; codecs="vp9"'),_e}}]),Ft}(),se=q,re={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"},Ae=re,Te=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"forceGlobalTag",get:function(){return u.FORCE_GLOBAL_TAG},set:function(_e){u.FORCE_GLOBAL_TAG=_e,Ft._notifyChange()}},{key:"globalTag",get:function(){return u.GLOBAL_TAG},set:function(_e){u.GLOBAL_TAG=_e,Ft._notifyChange()}},{key:"enableAll",get:function(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR},set:function(_e){u.ENABLE_VERBOSE=_e,u.ENABLE_DEBUG=_e,u.ENABLE_INFO=_e,u.ENABLE_WARN=_e,u.ENABLE_ERROR=_e,Ft._notifyChange()}},{key:"enableDebug",get:function(){return u.ENABLE_DEBUG},set:function(_e){u.ENABLE_DEBUG=_e,Ft._notifyChange()}},{key:"enableVerbose",get:function(){return u.ENABLE_VERBOSE},set:function(_e){u.ENABLE_VERBOSE=_e,Ft._notifyChange()}},{key:"enableInfo",get:function(){return u.ENABLE_INFO},set:function(_e){u.ENABLE_INFO=_e,Ft._notifyChange()}},{key:"enableWarn",get:function(){return u.ENABLE_WARN},set:function(_e){u.ENABLE_WARN=_e,Ft._notifyChange()}},{key:"enableError",get:function(){return u.ENABLE_ERROR},set:function(_e){u.ENABLE_ERROR=_e,Ft._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(_e){u.GLOBAL_TAG=_e.globalTag,u.FORCE_GLOBAL_TAG=_e.forceGlobalTag,u.ENABLE_VERBOSE=_e.enableVerbose,u.ENABLE_DEBUG=_e.enableDebug,u.ENABLE_INFO=_e.enableInfo,u.ENABLE_WARN=_e.enableWarn,u.ENABLE_ERROR=_e.enableError,u.ENABLE_CALLBACK=_e.enableCallback}},{key:"_notifyChange",value:function(){var _e=Ft.emitter;if(_e.listenerCount("change")>0){var Ne=Ft.getConfig();_e.emit("change",Ne)}}},{key:"registerListener",value:function(_e){Ft.emitter.addListener("change",_e)}},{key:"removeListener",value:function(_e){Ft.emitter.removeListener("change",_e)}},{key:"addLogListener",value:function(_e){u.emitter.addListener("log",_e),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,Ft._notifyChange())}},{key:"removeLogListener",value:function(_e){u.emitter.removeListener("log",_e),u.emitter.listenerCount("log")===0&&(u.ENABLE_CALLBACK=!1,Ft._notifyChange())}}]),Ft}();Te.emitter=new f.a;var Re=Te,Ge=function(){function Ft(){Object(y.a)(this,Ft),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(p.a)(Ft,[{key:"isComplete",value:function(){var _e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Ne=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&&_e&&Ne}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(_e){if(this.keyframesIndex==null)return null;var Ne=this.keyframesIndex,Ie=this._search(Ne.times,_e);return{index:Ie,milliseconds:Ne.times[Ie],fileposition:Ne.filepositions[Ie]}}},{key:"_search",value:function(_e,Ne){var Ie=0,Ze=_e.length-1,ct=0,gt=0,kt=Ze;for(Ne<_e[0]&&(Ie=0,gt=kt+1);gt<=kt;)if(ct=gt+Math.floor((kt-gt)/2),ct===Ze||Ne>=_e[ct]&&Ne<_e[ct+1]){Ie=ct;break}else _e[ct]<Ne?gt=ct+1:kt=ct-1;return Ie}}]),Ft}(),Ue=Ge;function nt(Ft,vt,_e){var Ne=Ft;if(vt+_e<Ne.length){for(;_e--;)if((Ne[++vt]&192)!==128)return!1;return!0}else return!1}function Le(Ft){for(var vt=[],_e=Ft,Ne=0,Ie=Ft.length;Ne<Ie;){if(_e[Ne]<128){vt.push(String.fromCharCode(_e[Ne])),++Ne;continue}else if(!(_e[Ne]<192)){if(_e[Ne]<224){if(nt(_e,Ne,1)){var Ze=(_e[Ne]&31)<<6|_e[Ne+1]&63;if(Ze>=128){vt.push(String.fromCharCode(Ze&65535)),Ne+=2;continue}}}else if(_e[Ne]<240){if(nt(_e,Ne,2)){var ct=(_e[Ne]&15)<<12|(_e[Ne+1]&63)<<6|_e[Ne+2]&63;if(ct>=2048&&(ct&63488)!==55296){vt.push(String.fromCharCode(ct&65535)),Ne+=3;continue}}}else if(_e[Ne]<248&&nt(_e,Ne,3)){var gt=(_e[Ne]&7)<<18|(_e[Ne+1]&63)<<12|(_e[Ne+2]&63)<<6|_e[Ne+3]&63;if(gt>65536&&gt<1114112){gt-=65536,vt.push(String.fromCharCode(gt>>>10|55296)),vt.push(String.fromCharCode(gt&1023|56320)),Ne+=4;continue}}}vt.push(String.fromCharCode(65533)),++Ne}return vt.join("")}var le=Le,Xe=function(){var Ft=new ArrayBuffer(2);return new DataView(Ft).setInt16(0,256,!0),new Int16Array(Ft)[0]===256}(),pe=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"parseScriptData",value:function(_e,Ne,Ie){var Ze={};try{var ct=Ft.parseValue(_e,Ne,Ie),gt=Ft.parseValue(_e,Ne+ct.size,Ie-ct.size);Ze[ct.data]=gt.data}catch(kt){u.e("AMF",kt.toString())}return Ze}},{key:"parseObject",value:function(_e,Ne,Ie){if(Ie<3)throw new l("Data not enough when parse ScriptDataObject");var Ze=Ft.parseString(_e,Ne,Ie),ct=Ft.parseValue(_e,Ne+Ze.size,Ie-Ze.size),gt=ct.objectEnd;return{data:{name:Ze.data,value:ct.data},size:Ze.size+ct.size,objectEnd:gt}}},{key:"parseVariable",value:function(_e,Ne,Ie){return Ft.parseObject(_e,Ne,Ie)}},{key:"parseString",value:function(_e,Ne,Ie){if(Ie<2)throw new l("Data not enough when parse String");var Ze=new DataView(_e,Ne,Ie),ct=Ze.getUint16(0,!Xe),gt;return ct>0?gt=le(new Uint8Array(_e,Ne+2,ct)):gt="",{data:gt,size:2+ct}}},{key:"parseLongString",value:function(_e,Ne,Ie){if(Ie<4)throw new l("Data not enough when parse LongString");var Ze=new DataView(_e,Ne,Ie),ct=Ze.getUint32(0,!Xe),gt;return ct>0?gt=le(new Uint8Array(_e,Ne+4,ct)):gt="",{data:gt,size:4+ct}}},{key:"parseDate",value:function(_e,Ne,Ie){if(Ie<10)throw new l("Data size invalid when parse Date");var Ze=new DataView(_e,Ne,Ie),ct=Ze.getFloat64(0,!Xe),gt=Ze.getInt16(8,!Xe);return ct+=gt*60*1e3,{data:new Date(ct),size:8+2}}},{key:"parseValue",value:function(_e,Ne,Ie){if(Ie<1)throw new l("Data not enough when parse Value");var Ze=new DataView(_e,Ne,Ie),ct=1,gt=Ze.getUint8(0),kt,xr=!1;try{switch(gt){case 0:kt=Ze.getFloat64(1,!Xe),ct+=8;break;case 1:{var Hr=Ze.getUint8(1);kt=!!Hr,ct+=1;break}case 2:{var on=Ft.parseString(_e,Ne+1,Ie-1);kt=on.data,ct+=on.size;break}case 3:{kt={};var Nt=0;for((Ze.getUint32(Ie-4,!Xe)&16777215)===9&&(Nt=3);ct<Ie-4;){var ot=Ft.parseObject(_e,Ne+ct,Ie-ct-Nt);if(ot.objectEnd)break;kt[ot.data.name]=ot.data.value,ct+=ot.size}if(ct<=Ie-3){var dt=Ze.getUint32(ct-1,!Xe)&16777215;dt===9&&(ct+=3)}break}case 8:{kt={},ct+=4;var Yt=0;for((Ze.getUint32(Ie-4,!Xe)&16777215)===9&&(Yt=3);ct<Ie-8;){var Pt=Ft.parseVariable(_e,Ne+ct,Ie-ct-Yt);if(Pt.objectEnd)break;kt[Pt.data.name]=Pt.data.value,ct+=Pt.size}if(ct<=Ie-3){var Et=Ze.getUint32(ct-1,!Xe)&16777215;Et===9&&(ct+=3)}break}case 9:kt=void 0,ct=1,xr=!0;break;case 10:{kt=[];var Bt=Ze.getUint32(1,!Xe);ct+=4;for(var wt=0;wt<Bt;wt++){var Mt=Ft.parseValue(_e,Ne+ct,Ie-ct);kt.push(Mt.data),ct+=Mt.size}break}case 11:{var Nr=Ft.parseDate(_e,Ne+1,Ie-1);kt=Nr.data,ct+=Nr.size;break}case 12:{var Tr=Ft.parseString(_e,Ne+1,Ie-1);kt=Tr.data,ct+=Tr.size;break}default:ct=Ie,u.w("AMF","Unsupported AMF value type "+gt)}}catch(yr){u.e("AMF",yr.toString())}return{data:kt,size:ct,objectEnd:xr}}}]),Ft}(),Z=pe,Y=function(){function Ft(vt){Object(y.a)(this,Ft),this.TAG="ExpGolomb",this._buffer=vt,this._buffer_index=0,this._total_bytes=vt.byteLength,this._total_bits=vt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(p.a)(Ft,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var _e=this._total_bytes-this._buffer_index;if(_e<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var Ne=Math.min(4,_e),Ie=new Uint8Array(4);Ie.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Ne)),this._current_word=new DataView(Ie.buffer).getUint32(0,!1),this._buffer_index+=Ne,this._current_word_bits_left=Ne*8}},{key:"readBits",value:function(_e){if(_e>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(_e<=this._current_word_bits_left){var Ne=this._current_word>>>32-_e;return this._current_word<<=_e,this._current_word_bits_left-=_e,Ne}var Ie=this._current_word_bits_left?this._current_word:0;Ie=Ie>>>32-this._current_word_bits_left;var Ze=_e-this._current_word_bits_left;this._fillCurrentWord();var ct=Math.min(Ze,this._current_word_bits_left),gt=this._current_word>>>32-ct;return this._current_word<<=ct,this._current_word_bits_left-=ct,Ie=Ie<<ct|gt,Ie}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var _e;for(_e=0;_e<this._current_word_bits_left;_e++)if((this._current_word&2147483648>>>_e)!==0)return this._current_word<<=_e,this._current_word_bits_left-=_e,_e;return this._fillCurrentWord(),_e+this._skipLeadingZero()}},{key:"readUEG",value:function(){var _e=this._skipLeadingZero();return this.readBits(_e+1)-1}},{key:"readSEG",value:function(){var _e=this.readUEG();return _e&1?_e+1>>>1:-1*(_e>>>1)}}]),Ft}(),ne=Y,ce=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"_ebsp2rbsp",value:function(_e){for(var Ne=_e,Ie=Ne.byteLength,Ze=new Uint8Array(Ie),ct=0,gt=0;gt<Ie;gt++){if(gt>=2&&(Ne[gt]===3&&Ne[gt-1]===0&&Ne[gt-2]===0))continue;Ze[ct]=Ne[gt],ct++}return new Uint8Array(Ze.buffer,0,ct)}},{key:"parseSPS",value:function(_e){var Ne=Ft._ebsp2rbsp(_e),Ie=new ne(Ne);Ie.readByte();var Ze=Ie.readByte();Ie.readByte();var ct=Ie.readByte();Ie.readUEG();var gt=Ft.getProfileString(Ze),kt=Ft.getLevelString(ct),xr=1,Hr=420,on=[0,420,422,444],Nt=8;if((Ze===100||Ze===110||Ze===122||Ze===244||Ze===44||Ze===83||Ze===86||Ze===118||Ze===128||Ze===138||Ze===144)&&(xr=Ie.readUEG(),xr===3&&Ie.readBits(1),xr<=3&&(Hr=on[xr]),Nt=Ie.readUEG()+8,Ie.readUEG(),Ie.readBits(1),Ie.readBool()))for(var ot=xr!==3?8:12,dt=0;dt<ot;dt++)Ie.readBool()&&(dt<6?Ft._skipScalingList(Ie,16):Ft._skipScalingList(Ie,64));Ie.readUEG();var Yt=Ie.readUEG();if(Yt===0)Ie.readUEG();else if(Yt===1){Ie.readBits(1),Ie.readSEG(),Ie.readSEG();for(var Pt=Ie.readUEG(),Et=0;Et<Pt;Et++)Ie.readSEG()}var Bt=Ie.readUEG();Ie.readBits(1);var wt=Ie.readUEG(),Mt=Ie.readUEG(),Nr=Ie.readBits(1);Nr===0&&Ie.readBits(1),Ie.readBits(1);var Tr=0,yr=0,en=0,sn=0,Vn=Ie.readBool();Vn&&(Tr=Ie.readUEG(),yr=Ie.readUEG(),en=Ie.readUEG(),sn=Ie.readUEG());var jn=1,ri=1,ci=0,gi=!0,Ni=0,Qe=0,Se=Ie.readBool();if(Se){if(Ie.readBool()){var Pe=Ie.readByte(),He=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Ye=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Pe>0&&Pe<16?(jn=He[Pe-1],ri=Ye[Pe-1]):Pe===255&&(jn=Ie.readByte()<<8|Ie.readByte(),ri=Ie.readByte()<<8|Ie.readByte())}if(Ie.readBool()&&Ie.readBool(),Ie.readBool()&&(Ie.readBits(4),Ie.readBool()&&Ie.readBits(24)),Ie.readBool()&&(Ie.readUEG(),Ie.readUEG()),Ie.readBool()){var ze=Ie.readBits(32),$e=Ie.readBits(32);gi=Ie.readBool(),Ni=$e,Qe=ze*2,ci=Ni/Qe}}var St=1;(jn!==1||ri!==1)&&(St=jn/ri);var ft=0,Ht=0;if(xr===0)ft=1,Ht=2-Nr;else{var Er=xr===3?1:2,Fr=xr===1?2:1;ft=Er,Ht=Fr*(2-Nr)}var tn=(wt+1)*16,Zt=(2-Nr)*((Mt+1)*16);tn-=(Tr+yr)*ft,Zt-=(en+sn)*Ht;var Rn=Math.ceil(tn*St);return Ie.destroy(),Ie=null,{profile_string:gt,level_string:kt,bit_depth:Nt,ref_frames:Bt,chroma_format:Hr,chroma_format_string:Ft.getChromaFormatString(Hr),frame_rate:{fixed:gi,fps:ci,fps_den:Qe,fps_num:Ni},sar_ratio:{width:jn,height:ri},codec_size:{width:tn,height:Zt},present_size:{width:Rn,height:Zt}}}},{key:"_skipScalingList",value:function(_e,Ne){for(var Ie=8,Ze=8,ct=0,gt=0;gt<Ne;gt++)Ze!==0&&(ct=_e.readSEG(),Ze=(Ie+ct+256)%256),Ie=Ze===0?Ie:Ze}},{key:"getProfileString",value:function(_e){switch(_e){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(_e){return(_e/10).toFixed(1)}},{key:"getChromaFormatString",value:function(_e){switch(_e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Ft}(),ye=ce,Ee={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Ce=Ee;function ue(Ft){return Ft>>>8&255|(Ft&255)<<8}function ge(Ft){return(Ft&4278190080)>>>24|(Ft&16711680)>>>8|(Ft&65280)<<8|(Ft&255)<<24}function Oe(Ft,vt){return Ft[vt]<<24|Ft[vt+1]<<16|Ft[vt+2]<<8|Ft[vt+3]}var Je=function(){function Ft(vt,_e){Object(y.a)(this,Ft),this.TAG="FLVDemuxer",this._config=_e,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=vt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=vt.hasAudioTrack,this._hasVideo=vt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ue,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 Ne=new ArrayBuffer(2);return new DataView(Ne).setInt16(0,256,!0),new Int16Array(Ne)[0]===256}()}return Object(p.a)(Ft,[{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(_e){return _e.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(_e){this._onTrackMetadata=_e}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(_e){this._onMediaInfo=_e}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(_e){this._onMetaDataArrived=_e}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(_e){this._onScriptDataArrived=_e}},{key:"onError",get:function(){return this._onError},set:function(_e){this._onError=_e}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(_e){this._onDataAvailable=_e}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(_e){this._timestampBase=_e}},{key:"overridedDuration",get:function(){return this._duration},set:function(_e){this._durationOverrided=!0,this._duration=_e,this._mediaInfo.duration=_e}},{key:"overridedHasAudio",set:function(_e){this._hasAudioFlagOverrided=!0,this._hasAudio=_e,this._mediaInfo.hasAudio=_e}},{key:"overridedHasVideo",set:function(_e){this._hasVideoFlagOverrided=!0,this._hasVideo=_e,this._mediaInfo.hasVideo=_e}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ue}},{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(_e,Ne){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Ie=0,Ze=this._littleEndian;if(Ne===0)if(_e.byteLength>13){var ct=Ft.probe(_e);Ie=ct.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Ne+Ie!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!");var gt=new DataView(_e,Ie),kt=gt.getUint32(0,!Ze);kt!==0&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Ie+=4}for(;Ie<_e.byteLength;){this._dispatch=!0;var xr=new DataView(_e,Ie);if(Ie+11+4>_e.byteLength)break;var Hr=xr.getUint8(0),on=xr.getUint32(0,!Ze)&16777215;if(Ie+11+on+4>_e.byteLength)break;if(Hr!==8&&Hr!==9&&Hr!==18){u.w(this.TAG,"Unsupported tag type ".concat(Hr,", skipped")),Ie+=11+on+4;continue}var Nt=xr.getUint8(4),ot=xr.getUint8(5),dt=xr.getUint8(6),Yt=xr.getUint8(7),Pt=dt|ot<<8|Nt<<16|Yt<<24,Et=xr.getUint32(7,!Ze)&16777215;Et!==0&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var Bt=Ie+11;switch(Hr){case 8:this._parseAudioData(_e,Bt,on,Pt);break;case 9:this._parseVideoData(_e,Bt,on,Pt,Ne+Ie);break;case 18:this._parseScriptData(_e,Bt,on);break}var wt=xr.getUint32(11+on,!Ze);wt!==11+on&&u.w(this.TAG,"Invalid PrevTagSize ".concat(wt)),Ie+=11+on+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Ie}},{key:"_parseScriptData",value:function(_e,Ne,Ie){var Ze=Z.parseScriptData(_e,Ne,Ie);if(Ze.hasOwnProperty("onMetaData")){if(Ze.onMetaData==null||typeof Ze.onMetaData!="object"){u.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ze;var ct=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},ct)),typeof ct.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=ct.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof ct.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=ct.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof ct.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=ct.audiodatarate),typeof ct.videodatarate=="number"&&(this._mediaInfo.videoDataRate=ct.videodatarate),typeof ct.width=="number"&&(this._mediaInfo.width=ct.width),typeof ct.height=="number"&&(this._mediaInfo.height=ct.height),typeof ct.duration=="number"){if(!this._durationOverrided){var gt=Math.floor(ct.duration*this._timescale);this._duration=gt,this._mediaInfo.duration=gt}}else this._mediaInfo.duration=0;if(typeof ct.framerate=="number"){var kt=Math.floor(ct.framerate*1e3);if(kt>0){var xr=kt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=xr,this._referenceFrameRate.fps_num=kt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=xr}}if(typeof ct.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Hr=ct.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Hr),ct.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=ct,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ze).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ze)))}},{key:"_parseKeyframesIndex",value:function(_e){for(var Ne=[],Ie=[],Ze=1;Ze<_e.times.length;Ze++){var ct=this._timestampBase+Math.floor(_e.times[Ze]*1e3);Ne.push(ct),Ie.push(_e.filepositions[Ze])}return{times:Ne,filepositions:Ie}}},{key:"_parseAudioData",value:function(_e,Ne,Ie,Ze){if(Ie<=1){u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var ct=this._littleEndian,gt=new DataView(_e,Ne,Ie),kt=gt.getUint8(0),xr=kt>>>4;if(xr!==2&&xr!==10){this._onError(Ce.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+xr);return}var Hr=0,on=(kt&12)>>>2;if(on>=0&&on<=4)Hr=this._flvSoundRateTable[on];else{this._onError(Ce.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+on);return}var Nt=(kt&2)>>>1,ot=kt&1,dt=this._audioMetadata,Yt=this._audioTrack;if(dt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),dt=this._audioMetadata={},dt.type="audio",dt.id=Yt.id,dt.timescale=this._timescale,dt.duration=this._duration,dt.audioSampleRate=Hr,dt.channelCount=ot===0?1:2),xr===10){var Pt=this._parseAACAudioData(_e,Ne+1,Ie-1);if(Pt==null)return;if(Pt.packetType===0){dt.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var Et=Pt.data;dt.audioSampleRate=Et.samplingRate,dt.channelCount=Et.channelCount,dt.codec=Et.codec,dt.originalCodec=Et.originalCodec,dt.config=Et.config,dt.refSampleDuration=1024/dt.audioSampleRate*dt.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",dt);var Bt=this._mediaInfo;Bt.audioCodec=dt.originalCodec,Bt.audioSampleRate=dt.audioSampleRate,Bt.audioChannelCount=dt.channelCount,Bt.hasVideo?Bt.videoCodec!=null&&(Bt.mimeType='video/x-flv; codecs="'+Bt.videoCodec+","+Bt.audioCodec+'"'):Bt.mimeType='video/x-flv; codecs="'+Bt.audioCodec+'"',Bt.isComplete()&&this._onMediaInfo(Bt)}else if(Pt.packetType===1){var wt=this._timestampBase+Ze,Mt={unit:Pt.data,length:Pt.data.byteLength,dts:wt,pts:wt};Yt.samples.push(Mt),Yt.length+=Pt.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Pt.packetType))}else if(xr===2){if(!dt.codec){var Nr=this._parseMP3AudioData(_e,Ne+1,Ie-1,!0);if(Nr==null)return;dt.audioSampleRate=Nr.samplingRate,dt.channelCount=Nr.channelCount,dt.codec=Nr.codec,dt.originalCodec=Nr.originalCodec,dt.refSampleDuration=1152/dt.audioSampleRate*dt.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",dt);var Tr=this._mediaInfo;Tr.audioCodec=dt.codec,Tr.audioSampleRate=dt.audioSampleRate,Tr.audioChannelCount=dt.channelCount,Tr.audioDataRate=Nr.bitRate,Tr.hasVideo?Tr.videoCodec!=null&&(Tr.mimeType='video/x-flv; codecs="'+Tr.videoCodec+","+Tr.audioCodec+'"'):Tr.mimeType='video/x-flv; codecs="'+Tr.audioCodec+'"',Tr.isComplete()&&this._onMediaInfo(Tr)}var yr=this._parseMP3AudioData(_e,Ne+1,Ie-1,!1);if(yr==null)return;var en=this._timestampBase+Ze,sn={unit:yr,length:yr.byteLength,dts:en,pts:en};Yt.samples.push(sn),Yt.length+=yr.length}}},{key:"_parseAACAudioData",value:function(_e,Ne,Ie){if(Ie<=1){u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var Ze={},ct=new Uint8Array(_e,Ne,Ie);return Ze.packetType=ct[0],ct[0]===0?Ze.data=this._parseAACAudioSpecificConfig(_e,Ne+1,Ie-1):Ze.data=ct.subarray(1),Ze}},{key:"_parseAACAudioSpecificConfig",value:function(_e,Ne,Ie){var Ze=new Uint8Array(_e,Ne,Ie),ct=null,gt=0,kt=0,xr=null,Hr=0,on=null;if(gt=kt=Ze[0]>>>3,Hr=(Ze[0]&7)<<1|Ze[1]>>>7,Hr<0||Hr>=this._mpegSamplingRates.length){this._onError(Ce.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Nt=this._mpegSamplingRates[Hr],ot=(Ze[1]&120)>>>3;if(ot<0||ot>=8){this._onError(Ce.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}gt===5&&(on=(Ze[1]&7)<<1|Ze[2]>>>7,xr=(Ze[2]&124)>>>2);var dt=self.navigator.userAgent.toLowerCase();return dt.indexOf("firefox")!==-1?Hr>=6?(gt=5,ct=new Array(4),on=Hr-3):(gt=2,ct=new Array(2),on=Hr):dt.indexOf("android")!==-1?(gt=2,ct=new Array(2),on=Hr):(gt=5,on=Hr,ct=new Array(4),Hr>=6?on=Hr-3:ot===1&&(gt=2,ct=new Array(2),on=Hr)),ct[0]=gt<<3,ct[0]|=(Hr&15)>>>1,ct[1]=(Hr&15)<<7,ct[1]|=(ot&15)<<3,gt===5&&(ct[1]|=(on&15)>>>1,ct[2]=(on&1)<<7,ct[2]|=2<<2,ct[3]=0),{config:ct,samplingRate:Nt,channelCount:ot,codec:"mp4a.40."+gt,originalCodec:"mp4a.40."+kt}}},{key:"_parseMP3AudioData",value:function(_e,Ne,Ie,Ze){if(Ie<4){u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var ct=this._littleEndian,gt=new Uint8Array(_e,Ne,Ie),kt=null;if(Ze){if(gt[0]!==255)return;var xr=gt[1]>>>3&3,Hr=(gt[1]&6)>>1,on=(gt[2]&240)>>>4,Nt=(gt[2]&12)>>>2,ot=gt[3]>>>6&3,dt=ot!==3?2:1,Yt=0,Pt=0,Et=34,Bt="mp3";switch(xr){case 0:Yt=this._mpegAudioV25SampleRateTable[Nt];break;case 2:Yt=this._mpegAudioV20SampleRateTable[Nt];break;case 3:Yt=this._mpegAudioV10SampleRateTable[Nt];break}switch(Hr){case 1:Et=34,on<this._mpegAudioL3BitRateTable.length&&(Pt=this._mpegAudioL3BitRateTable[on]);break;case 2:Et=33,on<this._mpegAudioL2BitRateTable.length&&(Pt=this._mpegAudioL2BitRateTable[on]);break;case 3:Et=32,on<this._mpegAudioL1BitRateTable.length&&(Pt=this._mpegAudioL1BitRateTable[on]);break}kt={bitRate:Pt,samplingRate:Yt,channelCount:dt,codec:Bt,originalCodec:Bt}}else kt=gt;return kt}},{key:"_parseVideoData",value:function(_e,Ne,Ie,Ze,ct){if(Ie<=1){u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var gt=new Uint8Array(_e,Ne,Ie)[0],kt=(gt&240)>>>4,xr=gt&15;if(xr!==7){this._onError(Ce.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(xr));return}this._parseAVCVideoPacket(_e,Ne+1,Ie-1,Ze,ct,kt)}},{key:"_parseAVCVideoPacket",value:function(_e,Ne,Ie,Ze,ct,gt){if(Ie<4){u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var kt=this._littleEndian,xr=new DataView(_e,Ne,Ie),Hr=xr.getUint8(0),on=xr.getUint32(0,!kt)&16777215,Nt=on<<8>>8;if(Hr===0)this._parseAVCDecoderConfigurationRecord(_e,Ne+4,Ie-4);else if(Hr===1)this._parseAVCVideoData(_e,Ne+4,Ie-4,Ze,ct,gt,Nt);else if(!(Hr===2)){this._onError(Ce.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Hr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(_e,Ne,Ie){if(Ie<7){u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var Ze=this._videoMetadata,ct=this._videoTrack,gt=this._littleEndian,kt=new DataView(_e,Ne,Ie);Ze?typeof Ze.avcc!="undefined"&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ze=this._videoMetadata={},Ze.type="video",Ze.id=ct.id,Ze.timescale=this._timescale,Ze.duration=this._duration);var xr=kt.getUint8(0),Hr=kt.getUint8(1),on=kt.getUint8(2),Nt=kt.getUint8(3);if(xr!==1||Hr===0){this._onError(Ce.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(kt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ce.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var ot=kt.getUint8(5)&31;if(ot===0){this._onError(Ce.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ot>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(ot));for(var dt=6,Yt=0;Yt<ot;Yt++){var Pt=kt.getUint16(dt,!gt);if(dt+=2,Pt===0)continue;var Et=new Uint8Array(_e,Ne+dt,Pt);dt+=Pt;var Bt=ye.parseSPS(Et);if(Yt!==0)continue;Ze.codecWidth=Bt.codec_size.width,Ze.codecHeight=Bt.codec_size.height,Ze.presentWidth=Bt.present_size.width,Ze.presentHeight=Bt.present_size.height,Ze.profile=Bt.profile_string,Ze.level=Bt.level_string,Ze.bitDepth=Bt.bit_depth,Ze.chromaFormat=Bt.chroma_format,Ze.sarRatio=Bt.sar_ratio,Ze.frameRate=Bt.frame_rate,(Bt.frame_rate.fixed===!1||Bt.frame_rate.fps_num===0||Bt.frame_rate.fps_den===0)&&(Ze.frameRate=this._referenceFrameRate);var wt=Ze.frameRate.fps_den,Mt=Ze.frameRate.fps_num;Ze.refSampleDuration=Ze.timescale*(wt/Mt);for(var Nr=Et.subarray(1,4),Tr="avc1.",yr=0;yr<3;yr++){var en=Nr[yr].toString(16);en.length<2&&(en="0"+en),Tr+=en}Ze.codec=Tr;var sn=this._mediaInfo;sn.width=Ze.codecWidth,sn.height=Ze.codecHeight,sn.fps=Ze.frameRate.fps,sn.profile=Ze.profile,sn.level=Ze.level,sn.refFrames=Bt.ref_frames,sn.chromaFormat=Bt.chroma_format_string,sn.sarNum=Ze.sarRatio.width,sn.sarDen=Ze.sarRatio.height,sn.videoCodec=Tr,sn.hasAudio?sn.audioCodec!=null&&(sn.mimeType='video/x-flv; codecs="'+sn.videoCodec+","+sn.audioCodec+'"'):sn.mimeType='video/x-flv; codecs="'+sn.videoCodec+'"',sn.isComplete()&&this._onMediaInfo(sn)}var Vn=kt.getUint8(dt);if(Vn===0){this._onError(Ce.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Vn>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Vn));dt++;for(var jn=0;jn<Vn;jn++){var ri=kt.getUint16(dt,!gt);if(dt+=2,ri===0)continue;dt+=ri}Ze.avcc=new Uint8Array(Ie),Ze.avcc.set(new Uint8Array(_e,Ne,Ie),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",Ze)}},{key:"_parseAVCVideoData",value:function(_e,Ne,Ie,Ze,ct,gt,kt){for(var xr=this._littleEndian,Hr=new DataView(_e,Ne,Ie),on=[],Nt=0,ot=0,dt=this._naluLengthSize,Yt=this._timestampBase+Ze,Pt=gt===1;ot<Ie;){if(ot+4>=Ie){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(Yt,", offset = ").concat(ot,", dataSize = ").concat(Ie));break}var Et=Hr.getUint32(ot,!xr);if(dt===3&&(Et>>>=8),Et>Ie-dt){u.w(this.TAG,"Malformed Nalus near timestamp ".concat(Yt,", NaluSize > DataSize!"));return}var Bt=Hr.getUint8(ot+dt)&31;Bt===5&&(Pt=!0);var wt=new Uint8Array(_e,Ne+ot,dt+Et),Mt={type:Bt,data:wt};on.push(Mt),Nt+=wt.byteLength,ot+=dt+Et}if(on.length){var Nr=this._videoTrack,Tr={units:on,length:Nt,isKeyframe:Pt,dts:Yt,cts:kt,pts:Yt+kt};Pt&&(Tr.fileposition=ct),Nr.samples.push(Tr),Nr.length+=Nt}}}],[{key:"probe",value:function(_e){var Ne=new Uint8Array(_e),Ie={match:!1};if(Ne[0]!==70||Ne[1]!==76||Ne[2]!==86||Ne[3]!==1)return Ie;var Ze=(Ne[4]&4)>>>2!==0,ct=(Ne[4]&1)!==0,gt=Oe(Ne,5);return gt<9?Ie:{match:!0,consumed:gt,dataOffset:gt,hasAudioTrack:Ze,hasVideoTrack:ct}}}]),Ft}(),lt=Je,tt=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"init",value:function(){Ft.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 _e in Ft.types)Ft.types.hasOwnProperty(_e)&&(Ft.types[_e]=[_e.charCodeAt(0),_e.charCodeAt(1),_e.charCodeAt(2),_e.charCodeAt(3)]);var Ne=Ft.constants={};Ne.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Ne.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Ne.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Ne.STSC=Ne.STCO=Ne.STTS,Ne.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ne.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]),Ne.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]),Ne.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ne.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ne.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(_e){for(var Ne=8,Ie=null,Ze=Array.prototype.slice.call(arguments,1),ct=Ze.length,gt=0;gt<ct;gt++)Ne+=Ze[gt].byteLength;Ie=new Uint8Array(Ne),Ie[0]=Ne>>>24&255,Ie[1]=Ne>>>16&255,Ie[2]=Ne>>>8&255,Ie[3]=Ne&255,Ie.set(_e,4);for(var kt=8,xr=0;xr<ct;xr++)Ie.set(Ze[xr],kt),kt+=Ze[xr].byteLength;return Ie}},{key:"generateInitSegment",value:function(_e){var Ne=Ft.box(Ft.types.ftyp,Ft.constants.FTYP),Ie=Ft.moov(_e),Ze=new Uint8Array(Ne.byteLength+Ie.byteLength);return Ze.set(Ne,0),Ze.set(Ie,Ne.byteLength),Ze}},{key:"moov",value:function(_e){var Ne=Ft.mvhd(_e.timescale,_e.duration),Ie=Ft.trak(_e),Ze=Ft.mvex(_e);return Ft.box(Ft.types.moov,Ne,Ie,Ze)}},{key:"mvhd",value:function(_e,Ne){return Ft.box(Ft.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&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(_e){return Ft.box(Ft.types.trak,Ft.tkhd(_e),Ft.mdia(_e))}},{key:"tkhd",value:function(_e){var Ne=_e.id,Ie=_e.duration,Ze=_e.presentWidth,ct=_e.presentHeight;return Ft.box(Ft.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255,0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&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,Ze>>>8&255,Ze&255,0,0,ct>>>8&255,ct&255,0,0]))}},{key:"mdia",value:function(_e){return Ft.box(Ft.types.mdia,Ft.mdhd(_e),Ft.hdlr(_e),Ft.minf(_e))}},{key:"mdhd",value:function(_e){var Ne=_e.timescale,Ie=_e.duration;return Ft.box(Ft.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,85,196,0,0]))}},{key:"hdlr",value:function(_e){var Ne=null;return _e.type==="audio"?Ne=Ft.constants.HDLR_AUDIO:Ne=Ft.constants.HDLR_VIDEO,Ft.box(Ft.types.hdlr,Ne)}},{key:"minf",value:function(_e){var Ne=null;return _e.type==="audio"?Ne=Ft.box(Ft.types.smhd,Ft.constants.SMHD):Ne=Ft.box(Ft.types.vmhd,Ft.constants.VMHD),Ft.box(Ft.types.minf,Ne,Ft.dinf(),Ft.stbl(_e))}},{key:"dinf",value:function(){var _e=Ft.box(Ft.types.dinf,Ft.box(Ft.types.dref,Ft.constants.DREF));return _e}},{key:"stbl",value:function(_e){var Ne=Ft.box(Ft.types.stbl,Ft.stsd(_e),Ft.box(Ft.types.stts,Ft.constants.STTS),Ft.box(Ft.types.stsc,Ft.constants.STSC),Ft.box(Ft.types.stsz,Ft.constants.STSZ),Ft.box(Ft.types.stco,Ft.constants.STCO));return Ne}},{key:"stsd",value:function(_e){return _e.type==="audio"?_e.codec==="mp3"?Ft.box(Ft.types.stsd,Ft.constants.STSD_PREFIX,Ft.mp3(_e)):Ft.box(Ft.types.stsd,Ft.constants.STSD_PREFIX,Ft.mp4a(_e)):Ft.box(Ft.types.stsd,Ft.constants.STSD_PREFIX,Ft.avc1(_e))}},{key:"mp3",value:function(_e){var Ne=_e.channelCount,Ie=_e.audioSampleRate,Ze=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ne,0,16,0,0,0,0,Ie>>>8&255,Ie&255,0,0]);return Ft.box(Ft.types[".mp3"],Ze)}},{key:"mp4a",value:function(_e){var Ne=_e.channelCount,Ie=_e.audioSampleRate,Ze=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ne,0,16,0,0,0,0,Ie>>>8&255,Ie&255,0,0]);return Ft.box(Ft.types.mp4a,Ze,Ft.esds(_e))}},{key:"esds",value:function(_e){var Ne=_e.config||[],Ie=Ne.length,Ze=new Uint8Array([0,0,0,0,3,23+Ie,0,1,0,4,15+Ie,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Ie]).concat(Ne).concat([6,1,2]));return Ft.box(Ft.types.esds,Ze)}},{key:"avc1",value:function(_e){var Ne=_e.avcc,Ie=_e.codecWidth,Ze=_e.codecHeight,ct=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,Ie>>>8&255,Ie&255,Ze>>>8&255,Ze&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 Ft.box(Ft.types.avc1,ct,Ft.box(Ft.types.avcC,Ne))}},{key:"mvex",value:function(_e){return Ft.box(Ft.types.mvex,Ft.trex(_e))}},{key:"trex",value:function(_e){var Ne=_e.id,Ie=new Uint8Array([0,0,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Ft.box(Ft.types.trex,Ie)}},{key:"moof",value:function(_e,Ne){return Ft.box(Ft.types.moof,Ft.mfhd(_e.sequenceNumber),Ft.traf(_e,Ne))}},{key:"mfhd",value:function(_e){var Ne=new Uint8Array([0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255]);return Ft.box(Ft.types.mfhd,Ne)}},{key:"traf",value:function(_e,Ne){var Ie=_e.id,Ze=Ft.box(Ft.types.tfhd,new Uint8Array([0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255])),ct=Ft.box(Ft.types.tfdt,new Uint8Array([0,0,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255])),gt=Ft.sdtp(_e),kt=Ft.trun(_e,gt.byteLength+16+16+8+16+8+8);return Ft.box(Ft.types.traf,Ze,ct,kt,gt)}},{key:"sdtp",value:function(_e){for(var Ne=_e.samples||[],Ie=Ne.length,Ze=new Uint8Array(4+Ie),ct=0;ct<Ie;ct++){var gt=Ne[ct].flags;Ze[ct+4]=gt.isLeading<<6|gt.dependsOn<<4|gt.isDependedOn<<2|gt.hasRedundancy}return Ft.box(Ft.types.sdtp,Ze)}},{key:"trun",value:function(_e,Ne){var Ie=_e.samples||[],Ze=Ie.length,ct=12+16*Ze,gt=new Uint8Array(ct);Ne+=8+ct,gt.set([0,0,15,1,Ze>>>24&255,Ze>>>16&255,Ze>>>8&255,Ze&255,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255],0);for(var kt=0;kt<Ze;kt++){var xr=Ie[kt].duration,Hr=Ie[kt].size,on=Ie[kt].flags,Nt=Ie[kt].cts;gt.set([xr>>>24&255,xr>>>16&255,xr>>>8&255,xr&255,Hr>>>24&255,Hr>>>16&255,Hr>>>8&255,Hr&255,on.isLeading<<2|on.dependsOn,on.isDependedOn<<6|on.hasRedundancy<<4|on.isNonSync,0,0,Nt>>>24&255,Nt>>>16&255,Nt>>>8&255,Nt&255],12+16*kt)}return Ft.box(Ft.types.trun,gt)}},{key:"mdat",value:function(_e){return Ft.box(Ft.types.mdat,_e)}}]),Ft}();tt.init();var ke=tt,st=function(){function Ft(){Object(y.a)(this,Ft)}return Object(p.a)(Ft,null,[{key:"getSilentFrame",value:function(_e,Ne){if(_e==="mp4a.40.2"){if(Ne===1)return new Uint8Array([0,200,0,128,35,128]);if(Ne===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Ne===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Ne===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Ne===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(Ne===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(Ne===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(Ne===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(Ne===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}}]),Ft}(),Ve=st,Ot=Object(p.a)(function Ft(vt,_e,Ne,Ie,Ze){Object(y.a)(this,Ft),this.dts=vt,this.pts=_e,this.duration=Ne,this.originalDts=Ie,this.isSyncPoint=Ze,this.fileposition=null}),Ut=function(){function Ft(){Object(y.a)(this,Ft),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(p.a)(Ft,[{key:"appendSyncPoint",value:function(_e){_e.isSyncPoint=!0,this.syncPoints.push(_e)}}]),Ft}(),ir=function(){function Ft(){Object(y.a)(this,Ft),this._list=[]}return Object(p.a)(Ft,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(_e){var Ne=this._list;if(_e.length===0)return;Ne.length>0&&_e[0].originalDts<Ne[Ne.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Ne,_e)}},{key:"getLastSyncPointBeforeDts",value:function(_e){if(this._list.length==0)return null;var Ne=this._list,Ie=0,Ze=Ne.length-1,ct=0,gt=0,kt=Ze;for(_e<Ne[0].dts&&(Ie=0,gt=kt+1);gt<=kt;)if(ct=gt+Math.floor((kt-gt)/2),ct===Ze||_e>=Ne[ct].dts&&_e<Ne[ct+1].dts){Ie=ct;break}else Ne[ct].dts<_e?gt=ct+1:kt=ct-1;return this._list[Ie]}}]),Ft}(),lr=function(){function Ft(vt){Object(y.a)(this,Ft),this._type=vt,this._list=[],this._lastAppendLocation=-1}return Object(p.a)(Ft,[{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(_e){var Ne=this._list;if(Ne.length===0)return-2;var Ie=Ne.length-1,Ze=0,ct=0,gt=Ie,kt=0;if(_e<Ne[0].originalBeginDts)return kt=-1,kt;for(;ct<=gt;)if(Ze=ct+Math.floor((gt-ct)/2),Ze===Ie||_e>Ne[Ze].lastSample.originalDts&&_e<Ne[Ze+1].originalBeginDts){kt=Ze;break}else Ne[Ze].originalBeginDts<_e?ct=Ze+1:gt=Ze-1;return kt}},{key:"_searchNearestSegmentAfter",value:function(_e){return this._searchNearestSegmentBefore(_e)+1}},{key:"append",value:function(_e){var Ne=this._list,Ie=_e,Ze=this._lastAppendLocation,ct=0;Ze!==-1&&Ze<Ne.length&&Ie.originalBeginDts>=Ne[Ze].lastSample.originalDts&&(Ze===Ne.length-1||Ze<Ne.length-1&&Ie.originalBeginDts<Ne[Ze+1].originalBeginDts)?ct=Ze+1:Ne.length>0&&(ct=this._searchNearestSegmentBefore(Ie.originalBeginDts)+1),this._lastAppendLocation=ct,this._list.splice(ct,0,Ie)}},{key:"getLastSegmentBefore",value:function(_e){var Ne=this._searchNearestSegmentBefore(_e);return Ne>=0?this._list[Ne]:null}},{key:"getLastSampleBefore",value:function(_e){var Ne=this.getLastSegmentBefore(_e);return Ne!=null?Ne.lastSample:null}},{key:"getLastSyncPointBefore",value:function(_e){for(var Ne=this._searchNearestSegmentBefore(_e),Ie=this._list[Ne].syncPoints;Ie.length===0&&Ne>0;)Ne--,Ie=this._list[Ne].syncPoints;return Ie.length>0?Ie[Ie.length-1]:null}}]),Ft}(),Sr=function(){function Ft(vt){Object(y.a)(this,Ft),this.TAG="MP4Remuxer",this._config=vt,this._isLive=vt.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 lr("audio"),this._videoSegmentInfoList=new lr("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(T.chrome&&(T.version.major<50||T.version.major===50&&T.version.build<2661)),this._fillSilentAfterSeek=T.msedge||T.msie,this._mp3UseMpegAudio=!T.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(p.a)(Ft,[{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(_e){return _e.onDataAvailable=this.remux.bind(this),_e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(_e){this._onInitSegment=_e}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(_e){this._onMediaSegment=_e}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(_e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(_e,Ne){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(_e,Ne),this._remuxVideo(Ne),this._remuxAudio(_e)}},{key:"_onTrackMetadataReceived",value:function(_e,Ne){var Ie=null,Ze="mp4",ct=Ne.codec;if(_e==="audio")this._audioMeta=Ne,Ne.codec==="mp3"&&this._mp3UseMpegAudio?(Ze="mpeg",ct="",Ie=new Uint8Array):Ie=ke.generateInitSegment(Ne);else if(_e==="video")this._videoMeta=Ne,Ie=ke.generateInitSegment(Ne);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(_e,{type:_e,data:Ie.buffer,codec:ct,container:"".concat(_e,"/").concat(Ze),mediaDuration:Ne.duration})}},{key:"_calculateDtsBase",value:function(_e,Ne){if(this._dtsBaseInited)return;_e.samples&&_e.samples.length&&(this._audioDtsBase=_e.samples[0].dts),Ne.samples&&Ne.samples.length&&(this._videoDtsBase=Ne.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var _e=this._videoStashedLastSample,Ne=this._audioStashedLastSample,Ie={type:"video",id:1,sequenceNumber:0,samples:[],length:0};_e!=null&&(Ie.samples.push(_e),Ie.length=_e.length);var Ze={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Ne!=null&&(Ze.samples.push(Ne),Ze.length=Ne.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Ie,!0),this._remuxAudio(Ze,!0)}},{key:"_remuxAudio",value:function(_e,Ne){if(this._audioMeta==null)return;var Ie=_e,Ze=Ie.samples,ct=void 0,gt=-1,kt=-1,xr=-1,Hr=this._audioMeta.refSampleDuration,on=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Nt=this._dtsBaseInited&&this._audioNextDts===void 0,ot=!1;if(!Ze||Ze.length===0)return;if(Ze.length===1&&!Ne)return;var dt=0,Yt=null,Pt=0;on?(dt=0,Pt=Ie.length):(dt=8,Pt=8+Ie.length);var Et=null;if(Ze.length>1&&(Et=Ze.pop(),Pt-=Et.length),this._audioStashedLastSample!=null){var Bt=this._audioStashedLastSample;this._audioStashedLastSample=null,Ze.unshift(Bt),Pt+=Bt.length}Et!=null&&(this._audioStashedLastSample=Et);var wt=Ze[0].dts-this._dtsBase;if(this._audioNextDts)ct=wt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ct=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(ot=!0));else{var Mt=this._audioSegmentInfoList.getLastSampleBefore(wt);if(Mt!=null){var Nr=wt-(Mt.originalDts+Mt.duration);Nr<=3&&(Nr=0);var Tr=Mt.dts+Mt.duration+Nr;ct=wt-Tr}else ct=0}if(ot){var yr=wt-ct,en=this._videoSegmentInfoList.getLastSegmentBefore(wt);if(en!=null&&en.beginDts<yr){var sn=Ve.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(sn){var Vn=en.beginDts,jn=yr-en.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Vn,", duration: ").concat(jn)),Ze.unshift({unit:sn,dts:Vn,pts:Vn}),Pt+=sn.byteLength}}else ot=!1}for(var ri=[],ci=0;ci<Ze.length;ci++){var gi=Ze[ci],Ni=gi.unit,Qe=gi.dts-this._dtsBase,Se=Qe-ct;gt===-1&&(gt=Se);var Pe=0;if(ci!==Ze.length-1){var He=Ze[ci+1].dts-this._dtsBase-ct;Pe=He-Se}else if(Et!=null){var Ye=Et.dts-this._dtsBase-ct;Pe=Ye-Se}else ri.length>=1?Pe=ri[ri.length-1].duration:Pe=Math.floor(Hr);var ze=!1,$e=null;if(Pe>Hr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!T.safari){ze=!0;var St=Math.abs(Pe-Hr),ft=Math.ceil(St/Hr),Ht=Se+Hr;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(Se+Pe," ms, expected: ").concat(Se+Math.round(Hr)," ms, ")+"delta: ".concat(Math.round(St)," ms, generate: ").concat(ft," frames"));var Er=Ve.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Er==null&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Er=Ni),$e=[];for(var Fr=0;Fr<ft;Fr++){var tn=Math.round(Ht);if($e.length>0){var Zt=$e[$e.length-1];Zt.duration=tn-Zt.dts}var Rn={dts:tn,pts:tn,cts:0,unit:Er,size:Er.byteLength,duration:0,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};$e.push(Rn),Pt+=Rn.size,Ht+=Hr}var vn=$e[$e.length-1];vn.duration=Se+Pe-vn.dts,Pe=Math.round(Hr)}ri.push({dts:Se,pts:Se,cts:0,unit:gi.unit,size:gi.unit.byteLength,duration:Pe,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ze&&ri.push.apply(ri,$e)}on?Yt=new Uint8Array(Pt):(Yt=new Uint8Array(Pt),Yt[0]=Pt>>>24&255,Yt[1]=Pt>>>16&255,Yt[2]=Pt>>>8&255,Yt[3]=Pt&255,Yt.set(ke.types.mdat,4));for(var Un=0;Un<ri.length;Un++){var hn=ri[Un].unit;Yt.set(hn,dt),dt+=hn.byteLength}var Wr=ri[ri.length-1];kt=Wr.dts+Wr.duration,this._audioNextDts=kt;var Kn=new Ut;Kn.beginDts=gt,Kn.endDts=kt,Kn.beginPts=gt,Kn.endPts=kt,Kn.originalBeginDts=ri[0].originalDts,Kn.originalEndDts=Wr.originalDts+Wr.duration,Kn.firstSample=new Ot(ri[0].dts,ri[0].pts,ri[0].duration,ri[0].originalDts,!1),Kn.lastSample=new Ot(Wr.dts,Wr.pts,Wr.duration,Wr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Kn),Ie.samples=ri,Ie.sequenceNumber++;var ei=null;on?ei=new Uint8Array:ei=ke.moof(Ie,gt),Ie.samples=[],Ie.length=0;var Si={type:"audio",data:this._mergeBoxes(ei,Yt).buffer,sampleCount:ri.length,info:Kn};on&&Nt&&(Si.timestampOffset=gt),this._onMediaSegment("audio",Si)}},{key:"_remuxVideo",value:function(_e,Ne){if(this._videoMeta==null)return;var Ie=_e,Ze=Ie.samples,ct=void 0,gt=-1,kt=-1,xr=-1,Hr=-1;if(!Ze||Ze.length===0)return;if(Ze.length===1&&!Ne)return;var on=8,Nt=null,ot=8+_e.length,dt=null;if(Ze.length>1&&(dt=Ze.pop(),ot-=dt.length),this._videoStashedLastSample!=null){var Yt=this._videoStashedLastSample;this._videoStashedLastSample=null,Ze.unshift(Yt),ot+=Yt.length}dt!=null&&(this._videoStashedLastSample=dt);var Pt=Ze[0].dts-this._dtsBase;if(this._videoNextDts)ct=Pt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())ct=0;else{var Et=this._videoSegmentInfoList.getLastSampleBefore(Pt);if(Et!=null){var Bt=Pt-(Et.originalDts+Et.duration);Bt<=3&&(Bt=0);var wt=Et.dts+Et.duration+Bt;ct=Pt-wt}else ct=0}for(var Mt=new Ut,Nr=[],Tr=0;Tr<Ze.length;Tr++){var yr=Ze[Tr],en=yr.dts-this._dtsBase,sn=yr.isKeyframe,Vn=en-ct,jn=yr.cts,ri=Vn+jn;gt===-1&&(gt=Vn,xr=ri);var ci=0;if(Tr!==Ze.length-1){var gi=Ze[Tr+1].dts-this._dtsBase-ct;ci=gi-Vn}else if(dt!=null){var Ni=dt.dts-this._dtsBase-ct;ci=Ni-Vn}else Nr.length>=1?ci=Nr[Nr.length-1].duration:ci=Math.floor(this._videoMeta.refSampleDuration);if(sn){var Qe=new Ot(Vn,ri,ci,yr.dts,!0);Qe.fileposition=yr.fileposition,Mt.appendSyncPoint(Qe)}Nr.push({dts:Vn,pts:ri,cts:jn,units:yr.units,size:yr.length,isKeyframe:sn,duration:ci,originalDts:en,flags:{isLeading:0,dependsOn:sn?2:1,isDependedOn:sn?1:0,hasRedundancy:0,isNonSync:sn?0:1}})}Nt=new Uint8Array(ot),Nt[0]=ot>>>24&255,Nt[1]=ot>>>16&255,Nt[2]=ot>>>8&255,Nt[3]=ot&255,Nt.set(ke.types.mdat,4);for(var Se=0;Se<Nr.length;Se++)for(var Pe=Nr[Se].units;Pe.length;){var He=Pe.shift(),Ye=He.data;Nt.set(Ye,on),on+=Ye.byteLength}var ze=Nr[Nr.length-1];if(kt=ze.dts+ze.duration,Hr=ze.pts+ze.duration,this._videoNextDts=kt,Mt.beginDts=gt,Mt.endDts=kt,Mt.beginPts=xr,Mt.endPts=Hr,Mt.originalBeginDts=Nr[0].originalDts,Mt.originalEndDts=ze.originalDts+ze.duration,Mt.firstSample=new Ot(Nr[0].dts,Nr[0].pts,Nr[0].duration,Nr[0].originalDts,Nr[0].isKeyframe),Mt.lastSample=new Ot(ze.dts,ze.pts,ze.duration,ze.originalDts,ze.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Mt),Ie.samples=Nr,Ie.sequenceNumber++,this._forceFirstIDR){var $e=Nr[0].flags;$e.dependsOn=2,$e.isNonSync=0}var St=ke.moof(Ie,gt);Ie.samples=[],Ie.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(St,Nt).buffer,sampleCount:Nr.length,info:Mt})}},{key:"_mergeBoxes",value:function(_e,Ne){var Ie=new Uint8Array(_e.byteLength+Ne.byteLength);return Ie.set(_e,0),Ie.set(Ne,_e.byteLength),Ie}}]),Ft}(),mt=Sr,or={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"},et=or,ur=function(){function Ft(vt,_e){Object(y.a)(this,Ft),this.TAG="TransmuxingController",this._emitter=new f.a,this._config=_e,vt.segments||(vt.segments=[{duration:vt.duration,filesize:vt.filesize,url:vt.url}]),typeof vt.cors!="boolean"&&(vt.cors=!0),typeof vt.withCredentials!="boolean"&&(vt.withCredentials=!1),this._mediaDataSource=vt,this._currentSegmentIndex=0;var Ne=0;this._mediaDataSource.segments.forEach(function(Ie){Ie.timestampBase=Ne,Ne+=Ie.duration,Ie.cors=vt.cors,Ie.withCredentials=vt.withCredentials,_e.referrerPolicy&&(Ie.referrerPolicy=_e.referrerPolicy)}),!isNaN(Ne)&&this._mediaDataSource.duration!==Ne&&(this._mediaDataSource.duration=Ne),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(p.a)(Ft,[{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(_e,Ne){this._emitter.addListener(_e,Ne)}},{key:"off",value:function(_e,Ne){this._emitter.removeListener(_e,Ne)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(_e,Ne){this._currentSegmentIndex=_e;var Ie=this._mediaDataSource.segments[_e],Ze=this._ioctl=new Q(Ie,this._config,_e);Ze.onError=this._onIOException.bind(this),Ze.onSeeked=this._onIOSeeked.bind(this),Ze.onComplete=this._onIOComplete.bind(this),Ze.onRedirect=this._onIORedirect.bind(this),Ze.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Ne?this._demuxer.bindDataSource(this._ioctl):Ze.onDataArrival=this._onInitChunkArrival.bind(this),Ze.open(Ne)}},{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(_e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Ne=this._searchSegmentIndexContains(_e);if(Ne===this._currentSegmentIndex){var Ie=this._mediaInfo.segments[Ne];if(Ie==null)this._pendingSeekTime=_e;else{var Ze=Ie.getNearestKeyframe(_e);this._remuxer.seek(Ze.milliseconds),this._ioctl.seek(Ze.fileposition),this._pendingResolveSeekPoint=Ze.milliseconds}}else{var ct=this._mediaInfo.segments[Ne];if(ct==null)this._pendingSeekTime=_e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Ne);else{var gt=ct.getNearestKeyframe(_e);this._internalAbort(),this._remuxer.seek(_e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Ne].timestampBase,this._loadSegment(Ne,gt.fileposition),this._pendingResolveSeekPoint=gt.milliseconds,this._reportSegmentMediaInfo(Ne)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(_e){for(var Ne=this._mediaDataSource.segments,Ie=Ne.length-1,Ze=0;Ze<Ne.length;Ze++)if(_e<Ne[Ze].timestampBase){Ie=Ze-1;break}return Ie}},{key:"_onInitChunkArrival",value:function(_e,Ne){var Ie=this,Ze=null,ct=0;if(Ne>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,ct=this._demuxer.parseChunks(_e,Ne);else if((Ze=lt.probe(_e)).match){this._demuxer=new lt(Ze,this._config),this._remuxer||(this._remuxer=new mt(this._config));var gt=this._mediaDataSource;gt.duration!=null&&!isNaN(gt.duration)&&(this._demuxer.overridedDuration=gt.duration),typeof gt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=gt.hasAudio),typeof gt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=gt.hasVideo),this._demuxer.timestampBase=gt.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),ct=this._demuxer.parseChunks(_e,Ne)}else Ze=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Ie._internalAbort()}),this._emitter.emit(et.DEMUX_ERROR,Ce.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),ct=0;return ct}},{key:"_onMediaInfo",value:function(_e){var Ne=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},_e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ue.prototype));var Ie=Object.assign({},_e);Object.setPrototypeOf(Ie,Ue.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Ie,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var Ze=Ne._pendingSeekTime;Ne._pendingSeekTime=null,Ne.seek(Ze)})}},{key:"_onMetaDataArrived",value:function(_e){this._emitter.emit(et.METADATA_ARRIVED,_e)}},{key:"_onScriptDataArrived",value:function(_e){this._emitter.emit(et.SCRIPTDATA_ARRIVED,_e)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(_e){var Ne=_e,Ie=Ne+1;Ie<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Ie)):(this._remuxer.flushStashedSamples(),this._emitter.emit(et.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(_e){var Ne=this._ioctl.extraData;this._mediaDataSource.segments[Ne].redirectedURL=_e}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(et.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(_e,Ne){u.e(this.TAG,"IOException: type = ".concat(_e,", code = ").concat(Ne.code,", msg = ").concat(Ne.msg)),this._emitter.emit(et.IO_ERROR,_e,Ne),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(_e,Ne){u.e(this.TAG,"DemuxException: type = ".concat(_e,", info = ").concat(Ne)),this._emitter.emit(et.DEMUX_ERROR,_e,Ne)}},{key:"_onRemuxerInitSegmentArrival",value:function(_e,Ne){this._emitter.emit(et.INIT_SEGMENT,_e,Ne)}},{key:"_onRemuxerMediaSegmentArrival",value:function(_e,Ne){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(et.MEDIA_SEGMENT,_e,Ne),this._pendingResolveSeekPoint!=null&&_e==="video"){var Ie=Ne.info.syncPoints,Ze=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,T.safari&&Ie.length>0&&Ie[0].originalDts===Ze&&(Ze=Ie[0].pts),this._emitter.emit(et.RECOMMEND_SEEKPOINT,Ze)}}},{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(_e){var Ne=this._mediaInfo.segments[_e],Ie=Object.assign({},Ne);Ie.duration=this._mediaInfo.duration,Ie.segmentCount=this._mediaInfo.segmentCount,delete Ie.segments,delete Ie.keyframesIndex,this._emitter.emit(et.MEDIA_INFO,Ie)}},{key:"_reportStatisticsInfo",value:function(){var _e={};_e.url=this._ioctl.currentURL,_e.hasRedirect=this._ioctl.hasRedirect,_e.hasRedirect&&(_e.redirectedURL=this._ioctl.currentRedirectedURL),_e.speed=this._ioctl.currentSpeed,_e.loaderType=this._ioctl.loaderType,_e.currentSegmentIndex=this._currentSegmentIndex,_e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(et.STATISTICS_INFO,_e)}}]),Ft}(),qr=ur,Fe=function(vt){var _e="TransmuxingWorker",Ne=null,Ie=Pt.bind(this);v.install(),vt.addEventListener("message",function(Et){switch(Et.data.cmd){case"init":Ne=new qr(Et.data.param[0],Et.data.param[1]),Ne.on(et.IO_ERROR,ot.bind(this)),Ne.on(et.DEMUX_ERROR,dt.bind(this)),Ne.on(et.INIT_SEGMENT,Ze.bind(this)),Ne.on(et.MEDIA_SEGMENT,ct.bind(this)),Ne.on(et.LOADING_COMPLETE,gt.bind(this)),Ne.on(et.RECOVERED_EARLY_EOF,kt.bind(this)),Ne.on(et.MEDIA_INFO,xr.bind(this)),Ne.on(et.METADATA_ARRIVED,Hr.bind(this)),Ne.on(et.SCRIPTDATA_ARRIVED,on.bind(this)),Ne.on(et.STATISTICS_INFO,Nt.bind(this)),Ne.on(et.RECOMMEND_SEEKPOINT,Yt.bind(this));break;case"destroy":Ne&&(Ne.destroy(),Ne=null),vt.postMessage({msg:"destroyed"});break;case"start":Ne.start();break;case"stop":Ne.stop();break;case"seek":Ne.seek(Et.data.param);break;case"pause":Ne.pause();break;case"resume":Ne.resume();break;case"logging_config":{var Bt=Et.data.param;Re.applyConfig(Bt),Bt.enableCallback===!0?Re.addLogListener(Ie):Re.removeLogListener(Ie);break}}});function Ze(Et,Bt){var wt={msg:et.INIT_SEGMENT,data:{type:Et,data:Bt}};vt.postMessage(wt,[Bt.data])}function ct(Et,Bt){var wt={msg:et.MEDIA_SEGMENT,data:{type:Et,data:Bt}};vt.postMessage(wt,[Bt.data])}function gt(){var Et={msg:et.LOADING_COMPLETE};vt.postMessage(Et)}function kt(){var Et={msg:et.RECOVERED_EARLY_EOF};vt.postMessage(Et)}function xr(Et){var Bt={msg:et.MEDIA_INFO,data:Et};vt.postMessage(Bt)}function Hr(Et){var Bt={msg:et.METADATA_ARRIVED,data:Et};vt.postMessage(Bt)}function on(Et){var Bt={msg:et.SCRIPTDATA_ARRIVED,data:Et};vt.postMessage(Bt)}function Nt(Et){var Bt={msg:et.STATISTICS_INFO,data:Et};vt.postMessage(Bt)}function ot(Et,Bt){vt.postMessage({msg:et.IO_ERROR,data:{type:Et,info:Bt}})}function dt(Et,Bt){vt.postMessage({msg:et.DEMUX_ERROR,data:{type:Et,info:Bt}})}function Yt(Et){vt.postMessage({msg:et.RECOMMEND_SEEKPOINT,data:Et})}function Pt(Et,Bt){vt.postMessage({msg:"logcat_callback",data:{type:Et,logcat:Bt}})}},$t=Fe,Lr=function(){function Ft(vt,_e){if(Object(y.a)(this,Ft),this.TAG="Transmuxer",this._emitter=new f.a,_e.enableWorker&&typeof Worker!="undefined")try{var Ne=i("0r65");this._worker=Ne($t),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[vt,_e]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Re.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Re.getConfig()})}catch(Ze){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qr(vt,_e)}else this._controller=new qr(vt,_e);if(this._controller){var Ie=this._controller;Ie.on(et.IO_ERROR,this._onIOError.bind(this)),Ie.on(et.DEMUX_ERROR,this._onDemuxError.bind(this)),Ie.on(et.INIT_SEGMENT,this._onInitSegment.bind(this)),Ie.on(et.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Ie.on(et.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Ie.on(et.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Ie.on(et.MEDIA_INFO,this._onMediaInfo.bind(this)),Ie.on(et.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Ie.on(et.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Ie.on(et.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Ie.on(et.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(p.a)(Ft,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Re.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(_e,Ne){this._emitter.addListener(_e,Ne)}},{key:"off",value:function(_e,Ne){this._emitter.removeListener(_e,Ne)}},{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(_e){this._worker?this._worker.postMessage({cmd:"seek",param:_e}):this._controller.seek(_e)}},{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(_e,Ne){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(et.INIT_SEGMENT,_e,Ne)})}},{key:"_onMediaSegment",value:function(_e,Ne){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(et.MEDIA_SEGMENT,_e,Ne)})}},{key:"_onLoadingComplete",value:function(){var _e=this;Promise.resolve().then(function(){_e._emitter.emit(et.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var _e=this;Promise.resolve().then(function(){_e._emitter.emit(et.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(_e){var Ne=this;Promise.resolve().then(function(){Ne._emitter.emit(et.MEDIA_INFO,_e)})}},{key:"_onMetaDataArrived",value:function(_e){var Ne=this;Promise.resolve().then(function(){Ne._emitter.emit(et.METADATA_ARRIVED,_e)})}},{key:"_onScriptDataArrived",value:function(_e){var Ne=this;Promise.resolve().then(function(){Ne._emitter.emit(et.SCRIPTDATA_ARRIVED,_e)})}},{key:"_onStatisticsInfo",value:function(_e){var Ne=this;Promise.resolve().then(function(){Ne._emitter.emit(et.STATISTICS_INFO,_e)})}},{key:"_onIOError",value:function(_e,Ne){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(et.IO_ERROR,_e,Ne)})}},{key:"_onDemuxError",value:function(_e,Ne){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(et.DEMUX_ERROR,_e,Ne)})}},{key:"_onRecommendSeekpoint",value:function(_e){var Ne=this;Promise.resolve().then(function(){Ne._emitter.emit(et.RECOMMEND_SEEKPOINT,_e)})}},{key:"_onLoggingConfigChanged",value:function(_e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_e})}},{key:"_onWorkerMessage",value:function(_e){var Ne=_e.data,Ie=Ne.data;if(Ne.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Ne.msg){case et.INIT_SEGMENT:case et.MEDIA_SEGMENT:this._emitter.emit(Ne.msg,Ie.type,Ie.data);break;case et.LOADING_COMPLETE:case et.RECOVERED_EARLY_EOF:this._emitter.emit(Ne.msg);break;case et.MEDIA_INFO:Object.setPrototypeOf(Ie,Ue.prototype),this._emitter.emit(Ne.msg,Ie);break;case et.METADATA_ARRIVED:case et.SCRIPTDATA_ARRIVED:case et.STATISTICS_INFO:this._emitter.emit(Ne.msg,Ie);break;case et.IO_ERROR:case et.DEMUX_ERROR:this._emitter.emit(Ne.msg,Ie.type,Ie.info);break;case et.RECOMMEND_SEEKPOINT:this._emitter.emit(Ne.msg,Ie);break;case"logcat_callback":u.emitter.emit("log",Ie.type,Ie.logcat);break;default:break}}}]),Ft}(),pt=Lr,qt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},vr=qt,pn=function(){function Ft(vt){Object(y.a)(this,Ft),this.TAG="MSEController",this._config=vt,this._emitter=new f.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 ir}return Object(p.a)(Ft,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(_e,Ne){this._emitter.addListener(_e,Ne)}},{key:"off",value:function(_e,Ne){this._emitter.removeListener(_e,Ne)}},{key:"attachMediaElement",value:function(_e){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var Ne=this._mediaSource=new window.MediaSource;Ne.addEventListener("sourceopen",this.e.onSourceOpen),Ne.addEventListener("sourceended",this.e.onSourceEnded),Ne.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=_e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),_e.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var _e=this._mediaSource;for(var Ne in this._sourceBuffers){var Ie=this._pendingSegments[Ne];Ie.splice(0,Ie.length),this._pendingSegments[Ne]=null,this._pendingRemoveRanges[Ne]=null,this._lastInitSegments[Ne]=null;var Ze=this._sourceBuffers[Ne];if(Ze){if(_e.readyState!=="closed"){try{_e.removeSourceBuffer(Ze)}catch(ct){u.e(this.TAG,ct.message)}Ze.removeEventListener("error",this.e.onSourceBufferError),Ze.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Ne]=null,this._sourceBuffers[Ne]=null}}if(_e.readyState==="open")try{_e.endOfStream()}catch(ct){u.e(this.TAG,ct.message)}_e.removeEventListener("sourceopen",this.e.onSourceOpen),_e.removeEventListener("sourceended",this.e.onSourceEnded),_e.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(_e,Ne){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(_e),this._pendingSegments[_e.type].push(_e);return}var Ie=_e,Ze="".concat(Ie.container);Ie.codec&&Ie.codec.length>0&&(Ze+=";codecs=".concat(Ie.codec));var ct=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+Ze),this._lastInitSegments[Ie.type]=Ie,Ze!==this._mimeTypes[Ie.type]){if(this._mimeTypes[Ie.type])u.v(this.TAG,"Notice: ".concat(Ie.type," mimeType changed, origin: ").concat(this._mimeTypes[Ie.type],", target: ").concat(Ze));else{ct=!0;try{var gt=this._sourceBuffers[Ie.type]=this._mediaSource.addSourceBuffer(Ze);gt.addEventListener("error",this.e.onSourceBufferError),gt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(kt){u.e(this.TAG,kt.message),this._emitter.emit(vr.ERROR,{code:kt.code,msg:kt.message});return}}this._mimeTypes[Ie.type]=Ze}Ne||this._pendingSegments[Ie.type].push(Ie),ct||this._sourceBuffers[Ie.type]&&!this._sourceBuffers[Ie.type].updating&&this._doAppendSegments(),T.safari&&Ie.container==="audio/mpeg"&&Ie.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Ie.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(_e){var Ne=_e;this._pendingSegments[Ne.type].push(Ne),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Ie=this._sourceBuffers[Ne.type];Ie&&!Ie.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(_e){for(var Ne in this._sourceBuffers){if(!this._sourceBuffers[Ne])continue;var Ie=this._sourceBuffers[Ne];if(this._mediaSource.readyState==="open")try{Ie.abort()}catch(Hr){u.e(this.TAG,Hr.message)}this._idrList.clear();var Ze=this._pendingSegments[Ne];if(Ze.splice(0,Ze.length),this._mediaSource.readyState==="closed")continue;for(var ct=0;ct<Ie.buffered.length;ct++){var gt=Ie.buffered.start(ct),kt=Ie.buffered.end(ct);this._pendingRemoveRanges[Ne].push({start:gt,end:kt})}if(Ie.updating||this._doRemoveRanges(),T.safari){var xr=this._lastInitSegments[Ne];xr&&(this._pendingSegments[Ne].push(xr),Ie.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var _e=this._mediaSource,Ne=this._sourceBuffers;if(!_e||_e.readyState!=="open"){_e&&_e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Ne.video&&Ne.video.updating||Ne.audio&&Ne.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,_e.endOfStream())}},{key:"getNearestKeyframe",value:function(_e){return this._idrList.getLastSyncPointBeforeDts(_e)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var _e=this._mediaElement.currentTime;for(var Ne in this._sourceBuffers){var Ie=this._sourceBuffers[Ne];if(Ie){var Ze=Ie.buffered;if(Ze.length>=1&&_e-Ze.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var _e=this._mediaElement.currentTime;for(var Ne in this._sourceBuffers){var Ie=this._sourceBuffers[Ne];if(Ie){for(var Ze=Ie.buffered,ct=!1,gt=0;gt<Ze.length;gt++){var kt=Ze.start(gt),xr=Ze.end(gt);if(kt<=_e&&_e<xr+3){if(_e-kt>=this._config.autoCleanupMaxBackwardDuration){ct=!0;var Hr=_e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Ne].push({start:kt,end:Hr})}}else xr<_e&&(ct=!0,this._pendingRemoveRanges[Ne].push({start:kt,end:xr}))}ct&&!Ie.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var _e=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(_e.video&&_e.video.updating||_e.audio&&_e.audio.updating)return;var Ne=this._mediaSource.duration,Ie=this._pendingMediaDuration;Ie>0&&(isNaN(Ne)||Ie>Ne)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(Ne," to ").concat(Ie)),this._mediaSource.duration=Ie),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var _e in this._pendingRemoveRanges){if(!this._sourceBuffers[_e]||this._sourceBuffers[_e].updating)continue;for(var Ne=this._sourceBuffers[_e],Ie=this._pendingRemoveRanges[_e];Ie.length&&!Ne.updating;){var Ze=Ie.shift();Ne.remove(Ze.start,Ze.end)}}}},{key:"_doAppendSegments",value:function(){var _e=this._pendingSegments;for(var Ne in _e){if(!this._sourceBuffers[Ne]||this._sourceBuffers[Ne].updating)continue;if(_e[Ne].length>0){var Ie=_e[Ne].shift();if(Ie.timestampOffset){var Ze=this._sourceBuffers[Ne].timestampOffset,ct=Ie.timestampOffset/1e3,gt=Math.abs(Ze-ct);gt>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(Ze," to ").concat(ct)),this._sourceBuffers[Ne].timestampOffset=ct),delete Ie.timestampOffset}if(!Ie.data||Ie.data.byteLength===0)continue;try{this._sourceBuffers[Ne].appendBuffer(Ie.data),this._isBufferFull=!1,Ne==="video"&&Ie.hasOwnProperty("info")&&this._idrList.appendArray(Ie.info.syncPoints)}catch(kt){this._pendingSegments[Ne].unshift(Ie),kt.code===22?(this._isBufferFull||this._emitter.emit(vr.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,kt.message),this._emitter.emit(vr.ERROR,{code:kt.code,msg:kt.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 _e=this._pendingSourceBufferInit;_e.length;){var Ne=_e.shift();this.appendInitSegment(Ne,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(vr.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 _e=this._pendingSegments;return _e.video.length>0||_e.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var _e=this._pendingRemoveRanges;return _e.video.length>0||_e.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(vr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(_e){u.e(this.TAG,"SourceBuffer Error: ".concat(_e))}}]),Ft}(),fr=pn,gr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},dn={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:Ce.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ce.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ce.CODEC_UNSUPPORTED},Qt=function(){function Ft(vt,_e){if(Object(y.a)(this,Ft),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new f.a,this._config=ee(),typeof _e=="object"&&Object.assign(this._config,_e),vt.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");vt.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=vt,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 Ne=T.chrome&&(T.version.major<50||T.version.major===50&&T.version.build<2661);this._alwaysSeekKeyframe=!!(Ne||T.msedge||T.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(p.a)(Ft,[{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(_e,Ne){var Ie=this;_e===Ae.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Ie._emitter.emit(Ae.MEDIA_INFO,Ie.mediaInfo)}):_e===Ae.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Ie._emitter.emit(Ae.STATISTICS_INFO,Ie.statisticsInfo)})),this._emitter.addListener(_e,Ne)}},{key:"off",value:function(_e,Ne){this._emitter.removeListener(_e,Ne)}},{key:"attachMediaElement",value:function(_e){var Ne=this;if(this._mediaElement=_e,_e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),_e.addEventListener("seeking",this.e.onvSeeking),_e.addEventListener("canplay",this.e.onvCanPlay),_e.addEventListener("stalled",this.e.onvStalled),_e.addEventListener("progress",this.e.onvProgress),this._msectl=new fr(this._config),this._msectl.on(vr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(vr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(vr.SOURCE_OPEN,function(){Ne._mseSourceOpened=!0,Ne._hasPendingLoad&&(Ne._hasPendingLoad=!1,Ne.load())}),this._msectl.on(vr.ERROR,function(Ie){Ne._emitter.emit(Ae.ERROR,gr.MEDIA_ERROR,dn.MEDIA_MSE_ERROR,Ie)}),this._msectl.attachMediaElement(_e),this._pendingSeekTime!=null)try{_e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ie){}}},{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 _e=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 pt(this._mediaDataSource,this._config),this._transmuxer.on(et.INIT_SEGMENT,function(Ne,Ie){_e._msectl.appendInitSegment(Ie)}),this._transmuxer.on(et.MEDIA_SEGMENT,function(Ne,Ie){if(_e._msectl.appendMediaSegment(Ie),_e._config.lazyLoad&&!_e._config.isLive){var Ze=_e._mediaElement.currentTime;Ie.info.endDts>=(Ze+_e._config.lazyLoadMaxDuration)*1e3&&(_e._progressChecker==null&&(u.v(_e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),_e._suspendTransmuxer()))}}),this._transmuxer.on(et.LOADING_COMPLETE,function(){_e._msectl.endOfStream(),_e._emitter.emit(Ae.LOADING_COMPLETE)}),this._transmuxer.on(et.RECOVERED_EARLY_EOF,function(){_e._emitter.emit(Ae.RECOVERED_EARLY_EOF)}),this._transmuxer.on(et.IO_ERROR,function(Ne,Ie){_e._emitter.emit(Ae.ERROR,gr.NETWORK_ERROR,Ne,Ie)}),this._transmuxer.on(et.DEMUX_ERROR,function(Ne,Ie){_e._emitter.emit(Ae.ERROR,gr.MEDIA_ERROR,Ne,{code:-1,msg:Ie})}),this._transmuxer.on(et.MEDIA_INFO,function(Ne){_e._mediaInfo=Ne,_e._emitter.emit(Ae.MEDIA_INFO,Object.assign({},Ne))}),this._transmuxer.on(et.METADATA_ARRIVED,function(Ne){_e._emitter.emit(Ae.METADATA_ARRIVED,Ne)}),this._transmuxer.on(et.SCRIPTDATA_ARRIVED,function(Ne){_e._emitter.emit(Ae.SCRIPTDATA_ARRIVED,Ne)}),this._transmuxer.on(et.STATISTICS_INFO,function(Ne){_e._statisticsInfo=_e._fillStatisticsInfo(Ne),_e._emitter.emit(Ae.STATISTICS_INFO,Object.assign({},_e._statisticsInfo))}),this._transmuxer.on(et.RECOMMEND_SEEKPOINT,function(Ne){_e._mediaElement&&!_e._config.accurateSeek&&(_e._requestSetTime=!0,_e._mediaElement.currentTime=Ne/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(_e){this._mediaElement.volume=_e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(_e){this._mediaElement.muted=_e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(_e){this._mediaElement?this._internalSeek(_e):this._pendingSeekTime=_e}},{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(_e){if(_e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return _e;var Ne=!0,Ie=0,Ze=0;if(this._mediaElement.getVideoPlaybackQuality){var ct=this._mediaElement.getVideoPlaybackQuality();Ie=ct.totalVideoFrames,Ze=ct.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Ie=this._mediaElement.webkitDecodedFrameCount,Ze=this._mediaElement.webkitDroppedFrameCount):Ne=!1;return Ne&&(_e.decodedFrames=Ie,_e.droppedFrames=Ze),_e}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var _e=this._mediaElement.buffered,Ne=this._mediaElement.currentTime,Ie=0,Ze=0,ct=0;ct<_e.length;ct++){var gt=_e.start(ct),kt=_e.end(ct);if(gt<=Ne&&Ne<kt){Ie=gt,Ze=kt;break}}Ze>=Ne+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 _e=this._mediaElement.currentTime,Ne=this._mediaElement.buffered,Ie=!1,Ze=0;Ze<Ne.length;Ze++){var ct=Ne.start(Ze),gt=Ne.end(Ze);if(_e>=ct&&_e<gt){_e>=gt-this._config.lazyLoadRecoverDuration&&(Ie=!0);break}}Ie&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Ie&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(_e){for(var Ne=this._mediaElement.buffered,Ie=0;Ie<Ne.length;Ie++){var Ze=Ne.start(Ie),ct=Ne.end(Ie);if(_e>=Ze&&_e<ct)return!0}return!1}},{key:"_internalSeek",value:function(_e){var Ne=this._isTimepointBuffered(_e),Ie=!1,Ze=0;if(_e<1&&this._mediaElement.buffered.length>0){var ct=this._mediaElement.buffered.start(0);(ct<1&&_e<ct||T.safari)&&(Ie=!0,Ze=T.safari?.1:ct)}if(Ie)this._requestSetTime=!0,this._mediaElement.currentTime=Ze;else if(Ne){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=_e;else{var gt=this._msectl.getNearestKeyframe(Math.floor(_e*1e3));this._requestSetTime=!0,gt!=null?this._mediaElement.currentTime=gt.dts/1e3:this._mediaElement.currentTime=_e}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(_e),this._transmuxer.seek(Math.floor(_e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=_e)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var _e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(_e)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(_e),this._transmuxer.seek(Math.floor(_e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=_e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(_e){var Ne=this._mediaElement;if(_e||!this._receivedCanPlay||Ne.readyState<2){var Ie=Ne.buffered;Ie.length>0&&Ne.currentTime<Ie.start(0)&&(u.w(this.TAG,"Playback seems stuck at ".concat(Ne.currentTime,", seek to ").concat(Ie.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Ie.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(_e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(_e){var Ne=this._mediaElement.currentTime,Ie=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Ne<1&&Ie.length>0){var Ze=Ie.start(0);if(Ze<1&&Ne<Ze||T.safari){this._requestSetTime=!0,this._mediaElement.currentTime=T.safari?.1:Ze;return}}if(this._isTimepointBuffered(Ne)){if(this._alwaysSeekKeyframe){var ct=this._msectl.getNearestKeyframe(Math.floor(Ne*1e3));ct!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=ct.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Ne,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(_e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(_e){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(_e){this._checkAndResumeStuckPlayback()}}]),Ft}(),sr=Qt,Qr=function(){function Ft(vt,_e){if(Object(y.a)(this,Ft),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new f.a,this._config=ee(),typeof _e=="object"&&Object.assign(this._config,_e),vt.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(vt.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(vt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=vt,this._mediaElement=null}return Object(p.a)(Ft,[{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(_e,Ne){var Ie=this;_e===Ae.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Ie._emitter.emit(Ae.MEDIA_INFO,Ie.mediaInfo)}):_e===Ae.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Ie._emitter.emit(Ae.STATISTICS_INFO,Ie.statisticsInfo)})),this._emitter.addListener(_e,Ne)}},{key:"off",value:function(_e,Ne){this._emitter.removeListener(_e,Ne)}},{key:"attachMediaElement",value:function(_e){if(this._mediaElement=_e,_e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{_e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ne){}}},{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(_e){this._mediaElement.volume=_e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(_e){this._mediaElement.muted=_e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(_e){this._mediaElement?this._mediaElement.currentTime=_e:this._pendingSeekTime=_e}},{key:"mediaInfo",get:function(){var _e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Ne={mimeType:_e+this._mediaDataSource.type};return this._mediaElement&&(Ne.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Ne.width=this._mediaElement.videoWidth,Ne.height=this._mediaElement.videoHeight)),Ne}},{key:"statisticsInfo",get:function(){var _e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return _e;var Ne=!0,Ie=0,Ze=0;if(this._mediaElement.getVideoPlaybackQuality){var ct=this._mediaElement.getVideoPlaybackQuality();Ie=ct.totalVideoFrames,Ze=ct.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Ie=this._mediaElement.webkitDecodedFrameCount,Ze=this._mediaElement.webkitDroppedFrameCount):Ne=!1;return Ne&&(_e.decodedFrames=Ie,_e.droppedFrames=Ze),_e}},{key:"_onvLoadedMetadata",value:function(_e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Ae.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Ae.STATISTICS_INFO,this.statisticsInfo)}}]),Ft}(),Cn=Qr;v.install();function Fn(Ft,vt){var _e=Ft;if(_e==null||typeof _e!="object")throw new r("MediaDataSource must be an javascript object!");if(!_e.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(_e.type){case"flv":return new sr(_e,vt);default:return new Cn(_e,vt)}}function ti(){return se.supportMSEH264Playback()}function ki(){return se.getFeatureList()}var Dn={};Dn.createPlayer=Fn,Dn.isSupported=ti,Dn.getFeatureList=ki,Dn.BaseLoader=g,Dn.LoaderStatus=c,Dn.LoaderErrors=h,Dn.Events=Ae,Dn.ErrorTypes=gr,Dn.ErrorDetails=dn,Dn.FlvPlayer=sr,Dn.NativePlayer=Cn,Dn.LoggingControl=Re,Object.defineProperty(Dn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Bn=D.a=Dn},GVMX:function(k,D,i){var y=i("JEkh"),p=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"}});k.exports=p},GdRQ:function(k,D,i){"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(D,"__esModule",{value:!0}),D.isMac=c,D.isWindows=h,D.isIOS=g,D.isSafari=A,D.isIE=b,D.isEdge=w,D.isFirefox=x,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var p=v(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var T=new WeakMap;return S=function(){return T},T}function v(T){if(T&&T.__esModule)return T;if(T===null||y(T)!=="object"&&typeof T!="function")return{default:T};var _=S();if(_&&_.has(T))return _.get(T);var E={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in T)if(Object.prototype.hasOwnProperty.call(T,I)){var O=C?Object.getOwnPropertyDescriptor(T,I):null;O&&(O.get||O.set)?Object.defineProperty(E,I,O):E[I]=T[I]}return E.default=T,_&&_.set(T,E),E}var m="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;D.isTouchDevice=m,window.addEventListener("touchstart",function T(){D.isTouchDevice=m=!0,window.removeEventListener("touchstart",T,!1)},!1);var f=10*(window.devicePixelRatio||1);D.dragThreshold=f;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?(p.Info("Data URI scheme cursor supported"),d=!0):p.Warn("Data URI scheme cursor not supported")}catch(T){p.Error("Data URI scheme cursor test exception: "+T)}var o=d;D.supportsCursorURIs=o;var n=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),n=!0}catch(T){}var t=n;D.supportsImageMetadata=t;var a=!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 r=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),a=r!=0}catch(T){p.Error("Scrollbar test exception: "+T)}var s=a;D.hasScrollbarGutter=s;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 A(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function b(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function w(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function x(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(k,D,i){var y=i("bYtY"),p=i("6Ic6"),S=i("IwbS"),v=i("y+Vt"),m=i("sK/D"),f=m.createClipPath,d=["itemStyle"],u=["emphasis","itemStyle"],o=["color","color0","borderColor","borderColor0"],n=p.extend({type:"candlestick",render:function(A,b,w){this.group.removeClipPath(),this._updateDrawMode(A),this._isLargeDraw?this._renderLarge(A):this._renderNormal(A)},incrementalPrepareRender:function(A,b,w){this._clear(),this._updateDrawMode(A)},incrementalRender:function(A,b,w,x){this._isLargeDraw?this._incrementalRenderLarge(A,b):this._incrementalRenderNormal(A,b)},_updateDrawMode:function(A){var b=A.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(A){var b=A.getData(),w=this._data,x=this.group,T=b.getLayout("isSimpleBox"),_=A.get("clip",!0),E=A.coordinateSystem,C=E.getArea&&E.getArea();this._data||x.removeAll(),b.diff(w).add(function(I){if(b.hasValue(I)){var O,F=b.getItemLayout(I);if(_&&e(C,F))return;O=a(F,I,!0),S.initProps(O,{shape:{points:F.ends}},A,I),l(O,b,I,T),x.add(O),b.setItemGraphicEl(I,O)}}).update(function(I,O){var F=w.getItemGraphicEl(O);if(!b.hasValue(I)){x.remove(F);return}var R=b.getItemLayout(I);if(_&&e(C,R)){x.remove(F);return}F?S.updateProps(F,{shape:{points:R.ends}},A,I):F=a(R,I),l(F,b,I,T),x.add(F),b.setItemGraphicEl(I,F)}).remove(function(I){var O=w.getItemGraphicEl(I);O&&x.remove(O)}).execute(),this._data=b},_renderLarge:function(A){this._clear(),c(A,this.group);var b=A.get("clip",!0)?f(A.coordinateSystem,!1,A):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(A,b){for(var w=b.getData(),x=w.getLayout("isSimpleBox"),T;(T=A.next())!=null;){var _,E=w.getItemLayout(T);_=a(E,T),l(_,w,T,x),_.incremental=!0,this.group.add(_)}},_incrementalRenderLarge:function(A,b){c(b,this.group,!0)},remove:function(A){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=v.extend({type:"normalCandlestickBox",shape:{},buildPath:function(A,b){var w=b.points;this.__simpleBox?(A.moveTo(w[4][0],w[4][1]),A.lineTo(w[6][0],w[6][1])):(A.moveTo(w[0][0],w[0][1]),A.lineTo(w[1][0],w[1][1]),A.lineTo(w[2][0],w[2][1]),A.lineTo(w[3][0],w[3][1]),A.closePath(),A.moveTo(w[4][0],w[4][1]),A.lineTo(w[5][0],w[5][1]),A.moveTo(w[6][0],w[6][1]),A.lineTo(w[7][0],w[7][1]))}});function a(A,b,w){var x=A.ends;return new t({shape:{points:w?r(x,A):x},z2:100})}function e(A,b){for(var w=!0,x=0;x<b.ends.length;x++)if(A.contain(b.ends[x][0],b.ends[x][1])){w=!1;break}return w}function l(A,b,w,x){var T=b.getItemModel(w),_=T.getModel(d),E=b.getItemVisual(w,"color"),C=b.getItemVisual(w,"borderColor")||E,I=_.getItemStyle(o);A.useStyle(I),A.style.strokeNoScale=!0,A.style.fill=E,A.style.stroke=C,A.__simpleBox=x;var O=T.getModel(u).getItemStyle();S.setHoverStyle(A,O)}function r(A,b){return y.map(A,function(w){return w=w.slice(),w[1]=b.initBaseline,w})}var s=v.extend({type:"largeCandlestickBox",shape:{},buildPath:function(A,b){for(var w=b.points,x=0;x<w.length;)if(this.__sign===w[x++]){var T=w[x++];A.moveTo(T,w[x++]),A.lineTo(T,w[x++])}else x+=3}});function c(A,b,w){var x=A.getData(),T=x.getLayout("largePoints"),_=new s({shape:{points:T},__sign:1});b.add(_);var E=new s({shape:{points:T},__sign:-1});b.add(E),h(1,_,A,x),h(-1,E,A,x),w&&(_.incremental=!0,E.incremental=!0)}function h(A,b,w,x){var T=A>0?"P":"N",_=x.getVisual("borderColor"+T)||x.getVisual("color"+T),E=w.getModel(d).getItemStyle(o);b.useStyle(E),b.style.fill=null,b.style.stroke=_}var g=n;k.exports=g},Gev7:function(k,D,i){var y=i("bYtY"),p=i("K2GJ"),S=i("1bdT"),v=i("ni6a");function m(d){d=d||{},S.call(this,d);for(var u in d)d.hasOwnProperty(u)&&u!=="style"&&(this[u]=d[u]);this.style=new p(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,o){},getBoundingRect:function(){},contain:function(u,o){return this.rectContain(u,o)},traverse:function(u,o){u.call(o,this)},rectContain:function(u,o){var n=this.transformCoordToLocal(u,o),t=this.getBoundingRect();return t.contain(n[0],n[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,o){u!=="style"?S.prototype.attrKV.call(this,u,o):this.style.set(o)},setStyle:function(u,o){return this.style.set(u,o),this.dirty(!1),this},useStyle:function(u){return this.style=new p(u,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(m,S),y.mixin(m,v);var f=m;k.exports=f},GrNh:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("6Ic6");function v(n,t,a,e){var l=t.getData(),r=this.dataIndex,s=l.getName(r),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:n,name:s,seriesId:t.id}),l.each(function(h){m(l.getItemGraphicEl(h),l.getItemLayout(h),t.isSelected(l.getName(h)),c,a)})}function m(n,t,a,e,l){var r=(t.startAngle+t.endAngle)/2,s=Math.cos(r),c=Math.sin(r),h=a?e:0,g=[s*h,c*h];l?n.animate().when(200,{position:g}).start("bounceOut"):n.attr("position",g)}function f(n,t){p.Group.call(this);var a=new p.Sector({z2:2}),e=new p.Polyline,l=new p.Text;this.add(a),this.add(e),this.add(l),this.updateData(n,t,!0)}var d=f.prototype;d.updateData=function(n,t,a){var e=this.childAt(0),l=this.childAt(1),r=this.childAt(2),s=n.hostModel,c=n.getItemModel(t),h=n.getItemLayout(t),g=y.extend({},h);g.label=null;var A=s.getShallow("animationTypeUpdate");if(a){e.setShape(g);var b=s.getShallow("animationType");b==="scale"?(e.shape.r=h.r0,p.initProps(e,{shape:{r:h.r}},s,t)):(e.shape.endAngle=h.startAngle,p.updateProps(e,{shape:{endAngle:h.endAngle}},s,t))}else A==="expansion"?e.setShape(g):p.updateProps(e,{shape:g},s,t);var w=n.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:w},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var x=c.getShallow("cursor");x&&e.attr("cursor",x),m(this,n.getItemLayout(t),s.isSelected(n.getName(t)),s.get("selectedOffset"),s.get("animation"));var T=!a&&A==="transition";this._updateLabel(n,t,T),this.highDownOnUpdate=s.get("silent")?null:function(_,E){var C=s.isAnimationEnabled()&&c.get("hoverAnimation");E==="emphasis"?(l.ignore=l.hoverIgnore,r.ignore=r.hoverIgnore,C&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r+s.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,r.ignore=r.normalIgnore,C&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r}},300,"elasticOut")))},p.setHoverStyle(this)},d._updateLabel=function(n,t,a){var e=this.childAt(1),l=this.childAt(2),r=n.hostModel,s=n.getItemModel(t),c=n.getItemLayout(t),h=c.label,g=n.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 A={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},b={x:h.x,y:h.y};a?(p.updateProps(e,{shape:A},r,t),p.updateProps(l,{style:b},r,t)):(e.attr({shape:A}),l.attr({style:b})),l.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var w=s.getModel("label"),x=s.getModel("emphasis.label"),T=s.getModel("labelLine"),_=s.getModel("emphasis.labelLine"),g=n.getItemVisual(t,"color");p.setLabelStyle(l.style,l.hoverStyle={},w,x,{labelFetcher:n.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:g,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:n.getItemVisual(t,"opacity")}),l.ignore=l.normalIgnore=!w.get("show"),l.hoverIgnore=!x.get("show"),e.ignore=e.normalIgnore=!T.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:g,opacity:n.getItemVisual(t,"opacity")}),e.setStyle(T.getModel("lineStyle").getLineStyle()),e.hoverStyle=_.getModel("lineStyle").getLineStyle();var E=T.get("smooth");E&&E===!0&&(E=.4),e.setShape({smooth:E})},y.inherits(f,p.Group);var u=S.extend({type:"pie",init:function(){var n=new p.Group;this._sectorGroup=n},render:function(n,t,a,e){if(e&&e.from===this.uid)return;var l=n.getData(),r=this._data,s=this.group,c=t.get("animation"),h=!r,g=n.get("animationType"),A=n.get("animationTypeUpdate"),b=y.curry(v,this.uid,n,c,a),w=n.get("selectedMode");if(l.diff(r).add(function(C){var I=new f(l,C);h&&g!=="scale"&&I.eachChild(function(O){O.stopAnimation(!0)}),w&&I.on("click",b),l.setItemGraphicEl(C,I),s.add(I)}).update(function(C,I){var O=r.getItemGraphicEl(I);!h&&A!=="transition"&&O.eachChild(function(F){F.stopAnimation(!0)}),O.updateData(l,C),O.off("click"),w&&O.on("click",b),s.add(O),l.setItemGraphicEl(C,O)}).remove(function(C){var I=r.getItemGraphicEl(C);s.remove(I)}).execute(),c&&l.count()>0&&(h?g!=="scale":A!=="transition")){for(var x=l.getItemLayout(0),T=1;isNaN(x.startAngle)&&T<l.count();++T)x=l.getItemLayout(T);var _=Math.max(a.getWidth(),a.getHeight())/2,E=y.bind(s.removeClipPath,s);s.setClipPath(this._createClipPath(x.cx,x.cy,_,x.startAngle,x.clockwise,E,n,h))}else s.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(n,t,a,e,l,r,s,c){var h=new p.Sector({shape:{cx:n,cy:t,r0:0,r:a,startAngle:e,endAngle:e,clockwise:l}}),g=c?p.initProps:p.updateProps;return g(h,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},s,r),h},containPoint:function(n,t){var a=t.getData(),e=a.getItemLayout(0);if(e){var l=n[0]-e.cx,r=n[1]-e.cy,s=Math.sqrt(l*l+r*r);return s<=e.r&&s>=e.r0}}}),o=u;k.exports=o},Gytx:function(k,D){k.exports=function(y,p,S,v){var m=S?S.call(v,y,p):void 0;if(m!==void 0)return!!m;if(y===p)return!0;if(typeof y!="object"||!y||typeof p!="object"||!p)return!1;var f=Object.keys(y),d=Object.keys(p);if(f.length!==d.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(p),o=0;o<f.length;o++){var n=f[o];if(!u(n))return!1;var t=y[n],a=p[n];if(m=S?S.call(v,t,a,n):void 0,m===!1||m===void 0&&t!==a)return!1}return!0}},GzdX:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("q1tI"),v=i.n(S),m=i("rePB"),f=i("1OyB"),d=i("vuIU"),u=i("Ji7U"),o=i("md7G"),n=i("foSv"),t=i("m+aA"),a=i("TSYQ"),e=i.n(a),l=i("4IlW");function r(z){var W=z.pageXOffset,H="scrollLeft";if(typeof W!="number"){var V=z.document;W=V.documentElement[H],typeof W!="number"&&(W=V.body[H])}return W}function s(z){var W,H,V=z.ownerDocument,Q=V.body,G=V&&V.documentElement,ee=z.getBoundingClientRect();return W=ee.left,H=ee.top,W-=G.clientLeft||Q.clientLeft||0,H-=G.clientTop||Q.clientTop||0,{left:W,top:H}}function c(z){var W=s(z),H=z.ownerDocument,V=H.defaultView||H.parentWindow;return W.left+=r(V),W.left}function h(z){var W=g();return function(){var V=Object(n.a)(z),Q;if(W){var G=Object(n.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(o.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(z){return!1}}var A=function(z){Object(u.a)(H,z);var W=h(H);function H(){var V;return Object(f.a)(this,H),V=W.apply(this,arguments),V.onHover=function(Q){var G=V.props,ee=G.onHover,q=G.index;ee(Q,q)},V.onClick=function(Q){var G=V.props,ee=G.onClick,q=G.index;ee(Q,q)},V.onKeyDown=function(Q){var G=V.props,ee=G.onClick,q=G.index;Q.keyCode===13&&ee(Q,q)},V}return Object(d.a)(H,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,ee=Q.index,q=Q.value,se=Q.allowHalf,re=Q.focused,Ae=ee+1,Te=G;return q===0&&ee===0&&re?Te+=" ".concat(G,"-focused"):se&&q+.5>=Ae&&q<Ae?(Te+=" ".concat(G,"-half ").concat(G,"-active"),re&&(Te+=" ".concat(G,"-focused"))):(Te+=Ae<=q?" ".concat(G,"-full"):" ".concat(G,"-zero"),Ae===q&&re&&(Te+=" ".concat(G,"-focused"))),Te}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,ee=this.onKeyDown,q=this.props,se=q.disabled,re=q.prefixCls,Ae=q.character,Te=q.characterRender,Re=q.index,Ge=q.count,Ue=q.value,nt=typeof Ae=="function"?Ae(this.props):Ae,Le=v.a.createElement("li",{className:this.getClassName()},v.a.createElement("div",{onClick:se?null:G,onKeyDown:se?null:ee,onMouseMove:se?null:Q,role:"radio","aria-checked":Ue>Re?"true":"false","aria-posinset":Re+1,"aria-setsize":Ge,tabIndex:se?-1:0},v.a.createElement("div",{className:"".concat(re,"-first")},nt),v.a.createElement("div",{className:"".concat(re,"-second")},nt)));return Te&&(Le=Te(Le,this.props)),Le}}]),H}(v.a.Component);function b(z,W){var H=Object.keys(z);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(z);W&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(z,Q).enumerable})),H.push.apply(H,V)}return H}function w(z){for(var W=1;W<arguments.length;W++){var H=arguments[W]!=null?arguments[W]:{};W%2?b(Object(H),!0).forEach(function(V){Object(m.a)(z,V,H[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(H)):b(Object(H)).forEach(function(V){Object.defineProperty(z,V,Object.getOwnPropertyDescriptor(H,V))})}return z}function x(z){var W=T();return function(){var V=Object(n.a)(z),Q;if(W){var G=Object(n.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(o.a)(this,Q)}}function T(){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(z){return!1}}function _(){}var E=function(z){Object(u.a)(H,z);var W=x(H);function H(V){var Q;Object(f.a)(this,H),Q=W.call(this,V),Q.onHover=function(ee,q){var se=Q.props.onHoverChange,re=Q.getStarValue(q,ee.pageX),Ae=Q.state.cleanedValue;re!==Ae&&Q.setState({hoverValue:re,cleanedValue:null}),se(re)},Q.onMouseLeave=function(){var ee=Q.props.onHoverChange;Q.setState({hoverValue:void 0,cleanedValue:null}),ee(void 0)},Q.onClick=function(ee,q){var se=Q.props.allowClear,re=Q.state.value,Ae=Q.getStarValue(q,ee.pageX),Te=!1;se&&(Te=Ae===re),Q.onMouseLeave(),Q.changeValue(Te?0:Ae),Q.setState({cleanedValue:Te?Ae: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 q=ee.keyCode,se=Q.props,re=se.count,Ae=se.allowHalf,Te=se.onKeyDown,Re=se.direction,Ge=Re==="rtl",Ue=Q.state.value;q===l.a.RIGHT&&Ue<re&&!Ge?(Ae?Ue+=.5:Ue+=1,Q.changeValue(Ue),ee.preventDefault()):q===l.a.LEFT&&Ue>0&&!Ge||q===l.a.RIGHT&&Ue>0&&Ge?(Ae?Ue-=.5:Ue-=1,Q.changeValue(Ue),ee.preventDefault()):q===l.a.LEFT&&Ue<re&&Ge&&(Ae?Ue+=.5:Ue+=1,Q.changeValue(Ue),ee.preventDefault()),Te&&Te(ee)},Q.saveRef=function(ee){return function(q){Q.stars[ee]=q}},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)(H,[{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,q=ee.allowHalf,se=ee.direction,re=se==="rtl",Ae=Q+1;if(q){var Te=this.getStarDOM(Q),Re=c(Te),Ge=Te.clientWidth;(re&&G-Re>Ge/2||!re&&G-Re<Ge/2)&&(Ae-=.5)}return Ae}},{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,q=Q.style,se=Q.prefixCls,re=Q.disabled,Ae=Q.className,Te=Q.character,Re=Q.characterRender,Ge=Q.tabIndex,Ue=Q.direction,nt=this.state,Le=nt.value,le=nt.hoverValue,Xe=nt.focused,pe=[],Z=re?"".concat(se,"-disabled"):"",Y=0;Y<G;Y+=1)pe.push(v.a.createElement(A,{ref:this.saveRef(Y),index:Y,count:G,disabled:re,prefixCls:"".concat(se,"-star"),allowHalf:ee,value:le===void 0?Le:le,onClick:this.onClick,onHover:this.onHover,key:Y,character:Te,characterRender:Re,focused:Xe}));var ne=e()(se,Z,Ae,Object(m.a)({},"".concat(se,"-rtl"),Ue==="rtl"));return v.a.createElement("ul",{className:ne,style:q,onMouseLeave:re?null:this.onMouseLeave,tabIndex:re?-1:Ge,onFocus:re?null:this.onFocus,onBlur:re?null:this.onBlur,onKeyDown:re?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},pe)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?w(w({},G),{},{value:Q.value}):G}}]),H}(v.a.Component);E.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var C=E,I=C,O=i("Lerx"),F=i.n(O),R=i("3S7+"),B=i("H84U"),P=function(z,W){var H={};for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&W.indexOf(V)<0&&(H[V]=z[V]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(z);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(z,V[Q])&&(H[V[Q]]=z[V[Q]]);return H},X=S.forwardRef(function(z,W){var H=z.prefixCls,V=z.tooltips,Q=P(z,["prefixCls","tooltips"]),G=function(Te,Re){var Ge=Re.index;return V?S.createElement(R.a,{title:V[Ge]},Te):Te},ee=S.useContext(B.b),q=ee.getPrefixCls,se=ee.direction,re=q("rate",H);return S.createElement(I,p()({ref:W,characterRender:G},Q,{prefixCls:re,direction:se}))});X.displayName="Rate",X.defaultProps={character:S.createElement(F.a,null)};var M=D.a=X},H38U:function(k,D,i){var y=i("f4xo"),p=i("rcnY"),S=i("wU8J"),v=i("Iq15"),m=i("dWSS");function f(u,o){this.typeNumber=u,this.errorCorrectLevel=o,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var d=f.prototype;d.addData=function(u){var o=new y(u);this.dataList.push(o),this.dataCache=null},d.isDark=function(u,o){if(u<0||this.moduleCount<=u||o<0||this.moduleCount<=o)throw new Error(u+","+o);return this.modules[u][o]},d.getModuleCount=function(){return this.moduleCount},d.make=function(){if(this.typeNumber<1){var u=1;for(u=1;u<40;u++){for(var o=p.getRSBlocks(u,this.errorCorrectLevel),n=new S,t=0,a=0;a<o.length;a++)t+=o[a].dataCount;for(var a=0;a<this.dataList.length;a++){var e=this.dataList[a];n.put(e.mode,4),n.put(e.getLength(),v.getLengthInBits(e.mode,u)),e.write(n)}if(n.getLengthInBits()<=t*8)break}this.typeNumber=u}this.makeImpl(!1,this.getBestMaskPattern())},d.makeImpl=function(u,o){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++)this.modules[n][t]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(u,o),this.typeNumber>=7&&this.setupTypeNumber(u),this.dataCache==null&&(this.dataCache=f.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,o)},d.setupPositionProbePattern=function(u,o){for(var n=-1;n<=7;n++){if(u+n<=-1||this.moduleCount<=u+n)continue;for(var t=-1;t<=7;t++){if(o+t<=-1||this.moduleCount<=o+t)continue;0<=n&&n<=6&&(t==0||t==6)||0<=t&&t<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=t&&t<=4?this.modules[u+n][o+t]=!0:this.modules[u+n][o+t]=!1}}},d.getBestMaskPattern=function(){for(var u=0,o=0,n=0;n<8;n++){this.makeImpl(!0,n);var t=v.getLostPoint(this);(n==0||u>t)&&(u=t,o=n)}return o},d.createMovieClip=function(u,o,n){var t=u.createEmptyMovieClip(o,n),a=1;this.make();for(var e=0;e<this.modules.length;e++)for(var l=e*a,r=0;r<this.modules[e].length;r++){var s=r*a,c=this.modules[e][r];c&&(t.beginFill(0,100),t.moveTo(s,l),t.lineTo(s+a,l),t.lineTo(s+a,l+a),t.lineTo(s,l+a),t.endFill())}return t},d.setupTimingPattern=function(){for(var u=8;u<this.moduleCount-8;u++){if(this.modules[u][6]!=null)continue;this.modules[u][6]=u%2==0}for(var o=8;o<this.moduleCount-8;o++){if(this.modules[6][o]!=null)continue;this.modules[6][o]=o%2==0}},d.setupPositionAdjustPattern=function(){for(var u=v.getPatternPosition(this.typeNumber),o=0;o<u.length;o++)for(var n=0;n<u.length;n++){var t=u[o],a=u[n];if(this.modules[t][a]!=null)continue;for(var e=-2;e<=2;e++)for(var l=-2;l<=2;l++)e==-2||e==2||l==-2||l==2||e==0&&l==0?this.modules[t+e][a+l]=!0:this.modules[t+e][a+l]=!1}},d.setupTypeNumber=function(u){for(var o=v.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var t=!u&&(o>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=t}for(var n=0;n<18;n++){var t=!u&&(o>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=t}},d.setupTypeInfo=function(u,o){for(var n=this.errorCorrectLevel<<3|o,t=v.getBCHTypeInfo(n),a=0;a<15;a++){var e=!u&&(t>>a&1)==1;a<6?this.modules[a][8]=e:a<8?this.modules[a+1][8]=e:this.modules[this.moduleCount-15+a][8]=e}for(var a=0;a<15;a++){var e=!u&&(t>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=e:a<9?this.modules[8][15-a-1+1]=e:this.modules[8][15-a-1]=e}this.modules[this.moduleCount-8][8]=!u},d.mapData=function(u,o){for(var n=-1,t=this.moduleCount-1,a=7,e=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var r=0;r<2;r++)if(this.modules[t][l-r]==null){var s=!1;e<u.length&&(s=(u[e]>>>a&1)==1);var c=v.getMask(o,t,l-r);c&&(s=!s),this.modules[t][l-r]=s,a--,a==-1&&(e++,a=7)}if(t+=n,t<0||this.moduleCount<=t){t-=n,n=-n;break}}},f.PAD0=236,f.PAD1=17,f.createData=function(u,o,n){for(var t=p.getRSBlocks(u,o),a=new S,e=0;e<n.length;e++){var l=n[e];a.put(l.mode,4),a.put(l.getLength(),v.getLengthInBits(l.mode,u)),l.write(a)}for(var r=0,e=0;e<t.length;e++)r+=t[e].dataCount;if(a.getLengthInBits()>r*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+r*8+")");for(a.getLengthInBits()+4<=r*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=r*8);){if(a.put(f.PAD0,8),a.getLengthInBits()>=r*8)break;a.put(f.PAD1,8)}return f.createBytes(a,t)},f.createBytes=function(u,o){for(var n=0,t=0,a=0,e=new Array(o.length),l=new Array(o.length),r=0;r<o.length;r++){var s=o[r].dataCount,c=o[r].totalCount-s;t=Math.max(t,s),a=Math.max(a,c),e[r]=new Array(s);for(var h=0;h<e[r].length;h++)e[r][h]=255&u.buffer[h+n];n+=s;var g=v.getErrorCorrectPolynomial(c),A=new m(e[r],g.getLength()-1),b=A.mod(g);l[r]=new Array(g.getLength()-1);for(var h=0;h<l[r].length;h++){var w=h+b.getLength()-l[r].length;l[r][h]=w>=0?b.get(w):0}}for(var x=0,h=0;h<o.length;h++)x+=o[h].totalCount;for(var T=new Array(x),_=0,h=0;h<t;h++)for(var r=0;r<o.length;r++)h<e[r].length&&(T[_++]=e[r][h]);for(var h=0;h<a;h++)for(var r=0;r<o.length;r++)h<l[r].length&&(T[_++]=l[r][h]);return T},k.exports=f},H6uX:function(k,D){var i=Array.prototype.slice,y=function(f){this._$handlers={},this._$eventProcessor=f};y.prototype={constructor:y,one:function(f,d,u,o){return S(this,f,d,u,o,!0)},on:function(f,d,u,o){return S(this,f,d,u,o,!1)},isSilent:function(f){var d=this._$handlers;return!d[f]||!d[f].length},off:function(f,d){var u=this._$handlers;if(!f)return this._$handlers={},this;if(d){if(u[f]){for(var o=[],n=0,t=u[f].length;n<t;n++)u[f][n].h!==d&&o.push(u[f][n]);u[f]=o}u[f]&&u[f].length===0&&delete u[f]}else delete u[f];return this},trigger:function(f){var d=this._$handlers[f],u=this._$eventProcessor;if(d){var o=arguments,n=o.length;n>3&&(o=i.call(o,1));for(var t=d.length,a=0;a<t;){var e=d[a];if(u&&u.filter&&e.query!=null&&!u.filter(f,e.query)){a++;continue}switch(n){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,o[1]);break;case 3:e.h.call(e.ctx,o[1],o[2]);break;default:e.h.apply(e.ctx,o);break}e.one?(d.splice(a,1),t--):a++}}return u&&u.afterTrigger&&u.afterTrigger(f),this},triggerWithContext:function(f){var d=this._$handlers[f],u=this._$eventProcessor;if(d){var o=arguments,n=o.length;n>4&&(o=i.call(o,1,o.length-1));for(var t=o[o.length-1],a=d.length,e=0;e<a;){var l=d[e];if(u&&u.filter&&l.query!=null&&!u.filter(f,l.query)){e++;continue}switch(n){case 1:l.h.call(t);break;case 2:l.h.call(t,o[1]);break;case 3:l.h.call(t,o[1],o[2]);break;default:l.h.apply(t,o);break}l.one?(d.splice(e,1),a--):e++}}return u&&u.afterTrigger&&u.afterTrigger(f),this}};function p(m,f){var d=m._$eventProcessor;return f!=null&&d&&d.normalizeQuery&&(f=d.normalizeQuery(f)),f}function S(m,f,d,u,o,n){var t=m._$handlers;if(typeof d=="function"&&(o=u,u=d,d=null),!u||!f)return m;d=p(m,d),t[f]||(t[f]=[]);for(var a=0;a<t[f].length;a++)if(t[f][a].h===u)return m;var e={h:u,one:n,query:d,ctx:o||m,callAtLast:u.zrEventfulCallAtLast},l=t[f].length-1,r=t[f][l];return r&&r.callAtLast?t[f].splice(l,0,e):t[f].push(e),m}var v=y;k.exports=v},H7XF:function(k,D,i){"use strict";D.byteLength=u,D.toByteArray=n,D.fromByteArray=e;for(var y=[],p=[],S=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=v.length;m<f;++m)y[m]=v[m],p[v.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function d(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=l.indexOf("=");s===-1&&(s=r);var c=s===r?0:4-s%4;return[s,c]}function u(l){var r=d(l),s=r[0],c=r[1];return(s+c)*3/4-c}function o(l,r,s){return(r+s)*3/4-s}function n(l){var r,s=d(l),c=s[0],h=s[1],g=new S(o(l,c,h)),A=0,b=h>0?c-4:c,w;for(w=0;w<b;w+=4)r=p[l.charCodeAt(w)]<<18|p[l.charCodeAt(w+1)]<<12|p[l.charCodeAt(w+2)]<<6|p[l.charCodeAt(w+3)],g[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=p[l.charCodeAt(w)]<<2|p[l.charCodeAt(w+1)]>>4,g[A++]=r&255),h===1&&(r=p[l.charCodeAt(w)]<<10|p[l.charCodeAt(w+1)]<<4|p[l.charCodeAt(w+2)]>>2,g[A++]=r>>8&255,g[A++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function a(l,r,s){for(var c,h=[],g=r;g<s;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 r,s=l.length,c=s%3,h=[],g=16383,A=0,b=s-c;A<b;A+=g)h.push(a(l,A,A+g>b?b:A+g));return c===1?(r=l[s-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[s-2]<<8)+l[s-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},H8j4:function(k,D,i){var y=i("QkVE");function p(S,v){var m=y(this,S),f=m.size;return m.set(S,v),this.size+=m.size==f?0:1,this}k.exports=p},HBhm:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},HDXh:function(k,D,i){"use strict";(function(y){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var p=i("H7XF"),S=i("kVK+"),v=i("49sm");D.Buffer=u,D.SlowBuffer=h,D.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:m(),D.kMaxLength=f();function m(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(Z){return!1}}function f(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(pe,Z){if(f()<Z)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(Z),pe.__proto__=u.prototype):(pe===null&&(pe=new u(Z)),pe.length=Z),pe}function u(pe,Z,Y){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(pe,Z,Y);if(typeof pe=="number"){if(typeof Z=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,pe)}return o(this,pe,Z,Y)}u.poolSize=8192,u._augment=function(pe){return pe.__proto__=u.prototype,pe};function o(pe,Z,Y,ne){if(typeof Z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Z instanceof ArrayBuffer?r(pe,Z,Y,ne):typeof Z=="string"?e(pe,Z,Y):s(pe,Z)}u.from=function(pe,Z,Y){return o(null,pe,Z,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 n(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function t(pe,Z,Y,ne){return n(Z),Z<=0?d(pe,Z):Y!==void 0?typeof ne=="string"?d(pe,Z).fill(Y,ne):d(pe,Z).fill(Y):d(pe,Z)}u.alloc=function(pe,Z,Y){return t(null,pe,Z,Y)};function a(pe,Z){if(n(Z),pe=d(pe,Z<0?0:c(Z)|0),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<Z;++Y)pe[Y]=0;return pe}u.allocUnsafe=function(pe){return a(null,pe)},u.allocUnsafeSlow=function(pe){return a(null,pe)};function e(pe,Z,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!u.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var ne=g(Z,Y)|0;pe=d(pe,ne);var ce=pe.write(Z,Y);return ce!==ne&&(pe=pe.slice(0,ce)),pe}function l(pe,Z){var Y=Z.length<0?0:c(Z.length)|0;pe=d(pe,Y);for(var ne=0;ne<Y;ne+=1)pe[ne]=Z[ne]&255;return pe}function r(pe,Z,Y,ne){if(Z.byteLength,Y<0||Z.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(Z.byteLength<Y+(ne||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&ne===void 0?Z=new Uint8Array(Z):ne===void 0?Z=new Uint8Array(Z,Y):Z=new Uint8Array(Z,Y,ne),u.TYPED_ARRAY_SUPPORT?(pe=Z,pe.__proto__=u.prototype):pe=l(pe,Z),pe}function s(pe,Z){if(u.isBuffer(Z)){var Y=c(Z.length)|0;return pe=d(pe,Y),pe.length===0||Z.copy(pe,0,0,Y),pe}if(Z){if(typeof ArrayBuffer!="undefined"&&Z.buffer instanceof ArrayBuffer||"length"in Z)return typeof Z.length!="number"||Xe(Z.length)?d(pe,0):l(pe,Z);if(Z.type==="Buffer"&&v(Z.data))return l(pe,Z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(pe){if(pe>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return pe|0}function h(pe){return+pe!=pe&&(pe=0),u.alloc(+pe)}u.isBuffer=function(Z){return!!(Z!=null&&Z._isBuffer)},u.compare=function(Z,Y){if(!u.isBuffer(Z)||!u.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(Z===Y)return 0;for(var ne=Z.length,ce=Y.length,ye=0,Ee=Math.min(ne,ce);ye<Ee;++ye)if(Z[ye]!==Y[ye]){ne=Z[ye],ce=Y[ye];break}return ne<ce?-1:ce<ne?1:0},u.isEncoding=function(Z){switch(String(Z).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(Z,Y){if(!v(Z))throw new TypeError('"list" argument must be an Array of Buffers');if(Z.length===0)return u.alloc(0);var ne;if(Y===void 0)for(Y=0,ne=0;ne<Z.length;++ne)Y+=Z[ne].length;var ce=u.allocUnsafe(Y),ye=0;for(ne=0;ne<Z.length;++ne){var Ee=Z[ne];if(!u.isBuffer(Ee))throw new TypeError('"list" argument must be an Array of Buffers');Ee.copy(ce,ye),ye+=Ee.length}return ce};function g(pe,Z){if(u.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var Y=pe.length;if(Y===0)return 0;for(var ne=!1;;)switch(Z){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Ge(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Le(pe).length;default:if(ne)return Ge(pe).length;Z=(""+Z).toLowerCase(),ne=!0}}u.byteLength=g;function A(pe,Z,Y){var ne=!1;if((Z===void 0||Z<0)&&(Z=0),Z>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,Z>>>=0,Y<=Z)return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return z(this,Z,Y);case"utf8":case"utf-8":return R(this,Z,Y);case"ascii":return X(this,Z,Y);case"latin1":case"binary":return M(this,Z,Y);case"base64":return F(this,Z,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,Z,Y);default:if(ne)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),ne=!0}}u.prototype._isBuffer=!0;function b(pe,Z,Y){var ne=pe[Z];pe[Z]=pe[Y],pe[Y]=ne}u.prototype.swap16=function(){var Z=this.length;if(Z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<Z;Y+=2)b(this,Y,Y+1);return this},u.prototype.swap32=function(){var Z=this.length;if(Z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<Z;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},u.prototype.swap64=function(){var Z=this.length;if(Z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<Z;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 Z=this.length|0;return Z===0?"":arguments.length===0?R(this,0,Z):A.apply(this,arguments)},u.prototype.equals=function(Z){if(!u.isBuffer(Z))throw new TypeError("Argument must be a Buffer");return this===Z?!0:u.compare(this,Z)===0},u.prototype.inspect=function(){var Z="",Y=D.INSPECT_MAX_BYTES;return this.length>0&&(Z=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(Z+=" ... ")),"<Buffer "+Z+">"},u.prototype.compare=function(Z,Y,ne,ce,ye){if(!u.isBuffer(Z))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ne===void 0&&(ne=Z?Z.length:0),ce===void 0&&(ce=0),ye===void 0&&(ye=this.length),Y<0||ne>Z.length||ce<0||ye>this.length)throw new RangeError("out of range index");if(ce>=ye&&Y>=ne)return 0;if(ce>=ye)return-1;if(Y>=ne)return 1;if(Y>>>=0,ne>>>=0,ce>>>=0,ye>>>=0,this===Z)return 0;for(var Ee=ye-ce,Ce=ne-Y,ue=Math.min(Ee,Ce),ge=this.slice(ce,ye),Oe=Z.slice(Y,ne),Je=0;Je<ue;++Je)if(ge[Je]!==Oe[Je]){Ee=ge[Je],Ce=Oe[Je];break}return Ee<Ce?-1:Ce<Ee?1:0};function w(pe,Z,Y,ne,ce){if(pe.length===0)return-1;if(typeof Y=="string"?(ne=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=ce?0:pe.length-1),Y<0&&(Y=pe.length+Y),Y>=pe.length){if(ce)return-1;Y=pe.length-1}else if(Y<0)if(ce)Y=0;else return-1;if(typeof Z=="string"&&(Z=u.from(Z,ne)),u.isBuffer(Z))return Z.length===0?-1:x(pe,Z,Y,ne,ce);if(typeof Z=="number")return Z=Z&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(pe,Z,Y):Uint8Array.prototype.lastIndexOf.call(pe,Z,Y):x(pe,[Z],Y,ne,ce);throw new TypeError("val must be string, number or Buffer")}function x(pe,Z,Y,ne,ce){var ye=1,Ee=pe.length,Ce=Z.length;if(ne!==void 0&&(ne=String(ne).toLowerCase(),ne==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(pe.length<2||Z.length<2)return-1;ye=2,Ee/=2,Ce/=2,Y/=2}function ue(tt,ke){return ye===1?tt[ke]:tt.readUInt16BE(ke*ye)}var ge;if(ce){var Oe=-1;for(ge=Y;ge<Ee;ge++)if(ue(pe,ge)===ue(Z,Oe===-1?0:ge-Oe)){if(Oe===-1&&(Oe=ge),ge-Oe+1===Ce)return Oe*ye}else Oe!==-1&&(ge-=ge-Oe),Oe=-1}else for(Y+Ce>Ee&&(Y=Ee-Ce),ge=Y;ge>=0;ge--){for(var Je=!0,lt=0;lt<Ce;lt++)if(ue(pe,ge+lt)!==ue(Z,lt)){Je=!1;break}if(Je)return ge}return-1}u.prototype.includes=function(Z,Y,ne){return this.indexOf(Z,Y,ne)!==-1},u.prototype.indexOf=function(Z,Y,ne){return w(this,Z,Y,ne,!0)},u.prototype.lastIndexOf=function(Z,Y,ne){return w(this,Z,Y,ne,!1)};function T(pe,Z,Y,ne){Y=Number(Y)||0;var ce=pe.length-Y;ne?(ne=Number(ne),ne>ce&&(ne=ce)):ne=ce;var ye=Z.length;if(ye%2!==0)throw new TypeError("Invalid hex string");ne>ye/2&&(ne=ye/2);for(var Ee=0;Ee<ne;++Ee){var Ce=parseInt(Z.substr(Ee*2,2),16);if(isNaN(Ce))return Ee;pe[Y+Ee]=Ce}return Ee}function _(pe,Z,Y,ne){return le(Ge(Z,pe.length-Y),pe,Y,ne)}function E(pe,Z,Y,ne){return le(Ue(Z),pe,Y,ne)}function C(pe,Z,Y,ne){return E(pe,Z,Y,ne)}function I(pe,Z,Y,ne){return le(Le(Z),pe,Y,ne)}function O(pe,Z,Y,ne){return le(nt(Z,pe.length-Y),pe,Y,ne)}u.prototype.write=function(Z,Y,ne,ce){if(Y===void 0)ce="utf8",ne=this.length,Y=0;else if(ne===void 0&&typeof Y=="string")ce=Y,ne=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(ne)?(ne=ne|0,ce===void 0&&(ce="utf8")):(ce=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ye=this.length-Y;if((ne===void 0||ne>ye)&&(ne=ye),Z.length>0&&(ne<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var Ee=!1;;)switch(ce){case"hex":return T(this,Z,Y,ne);case"utf8":case"utf-8":return _(this,Z,Y,ne);case"ascii":return E(this,Z,Y,ne);case"latin1":case"binary":return C(this,Z,Y,ne);case"base64":return I(this,Z,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,Z,Y,ne);default:if(Ee)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),Ee=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(pe,Z,Y){return Z===0&&Y===pe.length?p.fromByteArray(pe):p.fromByteArray(pe.slice(Z,Y))}function R(pe,Z,Y){Y=Math.min(pe.length,Y);for(var ne=[],ce=Z;ce<Y;){var ye=pe[ce],Ee=null,Ce=ye>239?4:ye>223?3:ye>191?2:1;if(ce+Ce<=Y){var ue,ge,Oe,Je;switch(Ce){case 1:ye<128&&(Ee=ye);break;case 2:ue=pe[ce+1],(ue&192)===128&&(Je=(ye&31)<<6|ue&63,Je>127&&(Ee=Je));break;case 3:ue=pe[ce+1],ge=pe[ce+2],(ue&192)===128&&(ge&192)===128&&(Je=(ye&15)<<12|(ue&63)<<6|ge&63,Je>2047&&(Je<55296||Je>57343)&&(Ee=Je));break;case 4:ue=pe[ce+1],ge=pe[ce+2],Oe=pe[ce+3],(ue&192)===128&&(ge&192)===128&&(Oe&192)===128&&(Je=(ye&15)<<18|(ue&63)<<12|(ge&63)<<6|Oe&63,Je>65535&&Je<1114112&&(Ee=Je))}}Ee===null?(Ee=65533,Ce=1):Ee>65535&&(Ee-=65536,ne.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),ne.push(Ee),ce+=Ce}return P(ne)}var B=4096;function P(pe){var Z=pe.length;if(Z<=B)return String.fromCharCode.apply(String,pe);for(var Y="",ne=0;ne<Z;)Y+=String.fromCharCode.apply(String,pe.slice(ne,ne+=B));return Y}function X(pe,Z,Y){var ne="";Y=Math.min(pe.length,Y);for(var ce=Z;ce<Y;++ce)ne+=String.fromCharCode(pe[ce]&127);return ne}function M(pe,Z,Y){var ne="";Y=Math.min(pe.length,Y);for(var ce=Z;ce<Y;++ce)ne+=String.fromCharCode(pe[ce]);return ne}function z(pe,Z,Y){var ne=pe.length;(!Z||Z<0)&&(Z=0),(!Y||Y<0||Y>ne)&&(Y=ne);for(var ce="",ye=Z;ye<Y;++ye)ce+=Re(pe[ye]);return ce}function W(pe,Z,Y){for(var ne=pe.slice(Z,Y),ce="",ye=0;ye<ne.length;ye+=2)ce+=String.fromCharCode(ne[ye]+ne[ye+1]*256);return ce}u.prototype.slice=function(Z,Y){var ne=this.length;Z=~~Z,Y=Y===void 0?ne:~~Y,Z<0?(Z+=ne,Z<0&&(Z=0)):Z>ne&&(Z=ne),Y<0?(Y+=ne,Y<0&&(Y=0)):Y>ne&&(Y=ne),Y<Z&&(Y=Z);var ce;if(u.TYPED_ARRAY_SUPPORT)ce=this.subarray(Z,Y),ce.__proto__=u.prototype;else{var ye=Y-Z;ce=new u(ye,void 0);for(var Ee=0;Ee<ye;++Ee)ce[Ee]=this[Ee+Z]}return ce};function H(pe,Z,Y){if(pe%1!==0||pe<0)throw new RangeError("offset is not uint");if(pe+Z>Y)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=this[Z],ye=1,Ee=0;++Ee<Y&&(ye*=256);)ce+=this[Z+Ee]*ye;return ce},u.prototype.readUIntBE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=this[Z+--Y],ye=1;Y>0&&(ye*=256);)ce+=this[Z+--Y]*ye;return ce},u.prototype.readUInt8=function(Z,Y){return Y||H(Z,1,this.length),this[Z]},u.prototype.readUInt16LE=function(Z,Y){return Y||H(Z,2,this.length),this[Z]|this[Z+1]<<8},u.prototype.readUInt16BE=function(Z,Y){return Y||H(Z,2,this.length),this[Z]<<8|this[Z+1]},u.prototype.readUInt32LE=function(Z,Y){return Y||H(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+this[Z+3]*16777216},u.prototype.readUInt32BE=function(Z,Y){return Y||H(Z,4,this.length),this[Z]*16777216+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},u.prototype.readIntLE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=this[Z],ye=1,Ee=0;++Ee<Y&&(ye*=256);)ce+=this[Z+Ee]*ye;return ye*=128,ce>=ye&&(ce-=Math.pow(2,8*Y)),ce},u.prototype.readIntBE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=Y,ye=1,Ee=this[Z+--ce];ce>0&&(ye*=256);)Ee+=this[Z+--ce]*ye;return ye*=128,Ee>=ye&&(Ee-=Math.pow(2,8*Y)),Ee},u.prototype.readInt8=function(Z,Y){return Y||H(Z,1,this.length),this[Z]&128?(255-this[Z]+1)*-1:this[Z]},u.prototype.readInt16LE=function(Z,Y){Y||H(Z,2,this.length);var ne=this[Z]|this[Z+1]<<8;return ne&32768?ne|4294901760:ne},u.prototype.readInt16BE=function(Z,Y){Y||H(Z,2,this.length);var ne=this[Z+1]|this[Z]<<8;return ne&32768?ne|4294901760:ne},u.prototype.readInt32LE=function(Z,Y){return Y||H(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},u.prototype.readInt32BE=function(Z,Y){return Y||H(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},u.prototype.readFloatLE=function(Z,Y){return Y||H(Z,4,this.length),S.read(this,Z,!0,23,4)},u.prototype.readFloatBE=function(Z,Y){return Y||H(Z,4,this.length),S.read(this,Z,!1,23,4)},u.prototype.readDoubleLE=function(Z,Y){return Y||H(Z,8,this.length),S.read(this,Z,!0,52,8)},u.prototype.readDoubleBE=function(Z,Y){return Y||H(Z,8,this.length),S.read(this,Z,!1,52,8)};function V(pe,Z,Y,ne,ce,ye){if(!u.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Z>ce||Z<ye)throw new RangeError('"value" argument is out of bounds');if(Y+ne>pe.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,ne=ne|0,!ce){var ye=Math.pow(2,8*ne)-1;V(this,Z,Y,ne,ye,0)}var Ee=1,Ce=0;for(this[Y]=Z&255;++Ce<ne&&(Ee*=256);)this[Y+Ce]=Z/Ee&255;return Y+ne},u.prototype.writeUIntBE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,ne=ne|0,!ce){var ye=Math.pow(2,8*ne)-1;V(this,Z,Y,ne,ye,0)}var Ee=ne-1,Ce=1;for(this[Y+Ee]=Z&255;--Ee>=0&&(Ce*=256);)this[Y+Ee]=Z/Ce&255;return Y+ne},u.prototype.writeUInt8=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,1,255,0),u.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),this[Y]=Z&255,Y+1};function Q(pe,Z,Y,ne){Z<0&&(Z=65535+Z+1);for(var ce=0,ye=Math.min(pe.length-Y,2);ce<ye;++ce)pe[Y+ce]=(Z&255<<8*(ne?ce:1-ce))>>>(ne?ce:1-ce)*8}u.prototype.writeUInt16LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},u.prototype.writeUInt16BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2};function G(pe,Z,Y,ne){Z<0&&(Z=4294967295+Z+1);for(var ce=0,ye=Math.min(pe.length-Y,4);ce<ye;++ce)pe[Y+ce]=Z>>>(ne?ce:3-ce)*8&255}u.prototype.writeUInt32LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y+3]=Z>>>24,this[Y+2]=Z>>>16,this[Y+1]=Z>>>8,this[Y]=Z&255):G(this,Z,Y,!0),Y+4},u.prototype.writeUInt32BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4},u.prototype.writeIntLE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,!ce){var ye=Math.pow(2,8*ne-1);V(this,Z,Y,ne,ye-1,-ye)}var Ee=0,Ce=1,ue=0;for(this[Y]=Z&255;++Ee<ne&&(Ce*=256);)Z<0&&ue===0&&this[Y+Ee-1]!==0&&(ue=1),this[Y+Ee]=(Z/Ce>>0)-ue&255;return Y+ne},u.prototype.writeIntBE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,!ce){var ye=Math.pow(2,8*ne-1);V(this,Z,Y,ne,ye-1,-ye)}var Ee=ne-1,Ce=1,ue=0;for(this[Y+Ee]=Z&255;--Ee>=0&&(Ce*=256);)Z<0&&ue===0&&this[Y+Ee+1]!==0&&(ue=1),this[Y+Ee]=(Z/Ce>>0)-ue&255;return Y+ne},u.prototype.writeInt8=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,1,127,-128),u.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),Z<0&&(Z=255+Z+1),this[Y]=Z&255,Y+1},u.prototype.writeInt16LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},u.prototype.writeInt16BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2},u.prototype.writeInt32LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8,this[Y+2]=Z>>>16,this[Y+3]=Z>>>24):G(this,Z,Y,!0),Y+4},u.prototype.writeInt32BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),u.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4};function ee(pe,Z,Y,ne,ce,ye){if(Y+ne>pe.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(pe,Z,Y,ne,ce){return ce||ee(pe,Z,Y,4,34028234663852886e22,-34028234663852886e22),S.write(pe,Z,Y,ne,23,4),Y+4}u.prototype.writeFloatLE=function(Z,Y,ne){return q(this,Z,Y,!0,ne)},u.prototype.writeFloatBE=function(Z,Y,ne){return q(this,Z,Y,!1,ne)};function se(pe,Z,Y,ne,ce){return ce||ee(pe,Z,Y,8,17976931348623157e292,-17976931348623157e292),S.write(pe,Z,Y,ne,52,8),Y+8}u.prototype.writeDoubleLE=function(Z,Y,ne){return se(this,Z,Y,!0,ne)},u.prototype.writeDoubleBE=function(Z,Y,ne){return se(this,Z,Y,!1,ne)},u.prototype.copy=function(Z,Y,ne,ce){if(ne||(ne=0),!ce&&ce!==0&&(ce=this.length),Y>=Z.length&&(Y=Z.length),Y||(Y=0),ce>0&&ce<ne&&(ce=ne),ce===ne)return 0;if(Z.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("sourceStart out of bounds");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),Z.length-Y<ce-ne&&(ce=Z.length-Y+ne);var ye=ce-ne,Ee;if(this===Z&&ne<Y&&Y<ce)for(Ee=ye-1;Ee>=0;--Ee)Z[Ee+Y]=this[Ee+ne];else if(ye<1e3||!u.TYPED_ARRAY_SUPPORT)for(Ee=0;Ee<ye;++Ee)Z[Ee+Y]=this[Ee+ne];else Uint8Array.prototype.set.call(Z,this.subarray(ne,ne+ye),Y);return ye},u.prototype.fill=function(Z,Y,ne,ce){if(typeof Z=="string"){if(typeof Y=="string"?(ce=Y,Y=0,ne=this.length):typeof ne=="string"&&(ce=ne,ne=this.length),Z.length===1){var ye=Z.charCodeAt(0);ye<256&&(Z=ye)}if(ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!u.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce)}else typeof Z=="number"&&(Z=Z&255);if(Y<0||this.length<Y||this.length<ne)throw new RangeError("Out of range index");if(ne<=Y)return this;Y=Y>>>0,ne=ne===void 0?this.length:ne>>>0,Z||(Z=0);var Ee;if(typeof Z=="number")for(Ee=Y;Ee<ne;++Ee)this[Ee]=Z;else{var Ce=u.isBuffer(Z)?Z:Ge(new u(Z,ce).toString()),ue=Ce.length;for(Ee=0;Ee<ne-Y;++Ee)this[Ee+Y]=Ce[Ee%ue]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function Ae(pe){if(pe=Te(pe).replace(re,""),pe.length<2)return"";for(;pe.length%4!==0;)pe=pe+"=";return pe}function Te(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function Re(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function Ge(pe,Z){Z=Z||Infinity;for(var Y,ne=pe.length,ce=null,ye=[],Ee=0;Ee<ne;++Ee){if(Y=pe.charCodeAt(Ee),Y>55295&&Y<57344){if(!ce){if(Y>56319){(Z-=3)>-1&&ye.push(239,191,189);continue}else if(Ee+1===ne){(Z-=3)>-1&&ye.push(239,191,189);continue}ce=Y;continue}if(Y<56320){(Z-=3)>-1&&ye.push(239,191,189),ce=Y;continue}Y=(ce-55296<<10|Y-56320)+65536}else ce&&((Z-=3)>-1&&ye.push(239,191,189));if(ce=null,Y<128){if((Z-=1)<0)break;ye.push(Y)}else if(Y<2048){if((Z-=2)<0)break;ye.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((Z-=3)<0)break;ye.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((Z-=4)<0)break;ye.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return ye}function Ue(pe){for(var Z=[],Y=0;Y<pe.length;++Y)Z.push(pe.charCodeAt(Y)&255);return Z}function nt(pe,Z){for(var Y,ne,ce,ye=[],Ee=0;Ee<pe.length&&!((Z-=2)<0);++Ee)Y=pe.charCodeAt(Ee),ne=Y>>8,ce=Y%256,ye.push(ce),ye.push(ne);return ye}function Le(pe){return p.toByteArray(Ae(pe))}function le(pe,Z,Y,ne){for(var ce=0;ce<ne&&!(ce+Y>=Z.length||ce>=pe.length);++ce)Z[ce+Y]=pe[ce];return ce}function Xe(pe){return pe!==pe}}).call(this,i("yLpj"))},HDyB:function(k,D,i){var y=i("nmnc"),p=i("JHRd"),S=i("ljhN"),v=i("or5M"),m=i("7fqy"),f=i("rEGp"),d=1,u=2,o="[object Boolean]",n="[object Date]",t="[object Error]",a="[object Map]",e="[object Number]",l="[object RegExp]",r="[object Set]",s="[object String]",c="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",A=y?y.prototype:void 0,b=A?A.valueOf:void 0;function w(x,T,_,E,C,I,O){switch(_){case g:if(x.byteLength!=T.byteLength||x.byteOffset!=T.byteOffset)return!1;x=x.buffer,T=T.buffer;case h:return!(x.byteLength!=T.byteLength||!I(new p(x),new p(T)));case o:case n:case e:return S(+x,+T);case t:return x.name==T.name&&x.message==T.message;case l:case s:return x==T+"";case a:var F=m;case r:var R=E&d;if(F||(F=f),x.size!=T.size&&!R)return!1;var B=O.get(x);if(B)return B==T;E|=u,O.set(x,T);var P=v(F(x),F(T),E,C,I,O);return O.delete(x),P;case c:if(b)return b.call(x)==b.call(T)}return!1}k.exports=w},"HF/U":function(k,D,i){var y=i("QBsz");function p(v){var m=v.coordinateSystem;if(m&&m.type!=="view")return;var f=v.getGraph();f.eachNode(function(d){var u=d.getModel();d.setLayout([+u.get("x"),+u.get("y")])}),S(f)}function S(v){v.eachEdge(function(m){var f=m.getModel().get("lineStyle.curveness")||0,d=y.clone(m.node1.getLayout()),u=y.clone(m.node2.getLayout()),o=[d,u];+f&&o.push([(d[0]+u[0])/2-(d[1]-u[1])*f,(d[1]+u[1])/2-(u[0]-d[0])*f]),m.setLayout(o)})}D.simpleLayout=p,D.simpleLayoutEdge=S},"HM/N":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("/SeX"),m=i("OELB"),f=m.parsePercent,d=i("aX7z"),u=d.createScaleByModel,o=d.niceScaleExtent,n=i("IDmD"),t=i("7hqr"),a=t.getStackedDimension;i("ePAk");function e(c,h,g){var A=h.get("center"),b=g.getWidth(),w=g.getHeight();c.cx=f(A[0],b),c.cy=f(A[1],w);var x=c.getRadiusAxis(),T=Math.min(b,w)/2,_=h.get("radius");_==null?_=[0,"100%"]:S.isArray(_)||(_=[0,_]),_=[f(_[0],T),f(_[1],T)],x.inverse?x.setExtent(_[1],_[0]):x.setExtent(_[0],_[1])}function l(c,h){var g=this,A=g.getAngleAxis(),b=g.getRadiusAxis();if(A.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(T){if(T.coordinateSystem===g){var _=T.getData();S.each(_.mapDimension("radius",!0),function(E){b.scale.unionExtentFromData(_,a(_,E))}),S.each(_.mapDimension("angle",!0),function(E){A.scale.unionExtentFromData(_,a(_,E))})}}),o(A.scale,A.model),o(b.scale,b.model),A.type==="category"&&!A.onBand){var w=A.getExtent(),x=360/A.scale.count();A.inverse?w[1]+=x:w[1]-=x,A.setExtent(w[0],w[1])}}function r(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 s={dimensions:v.prototype.dimensions,create:function(c,h){var g=[];return c.eachComponent("polar",function(A,b){var w=new v(b);w.update=l;var x=w.getRadiusAxis(),T=w.getAngleAxis(),_=A.findAxisModel("radiusAxis"),E=A.findAxisModel("angleAxis");r(x,_),r(T,E),e(w,A,h),g.push(w),A.coordinateSystem=w,w.model=A}),c.eachSeries(function(A){if(A.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:A.get("polarIndex"),id:A.get("polarId")})[0];A.coordinateSystem=b.coordinateSystem}}),g}};n.register("polar",s)},HOxn:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"Promise");k.exports=S},HQEm:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Sj0X"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},HjIi:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=p.parsePercent,v=i("7hqr"),m=v.isDimensionStacked;function f(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function d(t,a){return a.dim+t.model.componentIndex}function u(t,a,e){var l={},r=o(y.filter(a.getSeriesByType(t),function(s){return!a.isSeriesFiltered(s)&&s.coordinateSystem&&s.coordinateSystem.type==="polar"}));a.eachSeriesByType(t,function(s){if(s.coordinateSystem.type!=="polar")return;var c=s.getData(),h=s.coordinateSystem,g=h.getBaseAxis(),A=d(h,g),b=f(s),w=r[A][b],x=w.offset,T=w.width,_=h.getOtherAxis(g),E=s.coordinateSystem.cx,C=s.coordinateSystem.cy,I=s.get("barMinHeight")||0,O=s.get("barMinAngle")||0;l[b]=l[b]||[];for(var F=c.mapDimension(_.dim),R=c.mapDimension(g.dim),B=m(c,F),P=g.dim!=="radius"||!s.get("roundCap",!0),X=_.getExtent()[0],M=0,z=c.count();M<z;M++){var W=c.get(F,M),H=c.get(R,M),V=W>=0?"p":"n",Q=X;B&&(l[b][H]||(l[b][H]={p:X,n:X}),Q=l[b][H][V]);var G,ee,q,se;if(_.dim==="radius"){var re=_.dataToRadius(W)-X,Ae=g.dataToAngle(H);Math.abs(re)<I&&(re=(re<0?-1:1)*I),G=Q,ee=Q+re,q=Ae-x,se=q-T,B&&(l[b][H][V]=ee)}else{var Te=_.dataToAngle(W,P)-X,Re=g.dataToRadius(H);Math.abs(Te)<O&&(Te=(Te<0?-1:1)*O),G=Re+x,ee=G+T,q=Q,se=Q+Te,B&&(l[b][H][V]=se)}c.setItemLayout(M,{cx:E,cy:C,r0:G,r:ee,startAngle:-q*Math.PI/180,endAngle:-se*Math.PI/180})}},this)}function o(t,a){var e={};y.each(t,function(r,s){var c=r.getData(),h=r.coordinateSystem,g=h.getBaseAxis(),A=d(h,g),b=g.getExtent(),w=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),x=e[A]||{bandWidth:w,remainedWidth:w,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},T=x.stacks;e[A]=x;var _=f(r);T[_]||x.autoWidthCount++,T[_]=T[_]||{width:0,maxWidth:0};var E=S(r.get("barWidth"),w),C=S(r.get("barMaxWidth"),w),I=r.get("barGap"),O=r.get("barCategoryGap");E&&!T[_].width&&(E=Math.min(x.remainedWidth,E),T[_].width=E,x.remainedWidth-=E),C&&(T[_].maxWidth=C),I!=null&&(x.gap=I),O!=null&&(x.categoryGap=O)});var l={};return y.each(e,function(r,s){l[s]={};var c=r.stacks,h=r.bandWidth,g=S(r.categoryGap,h),A=S(r.gap,1),b=r.remainedWidth,w=r.autoWidthCount,x=(b-g)/(w+(w-1)*A);x=Math.max(x,0),y.each(c,function(C,I){var O=C.maxWidth;O&&O<x&&(O=Math.min(O,b),C.width&&(O=Math.min(O,C.width)),b-=O,C.width=O,w--)}),x=(b-g)/(w+(w-1)*A),x=Math.max(x,0);var T=0,_;y.each(c,function(C,I){C.width||(C.width=x),_=C,T+=C.width*(1+A)}),_&&(T-=_.width*A);var E=-T/2;y.each(c,function(C,I){l[s][I]=l[s][I]||{offset:E,width:C.width},E+=C.width*(1+A)})}),l}var n=u;k.exports=n},HjOm:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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"},p=y;D.default=p},Hvzi:function(k,D){function i(y){var p=this.has(y)&&delete this.__data__[y];return this.size-=p?1:0,p}k.exports=i},Hw7h:function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(S,v){var m=Math.cos,f=Math.sin,d=v.r,u=v.width,o=v.angle,n=v.x-m(o)*u*(u>=d/3?1:2),t=v.y-f(o)*u*(u>=d/3?1:2);o=v.angle-Math.PI/2,S.moveTo(n,t),S.lineTo(v.x+m(o)*u,v.y+f(o)*u),S.lineTo(v.x+m(v.angle)*d,v.y+f(v.angle)*d),S.lineTo(v.x-m(o)*u,v.y-f(o)*u),S.lineTo(n,t);return}});k.exports=p},Hxpc:function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=i("bLfw"),v=i("Qxkt"),m=i("cCMj"),f=i("7uqq"),d=S.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(o){S.prototype.init.apply(this,arguments),p.defaultEmphasis(o,"label",["show"])},optionUpdated:function(){var o=this.option,n=this;o.regions=f.getFilledRegions(o.regions,o.map,o.nameMap),this._optionModelMap=y.reduce(o.regions||[],function(t,a){return a.name&&t.set(a.name,new v(a,n)),t},y.createHashMap()),this.updateSelectedMap(o.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(o){return this._optionModelMap.get(o)||new v(null,this,this.ecModel)},getFormattedLabel:function(o,n){var t=this.getRegionModel(o),a=t.get("label"+(n==="normal"?".":n+".")+"formatter"),e={name:o};if(typeof a=="function")return e.status=n,a(e);if(typeof a=="string")return a.replace("{a}",o!=null?o:"")},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o}});y.mixin(d,m);var u=d;k.exports=u},"I+77":function(k,D,i){var y=i("ProS");i("h54F"),i("lwQL"),i("10cm");var p=i("Z1r0"),S=i("f5Yq"),v=i("KUOm"),m=i("3m61"),f=i("01d+"),d=i("rdor"),u=i("WGYa"),o=i("ewwo");y.registerProcessor(p),y.registerVisual(S("graph","circle",null)),y.registerVisual(v),y.registerVisual(m),y.registerLayout(f),y.registerLayout(y.PRIORITY.VISUAL.POST_CHART_LAYOUT,d),y.registerLayout(u),y.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(k,D,i){var y=i("bYtY"),p=i("eIcI"),S=i("ieMj"),v=i("OELB"),m=i("aX7z"),f=m.getScaleExtent,d=m.niceScaleExtent,u=i("IDmD"),o=i("jCoz");function n(a,e,l){this._model=a,this.dimensions=[],this._indicatorAxes=y.map(a.getIndicatorModels(),function(r,s){var c="indicator_"+s,h=new p(c,r.get("axisType")==="log"?new o:new S);return h.name=r.get("name"),h.model=r,r.axis=h,this.dimensions.push(c),h},this),this.resize(a,l),this.cx,this.cy,this.r,this.r0,this.startAngle}n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(a,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(a),e)},n.prototype.coordToPoint=function(a,e){var l=this._indicatorAxes[e],r=l.angle,s=this.cx+a*Math.cos(r),c=this.cy-a*Math.sin(r);return[s,c]},n.prototype.pointToData=function(a){var e=a[0]-this.cx,l=a[1]-this.cy,r=Math.sqrt(e*e+l*l);e/=r,l/=r;for(var s=Math.atan2(-l,e),c=Infinity,h,g=-1,A=0;A<this._indicatorAxes.length;A++){var b=this._indicatorAxes[A],w=Math.abs(s-b.angle);w<c&&(h=b,g=A,c=w)}return[g,+(h&&h.coordToData(r))]},n.prototype.resize=function(a,e){var l=a.get("center"),r=e.getWidth(),s=e.getHeight(),c=Math.min(r,s)/2;this.cx=v.parsePercent(l[0],r),this.cy=v.parsePercent(l[1],s),this.startAngle=a.get("startAngle")*Math.PI/180;var h=a.get("radius");(typeof h=="string"||typeof h=="number")&&(h=[0,h]),this.r0=v.parsePercent(h[0],c),this.r=v.parsePercent(h[1],c),y.each(this._indicatorAxes,function(g,A){g.setExtent(this.r0,this.r);var b=this.startAngle+A*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),g.angle=b},this)},n.prototype.update=function(a,e){var l=this._indicatorAxes,r=this._model;y.each(l,function(h){h.scale.setExtent(Infinity,-Infinity)}),a.eachSeriesByType("radar",function(h,g){if(h.get("coordinateSystem")!=="radar"||a.getComponent("radar",h.get("radarIndex"))!==r)return;var A=h.getData();y.each(l,function(b){b.scale.unionExtentFromData(A,A.mapDimension(b.dim))})},this);var s=r.get("splitNumber");function c(h){var g=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),A=h/g;return A===2?A=5:A*=2,A*g}y.each(l,function(h,g){var A=f(h.scale,h.model).extent;d(h.scale,h.model);var b=h.model,w=h.scale,x=b.getMin(),T=b.getMax(),_=w.getInterval();if(x!=null&&T!=null)w.setExtent(+x,+T),w.setInterval((T-x)/s);else if(x!=null){var E;do E=x+_*s,w.setExtent(+x,E),w.setInterval(_),_=c(_);while(E<A[1]&&isFinite(E)&&isFinite(A[1]))}else if(T!=null){var C;do C=T-_*s,w.setExtent(C,+T),w.setInterval(_),_=c(_);while(C>A[0]&&isFinite(C)&&isFinite(A[0]))}else{var I=w.getTicks().length-1;I>s&&(_=c(_));var E=Math.ceil(A[1]/_)*_,C=v.round(E-_*s);w.setExtent(C,E),w.setInterval(_)}})},n.dimensions=[],n.create=function(a,e){var l=[];return a.eachComponent("radar",function(r){var s=new n(r,a,e);l.push(s),r.coordinateSystem=s}),a.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=l[r.get("radarIndex")||0])}),l},u.register("radar",n);var t=n;k.exports=t},"I3/A":function(k,D,i){var y=i("bYtY"),p=i("YXkt"),S=i("c2i1"),v=i("Mdki"),m=i("sdST"),f=i("IDmD"),d=i("MwEJ");function u(o,n,t,a,e){for(var l=new S(a),r=0;r<o.length;r++)l.addNode(y.retrieve(o[r].id,o[r].name,r),r);for(var s=[],c=[],h=0,r=0;r<n.length;r++){var g=n[r],A=g.source,b=g.target;l.addEdge(A,b,h)&&(c.push(g),s.push(y.retrieve(g.id,A+" > "+b)),h++)}var w=t.get("coordinateSystem"),x;if(w==="cartesian2d"||w==="polar")x=d(o,t);else{var T=f.get(w),_=T&&T.type!=="view"?T.dimensions||[]:[];y.indexOf(_,"value")<0&&_.concat(["value"]);var E=m(o,{coordDimensions:_});x=new p(E,t),x.initData(o)}var C=new p(["value"],t);return C.initData(c,s),e&&e(x,C),v({mainData:x,struct:l,structAttr:"graph",datas:{node:x,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}k.exports=u},I8Z2:function(k,D,i){"use strict";i.d(D,"a",function(){return v}),i.d(D,"b",function(){return e}),i.d(D,"c",function(){return r});var y=i("q1tI"),p=function(){var s=function(h,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var w in b)b.hasOwnProperty(w)&&(A[w]=b[w])},s(h,g)};return function(c,h){s(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),S=y.createContext(null),v=function(s){p(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c.prototype.render=function(){return y.createElement(S.Provider,{value:this.props.store},this.props.children)},c}(y.Component),m=i("Gytx"),f=i.n(m),d=i("2mql"),u=i.n(d),o=function(){var s=function(h,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,b){A.__proto__=b}||function(A,b){for(var w in b)b.hasOwnProperty(w)&&(A[w]=b[w])},s(h,g)};return function(c,h){s(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),n=function(){return n=Object.assign||function(s){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(s[A]=c[A])}return s},n.apply(this,arguments)};function t(s){return s.displayName||s.name||"Component"}var a=function(){return{}};function e(s,c){c===void 0&&(c={});var h=!!s,g=s||a;return function(b){var w=function(T){o(_,T);function _(E,C){var I=T.call(this,E,C)||this;return I.unsubscribe=null,I.handleChange=function(){if(!I.unsubscribe)return;var O=g(I.store.getState(),I.props);I.setState({subscribed:O})},I.store=I.context,I.state={subscribed:g(I.store.getState(),E),store:I.store,props:E},I}return _.getDerivedStateFromProps=function(E,C){return s&&s.length===2&&E!==C.props?{subscribed:g(C.store.getState(),E),props:E}:{props:E}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(E,C){return!f()(this.props,E)||!f()(this.state.subscribed,C.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 E=n(n(n({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,n({},E,{ref:this.props.miniStoreForwardedRef}))},_.displayName="Connect("+t(b)+")",_.contextType=S,_}(y.Component);if(c.forwardRef){var x=y.forwardRef(function(T,_){return y.createElement(w,n({},T,{miniStoreForwardedRef:_}))});return u()(x,b)}return u()(w,b)}}var l=function(){return l=Object.assign||function(s){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(s[A]=c[A])}return s},l.apply(this,arguments)};function r(s){var c=s,h=[];function g(w){c=l(l({},c),w);for(var x=0;x<h.length;x++)h[x]()}function A(){return c}function b(w){return h.push(w),function(){var T=h.indexOf(w);h.splice(T,1)}}return{setState:g,getState:A,subscribe:b}}},"I9Y+":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("4xFK")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DoubleRightOutlined";var n=v.forwardRef(o);D.default=n},ICMv:function(k,D,i){var y=i("bYtY"),p={getMin:function(S){var v=this.option,m=!S&&v.rangeStart!=null?v.rangeStart:v.min;return this.axis&&m!=null&&m!=="dataMin"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getMax:function(S){var v=this.option,m=!S&&v.rangeEnd!=null?v.rangeEnd:v.max;return this.axis&&m!=null&&m!=="dataMax"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getNeedCrossZero:function(){var S=this.option;return S.rangeStart!=null||S.rangeEnd!=null?!1:!S.scale},getCoordSysModel:y.noop,setRange:function(S,v){this.option.rangeStart=S,this.option.rangeEnd=v},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};k.exports=p},IDmD:function(k,D,i){var y=i("bYtY"),p={};function S(){this._coordinateSystems=[]}S.prototype={constructor:S,create:function(m,f){var d=[];y.each(p,function(u,o){var n=u.create(m,f);d=d.concat(n||[])}),this._coordinateSystems=d},update:function(m,f){y.each(this._coordinateSystems,function(d){d.update&&d.update(m,f)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},S.register=function(m,f){p[m]=f},S.get=function(m){return p[m]};var v=S;k.exports=v},IMiH:function(k,D,i){var y=i("Sj9i"),p=i("QBsz"),S=i("4mN7"),v=i("mFDi"),m=i("LPTA"),f=m.devicePixelRatio,d={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],o=[],n=[],t=[],a=Math.min,e=Math.max,l=Math.cos,r=Math.sin,s=Math.sqrt,c=Math.abs,h=typeof Float32Array!="undefined",g=function(w){this._saveData=!(w||!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(w,x,T){T=T||0,this._ux=c(T/f/w)||0,this._uy=c(T/f/x)||0},getContext:function(){return this._ctx},beginPath:function(w){return this._ctx=w,w&&w.beginPath(),w&&(this.dpr=w.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(w,x){return this.addData(d.M,w,x),this._ctx&&this._ctx.moveTo(w,x),this._x0=w,this._y0=x,this._xi=w,this._yi=x,this},lineTo:function(w,x){var T=c(w-this._xi)>this._ux||c(x-this._yi)>this._uy||this._len<5;return this.addData(d.L,w,x),this._ctx&&T&&(this._needsDash()?this._dashedLineTo(w,x):this._ctx.lineTo(w,x)),T&&(this._xi=w,this._yi=x),this},bezierCurveTo:function(w,x,T,_,E,C){return this.addData(d.C,w,x,T,_,E,C),this._ctx&&(this._needsDash()?this._dashedBezierTo(w,x,T,_,E,C):this._ctx.bezierCurveTo(w,x,T,_,E,C)),this._xi=E,this._yi=C,this},quadraticCurveTo:function(w,x,T,_){return this.addData(d.Q,w,x,T,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(w,x,T,_):this._ctx.quadraticCurveTo(w,x,T,_)),this._xi=T,this._yi=_,this},arc:function(w,x,T,_,E,C){return this.addData(d.A,w,x,T,T,_,E-_,0,C?0:1),this._ctx&&this._ctx.arc(w,x,T,_,E,C),this._xi=l(E)*T+w,this._yi=r(E)*T+x,this},arcTo:function(w,x,T,_,E){return this._ctx&&this._ctx.arcTo(w,x,T,_,E),this},rect:function(w,x,T,_){return this._ctx&&this._ctx.rect(w,x,T,_),this.addData(d.R,w,x,T,_),this},closePath:function(){this.addData(d.Z);var w=this._ctx,x=this._x0,T=this._y0;return w&&(this._needsDash()&&this._dashedLineTo(x,T),w.closePath()),this._xi=x,this._yi=T,this},fill:function(w){w&&w.fill(),this.toStatic()},stroke:function(w){w&&w.stroke(),this.toStatic()},setLineDash:function(w){if(w instanceof Array){this._lineDash=w,this._dashIdx=0;for(var x=0,T=0;T<w.length;T++)x+=w[T];this._dashSum=x}return this},setLineDashOffset:function(w){return this._dashOffset=w,this},len:function(){return this._len},setData:function(w){var x=w.length;!(this.data&&this.data.length===x)&&h&&(this.data=new Float32Array(x));for(var T=0;T<x;T++)this.data[T]=w[T];this._len=x},appendPath:function(w){w instanceof Array||(w=[w]);for(var x=w.length,T=0,_=this._len,E=0;E<x;E++)T+=w[E].len();h&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+T));for(var E=0;E<x;E++)for(var C=w[E].data,I=0;I<C.length;I++)this.data[_++]=C[I];this._len=_},addData:function(w){if(!this._saveData)return;var x=this.data;this._len+arguments.length>x.length&&(this._expandData(),x=this.data);for(var T=0;T<arguments.length;T++)x[this._len++]=arguments[T];this._prevCmd=w},_expandData:function(){if(!(this.data instanceof Array)){for(var w=[],x=0;x<this._len;x++)w[x]=this.data[x];this.data=w}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(w,x){var T=this._dashSum,_=this._dashOffset,E=this._lineDash,C=this._ctx,I=this._xi,O=this._yi,F=w-I,R=x-O,B=s(F*F+R*R),P=I,X=O,M,z=E.length,W;for(F/=B,R/=B,_<0&&(_=T+_),_%=T,P-=_*F,X-=_*R;F>0&&P<=w||F<0&&P>=w||F===0&&(R>0&&X<=x||R<0&&X>=x);){if(W=this._dashIdx,M=E[W],P+=F*M,X+=R*M,this._dashIdx=(W+1)%z,F>0&&P<I||F<0&&P>I||R>0&&X<O||R<0&&X>O)continue;C[W%2?"moveTo":"lineTo"](F>=0?a(P,w):e(P,w),R>=0?a(X,x):e(X,x))}F=P-w,R=X-x,this._dashOffset=-s(F*F+R*R)},_dashedBezierTo:function(w,x,T,_,E,C){var I=this._dashSum,O=this._dashOffset,F=this._lineDash,R=this._ctx,B=this._xi,P=this._yi,X,M,z,W=y.cubicAt,H=0,V=this._dashIdx,Q=F.length,G,ee,q=0;for(O<0&&(O=I+O),O%=I,X=0;X<1;X+=.1)M=W(B,w,T,E,X+.1)-W(B,w,T,E,X),z=W(P,x,_,C,X+.1)-W(P,x,_,C,X),H+=s(M*M+z*z);for(;V<Q&&!(q+=F[V],q>O);V++);for(X=(q-O)/H;X<=1;)G=W(B,w,T,E,X),ee=W(P,x,_,C,X),V%2?R.moveTo(G,ee):R.lineTo(G,ee),X+=F[V]/H,V=(V+1)%Q;V%2!==0&&R.lineTo(E,C),M=E-G,z=C-ee,this._dashOffset=-s(M*M+z*z)},_dashedQuadraticTo:function(w,x,T,_){var E=T,C=_;T=(T+2*w)/3,_=(_+2*x)/3,w=(this._xi+2*w)/3,x=(this._yi+2*x)/3,this._dashedBezierTo(w,x,T,_,E,C)},toStatic:function(){var w=this.data;w instanceof Array&&(w.length=this._len,h&&(this.data=new Float32Array(w)))},getBoundingRect:function(){u[0]=u[1]=n[0]=n[1]=Number.MAX_VALUE,o[0]=o[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var w=this.data,x=0,T=0,_=0,E=0,C=0;C<w.length;){var I=w[C++];C===1&&(x=w[C],T=w[C+1],_=x,E=T);switch(I){case d.M:_=w[C++],E=w[C++],x=_,T=E,n[0]=_,n[1]=E,t[0]=_,t[1]=E;break;case d.L:S.fromLine(x,T,w[C],w[C+1],n,t),x=w[C++],T=w[C++];break;case d.C:S.fromCubic(x,T,w[C++],w[C++],w[C++],w[C++],w[C],w[C+1],n,t),x=w[C++],T=w[C++];break;case d.Q:S.fromQuadratic(x,T,w[C++],w[C++],w[C],w[C+1],n,t),x=w[C++],T=w[C++];break;case d.A:var O=w[C++],F=w[C++],R=w[C++],B=w[C++],P=w[C++],X=w[C++]+P;C+=1;var M=1-w[C++];C===1&&(_=l(P)*R+O,E=r(P)*B+F),S.fromArc(O,F,R,B,P,X,M,n,t),x=l(X)*R+O,T=r(X)*B+F;break;case d.R:_=x=w[C++],E=T=w[C++];var z=w[C++],W=w[C++];S.fromLine(_,E,_+z,E+W,n,t);break;case d.Z:x=_,T=E;break}p.min(u,u,n),p.max(o,o,t)}return C===0&&(u[0]=u[1]=o[0]=o[1]=0),new v(u[0],u[1],o[0]-u[0],o[1]-u[1])},rebuildPath:function(w){for(var x=this.data,T,_,E,C,I,O,F=this._ux,R=this._uy,B=this._len,P=0;P<B;){var X=x[P++];P===1&&(E=x[P],C=x[P+1],T=E,_=C);switch(X){case d.M:T=E=x[P++],_=C=x[P++],w.moveTo(E,C);break;case d.L:I=x[P++],O=x[P++],(c(I-E)>F||c(O-C)>R||P===B-1)&&(w.lineTo(I,O),E=I,C=O);break;case d.C:w.bezierCurveTo(x[P++],x[P++],x[P++],x[P++],x[P++],x[P++]),E=x[P-2],C=x[P-1];break;case d.Q:w.quadraticCurveTo(x[P++],x[P++],x[P++],x[P++]),E=x[P-2],C=x[P-1];break;case d.A:var M=x[P++],z=x[P++],W=x[P++],H=x[P++],V=x[P++],Q=x[P++],G=x[P++],ee=x[P++],q=W>H?W:H,se=W>H?1:W/H,re=W>H?H/W:1,Ae=Math.abs(W-H)>.001,Te=V+Q;Ae?(w.translate(M,z),w.rotate(G),w.scale(se,re),w.arc(0,0,q,V,Te,1-ee),w.scale(1/se,1/re),w.rotate(-G),w.translate(-M,-z)):w.arc(M,z,q,V,Te,1-ee),P===1&&(T=l(V)*W+M,_=r(V)*H+z),E=l(Te)*W+M,C=r(Te)*H+z;break;case d.R:T=E=x[P],_=C=x[P+1],w.rect(x[P++],x[P++],x[P++],x[P++]);break;case d.Z:w.closePath(),E=T,C=_}}}},g.CMD=d;var A=g;k.exports=A},IUWy:function(k,D){var i={};function y(S,v){i[S]=v}function p(S){return i[S]}D.register=y,D.get=p},IWNH:function(k,D,i){var y=i("T4UG"),p=i("Bsck"),S=i("7aKB"),v=S.encodeHTML,m=i("Qxkt"),f=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(d){var u={name:d.name,children:d.data},o=d.leaves||{},n=new m(o,this,this.ecModel),t=p.createTree(u,this,{},a);function a(s){s.wrapMethod("getItemModel",function(c,h){var g=t.getNodeByDataIndex(h);return(!g.children.length||!g.isExpand)&&(c.parentModel=n),c})}var e=0;t.eachNode("preorder",function(s){s.depth>e&&(e=s.depth)});var l=d.expandAndCollapse,r=l&&d.initialTreeDepth>=0?d.initialTreeDepth:e;return t.root.eachNode("preorder",function(s){var c=s.hostTree.data.getRawDataItem(s.dataIndex);s.isExpand=c&&c.collapsed!=null?!c.collapsed:s.depth<=r}),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,o=u.root.children[0],n=u.getNodeByDataIndex(d),t=n.getValue(),a=n.name;n&&n!==o;)a=n.parentNode.name+"."+a,n=n.parentNode;return v(a+(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}});k.exports=f},IWp7:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=i("7aKB"),v=i("lE7J"),m=i("ieMj"),f=m.prototype,d=Math.ceil,u=Math.floor,o=1e3,n=o*60,t=n*60,a=t*24,e=function(c,h,g,A){for(;g<A;){var b=g+A>>>1;c[b][1]<h?g=b+1:A=b}return g},l=m.extend({type:"time",getLabel:function(c){var h=this._stepLvl,g=new Date(c);return S.formatTime(h[0],g,this.getSetting("useUTC"))},niceExtent:function(c){var h=this._extent;if(h[0]===h[1]&&(h[0]-=a,h[1]+=a),h[1]===-Infinity&&h[0]===Infinity){var g=new Date;h[1]=+new Date(g.getFullYear(),g.getMonth(),g.getDate()),h[0]=h[1]-a}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var A=this._interval;c.fixMin||(h[0]=p.round(u(h[0]/A)*A)),c.fixMax||(h[1]=p.round(d(h[1]/A)*A))},niceTicks:function(c,h,g){c=c||10;var A=this._extent,b=A[1]-A[0],w=b/c;h!=null&&w<h&&(w=h),g!=null&&w>g&&(w=g);var x=r.length,T=e(r,w,0,x),_=r[Math.min(T,x-1)],E=_[1];if(_[0]==="year"){var C=b/E,I=p.nice(C/c,!0);E*=I}var O=this.getSetting("useUTC")?0:new Date(+A[0]||+A[1]).getTimezoneOffset()*60*1e3,F=[Math.round(d((A[0]-O)/E)*E+O),Math.round(u((A[1]-O)/E)*E+O)];v.fixExtent(F,A),this._stepLvl=_,this._interval=E,this._niceExtent=F},parse:function(c){return+p.parseDate(c)}});y.each(["contain","normalize"],function(c){l.prototype[c]=function(h){return f[c].call(this,this.parse(h))}});var r=[["hh:mm:ss",o],["hh:mm:ss",o*5],["hh:mm:ss",o*10],["hh:mm:ss",o*15],["hh:mm:ss",o*30],[`hh:mm
MM-dd`,n],[`hh:mm
MM-dd`,n*5],[`hh:mm
MM-dd`,n*10],[`hh:mm
MM-dd`,n*15],[`hh:mm
MM-dd`,n*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`,a],[`MM-dd
yyyy`,a*2],[`MM-dd
yyyy`,a*3],[`MM-dd
yyyy`,a*4],[`MM-dd
yyyy`,a*5],[`MM-dd
yyyy`,a*6],["week",a*7],[`MM-dd
yyyy`,a*10],["week",a*14],["week",a*21],["month",a*31],["week",a*42],["month",a*62],["week",a*70],["quarter",a*95],["month",a*31*4],["month",a*31*5],["half-year",a*380/2],["month",a*31*8],["month",a*31*10],["year",a*380]];l.create=function(c){return new l({useUTC:c.ecModel.get("useUTC")})};var s=l;k.exports=s},IXuL:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("MwEJ"),v=i("T4UG"),m=v.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(f,d){return S(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}});k.exports=m},IXyC:function(k,D,i){var y=i("bYtY"),p=i("bLfw");i("3zoK");var S=p.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(){p.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(v){var m=this.option;v&&y.merge(m,v,!0),this._initDimensions()},contains:function(v,m){var f=v.get("parallelIndex");return f!=null&&m.getComponent("parallel",f)===this},setAxisExpand:function(v){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(m){v.hasOwnProperty(m)&&(this.option[m]=v[m])},this)},_initDimensions:function(){var v=this.dimensions=[],m=this.parallelAxisIndex=[],f=y.filter(this.dependentModels.parallelAxis,function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this);y.each(f,function(d){v.push("dim"+d.get("dim")),m.push(d.componentIndex)})}});k.exports=S},Ib8C:function(k,D,i){(function(y){(function(p,S){k.exports=D=S()})(this,function(){var p=p||function(S,v){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=i(4)}catch(g){}var f=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch(A){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(A){}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function g(){}return function(A){var b;return g.prototype=A,b=new g,g.prototype=null,b}}(),u={},o=u.lib={},n=o.Base=function(){return{extend:function(A){var b=d(this);return A&&b.mixIn(A),(!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 A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var b in A)A.hasOwnProperty(b)&&(this[b]=A[b]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=o.WordArray=n.extend({init:function(A,b){A=this.words=A||[],b!=v?this.sigBytes=b:this.sigBytes=A.length*4},toString:function(A){return(A||e).stringify(this)},concat:function(A){var b=this.words,w=A.words,x=this.sigBytes,T=A.sigBytes;if(this.clamp(),x%4)for(var _=0;_<T;_++){var E=w[_>>>2]>>>24-_%4*8&255;b[x+_>>>2]|=E<<24-(x+_)%4*8}else for(var C=0;C<T;C+=4)b[x+C>>>2]=w[C>>>2];return this.sigBytes+=T,this},clamp:function(){var A=this.words,b=this.sigBytes;A[b>>>2]&=4294967295<<32-b%4*8,A.length=S.ceil(b/4)},clone:function(){var A=n.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var b=[],w=0;w<A;w+=4)b.push(f());return new t.init(b,A)}}),a=u.enc={},e=a.Hex={stringify:function(A){for(var b=A.words,w=A.sigBytes,x=[],T=0;T<w;T++){var _=b[T>>>2]>>>24-T%4*8&255;x.push((_>>>4).toString(16)),x.push((_&15).toString(16))}return x.join("")},parse:function(A){for(var b=A.length,w=[],x=0;x<b;x+=2)w[x>>>3]|=parseInt(A.substr(x,2),16)<<24-x%8*4;return new t.init(w,b/2)}},l=a.Latin1={stringify:function(A){for(var b=A.words,w=A.sigBytes,x=[],T=0;T<w;T++){var _=b[T>>>2]>>>24-T%4*8&255;x.push(String.fromCharCode(_))}return x.join("")},parse:function(A){for(var b=A.length,w=[],x=0;x<b;x++)w[x>>>2]|=(A.charCodeAt(x)&255)<<24-x%4*8;return new t.init(w,b)}},r=a.Utf8={stringify:function(A){try{return decodeURIComponent(escape(l.stringify(A)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(A){return l.parse(unescape(encodeURIComponent(A)))}},s=o.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=r.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var b,w=this._data,x=w.words,T=w.sigBytes,_=this.blockSize,E=_*4,C=T/E;A?C=S.ceil(C):C=S.max((C|0)-this._minBufferSize,0);var I=C*_,O=S.min(I*4,T);if(I){for(var F=0;F<I;F+=_)this._doProcessBlock(x,F);b=x.splice(0,I),w.sigBytes-=O}return new t.init(b,O)},clone:function(){var A=n.clone.call(this);return A._data=this._data.clone(),A},_minBufferSize:0}),c=o.Hasher=s.extend({cfg:n.extend(),init:function(A){this.cfg=this.cfg.extend(A),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(A){return this._append(A),this._process(),this},finalize:function(A){A&&this._append(A);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(A){return function(b,w){return new A.init(w).finalize(b)}},_createHmacHelper:function(A){return function(b,w){return new h.HMAC.init(A,w).finalize(b)}}}),h=u.algo={};return u}(Math);return p})}).call(this,i("yLpj"))},Iq15:function(k,D,i){var y=i("nVVt"),p=i("dWSS"),S=i("dQei"),v={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(d){for(var u=d<<10;m.getBCHDigit(u)-m.getBCHDigit(m.G15)>=0;)u^=m.G15<<m.getBCHDigit(u)-m.getBCHDigit(m.G15);return(d<<10|u)^m.G15_MASK},getBCHTypeNumber:function(d){for(var u=d<<12;m.getBCHDigit(u)-m.getBCHDigit(m.G18)>=0;)u^=m.G18<<m.getBCHDigit(u)-m.getBCHDigit(m.G18);return d<<12|u},getBCHDigit:function(d){for(var u=0;d!=0;)u++,d>>>=1;return u},getPatternPosition:function(d){return m.PATTERN_POSITION_TABLE[d-1]},getMask:function(d,u,o){switch(d){case v.PATTERN000:return(u+o)%2==0;case v.PATTERN001:return u%2==0;case v.PATTERN010:return o%3==0;case v.PATTERN011:return(u+o)%3==0;case v.PATTERN100:return(Math.floor(u/2)+Math.floor(o/3))%2==0;case v.PATTERN101:return u*o%2+u*o%3==0;case v.PATTERN110:return(u*o%2+u*o%3)%2==0;case v.PATTERN111:return(u*o%3+(u+o)%2)%2==0;default:throw new Error("bad maskPattern:"+d)}},getErrorCorrectPolynomial:function(d){for(var u=new p([1],0),o=0;o<d;o++)u=u.multiply(new p([1,S.gexp(o)],0));return u},getLengthInBits:function(d,u){if(1<=u&&u<10)switch(d){case y.MODE_NUMBER:return 10;case y.MODE_ALPHA_NUM:return 9;case y.MODE_8BIT_BYTE:return 8;case y.MODE_KANJI:return 8;default:throw new Error("mode:"+d)}else if(u<27)switch(d){case y.MODE_NUMBER:return 12;case y.MODE_ALPHA_NUM:return 11;case y.MODE_8BIT_BYTE:return 16;case y.MODE_KANJI:return 10;default:throw new Error("mode:"+d)}else if(u<41)switch(d){case y.MODE_NUMBER:return 14;case y.MODE_ALPHA_NUM:return 13;case y.MODE_8BIT_BYTE:return 16;case y.MODE_KANJI:return 12;default:throw new Error("mode:"+d)}else throw new Error("type:"+u)},getLostPoint:function(d){for(var u=d.getModuleCount(),o=0,n=0;n<u;n++)for(var t=0;t<u;t++){for(var a=0,e=d.isDark(n,t),l=-1;l<=1;l++){if(n+l<0||u<=n+l)continue;for(var r=-1;r<=1;r++){if(t+r<0||u<=t+r)continue;if(l==0&&r==0)continue;e==d.isDark(n+l,t+r)&&a++}}a>5&&(o+=3+a-5)}for(var n=0;n<u-1;n++)for(var t=0;t<u-1;t++){var s=0;d.isDark(n,t)&&s++,d.isDark(n+1,t)&&s++,d.isDark(n,t+1)&&s++,d.isDark(n+1,t+1)&&s++,(s==0||s==4)&&(o+=3)}for(var n=0;n<u;n++)for(var t=0;t<u-6;t++)d.isDark(n,t)&&!d.isDark(n,t+1)&&d.isDark(n,t+2)&&d.isDark(n,t+3)&&d.isDark(n,t+4)&&!d.isDark(n,t+5)&&d.isDark(n,t+6)&&(o+=40);for(var t=0;t<u;t++)for(var n=0;n<u-6;n++)d.isDark(n,t)&&!d.isDark(n+1,t)&&d.isDark(n+2,t)&&d.isDark(n+3,t)&&d.isDark(n+4,t)&&!d.isDark(n+5,t)&&d.isDark(n+6,t)&&(o+=40);for(var c=0,t=0;t<u;t++)for(var n=0;n<u;n++)d.isDark(n,t)&&c++;var h=Math.abs(100*c/u/u-50)/5;return o+=h*10,o}};k.exports=m},ItGF:function(k,D){var i={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?i={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?i={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?i={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:i=p(navigator.userAgent);var y=i;function p(S){var v={},m={},f=S.match(/Firefox\/([\d.]+)/),d=S.match(/MSIE\s([\d.]+)/)||S.match(/Trident\/.+?rv:(([\d.]+))/),u=S.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(S);return f&&(m.firefox=!0,m.version=f[1]),d&&(m.ie=!0,m.version=d[1]),u&&(m.edge=!0,m.version=u[1]),o&&(m.weChat=!0),{browser:m,os:v,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"}}k.exports=y},ItS6:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("eP3c"),p=S(i("1q3G"));function S(u){return u&&u.__esModule?u:{default:u}}function v(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function m(u,o){for(var n=0;n<o.length;n++){var t=o[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,o,n){return o&&m(u.prototype,o),n&&m(u,n),u}var d=function(){function u(){v(this,u),this.strm=new p.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.inflateInit)(this.strm,this.windowBits)}return f(u,[{key:"setInput",value:function(n){n?(this.strm.input=n,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(n){n>this.chunkSize&&(this.chunkSize=n,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=n;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=n)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}();D.default=d},Itpr:function(k,D,i){var y=i("+TT/");function p(r){r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s=[r],c,h;c=s.pop();)if(h=c.children,c.isExpand&&h.length)for(var g=h.length,A=g-1;A>=0;A--){var b=h[A];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},s.push(b)}}function S(r,s){var c=r.isExpand?r.children:[],h=r.parentNode.children,g=r.hierNode.i?h[r.hierNode.i-1]:null;if(c.length){u(r);var A=(c[0].hierNode.prelim+c[c.length-1].hierNode.prelim)/2;g?(r.hierNode.prelim=g.hierNode.prelim+s(r,g),r.hierNode.modifier=r.hierNode.prelim-A):r.hierNode.prelim=A}else g&&(r.hierNode.prelim=g.hierNode.prelim+s(r,g));r.parentNode.hierNode.defaultAncestor=o(r,g,r.parentNode.hierNode.defaultAncestor||h[0],s)}function v(r){var s=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:s},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function m(r){return arguments.length?r:l}function f(r,s){var c={};return r-=Math.PI/2,c.x=s*Math.cos(r),c.y=s*Math.sin(r),c}function d(r,s){return y.getLayoutRect(r.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})}function u(r){for(var s=r.children,c=s.length,h=0,g=0;--c>=0;){var A=s[c];A.hierNode.prelim+=h,A.hierNode.modifier+=h,g+=A.hierNode.change,h+=A.hierNode.shift+g}}function o(r,s,c,h){if(s){for(var g=r,A=r,b=A.parentNode.children[0],w=s,x=g.hierNode.modifier,T=A.hierNode.modifier,_=b.hierNode.modifier,E=w.hierNode.modifier;w=n(w),A=t(A),w&&A;){g=n(g),b=t(b),g.hierNode.ancestor=r;var C=w.hierNode.prelim+E-A.hierNode.prelim-T+h(w,A);C>0&&(e(a(w,r,c),r,C),T+=C,x+=C),E+=w.hierNode.modifier,T+=A.hierNode.modifier,x+=g.hierNode.modifier,_+=b.hierNode.modifier}w&&!n(g)&&(g.hierNode.thread=w,g.hierNode.modifier+=E-x),A&&!t(b)&&(b.hierNode.thread=A,b.hierNode.modifier+=T-_,c=r)}return c}function n(r){var s=r.children;return s.length&&r.isExpand?s[s.length-1]:r.hierNode.thread}function t(r){var s=r.children;return s.length&&r.isExpand?s[0]:r.hierNode.thread}function a(r,s,c){return r.hierNode.ancestor.parentNode===s.parentNode?r.hierNode.ancestor:c}function e(r,s,c){var h=c/(s.hierNode.i-r.hierNode.i);s.hierNode.change-=h,s.hierNode.shift+=c,s.hierNode.modifier+=c,s.hierNode.prelim+=c,r.hierNode.change+=h}function l(r,s){return r.parentNode===s.parentNode?1:2}D.init=p,D.firstWalk=S,D.secondWalk=v,D.separation=m,D.radialCoordinate=f,D.getViewRect=d},IwbS:function(k,D,i){var y=i("bYtY"),p=i("NC18"),S=i("Qe9p"),v=i("Fofx"),m=i("QBsz"),f=i("y+Vt"),d=i("DN4a"),u=i("Dagg");D.Image=u;var o=i("4fz+");D.Group=o;var n=i("dqUG");D.Text=n;var t=i("2fw6");D.Circle=t;var a=i("SqI9");D.Sector=a;var e=i("RXMa");D.Ring=e;var l=i("h7HQ");D.Polygon=l;var r=i("1Jh7");D.Polyline=r;var s=i("x6Kt");D.Rect=s;var c=i("yxFR");D.Line=c;var h=i("rA99");D.BezierCurve=h;var g=i("jTL6");D.Arc=g;var A=i("1MYJ");D.CompoundPath=A;var b=i("SKnc");D.LinearGradient=b;var w=i("3e3G");D.RadialGradient=w;var x=i("mFDi");D.BoundingRect=x;var T=i("OS9S");D.IncrementalDisplayable=T;var _=i("nPnh"),E=Math.max,C=Math.min,I={},O=1,F={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},R="emphasis",B="normal",P=1,X={},M={};function z(Qt){return f.extend(Qt)}function W(Qt,sr){return p.extendFromString(Qt,sr)}function H(Qt,sr){M[Qt]=sr}function V(Qt){if(M.hasOwnProperty(Qt))return M[Qt]}function Q(Qt,sr,Qr,Cn){var Fn=p.createFromString(Qt,sr);return Qr&&(Cn==="center"&&(Qr=ee(Qr,Fn.getBoundingRect())),se(Fn,Qr)),Fn}function G(Qt,sr,Qr){var Cn=new u({style:{image:Qt,x:sr.x,y:sr.y,width:sr.width,height:sr.height},onload:function(Fn){if(Qr==="center"){var ti={width:Fn.width,height:Fn.height};Cn.setStyle(ee(sr,ti))}}});return Cn}function ee(Qt,sr){var Qr=sr.width/sr.height,Cn=Qt.height*Qr,Fn;Cn<=Qt.width?Fn=Qt.height:(Cn=Qt.width,Fn=Cn/Qr);var ti=Qt.x+Qt.width/2,ki=Qt.y+Qt.height/2;return{x:ti-Cn/2,y:ki-Fn/2,width:Cn,height:Fn}}var q=p.mergePath;function se(Qt,sr){if(!Qt.applyTransform)return;var Qr=Qt.getBoundingRect(),Cn=Qr.calculateTransform(sr);Qt.applyTransform(Cn)}function re(Qt){return _.subPixelOptimizeLine(Qt.shape,Qt.shape,Qt.style),Qt}function Ae(Qt){return _.subPixelOptimizeRect(Qt.shape,Qt.shape,Qt.style),Qt}var Te=_.subPixelOptimize;function Re(Qt){return Qt!=null&&Qt!=="none"}var Ge=y.createHashMap(),Ue=0;function nt(Qt){if(typeof Qt!="string")return Qt;var sr=Ge.get(Qt);return sr||(sr=S.lift(Qt,-.1),Ue<1e4&&(Ge.set(Qt,sr),Ue++)),sr}function Le(Qt){if(!Qt.__hoverStlDirty)return;Qt.__hoverStlDirty=!1;var sr=Qt.__hoverStl;if(!sr){Qt.__cachedNormalStl=Qt.__cachedNormalZ2=null;return}var Qr=Qt.__cachedNormalStl={};Qt.__cachedNormalZ2=Qt.z2;var Cn=Qt.style;for(var Fn in sr)sr[Fn]!=null&&(Qr[Fn]=Cn[Fn]);Qr.fill=Cn.fill,Qr.stroke=Cn.stroke}function le(Qt){var sr=Qt.__hoverStl;if(!sr||Qt.__highlighted)return;var Qr=Qt.__zr,Cn=Qt.useHoverLayer&&Qr&&Qr.painter.type==="canvas";if(Qt.__highlighted=Cn?"layer":"plain",Qt.isGroup||!Qr&&Qt.useHoverLayer)return;var Fn=Qt,ti=Qt.style;Cn&&(Fn=Qr.addHover(Qt),ti=Fn.style),Sr(ti),Cn||Le(Fn),ti.extendFrom(sr),Xe(ti,sr,"fill"),Xe(ti,sr,"stroke"),lr(ti),Cn||(Qt.dirty(!1),Qt.z2+=O)}function Xe(Qt,sr,Qr){!Re(sr[Qr])&&Re(Qt[Qr])&&(Qt[Qr]=nt(Qt[Qr]))}function pe(Qt){var sr=Qt.__highlighted;if(!sr)return;if(Qt.__highlighted=!1,Qt.isGroup)return;if(sr==="layer")Qt.__zr&&Qt.__zr.removeHover(Qt);else{var Qr=Qt.style,Cn=Qt.__cachedNormalStl;Cn&&(Sr(Qr),Qt.setStyle(Cn),lr(Qr));var Fn=Qt.__cachedNormalZ2;Fn!=null&&Qt.z2-Fn===O&&(Qt.z2=Fn)}}function Z(Qt,sr,Qr){var Cn=B,Fn=B,ti;Qt.__highlighted&&(Cn=R,ti=!0),sr(Qt,Qr),Qt.__highlighted&&(Fn=R,ti=!0),Qt.isGroup&&Qt.traverse(function(ki){!ki.isGroup&&sr(ki,Qr)}),ti&&Qt.__highDownOnUpdate&&Qt.__highDownOnUpdate(Cn,Fn)}function Y(Qt,sr){sr=Qt.__hoverStl=sr!==!1&&(Qt.hoverStyle||sr||{}),Qt.__hoverStlDirty=!0,Qt.__highlighted&&(Qt.__cachedNormalStl=null,pe(Qt),le(Qt))}function ne(Qt){!Ce(this,Qt)&&!this.__highByOuter&&Z(this,le)}function ce(Qt){!Ce(this,Qt)&&!this.__highByOuter&&Z(this,pe)}function ye(Qt){this.__highByOuter|=1<<(Qt||0),Z(this,le)}function Ee(Qt){!(this.__highByOuter&=~(1<<(Qt||0)))&&Z(this,pe)}function Ce(Qt,sr){return Qt.__highDownSilentOnTouch&&sr.zrByTouch}function ue(Qt,sr){ge(Qt,!0),Z(Qt,Y,sr)}function ge(Qt,sr){var Qr=sr===!1;if(Qt.__highDownSilentOnTouch=Qt.highDownSilentOnTouch,Qt.__highDownOnUpdate=Qt.highDownOnUpdate,!Qr||Qt.__highDownDispatcher){var Cn=Qr?"off":"on";Qt[Cn]("mouseover",ne)[Cn]("mouseout",ce),Qt[Cn]("emphasis",ye)[Cn]("normal",Ee),Qt.__highByOuter=Qt.__highByOuter||0,Qt.__highDownDispatcher=!Qr}}function Oe(Qt){return!!(Qt&&Qt.__highDownDispatcher)}function Je(Qt){var sr=X[Qt];return sr==null&&P<=32&&(sr=X[Qt]=P++),sr}function lt(Qt,sr,Qr,Cn,Fn,ti,ki){Fn=Fn||I;var Dn=Fn.labelFetcher,Bn=Fn.labelDataIndex,Ft=Fn.labelDimIndex,vt=Fn.labelProp,_e=Qr.getShallow("show"),Ne=Cn.getShallow("show"),Ie;(_e||Ne)&&(Dn&&(Ie=Dn.getFormattedLabel(Bn,"normal",null,Ft,vt)),Ie==null&&(Ie=y.isFunction(Fn.defaultText)?Fn.defaultText(Bn,Fn):Fn.defaultText));var Ze=_e?Ie:null,ct=Ne?y.retrieve2(Dn?Dn.getFormattedLabel(Bn,"emphasis",null,Ft,vt):null,Ie):null;(Ze!=null||ct!=null)&&(ke(Qt,Qr,ti,Fn),ke(sr,Cn,ki,Fn,!0)),Qt.text=Ze,sr.text=ct}function tt(Qt,sr,Qr){var Cn=Qt.style;sr&&(Sr(Cn),Qt.setStyle(sr),lr(Cn)),Cn=Qt.__hoverStl,Qr&&Cn&&(Sr(Cn),y.extend(Cn,Qr),lr(Cn))}function ke(Qt,sr,Qr,Cn,Fn){return Ve(Qt,sr,Cn,Fn),Qr&&y.extend(Qt,Qr),Qt}function st(Qt,sr,Qr){var Cn={isRectText:!0},Fn;Qr===!1?Fn=!0:Cn.autoColor=Qr,Ve(Qt,sr,Cn,Fn)}function Ve(Qt,sr,Qr,Cn){if(Qr=Qr||I,Qr.isRectText){var Fn;Qr.getTextPosition?Fn=Qr.getTextPosition(sr,Cn):(Fn=sr.getShallow("position")||(Cn?null:"inside"),Fn==="outside"&&(Fn="top")),Qt.textPosition=Fn,Qt.textOffset=sr.getShallow("offset");var ti=sr.getShallow("rotate");ti!=null&&(ti*=Math.PI/180),Qt.textRotation=ti,Qt.textDistance=y.retrieve2(sr.getShallow("distance"),Cn?null:5)}var ki=sr.ecModel,Dn=ki&&ki.option.textStyle,Bn=Ot(sr),Ft;if(Bn){Ft={};for(var vt in Bn)if(Bn.hasOwnProperty(vt)){var _e=sr.getModel(["rich",vt]);Ut(Ft[vt]={},_e,Dn,Qr,Cn)}}return Qt.rich=Ft,Ut(Qt,sr,Dn,Qr,Cn,!0),Qr.forceRich&&!Qr.textStyle&&(Qr.textStyle={}),Qt}function Ot(Qt){for(var sr;Qt&&Qt!==Qt.ecModel;){var Qr=(Qt.option||I).rich;if(Qr){sr=sr||{};for(var Cn in Qr)Qr.hasOwnProperty(Cn)&&(sr[Cn]=1)}Qt=Qt.parentModel}return sr}function Ut(Qt,sr,Qr,Cn,Fn,ti){Qr=!Fn&&Qr||I,Qt.textFill=ir(sr.getShallow("color"),Cn)||Qr.color,Qt.textStroke=ir(sr.getShallow("textBorderColor"),Cn)||Qr.textBorderColor,Qt.textStrokeWidth=y.retrieve2(sr.getShallow("textBorderWidth"),Qr.textBorderWidth),Fn||(ti&&(Qt.insideRollbackOpt=Cn,lr(Qt)),Qt.textFill==null&&(Qt.textFill=Cn.autoColor)),Qt.fontStyle=sr.getShallow("fontStyle")||Qr.fontStyle,Qt.fontWeight=sr.getShallow("fontWeight")||Qr.fontWeight,Qt.fontSize=sr.getShallow("fontSize")||Qr.fontSize,Qt.fontFamily=sr.getShallow("fontFamily")||Qr.fontFamily,Qt.textAlign=sr.getShallow("align"),Qt.textVerticalAlign=sr.getShallow("verticalAlign")||sr.getShallow("baseline"),Qt.textLineHeight=sr.getShallow("lineHeight"),Qt.textWidth=sr.getShallow("width"),Qt.textHeight=sr.getShallow("height"),Qt.textTag=sr.getShallow("tag"),(!ti||!Cn.disableBox)&&(Qt.textBackgroundColor=ir(sr.getShallow("backgroundColor"),Cn),Qt.textPadding=sr.getShallow("padding"),Qt.textBorderColor=ir(sr.getShallow("borderColor"),Cn),Qt.textBorderWidth=sr.getShallow("borderWidth"),Qt.textBorderRadius=sr.getShallow("borderRadius"),Qt.textBoxShadowColor=sr.getShallow("shadowColor"),Qt.textBoxShadowBlur=sr.getShallow("shadowBlur"),Qt.textBoxShadowOffsetX=sr.getShallow("shadowOffsetX"),Qt.textBoxShadowOffsetY=sr.getShallow("shadowOffsetY")),Qt.textShadowColor=sr.getShallow("textShadowColor")||Qr.textShadowColor,Qt.textShadowBlur=sr.getShallow("textShadowBlur")||Qr.textShadowBlur,Qt.textShadowOffsetX=sr.getShallow("textShadowOffsetX")||Qr.textShadowOffsetX,Qt.textShadowOffsetY=sr.getShallow("textShadowOffsetY")||Qr.textShadowOffsetY}function ir(Qt,sr){return Qt!=="auto"?Qt:sr&&sr.autoColor?sr.autoColor:null}function lr(Qt){var sr=Qt.textPosition,Qr=Qt.insideRollbackOpt,Cn;if(Qr&&Qt.textFill==null){var Fn=Qr.autoColor,ti=Qr.isRectText,ki=Qr.useInsideStyle,Dn=ki!==!1&&(ki===!0||ti&&sr&&typeof sr=="string"&&sr.indexOf("inside")>=0),Bn=!Dn&&Fn!=null;(Dn||Bn)&&(Cn={textFill:Qt.textFill,textStroke:Qt.textStroke,textStrokeWidth:Qt.textStrokeWidth}),Dn&&(Qt.textFill="#fff",Qt.textStroke==null&&(Qt.textStroke=Fn,Qt.textStrokeWidth==null&&(Qt.textStrokeWidth=2))),Bn&&(Qt.textFill=Fn)}Qt.insideRollback=Cn}function Sr(Qt){var sr=Qt.insideRollback;sr&&(Qt.textFill=sr.textFill,Qt.textStroke=sr.textStroke,Qt.textStrokeWidth=sr.textStrokeWidth,Qt.insideRollback=null)}function mt(Qt,sr){var Qr=sr&&sr.getModel("textStyle");return y.trim([Qt.fontStyle||Qr&&Qr.getShallow("fontStyle")||"",Qt.fontWeight||Qr&&Qr.getShallow("fontWeight")||"",(Qt.fontSize||Qr&&Qr.getShallow("fontSize")||12)+"px",Qt.fontFamily||Qr&&Qr.getShallow("fontFamily")||"sans-serif"].join(" "))}function or(Qt,sr,Qr,Cn,Fn,ti){typeof Fn=="function"&&(ti=Fn,Fn=null);var ki=Cn&&Cn.isAnimationEnabled();if(ki){var Dn=Qt?"Update":"",Bn=Cn.getShallow("animationDuration"+Dn),Ft=Cn.getShallow("animationEasing"+Dn),vt=Cn.getShallow("animationDelay"+Dn);typeof vt=="function"&&(vt=vt(Fn,Cn.getAnimationDelayParams?Cn.getAnimationDelayParams(sr,Fn):null)),typeof Bn=="function"&&(Bn=Bn(Fn)),Bn>0?sr.animateTo(Qr,Bn,vt||0,Ft,ti,!!ti):(sr.stopAnimation(),sr.attr(Qr),ti&&ti())}else sr.stopAnimation(),sr.attr(Qr),ti&&ti()}function et(Qt,sr,Qr,Cn,Fn){or(!0,Qt,sr,Qr,Cn,Fn)}function ur(Qt,sr,Qr,Cn,Fn){or(!1,Qt,sr,Qr,Cn,Fn)}function qr(Qt,sr){for(var Qr=v.identity([]);Qt&&Qt!==sr;)v.mul(Qr,Qt.getLocalTransform(),Qr),Qt=Qt.parent;return Qr}function Fe(Qt,sr,Qr){return sr&&!y.isArrayLike(sr)&&(sr=d.getLocalTransform(sr)),Qr&&(sr=v.invert([],sr)),m.applyTransform([],Qt,sr)}function $t(Qt,sr,Qr){var Cn=sr[4]===0||sr[5]===0||sr[0]===0?1:Math.abs(2*sr[4]/sr[0]),Fn=sr[4]===0||sr[5]===0||sr[2]===0?1:Math.abs(2*sr[4]/sr[2]),ti=[Qt==="left"?-Cn:Qt==="right"?Cn:0,Qt==="top"?-Fn:Qt==="bottom"?Fn:0];return ti=Fe(ti,sr,Qr),Math.abs(ti[0])>Math.abs(ti[1])?ti[0]>0?"right":"left":ti[1]>0?"bottom":"top"}function Lr(Qt,sr,Qr,Cn){if(!Qt||!sr)return;function Fn(Dn){var Bn={};return Dn.traverse(function(Ft){!Ft.isGroup&&Ft.anid&&(Bn[Ft.anid]=Ft)}),Bn}function ti(Dn){var Bn={position:m.clone(Dn.position),rotation:Dn.rotation};return Dn.shape&&(Bn.shape=y.extend({},Dn.shape)),Bn}var ki=Fn(Qt);sr.traverse(function(Dn){if(!Dn.isGroup&&Dn.anid){var Bn=ki[Dn.anid];if(Bn){var Ft=ti(Dn);Dn.attr(ti(Bn)),et(Dn,Ft,Qr,Dn.dataIndex)}}})}function pt(Qt,sr){return y.map(Qt,function(Qr){var Cn=Qr[0];Cn=E(Cn,sr.x),Cn=C(Cn,sr.x+sr.width);var Fn=Qr[1];return Fn=E(Fn,sr.y),Fn=C(Fn,sr.y+sr.height),[Cn,Fn]})}function qt(Qt,sr){var Qr=E(Qt.x,sr.x),Cn=C(Qt.x+Qt.width,sr.x+sr.width),Fn=E(Qt.y,sr.y),ti=C(Qt.y+Qt.height,sr.y+sr.height);if(Cn>=Qr&&ti>=Fn)return{x:Qr,y:Fn,width:Cn-Qr,height:ti-Fn}}function vr(Qt,sr,Qr){sr=y.extend({rectHover:!0},sr);var Cn=sr.style={strokeNoScale:!0};if(Qr=Qr||{x:-1,y:-1,width:2,height:2},Qt)return Qt.indexOf("image://")===0?(Cn.image=Qt.slice(8),y.defaults(Cn,Qr),new u(sr)):Q(Qt.replace("path://",""),sr,Qr,"center")}function pn(Qt,sr,Qr,Cn,Fn){for(var ti=0,ki=Fn[Fn.length-1];ti<Fn.length;ti++){var Dn=Fn[ti];if(fr(Qt,sr,Qr,Cn,Dn[0],Dn[1],ki[0],ki[1]))return!0;ki=Dn}}function fr(Qt,sr,Qr,Cn,Fn,ti,ki,Dn){var Bn=Qr-Qt,Ft=Cn-sr,vt=ki-Fn,_e=Dn-ti,Ne=gr(vt,_e,Bn,Ft);if(dn(Ne))return!1;var Ie=Qt-Fn,Ze=sr-ti,ct=gr(Ie,Ze,Bn,Ft)/Ne;if(ct<0||ct>1)return!1;var gt=gr(Ie,Ze,vt,_e)/Ne;return!(gt<0||gt>1)}function gr(Qt,sr,Qr,Cn){return Qt*Cn-Qr*sr}function dn(Qt){return Qt<=1e-6&&Qt>=-1e-6}H("circle",t),H("sector",a),H("ring",e),H("polygon",l),H("polyline",r),H("rect",s),H("line",c),H("bezierCurve",h),H("arc",g),D.Z2_EMPHASIS_LIFT=O,D.CACHED_LABEL_STYLE_PROPERTIES=F,D.extendShape=z,D.extendPath=W,D.registerShape=H,D.getShapeClass=V,D.makePath=Q,D.makeImage=G,D.mergePath=q,D.resizePath=se,D.subPixelOptimizeLine=re,D.subPixelOptimizeRect=Ae,D.subPixelOptimize=Te,D.setElementHoverStyle=Y,D.setHoverStyle=ue,D.setAsHighDownDispatcher=ge,D.isHighDownDispatcher=Oe,D.getHighlightDigit=Je,D.setLabelStyle=lt,D.modifyLabelStyle=tt,D.setTextStyle=ke,D.setText=st,D.getFont=mt,D.updateProps=et,D.initProps=ur,D.getTransform=qr,D.applyTransform=Fe,D.transformDirection=$t,D.groupTransition=Lr,D.clipPointsByRect=pt,D.clipRectByRect=qt,D.createIcon=vr,D.linePolygonIntersect=pn,D.lineLineIntersect=fr},IyUQ:function(k,D,i){var y=i("bYtY"),p=i("YH21"),S=i("IwbS"),v=i("iLNv"),m=i("fc+c"),f=i("OELB"),d=i("+TT/"),u=i("72pK"),o=S.Rect,n=f.linearMap,t=f.asc,a=y.bind,e=y.each,l=7,r=1,s=30,c="horizontal",h="vertical",g=5,A=["line","bar","candlestick","scatter"],b=m.extend({type:"dataZoom.slider",init:function(_,E){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=E},render:function(_,E,C,I){if(b.superApply(this,"render",arguments),v.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=_.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!I||I.type!=="dataZoom"||I.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){b.superApply(this,"remove",arguments),v.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),v.clear(this,"_dispatchZoomAction")},_buildView:function(){var _=this.group;_.removeAll(),this._resetLocation(),this._resetInterval();var E=this._displayables.barGroup=new S.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),_.add(E),this._positionGroup()},_resetLocation:function(){var _=this.dataZoomModel,E=this.api,C=this._findCoordRect(),I={width:E.getWidth(),height:E.getHeight()},O=this._orient===c?{right:I.width-C.x-C.width,top:I.height-s-l,width:C.width,height:s}:{right:l,top:C.y,width:s,height:C.height},F=d.getLayoutParams(_.option);y.each(["right","top","width","height"],function(B){F[B]==="ph"&&(F[B]=O[B])});var R=d.getLayoutRect(F,I,_.padding);this._location={x:R.x,y:R.y},this._size=[R.width,R.height],this._orient===h&&this._size.reverse()},_positionGroup:function(){var _=this.group,E=this._location,C=this._orient,I=this.dataZoomModel.getFirstTargetAxisModel(),O=I&&I.get("inverse"),F=this._displayables.barGroup,R=(this._dataShadowInfo||{}).otherAxisInverse;F.attr(C===c&&!O?{scale:R?[1,1]:[1,-1]}:C===c&&O?{scale:R?[-1,1]:[-1,-1]}:C===h&&!O?{scale:R?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:R?[-1,-1]:[-1,1],rotation:Math.PI/2});var B=_.getBoundingRect([F]);_.attr("position",[E.x-B.x,E.y-B.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var _=this.dataZoomModel,E=this._size,C=this._displayables.barGroup;C.add(new o({silent:!0,shape:{x:0,y:0,width:E[0],height:E[1]},style:{fill:_.get("backgroundColor")},z2:-40})),C.add(new o({shape:{x:0,y:0,width:E[0],height:E[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var _=this._dataShadowInfo=this._prepareDataShadowInfo();if(!_)return;var E=this._size,C=_.series,I=C.getRawData(),O=C.getShadowDim?C.getShadowDim():_.otherDim;if(O==null)return;var F=I.getDataExtent(O),R=(F[1]-F[0])*.3;F=[F[0]-R,F[1]+R];var B=[0,E[1]],P=[0,E[0]],X=[[E[0],0],[0,0]],M=[],z=P[1]/(I.count()-1),W=0,H=Math.round(I.count()/E[0]),V;I.each([O],function(G,ee){if(H>0&&ee%H){W+=z;return}var q=G==null||isNaN(G)||G==="",se=q?0:n(G,F,B,!0);q&&!V&&ee?(X.push([X[X.length-1][0],0]),M.push([M[M.length-1][0],0])):!q&&V&&(X.push([W,0]),M.push([W,0])),X.push([W,se]),M.push([W,se]),W+=z,V=q});var Q=this.dataZoomModel;this._displayables.barGroup.add(new S.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 S.Polyline({shape:{points:M},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,E=_.get("showDataShadow");if(E===!1)return;var C,I=this.ecModel;return _.eachTargetAxis(function(O,F){var R=_.getAxisProxy(O.name,F).getTargetSeriesModels();y.each(R,function(B){if(C)return;if(E!==!0&&y.indexOf(A,B.get("type"))<0)return;var P=I.getComponent(O.axis,F).axis,X=w(O.name),M,z=B.coordinateSystem;X!=null&&z.getOtherAxis&&(M=z.getOtherAxis(P).inverse),X=B.getData().mapDimension(X),C={thisAxis:P,series:B,thisDim:O.name,otherDim:X,otherAxisInverse:M}},this)},this),C},_renderHandle:function(){var _=this._displayables,E=_.handles=[],C=_.handleLabels=[],I=this._displayables.barGroup,O=this._size,F=this.dataZoomModel;I.add(_.filler=new o({draggable:!0,cursor:x(this._orient),drift:a(this._onDragMove,this,"all"),ondragstart:a(this._showDataInfo,this,!0),ondragend:a(this._onDragEnd,this),onmouseover:a(this._showDataInfo,this,!0),onmouseout:a(this._showDataInfo,this,!1),style:{fill:F.get("fillerColor"),textPosition:"inside"}})),I.add(new o({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:O[0],height:O[1]},style:{stroke:F.get("dataBackgroundColor")||F.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(R){var B=S.createIcon(F.get("handleIcon"),{cursor:x(this._orient),draggable:!0,drift:a(this._onDragMove,this,R),ondragend:a(this._onDragEnd,this),onmouseover:a(this._showDataInfo,this,!0),onmouseout:a(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),P=B.getBoundingRect();this._handleHeight=f.parsePercent(F.get("handleSize"),this._size[1]),this._handleWidth=P.width/P.height*this._handleHeight,B.setStyle(F.getModel("handleStyle").getItemStyle());var X=F.get("handleColor");X!=null&&(B.style.fill=X),I.add(E[R]=B);var M=F.textStyleModel;this.group.add(C[R]=new S.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:M.getTextColor(),textFont:M.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),E=this._getViewExtent();this._handleEnds=[n(_[0],[0,100],E,!0),n(_[1],[0,100],E,!0)]},_updateInterval:function(_,E){var C=this.dataZoomModel,I=this._handleEnds,O=this._getViewExtent(),F=C.findRepresentativeAxisProxy().getMinMaxSpan(),R=[0,100];u(E,I,O,C.get("zoomLock")?"all":_,F.minSpan!=null?n(F.minSpan,R,O,!0):null,F.maxSpan!=null?n(F.maxSpan,R,O,!0):null);var B=this._range,P=this._range=t([n(I[0],O,R,!0),n(I[1],O,R,!0)]);return!B||B[0]!==P[0]||B[1]!==P[1]},_updateView:function(_){var E=this._displayables,C=this._handleEnds,I=t(C.slice()),O=this._size;e([0,1],function(F){var R=E.handles[F],B=this._handleHeight;R.attr({scale:[B/2,B/2],position:[C[F],O[1]/2-B/2]})},this),E.filler.setShape({x:I[0],y:0,width:I[1]-I[0],height:O[1]}),this._updateDataInfo(_)},_updateDataInfo:function(_){var E=this.dataZoomModel,C=this._displayables,I=C.handleLabels,O=this._orient,F=["",""];if(E.get("showDetail")){var R=E.findRepresentativeAxisProxy();if(R){var B=R.getAxisModel().axis,P=this._range,X=_?R.calculateDataWindow({start:P[0],end:P[1]}).valueWindow:R.getDataValueWindow();F=[this._formatLabel(X[0],B),this._formatLabel(X[1],B)]}}var M=t(this._handleEnds.slice());z.call(this,0),z.call(this,1);function z(W){var H=S.getTransform(C.handles[W].parent,this.group),V=S.transformDirection(W===0?"right":"left",H),Q=this._handleWidth/2+g,G=S.applyTransform([M[W]+(W===0?-Q:Q),this._size[1]/2],H);I[W].setStyle({x:G[0],y:G[1],textVerticalAlign:O===c?"middle":V,textAlign:O===c?V:"center",text:F[W]})}},_formatLabel:function(_,E){var C=this.dataZoomModel,I=C.get("labelFormatter"),O=C.get("labelPrecision");(O==null||O==="auto")&&(O=E.getPixelPrecision());var F=_==null||isNaN(_)?"":E.type==="category"||E.type==="time"?E.scale.getLabel(Math.round(_)):_.toFixed(Math.min(O,20));return y.isFunction(I)?I(_,F):y.isString(I)?I.replace("{value}",F):F},_showDataInfo:function(_){_=this._dragging||_;var E=this._displayables.handleLabels;E[0].attr("invisible",!_),E[1].attr("invisible",!_)},_onDragMove:function(_,E,C,I){this._dragging=!0,p.stop(I.event);var O=this._displayables.barGroup.getLocalTransform(),F=S.applyTransform([E,C],O,!0),R=this._updateInterval(_,F[0]),B=this.dataZoomModel.get("realtime");this._updateView(!B),R&&B&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var E=this._size,C=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(C[0]<0||C[0]>E[0]||C[1]<0||C[1]>E[1])return;var I=this._handleEnds,O=(I[0]+I[1])/2,F=this._updateInterval("all",C[0]-O);this._updateView(),F&&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(I){if(!_&&I.length){var O=I[0].model.coordinateSystem;_=O.getRect&&O.getRect()}}),!_){var E=this.api.getWidth(),C=this.api.getHeight();_={x:E*.2,y:C*.2,width:E*.6,height:C*.6}}return _}});function w(_){var E={x:"y",y:"x",radius:"angle",angle:"radius"};return E[_]}function x(_){return _==="vertical"?"ns-resize":"ew-resize"}var T=b;k.exports=T},IzEo:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("lnY3"),v=i.n(S),m=i("Znn+"),f=i("14J3"),d=i("jCWc")},J66h:function(k,D,i){(function(y){var p,S;(function(v,m){k.exports=m(v)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(v){"use strict";v=v||{};var m=v.Base64,f="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(B){for(var P={},X=0,M=B.length;X<M;X++)P[B.charAt(X)]=X;return P}(d),o=String.fromCharCode,n=function(P){if(P.length<2){var X=P.charCodeAt(0);return X<128?P:X<2048?o(192|X>>>6)+o(128|X&63):o(224|X>>>12&15)+o(128|X>>>6&63)+o(128|X&63)}else{var X=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return o(240|X>>>18&7)+o(128|X>>>12&63)+o(128|X>>>6&63)+o(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a=function(P){return P.replace(t,n)},e=function(P){var X=[0,2,1][P.length%3],M=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),z=[d.charAt(M>>>18),d.charAt(M>>>12&63),X>=2?"=":d.charAt(M>>>6&63),X>=1?"=":d.charAt(M&63)];return z.join("")},l=v.btoa&&typeof v.btoa=="function"?function(B){return v.btoa(B)}:function(B){if(B.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return B.replace(/[\s\S]{1,3}/g,e)},r=function(P){return l(a(String(P)))},s=function(P){return P.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},c=function(P,X){return X?s(r(P)):r(P)},h=function(P){return c(P,!0)},g;v.Uint8Array&&(g=function(P,X){for(var M="",z=0,W=P.length;z<W;z+=3){var H=P[z],V=P[z+1],Q=P[z+2],G=H<<16|V<<8|Q;M+=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?s(M):M});var A=/[\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),M=X-65536;return o((M>>>10)+55296)+o((M&1023)+56320);case 3:return o((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return o((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},w=function(P){return P.replace(A,b)},x=function(P){var X=P.length,M=X%4,z=(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),W=[o(z>>>16),o(z>>>8&255),o(z&255)];return W.length-=[0,0,2,1][M],W.join("")},T=v.atob&&typeof v.atob=="function"?function(B){return v.atob(B)}:function(B){return B.replace(/\S{1,4}/g,x)},_=function(P){return T(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(P){return w(T(P))},C=function(P){return String(P).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},I=function(P){return E(C(P))},O;v.Uint8Array&&(O=function(P){return Uint8Array.from(_(C(P)),function(X){return X.charCodeAt(0)})});var F=function(){var P=v.Base64;return v.Base64=m,P};if(v.Base64={VERSION:f,atob:_,btoa:l,fromBase64:I,toBase64:c,utob:a,encode:c,encodeURI:h,btou:w,decode:I,noConflict:F,fromUint8Array:g,toUint8Array:O},typeof Object.defineProperty=="function"){var R=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};v.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",R(function(){return I(this)})),Object.defineProperty(String.prototype,"toBase64",R(function(B){return c(this,B)})),Object.defineProperty(String.prototype,"toBase64URI",R(function(){return c(this,!0)}))}}return v.Meteor&&(Base64=v.Base64),k.exports?k.exports.Base64=v.Base64:!(p=[],S=function(){return v.Base64}.apply(D,p),S!==void 0&&(k.exports=S)),{Base64:v.Base64}})}).call(this,i("yLpj"))},JEkh:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("ItGF"),f=i("4NO4"),d=i("7aKB"),u=i("OKJ2"),o=d.addCommas,n=d.encodeHTML;function t(l){f.defaultEmphasis(l,"label",["show"])}var a=S.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,r,s){this.mergeDefaultAndTheme(l,s),this._mergeOption(l,s,!1,!0)},isAnimationEnabled:function(){if(m.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,r){this._mergeOption(l,r,!1,!1)},_mergeOption:function(l,r,s,c){var h=this.constructor,g=this.mainType+"Model";s||r.eachSeries(function(A){var b=A.get(this.mainType,!0),w=A[g];if(!b||!b.data){A[g]=null;return}w?w._mergeOption(b,r,!0):(c&&t(b),v.each(b.data,function(x){x instanceof Array?(t(x[0]),t(x[1])):t(x)}),w=new h(b,this,r),v.extend(w,{mainType:this.mainType,seriesIndex:A.seriesIndex,name:A.name,createdBySelf:!0}),w.__hostSeries=A),A[g]=w},this)},formatTooltip:function(l){var r=this.getData(),s=this.getRawValue(l),c=v.isArray(s)?v.map(s,o).join(", "):o(s),h=r.getName(l),g=n(this.name);return(s!=null||h)&&(g+="<br />"),h&&(g+=n(h),s!=null&&(g+=" : ")),s!=null&&(g+=n(c)),g},getData:function(){return this._data},setData:function(l){this._data=l}});v.mixin(a,u);var e=a;k.exports=e},JGo8:function(k,D,i){},JHRd:function(k,D,i){var y=i("Kz5y"),p=y.Uint8Array;k.exports=p},JHgL:function(k,D,i){var y=i("QkVE");function p(S){return y(this,S).get(S)}k.exports=p},JLnu:function(k,D,i){var y=i("+TT/"),p=i("OELB"),S=p.parsePercent,v=p.linearMap;function m(o,n){return y.getLayoutRect(o.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function f(o,n){for(var t=o.mapDimension("value"),a=o.mapArray(t,function(c){return c}),e=[],l=n==="ascending",r=0,s=o.count();r<s;r++)e[r]=r;return typeof n=="function"?e.sort(n):n!=="none"&&e.sort(function(c,h){return l?a[c]-a[h]:a[h]-a[c]}),e}function d(o){o.each(function(n){var t=o.getItemModel(n),a=t.getModel("label"),e=a.get("position"),l=t.getModel("labelLine"),r=o.getItemLayout(n),s=r.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",h,g,A,b;if(c)e==="insideLeft"?(g=(s[0][0]+s[3][0])/2+5,A=(s[0][1]+s[3][1])/2,h="left"):e==="insideRight"?(g=(s[1][0]+s[2][0])/2-5,A=(s[1][1]+s[2][1])/2,h="right"):(g=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,A=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,h="center"),b=[[g,A],[g,A]];else{var w,x,T,_=l.get("length");e==="left"?(w=(s[3][0]+s[0][0])/2,x=(s[3][1]+s[0][1])/2,T=w-_,g=T-5,h="right"):e==="right"?(w=(s[1][0]+s[2][0])/2,x=(s[1][1]+s[2][1])/2,T=w+_,g=T+5,h="left"):e==="rightTop"?(w=s[1][0],x=s[1][1],T=w+_,g=T+5,h="top"):e==="rightBottom"?(w=s[2][0],x=s[2][1],T=w+_,g=T+5,h="bottom"):e==="leftTop"?(w=s[0][0],x=s[1][1],T=w-_,g=T-5,h="right"):e==="leftBottom"?(w=s[3][0],x=s[2][1],T=w-_,g=T-5,h="right"):(w=(s[1][0]+s[2][0])/2,x=(s[1][1]+s[2][1])/2,T=w+_,g=T+5,h="left");var E=x;b=[[w,x],[T,E]],A=E}r.label={linePoints:b,x:g,y:A,verticalAlign:"middle",textAlign:h,inside:c}})}function u(o,n,t){o.eachSeriesByType("funnel",function(a){var e=a.getData(),l=e.mapDimension("value"),r=a.get("sort"),s=m(a,n),c=f(e,r),h=[S(a.get("minSize"),s.width),S(a.get("maxSize"),s.width)],g=e.getDataExtent(l),A=a.get("min"),b=a.get("max");A==null&&(A=Math.min(g[0],0)),b==null&&(b=g[1]);var w=a.get("funnelAlign"),x=a.get("gap"),T=(s.height-x*(e.count()-1))/e.count(),_=s.y,E=function(X,M){var z=e.get(l,X)||0,W=v(z,[A,b],h,!0),H;switch(w){case"left":H=s.x;break;case"center":H=s.x+(s.width-W)/2;break;case"right":H=s.x+s.width-W;break}return[[H,M],[H+W,M]]};r==="ascending"&&(T=-T,x=-x,_+=s.height,c=c.reverse());for(var C=0;C<c.length;C++){var I=c[C],O=c[C+1],F=e.getItemModel(I),R=F.get("itemStyle.height");R==null?R=T:(R=S(R,s.height),r==="ascending"&&(R=-R));var B=E(I,_),P=E(O,_+R);_+=R+x,e.setItemLayout(I,{points:B.concat(P.slice().reverse())})}d(e)})}k.exports=u},JSQU:function(k,D,i){var y=i("YESw"),p="__lodash_hash_undefined__";function S(v,m){var f=this.__data__;return this.size+=this.has(v)?0:1,f[v]=y&&m===void 0?p:m,this}k.exports=S},JSwD:function(k,D,i){"use strict";function y(s){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(s)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=r;var p=v(i("6BzB"));function S(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return S=function(){return s},s}function v(s){if(s&&s.__esModule)return s;if(s===null||y(s)!=="object"&&typeof s!="function")return{default:s};var c=S();if(c&&c.has(s))return c.get(s);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in s)if(Object.prototype.hasOwnProperty.call(s,A)){var b=g?Object.getOwnPropertyDescriptor(s,A):null;b&&(b.get||b.set)?Object.defineProperty(h,A,b):h[A]=s[A]}return h.default=s,c&&c.set(s,h),h}var m=15,f=852,d=592,u=0,o=1,n=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],a=[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 r(s,c,h,g,A,b,w,x){var T=x.bits,_=0,E=0,C=0,I=0,O=0,F=0,R=0,B=0,P=0,X=0,M,z,W,H,V,Q=null,G=0,ee,q=new p.Buf16(m+1),se=new p.Buf16(m+1),re=null,Ae=0,Te,Re,Ge;for(_=0;_<=m;_++)q[_]=0;for(E=0;E<g;E++)q[c[h+E]]++;for(O=T,I=m;I>=1&&!(q[I]!==0);I--);if(O>I&&(O=I),I===0)return A[b++]=1<<24|64<<16|0,A[b++]=1<<24|64<<16|0,x.bits=1,0;for(C=1;C<I&&!(q[C]!==0);C++);for(O<C&&(O=C),B=1,_=1;_<=m;_++)if(B<<=1,B-=q[_],B<0)return-1;if(B>0&&(s===u||I!==1))return-1;for(se[1]=0,_=1;_<m;_++)se[_+1]=se[_]+q[_];for(E=0;E<g;E++)c[h+E]!==0&&(w[se[c[h+E]]++]=E);if(s===u?(Q=re=w,ee=19):s===o?(Q=t,G-=257,re=a,Ae-=257,ee=256):(Q=e,re=l,ee=-1),X=0,E=0,_=C,V=b,F=O,R=0,W=-1,P=1<<O,H=P-1,s===o&&P>f||s===n&&P>d)return 1;for(;;){Te=_-R,w[E]<ee?(Re=0,Ge=w[E]):w[E]>ee?(Re=re[Ae+w[E]],Ge=Q[G+w[E]]):(Re=32+64,Ge=0),M=1<<_-R,z=1<<F,C=z;do z-=M,A[V+(X>>R)+z]=Te<<24|Re<<16|Ge|0;while(z!==0);for(M=1<<_-1;X&M;)M>>=1;if(M!==0?(X&=M-1,X+=M):X=0,E++,--q[_]===0){if(_===I)break;_=c[h+w[E]]}if(_>O&&(X&H)!==W){for(R===0&&(R=O),V+=C,F=_-R,B=1<<F;F+R<I&&!(B-=q[F+R],B<=0);)F++,B<<=1;if(P+=1<<F,s===o&&P>f||s===n&&P>d)return 1;W=X&H,A[W]=O<<24|F<<16|V-b|0}}return X!==0&&(A[V+X]=_-R<<24|64<<16|0),x.bits=O,0}},JTzB:function(k,D,i){var y=i("NykK"),p=i("ExA7"),S="[object Arguments]";function v(m){return p(m)&&y(m)==S}k.exports=v},JVwQ:function(k,D,i){var y=i("ProS"),p=i("1NG9"),S=p.Polygon,v=i("IwbS"),m=i("bYtY"),f=m.bind,d=m.extend,u=i("gPAo"),o=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,a,e){var l=t.getData(),r=this.group,s=t.getLayerSeries(),c=l.getLayout("layoutInfo"),h=c.rect,g=c.boundaryGap;r.attr("position",[0,h.y+g[0]]);function A(T){return T.name}var b=new u(this._layersSeries||[],s,A,A),w={};b.add(f(x,this,"add")).update(f(x,this,"update")).remove(f(x,this,"remove")).execute();function x(T,_,E){var C=this._layers;if(T==="remove"){r.remove(C[_]);return}for(var I=[],O=[],F,R=s[_].indices,B=0;B<R.length;B++){var P=l.getItemLayout(R[B]),X=P.x,M=P.y0,z=P.y;I.push([X,M]),O.push([X,M+z]),F=l.getItemVisual(R[B],"color")}var W,H,V=l.getItemLayout(R[0]),Q=l.getItemModel(R[B-1]),G=Q.getModel("label"),ee=G.get("margin");if(T==="add"){var q=w[_]=new v.Group;W=new S({shape:{points:I,stackedOnPoints:O,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),H=new v.Text({style:{x:V.x-ee,y:V.y0+V.y/2}}),q.add(W),q.add(H),r.add(q),W.setClipPath(n(W.getBoundingRect(),t,function(){W.removeClipPath()}))}else{var q=C[E];W=q.childAt(0),H=q.childAt(1),r.add(q),w[_]=q,v.updateProps(W,{shape:{points:I,stackedOnPoints:O}},t),v.updateProps(H,{style:{x:V.x-ee,y:V.y0+V.y/2}},t)}var se=Q.getModel("emphasis.itemStyle"),re=Q.getModel("itemStyle");v.setTextStyle(H.style,G,{text:G.get("show")?t.getFormattedLabel(R[B-1],"normal")||l.getName(R[B-1]):null,textVerticalAlign:"middle"}),W.setStyle(d({fill:F},re.getItemStyle(["color"]))),v.setHoverStyle(W,se.getItemStyle())}this._layersSeries=s,this._layers=w},dispose:function(){}});function n(t,a,e){var l=new v.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return v.initProps(l,{shape:{width:t.width+20,height:t.height+20}},a,e),l}k.exports=o},JgUQ:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},JsLm:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),l=i.n(e),r=i("q1tI"),s=i("i8i4"),c=i("TSYQ"),h=i.n(c),g=i("zT1h"),A=i("cDf5"),b=i.n(A),w=i("BGR+"),x=i("VTBJ"),T=i("1OyB"),_=i("vuIU"),E=i("Ji7U"),C=i("LK+K"),I=i("m+aA"),O=i("Zm9Q"),F=i("Kwbf"),R=i("c+Xe"),B=i("bdgK"),P="rc-observer-key",X=function(lt){Object(E.a)(ke,lt);var tt=Object(C.a)(ke);function ke(){var st;return Object(T.a)(this,ke),st=tt.apply(this,arguments),st.resizeObserver=null,st.childNode=null,st.currentElement=null,st.state={width:0,height:0,offsetHeight:0,offsetWidth:0},st.onResize=function(Ve){var Ot=st.props.onResize,Ut=Ve[0].target,ir=Ut.getBoundingClientRect(),lr=ir.width,Sr=ir.height,mt=Ut.offsetWidth,or=Ut.offsetHeight,et=Math.floor(lr),ur=Math.floor(Sr);if(st.state.width!==et||st.state.height!==ur||st.state.offsetWidth!==mt||st.state.offsetHeight!==or){var qr={width:et,height:ur,offsetWidth:mt,offsetHeight:or};st.setState(qr),Ot&&Promise.resolve().then(function(){Ot(Object(x.a)(Object(x.a)({},qr),{},{offsetWidth:mt,offsetHeight:or}))})}},st.setChildNode=function(Ve){st.childNode=Ve},st}return Object(_.a)(ke,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Ve=this.props.disabled;if(Ve){this.destroyObserver();return}var Ot=Object(I.a)(this.childNode||this),Ut=Ot!==this.currentElement;Ut&&(this.destroyObserver(),this.currentElement=Ot),!this.resizeObserver&&Ot&&(this.resizeObserver=new B.default(this.onResize),this.resizeObserver.observe(Ot))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Ve=this.props.children,Ot=Object(O.a)(Ve);if(Ot.length>1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Ot.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Ut=Ot[0];if(r.isValidElement(Ut)&&Object(R.c)(Ut)){var ir=Ut.ref;Ot[0]=r.cloneElement(Ut,{ref:Object(R.a)(ir,this.setChildNode)})}return Ot.length===1?Ot[0]:Ot.map(function(lr,Sr){return!r.isValidElement(lr)||"key"in lr&&lr.key!==null?lr:r.cloneElement(lr,{key:"".concat(P,"-").concat(Sr)})})}}]),ke}(r.Component);X.displayName="ResizeObserver";var M=X,z=i("H84U"),W=i("RIqP"),H=i.n(W),V=i("xEkU"),Q=i.n(V);function G(lt){var tt,ke=function(Ot){return function(){tt=null,lt.apply(void 0,H()(Ot))}},st=function(){if(tt==null){for(var Ot=arguments.length,Ut=new Array(Ot),ir=0;ir<Ot;ir++)Ut[ir]=arguments[ir];tt=Q()(ke(Ut))}};return st.cancel=function(){return Q.a.cancel(tt)},st}function ee(){return function(lt,tt,ke){var st=ke.value,Ve=!1;return{configurable:!0,get:function(){if(Ve||this===lt.prototype||this.hasOwnProperty(tt))return st;var Ut=G(st.bind(this));return Ve=!0,Object.defineProperty(this,tt,{value:Ut,configurable:!0,writable:!0}),Ve=!1,Ut}}}}function q(lt){return lt!==window?lt.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function se(lt,tt,ke){return ke!==void 0&&tt.top>lt.top-ke?ke+tt.top:void 0}function re(lt,tt,ke){if(ke!==void 0&&tt.bottom<lt.bottom+ke){var st=window.innerHeight-tt.bottom;return ke+st}return}var Ae=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Te=[];function Re(){return Te}function Ge(lt,tt){if(!lt)return;var ke=Te.find(function(st){return st.target===lt});ke?ke.affixList.push(tt):(ke={target:lt,affixList:[tt],eventHandlers:{}},Te.push(ke),Ae.forEach(function(st){ke.eventHandlers[st]=Object(g.a)(lt,st,function(){ke.affixList.forEach(function(Ve){Ve.lazyUpdatePosition()})})}))}function Ue(lt){var tt=Te.find(function(ke){var st=ke.affixList.some(function(Ve){return Ve===lt});return st&&(ke.affixList=ke.affixList.filter(function(Ve){return Ve!==lt})),st});tt&&tt.affixList.length===0&&(Te=Te.filter(function(ke){return ke!==tt}),Ae.forEach(function(ke){var st=tt.eventHandlers[ke];st&&st.remove&&st.remove()}))}var nt=function(lt,tt,ke,st){var Ve=arguments.length,Ot=Ve<3?tt:st===null?st=Object.getOwnPropertyDescriptor(tt,ke):st,Ut;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")Ot=Reflect.decorate(lt,tt,ke,st);else for(var ir=lt.length-1;ir>=0;ir--)(Ut=lt[ir])&&(Ot=(Ve<3?Ut(Ot):Ve>3?Ut(tt,ke,Ot):Ut(tt,ke))||Ot);return Ve>3&&Ot&&Object.defineProperty(tt,ke,Ot),Ot};function Le(){return typeof window!="undefined"?window:null}var le;(function(lt){lt[lt.None=0]="None",lt[lt.Prepare=1]="Prepare"})(le||(le={}));var Xe=function(lt){a()(ke,lt);var tt=l()(ke);function ke(){var st;return f()(this,ke),st=tt.apply(this,arguments),st.state={status:le.None,lastAffix:!1,prevTarget:null},st.getOffsetTop=function(){var Ve=st.props.offsetBottom,Ot=st.props.offsetTop;return Ve===void 0&&Ot===void 0&&(Ot=0),Ot},st.getOffsetBottom=function(){return st.props.offsetBottom},st.savePlaceholderNode=function(Ve){st.placeholderNode=Ve},st.saveFixedNode=function(Ve){st.fixedNode=Ve},st.measure=function(){var Ve=st.state,Ot=Ve.status,Ut=Ve.lastAffix,ir=st.props.onChange,lr=st.getTargetFunc();if(Ot!==le.Prepare||!st.fixedNode||!st.placeholderNode||!lr)return;var Sr=st.getOffsetTop(),mt=st.getOffsetBottom(),or=lr();if(!or)return;var et={status:le.None},ur=q(or),qr=q(st.placeholderNode),Fe=se(qr,ur,Sr),$t=re(qr,ur,mt);Fe!==void 0?(et.affixStyle={position:"fixed",top:Fe,width:qr.width,height:qr.height},et.placeholderStyle={width:qr.width,height:qr.height}):$t!==void 0&&(et.affixStyle={position:"fixed",bottom:$t,width:qr.width,height:qr.height},et.placeholderStyle={width:qr.width,height:qr.height}),et.lastAffix=!!et.affixStyle,ir&&Ut!==et.lastAffix&&ir(et.lastAffix),st.setState(et)},st.prepareMeasure=function(){if(st.setState({status:le.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var Ve},st.render=function(){var Ve=st.context.getPrefixCls,Ot=st.state,Ut=Ot.affixStyle,ir=Ot.placeholderStyle,lr=st.props,Sr=lr.prefixCls,mt=lr.children,or=h()(v()({},Ve("affix",Sr),Ut)),et=Object(w.default)(st.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(M,{onResize:function(){st.updatePosition()}},r.createElement("div",p()({},et,{ref:st.savePlaceholderNode}),Ut&&r.createElement("div",{style:ir,"aria-hidden":"true"}),r.createElement("div",{className:or,ref:st.saveFixedNode,style:Ut},r.createElement(M,{onResize:function(){st.updatePosition()}},mt))))},st}return u()(ke,[{key:"getTargetFunc",value:function(){var Ve=this.context.getTargetContainer,Ot=this.props.target;return Ot!==void 0?Ot:Ve||Le}},{key:"componentDidMount",value:function(){var Ve=this,Ot=this.getTargetFunc();Ot&&(this.timeout=setTimeout(function(){Ge(Ot(),Ve),Ve.updatePosition()}))}},{key:"componentDidUpdate",value:function(Ve){var Ot=this.state.prevTarget,Ut=this.getTargetFunc(),ir=null;Ut&&(ir=Ut()||null),Ot!==ir&&(Ue(this),ir&&(Ge(ir,this),this.updatePosition()),this.setState({prevTarget:ir})),(Ve.offsetTop!==this.props.offsetTop||Ve.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),Ue(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var Ve=this.getTargetFunc(),Ot=this.state.affixStyle;if(Ve&&Ot){var Ut=this.getOffsetTop(),ir=this.getOffsetBottom(),lr=Ve();if(lr&&this.placeholderNode){var Sr=q(lr),mt=q(this.placeholderNode),or=se(mt,Sr,Ut),et=re(mt,Sr,ir);if(or!==void 0&&Ot.top===or||et!==void 0&&Ot.bottom===et)return}}this.prepareMeasure()}}]),ke}(r.Component);Xe.contextType=z.b,nt([ee()],Xe.prototype,"updatePosition",null),nt([ee()],Xe.prototype,"lazyUpdatePosition",null);var pe=Xe,Z=i("zAh6"),Y=i("i6bk"),ne=r.createContext(null),ce=ne;function ye(){return window}function Ee(lt,tt){if(!lt.getClientRects().length)return 0;var ke=lt.getBoundingClientRect();return ke.width||ke.height?tt===window?(tt=lt.ownerDocument.documentElement,ke.top-tt.clientTop):ke.top-tt.getBoundingClientRect().top:ke.top}var Ce=/#(\S+)$/,ue=function(lt){a()(ke,lt);var tt=l()(ke);function ke(){var st;return f()(this,ke),st=tt.apply(this,arguments),st.state={activeLink:null},st.links=[],st.registerLink=function(Ve){st.links.includes(Ve)||st.links.push(Ve)},st.unregisterLink=function(Ve){var Ot=st.links.indexOf(Ve);Ot!==-1&&st.links.splice(Ot,1)},st.getContainer=function(){var Ve=st.context.getTargetContainer,Ot=st.props.getContainer,Ut=Ot||Ve||ye;return Ut()},st.handleScrollTo=function(Ve){var Ot=st.props,Ut=Ot.offsetTop,ir=Ot.targetOffset;st.setCurrentActiveLink(Ve);var lr=st.getContainer(),Sr=Object(Y.a)(lr,!0),mt=Ce.exec(Ve);if(!mt)return;var or=document.getElementById(mt[1]);if(!or)return;var et=Ee(or,lr),ur=Sr+et;ur-=ir!==void 0?ir:Ut||0,st.animating=!0,Object(Z.a)(ur,{callback:function(){st.animating=!1},getContainer:st.getContainer})},st.saveInkNode=function(Ve){st.inkNode=Ve},st.setCurrentActiveLink=function(Ve){var Ot=st.state.activeLink,Ut=st.props.onChange;Ot!==Ve&&(st.setState({activeLink:Ve}),Ut&&Ut(Ve))},st.handleScroll=function(){if(st.animating)return;var Ve=st.props,Ot=Ve.offsetTop,Ut=Ve.bounds,ir=Ve.targetOffset,lr=st.getCurrentAnchor(ir!==void 0?ir:Ot||0,Ut);st.setCurrentActiveLink(lr)},st.updateInk=function(){var Ve=n()(st),Ot=Ve.prefixCls,Ut=s.findDOMNode(n()(st)),ir=Ut.getElementsByClassName("".concat(Ot,"-link-title-active"))[0];ir&&(st.inkNode.style.top="".concat(ir.offsetTop+ir.clientHeight/2-4.5,"px"))},st.render=function(){var Ve=st.context,Ot=Ve.getPrefixCls,Ut=Ve.direction,ir=st.props,lr=ir.prefixCls,Sr=ir.className,mt=Sr===void 0?"":Sr,or=ir.style,et=ir.offsetTop,ur=ir.affix,qr=ir.showInkInFixed,Fe=ir.children,$t=st.state.activeLink,Lr=Ot("anchor",lr);st.prefixCls=Lr;var pt=h()("".concat(Lr,"-ink-ball"),{visible:$t}),qt=h()(mt,"".concat(Lr,"-wrapper"),v()({},"".concat(Lr,"-rtl"),Ut==="rtl")),vr=h()(Lr,{fixed:!ur&&!qr}),pn=p()({maxHeight:et?"calc(100vh - ".concat(et,"px)"):"100vh"},or),fr=r.createElement("div",{className:qt,style:pn},r.createElement("div",{className:vr},r.createElement("div",{className:"".concat(Lr,"-ink")},r.createElement("span",{className:pt,ref:st.saveInkNode})),Fe));return r.createElement(ce.Provider,{value:{registerLink:st.registerLink,unregisterLink:st.unregisterLink,activeLink:st.state.activeLink,scrollTo:st.handleScrollTo,onClick:st.props.onClick}},ur?r.createElement(pe,{offsetTop:et,target:st.getContainer},fr):fr)},st}return u()(ke,[{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 Ve=this.getContainer();this.scrollContainer!==Ve&&(this.scrollContainer=Ve,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 Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ut=this.props.getCurrentAnchor;if(typeof Ut=="function")return Ut();var ir=[],lr=this.getContainer();if(this.links.forEach(function(mt){var or=Ce.exec(mt.toString());if(!or)return;var et=document.getElementById(or[1]);if(et){var ur=Ee(et,lr);ur<Ve+Ot&&ir.push({link:mt,top:ur})}}),ir.length){var Sr=ir.reduce(function(mt,or){return or.top>mt.top?or:mt});return Sr.link}return""}}]),ke}(r.Component);ue.defaultProps={affix:!0,showInkInFixed:!1},ue.contextType=z.b;var ge=function(lt){a()(ke,lt);var tt=l()(ke);function ke(){var st;return f()(this,ke),st=tt.apply(this,arguments),st.handleClick=function(Ve){var Ot=st.context,Ut=Ot.scrollTo,ir=Ot.onClick,lr=st.props,Sr=lr.href,mt=lr.title;ir&&ir(Ve,{title:mt,href:Sr}),Ut(Sr)},st.renderAnchorLink=function(Ve){var Ot=Ve.getPrefixCls,Ut=st.props,ir=Ut.prefixCls,lr=Ut.href,Sr=Ut.title,mt=Ut.children,or=Ut.className,et=Ut.target,ur=Ot("anchor",ir),qr=st.context.activeLink===lr,Fe=h()(or,"".concat(ur,"-link"),v()({},"".concat(ur,"-link-active"),qr)),$t=h()("".concat(ur,"-link-title"),v()({},"".concat(ur,"-link-title-active"),qr));return r.createElement("div",{className:Fe},r.createElement("a",{className:$t,href:lr,title:typeof Sr=="string"?Sr:"",target:et,onClick:st.handleClick},Sr),mt)},st}return u()(ke,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(Ve){var Ot=Ve.href,Ut=this.props.href;Ot!==Ut&&(this.context.unregisterLink(Ot),this.context.registerLink(Ut))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(z.a,null,this.renderAnchorLink)}}]),ke}(r.Component);ge.defaultProps={href:"#"},ge.contextType=ce;var Oe=ge;ue.Link=Oe;var Je=D.a=ue},JuEJ:function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=y.each,v=y.isObject,m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function f(r){var s=r&&r.itemStyle;if(!s)return;for(var c=0,h=m.length;c<h;c++){var g=m[c],A=s.normal,b=s.emphasis;A&&A[g]&&(r[g]=r[g]||{},r[g].normal?y.merge(r[g].normal,A[g]):r[g].normal=A[g],A[g]=null),b&&b[g]&&(r[g]=r[g]||{},r[g].emphasis?y.merge(r[g].emphasis,b[g]):r[g].emphasis=b[g],b[g]=null)}}function d(r,s,c){if(r&&r[s]&&(r[s].normal||r[s].emphasis)){var h=r[s].normal,g=r[s].emphasis;h&&(c?(r[s].normal=r[s].emphasis=null,y.defaults(r[s],h)):r[s]=h),g&&(r.emphasis=r.emphasis||{},r.emphasis[s]=g)}}function u(r){d(r,"itemStyle"),d(r,"lineStyle"),d(r,"areaStyle"),d(r,"label"),d(r,"labelLine"),d(r,"upperLabel"),d(r,"edgeLabel")}function o(r,s){var c=v(r)&&r[s],h=v(c)&&c.textStyle;if(h)for(var g=0,A=p.TEXT_STYLE_OPTIONS.length;g<A;g++){var s=p.TEXT_STYLE_OPTIONS[g];h.hasOwnProperty(s)&&(c[s]=h[s])}}function n(r){r&&(u(r),o(r,"label"),r.emphasis&&o(r.emphasis,"label"))}function t(r){if(!v(r))return;f(r),u(r),o(r,"label"),o(r,"upperLabel"),o(r,"edgeLabel"),r.emphasis&&(o(r.emphasis,"label"),o(r.emphasis,"upperLabel"),o(r.emphasis,"edgeLabel"));var s=r.markPoint;s&&(f(s),n(s));var c=r.markLine;c&&(f(c),n(c));var h=r.markArea;h&&n(h);var g=r.data;if(r.type==="graph"){g=g||r.nodes;var A=r.links||r.edges;if(A&&!y.isTypedArray(A))for(var b=0;b<A.length;b++)n(A[b]);y.each(r.categories,function(T){u(T)})}if(g&&!y.isTypedArray(g))for(var b=0;b<g.length;b++)n(g[b]);var s=r.markPoint;if(s&&s.data)for(var w=s.data,b=0;b<w.length;b++)n(w[b]);var c=r.markLine;if(c&&c.data)for(var x=c.data,b=0;b<x.length;b++)y.isArray(x[b])?(n(x[b][0]),n(x[b][1])):n(x[b]);r.type==="gauge"?(o(r,"axisLabel"),o(r,"title"),o(r,"detail")):r.type==="treemap"?(d(r.breadcrumb,"itemStyle"),y.each(r.levels,function(T){u(T)})):r.type==="tree"&&u(r.leaves)}function a(r){return y.isArray(r)?r:r?[r]:[]}function e(r){return(y.isArray(r)?r[0]:r)||{}}function l(r,s){S(a(r.series),function(h){v(h)&&t(h)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];s&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),S(c,function(h){S(a(r[h]),function(g){g&&(o(g,"axisLabel"),o(g.axisPointer,"label"))})}),S(a(r.parallel),function(h){var g=h&&h.parallelAxisDefault;o(g,"axisLabel"),o(g&&g.axisPointer,"label")}),S(a(r.calendar),function(h){d(h,"itemStyle"),o(h,"dayLabel"),o(h,"monthLabel"),o(h,"yearLabel")}),S(a(r.radar),function(h){o(h,"name")}),S(a(r.geo),function(h){v(h)&&(n(h),S(a(h.regions),function(g){n(g)}))}),S(a(r.timeline),function(h){n(h),d(h,"label"),d(h,"itemStyle"),d(h,"controlStyle",!0);var g=h.data;y.isArray(g)&&y.each(g,function(A){y.isObject(A)&&(d(A,"label"),d(A,"itemStyle"))})}),S(a(r.toolbox),function(h){d(h,"iconStyle"),S(h.feature,function(g){d(g,"iconStyle")})}),o(e(r.axisPointer),"label"),o(e(r.tooltip).axisPointer,"label")}k.exports=l},K2GJ:function(k,D,i){var y=i("fW2E"),p=i("gut8"),S=p.ContextCachedBy,v=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],m=function(e){this.extendFrom(e,!1)};function f(a,e,l){var r=e.x==null?0:e.x,s=e.x2==null?1:e.x2,c=e.y==null?0:e.y,h=e.y2==null?0:e.y2;e.global||(r=r*l.width+l.x,s=s*l.width+l.x,c=c*l.height+l.y,h=h*l.height+l.y),r=isNaN(r)?0:r,s=isNaN(s)?1:s,c=isNaN(c)?0:c,h=isNaN(h)?0:h;var g=a.createLinearGradient(r,c,s,h);return g}function d(a,e,l){var r=l.width,s=l.height,c=Math.min(r,s),h=e.x==null?.5:e.x,g=e.y==null?.5:e.y,A=e.r==null?.5:e.r;e.global||(h=h*r+l.x,g=g*s+l.y,A=A*c);var b=a.createRadialGradient(h,g,0,h,g,A);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,r){var s=this,c=r&&r.style,h=!c||e.__attrCachedBy!==S.STYLE_BIND;e.__attrCachedBy=S.STYLE_BIND;for(var g=0;g<v.length;g++){var A=v[g],b=A[0];(h||s[b]!==c[b])&&(e[b]=y(e,b,s[b]||A[1]))}if((h||s.fill!==c.fill)&&(e.fillStyle=s.fill),(h||s.stroke!==c.stroke)&&(e.strokeStyle=s.stroke),(h||s.opacity!==c.opacity)&&(e.globalAlpha=s.opacity==null?1:s.opacity),(h||s.blend!==c.blend)&&(e.globalCompositeOperation=s.blend||"source-over"),this.hasStroke()){var w=s.lineWidth;e.lineWidth=w/(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 r in e)e.hasOwnProperty(r)&&(l===!0||(l===!1?!this.hasOwnProperty(r):e[r]!=null))&&(this[r]=e[r])},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,r){for(var s=l.type==="radial"?d:f,c=s(e,l,r),h=l.colorStops,g=0;g<h.length;g++)c.addColorStop(h[g].offset,h[g].color);return c}};for(var u=m.prototype,o=0;o<v.length;o++){var n=v[o];n[0]in u||(u[n[0]]=n[1])}m.getGradient=u.getGradient;var t=m;k.exports=t},K3mO:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("3y9D"),i("WYAk"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.Base,m=S.WordArray,f=p.algo,d=f.MD5,u=f.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:d,iterations:1}),init:function(n){this.cfg=this.cfg.extend(n)},compute:function(n,t){for(var a,e=this.cfg,l=e.hasher.create(),r=m.create(),s=r.words,c=e.keySize,h=e.iterations;s.length<c;){a&&l.update(a),a=l.update(n).finalize(t),l.reset();for(var g=1;g<h;g++)a=l.finalize(a),l.reset();r.concat(a)}return r.sigBytes=c*4,r}});p.EvpKDF=function(o,n,t){return u.create(t).compute(o,n)}}(),y.EvpKDF})},K4ya:function(k,D,i){var y=i("bYtY"),p=i("XxSj"),S=y.each;function v(o){if(o){for(var n in o)if(o.hasOwnProperty(n))return!0}}function m(o,n,t){var a={};return S(n,function(l){var r=a[l]=e();S(o[l],function(s,c){if(!p.isValidType(c))return;var h={type:c,visual:s};t&&t(h,l),r[c]=new p(h),c==="opacity"&&(h=y.clone(h),h.type="colorAlpha",r.__hidden.__alphaForOpacity=new p(h))})}),a;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var r=new l;return r}}function f(o,n,t){var a;y.each(t,function(e){n.hasOwnProperty(e)&&v(n[e])&&(a=!0)}),a&&y.each(t,function(e){n.hasOwnProperty(e)&&v(n[e])?o[e]=y.clone(n[e]):delete o[e]})}function d(o,n,t,a,e,l){var r={};y.each(o,function(A){var b=p.prepareVisualTypes(n[A]);r[A]=b});var s;function c(A){return t.getItemVisual(s,A)}function h(A,b){t.setItemVisual(s,A,b)}l==null?t.each(g):t.each([l],g);function g(A,b){s=l==null?A:b;var w=t.getRawDataItem(s);if(w&&w.visualMap===!1)return;for(var x=a.call(e,A),T=n[x],_=r[x],E=0,C=_.length;E<C;E++){var I=_[E];T[I]&&T[I].applyVisual(A,c,h)}}}function u(o,n,t,a){var e={};y.each(o,function(r){var s=p.prepareVisualTypes(n[r]);e[r]=s});function l(r,s){a!=null&&(a=s.getDimension(a));function c(I){return s.getItemVisual(g,I)}function h(I,O){s.setItemVisual(g,I,O)}for(var g;(g=r.next())!=null;){var A=s.getRawDataItem(g);if(A&&A.visualMap===!1)continue;for(var b=a!=null?s.get(a,g,!0):g,w=t(b),x=n[w],T=e[w],_=0,E=T.length;_<E;_++){var C=T[_];x[C]&&x[C].applyVisual(b,c,h)}}}return{progress:l}}D.createVisualMappings=m,D.replaceVisualOption=f,D.applyVisual=d,D.incrementalApplyVisual=u},KCsZ:function(k,D,i){var y=i("bYtY");function p(S){for(var v=0;v<S.length;v++)S[v][1]||(S[v][1]=S[v][0]);return function(m,f,d){for(var u={},o=0;o<S.length;o++){var n=S[o][1];if(f&&y.indexOf(f,n)>=0||d&&y.indexOf(d,n)<0)continue;var t=m.getShallow(n);t!=null&&(u[S[o][0]]=t)}return u}}k.exports=p},KMkd:function(k,D){function i(){this.__data__=[],this.size=0}k.exports=i},KPFz:function(k,D,i){},KQeH:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},KS52:function(k,D,i){var y=i("OELB"),p=y.parsePercent,S=y.linearMap,v=i("+TT/"),m=i("u3DP"),f=i("bYtY"),d=Math.PI*2,u=Math.PI/180;function o(t,a){return v.getLayoutRect(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function n(t,a,e,l){a.eachSeriesByType(t,function(r){var s=r.getData(),c=s.mapDimension("value"),h=o(r,e),g=r.get("center"),A=r.get("radius");f.isArray(A)||(A=[0,A]),f.isArray(g)||(g=[g,g]);var b=p(h.width,e.getWidth()),w=p(h.height,e.getHeight()),x=Math.min(b,w),T=p(g[0],b)+h.x,_=p(g[1],w)+h.y,E=p(A[0],x/2),C=p(A[1],x/2),I=-r.get("startAngle")*u,O=r.get("minAngle")*u,F=0;s.each(c,function(ee){!isNaN(ee)&&F++});var R=s.getSum(c),B=Math.PI/(R||F)*2,P=r.get("clockwise"),X=r.get("roseType"),M=r.get("stillShowZeroSum"),z=s.getDataExtent(c);z[0]=0;var W=d,H=0,V=I,Q=P?1:-1;if(s.each(c,function(ee,q){var se;if(isNaN(ee)){s.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:T,cy:_,r0:E,r:X?NaN:C,viewRect:h});return}X!=="area"?se=R===0&&M?B:ee*B:se=d/F,se<O?(se=O,W-=O):H+=ee;var re=V+Q*se;s.setItemLayout(q,{angle:se,startAngle:V,endAngle:re,clockwise:P,cx:T,cy:_,r0:E,r:X?S(ee,z,[E,C]):C,viewRect:h}),V=re}),W<d&&F)if(W<=.001){var G=d/F;s.each(c,function(ee,q){if(!isNaN(ee)){var se=s.getItemLayout(q);se.angle=G,se.startAngle=I+Q*q*G,se.endAngle=I+Q*(q+1)*G}})}else B=W/H,V=I,s.each(c,function(ee,q){if(!isNaN(ee)){var se=s.getItemLayout(q),re=se.angle===O?O:ee*B;se.startAngle=V,se.endAngle=V+Q*re,V+=Q*re}});m(r,C,h.width,h.height,h.x,h.y)})}k.exports=n},KUOm:function(k,D){function i(y){var p={};y.eachSeriesByType("graph",function(S){var v=S.getCategoriesData(),m=S.getData(),f={};v.each(function(d){var u=v.getName(d);f["ec-"+u]=d;var o=v.getItemModel(d),n=o.get("itemStyle.color")||S.getColorFromPalette(u,p);v.setItemVisual(d,"color",n);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],a=0;a<t.length;a++){var e=o.getShallow(t[a],!0);e!=null&&v.setItemVisual(d,t[a],e)}}),v.count()&&m.each(function(d){var u=m.getItemModel(d),o=u.getShallow("category");if(o!=null){typeof o=="string"&&(o=f["ec-"+o]);for(var n=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<n.length;t++)m.getItemVisual(d,n[t],!0)==null&&m.setItemVisual(d,n[t],v.getItemVisual(o,n[t]))}})})}k.exports=i},Kagy:function(k,D){var i={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:""}}}};k.exports=i},KamJ:function(k,D,i){var y=i("ProS"),p=i("szbU");i("vF/C"),i("qwVE"),i("BuqR"),i("AE9C"),i("1u/T"),y.registerPreprocessor(p)},KmBX:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("CP8R")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FilterFilled";var n=v.forwardRef(o);D.default=n},KmYQ:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(S,v){var m=v*4;S.clamp(),S.sigBytes+=m-(S.sigBytes%m||m)},unpad:function(S){for(var v=S.words,m=S.sigBytes-1,m=S.sigBytes-1;m>=0;m--)if(v[m>>>2]>>>24-m%4*8&255){S.sigBytes=m+1;break}}},y.pad.ZeroPadding})},"KpQ+":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("E/ki")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="ClockCircleOutlined";var n=v.forwardRef(o);D.default=n},KrTs:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("cDf5"),v=i.n(S),m=i("pVnL"),f=i.n(m),d=i("q1tI"),u=i("UmKh"),o=i("TSYQ"),n=i.n(o),t=i("J4zp"),a=i.n(t),e=i("H84U"),l=i("0n0R"),r=function(C,I){var O={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&I.indexOf(F)<0&&(O[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(C);R<F.length;R++)I.indexOf(F[R])<0&&Object.prototype.propertyIsEnumerable.call(C,F[R])&&(O[F[R]]=C[F[R]]);return O};function s(C){return C?C.toString().split("").reverse().map(function(I){var O=Number(I);return isNaN(O)?I:O}):[]}function c(C,I){for(var O=[],F=0;F<30;F++)O.push(d.createElement("p",{key:F.toString(),className:n()(I,{current:C===F})},F%10));return O}var h=function(I){var O=I.prefixCls,F=I.count,R=I.className,B=I.style,P=I.title,X=I.component,M=X===void 0?"sup":X,z=I.displayComponent,W=I.onAnimated,H=W===void 0?function(){}:W,V=r(I,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=d.useState(!0),G=a()(Q,2),ee=G[0],q=G[1],se=d.useState(F),re=a()(se,2),Ae=re[0],Te=re[1],Re=d.useState(F),Ge=a()(Re,2),Ue=Ge[0],nt=Ge[1],Le=d.useState(F),le=a()(Le,2),Xe=le[0],pe=le[1],Z=d.useContext(e.b),Y=Z.getPrefixCls,ne=Y("scroll-number",O);Ue!==F&&(q(!0),nt(F)),d.useEffect(function(){pe(Ae);var ue;return ee&&(ue=setTimeout(function(){q(!1),Te(F),H()})),function(){ue&&clearTimeout(ue)}},[ee,F,H]);var ce=function(ge,Oe){var Je=Math.abs(Number(Ae)),lt=Math.abs(Number(Xe)),tt=Math.abs(s(Ae)[Oe]),ke=Math.abs(s(lt)[Oe]);return ee?10+ge:Je>lt?tt>=ke?10+ge:20+ge:tt<=ke?10+ge:ge},ye=function(ge,Oe){if(typeof ge=="number"){var Je=ce(ge,Oe),lt=ee||s(Xe)[Oe]===void 0;return d.createElement("span",{className:"".concat(ne,"-only"),style:{transition:lt?"none":void 0,msTransform:"translateY(".concat(-Je*100,"%)"),WebkitTransform:"translateY(".concat(-Je*100,"%)"),transform:"translateY(".concat(-Je*100,"%)")},key:Oe},c(Je,"".concat(ne,"-only-unit")))}return d.createElement("span",{key:"symbol",className:"".concat(ne,"-symbol")},ge)},Ee=function(){return Ae&&Number(Ae)%1===0?s(Ae).map(function(ge,Oe){return ye(ge,Oe)}).reverse():Ae},Ce=f()(f()({},V),{style:B,className:n()(ne,R),title:P});return B&&B.borderColor&&(Ce.style=f()(f()({},B),{boxShadow:"0 0 0 1px ".concat(B.borderColor," inset")})),z?Object(l.a)(z,{className:n()("".concat(ne,"-custom-component"),z.props&&z.props.className)}):d.createElement(M,Ce,Ee())},g=h,A=i("09Wf");function b(C){return A.a.indexOf(C)!==-1}var w=function(I){var O,F=I.className,R=I.prefixCls,B=I.style,P=I.color,X=I.children,M=I.text,z=I.placement,W=z===void 0?"end":z,H=d.useContext(e.b),V=H.getPrefixCls,Q=H.direction,G=V("ribbon",R),ee=b(P),q=n()(G,F,"".concat(G,"-placement-").concat(W),(O={},p()(O,"".concat(G,"-rtl"),Q==="rtl"),p()(O,"".concat(G,"-color-").concat(P),ee),O)),se={},re={};return P&&!ee&&(se.background=P,re.color=P),d.createElement("div",{className:"".concat(G,"-wrapper")},X,d.createElement("div",{className:q,style:f()(f()({},se),B)},M,d.createElement("div",{className:"".concat(G,"-corner"),style:re})))},x=w,T=function(C,I){var O={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&I.indexOf(F)<0&&(O[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(C);R<F.length;R++)I.indexOf(F[R])<0&&Object.prototype.propertyIsEnumerable.call(C,F[R])&&(O[F[R]]=C[F[R]]);return O},_=function(I){var O,F,R=I.prefixCls,B=I.scrollNumberPrefixCls,P=I.children,X=I.status,M=I.text,z=I.color,W=I.count,H=W===void 0?null:W,V=I.overflowCount,Q=V===void 0?99:V,G=I.dot,ee=G===void 0?!1:G,q=I.size,se=q===void 0?"default":q,re=I.title,Ae=I.offset,Te=I.style,Re=I.className,Ge=I.showZero,Ue=Ge===void 0?!1:Ge,nt=T(I,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Le=d.useContext(e.b),le=Le.getPrefixCls,Xe=Le.direction,pe=le("badge",R),Z=function(){var Ut=H>Q?"".concat(Q,"+"):H;return Ut},Y=function(){return!!X||!!z},ne=function(){var Ut=Z();return Ut==="0"||Ut===0},ce=function(){return ee&&!ne()||Y()},ye=function(){return ce()?"":Z()},Ee=function(){return re||(typeof H=="string"||typeof H=="number"?H:void 0)},Ce=function(){return Xe==="rtl"?Ae?f()({left:parseInt(Ae[0],10),marginTop:Ae[1]},Te):Te:Ae?f()({right:-parseInt(Ae[0],10),marginTop:Ae[1]},Te):Te},ue=function(){var Ut=ye(),ir=Ut==null||Ut==="";return(ir||ne()&&!Ue)&&!ce()},ge=function(){var Ut=ue();return Ut||!M?null:d.createElement("span",{className:"".concat(pe,"-status-text")},M)},Oe=function(){var Ut=H;return!Ut||v()(Ut)!=="object"?void 0:Object(l.a)(Ut,{style:f()(f()({},Ce()),Ut.props&&Ut.props.style)})},Je=function(){var Ut,ir=le("scroll-number",B),lr=ye(),Sr=ce(),mt=ue(),or=n()((Ut={},p()(Ut,"".concat(pe,"-dot"),Sr),p()(Ut,"".concat(pe,"-count"),!Sr),p()(Ut,"".concat(pe,"-count-sm"),se==="small"),p()(Ut,"".concat(pe,"-multiple-words"),!Sr&&H&&H.toString&&H.toString().length>1),p()(Ut,"".concat(pe,"-status-").concat(X),!!X),p()(Ut,"".concat(pe,"-status-").concat(z),b(z)),Ut)),et=Ce();return z&&!b(z)&&(et=et||{},et.background=z),mt?null:d.createElement(g,{prefixCls:ir,"data-show":!mt,className:or,count:lr,displayComponent:Oe(),title:Ee(),style:et,key:"scrollNumber"})},lt=n()((O={},p()(O,"".concat(pe,"-status-dot"),Y()),p()(O,"".concat(pe,"-status-").concat(X),!!X),p()(O,"".concat(pe,"-status-").concat(z),b(z)),O)),tt={};z&&!b(z)&&(tt.background=z);var ke=n()(Re,pe,(F={},p()(F,"".concat(pe,"-status"),Y()),p()(F,"".concat(pe,"-not-a-wrapper"),!P),p()(F,"".concat(pe,"-rtl"),Xe==="rtl"),F));if(!P&&Y()){var st=Ce(),Ve=st&&st.color;return d.createElement("span",f()({},nt,{className:ke,style:st}),d.createElement("span",{className:lt,style:tt}),d.createElement("span",{style:{color:Ve},className:"".concat(pe,"-status-text")},M))}return d.createElement("span",f()({},nt,{className:ke}),P,d.createElement(u.a,{component:"",showProp:"data-show",transitionName:P?"".concat(pe,"-zoom"):"",transitionAppear:!0},Je()),ge())};_.Ribbon=x;var E=D.a=_},Kvyg:function(k,D,i){},KxFI:function(k,D,i){},KxfA:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=S.isTypedArray,m=S.extend,f=S.assert,d=S.each,u=S.isObject,o=i("4NO4"),n=o.getDataItemValue,t=o.isDataItemOption,a=i("OELB"),e=a.parseDate,l=i("7G+c"),r=i("k9D9"),s=r.SOURCE_FORMAT_TYPED_ARRAY,c=r.SOURCE_FORMAT_ARRAY_ROWS,h=r.SOURCE_FORMAT_ORIGINAL,g=r.SOURCE_FORMAT_OBJECT_ROWS;function A(P,X){l.isInstance(P)||(P=l.seriesDataToSource(P)),this._source=P;var M=this._data=P.data,z=P.sourceFormat;z===s&&(this._offset=0,this._dimSize=X,this._data=M);var W=w[z===c?z+"_"+P.seriesLayoutBy:z];m(this,W)}var b=A.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var w={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=[],M=this._data,z=0;z<M.length;z++){var W=M[z];X.push(W?W[P]:null)}return X},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:x,getItem:T,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=[],M=this._source.dimensionsDefine,z=0;z<M.length;z++){var W=this._data[M[z].name];X.push(W?W[P]:null)}return X},appendData:function(P){var X=this._data;d(P,function(M,z){for(var W=X[z]||(X[z]=[]),H=0;H<(M||[]).length;H++)W.push(M[H])})}},original:{count:x,getItem:T,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 M=this._dimSize*P,z=0;z<this._dimSize;z++)X[z]=this._data[M+z];return X},appendData:function(P){this._data=P},clean:function(){this._offset+=this.count(),this._data=null}}};function x(){return this._data.length}function T(P){return this._data[P]}function _(P){for(var X=0;X<P.length;X++)this._data.push(P[X])}var E={arrayRows:C,objectRows:function(P,X,M,z){return M!=null?P[z]:P},keyedColumns:C,original:function(P,X,M,z){var W=n(P);return M==null||!(W instanceof Array)?W:W[M]},typedArray:C};function C(P,X,M,z){return M!=null?P[M]:P}var I={arrayRows:O,objectRows:function(P,X,M,z){return F(P[X],this._dimensionInfos[X])},keyedColumns:O,original:function(P,X,M,z){var W=P&&(P.value==null?P:P.value);return!this._rawData.pure&&t(P)&&(this.hasItemOption=!0),F(W instanceof Array?W[z]:W,this._dimensionInfos[X])},typedArray:function(P,X,M,z){return P[z]}};function O(P,X,M,z){return F(P[z],this._dimensionInfos[X])}function F(P,X){var M=X&&X.type;if(M==="ordinal"){var z=X&&X.ordinalMeta;return z?z.parseAndCollect(P):P}return M==="time"&&typeof P!="number"&&P!=null&&P!=="-"&&(P=+e(P)),P==null||P===""?NaN:+P}function R(P,X,M){if(!P)return;var z=P.getRawDataItem(X);if(z==null)return;var W=P.getProvider().getSource().sourceFormat,H,V,Q=P.getDimensionInfo(M);return Q&&(H=Q.name,V=Q.index),E[W](z,X,V,H)}function B(P,X,M){if(!P)return;var z=P.getProvider().getSource().sourceFormat;if(z!==h&&z!==g)return;var W=P.getRawDataItem(X);if(z===h&&!u(W)&&(W=null),W)return W[M]}D.DefaultDataProvider=A,D.defaultDimValueGetters=I,D.retrieveRawValue=R,D.retrieveRawAttr=B},L0Ub:function(k,D,i){var y=i("bYtY"),p=y.each,S=y.createHashMap,v=y.assert,m=i("Tghj"),f=m.__DEV__,d=S(["tooltip","label","itemName","itemId","seriesName"]);function u(a){var e={},l=e.encode={},r=S(),s=[],c=[],h=e.userOutput={dimensionNames:a.dimensions.slice(),encode:{}};p(a.dimensions,function(x){var T=a.getDimensionInfo(x),_=T.coordDim;if(_){var E=T.coordDimIndex;o(l,_)[E]=x,T.isExtraCoord||(r.set(_,1),t(T.type)&&(s[0]=x),o(h.encode,_)[E]=T.index),T.defaultTooltip&&c.push(x)}d.each(function(C,I){var O=o(l,I),F=T.otherDims[I];F!=null&&F!==!1&&(O[F]=T.name)})});var g=[],A={};r.each(function(x,T){var _=l[T];A[T]=_[0],g=g.concat(_)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=A;var b=l.label;b&&b.length&&(s=b.slice());var w=l.tooltip;return w&&w.length?c=w.slice():c.length||(c=s.slice()),l.defaultedLabel=s,l.defaultedTooltip=c,e}function o(a,e){return a.hasOwnProperty(e)||(a[e]=[]),a[e]}function n(a){return a==="category"?"ordinal":a==="time"?"time":"float"}function t(a){return!(a==="ordinal"||a==="time")}D.OTHER_DIMENSIONS=d,D.summarizeDimensions=u,D.getDimensionTypeByAxis=n},L3Oj:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("HjIi");i("HM/N"),i("9eas"),i("eS4l"),i("y4/Y"),i("as94"),y.registerLayout(p.curry(S,"bar")),y.extendComponentView({type:"polar"})},L41K:function(k,D,i){"use strict";i.d(D,"a",function(){return H});var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),l=i.n(e),r=i("BGR+"),s=i("VTBJ"),c=i("rePB"),h=i("Ff2n"),g=i("1OyB"),A=i("vuIU"),b=i("Ji7U"),w=i("LK+K"),x=i("Zm9Q"),T=i("TSYQ"),_=i.n(T),E=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function C(V){return typeof V=="string"}var I=function(V){Object(b.a)(G,V);var Q=Object(w.a)(G);function G(){var ee;return Object(g.a)(this,G),ee=Q.apply(this,arguments),ee.onClick=function(){var q=ee.props,se=q.onClick,re=q.onStepClick,Ae=q.stepIndex;se&&se.apply(void 0,arguments),re(Ae)},ee}return Object(A.a)(G,[{key:"renderIconNode",value:function(){var q,se=this.props,re=se.prefixCls,Ae=se.progressDot,Te=se.stepIcon,Re=se.stepNumber,Ge=se.status,Ue=se.title,nt=se.description,Le=se.icon,le=se.iconPrefix,Xe=se.icons,pe,Z=_()("".concat(re,"-icon"),"".concat(le,"icon"),(q={},Object(c.a)(q,"".concat(le,"icon-").concat(Le),Le&&C(Le)),Object(c.a)(q,"".concat(le,"icon-check"),!Le&&Ge==="finish"&&(Xe&&!Xe.finish||!Xe)),Object(c.a)(q,"".concat(le,"icon-cross"),!Le&&Ge==="error"&&(Xe&&!Xe.error||!Xe)),q)),Y=e.createElement("span",{className:"".concat(re,"-icon-dot")});return Ae?typeof Ae=="function"?pe=e.createElement("span",{className:"".concat(re,"-icon")},Ae(Y,{index:Re-1,status:Ge,title:Ue,description:nt})):pe=e.createElement("span",{className:"".concat(re,"-icon")},Y):Le&&!C(Le)?pe=e.createElement("span",{className:"".concat(re,"-icon")},Le):Xe&&Xe.finish&&Ge==="finish"?pe=e.createElement("span",{className:"".concat(re,"-icon")},Xe.finish):Xe&&Xe.error&&Ge==="error"?pe=e.createElement("span",{className:"".concat(re,"-icon")},Xe.error):Le||Ge==="finish"||Ge==="error"?pe=e.createElement("span",{className:Z}):pe=e.createElement("span",{className:"".concat(re,"-icon")},Re),Te&&(pe=Te({index:Re-1,status:Ge,title:Ue,description:nt,node:pe})),pe}},{key:"render",value:function(){var q,se=this.props,re=se.className,Ae=se.prefixCls,Te=se.style,Re=se.active,Ge=se.status,Ue=Ge===void 0?"wait":Ge,nt=se.iconPrefix,Le=se.icon,le=se.wrapperStyle,Xe=se.stepNumber,pe=se.disabled,Z=se.description,Y=se.title,ne=se.subTitle,ce=se.progressDot,ye=se.stepIcon,Ee=se.tailContent,Ce=se.icons,ue=se.stepIndex,ge=se.onStepClick,Oe=se.onClick,Je=Object(h.a)(se,E),lt=_()("".concat(Ae,"-item"),"".concat(Ae,"-item-").concat(Ue),re,(q={},Object(c.a)(q,"".concat(Ae,"-item-custom"),Le),Object(c.a)(q,"".concat(Ae,"-item-active"),Re),Object(c.a)(q,"".concat(Ae,"-item-disabled"),pe===!0),q)),tt=Object(s.a)({},Te),ke={};return ge&&!pe&&(ke.role="button",ke.tabIndex=0,ke.onClick=this.onClick),e.createElement("div",Object.assign({},Je,{className:lt,style:tt}),e.createElement("div",Object.assign({onClick:Oe},ke,{className:"".concat(Ae,"-item-container")}),e.createElement("div",{className:"".concat(Ae,"-item-tail")},Ee),e.createElement("div",{className:"".concat(Ae,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(Ae,"-item-content")},e.createElement("div",{className:"".concat(Ae,"-item-title")},Y,ne&&e.createElement("div",{title:typeof ne=="string"?ne:void 0,className:"".concat(Ae,"-item-subtitle")},ne)),Z&&e.createElement("div",{className:"".concat(Ae,"-item-description")},Z))))}}]),G}(e.Component),O=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],F=function(V){Object(b.a)(G,V);var Q=Object(w.a)(G);function G(){var ee;return Object(g.a)(this,G),ee=Q.apply(this,arguments),ee.onStepClick=function(q){var se=ee.props,re=se.onChange,Ae=se.current;re&&Ae!==q&&re(q)},ee}return Object(A.a)(G,[{key:"render",value:function(){var q,se=this,re=this.props,Ae=re.prefixCls,Te=re.style,Re=Te===void 0?{}:Te,Ge=re.className,Ue=re.children,nt=re.direction,Le=re.type,le=re.labelPlacement,Xe=re.iconPrefix,pe=re.status,Z=re.size,Y=re.current,ne=re.progressDot,ce=re.stepIcon,ye=re.initial,Ee=re.icons,Ce=re.onChange,ue=Object(h.a)(re,O),ge=Le==="navigation",Oe=ne?"vertical":le,Je=_()(Ae,"".concat(Ae,"-").concat(nt),Ge,(q={},Object(c.a)(q,"".concat(Ae,"-").concat(Z),Z),Object(c.a)(q,"".concat(Ae,"-label-").concat(Oe),nt==="horizontal"),Object(c.a)(q,"".concat(Ae,"-dot"),!!ne),Object(c.a)(q,"".concat(Ae,"-navigation"),ge),q));return l.a.createElement("div",Object.assign({className:Je,style:Re},ue),Object(x.a)(Ue).map(function(lt,tt){var ke=ye+tt,st=Object(s.a)({stepNumber:"".concat(ke+1),stepIndex:ke,key:ke,prefixCls:Ae,iconPrefix:Xe,wrapperStyle:Re,progressDot:ne,stepIcon:ce,icons:Ee,onStepClick:Ce&&se.onStepClick},lt.props);return pe==="error"&&tt===Y-1&&(st.className="".concat(Ae,"-next-error")),lt.props.status||(ke===Y?st.status=pe:ke<Y?st.status="finish":st.status="wait"),st.active=ke===Y,Object(e.cloneElement)(lt,st)}))}}]),G}(l.a.Component);F.Step=I,F.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var R=F,B=i("NAnI"),P=i.n(B),X=i("V/uB"),M=i.n(X),z=i("H84U"),W=i("CFYs"),H=function(V){n()(G,V);var Q=a()(G);function G(){var ee;return f()(this,G),ee=Q.apply(this,arguments),ee.renderSteps=function(q){var se=q.getPrefixCls,re=q.direction,Ae=se("steps",ee.props.prefixCls),Te=se("",ee.props.iconPrefix),Re=ee.props,Ge=Re.percent,Ue=Re.size,nt=_()(ee.props.className,v()({},"".concat(Ae,"-rtl"),re==="rtl")),Le={finish:e.createElement(P.a,{className:"".concat(Ae,"-finish-icon")}),error:e.createElement(M.a,{className:"".concat(Ae,"-error-icon")})},le=function(pe){var Z=pe.node,Y=pe.status;if(Y==="process"&&Ge!==void 0){var ne=Ue==="small"?32:40,ce=e.createElement("div",{className:"".concat(Ae,"-progress-icon")},e.createElement(W.a,{type:"circle",percent:Ge,width:ne,strokeWidth:4,format:function(){return null}}),Z);return ce}return Z};return e.createElement(R,p()({icons:Le},Object(r.default)(ee.props,["progress"]),{stepIcon:le,prefixCls:Ae,iconPrefix:Te,className:nt}))},ee}return u()(G,[{key:"render",value:function(){return e.createElement(z.a,null,this.renderSteps)}}]),G}(e.Component);H.Step=R.Step,H.defaultProps={current:0}},L5E0:function(k,D){var i=["itemStyle","borderColor"];function y(p,S){var v=p.get("color");p.eachRawSeriesByType("boxplot",function(m){var f=v[m.seriesIndex%v.length],d=m.getData();d.setVisual({legendSymbol:"roundRect",color:m.get(i)||f}),p.isSeriesFiltered(m)||d.each(function(u){var o=d.getItemModel(u);d.setItemVisual(u,{color:o.get(i,!0)})})})}k.exports=y},L8xA:function(k,D){function i(y){var p=this.__data__,S=p.delete(y);return this.size=p.size,S}k.exports=i},LBfv:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=p.createHashMap,v=p.each;y.registerProcessor({getTargetSeries:function(m){var f=S();return m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,o,n){var t=n.getAxisProxy(u.name,o);v(t.getTargetSeriesModels(),function(a){f.set(a.uid,a)})})}),f},modifyOutputEnd:!0,overallReset:function(m,f){m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,o,n){n.getAxisProxy(u.name,o).reset(n,f)}),d.eachTargetAxis(function(u,o,n){n.getAxisProxy(u.name,o).filterData(n,f)})}),m.eachComponent("dataZoom",function(d){var u=d.findRepresentativeAxisProxy(),o=u.getDataPercentWindow(),n=u.getDataValueWindow();d.setCalculatedRange({start:o[0],end:o[1],startValue:n[0],endValue:n[1]})})}})},LCi9:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(A,b){if(!(A instanceof b))throw new TypeError("Cannot call a class as a function")}function p(A,b){for(var w=0;w<b.length;w++){var x=b[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}function S(A,b,w){return b&&p(A.prototype,b),w&&p(A,w),A}var v=0,m=1,f=2,d=4,u=8,o=16,n=32,t=64,a=127,e=50,l=90,r=250,s=1e3,c=1e3,h=50,g=function(){function A(){y(this,A),this._target=null,this._state=a,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return S(A,[{key:"attach",value:function(w){this.detach(),this._target=w,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(w){var x;w.stopPropagation(),w.preventDefault();switch(w.type){case"touchstart":x=this._touchStart;break;case"touchmove":x=this._touchMove;break;case"touchend":case"touchcancel":x=this._touchEnd;break}for(var T=0;T<w.changedTouches.length;T++){var _=w.changedTouches[T];x.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(w,x,T){if(this._hasDetectedGesture()||this._state===v){this._ignored.push(w);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=v,this._ignored.push(w);return}if(this._waitingRelease){this._state=v,this._ignored.push(w);return}this._tracked.push({id:w,started:Date.now(),active:!0,firstX:x,firstY:T,lastX:x,lastY:T,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(m|u|o),this._stopLongpressTimeout();break;case 3:this._state&=~(f|n|t);break;default:this._state=v}}},{key:"_touchMove",value:function(w,x,T){var _=this._tracked.find(function(R){return R.id===w});if(_===void 0)return;_.lastX=x,_.lastY=T;var E=x-_.firstX,C=T-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(C,E)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(E,C)<e)return;if(this._state&=~(m|f|d|o),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~u),this._tracked.length!==2&&(this._state&=~(n|t)),this._tracked.length===2){var I=this._tracked.find(function(R){return R.id!==w}),O=Math.hypot(I.firstX-I.lastX,I.firstY-I.lastY);if(O>e){var F=Math.abs(_.angle-I.angle);F=Math.abs((F+180)%360-180),F>l?this._state&=~n: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(w,x,T){if(this._ignored.indexOf(w)!==-1){this._ignored.splice(this._ignored.indexOf(w),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=a,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=v),!this._hasDetectedGesture()&&(this._state&=~(u|n|t),this._state&=~o,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(f|d);break;case 2:this._state&=~(m|d);break}}if(this._waitingRelease){Date.now()-this._releaseStart>r&&(this._state=v),this._tracked.some(function(C){return Date.now()-C.started>s})&&(this._state=v);var _=this._tracked.find(function(C){return C.id===w});if(_.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==v)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var E=0;E<this._tracked.length;E++)this._tracked[E].active&&this._ignored.push(this._tracked[E].id);this._tracked=[],this._state=v,this._ignored.indexOf(w)!==-1&&this._ignored.splice(this._ignored.indexOf(w),1),this._ignored.length===0&&(this._state=a,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===v||this._state&this._state-1?!1:!(this._state&(m|f|d)&&this._tracked.some(function(w){return w.active}))}},{key:"_startLongpressTimeout",value:function(){var w=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return w._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=o,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var w=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return w._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 w=this._getAverageMovement(),x=Math.abs(w.x),T=Math.abs(w.y),_=this._getAverageDistance(),E=Math.abs(Math.hypot(_.first.x,_.first.y)-Math.hypot(_.last.x,_.last.y));T<E&&x<E?this._state=t:this._state=n,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(w){var x={type:this._stateToGesture(this._state)},T=this._getPosition(),_=T.last;w==="gesturestart"&&(_=T.first);switch(this._state){case n:case t:_=T.first;break}if(x.clientX=_.x,x.clientY=_.y,this._state===t){var E=this._getAverageDistance();w==="gesturestart"?(x.magnitudeX=E.first.x,x.magnitudeY=E.first.y):(x.magnitudeX=E.last.x,x.magnitudeY=E.last.y)}else if(this._state===n)if(w==="gesturestart")x.magnitudeX=0,x.magnitudeY=0;else{var C=this._getAverageMovement();x.magnitudeX=C.x,x.magnitudeY=C.y}var I=new CustomEvent(w,{detail:x});this._target.dispatchEvent(I)}},{key:"_stateToGesture",value:function(w){switch(w){case m:return"onetap";case f:return"twotap";case d:return"threetap";case u:return"drag";case o:return"longpress";case n:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+w)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var w=this._tracked.length,x=0,T=0,_=0,E=0,C=0;C<this._tracked.length;C++)x+=this._tracked[C].firstX,T+=this._tracked[C].firstY,_+=this._tracked[C].lastX,E+=this._tracked[C].lastY;return{first:{x:x/w,y:T/w},last:{x:_/w,y:E/w}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var w,x;w=x=0;for(var T=this._tracked.length,_=0;_<this._tracked.length;_++)w+=this._tracked[_].lastX-this._tracked[_].firstX,x+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:w/T,y:x/T}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var w=this._tracked[0],x=this._tracked[this._tracked.length-1],T=Math.abs(x.firstX-w.firstX),_=Math.abs(x.firstY-w.firstY),E=Math.abs(x.lastX-w.lastX),C=Math.abs(x.lastY-w.lastY);return{first:{x:T,y:_},last:{x:E,y:C}}}}]),A}();D.default=g},LPTA:function(k,D){var i=1;typeof window!="undefined"&&(i=Math.max(window.devicePixelRatio||1,1));var y=0,p=i;D.debugMode=y,D.devicePixelRatio=p},LPzL:function(k,D,i){var y=i("ProS");i("QzjZ"),i("vL6D"),i("xiyX"),i("y4/Y"),i("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=function(){function a(e,l){for(var r=0;r<l.length;r++){var s=l[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(e,l,r){return l&&a(e.prototype,l),r&&a(e,r),e}}(),p=i("q1tI"),S=f(p),v=i("17x9"),m=f(v);function f(a){return a&&a.__esModule?a:{default:a}}function d(a,e){var l={};for(var r in a){if(e.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(a,r))continue;l[r]=a[r]}return l}function u(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function o(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function n(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var t=function(a){n(e,a);function e(l){u(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}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 r=this.getParentElement(this.scrollComponent);r.scrollTop=r.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var r=!1,s={get passive(){r=!0}};try{document.addEventListener("test",null,s),document.removeEventListener("test",null,s)}catch(c){}return r}},{key:"eventListenerOptions",value:function(){var r=this.props.useCapture;return this.isPassiveSupported()&&(r={useCapture:this.props.useCapture,passive:!0}),r}},{key:"setDefaultLoader",value:function(r){this.defaultLoader=r}},{key:"detachMousewheelListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.scrollComponent.parentNode),r.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var r=window;this.props.useWindow===!1&&(r=this.getParentElement(this.scrollComponent)),r.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(r){var s=this.props.getScrollParent&&this.props.getScrollParent();return s!=null?s:r&&r.parentNode}},{key:"filterProps",value:function(r){return r}},{key:"attachScrollListener",value:function(){var r=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!r)return;var s=window;this.props.useWindow===!1&&(s=r),s.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),s.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),s.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(r){r.deltaY===1&&!this.isPassiveSupported()&&r.preventDefault()}},{key:"scrollListener",value:function(){var r=this.scrollComponent,s=window,c=this.getParentElement(r),h=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,A=s.pageYOffset!==void 0?s.pageYOffset:g.scrollTop;this.props.isReverse?h=A:h=this.calculateOffset(r,A)}else this.props.isReverse?h=c.scrollTop:h=r.scrollHeight-c.scrollTop-c.clientHeight;h<Number(this.props.threshold)&&r&&r.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(r,s){return r?this.calculateTopPosition(r)+(r.offsetHeight-s-window.innerHeight):0}},{key:"calculateTopPosition",value:function(r){return r?r.offsetTop+this.calculateTopPosition(r.offsetParent):0}},{key:"render",value:function(){var r=this,s=this.filterProps(this.props),c=s.children,h=s.element,g=s.hasMore,A=s.initialLoad,b=s.isReverse,w=s.loader,x=s.loadMore,T=s.pageStart,_=s.ref,E=s.threshold,C=s.useCapture,I=s.useWindow,O=s.getScrollParent,F=d(s,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);F.ref=function(B){r.scrollComponent=B,_&&_(B)};var R=[c];return g&&(w?b?R.unshift(w):R.push(w):this.defaultLoader&&(b?R.unshift(this.defaultLoader):R.push(this.defaultLoader))),S.default.createElement(h,F,R)}}]),e}(p.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},D.default=t,k.exports=D.default},LXxW:function(k,D){function i(y,p){for(var S=-1,v=y==null?0:y.length,m=0,f=[];++S<v;){var d=y[S];p(d,S,y)&&(f[m++]=d)}return f}k.exports=i},Lerx:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Mds0"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},Llu2:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DeliveredProcedureOutlined";var d=D.a=p.forwardRef(f)},Lo0S:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.initLogging=f,D.getLogging=d,D.Error=D.Warn=D.Info=D.Debug=void 0;var y="warn",p=function(){};D.Debug=p;var S=function(){};D.Info=S;var v=function(){};D.Warn=v;var m=function(){};D.Error=m;function f(u){if(typeof u=="undefined"?u=y:y=u,D.Debug=p=D.Info=S=D.Warn=v=D.Error=m=function(){},typeof window.console!="undefined")switch(u){case"debug":D.Debug=p=console.debug.bind(window.console);case"info":D.Info=S=console.info.bind(window.console);case"warn":D.Warn=v=console.warn.bind(window.console);case"error":D.Error=m=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+u+"'")}}function d(){return y}f()},LtfV:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="InboxOutlined";var d=D.a=p.forwardRef(f)},Lyp1:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="QuestionCircleOutlined";var d=D.a=p.forwardRef(f)},LzGr:function(k,D,i){var y=i("ProS"),p=i("rnVJ");i("EMyp"),i("8x+h"),i("wt3j"),i("uOyE"),i("/stD"),y.registerPreprocessor(p)},MBQ8:function(k,D,i){var y=i("T4UG"),p=i("MwEJ"),S=y.extend({type:"series.__base_bar__",getInitialData:function(v,m){return p(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(v){var m=this.coordinateSystem;if(m){var f=m.dataToPoint(m.clampData(v)),d=this.getData(),u=d.getLayout("offset"),o=d.getLayout("size"),n=m.getBaseAxis().isHorizontal()?0:1;return f[n]+=u+o/2,f}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:{}}});k.exports=S},MEGo:function(k,D,i){var y=i("4fz+"),p=i("Dagg"),S=i("dqUG"),v=i("2fw6"),m=i("x6Kt"),f=i("rmlV"),d=i("yxFR"),u=i("y+Vt"),o=i("h7HQ"),n=i("1Jh7"),t=i("SKnc"),a=i("K2GJ"),e=i("Fofx"),l=i("NC18"),r=l.createFromString,s=i("bYtY"),c=s.isString,h=s.extend,g=s.defaults,A=s.trim,b=s.each,w=/[\s,]+/;function x(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 T(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}T.prototype.parse=function(Q,G){G=G||{};var ee=x(Q);if(!ee)throw new Error("Illegal svg");var q=new y;this._root=q;var se=ee.getAttribute("viewBox")||"",re=parseFloat(ee.getAttribute("width")||G.width),Ae=parseFloat(ee.getAttribute("height")||G.height);isNaN(re)&&(re=null),isNaN(Ae)&&(Ae=null),R(ee,q,null,!0);for(var Te=ee.firstChild;Te;)this._parseNode(Te,q),Te=Te.nextSibling;var Re,Ge;if(se){var Ue=A(se).split(w);Ue.length>=4&&(Re={x:parseFloat(Ue[0]||0),y:parseFloat(Ue[1]||0),width:parseFloat(Ue[2]),height:parseFloat(Ue[3])})}if(Re&&re!=null&&Ae!=null&&(Ge=H(Re,re,Ae),!G.ignoreViewBox)){var nt=q;q=new y,q.add(nt),nt.scale=Ge.scale.slice(),nt.position=Ge.position.slice()}return!G.ignoreRootClip&&re!=null&&Ae!=null&&q.setClipPath(new m({shape:{x:0,y:0,width:re,height:Ae}})),{root:q,width:re,height:Ae,viewBoxRect:Re,viewBoxTransform:Ge}},T.prototype._parseNode=function(Q,G){var ee=Q.nodeName.toLowerCase();ee==="defs"?this._isDefine=!0:ee==="text"&&(this._isText=!0);var q;if(this._isDefine){var se=E[ee];if(se){var re=se.call(this,Q),Ae=Q.getAttribute("id");Ae&&(this._defs[Ae]=re)}}else{var se=_[ee];se&&(q=se.call(this,Q,G),G.add(q))}for(var Te=Q.firstChild;Te;)Te.nodeType===1&&this._parseNode(Te,q),Te.nodeType===3&&this._isText&&this._parseText(Te,q),Te=Te.nextSibling;ee==="defs"?this._isDefine=!1:ee==="text"&&(this._isText=!1)},T.prototype._parseText=function(Q,G){if(Q.nodeType===1){var ee=Q.getAttribute("dx")||0,q=Q.getAttribute("dy")||0;this._textX+=parseFloat(ee),this._textY+=parseFloat(q)}var se=new S({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});I(G,se),R(Q,se,this._defs);var re=se.style.fontSize;re&&re<9&&(se.style.fontSize=9,se.scale=se.scale||[1,1],se.scale[0]*=re/9,se.scale[1]*=re/9);var Ae=se.getBoundingRect();return this._textX+=Ae.width,G.add(se),se};var _={g:function(G,ee){var q=new y;return I(ee,q),R(G,q,this._defs),q},rect:function(G,ee){var q=new m;return I(ee,q),R(G,q,this._defs),q.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)}),q},circle:function(G,ee){var q=new v;return I(ee,q),R(G,q,this._defs),q.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),q},line:function(G,ee){var q=new d;return I(ee,q),R(G,q,this._defs),q.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)}),q},ellipse:function(G,ee){var q=new f;return I(ee,q),R(G,q,this._defs),q.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)}),q},polygon:function(G,ee){var q=G.getAttribute("points");q&&(q=O(q));var se=new o({shape:{points:q||[]}});return I(ee,se),R(G,se,this._defs),se},polyline:function(G,ee){var q=new u;I(ee,q),R(G,q,this._defs);var se=G.getAttribute("points");se&&(se=O(se));var re=new n({shape:{points:se||[]}});return re},image:function(G,ee){var q=new p;return I(ee,q),R(G,q,this._defs),q.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),q},text:function(G,ee){var q=G.getAttribute("x")||0,se=G.getAttribute("y")||0,re=G.getAttribute("dx")||0,Ae=G.getAttribute("dy")||0;this._textX=parseFloat(q)+parseFloat(re),this._textY=parseFloat(se)+parseFloat(Ae);var Te=new y;return I(ee,Te),R(G,Te,this._defs),Te},tspan:function(G,ee){var q=G.getAttribute("x"),se=G.getAttribute("y");q!=null&&(this._textX=parseFloat(q)),se!=null&&(this._textY=parseFloat(se));var re=G.getAttribute("dx")||0,Ae=G.getAttribute("dy")||0,Te=new y;return I(ee,Te),R(G,Te,this._defs),this._textX+=re,this._textY+=Ae,Te},path:function(G,ee){var q=G.getAttribute("d")||"",se=r(q);return I(ee,se),R(G,se,this._defs),se}},E={lineargradient:function(G){var ee=parseInt(G.getAttribute("x1")||0,10),q=parseInt(G.getAttribute("y1")||0,10),se=parseInt(G.getAttribute("x2")||10,10),re=parseInt(G.getAttribute("y2")||0,10),Ae=new t(ee,q,se,re);return C(G,Ae),Ae},radialgradient:function(G){}};function C(Q,G){for(var ee=Q.firstChild;ee;){if(ee.nodeType===1){var q=ee.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var se=ee.getAttribute("stop-color")||"#000000";G.addColorStop(q,se)}ee=ee.nextSibling}}function I(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),g(G.__inheritedStyle,Q.__inheritedStyle))}function O(Q){for(var G=A(Q).split(w),ee=[],q=0;q<G.length;q+=2){var se=parseFloat(G[q]),re=parseFloat(G[q+1]);ee.push([se,re])}return ee}var F={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 R(Q,G,ee,q){var se=G.__inheritedStyle||{},re=G.type==="text";if(Q.nodeType===1&&(M(Q,G),h(se,W(Q)),!q)){for(var Ae in F)if(F.hasOwnProperty(Ae)){var Te=Q.getAttribute(Ae);Te!=null&&(se[F[Ae]]=Te)}}var Re=re?"textFill":"fill",Ge=re?"textStroke":"stroke";G.style=G.style||new a;var Ue=G.style;se.fill!=null&&Ue.set(Re,P(se.fill,ee)),se.stroke!=null&&Ue.set(Ge,P(se.stroke,ee)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(nt){var Le=nt==="lineWidth"&&re?"textStrokeWidth":nt;se[nt]!=null&&Ue.set(Le,parseFloat(se[nt]))}),(!se.textBaseline||se.textBaseline==="auto")&&(se.textBaseline="alphabetic"),se.textBaseline==="alphabetic"&&(se.textBaseline="bottom"),se.textAlign==="start"&&(se.textAlign="left"),se.textAlign==="end"&&(se.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(nt){se[nt]!=null&&Ue.set(nt,se[nt])}),se.lineDash&&(G.style.lineDash=A(se.lineDash).split(w)),Ue[Ge]&&Ue[Ge]!=="none"&&(G[Ge]=!0),G.__inheritedStyle=se}var B=/url\(\s*#(.*?)\)/;function P(Q,G){var ee=G&&Q&&Q.match(B);if(ee){var q=A(ee[1]),se=G[q];return se}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(Q,G){var ee=Q.getAttribute("transform");if(ee){ee=ee.replace(/,/g," ");var q=null,se=[];ee.replace(X,function(Re,Ge,Ue){se.push(Ge,Ue)});for(var re=se.length-1;re>0;re-=2){var Ae=se[re],Te=se[re-1];q=q||e.create();switch(Te){case"translate":Ae=A(Ae).split(w),e.translate(q,q,[parseFloat(Ae[0]),parseFloat(Ae[1]||0)]);break;case"scale":Ae=A(Ae).split(w),e.scale(q,q,[parseFloat(Ae[0]),parseFloat(Ae[1]||Ae[0])]);break;case"rotate":Ae=A(Ae).split(w),e.rotate(q,q,parseFloat(Ae[0]));break;case"skew":Ae=A(Ae).split(w),console.warn("Skew transform is not supported yet");break;case"matrix":var Ae=A(Ae).split(w);q[0]=parseFloat(Ae[0]),q[1]=parseFloat(Ae[1]),q[2]=parseFloat(Ae[2]),q[3]=parseFloat(Ae[3]),q[4]=parseFloat(Ae[4]),q[5]=parseFloat(Ae[5]);break}}G.setLocalTransform(q)}}var z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(Q){var G=Q.getAttribute("style"),ee={};if(!G)return ee;var q={};z.lastIndex=0;for(var se;(se=z.exec(G))!=null;)q[se[1]]=se[2];for(var re in F)F.hasOwnProperty(re)&&q[re]!=null&&(ee[F[re]]=q[re]);return ee}function H(Q,G,ee){var q=G/Q.width,se=ee/Q.height,re=Math.min(q,se),Ae=[re,re],Te=[-(Q.x+Q.width/2)*re+G/2,-(Q.y+Q.height/2)*re+ee/2];return{scale:Ae,position:Te}}function V(Q,G){var ee=new T;return ee.parse(Q,G)}D.parseXML=x,D.makeViewBoxTransform=H,D.parseSVG=V},MFOe:function(k,D,i){(function(y){var p=f(),S=d(),v=u(),m=typeof window!="undefined"?window:y;k.exports={assign:p,create:S,trim:v,bind:o,slice:n,each:t,map:a,pluck:e,isList:l,isFunction:r,isObject:s,Global:m};function f(){return Object.assign?Object.assign:function(h,g,A,b){for(var w=1;w<arguments.length;w++)t(Object(arguments[w]),function(x,T){h[T]=x});return h}}function d(){if(Object.create)return function(g,A,b,w){var x=n(arguments,1);return p.apply(this,[Object.create(g)].concat(x))};var c=function(){};return function(g,A,b,w){var x=n(arguments,1);return c.prototype=g,p.apply(this,[new c].concat(x))}}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 o(c,h){return function(){return h.apply(c,Array.prototype.slice.call(arguments,0))}}function n(c,h){return Array.prototype.slice.call(c,h||0)}function t(c,h){e(c,function(g,A){return h(g,A),!1})}function a(c,h){var g=l(c)?[]:{};return e(c,function(A,b){return g[b]=h(A,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 A in c)if(c.hasOwnProperty(A)&&h(c[A],A))return c[A]}function l(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function r(c){return c&&{}.toString.call(c)==="[object Function]"}function s(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,i("yLpj"))},MH26:function(k,D,i){var y=i("bYtY"),p=i("YXkt"),S=i("OELB"),v=i("kj2x"),m=i("c8qY"),f=i("iPDy"),d=i("7hqr"),u=d.getStackedDimension,o=function(s,c,h,g){var A=s.getData(),b=g.type;if(!y.isArray(g)&&(b==="min"||b==="max"||b==="average"||b==="median"||g.xAxis!=null||g.yAxis!=null)){var w,x;if(g.yAxis!=null||g.xAxis!=null)w=c.getAxis(g.yAxis!=null?"y":"x"),x=y.retrieve(g.yAxis,g.xAxis);else{var T=v.getAxisInfo(g,A,c,s);w=T.valueAxis;var _=u(A,T.valueDataDim);x=v.numCalculate(A,_,b)}var E=w.dim==="x"?0:1,C=1-E,I=y.clone(g),O={};I.type=null,I.coord=[],O.coord=[],I.coord[C]=-Infinity,O.coord[C]=Infinity;var F=h.get("precision");F>=0&&typeof x=="number"&&(x=+x.toFixed(Math.min(F,20))),I.coord[E]=O.coord[E]=x,g=[I,O,{type:b,valueIndex:g.valueIndex,value:x}]}return g=[v.dataTransform(s,g[0]),v.dataTransform(s,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 n(s){return!isNaN(s)&&!isFinite(s)}function t(s,c,h,g){var A=1-s,b=g.dimensions[s];return n(c[A])&&n(h[A])&&c[s]===h[s]&&g.getAxis(b).containData(c[s])}function a(s,c){if(s.type==="cartesian2d"){var h=c[0].coord,g=c[1].coord;if(h&&g&&(t(1,h,g,s)||t(0,h,g,s)))return!0}return v.dataFilter(s,c[0])&&v.dataFilter(s,c[1])}function e(s,c,h,g,A){var b=g.coordinateSystem,w=s.getItemModel(c),x,T=S.parsePercent(w.get("x"),A.getWidth()),_=S.parsePercent(w.get("y"),A.getHeight());if(!isNaN(T)&&!isNaN(_))x=[T,_];else{if(g.getMarkerPosition)x=g.getMarkerPosition(s.getValues(s.dimensions,c));else{var E=b.dimensions,C=s.get(E[0],c),I=s.get(E[1],c);x=b.dataToPoint([C,I])}if(b.type==="cartesian2d"){var O=b.getAxis("x"),F=b.getAxis("y"),E=b.dimensions;n(s.get(E[0],c))?x[0]=O.toGlobalCoord(O.getExtent()[h?0:1]):n(s.get(E[1],c))&&(x[1]=F.toGlobalCoord(F.getExtent()[h?0:1]))}isNaN(T)||(x[0]=T),isNaN(_)||(x[1]=_)}s.setItemLayout(c,x)}var l=f.extend({type:"markLine",updateTransform:function(s,c,h){c.eachSeries(function(g){var A=g.markLineModel;if(A){var b=A.getData(),w=A.__from,x=A.__to;w.each(function(T){e(w,T,!0,g,h),e(x,T,!1,g,h)}),b.each(function(T){b.setItemLayout(T,[w.getItemLayout(T),x.getItemLayout(T)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(s,c,h,g){var A=s.coordinateSystem,b=s.id,w=s.getData(),x=this.markerGroupMap,T=x.get(b)||x.set(b,new m);this.group.add(T.group);var _=r(A,s,c),E=_.from,C=_.to,I=_.line;c.__from=E,c.__to=C,c.setData(I);var O=c.get("symbol"),F=c.get("symbolSize");y.isArray(O)||(O=[O,O]),typeof F=="number"&&(F=[F,F]),_.from.each(function(B){R(E,B,!0),R(C,B,!1)}),I.each(function(B){var P=I.getItemModel(B).get("lineStyle.color");I.setItemVisual(B,{color:P||E.getItemVisual(B,"color")}),I.setItemLayout(B,[E.getItemLayout(B),C.getItemLayout(B)]),I.setItemVisual(B,{fromSymbolSize:E.getItemVisual(B,"symbolSize"),fromSymbol:E.getItemVisual(B,"symbol"),toSymbolSize:C.getItemVisual(B,"symbolSize"),toSymbol:C.getItemVisual(B,"symbol")})}),T.updateData(I),_.line.eachItemGraphicEl(function(B,P){B.traverse(function(X){X.dataModel=c})});function R(B,P,X){var M=B.getItemModel(P);e(B,P,X,s,g),B.setItemVisual(P,{symbolSize:M.get("symbolSize")||F[X?0:1],symbol:M.get("symbol",!0)||O[X?0:1],color:M.get("itemStyle.color")||w.getVisual("color")})}T.__keep=!0,T.group.silent=c.get("silent")||s.get("silent")}});function r(s,c,h){var g;s?g=y.map(s&&s.dimensions,function(_){var E=c.getData().getDimensionInfo(c.getData().mapDimension(_))||{};return y.defaults({name:_},E)}):g=[{name:"value",type:"float"}];var A=new p(g,h),b=new p(g,h),w=new p([],h),x=y.map(h.get("data"),y.curry(o,c,s,h));s&&(x=y.filter(x,y.curry(a,s)));var T=s?v.dimValueGetter:function(_){return _.value};return A.initData(y.map(x,function(_){return _[0]}),null,T),b.initData(y.map(x,function(_){return _[1]}),null,T),w.initData(y.map(x,function(_){return _[2]})),w.hasItemOption=!0,{from:A,to:b,line:w}}k.exports=l},MHoB:function(k,D,i){var y=i("bYtY"),p=i("6uqw"),S=i("OELB"),v=[20,140],m=p.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,o){m.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.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]=v[0]),(u[1]==null||isNaN(u[1]))&&(u[1]=v[1])},_resetRange:function(){var u=this.getExtent(),o=this.option.range;!o||o.auto?(u.auto=1,this.option.range=u):y.isArray(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],u[0]),o[1]=Math.min(o[1],u[1]))},completeVisualOption:function(){p.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(u){var o=this.option.controller[u].symbolSize;o&&o[0]!==o[1]&&(o[0]=0)},this)},setSelected:function(u){this.option.range=u.slice(),this._resetRange()},getSelected:function(){var u=this.getExtent(),o=S.asc((this.get("range")||[]).slice());return o[0]>u[1]&&(o[0]=u[1]),o[1]>u[1]&&(o[1]=u[1]),o[0]<u[0]&&(o[0]=u[0]),o[1]<u[0]&&(o[1]=u[0]),o},getValueState:function(u){var o=this.option.range,n=this.getExtent();return(o[0]<=n[0]||o[0]<=u)&&(o[1]>=n[1]||u<=o[1])?"inRange":"outOfRange"},findTargetDataIndices:function(u){var o=[];return this.eachTargetSeries(function(n){var t=[],a=n.getData();a.each(this.getDataDimension(a),function(e,l){u[0]<=e&&e<=u[1]&&t.push(l)},this),o.push({seriesId:n.id,dataIndex:t})},this),o},getVisualMeta:function(u){var o=f(this,"outOfRange",this.getExtent()),n=f(this,"inRange",this.option.range.slice()),t=[];function a(g,A){t.push({value:g,color:u(g,A)})}for(var e=0,l=0,r=n.length,s=o.length;l<s&&(!n.length||o[l]<=n[0]);l++)o[l]<n[e]&&a(o[l],"outOfRange");for(var c=1;e<r;e++,c=0)c&&t.length&&a(n[e],"outOfRange"),a(n[e],"inRange");for(var c=1;l<s;l++)(!n.length||n[n.length-1]<o[l])&&(c&&(t.length&&a(t[t.length-1].value,"outOfRange"),c=0),a(o[l],"outOfRange"));var h=t.length;return{stops:t,outerColors:[h?t[0].color:"transparent",h?t[h-1].color:"transparent"]}}});function f(u,o,n){if(n[0]===n[1])return n.slice();for(var t=200,a=(n[1]-n[0])/t,e=n[0],l=[],r=0;r<=t&&e<n[1];r++)l.push(e),e+=a;return l.push(n[1]),l}var d=m;k.exports=d},MHtr:function(k,D,i){var y=i("bYtY");function p(v,m){var f=this.getAxis(),d=m instanceof Array?m[0]:m,u=(v instanceof Array?v[0]:v)/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(d-u)-f.dataToCoord(d+u))}function S(v){var m=v.getRect();return{coordSys:{type:"singleAxis",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return v.dataToPoint(f)},size:y.bind(p,v)}}}k.exports=S},MJZm:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("q1tI"),f=i("rePB"),d=i("VTBJ"),u=i("KQm4"),o=i("1OyB"),n=i("vuIU"),t=i("Ji7U"),a=i("LK+K"),e=i("4IlW"),l=i("Kwbf"),r=i("TSYQ"),s=i.n(r),c=i("FTAc"),h=i("wPhX"),g=i("c3jg"),A=i("ODXe"),b=i("Ff2n"),w=i("+nKL"),x=i("HTfv"),T=i("lr6o"),_=function(lr,Sr){var mt=lr.className,or=lr.style,et=lr.motion,ur=lr.motionNodes,qr=lr.motionType,Fe=lr.onMotionStart,$t=lr.onMotionEnd,Lr=lr.active,pt=lr.treeNodeRequiredProps,qt=Object(b.a)(lr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),vr=m.useState(!0),pn=Object(A.a)(vr,2),fr=pn[0],gr=pn[1],dn=m.useContext(c.a),Qt=dn.prefixCls,sr=m.useRef(!1),Qr=function(){sr.current||$t(),sr.current=!0};return Object(m.useEffect)(function(){ur&&qr==="hide"&&fr&&gr(!1)},[ur]),Object(m.useEffect)(function(){return ur&&Fe(),function(){ur&&Qr()}},[]),ur?m.createElement(x.default,Object.assign({ref:Sr,visible:fr},et,{motionAppear:qr==="show",onAppearEnd:Qr,onLeaveEnd:Qr}),function(Cn,Fn){var ti=Cn.className,ki=Cn.style;return m.createElement("div",{ref:Fn,className:s()("".concat(Qt,"-treenode-motion"),ti),style:ki},ur.map(function(Dn){var Bn=Dn.data,Ft=Bn.key,vt=Object(b.a)(Bn,["key"]),_e=Dn.isStart,Ne=Dn.isEnd;delete vt.children;var Ie=Object(g.f)(Ft,pt);return m.createElement(T.a,Object.assign({},vt,Ie,{active:Lr,data:Dn.data,key:Ft,isStart:_e,isEnd:Ne}))}))}):m.createElement(T.a,Object.assign({domRef:Sr,className:mt,style:or},qt,{active:Lr}))};_.displayName="MotionTreeNode";var E=m.forwardRef(_),C=E;function I(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Sr=ir.length,mt=lr.length;if(Math.abs(Sr-mt)!==1)return{add:!1,key:null};function or(et,ur){var qr=new Map;et.forEach(function($t){qr.set($t,!0)});var Fe=ur.filter(function($t){return!qr.has($t)});return Fe.length===1?Fe[0]:null}return Sr<mt?{add:!0,key:or(ir,lr)}:{add:!1,key:or(lr,ir)}}function O(ir,lr,Sr){var mt=ir.findIndex(function(qr){var Fe=qr.data;return Fe.key===Sr}),or=ir[mt+1],et=lr.findIndex(function(qr){var Fe=qr.data;return Fe.key===Sr});if(or){var ur=lr.findIndex(function(qr){var Fe=qr.data;return Fe.key===or.data.key});return lr.slice(et+1,ur)}return lr.slice(et+1)}var F={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},B="RC_TREE_MOTION_".concat(Math.random()),P={key:B},X={key:B,level:0,index:0,pos:"0",node:P},M={parent:null,children:[],pos:X.pos,data:P,isStart:[],isEnd:[]};function z(ir,lr,Sr,mt){return lr===!1||!Sr?ir:ir.slice(0,Math.ceil(Sr/mt)+1)}function W(ir){var lr=ir.data.key,Sr=ir.pos;return Object(g.e)(lr,Sr)}function H(ir){for(var lr=String(ir.data.key),Sr=ir;Sr.parent;)Sr=Sr.parent,lr="".concat(Sr.data.key," > ").concat(lr);return lr}var V=function(lr,Sr){var mt=lr.prefixCls,or=lr.data,et=lr.selectable,ur=lr.checkable,qr=lr.expandedKeys,Fe=lr.selectedKeys,$t=lr.checkedKeys,Lr=lr.loadedKeys,pt=lr.loadingKeys,qt=lr.halfCheckedKeys,vr=lr.keyEntities,pn=lr.disabled,fr=lr.dragging,gr=lr.dragOverNodeKey,dn=lr.dropPosition,Qt=lr.motion,sr=lr.height,Qr=lr.itemHeight,Cn=lr.virtual,Fn=lr.focusable,ti=lr.activeItem,ki=lr.focused,Dn=lr.tabIndex,Bn=lr.onKeyDown,Ft=lr.onFocus,vt=lr.onBlur,_e=lr.onActiveChange,Ne=lr.onListChangeStart,Ie=lr.onListChangeEnd,Ze=Object(b.a)(lr,["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"]),ct=m.useRef(null);m.useImperativeHandle(Sr,function(){return{scrollTo:function(Ni){ct.current.scrollTo(Ni)}}});var gt=m.useState(qr),kt=Object(A.a)(gt,2),xr=kt[0],Hr=kt[1],on=m.useState(or),Nt=Object(A.a)(on,2),ot=Nt[0],dt=Nt[1],Yt=m.useState(or),Pt=Object(A.a)(Yt,2),Et=Pt[0],Bt=Pt[1],wt=m.useState([]),Mt=Object(A.a)(wt,2),Nr=Mt[0],Tr=Mt[1],yr=m.useState(null),en=Object(A.a)(yr,2),sn=en[0],Vn=en[1];function jn(){dt(or),Bt(or),Tr([]),Vn(null),Ie()}m.useEffect(function(){Hr(qr);var gi=I(xr,qr);if(gi.key!==null)if(gi.add){var Ni=ot.findIndex(function(ze){var $e=ze.data.key;return $e===gi.key}),Qe=z(O(ot,or,gi.key),Cn,sr,Qr),Se=ot.slice();Se.splice(Ni+1,0,M),Bt(Se),Tr(Qe),Vn("show")}else{var Pe=or.findIndex(function(ze){var $e=ze.data.key;return $e===gi.key}),He=z(O(or,ot,gi.key),Cn,sr,Qr),Ye=or.slice();Ye.splice(Pe+1,0,M),Bt(Ye),Tr(He),Vn("hide")}else ot!==or&&(dt(or),Bt(or))},[qr,or]),m.useEffect(function(){fr||jn()},[fr]);var ri=Qt?Et:or,ci={expandedKeys:qr,selectedKeys:Fe,loadedKeys:Lr,loadingKeys:pt,checkedKeys:$t,halfCheckedKeys:qt,dragOverNodeKey:gr,dropPosition:dn,keyEntities:vr};return m.createElement(m.Fragment,null,ki&&ti&&m.createElement("span",{style:F,"aria-live":"assertive"},H(ti)),m.createElement("div",{role:"tree"},m.createElement("input",{style:F,disabled:Fn===!1||pn,tabIndex:Fn!==!1?Dn:null,onKeyDown:Bn,onFocus:Ft,onBlur:vt,value:"",onChange:R})),m.createElement(w.a,Object.assign({},Ze,{data:ri,itemKey:W,height:sr,fullHeight:!1,virtual:Cn,itemHeight:Qr,prefixCls:"".concat(mt,"-list"),ref:ct}),function(gi){var Ni=gi.pos,Qe=gi.data,Se=Qe.key,Pe=Object(b.a)(Qe,["key"]),He=gi.isStart,Ye=gi.isEnd,ze=Object(g.e)(Se,Ni);delete Pe.children;var $e=Object(g.f)(ze,ci);return m.createElement(C,Object.assign({},Pe,$e,{active:ti&&Se===ti.data.key,pos:Ni,data:gi.data,isStart:He,isEnd:Ye,motion:Qt,motionNodes:Se===B?Nr:null,motionType:sn,onMotionStart:Ne,onMotionEnd:jn,treeNodeRequiredProps:ci,onMouseMove:function(){_e(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var G=Q,ee=i("qOx5"),q=function(ir){Object(t.a)(Sr,ir);var lr=Object(a.a)(Sr);function Sr(){var mt;return Object(o.a)(this,Sr),mt=lr.apply(this,arguments),mt.destroyed=!1,mt.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},mt.listRef=m.createRef(),mt.onNodeDragStart=function(or,et){var ur=mt.state,qr=ur.expandedKeys,Fe=ur.keyEntities,$t=mt.props.onDragStart,Lr=et.props.eventKey;mt.dragNode=et;var pt=Object(h.b)(qr,Lr);mt.setState({dragging:!0,dragNodesKeys:Object(h.g)(Lr,Fe)}),mt.setExpandedKeys(pt),$t&&$t({event:or,node:Object(g.b)(et.props)})},mt.onNodeDragEnter=function(or,et){var ur=mt.state,qr=ur.expandedKeys,Fe=ur.keyEntities,$t=ur.dragNodesKeys,Lr=mt.props.onDragEnter,pt=et.props,qt=pt.pos,vr=pt.eventKey;if(!mt.dragNode||$t.indexOf(vr)!==-1)return;var pn=Object(h.c)(or,et);if(mt.dragNode.props.eventKey===vr&&pn===0){mt.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){mt.setState({dragOverNodeKey:vr,dropPosition:pn}),mt.delayedDragEnterLogic||(mt.delayedDragEnterLogic={}),Object.keys(mt.delayedDragEnterLogic).forEach(function(fr){clearTimeout(mt.delayedDragEnterLogic[fr])}),mt.delayedDragEnterLogic[qt]=window.setTimeout(function(){if(!mt.state.dragging)return;var fr=Object(u.a)(qr),gr=Fe[vr];gr&&(gr.children||[]).length&&(fr=Object(h.a)(qr,vr)),"expandedKeys"in mt.props||mt.setExpandedKeys(fr),Lr&&Lr({event:or,node:Object(g.b)(et.props),expandedKeys:fr})},400)},0)},mt.onNodeDragOver=function(or,et){var ur=mt.state.dragNodesKeys,qr=mt.props.onDragOver,Fe=et.props.eventKey;if(ur.indexOf(Fe)!==-1)return;if(mt.dragNode&&Fe===mt.state.dragOverNodeKey){var $t=Object(h.c)(or,et);if($t===mt.state.dropPosition)return;mt.setState({dropPosition:$t})}qr&&qr({event:or,node:Object(g.b)(et.props)})},mt.onNodeDragLeave=function(or,et){var ur=mt.props.onDragLeave;mt.setState({dragOverNodeKey:""}),ur&&ur({event:or,node:Object(g.b)(et.props)})},mt.onNodeDragEnd=function(or,et){var ur=mt.props.onDragEnd;mt.setState({dragOverNodeKey:""}),mt.cleanDragState(),ur&&ur({event:or,node:Object(g.b)(et.props)}),mt.dragNode=null},mt.onNodeDrop=function(or,et){var ur=mt.state,qr=ur.dragNodesKeys,Fe=qr===void 0?[]:qr,$t=ur.dropPosition,Lr=mt.props.onDrop,pt=et.props,qt=pt.eventKey,vr=pt.pos;if(mt.setState({dragOverNodeKey:""}),mt.cleanDragState(),Fe.indexOf(qt)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var pn=Object(h.k)(vr),fr={event:or,node:Object(g.b)(et.props),dragNode:mt.dragNode?Object(g.b)(mt.dragNode.props):null,dragNodesKeys:Fe.slice(),dropPosition:$t+Number(pn[pn.length-1]),dropToGap:!1};$t!==0&&(fr.dropToGap=!0),Lr&&Lr(fr),mt.dragNode=null},mt.cleanDragState=function(){var or=mt.state.dragging;or&&mt.setState({dragging:!1})},mt.onNodeClick=function(or,et){var ur=mt.props.onClick;ur&&ur(or,et)},mt.onNodeDoubleClick=function(or,et){var ur=mt.props.onDoubleClick;ur&&ur(or,et)},mt.onNodeSelect=function(or,et){var ur=mt.state.selectedKeys,qr=mt.state.keyEntities,Fe=mt.props,$t=Fe.onSelect,Lr=Fe.multiple,pt=et.selected,qt=et.key,vr=!pt;vr?Lr?ur=Object(h.a)(ur,qt):ur=[qt]:ur=Object(h.b)(ur,qt);var pn=ur.map(function(fr){var gr=qr[fr];return gr?gr.node:null}).filter(function(fr){return fr});mt.setUncontrolledState({selectedKeys:ur}),$t&&$t(ur,{event:"select",selected:vr,node:et,selectedNodes:pn,nativeEvent:or.nativeEvent})},mt.onNodeCheck=function(or,et,ur){var qr=mt.state,Fe=qr.keyEntities,$t=qr.checkedKeys,Lr=qr.halfCheckedKeys,pt=mt.props,qt=pt.checkStrictly,vr=pt.onCheck,pn=et.key,fr,gr={event:"check",node:et,checked:ur,nativeEvent:or.nativeEvent};if(qt){var dn=ur?Object(h.a)($t,pn):Object(h.b)($t,pn),Qt=Object(h.b)(Lr,pn);fr={checked:dn,halfChecked:Qt},gr.checkedNodes=dn.map(function(ki){return Fe[ki]}).filter(function(ki){return ki}).map(function(ki){return ki.node}),mt.setUncontrolledState({checkedKeys:dn})}else{var sr=Object(ee.a)([].concat(Object(u.a)($t),[pn]),!0,Fe),Qr=sr.checkedKeys,Cn=sr.halfCheckedKeys;if(!ur){var Fn=new Set(Qr);Fn.delete(pn);var ti=Object(ee.a)(Array.from(Fn),{checked:!1,halfCheckedKeys:Cn},Fe);Qr=ti.checkedKeys,Cn=ti.halfCheckedKeys}fr=Qr,gr.checkedNodes=[],gr.checkedNodesPositions=[],gr.halfCheckedKeys=Cn,Qr.forEach(function(ki){var Dn=Fe[ki];if(!Dn)return;var Bn=Dn.node,Ft=Dn.pos;gr.checkedNodes.push(Bn),gr.checkedNodesPositions.push({node:Bn,pos:Ft})}),mt.setUncontrolledState({checkedKeys:Qr},!1,{halfCheckedKeys:Cn})}vr&&vr(fr,gr)},mt.onNodeLoad=function(or){return new Promise(function(et){mt.setState(function(ur){var qr=ur.loadedKeys,Fe=qr===void 0?[]:qr,$t=ur.loadingKeys,Lr=$t===void 0?[]:$t,pt=mt.props,qt=pt.loadData,vr=pt.onLoad,pn=or.key;if(!qt||Fe.indexOf(pn)!==-1||Lr.indexOf(pn)!==-1)return{};var fr=qt(or);return fr.then(function(){var gr=mt.state,dn=gr.loadedKeys,Qt=gr.loadingKeys,sr=Object(h.a)(dn,pn),Qr=Object(h.b)(Qt,pn);vr&&vr(sr,{event:"load",node:or}),mt.setUncontrolledState({loadedKeys:sr}),mt.setState({loadingKeys:Qr}),et()}),{loadingKeys:Object(h.a)(Lr,pn)}})})},mt.onNodeMouseEnter=function(or,et){var ur=mt.props.onMouseEnter;ur&&ur({event:or,node:et})},mt.onNodeMouseLeave=function(or,et){var ur=mt.props.onMouseLeave;ur&&ur({event:or,node:et})},mt.onNodeContextMenu=function(or,et){var ur=mt.props.onRightClick;ur&&(or.preventDefault(),ur({event:or,node:et}))},mt.onFocus=function(){var or=mt.props.onFocus;mt.setState({focused:!0}),or&&or.apply(void 0,arguments)},mt.onBlur=function(){var or=mt.props.onBlur;mt.setState({focused:!1}),mt.onActiveChange(null),or&&or.apply(void 0,arguments)},mt.getTreeNodeRequiredProps=function(){var or=mt.state,et=or.expandedKeys,ur=or.selectedKeys,qr=or.loadedKeys,Fe=or.loadingKeys,$t=or.checkedKeys,Lr=or.halfCheckedKeys,pt=or.dragOverNodeKey,qt=or.dropPosition,vr=or.keyEntities;return{expandedKeys:et||[],selectedKeys:ur||[],loadedKeys:qr||[],loadingKeys:Fe||[],checkedKeys:$t||[],halfCheckedKeys:Lr||[],dragOverNodeKey:pt,dropPosition:qt,keyEntities:vr}},mt.setExpandedKeys=function(or){var et=mt.state.treeData,ur=Object(g.d)(et,or);mt.setUncontrolledState({expandedKeys:or,flattenNodes:ur},!0)},mt.onNodeExpand=function(or,et){var ur=mt.state.expandedKeys,qr=mt.state.listChanging,Fe=mt.props,$t=Fe.onExpand,Lr=Fe.loadData,pt=et.key,qt=et.expanded;if(qr)return;var vr=ur.indexOf(pt),pn=!qt;if(Object(l.a)(qt&&vr!==-1||!qt&&vr===-1,"Expand state not sync with index check"),pn?ur=Object(h.a)(ur,pt):ur=Object(h.b)(ur,pt),mt.setExpandedKeys(ur),$t&&$t(ur,{node:et,expanded:pn,nativeEvent:or.nativeEvent}),pn&&Lr){var fr=mt.onNodeLoad(et);fr&&fr.then(function(){var gr=Object(g.d)(mt.state.treeData,ur);mt.setUncontrolledState({flattenNodes:gr})})}},mt.onListChangeStart=function(){mt.setUncontrolledState({listChanging:!0})},mt.onListChangeEnd=function(){setTimeout(function(){mt.setUncontrolledState({listChanging:!1})})},mt.onActiveChange=function(or){var et=mt.state.activeKey,ur=mt.props.onActiveChange;if(et===or)return;mt.setState({activeKey:or}),or!==null&&mt.scrollTo({key:or}),ur&&ur(or)},mt.getActiveItem=function(){var or=mt.state,et=or.activeKey,ur=or.flattenNodes;return et===null?null:ur.find(function(qr){var Fe=qr.data.key;return Fe===et})||null},mt.offsetActiveKey=function(or){var et=mt.state,ur=et.flattenNodes,qr=et.activeKey,Fe=ur.findIndex(function(pt){var qt=pt.data.key;return qt===qr});Fe===-1&&or<0&&(Fe=ur.length),Fe=(Fe+or+ur.length)%ur.length;var $t=ur[Fe];if($t){var Lr=$t.data.key;mt.onActiveChange(Lr)}else mt.onActiveChange(null)},mt.onKeyDown=function(or){var et=mt.state,ur=et.activeKey,qr=et.expandedKeys,Fe=et.checkedKeys,$t=mt.props,Lr=$t.onKeyDown,pt=$t.checkable,qt=$t.selectable;switch(or.which){case e.a.UP:{mt.offsetActiveKey(-1),or.preventDefault();break}case e.a.DOWN:{mt.offsetActiveKey(1),or.preventDefault();break}}var vr=mt.getActiveItem();if(vr&&vr.data){var pn=mt.getTreeNodeRequiredProps(),fr=vr.data.isLeaf===!1||!!(vr.data.children||[]).length,gr=Object(g.b)(Object(d.a)(Object(d.a)({},Object(g.f)(ur,pn)),{},{data:vr.data,active:!0}));switch(or.which){case e.a.LEFT:{fr&&qr.includes(ur)?mt.onNodeExpand({},gr):vr.parent&&mt.onActiveChange(vr.parent.data.key),or.preventDefault();break}case e.a.RIGHT:{fr&&!qr.includes(ur)?mt.onNodeExpand({},gr):vr.children&&vr.children.length&&mt.onActiveChange(vr.children[0].data.key),or.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{pt&&!gr.disabled&&gr.checkable!==!1&&!gr.disableCheckbox?mt.onNodeCheck({},gr,!Fe.includes(ur)):!pt&&qt&&!gr.disabled&&gr.selectable!==!1&&mt.onNodeSelect({},gr);break}}}Lr&&Lr(or)},mt.setUncontrolledState=function(or){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(mt.destroyed)return;var qr=!1,Fe=!0,$t={};Object.keys(or).forEach(function(Lr){if(Lr in mt.props){Fe=!1;return}qr=!0,$t[Lr]=or[Lr]}),qr&&(!et||Fe)&&mt.setState(Object(d.a)(Object(d.a)({},$t),ur))},mt.scrollTo=function(or){mt.listRef.current.scrollTo(or)},mt}return Object(n.a)(Sr,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var or,et=this.state,ur=et.focused,qr=et.flattenNodes,Fe=et.keyEntities,$t=et.dragging,Lr=et.activeKey,pt=this.props,qt=pt.prefixCls,vr=pt.className,pn=pt.style,fr=pt.showLine,gr=pt.focusable,dn=pt.tabIndex,Qt=dn===void 0?0:dn,sr=pt.selectable,Qr=pt.showIcon,Cn=pt.icon,Fn=pt.switcherIcon,ti=pt.draggable,ki=pt.checkable,Dn=pt.checkStrictly,Bn=pt.disabled,Ft=pt.motion,vt=pt.loadData,_e=pt.filterTreeNode,Ne=pt.height,Ie=pt.itemHeight,Ze=pt.virtual,ct=pt.titleRender,gt=pt.onContextMenu,kt=Object(h.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:qt,selectable:sr,showIcon:Qr,icon:Cn,switcherIcon:Fn,draggable:ti,checkable:ki,checkStrictly:Dn,disabled:Bn,keyEntities:Fe,loadData:vt,filterTreeNode:_e,titleRender:ct,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:s()(qt,vr,(or={},Object(f.a)(or,"".concat(qt,"-show-line"),fr),Object(f.a)(or,"".concat(qt,"-focused"),ur),Object(f.a)(or,"".concat(qt,"-active-focused"),Lr!==null),or))},m.createElement(G,Object.assign({ref:this.listRef,prefixCls:qt,style:pn,data:qr,disabled:Bn,selectable:sr,checkable:!!ki,motion:Ft,dragging:$t,height:Ne,itemHeight:Ie,virtual:Ze,focusable:gr,focused:ur,tabIndex:Qt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:gt},this.getTreeNodeRequiredProps(),kt))))}}],[{key:"getDerivedStateFromProps",value:function(or,et){var ur=et.prevProps,qr={prevProps:or};function Fe(Cn){return!ur&&Cn in or||ur&&ur[Cn]!==or[Cn]}var $t;if(Fe("treeData")?$t=or.treeData:Fe("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),$t=Object(g.c)(or.children)),$t){qr.treeData=$t;var Lr=Object(g.a)($t);qr.keyEntities=Object(d.a)(Object(f.a)({},B,X),Lr.keyEntities)}var pt=qr.keyEntities||et.keyEntities;if(Fe("expandedKeys")||ur&&Fe("autoExpandParent"))qr.expandedKeys=or.autoExpandParent||!ur&&or.defaultExpandParent?Object(h.e)(or.expandedKeys,pt):or.expandedKeys;else if(!ur&&or.defaultExpandAll){var qt=Object(d.a)({},pt);delete qt[B],qr.expandedKeys=Object.keys(qt).map(function(Cn){return qt[Cn].key})}else!ur&&or.defaultExpandedKeys&&(qr.expandedKeys=or.autoExpandParent||or.defaultExpandParent?Object(h.e)(or.defaultExpandedKeys,pt):or.defaultExpandedKeys);if(qr.expandedKeys||delete qr.expandedKeys,$t||qr.expandedKeys){var vr=Object(g.d)($t||et.treeData,qr.expandedKeys||et.expandedKeys);qr.flattenNodes=vr}if(or.selectable&&(Fe("selectedKeys")?qr.selectedKeys=Object(h.d)(or.selectedKeys,or):!ur&&or.defaultSelectedKeys&&(qr.selectedKeys=Object(h.d)(or.defaultSelectedKeys,or))),or.checkable){var pn;if(Fe("checkedKeys")?pn=Object(h.j)(or.checkedKeys)||{}:!ur&&or.defaultCheckedKeys?pn=Object(h.j)(or.defaultCheckedKeys)||{}:$t&&(pn=Object(h.j)(or.checkedKeys)||{checkedKeys:et.checkedKeys,halfCheckedKeys:et.halfCheckedKeys}),pn){var fr=pn,gr=fr.checkedKeys,dn=gr===void 0?[]:gr,Qt=fr.halfCheckedKeys,sr=Qt===void 0?[]:Qt;if(!or.checkStrictly){var Qr=Object(ee.a)(dn,!0,pt);dn=Qr.checkedKeys,sr=Qr.halfCheckedKeys}qr.checkedKeys=dn,qr.halfCheckedKeys=sr}}return Fe("loadedKeys")&&(qr.loadedKeys=or.loadedKeys),qr}}]),Sr}(m.Component);q.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:[]},q.TreeNode=T.a;var se=q,re=se,Ae=i("RIqP"),Te=i.n(Ae),Re=i("J4zp"),Ge=i.n(Re),Ue=i("sEfC"),nt=i.n(Ue),Le=i("vk+C"),le=i.n(Le),Xe=i("Vy0f"),pe=i.n(Xe),Z=i("kGiB"),Y=i.n(Z),ne=i("H84U"),ce;(function(ir){ir[ir.None=0]="None",ir[ir.Start=1]="Start",ir[ir.End=2]="End"})(ce||(ce={}));function ye(ir,lr){function Sr(mt){var or=mt.key,et=mt.children;lr(or,mt)!==!1&&ye(et||[],lr)}ir.forEach(Sr)}function Ee(ir){var lr=ir.treeData,Sr=ir.expandedKeys,mt=ir.startKey,or=ir.endKey,et=[],ur=ce.None;if(mt&&mt===or)return[mt];if(!mt||!or)return[];function qr(Fe){return Fe===mt||Fe===or}return ye(lr,function(Fe){if(ur===ce.End)return!1;if(qr(Fe)){if(et.push(Fe),ur===ce.None)ur=ce.Start;else if(ur===ce.Start)return ur=ce.End,!1}else ur===ce.Start&&et.push(Fe);return!(Sr.indexOf(Fe)===-1)}),et}function Ce(ir,lr){var Sr=Te()(lr),mt=[];return ye(ir,function(or,et){var ur=Sr.indexOf(or);return ur!==-1&&(mt.push(et),Sr.splice(ur,1)),!!Sr.length}),mt}var ue=function(ir,lr){var Sr={};for(var mt in ir)Object.prototype.hasOwnProperty.call(ir,mt)&&lr.indexOf(mt)<0&&(Sr[mt]=ir[mt]);if(ir!=null&&typeof Object.getOwnPropertySymbols=="function")for(var or=0,mt=Object.getOwnPropertySymbols(ir);or<mt.length;or++)lr.indexOf(mt[or])<0&&Object.prototype.propertyIsEnumerable.call(ir,mt[or])&&(Sr[mt[or]]=ir[mt[or]]);return Sr};function ge(ir){var lr=ir.isLeaf,Sr=ir.expanded;return lr?m.createElement(le.a,null):Sr?m.createElement(pe.a,null):m.createElement(Y.a,null)}function Oe(ir){var lr=ir.treeData,Sr=ir.children;return lr||Object(g.c)(Sr)}var Je=function(lr,Sr){var mt=lr.defaultExpandAll,or=lr.defaultExpandParent,et=lr.defaultExpandedKeys,ur=ue(lr,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),qr=m.useRef(),Fe=m.useRef(),$t=m.createRef();m.useImperativeHandle(Sr,function(){return $t.current});var Lr=function(){var gt=Object(g.a)(Oe(ur)),kt=gt.keyEntities,xr;return mt?xr=Object.keys(kt):or?xr=Object(h.e)(ur.expandedKeys||et,kt):xr=ur.expandedKeys||et,xr},pt=m.useState(ur.selectedKeys||ur.defaultSelectedKeys||[]),qt=Ge()(pt,2),vr=qt[0],pn=qt[1],fr=m.useState(Lr()),gr=Ge()(fr,2),dn=gr[0],Qt=gr[1];m.useEffect(function(){"selectedKeys"in ur&&pn(ur.selectedKeys)},[ur.selectedKeys]),m.useEffect(function(){"expandedKeys"in ur&&Qt(ur.expandedKeys)},[ur.expandedKeys]);var sr=function(gt,kt){var xr=kt.isLeaf;if(xr||gt.shiftKey||gt.metaKey||gt.ctrlKey)return;$t.current.onNodeExpand(gt,kt)},Qr=nt()(sr,200,{leading:!0}),Cn=function(gt,kt){return"expandedKeys"in ur||Qt(gt),ur.onExpand?ur.onExpand(gt,kt):void 0},Fn=function(gt,kt){var xr=ur.expandAction;xr==="click"&&Qr(gt,kt),ur.onClick&&ur.onClick(gt,kt)},ti=function(gt,kt){var xr=ur.expandAction;xr==="doubleClick"&&Qr(gt,kt),ur.onDoubleClick&&ur.onDoubleClick(gt,kt)},ki=function(gt,kt){var xr=ur.multiple,Hr=kt.node,on=kt.nativeEvent,Nt=Hr.key,ot=Nt===void 0?"":Nt,dt=Oe(ur),Yt=v()(v()({},kt),{selected:!0}),Pt=on.ctrlKey||on.metaKey,Et=on.shiftKey,Bt;xr&&Pt?(Bt=gt,qr.current=ot,Fe.current=Bt,Yt.selectedNodes=Ce(dt,Bt)):xr&&Et?(Bt=Array.from(new Set([].concat(Te()(Fe.current||[]),Te()(Ee({treeData:dt,expandedKeys:dn,startKey:ot,endKey:qr.current}))))),Yt.selectedNodes=Ce(dt,Bt)):(Bt=[ot],qr.current=ot,Fe.current=Bt,Yt.selectedNodes=Ce(dt,Bt)),ur.onSelect&&ur.onSelect(Bt,Yt),"selectedKeys"in ur||pn(Bt)},Dn=m.useContext(ne.b),Bn=Dn.getPrefixCls,Ft=Dn.direction,vt=ur.prefixCls,_e=ur.className,Ne=ue(ur,["prefixCls","className"]),Ie=Bn("tree",vt),Ze=s()("".concat(Ie,"-directory"),_e,p()({},"".concat(Ie,"-directory-rtl"),Ft==="rtl"));return m.createElement(Ot,v()({icon:ge,ref:$t,blockNode:!0},Ne,{prefixCls:Ie,className:Ze,expandedKeys:dn,selectedKeys:vr,onSelect:ki,onClick:Fn,onDoubleClick:ti,onExpand:Cn}))},lt=m.forwardRef(Je);lt.displayName="DirectoryTree",lt.defaultProps={showIcon:!0,expandAction:"click"};var tt=lt,ke=i("EXcs"),st=i("2jpz"),Ve=m.forwardRef(function(ir,lr){var Sr,mt=m.useContext(ne.b),or=mt.getPrefixCls,et=mt.direction,ur=mt.virtual,qr=ir.prefixCls,Fe=ir.className,$t=ir.showIcon,Lr=ir.showLine,pt=ir.switcherIcon,qt=ir.blockNode,vr=ir.children,pn=ir.checkable,fr=v()(v()({},ir),{showLine:Boolean(Lr)}),gr=or("tree",qr);return m.createElement(re,v()({itemHeight:20,ref:lr,virtual:ur},fr,{prefixCls:gr,className:s()(Fe,(Sr={},p()(Sr,"".concat(gr,"-icon-hide"),!$t),p()(Sr,"".concat(gr,"-block-node"),qt),p()(Sr,"".concat(gr,"-rtl"),et==="rtl"),Sr)),checkable:pn&&m.createElement("span",{className:"".concat(gr,"-checkbox-inner")}),switcherIcon:function(Qt){return Object(st.a)(gr,pt,Lr,Qt)}}),vr)});Ve.TreeNode=T.a,Ve.DirectoryTree=tt,Ve.defaultProps={checkable:!1,showIcon:!1,motion:v()(v()({},ke.a),{motionAppear:!1}),blockNode:!1};var Ot=Ve,Ut=D.a=Ot},MKOG:function(k,D,i){var y=i("bYtY"),p=i("YH21"),S=p.Dispatcher,v=i("mLcG"),m=i("Bq2U"),f=function(o){o=o||{},this.stage=o.stage||{},this.onframe=o.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,S.call(this)};f.prototype={constructor:f,addClip:function(o){this._clips.push(o)},addAnimator:function(o){o.animation=this;for(var n=o.getClips(),t=0;t<n.length;t++)this.addClip(n[t])},removeClip:function(o){var n=y.indexOf(this._clips,o);n>=0&&this._clips.splice(n,1)},removeAnimator:function(o){for(var n=o.getClips(),t=0;t<n.length;t++)this.removeClip(n[t]);o.animation=null},_update:function(){for(var o=new Date().getTime()-this._pausedTime,n=o-this._time,t=this._clips,a=t.length,e=[],l=[],r=0;r<a;r++){var s=t[r],c=s.step(o,n);c&&(e.push(c),l.push(s))}for(var r=0;r<a;)t[r]._needsRemove?(t[r]=t[a-1],t.pop(),a--):r++;a=e.length;for(var r=0;r<a;r++)l[r].fire(e[r]);this._time=o,this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update()},_startLoop:function(){var o=this;this._running=!0;function n(){o._running&&(v(n),!o._paused&&o._update())}v(n)},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(o,n){n=n||{};var t=new m(o,n.loop,n.getter,n.setter);return this.addAnimator(t),t}},y.mixin(f,S);var d=f;k.exports=d},MMmD:function(k,D,i){var y=i("lSCD"),p=i("shjB");function S(v){return v!=null&&p(v.length)&&!y(v)}k.exports=S},MRoa:function(k,D,i){var y=i("ProS");i("0Bwj"),i("W2nI"),i("vcCh");var p=i("gawk"),S=i("Dg8C");y.registerLayout(p),y.registerVisual(S)},MT78:function(k,D,i){var y=i("ProS");(function(){for(var S in y){if(y==null||!y.hasOwnProperty(S)||S==="default"||S==="__esModule")return;D[S]=y[S]}})();var p=i("txkQ");(function(){for(var S in p){if(p==null||!p.hasOwnProperty(S)||S==="default"||S==="__esModule")return;D[S]=p[S]}})(),i("A1Ka"),i("75ce"),i("lLGD"),i("wDdD"),i("Fa/5"),i("jett"),i("Z1wy"),i("75ev"),i("2uGb"),i("I+77"),i("B+YJ"),i("pLH3"),i("CBdT"),i("MRoa"),i("+lIL"),i("CF2D"),i("ERHi"),i("p+If"),i("XOKv"),i("qt/9"),i("bBL8"),i("1xaR"),i("4Feb"),i("zRKj"),i("L3Oj"),i("0HBW"),i("LPzL"),i("8waO"),i("k5C7"),i("f1nB"),i("sRwP"),i("AH3D"),i("y4/Y"),i("LzGr"),i("Ynxi"),i("7pVf"),i("2w7y"),i("laiN"),i("fjKi"),i("C0tN"),i("0o9m"),i("Cm0C"),i("f3JH"),i("5NHt"),i("VFCP"),i("dBmv"),i("KamJ"),i("8XDt"),i("juDX")},MXD1:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("Kvyg"),v=i.n(S)},MZdM:function(k,D,i){"use strict";function y(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(r){return typeof r}:y=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},y(e)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=u(i("Lo0S")),S=f(i("N/zr")),v=i("GdRQ"),m=i("GQ8N");function f(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 r={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var h=s?Object.getOwnPropertyDescriptor(e,c):null;h&&(h.get||h.set)?Object.defineProperty(r,c,h):r[c]=e[c]}return r.default=e,l&&l.set(e,r),r}function o(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function n(e,l){for(var r=0;r<l.length;r++){var s=l[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function t(e,l,r){return l&&n(e.prototype,l),r&&n(e,r),e}var a=function(){function e(l){if(o(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,p.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},p.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),p.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return t(e,[{key:"viewportChangePos",value:function(r,s){var c=this._viewportLoc;r=Math.floor(r),s=Math.floor(s),this._clipViewport||(r=-c.w,s=-c.h);var h=c.x+c.w-1,g=c.y+c.h-1;if(r<0&&c.x+r<0&&(r=-c.x),h+r>=this._fbWidth&&(r-=h+r-this._fbWidth+1),c.y+s<0&&(s=-c.y),g+s>=this._fbHeight&&(s-=g+s-this._fbHeight+1),r===0&&s===0)return;p.Debug("viewportChange deltaX: "+r+", deltaY: "+s),c.x+=r,c.y+=s,this._damage(c.x,c.y,c.w,c.h),this.flip()}},{key:"viewportChangeSize",value:function(r,s){(!this._clipViewport||typeof r=="undefined"||typeof s=="undefined")&&(p.Debug("Setting viewport to full display region"),r=this._fbWidth,s=this._fbHeight),r=Math.floor(r),s=Math.floor(s),r>this._fbWidth&&(r=this._fbWidth),s>this._fbHeight&&(s=this._fbHeight);var c=this._viewportLoc;if(c.w!==r||c.h!==s){c.w=r,c.h=s;var h=this._target;h.width=r,h.height=s,this.viewportChangePos(0,0),this._damage(c.x,c.y,c.w,c.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(r){return this._scale===0?0:(0,m.toSigned32bit)(r/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(r){return this._scale===0?0:(0,m.toSigned32bit)(r/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(r,s){this._prevDrawStyle="",this._fbWidth=r,this._fbHeight=s;var c=this._backbuffer;if(c.width!==r||c.height!==s){var h=null;c.width>0&&c.height>0&&(h=this._drawCtx.getImageData(0,0,c.width,c.height)),c.width!==r&&(c.width=r),c.height!==s&&(c.height=s),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(r,s,c,h){r<this._damageBounds.left&&(this._damageBounds.left=r),s<this._damageBounds.top&&(this._damageBounds.top=s),r+c>this._damageBounds.right&&(this._damageBounds.right=r+c),s+h>this._damageBounds.bottom&&(this._damageBounds.bottom=s+h)}},{key:"flip",value:function(r){if(this._renderQ.length!==0&&!r)this._renderQPush({type:"flip"});else{var s=this._damageBounds.left,c=this._damageBounds.top,h=this._damageBounds.right-s,g=this._damageBounds.bottom-c,A=s-this._viewportLoc.x,b=c-this._viewportLoc.y;A<0&&(h+=A,s-=A,A=0),b<0&&(g+=b,c-=b,b=0),A+h>this._viewportLoc.w&&(h=this._viewportLoc.w-A),b+g>this._viewportLoc.h&&(g=this._viewportLoc.h-b),h>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,s,c,h,g,A,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(r,s,c,h,g,A){this._renderQ.length!==0&&!A?this._renderQPush({type:"fill",x:r,y:s,width:c,height:h,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(r,s,c,h),this._damage(r,s,c,h))}},{key:"copyImage",value:function(r,s,c,h,g,A,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:s,x:c,y:h,width:g,height:A}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,r,s,g,A,c,h,g,A),this._damage(c,h,g,A))}},{key:"imageRect",value:function(r,s,c,h,g,A){if(c===0||h===0)return;var b=new Image;b.src="data: "+g+";base64,"+S.default.encode(A),this._renderQPush({type:"img",img:b,x:r,y:s,width:c,height:h})}},{key:"startTile",value:function(r,s,c,h,g){this._tileX=r,this._tileY=s,c===16&&h===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,h);for(var A=g[2],b=g[1],w=g[0],x=this._tile.data,T=0;T<c*h*4;T+=4)x[T]=A,x[T+1]=b,x[T+2]=w,x[T+3]=255}},{key:"subTile",value:function(r,s,c,h,g){for(var A=g[2],b=g[1],w=g[0],x=r+c,T=s+h,_=this._tile.data,E=this._tile.width,C=s;C<T;C++)for(var I=r;I<x;I++){var O=(I+C*E)*4;_[O]=A,_[O+1]=b,_[O+2]=w,_[O+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(r,s,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var w=new Uint8Array(c*h*4);w.set(new Uint8Array(g.buffer,0,w.length)),this._renderQPush({type:"blit",data:w,x:r,y:s,width:c,height:h})}else this._bgrxImageData(r,s,c,h,g,A)}},{key:"blitRgbImage",value:function(r,s,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var w=new Uint8Array(c*h*3);w.set(new Uint8Array(g.buffer,0,w.length)),this._renderQPush({type:"blitRgb",data:w,x:r,y:s,width:c,height:h})}else this._rgbImageData(r,s,c,h,g,A)}},{key:"blitRgbxImage",value:function(r,s,c,h,g,A,b){if(this._renderQ.length!==0&&!b){var w=new Uint8Array(c*h*4);w.set(new Uint8Array(g.buffer,0,w.length)),this._renderQPush({type:"blitRgbx",data:w,x:r,y:s,width:c,height:h})}else this._rgbxImageData(r,s,c,h,g,A)}},{key:"drawImage",value:function(r,s,c){this._drawCtx.drawImage(r,s,c),this._damage(s,c,r.width,r.height)}},{key:"autoscale",value:function(r,s){var c;if(r===0||s===0)c=0;else{var h=this._viewportLoc,g=r/s,A=h.w/h.h;A>=g?c=r/h.w:c=s/h.h}this._rescale(c)}},{key:"_rescale",value:function(r){this._scale=r;var s=this._viewportLoc,c=r*s.w+"px",h=r*s.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(r){var s="rgb("+r[2]+","+r[1]+","+r[0]+")";s!==this._prevDrawStyle&&(this._drawCtx.fillStyle=s,this._prevDrawStyle=s)}},{key:"_rgbImageData",value:function(r,s,c,h,g,A){for(var b=this._drawCtx.createImageData(c,h),w=b.data,x=0,T=A;x<c*h*4;x+=4,T+=3)w[x]=g[T],w[x+1]=g[T+1],w[x+2]=g[T+2],w[x+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,s,c,h,g,A){for(var b=this._drawCtx.createImageData(c,h),w=b.data,x=0,T=A;x<c*h*4;x+=4,T+=4)w[x]=g[T+2],w[x+1]=g[T+1],w[x+2]=g[T],w[x+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,s,c,h,g,A){var b;v.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,r,s),this._damage(r,s,b.width,b.height)}},{key:"_renderQPush",value:function(r){this._renderQ.push(r),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 r=!0;r&&this._renderQ.length>0;){var s=this._renderQ[0];switch(s.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(s.oldX,s.oldY,s.x,s.y,s.width,s.height,!0);break;case"fill":this.fillRect(s.x,s.y,s.width,s.height,s.color,!0);break;case"blit":this.blitImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"blitRgb":this.blitRgbImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(s.x,s.y,s.width,s.height,s.data,0,!0);break;case"img":if(s.img.complete&&s.img.width!==0&&s.img.height!==0){if(s.img.width!==s.width||s.img.height!==s.height){p.Error("Decoded image has incorrect dimensions. Got "+s.img.width+"x"+s.img.height+". Expected "+s.width+"x"+s.height+".");return}this.drawImage(s.img,s.x,s.y)}else s.img._noVNCDisplay=this,s.img.addEventListener("load",this._resumeRenderQ),r=!1;break}r&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(r){this._rescale(r)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(r){this._clipViewport=r;var s=this._viewportLoc;this.viewportChangeSize(s.w,s.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();D.default=a},Mdki:function(k,D,i){var y=i("bYtY"),p=y.each,S="\0__link_datas",v="\0__link_mainData";function m(l){var r=l.mainData,s=l.datas;s||(s={main:r},l.datasAttr={main:"data"}),l.datas=l.mainData=null,t(r,s,l),p(s,function(c){p(r.TRANSFERABLE_METHODS,function(h){c.wrapMethod(h,y.curry(f,l))})}),r.wrapMethod("cloneShallow",y.curry(u,l)),p(r.CHANGABLE_METHODS,function(c){r.wrapMethod(c,y.curry(d,l))}),y.assert(s[r.dataType]===r)}function f(l,r){if(n(this)){var s=y.extend({},this[S]);s[this.dataType]=r,t(r,s,l)}else a(r,this.dataType,this[v],l);return r}function d(l,r){return l.struct&&l.struct.update(this),r}function u(l,r){return p(r[S],function(s,c){s!==r&&a(s.cloneShallow(),c,r,l)}),r}function o(l){var r=this[v];return l==null||r==null?r:r[S][l]}function n(l){return l[v]===l}function t(l,r,s){l[S]={},p(r,function(c,h){a(c,h,l,s)})}function a(l,r,s,c){s[S][r]=l,l[v]=s,l.dataType=r,c.struct&&(l[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=l),l.getLinkedData=o}var e=m;k.exports=e},Mds0:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("8IMR")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="StarFilled";var n=v.forwardRef(o);D.default=n},Mgri:function(k,D,i){for(var y=i("bYtY"),p=i("8nly"),S=[126,25],v=[[[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<v.length;m++)for(var f=0;f<v[m].length;f++)v[m][f][0]/=10.5,v[m][f][1]/=-10.5/.75,v[m][f][0]+=S[0],v[m][f][1]+=S[1];function d(u,o){u==="china"&&o.push(new p("\u5357\u6D77\u8BF8\u5C9B",y.map(v,function(n){return{type:"polygon",exterior:n}}),S))}k.exports=d},MlIO:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var S=y,v=S.lib,m=v.Base,f=v.WordArray,d=S.x64={},u=d.Word=m.extend({init:function(t,a){this.high=t,this.low=a}}),o=d.WordArray=m.extend({init:function(t,a){t=this.words=t||[],a!=p?this.sigBytes=a:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,a=t.length,e=[],l=0;l<a;l++){var r=t[l];e.push(r.high),e.push(r.low)}return f.create(e,this.sigBytes)},clone:function(){for(var t=m.clone.call(this),a=t.words=this.words.slice(0),e=a.length,l=0;l<e;l++)a[l]=a[l].clone();return t}})}(),y})},Mmt2:function(k,D,i){"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(D,"__esModule",{value:!0}),D.default=void 0;var p=v(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return S=function(){return t},t}function v(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var a=S();if(a&&a.has(t))return a.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=l?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(e,r,s):e[r]=t[r]}return e.default=t,a&&a.set(t,e),e}function m(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function f(t,a){for(var e=0;e<a.length;e++){var l=a[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function d(t,a,e){return a&&f(t.prototype,a),e&&f(t,e),t}var u=!1,o=40*1024*1024,n=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,r=e-1;r>=0;r--)l+=this._rQ[this._rQi++]<<r*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",r=0;r<e;r+=4096){var s=this.rQshiftBytes(Math.min(4096,e-r));l+=String.fromCharCode.apply(null,s)}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,r){if(this.rQlen<l){if(r){if(this._rQi<r)throw new Error("rQwait cannot backup "+r+" bytes");this._rQi-=r}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 r=this;this.init(),this._websocket=new WebSocket(e,l),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){p.Debug(">> WebSock.onopen"),r._websocket.protocol&&p.Info("Server choose sub-protocol: "+r._websocket.protocol),r._eventHandlers.open(),p.Debug("<< WebSock.onopen")},this._websocket.onclose=function(s){p.Debug(">> WebSock.onclose"),r._eventHandlers.close(s),p.Debug("<< WebSock.onclose")},this._websocket.onerror=function(s){p.Debug(">> WebSock.onerror: "+s),r._eventHandlers.error(s),p.Debug("<< WebSock.onerror: "+s)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(p.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,r=this._rQbufferSize<l;if(r&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>o&&(this._rQbufferSize=o,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+o+" bytes, and the new message could not fit");if(r){var s=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(s,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)):p.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}();D.default=n},MqEG:function(k,D,i){var y=i("bYtY"),p=i("fc+c"),S=i("72pK"),v=i("VXYp"),m=y.bind,f=p.extend({type:"dataZoom.inside",init:function(t,a){this._range},render:function(t,a,e,l){f.superApply(this,"render",arguments),this._range=t.getPercentRange(),y.each(this.getTargetCoordInfo(),function(r,s){var c=y.map(r,function(h){return v.generateCoordId(h.model)});y.each(r,function(h){var g=h.model,A={};y.each(["pan","zoom","scrollMove"],function(b){A[b]=m(d[b],this,h,s)},this),v.register(e,{coordId:v.generateCoordId(g),allCoordIds:c,containsPoint:function(b,w,x){return g.coordinateSystem.containPoint([w,x])},dataZoomId:t.id,dataZoomModel:t,getRange:A})},this)},this)},dispose:function(){v.unregister(this.api,this.dataZoomModel.id),f.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(t,a,e,l){var r=this._range,s=r.slice(),c=t.axisModels[0];if(!c)return;var h=o[a](null,[l.originX,l.originY],c,e,t),g=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(s[1]-s[0])+s[0],A=Math.max(1/l.scale,0);s[0]=(s[0]-g)*A+g,s[1]=(s[1]-g)*A+g;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(S(0,s,[0,100],0,b.minSpan,b.maxSpan),this._range=s,r[0]!==s[0]||r[1]!==s[1])return s},pan:u(function(t,a,e,l,r,s){var c=o[l]([s.oldX,s.oldY],[s.newX,s.newY],a,r,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:u(function(t,a,e,l,r,s){var c=o[l]([0,0],[s.scrollDelta,s.scrollDelta],a,r,e);return c.signal*(t[1]-t[0])*s.scrollDelta})};function u(t){return function(a,e,l,r){var s=this._range,c=s.slice(),h=a.axisModels[0];if(!h)return;var g=t(c,h,a,e,l,r);if(S(g,c,[0,100],"all"),this._range=c,s[0]!==c[0]||s[1]!==c[1])return c}}var o={grid:function(t,a,e,l,r){var s=e.axis,c={},h=r.model.coordinateSystem.getRect();return t=t||[0,0],s.dim==="x"?(c.pixel=a[0]-t[0],c.pixelLength=h.width,c.pixelStart=h.x,c.signal=s.inverse?1:-1):(c.pixel=a[1]-t[1],c.pixelLength=h.height,c.pixelStart=h.y,c.signal=s.inverse?-1:1),c},polar:function(t,a,e,l,r){var s=e.axis,c={},h=r.model.coordinateSystem,g=h.getRadiusAxis().getExtent(),A=h.getAngleAxis().getExtent();return t=t?h.pointToCoord(t):[0,0],a=h.pointToCoord(a),e.mainType==="radiusAxis"?(c.pixel=a[0]-t[0],c.pixelLength=g[1]-g[0],c.pixelStart=g[0],c.signal=s.inverse?1:-1):(c.pixel=a[1]-t[1],c.pixelLength=A[1]-A[0],c.pixelStart=A[0],c.signal=s.inverse?-1:1),c},singleAxis:function(t,a,e,l,r){var s=e.axis,c=r.model.coordinateSystem.getRect(),h={};return t=t||[0,0],s.orient==="horizontal"?(h.pixel=a[0]-t[0],h.pixelLength=c.width,h.pixelStart=c.x,h.signal=s.inverse?1:-1):(h.pixel=a[1]-t[1],h.pixelLength=c.height,h.pixelStart=c.y,h.signal=s.inverse?-1:1),h}},n=f;k.exports=n},MvSz:function(k,D,i){var y=i("LXxW"),p=i("0ycA"),S=Object.prototype,v=S.propertyIsEnumerable,m=Object.getOwnPropertySymbols,f=m?function(d){return d==null?[]:(d=Object(d),y(m(d),function(u){return v.call(d,u)}))}:p;k.exports=f},MwEJ:function(k,D,i){var y=i("bYtY"),p=i("YXkt"),S=i("sdST"),v=i("k9D9"),m=v.SOURCE_FORMAT_ORIGINAL,f=i("L0Ub"),d=f.getDimensionTypeByAxis,u=i("4NO4"),o=u.getDataItemValue,n=i("IDmD"),t=i("i38C"),a=t.getCoordSysInfoBySeries,e=i("7G+c"),l=i("7hqr"),r=l.enableDataStack,s=i("D5nY"),c=s.makeSeriesEncodeForAxisCoordSys;function h(w,x,T){T=T||{},e.isInstance(w)||(w=e.seriesDataToSource(w));var _=x.get("coordinateSystem"),E=n.get(_),C=a(x),I;C&&(I=y.map(C.coordSysDims,function(M){var z={name:M},W=C.axisMap.get(M);if(W){var H=W.get("type");z.type=d(H)}return z})),I||(I=E&&(E.getDimensionsInfo?E.getDimensionsInfo():E.dimensions.slice())||["x","y"]);var O=S(w,{coordDimensions:I,generateCoord:T.generateCoord,encodeDefaulter:T.useEncodeDefaulter?y.curry(c,I,x):null}),F,R;C&&y.each(O,function(M,z){var W=M.coordDim,H=C.categoryAxisMap.get(W);H&&(F==null&&(F=z),M.ordinalMeta=H.getOrdinalMeta()),M.otherDims.itemName!=null&&(R=!0)}),!R&&F!=null&&(O[F].otherDims.itemName=0);var B=r(x,O),P=new p(O,x);P.setCalculationInfo(B);var X=F!=null&&g(w)?function(M,z,W,H){return H===F?W:this.defaultDimValueGetter(M,z,W,H)}:null;return P.hasItemOption=!1,P.initData(w,null,X),P}function g(w){if(w.sourceFormat===m){var x=A(w.data||[]);return x!=null&&!y.isArray(o(x))}}function A(w){for(var x=0;x<w.length&&w[x]==null;)x++;return w[x]}var b=h;k.exports=b},Mylv:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),v=i("oVpE"),m=v.createSymbol,f=i("OELB"),d=f.parsePercent,u=f.isNumeric,o=i("56rv"),n=o.setLabel,t=["itemStyle","borderWidth"],a=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new S.Circle,l=y.extendChartView({type:"pictorialBar",render:function(V,Q,G){var ee=this.group,q=V.getData(),se=this._data,re=V.coordinateSystem,Ae=re.getBaseAxis(),Te=!!Ae.isHorizontal(),Re=re.grid.getRect(),Ge={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:re,coordSysExtent:[[Re.x,Re.x+Re.width],[Re.y,Re.y+Re.height]],isHorizontal:Te,valueDim:a[+Te],categoryDim:a[1-Te]};return q.diff(se).add(function(Ue){if(!q.hasValue(Ue))return;var nt=E(q,Ue),Le=r(q,Ue,nt,Ge),le=F(q,Ge,Le);q.setItemGraphicEl(Ue,le),ee.add(le),z(le,Ge,Le)}).update(function(Ue,nt){var Le=se.getItemGraphicEl(nt);if(!q.hasValue(Ue)){ee.remove(Le);return}var le=E(q,Ue),Xe=r(q,Ue,le,Ge),pe=P(q,Xe);Le&&pe!==Le.__pictorialShapeStr&&(ee.remove(Le),q.setItemGraphicEl(Ue,null),Le=null),Le?R(Le,Ge,Xe):Le=F(q,Ge,Xe,!0),q.setItemGraphicEl(Ue,Le),Le.__pictorialSymbolMeta=Xe,ee.add(Le),z(Le,Ge,Xe)}).remove(function(Ue){var nt=se.getItemGraphicEl(Ue);nt&&B(se,Ue,nt.__pictorialSymbolMeta.animationModel,nt)}).execute(),this._data=q,this.group},dispose:p.noop,remove:function(V,Q){var G=this.group,ee=this._data;V.get("animation")?ee&&ee.eachItemGraphicEl(function(q){B(ee,q.dataIndex,V,q)}):G.removeAll()}});function r(V,Q,G,ee){var q=V.getItemLayout(Q),se=G.get("symbolRepeat"),re=G.get("symbolClip"),Ae=G.get("symbolPosition")||"start",Te=G.get("symbolRotate"),Re=(Te||0)*Math.PI/180||0,Ge=G.get("symbolPatternSize")||2,Ue=G.isAnimationEnabled(),nt={dataIndex:Q,layout:q,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:re,symbolRepeat:se,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:Ge,rotation:Re,animationModel:Ue?G:null,hoverAnimation:Ue&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};s(G,se,q,ee,nt),h(V,Q,q,se,re,nt.boundingLength,nt.pxSign,Ge,ee,nt),g(G,nt.symbolScale,Re,ee,nt);var Le=nt.symbolSize,le=G.get("symbolOffset");return p.isArray(le)&&(le=[d(le[0],Le[0]),d(le[1],Le[1])]),A(G,Le,q,se,re,le,Ae,nt.valueLineWidth,nt.boundingLength,nt.repeatCutLength,ee,nt),nt}function s(V,Q,G,ee,q){var se=ee.valueDim,re=V.get("symbolBoundingData"),Ae=ee.coordSys.getOtherAxis(ee.coordSys.getBaseAxis()),Te=Ae.toGlobalCoord(Ae.dataToCoord(0)),Re=1-+(G[se.wh]<=0),Ge;if(p.isArray(re)){var Ue=[c(Ae,re[0])-Te,c(Ae,re[1])-Te];Ue[1]<Ue[0]&&Ue.reverse(),Ge=Ue[Re]}else re!=null?Ge=c(Ae,re)-Te:Q?Ge=ee.coordSysExtent[se.index][Re]-Te:Ge=G[se.wh];q.boundingLength=Ge,Q&&(q.repeatCutLength=G[se.wh]),q.pxSign=Ge>0?1:Ge<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function h(V,Q,G,ee,q,se,re,Ae,Te,Re){var Ge=Te.valueDim,Ue=Te.categoryDim,nt=Math.abs(G[Ue.wh]),Le=V.getItemVisual(Q,"symbolSize");p.isArray(Le)?Le=Le.slice():(Le==null&&(Le="100%"),Le=[Le,Le]),Le[Ue.index]=d(Le[Ue.index],nt),Le[Ge.index]=d(Le[Ge.index],ee?nt:Math.abs(se)),Re.symbolSize=Le;var le=Re.symbolScale=[Le[0]/Ae,Le[1]/Ae];le[Ge.index]*=(Te.isHorizontal?-1:1)*re}function g(V,Q,G,ee,q){var se=V.get(t)||0;se&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),se/=e.getLineScale(),se*=Q[ee.valueDim.index]),q.valueLineWidth=se}function A(V,Q,G,ee,q,se,re,Ae,Te,Re,Ge,Ue){var nt=Ge.categoryDim,Le=Ge.valueDim,le=Ue.pxSign,Xe=Math.max(Q[Le.index]+Ae,0),pe=Xe;if(ee){var Z=Math.abs(Te),Y=p.retrieve(V.get("symbolMargin"),"15%")+"",ne=!1;Y.lastIndexOf("!")===Y.length-1&&(ne=!0,Y=Y.slice(0,Y.length-1)),Y=d(Y,Q[Le.index]);var ce=Math.max(Xe+Y*2,0),ye=ne?0:Y*2,Ee=u(ee),Ce=Ee?ee:W((Z+ye)/ce),ue=Z-Ce*Xe;Y=ue/2/(ne?Ce:Ce-1),ce=Xe+Y*2,ye=ne?0:Y*2,!Ee&&ee!=="fixed"&&(Ce=Re?W((Math.abs(Re)+ye)/ce):0),pe=Ce*ce-ye,Ue.repeatTimes=Ce,Ue.symbolMargin=Y}var ge=le*(pe/2),Oe=Ue.pathPosition=[];Oe[nt.index]=G[nt.wh]/2,Oe[Le.index]=re==="start"?ge:re==="end"?Te-ge:Te/2,se&&(Oe[0]+=se[0],Oe[1]+=se[1]);var Je=Ue.bundlePosition=[];Je[nt.index]=G[nt.xy],Je[Le.index]=G[Le.xy];var lt=Ue.barRectShape=p.extend({},G);lt[Le.wh]=le*Math.max(Math.abs(G[Le.wh]),Math.abs(Oe[Le.index]+ge)),lt[nt.wh]=G[nt.wh];var tt=Ue.clipShape={};tt[nt.xy]=-G[nt.xy],tt[nt.wh]=Ge.ecSize[nt.wh],tt[Le.xy]=0,tt[Le.wh]=G[Le.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 w(V,Q,G,ee){var q=V.__pictorialBundle,se=G.symbolSize,re=G.valueLineWidth,Ae=G.pathPosition,Te=Q.valueDim,Re=G.repeatTimes||0,Ge=0,Ue=se[Q.valueDim.index]+re+G.symbolMargin*2;for(X(V,function(Z){Z.__pictorialAnimationIndex=Ge,Z.__pictorialRepeatTimes=Re,Ge<Re?M(Z,null,le(Ge),G,ee):M(Z,null,{scale:[0,0]},G,ee,function(){q.remove(Z)}),O(Z,G),Ge++});Ge<Re;Ge++){var nt=b(G);nt.__pictorialAnimationIndex=Ge,nt.__pictorialRepeatTimes=Re,q.add(nt);var Le=le(Ge);M(nt,{position:Le.position,scale:[0,0]},{scale:Le.scale,rotation:Le.rotation},G,ee),nt.on("mouseover",Xe).on("mouseout",pe),O(nt,G)}function le(Z){var Y=Ae.slice(),ne=G.pxSign,ce=Z;return(G.symbolRepeatDirection==="start"?ne>0:ne<0)&&(ce=Re-1-Z),Y[Te.index]=Ue*(ce-Re/2+.5)+Ae[Te.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function Xe(){X(V,function(Z){Z.trigger("emphasis")})}function pe(){X(V,function(Z){Z.trigger("normal")})}}function x(V,Q,G,ee){var q=V.__pictorialBundle,se=V.__pictorialMainPath;se?M(se,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,ee):(se=V.__pictorialMainPath=b(G),q.add(se),M(se,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,ee),se.on("mouseover",re).on("mouseout",Ae)),O(se,G);function re(){this.trigger("emphasis")}function Ae(){this.trigger("normal")}}function T(V,Q,G){var ee=p.extend({},Q.barRectShape),q=V.__pictorialBarRect;q?M(q,null,{shape:ee},Q,G):(q=V.__pictorialBarRect=new S.Rect({z2:2,shape:ee,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add(q))}function _(V,Q,G,ee){if(G.symbolClip){var q=V.__pictorialClipPath,se=p.extend({},G.clipShape),re=Q.valueDim,Ae=G.animationModel,Te=G.dataIndex;if(q)S.updateProps(q,{shape:se},Ae,Te);else{se[re.wh]=0,q=new S.Rect({shape:se}),V.__pictorialBundle.setClipPath(q),V.__pictorialClipPath=q;var Re={};Re[re.wh]=G.clipShape[re.wh],S[ee?"updateProps":"initProps"](q,{shape:Re},Ae,Te)}}}function E(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=C,G.isAnimationEnabled=I,G}function C(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function O(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 F(V,Q,G,ee){var q=new S.Group,se=new S.Group;return q.add(se),q.__pictorialBundle=se,se.attr("position",G.bundlePosition.slice()),G.symbolRepeat?w(q,Q,G):x(q,Q,G),T(q,G,ee),_(q,Q,G,ee),q.__pictorialShapeStr=P(V,G),q.__pictorialSymbolMeta=G,q}function R(V,Q,G){var ee=G.animationModel,q=G.dataIndex,se=V.__pictorialBundle;S.updateProps(se,{position:G.bundlePosition.slice()},ee,q),G.symbolRepeat?w(V,Q,G,!0):x(V,Q,G,!0),T(V,G,!0),_(V,Q,G,!0)}function B(V,Q,G,ee){var q=ee.__pictorialBarRect;q&&(q.style.text=null);var se=[];X(ee,function(re){se.push(re)}),ee.__pictorialMainPath&&se.push(ee.__pictorialMainPath),ee.__pictorialClipPath&&(G=null),p.each(se,function(re){S.updateProps(re,{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){p.each(V.__pictorialBundle.children(),function(ee){ee!==V.__pictorialBarRect&&Q.call(G,ee)})}function M(V,Q,G,ee,q,se){Q&&V.attr(Q),ee.symbolClip&&!q?G&&V.attr(G):G&&S[q?"updateProps":"initProps"](V,G,ee.animationModel,ee.dataIndex,se)}function z(V,Q,G){var ee=G.color,q=G.dataIndex,se=G.itemModel,re=se.getModel("itemStyle").getItemStyle(["color"]),Ae=se.getModel("emphasis.itemStyle").getItemStyle(),Te=se.getShallow("cursor");X(V,function(nt){nt.setColor(ee),nt.setStyle(p.defaults({fill:ee,opacity:G.opacity},re)),S.setHoverStyle(nt,Ae),Te&&(nt.cursor=Te),nt.z2=G.z2});var Re={},Ge=Q.valueDim.posDesc[+(G.boundingLength>0)],Ue=V.__pictorialBarRect;n(Ue.style,Re,se,ee,Q.seriesModel,q,Ge),S.setHoverStyle(Ue,Re)}function W(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var H=l;k.exports=H},"N/zr":function(k,D,i){"use strict";function y(f){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(f)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=v(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return S=function(){return f},f}function v(f){if(f&&f.__esModule)return f;if(f===null||y(f)!=="object"&&typeof f!="function")return{default:f};var d=S();if(d&&d.has(f))return d.get(f);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in f)if(Object.prototype.hasOwnProperty.call(f,n)){var t=o?Object.getOwnPropertyDescriptor(f,n):null;t&&(t.get||t.set)?Object.defineProperty(u,n,t):u[n]=f[n]}return u.default=f,d&&d.set(f,u),u}var m={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(d){"use strict";for(var u="",o=d.length,n=o%3,t=0;t<o-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 a=o-n;return n===2?(u+=this.toBase64Table[d[a]>>2],u+=this.toBase64Table[((d[a]&3)<<4)+(d[a+1]>>4)],u+=this.toBase64Table[(d[a+1]&15)<<2],u+=this.toBase64Table[64]):n===1&&(u+=this.toBase64Table[d[a]>>2],u+=this.toBase64Table[(d[a]&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,o=d.indexOf("=")-u;o<0&&(o=d.length-u);for(var n=(o>>2)*3+Math.floor(o%4/1.5),t=new Array(n),a=0,e=0,l=0,r=u;r<d.length;r++){var s=this.toBinaryTable[d.charCodeAt(r)&127],c=d.charAt(r)===this.base64Pad;if(s===-1){p.Error("Illegal character code "+d.charCodeAt(r)+" at position "+r);continue}e=e<<6|s,a+=6,a>=8&&(a-=8,c||(t[l++]=e>>a&255),e&=(1<<a)-1)}if(a){var h=new Error("Corrupted base64 string");throw h.name="Base64-Error",h}return t}};D.default=m},N5BQ:function(k,D,i){var y=i("OlYY"),p=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"}}}),S=p;k.exports=S},NA0q:function(k,D,i){var y=i("bYtY"),p=i("6Ic6"),S=i("TkdX"),v=i("gPAo"),m=i("7aKB"),f=m.windowOpen,d="sunburstRootToNode",u=p.extend({type:"sunburst",init:function(){},render:function(n,t,a,e){var l=this;this.seriesModel=n,this.api=a,this.ecModel=t;var r=n.getData(),s=r.tree.root,c=n.getViewRoot(),h=this.group,g=n.get("renderLabelForZeroData"),A=[];c.eachNode(function(I){A.push(I)});var b=this._oldChildren||[];if(T(A,b),C(s,c),e&&e.highlight&&e.highlight.piece){var w=n.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(w)}else if(e&&e.unhighlight){var x=this.virtualPiece;!x&&s.children.length&&(x=s.children[0].piece),x&&x.onNormal()}this._initEvents(),this._oldChildren=A;function T(I,O){if(I.length===0&&O.length===0)return;new v(O,I,F,F).add(R).update(R).remove(y.curry(R,null)).execute();function F(B){return B.getId()}function R(B,P){var X=B==null?null:I[B],M=P==null?null:O[P];_(X,M)}}function _(I,O){if(!g&&I&&!I.getValue()&&(I=null),I!==s&&O!==s){if(O&&O.piece)I?(O.piece.updateData(!1,I,"normal",n,t),r.setItemGraphicEl(I.dataIndex,O.piece)):E(O);else if(I){var F=new S(I,n,t);h.add(F),r.setItemGraphicEl(I.dataIndex,F)}}}function E(I){if(!I)return;I.piece&&(h.remove(I.piece),I.piece=null)}function C(I,O){if(O.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,I,"normal",n,t):(l.virtualPiece=new S(I,n,t),h.add(l.virtualPiece)),O.piece._onclickEvent&&O.piece.off("click",O.piece._onclickEvent);var F=function(R){l._rootToNode(O.parentNode)};O.piece._onclickEvent=F,l.virtualPiece.on("click",F)}else l.virtualPiece&&(h.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var n=this,t=function(a){var e=!1,l=n.seriesModel.getViewRoot();l.eachNode(function(r){if(!e&&r.piece&&r.piece.childAt(0)===a.target){var s=r.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(r);else if(s==="link"){var c=r.getModel(),h=c.get("link");if(h){var g=c.get("target",!0)||"_blank";f(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(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:d,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},containPoint:function(n,t){var a=t.getData(),e=a.getItemLayout(0);if(e){var l=n[0]-e.cx,r=n[1]-e.cy,s=Math.sqrt(l*l+r*r);return s<=e.r&&s>=e.r0}}}),o=u;k.exports=o},NAnI:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("wXyp"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},NBmB:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.encodingName=p,D.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};D.encodings=y;function p(S){switch(S){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 "+S+"]"}}},NC18:function(k,D,i){var y=i("y+Vt"),p=i("IMiH"),S=i("7oTu"),v=Math.sqrt,m=Math.sin,f=Math.cos,d=Math.PI,u=function(A){return Math.sqrt(A[0]*A[0]+A[1]*A[1])},o=function(A,b){return(A[0]*b[0]+A[1]*b[1])/(u(A)*u(b))},n=function(A,b){return(A[0]*b[1]<A[1]*b[0]?-1:1)*Math.acos(o(A,b))};function t(g,A,b,w,x,T,_,E,C,I,O){var F=C*(d/180),R=f(F)*(g-b)/2+m(F)*(A-w)/2,B=-1*m(F)*(g-b)/2+f(F)*(A-w)/2,P=R*R/(_*_)+B*B/(E*E);P>1&&(_*=v(P),E*=v(P));var X=(x===T?-1:1)*v((_*_*(E*E)-_*_*(B*B)-E*E*(R*R))/(_*_*(B*B)+E*E*(R*R)))||0,M=X*_*B/E,z=X*-E*R/_,W=(g+b)/2+f(F)*M-m(F)*z,H=(A+w)/2+m(F)*M+f(F)*z,V=n([1,0],[(R-M)/_,(B-z)/E]),Q=[(R-M)/_,(B-z)/E],G=[(-1*R-M)/_,(-1*B-z)/E],ee=n(Q,G);o(Q,G)<=-1&&(ee=d),o(Q,G)>=1&&(ee=0),T===0&&ee>0&&(ee=ee-2*d),T===1&&ee<0&&(ee=ee+2*d),O.addData(I,W,H,_,E,V,ee,F,T)}var a=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(g){if(!g)return new p;for(var A=0,b=0,w=A,x=b,T,_=new p,E=p.CMD,C=g.match(a),I=0;I<C.length;I++){for(var O=C[I],F=O.charAt(0),R,B=O.match(e)||[],P=B.length,X=0;X<P;X++)B[X]=parseFloat(B[X]);for(var M=0;M<P;){var z,W,H,V,Q,G,ee,q=A,se=b;switch(F){case"l":A+=B[M++],b+=B[M++],R=E.L,_.addData(R,A,b);break;case"L":A=B[M++],b=B[M++],R=E.L,_.addData(R,A,b);break;case"m":A+=B[M++],b+=B[M++],R=E.M,_.addData(R,A,b),w=A,x=b,F="l";break;case"M":A=B[M++],b=B[M++],R=E.M,_.addData(R,A,b),w=A,x=b,F="L";break;case"h":A+=B[M++],R=E.L,_.addData(R,A,b);break;case"H":A=B[M++],R=E.L,_.addData(R,A,b);break;case"v":b+=B[M++],R=E.L,_.addData(R,A,b);break;case"V":b=B[M++],R=E.L,_.addData(R,A,b);break;case"C":R=E.C,_.addData(R,B[M++],B[M++],B[M++],B[M++],B[M++],B[M++]),A=B[M-2],b=B[M-1];break;case"c":R=E.C,_.addData(R,B[M++]+A,B[M++]+b,B[M++]+A,B[M++]+b,B[M++]+A,B[M++]+b),A+=B[M-2],b+=B[M-1];break;case"S":z=A,W=b;var re=_.len(),Ae=_.data;T===E.C&&(z+=A-Ae[re-4],W+=b-Ae[re-3]),R=E.C,q=B[M++],se=B[M++],A=B[M++],b=B[M++],_.addData(R,z,W,q,se,A,b);break;case"s":z=A,W=b;var re=_.len(),Ae=_.data;T===E.C&&(z+=A-Ae[re-4],W+=b-Ae[re-3]),R=E.C,q=A+B[M++],se=b+B[M++],A+=B[M++],b+=B[M++],_.addData(R,z,W,q,se,A,b);break;case"Q":q=B[M++],se=B[M++],A=B[M++],b=B[M++],R=E.Q,_.addData(R,q,se,A,b);break;case"q":q=B[M++]+A,se=B[M++]+b,A+=B[M++],b+=B[M++],R=E.Q,_.addData(R,q,se,A,b);break;case"T":z=A,W=b;var re=_.len(),Ae=_.data;T===E.Q&&(z+=A-Ae[re-4],W+=b-Ae[re-3]),A=B[M++],b=B[M++],R=E.Q,_.addData(R,z,W,A,b);break;case"t":z=A,W=b;var re=_.len(),Ae=_.data;T===E.Q&&(z+=A-Ae[re-4],W+=b-Ae[re-3]),A+=B[M++],b+=B[M++],R=E.Q,_.addData(R,z,W,A,b);break;case"A":H=B[M++],V=B[M++],Q=B[M++],G=B[M++],ee=B[M++],q=A,se=b,A=B[M++],b=B[M++],R=E.A,t(q,se,A,b,G,ee,H,V,Q,R,_);break;case"a":H=B[M++],V=B[M++],Q=B[M++],G=B[M++],ee=B[M++],q=A,se=b,A+=B[M++],b+=B[M++],R=E.A,t(q,se,A,b,G,ee,H,V,Q,R,_);break}}(F==="z"||F==="Z")&&(R=E.Z,_.addData(R),A=w,b=x),T=R}return _.toStatic(),_}function r(g,A){var b=l(g);return A=A||{},A.buildPath=function(w){if(w.setData){w.setData(b.data);var x=w.getContext();x&&w.rebuildPath(x)}else{var x=w;b.rebuildPath(x)}},A.applyTransform=function(w){S(b,w),this.dirty(!0)},A}function s(g,A){return new y(r(g,A))}function c(g,A){return y.extend(r(g,A))}function h(g,A){for(var b=[],w=g.length,x=0;x<w;x++){var T=g[x];T.path||T.createPathProxy(),T.__dirtyPath&&T.buildPath(T.path,T.shape,!0),b.push(T.path)}var _=new y(A);return _.createPathProxy(),_.buildPath=function(E){E.appendPath(b);var C=E.getContext();C&&E.rebuildPath(C)},_}D.createFromString=s,D.extendFromString=c,D.mergePath=h},NFKh:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"),i("F+F2"),i("qM6L"),i("ETIr"),i("wbyO"),i("cv67"),i("3y9D"),i("lPiR"),i("GRuw"),i("1uat"),i("uGsb"),i("5hvy"),i("ELcG"),i("WYAk"),i("e7zE"),i("K3mO"),i("OLod"),i("ALsQ"),i("9OqN"),i("qu8F"),i("S6kV"),i("gb/T"),i("qBft"),i("oRuE"),i("jO9C"),i("KmYQ"),i("uGxW"),i("bQjk"),i("wZgz"),i("pA7S"),i("w7YG"),i("E4JC"),i("PVpz"),i("r1uz"))})(this,function(y){return y})},NH9N:function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("Fofx"),v=i("IwbS"),m=i("+TT/"),f=i("kzvK"),d=i("CMP+"),u=i("oVpE"),o=u.createSymbol,n=i("aX7z"),t=i("OELB"),a=i("7aKB"),e=a.encodeHTML,l=y.bind,r=y.each,s=Math.PI,c=f.extend({type:"timeline.slider",init:function(w,x){this.api=x,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(w,x,T,_){if(this.model=w,this.api=T,this.ecModel=x,this.group.removeAll(),w.get("show",!0)){var E=this._layout(w,T),C=this._createGroup("mainGroup"),I=this._createGroup("labelGroup"),O=this._axis=this._createAxis(E,w);w.formatTooltip=function(F){return e(O.scale.getLabel(F))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(F){this["_render"+F](E,C,O,w)},this),this._renderAxisLabel(E,I,O,w),this._position(E,w)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(w,x){var T=w.get("label.position"),_=w.get("orient"),E=h(w,x);T==null||T==="auto"?T=_==="horizontal"?E.y+E.height/2<x.getHeight()/2?"-":"+":E.x+E.width/2<x.getWidth()/2?"+":"-":isNaN(T)&&(T={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[_][T]);var C={horizontal:"center",vertical:T>=0||T==="+"?"left":"right"},I={horizontal:T>=0||T==="+"?"top":"bottom",vertical:"middle"},O={horizontal:0,vertical:s/2},F=_==="vertical"?E.height:E.width,R=w.getModel("controlStyle"),B=R.get("show",!0),P=B?R.get("itemSize"):0,X=B?R.get("itemGap"):0,M=P+X,z=w.get("label.rotate")||0;z=z*s/180;var W,H,V,Q,G=R.get("position",!0),ee=B&&R.get("showPlayBtn",!0),q=B&&R.get("showPrevBtn",!0),se=B&&R.get("showNextBtn",!0),re=0,Ae=F;return G==="left"||G==="bottom"?(ee&&(W=[0,0],re+=M),q&&(H=[re,0],re+=M),se&&(V=[Ae-P,0],Ae-=M)):(ee&&(W=[Ae-P,0],Ae-=M),q&&(H=[0,0],re+=M),se&&(V=[Ae-P,0],Ae-=M)),Q=[re,Ae],w.get("inverse")&&Q.reverse(),{viewRect:E,mainLength:F,orient:_,rotation:O[_],labelRotation:z,labelPosOpt:T,labelAlign:w.get("label.align")||C[_],labelBaseline:w.get("label.verticalAlign")||w.get("label.baseline")||I[_],playPosition:W,prevBtnPosition:H,nextBtnPosition:V,axisExtent:Q,controlSize:P,controlGap:X}},_position:function(w,x){var T=this._mainGroup,_=this._labelGroup,E=w.viewRect;if(w.orient==="vertical"){var C=S.create(),I=E.x,O=E.y+E.height;S.translate(C,C,[-I,-O]),S.rotate(C,C,-s/2),S.translate(C,C,[I,O]),E=E.clone(),E.applyTransform(C)}var F=H(E),R=H(T.getBoundingRect()),B=H(_.getBoundingRect()),P=T.position,X=_.position;X[0]=P[0]=F[0][0];var M=w.labelPosOpt;if(isNaN(M)){var z=M==="+"?0:1;V(P,R,F,1,z),V(X,B,F,1,1-z)}else{var z=M>=0?0:1;V(P,R,F,1,z),X[1]=P[1]+M}T.attr("position",P),_.attr("position",X),T.rotation=_.rotation=w.rotation,W(T),W(_);function W(Q){var G=Q.position;Q.origin=[F[0][0]-G[0],F[1][0]-G[1]]}function H(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,ee,q,se){Q[q]+=ee[q][se]-G[q][se]}},_createAxis:function(w,x){var T=x.getData(),_=x.get("axisType"),E=n.createScaleByModel(x,_);E.getTicks=function(){return T.mapArray(["value"],function(O){return O})};var C=T.getDataExtent("value");E.setExtent(C[0],C[1]),E.niceTicks();var I=new d("value",E,w.axisExtent,_);return I.model=x,I},_createGroup:function(w){var x=this["_"+w]=new v.Group;return this.group.add(x),x},_renderAxisLine:function(w,x,T,_){var E=T.getExtent();if(!_.get("lineStyle.show"))return;x.add(new v.Line({shape:{x1:E[0],y1:0,x2:E[1],y2:0},style:y.extend({lineCap:"round"},_.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(w,x,T,_){var E=_.getData(),C=T.scale.getTicks();r(C,function(I){var O=T.dataToCoord(I),F=E.getItemModel(I),R=F.getModel("itemStyle"),B=F.getModel("emphasis.itemStyle"),P={position:[O,0],onclick:l(this._changeTimeline,this,I)},X=A(F,R,x,P);v.setHoverStyle(X,B.getItemStyle()),F.get("tooltip")?(X.dataIndex=I,X.dataModel=_):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(w,x,T,_){var E=T.getLabelModel();if(!E.get("show"))return;var C=_.getData(),I=T.getViewLabels();r(I,function(O){var F=O.tickValue,R=C.getItemModel(F),B=R.getModel("label"),P=R.getModel("emphasis.label"),X=T.dataToCoord(O.tickValue),M=new v.Text({position:[X,0],rotation:w.labelRotation-w.rotation,onclick:l(this._changeTimeline,this,F),silent:!1});v.setTextStyle(M.style,B,{text:O.formattedLabel,textAlign:w.labelAlign,textVerticalAlign:w.labelBaseline}),x.add(M),v.setHoverStyle(M,v.setTextStyle({},P))},this)},_renderControl:function(w,x,T,_){var E=w.controlSize,C=w.rotation,I=_.getModel("controlStyle").getItemStyle(),O=_.getModel("emphasis.controlStyle").getItemStyle(),F=[0,-E/2,E,E],R=_.getPlayState(),B=_.get("inverse",!0);P(w.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,B?"-":"+")),P(w.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,B?"+":"-")),P(w.playPosition,"controlStyle."+(R?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!R),!0);function P(X,M,z,W){if(!X)return;var H={position:X,origin:[E/2,0],rotation:W?-C:0,rectHover:!0,style:I,onclick:z},V=g(_,M,F,H);x.add(V),v.setHoverStyle(V,O)}},_renderCurrentPointer:function(w,x,T,_){var E=_.getData(),C=_.getCurrentIndex(),I=E.getItemModel(C).getModel("checkpointStyle"),O=this,F={onCreate:function(R){R.draggable=!0,R.drift=l(O._handlePointerDrag,O),R.ondragend=l(O._handlePointerDragend,O),b(R,C,T,_,!0)},onUpdate:function(R){b(R,C,T,_)}};this._currentPointer=A(I,I,this._mainGroup,{},this._currentPointer,F)},_handlePlayClick:function(w){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:w,from:this.uid})},_handlePointerDrag:function(w,x,T){this._clearTimer(),this._pointerChangeTimeline([T.offsetX,T.offsetY])},_handlePointerDragend:function(w){this._pointerChangeTimeline([w.offsetX,w.offsetY],!0)},_pointerChangeTimeline:function(w,x){var T=this._toAxisCoord(w)[0],_=this._axis,E=t.asc(_.getExtent().slice());T>E[1]&&(T=E[1]),T<E[0]&&(T=E[0]),this._currentPointer.position[0]=T,this._currentPointer.dirty();var C=this._findNearestTick(T),I=this.model;(x||C!==I.getCurrentIndex()&&I.get("realtime"))&&this._changeTimeline(C)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(w,this),this.model.get("playInterval")));function w(){var x=this.model;this._changeTimeline(x.getCurrentIndex()+(x.get("rewind",!0)?-1:1))}},_toAxisCoord:function(w){var x=this._mainGroup.getLocalTransform();return v.applyTransform(w,x,!0)},_findNearestTick:function(w){var x=this.model.getData(),T=Infinity,_,E=this._axis;return x.each(["value"],function(C,I){var O=E.dataToCoord(C),F=Math.abs(O-w);F<T&&(T=F,_=I)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(w){var x=this.model.getCurrentIndex();w==="+"?w=x+1:w==="-"&&(w=x-1),this.api.dispatchAction({type:"timelineChange",currentIndex:w,from:this.uid})}});function h(w,x){return m.getLayoutRect(w.getBoxLayoutParams(),{width:x.getWidth(),height:x.getHeight()},w.get("padding"))}function g(w,x,T,_){var E=v.makePath(w.get(x).replace(/^path:\/\//,""),y.clone(_||{}),new p(T[0],T[1],T[2],T[3]),"center");return E}function A(w,x,T,_,E,C){var I=x.get("color");if(E)E.setColor(I),T.add(E),C&&C.onUpdate(E);else{var O=w.get("symbol");E=o(O,-1,-1,2,2,I),E.setStyle("strokeNoScale",!0),T.add(E),C&&C.onCreate(E)}var F=x.getItemStyle(["color","symbol","symbolSize"]);E.setStyle(F),_=y.merge({rectHover:!0,z2:100},_,!0);var R=w.get("symbolSize");R=R instanceof Array?R.slice():[+R,+R],R[0]/=2,R[1]/=2,_.scale=R;var B=w.get("symbolOffset");if(B){var P=_.position=_.position||[0,0];P[0]+=t.parsePercent(B[0],R[0]),P[1]+=t.parsePercent(B[1],R[1])}var X=w.get("symbolRotate");return _.rotation=(X||0)*Math.PI/180||0,E.attr(_),E.updateTransform(),E}function b(w,x,T,_,E){if(w.dragging)return;var C=_.getModel("checkpointStyle"),I=T.dataToCoord(_.getData().get(["value"],x));E||!C.get("animation",!0)?w.attr({position:[I,0]}):(w.stopAnimation(!0),w.animateTo({position:[I,0]},C.get("animationDuration",!0),C.get("animationEasing",!0)))}k.exports=c},NJEC:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("J4zp"),v=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),u=i.n(d),o=i("sKbD"),n=i.n(o),t=i("4IlW"),a=i("3S7+"),e=i("2/Rp"),l=i("zvFY"),r=i("YMnH"),s=i("ZvpZ"),c=i("H84U"),h=i("bogI"),g=i("0n0R"),A=void 0,b=function(x,T){var _={};for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&T.indexOf(E)<0&&(_[E]=x[E]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,E=Object.getOwnPropertySymbols(x);C<E.length;C++)T.indexOf(E[C])<0&&Object.prototype.propertyIsEnumerable.call(x,E[C])&&(_[E[C]]=x[E[C]]);return _},w=m.forwardRef(function(x,T){var _=m.useState(x.visible),E=v()(_,2),C=E[0],I=E[1];m.useEffect(function(){"visible"in x&&I(x.visible)},[x.visible]),m.useEffect(function(){"defaultVisible"in x&&I(x.defaultVisible)},[x.defaultVisible]);var O=function(Te,Re){"visible"in x||I(Te),x.onVisibleChange&&x.onVisibleChange(Te,Re)},F=function(Te){O(!1,Te),x.onConfirm&&x.onConfirm.call(A,Te)},R=function(Te){O(!1,Te),x.onCancel&&x.onCancel.call(A,Te)},B=function(Te){Te.keyCode===t.a.ESC&&C&&O(!1,Te)},P=function(Te){var Re=x.disabled;if(Re)return;O(Te)},X=function(Te,Re){var Ge=x.okButtonProps,Ue=x.cancelButtonProps,nt=x.title,Le=x.cancelText,le=x.okText,Xe=x.okType,pe=x.icon;return m.createElement("div",{className:"".concat(Te,"-inner-content")},m.createElement("div",{className:"".concat(Te,"-message")},pe,m.createElement("div",{className:"".concat(Te,"-message-title")},Object(h.a)(nt))),m.createElement("div",{className:"".concat(Te,"-buttons")},m.createElement(e.a,p()({onClick:R,size:"small"},Ue),Le||Re.cancelText),m.createElement(e.a,p()({onClick:F},Object(l.a)(Xe),{size:"small"},Ge),le||Re.okText)))},M=m.useContext(c.b),z=M.getPrefixCls,W=x.prefixCls,H=x.placement,V=x.children,Q=x.overlayClassName,G=b(x,["prefixCls","placement","children","overlayClassName"]),ee=z("popover",W),q=z("popconfirm",W),se=u()(q,Q),re=m.createElement(r.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},function(Ae){return X(ee,Ae)});return m.createElement(a.a,p()({},G,{prefixCls:ee,placement:H,onVisibleChange:P,visible:C,overlay:re,overlayClassName:se,ref:T}),Object(g.a)(V,{onKeyDown:function(Te){var Re,Ge;(Ge=V==null?void 0:(Re=V.props).onKeyDown)===null||Ge===void 0||Ge.call(Re,Te),B(Te)}}))});w.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:m.createElement(n.a,null),disabled:!1},D.a=w},NKxu:function(k,D,i){var y=i("lSCD"),p=i("E2jh"),S=i("GoyQ"),v=i("3Fdi"),m=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,o=d.toString,n=u.hasOwnProperty,t=RegExp("^"+o.call(n).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a(e){if(!S(e)||p(e))return!1;var l=y(e)?t:f;return l.test(v(e))}k.exports=a},NUBc:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("q1tI"),f=i.n(m),d=i("wx14"),u=i("rePB"),o=i("VTBJ"),n=i("1OyB"),t=i("vuIU"),a=i("Ji7U"),e=i("LK+K"),l=i("TSYQ"),r=i.n(l),s=function(Re){var Ge,Ue="".concat(Re.rootPrefixCls,"-item"),nt=r()(Ue,"".concat(Ue,"-").concat(Re.page),(Ge={},Object(u.a)(Ge,"".concat(Ue,"-active"),Re.active),Object(u.a)(Ge,Re.className,!!Re.className),Object(u.a)(Ge,"".concat(Ue,"-disabled"),!Re.page),Ge)),Le=function(){Re.onClick(Re.page)},le=function(pe){Re.onKeyPress(pe,Re.onClick,Re.page)};return f.a.createElement("li",{title:Re.showTitle?Re.page:null,className:nt,onClick:Le,onKeyPress:le,tabIndex:"0"},Re.itemRender(Re.page,"page",f.a.createElement("a",{rel:"nofollow"},Re.page)))},c=s,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(Te){Object(a.a)(Ge,Te);var Re=Object(e.a)(Ge);function Ge(){var Ue;Object(n.a)(this,Ge);for(var nt=arguments.length,Le=new Array(nt),le=0;le<nt;le++)Le[le]=arguments[le];return Ue=Re.call.apply(Re,[this].concat(Le)),Ue.state={goInputText:""},Ue.buildOptionText=function(Xe){return"".concat(Xe," ").concat(Ue.props.locale.items_per_page)},Ue.changeSize=function(Xe){Ue.props.changeSize(Number(Xe))},Ue.handleChange=function(Xe){Ue.setState({goInputText:Xe.target.value})},Ue.handleBlur=function(Xe){var pe=Ue.props,Z=pe.goButton,Y=pe.quickGo,ne=pe.rootPrefixCls,ce=Ue.state.goInputText;if(Z||ce==="")return;if(Xe.relatedTarget&&(Xe.relatedTarget.className.indexOf("".concat(ne,"-prev"))>=0||Xe.relatedTarget.className.indexOf("".concat(ne,"-next"))>=0))return;Ue.setState({goInputText:""}),Y(Ue.getValidValue())},Ue.go=function(Xe){var pe=Ue.state.goInputText;if(pe==="")return;(Xe.keyCode===h.ENTER||Xe.type==="click")&&(Ue.setState({goInputText:""}),Ue.props.quickGo(Ue.getValidValue()))},Ue}return Object(t.a)(Ge,[{key:"getValidValue",value:function(){var nt=this.state,Le=nt.goInputText,le=nt.current;return!Le||isNaN(Le)?le:Number(Le)}},{key:"getPageSizeOptions",value:function(){var nt=this.props,Le=nt.pageSize,le=nt.pageSizeOptions;return le.some(function(Xe){return Xe.toString()===Le.toString()})?le:le.concat([Le.toString()]).sort(function(Xe,pe){var Z=isNaN(Number(Xe))?0:Number(Xe),Y=isNaN(Number(pe))?0:Number(pe);return Z-Y})}},{key:"render",value:function(){var nt=this,Le=this.props,le=Le.pageSize,Xe=Le.locale,pe=Le.rootPrefixCls,Z=Le.changeSize,Y=Le.quickGo,ne=Le.goButton,ce=Le.selectComponentClass,ye=Le.buildOptionText,Ee=Le.selectPrefixCls,Ce=Le.disabled,ue=this.state.goInputText,ge="".concat(pe,"-options"),Oe=ce,Je=null,lt=null,tt=null;if(!Z&&!Y)return null;var ke=this.getPageSizeOptions();if(Z&&Oe){var st=ke.map(function(Ve,Ot){return f.a.createElement(Oe.Option,{key:Ot,value:Ve.toString()},(ye||nt.buildOptionText)(Ve))});Je=f.a.createElement(Oe,{disabled:Ce,prefixCls:Ee,showSearch:!1,className:"".concat(ge,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(le||ke[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ot){return Ot.parentNode}},st)}return Y&&(ne&&(tt=typeof ne=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ce,className:"".concat(ge,"-quick-jumper-button")},Xe.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ne)),lt=f.a.createElement("div",{className:"".concat(ge,"-quick-jumper")},Xe.jump_to,f.a.createElement("input",{disabled:Ce,type:"text",value:ue,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Xe.page,tt)),f.a.createElement("li",{className:"".concat(ge)},Je,lt)}}]),Ge}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var A=g,b=i("N2Kk");function w(){}function x(Te){return typeof Te=="number"&&isFinite(Te)&&Math.floor(Te)===Te}function T(Te,Re,Ge){return Ge}function _(Te,Re,Ge){var Ue=typeof Te=="undefined"?Re.pageSize:Te;return Math.floor((Ge.total-1)/Ue)+1}var E=function(Te){Object(a.a)(Ge,Te);var Re=Object(e.a)(Ge);function Ge(Ue){var nt;Object(n.a)(this,Ge),nt=Re.call(this,Ue),nt.getJumpPrevPage=function(){return Math.max(1,nt.state.current-(nt.props.showLessItems?3:5))},nt.getJumpNextPage=function(){return Math.min(_(void 0,nt.state,nt.props),nt.state.current+(nt.props.showLessItems?3:5))},nt.getItemIcon=function(Z,Y){var ne=nt.props.prefixCls,ce=Z||f.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(ne,"-item-link")});return typeof Z=="function"&&(ce=f.a.createElement(Z,Object(o.a)({},nt.props))),ce},nt.savePaginationNode=function(Z){nt.paginationNode=Z},nt.isValid=function(Z){return x(Z)&&Z!==nt.state.current},nt.shouldDisplayQuickJumper=function(){var Z=nt.props,Y=Z.showQuickJumper,ne=Z.pageSize,ce=Z.total;return ce<=ne?!1:Y},nt.handleKeyDown=function(Z){(Z.keyCode===h.ARROW_UP||Z.keyCode===h.ARROW_DOWN)&&Z.preventDefault()},nt.handleKeyUp=function(Z){var Y=nt.getValidValue(Z),ne=nt.state.currentInputValue;Y!==ne&&nt.setState({currentInputValue:Y}),Z.keyCode===h.ENTER?nt.handleChange(Y):Z.keyCode===h.ARROW_UP?nt.handleChange(Y-1):Z.keyCode===h.ARROW_DOWN&&nt.handleChange(Y+1)},nt.changePageSize=function(Z){var Y=nt.state.current,ne=_(Z,nt.state,nt.props);Y=Y>ne?ne:Y,ne===0&&(Y=nt.state.current),typeof Z=="number"&&("pageSize"in nt.props||nt.setState({pageSize:Z}),"current"in nt.props||nt.setState({current:Y,currentInputValue:Y})),nt.props.onShowSizeChange(Y,Z),"onChange"in nt.props&&nt.props.onChange&&nt.props.onChange(Y,Z)},nt.handleChange=function(Z){var Y=nt.props.disabled,ne=Z;if(nt.isValid(ne)&&!Y){var ce=_(void 0,nt.state,nt.props);ne>ce?ne=ce:ne<1&&(ne=1),"current"in nt.props||nt.setState({current:ne,currentInputValue:ne});var ye=nt.state.pageSize;return nt.props.onChange(ne,ye),ne}return nt.state.current},nt.prev=function(){nt.hasPrev()&&nt.handleChange(nt.state.current-1)},nt.next=function(){nt.hasNext()&&nt.handleChange(nt.state.current+1)},nt.jumpPrev=function(){nt.handleChange(nt.getJumpPrevPage())},nt.jumpNext=function(){nt.handleChange(nt.getJumpNextPage())},nt.hasPrev=function(){return nt.state.current>1},nt.hasNext=function(){return nt.state.current<_(void 0,nt.state,nt.props)},nt.runIfEnter=function(Z,Y){if(Z.key==="Enter"||Z.charCode===13){for(var ne=arguments.length,ce=new Array(ne>2?ne-2:0),ye=2;ye<ne;ye++)ce[ye-2]=arguments[ye];Y.apply(void 0,ce)}},nt.runIfEnterPrev=function(Z){nt.runIfEnter(Z,nt.prev)},nt.runIfEnterNext=function(Z){nt.runIfEnter(Z,nt.next)},nt.runIfEnterJumpPrev=function(Z){nt.runIfEnter(Z,nt.jumpPrev)},nt.runIfEnterJumpNext=function(Z){nt.runIfEnter(Z,nt.jumpNext)},nt.handleGoTO=function(Z){(Z.keyCode===h.ENTER||Z.type==="click")&&nt.handleChange(nt.state.currentInputValue)};var Le=Ue.onChange!==w,le="current"in Ue;le&&!Le&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Xe=Ue.defaultCurrent;"current"in Ue&&(Xe=Ue.current);var pe=Ue.defaultPageSize;return"pageSize"in Ue&&(pe=Ue.pageSize),Xe=Math.min(Xe,_(pe,void 0,Ue)),nt.state={current:Xe,currentInputValue:Xe,pageSize:pe},nt}return Object(t.a)(Ge,[{key:"componentDidUpdate",value:function(nt,Le){var le=this.props.prefixCls;if(Le.current!==this.state.current&&this.paginationNode){var Xe=this.paginationNode.querySelector(".".concat(le,"-item-").concat(Le.current));Xe&&document.activeElement===Xe&&Xe.blur()}}},{key:"getValidValue",value:function(nt){var Le=nt.target.value,le=_(void 0,this.state,this.props),Xe=this.state.currentInputValue,pe;return Le===""?pe=Le:isNaN(Number(Le))?pe=Xe:Le>=le?pe=le:pe=Number(Le),pe}},{key:"getShowSizeChanger",value:function(){var nt=this.props,Le=nt.showSizeChanger,le=nt.total,Xe=nt.totalBoundaryShowSizeChanger;return typeof Le!="undefined"?Le:le>Xe}},{key:"renderPrev",value:function(nt){var Le=this.props,le=Le.prevIcon,Xe=Le.itemRender,pe=Xe(nt,"prev",this.getItemIcon(le,"prev page")),Z=!this.hasPrev();return Object(m.isValidElement)(pe)?Object(m.cloneElement)(pe,{disabled:Z}):pe}},{key:"renderNext",value:function(nt){var Le=this.props,le=Le.nextIcon,Xe=Le.itemRender,pe=Xe(nt,"next",this.getItemIcon(le,"next page")),Z=!this.hasNext();return Object(m.isValidElement)(pe)?Object(m.cloneElement)(pe,{disabled:Z}):pe}},{key:"render",value:function(){var nt=this,Le=this.props,le=Le.prefixCls,Xe=Le.className,pe=Le.style,Z=Le.disabled,Y=Le.hideOnSinglePage,ne=Le.total,ce=Le.locale,ye=Le.showQuickJumper,Ee=Le.showLessItems,Ce=Le.showTitle,ue=Le.showTotal,ge=Le.simple,Oe=Le.itemRender,Je=Le.showPrevNextJumpers,lt=Le.jumpPrevIcon,tt=Le.jumpNextIcon,ke=Le.selectComponentClass,st=Le.selectPrefixCls,Ve=Le.pageSizeOptions,Ot=this.state,Ut=Ot.current,ir=Ot.pageSize,lr=Ot.currentInputValue;if(Y===!0&&ne<=ir)return null;var Sr=_(void 0,this.state,this.props),mt=[],or=null,et=null,ur=null,qr=null,Fe=null,$t=ye&&ye.goButton,Lr=Ee?1:2,pt=Ut-1>0?Ut-1:0,qt=Ut+1<Sr?Ut+1:Sr,vr=Object.keys(this.props).reduce(function(Bn,Ft){return(Ft.substr(0,5)==="data-"||Ft.substr(0,5)==="aria-"||Ft==="role")&&(Bn[Ft]=nt.props[Ft]),Bn},{});if(ge)return $t&&(typeof $t=="boolean"?Fe=f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ce.jump_to_confirm):Fe=f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},$t),Fe=f.a.createElement("li",{title:Ce?"".concat(ce.jump_to).concat(Ut,"/").concat(Sr):null,className:"".concat(le,"-simple-pager")},Fe)),f.a.createElement("ul",Object(d.a)({className:r()(le,"".concat(le,"-simple"),Object(u.a)({},"".concat(le,"-disabled"),Z),Xe),style:pe,ref:this.savePaginationNode},vr),f.a.createElement("li",{title:Ce?ce.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(le,"-prev"),Object(u.a)({},"".concat(le,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(pt)),f.a.createElement("li",{title:Ce?"".concat(Ut,"/").concat(Sr):null,className:"".concat(le,"-simple-pager")},f.a.createElement("input",{type:"text",value:lr,disabled:Z,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(le,"-slash")},"/"),Sr),f.a.createElement("li",{title:Ce?ce.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(le,"-next"),Object(u.a)({},"".concat(le,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(qt)),Fe);if(Sr<=3+Lr*2){var pn={locale:ce,rootPrefixCls:le,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ce,itemRender:Oe};Sr||mt.push(f.a.createElement(c,Object(d.a)({},pn,{key:"noPager",page:Sr,className:"".concat(le,"-disabled")})));for(var fr=1;fr<=Sr;fr+=1){var gr=Ut===fr;mt.push(f.a.createElement(c,Object(d.a)({},pn,{key:fr,page:fr,active:gr})))}}else{var dn=Ee?ce.prev_3:ce.prev_5,Qt=Ee?ce.next_3:ce.next_5;Je&&(or=f.a.createElement("li",{title:Ce?dn:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(le,"-jump-prev"),Object(u.a)({},"".concat(le,"-jump-prev-custom-icon"),!!lt))},Oe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(lt,"prev page"))),et=f.a.createElement("li",{title:Ce?Qt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(le,"-jump-next"),Object(u.a)({},"".concat(le,"-jump-next-custom-icon"),!!tt))},Oe(this.getJumpNextPage(),"jump-next",this.getItemIcon(tt,"next page")))),qr=f.a.createElement(c,{locale:ce,last:!0,rootPrefixCls:le,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Sr,page:Sr,active:!1,showTitle:Ce,itemRender:Oe}),ur=f.a.createElement(c,{locale:ce,rootPrefixCls:le,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ce,itemRender:Oe});var sr=Math.max(1,Ut-Lr),Qr=Math.min(Ut+Lr,Sr);Ut-1<=Lr&&(Qr=1+Lr*2),Sr-Ut<=Lr&&(sr=Sr-Lr*2);for(var Cn=sr;Cn<=Qr;Cn+=1){var Fn=Ut===Cn;mt.push(f.a.createElement(c,{locale:ce,rootPrefixCls:le,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Cn,page:Cn,active:Fn,showTitle:Ce,itemRender:Oe}))}Ut-1>=Lr*2&&Ut!==1+2&&(mt[0]=Object(m.cloneElement)(mt[0],{className:"".concat(le,"-item-after-jump-prev")}),mt.unshift(or)),Sr-Ut>=Lr*2&&Ut!==Sr-2&&(mt[mt.length-1]=Object(m.cloneElement)(mt[mt.length-1],{className:"".concat(le,"-item-before-jump-next")}),mt.push(et)),sr!==1&&mt.unshift(ur),Qr!==Sr&&mt.push(qr)}var ti=null;ue&&(ti=f.a.createElement("li",{className:"".concat(le,"-total-text")},ue(ne,[ne===0?0:(Ut-1)*ir+1,Ut*ir>ne?ne:Ut*ir])));var ki=!this.hasPrev()||!Sr,Dn=!this.hasNext()||!Sr;return f.a.createElement("ul",Object(d.a)({className:r()(le,Xe,Object(u.a)({},"".concat(le,"-disabled"),Z)),style:pe,unselectable:"unselectable",ref:this.savePaginationNode},vr),ti,f.a.createElement("li",{title:Ce?ce.prev_page:null,onClick:this.prev,tabIndex:ki?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(le,"-prev"),Object(u.a)({},"".concat(le,"-disabled"),ki)),"aria-disabled":ki},this.renderPrev(pt)),mt,f.a.createElement("li",{title:Ce?ce.next_page:null,onClick:this.next,tabIndex:Dn?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(le,"-next"),Object(u.a)({},"".concat(le,"-disabled"),Dn)),"aria-disabled":Dn},this.renderNext(qt)),f.a.createElement(A,{disabled:Z,locale:ce,rootPrefixCls:le,selectComponentClass:ke,selectPrefixCls:st,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ut,pageSize:ir,pageSizeOptions:Ve,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:$t}))}}],[{key:"getDerivedStateFromProps",value:function(nt,Le){var le={};if("current"in nt&&(le.current=nt.current,nt.current!==Le.current&&(le.currentInputValue=le.current)),"pageSize"in nt&&nt.pageSize!==Le.pageSize){var Xe=Le.current,pe=_(nt.pageSize,Le,nt);Xe=Xe>pe?pe:Xe,"current"in nt||(le.current=Xe,le.currentInputValue=Xe),le.pageSize=nt.pageSize}return le}}]),Ge}(f.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:w,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:w,locale:b.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var C=E,I=i("H4fg"),O=i("DFhj"),F=i.n(O),R=i("fEPi"),B=i.n(R),P=i("u9fO"),X=i.n(P),M=i("mO/d"),z=i.n(M),W=i("2fM7"),H=function(Re){return m.createElement(W.a,v()({size:"small"},Re))};H.Option=W.a.Option;var V=H,Q=i("YMnH"),G=i("H84U"),ee=i("5OYt"),q=function(Te,Re){var Ge={};for(var Ue in Te)Object.prototype.hasOwnProperty.call(Te,Ue)&&Re.indexOf(Ue)<0&&(Ge[Ue]=Te[Ue]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ue=Object.getOwnPropertySymbols(Te);nt<Ue.length;nt++)Re.indexOf(Ue[nt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ue[nt])&&(Ge[Ue[nt]]=Te[Ue[nt]]);return Ge},se=function(Re){var Ge=Re.prefixCls,Ue=Re.selectPrefixCls,nt=Re.className,Le=Re.size,le=Re.locale,Xe=q(Re,["prefixCls","selectPrefixCls","className","size","locale"]),pe=Object(ee.a)(),Z=pe.xs,Y=m.useContext(G.b),ne=Y.getPrefixCls,ce=Y.direction,ye=ne("pagination",Ge),Ee=function(){var ge=m.createElement("span",{className:"".concat(ye,"-item-ellipsis")},"\u2022\u2022\u2022"),Oe=m.createElement("button",{className:"".concat(ye,"-item-link"),type:"button",tabIndex:-1},m.createElement(F.a,null)),Je=m.createElement("button",{className:"".concat(ye,"-item-link"),type:"button",tabIndex:-1},m.createElement(B.a,null)),lt=m.createElement("a",{className:"".concat(ye,"-item-link")},m.createElement("div",{className:"".concat(ye,"-item-container")},m.createElement(X.a,{className:"".concat(ye,"-item-link-icon")}),ge)),tt=m.createElement("a",{className:"".concat(ye,"-item-link")},m.createElement("div",{className:"".concat(ye,"-item-container")},m.createElement(z.a,{className:"".concat(ye,"-item-link-icon")}),ge));if(ce==="rtl"){var ke=[Je,Oe];Oe=ke[0],Je=ke[1];var st=[tt,lt];lt=st[0],tt=st[1]}return{prevIcon:Oe,nextIcon:Je,jumpPrevIcon:lt,jumpNextIcon:tt}},Ce=function(ge){var Oe=v()(v()({},ge),le),Je=Le==="small"||!!(Z&&!Le&&Xe.responsive),lt=ne("select",Ue),tt=r()(nt,p()({mini:Je},"".concat(ye,"-rtl"),ce==="rtl"));return m.createElement(C,v()({},Xe,{prefixCls:ye,selectPrefixCls:lt},Ee(),{className:tt,selectComponentClass:Je?V:W.a,locale:Oe}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:I.a},Ce)},re=se,Ae=D.a=re},NohK:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=function(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,m=null;return function(){for(var f=this,d=arguments.length,u=new Array(d),o=0;o<d;o++)u[o]=arguments[o];clearTimeout(m),m=setTimeout(function(){S.apply(f,u)},v)}};D.default=y},Npjl:function(k,D){function i(y,p){return y==null?void 0:y[p]}k.exports=i},Nu4q:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(S,v){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:S}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:v}},{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:v}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:v}},{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:S}}]}},name:"picture",theme:"twotone"};D.default=y},"O/iA":function(k,D,i){},O3gP:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("O/iA"),v=i.n(S),m=i("OaEy")},OELB:function(k,D,i){var y=i("bYtY"),p=1e-4;function S(x){return x.replace(/^\s+|\s+$/g,"")}function v(x,T,_,E){var C=T[1]-T[0],I=_[1]-_[0];if(C===0)return I===0?_[0]:(_[0]+_[1])/2;if(E)if(C>0){if(x<=T[0])return _[0];if(x>=T[1])return _[1]}else{if(x>=T[0])return _[0];if(x<=T[1])return _[1]}else{if(x===T[0])return _[0];if(x===T[1])return _[1]}return(x-T[0])/C*I+_[0]}function m(x,T){switch(x){case"center":case"middle":x="50%";break;case"left":case"top":x="0%";break;case"right":case"bottom":x="100%";break}return typeof x=="string"?S(x).match(/%$/)?parseFloat(x)/100*T:parseFloat(x):x==null?NaN:+x}function f(x,T,_){return T==null&&(T=10),T=Math.min(Math.max(0,T),20),x=(+x).toFixed(T),_?x:+x}function d(x){return x.sort(function(T,_){return T-_}),x}function u(x){if(x=+x,isNaN(x))return 0;for(var T=1,_=0;Math.round(x*T)/T!==x;)T*=10,_++;return _}function o(x){var T=x.toString(),_=T.indexOf("e");if(_>0){var E=+T.slice(_+1);return E<0?-E:0}else{var C=T.indexOf(".");return C<0?0:T.length-1-C}}function n(x,T){var _=Math.log,E=Math.LN10,C=Math.floor(_(x[1]-x[0])/E),I=Math.round(_(Math.abs(T[1]-T[0]))/E),O=Math.min(Math.max(-C+I,0),20);return isFinite(O)?O:20}function t(x,T,_){if(!x[T])return 0;var E=y.reduce(x,function(W,H){return W+(isNaN(H)?0:H)},0);if(E===0)return 0;for(var C=Math.pow(10,_),I=y.map(x,function(W){return(isNaN(W)?0:W)/E*C*100}),O=C*100,F=y.map(I,function(W){return Math.floor(W)}),R=y.reduce(F,function(W,H){return W+H},0),B=y.map(I,function(W,H){return W-F[H]});R<O;){for(var P=Number.NEGATIVE_INFINITY,X=null,M=0,z=B.length;M<z;++M)B[M]>P&&(P=B[M],X=M);++F[X],B[X]=0,++R}return F[T]/C}var a=9007199254740991;function e(x){var T=Math.PI*2;return(x%T+T)%T}function l(x){return x>-p&&x<p}var r=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function s(x){if(x instanceof Date)return x;if(typeof x=="string"){var T=r.exec(x);if(!T)return new Date(NaN);if(T[8]){var _=+T[4]||0;return T[8].toUpperCase()!=="Z"&&(_-=T[8].slice(0,3)),new Date(Date.UTC(+T[1],+(T[2]||1)-1,+T[3]||1,_,+(T[5]||0),+T[6]||0,+T[7]||0))}else return new Date(+T[1],+(T[2]||1)-1,+T[3]||1,+T[4]||0,+(T[5]||0),+T[6]||0,+T[7]||0)}else if(x==null)return new Date(NaN);return new Date(Math.round(x))}function c(x){return Math.pow(10,h(x))}function h(x){if(x===0)return 0;var T=Math.floor(Math.log(x)/Math.LN10);return x/Math.pow(10,T)>=10&&T++,T}function g(x,T){var _=h(x),E=Math.pow(10,_),C=x/E,I;return T?C<1.5?I=1:C<2.5?I=2:C<4?I=3:C<7?I=5:I=10:C<1?I=1:C<2?I=2:C<3?I=3:C<5?I=5:I=10,x=I*E,_>=-20?+x.toFixed(_<0?-_:0):x}function A(x,T){var _=(x.length-1)*T+1,E=Math.floor(_),C=+x[E-1],I=_-E;return I?C+I*(x[E]-C):C}function b(x){x.sort(function(R,B){return F(R,B,0)?-1:1});for(var T=-Infinity,_=1,E=0;E<x.length;){for(var C=x[E].interval,I=x[E].close,O=0;O<2;O++)C[O]<=T&&(C[O]=T,I[O]=O?1:1-_),T=C[O],_=I[O];C[0]===C[1]&&I[0]*I[1]!==1?x.splice(E,1):E++}return x;function F(R,B,P){return R.interval[P]<B.interval[P]||R.interval[P]===B.interval[P]&&(R.close[P]-B.close[P]===(P?-1:1)||!P&&F(R,B,1))}}function w(x){return x-parseFloat(x)>=0}D.linearMap=v,D.parsePercent=m,D.round=f,D.asc=d,D.getPrecision=u,D.getPrecisionSafe=o,D.getPixelPrecision=n,D.getPercentWithPrecision=t,D.MAX_SAFE_INTEGER=a,D.remRadian=e,D.isRadianAroundZero=l,D.parseDate=s,D.quantity=c,D.quantityExponent=h,D.nice=g,D.quantile=A,D.reformIntervals=b,D.isNumeric=w},OKJ2:function(k,D,i){var y=i("KxfA"),p=y.retrieveRawValue,S=i("7aKB"),v=S.getTooltipMarker,m=S.formatTpl,f=i("4NO4"),d=f.getTooltipRenderMode,u=/\{@(.+?)\}/g,o={getDataParams:function(n,t){var a=this.getData(t),e=this.getRawValue(n,t),l=a.getRawIndex(n),r=a.getName(n),s=a.getRawDataItem(n),c=a.getItemVisual(n,"color"),h=a.getItemVisual(n,"borderColor"),g=this.ecModel.getComponent("tooltip"),A=g&&g.get("renderMode"),b=d(A),w=this.mainType,x=w==="series",T=a.userOutput;return{componentType:w,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:x?this.subType:null,seriesIndex:this.seriesIndex,seriesId:x?this.id:null,seriesName:x?this.name:null,name:r,dataIndex:l,data:s,dataType:t,value:e,color:c,borderColor:h,dimensionNames:T?T.dimensionNames:null,encode:T?T.encode:null,marker:v({color:c,renderMode:b}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(n,t,a,e,l){t=t||"normal";var r=this.getData(a),s=r.getItemModel(n),c=this.getDataParams(n,a);e!=null&&c.value instanceof Array&&(c.value=c.value[e]);var h=s.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(A,b){var w=b.length;return b.charAt(0)==="["&&b.charAt(w-1)==="]"&&(b=+b.slice(1,w-1)),p(r,n,b)})}},getRawValue:function(n,t){return p(this.getData(t),n)},formatTooltip:function(){}};k.exports=o},OLod:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("K3mO"))})(this,function(y){y.lib.Cipher||function(p){var S=y,v=S.lib,m=v.Base,f=v.WordArray,d=v.BufferedBlockAlgorithm,u=S.enc,o=u.Utf8,n=u.Base64,t=S.algo,a=t.EvpKDF,e=v.Cipher=d.extend({cfg:m.extend(),createEncryptor:function(O,F){return this.create(this._ENC_XFORM_MODE,O,F)},createDecryptor:function(O,F){return this.create(this._DEC_XFORM_MODE,O,F)},init:function(O,F,R){this.cfg=this.cfg.extend(R),this._xformMode=O,this._key=F,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(O){return this._append(O),this._process()},finalize:function(O){O&&this._append(O);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(O){return typeof O=="string"?C:T}return function(O){return{encrypt:function(R,B,P){return I(B).encrypt(O,R,B,P)},decrypt:function(R,B,P){return I(B).decrypt(O,R,B,P)}}}}()}),l=v.StreamCipher=e.extend({_doFinalize:function(){var O=this._process(!0);return O},blockSize:1}),r=S.mode={},s=v.BlockCipherMode=m.extend({createEncryptor:function(O,F){return this.Encryptor.create(O,F)},createDecryptor:function(O,F){return this.Decryptor.create(O,F)},init:function(O,F){this._cipher=O,this._iv=F}}),c=r.CBC=function(){var I=s.extend();I.Encryptor=I.extend({processBlock:function(R,B){var P=this._cipher,X=P.blockSize;O.call(this,R,B,X),P.encryptBlock(R,B),this._prevBlock=R.slice(B,B+X)}}),I.Decryptor=I.extend({processBlock:function(R,B){var P=this._cipher,X=P.blockSize,M=R.slice(B,B+X);P.decryptBlock(R,B),O.call(this,R,B,X),this._prevBlock=M}});function O(F,R,B){var P,X=this._iv;X?(P=X,this._iv=p):P=this._prevBlock;for(var M=0;M<B;M++)F[R+M]^=P[M]}return I}(),h=S.pad={},g=h.Pkcs7={pad:function(O,F){for(var R=F*4,B=R-O.sigBytes%R,P=B<<24|B<<16|B<<8|B,X=[],M=0;M<B;M+=4)X.push(P);var z=f.create(X,B);O.concat(z)},unpad:function(O){var F=O.words[O.sigBytes-1>>>2]&255;O.sigBytes-=F}},A=v.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var O;e.reset.call(this);var F=this.cfg,R=F.iv,B=F.mode;this._xformMode==this._ENC_XFORM_MODE?O=B.createEncryptor:(O=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==O?this._mode.init(this,R&&R.words):(this._mode=O.call(B,this,R&&R.words),this._mode.__creator=O)},_doProcessBlock:function(O,F){this._mode.processBlock(O,F)},_doFinalize:function(){var O,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),O=this._process(!0)):(O=this._process(!0),F.unpad(O)),O},blockSize:128/32}),b=v.CipherParams=m.extend({init:function(O){this.mixIn(O)},toString:function(O){return(O||this.formatter).stringify(this)}}),w=S.format={},x=w.OpenSSL={stringify:function(O){var F,R=O.ciphertext,B=O.salt;return B?F=f.create([1398893684,1701076831]).concat(B).concat(R):F=R,F.toString(n)},parse:function(O){var F,R=n.parse(O),B=R.words;return B[0]==1398893684&&B[1]==1701076831&&(F=f.create(B.slice(2,4)),B.splice(0,4),R.sigBytes-=16),b.create({ciphertext:R,salt:F})}},T=v.SerializableCipher=m.extend({cfg:m.extend({format:x}),encrypt:function(O,F,R,B){B=this.cfg.extend(B);var P=O.createEncryptor(R,B),X=P.finalize(F),M=P.cfg;return b.create({ciphertext:X,key:R,iv:M.iv,algorithm:O,mode:M.mode,padding:M.padding,blockSize:O.blockSize,formatter:B.format})},decrypt:function(O,F,R,B){B=this.cfg.extend(B),F=this._parse(F,B.format);var P=O.createDecryptor(R,B).finalize(F.ciphertext);return P},_parse:function(O,F){return typeof O=="string"?F.parse(O,this):O}}),_=S.kdf={},E=_.OpenSSL={execute:function(O,F,R,B,P){if(B||(B=f.random(64/8)),P)var X=a.create({keySize:F+R,hasher:P}).compute(O,B);else var X=a.create({keySize:F+R}).compute(O,B);var M=f.create(X.words.slice(F),R*4);return X.sigBytes=F*4,b.create({key:X,iv:M,salt:B})}},C=v.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:E}),encrypt:function(O,F,R,B){B=this.cfg.extend(B);var P=B.kdf.execute(R,O.keySize,O.ivSize,B.salt,B.hasher);B.iv=P.iv;var X=T.encrypt.call(this,O,F,P.key,B);return X.mixIn(P),X},decrypt:function(O,F,R,B){B=this.cfg.extend(B),F=this._parse(F,B.format);var P=B.kdf.execute(R,O.keySize,O.ivSize,F.salt,B.hasher);B.iv=P.iv;var X=T.decrypt.call(this,O,F,P.key,B);return X}})}()})},OPEp:function(k,D,i){},OQFs:function(k,D,i){var y=i("KCsZ"),p=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S={getLineStyle:function(v){var m=p(this,v);return m.lineDash=this.getLineDash(m.lineWidth),m},getLineDash:function(v){v==null&&(v=1);var m=this.get("type"),f=Math.max(v,2),d=v*4;return m==="solid"||m==null?!1:m==="dashed"?[d,d]:[f,f]}};k.exports=S},OS9S:function(k,D,i){var y=i("bYtY"),p=y.inherits,S=i("Gev7"),v=i("mFDi");function m(u){S.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,o){o?this._temporaryDisplayables.push(u):this._displayables.push(u),this.dirty()},m.prototype.addDisplayables=function(u,o){o=o||!1;for(var n=0;n<u.length;n++)this.addDisplayable(u[n],o)},m.prototype.eachPendingDisplayable=function(u){for(var o=this._cursor;o<this._displayables.length;o++)u&&u(this._displayables[o]);for(var o=0;o<this._temporaryDisplayables.length;o++)u&&u(this._temporaryDisplayables[o])},m.prototype.update=function(){this.updateTransform();for(var u=this._cursor;u<this._displayables.length;u++){var o=this._displayables[u];o.parent=this,o.update(),o.parent=null}for(var u=0;u<this._temporaryDisplayables.length;u++){var o=this._temporaryDisplayables[u];o.parent=this,o.update(),o.parent=null}},m.prototype.brush=function(u,o){for(var n=this._cursor;n<this._displayables.length;n++){var t=this._displayables[n];t.beforeBrush&&t.beforeBrush(u),t.brush(u,n===this._cursor?null:this._displayables[n-1]),t.afterBrush&&t.afterBrush(u)}this._cursor=n;for(var n=0;n<this._temporaryDisplayables.length;n++){var t=this._temporaryDisplayables[n];t.beforeBrush&&t.beforeBrush(u),t.brush(u,n===0?null:this._temporaryDisplayables[n-1]),t.afterBrush&&t.afterBrush(u)}this._temporaryDisplayables=[],this.notClear=!0};var f=[];m.prototype.getBoundingRect=function(){if(!this._rect){for(var u=new v(Infinity,Infinity,-Infinity,-Infinity),o=0;o<this._displayables.length;o++){var n=this._displayables[o],t=n.getBoundingRect().clone();n.needLocalTransform()&&t.applyTransform(n.getLocalTransform(f)),u.union(t)}this._rect=u}return this._rect},m.prototype.contain=function(u,o){var n=this.transformCoordToLocal(u,o),t=this.getBoundingRect();if(t.contain(n[0],n[1]))for(var a=0;a<this._displayables.length;a++){var e=this._displayables[a];if(e.contain(u,o))return!0}return!1},p(m,S);var d=m;k.exports=d},OUJF:function(k,D,i){var y=i("ProS"),p=i("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(S,v){var m=v.getComponent("timeline");return m&&S.currentIndex!=null&&(m.setCurrentIndex(S.currentIndex),!m.get("loop",!0)&&m.isIndexMax()&&m.setPlayState(!1)),v.resetOption("timeline"),p.defaults({currentIndex:m.option.currentIndex},S)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(S,v){var m=v.getComponent("timeline");m&&S.playState!=null&&m.setPlayState(S.playState)})},OXB0:function(k,D,i){var y=i("T4UG"),p=i("MwEJ"),S=i("IDmD"),v=y.extend({type:"series.heatmap",getInitialData:function(m,f){return p(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var m=S.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}});k.exports=v},OaEy:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("bKJz"),v=i.n(S),m=i("R9oj")},"Of+w":function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"WeakMap");k.exports=S},Ol7k:function(k,D,i){"use strict";var y=i("PKem"),p=i("ZX9x");y.b.Sider=p.b,D.a=y.b},OlYY:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("ItGF"),f=i("4NO4"),d=i("UOVi"),u=i("zDms"),o=v.each,n=d.eachAxisDim,t=S.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(r,s,c){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var h=a(r);this.settledOption=h,this.mergeDefaultAndTheme(r,c),this.doInit(h)},mergeOption:function(r){var s=a(r);v.merge(this.option,r,!0),v.merge(this.settledOption,s,!0),this.doInit(s)},doInit:function(r){var s=this.option;m.canvasSupported||(s.realtime=!1),this._setDefaultThrottle(r),e(this,r);var c=this.settledOption;o([["start","startValue"],["end","endValue"]],function(h,g){this._rangePropMode[g]==="value"&&(s[h[0]]=c[h[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var r=this._axisProxies;this.eachTargetAxis(function(s,c,h,g){var A=this.dependentModels[s.axis][c],b=A.__dzAxisProxy||(A.__dzAxisProxy=new u(s.name,c,this,g));r[s.name+"_"+c]=b},this)},_resetTarget:function(){var r=this.option,s=this._judgeAutoMode();n(function(c){var h=c.axisIndex;r[h]=f.normalizeToArray(r[h])},this),s==="axisIndex"?this._autoSetAxisIndex():s==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var r=this.option,s=!1;n(function(h){r[h.axisIndex]!=null&&(s=!0)},this);var c=r.orient;if(c==null&&s)return"orient";if(!s)return c==null&&(r.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var r=!0,s=this.get("orient",!0),c=this.option,h=this.dependentModels;if(r){var g=s==="vertical"?"y":"x";h[g+"Axis"].length?(c[g+"AxisIndex"]=[0],r=!1):o(h.singleAxis,function(A){r&&A.get("orient",!0)===s&&(c.singleAxisIndex=[A.componentIndex],r=!1)})}r&&n(function(A){if(!r)return;var b=[],w=this.dependentModels[A.axis];if(w.length&&!b.length)for(var x=0,T=w.length;x<T;x++)w[x].get("type")==="category"&&b.push(x);c[A.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(A){this._isSeriesHasAllAxesTypeOf(A,"value")&&n(function(b){var w=c[b.axisIndex],x=A.get(b.axisIndex),T=A.get(b.axisId),_=A.ecModel.queryComponents({mainType:b.axis,index:x,id:T})[0];x=_.componentIndex,v.indexOf(w,x)<0&&w.push(x)})},this)},_autoSetOrient:function(){var r;this.eachTargetAxis(function(s){!r&&(r=s.name)},this),this.option.orient=r==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(r,s){var c=!0;return n(function(h){var g=r.get(h.axisIndex),A=this.dependentModels[h.axis][g];(!A||A.get("type")!==s)&&(c=!1)},this),c},_setDefaultThrottle:function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var r;return n(function(s){if(r==null){var c=this.get(s.axisIndex);c.length&&(r=this.dependentModels[s.axis][c[0]])}},this),r},eachTargetAxis:function(r,s){var c=this.ecModel;n(function(h){o(this.get(h.axisIndex),function(g){r.call(s,h,g,this,c)},this)},this)},getAxisProxy:function(r,s){return this._axisProxies[r+"_"+s]},getAxisModel:function(r,s){var c=this.getAxisProxy(r,s);return c&&c.getAxisModel()},setRawRange:function(r){var s=this.option,c=this.settledOption;o([["start","startValue"],["end","endValue"]],function(h){(r[h[0]]!=null||r[h[1]]!=null)&&(s[h[0]]=c[h[0]]=r[h[0]],s[h[1]]=c[h[1]]=r[h[1]])},this),e(this,r)},setCalculatedRange:function(r){var s=this.option;o(["start","startValue","end","endValue"],function(c){s[c]=r[c]})},getPercentRange:function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},getValueRange:function(r,s){if(r==null&&s==null){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataValueWindow()}else return this.getAxisProxy(r,s).getDataValueWindow()},findRepresentativeAxisProxy:function(r){if(r)return r.__dzAxisProxy;var s=this._axisProxies;for(var c in s)if(s.hasOwnProperty(c)&&s[c].hostedBy(this))return s[c];for(var c in s)if(s.hasOwnProperty(c)&&!s[c].hostedBy(this))return s[c]},getRangePropMode:function(){return this._rangePropMode.slice()}});function a(r){var s={};return o(["start","end","startValue","endValue","throttle"],function(c){r.hasOwnProperty(c)&&(s[c]=r[c])}),s}function e(r,s){var c=r._rangePropMode,h=r.get("rangeMode");o([["start","startValue"],["end","endValue"]],function(g,A){var b=s[g[0]]!=null,w=s[g[1]]!=null;b&&!w?c[A]="percent":!b&&w?c[A]="value":h?c[A]=h[A]:b&&(c[A]="percent")})}var l=t;k.exports=l},OnYD:function(k,D,i){},P2fV:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("Q9mQ"),v=i("+L6B"),m=i("sE09"),f=i.n(m)},P2ho:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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};D.default=y},P47w:function(k,D,i){var y=i("hydK"),p=y.createElement,S=i("IMiH"),v=i("mFDi"),m=i("Fofx"),f=i("6GrX"),d=i("pzxd"),u=i("dqUG"),o=S.CMD,n=Array.prototype.join,t="none",a=Math.round,e=Math.sin,l=Math.cos,r=Math.PI,s=Math.PI*2,c=180/r,h=1e-4;function g(Q){return a(Q*1e4)/1e4}function A(Q){return Q<h&&Q>-h}function b(Q,G){var ee=G?Q.textFill:Q.fill;return ee!=null&&ee!==t}function w(Q,G){var ee=G?Q.textStroke:Q.stroke;return ee!=null&&ee!==t}function x(Q,G){G&&T(Q,"transform","matrix("+n.call(G,",")+")")}function T(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 E(Q,G,ee,q){if(b(G,ee)){var se=ee?G.textFill:G.fill;se=se==="transparent"?t:se,T(Q,"fill",se),T(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else T(Q,"fill",t);if(w(G,ee)){var re=ee?G.textStroke:G.stroke;re=re==="transparent"?t:re,T(Q,"stroke",re);var Ae=ee?G.textStrokeWidth:G.lineWidth,Te=!ee&&G.strokeNoScale?q.getLineScale():1;T(Q,"stroke-width",Ae/Te),T(Q,"paint-order",ee?"stroke":"fill"),T(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Re=G.lineDash;Re?(T(Q,"stroke-dasharray",G.lineDash.join(",")),T(Q,"stroke-dashoffset",a(G.lineDashOffset||0))):T(Q,"stroke-dasharray",""),G.lineCap&&T(Q,"stroke-linecap",G.lineCap),G.lineJoin&&T(Q,"stroke-linejoin",G.lineJoin),G.miterLimit&&T(Q,"stroke-miterlimit",G.miterLimit)}else T(Q,"stroke",t)}function C(Q){for(var G=[],ee=Q.data,q=Q.len(),se=0;se<q;){var re=ee[se++],Ae="",Te=0;switch(re){case o.M:Ae="M",Te=2;break;case o.L:Ae="L",Te=2;break;case o.Q:Ae="Q",Te=4;break;case o.C:Ae="C",Te=6;break;case o.A:var Re=ee[se++],Ge=ee[se++],Ue=ee[se++],nt=ee[se++],Le=ee[se++],le=ee[se++],Xe=ee[se++],pe=ee[se++],Z=Math.abs(le),Y=A(Z-s)||(pe?le>=s:-le>=s),ne=le>0?le%s:le%s+s,ce=!1;Y?ce=!0:A(Z)?ce=!1:ce=ne>=r===!!pe;var ye=g(Re+Ue*l(Le)),Ee=g(Ge+nt*e(Le));Y&&(pe?le=s-1e-4:le=-s+1e-4,ce=!0,se===9&&G.push("M",ye,Ee));var Ce=g(Re+Ue*l(Le+le)),ue=g(Ge+nt*e(Le+le));G.push("A",g(Ue),g(nt),a(Xe*c),+ce,+pe,Ce,ue);break;case o.Z:Ae="Z";break;case o.R:var Ce=g(ee[se++]),ue=g(ee[se++]),ge=g(ee[se++]),Oe=g(ee[se++]);G.push("M",Ce,ue,"L",Ce+ge,ue,"L",Ce+ge,ue+Oe,"L",Ce,ue+Oe,"L",Ce,ue);break}Ae&&G.push(Ae);for(var Je=0;Je<Te;Je++)G.push(g(ee[se++]))}return G.join(" ")}var I={};I.brush=function(Q){var G=Q.style,ee=Q.__svgEl;ee||(ee=p("path"),Q.__svgEl=ee),Q.path||Q.createPathProxy();var q=Q.path;if(Q.__dirtyPath){q.beginPath(),q.subPixelOptimize=!1,Q.buildPath(q,Q.shape),Q.__dirtyPath=!1;var se=C(q);se.indexOf("NaN")<0&&T(ee,"d",se)}E(ee,G,!1,Q),x(ee,Q.transform),G.text!=null?M(Q,Q.getBoundingRect()):V(Q)};var O={};O.brush=function(Q){var G=Q.style,ee=G.image;if(ee instanceof HTMLImageElement){var q=ee.src;ee=q}if(!ee)return;var se=G.x||0,re=G.y||0,Ae=G.width,Te=G.height,Re=Q.__svgEl;Re||(Re=p("image"),Q.__svgEl=Re),ee!==Q.__imageSrc&&(_(Re,"href",ee),Q.__imageSrc=ee),T(Re,"width",Ae),T(Re,"height",Te),T(Re,"x",se),T(Re,"y",re),x(Re,Q.transform),G.text!=null?M(Q,Q.getBoundingRect()):V(Q)};var F={},R=new v,B={},P=[],X={left:"start",right:"end",center:"middle",middle:"middle"},M=function(G,ee){var q=G.style,se=G.transform,re=G instanceof u||q.transformText;G.__dirty&&d.normalizeTextStyle(q,!0);var Ae=q.text;if(Ae!=null&&(Ae+=""),!d.needDrawText(Ae,q))return;Ae==null&&(Ae=""),!re&&se&&(R.copy(ee),R.applyTransform(se),ee=R);var Te=G.__textSvgEl;Te||(Te=p("text"),G.__textSvgEl=Te);var Re=Te.style,Ge=q.font||f.DEFAULT_FONT,Ue=Te.__computedFont;Ge!==Te.__styleFont&&(Re.font=Te.__styleFont=Ge,Ue=Te.__computedFont=Re.font);var nt=q.textPadding,Le=q.textLineHeight,le=G.__textCotentBlock;(!le||G.__dirtyText)&&(le=G.__textCotentBlock=f.parsePlainText(Ae,Ue,nt,Le,q.truncate));var Xe=le.outerHeight,pe=le.lineHeight;d.getBoxPosition(B,G,q,ee);var Z=B.baseX,Y=B.baseY,ne=B.textAlign||"left",ce=B.textVerticalAlign;z(Te,re,se,q,ee,Z,Y);var ye=f.adjustTextY(Y,Xe,ce),Ee=Z,Ce=ye;nt&&(Ee=W(Z,ne,nt),Ce+=nt[0]),Ce+=pe/2,E(Te,q,!0,G);var ue=le.canCacheByTextString,ge=G.__tspanList||(G.__tspanList=[]),Oe=ge.length;if(ue&&G.__canCacheByTextString&&G.__text===Ae){if(G.__dirtyText&&Oe)for(var Je=0;Je<Oe;++Je)H(ge[Je],ne,Ee,Ce+Je*pe)}else{G.__text=Ae,G.__canCacheByTextString=ue;for(var lt=le.lines,tt=lt.length,Je=0;Je<tt;Je++){var ke=ge[Je],st=lt[Je];ke?ke.__zrText!==st&&(ke.innerHTML="",ke.appendChild(document.createTextNode(st))):(ke=ge[Je]=p("tspan"),Te.appendChild(ke),ke.appendChild(document.createTextNode(st))),H(ke,ne,Ee,Ce+Je*pe)}if(Oe>tt){for(;Je<Oe;Je++)Te.removeChild(ge[Je]);ge.length=tt}}};function z(Q,G,ee,q,se,re,Ae){m.identity(P),G&&ee&&m.copy(P,ee);var Te=q.textRotation;if(se&&Te){var Re=q.textOrigin;Re==="center"?(re=se.width/2+se.x,Ae=se.height/2+se.y):Re&&(re=Re[0]+se.x,Ae=Re[1]+se.y),P[4]-=re,P[5]-=Ae,m.rotate(P,P,Te),P[4]+=re,P[5]+=Ae}x(Q,P)}function W(Q,G,ee){return G==="right"?Q-ee[1]:G==="center"?Q+ee[3]/2-ee[1]/2:Q+ee[3]}function H(Q,G,ee,q){T(Q,"dominant-baseline","middle"),T(Q,"text-anchor",X[G]),T(Q,"x",ee),T(Q,"y",q)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}F.drawRectText=M,F.brush=function(Q){var G=Q.style;G.text!=null?M(Q,!1):V(Q)},D.path=I,D.image=O,D.text=F},P4Qj:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=D.Sensors=void 0;var y=v(i("chpo")),p=i("FxDU"),S=i("24YM");function v(o){return o&&o.__esModule?o:{default:o}}var m={};D.Sensors=m;function f(o){o&&m[o]&&delete m[o]}var d=function(n){var t=n.getAttribute(S.SizeSensorId);if(t&&m[t])return m[t];var a=(0,y.default)();n.setAttribute(S.SizeSensorId,a);var e=(0,p.createSensor)(n,function(){return f(a)});return m[a]=e,e};D.getSensor=d;var u=function(n){var t=n.element.getAttribute(S.SizeSensorId);n.destroy(),f(t)};D.removeSensor=u},P5Jw:function(k,D,i){"use strict";var y=i("rHrb"),p=y.CopyToClipboard;p.CopyToClipboard=p,k.exports=p},PArb:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),u=i.n(d),o=i("H84U"),n=function(a,e){var l={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(l[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(a);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(a,r[s])&&(l[r[s]]=a[r[s]]);return l},t=function(e){return m.createElement(o.a,null,function(l){var r,s=l.getPrefixCls,c=l.direction,h=e.prefixCls,g=e.type,A=g===void 0?"horizontal":g,b=e.orientation,w=b===void 0?"center":b,x=e.className,T=e.children,_=e.dashed,E=e.plain,C=n(e,["prefixCls","type","orientation","className","children","dashed","plain"]),I=s("divider",h),O=w.length>0?"-".concat(w):w,F=!!T,R=u()(x,I,"".concat(I,"-").concat(A),(r={},v()(r,"".concat(I,"-with-text"),F),v()(r,"".concat(I,"-with-text").concat(O),F),v()(r,"".concat(I,"-dashed"),!!_),v()(r,"".concat(I,"-plain"),!!E),v()(r,"".concat(I,"-rtl"),c==="rtl"),r));return m.createElement("div",p()({className:R},C,{role:"separator"}),T&&m.createElement("span",{className:"".concat(I,"-inner-text")},T))})};D.a=t},PD8m:function(k,D){k.exports={name:"memoryStorage",read:y,write:p,each:S,remove:v,clearAll:m};var i={};function y(f){return i[f]}function p(f,d){i[f]=d}function S(f){for(var d in i)i.hasOwnProperty(d)&&f(i[d],d)}function v(f){delete i[f]}function m(f){i={}}},PKem:function(k,D,i){"use strict";i.d(D,"a",function(){return b});var y=i("RIqP"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("pVnL"),f=i.n(m),d=i("lwsE"),u=i.n(d),o=i("W8MJ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),l=i.n(e),r=i("q1tI"),s=i.n(r),c=i("TSYQ"),h=i.n(c),g=i("H84U"),A=function(O,F){var R={};for(var B in O)Object.prototype.hasOwnProperty.call(O,B)&&F.indexOf(B)<0&&(R[B]=O[B]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,B=Object.getOwnPropertySymbols(O);P<B.length;P++)F.indexOf(B[P])<0&&Object.prototype.propertyIsEnumerable.call(O,B[P])&&(R[B[P]]=O[B[P]]);return R},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function w(O){var F=O.suffixCls,R=O.tagName,B=O.displayName;return function(P){var X;return X=function(M){a()(W,M);var z=l()(W);function W(){var H;return u()(this,W),H=z.apply(this,arguments),H.renderComponent=function(V){var Q=V.getPrefixCls,G=H.props.prefixCls,ee=Q(F,G);return r.createElement(P,f()({prefixCls:ee,tagName:R},H.props))},H}return n()(W,[{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),W}(r.Component),X.displayName=B,X}}var x=function(F){var R=F.prefixCls,B=F.className,P=F.children,X=F.tagName,M=A(F,["prefixCls","className","children","tagName"]),z=h()(R,B);return r.createElement(X,f()({className:z},M),P)},T=function(O){a()(R,O);var F=l()(R);function R(){var B;return u()(this,R),B=F.apply(this,arguments),B.state={siders:[]},B.renderComponent=function(P){var X,M=P.direction,z=B.props,W=z.prefixCls,H=z.className,V=z.children,Q=z.hasSider,G=z.tagName,ee=A(z,["prefixCls","className","children","hasSider","tagName"]),q=h()(W,(X={},v()(X,"".concat(W,"-has-sider"),typeof Q=="boolean"?Q:B.state.siders.length>0),v()(X,"".concat(W,"-rtl"),M==="rtl"),X),H);return r.createElement(b.Provider,{value:{siderHook:B.getSiderHook()}},r.createElement(G,f()({className:q},ee),V))},B}return n()(R,[{key:"getSiderHook",value:function(){var P=this;return{addSider:function(M){P.setState(function(z){return{siders:[].concat(p()(z.siders),[M])}})},removeSider:function(M){P.setState(function(z){return{siders:z.siders.filter(function(W){return W!==M})}})}}}},{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),R}(r.Component),_=w({suffixCls:"layout",tagName:"section",displayName:"Layout"})(T),E=w({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(x),C=w({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(x),I=w({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(x);_.Header=E,_.Footer=C,_.Content=I,D.b=_},PNag:function(k,D,i){var y=i("bYtY"),p=i("SKnc"),S=i("YH21"),v=i("crZl"),m=i("IwbS"),f=i("OELB"),d=i("72pK"),u=i("y7Aq"),o=i("4NO4"),n=f.linearMap,t=y.each,a=Math.min,e=Math.max,l=12,r=6,s=v.extend({type:"visualMap.continuous",init:function(){s.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(T,_,E,C){(!C||C.type!=="selectDataRange"||C.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var T=this.visualMapModel,_=this.group;this._orient=T.get("orient"),this._useHandle=T.get("calculable"),this._resetInterval(),this._renderBar(_);var E=T.get("text");this._renderEndsText(_,E,0),this._renderEndsText(_,E,1),this._updateView(!0),this.renderBackground(_),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(_)},_renderEndsText:function(T,_,E){if(!_)return;var C=_[1-E];C=C!=null?C+"":"";var I=this.visualMapModel,O=I.get("textGap"),F=I.itemSize,R=this._shapes.barGroup,B=this._applyTransform([F[0]/2,E===0?-O:F[1]+O],R),P=this._applyTransform(E===0?"bottom":"top",R),X=this._orient,M=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:B[0],y:B[1],textVerticalAlign:X==="horizontal"?"middle":P,textAlign:X==="horizontal"?P:"center",text:C,textFont:M.getFont(),textFill:M.getTextColor()}}))},_renderBar:function(T){var _=this.visualMapModel,E=this._shapes,C=_.itemSize,I=this._orient,O=this._useHandle,F=u.getItemAlign(_,this.api,C),R=E.barGroup=this._createBarGroup(F);R.add(E.outOfRange=c()),R.add(E.inRange=c(null,O?w(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var B=_.textStyleModel.getTextRect("\u56FD"),P=e(B.width,B.height);O&&(E.handleThumbs=[],E.handleLabels=[],E.handleLabelPoints=[],this._createHandle(R,0,C,P,I,F),this._createHandle(R,1,C,P,I,F)),this._createIndicator(R,C,P,I),T.add(R)},_createHandle:function(T,_,E,C,I){var O=y.bind(this._dragHandle,this,_,!1),F=y.bind(this._dragHandle,this,_,!0),R=c(h(_,C),w(this._orient),O,F);R.position[0]=E[0],T.add(R);var B=this.visualMapModel.textStyleModel,P=new m.Text({draggable:!0,drift:O,onmousemove:function(z){S.stop(z.event)},ondragend:F,style:{x:0,y:0,text:"",textFont:B.getFont(),textFill:B.getTextColor()}});this.group.add(P);var X=[I==="horizontal"?C/2:C*1.5,I==="horizontal"?_===0?-(C*1.5):C*1.5:_===0?-C/2:C/2],M=this._shapes;M.handleThumbs[_]=R,M.handleLabelPoints[_]=X,M.handleLabels[_]=P},_createIndicator:function(T,_,E,C){var I=c([[0,0]],"move");I.position[0]=_[0],I.attr({invisible:!0,silent:!0}),T.add(I);var O=this.visualMapModel.textStyleModel,F=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:O.getFont(),textFill:O.getTextColor()}});this.group.add(F);var R=[C==="horizontal"?E/2:r+3,0],B=this._shapes;B.indicator=I,B.indicatorLabel=F,B.indicatorLabelPoint=R},_dragHandle:function(T,_,E,C){if(!this._useHandle)return;if(this._dragging=!_,!_){var I=this._applyTransform([E,C],this._shapes.barGroup,!0);this._updateInterval(T,I[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[T],!1)},_resetInterval:function(){var T=this.visualMapModel,_=this._dataInterval=T.getSelected(),E=T.getExtent(),C=[0,T.itemSize[1]];this._handleEnds=[n(_[0],E,C,!0),n(_[1],E,C,!0)]},_updateInterval:function(T,_){_=_||0;var E=this.visualMapModel,C=this._handleEnds,I=[0,E.itemSize[1]];d(_,C,I,T,0);var O=E.getExtent();this._dataInterval=[n(C[0],I,O,!0),n(C[1],I,O,!0)]},_updateView:function(T){var _=this.visualMapModel,E=_.getExtent(),C=this._shapes,I=[0,_.itemSize[1]],O=T?I:this._handleEnds,F=this._createBarVisual(this._dataInterval,E,O,"inRange"),R=this._createBarVisual(E,E,I,"outOfRange");C.inRange.setStyle({fill:F.barColor,opacity:F.opacity}).setShape("points",F.barPoints),C.outOfRange.setStyle({fill:R.barColor,opacity:R.opacity}).setShape("points",R.barPoints),this._updateHandle(O,F)},_createBarVisual:function(T,_,E,C){var I={forceState:C,convertOpacityToAlpha:!0},O=this._makeColorGradient(T,I),F=[this.getControllerVisual(T[0],"symbolSize",I),this.getControllerVisual(T[1],"symbolSize",I)],R=this._createBarPoints(E,F);return{barColor:new p(0,0,0,1,O),barPoints:R,handlesColor:[O[0].color,O[O.length-1].color]}},_makeColorGradient:function(T,_){var E=100,C=[],I=(T[1]-T[0])/E;C.push({color:this.getControllerVisual(T[0],"color",_),offset:0});for(var O=1;O<E;O++){var F=T[0]+I*O;if(F>T[1])break;C.push({color:this.getControllerVisual(F,"color",_),offset:O/E})}return C.push({color:this.getControllerVisual(T[1],"color",_),offset:1}),C},_createBarPoints:function(T,_){var E=this.visualMapModel.itemSize;return[[E[0]-_[0],T[0]],[E[0],T[0]],[E[0],T[1]],[E[0]-_[1],T[1]]]},_createBarGroup:function(T){var _=this._orient,E=this.visualMapModel.get("inverse");return new m.Group(_==="horizontal"&&!E?{scale:T==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:_==="horizontal"&&E?{scale:T==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:_==="vertical"&&!E?{scale:T==="left"?[1,-1]:[-1,-1]}:{scale:T==="left"?[1,1]:[-1,1]})},_updateHandle:function(T,_){if(!this._useHandle)return;var E=this._shapes,C=this.visualMapModel,I=E.handleThumbs,O=E.handleLabels;t([0,1],function(F){var R=I[F];R.setStyle("fill",_.handlesColor[F]),R.position[1]=T[F];var B=m.applyTransform(E.handleLabelPoints[F],m.getTransform(R,this.group));O[F].setStyle({x:B[0],y:B[1],text:C.formatValueText(this._dataInterval[F]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?F===0?"bottom":"top":"left",E.barGroup)})},this)},_showIndicator:function(T,_,E,C){var I=this.visualMapModel,O=I.getExtent(),F=I.itemSize,R=[0,F[1]],B=n(T,O,R,!0),P=this._shapes,X=P.indicator;if(!X)return;X.position[1]=B,X.attr("invisible",!1),X.setShape("points",g(!!E,C,B,F[1]));var M={convertOpacityToAlpha:!0},z=this.getControllerVisual(T,"color",M);X.setStyle("fill",z);var W=m.applyTransform(P.indicatorLabelPoint,m.getTransform(X,this.group)),H=P.indicatorLabel;H.attr("invisible",!1);var V=this._applyTransform("left",P.barGroup),Q=this._orient;H.setStyle({text:(E||"")+I.formatValueText(_),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:W[0],y:W[1]})},_enableHoverLinkToSeries:function(){var T=this;this._shapes.barGroup.on("mousemove",function(_){if(T._hovering=!0,!T._dragging){var E=T.visualMapModel.itemSize,C=T._applyTransform([_.offsetX,_.offsetY],T._shapes.barGroup,!0,!0);C[1]=a(e(0,C[1]),E[1]),T._doHoverLinkToSeries(C[1],0<=C[0]&&C[0]<=E[0])}}).on("mouseout",function(){T._hovering=!1,!T._dragging&&T._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var T=this.api.getZr();this.visualMapModel.option.hoverLink?(T.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),T.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(T,_){var E=this.visualMapModel,C=E.itemSize;if(!E.option.hoverLink)return;var I=[0,C[1]],O=E.getExtent();T=a(e(I[0],T),I[1]);var F=A(E,O,I),R=[T-F,T+F],B=n(T,I,O,!0),P=[n(R[0],I,O,!0),n(R[1],I,O,!0)];R[0]<I[0]&&(P[0]=-Infinity),R[1]>I[1]&&(P[1]=Infinity),_&&(P[0]===-Infinity?this._showIndicator(B,P[1],"< ",F):P[1]===Infinity?this._showIndicator(B,P[0],"> ",F):this._showIndicator(B,B,"\u2248 ",F));var X=this._hoverLinkDataIndices,M=[];(_||b(E))&&(M=this._hoverLinkDataIndices=E.findTargetDataIndices(P));var z=o.compressBatches(X,M);this._dispatchHighDown("downplay",u.makeHighDownBatch(z[0],E)),this._dispatchHighDown("highlight",u.makeHighDownBatch(z[1],E))},_hoverLinkFromSeriesMouseOver:function(T){var _=T.target,E=this.visualMapModel;if(!_||_.dataIndex==null)return;var C=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!E.isTargetSeries(C))return;var I=C.getData(_.dataType),O=I.get(E.getDataDimension(I),_.dataIndex,!0);isNaN(O)||this._showIndicator(O,O)},_hideIndicator:function(){var T=this._shapes;T.indicator&&T.indicator.attr("invisible",!0),T.indicatorLabel&&T.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var T=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(T,this.visualMapModel)),T.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var T=this.api.getZr();T.off("mouseover",this._hoverLinkFromSeriesMouseOver),T.off("mouseout",this._hideIndicator)},_applyTransform:function(T,_,E,C){var I=m.getTransform(_,C?null:this.group);return m[y.isArray(T)?"applyTransform":"transformDirection"](T,I,E)},_dispatchHighDown:function(T,_){_&&_.length&&this.api.dispatchAction({type:T,batch:_})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(T,_,E,C){return new m.Polygon({shape:{points:T},draggable:!!E,cursor:_,drift:E,onmousemove:function(I){S.stop(I.event)},ondragend:C})}function h(T,_){return T===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function g(T,_,E,C){return T?[[0,-a(_,e(E,0))],[r,0],[0,a(_,e(C-E,0))]]:[[0,0],[5,-5],[5,5]]}function A(T,_,E){var C=l/2,I=T.get("hoverLinkDataSize");return I&&(C=n(I,_,E,!0)/2),C}function b(T){var _=T.get("hoverLinkOnHandle");return!!(_==null?T.get("realtime"):_)}function w(T){return T==="vertical"?"ns-resize":"ew-resize"}var x=s;k.exports=x},PQMj:function(k,D,i){},PSzr:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},PVpz:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.StreamCipher,m=p.algo,f=[],d=[],u=[],o=m.RabbitLegacy=v.extend({_doReset:function(){var a=this._key.words,e=this.cfg.iv,l=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],r=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var s=0;s<4;s++)n.call(this);for(var s=0;s<8;s++)r[s]^=l[s+4&7];if(e){var c=e.words,h=c[0],g=c[1],A=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=A>>>16|b&4294901760,x=b<<16|A&65535;r[0]^=A,r[1]^=w,r[2]^=b,r[3]^=x,r[4]^=A,r[5]^=w,r[6]^=b,r[7]^=x;for(var s=0;s<4;s++)n.call(this)}},_doProcessBlock:function(a,e){var l=this._X;n.call(this),f[0]=l[0]^l[5]>>>16^l[3]<<16,f[1]=l[2]^l[7]>>>16^l[5]<<16,f[2]=l[4]^l[1]>>>16^l[7]<<16,f[3]=l[6]^l[3]>>>16^l[1]<<16;for(var r=0;r<4;r++)f[r]=(f[r]<<8|f[r]>>>24)&16711935|(f[r]<<24|f[r]>>>8)&4278255360,a[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,a=this._C,e=0;e<8;e++)d[e]=a[e];a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0<d[0]>>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0<d[1]>>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0<d[2]>>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0<d[3]>>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0<d[4]>>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0<d[5]>>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0<d[6]>>>0?1:0)|0,this._b=a[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+a[e],r=l&65535,s=l>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,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}p.RabbitLegacy=v._createHelper(o)}(),y.RabbitLegacy})},ProS:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("aX58"),v=i("bYtY"),m=i("Qe9p"),f=i("ItGF"),d=i("BPZU"),u=i("H6uX"),o=i("fmMI"),n=i("hD7B"),t=i("IDmD"),a=i("ypgQ"),e=i("+wW9"),l=i("0V0F"),r=i("bLfw"),s=i("T4UG"),c=i("sS/r"),h=i("6Ic6"),g=i("IwbS"),A=i("4NO4"),b=i("iLNv"),w=b.throttle,x=i("/WM3"),T=i("uAnK"),_=i("mYwL"),E=i("af/B"),C=i("xTNl"),I=i("8hn6");i("A1Ka");var O=i("7DRL"),F=v.assert,R=v.each,B=v.isFunction,P=v.isObject,X=r.parseClassType,M="4.8.0",z={zrender:"4.3.1"},W=1,H=1e3,V=800,Q=900,G=5e3,ee=1e3,q=1100,se=2e3,re=3e3,Ae=3500,Te=4e3,Re=5e3,Ge={PROCESSOR:{FILTER:H,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:ee,PROGRESSIVE_LAYOUT:q,GLOBAL:se,CHART:re,POST_CHART_LAYOUT:Ae,COMPONENT:Te,BRUSH:Re}},Ue="__flagInMainProcess",nt="__optionUpdated",Le=/^[a-zA-Z0-9_]+$/;function le(wt,Mt){return function(Nr,Tr,yr){if(!Mt&&this._disposed){Ut(this.id);return}Nr=Nr&&Nr.toLowerCase(),u.prototype[wt].call(this,Nr,Tr,yr)}}function Xe(){u.call(this)}Xe.prototype.on=le("on",!0),Xe.prototype.off=le("off",!0),Xe.prototype.one=le("one",!0),v.mixin(Xe,u);function pe(wt,Mt,Nr){Nr=Nr||{},typeof Mt=="string"&&(Mt=pt[Mt]),this.id,this.group,this._dom=wt;var Tr="canvas",yr=this._zr=S.init(wt,{renderer:Nr.renderer||Tr,devicePixelRatio:Nr.devicePixelRatio,width:Nr.width,height:Nr.height});this._throttledZrFlush=w(v.bind(yr.flush,yr),17);var Mt=v.clone(Mt);Mt&&e(Mt,!0),this._theme=Mt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var en=this._api=mt(this);function sn(Vn,jn){return Vn.__prio-jn.__prio}d(Lr,sn),d(qr,sn),this._scheduler=new E(this,en,qr,Lr),u.call(this,this._ecEventProcessor=new or),this._messageCenter=new Xe,this._initEvents(),this.resize=v.bind(this.resize,this),this._pendingActions=[],yr.animation.on("frame",this._onframe,this),Oe(yr,this),v.setAsPrimitive(this)}var Z=pe.prototype;Z._onframe=function(){if(this._disposed)return;var wt=this._scheduler;if(this[nt]){var Mt=this[nt].silent;this[Ue]=!0,ce(this),ne.update.call(this),this[Ue]=!1,this[nt]=!1,ue.call(this,Mt),ge.call(this,Mt)}else if(wt.unfinished){var Nr=W,Tr=this._model,yr=this._api;wt.unfinished=!1;do{var en=+new Date;wt.performSeriesTasks(Tr),wt.performDataProcessorTasks(Tr),Ee(this,Tr),wt.performVisualTasks(Tr),st(this,this._model,yr,"remain"),Nr-=+new Date-en}while(Nr>0&&wt.unfinished);wt.unfinished||this._zr.flush()}},Z.getDom=function(){return this._dom},Z.getZr=function(){return this._zr},Z.setOption=function(wt,Mt,Nr){if(this._disposed){Ut(this.id);return}var Tr;if(P(Mt)&&(Nr=Mt.lazyUpdate,Tr=Mt.silent,Mt=Mt.notMerge),this[Ue]=!0,!this._model||Mt){var yr=new a(this._api),en=this._theme,sn=this._model=new o;sn.scheduler=this._scheduler,sn.init(null,null,en,yr)}this._model.setOption(wt,Fe),Nr?(this[nt]={silent:Tr},this[Ue]=!1):(ce(this),ne.update.call(this),this._zr.flush(),this[nt]=!1,this[Ue]=!1,ue.call(this,Tr),ge.call(this,Tr))},Z.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Z.getModel=function(){return this._model},Z.getOption=function(){return this._model&&this._model.getOption()},Z.getWidth=function(){return this._zr.getWidth()},Z.getHeight=function(){return this._zr.getHeight()},Z.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Z.getRenderedCanvas=function(wt){if(!f.canvasSupported)return;wt=wt||{},wt.pixelRatio=wt.pixelRatio||1,wt.backgroundColor=wt.backgroundColor||this._model.get("backgroundColor");var Mt=this._zr;return Mt.painter.getRenderedCanvas(wt)},Z.getSvgDataURL=function(){if(!f.svgSupported)return;var wt=this._zr,Mt=wt.storage.getDisplayList();return v.each(Mt,function(Nr){Nr.stopAnimation(!0)}),wt.painter.toDataURL()},Z.getDataURL=function(wt){if(this._disposed){Ut(this.id);return}wt=wt||{};var Mt=wt.excludeComponents,Nr=this._model,Tr=[],yr=this;R(Mt,function(sn){Nr.eachComponent({mainType:sn},function(Vn){var jn=yr._componentsMap[Vn.__viewId];jn.group.ignore||(Tr.push(jn),jn.group.ignore=!0)})});var en=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(wt).toDataURL("image/"+(wt&&wt.type||"png"));return R(Tr,function(sn){sn.group.ignore=!1}),en},Z.getConnectedDataURL=function(wt){if(this._disposed){Ut(this.id);return}if(!f.canvasSupported)return;var Mt=wt.type==="svg",Nr=this.group,Tr=Math.min,yr=Math.max,en=Infinity;if(pn[Nr]){var sn=en,Vn=en,jn=-en,ri=-en,ci=[],gi=wt&&wt.pixelRatio||1;v.each(vr,function(Ye,ze){if(Ye.group===Nr){var $e=Mt?Ye.getZr().painter.getSvgDom().innerHTML:Ye.getRenderedCanvas(v.clone(wt)),St=Ye.getDom().getBoundingClientRect();sn=Tr(St.left,sn),Vn=Tr(St.top,Vn),jn=yr(St.right,jn),ri=yr(St.bottom,ri),ci.push({dom:$e,left:St.left,top:St.top})}}),sn*=gi,Vn*=gi,jn*=gi,ri*=gi;var Ni=jn-sn,Qe=ri-Vn,Se=v.createCanvas(),Pe=S.init(Se,{renderer:Mt?"svg":"canvas"});if(Pe.resize({width:Ni,height:Qe}),Mt){var He="";return R(ci,function(Ye){var ze=Ye.left-sn,$e=Ye.top-Vn;He+='<g transform="translate('+ze+","+$e+')">'+Ye.dom+"</g>"}),Pe.painter.getSvgRoot().innerHTML=He,wt.connectedBackgroundColor&&Pe.painter.setBackgroundColor(wt.connectedBackgroundColor),Pe.refreshImmediately(),Pe.painter.toDataURL()}else return wt.connectedBackgroundColor&&Pe.add(new g.Rect({shape:{x:0,y:0,width:Ni,height:Qe},style:{fill:wt.connectedBackgroundColor}})),R(ci,function(Ye){var ze=new g.Image({style:{x:Ye.left*gi-sn,y:Ye.top*gi-Vn,image:Ye.dom}});Pe.add(ze)}),Pe.refreshImmediately(),Se.toDataURL("image/"+(wt&&wt.type||"png"))}else return this.getDataURL(wt)},Z.convertToPixel=v.curry(Y,"convertToPixel"),Z.convertFromPixel=v.curry(Y,"convertFromPixel");function Y(wt,Mt,Nr){if(this._disposed){Ut(this.id);return}var Tr=this._model,yr=this._coordSysMgr.getCoordinateSystems(),en;Mt=A.parseFinder(Tr,Mt);for(var sn=0;sn<yr.length;sn++){var Vn=yr[sn];if(Vn[wt]&&(en=Vn[wt](Tr,Mt,Nr))!=null)return en}}Z.containPixel=function(wt,Mt){if(this._disposed){Ut(this.id);return}var Nr=this._model,Tr;return wt=A.parseFinder(Nr,wt),v.each(wt,function(yr,en){en.indexOf("Models")>=0&&v.each(yr,function(sn){var Vn=sn.coordinateSystem;if(Vn&&Vn.containPoint)Tr|=!!Vn.containPoint(Mt);else if(en==="seriesModels"){var jn=this._chartsMap[sn.__viewId];jn&&jn.containPoint&&(Tr|=jn.containPoint(Mt,sn))}},this)},this),!!Tr},Z.getVisual=function(wt,Mt){var Nr=this._model;wt=A.parseFinder(Nr,wt,{defaultMainType:"series"});var Tr=wt.seriesModel,yr=Tr.getData(),en=wt.hasOwnProperty("dataIndexInside")?wt.dataIndexInside:wt.hasOwnProperty("dataIndex")?yr.indexOfRawIndex(wt.dataIndex):null;return en!=null?yr.getItemVisual(en,Mt):yr.getVisual(Mt)},Z.getViewOfComponentModel=function(wt){return this._componentsMap[wt.__viewId]},Z.getViewOfSeriesModel=function(wt){return this._chartsMap[wt.__viewId]};var ne={prepareAndUpdate:function(wt){ce(this),ne.update.call(this,wt)},update:function(wt){var Mt=this._model,Nr=this._api,Tr=this._zr,yr=this._coordSysMgr,en=this._scheduler;if(!Mt)return;en.restoreData(Mt,wt),en.performSeriesTasks(Mt),yr.create(Mt,Nr),en.performDataProcessorTasks(Mt,wt),Ee(this,Mt),yr.update(Mt,Nr),lt(Mt),en.performVisualTasks(Mt,wt),tt(this,Mt,Nr,wt);var sn=Mt.get("backgroundColor")||"transparent";if(f.canvasSupported)Tr.setBackgroundColor(sn);else{var Vn=m.parse(sn);sn=m.stringify(Vn,"rgb"),Vn[3]===0&&(sn="transparent")}Ve(Mt,Nr)},updateTransform:function(wt){var Mt=this._model,Nr=this,Tr=this._api;if(!Mt)return;var yr=[];Mt.eachComponent(function(sn,Vn){var jn=Nr.getViewOfComponentModel(Vn);if(jn&&jn.__alive)if(jn.updateTransform){var ri=jn.updateTransform(Vn,Mt,Tr,wt);ri&&ri.update&&yr.push(jn)}else yr.push(jn)});var en=v.createHashMap();Mt.eachSeries(function(sn){var Vn=Nr._chartsMap[sn.__viewId];if(Vn.updateTransform){var jn=Vn.updateTransform(sn,Mt,Tr,wt);jn&&jn.update&&en.set(sn.uid,1)}else en.set(sn.uid,1)}),lt(Mt),this._scheduler.performVisualTasks(Mt,wt,{setDirty:!0,dirtyMap:en}),st(Nr,Mt,Tr,wt,en),Ve(Mt,this._api)},updateView:function(wt){var Mt=this._model;if(!Mt)return;h.markUpdateMethod(wt,"updateView"),lt(Mt),this._scheduler.performVisualTasks(Mt,wt,{setDirty:!0}),tt(this,this._model,this._api,wt),Ve(Mt,this._api)},updateVisual:function(wt){ne.update.call(this,wt)},updateLayout:function(wt){ne.update.call(this,wt)}};function ce(wt){var Mt=wt._model,Nr=wt._scheduler;Nr.restorePipelines(Mt),Nr.prepareStageTasks(),Je(wt,"component",Mt,Nr),Je(wt,"chart",Mt,Nr),Nr.plan()}function ye(wt,Mt,Nr,Tr,yr){var en=wt._model;if(!Tr){R(wt._componentsViews.concat(wt._chartsViews),ri);return}var sn={};sn[Tr+"Id"]=Nr[Tr+"Id"],sn[Tr+"Index"]=Nr[Tr+"Index"],sn[Tr+"Name"]=Nr[Tr+"Name"];var Vn={mainType:Tr,query:sn};yr&&(Vn.subType=yr);var jn=Nr.excludeSeriesId;jn!=null&&(jn=v.createHashMap(A.normalizeToArray(jn))),en&&en.eachComponent(Vn,function(ci){(!jn||jn.get(ci.id)==null)&&ri(wt[Tr==="series"?"_chartsMap":"_componentsMap"][ci.__viewId])},wt);function ri(ci){ci&&ci.__alive&&ci[Mt]&&ci[Mt](ci.__model,en,wt._api,Nr)}}Z.resize=function(wt){if(this._disposed){Ut(this.id);return}this._zr.resize(wt);var Mt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Mt)return;var Nr=Mt.resetOption("media"),Tr=wt&&wt.silent;this[Ue]=!0,Nr&&ce(this),ne.update.call(this),this[Ue]=!1,ue.call(this,Tr),ge.call(this,Tr)};function Ee(wt,Mt){var Nr=wt._chartsMap,Tr=wt._scheduler;Mt.eachSeries(function(yr){Tr.updateStreamModes(yr,Nr[yr.__viewId])})}Z.showLoading=function(wt,Mt){if(this._disposed){Ut(this.id);return}if(P(wt)&&(Mt=wt,wt=""),wt=wt||"default",this.hideLoading(),!qt[wt])return;var Nr=qt[wt](this._api,Mt),Tr=this._zr;this._loadingFX=Nr,Tr.add(Nr)},Z.hideLoading=function(){if(this._disposed){Ut(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Z.makeActionFromEvent=function(wt){var Mt=v.extend({},wt);return Mt.type=ur[wt.type],Mt},Z.dispatchAction=function(wt,Mt){if(this._disposed){Ut(this.id);return}if(P(Mt)||(Mt={silent:!!Mt}),!et[wt.type])return;if(!this._model)return;if(this[Ue]){this._pendingActions.push(wt);return}Ce.call(this,wt,Mt.silent),Mt.flush?this._zr.flush(!0):Mt.flush!==!1&&f.browser.weChat&&this._throttledZrFlush(),ue.call(this,Mt.silent),ge.call(this,Mt.silent)};function Ce(wt,Mt){var Nr=wt.type,Tr=wt.escapeConnect,yr=et[Nr],en=yr.actionInfo,sn=(en.update||"update").split(":"),Vn=sn.pop();sn=sn[0]!=null&&X(sn[0]),this[Ue]=!0;var jn=[wt],ri=!1;wt.batch&&(ri=!0,jn=v.map(wt.batch,function(Qe){return Qe=v.defaults(v.extend({},Qe),wt),Qe.batch=null,Qe}));var ci=[],gi,Ni=Nr==="highlight"||Nr==="downplay";R(jn,function(Qe){gi=yr.action(Qe,this._model,this._api),gi=gi||v.extend({},Qe),gi.type=en.event||gi.type,ci.push(gi),Ni?ye(this,Vn,Qe,"series"):sn&&ye(this,Vn,Qe,sn.main,sn.sub)},this),Vn!=="none"&&!Ni&&!sn&&(this[nt]?(ce(this),ne.update.call(this,wt),this[nt]=!1):ne[Vn].call(this,wt)),ri?gi={type:en.event||Nr,escapeConnect:Tr,batch:ci}:gi=ci[0],this[Ue]=!1,!Mt&&this._messageCenter.trigger(gi.type,gi)}function ue(wt){for(var Mt=this._pendingActions;Mt.length;){var Nr=Mt.shift();Ce.call(this,Nr,wt)}}function ge(wt){!wt&&this.trigger("updated")}function Oe(wt,Mt){wt.on("rendered",function(){Mt.trigger("rendered"),wt.animation.isFinished()&&!Mt[nt]&&!Mt._scheduler.unfinished&&!Mt._pendingActions.length&&Mt.trigger("finished")})}Z.appendData=function(wt){if(this._disposed){Ut(this.id);return}var Mt=wt.seriesIndex,Nr=this.getModel(),Tr=Nr.getSeriesByIndex(Mt);Tr.appendData(wt),this._scheduler.unfinished=!0},Z.on=le("on",!1),Z.off=le("off",!1),Z.one=le("one",!1);function Je(wt,Mt,Nr,Tr){for(var yr=Mt==="component",en=yr?wt._componentsViews:wt._chartsViews,sn=yr?wt._componentsMap:wt._chartsMap,Vn=wt._zr,jn=wt._api,ri=0;ri<en.length;ri++)en[ri].__alive=!1;yr?Nr.eachComponent(function(Ni,Qe){Ni!=="series"&&ci(Qe)}):Nr.eachSeries(ci);function ci(Ni){var Qe="_ec_"+Ni.id+"_"+Ni.type,Se=sn[Qe];if(!Se){var Pe=X(Ni.type),He=yr?c.getClass(Pe.main,Pe.sub):h.getClass(Pe.sub);Se=new He,Se.init(Nr,jn),sn[Qe]=Se,en.push(Se),Vn.add(Se.group)}Ni.__viewId=Se.__id=Qe,Se.__alive=!0,Se.__model=Ni,Se.group.__ecComponentInfo={mainType:Ni.mainType,index:Ni.componentIndex},!yr&&Tr.prepareView(Se,Ni,Nr,jn)}for(var ri=0;ri<en.length;){var gi=en[ri];gi.__alive?ri++:(!yr&&gi.renderTask.dispose(),Vn.remove(gi.group),gi.dispose(Nr,jn),en.splice(ri,1),delete sn[gi.__id],gi.__id=gi.group.__ecComponentInfo=null)}}function lt(wt){wt.clearColorPalette(),wt.eachSeries(function(Mt){Mt.clearColorPalette()})}function tt(wt,Mt,Nr,Tr){ke(wt,Mt,Nr,Tr),R(wt._chartsViews,function(yr){yr.__alive=!1}),st(wt,Mt,Nr,Tr),R(wt._chartsViews,function(yr){yr.__alive||yr.remove(Mt,Nr)})}function ke(wt,Mt,Nr,Tr,yr){R(yr||wt._componentsViews,function(en){var sn=en.__model;en.render(sn,Mt,Nr,Tr),Sr(sn,en)})}function st(wt,Mt,Nr,Tr,yr){var en=wt._scheduler,sn;Mt.eachSeries(function(Vn){var jn=wt._chartsMap[Vn.__viewId];jn.__alive=!0;var ri=jn.renderTask;en.updatePayload(ri,Tr),yr&&yr.get(Vn.uid)&&ri.dirty(),sn|=ri.perform(en.getPerformArgs(ri)),jn.group.silent=!!Vn.get("silent"),Sr(Vn,jn),lr(Vn,jn)}),en.unfinished|=sn,ir(wt,Mt),T(wt._zr.dom,Mt)}function Ve(wt,Mt){R($t,function(Nr){Nr(wt,Mt)})}var Ot=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Z._initEvents=function(){R(Ot,function(wt){var Mt=function(Nr){var Tr=this.getModel(),yr=Nr.target,en,sn=wt==="globalout";if(sn)en={};else if(yr&&yr.dataIndex!=null){var Vn=yr.dataModel||Tr.getSeriesByIndex(yr.seriesIndex);en=Vn&&Vn.getDataParams(yr.dataIndex,yr.dataType,yr)||{}}else yr&&yr.eventData&&(en=v.extend({},yr.eventData));if(en){var jn=en.componentType,ri=en.componentIndex;(jn==="markLine"||jn==="markPoint"||jn==="markArea")&&(jn="series",ri=en.seriesIndex);var ci=jn&&ri!=null&&Tr.getComponent(jn,ri),gi=ci&&this[ci.mainType==="series"?"_chartsMap":"_componentsMap"][ci.__viewId];en.event=Nr,en.type=wt,this._ecEventProcessor.eventInfo={targetEl:yr,packedEvent:en,model:ci,view:gi},this.trigger(wt,en)}};Mt.zrEventfulCallAtLast=!0,this._zr.on(wt,Mt,this)},this),R(ur,function(wt,Mt){this._messageCenter.on(Mt,function(Nr){this.trigger(Mt,Nr)},this)},this)},Z.isDisposed=function(){return this._disposed},Z.clear=function(){if(this._disposed){Ut(this.id);return}this.setOption({series:[]},!0)},Z.dispose=function(){if(this._disposed){Ut(this.id);return}this._disposed=!0,A.setAttribute(this.getDom(),dn,"");var wt=this._api,Mt=this._model;R(this._componentsViews,function(Nr){Nr.dispose(Mt,wt)}),R(this._chartsViews,function(Nr){Nr.dispose(Mt,wt)}),this._zr.dispose(),delete vr[this.id]},v.mixin(pe,u);function Ut(wt){}function ir(wt,Mt){var Nr=wt._zr,Tr=Nr.storage,yr=0;Tr.traverse(function(en){yr++}),yr>Mt.get("hoverLayerThreshold")&&!f.node&&Mt.eachSeries(function(en){if(en.preventUsingHoverLayer)return;var sn=wt._chartsMap[en.__viewId];sn.__alive&&sn.group.traverse(function(Vn){Vn.useHoverLayer=!0})})}function lr(wt,Mt){var Nr=wt.get("blendMode")||null;Mt.group.traverse(function(Tr){Tr.isGroup||Tr.style.blend!==Nr&&Tr.setStyle("blend",Nr),Tr.eachPendingDisplayable&&Tr.eachPendingDisplayable(function(yr){yr.setStyle("blend",Nr)})})}function Sr(wt,Mt){var Nr=wt.get("z"),Tr=wt.get("zlevel");Mt.group.traverse(function(yr){yr.type!=="group"&&(Nr!=null&&(yr.z=Nr),Tr!=null&&(yr.zlevel=Tr))})}function mt(wt){var Mt=wt._coordSysMgr;return v.extend(new n(wt),{getCoordinateSystems:v.bind(Mt.getCoordinateSystems,Mt),getComponentByElement:function(Nr){for(;Nr;){var Tr=Nr.__ecComponentInfo;if(Tr!=null)return wt._model.getComponent(Tr.mainType,Tr.index);Nr=Nr.parent}}})}function or(){this.eventInfo}or.prototype={constructor:or,normalizeQuery:function(wt){var Mt={},Nr={},Tr={};if(v.isString(wt)){var yr=X(wt);Mt.mainType=yr.main||null,Mt.subType=yr.sub||null}else{var en=["Index","Name","Id"],sn={name:1,dataIndex:1,dataType:1};v.each(wt,function(Vn,jn){for(var ri=!1,ci=0;ci<en.length;ci++){var gi=en[ci],Ni=jn.lastIndexOf(gi);if(Ni>0&&Ni===jn.length-gi.length){var Qe=jn.slice(0,Ni);Qe!=="data"&&(Mt.mainType=Qe,Mt[gi.toLowerCase()]=Vn,ri=!0)}}sn.hasOwnProperty(jn)&&(Nr[jn]=Vn,ri=!0),ri||(Tr[jn]=Vn)})}return{cptQuery:Mt,dataQuery:Nr,otherQuery:Tr}},filter:function(wt,Mt,Nr){var Tr=this.eventInfo;if(!Tr)return!0;var yr=Tr.targetEl,en=Tr.packedEvent,sn=Tr.model,Vn=Tr.view;if(!sn||!Vn)return!0;var jn=Mt.cptQuery,ri=Mt.dataQuery;return ci(jn,sn,"mainType")&&ci(jn,sn,"subType")&&ci(jn,sn,"index","componentIndex")&&ci(jn,sn,"name")&&ci(jn,sn,"id")&&ci(ri,en,"name")&&ci(ri,en,"dataIndex")&&ci(ri,en,"dataType")&&(!Vn.filterForExposedEvent||Vn.filterForExposedEvent(wt,Mt.otherQuery,yr,en));function ci(gi,Ni,Qe,Se){return gi[Qe]==null||Ni[Se||Qe]===gi[Qe]}},afterTrigger:function(){this.eventInfo=null}};var et={},ur={},qr=[],Fe=[],$t=[],Lr=[],pt={},qt={},vr={},pn={},fr=new Date-0,gr=new Date-0,dn="_echarts_instance_";function Qt(wt){var Mt=0,Nr=1,Tr=2,yr="__connectUpdateStatus";function en(sn,Vn){for(var jn=0;jn<sn.length;jn++){var ri=sn[jn];ri[yr]=Vn}}R(ur,function(sn,Vn){wt._messageCenter.on(Vn,function(jn){if(pn[wt.group]&&wt[yr]!==Mt){if(jn&&jn.escapeConnect)return;var ri=wt.makeActionFromEvent(jn),ci=[];R(vr,function(gi){gi!==wt&&gi.group===wt.group&&ci.push(gi)}),en(ci,Mt),R(ci,function(gi){gi[yr]!==Nr&&gi.dispatchAction(ri)}),en(ci,Tr)}})})}function sr(wt,Mt,Nr){var Tr=ki(wt);if(Tr)return Tr;var yr=new pe(wt,Mt,Nr);return yr.id="ec_"+fr++,vr[yr.id]=yr,A.setAttribute(wt,dn,yr.id),Qt(yr),yr}function Qr(wt){if(v.isArray(wt)){var Mt=wt;wt=null,R(Mt,function(Nr){Nr.group!=null&&(wt=Nr.group)}),wt=wt||"g_"+gr++,R(Mt,function(Nr){Nr.group=wt})}return pn[wt]=!0,wt}function Cn(wt){pn[wt]=!1}var Fn=Cn;function ti(wt){typeof wt=="string"?wt=vr[wt]:wt instanceof pe||(wt=ki(wt)),wt instanceof pe&&!wt.isDisposed()&&wt.dispose()}function ki(wt){return vr[A.getAttribute(wt,dn)]}function Dn(wt){return vr[wt]}function Bn(wt,Mt){pt[wt]=Mt}function Ft(wt){Fe.push(wt)}function vt(wt,Mt){kt(qr,wt,Mt,H)}function _e(wt){$t.push(wt)}function Ne(wt,Mt,Nr){typeof Mt=="function"&&(Nr=Mt,Mt="");var Tr=P(wt)?wt.type:[wt,wt={event:Mt}][0];wt.event=(wt.event||Tr).toLowerCase(),Mt=wt.event,F(Le.test(Tr)&&Le.test(Mt)),et[Tr]||(et[Tr]={action:Nr,actionInfo:wt}),ur[Mt]=Tr}function Ie(wt,Mt){t.register(wt,Mt)}function Ze(wt){var Mt=t.get(wt);if(Mt)return Mt.getDimensionsInfo?Mt.getDimensionsInfo():Mt.dimensions.slice()}function ct(wt,Mt){kt(Lr,wt,Mt,ee,"layout")}function gt(wt,Mt){kt(Lr,wt,Mt,re,"visual")}function kt(wt,Mt,Nr,Tr,yr){(B(Mt)||P(Mt))&&(Nr=Mt,Mt=Tr);var en=E.wrapStageHandler(Nr,yr);return en.__prio=Mt,en.__raw=Nr,wt.push(en),en}function xr(wt,Mt){qt[wt]=Mt}function Hr(wt){return r.extend(wt)}function on(wt){return c.extend(wt)}function Nt(wt){return s.extend(wt)}function ot(wt){return h.extend(wt)}function dt(wt){v.$override("createCanvas",wt)}function Yt(wt,Mt,Nr){O.registerMap(wt,Mt,Nr)}function Pt(wt){var Mt=O.retrieveMap(wt);return Mt&&Mt[0]&&{geoJson:Mt[0].geoJSON,specialAreas:Mt[0].specialAreas}}gt(se,x),Ft(e),vt(Q,l),xr("default",_),Ne({type:"highlight",event:"highlight",update:"highlight"},v.noop),Ne({type:"downplay",event:"downplay",update:"downplay"},v.noop),Bn("light",C),Bn("dark",I);var Et={};D.version=M,D.dependencies=z,D.PRIORITY=Ge,D.init=sr,D.connect=Qr,D.disConnect=Cn,D.disconnect=Fn,D.dispose=ti,D.getInstanceByDom=ki,D.getInstanceById=Dn,D.registerTheme=Bn,D.registerPreprocessor=Ft,D.registerProcessor=vt,D.registerPostUpdate=_e,D.registerAction=Ne,D.registerCoordinateSystem=Ie,D.getCoordinateSystemDimensions=Ze,D.registerLayout=ct,D.registerVisual=gt,D.registerLoading=xr,D.extendComponentModel=Hr,D.extendComponentView=on,D.extendSeriesModel=Nt,D.extendChartView=ot,D.setCanvasCreator=dt,D.registerMap=Yt,D.getMap=Pt,D.dataTool=Et;var Bt=i("txkQ");(function(){for(var wt in Bt)Bt.hasOwnProperty(wt)&&(D[wt]=Bt[wt])})()},Pw59:function(k,D,i){"use strict";var y=i("q1tI"),p=i.n(y),S=Object(y.createContext)({});D.a=S},Q7if:function(k,D,i){var y=i("JEkh"),p=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"}}}});k.exports=p},Q9mQ:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("UADf"),v=i.n(S)},"QB+1":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Ywus"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},QBsz:function(k,D){var i=typeof Float32Array=="undefined"?Array:Float32Array;function y(E,C){var I=new i(2);return E==null&&(E=0),C==null&&(C=0),I[0]=E,I[1]=C,I}function p(E,C){return E[0]=C[0],E[1]=C[1],E}function S(E){var C=new i(2);return C[0]=E[0],C[1]=E[1],C}function v(E,C,I){return E[0]=C,E[1]=I,E}function m(E,C,I){return E[0]=C[0]+I[0],E[1]=C[1]+I[1],E}function f(E,C,I,O){return E[0]=C[0]+I[0]*O,E[1]=C[1]+I[1]*O,E}function d(E,C,I){return E[0]=C[0]-I[0],E[1]=C[1]-I[1],E}function u(E){return Math.sqrt(n(E))}var o=u;function n(E){return E[0]*E[0]+E[1]*E[1]}var t=n;function a(E,C,I){return E[0]=C[0]*I[0],E[1]=C[1]*I[1],E}function e(E,C,I){return E[0]=C[0]/I[0],E[1]=C[1]/I[1],E}function l(E,C){return E[0]*C[0]+E[1]*C[1]}function r(E,C,I){return E[0]=C[0]*I,E[1]=C[1]*I,E}function s(E,C){var I=u(C);return I===0?(E[0]=0,E[1]=0):(E[0]=C[0]/I,E[1]=C[1]/I),E}function c(E,C){return Math.sqrt((E[0]-C[0])*(E[0]-C[0])+(E[1]-C[1])*(E[1]-C[1]))}var h=c;function g(E,C){return(E[0]-C[0])*(E[0]-C[0])+(E[1]-C[1])*(E[1]-C[1])}var A=g;function b(E,C){return E[0]=-C[0],E[1]=-C[1],E}function w(E,C,I,O){return E[0]=C[0]+O*(I[0]-C[0]),E[1]=C[1]+O*(I[1]-C[1]),E}function x(E,C,I){var O=C[0],F=C[1];return E[0]=I[0]*O+I[2]*F+I[4],E[1]=I[1]*O+I[3]*F+I[5],E}function T(E,C,I){return E[0]=Math.min(C[0],I[0]),E[1]=Math.min(C[1],I[1]),E}function _(E,C,I){return E[0]=Math.max(C[0],I[0]),E[1]=Math.max(C[1],I[1]),E}D.create=y,D.copy=p,D.clone=S,D.set=v,D.add=m,D.scaleAndAdd=f,D.sub=d,D.len=u,D.length=o,D.lenSquare=n,D.lengthSquare=t,D.mul=a,D.div=e,D.dot=l,D.scale=r,D.normalize=s,D.distance=c,D.dist=h,D.distanceSquare=g,D.distSquare=A,D.negate=b,D.lerp=w,D.applyTransform=x,D.min=T,D.max=_},"QO+J":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=S(i("NohK")),p=i("24YM");function S(m){return m&&m.__esModule?m:{default:m}}var v=function(f,d){var u=void 0,o=[],n=function(){getComputedStyle(f).position==="static"&&(f.style.position="relative");var s=document.createElement("object");return s.onload=function(){s.contentDocument.defaultView.addEventListener("resize",t),t()},s.style.display="block",s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.height="100%",s.style.width="100%",s.style.overflow="hidden",s.style.pointerEvents="none",s.style.zIndex="-1",s.style.opacity="0",s.setAttribute("class",p.SensorClassName),s.setAttribute("tabindex",p.SensorTabIndex),s.type="text/html",f.appendChild(s),s.data="about:blank",s},t=(0,y.default)(function(){o.forEach(function(r){r(f)})}),a=function(s){u||(u=n()),o.indexOf(s)===-1&&o.push(s)},e=function(){u&&u.parentNode&&(u.contentDocument&&u.contentDocument.defaultView.removeEventListener("resize",t),u.parentNode.removeChild(u),f.removeAttribute(p.SizeSensorId),u=void 0,o=[],d&&d())},l=function(s){var c=o.indexOf(s);c!==-1&&o.splice(c,1),o.length===0&&u&&e()};return{element:f,bind:a,destroy:e,unbind:l}};D.createSensor=v},"QQZ/":function(k,D,i){var y=i("Sq3C"),p=i("Z1HP"),S=i("Sxd8"),v=i("dt0z");function m(f,d,u){f=v(f),d=S(d);var o=d?p(f):0;return d&&o<d?y(d-o,u)+f:f}k.exports=m},QUw5:function(k,D,i){var y=i("OlYY"),p=y.extend({type:"dataZoom.select"});k.exports=p},QV2g:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){for(var v,m=[],f=0;f<256;f++){v=f;for(var d=0;d<8;d++)v=v&1?3988292384^v>>>1:v>>>1;m[f]=v}return m}var p=y();function S(v,m,f,d){var u=p,o=d+f;v^=-1;for(var n=d;n<o;n++)v=v>>>8^u[(v^m[n])&255];return v^-1}},QbM5:function(k,D,i){},Qe9p:function(k,D,i){var y=i("1RvN"),p={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 S(C){return C=Math.round(C),C<0?0:C>255?255:C}function v(C){return C=Math.round(C),C<0?0:C>360?360:C}function m(C){return C<0?0:C>1?1:C}function f(C){return C.length&&C.charAt(C.length-1)==="%"?S(parseFloat(C)/100*255):S(parseInt(C,10))}function d(C){return C.length&&C.charAt(C.length-1)==="%"?m(parseFloat(C)/100):m(parseFloat(C))}function u(C,I,O){return O<0?O+=1:O>1&&(O-=1),O*6<1?C+(I-C)*O*6:O*2<1?I:O*3<2?C+(I-C)*(2/3-O)*6:C}function o(C,I,O){return C+(I-C)*O}function n(C,I,O,F,R){return C[0]=I,C[1]=O,C[2]=F,C[3]=R,C}function t(C,I){return C[0]=I[0],C[1]=I[1],C[2]=I[2],C[3]=I[3],C}var a=new y(20),e=null;function l(C,I){e&&t(e,I),e=a.put(C,e||I.slice())}function r(C,I){if(!C)return;I=I||[];var O=a.get(C);if(O)return t(I,O);C=C+"";var F=C.replace(/ /g,"").toLowerCase();if(F in p)return t(I,p[F]),l(C,I),I;if(F.charAt(0)==="#"){if(F.length===4){var R=parseInt(F.substr(1),16);if(!(R>=0&&R<=4095)){n(I,0,0,0,1);return}return n(I,(R&3840)>>4|(R&3840)>>8,R&240|(R&240)>>4,R&15|(R&15)<<4,1),l(C,I),I}else if(F.length===7){var R=parseInt(F.substr(1),16);if(!(R>=0&&R<=16777215)){n(I,0,0,0,1);return}return n(I,(R&16711680)>>16,(R&65280)>>8,R&255,1),l(C,I),I}return}var B=F.indexOf("("),P=F.indexOf(")");if(B!==-1&&P+1===F.length){var X=F.substr(0,B),M=F.substr(B+1,P-(B+1)).split(","),z=1;switch(X){case"rgba":if(M.length!==4){n(I,0,0,0,1);return}z=d(M.pop());case"rgb":if(M.length!==3){n(I,0,0,0,1);return}return n(I,f(M[0]),f(M[1]),f(M[2]),z),l(C,I),I;case"hsla":if(M.length!==4){n(I,0,0,0,1);return}return M[3]=d(M[3]),s(M,I),l(C,I),I;case"hsl":if(M.length!==3){n(I,0,0,0,1);return}return s(M,I),l(C,I),I;default:return}}n(I,0,0,0,1);return}function s(C,I){var O=(parseFloat(C[0])%360+360)%360/360,F=d(C[1]),R=d(C[2]),B=R<=.5?R*(F+1):R+F-R*F,P=R*2-B;return I=I||[],n(I,S(u(P,B,O+1/3)*255),S(u(P,B,O)*255),S(u(P,B,O-1/3)*255),1),C.length===4&&(I[3]=C[3]),I}function c(C){if(!C)return;var I=C[0]/255,O=C[1]/255,F=C[2]/255,R=Math.min(I,O,F),B=Math.max(I,O,F),P=B-R,X=(B+R)/2,M,z;if(P===0)M=0,z=0;else{X<.5?z=P/(B+R):z=P/(2-B-R);var W=((B-I)/6+P/2)/P,H=((B-O)/6+P/2)/P,V=((B-F)/6+P/2)/P;I===B?M=V-H:O===B?M=1/3+W-V:F===B&&(M=2/3+H-W),M<0&&(M+=1),M>1&&(M-=1)}var Q=[M*360,z,X];return C[3]!=null&&Q.push(C[3]),Q}function h(C,I){var O=r(C);if(O){for(var F=0;F<3;F++)I<0?O[F]=O[F]*(1-I)|0:O[F]=(255-O[F])*I+O[F]|0,O[F]>255?O[F]=255:C[F]<0&&(O[F]=0);return E(O,O.length===4?"rgba":"rgb")}}function g(C){var I=r(C);if(I)return((1<<24)+(I[0]<<16)+(I[1]<<8)+ +I[2]).toString(16).slice(1)}function A(C,I,O){if(!(I&&I.length)||!(C>=0&&C<=1))return;O=O||[];var F=C*(I.length-1),R=Math.floor(F),B=Math.ceil(F),P=I[R],X=I[B],M=F-R;return O[0]=S(o(P[0],X[0],M)),O[1]=S(o(P[1],X[1],M)),O[2]=S(o(P[2],X[2],M)),O[3]=m(o(P[3],X[3],M)),O}var b=A;function w(C,I,O){if(!(I&&I.length)||!(C>=0&&C<=1))return;var F=C*(I.length-1),R=Math.floor(F),B=Math.ceil(F),P=r(I[R]),X=r(I[B]),M=F-R,z=E([S(o(P[0],X[0],M)),S(o(P[1],X[1],M)),S(o(P[2],X[2],M)),m(o(P[3],X[3],M))],"rgba");return O?{color:z,leftIndex:R,rightIndex:B,value:F}:z}var x=w;function T(C,I,O,F){if(C=r(C),C)return C=c(C),I!=null&&(C[0]=v(I)),O!=null&&(C[1]=d(O)),F!=null&&(C[2]=d(F)),E(s(C),"rgba")}function _(C,I){if(C=r(C),C&&I!=null)return C[3]=m(I),E(C,"rgba")}function E(C,I){if(!C||!C.length)return;var O=C[0]+","+C[1]+","+C[2];return(I==="rgba"||I==="hsva"||I==="hsla")&&(O+=","+C[3]),I+"("+O+")"}D.parse=r,D.lift=h,D.toHex=g,D.fastLerp=A,D.fastMapToColor=b,D.lerp=w,D.mapToColor=x,D.modifyHSL=T,D.modifyAlpha=_,D.stringify=E},Qi1f:function(k,D,i){"use strict";i.d(D,"g",function(){return E}),i.d(D,"c",function(){return C}),i.d(D,"a",function(){return O}),i.d(D,"b",function(){return F}),i.d(D,"d",function(){return R}),i.d(D,"e",function(){return B}),i.d(D,"f",function(){return X});var y=i("VTBJ"),p=i("U8pU"),S=i("AJpP"),v=i("q1tI"),m=i.n(v),f=i("Kwbf"),d=i("MNnm"),u=i("l4aY"),o="data-rc-order",n="data-rc-priority",t="rc-util-key",a=new Map;function e(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=M.mark;return z?z.startsWith("data-")?z:"data-".concat(z):t}function l(M){if(M.attachTo)return M.attachTo;var z=document.querySelector("head");return z||document.body}function r(M){return M==="queue"?"prependQueue":M?"prepend":"append"}function s(M){return Array.from((a.get(M)||M).children).filter(function(z){return z.tagName==="STYLE"})}function c(M){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(d.a)())return null;var W=z.csp,H=z.prepend,V=z.priority,Q=V===void 0?0:V,G=r(H),ee=G==="prependQueue",q=document.createElement("style");q.setAttribute(o,G),ee&&Q&&q.setAttribute(n,"".concat(Q)),W!=null&&W.nonce&&(q.nonce=W==null?void 0:W.nonce),q.innerHTML=M;var se=l(z),re=se.firstChild;if(H){if(ee){var Ae=s(se).filter(function(Te){if(!["prepend","prependQueue"].includes(Te.getAttribute(o)))return!1;var Re=Number(Te.getAttribute(n)||0);return Q>=Re});if(Ae.length)return se.insertBefore(q,Ae[Ae.length-1].nextSibling),q}se.insertBefore(q,re)}else se.appendChild(q);return q}function h(M){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=l(z);return s(W).find(function(H){return H.getAttribute(e(z))===M})}function g(M){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=h(M,z);if(W){var H=l(z);H.removeChild(W)}}function A(M,z){var W=a.get(M);if(!W||!Object(u.a)(document,W)){var H=c("",z),V=H.parentNode;a.set(M,V),M.removeChild(H)}}function b(){a.clear()}function w(M,z){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=l(W);A(H,W);var V=h(z,W);if(V){var Q,G;if((Q=W.csp)!==null&&Q!==void 0&&Q.nonce&&V.nonce!==((G=W.csp)===null||G===void 0?void 0:G.nonce)){var ee;V.nonce=(ee=W.csp)===null||ee===void 0?void 0:ee.nonce}return V.innerHTML!==M&&(V.innerHTML=M),V}var q=c(M,W);return q.setAttribute(e(W),z),q}var x=i("Pw59"),T=i("u6S6"),_=i.n(T);function E(M,z){Object(f.a)(M,"[@ant-design/icons] ".concat(z))}function C(M){return Object(p.a)(M)==="object"&&typeof M.name=="string"&&typeof M.theme=="string"&&(Object(p.a)(M.icon)==="object"||typeof M.icon=="function")}function I(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(M).reduce(function(z,W){var H=M[W];switch(W){case"class":z.className=H,delete z.class;break;default:delete z[W],z[_()(W)]=H}return z},{})}function O(M,z,W){return W?m.a.createElement(M.tag,Object(y.a)(Object(y.a)({key:z},I(M.attrs)),W),(M.children||[]).map(function(H,V){return O(H,"".concat(z,"-").concat(M.tag,"-").concat(V))})):m.a.createElement(M.tag,Object(y.a)({key:z},I(M.attrs)),(M.children||[]).map(function(H,V){return O(H,"".concat(z,"-").concat(M.tag,"-").concat(V))}))}function F(M){return Object(S.generate)(M)[0]}function R(M){return M?Array.isArray(M)?M:[M]:[]}var B={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 z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,W=Object(v.useContext)(x.a),H=W.csp;Object(v.useEffect)(function(){w(z,"@ant-design-icons",{prepend:!0,csp:H})},[])}},QkVE:function(k,D,i){var y=i("EpBk");function p(S,v){var m=S.__data__;return y(v)?m[typeof v=="string"?"string":"hash"]:m.map}k.exports=p},QoRX:function(k,D){function i(y,p){for(var S=-1,v=y==null?0:y.length;++S<v;)if(p(y[S],S,y))return!0;return!1}k.exports=i},QqLw:function(k,D,i){var y=i("tadb"),p=i("ebwN"),S=i("HOxn"),v=i("yGk4"),m=i("Of+w"),f=i("NykK"),d=i("3Fdi"),u="[object Map]",o="[object Object]",n="[object Promise]",t="[object Set]",a="[object WeakMap]",e="[object DataView]",l=d(y),r=d(p),s=d(S),c=d(v),h=d(m),g=f;(y&&g(new y(new ArrayBuffer(1)))!=e||p&&g(new p)!=u||S&&g(S.resolve())!=n||v&&g(new v)!=t||m&&g(new m)!=a)&&(g=function(A){var b=f(A),w=b==o?A.constructor:void 0,x=w?d(w):"";if(x)switch(x){case l:return e;case r:return u;case s:return n;case c:return t;case h:return a}return b}),k.exports=g},Qs3X:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("X+im"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},Qs9O:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},QuXc:function(k,D){var i=function(S){this.colorStops=S||[]};i.prototype={constructor:i,addColorStop:function(S,v){this.colorStops.push({offset:S,color:v})}};var y=i;k.exports=y},Qvb6:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("ItGF"),v=i("B9fm"),m=i("gvm7"),f=i("7aKB"),d=i("OELB"),u=i("IwbS"),o=i("Ez2D"),n=i("+TT/"),t=i("Qxkt"),a=i("F9bG"),e=i("aX7z"),l=i("/y7N"),r=i("4NO4"),s=r.getTooltipRenderMode,c=p.bind,h=p.each,g=d.parsePercent,A=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(I,O){if(S.node)return;var F=I.getComponent("tooltip"),R=F.get("renderMode");this._renderMode=s(R);var B;this._renderMode==="html"?(B=new v(O.getDom(),O,{appendToBody:F.get("appendToBody",!0)}),this._newLine="<br/>"):(B=new m(O),this._newLine=`
`),this._tooltipContent=B},render:function(I,O,F){if(S.node)return;this.group.removeAll(),this._tooltipModel=I,this._ecModel=O,this._api=F,this._lastDataByCoordSys=null,this._alwaysShowContent=I.get("alwaysShowContent");var R=this._tooltipContent;R.update(),R.setEnterable(I.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var I=this._tooltipModel,O=I.get("triggerOn");a.register("itemTooltip",this._api,c(function(F,R,B){O!=="none"&&(O.indexOf(F)>=0?this._tryShow(R,B):F==="leave"&&this._hide(B))},this))},_keepShow:function(){var I=this._tooltipModel,O=this._ecModel,F=this._api;if(this._lastX!=null&&this._lastY!=null&&I.get("triggerOn")!=="none"){var R=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!F.isDisposed()&&R.manuallyShowTip(I,O,F,{x:R._lastX,y:R._lastY})})}},manuallyShowTip:function(I,O,F,R){if(R.from===this.uid||S.node)return;var B=x(R,F);this._ticket="";var P=R.dataByCoordSys;if(R.tooltip&&R.x!=null&&R.y!=null){var X=A;X.position=[R.x,R.y],X.update(),X.tooltip=R.tooltip,this._tryShow({offsetX:R.x,offsetY:R.y,target:X},B)}else if(P)this._tryShow({offsetX:R.x,offsetY:R.y,position:R.position,dataByCoordSys:R.dataByCoordSys,tooltipOption:R.tooltipOption},B);else if(R.seriesIndex!=null){if(this._manuallyAxisShowTip(I,O,F,R))return;var M=o(R,O),z=M.point[0],W=M.point[1];z!=null&&W!=null&&this._tryShow({offsetX:z,offsetY:W,position:R.position,target:M.el},B)}else R.x!=null&&R.y!=null&&(F.dispatchAction({type:"updateAxisPointer",x:R.x,y:R.y}),this._tryShow({offsetX:R.x,offsetY:R.y,position:R.position,target:F.getZr().findHover(R.x,R.y).target},B))},manuallyHideTip:function(I,O,F,R){var B=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&B.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,R.from!==this.uid&&this._hide(x(R,F))},_manuallyAxisShowTip:function(I,O,F,R){var B=R.seriesIndex,P=R.dataIndex,X=O.getComponent("axisPointer").coordSysAxesInfo;if(B==null||P==null||X==null)return;var M=O.getSeriesByIndex(B);if(!M)return;var z=M.getData(),I=w([z.getItemModel(P),M,(M.coordinateSystem||{}).model,I]);return I.get("trigger")!=="axis"?void 0:(F.dispatchAction({type:"updateAxisPointer",seriesIndex:B,dataIndex:P,position:R.position}),!0)},_tryShow:function(I,O){var F=I.target,R=this._tooltipModel;if(!R)return;this._lastX=I.offsetX,this._lastY=I.offsetY;var B=I.dataByCoordSys;B&&B.length?this._showAxisTooltip(B,I):F&&F.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(I,F,O)):F&&F.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(I,F,O)):(this._lastDataByCoordSys=null,this._hide(O))},_showOrMove:function(I,O){var F=I.get("showDelay");O=p.bind(O,this),clearTimeout(this._showTimout),F>0?this._showTimout=setTimeout(O,F):O()},_showAxisTooltip:function(I,O){var F=this._ecModel,R=this._tooltipModel,B=[O.offsetX,O.offsetY],P=[],X=[],M=w([O.tooltipOption,R]),z=this._renderMode,W=this._newLine,H={};h(I,function(Q){h(Q.dataByAxis,function(G){var ee=F.getComponent(G.axisDim+"Axis",G.axisIndex),q=G.value,se=[];if(!ee||q==null)return;var re=l.getValueLabel(q,ee.axis,F,G.seriesDataIndices,G.valueLabelOpt);p.each(G.seriesDataIndices,function(Te){var Re=F.getSeriesByIndex(Te.seriesIndex),Ge=Te.dataIndexInside,Ue=Re&&Re.getDataParams(Ge);if(Ue.axisDim=G.axisDim,Ue.axisIndex=G.axisIndex,Ue.axisType=G.axisType,Ue.axisId=G.axisId,Ue.axisValue=e.getAxisRawValue(ee.axis,q),Ue.axisValueLabel=re,Ue){X.push(Ue);var nt=Re.formatTooltip(Ge,!0,null,z),Le;if(p.isObject(nt)){Le=nt.html;var le=nt.markers;p.merge(H,le)}else Le=nt;se.push(Le)}});var Ae=re;z!=="html"?P.push(se.join(W)):P.push((Ae?f.encodeHTML(Ae)+W:"")+se.join(W))})},this),P.reverse(),P=P.join(this._newLine+this._newLine);var V=O.position;this._showOrMove(M,function(){this._updateContentNotChangedOnAxis(I)?this._updatePosition(M,V,B[0],B[1],this._tooltipContent,X):this._showTooltipContent(M,P,X,Math.random(),B[0],B[1],V,void 0,H)})},_showSeriesItemTooltip:function(I,O,F){var R=this._ecModel,B=O.seriesIndex,P=R.getSeriesByIndex(B),X=O.dataModel||P,M=O.dataIndex,z=O.dataType,W=X.getData(z),H=w([W.getItemModel(M),X,P&&(P.coordinateSystem||{}).model,this._tooltipModel]),V=H.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(M,z),G=X.formatTooltip(M,!1,z,this._renderMode),ee,q;p.isObject(G)?(ee=G.html,q=G.markers):(ee=G,q=null);var se="item_"+X.name+"_"+M;this._showOrMove(H,function(){this._showTooltipContent(H,ee,Q,se,I.offsetX,I.offsetY,I.position,I.target,q)}),F({type:"showTip",dataIndexInside:M,dataIndex:W.getRawIndex(M),seriesIndex:B,from:this.uid})},_showComponentItemTooltip:function(I,O,F){var R=O.tooltip;if(typeof R=="string"){var B=R;R={content:B,formatter:B}}var P=new t(R,this._tooltipModel,this._ecModel),X=P.get("content"),M=Math.random();this._showOrMove(P,function(){this._showTooltipContent(P,X,P.get("formatterParams")||{},M,I.offsetX,I.offsetY,I.position,O)}),F({type:"showTip",from:this.uid})},_showTooltipContent:function(I,O,F,R,B,P,X,M,z){if(this._ticket="",!I.get("showContent")||!I.get("show"))return;var W=this._tooltipContent,H=I.get("formatter");X=X||I.get("position");var V=O;if(H&&typeof H=="string")V=f.formatTpl(H,F,!0);else if(typeof H=="function"){var Q=c(function(G,ee){G===this._ticket&&(W.setContent(ee,z,I),this._updatePosition(I,X,B,P,W,F,M))},this);this._ticket=R,V=H(F,R,Q)}W.setContent(V,z,I),W.show(I),this._updatePosition(I,X,B,P,W,F,M)},_updatePosition:function(I,O,F,R,B,P,X){var M=this._api.getWidth(),z=this._api.getHeight();O=O||I.get("position");var W=B.getSize(),H=I.get("align"),V=I.get("verticalAlign"),Q=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof O=="function"&&(O=O([F,R],P,B.el,Q,{viewSize:[M,z],contentSize:W.slice()})),p.isArray(O))F=g(O[0],M),R=g(O[1],z);else if(p.isObject(O)){O.width=W[0],O.height=W[1];var G=n.getLayoutRect(O,{width:M,height:z});F=G.x,R=G.y,H=null,V=null}else if(typeof O=="string"&&X){var ee=E(O,Q,W);F=ee[0],R=ee[1]}else{var ee=T(F,R,B,M,z,H?null:20,V?null:20);F=ee[0],R=ee[1]}if(H&&(F-=C(H)?W[0]/2:H==="right"?W[0]:0),V&&(R-=C(V)?W[1]/2:V==="bottom"?W[1]:0),I.get("confine")){var ee=_(F,R,B,M,z);F=ee[0],R=ee[1]}B.moveTo(F,R)},_updateContentNotChangedOnAxis:function(I){var O=this._lastDataByCoordSys,F=!!O&&O.length===I.length;return F&&h(O,function(R,B){var P=R.dataByAxis||{},X=I[B]||{},M=X.dataByAxis||[];F&=P.length===M.length,F&&h(P,function(z,W){var H=M[W]||{},V=z.seriesDataIndices||[],Q=H.seriesDataIndices||[];F&=z.value===H.value&&z.axisType===H.axisType&&z.axisId===H.axisId&&V.length===Q.length,F&&h(V,function(G,ee){var q=Q[ee];F&=G.seriesIndex===q.seriesIndex&&G.dataIndex===q.dataIndex})})}),this._lastDataByCoordSys=I,!!F},_hide:function(I){this._lastDataByCoordSys=null,I({type:"hideTip",from:this.uid})},dispose:function(I,O){if(S.node)return;this._tooltipContent.dispose(),a.unregister("itemTooltip",O)}});function w(I){for(var O=I.pop();I.length;){var F=I.pop();F&&(t.isInstance(F)&&(F=F.get("tooltip",!0)),typeof F=="string"&&(F={formatter:F}),O=new t(F,O,O.ecModel))}return O}function x(I,O){return I.dispatchAction||p.bind(O.dispatchAction,O)}function T(I,O,F,R,B,P,X){var M=F.getOuterSize(),z=M.width,W=M.height;return P!=null&&(I+z+P>R?I-=z+P:I+=P),X!=null&&(O+W+X>B?O-=W+X:O+=X),[I,O]}function _(I,O,F,R,B){var P=F.getOuterSize(),X=P.width,M=P.height;return I=Math.min(I+X,R)-X,O=Math.min(O+M,B)-M,I=Math.max(I,0),O=Math.max(O,0),[I,O]}function E(I,O,F){var R=F[0],B=F[1],P=5,X=0,M=0,z=O.width,W=O.height;switch(I){case"inside":X=O.x+z/2-R/2,M=O.y+W/2-B/2;break;case"top":X=O.x+z/2-R/2,M=O.y-B-P;break;case"bottom":X=O.x+z/2-R/2,M=O.y+W+P;break;case"left":X=O.x-R-P,M=O.y+W/2-B/2;break;case"right":X=O.x+z+P,M=O.y+W/2-B/2}return[X,M]}function C(I){return I==="center"||I==="middle"}k.exports=b},Qxkt:function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=i("4NO4"),v=S.makeInner,m=i("Yl7c"),f=m.enableClassExtend,d=m.enableClassCheck,u=i("OQFs"),o=i("m9t5"),n=i("/iHx"),t=i("VR9l"),a=y.mixin,e=v();function l(h,g,A){this.parentModel=g,this.ecModel=A,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:r(this.option,this.parsePath(h),!g&&s(this,h))},getShallow:function(h,g){var A=this.option,b=A==null?A:A[h],w=!g&&s(this,h);return b==null&&w&&(b=w.getShallow(h)),b},getModel:function(h,g){var A=h==null?this.option:r(this.option,h=this.parsePath(h)),b;return g=g||(b=s(this,h))&&b.getModel(h),new l(A,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(!p.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function r(h,g,A){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&&A&&(h=A.get(g)),h}function s(h,g){var A=e(h).getParent;return A?A.call(h,g):h.parentModel}f(l),d(l),a(l,u),a(l,o),a(l,n),a(l,t);var c=l;k.exports=c},QyFq:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},QzjZ:function(k,D,i){var y=i("S/Yl"),p=i("IDmD");function S(v,m){var f=[];return v.eachComponent("singleAxis",function(d,u){var o=new y(d,v,m);o.name="single_"+u,o.resize(d,m),d.coordinateSystem=o,f.push(o)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="singleAxis"){var u=v.queryComponents({mainType:"singleAxis",index:d.get("singleAxisIndex"),id:d.get("singleAxisId")})[0];d.coordinateSystem=u&&u.coordinateSystem}}),f}p.register("single",{create:S,dimensions:y.prototype.dimensions})},R4Th:function(k,D,i){var y=i("ProS"),p=i("9wZj"),S=i("yO87"),v=i("Fofx"),m=i("h8O9"),f=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new p(S)},render:function(d,u,o){var n=d.getData(),t=this._symbolDraw;t.updateData(n),this.group.add(t.group)},updateTransform:function(d,u,o){var n=d.getData();this.group.dirty();var t=m().reset(d);t.progress&&t.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(d){var u=d.coordinateSystem;u&&u.getRoamTransform&&(this.group.transform=v.clone(u.getRoamTransform()),this.group.decomposeTransform())},remove:function(d,u){this._symbolDraw&&this._symbolDraw.remove(u)},dispose:function(){}});k.exports=f},R9oj:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("pwpV"),v=i.n(S)},RBEP:function(k,D,i){for(var y=i("ProS"),p=i("VaxA"),S=function(){},v=["treemapZoomToNode","treemapRender","treemapMove"],m=0;m<v.length;m++)y.registerAction({type:v[m],update:"updateView"},S);y.registerAction({type:"treemapRootToNode",update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"treemap",query:f},u);function u(o,n){var t=["treemapZoomToNode","treemapRootToNode"],a=p.retrieveTargetInfo(f,t,o);if(a){var e=o.getViewRoot();e&&(f.direction=p.aboveViewRoot(e,a.node)?"rollUp":"drillDown"),o.resetViewRoot(a.node)}}})},RCxd:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ExclamationCircleOutlined";var d=D.a=p.forwardRef(f)},RDYZ:function(k,D,i){var y=i("dMvE");function p(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}p.prototype={constructor:p,step:function(m,f){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=f;return}var d=(m-this._startTime-this._pausedTime)/this._life;if(d<0)return;d=Math.min(d,1);var u=this.easing,o=typeof u=="string"?y[u]:u,n=typeof o=="function"?o(d):d;return this.fire("frame",n),d===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var f=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-f+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,f){m="on"+m,this[m]&&this[m](this._target,f)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var S=p;k.exports=S},RELg:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"oldIE-userDataStorage",write:d,read:u,each:o,remove:n,clearAll:t};var S="storejs",v=p.document,m=l(),f=(p.navigator?p.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function d(r,s){if(f)return;var c=e(r);m(function(h){h.setAttribute(c,s),h.save(S)})}function u(r){if(f)return;var s=e(r),c=null;return m(function(h){c=h.getAttribute(s)}),c}function o(r){m(function(s){for(var c=s.XMLDocument.documentElement.attributes,h=c.length-1;h>=0;h--){var g=c[h];r(s.getAttribute(g.name),g.name)}})}function n(r){var s=e(r);m(function(c){c.removeAttribute(s),c.save(S)})}function t(){m(function(r){var s=r.XMLDocument.documentElement.attributes;r.load(S);for(var c=s.length-1;c>=0;c--)r.removeAttribute(s[c].name);r.save(S)})}var a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(a,"___")}function l(){if(!v||!v.documentElement||!v.documentElement.addBehavior)return null;var r="script",s,c,h;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),c.close(),s=c.w.frames[0].document,h=s.createElement("div")}catch(g){h=v.createElement("div"),s=v.body}return function(g){var A=[].slice.call(arguments,0);A.unshift(h),s.appendChild(h),h.addBehavior("#default#userData"),h.load(S),g.apply(this,A),s.removeChild(h);return}}},RPvy:function(k,D,i){var y=i("ProS"),p=i("VaxA"),S="sunburstRootToNode";y.registerAction({type:S,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(o,n){var t=p.retrieveTargetInfo(f,[S],o);if(t){var a=o.getViewRoot();a&&(f.direction=p.aboveViewRoot(a,t.node)?"rollUp":"drillDown"),o.resetViewRoot(t.node)}}});var v="sunburstHighlight";y.registerAction({type:v,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(o,n){var t=p.retrieveTargetInfo(f,[v],o);t&&(f.highlight=t.node)}});var m="sunburstUnhighlight";y.registerAction({type:m,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(o,n){f.unhighlight=!0}})},RSch:function(k,D,i){var y=i("IwbS"),p=i("bYtY");function S(f,d,u){y.Group.call(this),this._createPolyline(f,d,u)}var v=S.prototype;v._createPolyline=function(f,d,u){var o=f.getItemLayout(d),n=new y.Polyline({shape:{points:o}});this.add(n),this._updateCommonStl(f,d,u)},v.updateData=function(f,d,u){var o=f.hostModel,n=this.childAt(0),t={shape:{points:f.getItemLayout(d)}};y.updateProps(n,t,o,d),this._updateCommonStl(f,d,u)},v._updateCommonStl=function(f,d,u){var o=this.childAt(0),n=f.getItemModel(d),t=f.getItemVisual(d,"color"),a=u&&u.lineStyle,e=u&&u.hoverLineStyle;(!u||f.hasItemOption)&&(a=n.getModel("lineStyle").getLineStyle(),e=n.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:t},a)),o.hoverStyle=e,y.setHoverStyle(this)},v.updateLayout=function(f,d){var u=this.childAt(0);u.setShape("points",f.getItemLayout(d))},p.inherits(S,y.Group);var m=S;k.exports=m},RXMa:function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(v,m){var f=m.cx,d=m.cy,u=Math.PI*2;v.moveTo(f+m.r,d),v.arc(f,d,m.r,0,u,!1),v.moveTo(f+m.r0,d),v.arc(f,d,m.r0,0,u,!0)}});k.exports=p},RZPm:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("JgUQ")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FileOutlined";var n=v.forwardRef(o);D.default=n},RlCK:function(k,D,i){var y=i("ProS"),p=i("bYtY");function S(v,m,f){var d={},u=v==="toggleSelected",o;return f.eachComponent("legend",function(n){u&&o!=null?n[o?"select":"unSelect"](m.name):v==="allSelect"||v==="inverseSelect"?n[v]():(n[v](m.name),o=n.isSelected(m.name));var t=n.getData();p.each(t,function(a){var e=a.get("name");if(e===`
`||e==="")return;var l=n.isSelected(e);d.hasOwnProperty(e)?d[e]=d[e]&&l:d[e]=l})}),v==="allSelect"||v==="inverseSelect"?{selected:d}:{name:m.name,selected:d}}y.registerAction("legendToggleSelect","legendselectchanged",p.curry(S,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",p.curry(S,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",p.curry(S,"inverseSelect")),y.registerAction("legendSelect","legendselected",p.curry(S,"select")),y.registerAction("legendUnSelect","legendunselected",p.curry(S,"unSelect"))},RotF:function(k,D,i){k.exports=i("LSTS")},Rx6q:function(k,D){function i(y){var p=y.getRect(),S=y.getRangeInfo();return{coordSys:{type:"calendar",x:p.x,y:p.y,width:p.width,height:p.height,cellWidth:y.getCellWidth(),cellHeight:y.getCellHeight(),rangeInfo:{start:S.start,end:S.end,weeks:S.weeks,dayCount:S.allDay}},api:{coord:function(v,m){return y.dataToPoint(v,m)}}}}k.exports=i},"S/Yl":function(k,D,i){var y=i("Zvw2"),p=i("aX7z"),S=i("+TT/"),v=S.getLayoutRect,m=i("bYtY"),f=m.each;function d(o,n,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(o,n,t),this.model=o}d.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:d,_init:function(o,n,t){var a=this.dimension,e=new y(a,p.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),l=e.type==="category";e.onBand=l&&o.get("boundaryGap"),e.inverse=o.get("inverse"),e.orient=o.get("orient"),o.axis=e,e.model=o,e.coordinateSystem=this,this._axis=e},update:function(o,n){o.eachSeries(function(t){if(t.coordinateSystem===this){var a=t.getData();f(a.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(a,e)},this),p.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(o,n){this._rect=v({left:o.get("left"),top:o.get("top"),right:o.get("right"),bottom:o.get("bottom"),width:o.get("width"),height:o.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var o=this._rect,n=this._axis,t=n.isHorizontal(),a=t?[0,o.width]:[0,o.height],e=n.reverse?1:0;n.setExtent(a[e],a[1-e]),this._updateAxisTransform(n,t?o.x:o.y)},_updateAxisTransform:function(o,n){var t=o.getExtent(),a=t[0]+t[1],e=o.isHorizontal();o.toGlobalCoord=e?function(l){return l+n}:function(l){return a-l+n},o.toLocalCoord=e?function(l){return l-n}:function(l){return a-l+n}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(o){var n=this.getRect(),t=this.getAxis(),a=t.orient;return a==="horizontal"?t.contain(t.toLocalCoord(o[0]))&&o[1]>=n.y&&o[1]<=n.y+n.height:t.contain(t.toLocalCoord(o[1]))&&o[0]>=n.y&&o[0]<=n.y+n.height},pointToData:function(o){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(o[n.orient==="horizontal"?0:1]))]},dataToPoint:function(o){var n=this.getAxis(),t=this.getRect(),a=[],e=n.orient==="horizontal"?0:1;return o instanceof Array&&(o=o[0]),a[e]=n.toGlobalCoord(n.dataToCoord(+o)),a[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,a}};var u=d;k.exports=u},S6kV:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.OFB=function(){var p=y.lib.BlockCipherMode.extend(),S=p.Encryptor=p.extend({processBlock:function(m,f){var d=this._cipher,u=d.blockSize,o=this._iv,n=this._keystream;o&&(n=this._keystream=o.slice(0),this._iv=void 0),d.encryptBlock(n,0);for(var t=0;t<u;t++)m[f+t]^=n[t]}});return p.Decryptor=S,p}(),y.mode.OFB})},"SA+Z":function(k,D,i){var y=i("wTVA"),p=i("EbDI"),S=i("ZhPi"),v=i("wkBT");function m(f){return y(f)||p(f)||S(f)||v()}k.exports=m,k.exports.__esModule=!0,k.exports.default=k.exports},"SA4+":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("IwbS"),m=i("zYTA"),f=i("bYtY");function d(t,a,e){var l=t[1]-t[0];a=f.map(a,function(c){return{interval:[(c.interval[0]-t[0])/l,(c.interval[1]-t[0])/l]}});var r=a.length,s=0;return function(c){for(var h=s;h<r;h++){var g=a[h].interval;if(g[0]<=c&&c<=g[1]){s=h;break}}if(h===r)for(var h=s-1;h>=0;h--){var g=a[h].interval;if(g[0]<=c&&c<=g[1]){s=h;break}}return h>=0&&h<r&&e[h]}}function u(t,a){var e=t[1]-t[0];return a=[(a[0]-t[0])/e,(a[1]-t[0])/e],function(l){return l>=a[0]&&l<=a[1]}}function o(t){var a=t.dimensions;return a[0]==="lng"&&a[1]==="lat"}var n=S.extendChartView({type:"heatmap",render:function(t,a,e){var l;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(c){c===t&&(l=s)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;r.type==="cartesian2d"||r.type==="calendar"?this._renderOnCartesianAndCalendar(t,e,0,t.getData().count()):o(r)&&this._renderOnGeo(r,t,l,e)},incrementalPrepareRender:function(t,a,e){this.group.removeAll()},incrementalRender:function(t,a,e,l){var r=a.coordinateSystem;r&&this._renderOnCartesianAndCalendar(a,l,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,a,e,l,r){var s=t.coordinateSystem,c,h;if(s.type==="cartesian2d"){var g=s.getAxis("x"),A=s.getAxis("y");c=g.getBandWidth(),h=A.getBandWidth()}for(var b=this.group,w=t.getData(),x="itemStyle",T="emphasis.itemStyle",_="label",E="emphasis.label",C=t.getModel(x).getItemStyle(["color"]),I=t.getModel(T).getItemStyle(),O=t.getModel(_),F=t.getModel(E),R=s.type,B=R==="cartesian2d"?[w.mapDimension("x"),w.mapDimension("y"),w.mapDimension("value")]:[w.mapDimension("time"),w.mapDimension("value")],P=e;P<l;P++){var X;if(R==="cartesian2d"){if(isNaN(w.get(B[2],P)))continue;var M=s.dataToPoint([w.get(B[0],P),w.get(B[1],P)]);X=new v.Rect({shape:{x:Math.floor(Math.round(M[0])-c/2),y:Math.floor(Math.round(M[1])-h/2),width:Math.ceil(c),height:Math.ceil(h)},style:{fill:w.getItemVisual(P,"color"),opacity:w.getItemVisual(P,"opacity")}})}else{if(isNaN(w.get(B[1],P)))continue;X=new v.Rect({z2:1,shape:s.dataToRect([w.get(B[0],P)]).contentShape,style:{fill:w.getItemVisual(P,"color"),opacity:w.getItemVisual(P,"opacity")}})}var z=w.getItemModel(P);w.hasItemOption&&(C=z.getModel(x).getItemStyle(["color"]),I=z.getModel(T).getItemStyle(),O=z.getModel(_),F=z.getModel(E));var W=t.getRawValue(P),H="-";W&&W[2]!=null&&(H=W[2]),v.setLabelStyle(C,I,O,F,{labelFetcher:t,labelDataIndex:P,defaultText:H,isRectText:!0}),X.setStyle(C),v.setHoverStyle(X,w.hasItemOption?I:f.extend({},I)),X.incremental=r,r&&(X.useHoverLayer=!0),b.add(X),w.setItemGraphicEl(P,X)}},_renderOnGeo:function(t,a,e,l){var r=e.targetVisuals.inRange,s=e.targetVisuals.outOfRange,c=a.getData(),h=this._hmLayer||this._hmLayer||new m;h.blurSize=a.get("blurSize"),h.pointSize=a.get("pointSize"),h.minOpacity=a.get("minOpacity"),h.maxOpacity=a.get("maxOpacity");var g=t.getViewRect().clone(),A=t.getRoamTransform();g.applyTransform(A);var b=Math.max(g.x,0),w=Math.max(g.y,0),x=Math.min(g.width+g.x,l.getWidth()),T=Math.min(g.height+g.y,l.getHeight()),_=x-b,E=T-w,C=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],I=c.mapArray(C,function(B,P,X){var M=t.dataToPoint([B,P]);return M[0]-=b,M[1]-=w,M.push(X),M}),O=e.getExtent(),F=e.type==="visualMap.continuous"?u(O,e.option.range):d(O,e.getPieceList(),e.option.selected);h.update(I,_,E,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},F);var R=new v.Image({style:{width:_,height:E,x:b,y:w,image:h.canvas},silent:!0});this.group.add(R)},dispose:function(){}});k.exports=n},SA8n:function(k,D,i){var y=i("Sj9i"),p=i("QBsz"),S=i("U/Mo"),v=S.getSymbolSize,m=[],f=[],d=[],u=y.quadraticAt,o=p.distSquare,n=Math.abs;function t(e,l,r){for(var s=e[0],c=e[1],h=e[2],g=Infinity,A,b=r*r,w=.1,x=.1;x<=.9;x+=.1){m[0]=u(s[0],c[0],h[0],x),m[1]=u(s[1],c[1],h[1],x);var T=n(o(m,l)-b);T<g&&(g=T,A=x)}for(var _=0;_<32;_++){var E=A+w;f[0]=u(s[0],c[0],h[0],A),f[1]=u(s[1],c[1],h[1],A),d[0]=u(s[0],c[0],h[0],E),d[1]=u(s[1],c[1],h[1],E);var T=o(f,l)-b;if(n(T)<.01)break;var C=o(d,l)-b;w/=2,T<0?C>=0?A=A+w:A=A-w:C>=0?A=A-w:A=A+w}return A}function a(e,l){var r=[],s=y.quadraticSubdivide,c=[[],[],[]],h=[[],[]],g=[];l/=2,e.eachEdge(function(A,b){var w=A.getLayout(),x=A.getVisual("fromSymbol"),T=A.getVisual("toSymbol");w.__original||(w.__original=[p.clone(w[0]),p.clone(w[1])],w[2]&&w.__original.push(p.clone(w[2])));var _=w.__original;if(w[2]!=null){if(p.copy(c[0],_[0]),p.copy(c[1],_[2]),p.copy(c[2],_[1]),x&&x!=="none"){var E=v(A.node1),C=t(c,_[0],E*l);s(c[0][0],c[1][0],c[2][0],C,r),c[0][0]=r[3],c[1][0]=r[4],s(c[0][1],c[1][1],c[2][1],C,r),c[0][1]=r[3],c[1][1]=r[4]}if(T&&T!=="none"){var E=v(A.node2),C=t(c,_[1],E*l);s(c[0][0],c[1][0],c[2][0],C,r),c[1][0]=r[1],c[2][0]=r[2],s(c[0][1],c[1][1],c[2][1],C,r),c[1][1]=r[1],c[2][1]=r[2]}p.copy(w[0],c[0]),p.copy(w[1],c[2]),p.copy(w[2],c[1])}else{if(p.copy(h[0],_[0]),p.copy(h[1],_[1]),p.sub(g,h[1],h[0]),p.normalize(g,g),x&&x!=="none"){var E=v(A.node1);p.scaleAndAdd(h[0],h[0],g,E*l)}if(T&&T!=="none"){var E=v(A.node2);p.scaleAndAdd(h[1],h[1],g,-E*l)}p.copy(w[0],h[0]),p.copy(w[1],h[1])}})}k.exports=a},SKnc:function(k,D,i){var y=i("bYtY"),p=i("QuXc"),S=function(f,d,u,o,n,t){this.x=f==null?0:f,this.y=d==null?0:d,this.x2=u==null?1:u,this.y2=o==null?0:o,this.type="linear",this.global=t||!1,p.call(this,n)};S.prototype={constructor:S},y.inherits(S,p);var v=S;k.exports=v},"SKx+":function(k,D,i){var y=i("ProS"),p=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}}}),S=p;k.exports=S},SMc4:function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("nkfE"),v=i("ICMv"),m=p.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 f(o,n){return n.type||(n.data?"category":"value")}y.merge(m.prototype,v);var d={offset:0};S("x",m,f,d),S("y",m,f,d);var u=m;k.exports=u},SRve:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},SUKs:function(k,D,i){var y=i("LPTA"),p=y.debugMode,S=function(){};p===1&&(S=console.error);var v=S;k.exports=v},SZEN:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.clientToElement=y;function y(p,S,v){var m=v.getBoundingClientRect(),f={x:0,y:0};return p<m.left?f.x=0:p>=m.right?f.x=m.width-1:f.x=p-m.left,S<m.top?f.y=0:S>=m.bottom?f.y=m.height-1:f.y=S-m.top,f}},Sdc0:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("q1tI"),f=i("rePB"),d=i("ODXe"),u=i("Ff2n"),o=i("TSYQ"),n=i.n(o),t=i("6cGi"),a=i("4IlW"),e=m.forwardRef(function(T,_){var E,C=T.prefixCls,I=C===void 0?"rc-switch":C,O=T.className,F=T.checked,R=T.defaultChecked,B=T.disabled,P=T.loadingIcon,X=T.checkedChildren,M=T.unCheckedChildren,z=T.onClick,W=T.onChange,H=T.onKeyDown,V=Object(u.a)(T,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:F,defaultValue:R}),G=Object(d.a)(Q,2),ee=G[0],q=G[1];function se(Re,Ge){var Ue=ee;return B||(Ue=Re,q(Ue),W==null||W(Ue,Ge)),Ue}function re(Re){Re.which===a.a.LEFT?se(!1,Re):Re.which===a.a.RIGHT&&se(!0,Re),H==null||H(Re)}function Ae(Re){var Ge=se(!ee,Re);z==null||z(Ge,Re)}var Te=n()(I,O,(E={},Object(f.a)(E,"".concat(I,"-checked"),ee),Object(f.a)(E,"".concat(I,"-disabled"),B),E));return m.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":ee,disabled:B,className:Te,ref:_,onKeyDown:re,onClick:Ae}),P,m.createElement("span",{className:"".concat(I,"-inner")},ee?X:M))});e.displayName="Switch";var l=e,r=i("gZBC"),s=i.n(r),c=i("g0mS"),h=i("H84U"),g=i("3Nzz"),A=i("uaoM"),b=function(T,_){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&_.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)_.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E},w=m.forwardRef(function(T,_){var E,C=T.prefixCls,I=T.size,O=T.loading,F=T.className,R=F===void 0?"":F,B=T.disabled,P=b(T,["prefixCls","size","loading","className","disabled"]);Object(A.a)("checked"in P||!("value"in P),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=m.useContext(h.b),M=X.getPrefixCls,z=X.direction,W=m.useContext(g.b),H=M("switch",C),V=m.createElement("div",{className:"".concat(H,"-handle")},O&&m.createElement(s.a,{className:"".concat(H,"-loading-icon")})),Q=n()(R,(E={},v()(E,"".concat(H,"-small"),(I||W)==="small"),v()(E,"".concat(H,"-loading"),O),v()(E,"".concat(H,"-rtl"),z==="rtl"),E));return m.createElement(c.a,{insertExtraNode:!0},m.createElement(l,p()({},P,{prefixCls:H,className:Q,disabled:B||O,ref:_,loadingIcon:V})))});w.__ANT_SWITCH=!0,w.displayName="Switch";var x=D.a=w},SehX:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("2B6p"),v=S.updateCenterAndZoom;y.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(m,f){var d=m.componentType||"series";f.eachComponent({mainType:d,query:m},function(u){var o=u.coordinateSystem;if(o.type!=="geo")return;var n=v(o,m,u.get("scaleLimit"));u.setCenter&&u.setCenter(n.center),u.setZoom&&u.setZoom(n.zoom),d==="series"&&p.each(u.seriesGroup,function(t){t.setCenter(n.center),t.setZoom(n.zoom)})})})},SfRM:function(k,D,i){var y=i("YESw");function p(){this.__data__=y?y(null):{},this.size=0}k.exports=p},SgGq:function(k,D,i){var y=i("bYtY"),p=i("H6uX"),S=i("YH21"),v=i("pP6R");function m(r){this.pointerChecker,this._zr=r,this._opt={};var s=y.bind,c=s(f,this),h=s(d,this),g=s(u,this),A=s(o,this),b=s(n,this);p.call(this),this.setPointerChecker=function(w){this.pointerChecker=w},this.enable=function(w,x){this.disable(),this._opt=y.defaults(y.clone(x)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),w==null&&(w=!0),(w===!0||w==="move"||w==="pan")&&(r.on("mousedown",c),r.on("mousemove",h),r.on("mouseup",g)),(w===!0||w==="scale"||w==="zoom")&&(r.on("mousewheel",A),r.on("pinch",b))},this.disable=function(){r.off("mousedown",c),r.off("mousemove",h),r.off("mouseup",g),r.off("mousewheel",A),r.off("pinch",b)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}y.mixin(m,p);function f(r){if(S.isMiddleOrRightButtonOnMouseUpDown(r)||r.target&&r.target.draggable)return;var s=r.offsetX,c=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,c)&&(this._x=s,this._y=c,this._dragging=!0)}function d(r){if(!this._dragging||!e("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||v.isTaken(this._zr,"globalPan"))return;var s=r.offsetX,c=r.offsetY,h=this._x,g=this._y,A=s-h,b=c-g;this._x=s,this._y=c,this._opt.preventDefaultMouseMove&&S.stop(r.event),a(this,"pan","moveOnMouseMove",r,{dx:A,dy:b,oldX:h,oldY:g,newX:s,newY:c})}function u(r){S.isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)}function o(r){var s=e("zoomOnMouseWheel",r,this._opt),c=e("moveOnMouseWheel",r,this._opt),h=r.wheelDelta,g=Math.abs(h),A=r.offsetX,b=r.offsetY;if(h===0||!s&&!c)return;if(s){var w=g>3?1.4:g>1?1.2:1.1,x=h>0?w:1/w;t(this,"zoom","zoomOnMouseWheel",r,{scale:x,originX:A,originY:b})}if(c){var T=Math.abs(h),_=(h>0?1:-1)*(T>3?.4:T>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:_,originX:A,originY:b})}}function n(r){if(v.isTaken(this._zr,"globalPan"))return;var s=r.pinchScale>1?1.1:1/1.1;t(this,"zoom",null,r,{scale:s,originX:r.pinchX,originY:r.pinchY})}function t(r,s,c,h,g){r.pointerChecker&&r.pointerChecker(h,g.originX,g.originY)&&(S.stop(h.event),a(r,s,c,h,g))}function a(r,s,c,h,g){g.isAvailableBehavior=y.bind(e,null,c,h),r.trigger(s,g)}function e(r,s,c){var h=c[r];return!r||h&&(!y.isString(h)||s.event[h+"Key"])}var l=m;k.exports=l},SgaC:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var d=0;d<f.length;d++){var u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m),this._subrects=0}return S(m,[{key:"decodeRect",value:function(d,u,o,n,t,a,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var l=t.rQshiftBytes(4);a.fillRect(d,u,o,n,l)}for(;this._subrects>0;){if(t.rQwait("RRE",4+8))return!1;var r=t.rQshiftBytes(4),s=t.rQshift16(),c=t.rQshift16(),h=t.rQshift16(),g=t.rQshift16();a.fillRect(d+s,u+c,h,g,r),this._subrects--}return!0}}]),m}();D.default=v},Sj0X:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("XuBP")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DownOutlined";var n=v.forwardRef(o);D.default=n},Sj9i:function(k,D,i){var y=i("QBsz"),p=y.create,S=y.distSquare,v=Math.pow,m=Math.sqrt,f=1e-8,d=1e-4,u=m(3),o=1/3,n=p(),t=p(),a=p();function e(C){return C>-f&&C<f}function l(C){return C>f||C<-f}function r(C,I,O,F,R){var B=1-R;return B*B*(B*C+3*R*I)+R*R*(R*F+3*B*O)}function s(C,I,O,F,R){var B=1-R;return 3*(((I-C)*B+2*(O-I)*R)*B+(F-O)*R*R)}function c(C,I,O,F,R,B){var P=F+3*(I-O)-C,X=3*(O-I*2+C),M=3*(I-C),z=C-R,W=X*X-3*P*M,H=X*M-9*P*z,V=M*M-3*X*z,Q=0;if(e(W)&&e(H))if(e(X))B[0]=0;else{var G=-M/X;G>=0&&G<=1&&(B[Q++]=G)}else{var ee=H*H-4*W*V;if(e(ee)){var q=H/W,G=-X/P+q,se=-q/2;G>=0&&G<=1&&(B[Q++]=G),se>=0&&se<=1&&(B[Q++]=se)}else if(ee>0){var re=m(ee),Ae=W*X+1.5*P*(-H+re),Te=W*X+1.5*P*(-H-re);Ae<0?Ae=-v(-Ae,o):Ae=v(Ae,o),Te<0?Te=-v(-Te,o):Te=v(Te,o);var G=(-X-(Ae+Te))/(3*P);G>=0&&G<=1&&(B[Q++]=G)}else{var Re=(2*W*X-3*P*H)/(2*m(W*W*W)),Ge=Math.acos(Re)/3,Ue=m(W),nt=Math.cos(Ge),G=(-X-2*Ue*nt)/(3*P),se=(-X+Ue*(nt+u*Math.sin(Ge)))/(3*P),Le=(-X+Ue*(nt-u*Math.sin(Ge)))/(3*P);G>=0&&G<=1&&(B[Q++]=G),se>=0&&se<=1&&(B[Q++]=se),Le>=0&&Le<=1&&(B[Q++]=Le)}}return Q}function h(C,I,O,F,R){var B=6*O-12*I+6*C,P=9*I+3*F-3*C-9*O,X=3*I-3*C,M=0;if(e(P)){if(l(B)){var z=-X/B;z>=0&&z<=1&&(R[M++]=z)}}else{var W=B*B-4*P*X;if(e(W))R[0]=-B/(2*P);else if(W>0){var H=m(W),z=(-B+H)/(2*P),V=(-B-H)/(2*P);z>=0&&z<=1&&(R[M++]=z),V>=0&&V<=1&&(R[M++]=V)}}return M}function g(C,I,O,F,R,B){var P=(I-C)*R+C,X=(O-I)*R+I,M=(F-O)*R+O,z=(X-P)*R+P,W=(M-X)*R+X,H=(W-z)*R+z;B[0]=C,B[1]=P,B[2]=z,B[3]=H,B[4]=H,B[5]=W,B[6]=M,B[7]=F}function A(C,I,O,F,R,B,P,X,M,z,W){var H,V=.005,Q=Infinity,G,ee,q,se;n[0]=M,n[1]=z;for(var re=0;re<1;re+=.05)t[0]=r(C,O,R,P,re),t[1]=r(I,F,B,X,re),q=S(n,t),q<Q&&(H=re,Q=q);Q=Infinity;for(var Ae=0;Ae<32&&!(V<d);Ae++)G=H-V,ee=H+V,t[0]=r(C,O,R,P,G),t[1]=r(I,F,B,X,G),q=S(t,n),G>=0&&q<Q?(H=G,Q=q):(a[0]=r(C,O,R,P,ee),a[1]=r(I,F,B,X,ee),se=S(a,n),ee<=1&&se<Q?(H=ee,Q=se):V*=.5);return W&&(W[0]=r(C,O,R,P,H),W[1]=r(I,F,B,X,H)),m(Q)}function b(C,I,O,F){var R=1-F;return R*(R*C+2*F*I)+F*F*O}function w(C,I,O,F){return 2*((1-F)*(I-C)+F*(O-I))}function x(C,I,O,F,R){var B=C-2*I+O,P=2*(I-C),X=C-F,M=0;if(e(B)){if(l(P)){var z=-X/P;z>=0&&z<=1&&(R[M++]=z)}}else{var W=P*P-4*B*X;if(e(W)){var z=-P/(2*B);z>=0&&z<=1&&(R[M++]=z)}else if(W>0){var H=m(W),z=(-P+H)/(2*B),V=(-P-H)/(2*B);z>=0&&z<=1&&(R[M++]=z),V>=0&&V<=1&&(R[M++]=V)}}return M}function T(C,I,O){var F=C+O-2*I;return F===0?.5:(C-I)/F}function _(C,I,O,F,R){var B=(I-C)*F+C,P=(O-I)*F+I,X=(P-B)*F+B;R[0]=C,R[1]=B,R[2]=X,R[3]=X,R[4]=P,R[5]=O}function E(C,I,O,F,R,B,P,X,M){var z,W=.005,H=Infinity;n[0]=P,n[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(C,O,R,V),t[1]=b(I,F,B,V);var Q=S(n,t);Q<H&&(z=V,H=Q)}H=Infinity;for(var G=0;G<32&&!(W<d);G++){var ee=z-W,q=z+W;t[0]=b(C,O,R,ee),t[1]=b(I,F,B,ee);var Q=S(t,n);if(ee>=0&&Q<H)z=ee,H=Q;else{a[0]=b(C,O,R,q),a[1]=b(I,F,B,q);var se=S(a,n);q<=1&&se<H?(z=q,H=se):W*=.5}}return M&&(M[0]=b(C,O,R,z),M[1]=b(I,F,B,z)),m(H)}D.cubicAt=r,D.cubicDerivativeAt=s,D.cubicRootAt=c,D.cubicExtrema=h,D.cubicSubdivide=g,D.cubicProjectPoint=A,D.quadraticAt=b,D.quadraticDerivativeAt=w,D.quadraticRootAt=x,D.quadraticExtremum=T,D.quadraticSubdivide=_,D.quadraticProjectPoint=E},Sp2Z:function(k,D,i){var y=i("3LNs"),p=i("/y7N"),S=i("AVZG"),v=i("Znkb"),m=y.extend({makeElOption:function(n,t,a,e,l){var r=a.axis,s=r.grid,c=e.get("type"),h=f(s,r).getOtherAxis(r).getGlobalExtent(),g=r.toGlobalCoord(r.dataToCoord(t,!0));if(c&&c!=="none"){var A=p.buildElStyle(e),b=d[c](r,g,h);b.style=A,n.graphicKey=b.type,n.pointer=b}var w=S.layout(s.model,a);p.buildCartesianSingleLabelElOption(t,n,w,a,e,l)},getHandleTransform:function(n,t,a){var e=S.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=a.get("handle.margin"),{position:p.getTransformedPosition(t.axis,n,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,t,a,e){var l=a.axis,r=l.grid,s=l.getGlobalExtent(!0),c=f(r,l).getOtherAxis(l).getGlobalExtent(),h=l.dim==="x"?0:1,g=n.position;g[h]+=t[h],g[h]=Math.min(s[1],g[h]),g[h]=Math.max(s[0],g[h]);var A=(c[1]+c[0])/2,b=[A,A];b[h]=g[h];var w=[{verticalAlign:"middle"},{align:"center"}];return{position:g,rotation:n.rotation,cursorPoint:b,tooltipOption:w[h]}}});function f(n,t){var a={};return a[t.dim+"AxisIndex"]=t.index,n.getCartesian(a)}var d={line:function(n,t,a){var e=p.makeLineShape([t,a[0]],[t,a[1]],u(n));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(n,t,a){var e=Math.max(1,n.getBandWidth()),l=a[1]-a[0];return{type:"Rect",shape:p.makeRectShape([t-e/2,a[0]],[e,l],u(n))}}};function u(n){return n.dim==="x"?0:1}v.registerAxisPointerClass("CartesianAxisPointer",m);var o=m;k.exports=o},Sq3C:function(k,D,i){var y=i("sKgW"),p=i("zoYe"),S=i("wy8a"),v=i("quyA"),m=i("Z1HP"),f=i("Em2t"),d=Math.ceil;function u(o,n){n=n===void 0?" ":p(n);var t=n.length;if(t<2)return t?y(n,o):n;var a=y(n,d(o/m(n)));return v(n)?S(f(a),0,o).join(""):a.slice(0,o)}k.exports=u},SqI9:function(k,D,i){var y=i("y+Vt"),p=i("iXp4"),S=y.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:p(y.prototype.brush),buildPath:function(m,f){var d=f.cx,u=f.cy,o=Math.max(f.r0||0,0),n=Math.max(f.r,0),t=f.startAngle,a=f.endAngle,e=f.clockwise,l=Math.cos(t),r=Math.sin(t);m.moveTo(l*o+d,r*o+u),m.lineTo(l*n+d,r*n+u),m.arc(d,u,n,t,a,!e),m.lineTo(Math.cos(a)*o+d,Math.sin(a)*o+u),o!==0&&m.arc(d,u,o,a,t,e),m.closePath()}});k.exports=S},SrGk:function(k,D,i){var y=i("hydK"),p=y.createElement,S=i("bYtY"),v=i("y+Vt"),m=i("Dagg"),f=i("dqUG"),d=i("P47w"),u=d.path,o=d.image,n=d.text,t="0",a="1";function e(r,s,c,h,g){this._zrId=r,this._svgRoot=s,this._tagNames=typeof c=="string"?[c]:c,this._markLabel=h,this._domName=g||"_dom",this.nextId=0}e.prototype.createElement=p,e.prototype.getDefs=function(r){var s=this._svgRoot,c=this._svgRoot.getElementsByTagName("defs");return c.length===0?r?(c=s.insertBefore(this.createElement("defs"),s.firstChild),c.contains||(c.contains=function(h){var g=c.children;if(!g)return!1;for(var A=g.length-1;A>=0;--A)if(g[A]===h)return!0;return!1}),c):null:c[0]},e.prototype.update=function(r,s){if(!r)return;var c=this.getDefs(!1);if(r[this._domName]&&c.contains(r[this._domName]))typeof s=="function"&&s(r);else{var h=this.add(r);h&&(r[this._domName]=h)}},e.prototype.addDom=function(r){var s=this.getDefs(!0);s.appendChild(r)},e.prototype.removeDom=function(r){var s=this.getDefs(!1);s&&r[this._domName]&&(s.removeChild(r[this._domName]),r[this._domName]=null)},e.prototype.getDoms=function(){var r=this.getDefs(!1);if(!r)return[];var s=[];return S.each(this._tagNames,function(c){var h=r.getElementsByTagName(c);s=s.concat([].slice.call(h))}),s},e.prototype.markAllUnused=function(){var r=this.getDoms(),s=this;S.each(r,function(c){c[s._markLabel]=t})},e.prototype.markUsed=function(r){r&&(r[this._markLabel]=a)},e.prototype.removeUnused=function(){var r=this.getDefs(!1);if(!r)return;var s=this.getDoms(),c=this;S.each(s,function(h){h[c._markLabel]!==a&&r.removeChild(h)})},e.prototype.getSvgProxy=function(r){return r instanceof v?u:r instanceof m?o:r instanceof f?n:u},e.prototype.getTextSvgElement=function(r){return r.__textSvgEl},e.prototype.getSvgElement=function(r){return r.__svgEl};var l=e;k.exports=l},Swgg:function(k,D,i){var y=i("fc+c"),p=y.extend({type:"dataZoom.select"});k.exports=p},Sxd8:function(k,D,i){var y=i("ZCgT");function p(S){var v=y(S),m=v%1;return v===v?m?v-m:v:0}k.exports=p},T1rO:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("zdCA"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},T4UG:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("ItGF"),m=i("7aKB"),f=m.formatTime,d=m.encodeHTML,u=m.addCommas,o=m.getTooltipMarker,n=i("4NO4"),t=i("bLfw"),a=i("5Hur"),e=i("OKJ2"),l=i("+TT/"),r=l.getLayoutParams,s=l.mergeLayoutParam,c=i("9H2F"),h=c.createTask,g=i("D5nY"),A=g.prepareSource,b=g.getSource,w=i("KxfA"),x=w.retrieveRawValue,T=n.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(M,z,W,H){this.seriesIndex=this.componentIndex,this.dataTask=h({count:I,reset:O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(M,W),A(this);var V=this.getInitialData(M,W);R(V,this),this.dataTask.context.data=V,T(this).dataBeforeProcessed=V,E(this)},mergeDefaultAndTheme:function(M,z){var W=this.layoutMode,H=W?r(M):{},V=this.subType;t.hasClass(V)&&(V+="Series"),S.merge(M,z.getTheme().get(this.subType)),S.merge(M,this.getDefaultOption()),n.defaultEmphasis(M,"label",["show"]),this.fillDataTextStyle(M.data),W&&s(M,H,W)},mergeOption:function(M,z){M=S.merge(this.option,M,!0),this.fillDataTextStyle(M.data);var W=this.layoutMode;W&&s(this.option,M,W),A(this);var H=this.getInitialData(M,z);R(H,this),this.dataTask.dirty(),this.dataTask.context.data=H,T(this).dataBeforeProcessed=H,E(this)},fillDataTextStyle:function(M){if(M&&!S.isTypedArray(M))for(var z=["show"],W=0;W<M.length;W++)M[W]&&M[W].label&&n.defaultEmphasis(M[W],"label",z)},getInitialData:function(){},appendData:function(M){var z=this.getRawData();z.appendData(M.data)},getData:function(M){var z=P(this);if(z){var W=z.context.data;return M==null?W:W.getLinkedData(M)}else return T(this).data},setData:function(M){var z=P(this);if(z){var W=z.context;W.data!==M&&z.modifyOutputEnd&&z.setOutputEnd(M.count()),W.outputData=M,z!==this.dataTask&&(W.data=M)}T(this).data=M},getSource:function(){return b(this)},getRawData:function(){return T(this).dataBeforeProcessed},getBaseAxis:function(){var M=this.coordinateSystem;return M&&M.getBaseAxis&&M.getBaseAxis()},formatTooltip:function(M,z,W,H){var V=this;H=H||"html";var Q=H==="html"?"<br/>":`
`,G=H==="richText",ee={},q=0;function se(ye){var Ee=S.reduce(ye,function(Je,lt,tt){var ke=Ae.getDimensionInfo(tt);return Je|=ke&&ke.tooltip!==!1&&ke.displayName!=null},0),Ce=[];Te.length?S.each(Te,function(Je){ue(x(Ae,M,Je),Je)}):S.each(ye,ue);function ue(Je,lt){var tt=Ae.getDimensionInfo(lt);if(!tt||tt.otherDims.tooltip===!1)return;var ke=tt.type,st="sub"+V.seriesIndex+"at"+q,Ve=o({color:nt,type:"subItem",renderMode:H,markerId:st}),Ot=typeof Ve=="string"?Ve:Ve.content,Ut=(Ee?Ot+d(tt.displayName||"-")+": ":"")+d(ke==="ordinal"?Je+"":ke==="time"?z?"":f("yyyy/MM/dd hh:mm:ss",Je):u(Je));Ut&&Ce.push(Ut),G&&(ee[st]=nt,++q)}var ge=Ee?G?`
`:"<br/>":"",Oe=ge+Ce.join(ge||", ");return{renderMode:H,content:Oe,style:ee}}function re(ye){return{renderMode:H,content:d(u(ye)),style:ee}}var Ae=this.getData(),Te=Ae.mapDimension("defaultedTooltip",!0),Re=Te.length,Ge=this.getRawValue(M),Ue=S.isArray(Ge),nt=Ae.getItemVisual(M,"color");S.isObject(nt)&&nt.colorStops&&(nt=(nt.colorStops[0]||{}).color),nt=nt||"transparent";var Le=Re>1||Ue&&!Re?se(Ge):re(Re?x(Ae,M,Te[0]):Ue?Ge[0]:Ge),le=Le.content,Xe=V.seriesIndex+"at"+q,pe=o({color:nt,type:"item",renderMode:H,markerId:Xe});ee[Xe]=nt,++q;var Z=Ae.getName(M),Y=this.name;n.isNameSpecified(this)||(Y=""),Y=Y?d(Y)+(z?": ":Q):"";var ne=typeof pe=="string"?pe:pe.content,ce=z?ne+Y+le:Y+ne+(Z?d(Z)+": "+le:le);return{html:ce,markers:ee}},isAnimationEnabled:function(){if(v.node)return!1;var M=this.getShallow("animation");return M&&(this.getData().count()>this.getShallow("animationThreshold")&&(M=!1)),M},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(M,z,W){var H=this.ecModel,V=a.getColorFromPalette.call(this,M,z,W);return V||(V=H.getColorFromPalette(M,z,W)),V},coordDimToDataDim:function(M){return this.getRawData().mapDimension(M,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});S.mixin(_,e),S.mixin(_,a);function E(M){var z=M.name;n.isNameSpecified(M)||(M.name=C(M)||z)}function C(M){var z=M.getRawData(),W=z.mapDimension("seriesName",!0),H=[];return S.each(W,function(V){var Q=z.getDimensionInfo(V);Q.displayName&&H.push(Q.displayName)}),H.join(" ")}function I(M){return M.model.getRawData().count()}function O(M){var z=M.model;return z.setData(z.getRawData().cloneShallow()),F}function F(M,z){z.outputData&&M.end>z.outputData.count()&&z.model.getRawData().cloneShallow(z.outputData)}function R(M,z){S.each(M.CHANGABLE_METHODS,function(W){M.wrapMethod(W,S.curry(B,z))})}function B(M){var z=P(M);z&&z.setOutputEnd(this.count())}function P(M){var z=(M.ecModel||{}).scheduler,W=z&&z.getPipeline(M.uid);if(W){var H=W.currentTask;if(H){var V=H.agentStubMap;V&&(H=V.get(M.uid))}return H}}var X=_;k.exports=X},T6xi:function(k,D,i){var y=i("YgsL"),p=i("nCxF");function S(v,m,f){var d=m.points,u=m.smooth;if(d&&d.length>=2){if(u&&u!=="spline"){var o=p(d,u,f,m.smoothConstraint);v.moveTo(d[0][0],d[0][1]);for(var n=d.length,t=0;t<(f?n:n-1);t++){var a=o[t*2],e=o[t*2+1],l=d[(t+1)%n];v.bezierCurveTo(a[0],a[1],e[0],e[1],l[0],l[1])}}else{u==="spline"&&(d=y(d,f)),v.moveTo(d[0][0],d[0][1]);for(var t=1,r=d.length;t<r;t++)v.lineTo(d[t][0],d[t][1])}f&&v.closePath()}}D.buildPath=S},TIY9:function(k,D,i){var y=i("bYtY"),p=y.each,S=i("vafp"),v=i("4NO4"),m=v.makeInner,f=i("Mgri"),d=i("F5Ls"),u=i("a9QJ"),o=i("p/La"),n=m(),t={load:function(e,l,r){var s=n(l).parsed;if(s)return s;var c=l.specialAreas||{},h=l.geoJSON,g;try{g=h?S(h,r):[]}catch(A){throw new Error(`Invalid geoJson format
`+A.message)}return f(e,g),p(g,function(A){var b=A.name;d(e,A),u(e,A),o(e,A);var w=c[b];w&&A.transformTo(w.left,w.top,w.width,w.height)}),n(l).parsed={regions:g,boundingRect:a(g)}}};function a(e){for(var l,r=0;r<e.length;r++){var s=e[r].getBoundingRect();l=l||s.clone(),l.union(s)}return l}k.exports=t},TJmX:function(k,D,i){var y=i("zM3Q"),p=["itemStyle","borderColor"],S=["itemStyle","borderColor0"],v=["itemStyle","color"],m=["itemStyle","color0"],f={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(d,u){var o=d.getData();if(o.setVisual({legendSymbol:"roundRect",colorP:a(1,d),colorN:a(-1,d),borderColorP:e(1,d),borderColorN:e(-1,d)}),u.isSeriesFiltered(d))return;var n=d.pipelineContext.large;return!n&&{progress:t};function t(l,r){for(var s;(s=l.next())!=null;){var c=r.getItemModel(s),h=r.getItemLayout(s).sign;r.setItemVisual(s,{color:a(h,c),borderColor:e(h,c)})}}function a(l,r){return r.get(l>0?v:m)}function e(l,r){return r.get(l>0?p:S)}}};k.exports=f},TWL2:function(k,D,i){var y=i("IwbS"),p=i("bYtY"),S=i("6Ic6");function v(o,n){y.Group.call(this);var t=new y.Polygon,a=new y.Polyline,e=new y.Text;this.add(t),this.add(a),this.add(e),this.highDownOnUpdate=function(l,r){r==="emphasis"?(a.ignore=a.hoverIgnore,e.ignore=e.hoverIgnore):(a.ignore=a.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(o,n,!0)}var m=v.prototype,f=["itemStyle","opacity"];m.updateData=function(o,n,t){var a=this.childAt(0),e=o.hostModel,l=o.getItemModel(n),r=o.getItemLayout(n),s=o.getItemModel(n).get(f);s=s==null?1:s,a.useStyle({}),t?(a.setShape({points:r.points}),a.setStyle({opacity:0}),y.initProps(a,{style:{opacity:s}},e,n)):y.updateProps(a,{style:{opacity:s},shape:{points:r.points}},e,n);var c=l.getModel("itemStyle"),h=o.getItemVisual(n,"color");a.setStyle(p.defaults({lineJoin:"round",fill:h},c.getItemStyle(["opacity"]))),a.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(o,n),y.setHoverStyle(this)},m._updateLabel=function(o,n){var t=this.childAt(1),a=this.childAt(2),e=o.hostModel,l=o.getItemModel(n),r=o.getItemLayout(n),s=r.label,c=o.getItemVisual(n,"color");y.updateProps(t,{shape:{points:s.linePoints||s.linePoints}},e,n),y.updateProps(a,{style:{x:s.x,y:s.y}},e,n),a.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var h=l.getModel("label"),g=l.getModel("emphasis.label"),A=l.getModel("labelLine"),b=l.getModel("emphasis.labelLine"),c=o.getItemVisual(n,"color");y.setLabelStyle(a.style,a.hoverStyle={},h,g,{labelFetcher:o.hostModel,labelDataIndex:n,defaultText:o.getName(n),autoColor:c,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),a.ignore=a.normalIgnore=!h.get("show"),a.hoverIgnore=!g.get("show"),t.ignore=t.normalIgnore=!A.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(A.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},p.inherits(v,y.Group);var d=S.extend({type:"funnel",render:function(o,n,t){var a=o.getData(),e=this._data,l=this.group;a.diff(e).add(function(r){var s=new v(a,r);a.setItemGraphicEl(r,s),l.add(s)}).update(function(r,s){var c=e.getItemGraphicEl(s);c.updateData(a,r),l.add(c),a.setItemGraphicEl(r,c)}).remove(function(r){var s=e.getItemGraphicEl(r);l.remove(s)}).execute(),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=d;k.exports=u},TYVI:function(k,D,i){var y=i("5GtS"),p=i("T4UG"),S=p.extend({type:"series.gauge",getInitialData:function(m,f){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}}}),v=S;k.exports=v},Tghj:function(k,D,i){(function(y){var p;typeof window!="undefined"?p=window.__DEV__:typeof y!="undefined"&&(p=y.__DEV__),typeof p=="undefined"&&(p=!0);var S=p;D.__DEV__=S}).call(this,i("yLpj"))},ThAp:function(k,D,i){var y=i("bYtY"),p=i("5GtS"),S=i("T4UG"),v=i("7aKB"),m=v.encodeHTML,f=v.addCommas,d=i("cCMj"),u=i("KxfA"),o=u.retrieveRawAttr,n=i("W4dC"),t=i("D5nY"),a=t.makeSeriesEncodeForNameBased,e=S.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(r){for(var s=p(this,{coordDimensions:["value"],encodeDefaulter:y.curry(a,this)}),c=s.mapDimension("value"),h=y.createHashMap(),g=[],A=[],b=0,w=s.count();b<w;b++){var x=s.getName(b);h.set(x,!0),g.push({name:x,value:s.get(c,b),selected:o(s,b,"selected")})}var T=n.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(T.regions,function(_){var E=_.name;h.get(E)||(g.push({name:E}),A.push(E))}),this.updateSelectedMap(g),s.appendValues([],A),s},getHostGeoModel:function(){var r=this.option.geoIndex;return r!=null?this.dependentModels.geo[r]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(r){var s=this.getData();return s.get(s.mapDimension("value"),r)},getRegionModel:function(r){var s=this.getData();return s.getItemModel(s.indexOfName(r))},formatTooltip:function(r){for(var s=this.getData(),c=f(this.getRawValue(r)),h=s.getName(r),g=this.seriesGroup,A=[],b=0;b<g.length;b++){var w=g[b].originalData.indexOfName(h),x=s.mapDimension("value");isNaN(g[b].originalData.get(x,w))||A.push(m(g[b].name))}return A.join(", ")+"<br />"+m(h+" : "+c)},getTooltipPosition:function(r){if(r!=null){var s=this.getData().getName(r),c=this.coordinateSystem,h=c.getRegion(s);return h&&c.dataToPoint(h.center)}},setZoom:function(r){this.option.zoom=r},setCenter:function(r){this.option.center=r},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;k.exports=l},TkdX:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},v=2,m=4;function f(e,l,r){p.Group.call(this);var s=new p.Sector({z2:v});s.seriesIndex=l.seriesIndex;var c=new p.Text({z2:m,silent:e.getModel("label").get("silent")});this.add(s),this.add(c),this.updateData(!0,e,"normal",l,r);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=f.prototype;d.updateData=function(e,l,r,s,c){this.node=l,l.piece=this,s=s||this._seriesModel,c=c||this._ecModel;var h=this.childAt(0);h.dataIndex=l.dataIndex;var g=l.getModel(),A=l.getLayout(),b=y.extend({},A);b.label=null;var w=o(l,s,c);a(l,s,w);var x=g.getModel("itemStyle").getItemStyle(),T;if(r==="normal")T=x;else{var _=g.getModel(r+".itemStyle").getItemStyle();T=y.merge(_,x)}T=y.defaults({lineJoin:"bevel",fill:T.fill||w},T),e?(h.setShape(b),h.shape.r=A.r0,p.updateProps(h,{shape:{r:A.r}},s,l.dataIndex),h.useStyle(T)):typeof T.fill=="object"&&T.fill.type||typeof h.style.fill=="object"&&h.style.fill.type?(p.updateProps(h,{shape:b},s),h.useStyle(T)):p.updateProps(h,{shape:b,style:T},s),this._updateLabel(s,w,r);var E=g.getShallow("cursor");if(E&&h.attr("cursor",E),e){var C=s.getShallow("highlightPolicy");this._initEvents(h,l,s,C)}this._seriesModel=s||this._seriesModel,this._ecModel=c||this._ecModel,p.setHoverStyle(this)},d.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(r){r.piece&&(l.node===r?r.piece.updateData(!1,r,"emphasis"):t(r,l.node,e)?r.piece.childAt(0).trigger("highlight"):e!==S.NONE&&r.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,r){var s=this.node.getModel(),c=s.getModel("label"),h=r==="normal"||r==="emphasis"?c:s.getModel(r+".label"),g=s.getModel("emphasis.label"),A=y.retrieve(e.getFormattedLabel(this.node.dataIndex,r,null,null,"label"),this.node.name);z("show")===!1&&(A="");var b=this.node.getLayout(),w=h.get("minAngle");w==null&&(w=c.get("minAngle")),w=w/180*Math.PI;var x=b.endAngle-b.startAngle;w!=null&&Math.abs(x)<w&&(A="");var T=this.childAt(1);p.setLabelStyle(T.style,T.hoverStyle||{},c,g,{defaultText:h.getShallow("show")?A:null,autoColor:l,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,E=Math.cos(_),C=Math.sin(_),I,O=z("position"),F=z("distance")||0,R=z("align");O==="outside"?(I=b.r+F,R=_>Math.PI/2?"right":"left"):!R||R==="center"?(I=(b.r+b.r0)/2,R="center"):R==="left"?(I=b.r0+F,_>Math.PI/2&&(R="right")):R==="right"&&(I=b.r-F,_>Math.PI/2&&(R="left")),T.attr("style",{text:A,textAlign:R,textVerticalAlign:z("verticalAlign")||"middle",opacity:z("opacity")});var B=I*E+b.cx,P=I*C+b.cy;T.attr("position",[B,P]);var X=z("rotate"),M=0;X==="radial"?(M=-_,M<-Math.PI/2&&(M+=Math.PI)):X==="tangential"?(M=Math.PI/2-_,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):typeof X=="number"&&(M=X*Math.PI/180),T.attr("rotation",M);function z(W){var H=h.get(W);return H==null?c.get(W):H}},d._initEvents=function(e,l,r,s){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,h=function(){c.onEmphasis(s)},g=function(){c.onNormal()},A=function(){c.onDownplay()},b=function(){c.onHighlight()};r.isAnimationEnabled()&&e.on("mouseover",h).on("mouseout",g).on("emphasis",h).on("normal",g).on("downplay",A).on("highlight",b)},y.inherits(f,p.Group);var u=f;function o(e,l,r){var s=e.getVisual("color"),c=e.getVisual("visualMeta");(!c||c.length===0)&&(s=null);var h=e.getModel("itemStyle").get("color");if(h)return h;if(s)return s;if(e.depth===0)return r.option.color[0];var g=r.option.color.length;return h=r.option.color[n(e)%g],h}function n(e){for(var l=e;l.depth>1;)l=l.parentNode;var r=e.getAncestors()[0];return y.indexOf(r.children,l)}function t(e,l,r){return r===S.NONE?!1:r===S.SELF?e===l:r===S.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function a(e,l,r){var s=l.getData();s.setItemVisual(e.dataIndex,"color",r)}k.exports=u},Tp9H:function(k,D,i){var y=i("ItGF"),p=i("Kagy"),S=i("IUWy"),v=p.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:v.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:v.lang.slice()},m.prototype.unusable=!y.canvasSupported;var f=m.prototype;f.onclick=function(u,o){var n=this.model,t=n.get("name")||u.get("title.0.text")||"echarts",a=o.getZr().painter.getType()==="svg",e=a?"svg":n.get("type",!0)||"png",l=o.getConnectedDataURL({type:e,backgroundColor:n.get("backgroundColor",!0)||u.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(typeof MouseEvent=="function"&&!y.browser.ie&&!y.browser.edge){var r=document.createElement("a");r.download=t+"."+e,r.target="_blank",r.href=l;var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}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 A=new Blob([g]);window.navigator.msSaveOrOpenBlob(A,t+"."+e)}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',x=window.open();x.document.write(w)}},S.register("saveAsImage",m);var d=m;k.exports=d},"U/Mo":function(k,D){function i(p){var S=p.coordinateSystem;if(S.type!=="view")return 1;var v=p.option.nodeScaleRatio,m=S.scale,f=m&&m[0]||1,d=S.getZoom(),u=(d-1)*v+1;return u/f}function y(p){var S=p.getVisual("symbolSize");return S instanceof Array&&(S=(S[0]+S[1])/2),+S}D.getNodeGlobalScale=i,D.getSymbolSize=y},UADf:function(k,D,i){},UESt:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="RightOutlined";var d=D.a=p.forwardRef(f)},"UNi/":function(k,D){function i(y,p){for(var S=-1,v=Array(y);++S<y;)v[S]=p(S);return v}k.exports=i},UOVi:function(k,D,i){var y=i("bYtY"),p=i("7aKB"),S=["x","y","z","radius","angle","single"],v=["cartesian2d","polar","singleAxis"];function m(o){return y.indexOf(v,o)>=0}function f(o,n){o=o.slice();var t=y.map(o,p.capitalFirst);n=(n||[]).slice();var a=y.map(n,p.capitalFirst);return function(e,l){y.each(o,function(r,s){for(var c={name:r,capital:t[s]},h=0;h<n.length;h++)c[n[h]]=r+a[h];e.call(l,c)})}}var d=f(S,["axisIndex","axis","index","id"]);function u(o,n,t){return function(r){var s={nodes:[],records:{}};if(n(function(g){s.records[g.name]={}}),!r)return s;l(r,s);var c;do c=!1,o(h);while(c);function h(g){!a(g,s)&&e(g,s)&&(l(g,s),c=!0)}return s};function a(r,s){return y.indexOf(s.nodes,r)>=0}function e(r,s){var c=!1;return n(function(h){y.each(t(r,h)||[],function(g){s.records[h.name][g]&&(c=!0)})}),c}function l(r,s){s.nodes.push(r),n(function(c){y.each(t(r,c)||[],function(h){s.records[c.name][h]=!0})})}}D.isCoordSupported=m,D.createNameEach=f,D.eachAxisDim=d,D.createLinkedNodesFinder=u},Uc92:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},UnoB:function(k,D,i){var y=i("bYtY"),p=i("OELB");function S(f,d){f.eachSeriesByType("themeRiver",function(u){var o=u.getData(),n=u.coordinateSystem,t={},a=n.getRect();t.rect=a;var e=u.get("boundaryGap"),l=n.getAxis();if(t.boundaryGap=e,l.orient==="horizontal"){e[0]=p.parsePercent(e[0],a.height),e[1]=p.parsePercent(e[1],a.height);var r=a.height-e[0]-e[1];v(o,u,r)}else{e[0]=p.parsePercent(e[0],a.width),e[1]=p.parsePercent(e[1],a.width);var s=a.width-e[0]-e[1];v(o,u,s)}o.setLayout("layoutInfo",t)})}function v(f,d,u){if(!f.count())return;for(var o=d.coordinateSystem,n=d.getLayerSeries(),t=f.mapDimension("single"),a=f.mapDimension("value"),e=y.map(n,function(w){return y.map(w.indices,function(x){var T=o.dataToPoint(f.get(t,x));return T[1]=f.get(a,x),T})}),l=m(e),r=l.y0,s=u/l.max,c=n.length,h=n[0].indices.length,g,A=0;A<h;++A){g=r[A]*s,f.setItemLayout(n[0].indices[A],{layerIndex:0,x:e[0][A][0],y0:g,y:e[0][A][1]*s});for(var b=1;b<c;++b)g+=e[b-1][A][1]*s,f.setItemLayout(n[b].indices[A],{layerIndex:b,x:e[b][A][0],y0:g,y:e[b][A][1]*s})}}function m(f){for(var d=f.length,u=f[0].length,o=[],n=[],t=0,a,e={},l=0;l<u;++l){for(var r=0,a=0;r<d;++r)a+=f[r][l][1];a>t&&(t=a),o.push(a)}for(var s=0;s<u;++s)n[s]=(t-o[s])/2;t=0;for(var c=0;c<u;++c){var h=o[c]+n[c];h>t&&(t=h)}return e.y0=n,e.max=t,e}k.exports=S},Urep:function(k,D,i){},V6Ve:function(k,D,i){var y=i("kekF"),p=y(Object.keys,Object);k.exports=p},V7ic:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("digP")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FileTwoTone";var n=v.forwardRef(o);D.default=n},VFCP:function(k,D,i){i("dBmv"),i("KamJ")},VPsl:function(k,D){function i(y){y.eachSeriesByType("map",function(p){var S=p.get("color"),v=p.getModel("itemStyle"),m=v.get("areaColor"),f=v.get("color")||S[p.seriesIndex%S.length];p.getData().setVisual({areaColor:m,color:f})})}k.exports=i},VR9l:function(k,D,i){var y=i("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),S={getItemStyle:function(v,m){var f=p(this,v,m),d=this.getBorderLineDash();return d&&(f.lineDash=d),f},getBorderLineDash:function(){var v=this.get("borderType");return v==="solid"||v==null?null:v==="dashed"?[5,5]:[1,1]}};k.exports=S},VSLf:function(k,D,i){i("I+Bx"),i("F0hE"),i("bBKM")},VSMT:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.decodeUTF8=y,D.encodeUTF8=p;function y(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(S))}catch(m){if(m instanceof URIError&&v)return S;throw m}}function p(S){return unescape(encodeURIComponent(S))}},VXYp:function(k,D,i){var y=i("bYtY"),p=i("SgGq"),S=i("iLNv"),v="\0_ec_dataZoom_roams";function m(e,l){var r=u(e),s=l.dataZoomId,c=l.coordId;y.each(r,function(A,b){var w=A.dataZoomInfos;w[s]&&y.indexOf(l.allCoordIds,c)<0&&(delete w[s],A.count--)}),n(r);var h=r[c];h||(h=r[c]={coordId:c,dataZoomInfos:{},count:0},h.controller=o(e,h),h.dispatchAction=y.curry(t,e)),!h.dataZoomInfos[s]&&h.count++,h.dataZoomInfos[s]=l;var g=a(h.dataZoomInfos);h.controller.enable(g.controlType,g.opt),h.controller.setPointerChecker(l.containsPoint),S.createOrUpdate(h,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function f(e,l){var r=u(e);y.each(r,function(s){s.controller.dispose();var c=s.dataZoomInfos;c[l]&&(delete c[l],s.count--)}),n(r)}function d(e){return e.type+"\0_"+e.id}function u(e){var l=e.getZr();return l[v]||(l[v]={})}function o(e,l){var r=new p(e.getZr());return y.each(["pan","zoom","scrollMove"],function(s){r.on(s,function(c){var h=[];y.each(l.dataZoomInfos,function(g){if(!c.isAvailableBehavior(g.dataZoomModel.option))return;var A=(g.getRange||{})[s],b=A&&A(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)})}),r}function n(e){y.each(e,function(l,r){l.count||(l.controller.dispose(),delete e[r])})}function t(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function a(e){var l,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return y.each(e,function(h){var g=h.dataZoomModel,A=g.get("disabled",!0)?!1:g.get("zoomLock",!0)?"move":!0;s[r+A]>s[r+l]&&(l=A),c&=g.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}D.register=m,D.unregister=f,D.generateCoordId=d},VaNO:function(k,D){function i(y){return this.__data__.has(y)}k.exports=i},VaxA:function(k,D,i){var y=i("bYtY");function p(f,d,u){if(f&&y.indexOf(d,f.type)>=0){var o=u.getData().tree.root,n=f.targetNode;if(typeof n=="string"&&(n=o.getNodeById(n)),n&&o.contains(n))return{node:n};var t=f.targetNodeId;if(t!=null&&(n=o.getNodeById(t)))return{node:n}}}function S(f){for(var d=[];f;)f=f.parentNode,f&&d.push(f);return d.reverse()}function v(f,d){var u=S(f);return y.indexOf(u,d)>=0}function m(f,d){for(var u=[];f;){var o=f.dataIndex;u.push({name:f.name,dataIndex:o,value:d.getRawValue(o)}),f=f.parentNode}return u.reverse(),u}D.retrieveTargetInfo=p,D.getPathToRoot=S,D.aboveViewRoot=v,D.wrapTreePathInfo=m},Vi4m:function(k,D,i){var y=i("bYtY");function p(v){v!=null&&y.extend(this,v),this.otherDims={}}var S=p;k.exports=S},Vl3Y:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("J4zp"),v=i.n(S),m=i("lSNA"),f=i.n(m),d=i("q1tI"),u=i("TSYQ"),o=i.n(u),n=i("85Yc"),t=i("H84U"),a=i("BGR+"),e=d.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=d.createContext({updateItemErrors:function(){}}),r=function($t){var Lr=Object(a.default)($t,["prefixCls"]);return d.createElement(n.FormProvider,Lr)};function s(Fe){return typeof Fe=="object"&&Fe!=null&&Fe.nodeType===1}function c(Fe,$t){return(!$t||Fe!=="hidden")&&Fe!=="visible"&&Fe!=="clip"}function h(Fe,$t){if(Fe.clientHeight<Fe.scrollHeight||Fe.clientWidth<Fe.scrollWidth){var Lr=getComputedStyle(Fe,null);return c(Lr.overflowY,$t)||c(Lr.overflowX,$t)||function(pt){var qt=function(vr){if(!vr.ownerDocument||!vr.ownerDocument.defaultView)return null;try{return vr.ownerDocument.defaultView.frameElement}catch(pn){return null}}(pt);return!!qt&&(qt.clientHeight<pt.scrollHeight||qt.clientWidth<pt.scrollWidth)}(Fe)}return!1}function g(Fe,$t,Lr,pt,qt,vr,pn,fr){return vr<Fe&&pn>$t||vr>Fe&&pn<$t?0:vr<=Fe&&fr<=Lr||pn>=$t&&fr>=Lr?vr-Fe-pt:pn>$t&&fr<Lr||vr<Fe&&fr>Lr?pn-$t+qt:0}var A=function($t,Lr){var pt=window,qt=Lr.scrollMode,vr=Lr.block,pn=Lr.inline,fr=Lr.boundary,gr=Lr.skipOverflowHiddenElements,dn=typeof fr=="function"?fr:function(Qe){return Qe!==fr};if(!s($t))throw new TypeError("Invalid target");for(var Qt,sr,Qr=document.scrollingElement||document.documentElement,Cn=[],Fn=$t;s(Fn)&&dn(Fn);){if((Fn=(sr=(Qt=Fn).parentElement)==null?Qt.getRootNode().host||null:sr)===Qr){Cn.push(Fn);break}Fn!=null&&Fn===document.body&&h(Fn)&&!h(document.documentElement)||Fn!=null&&h(Fn,gr)&&Cn.push(Fn)}for(var ti=pt.visualViewport?pt.visualViewport.width:innerWidth,ki=pt.visualViewport?pt.visualViewport.height:innerHeight,Dn=window.scrollX||pageXOffset,Bn=window.scrollY||pageYOffset,Ft=$t.getBoundingClientRect(),vt=Ft.height,_e=Ft.width,Ne=Ft.top,Ie=Ft.right,Ze=Ft.bottom,ct=Ft.left,gt=vr==="start"||vr==="nearest"?Ne:vr==="end"?Ze:Ne+vt/2,kt=pn==="center"?ct+_e/2:pn==="end"?Ie:ct,xr=[],Hr=0;Hr<Cn.length;Hr++){var on=Cn[Hr],Nt=on.getBoundingClientRect(),ot=Nt.height,dt=Nt.width,Yt=Nt.top,Pt=Nt.right,Et=Nt.bottom,Bt=Nt.left;if(qt==="if-needed"&&Ne>=0&&ct>=0&&Ze<=ki&&Ie<=ti&&Ne>=Yt&&Ze<=Et&&ct>=Bt&&Ie<=Pt)return xr;var wt=getComputedStyle(on),Mt=parseInt(wt.borderLeftWidth,10),Nr=parseInt(wt.borderTopWidth,10),Tr=parseInt(wt.borderRightWidth,10),yr=parseInt(wt.borderBottomWidth,10),en=0,sn=0,Vn="offsetWidth"in on?on.offsetWidth-on.clientWidth-Mt-Tr:0,jn="offsetHeight"in on?on.offsetHeight-on.clientHeight-Nr-yr:0,ri="offsetWidth"in on?on.offsetWidth===0?0:dt/on.offsetWidth:0,ci="offsetHeight"in on?on.offsetHeight===0?0:ot/on.offsetHeight:0;if(Qr===on)en=vr==="start"?gt:vr==="end"?gt-ki:vr==="nearest"?g(Bn,Bn+ki,ki,Nr,yr,Bn+gt,Bn+gt+vt,vt):gt-ki/2,sn=pn==="start"?kt:pn==="center"?kt-ti/2:pn==="end"?kt-ti:g(Dn,Dn+ti,ti,Mt,Tr,Dn+kt,Dn+kt+_e,_e),en=Math.max(0,en+Bn),sn=Math.max(0,sn+Dn);else{en=vr==="start"?gt-Yt-Nr:vr==="end"?gt-Et+yr+jn:vr==="nearest"?g(Yt,Et,ot,Nr,yr+jn,gt,gt+vt,vt):gt-(Yt+ot/2)+jn/2,sn=pn==="start"?kt-Bt-Mt:pn==="center"?kt-(Bt+dt/2)+Vn/2:pn==="end"?kt-Pt+Tr+Vn:g(Bt,Pt,dt,Mt,Tr+Vn,kt,kt+_e,_e);var gi=on.scrollLeft,Ni=on.scrollTop;gt+=Ni-(en=Math.max(0,Math.min(Ni+en/ci,on.scrollHeight-ot/ci+jn))),kt+=gi-(sn=Math.max(0,Math.min(gi+sn/ri,on.scrollWidth-dt/ri+Vn)))}xr.push({el:on,top:en,left:sn})}return xr};function b(Fe){return Fe===Object(Fe)&&Object.keys(Fe).length!==0}function w(Fe,$t){$t===void 0&&($t="auto");var Lr="scrollBehavior"in document.body.style;Fe.forEach(function(pt){var qt=pt.el,vr=pt.top,pn=pt.left;qt.scroll&&Lr?qt.scroll({top:vr,left:pn,behavior:$t}):(qt.scrollTop=vr,qt.scrollLeft=pn)})}function x(Fe){return Fe===!1?{block:"end",inline:"nearest"}:b(Fe)?Fe:{block:"start",inline:"nearest"}}function T(Fe,$t){var Lr=Fe.isConnected||Fe.ownerDocument.documentElement.contains(Fe);if(b($t)&&typeof $t.behavior=="function")return $t.behavior(Lr?A(Fe,$t):[]);if(!Lr)return;var pt=x($t);return w(A(Fe,pt),pt.behavior)}var _=T;function E(Fe){return Fe===void 0||Fe===!1?[]:Array.isArray(Fe)?Fe:[Fe]}function C(Fe,$t){if(!Fe.length)return;var Lr=Fe.join("_");return $t?"".concat($t,"_").concat(Lr):Lr}function I(Fe){var $t=E(Fe);return $t.join("_")}function O(Fe){var $t=Object(n.useForm)(),Lr=v()($t,1),pt=Lr[0],qt=Object(d.useRef)({}),vr=Object(d.useMemo)(function(){return Fe||p()(p()({},pt),{__INTERNAL__:{itemRef:function(fr){return function(gr){var dn=I(fr);gr?qt.current[dn]=gr:delete qt.current[dn]}}},scrollToField:function(fr){var gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dn=E(fr),Qt=C(dn,vr.__INTERNAL__.name),sr=Qt?document.getElementById(Qt):null;sr&&_(sr,p()({scrollMode:"if-needed",block:"nearest"},gr))},getFieldInstance:function(fr){var gr=I(fr);return qt.current[gr]}})},[Fe,pt]);return[vr]}var F=i("3Nzz"),R=function(Fe,$t){var Lr={};for(var pt in Fe)Object.prototype.hasOwnProperty.call(Fe,pt)&&$t.indexOf(pt)<0&&(Lr[pt]=Fe[pt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,pt=Object.getOwnPropertySymbols(Fe);qt<pt.length;qt++)$t.indexOf(pt[qt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,pt[qt])&&(Lr[pt[qt]]=Fe[pt[qt]]);return Lr},B=function($t,Lr){var pt,qt=d.useContext(F.b),vr=d.useContext(t.b),pn=vr.getPrefixCls,fr=vr.direction,gr=$t.name,dn=$t.prefixCls,Qt=$t.className,sr=Qt===void 0?"":Qt,Qr=$t.size,Cn=Qr===void 0?qt:Qr,Fn=$t.form,ti=$t.colon,ki=$t.labelAlign,Dn=$t.labelCol,Bn=$t.wrapperCol,Ft=$t.hideRequiredMark,vt=$t.layout,_e=vt===void 0?"horizontal":vt,Ne=$t.scrollToFirstError,Ie=$t.requiredMark,Ze=$t.onFinishFailed,ct=R($t,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),gt=Object(d.useMemo)(function(){return Ie!==void 0?Ie:!Ft},[Ft,Ie]),kt=pn("form",dn),xr=o()(kt,(pt={},f()(pt,"".concat(kt,"-").concat(_e),!0),f()(pt,"".concat(kt,"-hide-required-mark"),gt===!1),f()(pt,"".concat(kt,"-rtl"),fr==="rtl"),f()(pt,"".concat(kt,"-").concat(Cn),Cn),pt),sr),Hr=O(Fn),on=v()(Hr,1),Nt=on[0],ot=Nt.__INTERNAL__;ot.name=gr;var dt=Object(d.useMemo)(function(){return{name:gr,labelAlign:ki,labelCol:Dn,wrapperCol:Bn,vertical:_e==="vertical",colon:ti,requiredMark:gt,itemRef:ot.itemRef}},[gr,ki,Dn,Bn,_e,ti,gt]);d.useImperativeHandle(Lr,function(){return Nt});var Yt=function(Et){Ze&&Ze(Et),Ne&&Et.errorFields.length&&Nt.scrollToField(Et.errorFields[0].name)};return d.createElement(F.a,{size:Cn},d.createElement(e.Provider,{value:dt},d.createElement(n.default,p()({id:gr},ct,{onFinishFailed:Yt,form:Nt,className:xr}))))},P=d.forwardRef(B),X=P,M=i("cDf5"),z=i.n(M),W=i("RIqP"),H=i.n(W),V=i("Y+p1"),Q=i.n(V),G=i("KW7l"),ee=i("c+Xe"),q=i("qrJ5"),se=i("CWQg"),re=i("uaoM"),Ae=i("/kpp"),Te=i("YMnH"),Re=i("ZvpZ"),Ge=function($t){var Lr=$t.prefixCls,pt=$t.label,qt=$t.htmlFor,vr=$t.labelCol,pn=$t.labelAlign,fr=$t.colon,gr=$t.required,dn=$t.requiredMark,Qt=Object(Te.b)("Form"),sr=v()(Qt,1),Qr=sr[0];return pt?d.createElement(e.Consumer,{key:"label"},function(Cn){var Fn,ti=Cn.vertical,ki=Cn.labelAlign,Dn=Cn.labelCol,Bn=Cn.colon,Ft,vt=vr||Dn||{},_e=pn||ki,Ne="".concat(Lr,"-item-label"),Ie=o()(Ne,_e==="left"&&"".concat(Ne,"-left"),vt.className),Ze=pt,ct=fr===!0||Bn!==!1&&fr!==!1,gt=ct&&!ti;gt&&typeof pt=="string"&&pt.trim()!==""&&(Ze=pt.replace(/[:|]\s*$/,"")),dn==="optional"&&!gr&&(Ze=d.createElement(d.Fragment,null,Ze,d.createElement("span",{className:"".concat(Lr,"-item-optional")},(Qr==null?void 0:Qr.optional)||((Ft=Re.a.Form)===null||Ft===void 0?void 0:Ft.optional))));var kt=o()((Fn={},f()(Fn,"".concat(Lr,"-item-required"),gr),f()(Fn,"".concat(Lr,"-item-required-mark-optional"),dn==="optional"),f()(Fn,"".concat(Lr,"-item-no-colon"),!ct),Fn));return d.createElement(Ae.a,p()({},vt,{className:Ie}),d.createElement("label",{htmlFor:qt,className:kt,title:typeof pt=="string"?pt:""},Ze))}):null},Ue=Ge,nt=i("gZBC"),Le=i.n(nt),le=i("kbBi"),Xe=i.n(le),pe=i("J84W"),Z=i.n(pe),Y=i("sKbD"),ne=i.n(Y),ce=i("YrtM"),ye=i("HTfv"),Ee=i("hkKa");function Ce(Fe,$t,Lr){var pt=d.useRef({errors:Fe,visible:!!Fe.length}),qt=Object(Ee.a)(),vr=function(){var fr=pt.current.visible,gr=!!Fe.length,dn=pt.current.errors;pt.current.errors=Fe,pt.current.visible=gr,fr!==gr?$t(gr):(dn.length!==Fe.length||dn.some(function(Qt,sr){return Qt!==Fe[sr]}))&&qt()};return d.useEffect(function(){if(!Lr){var pn=setTimeout(vr,10);return function(){return clearTimeout(pn)}}},[Fe]),Lr&&vr(),[pt.current.visible,pt.current.errors]}var ue={success:Z.a,warning:ne.a,error:Xe.a,validating:Le.a},ge=function($t){var Lr=$t.prefixCls,pt=$t.wrapperCol,qt=$t.children,vr=$t.help,pn=$t.errors,fr=$t.onDomErrorVisibleChange,gr=$t.hasFeedback,dn=$t.validateStatus,Qt=$t.extra,sr=Object(Ee.a)(),Qr="".concat(Lr,"-item"),Cn=d.useContext(e),Fn=pt||Cn.wrapperCol||{},ti=o()("".concat(Qr,"-control"),Fn.className),ki=Ce(pn,function(Ze){Ze&&Promise.resolve().then(function(){fr(!0)}),sr()},!!vr),Dn=v()(ki,2),Bn=Dn[0],Ft=Dn[1];d.useEffect(function(){return function(){fr(!1)}},[]);var vt=Object(ce.a)(function(){return Ft},Bn,function(Ze,ct){return ct}),_e=dn&&ue[dn],Ne=gr&&_e?d.createElement("span",{className:"".concat(Qr,"-children-icon")},d.createElement(_e,null)):null,Ie=p()({},Cn);return delete Ie.labelCol,delete Ie.wrapperCol,d.createElement(e.Provider,{value:Ie},d.createElement(Ae.a,p()({},Fn,{className:ti}),d.createElement("div",{className:"".concat(Qr,"-control-input")},d.createElement("div",{className:"".concat(Qr,"-control-input-content")},qt),Ne),d.createElement(ye.default,{motionDeadline:500,visible:Bn,motionName:"show-help",onLeaveEnd:function(){fr(!1)},motionAppear:!0,removeOnLeave:!0},function(Ze){var ct=Ze.className;return d.createElement("div",{className:o()("".concat(Qr,"-explain"),ct),key:"help"},vt.map(function(gt,kt){return d.createElement("div",{key:kt,role:"alert"},gt)}))}),Qt&&d.createElement("div",{className:"".concat(Qr,"-extra")},Qt)))},Oe=ge,Je=i("0n0R"),lt=i("xEkU"),tt=i.n(lt);function ke(Fe){var $t=d.useState(Fe),Lr=v()($t,2),pt=Lr[0],qt=Lr[1],vr=Object(d.useRef)(null),pn=Object(d.useRef)([]),fr=Object(d.useRef)(!1);d.useEffect(function(){return function(){fr.current=!0,tt.a.cancel(vr.current)}},[]);function gr(dn){if(fr.current)return;vr.current===null&&(pn.current=[],vr.current=tt()(function(){vr.current=null,qt(function(Qt){var sr=Qt;return pn.current.forEach(function(Qr){sr=Qr(sr)}),sr})})),pn.current.push(dn)}return[pt,gr]}function st(){var Fe=d.useContext(e),$t=Fe.itemRef,Lr=d.useRef({});function pt(qt,vr){var pn=vr&&z()(vr)==="object"&&vr.ref,fr=qt.join("_");return(Lr.current.name!==fr||Lr.current.originRef!==pn)&&(Lr.current.name=fr,Lr.current.originRef=pn,Lr.current.ref=Object(ee.a)($t(qt),pn)),Lr.current.ref}return pt}var Ve=function(Fe,$t){var Lr={};for(var pt in Fe)Object.prototype.hasOwnProperty.call(Fe,pt)&&$t.indexOf(pt)<0&&(Lr[pt]=Fe[pt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,pt=Object.getOwnPropertySymbols(Fe);qt<pt.length;qt++)$t.indexOf(pt[qt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,pt[qt])&&(Lr[pt[qt]]=Fe[pt[qt]]);return Lr},Ot=Object(se.a)("success","warning","error","validating",""),Ut=d.memo(function(Fe){var $t=Fe.children;return $t},function(Fe,$t){return Fe.value===$t.value&&Fe.update===$t.update});function ir(Fe){return Fe===null&&Object(re.a)(!1,"Form.Item","`null` is passed as `name` property"),!(Fe==null)}function lr(Fe){var $t=Fe.name,Lr=Fe.fieldKey,pt=Fe.noStyle,qt=Fe.dependencies,vr=Fe.prefixCls,pn=Fe.style,fr=Fe.className,gr=Fe.shouldUpdate,dn=Fe.hasFeedback,Qt=Fe.help,sr=Fe.rules,Qr=Fe.validateStatus,Cn=Fe.children,Fn=Fe.required,ti=Fe.label,ki=Fe.trigger,Dn=ki===void 0?"onChange":ki,Bn=Fe.validateTrigger,Ft=Fe.hidden,vt=Ve(Fe,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),_e=d.useRef(!1),Ne=d.useContext(t.b),Ie=Ne.getPrefixCls,Ze=d.useContext(e),ct=Ze.name,gt=Ze.requiredMark,kt=d.useContext(l),xr=kt.updateItemErrors,Hr=d.useState(!!Qt),on=v()(Hr,2),Nt=on[0],ot=on[1],dt=d.useRef(Qr),Yt=ke({}),Pt=v()(Yt,2),Et=Pt[0],Bt=Pt[1],wt=d.useContext(G.b),Mt=wt.validateTrigger,Nr=Bn!==void 0?Bn:Mt;function Tr(Qe){_e.current||ot(Qe)}var yr=ir($t),en=d.useRef([]);d.useEffect(function(){return function(){_e.current=!0,xr(en.current.join("__SPLIT__"),[])}},[]);var sn=Ie("form",vr),Vn=pt?xr:function(Qe,Se){Bt(function(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(Pe[Qe],Se)?Pe:p()(p()({},Pe),f()({},Qe,Se))})},jn=st();function ri(Qe,Se,Pe,He){var Ye,ze;if(pt&&!Ft)return Qe;var $e=[];Object.keys(Et).forEach(function(Er){$e=[].concat(H()($e),H()(Et[Er]||[]))});var St;Qt!=null?St=E(Qt):(St=Pe?Pe.errors:[],St=[].concat(H()(St),H()($e)));var ft="";Qr!==void 0?ft=Qr:(Pe==null?void 0:Pe.validating)?ft="validating":((ze=Pe==null?void 0:Pe.errors)===null||ze===void 0?void 0:ze.length)||$e.length?ft="error":(Pe==null?void 0:Pe.touched)&&(ft="success"),Nt&&Qt&&(dt.current=ft);var Ht=(Ye={},f()(Ye,"".concat(sn,"-item"),!0),f()(Ye,"".concat(sn,"-item-with-help"),Nt||Qt),f()(Ye,"".concat(fr),!!fr),f()(Ye,"".concat(sn,"-item-has-feedback"),ft&&dn),f()(Ye,"".concat(sn,"-item-has-success"),ft==="success"),f()(Ye,"".concat(sn,"-item-has-warning"),ft==="warning"),f()(Ye,"".concat(sn,"-item-has-error"),ft==="error"),f()(Ye,"".concat(sn,"-item-has-error-leave"),!Qt&&Nt&&dt.current==="error"),f()(Ye,"".concat(sn,"-item-is-validating"),ft==="validating"),f()(Ye,"".concat(sn,"-item-hidden"),Ft),Ye);return d.createElement(q.a,p()({className:o()(Ht),style:pn,key:"row"},Object(a.default)(vt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),d.createElement(Ue,p()({htmlFor:Se,required:He,requiredMark:gt},Fe,{prefixCls:sn})),d.createElement(Oe,p()({},Fe,Pe,{errors:St,prefixCls:sn,onDomErrorVisibleChange:Tr,validateStatus:ft}),d.createElement(l.Provider,{value:{updateItemErrors:Vn}},Qe)))}var ci=typeof Cn=="function",gi=d.useRef(0);if(gi.current+=1,!yr&&!ci&&!qt)return ri(Cn);var Ni={};return typeof ti=="string"&&(Ni.label=ti),d.createElement(n.Field,p()({},Fe,{messageVariables:Ni,trigger:Dn,validateTrigger:Nr,onReset:function(){Tr(!1)}}),function(Qe,Se,Pe){var He=Se.errors,Ye=E($t).length&&Se?Se.name:[],ze=C(Ye,ct);if(pt){if(en.current=H()(Ye),Lr){var $e=Array.isArray(Lr)?Lr:[Lr];en.current=[].concat(H()(Ye.slice(0,-1)),H()($e))}xr(en.current.join("__SPLIT__"),He)}var St=Fn!==void 0?Fn:!!(sr&&sr.some(function(tn){if(tn&&z()(tn)==="object"&&tn.required)return!0;if(typeof tn=="function"){var Zt=tn(Pe);return Zt&&Zt.required}return!1})),ft=p()({},Qe),Ht=null;if(Object(re.a)(!(gr&&qt),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Cn)&&yr)Object(re.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),Ht=Cn;else if(ci&&(!(gr||qt)||yr))Object(re.a)(!!(gr||qt),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(re.a)(!yr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(qt&&!ci&&!yr)Object(re.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Je.b)(Cn)){Object(re.a)(Cn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Er=p()(p()({},Cn.props),ft);Er.id||(Er.id=ze),Object(ee.c)(Cn)&&(Er.ref=jn(Ye,Cn));var Fr=new Set([].concat(H()(E(Dn)),H()(E(Nr))));Fr.forEach(function(tn){Er[tn]=function(){for(var Zt,Rn,vn,Un,hn,Wr=arguments.length,Kn=new Array(Wr),ei=0;ei<Wr;ei++)Kn[ei]=arguments[ei];(vn=ft[tn])===null||vn===void 0||(Zt=vn).call.apply(Zt,[ft].concat(Kn)),(hn=(Un=Cn.props)[tn])===null||hn===void 0||(Rn=hn).call.apply(Rn,[Un].concat(Kn))}}),Ht=d.createElement(Ut,{value:ft[Fe.valuePropName||"value"],update:gi.current},Object(Je.a)(Cn,Er))}else ci&&(gr||qt)&&!yr?Ht=Cn(Pe):(Object(re.a)(!Ye.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Ht=Cn);return ri(Ht,ze,Se,St)})}var Sr=lr,mt=function(Fe,$t){var Lr={};for(var pt in Fe)Object.prototype.hasOwnProperty.call(Fe,pt)&&$t.indexOf(pt)<0&&(Lr[pt]=Fe[pt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,pt=Object.getOwnPropertySymbols(Fe);qt<pt.length;qt++)$t.indexOf(pt[qt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,pt[qt])&&(Lr[pt[qt]]=Fe[pt[qt]]);return Lr},or=function($t){var Lr=$t.children,pt=mt($t,["children"]);return Object(re.a)(!!pt.name,"Form.List","Miss `name` prop."),d.createElement(n.List,pt,function(qt,vr){return Lr(qt.map(function(pn){return p()(p()({},pn),{fieldKey:pn.key})}),vr)})},et=or,ur=X;ur.Item=Sr,ur.List=et,ur.useForm=O,ur.Provider=r,ur.create=function(){Object(re.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var qr=D.a=ur},VpOo:function(k,D){function i(y,p){var S=p.x,v=p.y,m=p.width,f=p.height,d=p.r,u,o,n,t;m<0&&(S=S+m,m=-m),f<0&&(v=v+f,f=-f),typeof d=="number"?u=o=n=t=d:d instanceof Array?d.length===1?u=o=n=t=d[0]:d.length===2?(u=n=d[0],o=t=d[1]):d.length===3?(u=d[0],o=t=d[1],n=d[2]):(u=d[0],o=d[1],n=d[2],t=d[3]):u=o=n=t=0;var a;u+o>m&&(a=u+o,u*=m/a,o*=m/a),n+t>m&&(a=n+t,n*=m/a,t*=m/a),o+n>f&&(a=o+n,o*=f/a,n*=f/a),u+t>f&&(a=u+t,u*=f/a,t*=f/a),y.moveTo(S+u,v),y.lineTo(S+m-o,v),o!==0&&y.arc(S+m-o,v+o,o,-Math.PI/2,0),y.lineTo(S+m,v+f-n),n!==0&&y.arc(S+m-n,v+f-n,n,0,Math.PI/2),y.lineTo(S+t,v+f),t!==0&&y.arc(S+t,v+f-t,t,Math.PI/2,Math.PI),y.lineTo(S,v+u),u!==0&&y.arc(S+u,v+u,u,Math.PI,Math.PI*1.5)}D.buildPath=i},"VrN/":function(k,D,i){(function(y,p){k.exports=p()})(this,function(){"use strict";var y=navigator.userAgent,p=navigator.platform,S=/gecko\/\d/i.test(y),v=/MSIE \d/.test(y),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),f=/Edge\/(\d+)/.exec(y),d=v||m||f,u=d&&(v?document.documentMode||6:+(f||m)[1]),o=!f&&/WebKit\//.test(y),n=o&&/Qt\/\d+\.\d+/.test(y),t=!f&&/Chrome\//.test(y),a=/Opera\//.test(y),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(y),r=/PhantomJS/.test(y),s=!f&&/AppleWebKit/.test(y)&&/Mobile\/\w+/.test(y),c=/Android/.test(y),h=s||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(y),g=s||/Mac/.test(p),A=/\bCrOS\b/.test(y),b=/win/i.test(p),w=a&&y.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(a=!1,o=!0);var x=g&&(n||a&&(w==null||w<12.11)),T=S||d&&u>=9;function _(N){return new RegExp("(^|\\s)"+N+"(?:$|\\s)\\s*")}var E=function(U,ie){var oe=U.className,de=_(ie).exec(oe);if(de){var Be=oe.slice(de.index+de[0].length);U.className=oe.slice(0,de.index)+(Be?de[1]+Be:"")}};function C(N){for(var U=N.childNodes.length;U>0;--U)N.removeChild(N.firstChild);return N}function I(N,U){return C(N).appendChild(U)}function O(N,U,ie,oe){var de=document.createElement(N);if(ie&&(de.className=ie),oe&&(de.style.cssText=oe),typeof U=="string")de.appendChild(document.createTextNode(U));else if(U)for(var Be=0;Be<U.length;++Be)de.appendChild(U[Be]);return de}function F(N,U,ie,oe){var de=O(N,U,ie,oe);return de.setAttribute("role","presentation"),de}var R;document.createRange?R=function(U,ie,oe,de){var Be=document.createRange();return Be.setEnd(de||U,oe),Be.setStart(U,ie),Be}:R=function(U,ie,oe){var de=document.body.createTextRange();try{de.moveToElementText(U.parentNode)}catch(Be){return de}return de.collapse(!0),de.moveEnd("character",oe),de.moveStart("character",ie),de};function B(N,U){if(U.nodeType==3&&(U=U.parentNode),N.contains)return N.contains(U);do if(U.nodeType==11&&(U=U.host),U==N)return!0;while(U=U.parentNode)}function P(){var N;try{N=document.activeElement}catch(U){N=document.body||null}for(;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;return N}function X(N,U){var ie=N.className;_(U).test(ie)||(N.className+=(ie?" ":"")+U)}function M(N,U){for(var ie=N.split(" "),oe=0;oe<ie.length;oe++)ie[oe]&&!_(ie[oe]).test(U)&&(U+=" "+ie[oe]);return U}var z=function(U){U.select()};s?z=function(U){U.selectionStart=0,U.selectionEnd=U.value.length}:d&&(z=function(U){try{U.select()}catch(ie){}});function W(N){var U=Array.prototype.slice.call(arguments,1);return function(){return N.apply(null,U)}}function H(N,U,ie){U||(U={});for(var oe in N)N.hasOwnProperty(oe)&&(ie!==!1||!U.hasOwnProperty(oe))&&(U[oe]=N[oe]);return U}function V(N,U,ie,oe,de){U==null&&(U=N.search(/[^\s\u00a0]/),U==-1&&(U=N.length));for(var Be=oe||0,At=de||0;;){var Kt=N.indexOf(" ",Be);if(Kt<0||Kt>=U)return At+(U-Be);At+=Kt-Be,At+=ie-At%ie,Be=Kt+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};Q.prototype.onTimeout=function(N){N.id=0,N.time<=+new Date?N.f():setTimeout(N.handler,N.time-+new Date)},Q.prototype.set=function(N,U){this.f=U;var ie=+new Date+N;(!this.id||ie<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,N),this.time=ie)};function G(N,U){for(var ie=0;ie<N.length;++ie)if(N[ie]==U)return ie;return-1}var ee=50,q={toString:function(){return"CodeMirror.Pass"}},se={scroll:!1},re={origin:"*mouse"},Ae={origin:"+move"};function Te(N,U,ie){for(var oe=0,de=0;;){var Be=N.indexOf(" ",oe);Be==-1&&(Be=N.length);var At=Be-oe;if(Be==N.length||de+At>=U)return oe+Math.min(At,U-de);if(de+=Be-oe,de+=ie-de%ie,oe=Be+1,de>=U)return oe}}var Re=[""];function Ge(N){for(;Re.length<=N;)Re.push(Ue(Re)+" ");return Re[N]}function Ue(N){return N[N.length-1]}function nt(N,U){for(var ie=[],oe=0;oe<N.length;oe++)ie[oe]=U(N[oe],oe);return ie}function Le(N,U,ie){for(var oe=0,de=ie(U);oe<N.length&&ie(N[oe])<=de;)oe++;N.splice(oe,0,U)}function le(){}function Xe(N,U){var ie;return Object.create?ie=Object.create(N):(le.prototype=N,ie=new le),U&&H(U,ie),ie}var pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||pe.test(N))}function Y(N,U){return U?U.source.indexOf("\\w")>-1&&Z(N)?!0:U.test(N):Z(N)}function ne(N){for(var U in N)if(N.hasOwnProperty(U)&&N[U])return!1;return!0}var ce=/[\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 ye(N){return N.charCodeAt(0)>=768&&ce.test(N)}function Ee(N,U,ie){for(;(ie<0?U>0:U<N.length)&&ye(N.charAt(U));)U+=ie;return U}function Ce(N,U,ie){for(var oe=U>ie?-1:1;;){if(U==ie)return U;var de=(U+ie)/2,Be=oe<0?Math.ceil(de):Math.floor(de);if(Be==U)return N(Be)?U:ie;N(Be)?ie=Be:U=Be+oe}}function ue(N,U,ie,oe){if(!N)return oe(U,ie,"ltr",0);for(var de=!1,Be=0;Be<N.length;++Be){var At=N[Be];(At.from<ie&&At.to>U||U==ie&&At.to==U)&&(oe(Math.max(At.from,U),Math.min(At.to,ie),At.level==1?"rtl":"ltr",Be),de=!0)}de||oe(U,ie,"ltr")}var ge=null;function Oe(N,U,ie){var oe;ge=null;for(var de=0;de<N.length;++de){var Be=N[de];if(Be.from<U&&Be.to>U)return de;Be.to==U&&(Be.from!=Be.to&&ie=="before"?oe=de:ge=de),Be.from==U&&(Be.from!=Be.to&&ie!="before"?oe=de:ge=de)}return oe!=null?oe:ge}var Je=function(){var N="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",U="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(pr){return pr<=247?N.charAt(pr):1424<=pr&&pr<=1524?"R":1536<=pr&&pr<=1785?U.charAt(pr-1536):1774<=pr&&pr<=2220?"r":8192<=pr&&pr<=8203?"w":pr==8204?"b":"L"}var oe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,de=/[stwN]/,Be=/[LRr]/,At=/[Lb1n]/,Kt=/[1n]/;function rr(pr,Tn,zn){this.level=pr,this.from=Tn,this.to=zn}return function(pr,Tn){var zn=Tn=="ltr"?"L":"R";if(pr.length==0||Tn=="ltr"&&!oe.test(pr))return!1;for(var li=pr.length,di=[],Ki=0;Ki<li;++Ki)di.push(ie(pr.charCodeAt(Ki)));for(var fa=0,Ta=zn;fa<li;++fa){var ba=di[fa];ba=="m"?di[fa]=Ta:Ta=ba}for(var ya=0,Ha=zn;ya<li;++ya){var Ja=di[ya];Ja=="1"&&Ha=="r"?di[ya]="n":Be.test(Ja)&&(Ha=Ja,Ja=="r"&&(di[ya]="R"))}for(var Uo=1,Ao=di[0];Uo<li-1;++Uo){var us=di[Uo];us=="+"&&Ao=="1"&&di[Uo+1]=="1"?di[Uo]="1":us==","&&Ao==di[Uo+1]&&(Ao=="1"||Ao=="n")&&(di[Uo]=Ao),Ao=us}for(var Ns=0;Ns<li;++Ns){var rl=di[Ns];if(rl==",")di[Ns]="N";else if(rl=="%"){var Hs=void 0;for(Hs=Ns+1;Hs<li&&di[Hs]=="%";++Hs);for(var Ol=Ns&&di[Ns-1]=="!"||Hs<li&&di[Hs]=="1"?"1":"N",Fl=Ns;Fl<Hs;++Fl)di[Fl]=Ol;Ns=Hs-1}}for(var pl=0,Bl=zn;pl<li;++pl){var Il=di[pl];Bl=="L"&&Il=="1"?di[pl]="L":Be.test(Il)&&(Bl=Il)}for(var Ma=0;Ma<li;++Ma)if(de.test(di[Ma])){var $s=void 0;for($s=Ma+1;$s<li&&de.test(di[$s]);++$s);for(var Ys=(Ma?di[Ma-1]:zn)=="L",sl=($s<li?di[$s]:zn)=="L",Bu=Ys==sl?Ys?"L":"R":zn,ys=Ma;ys<$s;++ys)di[ys]=Bu;Ma=$s-1}for(var rs=[],lu,Rl=0;Rl<li;)if(At.test(di[Rl])){var Uu=Rl;for(++Rl;Rl<li&&At.test(di[Rl]);++Rl);rs.push(new rr(0,Uu,Rl))}else{var Eu=Rl,uu=rs.length,ku=Tn=="rtl"?1:0;for(++Rl;Rl<li&&di[Rl]!="L";++Rl);for(var Vl=Eu;Vl<Rl;)if(Kt.test(di[Vl])){Eu<Vl&&(rs.splice(uu,0,new rr(1,Eu,Vl)),uu+=ku);var Cu=Vl;for(++Vl;Vl<Rl&&Kt.test(di[Vl]);++Vl);rs.splice(uu,0,new rr(2,Cu,Vl)),uu+=ku,Eu=Vl}else++Vl;Eu<Rl&&rs.splice(uu,0,new rr(1,Eu,Rl))}return Tn=="ltr"&&(rs[0].level==1&&(lu=pr.match(/^\s+/))&&(rs[0].from=lu[0].length,rs.unshift(new rr(0,0,lu[0].length))),Ue(rs).level==1&&(lu=pr.match(/\s+$/))&&(Ue(rs).to-=lu[0].length,rs.push(new rr(0,li-lu[0].length,li)))),Tn=="rtl"?rs.reverse():rs}}();function lt(N,U){var ie=N.order;return ie==null&&(ie=N.order=Je(N.text,U)),ie}var tt=[],ke=function(U,ie,oe){if(U.addEventListener)U.addEventListener(ie,oe,!1);else if(U.attachEvent)U.attachEvent("on"+ie,oe);else{var de=U._handlers||(U._handlers={});de[ie]=(de[ie]||tt).concat(oe)}};function st(N,U){return N._handlers&&N._handlers[U]||tt}function Ve(N,U,ie){if(N.removeEventListener)N.removeEventListener(U,ie,!1);else if(N.detachEvent)N.detachEvent("on"+U,ie);else{var oe=N._handlers,de=oe&&oe[U];if(de){var Be=G(de,ie);Be>-1&&(oe[U]=de.slice(0,Be).concat(de.slice(Be+1)))}}}function Ot(N,U){var ie=st(N,U);if(!ie.length)return;for(var oe=Array.prototype.slice.call(arguments,2),de=0;de<ie.length;++de)ie[de].apply(null,oe)}function Ut(N,U,ie){return typeof U=="string"&&(U={type:U,preventDefault:function(){this.defaultPrevented=!0}}),Ot(N,ie||U.type,N,U),et(U)||U.codemirrorIgnore}function ir(N){var U=N._handlers&&N._handlers.cursorActivity;if(!U)return;for(var ie=N.curOp.cursorActivityHandlers||(N.curOp.cursorActivityHandlers=[]),oe=0;oe<U.length;++oe)G(ie,U[oe])==-1&&ie.push(U[oe])}function lr(N,U){return st(N,U).length>0}function Sr(N){N.prototype.on=function(U,ie){ke(this,U,ie)},N.prototype.off=function(U,ie){Ve(this,U,ie)}}function mt(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function or(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function et(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function ur(N){mt(N),or(N)}function qr(N){return N.target||N.srcElement}function Fe(N){var U=N.which;return U==null&&(N.button&1?U=1:N.button&2?U=3:N.button&4&&(U=2)),g&&N.ctrlKey&&U==1&&(U=3),U}var $t=function(){if(d&&u<9)return!1;var N=O("div");return"draggable"in N||"dragDrop"in N}(),Lr;function pt(N){if(Lr==null){var U=O("span","\u200B");I(N,O("span",[U,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(Lr=U.offsetWidth<=1&&U.offsetHeight>2&&!(d&&u<8))}var ie=Lr?O("span","\u200B"):O("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var qt;function vr(N){if(qt!=null)return qt;var U=I(N,document.createTextNode("A\u062EA")),ie=R(U,0,1).getBoundingClientRect(),oe=R(U,1,2).getBoundingClientRect();return C(N),!ie||ie.left==ie.right?!1:qt=oe.right-ie.right<3}var pn=`
b`.split(/\n/).length!=3?function(N){for(var U=0,ie=[],oe=N.length;U<=oe;){var de=N.indexOf(`
`,U);de==-1&&(de=N.length);var Be=N.slice(U,N.charAt(de-1)=="\r"?de-1:de),At=Be.indexOf("\r");At!=-1?(ie.push(Be.slice(0,At)),U+=At+1):(ie.push(Be),U=de+1)}return ie}:function(N){return N.split(/\r\n?|\n/)},fr=window.getSelection?function(N){try{return N.selectionStart!=N.selectionEnd}catch(U){return!1}}:function(N){var U;try{U=N.ownerDocument.selection.createRange()}catch(ie){}return!U||U.parentElement()!=N?!1:U.compareEndPoints("StartToEnd",U)!=0},gr=function(){var N=O("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),dn=null;function Qt(N){if(dn!=null)return dn;var U=I(N,O("span","x")),ie=U.getBoundingClientRect(),oe=R(U,0,1).getBoundingClientRect();return dn=Math.abs(ie.left-oe.left)>1}var sr={},Qr={};function Cn(N,U){arguments.length>2&&(U.dependencies=Array.prototype.slice.call(arguments,2)),sr[N]=U}function Fn(N,U){Qr[N]=U}function ti(N){if(typeof N=="string"&&Qr.hasOwnProperty(N))N=Qr[N];else if(N&&typeof N.name=="string"&&Qr.hasOwnProperty(N.name)){var U=Qr[N.name];typeof U=="string"&&(U={name:U}),N=Xe(U,N),N.name=U.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return ti("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return ti("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function ki(N,U){U=ti(U);var ie=sr[U.name];if(!ie)return ki(N,"text/plain");var oe=ie(N,U);if(Dn.hasOwnProperty(U.name)){var de=Dn[U.name];for(var Be in de){if(!de.hasOwnProperty(Be))continue;oe.hasOwnProperty(Be)&&(oe["_"+Be]=oe[Be]),oe[Be]=de[Be]}}if(oe.name=U.name,U.helperType&&(oe.helperType=U.helperType),U.modeProps)for(var At in U.modeProps)oe[At]=U.modeProps[At];return oe}var Dn={};function Bn(N,U){var ie=Dn.hasOwnProperty(N)?Dn[N]:Dn[N]={};H(U,ie)}function Ft(N,U){if(U===!0)return U;if(N.copyState)return N.copyState(U);var ie={};for(var oe in U){var de=U[oe];de instanceof Array&&(de=de.concat([])),ie[oe]=de}return ie}function vt(N,U){for(var ie;N.innerMode&&!(ie=N.innerMode(U),!ie||ie.mode==N);)U=ie.state,N=ie.mode;return ie||{mode:N,state:U}}function _e(N,U,ie){return N.startState?N.startState(U,ie):!0}var Ne=function(U,ie,oe){this.pos=this.start=0,this.string=U,this.tabSize=ie||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=oe};Ne.prototype.eol=function(){return this.pos>=this.string.length},Ne.prototype.sol=function(){return this.pos==this.lineStart},Ne.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ne.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ne.prototype.eat=function(N){var U=this.string.charAt(this.pos),ie;if(typeof N=="string"?ie=U==N:ie=U&&(N.test?N.test(U):N(U)),ie)return++this.pos,U},Ne.prototype.eatWhile=function(N){for(var U=this.pos;this.eat(N););return this.pos>U},Ne.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},Ne.prototype.skipToEnd=function(){this.pos=this.string.length},Ne.prototype.skipTo=function(N){var U=this.string.indexOf(N,this.pos);if(U>-1)return this.pos=U,!0},Ne.prototype.backUp=function(N){this.pos-=N},Ne.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)},Ne.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Ne.prototype.match=function(N,U,ie){if(typeof N=="string"){var oe=function(Kt){return ie?Kt.toLowerCase():Kt},de=this.string.substr(this.pos,N.length);if(oe(de)==oe(N))return U!==!1&&(this.pos+=N.length),!0}else{var Be=this.string.slice(this.pos).match(N);return Be&&Be.index>0?null:(Be&&U!==!1&&(this.pos+=Be[0].length),Be)}},Ne.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ne.prototype.hideFirstChars=function(N,U){this.lineStart+=N;try{return U()}finally{this.lineStart-=N}},Ne.prototype.lookAhead=function(N){var U=this.lineOracle;return U&&U.lookAhead(N)},Ne.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Ie(N,U){if(U-=N.first,U<0||U>=N.size)throw new Error("There is no line "+(U+N.first)+" in the document.");for(var ie=N;!ie.lines;)for(var oe=0;;++oe){var de=ie.children[oe],Be=de.chunkSize();if(U<Be){ie=de;break}U-=Be}return ie.lines[U]}function Ze(N,U,ie){var oe=[],de=U.line;return N.iter(U.line,ie.line+1,function(Be){var At=Be.text;de==ie.line&&(At=At.slice(0,ie.ch)),de==U.line&&(At=At.slice(U.ch)),oe.push(At),++de}),oe}function ct(N,U,ie){var oe=[];return N.iter(U,ie,function(de){oe.push(de.text)}),oe}function gt(N,U){var ie=U-N.height;if(ie)for(var oe=N;oe;oe=oe.parent)oe.height+=ie}function kt(N){if(N.parent==null)return null;for(var U=N.parent,ie=G(U.lines,N),oe=U.parent;oe;U=oe,oe=oe.parent)for(var de=0;!(oe.children[de]==U);++de)ie+=oe.children[de].chunkSize();return ie+U.first}function xr(N,U){var ie=N.first;e:do{for(var oe=0;oe<N.children.length;++oe){var de=N.children[oe],Be=de.height;if(U<Be){N=de;continue e}U-=Be,ie+=de.chunkSize()}return ie}while(!N.lines);for(var At=0;At<N.lines.length;++At){var Kt=N.lines[At],rr=Kt.height;if(U<rr)break;U-=rr}return ie+At}function Hr(N,U){return U>=N.first&&U<N.first+N.size}function on(N,U){return String(N.lineNumberFormatter(U+N.firstLineNumber))}function Nt(N,U,ie){if(ie===void 0&&(ie=null),!(this instanceof Nt))return new Nt(N,U,ie);this.line=N,this.ch=U,this.sticky=ie}function ot(N,U){return N.line-U.line||N.ch-U.ch}function dt(N,U){return N.sticky==U.sticky&&ot(N,U)==0}function Yt(N){return Nt(N.line,N.ch)}function Pt(N,U){return ot(N,U)<0?U:N}function Et(N,U){return ot(N,U)<0?N:U}function Bt(N,U){return Math.max(N.first,Math.min(U,N.first+N.size-1))}function wt(N,U){if(U.line<N.first)return Nt(N.first,0);var ie=N.first+N.size-1;return U.line>ie?Nt(ie,Ie(N,ie).text.length):Mt(U,Ie(N,U.line).text.length)}function Mt(N,U){var ie=N.ch;return ie==null||ie>U?Nt(N.line,U):ie<0?Nt(N.line,0):N}function Nr(N,U){for(var ie=[],oe=0;oe<U.length;oe++)ie[oe]=wt(N,U[oe]);return ie}var Tr=function(U,ie){this.state=U,this.lookAhead=ie},yr=function(U,ie,oe,de){this.state=ie,this.doc=U,this.line=oe,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};yr.prototype.lookAhead=function(N){var U=this.doc.getLine(this.line+N);return U!=null&&N>this.maxLookAhead&&(this.maxLookAhead=N),U},yr.prototype.baseToken=function(N){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=N;)this.baseTokenPos+=2;var U=this.baseTokens[this.baseTokenPos+1];return{type:U&&U.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-N}},yr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yr.fromSaved=function(N,U,ie){return U instanceof Tr?new yr(N,Ft(N.mode,U.state),ie,U.lookAhead):new yr(N,Ft(N.mode,U),ie)},yr.prototype.save=function(N){var U=N!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tr(U,this.maxLookAhead):U};function en(N,U,ie,oe){var de=[N.state.modeGen],Be={};Se(N,U.text,N.doc.mode,ie,function(pr,Tn){return de.push(pr,Tn)},Be,oe);for(var At=ie.state,Kt=function(Tn){ie.baseTokens=de;var zn=N.state.overlays[Tn],li=1,di=0;ie.state=!0,Se(N,U.text,zn.mode,ie,function(Ki,fa){for(var Ta=li;di<Ki;){var ba=de[li];ba>Ki&&de.splice(li,1,Ki,de[li+1],ba),li+=2,di=Math.min(Ki,ba)}if(!fa)return;if(zn.opaque)de.splice(Ta,li-Ta,Ki,"overlay "+fa),li=Ta+2;else for(;Ta<li;Ta+=2){var ya=de[Ta+1];de[Ta+1]=(ya?ya+" ":"")+"overlay "+fa}},Be),ie.state=At,ie.baseTokens=null,ie.baseTokenPos=1},rr=0;rr<N.state.overlays.length;++rr)Kt(rr);return{styles:de,classes:Be.bgClass||Be.textClass?Be:null}}function sn(N,U,ie){if(!U.styles||U.styles[0]!=N.state.modeGen){var oe=Vn(N,kt(U)),de=U.text.length>N.options.maxHighlightLength&&Ft(N.doc.mode,oe.state),Be=en(N,U,oe);de&&(oe.state=de),U.stateAfter=oe.save(!de),U.styles=Be.styles,Be.classes?U.styleClasses=Be.classes:U.styleClasses&&(U.styleClasses=null),ie===N.doc.highlightFrontier&&(N.doc.modeFrontier=Math.max(N.doc.modeFrontier,++N.doc.highlightFrontier))}return U.styles}function Vn(N,U,ie){var oe=N.doc,de=N.display;if(!oe.mode.startState)return new yr(oe,!0,U);var Be=Pe(N,U,ie),At=Be>oe.first&&Ie(oe,Be-1).stateAfter,Kt=At?yr.fromSaved(oe,At,Be):new yr(oe,_e(oe.mode),Be);return oe.iter(Be,U,function(rr){jn(N,rr.text,Kt);var pr=Kt.line;rr.stateAfter=pr==U-1||pr%5==0||pr>=de.viewFrom&&pr<de.viewTo?Kt.save():null,Kt.nextLine()}),ie&&(oe.modeFrontier=Kt.line),Kt}function jn(N,U,ie,oe){var de=N.doc.mode,Be=new Ne(U,N.options.tabSize,ie);for(Be.start=Be.pos=oe||0,U==""&&ri(de,ie.state);!Be.eol();)ci(de,Be,ie.state),Be.start=Be.pos}function ri(N,U){if(N.blankLine)return N.blankLine(U);if(!N.innerMode)return;var ie=vt(N,U);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}function ci(N,U,ie,oe){for(var de=0;de<10;de++){oe&&(oe[0]=vt(N,ie).mode);var Be=N.token(U,ie);if(U.pos>U.start)return Be}throw new Error("Mode "+N.name+" failed to advance stream.")}var gi=function(U,ie,oe){this.start=U.start,this.end=U.pos,this.string=U.current(),this.type=ie||null,this.state=oe};function Ni(N,U,ie,oe){var de=N.doc,Be=de.mode,At;U=wt(de,U);var Kt=Ie(de,U.line),rr=Vn(N,U.line,ie),pr=new Ne(Kt.text,N.options.tabSize,rr),Tn;for(oe&&(Tn=[]);(oe||pr.pos<U.ch)&&!pr.eol();)pr.start=pr.pos,At=ci(Be,pr,rr.state),oe&&Tn.push(new gi(pr,At,Ft(de.mode,rr.state)));return oe?Tn:new gi(pr,At,rr.state)}function Qe(N,U){if(N)for(;;){var ie=N.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ie)break;N=N.slice(0,ie.index)+N.slice(ie.index+ie[0].length);var oe=ie[1]?"bgClass":"textClass";U[oe]==null?U[oe]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(U[oe])||(U[oe]+=" "+ie[2])}return N}function Se(N,U,ie,oe,de,Be,At){var Kt=ie.flattenSpans;Kt==null&&(Kt=N.options.flattenSpans);var rr=0,pr=null,Tn=new Ne(U,N.options.tabSize,oe),zn,li=N.options.addModeClass&&[null];for(U==""&&Qe(ri(ie,oe.state),Be);!Tn.eol();){if(Tn.pos>N.options.maxHighlightLength?(Kt=!1,At&&jn(N,U,oe,Tn.pos),Tn.pos=U.length,zn=null):zn=Qe(ci(ie,Tn,oe.state,li),Be),li){var di=li[0].name;di&&(zn="m-"+(zn?di+" "+zn:di))}if(!Kt||pr!=zn){for(;rr<Tn.start;)rr=Math.min(Tn.start,rr+5e3),de(rr,pr);pr=zn}Tn.start=Tn.pos}for(;rr<Tn.pos;){var Ki=Math.min(Tn.pos,rr+5e3);de(Ki,pr),rr=Ki}}function Pe(N,U,ie){for(var oe,de,Be=N.doc,At=ie?-1:U-(N.doc.mode.innerMode?1e3:100),Kt=U;Kt>At;--Kt){if(Kt<=Be.first)return Be.first;var rr=Ie(Be,Kt-1),pr=rr.stateAfter;if(pr&&(!ie||Kt+(pr instanceof Tr?pr.lookAhead:0)<=Be.modeFrontier))return Kt;var Tn=V(rr.text,null,N.options.tabSize);(de==null||oe>Tn)&&(de=Kt-1,oe=Tn)}return de}function He(N,U){if(N.modeFrontier=Math.min(N.modeFrontier,U),N.highlightFrontier<U-10)return;for(var ie=N.first,oe=U-1;oe>ie;oe--){var de=Ie(N,oe).stateAfter;if(de&&(!(de instanceof Tr)||oe+de.lookAhead<U)){ie=oe+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ie)}var Ye=!1,ze=!1;function $e(){Ye=!0}function St(){ze=!0}function ft(N,U,ie){this.marker=N,this.from=U,this.to=ie}function Ht(N,U){if(N)for(var ie=0;ie<N.length;++ie){var oe=N[ie];if(oe.marker==U)return oe}}function Er(N,U){for(var ie,oe=0;oe<N.length;++oe)N[oe]!=U&&(ie||(ie=[])).push(N[oe]);return ie}function Fr(N,U){N.markedSpans=N.markedSpans?N.markedSpans.concat([U]):[U],U.marker.attachLine(N)}function tn(N,U,ie){var oe;if(N)for(var de=0;de<N.length;++de){var Be=N[de],At=Be.marker,Kt=Be.from==null||(At.inclusiveLeft?Be.from<=U:Be.from<U);if(Kt||Be.from==U&&At.type=="bookmark"&&(!ie||!Be.marker.insertLeft)){var rr=Be.to==null||(At.inclusiveRight?Be.to>=U:Be.to>U);(oe||(oe=[])).push(new ft(At,Be.from,rr?null:Be.to))}}return oe}function Zt(N,U,ie){var oe;if(N)for(var de=0;de<N.length;++de){var Be=N[de],At=Be.marker,Kt=Be.to==null||(At.inclusiveRight?Be.to>=U:Be.to>U);if(Kt||Be.from==U&&At.type=="bookmark"&&(!ie||Be.marker.insertLeft)){var rr=Be.from==null||(At.inclusiveLeft?Be.from<=U:Be.from<U);(oe||(oe=[])).push(new ft(At,rr?null:Be.from-U,Be.to==null?null:Be.to-U))}}return oe}function Rn(N,U){if(U.full)return null;var ie=Hr(N,U.from.line)&&Ie(N,U.from.line).markedSpans,oe=Hr(N,U.to.line)&&Ie(N,U.to.line).markedSpans;if(!ie&&!oe)return null;var de=U.from.ch,Be=U.to.ch,At=ot(U.from,U.to)==0,Kt=tn(ie,de,At),rr=Zt(oe,Be,At),pr=U.text.length==1,Tn=Ue(U.text).length+(pr?de:0);if(Kt)for(var zn=0;zn<Kt.length;++zn){var li=Kt[zn];if(li.to==null){var di=Ht(rr,li.marker);di?pr&&(li.to=di.to==null?null:di.to+Tn):li.to=de}}if(rr)for(var Ki=0;Ki<rr.length;++Ki){var fa=rr[Ki];if(fa.to!=null&&(fa.to+=Tn),fa.from==null){var Ta=Ht(Kt,fa.marker);Ta||(fa.from=Tn,pr&&(Kt||(Kt=[])).push(fa))}else fa.from+=Tn,pr&&(Kt||(Kt=[])).push(fa)}Kt&&(Kt=vn(Kt)),rr&&rr!=Kt&&(rr=vn(rr));var ba=[Kt];if(!pr){var ya=U.text.length-2,Ha;if(ya>0&&Kt)for(var Ja=0;Ja<Kt.length;++Ja)Kt[Ja].to==null&&(Ha||(Ha=[])).push(new ft(Kt[Ja].marker,null,null));for(var Uo=0;Uo<ya;++Uo)ba.push(Ha);ba.push(rr)}return ba}function vn(N){for(var U=0;U<N.length;++U){var ie=N[U];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&N.splice(U--,1)}return N.length?N:null}function Un(N,U,ie){var oe=null;if(N.iter(U.line,ie.line+1,function(di){if(di.markedSpans)for(var Ki=0;Ki<di.markedSpans.length;++Ki){var fa=di.markedSpans[Ki].marker;fa.readOnly&&(!oe||G(oe,fa)==-1)&&(oe||(oe=[])).push(fa)}}),!oe)return null;for(var de=[{from:U,to:ie}],Be=0;Be<oe.length;++Be)for(var At=oe[Be],Kt=At.find(0),rr=0;rr<de.length;++rr){var pr=de[rr];if(ot(pr.to,Kt.from)<0||ot(pr.from,Kt.to)>0)continue;var Tn=[rr,1],zn=ot(pr.from,Kt.from),li=ot(pr.to,Kt.to);(zn<0||!At.inclusiveLeft&&!zn)&&Tn.push({from:pr.from,to:Kt.from}),(li>0||!At.inclusiveRight&&!li)&&Tn.push({from:Kt.to,to:pr.to}),de.splice.apply(de,Tn),rr+=Tn.length-3}return de}function hn(N){var U=N.markedSpans;if(!U)return;for(var ie=0;ie<U.length;++ie)U[ie].marker.detachLine(N);N.markedSpans=null}function Wr(N,U){if(!U)return;for(var ie=0;ie<U.length;++ie)U[ie].marker.attachLine(N);N.markedSpans=U}function Kn(N){return N.inclusiveLeft?-1:0}function ei(N){return N.inclusiveRight?1:0}function Si(N,U){var ie=N.lines.length-U.lines.length;if(ie!=0)return ie;var oe=N.find(),de=U.find(),Be=ot(oe.from,de.from)||Kn(N)-Kn(U);if(Be)return-Be;var At=ot(oe.to,de.to)||ei(N)-ei(U);return At||U.id-N.id}function Vr(N,U){var ie=ze&&N.markedSpans,oe;if(ie)for(var de=void 0,Be=0;Be<ie.length;++Be)de=ie[Be],de.marker.collapsed&&(U?de.from:de.to)==null&&(!oe||Si(oe,de.marker)<0)&&(oe=de.marker);return oe}function fn(N){return Vr(N,!0)}function kn(N){return Vr(N,!1)}function It(N,U){var ie=ze&&N.markedSpans,oe;if(ie)for(var de=0;de<ie.length;++de){var Be=ie[de];Be.marker.collapsed&&(Be.from==null||Be.from<U)&&(Be.to==null||Be.to>U)&&(!oe||Si(oe,Be.marker)<0)&&(oe=Be.marker)}return oe}function yt(N,U,ie,oe,de){var Be=Ie(N,U),At=ze&&Be.markedSpans;if(At)for(var Kt=0;Kt<At.length;++Kt){var rr=At[Kt];if(!rr.marker.collapsed)continue;var pr=rr.marker.find(0),Tn=ot(pr.from,ie)||Kn(rr.marker)-Kn(de),zn=ot(pr.to,oe)||ei(rr.marker)-ei(de);if(Tn>=0&&zn<=0||Tn<=0&&zn>=0)continue;if(Tn<=0&&(rr.marker.inclusiveRight&&de.inclusiveLeft?ot(pr.to,ie)>=0:ot(pr.to,ie)>0)||Tn>=0&&(rr.marker.inclusiveRight&&de.inclusiveLeft?ot(pr.from,oe)<=0:ot(pr.from,oe)<0))return!0}}function xt(N){for(var U;U=fn(N);)N=U.find(-1,!0).line;return N}function Tt(N){for(var U;U=kn(N);)N=U.find(1,!0).line;return N}function Lt(N){for(var U,ie;U=kn(N);)N=U.find(1,!0).line,(ie||(ie=[])).push(N);return ie}function _t(N,U){var ie=Ie(N,U),oe=xt(ie);return ie==oe?U:kt(oe)}function Xt(N,U){if(U>N.lastLine())return U;var ie=Ie(N,U),oe;if(!er(N,ie))return U;for(;oe=kn(ie);)ie=oe.find(1,!0).line;return kt(ie)+1}function er(N,U){var ie=ze&&U.markedSpans;if(ie)for(var oe=void 0,de=0;de<ie.length;++de){if(oe=ie[de],!oe.marker.collapsed)continue;if(oe.from==null)return!0;if(oe.marker.widgetNode)continue;if(oe.from==0&&oe.marker.inclusiveLeft&&nr(N,U,oe))return!0}}function nr(N,U,ie){if(ie.to==null){var oe=ie.marker.find(1,!0);return nr(N,oe.line,Ht(oe.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==U.text.length)return!0;for(var de=void 0,Be=0;Be<U.markedSpans.length;++Be)if(de=U.markedSpans[Be],de.marker.collapsed&&!de.marker.widgetNode&&de.from==ie.to&&(de.to==null||de.to!=ie.from)&&(de.marker.inclusiveLeft||ie.marker.inclusiveRight)&&nr(N,U,de))return!0}function br(N){N=xt(N);for(var U=0,ie=N.parent,oe=0;oe<ie.lines.length;++oe){var de=ie.lines[oe];if(de==N)break;U+=de.height}for(var Be=ie.parent;Be;ie=Be,Be=ie.parent)for(var At=0;At<Be.children.length;++At){var Kt=Be.children[At];if(Kt==ie)break;U+=Kt.height}return U}function On(N){if(N.height==0)return 0;for(var U=N.text.length,ie,oe=N;ie=fn(oe);){var de=ie.find(0,!0);oe=de.from.line,U+=de.from.ch-de.to.ch}for(oe=N;ie=kn(oe);){var Be=ie.find(0,!0);U-=oe.text.length-Be.from.ch,oe=Be.to.line,U+=oe.text.length-Be.to.ch}return U}function bn(N){var U=N.display,ie=N.doc;U.maxLine=Ie(ie,ie.first),U.maxLineLength=On(U.maxLine),U.maxLineChanged=!0,ie.iter(function(oe){var de=On(oe);de>U.maxLineLength&&(U.maxLineLength=de,U.maxLine=oe)})}var qn=function(U,ie,oe){this.text=U,Wr(this,ie),this.height=oe?oe(this):1};qn.prototype.lineNo=function(){return kt(this)},Sr(qn);function an(N,U,ie,oe){N.text=U,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),hn(N),Wr(N,ie);var de=oe?oe(N):1;de!=N.height&&gt(N,de)}function _r(N){N.parent=null,hn(N)}var mn={},In={};function Wn(N,U){if(!N||/^\s*$/.test(N))return null;var ie=U.addModeClass?In:mn;return ie[N]||(ie[N]=N.replace(/\S+/g,"cm-$&"))}function Jn(N,U){var ie=F("span",null,null,o?"padding-right: .1px":null),oe={pre:F("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:N,trailingSpace:!1,splitSpaces:N.getOption("lineWrapping")};U.measure={};for(var de=0;de<=(U.rest?U.rest.length:0);de++){var Be=de?U.rest[de-1]:U.line,At=void 0;oe.pos=0,oe.addToken=yi,vr(N.display.measure)&&(At=lt(Be,N.doc.direction))&&(oe.addToken=Vi(oe.addToken,At)),oe.map=[];var Kt=U!=N.display.externalMeasured&&kt(Be);Gi(Be,oe,sn(N,Be,Kt)),Be.styleClasses&&(Be.styleClasses.bgClass&&(oe.bgClass=M(Be.styleClasses.bgClass,oe.bgClass||"")),Be.styleClasses.textClass&&(oe.textClass=M(Be.styleClasses.textClass,oe.textClass||""))),oe.map.length==0&&oe.map.push(0,0,oe.content.appendChild(pt(N.display.measure))),de==0?(U.measure.map=oe.map,U.measure.cache={}):((U.measure.maps||(U.measure.maps=[])).push(oe.map),(U.measure.caches||(U.measure.caches=[])).push({}))}if(o){var rr=oe.content.lastChild;(/\bcm-tab\b/.test(rr.className)||rr.querySelector&&rr.querySelector(".cm-tab"))&&(oe.content.className="cm-tab-wrap-hack")}return Ot(N,"renderLine",N,U.line,oe.pre),oe.pre.className&&(oe.textClass=M(oe.pre.className,oe.textClass||"")),oe}function Ei(N){var U=O("span","\u2022","cm-invalidchar");return U.title="\\u"+N.charCodeAt(0).toString(16),U.setAttribute("aria-label",U.title),U}function yi(N,U,ie,oe,de,Be,At){if(!U)return;var Kt=N.splitSpaces?mi(U,N.trailingSpace):U,rr=N.cm.state.specialChars,pr=!1,Tn;if(!rr.test(U))N.col+=U.length,Tn=document.createTextNode(Kt),N.map.push(N.pos,N.pos+U.length,Tn),d&&u<9&&(pr=!0),N.pos+=U.length;else{Tn=document.createDocumentFragment();for(var zn=0;;){rr.lastIndex=zn;var li=rr.exec(U),di=li?li.index-zn:U.length-zn;if(di){var Ki=document.createTextNode(Kt.slice(zn,zn+di));d&&u<9?Tn.appendChild(O("span",[Ki])):Tn.appendChild(Ki),N.map.push(N.pos,N.pos+di,Ki),N.col+=di,N.pos+=di}if(!li)break;zn+=di+1;var fa=void 0;if(li[0]==" "){var Ta=N.cm.options.tabSize,ba=Ta-N.col%Ta;fa=Tn.appendChild(O("span",Ge(ba),"cm-tab")),fa.setAttribute("role","presentation"),fa.setAttribute("cm-text"," "),N.col+=ba}else li[0]=="\r"||li[0]==`
`?(fa=Tn.appendChild(O("span",li[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),fa.setAttribute("cm-text",li[0]),N.col+=1):(fa=N.cm.options.specialCharPlaceholder(li[0]),fa.setAttribute("cm-text",li[0]),d&&u<9?Tn.appendChild(O("span",[fa])):Tn.appendChild(fa),N.col+=1);N.map.push(N.pos,N.pos+1,fa),N.pos++}}if(N.trailingSpace=Kt.charCodeAt(U.length-1)==32,ie||oe||de||pr||Be||At){var ya=ie||"";oe&&(ya+=oe),de&&(ya+=de);var Ha=O("span",[Tn],ya,Be);if(At)for(var Ja in At)At.hasOwnProperty(Ja)&&Ja!="style"&&Ja!="class"&&Ha.setAttribute(Ja,At[Ja]);return N.content.appendChild(Ha)}N.content.appendChild(Tn)}function mi(N,U){if(N.length>1&&!/ /.test(N))return N;for(var ie=U,oe="",de=0;de<N.length;de++){var Be=N.charAt(de);Be==" "&&ie&&(de==N.length-1||N.charCodeAt(de+1)==32)&&(Be="\xA0"),oe+=Be,ie=Be==" "}return oe}function Vi(N,U){return function(ie,oe,de,Be,At,Kt,rr){de=de?de+" cm-force-border":"cm-force-border";for(var pr=ie.pos,Tn=pr+oe.length;;){for(var zn=void 0,li=0;li<U.length&&!(zn=U[li],zn.to>pr&&zn.from<=pr);li++);if(zn.to>=Tn)return N(ie,oe,de,Be,At,Kt,rr);N(ie,oe.slice(0,zn.to-pr),de,Be,null,Kt,rr),Be=null,oe=oe.slice(zn.to-pr),pr=zn.to}}}function la(N,U,ie,oe){var de=!oe&&ie.widgetNode;de&&N.map.push(N.pos,N.pos+U,de),!oe&&N.cm.display.input.needsContentAttribute&&(de||(de=N.content.appendChild(document.createElement("span"))),de.setAttribute("cm-marker",ie.id)),de&&(N.cm.display.input.setUneditable(de),N.content.appendChild(de)),N.pos+=U,N.trailingSpace=!1}function Gi(N,U,ie){var oe=N.markedSpans,de=N.text,Be=0;if(!oe){for(var At=1;At<ie.length;At+=2)U.addToken(U,de.slice(Be,Be=ie[At]),Wn(ie[At+1],U.cm.options));return}for(var Kt=de.length,rr=0,pr=1,Tn="",zn,li,di=0,Ki,fa,Ta,ba,ya;;){if(di==rr){Ki=fa=Ta=li="",ya=null,ba=null,di=Infinity;for(var Ha=[],Ja=void 0,Uo=0;Uo<oe.length;++Uo){var Ao=oe[Uo],us=Ao.marker;if(us.type=="bookmark"&&Ao.from==rr&&us.widgetNode)Ha.push(us);else if(Ao.from<=rr&&(Ao.to==null||Ao.to>rr||us.collapsed&&Ao.to==rr&&Ao.from==rr)){if(Ao.to!=null&&Ao.to!=rr&&di>Ao.to&&(di=Ao.to,fa=""),us.className&&(Ki+=" "+us.className),us.css&&(li=(li?li+";":"")+us.css),us.startStyle&&Ao.from==rr&&(Ta+=" "+us.startStyle),us.endStyle&&Ao.to==di&&(Ja||(Ja=[])).push(us.endStyle,Ao.to),us.title&&((ya||(ya={})).title=us.title),us.attributes)for(var Ns in us.attributes)(ya||(ya={}))[Ns]=us.attributes[Ns];us.collapsed&&(!ba||Si(ba.marker,us)<0)&&(ba=Ao)}else Ao.from>rr&&di>Ao.from&&(di=Ao.from)}if(Ja)for(var rl=0;rl<Ja.length;rl+=2)Ja[rl+1]==di&&(fa+=" "+Ja[rl]);if(!ba||ba.from==rr)for(var Hs=0;Hs<Ha.length;++Hs)la(U,0,Ha[Hs]);if(ba&&(ba.from||0)==rr){if(la(U,(ba.to==null?Kt+1:ba.to)-rr,ba.marker,ba.from==null),ba.to==null)return;ba.to==rr&&(ba=!1)}}if(rr>=Kt)break;for(var Ol=Math.min(Kt,di);;){if(Tn){var Fl=rr+Tn.length;if(!ba){var pl=Fl>Ol?Tn.slice(0,Ol-rr):Tn;U.addToken(U,pl,zn?zn+Ki:Ki,Ta,rr+pl.length==di?fa:"",li,ya)}if(Fl>=Ol){Tn=Tn.slice(Ol-rr),rr=Ol;break}rr=Fl,Ta=""}Tn=de.slice(Be,Be=ie[pr++]),zn=Wn(ie[pr++],U.cm.options)}}}function ia(N,U,ie){this.line=U,this.rest=Lt(U),this.size=this.rest?kt(Ue(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=er(N,U)}function $i(N,U,ie){for(var oe=[],de,Be=U;Be<ie;Be=de){var At=new ia(N.doc,Ie(N.doc,Be),Be);de=Be+At.size,oe.push(At)}return oe}var xn=null;function Ti(N){xn?xn.ops.push(N):N.ownsGroup=xn={ops:[N],delayedCallbacks:[]}}function Ji(N){var U=N.delayedCallbacks,ie=0;do{for(;ie<U.length;ie++)U[ie].call(null);for(var oe=0;oe<N.ops.length;oe++){var de=N.ops[oe];if(de.cursorActivityHandlers)for(;de.cursorActivityCalled<de.cursorActivityHandlers.length;)de.cursorActivityHandlers[de.cursorActivityCalled++].call(null,de.cm)}}while(ie<U.length)}function Wi(N,U){var ie=N.ownsGroup;if(!ie)return;try{Ji(ie)}finally{xn=null,U(ie)}}var qi=null;function Ir(N,U){var ie=st(N,U);if(!ie.length)return;var oe=Array.prototype.slice.call(arguments,2),de;xn?de=xn.delayedCallbacks:qi?de=qi:(de=qi=[],setTimeout(ar,0));for(var Be=function(rr){de.push(function(){return ie[rr].apply(null,oe)})},At=0;At<ie.length;++At)Be(At)}function ar(){var N=qi;qi=null;for(var U=0;U<N.length;++U)N[U]()}function nn(N,U,ie,oe){for(var de=0;de<U.changes.length;de++){var Be=U.changes[de];Be=="text"?Jr(N,U):Be=="gutter"?bt(N,U,ie,oe):Be=="class"?wn(N,U):Be=="widget"&&mr(N,U,oe)}U.changes=null}function Gt(N){return N.node==N.text&&(N.node=O("div",null,null,"position: relative"),N.text.parentNode&&N.text.parentNode.replaceChild(N.node,N.text),N.node.appendChild(N.text),d&&u<8&&(N.node.style.zIndex=2)),N.node}function wr(N,U){var ie=U.bgClass?U.bgClass+" "+(U.line.bgClass||""):U.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),U.background)ie?U.background.className=ie:(U.background.parentNode.removeChild(U.background),U.background=null);else if(ie){var oe=Gt(U);U.background=oe.insertBefore(O("div",null,ie),oe.firstChild),N.display.input.setUneditable(U.background)}}function Pr(N,U){var ie=N.display.externalMeasured;return ie&&ie.line==U.line?(N.display.externalMeasured=null,U.measure=ie.measure,ie.built):Jn(N,U)}function Jr(N,U){var ie=U.text.className,oe=Pr(N,U);U.text==U.node&&(U.node=oe.pre),U.text.parentNode.replaceChild(oe.pre,U.text),U.text=oe.pre,oe.bgClass!=U.bgClass||oe.textClass!=U.textClass?(U.bgClass=oe.bgClass,U.textClass=oe.textClass,wn(N,U)):ie&&(U.text.className=ie)}function wn(N,U){wr(N,U),U.line.wrapClass?Gt(U).className=U.line.wrapClass:U.node!=U.text&&(U.node.className="");var ie=U.textClass?U.textClass+" "+(U.line.textClass||""):U.line.textClass;U.text.className=ie||""}function bt(N,U,ie,oe){if(U.gutter&&(U.node.removeChild(U.gutter),U.gutter=null),U.gutterBackground&&(U.node.removeChild(U.gutterBackground),U.gutterBackground=null),U.line.gutterClass){var de=Gt(U);U.gutterBackground=O("div",null,"CodeMirror-gutter-background "+U.line.gutterClass,"left: "+(N.options.fixedGutter?oe.fixedPos:-oe.gutterTotalWidth)+"px; width: "+oe.gutterTotalWidth+"px"),N.display.input.setUneditable(U.gutterBackground),de.insertBefore(U.gutterBackground,U.text)}var Be=U.line.gutterMarkers;if(N.options.lineNumbers||Be){var At=Gt(U),Kt=U.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(N.options.fixedGutter?oe.fixedPos:-oe.gutterTotalWidth)+"px");if(N.display.input.setUneditable(Kt),At.insertBefore(Kt,U.text),U.line.gutterClass&&(Kt.className+=" "+U.line.gutterClass),N.options.lineNumbers&&(!Be||!Be["CodeMirror-linenumbers"])&&(U.lineNumber=Kt.appendChild(O("div",on(N.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+oe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),Be)for(var rr=0;rr<N.display.gutterSpecs.length;++rr){var pr=N.display.gutterSpecs[rr].className,Tn=Be.hasOwnProperty(pr)&&Be[pr];Tn&&Kt.appendChild(O("div",[Tn],"CodeMirror-gutter-elt","left: "+oe.gutterLeft[pr]+"px; width: "+oe.gutterWidth[pr]+"px"))}}}function mr(N,U,ie){U.alignable&&(U.alignable=null);for(var oe=_("CodeMirror-linewidget"),de=U.node.firstChild,Be=void 0;de;de=Be)Be=de.nextSibling,oe.test(de.className)&&U.node.removeChild(de);Ur(N,U,ie)}function Ar(N,U,ie,oe){var de=Pr(N,U);return U.text=U.node=de.pre,de.bgClass&&(U.bgClass=de.bgClass),de.textClass&&(U.textClass=de.textClass),wn(N,U),bt(N,U,ie,oe),Ur(N,U,oe),U.node}function Ur(N,U,ie){if(un(N,U.line,U,ie,!0),U.rest)for(var oe=0;oe<U.rest.length;oe++)un(N,U.rest[oe],U,ie,!1)}function un(N,U,ie,oe,de){if(!U.widgets)return;for(var Be=Gt(ie),At=0,Kt=U.widgets;At<Kt.length;++At){var rr=Kt[At],pr=O("div",[rr.node],"CodeMirror-linewidget"+(rr.className?" "+rr.className:""));rr.handleMouseEvents||pr.setAttribute("cm-ignore-events","true"),An(rr,pr,ie,oe),N.display.input.setUneditable(pr),de&&rr.above?Be.insertBefore(pr,ie.gutter||ie.text):Be.appendChild(pr),Ir(rr,"redraw")}}function An(N,U,ie,oe){if(N.noHScroll){(ie.alignable||(ie.alignable=[])).push(U);var de=oe.wrapperWidth;U.style.left=oe.fixedPos+"px",N.coverGutter||(de-=oe.gutterTotalWidth,U.style.paddingLeft=oe.gutterTotalWidth+"px"),U.style.width=de+"px"}N.coverGutter&&(U.style.zIndex=5,U.style.position="relative",N.noHScroll||(U.style.marginLeft=-oe.gutterTotalWidth+"px"))}function ln(N){if(N.height!=null)return N.height;var U=N.doc.cm;if(!U)return 0;if(!B(document.body,N.node)){var ie="position: relative;";N.coverGutter&&(ie+="margin-left: -"+U.display.gutters.offsetWidth+"px;"),N.noHScroll&&(ie+="width: "+U.display.wrapper.clientWidth+"px;"),I(U.display.measure,O("div",[N.node],null,ie))}return N.height=N.node.parentNode.offsetHeight}function Hn(N,U){for(var ie=qr(U);ie!=N.wrapper;ie=ie.parentNode)if(!ie||ie.nodeType==1&&ie.getAttribute("cm-ignore-events")=="true"||ie.parentNode==N.sizer&&ie!=N.mover)return!0}function Ln(N){return N.lineSpace.offsetTop}function ni(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function Ai(N){if(N.cachedPaddingH)return N.cachedPaddingH;var U=I(N.measure,O("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(U):U.currentStyle,oe={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(oe.left)&&!isNaN(oe.right)&&(N.cachedPaddingH=oe),oe}function ii(N){return ee-N.display.nativeBarWidth}function _i(N){return N.display.scroller.clientWidth-ii(N)-N.display.barWidth}function Ri(N){return N.display.scroller.clientHeight-ii(N)-N.display.barHeight}function ji(N,U,ie){var oe=N.options.lineWrapping,de=oe&&_i(N);if(!U.measure.heights||oe&&U.measure.width!=de){var Be=U.measure.heights=[];if(oe){U.measure.width=de;for(var At=U.text.firstChild.getClientRects(),Kt=0;Kt<At.length-1;Kt++){var rr=At[Kt],pr=At[Kt+1];Math.abs(rr.bottom-pr.bottom)>2&&Be.push((rr.bottom+pr.top)/2-ie.top)}}Be.push(ie.bottom-ie.top)}}function wi(N,U,ie){if(N.line==U)return{map:N.measure.map,cache:N.measure.cache};for(var oe=0;oe<N.rest.length;oe++)if(N.rest[oe]==U)return{map:N.measure.maps[oe],cache:N.measure.caches[oe]};for(var de=0;de<N.rest.length;de++)if(kt(N.rest[de])>ie)return{map:N.measure.maps[de],cache:N.measure.caches[de],before:!0}}function Ii(N,U){U=xt(U);var ie=kt(U),oe=N.display.externalMeasured=new ia(N.doc,U,ie);oe.lineN=ie;var de=oe.built=Jn(N,oe);return oe.text=de.pre,I(N.display.lineMeasure,de.pre),oe}function Oi(N,U,ie,oe){return ma(N,Zi(N,U),ie,oe)}function Ui(N,U){if(U>=N.display.viewFrom&&U<N.display.viewTo)return N.display.view[qa(N,U)];var ie=N.display.externalMeasured;if(ie&&U>=ie.lineN&&U<ie.lineN+ie.size)return ie}function Zi(N,U){var ie=kt(U),oe=Ui(N,ie);oe&&!oe.text?oe=null:oe&&oe.changes&&(nn(N,oe,ie,Qo(N)),N.curOp.forceUpdate=!0),oe||(oe=Ii(N,U));var de=wi(oe,U,ie);return{line:U,view:oe,rect:null,map:de.map,cache:de.cache,before:de.before,hasHeights:!1}}function ma(N,U,ie,oe,de){U.before&&(ie=-1);var Be=ie+(oe||""),At;return U.cache.hasOwnProperty(Be)?At=U.cache[Be]:(U.rect||(U.rect=U.view.text.getBoundingClientRect()),U.hasHeights||(ji(N,U.view,U.rect),U.hasHeights=!0),At=ta(N,U,ie,oe),At.bogus||(U.cache[Be]=At)),{left:At.left,right:At.right,top:de?At.rtop:At.top,bottom:de?At.rbottom:At.bottom}}var Hi={left:0,right:0,top:0,bottom:0};function xa(N,U,ie){for(var oe,de,Be,At,Kt,rr,pr=0;pr<N.length;pr+=3)if(Kt=N[pr],rr=N[pr+1],U<Kt?(de=0,Be=1,At="left"):U<rr?(de=U-Kt,Be=de+1):(pr==N.length-3||U==rr&&N[pr+3]>U)&&(Be=rr-Kt,de=Be-1,U>=rr&&(At="right")),de!=null){if(oe=N[pr+2],Kt==rr&&ie==(oe.insertLeft?"left":"right")&&(At=ie),ie=="left"&&de==0)for(;pr&&N[pr-2]==N[pr-3]&&N[pr-1].insertLeft;)oe=N[(pr-=3)+2],At="left";if(ie=="right"&&de==rr-Kt)for(;pr<N.length-3&&N[pr+3]==N[pr+4]&&!N[pr+5].insertLeft;)oe=N[(pr+=3)+2],At="right";break}return{node:oe,start:de,end:Be,collapse:At,coverStart:Kt,coverEnd:rr}}function Ea(N,U){var ie=Hi;if(U=="left")for(var oe=0;oe<N.length&&!((ie=N[oe]).left!=ie.right);oe++);else for(var de=N.length-1;de>=0&&!((ie=N[de]).left!=ie.right);de--);return ie}function ta(N,U,ie,oe){var de=xa(U.map,ie,oe),Be=de.node,At=de.start,Kt=de.end,rr=de.collapse,pr;if(Be.nodeType==3){for(var Tn=0;Tn<4;Tn++){for(;At&&ye(U.line.text.charAt(de.coverStart+At));)--At;for(;de.coverStart+Kt<de.coverEnd&&ye(U.line.text.charAt(de.coverStart+Kt));)++Kt;if(d&&u<9&&At==0&&Kt==de.coverEnd-de.coverStart?pr=Be.parentNode.getBoundingClientRect():pr=Ea(R(Be,At,Kt).getClientRects(),oe),pr.left||pr.right||At==0)break;Kt=At,At=At-1,rr="right"}d&&u<11&&(pr=ra(N.display.measure,pr))}else{At>0&&(rr=oe="right");var zn;N.options.lineWrapping&&(zn=Be.getClientRects()).length>1?pr=zn[oe=="right"?zn.length-1:0]:pr=Be.getBoundingClientRect()}if(d&&u<9&&!At&&(!pr||!pr.left&&!pr.right)){var li=Be.parentNode.getClientRects()[0];li?pr={left:li.left,right:li.left+Do(N.display),top:li.top,bottom:li.bottom}:pr=Hi}for(var di=pr.top-U.rect.top,Ki=pr.bottom-U.rect.top,fa=(di+Ki)/2,Ta=U.view.measure.heights,ba=0;ba<Ta.length-1&&!(fa<Ta[ba]);ba++);var ya=ba?Ta[ba-1]:0,Ha=Ta[ba],Ja={left:(rr=="right"?pr.right:pr.left)-U.rect.left,right:(rr=="left"?pr.left:pr.right)-U.rect.left,top:ya,bottom:Ha};return!pr.left&&!pr.right&&(Ja.bogus=!0),N.options.singleCursorHeightPerLine||(Ja.rtop=di,Ja.rbottom=Ki),Ja}function ra(N,U){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Qt(N))return U;var ie=screen.logicalXDPI/screen.deviceXDPI,oe=screen.logicalYDPI/screen.deviceYDPI;return{left:U.left*ie,right:U.right*ie,top:U.top*oe,bottom:U.bottom*oe}}function ga(N){if(N.measure&&(N.measure.cache={},N.measure.heights=null,N.rest))for(var U=0;U<N.rest.length;U++)N.measure.caches[U]={}}function sa(N){N.display.externalMeasure=null,C(N.display.lineMeasure);for(var U=0;U<N.display.view.length;U++)ga(N.display.view[U])}function Ba(N){sa(N),N.display.cachedCharWidth=N.display.cachedTextHeight=N.display.cachedPaddingH=null,N.options.lineWrapping||(N.display.maxLineChanged=!0),N.display.lineNumChars=null}function va(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ia(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function za(N){var U=0;if(N.widgets)for(var ie=0;ie<N.widgets.length;++ie)N.widgets[ie].above&&(U+=ln(N.widgets[ie]));return U}function Va(N,U,ie,oe,de){if(!de){var Be=za(U);ie.top+=Be,ie.bottom+=Be}if(oe=="line")return ie;oe||(oe="local");var At=br(U);if(oe=="local"?At+=Ln(N.display):At-=N.display.viewOffset,oe=="page"||oe=="window"){var Kt=N.display.lineSpace.getBoundingClientRect();At+=Kt.top+(oe=="window"?0:Ia());var rr=Kt.left+(oe=="window"?0:va());ie.left+=rr,ie.right+=rr}return ie.top+=At,ie.bottom+=At,ie}function Ya(N,U,ie){if(ie=="div")return U;var oe=U.left,de=U.top;if(ie=="page")oe-=va(),de-=Ia();else if(ie=="local"||!ie){var Be=N.display.sizer.getBoundingClientRect();oe+=Be.left,de+=Be.top}var At=N.display.lineSpace.getBoundingClientRect();return{left:oe-At.left,top:de-At.top}}function Bi(N,U,ie,oe,de){return oe||(oe=Ie(N.doc,U.line)),Va(N,oe,Oi(N,oe,U.ch,de),ie)}function ro(N,U,ie,oe,de,Be){oe=oe||Ie(N.doc,U.line),de||(de=Zi(N,oe));function At(Ki,fa){var Ta=ma(N,de,Ki,fa?"right":"left",Be);return fa?Ta.left=Ta.right:Ta.right=Ta.left,Va(N,oe,Ta,ie)}var Kt=lt(oe,N.doc.direction),rr=U.ch,pr=U.sticky;if(rr>=oe.text.length?(rr=oe.text.length,pr="before"):rr<=0&&(rr=0,pr="after"),!Kt)return At(pr=="before"?rr-1:rr,pr=="before");function Tn(Ki,fa,Ta){var ba=Kt[fa],ya=ba.level==1;return At(Ta?Ki-1:Ki,ya!=Ta)}var zn=Oe(Kt,rr,pr),li=ge,di=Tn(rr,zn,pr=="before");return li!=null&&(di.other=Tn(rr,li,pr!="before")),di}function lo(N,U){var ie=0;U=wt(N.doc,U),N.options.lineWrapping||(ie=Do(N.display)*U.ch);var oe=Ie(N.doc,U.line),de=br(oe)+Ln(N.display);return{left:ie,right:ie,top:de,bottom:de+oe.height}}function no(N,U,ie,oe,de){var Be=Nt(N,U,ie);return Be.xRel=de,oe&&(Be.outside=oe),Be}function co(N,U,ie){var oe=N.doc;if(ie+=N.display.viewOffset,ie<0)return no(oe.first,0,null,-1,-1);var de=xr(oe,ie),Be=oe.first+oe.size-1;if(de>Be)return no(oe.first+oe.size-1,Ie(oe,Be).text.length,null,1,1);U<0&&(U=0);for(var At=Ie(oe,de);;){var Kt=uo(N,At,de,U,ie),rr=It(At,Kt.ch+(Kt.xRel>0||Kt.outside>0?1:0));if(!rr)return Kt;var pr=rr.find(1);if(pr.line==de)return pr;At=Ie(oe,de=pr.line)}}function To(N,U,ie,oe){oe-=za(U);var de=U.text.length,Be=Ce(function(At){return ma(N,ie,At-1).bottom<=oe},de,0);return de=Ce(function(At){return ma(N,ie,At).top>oe},Be,de),{begin:Be,end:de}}function Ga(N,U,ie,oe){ie||(ie=Zi(N,U));var de=Va(N,U,ma(N,ie,oe),"line").top;return To(N,U,ie,de)}function Po(N,U,ie,oe){return N.bottom<=ie?!1:N.top>ie?!0:(oe?N.left:N.right)>U}function uo(N,U,ie,oe,de){de-=br(U);var Be=Zi(N,U),At=za(U),Kt=0,rr=U.text.length,pr=!0,Tn=lt(U,N.doc.direction);if(Tn){var zn=(N.options.lineWrapping?zo:ho)(N,U,ie,Be,Tn,oe,de);pr=zn.level!=1,Kt=pr?zn.from:zn.to-1,rr=pr?zn.to:zn.from-1}var li=null,di=null,Ki=Ce(function(Uo){var Ao=ma(N,Be,Uo);return Ao.top+=At,Ao.bottom+=At,Po(Ao,oe,de,!1)?(Ao.top<=de&&Ao.left<=oe&&(li=Uo,di=Ao),!0):!1},Kt,rr),fa,Ta,ba=!1;if(di){var ya=oe-di.left<di.right-oe,Ha=ya==pr;Ki=li+(Ha?0:1),Ta=Ha?"after":"before",fa=ya?di.left:di.right}else{!pr&&(Ki==rr||Ki==Kt)&&Ki++,Ta=Ki==0?"after":Ki==U.text.length?"before":ma(N,Be,Ki-(pr?1:0)).bottom+At<=de==pr?"after":"before";var Ja=ro(N,Nt(ie,Ki,Ta),"line",U,Be);fa=Ja.left,ba=de<Ja.top?-1:de>=Ja.bottom?1:0}return Ki=Ee(U.text,Ki,1),no(ie,Ki,Ta,ba,oe-fa)}function ho(N,U,ie,oe,de,Be,At){var Kt=Ce(function(zn){var li=de[zn],di=li.level!=1;return Po(ro(N,Nt(ie,di?li.to:li.from,di?"before":"after"),"line",U,oe),Be,At,!0)},0,de.length-1),rr=de[Kt];if(Kt>0){var pr=rr.level!=1,Tn=ro(N,Nt(ie,pr?rr.from:rr.to,pr?"after":"before"),"line",U,oe);Po(Tn,Be,At,!0)&&Tn.top>At&&(rr=de[Kt-1])}return rr}function zo(N,U,ie,oe,de,Be,At){var Kt=To(N,U,oe,At),rr=Kt.begin,pr=Kt.end;/\s/.test(U.text.charAt(pr-1))&&pr--;for(var Tn=null,zn=null,li=0;li<de.length;li++){var di=de[li];if(di.from>=pr||di.to<=rr)continue;var Ki=di.level!=1,fa=ma(N,oe,Ki?Math.min(pr,di.to)-1:Math.max(rr,di.from)).right,Ta=fa<Be?Be-fa+1e9:fa-Be;(!Tn||zn>Ta)&&(Tn=di,zn=Ta)}return Tn||(Tn=de[de.length-1]),Tn.from<rr&&(Tn={from:rr,to:Tn.to,level:Tn.level}),Tn.to>pr&&(Tn={from:Tn.from,to:pr,level:Tn.level}),Tn}var Oa;function mo(N){if(N.cachedTextHeight!=null)return N.cachedTextHeight;if(Oa==null){Oa=O("pre",null,"CodeMirror-line-like");for(var U=0;U<49;++U)Oa.appendChild(document.createTextNode("x")),Oa.appendChild(O("br"));Oa.appendChild(document.createTextNode("x"))}I(N.measure,Oa);var ie=Oa.offsetHeight/50;return ie>3&&(N.cachedTextHeight=ie),C(N.measure),ie||1}function Do(N){if(N.cachedCharWidth!=null)return N.cachedCharWidth;var U=O("span","xxxxxxxxxx"),ie=O("pre",[U],"CodeMirror-line-like");I(N.measure,ie);var oe=U.getBoundingClientRect(),de=(oe.right-oe.left)/10;return de>2&&(N.cachedCharWidth=de),de||10}function Qo(N){for(var U=N.display,ie={},oe={},de=U.gutters.clientLeft,Be=U.gutters.firstChild,At=0;Be;Be=Be.nextSibling,++At){var Kt=N.display.gutterSpecs[At].className;ie[Kt]=Be.offsetLeft+Be.clientLeft+de,oe[Kt]=Be.clientWidth}return{fixedPos:xo(U),gutterTotalWidth:U.gutters.offsetWidth,gutterLeft:ie,gutterWidth:oe,wrapperWidth:U.wrapper.clientWidth}}function xo(N){return N.scroller.getBoundingClientRect().left-N.sizer.getBoundingClientRect().left}function Fo(N){var U=mo(N.display),ie=N.options.lineWrapping,oe=ie&&Math.max(5,N.display.scroller.clientWidth/Do(N.display)-3);return function(de){if(er(N.doc,de))return 0;var Be=0;if(de.widgets)for(var At=0;At<de.widgets.length;At++)de.widgets[At].height&&(Be+=de.widgets[At].height);return ie?Be+(Math.ceil(de.text.length/oe)||1)*U:Be+U}}function Ho(N){var U=N.doc,ie=Fo(N);U.iter(function(oe){var de=ie(oe);de!=oe.height&&gt(oe,de)})}function go(N,U,ie,oe){var de=N.display;if(!ie&&qr(U).getAttribute("cm-not-content")=="true")return null;var Be,At,Kt=de.lineSpace.getBoundingClientRect();try{Be=U.clientX-Kt.left,At=U.clientY-Kt.top}catch(zn){return null}var rr=co(N,Be,At),pr;if(oe&&rr.xRel>0&&(pr=Ie(N.doc,rr.line).text).length==rr.ch){var Tn=V(pr,pr.length,N.options.tabSize)-pr.length;rr=Nt(rr.line,Math.max(0,Math.round((Be-Ai(N.display).left)/Do(N.display))-Tn))}return rr}function qa(N,U){if(U>=N.display.viewTo)return null;if(U-=N.display.viewFrom,U<0)return null;for(var ie=N.display.view,oe=0;oe<ie.length;oe++)if(U-=ie[oe].size,U<0)return oe}function _a(N,U,ie,oe){U==null&&(U=N.doc.first),ie==null&&(ie=N.doc.first+N.doc.size),oe||(oe=0);var de=N.display;if(oe&&ie<de.viewTo&&(de.updateLineNumbers==null||de.updateLineNumbers>U)&&(de.updateLineNumbers=U),N.curOp.viewChanged=!0,U>=de.viewTo)ze&&_t(N.doc,U)<de.viewTo&&dr(N);else if(ie<=de.viewFrom)ze&&Xt(N.doc,ie+oe)>de.viewFrom?dr(N):(de.viewFrom+=oe,de.viewTo+=oe);else if(U<=de.viewFrom&&ie>=de.viewTo)dr(N);else if(U<=de.viewFrom){var Be=Kr(N,ie,ie+oe,1);Be?(de.view=de.view.slice(Be.index),de.viewFrom=Be.lineN,de.viewTo+=oe):dr(N)}else if(ie>=de.viewTo){var At=Kr(N,U,U,-1);At?(de.view=de.view.slice(0,At.index),de.viewTo=At.lineN):dr(N)}else{var Kt=Kr(N,U,U,-1),rr=Kr(N,ie,ie+oe,1);Kt&&rr?(de.view=de.view.slice(0,Kt.index).concat($i(N,Kt.lineN,rr.lineN)).concat(de.view.slice(rr.index)),de.viewTo+=oe):dr(N)}var pr=de.externalMeasured;pr&&(ie<pr.lineN?pr.lineN+=oe:U<pr.lineN+pr.size&&(de.externalMeasured=null))}function at(N,U,ie){N.curOp.viewChanged=!0;var oe=N.display,de=N.display.externalMeasured;if(de&&U>=de.lineN&&U<de.lineN+de.size&&(oe.externalMeasured=null),U<oe.viewFrom||U>=oe.viewTo)return;var Be=oe.view[qa(N,U)];if(Be.node==null)return;var At=Be.changes||(Be.changes=[]);G(At,ie)==-1&&At.push(ie)}function dr(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function Kr(N,U,ie,oe){var de=qa(N,U),Be,At=N.display.view;if(!ze||ie==N.doc.first+N.doc.size)return{index:de,lineN:ie};for(var Kt=N.display.viewFrom,rr=0;rr<de;rr++)Kt+=At[rr].size;if(Kt!=U){if(oe>0){if(de==At.length-1)return null;Be=Kt+At[de].size-U,de++}else Be=Kt-U;U+=Be,ie+=Be}for(;_t(N.doc,ie)!=ie;){if(de==(oe<0?0:At.length-1))return null;ie+=oe*At[de-(oe<0?1:0)].size,de+=oe}return{index:de,lineN:ie}}function Br(N,U,ie){var oe=N.display,de=oe.view;de.length==0||U>=oe.viewTo||ie<=oe.viewFrom?(oe.view=$i(N,U,ie),oe.viewFrom=U):(oe.viewFrom>U?oe.view=$i(N,U,oe.viewFrom).concat(oe.view):oe.viewFrom<U&&(oe.view=oe.view.slice(qa(N,U))),oe.viewFrom=U,oe.viewTo<ie?oe.view=oe.view.concat($i(N,oe.viewTo,ie)):oe.viewTo>ie&&(oe.view=oe.view.slice(0,qa(N,ie)))),oe.viewTo=ie}function Pn(N){for(var U=N.display.view,ie=0,oe=0;oe<U.length;oe++){var de=U[oe];!de.hidden&&(!de.node||de.changes)&&++ie}return ie}function $r(N){N.display.input.showSelection(N.display.input.prepareSelection())}function Mr(N,U){U===void 0&&(U=!0);for(var ie=N.doc,oe={},de=oe.cursors=document.createDocumentFragment(),Be=oe.selection=document.createDocumentFragment(),At=0;At<ie.sel.ranges.length;At++){if(!U&&At==ie.sel.primIndex)continue;var Kt=ie.sel.ranges[At];if(Kt.from().line>=N.display.viewTo||Kt.to().line<N.display.viewFrom)continue;var rr=Kt.empty();(rr||N.options.showCursorWhenSelecting)&&Gn(N,Kt.head,de),rr||Nn(N,Kt,Be)}return oe}function Gn(N,U,ie){var oe=ro(N,U,"div",null,null,!N.options.singleCursorHeightPerLine),de=ie.appendChild(O("div","\xA0","CodeMirror-cursor"));if(de.style.left=oe.left+"px",de.style.top=oe.top+"px",de.style.height=Math.max(0,oe.bottom-oe.top)*N.options.cursorHeight+"px",oe.other){var Be=ie.appendChild(O("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Be.style.display="",Be.style.left=oe.other.left+"px",Be.style.top=oe.other.top+"px",Be.style.height=(oe.other.bottom-oe.other.top)*.85+"px"}}function zr(N,U){return N.top-U.top||N.left-U.left}function Nn(N,U,ie){var oe=N.display,de=N.doc,Be=document.createDocumentFragment(),At=Ai(N.display),Kt=At.left,rr=Math.max(oe.sizerWidth,_i(N)-oe.sizer.offsetLeft)-At.right,pr=de.direction=="ltr";function Tn(Ha,Ja,Uo,Ao){Ja<0&&(Ja=0),Ja=Math.round(Ja),Ao=Math.round(Ao),Be.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+Ha+`px;
top: `+Ja+"px; width: "+(Uo==null?rr-Ha:Uo)+`px;
height: `+(Ao-Ja)+"px"))}function zn(Ha,Ja,Uo){var Ao=Ie(de,Ha),us=Ao.text.length,Ns,rl;function Hs(pl,Bl){return Bi(N,Nt(Ha,pl),"div",Ao,Bl)}function Ol(pl,Bl,Il){var Ma=Ga(N,Ao,null,pl),$s=Bl=="ltr"==(Il=="after")?"left":"right",Ys=Il=="after"?Ma.begin:Ma.end-(/\s/.test(Ao.text.charAt(Ma.end-1))?2:1);return Hs(Ys,$s)[$s]}var Fl=lt(Ao,de.direction);return ue(Fl,Ja||0,Uo==null?us:Uo,function(pl,Bl,Il,Ma){var $s=Il=="ltr",Ys=Hs(pl,$s?"left":"right"),sl=Hs(Bl-1,$s?"right":"left"),Bu=Ja==null&&pl==0,ys=Uo==null&&Bl==us,rs=Ma==0,lu=!Fl||Ma==Fl.length-1;if(sl.top-Ys.top<=3){var Rl=(pr?Bu:ys)&&rs,Uu=(pr?ys:Bu)&&lu,Eu=Rl?Kt:($s?Ys:sl).left,uu=Uu?rr:($s?sl:Ys).right;Tn(Eu,Ys.top,uu-Eu,Ys.bottom)}else{var ku,Vl,Cu,Vu;$s?(ku=pr&&Bu&&rs?Kt:Ys.left,Vl=pr?rr:Ol(pl,Il,"before"),Cu=pr?Kt:Ol(Bl,Il,"after"),Vu=pr&&ys&&lu?rr:sl.right):(ku=pr?Ol(pl,Il,"before"):Kt,Vl=!pr&&Bu&&rs?rr:Ys.right,Cu=!pr&&ys&&lu?Kt:sl.left,Vu=pr?Ol(Bl,Il,"after"):rr),Tn(ku,Ys.top,Vl-ku,Ys.bottom),Ys.bottom<sl.top&&Tn(Kt,Ys.bottom,null,sl.top),Tn(Cu,sl.top,Vu-Cu,sl.bottom)}(!Ns||zr(Ys,Ns)<0)&&(Ns=Ys),zr(sl,Ns)<0&&(Ns=sl),(!rl||zr(Ys,rl)<0)&&(rl=Ys),zr(sl,rl)<0&&(rl=sl)}),{start:Ns,end:rl}}var li=U.from(),di=U.to();if(li.line==di.line)zn(li.line,li.ch,di.ch);else{var Ki=Ie(de,li.line),fa=Ie(de,di.line),Ta=xt(Ki)==xt(fa),ba=zn(li.line,li.ch,Ta?Ki.text.length+1:null).end,ya=zn(di.line,Ta?0:null,di.ch).start;Ta&&(ba.top<ya.top-2?(Tn(ba.right,ba.top,null,ba.bottom),Tn(Kt,ya.top,ya.left,ya.bottom)):Tn(ba.right,ba.top,ya.left-ba.right,ba.bottom)),ba.bottom<ya.top&&Tn(Kt,ba.bottom,null,ya.top)}ie.appendChild(Be)}function Qn(N){if(!N.state.focused)return;var U=N.display;clearInterval(U.blinker);var ie=!0;U.cursorDiv.style.visibility="",N.options.cursorBlinkRate>0?U.blinker=setInterval(function(){N.hasFocus()||ai(N),U.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},N.options.cursorBlinkRate):N.options.cursorBlinkRate<0&&(U.cursorDiv.style.visibility="hidden")}function Zn(N){N.state.focused||(N.display.input.focus(),ui(N))}function Yn(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,ai(N))},100)}function ui(N,U){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(Ot(N,"focus",N,U),N.state.focused=!0,X(N.display.wrapper,"CodeMirror-focused"),!N.curOp&&N.display.selForContextMenu!=N.doc.sel&&(N.display.input.reset(),o&&setTimeout(function(){return N.display.input.reset(!0)},20)),N.display.input.receivedFocus()),Qn(N)}function ai(N,U){if(N.state.delayingBlurEvent)return;N.state.focused&&(Ot(N,"blur",N,U),N.state.focused=!1,E(N.display.wrapper,"CodeMirror-focused")),clearInterval(N.display.blinker),setTimeout(function(){N.state.focused||(N.display.shift=!1)},150)}function hi(N){for(var U=N.display,ie=U.lineDiv.offsetTop,oe=0;oe<U.view.length;oe++){var de=U.view[oe],Be=N.options.lineWrapping,At=void 0,Kt=0;if(de.hidden)continue;if(d&&u<8){var rr=de.node.offsetTop+de.node.offsetHeight;At=rr-ie,ie=rr}else{var pr=de.node.getBoundingClientRect();At=pr.bottom-pr.top,!Be&&de.text.firstChild&&(Kt=de.text.firstChild.getBoundingClientRect().right-pr.left-1)}var Tn=de.line.height-At;if((Tn>.005||Tn<-.005)&&(gt(de.line,At),pi(de.line),de.rest))for(var zn=0;zn<de.rest.length;zn++)pi(de.rest[zn]);if(Kt>N.display.sizerWidth){var li=Math.ceil(Kt/Do(N.display));li>N.display.maxLineLength&&(N.display.maxLineLength=li,N.display.maxLine=de.line,N.display.maxLineChanged=!0)}}}function pi(N){if(N.widgets)for(var U=0;U<N.widgets.length;++U){var ie=N.widgets[U],oe=ie.node.parentNode;oe&&(ie.height=oe.offsetHeight)}}function zi(N,U,ie){var oe=ie&&ie.top!=null?Math.max(0,ie.top):N.scroller.scrollTop;oe=Math.floor(oe-Ln(N));var de=ie&&ie.bottom!=null?ie.bottom:oe+N.wrapper.clientHeight,Be=xr(U,oe),At=xr(U,de);if(ie&&ie.ensure){var Kt=ie.ensure.from.line,rr=ie.ensure.to.line;Kt<Be?(Be=Kt,At=xr(U,br(Ie(U,Kt))+N.wrapper.clientHeight)):Math.min(rr,U.lastLine())>=At&&(Be=xr(U,br(Ie(U,rr))-N.wrapper.clientHeight),At=rr)}return{from:Be,to:Math.max(At,Be+1)}}function Ci(N,U){if(Ut(N,"scrollCursorIntoView"))return;var ie=N.display,oe=ie.sizer.getBoundingClientRect(),de=null;if(U.top+oe.top<0?de=!0:U.bottom+oe.top>(window.innerHeight||document.documentElement.clientHeight)&&(de=!1),de!=null&&!r){var Be=O("div","\u200B",null,`position: absolute;
top: `+(U.top-ie.viewOffset-Ln(N.display))+`px;
height: `+(U.bottom-U.top+ii(N)+ie.barHeight)+`px;
left: `+U.left+"px; width: "+Math.max(2,U.right-U.left)+"px;");N.display.lineSpace.appendChild(Be),Be.scrollIntoView(de),N.display.lineSpace.removeChild(Be)}}function na(N,U,ie,oe){oe==null&&(oe=0);var de;!N.options.lineWrapping&&U==ie&&(U=U.ch?Nt(U.line,U.sticky=="before"?U.ch-1:U.ch,"after"):U,ie=U.sticky=="before"?Nt(U.line,U.ch+1,"before"):U);for(var Be=0;Be<5;Be++){var At=!1,Kt=ro(N,U),rr=!ie||ie==U?Kt:ro(N,ie);de={left:Math.min(Kt.left,rr.left),top:Math.min(Kt.top,rr.top)-oe,right:Math.max(Kt.left,rr.left),bottom:Math.max(Kt.bottom,rr.bottom)+oe};var pr=pa(N,de),Tn=N.doc.scrollTop,zn=N.doc.scrollLeft;if(pr.scrollTop!=null&&(ua(N,pr.scrollTop),Math.abs(N.doc.scrollTop-Tn)>1&&(At=!0)),pr.scrollLeft!=null&&(Ra(N,pr.scrollLeft),Math.abs(N.doc.scrollLeft-zn)>1&&(At=!0)),!At)break}return de}function La(N,U){var ie=pa(N,U);ie.scrollTop!=null&&ua(N,ie.scrollTop),ie.scrollLeft!=null&&Ra(N,ie.scrollLeft)}function pa(N,U){var ie=N.display,oe=mo(N.display);U.top<0&&(U.top=0);var de=N.curOp&&N.curOp.scrollTop!=null?N.curOp.scrollTop:ie.scroller.scrollTop,Be=Ri(N),At={};U.bottom-U.top>Be&&(U.bottom=U.top+Be);var Kt=N.doc.height+ni(ie),rr=U.top<oe,pr=U.bottom>Kt-oe;if(U.top<de)At.scrollTop=rr?0:U.top;else if(U.bottom>de+Be){var Tn=Math.min(U.top,(pr?Kt:U.bottom)-Be);Tn!=de&&(At.scrollTop=Tn)}var zn=N.options.fixedGutter?0:ie.gutters.offsetWidth,li=N.curOp&&N.curOp.scrollLeft!=null?N.curOp.scrollLeft:ie.scroller.scrollLeft-zn,di=_i(N)-ie.gutters.offsetWidth,Ki=U.right-U.left>di;return Ki&&(U.right=U.left+di),U.left<10?At.scrollLeft=0:U.left<li?At.scrollLeft=Math.max(0,U.left+zn-(Ki?0:10)):U.right>di+li-3&&(At.scrollLeft=U.right+(Ki?0:10)-di),At}function ca(N,U){if(U==null)return;fo(N),N.curOp.scrollTop=(N.curOp.scrollTop==null?N.doc.scrollTop:N.curOp.scrollTop)+U}function wa(N){fo(N);var U=N.getCursor();N.curOp.scrollToPos={from:U,to:U,margin:N.options.cursorScrollMargin}}function Ca(N,U,ie){(U!=null||ie!=null)&&fo(N),U!=null&&(N.curOp.scrollLeft=U),ie!=null&&(N.curOp.scrollTop=ie)}function No(N,U){fo(N),N.curOp.scrollToPos=U}function fo(N){var U=N.curOp.scrollToPos;if(U){N.curOp.scrollToPos=null;var ie=lo(N,U.from),oe=lo(N,U.to);ea(N,ie,oe,U.margin)}}function ea(N,U,ie,oe){var de=pa(N,{left:Math.min(U.left,ie.left),top:Math.min(U.top,ie.top)-oe,right:Math.max(U.right,ie.right),bottom:Math.max(U.bottom,ie.bottom)+oe});Ca(N,de.scrollLeft,de.scrollTop)}function ua(N,U){if(Math.abs(N.doc.scrollTop-U)<2)return;S||Us(N,{top:U}),da(N,U,!0),S&&Us(N),ns(N,100)}function da(N,U,ie){if(U=Math.max(0,Math.min(N.display.scroller.scrollHeight-N.display.scroller.clientHeight,U)),N.display.scroller.scrollTop==U&&!ie)return;N.doc.scrollTop=U,N.display.scrollbars.setScrollTop(U),N.display.scroller.scrollTop!=U&&(N.display.scroller.scrollTop=U)}function Ra(N,U,ie,oe){if(U=Math.max(0,Math.min(U,N.display.scroller.scrollWidth-N.display.scroller.clientWidth)),(ie?U==N.doc.scrollLeft:Math.abs(N.doc.scrollLeft-U)<2)&&!oe)return;N.doc.scrollLeft=U,tl(N),N.display.scroller.scrollLeft!=U&&(N.display.scroller.scrollLeft=U),N.display.scrollbars.setScrollLeft(U)}function Za(N){var U=N.display,ie=U.gutters.offsetWidth,oe=Math.round(N.doc.height+ni(N.display));return{clientHeight:U.scroller.clientHeight,viewHeight:U.wrapper.clientHeight,scrollWidth:U.scroller.scrollWidth,clientWidth:U.scroller.clientWidth,viewWidth:U.wrapper.clientWidth,barLeft:N.options.fixedGutter?ie:0,docHeight:oe,scrollHeight:oe+ii(N)+U.barHeight,nativeBarWidth:U.nativeBarWidth,gutterWidth:ie}}var Qa=function(U,ie,oe){this.cm=oe;var de=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Be=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=Be.tabIndex=-1,U(de),U(Be),ke(de,"scroll",function(){de.clientHeight&&ie(de.scrollTop,"vertical")}),ke(Be,"scroll",function(){Be.clientWidth&&ie(Be.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qa.prototype.update=function(N){var U=N.scrollWidth>N.clientWidth+1,ie=N.scrollHeight>N.clientHeight+1,oe=N.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=U?oe+"px":"0";var de=N.viewHeight-(U?oe:0);this.vert.firstChild.style.height=Math.max(0,N.scrollHeight-N.clientHeight+de)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(U){this.horiz.style.display="block",this.horiz.style.right=ie?oe+"px":"0",this.horiz.style.left=N.barLeft+"px";var Be=N.viewWidth-N.barLeft-(ie?oe:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+Be)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(oe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?oe:0,bottom:U?oe:0}},Qa.prototype.setScrollLeft=function(N){this.horiz.scrollLeft!=N&&(this.horiz.scrollLeft=N),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qa.prototype.setScrollTop=function(N){this.vert.scrollTop!=N&&(this.vert.scrollTop=N),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qa.prototype.zeroWidthHack=function(){var N=g&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=N,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},Qa.prototype.enableZeroWidthBar=function(N,U,ie){N.style.pointerEvents="auto";function oe(){var de=N.getBoundingClientRect(),Be=ie=="vert"?document.elementFromPoint(de.right-1,(de.top+de.bottom)/2):document.elementFromPoint((de.right+de.left)/2,de.bottom-1);Be!=N?N.style.pointerEvents="none":U.set(1e3,oe)}U.set(1e3,oe)},Qa.prototype.clear=function(){var N=this.horiz.parentNode;N.removeChild(this.horiz),N.removeChild(this.vert)};var oo=function(){};oo.prototype.update=function(){return{bottom:0,right:0}},oo.prototype.setScrollLeft=function(){},oo.prototype.setScrollTop=function(){},oo.prototype.clear=function(){};function bo(N,U){U||(U=Za(N));var ie=N.display.barWidth,oe=N.display.barHeight;es(N,U);for(var de=0;de<4&&ie!=N.display.barWidth||oe!=N.display.barHeight;de++)ie!=N.display.barWidth&&N.options.lineWrapping&&hi(N),es(N,Za(N)),ie=N.display.barWidth,oe=N.display.barHeight}function es(N,U){var ie=N.display,oe=ie.scrollbars.update(U);ie.sizer.style.paddingRight=(ie.barWidth=oe.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=oe.bottom)+"px",ie.heightForcer.style.borderBottom=oe.bottom+"px solid transparent",oe.right&&oe.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=oe.bottom+"px",ie.scrollbarFiller.style.width=oe.right+"px"):ie.scrollbarFiller.style.display="",oe.bottom&&N.options.coverGutterNextToScrollbar&&N.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=oe.bottom+"px",ie.gutterFiller.style.width=U.gutterWidth+"px"):ie.gutterFiller.style.display=""}var ss={native:Qa,null:oo};function Rs(N){N.display.scrollbars&&(N.display.scrollbars.clear(),N.display.scrollbars.addClass&&E(N.display.wrapper,N.display.scrollbars.addClass)),N.display.scrollbars=new ss[N.options.scrollbarStyle](function(U){N.display.wrapper.insertBefore(U,N.display.scrollbarFiller),ke(U,"mousedown",function(){N.state.focused&&setTimeout(function(){return N.display.input.focus()},0)}),U.setAttribute("cm-not-content","true")},function(U,ie){ie=="horizontal"?Ra(N,U):ua(N,U)},N),N.display.scrollbars.addClass&&X(N.display.wrapper,N.display.scrollbars.addClass)}var Ko=0;function qo(N){N.curOp={cm:N,viewChanged:!1,startHeight:N.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},Ti(N.curOp)}function to(N){var U=N.curOp;U&&Wi(U,function(ie){for(var oe=0;oe<ie.ops.length;oe++)ie.ops[oe].cm.curOp=null;Xa(ie)})}function Xa(N){for(var U=N.ops,ie=0;ie<U.length;ie++)Wa(U[ie]);for(var oe=0;oe<U.length;oe++)Jo(U[oe]);for(var de=0;de<U.length;de++)hs(U[de]);for(var Be=0;Be<U.length;Be++)Eo(U[Be]);for(var At=0;At<U.length;At++)Ws(U[At])}function Wa(N){var U=N.cm,ie=U.display;Sl(U),N.updateMaxLine&&bn(U),N.mustUpdate=N.viewChanged||N.forceUpdate||N.scrollTop!=null||N.scrollToPos&&(N.scrollToPos.from.line<ie.viewFrom||N.scrollToPos.to.line>=ie.viewTo)||ie.maxLineChanged&&U.options.lineWrapping,N.update=N.mustUpdate&&new bs(U,N.mustUpdate&&{top:N.scrollTop,ensure:N.scrollToPos},N.forceUpdate)}function Jo(N){N.updatedDisplay=N.mustUpdate&&cs(N.cm,N.update)}function hs(N){var U=N.cm,ie=U.display;N.updatedDisplay&&hi(U),N.barMeasure=Za(U),ie.maxLineChanged&&!U.options.lineWrapping&&(N.adjustWidthTo=Oi(U,ie.maxLine,ie.maxLine.text.length).left+3,U.display.sizerWidth=N.adjustWidthTo,N.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+N.adjustWidthTo+ii(U)+U.display.barWidth),N.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+N.adjustWidthTo-_i(U))),(N.updatedDisplay||N.selectionChanged)&&(N.preparedSelection=ie.input.prepareSelection())}function Eo(N){var U=N.cm;N.adjustWidthTo!=null&&(U.display.sizer.style.minWidth=N.adjustWidthTo+"px",N.maxScrollLeft<U.doc.scrollLeft&&Ra(U,Math.min(U.display.scroller.scrollLeft,N.maxScrollLeft),!0),U.display.maxLineChanged=!1);var ie=N.focus&&N.focus==P();N.preparedSelection&&U.display.input.showSelection(N.preparedSelection,ie),(N.updatedDisplay||N.startHeight!=U.doc.height)&&bo(U,N.barMeasure),N.updatedDisplay&&Es(U,N.barMeasure),N.selectionChanged&&Qn(U),U.state.focused&&N.updateInput&&U.display.input.reset(N.typing),ie&&Zn(N.cm)}function Ws(N){var U=N.cm,ie=U.display,oe=U.doc;if(N.updatedDisplay&&_s(U,N.update),ie.wheelStartX!=null&&(N.scrollTop!=null||N.scrollLeft!=null||N.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),N.scrollTop!=null&&da(U,N.scrollTop,N.forceScroll),N.scrollLeft!=null&&Ra(U,N.scrollLeft,!0,!0),N.scrollToPos){var de=na(U,wt(oe,N.scrollToPos.from),wt(oe,N.scrollToPos.to),N.scrollToPos.margin);Ci(U,de)}var Be=N.maybeHiddenMarkers,At=N.maybeUnhiddenMarkers;if(Be)for(var Kt=0;Kt<Be.length;++Kt)Be[Kt].lines.length||Ot(Be[Kt],"hide");if(At)for(var rr=0;rr<At.length;++rr)At[rr].lines.length&&Ot(At[rr],"unhide");ie.wrapper.offsetHeight&&(oe.scrollTop=U.display.scroller.scrollTop),N.changeObjs&&Ot(U,"changes",U,N.changeObjs),N.update&&N.update.finish()}function _o(N,U){if(N.curOp)return U();qo(N);try{return U()}finally{to(N)}}function Mo(N,U){return function(){if(N.curOp)return U.apply(N,arguments);qo(N);try{return U.apply(N,arguments)}finally{to(N)}}}function xs(N){return function(){if(this.curOp)return N.apply(this,arguments);qo(this);try{return N.apply(this,arguments)}finally{to(this)}}}function Go(N){return function(){var U=this.cm;if(!U||U.curOp)return N.apply(this,arguments);qo(U);try{return N.apply(this,arguments)}finally{to(U)}}}function ns(N,U){N.doc.highlightFrontier<N.display.viewTo&&N.state.highlight.set(U,W(is,N))}function is(N){var U=N.doc;if(U.highlightFrontier>=N.display.viewTo)return;var ie=+new Date+N.options.workTime,oe=Vn(N,U.highlightFrontier),de=[];U.iter(oe.line,Math.min(U.first+U.size,N.display.viewTo+500),function(Be){if(oe.line>=N.display.viewFrom){var At=Be.styles,Kt=Be.text.length>N.options.maxHighlightLength?Ft(U.mode,oe.state):null,rr=en(N,Be,oe,!0);Kt&&(oe.state=Kt),Be.styles=rr.styles;var pr=Be.styleClasses,Tn=rr.classes;Tn?Be.styleClasses=Tn:pr&&(Be.styleClasses=null);for(var zn=!At||At.length!=Be.styles.length||pr!=Tn&&(!pr||!Tn||pr.bgClass!=Tn.bgClass||pr.textClass!=Tn.textClass),li=0;!zn&&li<At.length;++li)zn=At[li]!=Be.styles[li];zn&&de.push(oe.line),Be.stateAfter=oe.save(),oe.nextLine()}else Be.text.length<=N.options.maxHighlightLength&&jn(N,Be.text,oe),Be.stateAfter=oe.line%5==0?oe.save():null,oe.nextLine();if(+new Date>ie)return ns(N,N.options.workDelay),!0}),U.highlightFrontier=oe.line,U.modeFrontier=Math.max(U.modeFrontier,oe.line),de.length&&_o(N,function(){for(var Be=0;Be<de.length;Be++)at(N,de[Be],"text")})}var bs=function(U,ie,oe){var de=U.display;this.viewport=ie,this.visible=zi(de,U.doc,ie),this.editorIsHidden=!de.wrapper.offsetWidth,this.wrapperHeight=de.wrapper.clientHeight,this.wrapperWidth=de.wrapper.clientWidth,this.oldDisplayWidth=_i(U),this.force=oe,this.dims=Qo(U),this.events=[]};bs.prototype.signal=function(N,U){lr(N,U)&&this.events.push(arguments)},bs.prototype.finish=function(){for(var N=0;N<this.events.length;N++)Ot.apply(null,this.events[N])};function Sl(N){var U=N.display;!U.scrollbarsClipped&&U.scroller.offsetWidth&&(U.nativeBarWidth=U.scroller.offsetWidth-U.scroller.clientWidth,U.heightForcer.style.height=ii(N)+"px",U.sizer.style.marginBottom=-U.nativeBarWidth+"px",U.sizer.style.borderRightWidth=ii(N)+"px",U.scrollbarsClipped=!0)}function Fs(N){if(N.hasFocus())return null;var U=P();if(!U||!B(N.display.lineDiv,U))return null;var ie={activeElt:U};if(window.getSelection){var oe=window.getSelection();oe.anchorNode&&oe.extend&&B(N.display.lineDiv,oe.anchorNode)&&(ie.anchorNode=oe.anchorNode,ie.anchorOffset=oe.anchorOffset,ie.focusNode=oe.focusNode,ie.focusOffset=oe.focusOffset)}return ie}function Ms(N){if(!N||!N.activeElt||N.activeElt==P())return;if(N.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(N.activeElt.nodeName)&&N.anchorNode&&B(document.body,N.anchorNode)&&B(document.body,N.focusNode)){var U=window.getSelection(),ie=document.createRange();ie.setEnd(N.anchorNode,N.anchorOffset),ie.collapse(!1),U.removeAllRanges(),U.addRange(ie),U.extend(N.focusNode,N.focusOffset)}}function cs(N,U){var ie=N.display,oe=N.doc;if(U.editorIsHidden)return dr(N),!1;if(!U.force&&U.visible.from>=ie.viewFrom&&U.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&Pn(N)==0)return!1;Os(N)&&(dr(N),U.dims=Qo(N));var de=oe.first+oe.size,Be=Math.max(U.visible.from-N.options.viewportMargin,oe.first),At=Math.min(de,U.visible.to+N.options.viewportMargin);ie.viewFrom<Be&&Be-ie.viewFrom<20&&(Be=Math.max(oe.first,ie.viewFrom)),ie.viewTo>At&&ie.viewTo-At<20&&(At=Math.min(de,ie.viewTo)),ze&&(Be=_t(N.doc,Be),At=Xt(N.doc,At));var Kt=Be!=ie.viewFrom||At!=ie.viewTo||ie.lastWrapHeight!=U.wrapperHeight||ie.lastWrapWidth!=U.wrapperWidth;Br(N,Be,At),ie.viewOffset=br(Ie(N.doc,ie.viewFrom)),N.display.mover.style.top=ie.viewOffset+"px";var rr=Pn(N);if(!Kt&&rr==0&&!U.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var pr=Fs(N);return rr>4&&(ie.lineDiv.style.display="none"),ks(N,ie.updateLineNumbers,U.dims),rr>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Ms(pr),C(ie.cursorDiv),C(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,Kt&&(ie.lastWrapHeight=U.wrapperHeight,ie.lastWrapWidth=U.wrapperWidth,ns(N,400)),ie.updateLineNumbers=null,!0}function _s(N,U){for(var ie=U.viewport,oe=!0;;oe=!1){if(!oe||!N.options.lineWrapping||U.oldDisplayWidth==_i(N)){if(ie&&ie.top!=null&&(ie={top:Math.min(N.doc.height+ni(N.display)-Ri(N),ie.top)}),U.visible=zi(N.display,N.doc,ie),U.visible.from>=N.display.viewFrom&&U.visible.to<=N.display.viewTo)break}else oe&&(U.visible=zi(N.display,N.doc,ie));if(!cs(N,U))break;hi(N);var de=Za(N);$r(N),bo(N,de),Es(N,de),U.force=!1}U.signal(N,"update",N),(N.display.viewFrom!=N.display.reportedViewFrom||N.display.viewTo!=N.display.reportedViewTo)&&(U.signal(N,"viewportChange",N,N.display.viewFrom,N.display.viewTo),N.display.reportedViewFrom=N.display.viewFrom,N.display.reportedViewTo=N.display.viewTo)}function Us(N,U){var ie=new bs(N,U);if(cs(N,ie)){hi(N),_s(N,ie);var oe=Za(N);$r(N),bo(N,oe),Es(N,oe),ie.finish()}}function ks(N,U,ie){var oe=N.display,de=N.options.lineNumbers,Be=oe.lineDiv,At=Be.firstChild;function Kt(Ki){var fa=Ki.nextSibling;return o&&g&&N.display.currentWheelTarget==Ki?Ki.style.display="none":Ki.parentNode.removeChild(Ki),fa}for(var rr=oe.view,pr=oe.viewFrom,Tn=0;Tn<rr.length;Tn++){var zn=rr[Tn];if(!zn.hidden)if(!zn.node||zn.node.parentNode!=Be){var li=Ar(N,zn,pr,ie);Be.insertBefore(li,At)}else{for(;At!=zn.node;)At=Kt(At);var di=de&&U!=null&&U<=pr&&zn.lineNumber;zn.changes&&(G(zn.changes,"gutter")>-1&&(di=!1),nn(N,zn,pr,ie)),di&&(C(zn.lineNumber),zn.lineNumber.appendChild(document.createTextNode(on(N.options,pr)))),At=zn.node.nextSibling}pr+=zn.size}for(;At;)At=Kt(At)}function ps(N){var U=N.gutters.offsetWidth;N.sizer.style.marginLeft=U+"px"}function Es(N,U){N.display.sizer.style.minHeight=U.docHeight+"px",N.display.heightForcer.style.top=U.docHeight+"px",N.display.gutters.style.height=U.docHeight+N.display.barHeight+ii(N)+"px"}function tl(N){var U=N.display,ie=U.view;if(!U.alignWidgets&&(!U.gutters.firstChild||!N.options.fixedGutter))return;for(var oe=xo(U)-U.scroller.scrollLeft+N.doc.scrollLeft,de=U.gutters.offsetWidth,Be=oe+"px",At=0;At<ie.length;At++)if(!ie[At].hidden){N.options.fixedGutter&&(ie[At].gutter&&(ie[At].gutter.style.left=Be),ie[At].gutterBackground&&(ie[At].gutterBackground.style.left=Be));var Kt=ie[At].alignable;if(Kt)for(var rr=0;rr<Kt.length;rr++)Kt[rr].style.left=Be}N.options.fixedGutter&&(U.gutters.style.left=oe+de+"px")}function Os(N){if(!N.options.lineNumbers)return!1;var U=N.doc,ie=on(N.options,U.first+U.size-1),oe=N.display;if(ie.length!=oe.lineNumChars){var de=oe.measure.appendChild(O("div",[O("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Be=de.firstChild.offsetWidth,At=de.offsetWidth-Be;return oe.lineGutter.style.width="",oe.lineNumInnerWidth=Math.max(Be,oe.lineGutter.offsetWidth-At)+1,oe.lineNumWidth=oe.lineNumInnerWidth+At,oe.lineNumChars=oe.lineNumInnerWidth?ie.length:-1,oe.lineGutter.style.width=oe.lineNumWidth+"px",ps(N.display),!0}return!1}function Ro(N,U){for(var ie=[],oe=!1,de=0;de<N.length;de++){var Be=N[de],At=null;if(typeof Be!="string"&&(At=Be.style,Be=Be.className),Be=="CodeMirror-linenumbers")if(U)oe=!0;else continue;ie.push({className:Be,style:At})}return U&&!oe&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function wo(N){var U=N.gutters,ie=N.gutterSpecs;C(U),N.lineGutter=null;for(var oe=0;oe<ie.length;++oe){var de=ie[oe],Be=de.className,At=de.style,Kt=U.appendChild(O("div",null,"CodeMirror-gutter "+Be));At&&(Kt.style.cssText=At),Be=="CodeMirror-linenumbers"&&(N.lineGutter=Kt,Kt.style.width=(N.lineNumWidth||1)+"px")}U.style.display=ie.length?"":"none",ps(N)}function ms(N){wo(N.display),_a(N),tl(N)}function As(N,U,ie,oe){var de=this;this.input=ie,de.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),de.scrollbarFiller.setAttribute("cm-not-content","true"),de.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),de.gutterFiller.setAttribute("cm-not-content","true"),de.lineDiv=F("div",null,"CodeMirror-code"),de.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),de.cursorDiv=O("div",null,"CodeMirror-cursors"),de.measure=O("div",null,"CodeMirror-measure"),de.lineMeasure=O("div",null,"CodeMirror-measure"),de.lineSpace=F("div",[de.measure,de.lineMeasure,de.selectionDiv,de.cursorDiv,de.lineDiv],null,"position: relative; outline: none");var Be=F("div",[de.lineSpace],"CodeMirror-lines");de.mover=O("div",[Be],null,"position: relative"),de.sizer=O("div",[de.mover],"CodeMirror-sizer"),de.sizerWidth=null,de.heightForcer=O("div",null,null,"position: absolute; height: "+ee+"px; width: 1px;"),de.gutters=O("div",null,"CodeMirror-gutters"),de.lineGutter=null,de.scroller=O("div",[de.sizer,de.heightForcer,de.gutters],"CodeMirror-scroll"),de.scroller.setAttribute("tabIndex","-1"),de.wrapper=O("div",[de.scrollbarFiller,de.gutterFiller,de.scroller],"CodeMirror"),d&&u<8&&(de.gutters.style.zIndex=-1,de.scroller.style.paddingRight=0),!o&&!(S&&h)&&(de.scroller.draggable=!0),N&&(N.appendChild?N.appendChild(de.wrapper):N(de.wrapper)),de.viewFrom=de.viewTo=U.first,de.reportedViewFrom=de.reportedViewTo=U.first,de.view=[],de.renderedView=null,de.externalMeasured=null,de.viewOffset=0,de.lastWrapHeight=de.lastWrapWidth=0,de.updateLineNumbers=null,de.nativeBarWidth=de.barHeight=de.barWidth=0,de.scrollbarsClipped=!1,de.lineNumWidth=de.lineNumInnerWidth=de.lineNumChars=null,de.alignWidgets=!1,de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.maxLine=null,de.maxLineLength=0,de.maxLineChanged=!1,de.wheelDX=de.wheelDY=de.wheelStartX=de.wheelStartY=null,de.shift=!1,de.selForContextMenu=null,de.activeTouch=null,de.gutterSpecs=Ro(oe.gutters,oe.lineNumbers),wo(de),ie.init(de)}var ao=0,Ct=null;d?Ct=-.53:S?Ct=15:t?Ct=-.7:e&&(Ct=-1/3);function zt(N){var U=N.wheelDeltaX,ie=N.wheelDeltaY;return U==null&&N.detail&&N.axis==N.HORIZONTAL_AXIS&&(U=N.detail),ie==null&&N.detail&&N.axis==N.VERTICAL_AXIS?ie=N.detail:ie==null&&(ie=N.wheelDelta),{x:U,y:ie}}function gn(N){var U=zt(N);return U.x*=Ct,U.y*=Ct,U}function $n(N,U){var ie=zt(U),oe=ie.x,de=ie.y,Be=N.display,At=Be.scroller,Kt=At.scrollWidth>At.clientWidth,rr=At.scrollHeight>At.clientHeight;if(!(oe&&Kt||de&&rr))return;if(de&&g&&o){e:for(var pr=U.target,Tn=Be.view;pr!=At;pr=pr.parentNode)for(var zn=0;zn<Tn.length;zn++)if(Tn[zn].node==pr){N.display.currentWheelTarget=pr;break e}}if(oe&&!S&&!a&&Ct!=null){de&&rr&&ua(N,Math.max(0,At.scrollTop+de*Ct)),Ra(N,Math.max(0,At.scrollLeft+oe*Ct)),(!de||de&&rr)&&mt(U),Be.wheelStartX=null;return}if(de&&Ct!=null){var li=de*Ct,di=N.doc.scrollTop,Ki=di+Be.wrapper.clientHeight;li<0?di=Math.max(0,di+li-50):Ki=Math.min(N.doc.height,Ki+li+50),Us(N,{top:di,bottom:Ki})}ao<20&&(Be.wheelStartX==null?(Be.wheelStartX=At.scrollLeft,Be.wheelStartY=At.scrollTop,Be.wheelDX=oe,Be.wheelDY=de,setTimeout(function(){if(Be.wheelStartX==null)return;var fa=At.scrollLeft-Be.wheelStartX,Ta=At.scrollTop-Be.wheelStartY,ba=Ta&&Be.wheelDY&&Ta/Be.wheelDY||fa&&Be.wheelDX&&fa/Be.wheelDX;if(Be.wheelStartX=Be.wheelStartY=null,!ba)return;Ct=(Ct*ao+ba)/(ao+1),++ao},200)):(Be.wheelDX+=oe,Be.wheelDY+=de))}var bi=function(U,ie){this.ranges=U,this.primIndex=ie};bi.prototype.primary=function(){return this.ranges[this.primIndex]},bi.prototype.equals=function(N){if(N==this)return!0;if(N.primIndex!=this.primIndex||N.ranges.length!=this.ranges.length)return!1;for(var U=0;U<this.ranges.length;U++){var ie=this.ranges[U],oe=N.ranges[U];if(!dt(ie.anchor,oe.anchor)||!dt(ie.head,oe.head))return!1}return!0},bi.prototype.deepCopy=function(){for(var N=[],U=0;U<this.ranges.length;U++)N[U]=new oi(Yt(this.ranges[U].anchor),Yt(this.ranges[U].head));return new bi(N,this.primIndex)},bi.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},bi.prototype.contains=function(N,U){U||(U=N);for(var ie=0;ie<this.ranges.length;ie++){var oe=this.ranges[ie];if(ot(U,oe.from())>=0&&ot(N,oe.to())<=0)return ie}return-1};var oi=function(U,ie){this.anchor=U,this.head=ie};oi.prototype.from=function(){return Et(this.anchor,this.head)},oi.prototype.to=function(){return Pt(this.anchor,this.head)},oi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yi(N,U,ie){var oe=N&&N.options.selectionsMayTouch,de=U[ie];U.sort(function(li,di){return ot(li.from(),di.from())}),ie=G(U,de);for(var Be=1;Be<U.length;Be++){var At=U[Be],Kt=U[Be-1],rr=ot(Kt.to(),At.from());if(oe&&!At.empty()?rr>0:rr>=0){var pr=Et(Kt.from(),At.from()),Tn=Pt(Kt.to(),At.to()),zn=Kt.empty()?At.from()==At.head:Kt.from()==Kt.head;Be<=ie&&--ie,U.splice(--Be,2,new oi(zn?Tn:pr,zn?pr:Tn))}}return new bi(U,ie)}function ha(N,U){return new bi([new oi(N,U||N)],0)}function Pa(N){return N.text?Nt(N.from.line+N.text.length-1,Ue(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function Co(N,U){if(ot(N,U.from)<0)return N;if(ot(N,U.to)<=0)return Pa(U);var ie=N.line+U.text.length-(U.to.line-U.from.line)-1,oe=N.ch;return N.line==U.to.line&&(oe+=Pa(U).ch-U.to.ch),Nt(ie,oe)}function vo(N,U){for(var ie=[],oe=0;oe<N.sel.ranges.length;oe++){var de=N.sel.ranges[oe];ie.push(new oi(Co(de.anchor,U),Co(de.head,U)))}return Yi(N.cm,ie,N.sel.primIndex)}function ko(N,U,ie){return N.line==U.line?Nt(ie.line,N.ch-U.ch+ie.ch):Nt(ie.line+(N.line-U.line),N.ch)}function ls(N,U,ie){for(var oe=[],de=Nt(N.first,0),Be=de,At=0;At<U.length;At++){var Kt=U[At],rr=ko(Kt.from,de,Be),pr=ko(Pa(Kt),de,Be);if(de=Kt.to,Be=pr,ie=="around"){var Tn=N.sel.ranges[At],zn=ot(Tn.head,Tn.anchor)<0;oe[At]=new oi(zn?pr:rr,zn?rr:pr)}else oe[At]=new oi(rr,rr)}return new bi(oe,N.sel.primIndex)}function jo(N){N.doc.mode=ki(N.options,N.doc.modeOption),Zo(N)}function Zo(N){N.doc.iter(function(U){U.stateAfter&&(U.stateAfter=null),U.styles&&(U.styles=null)}),N.doc.modeFrontier=N.doc.highlightFrontier=N.doc.first,ns(N,100),N.state.modeGen++,N.curOp&&_a(N)}function ts(N,U){return U.from.ch==0&&U.to.ch==0&&Ue(U.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function Ua(N,U,ie,oe){function de(ya){return ie?ie[ya]:null}function Be(ya,Ha,Ja){an(ya,Ha,Ja,oe),Ir(ya,"change",ya,U)}function At(ya,Ha){for(var Ja=[],Uo=ya;Uo<Ha;++Uo)Ja.push(new qn(pr[Uo],de(Uo),oe));return Ja}var Kt=U.from,rr=U.to,pr=U.text,Tn=Ie(N,Kt.line),zn=Ie(N,rr.line),li=Ue(pr),di=de(pr.length-1),Ki=rr.line-Kt.line;if(U.full)N.insert(0,At(0,pr.length)),N.remove(pr.length,N.size-pr.length);else if(ts(N,U)){var fa=At(0,pr.length-1);Be(zn,zn.text,di),Ki&&N.remove(Kt.line,Ki),fa.length&&N.insert(Kt.line,fa)}else if(Tn==zn)if(pr.length==1)Be(Tn,Tn.text.slice(0,Kt.ch)+li+Tn.text.slice(rr.ch),di);else{var Ta=At(1,pr.length-1);Ta.push(new qn(li+Tn.text.slice(rr.ch),di,oe)),Be(Tn,Tn.text.slice(0,Kt.ch)+pr[0],de(0)),N.insert(Kt.line+1,Ta)}else if(pr.length==1)Be(Tn,Tn.text.slice(0,Kt.ch)+pr[0]+zn.text.slice(rr.ch),de(0)),N.remove(Kt.line+1,Ki);else{Be(Tn,Tn.text.slice(0,Kt.ch)+pr[0],de(0)),Be(zn,li+zn.text.slice(rr.ch),di);var ba=At(1,pr.length-1);Ki>1&&N.remove(Kt.line+1,Ki-1),N.insert(Kt.line+1,ba)}Ir(N,"change",N,U)}function Oo(N,U,ie){function oe(de,Be,At){if(de.linked)for(var Kt=0;Kt<de.linked.length;++Kt){var rr=de.linked[Kt];if(rr.doc==Be)continue;var pr=At&&rr.sharedHist;if(ie&&!pr)continue;U(rr.doc,pr),oe(rr.doc,de,pr)}}oe(N,null,!0)}function as(N,U){if(U.cm)throw new Error("This document is already in use.");N.doc=U,U.cm=N,Ho(N),jo(N),Ul(N),N.options.lineWrapping||bn(N),N.options.mode=U.modeOption,_a(N)}function Ul(N){(N.doc.direction=="rtl"?X:E)(N.display.lineDiv,"CodeMirror-rtl")}function vl(N){_o(N,function(){Ul(N),_a(N)})}function Qs(N){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=N||1}function il(N,U){var ie={from:Yt(U.from),to:Pa(U),text:Ze(N,U.from,U.to)};return Zs(N,ie,U.from.line,U.to.line+1),Oo(N,function(oe){return Zs(oe,ie,U.from.line,U.to.line+1)},!0),ie}function ll(N){for(;N.length;){var U=Ue(N);if(U.ranges)N.pop();else break}}function jl(N,U){if(U)return ll(N.done),Ue(N.done);if(N.done.length&&!Ue(N.done).ranges)return Ue(N.done);if(N.done.length>1&&!N.done[N.done.length-2].ranges)return N.done.pop(),Ue(N.done)}function Hl(N,U,ie,oe){var de=N.history;de.undone.length=0;var Be=+new Date,At,Kt;if((de.lastOp==oe||de.lastOrigin==U.origin&&U.origin&&(U.origin.charAt(0)=="+"&&de.lastModTime>Be-(N.cm?N.cm.options.historyEventDelay:500)||U.origin.charAt(0)=="*"))&&(At=jl(de,de.lastOp==oe)))Kt=Ue(At.changes),ot(U.from,U.to)==0&&ot(U.from,Kt.to)==0?Kt.to=Pa(U):At.changes.push(il(N,U));else{var rr=Ue(de.done);for((!rr||!rr.ranges)&&Xo(N.sel,de.done),At={changes:[il(N,U)],generation:de.generation},de.done.push(At);de.done.length>de.undoDepth;)de.done.shift(),de.done[0].ranges||de.done.shift()}de.done.push(ie),de.generation=++de.maxGeneration,de.lastModTime=de.lastSelTime=Be,de.lastOp=de.lastSelOp=oe,de.lastOrigin=de.lastSelOrigin=U.origin,Kt||Ot(N,"historyAdded")}function Js(N,U,ie,oe){var de=U.charAt(0);return de=="*"||de=="+"&&ie.ranges.length==oe.ranges.length&&ie.somethingSelected()==oe.somethingSelected()&&new Date-N.history.lastSelTime<=(N.cm?N.cm.options.historyEventDelay:500)}function fs(N,U,ie,oe){var de=N.history,Be=oe&&oe.origin;ie==de.lastSelOp||Be&&de.lastSelOrigin==Be&&(de.lastModTime==de.lastSelTime&&de.lastOrigin==Be||Js(N,Be,Ue(de.done),U))?de.done[de.done.length-1]=U:Xo(U,de.done),de.lastSelTime=+new Date,de.lastSelOrigin=Be,de.lastSelOp=ie,oe&&oe.clearRedo!==!1&&ll(de.undone)}function Xo(N,U){var ie=Ue(U);ie&&ie.ranges&&ie.equals(N)||U.push(N)}function Zs(N,U,ie,oe){var de=U["spans_"+N.id],Be=0;N.iter(Math.max(N.first,ie),Math.min(N.first+N.size,oe),function(At){At.markedSpans&&((de||(de=U["spans_"+N.id]={}))[Be]=At.markedSpans),++Be})}function Gl(N){if(!N)return null;for(var U,ie=0;ie<N.length;++ie)N[ie].marker.explicitlyCleared?U||(U=N.slice(0,ie)):U&&U.push(N[ie]);return U?U.length?U:null:N}function Kl(N,U){var ie=U["spans_"+N.id];if(!ie)return null;for(var oe=[],de=0;de<U.text.length;++de)oe.push(Gl(ie[de]));return oe}function ka(N,U){var ie=Kl(N,U),oe=Rn(N,U);if(!ie)return oe;if(!oe)return ie;for(var de=0;de<ie.length;++de){var Be=ie[de],At=oe[de];if(Be&&At){e:for(var Kt=0;Kt<At.length;++Kt){for(var rr=At[Kt],pr=0;pr<Be.length;++pr)if(Be[pr].marker==rr.marker)continue e;Be.push(rr)}}else At&&(ie[de]=At)}return ie}function Ll(N,U,ie){for(var oe=[],de=0;de<N.length;++de){var Be=N[de];if(Be.ranges){oe.push(ie?bi.prototype.deepCopy.call(Be):Be);continue}var At=Be.changes,Kt=[];oe.push({changes:Kt});for(var rr=0;rr<At.length;++rr){var pr=At[rr],Tn=void 0;if(Kt.push({from:pr.from,to:pr.to,text:pr.text}),U)for(var zn in pr)(Tn=zn.match(/^spans_(\d+)$/))&&(G(U,Number(Tn[1]))>-1&&(Ue(Kt)[zn]=pr[zn],delete pr[zn]))}}return oe}function kl(N,U,ie,oe){if(oe){var de=N.anchor;if(ie){var Be=ot(U,de)<0;Be!=ot(ie,de)<0?(de=U,U=ie):Be!=ot(U,ie)<0&&(U=ie)}return new oi(de,U)}else return new oi(ie||U,U)}function Al(N,U,ie,oe,de){de==null&&(de=N.cm&&(N.cm.display.shift||N.extend)),Ls(N,new bi([kl(N.sel.primary(),U,ie,de)],0),oe)}function Is(N,U,ie){for(var oe=[],de=N.cm&&(N.cm.display.shift||N.extend),Be=0;Be<N.sel.ranges.length;Be++)oe[Be]=kl(N.sel.ranges[Be],U[Be],null,de);var At=Yi(N.cm,oe,N.sel.primIndex);Ls(N,At,ie)}function al(N,U,ie,oe){var de=N.sel.ranges.slice(0);de[U]=ie,Ls(N,Yi(N.cm,de,N.sel.primIndex),oe)}function eu(N,U,ie,oe){Ls(N,ha(U,ie),oe)}function Nl(N,U,ie){var oe={ranges:U.ranges,update:function(Be){this.ranges=[];for(var At=0;At<Be.length;At++)this.ranges[At]=new oi(wt(N,Be[At].anchor),wt(N,Be[At].head))},origin:ie&&ie.origin};return Ot(N,"beforeSelectionChange",N,oe),N.cm&&Ot(N.cm,"beforeSelectionChange",N.cm,oe),oe.ranges!=U.ranges?Yi(N.cm,oe.ranges,oe.ranges.length-1):U}function yl(N,U,ie){var oe=N.history.done,de=Ue(oe);de&&de.ranges?(oe[oe.length-1]=U,Xs(N,U,ie)):Ls(N,U,ie)}function Ls(N,U,ie){Xs(N,U,ie),fs(N,N.sel,N.cm?N.cm.curOp.id:NaN,ie)}function Xs(N,U,ie){(lr(N,"beforeSelectionChange")||N.cm&&lr(N.cm,"beforeSelectionChange"))&&(U=Nl(N,U,ie));var oe=ie&&ie.bias||(ot(U.primary().head,N.sel.primary().head)<0?-1:1);Wl(N,So(N,U,oe,!0)),!(ie&&ie.scroll===!1)&&N.cm&&wa(N.cm)}function Wl(N,U){if(U.equals(N.sel))return;N.sel=U,N.cm&&(N.cm.curOp.updateInput=1,N.cm.curOp.selectionChanged=!0,ir(N.cm)),Ir(N,"cursorActivity",N)}function ol(N){Wl(N,So(N,N.sel,null,!1))}function So(N,U,ie,oe){for(var de,Be=0;Be<U.ranges.length;Be++){var At=U.ranges[Be],Kt=U.ranges.length==N.sel.ranges.length&&N.sel.ranges[Be],rr=Bo(N,At.anchor,Kt&&Kt.anchor,ie,oe),pr=Bo(N,At.head,Kt&&Kt.head,ie,oe);(de||rr!=At.anchor||pr!=At.head)&&(de||(de=U.ranges.slice(0,Be)),de[Be]=new oi(rr,pr))}return de?Yi(N.cm,de,U.primIndex):U}function io(N,U,ie,oe,de){var Be=Ie(N,U.line);if(Be.markedSpans)for(var At=0;At<Be.markedSpans.length;++At){var Kt=Be.markedSpans[At],rr=Kt.marker,pr="selectLeft"in rr?!rr.selectLeft:rr.inclusiveLeft,Tn="selectRight"in rr?!rr.selectRight:rr.inclusiveRight;if((Kt.from==null||(pr?Kt.from<=U.ch:Kt.from<U.ch))&&(Kt.to==null||(Tn?Kt.to>=U.ch:Kt.to>U.ch))){if(de&&(Ot(rr,"beforeCursorEnter"),rr.explicitlyCleared))if(Be.markedSpans){--At;continue}else break;if(!rr.atomic)continue;if(ie){var zn=rr.find(oe<0?1:-1),li=void 0;if((oe<0?Tn:pr)&&(zn=ds(N,zn,-oe,zn&&zn.line==U.line?Be:null)),zn&&zn.line==U.line&&(li=ot(zn,ie))&&(oe<0?li<0:li>0))return io(N,zn,U,oe,de)}var di=rr.find(oe<0?-1:1);return(oe<0?pr:Tn)&&(di=ds(N,di,oe,di.line==U.line?Be:null)),di?io(N,di,U,oe,de):null}}return U}function Bo(N,U,ie,oe,de){var Be=oe||1,At=io(N,U,ie,Be,de)||!de&&io(N,U,ie,Be,!0)||io(N,U,ie,-Be,de)||!de&&io(N,U,ie,-Be,!0);return At||(N.cantEdit=!0,Nt(N.first,0))}function ds(N,U,ie,oe){return ie<0&&U.ch==0?U.line>N.first?wt(N,Nt(U.line-1)):null:ie>0&&U.ch==(oe||Ie(N,U.line)).text.length?U.line<N.first+N.size-1?Nt(U.line+1,0):null:new Nt(U.line,U.ch+ie)}function gs(N){N.setSelection(Nt(N.firstLine(),0),Nt(N.lastLine()),se)}function Wo(N,U,ie){var oe={canceled:!1,from:U.from,to:U.to,text:U.text,origin:U.origin,cancel:function(){return oe.canceled=!0}};return ie&&(oe.update=function(de,Be,At,Kt){de&&(oe.from=wt(N,de)),Be&&(oe.to=wt(N,Be)),At&&(oe.text=At),Kt!==void 0&&(oe.origin=Kt)}),Ot(N,"beforeChange",N,oe),N.cm&&Ot(N.cm,"beforeChange",N.cm,oe),oe.canceled?(N.cm&&(N.cm.curOp.updateInput=2),null):{from:oe.from,to:oe.to,text:oe.text,origin:oe.origin}}function vs(N,U,ie){if(N.cm){if(!N.cm.curOp)return Mo(N.cm,vs)(N,U,ie);if(N.cm.state.suppressEdits)return}if((lr(N,"beforeChange")||N.cm&&lr(N.cm,"beforeChange"))&&(U=Wo(N,U,!0),!U))return;var oe=Ye&&!ie&&Un(N,U.from,U.to);if(oe)for(var de=oe.length-1;de>=0;--de)Ps(N,{from:oe[de].from,to:oe[de].to,text:de?[""]:U.text,origin:U.origin});else Ps(N,U)}function Ps(N,U){if(U.text.length==1&&U.text[0]==""&&ot(U.from,U.to)==0)return;var ie=vo(N,U);Hl(N,U,ie,N.cm?N.cm.curOp.id:NaN),ml(N,U,ie,Rn(N,U));var oe=[];Oo(N,function(de,Be){!Be&&G(oe,de.history)==-1&&(zs(de.history,U),oe.push(de.history)),ml(de,U,null,Rn(de,U))})}function js(N,U,ie){var oe=N.cm&&N.cm.state.suppressEdits;if(oe&&!ie)return;for(var de=N.history,Be,At=N.sel,Kt=U=="undo"?de.done:de.undone,rr=U=="undo"?de.undone:de.done,pr=0;pr<Kt.length&&!(Be=Kt[pr],ie?Be.ranges&&!Be.equals(N.sel):!Be.ranges);pr++);if(pr==Kt.length)return;for(de.lastOrigin=de.lastSelOrigin=null;;)if(Be=Kt.pop(),Be.ranges){if(Xo(Be,rr),ie&&!Be.equals(N.sel)){Ls(N,Be,{clearRedo:!1});return}At=Be}else if(oe){Kt.push(Be);return}else break;var Tn=[];Xo(At,rr),rr.push({changes:Tn,generation:de.generation}),de.generation=Be.generation||++de.maxGeneration;for(var zn=lr(N,"beforeChange")||N.cm&&lr(N.cm,"beforeChange"),li=function(Ta){var ba=Be.changes[Ta];if(ba.origin=U,zn&&!Wo(N,ba,!1))return Kt.length=0,{};Tn.push(il(N,ba));var ya=Ta?vo(N,ba):Ue(Kt);ml(N,ba,ya,ka(N,ba)),!Ta&&N.cm&&N.cm.scrollIntoView({from:ba.from,to:Pa(ba)});var Ha=[];Oo(N,function(Ja,Uo){!Uo&&G(Ha,Ja.history)==-1&&(zs(Ja.history,ba),Ha.push(Ja.history)),ml(Ja,ba,null,ka(Ja,ba))})},di=Be.changes.length-1;di>=0;--di){var Ki=li(di);if(Ki)return Ki.v}}function bl(N,U){if(U==0)return;if(N.first+=U,N.sel=new bi(nt(N.sel.ranges,function(de){return new oi(Nt(de.anchor.line+U,de.anchor.ch),Nt(de.head.line+U,de.head.ch))}),N.sel.primIndex),N.cm){_a(N.cm,N.first,N.first-U,U);for(var ie=N.cm.display,oe=ie.viewFrom;oe<ie.viewTo;oe++)at(N.cm,oe,"gutter")}}function ml(N,U,ie,oe){if(N.cm&&!N.cm.curOp)return Mo(N.cm,ml)(N,U,ie,oe);if(U.to.line<N.first){bl(N,U.text.length-1-(U.to.line-U.from.line));return}if(U.from.line>N.lastLine())return;if(U.from.line<N.first){var de=U.text.length-1-(N.first-U.from.line);bl(N,de),U={from:Nt(N.first,0),to:Nt(U.to.line+de,U.to.ch),text:[Ue(U.text)],origin:U.origin}}var Be=N.lastLine();U.to.line>Be&&(U={from:U.from,to:Nt(Be,Ie(N,Be).text.length),text:[U.text[0]],origin:U.origin}),U.removed=Ze(N,U.from,U.to),ie||(ie=vo(N,U)),N.cm?Dl(N.cm,U,oe):Ua(N,U,oe),Xs(N,ie,se),N.cantEdit&&Bo(N,Nt(N.firstLine(),0))&&(N.cantEdit=!1)}function Dl(N,U,ie){var oe=N.doc,de=N.display,Be=U.from,At=U.to,Kt=!1,rr=Be.line;N.options.lineWrapping||(rr=kt(xt(Ie(oe,Be.line))),oe.iter(rr,At.line+1,function(di){if(di==de.maxLine)return Kt=!0,!0})),oe.sel.contains(U.from,U.to)>-1&&ir(N),Ua(oe,U,ie,Fo(N)),N.options.lineWrapping||(oe.iter(rr,Be.line+U.text.length,function(di){var Ki=On(di);Ki>de.maxLineLength&&(de.maxLine=di,de.maxLineLength=Ki,de.maxLineChanged=!0,Kt=!1)}),Kt&&(N.curOp.updateMaxLine=!0)),He(oe,Be.line),ns(N,400);var pr=U.text.length-(At.line-Be.line)-1;U.full?_a(N):Be.line==At.line&&U.text.length==1&&!ts(N.doc,U)?at(N,Be.line,"text"):_a(N,Be.line,At.line+1,pr);var Tn=lr(N,"changes"),zn=lr(N,"change");if(zn||Tn){var li={from:Be,to:At,text:U.text,removed:U.removed,origin:U.origin};zn&&Ir(N,"change",N,li),Tn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(li)}N.display.selForContextMenu=null}function xl(N,U,ie,oe,de){var Be;oe||(oe=ie),ot(oe,ie)<0&&(Be=[oe,ie],ie=Be[0],oe=Be[1]),typeof U=="string"&&(U=N.splitLines(U)),vs(N,{from:ie,to:oe,text:U,origin:de})}function El(N,U,ie,oe){ie<N.line?N.line+=oe:U<N.line&&(N.line=U,N.ch=0)}function Pl(N,U,ie,oe){for(var de=0;de<N.length;++de){var Be=N[de],At=!0;if(Be.ranges){Be.copied||(Be=N[de]=Be.deepCopy(),Be.copied=!0);for(var Kt=0;Kt<Be.ranges.length;Kt++)El(Be.ranges[Kt].anchor,U,ie,oe),El(Be.ranges[Kt].head,U,ie,oe);continue}for(var rr=0;rr<Be.changes.length;++rr){var pr=Be.changes[rr];if(ie<pr.from.line)pr.from=Nt(pr.from.line+oe,pr.from.ch),pr.to=Nt(pr.to.line+oe,pr.to.ch);else if(U<=pr.to.line){At=!1;break}}At||(N.splice(0,de+1),de=0)}}function zs(N,U){var ie=U.from.line,oe=U.to.line,de=U.text.length-(oe-ie)-1;Pl(N.done,ie,oe,de),Pl(N.undone,ie,oe,de)}function Cs(N,U,ie,oe){var de=U,Be=U;return typeof U=="number"?Be=Ie(N,Bt(N,U)):de=kt(U),de==null?null:(oe(Be,de)&&N.cm&&at(N.cm,de,ie),Be)}function Vs(N){this.lines=N,this.parent=null;for(var U=0,ie=0;ie<N.length;++ie)N[ie].parent=this,U+=N[ie].height;this.height=U}Vs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(U,ie){for(var oe=U,de=U+ie;oe<de;++oe){var Be=this.lines[oe];this.height-=Be.height,_r(Be),Ir(Be,"delete")}this.lines.splice(U,ie)},collapse:function(U){U.push.apply(U,this.lines)},insertInner:function(U,ie,oe){this.height+=oe,this.lines=this.lines.slice(0,U).concat(ie).concat(this.lines.slice(U));for(var de=0;de<ie.length;++de)ie[de].parent=this},iterN:function(U,ie,oe){for(var de=U+ie;U<de;++U)if(oe(this.lines[U]))return!0}};function Ts(N){this.children=N;for(var U=0,ie=0,oe=0;oe<N.length;++oe){var de=N[oe];U+=de.chunkSize(),ie+=de.height,de.parent=this}this.size=U,this.height=ie,this.parent=null}Ts.prototype={chunkSize:function(){return this.size},removeInner:function(U,ie){this.size-=ie;for(var oe=0;oe<this.children.length;++oe){var de=this.children[oe],Be=de.chunkSize();if(U<Be){var At=Math.min(ie,Be-U),Kt=de.height;if(de.removeInner(U,At),this.height-=Kt-de.height,Be==At&&(this.children.splice(oe--,1),de.parent=null),(ie-=At)==0)break;U=0}else U-=Be}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof Vs))){var rr=[];this.collapse(rr),this.children=[new Vs(rr)],this.children[0].parent=this}},collapse:function(U){for(var ie=0;ie<this.children.length;++ie)this.children[ie].collapse(U)},insertInner:function(U,ie,oe){this.size+=ie.length,this.height+=oe;for(var de=0;de<this.children.length;++de){var Be=this.children[de],At=Be.chunkSize();if(U<=At){if(Be.insertInner(U,ie,oe),Be.lines&&Be.lines.length>50){for(var Kt=Be.lines.length%25+25,rr=Kt;rr<Be.lines.length;){var pr=new Vs(Be.lines.slice(rr,rr+=25));Be.height-=pr.height,this.children.splice(++de,0,pr),pr.parent=this}Be.lines=Be.lines.slice(0,Kt),this.maybeSpill()}break}U-=At}},maybeSpill:function(){if(this.children.length<=10)return;var U=this;do{var ie=U.children.splice(U.children.length-5,5),oe=new Ts(ie);if(U.parent){U.size-=oe.size,U.height-=oe.height;var Be=G(U.parent.children,U);U.parent.children.splice(Be+1,0,oe)}else{var de=new Ts(U.children);de.parent=U,U.children=[de,oe],U=de}oe.parent=U.parent}while(U.children.length>10);U.parent.maybeSpill()},iterN:function(U,ie,oe){for(var de=0;de<this.children.length;++de){var Be=this.children[de],At=Be.chunkSize();if(U<At){var Kt=Math.min(ie,At-U);if(Be.iterN(U,Kt,oe))return!0;if((ie-=Kt)==0)break;U=0}else U-=At}}};var ul=function(U,ie,oe){if(oe)for(var de in oe)oe.hasOwnProperty(de)&&(this[de]=oe[de]);this.doc=U,this.node=ie};ul.prototype.clear=function(){var N=this.doc.cm,U=this.line.widgets,ie=this.line,oe=kt(ie);if(oe==null||!U)return;for(var de=0;de<U.length;++de)U[de]==this&&U.splice(de--,1);U.length||(ie.widgets=null);var Be=ln(this);gt(ie,Math.max(0,ie.height-Be)),N&&(_o(N,function(){Cl(N,ie,-Be),at(N,oe,"widget")}),Ir(N,"lineWidgetCleared",N,this,oe))},ul.prototype.changed=function(){var N=this,U=this.height,ie=this.doc.cm,oe=this.line;this.height=null;var de=ln(this)-U;if(!de)return;er(this.doc,oe)||gt(oe,oe.height+de),ie&&_o(ie,function(){ie.curOp.forceUpdate=!0,Cl(ie,oe,de),Ir(ie,"lineWidgetChanged",ie,N,kt(oe))})},Sr(ul);function Cl(N,U,ie){br(U)<(N.curOp&&N.curOp.scrollTop||N.doc.scrollTop)&&ca(N,ie)}function Xl(N,U,ie,oe){var de=new ul(N,ie,oe),Be=N.cm;return Be&&de.noHScroll&&(Be.display.alignWidgets=!0),Cs(N,U,"widget",function(At){var Kt=At.widgets||(At.widgets=[]);if(de.insertAt==null?Kt.push(de):Kt.splice(Math.min(Kt.length-1,Math.max(0,de.insertAt)),0,de),de.line=At,Be&&!er(N,At)){var rr=br(At)<N.scrollTop;gt(At,At.height+ln(de)),rr&&ca(Be,de.height),Be.curOp.forceUpdate=!0}return!0}),Be&&Ir(Be,"lineWidgetAdded",Be,de,typeof U=="number"?U:kt(U)),de}var Jl=0,cl=function(U,ie){this.lines=[],this.type=ie,this.doc=U,this.id=++Jl};cl.prototype.clear=function(){if(this.explicitlyCleared)return;var N=this.doc.cm,U=N&&!N.curOp;if(U&&qo(N),lr(this,"clear")){var ie=this.find();ie&&Ir(this,"clear",ie.from,ie.to)}for(var oe=null,de=null,Be=0;Be<this.lines.length;++Be){var At=this.lines[Be],Kt=Ht(At.markedSpans,this);N&&!this.collapsed?at(N,kt(At),"text"):N&&(Kt.to!=null&&(de=kt(At)),Kt.from!=null&&(oe=kt(At))),At.markedSpans=Er(At.markedSpans,Kt),Kt.from==null&&this.collapsed&&!er(this.doc,At)&&N&&gt(At,mo(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var rr=0;rr<this.lines.length;++rr){var pr=xt(this.lines[rr]),Tn=On(pr);Tn>N.display.maxLineLength&&(N.display.maxLine=pr,N.display.maxLineLength=Tn,N.display.maxLineChanged=!0)}oe!=null&&N&&this.collapsed&&_a(N,oe,de+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,N&&ol(N.doc)),N&&Ir(N,"markerCleared",N,this,oe,de),U&&to(N),this.parent&&this.parent.clear()},cl.prototype.find=function(N,U){N==null&&this.type=="bookmark"&&(N=1);for(var ie,oe,de=0;de<this.lines.length;++de){var Be=this.lines[de],At=Ht(Be.markedSpans,this);if(At.from!=null&&(ie=Nt(U?Be:kt(Be),At.from),N==-1))return ie;if(At.to!=null&&(oe=Nt(U?Be:kt(Be),At.to),N==1))return oe}return ie&&{from:ie,to:oe}},cl.prototype.changed=function(){var N=this,U=this.find(-1,!0),ie=this,oe=this.doc.cm;if(!U||!oe)return;_o(oe,function(){var de=U.line,Be=kt(U.line),At=Ui(oe,Be);if(At&&(ga(At),oe.curOp.selectionChanged=oe.curOp.forceUpdate=!0),oe.curOp.updateMaxLine=!0,!er(ie.doc,de)&&ie.height!=null){var Kt=ie.height;ie.height=null;var rr=ln(ie)-Kt;rr&&gt(de,de.height+rr)}Ir(oe,"markerChanged",oe,N)})},cl.prototype.attachLine=function(N){if(!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(!U.maybeHiddenMarkers||G(U.maybeHiddenMarkers,this)==-1)&&(U.maybeUnhiddenMarkers||(U.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(N)},cl.prototype.detachLine=function(N){if(this.lines.splice(G(this.lines,N),1),!this.lines.length&&this.doc.cm){var U=this.doc.cm.curOp;(U.maybeHiddenMarkers||(U.maybeHiddenMarkers=[])).push(this)}},Sr(cl);function zl(N,U,ie,oe,de){if(oe&&oe.shared)return Iu(N,U,ie,oe,de);if(N.cm&&!N.cm.curOp)return Mo(N.cm,zl)(N,U,ie,oe,de);var Be=new cl(N,de),At=ot(U,ie);if(oe&&H(oe,Be,!1),At>0||At==0&&Be.clearWhenEmpty!==!1)return Be;if(Be.replacedWith&&(Be.collapsed=!0,Be.widgetNode=F("span",[Be.replacedWith],"CodeMirror-widget"),oe.handleMouseEvents||Be.widgetNode.setAttribute("cm-ignore-events","true"),oe.insertLeft&&(Be.widgetNode.insertLeft=!0)),Be.collapsed){if(yt(N,U.line,U,ie,Be)||U.line!=ie.line&&yt(N,ie.line,U,ie,Be))throw new Error("Inserting collapsed marker partially overlapping an existing one");St()}Be.addToHistory&&Hl(N,{from:U,to:ie,origin:"markText"},N.sel,NaN);var Kt=U.line,rr=N.cm,pr;if(N.iter(Kt,ie.line+1,function(zn){rr&&Be.collapsed&&!rr.options.lineWrapping&&xt(zn)==rr.display.maxLine&&(pr=!0),Be.collapsed&&Kt!=U.line&&gt(zn,0),Fr(zn,new ft(Be,Kt==U.line?U.ch:null,Kt==ie.line?ie.ch:null)),++Kt}),Be.collapsed&&N.iter(U.line,ie.line+1,function(zn){er(N,zn)&&gt(zn,0)}),Be.clearOnEnter&&ke(Be,"beforeCursorEnter",function(){return Be.clear()}),Be.readOnly&&($e(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),Be.collapsed&&(Be.id=++Jl,Be.atomic=!0),rr){if(pr&&(rr.curOp.updateMaxLine=!0),Be.collapsed)_a(rr,U.line,ie.line+1);else if(Be.className||Be.startStyle||Be.endStyle||Be.css||Be.attributes||Be.title)for(var Tn=U.line;Tn<=ie.line;Tn++)at(rr,Tn,"text");Be.atomic&&ol(rr.doc),Ir(rr,"markerAdded",rr,Be)}return Be}var tu=function(U,ie){this.markers=U,this.primary=ie;for(var oe=0;oe<U.length;++oe)U[oe].parent=this};tu.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var N=0;N<this.markers.length;++N)this.markers[N].clear();Ir(this,"clear")},tu.prototype.find=function(N,U){return this.primary.find(N,U)},Sr(tu);function Iu(N,U,ie,oe,de){oe=H(oe),oe.shared=!1;var Be=[zl(N,U,ie,oe,de)],At=Be[0],Kt=oe.widgetNode;return Oo(N,function(rr){Kt&&(oe.widgetNode=Kt.cloneNode(!0)),Be.push(zl(rr,wt(rr,U),wt(rr,ie),oe,de));for(var pr=0;pr<rr.linked.length;++pr)if(rr.linked[pr].isParent)return;At=Ue(Be)}),new tu(Be,At)}function bu(N){return N.findMarks(Nt(N.first,0),N.clipPos(Nt(N.lastLine())),function(U){return U.parent})}function du(N,U){for(var ie=0;ie<U.length;ie++){var oe=U[ie],de=oe.find(),Be=N.clipPos(de.from),At=N.clipPos(de.to);if(ot(Be,At)){var Kt=zl(N,Be,At,oe.primary,oe.primary.type);oe.markers.push(Kt),Kt.parent=oe}}}function hu(N){for(var U=function(de){var Be=N[de],At=[Be.primary.doc];Oo(Be.primary.doc,function(pr){return At.push(pr)});for(var Kt=0;Kt<Be.markers.length;Kt++){var rr=Be.markers[Kt];G(At,rr.doc)==-1&&(rr.parent=null,Be.markers.splice(Kt--,1))}},ie=0;ie<N.length;ie++)U(ie)}var nu=0,dl=function N(U,ie,oe,de,Be){if(!(this instanceof N))return new N(U,ie,oe,de,Be);oe==null&&(oe=0),Ts.call(this,[new Vs([new qn("",null)])]),this.first=oe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=oe;var At=Nt(oe,0);this.sel=ha(At),this.history=new Qs(null),this.id=++nu,this.modeOption=ie,this.lineSep=de,this.direction=Be=="rtl"?"rtl":"ltr",this.extend=!1,typeof U=="string"&&(U=this.splitLines(U)),Ua(this,{from:At,to:At,text:U}),Ls(this,ha(At),se)};dl.prototype=Xe(Ts.prototype,{constructor:dl,iter:function(U,ie,oe){oe?this.iterN(U-this.first,ie-U,oe):this.iterN(this.first,this.first+this.size,U)},insert:function(U,ie){for(var oe=0,de=0;de<ie.length;++de)oe+=ie[de].height;this.insertInner(U-this.first,ie,oe)},remove:function(U,ie){this.removeInner(U-this.first,ie)},getValue:function(U){var ie=ct(this,this.first,this.first+this.size);return U===!1?ie:ie.join(U||this.lineSeparator())},setValue:Go(function(N){var U=Nt(this.first,0),ie=this.first+this.size-1;vs(this,{from:U,to:Nt(ie,Ie(this,ie).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&Ca(this.cm,0,0),Ls(this,ha(U),se)}),replaceRange:function(U,ie,oe,de){ie=wt(this,ie),oe=oe?wt(this,oe):ie,xl(this,U,ie,oe,de)},getRange:function(U,ie,oe){var de=Ze(this,wt(this,U),wt(this,ie));return oe===!1?de:de.join(oe||this.lineSeparator())},getLine:function(U){var ie=this.getLineHandle(U);return ie&&ie.text},getLineHandle:function(U){if(Hr(this,U))return Ie(this,U)},getLineNumber:function(U){return kt(U)},getLineHandleVisualStart:function(U){return typeof U=="number"&&(U=Ie(this,U)),xt(U)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(U){return wt(this,U)},getCursor:function(U){var ie=this.sel.primary(),oe;return U==null||U=="head"?oe=ie.head:U=="anchor"?oe=ie.anchor:U=="end"||U=="to"||U===!1?oe=ie.to():oe=ie.from(),oe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Go(function(N,U,ie){eu(this,wt(this,typeof N=="number"?Nt(N,U||0):N),null,ie)}),setSelection:Go(function(N,U,ie){eu(this,wt(this,N),wt(this,U||N),ie)}),extendSelection:Go(function(N,U,ie){Al(this,wt(this,N),U&&wt(this,U),ie)}),extendSelections:Go(function(N,U){Is(this,Nr(this,N),U)}),extendSelectionsBy:Go(function(N,U){var ie=nt(this.sel.ranges,N);Is(this,Nr(this,ie),U)}),setSelections:Go(function(N,U,ie){if(!N.length)return;for(var oe=[],de=0;de<N.length;de++)oe[de]=new oi(wt(this,N[de].anchor),wt(this,N[de].head));U==null&&(U=Math.min(N.length-1,this.sel.primIndex)),Ls(this,Yi(this.cm,oe,U),ie)}),addSelection:Go(function(N,U,ie){var oe=this.sel.ranges.slice(0);oe.push(new oi(wt(this,N),wt(this,U||N))),Ls(this,Yi(this.cm,oe,oe.length-1),ie)}),getSelection:function(U){for(var ie=this.sel.ranges,oe,de=0;de<ie.length;de++){var Be=Ze(this,ie[de].from(),ie[de].to());oe=oe?oe.concat(Be):Be}return U===!1?oe:oe.join(U||this.lineSeparator())},getSelections:function(U){for(var ie=[],oe=this.sel.ranges,de=0;de<oe.length;de++){var Be=Ze(this,oe[de].from(),oe[de].to());U!==!1&&(Be=Be.join(U||this.lineSeparator())),ie[de]=Be}return ie},replaceSelection:function(U,ie,oe){for(var de=[],Be=0;Be<this.sel.ranges.length;Be++)de[Be]=U;this.replaceSelections(de,ie,oe||"+input")},replaceSelections:Go(function(N,U,ie){for(var oe=[],de=this.sel,Be=0;Be<de.ranges.length;Be++){var At=de.ranges[Be];oe[Be]={from:At.from(),to:At.to(),text:this.splitLines(N[Be]),origin:ie}}for(var Kt=U&&U!="end"&&ls(this,oe,U),rr=oe.length-1;rr>=0;rr--)vs(this,oe[rr]);Kt?yl(this,Kt):this.cm&&wa(this.cm)}),undo:Go(function(){js(this,"undo")}),redo:Go(function(){js(this,"redo")}),undoSelection:Go(function(){js(this,"undo",!0)}),redoSelection:Go(function(){js(this,"redo",!0)}),setExtending:function(U){this.extend=U},getExtending:function(){return this.extend},historySize:function(){for(var U=this.history,ie=0,oe=0,de=0;de<U.done.length;de++)U.done[de].ranges||++ie;for(var Be=0;Be<U.undone.length;Be++)U.undone[Be].ranges||++oe;return{undo:ie,redo:oe}},clearHistory:function(){var U=this;this.history=new Qs(this.history.maxGeneration),Oo(this,function(ie){return ie.history=U.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(U){return U&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(U){return this.history.generation==(U||this.cleanGeneration)},getHistory:function(){return{done:Ll(this.history.done),undone:Ll(this.history.undone)}},setHistory:function(U){var ie=this.history=new Qs(this.history.maxGeneration);ie.done=Ll(U.done.slice(0),null,!0),ie.undone=Ll(U.undone.slice(0),null,!0)},setGutterMarker:Go(function(N,U,ie){return Cs(this,N,"gutter",function(oe){var de=oe.gutterMarkers||(oe.gutterMarkers={});return de[U]=ie,!ie&&ne(de)&&(oe.gutterMarkers=null),!0})}),clearGutter:Go(function(N){var U=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[N]&&Cs(U,ie,"gutter",function(){return ie.gutterMarkers[N]=null,ne(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(U){var ie;if(typeof U=="number"){if(!Hr(this,U))return null;if(ie=U,U=Ie(this,U),!U)return null}else if(ie=kt(U),ie==null)return null;return{line:ie,handle:U,text:U.text,gutterMarkers:U.gutterMarkers,textClass:U.textClass,bgClass:U.bgClass,wrapClass:U.wrapClass,widgets:U.widgets}},addLineClass:Go(function(N,U,ie){return Cs(this,N,U=="gutter"?"gutter":"class",function(oe){var de=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass";if(!oe[de])oe[de]=ie;else{if(_(ie).test(oe[de]))return!1;oe[de]+=" "+ie}return!0})}),removeLineClass:Go(function(N,U,ie){return Cs(this,N,U=="gutter"?"gutter":"class",function(oe){var de=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass",Be=oe[de];if(Be)if(ie==null)oe[de]=null;else{var At=Be.match(_(ie));if(!At)return!1;var Kt=At.index+At[0].length;oe[de]=Be.slice(0,At.index)+(!At.index||Kt==Be.length?"":" ")+Be.slice(Kt)||null}else return!1;return!0})}),addLineWidget:Go(function(N,U,ie){return Xl(this,N,U,ie)}),removeLineWidget:function(U){U.clear()},markText:function(U,ie,oe){return zl(this,wt(this,U),wt(this,ie),oe,oe&&oe.type||"range")},setBookmark:function(U,ie){var oe={replacedWith:ie&&(ie.nodeType==null?ie.widget:ie),insertLeft:ie&&ie.insertLeft,clearWhenEmpty:!1,shared:ie&&ie.shared,handleMouseEvents:ie&&ie.handleMouseEvents};return U=wt(this,U),zl(this,U,U,oe,"bookmark")},findMarksAt:function(U){U=wt(this,U);var ie=[],oe=Ie(this,U.line).markedSpans;if(oe)for(var de=0;de<oe.length;++de){var Be=oe[de];(Be.from==null||Be.from<=U.ch)&&(Be.to==null||Be.to>=U.ch)&&ie.push(Be.marker.parent||Be.marker)}return ie},findMarks:function(U,ie,oe){U=wt(this,U),ie=wt(this,ie);var de=[],Be=U.line;return this.iter(U.line,ie.line+1,function(At){var Kt=At.markedSpans;if(Kt)for(var rr=0;rr<Kt.length;rr++){var pr=Kt[rr];!(pr.to!=null&&Be==U.line&&U.ch>=pr.to||pr.from==null&&Be!=U.line||pr.from!=null&&Be==ie.line&&pr.from>=ie.ch)&&(!oe||oe(pr.marker))&&de.push(pr.marker.parent||pr.marker)}++Be}),de},getAllMarks:function(){var U=[];return this.iter(function(ie){var oe=ie.markedSpans;if(oe)for(var de=0;de<oe.length;++de)oe[de].from!=null&&U.push(oe[de].marker)}),U},posFromIndex:function(U){var ie,oe=this.first,de=this.lineSeparator().length;return this.iter(function(Be){var At=Be.text.length+de;if(At>U)return ie=U,!0;U-=At,++oe}),wt(this,Nt(oe,ie))},indexFromPos:function(U){U=wt(this,U);var ie=U.ch;if(U.line<this.first||U.ch<0)return 0;var oe=this.lineSeparator().length;return this.iter(this.first,U.line,function(de){ie+=de.text.length+oe}),ie},copy:function(U){var ie=new dl(ct(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ie.scrollTop=this.scrollTop,ie.scrollLeft=this.scrollLeft,ie.sel=this.sel,ie.extend=!1,U&&(ie.history.undoDepth=this.history.undoDepth,ie.setHistory(this.getHistory())),ie},linkedDoc:function(U){U||(U={});var ie=this.first,oe=this.first+this.size;U.from!=null&&U.from>ie&&(ie=U.from),U.to!=null&&U.to<oe&&(oe=U.to);var de=new dl(ct(this,ie,oe),U.mode||this.modeOption,ie,this.lineSep,this.direction);return U.sharedHist&&(de.history=this.history),(this.linked||(this.linked=[])).push({doc:de,sharedHist:U.sharedHist}),de.linked=[{doc:this,isParent:!0,sharedHist:U.sharedHist}],du(de,bu(this)),de},unlinkDoc:function(U){if(U instanceof Cr&&(U=U.doc),this.linked)for(var ie=0;ie<this.linked.length;++ie){var oe=this.linked[ie];if(oe.doc!=U)continue;this.linked.splice(ie,1),U.unlinkDoc(this),hu(bu(this));break}if(U.history==this.history){var de=[U.id];Oo(U,function(Be){return de.push(Be.id)},!0),U.history=new Qs(null),U.history.done=Ll(this.history.done,de),U.history.undone=Ll(this.history.undone,de)}},iterLinkedDocs:function(U){Oo(this,U)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(U){return this.lineSep?U.split(this.lineSep):pn(U)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Go(function(N){if(N!="rtl"&&(N="ltr"),N==this.direction)return;this.direction=N,this.iter(function(U){return U.order=null}),this.cm&&vl(this.cm)})}),dl.prototype.eachLine=dl.prototype.iter;var Tl=0;function wl(N){var U=this;if(fu(U),Ut(U,N)||Hn(U.display,N))return;mt(N),d&&(Tl=+new Date);var ie=go(U,N,!0),oe=N.dataTransfer.files;if(!ie||U.isReadOnly())return;if(oe&&oe.length&&window.FileReader&&window.File)for(var de=oe.length,Be=Array(de),At=0,Kt=function(){++At==de&&Mo(U,function(){ie=wt(U.doc,ie);var Ki={from:ie,to:ie,text:U.doc.splitLines(Be.filter(function(fa){return fa!=null}).join(U.doc.lineSeparator())),origin:"paste"};vs(U.doc,Ki),yl(U.doc,ha(wt(U.doc,ie),wt(U.doc,Pa(Ki))))})()},rr=function(Ki,fa){if(U.options.allowDropFileTypes&&G(U.options.allowDropFileTypes,Ki.type)==-1){Kt();return}var Ta=new FileReader;Ta.onerror=function(){return Kt()},Ta.onload=function(){var ba=Ta.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ba)){Kt();return}Be[fa]=ba,Kt()},Ta.readAsText(Ki)},pr=0;pr<oe.length;pr++)rr(oe[pr],pr);else{if(U.state.draggingText&&U.doc.sel.contains(ie)>-1){U.state.draggingText(N),setTimeout(function(){return U.display.input.focus()},20);return}try{var Tn=N.dataTransfer.getData("Text");if(Tn){var zn;if(U.state.draggingText&&!U.state.draggingText.copy&&(zn=U.listSelections()),Xs(U.doc,ha(ie,ie)),zn)for(var li=0;li<zn.length;++li)xl(U.doc,"",zn[li].anchor,zn[li].head,"drag");U.replaceSelection(Tn,"around","paste"),U.display.input.focus()}}catch(di){}}}function Zl(N,U){if(d&&(!N.state.draggingText||+new Date-Tl<100)){ur(U);return}if(Ut(N,U)||Hn(N.display,U))return;if(U.dataTransfer.setData("Text",N.getSelection()),U.dataTransfer.effectAllowed="copyMove",U.dataTransfer.setDragImage&&!e){var ie=O("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",a&&(ie.width=ie.height=1,N.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),U.dataTransfer.setDragImage(ie,0,0),a&&ie.parentNode.removeChild(ie)}}function _l(N,U){var ie=go(N,U);if(!ie)return;var oe=document.createDocumentFragment();Gn(N,ie,oe),N.display.dragCursor||(N.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),N.display.lineSpace.insertBefore(N.display.dragCursor,N.display.cursorDiv)),I(N.display.dragCursor,oe)}function fu(N){N.display.dragCursor&&(N.display.lineSpace.removeChild(N.display.dragCursor),N.display.dragCursor=null)}function hl(N){if(!document.getElementsByClassName)return;for(var U=document.getElementsByClassName("CodeMirror"),ie=[],oe=0;oe<U.length;oe++){var de=U[oe].CodeMirror;de&&ie.push(de)}ie.length&&ie[0].operation(function(){for(var Be=0;Be<ie.length;Be++)N(ie[Be])})}var fl=!1;function pu(){if(fl)return;mu(),fl=!0}function mu(){var N;ke(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,hl(Lu)},100))}),ke(window,"blur",function(){return hl(ai)})}function Lu(N){var U=N.display;U.cachedCharWidth=U.cachedTextHeight=U.cachedPaddingH=null,U.scrollbarsClipped=!1,N.setSize()}for(var Ml={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"},$l=0;$l<10;$l++)Ml[$l+48]=Ml[$l+96]=String($l);for(var iu=65;iu<=90;iu++)Ml[iu]=String.fromCharCode(iu);for(var au=1;au<=12;au++)Ml[au+111]=Ml[au+63235]="F"+au;var Yl={};Yl.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"},Yl.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"},Yl.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"},Yl.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"]},Yl.default=g?Yl.macDefault:Yl.pcDefault;function Ru(N){var U=N.split(/-(?!$)/);N=U[U.length-1];for(var ie,oe,de,Be,At=0;At<U.length-1;At++){var Kt=U[At];if(/^(cmd|meta|m)$/i.test(Kt))Be=!0;else if(/^a(lt)?$/i.test(Kt))ie=!0;else if(/^(c|ctrl|control)$/i.test(Kt))oe=!0;else if(/^s(hift)?$/i.test(Kt))de=!0;else throw new Error("Unrecognized modifier name: "+Kt)}return ie&&(N="Alt-"+N),oe&&(N="Ctrl-"+N),Be&&(N="Cmd-"+N),de&&(N="Shift-"+N),N}function Nu(N){var U={};for(var ie in N)if(N.hasOwnProperty(ie)){var oe=N[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(oe=="..."){delete N[ie];continue}for(var de=nt(ie.split(" "),Ru),Be=0;Be<de.length;Be++){var At=void 0,Kt=void 0;Be==de.length-1?(Kt=de.join(" "),At=oe):(Kt=de.slice(0,Be+1).join(" "),At="...");var rr=U[Kt];if(!rr)U[Kt]=At;else if(rr!=At)throw new Error("Inconsistent bindings for "+Kt)}delete N[ie]}for(var pr in U)N[pr]=U[pr];return N}function Ql(N,U,ie,oe){U=Gs(U);var de=U.call?U.call(N,oe):U[N];if(de===!1)return"nothing";if(de==="...")return"multi";if(de!=null&&ie(de))return"handled";if(U.fallthrough){if(Object.prototype.toString.call(U.fallthrough)!="[object Array]")return Ql(N,U.fallthrough,ie,oe);for(var Be=0;Be<U.fallthrough.length;Be++){var At=Ql(N,U.fallthrough[Be],ie,oe);if(At)return At}}}function gu(N){var U=typeof N=="string"?N:Ml[N.keyCode];return U=="Ctrl"||U=="Alt"||U=="Shift"||U=="Mod"}function wu(N,U,ie){var oe=N;return U.altKey&&oe!="Alt"&&(N="Alt-"+N),(x?U.metaKey:U.ctrlKey)&&oe!="Ctrl"&&(N="Ctrl-"+N),(x?U.ctrlKey:U.metaKey)&&oe!="Mod"&&(N="Cmd-"+N),!ie&&U.shiftKey&&oe!="Shift"&&(N="Shift-"+N),N}function vu(N,U){if(a&&N.keyCode==34&&N.char)return!1;var ie=Ml[N.keyCode];return ie==null||N.altGraphKey?!1:(N.keyCode==3&&N.code&&(ie=N.code),wu(ie,N,U))}function Gs(N){return typeof N=="string"?Yl[N]:N}function gl(N,U){for(var ie=N.doc.sel.ranges,oe=[],de=0;de<ie.length;de++){for(var Be=U(ie[de]);oe.length&&ot(Be.from,Ue(oe).to)<=0;){var At=oe.pop();if(ot(At.from,Be.from)<0){Be.from=At.from;break}}oe.push(Be)}_o(N,function(){for(var Kt=oe.length-1;Kt>=0;Kt--)xl(N.doc,"",oe[Kt].from,oe[Kt].to,"+delete");wa(N)})}function ru(N,U,ie){var oe=Ee(N.text,U+ie,ie);return oe<0||oe>N.text.length?null:oe}function Du(N,U,ie){var oe=ru(N,U.ch,ie);return oe==null?null:new Nt(U.line,oe,ie<0?"after":"before")}function Su(N,U,ie,oe,de){if(N){U.doc.direction=="rtl"&&(de=-de);var Be=lt(ie,U.doc.direction);if(Be){var At=de<0?Ue(Be):Be[0],Kt=de<0==(At.level==1),rr=Kt?"after":"before",pr;if(At.level>0||U.doc.direction=="rtl"){var Tn=Zi(U,ie);pr=de<0?ie.text.length-1:0;var zn=ma(U,Tn,pr).top;pr=Ce(function(li){return ma(U,Tn,li).top==zn},de<0==(At.level==1)?At.from:At.to-1,pr),rr=="before"&&(pr=ru(ie,pr,1))}else pr=de<0?At.to:At.from;return new Nt(oe,pr,rr)}}return new Nt(oe,de<0?ie.text.length:0,de<0?"before":"after")}function cu(N,U,ie,oe){var de=lt(U,N.doc.direction);if(!de)return Du(U,ie,oe);ie.ch>=U.text.length?(ie.ch=U.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var Be=Oe(de,ie.ch,ie.sticky),At=de[Be];if(N.doc.direction=="ltr"&&At.level%2==0&&(oe>0?At.to>ie.ch:At.from<ie.ch))return Du(U,ie,oe);var Kt=function(ya,Ha){return ru(U,ya instanceof Nt?ya.ch:ya,Ha)},rr,pr=function(ya){return N.options.lineWrapping?(rr=rr||Zi(N,U),Ga(N,U,rr,ya)):{begin:0,end:U.text.length}},Tn=pr(ie.sticky=="before"?Kt(ie,-1):ie.ch);if(N.doc.direction=="rtl"||At.level==1){var zn=At.level==1==oe<0,li=Kt(ie,zn?1:-1);if(li!=null&&(zn?li<=At.to&&li<=Tn.end:li>=At.from&&li>=Tn.begin)){var di=zn?"before":"after";return new Nt(ie.line,li,di)}}var Ki=function(ya,Ha,Ja){for(var Uo=function(Hs,Ol){return Ol?new Nt(ie.line,Kt(Hs,1),"before"):new Nt(ie.line,Hs,"after")};ya>=0&&ya<de.length;ya+=Ha){var Ao=de[ya],us=Ha>0==(Ao.level!=1),Ns=us?Ja.begin:Kt(Ja.end,-1);if(Ao.from<=Ns&&Ns<Ao.to)return Uo(Ns,us);if(Ns=us?Ao.from:Kt(Ao.to,-1),Ja.begin<=Ns&&Ns<Ja.end)return Uo(Ns,us)}},fa=Ki(Be+oe,oe,Tn);if(fa)return fa;var Ta=oe>0?Tn.end:Kt(Tn.begin,-1);return Ta!=null&&!(oe>0&&Ta==U.text.length)&&(fa=Ki(oe>0?0:de.length-1,oe,pr(Ta)),fa)?fa:null}var ou={selectAll:gs,singleSelection:function(U){return U.setSelection(U.getCursor("anchor"),U.getCursor("head"),se)},killLine:function(U){return gl(U,function(ie){if(ie.empty()){var oe=Ie(U.doc,ie.head.line).text.length;return ie.head.ch==oe&&ie.head.line<U.lastLine()?{from:ie.head,to:Nt(ie.head.line+1,0)}:{from:ie.head,to:Nt(ie.head.line,oe)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(U){return gl(U,function(ie){return{from:Nt(ie.from().line,0),to:wt(U.doc,Nt(ie.to().line+1,0))}})},delLineLeft:function(U){return gl(U,function(ie){return{from:Nt(ie.from().line,0),to:ie.from()}})},delWrappedLineLeft:function(U){return gl(U,function(ie){var oe=U.charCoords(ie.head,"div").top+5,de=U.coordsChar({left:0,top:oe},"div");return{from:de,to:ie.from()}})},delWrappedLineRight:function(U){return gl(U,function(ie){var oe=U.charCoords(ie.head,"div").top+5,de=U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:oe},"div");return{from:ie.from(),to:de}})},undo:function(U){return U.undo()},redo:function(U){return U.redo()},undoSelection:function(U){return U.undoSelection()},redoSelection:function(U){return U.redoSelection()},goDocStart:function(U){return U.extendSelection(Nt(U.firstLine(),0))},goDocEnd:function(U){return U.extendSelection(Nt(U.lastLine()))},goLineStart:function(U){return U.extendSelectionsBy(function(ie){return su(U,ie.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(U){return U.extendSelectionsBy(function(ie){return Au(U,ie.head)},{origin:"+move",bias:1})},goLineEnd:function(U){return U.extendSelectionsBy(function(ie){return xu(U,ie.head.line)},{origin:"+move",bias:-1})},goLineRight:function(U){return U.extendSelectionsBy(function(ie){var oe=U.cursorCoords(ie.head,"div").top+5;return U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:oe},"div")},Ae)},goLineLeft:function(U){return U.extendSelectionsBy(function(ie){var oe=U.cursorCoords(ie.head,"div").top+5;return U.coordsChar({left:0,top:oe},"div")},Ae)},goLineLeftSmart:function(U){return U.extendSelectionsBy(function(ie){var oe=U.cursorCoords(ie.head,"div").top+5,de=U.coordsChar({left:0,top:oe},"div");return de.ch<U.getLine(de.line).search(/\S/)?Au(U,ie.head):de},Ae)},goLineUp:function(U){return U.moveV(-1,"line")},goLineDown:function(U){return U.moveV(1,"line")},goPageUp:function(U){return U.moveV(-1,"page")},goPageDown:function(U){return U.moveV(1,"page")},goCharLeft:function(U){return U.moveH(-1,"char")},goCharRight:function(U){return U.moveH(1,"char")},goColumnLeft:function(U){return U.moveH(-1,"column")},goColumnRight:function(U){return U.moveH(1,"column")},goWordLeft:function(U){return U.moveH(-1,"word")},goGroupRight:function(U){return U.moveH(1,"group")},goGroupLeft:function(U){return U.moveH(-1,"group")},goWordRight:function(U){return U.moveH(1,"word")},delCharBefore:function(U){return U.deleteH(-1,"codepoint")},delCharAfter:function(U){return U.deleteH(1,"char")},delWordBefore:function(U){return U.deleteH(-1,"word")},delWordAfter:function(U){return U.deleteH(1,"word")},delGroupBefore:function(U){return U.deleteH(-1,"group")},delGroupAfter:function(U){return U.deleteH(1,"group")},indentAuto:function(U){return U.indentSelection("smart")},indentMore:function(U){return U.indentSelection("add")},indentLess:function(U){return U.indentSelection("subtract")},insertTab:function(U){return U.replaceSelection(" ")},insertSoftTab:function(U){for(var ie=[],oe=U.listSelections(),de=U.options.tabSize,Be=0;Be<oe.length;Be++){var At=oe[Be].from(),Kt=V(U.getLine(At.line),At.ch,de);ie.push(Ge(de-Kt%de))}U.replaceSelections(ie)},defaultTab:function(U){U.somethingSelected()?U.indentSelection("add"):U.execCommand("insertTab")},transposeChars:function(U){return _o(U,function(){for(var ie=U.listSelections(),oe=[],de=0;de<ie.length;de++){if(!ie[de].empty())continue;var Be=ie[de].head,At=Ie(U.doc,Be.line).text;if(At){if(Be.ch==At.length&&(Be=new Nt(Be.line,Be.ch-1)),Be.ch>0)Be=new Nt(Be.line,Be.ch+1),U.replaceRange(At.charAt(Be.ch-1)+At.charAt(Be.ch-2),Nt(Be.line,Be.ch-2),Be,"+transpose");else if(Be.line>U.doc.first){var Kt=Ie(U.doc,Be.line-1).text;Kt&&(Be=new Nt(Be.line,1),U.replaceRange(At.charAt(0)+U.doc.lineSeparator()+Kt.charAt(Kt.length-1),Nt(Be.line-1,Kt.length-1),Be,"+transpose"))}}oe.push(new oi(Be,Be))}U.setSelections(oe)})},newlineAndIndent:function(U){return _o(U,function(){for(var ie=U.listSelections(),oe=ie.length-1;oe>=0;oe--)U.replaceRange(U.doc.lineSeparator(),ie[oe].anchor,ie[oe].head,"+input");ie=U.listSelections();for(var de=0;de<ie.length;de++)U.indentLine(ie[de].from().line,null,!0);wa(U)})},openLine:function(U){return U.replaceSelection(`
`,"start")},toggleOverwrite:function(U){return U.toggleOverwrite()}};function su(N,U){var ie=Ie(N.doc,U),oe=xt(ie);return oe!=ie&&(U=kt(oe)),Su(!0,N,oe,U,1)}function xu(N,U){var ie=Ie(N.doc,U),oe=Tt(ie);return oe!=ie&&(U=kt(oe)),Su(!0,N,ie,U,-1)}function Au(N,U){var ie=su(N,U.line),oe=Ie(N.doc,ie.line),de=lt(oe,N.doc.direction);if(!de||de[0].level==0){var Be=Math.max(ie.ch,oe.text.search(/\S/)),At=U.line==ie.line&&U.ch<=Be&&U.ch;return Nt(ie.line,At?0:Be,ie.sticky)}return ie}function he(N,U,ie){if(typeof U=="string"&&(U=ou[U],!U))return!1;N.display.input.ensurePolled();var oe=N.display.shift,de=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ie&&(N.display.shift=!1),de=U(N)!=q}finally{N.display.shift=oe,N.state.suppressEdits=!1}return de}function $(N,U,ie){for(var oe=0;oe<N.state.keyMaps.length;oe++){var de=Ql(U,N.state.keyMaps[oe],ie,N);if(de)return de}return N.options.extraKeys&&Ql(U,N.options.extraKeys,ie,N)||Ql(U,N.options.keyMap,ie,N)}var L=new Q;function K(N,U,ie,oe){var de=N.state.keySeq;if(de){if(gu(U))return"handled";if(/\'$/.test(U)?N.state.keySeq=null:L.set(50,function(){N.state.keySeq==de&&(N.state.keySeq=null,N.display.input.reset())}),j(N,de+" "+U,ie,oe))return!0}return j(N,U,ie,oe)}function j(N,U,ie,oe){var de=$(N,U,oe);return de=="multi"&&(N.state.keySeq=U),de=="handled"&&Ir(N,"keyHandled",N,U,ie),(de=="handled"||de=="multi")&&(mt(ie),Qn(N)),!!de}function J(N,U){var ie=vu(U,!0);return ie?U.shiftKey&&!N.state.keySeq?K(N,"Shift-"+ie,U,function(oe){return he(N,oe,!0)})||K(N,ie,U,function(oe){if(typeof oe=="string"?/^go[A-Z]/.test(oe):oe.motion)return he(N,oe)}):K(N,ie,U,function(oe){return he(N,oe)}):!1}function te(N,U,ie){return K(N,"'"+ie+"'",U,function(oe){return he(N,oe,!0)})}var me=null;function we(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(U.curOp.focus=P(),Ut(U,N))return;d&&u<11&&N.keyCode==27&&(N.returnValue=!1);var ie=N.keyCode;U.display.shift=ie==16||N.shiftKey;var oe=J(U,N);a&&(me=oe?ie:null,!oe&&ie==88&&!gr&&(g?N.metaKey:N.ctrlKey)&&U.replaceSelection("",null,"cut")),S&&!g&&!oe&&ie==46&&N.shiftKey&&!N.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(U.display.lineDiv.className)&&je(U)}function je(N){var U=N.display.lineDiv;X(U,"CodeMirror-crosshair");function ie(oe){(oe.keyCode==18||!oe.altKey)&&(E(U,"CodeMirror-crosshair"),Ve(document,"keyup",ie),Ve(document,"mouseover",ie))}ke(document,"keyup",ie),ke(document,"mouseover",ie)}function qe(N){N.keyCode==16&&(this.doc.sel.shift=!1),Ut(this,N)}function it(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(Hn(U.display,N)||Ut(U,N)||N.ctrlKey&&!N.altKey||g&&N.metaKey)return;var ie=N.keyCode,oe=N.charCode;if(a&&ie==me){me=null,mt(N);return}if(a&&(!N.which||N.which<10)&&J(U,N))return;var de=String.fromCharCode(oe==null?ie:oe);if(de=="\b")return;if(te(U,N,de))return;U.display.input.onKeyPress(N)}var Rt=400,hr=function(U,ie,oe){this.time=U,this.pos=ie,this.button=oe};hr.prototype.compare=function(N,U,ie){return this.time+Rt>N&&ot(U,this.pos)==0&&ie==this.button};var tr,Dr;function jr(N,U){var ie=+new Date;return Dr&&Dr.compare(ie,N,U)?(tr=Dr=null,"triple"):tr&&tr.compare(ie,N,U)?(Dr=new hr(ie,N,U),tr=null,"double"):(tr=new hr(ie,N,U),Dr=null,"single")}function Sn(N){var U=this,ie=U.display;if(Ut(U,N)||ie.activeTouch&&ie.input.supportsTouch())return;if(ie.input.ensurePolled(),ie.shift=N.shiftKey,Hn(ie,N)){o||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(Sa(U,N))return;var oe=go(U,N),de=Fe(N),Be=oe?jr(oe,de):"single";if(window.focus(),de==1&&U.state.selectingText&&U.state.selectingText(N),oe&&yn(U,de,oe,Be,N))return;de==1?oe?si(U,oe,Be,N):qr(N)==ie.scroller&&mt(N):de==2?(oe&&Al(U.doc,oe),setTimeout(function(){return ie.input.focus()},20)):de==3&&(T?U.display.input.onContextMenu(N):Yn(U))}function yn(N,U,ie,oe,de){var Be="Click";return oe=="double"?Be="Double"+Be:oe=="triple"&&(Be="Triple"+Be),Be=(U==1?"Left":U==2?"Middle":"Right")+Be,K(N,wu(Be,de),de,function(At){if(typeof At=="string"&&(At=ou[At]),!At)return!1;var Kt=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),Kt=At(N,ie)!=q}finally{N.state.suppressEdits=!1}return Kt})}function Mn(N,U,ie){var oe=N.getOption("configureMouse"),de=oe?oe(N,U,ie):{};if(de.unit==null){var Be=A?ie.shiftKey&&ie.metaKey:ie.altKey;de.unit=Be?"rectangle":U=="single"?"char":U=="double"?"word":"line"}return(de.extend==null||N.doc.extend)&&(de.extend=N.doc.extend||ie.shiftKey),de.addNew==null&&(de.addNew=g?ie.metaKey:ie.ctrlKey),de.moveOnDrag==null&&(de.moveOnDrag=!(g?ie.altKey:ie.ctrlKey)),de}function si(N,U,ie,oe){d?setTimeout(W(Zn,N),0):N.curOp.focus=P();var de=Mn(N,ie,oe),Be=N.doc.sel,At;N.options.dragDrop&&$t&&!N.isReadOnly()&&ie=="single"&&(At=Be.contains(U))>-1&&(ot((At=Be.ranges[At]).from(),U)<0||U.xRel>0)&&(ot(At.to(),U)>0||U.xRel<0)?Xi(N,oe,U,de):Pi(N,oe,U,de)}function Xi(N,U,ie,oe){var de=N.display,Be=!1,At=Mo(N,function(pr){o&&(de.scroller.draggable=!1),N.state.draggingText=!1,Ve(de.wrapper.ownerDocument,"mouseup",At),Ve(de.wrapper.ownerDocument,"mousemove",Kt),Ve(de.scroller,"dragstart",rr),Ve(de.scroller,"drop",At),Be||(mt(pr),oe.addNew||Al(N.doc,ie,null,null,oe.extend),o&&!e||d&&u==9?setTimeout(function(){de.wrapper.ownerDocument.body.focus({preventScroll:!0}),de.input.focus()},20):de.input.focus())}),Kt=function(Tn){Be=Be||Math.abs(U.clientX-Tn.clientX)+Math.abs(U.clientY-Tn.clientY)>=10},rr=function(){return Be=!0};o&&(de.scroller.draggable=!0),N.state.draggingText=At,At.copy=!oe.moveOnDrag,de.scroller.dragDrop&&de.scroller.dragDrop(),ke(de.wrapper.ownerDocument,"mouseup",At),ke(de.wrapper.ownerDocument,"mousemove",Kt),ke(de.scroller,"dragstart",rr),ke(de.scroller,"drop",At),Yn(N),setTimeout(function(){return de.input.focus()},20)}function Li(N,U,ie){if(ie=="char")return new oi(U,U);if(ie=="word")return N.findWordAt(U);if(ie=="line")return new oi(Nt(U.line,0),wt(N.doc,Nt(U.line+1,0)));var oe=ie(N,U);return new oi(oe.from,oe.to)}function Pi(N,U,ie,oe){var de=N.display,Be=N.doc;mt(U);var At,Kt,rr=Be.sel,pr=rr.ranges;if(oe.addNew&&!oe.extend?(Kt=Be.sel.contains(ie),Kt>-1?At=pr[Kt]:At=new oi(ie,ie)):(At=Be.sel.primary(),Kt=Be.sel.primIndex),oe.unit=="rectangle")oe.addNew||(At=new oi(ie,ie)),ie=go(N,U,!0,!0),Kt=-1;else{var Tn=Li(N,ie,oe.unit);oe.extend?At=kl(At,Tn.anchor,Tn.head,oe.extend):At=Tn}oe.addNew?Kt==-1?(Kt=pr.length,Ls(Be,Yi(N,pr.concat([At]),Kt),{scroll:!1,origin:"*mouse"})):pr.length>1&&pr[Kt].empty()&&oe.unit=="char"&&!oe.extend?(Ls(Be,Yi(N,pr.slice(0,Kt).concat(pr.slice(Kt+1)),0),{scroll:!1,origin:"*mouse"}),rr=Be.sel):al(Be,Kt,At,re):(Kt=0,Ls(Be,new bi([At],0),re),rr=Be.sel);var zn=ie;function li(Ha){if(ot(zn,Ha)==0)return;if(zn=Ha,oe.unit=="rectangle"){for(var Ja=[],Uo=N.options.tabSize,Ao=V(Ie(Be,ie.line).text,ie.ch,Uo),us=V(Ie(Be,Ha.line).text,Ha.ch,Uo),Ns=Math.min(Ao,us),rl=Math.max(Ao,us),Hs=Math.min(ie.line,Ha.line),Ol=Math.min(N.lastLine(),Math.max(ie.line,Ha.line));Hs<=Ol;Hs++){var Fl=Ie(Be,Hs).text,pl=Te(Fl,Ns,Uo);Ns==rl?Ja.push(new oi(Nt(Hs,pl),Nt(Hs,pl))):Fl.length>pl&&Ja.push(new oi(Nt(Hs,pl),Nt(Hs,Te(Fl,rl,Uo))))}Ja.length||Ja.push(new oi(ie,ie)),Ls(Be,Yi(N,rr.ranges.slice(0,Kt).concat(Ja),Kt),{origin:"*mouse",scroll:!1}),N.scrollIntoView(Ha)}else{var Bl=At,Il=Li(N,Ha,oe.unit),Ma=Bl.anchor,$s;ot(Il.anchor,Ma)>0?($s=Il.head,Ma=Et(Bl.from(),Il.anchor)):($s=Il.anchor,Ma=Pt(Bl.to(),Il.head));var Ys=rr.ranges.slice(0);Ys[Kt]=Aa(N,new oi(wt(Be,Ma),$s)),Ls(Be,Yi(N,Ys,Kt),re)}}var di=de.wrapper.getBoundingClientRect(),Ki=0;function fa(Ha){var Ja=++Ki,Uo=go(N,Ha,!0,oe.unit=="rectangle");if(!Uo)return;if(ot(Uo,zn)!=0){N.curOp.focus=P(),li(Uo);var Ao=zi(de,Be);(Uo.line>=Ao.to||Uo.line<Ao.from)&&setTimeout(Mo(N,function(){Ki==Ja&&fa(Ha)}),150)}else{var us=Ha.clientY<di.top?-20:Ha.clientY>di.bottom?20:0;us&&setTimeout(Mo(N,function(){if(Ki!=Ja)return;de.scroller.scrollTop+=us,fa(Ha)}),50)}}function Ta(Ha){N.state.selectingText=!1,Ki=Infinity,Ha&&(mt(Ha),de.input.focus()),Ve(de.wrapper.ownerDocument,"mousemove",ba),Ve(de.wrapper.ownerDocument,"mouseup",ya),Be.history.lastSelOrigin=null}var ba=Mo(N,function(Ha){Ha.buttons===0||!Fe(Ha)?Ta(Ha):fa(Ha)}),ya=Mo(N,Ta);N.state.selectingText=ya,ke(de.wrapper.ownerDocument,"mousemove",ba),ke(de.wrapper.ownerDocument,"mouseup",ya)}function Aa(N,U){var ie=U.anchor,oe=U.head,de=Ie(N.doc,ie.line);if(ot(ie,oe)==0&&ie.sticky==oe.sticky)return U;var Be=lt(de);if(!Be)return U;var At=Oe(Be,ie.ch,ie.sticky),Kt=Be[At];if(Kt.from!=ie.ch&&Kt.to!=ie.ch)return U;var rr=At+(Kt.from==ie.ch==(Kt.level!=1)?0:1);if(rr==0||rr==Be.length)return U;var pr;if(oe.line!=ie.line)pr=(oe.line-ie.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Tn=Oe(Be,oe.ch,oe.sticky),zn=Tn-At||(oe.ch-ie.ch)*(Kt.level==1?-1:1);Tn==rr-1||Tn==rr?pr=zn<0:pr=zn>0}var li=Be[rr+(pr?-1:0)],di=pr==(li.level==1),Ki=di?li.from:li.to,fa=di?"after":"before";return ie.ch==Ki&&ie.sticky==fa?U:new oi(new Nt(ie.line,Ki,fa),oe)}function Na(N,U,ie,oe){var de,Be;if(U.touches)de=U.touches[0].clientX,Be=U.touches[0].clientY;else try{de=U.clientX,Be=U.clientY}catch(li){return!1}if(de>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;oe&&mt(U);var At=N.display,Kt=At.lineDiv.getBoundingClientRect();if(Be>Kt.bottom||!lr(N,ie))return et(U);Be-=Kt.top-At.viewOffset;for(var rr=0;rr<N.display.gutterSpecs.length;++rr){var pr=At.gutters.childNodes[rr];if(pr&&pr.getBoundingClientRect().right>=de){var Tn=xr(N.doc,Be),zn=N.display.gutterSpecs[rr];return Ot(N,ie,N,Tn,zn.className,U),et(U)}}}function Sa(N,U){return Na(N,U,"gutterClick",!0)}function aa(N,U){if(Hn(N.display,U)||so(N,U))return;if(Ut(N,U,"contextmenu"))return;T||N.display.input.onContextMenu(U)}function so(N,U){return lr(N,"gutterContextMenu")?Na(N,U,"gutterContextMenu",!1):!1}function os(N){N.display.wrapper.className=N.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+N.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ba(N)}var $o={toString:function(){return"CodeMirror.Init"}},Bs={},ve={};function Ke(N){var U=N.optionHandlers;function ie(oe,de,Be,At){N.defaults[oe]=de,Be&&(U[oe]=At?function(Kt,rr,pr){pr!=$o&&Be(Kt,rr,pr)}:Be)}N.defineOption=ie,N.Init=$o,ie("value","",function(oe,de){return oe.setValue(de)},!0),ie("mode",null,function(oe,de){oe.doc.modeOption=de,jo(oe)},!0),ie("indentUnit",2,jo,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(oe){Zo(oe),Ba(oe),_a(oe)},!0),ie("lineSeparator",null,function(oe,de){if(oe.doc.lineSep=de,!de)return;var Be=[],At=oe.doc.first;oe.doc.iter(function(rr){for(var pr=0;;){var Tn=rr.text.indexOf(de,pr);if(Tn==-1)break;pr=Tn+de.length,Be.push(Nt(At,Tn))}At++});for(var Kt=Be.length-1;Kt>=0;Kt--)xl(oe.doc,de,Be[Kt],Nt(Be[Kt].line,Be[Kt].ch+de.length))}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(oe,de,Be){oe.state.specialChars=new RegExp(de.source+(de.test(" ")?"":"| "),"g"),Be!=$o&&oe.refresh()}),ie("specialCharPlaceholder",Ei,function(oe){return oe.refresh()},!0),ie("electricChars",!0),ie("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ie("spellcheck",!1,function(oe,de){return oe.getInputField().spellcheck=de},!0),ie("autocorrect",!1,function(oe,de){return oe.getInputField().autocorrect=de},!0),ie("autocapitalize",!1,function(oe,de){return oe.getInputField().autocapitalize=de},!0),ie("rtlMoveVisually",!b),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(oe){os(oe),ms(oe)},!0),ie("keyMap","default",function(oe,de,Be){var At=Gs(de),Kt=Be!=$o&&Gs(Be);Kt&&Kt.detach&&Kt.detach(oe,At),At.attach&&At.attach(oe,Kt||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,Vt,!0),ie("gutters",[],function(oe,de){oe.display.gutterSpecs=Ro(de,oe.options.lineNumbers),ms(oe)},!0),ie("fixedGutter",!0,function(oe,de){oe.display.gutters.style.left=de?xo(oe.display)+"px":"0",oe.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(oe){return bo(oe)},!0),ie("scrollbarStyle","native",function(oe){Rs(oe),bo(oe),oe.display.scrollbars.setScrollTop(oe.doc.scrollTop),oe.display.scrollbars.setScrollLeft(oe.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(oe,de){oe.display.gutterSpecs=Ro(oe.options.gutters,de),ms(oe)},!0),ie("firstLineNumber",1,ms,!0),ie("lineNumberFormatter",function(oe){return oe},ms,!0),ie("showCursorWhenSelecting",!1,$r,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(oe,de){de=="nocursor"&&(ai(oe),oe.display.input.blur()),oe.display.input.readOnlyChanged(de)}),ie("screenReaderLabel",null,function(oe,de){de=de===""?null:de,oe.display.input.screenReaderLabelChanged(de)}),ie("disableInput",!1,function(oe,de){de||oe.display.input.reset()},!0),ie("dragDrop",!0,ht),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,$r,!0),ie("singleCursorHeightPerLine",!0,$r,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,Zo,!0),ie("addModeClass",!1,Zo,!0),ie("pollInterval",100),ie("undoDepth",200,function(oe,de){return oe.doc.history.undoDepth=de}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(oe){return oe.refresh()},!0),ie("maxHighlightLength",1e4,Zo,!0),ie("moveInputWithCursor",!0,function(oe,de){de||oe.display.input.resetPosition()}),ie("tabindex",null,function(oe,de){return oe.display.input.getField().tabIndex=de||""}),ie("autofocus",null),ie("direction","ltr",function(oe,de){return oe.doc.setDirection(de)},!0),ie("phrases",null)}function ht(N,U,ie){var oe=ie&&ie!=$o;if(!U!=!oe){var de=N.display.dragFunctions,Be=U?ke:Ve;Be(N.display.scroller,"dragstart",de.start),Be(N.display.scroller,"dragenter",de.enter),Be(N.display.scroller,"dragover",de.over),Be(N.display.scroller,"dragleave",de.leave),Be(N.display.scroller,"drop",de.drop)}}function Vt(N){N.options.lineWrapping?(X(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(E(N.display.wrapper,"CodeMirror-wrap"),bn(N)),Ho(N),_a(N),Ba(N),setTimeout(function(){return bo(N)},100)}function Cr(N,U){var ie=this;if(!(this instanceof Cr))return new Cr(N,U);this.options=U=U?H(U):{},H(Bs,U,!1);var oe=U.value;typeof oe=="string"?oe=new dl(oe,U.mode,null,U.lineSeparator,U.direction):U.mode&&(oe.modeOption=U.mode),this.doc=oe;var de=new Cr.inputStyles[U.inputStyle](this),Be=this.display=new As(N,oe,de,U);Be.wrapper.CodeMirror=this,os(this),U.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},U.autofocus&&!h&&Be.input.focus(),d&&u<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),Xr(this),pu(),qo(this),this.curOp.forceUpdate=!0,as(this,oe),U.autofocus&&!h||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&ui(ie)},20):ai(this);for(var At in ve)ve.hasOwnProperty(At)&&ve[At](this,U[At],$o);Os(this),U.finishInit&&U.finishInit(this);for(var Kt=0;Kt<De.length;++Kt)De[Kt](this);to(this),o&&U.lineWrapping&&getComputedStyle(Be.lineDiv).textRendering=="optimizelegibility"&&(Be.lineDiv.style.textRendering="auto")}Cr.defaults=Bs,Cr.optionHandlers=ve;function Xr(N){var U=N.display;ke(U.scroller,"mousedown",Mo(N,Sn)),d&&u<11?ke(U.scroller,"dblclick",Mo(N,function(rr){if(Ut(N,rr))return;var pr=go(N,rr);if(!pr||Sa(N,rr)||Hn(N.display,rr))return;mt(rr);var Tn=N.findWordAt(pr);Al(N.doc,Tn.anchor,Tn.head)})):ke(U.scroller,"dblclick",function(rr){return Ut(N,rr)||mt(rr)}),ke(U.scroller,"contextmenu",function(rr){return aa(N,rr)}),ke(U.input.getField(),"contextmenu",function(rr){U.scroller.contains(rr.target)||aa(N,rr)});var ie,oe={end:0};function de(){U.activeTouch&&(ie=setTimeout(function(){return U.activeTouch=null},1e3),oe=U.activeTouch,oe.end=+new Date)}function Be(rr){if(rr.touches.length!=1)return!1;var pr=rr.touches[0];return pr.radiusX<=1&&pr.radiusY<=1}function At(rr,pr){if(pr.left==null)return!0;var Tn=pr.left-rr.left,zn=pr.top-rr.top;return Tn*Tn+zn*zn>20*20}ke(U.scroller,"touchstart",function(rr){if(!Ut(N,rr)&&!Be(rr)&&!Sa(N,rr)){U.input.ensurePolled(),clearTimeout(ie);var pr=+new Date;U.activeTouch={start:pr,moved:!1,prev:pr-oe.end<=300?oe:null},rr.touches.length==1&&(U.activeTouch.left=rr.touches[0].pageX,U.activeTouch.top=rr.touches[0].pageY)}}),ke(U.scroller,"touchmove",function(){U.activeTouch&&(U.activeTouch.moved=!0)}),ke(U.scroller,"touchend",function(rr){var pr=U.activeTouch;if(pr&&!Hn(U,rr)&&pr.left!=null&&!pr.moved&&new Date-pr.start<300){var Tn=N.coordsChar(U.activeTouch,"page"),zn;!pr.prev||At(pr,pr.prev)?zn=new oi(Tn,Tn):!pr.prev.prev||At(pr,pr.prev.prev)?zn=N.findWordAt(Tn):zn=new oi(Nt(Tn.line,0),wt(N.doc,Nt(Tn.line+1,0))),N.setSelection(zn.anchor,zn.head),N.focus(),mt(rr)}de()}),ke(U.scroller,"touchcancel",de),ke(U.scroller,"scroll",function(){U.scroller.clientHeight&&(ua(N,U.scroller.scrollTop),Ra(N,U.scroller.scrollLeft,!0),Ot(N,"scroll",N))}),ke(U.scroller,"mousewheel",function(rr){return $n(N,rr)}),ke(U.scroller,"DOMMouseScroll",function(rr){return $n(N,rr)}),ke(U.wrapper,"scroll",function(){return U.wrapper.scrollTop=U.wrapper.scrollLeft=0}),U.dragFunctions={enter:function(pr){Ut(N,pr)||ur(pr)},over:function(pr){Ut(N,pr)||(_l(N,pr),ur(pr))},start:function(pr){return Zl(N,pr)},drop:Mo(N,wl),leave:function(pr){Ut(N,pr)||fu(N)}};var Kt=U.input.getField();ke(Kt,"keyup",function(rr){return qe.call(N,rr)}),ke(Kt,"keydown",Mo(N,we)),ke(Kt,"keypress",Mo(N,it)),ke(Kt,"focus",function(rr){return ui(N,rr)}),ke(Kt,"blur",function(rr){return ai(N,rr)})}var De=[];Cr.defineInitHook=function(N){return De.push(N)};function ae(N,U,ie,oe){var de=N.doc,Be;ie==null&&(ie="add"),ie=="smart"&&(de.mode.indent?Be=Vn(N,U).state:ie="prev");var At=N.options.tabSize,Kt=Ie(de,U),rr=V(Kt.text,null,At);Kt.stateAfter&&(Kt.stateAfter=null);var pr=Kt.text.match(/^\s*/)[0],Tn;if(!oe&&!/\S/.test(Kt.text))Tn=0,ie="not";else if(ie=="smart"&&(Tn=de.mode.indent(Be,Kt.text.slice(pr.length),Kt.text),Tn==q||Tn>150)){if(!oe)return;ie="prev"}ie=="prev"?U>de.first?Tn=V(Ie(de,U-1).text,null,At):Tn=0:ie=="add"?Tn=rr+N.options.indentUnit:ie=="subtract"?Tn=rr-N.options.indentUnit:typeof ie=="number"&&(Tn=rr+ie),Tn=Math.max(0,Tn);var zn="",li=0;if(N.options.indentWithTabs)for(var di=Math.floor(Tn/At);di;--di)li+=At,zn+=" ";if(li<Tn&&(zn+=Ge(Tn-li)),zn!=pr)return xl(de,zn,Nt(U,0),Nt(U,pr.length),"+input"),Kt.stateAfter=null,!0;for(var Ki=0;Ki<de.sel.ranges.length;Ki++){var fa=de.sel.ranges[Ki];if(fa.head.line==U&&fa.head.ch<pr.length){var Ta=Nt(U,pr.length);al(de,Ki,new oi(Ta,Ta));break}}}var be=null;function We(N){be=N}function ut(N,U,ie,oe,de){var Be=N.doc;N.display.shift=!1,oe||(oe=Be.sel);var At=+new Date-200,Kt=de=="paste"||N.state.pasteIncoming>At,rr=pn(U),pr=null;if(Kt&&oe.ranges.length>1)if(be&&be.text.join(`
`)==U){if(oe.ranges.length%be.text.length==0){pr=[];for(var Tn=0;Tn<be.text.length;Tn++)pr.push(Be.splitLines(be.text[Tn]))}}else rr.length==oe.ranges.length&&N.options.pasteLinesPerSelection&&(pr=nt(rr,function(ba){return[ba]}));for(var zn=N.curOp.updateInput,li=oe.ranges.length-1;li>=0;li--){var di=oe.ranges[li],Ki=di.from(),fa=di.to();di.empty()&&(ie&&ie>0?Ki=Nt(Ki.line,Ki.ch-ie):N.state.overwrite&&!Kt?fa=Nt(fa.line,Math.min(Ie(Be,fa.line).text.length,fa.ch+Ue(rr).length)):Kt&&be&&be.lineWise&&be.text.join(`
`)==rr.join(`
`)&&(Ki=fa=Nt(Ki.line,0)));var Ta={from:Ki,to:fa,text:pr?pr[li%pr.length]:rr,origin:de||(Kt?"paste":N.state.cutIncoming>At?"cut":"+input")};vs(N.doc,Ta),Ir(N,"inputRead",N,Ta)}U&&!Kt&&jt(N,U),wa(N),N.curOp.updateInput<2&&(N.curOp.updateInput=zn),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function Dt(N,U){var ie=N.clipboardData&&N.clipboardData.getData("Text");if(ie)return N.preventDefault(),!U.isReadOnly()&&!U.options.disableInput&&_o(U,function(){return ut(U,ie,0,null,"paste")}),!0}function jt(N,U){if(!N.options.electricChars||!N.options.smartIndent)return;for(var ie=N.doc.sel,oe=ie.ranges.length-1;oe>=0;oe--){var de=ie.ranges[oe];if(de.head.ch>100||oe&&ie.ranges[oe-1].head.line==de.head.line)continue;var Be=N.getModeAt(de.head),At=!1;if(Be.electricChars){for(var Kt=0;Kt<Be.electricChars.length;Kt++)if(U.indexOf(Be.electricChars.charAt(Kt))>-1){At=ae(N,de.head.line,"smart");break}}else Be.electricInput&&(Be.electricInput.test(Ie(N.doc,de.head.line).text.slice(0,de.head.ch))&&(At=ae(N,de.head.line,"smart")));At&&Ir(N,"electricInput",N,de.head.line)}}function Wt(N){for(var U=[],ie=[],oe=0;oe<N.doc.sel.ranges.length;oe++){var de=N.doc.sel.ranges[oe].head.line,Be={anchor:Nt(de,0),head:Nt(de+1,0)};ie.push(Be),U.push(N.getRange(Be.anchor,Be.head))}return{text:U,ranges:ie}}function Rr(N,U,ie,oe){N.setAttribute("autocorrect",ie?"":"off"),N.setAttribute("autocapitalize",oe?"":"off"),N.setAttribute("spellcheck",!!U)}function Zr(){var N=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),U=O("div",[N],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return o?N.style.width="1000px":N.setAttribute("wrap","off"),s&&(N.style.border="1px solid black"),Rr(N),U}function kr(N){var U=N.optionHandlers,ie=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(de,Be){var At=this.options,Kt=At[de];if(At[de]==Be&&de!="mode")return;At[de]=Be,U.hasOwnProperty(de)&&Mo(this,U[de])(this,Be,Kt),Ot(this,"optionChange",this,de)},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,Be){this.state.keyMaps[Be?"push":"unshift"](Gs(de))},removeKeyMap:function(de){for(var Be=this.state.keyMaps,At=0;At<Be.length;++At)if(Be[At]==de||Be[At].name==de)return Be.splice(At,1),!0},addOverlay:xs(function(oe,de){var Be=oe.token?oe:N.getMode(this.options,oe);if(Be.startState)throw new Error("Overlays may not be stateful.");Le(this.state.overlays,{mode:Be,modeSpec:oe,opaque:de&&de.opaque,priority:de&&de.priority||0},function(At){return At.priority}),this.state.modeGen++,_a(this)}),removeOverlay:xs(function(oe){for(var de=this.state.overlays,Be=0;Be<de.length;++Be){var At=de[Be].modeSpec;if(At==oe||typeof oe=="string"&&At.name==oe){de.splice(Be,1),this.state.modeGen++,_a(this);return}}}),indentLine:xs(function(oe,de,Be){typeof de!="string"&&typeof de!="number"&&(de==null?de=this.options.smartIndent?"smart":"prev":de=de?"add":"subtract"),Hr(this.doc,oe)&&ae(this,oe,de,Be)}),indentSelection:xs(function(oe){for(var de=this.doc.sel.ranges,Be=-1,At=0;At<de.length;At++){var Kt=de[At];if(Kt.empty())Kt.head.line>Be&&(ae(this,Kt.head.line,oe,!0),Be=Kt.head.line,At==this.doc.sel.primIndex&&wa(this));else{var rr=Kt.from(),pr=Kt.to(),Tn=Math.max(Be,rr.line);Be=Math.min(this.lastLine(),pr.line-(pr.ch?0:1))+1;for(var zn=Tn;zn<Be;++zn)ae(this,zn,oe);var li=this.doc.sel.ranges;rr.ch==0&&de.length==li.length&&li[At].from().ch>0&&al(this.doc,At,new oi(rr,li[At].to()),se)}}}),getTokenAt:function(de,Be){return Ni(this,de,Be)},getLineTokens:function(de,Be){return Ni(this,Nt(de),Be,!0)},getTokenTypeAt:function(de){de=wt(this.doc,de);var Be=sn(this,Ie(this.doc,de.line)),At=0,Kt=(Be.length-1)/2,rr=de.ch,pr;if(rr==0)pr=Be[2];else for(;;){var Tn=At+Kt>>1;if((Tn?Be[Tn*2-1]:0)>=rr)Kt=Tn;else if(Be[Tn*2+1]<rr)At=Tn+1;else{pr=Be[Tn*2+2];break}}var zn=pr?pr.indexOf("overlay "):-1;return zn<0?pr:zn==0?null:pr.slice(0,zn-1)},getModeAt:function(de){var Be=this.doc.mode;return Be.innerMode?N.innerMode(Be,this.getTokenAt(de).state).mode:Be},getHelper:function(de,Be){return this.getHelpers(de,Be)[0]},getHelpers:function(de,Be){var At=[];if(!ie.hasOwnProperty(Be))return At;var Kt=ie[Be],rr=this.getModeAt(de);if(typeof rr[Be]=="string")Kt[rr[Be]]&&At.push(Kt[rr[Be]]);else if(rr[Be])for(var pr=0;pr<rr[Be].length;pr++){var Tn=Kt[rr[Be][pr]];Tn&&At.push(Tn)}else rr.helperType&&Kt[rr.helperType]?At.push(Kt[rr.helperType]):Kt[rr.name]&&At.push(Kt[rr.name]);for(var zn=0;zn<Kt._global.length;zn++){var li=Kt._global[zn];li.pred(rr,this)&&G(At,li.val)==-1&&At.push(li.val)}return At},getStateAfter:function(de,Be){var At=this.doc;return de=Bt(At,de==null?At.first+At.size-1:de),Vn(this,de+1,Be).state},cursorCoords:function(de,Be){var At,Kt=this.doc.sel.primary();return de==null?At=Kt.head:typeof de=="object"?At=wt(this.doc,de):At=de?Kt.from():Kt.to(),ro(this,At,Be||"page")},charCoords:function(de,Be){return Bi(this,wt(this.doc,de),Be||"page")},coordsChar:function(de,Be){return de=Ya(this,de,Be||"page"),co(this,de.left,de.top)},lineAtHeight:function(de,Be){return de=Ya(this,{top:de,left:0},Be||"page").top,xr(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,Be,At){var Kt=!1,rr;if(typeof de=="number"){var pr=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>pr&&(de=pr,Kt=!0),rr=Ie(this.doc,de)}else rr=de;return Va(this,rr,{top:0,left:0},Be||"page",At||Kt).top+(Kt?this.doc.height-br(rr):0)},defaultTextHeight:function(){return mo(this.display)},defaultCharWidth:function(){return Do(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(de,Be,At,Kt,rr){var pr=this.display;de=ro(this,wt(this.doc,de));var Tn=de.bottom,zn=de.left;if(Be.style.position="absolute",Be.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Be),pr.sizer.appendChild(Be),Kt=="over")Tn=de.top;else if(Kt=="above"||Kt=="near"){var li=Math.max(pr.wrapper.clientHeight,this.doc.height),di=Math.max(pr.sizer.clientWidth,pr.lineSpace.clientWidth);(Kt=="above"||de.bottom+Be.offsetHeight>li)&&de.top>Be.offsetHeight?Tn=de.top-Be.offsetHeight:de.bottom+Be.offsetHeight<=li&&(Tn=de.bottom),zn+Be.offsetWidth>di&&(zn=di-Be.offsetWidth)}Be.style.top=Tn+"px",Be.style.left=Be.style.right="",rr=="right"?(zn=pr.sizer.clientWidth-Be.offsetWidth,Be.style.right="0px"):(rr=="left"?zn=0:rr=="middle"&&(zn=(pr.sizer.clientWidth-Be.offsetWidth)/2),Be.style.left=zn+"px"),At&&La(this,{left:zn,top:Tn,right:zn+Be.offsetWidth,bottom:Tn+Be.offsetHeight})},triggerOnKeyDown:xs(we),triggerOnKeyPress:xs(it),triggerOnKeyUp:qe,triggerOnMouseDown:xs(Sn),execCommand:function(de){if(ou.hasOwnProperty(de))return ou[de].call(null,this)},triggerElectric:xs(function(oe){jt(this,oe)}),findPosH:function(de,Be,At,Kt){var rr=1;Be<0&&(rr=-1,Be=-Be);for(var pr=wt(this.doc,de),Tn=0;Tn<Be&&!(pr=Or(this.doc,pr,rr,At,Kt),pr.hitSide);++Tn);return pr},moveH:xs(function(oe,de){var Be=this;this.extendSelectionsBy(function(At){return Be.display.shift||Be.doc.extend||At.empty()?Or(Be.doc,At.head,oe,de,Be.options.rtlMoveVisually):oe<0?At.from():At.to()},Ae)}),deleteH:xs(function(oe,de){var Be=this.doc.sel,At=this.doc;Be.somethingSelected()?At.replaceSelection("",null,"+delete"):gl(this,function(Kt){var rr=Or(At,Kt.head,oe,de,!1);return oe<0?{from:rr,to:Kt.head}:{from:Kt.head,to:rr}})}),findPosV:function(de,Be,At,Kt){var rr=1,pr=Kt;Be<0&&(rr=-1,Be=-Be);for(var Tn=wt(this.doc,de),zn=0;zn<Be;++zn){var li=ro(this,Tn,"div");if(pr==null?pr=li.left:li.left=pr,Tn=Yr(this,li,rr,At),Tn.hitSide)break}return Tn},moveV:xs(function(oe,de){var Be=this,At=this.doc,Kt=[],rr=!this.display.shift&&!At.extend&&At.sel.somethingSelected();if(At.extendSelectionsBy(function(Tn){if(rr)return oe<0?Tn.from():Tn.to();var zn=ro(Be,Tn.head,"div");Tn.goalColumn!=null&&(zn.left=Tn.goalColumn),Kt.push(zn.left);var li=Yr(Be,zn,oe,de);return de=="page"&&Tn==At.sel.primary()&&ca(Be,Bi(Be,li,"div").top-zn.top),li},Ae),Kt.length)for(var pr=0;pr<At.sel.ranges.length;pr++)At.sel.ranges[pr].goalColumn=Kt[pr]}),findWordAt:function(de){var Be=this.doc,At=Ie(Be,de.line).text,Kt=de.ch,rr=de.ch;if(At){var pr=this.getHelper(de,"wordChars");(de.sticky=="before"||rr==At.length)&&Kt?--Kt:++rr;for(var Tn=At.charAt(Kt),zn=Y(Tn,pr)?function(li){return Y(li,pr)}:/\s/.test(Tn)?function(li){return/\s/.test(li)}:function(li){return!/\s/.test(li)&&!Y(li)};Kt>0&&zn(At.charAt(Kt-1));)--Kt;for(;rr<At.length&&zn(At.charAt(rr));)++rr}return new oi(Nt(de.line,Kt),Nt(de.line,rr))},toggleOverwrite:function(de){if(de!=null&&de==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),Ot(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:xs(function(oe,de){Ca(this,oe,de)}),getScrollInfo:function(){var de=this.display.scroller;return{left:de.scrollLeft,top:de.scrollTop,height:de.scrollHeight-ii(this)-this.display.barHeight,width:de.scrollWidth-ii(this)-this.display.barWidth,clientHeight:Ri(this),clientWidth:_i(this)}},scrollIntoView:xs(function(oe,de){oe==null?(oe={from:this.doc.sel.primary().head,to:null},de==null&&(de=this.options.cursorScrollMargin)):typeof oe=="number"?oe={from:Nt(oe,0),to:null}:oe.from==null&&(oe={from:oe,to:null}),oe.to||(oe.to=oe.from),oe.margin=de||0,oe.from.line!=null?No(this,oe):ea(this,oe.from,oe.to,oe.margin)}),setSize:xs(function(oe,de){var Be=this,At=function(pr){return typeof pr=="number"||/^\d+$/.test(String(pr))?pr+"px":pr};oe!=null&&(this.display.wrapper.style.width=At(oe)),de!=null&&(this.display.wrapper.style.height=At(de)),this.options.lineWrapping&&sa(this);var Kt=this.display.viewFrom;this.doc.iter(Kt,this.display.viewTo,function(rr){if(rr.widgets){for(var pr=0;pr<rr.widgets.length;pr++)if(rr.widgets[pr].noHScroll){at(Be,Kt,"widget");break}}++Kt}),this.curOp.forceUpdate=!0,Ot(this,"refresh",this)}),operation:function(de){return _o(this,de)},startOperation:function(){return qo(this)},endOperation:function(){return to(this)},refresh:xs(function(){var oe=this.display.cachedTextHeight;_a(this),this.curOp.forceUpdate=!0,Ba(this),Ca(this,this.doc.scrollLeft,this.doc.scrollTop),ps(this.display),(oe==null||Math.abs(oe-mo(this.display))>.5||this.options.lineWrapping)&&Ho(this),Ot(this,"refresh",this)}),swapDoc:xs(function(oe){var de=this.doc;return de.cm=null,this.state.selectingText&&this.state.selectingText(),as(this,oe),Ba(this),this.display.input.reset(),Ca(this,oe.scrollLeft,oe.scrollTop),this.curOp.forceScroll=!0,Ir(this,"swapDoc",this,de),de}),phrase:function(de){var Be=this.options.phrases;return Be&&Object.prototype.hasOwnProperty.call(Be,de)?Be[de]:de},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}},Sr(N),N.registerHelper=function(oe,de,Be){ie.hasOwnProperty(oe)||(ie[oe]=N[oe]={_global:[]}),ie[oe][de]=Be},N.registerGlobalHelper=function(oe,de,Be,At){N.registerHelper(oe,de,At),ie[oe]._global.push({pred:Be,val:At})}}function Or(N,U,ie,oe,de){var Be=U,At=ie,Kt=Ie(N,U.line),rr=de&&N.direction=="rtl"?-ie:ie;function pr(){var ya=U.line+rr;return ya<N.first||ya>=N.first+N.size?!1:(U=new Nt(ya,U.ch,U.sticky),Kt=Ie(N,ya))}function Tn(ya){var Ha;if(oe=="codepoint"){var Ja=Kt.text.charCodeAt(U.ch+(oe>0?0:-1));isNaN(Ja)?Ha=null:Ha=new Nt(U.line,Math.max(0,Math.min(Kt.text.length,U.ch+ie*(Ja>=55296&&Ja<56320?2:1))),-ie)}else de?Ha=cu(N.cm,Kt,U,ie):Ha=Du(Kt,U,ie);if(Ha==null)if(!ya&&pr())U=Su(de,N.cm,Kt,U.line,rr);else return!1;else U=Ha;return!0}if(oe=="char"||oe=="codepoint")Tn();else if(oe=="column")Tn(!0);else if(oe=="word"||oe=="group")for(var zn=null,li=oe=="group",di=N.cm&&N.cm.getHelper(U,"wordChars"),Ki=!0;!(ie<0&&!Tn(!Ki));Ki=!1){var fa=Kt.text.charAt(U.ch)||`
`,Ta=Y(fa,di)?"w":li&&fa==`
`?"n":!li||/\s/.test(fa)?null:"p";if(li&&!Ki&&!Ta&&(Ta="s"),zn&&zn!=Ta){ie<0&&(ie=1,Tn(),U.sticky="after");break}if(Ta&&(zn=Ta),ie>0&&!Tn(!Ki))break}var ba=Bo(N,U,Be,At,!0);return dt(Be,ba)&&(ba.hitSide=!0),ba}function Yr(N,U,ie,oe){var de=N.doc,Be=U.left,At;if(oe=="page"){var Kt=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),rr=Math.max(Kt-.5*mo(N.display),3);At=(ie>0?U.bottom:U.top)+ie*rr}else oe=="line"&&(At=ie>0?U.bottom+3:U.top-3);for(var pr;!(pr=co(N,Be,At),!pr.outside);){if(ie<0?At<=0:At>=de.height){pr.hitSide=!0;break}At+=ie*5}return pr}var rn=function(U){this.cm=U,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};rn.prototype.init=function(N){var U=this,ie=this,oe=ie.cm,de=ie.div=N.lineDiv;Rr(de,oe.options.spellcheck,oe.options.autocorrect,oe.options.autocapitalize);function Be(Kt){for(var rr=Kt.target;rr;rr=rr.parentNode){if(rr==de)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(rr.className))break}return!1}ke(de,"paste",function(Kt){if(!Be(Kt)||Ut(oe,Kt)||Dt(Kt,oe))return;u<=11&&setTimeout(Mo(oe,function(){return U.updateFromDOM()}),20)}),ke(de,"compositionstart",function(Kt){U.composing={data:Kt.data,done:!1}}),ke(de,"compositionupdate",function(Kt){U.composing||(U.composing={data:Kt.data,done:!1})}),ke(de,"compositionend",function(Kt){U.composing&&(Kt.data!=U.composing.data&&U.readFromDOMSoon(),U.composing.done=!0)}),ke(de,"touchstart",function(){return ie.forceCompositionEnd()}),ke(de,"input",function(){U.composing||U.readFromDOMSoon()});function At(Kt){if(!Be(Kt)||Ut(oe,Kt))return;if(oe.somethingSelected())We({lineWise:!1,text:oe.getSelections()}),Kt.type=="cut"&&oe.replaceSelection("",null,"cut");else if(oe.options.lineWiseCopyCut){var rr=Wt(oe);We({lineWise:!0,text:rr.text}),Kt.type=="cut"&&oe.operation(function(){oe.setSelections(rr.ranges,0,se),oe.replaceSelection("",null,"cut")})}else return;if(Kt.clipboardData){Kt.clipboardData.clearData();var pr=be.text.join(`
`);if(Kt.clipboardData.setData("Text",pr),Kt.clipboardData.getData("Text")==pr){Kt.preventDefault();return}}var Tn=Zr(),zn=Tn.firstChild;oe.display.lineSpace.insertBefore(Tn,oe.display.lineSpace.firstChild),zn.value=be.text.join(`
`);var li=document.activeElement;z(zn),setTimeout(function(){oe.display.lineSpace.removeChild(Tn),li.focus(),li==de&&ie.showPrimarySelection()},50)}ke(de,"copy",At),ke(de,"cut",At)},rn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},rn.prototype.prepareSelection=function(){var N=Mr(this.cm,!1);return N.focus=document.activeElement==this.div,N},rn.prototype.showSelection=function(N,U){if(!N||!this.cm.display.view.length)return;(N.focus||U)&&this.showPrimarySelection(),this.showMultipleSelections(N)},rn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},rn.prototype.showPrimarySelection=function(){var N=this.getSelection(),U=this.cm,ie=U.doc.sel.primary(),oe=ie.from(),de=ie.to();if(U.display.viewTo==U.display.viewFrom||oe.line>=U.display.viewTo||de.line<U.display.viewFrom){N.removeAllRanges();return}var Be=Mi(U,N.anchorNode,N.anchorOffset),At=Mi(U,N.focusNode,N.focusOffset);if(Be&&!Be.bad&&At&&!At.bad&&ot(Et(Be,At),oe)==0&&ot(Pt(Be,At),de)==0)return;var Kt=U.display.view,rr=oe.line>=U.display.viewFrom&&_n(U,oe)||{node:Kt[0].measure.map[2],offset:0},pr=de.line<U.display.viewTo&&_n(U,de);if(!pr){var Tn=Kt[Kt.length-1].measure,zn=Tn.maps?Tn.maps[Tn.maps.length-1]:Tn.map;pr={node:zn[zn.length-1],offset:zn[zn.length-2]-zn[zn.length-3]}}if(!rr||!pr){N.removeAllRanges();return}var li=N.rangeCount&&N.getRangeAt(0),di;try{di=R(rr.node,rr.offset,pr.offset,pr.node)}catch(Ki){}di&&(!S&&U.state.focused?(N.collapse(rr.node,rr.offset),di.collapsed||(N.removeAllRanges(),N.addRange(di))):(N.removeAllRanges(),N.addRange(di)),li&&N.anchorNode==null?N.addRange(li):S&&this.startGracePeriod()),this.rememberSelection()},rn.prototype.startGracePeriod=function(){var N=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){N.gracePeriod=!1,N.selectionChanged()&&N.cm.operation(function(){return N.cm.curOp.selectionChanged=!0})},20)},rn.prototype.showMultipleSelections=function(N){I(this.cm.display.cursorDiv,N.cursors),I(this.cm.display.selectionDiv,N.selection)},rn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},rn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var U=N.getRangeAt(0).commonAncestorContainer;return B(this.div,U)},rn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},rn.prototype.blur=function(){this.div.blur()},rn.prototype.getField=function(){return this.div},rn.prototype.supportsTouch=function(){return!0},rn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():_o(this.cm,function(){return N.cm.curOp.selectionChanged=!0});function U(){N.cm.state.focused&&(N.pollSelection(),N.polling.set(N.cm.options.pollInterval,U))}this.polling.set(this.cm.options.pollInterval,U)},rn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},rn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var N=this.getSelection(),U=this.cm;if(c&&t&&this.cm.display.gutterSpecs.length&&fi(N.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var ie=Mi(U,N.anchorNode,N.anchorOffset),oe=Mi(U,N.focusNode,N.focusOffset);ie&&oe&&_o(U,function(){Ls(U.doc,ha(ie,oe),se),(ie.bad||oe.bad)&&(U.curOp.selectionChanged=!0)})},rn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var N=this.cm,U=N.display,ie=N.doc.sel.primary(),oe=ie.from(),de=ie.to();if(oe.ch==0&&oe.line>N.firstLine()&&(oe=Nt(oe.line-1,Ie(N.doc,oe.line-1).length)),de.ch==Ie(N.doc,de.line).text.length&&de.line<N.lastLine()&&(de=Nt(de.line+1,0)),oe.line<U.viewFrom||de.line>U.viewTo-1)return!1;var Be,At,Kt;oe.line==U.viewFrom||(Be=qa(N,oe.line))==0?(At=kt(U.view[0].line),Kt=U.view[0].node):(At=kt(U.view[Be].line),Kt=U.view[Be-1].node.nextSibling);var rr=qa(N,de.line),pr,Tn;if(rr==U.view.length-1?(pr=U.viewTo-1,Tn=U.lineDiv.lastChild):(pr=kt(U.view[rr+1].line)-1,Tn=U.view[rr+1].node.previousSibling),!Kt)return!1;for(var zn=N.doc.splitLines(Qi(N,Kt,Tn,At,pr)),li=Ze(N.doc,Nt(At,0),Nt(pr,Ie(N.doc,pr).text.length));zn.length>1&&li.length>1;)if(Ue(zn)==Ue(li))zn.pop(),li.pop(),pr--;else if(zn[0]==li[0])zn.shift(),li.shift(),At++;else break;for(var di=0,Ki=0,fa=zn[0],Ta=li[0],ba=Math.min(fa.length,Ta.length);di<ba&&fa.charCodeAt(di)==Ta.charCodeAt(di);)++di;for(var ya=Ue(zn),Ha=Ue(li),Ja=Math.min(ya.length-(zn.length==1?di:0),Ha.length-(li.length==1?di:0));Ki<Ja&&ya.charCodeAt(ya.length-Ki-1)==Ha.charCodeAt(Ha.length-Ki-1);)++Ki;if(zn.length==1&&li.length==1&&At==oe.line)for(;di&&di>oe.ch&&ya.charCodeAt(ya.length-Ki-1)==Ha.charCodeAt(Ha.length-Ki-1);)di--,Ki++;zn[zn.length-1]=ya.slice(0,ya.length-Ki).replace(/^\u200b+/,""),zn[0]=zn[0].slice(di).replace(/\u200b+$/,"");var Uo=Nt(At,di),Ao=Nt(pr,li.length?Ue(li).length-Ki:0);if(zn.length>1||zn[0]||ot(Uo,Ao))return xl(N.doc,zn,Uo,Ao,"+input"),!0},rn.prototype.ensurePolled=function(){this.forceCompositionEnd()},rn.prototype.reset=function(){this.forceCompositionEnd()},rn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},rn.prototype.readFromDOMSoon=function(){var N=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(N.readDOMTimeout=null,N.composing)if(N.composing.done)N.composing=null;else return;N.updateFromDOM()},80)},rn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&_o(this.cm,function(){return _a(N.cm)})},rn.prototype.setUneditable=function(N){N.contentEditable="false"},rn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||Mo(this.cm,ut)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},rn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},rn.prototype.onContextMenu=function(){},rn.prototype.resetPosition=function(){},rn.prototype.needsContentAttribute=!0;function _n(N,U){var ie=Ui(N,U.line);if(!ie||ie.hidden)return null;var oe=Ie(N.doc,U.line),de=wi(ie,oe,U.line),Be=lt(oe,N.doc.direction),At="left";if(Be){var Kt=Oe(Be,U.ch);At=Kt%2?"right":"left"}var rr=xa(de.map,U.ch,At);return rr.offset=rr.collapse=="right"?rr.end:rr.start,rr}function fi(N){for(var U=N;U;U=U.parentNode)if(/CodeMirror-gutter-wrapper/.test(U.className))return!0;return!1}function vi(N,U){return U&&(N.bad=!0),N}function Qi(N,U,ie,oe,de){var Be="",At=!1,Kt=N.doc.lineSeparator(),rr=!1;function pr(di){return function(Ki){return Ki.id==di}}function Tn(){At&&(Be+=Kt,rr&&(Be+=Kt),At=rr=!1)}function zn(di){di&&(Tn(),Be+=di)}function li(di){if(di.nodeType==1){var Ki=di.getAttribute("cm-text");if(Ki){zn(Ki);return}var fa=di.getAttribute("cm-marker"),Ta;if(fa){var ba=N.findMarks(Nt(oe,0),Nt(de+1,0),pr(+fa));ba.length&&(Ta=ba[0].find(0))&&zn(Ze(N.doc,Ta.from,Ta.to).join(Kt));return}if(di.getAttribute("contenteditable")=="false")return;var ya=/^(pre|div|p|li|table|br)$/i.test(di.nodeName);if(!/^br$/i.test(di.nodeName)&&di.textContent.length==0)return;ya&&Tn();for(var Ha=0;Ha<di.childNodes.length;Ha++)li(di.childNodes[Ha]);/^(pre|p)$/i.test(di.nodeName)&&(rr=!0),ya&&(At=!0)}else di.nodeType==3&&zn(di.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(li(U),U==ie);)U=U.nextSibling,rr=!1;return Be}function Mi(N,U,ie){var oe;if(U==N.display.lineDiv){if(oe=N.display.lineDiv.childNodes[ie],!oe)return vi(N.clipPos(Nt(N.display.viewTo-1)),!0);U=null,ie=0}else for(oe=U;;oe=oe.parentNode){if(!oe||oe==N.display.lineDiv)return null;if(oe.parentNode&&oe.parentNode==N.display.lineDiv)break}for(var de=0;de<N.display.view.length;de++){var Be=N.display.view[de];if(Be.node==oe)return Da(Be,U,ie)}}function Da(N,U,ie){var oe=N.text.firstChild,de=!1;if(!U||!B(oe,U))return vi(Nt(kt(N.line),0),!0);if(U==oe&&(de=!0,U=oe.childNodes[ie],ie=0,!U)){var Be=N.rest?Ue(N.rest):N.line;return vi(Nt(kt(Be),Be.text.length),de)}var At=U.nodeType==3?U:null,Kt=U;for(!At&&U.childNodes.length==1&&U.firstChild.nodeType==3&&(At=U.firstChild,ie&&(ie=At.nodeValue.length));Kt.parentNode!=oe;)Kt=Kt.parentNode;var rr=N.measure,pr=rr.maps;function Tn(Ta,ba,ya){for(var Ha=-1;Ha<(pr?pr.length:0);Ha++)for(var Ja=Ha<0?rr.map:pr[Ha],Uo=0;Uo<Ja.length;Uo+=3){var Ao=Ja[Uo+2];if(Ao==Ta||Ao==ba){var us=kt(Ha<0?N.line:N.rest[Ha]),Ns=Ja[Uo]+ya;return(ya<0||Ao!=Ta)&&(Ns=Ja[Uo+(ya?1:0)]),Nt(us,Ns)}}}var zn=Tn(At,Kt,ie);if(zn)return vi(zn,de);for(var li=Kt.nextSibling,di=At?At.nodeValue.length-ie:0;li;li=li.nextSibling){if(zn=Tn(li,li.firstChild,0),zn)return vi(Nt(zn.line,zn.ch-di),de);di+=li.textContent.length}for(var Ki=Kt.previousSibling,fa=ie;Ki;Ki=Ki.previousSibling){if(zn=Tn(Ki,Ki.firstChild,-1),zn)return vi(Nt(zn.line,zn.ch+fa),de);fa+=Ki.textContent.length}}var oa=function(U){this.cm=U,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};oa.prototype.init=function(N){var U=this,ie=this,oe=this.cm;this.createField(N);var de=this.textarea;N.wrapper.insertBefore(this.wrapper,N.wrapper.firstChild),s&&(de.style.width="0px"),ke(de,"input",function(){d&&u>=9&&U.hasSelection&&(U.hasSelection=null),ie.poll()}),ke(de,"paste",function(At){if(Ut(oe,At)||Dt(At,oe))return;oe.state.pasteIncoming=+new Date,ie.fastPoll()});function Be(At){if(Ut(oe,At))return;if(oe.somethingSelected())We({lineWise:!1,text:oe.getSelections()});else if(oe.options.lineWiseCopyCut){var Kt=Wt(oe);We({lineWise:!0,text:Kt.text}),At.type=="cut"?oe.setSelections(Kt.ranges,null,se):(ie.prevInput="",de.value=Kt.text.join(`
`),z(de))}else return;At.type=="cut"&&(oe.state.cutIncoming=+new Date)}ke(de,"cut",Be),ke(de,"copy",Be),ke(N.scroller,"paste",function(At){if(Hn(N,At)||Ut(oe,At))return;if(!de.dispatchEvent){oe.state.pasteIncoming=+new Date,ie.focus();return}var Kt=new Event("paste");Kt.clipboardData=At.clipboardData,de.dispatchEvent(Kt)}),ke(N.lineSpace,"selectstart",function(At){Hn(N,At)||mt(At)}),ke(de,"compositionstart",function(){var At=oe.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:At,range:oe.markText(At,oe.getCursor("to"),{className:"CodeMirror-composing"})}}),ke(de,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},oa.prototype.createField=function(N){this.wrapper=Zr(),this.textarea=this.wrapper.firstChild},oa.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},oa.prototype.prepareSelection=function(){var N=this.cm,U=N.display,ie=N.doc,oe=Mr(N);if(N.options.moveInputWithCursor){var de=ro(N,ie.sel.primary().head,"div"),Be=U.wrapper.getBoundingClientRect(),At=U.lineDiv.getBoundingClientRect();oe.teTop=Math.max(0,Math.min(U.wrapper.clientHeight-10,de.top+At.top-Be.top)),oe.teLeft=Math.max(0,Math.min(U.wrapper.clientWidth-10,de.left+At.left-Be.left))}return oe},oa.prototype.showSelection=function(N){var U=this.cm,ie=U.display;I(ie.cursorDiv,N.cursors),I(ie.selectionDiv,N.selection),N.teTop!=null&&(this.wrapper.style.top=N.teTop+"px",this.wrapper.style.left=N.teLeft+"px")},oa.prototype.reset=function(N){if(this.contextMenuPending||this.composing)return;var U=this.cm;if(U.somethingSelected()){this.prevInput="";var ie=U.getSelection();this.textarea.value=ie,U.state.focused&&z(this.textarea),d&&u>=9&&(this.hasSelection=ie)}else N||(this.prevInput=this.textarea.value="",d&&u>=9&&(this.hasSelection=null))},oa.prototype.getField=function(){return this.textarea},oa.prototype.supportsTouch=function(){return!1},oa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||P()!=this.textarea))try{this.textarea.focus()}catch(N){}},oa.prototype.blur=function(){this.textarea.blur()},oa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oa.prototype.receivedFocus=function(){this.slowPoll()},oa.prototype.slowPoll=function(){var N=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){N.poll(),N.cm.state.focused&&N.slowPoll()})},oa.prototype.fastPoll=function(){var N=!1,U=this;U.pollingFast=!0;function ie(){var oe=U.poll();!oe&&!N?(N=!0,U.polling.set(60,ie)):(U.pollingFast=!1,U.slowPoll())}U.polling.set(20,ie)},oa.prototype.poll=function(){var N=this,U=this.cm,ie=this.textarea,oe=this.prevInput;if(this.contextMenuPending||!U.state.focused||fr(ie)&&!oe&&!this.composing||U.isReadOnly()||U.options.disableInput||U.state.keySeq)return!1;var de=ie.value;if(de==oe&&!U.somethingSelected())return!1;if(d&&u>=9&&this.hasSelection===de||g&&/[\uf700-\uf7ff]/.test(de))return U.display.input.reset(),!1;if(U.doc.sel==U.display.selForContextMenu){var Be=de.charCodeAt(0);if(Be==8203&&!oe&&(oe="\u200B"),Be==8666)return this.reset(),this.cm.execCommand("undo")}for(var At=0,Kt=Math.min(oe.length,de.length);At<Kt&&oe.charCodeAt(At)==de.charCodeAt(At);)++At;return _o(U,function(){ut(U,de.slice(At),oe.length-At,null,N.composing?"*compose":null),de.length>1e3||de.indexOf(`
`)>-1?ie.value=N.prevInput="":N.prevInput=de,N.composing&&(N.composing.range.clear(),N.composing.range=U.markText(N.composing.start,U.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oa.prototype.onKeyPress=function(){d&&u>=9&&(this.hasSelection=null),this.fastPoll()},oa.prototype.onContextMenu=function(N){var U=this,ie=U.cm,oe=ie.display,de=U.textarea;U.contextMenuPending&&U.contextMenuPending();var Be=go(ie,N),At=oe.scroller.scrollTop;if(!Be||a)return;var Kt=ie.options.resetSelectionOnContextMenu;Kt&&ie.doc.sel.contains(Be)==-1&&Mo(ie,Ls)(ie.doc,ha(Be),se);var rr=de.style.cssText,pr=U.wrapper.style.cssText,Tn=U.wrapper.offsetParent.getBoundingClientRect();U.wrapper.style.cssText="position: static",de.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(N.clientY-Tn.top-5)+"px; left: "+(N.clientX-Tn.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 zn;o&&(zn=window.scrollY),oe.input.focus(),o&&window.scrollTo(null,zn),oe.input.reset(),ie.somethingSelected()||(de.value=U.prevInput=" "),U.contextMenuPending=di,oe.selForContextMenu=ie.doc.sel,clearTimeout(oe.detectingSelectAll);function li(){if(de.selectionStart!=null){var fa=ie.somethingSelected(),Ta="\u200B"+(fa?de.value:"");de.value="\u21DA",de.value=Ta,U.prevInput=fa?"":"\u200B",de.selectionStart=1,de.selectionEnd=Ta.length,oe.selForContextMenu=ie.doc.sel}}function di(){if(U.contextMenuPending!=di)return;if(U.contextMenuPending=!1,U.wrapper.style.cssText=pr,de.style.cssText=rr,d&&u<9&&oe.scrollbars.setScrollTop(oe.scroller.scrollTop=At),de.selectionStart!=null){(!d||d&&u<9)&&li();var fa=0,Ta=function ba(){oe.selForContextMenu==ie.doc.sel&&de.selectionStart==0&&de.selectionEnd>0&&U.prevInput=="\u200B"?Mo(ie,gs)(ie):fa++<10?oe.detectingSelectAll=setTimeout(ba,500):(oe.selForContextMenu=null,oe.input.reset())};oe.detectingSelectAll=setTimeout(Ta,200)}}if(d&&u>=9&&li(),T){ur(N);var Ki=function fa(){Ve(window,"mouseup",fa),setTimeout(di,20)};ke(window,"mouseup",Ki)}else setTimeout(di,50)},oa.prototype.readOnlyChanged=function(N){N||this.reset(),this.textarea.disabled=N=="nocursor",this.textarea.readOnly=!!N},oa.prototype.setUneditable=function(){},oa.prototype.needsContentAttribute=!1;function $a(N,U){if(U=U?H(U):{},U.value=N.value,!U.tabindex&&N.tabIndex&&(U.tabindex=N.tabIndex),!U.placeholder&&N.placeholder&&(U.placeholder=N.placeholder),U.autofocus==null){var ie=P();U.autofocus=ie==N||N.getAttribute("autofocus")!=null&&ie==document.body}function oe(){N.value=Kt.getValue()}var de;if(N.form&&(ke(N.form,"submit",oe),!U.leaveSubmitMethodAlone)){var Be=N.form;de=Be.submit;try{var At=Be.submit=function(){oe(),Be.submit=de,Be.submit(),Be.submit=At}}catch(rr){}}U.finishInit=function(rr){rr.save=oe,rr.getTextArea=function(){return N},rr.toTextArea=function(){rr.toTextArea=isNaN,oe(),N.parentNode.removeChild(rr.getWrapperElement()),N.style.display="",N.form&&(Ve(N.form,"submit",oe),!U.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=de))}},N.style.display="none";var Kt=Cr(function(rr){return N.parentNode.insertBefore(rr,N.nextSibling)},U);return Kt}function ja(N){N.off=Ve,N.on=ke,N.wheelEventPixels=gn,N.Doc=dl,N.splitLines=pn,N.countColumn=V,N.findColumn=Te,N.isWordChar=Z,N.Pass=q,N.signal=Ot,N.Line=qn,N.changeEnd=Pa,N.scrollbarModel=ss,N.Pos=Nt,N.cmpPos=ot,N.modes=sr,N.mimeModes=Qr,N.resolveMode=ti,N.getMode=ki,N.modeExtensions=Dn,N.extendMode=Bn,N.copyState=Ft,N.startState=_e,N.innerMode=vt,N.commands=ou,N.keyMap=Yl,N.keyName=vu,N.isModifierKey=gu,N.lookupKey=Ql,N.normalizeKeyMap=Nu,N.StringStream=Ne,N.SharedTextMarker=tu,N.TextMarker=cl,N.LineWidget=ul,N.e_preventDefault=mt,N.e_stopPropagation=or,N.e_stop=ur,N.addClass=X,N.contains=B,N.rmClass=E,N.keyNames=Ml}Ke(Cr),kr(Cr);var Io="iter insert remove copy getEditor constructor".split(" ");for(var Vo in dl.prototype)dl.prototype.hasOwnProperty(Vo)&&G(Io,Vo)<0&&(Cr.prototype[Vo]=function(N){return function(){return N.apply(this.doc,arguments)}}(dl.prototype[Vo]));return Sr(dl),Cr.inputStyles={textarea:oa,contenteditable:rn},Cr.defineMode=function(N){!Cr.defaults.mode&&N!="null"&&(Cr.defaults.mode=N),Cn.apply(this,arguments)},Cr.defineMIME=Fn,Cr.defineMode("null",function(){return{token:function(U){return U.skipToEnd()}}}),Cr.defineMIME("text/plain","null"),Cr.defineExtension=function(N,U){Cr.prototype[N]=U},Cr.defineDocExtension=function(N,U){dl.prototype[N]=U},Cr.fromTextArea=$a,ja(Cr),Cr.version="5.58.2",Cr})},Vy0f:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("iYpf"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},W2nI:function(k,D,i){var y=i("IwbS"),p=i("ProS"),S=i("bYtY"),v=["itemStyle","opacity"],m=["emphasis","itemStyle","opacity"],f=["lineStyle","opacity"],d=["emphasis","lineStyle","opacity"];function u(l,r){return l.getVisual("opacity")||l.getModel().get(r)}function o(l,r,s){var c=l.getGraphicEl(),h=u(l,r);s!=null&&(h==null&&(h=1),h*=s),c.downplay&&c.downplay(),c.traverse(function(g){g.type!=="group"&&g.setStyle("opacity",h)})}function n(l,r){var s=u(l,r),c=l.getGraphicEl();c.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",s)}),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,r){var s=r.extent;l.moveTo(r.x1,r.y1),l.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(l.lineTo(r.x2+s,r.y2),l.bezierCurveTo(r.cpx2+s,r.cpy2,r.cpx1+s,r.cpy1,r.x1+s,r.y1)):(l.lineTo(r.x2,r.y2+s),l.bezierCurveTo(r.cpx2,r.cpy2+s,r.cpx1,r.cpy1+s,r.x1,r.y1+s)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),a=p.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,r,s){var c=this,h=l.getGraph(),g=this.group,A=l.layoutInfo,b=A.width,w=A.height,x=l.getData(),T=l.getData("edge"),_=l.get("orient");this._model=l,g.removeAll(),g.attr("position",[A.x,A.y]),h.eachEdge(function(E){var C=new t;C.dataIndex=E.dataIndex,C.seriesIndex=l.seriesIndex,C.dataType="edge";var I=E.getModel("lineStyle"),O=I.get("curveness"),F=E.node1.getLayout(),R=E.node1.getModel(),B=R.get("localX"),P=R.get("localY"),X=E.node2.getLayout(),M=E.node2.getModel(),z=M.get("localX"),W=M.get("localY"),H=E.getLayout(),V,Q,G,ee,q,se,re,Ae;C.shape.extent=Math.max(1,H.dy),C.shape.orient=_,_==="vertical"?(V=(B!=null?B*b:F.x)+H.sy,Q=(P!=null?P*w:F.y)+F.dy,G=(z!=null?z*b:X.x)+H.ty,ee=W!=null?W*w:X.y,q=V,se=Q*(1-O)+ee*O,re=G,Ae=Q*O+ee*(1-O)):(V=(B!=null?B*b:F.x)+F.dx,Q=(P!=null?P*w:F.y)+H.sy,G=z!=null?z*b:X.x,ee=(W!=null?W*w:X.y)+H.ty,q=V*(1-O)+G*O,se=Q,re=V*O+G*(1-O),Ae=ee),C.setShape({x1:V,y1:Q,x2:G,y2:ee,cpx1:q,cpy1:se,cpx2:re,cpy2:Ae}),C.setStyle(I.getItemStyle());switch(C.style.fill){case"source":C.style.fill=E.node1.getVisual("color");break;case"target":C.style.fill=E.node2.getVisual("color");break}y.setHoverStyle(C,E.getModel("emphasis.lineStyle").getItemStyle()),g.add(C),T.setItemGraphicEl(E.dataIndex,C)}),h.eachNode(function(E){var C=E.getLayout(),I=E.getModel(),O=I.get("localX"),F=I.get("localY"),R=I.getModel("label"),B=I.getModel("emphasis.label"),P=new y.Rect({shape:{x:O!=null?O*b:C.x,y:F!=null?F*w:C.y,width:C.dx,height:C.dy},style:I.getModel("itemStyle").getItemStyle()}),X=E.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(P.style,X,R,B,{labelFetcher:l,labelDataIndex:E.dataIndex,defaultText:E.id,isRectText:!0}),P.setStyle("fill",E.getVisual("color")),y.setHoverStyle(P,X),g.add(P),x.setItemGraphicEl(E.dataIndex,P),P.dataType="node"}),x.eachItemGraphicEl(function(E,C){var I=x.getItemModel(C);I.get("draggable")&&(E.drift=function(O,F){c._focusAdjacencyDisabled=!0,this.shape.x+=O,this.shape.y+=F,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:x.getRawIndex(C),localX:this.shape.x/b,localY:this.shape.y/w})},E.ondragend=function(){c._focusAdjacencyDisabled=!1},E.draggable=!0,E.cursor="move"),E.highlight=function(){this.trigger("emphasis")},E.downplay=function(){this.trigger("normal")},E.focusNodeAdjHandler&&E.off("mouseover",E.focusNodeAdjHandler),E.unfocusNodeAdjHandler&&E.off("mouseout",E.unfocusNodeAdjHandler),I.get("focusNodeAdjacency")&&(E.on("mouseover",E.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:E.dataIndex}))}),E.on("mouseout",E.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),T.eachItemGraphicEl(function(E,C){var I=T.getItemModel(C);E.focusNodeAdjHandler&&E.off("mouseover",E.focusNodeAdjHandler),E.unfocusNodeAdjHandler&&E.off("mouseout",E.unfocusNodeAdjHandler),I.get("focusNodeAdjacency")&&(E.on("mouseover",E.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:E.dataIndex}))}),E.on("mouseout",E.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),!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 r=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){r._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:r._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,r,s,c){var h=l.getData(),g=h.graph,A=c.dataIndex,b=h.getItemModel(A),w=c.edgeDataIndex;if(A==null&&w==null)return;var x=g.getNodeByIndex(A),T=g.getEdgeByIndex(w);if(g.eachNode(function(E){o(E,v,.1)}),g.eachEdge(function(E){o(E,f,.1)}),x){n(x,m);var _=b.get("focusNodeAdjacency");_==="outEdges"?S.each(x.outEdges,function(E){if(E.dataIndex<0)return;n(E,d),n(E.node2,m)}):_==="inEdges"?S.each(x.inEdges,function(E){if(E.dataIndex<0)return;n(E,d),n(E.node1,m)}):_==="allEdges"&&S.each(x.edges,function(E){if(E.dataIndex<0)return;n(E,d),E.node1!==x&&n(E.node1,m),E.node2!==x&&n(E.node2,m)})}T&&(n(T,d),n(T.node1,m),n(T.node2,m))},unfocusNodeAdjacency:function(l,r,s,c){var h=l.getGraph();h.eachNode(function(g){o(g,v)}),h.eachEdge(function(g){o(g,f)})}});function e(l,r,s){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}},r,s),c}k.exports=a},W4dC:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=S.each,m=S.createHashMap,f=i("7DRL"),d=i("TIY9"),u=i("yS9w"),o=i("mFDi"),n={geoJSON:d,svg:u},t={load:function(r,s,c){var h=[],g=m(),A=m(),b,w=l(r);return v(w,function(x){var T=n[x.type].load(r,x,c);v(T.regions,function(E){var C=E.name;s&&s.hasOwnProperty(C)&&(E=E.cloneShallow(C=s[C])),h.push(E),g.set(C,E),A.set(C,E.center)});var _=T.boundingRect;_&&(b?b.union(_):b=_.clone())}),{regions:h,regionsMap:g,nameCoordMap:A,boundingRect:b||new o(0,0,0,0)}},makeGraphic:a("makeGraphic"),removeGraphic:a("removeGraphic")};function a(r){return function(s,c){var h=l(s),g=[];return v(h,function(A){var b=n[A.type][r];b&&g.push(b(s,A,c))}),g}}function e(r){}function l(r){var s=f.retrieveMap(r)||[];return s}k.exports=t},WGYa:function(k,D,i){var y=i("7yuC"),p=y.forceLayout,S=i("HF/U"),v=S.simpleLayout,m=i("lOQZ"),f=m.circularLayout,d=i("OELB"),u=d.linearMap,o=i("QBsz"),n=i("bYtY");function t(a){a.eachSeriesByType("graph",function(e){var l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var r=e.preservedPoints||{},s=e.getGraph(),c=s.data,h=s.edgeData,g=e.getModel("force"),A=g.get("initLayout");e.preservedPoints?c.each(function(R){var B=c.getId(R);c.setItemLayout(R,r[B]||[NaN,NaN])}):!A||A==="none"?v(e):A==="circular"&&f(e,"value");var b=c.getDataExtent("value"),w=h.getDataExtent("value"),x=g.get("repulsion"),T=g.get("edgeLength");n.isArray(x)||(x=[x,x]),n.isArray(T)||(T=[T,T]),T=[T[1],T[0]];var _=c.mapArray("value",function(R,B){var P=c.getItemLayout(B),X=u(R,b,x);return isNaN(X)&&(X=(x[0]+x[1])/2),{w:X,rep:X,fixed:c.getItemModel(B).get("fixed"),p:!P||isNaN(P[0])||isNaN(P[1])?null:P}}),E=h.mapArray("value",function(R,B){var P=s.getEdgeByIndex(B),X=u(R,w,T);isNaN(X)&&(X=(T[0]+T[1])/2);var M=P.getModel();return{n1:_[P.node1.dataIndex],n2:_[P.node2.dataIndex],d:X,curveness:M.get("lineStyle.curveness")||0,ignoreForceLayout:M.get("ignoreForceLayout")}}),l=e.coordinateSystem,C=l.getBoundingRect(),I=p(_,E,{rect:C,gravity:g.get("gravity"),friction:g.get("friction")}),O=I.step;I.step=function(R){for(var B=0,P=_.length;B<P;B++)_[B].fixed&&o.copy(_[B].p,s.getNodeByIndex(B).getLayout());O(function(X,M,z){for(var W=0,H=X.length;W<H;W++)X[W].fixed||s.getNodeByIndex(W).setLayout(X[W].p),r[c.getId(W)]=X[W].p;for(var W=0,H=M.length;W<H;W++){var V=M[W],Q=s.getEdgeByIndex(W),G=V.n1.p,ee=V.n2.p,q=Q.getLayout();q=q?q.slice():[],q[0]=q[0]||[],q[1]=q[1]||[],o.copy(q[0],G),o.copy(q[1],ee),+V.curveness&&(q[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(q)}R&&R(z)})},e.forceLayout=I,e.preservedPoints=r,I.step()}else e.forceLayout=null})}k.exports=t},"WN+l":function(k,D,i){var y=i("bYtY"),p=i("IwbS");function S(m,f,d,u){var o=d.axis;if(o.scale.isBlank())return;var n=d.getModel("splitArea"),t=n.getModel("areaStyle"),a=t.get("color"),e=u.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:n,clamp:!0});if(!l.length)return;var r=a.length,s=m.__splitAreaColors,c=y.createHashMap(),h=0;if(s)for(var g=0;g<l.length;g++){var A=s.get(l[g].tickValue);if(A!=null){h=(A+(r-1)*g)%r;break}}var b=o.toGlobalCoord(l[0].coord),w=t.getAreaStyle();a=y.isArray(a)?a:[a];for(var g=1;g<l.length;g++){var x=o.toGlobalCoord(l[g].coord),T,_,E,C;o.isHorizontal()?(T=b,_=e.y,E=x-T,C=e.height,b=T+E):(T=e.x,_=b,E=e.width,C=x-_,b=_+C);var I=l[g-1].tickValue;I!=null&&c.set(I,h),f.add(new p.Rect({anid:I!=null?"area_"+I:null,shape:{x:T,y:_,width:E,height:C},style:y.defaults({fill:a[h]},w),silent:!0})),h=(h+1)%r}m.__splitAreaColors=c}function v(m){m.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=S,D.rectCoordAxisHandleRemove=v},WXVj:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("Bqw1")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="MinusSquareOutlined";var n=v.forwardRef(o);D.default=n},WYAk:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){(function(){var p=y,S=p.lib,v=S.Base,m=p.enc,f=m.Utf8,d=p.algo,u=d.HMAC=v.extend({init:function(n,t){n=this._hasher=new n.init,typeof t=="string"&&(t=f.parse(t));var a=n.blockSize,e=a*4;t.sigBytes>e&&(t=n.finalize(t)),t.clamp();for(var l=this._oKey=t.clone(),r=this._iKey=t.clone(),s=l.words,c=r.words,h=0;h<a;h++)s[h]^=1549556828,c[h]^=909522486;l.sigBytes=r.sigBytes=e,this.reset()},reset:function(){var n=this._hasher;n.reset(),n.update(this._iKey)},update:function(n){return this._hasher.update(n),this},finalize:function(n){var t=this._hasher,a=t.finalize(n);t.reset();var e=t.finalize(this._oKey.clone().concat(a));return e}})})()})},Wqna:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=S.isObject,m=S.each,f=S.map,d=S.indexOf,u=S.retrieve,o=i("+TT/"),n=o.getLayoutRect,t=i("aX7z"),a=t.createScaleByModel,e=t.ifAxisCrossZero,l=t.niceScaleExtent,r=t.estimateLabelUnionRect,s=i("y+lR"),c=i("7AJT"),h=i("IDmD"),g=i("7hqr"),A=g.getStackedDimension;i("jtI2");function b(R,B,P){return R.getCoordSysModel()===B}function w(R,B,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(R,B,P),this.model=R}var x=w.prototype;x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(R,B){var P=this._axesMap;this._updateScale(R,this.model),m(P.x,function(M){l(M.scale,M.model)}),m(P.y,function(M){l(M.scale,M.model)});var X={};m(P.x,function(M){T(P,"y",M,X)}),m(P.y,function(M){T(P,"x",M,X)}),this.resize(this.model,B)};function T(R,B,P,X){P.getAxesOnZeroOf=function(){return z?[z]:[]};var M=R[B],z,W=P.model,H=W.get("axisLine.onZero"),V=W.get("axisLine.onZeroAxisIndex");if(!H)return;if(V!=null)_(M[V])&&(z=M[V]);else for(var Q in M)if(M.hasOwnProperty(Q)&&_(M[Q])&&!X[G(M[Q])]){z=M[Q];break}z&&(X[G(z)]=!0);function G(ee){return ee.dim+"_"+ee.index}}function _(R){return R&&R.type!=="category"&&R.type!=="time"&&e(R)}x.resize=function(R,B,P){var X=n(R.getBoxLayoutParams(),{width:B.getWidth(),height:B.getHeight()});this._rect=X;var M=this._axesList;z(),!P&&R.get("containLabel")&&(m(M,function(W){if(!W.model.get("axisLabel.inside")){var H=r(W);if(H){var V=W.isHorizontal()?"height":"width",Q=W.model.get("axisLabel.margin");X[V]-=H[V]+Q,W.position==="top"?X.y+=H.height+Q:W.position==="left"&&(X.x+=H.width+Q)}}}),z());function z(){m(M,function(W){var H=W.isHorizontal(),V=H?[0,X.width]:[0,X.height],Q=W.inverse?1:0;W.setExtent(V[Q],V[1-Q]),E(W,H?X.x:X.y)})}},x.getAxis=function(R,B){var P=this._axesMap[R];if(P!=null){if(B==null){for(var X in P)if(P.hasOwnProperty(X))return P[X]}return P[B]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(R,B){if(R!=null&&B!=null){var P="x"+R+"y"+B;return this._coordsMap[P]}v(R)&&(B=R.yAxisIndex,R=R.xAxisIndex);for(var X=0,M=this._coordsList;X<M.length;X++)if(M[X].getAxis("x").index===R||M[X].getAxis("y").index===B)return M[X]},x.getCartesians=function(){return this._coordsList.slice()},x.convertToPixel=function(R,B,P){var X=this._findConvertTarget(R,B);return X.cartesian?X.cartesian.dataToPoint(P):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(P)):null},x.convertFromPixel=function(R,B,P){var X=this._findConvertTarget(R,B);return X.cartesian?X.cartesian.pointToData(P):X.axis?X.axis.coordToData(X.axis.toLocalCoord(P)):null},x._findConvertTarget=function(R,B){var P=B.seriesModel,X=B.xAxisModel||P&&P.getReferringComponents("xAxis")[0],M=B.yAxisModel||P&&P.getReferringComponents("yAxis")[0],z=B.gridModel,W=this._coordsList,H,V;if(P)H=P.coordinateSystem,d(W,H)<0&&(H=null);else if(X&&M)H=this.getCartesian(X.componentIndex,M.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(M)V=this.getAxis("y",M.componentIndex);else if(z){var Q=z.coordinateSystem;Q===this&&(H=this._coordsList[0])}return{cartesian:H,axis:V}},x.containPoint=function(R){var B=this._coordsList[0];if(B)return B.containPoint(R)},x._initCartesian=function(R,B,P){var X={left:!1,right:!1,top:!1,bottom:!1},M={x:{},y:{}},z={x:0,y:0};if(B.eachComponent("xAxis",W("x"),this),B.eachComponent("yAxis",W("y"),this),!z.x||!z.y){this._axesMap={},this._axesList=[];return}this._axesMap=M,m(M.x,function(H,V){m(M.y,function(Q,G){var ee="x"+V+"y"+G,q=new s(ee);q.grid=this,q.model=R,this._coordsMap[ee]=q,this._coordsList.push(q),q.addAxis(H),q.addAxis(Q)},this)},this);function W(H){return function(V,Q){if(!b(V,R,B))return;var G=V.get("position");H==="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(H,a(V),[0,0],V.get("type"),G),q=ee.type==="category";ee.onBand=q&&V.get("boundaryGap"),ee.inverse=V.get("inverse"),V.axis=ee,ee.model=V,ee.grid=this,ee.index=Q,this._axesList.push(ee),M[H][Q]=ee,z[H]++}}},x._updateScale=function(R,B){m(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),R.eachSeries(function(X){if(O(X)){var M=I(X,R),z=M[0],W=M[1];if(!b(z,B,R)||!b(W,B,R))return;var H=this.getCartesian(z.componentIndex,W.componentIndex),V=X.getData(),Q=H.getAxis("x"),G=H.getAxis("y");V.type==="list"&&(P(V,Q,X),P(V,G,X))}},this);function P(X,M,z){m(X.mapDimension(M.dim,!0),function(W){M.scale.unionExtentFromData(X,A(X,W))})}},x.getTooltipAxes=function(R){var B=[],P=[];return m(this.getCartesians(),function(X){var M=R!=null&&R!=="auto"?X.getAxis(R):X.getBaseAxis(),z=X.getOtherAxis(M);d(B,M)<0&&B.push(M),d(P,z)<0&&P.push(z)}),{baseAxes:B,otherAxes:P}};function E(R,B){var P=R.getExtent(),X=P[0]+P[1];R.toGlobalCoord=R.dim==="x"?function(M){return M+B}:function(M){return X-M+B},R.toLocalCoord=R.dim==="x"?function(M){return M-B}:function(M){return X-M+B}}var C=["xAxis","yAxis"];function I(R,B){return f(C,function(P){var X=R.getReferringComponents(P)[0];return X})}function O(R){return R.get("coordinateSystem")==="cartesian2d"}w.create=function(R,B){var P=[];return R.eachComponent("grid",function(X,M){var z=new w(X,R,B);z.name="grid_"+M,z.resize(X,B,!0),X.coordinateSystem=z,P.push(z)}),R.eachSeries(function(X){if(!O(X))return;var M=I(X,R),z=M[0],W=M[1],H=z.getCoordSysModel(),V=H.coordinateSystem;X.coordinateSystem=V.getCartesian(z.componentIndex,W.componentIndex)}),P},w.dimensions=w.prototype.dimensions=s.prototype.dimensions,h.register("cartesian2d",w);var F=w;k.exports=F},"X+im":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("KQeH")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DownloadOutlined";var n=v.forwardRef(o);D.default=n},"X2/X":function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},XAae:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("hwYd"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},XOKv:function(k,D,i){i("OXB0"),i("SA4+")},Xi7e:function(k,D,i){var y=i("KMkd"),p=i("adU4"),S=i("tMB7"),v=i("+6XX"),m=i("Z8oC");function f(d){var u=-1,o=d==null?0:d.length;for(this.clear();++u<o;){var n=d[u];this.set(n[0],n[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=S,f.prototype.has=v,f.prototype.set=m,k.exports=f},Xmg4:function(k,D,i){var y=i("bYtY"),p=i("LPTA"),S=p.devicePixelRatio,v=i("K2GJ"),m=i("3C/r");function f(){return!1}function d(n,t,a){var e=y.createCanvas(),l=t.getWidth(),r=t.getHeight(),s=e.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=l+"px",s.height=r+"px",e.setAttribute("data-zr-dom-id",n)),e.width=l*a,e.height=r*a,e}var u=function(t,a,e){var l;e=e||S,typeof t=="string"?l=d(t,a,e):y.isObject(t)&&(l=t,t=l.id),this.id=t,this.dom=l;var r=l.style;r&&(l.onselectstart=f,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,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,a){var e=this.dpr,l=this.dom,r=l.style,s=this.domBack;r&&(r.width=t+"px",r.height=a+"px"),l.width=t*e,l.height=a*e,s&&(s.width=t*e,s.height=a*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,a){var e=this.dom,l=this.ctx,r=e.width,s=e.height,a=a||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,r/g,s/g)),l.clearRect(0,0,r,s),a&&a!=="transparent"){var A;a.colorStops?(A=a.__canvasGradient||v.getGradient(l,a,{x:0,y:0,width:r,height:s}),a.__canvasGradient=A):a.image&&(A=m.prototype.getCanvasPattern.call(a,l)),l.save(),l.fillStyle=A||a,l.fillRect(0,0,r,s),l.restore()}if(c){var b=this.domBack;l.save(),l.globalAlpha=h,l.drawImage(b,0,0,r,s),l.restore()}}};var o=u;k.exports=o},Xnb7:function(k,D,i){var y=i("1RvN"),p=new y(50);function S(d){if(typeof d=="string"){var u=p.get(d);return u&&u.image}else return d}function v(d,u,o,n,t){if(d)if(typeof d=="string"){if(u&&u.__zrImageSrc===d||!o)return u;var a=p.get(d),e={hostEl:o,cb:n,cbPayload:t};return a?(u=a.image,!f(u)&&a.pending.push(e)):(u=new Image,u.onload=u.onerror=m,p.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 o=d.pending[u],n=o.cb;n&&n(this,o.cbPayload),o.hostEl.dirty()}d.pending.length=0}function f(d){return d&&d.width&&d.height}D.findExistImage=S,D.createOrUpdateImage=v,D.isImageReady=f},XpcN:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("oVpE"),f=m.createSymbol,d=i("IwbS"),u=i("eRkO"),o=u.makeBackground,n=i("+TT/"),t=v.curry,a=v.each,e=d.Group,l=S.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,A,b){var w=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!g.get("show",!0))return;var x=g.get("align"),T=g.get("orient");(!x||x==="auto")&&(x=g.get("left")==="right"&&T==="vertical"?"right":"left");var _=g.get("selector",!0),E=g.get("selectorPosition",!0);_&&(!E||E==="auto")&&(E=T==="horizontal"?"end":"start"),this.renderInner(x,g,A,b,_,T,E);var C=g.getBoxLayoutParams(),I={width:b.getWidth(),height:b.getHeight()},O=g.get("padding"),F=n.getLayoutRect(C,I,O),R=this.layoutInner(g,x,F,w,_,E),B=n.getLayoutRect(v.defaults({width:R.width,height:R.height},C),I,O);this.group.attr("position",[B.x-R.x,B.y-R.y]),this.group.add(this._backgroundEl=o(R,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,A,b,w,x,T,_){var E=this.getContentGroup(),C=v.createHashMap(),I=A.get("selectedMode"),O=[];b.eachRawSeries(function(F){!F.get("legendHoverLink")&&O.push(F.id)}),a(A.getData(),function(F,R){var B=F.get("name");if(!this.newlineDisabled&&(B===""||B===`
`)){E.add(new e({newline:!0}));return}var P=b.getSeriesByName(B)[0];if(C.get(B))return;if(P){var X=P.getData(),M=X.getVisual("color"),z=X.getVisual("borderColor");typeof M=="function"&&(M=M(P.getDataParams(0))),typeof z=="function"&&(z=z(P.getDataParams(0)));var W=X.getVisual("legendSymbol")||"roundRect",H=X.getVisual("symbol"),V=this._createItem(B,R,F,A,W,H,g,M,z,I);V.on("click",t(s,B,null,w,O)).on("mouseover",t(c,P.name,null,w,O)).on("mouseout",t(h,P.name,null,w,O)),C.set(B,!0)}else b.eachRawSeries(function(Q){if(C.get(B))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(B))return;var ee=G.indexOfName(B),q=G.getItemVisual(ee,"color"),se=G.getItemVisual(ee,"borderColor"),re="roundRect",Ae=this._createItem(B,R,F,A,re,null,g,q,se,I);Ae.on("click",t(s,null,B,w,O)).on("mouseover",t(c,null,B,w,O)).on("mouseout",t(h,null,B,w,O)),C.set(B,!0)}},this)},this),x&&this._createSelector(x,A,w,T,_)},_createSelector:function(g,A,b,w,x){var T=this.getSelectorGroup();a(g,function(E){_(E)});function _(E){var C=E.type,I=new d.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:C==="all"?"legendAllSelect":"legendInverseSelect"})}});T.add(I);var O=A.getModel("selectorLabel"),F=A.getModel("emphasis.selectorLabel");d.setLabelStyle(I.style,I.hoverStyle={},O,F,{defaultText:E.title,isRectText:!1}),d.setHoverStyle(I)}},_createItem:function(g,A,b,w,x,T,_,E,C,I){var O=w.get("itemWidth"),F=w.get("itemHeight"),R=w.get("inactiveColor"),B=w.get("inactiveBorderColor"),P=w.get("symbolKeepAspect"),X=w.getModel("itemStyle"),M=w.isSelected(g),z=new e,W=b.getModel("textStyle"),H=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;x=H||x;var G=f(x,0,0,O,F,M?E:R,P==null?!0:P);if(z.add(r(G,x,X,C,B,M)),!H&&T&&(T!==x||T==="none")){var ee=F*.8;T==="none"&&(T="circle");var q=f(T,(O-ee)/2,(F-ee)/2,ee,ee,M?E:R,P==null?!0:P);z.add(r(q,T,X,C,B,M))}var se=_==="left"?O+5:-5,re=_,Ae=w.get("formatter"),Te=g;typeof Ae=="string"&&Ae?Te=Ae.replace("{name}",g!=null?g:""):typeof Ae=="function"&&(Te=Ae(g)),z.add(new d.Text({style:d.setTextStyle({},W,{text:Te,x:se,y:F/2,textFill:M?W.getTextColor():R,textAlign:re,textVerticalAlign:"middle"})}));var Re=new d.Rect({shape:z.getBoundingRect(),invisible:!0,tooltip:V.get("show")?v.extend({content:g,formatter:Q.get("formatter",!0)||function(){return g},formatterParams:{componentType:"legend",legendIndex:w.componentIndex,name:g,$vars:["name"]}},V.option):null});return z.add(Re),z.eachChild(function(Ge){Ge.silent=!0}),Re.silent=!I,this.getContentGroup().add(z),d.setHoverStyle(z),z.__legendDataIndex=A,z},layoutInner:function(g,A,b,w,x,T){var _=this.getContentGroup(),E=this.getSelectorGroup();n.box(g.get("orient"),_,g.get("itemGap"),b.width,b.height);var C=_.getBoundingRect(),I=[-C.x,-C.y];if(x){n.box("horizontal",E,g.get("selectorItemGap",!0));var O=E.getBoundingRect(),F=[-O.x,-O.y],R=g.get("selectorButtonGap",!0),B=g.getOrient().index,P=B===0?"width":"height",X=B===0?"height":"width",M=B===0?"y":"x";T==="end"?F[B]+=C[P]+R:I[B]+=O[P]+R,F[1-B]+=C[X]/2-O[X]/2,E.attr("position",F),_.attr("position",I);var z={x:0,y:0};return z[P]=C[P]+R+O[P],z[X]=Math.max(C[X],O[X]),z[M]=Math.min(0,O[M]+F[1-B]),z}else return _.attr("position",I),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(g,A,b,w,x,T){var _;return A!=="line"&&A.indexOf("empty")<0?(_=b.getItemStyle(),g.style.stroke=w,T||(_.stroke=x)):_=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(_)}function s(g,A,b,w){h(g,A,b,w),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:A}),c(g,A,b,w)}function c(g,A,b,w){var x=b.getZr().storage.getDisplayList()[0];x&&x.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:A,excludeSeriesId:w})}function h(g,A,b,w){var x=b.getZr().storage.getDisplayList()[0];x&&x.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:A,excludeSeriesId:w})}k.exports=l},XuBP:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},XxSj:function(k,D,i){var y=i("bYtY"),p=i("Qe9p"),S=i("OELB"),v=S.linearMap,m=y.each,f=y.isObject,d=-1,u=function(T){var _=T.mappingMethod,E=T.type,C=this.option=y.clone(T);this.type=E,this.mappingMethod=_,this._normalizeData=b[_];var I=o[E];this.applyVisual=I.applyVisual,this.getColorMapper=I.getColorMapper,this._doMap=I._doMap[_],_==="piecewise"?(a(C),n(C)):_==="category"?C.categories?t(C):a(C,!0):(y.assert(_!=="linear"||C.dataExtent),a(C))};u.prototype={constructor:u,mapValueToVisual:function(T){var _=this._normalizeData(T);return this._doMap(_,T)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var o=u.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var T=this.option;return y.bind(T.mappingMethod==="category"?function(_,E){return!E&&(_=this._normalizeData(_)),s.call(this,_)}:function(_,E,C){var I=!!C;return!E&&(_=this._normalizeData(_)),C=p.fastLerp(_,T.parsedVisual,C),I?C:p.stringify(C,"rgba")},this)},_doMap:{linear:function(T){return p.stringify(p.fastLerp(T,this.option.parsedVisual),"rgba")},category:s,piecewise:function(T,_){var E=g.call(this,_);return E==null&&(E=p.stringify(p.fastLerp(T,this.option.parsedVisual),"rgba")),E},fixed:c}},colorHue:e(function(T,_){return p.modifyHSL(T,_)}),colorSaturation:e(function(T,_){return p.modifyHSL(T,null,_)}),colorLightness:e(function(T,_){return p.modifyHSL(T,null,null,_)}),colorAlpha:e(function(T,_){return p.modifyAlpha(T,_)}),opacity:{applyVisual:r("opacity"),_doMap:h([0,1])},liftZ:{applyVisual:r("liftZ"),_doMap:{linear:c,category:c,piecewise:c,fixed:c}},symbol:{applyVisual:function(T,_,E){var C=this.mapValueToVisual(T);if(y.isString(C))E("symbol",C);else if(f(C))for(var I in C)C.hasOwnProperty(I)&&E(I,C[I])},_doMap:{linear:l,category:s,piecewise:function(T,_){var E=g.call(this,_);return E==null&&(E=l.call(this,T)),E},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:h([0,1])}};function n(T){var _=T.pieceList;T.hasSpecialVisual=!1,y.each(_,function(E,C){E.originIndex=C,E.visual!=null&&(T.hasSpecialVisual=!0)})}function t(T){var _=T.categories,E=T.visual,C=T.categoryMap={};if(m(_,function(F,R){C[F]=R}),!y.isArray(E)){var I=[];y.isObject(E)?m(E,function(F,R){var B=C[R];I[B!=null?B:d]=F}):I[d]=E,E=A(T,I)}for(var O=_.length-1;O>=0;O--)E[O]==null&&(delete C[_[O]],_.pop())}function a(T,_){var E=T.visual,C=[];y.isObject(E)?m(E,function(O){C.push(O)}):E!=null&&C.push(E);var I={color:1,symbol:1};!_&&C.length===1&&!I.hasOwnProperty(T.type)&&(C[1]=C[0]),A(T,C)}function e(T){return{applyVisual:function(_,E,C){_=this.mapValueToVisual(_),C("color",T(E("color"),_))},_doMap:h([0,1])}}function l(T){var _=this.option.visual;return _[Math.round(v(T,[0,1],[0,_.length-1],!0))]||{}}function r(T){return function(_,E,C){C(T,this.mapValueToVisual(_))}}function s(T){var _=this.option.visual;return _[this.option.loop&&T!==d?T%_.length:T]}function c(){return this.option.visual[0]}function h(T){return{linear:function(_){return v(_,T,this.option.visual,!0)},category:s,piecewise:function(_,E){var C=g.call(this,E);return C==null&&(C=v(_,T,this.option.visual,!0)),C},fixed:c}}function g(T){var _=this.option,E=_.pieceList;if(_.hasSpecialVisual){var C=u.findPieceIndex(T,E),I=E[C];if(I&&I.visual)return I.visual[this.type]}}function A(T,_){return T.visual=_,T.type==="color"&&(T.parsedVisual=y.map(_,function(E){return p.parse(E)})),_}var b={linear:function(T){return v(T,this.option.dataExtent,[0,1],!0)},piecewise:function(T){var _=this.option.pieceList,E=u.findPieceIndex(T,_,!0);if(E!=null)return v(E,[0,_.length-1],[0,1],!0)},category:function(T){var _=this.option.categories?this.option.categoryMap[T]:T;return _==null?d:_},fixed:y.noop};u.listVisualTypes=function(){var T=[];return y.each(o,function(_,E){T.push(E)}),T},u.addVisualHandler=function(T,_){o[T]=_},u.isValidType=function(T){return o.hasOwnProperty(T)},u.eachVisual=function(T,_,E){y.isObject(T)?y.each(T,_,E):_.call(E,T)},u.mapVisual=function(T,_,E){var C,I=y.isArray(T)?[]:y.isObject(T)?{}:(C=!0,null);return u.eachVisual(T,function(O,F){var R=_.call(E,O,F);C?I=R:I[F]=R}),I},u.retrieveVisuals=function(T){var _={},E;return T&&m(o,function(C,I){T.hasOwnProperty(I)&&(_[I]=T[I],E=!0)}),E?_:null},u.prepareVisualTypes=function(T){if(f(T)){var _=[];m(T,function(E,C){_.push(C)}),T=_}else if(y.isArray(T))T=T.slice();else return[];return T.sort(function(E,C){return C==="color"&&E!=="color"&&E.indexOf("color")===0?1:-1}),T},u.dependsOn=function(T,_){return _==="color"?!!(T&&T.indexOf(_)===0):T===_},u.findPieceIndex=function(T,_,E){for(var C,I=Infinity,O=0,F=_.length;O<F;O++){var R=_[O].value;if(R!=null){if(R===T||typeof R=="string"&&R===T+"")return O;E&&M(R,O)}}for(var O=0,F=_.length;O<F;O++){var B=_[O],P=B.interval,X=B.close;if(P){if(P[0]===-Infinity){if(w(X[1],T,P[1]))return O}else if(P[1]===Infinity){if(w(X[0],P[0],T))return O}else if(w(X[0],P[0],T)&&w(X[1],T,P[1]))return O;E&&M(P[0],O),E&&M(P[1],O)}}if(E)return T===Infinity?_.length-1:T===-Infinity?0:C;function M(z,W){var H=Math.abs(z-T);H<I&&(I=H,C=W)}};function w(T,_,E){return T?_<=E:_<E}var x=u;k.exports=x},XzQk:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("KpQ+"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"Y+p1":function(k,D,i){var y=i("wF/u");function p(S,v){return y(S,v)}k.exports=p},Y1PL:function(k,D,i){"use strict";i.r(D),i.d(D,"ResizableTextArea",function(){return x});var y=i("wx14"),p=i("1OyB"),S=i("vuIU"),v=i("Ji7U"),m=i("LK+K"),f=i("q1tI"),d=i("VTBJ"),u=i("rePB"),o=i("t23M"),n=i("bT9E"),t=i("TSYQ"),a=i.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"],r={},s;function c(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=E.getAttribute("id")||E.getAttribute("data-reactid")||E.getAttribute("name");if(C&&r[I])return r[I];var O=window.getComputedStyle(E),F=O.getPropertyValue("box-sizing")||O.getPropertyValue("-moz-box-sizing")||O.getPropertyValue("-webkit-box-sizing"),R=parseFloat(O.getPropertyValue("padding-bottom"))+parseFloat(O.getPropertyValue("padding-top")),B=parseFloat(O.getPropertyValue("border-bottom-width"))+parseFloat(O.getPropertyValue("border-top-width")),P=l.map(function(M){return"".concat(M,":").concat(O.getPropertyValue(M))}).join(";"),X={sizingStyle:P,paddingSize:R,borderSize:B,boxSizing:F};return C&&I&&(r[I]=X),X}function h(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s)),E.getAttribute("wrap")?s.setAttribute("wrap",E.getAttribute("wrap")):s.removeAttribute("wrap");var F=c(E,C),R=F.paddingSize,B=F.borderSize,P=F.boxSizing,X=F.sizingStyle;s.setAttribute("style","".concat(X,";").concat(e)),s.value=E.value||E.placeholder||"";var M=Number.MIN_SAFE_INTEGER,z=Number.MAX_SAFE_INTEGER,W=s.scrollHeight,H;if(P==="border-box"?W+=B:P==="content-box"&&(W-=R),I!==null||O!==null){s.value=" ";var V=s.scrollHeight-R;I!==null&&(M=V*I,P==="border-box"&&(M=M+R+B),W=Math.max(M,W)),O!==null&&(z=V*O,P==="border-box"&&(z=z+R+B),H=W>z?"":"hidden",W=Math.min(z,W))}return{height:W,minHeight:M,maxHeight:z,overflowY:H,resize:"none"}}var g=i("Gytx"),A=i.n(g),b;(function(E){E[E.NONE=0]="NONE",E[E.RESIZING=1]="RESIZING",E[E.RESIZED=2]="RESIZED"})(b||(b={}));var w=function(E){Object(v.a)(I,E);var C=Object(m.a)(I);function I(O){var F;return Object(p.a)(this,I),F=C.call(this,O),F.nextFrameActionId=void 0,F.resizeFrameId=void 0,F.textArea=void 0,F.saveTextArea=function(R){F.textArea=R},F.handleResize=function(R){var B=F.state.resizeStatus,P=F.props,X=P.autoSize,M=P.onResize;if(B!==b.NONE)return;typeof M=="function"&&M(R),X&&F.resizeOnNextFrame()},F.resizeOnNextFrame=function(){cancelAnimationFrame(F.nextFrameActionId),F.nextFrameActionId=requestAnimationFrame(F.resizeTextarea)},F.resizeTextarea=function(){var R=F.props.autoSize;if(!R||!F.textArea)return;var B=R.minRows,P=R.maxRows,X=h(F.textArea,!1,B,P);F.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(F.resizeFrameId),F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:b.RESIZED},function(){F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:b.NONE}),F.fixFirefoxAutoScroll()})})})})},F.renderTextArea=function(){var R=F.props,B=R.prefixCls,P=B===void 0?"rc-textarea":B,X=R.autoSize,M=R.onResize,z=R.className,W=R.disabled,H=F.state,V=H.textareaStyles,Q=H.resizeStatus,G=Object(n.a)(F.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ee=a()(P,z,Object(u.a)({},"".concat(P,"-disabled"),W));"value"in G&&(G.value=G.value||"");var q=Object(d.a)(Object(d.a)(Object(d.a)({},F.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(o.a,{onResize:F.handleResize,disabled:!(X||M)},f.createElement("textarea",Object(y.a)({},G,{className:ee,style:q,ref:F.saveTextArea})))},F.state={textareaStyles:{},resizeStatus:b.NONE},F}return Object(S.a)(I,[{key:"componentDidUpdate",value:function(F){(F.value!==this.props.value||!A()(F.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 F=this.textArea.selectionStart,R=this.textArea.selectionEnd;this.textArea.setSelectionRange(F,R)}}catch(B){}}},{key:"render",value:function(){return this.renderTextArea()}}]),I}(f.Component),x=w,T=function(E){Object(v.a)(I,E);var C=Object(m.a)(I);function I(O){var F;Object(p.a)(this,I),F=C.call(this,O),F.resizableTextArea=void 0,F.focus=function(){F.resizableTextArea.textArea.focus()},F.saveTextArea=function(B){F.resizableTextArea=B},F.handleChange=function(B){var P=F.props.onChange;F.setValue(B.target.value,function(){F.resizableTextArea.resizeTextarea()}),P&&P(B)},F.handleKeyDown=function(B){var P=F.props,X=P.onPressEnter,M=P.onKeyDown;B.keyCode===13&&X&&X(B),M&&M(B)};var R=typeof O.value=="undefined"||O.value===null?O.defaultValue:O.value;return F.state={value:R},F}return Object(S.a)(I,[{key:"setValue",value:function(F,R){"value"in this.props||this.setState({value:F},R)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(x,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(F){return"value"in F?{value:F.value}:null}}]),I}(f.Component),_=D.default=T},YESw:function(k,D,i){var y=i("Cwc5"),p=y(Object,"create");k.exports=p},YH21:function(k,D,i){var y=i("H6uX");D.Dispatcher=y;var p=i("ItGF"),S=i("Ze12"),v=S.isCanvasEl,m=S.transformCoordWithViewport,f=typeof window!="undefined"&&!!window.addEventListener,d=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function o(h,g,A,b){return A=A||{},b||!p.canvasSupported?n(h,g,A):p.browser.firefox&&g.layerX!=null&&g.layerX!==g.offsetX?(A.zrX=g.layerX,A.zrY=g.layerY):g.offsetX!=null?(A.zrX=g.offsetX,A.zrY=g.offsetY):n(h,g,A),A}function n(h,g,A){if(p.domSupported&&h.getBoundingClientRect){var b=g.clientX,w=g.clientY;if(v(h)){var x=h.getBoundingClientRect();A.zrX=b-x.left,A.zrY=w-x.top;return}else if(m(u,h,b,w)){A.zrX=u[0],A.zrY=u[1];return}}A.zrX=A.zrY=0}function t(h){return h||window.event}function a(h,g,A){if(g=t(g),g.zrX!=null)return g;var b=g.type,w=b&&b.indexOf("touch")>=0;if(!w)o(h,g,g,A),g.zrDelta=g.wheelDelta?g.wheelDelta/120:-(g.detail||0)/3;else{var x=b!=="touchend"?g.targetTouches[0]:g.changedTouches[0];x&&o(h,x,g,A)}var T=g.button;return g.which==null&&T!==void 0&&d.test(g.type)&&(g.which=T&1?1:T&2?3:T&4?2:0),g}function e(h,g,A,b){f?h.addEventListener(g,A,b):h.attachEvent("on"+g,A)}function l(h,g,A,b){f?h.removeEventListener(g,A,b):h.detachEvent("on"+g,A)}var r=f?function(h){h.preventDefault(),h.stopPropagation(),h.cancelBubble=!0}:function(h){h.returnValue=!1,h.cancelBubble=!0};function s(h){return h.which===2||h.which===3}function c(h){return h.which>1}D.clientToLocal=o,D.getNativeEvent=t,D.normalizeEvent=a,D.addEventListener=e,D.removeEventListener=l,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=s,D.notLeftMouse=c},YJ9k:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var d=0;d<f.length;d++){var u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m),this._listeners=new Map}return S(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(o){return o.call(u,d)}),!d.defaultPrevented):!0}}]),m}();D.default=v},YJCA:function(k,D,i){"use strict";i.d(D,"a",function(){return ne}),i.d(D,"b",function(){return Ee});var y=i("wx14"),p=i("ODXe"),S=i("vpQ4"),v=i("1OyB"),m=i("vuIU"),f=i("md7G"),d=i("foSv"),u=i("Ji7U"),o=i("JX7q"),n=i("rePB"),t=i("q1tI"),a=i.n(t),e=i("17x9"),l=i.n(e),r=i("i8i4"),s=i.n(r),c=i("QLaP"),h=i.n(c),g=i("KQm4"),A=function(){function Ce(){Object(v.a)(this,Ce),Object(n.a)(this,"refs",{})}return Object(m.a)(Ce,[{key:"add",value:function(ge,Oe){this.refs[ge]||(this.refs[ge]=[]),this.refs[ge].push(Oe)}},{key:"remove",value:function(ge,Oe){var Je=this.getIndex(ge,Oe);Je!==-1&&this.refs[ge].splice(Je,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var ge=this;return this.refs[this.active.collection].find(function(Oe){var Je=Oe.node;return Je.sortableInfo.index==ge.active.index})}},{key:"getIndex",value:function(ge,Oe){return this.refs[ge].indexOf(Oe)}},{key:"getOrderedRefs",value:function(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[ge].sort(b)}}]),Ce}();function b(Ce,ue){var ge=Ce.node.sortableInfo.index,Oe=ue.node.sortableInfo.index;return ge-Oe}function w(Ce,ue,ge){return Ce=Ce.slice(),Ce.splice(ge<0?Ce.length+ge:ge,0,Ce.splice(ue,1)[0]),Ce}function x(Ce,ue){return Object.keys(Ce).reduce(function(ge,Oe){return ue.indexOf(Oe)===-1&&(ge[Oe]=Ce[Oe]),ge},{})}var T={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Ce=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ue=(Array.prototype.slice.call(Ce).join("").match(/-(moz|webkit|ms)-/)||Ce.OLink===""&&["","o"])[1];switch(ue){case"ms":return"ms";default:return ue&&ue.length?ue[0].toUpperCase()+ue.substr(1):""}}();function E(Ce,ue){Object.keys(ue).forEach(function(ge){Ce.style[ge]=ue[ge]})}function C(Ce,ue){Ce.style["".concat(_,"Transform")]=ue==null?"":"translate3d(".concat(ue.x,"px,").concat(ue.y,"px,0)")}function I(Ce,ue){Ce.style["".concat(_,"TransitionDuration")]=ue==null?"":"".concat(ue,"ms")}function O(Ce,ue){for(;Ce;){if(ue(Ce))return Ce;Ce=Ce.parentNode}return null}function F(Ce,ue,ge){return Math.max(Ce,Math.min(ge,ue))}function R(Ce){return Ce.substr(-2)==="px"?parseFloat(Ce):0}function B(Ce){var ue=window.getComputedStyle(Ce);return{bottom:R(ue.marginBottom),left:R(ue.marginLeft),right:R(ue.marginRight),top:R(ue.marginTop)}}function P(Ce,ue){var ge=ue.displayName||ue.name;return ge?"".concat(Ce,"(").concat(ge,")"):Ce}function X(Ce,ue){var ge=Ce.getBoundingClientRect();return{top:ge.top+ue.top,left:ge.left+ue.left}}function M(Ce){return Ce.touches&&Ce.touches.length?{x:Ce.touches[0].pageX,y:Ce.touches[0].pageY}:Ce.changedTouches&&Ce.changedTouches.length?{x:Ce.changedTouches[0].pageX,y:Ce.changedTouches[0].pageY}:{x:Ce.pageX,y:Ce.pageY}}function z(Ce){return Ce.touches&&Ce.touches.length||Ce.changedTouches&&Ce.changedTouches.length}function W(Ce,ue){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Ce)return;var Oe={left:ge.left+Ce.offsetLeft,top:ge.top+Ce.offsetTop};return Ce.parentNode===ue?Oe:W(Ce.parentNode,ue,Oe)}function H(Ce,ue,ge){return Ce<ge&&Ce>ue?Ce-1:Ce>ge&&Ce<ue?Ce+1:Ce}function V(Ce){var ue=Ce.lockOffset,ge=Ce.width,Oe=Ce.height,Je=ue,lt=ue,tt="px";if(typeof ue=="string"){var ke=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(ue);h()(ke!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',ue),Je=parseFloat(ue),lt=parseFloat(ue),tt=ke[1]}return h()(isFinite(Je)&&isFinite(lt),"lockOffset value should be a finite. Given %s",ue),tt==="%"&&(Je=Je*ge/100,lt=lt*Oe/100),{x:Je,y:lt}}function Q(Ce){var ue=Ce.height,ge=Ce.width,Oe=Ce.lockOffset,Je=Array.isArray(Oe)?Oe:[Oe,Oe];h()(Je.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Oe);var lt=Object(p.a)(Je,2),tt=lt[0],ke=lt[1];return[V({height:ue,lockOffset:tt,width:ge}),V({height:ue,lockOffset:ke,width:ge})]}function G(Ce){var ue=window.getComputedStyle(Ce),ge=/(auto|scroll)/,Oe=["overflow","overflowX","overflowY"];return Oe.find(function(Je){return ge.test(ue[Je])})}function ee(Ce){return Ce instanceof HTMLElement?G(Ce)?Ce:ee(Ce.parentNode):null}function q(Ce){var ue=window.getComputedStyle(Ce);return ue.display==="grid"?{x:R(ue.gridColumnGap),y:R(ue.gridRowGap)}:{x:0,y:0}}var se={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},re={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Ae(Ce){var ue="input, textarea, select, canvas, [contenteditable]",ge=Ce.querySelectorAll(ue),Oe=Ce.cloneNode(!0),Je=Object(g.a)(Oe.querySelectorAll(ue));return Je.forEach(function(lt,tt){if(lt.type!=="file"&&(lt.value=ge[tt].value),lt.type==="radio"&&lt.name&&(lt.name="__sortableClone__".concat(lt.name)),lt.tagName===re.Canvas&&ge[tt].width>0&&ge[tt].height>0){var ke=lt.getContext("2d");ke.drawImage(ge[tt],0,0)}}),Oe}function Te(Ce){var ue,ge,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ge=ue=function(Je){Object(u.a)(lt,Je);function lt(){return Object(v.a)(this,lt),Object(f.a)(this,Object(d.a)(lt).apply(this,arguments))}return Object(m.a)(lt,[{key:"componentDidMount",value:function(){var ke=Object(r.findDOMNode)(this);ke.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return h()(Oe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var ke=Oe.withRef?"wrappedInstance":null;return Object(t.createElement)(Ce,Object(y.a)({ref:ke},this.props))}}]),lt}(t.Component),Object(n.a)(ue,"displayName",P("sortableHandle",Ce)),ge}function Re(Ce){return Ce.sortableHandle!=null}var Ge=function(){function Ce(ue,ge){Object(v.a)(this,Ce),this.container=ue,this.onScrollCallback=ge}return Object(m.a)(Ce,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(ge){var Oe=this,Je=ge.translate,lt=ge.minTranslate,tt=ge.maxTranslate,ke=ge.width,st=ge.height,Ve={x:0,y:0},Ot={x:1,y:1},Ut={x:10,y:10},ir=this.container,lr=ir.scrollTop,Sr=ir.scrollLeft,mt=ir.scrollHeight,or=ir.scrollWidth,et=ir.clientHeight,ur=ir.clientWidth,qr=lr===0,Fe=mt-lr-et===0,$t=Sr===0,Lr=or-Sr-ur===0;Je.y>=tt.y-st/2&&!Fe?(Ve.y=1,Ot.y=Ut.y*Math.abs((tt.y-st/2-Je.y)/st)):Je.x>=tt.x-ke/2&&!Lr?(Ve.x=1,Ot.x=Ut.x*Math.abs((tt.x-ke/2-Je.x)/ke)):Je.y<=lt.y+st/2&&!qr?(Ve.y=-1,Ot.y=Ut.y*Math.abs((Je.y-st/2-lt.y)/st)):Je.x<=lt.x+ke/2&&!$t&&(Ve.x=-1,Ot.x=Ut.x*Math.abs((Je.x-ke/2-lt.x)/ke)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(Ve.x!==0||Ve.y!==0)&&(this.interval=setInterval(function(){Oe.isAutoScrolling=!0;var pt={left:Ot.x*Ve.x,top:Ot.y*Ve.y};Oe.container.scrollTop+=pt.top,Oe.container.scrollLeft+=pt.left,Oe.onScrollCallback(pt)},5))}}]),Ce}();function Ue(Ce){var ue=Ce.node;return{height:ue.offsetHeight,width:ue.offsetWidth}}function nt(Ce){var ue=[re.Input,re.Textarea,re.Select,re.Option,re.Button];return ue.indexOf(Ce.target.tagName)!==-1?!0:!!O(Ce.target,function(ge){return ge.contentEditable==="true"})}var Le={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},le={lift:[se.SPACE],drop:[se.SPACE],cancel:[se.ESC],up:[se.UP,se.LEFT],down:[se.DOWN,se.RIGHT]},Xe={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ue,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:le,shouldCancelStart:nt,transitionDuration:300,useWindowAsScrollContainer:!1},pe=Object.keys(Le);function Z(Ce){h()(!(Ce.distance&&Ce.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(Ce,ue){try{var ge=Ce()}catch(Oe){return ue(!0,Oe)}return ge&&ge.then?ge.then(ue.bind(null,!1),ue.bind(null,!0)):ue(!1,value)}function ne(Ce){var ue,ge,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ge=ue=function(Je){Object(u.a)(lt,Je);function lt(tt){var ke;return Object(v.a)(this,lt),ke=Object(f.a)(this,Object(d.a)(lt).call(this,tt)),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"state",{}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handleStart",function(st){var Ve=ke.props,Ot=Ve.distance,Ut=Ve.shouldCancelStart;if(st.button===2||Ut(st))return;ke.touched=!0,ke.position=M(st);var ir=O(st.target,function(ur){return ur.sortableInfo!=null});if(ir&&ir.sortableInfo&&ke.nodeIsChild(ir)&&!ke.state.sorting){var lr=ke.props.useDragHandle,Sr=ir.sortableInfo,mt=Sr.index,or=Sr.collection,et=Sr.disabled;if(et)return;if(lr&&!O(st.target,Re))return;ke.manager.active={collection:or,index:mt},!z(st)&&st.target.tagName===re.Anchor&&st.preventDefault(),Ot||(ke.props.pressDelay===0?ke.handlePress(st):ke.pressTimer=setTimeout(function(){return ke.handlePress(st)},ke.props.pressDelay))}}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"nodeIsChild",function(st){return st.sortableInfo.manager===ke.manager}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handleMove",function(st){var Ve=ke.props,Ot=Ve.distance,Ut=Ve.pressThreshold;if(!ke.state.sorting&&ke.touched&&!ke._awaitingUpdateBeforeSortStart){var ir=M(st),lr={x:ke.position.x-ir.x,y:ke.position.y-ir.y},Sr=Math.abs(lr.x)+Math.abs(lr.y);ke.delta=lr,!Ot&&(!Ut||Sr>=Ut)?(clearTimeout(ke.cancelTimer),ke.cancelTimer=setTimeout(ke.cancel,0)):Ot&&Sr>=Ot&&ke.manager.isActive()&&ke.handlePress(st)}}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handleEnd",function(){ke.touched=!1,ke.cancel()}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"cancel",function(){var st=ke.props.distance,Ve=ke.state.sorting;Ve||(st||clearTimeout(ke.pressTimer),ke.manager.active=null)}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handlePress",function(st){try{var Ve=ke.manager.getActive(),Ot=function(){if(Ve){var Ut=function(){var vr=Fe.sortableInfo.index,pn=B(Fe),fr=q(ke.container),gr=ke.scrollContainer.getBoundingClientRect(),dn=Sr({index:vr,node:Fe,collection:$t});if(ke.node=Fe,ke.margin=pn,ke.gridGap=fr,ke.width=dn.width,ke.height=dn.height,ke.marginOffset={x:ke.margin.left+ke.margin.right+ke.gridGap.x,y:Math.max(ke.margin.top,ke.margin.bottom,ke.gridGap.y)},ke.boundingClientRect=Fe.getBoundingClientRect(),ke.containerBoundingRect=gr,ke.index=vr,ke.newIndex=vr,ke.axis={x:lr.indexOf("x")>=0,y:lr.indexOf("y")>=0},ke.offsetEdge=W(Fe,ke.container),Lr?ke.initialOffset=M(Object(S.a)({},st,{pageX:ke.boundingClientRect.left,pageY:ke.boundingClientRect.top})):ke.initialOffset=M(st),ke.initialScroll={left:ke.scrollContainer.scrollLeft,top:ke.scrollContainer.scrollTop},ke.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},ke.helper=ke.helperContainer.appendChild(Ae(Fe)),E(ke.helper,{boxSizing:"border-box",height:"".concat(ke.height,"px"),left:"".concat(ke.boundingClientRect.left-pn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(ke.boundingClientRect.top-pn.top,"px"),width:"".concat(ke.width,"px")}),Lr&&ke.helper.focus(),or&&(ke.sortableGhost=Fe,E(Fe,{opacity:0,visibility:"hidden"})),ke.minTranslate={},ke.maxTranslate={},Lr){var Qt=qr?{top:0,left:0,width:ke.contentWindow.innerWidth,height:ke.contentWindow.innerHeight}:ke.containerBoundingRect,sr=Qt.top,Qr=Qt.left,Cn=Qt.width,Fn=Qt.height,ti=sr+Fn,ki=Qr+Cn;ke.axis.x&&(ke.minTranslate.x=Qr-ke.boundingClientRect.left,ke.maxTranslate.x=ki-(ke.boundingClientRect.left+ke.width)),ke.axis.y&&(ke.minTranslate.y=sr-ke.boundingClientRect.top,ke.maxTranslate.y=ti-(ke.boundingClientRect.top+ke.height))}else ke.axis.x&&(ke.minTranslate.x=(qr?0:gr.left)-ke.boundingClientRect.left-ke.width/2,ke.maxTranslate.x=(qr?ke.contentWindow.innerWidth:gr.left+gr.width)-ke.boundingClientRect.left-ke.width/2),ke.axis.y&&(ke.minTranslate.y=(qr?0:gr.top)-ke.boundingClientRect.top-ke.height/2,ke.maxTranslate.y=(qr?ke.contentWindow.innerHeight:gr.top+gr.height)-ke.boundingClientRect.top-ke.height/2);mt&&mt.split(" ").forEach(function(Dn){return ke.helper.classList.add(Dn)}),ke.listenerNode=st.touches?Fe:ke.contentWindow,Lr?(ke.listenerNode.addEventListener("wheel",ke.handleKeyEnd,!0),ke.listenerNode.addEventListener("mousedown",ke.handleKeyEnd,!0),ke.listenerNode.addEventListener("keydown",ke.handleKeyDown)):(T.move.forEach(function(Dn){return ke.listenerNode.addEventListener(Dn,ke.handleSortMove,!1)}),T.end.forEach(function(Dn){return ke.listenerNode.addEventListener(Dn,ke.handleSortEnd,!1)})),ke.setState({sorting:!0,sortingIndex:vr}),ur&&ur({node:Fe,index:vr,collection:$t,isKeySorting:Lr,nodes:ke.manager.getOrderedRefs(),helper:ke.helper},st),Lr&&ke.keyMove(0)},ir=ke.props,lr=ir.axis,Sr=ir.getHelperDimensions,mt=ir.helperClass,or=ir.hideSortableGhost,et=ir.updateBeforeSortStart,ur=ir.onSortStart,qr=ir.useWindowAsScrollContainer,Fe=Ve.node,$t=Ve.collection,Lr=ke.manager.isKeySorting,pt=function(){if(typeof et=="function"){ke._awaitingUpdateBeforeSortStart=!0;var qt=Y(function(){var vr=Fe.sortableInfo.index;return Promise.resolve(et({collection:$t,index:vr,node:Fe,isKeySorting:Lr},st)).then(function(){})},function(vr,pn){if(ke._awaitingUpdateBeforeSortStart=!1,vr)throw pn;return pn});if(qt&&qt.then)return qt.then(function(){})}}();return pt&&pt.then?pt.then(Ut):Ut(pt)}}();return Promise.resolve(Ot&&Ot.then?Ot.then(function(){}):void 0)}catch(Ut){return Promise.reject(Ut)}}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handleSortMove",function(st){var Ve=ke.props.onSortMove;typeof st.preventDefault=="function"&&st.preventDefault(),ke.updateHelperPosition(st),ke.animateNodes(),ke.autoscroll(),Ve&&Ve(st)}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handleSortEnd",function(st){var Ve=ke.props,Ot=Ve.hideSortableGhost,Ut=Ve.onSortEnd,ir=ke.manager,lr=ir.active.collection,Sr=ir.isKeySorting,mt=ke.manager.getOrderedRefs();ke.listenerNode&&(Sr?(ke.listenerNode.removeEventListener("wheel",ke.handleKeyEnd,!0),ke.listenerNode.removeEventListener("mousedown",ke.handleKeyEnd,!0),ke.listenerNode.removeEventListener("keydown",ke.handleKeyDown)):(T.move.forEach(function(Fe){return ke.listenerNode.removeEventListener(Fe,ke.handleSortMove)}),T.end.forEach(function(Fe){return ke.listenerNode.removeEventListener(Fe,ke.handleSortEnd)}))),ke.helper.parentNode.removeChild(ke.helper),Ot&&ke.sortableGhost&&E(ke.sortableGhost,{opacity:"",visibility:""});for(var or=0,et=mt.length;or<et;or++){var ur=mt[or],qr=ur.node;ur.edgeOffset=null,ur.boundingClientRect=null,C(qr,null),I(qr,null),ur.translate=null}ke.autoScroller.clear(),ke.manager.active=null,ke.manager.isKeySorting=!1,ke.setState({sorting:!1,sortingIndex:null}),typeof Ut=="function"&&Ut({collection:lr,newIndex:ke.newIndex,oldIndex:ke.index,isKeySorting:Sr,nodes:mt},st),ke.touched=!1}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"autoscroll",function(){var st=ke.props.disableAutoscroll,Ve=ke.manager.isKeySorting;if(st){ke.autoScroller.clear();return}if(Ve){var Ot=Object(S.a)({},ke.translate),Ut=0,ir=0;ke.axis.x&&(Ot.x=Math.min(ke.maxTranslate.x,Math.max(ke.minTranslate.x,ke.translate.x)),Ut=ke.translate.x-Ot.x),ke.axis.y&&(Ot.y=Math.min(ke.maxTranslate.y,Math.max(ke.minTranslate.y,ke.translate.y)),ir=ke.translate.y-Ot.y),ke.translate=Ot,C(ke.helper,ke.translate),ke.scrollContainer.scrollLeft+=Ut,ke.scrollContainer.scrollTop+=ir;return}ke.autoScroller.update({height:ke.height,maxTranslate:ke.maxTranslate,minTranslate:ke.minTranslate,translate:ke.translate,width:ke.width})}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"onAutoScroll",function(st){ke.translate.x+=st.left,ke.translate.y+=st.top,ke.animateNodes()}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handleKeyDown",function(st){var Ve=st.keyCode,Ot=ke.props,Ut=Ot.shouldCancelStart,ir=Ot.keyCodes,lr=ir===void 0?{}:ir,Sr=Object(S.a)({},le,lr);if(ke.manager.active&&!ke.manager.isKeySorting||!ke.manager.active&&(!Sr.lift.includes(Ve)||Ut(st)||!ke.isValidSortingTarget(st)))return;st.stopPropagation(),st.preventDefault(),Sr.lift.includes(Ve)&&!ke.manager.active?ke.keyLift(st):Sr.drop.includes(Ve)&&ke.manager.active?ke.keyDrop(st):Sr.cancel.includes(Ve)?(ke.newIndex=ke.manager.active.index,ke.keyDrop(st)):Sr.up.includes(Ve)?ke.keyMove(-1):Sr.down.includes(Ve)&&ke.keyMove(1)}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"keyLift",function(st){var Ve=st.target,Ot=O(Ve,function(Sr){return Sr.sortableInfo!=null}),Ut=Ot.sortableInfo,ir=Ut.index,lr=Ut.collection;ke.initialFocusedNode=Ve,ke.manager.isKeySorting=!0,ke.manager.active={index:ir,collection:lr},ke.handlePress(st)}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"keyMove",function(st){var Ve=ke.manager.getOrderedRefs(),Ot=Ve[Ve.length-1].node.sortableInfo.index,Ut=ke.newIndex+st,ir=ke.newIndex;if(Ut<0||Ut>Ot)return;ke.prevIndex=ir,ke.newIndex=Ut;var lr=H(ke.newIndex,ke.prevIndex,ke.index),Sr=Ve.find(function(Lr){var pt=Lr.node;return pt.sortableInfo.index===lr}),mt=Sr.node,or=ke.containerScrollDelta,et=Sr.boundingClientRect||X(mt,or),ur=Sr.translate||{x:0,y:0},qr={top:et.top+ur.y-or.top,left:et.left+ur.x-or.left},Fe=ir<Ut,$t={x:Fe&&ke.axis.x?mt.offsetWidth-ke.width:0,y:Fe&&ke.axis.y?mt.offsetHeight-ke.height:0};ke.handleSortMove({pageX:qr.left+$t.x,pageY:qr.top+$t.y,ignoreTransition:st===0})}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"keyDrop",function(st){ke.handleSortEnd(st),ke.initialFocusedNode&&ke.initialFocusedNode.focus()}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"handleKeyEnd",function(st){ke.manager.active&&ke.keyDrop(st)}),Object(n.a)(Object(o.a)(Object(o.a)(ke)),"isValidSortingTarget",function(st){var Ve=ke.props.useDragHandle,Ot=st.target,Ut=O(Ot,function(ir){return ir.sortableInfo!=null});return Ut&&Ut.sortableInfo&&!Ut.sortableInfo.disabled&&(Ve?Re(Ot):Ot.sortableInfo)}),Z(tt),ke.manager=new A,ke.events={end:ke.handleEnd,move:ke.handleMove,start:ke.handleStart},ke}return Object(m.a)(lt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var ke=this,st=this.props.useWindowAsScrollContainer,Ve=this.getContainer();Promise.resolve(Ve).then(function(Ot){ke.container=Ot,ke.document=ke.container.ownerDocument||document;var Ut=ke.props.contentWindow||ke.document.defaultView||window;ke.contentWindow=typeof Ut=="function"?Ut():Ut,ke.scrollContainer=st?ke.document.scrollingElement||ke.document.documentElement:ee(ke.container)||ke.container,ke.autoScroller=new Ge(ke.scrollContainer,ke.onAutoScroll),Object.keys(ke.events).forEach(function(ir){return T[ir].forEach(function(lr){return ke.container.addEventListener(lr,ke.events[ir],!1)})}),ke.container.addEventListener("keydown",ke.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var ke=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(st){return T[st].forEach(function(Ve){return ke.container.removeEventListener(Ve,ke.events[st])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(ke){var st=this.props,Ve=st.lockAxis,Ot=st.lockOffset,Ut=st.lockToContainerEdges,ir=st.transitionDuration,lr=st.keyboardSortingTransitionDuration,Sr=lr===void 0?ir:lr,mt=this.manager.isKeySorting,or=ke.ignoreTransition,et=M(ke),ur={x:et.x-this.initialOffset.x,y:et.y-this.initialOffset.y};if(ur.y-=window.pageYOffset-this.initialWindowScroll.top,ur.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=ur,Ut){var qr=Q({height:this.height,lockOffset:Ot,width:this.width}),Fe=Object(p.a)(qr,2),$t=Fe[0],Lr=Fe[1],pt={x:this.width/2-$t.x,y:this.height/2-$t.y},qt={x:this.width/2-Lr.x,y:this.height/2-Lr.y};ur.x=F(this.minTranslate.x+pt.x,this.maxTranslate.x-qt.x,ur.x),ur.y=F(this.minTranslate.y+pt.y,this.maxTranslate.y-qt.y,ur.y)}Ve==="x"?ur.y=0:Ve==="y"&&(ur.x=0),mt&&Sr&&!or&&I(this.helper,Sr),C(this.helper,ur)}},{key:"animateNodes",value:function(){var ke=this.props,st=ke.transitionDuration,Ve=ke.hideSortableGhost,Ot=ke.onSortOver,Ut=this.containerScrollDelta,ir=this.windowScrollDelta,lr=this.manager.getOrderedRefs(),Sr={left:this.offsetEdge.left+this.translate.x+Ut.left,top:this.offsetEdge.top+this.translate.y+Ut.top},mt=this.manager.isKeySorting,or=this.newIndex;this.newIndex=null;for(var et=0,ur=lr.length;et<ur;et++){var qr=lr[et].node,Fe=qr.sortableInfo.index,$t=qr.offsetWidth,Lr=qr.offsetHeight,pt={height:this.height>Lr?Lr/2:this.height/2,width:this.width>$t?$t/2:this.width/2},qt=mt&&Fe>this.index&&Fe<=or,vr=mt&&Fe<this.index&&Fe>=or,pn={x:0,y:0},fr=lr[et].edgeOffset;fr||(fr=W(qr,this.container),lr[et].edgeOffset=fr,mt&&(lr[et].boundingClientRect=X(qr,Ut)));var gr=et<lr.length-1&&lr[et+1],dn=et>0&&lr[et-1];if(gr&&!gr.edgeOffset&&(gr.edgeOffset=W(gr.node,this.container),mt&&(gr.boundingClientRect=X(gr.node,Ut))),Fe===this.index){Ve&&(this.sortableGhost=qr,E(qr,{opacity:0,visibility:"hidden"}));continue}st&&I(qr,st),this.axis.x?this.axis.y?vr||Fe<this.index&&(Sr.left+ir.left-pt.width<=fr.left&&Sr.top+ir.top<=fr.top+pt.height||Sr.top+ir.top+pt.height<=fr.top)?(pn.x=this.width+this.marginOffset.x,fr.left+pn.x>this.containerBoundingRect.width-pt.width&&(gr&&(pn.x=gr.edgeOffset.left-fr.left,pn.y=gr.edgeOffset.top-fr.top)),this.newIndex===null&&(this.newIndex=Fe)):(qt||Fe>this.index&&(Sr.left+ir.left+pt.width>=fr.left&&Sr.top+ir.top+pt.height>=fr.top||Sr.top+ir.top+pt.height>=fr.top+Lr))&&(pn.x=-(this.width+this.marginOffset.x),fr.left+pn.x<this.containerBoundingRect.left+pt.width&&(dn&&(pn.x=dn.edgeOffset.left-fr.left,pn.y=dn.edgeOffset.top-fr.top)),this.newIndex=Fe):qt||Fe>this.index&&Sr.left+ir.left+pt.width>=fr.left?(pn.x=-(this.width+this.marginOffset.x),this.newIndex=Fe):(vr||Fe<this.index&&Sr.left+ir.left<=fr.left+pt.width)&&(pn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=Fe)):this.axis.y&&(qt||Fe>this.index&&Sr.top+ir.top+pt.height>=fr.top?(pn.y=-(this.height+this.marginOffset.y),this.newIndex=Fe):(vr||Fe<this.index&&Sr.top+ir.top<=fr.top+pt.height)&&(pn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=Fe))),C(qr,pn),lr[et].translate=pn}this.newIndex==null&&(this.newIndex=this.index),mt&&(this.newIndex=or);var Qt=mt?this.prevIndex:or;Ot&&this.newIndex!==Qt&&Ot({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Qt,isKeySorting:mt,nodes:lr,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return h()(Oe.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 ke=this.props.getContainer;return typeof ke!="function"?Object(r.findDOMNode)(this):ke(Oe.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var ke=Oe.withRef?"wrappedInstance":null;return Object(t.createElement)(Ce,Object(y.a)({ref:ke},x(this.props,pe)))}},{key:"helperContainer",get:function(){var ke=this.props.helperContainer;return typeof ke=="function"?ke():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var ke=this.props.useWindowAsScrollContainer;return ke?{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}}}]),lt}(t.Component),Object(n.a)(ue,"displayName",P("sortableList",Ce)),Object(n.a)(ue,"defaultProps",Xe),Object(n.a)(ue,"propTypes",Le),Object(n.a)(ue,"childContextTypes",{manager:l.a.object.isRequired}),ge}var ce={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},ye=Object.keys(ce);function Ee(Ce){var ue,ge,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ge=ue=function(Je){Object(u.a)(lt,Je);function lt(){return Object(v.a)(this,lt),Object(f.a)(this,Object(d.a)(lt).apply(this,arguments))}return Object(m.a)(lt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(ke){this.node&&(ke.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),ke.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),ke.collection!==this.props.collection&&(this.unregister(ke.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var ke=this.props,st=ke.collection,Ve=ke.disabled,Ot=ke.index,Ut=Object(r.findDOMNode)(this);Ut.sortableInfo={collection:st,disabled:Ve,index:Ot,manager:this.context.manager},this.node=Ut,this.ref={node:Ut},this.context.manager.add(st,this.ref)}},{key:"unregister",value:function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(ke,this.ref)}},{key:"getWrappedInstance",value:function(){return h()(Oe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var ke=Oe.withRef?"wrappedInstance":null;return Object(t.createElement)(Ce,Object(y.a)({ref:ke},x(this.props,ye)))}}]),lt}(t.Component),Object(n.a)(ue,"displayName",P("sortableElement",Ce)),Object(n.a)(ue,"contextTypes",{manager:l.a.object.isRequired}),Object(n.a)(ue,"propTypes",ce),Object(n.a)(ue,"defaultProps",{collection:0}),ge}},YNAk:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("QyFq")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretDownFilled";var n=v.forwardRef(o);D.default=n},YNf1:function(k,D,i){var y=i("IwbS"),p=i("6Ic6"),S=.3,v=p.extend({type:"parallel",init:function(){this._dataGroup=new y.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(a,e,l,r){var s=this._dataGroup,c=a.getData(),h=this._data,g=a.coordinateSystem,A=g.dimensions,b=u(a);c.diff(h).add(w).update(x).remove(T).execute();function w(E){var C=d(c,s,E,A,g);o(C,c,E,b)}function x(E,C){var I=h.getItemGraphicEl(C),O=f(c,E,A,g);c.setItemGraphicEl(E,I);var F=r&&r.animation===!1?null:a;y.updateProps(I,{shape:{points:O}},F,E),o(I,c,E,b)}function T(E){var C=h.getItemGraphicEl(E);s.remove(C)}if(!this._initialized){this._initialized=!0;var _=m(g,a,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(_)}this._data=c},incrementalPrepareRender:function(a,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(a,e,l){for(var r=e.getData(),s=e.coordinateSystem,c=s.dimensions,h=u(e),g=a.start;g<a.end;g++){var A=d(r,this._dataGroup,g,c,s);A.incremental=!0,o(A,r,g,h)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(a,e,l){var r=a.model,s=a.getRect(),c=new y.Rect({shape:{x:s.x,y:s.y,width:s.width,height:s.height}}),h=r.get("layout")==="horizontal"?"width":"height";return c.setShape(h,0),y.initProps(c,{shape:{width:s.width,height:s.height}},e,l),c}function f(a,e,l,r){for(var s=[],c=0;c<l.length;c++){var h=l[c],g=a.get(a.mapDimension(h),e);n(g,r.getAxis(h).type)||s.push(r.dataToPoint(g,h))}return s}function d(a,e,l,r,s){var c=f(a,l,r,s),h=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(h),a.setItemGraphicEl(l,h),h}function u(a){var e=a.get("smooth",!0);return e===!0&&(e=S),{lineStyle:a.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:S}}function o(a,e,l,r){var s=r.lineStyle;if(e.hasItemOption){var c=e.getItemModel(l).getModel("lineStyle");s=c.getLineStyle()}a.useStyle(s);var h=a.style;h.fill=null,h.stroke=e.getItemVisual(l,"color"),h.opacity=e.getItemVisual(l,"opacity"),r.smooth&&(a.shape.smooth=r.smooth)}function n(a,e){return e==="category"?a==null:a==null||isNaN(a)}var t=v;k.exports=t},YOMW:function(k,D,i){var y=i("bYtY"),p={get:function(m,f,d){var u=y.clone((S[m]||{})[f]);return d&&y.isArray(u)?u[u.length-1]:u}},S={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]}},v=p;k.exports=v},YXkt:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("Qxkt"),m=i("gPAo"),f=i("7G+c"),d=i("KxfA"),u=d.defaultDimValueGetters,o=d.DefaultDataProvider,n=i("L0Ub"),t=n.summarizeDimensions,a=i("Vi4m"),e=S.isObject,l="undefined",r=-1,s="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,A=typeof Uint16Array===l?Array:Uint16Array;function b(G){return G._rawCount>65535?h:A}function w(G){var ee=G.constructor;return ee===Array?G.slice():new ee(G)}var x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function _(G,ee){S.each(x.concat(ee.__wrappedMethods||[]),function(q){ee.hasOwnProperty(q)&&(G[q]=ee[q])}),G.__wrappedMethods=ee.__wrappedMethods,S.each(T,function(q){G[q]=S.clone(ee[q])}),G._calculationInfo=S.extend(ee._calculationInfo)}var E=function(G,ee){G=G||["x","y"];for(var q={},se=[],re={},Ae=0;Ae<G.length;Ae++){var Te=G[Ae];S.isString(Te)?Te=new a({name:Te}):Te instanceof a||(Te=new a(Te));var Re=Te.name;Te.type=Te.type||"float",Te.coordDim||(Te.coordDim=Re,Te.coordDimIndex=0),Te.otherDims=Te.otherDims||{},se.push(Re),q[Re]=Te,Te.index=Ae,Te.createInvertedIndices&&(re[Re]=[])}this.dimensions=se,this._dimensionInfos=q,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=re,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},C=E.prototype;C.type="list",C.hasItemOption=!0,C.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},C.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},C.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},C.mapDimension=function(G,ee){var q=this._dimensionsSummary;if(ee==null)return q.encodeFirstDimNotExtra[G];var se=q.encode[G];return ee===!0?(se||[]).slice():se&&se[ee]},C.initData=function(G,ee,q){var se=f.isInstance(G)||S.isArrayLike(G);se&&(G=new o(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=ee||[],this._idList=[],this._nameRepeatCount={},q||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=q=q||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},C.getProvider=function(){return this._rawData},C.appendData=function(G){var ee=this._rawData,q=this.count();ee.appendData(G);var se=ee.count();ee.persistent||(se+=q),this._initDataFromProvider(q,se)},C.appendValues=function(G,ee){for(var q=this._chunkSize,se=this._storage,re=this.dimensions,Ae=re.length,Te=this._rawExtent,Re=this.count(),Ge=Re+Math.max(G.length,ee?ee.length:0),Ue=this._chunkCount,nt=0;nt<Ae;nt++){var Le=re[nt];Te[Le]||(Te[Le]=H()),se[Le]||(se[Le]=[]),I(se,this._dimensionInfos[Le],q,Ue,Ge),this._chunkCount=se[Le].length}for(var le=new Array(Ae),Xe=Re;Xe<Ge;Xe++){for(var pe=Xe-Re,Z=Math.floor(Xe/q),Y=Xe%q,ne=0;ne<Ae;ne++){var Le=re[ne],ce=this._dimValueGetterArrayRows(G[pe]||le,Le,pe,ne);se[Le][Z][Y]=ce;var ye=Te[Le];ce<ye[0]&&(ye[0]=ce),ce>ye[1]&&(ye[1]=ce)}ee&&(this._nameList[Xe]=ee[pe])}this._rawCount=this._count=Ge,this._extent={},O(this)},C._initDataFromProvider=function(G,ee){if(G>=ee)return;for(var q=this._chunkSize,se=this._rawData,re=this._storage,Ae=this.dimensions,Te=Ae.length,Re=this._dimensionInfos,Ge=this._nameList,Ue=this._idList,nt=this._rawExtent,Le=this._nameRepeatCount={},le,Xe=this._chunkCount,pe=0;pe<Te;pe++){var Z=Ae[pe];nt[Z]||(nt[Z]=H());var Y=Re[Z];Y.otherDims.itemName===0&&(le=this._nameDimIdx=pe),Y.otherDims.itemId===0&&(this._idDimIdx=pe),re[Z]||(re[Z]=[]),I(re,Y,q,Xe,ee),this._chunkCount=re[Z].length}for(var ne=new Array(Te),ce=G;ce<ee;ce++){ne=se.getItem(ce,ne);for(var ye=Math.floor(ce/q),Ee=ce%q,Ce=0;Ce<Te;Ce++){var Z=Ae[Ce],ue=re[Z][ye],ge=this._dimValueGetter(ne,Z,ce,Ce);ue[Ee]=ge;var Oe=nt[Z];ge<Oe[0]&&(Oe[0]=ge),ge>Oe[1]&&(Oe[1]=ge)}if(!se.pure){var Je=Ge[ce];if(ne&&Je==null){if(ne.name!=null)Ge[ce]=Je=ne.name;else if(le!=null){var lt=Ae[le],tt=re[lt][ye];if(tt){Je=tt[Ee];var ke=Re[lt].ordinalMeta;ke&&ke.categories.length&&(Je=ke.categories[Je])}}}var st=ne==null?null:ne.id;st==null&&Je!=null&&(Le[Je]=Le[Je]||0,st=Je,Le[Je]>0&&(st+="__ec__"+Le[Je]),Le[Je]++),st!=null&&(Ue[ce]=st)}}!se.persistent&&se.clean&&se.clean(),this._rawCount=this._count=ee,this._extent={},O(this)};function I(G,ee,q,se,re){var Ae=c[ee.type],Te=se-1,Re=ee.name,Ge=G[Re][Te];if(Ge&&Ge.length<q){for(var Ue=new Ae(Math.min(re-Te*q,q)),nt=0;nt<Ge.length;nt++)Ue[nt]=Ge[nt];G[Re][Te]=Ue}for(var Le=se*q;Le<re;Le+=q)G[Re].push(new Ae(Math.min(re-Le,q)))}function O(G){var ee=G._invertedIndicesMap;S.each(ee,function(q,se){var re=G._dimensionInfos[se],Ae=re.ordinalMeta;if(Ae){q=ee[se]=new g(Ae.categories.length);for(var Te=0;Te<q.length;Te++)q[Te]=r;for(var Te=0;Te<G._count;Te++)q[G.get(se,Te)]=Te}})}function F(G,ee,q){var se;if(ee!=null){var re=G._chunkSize,Ae=Math.floor(q/re),Te=q%re,Re=G.dimensions[ee],Ge=G._storage[Re][Ae];if(Ge){se=Ge[Te];var Ue=G._dimensionInfos[Re].ordinalMeta;Ue&&Ue.categories.length&&(se=Ue.categories[se])}}return se}C.count=function(){return this._count},C.getIndices=function(){var G,ee=this._indices;if(ee){var q=ee.constructor,se=this._count;if(q===Array){G=new q(se);for(var re=0;re<se;re++)G[re]=ee[re]}else G=new q(ee.buffer,0,se)}else for(var q=b(this),G=new q(this.count()),re=0;re<G.length;re++)G[re]=re;return G},C.get=function(G,ee){if(!(ee>=0&&ee<this._count))return NaN;var q=this._storage;if(!q[G])return NaN;ee=this.getRawIndex(ee);var se=Math.floor(ee/this._chunkSize),re=ee%this._chunkSize,Ae=q[G][se],Te=Ae[re];return Te},C.getByRawIndex=function(G,ee){if(!(ee>=0&&ee<this._rawCount))return NaN;var q=this._storage[G];if(!q)return NaN;var se=Math.floor(ee/this._chunkSize),re=ee%this._chunkSize,Ae=q[se];return Ae[re]},C._getFast=function(G,ee){var q=Math.floor(ee/this._chunkSize),se=ee%this._chunkSize,re=this._storage[G][q];return re[se]},C.getValues=function(G,ee){var q=[];S.isArray(G)||(ee=G,G=this.dimensions);for(var se=0,re=G.length;se<re;se++)q.push(this.get(G[se],ee));return q},C.hasValue=function(G){for(var ee=this._dimensionsSummary.dataDimsOnCoord,q=0,se=ee.length;q<se;q++)if(isNaN(this.get(ee[q],G)))return!1;return!0},C.getDataExtent=function(G){G=this.getDimension(G);var ee=this._storage[G],q=H();if(!ee)return q;var se=this.count(),re=!this._indices,Ae;if(re)return this._rawExtent[G].slice();if(Ae=this._extent[G],Ae)return Ae.slice();Ae=q;for(var Te=Ae[0],Re=Ae[1],Ge=0;Ge<se;Ge++){var Ue=this._getFast(G,this.getRawIndex(Ge));Ue<Te&&(Te=Ue),Ue>Re&&(Re=Ue)}return Ae=[Te,Re],this._extent[G]=Ae,Ae},C.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},C.setApproximateExtent=function(G,ee){ee=this.getDimension(ee),this._approximateExtent[ee]=G.slice()},C.getCalculationInfo=function(G){return this._calculationInfo[G]},C.setCalculationInfo=function(G,ee){e(G)?S.extend(this._calculationInfo,G):this._calculationInfo[G]=ee},C.getSum=function(G){var ee=this._storage[G],q=0;if(ee)for(var se=0,re=this.count();se<re;se++){var Ae=this.get(G,se);isNaN(Ae)||(q+=Ae)}return q},C.getMedian=function(G){var ee=[];this.each(G,function(re,Ae){isNaN(re)||ee.push(re)});var q=[].concat(ee).sort(function(re,Ae){return re-Ae}),se=this.count();return se===0?0:se%2===1?q[(se-1)/2]:(q[se/2]+q[se/2-1])/2},C.rawIndexOf=function(G,ee){var q=G&&this._invertedIndicesMap[G],se=q[ee];return se==null||isNaN(se)?r:se},C.indexOfName=function(G){for(var ee=0,q=this.count();ee<q;ee++)if(this.getName(ee)===G)return ee;return-1},C.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var ee=this._indices,q=ee[G];if(q!=null&&q<this._count&&q===G)return G;for(var se=0,re=this._count-1;se<=re;){var Ae=(se+re)/2|0;if(ee[Ae]<G)se=Ae+1;else if(ee[Ae]>G)re=Ae-1;else return Ae}return-1},C.indicesOfNearest=function(G,ee,q){var se=this._storage,re=se[G],Ae=[];if(!re)return Ae;q==null&&(q=Infinity);for(var Te=Infinity,Re=-1,Ge=0,Ue=0,nt=this.count();Ue<nt;Ue++){var Le=ee-this.get(G,Ue),le=Math.abs(Le);le<=q&&((le<Te||le===Te&&Le>=0&&Re<0)&&(Te=le,Re=Le,Ge=0),Le===Re&&(Ae[Ge++]=Ue))}return Ae.length=Ge,Ae},C.getRawIndex=R;function R(G){return G}function B(G){return G<this._count&&G>=0?this._indices[G]:-1}C.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var ee=[],q=0;q<this.dimensions.length;q++){var se=this.dimensions[q];ee.push(this.get(se,G))}return ee},C.getName=function(G){var ee=this.getRawIndex(G);return this._nameList[ee]||F(this,this._nameDimIdx,ee)||""},C.getId=function(G){return P(this,this.getRawIndex(G))};function P(G,ee){var q=G._idList[ee];return q==null&&(q=F(G,G._idDimIdx,ee)),q==null&&(q=s+ee),q}function X(G){return S.isArray(G)||(G=[G]),G}function M(G,ee){for(var q=0;q<ee.length;q++)G._dimensionInfos[ee[q]]||console.error("Unkown dimension "+ee[q])}C.each=function(G,ee,q,se){"use strict";if(!this._count)return;typeof G=="function"&&(se=q,q=ee,ee=G,G=[]),q=q||se||this,G=S.map(X(G),this.getDimension,this);for(var re=G.length,Ae=0;Ae<this.count();Ae++)switch(re){case 0:ee.call(q,Ae);break;case 1:ee.call(q,this.get(G[0],Ae),Ae);break;case 2:ee.call(q,this.get(G[0],Ae),this.get(G[1],Ae),Ae);break;default:for(var Te=0,Re=[];Te<re;Te++)Re[Te]=this.get(G[Te],Ae);Re[Te]=Ae,ee.apply(q,Re)}},C.filterSelf=function(G,ee,q,se){"use strict";if(!this._count)return;typeof G=="function"&&(se=q,q=ee,ee=G,G=[]),q=q||se||this,G=S.map(X(G),this.getDimension,this);for(var re=this.count(),Ae=b(this),Te=new Ae(re),Re=[],Ge=G.length,Ue=0,nt=G[0],Le=0;Le<re;Le++){var le,Xe=this.getRawIndex(Le);if(Ge===0)le=ee.call(q,Le);else if(Ge===1){var pe=this._getFast(nt,Xe);le=ee.call(q,pe,Le)}else{for(var Z=0;Z<Ge;Z++)Re[Z]=this._getFast(nt,Xe);Re[Z]=Le,le=ee.apply(q,Re)}le&&(Te[Ue++]=Xe)}return Ue<re&&(this._indices=Te),this._count=Ue,this._extent={},this.getRawIndex=this._indices?B:R,this},C.selectRange=function(G){"use strict";if(!this._count)return;var ee=[];for(var q in G)G.hasOwnProperty(q)&&ee.push(q);var se=ee.length;if(!se)return;var re=this.count(),Ae=b(this),Te=new Ae(re),Re=0,Ge=ee[0],Ue=G[Ge][0],nt=G[Ge][1],Le=!1;if(!this._indices){var le=0;if(se===1){for(var Xe=this._storage[ee[0]],pe=0;pe<this._chunkCount;pe++)for(var Z=Xe[pe],Y=Math.min(this._count-pe*this._chunkSize,this._chunkSize),ne=0;ne<Y;ne++){var ce=Z[ne];(ce>=Ue&&ce<=nt||isNaN(ce))&&(Te[Re++]=le),le++}Le=!0}else if(se===2){for(var Xe=this._storage[Ge],ye=this._storage[ee[1]],Ee=G[ee[1]][0],Ce=G[ee[1]][1],pe=0;pe<this._chunkCount;pe++)for(var Z=Xe[pe],ue=ye[pe],Y=Math.min(this._count-pe*this._chunkSize,this._chunkSize),ne=0;ne<Y;ne++){var ce=Z[ne],ge=ue[ne];(ce>=Ue&&ce<=nt||isNaN(ce))&&(ge>=Ee&&ge<=Ce||isNaN(ge))&&(Te[Re++]=le),le++}Le=!0}}if(!Le)if(se===1)for(var ne=0;ne<re;ne++){var Oe=this.getRawIndex(ne),ce=this._getFast(Ge,Oe);(ce>=Ue&&ce<=nt||isNaN(ce))&&(Te[Re++]=Oe)}else for(var ne=0;ne<re;ne++){for(var Je=!0,Oe=this.getRawIndex(ne),pe=0;pe<se;pe++){var lt=ee[pe],ce=this._getFast(q,Oe);(ce<G[lt][0]||ce>G[lt][1])&&(Je=!1)}Je&&(Te[Re++]=this.getRawIndex(ne))}return Re<re&&(this._indices=Te),this._count=Re,this._extent={},this.getRawIndex=this._indices?B:R,this},C.mapArray=function(G,ee,q,se){"use strict";typeof G=="function"&&(se=q,q=ee,ee=G,G=[]),q=q||se||this;var re=[];return this.each(G,function(){re.push(ee&&ee.apply(this,arguments))},q),re};function z(G,ee){var q=G.dimensions,se=new E(S.map(q,G.getDimensionInfo,G),G.hostModel);_(se,G);for(var re=se._storage={},Ae=G._storage,Te=0;Te<q.length;Te++){var Re=q[Te];Ae[Re]&&(S.indexOf(ee,Re)>=0?(re[Re]=W(Ae[Re]),se._rawExtent[Re]=H(),se._extent[Re]=null):re[Re]=Ae[Re])}return se}function W(G){for(var ee=new Array(G.length),q=0;q<G.length;q++)ee[q]=w(G[q]);return ee}function H(){return[Infinity,-Infinity]}C.map=function(G,ee,q,se){"use strict";q=q||se||this,G=S.map(X(G),this.getDimension,this);var re=z(this,G);re._indices=this._indices,re.getRawIndex=re._indices?B:R;for(var Ae=re._storage,Te=[],Re=this._chunkSize,Ge=G.length,Ue=this.count(),nt=[],Le=re._rawExtent,le=0;le<Ue;le++){for(var Xe=0;Xe<Ge;Xe++)nt[Xe]=this.get(G[Xe],le);nt[Ge]=le;var pe=ee&&ee.apply(q,nt);if(pe!=null){typeof pe!="object"&&(Te[0]=pe,pe=Te);for(var Z=this.getRawIndex(le),Y=Math.floor(Z/Re),ne=Z%Re,ce=0;ce<pe.length;ce++){var ye=G[ce],Ee=pe[ce],Ce=Le[ye],ue=Ae[ye];ue&&(ue[Y][ne]=Ee),Ee<Ce[0]&&(Ce[0]=Ee),Ee>Ce[1]&&(Ce[1]=Ee)}}}return re},C.downSample=function(G,ee,q,se){for(var re=z(this,[G]),Ae=re._storage,Te=[],Re=Math.floor(1/ee),Ge=Ae[G],Ue=this.count(),nt=this._chunkSize,Le=re._rawExtent[G],le=new(b(this))(Ue),Xe=0,pe=0;pe<Ue;pe+=Re){Re>Ue-pe&&(Re=Ue-pe,Te.length=Re);for(var Z=0;Z<Re;Z++){var Y=this.getRawIndex(pe+Z),ne=Math.floor(Y/nt),ce=Y%nt;Te[Z]=Ge[ne][ce]}var ye=q(Te),Ee=this.getRawIndex(Math.min(pe+se(Te,ye)||0,Ue-1)),Ce=Math.floor(Ee/nt),ue=Ee%nt;Ge[Ce][ue]=ye,ye<Le[0]&&(Le[0]=ye),ye>Le[1]&&(Le[1]=ye),le[Xe++]=Ee}return re._count=Xe,re._indices=le,re.getRawIndex=B,re},C.getItemModel=function(G){var ee=this.hostModel;return new v(this.getRawDataItem(G),ee,ee&&ee.ecModel)},C.diff=function(G){var ee=this;return new m(G?G.getIndices():[],this.getIndices(),function(q){return P(G,q)},function(q){return P(ee,q)})},C.getVisual=function(G){var ee=this._visual;return ee&&ee[G]},C.setVisual=function(G,ee){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setVisual(q,G[q]);return}this._visual=this._visual||{},this._visual[G]=ee},C.setLayout=function(G,ee){if(e(G)){for(var q in G)G.hasOwnProperty(q)&&this.setLayout(q,G[q]);return}this._layout[G]=ee},C.getLayout=function(G){return this._layout[G]},C.getItemLayout=function(G){return this._itemLayouts[G]},C.setItemLayout=function(G,ee,q){this._itemLayouts[G]=q?S.extend(this._itemLayouts[G]||{},ee):ee},C.clearItemLayouts=function(){this._itemLayouts.length=0},C.getItemVisual=function(G,ee,q){var se=this._itemVisuals[G],re=se&&se[ee];return re==null&&!q?this.getVisual(ee):re},C.setItemVisual=function(G,ee,q){var se=this._itemVisuals[G]||{},re=this.hasItemVisual;if(this._itemVisuals[G]=se,e(ee)){for(var Ae in ee)ee.hasOwnProperty(Ae)&&(se[Ae]=ee[Ae],re[Ae]=!0);return}se[ee]=q,re[ee]=!0},C.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};C.setItemGraphicEl=function(G,ee){var q=this.hostModel;ee&&(ee.dataIndex=G,ee.dataType=this.dataType,ee.seriesIndex=q&&q.seriesIndex,ee.type==="group"&&ee.traverse(V,ee)),this._graphicEls[G]=ee},C.getItemGraphicEl=function(G){return this._graphicEls[G]},C.eachItemGraphicEl=function(G,ee){S.each(this._graphicEls,function(q,se){q&&(G&&G.call(ee,q,se))})},C.cloneShallow=function(G){if(!G){var ee=S.map(this.dimensions,this.getDimensionInfo,this);G=new E(ee,this.hostModel)}if(G._storage=this._storage,_(G,this),this._indices){var q=this._indices.constructor;G._indices=new q(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?B:R,G},C.wrapMethod=function(G,ee){var q=this[G];if(typeof q!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var se=q.apply(this,arguments);return ee.apply(this,[se].concat(S.slice(arguments)))}},C.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],C.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=E;k.exports=Q},YgsL:function(k,D,i){var y=i("QBsz"),p=y.distance;function S(m,f,d,u,o,n,t){var a=(d-m)*.5,e=(u-f)*.5;return(2*(f-d)+a+e)*t+(-3*(f-d)-2*a-e)*n+a*o+f}function v(m,f){for(var d=m.length,u=[],o=0,n=1;n<d;n++)o+=p(m[n-1],m[n]);var t=o/2;t=t<d?d:t;for(var n=0;n<t;n++){var a=n/(t-1)*(f?d:d-1),e=Math.floor(a),l=a-e,r,s=m[e%d],c,h;f?(r=m[(e-1+d)%d],c=m[(e+1)%d],h=m[(e+2)%d]):(r=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,A=l*g;u.push([S(r[0],s[0],c[0],h[0],l,g,A),S(r[1],s[1],c[1],h[1],l,g,A)])}return u}k.exports=v},Yl7c:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=".",m="___EC__COMPONENT__CONTAINER___";function f(r){var s={main:"",sub:""};return r&&(r=r.split(v),s.main=r[0]||"",s.sub=r[1]||""),s}function d(r){S.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function u(r,s){r.$constructor=r,r.extend=function(c){var h=this,g=function(){c.$constructor?c.$constructor.apply(this,arguments):h.apply(this,arguments)};return S.extend(g.prototype,c),g.extend=this.extend,g.superCall=t,g.superApply=a,S.inherits(g,this),g.superClass=h,g}}var o=0;function n(r){var s=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");r.prototype[s]=!0,r.isInstance=function(c){return!!(c&&c[s])}}function t(r,s){var c=S.slice(arguments,2);return this.superClass.prototype[s].apply(r,c)}function a(r,s,c){return this.superClass.prototype[s].apply(r,c)}function e(r,s){s=s||{};var c={};r.registerClass=function(A,b){if(b){if(d(b),b=f(b),!b.sub)c[b.main]=A;else if(b.sub!==m){var w=h(b);w[b.sub]=A}}return A},r.getClass=function(A,b,w){var x=c[A];if(x&&x[m]&&(x=b?x[b]:null),w&&!x)throw new Error(b?"Component "+A+"."+(b||"")+" not exists. Load it first.":A+".type should be specified.");return x},r.getClassesByMainType=function(A){A=f(A);var b=[],w=c[A.main];return w&&w[m]?S.each(w,function(x,T){T!==m&&b.push(x)}):b.push(w),b},r.hasClass=function(A){return A=f(A),!!c[A.main]},r.getAllClassMainTypes=function(){var A=[];return S.each(c,function(b,w){A.push(w)}),A},r.hasSubTypes=function(A){A=f(A);var b=c[A.main];return b&&b[m]},r.parseClassType=f;function h(A){var b=c[A.main];return(!b||!b[m])&&(b=c[A.main]={},b[m]=!0),b}if(s.registerWhenExtend){var g=r.extend;g&&(r.extend=function(A){var b=g.call(this,A);return r.registerClass(b,A.type)})}return r}function l(r,s){}D.parseClassType=f,D.enableClassExtend=u,D.enableClassCheck=n,D.enableClassManagement=e,D.setReadOnly=l},Ynxi:function(k,D,i){var y=i("bYtY"),p=i("ProS"),S=i("IwbS"),v=i("+TT/"),m=v.getLayoutRect,f=i("7aKB"),d=f.windowOpen;p.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"}}}),p.extendComponentView({type:"title",render:function(u,o,n){if(this.group.removeAll(),!u.get("show"))return;var t=this.group,a=u.getModel("textStyle"),e=u.getModel("subtextStyle"),l=u.get("textAlign"),r=y.retrieve2(u.get("textBaseline"),u.get("textVerticalAlign")),s=new S.Text({style:S.setTextStyle({},a,{text:u.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),h=u.get("subtext"),g=new S.Text({style:S.setTextStyle({},e,{text:h,textFill:e.getTextColor(),y:c.height+u.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),A=u.get("link"),b=u.get("sublink"),w=u.get("triggerEvent",!0);s.silent=!A&&!w,g.silent=!b&&!w,A&&s.on("click",function(){d(A,"_"+u.get("target"))}),b&&g.on("click",function(){d(A,"_"+u.get("subtarget"))}),s.eventData=g.eventData=w?{componentType:"title",componentIndex:u.componentIndex}:null,t.add(s),h&&t.add(g);var x=t.getBoundingRect(),T=u.getBoxLayoutParams();T.width=x.width,T.height=x.height;var _=m(T,{width:n.getWidth(),height:n.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)),r||(r=u.get("top")||u.get("bottom"),r==="center"&&(r="middle"),r==="bottom"?_.y+=_.height:r==="middle"&&(_.y+=_.height/2),r=r||"top"),t.attr("position",[_.x,_.y]);var E={textAlign:l,textVerticalAlign:r};s.setStyle(E),g.setStyle(E),x=t.getBoundingRect();var C=_.margin,I=u.getItemStyle(["color","opacity"]);I.fill=u.get("backgroundColor");var O=new S.Rect({shape:{x:x.x-C[3],y:x.y-C[0],width:x.width+C[1]+C[3],height:x.height+C[0]+C[2],r:u.get("borderRadius")},style:I,subPixelOptimize:!0,silent:!0});t.add(O)}})},Ywus:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("DO2E")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DeleteOutlined";var n=v.forwardRef(o);D.default=n},Z0Lh:function(k,D,i){"use strict";var y=i("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=y(i("pVnL")),S=y(i("HjOm")),v=y(i("Z6rY")),m={lang:(0,p.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"]},S.default),timePickerLocale:(0,p.default)({},v.default)};m.lang.ok="\u786E \u5B9A";var f=m;D.default=f},Z1HP:function(k,D,i){var y=i("ycre"),p=i("quyA"),S=i("q4HE");function v(m){return p(m)?S(m):y(m)}k.exports=v},Z1r0:function(k,D){function i(y){var p=y.findComponents({mainType:"legend"});if(!p||!p.length)return;y.eachSeriesByType("graph",function(S){var v=S.getCategoriesData(),m=S.getGraph(),f=m.data,d=v.mapArray(v.getName);f.filterSelf(function(u){var o=f.getItemModel(u),n=o.getShallow("category");if(n!=null){typeof n=="number"&&(n=d[n]);for(var t=0;t<p.length;t++)if(!p[t].isSelected(n))return!1}return!0})},this)}k.exports=i},Z1wy:function(k,D,i){var y=i("ProS");i("ThAp"),i("pmaE"),i("SehX"),i("7uqq");var p=i("zuHt"),S=i("VPsl"),v=i("9u0u"),m=i("lELe"),f=i("d4KN");y.registerLayout(p),y.registerVisual(S),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,v),y.registerPreprocessor(m),f("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(k,D,i){var y=i("MwEJ"),p=i("T4UG"),S=p.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(v,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}});k.exports=S},Z6rY:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},p=y;D.default=p},Z8oC:function(k,D,i){var y=i("y1pI");function p(S,v){var m=this.__data__,f=y(m,S);return f<0?(++this.size,m.push([S,v])):m[f][1]=v,this}k.exports=p},Z8zF:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("IwbS"),f=i("56rv"),d=f.setLabel,u=i("Qxkt"),o=i("tceW"),n=i("y+Vt"),t=i("4fz+"),a=i("iLNv"),e=a.throttle,l=i("sK/D"),r=l.createClipPath,s=i("wr5s"),c=["itemStyle","barBorderWidth"],h=[0,0];v.extend(u.prototype,o);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 q=Q.getLayout("bandWidth");ee.isHorizontal()?(G.x-=q,G.width+=q*2):(G.y-=q,G.height+=q*2)}}return G}var A=S.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,q=V.getData(),se=this._data,re=V.coordinateSystem,Ae=re.getBaseAxis(),Te;re.type==="cartesian2d"?Te=Ae.isHorizontal():re.type==="polar"&&(Te=Ae.dim==="angle");var Re=V.isAnimationEnabled()?V:null,Ge=V.get("clip",!0),Ue=g(re,q);ee.removeClipPath();var nt=V.get("roundCap",!0),Le=V.get("showBackground",!0),le=V.getModel("backgroundStyle"),Xe=le.get("barBorderRadius")||0,pe=[],Z=this._backgroundEls||[];q.diff(se).add(function(ce){var ye=q.getItemModel(ce),Ee=C[re.type](q,ce,ye);if(Le){var Ce=C[re.type](q,ce),ue=H(re,Te,Ce);ue.useStyle(le.getBarItemStyle()),re.type==="cartesian2d"&&ue.setShape("r",Xe),pe[ce]=ue}if(!q.hasValue(ce))return;if(Ge){var ge=x[re.type](Ue,Ee);if(ge){ee.remove(Oe);return}}var Oe=T[re.type](ce,Ee,Te,Re,!1,nt);q.setItemGraphicEl(ce,Oe),ee.add(Oe),O(Oe,q,ce,ye,Ee,V,Te,re.type==="polar")}).update(function(ce,ye){var Ee=q.getItemModel(ce),Ce=C[re.type](q,ce,Ee);if(Le){var ue=Z[ye];ue.useStyle(le.getBarItemStyle()),re.type==="cartesian2d"&&ue.setShape("r",Xe),pe[ce]=ue;var ge=C[re.type](q,ce),Oe=W(Te,ge,re);m.updateProps(ue,{shape:Oe},Re,ce)}var Je=se.getItemGraphicEl(ye);if(!q.hasValue(ce)){ee.remove(Je);return}if(Ge){var lt=x[re.type](Ue,Ce);if(lt){ee.remove(Je);return}}Je?m.updateProps(Je,{shape:Ce},Re,ce):Je=T[re.type](ce,Ce,Te,Re,!0,nt),q.setItemGraphicEl(ce,Je),ee.add(Je),O(Je,q,ce,Ee,Ce,V,Te,re.type==="polar")}).remove(function(ce){var ye=se.getItemGraphicEl(ce);re.type==="cartesian2d"?ye&&_(ce,Re,ye):ye&&E(ce,Re,ye)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var ne=0;ne<pe.length;++ne)Y.add(pe[ne]);ee.add(Y),this._backgroundEls=pe,this._data=q},_renderLarge:function(V,Q,G){this._clear(),B(V,this.group);var ee=V.get("clip",!0)?r(V.coordinateSystem,!1,V):null;ee?this.group.setClipPath(ee):this.group.removeClipPath()},_incrementalRenderLarge:function(V,Q){this._removeBackground(),B(Q,this.group,!0)},dispose:v.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"?E(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,w=Math.min,x={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 q=b(Q.x,V.x),se=w(Q.x+Q.width,V.x+V.width),re=b(Q.y,V.y),Ae=w(Q.y+Q.height,V.y+V.height);Q.x=q,Q.y=re,Q.width=se-q,Q.height=Ae-re;var Te=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),Te},polar:function(V){return!1}},T={cartesian2d:function(V,Q,G,ee,q){var se=new m.Rect({shape:v.extend({},Q),z2:1});if(se.name="item",ee){var re=se.shape,Ae=G?"height":"width",Te={};re[Ae]=0,Te[Ae]=Q[Ae],m[q?"updateProps":"initProps"](se,{shape:Te},ee,V)}return se},polar:function(V,Q,G,ee,q,se){var re=Q.startAngle<Q.endAngle,Ae=!G&&se?s:m.Sector,Te=new Ae({shape:v.defaults({clockwise:re},Q),z2:1});if(Te.name="item",ee){var Re=Te.shape,Ge=G?"r":"endAngle",Ue={};Re[Ge]=G?0:Q.startAngle,Ue[Ge]=Q[Ge],m[q?"updateProps":"initProps"](Te,{shape:Ue},ee,V)}return Te}};function _(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function E(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 C={cartesian2d:function(V,Q,G){var ee=V.getItemLayout(Q),q=G?F(G,ee):0,se=ee.width>0?1:-1,re=ee.height>0?1:-1;return{x:ee.x+se*q/2,y:ee.y+re*q/2,width:ee.width-se*q,height:ee.height-re*q}},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 I(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function O(V,Q,G,ee,q,se,re,Ae){var Te=Q.getItemVisual(G,"color"),Re=Q.getItemVisual(G,"opacity"),Ge=Q.getVisual("borderColor"),Ue=ee.getModel("itemStyle"),nt=ee.getModel("emphasis.itemStyle").getBarItemStyle();Ae||V.setShape("r",Ue.get("barBorderRadius")||0),V.useStyle(v.defaults({stroke:I(q)?"none":Ge,fill:I(q)?"none":Te,opacity:Re},Ue.getBarItemStyle()));var Le=ee.getShallow("cursor");Le&&V.attr("cursor",Le);var le=re?q.height>0?"bottom":"top":q.width>0?"left":"right";Ae||d(V.style,nt,ee,Te,se,G,le),I(q)&&(nt.fill=nt.stroke="none"),m.setHoverStyle(V,nt)}function F(V,Q){var G=V.get(c)||0,ee=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),q=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,ee,q)}var R=n.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,ee=this.__startPoint,q=this.__baseDimIdx,se=0;se<G.length;se+=2)ee[q]=G[se+q],V.moveTo(ee[0],ee[1]),V.lineTo(G[se],G[se+1])}});function B(V,Q,G){var ee=V.getData(),q=[],se=ee.getLayout("valueAxisHorizontal")?1:0;q[1-se]=ee.getLayout("valueAxisStart");var re=ee.getLayout("largeDataIndices"),Ae=ee.getLayout("barWidth"),Te=V.getModel("backgroundStyle"),Re=V.get("showBackground",!0);if(Re){var Ge=ee.getLayout("largeBackgroundPoints"),Ue=[];Ue[1-se]=ee.getLayout("backgroundStart");var nt=new R({shape:{points:Ge},incremental:!!G,__startPoint:Ue,__baseDimIdx:se,__largeDataIndices:re,__barWidth:Ae,silent:!0,z2:0});z(nt,Te,ee),Q.add(nt)}var Le=new R({shape:{points:ee.getLayout("largePoints")},incremental:!!G,__startPoint:q,__baseDimIdx:se,__largeDataIndices:re,__barWidth:Ae});Q.add(Le),M(Le,V,ee),Le.seriesIndex=V.seriesIndex,V.get("silent")||(Le.on("mousedown",P),Le.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,q=1-ee,se=V.shape.points,re=V.__largeDataIndices,Ae=Math.abs(V.__barWidth/2),Te=V.__startPoint[q];h[0]=Q,h[1]=G;for(var Re=h[ee],Ge=h[1-ee],Ue=Re-Ae,nt=Re+Ae,Le=0,le=se.length/2;Le<le;Le++){var Xe=Le*2,pe=se[Xe+ee],Z=se[Xe+q];if(pe>=Ue&&pe<=nt&&(Te<=Z?Ge>=Te&&Ge<=Z:Ge>=Z&&Ge<=Te))return re[Le]}return-1}function M(V,Q,G){var ee=G.getVisual("borderColor")||G.getVisual("color"),q=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=ee,V.style.lineWidth=G.getLayout("barWidth")}function z(V,Q,G){var ee=Q.get("borderColor")||Q.get("color"),q=Q.getItemStyle(["color","borderColor"]);V.useStyle(q),V.style.fill=null,V.style.stroke=ee,V.style.lineWidth=G.getLayout("barWidth")}function W(V,Q,G){var ee,q=G.type==="polar";return q?ee=G.getArea():ee=G.grid.getRect(),q?{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 H(V,Q,G){var ee=V.type==="polar"?m.Sector:m.Rect;return new ee({shape:W(Q,G,V),silent:!0,z2:0})}k.exports=A},ZCgT:function(k,D,i){var y=i("tLB3"),p=1/0,S=17976931348623157e292;function v(m){if(!m)return m===0?m:0;if(m=y(m),m===p||m===-p){var f=m<0?-1:1;return f*S}return m===m?m:0}k.exports=v},ZLWo:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},ZMnZ:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("2oIt")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="UpOutlined";var n=v.forwardRef(o);D.default=n},ZTPi:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("q1tI"),f=i("rePB"),d=i("ODXe"),u=i("Ff2n"),o=i("VTBJ"),n=i("TSYQ"),t=i.n(n),a=i("Zm9Q"),e=i("6cGi"),l=i("KQm4"),r=i("xEkU"),s=i.n(r),c=i("1OyB"),h=i("vuIU"),g=i("Ji7U"),A=i("LK+K"),b=i("m+aA"),w=i("Kwbf"),x=i("c+Xe"),T=i("bdgK"),_="rc-observer-key",E=function(Vr){Object(g.a)(kn,Vr);var fn=Object(A.a)(kn);function kn(){var It;return Object(c.a)(this,kn),It=fn.apply(this,arguments),It.resizeObserver=null,It.childNode=null,It.currentElement=null,It.state={width:0,height:0,offsetHeight:0,offsetWidth:0},It.onResize=function(yt){var xt=It.props.onResize,Tt=yt[0].target,Lt=Tt.getBoundingClientRect(),_t=Lt.width,Xt=Lt.height,er=Tt.offsetWidth,nr=Tt.offsetHeight,br=Math.floor(_t),On=Math.floor(Xt);if(It.state.width!==br||It.state.height!==On||It.state.offsetWidth!==er||It.state.offsetHeight!==nr){var bn={width:br,height:On,offsetWidth:er,offsetHeight:nr};It.setState(bn),xt&&Promise.resolve().then(function(){xt(Object(o.a)(Object(o.a)({},bn),{},{offsetWidth:er,offsetHeight:nr}))})}},It.setChildNode=function(yt){It.childNode=yt},It}return Object(h.a)(kn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var yt=this.props.disabled;if(yt){this.destroyObserver();return}var xt=Object(b.a)(this.childNode||this),Tt=xt!==this.currentElement;Tt&&(this.destroyObserver(),this.currentElement=xt),!this.resizeObserver&&xt&&(this.resizeObserver=new T.default(this.onResize),this.resizeObserver.observe(xt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var yt=this.props.children,xt=Object(a.a)(yt);if(xt.length>1)Object(w.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(xt.length===0)return Object(w.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Tt=xt[0];if(m.isValidElement(Tt)&&Object(x.c)(Tt)){var Lt=Tt.ref;xt[0]=m.cloneElement(Tt,{ref:Object(x.a)(Lt,this.setChildNode)})}return xt.length===1?xt[0]:xt.map(function(_t,Xt){return!m.isValidElement(_t)||"key"in _t&&_t.key!==null?_t:m.cloneElement(_t,{key:"".concat(_,"-").concat(Xt)})})}}]),kn}(m.Component);E.displayName="ResizeObserver";var C=E;function I(Vr){var fn=Object(m.useRef)(),kn=Object(m.useRef)(!1);function It(){for(var yt=arguments.length,xt=new Array(yt),Tt=0;Tt<yt;Tt++)xt[Tt]=arguments[Tt];kn.current||(s.a.cancel(fn.current),fn.current=s()(function(){Vr.apply(void 0,xt)}))}return Object(m.useEffect)(function(){return function(){kn.current=!0,s.a.cancel(fn.current)}},[]),It}function O(Vr){var fn=Object(m.useRef)([]),kn=Object(m.useState)({}),It=Object(d.a)(kn,2),yt=It[1],xt=Object(m.useRef)(typeof Vr=="function"?Vr():Vr),Tt=I(function(){var _t=xt.current;fn.current.forEach(function(Xt){_t=Xt(_t)}),fn.current=[],xt.current=_t,yt({})});function Lt(_t){fn.current.push(_t),Tt()}return[xt.current,Lt]}var F=i("4IlW");function R(Vr,fn){var kn,It=Vr.prefixCls,yt=Vr.id,xt=Vr.active,Tt=Vr.rtl,Lt=Vr.tab,_t=Lt.key,Xt=Lt.tab,er=Lt.disabled,nr=Lt.closeIcon,br=Vr.tabBarGutter,On=Vr.tabPosition,bn=Vr.closable,qn=Vr.renderWrapper,an=Vr.removeAriaLabel,_r=Vr.editable,mn=Vr.onClick,In=Vr.onRemove,Wn=Vr.onFocus,Jn="".concat(It,"-tab");m.useEffect(function(){return In},[]);var Ei={};On==="top"||On==="bottom"?Ei[Tt?"marginLeft":"marginRight"]=br:Ei.marginBottom=br;var yi=_r&&bn!==!1&&!er;function mi(Gi){if(er)return;mn(Gi)}function Vi(Gi){Gi.preventDefault(),Gi.stopPropagation(),_r.onEdit("remove",{key:_t,event:Gi})}var la=m.createElement("div",{key:_t,ref:fn,className:t()(Jn,(kn={},Object(f.a)(kn,"".concat(Jn,"-with-remove"),yi),Object(f.a)(kn,"".concat(Jn,"-active"),xt),Object(f.a)(kn,"".concat(Jn,"-disabled"),er),kn)),style:Ei,onClick:mi},m.createElement("div",{role:"tab","aria-selected":xt,id:yt&&"".concat(yt,"-tab-").concat(_t),className:"".concat(Jn,"-btn"),"aria-controls":yt&&"".concat(yt,"-panel-").concat(_t),"aria-disabled":er,tabIndex:er?null:0,onClick:function(ia){ia.stopPropagation(),mi(ia)},onKeyDown:function(ia){[F.a.SPACE,F.a.ENTER].includes(ia.which)&&(ia.preventDefault(),mi(ia))},onFocus:Wn},Xt),yi&&m.createElement("button",{type:"button","aria-label":an||"remove",tabIndex:0,className:"".concat(Jn,"-remove"),onClick:function(ia){ia.stopPropagation(),Vi(ia)}},nr||_r.removeIcon||"\xD7"));return qn&&(la=qn(la)),la}var B=m.forwardRef(R),P={width:0,height:0,left:0,top:0};function X(Vr,fn,kn){return Object(m.useMemo)(function(){for(var It,yt=new Map,xt=fn.get((It=Vr[0])===null||It===void 0?void 0:It.key)||P,Tt=xt.left+xt.width,Lt=0;Lt<Vr.length;Lt+=1){var _t=Vr[Lt].key,Xt=fn.get(_t);if(!Xt){var er;Xt=fn.get((er=Vr[Lt-1])===null||er===void 0?void 0:er.key)||P}var nr=yt.get(_t)||Object(o.a)({},Xt);nr.right=Tt-nr.left-nr.width,yt.set(_t,nr)}return yt},[Vr.map(function(It){return It.key}).join("_"),fn,kn])}var M={width:0,height:0,left:0,top:0,right:0};function z(Vr,fn,kn,It,yt){var xt=yt.tabs,Tt=yt.tabPosition,Lt=yt.rtl,_t,Xt,er;["top","bottom"].includes(Tt)?(_t="width",Xt=Lt?"right":"left",er=Math.abs(fn.left)):(_t="height",Xt="top",er=-fn.top);var nr=fn[_t],br=kn[_t],On=It[_t],bn=nr;return br+On>nr&&(bn=nr-On),Object(m.useMemo)(function(){if(!xt.length)return[0,0];for(var qn=xt.length,an=qn,_r=0;_r<qn;_r+=1){var mn=Vr.get(xt[_r].key)||M;if(mn[Xt]+mn[_t]>er+bn){an=_r-1;break}}for(var In=0,Wn=qn-1;Wn>=0;Wn-=1){var Jn=Vr.get(xt[Wn].key)||M;if(Jn[Xt]<er){In=Wn+1;break}}return[In,an]},[Vr,er,bn,Tt,xt.map(function(qn){return qn.key}).join("_"),Lt])}var W=i("wx14"),H=i("JX7q"),V=i("I8Z2"),Q=i("bT9E"),G=i("2GS6"),ee=i("Gytx"),q=i.n(ee),se=i("U8pU"),re=/iPhone/i,Ae=/iPod/i,Te=/iPad/i,Re=/\bAndroid(?:.+)Mobile\b/i,Ge=/Android/i,Ue=/\bAndroid(?:.+)SD4930UR\b/i,nt=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Le=/Windows Phone/i,le=/\bWindows(?:.+)ARM\b/i,Xe=/BlackBerry/i,pe=/BB10/i,Z=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,ne=/Mobile(?:.+)Firefox\b/i;function ce(Vr,fn){return Vr.test(fn)}function ye(Vr){var fn=Vr||(typeof navigator!="undefined"?navigator.userAgent:""),kn=(fn||"").split("[FBAN");if(typeof kn[1]!="undefined"){var It=kn,yt=Object(d.a)(It,1);fn=yt[0]}if(kn=fn.split("Twitter"),typeof kn[1]!="undefined"){var xt=kn,Tt=Object(d.a)(xt,1);fn=Tt[0]}var Lt={apple:{phone:ce(re,fn)&&!ce(Le,fn),ipod:ce(Ae,fn),tablet:!ce(re,fn)&&ce(Te,fn)&&!ce(Le,fn),device:(ce(re,fn)||ce(Ae,fn)||ce(Te,fn))&&!ce(Le,fn)},amazon:{phone:ce(Ue,fn),tablet:!ce(Ue,fn)&&ce(nt,fn),device:ce(Ue,fn)||ce(nt,fn)},android:{phone:!ce(Le,fn)&&ce(Ue,fn)||!ce(Le,fn)&&ce(Re,fn),tablet:!ce(Le,fn)&&!ce(Ue,fn)&&!ce(Re,fn)&&(ce(nt,fn)||ce(Ge,fn)),device:!ce(Le,fn)&&(ce(Ue,fn)||ce(nt,fn)||ce(Re,fn)||ce(Ge,fn))||ce(/\bokhttp\b/i,fn)},windows:{phone:ce(Le,fn),tablet:ce(le,fn),device:ce(Le,fn)||ce(le,fn)},other:{blackberry:ce(Xe,fn),blackberry10:ce(pe,fn),opera:ce(Z,fn),firefox:ce(ne,fn),chrome:ce(Y,fn),device:ce(Xe,fn)||ce(pe,fn)||ce(Z,fn)||ce(ne,fn)||ce(Y,fn)},any:null,phone:null,tablet:null};return Lt.any=Lt.apple.device||Lt.android.device||Lt.windows.device||Lt.other.device,Lt.phone=Lt.apple.phone||Lt.android.phone||Lt.windows.phone,Lt.tablet=Lt.apple.tablet||Lt.android.tablet||Lt.windows.tablet,Lt}var Ee=Object(o.a)(Object(o.a)({},ye()),{},{isMobile:ye}),Ce=Ee;function ue(){}function ge(Vr,fn,kn){var It=fn||"";return Vr.key||"".concat(It,"item_").concat(kn)}function Oe(Vr){return"".concat(Vr,"-menu-")}function Je(Vr,fn){var kn=-1;m.Children.forEach(Vr,function(It){kn+=1,It&&It.type&&It.type.isMenuItemGroup?m.Children.forEach(It.props.children,function(yt){kn+=1,fn(yt,kn)}):fn(It,kn)})}function lt(Vr,fn,kn){if(!Vr||kn.find)return;m.Children.forEach(Vr,function(It){if(It){var yt=It.type;if(!yt||!(yt.isSubMenu||yt.isMenuItem||yt.isMenuItemGroup))return;fn.indexOf(It.key)!==-1?kn.find=!0:It.props.children&&lt(It.props.children,fn,kn)}})}var tt=["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"],ke=function(fn){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=fn&&typeof fn.getBoundingClientRect=="function"&&fn.getBoundingClientRect().width;if(It){if(kn){var yt=getComputedStyle(fn),xt=yt.marginLeft,Tt=yt.marginRight;It+=+xt.replace("px","")+ +Tt.replace("px","")}It=+It.toFixed(6)}return It||0},st=function(fn,kn,It){fn&&Object(se.a)(fn.style)==="object"&&(fn.style[kn]=It)},Ve=function(){return Ce.any},Ot=i("i8i4"),Ut=i("uciX"),ir=i("wgJM"),lr=i("8XRh"),Sr={adjustX:1,adjustY:1},mt={topLeft:{points:["bl","tl"],overflow:Sr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sr,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Sr,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Sr,offset:[4,0]}},or={topLeft:{points:["bl","tl"],overflow:Sr,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Sr,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Sr,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Sr,offset:[4,0]}},et=mt,ur=0,qr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Fe=function(fn,kn,It){var yt=Oe(kn),xt=fn.getState();fn.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},xt.defaultActiveFirst),{},Object(f.a)({},yt,It))})},$t=function(Vr){Object(g.a)(kn,Vr);var fn=Object(A.a)(kn);function kn(It){var yt;Object(c.a)(this,kn),yt=fn.call(this,It),yt.onDestroy=function(er){yt.props.onDestroy(er)},yt.onKeyDown=function(er){var nr=er.keyCode,br=yt.menuInstance,On=yt.props.store,bn=yt.getVisible();if(nr===F.a.ENTER)return yt.onTitleClick(er),Fe(On,yt.props.eventKey,!0),!0;if(nr===F.a.RIGHT)return bn?br.onKeyDown(er):(yt.triggerOpenChange(!0),Fe(On,yt.props.eventKey,!0)),!0;if(nr===F.a.LEFT){var qn;if(bn)qn=br.onKeyDown(er);else return;return qn||(yt.triggerOpenChange(!1),qn=!0),qn}return bn&&(nr===F.a.UP||nr===F.a.DOWN)?br.onKeyDown(er):void 0},yt.onOpenChange=function(er){yt.props.onOpenChange(er)},yt.onPopupVisibleChange=function(er){yt.triggerOpenChange(er,er?"mouseenter":"mouseleave")},yt.onMouseEnter=function(er){var nr=yt.props,br=nr.eventKey,On=nr.onMouseEnter,bn=nr.store;Fe(bn,yt.props.eventKey,!1),On({key:br,domEvent:er})},yt.onMouseLeave=function(er){var nr=yt.props,br=nr.parentMenu,On=nr.eventKey,bn=nr.onMouseLeave;br.subMenuInstance=Object(H.a)(yt),bn({key:On,domEvent:er})},yt.onTitleMouseEnter=function(er){var nr=yt.props,br=nr.eventKey,On=nr.onItemHover,bn=nr.onTitleMouseEnter;On({key:br,hover:!0}),bn({key:br,domEvent:er})},yt.onTitleMouseLeave=function(er){var nr=yt.props,br=nr.parentMenu,On=nr.eventKey,bn=nr.onItemHover,qn=nr.onTitleMouseLeave;br.subMenuInstance=Object(H.a)(yt),bn({key:On,hover:!1}),qn({key:On,domEvent:er})},yt.onTitleClick=function(er){var nr=Object(H.a)(yt),br=nr.props;if(br.onTitleClick({key:br.eventKey,domEvent:er}),br.triggerSubMenuAction==="hover")return;yt.triggerOpenChange(!yt.getVisible(),"click"),Fe(br.store,yt.props.eventKey,!1)},yt.onSubMenuClick=function(er){typeof yt.props.onClick=="function"&&yt.props.onClick(yt.addKeyPath(er))},yt.onSelect=function(er){yt.props.onSelect(er)},yt.onDeselect=function(er){yt.props.onDeselect(er)},yt.getPrefixCls=function(){return"".concat(yt.props.rootPrefixCls,"-submenu")},yt.getActiveClassName=function(){return"".concat(yt.getPrefixCls(),"-active")},yt.getDisabledClassName=function(){return"".concat(yt.getPrefixCls(),"-disabled")},yt.getSelectedClassName=function(){return"".concat(yt.getPrefixCls(),"-selected")},yt.getOpenClassName=function(){return"".concat(yt.props.rootPrefixCls,"-submenu-open")},yt.getVisible=function(){return yt.state.isOpen},yt.getMode=function(){return yt.state.mode},yt.saveMenuInstance=function(er){yt.menuInstance=er},yt.addKeyPath=function(er){return Object(o.a)(Object(o.a)({},er),{},{keyPath:(er.keyPath||[]).concat(yt.props.eventKey)})},yt.triggerOpenChange=function(er,nr){var br=yt.props.eventKey,On=function(){yt.onOpenChange({key:br,item:Object(H.a)(yt),trigger:nr,open:er})};nr==="mouseenter"?yt.mouseenterTimeout=setTimeout(function(){On()},0):On()},yt.isChildrenSelected=function(){var er={find:!1};return lt(yt.props.children,yt.props.selectedKeys,er),er.find},yt.isInlineMode=function(){return yt.getMode()==="inline"},yt.adjustWidth=function(){if(!yt.subMenuTitle||!yt.menuInstance)return;var er=Ot.findDOMNode(yt.menuInstance);if(er.offsetWidth>=yt.subMenuTitle.offsetWidth)return;er.style.minWidth="".concat(yt.subMenuTitle.offsetWidth,"px")},yt.saveSubMenuTitle=function(er){yt.subMenuTitle=er},yt.getBaseProps=function(){var er=Object(H.a)(yt),nr=er.props,br=yt.getMode();return{mode:br==="horizontal"?"vertical":br,visible:yt.getVisible(),level:nr.level+1,inlineIndent:nr.inlineIndent,focusable:!1,onClick:yt.onSubMenuClick,onSelect:yt.onSelect,onDeselect:yt.onDeselect,onDestroy:yt.onDestroy,selectedKeys:nr.selectedKeys,eventKey:"".concat(nr.eventKey,"-menu-"),openKeys:nr.openKeys,motion:nr.motion,onOpenChange:yt.onOpenChange,subMenuOpenDelay:nr.subMenuOpenDelay,parentMenu:Object(H.a)(yt),subMenuCloseDelay:nr.subMenuCloseDelay,forceSubMenuRender:nr.forceSubMenuRender,triggerSubMenuAction:nr.triggerSubMenuAction,builtinPlacements:nr.builtinPlacements,defaultActiveFirst:nr.store.getState().defaultActiveFirst[Oe(nr.eventKey)],multiple:nr.multiple,prefixCls:nr.rootPrefixCls,id:yt.internalMenuId,manualRef:yt.saveMenuInstance,itemIcon:nr.itemIcon,expandIcon:nr.expandIcon,direction:nr.direction}},yt.getMotion=function(er,nr){var br=Object(H.a)(yt),On=br.haveRendered,bn=yt.props,qn=bn.motion,an=bn.rootPrefixCls,_r=Object(o.a)(Object(o.a)({},qn),{},{leavedClassName:"".concat(an,"-hidden"),removeOnLeave:!1,motionAppear:On||!nr||er!=="inline"});return _r};var xt=It.store,Tt=It.eventKey,Lt=xt.getState(),_t=Lt.defaultActiveFirst;yt.isRootMenu=!1;var Xt=!1;return _t&&(Xt=_t[Tt]),Fe(xt,Tt,Xt),yt.state={mode:It.mode,isOpen:It.isOpen},yt}return Object(h.a)(kn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var yt=this,xt=this.props,Tt=xt.mode,Lt=xt.parentMenu,_t=xt.manualRef,Xt=xt.isOpen,er=function(){yt.setState({mode:Tt,isOpen:Xt})},nr=Xt!==this.state.isOpen,br=Tt!==this.state.mode;if((br||nr)&&(ir.a.cancel(this.updateStateRaf),br?this.updateStateRaf=Object(ir.a)(er):er()),_t&&_t(this),Tt!=="horizontal"||!(Lt==null?void 0:Lt.isRootMenu)||!Xt)return;this.minWidthTimeout=setTimeout(function(){return yt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var yt=this.props,xt=yt.onDestroy,Tt=yt.eventKey;xt&&xt(Tt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),ir.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(yt,xt){var Tt=this.getBaseProps();return m.createElement(ti,Object(W.a)({},Tt,{id:this.internalMenuId,className:yt,style:xt}),this.props.children)}},{key:"renderChildren",value:function(){var yt=this,xt=this.getBaseProps(),Tt=xt.mode,Lt=xt.visible,_t=xt.forceSubMenuRender,Xt=xt.direction,er=this.getMotion(Tt,Lt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Lt||_t,!this.haveOpened)return m.createElement("div",null);var nr=t()("".concat(xt.prefixCls,"-sub"),Object(f.a)({},"".concat(xt.prefixCls,"-rtl"),Xt==="rtl"));return this.isInlineMode()?m.createElement(lr.b,Object(W.a)({visible:xt.visible,forceRender:_t},er),function(br){var On=br.className,bn=br.style,qn=t()(nr,On);return yt.renderPopupMenu(qn,bn)}):this.renderPopupMenu(nr)}},{key:"render",value:function(){var yt,xt,Tt,Lt=Object(o.a)({},this.props),_t=this.getVisible(),Xt=this.getPrefixCls(),er=this.isInlineMode(),nr=this.getMode(),br=t()(Xt,"".concat(Xt,"-").concat(nr),(yt={},Object(f.a)(yt,Lt.className,!!Lt.className),Object(f.a)(yt,this.getOpenClassName(),_t),Object(f.a)(yt,this.getActiveClassName(),Lt.active||_t&&!er),Object(f.a)(yt,this.getDisabledClassName(),Lt.disabled),Object(f.a)(yt,this.getSelectedClassName(),this.isChildrenSelected()),yt));this.internalMenuId||(Lt.eventKey?this.internalMenuId="".concat(Lt.eventKey,"$Menu"):(ur+=1,this.internalMenuId="$__$".concat(ur,"$Menu")));var On={},bn={},qn={};Lt.disabled||(On={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},bn={onClick:this.onTitleClick},qn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var an={},_r=Lt.direction,mn=_r==="rtl";er&&(mn?an.paddingRight=Lt.inlineIndent*Lt.level:an.paddingLeft=Lt.inlineIndent*Lt.level);var In={};this.getVisible()&&(In={"aria-owns":this.internalMenuId});var Wn=null;nr!=="horizontal"&&(Wn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Wn=m.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var Jn=m.createElement("div",Object(W.a)({ref:this.saveSubMenuTitle,style:an,className:"".concat(Xt,"-title"),role:"button"},qn,bn,{"aria-expanded":_t},In,{"aria-haspopup":"true",title:typeof Lt.title=="string"?Lt.title:void 0}),Lt.title,Wn||m.createElement("i",{className:"".concat(Xt,"-arrow")})),Ei=this.renderChildren(),yi=((xt=Lt.parentMenu)===null||xt===void 0?void 0:xt.isRootMenu)?Lt.parentMenu.props.getPopupContainer:function(ar){return ar.parentNode},mi=qr[nr],Vi=Lt.popupOffset?{offset:Lt.popupOffset}:{},la=t()((Tt={},Object(f.a)(Tt,Lt.popupClassName,Lt.popupClassName&&!er),Object(f.a)(Tt,"".concat(Xt,"-rtl"),mn),Tt)),Gi=Lt.disabled,ia=Lt.triggerSubMenuAction,$i=Lt.subMenuOpenDelay,xn=Lt.forceSubMenuRender,Ti=Lt.subMenuCloseDelay,Ji=Lt.builtinPlacements;tt.forEach(function(ar){return delete Lt[ar]}),delete Lt.onClick;var Wi=mn?Object(o.a)(Object(o.a)({},or),Ji):Object(o.a)(Object(o.a)({},mt),Ji);delete Lt.direction;var qi=this.getBaseProps(),Ir=er?null:this.getMotion(qi.mode,qi.visible);return m.createElement("li",Object(W.a)({},Lt,On,{className:br,role:"menuitem"}),m.createElement(Ut.a,{prefixCls:Xt,popupClassName:t()("".concat(Xt,"-popup"),la),getPopupContainer:yi,builtinPlacements:Wi,popupPlacement:mi,popupVisible:er?!1:_t,popupAlign:Vi,popup:er?null:Ei,action:Gi||er?[]:[ia],mouseEnterDelay:$i,mouseLeaveDelay:Ti,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:xn,popupMotion:Ir},Jn),er?Ei:null)}}]),kn}(m.Component);$t.defaultProps={onMouseEnter:ue,onMouseLeave:ue,onTitleMouseEnter:ue,onTitleMouseLeave:ue,onTitleClick:ue,manualRef:ue,mode:"vertical",title:""};var Lr=Object(V.b)(function(Vr,fn){var kn=Vr.openKeys,It=Vr.activeKey,yt=Vr.selectedKeys,xt=fn.eventKey,Tt=fn.subMenuKey;return{isOpen:kn.indexOf(xt)>-1,active:It[Tt]===xt,selectedKeys:yt}})($t);Lr.isSubMenu=!0;var pt=Lr,qt="menuitem-overflowed",vr=.5,pn=function(Vr){Object(g.a)(kn,Vr);var fn=Object(A.a)(kn);function kn(){var It;return Object(c.a)(this,kn),It=fn.apply(this,arguments),It.resizeObserver=null,It.mutationObserver=null,It.originalTotalWidth=0,It.overflowedItems=[],It.menuItemSizes=[],It.cancelFrameId=null,It.state={lastVisibleIndex:void 0},It.childRef=m.createRef(),It.getMenuItemNodes=function(){var yt=It.props.prefixCls,xt=It.childRef.current;return xt?[].slice.call(xt.children).filter(function(Tt){return Tt.className.split(" ").indexOf("".concat(yt,"-overflowed-submenu"))<0}):[]},It.getOverflowedSubMenuItem=function(yt,xt,Tt){var Lt=It.props,_t=Lt.overflowedIndicator,Xt=Lt.level,er=Lt.mode,nr=Lt.prefixCls,br=Lt.theme;if(Xt!==1||er!=="horizontal")return null;var On=It.props.children[0],bn=On.props,qn=bn.children,an=bn.title,_r=bn.style,mn=Object(u.a)(bn,["children","title","style"]),In=Object(o.a)({},_r),Wn="".concat(yt,"-overflowed-indicator"),Jn="".concat(yt,"-overflowed-indicator");xt.length===0&&Tt!==!0?In=Object(o.a)(Object(o.a)({},In),{},{display:"none"}):Tt&&(In=Object(o.a)(Object(o.a)({},In),{},{visibility:"hidden",position:"absolute"}),Wn="".concat(Wn,"-placeholder"),Jn="".concat(Jn,"-placeholder"));var Ei=br?"".concat(nr,"-").concat(br):"",yi={};return tt.forEach(function(mi){mn[mi]!==void 0&&(yi[mi]=mn[mi])}),m.createElement(pt,Object(W.a)({title:_t,className:"".concat(nr,"-overflowed-submenu"),popupClassName:Ei},yi,{key:Wn,eventKey:Jn,disabled:!1,style:In}),xt)},It.setChildrenWidthAndResize=function(){if(It.props.mode!=="horizontal")return;var yt=It.childRef.current;if(!yt)return;var xt=yt.children;if(!xt||xt.length===0)return;var Tt=yt.children[xt.length-1];st(Tt,"display","inline-block");var Lt=It.getMenuItemNodes(),_t=Lt.filter(function(Xt){return Xt.className.split(" ").indexOf(qt)>=0});_t.forEach(function(Xt){st(Xt,"display","inline-block")}),It.menuItemSizes=Lt.map(function(Xt){return ke(Xt,!0)}),_t.forEach(function(Xt){st(Xt,"display","none")}),It.overflowedIndicatorWidth=ke(yt.children[yt.children.length-1],!0),It.originalTotalWidth=It.menuItemSizes.reduce(function(Xt,er){return Xt+er},0),It.handleResize(),st(Tt,"display","none")},It.handleResize=function(){if(It.props.mode!=="horizontal")return;var yt=It.childRef.current;if(!yt)return;var xt=ke(yt);It.overflowedItems=[];var Tt=0,Lt;It.originalTotalWidth>xt+vr&&(Lt=-1,It.menuItemSizes.forEach(function(_t){Tt+=_t,Tt+It.overflowedIndicatorWidth<=xt&&(Lt+=1)})),It.setState({lastVisibleIndex:Lt})},It}return Object(h.a)(kn,[{key:"componentDidMount",value:function(){var yt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var xt=this.childRef.current;if(!xt)return;this.resizeObserver=new T.default(function(Tt){Tt.forEach(function(){var Lt=yt.cancelFrameId;cancelAnimationFrame(Lt),yt.cancelFrameId=requestAnimationFrame(yt.setChildrenWidthAndResize)})}),[].slice.call(xt.children).concat(xt).forEach(function(Tt){yt.resizeObserver.observe(Tt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){yt.resizeObserver.disconnect(),[].slice.call(xt.children).concat(xt).forEach(function(Tt){yt.resizeObserver.observe(Tt)}),yt.setChildrenWidthAndResize()}),this.mutationObserver.observe(xt,{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(yt){var xt=this,Tt=this.state.lastVisibleIndex;return(yt||[]).reduce(function(Lt,_t,Xt){var er=_t;if(xt.props.mode==="horizontal"){var nr=xt.getOverflowedSubMenuItem(_t.props.eventKey,[]);Tt!==void 0&&xt.props.className.indexOf("".concat(xt.props.prefixCls,"-root"))!==-1&&(Xt>Tt&&(er=m.cloneElement(_t,{style:{display:"none"},eventKey:"".concat(_t.props.eventKey,"-hidden"),className:"".concat(qt)})),Xt===Tt+1&&(xt.overflowedItems=yt.slice(Tt+1).map(function(On){return m.cloneElement(On,{key:On.props.eventKey,mode:"vertical-left"})}),nr=xt.getOverflowedSubMenuItem(_t.props.eventKey,xt.overflowedItems)));var br=[].concat(Object(l.a)(Lt),[nr,er]);return Xt===yt.length-1&&br.push(xt.getOverflowedSubMenuItem(_t.props.eventKey,[],!0)),br}return[].concat(Object(l.a)(Lt),[er])},[])}},{key:"render",value:function(){var yt=this.props,xt=yt.visible,Tt=yt.prefixCls,Lt=yt.overflowedIndicator,_t=yt.mode,Xt=yt.level,er=yt.tag,nr=yt.children,br=yt.theme,On=Object(u.a)(yt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),bn=er;return m.createElement(bn,Object(W.a)({ref:this.childRef},On),this.renderChildren(nr))}}]),kn}(m.Component);pn.defaultProps={tag:"div",className:""};var fr=pn;function gr(Vr){return Vr.length?Vr.every(function(fn){return!!fn.props.disabled}):!0}function dn(Vr,fn,kn){var It=Vr.getState();Vr.setState({activeKey:Object(o.a)(Object(o.a)({},It.activeKey),{},Object(f.a)({},fn,kn))})}function Qt(Vr){return Vr.eventKey||"0-menu-"}function sr(Vr,fn){var kn=fn,It=Vr.children,yt=Vr.eventKey;if(kn){var xt;if(Je(It,function(Tt,Lt){Tt&&Tt.props&&!Tt.props.disabled&&kn===ge(Tt,yt,Lt)&&(xt=!0)}),xt)return kn}return kn=null,Vr.defaultActiveFirst&&Je(It,function(Tt,Lt){!kn&&Tt&&!Tt.props.disabled&&(kn=ge(Tt,yt,Lt))}),kn}function Qr(Vr){if(!Vr)return;var fn=this.instanceArray.indexOf(Vr);fn!==-1?this.instanceArray[fn]=Vr:this.instanceArray.push(Vr)}var Cn=function(Vr){Object(g.a)(kn,Vr);var fn=Object(A.a)(kn);function kn(It){var yt;return Object(c.a)(this,kn),yt=fn.call(this,It),yt.onKeyDown=function(xt,Tt){var Lt=xt.keyCode,_t;if(yt.getFlatInstanceArray().forEach(function(er){er&&er.props.active&&er.onKeyDown&&(_t=er.onKeyDown(xt))}),_t)return 1;var Xt=null;return(Lt===F.a.UP||Lt===F.a.DOWN)&&(Xt=yt.step(Lt===F.a.UP?-1:1)),Xt?(xt.preventDefault(),dn(yt.props.store,Qt(yt.props),Xt.props.eventKey),typeof Tt=="function"&&Tt(Xt),1):void 0},yt.onItemHover=function(xt){var Tt=xt.key,Lt=xt.hover;dn(yt.props.store,Qt(yt.props),Lt?Tt:null)},yt.onDeselect=function(xt){yt.props.onDeselect(xt)},yt.onSelect=function(xt){yt.props.onSelect(xt)},yt.onClick=function(xt){yt.props.onClick(xt)},yt.onOpenChange=function(xt){yt.props.onOpenChange(xt)},yt.onDestroy=function(xt){yt.props.onDestroy(xt)},yt.getFlatInstanceArray=function(){return yt.instanceArray},yt.step=function(xt){var Tt=yt.getFlatInstanceArray(),Lt=yt.props.store.getState().activeKey[Qt(yt.props)],_t=Tt.length;if(!_t)return null;xt<0&&(Tt=Tt.concat().reverse());var Xt=-1;if(Tt.every(function(On,bn){return On&&On.props.eventKey===Lt?(Xt=bn,!1):!0}),!yt.props.defaultActiveFirst&&Xt!==-1&&gr(Tt.slice(Xt,_t-1)))return;var er=(Xt+1)%_t,nr=er;do{var br=Tt[nr];if(!br||br.props.disabled)nr=(nr+1)%_t;else return br}while(nr!==er);return null},yt.renderCommonMenuItem=function(xt,Tt,Lt){var _t=yt.props.store.getState(),Xt=Object(H.a)(yt),er=Xt.props,nr=ge(xt,er.eventKey,Tt),br=xt.props;if(!br||typeof xt.type=="string")return xt;var On=nr===_t.activeKey,bn=Object(o.a)(Object(o.a)({mode:br.mode||er.mode,level:er.level,inlineIndent:er.inlineIndent,renderMenuItem:yt.renderMenuItem,rootPrefixCls:er.prefixCls,index:Tt,parentMenu:er.parentMenu,manualRef:br.disabled?void 0:Object(G.a)(xt.ref,Qr.bind(Object(H.a)(yt))),eventKey:nr,active:!br.disabled&&On,multiple:er.multiple,onClick:function(an){(br.onClick||ue)(an),yt.onClick(an)},onItemHover:yt.onItemHover,motion:er.motion,subMenuOpenDelay:er.subMenuOpenDelay,subMenuCloseDelay:er.subMenuCloseDelay,forceSubMenuRender:er.forceSubMenuRender,onOpenChange:yt.onOpenChange,onDeselect:yt.onDeselect,onSelect:yt.onSelect,builtinPlacements:er.builtinPlacements,itemIcon:br.itemIcon||yt.props.itemIcon,expandIcon:br.expandIcon||yt.props.expandIcon},Lt),{},{direction:er.direction});return(er.mode==="inline"||Ve())&&(bn.triggerSubMenuAction="click"),m.cloneElement(xt,Object(o.a)(Object(o.a)({},bn),{},{key:nr||Tt}))},yt.renderMenuItem=function(xt,Tt,Lt){if(!xt)return null;var _t=yt.props.store.getState(),Xt={openKeys:_t.openKeys,selectedKeys:_t.selectedKeys,triggerSubMenuAction:yt.props.triggerSubMenuAction,subMenuKey:Lt};return yt.renderCommonMenuItem(xt,Tt,Xt)},It.store.setState({activeKey:Object(o.a)(Object(o.a)({},It.store.getState().activeKey),{},Object(f.a)({},It.eventKey,sr(It,It.activeKey)))}),yt.instanceArray=[],yt}return Object(h.a)(kn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(yt){return this.props.visible||yt.visible||this.props.className!==yt.className||!q()(this.props.style,yt.style)}},{key:"componentDidUpdate",value:function(yt){var xt=this.props,Tt="activeKey"in xt?xt.activeKey:xt.store.getState().activeKey[Qt(xt)],Lt=sr(xt,Tt);if(Lt!==Tt)dn(xt.store,Qt(xt),Lt);else if("activeKey"in yt){var _t=sr(yt,yt.activeKey);Lt!==_t&&dn(xt.store,Qt(xt),Lt)}}},{key:"render",value:function(){var yt=this,xt=Object(W.a)({},this.props);this.instanceArray=[];var Tt=t()(xt.prefixCls,xt.className,"".concat(xt.prefixCls,"-").concat(xt.mode)),Lt={className:Tt,role:xt.role||"menu"};xt.id&&(Lt.id=xt.id),xt.focusable&&(Lt.tabIndex=0,Lt.onKeyDown=this.onKeyDown);var _t=xt.prefixCls,Xt=xt.eventKey,er=xt.visible,nr=xt.level,br=xt.mode,On=xt.overflowedIndicator,bn=xt.theme;return tt.forEach(function(qn){return delete xt[qn]}),delete xt.onClick,m.createElement(fr,Object(W.a)({},xt,{prefixCls:_t,mode:br,tag:"ul",level:nr,theme:bn,visible:er,overflowedIndicator:On},Lt),Object(a.a)(xt.children).map(function(qn,an){return yt.renderMenuItem(qn,an,Xt||"0-menu-")}))}}]),kn}(m.Component);Cn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ue};var Fn=Object(V.b)()(Cn),ti=Fn;function ki(Vr,fn,kn){var It=Vr.prefixCls,yt=Vr.motion,xt=Vr.defaultMotions,Tt=xt===void 0?{}:xt,Lt=Vr.openAnimation,_t=Vr.openTransitionName,Xt=fn.switchingModeFromInline;if(yt)return yt;if(Object(se.a)(Lt)==="object"&&Lt)Object(w.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Lt=="string")return{motionName:"".concat(It,"-open-").concat(Lt)};if(_t)return{motionName:_t};var er=Tt[kn];return er||(Xt?null:Tt.other)}var Dn=function(Vr){Object(g.a)(kn,Vr);var fn=Object(A.a)(kn);function kn(It){var yt;Object(c.a)(this,kn),yt=fn.call(this,It),yt.onSelect=function(Lt){var _t=Object(H.a)(yt),Xt=_t.props;if(Xt.selectable){var er=yt.store.getState(),nr=er.selectedKeys,br=Lt.key;Xt.multiple?nr=nr.concat([br]):nr=[br],"selectedKeys"in Xt||yt.store.setState({selectedKeys:nr}),Xt.onSelect(Object(o.a)(Object(o.a)({},Lt),{},{selectedKeys:nr}))}},yt.onClick=function(Lt){var _t=yt.getRealMenuMode(),Xt=Object(H.a)(yt),er=Xt.store,nr=Xt.props.onOpenChange;_t!=="inline"&&!("openKeys"in yt.props)&&(er.setState({openKeys:[]}),nr([])),yt.props.onClick(Lt)},yt.onKeyDown=function(Lt,_t){yt.innerMenu.getWrappedInstance().onKeyDown(Lt,_t)},yt.onOpenChange=function(Lt){var _t=Object(H.a)(yt),Xt=_t.props,er=yt.store.getState().openKeys.concat(),nr=!1,br=function(bn){var qn=!1;if(bn.open)qn=er.indexOf(bn.key)===-1,qn&&er.push(bn.key);else{var an=er.indexOf(bn.key);qn=an!==-1,qn&&er.splice(an,1)}nr=nr||qn};Array.isArray(Lt)?Lt.forEach(br):br(Lt),nr&&("openKeys"in yt.props||yt.store.setState({openKeys:er}),Xt.onOpenChange(er))},yt.onDeselect=function(Lt){var _t=Object(H.a)(yt),Xt=_t.props;if(Xt.selectable){var er=yt.store.getState().selectedKeys.concat(),nr=Lt.key,br=er.indexOf(nr);br!==-1&&er.splice(br,1),"selectedKeys"in Xt||yt.store.setState({selectedKeys:er}),Xt.onDeselect(Object(o.a)(Object(o.a)({},Lt),{},{selectedKeys:er}))}},yt.onMouseEnter=function(Lt){yt.restoreModeVerticalFromInline();var _t=yt.props.onMouseEnter;_t&&_t(Lt)},yt.onTransitionEnd=function(Lt){var _t=Lt.propertyName==="width"&&Lt.target===Lt.currentTarget,Xt=Lt.target.className,er=Object.prototype.toString.call(Xt)==="[object SVGAnimatedString]"?Xt.animVal:Xt,nr=Lt.propertyName==="font-size"&&er.indexOf("anticon")>=0;(_t||nr)&&yt.restoreModeVerticalFromInline()},yt.setInnerMenu=function(Lt){yt.innerMenu=Lt},yt.isRootMenu=!0;var xt=It.defaultSelectedKeys,Tt=It.defaultOpenKeys;return"selectedKeys"in It&&(xt=It.selectedKeys||[]),"openKeys"in It&&(Tt=It.openKeys||[]),yt.store=Object(V.c)({selectedKeys:xt,openKeys:Tt,activeKey:{"0-menu-":sr(It,It.activeKey)}}),yt.state={switchingModeFromInline:!1,prevProps:It,inlineOpenKeys:[],store:yt.store},yt}return Object(h.a)(kn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(yt){var xt=this.props,Tt=xt.siderCollapsed,Lt=xt.inlineCollapsed,_t=xt.onOpenChange;(!yt.inlineCollapsed&&Lt||!yt.siderCollapsed&&Tt)&&_t([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var yt=this.props.collapsedWidth,xt=this.store,Tt=this.prevOpenKeys,Lt=this.getInlineCollapsed()&&(yt===0||yt==="0"||yt==="0px");Lt?(this.prevOpenKeys=xt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Tt&&(this.store.setState({openKeys:Tt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var yt=this.props.mode,xt=this.state.switchingModeFromInline,Tt=this.getInlineCollapsed();return xt&&Tt?"inline":Tt?"vertical":yt}},{key:"getInlineCollapsed",value:function(){var yt=this.props,xt=yt.inlineCollapsed,Tt=yt.siderCollapsed;return Tt!==void 0?Tt:xt}},{key:"restoreModeVerticalFromInline",value:function(){var yt=this.state.switchingModeFromInline;yt&&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 yt=Object(o.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),xt=this.getRealMenuMode();return yt.className+=" ".concat(yt.prefixCls,"-root"),yt.direction==="rtl"&&(yt.className+=" ".concat(yt.prefixCls,"-rtl")),yt=Object(o.a)(Object(o.a)({},yt),{},{mode:xt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ki(this.props,this.state,xt)}),delete yt.openAnimation,delete yt.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(ti,Object(W.a)({},yt,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(yt,xt){var Tt=xt.prevProps,Lt=xt.store,_t=Lt.getState(),Xt={},er={prevProps:yt};return Tt.mode==="inline"&&yt.mode!=="inline"&&(er.switchingModeFromInline=!0),"openKeys"in yt?Xt.openKeys=yt.openKeys||[]:((yt.inlineCollapsed&&!Tt.inlineCollapsed||yt.siderCollapsed&&!Tt.siderCollapsed)&&(er.switchingModeFromInline=!0,er.inlineOpenKeys=_t.openKeys,Xt.openKeys=[]),(!yt.inlineCollapsed&&Tt.inlineCollapsed||!yt.siderCollapsed&&Tt.siderCollapsed)&&(Xt.openKeys=xt.inlineOpenKeys,er.inlineOpenKeys=[])),Object.keys(Xt).length&&Lt.setState(Xt),er}}]),kn}(m.Component);Dn.defaultProps={selectable:!0,onClick:ue,onSelect:ue,onOpenChange:ue,onDeselect:ue,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:m.createElement("span",null,"\xB7\xB7\xB7")};var Bn=Dn,Ft=function(Vr){Object(g.a)(kn,Vr);var fn=Object(A.a)(kn);function kn(){var It;return Object(c.a)(this,kn),It=fn.apply(this,arguments),It.onKeyDown=function(yt){var xt=yt.keyCode;return xt===F.a.ENTER?(It.onClick(yt),!0):void 0},It.onMouseLeave=function(yt){var xt=It.props,Tt=xt.eventKey,Lt=xt.onItemHover,_t=xt.onMouseLeave;Lt({key:Tt,hover:!1}),_t({key:Tt,domEvent:yt})},It.onMouseEnter=function(yt){var xt=It.props,Tt=xt.eventKey,Lt=xt.onItemHover,_t=xt.onMouseEnter;Lt({key:Tt,hover:!0}),_t({key:Tt,domEvent:yt})},It.onClick=function(yt){var xt=It.props,Tt=xt.eventKey,Lt=xt.multiple,_t=xt.onClick,Xt=xt.onSelect,er=xt.onDeselect,nr=xt.isSelected,br={key:Tt,keyPath:[Tt],item:Object(H.a)(It),domEvent:yt};_t(br),Lt?nr?er(br):Xt(br):nr||Xt(br)},It.saveNode=function(yt){It.node=yt},It}return Object(h.a)(kn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var yt=this.props;yt.onDestroy&&yt.onDestroy(yt.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 yt,xt=Object(o.a)({},this.props),Tt=t()(this.getPrefixCls(),xt.className,(yt={},Object(f.a)(yt,this.getActiveClassName(),!xt.disabled&&xt.active),Object(f.a)(yt,this.getSelectedClassName(),xt.isSelected),Object(f.a)(yt,this.getDisabledClassName(),xt.disabled),yt)),Lt=Object(o.a)(Object(o.a)({},xt.attribute),{},{title:typeof xt.title=="string"?xt.title:void 0,className:Tt,role:xt.role||"menuitem","aria-disabled":xt.disabled});xt.role==="option"?Lt=Object(o.a)(Object(o.a)({},Lt),{},{role:"option","aria-selected":xt.isSelected}):(xt.role===null||xt.role==="none")&&(Lt.role="none");var _t={onClick:xt.disabled?null:this.onClick,onMouseLeave:xt.disabled?null:this.onMouseLeave,onMouseEnter:xt.disabled?null:this.onMouseEnter},Xt=Object(o.a)({},xt.style);xt.mode==="inline"&&(xt.direction==="rtl"?Xt.paddingRight=xt.inlineIndent*xt.level:Xt.paddingLeft=xt.inlineIndent*xt.level),tt.forEach(function(nr){return delete xt[nr]}),delete xt.direction;var er=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(er=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(W.a)({},Object(Q.a)(xt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Lt,_t,{style:Xt,ref:this.saveNode}),xt.children,er)}}]),kn}(m.Component);Ft.isMenuItem=!0,Ft.defaultProps={onSelect:ue,onMouseEnter:ue,onMouseLeave:ue,manualRef:ue};var vt=Object(V.b)(function(Vr,fn){var kn=Vr.activeKey,It=Vr.selectedKeys,yt=fn.eventKey,xt=fn.subMenuKey;return{active:kn[xt]===yt,isSelected:Array.isArray(It)?It.indexOf(yt)!==-1:It===yt}})(Ft),_e=vt,Ne=function(Vr){Object(g.a)(kn,Vr);var fn=Object(A.a)(kn);function kn(){var It;return Object(c.a)(this,kn),It=fn.apply(this,arguments),It.renderInnerMenuItem=function(yt){var xt=It.props,Tt=xt.renderMenuItem,Lt=xt.index;return Tt(yt,Lt,It.props.subMenuKey)},It}return Object(h.a)(kn,[{key:"render",value:function(){var yt=Object(W.a)({},this.props),xt=yt.className,Tt=xt===void 0?"":xt,Lt=yt.rootPrefixCls,_t="".concat(Lt,"-item-group-title"),Xt="".concat(Lt,"-item-group-list"),er=yt.title,nr=yt.children;return tt.forEach(function(br){return delete yt[br]}),delete yt.direction,m.createElement("li",Object(W.a)({},yt,{onClick:function(On){return On.stopPropagation()},className:"".concat(Tt," ").concat(Lt,"-item-group")}),m.createElement("div",{className:_t,title:typeof er=="string"?er:void 0},er),m.createElement("ul",{className:Xt},m.Children.map(nr,this.renderInnerMenuItem)))}}]),kn}(m.Component);Ne.isMenuItemGroup=!0,Ne.defaultProps={disabled:!0};var Ie=Ne,Ze=function(fn){var kn=fn.className,It=fn.rootPrefixCls,yt=fn.style;return m.createElement("li",{className:"".concat(kn," ").concat(It,"-item-divider"),style:yt})};Ze.defaultProps={disabled:!0,className:"",style:{}};var ct=Ze,gt=Bn,kt={adjustX:1,adjustY:1},xr=[0,0],Hr={topLeft:{points:["bl","tl"],overflow:kt,offset:[0,-4],targetOffset:xr},topCenter:{points:["bc","tc"],overflow:kt,offset:[0,-4],targetOffset:xr},topRight:{points:["br","tr"],overflow:kt,offset:[0,-4],targetOffset:xr},bottomLeft:{points:["tl","bl"],overflow:kt,offset:[0,4],targetOffset:xr},bottomCenter:{points:["tc","bc"],overflow:kt,offset:[0,4],targetOffset:xr},bottomRight:{points:["tr","br"],overflow:kt,offset:[0,4],targetOffset:xr}},on=Hr,Nt=F.a.ESC,ot=F.a.TAB;function dt(Vr){var fn=Vr.visible,kn=Vr.setTriggerVisible,It=Vr.triggerRef,yt=Vr.menuRef,xt=Vr.onVisibleChange,Tt=Vr.autoFocus,Lt=m.useRef(!1),_t=function(){if(fn&&It.current){var br,On,bn,qn;(br=It.current)===null||br===void 0||((On=br.triggerRef)===null||On===void 0||((bn=On.current)===null||bn===void 0||((qn=bn.focus)===null||qn===void 0)))||qn.call(bn),kn(!1),typeof xt=="function"&&xt(!1)}},Xt=function(){var br,On;(br=yt.current)===null||br===void 0||((On=br.focus)===null||On===void 0)||On.call(br),Lt.current=!0},er=function(br){var On;switch(br.keyCode){case Nt:_t();break;case ot:!Lt.current&&((On=yt.current)===null||On===void 0?void 0:On.focus)?(br.preventDefault(),Xt()):_t();break}};m.useEffect(function(){return fn?(window.addEventListener("keydown",er),Tt&&Object(ir.a)(Xt,3),function(){window.removeEventListener("keydown",er),Lt.current=!1}):function(){Lt.current=!1}},[fn])}var Yt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Pt(Vr,fn){var kn=Vr.arrow,It=kn===void 0?!1:kn,yt=Vr.prefixCls,xt=yt===void 0?"rc-dropdown":yt,Tt=Vr.transitionName,Lt=Vr.animation,_t=Vr.align,Xt=Vr.placement,er=Xt===void 0?"bottomLeft":Xt,nr=Vr.placements,br=nr===void 0?on:nr,On=Vr.getPopupContainer,bn=Vr.showAction,qn=Vr.hideAction,an=Vr.overlayClassName,_r=Vr.overlayStyle,mn=Vr.visible,In=Vr.trigger,Wn=In===void 0?["hover"]:In,Jn=Vr.autoFocus,Ei=Object(u.a)(Vr,Yt),yi=m.useState(),mi=Object(d.a)(yi,2),Vi=mi[0],la=mi[1],Gi="visible"in Vr?mn:Vi,ia=m.useRef(null);m.useImperativeHandle(fn,function(){return ia.current});var $i=m.useRef(null),xn="".concat(xt,"-menu");dt({visible:Gi,setTriggerVisible:la,triggerRef:ia,menuRef:$i,onVisibleChange:Vr.onVisibleChange,autoFocus:Jn});var Ti=function(){var Jr=Vr.overlay,wn;return typeof Jr=="function"?wn=Jr():wn=Jr,wn},Ji=function(Jr){var wn=Vr.onOverlayClick,bt=Ti().props;la(!1),wn&&wn(Jr),bt.onClick&&bt.onClick(Jr)},Wi=function(Jr){var wn=Vr.onVisibleChange;la(Jr),typeof wn=="function"&&wn(Jr)},qi=function(){var Jr,wn=Ti(),bt=Object(x.a)($i,wn.ref),mr=(Jr={prefixCls:xn},Object(f.a)(Jr,"data-dropdown-inject",!0),Object(f.a)(Jr,"onClick",Ji),Object(f.a)(Jr,"ref",Object(x.c)(wn)?bt:void 0),Jr);return typeof wn.type=="string"&&(delete mr.prefixCls,delete mr["data-dropdown-inject"]),m.createElement(m.Fragment,null,It&&m.createElement("div",{className:"".concat(xt,"-arrow")}),m.cloneElement(wn,mr))},Ir=function(){var Jr=Vr.overlay;return typeof Jr=="function"?qi:qi()},ar=function(){var Jr=Vr.minOverlayWidthMatchTrigger,wn=Vr.alignPoint;return"minOverlayWidthMatchTrigger"in Vr?Jr:!wn},nn=function(){var Jr=Vr.openClassName;return Jr!==void 0?Jr:"".concat(xt,"-open")},Gt=function(){var Jr=Vr.children,wn=Jr.props?Jr.props:{},bt=t()(wn.className,nn());return Gi&&Jr?m.cloneElement(Jr,{className:bt}):Jr},wr=qn;return!wr&&Wn.indexOf("contextMenu")!==-1&&(wr=["click"]),m.createElement(Ut.a,Object(o.a)(Object(o.a)({builtinPlacements:br},Ei),{},{prefixCls:xt,ref:ia,popupClassName:t()(an,Object(f.a)({},"".concat(xt,"-show-arrow"),It)),popupStyle:_r,action:Wn,showAction:bn,hideAction:wr||[],popupPlacement:er,popupAlign:_t,popupTransitionName:Tt,popupAnimation:Lt,popupVisible:Gi,stretch:ar()?"minWidth":"",popup:Ir(),onPopupVisibleChange:Wi,getPopupContainer:On}),Gt())}var Et=m.forwardRef(Pt),Bt=Et;function wt(Vr,fn){var kn=Vr.prefixCls,It=Vr.editable,yt=Vr.locale,xt=Vr.style;return!It||It.showAdd===!1?null:m.createElement("button",{ref:fn,type:"button",className:"".concat(kn,"-nav-add"),style:xt,"aria-label":(yt==null?void 0:yt.addAriaLabel)||"Add tab",onClick:function(Lt){It.onEdit("add",{event:Lt})}},It.addIcon||"+")}var Mt=m.forwardRef(wt);function Nr(Vr,fn){var kn=Vr.prefixCls,It=Vr.id,yt=Vr.tabs,xt=Vr.locale,Tt=Vr.mobile,Lt=Vr.moreIcon,_t=Lt===void 0?"More":Lt,Xt=Vr.moreTransitionName,er=Vr.style,nr=Vr.className,br=Vr.editable,On=Vr.tabBarGutter,bn=Vr.rtl,qn=Vr.onTabClick,an=Object(m.useState)(!1),_r=Object(d.a)(an,2),mn=_r[0],In=_r[1],Wn=Object(m.useState)(null),Jn=Object(d.a)(Wn,2),Ei=Jn[0],yi=Jn[1],mi="".concat(It,"-more-popup"),Vi="".concat(kn,"-dropdown"),la=Ei!==null?"".concat(mi,"-").concat(Ei):null,Gi=xt==null?void 0:xt.dropdownAriaLabel,ia=m.createElement(gt,{onClick:function(Ir){var ar=Ir.key,nn=Ir.domEvent;qn(ar,nn),In(!1)},id:mi,tabIndex:-1,role:"listbox","aria-activedescendant":la,selectedKeys:[Ei],"aria-label":Gi!==void 0?Gi:"expanded dropdown"},yt.map(function(qi){return m.createElement(_e,{key:qi.key,id:"".concat(mi,"-").concat(qi.key),role:"option","aria-controls":It&&"".concat(It,"-panel-").concat(qi.key),disabled:qi.disabled},qi.tab)}));function $i(qi){for(var Ir=yt.filter(function(Pr){return!Pr.disabled}),ar=Ir.findIndex(function(Pr){return Pr.key===Ei})||0,nn=Ir.length,Gt=0;Gt<nn;Gt+=1){ar=(ar+qi+nn)%nn;var wr=Ir[ar];if(!wr.disabled){yi(wr.key);return}}}function xn(qi){var Ir=qi.which;if(!mn){[F.a.DOWN,F.a.SPACE,F.a.ENTER].includes(Ir)&&(In(!0),qi.preventDefault());return}switch(Ir){case F.a.UP:$i(-1),qi.preventDefault();break;case F.a.DOWN:$i(1),qi.preventDefault();break;case F.a.ESC:In(!1);break;case F.a.SPACE:case F.a.ENTER:Ei!==null&&qn(Ei,qi);break}}Object(m.useEffect)(function(){var qi=document.getElementById(la);qi&&qi.scrollIntoView&&qi.scrollIntoView(!1)},[Ei]),Object(m.useEffect)(function(){mn||yi(null)},[mn]);var Ti=Object(f.a)({},bn?"marginLeft":"marginRight",On);yt.length||(Ti.visibility="hidden",Ti.order=1);var Ji=t()(Object(f.a)({},"".concat(Vi,"-rtl"),bn)),Wi=Tt?null:m.createElement(Bt,{prefixCls:Vi,overlay:ia,trigger:["hover"],visible:mn,transitionName:Xt,onVisibleChange:In,overlayClassName:Ji,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(kn,"-nav-more"),style:Ti,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":mi,id:"".concat(It,"-more"),"aria-expanded":mn,onKeyDown:xn},_t));return m.createElement("div",{className:t()("".concat(kn,"-nav-operations"),nr),style:er,ref:fn},Wi,m.createElement(Mt,{prefixCls:kn,locale:xt,editable:br}))}var Tr=m.forwardRef(Nr),yr=Object(m.createContext)(null),en=.1,sn=.01,Vn=20,jn=Math.pow(.995,Vn);function ri(){var Vr=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(Vr)||/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(Vr.substr(0,4)))}function ci(Vr,fn){var kn=Object(m.useState)(),It=Object(d.a)(kn,2),yt=It[0],xt=It[1],Tt=Object(m.useState)(0),Lt=Object(d.a)(Tt,2),_t=Lt[0],Xt=Lt[1],er=Object(m.useState)(0),nr=Object(d.a)(er,2),br=nr[0],On=nr[1],bn=Object(m.useState)(),qn=Object(d.a)(bn,2),an=qn[0],_r=qn[1],mn=Object(m.useRef)();function In(Gi){var ia=Gi.touches[0],$i=ia.screenX,xn=ia.screenY;xt({x:$i,y:xn}),window.clearInterval(mn.current)}function Wn(Gi){if(!yt)return;Gi.preventDefault();var ia=Gi.touches[0],$i=ia.screenX,xn=ia.screenY;xt({x:$i,y:xn});var Ti=$i-yt.x,Ji=xn-yt.y;fn(Ti,Ji);var Wi=Date.now();Xt(Wi),On(Wi-_t),_r({x:Ti,y:Ji})}function Jn(){if(!yt)return;if(xt(null),_r(null),an){var Gi=an.x/br,ia=an.y/br,$i=Math.abs(Gi),xn=Math.abs(ia);if(Math.max($i,xn)<en)return;var Ti=Gi,Ji=ia;mn.current=window.setInterval(function(){if(Math.abs(Ti)<sn&&Math.abs(Ji)<sn){window.clearInterval(mn.current);return}Ti*=jn,Ji*=jn,fn(Ti*Vn,Ji*Vn)},Vn)}}var Ei=Object(m.useRef)(0),yi=Object(m.useRef)(!1),mi=Object(m.useRef)();function Vi(Gi){var ia=Gi.deltaX,$i=Gi.deltaY,xn=0,Ti=Math.abs(ia),Ji=Math.abs($i);Ti===Ji?xn=mi.current==="x"?ia:$i:Ti>Ji?(xn=ia,mi.current="x"):(xn=$i,mi.current="y");var Wi=Date.now();Wi-Ei.current>100&&(yi.current=!1),(fn(-xn,-xn)||yi.current)&&(Gi.preventDefault(),yi.current=!0),Ei.current=Wi}var la=Object(m.useRef)(null);la.current={onTouchStart:In,onTouchMove:Wn,onTouchEnd:Jn,onWheel:Vi},m.useEffect(function(){function Gi(Ti){la.current.onTouchStart(Ti)}function ia(Ti){la.current.onTouchMove(Ti)}function $i(Ti){la.current.onTouchEnd(Ti)}function xn(Ti){la.current.onWheel(Ti)}return document.addEventListener("touchmove",ia,{passive:!1}),document.addEventListener("touchend",$i,{passive:!1}),Vr.current.addEventListener("touchstart",Gi,{passive:!1}),Vr.current.addEventListener("wheel",xn),function(){document.removeEventListener("touchmove",ia),document.removeEventListener("touchend",$i)}},[])}function gi(){var Vr=Object(m.useRef)(new Map);function fn(It){return Vr.current.has(It)||Vr.current.set(It,m.createRef()),Vr.current.get(It)}function kn(It){Vr.current.delete(It)}return[fn,kn]}function Ni(Vr,fn){var kn=m.useRef(Vr),It=m.useState({}),yt=Object(d.a)(It,2),xt=yt[1];function Tt(Lt){var _t=typeof Lt=="function"?Lt(kn.current):Lt;_t!==kn.current&&fn(_t,kn.current),kn.current=_t,xt({})}return[kn.current,Tt]}var Qe=function(fn){var kn=fn.position,It=fn.prefixCls,yt=fn.extra;if(!yt)return null;var xt,Tt=yt;return kn==="right"&&(xt=Tt.right||!Tt.left&&Tt||null),kn==="left"&&(xt=Tt.left||null),xt?m.createElement("div",{className:"".concat(It,"-extra-content")},xt):null};function Se(Vr,fn){var kn,It=m.useContext(yr),yt=It.prefixCls,xt=It.tabs,Tt=Vr.className,Lt=Vr.style,_t=Vr.id,Xt=Vr.animated,er=Vr.activeKey,nr=Vr.rtl,br=Vr.extra,On=Vr.editable,bn=Vr.locale,qn=Vr.tabPosition,an=Vr.tabBarGutter,_r=Vr.children,mn=Vr.onTabClick,In=Vr.onTabScroll,Wn=Object(m.useRef)(),Jn=Object(m.useRef)(),Ei=Object(m.useRef)(),yi=Object(m.useRef)(),mi=gi(),Vi=Object(d.a)(mi,2),la=Vi[0],Gi=Vi[1],ia=qn==="top"||qn==="bottom",$i=Ni(0,function(Qn,Zn){ia&&In&&In({direction:Qn>Zn?"left":"right"})}),xn=Object(d.a)($i,2),Ti=xn[0],Ji=xn[1],Wi=Ni(0,function(Qn,Zn){!ia&&In&&In({direction:Qn>Zn?"top":"bottom"})}),qi=Object(d.a)(Wi,2),Ir=qi[0],ar=qi[1],nn=Object(m.useState)(0),Gt=Object(d.a)(nn,2),wr=Gt[0],Pr=Gt[1],Jr=Object(m.useState)(0),wn=Object(d.a)(Jr,2),bt=wn[0],mr=wn[1],Ar=Object(m.useState)(0),Ur=Object(d.a)(Ar,2),un=Ur[0],An=Ur[1],ln=Object(m.useState)(0),Hn=Object(d.a)(ln,2),Ln=Hn[0],ni=Hn[1],Ai=Object(m.useState)(null),ii=Object(d.a)(Ai,2),_i=ii[0],Ri=ii[1],ji=Object(m.useState)(null),wi=Object(d.a)(ji,2),Ii=wi[0],Oi=wi[1],Ui=Object(m.useState)(0),Zi=Object(d.a)(Ui,2),ma=Zi[0],Hi=Zi[1],xa=Object(m.useState)(0),Ea=Object(d.a)(xa,2),ta=Ea[0],ra=Ea[1],ga=O(new Map),sa=Object(d.a)(ga,2),Ba=sa[0],va=sa[1],Ia=X(xt,Ba,wr),za="".concat(yt,"-nav-operations-hidden"),Va=0,Ya=0;ia?nr?(Va=0,Ya=Math.max(0,wr-_i)):(Va=Math.min(0,_i-wr),Ya=0):(Va=Math.min(0,Ii-bt),Ya=0);function Bi(Qn){return Qn<Va?[Va,!1]:Qn>Ya?[Ya,!1]:[Qn,!0]}var ro=Object(m.useRef)(),lo=Object(m.useState)(),no=Object(d.a)(lo,2),co=no[0],To=no[1];function Ga(){To(Date.now())}function Po(){window.clearTimeout(ro.current)}ci(Wn,function(Qn,Zn){var Yn=!1;function ui(ai,hi){ai(function(pi){var zi=Bi(pi+hi),Ci=Object(d.a)(zi,2),na=Ci[0],La=Ci[1];return Yn=La,na})}if(ia){if(_i>=wr)return Yn;ui(Ji,Qn)}else{if(Ii>=bt)return Yn;ui(ar,Zn)}return Po(),Ga(),Yn}),Object(m.useEffect)(function(){return Po(),co&&(ro.current=window.setTimeout(function(){To(0)},100)),Po},[co]);function uo(){var Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:er,Zn=Ia.get(Qn);if(!Zn)return;if(ia){var Yn=Ti;nr?Zn.right<Ti?Yn=Zn.right:Zn.right+Zn.width>Ti+_i&&(Yn=Zn.right+Zn.width-_i):Zn.left<-Ti?Yn=-Zn.left:Zn.left+Zn.width>-Ti+_i&&(Yn=-(Zn.left+Zn.width-_i)),ar(0),Ji(Bi(Yn)[0])}else{var ui=Ir;Zn.top<-Ir?ui=-Zn.top:Zn.top+Zn.height>-Ir+Ii&&(ui=-(Zn.top+Zn.height-Ii)),Ji(0),ar(Bi(ui)[0])}}var ho=z(Ia,{width:_i,height:Ii,left:Ti,top:Ir},{width:un,height:Ln},{width:ma,height:ta},Object(o.a)(Object(o.a)({},Vr),{},{tabs:xt})),zo=Object(d.a)(ho,2),Oa=zo[0],mo=zo[1],Do=xt.map(function(Qn){var Zn=Qn.key;return m.createElement(B,{id:_t,prefixCls:yt,key:Zn,rtl:nr,tab:Qn,closable:Qn.closable,editable:On,active:Zn===er,tabPosition:qn,tabBarGutter:an,renderWrapper:_r,removeAriaLabel:bn==null?void 0:bn.removeAriaLabel,ref:la(Zn),onClick:function(ui){mn(Zn,ui)},onRemove:function(){Gi(Zn)},onFocus:function(){uo(Zn),Ga(),nr||(Wn.current.scrollLeft=0),Wn.current.scrollTop=0}})}),Qo=I(function(){var Qn,Zn,Yn,ui,ai,hi,pi,zi,Ci,na=((Qn=Wn.current)===null||Qn===void 0?void 0:Qn.offsetWidth)||0,La=((Zn=Wn.current)===null||Zn===void 0?void 0:Zn.offsetHeight)||0,pa=((Yn=yi.current)===null||Yn===void 0?void 0:Yn.offsetWidth)||0,ca=((ui=yi.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,wa=((ai=Ei.current)===null||ai===void 0?void 0:ai.offsetWidth)||0,Ca=((hi=Ei.current)===null||hi===void 0?void 0:hi.offsetHeight)||0;Ri(na),Oi(La),Hi(pa),ra(ca);var No=(((pi=Jn.current)===null||pi===void 0?void 0:pi.offsetWidth)||0)-pa,fo=(((zi=Jn.current)===null||zi===void 0?void 0:zi.offsetHeight)||0)-ca;Pr(No),mr(fo);var ea=(Ci=Ei.current)===null||Ci===void 0?void 0:Ci.className.includes(za);An(No-(ea?0:wa)),ni(fo-(ea?0:Ca)),va(function(){var ua=new Map;return xt.forEach(function(da){var Ra=da.key,Za=la(Ra).current;Za&&ua.set(Ra,{width:Za.offsetWidth,height:Za.offsetHeight,left:Za.offsetLeft,top:Za.offsetTop})}),ua})}),xo=xt.slice(0,Oa),Fo=xt.slice(mo+1),Ho=[].concat(Object(l.a)(xo),Object(l.a)(Fo)),go=Object(m.useState)(),qa=Object(d.a)(go,2),_a=qa[0],at=qa[1],dr=Ia.get(er),Kr=Object(m.useRef)();function Br(){s.a.cancel(Kr.current)}Object(m.useEffect)(function(){var Qn={};return dr&&(ia?(nr?Qn.right=dr.right:Qn.left=dr.left,Qn.width=dr.width):(Qn.top=dr.top,Qn.height=dr.height)),Br(),Kr.current=s()(function(){at(Qn)}),Br},[dr,ia,nr]),Object(m.useEffect)(function(){uo()},[er,dr,Ia,ia]),Object(m.useEffect)(function(){Qo()},[nr,an,er,xt.map(function(Qn){return Qn.key}).join("_")]);var Pn=!!Ho.length,$r="".concat(yt,"-nav-wrap"),Mr,Gn,zr,Nn;return ia?nr?(Gn=Ti>0,Mr=Ti+_i<wr):(Mr=Ti<0,Gn=-Ti+_i<wr):(zr=Ir<0,Nn=-Ir+Ii<bt),m.createElement("div",{ref:fn,role:"tablist",className:t()("".concat(yt,"-nav"),Tt),style:Lt,onKeyDown:function(){Ga()}},m.createElement(Qe,{position:"left",extra:br,prefixCls:yt}),m.createElement(C,{onResize:Qo},m.createElement("div",{className:t()($r,(kn={},Object(f.a)(kn,"".concat($r,"-ping-left"),Mr),Object(f.a)(kn,"".concat($r,"-ping-right"),Gn),Object(f.a)(kn,"".concat($r,"-ping-top"),zr),Object(f.a)(kn,"".concat($r,"-ping-bottom"),Nn),kn)),ref:Wn},m.createElement(C,{onResize:Qo},m.createElement("div",{ref:Jn,className:"".concat(yt,"-nav-list"),style:{transform:"translate(".concat(Ti,"px, ").concat(Ir,"px)"),transition:co?"none":void 0}},Do,m.createElement(Mt,{ref:yi,prefixCls:yt,locale:bn,editable:On,style:{visibility:Pn?"hidden":null}}),m.createElement("div",{className:t()("".concat(yt,"-ink-bar"),Object(f.a)({},"".concat(yt,"-ink-bar-animated"),Xt.inkBar)),style:_a}))))),m.createElement(Tr,Object.assign({},Vr,{ref:Ei,prefixCls:yt,tabs:Ho,className:!Pn&&za})),m.createElement(Qe,{position:"right",extra:br,prefixCls:yt}))}var Pe=m.forwardRef(Se);function He(Vr){var fn=Vr.id,kn=Vr.activeKey,It=Vr.animated,yt=Vr.tabPosition,xt=Vr.rtl,Tt=Vr.destroyInactiveTabPane,Lt=m.useContext(yr),_t=Lt.prefixCls,Xt=Lt.tabs,er=It.tabPane,nr=Xt.findIndex(function(br){return br.key===kn});return m.createElement("div",{className:t()("".concat(_t,"-content-holder"))},m.createElement("div",{className:t()("".concat(_t,"-content"),"".concat(_t,"-content-").concat(yt),Object(f.a)({},"".concat(_t,"-content-animated"),er)),style:nr&&er?Object(f.a)({},xt?"marginRight":"marginLeft","-".concat(nr,"00%")):null},Xt.map(function(br){return m.cloneElement(br.node,{key:br.key,prefixCls:_t,tabKey:br.key,id:fn,animated:er,active:br.key===kn,destroyInactiveTabPane:Tt})})))}function Ye(Vr){var fn=Vr.prefixCls,kn=Vr.forceRender,It=Vr.className,yt=Vr.style,xt=Vr.id,Tt=Vr.active,Lt=Vr.animated,_t=Vr.destroyInactiveTabPane,Xt=Vr.tabKey,er=Vr.children,nr=m.useState(kn),br=Object(d.a)(nr,2),On=br[0],bn=br[1];m.useEffect(function(){Tt?bn(!0):_t&&bn(!1)},[Tt,_t]);var qn={};return Tt||(Lt?(qn.visibility="hidden",qn.height=0,qn.overflowY="hidden"):qn.display="none"),m.createElement("div",{id:xt&&"".concat(xt,"-panel-").concat(Xt),role:"tabpanel",tabIndex:Tt?0:-1,"aria-labelledby":xt&&"".concat(xt,"-tab-").concat(Xt),"aria-hidden":!Tt,style:Object(o.a)(Object(o.a)({},qn),yt),className:t()("".concat(fn,"-tabpane"),Tt&&"".concat(fn,"-tabpane-active"),It)},(Tt||On||kn)&&er)}var ze=0;function $e(Vr){return Object(a.a)(Vr).map(function(fn){if(m.isValidElement(fn)){var kn=fn.key!==void 0?String(fn.key):void 0;return Object(o.a)(Object(o.a)({key:kn},fn.props),{},{node:fn})}return null}).filter(function(fn){return fn})}function St(Vr,fn){var kn,It=Vr.id,yt=Vr.prefixCls,xt=yt===void 0?"rc-tabs":yt,Tt=Vr.className,Lt=Vr.children,_t=Vr.direction,Xt=Vr.activeKey,er=Vr.defaultActiveKey,nr=Vr.editable,br=Vr.animated,On=Vr.tabPosition,bn=On===void 0?"top":On,qn=Vr.tabBarGutter,an=Vr.tabBarStyle,_r=Vr.tabBarExtraContent,mn=Vr.locale,In=Vr.moreIcon,Wn=Vr.moreTransitionName,Jn=Vr.destroyInactiveTabPane,Ei=Vr.renderTabBar,yi=Vr.onChange,mi=Vr.onTabClick,Vi=Vr.onTabScroll,la=Object(u.a)(Vr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Gi=$e(Lt),ia=_t==="rtl",$i;br===!1?$i={inkBar:!1,tabPane:!1}:$i=Object(o.a)({inkBar:!0,tabPane:!1},br!==!0?br:null);var xn=Object(m.useState)(!1),Ti=Object(d.a)(xn,2),Ji=Ti[0],Wi=Ti[1];Object(m.useEffect)(function(){Wi(ri())},[]);var qi=Object(e.a)(function(){var Ln;return(Ln=Gi[0])===null||Ln===void 0?void 0:Ln.key},{value:Xt,defaultValue:er}),Ir=Object(d.a)(qi,2),ar=Ir[0],nn=Ir[1],Gt=Object(m.useState)(function(){return Gi.findIndex(function(Ln){return Ln.key===ar})}),wr=Object(d.a)(Gt,2),Pr=wr[0],Jr=wr[1];Object(m.useEffect)(function(){var Ln=Gi.findIndex(function(Ai){return Ai.key===ar});if(Ln===-1){var ni;Ln=Math.max(0,Math.min(Pr,Gi.length-1)),nn((ni=Gi[Ln])===null||ni===void 0?void 0:ni.key)}Jr(Ln)},[Gi.map(function(Ln){return Ln.key}).join("_"),ar,Pr]);var wn=Object(e.a)(null,{value:It}),bt=Object(d.a)(wn,2),mr=bt[0],Ar=bt[1],Ur=bn;Ji&&!["left","right"].includes(bn)&&(Ur="top"),Object(m.useEffect)(function(){It||(Ar("rc-tabs-".concat(ze)),ze+=1)},[]);function un(Ln,ni){mi==null||mi(Ln,ni),nn(Ln),yi==null||yi(Ln)}var An={id:mr,activeKey:ar,animated:$i,tabPosition:Ur,rtl:ia,mobile:Ji},ln,Hn=Object(o.a)(Object(o.a)({},An),{},{editable:nr,locale:mn,moreIcon:In,moreTransitionName:Wn,tabBarGutter:qn,onTabClick:un,onTabScroll:Vi,extra:_r,style:an,panes:Lt});return Ei?ln=Ei(Hn,Pe):ln=m.createElement(Pe,Object.assign({},Hn)),m.createElement(yr.Provider,{value:{tabs:Gi,prefixCls:xt}},m.createElement("div",Object.assign({ref:fn,id:It,className:t()(xt,"".concat(xt,"-").concat(Ur),(kn={},Object(f.a)(kn,"".concat(xt,"-mobile"),Ji),Object(f.a)(kn,"".concat(xt,"-editable"),nr),Object(f.a)(kn,"".concat(xt,"-rtl"),ia),kn),Tt)},la),ln,m.createElement(He,Object.assign({destroyInactiveTabPane:Jn},An,{animated:$i}))))}var ft=m.forwardRef(St);ft.TabPane=Ye;var Ht=ft,Er=Ht,Fr=i("cCPh"),tn=i.n(Fr),Zt=i("fNCr"),Rn=i.n(Zt),vn=i("V/uB"),Un=i.n(vn),hn=i("uaoM"),Wr=i("H84U"),Kn=function(Vr,fn){var kn={};for(var It in Vr)Object.prototype.hasOwnProperty.call(Vr,It)&&fn.indexOf(It)<0&&(kn[It]=Vr[It]);if(Vr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,It=Object.getOwnPropertySymbols(Vr);yt<It.length;yt++)fn.indexOf(It[yt])<0&&Object.prototype.propertyIsEnumerable.call(Vr,It[yt])&&(kn[It[yt]]=Vr[It[yt]]);return kn};function ei(Vr){var fn,kn=Vr.type,It=Vr.className,yt=Vr.size,xt=Vr.onEdit,Tt=Vr.hideAdd,Lt=Vr.centered,_t=Vr.addIcon,Xt=Kn(Vr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),er=Xt.prefixCls,nr=m.useContext(Wr.b),br=nr.getPrefixCls,On=nr.direction,bn=br("tabs",er),qn;return kn==="editable-card"&&(qn={onEdit:function(_r,mn){var In=mn.key,Wn=mn.event;xt==null||xt(_r==="add"?Wn:In,_r)},removeIcon:m.createElement(Un.a,null),addIcon:_t||m.createElement(Rn.a,null),showAdd:Tt!==!0}),Object(hn.a)(!("onPrevClick"in Xt)&&!("onNextClick"in Xt),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement(Er,p()({direction:On},Xt,{moreTransitionName:"slide-up",className:t()(It,(fn={},v()(fn,"".concat(bn,"-").concat(yt),yt),v()(fn,"".concat(bn,"-card"),["card","editable-card"].includes(kn)),v()(fn,"".concat(bn,"-editable-card"),kn==="editable-card"),v()(fn,"".concat(bn,"-centered"),Lt),fn)),editable:qn,moreIcon:m.createElement(tn.a,null),prefixCls:bn}))}ei.TabPane=Ye;var Si=D.a=ei},ZTW2:function(k,D,i){},ZWlE:function(k,D,i){var y=i("bYtY"),p=i("4NO4");function S(f){v(f),m(f)}function v(f){if(f.parallel)return;var d=!1;y.each(f.series,function(u){u&&u.type==="parallel"&&(d=!0)}),d&&(f.parallel=[{}])}function m(f){var d=p.normalizeToArray(f.parallelAxis);y.each(d,function(u){if(!y.isObject(u))return;var o=u.parallelIndex||0,n=p.normalizeToArray(f.parallel)[o];n&&n.parallelAxisDefault&&y.merge(u,n.parallelAxisDefault,!1)})}k.exports=S},ZX9x:function(k,D,i){"use strict";i.d(D,"a",function(){return O}),i.d(D,"b",function(){return B});var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),u=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),l=i("TSYQ"),r=i.n(l),s=i("BGR+"),c=i("T1rO"),h=i.n(c),g=i("fEPi"),A=i.n(g),b=i("DFhj"),w=i.n(b),x=i("PKem"),T=i("H84U"),_=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},E=_,C=function(P,X){var M={};for(var z in P)Object.prototype.hasOwnProperty.call(P,z)&&X.indexOf(z)<0&&(M[z]=P[z]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,z=Object.getOwnPropertySymbols(P);W<z.length;W++)X.indexOf(z[W])<0&&Object.prototype.propertyIsEnumerable.call(P,z[W])&&(M[z[W]]=P[z[W]]);return M},I={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},O=e.createContext({}),F=function(){var P=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,"".concat(X).concat(P)}}(),R=function(P){n()(M,P);var X=a()(M);function M(z){var W;f()(this,M),W=X.call(this,z),W.responsiveHandler=function(Q){W.setState({below:Q.matches});var G=W.props.onBreakpoint,ee=W.state.collapsed;G&&G(Q.matches),ee!==Q.matches&&W.setCollapsed(Q.matches,"responsive")},W.setCollapsed=function(Q,G){"collapsed"in W.props||W.setState({collapsed:Q});var ee=W.props.onCollapse;ee&&ee(Q,G)},W.toggle=function(){var Q=!W.state.collapsed;W.setCollapsed(Q,"clickTrigger")},W.renderSider=function(Q){var G,ee=Q.getPrefixCls,q=W.props,se=q.prefixCls,re=q.className,Ae=q.theme,Te=q.collapsible,Re=q.reverseArrow,Ge=q.trigger,Ue=q.style,nt=q.width,Le=q.collapsedWidth,le=q.zeroWidthTriggerStyle,Xe=q.children,pe=C(q,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),Z=W.state,Y=Z.collapsed,ne=Z.below,ce=ee("layout-sider",se),ye=Object(s.default)(pe,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ee=Y?Le:nt,Ce=E(Ee)?"".concat(Ee,"px"):String(Ee),ue=parseFloat(String(Le||0))===0?e.createElement("span",{onClick:W.toggle,className:r()("".concat(ce,"-zero-width-trigger"),"".concat(ce,"-zero-width-trigger-").concat(Re?"right":"left")),style:le},Ge||e.createElement(h.a,null)):null,ge={expanded:Re?e.createElement(A.a,null):e.createElement(w.a,null),collapsed:Re?e.createElement(w.a,null):e.createElement(A.a,null)},Oe=Y?"collapsed":"expanded",Je=ge[Oe],lt=Ge!==null?ue||e.createElement("div",{className:"".concat(ce,"-trigger"),onClick:W.toggle,style:{width:Ce}},Ge||Je):null,tt=v()(v()({},Ue),{flex:"0 0 ".concat(Ce),maxWidth:Ce,minWidth:Ce,width:Ce}),ke=r()(re,ce,"".concat(ce,"-").concat(Ae),(G={},p()(G,"".concat(ce,"-collapsed"),!!Y),p()(G,"".concat(ce,"-has-trigger"),Te&&Ge!==null&&!ue),p()(G,"".concat(ce,"-below"),!!ne),p()(G,"".concat(ce,"-zero-width"),parseFloat(Ce)===0),G));return e.createElement("aside",v()({className:ke},ye,{style:tt}),e.createElement("div",{className:"".concat(ce,"-children")},Xe),Te||ne&&ue?lt:null)},W.uniqueId=F("ant-sider-");var H;typeof window!="undefined"&&(H=window.matchMedia),H&&z.breakpoint&&z.breakpoint in I&&(W.mql=H("(max-width: ".concat(I[z.breakpoint],")")));var V;return"collapsed"in z?V=z.collapsed:V=z.defaultCollapsed,W.state={collapsed:V,below:!1},W}return u()(M,[{key:"componentDidMount",value:function(){var W;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(W=this.props)===null||W===void 0||W.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var W,H;(W=this===null||this===void 0?void 0:this.mql)===null||W===void 0||W.removeListener(this.responsiveHandler),(H=this.props)===null||H===void 0||H.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var W=this.state.collapsed,H=this.props.collapsedWidth;return e.createElement(O.Provider,{value:{siderCollapsed:W,collapsedWidth:H}},e.createElement(T.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(W){return"collapsed"in W?{collapsed:W.collapsed}:null}}]),M}(e.Component);R.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var B=function(P){n()(M,P);var X=a()(M);function M(){return f()(this,M),X.apply(this,arguments)}return u()(M,[{key:"render",value:function(){var W=this;return e.createElement(x.a.Consumer,null,function(H){return e.createElement(R,v()({},H,W.props))})}}]),M}(e.Component)},ZYIC:function(k,D,i){var y=i("zM3Q"),p={seriesType:"lines",plan:y(),reset:function(S){var v=S.coordinateSystem,m=S.get("polyline"),f=S.pipelineContext.large;function d(u,o){var n=[];if(f){var t,a=u.end-u.start;if(m){for(var e=0,l=u.start;l<u.end;l++)e+=S.getLineCoordsCount(l);t=new Float32Array(a+e*2)}else t=new Float32Array(a*4);for(var r=0,s=[],l=u.start;l<u.end;l++){var c=S.getLineCoords(l,n);m&&(t[r++]=c);for(var h=0;h<c;h++)s=v.dataToPoint(n[h],!1,s),t[r++]=s[0],t[r++]=s[1]}o.setLayout("linesPoints",t)}else for(var l=u.start;l<u.end;l++){var g=o.getItemModel(l),c=S.getLineCoords(l,n),A=[];if(m)for(var b=0;b<c;b++)A.push(v.dataToPoint(n[b]));else{A[0]=v.dataToPoint(n[0]),A[1]=v.dataToPoint(n[1]);var w=g.get("lineStyle.curveness");+w&&(A[2]=[(A[0][0]+A[1][0])/2-(A[0][1]-A[1][1])*w,(A[0][1]+A[1][1])/2-(A[1][0]-A[0][0])*w])}o.setItemLayout(l,A)}}return{progress:d}}};k.exports=p},Ze12:function(k,D,i){var y=i("ItGF"),p=i("hOwI"),S=p.buildTransformer,v="___zrEVENTSAVED",m=[];function f(t,a,e,l,r){return d(m,a,l,r,!0)&&d(t,e,m[0],m[1])}function d(t,a,e,l,r){if(a.getBoundingClientRect&&y.domSupported&&!n(a)){var s=a[v]||(a[v]={}),c=u(a,s),h=o(c,s,r);if(h)return h(t,e,l),!0}return!1}function u(t,a){var e=a.markers;if(e)return e;e=a.markers=[];for(var l=["left","right"],r=["top","bottom"],s=0;s<4;s++){var c=document.createElement("div"),h=c.style,g=s%2,A=(s>>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",r[A]+":0",l[1-g]+":auto",r[1-A]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function o(t,a,e){for(var l=e?"invTrans":"trans",r=a[l],s=a.srcCoords,c=!0,h=[],g=[],A=0;A<4;A++){var b=t[A].getBoundingClientRect(),w=2*A,x=b.left,T=b.top;h.push(x,T),c=c&&s&&x===s[w]&&T===s[w+1],g.push(t[A].offsetLeft,t[A].offsetTop)}return c&&r?r:(a.srcCoords=h,a[l]=e?S(g,h):S(h,g))}function n(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=f,D.transformCoordWithViewport=d,D.isCanvasEl=n},Znkb:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("zTMp"),m=S.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(n,t,a,e){this.axisPointerClass&&v.fixValue(n),m.superApply(this,"render",arguments),f(this,n,t,a,e,!0)},updateAxisPointer:function(n,t,a,e,l){f(this,n,t,a,e,!1)},remove:function(n,t){var a=this._axisPointer;a&&a.remove(t),m.superApply(this,"remove",arguments)},dispose:function(n,t){d(this,t),m.superApply(this,"dispose",arguments)}});function f(n,t,a,e,l,r){var s=m.getAxisPointerClass(n.axisPointerClass);if(!s)return;var c=v.getAxisPointerModel(t);c?(n._axisPointer||(n._axisPointer=new s)).render(t,c,e,r):d(n,e)}function d(n,t,a){var e=n._axisPointer;e&&e.dispose(t,a),n._axisPointer=null}var u=[];m.registerAxisPointerClass=function(n,t){u[n]=t},m.getAxisPointerClass=function(n){return n&&u[n]};var o=m;k.exports=o},"Znn+":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("9ama"),v=i.n(S)},ZqQs:function(k,D,i){var y=i("bYtY");function p(f){var d=f&&f.timeline;y.isArray(d)||(d=d?[d]:[]),y.each(d,function(u){if(!u)return;S(u)})}function S(f){var d=f.type,u={number:"value",time:"time"};if(u[d]&&(f.axisType=u[d],delete f.type),v(f),m(f,"controlPosition")){var o=f.controlStyle||(f.controlStyle={});m(o,"position")||(o.position=f.controlPosition),o.position==="none"&&!m(o,"show")&&(o.show=!1,delete o.position),delete f.controlPosition}y.each(f.data||[],function(n){y.isObject(n)&&!y.isArray(n)&&(!m(n,"value")&&m(n,"name")&&(n.value=n.name),v(n))})}function v(f){var d=f.itemStyle||(f.itemStyle={}),u=d.emphasis||(d.emphasis={}),o=f.label||f.label||{},n=o.normal||(o.normal={}),t={normal:1,emphasis:1};y.each(o,function(a,e){!t[e]&&!m(n,e)&&(n[e]=a)}),u.label&&!m(o,"emphasis")&&(o.emphasis=u.label,delete u.label)}function m(f,d){return f.hasOwnProperty(d)}k.exports=p},Zvw2:function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,u,o){p.call(this,m,f,d),this.type=u||"value",this.position=o||"bottom",this.orient=null};S.prototype={constructor:S,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},pointToData:function(m,f){return this.coordinateSystem.pointToData(m,f)[0]},toGlobalCoord:null,toLocalCoord:null},y.inherits(S,p);var v=S;k.exports=v},a7Wl:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},a9QJ:function(k,D){var i={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(p,S){if(p==="world"){var v=i[S.name];if(v){var m=S.center;m[0]=v[0],m[1]=v[1]}}}k.exports=y},aHsQ:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("6D9b"),v=i.n(S)},aKvl:function(k,D,i){var y=i("Sj9i"),p=y.quadraticProjectPoint;function S(v,m,f,d,u,o,n,t,a){if(n===0)return!1;var e=n;if(a>m+e&&a>d+e&&a>o+e||a<m-e&&a<d-e&&a<o-e||t>v+e&&t>f+e&&t>u+e||t<v-e&&t<f-e&&t<u-e)return!1;var l=p(v,m,f,d,u,o,t,a,null);return l<=e/2}D.containStroke=S},aRTE:function(k,D){k.exports={L:1,M:0,Q:3,H:2}},aTJb:function(k,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(k,D,i){var y=i("3gBT"),p=i("ItGF"),S=i("bYtY"),v=i("0s+r"),m=i("r6Bn"),f=i("7SHv"),d=i("MKOG"),u=i("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 o=!p.canvasSupported,n={canvas:f},t={},a="4.3.1";function e(g,A){var b=new h(y(),g,A);return t[b.id]=b,b}function l(g){if(g)g.dispose();else{for(var A in t)t.hasOwnProperty(A)&&t[A].dispose();t={}}return this}function r(g){return t[g]}function s(g,A){n[g]=A}function c(g){delete t[g]}var h=function(A,b,w){w=w||{},this.dom=b,this.id=A;var x=this,T=new m,_=w.renderer;if(o){if(!n.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!n[_])&&(_="canvas");var E=new n[_](b,T,w,A);this.storage=T,this.painter=E;var C=!p.node&&!p.worker?new u(E.getViewportRoot(),E.root):null;this.handler=new v(T,E,C,E.root),this.animation=new d({stage:{update:S.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var I=T.delFromStorage,O=T.addToStorage;T.delFromStorage=function(F){I.call(T,F),F&&F.removeSelfFromZr(x)},T.addToStorage=function(F){O.call(T,F),F.addSelfToZr(x)}};h.prototype={constructor:h,getId:function(){return this.id},add:function(A){this.storage.addRoot(A),this._needsRefresh=!0},remove:function(A){this.storage.delRoot(A),this._needsRefresh=!0},configLayer:function(A,b){this.painter.configLayer&&this.painter.configLayer(A,b),this._needsRefresh=!0},setBackgroundColor:function(A){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(A),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 A;this._needsRefresh&&(A=!0,this.refreshImmediately()),this._needsRefreshHover&&(A=!0,this.refreshHoverImmediately()),A&&this.trigger("rendered")},addHover:function(A,b){if(this.painter.addHover){var w=this.painter.addHover(A,b);return this.refreshHover(),w}},removeHover:function(A){this.painter.removeHover&&(this.painter.removeHover(A),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(A){A=A||{},this.painter.resize(A.width,A.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(A,b){return this.painter.pathToImage(A,b)},setCursorStyle:function(A){this.handler.setCursorStyle(A)},findHover:function(A,b){return this.handler.findHover(A,b)},on:function(A,b,w){this.handler.on(A,b,w)},off:function(A,b){this.handler.off(A,b)},trigger:function(A,b){this.handler.trigger(A,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)}},D.version=a,D.init=e,D.dispose=l,D.getInstance=r,D.registerPainter=s},aX7z:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("GMDS"),m=i("ieMj"),f=i("4NgU"),d=i("OELB"),u=i("nVfU"),o=u.prepareLayoutBarSeries,n=u.makeColumnLayout,t=u.retrieveColumnLayout,a=i("mFDi");i("IWp7"),i("jCoz");function e(T,_){var E=T.type,C=_.getMin(),I=_.getMax(),O=T.getExtent(),F,R,B;E==="ordinal"?F=_.getCategories().length:(R=_.get("boundaryGap"),S.isArray(R)||(R=[R||0,R||0]),typeof R[0]=="boolean"&&(R=[0,0]),R[0]=d.parsePercent(R[0],1),R[1]=d.parsePercent(R[1],1),B=O[1]-O[0]||Math.abs(O[0])),C==="dataMin"?C=O[0]:typeof C=="function"&&(C=C({min:O[0],max:O[1]})),I==="dataMax"?I=O[1]:typeof I=="function"&&(I=I({min:O[0],max:O[1]}));var P=C!=null,X=I!=null;C==null&&(C=E==="ordinal"?F?0:NaN:O[0]-R[0]*B),I==null&&(I=E==="ordinal"?F?F-1:NaN:O[1]+R[1]*B),(C==null||!isFinite(C))&&(C=NaN),(I==null||!isFinite(I))&&(I=NaN),T.setBlank(S.eqNaN(C)||S.eqNaN(I)||E==="ordinal"&&!T.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(C>0&&I>0&&!P&&(C=0),C<0&&I<0&&!X&&(I=0));var M=_.ecModel;if(M&&E==="time"){var z=o("bar",M),W;if(S.each(z,function(Q){W|=Q.getBaseAxis()===_.axis}),W){var H=n(z),V=l(C,I,_,H);C=V.min,I=V.max}}return{extent:[C,I],fixMin:P,fixMax:X}}function l(T,_,E,C){var I=E.axis.getExtent(),O=I[1]-I[0],F=t(C,E.axis);if(F===void 0)return{min:T,max:_};var R=Infinity;S.each(F,function(W){R=Math.min(W.offset,R)});var B=-Infinity;S.each(F,function(W){B=Math.max(W.offset+W.width,B)}),R=Math.abs(R),B=Math.abs(B);var P=R+B,X=_-T,M=1-(R+B)/O,z=X/M-X;return _+=z*(B/P),T-=z*(R/P),{min:T,max:_}}function r(T,_){var E=e(T,_),C=E.extent,I=_.get("splitNumber");T.type==="log"&&(T.base=_.get("logBase"));var O=T.type;T.setExtent(C[0],C[1]),T.niceExtent({splitNumber:I,fixMin:E.fixMin,fixMax:E.fixMax,minInterval:O==="interval"||O==="time"?_.get("minInterval"):null,maxInterval:O==="interval"||O==="time"?_.get("maxInterval"):null});var F=_.get("interval");F!=null&&(T.setInterval&&T.setInterval(F))}function s(T,_){if(_=_||T.get("type"),_)switch(_){case"category":return new v(T.getOrdinalMeta?T.getOrdinalMeta():T.getCategories(),[Infinity,-Infinity]);case"value":return new m;default:return(f.getClass(_)||m).create(T)}}function c(T){var _=T.scale.getExtent(),E=_[0],C=_[1];return!(E>0&&C>0||E<0&&C<0)}function h(T){var _=T.getLabelModel().get("formatter"),E=T.type==="category"?T.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(C){return function(I){return I=T.scale.getLabel(I),C.replace("{value}",I!=null?I:"")}}(_),_):typeof _=="function"?function(C,I){return E!=null&&(I=C-E),_(g(T,C),I)}:function(C){return T.scale.getLabel(C)}}function g(T,_){return T.type==="category"?T.scale.getLabel(_):_}function A(T){var _=T.model,E=T.scale;if(!_.get("axisLabel.show")||E.isBlank())return;var C=T.type==="category",I,O,F=E.getExtent();C?O=E.count():(I=E.getTicks(),O=I.length);var R=T.getLabelModel(),B=h(T),P,X=1;O>40&&(X=Math.ceil(O/40));for(var M=0;M<O;M+=X){var z=I?I[M]:F[0]+M,W=B(z),H=R.getTextRect(W),V=b(H,R.get("rotate")||0);P?P.union(V):P=V}return P}function b(T,_){var E=_*Math.PI/180,C=T.plain(),I=C.width,O=C.height,F=I*Math.cos(E)+O*Math.sin(E),R=I*Math.sin(E)+O*Math.cos(E),B=new a(C.x,C.y,F,R);return B}function w(T){var _=T.get("interval");return _==null?"auto":_}function x(T){return T.type==="category"&&w(T.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=s,D.ifAxisCrossZero=c,D.makeLabelFormatter=h,D.getAxisRawValue=g,D.estimateLabelUnionRect=A,D.getOptionCategoryInterval=w,D.shouldShowAllLabels=x},adU4:function(k,D,i){var y=i("y1pI"),p=Array.prototype,S=p.splice;function v(m){var f=this.__data__,d=y(f,m);if(d<0)return!1;var u=f.length-1;return d==u?f.pop():S.call(f,d,1),--this.size,!0}k.exports=v},"af/B":function(k,D,i){var y=i("bYtY"),p=y.each,S=y.map,v=y.isFunction,m=y.createHashMap,f=y.noop,d=i("9H2F"),u=d.createTask,o=i("iRjW"),n=o.getUID,t=i("fmMI"),a=i("hD7B"),e=i("4NO4"),l=e.normalizeToArray;function r(W,H,V,Q){this.ecInstance=W,this.api=H,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=m()}var s=r.prototype;s.restoreData=function(W,H){W.restoreData(H),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},s.getPerformArgs=function(W,H){if(!W.__pipeline)return;var V=this._pipelineMap.get(W.__pipeline.id),Q=V.context,G=!H&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&W.__idxInPipeline>V.blockIndex,ee=G?V.step:null,q=Q&&Q.modDataCount,se=q!=null?Math.ceil(q/ee):null;return{step:ee,modBy:se,modDataCount:q}},s.getPipeline=function(W){return this._pipelineMap.get(W)},s.updateStreamModes=function(W,H){var V=this._pipelineMap.get(W.uid),Q=W.getData(),G=Q.count(),ee=V.progressiveEnabled&&H.incrementalPrepareRender&&G>=V.threshold,q=W.get("large")&&G>=W.get("largeThreshold"),se=W.get("progressiveChunkMode")==="mod"?G:null;W.pipelineContext=V.context={progressiveRender:ee,modDataCount:se,large:q}},s.restorePipelines=function(W){var H=this,V=H._pipelineMap=m();W.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}),F(H,Q,Q.dataTask)})},s.prepareStageTasks=function(){var W=this._stageTaskMap,H=this.ecInstance.getModel(),V=this.api;p(this._allHandlers,function(Q){var G=W.get(Q.uid)||W.set(Q.uid,[]);Q.reset&&g(this,Q,G,H,V),Q.overallReset&&A(this,Q,G,H,V)},this)},s.prepareView=function(W,H,V,Q){var G=W.renderTask,ee=G.context;ee.model=H,ee.ecModel=V,ee.api=Q,G.__block=!W.incrementalPrepareRender,F(this,H,G)},s.performDataProcessorTasks=function(W,H){c(this,this._dataProcessorHandlers,W,H,{block:!0})},s.performVisualTasks=function(W,H,V){c(this,this._visualHandlers,W,H,V)};function c(W,H,V,Q,G){G=G||{};var ee;p(H,function(se,re){if(G.visualType&&G.visualType!==se.visualType)return;var Ae=W._stageTaskMap.get(se.uid),Te=Ae.seriesTaskMap,Re=Ae.overallTask;if(Re){var Ge,Ue=Re.agentStubMap;Ue.each(function(Le){q(G,Le)&&(Le.dirty(),Ge=!0)}),Ge&&Re.dirty(),h(Re,Q);var nt=W.getPerformArgs(Re,G.block);Ue.each(function(Le){Le.perform(nt)}),ee|=Re.perform(nt)}else Te&&Te.each(function(Le,le){q(G,Le)&&Le.dirty();var Xe=W.getPerformArgs(Le,G.block);Xe.skip=!se.performRawSeries&&V.isSeriesFiltered(Le.context.model),h(Le,Q),ee|=Le.perform(Xe)})});function q(se,re){return se.setDirty&&(!se.dirtyMap||se.dirtyMap.get(re.__pipeline.id))}W.unfinished|=ee}s.performSeriesTasks=function(W){var H;W.eachSeries(function(V){H|=V.dataTask.perform()}),this.unfinished|=H},s.plan=function(){this._pipelineMap.each(function(W){var H=W.tail;do{if(H.__block){W.blockIndex=H.__idxInPipeline;break}H=H.getUpstream()}while(H)})};var h=s.updatePayload=function(W,H){H!=="remain"&&(W.context.payload=H)};function g(W,H,V,Q,G){var ee=V.seriesTaskMap||(V.seriesTaskMap=m()),q=H.seriesType,se=H.getTargetSeries;H.createOnAllSeries?Q.eachRawSeries(re):q?Q.eachRawSeriesByType(q,re):se&&se(Q,G).each(re);function re(Te){var Re=Te.uid,Ge=ee.get(Re)||ee.set(Re,u({plan:_,reset:E,count:O}));Ge.context={model:Te,ecModel:Q,api:G,useClearVisual:H.isVisual&&!H.isLayout,plan:H.plan,reset:H.reset,scheduler:W},F(W,Te,Ge)}var Ae=W._pipelineMap;ee.each(function(Te,Re){Ae.get(Re)||(Te.dispose(),ee.removeKey(Re))})}function A(W,H,V,Q,G){var ee=V.overallTask=V.overallTask||u({reset:b});ee.context={ecModel:Q,api:G,overallReset:H.overallReset,scheduler:W};var q=ee.agentStubMap=ee.agentStubMap||m(),se=H.seriesType,re=H.getTargetSeries,Ae=!0,Te=H.modifyOutputEnd;se?Q.eachRawSeriesByType(se,Re):re?re(Q,G).each(Re):(Ae=!1,p(Q.getSeries(),Re));function Re(Ue){var nt=Ue.uid,Le=q.get(nt);Le||(Le=q.set(nt,u({reset:w,onDirty:T})),ee.dirty()),Le.context={model:Ue,overallProgress:Ae,modifyOutputEnd:Te},Le.agent=ee,Le.__block=Ae,F(W,Ue,Le)}var Ge=W._pipelineMap;q.each(function(Ue,nt){Ge.get(nt)||(Ue.dispose(),ee.dirty(),q.removeKey(nt))})}function b(W){W.overallReset(W.ecModel,W.api,W.payload)}function w(W,H){return W.overallProgress&&x}function x(){this.agent.dirty(),this.getDownstream().dirty()}function T(){this.agent&&this.agent.dirty()}function _(W){return W.plan&&W.plan(W.model,W.ecModel,W.api,W.payload)}function E(W){W.useClearVisual&&W.data.clearAllVisual();var H=W.resetDefines=l(W.reset(W.model,W.ecModel,W.api,W.payload));return H.length>1?S(H,function(V,Q){return I(Q)}):C}var C=I(0);function I(W){return function(H,V){var Q=V.data,G=V.resetDefines[W];if(G&&G.dataEach)for(var ee=H.start;ee<H.end;ee++)G.dataEach(Q,ee);else G&&G.progress&&G.progress(H,Q)}}function O(W){return W.data.count()}function F(W,H,V){var Q=H.uid,G=W._pipelineMap.get(Q);!G.head&&(G.head=V),G.tail&&G.tail.pipe(V),G.tail=V,V.__idxInPipeline=G.count++,V.__pipeline=G}r.wrapStageHandler=function(W,H){return v(W)&&(W={overallReset:W,seriesType:R(W)}),W.uid=n("stageHandler"),H&&(W.visualType=H),W};function R(W){X=null;try{W(B,P)}catch(H){}return X}var B={},P={},X;M(B,t),M(P,a),B.eachSeriesByType=B.eachRawSeriesByType=function(W){X=W},B.eachComponent=function(W){W.mainType==="series"&&W.subType&&(X=W.subType)};function M(W,H){for(var V in H.prototype)W[V]=f}var z=r;k.exports=z},akwb:function(k,D,i){var y=i("RSch"),p=i("bYtY"),S=i("D9ME"),v=i("QBsz");function m(u,o,n){S.call(this,u,o,n),this._lastFrame=0,this._lastFramePercent=0}var f=m.prototype;f.createLine=function(u,o,n){return new y(u,o,n)},f.updateAnimationPoints=function(u,o){this._points=o;for(var n=[0],t=0,a=1;a<o.length;a++){var e=o[a-1],l=o[a];t+=v.dist(e,l),n.push(t)}if(t===0)return;for(var a=0;a<n.length;a++)n[a]/=t;this._offsets=n,this._length=t},f.getLineLength=function(u){return this._length},f.updateSymbolPosition=function(u){var o=u.__t,n=this._points,t=this._offsets,a=n.length;if(!t)return;var e=this._lastFrame,l;if(o<this._lastFramePercent){var r=Math.min(e+1,a-1);for(l=r;l>=0&&!(t[l]<=o);l--);l=Math.min(l,a-2)}else{for(var l=e;l<a&&!(t[l]>o);l++);l=Math.min(l-1,a-2)}v.lerp(u.position,n[l],n[l+1],(o-t[l])/(t[l+1]-t[l]));var s=n[l+1][0]-n[l][0],c=n[l+1][1]-n[l][1];u.rotation=-Math.atan2(c,s)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=o,u.ignore=!1},p.inherits(m,S);var d=m;k.exports=d},apAg:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("bsht")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="SearchOutlined";var n=v.forwardRef(o);D.default=n},as94:function(k,D,i){var y=i("7aKB"),p=i("3LNs"),S=i("IwbS"),v=i("/y7N"),m=i("Fofx"),f=i("+rIm"),d=i("Znkb"),u=p.extend({makeElOption:function(a,e,l,r,s){var c=l.axis;c.dim==="angle"&&(this.animationThreshold=Math.PI/18);var h=c.polar,g=h.getOtherAxis(c),A=g.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var w=r.get("type");if(w&&w!=="none"){var x=v.buildElStyle(r),T=n[w](c,h,b,A,x);T.style=x,a.graphicKey=T.type,a.pointer=T}var _=r.get("label.margin"),E=o(e,l,r,h,_);v.buildLabelElOption(a,l,r,s,E)}});function o(a,e,l,r,s){var c=e.axis,h=c.dataToCoord(a),g=r.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var A=r.getRadiusAxis().getExtent(),b,w,x;if(c.dim==="radius"){var T=m.create();m.rotate(T,T,g),m.translate(T,T,[r.cx,r.cy]),b=S.applyTransform([h,-s],T);var _=e.getModel("axisLabel").get("rotate")||0,E=f.innerTextLayout(g,_*Math.PI/180,-1);w=E.textAlign,x=E.textVerticalAlign}else{var C=A[1];b=r.coordToPoint([C+s,h]);var I=r.cx,O=r.cy;w=Math.abs(b[0]-I)/C<.3?"center":b[0]>I?"left":"right",x=Math.abs(b[1]-O)/C<.3?"middle":b[1]>O?"top":"bottom"}return{position:b,align:w,verticalAlign:x}}var n={line:function(a,e,l,r,s){return a.dim==="angle"?{type:"Line",shape:v.makeLineShape(e.coordToPoint([r[0],l]),e.coordToPoint([r[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(a,e,l,r,s){var c=Math.max(1,a.getBandWidth()),h=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,r[0],r[1],(-l-c/2)*h,(-l+c/2)*h)}:{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,l-c/2,l+c/2,0,Math.PI*2)}}};d.registerAxisPointerClass("PolarAxisPointer",u);var t=u;k.exports=t},b56q:function(k,D,i){},b80T:function(k,D,i){var y=i("UNi/"),p=i("03A+"),S=i("Z0cm"),v=i("DSRE"),m=i("wJg7"),f=i("c6wG"),d=Object.prototype,u=d.hasOwnProperty;function o(n,t){var a=S(n),e=!a&&p(n),l=!a&&!e&&v(n),r=!a&&!e&&!l&&f(n),s=a||e||l||r,c=s?y(n.length,String):[],h=c.length;for(var g in n)(t||u.call(n,g))&&!(s&&(g=="length"||l&&(g=="offset"||g=="parent")||r&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||m(g,h)))&&c.push(g);return c}k.exports=o},b80e:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("gKaM")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DoubleLeftOutlined";var n=v.forwardRef(o);D.default=n},b9oc:function(k,D,i){var y=i("bYtY"),p=y.each,S="\0_ec_hist_store";function v(o,n){var t=u(o);p(n,function(a,e){for(var l=t.length-1;l>=0;l--){var r=t[l];if(r[e])break}if(l<0){var s=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(s){var c=s.getPercentRange();t[0][e]={dataZoomId:e,start:c[0],end:c[1]}}}}),t.push(n)}function m(o){var n=u(o),t=n[n.length-1];n.length>1&&n.pop();var a={};return p(t,function(e,l){for(var r=n.length-1;r>=0;r--){var e=n[r][l];if(e){a[l]=e;break}}}),a}function f(o){o[S]=null}function d(o){return u(o).length}function u(o){var n=o[S];return n||(n=o[S]=[{}]),n}D.push=v,D.pop=m,D.clear=f,D.count=d},bBKM:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("+rIm"),f=i("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=S.extendComponentView({type:"radar",render:function(o,n,t){var a=this.group;a.removeAll(),this._buildAxes(o),this._buildSplitLineAndArea(o)},_buildAxes:function(o){var n=o.coordinateSystem,t=n.getIndicatorAxes(),a=v.map(t,function(e){var l=new m(e.model,{position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});v.each(a,function(e){v.each(d,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(o){var n=o.coordinateSystem,t=n.getIndicatorAxes();if(!t.length)return;var a=o.get("shape"),e=o.getModel("splitLine"),l=o.getModel("splitArea"),r=e.getModel("lineStyle"),s=l.getModel("areaStyle"),c=e.get("show"),h=l.get("show"),g=r.get("color"),A=s.get("color");g=v.isArray(g)?g:[g],A=v.isArray(A)?A:[A];var b=[],w=[];function x(z,W,H){var V=H%W.length;return z[V]=z[V]||[],V}if(a==="circle")for(var T=t[0].getTicksCoords(),_=n.cx,E=n.cy,C=0;C<T.length;C++){if(c){var I=x(b,g,C);b[I].push(new f.Circle({shape:{cx:_,cy:E,r:T[C].coord}}))}if(h&&C<T.length-1){var I=x(w,A,C);w[I].push(new f.Ring({shape:{cx:_,cy:E,r0:T[C].coord,r:T[C+1].coord}}))}}else for(var O,F=v.map(t,function(z,W){var H=z.getTicksCoords();return O=O==null?H.length-1:Math.min(H.length-1,O),v.map(H,function(V){return n.coordToPoint(V.coord,W)})}),R=[],C=0;C<=O;C++){for(var B=[],P=0;P<t.length;P++)B.push(F[P][C]);if(B[0]&&B.push(B[0].slice()),c){var I=x(b,g,C);b[I].push(new f.Polyline({shape:{points:B}}))}if(h&&R){var I=x(w,A,C-1);w[I].push(new f.Polygon({shape:{points:B.concat(R)}}))}R=B.slice().reverse()}var X=r.getLineStyle(),M=s.getAreaStyle();v.each(w,function(z,W){this.group.add(f.mergePath(z,{style:v.defaults({stroke:"none",fill:A[W%A.length]},M),silent:!0}))},this),v.each(b,function(z,W){this.group.add(f.mergePath(z,{style:v.defaults({fill:"none",stroke:g[W%g.length]},X),silent:!0}))},this)}});k.exports=u},bBL8:function(k,D,i){var y=i("ProS");i("LPzL"),i("rfSb"),i("JVwQ");var p=i("UnoB"),S=i("cbJ4"),v=i("0/Rx");y.registerLayout(p),y.registerVisual(S),y.registerProcessor(v("themeRiver"))},bE4E:function(k,D,i){},bE4q:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("RIqP"),f=i.n(m),d=i("q1tI"),u=i("TSYQ"),o=i.n(u),n=i("Zm9Q"),t=i("HQEm"),a=i.n(t),e=i("XBQK"),l=i("H84U"),r=function(R,B){var P={};for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&B.indexOf(X)<0&&(P[X]=R[X]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,X=Object.getOwnPropertySymbols(R);M<X.length;M++)B.indexOf(X[M])<0&&Object.prototype.propertyIsEnumerable.call(R,X[M])&&(P[X[M]]=R[X[M]]);return P},s=function(B){var P=B.prefixCls,X=B.separator,M=X===void 0?"/":X,z=B.children,W=B.overlay,H=B.dropdownProps,V=r(B,["prefixCls","separator","children","overlay","dropdownProps"]),Q=d.useContext(l.b),G=Q.getPrefixCls,ee=G("breadcrumb",P),q=function(Ae){return W?d.createElement(e.a,p()({overlay:W,placement:"bottomCenter"},H),d.createElement("span",{className:"".concat(ee,"-overlay-link")},Ae,d.createElement(a.a,null))):Ae},se;return"href"in V?se=d.createElement("a",p()({className:"".concat(ee,"-link")},V),z):se=d.createElement("span",p()({className:"".concat(ee,"-link")},V),z),se=q(se),z?d.createElement("span",null,se,M&&M!==""&&d.createElement("span",{className:"".concat(ee,"-separator")},M)):null};s.__ANT_BREADCRUMB_ITEM=!0;var c=s,h=function(B){var P=B.children,X=d.useContext(l.b),M=X.getPrefixCls,z=M("breadcrumb");return d.createElement("span",{className:"".concat(z,"-separator")},P||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var g=h,A=i("BvKs"),b=i("uaoM"),w=i("0n0R"),x=function(R,B){var P={};for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&B.indexOf(X)<0&&(P[X]=R[X]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,X=Object.getOwnPropertySymbols(R);M<X.length;M++)B.indexOf(X[M])<0&&Object.prototype.propertyIsEnumerable.call(R,X[M])&&(P[X[M]]=R[X[M]]);return P};function T(R,B){if(!R.breadcrumbName)return null;var P=Object.keys(B).join("|"),X=R.breadcrumbName.replace(new RegExp(":(".concat(P,")"),"g"),function(M,z){return B[z]||M});return X}function _(R,B,P,X){var M=P.indexOf(R)===P.length-1,z=T(R,B);return M?d.createElement("span",null,z):d.createElement("a",{href:"#/".concat(X.join("/"))},z)}var E=function(B,P){return B=(B||"").replace(/^\//,""),Object.keys(P).forEach(function(X){B=B.replace(":".concat(X),P[X])}),B},C=function(B){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,M=f()(B),z=E(P,X);return z&&M.push(z),M},I=function(B){var P=B.prefixCls,X=B.separator,M=X===void 0?"/":X,z=B.style,W=B.className,H=B.routes,V=B.children,Q=B.itemRender,G=Q===void 0?_:Q,ee=B.params,q=ee===void 0?{}:ee,se=x(B,["prefixCls","separator","style","className","routes","children","itemRender","params"]),re=d.useContext(l.b),Ae=re.getPrefixCls,Te=re.direction,Re,Ge=Ae("breadcrumb",P);if(H&&H.length>0){var Ue=[];Re=H.map(function(Le){var le=E(Le.path,q);le&&Ue.push(le);var Xe;return Le.children&&Le.children.length&&(Xe=d.createElement(A.a,null,Le.children.map(function(pe){return d.createElement(A.a.Item,{key:pe.path||pe.breadcrumbName},G(pe,q,H,C(Ue,pe.path,q)))}))),d.createElement(c,{overlay:Xe,separator:M,key:le||Le.breadcrumbName},G(Le,q,H,Ue))})}else V&&(Re=Object(n.a)(V).map(function(Le,le){return Le&&(Object(b.a)(Le.type&&(Le.type.__ANT_BREADCRUMB_ITEM===!0||Le.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(w.a)(Le,{separator:M,key:le}))}));var nt=o()(W,Ge,v()({},"".concat(Ge,"-rtl"),Te==="rtl"));return d.createElement("div",p()({className:nt,style:z},se),Re)};I.Item=c,I.Separator=g;var O=I,F=D.a=O},bKJz:function(k,D,i){},bLfw:function(k,D,i){var y=i("bYtY"),p=i("Qxkt"),S=i("iRjW"),v=i("Yl7c"),m=v.enableClassManagement,f=v.parseClassType,d=i("4NO4"),u=d.makeInner,o=i("+TT/"),n=i("3hzK"),t=u(),a=p.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(r,s,c,h){p.call(this,r,s,c,h),this.uid=S.getUID("ec_cpt_model")},init:function(r,s,c,h){this.mergeDefaultAndTheme(r,c)},mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,h=c?o.getLayoutParams(r):{},g=s.getTheme();y.merge(r,g.get(this.mainType)),y.merge(r,this.getDefaultOption()),c&&o.mergeLayoutParam(r,h,c)},mergeOption:function(r,s){y.merge(this.option,r,!0);var c=this.layoutMode;c&&o.mergeLayoutParam(this.option,r,c)},optionUpdated:function(r,s){},getDefaultOption:function(){var r=t(this);if(!r.defaultOption){for(var s=[],c=this.constructor;c;){var h=c.prototype.defaultOption;h&&s.push(h),c=c.superClass}for(var g={},A=s.length-1;A>=0;A--)g=y.merge(g,s[A],!0);r.defaultOption=g}return r.defaultOption},getReferringComponents:function(r){return this.ecModel.queryComponents({mainType:r,index:this.get(r+"Index",!0),id:this.get(r+"Id",!0)})}});m(a,{registerWhenExtend:!0}),S.enableSubTypeDefaulter(a),S.enableTopologicalTravel(a,e);function e(r){var s=[];return y.each(a.getClassesByMainType(r),function(c){s=s.concat(c.prototype.dependencies||[])}),s=y.map(s,function(c){return f(c).main}),r!=="dataset"&&y.indexOf(s,"dataset")<=0&&s.unshift("dataset"),s}y.mixin(a,n);var l=a;k.exports=l},bMXI:function(k,D,i){var y=i("bYtY"),p=i("QBsz"),S=i("Fofx"),v=i("mFDi"),m=i("DN4a"),f=p.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,a,e,l){return this._rect=new v(t,a,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,a,e,l){this.transformTo(t,a,e,l),this._viewRect=new v(t,a,e,l)},transformTo:function(t,a,e,l){var r=this.getBoundingRect(),s=this._rawTransformable;s.transform=r.calculateTransform(new v(t,a,e,l)),s.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var a=this.zoomLimit;a&&(a.max!=null&&(t=Math.min(a.max,t)),a.min!=null&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),a=t.x+t.width/2,e=t.y+t.height/2;return[a,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(),a=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),r=this.getZoom();l=p.applyTransform([],l,t),e=p.applyTransform([],e,t),a.origin=l,a.position=[e[0]-l[0],e[1]-l[1]],a.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),S.copy(this.transform||(this.transform=[]),a.transform||S.create()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],S.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,a=this._rawTransformable;return{roamTransform:t?y.slice(t):S.create(),rawScale:y.slice(a.scale),rawPosition:y.slice(a.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,a,e){var l=a?this._rawTransform:this.transform;return e=e||[],l?f(e,t,l):p.copy(e,t)},pointToData:function(t){var a=this.invTransform;return a?f([],t,a):[t[0],t[1]]},convertToPixel:y.curry(o,"dataToPoint"),convertFromPixel:y.curry(o,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},y.mixin(u,m);function o(t,a,e,l){var r=e.seriesModel,s=r?r.coordinateSystem:null;return s===this?s[t](l):null}var n=u;k.exports=n},bNin:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("FBjb"),v=i("Itpr"),m=v.radialCoordinate,f=i("ProS"),d=i("4mN7"),u=i("bMXI"),o=i("Ae+d"),n=i("SgGq"),t=i("xSat"),a=t.onIrrelevantElement,e=i("Tghj"),l=e.__DEV__,r=i("OELB"),s=r.parsePercent,c=p.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(_,E){var C=E.childPoints,I=C.length,O=E.parentPoint,F=C[0],R=C[I-1];if(I===1){_.moveTo(O[0],O[1]),_.lineTo(F[0],F[1]);return}var B=E.orient,P=B==="TB"||B==="BT"?0:1,X=1-P,M=s(E.forkPosition,1),z=[];z[P]=O[P],z[X]=O[X]+(R[X]-O[X])*M,_.moveTo(O[0],O[1]),_.lineTo(z[0],z[1]),_.moveTo(F[0],F[1]),z[P]=F[P],_.lineTo(z[0],z[1]),z[P]=R[P],_.lineTo(z[0],z[1]),_.lineTo(R[0],R[1]);for(var W=1;W<I-1;W++){var H=C[W];_.moveTo(H[0],H[1]),z[P]=H[P],_.lineTo(z[0],z[1])}}}),h=f.extendChartView({type:"tree",init:function(_,E){this._oldTree,this._mainGroup=new p.Group,this._controller=new n(E.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,E,C,I){var O=_.getData(),F=_.layoutInfo,R=this._mainGroup,B=_.get("layout");B==="radial"?R.attr("position",[F.x+F.width/2,F.y+F.height/2]):R.attr("position",[F.x,F.y]),this._updateViewCoordSys(_,F,B),this._updateController(_,E,C);var P=this._data,X={expandAndCollapse:_.get("expandAndCollapse"),layout:B,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};O.diff(P).add(function(M){g(O,M)&&b(O,M,null,R,_,X)}).update(function(M,z){var W=P.getItemGraphicEl(z);if(!g(O,M)){W&&x(P,z,W,R,_,X);return}b(O,M,W,R,_,X)}).remove(function(M){var z=P.getItemGraphicEl(M);z&&x(P,M,z,R,_,X)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),X.expandAndCollapse===!0&&O.eachItemGraphicEl(function(M,z){M.off("click").on("click",function(){C.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:z})})}),this._data=O},_updateViewCoordSys:function(_){var E=_.getData(),C=[];E.each(function(P){var X=E.getItemLayout(P);X&&!isNaN(X.x)&&!isNaN(X.y)&&C.push([+X.x,+X.y])});var I=[],O=[];d.fromPoints(C,I,O);var F=this._min,R=this._max;O[0]-I[0]===0&&(I[0]=F?F[0]:I[0]-1,O[0]=R?R[0]:O[0]+1),O[1]-I[1]===0&&(I[1]=F?F[1]:I[1]-1,O[1]=R?R[1]:O[1]+1);var B=_.coordinateSystem=new u;B.zoomLimit=_.get("scaleLimit"),B.setBoundingRect(I[0],I[1],O[0]-I[0],O[1]-I[1]),B.setCenter(_.get("center")),B.setZoom(_.get("zoom")),this.group.attr({position:B.position,scale:B.scale}),this._viewCoordSys=B,this._min=I,this._max=O},_updateController:function(_,E,C){var I=this._controller,O=this._controllerHost,F=this.group;I.setPointerChecker(function(R,B,P){var X=F.getBoundingRect();return X.applyTransform(F.transform),X.contain(B,P)&&!a(R,C,_)}),I.enable(_.get("roam")),O.zoomLimit=_.get("scaleLimit"),O.zoom=_.coordinateSystem.getZoom(),I.off("pan").off("zoom").on("pan",function(R){o.updateViewOnPan(O,R.dx,R.dy),C.dispatchAction({seriesId:_.id,type:"treeRoam",dx:R.dx,dy:R.dy})},this).on("zoom",function(R){o.updateViewOnZoom(O,R.scale,R.originX,R.originY),C.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:R.scale,originX:R.originX,originY:R.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var E=_.getData(),C=this._getNodeGlobalScale(_),I=[C,C];E.eachItemGraphicEl(function(O,F){O.attr("scale",I)})},_getNodeGlobalScale:function(_){var E=_.coordinateSystem;if(E.type!=="view")return 1;var C=this._nodeScaleRatio,I=E.scale,O=I&&I[0]||1,F=E.getZoom(),R=(F-1)*C+1;return R/O},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(_,E){var C=_.getItemLayout(E);return C&&!isNaN(C.x)&&!isNaN(C.y)&&_.getItemVisual(E,"symbol")!=="none"}function A(_,E,C){return C.itemModel=E,C.itemStyle=E.getModel("itemStyle").getItemStyle(),C.hoverItemStyle=E.getModel("emphasis.itemStyle").getItemStyle(),C.lineStyle=E.getModel("lineStyle").getLineStyle(),C.labelModel=E.getModel("label"),C.hoverLabelModel=E.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?C.symbolInnerColor=C.itemStyle.fill:C.symbolInnerColor="#fff",C}function b(_,E,C,I,O,F){var R=!C,B=_.tree.getNodeByDataIndex(E),P=B.getModel(),F=A(B,P,F),X=_.tree.root,M=B.parentNode===X?B:B.parentNode||B,z=_.getItemGraphicEl(M.dataIndex),W=M.getLayout(),H=z?{x:z.position[0],y:z.position[1],rawX:z.__radialOldRawX,rawY:z.__radialOldRawY}:W,V=B.getLayout();R?(C=new S(_,E,F),C.attr("position",[H.x,H.y])):C.updateData(_,E,F),C.__radialOldRawX=C.__radialRawX,C.__radialOldRawY=C.__radialRawY,C.__radialRawX=V.rawX,C.__radialRawY=V.rawY,I.add(C),_.setItemGraphicEl(E,C),p.updateProps(C,{position:[V.x,V.y]},O);var Q=C.getSymbolPath();if(F.layout==="radial"){var G=X.children[0],ee=G.getLayout(),q=G.children.length,se,re;if(V.x===ee.x&&B.isExpand===!0){var Ae={};Ae.x=(G.children[0].getLayout().x+G.children[q-1].getLayout().x)/2,Ae.y=(G.children[0].getLayout().y+G.children[q-1].getLayout().y)/2,se=Math.atan2(Ae.y-ee.y,Ae.x-ee.x),se<0&&(se=Math.PI*2+se),re=Ae.x<ee.x,re&&(se=se-Math.PI)}else se=Math.atan2(V.y-ee.y,V.x-ee.x),se<0&&(se=Math.PI*2+se),B.children.length===0||B.children.length!==0&&B.isExpand===!1?(re=V.x<ee.x,re&&(se=se-Math.PI)):(re=V.x>ee.x,re||(se=se-Math.PI));var Te=re?"left":"right",Re=F.labelModel.get("rotate"),Ge=Re*(Math.PI/180);Q.setStyle({textPosition:F.labelModel.get("position")||Te,textRotation:Re==null?-se:Ge,textOrigin:"center",verticalAlign:"middle"})}w(O,B,X,C,H,W,V,I,F)}function w(_,E,C,I,O,F,R,B,P){var X=P.edgeShape,M=I.__edge;if(X==="curve")E.parentNode&&E.parentNode!==C&&(M||(M=I.__edge=new p.BezierCurve({shape:T(P,O,O),style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(M,{shape:T(P,F,R),style:{opacity:1}},_));else if(X==="polyline"&&(P.layout==="orthogonal"&&(E!==C&&E.children&&E.children.length!==0&&E.isExpand===!0))){for(var z=E.children,W=[],H=0;H<z.length;H++){var V=z[H].getLayout();W.push([V.x,V.y])}M||(M=I.__edge=new c({shape:{parentPoint:[R.x,R.y],childPoints:[[R.x,R.y]],orient:P.orient,forkPosition:P.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(M,{shape:{parentPoint:[R.x,R.y],childPoints:W},style:{opacity:1}},_)}B.add(M)}function x(_,E,C,I,O,F){for(var R=_.tree.getNodeByDataIndex(E),B=_.tree.root,P=R.getModel(),F=A(R,P,F),X=R.parentNode===B?R:R.parentNode||R,M=F.edgeShape,z;z=X.getLayout(),z==null;)X=X.parentNode===B?X:X.parentNode||X;p.updateProps(C,{position:[z.x+1,z.y+1]},O,function(){I.remove(C),_.setItemGraphicEl(E,null)}),C.fadeOut(null,{keepLabel:!0});var W=_.getItemGraphicEl(X.dataIndex),H=W.__edge,V=C.__edge||(X.isExpand===!1||X.children.length===1?H:void 0),M=F.edgeShape;V&&(M==="curve"?p.updateProps(V,{shape:T(F,z,z),style:{opacity:0}},O,function(){I.remove(V)}):M==="polyline"&&F.layout==="orthogonal"&&p.updateProps(V,{shape:{parentPoint:[z.x,z.y],childPoints:[[z.x,z.y]]},style:{opacity:0}},O,function(){I.remove(V)}))}function T(_,E,C){var I,O,F,R,B=_.orient,P,X,M,z;if(_.layout==="radial"){P=E.rawX,M=E.rawY,X=C.rawX,z=C.rawY;var W=m(P,M),H=m(P,M+(z-M)*_.curvature),V=m(X,z+(M-z)*_.curvature),Q=m(X,z);return{x1:W.x,y1:W.y,x2:Q.x,y2:Q.y,cpx1:H.x,cpy1:H.y,cpx2:V.x,cpy2:V.y}}else P=E.x,M=E.y,X=C.x,z=C.y,(B==="LR"||B==="RL")&&(I=P+(X-P)*_.curvature,O=M,F=X+(P-X)*_.curvature,R=z),(B==="TB"||B==="BT")&&(I=P,O=M+(z-M)*_.curvature,F=X,R=z+(M-z)*_.curvature);return{x1:P,y1:M,x2:X,y2:z,cpx1:I,cpy1:O,cpx2:F,cpy2:R}}k.exports=h},bQjk:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return function(p){var S=y,v=S.lib,m=v.CipherParams,f=S.enc,d=f.Hex,u=S.format,o=u.Hex={stringify:function(t){return t.ciphertext.toString(d)},parse:function(t){var a=d.parse(t);return m.create({ciphertext:a})}}}(),y.format.Hex})},bT9E:function(k,D,i){"use strict";i.d(D,"a",function(){return p});var y=i("VTBJ");function p(S,v){var m=Object(y.a)({},S);return Array.isArray(v)&&v.forEach(function(f){delete m[f]}),m}},bX4T:function(k,D,i){"use strict";i.d(D,"a",function(){return u});var y=i("VTBJ"),p=`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`,S=`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`,v="".concat(p," ").concat(S).split(/[\s\n]+/),m="aria-",f="data-";function d(o,n){return o.indexOf(n)===0}function u(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;n===!1?t={aria:!0,data:!0,attr:!0}:n===!0?t={aria:!0}:t=Object(y.a)({},n);var a={};return Object.keys(o).forEach(function(e){(t.aria&&(e==="role"||d(e,m))||t.data&&d(e,f)||t.attr&&v.includes(e))&&(a[e]=o[e])}),a}},bYtY:function(k,D){var i={"[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},p=Object.prototype.toString,S=Array.prototype,v=S.forEach,m=S.filter,f=S.slice,d=S.map,u=S.reduce,o={};function n(Le,le){Le==="createCanvas"&&(c=null),o[Le]=le}function t(Le){if(Le==null||typeof Le!="object")return Le;var le=Le,Xe=p.call(Le);if(Xe==="[object Array]"){if(!Te(Le)){le=[];for(var pe=0,Z=Le.length;pe<Z;pe++)le[pe]=t(Le[pe])}}else if(y[Xe]){if(!Te(Le)){var Y=Le.constructor;if(Le.constructor.from)le=Y.from(Le);else{le=new Y(Le.length);for(var pe=0,Z=Le.length;pe<Z;pe++)le[pe]=t(Le[pe])}}}else if(!i[Xe]&&!Te(Le)&&!z(Le)){le={};for(var ne in Le)Le.hasOwnProperty(ne)&&(le[ne]=t(Le[ne]))}return le}function a(Le,le,Xe){if(!P(le)||!P(Le))return Xe?t(le):Le;for(var pe in le)if(le.hasOwnProperty(pe)){var Z=Le[pe],Y=le[pe];P(Y)&&P(Z)&&!F(Y)&&!F(Z)&&!z(Y)&&!z(Z)&&!X(Y)&&!X(Z)&&!Te(Y)&&!Te(Z)?a(Z,Y,Xe):(Xe||!(pe in Le))&&(Le[pe]=t(le[pe],!0))}return Le}function e(Le,le){for(var Xe=Le[0],pe=1,Z=Le.length;pe<Z;pe++)Xe=a(Xe,Le[pe],le);return Xe}function l(Le,le){for(var Xe in le)le.hasOwnProperty(Xe)&&(Le[Xe]=le[Xe]);return Le}function r(Le,le,Xe){for(var pe in le)le.hasOwnProperty(pe)&&(Xe?le[pe]!=null:Le[pe]==null)&&(Le[pe]=le[pe]);return Le}var s=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var c;function h(){return c||(c=s().getContext("2d")),c}function g(Le,le){if(Le){if(Le.indexOf)return Le.indexOf(le);for(var Xe=0,pe=Le.length;Xe<pe;Xe++)if(Le[Xe]===le)return Xe}return-1}function A(Le,le){var Xe=Le.prototype;function pe(){}pe.prototype=le.prototype,Le.prototype=new pe;for(var Z in Xe)Xe.hasOwnProperty(Z)&&(Le.prototype[Z]=Xe[Z]);Le.prototype.constructor=Le,Le.superClass=le}function b(Le,le,Xe){Le="prototype"in Le?Le.prototype:Le,le="prototype"in le?le.prototype:le,r(Le,le,Xe)}function w(Le){return Le?typeof Le=="string"?!1:typeof Le.length=="number":void 0}function x(Le,le,Xe){if(!(Le&&le))return;if(Le.forEach&&Le.forEach===v)Le.forEach(le,Xe);else if(Le.length===+Le.length)for(var pe=0,Z=Le.length;pe<Z;pe++)le.call(Xe,Le[pe],pe,Le);else for(var Y in Le)Le.hasOwnProperty(Y)&&le.call(Xe,Le[Y],Y,Le)}function T(Le,le,Xe){if(!(Le&&le))return;if(Le.map&&Le.map===d)return Le.map(le,Xe);for(var pe=[],Z=0,Y=Le.length;Z<Y;Z++)pe.push(le.call(Xe,Le[Z],Z,Le));return pe}function _(Le,le,Xe,pe){if(!(Le&&le))return;if(Le.reduce&&Le.reduce===u)return Le.reduce(le,Xe,pe);for(var Z=0,Y=Le.length;Z<Y;Z++)Xe=le.call(pe,Xe,Le[Z],Z,Le);return Xe}function E(Le,le,Xe){if(!(Le&&le))return;if(Le.filter&&Le.filter===m)return Le.filter(le,Xe);for(var pe=[],Z=0,Y=Le.length;Z<Y;Z++)le.call(Xe,Le[Z],Z,Le)&&pe.push(Le[Z]);return pe}function C(Le,le,Xe){if(!(Le&&le))return;for(var pe=0,Z=Le.length;pe<Z;pe++)if(le.call(Xe,Le[pe],pe,Le))return Le[pe]}function I(Le,le){var Xe=f.call(arguments,2);return function(){return Le.apply(le,Xe.concat(f.call(arguments)))}}function O(Le){var le=f.call(arguments,1);return function(){return Le.apply(this,le.concat(f.call(arguments)))}}function F(Le){return p.call(Le)==="[object Array]"}function R(Le){return typeof Le=="function"}function B(Le){return p.call(Le)==="[object String]"}function P(Le){var le=typeof Le;return le==="function"||!!Le&&le==="object"}function X(Le){return!!i[p.call(Le)]}function M(Le){return!!y[p.call(Le)]}function z(Le){return typeof Le=="object"&&typeof Le.nodeType=="number"&&typeof Le.ownerDocument=="object"}function W(Le){return Le!==Le}function H(Le){for(var le=0,Xe=arguments.length;le<Xe;le++)if(arguments[le]!=null)return arguments[le]}function V(Le,le){return Le!=null?Le:le}function Q(Le,le,Xe){return Le!=null?Le:le!=null?le:Xe}function G(){return Function.call.apply(f,arguments)}function ee(Le){if(typeof Le=="number")return[Le,Le,Le,Le];var le=Le.length;return le===2?[Le[0],Le[1],Le[0],Le[1]]:le===3?[Le[0],Le[1],Le[2],Le[1]]:Le}function q(Le,le){if(!Le)throw new Error(le)}function se(Le){return Le==null?null:typeof Le.trim=="function"?Le.trim():Le.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var re="__ec_primitive__";function Ae(Le){Le[re]=!0}function Te(Le){return Le[re]}function Re(Le){var le=F(Le);this.data={};var Xe=this;Le instanceof Re?Le.each(pe):Le&&x(Le,pe);function pe(Z,Y){le?Xe.set(Z,Y):Xe.set(Y,Z)}}Re.prototype={constructor:Re,get:function(le){return this.data.hasOwnProperty(le)?this.data[le]:null},set:function(le,Xe){return this.data[le]=Xe},each:function(le,Xe){Xe!==void 0&&(le=I(le,Xe));for(var pe in this.data)this.data.hasOwnProperty(pe)&&le(this.data[pe],pe)},removeKey:function(le){delete this.data[le]}};function Ge(Le){return new Re(Le)}function Ue(Le,le){for(var Xe=new Le.constructor(Le.length+le.length),pe=0;pe<Le.length;pe++)Xe[pe]=Le[pe];var Z=Le.length;for(pe=0;pe<le.length;pe++)Xe[pe+Z]=le[pe];return Xe}function nt(){}D.$override=n,D.clone=t,D.merge=a,D.mergeAll=e,D.extend=l,D.defaults=r,D.createCanvas=s,D.getContext=h,D.indexOf=g,D.inherits=A,D.mixin=b,D.isArrayLike=w,D.each=x,D.map=T,D.reduce=_,D.filter=E,D.find=C,D.bind=I,D.curry=O,D.isArray=F,D.isFunction=R,D.isString=B,D.isObject=P,D.isBuiltInObject=X,D.isTypedArray=M,D.isDom=z,D.eqNaN=W,D.retrieve=H,D.retrieve2=V,D.retrieve3=Q,D.slice=G,D.normalizeCssArray=ee,D.assert=q,D.trim=se,D.setAsPrimitive=Ae,D.isPrimitive=Te,D.createHashMap=Ge,D.concatArray=Ue,D.noop=nt},bZqE:function(k,D){function i(p,S,v){for(var m=[p],f=[],d;d=m.pop();)if(f.push(d),d.isExpand){var u=d.children;if(u.length)for(var o=0;o<u.length;o++)m.push(u[o])}for(;d=f.pop();)S(d,v)}function y(p,S){for(var v=[p],m;m=v.pop();)if(S(m),m.isExpand){var f=m.children;if(f.length)for(var d=f.length-1;d>=0;d--)v.push(f[d])}}D.eachAfter=i,D.eachBefore=y},bbsP:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("CWI+"),v=i.n(S)},bogI:function(k,D,i){"use strict";i.d(D,"a",function(){return y});var y=function(S){if(!S)return null;var v=typeof S=="function";return v?S():S}},bsht:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},bx4M:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),u=i("BGR+"),o=i("H84U"),n=function(T,_){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&_.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)_.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E},t=function(_){return m.createElement(o.a,null,function(E){var C=E.getPrefixCls,I=_.prefixCls,O=_.className,F=_.hoverable,R=F===void 0?!0:F,B=n(_,["prefixCls","className","hoverable"]),P=C("card",I),X=d()("".concat(P,"-grid"),O,p()({},"".concat(P,"-grid-hoverable"),R));return m.createElement("div",v()({},B,{className:X}))})},a=t,e=function(T,_){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&_.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)_.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E},l=function(_){return m.createElement(o.a,null,function(E){var C=E.getPrefixCls,I=_.prefixCls,O=_.className,F=_.avatar,R=_.title,B=_.description,P=e(_,["prefixCls","className","avatar","title","description"]),X=C("card",I),M=d()("".concat(X,"-meta"),O),z=F?m.createElement("div",{className:"".concat(X,"-meta-avatar")},F):null,W=R?m.createElement("div",{className:"".concat(X,"-meta-title")},R):null,H=B?m.createElement("div",{className:"".concat(X,"-meta-description")},B):null,V=W||H?m.createElement("div",{className:"".concat(X,"-meta-detail")},W,H):null;return m.createElement("div",v()({},P,{className:M}),z,V)})},r=l,s=i("ZTPi"),c=i("BMrR"),h=i("kPKH"),g=i("3Nzz"),A=function(T,_){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&_.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)_.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E};function b(T){var _=T.map(function(E,C){return m.createElement("li",{style:{width:"".concat(100/T.length,"%")},key:"action-".concat(C)},m.createElement("span",null,E))});return _}var w=function(_){var E,C,I=m.useContext(o.b),O=I.getPrefixCls,F=I.direction,R=m.useContext(g.b),B=function(Ut){_.onTabChange&&_.onTabChange(Ut)},P=function(){var Ut;return m.Children.forEach(_.children,function(ir){ir&&ir.type&&ir.type===a&&(Ut=!0)}),Ut},X=_.prefixCls,M=_.className,z=_.extra,W=_.headStyle,H=W===void 0?{}:W,V=_.bodyStyle,Q=V===void 0?{}:V,G=_.title,ee=_.loading,q=_.bordered,se=q===void 0?!0:q,re=_.size,Ae=_.type,Te=_.cover,Re=_.actions,Ge=_.tabList,Ue=_.children,nt=_.activeTabKey,Le=_.defaultActiveTabKey,le=_.tabBarExtraContent,Xe=_.hoverable,pe=_.tabProps,Z=pe===void 0?{}:pe,Y=A(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),ne=O("card",X),ce=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,ye=m.createElement("div",{className:"".concat(ne,"-loading-block")}),Ee=m.createElement("div",{className:"".concat(ne,"-loading-content"),style:ce},m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:22},ye)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:8},ye),m.createElement(h.a,{span:15},ye)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:6},ye),m.createElement(h.a,{span:18},ye)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:13},ye),m.createElement(h.a,{span:9},ye)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:4},ye),m.createElement(h.a,{span:3},ye),m.createElement(h.a,{span:16},ye))),Ce=nt!==void 0,ue=v()(v()({},Z),(E={},p()(E,Ce?"activeKey":"defaultActiveKey",Ce?nt:Le),p()(E,"tabBarExtraContent",le),E)),ge,Oe=Ge&&Ge.length?m.createElement(s.a,v()({size:"large"},ue,{className:"".concat(ne,"-head-tabs"),onChange:B}),Ge.map(function(Ot){return m.createElement(s.a.TabPane,{tab:Ot.tab,disabled:Ot.disabled,key:Ot.key})})):null;(G||z||Oe)&&(ge=m.createElement("div",{className:"".concat(ne,"-head"),style:H},m.createElement("div",{className:"".concat(ne,"-head-wrapper")},G&&m.createElement("div",{className:"".concat(ne,"-head-title")},G),z&&m.createElement("div",{className:"".concat(ne,"-extra")},z)),Oe));var Je=Te?m.createElement("div",{className:"".concat(ne,"-cover")},Te):null,lt=m.createElement("div",{className:"".concat(ne,"-body"),style:Q},ee?Ee:Ue),tt=Re&&Re.length?m.createElement("ul",{className:"".concat(ne,"-actions")},b(Re)):null,ke=Object(u.default)(Y,["onTabChange"]),st=re||R,Ve=d()(ne,M,(C={},p()(C,"".concat(ne,"-loading"),ee),p()(C,"".concat(ne,"-bordered"),se),p()(C,"".concat(ne,"-hoverable"),Xe),p()(C,"".concat(ne,"-contain-grid"),P()),p()(C,"".concat(ne,"-contain-tabs"),Ge&&Ge.length),p()(C,"".concat(ne,"-").concat(st),st),p()(C,"".concat(ne,"-type-").concat(Ae),!!Ae),p()(C,"".concat(ne,"-rtl"),F==="rtl"),C));return m.createElement("div",v()({},ke,{className:Ve}),ge,Je,lt,tt)};w.Grid=a,w.Meta=r;var x=D.a=w},c2i1:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("Yl7c"),m=v.enableClassCheck;function f(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 r=this._nodesMap;if(r[f(e)])return;var s=new o(e,l);return s.hostGraph=this,this.nodes.push(s),r[f(e)]=s,s},u.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},u.getNodeById=function(e){return this._nodesMap[f(e)]},u.addEdge=function(e,l,r){var s=this._nodesMap,c=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),o.isInstance(e)||(e=s[f(e)]),o.isInstance(l)||(l=s[f(l)]),!e||!l)return;var h=e.id+"-"+l.id;if(c[h])return;var g=new n(e,l,r);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){o.isInstance(e)&&(e=e.id),o.isInstance(l)&&(l=l.id);var r=this._edgesMap;return this._directed?r[e+"-"+l]:r[e+"-"+l]||r[l+"-"+e]},u.eachNode=function(e,l){for(var r=this.nodes,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&e.call(l,r[c],c)},u.eachEdge=function(e,l){for(var r=this.edges,s=r.length,c=0;c<s;c++)r[c].dataIndex>=0&&r[c].node1.dataIndex>=0&&r[c].node2.dataIndex>=0&&e.call(l,r[c],c)},u.breadthFirstTraverse=function(e,l,r,s){if(o.isInstance(l)||(l=this._nodesMap[f(l)]),!l)return;for(var c=r==="out"?"outEdges":r==="in"?"inEdges":"edges",h=0;h<this.nodes.length;h++)this.nodes[h].__visited=!1;if(e.call(s,l,null))return;for(var g=[l];g.length;)for(var A=g.shift(),b=A[c],h=0;h<b.length;h++){var w=b[h],x=w.node1===A?w.node2:w.node1;if(!x.__visited){if(e.call(s,x,A))return;g.push(x),x.__visited=!0}}},u.update=function(){for(var e=this.data,l=this.edgeData,r=this.nodes,s=this.edges,c=0,h=r.length;c<h;c++)r[c].dataIndex=-1;for(var c=0,h=e.count();c<h;c++)r[e.getRawIndex(c)].dataIndex=c;l.filterSelf(function(g){var A=s[l.getRawIndex(g)];return A.node1.dataIndex>=0&&A.node2.dataIndex>=0});for(var c=0,h=s.length;c<h;c++)s[c].dataIndex=-1;for(var c=0,h=l.count();c<h;c++)s[l.getRawIndex(c)].dataIndex=c},u.clone=function(){for(var e=new d(this._directed),l=this.nodes,r=this.edges,s=0;s<l.length;s++)e.addNode(l[s].id,l[s].dataIndex);for(var s=0;s<r.length;s++){var c=r[s];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e};function o(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}o.prototype={constructor:o,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,r=l.data.getItemModel(this.dataIndex);return r.getModel(e)}};function n(e,l,r){this.node1=e,this.node2=l,this.dataIndex=r==null?-1:r}n.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.edgeData.getItemModel(this.dataIndex);return r.getModel(e)};var t=function(e,l){return{getValue:function(r){var s=this[e][l];return s.get(s.getDimension(r||"value"),this.dataIndex)},setVisual:function(r,s){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,r,s)},getVisual:function(r,s){return this[e][l].getItemVisual(this.dataIndex,r,s)},setLayout:function(r,s){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,r,s)},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)}}};S.mixin(o,t("hostGraph","data")),S.mixin(n,t("hostGraph","edgeData")),d.Node=o,d.Edge=n,m(o),m(n);var a=d;k.exports=a},c3jg:function(k,D,i){"use strict";i.d(D,"e",function(){return d}),i.d(D,"c",function(){return o}),i.d(D,"d",function(){return n}),i.d(D,"a",function(){return a}),i.d(D,"f",function(){return e}),i.d(D,"b",function(){return l});var y=i("KQm4"),p=i("VTBJ"),S=i("Ff2n"),v=i("Zm9Q"),m=i("Kwbf"),f=i("wPhX");function d(r,s){return r!=null?r:s}function u(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=new Map;function c(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(A){var b=A.key,w=A.children;Object(m.a)(b!=null,"Tree node must have a certain key: [".concat(g).concat(b,"]"));var x=String(b);Object(m.a)(!s.has(x)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(x)),s.set(x,!0),c(w,"".concat(g).concat(x," > "))})}c(r)}function o(r){function s(c){var h=Object(v.a)(c);return h.map(function(g){if(!Object(f.i)(g))return Object(m.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var A=g.key,b=g.props,w=b.children,x=Object(S.a)(b,["children"]),T=Object(p.a)({key:A},x),_=s(w);return _.length&&(T.children=_),T}).filter(function(g){return g})}return s(r)}function n(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=new Set(s===!0?[]:s),h=[];function g(A){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(w,x){var T=Object(f.h)(b?b.pos:"0",x),_=d(w.key,T),E=Object(p.a)(Object(p.a)({},w),{},{parent:b,pos:T,children:null,data:w,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[x===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[x===A.length-1])});return h.push(E),s===!0||c.has(_)?E.children=g(w.children||[],E):E.children=[],E})}return g(r),h}function t(r,s,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,w){return d(b.key,w)};function g(A,b,w){var x=A?A.children:r,T=A?Object(f.h)(w.pos,b):"0";if(A){var _=h(A,T),E={node:A,index:b,pos:T,key:_,parentPos:w.node?w.pos:null,level:w.level+1};s(E)}x&&x.forEach(function(C,I){g(C,I,{node:A,pos:T,level:w?w.level+1:-1})})}g(null)}function a(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.initWrapper,h=s.processEntity,g=s.onProcessFinished,A=arguments.length>2?arguments[2]:void 0,b={},w={},x={posEntities:b,keyEntities:w};return c&&(x=c(x)||x),t(r,function(T){var _=T.node,E=T.index,C=T.pos,I=T.key,O=T.parentPos,F=T.level,R={node:_,index:E,key:I,pos:C,level:F},B=d(I,C);b[C]=R,w[B]=R,R.parent=b[O],R.parent&&(R.parent.children=R.parent.children||[],R.parent.children.push(R)),h&&h(R,x)},A),g&&g(x),x}function e(r,s){var c=s.expandedKeys,h=s.selectedKeys,g=s.loadedKeys,A=s.loadingKeys,b=s.checkedKeys,w=s.halfCheckedKeys,x=s.dragOverNodeKey,T=s.dropPosition,_=s.keyEntities,E=_[r],C={eventKey:r,expanded:c.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:A.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:w.indexOf(r)!==-1,pos:String(E?E.pos:""),dragOver:x===r&&T===0,dragOverGapTop:x===r&&T===-1,dragOverGapBottom:x===r&&T===1};return C}function l(r){var s=r.data,c=r.expanded,h=r.selected,g=r.checked,A=r.loaded,b=r.loading,w=r.halfChecked,x=r.dragOver,T=r.dragOverGapTop,_=r.dragOverGapBottom,E=r.pos,C=r.active,I=Object(p.a)(Object(p.a)({},s),{},{expanded:c,selected:h,checked:g,loaded:A,loading:b,halfChecked:w,dragOver:x,dragOverGapTop:T,dragOverGapBottom:_,pos:E,active:C});return"props"in I||Object.defineProperty(I,"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`."),r}}),I}},c5Ni:function(k,D,i){},c5fP:function(k,D,i){"use strict";function y(Ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(Ut){return typeof Ut}:y=function(Ut){return Ut&&typeof Symbol=="function"&&Ut.constructor===Symbol&&Ut!==Symbol.prototype?"symbol":typeof Ut},y(Ve)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=Je,D._tr_stored_block=lt,D._tr_flush_block=ke,D._tr_tally=st,D._tr_align=tt;var p=v(i("6BzB"));function S(){if(typeof WeakMap!="function")return null;var Ve=new WeakMap;return S=function(){return Ve},Ve}function v(Ve){if(Ve&&Ve.__esModule)return Ve;if(Ve===null||y(Ve)!=="object"&&typeof Ve!="function")return{default:Ve};var Ot=S();if(Ot&&Ot.has(Ve))return Ot.get(Ve);var Ut={},ir=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var lr in Ve)if(Object.prototype.hasOwnProperty.call(Ve,lr)){var Sr=ir?Object.getOwnPropertyDescriptor(Ve,lr):null;Sr&&(Sr.get||Sr.set)?Object.defineProperty(Ut,lr,Sr):Ut[lr]=Ve[lr]}return Ut.default=Ve,Ot&&Ot.set(Ve,Ut),Ut}var m=4,f=0,d=1,u=2;function o(Ve){for(var Ot=Ve.length;--Ot>=0;)Ve[Ot]=0}var n=0,t=1,a=2,e=3,l=258,r=29,s=256,c=s+1+r,h=30,g=19,A=2*c+1,b=15,w=16,x=7,T=256,_=16,E=17,C=18,I=[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],O=[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],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,P=new Array((c+2)*2);o(P);var X=new Array(h*2);o(X);var M=new Array(B);o(M);var z=new Array(l-e+1);o(z);var W=new Array(r);o(W);var H=new Array(h);o(H);function V(Ve,Ot,Ut,ir,lr){this.static_tree=Ve,this.extra_bits=Ot,this.extra_base=Ut,this.elems=ir,this.max_length=lr,this.has_stree=Ve&&Ve.length}var Q,G,ee;function q(Ve,Ot){this.dyn_tree=Ve,this.max_code=0,this.stat_desc=Ot}function se(Ve){return Ve<256?M[Ve]:M[256+(Ve>>>7)]}function re(Ve,Ot){Ve.pending_buf[Ve.pending++]=Ot&255,Ve.pending_buf[Ve.pending++]=Ot>>>8&255}function Ae(Ve,Ot,Ut){Ve.bi_valid>w-Ut?(Ve.bi_buf|=Ot<<Ve.bi_valid&65535,re(Ve,Ve.bi_buf),Ve.bi_buf=Ot>>w-Ve.bi_valid,Ve.bi_valid+=Ut-w):(Ve.bi_buf|=Ot<<Ve.bi_valid&65535,Ve.bi_valid+=Ut)}function Te(Ve,Ot,Ut){Ae(Ve,Ut[Ot*2],Ut[Ot*2+1])}function Re(Ve,Ot){var Ut=0;do Ut|=Ve&1,Ve>>>=1,Ut<<=1;while(--Ot>0);return Ut>>>1}function Ge(Ve){Ve.bi_valid===16?(re(Ve,Ve.bi_buf),Ve.bi_buf=0,Ve.bi_valid=0):Ve.bi_valid>=8&&(Ve.pending_buf[Ve.pending++]=Ve.bi_buf&255,Ve.bi_buf>>=8,Ve.bi_valid-=8)}function Ue(Ve,Ot){var Ut=Ot.dyn_tree,ir=Ot.max_code,lr=Ot.stat_desc.static_tree,Sr=Ot.stat_desc.has_stree,mt=Ot.stat_desc.extra_bits,or=Ot.stat_desc.extra_base,et=Ot.stat_desc.max_length,ur,qr,Fe,$t,Lr,pt,qt=0;for($t=0;$t<=b;$t++)Ve.bl_count[$t]=0;for(Ut[Ve.heap[Ve.heap_max]*2+1]=0,ur=Ve.heap_max+1;ur<A;ur++){if(qr=Ve.heap[ur],$t=Ut[Ut[qr*2+1]*2+1]+1,$t>et&&($t=et,qt++),Ut[qr*2+1]=$t,qr>ir)continue;Ve.bl_count[$t]++,Lr=0,qr>=or&&(Lr=mt[qr-or]),pt=Ut[qr*2],Ve.opt_len+=pt*($t+Lr),Sr&&(Ve.static_len+=pt*(lr[qr*2+1]+Lr))}if(qt===0)return;do{for($t=et-1;Ve.bl_count[$t]===0;)$t--;Ve.bl_count[$t]--,Ve.bl_count[$t+1]+=2,Ve.bl_count[et]--,qt-=2}while(qt>0);for($t=et;$t!==0;$t--)for(qr=Ve.bl_count[$t];qr!==0;){if(Fe=Ve.heap[--ur],Fe>ir)continue;Ut[Fe*2+1]!==$t&&(Ve.opt_len+=($t-Ut[Fe*2+1])*Ut[Fe*2],Ut[Fe*2+1]=$t),qr--}}function nt(Ve,Ot,Ut){var ir=new Array(b+1),lr=0,Sr,mt;for(Sr=1;Sr<=b;Sr++)ir[Sr]=lr=lr+Ut[Sr-1]<<1;for(mt=0;mt<=Ot;mt++){var or=Ve[mt*2+1];if(or===0)continue;Ve[mt*2]=Re(ir[or]++,or)}}function Le(){var Ve,Ot,Ut,ir,lr,Sr=new Array(b+1);for(Ut=0,ir=0;ir<r-1;ir++)for(W[ir]=Ut,Ve=0;Ve<1<<I[ir];Ve++)z[Ut++]=ir;for(z[Ut-1]=ir,lr=0,ir=0;ir<16;ir++)for(H[ir]=lr,Ve=0;Ve<1<<O[ir];Ve++)M[lr++]=ir;for(lr>>=7;ir<h;ir++)for(H[ir]=lr<<7,Ve=0;Ve<1<<O[ir]-7;Ve++)M[256+lr++]=ir;for(Ot=0;Ot<=b;Ot++)Sr[Ot]=0;for(Ve=0;Ve<=143;)P[Ve*2+1]=8,Ve++,Sr[8]++;for(;Ve<=255;)P[Ve*2+1]=9,Ve++,Sr[9]++;for(;Ve<=279;)P[Ve*2+1]=7,Ve++,Sr[7]++;for(;Ve<=287;)P[Ve*2+1]=8,Ve++,Sr[8]++;for(nt(P,c+1,Sr),Ve=0;Ve<h;Ve++)X[Ve*2+1]=5,X[Ve*2]=Re(Ve,5);Q=new V(P,I,s+1,c,b),G=new V(X,O,0,h,b),ee=new V(new Array(0),F,0,g,x)}function le(Ve){var Ot;for(Ot=0;Ot<c;Ot++)Ve.dyn_ltree[Ot*2]=0;for(Ot=0;Ot<h;Ot++)Ve.dyn_dtree[Ot*2]=0;for(Ot=0;Ot<g;Ot++)Ve.bl_tree[Ot*2]=0;Ve.dyn_ltree[T*2]=1,Ve.opt_len=Ve.static_len=0,Ve.last_lit=Ve.matches=0}function Xe(Ve){Ve.bi_valid>8?re(Ve,Ve.bi_buf):Ve.bi_valid>0&&(Ve.pending_buf[Ve.pending++]=Ve.bi_buf),Ve.bi_buf=0,Ve.bi_valid=0}function pe(Ve,Ot,Ut,ir){Xe(Ve),ir&&(re(Ve,Ut),re(Ve,~Ut)),p.arraySet(Ve.pending_buf,Ve.window,Ot,Ut,Ve.pending),Ve.pending+=Ut}function Z(Ve,Ot,Ut,ir){var lr=Ot*2,Sr=Ut*2;return Ve[lr]<Ve[Sr]||Ve[lr]===Ve[Sr]&&ir[Ot]<=ir[Ut]}function Y(Ve,Ot,Ut){for(var ir=Ve.heap[Ut],lr=Ut<<1;lr<=Ve.heap_len&&!(lr<Ve.heap_len&&Z(Ot,Ve.heap[lr+1],Ve.heap[lr],Ve.depth)&&lr++,Z(Ot,ir,Ve.heap[lr],Ve.depth));)Ve.heap[Ut]=Ve.heap[lr],Ut=lr,lr<<=1;Ve.heap[Ut]=ir}function ne(Ve,Ot,Ut){var ir,lr,Sr=0,mt,or;if(Ve.last_lit!==0)do ir=Ve.pending_buf[Ve.d_buf+Sr*2]<<8|Ve.pending_buf[Ve.d_buf+Sr*2+1],lr=Ve.pending_buf[Ve.l_buf+Sr],Sr++,ir===0?Te(Ve,lr,Ot):(mt=z[lr],Te(Ve,mt+s+1,Ot),or=I[mt],or!==0&&(lr-=W[mt],Ae(Ve,lr,or)),ir--,mt=se(ir),Te(Ve,mt,Ut),or=O[mt],or!==0&&(ir-=H[mt],Ae(Ve,ir,or)));while(Sr<Ve.last_lit);Te(Ve,T,Ot)}function ce(Ve,Ot){var Ut=Ot.dyn_tree,ir=Ot.stat_desc.static_tree,lr=Ot.stat_desc.has_stree,Sr=Ot.stat_desc.elems,mt,or,et=-1,ur;for(Ve.heap_len=0,Ve.heap_max=A,mt=0;mt<Sr;mt++)Ut[mt*2]!==0?(Ve.heap[++Ve.heap_len]=et=mt,Ve.depth[mt]=0):Ut[mt*2+1]=0;for(;Ve.heap_len<2;)ur=Ve.heap[++Ve.heap_len]=et<2?++et:0,Ut[ur*2]=1,Ve.depth[ur]=0,Ve.opt_len--,lr&&(Ve.static_len-=ir[ur*2+1]);for(Ot.max_code=et,mt=Ve.heap_len>>1;mt>=1;mt--)Y(Ve,Ut,mt);ur=Sr;do mt=Ve.heap[1],Ve.heap[1]=Ve.heap[Ve.heap_len--],Y(Ve,Ut,1),or=Ve.heap[1],Ve.heap[--Ve.heap_max]=mt,Ve.heap[--Ve.heap_max]=or,Ut[ur*2]=Ut[mt*2]+Ut[or*2],Ve.depth[ur]=(Ve.depth[mt]>=Ve.depth[or]?Ve.depth[mt]:Ve.depth[or])+1,Ut[mt*2+1]=Ut[or*2+1]=ur,Ve.heap[1]=ur++,Y(Ve,Ut,1);while(Ve.heap_len>=2);Ve.heap[--Ve.heap_max]=Ve.heap[1],Ue(Ve,Ot),nt(Ut,et,Ve.bl_count)}function ye(Ve,Ot,Ut){var ir,lr=-1,Sr,mt=Ot[0*2+1],or=0,et=7,ur=4;for(mt===0&&(et=138,ur=3),Ot[(Ut+1)*2+1]=65535,ir=0;ir<=Ut;ir++){if(Sr=mt,mt=Ot[(ir+1)*2+1],++or<et&&Sr===mt)continue;or<ur?Ve.bl_tree[Sr*2]+=or:Sr!==0?(Sr!==lr&&Ve.bl_tree[Sr*2]++,Ve.bl_tree[_*2]++):or<=10?Ve.bl_tree[E*2]++:Ve.bl_tree[C*2]++,or=0,lr=Sr,mt===0?(et=138,ur=3):Sr===mt?(et=6,ur=3):(et=7,ur=4)}}function Ee(Ve,Ot,Ut){var ir,lr=-1,Sr,mt=Ot[0*2+1],or=0,et=7,ur=4;for(mt===0&&(et=138,ur=3),ir=0;ir<=Ut;ir++){if(Sr=mt,mt=Ot[(ir+1)*2+1],++or<et&&Sr===mt)continue;if(or<ur)do Te(Ve,Sr,Ve.bl_tree);while(--or!==0);else Sr!==0?(Sr!==lr&&(Te(Ve,Sr,Ve.bl_tree),or--),Te(Ve,_,Ve.bl_tree),Ae(Ve,or-3,2)):or<=10?(Te(Ve,E,Ve.bl_tree),Ae(Ve,or-3,3)):(Te(Ve,C,Ve.bl_tree),Ae(Ve,or-11,7));or=0,lr=Sr,mt===0?(et=138,ur=3):Sr===mt?(et=6,ur=3):(et=7,ur=4)}}function Ce(Ve){var Ot;for(ye(Ve,Ve.dyn_ltree,Ve.l_desc.max_code),ye(Ve,Ve.dyn_dtree,Ve.d_desc.max_code),ce(Ve,Ve.bl_desc),Ot=g-1;Ot>=3&&!(Ve.bl_tree[R[Ot]*2+1]!==0);Ot--);return Ve.opt_len+=3*(Ot+1)+5+5+4,Ot}function ue(Ve,Ot,Ut,ir){var lr;for(Ae(Ve,Ot-257,5),Ae(Ve,Ut-1,5),Ae(Ve,ir-4,4),lr=0;lr<ir;lr++)Ae(Ve,Ve.bl_tree[R[lr]*2+1],3);Ee(Ve,Ve.dyn_ltree,Ot-1),Ee(Ve,Ve.dyn_dtree,Ut-1)}function ge(Ve){var Ot=4093624447,Ut;for(Ut=0;Ut<=31;Ut++,Ot>>>=1)if(Ot&1&&Ve.dyn_ltree[Ut*2]!==0)return f;if(Ve.dyn_ltree[9*2]!==0||Ve.dyn_ltree[10*2]!==0||Ve.dyn_ltree[13*2]!==0)return d;for(Ut=32;Ut<s;Ut++)if(Ve.dyn_ltree[Ut*2]!==0)return d;return f}var Oe=!1;function Je(Ve){Oe||(Le(),Oe=!0),Ve.l_desc=new q(Ve.dyn_ltree,Q),Ve.d_desc=new q(Ve.dyn_dtree,G),Ve.bl_desc=new q(Ve.bl_tree,ee),Ve.bi_buf=0,Ve.bi_valid=0,le(Ve)}function lt(Ve,Ot,Ut,ir){Ae(Ve,(n<<1)+(ir?1:0),3),pe(Ve,Ot,Ut,!0)}function tt(Ve){Ae(Ve,t<<1,3),Te(Ve,T,P),Ge(Ve)}function ke(Ve,Ot,Ut,ir){var lr,Sr,mt=0;Ve.level>0?(Ve.strm.data_type===u&&(Ve.strm.data_type=ge(Ve)),ce(Ve,Ve.l_desc),ce(Ve,Ve.d_desc),mt=Ce(Ve),lr=Ve.opt_len+3+7>>>3,Sr=Ve.static_len+3+7>>>3,Sr<=lr&&(lr=Sr)):lr=Sr=Ut+5,Ut+4<=lr&&Ot!==-1?lt(Ve,Ot,Ut,ir):Ve.strategy===m||Sr===lr?(Ae(Ve,(t<<1)+(ir?1:0),3),ne(Ve,P,X)):(Ae(Ve,(a<<1)+(ir?1:0),3),ue(Ve,Ve.l_desc.max_code+1,Ve.d_desc.max_code+1,mt+1),ne(Ve,Ve.dyn_ltree,Ve.dyn_dtree)),le(Ve),ir&&Xe(Ve)}function st(Ve,Ot,Ut){return Ve.pending_buf[Ve.d_buf+Ve.last_lit*2]=Ot>>>8&255,Ve.pending_buf[Ve.d_buf+Ve.last_lit*2+1]=Ot&255,Ve.pending_buf[Ve.l_buf+Ve.last_lit]=Ut&255,Ve.last_lit++,Ot===0?Ve.dyn_ltree[Ut*2]++:(Ve.matches++,Ot--,Ve.dyn_ltree[(z[Ut]+s+1)*2]++,Ve.dyn_dtree[se(Ot)*2]++),Ve.last_lit===Ve.lit_bufsize-1}},c6wG:function(k,D,i){var y=i("dD9F"),p=i("sEf8"),S=i("mdPL"),v=S&&S.isTypedArray,m=v?p(v):y;k.exports=m},c8qY:function(k,D,i){var y=i("IwbS"),p=i("fls0");function S(a){this._ctor=a||p,this.group=new y.Group}var v=S.prototype;v.isPersistent=function(){return!0},v.updateData=function(a){var e=this,l=e.group,r=e._lineData;e._lineData=a,r||l.removeAll();var s=u(a);a.diff(r).add(function(c){m(e,a,c,s)}).update(function(c,h){f(e,r,a,h,c,s)}).remove(function(c){l.remove(r.getItemGraphicEl(c))}).execute()};function m(a,e,l,r){var s=e.getItemLayout(l);if(!n(s))return;var c=new a._ctor(e,l,r);e.setItemGraphicEl(l,c),a.group.add(c)}function f(a,e,l,r,s,c){var h=e.getItemGraphicEl(r);if(!n(l.getItemLayout(s))){a.group.remove(h);return}h?h.updateData(l,s,c):h=new a._ctor(l,s,c),l.setItemGraphicEl(s,h),a.group.add(h)}v.updateLayout=function(){var a=this._lineData;if(!a)return;a.eachItemGraphicEl(function(e,l){e.updateLayout(a,l)},this)},v.incrementalPrepareUpdate=function(a){this._seriesScope=u(a),this._lineData=null,this.group.removeAll()};function d(a){return a.animators&&a.animators.length>0}v.incrementalUpdate=function(a,e){function l(h){!h.isGroup&&!d(h)&&(h.incremental=h.useHoverLayer=!0)}for(var r=a.start;r<a.end;r++){var s=e.getItemLayout(r);if(n(s)){var c=new this._ctor(e,r,this._seriesScope);c.traverse(l),this.group.add(c),e.setItemGraphicEl(r,c)}}};function u(a){var e=a.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}v.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},v._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};function o(a){return isNaN(a[0])||isNaN(a[1])}function n(a){return!o(a[0])&&!o(a[1])}var t=S;k.exports=t},cCMj:function(k,D,i){var y=i("bYtY"),p={updateSelectedMap:function(S){this._targetList=y.isArray(S)?S.slice():[],this._selectTargetMap=y.reduce(S||[],function(v,m){return v.set(m.name,m),v},y.createHashMap())},select:function(S,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(S),f=this.get("selectedMode");f==="single"&&this._selectTargetMap.each(function(d){d.selected=!1}),m&&(m.selected=!0)},unSelect:function(S,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(S);m&&(m.selected=!1)},toggleSelected:function(S,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(S);if(m!=null)return this[m.selected?"unSelect":"select"](S,v),m.selected},isSelected:function(S,v){var m=v!=null?this._targetList[v]:this._selectTargetMap.get(S);return m&&m.selected}};k.exports=p},cVA7:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("MT78"),p=m(y),S=i("t3Fx"),v=m(S);function m(n){return n&&n.__esModule?n:{default:n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function d(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function u(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o=function(n){u(t,n);function t(a){f(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a));return e.echartsLib=p.default,e}return t}(v.default);D.default=o},cWXX:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("oIFs"),v=i.n(S)},ca2m:function(k,D,i){var y=i("bYtY"),p={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)"]}}},S={};S.categoryAxis=y.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},p),S.valueAxis=y.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},p),S.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},S.valueAxis),S.logAxis=y.defaults({scale:!0,logBase:10},S.valueAxis);var v=S;k.exports=v},cbJ4:function(k,D,i){var y=i("bYtY"),p=y.createHashMap;function S(v){v.eachSeriesByType("themeRiver",function(m){var f=m.getData(),d=m.getRawData(),u=m.get("color"),o=p();f.each(function(n){o.set(f.getRawIndex(n),n)}),d.each(function(n){var t=d.getName(n),a=u[(m.nameMap.get(t)-1)%u.length];d.setItemVisual(n,"color",a);var e=o.get(n);e!=null&&f.setItemVisual(e,"color",a)})})}k.exports=S},chpo:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=1,p=function(){return"".concat(y++)};D.default=p},cpOr:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("T4UG"),v=i("YXkt"),m=i("bYtY"),f=m.concatArray,d=m.mergeAll,u=m.map,o=i("7aKB"),n=o.encodeHTML,t=i("IDmD"),a=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 A=[g[0].coord,g[1].coord],b={coords:A};return g[0].name&&(b.fromName=g[0].name),g[1].name&&(b.toName=g[1].name),d([b,g[0],g[1]])}))}var r=S.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)),r.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))}r.superApply(this,"mergeOption",arguments)},appendData:function(c){var h=this._processFlatCoordsArray(c.data);h.flatCoords&&(this._flatCoords?(this._flatCoords=f(this._flatCoords,h.flatCoords),this._flatCoordsOffset=f(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],A=this._flatCoordsOffset[c*2+1],b=0;b<A;b++)h[b]=h[b]||[],h[b][0]=this._flatCoords[g+b*2],h[b][1]=this._flatCoords[g+b*2+1];return A}else{for(var w=this._getCoordsFromItemModel(c),b=0;b<w.length;b++)h[b]=h[b]||[],h[b][0]=w[b][0],h[b][1]=w[b][1];return w.length}},_processFlatCoordsArray:function(c){var h=0;if(this._flatCoords&&(h=this._flatCoords.length),typeof c[0]=="number"){for(var g=c.length,A=new a(g),b=new e(g),w=0,x=0,T=0,_=0;_<g;){T++;var E=c[_++];A[x++]=w+h,A[x++]=E;for(var C=0;C<E;C++){var I=c[_++],O=c[_++];b[w++]=I,b[w++]=O,_>g}}return{flatCoordsOffset:new Uint32Array(A.buffer,0,x),flatCoords:b,count:T}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,h){var g=new v(["value"],this);return g.hasItemOption=!1,g.initData(c.data,[],function(A,b,w,x){if(A instanceof Array)return NaN;g.hasItemOption=!0;var T=A.value;if(T!=null)return T instanceof Array?T[x]:T}),g},formatTooltip:function(c){var h=this.getData(),g=h.getItemModel(c),A=g.get("name");if(A)return A;var b=g.get("fromName"),w=g.get("toName"),x=[];return b!=null&&x.push(b),w!=null&&x.push(w),n(x.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}}}),s=r;k.exports=s},crZl:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),v=i("7aKB"),m=i("+TT/"),f=i("XxSj"),d=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(u,o){this.ecModel=u,this.api=o,this.visualMapModel},render:function(u,o,n,t){if(this.visualMapModel=u,u.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(u){var o=this.visualMapModel,n=v.normalizeCssArray(o.get("padding")||0),t=u.getBoundingRect();u.add(new S.Rect({z2:-1,silent:!0,shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[3]+n[1],height:t.height+n[0]+n[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},getControllerVisual:function(u,o,n){n=n||{};var t=n.forceState,a=this.visualMapModel,e={};if(o==="symbol"&&(e.symbol=a.get("itemSymbol")),o==="color"){var l=a.get("contentColor");e.color=l}function r(g){return e[g]}function s(g,A){e[g]=A}var c=a.controllerVisuals[t||a.getValueState(u)],h=f.prepareVisualTypes(c);return p.each(h,function(g){var A=c[g];n.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",A=c.__alphaForOpacity),f.dependsOn(g,o)&&(A&&A.applyVisual(u,r,s))}),e[o]},positionGroup:function(u){var o=this.visualMapModel,n=this.api;m.positionElement(u,o.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:p.noop});k.exports=d},crp1:function(k,D,i){"use strict";i.d(D,"b",function(){return Qt}),i.d(D,"a",function(){return Fn});var y={},p=function(ot,dt,Yt,Pt,Et){var Bt=y[dt]||(y[dt]=URL.createObjectURL(new Blob([ot],{type:"text/javascript"}))),wt=new Worker(Bt);return wt.onerror=function(Mt){return Et(Mt.error,null)},wt.onmessage=function(Mt){return Et(null,Mt.data)},wt.postMessage(Yt,Pt),wt},S=Uint8Array,v=Uint16Array,m=Uint32Array,f=new S([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 S([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 S([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(ot,dt){for(var Yt=new v(31),Pt=0;Pt<31;++Pt)Yt[Pt]=dt+=1<<ot[Pt-1];for(var Et=new m(Yt[30]),Pt=1;Pt<30;++Pt)for(var Bt=Yt[Pt];Bt<Yt[Pt+1];++Bt)Et[Bt]=Bt-Yt[Pt]<<5|Pt;return[Yt,Et]},n=o(f,2),t=n[0],a=n[1];t[28]=258,a[258]=28;for(var e=o(d,0),l=e[0],r=e[1],s=new v(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,s[c]=((h&65280)>>>8|(h&255)<<8)>>>1}for(var g=function(ot,dt,Yt){for(var Pt=ot.length,Et=0,Bt=new v(dt);Et<Pt;++Et)++Bt[ot[Et]-1];var wt=new v(dt);for(Et=0;Et<dt;++Et)wt[Et]=wt[Et-1]+Bt[Et-1]<<1;var Mt;if(Yt){Mt=new v(1<<dt);var Nr=15-dt;for(Et=0;Et<Pt;++Et)if(ot[Et])for(var Tr=Et<<4|ot[Et],yr=dt-ot[Et],en=wt[ot[Et]-1]++<<yr,sn=en|(1<<yr)-1;en<=sn;++en)Mt[s[en]>>>Nr]=Tr}else for(Mt=new v(Pt),Et=0;Et<Pt;++Et)Mt[Et]=s[wt[ot[Et]-1]++]>>>15-ot[Et];return Mt},A=new S(288),c=0;c<144;++c)A[c]=8;for(var c=144;c<256;++c)A[c]=9;for(var c=256;c<280;++c)A[c]=7;for(var c=280;c<288;++c)A[c]=8;for(var b=new S(32),c=0;c<32;++c)b[c]=5;var w=g(A,9,0),x=g(A,9,1),T=g(b,5,0),_=g(b,5,1),E=function(ot){for(var dt=ot[0],Yt=1;Yt<ot.length;++Yt)ot[Yt]>dt&&(dt=ot[Yt]);return dt},C=function(ot,dt,Yt){var Pt=dt/8>>0;return(ot[Pt]|ot[Pt+1]<<8)>>>(dt&7)&Yt},I=function(ot,dt){var Yt=dt/8>>0;return(ot[Yt]|ot[Yt+1]<<8|ot[Yt+2]<<16)>>>(dt&7)},O=function(ot){return(ot/8>>0)+(ot&7&&1)},F=function(ot,dt,Yt){(dt==null||dt<0)&&(dt=0),(Yt==null||Yt>ot.length)&&(Yt=ot.length);var Pt=new(ot instanceof v?v:ot instanceof m?m:S)(Yt-dt);return Pt.set(ot.subarray(dt,Yt)),Pt},R=function(ot,dt,Yt){var Pt=ot.length,Et=!dt||Yt,Bt=!Yt||Yt.i;Yt||(Yt={}),dt||(dt=new S(Pt*3));var wt=function(kn){var It=dt.length;if(kn>It){var yt=new S(Math.max(It*2,kn));yt.set(dt),dt=yt}},Mt=Yt.f||0,Nr=Yt.p||0,Tr=Yt.b||0,yr=Yt.l,en=Yt.d,sn=Yt.m,Vn=Yt.n,jn=Pt*8;do{if(!yr){Yt.f=Mt=C(ot,Nr,1);var ri=C(ot,Nr+1,3);if(Nr+=3,ri)if(ri==1)yr=x,en=_,sn=9,Vn=5;else if(ri==2){var Qe=C(ot,Nr,31)+257,Se=C(ot,Nr+10,15)+4,Pe=Qe+C(ot,Nr+5,31)+1;Nr+=14;for(var He=new S(Pe),Ye=new S(19),ze=0;ze<Se;++ze)Ye[u[ze]]=C(ot,Nr+ze*3,7);Nr+=Se*3;var $e=E(Ye),St=(1<<$e)-1;if(!Bt&&Nr+Pe*($e+7)>jn)break;for(var ft=g(Ye,$e,1),ze=0;ze<Pe;){var Ht=ft[C(ot,Nr,St)];Nr+=Ht&15;var ci=Ht>>>4;if(ci<16)He[ze++]=ci;else{var Er=0,Fr=0;for(ci==16?(Fr=3+C(ot,Nr,3),Nr+=2,Er=He[ze-1]):ci==17?(Fr=3+C(ot,Nr,7),Nr+=3):ci==18&&(Fr=11+C(ot,Nr,127),Nr+=7);Fr--;)He[ze++]=Er}}var tn=He.subarray(0,Qe),Zt=He.subarray(Qe);sn=E(tn),Vn=E(Zt),yr=g(tn,sn,1),en=g(Zt,Vn,1)}else throw"invalid block type";else{var ci=O(Nr)+4,gi=ot[ci-4]|ot[ci-3]<<8,Ni=ci+gi;if(Ni>Pt){if(Bt)throw"unexpected EOF";break}Et&&wt(Tr+gi),dt.set(ot.subarray(ci,Ni),Tr),Yt.b=Tr+=gi,Yt.p=Nr=Ni*8;continue}if(Nr>jn)throw"unexpected EOF"}Et&&wt(Tr+131072);for(var Rn=(1<<sn)-1,vn=(1<<Vn)-1,Un=sn+Vn+18;Bt||Nr+Un<jn;){var Er=yr[I(ot,Nr)&Rn],hn=Er>>>4;if(Nr+=Er&15,Nr>jn)throw"unexpected EOF";if(!Er)throw"invalid length/literal";if(hn<256)dt[Tr++]=hn;else if(hn==256){yr=null;break}else{var Wr=hn-254;if(hn>264){var ze=hn-257,Kn=f[ze];Wr=C(ot,Nr,(1<<Kn)-1)+t[ze],Nr+=Kn}var ei=en[I(ot,Nr)&vn],Si=ei>>>4;if(!ei)throw"invalid distance";Nr+=ei&15;var Zt=l[Si];if(Si>3){var Kn=d[Si];Zt+=I(ot,Nr)&(1<<Kn)-1,Nr+=Kn}if(Nr>jn)throw"unexpected EOF";Et&&wt(Tr+131072);for(var Vr=Tr+Wr;Tr<Vr;Tr+=4)dt[Tr]=dt[Tr-Zt],dt[Tr+1]=dt[Tr+1-Zt],dt[Tr+2]=dt[Tr+2-Zt],dt[Tr+3]=dt[Tr+3-Zt];Tr=Vr}}Yt.l=yr,Yt.p=Nr,Yt.b=Tr,yr&&(Mt=1,Yt.m=sn,Yt.d=en,Yt.n=Vn)}while(!Mt);return Tr==dt.length?dt:F(dt,0,Tr)},B=function(ot,dt,Yt){Yt<<=dt&7;var Pt=dt/8>>0;ot[Pt]|=Yt,ot[Pt+1]|=Yt>>>8},P=function(ot,dt,Yt){Yt<<=dt&7;var Pt=dt/8>>0;ot[Pt]|=Yt,ot[Pt+1]|=Yt>>>8,ot[Pt+2]|=Yt>>>16},X=function(ot,dt){for(var Yt=[],Pt=0;Pt<ot.length;++Pt)ot[Pt]&&Yt.push({s:Pt,f:ot[Pt]});var Et=Yt.length,Bt=Yt.slice();if(!Et)return[new S(0),0];if(Et==1){var wt=new S(Yt[0].s+1);return wt[Yt[0].s]=1,[wt,1]}Yt.sort(function(Pe,He){return Pe.f-He.f}),Yt.push({s:-1,f:25001});var Mt=Yt[0],Nr=Yt[1],Tr=0,yr=1,en=2;for(Yt[0]={s:-1,f:Mt.f+Nr.f,l:Mt,r:Nr};yr!=Et-1;)Mt=Yt[Yt[Tr].f<Yt[en].f?Tr++:en++],Nr=Yt[Tr!=yr&&Yt[Tr].f<Yt[en].f?Tr++:en++],Yt[yr++]={s:-1,f:Mt.f+Nr.f,l:Mt,r:Nr};for(var sn=Bt[0].s,Pt=1;Pt<Et;++Pt)Bt[Pt].s>sn&&(sn=Bt[Pt].s);var Vn=new v(sn+1),jn=M(Yt[yr-1],Vn,0);if(jn>dt){var Pt=0,ri=0,ci=jn-dt,gi=1<<ci;for(Bt.sort(function(He,Ye){return Vn[Ye.s]-Vn[He.s]||He.f-Ye.f});Pt<Et;++Pt){var Ni=Bt[Pt].s;if(Vn[Ni]>dt)ri+=gi-(1<<jn-Vn[Ni]),Vn[Ni]=dt;else break}for(ri>>>=ci;ri>0;){var Qe=Bt[Pt].s;Vn[Qe]<dt?ri-=1<<dt-Vn[Qe]++-1:++Pt}for(;Pt>=0&&ri;--Pt){var Se=Bt[Pt].s;Vn[Se]==dt&&(--Vn[Se],++ri)}jn=dt}return[new S(Vn),jn]},M=function Nt(ot,dt,Yt){return ot.s==-1?Math.max(Nt(ot.l,dt,Yt+1),Nt(ot.r,dt,Yt+1)):dt[ot.s]=Yt},z=function(ot){for(var dt=ot.length;dt&&!ot[--dt];);for(var Yt=new v(++dt),Pt=0,Et=ot[0],Bt=1,wt=function(Tr){Yt[Pt++]=Tr},Mt=1;Mt<=dt;++Mt)if(ot[Mt]==Et&&Mt!=dt)++Bt;else{if(!Et&&Bt>2){for(;Bt>138;Bt-=138)wt(32754);Bt>2&&(wt(Bt>10?Bt-11<<5|28690:Bt-3<<5|12305),Bt=0)}else if(Bt>3){for(wt(Et),--Bt;Bt>6;Bt-=6)wt(8304);Bt>2&&(wt(Bt-3<<5|8208),Bt=0)}for(;Bt--;)wt(Et);Bt=1,Et=ot[Mt]}return[Yt.subarray(0,Pt),dt]},W=function(ot,dt){for(var Yt=0,Pt=0;Pt<dt.length;++Pt)Yt+=ot[Pt]*dt[Pt];return Yt},H=function(ot,dt,Yt){var Pt=Yt.length,Et=O(dt+2);ot[Et]=Pt&255,ot[Et+1]=Pt>>>8,ot[Et+2]=ot[Et]^255,ot[Et+3]=ot[Et+1]^255;for(var Bt=0;Bt<Pt;++Bt)ot[Et+Bt+4]=Yt[Bt];return(Et+4+Pt)*8},V=function(ot,dt,Yt,Pt,Et,Bt,wt,Mt,Nr,Tr,yr){B(dt,yr++,Yt),++Et[256];for(var en=X(Et,15),sn=en[0],Vn=en[1],jn=X(Bt,15),ri=jn[0],ci=jn[1],gi=z(sn),Ni=gi[0],Qe=gi[1],Se=z(ri),Pe=Se[0],He=Se[1],Ye=new v(19),ze=0;ze<Ni.length;++ze)Ye[Ni[ze]&31]++;for(var ze=0;ze<Pe.length;++ze)Ye[Pe[ze]&31]++;for(var $e=X(Ye,7),St=$e[0],ft=$e[1],Ht=19;Ht>4&&!St[u[Ht-1]];--Ht);var Er=Tr+5<<3,Fr=W(Et,A)+W(Bt,b)+wt,tn=W(Et,sn)+W(Bt,ri)+wt+14+3*Ht+W(Ye,St)+(2*Ye[16]+3*Ye[17]+7*Ye[18]);if(Er<=Fr&&Er<=tn)return H(dt,yr,ot.subarray(Nr,Nr+Tr));var Zt,Rn,vn,Un;if(B(dt,yr,1+(tn<Fr)),yr+=2,tn<Fr){Zt=g(sn,Vn,0),Rn=sn,vn=g(ri,ci,0),Un=ri;var hn=g(St,ft,0);B(dt,yr,Qe-257),B(dt,yr+5,He-1),B(dt,yr+10,Ht-4),yr+=14;for(var ze=0;ze<Ht;++ze)B(dt,yr+3*ze,St[u[ze]]);yr+=3*Ht;for(var Wr=[Ni,Pe],Kn=0;Kn<2;++Kn)for(var ei=Wr[Kn],ze=0;ze<ei.length;++ze){var Si=ei[ze]&31;B(dt,yr,hn[Si]),yr+=St[Si],Si>15&&(B(dt,yr,ei[ze]>>>5&127),yr+=ei[ze]>>>12)}}else Zt=w,Rn=A,vn=T,Un=b;for(var ze=0;ze<Mt;++ze)if(Pt[ze]>255){var Si=Pt[ze]>>>18&31;P(dt,yr,Zt[Si+257]),yr+=Rn[Si+257],Si>7&&(B(dt,yr,Pt[ze]>>>23&31),yr+=f[Si]);var Vr=Pt[ze]&31;P(dt,yr,vn[Vr]),yr+=Un[Vr],Vr>3&&(P(dt,yr,Pt[ze]>>>5&8191),yr+=d[Vr])}else P(dt,yr,Zt[Pt[ze]]),yr+=Rn[Pt[ze]];return P(dt,yr,Zt[256]),yr+Rn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new S(0),ee=function(ot,dt,Yt,Pt,Et,Bt){var wt=ot.length,Mt=new S(Pt+wt+5*(1+Math.floor(wt/7e3))+Et),Nr=Mt.subarray(Pt,Mt.length-Et),Tr=0;if(!dt||wt<8)for(var yr=0;yr<=wt;yr+=65535){var en=yr+65535;en<wt?Tr=H(Nr,Tr,ot.subarray(yr,en)):(Nr[yr]=Bt,Tr=H(Nr,Tr,ot.subarray(yr,wt)))}else{for(var sn=Q[dt-1],Vn=sn>>>13,jn=sn&8191,ri=(1<<Yt)-1,ci=new v(32768),gi=new v(ri+1),Ni=Math.ceil(Yt/3),Qe=2*Ni,Se=function(er){return(ot[er]^ot[er+1]<<Ni^ot[er+2]<<Qe)&ri},Pe=new m(25e3),He=new v(288),Ye=new v(32),ze=0,$e=0,yr=0,St=0,ft=0,Ht=0;yr<wt;++yr){var Er=Se(yr),Fr=yr&32767,tn=gi[Er];if(ci[Fr]=tn,gi[Er]=Fr,ft<=yr){var Zt=wt-yr;if((ze>7e3||St>24576)&&Zt>423){Tr=V(ot,Nr,0,Pe,He,Ye,$e,St,Ht,yr-Ht,Tr),St=ze=$e=0,Ht=yr;for(var Rn=0;Rn<286;++Rn)He[Rn]=0;for(var Rn=0;Rn<30;++Rn)Ye[Rn]=0}var vn=2,Un=0,hn=jn,Wr=Fr-tn&32767;if(Zt>2&&Er==Se(yr-Wr))for(var Kn=Math.min(Vn,Zt)-1,ei=Math.min(32767,yr),Si=Math.min(258,Zt);Wr<=ei&&--hn&&Fr!=tn;){if(ot[yr+vn]==ot[yr+vn-Wr]){for(var Vr=0;Vr<Si&&ot[yr+Vr]==ot[yr+Vr-Wr];++Vr);if(Vr>vn){if(vn=Vr,Un=Wr,Vr>Kn)break;for(var fn=Math.min(Wr,Vr-2),kn=0,Rn=0;Rn<fn;++Rn){var It=yr-Wr+Rn+32768&32767,yt=ci[It],xt=It-yt+32768&32767;xt>kn&&(kn=xt,tn=It)}}}Fr=tn,tn=ci[Fr],Wr+=Fr-tn+32768&32767}if(Un){Pe[St++]=268435456|a[vn]<<18|r[Un];var Tt=a[vn]&31,Lt=r[Un]&31;$e+=f[Tt]+d[Lt],++He[257+Tt],++Ye[Lt],ft=yr+vn,++ze}else Pe[St++]=ot[yr],++He[ot[yr]]}}Tr=V(ot,Nr,Bt,Pe,He,Ye,$e,St,Ht,yr-Ht,Tr),Bt||(Tr=H(Nr,Tr,G))}return F(Mt,0,Pt+O(Tr)+Et)},q=function(){for(var Nt=new m(256),ot=0;ot<256;++ot){for(var dt=ot,Yt=9;--Yt;)dt=(dt&1&&3988292384)^dt>>>1;Nt[ot]=dt}return Nt}(),se=function(){var ot=4294967295;return{p:function(Yt){for(var Pt=ot,Et=0;Et<Yt.length;++Et)Pt=q[Pt&255^Yt[Et]]^Pt>>>8;ot=Pt},d:function(){return ot^4294967295}}},re=function(){var ot=1,dt=0;return{p:function(Pt){for(var Et=ot,Bt=dt,wt=Pt.length,Mt=0;Mt!=wt;){for(var Nr=Math.min(Mt+5552,wt);Mt<Nr;++Mt)Et+=Pt[Mt],Bt+=Et;Et%=65521,Bt%=65521}ot=Et,dt=Bt},d:function(){return(ot>>>8<<16|(dt&255)<<8|dt>>>8)+((ot&255)<<23)*2}}},Ae=function(ot,dt,Yt,Pt,Et){return ee(ot,dt.level==null?6:dt.level,dt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(ot.length)))*1.5):12+dt.mem,Yt,Pt,!Et)},Te=function(ot,dt){var Yt={};for(var Pt in ot)Yt[Pt]=ot[Pt];for(var Pt in dt)Yt[Pt]=dt[Pt];return Yt},Re=function(ot,dt,Yt){for(var Pt=ot(),Et=ot.toString(),Bt=Et.slice(Et.indexOf("[")+1,Et.lastIndexOf("]")).replace(/ /g,"").split(","),wt=0;wt<Pt.length;++wt){var Mt=Pt[wt],Nr=Bt[wt];if(typeof Mt=="function"){dt+=";"+Nr+"=";var Tr=Mt.toString();if(Mt.prototype)if(Tr.indexOf("[native code]")!=-1){var yr=Tr.indexOf(" ",8)+1;dt+=Tr.slice(yr,Tr.indexOf("(",yr))}else{dt+=Tr;for(var en in Mt.prototype)dt+=";"+Nr+".prototype."+en+"="+Mt.prototype[en].toString()}else dt+=Tr}else Yt[Nr]=Mt}return[dt,Yt]},Ge=[],Ue=function(ot){var dt=[];for(var Yt in ot)(ot[Yt]instanceof S||ot[Yt]instanceof v||ot[Yt]instanceof m)&&dt.push((ot[Yt]=new ot[Yt].constructor(ot[Yt])).buffer);return dt},nt=function(ot,dt,Yt,Pt){var Et;if(!Ge[Yt]){for(var Bt="",wt={},Mt=ot.length-1,Nr=0;Nr<Mt;++Nr)Et=Re(ot[Nr],Bt,wt),Bt=Et[0],wt=Et[1];Ge[Yt]=Re(ot[Mt],Bt,wt)}var Tr=Te({},Ge[Yt][1]);return p(Ge[Yt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+dt.toString()+"}",Yt,Tr,Ue(Tr),Pt)},Le=function(){return[S,v,m,f,d,u,t,l,x,_,s,g,E,C,I,O,F,R,ur,ne,ce]},le=function(){return[S,v,m,f,d,u,a,r,w,A,T,b,s,Q,G,g,B,P,X,M,z,W,H,V,O,F,ee,Ae,Sr,ne]},Xe=function(){return[Je,ke,Oe,se,q]},pe=function(){return[lt,tt]},Z=function(){return[st,Oe,re]},Y=function(){return[Ve]},ne=function(ot){return postMessage(ot,[ot.buffer])},ce=function(ot){return ot&&ot.size&&new S(ot.size)},ye=function(ot,dt,Yt,Pt,Et,Bt){var wt=nt(Yt,Pt,Et,function(Mt,Nr){wt.terminate(),Bt(Mt,Nr)});return dt.consume||(ot=new S(ot)),wt.postMessage([ot,dt],[ot.buffer]),function(){wt.terminate()}},Ee=function(ot){return ot.ondata=function(dt,Yt){return postMessage([dt,Yt],[dt.buffer])},function(dt){return ot.push(dt.data[0],dt.data[1])}},Ce=function(ot,dt,Yt,Pt,Et){var Bt,wt=nt(ot,Pt,Et,function(Mt,Nr){Mt?(wt.terminate(),dt.ondata.call(dt,Mt)):(Nr[1]&&wt.terminate(),dt.ondata.call(dt,Mt,Nr[0],Nr[1]))});wt.postMessage(Yt),dt.push=function(Mt,Nr){if(Bt)throw"stream finished";if(!dt.ondata)throw"no stream handler";wt.postMessage([Mt,Bt=Nr],[Mt.buffer])},dt.terminate=function(){wt.terminate()}},ue=function(ot,dt){return ot[dt]|ot[dt+1]<<8},ge=function(ot,dt){return(ot[dt]|ot[dt+1]<<8|ot[dt+2]<<16)+(ot[dt+3]<<23)*2},Oe=function(ot,dt,Yt){for(;Yt;++dt)ot[dt]=Yt,Yt>>>=8},Je=function(ot,dt){var Yt=dt.filename;if(ot[0]=31,ot[1]=139,ot[2]=8,ot[8]=dt.level<2?4:dt.level==9?2:0,ot[9]=3,dt.mtime!=0&&Oe(ot,4,Math.floor(new Date(dt.mtime||Date.now())/1e3)),Yt){ot[3]=8;for(var Pt=0;Pt<=Yt.length;++Pt)ot[Pt+10]=Yt.charCodeAt(Pt)}},lt=function(ot){if(ot[0]!=31||ot[1]!=139||ot[2]!=8)throw"invalid gzip data";var dt=ot[3],Yt=10;dt&4&&(Yt+=ot[10]|(ot[11]<<8)+2);for(var Pt=(dt>>3&1)+(dt>>4&1);Pt>0;Pt-=!ot[Yt++]);return Yt+(dt&2)},tt=function(ot){var dt=ot.length;return(ot[dt-4]|ot[dt-3]<<8|ot[dt-2]<<16)+2*(ot[dt-1]<<23)},ke=function(ot){return 10+(ot.filename&&ot.filename.length+1||0)},st=function(ot,dt){var Yt=dt.level,Pt=Yt==0?0:Yt<6?1:Yt==9?3:2;ot[0]=120,ot[1]=Pt<<6|(Pt?32-2*Pt:1)},Ve=function(ot){if((ot[0]&15)!=8||ot[0]>>>4>7||(ot[0]<<8|ot[1])%31)throw"invalid zlib data";if(ot[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Ot(Nt,ot){return!ot&&typeof Nt=="function"&&(ot=Nt,Nt={}),this.ondata=ot,Nt}var Ut=function(){function Nt(ot,dt){!dt&&typeof ot=="function"&&(dt=ot,ot={}),this.ondata=dt,this.o=ot||{}}return Nt.prototype.p=function(ot,dt){this.ondata(Ae(ot,this.o,0,0,!dt),dt)},Nt.prototype.push=function(ot,dt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=dt,this.p(ot,dt||!1)},Nt}(),ir=function(){function Nt(ot,dt){Ce([le,function(){return[Ee,Ut]}],this,Ot.call(this,ot,dt),function(Yt){var Pt=new Ut(Yt.data);onmessage=Ee(Pt)},6)}return Nt}();function lr(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";return ye(Nt,ot,[le],function(Yt){return ne(Sr(Yt.data[0],Yt.data[1]))},0,dt)}function Sr(Nt,ot){return ot===void 0&&(ot={}),Ae(Nt,ot,0,0)}var mt=function(){function Nt(ot){this.s={},this.p=new S(0),this.ondata=ot}return Nt.prototype.e=function(ot){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var dt=this.p.length,Yt=new S(dt+ot.length);Yt.set(this.p),Yt.set(ot,dt),this.p=Yt},Nt.prototype.c=function(ot){this.d=this.s.i=ot||!1;var dt=this.s.b,Yt=R(this.p,this.o,this.s);this.ondata(F(Yt,dt,this.s.b),this.d),this.o=F(Yt,this.s.b-32768),this.s.b=this.o.length,this.p=F(this.p,this.s.p/8>>0),this.s.p&=7},Nt.prototype.push=function(ot,dt){this.e(ot),this.c(dt)},Nt}(),or=function(){function Nt(ot){this.ondata=ot,Ce([Le,function(){return[Ee,mt]}],this,0,function(){var dt=new mt;onmessage=Ee(dt)},7)}return Nt}();function et(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";return ye(Nt,ot,[Le],function(Yt){return ne(ur(Yt.data[0],ce(Yt.data[1])))},1,dt)}function ur(Nt,ot){return R(Nt,ot)}var qr=function(){function Nt(ot,dt){this.c=se(),this.l=0,this.v=1,Ut.call(this,ot,dt)}return Nt.prototype.push=function(ot,dt){Ut.prototype.push.call(this,ot,dt)},Nt.prototype.p=function(ot,dt){this.c.p(ot),this.l+=ot.length;var Yt=Ae(ot,this.o,this.v&&ke(this.o),dt&&8,!dt);this.v&&(Je(Yt,this.o),this.v=0),dt&&(Oe(Yt,Yt.length-8,this.c.d()),Oe(Yt,Yt.length-4,this.l)),this.ondata(Yt,dt)},Nt}(),Fe=function(){function Nt(ot,dt){Ce([le,Xe,function(){return[Ee,Ut,qr]}],this,Ot.call(this,ot,dt),function(Yt){var Pt=new qr(Yt.data);onmessage=Ee(Pt)},8)}return Nt}();function $t(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";return ye(Nt,ot,[le,Xe,function(){return[Lr]}],function(Yt){return ne(Lr(Yt.data[0],Yt.data[1]))},2,dt)}function Lr(Nt,ot){ot===void 0&&(ot={});var dt=se(),Yt=Nt.length;dt.p(Nt);var Pt=Ae(Nt,ot,ke(ot),8),Et=Pt.length;return Je(Pt,ot),Oe(Pt,Et-8,dt.d()),Oe(Pt,Et-4,Yt),Pt}var pt=function(){function Nt(ot){this.v=1,mt.call(this,ot)}return Nt.prototype.push=function(ot,dt){if(mt.prototype.e.call(this,ot),this.v){var Yt=lt(this.p);if(Yt>=this.p.length&&!dt)return;this.p=this.p.subarray(Yt),this.v=0}if(dt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}mt.prototype.c.call(this,dt)},Nt}(),qt=function(){function Nt(ot){this.ondata=ot,Ce([Le,pe,function(){return[Ee,mt,pt]}],this,0,function(){var dt=new pt;onmessage=Ee(dt)},9)}return Nt}();function vr(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";return ye(Nt,ot,[Le,pe,function(){return[pn]}],function(Yt){return ne(pn(Yt.data[0]))},3,dt)}function pn(Nt,ot){return R(Nt.subarray(lt(Nt),-8),ot||new S(tt(Nt)))}var fr=function(){function Nt(ot,dt){this.c=re(),this.v=1,Ut.call(this,ot,dt)}return Nt.prototype.push=function(ot,dt){Ut.prototype.push.call(this,ot,dt)},Nt.prototype.p=function(ot,dt){this.c.p(ot);var Yt=Ae(ot,this.o,this.v&&2,dt&&4,!dt);this.v&&(st(Yt,this.o),this.v=0),dt&&Oe(Yt,Yt.length-4,this.c.d()),this.ondata(Yt,dt)},Nt}(),gr=function(){function Nt(ot,dt){Ce([le,Z,function(){return[Ee,Ut,fr]}],this,Ot.call(this,ot,dt),function(Yt){var Pt=new fr(Yt.data);onmessage=Ee(Pt)},10)}return Nt}();function dn(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";return ye(Nt,ot,[le,Z,function(){return[Qt]}],function(Yt){return ne(Qt(Yt.data[0],Yt.data[1]))},4,dt)}function Qt(Nt,ot){ot===void 0&&(ot={});var dt=re();dt.p(Nt);var Yt=Ae(Nt,ot,2,4);return st(Yt,ot),Oe(Yt,Yt.length-4,dt.d()),Yt}var sr=function(){function Nt(ot){this.v=1,mt.call(this,ot)}return Nt.prototype.push=function(ot,dt){if(mt.prototype.e.call(this,ot),this.v){if(this.p.length<2&&!dt)return;this.p=this.p.subarray(2),this.v=0}if(dt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}mt.prototype.c.call(this,dt)},Nt}(),Qr=function(){function Nt(ot){this.ondata=ot,Ce([Le,Y,function(){return[Ee,mt,sr]}],this,0,function(){var dt=new sr;onmessage=Ee(dt)},11)}return Nt}();function Cn(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";return ye(Nt,ot,[Le,Y,function(){return[Fn]}],function(Yt){return ne(Fn(Yt.data[0],ce(Yt.data[1])))},5,dt)}function Fn(Nt,ot){return R((Ve(Nt),Nt.subarray(2,-4)),ot)}var ti=function(){function Nt(ot){this.G=pt,this.I=mt,this.Z=sr,this.ondata=ot}return Nt.prototype.push=function(ot,dt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(ot,dt);else{if(this.p&&this.p.length){var Yt=new S(this.p.length+ot.length);Yt.set(this.p),Yt.set(ot,this.p.length)}else this.p=ot;if(this.p.length>2){var Pt=this,Et=function(){Pt.ondata.apply(Pt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Et):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Et):new this.Z(Et),this.s.push(this.p,dt),this.p=null}}},Nt}(),ki=function(){function Nt(ot){this.G=qt,this.I=or,this.Z=Qr,this.ondata=ot}return Nt.prototype.push=function(ot,dt){ti.prototype.push.call(this,ot,dt)},Nt}();function Dn(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";return Nt[0]==31&&Nt[1]==139&&Nt[2]==8?vr(Nt,ot,dt):(Nt[0]&15)!=8||Nt[0]>>4>7||(Nt[0]<<8|Nt[1])%31?et(Nt,ot,dt):Cn(Nt,ot,dt)}function Bn(Nt,ot){return Nt[0]==31&&Nt[1]==139&&Nt[2]==8?pn(Nt,ot):(Nt[0]&15)!=8||Nt[0]>>4>7||(Nt[0]<<8|Nt[1])%31?ur(Nt,ot):Fn(Nt,ot)}var Ft=function Nt(ot,dt,Yt,Pt){for(var Et in ot){var Bt=ot[Et],wt=dt+Et;Bt instanceof S?Yt[wt]=[Bt,Pt]:Array.isArray(Bt)?Yt[wt]=[Bt[0],Te(Pt,Bt[1])]:Nt(Bt,wt+"/",Yt,Pt)}};function vt(Nt,ot){var dt=Nt.length;if(!ot&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Nt);for(var Yt=new S(Nt.length+(Nt.length>>>1)),Pt=0,Et=function(Tr){Yt[Pt++]=Tr},Bt=0;Bt<dt;++Bt){if(Pt+5>Yt.length){var wt=new S(Pt+8+(dt-Bt<<1));wt.set(Yt),Yt=wt}var Mt=Nt.charCodeAt(Bt);Mt<128||ot?Et(Mt):Mt<2048?(Et(192|Mt>>>6),Et(128|Mt&63)):Mt>55295&&Mt<57344?(Mt=65536+(Mt&1023<<10)|Nt.charCodeAt(++Bt)&1023,Et(240|Mt>>>18),Et(128|Mt>>>12&63),Et(128|Mt>>>6&63),Et(128|Mt&63)):(Et(224|Mt>>>12),Et(128|Mt>>>6&63),Et(128|Mt&63))}return F(Yt,0,Pt)}function _e(Nt,ot){var dt="";if(!ot&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Nt);for(var Yt=0;Yt<Nt.length;){var Pt=Nt[Yt++];Pt<128||ot?dt+=String.fromCharCode(Pt):Pt<224?dt+=String.fromCharCode((Pt&31)<<6|Nt[Yt++]&63):Pt<240?dt+=String.fromCharCode((Pt&15)<<12|(Nt[Yt++]&63)<<6|Nt[Yt++]&63):(Pt=((Pt&15)<<18|(Nt[Yt++]&63)<<12|(Nt[Yt++]&63)<<6|Nt[Yt++]&63)-65536,dt+=String.fromCharCode(55296|Pt>>10,56320|Pt&1023))}return dt}var Ne=function(ot,dt){return dt+30+ue(ot,dt+26)+ue(ot,dt+28)},Ie=function(ot,dt,Yt){var Pt=ue(ot,dt+28),Et=_e(ot.subarray(dt+46,dt+46+Pt),!(ue(ot,dt+8)&2048)),Bt=dt+46+Pt,wt=Yt?Ze(ot,Bt):[ge(ot,dt+20),ge(ot,dt+24),ge(ot,dt+42)],Mt=wt[0],Nr=wt[1],Tr=wt[2];return[ue(ot,dt+10),Mt,Nr,Et,Bt+ue(ot,dt+30)+ue(ot,dt+32),Tr]},Ze=function(ot,dt){for(;ue(ot,dt)!=1;dt+=4+ue(ot,dt+2));return[ge(ot,dt+12),ge(ot,dt+4),ge(ot,dt+20)]},ct=function(ot,dt,Yt,Pt,Et,Bt,wt,Mt,Nr,Tr){var yr=Bt.length,en=Pt.length;Oe(ot,dt,Nr!=null?33639248:67324752),dt+=4,Nr!=null&&(ot[dt]=20,dt+=2),ot[dt]=20,dt+=2,ot[dt++]=Tr==8&&(Mt.level==1?6:Mt.level<6?4:Mt.level==9?2:0),ot[dt++]=wt&&8,ot[dt]=Tr,dt+=2;var sn=new Date(Mt.mtime||Date.now()),Vn=sn.getFullYear()-1980;if(Vn<0||Vn>119)throw"date not in range 1980-2099";Oe(ot,dt,(Vn<<24)*2|sn.getMonth()+1<<21|sn.getDate()<<16|sn.getHours()<<11|sn.getMinutes()<<5|sn.getSeconds()>>>1),dt+=4,Oe(ot,dt,Yt),Oe(ot,dt+4,en),Oe(ot,dt+8,Et),Oe(ot,dt+12,yr),dt+=16,Nr!=null&&(Oe(ot,dt+=10,Nr),dt+=4),ot.set(Bt,dt),dt+=yr,Nr==null&&ot.set(Pt,dt)},gt=function(ot,dt,Yt,Pt,Et){Oe(ot,dt,101010256),Oe(ot,dt+8,Yt),Oe(ot,dt+10,Yt),Oe(ot,dt+12,Pt),Oe(ot,dt+16,Et)};function kt(Nt,ot,dt){if(dt||(dt=ot,ot={}),typeof dt!="function")throw"no callback";var Yt={};Ft(Nt,"",Yt,ot);var Pt=Object.keys(Yt),Et=Pt.length,Bt=0,wt=0,Mt=Et,Nr=new Array(Et),Tr=[],yr=function(){for(var ri=0;ri<Tr.length;++ri)Tr[ri]()},en=function(){var ri=new S(wt+22),ci=Bt,gi=wt-Bt;wt=0;for(var Ni=0;Ni<Mt;++Ni){var Qe=Nr[Ni];try{ct(ri,wt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),ct(ri,Bt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,wt,Qe.t),Bt+=46+Qe.n.length,wt+=30+Qe.n.length+Qe.d.length}catch(Se){return dt(Se,null)}}gt(ri,Bt,Nr.length,gi,ci),dt(null,ri)};Et||en();for(var sn=function(ri){var ci=Pt[ri],gi=Yt[ci],Ni=gi[0],Qe=gi[1],Se=se(),Pe=Ni.length;Se.p(Ni);var He=vt(ci),Ye=He.length,ze=Qe.level==0?0:8,$e=function(ft,Ht){if(ft)yr(),dt(ft,null);else{var Er=Ht.length;Nr[ri]={t:ze,d:Ht,m:Pe,c:Se.d(),u:ci.length!=Er,n:He,p:Qe},Bt+=30+Ye+Er,wt+=76+2*Ye+Er,--Et||en()}};if(He.length>65535&&$e("filename too long",null),!ze)$e(null,Ni);else if(Pe<16e4)try{$e(null,Sr(Ni,Qe))}catch(St){$e(St,null)}else Tr.push(lr(Ni,Qe,$e))},Vn=0;Vn<Mt;++Vn)sn(Vn);return yr}function xr(Nt,ot){ot===void 0&&(ot={});var dt={},Yt=[];Ft(Nt,"",dt,ot);var Pt=0,Et=0;for(var Bt in dt){var wt=dt[Bt],Mt=wt[0],Nr=wt[1],Tr=Nr.level==0?0:8,yr=vt(Bt),en=yr.length;if(yr.length>65535)throw"filename too long";var sn=Tr?Sr(Mt,Nr):Mt,Vn=sn.length,jn=se();jn.p(Mt),Yt.push({t:Tr,d:sn,m:Mt.length,c:jn.d(),u:Bt.length!=en,n:yr,o:Pt,p:Nr}),Pt+=30+en+Vn,Et+=76+2*en+Vn}for(var ri=new S(Et+22),ci=Pt,gi=Et-Pt,Ni=0;Ni<Yt.length;++Ni){var Qe=Yt[Ni];ct(ri,Qe.o,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),ct(ri,Pt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,Qe.o,Qe.t),Pt+=46+Qe.n.length}return gt(ri,Pt,Yt.length,gi,ci),ri}function Hr(Nt,ot){if(typeof ot!="function")throw"no callback";for(var dt=[],Yt=function(){for(var sn=0;sn<dt.length;++sn)dt[sn]()},Pt={},Et=Nt.length-22;ge(Nt,Et)!=101010256;--Et)if(!Et||Nt.length-Et>65558){ot("invalid zip file",null);return}var Bt=ue(Nt,Et+8);Bt||ot(null,{});var wt=Bt,Mt=ge(Nt,Et+16),Nr=Mt==4294967295;if(Nr){if(Et=ge(Nt,Et-12),ge(Nt,Et)!=101075792)throw"invalid zip file";wt=Bt=ge(Nt,Et+32),Mt=ge(Nt,Et+48)}for(var Tr=function(sn){var Vn=Ie(Nt,Mt,Nr),jn=Vn[0],ri=Vn[1],ci=Vn[2],gi=Vn[3],Ni=Vn[4],Qe=Vn[5],Se=Ne(Nt,Qe);Mt=Ni;var Pe=function(ze,$e){ze?(Yt(),ot(ze,null)):(Pt[gi]=$e,--Bt||ot(null,Pt))};if(!jn)Pe(null,F(Nt,Se,Se+ri));else if(jn==8){var He=Nt.subarray(Se,Se+ri);if(ri<32e4)try{Pe(null,ur(He,new S(ci)))}catch(Ye){Pe(Ye,null)}else dt.push(et(He,{size:ci},Pe))}else Pe("unknown compression type "+jn,null)},yr=0;yr<wt;++yr)Tr(yr);return Yt}function on(Nt){for(var ot={},dt=Nt.length-22;ge(Nt,dt)!=101010256;--dt)if(!dt||Nt.length-dt>65558)throw"invalid zip file";var Yt=ue(Nt,dt+8);if(!Yt)return{};var Pt=ge(Nt,dt+16),Et=Pt==4294967295;if(Et){if(dt=ge(Nt,dt-12),ge(Nt,dt)!=101075792)throw"invalid zip file";Yt=ge(Nt,dt+32),Pt=ge(Nt,dt+48)}for(var Bt=0;Bt<Yt;++Bt){var wt=Ie(Nt,Pt,Et),Mt=wt[0],Nr=wt[1],Tr=wt[2],yr=wt[3],en=wt[4],sn=wt[5],Vn=Ne(Nt,sn);if(Pt=en,!Mt)ot[yr]=F(Nt,Vn,Vn+Nr);else if(Mt==8)ot[yr]=ur(Nt.subarray(Vn,Vn+Nr),new S(Tr));else throw"unknown compression type "+Mt}return ot}},cv67:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var S=y,v=S.lib,m=v.WordArray,f=v.Hasher,d=S.algo,u=[];(function(){for(var l=0;l<64;l++)u[l]=p.abs(p.sin(l+1))*4294967296|0})();var o=d.MD5=f.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,s){for(var c=0;c<16;c++){var h=s+c,g=r[h];r[h]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var A=this._hash.words,b=r[s+0],w=r[s+1],x=r[s+2],T=r[s+3],_=r[s+4],E=r[s+5],C=r[s+6],I=r[s+7],O=r[s+8],F=r[s+9],R=r[s+10],B=r[s+11],P=r[s+12],X=r[s+13],M=r[s+14],z=r[s+15],W=A[0],H=A[1],V=A[2],Q=A[3];W=n(W,H,V,Q,b,7,u[0]),Q=n(Q,W,H,V,w,12,u[1]),V=n(V,Q,W,H,x,17,u[2]),H=n(H,V,Q,W,T,22,u[3]),W=n(W,H,V,Q,_,7,u[4]),Q=n(Q,W,H,V,E,12,u[5]),V=n(V,Q,W,H,C,17,u[6]),H=n(H,V,Q,W,I,22,u[7]),W=n(W,H,V,Q,O,7,u[8]),Q=n(Q,W,H,V,F,12,u[9]),V=n(V,Q,W,H,R,17,u[10]),H=n(H,V,Q,W,B,22,u[11]),W=n(W,H,V,Q,P,7,u[12]),Q=n(Q,W,H,V,X,12,u[13]),V=n(V,Q,W,H,M,17,u[14]),H=n(H,V,Q,W,z,22,u[15]),W=t(W,H,V,Q,w,5,u[16]),Q=t(Q,W,H,V,C,9,u[17]),V=t(V,Q,W,H,B,14,u[18]),H=t(H,V,Q,W,b,20,u[19]),W=t(W,H,V,Q,E,5,u[20]),Q=t(Q,W,H,V,R,9,u[21]),V=t(V,Q,W,H,z,14,u[22]),H=t(H,V,Q,W,_,20,u[23]),W=t(W,H,V,Q,F,5,u[24]),Q=t(Q,W,H,V,M,9,u[25]),V=t(V,Q,W,H,T,14,u[26]),H=t(H,V,Q,W,O,20,u[27]),W=t(W,H,V,Q,X,5,u[28]),Q=t(Q,W,H,V,x,9,u[29]),V=t(V,Q,W,H,I,14,u[30]),H=t(H,V,Q,W,P,20,u[31]),W=a(W,H,V,Q,E,4,u[32]),Q=a(Q,W,H,V,O,11,u[33]),V=a(V,Q,W,H,B,16,u[34]),H=a(H,V,Q,W,M,23,u[35]),W=a(W,H,V,Q,w,4,u[36]),Q=a(Q,W,H,V,_,11,u[37]),V=a(V,Q,W,H,I,16,u[38]),H=a(H,V,Q,W,R,23,u[39]),W=a(W,H,V,Q,X,4,u[40]),Q=a(Q,W,H,V,b,11,u[41]),V=a(V,Q,W,H,T,16,u[42]),H=a(H,V,Q,W,C,23,u[43]),W=a(W,H,V,Q,F,4,u[44]),Q=a(Q,W,H,V,P,11,u[45]),V=a(V,Q,W,H,z,16,u[46]),H=a(H,V,Q,W,x,23,u[47]),W=e(W,H,V,Q,b,6,u[48]),Q=e(Q,W,H,V,I,10,u[49]),V=e(V,Q,W,H,M,15,u[50]),H=e(H,V,Q,W,E,21,u[51]),W=e(W,H,V,Q,P,6,u[52]),Q=e(Q,W,H,V,T,10,u[53]),V=e(V,Q,W,H,R,15,u[54]),H=e(H,V,Q,W,w,21,u[55]),W=e(W,H,V,Q,O,6,u[56]),Q=e(Q,W,H,V,z,10,u[57]),V=e(V,Q,W,H,C,15,u[58]),H=e(H,V,Q,W,X,21,u[59]),W=e(W,H,V,Q,_,6,u[60]),Q=e(Q,W,H,V,B,10,u[61]),V=e(V,Q,W,H,x,15,u[62]),H=e(H,V,Q,W,F,21,u[63]),A[0]=A[0]+W|0,A[1]=A[1]+H|0,A[2]=A[2]+V|0,A[3]=A[3]+Q|0},_doFinalize:function(){var r=this._data,s=r.words,c=this._nDataBytes*8,h=r.sigBytes*8;s[h>>>5]|=128<<24-h%32;var g=p.floor(c/4294967296),A=c;s[(h+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,s[(h+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,r.sigBytes=(s.length+1)*4,this._process();for(var b=this._hash,w=b.words,x=0;x<4;x++){var T=w[x];w[x]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return b},clone:function(){var r=f.clone.call(this);return r._hash=this._hash.clone(),r}});function n(l,r,s,c,h,g,A){var b=l+(r&s|~r&c)+h+A;return(b<<g|b>>>32-g)+r}function t(l,r,s,c,h,g,A){var b=l+(r&c|s&~c)+h+A;return(b<<g|b>>>32-g)+r}function a(l,r,s,c,h,g,A){var b=l+(r^s^c)+h+A;return(b<<g|b>>>32-g)+r}function e(l,r,s,c,h,g,A){var b=l+(s^(r|~c))+h+A;return(b<<g|b>>>32-g)+r}S.MD5=f._createHelper(o),S.HmacMD5=f._createHmacHelper(o)}(Math),y.MD5})},czTT:function(k,D,i){},d4KN:function(k,D,i){var y=i("ProS"),p=i("bYtY");function S(v,m){p.each(m,function(f){f.update="updateView",y.registerAction(f,function(d,u){var o={};return u.eachComponent({mainType:"series",subType:v,query:d},function(n){n[f.method]&&n[f.method](d.name,d.dataIndex);var t=n.getData();t.each(function(a){var e=t.getName(a);o[e]=n.isSelected(e)||!1})}),{name:d.name,selected:o,seriesId:d.seriesId}})})}k.exports=S},dBmv:function(k,D,i){var y=i("ProS"),p=i("szbU");i("vF/C"),i("qwVE"),i("MHoB"),i("PNag"),i("1u/T"),y.registerPreprocessor(p)},dD9F:function(k,D,i){var y=i("NykK"),p=i("shjB"),S=i("ExA7"),v="[object Arguments]",m="[object Array]",f="[object Boolean]",d="[object Date]",u="[object Error]",o="[object Function]",n="[object Map]",t="[object Number]",a="[object Object]",e="[object RegExp]",l="[object Set]",r="[object String]",s="[object WeakMap]",c="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",A="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",x="[object Int32Array]",T="[object Uint8Array]",_="[object Uint8ClampedArray]",E="[object Uint16Array]",C="[object Uint32Array]",I={};I[g]=I[A]=I[b]=I[w]=I[x]=I[T]=I[_]=I[E]=I[C]=!0,I[v]=I[m]=I[c]=I[f]=I[h]=I[d]=I[u]=I[o]=I[n]=I[t]=I[a]=I[e]=I[l]=I[r]=I[s]=!1;function O(F){return S(F)&&p(F.length)&&!!I[y(F)]}k.exports=O},"dF/Y":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="DownloadOutlined";var d=D.a=p.forwardRef(f)},dMvE:function(k,D){var i={linear:function(S){return S},quadraticIn:function(S){return S*S},quadraticOut:function(S){return S*(2-S)},quadraticInOut:function(S){return(S*=2)<1?.5*S*S:-.5*(--S*(S-2)-1)},cubicIn:function(S){return S*S*S},cubicOut:function(S){return--S*S*S+1},cubicInOut:function(S){return(S*=2)<1?.5*S*S*S:.5*((S-=2)*S*S+2)},quarticIn:function(S){return S*S*S*S},quarticOut:function(S){return 1- --S*S*S*S},quarticInOut:function(S){return(S*=2)<1?.5*S*S*S*S:-.5*((S-=2)*S*S*S-2)},quinticIn:function(S){return S*S*S*S*S},quinticOut:function(S){return--S*S*S*S*S+1},quinticInOut:function(S){return(S*=2)<1?.5*S*S*S*S*S:.5*((S-=2)*S*S*S*S+2)},sinusoidalIn:function(S){return 1-Math.cos(S*Math.PI/2)},sinusoidalOut:function(S){return Math.sin(S*Math.PI/2)},sinusoidalInOut:function(S){return .5*(1-Math.cos(Math.PI*S))},exponentialIn:function(S){return S===0?0:Math.pow(1024,S-1)},exponentialOut:function(S){return S===1?1:1-Math.pow(2,-10*S)},exponentialInOut:function(S){return S===0?0:S===1?1:(S*=2)<1?.5*Math.pow(1024,S-1):.5*(-Math.pow(2,-10*(S-1))+2)},circularIn:function(S){return 1-Math.sqrt(1-S*S)},circularOut:function(S){return Math.sqrt(1- --S*S)},circularInOut:function(S){return(S*=2)<1?-.5*(Math.sqrt(1-S*S)-1):.5*(Math.sqrt(1-(S-=2)*S)+1)},elasticIn:function(S){var v,m=.1,f=.4;return S===0?0:S===1?1:(!m||m<1?(m=1,v=f/4):v=f*Math.asin(1/m)/(2*Math.PI),-(m*Math.pow(2,10*(S-=1))*Math.sin((S-v)*(2*Math.PI)/f)))},elasticOut:function(S){var v,m=.1,f=.4;return S===0?0:S===1?1:(!m||m<1?(m=1,v=f/4):v=f*Math.asin(1/m)/(2*Math.PI),m*Math.pow(2,-10*S)*Math.sin((S-v)*(2*Math.PI)/f)+1)},elasticInOut:function(S){var v,m=.1,f=.4;return S===0?0:S===1?1:(!m||m<1?(m=1,v=f/4):v=f*Math.asin(1/m)/(2*Math.PI),(S*=2)<1?-.5*(m*Math.pow(2,10*(S-=1))*Math.sin((S-v)*(2*Math.PI)/f)):m*Math.pow(2,-10*(S-=1))*Math.sin((S-v)*(2*Math.PI)/f)*.5+1)},backIn:function(S){var v=1.70158;return S*S*((v+1)*S-v)},backOut:function(S){var v=1.70158;return--S*S*((v+1)*S+v)+1},backInOut:function(S){var v=1.70158*1.525;return(S*=2)<1?.5*(S*S*((v+1)*S-v)):.5*((S-=2)*S*((v+1)*S+v)+2)},bounceIn:function(S){return 1-i.bounceOut(1-S)},bounceOut:function(S){return S<1/2.75?7.5625*S*S:S<2/2.75?7.5625*(S-=1.5/2.75)*S+.75:S<2.5/2.75?7.5625*(S-=2.25/2.75)*S+.9375:7.5625*(S-=2.625/2.75)*S+.984375},bounceInOut:function(S){return S<.5?i.bounceIn(S*2)*.5:i.bounceOut(S*2-1)*.5+.5}},y=i;k.exports=y},dQei:function(k,D){for(var i={glog:function(S){if(S<1)throw new Error("glog("+S+")");return i.LOG_TABLE[S]},gexp:function(S){for(;S<0;)S+=255;for(;S>=256;)S-=255;return i.EXP_TABLE[S]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},y=0;y<8;y++)i.EXP_TABLE[y]=1<<y;for(var y=8;y<256;y++)i.EXP_TABLE[y]=i.EXP_TABLE[y-4]^i.EXP_TABLE[y-5]^i.EXP_TABLE[y-6]^i.EXP_TABLE[y-8];for(var y=0;y<255;y++)i.LOG_TABLE[i.EXP_TABLE[y]]=y;k.exports=i},dWSS:function(k,D,i){var y=i("dQei");function p(S,v){if(S.length==null)throw new Error(S.length+"/"+v);for(var m=0;m<S.length&&S[m]==0;)m++;this.num=new Array(S.length-m+v);for(var f=0;f<S.length-m;f++)this.num[f]=S[f+m]}p.prototype={get:function(v){return this.num[v]},getLength:function(){return this.num.length},multiply:function(v){for(var m=new Array(this.getLength()+v.getLength()-1),f=0;f<this.getLength();f++)for(var d=0;d<v.getLength();d++)m[f+d]^=y.gexp(y.glog(this.get(f))+y.glog(v.get(d)));return new p(m,0)},mod:function(v){if(this.getLength()-v.getLength()<0)return this;for(var m=y.glog(this.get(0))-y.glog(v.get(0)),f=new Array(this.getLength()),d=0;d<this.getLength();d++)f[d]=this.get(d);for(var d=0;d<v.getLength();d++)f[d]^=y.gexp(y.glog(v.get(d))+m);return new p(f,0).mod(v)}},k.exports=p},diRs:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("q1tI"),v=i.n(S),m=i("3S7+"),f=i("H84U"),d=i("bogI"),u=function(n,t){var a={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(a[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(n);l<e.length;l++)t.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(n,e[l])&&(a[e[l]]=n[e[l]]);return a},o=S.forwardRef(function(n,t){var a=n.prefixCls,e=n.title,l=n.content,r=u(n,["prefixCls","title","content"]),s=S.useContext(f.b),c=s.getPrefixCls,h=function(b){return S.createElement(S.Fragment,null,e&&S.createElement("div",{className:"".concat(b,"-title")},Object(d.a)(e)),S.createElement("div",{className:"".concat(b,"-inner-content")},Object(d.a)(l)))},g=c("popover",a);return S.createElement(m.a,p()({},r,{prefixCls:g,ref:t,overlay:h(g)}))});o.displayName="Popover",o.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},D.a=o},digP:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(S,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:v}},{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:S}}]}},name:"file",theme:"twotone"};D.default=y},dm2S:function(k,D,i){"use strict";i.d(D,"a",function(){return v});var y=i("ODXe"),p=i("q1tI"),S=i.n(p);function v(m){var f=p.useRef(!1),d=p.useState(m),u=Object(y.a)(d,2),o=u[0],n=u[1];p.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function t(a,e){if(e&&f.current)return;n(a)}return[o,t]}},dmGj:function(k,D,i){var y=i("DEFe"),p=i("ProS"),S=p.extendComponentView({type:"geo",init:function(v,m){var f=new y(m,!0);this._mapDraw=f,this.group.add(f.group)},render:function(v,m,f,d){if(d&&d.type==="geoToggleSelect"&&d.from===this.uid)return;var u=this._mapDraw;v.get("show")?u.draw(v,m,f,this,d):this._mapDraw.group.removeAll(),this.group.silent=v.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});k.exports=S},dnwI:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("YH21"),v=i("Kagy"),m=i("IUWy"),f=v.toolbox.dataView,d=new Array(60).join("-"),u=" ";function o(w){var x={},T=[],_=[];return w.eachRawSeries(function(E){var C=E.coordinateSystem;if(C&&(C.type==="cartesian2d"||C.type==="polar")){var I=C.getBaseAxis();if(I.type==="category"){var O=I.dim+"_"+I.index;x[O]||(x[O]={categoryAxis:I,valueAxis:C.getOtherAxis(I),series:[]},_.push({axisDim:I.dim,axisIndex:I.index})),x[O].series.push(E)}else T.push(E)}else T.push(E)}),{seriesGroupByCategoryAxis:x,other:T,meta:_}}function n(w){var x=[];return p.each(w,function(T,_){var E=T.categoryAxis,C=T.valueAxis,I=C.dim,O=[" "].concat(p.map(T.series,function(M){return M.name})),F=[E.model.getCategories()];p.each(T.series,function(M){F.push(M.getRawData().mapArray(I,function(z){return z}))});for(var R=[O.join(u)],B=0;B<F[0].length;B++){for(var P=[],X=0;X<F.length;X++)P.push(F[X][B]);R.push(P.join(u))}x.push(R.join(`
`))}),x.join(`
`+d+`
`)}function t(w){return p.map(w,function(x){var T=x.getRawData(),_=[x.name],E=[];return T.each(T.dimensions,function(){for(var C=arguments.length,I=arguments[C-1],O=T.getName(I),F=0;F<C-1;F++)E[F]=arguments[F];_.push((O?O+u:"")+E.join(u))}),_.join(`
`)}).join(`
`+d+`
`)}function a(w){var x=o(w);return{value:p.filter([n(x.seriesGroupByCategoryAxis),t(x.other)],function(T){return T.replace(/[\n\t\s]/g,"")}).join(`
`+d+`
`),meta:x.meta}}function e(w){return w.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(w){var x=w.slice(0,w.indexOf(`
`));if(x.indexOf(u)>=0)return!0}var r=new RegExp("["+u+"]+","g");function s(w){for(var x=w.split(/\n+/g),T=e(x.shift()).split(r),_=[],E=p.map(T,function(F){return{name:F,data:[]}}),C=0;C<x.length;C++){var I=e(x[C]).split(r);_.push(I.shift());for(var O=0;O<I.length;O++)E[O]&&(E[O].data[C]=I[O])}return{series:E,categories:_}}function c(w){for(var x=w.split(/\n+/g),T=e(x.shift()),_=[],E=0;E<x.length;E++){var C=e(x[E]).split(r),I="",O,F=!1;isNaN(C[0])?(F=!0,I=C[0],C=C.slice(1),_[E]={name:I,value:[]},O=_[E].value):O=_[E]=[];for(var R=0;R<C.length;R++)O.push(+C[R]);O.length===1&&(F?_[E].value=O[0]:_[E]=O[0])}return{name:T,data:_}}function h(w,x){var T=w.split(new RegExp(`
*`+d+`
*`,"g")),_={series:[]};return p.each(T,function(E,C){if(l(E)){var I=s(E),O=x[C],F=O.axisDim+"Axis";O&&(_[F]=_[F]||[],_[F][O.axisIndex]={data:I.categories},_.series=_.series.concat(I.series))}else{var I=c(E);_.series.push(I)}}),_}function g(w){this._dom=null,this.model=w}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:p.clone(f.title),lang:p.clone(f.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},g.prototype.onclick=function(w,x){var T=x.getDom(),_=this.model;this._dom&&T.removeChild(this._dom);var E=document.createElement("div");E.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",E.style.backgroundColor=_.get("backgroundColor")||"#fff";var C=document.createElement("h4"),I=_.get("lang")||[];C.innerHTML=I[0]||_.get("title"),C.style.cssText="margin: 10px 20px;",C.style.color=_.get("textColor");var O=document.createElement("div"),F=document.createElement("textarea");O.style.cssText="display:block;width:100%;overflow:auto;";var R=_.get("optionToContent"),B=_.get("contentToOption"),P=a(w);if(typeof R=="function"){var X=R(x.getOption());typeof X=="string"?O.innerHTML=X:p.isDom(X)&&O.appendChild(X)}else O.appendChild(F),F.readOnly=_.get("readOnly"),F.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",F.style.color=_.get("textColor"),F.style.borderColor=_.get("textareaBorderColor"),F.style.backgroundColor=_.get("textareaColor"),F.value=P.value;var M=P.meta,z=document.createElement("div");z.style.cssText="position:absolute;bottom:0;left:0;right:0;";var W="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",H=document.createElement("div"),V=document.createElement("div");W+=";background-color:"+_.get("buttonColor"),W+=";color:"+_.get("buttonTextColor");var Q=this;function G(){T.removeChild(E),Q._dom=null}S.addEventListener(H,"click",G),S.addEventListener(V,"click",function(){var ee;try{typeof B=="function"?ee=B(O,x.getOption()):ee=h(F.value,M)}catch(q){throw G(),new Error("Data view format error "+q)}ee&&x.dispatchAction({type:"changeDataView",newOption:ee}),G()}),H.innerHTML=I[1],V.innerHTML=I[2],V.style.cssText=W,H.style.cssText=W,!_.get("readOnly")&&z.appendChild(V),z.appendChild(H),E.appendChild(C),E.appendChild(O),E.appendChild(z),O.style.height=T.clientHeight-80+"px",T.appendChild(E),this._dom=E},g.prototype.remove=function(w,x){this._dom&&x.getDom().removeChild(this._dom)},g.prototype.dispose=function(w,x){this.remove(w,x)};function A(w,x){return p.map(w,function(T,_){var E=x&&x[_];return p.isObject(E)&&!p.isArray(E)?(p.isObject(T)&&!p.isArray(T)&&(T=T.value),p.defaults({value:T},E)):T})}m.register("dataView",g),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(w,x){var T=[];p.each(w.newOption.series,function(_){var E=x.getSeriesByName(_.name)[0];if(!E)T.push(p.extend({type:"scatter"},_));else{var C=E.get("data");T.push({name:_.name,data:A(_.data,C)})}}),x.mergeOption(p.defaults({series:T},w.newOption))});var b=g;k.exports=b},dqUG:function(k,D,i){var y=i("Gev7"),p=i("bYtY"),S=i("6GrX"),v=i("pzxd"),m=i("gut8"),f=m.ContextCachedBy,d=function(n){y.call(this,n)};d.prototype={constructor:d,type:"text",brush:function(n,t){var a=this.style;this.__dirty&&v.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var e=a.text;if(e!=null&&(e+=""),!v.needDrawText(e,a)){n.__attrCachedBy=f.NONE;return}this.setTransform(n),v.renderText(this,n,e,a,null,t),this.restoreTransform(n)},getBoundingRect:function(){var n=this.style;if(this.__dirty&&v.normalizeTextStyle(n,!0),!this._rect){var t=n.text;t!=null?t+="":t="";var a=S.getBoundingRect(n.text+"",n.font,n.textAlign,n.textVerticalAlign,n.textPadding,n.textLineHeight,n.rich);if(a.x+=n.x||0,a.y+=n.y||0,v.getStroke(n.textStroke,n.textStrokeWidth)){var e=n.textStrokeWidth;a.x-=e/2,a.y-=e/2,a.width+=e,a.height+=e}this._rect=a}return this._rect}},p.inherits(d,y);var u=d;k.exports=u},dtIV:function(k,D,i){"use strict";i.r(D),function(y){i.d(D,"AcroForm",function(){return qr}),i.d(D,"AcroFormAppearance",function(){return et}),i.d(D,"AcroFormButton",function(){return Ot}),i.d(D,"AcroFormCheckBox",function(){return Sr}),i.d(D,"AcroFormChoiceField",function(){return tt}),i.d(D,"AcroFormComboBox",function(){return st}),i.d(D,"AcroFormEditBox",function(){return Ve}),i.d(D,"AcroFormListBox",function(){return ke}),i.d(D,"AcroFormPasswordField",function(){return or}),i.d(D,"AcroFormPushButton",function(){return Ut}),i.d(D,"AcroFormRadioButton",function(){return ir}),i.d(D,"AcroFormTextField",function(){return mt}),i.d(D,"GState",function(){return X}),i.d(D,"ShadingPattern",function(){return z}),i.d(D,"TilingPattern",function(){return W}),i.d(D,"jsPDF",function(){return H});var p=i("cDf5"),S=i.n(p),v=i("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 f(){m.console&&typeof m.console.log=="function"&&m.console.log.apply(m.console,arguments)}var d={log:f,warn:function(Se){m.console&&(typeof m.console.warn=="function"?m.console.warn.apply(m.console,arguments):f.call(null,arguments))},error:function(Se){m.console&&(typeof m.console.error=="function"?m.console.error.apply(m.console,arguments):f(Se))}};function u(Qe,Se,Pe){var He=new XMLHttpRequest;He.open("GET",Qe),He.responseType="blob",He.onload=function(){e(He.response,Se,Pe)},He.onerror=function(){d.error("could not download file")},He.send()}function o(Qe){var Se=new XMLHttpRequest;Se.open("HEAD",Qe,!1);try{Se.send()}catch(Pe){}return Se.status>=200&&Se.status<=299}function n(Qe){try{Qe.dispatchEvent(new MouseEvent("click"))}catch(Pe){var Se=document.createEvent("MouseEvents");Se.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Qe.dispatchEvent(Se)}}var t,a,e=m.saveAs||((typeof window=="undefined"?"undefined":S()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Qe,Se,Pe){var He=m.URL||m.webkitURL,Ye=document.createElement("a");Se=Se||Qe.name||"download",Ye.download=Se,Ye.rel="noopener",typeof Qe=="string"?(Ye.href=Qe,Ye.origin!==location.origin?o(Ye.href)?u(Qe,Se,Pe):n(Ye,Ye.target="_blank"):n(Ye)):(Ye.href=He.createObjectURL(Qe),setTimeout(function(){He.revokeObjectURL(Ye.href)},4e4),setTimeout(function(){n(Ye)},0))}:"msSaveOrOpenBlob"in navigator?function(Qe,Se,Pe){if(Se=Se||Qe.name||"download",typeof Qe=="string")if(o(Qe))u(Qe,Se,Pe);else{var He=document.createElement("a");He.href=Qe,He.target="_blank",setTimeout(function(){n(He)})}else navigator.msSaveOrOpenBlob(function(Ye,ze){return ze===void 0?ze={autoBom:!1}:S()(ze)!=="object"&&(d.warn("Deprecated: Expected third argument to be a object"),ze={autoBom:!ze}),ze.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ye.type)?new Blob([String.fromCharCode(65279),Ye],{type:Ye.type}):Ye}(Qe,Pe),Se)}:function(Qe,Se,Pe,He){if((He=He||open("","_blank"))&&(He.document.title=He.document.body.innerText="downloading..."),typeof Qe=="string")return u(Qe,Se,Pe);var Ye=Qe.type==="application/octet-stream",ze=/constructor/i.test(m.HTMLElement)||m.safari,$e=/CriOS\/[\d]+/.test(navigator.userAgent);if(($e||Ye&&ze)&&(typeof FileReader=="undefined"?"undefined":S()(FileReader))==="object"){var St=new FileReader;St.onloadend=function(){var Er=St.result;Er=$e?Er:Er.replace(/^data:[^;]*;/,"data:attachment/file;"),He?He.location.href=Er:location=Er,He=null},St.readAsDataURL(Qe)}else{var ft=m.URL||m.webkitURL,Ht=ft.createObjectURL(Qe);He?He.location=Ht:location.href=Ht,He=null,setTimeout(function(){ft.revokeObjectURL(Ht)},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(Qe){var Se;Qe=Qe||"",this.ok=!1,Qe.charAt(0)=="#"&&(Qe=Qe.substr(1,6)),Qe={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"}[Qe=(Qe=Qe.replace(/ /g,"")).toLowerCase()]||Qe;for(var Pe=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ft){return[parseInt(ft[1]),parseInt(ft[2]),parseInt(ft[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ft){return[parseInt(ft[1],16),parseInt(ft[2],16),parseInt(ft[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ft){return[parseInt(ft[1]+ft[1],16),parseInt(ft[2]+ft[2],16),parseInt(ft[3]+ft[3],16)]}}],He=0;He<Pe.length;He++){var Ye=Pe[He].re,ze=Pe[He].process,$e=Ye.exec(Qe);$e&&(Se=ze($e),this.r=Se[0],this.g=Se[1],this.b=Se[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 St=this.r.toString(16),ft=this.g.toString(16),Ht=this.b.toString(16);return St.length==1&&(St="0"+St),ft.length==1&&(ft="0"+ft),Ht.length==1&&(Ht="0"+Ht),"#"+St+ft+Ht}}/**
* @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 r(Qe,Se){var Pe=Qe[0],He=Qe[1],Ye=Qe[2],ze=Qe[3];Pe=c(Pe,He,Ye,ze,Se[0],7,-680876936),ze=c(ze,Pe,He,Ye,Se[1],12,-389564586),Ye=c(Ye,ze,Pe,He,Se[2],17,606105819),He=c(He,Ye,ze,Pe,Se[3],22,-1044525330),Pe=c(Pe,He,Ye,ze,Se[4],7,-176418897),ze=c(ze,Pe,He,Ye,Se[5],12,1200080426),Ye=c(Ye,ze,Pe,He,Se[6],17,-1473231341),He=c(He,Ye,ze,Pe,Se[7],22,-45705983),Pe=c(Pe,He,Ye,ze,Se[8],7,1770035416),ze=c(ze,Pe,He,Ye,Se[9],12,-1958414417),Ye=c(Ye,ze,Pe,He,Se[10],17,-42063),He=c(He,Ye,ze,Pe,Se[11],22,-1990404162),Pe=c(Pe,He,Ye,ze,Se[12],7,1804603682),ze=c(ze,Pe,He,Ye,Se[13],12,-40341101),Ye=c(Ye,ze,Pe,He,Se[14],17,-1502002290),Pe=h(Pe,He=c(He,Ye,ze,Pe,Se[15],22,1236535329),Ye,ze,Se[1],5,-165796510),ze=h(ze,Pe,He,Ye,Se[6],9,-1069501632),Ye=h(Ye,ze,Pe,He,Se[11],14,643717713),He=h(He,Ye,ze,Pe,Se[0],20,-373897302),Pe=h(Pe,He,Ye,ze,Se[5],5,-701558691),ze=h(ze,Pe,He,Ye,Se[10],9,38016083),Ye=h(Ye,ze,Pe,He,Se[15],14,-660478335),He=h(He,Ye,ze,Pe,Se[4],20,-405537848),Pe=h(Pe,He,Ye,ze,Se[9],5,568446438),ze=h(ze,Pe,He,Ye,Se[14],9,-1019803690),Ye=h(Ye,ze,Pe,He,Se[3],14,-187363961),He=h(He,Ye,ze,Pe,Se[8],20,1163531501),Pe=h(Pe,He,Ye,ze,Se[13],5,-1444681467),ze=h(ze,Pe,He,Ye,Se[2],9,-51403784),Ye=h(Ye,ze,Pe,He,Se[7],14,1735328473),Pe=g(Pe,He=h(He,Ye,ze,Pe,Se[12],20,-1926607734),Ye,ze,Se[5],4,-378558),ze=g(ze,Pe,He,Ye,Se[8],11,-2022574463),Ye=g(Ye,ze,Pe,He,Se[11],16,1839030562),He=g(He,Ye,ze,Pe,Se[14],23,-35309556),Pe=g(Pe,He,Ye,ze,Se[1],4,-1530992060),ze=g(ze,Pe,He,Ye,Se[4],11,1272893353),Ye=g(Ye,ze,Pe,He,Se[7],16,-155497632),He=g(He,Ye,ze,Pe,Se[10],23,-1094730640),Pe=g(Pe,He,Ye,ze,Se[13],4,681279174),ze=g(ze,Pe,He,Ye,Se[0],11,-358537222),Ye=g(Ye,ze,Pe,He,Se[3],16,-722521979),He=g(He,Ye,ze,Pe,Se[6],23,76029189),Pe=g(Pe,He,Ye,ze,Se[9],4,-640364487),ze=g(ze,Pe,He,Ye,Se[12],11,-421815835),Ye=g(Ye,ze,Pe,He,Se[15],16,530742520),Pe=A(Pe,He=g(He,Ye,ze,Pe,Se[2],23,-995338651),Ye,ze,Se[0],6,-198630844),ze=A(ze,Pe,He,Ye,Se[7],10,1126891415),Ye=A(Ye,ze,Pe,He,Se[14],15,-1416354905),He=A(He,Ye,ze,Pe,Se[5],21,-57434055),Pe=A(Pe,He,Ye,ze,Se[12],6,1700485571),ze=A(ze,Pe,He,Ye,Se[3],10,-1894986606),Ye=A(Ye,ze,Pe,He,Se[10],15,-1051523),He=A(He,Ye,ze,Pe,Se[1],21,-2054922799),Pe=A(Pe,He,Ye,ze,Se[8],6,1873313359),ze=A(ze,Pe,He,Ye,Se[15],10,-30611744),Ye=A(Ye,ze,Pe,He,Se[6],15,-1560198380),He=A(He,Ye,ze,Pe,Se[13],21,1309151649),Pe=A(Pe,He,Ye,ze,Se[4],6,-145523070),ze=A(ze,Pe,He,Ye,Se[11],10,-1120210379),Ye=A(Ye,ze,Pe,He,Se[2],15,718787259),He=A(He,Ye,ze,Pe,Se[9],21,-343485551),Qe[0]=I(Pe,Qe[0]),Qe[1]=I(He,Qe[1]),Qe[2]=I(Ye,Qe[2]),Qe[3]=I(ze,Qe[3])}function s(Qe,Se,Pe,He,Ye,ze){return Se=I(I(Se,Qe),I(He,ze)),I(Se<<Ye|Se>>>32-Ye,Pe)}function c(Qe,Se,Pe,He,Ye,ze,$e){return s(Se&Pe|~Se&He,Qe,Se,Ye,ze,$e)}function h(Qe,Se,Pe,He,Ye,ze,$e){return s(Se&He|Pe&~He,Qe,Se,Ye,ze,$e)}function g(Qe,Se,Pe,He,Ye,ze,$e){return s(Se^Pe^He,Qe,Se,Ye,ze,$e)}function A(Qe,Se,Pe,He,Ye,ze,$e){return s(Pe^(Se|~He),Qe,Se,Ye,ze,$e)}function b(Qe){var Se,Pe=Qe.length,He=[1732584193,-271733879,-1732584194,271733878];for(Se=64;Se<=Qe.length;Se+=64)r(He,w(Qe.substring(Se-64,Se)));Qe=Qe.substring(Se-64);var Ye=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Se=0;Se<Qe.length;Se++)Ye[Se>>2]|=Qe.charCodeAt(Se)<<(Se%4<<3);if(Ye[Se>>2]|=128<<(Se%4<<3),Se>55)for(r(He,Ye),Se=0;Se<16;Se++)Ye[Se]=0;return Ye[14]=8*Pe,r(He,Ye),He}function w(Qe){var Se,Pe=[];for(Se=0;Se<64;Se+=4)Pe[Se>>2]=Qe.charCodeAt(Se)+(Qe.charCodeAt(Se+1)<<8)+(Qe.charCodeAt(Se+2)<<16)+(Qe.charCodeAt(Se+3)<<24);return Pe}t=m.atob.bind(m),a=m.btoa.bind(m);var x="0123456789abcdef".split("");function T(Qe){for(var Se="",Pe=0;Pe<4;Pe++)Se+=x[Qe>>8*Pe+4&15]+x[Qe>>8*Pe&15];return Se}function _(Qe){return String.fromCharCode((255&Qe)>>0,(65280&Qe)>>8,(16711680&Qe)>>16,(4278190080&Qe)>>24)}function E(Qe){return b(Qe).map(_).join("")}var C=function(Qe){for(var Se=0;Se<Qe.length;Se++)Qe[Se]=T(Qe[Se]);return Qe.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function I(Qe,Se){if(C){var Pe=(65535&Qe)+(65535&Se);return(Qe>>16)+(Se>>16)+(Pe>>16)<<16|65535&Pe}return Qe+Se&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 O(Qe,Se){var Pe,He,Ye,ze;if(Qe!==Pe){for(var $e=(Ye=Qe,ze=1+(256/Qe.length>>0),new Array(ze+1).join(Ye)),St=[],ft=0;ft<256;ft++)St[ft]=ft;var Ht=0;for(ft=0;ft<256;ft++){var Er=St[ft];Ht=(Ht+Er+$e.charCodeAt(ft))%256,St[ft]=St[Ht],St[Ht]=Er}Pe=Qe,He=St}else St=He;var Fr=Se.length,tn=0,Zt=0,Rn="";for(ft=0;ft<Fr;ft++)Zt=(Zt+(Er=St[tn=(tn+1)%256]))%256,St[tn]=St[Zt],St[Zt]=Er,$e=St[(St[tn]+St[Zt])%256],Rn+=String.fromCharCode(Se.charCodeAt(ft)^$e);return Rn}/**
* @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 F={print:4,modify:8,copy:16,"annot-forms":32};function R(Qe,Se,Pe,He){this.v=1,this.r=2;var Ye=192;Qe.forEach(function(St){if(F.perm!==void 0)throw new Error("Invalid permission: "+St);Ye+=F[St]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var ze=(Se+this.padding).substr(0,32),$e=(Pe+this.padding).substr(0,32);this.O=this.processOwnerPassword(ze,$e),this.P=-(1+(255^Ye)),this.encryptionKey=E(ze+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(He)).substr(0,5),this.U=O(this.encryptionKey,this.padding)}function B(Qe){if(/[^\u0000-\u00ff]/.test(Qe))throw new Error("Invalid PDF Name Object: "+Qe+", Only accept ASCII characters.");for(var Se="",Pe=Qe.length,He=0;He<Pe;He++){var Ye=Qe.charCodeAt(He);Ye<33||Ye===35||Ye===37||Ye===40||Ye===41||Ye===47||Ye===60||Ye===62||Ye===91||Ye===93||Ye===123||Ye===125||Ye>126?Se+="#"+("0"+Ye.toString(16)).slice(-2):Se+=Qe[He]}return Se}function P(Qe){if(S()(Qe)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Se={};this.subscribe=function(Pe,He,Ye){if(Ye=Ye||!1,typeof Pe!="string"||typeof He!="function"||typeof Ye!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Se.hasOwnProperty(Pe)||(Se[Pe]={});var ze=Math.random().toString(35);return Se[Pe][ze]=[He,!!Ye],ze},this.unsubscribe=function(Pe){for(var He in Se)if(Se[He][Pe])return delete Se[He][Pe],Object.keys(Se[He]).length===0&&delete Se[He],!0;return!1},this.publish=function(Pe){if(Se.hasOwnProperty(Pe)){var He=Array.prototype.slice.call(arguments,1),Ye=[];for(var ze in Se[Pe]){var $e=Se[Pe][ze];try{$e[0].apply(Qe,He)}catch(St){m.console&&d.error("jsPDF PubSub Error",St.message,St)}$e[1]&&Ye.push(ze)}Ye.length&&Ye.forEach(this.unsubscribe)}},this.getTopics=function(){return Se}}function X(Qe){if(!(this instanceof X))return new X(Qe);var Se="opacity,stroke-opacity".split(",");for(var Pe in Qe)Qe.hasOwnProperty(Pe)&&Se.indexOf(Pe)>=0&&(this[Pe]=Qe[Pe]);this.id="",this.objectNumber=-1}function M(Qe,Se){this.gState=Qe,this.matrix=Se,this.id="",this.objectNumber=-1}function z(Qe,Se,Pe,He,Ye){if(!(this instanceof z))return new z(Qe,Se,Pe,He,Ye);this.type=Qe==="axial"?2:3,this.coords=Se,this.colors=Pe,M.call(this,He,Ye)}function W(Qe,Se,Pe,He,Ye){if(!(this instanceof W))return new W(Qe,Se,Pe,He,Ye);this.boundingBox=Qe,this.xStep=Se,this.yStep=Pe,this.stream="",this.cloneIndex=0,M.call(this,He,Ye)}function H(Qe){var Se,Pe=typeof arguments[0]=="string"?arguments[0]:"p",He=arguments[1],Ye=arguments[2],ze=arguments[3],$e=[],St=1,ft=16,Ht="S",Er=null;S()(Qe=Qe||{})==="object"&&(Pe=Qe.orientation,He=Qe.unit||He,Ye=Qe.format||Ye,ze=Qe.compress||Qe.compressPdf||ze,(Er=Qe.encryption||null)!==null&&(Er.userPassword=Er.userPassword||"",Er.ownerPassword=Er.ownerPassword||"",Er.userPermissions=Er.userPermissions||[]),St=typeof Qe.userUnit=="number"?Math.abs(Qe.userUnit):1,Qe.precision!==void 0&&(Se=Qe.precision),Qe.floatPrecision!==void 0&&(ft=Qe.floatPrecision),Ht=Qe.defaultPathOperation||"S"),$e=Qe.filters||(ze===!0?["FlateEncode"]:$e),He=He||"mm",Pe=(""+(Pe||"P")).toLowerCase();var Fr=Qe.putOnlyUsedFonts||!1,tn={},Zt={internal:{},__private__:{}};Zt.__private__.PubSub=P;var Rn="1.3",vn=Zt.__private__.getPdfVersion=function(){return Rn};Zt.__private__.setPdfVersion=function(Ct){Rn=Ct};var Un={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]};Zt.__private__.getPageFormats=function(){return Un};var hn=Zt.__private__.getPageFormat=function(Ct){return Un[Ct]};Ye=Ye||"a4";var Wr={COMPAT:"compat",ADVANCED:"advanced"},Kn=Wr.COMPAT;function ei(){this.saveGraphicsState(),xn(new Hi(Ar,0,0,-Ar,0,As()*Ar).toString()+" cm"),this.setFontSize(this.getFontSize()/Ar),Ht="n",Kn=Wr.ADVANCED}function Si(){this.restoreGraphicsState(),Ht="S",Kn=Wr.COMPAT}var Vr=Zt.__private__.combineFontStyleAndFontWeight=function(Ct,zt){if(Ct=="bold"&&zt=="normal"||Ct=="bold"&&zt==400||Ct=="normal"&&zt=="italic"||Ct=="bold"&&zt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return zt&&(Ct=zt==400||zt==="normal"?Ct==="italic"?"italic":"normal":zt!=700&&zt!=="bold"||Ct!=="normal"?(zt==700?"bold":zt)+""+Ct:"bold"),Ct};Zt.advancedAPI=function(Ct){var zt=Kn===Wr.COMPAT;return zt&&ei.call(this),typeof Ct!="function"||(Ct(this),zt&&Si.call(this)),this},Zt.compatAPI=function(Ct){var zt=Kn===Wr.ADVANCED;return zt&&Si.call(this),typeof Ct!="function"||(Ct(this),zt&&ei.call(this)),this},Zt.isAdvancedAPI=function(){return Kn===Wr.ADVANCED};var fn,kn=function(zt){if(Kn!==Wr.ADVANCED)throw new Error(zt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},It=Zt.roundToPrecision=Zt.__private__.roundToPrecision=function(Ct,zt){var gn=Se||zt;if(isNaN(Ct)||isNaN(gn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ct.toFixed(gn).replace(/0+$/,"")};fn=Zt.hpf=Zt.__private__.hpf=typeof ft=="number"?function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.hpf");return It(Ct,ft)}:ft==="smart"?function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.hpf");return It(Ct,Ct>-1&&Ct<1?16:5)}:function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.hpf");return It(Ct,16)};var yt=Zt.f2=Zt.__private__.f2=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.f2");return It(Ct,2)},xt=Zt.__private__.f3=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.f3");return It(Ct,3)},Tt=Zt.scale=Zt.__private__.scale=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.scale");return Kn===Wr.COMPAT?Ct*Ar:Kn===Wr.ADVANCED?Ct:void 0},Lt=function(zt){return Kn===Wr.COMPAT?As()-zt:Kn===Wr.ADVANCED?zt:void 0},_t=function(zt){return Tt(Lt(zt))};Zt.__private__.setPrecision=Zt.setPrecision=function(Ct){typeof parseInt(Ct,10)=="number"&&(Se=parseInt(Ct,10))};var Xt,er="00000000000000000000000000000000",nr=Zt.__private__.getFileId=function(){return er},br=Zt.__private__.setFileId=function(Ct){return er=Ct!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ct)?Ct.toUpperCase():er.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Er!==null&&(ca=new R(Er.userPermissions,Er.userPassword,Er.ownerPassword,er)),er};Zt.setFileId=function(Ct){return br(Ct),this},Zt.getFileId=function(){return nr()};var On=Zt.__private__.convertDateToPDFDate=function(Ct){var zt=Ct.getTimezoneOffset(),gn=zt<0?"+":"-",$n=Math.floor(Math.abs(zt/60)),bi=Math.abs(zt%60),oi=[gn,mn($n),"'",mn(bi),"'"].join("");return["D:",Ct.getFullYear(),mn(Ct.getMonth()+1),mn(Ct.getDate()),mn(Ct.getHours()),mn(Ct.getMinutes()),mn(Ct.getSeconds()),oi].join("")},bn=Zt.__private__.convertPDFDateToDate=function(Ct){var zt=parseInt(Ct.substr(2,4),10),gn=parseInt(Ct.substr(6,2),10)-1,$n=parseInt(Ct.substr(8,2),10),bi=parseInt(Ct.substr(10,2),10),oi=parseInt(Ct.substr(12,2),10),Yi=parseInt(Ct.substr(14,2),10);return new Date(zt,gn,$n,bi,oi,Yi,0)},qn=Zt.__private__.setCreationDate=function(Ct){var zt;if(Ct===void 0&&(Ct=new Date),Ct instanceof Date)zt=On(Ct);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(Ct))throw new Error("Invalid argument passed to jsPDF.setCreationDate");zt=Ct}return Xt=zt},an=Zt.__private__.getCreationDate=function(Ct){var zt=Xt;return Ct==="jsDate"&&(zt=bn(Xt)),zt};Zt.setCreationDate=function(Ct){return qn(Ct),this},Zt.getCreationDate=function(Ct){return an(Ct)};var _r,mn=Zt.__private__.padd2=function(Ct){return("0"+parseInt(Ct)).slice(-2)},In=Zt.__private__.padd2Hex=function(Ct){return("00"+(Ct=Ct.toString())).substr(Ct.length)},Wn=0,Jn=[],Ei=[],yi=0,mi=[],Vi=[],la=!1,Gi=Ei,ia=function(){Wn=0,yi=0,Ei=[],Jn=[],mi=[],va=ga(),Ia=ga()};Zt.__private__.setCustomOutputDestination=function(Ct){la=!0,Gi=Ct};var $i=function(zt){la||(Gi=zt)};Zt.__private__.resetCustomOutputDestination=function(){la=!1,Gi=Ei};var xn=Zt.__private__.out=function(Ct){return Ct=Ct.toString(),yi+=Ct.length+1,Gi.push(Ct),Gi},Ti=Zt.__private__.write=function(Ct){return xn(arguments.length===1?Ct.toString():Array.prototype.join.call(arguments," "))},Ji=Zt.__private__.getArrayBuffer=function(Ct){for(var zt=Ct.length,gn=new ArrayBuffer(zt),$n=new Uint8Array(gn);zt--;)$n[zt]=Ct.charCodeAt(zt);return gn},Wi=[["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]];Zt.__private__.getStandardFonts=function(){return Wi};var qi=Qe.fontSize||16;Zt.__private__.setFontSize=Zt.setFontSize=function(Ct){return qi=Kn===Wr.ADVANCED?Ct/Ar:Ct,this};var Ir,ar=Zt.__private__.getFontSize=Zt.getFontSize=function(){return Kn===Wr.COMPAT?qi:qi*Ar},nn=Qe.R2L||!1;Zt.__private__.setR2L=Zt.setR2L=function(Ct){return nn=Ct,this},Zt.__private__.getR2L=Zt.getR2L=function(){return nn};var Gt,wr=Zt.__private__.setZoomMode=function(Ct){var zt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ct))Ir=Ct;else if(isNaN(Ct)){if(zt.indexOf(Ct)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ct+'" is not recognized.');Ir=Ct}else Ir=parseInt(Ct,10)};Zt.__private__.getZoomMode=function(){return Ir};var Pr,Jr=Zt.__private__.setPageMode=function(Ct){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ct)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ct+'" is not recognized.');Gt=Ct};Zt.__private__.getPageMode=function(){return Gt};var wn=Zt.__private__.setLayoutMode=function(Ct){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ct)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ct+'" is not recognized.');Pr=Ct};Zt.__private__.getLayoutMode=function(){return Pr},Zt.__private__.setDisplayMode=Zt.setDisplayMode=function(Ct,zt,gn){return wr(Ct),wn(zt),Jr(gn),this};var bt={title:"",subject:"",author:"",keywords:"",creator:""};Zt.__private__.getDocumentProperty=function(Ct){if(Object.keys(bt).indexOf(Ct)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return bt[Ct]},Zt.__private__.getDocumentProperties=function(){return bt},Zt.__private__.setDocumentProperties=Zt.setProperties=Zt.setDocumentProperties=function(Ct){for(var zt in bt)bt.hasOwnProperty(zt)&&Ct[zt]&&(bt[zt]=Ct[zt]);return this},Zt.__private__.setDocumentProperty=function(Ct,zt){if(Object.keys(bt).indexOf(Ct)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return bt[Ct]=zt};var mr,Ar,Ur,un,An,ln={},Hn={},Ln=[],ni={},Ai={},ii={},_i={},Ri=null,ji=0,wi=[],Ii=new P(Zt),Oi=Qe.hotfixes||[],Ui={},Zi={},ma=[],Hi=function Ct(zt,gn,$n,bi,oi,Yi){if(!(this instanceof Ct))return new Ct(zt,gn,$n,bi,oi,Yi);isNaN(zt)&&(zt=1),isNaN(gn)&&(gn=0),isNaN($n)&&($n=0),isNaN(bi)&&(bi=1),isNaN(oi)&&(oi=0),isNaN(Yi)&&(Yi=0),this._matrix=[zt,gn,$n,bi,oi,Yi]};Object.defineProperty(Hi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(zt){this._matrix[0]=zt}}),Object.defineProperty(Hi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(zt){this._matrix[1]=zt}}),Object.defineProperty(Hi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(zt){this._matrix[2]=zt}}),Object.defineProperty(Hi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(zt){this._matrix[3]=zt}}),Object.defineProperty(Hi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(zt){this._matrix[4]=zt}}),Object.defineProperty(Hi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(zt){this._matrix[5]=zt}}),Object.defineProperty(Hi.prototype,"a",{get:function(){return this._matrix[0]},set:function(zt){this._matrix[0]=zt}}),Object.defineProperty(Hi.prototype,"b",{get:function(){return this._matrix[1]},set:function(zt){this._matrix[1]=zt}}),Object.defineProperty(Hi.prototype,"c",{get:function(){return this._matrix[2]},set:function(zt){this._matrix[2]=zt}}),Object.defineProperty(Hi.prototype,"d",{get:function(){return this._matrix[3]},set:function(zt){this._matrix[3]=zt}}),Object.defineProperty(Hi.prototype,"e",{get:function(){return this._matrix[4]},set:function(zt){this._matrix[4]=zt}}),Object.defineProperty(Hi.prototype,"f",{get:function(){return this._matrix[5]},set:function(zt){this._matrix[5]=zt}}),Object.defineProperty(Hi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Hi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Hi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Hi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Hi.prototype.join=function(Ct){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(fn).join(Ct)},Hi.prototype.multiply=function(Ct){var zt=Ct.sx*this.sx+Ct.shy*this.shx,gn=Ct.sx*this.shy+Ct.shy*this.sy,$n=Ct.shx*this.sx+Ct.sy*this.shx,bi=Ct.shx*this.shy+Ct.sy*this.sy,oi=Ct.tx*this.sx+Ct.ty*this.shx+this.tx,Yi=Ct.tx*this.shy+Ct.ty*this.sy+this.ty;return new Hi(zt,gn,$n,bi,oi,Yi)},Hi.prototype.decompose=function(){var Ct=this.sx,zt=this.shy,gn=this.shx,$n=this.sy,bi=this.tx,oi=this.ty,Yi=Math.sqrt(Ct*Ct+zt*zt),ha=(Ct/=Yi)*gn+(zt/=Yi)*$n;gn-=Ct*ha,$n-=zt*ha;var Pa=Math.sqrt(gn*gn+$n*$n);return ha/=Pa,Ct*($n/=Pa)<zt*(gn/=Pa)&&(Ct=-Ct,zt=-zt,ha=-ha,Yi=-Yi),{scale:new Hi(Yi,0,0,Pa,0,0),translate:new Hi(1,0,0,1,bi,oi),rotate:new Hi(Ct,zt,-zt,Ct,0,0),skew:new Hi(1,0,ha,1,0,0)}},Hi.prototype.toString=function(Ct){return this.join(" ")},Hi.prototype.inversed=function(){var Ct=this.sx,zt=this.shy,gn=this.shx,$n=this.sy,bi=this.tx,oi=this.ty,Yi=1/(Ct*$n-zt*gn),ha=$n*Yi,Pa=-zt*Yi,Co=-gn*Yi,vo=Ct*Yi;return new Hi(ha,Pa,Co,vo,-ha*bi-Co*oi,-Pa*bi-vo*oi)},Hi.prototype.applyToPoint=function(Ct){var zt=Ct.x*this.sx+Ct.y*this.shx+this.tx,gn=Ct.x*this.shy+Ct.y*this.sy+this.ty;return new ks(zt,gn)},Hi.prototype.applyToRectangle=function(Ct){var zt=this.applyToPoint(Ct),gn=this.applyToPoint(new ks(Ct.x+Ct.w,Ct.y+Ct.h));return new ps(zt.x,zt.y,gn.x-zt.x,gn.y-zt.y)},Hi.prototype.clone=function(){var Ct=this.sx,zt=this.shy,gn=this.shx,$n=this.sy,bi=this.tx,oi=this.ty;return new Hi(Ct,zt,gn,$n,bi,oi)},Zt.Matrix=Hi;var xa=Zt.matrixMult=function(Ct,zt){return zt.multiply(Ct)},Ea=new Hi(1,0,0,1,0,0);Zt.unitMatrix=Zt.identityMatrix=Ea;var ta=function(zt,gn){if(!Ai[zt]){var $n=(gn instanceof z?"Sh":"P")+(Object.keys(ni).length+1).toString(10);gn.id=$n,Ai[zt]=$n,ni[$n]=gn,Ii.publish("addPattern",gn)}};Zt.ShadingPattern=z,Zt.TilingPattern=W,Zt.addShadingPattern=function(Ct,zt){return kn("addShadingPattern()"),ta(Ct,zt),this},Zt.beginTilingPattern=function(Ct){kn("beginTilingPattern()"),tl(Ct.boundingBox[0],Ct.boundingBox[1],Ct.boundingBox[2]-Ct.boundingBox[0],Ct.boundingBox[3]-Ct.boundingBox[1],Ct.matrix)},Zt.endTilingPattern=function(Ct,zt){kn("endTilingPattern()"),zt.stream=Vi[_r].join(`
`),ta(Ct,zt),Ii.publish("endTilingPattern",zt),ma.pop().restore()};var ra=Zt.__private__.newObject=function(){var Ct=ga();return sa(Ct,!0),Ct},ga=Zt.__private__.newObjectDeferred=function(){return Wn++,Jn[Wn]=function(){return yi},Wn},sa=function(zt,gn){return gn=typeof gn=="boolean"&&gn,Jn[zt]=yi,gn&&xn(zt+" 0 obj"),zt},Ba=Zt.__private__.newAdditionalObject=function(){var Ct={objId:ga(),content:""};return mi.push(Ct),Ct},va=ga(),Ia=ga(),za=Zt.__private__.decodeColorString=function(Ct){var zt=Ct.split(" ");if(zt.length!==2||zt[1]!=="g"&&zt[1]!=="G")zt.length===5&&(zt[4]==="k"||zt[4]==="K")&&(zt=[(1-zt[0])*(1-zt[3]),(1-zt[1])*(1-zt[3]),(1-zt[2])*(1-zt[3]),"r"]);else{var gn=parseFloat(zt[0]);zt=[gn,gn,gn,"r"]}for(var $n="#",bi=0;bi<3;bi++)$n+=("0"+Math.floor(255*parseFloat(zt[bi])).toString(16)).slice(-2);return $n},Va=Zt.__private__.encodeColorString=function(Ct){var zt;typeof Ct=="string"&&(Ct={ch1:Ct});var gn=Ct.ch1,$n=Ct.ch2,bi=Ct.ch3,oi=Ct.ch4,Yi=Ct.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof gn=="string"&&gn.charAt(0)!=="#"){var ha=new l(gn);if(ha.ok)gn=ha.toHex();else if(!/^\d*\.?\d*$/.test(gn))throw new Error('Invalid color "'+gn+'" passed to jsPDF.encodeColorString.')}if(typeof gn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(gn)&&(gn="#"+gn[1]+gn[1]+gn[2]+gn[2]+gn[3]+gn[3]),typeof gn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(gn)){var Pa=parseInt(gn.substr(1),16);gn=Pa>>16&255,$n=Pa>>8&255,bi=255&Pa}if($n===void 0||oi===void 0&&gn===$n&&$n===bi)if(typeof gn=="string")zt=gn+" "+Yi[0];else switch(Ct.precision){case 2:zt=yt(gn/255)+" "+Yi[0];break;case 3:default:zt=xt(gn/255)+" "+Yi[0]}else if(oi===void 0||S()(oi)==="object"){if(oi&&!isNaN(oi.a)&&oi.a===0)return zt=["1.","1.","1.",Yi[1]].join(" ");if(typeof gn=="string")zt=[gn,$n,bi,Yi[1]].join(" ");else switch(Ct.precision){case 2:zt=[yt(gn/255),yt($n/255),yt(bi/255),Yi[1]].join(" ");break;default:case 3:zt=[xt(gn/255),xt($n/255),xt(bi/255),Yi[1]].join(" ")}}else if(typeof gn=="string")zt=[gn,$n,bi,oi,Yi[2]].join(" ");else switch(Ct.precision){case 2:zt=[yt(gn),yt($n),yt(bi),yt(oi),Yi[2]].join(" ");break;case 3:default:zt=[xt(gn),xt($n),xt(bi),xt(oi),Yi[2]].join(" ")}return zt},Ya=Zt.__private__.getFilters=function(){return $e},Bi=Zt.__private__.putStream=function(Ct){var zt=(Ct=Ct||{}).data||"",gn=Ct.filters||Ya(),$n=Ct.alreadyAppliedFilters||[],bi=Ct.addLength1||!1,oi=zt.length,Yi=Ct.objectId,ha=function(Ua){return Ua};if(Er!==null&&Yi===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Er!==null&&(ha=ca.encryptor(Yi,0));var Pa={};gn===!0&&(gn=["FlateEncode"]);var Co=Ct.additionalKeyValues||[],vo=(Pa=H.API.processDataByFilters!==void 0?H.API.processDataByFilters(zt,gn):{data:zt,reverseChain:[]}).reverseChain+(Array.isArray($n)?$n.join(" "):$n.toString());if(Pa.data.length!==0&&(Co.push({key:"Length",value:Pa.data.length}),bi===!0&&Co.push({key:"Length1",value:oi})),vo.length!=0)if(vo.split("/").length-1==1)Co.push({key:"Filter",value:vo});else{Co.push({key:"Filter",value:"["+vo+"]"});for(var ko=0;ko<Co.length;ko+=1)if(Co[ko].key==="DecodeParms"){for(var ls=[],jo=0;jo<Pa.reverseChain.split("/").length-1;jo+=1)ls.push("null");ls.push(Co[ko].value),Co[ko].value="["+ls.join(" ")+"]"}}xn("<<");for(var Zo=0;Zo<Co.length;Zo++)xn("/"+Co[Zo].key+" "+Co[Zo].value);xn(">>"),Pa.data.length!==0&&(xn("stream"),xn(ha(Pa.data)),xn("endstream"))},ro=Zt.__private__.putPage=function(Ct){var zt=Ct.number,gn=Ct.data,$n=Ct.objId,bi=Ct.contentsObjId;sa($n,!0),xn("<</Type /Page"),xn("/Parent "+Ct.rootDictionaryObjId+" 0 R"),xn("/Resources "+Ct.resourceDictionaryObjId+" 0 R"),xn("/MediaBox ["+parseFloat(fn(Ct.mediaBox.bottomLeftX))+" "+parseFloat(fn(Ct.mediaBox.bottomLeftY))+" "+fn(Ct.mediaBox.topRightX)+" "+fn(Ct.mediaBox.topRightY)+"]"),Ct.cropBox!==null&&xn("/CropBox ["+fn(Ct.cropBox.bottomLeftX)+" "+fn(Ct.cropBox.bottomLeftY)+" "+fn(Ct.cropBox.topRightX)+" "+fn(Ct.cropBox.topRightY)+"]"),Ct.bleedBox!==null&&xn("/BleedBox ["+fn(Ct.bleedBox.bottomLeftX)+" "+fn(Ct.bleedBox.bottomLeftY)+" "+fn(Ct.bleedBox.topRightX)+" "+fn(Ct.bleedBox.topRightY)+"]"),Ct.trimBox!==null&&xn("/TrimBox ["+fn(Ct.trimBox.bottomLeftX)+" "+fn(Ct.trimBox.bottomLeftY)+" "+fn(Ct.trimBox.topRightX)+" "+fn(Ct.trimBox.topRightY)+"]"),Ct.artBox!==null&&xn("/ArtBox ["+fn(Ct.artBox.bottomLeftX)+" "+fn(Ct.artBox.bottomLeftY)+" "+fn(Ct.artBox.topRightX)+" "+fn(Ct.artBox.topRightY)+"]"),typeof Ct.userUnit=="number"&&Ct.userUnit!==1&&xn("/UserUnit "+Ct.userUnit),Ii.publish("putPage",{objId:$n,pageContext:wi[zt],pageNumber:zt,page:gn}),xn("/Contents "+bi+" 0 R"),xn(">>"),xn("endobj");var oi=gn.join(`
`);return Kn===Wr.ADVANCED&&(oi+=`
Q`),sa(bi,!0),Bi({data:oi,filters:Ya(),objectId:bi}),xn("endobj"),$n},lo=Zt.__private__.putPages=function(){var Ct,zt,gn=[];for(Ct=1;Ct<=ji;Ct++)wi[Ct].objId=ga(),wi[Ct].contentsObjId=ga();for(Ct=1;Ct<=ji;Ct++)gn.push(ro({number:Ct,data:Vi[Ct],objId:wi[Ct].objId,contentsObjId:wi[Ct].contentsObjId,mediaBox:wi[Ct].mediaBox,cropBox:wi[Ct].cropBox,bleedBox:wi[Ct].bleedBox,trimBox:wi[Ct].trimBox,artBox:wi[Ct].artBox,userUnit:wi[Ct].userUnit,rootDictionaryObjId:va,resourceDictionaryObjId:Ia}));sa(va,!0),xn("<</Type /Pages");var $n="/Kids [";for(zt=0;zt<ji;zt++)$n+=gn[zt]+" 0 R ";xn($n+"]"),xn("/Count "+ji),xn(">>"),xn("endobj"),Ii.publish("postPutPages")},no=function(zt){Ii.publish("putFont",{font:zt,out:xn,newObject:ra,putStream:Bi}),zt.isAlreadyPutted!==!0&&(zt.objectNumber=ra(),xn("<<"),xn("/Type /Font"),xn("/BaseFont /"+B(zt.postScriptName)),xn("/Subtype /Type1"),typeof zt.encoding=="string"&&xn("/Encoding /"+zt.encoding),xn("/FirstChar 32"),xn("/LastChar 255"),xn(">>"),xn("endobj"))},co=function(){for(var zt in ln)ln.hasOwnProperty(zt)&&(Fr===!1||Fr===!0&&tn.hasOwnProperty(zt))&&no(ln[zt])},To=function(zt){zt.objectNumber=ra();var gn=[];gn.push({key:"Type",value:"/XObject"}),gn.push({key:"Subtype",value:"/Form"}),gn.push({key:"BBox",value:"["+[fn(zt.x),fn(zt.y),fn(zt.x+zt.width),fn(zt.y+zt.height)].join(" ")+"]"}),gn.push({key:"Matrix",value:"["+zt.matrix.toString()+"]"});var $n=zt.pages[1].join(`
`);Bi({data:$n,additionalKeyValues:gn,objectId:zt.objectNumber}),xn("endobj")},Ga=function(){for(var zt in Ui)Ui.hasOwnProperty(zt)&&To(Ui[zt])},Po=function(zt,gn){var $n,bi=[],oi=1/(gn-1);for($n=0;$n<1;$n+=oi)bi.push($n);if(bi.push(1),zt[0].offset!=0){var Yi={offset:0,color:zt[0].color};zt.unshift(Yi)}if(zt[zt.length-1].offset!=1){var ha={offset:1,color:zt[zt.length-1].color};zt.push(ha)}for(var Pa="",Co=0,vo=0;vo<bi.length;vo++){for($n=bi[vo];$n>zt[Co+1].offset;)Co++;var ko=zt[Co].offset,ls=($n-ko)/(zt[Co+1].offset-ko),jo=zt[Co].color,Zo=zt[Co+1].color;Pa+=In(Math.round((1-ls)*jo[0]+ls*Zo[0]).toString(16))+In(Math.round((1-ls)*jo[1]+ls*Zo[1]).toString(16))+In(Math.round((1-ls)*jo[2]+ls*Zo[2]).toString(16))}return Pa.trim()},uo=function(zt,gn){gn||(gn=21);var $n=ra(),bi=Po(zt.colors,gn),oi=[];oi.push({key:"FunctionType",value:"0"}),oi.push({key:"Domain",value:"[0.0 1.0]"}),oi.push({key:"Size",value:"["+gn+"]"}),oi.push({key:"BitsPerSample",value:"8"}),oi.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),oi.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Bi({data:bi,additionalKeyValues:oi,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:$n}),xn("endobj"),zt.objectNumber=ra(),xn("<< /ShadingType "+zt.type),xn("/ColorSpace /DeviceRGB");var Yi="/Coords ["+fn(parseFloat(zt.coords[0]))+" "+fn(parseFloat(zt.coords[1]))+" ";zt.type===2?Yi+=fn(parseFloat(zt.coords[2]))+" "+fn(parseFloat(zt.coords[3])):Yi+=fn(parseFloat(zt.coords[2]))+" "+fn(parseFloat(zt.coords[3]))+" "+fn(parseFloat(zt.coords[4]))+" "+fn(parseFloat(zt.coords[5])),xn(Yi+="]"),zt.matrix&&xn("/Matrix ["+zt.matrix.toString()+"]"),xn("/Function "+$n+" 0 R"),xn("/Extend [true true]"),xn(">>"),xn("endobj")},ho=function(zt,gn){var $n=ga(),bi=ra();gn.push({resourcesOid:$n,objectOid:bi}),zt.objectNumber=bi;var oi=[];oi.push({key:"Type",value:"/Pattern"}),oi.push({key:"PatternType",value:"1"}),oi.push({key:"PaintType",value:"1"}),oi.push({key:"TilingType",value:"1"}),oi.push({key:"BBox",value:"["+zt.boundingBox.map(fn).join(" ")+"]"}),oi.push({key:"XStep",value:fn(zt.xStep)}),oi.push({key:"YStep",value:fn(zt.yStep)}),oi.push({key:"Resources",value:$n+" 0 R"}),zt.matrix&&oi.push({key:"Matrix",value:"["+zt.matrix.toString()+"]"}),Bi({data:zt.stream,additionalKeyValues:oi,objectId:zt.objectNumber}),xn("endobj")},zo=function(zt){var gn;for(gn in ni)ni.hasOwnProperty(gn)&&(ni[gn]instanceof z?uo(ni[gn]):ni[gn]instanceof W&&ho(ni[gn],zt))},Oa=function(zt){for(var gn in zt.objectNumber=ra(),xn("<<"),zt)switch(gn){case"opacity":xn("/ca "+yt(zt[gn]));break;case"stroke-opacity":xn("/CA "+yt(zt[gn]))}xn(">>"),xn("endobj")},mo=function(){var zt;for(zt in ii)ii.hasOwnProperty(zt)&&Oa(ii[zt])},Do=function(){for(var zt in xn("/XObject <<"),Ui)Ui.hasOwnProperty(zt)&&Ui[zt].objectNumber>=0&&xn("/"+zt+" "+Ui[zt].objectNumber+" 0 R");Ii.publish("putXobjectDict"),xn(">>")},Qo=function(){ca.oid=ra(),xn("<<"),xn("/Filter /Standard"),xn("/V "+ca.v),xn("/R "+ca.r),xn("/U <"+ca.toHexString(ca.U)+">"),xn("/O <"+ca.toHexString(ca.O)+">"),xn("/P "+ca.P),xn(">>"),xn("endobj")},xo=function(){for(var zt in xn("/Font <<"),ln)ln.hasOwnProperty(zt)&&(Fr===!1||Fr===!0&&tn.hasOwnProperty(zt))&&xn("/"+zt+" "+ln[zt].objectNumber+" 0 R");xn(">>")},Fo=function(){if(Object.keys(ni).length>0){for(var zt in xn("/Shading <<"),ni)ni.hasOwnProperty(zt)&&ni[zt]instanceof z&&ni[zt].objectNumber>=0&&xn("/"+zt+" "+ni[zt].objectNumber+" 0 R");Ii.publish("putShadingPatternDict"),xn(">>")}},Ho=function(zt){if(Object.keys(ni).length>0){for(var gn in xn("/Pattern <<"),ni)ni.hasOwnProperty(gn)&&ni[gn]instanceof Zt.TilingPattern&&ni[gn].objectNumber>=0&&ni[gn].objectNumber<zt&&xn("/"+gn+" "+ni[gn].objectNumber+" 0 R");Ii.publish("putTilingPatternDict"),xn(">>")}},go=function(){if(Object.keys(ii).length>0){var zt;for(zt in xn("/ExtGState <<"),ii)ii.hasOwnProperty(zt)&&ii[zt].objectNumber>=0&&xn("/"+zt+" "+ii[zt].objectNumber+" 0 R");Ii.publish("putGStateDict"),xn(">>")}},qa=function(zt){sa(zt.resourcesOid,!0),xn("<<"),xn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),xo(),Fo(),Ho(zt.objectOid),go(),Do(),xn(">>"),xn("endobj")},_a=function(){var zt=[];co(),mo(),Ga(),zo(zt),Ii.publish("putResources"),zt.forEach(qa),qa({resourcesOid:Ia,objectOid:Number.MAX_SAFE_INTEGER}),Ii.publish("postPutResources")},at=function(){Ii.publish("putAdditionalObjects");for(var zt=0;zt<mi.length;zt++){var gn=mi[zt];sa(gn.objId,!0),xn(gn.content),xn("endobj")}Ii.publish("postPutAdditionalObjects")},dr=function(zt){Hn[zt.fontName]=Hn[zt.fontName]||{},Hn[zt.fontName][zt.fontStyle]=zt.id},Kr=function(zt,gn,$n,bi,oi){var Yi={id:"F"+(Object.keys(ln).length+1).toString(10),postScriptName:zt,fontName:gn,fontStyle:$n,encoding:bi,isStandardFont:oi||!1,metadata:{}};return Ii.publish("addFont",{font:Yi,instance:this}),ln[Yi.id]=Yi,dr(Yi),Yi.id},Br=function(zt){for(var gn=0,$n=Wi.length;gn<$n;gn++){var bi=Kr.call(this,zt[gn][0],zt[gn][1],zt[gn][2],Wi[gn][3],!0);Fr===!1&&(tn[bi]=!0);var oi=zt[gn][0].split("-");dr({id:bi,fontName:oi[0],fontStyle:oi[1]||""})}Ii.publish("addFonts",{fonts:ln,dictionary:Hn})},Pn=function(zt){return zt.foo=function(){try{return zt.apply(this,arguments)}catch(bi){var gn=bi.stack||"";~gn.indexOf(" at ")&&(gn=gn.split(" at ")[1]);var $n="Error in function "+gn.split(`
`)[0].split("<")[0]+": "+bi.message;if(!m.console)throw new Error($n);m.console.error($n,bi),m.alert&&alert($n)}},zt.foo.bar=zt,zt.foo},$r=function(zt,gn){var $n,bi,oi,Yi,ha,Pa,Co,vo,ko;if(oi=(gn=gn||{}).sourceEncoding||"Unicode",ha=gn.outputEncoding,(gn.autoencode||ha)&&ln[mr].metadata&&ln[mr].metadata[oi]&&ln[mr].metadata[oi].encoding&&(Yi=ln[mr].metadata[oi].encoding,!ha&&ln[mr].encoding&&(ha=ln[mr].encoding),!ha&&Yi.codePages&&(ha=Yi.codePages[0]),typeof ha=="string"&&(ha=Yi[ha]),ha)){for(Co=!1,Pa=[],$n=0,bi=zt.length;$n<bi;$n++)(vo=ha[zt.charCodeAt($n)])?Pa.push(String.fromCharCode(vo)):Pa.push(zt[$n]),Pa[$n].charCodeAt(0)>>8&&(Co=!0);zt=Pa.join("")}for($n=zt.length;Co===void 0&&$n!==0;)zt.charCodeAt($n-1)>>8&&(Co=!0),$n--;if(!Co)return zt;for(Pa=gn.noBOM?[]:[254,255],$n=0,bi=zt.length;$n<bi;$n++){if((ko=(vo=zt.charCodeAt($n))>>8)>>8)throw new Error("Character at position "+$n+" of string '"+zt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Pa.push(ko),Pa.push(vo-(ko<<8))}return String.fromCharCode.apply(void 0,Pa)},Mr=Zt.__private__.pdfEscape=Zt.pdfEscape=function(Ct,zt){return $r(Ct,zt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gn=Zt.__private__.beginPage=function(Ct){Vi[++ji]=[],wi[ji]={objId:0,contentsObjId:0,userUnit:Number(St),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ct[0]),topRightY:Number(Ct[1])}},Qn(ji),$i(Vi[_r])},zr=function(zt,gn){var $n,bi,oi;switch(Pe=gn||Pe,typeof zt=="string"&&($n=hn(zt.toLowerCase()),Array.isArray($n)&&(bi=$n[0],oi=$n[1])),Array.isArray(zt)&&(bi=zt[0]*Ar,oi=zt[1]*Ar),isNaN(bi)&&(bi=Ye[0],oi=Ye[1]),(bi>14400||oi>14400)&&(d.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),bi=Math.min(14400,bi),oi=Math.min(14400,oi)),Ye=[bi,oi],Pe.substr(0,1)){case"l":oi>bi&&(Ye=[oi,bi]);break;case"p":bi>oi&&(Ye=[oi,bi])}Gn(Ye),Jo(Xa),xn(ns),cs!==0&&xn(cs+" J"),_s!==0&&xn(_s+" j"),Ii.publish("addPage",{pageNumber:ji})},Nn=function(zt){zt>0&&zt<=ji&&(Vi.splice(zt,1),wi.splice(zt,1),ji--,_r>ji&&(_r=ji),this.setPage(_r))},Qn=function(zt){zt>0&&zt<=ji&&(_r=zt)},Zn=Zt.__private__.getNumberOfPages=Zt.getNumberOfPages=function(){return Vi.length-1},Yn=function(zt,gn,$n){var bi,oi=void 0;return $n=$n||{},zt=zt!==void 0?zt:ln[mr].fontName,gn=gn!==void 0?gn:ln[mr].fontStyle,bi=zt.toLowerCase(),Hn[bi]!==void 0&&Hn[bi][gn]!==void 0?oi=Hn[bi][gn]:Hn[zt]!==void 0&&Hn[zt][gn]!==void 0?oi=Hn[zt][gn]:$n.disableWarning===!1&&d.warn("Unable to look up font label for font '"+zt+"', '"+gn+"'. Refer to getFontList() for available fonts."),oi||$n.noFallback||(oi=Hn.times[gn])==null&&(oi=Hn.times.normal),oi},ui=Zt.__private__.putInfo=function(){var Ct=ra(),zt=function(bi){return bi};for(var gn in Er!==null&&(zt=ca.encryptor(Ct,0)),xn("<<"),xn("/Producer ("+Mr(zt("jsPDF "+H.version))+")"),bt)bt.hasOwnProperty(gn)&&bt[gn]&&xn("/"+gn.substr(0,1).toUpperCase()+gn.substr(1)+" ("+Mr(zt(bt[gn]))+")");xn("/CreationDate ("+Mr(zt(Xt))+")"),xn(">>"),xn("endobj")},ai=Zt.__private__.putCatalog=function(Ct){var zt=(Ct=Ct||{}).rootDictionaryObjId||va;switch(ra(),xn("<<"),xn("/Type /Catalog"),xn("/Pages "+zt+" 0 R"),Ir||(Ir="fullwidth"),Ir){case"fullwidth":xn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":xn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":xn("/OpenAction [3 0 R /Fit]");break;case"original":xn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var gn=""+Ir;gn.substr(gn.length-1)==="%"&&(Ir=parseInt(Ir)/100),typeof Ir=="number"&&xn("/OpenAction [3 0 R /XYZ null null "+yt(Ir)+"]")}switch(Pr||(Pr="continuous"),Pr){case"continuous":xn("/PageLayout /OneColumn");break;case"single":xn("/PageLayout /SinglePage");break;case"two":case"twoleft":xn("/PageLayout /TwoColumnLeft");break;case"tworight":xn("/PageLayout /TwoColumnRight")}Gt&&xn("/PageMode /"+Gt),Ii.publish("putCatalog"),xn(">>"),xn("endobj")},hi=Zt.__private__.putTrailer=function(){xn("trailer"),xn("<<"),xn("/Size "+(Wn+1)),xn("/Root "+Wn+" 0 R"),xn("/Info "+(Wn-1)+" 0 R"),Er!==null&&xn("/Encrypt "+ca.oid+" 0 R"),xn("/ID [ <"+er+"> <"+er+"> ]"),xn(">>")},pi=Zt.__private__.putHeader=function(){xn("%PDF-"+Rn),xn("%\xBA\xDF\xAC\xE0")},zi=Zt.__private__.putXRef=function(){var Ct="0000000000";xn("xref"),xn("0 "+(Wn+1)),xn("0000000000 65535 f ");for(var zt=1;zt<=Wn;zt++)typeof Jn[zt]=="function"?xn((Ct+Jn[zt]()).slice(-10)+" 00000 n "):Jn[zt]!==void 0?xn((Ct+Jn[zt]).slice(-10)+" 00000 n "):xn("0000000000 00000 n ")},Ci=Zt.__private__.buildDocument=function(){ia(),$i(Ei),Ii.publish("buildDocument"),pi(),lo(),at(),_a(),Er!==null&&Qo(),ui(),ai();var Ct=yi;return zi(),hi(),xn("startxref"),xn(""+Ct),xn("%%EOF"),$i(Vi[_r]),Ei.join(`
`)},na=Zt.__private__.getBlob=function(Ct){return new Blob([Ji(Ct)],{type:"application/pdf"})},La=Zt.output=Zt.__private__.output=Pn(function(Ct,zt){switch(typeof(zt=zt||{})=="string"?zt={filename:zt}:zt.filename=zt.filename||"generated.pdf",Ct){case void 0:return Ci();case"save":Zt.save(zt.filename);break;case"arraybuffer":return Ji(Ci());case"blob":return na(Ci());case"bloburi":case"bloburl":if(m.URL!==void 0&&typeof m.URL.createObjectURL=="function")return m.URL&&m.URL.createObjectURL(na(Ci()))||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 gn="",$n=Ci();try{gn=a($n)}catch(jo){gn=a(unescape(encodeURIComponent($n)))}return"data:application/pdf;filename="+zt.filename+";base64,"+gn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var bi="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",oi=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';zt.pdfObjectUrl&&(bi=zt.pdfObjectUrl,oi="");var Yi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+bi+'"'+oi+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(zt)+");</script></body></html>",ha=m.open();return ha!==null&&ha.document.write(Yi),ha}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Pa='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(zt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+zt.filename+'" width="500px" height="400px" /></body></html>',Co=m.open();if(Co!==null){Co.document.write(Pa);var vo=this;Co.document.documentElement.querySelector("#pdfViewer").onload=function(){Co.document.title=zt.filename,Co.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(vo.output("bloburl"))}}return Co}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 ko='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",zt)+'"></iframe></body></html>',ls=m.open();if(ls!==null&&(ls.document.write(ko),ls.document.title=zt.filename),ls||typeof safari=="undefined")return ls;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",zt);default:return null}}),pa=function(zt){return Array.isArray(Oi)===!0&&Oi.indexOf(zt)>-1};switch(He){case"pt":Ar=1;break;case"mm":Ar=72/25.4;break;case"cm":Ar=72/2.54;break;case"in":Ar=72;break;case"px":Ar=pa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ar=12;break;case"ex":Ar=6;break;default:if(typeof He!="number")throw new Error("Invalid unit: "+He);Ar=He}var ca=null;qn(),br();var wa=function(zt){return Er!==null?ca.encryptor(zt,0):function(gn){return gn}},Ca=Zt.__private__.getPageInfo=Zt.getPageInfo=function(Ct){if(isNaN(Ct)||Ct%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:wi[Ct].objId,pageNumber:Ct,pageContext:wi[Ct]}},No=Zt.__private__.getPageInfoByObjId=function(Ct){if(isNaN(Ct)||Ct%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var zt in wi)if(wi[zt].objId===Ct)break;return Ca(zt)},fo=Zt.__private__.getCurrentPageInfo=Zt.getCurrentPageInfo=function(){return{objId:wi[_r].objId,pageNumber:_r,pageContext:wi[_r]}};Zt.addPage=function(){return zr.apply(this,arguments),this},Zt.setPage=function(){return Qn.apply(this,arguments),$i.call(this,Vi[_r]),this},Zt.insertPage=function(Ct){return this.addPage(),this.movePage(_r,Ct),this},Zt.movePage=function(Ct,zt){var gn,$n;if(Ct>zt){gn=Vi[Ct],$n=wi[Ct];for(var bi=Ct;bi>zt;bi--)Vi[bi]=Vi[bi-1],wi[bi]=wi[bi-1];Vi[zt]=gn,wi[zt]=$n,this.setPage(zt)}else if(Ct<zt){gn=Vi[Ct],$n=wi[Ct];for(var oi=Ct;oi<zt;oi++)Vi[oi]=Vi[oi+1],wi[oi]=wi[oi+1];Vi[zt]=gn,wi[zt]=$n,this.setPage(zt)}return this},Zt.deletePage=function(){return Nn.apply(this,arguments),this},Zt.__private__.text=Zt.text=function(Ct,zt,gn,$n,bi){var oi,Yi,ha,Pa,Co,vo,ko,ls,jo,Zo=($n=$n||{}).scope||this;if(typeof Ct=="number"&&typeof zt=="number"&&(typeof gn=="string"||Array.isArray(gn))){var ts=gn;gn=zt,zt=Ct,Ct=ts}if(arguments[3]instanceof Hi==!1?(ha=arguments[4],Pa=arguments[5],S()(ko=arguments[3])==="object"&&ko!==null||(typeof ha=="string"&&(Pa=ha,ha=null),typeof ko=="string"&&(Pa=ko,ko=null),typeof ko=="number"&&(ha=ko,ko=null),$n={flags:ko,angle:ha,align:Pa})):(kn("The transform parameter of text() with a Matrix value"),jo=bi),isNaN(zt)||isNaN(gn)||Ct==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ct.length===0)return Zo;var Ua="",Oo=!1,as=typeof $n.lineHeightFactor=="number"?$n.lineHeightFactor:to,Ul=Zo.internal.scaleFactor;function vl(zs){return zs=zs.split(" ").join(Array($n.TabLen||9).join(" ")),Mr(zs,ko)}function Qs(zs){for(var Cs,Vs=zs.concat(),Ts=[],ul=Vs.length;ul--;)typeof(Cs=Vs.shift())=="string"?Ts.push(Cs):Array.isArray(zs)&&(Cs.length===1||Cs[1]===void 0&&Cs[2]===void 0)?Ts.push(Cs[0]):Ts.push([Cs[0],Cs[1],Cs[2]]);return Ts}function il(zs,Cs){var Vs;if(typeof zs=="string")Vs=Cs(zs)[0];else if(Array.isArray(zs)){for(var Ts,ul,Cl=zs.concat(),Xl=[],Jl=Cl.length;Jl--;)typeof(Ts=Cl.shift())=="string"?Xl.push(Cs(Ts)[0]):Array.isArray(Ts)&&typeof Ts[0]=="string"&&(ul=Cs(Ts[0],Ts[1],Ts[2]),Xl.push([ul[0],ul[1],ul[2]]));Vs=Xl}return Vs}var ll=!1,jl=!0;if(typeof Ct=="string")ll=!0;else if(Array.isArray(Ct)){var Hl=Ct.concat();Yi=[];for(var Js,fs=Hl.length;fs--;)(typeof(Js=Hl.shift())!="string"||Array.isArray(Js)&&typeof Js[0]!="string")&&(jl=!1);ll=jl}if(ll===!1)throw new Error('Type of text must be string or Array. "'+Ct+'" is not recognized.');typeof Ct=="string"&&(Ct=Ct.match(/[\r?\n]/)?Ct.split(/\r\n|\r|\n/g):[Ct]);var Xo=qi/Zo.internal.scaleFactor,Zs=Xo*(as-1);switch($n.baseline){case"bottom":gn-=Zs;break;case"top":gn+=Xo-Zs;break;case"hanging":gn+=Xo-2*Zs;break;case"middle":gn+=Xo/2-Zs}if((vo=$n.maxWidth||0)>0&&(typeof Ct=="string"?Ct=Zo.splitTextToSize(Ct,vo):Object.prototype.toString.call(Ct)==="[object Array]"&&(Ct=Ct.reduce(function(zs,Cs){return zs.concat(Zo.splitTextToSize(Cs,vo))},[]))),oi={text:Ct,x:zt,y:gn,options:$n,mutex:{pdfEscape:Mr,activeFontKey:mr,fonts:ln,activeFontSize:qi}},Ii.publish("preProcessText",oi),Ct=oi.text,ha=($n=oi.options).angle,jo instanceof Hi==!1&&ha&&typeof ha=="number"){ha*=Math.PI/180,$n.rotationDirection===0&&(ha=-ha),Kn===Wr.ADVANCED&&(ha=-ha);var Gl=Math.cos(ha),Kl=Math.sin(ha);jo=new Hi(Gl,Kl,-Kl,Gl,0,0)}else ha&&ha instanceof Hi&&(jo=ha);Kn!==Wr.ADVANCED||jo||(jo=Ea),(Co=$n.charSpace||Fs)!==void 0&&(Ua+=fn(Tt(Co))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(ls=$n.horizontalScale)!==void 0&&(Ua+=fn(100*ls)+` Tz
`),$n.lang;var ka=-1,Ll=$n.renderingMode!==void 0?$n.renderingMode:$n.stroke,kl=Zo.internal.getCurrentPageInfo().pageContext;switch(Ll){case 0:case!1:case"fill":ka=0;break;case 1:case!0:case"stroke":ka=1;break;case 2:case"fillThenStroke":ka=2;break;case 3:case"invisible":ka=3;break;case 4:case"fillAndAddForClipping":ka=4;break;case 5:case"strokeAndAddPathForClipping":ka=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ka=6;break;case 7:case"addToPathForClipping":ka=7}var Al=kl.usedRenderingMode!==void 0?kl.usedRenderingMode:-1;ka!==-1?Ua+=ka+` Tr
`:Al!==-1&&(Ua+=`0 Tr
`),ka!==-1&&(kl.usedRenderingMode=ka),Pa=$n.align||"left";var Is,al=qi*as,eu=Zo.internal.pageSize.getWidth(),Nl=ln[mr];Co=$n.charSpace||Fs,vo=$n.maxWidth||0,ko=Object.assign({autoencode:!0,noBOM:!0},$n.flags);var yl=[];if(Object.prototype.toString.call(Ct)==="[object Array]"){var Ls;Yi=Qs(Ct),Pa!=="left"&&(Is=Yi.map(function(zs){return Zo.getStringUnitWidth(zs,{font:Nl,charSpace:Co,fontSize:qi,doKerning:!1})*qi/Ul}));var Xs,Wl=0;if(Pa==="right"){zt-=Is[0],Ct=[],fs=Yi.length;for(var ol=0;ol<fs;ol++)ol===0?(Xs=_o(zt),Ls=Mo(gn)):(Xs=Tt(Wl-Is[ol]),Ls=-al),Ct.push([Yi[ol],Xs,Ls]),Wl=Is[ol]}else if(Pa==="center"){zt-=Is[0]/2,Ct=[],fs=Yi.length;for(var So=0;So<fs;So++)So===0?(Xs=_o(zt),Ls=Mo(gn)):(Xs=Tt((Wl-Is[So])/2),Ls=-al),Ct.push([Yi[So],Xs,Ls]),Wl=Is[So]}else if(Pa==="left"){Ct=[],fs=Yi.length;for(var io=0;io<fs;io++)Ct.push(Yi[io])}else{if(Pa!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Ct=[],fs=Yi.length,vo=vo!==0?vo:eu;for(var Bo=0;Bo<fs;Bo++)Ls=Bo===0?Mo(gn):-al,Xs=Bo===0?_o(zt):0,Bo<fs-1?yl.push(fn(Tt((vo-Is[Bo])/(Yi[Bo].split(" ").length-1)))):yl.push(0),Ct.push([Yi[Bo],Xs,Ls])}}var ds=typeof $n.R2L=="boolean"?$n.R2L:nn;ds===!0&&(Ct=il(Ct,function(zs,Cs,Vs){return[zs.split("").reverse().join(""),Cs,Vs]})),oi={text:Ct,x:zt,y:gn,options:$n,mutex:{pdfEscape:Mr,activeFontKey:mr,fonts:ln,activeFontSize:qi}},Ii.publish("postProcessText",oi),Ct=oi.text,Oo=oi.mutex.isHex||!1;var gs=ln[mr].encoding;gs!=="WinAnsiEncoding"&&gs!=="StandardEncoding"||(Ct=il(Ct,function(zs,Cs,Vs){return[vl(zs),Cs,Vs]})),Yi=Qs(Ct),Ct=[];for(var Wo,vs,Ps,js=0,bl=1,ml=Array.isArray(Yi[0])?bl:js,Dl="",xl=function(Cs,Vs,Ts){var ul="";return Ts instanceof Hi?(Ts=typeof $n.angle=="number"?xa(Ts,new Hi(1,0,0,1,Cs,Vs)):xa(new Hi(1,0,0,1,Cs,Vs),Ts),Kn===Wr.ADVANCED&&(Ts=xa(new Hi(1,0,0,-1,0,0),Ts)),ul=Ts.join(" ")+` Tm
`):ul=fn(Cs)+" "+fn(Vs)+` Td
`,ul},El=0;El<Yi.length;El++){switch(Dl="",ml){case bl:Ps=(Oo?"<":"(")+Yi[El][0]+(Oo?">":")"),Wo=parseFloat(Yi[El][1]),vs=parseFloat(Yi[El][2]);break;case js:Ps=(Oo?"<":"(")+Yi[El]+(Oo?">":")"),Wo=_o(zt),vs=Mo(gn)}yl!==void 0&&yl[El]!==void 0&&(Dl=yl[El]+` Tw
`),El===0?Ct.push(Dl+xl(Wo,vs,jo)+Ps):ml===js?Ct.push(Dl+Ps):ml===bl&&Ct.push(Dl+xl(Wo,vs,jo)+Ps)}Ct=ml===js?Ct.join(` Tj
T* `):Ct.join(` Tj
`),Ct+=` Tj
`;var Pl=`BT
/`;return Pl+=mr+" "+qi+` Tf
`,Pl+=fn(qi*as)+` TL
`,Pl+=bs+`
`,Pl+=Ua,Pl+=Ct,xn(Pl+="ET"),tn[mr]=!0,Zo};var ea=Zt.__private__.clip=Zt.clip=function(Ct){return xn(Ct==="evenodd"?"W*":"W"),this};Zt.clipEvenOdd=function(){return ea("evenodd")},Zt.__private__.discardPath=Zt.discardPath=function(){return xn("n"),this};var ua=Zt.__private__.isValidStyle=function(Ct){var zt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ct)!==-1&&(zt=!0),zt};Zt.__private__.setDefaultPathOperation=Zt.setDefaultPathOperation=function(Ct){return ua(Ct)&&(Ht=Ct),this};var da=Zt.__private__.getStyle=Zt.getStyle=function(Ct){var zt=Ht;switch(Ct){case"D":case"S":zt="S";break;case"F":zt="f";break;case"FD":case"DF":zt="B";break;case"f":case"f*":case"B":case"B*":zt=Ct}return zt},Ra=Zt.close=function(){return xn("h"),this};Zt.stroke=function(){return xn("S"),this},Zt.fill=function(Ct){return Za("f",Ct),this},Zt.fillEvenOdd=function(Ct){return Za("f*",Ct),this},Zt.fillStroke=function(Ct){return Za("B",Ct),this},Zt.fillStrokeEvenOdd=function(Ct){return Za("B*",Ct),this};var Za=function(zt,gn){S()(gn)==="object"?bo(gn,zt):xn(zt)},Qa=function(zt){zt===null||Kn===Wr.ADVANCED&&zt===void 0||(zt=da(zt),xn(zt))};function oo(Ct,zt,gn,$n,bi){var oi=new W(zt||this.boundingBox,gn||this.xStep,$n||this.yStep,this.gState,bi||this.matrix);oi.stream=this.stream;var Yi=Ct+"$$"+this.cloneIndex+++"$$";return ta(Yi,oi),oi}var bo=function(zt,gn){var $n=Ai[zt.key],bi=ni[$n];if(bi instanceof z)xn("q"),xn(es(gn)),bi.gState&&Zt.setGState(bi.gState),xn(zt.matrix.toString()+" cm"),xn("/"+$n+" sh"),xn("Q");else if(bi instanceof W){var oi=new Hi(1,0,0,-1,0,As());zt.matrix&&(oi=oi.multiply(zt.matrix||Ea),$n=oo.call(bi,zt.key,zt.boundingBox,zt.xStep,zt.yStep,oi).id),xn("q"),xn("/Pattern cs"),xn("/"+$n+" scn"),bi.gState&&Zt.setGState(bi.gState),xn(gn),xn("Q")}},es=function(zt){switch(zt){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"}},ss=Zt.moveTo=function(Ct,zt){return xn(fn(Tt(Ct))+" "+fn(_t(zt))+" m"),this},Rs=Zt.lineTo=function(Ct,zt){return xn(fn(Tt(Ct))+" "+fn(_t(zt))+" l"),this},Ko=Zt.curveTo=function(Ct,zt,gn,$n,bi,oi){return xn([fn(Tt(Ct)),fn(_t(zt)),fn(Tt(gn)),fn(_t($n)),fn(Tt(bi)),fn(_t(oi)),"c"].join(" ")),this};Zt.__private__.line=Zt.line=function(Ct,zt,gn,$n,bi){if(isNaN(Ct)||isNaN(zt)||isNaN(gn)||isNaN($n)||!ua(bi))throw new Error("Invalid arguments passed to jsPDF.line");return Kn===Wr.COMPAT?this.lines([[gn-Ct,$n-zt]],Ct,zt,[1,1],bi||"S"):this.lines([[gn-Ct,$n-zt]],Ct,zt,[1,1]).stroke()},Zt.__private__.lines=Zt.lines=function(Ct,zt,gn,$n,bi,oi){var Yi,ha,Pa,Co,vo,ko,ls,jo,Zo,ts,Ua,Oo;if(typeof Ct=="number"&&(Oo=gn,gn=zt,zt=Ct,Ct=Oo),$n=$n||[1,1],oi=oi||!1,isNaN(zt)||isNaN(gn)||!Array.isArray(Ct)||!Array.isArray($n)||!ua(bi)||typeof oi!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ss(zt,gn),Yi=$n[0],ha=$n[1],Co=Ct.length,ts=zt,Ua=gn,Pa=0;Pa<Co;Pa++)(vo=Ct[Pa]).length===2?(ts=vo[0]*Yi+ts,Ua=vo[1]*ha+Ua,Rs(ts,Ua)):(ko=vo[0]*Yi+ts,ls=vo[1]*ha+Ua,jo=vo[2]*Yi+ts,Zo=vo[3]*ha+Ua,ts=vo[4]*Yi+ts,Ua=vo[5]*ha+Ua,Ko(ko,ls,jo,Zo,ts,Ua));return oi&&Ra(),Qa(bi),this},Zt.path=function(Ct){for(var zt=0;zt<Ct.length;zt++){var gn=Ct[zt],$n=gn.c;switch(gn.op){case"m":ss($n[0],$n[1]);break;case"l":Rs($n[0],$n[1]);break;case"c":Ko.apply(this,$n);break;case"h":Ra()}}return this},Zt.__private__.rect=Zt.rect=function(Ct,zt,gn,$n,bi){if(isNaN(Ct)||isNaN(zt)||isNaN(gn)||isNaN($n)||!ua(bi))throw new Error("Invalid arguments passed to jsPDF.rect");return Kn===Wr.COMPAT&&($n=-$n),xn([fn(Tt(Ct)),fn(_t(zt)),fn(Tt(gn)),fn(Tt($n)),"re"].join(" ")),Qa(bi),this},Zt.__private__.triangle=Zt.triangle=function(Ct,zt,gn,$n,bi,oi,Yi){if(isNaN(Ct)||isNaN(zt)||isNaN(gn)||isNaN($n)||isNaN(bi)||isNaN(oi)||!ua(Yi))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[gn-Ct,$n-zt],[bi-gn,oi-$n],[Ct-bi,zt-oi]],Ct,zt,[1,1],Yi,!0),this},Zt.__private__.roundedRect=Zt.roundedRect=function(Ct,zt,gn,$n,bi,oi,Yi){if(isNaN(Ct)||isNaN(zt)||isNaN(gn)||isNaN($n)||isNaN(bi)||isNaN(oi)||!ua(Yi))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ha=4/3*(Math.SQRT2-1);return bi=Math.min(bi,.5*gn),oi=Math.min(oi,.5*$n),this.lines([[gn-2*bi,0],[bi*ha,0,bi,oi-oi*ha,bi,oi],[0,$n-2*oi],[0,oi*ha,-bi*ha,oi,-bi,oi],[2*bi-gn,0],[-bi*ha,0,-bi,-oi*ha,-bi,-oi],[0,2*oi-$n],[0,-oi*ha,bi*ha,-oi,bi,-oi]],Ct+bi,zt,[1,1],Yi,!0),this},Zt.__private__.ellipse=Zt.ellipse=function(Ct,zt,gn,$n,bi){if(isNaN(Ct)||isNaN(zt)||isNaN(gn)||isNaN($n)||!ua(bi))throw new Error("Invalid arguments passed to jsPDF.ellipse");var oi=4/3*(Math.SQRT2-1)*gn,Yi=4/3*(Math.SQRT2-1)*$n;return ss(Ct+gn,zt),Ko(Ct+gn,zt-Yi,Ct+oi,zt-$n,Ct,zt-$n),Ko(Ct-oi,zt-$n,Ct-gn,zt-Yi,Ct-gn,zt),Ko(Ct-gn,zt+Yi,Ct-oi,zt+$n,Ct,zt+$n),Ko(Ct+oi,zt+$n,Ct+gn,zt+Yi,Ct+gn,zt),Qa(bi),this},Zt.__private__.circle=Zt.circle=function(Ct,zt,gn,$n){if(isNaN(Ct)||isNaN(zt)||isNaN(gn)||!ua($n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ct,zt,gn,gn,$n)},Zt.setFont=function(Ct,zt,gn){return gn&&(zt=Vr(zt,gn)),mr=Yn(Ct,zt,{disableWarning:!1}),this};var qo=Zt.__private__.getFont=Zt.getFont=function(){return ln[Yn.apply(Zt,arguments)]};Zt.__private__.getFontList=Zt.getFontList=function(){var Ct,zt,gn={};for(Ct in Hn)if(Hn.hasOwnProperty(Ct))for(zt in gn[Ct]=[],Hn[Ct])Hn[Ct].hasOwnProperty(zt)&&gn[Ct].push(zt);return gn},Zt.addFont=function(Ct,zt,gn,$n,bi){var oi=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&oi.indexOf(arguments[3])!==-1?bi=arguments[3]:arguments[3]&&oi.indexOf(arguments[3])==-1&&(gn=Vr(gn,$n)),bi=bi||"Identity-H",Kr.call(this,Ct,zt,gn,bi)};var to,Xa=Qe.lineWidth||.200025,Wa=Zt.__private__.getLineWidth=Zt.getLineWidth=function(){return Xa},Jo=Zt.__private__.setLineWidth=Zt.setLineWidth=function(Ct){return Xa=Ct,xn(fn(Tt(Ct))+" w"),this};Zt.__private__.setLineDash=H.API.setLineDash=H.API.setLineDashPattern=function(Ct,zt){if(Ct=Ct||[],zt=zt||0,isNaN(zt)||!Array.isArray(Ct))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ct=Ct.map(function(gn){return fn(Tt(gn))}).join(" "),zt=fn(Tt(zt)),xn("["+Ct+"] "+zt+" d"),this};var hs=Zt.__private__.getLineHeight=Zt.getLineHeight=function(){return qi*to};Zt.__private__.getLineHeight=Zt.getLineHeight=function(){return qi*to};var Eo=Zt.__private__.setLineHeightFactor=Zt.setLineHeightFactor=function(Ct){return typeof(Ct=Ct||1.15)=="number"&&(to=Ct),this},Ws=Zt.__private__.getLineHeightFactor=Zt.getLineHeightFactor=function(){return to};Eo(Qe.lineHeight);var _o=Zt.__private__.getHorizontalCoordinate=function(Ct){return Tt(Ct)},Mo=Zt.__private__.getVerticalCoordinate=function(Ct){return Kn===Wr.ADVANCED?Ct:wi[_r].mediaBox.topRightY-wi[_r].mediaBox.bottomLeftY-Tt(Ct)},xs=Zt.__private__.getHorizontalCoordinateString=Zt.getHorizontalCoordinateString=function(Ct){return fn(_o(Ct))},Go=Zt.__private__.getVerticalCoordinateString=Zt.getVerticalCoordinateString=function(Ct){return fn(Mo(Ct))},ns=Qe.strokeColor||"0 G";Zt.__private__.getStrokeColor=Zt.getDrawColor=function(){return za(ns)},Zt.__private__.setStrokeColor=Zt.setDrawColor=function(Ct,zt,gn,$n){return ns=Va({ch1:Ct,ch2:zt,ch3:gn,ch4:$n,pdfColorType:"draw",precision:2}),xn(ns),this};var is=Qe.fillColor||"0 g";Zt.__private__.getFillColor=Zt.getFillColor=function(){return za(is)},Zt.__private__.setFillColor=Zt.setFillColor=function(Ct,zt,gn,$n){return is=Va({ch1:Ct,ch2:zt,ch3:gn,ch4:$n,pdfColorType:"fill",precision:2}),xn(is),this};var bs=Qe.textColor||"0 g",Sl=Zt.__private__.getTextColor=Zt.getTextColor=function(){return za(bs)};Zt.__private__.setTextColor=Zt.setTextColor=function(Ct,zt,gn,$n){return bs=Va({ch1:Ct,ch2:zt,ch3:gn,ch4:$n,pdfColorType:"text",precision:3}),this};var Fs=Qe.charSpace,Ms=Zt.__private__.getCharSpace=Zt.getCharSpace=function(){return parseFloat(Fs||0)};Zt.__private__.setCharSpace=Zt.setCharSpace=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Fs=Ct,this};var cs=0;Zt.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},Zt.__private__.setLineCap=Zt.setLineCap=function(Ct){var zt=Zt.CapJoinStyles[Ct];if(zt===void 0)throw new Error("Line cap style of '"+Ct+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cs=zt,xn(zt+" J"),this};var _s=0;Zt.__private__.setLineJoin=Zt.setLineJoin=function(Ct){var zt=Zt.CapJoinStyles[Ct];if(zt===void 0)throw new Error("Line join style of '"+Ct+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _s=zt,xn(zt+" j"),this},Zt.__private__.setLineMiterLimit=Zt.__private__.setMiterLimit=Zt.setLineMiterLimit=Zt.setMiterLimit=function(Ct){if(Ct=Ct||0,isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return xn(fn(Tt(Ct))+" M"),this},Zt.GState=X,Zt.setGState=function(Ct){(Ct=typeof Ct=="string"?ii[_i[Ct]]:Us(null,Ct)).equals(Ri)||(xn("/"+Ct.id+" gs"),Ri=Ct)};var Us=function(zt,gn){if(!zt||!_i[zt]){var $n=!1;for(var bi in ii)if(ii.hasOwnProperty(bi)&&ii[bi].equals(gn)){$n=!0;break}if($n)gn=ii[bi];else{var oi="GS"+(Object.keys(ii).length+1).toString(10);ii[oi]=gn,gn.id=oi}return zt&&(_i[zt]=gn.id),Ii.publish("addGState",gn),gn}};Zt.addGState=function(Ct,zt){return Us(Ct,zt),this},Zt.saveGraphicsState=function(){return xn("q"),Ln.push({key:mr,size:qi,color:bs}),this},Zt.restoreGraphicsState=function(){xn("Q");var Ct=Ln.pop();return mr=Ct.key,qi=Ct.size,bs=Ct.color,Ri=null,this},Zt.setCurrentTransformationMatrix=function(Ct){return xn(Ct.toString()+" cm"),this},Zt.comment=function(Ct){return xn("#"+Ct),this};var ks=function(zt,gn){var $n=zt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return $n},set:function(ha){isNaN(ha)||($n=parseFloat(ha))}});var bi=gn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return bi},set:function(ha){isNaN(ha)||(bi=parseFloat(ha))}});var oi="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return oi},set:function(ha){oi=ha.toString()}}),this},ps=function(zt,gn,$n,bi){ks.call(this,zt,gn),this.type="rect";var oi=$n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return oi},set:function(Pa){isNaN(Pa)||(oi=parseFloat(Pa))}});var Yi=bi||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Yi},set:function(Pa){isNaN(Pa)||(Yi=parseFloat(Pa))}}),this},Es=function(){this.page=ji,this.currentPage=_r,this.pages=Vi.slice(0),this.pagesContext=wi.slice(0),this.x=Ur,this.y=un,this.matrix=An,this.width=wo(_r),this.height=As(_r),this.outputDestination=Gi,this.id="",this.objectNumber=-1};Es.prototype.restore=function(){ji=this.page,_r=this.currentPage,wi=this.pagesContext,Vi=this.pages,Ur=this.x,un=this.y,An=this.matrix,ms(_r,this.width),ao(_r,this.height),Gi=this.outputDestination};var tl=function(zt,gn,$n,bi,oi){ma.push(new Es),ji=_r=0,Vi=[],Ur=zt,un=gn,An=oi,Gn([$n,bi])},Os=function(zt){if(Zi[zt])ma.pop().restore();else{var gn=new Es,$n="Xo"+(Object.keys(Ui).length+1).toString(10);gn.id=$n,Zi[zt]=$n,Ui[$n]=gn,Ii.publish("addFormObject",gn),ma.pop().restore()}};for(var Ro in Zt.beginFormObject=function(Ct,zt,gn,$n,bi){return tl(Ct,zt,gn,$n,bi),this},Zt.endFormObject=function(Ct){return Os(Ct),this},Zt.doFormObject=function(Ct,zt){var gn=Ui[Zi[Ct]];return xn("q"),xn(zt.toString()+" cm"),xn("/"+gn.id+" Do"),xn("Q"),this},Zt.getFormObject=function(Ct){var zt=Ui[Zi[Ct]];return{x:zt.x,y:zt.y,width:zt.width,height:zt.height,matrix:zt.matrix}},Zt.save=function(Ct,zt){return Ct=Ct||"generated.pdf",(zt=zt||{}).returnPromise=zt.returnPromise||!1,zt.returnPromise===!1?(e(na(Ci()),Ct),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(gn,$n){try{var bi=e(na(Ci()),Ct);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),gn(bi)}catch(oi){$n(oi.message)}})},H.API)H.API.hasOwnProperty(Ro)&&(Ro==="events"&&H.API.events.length?function(Ct,zt){var gn,$n,bi;for(bi=zt.length-1;bi!==-1;bi--)gn=zt[bi][0],$n=zt[bi][1],Ct.subscribe.apply(Ct,[gn].concat(typeof $n=="function"?[$n]:$n))}(Ii,H.API.events):Zt[Ro]=H.API[Ro]);var wo=Zt.getPageWidth=function(Ct){return(wi[Ct=Ct||_r].mediaBox.topRightX-wi[Ct].mediaBox.bottomLeftX)/Ar},ms=Zt.setPageWidth=function(Ct,zt){wi[Ct].mediaBox.topRightX=zt*Ar+wi[Ct].mediaBox.bottomLeftX},As=Zt.getPageHeight=function(Ct){return(wi[Ct=Ct||_r].mediaBox.topRightY-wi[Ct].mediaBox.bottomLeftY)/Ar},ao=Zt.setPageHeight=function(Ct,zt){wi[Ct].mediaBox.topRightY=zt*Ar+wi[Ct].mediaBox.bottomLeftY};return Zt.internal={pdfEscape:Mr,getStyle:da,getFont:qo,getFontSize:ar,getCharSpace:Ms,getTextColor:Sl,getLineHeight:hs,getLineHeightFactor:Ws,getLineWidth:Wa,write:Ti,getHorizontalCoordinate:_o,getVerticalCoordinate:Mo,getCoordinateString:xs,getVerticalCoordinateString:Go,collections:{},newObject:ra,newAdditionalObject:Ba,newObjectDeferred:ga,newObjectDeferredBegin:sa,getFilters:Ya,putStream:Bi,events:Ii,scaleFactor:Ar,pageSize:{getWidth:function(){return wo(_r)},setWidth:function(zt){ms(_r,zt)},getHeight:function(){return As(_r)},setHeight:function(zt){ao(_r,zt)}},encryptionOptions:Er,encryption:ca,getEncryptor:wa,output:La,getNumberOfPages:Zn,pages:Vi,out:xn,f2:yt,f3:xt,getPageInfo:Ca,getPageInfoByObjId:No,getCurrentPageInfo:fo,getPDFVersion:vn,Point:ks,Rectangle:ps,Matrix:Hi,hasHotfix:pa},Object.defineProperty(Zt.internal.pageSize,"width",{get:function(){return wo(_r)},set:function(zt){ms(_r,zt)},enumerable:!0,configurable:!0}),Object.defineProperty(Zt.internal.pageSize,"height",{get:function(){return As(_r)},set:function(zt){ao(_r,zt)},enumerable:!0,configurable:!0}),Br.call(Zt,Wi),mr="F1",zr(Ye,Pe),Ii.publish("initialized"),Zt}R.prototype.lsbFirstWord=function(Qe){return String.fromCharCode(Qe>>0&255,Qe>>8&255,Qe>>16&255,Qe>>24&255)},R.prototype.toHexString=function(Qe){return Qe.split("").map(function(Se){return("0"+(255&Se.charCodeAt(0)).toString(16)).slice(-2)}).join("")},R.prototype.hexToBytes=function(Qe){for(var Se=[],Pe=0;Pe<Qe.length;Pe+=2)Se.push(String.fromCharCode(parseInt(Qe.substr(Pe,2),16)));return Se.join("")},R.prototype.processOwnerPassword=function(Qe,Se){return O(E(Se).substr(0,5),Qe)},R.prototype.encryptor=function(Qe,Se){var Pe=E(this.encryptionKey+String.fromCharCode(255&Qe,Qe>>8&255,Qe>>16&255,255&Se,Se>>8&255)).substr(0,10);return function(He){return O(Pe,He)}},X.prototype.equals=function(Qe){var Se,Pe="id,objectNumber,equals";if(!Qe||S()(Qe)!==S()(this))return!1;var He=0;for(Se in this)if(!(Pe.indexOf(Se)>=0)){if(this.hasOwnProperty(Se)&&!Qe.hasOwnProperty(Se))return!1;if(this[Se]!==Qe[Se])return!1;He++}for(Se in Qe)Qe.hasOwnProperty(Se)&&Pe.indexOf(Se)<0&&He--;return He===0},H.API={events:[]},H.version="2.5.1";var V=H.API,Q=1,G=function(Se){return Se.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ee=function(Se){return Se.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(Se){return Se.toFixed(2)},se=function(Se){return Se.toFixed(5)};V.__acroform__={};var re=function(Se,Pe){Se.prototype=Object.create(Pe.prototype),Se.prototype.constructor=Se},Ae=function(Se){return Se*Q},Te=function(Se){var Pe=new Oe,He=et.internal.getHeight(Se)||0,Ye=et.internal.getWidth(Se)||0;return Pe.BBox=[0,0,Number(q(Ye)),Number(q(He))],Pe},Re=V.__acroform__.setBit=function(Qe,Se){if(Qe=Qe||0,Se=Se||0,isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Qe|=1<<Se},Ge=V.__acroform__.clearBit=function(Qe,Se){if(Qe=Qe||0,Se=Se||0,isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Qe&=~(1<<Se)},Ue=V.__acroform__.getBit=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(Qe&1<<Se)==0?0:1},nt=V.__acroform__.getBitForPdf=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ue(Qe,Se-1)},Le=V.__acroform__.setBitForPdf=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Re(Qe,Se-1)},le=V.__acroform__.clearBitForPdf=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ge(Qe,Se-1)},Xe=V.__acroform__.calculateCoordinates=function(Qe,Se){var Pe=Se.internal.getHorizontalCoordinate,He=Se.internal.getVerticalCoordinate,Ye=Qe[0],ze=Qe[1],$e=Qe[2],St=Qe[3],ft={};return ft.lowerLeft_X=Pe(Ye)||0,ft.lowerLeft_Y=He(ze+St)||0,ft.upperRight_X=Pe(Ye+$e)||0,ft.upperRight_Y=He(ze)||0,[Number(q(ft.lowerLeft_X)),Number(q(ft.lowerLeft_Y)),Number(q(ft.upperRight_X)),Number(q(ft.upperRight_Y))]},pe=function(Se){if(Se.appearanceStreamContent)return Se.appearanceStreamContent;if(Se.V||Se.DV){var Pe=[],He=Se._V||Se.DV,Ye=Z(Se,He),ze=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id;Pe.push("/Tx BMC"),Pe.push("q"),Pe.push("BT"),Pe.push(Se.scope.__private__.encodeColorString(Se.color)),Pe.push("/"+ze+" "+q(Ye.fontSize)+" Tf"),Pe.push("1 0 0 1 0 0 Tm"),Pe.push(Ye.text),Pe.push("ET"),Pe.push("Q"),Pe.push("EMC");var $e=Te(Se);return $e.scope=Se.scope,$e.stream=Pe.join(`
`),$e}},Z=function(Se,Pe){var He=Se.fontSize===0?Se.maxFontSize:Se.fontSize,Ye={text:"",fontSize:""},ze=(Pe=(Pe=Pe.substr(0,1)=="("?Pe.substr(1):Pe).substr(Pe.length-1)==")"?Pe.substr(0,Pe.length-1):Pe).split(" ");ze=Se.multiline?ze.map(function(Tt){return Tt.split(`
`)}):ze.map(function(Tt){return[Tt]});var $e=He,St=et.internal.getHeight(Se)||0;St=St<0?-St:St;var ft=et.internal.getWidth(Se)||0;ft=ft<0?-ft:ft;var Ht=function(Lt,_t,Xt){if(Lt+1<ze.length){var er=_t+" "+ze[Lt+1][0];return Y(er,Se,Xt).width<=ft-4}return!1};$e++;e:for(;$e>0;){Pe="",$e--;var Er,Fr,tn=Y("3",Se,$e).height,Zt=Se.multiline?St-$e:(St-tn)/2,Rn=Zt+=2,vn=0,Un=0,hn=0;if($e<=0){Pe=`(...) Tj
`,Pe+="% Width of Text: "+Y(Pe,Se,$e=12).width+", FieldWidth:"+ft+`
`;break}for(var Wr="",Kn=0,ei=0;ei<ze.length;ei++)if(ze.hasOwnProperty(ei)){var Si=!1;if(ze[ei].length!==1&&hn!==ze[ei].length-1){if((tn+2)*(Kn+2)+2>St)continue e;Wr+=ze[ei][hn],Si=!0,Un=ei,ei--}else{Wr=(Wr+=ze[ei][hn]+" ").substr(Wr.length-1)==" "?Wr.substr(0,Wr.length-1):Wr;var Vr=parseInt(ei),fn=Ht(Vr,Wr,$e),kn=ei>=ze.length-1;if(fn&&!kn){Wr+=" ",hn=0;continue}if(fn||kn){if(kn)Un=Vr;else if(Se.multiline&&(tn+2)*(Kn+2)+2>St)continue e}else{if(!Se.multiline)continue e;if((tn+2)*(Kn+2)+2>St)continue e;Un=Vr}}for(var It="",yt=vn;yt<=Un;yt++){var xt=ze[yt];if(Se.multiline){if(yt===Un){It+=xt[hn]+" ",hn=(hn+1)%xt.length;continue}if(yt===vn){It+=xt[xt.length-1]+" ";continue}}It+=xt[0]+" "}switch(It=It.substr(It.length-1)==" "?It.substr(0,It.length-1):It,Fr=Y(It,Se,$e).width,Se.textAlign){case"right":Er=ft-Fr-2;break;case"center":Er=(ft-Fr)/2;break;case"left":default:Er=2}Pe+=q(Er)+" "+q(Rn)+` Td
`,Pe+="("+G(It)+`) Tj
`,Pe+=-q(Er)+` 0 Td
`,Rn=-($e+2),Fr=0,vn=Si?Un:Un+1,Kn++,Wr=""}break}return Ye.text=Pe,Ye.fontSize=$e,Ye},Y=function(Se,Pe,He){var Ye=Pe.scope.internal.getFont(Pe.fontName,Pe.fontStyle),ze=Pe.scope.getStringUnitWidth(Se,{font:Ye,fontSize:parseFloat(He),charSpace:0})*parseFloat(He);return{height:Pe.scope.getStringUnitWidth("3",{font:Ye,fontSize:parseFloat(He),charSpace:0})*parseFloat(He)*1.5,width:ze}},ne={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ce=function(Se,Pe){var He={type:"reference",object:Se};Pe.internal.getPageInfo(Se.page).pageContext.annotations.find(function(Ye){return Ye.type===He.type&&Ye.object===He.object})===void 0&&Pe.internal.getPageInfo(Se.page).pageContext.annotations.push(He)},ye=function(Se,Pe){for(var He in Se)if(Se.hasOwnProperty(He)){var Ye=He,ze=Se[He];Pe.internal.newObjectDeferredBegin(ze.objId,!0),S()(ze)==="object"&&typeof ze.putStream=="function"&&ze.putStream(),delete Se[Ye]}},Ee=function(Se,Pe){if(Pe.scope=Se,Se.internal!==void 0&&(Se.internal.acroformPlugin===void 0||Se.internal.acroformPlugin.isInitialized===!1)){if(lt.FieldNum=0,Se.internal.acroformPlugin=JSON.parse(JSON.stringify(ne)),Se.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Se.internal.scaleFactor,Se.internal.acroformPlugin.acroFormDictionaryRoot=new Je,Se.internal.acroformPlugin.acroFormDictionaryRoot.scope=Se,Se.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Se.internal.events.subscribe("postPutResources",function(){!function(He){He.internal.events.unsubscribe(He.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete He.internal.acroformPlugin.acroFormDictionaryRoot._eventID,He.internal.acroformPlugin.printedOut=!0}(Se)}),Se.internal.events.subscribe("buildDocument",function(){!function(He){He.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ye=He.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ze in Ye)if(Ye.hasOwnProperty(ze)){var $e=Ye[ze];$e.objId=void 0,$e.hasAnnotation&&ce($e,He)}}(Se)}),Se.internal.events.subscribe("putCatalog",function(){!function(He){if(He.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");He.internal.write("/AcroForm "+He.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Se)}),Se.internal.events.subscribe("postPutPages",function(He){!function(Ye,ze){var $e=!Ye;for(var St in Ye||(ze.internal.newObjectDeferredBegin(ze.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ze.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ye=Ye||ze.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ye.hasOwnProperty(St)){var ft=Ye[St],Ht=[],Er=ft.Rect;if(ft.Rect&&(ft.Rect=Xe(ft.Rect,ze)),ze.internal.newObjectDeferredBegin(ft.objId,!0),ft.DA=et.createDefaultAppearanceStream(ft),S()(ft)==="object"&&typeof ft.getKeyValueListForStream=="function"&&(Ht=ft.getKeyValueListForStream()),ft.Rect=Er,ft.hasAppearanceStream&&!ft.appearanceStreamContent){var Fr=pe(ft);Ht.push({key:"AP",value:"<</N "+Fr+">>"}),ze.internal.acroformPlugin.xForms.push(Fr)}if(ft.appearanceStreamContent){var tn="";for(var Zt in ft.appearanceStreamContent)if(ft.appearanceStreamContent.hasOwnProperty(Zt)){var Rn=ft.appearanceStreamContent[Zt];if(tn+="/"+Zt+" ",tn+="<<",Object.keys(Rn).length>=1||Array.isArray(Rn)){for(var St in Rn)if(Rn.hasOwnProperty(St)){var vn=Rn[St];typeof vn=="function"&&(vn=vn.call(ze,ft)),tn+="/"+St+" "+vn+" ",ze.internal.acroformPlugin.xForms.indexOf(vn)>=0||ze.internal.acroformPlugin.xForms.push(vn)}}else typeof(vn=Rn)=="function"&&(vn=vn.call(ze,ft)),tn+="/"+St+" "+vn,ze.internal.acroformPlugin.xForms.indexOf(vn)>=0||ze.internal.acroformPlugin.xForms.push(vn);tn+=">>"}Ht.push({key:"AP",value:`<<
`+tn+">>"})}ze.internal.putStream({additionalKeyValues:Ht,objectId:ft.objId}),ze.internal.out("endobj")}$e&&ye(ze.internal.acroformPlugin.xForms,ze)}(He,Se)}),Se.internal.acroformPlugin.isInitialized=!0}},Ce=V.__acroform__.arrayToPdfArray=function(Qe,Se,Pe){var He=function(St){return St};if(Array.isArray(Qe)){for(var Ye="[",ze=0;ze<Qe.length;ze++)switch(ze!==0&&(Ye+=" "),S()(Qe[ze])){case"boolean":case"number":case"object":Ye+=Qe[ze].toString();break;case"string":Qe[ze].substr(0,1)!=="/"?(Se!==void 0&&Pe&&(He=Pe.internal.getEncryptor(Se)),Ye+="("+G(He(Qe[ze].toString()))+")"):Ye+=Qe[ze].toString()}return Ye+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ue=function(Se,Pe,He){var Ye=function($e){return $e};return Pe!==void 0&&He&&(Ye=He.internal.getEncryptor(Pe)),(Se=Se||"").toString(),Se="("+G(Ye(Se))+")"},ge=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(Pe){this._objId=Pe}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ge.prototype.toString=function(){return this.objId+" 0 R"},ge.prototype.putStream=function(){var Qe=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Qe,objectId:this.objId}),this.scope.internal.out("endobj")},ge.prototype.getKeyValueListForStream=function(){var Qe=[],Se=Object.getOwnPropertyNames(this).filter(function(ze){return ze!="content"&&ze!="appearanceStreamContent"&&ze!="scope"&&ze!="objId"&&ze.substring(0,1)!="_"});for(var Pe in Se)if(Object.getOwnPropertyDescriptor(this,Se[Pe]).configurable===!1){var He=Se[Pe],Ye=this[He];Ye&&(Array.isArray(Ye)?Qe.push({key:He,value:Ce(Ye,this.objId,this.scope)}):Ye instanceof ge?(Ye.scope=this.scope,Qe.push({key:He,value:Ye.objId+" 0 R"})):typeof Ye!="function"&&Qe.push({key:He,value:Ye}))}return Qe};var Oe=function(){ge.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 Se,Pe=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Pe},set:function(Ye){Pe=Ye}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ye){Se=Ye.trim()},get:function(){return Se||null}})};re(Oe,ge);var Je=function(){ge.call(this);var Se,Pe=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Pe.length>0?Pe:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Pe}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Se){var Ye=function($e){return $e};return this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),"("+G(Ye(Se))+")"}},set:function(Ye){Se=Ye}})};re(Je,ge);var lt=function Qe(){ge.call(this);var Se=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(Wr){if(isNaN(Wr))throw new Error('Invalid value "'+Wr+'" for attribute F supplied.');Se=Wr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(Se,3))},set:function(Wr){Boolean(Wr)===!0?this.F=Le(Se,3):this.F=le(Se,3)}});var Pe=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Pe},set:function(Wr){if(isNaN(Wr))throw new Error('Invalid value "'+Wr+'" for attribute Ff supplied.');Pe=Wr}});var He=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(He.length!==0)return He},set:function(Wr){He=Wr!==void 0?Wr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[0])?0:He[0]},set:function(Wr){He[0]=Wr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[1])?0:He[1]},set:function(Wr){He[1]=Wr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[2])?0:He[2]},set:function(Wr){He[2]=Wr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!He||isNaN(He[3])?0:He[3]},set:function(Wr){He[3]=Wr}});var Ye="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ye},set:function(Wr){switch(Wr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ye=Wr;break;default:throw new Error('Invalid value "'+Wr+'" for attribute FT supplied.')}}});var ze=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!ze||ze.length<1){if(this instanceof lr)return;ze="FieldObject"+Qe.FieldNum++}var Wr=function(ei){return ei};return this.scope&&(Wr=this.scope.internal.getEncryptor(this.objId)),"("+G(Wr(ze))+")"},set:function(Wr){ze=Wr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return ze},set:function(Wr){ze=Wr}});var $e="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return $e},set:function(Wr){$e=Wr}});var St="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return St},set:function(Wr){St=Wr}});var ft=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ft},set:function(Wr){ft=Wr}});var Ht=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ht===void 0?50/Q:Ht},set:function(Wr){Ht=Wr}});var Er="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Er},set:function(Wr){Er=Wr}});var Fr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Fr||this instanceof lr||this instanceof mt))return ue(Fr,this.objId,this.scope)},set:function(Wr){Wr=Wr.toString(),Fr=Wr}});var tn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(tn)return this instanceof Ot==!1?ue(tn,this.objId,this.scope):tn},set:function(Wr){Wr=Wr.toString(),tn=this instanceof Ot==!1?Wr.substr(0,1)==="("?ee(Wr.substr(1,Wr.length-2)):ee(Wr):Wr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ot==!0?ee(tn.substr(1,tn.length-1)):tn},set:function(Wr){Wr=Wr.toString(),tn=this instanceof Ot==!0?"/"+Wr:Wr}});var Zt=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Zt)return Zt},set:function(Wr){this.V=Wr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Zt)return this instanceof Ot==!1?ue(Zt,this.objId,this.scope):Zt},set:function(Wr){Wr=Wr.toString(),Zt=this instanceof Ot==!1?Wr.substr(0,1)==="("?ee(Wr.substr(1,Wr.length-2)):ee(Wr):Wr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ot==!0?ee(Zt.substr(1,Zt.length-1)):Zt},set:function(Wr){Wr=Wr.toString(),Zt=this instanceof Ot==!0?"/"+Wr:Wr}}),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 Rn,vn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return vn},set:function(Wr){Wr=Boolean(Wr),vn=Wr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Rn)return Rn},set:function(Wr){Rn=Wr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,1))},set:function(Wr){Boolean(Wr)===!0?this.Ff=Le(this.Ff,1):this.Ff=le(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,2))},set:function(Wr){Boolean(Wr)===!0?this.Ff=Le(this.Ff,2):this.Ff=le(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,3))},set:function(Wr){Boolean(Wr)===!0?this.Ff=Le(this.Ff,3):this.Ff=le(this.Ff,3)}});var Un=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Un!==null)return Un},set:function(Wr){if([0,1,2].indexOf(Wr)===-1)throw new Error('Invalid value "'+Wr+'" for attribute Q supplied.');Un=Wr}}),Object.defineProperty(this,"textAlign",{get:function(){var Wr;switch(Un){case 0:default:Wr="left";break;case 1:Wr="center";break;case 2:Wr="right"}return Wr},configurable:!0,enumerable:!0,set:function(Wr){switch(Wr){case"right":case 2:Un=2;break;case"center":case 1:Un=1;break;case"left":case 0:default:Un=0}}})};re(lt,ge);var tt=function(){lt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Se=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(Ye){Se=Ye}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(Ye){Se=Ye}});var Pe=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ce(Pe,this.objId,this.scope)},set:function(Ye){var ze,$e;$e=[],typeof(ze=Ye)=="string"&&($e=function(St,ft,Ht){Ht||(Ht=1);for(var Er,Fr=[];Er=ft.exec(St);)Fr.push(Er[Ht]);return Fr}(ze,/\((.*?)\)/g)),Pe=$e}}),this.getOptions=function(){return Pe},this.setOptions=function(He){Pe=He,this.sort&&Pe.sort()},this.addOption=function(He){He=(He=He||"").toString(),Pe.push(He),this.sort&&Pe.sort()},this.removeOption=function(He,Ye){for(Ye=Ye||!1,He=(He=He||"").toString();Pe.indexOf(He)!==-1&&(Pe.splice(Pe.indexOf(He),1),Ye!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,18))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,18):this.Ff=le(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,19))},set:function(Ye){this.combo===!0&&(Boolean(Ye)===!0?this.Ff=Le(this.Ff,19):this.Ff=le(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,20))},set:function(Ye){Boolean(Ye)===!0?(this.Ff=Le(this.Ff,20),Pe.sort()):this.Ff=le(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,22))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,22):this.Ff=le(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,23))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,23):this.Ff=le(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,27))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,27):this.Ff=le(this.Ff,27)}}),this.hasAppearanceStream=!1};re(tt,lt);var ke=function(){tt.call(this),this.fontName="helvetica",this.combo=!1};re(ke,tt);var st=function(){ke.call(this),this.combo=!0};re(st,ke);var Ve=function(){st.call(this),this.edit=!0};re(Ve,st);var Ot=function(){lt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,15))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,15):this.Ff=le(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,16))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,16):this.Ff=le(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,17))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,17):this.Ff=le(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,26))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Le(this.Ff,26):this.Ff=le(this.Ff,26)}});var Se,Pe={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ye=function(ft){return ft};if(this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),Object.keys(Pe).length!==0){var ze,$e=[];for(ze in $e.push("<<"),Pe)$e.push("/"+ze+" ("+G(Ye(Pe[ze]))+")");return $e.push(">>"),$e.join(`
`)}},set:function(Ye){S()(Ye)==="object"&&(Pe=Ye)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Pe.CA||""},set:function(Ye){typeof Ye=="string"&&(Pe.CA=Ye)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(Ye){Se=Ye}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Se.substr(1,Se.length-1)},set:function(Ye){Se="/"+Ye}})};re(Ot,lt);var Ut=function(){Ot.call(this),this.pushButton=!0};re(Ut,Ot);var ir=function(){Ot.call(this),this.radio=!0,this.pushButton=!1;var Se=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(He){Se=He!==void 0?He:[]}})};re(ir,Ot);var lr=function(){var Se,Pe;lt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Se},set:function($e){Se=$e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Pe},set:function($e){Pe=$e}});var He,Ye={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var $e=function(Er){return Er};this.scope&&($e=this.scope.internal.getEncryptor(this.objId));var St,ft=[];for(St in ft.push("<<"),Ye)ft.push("/"+St+" ("+G($e(Ye[St]))+")");return ft.push(">>"),ft.join(`
`)},set:function($e){S()($e)==="object"&&(Ye=$e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ye.CA||""},set:function($e){typeof $e=="string"&&(Ye.CA=$e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return He},set:function($e){He=$e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return He.substr(1,He.length-1)},set:function($e){He="/"+$e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=et.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};re(lr,lt),ir.prototype.setAppearance=function(Qe){if(!("createAppearanceStream"in Qe)||!("getCA"in Qe))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Se in this.Kids)if(this.Kids.hasOwnProperty(Se)){var Pe=this.Kids[Se];Pe.appearanceStreamContent=Qe.createAppearanceStream(Pe.optionName),Pe.caption=Qe.getCA()}},ir.prototype.createOption=function(Qe){var Se=new lr;return Se.Parent=this,Se.optionName=Qe,this.Kids.push(Se),ur.call(this.scope,Se),Se};var Sr=function(){Ot.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=et.CheckBox.createAppearanceStream()};re(Sr,Ot);var mt=function(){lt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,13))},set:function(He){Boolean(He)===!0?this.Ff=Le(this.Ff,13):this.Ff=le(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,21))},set:function(He){Boolean(He)===!0?this.Ff=Le(this.Ff,21):this.Ff=le(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,23))},set:function(He){Boolean(He)===!0?this.Ff=Le(this.Ff,23):this.Ff=le(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,24))},set:function(He){Boolean(He)===!0?this.Ff=Le(this.Ff,24):this.Ff=le(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,25))},set:function(He){Boolean(He)===!0?this.Ff=Le(this.Ff,25):this.Ff=le(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,26))},set:function(He){Boolean(He)===!0?this.Ff=Le(this.Ff,26):this.Ff=le(this.Ff,26)}});var Se=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Se},set:function(He){Se=He}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(He){Number.isInteger(He)&&(Se=He)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};re(mt,lt);var or=function(){mt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,14))},set:function(Pe){Boolean(Pe)===!0?this.Ff=Le(this.Ff,14):this.Ff=le(this.Ff,14)}}),this.password=!0};re(or,mt);var et={CheckBox:{createAppearanceStream:function(){return{N:{On:et.CheckBox.YesNormal},D:{On:et.CheckBox.YesPushDown,Off:et.CheckBox.OffPushDown}}},YesPushDown:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=[],Ye=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,ze=Se.scope.__private__.encodeColorString(Se.color),$e=Z(Se,Se.caption);return He.push("0.749023 g"),He.push("0 0 "+q(et.internal.getWidth(Se))+" "+q(et.internal.getHeight(Se))+" re"),He.push("f"),He.push("BMC"),He.push("q"),He.push("0 0 1 rg"),He.push("/"+Ye+" "+q($e.fontSize)+" Tf "+ze),He.push("BT"),He.push($e.text),He.push("ET"),He.push("Q"),He.push("EMC"),Pe.stream=He.join(`
`),Pe},YesNormal:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,Ye=Se.scope.__private__.encodeColorString(Se.color),ze=[],$e=et.internal.getHeight(Se),St=et.internal.getWidth(Se),ft=Z(Se,Se.caption);return ze.push("1 g"),ze.push("0 0 "+q(St)+" "+q($e)+" re"),ze.push("f"),ze.push("q"),ze.push("0 0 1 rg"),ze.push("0 0 "+q(St-1)+" "+q($e-1)+" re"),ze.push("W"),ze.push("n"),ze.push("0 g"),ze.push("BT"),ze.push("/"+He+" "+q(ft.fontSize)+" Tf "+Ye),ze.push(ft.text),ze.push("ET"),ze.push("Q"),Pe.stream=ze.join(`
`),Pe},OffPushDown:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=[];return He.push("0.749023 g"),He.push("0 0 "+q(et.internal.getWidth(Se))+" "+q(et.internal.getHeight(Se))+" re"),He.push("f"),Pe.stream=He.join(`
`),Pe}},RadioButton:{Circle:{createAppearanceStream:function(Se){var Pe={D:{Off:et.RadioButton.Circle.OffPushDown},N:{}};return Pe.N[Se]=et.RadioButton.Circle.YesNormal,Pe.D[Se]=et.RadioButton.Circle.YesPushDown,Pe},getCA:function(){return"l"},YesNormal:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=[],Ye=et.internal.getWidth(Se)<=et.internal.getHeight(Se)?et.internal.getWidth(Se)/4:et.internal.getHeight(Se)/4;Ye=Number((.9*Ye).toFixed(5));var ze=et.internal.Bezier_C,$e=Number((Ye*ze).toFixed(5));return He.push("q"),He.push("1 0 0 1 "+se(et.internal.getWidth(Se)/2)+" "+se(et.internal.getHeight(Se)/2)+" cm"),He.push(Ye+" 0 m"),He.push(Ye+" "+$e+" "+$e+" "+Ye+" 0 "+Ye+" c"),He.push("-"+$e+" "+Ye+" -"+Ye+" "+$e+" -"+Ye+" 0 c"),He.push("-"+Ye+" -"+$e+" -"+$e+" -"+Ye+" 0 -"+Ye+" c"),He.push($e+" -"+Ye+" "+Ye+" -"+$e+" "+Ye+" 0 c"),He.push("f"),He.push("Q"),Pe.stream=He.join(`
`),Pe},YesPushDown:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=[],Ye=et.internal.getWidth(Se)<=et.internal.getHeight(Se)?et.internal.getWidth(Se)/4:et.internal.getHeight(Se)/4;Ye=Number((.9*Ye).toFixed(5));var ze=Number((2*Ye).toFixed(5)),$e=Number((ze*et.internal.Bezier_C).toFixed(5)),St=Number((Ye*et.internal.Bezier_C).toFixed(5));return He.push("0.749023 g"),He.push("q"),He.push("1 0 0 1 "+se(et.internal.getWidth(Se)/2)+" "+se(et.internal.getHeight(Se)/2)+" cm"),He.push(ze+" 0 m"),He.push(ze+" "+$e+" "+$e+" "+ze+" 0 "+ze+" c"),He.push("-"+$e+" "+ze+" -"+ze+" "+$e+" -"+ze+" 0 c"),He.push("-"+ze+" -"+$e+" -"+$e+" -"+ze+" 0 -"+ze+" c"),He.push($e+" -"+ze+" "+ze+" -"+$e+" "+ze+" 0 c"),He.push("f"),He.push("Q"),He.push("0 g"),He.push("q"),He.push("1 0 0 1 "+se(et.internal.getWidth(Se)/2)+" "+se(et.internal.getHeight(Se)/2)+" cm"),He.push(Ye+" 0 m"),He.push(Ye+" "+St+" "+St+" "+Ye+" 0 "+Ye+" c"),He.push("-"+St+" "+Ye+" -"+Ye+" "+St+" -"+Ye+" 0 c"),He.push("-"+Ye+" -"+St+" -"+St+" -"+Ye+" 0 -"+Ye+" c"),He.push(St+" -"+Ye+" "+Ye+" -"+St+" "+Ye+" 0 c"),He.push("f"),He.push("Q"),Pe.stream=He.join(`
`),Pe},OffPushDown:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=[],Ye=et.internal.getWidth(Se)<=et.internal.getHeight(Se)?et.internal.getWidth(Se)/4:et.internal.getHeight(Se)/4;Ye=Number((.9*Ye).toFixed(5));var ze=Number((2*Ye).toFixed(5)),$e=Number((ze*et.internal.Bezier_C).toFixed(5));return He.push("0.749023 g"),He.push("q"),He.push("1 0 0 1 "+se(et.internal.getWidth(Se)/2)+" "+se(et.internal.getHeight(Se)/2)+" cm"),He.push(ze+" 0 m"),He.push(ze+" "+$e+" "+$e+" "+ze+" 0 "+ze+" c"),He.push("-"+$e+" "+ze+" -"+ze+" "+$e+" -"+ze+" 0 c"),He.push("-"+ze+" -"+$e+" -"+$e+" -"+ze+" 0 -"+ze+" c"),He.push($e+" -"+ze+" "+ze+" -"+$e+" "+ze+" 0 c"),He.push("f"),He.push("Q"),Pe.stream=He.join(`
`),Pe}},Cross:{createAppearanceStream:function(Se){var Pe={D:{Off:et.RadioButton.Cross.OffPushDown},N:{}};return Pe.N[Se]=et.RadioButton.Cross.YesNormal,Pe.D[Se]=et.RadioButton.Cross.YesPushDown,Pe},getCA:function(){return"8"},YesNormal:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=[],Ye=et.internal.calculateCross(Se);return He.push("q"),He.push("1 1 "+q(et.internal.getWidth(Se)-2)+" "+q(et.internal.getHeight(Se)-2)+" re"),He.push("W"),He.push("n"),He.push(q(Ye.x1.x)+" "+q(Ye.x1.y)+" m"),He.push(q(Ye.x2.x)+" "+q(Ye.x2.y)+" l"),He.push(q(Ye.x4.x)+" "+q(Ye.x4.y)+" m"),He.push(q(Ye.x3.x)+" "+q(Ye.x3.y)+" l"),He.push("s"),He.push("Q"),Pe.stream=He.join(`
`),Pe},YesPushDown:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=et.internal.calculateCross(Se),Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+q(et.internal.getWidth(Se))+" "+q(et.internal.getHeight(Se))+" re"),Ye.push("f"),Ye.push("q"),Ye.push("1 1 "+q(et.internal.getWidth(Se)-2)+" "+q(et.internal.getHeight(Se)-2)+" re"),Ye.push("W"),Ye.push("n"),Ye.push(q(He.x1.x)+" "+q(He.x1.y)+" m"),Ye.push(q(He.x2.x)+" "+q(He.x2.y)+" l"),Ye.push(q(He.x4.x)+" "+q(He.x4.y)+" m"),Ye.push(q(He.x3.x)+" "+q(He.x3.y)+" l"),Ye.push("s"),Ye.push("Q"),Pe.stream=Ye.join(`
`),Pe},OffPushDown:function(Se){var Pe=Te(Se);Pe.scope=Se.scope;var He=[];return He.push("0.749023 g"),He.push("0 0 "+q(et.internal.getWidth(Se))+" "+q(et.internal.getHeight(Se))+" re"),He.push("f"),Pe.stream=He.join(`
`),Pe}}},createDefaultAppearanceStream:function(Se){var Pe=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,He=Se.scope.__private__.encodeColorString(Se.color);return"/"+Pe+" "+Se.fontSize+" Tf "+He}};et.internal={Bezier_C:.551915024494,calculateCross:function(Se){var Pe=et.internal.getWidth(Se),He=et.internal.getHeight(Se),Ye=Math.min(Pe,He);return{x1:{x:(Pe-Ye)/2,y:(He-Ye)/2+Ye},x2:{x:(Pe-Ye)/2+Ye,y:(He-Ye)/2},x3:{x:(Pe-Ye)/2,y:(He-Ye)/2},x4:{x:(Pe-Ye)/2+Ye,y:(He-Ye)/2+Ye}}}},et.internal.getWidth=function(Qe){var Se=0;return S()(Qe)==="object"&&(Se=Ae(Qe.Rect[2])),Se},et.internal.getHeight=function(Qe){var Se=0;return S()(Qe)==="object"&&(Se=Ae(Qe.Rect[3])),Se};var ur=V.addField=function(Qe){if(Ee(this,Qe),!(Qe instanceof lt))throw new Error("Invalid argument passed to jsPDF.addField.");var Se;return(Se=Qe).scope.internal.acroformPlugin.printedOut&&(Se.scope.internal.acroformPlugin.printedOut=!1,Se.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Se.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Se),Qe.page=Qe.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=tt,V.AcroFormListBox=ke,V.AcroFormComboBox=st,V.AcroFormEditBox=Ve,V.AcroFormButton=Ot,V.AcroFormPushButton=Ut,V.AcroFormRadioButton=ir,V.AcroFormCheckBox=Sr,V.AcroFormTextField=mt,V.AcroFormPasswordField=or,V.AcroFormAppearance=et,V.AcroForm={ChoiceField:tt,ListBox:ke,ComboBox:st,EditBox:Ve,Button:Ot,PushButton:Ut,RadioButton:ir,CheckBox:Sr,TextField:mt,PasswordField:or,Appearance:et},H.AcroForm={ChoiceField:tt,ListBox:ke,ComboBox:st,EditBox:Ve,Button:Ot,PushButton:Ut,RadioButton:ir,CheckBox:Sr,TextField:mt,PasswordField:or,Appearance:et};var qr=H.AcroForm;function Fe(Qe){return Qe.reduce(function(Se,Pe,He){return Se[Pe]=He,Se},{})}!function(Qe){Qe.__addimage__={};var Se="UNKNOWN",Pe={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]]},He=Qe.__addimage__.getImageFileTypeByImageData=function(xt,Tt){var Lt,_t,Xt,er,nr,br=Se;if((Tt=Tt||Se)==="RGBA"||xt.data!==void 0&&xt.data instanceof Uint8ClampedArray&&"height"in xt&&"width"in xt)return"RGBA";if(Vr(xt))for(nr in Pe)for(Xt=Pe[nr],Lt=0;Lt<Xt.length;Lt+=1){for(er=!0,_t=0;_t<Xt[Lt].length;_t+=1)if(Xt[Lt][_t]!==void 0&&Xt[Lt][_t]!==xt[_t]){er=!1;break}if(er===!0){br=nr;break}}else for(nr in Pe)for(Xt=Pe[nr],Lt=0;Lt<Xt.length;Lt+=1){for(er=!0,_t=0;_t<Xt[Lt].length;_t+=1)if(Xt[Lt][_t]!==void 0&&Xt[Lt][_t]!==xt.charCodeAt(_t)){er=!1;break}if(er===!0){br=nr;break}}return br===Se&&Tt!==Se&&(br=Tt),br},Ye=function xt(Tt){for(var Lt=this.internal.write,_t=this.internal.putStream,Xt=(0,this.internal.getFilters)();Xt.indexOf("FlateEncode")!==-1;)Xt.splice(Xt.indexOf("FlateEncode"),1);Tt.objectId=this.internal.newObject();var er=[];if(er.push({key:"Type",value:"/XObject"}),er.push({key:"Subtype",value:"/Image"}),er.push({key:"Width",value:Tt.width}),er.push({key:"Height",value:Tt.height}),Tt.colorSpace===Un.INDEXED?er.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Tt.palette.length/3-1)+" "+("sMask"in Tt&&Tt.sMask!==void 0?Tt.objectId+2:Tt.objectId+1)+" 0 R]"}):(er.push({key:"ColorSpace",value:"/"+Tt.colorSpace}),Tt.colorSpace===Un.DEVICE_CMYK&&er.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),er.push({key:"BitsPerComponent",value:Tt.bitsPerComponent}),"decodeParameters"in Tt&&Tt.decodeParameters!==void 0&&er.push({key:"DecodeParms",value:"<<"+Tt.decodeParameters+">>"}),"transparency"in Tt&&Array.isArray(Tt.transparency)){for(var nr="",br=0,On=Tt.transparency.length;br<On;br++)nr+=Tt.transparency[br]+" "+Tt.transparency[br]+" ";er.push({key:"Mask",value:"["+nr+"]"})}Tt.sMask!==void 0&&er.push({key:"SMask",value:Tt.objectId+1+" 0 R"});var bn=Tt.filter!==void 0?["/"+Tt.filter]:void 0;if(_t({data:Tt.data,additionalKeyValues:er,alreadyAppliedFilters:bn,objectId:Tt.objectId}),Lt("endobj"),"sMask"in Tt&&Tt.sMask!==void 0){var qn="/Predictor "+Tt.predictor+" /Colors 1 /BitsPerComponent "+Tt.bitsPerComponent+" /Columns "+Tt.width,an={width:Tt.width,height:Tt.height,colorSpace:"DeviceGray",bitsPerComponent:Tt.bitsPerComponent,decodeParameters:qn,data:Tt.sMask};"filter"in Tt&&(an.filter=Tt.filter),xt.call(this,an)}if(Tt.colorSpace===Un.INDEXED){var _r=this.internal.newObject();_t({data:kn(new Uint8Array(Tt.palette)),objectId:_r}),Lt("endobj")}},ze=function(){var Tt=this.internal.collections.addImage_images;for(var Lt in Tt)Ye.call(this,Tt[Lt])},$e=function(){var Tt,Lt=this.internal.collections.addImage_images,_t=this.internal.write;for(var Xt in Lt)_t("/I"+(Tt=Lt[Xt]).index,Tt.objectId,"0","R")},St=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",ze),this.internal.events.subscribe("putXobjectDict",$e))},ft=function(){var Tt=this.internal.collections.addImage_images;return St.call(this),Tt},Ht=function(){return Object.keys(this.internal.collections.addImage_images).length},Er=function(Tt){return typeof Qe["process"+Tt.toUpperCase()]=="function"},Fr=function(Tt){return S()(Tt)==="object"&&Tt.nodeType===1},tn=function(Tt,Lt){if(Tt.nodeName==="IMG"&&Tt.hasAttribute("src")){var _t=""+Tt.getAttribute("src");if(_t.indexOf("data:image/")===0)return t(unescape(_t).split("base64,").pop());var Xt=Qe.loadFile(_t,!0);if(Xt!==void 0)return Xt}if(Tt.nodeName==="CANVAS"){if(Tt.width===0||Tt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Tt.width+", height: "+Tt.height);var er;switch(Lt){case"PNG":er="image/png";break;case"WEBP":er="image/webp";break;case"JPEG":case"JPG":default:er="image/jpeg"}return t(Tt.toDataURL(er,1).split("base64,").pop())}},Zt=function(Tt){var Lt=this.internal.collections.addImage_images;if(Lt){for(var _t in Lt)if(Tt===Lt[_t].alias)return Lt[_t]}},Rn=function(Tt,Lt,_t){return Tt||Lt||(Tt=-96,Lt=-96),Tt<0&&(Tt=-1*_t.width*72/Tt/this.internal.scaleFactor),Lt<0&&(Lt=-1*_t.height*72/Lt/this.internal.scaleFactor),Tt===0&&(Tt=Lt*_t.width/_t.height),Lt===0&&(Lt=Tt*_t.height/_t.width),[Tt,Lt]},vn=function(Tt,Lt,_t,Xt,er,nr){var br=Rn.call(this,_t,Xt,er),On=this.internal.getCoordinateString,bn=this.internal.getVerticalCoordinateString,qn=ft.call(this);if(_t=br[0],Xt=br[1],qn[er.index]=er,nr){nr*=Math.PI/180;var an=Math.cos(nr),_r=Math.sin(nr),mn=function(Jn){return Jn.toFixed(4)},In=[mn(an),mn(_r),mn(-1*_r),mn(an),0,0,"cm"]}this.internal.write("q"),nr?(this.internal.write([1,"0","0",1,On(Tt),bn(Lt+Xt),"cm"].join(" ")),this.internal.write(In.join(" ")),this.internal.write([On(_t),"0","0",On(Xt),"0","0","cm"].join(" "))):this.internal.write([On(_t),"0","0",On(Xt),On(Tt),bn(Lt+Xt),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+er.index+" Do"),this.internal.write("Q")},Un=Qe.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"};Qe.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 hn=Qe.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Wr=Qe.__addimage__.sHashCode=function(xt){var Tt,Lt,_t=0;if(typeof xt=="string")for(Lt=xt.length,Tt=0;Tt<Lt;Tt++)_t=(_t<<5)-_t+xt.charCodeAt(Tt),_t|=0;else if(Vr(xt))for(Lt=xt.byteLength/2,Tt=0;Tt<Lt;Tt++)_t=(_t<<5)-_t+xt[Tt],_t|=0;return _t},Kn=Qe.__addimage__.validateStringAsBase64=function(xt){(xt=xt||"").toString().trim();var Tt=!0;return xt.length===0&&(Tt=!1),xt.length%4!=0&&(Tt=!1),/^[A-Za-z0-9+/]+$/.test(xt.substr(0,xt.length-2))===!1&&(Tt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(xt.substr(-2))===!1&&(Tt=!1),Tt},ei=Qe.__addimage__.extractImageFromDataUrl=function(xt){var Tt=(xt=xt||"").split("base64,"),Lt=null;if(Tt.length===2){var _t=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Tt[0]);Array.isArray(_t)&&(Lt={mimeType:_t[1],charset:_t[2],data:Tt[1]})}return Lt},Si=Qe.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Qe.__addimage__.isArrayBuffer=function(xt){return Si()&&xt instanceof ArrayBuffer};var Vr=Qe.__addimage__.isArrayBufferView=function(xt){return Si()&&typeof Uint32Array!="undefined"&&(xt instanceof Int8Array||xt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&xt instanceof Uint8ClampedArray||xt instanceof Int16Array||xt instanceof Uint16Array||xt instanceof Int32Array||xt instanceof Uint32Array||xt instanceof Float32Array||xt instanceof Float64Array)},fn=Qe.__addimage__.binaryStringToUint8Array=function(xt){for(var Tt=xt.length,Lt=new Uint8Array(Tt),_t=0;_t<Tt;_t++)Lt[_t]=xt.charCodeAt(_t);return Lt},kn=Qe.__addimage__.arrayBufferToBinaryString=function(xt){for(var Tt="",Lt=Vr(xt)?xt:new Uint8Array(xt),_t=0;_t<Lt.length;_t+=8192)Tt+=String.fromCharCode.apply(null,Lt.subarray(_t,_t+8192));return Tt};Qe.addImage=function(){var xt,Tt,Lt,_t,Xt,er,nr,br,On;if(typeof arguments[1]=="number"?(Tt=Se,Lt=arguments[1],_t=arguments[2],Xt=arguments[3],er=arguments[4],nr=arguments[5],br=arguments[6],On=arguments[7]):(Tt=arguments[1],Lt=arguments[2],_t=arguments[3],Xt=arguments[4],er=arguments[5],nr=arguments[6],br=arguments[7],On=arguments[8]),S()(xt=arguments[0])==="object"&&!Fr(xt)&&"imageData"in xt){var bn=xt;xt=bn.imageData,Tt=bn.format||Tt||Se,Lt=bn.x||Lt||0,_t=bn.y||_t||0,Xt=bn.w||bn.width||Xt,er=bn.h||bn.height||er,nr=bn.alias||nr,br=bn.compression||br,On=bn.rotation||bn.angle||On}var qn=this.internal.getFilters();if(br===void 0&&qn.indexOf("FlateEncode")!==-1&&(br="SLOW"),isNaN(Lt)||isNaN(_t))throw new Error("Invalid coordinates passed to jsPDF.addImage");St.call(this);var an=It.call(this,xt,Tt,nr,br);return vn.call(this,Lt,_t,Xt,er,an,On),this};var It=function(Tt,Lt,_t,Xt){var er,nr,br;if(typeof Tt=="string"&&He(Tt)===Se){Tt=unescape(Tt);var On=yt(Tt,!1);(On!==""||(On=Qe.loadFile(Tt,!0))!==void 0)&&(Tt=On)}if(Fr(Tt)&&(Tt=tn(Tt,Lt)),Lt=He(Tt,Lt),!Er(Lt))throw new Error("addImage does not support files of type '"+Lt+"', please ensure that a plugin for '"+Lt+"' support is added.");if(((br=_t)==null||br.length===0)&&(_t=function(bn){return typeof bn=="string"||Vr(bn)?Wr(bn):Vr(bn.data)?Wr(bn.data):null}(Tt)),(er=Zt.call(this,_t))||(Si()&&(Tt instanceof Uint8Array||Lt==="RGBA"||(nr=Tt,Tt=fn(Tt))),er=this["process"+Lt.toUpperCase()](Tt,Ht.call(this),_t,function(bn){return bn&&typeof bn=="string"&&(bn=bn.toUpperCase()),bn in Qe.image_compression?bn:hn.NONE}(Xt),nr)),!er)throw new Error("An unknown error occurred whilst processing the image.");return er},yt=Qe.__addimage__.convertBase64ToBinaryString=function(xt,Tt){var Lt;Tt=typeof Tt!="boolean"||Tt;var _t,Xt="";if(typeof xt=="string"){_t=(Lt=ei(xt))!==null?Lt.data:xt;try{Xt=t(_t)}catch(er){if(Tt)throw Kn(_t)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+er.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Xt};Qe.getImageProperties=function(xt){var Tt,Lt,_t="";if(Fr(xt)&&(xt=tn(xt)),typeof xt=="string"&&He(xt)===Se&&((_t=yt(xt,!1))===""&&(_t=Qe.loadFile(xt)||""),xt=_t),Lt=He(xt),!Er(Lt))throw new Error("addImage does not support files of type '"+Lt+"', please ensure that a plugin for '"+Lt+"' support is added.");if(!Si()||xt instanceof Uint8Array||(xt=fn(xt)),!(Tt=this["process"+Lt.toUpperCase()](xt)))throw new Error("An unknown error occurred whilst processing the image");return Tt.fileType=Lt,Tt}}(H.API),function(Qe){var Se=function(He){if(He!==void 0&&He!="")return!0};H.API.events.push(["addPage",function(Pe){this.internal.getPageInfo(Pe.pageNumber).pageContext.annotations=[]}]),Qe.events.push(["putPage",function(Pe){for(var He,Ye,ze,$e=this.internal.getCoordinateString,St=this.internal.getVerticalCoordinateString,ft=this.internal.getPageInfoByObjId(Pe.objId),Ht=Pe.pageContext.annotations,Er=!1,Fr=0;Fr<Ht.length&&!Er;Fr++)switch((He=Ht[Fr]).type){case"link":(Se(He.options.url)||Se(He.options.pageNumber))&&(Er=!0);break;case"reference":case"text":case"freetext":Er=!0}if(Er!=0){this.internal.write("/Annots [");for(var tn=0;tn<Ht.length;tn++){He=Ht[tn];var Zt=this.internal.pdfEscape,Rn=this.internal.getEncryptor(Pe.objId);switch(He.type){case"reference":this.internal.write(" "+He.object.objId+" 0 R ");break;case"text":var vn=this.internal.newAdditionalObject(),Un=this.internal.newAdditionalObject(),hn=this.internal.getEncryptor(vn.objId),Wr=He.title||"Note";ze="<</Type /Annot /Subtype /Text "+(Ye="/Rect ["+$e(He.bounds.x)+" "+St(He.bounds.y+He.bounds.h)+" "+$e(He.bounds.x+He.bounds.w)+" "+St(He.bounds.y)+"] ")+"/Contents ("+Zt(hn(He.contents))+")",ze+=" /Popup "+Un.objId+" 0 R",ze+=" /P "+ft.objId+" 0 R",ze+=" /T ("+Zt(hn(Wr))+") >>",vn.content=ze;var Kn=vn.objId+" 0 R";ze="<</Type /Annot /Subtype /Popup "+(Ye="/Rect ["+$e(He.bounds.x+30)+" "+St(He.bounds.y+He.bounds.h)+" "+$e(He.bounds.x+He.bounds.w+30)+" "+St(He.bounds.y)+"] ")+" /Parent "+Kn,He.open&&(ze+=" /Open true"),ze+=" >>",Un.content=ze,this.internal.write(vn.objId,"0 R",Un.objId,"0 R");break;case"freetext":Ye="/Rect ["+$e(He.bounds.x)+" "+St(He.bounds.y)+" "+$e(He.bounds.x+He.bounds.w)+" "+St(He.bounds.y+He.bounds.h)+"] ";var ei=He.color||"#000000";ze="<</Type /Annot /Subtype /FreeText "+Ye+"/Contents ("+Zt(Rn(He.contents))+")",ze+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ei+")",ze+=" /Border [0 0 0]",ze+=" >>",this.internal.write(ze);break;case"link":if(He.options.name){var Si=this.annotations._nameMap[He.options.name];He.options.pageNumber=Si.page,He.options.top=Si.y}else He.options.top||(He.options.top=0);if(Ye="/Rect ["+He.finalBounds.x+" "+He.finalBounds.y+" "+He.finalBounds.w+" "+He.finalBounds.h+"] ",ze="",He.options.url)ze="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /A <</S /URI /URI ("+Zt(Rn(He.options.url))+") >>";else if(He.options.pageNumber)switch(ze="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(He.options.pageNumber).objId+" 0 R",He.options.magFactor=He.options.magFactor||"XYZ",He.options.magFactor){case"Fit":ze+=" /Fit]";break;case"FitH":ze+=" /FitH "+He.options.top+"]";break;case"FitV":He.options.left=He.options.left||0,ze+=" /FitV "+He.options.left+"]";break;case"XYZ":default:var Vr=St(He.options.top);He.options.left=He.options.left||0,He.options.zoom===void 0&&(He.options.zoom=0),ze+=" /XYZ "+He.options.left+" "+Vr+" "+He.options.zoom+"]"}ze!=""&&(ze+=" >>",this.internal.write(ze))}}this.internal.write("]")}}]),Qe.createAnnotation=function(Pe){var He=this.internal.getCurrentPageInfo();switch(Pe.type){case"link":this.link(Pe.bounds.x,Pe.bounds.y,Pe.bounds.w,Pe.bounds.h,Pe);break;case"text":case"freetext":He.pageContext.annotations.push(Pe)}},Qe.link=function(Pe,He,Ye,ze,$e){var St=this.internal.getCurrentPageInfo(),ft=this.internal.getCoordinateString,Ht=this.internal.getVerticalCoordinateString;St.pageContext.annotations.push({finalBounds:{x:ft(Pe),y:Ht(He),w:ft(Pe+Ye),h:Ht(He+ze)},options:$e,type:"link"})},Qe.textWithLink=function(Pe,He,Ye,ze){var $e,St,ft=this.getTextWidth(Pe),Ht=this.internal.getLineHeight()/this.internal.scaleFactor;if(ze.maxWidth!==void 0){St=ze.maxWidth;var Er=this.splitTextToSize(Pe,St).length;$e=Math.ceil(Ht*Er)}else St=ft,$e=Ht;return this.text(Pe,He,Ye,ze),Ye+=.2*Ht,ze.align==="center"&&(He-=ft/2),ze.align==="right"&&(He-=ft),this.link(He,Ye-Ht,St,$e,ze),ft},Qe.getTextWidth=function(Pe){var He=this.internal.getFontSize();return this.getStringUnitWidth(Pe)*He/this.internal.scaleFactor}}(H.API),function(Qe){var Se={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]},Pe={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}},He={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ye=[1570,1571,1573,1575];Qe.__arabicParser__={};var ze=Qe.__arabicParser__.isInArabicSubstitutionA=function(vn){return Se[vn.charCodeAt(0)]!==void 0},$e=Qe.__arabicParser__.isArabicLetter=function(vn){return typeof vn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(vn)},St=Qe.__arabicParser__.isArabicEndLetter=function(vn){return $e(vn)&&ze(vn)&&Se[vn.charCodeAt(0)].length<=2},ft=Qe.__arabicParser__.isArabicAlfLetter=function(vn){return $e(vn)&&Ye.indexOf(vn.charCodeAt(0))>=0};Qe.__arabicParser__.arabicLetterHasIsolatedForm=function(vn){return $e(vn)&&ze(vn)&&Se[vn.charCodeAt(0)].length>=1};var Ht=Qe.__arabicParser__.arabicLetterHasFinalForm=function(vn){return $e(vn)&&ze(vn)&&Se[vn.charCodeAt(0)].length>=2};Qe.__arabicParser__.arabicLetterHasInitialForm=function(vn){return $e(vn)&&ze(vn)&&Se[vn.charCodeAt(0)].length>=3};var Er=Qe.__arabicParser__.arabicLetterHasMedialForm=function(vn){return $e(vn)&&ze(vn)&&Se[vn.charCodeAt(0)].length==4},Fr=Qe.__arabicParser__.resolveLigatures=function(vn){var Un=0,hn=Pe,Wr="",Kn=0;for(Un=0;Un<vn.length;Un+=1)hn[vn.charCodeAt(Un)]!==void 0?(Kn++,typeof(hn=hn[vn.charCodeAt(Un)])=="number"&&(Wr+=String.fromCharCode(hn),hn=Pe,Kn=0),Un===vn.length-1&&(hn=Pe,Wr+=vn.charAt(Un-(Kn-1)),Un-=Kn-1,Kn=0)):(hn=Pe,Wr+=vn.charAt(Un-Kn),Un-=Kn,Kn=0);return Wr};Qe.__arabicParser__.isArabicDiacritic=function(vn){return vn!==void 0&&He[vn.charCodeAt(0)]!==void 0};var tn=Qe.__arabicParser__.getCorrectForm=function(vn,Un,hn){return $e(vn)?ze(vn)===!1?-1:!Ht(vn)||!$e(Un)&&!$e(hn)||!$e(hn)&&St(Un)||St(vn)&&!$e(Un)||St(vn)&&ft(Un)||St(vn)&&St(Un)?0:Er(vn)&&$e(Un)&&!St(Un)&&$e(hn)&&Ht(hn)?3:St(vn)||!$e(hn)?1:2:-1},Zt=function(Un){var hn=0,Wr=0,Kn=0,ei="",Si="",Vr="",fn=(Un=Un||"").split("\\s+"),kn=[];for(hn=0;hn<fn.length;hn+=1){for(kn.push(""),Wr=0;Wr<fn[hn].length;Wr+=1)ei=fn[hn][Wr],Si=fn[hn][Wr-1],Vr=fn[hn][Wr+1],$e(ei)?(Kn=tn(ei,Si,Vr),kn[hn]+=Kn!==-1?String.fromCharCode(Se[ei.charCodeAt(0)][Kn]):ei):kn[hn]+=ei;kn[hn]=Fr(kn[hn])}return kn.join(" ")},Rn=Qe.__arabicParser__.processArabic=Qe.processArabic=function(){var vn,Un=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,hn=[];if(Array.isArray(Un)){var Wr=0;for(hn=[],Wr=0;Wr<Un.length;Wr+=1)Array.isArray(Un[Wr])?hn.push([Zt(Un[Wr][0]),Un[Wr][1],Un[Wr][2]]):hn.push([Zt(Un[Wr])]);vn=hn}else vn=Zt(Un);return typeof arguments[0]=="string"?vn:(arguments[0].text=vn,arguments[0])};Qe.events.push(["preProcessText",Rn])}(H.API),H.API.autoPrint=function(Qe){var Se;switch((Qe=Qe||{}).variant=Qe.variant||"non-conform",Qe.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Se=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 "+Se+" 0 R")})}return this},function(Qe){var Se=function(){var He=void 0;Object.defineProperty(this,"pdf",{get:function(){return He},set:function(Ht){He=Ht}});var Ye=150;Object.defineProperty(this,"width",{get:function(){return Ye},set:function(Ht){Ye=isNaN(Ht)||Number.isInteger(Ht)===!1||Ht<0?150:Ht,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ye+1)}});var ze=300;Object.defineProperty(this,"height",{get:function(){return ze},set:function(Ht){ze=isNaN(Ht)||Number.isInteger(Ht)===!1||Ht<0?300:Ht,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ze+1)}});var $e=[];Object.defineProperty(this,"childNodes",{get:function(){return $e},set:function(Ht){$e=Ht}});var St={};Object.defineProperty(this,"style",{get:function(){return St},set:function(Ht){St=Ht}}),Object.defineProperty(this,"parentNode",{})};Se.prototype.getContext=function(Pe,He){var Ye;if((Pe=Pe||"2d")!=="2d")return null;for(Ye in He)this.pdf.context2d.hasOwnProperty(Ye)&&(this.pdf.context2d[Ye]=He[Ye]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Se.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Qe.events.push(["initialized",function(){this.canvas=new Se,this.canvas.pdf=this}])}(H.API),function(Qe){var Se={left:0,top:0,bottom:0,right:0},Pe=!1,He=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({},Se),this.internal.__cell__.margins.width=this.getPageWidth(),Ye.call(this))},Ye=function(){this.internal.__cell__.lastCell=new ze,this.internal.__cell__.pages=1},ze=function(){var Ht=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ht},set:function(hn){Ht=hn}});var Er=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Er},set:function(hn){Er=hn}});var Fr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Fr},set:function(hn){Fr=hn}});var tn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return tn},set:function(hn){tn=hn}});var Zt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Zt},set:function(hn){Zt=hn}});var Rn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Rn},set:function(hn){Rn=hn}});var vn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return vn},set:function(hn){vn=hn}}),this};ze.prototype.clone=function(){return new ze(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ze.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Qe.setHeaderFunction=function(ft){return He.call(this),this.internal.__cell__.headerFunction=typeof ft=="function"?ft:void 0,this},Qe.getTextDimensions=function(ft,Ht){He.call(this);var Er=(Ht=Ht||{}).fontSize||this.getFontSize(),Fr=Ht.font||this.getFont(),tn=Ht.scaleFactor||this.internal.scaleFactor,Zt=0,Rn=0,vn=0,Un=this;if(!Array.isArray(ft)&&typeof ft!="string"){if(typeof ft!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ft=String(ft)}var hn=Ht.maxWidth;hn>0?typeof ft=="string"?ft=this.splitTextToSize(ft,hn):Object.prototype.toString.call(ft)==="[object Array]"&&(ft=ft.reduce(function(Kn,ei){return Kn.concat(Un.splitTextToSize(ei,hn))},[])):ft=Array.isArray(ft)?ft:[ft];for(var Wr=0;Wr<ft.length;Wr++)Zt<(vn=this.getStringUnitWidth(ft[Wr],{font:Fr})*Er)&&(Zt=vn);return Zt!==0&&(Rn=ft.length),{w:Zt/=tn,h:Math.max((Rn*Er*this.getLineHeightFactor()-Er*(this.getLineHeightFactor()-1))/tn,0)}},Qe.cellAddPage=function(){He.call(this),this.addPage();var ft=this.internal.__cell__.margins||Se;return this.internal.__cell__.lastCell=new ze(ft.left,ft.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var $e=Qe.cell=function(){var ft;ft=arguments[0]instanceof ze?arguments[0]:new ze(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),He.call(this);var Ht=this.internal.__cell__.lastCell,Er=this.internal.__cell__.padding,Fr=this.internal.__cell__.margins||Se,tn=this.internal.__cell__.tableHeaderRow,Zt=this.internal.__cell__.printHeaders;return Ht.lineNumber!==void 0&&(Ht.lineNumber===ft.lineNumber?(ft.x=(Ht.x||0)+(Ht.width||0),ft.y=Ht.y||0):Ht.y+Ht.height+ft.height+Fr.bottom>this.getPageHeight()?(this.cellAddPage(),ft.y=Fr.top,Zt&&tn&&(this.printHeaderRow(ft.lineNumber,!0),ft.y+=tn[0].height)):ft.y=Ht.y+Ht.height||ft.y),ft.text[0]!==void 0&&(this.rect(ft.x,ft.y,ft.width,ft.height,Pe===!0?"FD":void 0),ft.align==="right"?this.text(ft.text,ft.x+ft.width-Er,ft.y+Er,{align:"right",baseline:"top"}):ft.align==="center"?this.text(ft.text,ft.x+ft.width/2,ft.y+Er,{align:"center",baseline:"top",maxWidth:ft.width-Er-Er}):this.text(ft.text,ft.x+Er,ft.y+Er,{align:"left",baseline:"top",maxWidth:ft.width-Er-Er})),this.internal.__cell__.lastCell=ft,this};Qe.table=function(ft,Ht,Er,Fr,tn){if(He.call(this),!Er)throw new Error("No data for PDF table.");var Zt,Rn,vn,Un,hn=[],Wr=[],Kn=[],ei={},Si={},Vr=[],fn=[],kn=(tn=tn||{}).autoSize||!1,It=tn.printHeaders!==!1,yt=tn.css&&tn.css["font-size"]!==void 0?16*tn.css["font-size"]:tn.fontSize||12,xt=tn.margins||Object.assign({width:this.getPageWidth()},Se),Tt=typeof tn.padding=="number"?tn.padding:3,Lt=tn.headerBackgroundColor||"#c8c8c8",_t=tn.headerTextColor||"#000";if(Ye.call(this),this.internal.__cell__.printHeaders=It,this.internal.__cell__.margins=xt,this.internal.__cell__.table_font_size=yt,this.internal.__cell__.padding=Tt,this.internal.__cell__.headerBackgroundColor=Lt,this.internal.__cell__.headerTextColor=_t,this.setFontSize(yt),Fr==null)Wr=hn=Object.keys(Er[0]),Kn=hn.map(function(){return"left"});else if(Array.isArray(Fr)&&S()(Fr[0])==="object")for(hn=Fr.map(function(bn){return bn.name}),Wr=Fr.map(function(bn){return bn.prompt||bn.name||""}),Kn=Fr.map(function(bn){return bn.align||"left"}),Zt=0;Zt<Fr.length;Zt+=1)Si[Fr[Zt].name]=Fr[Zt].width*(19.049976/25.4);else Array.isArray(Fr)&&typeof Fr[0]=="string"&&(Wr=hn=Fr,Kn=hn.map(function(){return"left"}));if(kn||Array.isArray(Fr)&&typeof Fr[0]=="string")for(Zt=0;Zt<hn.length;Zt+=1){for(ei[Un=hn[Zt]]=Er.map(function(bn){return bn[Un]}),this.setFont(void 0,"bold"),Vr.push(this.getTextDimensions(Wr[Zt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Rn=ei[Un],this.setFont(void 0,"normal"),vn=0;vn<Rn.length;vn+=1)Vr.push(this.getTextDimensions(Rn[vn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Si[Un]=Math.max.apply(null,Vr)+Tt+Tt,Vr=[]}if(It){var Xt={};for(Zt=0;Zt<hn.length;Zt+=1)Xt[hn[Zt]]={},Xt[hn[Zt]].text=Wr[Zt],Xt[hn[Zt]].align=Kn[Zt];var er=St.call(this,Xt,Si);fn=hn.map(function(bn){return new ze(ft,Ht,Si[bn],er,Xt[bn].text,void 0,Xt[bn].align)}),this.setTableHeaderRow(fn),this.printHeaderRow(1,!1)}var nr=Fr.reduce(function(bn,qn){return bn[qn.name]=qn.align,bn},{});for(Zt=0;Zt<Er.length;Zt+=1){"rowStart"in tn&&tn.rowStart instanceof Function&&tn.rowStart({row:Zt,data:Er[Zt]},this);var br=St.call(this,Er[Zt],Si);for(vn=0;vn<hn.length;vn+=1){var On=Er[Zt][hn[vn]];"cellStart"in tn&&tn.cellStart instanceof Function&&tn.cellStart({row:Zt,col:vn,data:On},this),$e.call(this,new ze(ft,Ht,Si[hn[vn]],br,On,Zt+2,nr[hn[vn]]))}}return this.internal.__cell__.table_x=ft,this.internal.__cell__.table_y=Ht,this};var St=function(Ht,Er){var Fr=this.internal.__cell__.padding,tn=this.internal.__cell__.table_font_size,Zt=this.internal.scaleFactor;return Object.keys(Ht).map(function(Rn){var vn=Ht[Rn];return this.splitTextToSize(vn.hasOwnProperty("text")?vn.text:vn,Er[Rn]-Fr-Fr)},this).map(function(Rn){return this.getLineHeightFactor()*Rn.length*tn/Zt+Fr+Fr},this).reduce(function(Rn,vn){return Math.max(Rn,vn)},0)};Qe.setTableHeaderRow=function(ft){He.call(this),this.internal.__cell__.tableHeaderRow=ft},Qe.printHeaderRow=function(ft,Ht){if(He.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Er;if(Pe=!0,typeof this.internal.__cell__.headerFunction=="function"){var Fr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new ze(Fr[0],Fr[1],Fr[2],Fr[3],void 0,-1)}this.setFont(void 0,"bold");for(var tn=[],Zt=0;Zt<this.internal.__cell__.tableHeaderRow.length;Zt+=1){Er=this.internal.__cell__.tableHeaderRow[Zt].clone(),Ht&&(Er.y=this.internal.__cell__.margins.top||0,tn.push(Er)),Er.lineNumber=ft;var Rn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),$e.call(this,Er),this.setTextColor(Rn)}tn.length>0&&this.setTableHeaderRow(tn),this.setFont(void 0,"normal"),Pe=!1}}(H.API);var $t={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Lr=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],pt=Fe(Lr),qt=[100,200,300,400,500,600,700,800,900],vr=Fe(qt);function pn(Qe){var Se=Qe.family.replace(/"|'/g,"").toLowerCase(),Pe=function(ze){return $t[ze=ze||"normal"]?ze:"normal"}(Qe.style),He=function(ze){if(!ze)return 400;if(typeof ze=="number")return ze>=100&&ze<=900&&ze%100==0?ze:400;if(/^\d00$/.test(ze))return parseInt(ze);switch(ze){case"bold":return 700;case"normal":default:return 400}}(Qe.weight),Ye=function(ze){return typeof pt[ze=ze||"normal"]=="number"?ze:"normal"}(Qe.stretch);return{family:Se,style:Pe,weight:He,stretch:Ye,src:Qe.src||[],ref:Qe.ref||{name:Se,style:[Ye,Pe,He].join(" ")}}}function fr(Qe,Se,Pe,He){var Ye;for(Ye=Pe;Ye>=0&&Ye<Se.length;Ye+=He)if(Qe[Se[Ye]])return Qe[Se[Ye]];for(Ye=Pe;Ye>=0&&Ye<Se.length;Ye-=He)if(Qe[Se[Ye]])return Qe[Se[Ye]]}var gr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},dn={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Qt(Qe){return[Qe.stretch,Qe.style,Qe.weight,Qe.family].join(" ")}function sr(Qe,Se,Pe){for(var He=(Pe=Pe||{}).defaultFontFamily||"times",Ye=Object.assign({},gr,Pe.genericFontFamilies||{}),ze=null,$e=null,St=0;St<Se.length;++St)if(Ye[(ze=pn(Se[St])).family]&&(ze.family=Ye[ze.family]),Qe.hasOwnProperty(ze.family)){$e=Qe[ze.family];break}if(!($e=$e||Qe[He]))throw new Error("Could not find a font-family for the rule '"+Qt(ze)+"' and default family '"+He+"'.");if($e=function(ft,Ht){if(Ht[ft])return Ht[ft];var Er=pt[ft],Fr=Er<=pt.normal?-1:1,tn=fr(Ht,Lr,Er,Fr);if(!tn)throw new Error("Could not find a matching font-stretch value for "+ft);return tn}(ze.stretch,$e),$e=function(ft,Ht){if(Ht[ft])return Ht[ft];for(var Er=$t[ft],Fr=0;Fr<Er.length;++Fr)if(Ht[Er[Fr]])return Ht[Er[Fr]];throw new Error("Could not find a matching font-style for "+ft)}(ze.style,$e),!($e=function(ft,Ht){if(Ht[ft])return Ht[ft];if(ft===400&&Ht[500])return Ht[500];if(ft===500&&Ht[400])return Ht[400];var Er=vr[ft],Fr=fr(Ht,qt,Er,ft<400?-1:1);if(!Fr)throw new Error("Could not find a matching font-weight for value "+ft);return Fr}(ze.weight,$e)))throw new Error("Failed to resolve a font for the rule '"+Qt(ze)+"'.");return $e}function Qr(Qe){return Qe.trimLeft()}function Cn(Qe,Se){for(var Pe=0;Pe<Qe.length;){if(Qe.charAt(Pe)===Se)return[Qe.substring(0,Pe),Qe.substring(Pe+1)];Pe+=1}return null}function Fn(Qe){var Se=Qe.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Se===null?null:[Se[0],Qe.substring(Se[0].length)]}var ti,ki,Dn,Bn=["times"];!function(Qe){var Se,Pe,He,Ye,ze,$e,St,ft,Ht,Er=function(_r){return _r=_r||{},this.isStrokeTransparent=_r.isStrokeTransparent||!1,this.strokeOpacity=_r.strokeOpacity||1,this.strokeStyle=_r.strokeStyle||"#000000",this.fillStyle=_r.fillStyle||"#000000",this.isFillTransparent=_r.isFillTransparent||!1,this.fillOpacity=_r.fillOpacity||1,this.font=_r.font||"10px sans-serif",this.textBaseline=_r.textBaseline||"alphabetic",this.textAlign=_r.textAlign||"left",this.lineWidth=_r.lineWidth||1,this.lineJoin=_r.lineJoin||"miter",this.lineCap=_r.lineCap||"butt",this.path=_r.path||[],this.transform=_r.transform!==void 0?_r.transform.clone():new ft,this.globalCompositeOperation=_r.globalCompositeOperation||"normal",this.globalAlpha=_r.globalAlpha||1,this.clip_path=_r.clip_path||[],this.currentPoint=_r.currentPoint||new $e,this.miterLimit=_r.miterLimit||10,this.lastPoint=_r.lastPoint||new $e,this.lineDashOffset=_r.lineDashOffset||0,this.lineDash=_r.lineDash||[],this.margin=_r.margin||[0,0,0,0],this.prevPageLastElemOffset=_r.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _r.ignoreClearRect!="boolean"||_r.ignoreClearRect,this};Qe.events.push(["initialized",function(){this.context2d=new Fr(this),Se=this.internal.f2,Pe=this.internal.getCoordinateString,He=this.internal.getVerticalCoordinateString,Ye=this.internal.getHorizontalCoordinate,ze=this.internal.getVerticalCoordinate,$e=this.internal.Point,St=this.internal.Rectangle,ft=this.internal.Matrix,Ht=new Er}]);var Fr=function(_r){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var mn=_r;Object.defineProperty(this,"pdf",{get:function(){return mn}});var In=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return In},set:function(Ti){In=Boolean(Ti)}});var Wn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Wn},set:function(Ti){Wn=Boolean(Ti)}});var Jn=0;Object.defineProperty(this,"posX",{get:function(){return Jn},set:function(Ti){isNaN(Ti)||(Jn=Ti)}});var Ei=0;Object.defineProperty(this,"posY",{get:function(){return Ei},set:function(Ti){isNaN(Ti)||(Ei=Ti)}}),Object.defineProperty(this,"margin",{get:function(){return Ht.margin},set:function(Ti){var Ji;typeof Ti=="number"?Ji=[Ti,Ti,Ti,Ti]:((Ji=new Array(4))[0]=Ti[0],Ji[1]=Ti.length>=2?Ti[1]:Ji[0],Ji[2]=Ti.length>=3?Ti[2]:Ji[0],Ji[3]=Ti.length>=4?Ti[3]:Ji[1]),Ht.margin=Ji}});var yi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return yi},set:function(Ti){yi=Ti}});var mi=0;Object.defineProperty(this,"lastBreak",{get:function(){return mi},set:function(Ti){mi=Ti}});var Vi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Vi},set:function(Ti){Vi=Ti}}),Object.defineProperty(this,"ctx",{get:function(){return Ht},set:function(Ti){Ti instanceof Er&&(Ht=Ti)}}),Object.defineProperty(this,"path",{get:function(){return Ht.path},set:function(Ti){Ht.path=Ti}});var la=[];Object.defineProperty(this,"ctxStack",{get:function(){return la},set:function(Ti){la=Ti}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ti){var Ji;Ji=tn(Ti),this.ctx.fillStyle=Ji.style,this.ctx.isFillTransparent=Ji.a===0,this.ctx.fillOpacity=Ji.a,this.pdf.setFillColor(Ji.r,Ji.g,Ji.b,{a:Ji.a}),this.pdf.setTextColor(Ji.r,Ji.g,Ji.b,{a:Ji.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ti){var Ji=tn(Ti);this.ctx.strokeStyle=Ji.style,this.ctx.isStrokeTransparent=Ji.a===0,this.ctx.strokeOpacity=Ji.a,Ji.a===0?this.pdf.setDrawColor(255,255,255):(Ji.a,this.pdf.setDrawColor(Ji.r,Ji.g,Ji.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ti){["butt","round","square"].indexOf(Ti)!==-1&&(this.ctx.lineCap=Ti,this.pdf.setLineCap(Ti))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ti){isNaN(Ti)||(this.ctx.lineWidth=Ti,this.pdf.setLineWidth(Ti))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ti){["bevel","round","miter"].indexOf(Ti)!==-1&&(this.ctx.lineJoin=Ti,this.pdf.setLineJoin(Ti))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ti){isNaN(Ti)||(this.ctx.miterLimit=Ti,this.pdf.setMiterLimit(Ti))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ti){this.ctx.textBaseline=Ti}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ti){["right","end","center","left","start"].indexOf(Ti)!==-1&&(this.ctx.textAlign=Ti)}});var Gi=null;function ia(xn,Ti){if(Gi===null){var Ji=function(Wi){var qi=[];return Object.keys(Wi).forEach(function(Ir){Wi[Ir].forEach(function(ar){var nn=null;switch(ar){case"bold":nn={family:Ir,weight:"bold"};break;case"italic":nn={family:Ir,style:"italic"};break;case"bolditalic":nn={family:Ir,weight:"bold",style:"italic"};break;case"":case"normal":nn={family:Ir}}nn!==null&&(nn.ref={name:Ir,style:ar},qi.push(nn))})}),qi}(xn.getFontList());Gi=function(Wi){for(var qi={},Ir=0;Ir<Wi.length;++Ir){var ar=pn(Wi[Ir]),nn=ar.family,Gt=ar.stretch,wr=ar.style,Pr=ar.weight;qi[nn]=qi[nn]||{},qi[nn][Gt]=qi[nn][Gt]||{},qi[nn][Gt][wr]=qi[nn][Gt][wr]||{},qi[nn][Gt][wr][Pr]=ar}return qi}(Ji.concat(Ti))}return Gi}var $i=null;Object.defineProperty(this,"fontFaces",{get:function(){return $i},set:function(Ti){Gi=null,$i=Ti}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ti){var Ji;if(this.ctx.font=Ti,(Ji=/^\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(Ti))!==null){var Wi=Ji[1],qi=(Ji[2],Ji[3]),Ir=Ji[4],ar=(Ji[5],Ji[6]),nn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ir)[2];Ir=nn==="px"?Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor):nn==="em"?Math.floor(parseFloat(Ir)*this.pdf.getFontSize()):Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ir);var Gt=function(Ar){var Ur,un,An=[],ln=Ar.trim();if(ln==="")return Bn;if(ln in dn)return[dn[ln]];for(;ln!=="";){switch(un=null,Ur=(ln=Qr(ln)).charAt(0)){case'"':case"'":un=Cn(ln.substring(1),Ur);break;default:un=Fn(ln)}if(un===null)return Bn;if(An.push(un[0]),(ln=Qr(un[1]))!==""&&ln.charAt(0)!==",")return Bn;ln=ln.replace(/^,/,"")}return An}(ar);if(this.fontFaces){var wr=sr(ia(this.pdf,this.fontFaces),Gt.map(function(Ar){return{family:Ar,stretch:"normal",weight:qi,style:Wi}}));this.pdf.setFont(wr.ref.name,wr.ref.style)}else{var Pr="";(qi==="bold"||parseInt(qi,10)>=700||Wi==="bold")&&(Pr="bold"),Wi==="italic"&&(Pr+="italic"),Pr.length===0&&(Pr="normal");for(var Jr="",wn={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"},bt=0;bt<Gt.length;bt++){if(this.pdf.internal.getFont(Gt[bt],Pr,{noFallback:!0,disableWarning:!0})!==void 0){Jr=Gt[bt];break}if(Pr==="bolditalic"&&this.pdf.internal.getFont(Gt[bt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Jr=Gt[bt],Pr="bold";else if(this.pdf.internal.getFont(Gt[bt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Jr=Gt[bt],Pr="normal";break}}if(Jr===""){for(var mr=0;mr<Gt.length;mr++)if(wn[Gt[mr]]){Jr=wn[Gt[mr]];break}}Jr=Jr===""?"Times":Jr,this.pdf.setFont(Jr,Pr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ti){this.ctx.globalCompositeOperation=Ti}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ti){this.ctx.globalAlpha=Ti}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ti){this.ctx.lineDashOffset=Ti,qn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ti){this.ctx.lineDash=Ti,qn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ti){this.ctx.ignoreClearRect=Boolean(Ti)}})};Fr.prototype.setLineDash=function(an){this.lineDash=an},Fr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Fr.prototype.fill=function(){ei.call(this,"fill",!1)},Fr.prototype.stroke=function(){ei.call(this,"stroke",!1)},Fr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Fr.prototype.moveTo=function(an,_r){if(isNaN(an)||isNaN(_r))throw d.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var mn=this.ctx.transform.applyToPoint(new $e(an,_r));this.path.push({type:"mt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new $e(an,_r)},Fr.prototype.closePath=function(){var an=new $e(0,0),_r=0;for(_r=this.path.length-1;_r!==-1;_r--)if(this.path[_r].type==="begin"&&S()(this.path[_r+1])==="object"&&typeof this.path[_r+1].x=="number"){an=new $e(this.path[_r+1].x,this.path[_r+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new $e(an.x,an.y)},Fr.prototype.lineTo=function(an,_r){if(isNaN(an)||isNaN(_r))throw d.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var mn=this.ctx.transform.applyToPoint(new $e(an,_r));this.path.push({type:"lt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new $e(mn.x,mn.y)},Fr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ei.call(this,null,!0)},Fr.prototype.quadraticCurveTo=function(an,_r,mn,In){if(isNaN(mn)||isNaN(In)||isNaN(an)||isNaN(_r))throw d.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Wn=this.ctx.transform.applyToPoint(new $e(mn,In)),Jn=this.ctx.transform.applyToPoint(new $e(an,_r));this.path.push({type:"qct",x1:Jn.x,y1:Jn.y,x:Wn.x,y:Wn.y}),this.ctx.lastPoint=new $e(Wn.x,Wn.y)},Fr.prototype.bezierCurveTo=function(an,_r,mn,In,Wn,Jn){if(isNaN(Wn)||isNaN(Jn)||isNaN(an)||isNaN(_r)||isNaN(mn)||isNaN(In))throw d.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ei=this.ctx.transform.applyToPoint(new $e(Wn,Jn)),yi=this.ctx.transform.applyToPoint(new $e(an,_r)),mi=this.ctx.transform.applyToPoint(new $e(mn,In));this.path.push({type:"bct",x1:yi.x,y1:yi.y,x2:mi.x,y2:mi.y,x:Ei.x,y:Ei.y}),this.ctx.lastPoint=new $e(Ei.x,Ei.y)},Fr.prototype.arc=function(an,_r,mn,In,Wn,Jn){if(isNaN(an)||isNaN(_r)||isNaN(mn)||isNaN(In)||isNaN(Wn))throw d.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Jn=Boolean(Jn),!this.ctx.transform.isIdentity){var Ei=this.ctx.transform.applyToPoint(new $e(an,_r));an=Ei.x,_r=Ei.y;var yi=this.ctx.transform.applyToPoint(new $e(0,mn)),mi=this.ctx.transform.applyToPoint(new $e(0,0));mn=Math.sqrt(Math.pow(yi.x-mi.x,2)+Math.pow(yi.y-mi.y,2))}Math.abs(Wn-In)>=2*Math.PI&&(In=0,Wn=2*Math.PI),this.path.push({type:"arc",x:an,y:_r,radius:mn,startAngle:In,endAngle:Wn,counterclockwise:Jn})},Fr.prototype.arcTo=function(an,_r,mn,In,Wn){throw new Error("arcTo not implemented.")},Fr.prototype.rect=function(an,_r,mn,In){if(isNaN(an)||isNaN(_r)||isNaN(mn)||isNaN(In))throw d.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(an,_r),this.lineTo(an+mn,_r),this.lineTo(an+mn,_r+In),this.lineTo(an,_r+In),this.lineTo(an,_r),this.lineTo(an+mn,_r),this.lineTo(an,_r)},Fr.prototype.fillRect=function(an,_r,mn,In){if(isNaN(an)||isNaN(_r)||isNaN(mn)||isNaN(In))throw d.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Zt.call(this)){var Wn={};this.lineCap!=="butt"&&(Wn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Wn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(an,_r,mn,In),this.fill(),Wn.hasOwnProperty("lineCap")&&(this.lineCap=Wn.lineCap),Wn.hasOwnProperty("lineJoin")&&(this.lineJoin=Wn.lineJoin)}},Fr.prototype.strokeRect=function(an,_r,mn,In){if(isNaN(an)||isNaN(_r)||isNaN(mn)||isNaN(In))throw d.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Rn.call(this)||(this.beginPath(),this.rect(an,_r,mn,In),this.stroke())},Fr.prototype.clearRect=function(an,_r,mn,In){if(isNaN(an)||isNaN(_r)||isNaN(mn)||isNaN(In))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(an,_r,mn,In))},Fr.prototype.save=function(an){an=typeof an!="boolean"||an;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("q");if(this.pdf.setPage(_r),an){this.ctx.fontSize=this.pdf.internal.getFontSize();var In=new Er(this.ctx);this.ctxStack.push(this.ctx),this.ctx=In}},Fr.prototype.restore=function(an){an=typeof an!="boolean"||an;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("Q");this.pdf.setPage(_r),an&&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)},Fr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var tn=function(_r){var mn,In,Wn,Jn;if(_r.isCanvasGradient===!0&&(_r=_r.getColor()),!_r)return{r:0,g:0,b:0,a:0,style:_r};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_r))mn=0,In=0,Wn=0,Jn=0;else{var Ei=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_r);if(Ei!==null)mn=parseInt(Ei[1]),In=parseInt(Ei[2]),Wn=parseInt(Ei[3]),Jn=1;else if((Ei=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_r))!==null)mn=parseInt(Ei[1]),In=parseInt(Ei[2]),Wn=parseInt(Ei[3]),Jn=parseFloat(Ei[4]);else{if(Jn=1,typeof _r=="string"&&_r.charAt(0)!=="#"){var yi=new l(_r);_r=yi.ok?yi.toHex():"#000000"}_r.length===4?(mn=_r.substring(1,2),mn+=mn,In=_r.substring(2,3),In+=In,Wn=_r.substring(3,4),Wn+=Wn):(mn=_r.substring(1,3),In=_r.substring(3,5),Wn=_r.substring(5,7)),mn=parseInt(mn,16),In=parseInt(In,16),Wn=parseInt(Wn,16)}}return{r:mn,g:In,b:Wn,a:Jn,style:_r}},Zt=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Rn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Fr.prototype.fillText=function(an,_r,mn,In){if(isNaN(_r)||isNaN(mn)||typeof an!="string")throw d.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(In=isNaN(In)?void 0:In,!Zt.call(this)){var Wn=br(this.ctx.transform.rotation),Jn=this.ctx.transform.scaleX;Tt.call(this,{text:an,x:_r,y:mn,scale:Jn,angle:Wn,align:this.textAlign,maxWidth:In})}},Fr.prototype.strokeText=function(an,_r,mn,In){if(isNaN(_r)||isNaN(mn)||typeof an!="string")throw d.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Rn.call(this)){In=isNaN(In)?void 0:In;var Wn=br(this.ctx.transform.rotation),Jn=this.ctx.transform.scaleX;Tt.call(this,{text:an,x:_r,y:mn,scale:Jn,renderingMode:"stroke",angle:Wn,align:this.textAlign,maxWidth:In})}},Fr.prototype.measureText=function(an){if(typeof an!="string")throw d.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _r=this.pdf,mn=this.pdf.internal.scaleFactor,In=_r.internal.getFontSize(),Wn=_r.getStringUnitWidth(an)*In/_r.internal.scaleFactor,Jn=function(yi){var mi=(yi=yi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return mi}}),this};return new Jn({width:Wn*=Math.round(96*mn/72*1e4)/1e4})},Fr.prototype.scale=function(an,_r){if(isNaN(an)||isNaN(_r))throw d.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var mn=new ft(an,0,0,_r,0,0);this.ctx.transform=this.ctx.transform.multiply(mn)},Fr.prototype.rotate=function(an){if(isNaN(an))throw d.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _r=new ft(Math.cos(an),Math.sin(an),-Math.sin(an),Math.cos(an),0,0);this.ctx.transform=this.ctx.transform.multiply(_r)},Fr.prototype.translate=function(an,_r){if(isNaN(an)||isNaN(_r))throw d.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var mn=new ft(1,0,0,1,an,_r);this.ctx.transform=this.ctx.transform.multiply(mn)},Fr.prototype.transform=function(an,_r,mn,In,Wn,Jn){if(isNaN(an)||isNaN(_r)||isNaN(mn)||isNaN(In)||isNaN(Wn)||isNaN(Jn))throw d.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ei=new ft(an,_r,mn,In,Wn,Jn);this.ctx.transform=this.ctx.transform.multiply(Ei)},Fr.prototype.setTransform=function(an,_r,mn,In,Wn,Jn){an=isNaN(an)?1:an,_r=isNaN(_r)?0:_r,mn=isNaN(mn)?0:mn,In=isNaN(In)?1:In,Wn=isNaN(Wn)?0:Wn,Jn=isNaN(Jn)?0:Jn,this.ctx.transform=new ft(an,_r,mn,In,Wn,Jn)};var vn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Fr.prototype.drawImage=function(an,_r,mn,In,Wn,Jn,Ei,yi,mi){var Vi=this.pdf.getImageProperties(an),la=1,Gi=1,ia=1,$i=1;In!==void 0&&yi!==void 0&&(ia=yi/In,$i=mi/Wn,la=Vi.width/In*yi/In,Gi=Vi.height/Wn*mi/Wn),Jn===void 0&&(Jn=_r,Ei=mn,_r=0,mn=0),In!==void 0&&yi===void 0&&(yi=In,mi=Wn),In===void 0&&yi===void 0&&(yi=Vi.width,mi=Vi.height);for(var xn,Ti=this.ctx.transform.decompose(),Ji=br(Ti.rotate.shx),Wi=new ft,qi=(Wi=(Wi=(Wi=Wi.multiply(Ti.translate)).multiply(Ti.skew)).multiply(Ti.scale)).applyToRectangle(new St(Jn-_r*ia,Ei-mn*$i,In*la,Wn*Gi)),Ir=Un.call(this,qi),ar=[],nn=0;nn<Ir.length;nn+=1)ar.indexOf(Ir[nn])===-1&&ar.push(Ir[nn]);if(Kn(ar),this.autoPaging)for(var Gt=ar[0],wr=ar[ar.length-1],Pr=Gt;Pr<wr+1;Pr++){this.pdf.setPage(Pr);var Jr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],wn=Pr===1?this.posY+this.margin[0]:this.margin[0],bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],mr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ar=Pr===1?0:bt+(Pr-2)*mr;if(this.ctx.clip_path.length!==0){var Ur=this.path;xn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Wr(xn,this.posX+this.margin[3],-Ar+wn+this.ctx.prevPageLastElemOffset),Si.call(this,"fill",!0),this.path=Ur}var un=JSON.parse(JSON.stringify(qi));un=Wr([un],this.posX+this.margin[3],-Ar+wn+this.ctx.prevPageLastElemOffset)[0];var An=(Pr>Gt||Pr<wr)&&vn.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jr,mr,null).clip().discardPath()),this.pdf.addImage(an,"JPEG",un.x,un.y,un.w,un.h,null,null,Ji),An&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(an,"JPEG",qi.x,qi.y,qi.w,qi.h,null,null,Ji)};var Un=function(_r,mn,In){var Wn=[];mn=mn||this.pdf.internal.pageSize.width,In=In||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Jn=this.posY+this.ctx.prevPageLastElemOffset;switch(_r.type){default:case"mt":case"lt":Wn.push(Math.floor((_r.y+Jn)/In)+1);break;case"arc":Wn.push(Math.floor((_r.y+Jn-_r.radius)/In)+1),Wn.push(Math.floor((_r.y+Jn+_r.radius)/In)+1);break;case"qct":var Ei=On(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_r.x1,_r.y1,_r.x,_r.y);Wn.push(Math.floor((Ei.y+Jn)/In)+1),Wn.push(Math.floor((Ei.y+Ei.h+Jn)/In)+1);break;case"bct":var yi=bn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_r.x1,_r.y1,_r.x2,_r.y2,_r.x,_r.y);Wn.push(Math.floor((yi.y+Jn)/In)+1),Wn.push(Math.floor((yi.y+yi.h+Jn)/In)+1);break;case"rect":Wn.push(Math.floor((_r.y+Jn)/In)+1),Wn.push(Math.floor((_r.y+_r.h+Jn)/In)+1)}for(var mi=0;mi<Wn.length;mi+=1)for(;this.pdf.internal.getNumberOfPages()<Wn[mi];)hn.call(this);return Wn},hn=function(){var _r=this.fillStyle,mn=this.strokeStyle,In=this.font,Wn=this.lineCap,Jn=this.lineWidth,Ei=this.lineJoin;this.pdf.addPage(),this.fillStyle=_r,this.strokeStyle=mn,this.font=In,this.lineCap=Wn,this.lineWidth=Jn,this.lineJoin=Ei},Wr=function(_r,mn,In){for(var Wn=0;Wn<_r.length;Wn++)switch(_r[Wn].type){case"bct":_r[Wn].x2+=mn,_r[Wn].y2+=In;case"qct":_r[Wn].x1+=mn,_r[Wn].y1+=In;case"mt":case"lt":case"arc":default:_r[Wn].x+=mn,_r[Wn].y+=In}return _r},Kn=function(_r){return _r.sort(function(mn,In){return mn-In})},ei=function(_r,mn){for(var In,Wn,Jn=this.fillStyle,Ei=this.strokeStyle,yi=this.lineCap,mi=this.lineWidth,Vi=Math.abs(mi*this.ctx.transform.scaleX),la=this.lineJoin,Gi=JSON.parse(JSON.stringify(this.path)),ia=JSON.parse(JSON.stringify(this.path)),$i=[],xn=0;xn<ia.length;xn++)if(ia[xn].x!==void 0)for(var Ti=Un.call(this,ia[xn]),Ji=0;Ji<Ti.length;Ji+=1)$i.indexOf(Ti[Ji])===-1&&$i.push(Ti[Ji]);for(var Wi=0;Wi<$i.length;Wi++)for(;this.pdf.internal.getNumberOfPages()<$i[Wi];)hn.call(this);if(Kn($i),this.autoPaging)for(var qi=$i[0],Ir=$i[$i.length-1],ar=qi;ar<Ir+1;ar++){this.pdf.setPage(ar),this.fillStyle=Jn,this.strokeStyle=Ei,this.lineCap=yi,this.lineWidth=Vi,this.lineJoin=la;var nn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Gt=ar===1?this.posY+this.margin[0]:this.margin[0],wr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Pr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jr=ar===1?0:wr+(ar-2)*Pr;if(this.ctx.clip_path.length!==0){var wn=this.path;In=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Wr(In,this.posX+this.margin[3],-Jr+Gt+this.ctx.prevPageLastElemOffset),Si.call(this,_r,!0),this.path=wn}if(Wn=JSON.parse(JSON.stringify(Gi)),this.path=Wr(Wn,this.posX+this.margin[3],-Jr+Gt+this.ctx.prevPageLastElemOffset),mn===!1||ar===0){var bt=(ar>qi||ar<Ir)&&vn.call(this);bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],nn,Pr,null).clip().discardPath()),Si.call(this,_r,mn),bt&&this.pdf.restoreGraphicsState()}this.lineWidth=mi}else this.lineWidth=Vi,Si.call(this,_r,mn),this.lineWidth=mi;this.path=Gi},Si=function(_r,mn){if((_r!=="stroke"||mn||!Rn.call(this))&&(_r==="stroke"||mn||!Zt.call(this))){for(var In,Wn,Jn=[],Ei=this.path,yi=0;yi<Ei.length;yi++){var mi=Ei[yi];switch(mi.type){case"begin":Jn.push({begin:!0});break;case"close":Jn.push({close:!0});break;case"mt":Jn.push({start:mi,deltas:[],abs:[]});break;case"lt":var Vi=Jn.length;if(Ei[yi-1]&&!isNaN(Ei[yi-1].x)&&(In=[mi.x-Ei[yi-1].x,mi.y-Ei[yi-1].y],Vi>0)){for(;Vi>=0;Vi--)if(Jn[Vi-1].close!==!0&&Jn[Vi-1].begin!==!0){Jn[Vi-1].deltas.push(In),Jn[Vi-1].abs.push(mi);break}}break;case"bct":In=[mi.x1-Ei[yi-1].x,mi.y1-Ei[yi-1].y,mi.x2-Ei[yi-1].x,mi.y2-Ei[yi-1].y,mi.x-Ei[yi-1].x,mi.y-Ei[yi-1].y],Jn[Jn.length-1].deltas.push(In);break;case"qct":var la=Ei[yi-1].x+2/3*(mi.x1-Ei[yi-1].x),Gi=Ei[yi-1].y+2/3*(mi.y1-Ei[yi-1].y),ia=mi.x+2/3*(mi.x1-mi.x),$i=mi.y+2/3*(mi.y1-mi.y),xn=mi.x,Ti=mi.y;In=[la-Ei[yi-1].x,Gi-Ei[yi-1].y,ia-Ei[yi-1].x,$i-Ei[yi-1].y,xn-Ei[yi-1].x,Ti-Ei[yi-1].y],Jn[Jn.length-1].deltas.push(In);break;case"arc":Jn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Jn[Jn.length-1].abs)&&Jn[Jn.length-1].abs.push(mi)}}Wn=mn?null:_r==="stroke"?"stroke":"fill";for(var Ji=!1,Wi=0;Wi<Jn.length;Wi++)if(Jn[Wi].arc)for(var qi=Jn[Wi].abs,Ir=0;Ir<qi.length;Ir++){var ar=qi[Ir];ar.type==="arc"?kn.call(this,ar.x,ar.y,ar.radius,ar.startAngle,ar.endAngle,ar.counterclockwise,void 0,mn,!Ji):Lt.call(this,ar.x,ar.y),Ji=!0}else if(Jn[Wi].close===!0)this.pdf.internal.out("h"),Ji=!1;else if(Jn[Wi].begin!==!0){var nn=Jn[Wi].start.x,Gt=Jn[Wi].start.y;_t.call(this,Jn[Wi].deltas,nn,Gt),Ji=!0}Wn&&It.call(this,Wn),mn&&yt.call(this)}},Vr=function(_r){var mn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,In=mn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _r-In;case"top":return _r+mn-In;case"hanging":return _r+mn-2*In;case"middle":return _r+mn/2-In;case"ideographic":return _r;case"alphabetic":default:return _r}},fn=function(_r){return _r+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Fr.prototype.createLinearGradient=function(){var an=function(){};return an.colorStops=[],an.addColorStop=function(_r,mn){this.colorStops.push([_r,mn])},an.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},an.isCanvasGradient=!0,an},Fr.prototype.createPattern=function(){return this.createLinearGradient()},Fr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var kn=function(_r,mn,In,Wn,Jn,Ei,yi,mi,Vi){for(var la=er.call(this,In,Wn,Jn,Ei),Gi=0;Gi<la.length;Gi++){var ia=la[Gi];Gi===0&&(Vi?xt.call(this,ia.x1+_r,ia.y1+mn):Lt.call(this,ia.x1+_r,ia.y1+mn)),Xt.call(this,_r,mn,ia.x2,ia.y2,ia.x3,ia.y3,ia.x4,ia.y4)}mi?yt.call(this):It.call(this,yi)},It=function(_r){switch(_r){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},yt=function(){this.pdf.clip(),this.pdf.discardPath()},xt=function(_r,mn){this.pdf.internal.out(Pe(_r)+" "+He(mn)+" m")},Tt=function(_r){var mn;switch(_r.align){case"right":case"end":mn="right";break;case"center":mn="center";break;case"left":case"start":default:mn="left"}var In=this.pdf.getTextDimensions(_r.text),Wn=Vr.call(this,_r.y),Jn=fn.call(this,Wn)-In.h,Ei=this.ctx.transform.applyToPoint(new $e(_r.x,Wn)),yi=this.ctx.transform.decompose(),mi=new ft;mi=(mi=(mi=mi.multiply(yi.translate)).multiply(yi.skew)).multiply(yi.scale);for(var Vi,la,Gi,ia=this.ctx.transform.applyToRectangle(new St(_r.x,Wn,In.w,In.h)),$i=mi.applyToRectangle(new St(_r.x,Jn,In.w,In.h)),xn=Un.call(this,$i),Ti=[],Ji=0;Ji<xn.length;Ji+=1)Ti.indexOf(xn[Ji])===-1&&Ti.push(xn[Ji]);if(Kn(Ti),this.autoPaging)for(var Wi=Ti[0],qi=Ti[Ti.length-1],Ir=Wi;Ir<qi+1;Ir++){this.pdf.setPage(Ir);var ar=Ir===1?this.posY+this.margin[0]:this.margin[0],nn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gt=this.pdf.internal.pageSize.height-this.margin[2],wr=Gt-this.margin[0],Pr=this.pdf.internal.pageSize.width-this.margin[1],Jr=Pr-this.margin[3],wn=Ir===1?0:nn+(Ir-2)*wr;if(this.ctx.clip_path.length!==0){var bt=this.path;Vi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Wr(Vi,this.posX+this.margin[3],-1*wn+ar),Si.call(this,"fill",!0),this.path=bt}var mr=Wr([JSON.parse(JSON.stringify($i))],this.posX+this.margin[3],-wn+ar+this.ctx.prevPageLastElemOffset)[0];_r.scale>=.01&&(la=this.pdf.internal.getFontSize(),this.pdf.setFontSize(la*_r.scale),Gi=this.lineWidth,this.lineWidth=Gi*_r.scale);var Ar=this.autoPaging!=="text";if(Ar||mr.y+mr.h<=Gt){if(Ar||mr.y>=ar&&mr.x<=Pr){var Ur=Ar?_r.text:this.pdf.splitTextToSize(_r.text,_r.maxWidth||Pr-mr.x)[0],un=Wr([JSON.parse(JSON.stringify(ia))],this.posX+this.margin[3],-wn+ar+this.ctx.prevPageLastElemOffset)[0],An=Ar&&(Ir>Wi||Ir<qi)&&vn.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jr,wr,null).clip().discardPath()),this.pdf.text(Ur,un.x,un.y,{angle:_r.angle,align:mn,renderingMode:_r.renderingMode}),An&&this.pdf.restoreGraphicsState()}}else mr.y<Gt&&(this.ctx.prevPageLastElemOffset+=Gt-mr.y);_r.scale>=.01&&(this.pdf.setFontSize(la),this.lineWidth=Gi)}else _r.scale>=.01&&(la=this.pdf.internal.getFontSize(),this.pdf.setFontSize(la*_r.scale),Gi=this.lineWidth,this.lineWidth=Gi*_r.scale),this.pdf.text(_r.text,Ei.x+this.posX,Ei.y+this.posY,{angle:_r.angle,align:mn,renderingMode:_r.renderingMode,maxWidth:_r.maxWidth}),_r.scale>=.01&&(this.pdf.setFontSize(la),this.lineWidth=Gi)},Lt=function(_r,mn,In,Wn){In=In||0,Wn=Wn||0,this.pdf.internal.out(Pe(_r+In)+" "+He(mn+Wn)+" l")},_t=function(_r,mn,In){return this.pdf.lines(_r,mn,In,null,null)},Xt=function(_r,mn,In,Wn,Jn,Ei,yi,mi){this.pdf.internal.out([Se(Ye(In+_r)),Se(ze(Wn+mn)),Se(Ye(Jn+_r)),Se(ze(Ei+mn)),Se(Ye(yi+_r)),Se(ze(mi+mn)),"c"].join(" "))},er=function(_r,mn,In,Wn){for(var Jn=2*Math.PI,Ei=Math.PI/2;mn>In;)mn-=Jn;var yi=Math.abs(In-mn);yi<Jn&&Wn&&(yi=Jn-yi);for(var mi=[],Vi=Wn?-1:1,la=mn;yi>1e-5;){var Gi=la+Vi*Math.min(yi,Ei);mi.push(nr.call(this,_r,la,Gi)),yi-=Math.abs(Gi-la),la=Gi}return mi},nr=function(_r,mn,In){var Wn=(In-mn)/2,Jn=_r*Math.cos(Wn),Ei=_r*Math.sin(Wn),yi=Jn,mi=-Ei,Vi=yi*yi+mi*mi,la=Vi+yi*Jn+mi*Ei,Gi=4/3*(Math.sqrt(2*Vi*la)-la)/(yi*Ei-mi*Jn),ia=yi-Gi*mi,$i=mi+Gi*yi,xn=ia,Ti=-$i,Ji=Wn+mn,Wi=Math.cos(Ji),qi=Math.sin(Ji);return{x1:_r*Math.cos(mn),y1:_r*Math.sin(mn),x2:ia*Wi-$i*qi,y2:ia*qi+$i*Wi,x3:xn*Wi-Ti*qi,y3:xn*qi+Ti*Wi,x4:_r*Math.cos(In),y4:_r*Math.sin(In)}},br=function(_r){return 180*_r/Math.PI},On=function(_r,mn,In,Wn,Jn,Ei){var yi=_r+.5*(In-_r),mi=mn+.5*(Wn-mn),Vi=Jn+.5*(In-Jn),la=Ei+.5*(Wn-Ei),Gi=Math.min(_r,Jn,yi,Vi),ia=Math.max(_r,Jn,yi,Vi),$i=Math.min(mn,Ei,mi,la),xn=Math.max(mn,Ei,mi,la);return new St(Gi,$i,ia-Gi,xn-$i)},bn=function(_r,mn,In,Wn,Jn,Ei,yi,mi){var Vi,la,Gi,ia,$i,xn,Ti,Ji,Wi,qi,Ir,ar,nn,Gt,wr=In-_r,Pr=Wn-mn,Jr=Jn-In,wn=Ei-Wn,bt=yi-Jn,mr=mi-Ei;for(la=0;la<41;la++)Wi=(Ti=(Gi=_r+(Vi=la/40)*wr)+Vi*(($i=In+Vi*Jr)-Gi))+Vi*($i+Vi*(Jn+Vi*bt-$i)-Ti),qi=(Ji=(ia=mn+Vi*Pr)+Vi*((xn=Wn+Vi*wn)-ia))+Vi*(xn+Vi*(Ei+Vi*mr-xn)-Ji),la==0?(Ir=Wi,ar=qi,nn=Wi,Gt=qi):(Ir=Math.min(Ir,Wi),ar=Math.min(ar,qi),nn=Math.max(nn,Wi),Gt=Math.max(Gt,qi));return new St(Math.round(Ir),Math.round(ar),Math.round(nn-Ir),Math.round(Gt-ar))},qn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _r,mn,In=(_r=this.ctx.lineDash,mn=this.ctx.lineDashOffset,JSON.stringify({lineDash:_r,lineDashOffset:mn}));this.prevLineDash!==In&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=In)}}}(H.API),function(Qe){var Se=function($e){var St,ft,Ht,Er,Fr,tn,Zt,Rn,vn,Un;for(/[^\x00-\xFF]/.test($e),ft=[],Ht=0,Er=($e+=St="\0\0\0\0".slice($e.length%4||4)).length;Er>Ht;Ht+=4)(Fr=($e.charCodeAt(Ht)<<24)+($e.charCodeAt(Ht+1)<<16)+($e.charCodeAt(Ht+2)<<8)+$e.charCodeAt(Ht+3))!==0?(tn=(Fr=((Fr=((Fr=((Fr=(Fr-(Un=Fr%85))/85)-(vn=Fr%85))/85)-(Rn=Fr%85))/85)-(Zt=Fr%85))/85)%85,ft.push(tn+33,Zt+33,Rn+33,vn+33,Un+33)):ft.push(122);return function(hn,Wr){for(var Kn=Wr;Kn>0;Kn--)hn.pop()}(ft,St.length),String.fromCharCode.apply(String,ft)+"~>"},Pe=function($e){var St,ft,Ht,Er,Fr,tn=String,Zt="length",Rn=255,vn="charCodeAt",Un="slice",hn="replace";for($e[Un](-2),$e=$e[Un](0,-2)[hn](/\s/g,"")[hn]("z","!!!!!"),Ht=[],Er=0,Fr=($e+=St="uuuuu"[Un]($e[Zt]%5||5))[Zt];Fr>Er;Er+=5)ft=52200625*($e[vn](Er)-33)+614125*($e[vn](Er+1)-33)+7225*($e[vn](Er+2)-33)+85*($e[vn](Er+3)-33)+($e[vn](Er+4)-33),Ht.push(Rn&ft>>24,Rn&ft>>16,Rn&ft>>8,Rn&ft);return function(Wr,Kn){for(var ei=Kn;ei>0;ei--)Wr.pop()}(Ht,St[Zt]),tn.fromCharCode.apply(tn,Ht)},He=function($e){var St=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(($e=$e.replace(/\s/g,"")).indexOf(">")!==-1&&($e=$e.substr(0,$e.indexOf(">"))),$e.length%2&&($e+="0"),St.test($e)===!1)return"";for(var ft="",Ht=0;Ht<$e.length;Ht+=2)ft+=String.fromCharCode("0x"+($e[Ht]+$e[Ht+1]));return ft},Ye=function($e){for(var St=new Uint8Array($e.length),ft=$e.length;ft--;)St[ft]=$e.charCodeAt(ft);return $e=(St=Object(v.b)(St)).reduce(function(Ht,Er){return Ht+String.fromCharCode(Er)},"")};Qe.processDataByFilters=function(ze,$e){var St=0,ft=ze||"",Ht=[];for(typeof($e=$e||[])=="string"&&($e=[$e]),St=0;St<$e.length;St+=1)switch($e[St]){case"ASCII85Decode":case"/ASCII85Decode":ft=Pe(ft),Ht.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ft=Se(ft),Ht.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ft=He(ft),Ht.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ft=ft.split("").map(function(Er){return("0"+Er.charCodeAt().toString(16)).slice(-2)}).join("")+">",Ht.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ft=Ye(ft),Ht.push("/FlateDecode");break;default:throw new Error('The filter: "'+$e[St]+'" is not implemented')}return{data:ft,reverseChain:Ht.reverse().join(" ")}}}(H.API),function(Qe){Qe.loadFile=function(Se,Pe,He){return function(Ye,ze,$e){ze=ze!==!1,$e=typeof $e=="function"?$e:function(){};var St=void 0;try{St=function(ft,Ht,Er){var Fr=new XMLHttpRequest,tn=0,Zt=function(vn){var Un=vn.length,hn=[],Wr=String.fromCharCode;for(tn=0;tn<Un;tn+=1)hn.push(Wr(255&vn.charCodeAt(tn)));return hn.join("")};if(Fr.open("GET",ft,!Ht),Fr.overrideMimeType("text/plain; charset=x-user-defined"),Ht===!1&&(Fr.onload=function(){Fr.status===200?Er(Zt(this.responseText)):Er(void 0)}),Fr.send(null),Ht&&Fr.status===200)return Zt(Fr.responseText)}(Ye,ze,$e)}catch(ft){}return St}(Se,Pe,He)},Qe.loadImageFile=Qe.loadFile}(H.API),function(Qe){function Se(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(i.t.bind(null,"wOnQ",7))).catch(function($e){return Promise.reject(new Error("Could not load html2canvas: "+$e))}).then(function($e){return $e.default?$e.default:$e})}function Pe(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):i.e(241).then(i.t.bind(null,"qZ2Q",7))).catch(function($e){return Promise.reject(new Error("Could not load dompurify: "+$e))}).then(function($e){return $e.default?$e.default:$e})}var He=function(St){var ft=S()(St);return ft==="undefined"?"undefined":ft==="string"||St instanceof String?"string":ft==="number"||St instanceof Number?"number":ft==="function"||St instanceof Function?"function":St&&St.constructor===Array?"array":St&&St.nodeType===1?"element":ft==="object"?"object":"unknown"},Ye=function(St,ft){var Ht=document.createElement(St);for(var Er in ft.className&&(Ht.className=ft.className),ft.innerHTML&&ft.dompurify&&(Ht.innerHTML=ft.dompurify.sanitize(ft.innerHTML)),ft.style)Ht.style[Er]=ft.style[Er];return Ht},ze=function $e(St){var ft=Object.assign($e.convert(Promise.resolve()),JSON.parse(JSON.stringify($e.template))),Ht=$e.convert(Promise.resolve(),ft);return Ht=(Ht=Ht.setProgress(1,$e,1,[$e])).set(St)};(ze.prototype=Object.create(Promise.prototype)).constructor=ze,ze.convert=function($e,St){return $e.__proto__=St||ze.prototype,$e},ze.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"}},ze.prototype.from=function($e,St){return this.then(function(){switch(St=St||function(ft){switch(He(ft)){case"string":return"string";case"element":return ft.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}($e)){case"string":return this.then(Pe).then(function(ft){return this.set({src:Ye("div",{innerHTML:$e,dompurify:ft})})});case"element":return this.set({src:$e});case"canvas":return this.set({canvas:$e});case"img":return this.set({img:$e});default:return this.error("Unknown source type.")}})},ze.prototype.to=function($e){switch($e){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.")}},ze.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 $e={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},St=function ft(Ht,Er){for(var Fr=Ht.nodeType===3?document.createTextNode(Ht.nodeValue):Ht.cloneNode(!1),tn=Ht.firstChild;tn;tn=tn.nextSibling)Er!==!0&&tn.nodeType===1&&tn.nodeName==="SCRIPT"||Fr.appendChild(ft(tn,Er));return Ht.nodeType===1&&(Ht.nodeName==="CANVAS"?(Fr.width=Ht.width,Fr.height=Ht.height,Fr.getContext("2d").drawImage(Ht,0,0)):Ht.nodeName!=="TEXTAREA"&&Ht.nodeName!=="SELECT"||(Fr.value=Ht.value),Fr.addEventListener("load",function(){Fr.scrollTop=Ht.scrollTop,Fr.scrollLeft=Ht.scrollLeft},!0)),Fr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);St.tagName==="BODY"&&($e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ye("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ye("div",{className:"html2pdf__container",style:$e}),this.prop.container.appendChild(St),this.prop.container.firstChild.appendChild(Ye("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"})},ze.prototype.toCanvas=function(){var $e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList($e).then(Se).then(function(St){var ft=Object.assign({},this.opt.html2canvas);return delete ft.onrendered,St(this.prop.container,ft)}).then(function(St){(this.opt.html2canvas.onrendered||function(){})(St),this.prop.canvas=St,document.body.removeChild(this.prop.overlay)})},ze.prototype.toContext2d=function(){var $e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList($e).then(Se).then(function(St){var ft=this.opt.jsPDF,Ht=this.opt.fontFaces,Er=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,Fr=Object.assign({async:!0,allowTaint:!0,scale:Er,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 Fr.onrendered,ft.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ft.context2d.posX=this.opt.x,ft.context2d.posY=this.opt.y,ft.context2d.margin=this.opt.margin,ft.context2d.fontFaces=Ht,Ht)for(var tn=0;tn<Ht.length;++tn){var Zt=Ht[tn],Rn=Zt.src.find(function(vn){return vn.format==="truetype"});Rn&&ft.addFont(Rn.url,Zt.ref.name,Zt.ref.style)}return Fr.windowHeight=Fr.windowHeight||0,Fr.windowHeight=Fr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Fr.windowHeight,ft.context2d.save(!0),St(this.prop.container,Fr)}).then(function(St){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(St),this.prop.canvas=St,document.body.removeChild(this.prop.overlay)})},ze.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var $e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=$e})},ze.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},ze.prototype.output=function($e,St,ft){return(ft=ft||"pdf").toLowerCase()==="img"||ft.toLowerCase()==="image"?this.outputImg($e,St):this.outputPdf($e,St)},ze.prototype.outputPdf=function($e,St){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output($e,St)})},ze.prototype.outputImg=function($e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch($e){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 "'+$e+'" is not supported.'}})},ze.prototype.save=function($e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set($e?{filename:$e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ze.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},ze.prototype.set=function($e){if(He($e)!=="object")return this;var St=Object.keys($e||{}).map(function(ft){if(ft in ze.template.prop)return function(){this.prop[ft]=$e[ft]};switch(ft){case"margin":return this.setMargin.bind(this,$e.margin);case"jsPDF":return function(){return this.opt.jsPDF=$e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,$e.pageSize);default:return function(){this.opt[ft]=$e[ft]}}},this);return this.then(function(){return this.thenList(St)})},ze.prototype.get=function($e,St){return this.then(function(){var ft=$e in ze.template.prop?this.prop[$e]:this.opt[$e];return St?St(ft):ft})},ze.prototype.setMargin=function($e){return this.then(function(){switch(He($e)){case"number":$e=[$e,$e,$e,$e];case"array":if($e.length===2&&($e=[$e[0],$e[1],$e[0],$e[1]]),$e.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=$e}).then(this.setPageSize)},ze.prototype.setPageSize=function($e){function St(ft,Ht){return Math.floor(ft*Ht/72*96)}return this.then(function(){($e=$e||H.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||($e.inner={width:$e.width-this.opt.margin[1]-this.opt.margin[3],height:$e.height-this.opt.margin[0]-this.opt.margin[2]},$e.inner.px={width:St($e.inner.width,$e.k),height:St($e.inner.height,$e.k)},$e.inner.ratio=$e.inner.height/$e.inner.width),this.prop.pageSize=$e})},ze.prototype.setProgress=function($e,St,ft,Ht){return $e!=null&&(this.progress.val=$e),St!=null&&(this.progress.state=St),ft!=null&&(this.progress.n=ft),Ht!=null&&(this.progress.stack=Ht),this.progress.ratio=this.progress.val/this.progress.state,this},ze.prototype.updateProgress=function($e,St,ft,Ht){return this.setProgress($e?this.progress.val+$e:null,St||null,ft?this.progress.n+ft:null,Ht?this.progress.stack.concat(Ht):null)},ze.prototype.then=function($e,St){var ft=this;return this.thenCore($e,St,function(Ht,Er){return ft.updateProgress(null,null,1,[Ht]),Promise.prototype.then.call(this,function(Fr){return ft.updateProgress(null,Ht),Fr}).then(Ht,Er).then(function(Fr){return ft.updateProgress(1),Fr})})},ze.prototype.thenCore=function($e,St,ft){ft=ft||Promise.prototype.then,$e&&($e=$e.bind(this)),St&&(St=St.bind(this));var Ht=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:ze.convert(Object.assign({},this),Promise.prototype),Er=ft.call(Ht,$e,St);return ze.convert(Er,this.__proto__)},ze.prototype.thenExternal=function($e,St){return Promise.prototype.then.call(this,$e,St)},ze.prototype.thenList=function($e){var St=this;return $e.forEach(function(ft){St=St.thenCore(ft)}),St},ze.prototype.catch=function($e){$e&&($e=$e.bind(this));var St=Promise.prototype.catch.call(this,$e);return ze.convert(St,this)},ze.prototype.catchExternal=function($e){return Promise.prototype.catch.call(this,$e)},ze.prototype.error=function($e){return this.then(function(){throw new Error($e)})},ze.prototype.using=ze.prototype.set,ze.prototype.saveAs=ze.prototype.save,ze.prototype.export=ze.prototype.output,ze.prototype.run=ze.prototype.then,H.getPageSize=function($e,St,ft){if(S()($e)==="object"){var Ht=$e;$e=Ht.orientation,St=Ht.unit||St,ft=Ht.format||ft}St=St||"mm",ft=ft||"a4",$e=(""+($e||"P")).toLowerCase();var Er,Fr=(""+ft).toLowerCase(),tn={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(St){case"pt":Er=1;break;case"mm":Er=72/25.4;break;case"cm":Er=72/2.54;break;case"in":Er=72;break;case"px":Er=.75;break;case"pc":case"em":Er=12;break;case"ex":Er=6;break;default:throw"Invalid unit: "+St}var Zt,Rn=0,vn=0;if(tn.hasOwnProperty(Fr))Rn=tn[Fr][1]/Er,vn=tn[Fr][0]/Er;else try{Rn=ft[1],vn=ft[0]}catch(Un){throw new Error("Invalid format: "+ft)}if($e==="p"||$e==="portrait")$e="p",vn>Rn&&(Zt=vn,vn=Rn,Rn=Zt);else{if($e!=="l"&&$e!=="landscape")throw"Invalid orientation: "+$e;$e="l",Rn>vn&&(Zt=vn,vn=Rn,Rn=Zt)}return{width:vn,height:Rn,unit:St,k:Er,orientation:$e}},Qe.html=function($e,St){(St=St||{}).callback=St.callback||function(){},St.html2canvas=St.html2canvas||{},St.html2canvas.canvas=St.html2canvas.canvas||this.canvas,St.jsPDF=St.jsPDF||this,St.fontFaces=St.fontFaces?St.fontFaces.map(pn):null;var ft=new ze(St);return St.worker?ft:ft.from($e).doCallback()}}(H.API),H.API.addJS=function(Qe){return Dn=Qe,this.internal.events.subscribe("postPutResources",function(){ti=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ti+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ki=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Dn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ti!==void 0&&ki!==void 0&&this.internal.out("/Names <</JavaScript "+ti+" 0 R>>")}),this},function(Qe){var Se;Qe.events.push(["postPutResources",function(){var Pe=this,He=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ye=Pe.outline.render().split(/\r\n/),ze=0;ze<Ye.length;ze++){var $e=Ye[ze],St=He.exec($e);if(St!=null){var ft=St[1];Pe.internal.newObjectDeferredBegin(ft,!1)}Pe.internal.write($e)}if(this.outline.createNamedDestinations){var Ht=this.internal.pages.length,Er=[];for(ze=0;ze<Ht;ze++){var Fr=Pe.internal.newObject();Er.push(Fr);var tn=Pe.internal.getPageInfo(ze+1);Pe.internal.write("<< /D["+tn.objId+" 0 R /XYZ null null null]>> endobj")}var Zt=Pe.internal.newObject();for(Pe.internal.write("<< /Names [ "),ze=0;ze<Er.length;ze++)Pe.internal.write("(page_"+(ze+1)+")"+Er[ze]+" 0 R");Pe.internal.write(" ] >>","endobj"),Se=Pe.internal.newObject(),Pe.internal.write("<< /Dests "+Zt+" 0 R"),Pe.internal.write(">>","endobj")}}]),Qe.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 "+Se+" 0 R"))}]),Qe.events.push(["initialized",function(){var Pe=this;Pe.outline={createNamedDestinations:!1,root:{children:[]}},Pe.outline.add=function(He,Ye,ze){var $e={title:Ye,options:ze,children:[]};return He==null&&(He=this.root),He.children.push($e),$e},Pe.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Pe,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Pe.outline.genIds_r=function(He){He.id=Pe.internal.newObjectDeferred();for(var Ye=0;Ye<He.children.length;Ye++)this.genIds_r(He.children[Ye])},Pe.outline.renderRoot=function(He){this.objStart(He),this.line("/Type /Outlines"),He.children.length>0&&(this.line("/First "+this.makeRef(He.children[0])),this.line("/Last "+this.makeRef(He.children[He.children.length-1]))),this.line("/Count "+this.count_r({count:0},He)),this.objEnd()},Pe.outline.renderItems=function(He){for(var Ye=this.ctx.pdf.internal.getVerticalCoordinateString,ze=0;ze<He.children.length;ze++){var $e=He.children[ze];this.objStart($e),this.line("/Title "+this.makeString($e.title)),this.line("/Parent "+this.makeRef(He)),ze>0&&this.line("/Prev "+this.makeRef(He.children[ze-1])),ze<He.children.length-1&&this.line("/Next "+this.makeRef(He.children[ze+1])),$e.children.length>0&&(this.line("/First "+this.makeRef($e.children[0])),this.line("/Last "+this.makeRef($e.children[$e.children.length-1])));var St=this.count=this.count_r({count:0},$e);if(St>0&&this.line("/Count "+St),$e.options&&$e.options.pageNumber){var ft=Pe.internal.getPageInfo($e.options.pageNumber);this.line("/Dest ["+ft.objId+" 0 R /XYZ 0 "+Ye(0)+" 0]")}this.objEnd()}for(var Ht=0;Ht<He.children.length;Ht++)this.renderItems(He.children[Ht])},Pe.outline.line=function(He){this.ctx.val+=He+`\r
`},Pe.outline.makeRef=function(He){return He.id+" 0 R"},Pe.outline.makeString=function(He){return"("+Pe.internal.pdfEscape(He)+")"},Pe.outline.objStart=function(He){this.ctx.val+=`\r
`+He.id+` 0 obj\r
<<\r
`},Pe.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Pe.outline.count_r=function(He,Ye){for(var ze=0;ze<Ye.children.length;ze++)He.count++,this.count_r(He,Ye.children[ze]);return He.count}}])}(H.API),function(Qe){var Se=[192,193,194,195,196,197,198,199];Qe.processJPEG=function(Pe,He,Ye,ze,$e,St){var ft,Ht=this.decode.DCT_DECODE,Er=null;if(typeof Pe=="string"||this.__addimage__.isArrayBuffer(Pe)||this.__addimage__.isArrayBufferView(Pe)){switch(Pe=$e||Pe,Pe=this.__addimage__.isArrayBuffer(Pe)?new Uint8Array(Pe):Pe,(ft=function(Fr){for(var tn,Zt=256*Fr.charCodeAt(4)+Fr.charCodeAt(5),Rn=Fr.length,vn={width:0,height:0,numcomponents:1},Un=4;Un<Rn;Un+=2){if(Un+=Zt,Se.indexOf(Fr.charCodeAt(Un+1))!==-1){tn=256*Fr.charCodeAt(Un+5)+Fr.charCodeAt(Un+6),vn={width:256*Fr.charCodeAt(Un+7)+Fr.charCodeAt(Un+8),height:tn,numcomponents:Fr.charCodeAt(Un+9)};break}Zt=256*Fr.charCodeAt(Un+2)+Fr.charCodeAt(Un+3)}return vn}(Pe=this.__addimage__.isArrayBufferView(Pe)?this.__addimage__.arrayBufferToBinaryString(Pe):Pe)).numcomponents){case 1:St=this.color_spaces.DEVICE_GRAY;break;case 4:St=this.color_spaces.DEVICE_CMYK;break;case 3:St=this.color_spaces.DEVICE_RGB}Er={data:Pe,width:ft.width,height:ft.height,colorSpace:St,bitsPerComponent:8,filter:Ht,index:He,alias:Ye}}return Er}}(H.API);var Ft,vt,_e,Ne,Ie,Ze=function(){var Qe,Se,Pe;function He(ze){var $e,St,ft,Ht,Er,Fr,tn,Zt,Rn,vn,Un,hn,Wr,Kn;for(this.data=ze,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Fr=null;;){switch($e=this.readUInt32(),Rn=function(){var ei,Si;for(Si=[],ei=0;ei<4;++ei)Si.push(String.fromCharCode(this.data[this.pos++]));return Si}.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($e);break;case"fcTL":Fr&&this.animation.frames.push(Fr),this.pos+=4,Fr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Er=this.readUInt16(),Ht=this.readUInt16()||100,Fr.delay=1e3*Er/Ht,Fr.disposeOp=this.data[this.pos++],Fr.blendOp=this.data[this.pos++],Fr.data=[];break;case"IDAT":case"fdAT":for(Rn==="fdAT"&&(this.pos+=4,$e-=4),ze=(Fr!=null?Fr.data:void 0)||this.imgData,hn=0;0<=$e?hn<$e:hn>$e;0<=$e?++hn:--hn)ze.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ft=this.palette.length/3,this.transparency.indexed=this.read($e),this.transparency.indexed.length>ft)throw new Error("More transparent colors than palette size");if((vn=ft-this.transparency.indexed.length)>0)for(Wr=0;0<=vn?Wr<vn:Wr>vn;0<=vn?++Wr:--Wr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read($e)[0];break;case 2:this.transparency.rgb=this.read($e)}break;case"tEXt":tn=(Un=this.read($e)).indexOf(0),Zt=String.fromCharCode.apply(String,Un.slice(0,tn)),this.text[Zt]=String.fromCharCode.apply(String,Un.slice(tn+1));break;case"IEND":return Fr&&this.animation.frames.push(Fr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Kn=this.colorType)===4||Kn===6,St=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*St,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+=$e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}He.prototype.read=function(ze){var $e,St;for(St=[],$e=0;0<=ze?$e<ze:$e>ze;0<=ze?++$e:--$e)St.push(this.data[this.pos++]);return St},He.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},He.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},He.prototype.decodePixels=function(ze){var $e=this.pixelBitlength/8,St=new Uint8Array(this.width*this.height*$e),ft=0,Ht=this;if(ze==null&&(ze=this.imgData),ze.length===0)return new Uint8Array(0);function Er(Fr,tn,Zt,Rn){var vn,Un,hn,Wr,Kn,ei,Si,Vr,fn,kn,It,yt,xt,Tt,Lt,_t,Xt,er,nr,br,On,bn=Math.ceil((Ht.width-Fr)/Zt),qn=Math.ceil((Ht.height-tn)/Rn),an=Ht.width==bn&&Ht.height==qn;for(Tt=$e*bn,yt=an?St:new Uint8Array(Tt*qn),ei=ze.length,xt=0,Un=0;xt<qn&&ft<ei;){switch(ze[ft++]){case 0:for(Wr=Xt=0;Xt<Tt;Wr=Xt+=1)yt[Un++]=ze[ft++];break;case 1:for(Wr=er=0;er<Tt;Wr=er+=1)vn=ze[ft++],Kn=Wr<$e?0:yt[Un-$e],yt[Un++]=(vn+Kn)%256;break;case 2:for(Wr=nr=0;nr<Tt;Wr=nr+=1)vn=ze[ft++],hn=(Wr-Wr%$e)/$e,Lt=xt&&yt[(xt-1)*Tt+hn*$e+Wr%$e],yt[Un++]=(Lt+vn)%256;break;case 3:for(Wr=br=0;br<Tt;Wr=br+=1)vn=ze[ft++],hn=(Wr-Wr%$e)/$e,Kn=Wr<$e?0:yt[Un-$e],Lt=xt&&yt[(xt-1)*Tt+hn*$e+Wr%$e],yt[Un++]=(vn+Math.floor((Kn+Lt)/2))%256;break;case 4:for(Wr=On=0;On<Tt;Wr=On+=1)vn=ze[ft++],hn=(Wr-Wr%$e)/$e,Kn=Wr<$e?0:yt[Un-$e],xt===0?Lt=_t=0:(Lt=yt[(xt-1)*Tt+hn*$e+Wr%$e],_t=hn&&yt[(xt-1)*Tt+(hn-1)*$e+Wr%$e]),Si=Kn+Lt-_t,Vr=Math.abs(Si-Kn),kn=Math.abs(Si-Lt),It=Math.abs(Si-_t),fn=Vr<=kn&&Vr<=It?Kn:kn<=It?Lt:_t,yt[Un++]=(vn+fn)%256;break;default:throw new Error("Invalid filter algorithm: "+ze[ft-1])}if(!an){var _r=((tn+xt*Rn)*Ht.width+Fr)*$e,mn=xt*Tt;for(Wr=0;Wr<bn;Wr+=1){for(var In=0;In<$e;In+=1)St[_r++]=yt[mn++];_r+=(Zt-1)*$e}}xt++}}return ze=Object(v.a)(ze),Ht.interlaceMethod==1?(Er(0,0,8,8),Er(4,0,8,8),Er(0,4,4,8),Er(2,0,4,4),Er(0,2,2,4),Er(1,0,2,2),Er(0,1,1,2)):Er(0,0,1,1),St},He.prototype.decodePalette=function(){var ze,$e,St,ft,Ht,Er,Fr,tn,Zt;for(St=this.palette,Er=this.transparency.indexed||[],Ht=new Uint8Array((Er.length||0)+St.length),ft=0,ze=0,$e=Fr=0,tn=St.length;Fr<tn;$e=Fr+=3)Ht[ft++]=St[$e],Ht[ft++]=St[$e+1],Ht[ft++]=St[$e+2],Ht[ft++]=(Zt=Er[ze++])!=null?Zt:255;return Ht},He.prototype.copyToImageData=function(ze,$e){var St,ft,Ht,Er,Fr,tn,Zt,Rn,vn,Un,hn;if(ft=this.colors,vn=null,St=this.hasAlphaChannel,this.palette.length&&(vn=(hn=this._decodedPalette)!=null?hn:this._decodedPalette=this.decodePalette(),ft=4,St=!0),Rn=(Ht=ze.data||ze).length,Fr=vn||$e,Er=tn=0,ft===1)for(;Er<Rn;)Zt=vn?4*$e[Er/4]:tn,Un=Fr[Zt++],Ht[Er++]=Un,Ht[Er++]=Un,Ht[Er++]=Un,Ht[Er++]=St?Fr[Zt++]:255,tn=Zt;else for(;Er<Rn;)Zt=vn?4*$e[Er/4]:tn,Ht[Er++]=Fr[Zt++],Ht[Er++]=Fr[Zt++],Ht[Er++]=Fr[Zt++],Ht[Er++]=St?Fr[Zt++]:255,tn=Zt},He.prototype.decode=function(){var ze;return ze=new Uint8Array(this.width*this.height*4),this.copyToImageData(ze,this.decodePixels()),ze};var Ye=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Se=m.document.createElement("canvas"),Pe=Se.getContext("2d")}catch($e){return!1}return!0}return!1};return Ye(),Qe=function($e){var St;if(Ye()===!0)return Pe.width=$e.width,Pe.height=$e.height,Pe.clearRect(0,0,$e.width,$e.height),Pe.putImageData($e,0,0),(St=new Image).src=Se.toDataURL(),St;throw new Error("This method requires a Browser with Canvas-capability.")},He.prototype.decodeFrames=function(ze){var $e,St,ft,Ht,Er,Fr,tn,Zt;if(this.animation){for(Zt=[],St=Er=0,Fr=(tn=this.animation.frames).length;Er<Fr;St=++Er)$e=tn[St],ft=ze.createImageData($e.width,$e.height),Ht=this.decodePixels(new Uint8Array($e.data)),this.copyToImageData(ft,Ht),$e.imageData=ft,Zt.push($e.image=Qe(ft));return Zt}},He.prototype.renderFrame=function(ze,$e){var St,ft,Ht;return St=(ft=this.animation.frames)[$e],Ht=ft[$e-1],$e===0&&ze.clearRect(0,0,this.width,this.height),(Ht!=null?Ht.disposeOp:void 0)===1?ze.clearRect(Ht.xOffset,Ht.yOffset,Ht.width,Ht.height):(Ht!=null?Ht.disposeOp:void 0)===2&&ze.putImageData(Ht.imageData,Ht.xOffset,Ht.yOffset),St.blendOp===0&&ze.clearRect(St.xOffset,St.yOffset,St.width,St.height),ze.drawImage(St.image,St.xOffset,St.yOffset)},He.prototype.animate=function(ze){var $e,St,ft,Ht,Er,Fr,tn=this;return St=0,Fr=this.animation,Ht=Fr.numFrames,ft=Fr.frames,Er=Fr.numPlays,($e=function(){var Rn,vn;if(Rn=St++%Ht,vn=ft[Rn],tn.renderFrame(ze,Rn),Ht>1&&St/Ht<Er)return tn.animation._timeout=setTimeout($e,vn.delay)})()},He.prototype.stopAnimation=function(){var ze;return clearTimeout((ze=this.animation)!=null?ze._timeout:void 0)},He.prototype.render=function(ze){var $e,St;return ze._png&&ze._png.stopAnimation(),ze._png=this,ze.width=this.width,ze.height=this.height,$e=ze.getContext("2d"),this.animation?(this.decodeFrames($e),this.animate($e)):(St=$e.createImageData(this.width,this.height),this.copyToImageData(St,this.decodePixels()),$e.putImageData(St,0,0))},He}();/**
* @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 ct(Qe){var Se=0;if(Qe[Se++]!==71||Qe[Se++]!==73||Qe[Se++]!==70||Qe[Se++]!==56||(Qe[Se++]+1&253)!=56||Qe[Se++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Pe=Qe[Se++]|Qe[Se++]<<8,He=Qe[Se++]|Qe[Se++]<<8,Ye=Qe[Se++],ze=Ye>>7,$e=1<<(7&Ye)+1;Qe[Se++],Qe[Se++];var St=null,ft=null;ze&&(St=Se,ft=$e,Se+=3*$e);var Ht=!0,Er=[],Fr=0,tn=null,Zt=0,Rn=null;for(this.width=Pe,this.height=He;Ht&&Se<Qe.length;)switch(Qe[Se++]){case 33:switch(Qe[Se++]){case 255:if(Qe[Se]!==11||Qe[Se+1]==78&&Qe[Se+2]==69&&Qe[Se+3]==84&&Qe[Se+4]==83&&Qe[Se+5]==67&&Qe[Se+6]==65&&Qe[Se+7]==80&&Qe[Se+8]==69&&Qe[Se+9]==50&&Qe[Se+10]==46&&Qe[Se+11]==48&&Qe[Se+12]==3&&Qe[Se+13]==1&&Qe[Se+16]==0)Se+=14,Rn=Qe[Se++]|Qe[Se++]<<8,Se++;else for(Se+=12;;){if(!((xt=Qe[Se++])>=0))throw Error("Invalid block size");if(xt===0)break;Se+=xt}break;case 249:if(Qe[Se++]!==4||Qe[Se+4]!==0)throw new Error("Invalid graphics extension block.");var vn=Qe[Se++];Fr=Qe[Se++]|Qe[Se++]<<8,tn=Qe[Se++],(1&vn)==0&&(tn=null),Zt=vn>>2&7,Se++;break;case 254:for(;;){if(!((xt=Qe[Se++])>=0))throw Error("Invalid block size");if(xt===0)break;Se+=xt}break;default:throw new Error("Unknown graphic control label: 0x"+Qe[Se-1].toString(16))}break;case 44:var Un=Qe[Se++]|Qe[Se++]<<8,hn=Qe[Se++]|Qe[Se++]<<8,Wr=Qe[Se++]|Qe[Se++]<<8,Kn=Qe[Se++]|Qe[Se++]<<8,ei=Qe[Se++],Si=ei>>6&1,Vr=1<<(7&ei)+1,fn=St,kn=ft,It=!1;ei>>7&&(It=!0,fn=Se,kn=Vr,Se+=3*Vr);var yt=Se;for(Se++;;){var xt;if(!((xt=Qe[Se++])>=0))throw Error("Invalid block size");if(xt===0)break;Se+=xt}Er.push({x:Un,y:hn,width:Wr,height:Kn,has_local_palette:It,palette_offset:fn,palette_size:kn,data_offset:yt,data_length:Se-yt,transparent_index:tn,interlaced:!!Si,delay:Fr,disposal:Zt});break;case 59:Ht=!1;break;default:throw new Error("Unknown gif block: 0x"+Qe[Se-1].toString(16))}this.numFrames=function(){return Er.length},this.loopCount=function(){return Rn},this.frameInfo=function(Tt){if(Tt<0||Tt>=Er.length)throw new Error("Frame index out of range.");return Er[Tt]},this.decodeAndBlitFrameBGRA=function(Tt,Lt){var _t=this.frameInfo(Tt),Xt=_t.width*_t.height,er=new Uint8Array(Xt);gt(Qe,_t.data_offset,er,Xt);var nr=_t.palette_offset,br=_t.transparent_index;br===null&&(br=256);var On=_t.width,bn=Pe-On,qn=On,an=4*(_t.y*Pe+_t.x),_r=4*((_t.y+_t.height)*Pe+_t.x),mn=an,In=4*bn;_t.interlaced===!0&&(In+=4*Pe*7);for(var Wn=8,Jn=0,Ei=er.length;Jn<Ei;++Jn){var yi=er[Jn];if(qn===0&&(qn=On,(mn+=In)>=_r&&(In=4*bn+4*Pe*(Wn-1),mn=an+(On+bn)*(Wn<<1),Wn>>=1)),yi===br)mn+=4;else{var mi=Qe[nr+3*yi],Vi=Qe[nr+3*yi+1],la=Qe[nr+3*yi+2];Lt[mn++]=la,Lt[mn++]=Vi,Lt[mn++]=mi,Lt[mn++]=255}--qn}},this.decodeAndBlitFrameRGBA=function(Tt,Lt){var _t=this.frameInfo(Tt),Xt=_t.width*_t.height,er=new Uint8Array(Xt);gt(Qe,_t.data_offset,er,Xt);var nr=_t.palette_offset,br=_t.transparent_index;br===null&&(br=256);var On=_t.width,bn=Pe-On,qn=On,an=4*(_t.y*Pe+_t.x),_r=4*((_t.y+_t.height)*Pe+_t.x),mn=an,In=4*bn;_t.interlaced===!0&&(In+=4*Pe*7);for(var Wn=8,Jn=0,Ei=er.length;Jn<Ei;++Jn){var yi=er[Jn];if(qn===0&&(qn=On,(mn+=In)>=_r&&(In=4*bn+4*Pe*(Wn-1),mn=an+(On+bn)*(Wn<<1),Wn>>=1)),yi===br)mn+=4;else{var mi=Qe[nr+3*yi],Vi=Qe[nr+3*yi+1],la=Qe[nr+3*yi+2];Lt[mn++]=mi,Lt[mn++]=Vi,Lt[mn++]=la,Lt[mn++]=255}--qn}}}function gt(Qe,Se,Pe,He){for(var Ye=Qe[Se++],ze=1<<Ye,$e=ze+1,St=$e+1,ft=Ye+1,Ht=(1<<ft)-1,Er=0,Fr=0,tn=0,Zt=Qe[Se++],Rn=new Int32Array(4096),vn=null;;){for(;Er<16&&Zt!==0;)Fr|=Qe[Se++]<<Er,Er+=8,Zt===1?Zt=Qe[Se++]:--Zt;if(Er<ft)break;var Un=Fr&Ht;if(Fr>>=ft,Er-=ft,Un!==ze){if(Un===$e)break;for(var hn=Un<St?Un:vn,Wr=0,Kn=hn;Kn>ze;)Kn=Rn[Kn]>>8,++Wr;var ei=Kn;if(tn+Wr+(hn!==Un?1:0)>He)return void d.log("Warning, gif stream longer than expected.");Pe[tn++]=ei;var Si=tn+=Wr;for(hn!==Un&&(Pe[tn++]=ei),Kn=hn;Wr--;)Kn=Rn[Kn],Pe[--Si]=255&Kn,Kn>>=8;vn!==null&&St<4096&&(Rn[St++]=vn<<8|ei,St>=Ht+1&&ft<12&&(++ft,Ht=Ht<<1|1)),vn=Un}else St=$e+1,Ht=(1<<(ft=Ye+1))-1,vn=null}return tn!==He&&d.log("Warning, gif stream shorter than expected."),Pe}/**
* @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 kt(Qe){var Se,Pe,He,Ye,ze,$e=Math.floor,St=new Array(64),ft=new Array(64),Ht=new Array(64),Er=new Array(64),Fr=new Array(65535),tn=new Array(65535),Zt=new Array(64),Rn=new Array(64),vn=[],Un=0,hn=7,Wr=new Array(64),Kn=new Array(64),ei=new Array(64),Si=new Array(256),Vr=new Array(2048),fn=[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],kn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],It=[0,1,2,3,4,5,6,7,8,9,10,11],yt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],xt=[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],Tt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Lt=[0,1,2,3,4,5,6,7,8,9,10,11],_t=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Xt=[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 er(an,_r){for(var mn=0,In=0,Wn=new Array,Jn=1;Jn<=16;Jn++){for(var Ei=1;Ei<=an[Jn];Ei++)Wn[_r[In]]=[],Wn[_r[In]][0]=mn,Wn[_r[In]][1]=Jn,In++,mn++;mn*=2}return Wn}function nr(an){for(var _r=an[0],mn=an[1]-1;mn>=0;)_r&1<<mn&&(Un|=1<<hn),mn--,--hn<0&&(Un==255?(br(255),br(0)):br(Un),hn=7,Un=0)}function br(an){vn.push(an)}function On(an){br(an>>8&255),br(255&an)}function bn(an,_r,mn,In,Wn){for(var Jn,Ei=Wn[0],yi=Wn[240],mi=function(Wi,qi){var Ir,ar,nn,Gt,wr,Pr,Jr,wn,bt,mr,Ar=0;for(bt=0;bt<8;++bt){Ir=Wi[Ar],ar=Wi[Ar+1],nn=Wi[Ar+2],Gt=Wi[Ar+3],wr=Wi[Ar+4],Pr=Wi[Ar+5],Jr=Wi[Ar+6];var Ur=Ir+(wn=Wi[Ar+7]),un=Ir-wn,An=ar+Jr,ln=ar-Jr,Hn=nn+Pr,Ln=nn-Pr,ni=Gt+wr,Ai=Gt-wr,ii=Ur+ni,_i=Ur-ni,Ri=An+Hn,ji=An-Hn;Wi[Ar]=ii+Ri,Wi[Ar+4]=ii-Ri;var wi=.707106781*(ji+_i);Wi[Ar+2]=_i+wi,Wi[Ar+6]=_i-wi;var Ii=.382683433*((ii=Ai+Ln)-(ji=ln+un)),Oi=.5411961*ii+Ii,Ui=1.306562965*ji+Ii,Zi=.707106781*(Ri=Ln+ln),ma=un+Zi,Hi=un-Zi;Wi[Ar+5]=Hi+Oi,Wi[Ar+3]=Hi-Oi,Wi[Ar+1]=ma+Ui,Wi[Ar+7]=ma-Ui,Ar+=8}for(Ar=0,bt=0;bt<8;++bt){Ir=Wi[Ar],ar=Wi[Ar+8],nn=Wi[Ar+16],Gt=Wi[Ar+24],wr=Wi[Ar+32],Pr=Wi[Ar+40],Jr=Wi[Ar+48];var xa=Ir+(wn=Wi[Ar+56]),Ea=Ir-wn,ta=ar+Jr,ra=ar-Jr,ga=nn+Pr,sa=nn-Pr,Ba=Gt+wr,va=Gt-wr,Ia=xa+Ba,za=xa-Ba,Va=ta+ga,Ya=ta-ga;Wi[Ar]=Ia+Va,Wi[Ar+32]=Ia-Va;var Bi=.707106781*(Ya+za);Wi[Ar+16]=za+Bi,Wi[Ar+48]=za-Bi;var ro=.382683433*((Ia=va+sa)-(Ya=ra+Ea)),lo=.5411961*Ia+ro,no=1.306562965*Ya+ro,co=.707106781*(Va=sa+ra),To=Ea+co,Ga=Ea-co;Wi[Ar+40]=Ga+lo,Wi[Ar+24]=Ga-lo,Wi[Ar+8]=To+no,Wi[Ar+56]=To-no,Ar++}for(bt=0;bt<64;++bt)mr=Wi[bt]*qi[bt],Zt[bt]=mr>0?mr+.5|0:mr-.5|0;return Zt}(an,_r),Vi=0;Vi<64;++Vi)Rn[fn[Vi]]=mi[Vi];var la=Rn[0]-mn;mn=Rn[0],la==0?nr(In[0]):(nr(In[tn[Jn=32767+la]]),nr(Fr[Jn]));for(var Gi=63;Gi>0&&Rn[Gi]==0;)Gi--;if(Gi==0)return nr(Ei),mn;for(var ia,$i=1;$i<=Gi;){for(var xn=$i;Rn[$i]==0&&$i<=Gi;)++$i;var Ti=$i-xn;if(Ti>=16){ia=Ti>>4;for(var Ji=1;Ji<=ia;++Ji)nr(yi);Ti&=15}Jn=32767+Rn[$i],nr(Wn[(Ti<<4)+tn[Jn]]),nr(Fr[Jn]),$i++}return Gi!=63&&nr(Ei),mn}function qn(an){(an=Math.min(Math.max(an,1),100),ze!=an)&&(!function(_r){for(var mn=[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],In=0;In<64;In++){var Wn=$e((mn[In]*_r+50)/100);Wn=Math.min(Math.max(Wn,1),255),St[fn[In]]=Wn}for(var Jn=[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],Ei=0;Ei<64;Ei++){var yi=$e((Jn[Ei]*_r+50)/100);yi=Math.min(Math.max(yi,1),255),ft[fn[Ei]]=yi}for(var mi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Vi=0,la=0;la<8;la++)for(var Gi=0;Gi<8;Gi++)Ht[Vi]=1/(St[fn[Vi]]*mi[la]*mi[Gi]*8),Er[Vi]=1/(ft[fn[Vi]]*mi[la]*mi[Gi]*8),Vi++}(an<50?Math.floor(5e3/an):Math.floor(200-2*an)),ze=an)}this.encode=function(an,_r){_r&&qn(_r),vn=new Array,Un=0,hn=7,On(65496),On(65504),On(16),br(74),br(70),br(73),br(70),br(0),br(1),br(1),br(0),On(1),On(1),br(0),br(0),function(){On(65499),On(132),br(0);for(var ar=0;ar<64;ar++)br(St[ar]);br(1);for(var nn=0;nn<64;nn++)br(ft[nn])}(),function(ar,nn){On(65472),On(17),br(8),On(nn),On(ar),br(3),br(1),br(17),br(0),br(2),br(17),br(1),br(3),br(17),br(1)}(an.width,an.height),function(){On(65476),On(418),br(0);for(var ar=0;ar<16;ar++)br(kn[ar+1]);for(var nn=0;nn<=11;nn++)br(It[nn]);br(16);for(var Gt=0;Gt<16;Gt++)br(yt[Gt+1]);for(var wr=0;wr<=161;wr++)br(xt[wr]);br(1);for(var Pr=0;Pr<16;Pr++)br(Tt[Pr+1]);for(var Jr=0;Jr<=11;Jr++)br(Lt[Jr]);br(17);for(var wn=0;wn<16;wn++)br(_t[wn+1]);for(var bt=0;bt<=161;bt++)br(Xt[bt])}(),On(65498),On(12),br(3),br(1),br(0),br(2),br(17),br(3),br(17),br(0),br(63),br(0);var mn=0,In=0,Wn=0;Un=0,hn=7,this.encode.displayName="_encode_";for(var Jn,Ei,yi,mi,Vi,la,Gi,ia,$i,xn=an.data,Ti=an.width,Ji=an.height,Wi=4*Ti,qi=0;qi<Ji;){for(Jn=0;Jn<Wi;){for(Vi=Wi*qi+Jn,Gi=-1,ia=0,$i=0;$i<64;$i++)la=Vi+(ia=$i>>3)*Wi+(Gi=4*(7&$i)),qi+ia>=Ji&&(la-=Wi*(qi+1+ia-Ji)),Jn+Gi>=Wi&&(la-=Jn+Gi-Wi+4),Ei=xn[la++],yi=xn[la++],mi=xn[la++],Wr[$i]=(Vr[Ei]+Vr[yi+256>>0]+Vr[mi+512>>0]>>16)-128,Kn[$i]=(Vr[Ei+768>>0]+Vr[yi+1024>>0]+Vr[mi+1280>>0]>>16)-128,ei[$i]=(Vr[Ei+1280>>0]+Vr[yi+1536>>0]+Vr[mi+1792>>0]>>16)-128;mn=bn(Wr,Ht,mn,Se,He),In=bn(Kn,Er,In,Pe,Ye),Wn=bn(ei,Er,Wn,Pe,Ye),Jn+=32}qi+=8}if(hn>=0){var Ir=[];Ir[1]=hn+1,Ir[0]=(1<<hn+1)-1,nr(Ir)}return On(65497),new Uint8Array(vn)},Qe=Qe||50,function(){for(var an=String.fromCharCode,_r=0;_r<256;_r++)Si[_r]=an(_r)}(),Se=er(kn,It),Pe=er(Tt,Lt),He=er(yt,xt),Ye=er(_t,Xt),function(){for(var an=1,_r=2,mn=1;mn<=15;mn++){for(var In=an;In<_r;In++)tn[32767+In]=mn,Fr[32767+In]=[],Fr[32767+In][1]=mn,Fr[32767+In][0]=In;for(var Wn=-(_r-1);Wn<=-an;Wn++)tn[32767+Wn]=mn,Fr[32767+Wn]=[],Fr[32767+Wn][1]=mn,Fr[32767+Wn][0]=_r-1+Wn;an<<=1,_r<<=1}}(),function(){for(var an=0;an<256;an++)Vr[an]=19595*an,Vr[an+256>>0]=38470*an,Vr[an+512>>0]=7471*an+32768,Vr[an+768>>0]=-11059*an,Vr[an+1024>>0]=-21709*an,Vr[an+1280>>0]=32768*an+8421375,Vr[an+1536>>0]=-27439*an,Vr[an+1792>>0]=-5329*an}(),qn(Qe)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function xr(Qe,Se){if(this.pos=0,this.buffer=Qe,this.datav=new DataView(Qe.buffer),this.is_with_alpha=!!Se,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 Hr(Qe){function Se(kn){if(!kn)throw Error("assert :P")}function Pe(kn,It,yt){for(var xt=0;4>xt;xt++)if(kn[It+xt]!=yt.charCodeAt(xt))return!0;return!1}function He(kn,It,yt,xt,Tt){for(var Lt=0;Lt<Tt;Lt++)kn[It+Lt]=yt[xt+Lt]}function Ye(kn,It,yt,xt){for(var Tt=0;Tt<xt;Tt++)kn[It+Tt]=yt}function ze(kn){return new Int32Array(kn)}function $e(kn,It){for(var yt=[],xt=0;xt<kn;xt++)yt.push(new It);return yt}function St(kn,It){var yt=[];return function xt(Tt,Lt,_t){for(var Xt=_t[Lt],er=0;er<Xt&&(Tt.push(_t.length>Lt+1?[]:new It),!(_t.length<Lt+1));er++)xt(Tt[er],Lt+1,_t)}(yt,0,kn),yt}var ft=function(){var It=this;function yt(ve,Ke){for(var ht=1<<Ke-1>>>0;ve&ht;)ht>>>=1;return ht?(ve&ht-1)+ht:ve}function xt(ve,Ke,ht,Vt,Cr){Se(!(Vt%ht));do ve[Ke+(Vt-=ht)]=Cr;while(0<Vt)}function Tt(ve,Ke,ht,Vt,Cr){if(Se(2328>=Cr),512>=Cr)var Xr=ze(512);else if((Xr=ze(Cr))==null)return 0;return function(De,ae,be,We,ut,Dt){var jt,Wt,Rr=ae,Zr=1<<be,kr=ze(16),Or=ze(16);for(Se(ut!=0),Se(We!=null),Se(De!=null),Se(0<be),Wt=0;Wt<ut;++Wt){if(15<We[Wt])return 0;++kr[We[Wt]]}if(kr[0]==ut)return 0;for(Or[1]=0,jt=1;15>jt;++jt){if(kr[jt]>1<<jt)return 0;Or[jt+1]=Or[jt]+kr[jt]}for(Wt=0;Wt<ut;++Wt)jt=We[Wt],0<We[Wt]&&(Dt[Or[jt]++]=Wt);if(Or[15]==1)return(We=new Lt).g=0,We.value=Dt[0],xt(De,Rr,1,Zr,We),Zr;var Yr,rn=-1,_n=Zr-1,fi=0,vi=1,Qi=1,Mi=1<<be;for(Wt=0,jt=1,ut=2;jt<=be;++jt,ut<<=1){if(vi+=Qi<<=1,0>(Qi-=kr[jt]))return 0;for(;0<kr[jt];--kr[jt])(We=new Lt).g=jt,We.value=Dt[Wt++],xt(De,Rr+fi,ut,Mi,We),fi=yt(fi,jt)}for(jt=be+1,ut=2;15>=jt;++jt,ut<<=1){if(vi+=Qi<<=1,0>(Qi-=kr[jt]))return 0;for(;0<kr[jt];--kr[jt]){if(We=new Lt,(fi&_n)!=rn){for(Rr+=Mi,Yr=1<<(rn=jt)-be;15>rn&&!(0>=(Yr-=kr[rn]));)++rn,Yr<<=1;Zr+=Mi=1<<(Yr=rn-be),De[ae+(rn=fi&_n)].g=Yr+be,De[ae+rn].value=Rr-ae-rn}We.g=jt-be,We.value=Dt[Wt++],xt(De,Rr+(fi>>be),ut,Mi,We),fi=yt(fi,jt)}}return vi!=2*Or[15]-1?0:Zr}(ve,Ke,ht,Vt,Cr,Xr)}function Lt(){this.value=this.g=0}function _t(){this.value=this.g=0}function Xt(){this.G=$e(5,Lt),this.H=ze(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=$e(Xo,_t)}function er(ve,Ke,ht,Vt){Se(ve!=null),Se(Ke!=null),Se(2147483648>Vt),ve.Ca=254,ve.I=0,ve.b=-8,ve.Ka=0,ve.oa=Ke,ve.pa=ht,ve.Jd=Ke,ve.Yc=ht+Vt,ve.Zc=4<=Vt?ht+Vt-4+1:ht,Ei(ve)}function nr(ve,Ke){for(var ht=0;0<Ke--;)ht|=mi(ve,128)<<Ke;return ht}function br(ve,Ke){var ht=nr(ve,Ke);return yi(ve)?-ht:ht}function On(ve,Ke,ht,Vt){var Cr,Xr=0;for(Se(ve!=null),Se(Ke!=null),Se(4294967288>Vt),ve.Sb=Vt,ve.Ra=0,ve.u=0,ve.h=0,4<Vt&&(Vt=4),Cr=0;Cr<Vt;++Cr)Xr+=Ke[ht+Cr]<<8*Cr;ve.Ra=Xr,ve.bb=Vt,ve.oa=Ke,ve.pa=ht}function bn(ve){for(;8<=ve.u&&ve.bb<ve.Sb;)ve.Ra>>>=8,ve.Ra+=ve.oa[ve.pa+ve.bb]<<Kl-8>>>0,++ve.bb,ve.u-=8;In(ve)&&(ve.h=1,ve.u=0)}function qn(ve,Ke){if(Se(0<=Ke),!ve.h&&Ke<=Gl){var ht=mn(ve)&Zs[Ke];return ve.u+=Ke,bn(ve),ht}return ve.h=1,ve.u=0}function an(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _r(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function mn(ve){return ve.Ra>>>(ve.u&Kl-1)>>>0}function In(ve){return Se(ve.bb<=ve.Sb),ve.h||ve.bb==ve.Sb&&ve.u>Kl}function Wn(ve,Ke){ve.u=Ke,ve.h=In(ve)}function Jn(ve){ve.u>=ka&&(Se(ve.u>=ka),bn(ve))}function Ei(ve){Se(ve!=null&&ve.oa!=null),ve.pa<ve.Zc?(ve.I=(ve.oa[ve.pa++]|ve.I<<8)>>>0,ve.b+=8):(Se(ve!=null&&ve.oa!=null),ve.pa<ve.Yc?(ve.b+=8,ve.I=ve.oa[ve.pa++]|ve.I<<8):ve.Ka?ve.b=0:(ve.I<<=8,ve.b+=8,ve.Ka=1))}function yi(ve){return nr(ve,1)}function mi(ve,Ke){var ht=ve.Ca;0>ve.b&&Ei(ve);var Vt=ve.b,Cr=ht*Ke>>>8,Xr=(ve.I>>>Vt>Cr)+0;for(Xr?(ht-=Cr,ve.I-=Cr+1<<Vt>>>0):ht=Cr+1,Vt=ht,Cr=0;256<=Vt;)Cr+=8,Vt>>=8;return Vt=7^Cr+Ll[Vt],ve.b-=Vt,ve.Ca=(ht<<Vt)-1,Xr}function Vi(ve,Ke,ht){ve[Ke+0]=ht>>24&255,ve[Ke+1]=ht>>16&255,ve[Ke+2]=ht>>8&255,ve[Ke+3]=ht>>0&255}function la(ve,Ke){return ve[Ke+0]<<0|ve[Ke+1]<<8}function Gi(ve,Ke){return la(ve,Ke)|ve[Ke+2]<<16}function ia(ve,Ke){return la(ve,Ke)|la(ve,Ke+2)<<16}function $i(ve,Ke){var ht=1<<Ke;return Se(ve!=null),Se(0<Ke),ve.X=ze(ht),ve.X==null?0:(ve.Mb=32-Ke,ve.Xa=Ke,1)}function xn(ve,Ke){Se(ve!=null),Se(Ke!=null),Se(ve.Xa==Ke.Xa),He(Ke.X,0,ve.X,0,1<<Ke.Xa)}function Ti(){this.X=[],this.Xa=this.Mb=0}function Ji(ve,Ke,ht,Vt){Se(ht!=null),Se(Vt!=null);var Cr=ht[0],Xr=Vt[0];return Cr==0&&(Cr=(ve*Xr+Ke/2)/Ke),Xr==0&&(Xr=(Ke*Cr+ve/2)/ve),0>=Cr||0>=Xr?0:(ht[0]=Cr,Vt[0]=Xr,1)}function Wi(ve,Ke){return ve+(1<<Ke)-1>>>Ke}function qi(ve,Ke){return((4278255360&ve)+(4278255360&Ke)>>>0&4278255360)+((16711935&ve)+(16711935&Ke)>>>0&16711935)>>>0}function Ir(ve,Ke){It[Ke]=function(ht,Vt,Cr,Xr,De,ae,be){var We;for(We=0;We<De;++We){var ut=It[ve](ae[be+We-1],Cr,Xr+We);ae[be+We]=qi(ht[Vt+We],ut)}}}function ar(){this.ud=this.hd=this.jd=0}function nn(ve,Ke){return((4278124286&(ve^Ke))>>>1)+(ve&Ke)>>>0}function Gt(ve){return 0<=ve&&256>ve?ve:0>ve?0:255<ve?255:void 0}function wr(ve,Ke){return Gt(ve+(ve-Ke+.5>>1))}function Pr(ve,Ke,ht){return Math.abs(Ke-ht)-Math.abs(ve-ht)}function Jr(ve,Ke,ht,Vt,Cr,Xr,De){for(Vt=Xr[De-1],ht=0;ht<Cr;++ht)Xr[De+ht]=Vt=qi(ve[Ke+ht],Vt)}function wn(ve,Ke,ht,Vt,Cr){var Xr;for(Xr=0;Xr<ht;++Xr){var De=ve[Ke+Xr],ae=De>>8&255,be=16711935&(be=(be=16711935&De)+((ae<<16)+ae));Vt[Cr+Xr]=(4278255360&De)+be>>>0}}function bt(ve,Ke){Ke.jd=ve>>0&255,Ke.hd=ve>>8&255,Ke.ud=ve>>16&255}function mr(ve,Ke,ht,Vt,Cr,Xr){var De;for(De=0;De<Vt;++De){var ae=Ke[ht+De],be=ae>>>8,We=ae,ut=255&(ut=(ut=ae>>>16)+((ve.jd<<24>>24)*(be<<24>>24)>>>5));We=255&(We=(We=We+((ve.hd<<24>>24)*(be<<24>>24)>>>5))+((ve.ud<<24>>24)*(ut<<24>>24)>>>5)),Cr[Xr+De]=(4278255360&ae)+(ut<<16)+We}}function Ar(ve,Ke,ht,Vt,Cr){It[Ke]=function(Xr,De,ae,be,We,ut,Dt,jt,Wt){for(be=Dt;be<jt;++be)for(Dt=0;Dt<Wt;++Dt)We[ut++]=Cr(ae[Vt(Xr[De++])])},It[ve]=function(Xr,De,ae,be,We,ut,Dt){var jt=8>>Xr.b,Wt=Xr.Ea,Rr=Xr.K[0],Zr=Xr.w;if(8>jt)for(Xr=(1<<Xr.b)-1,Zr=(1<<jt)-1;De<ae;++De){var kr,Or=0;for(kr=0;kr<Wt;++kr)kr&Xr||(Or=Vt(be[We++])),ut[Dt++]=Cr(Rr[Or&Zr]),Or>>=jt}else It["VP8LMapColor"+ht](be,We,Rr,Zr,ut,Dt,De,ae,Wt)}}function Ur(ve,Ke,ht,Vt,Cr){for(ht=Ke+ht;Ke<ht;){var Xr=ve[Ke++];Vt[Cr++]=Xr>>16&255,Vt[Cr++]=Xr>>8&255,Vt[Cr++]=Xr>>0&255}}function un(ve,Ke,ht,Vt,Cr){for(ht=Ke+ht;Ke<ht;){var Xr=ve[Ke++];Vt[Cr++]=Xr>>16&255,Vt[Cr++]=Xr>>8&255,Vt[Cr++]=Xr>>0&255,Vt[Cr++]=Xr>>24&255}}function An(ve,Ke,ht,Vt,Cr){for(ht=Ke+ht;Ke<ht;){var Xr=(De=ve[Ke++])>>16&240|De>>12&15,De=De>>0&240|De>>28&15;Vt[Cr++]=Xr,Vt[Cr++]=De}}function ln(ve,Ke,ht,Vt,Cr){for(ht=Ke+ht;Ke<ht;){var Xr=(De=ve[Ke++])>>16&248|De>>13&7,De=De>>5&224|De>>3&31;Vt[Cr++]=Xr,Vt[Cr++]=De}}function Hn(ve,Ke,ht,Vt,Cr){for(ht=Ke+ht;Ke<ht;){var Xr=ve[Ke++];Vt[Cr++]=Xr>>0&255,Vt[Cr++]=Xr>>8&255,Vt[Cr++]=Xr>>16&255}}function Ln(ve,Ke,ht,Vt,Cr,Xr){if(Xr==0)for(ht=Ke+ht;Ke<ht;)Vi(Vt,((Xr=ve[Ke++])[0]>>24|Xr[1]>>8&65280|Xr[2]<<8&16711680|Xr[3]<<24)>>>0),Cr+=32;else He(Vt,Cr,ve,Ke,ht)}function ni(ve,Ke){It[Ke][0]=It[ve+"0"],It[Ke][1]=It[ve+"1"],It[Ke][2]=It[ve+"2"],It[Ke][3]=It[ve+"3"],It[Ke][4]=It[ve+"4"],It[Ke][5]=It[ve+"5"],It[Ke][6]=It[ve+"6"],It[Ke][7]=It[ve+"7"],It[Ke][8]=It[ve+"8"],It[Ke][9]=It[ve+"9"],It[Ke][10]=It[ve+"10"],It[Ke][11]=It[ve+"11"],It[Ke][12]=It[ve+"12"],It[Ke][13]=It[ve+"13"],It[Ke][14]=It[ve+"0"],It[Ke][15]=It[ve+"0"]}function Ai(ve){return ve==Lu||ve==Ml||ve==$l||ve==iu}function ii(){this.eb=[],this.size=this.A=this.fb=0}function _i(){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 Ri(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ii,this.f.kb=new _i,this.sd=null}function ji(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function wi(){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 Ii(ve){return alert("todo:WebPSamplerProcessPlane"),ve.T}function Oi(ve,Ke){var ht=ve.T,Vt=Ke.ba.f.RGBA,Cr=Vt.eb,Xr=Vt.fb+ve.ka*Vt.A,De=te[Ke.ba.S],ae=ve.y,be=ve.O,We=ve.f,ut=ve.N,Dt=ve.ea,jt=ve.W,Wt=Ke.cc,Rr=Ke.dc,Zr=Ke.Mc,kr=Ke.Nc,Or=ve.ka,Yr=ve.ka+ve.T,rn=ve.U,_n=rn+1>>1;for(Or==0?De(ae,be,null,null,We,ut,Dt,jt,We,ut,Dt,jt,Cr,Xr,null,null,rn):(De(Ke.ec,Ke.fc,ae,be,Wt,Rr,Zr,kr,We,ut,Dt,jt,Cr,Xr-Vt.A,Cr,Xr,rn),++ht);Or+2<Yr;Or+=2)Wt=We,Rr=ut,Zr=Dt,kr=jt,ut+=ve.Rc,jt+=ve.Rc,Xr+=2*Vt.A,De(ae,(be+=2*ve.fa)-ve.fa,ae,be,Wt,Rr,Zr,kr,We,ut,Dt,jt,Cr,Xr-Vt.A,Cr,Xr,rn);return be+=ve.fa,ve.j+Yr<ve.o?(He(Ke.ec,Ke.fc,ae,be,rn),He(Ke.cc,Ke.dc,We,ut,_n),He(Ke.Mc,Ke.Nc,Dt,jt,_n),ht--):1&Yr||De(ae,be,null,null,We,ut,Dt,jt,We,ut,Dt,jt,Cr,Xr+Vt.A,null,null,rn),ht}function Ui(ve,Ke,ht){var Vt=ve.F,Cr=[ve.J];if(Vt!=null){var Xr=ve.U,De=Ke.ba.S,ae=De==fl||De==$l;Ke=Ke.ba.f.RGBA;var be=[0],We=ve.ka;be[0]=ve.T,ve.Kb&&(We==0?--be[0]:(--We,Cr[0]-=ve.width),ve.j+ve.ka+ve.T==ve.o&&(be[0]=ve.o-ve.j-We));var ut=Ke.eb;We=Ke.fb+We*Ke.A,ve=cl(Vt,Cr[0],ve.width,Xr,be,ut,We+(ae?0:3),Ke.A),Se(ht==be),ve&&Ai(De)&&Xl(ut,We,ae,Xr,be,Ke.A)}return 0}function Zi(ve){var Ke=ve.ma,ht=Ke.ba.S,Vt=11>ht,Cr=ht==_l||ht==hl||ht==fl||ht==pu||ht==12||Ai(ht);if(Ke.memory=null,Ke.Ib=null,Ke.Jb=null,Ke.Nd=null,!Hl(Ke.Oa,ve,Cr?11:12))return 0;if(Cr&&Ai(ht)&&Pa(),ve.da)alert("todo:use_scaling");else{if(Vt){if(Ke.Ib=Ii,ve.Kb){if(ht=ve.U+1>>1,Ke.memory=ze(ve.U+2*ht),Ke.memory==null)return 0;Ke.ec=Ke.memory,Ke.fc=0,Ke.cc=Ke.ec,Ke.dc=Ke.fc+ve.U,Ke.Mc=Ke.cc,Ke.Nc=Ke.dc+ht,Ke.Ib=Oi,Pa()}}else alert("todo:EmitYUV");Cr&&(Ke.Jb=Ui,Vt&&Yi())}if(Vt&&!si){for(ve=0;256>ve;++ve)Xi[ve]=89858*(ve-128)+Dr>>tr,Aa[ve]=-22014*(ve-128)+Dr,Pi[ve]=-45773*(ve-128),Li[ve]=113618*(ve-128)+Dr>>tr;for(ve=jr;ve<Sn;++ve)Ke=76283*(ve-16)+Dr>>tr,Na[ve-jr]=go(Ke,255),Sa[ve-jr]=go(Ke+8>>4,15);si=1}return 1}function ma(ve){var Ke=ve.ma,ht=ve.U,Vt=ve.T;return Se(!(1&ve.ka)),0>=ht||0>=Vt?0:(ht=Ke.Ib(ve,Ke),Ke.Jb!=null&&Ke.Jb(ve,Ke,ht),Ke.Dc+=ht,1)}function Hi(ve){ve.ma.memory=null}function xa(ve,Ke,ht,Vt){return qn(ve,8)!=47?0:(Ke[0]=qn(ve,14)+1,ht[0]=qn(ve,14)+1,Vt[0]=qn(ve,1),qn(ve,3)!=0?0:!ve.h)}function Ea(ve,Ke){if(4>ve)return ve+1;var ht=ve-2>>1;return(2+(1&ve)<<ht)+qn(Ke,ht)+1}function ta(ve,Ke){return 120<Ke?Ke-120:1<=(ht=((ht=gu[Ke-1])>>4)*ve+(8-(15&ht)))?ht:1;var ht}function ra(ve,Ke,ht){var Vt=mn(ht),Cr=ve[Ke+=255&Vt].g-8;return 0<Cr&&(Wn(ht,ht.u+8),Vt=mn(ht),Ke+=ve[Ke].value,Ke+=Vt&(1<<Cr)-1),Wn(ht,ht.u+ve[Ke].g),ve[Ke].value}function ga(ve,Ke,ht){return ht.g+=ve.g,ht.value+=ve.value<<Ke>>>0,Se(8>=ht.g),ve.g}function sa(ve,Ke,ht){var Vt=ve.xc;return Se((Ke=Vt==0?0:ve.vc[ve.md*(ht>>Vt)+(Ke>>Vt)])<ve.Wb),ve.Ya[Ke]}function Ba(ve,Ke,ht,Vt){var Cr=ve.ab,Xr=ve.c*Ke,De=ve.C;Ke=De+Ke;var ae=ht,be=Vt;for(Vt=ve.Ta,ht=ve.Ua;0<Cr--;){var We=ve.gc[Cr],ut=De,Dt=Ke,jt=ae,Wt=be,Rr=(be=Vt,ae=ht,We.Ea);switch(Se(ut<Dt),Se(Dt<=We.nc),We.hc){case 2:Is(jt,Wt,(Dt-ut)*Rr,be,ae);break;case 0:var Zr=ut,kr=Dt,Or=be,Yr=ae,rn=(Mi=We).Ea;Zr==0&&(kl(jt,Wt,null,null,1,Or,Yr),Jr(jt,Wt+1,0,0,rn-1,Or,Yr+1),Wt+=rn,Yr+=rn,++Zr);for(var _n=1<<Mi.b,fi=_n-1,vi=Wi(rn,Mi.b),Qi=Mi.K,Mi=Mi.w+(Zr>>Mi.b)*vi;Zr<kr;){var Da=Qi,oa=Mi,$a=1;for(Al(jt,Wt,Or,Yr-rn,1,Or,Yr);$a<rn;){var ja=($a&~fi)+_n;ja>rn&&(ja=rn),(0,Ls[Da[oa++]>>8&15])(jt,Wt+ +$a,Or,Yr+$a-rn,ja-$a,Or,Yr+$a),$a=ja}Wt+=rn,Yr+=rn,++Zr&fi||(Mi+=vi)}Dt!=We.nc&&He(be,ae-Rr,be,ae+(Dt-ut-1)*Rr,Rr);break;case 1:for(Rr=jt,kr=Wt,rn=(jt=We.Ea)-(Yr=jt&~(Or=(Wt=1<<We.b)-1)),Zr=Wi(jt,We.b),_n=We.K,We=We.w+(ut>>We.b)*Zr;ut<Dt;){for(fi=_n,vi=We,Qi=new ar,Mi=kr+Yr,Da=kr+jt;kr<Mi;)bt(fi[vi++],Qi),Xs(Qi,Rr,kr,Wt,be,ae),kr+=Wt,ae+=Wt;kr<Da&&(bt(fi[vi++],Qi),Xs(Qi,Rr,kr,rn,be,ae),kr+=rn,ae+=rn),++ut&Or||(We+=Zr)}break;case 3:if(jt==be&&Wt==ae&&0<We.b){for(kr=be,jt=Rr=ae+(Dt-ut)*Rr-(Yr=(Dt-ut)*Wi(We.Ea,We.b)),Wt=be,Or=ae,Zr=[],Yr=(rn=Yr)-1;0<=Yr;--Yr)Zr[Yr]=Wt[Or+Yr];for(Yr=rn-1;0<=Yr;--Yr)kr[jt+Yr]=Zr[Yr];al(We,ut,Dt,be,Rr,be,ae)}else al(We,ut,Dt,jt,Wt,be,ae)}ae=Vt,be=ht}be!=ht&&He(Vt,ht,ae,be,Xr)}function va(ve,Ke){var ht=ve.V,Vt=ve.Ba+ve.c*ve.C,Cr=Ke-ve.C;if(Se(Ke<=ve.l.o),Se(16>=Cr),0<Cr){var Xr=ve.l,De=ve.Ta,ae=ve.Ua,be=Xr.width;if(Ba(ve,Cr,ht,Vt),Cr=ae=[ae],Se((ht=ve.C)<(Vt=Ke)),Se(Xr.v<Xr.va),Vt>Xr.o&&(Vt=Xr.o),ht<Xr.j){var We=Xr.j-ht;ht=Xr.j,Cr[0]+=We*be}if(ht>=Vt?ht=0:(Cr[0]+=4*Xr.v,Xr.ka=ht-Xr.j,Xr.U=Xr.va-Xr.v,Xr.T=Vt-ht,ht=1),ht){if(ae=ae[0],11>(ht=ve.ca).S){var ut=ht.f.RGBA,Dt=(Vt=ht.S,Cr=Xr.U,Xr=Xr.T,We=ut.eb,ut.A),jt=Xr;for(ut=ut.fb+ve.Ma*ut.A;0<jt--;){var Wt=De,Rr=ae,Zr=Cr,kr=We,Or=ut;switch(Vt){case Zl:Wl(Wt,Rr,Zr,kr,Or);break;case _l:ol(Wt,Rr,Zr,kr,Or);break;case Lu:ol(Wt,Rr,Zr,kr,Or),Xl(kr,Or,0,Zr,1,0);break;case fu:Bo(Wt,Rr,Zr,kr,Or);break;case hl:Ln(Wt,Rr,Zr,kr,Or,1);break;case Ml:Ln(Wt,Rr,Zr,kr,Or,1),Xl(kr,Or,0,Zr,1,0);break;case fl:Ln(Wt,Rr,Zr,kr,Or,0);break;case $l:Ln(Wt,Rr,Zr,kr,Or,0),Xl(kr,Or,1,Zr,1,0);break;case pu:So(Wt,Rr,Zr,kr,Or);break;case iu:So(Wt,Rr,Zr,kr,Or),Jl(kr,Or,Zr,1,0);break;case mu:io(Wt,Rr,Zr,kr,Or);break;default:Se(0)}ae+=be,ut+=Dt}ve.Ma+=Xr}else alert("todo:EmitRescaledRowsYUVA");Se(ve.Ma<=ht.height)}}ve.C=Ke,Se(ve.C<=ve.i)}function Ia(ve){var Ke;if(0<ve.ua)return 0;for(Ke=0;Ke<ve.Wb;++Ke){var ht=ve.Ya[Ke].G,Vt=ve.Ya[Ke].H;if(0<ht[1][Vt[1]+0].g||0<ht[2][Vt[2]+0].g||0<ht[3][Vt[3]+0].g)return 0}return 1}function za(ve,Ke,ht,Vt,Cr,Xr){if(ve.Z!=0){var De=ve.qd,ae=ve.rd;for(Se(J[ve.Z]!=null);Ke<ht;++Ke)J[ve.Z](De,ae,Vt,Cr,Vt,Cr,Xr),De=Vt,ae=Cr,Cr+=Xr;ve.qd=De,ve.rd=ae}}function Va(ve,Ke){var ht=ve.l.ma,Vt=ht.Z==0||ht.Z==1?ve.l.j:ve.C;if(Vt=ve.C<Vt?Vt:ve.C,Se(Ke<=ve.l.o),Ke>Vt){var Cr=ve.l.width,Xr=ht.ca,De=ht.tb+Cr*Vt,ae=ve.V,be=ve.Ba+ve.c*Vt,We=ve.gc;Se(ve.ab==1),Se(We[0].hc==3),Nl(We[0],Vt,Ke,ae,be,Xr,De),za(ht,Vt,Ke,Xr,De,Cr)}ve.C=ve.Ma=Ke}function Ya(ve,Ke,ht,Vt,Cr,Xr,De){var ae=ve.$/Vt,be=ve.$%Vt,We=ve.m,ut=ve.s,Dt=ht+ve.$,jt=Dt;Cr=ht+Vt*Cr;var Wt=ht+Vt*Xr,Rr=280+ut.ua,Zr=ve.Pb?ae:16777216,kr=0<ut.ua?ut.Wa:null,Or=ut.wc,Yr=Dt<Wt?sa(ut,be,ae):null;Se(ve.C<Xr),Se(Wt<=Cr);var rn=!1;e:for(;;){for(;rn||Dt<Wt;){var _n=0;if(ae>=Zr){var fi=Dt-ht;Se((Zr=ve).Pb),Zr.wd=Zr.m,Zr.xd=fi,0<Zr.s.ua&&xn(Zr.s.Wa,Zr.s.vb),Zr=ae+vu}if(be&Or||(Yr=sa(ut,be,ae)),Se(Yr!=null),Yr.Qb&&(Ke[Dt]=Yr.qb,rn=!0),!rn)if(Jn(We),Yr.jc){_n=We,fi=Ke;var vi=Dt,Qi=Yr.pd[mn(_n)&Xo-1];Se(Yr.jc),256>Qi.g?(Wn(_n,_n.u+Qi.g),fi[vi]=Qi.value,_n=0):(Wn(_n,_n.u+Qi.g-256),Se(256<=Qi.value),_n=Qi.value),_n==0&&(rn=!0)}else _n=ra(Yr.G[0],Yr.H[0],We);if(We.h)break;if(rn||256>_n){if(!rn)if(Yr.nd)Ke[Dt]=(Yr.qb|_n<<8)>>>0;else{if(Jn(We),rn=ra(Yr.G[1],Yr.H[1],We),Jn(We),fi=ra(Yr.G[2],Yr.H[2],We),vi=ra(Yr.G[3],Yr.H[3],We),We.h)break;Ke[Dt]=(vi<<24|rn<<16|_n<<8|fi)>>>0}if(rn=!1,++Dt,++be>=Vt&&(be=0,++ae,De!=null&&ae<=Xr&&!(ae%16)&&De(ve,ae),kr!=null))for(;jt<Dt;)_n=Ke[jt++],kr.X[(506832829*_n&4294967295)>>>kr.Mb]=_n}else if(280>_n){if(_n=Ea(_n-256,We),fi=ra(Yr.G[4],Yr.H[4],We),Jn(We),fi=ta(Vt,fi=Ea(fi,We)),We.h)break;if(Dt-ht<fi||Cr-Dt<_n)break e;for(vi=0;vi<_n;++vi)Ke[Dt+vi]=Ke[Dt+vi-fi];for(Dt+=_n,be+=_n;be>=Vt;)be-=Vt,++ae,De!=null&&ae<=Xr&&!(ae%16)&&De(ve,ae);if(Se(Dt<=Cr),be&Or&&(Yr=sa(ut,be,ae)),kr!=null)for(;jt<Dt;)_n=Ke[jt++],kr.X[(506832829*_n&4294967295)>>>kr.Mb]=_n}else{if(!(_n<Rr))break e;for(rn=_n-280,Se(kr!=null);jt<Dt;)_n=Ke[jt++],kr.X[(506832829*_n&4294967295)>>>kr.Mb]=_n;_n=Dt,Se(!(rn>>>(fi=kr).Xa)),Ke[_n]=fi.X[rn],rn=!0}rn||Se(We.h==In(We))}if(ve.Pb&&We.h&&Dt<Cr)Se(ve.m.h),ve.a=5,ve.m=ve.wd,ve.$=ve.xd,0<ve.s.ua&&xn(ve.s.vb,ve.s.Wa);else{if(We.h)break e;De!=null&&De(ve,ae>Xr?Xr:ae),ve.a=0,ve.$=Dt-ht}return 1}return ve.a=3,0}function Bi(ve){Se(ve!=null),ve.vc=null,ve.yc=null,ve.Ya=null;var Ke=ve.Wa;Ke!=null&&(Ke.X=null),ve.vb=null,Se(ve!=null)}function ro(){var ve=new wo;return ve==null?null:(ve.a=0,ve.xb=j,ni("Predictor","VP8LPredictors"),ni("Predictor","VP8LPredictors_C"),ni("PredictorAdd","VP8LPredictorsAdd"),ni("PredictorAdd","VP8LPredictorsAdd_C"),Is=wn,Xs=mr,Wl=Ur,ol=un,So=An,io=ln,Bo=Hn,It.VP8LMapColor32b=eu,It.VP8LMapColor8b=yl,ve)}function lo(ve,Ke,ht,Vt,Cr){var Xr=1,De=[ve],ae=[Ke],be=Vt.m,We=Vt.s,ut=null,Dt=0;e:for(;;){if(ht)for(;Xr&&qn(be,1);){var jt=De,Wt=ae,Rr=Vt,Zr=1,kr=Rr.m,Or=Rr.gc[Rr.ab],Yr=qn(kr,2);if(Rr.Oc&1<<Yr)Xr=0;else{switch(Rr.Oc|=1<<Yr,Or.hc=Yr,Or.Ea=jt[0],Or.nc=Wt[0],Or.K=[null],++Rr.ab,Se(4>=Rr.ab),Yr){case 0:case 1:Or.b=qn(kr,3)+2,Zr=lo(Wi(Or.Ea,Or.b),Wi(Or.nc,Or.b),0,Rr,Or.K),Or.K=Or.K[0];break;case 3:var rn,_n=qn(kr,8)+1,fi=16<_n?0:4<_n?1:2<_n?2:3;if(jt[0]=Wi(Or.Ea,fi),Or.b=fi,rn=Zr=lo(_n,1,0,Rr,Or.K)){var vi,Qi=_n,Mi=Or,Da=1<<(8>>Mi.b),oa=ze(Da);if(oa==null)rn=0;else{var $a=Mi.K[0],ja=Mi.w;for(oa[0]=Mi.K[0][0],vi=1;vi<1*Qi;++vi)oa[vi]=qi($a[ja+vi],oa[vi-1]);for(;vi<4*Da;++vi)oa[vi]=0;Mi.K[0]=null,Mi.K[0]=oa,rn=1}}Zr=rn;break;case 2:break;default:Se(0)}Xr=Zr}}if(De=De[0],ae=ae[0],Xr&&qn(be,1)&&!(Xr=1<=(Dt=qn(be,4))&&11>=Dt)){Vt.a=3;break e}var Io;if(Io=Xr)t:{var Vo,N,U,ie=Vt,oe=De,de=ae,Be=Dt,At=ht,Kt=ie.m,rr=ie.s,pr=[null],Tn=1,zn=0,li=wu[Be];r:for(;;){if(At&&qn(Kt,1)){var di=qn(Kt,3)+2,Ki=Wi(oe,di),fa=Wi(de,di),Ta=Ki*fa;if(!lo(Ki,fa,0,ie,pr))break r;for(pr=pr[0],rr.xc=di,Vo=0;Vo<Ta;++Vo){var ba=pr[Vo]>>8&65535;pr[Vo]=ba,ba>=Tn&&(Tn=ba+1)}}if(Kt.h)break r;for(N=0;5>N;++N){var ya=Ru[N];!N&&0<Be&&(ya+=1<<Be),zn<ya&&(zn=ya)}var Ha=$e(Tn*li,Lt),Ja=Tn,Uo=$e(Ja,Xt);if(Uo==null)var Ao=null;else Se(65536>=Ja),Ao=Uo;var us=ze(zn);if(Ao==null||us==null||Ha==null){ie.a=1;break r}var Ns=Ha;for(Vo=U=0;Vo<Tn;++Vo){var rl=Ao[Vo],Hs=rl.G,Ol=rl.H,Fl=0,pl=1,Bl=0;for(N=0;5>N;++N){ya=Ru[N],Hs[N]=Ns,Ol[N]=U,!N&&0<Be&&(ya+=1<<Be);i:{var Il,Ma=ya,$s=ie,Ys=us,sl=Ns,Bu=U,ys=0,rs=$s.m,lu=qn(rs,1);if(Ye(Ys,0,0,Ma),lu){var Rl=qn(rs,1)+1,Uu=qn(rs,1),Eu=qn(rs,Uu==0?1:8);Ys[Eu]=1,Rl==2&&(Ys[Eu=qn(rs,8)]=1);var uu=1}else{var ku=ze(19),Vl=qn(rs,4)+4;if(19<Vl){$s.a=3;var Cu=0;break i}for(Il=0;Il<Vl;++Il)ku[Ql[Il]]=qn(rs,3);var Vu=void 0,Ju=void 0,vc=$s,Ac=ku,tc=Ma,yc=Ys,sc=0,ju=vc.m,hc=8,bc=$e(128,Lt);n:for(;Tt(bc,0,7,Ac,19);){if(qn(ju,1)){var Cc=2+2*qn(ju,3);if((Vu=2+qn(ju,Cc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){Jn(ju);var wc=bc[0+(127&mn(ju))];Wn(ju,ju.u+wc.g);var Mu=wc.value;if(16>Mu)yc[Ju++]=Mu,Mu!=0&&(hc=Mu);else{var Tu=Mu==16,fc=Mu-16,lc=Yl[fc],Sc=qn(ju,au[fc])+lc;if(Ju+Sc>tc)break n;for(var Tc=Tu?hc:0;0<Sc--;)yc[Ju++]=Tc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!rs.h)&&(ys=Tt(sl,Bu,8,Ys,Ma)),uu&&ys!=0?Cu=ys:($s.a=3,Cu=0)}if(Cu==0)break r;if(pl&&Nu[N]==1&&(pl=Ns[U].g==0),Fl+=Ns[U].g,U+=Cu,3>=N){var Gu,Hu=us[0];for(Gu=1;Gu<ya;++Gu)us[Gu]>Hu&&(Hu=us[Gu]);Bl+=Hu}}if(rl.nd=pl,rl.Qb=0,pl&&(rl.qb=(Hs[3][Ol[3]+0].value<<24|Hs[1][Ol[1]+0].value<<16|Hs[2][Ol[2]+0].value)>>>0,Fl==0&&256>Hs[0][Ol[0]+0].value&&(rl.Qb=1,rl.qb+=Hs[0][Ol[0]+0].value<<8)),rl.jc=!rl.Qb&&6>Bl,rl.jc){var Xu,Fu=rl;for(Xu=0;Xu<Xo;++Xu){var yu=Xu,Ku=Fu.pd[yu],uc=Fu.G[0][Fu.H[0]+yu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,yu>>=ga(uc,8,Ku),yu>>=ga(Fu.G[1][Fu.H[1]+yu],16,Ku),yu>>=ga(Fu.G[2][Fu.H[2]+yu],0,Ku),ga(Fu.G[3][Fu.H[3]+yu],24,Ku))}}}rr.vc=pr,rr.Wb=Tn,rr.Ya=Ao,rr.yc=Ha,Io=1;break t}Io=0}if(!(Xr=Io)){Vt.a=3;break e}if(0<Dt){if(We.ua=1<<Dt,!$i(We.Wa,Dt)){Vt.a=1,Xr=0;break e}}else We.ua=0;var cc=Vt,xc=De,Ec=ae,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=Wi(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,ht){Vt.xb=K;break e}if((ut=ze(De*ae))==null){Vt.a=1,Xr=0;break e}Xr=(Xr=Ya(Vt,ut,0,De,ae,ae,null))&&!be.h;break e}return Xr?(Cr!=null?Cr[0]=ut:(Se(ut==null),Se(ht)),Vt.$=0,ht||Bi(We)):Bi(We),Xr}function no(ve,Ke){var ht=ve.c*ve.i,Vt=ht+Ke+16*Ke;return Se(ve.c<=Ke),ve.V=ze(Vt),ve.V==null?(ve.Ta=null,ve.Ua=0,ve.a=1,0):(ve.Ta=ve.V,ve.Ua=ve.Ba+ht+Ke,1)}function co(ve,Ke){var ht=ve.C,Vt=Ke-ht,Cr=ve.V,Xr=ve.Ba+ve.c*ht;for(Se(Ke<=ve.l.o);0<Vt;){var De=16<Vt?16:Vt,ae=ve.l.ma,be=ve.l.width,We=be*De,ut=ae.ca,Dt=ae.tb+be*ht,jt=ve.Ta,Wt=ve.Ua;Ba(ve,De,Cr,Xr),zl(jt,Wt,ut,Dt,We),za(ae,ht,ht+De,ut,Dt,be),Vt-=De,Cr+=De*ve.c,ht+=De}Se(ht==Ke),ve.C=ve.Ma=Ke}function To(){this.ub=this.yd=this.td=this.Rb=0}function Ga(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Po(){this.Fb=this.Bb=this.Cb=0,this.Zb=ze(4),this.Lb=ze(4)}function uo(){this.Yb=function(){var ve=[];return function Ke(ht,Vt,Cr){for(var Xr=Cr[Vt],De=0;De<Xr&&(ht.push(Cr.length>Vt+1?[]:0),!(Cr.length<Vt+1));De++)Ke(ht[De],Vt+1,Cr)}(ve,0,[3,11]),ve}()}function ho(){this.jb=ze(3),this.Wc=St([4,8],uo),this.Xc=St([4,17],uo)}function zo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new ze(4),this.od=new ze(4)}function Oa(){this.ld=this.La=this.dd=this.tc=0}function mo(){this.Na=this.la=0}function Do(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qo(){this.ad=ze(384),this.Za=0,this.Ob=ze(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 Oa),this.Y=0,this.ya=Array(new Qo),this.aa=0,this.l=new qa}function Fo(){this.y=ze(16),this.f=ze(8),this.ea=ze(8)}function Ho(){this.cb=this.a=0,this.sc="",this.m=new an,this.Od=new To,this.Kc=new Ga,this.ed=new zo,this.Qa=new Po,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=$e(8,an),this.ia=0,this.pb=$e(4,Do),this.Pa=new ho,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Fo),this.Hd=0,this.rb=Array(new mo),this.sb=0,this.wa=Array(new Oa),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 Qo),this.L=this.aa=0,this.gd=St([4,2],Oa),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 go(ve,Ke){return 0>ve?0:ve>Ke?Ke:ve}function qa(){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 _a(){var ve=new Ho;return ve!=null&&(ve.a=0,ve.sc="OK",ve.cb=0,ve.Xb=0,ru||(ru=Br)),ve}function at(ve,Ke,ht){return ve.a==0&&(ve.a=Ke,ve.sc=ht,ve.cb=0),0}function dr(ve,Ke,ht){return 3<=ht&&ve[Ke+0]==157&&ve[Ke+1]==1&&ve[Ke+2]==42}function Kr(ve,Ke){if(ve==null)return 0;if(ve.a=0,ve.sc="OK",Ke==null)return at(ve,2,"null VP8Io passed to VP8GetHeaders()");var ht=Ke.data,Vt=Ke.w,Cr=Ke.ha;if(4>Cr)return at(ve,7,"Truncated header.");var Xr=ht[Vt+0]|ht[Vt+1]<<8|ht[Vt+2]<<16,De=ve.Od;if(De.Rb=!(1&Xr),De.td=Xr>>1&7,De.yd=Xr>>4&1,De.ub=Xr>>5,3<De.td)return at(ve,3,"Incorrect keyframe parameters.");if(!De.yd)return at(ve,4,"Frame not displayable.");Vt+=3,Cr-=3;var ae=ve.Kc;if(De.Rb){if(7>Cr)return at(ve,7,"cannot parse picture header");if(!dr(ht,Vt,Cr))return at(ve,3,"Bad code word");ae.c=16383&(ht[Vt+4]<<8|ht[Vt+3]),ae.Td=ht[Vt+4]>>6,ae.i=16383&(ht[Vt+6]<<8|ht[Vt+5]),ae.Ud=ht[Vt+6]>>6,Vt+=7,Cr-=7,ve.za=ae.c+15>>4,ve.Ub=ae.i+15>>4,Ke.width=ae.c,Ke.height=ae.i,Ke.Da=0,Ke.j=0,Ke.v=0,Ke.va=Ke.width,Ke.o=Ke.height,Ke.da=0,Ke.ib=Ke.width,Ke.hb=Ke.height,Ke.U=Ke.width,Ke.T=Ke.height,Ye((Xr=ve.Pa).jb,0,255,Xr.jb.length),Se((Xr=ve.Qa)!=null),Xr.Cb=0,Xr.Bb=0,Xr.Fb=1,Ye(Xr.Zb,0,0,Xr.Zb.length),Ye(Xr.Lb,0,0,Xr.Lb)}if(De.ub>Cr)return at(ve,7,"bad partition length");er(Xr=ve.m,ht,Vt,De.ub),Vt+=De.ub,Cr-=De.ub,De.Rb&&(ae.Ld=yi(Xr),ae.Kd=yi(Xr)),ae=ve.Qa;var be,We=ve.Pa;if(Se(Xr!=null),Se(ae!=null),ae.Cb=yi(Xr),ae.Cb){if(ae.Bb=yi(Xr),yi(Xr)){for(ae.Fb=yi(Xr),be=0;4>be;++be)ae.Zb[be]=yi(Xr)?br(Xr,7):0;for(be=0;4>be;++be)ae.Lb[be]=yi(Xr)?br(Xr,6):0}if(ae.Bb)for(be=0;3>be;++be)We.jb[be]=yi(Xr)?nr(Xr,8):255}else ae.Bb=0;if(Xr.Ka)return at(ve,3,"cannot parse segment header");if((ae=ve.ed).zd=yi(Xr),ae.Tb=nr(Xr,6),ae.wb=nr(Xr,3),ae.Pc=yi(Xr),ae.Pc&&yi(Xr)){for(We=0;4>We;++We)yi(Xr)&&(ae.vd[We]=br(Xr,6));for(We=0;4>We;++We)yi(Xr)&&(ae.od[We]=br(Xr,6))}if(ve.L=ae.Tb==0?0:ae.zd?1:2,Xr.Ka)return at(ve,3,"cannot parse filter header");var ut=Cr;if(Cr=be=Vt,Vt=be+ut,ae=ut,ve.Xb=(1<<nr(ve.m,2))-1,ut<3*(We=ve.Xb))ht=7;else{for(be+=3*We,ae-=3*We,ut=0;ut<We;++ut){var Dt=ht[Cr+0]|ht[Cr+1]<<8|ht[Cr+2]<<16;Dt>ae&&(Dt=ae),er(ve.Jc[+ut],ht,be,Dt),be+=Dt,ae-=Dt,Cr+=3}er(ve.Jc[+We],ht,be,ae),ht=be<Vt?0:5}if(ht!=0)return at(ve,ht,"cannot parse partitions");for(ht=nr(be=ve.m,7),Cr=yi(be)?br(be,4):0,Vt=yi(be)?br(be,4):0,ae=yi(be)?br(be,4):0,We=yi(be)?br(be,4):0,be=yi(be)?br(be,4):0,ut=ve.Qa,Dt=0;4>Dt;++Dt){if(ut.Cb){var jt=ut.Zb[Dt];ut.Fb||(jt+=ht)}else{if(0<Dt){ve.pb[Dt]=ve.pb[0];continue}jt=ht}var Wt=ve.pb[Dt];Wt.Sc[0]=Gs[go(jt+Cr,127)],Wt.Sc[1]=gl[go(jt+0,127)],Wt.Eb[0]=2*Gs[go(jt+Vt,127)],Wt.Eb[1]=101581*gl[go(jt+ae,127)]>>16,8>Wt.Eb[1]&&(Wt.Eb[1]=8),Wt.Qc[0]=Gs[go(jt+We,117)],Wt.Qc[1]=gl[go(jt+be,127)],Wt.lc=jt+be}if(!De.Rb)return at(ve,4,"Not a key frame.");for(yi(Xr),De=ve.Pa,ht=0;4>ht;++ht){for(Cr=0;8>Cr;++Cr)for(Vt=0;3>Vt;++Vt)for(ae=0;11>ae;++ae)We=mi(Xr,xu[ht][Cr][Vt][ae])?nr(Xr,8):ou[ht][Cr][Vt][ae],De.Wc[ht][Cr].Yb[Vt][ae]=We;for(Cr=0;17>Cr;++Cr)De.Xc[ht][Cr]=De.Wc[ht][Au[Cr]]}return ve.kc=yi(Xr),ve.kc&&(ve.Bd=nr(Xr,8)),ve.cb=1}function Br(ve,Ke,ht,Vt,Cr,Xr,De){var ae=Ke[Cr].Yb[ht];for(ht=0;16>Cr;++Cr){if(!mi(ve,ae[ht+0]))return Cr;for(;!mi(ve,ae[ht+1]);)if(ae=Ke[++Cr].Yb[0],ht=0,Cr==16)return 16;var be=Ke[Cr+1].Yb;if(mi(ve,ae[ht+2])){var We=ve,ut=0;if(mi(We,(jt=ae)[(Dt=ht)+3]))if(mi(We,jt[Dt+6])){for(ae=0,Dt=2*(ut=mi(We,jt[Dt+8]))+(jt=mi(We,jt[Dt+9+ut])),ut=0,jt=Du[Dt];jt[ae];++ae)ut+=ut+mi(We,jt[ae]);ut+=3+(8<<Dt)}else mi(We,jt[Dt+7])?(ut=7+2*mi(We,165),ut+=mi(We,145)):ut=5+mi(We,159);else ut=mi(We,jt[Dt+4])?3+mi(We,jt[Dt+5]):2;ae=be[2]}else ut=1,ae=be[1];be=De+Su[Cr],0>(We=ve).b&&Ei(We);var Dt,jt=We.b,Wt=(Dt=We.Ca>>1)-(We.I>>jt)>>31;--We.b,We.Ca+=Wt,We.Ca|=1,We.I-=(Dt+1&Wt)<<jt,Xr[be]=((ut^Wt)-Wt)*Vt[(0<Cr)+0]}return 16}function Pn(ve){var Ke=ve.rb[ve.sb-1];Ke.la=0,Ke.Na=0,Ye(ve.zc,0,0,ve.zc.length),ve.ja=0}function $r(ve,Ke){if(ve==null)return 0;if(Ke==null)return at(ve,2,"NULL VP8Io parameter in VP8Decode().");if(!ve.cb&&!Kr(ve,Ke))return 0;if(Se(ve.cb),Ke.ac==null||Ke.ac(Ke)){Ke.ob&&(ve.L=0);var ht=so[ve.L];if(ve.L==2?(ve.yb=0,ve.zb=0):(ve.yb=Ke.v-ht>>4,ve.zb=Ke.j-ht>>4,0>ve.yb&&(ve.yb=0),0>ve.zb&&(ve.zb=0)),ve.Va=Ke.o+15+ht>>4,ve.Hb=Ke.va+15+ht>>4,ve.Hb>ve.za&&(ve.Hb=ve.za),ve.Va>ve.Ub&&(ve.Va=ve.Ub),0<ve.L){var Vt=ve.ed;for(ht=0;4>ht;++ht){var Cr;if(ve.Qa.Cb){var Xr=ve.Qa.Lb[ht];ve.Qa.Fb||(Xr+=Vt.Tb)}else Xr=Vt.Tb;for(Cr=0;1>=Cr;++Cr){var De=ve.gd[ht][Cr],ae=Xr;if(Vt.Pc&&(ae+=Vt.vd[0],Cr&&(ae+=Vt.od[0])),0<(ae=0>ae?0:63<ae?63:ae)){var be=ae;0<Vt.wb&&(be=4<Vt.wb?be>>2:be>>1)>9-Vt.wb&&(be=9-Vt.wb),1>be&&(be=1),De.dd=be,De.tc=2*ae+be,De.ld=40<=ae?2:15<=ae?1:0}else De.tc=0;De.La=Cr}}}ht=0}else at(ve,6,"Frame setup failed"),ht=ve.a;if(ht=ht==0){if(ht){ve.$c=0,0<ve.Aa||(ve.Ic=$o);e:{ht=ve.Ic,Vt=4*(be=ve.za);var We=32*be,ut=be+1,Dt=0<ve.L?be*(0<ve.Aa?2:1):0,jt=(ve.Aa==2?2:1)*be;if((De=Vt+832+(Cr=3*(16*ht+so[ve.L])/2*We)+(Xr=ve.Fa!=null&&0<ve.Fa.length?ve.Kc.c*ve.Kc.i:0))!=De)ht=0;else{if(De>ve.Vb){if(ve.Vb=0,ve.Ec=ze(De),ve.Fc=0,ve.Ec==null){ht=at(ve,1,"no memory during frame initialization.");break e}ve.Vb=De}De=ve.Ec,ae=ve.Fc,ve.Ac=De,ve.Bc=ae,ae+=Vt,ve.Gd=$e(We,Fo),ve.Hd=0,ve.rb=$e(ut+1,mo),ve.sb=1,ve.wa=Dt?$e(Dt,Oa):null,ve.Y=0,ve.D.Nb=0,ve.D.wa=ve.wa,ve.D.Y=ve.Y,0<ve.Aa&&(ve.D.Y+=be),Se(!0),ve.oc=De,ve.pc=ae,ae+=832,ve.ya=$e(jt,Qo),ve.aa=0,ve.D.ya=ve.ya,ve.D.aa=ve.aa,ve.Aa==2&&(ve.D.aa+=be),ve.R=16*be,ve.B=8*be,be=(We=so[ve.L])*ve.R,We=We/2*ve.B,ve.sa=De,ve.ta=ae+be,ve.qa=ve.sa,ve.ra=ve.ta+16*ht*ve.R+We,ve.Ha=ve.qa,ve.Ia=ve.ra+8*ht*ve.B+We,ve.$c=0,ae+=Cr,ve.mb=Xr?De:null,ve.nb=Xr?ae:null,Se(ae+Xr<=ve.Fc+ve.Vb),Pn(ve),Ye(ve.Ac,ve.Bc,0,Vt),ht=1}}if(ht){if(Ke.ka=0,Ke.y=ve.sa,Ke.O=ve.ta,Ke.f=ve.qa,Ke.N=ve.ra,Ke.ea=ve.Ha,Ke.Vd=ve.Ia,Ke.fa=ve.R,Ke.Rc=ve.B,Ke.F=null,Ke.J=0,!hu){for(ht=-255;255>=ht;++ht)tu[255+ht]=0>ht?-ht:ht;for(ht=-1020;1020>=ht;++ht)Iu[1020+ht]=-128>ht?-128:127<ht?127:ht;for(ht=-112;112>=ht;++ht)bu[112+ht]=-16>ht?-16:15<ht?15:ht;for(ht=-255;510>=ht;++ht)du[255+ht]=0>ht?0:255<ht?255:ht;hu=1}ds=hi,gs=Zn,vs=Yn,Ps=ui,js=ai,Wo=Qn,bl=Sl,ml=Fs,Dl=_s,xl=Us,El=Ms,Pl=cs,zs=ks,Cs=ps,Vs=Mo,Ts=xs,ul=Go,Cl=ns,$[0]=Ra,$[1]=zi,$[2]=ua,$[3]=da,$[4]=Za,$[5]=oo,$[6]=Qa,$[7]=bo,$[8]=ss,$[9]=es,he[0]=wa,he[1]=na,he[2]=La,he[3]=pa,he[4]=Ca,he[5]=No,he[6]=fo,L[0]=to,L[1]=Ci,L[2]=Rs,L[3]=Ko,L[4]=Wa,L[5]=Xa,L[6]=Jo,ht=1}else ht=0}ht&&(ht=function(Wt,Rr){for(Wt.M=0;Wt.M<Wt.Va;++Wt.M){var Zr,kr=Wt.Jc[Wt.M&Wt.Xb],Or=Wt.m,Yr=Wt;for(Zr=0;Zr<Yr.za;++Zr){var rn=Or,_n=Yr,fi=_n.Ac,vi=_n.Bc+4*Zr,Qi=_n.zc,Mi=_n.ya[_n.aa+Zr];if(_n.Qa.Bb?Mi.$b=mi(rn,_n.Pa.jb[0])?2+mi(rn,_n.Pa.jb[2]):mi(rn,_n.Pa.jb[1]):Mi.$b=0,_n.kc&&(Mi.Ad=mi(rn,_n.Bd)),Mi.Za=!mi(rn,145)+0,Mi.Za){var Da=Mi.Ob,oa=0;for(_n=0;4>_n;++_n){var $a,ja=Qi[0+_n];for($a=0;4>$a;++$a){ja=su[fi[vi+$a]][ja];for(var Io=cu[mi(rn,ja[0])];0<Io;)Io=cu[2*Io+mi(rn,ja[Io])];ja=-Io,fi[vi+$a]=ja}He(Da,oa,fi,vi,4),oa+=4,Qi[0+_n]=ja}}else ja=mi(rn,156)?mi(rn,128)?1:3:mi(rn,163)?2:0,Mi.Ob[0]=ja,Ye(fi,vi,ja,4),Ye(Qi,0,ja,4);Mi.Dd=mi(rn,142)?mi(rn,114)?mi(rn,183)?1:3:2:0}if(Yr.m.Ka)return at(Wt,7,"Premature end-of-partition0 encountered.");for(;Wt.ja<Wt.za;++Wt.ja){if(Yr=kr,rn=(Or=Wt).rb[Or.sb-1],fi=Or.rb[Or.sb+Or.ja],Zr=Or.ya[Or.aa+Or.ja],vi=Or.kc?Zr.Ad:0)rn.la=fi.la=0,Zr.Za||(rn.Na=fi.Na=0),Zr.Hc=0,Zr.Gc=0,Zr.ia=0;else{var Vo,N;if(rn=fi,fi=Yr,vi=Or.Pa.Xc,Qi=Or.ya[Or.aa+Or.ja],Mi=Or.pb[Qi.$b],_n=Qi.ad,Da=0,oa=Or.rb[Or.sb-1],ja=$a=0,Ye(_n,Da,0,384),Qi.Za)var U=0,ie=vi[3];else{Io=ze(16);var oe=rn.Na+oa.Na;if(oe=ru(fi,vi[1],oe,Mi.Eb,0,Io,0),rn.Na=oa.Na=(0<oe)+0,1<oe)ds(Io,0,_n,Da);else{var de=Io[0]+3>>3;for(Io=0;256>Io;Io+=16)_n[Da+Io]=de}U=1,ie=vi[0]}var Be=15&rn.la,At=15&oa.la;for(Io=0;4>Io;++Io){var Kt=1&At;for(de=N=0;4>de;++de)Be=Be>>1|(Kt=(oe=ru(fi,ie,oe=Kt+(1&Be),Mi.Sc,U,_n,Da))>U)<<7,N=N<<2|(3<oe?3:1<oe?2:_n[Da+0]!=0),Da+=16;Be>>=4,At=At>>1|Kt<<7,$a=($a<<8|N)>>>0}for(ie=Be,U=At>>4,Vo=0;4>Vo;Vo+=2){for(N=0,Be=rn.la>>4+Vo,At=oa.la>>4+Vo,Io=0;2>Io;++Io){for(Kt=1&At,de=0;2>de;++de)oe=Kt+(1&Be),Be=Be>>1|(Kt=0<(oe=ru(fi,vi[2],oe,Mi.Qc,0,_n,Da)))<<3,N=N<<2|(3<oe?3:1<oe?2:_n[Da+0]!=0),Da+=16;Be>>=2,At=At>>1|Kt<<5}ja|=N<<4*Vo,ie|=Be<<4<<Vo,U|=(240&At)<<Vo}rn.la=ie,oa.la=U,Qi.Hc=$a,Qi.Gc=ja,Qi.ia=43690&ja?0:Mi.ia,vi=!($a|ja)}if(0<Or.L&&(Or.wa[Or.Y+Or.ja]=Or.gd[Zr.$b][Zr.Za],Or.wa[Or.Y+Or.ja].La|=!vi),Yr.Ka)return at(Wt,7,"Premature end-of-file encountered.")}if(Pn(Wt),Or=Rr,Yr=1,Zr=(kr=Wt).D,rn=0<kr.L&&kr.M>=kr.zb&&kr.M<=kr.Va,kr.Aa==0)e:{if(Zr.M=kr.M,Zr.uc=rn,ll(kr,Zr),Yr=1,Zr=(N=kr.D).Nb,rn=(ja=so[kr.L])*kr.R,fi=ja/2*kr.B,Io=16*Zr*kr.R,de=8*Zr*kr.B,vi=kr.sa,Qi=kr.ta-rn+Io,Mi=kr.qa,_n=kr.ra-fi+de,Da=kr.Ha,oa=kr.Ia-fi+de,At=(Be=N.M)==0,$a=Be>=kr.Va-1,kr.Aa==2&&ll(kr,N),N.uc)for(Kt=(oe=kr).D.M,Se(oe.D.uc),N=oe.yb;N<oe.Hb;++N){U=N,ie=Kt;var rr=(pr=(ya=oe).D).Nb;Vo=ya.R;var pr=pr.wa[pr.Y+U],Tn=ya.sa,zn=ya.ta+16*rr*Vo+16*U,li=pr.dd,di=pr.tc;if(di!=0)if(Se(3<=di),ya.L==1)0<U&&Ts(Tn,zn,Vo,di+4),pr.La&&Cl(Tn,zn,Vo,di),0<ie&&Vs(Tn,zn,Vo,di+4),pr.La&&ul(Tn,zn,Vo,di);else{var Ki=ya.B,fa=ya.qa,Ta=ya.ra+8*rr*Ki+8*U,ba=ya.Ha,ya=ya.Ia+8*rr*Ki+8*U;rr=pr.ld,0<U&&(ml(Tn,zn,Vo,di+4,li,rr),xl(fa,Ta,ba,ya,Ki,di+4,li,rr)),pr.La&&(Pl(Tn,zn,Vo,di,li,rr),Cs(fa,Ta,ba,ya,Ki,di,li,rr)),0<ie&&(bl(Tn,zn,Vo,di+4,li,rr),Dl(fa,Ta,ba,ya,Ki,di+4,li,rr)),pr.La&&(El(Tn,zn,Vo,di,li,rr),zs(fa,Ta,ba,ya,Ki,di,li,rr))}}if(kr.ia&&alert("todo:DitherRow"),Or.put!=null){if(N=16*Be,Be=16*(Be+1),At?(Or.y=kr.sa,Or.O=kr.ta+Io,Or.f=kr.qa,Or.N=kr.ra+de,Or.ea=kr.Ha,Or.W=kr.Ia+de):(N-=ja,Or.y=vi,Or.O=Qi,Or.f=Mi,Or.N=_n,Or.ea=Da,Or.W=oa),$a||(Be-=ja),Be>Or.o&&(Be=Or.o),Or.F=null,Or.J=null,kr.Fa!=null&&0<kr.Fa.length&&N<Be&&(Or.J=zt(kr,Or,N,Be-N),Or.F=kr.mb,Or.F==null&&Or.F.length==0)){Yr=at(kr,3,"Could not decode alpha data.");break e}N<Or.j&&(ja=Or.j-N,N=Or.j,Se(!(1&ja)),Or.O+=kr.R*ja,Or.N+=kr.B*(ja>>1),Or.W+=kr.B*(ja>>1),Or.F!=null&&(Or.J+=Or.width*ja)),N<Be&&(Or.O+=Or.v,Or.N+=Or.v>>1,Or.W+=Or.v>>1,Or.F!=null&&(Or.J+=Or.v),Or.ka=N-Or.j,Or.U=Or.va-Or.v,Or.T=Be-N,Yr=Or.put(Or))}Zr+1!=kr.Ic||$a||(He(kr.sa,kr.ta-rn,vi,Qi+16*kr.R,rn),He(kr.qa,kr.ra-fi,Mi,_n+8*kr.B,fi),He(kr.Ha,kr.Ia-fi,Da,oa+8*kr.B,fi))}if(!Yr)return at(Wt,6,"Output aborted.")}return 1}(ve,Ke)),Ke.bc!=null&&Ke.bc(Ke),ht&=1}return ht?(ve.cb=0,ht):0}function Mr(ve,Ke,ht,Vt,Cr){Cr=ve[Ke+ht+32*Vt]+(Cr>>3),ve[Ke+ht+32*Vt]=-256&Cr?0>Cr?0:255:Cr}function Gn(ve,Ke,ht,Vt,Cr,Xr){Mr(ve,Ke,0,ht,Vt+Cr),Mr(ve,Ke,1,ht,Vt+Xr),Mr(ve,Ke,2,ht,Vt-Xr),Mr(ve,Ke,3,ht,Vt-Cr)}function zr(ve){return(20091*ve>>16)+ve}function Nn(ve,Ke,ht,Vt){var Cr,Xr=0,De=ze(16);for(Cr=0;4>Cr;++Cr){var ae=ve[Ke+0]+ve[Ke+8],be=ve[Ke+0]-ve[Ke+8],We=(35468*ve[Ke+4]>>16)-zr(ve[Ke+12]),ut=zr(ve[Ke+4])+(35468*ve[Ke+12]>>16);De[Xr+0]=ae+ut,De[Xr+1]=be+We,De[Xr+2]=be-We,De[Xr+3]=ae-ut,Xr+=4,Ke++}for(Cr=Xr=0;4>Cr;++Cr)ae=(ve=De[Xr+0]+4)+De[Xr+8],be=ve-De[Xr+8],We=(35468*De[Xr+4]>>16)-zr(De[Xr+12]),Mr(ht,Vt,0,0,ae+(ut=zr(De[Xr+4])+(35468*De[Xr+12]>>16))),Mr(ht,Vt,1,0,be+We),Mr(ht,Vt,2,0,be-We),Mr(ht,Vt,3,0,ae-ut),Xr++,Vt+=32}function Qn(ve,Ke,ht,Vt){var Cr=ve[Ke+0]+4,Xr=35468*ve[Ke+4]>>16,De=zr(ve[Ke+4]),ae=35468*ve[Ke+1]>>16;Gn(ht,Vt,0,Cr+De,ve=zr(ve[Ke+1]),ae),Gn(ht,Vt,1,Cr+Xr,ve,ae),Gn(ht,Vt,2,Cr-Xr,ve,ae),Gn(ht,Vt,3,Cr-De,ve,ae)}function Zn(ve,Ke,ht,Vt,Cr){Nn(ve,Ke,ht,Vt),Cr&&Nn(ve,Ke+16,ht,Vt+4)}function Yn(ve,Ke,ht,Vt){gs(ve,Ke+0,ht,Vt,1),gs(ve,Ke+32,ht,Vt+128,1)}function ui(ve,Ke,ht,Vt){var Cr;for(ve=ve[Ke+0]+4,Cr=0;4>Cr;++Cr)for(Ke=0;4>Ke;++Ke)Mr(ht,Vt,Ke,Cr,ve)}function ai(ve,Ke,ht,Vt){ve[Ke+0]&&Ps(ve,Ke+0,ht,Vt),ve[Ke+16]&&Ps(ve,Ke+16,ht,Vt+4),ve[Ke+32]&&Ps(ve,Ke+32,ht,Vt+128),ve[Ke+48]&&Ps(ve,Ke+48,ht,Vt+128+4)}function hi(ve,Ke,ht,Vt){var Cr,Xr=ze(16);for(Cr=0;4>Cr;++Cr){var De=ve[Ke+0+Cr]+ve[Ke+12+Cr],ae=ve[Ke+4+Cr]+ve[Ke+8+Cr],be=ve[Ke+4+Cr]-ve[Ke+8+Cr],We=ve[Ke+0+Cr]-ve[Ke+12+Cr];Xr[0+Cr]=De+ae,Xr[8+Cr]=De-ae,Xr[4+Cr]=We+be,Xr[12+Cr]=We-be}for(Cr=0;4>Cr;++Cr)De=(ve=Xr[0+4*Cr]+3)+Xr[3+4*Cr],ae=Xr[1+4*Cr]+Xr[2+4*Cr],be=Xr[1+4*Cr]-Xr[2+4*Cr],We=ve-Xr[3+4*Cr],ht[Vt+0]=De+ae>>3,ht[Vt+16]=We+be>>3,ht[Vt+32]=De-ae>>3,ht[Vt+48]=We-be>>3,Vt+=64}function pi(ve,Ke,ht){var Vt,Cr=Ke-32,Xr=Tl,De=255-ve[Cr-1];for(Vt=0;Vt<ht;++Vt){var ae,be=Xr,We=De+ve[Ke-1];for(ae=0;ae<ht;++ae)ve[Ke+ae]=be[We+ve[Cr+ae]];Ke+=32}}function zi(ve,Ke){pi(ve,Ke,4)}function Ci(ve,Ke){pi(ve,Ke,8)}function na(ve,Ke){pi(ve,Ke,16)}function La(ve,Ke){var ht;for(ht=0;16>ht;++ht)He(ve,Ke+32*ht,ve,Ke-32,16)}function pa(ve,Ke){var ht;for(ht=16;0<ht;--ht)Ye(ve,Ke,ve[Ke-1],16),Ke+=32}function ca(ve,Ke,ht){var Vt;for(Vt=0;16>Vt;++Vt)Ye(Ke,ht+32*Vt,ve,16)}function wa(ve,Ke){var ht,Vt=16;for(ht=0;16>ht;++ht)Vt+=ve[Ke-1+32*ht]+ve[Ke+ht-32];ca(Vt>>5,ve,Ke)}function Ca(ve,Ke){var ht,Vt=8;for(ht=0;16>ht;++ht)Vt+=ve[Ke-1+32*ht];ca(Vt>>4,ve,Ke)}function No(ve,Ke){var ht,Vt=8;for(ht=0;16>ht;++ht)Vt+=ve[Ke+ht-32];ca(Vt>>4,ve,Ke)}function fo(ve,Ke){ca(128,ve,Ke)}function ea(ve,Ke,ht){return ve+2*Ke+ht+2>>2}function ua(ve,Ke){var ht,Vt=Ke-32;for(Vt=new Uint8Array([ea(ve[Vt-1],ve[Vt+0],ve[Vt+1]),ea(ve[Vt+0],ve[Vt+1],ve[Vt+2]),ea(ve[Vt+1],ve[Vt+2],ve[Vt+3]),ea(ve[Vt+2],ve[Vt+3],ve[Vt+4])]),ht=0;4>ht;++ht)He(ve,Ke+32*ht,Vt,0,Vt.length)}function da(ve,Ke){var ht=ve[Ke-1],Vt=ve[Ke-1+32],Cr=ve[Ke-1+64],Xr=ve[Ke-1+96];Vi(ve,Ke+0,16843009*ea(ve[Ke-1-32],ht,Vt)),Vi(ve,Ke+32,16843009*ea(ht,Vt,Cr)),Vi(ve,Ke+64,16843009*ea(Vt,Cr,Xr)),Vi(ve,Ke+96,16843009*ea(Cr,Xr,Xr))}function Ra(ve,Ke){var ht,Vt=4;for(ht=0;4>ht;++ht)Vt+=ve[Ke+ht-32]+ve[Ke-1+32*ht];for(Vt>>=3,ht=0;4>ht;++ht)Ye(ve,Ke+32*ht,Vt,4)}function Za(ve,Ke){var ht=ve[Ke-1+0],Vt=ve[Ke-1+32],Cr=ve[Ke-1+64],Xr=ve[Ke-1-32],De=ve[Ke+0-32],ae=ve[Ke+1-32],be=ve[Ke+2-32],We=ve[Ke+3-32];ve[Ke+0+96]=ea(Vt,Cr,ve[Ke-1+96]),ve[Ke+1+96]=ve[Ke+0+64]=ea(ht,Vt,Cr),ve[Ke+2+96]=ve[Ke+1+64]=ve[Ke+0+32]=ea(Xr,ht,Vt),ve[Ke+3+96]=ve[Ke+2+64]=ve[Ke+1+32]=ve[Ke+0+0]=ea(De,Xr,ht),ve[Ke+3+64]=ve[Ke+2+32]=ve[Ke+1+0]=ea(ae,De,Xr),ve[Ke+3+32]=ve[Ke+2+0]=ea(be,ae,De),ve[Ke+3+0]=ea(We,be,ae)}function Qa(ve,Ke){var ht=ve[Ke+1-32],Vt=ve[Ke+2-32],Cr=ve[Ke+3-32],Xr=ve[Ke+4-32],De=ve[Ke+5-32],ae=ve[Ke+6-32],be=ve[Ke+7-32];ve[Ke+0+0]=ea(ve[Ke+0-32],ht,Vt),ve[Ke+1+0]=ve[Ke+0+32]=ea(ht,Vt,Cr),ve[Ke+2+0]=ve[Ke+1+32]=ve[Ke+0+64]=ea(Vt,Cr,Xr),ve[Ke+3+0]=ve[Ke+2+32]=ve[Ke+1+64]=ve[Ke+0+96]=ea(Cr,Xr,De),ve[Ke+3+32]=ve[Ke+2+64]=ve[Ke+1+96]=ea(Xr,De,ae),ve[Ke+3+64]=ve[Ke+2+96]=ea(De,ae,be),ve[Ke+3+96]=ea(ae,be,be)}function oo(ve,Ke){var ht=ve[Ke-1+0],Vt=ve[Ke-1+32],Cr=ve[Ke-1+64],Xr=ve[Ke-1-32],De=ve[Ke+0-32],ae=ve[Ke+1-32],be=ve[Ke+2-32],We=ve[Ke+3-32];ve[Ke+0+0]=ve[Ke+1+64]=Xr+De+1>>1,ve[Ke+1+0]=ve[Ke+2+64]=De+ae+1>>1,ve[Ke+2+0]=ve[Ke+3+64]=ae+be+1>>1,ve[Ke+3+0]=be+We+1>>1,ve[Ke+0+96]=ea(Cr,Vt,ht),ve[Ke+0+64]=ea(Vt,ht,Xr),ve[Ke+0+32]=ve[Ke+1+96]=ea(ht,Xr,De),ve[Ke+1+32]=ve[Ke+2+96]=ea(Xr,De,ae),ve[Ke+2+32]=ve[Ke+3+96]=ea(De,ae,be),ve[Ke+3+32]=ea(ae,be,We)}function bo(ve,Ke){var ht=ve[Ke+0-32],Vt=ve[Ke+1-32],Cr=ve[Ke+2-32],Xr=ve[Ke+3-32],De=ve[Ke+4-32],ae=ve[Ke+5-32],be=ve[Ke+6-32],We=ve[Ke+7-32];ve[Ke+0+0]=ht+Vt+1>>1,ve[Ke+1+0]=ve[Ke+0+64]=Vt+Cr+1>>1,ve[Ke+2+0]=ve[Ke+1+64]=Cr+Xr+1>>1,ve[Ke+3+0]=ve[Ke+2+64]=Xr+De+1>>1,ve[Ke+0+32]=ea(ht,Vt,Cr),ve[Ke+1+32]=ve[Ke+0+96]=ea(Vt,Cr,Xr),ve[Ke+2+32]=ve[Ke+1+96]=ea(Cr,Xr,De),ve[Ke+3+32]=ve[Ke+2+96]=ea(Xr,De,ae),ve[Ke+3+64]=ea(De,ae,be),ve[Ke+3+96]=ea(ae,be,We)}function es(ve,Ke){var ht=ve[Ke-1+0],Vt=ve[Ke-1+32],Cr=ve[Ke-1+64],Xr=ve[Ke-1+96];ve[Ke+0+0]=ht+Vt+1>>1,ve[Ke+2+0]=ve[Ke+0+32]=Vt+Cr+1>>1,ve[Ke+2+32]=ve[Ke+0+64]=Cr+Xr+1>>1,ve[Ke+1+0]=ea(ht,Vt,Cr),ve[Ke+3+0]=ve[Ke+1+32]=ea(Vt,Cr,Xr),ve[Ke+3+32]=ve[Ke+1+64]=ea(Cr,Xr,Xr),ve[Ke+3+64]=ve[Ke+2+64]=ve[Ke+0+96]=ve[Ke+1+96]=ve[Ke+2+96]=ve[Ke+3+96]=Xr}function ss(ve,Ke){var ht=ve[Ke-1+0],Vt=ve[Ke-1+32],Cr=ve[Ke-1+64],Xr=ve[Ke-1+96],De=ve[Ke-1-32],ae=ve[Ke+0-32],be=ve[Ke+1-32],We=ve[Ke+2-32];ve[Ke+0+0]=ve[Ke+2+32]=ht+De+1>>1,ve[Ke+0+32]=ve[Ke+2+64]=Vt+ht+1>>1,ve[Ke+0+64]=ve[Ke+2+96]=Cr+Vt+1>>1,ve[Ke+0+96]=Xr+Cr+1>>1,ve[Ke+3+0]=ea(ae,be,We),ve[Ke+2+0]=ea(De,ae,be),ve[Ke+1+0]=ve[Ke+3+32]=ea(ht,De,ae),ve[Ke+1+32]=ve[Ke+3+64]=ea(Vt,ht,De),ve[Ke+1+64]=ve[Ke+3+96]=ea(Cr,Vt,ht),ve[Ke+1+96]=ea(Xr,Cr,Vt)}function Rs(ve,Ke){var ht;for(ht=0;8>ht;++ht)He(ve,Ke+32*ht,ve,Ke-32,8)}function Ko(ve,Ke){var ht;for(ht=0;8>ht;++ht)Ye(ve,Ke,ve[Ke-1],8),Ke+=32}function qo(ve,Ke,ht){var Vt;for(Vt=0;8>Vt;++Vt)Ye(Ke,ht+32*Vt,ve,8)}function to(ve,Ke){var ht,Vt=8;for(ht=0;8>ht;++ht)Vt+=ve[Ke+ht-32]+ve[Ke-1+32*ht];qo(Vt>>4,ve,Ke)}function Xa(ve,Ke){var ht,Vt=4;for(ht=0;8>ht;++ht)Vt+=ve[Ke+ht-32];qo(Vt>>3,ve,Ke)}function Wa(ve,Ke){var ht,Vt=4;for(ht=0;8>ht;++ht)Vt+=ve[Ke-1+32*ht];qo(Vt>>3,ve,Ke)}function Jo(ve,Ke){qo(128,ve,Ke)}function hs(ve,Ke,ht){var Vt=ve[Ke-ht],Cr=ve[Ke+0],Xr=3*(Cr-Vt)+nu[1020+ve[Ke-2*ht]-ve[Ke+ht]],De=dl[112+(Xr+4>>3)];ve[Ke-ht]=Tl[255+Vt+dl[112+(Xr+3>>3)]],ve[Ke+0]=Tl[255+Cr-De]}function Eo(ve,Ke,ht,Vt){var Cr=ve[Ke+0],Xr=ve[Ke+ht];return wl[255+ve[Ke-2*ht]-ve[Ke-ht]]>Vt||wl[255+Xr-Cr]>Vt}function Ws(ve,Ke,ht,Vt){return 4*wl[255+ve[Ke-ht]-ve[Ke+0]]+wl[255+ve[Ke-2*ht]-ve[Ke+ht]]<=Vt}function _o(ve,Ke,ht,Vt,Cr){var Xr=ve[Ke-3*ht],De=ve[Ke-2*ht],ae=ve[Ke-ht],be=ve[Ke+0],We=ve[Ke+ht],ut=ve[Ke+2*ht],Dt=ve[Ke+3*ht];return 4*wl[255+ae-be]+wl[255+De-We]>Vt?0:wl[255+ve[Ke-4*ht]-Xr]<=Cr&&wl[255+Xr-De]<=Cr&&wl[255+De-ae]<=Cr&&wl[255+Dt-ut]<=Cr&&wl[255+ut-We]<=Cr&&wl[255+We-be]<=Cr}function Mo(ve,Ke,ht,Vt){var Cr=2*Vt+1;for(Vt=0;16>Vt;++Vt)Ws(ve,Ke+Vt,ht,Cr)&&hs(ve,Ke+Vt,ht)}function xs(ve,Ke,ht,Vt){var Cr=2*Vt+1;for(Vt=0;16>Vt;++Vt)Ws(ve,Ke+Vt*ht,1,Cr)&&hs(ve,Ke+Vt*ht,1)}function Go(ve,Ke,ht,Vt){var Cr;for(Cr=3;0<Cr;--Cr)Mo(ve,Ke+=4*ht,ht,Vt)}function ns(ve,Ke,ht,Vt){var Cr;for(Cr=3;0<Cr;--Cr)xs(ve,Ke+=4,ht,Vt)}function is(ve,Ke,ht,Vt,Cr,Xr,De,ae){for(Xr=2*Xr+1;0<Cr--;){if(_o(ve,Ke,ht,Xr,De))if(Eo(ve,Ke,ht,ae))hs(ve,Ke,ht);else{var be=ve,We=Ke,ut=ht,Dt=be[We-2*ut],jt=be[We-ut],Wt=be[We+0],Rr=be[We+ut],Zr=be[We+2*ut],kr=27*(Yr=nu[1020+3*(Wt-jt)+nu[1020+Dt-Rr]])+63>>7,Or=18*Yr+63>>7,Yr=9*Yr+63>>7;be[We-3*ut]=Tl[255+be[We-3*ut]+Yr],be[We-2*ut]=Tl[255+Dt+Or],be[We-ut]=Tl[255+jt+kr],be[We+0]=Tl[255+Wt-kr],be[We+ut]=Tl[255+Rr-Or],be[We+2*ut]=Tl[255+Zr-Yr]}Ke+=Vt}}function bs(ve,Ke,ht,Vt,Cr,Xr,De,ae){for(Xr=2*Xr+1;0<Cr--;){if(_o(ve,Ke,ht,Xr,De))if(Eo(ve,Ke,ht,ae))hs(ve,Ke,ht);else{var be=ve,We=Ke,ut=ht,Dt=be[We-ut],jt=be[We+0],Wt=be[We+ut],Rr=dl[112+((Zr=3*(jt-Dt))+4>>3)],Zr=dl[112+(Zr+3>>3)],kr=Rr+1>>1;be[We-2*ut]=Tl[255+be[We-2*ut]+kr],be[We-ut]=Tl[255+Dt+Zr],be[We+0]=Tl[255+jt-Rr],be[We+ut]=Tl[255+Wt-kr]}Ke+=Vt}}function Sl(ve,Ke,ht,Vt,Cr,Xr){is(ve,Ke,ht,1,16,Vt,Cr,Xr)}function Fs(ve,Ke,ht,Vt,Cr,Xr){is(ve,Ke,1,ht,16,Vt,Cr,Xr)}function Ms(ve,Ke,ht,Vt,Cr,Xr){var De;for(De=3;0<De;--De)bs(ve,Ke+=4*ht,ht,1,16,Vt,Cr,Xr)}function cs(ve,Ke,ht,Vt,Cr,Xr){var De;for(De=3;0<De;--De)bs(ve,Ke+=4,1,ht,16,Vt,Cr,Xr)}function _s(ve,Ke,ht,Vt,Cr,Xr,De,ae){is(ve,Ke,Cr,1,8,Xr,De,ae),is(ht,Vt,Cr,1,8,Xr,De,ae)}function Us(ve,Ke,ht,Vt,Cr,Xr,De,ae){is(ve,Ke,1,Cr,8,Xr,De,ae),is(ht,Vt,1,Cr,8,Xr,De,ae)}function ks(ve,Ke,ht,Vt,Cr,Xr,De,ae){bs(ve,Ke+4*Cr,Cr,1,8,Xr,De,ae),bs(ht,Vt+4*Cr,Cr,1,8,Xr,De,ae)}function ps(ve,Ke,ht,Vt,Cr,Xr,De,ae){bs(ve,Ke+4,1,Cr,8,Xr,De,ae),bs(ht,Vt+4,1,Cr,8,Xr,De,ae)}function Es(){this.ba=new Ri,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new wi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function tl(){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 Os(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ro(){this.ua=0,this.Wa=new Ti,this.vb=new Ti,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Xt,this.yc=new Lt}function wo(){this.xb=this.a=0,this.l=new qa,this.ca=new Ri,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _r,this.Pb=0,this.wd=new _r,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ro,this.ab=0,this.gc=$e(4,Os),this.Oc=0}function ms(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new qa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function As(ve,Ke,ht,Vt,Cr,Xr,De){for(ve=ve==null?0:ve[Ke+0],Ke=0;Ke<De;++Ke)Cr[Xr+Ke]=ve+ht[Vt+Ke]&255,ve=Cr[Xr+Ke]}function ao(ve,Ke,ht,Vt,Cr,Xr,De){var ae;if(ve==null)As(null,null,ht,Vt,Cr,Xr,De);else for(ae=0;ae<De;++ae)Cr[Xr+ae]=ve[Ke+ae]+ht[Vt+ae]&255}function Ct(ve,Ke,ht,Vt,Cr,Xr,De){if(ve==null)As(null,null,ht,Vt,Cr,Xr,De);else{var ae,be=ve[Ke+0],We=be,ut=be;for(ae=0;ae<De;++ae)We=ut+(be=ve[Ke+ae])-We,ut=ht[Vt+ae]+(-256&We?0>We?0:255:We)&255,We=be,Cr[Xr+ae]=ut}}function zt(ve,Ke,ht,Vt){var Cr=Ke.width,Xr=Ke.o;if(Se(ve!=null&&Ke!=null),0>ht||0>=Vt||ht+Vt>Xr)return null;if(!ve.Cc){if(ve.ga==null){var De;if(ve.ga=new ms,(De=ve.ga==null)||(De=Ke.width*Ke.o,Se(ve.Gb.length==0),ve.Gb=ze(De),ve.Uc=0,ve.Gb==null?De=0:(ve.mb=ve.Gb,ve.nb=ve.Uc,ve.rc=null,De=1),De=!De),!De){De=ve.ga;var ae=ve.Fa,be=ve.P,We=ve.qc,ut=ve.mb,Dt=ve.nb,jt=be+1,Wt=We-1,Rr=De.l;if(Se(ae!=null&&ut!=null&&Ke!=null),J[0]=null,J[1]=As,J[2]=ao,J[3]=Ct,De.ca=ut,De.tb=Dt,De.c=Ke.width,De.i=Ke.height,Se(0<De.c&&0<De.i),1>=We)Ke=0;else if(De.$a=ae[be+0]>>0&3,De.Z=ae[be+0]>>2&3,De.Lc=ae[be+0]>>4&3,be=ae[be+0]>>6&3,0>De.$a||1<De.$a||4<=De.Z||1<De.Lc||be)Ke=0;else if(Rr.put=ma,Rr.ac=Zi,Rr.bc=Hi,Rr.ma=De,Rr.width=Ke.width,Rr.height=Ke.height,Rr.Da=Ke.Da,Rr.v=Ke.v,Rr.va=Ke.va,Rr.j=Ke.j,Rr.o=Ke.o,De.$a)e:{Se(De.$a==1),Ke=ro();t:for(;;){if(Ke==null){Ke=0;break e}if(Se(De!=null),De.mc=Ke,Ke.c=De.c,Ke.i=De.i,Ke.l=De.l,Ke.l.ma=De,Ke.l.width=De.c,Ke.l.height=De.i,Ke.a=0,On(Ke.m,ae,jt,Wt),!lo(De.c,De.i,1,Ke,null))break t;if(Ke.ab==1&&Ke.gc[0].hc==3&&Ia(Ke.s)?(De.ic=1,ae=Ke.c*Ke.i,Ke.Ta=null,Ke.Ua=0,Ke.V=ze(ae),Ke.Ba=0,Ke.V==null?(Ke.a=1,Ke=0):Ke=1):(De.ic=0,Ke=no(Ke,De.c)),!Ke)break t;Ke=1;break e}De.mc=null,Ke=0}else Ke=Wt>=De.c*De.i;De=!Ke}if(De)return null;ve.ga.Lc!=1?ve.Ga=0:Vt=Xr-ht}Se(ve.ga!=null),Se(ht+Vt<=Xr);e:{if(Ke=(ae=ve.ga).c,Xr=ae.l.o,ae.$a==0){if(jt=ve.rc,Wt=ve.Vc,Rr=ve.Fa,be=ve.P+1+ht*Ke,We=ve.mb,ut=ve.nb+ht*Ke,Se(be<=ve.P+ve.qc),ae.Z!=0)for(Se(J[ae.Z]!=null),De=0;De<Vt;++De)J[ae.Z](jt,Wt,Rr,be,We,ut,Ke),jt=We,Wt=ut,ut+=Ke,be+=Ke;else for(De=0;De<Vt;++De)He(We,ut,Rr,be,Ke),jt=We,Wt=ut,ut+=Ke,be+=Ke;ve.rc=jt,ve.Vc=Wt}else{if(Se(ae.mc!=null),Ke=ht+Vt,Se((De=ae.mc)!=null),Se(Ke<=De.i),De.C>=Ke)Ke=1;else if(ae.ic||Yi(),ae.ic){ae=De.V,jt=De.Ba,Wt=De.c;var Zr=De.i,kr=(Rr=1,be=De.$/Wt,We=De.$%Wt,ut=De.m,Dt=De.s,De.$),Or=Wt*Zr,Yr=Wt*Ke,rn=Dt.wc,_n=kr<Yr?sa(Dt,We,be):null;Se(kr<=Or),Se(Ke<=Zr),Se(Ia(Dt));t:for(;;){for(;!ut.h&&kr<Yr;){if(We&rn||(_n=sa(Dt,We,be)),Se(_n!=null),Jn(ut),256>(Zr=ra(_n.G[0],_n.H[0],ut)))ae[jt+kr]=Zr,++kr,++We>=Wt&&(We=0,++be<=Ke&&!(be%16)&&Va(De,be));else{if(!(280>Zr)){Rr=0;break t}Zr=Ea(Zr-256,ut);var fi,vi=ra(_n.G[4],_n.H[4],ut);if(Jn(ut),!(kr>=(vi=ta(Wt,vi=Ea(vi,ut)))&&Or-kr>=Zr)){Rr=0;break t}for(fi=0;fi<Zr;++fi)ae[jt+kr+fi]=ae[jt+kr+fi-vi];for(kr+=Zr,We+=Zr;We>=Wt;)We-=Wt,++be<=Ke&&!(be%16)&&Va(De,be);kr<Yr&&We&rn&&(_n=sa(Dt,We,be))}Se(ut.h==In(ut))}Va(De,be>Ke?Ke:be);break t}!Rr||ut.h&&kr<Or?(Rr=0,De.a=ut.h?5:3):De.$=kr,Ke=Rr}else Ke=Ya(De,De.V,De.Ba,De.c,De.i,Ke,co);if(!Ke){Vt=0;break e}}ht+Vt>=Xr&&(ve.Cc=1),Vt=1}if(!Vt)return null;if(ve.Cc&&((Vt=ve.ga)!=null&&(Vt.mc=null),ve.ga=null,0<ve.Ga))return alert("todo:WebPDequantizeLevels"),null}return ve.nb+ht*Cr}function gn(ve,Ke,ht,Vt,Cr,Xr){for(;0<Cr--;){var De,ae=ve,be=Ke+(ht?1:0),We=ve,ut=Ke+(ht?0:3);for(De=0;De<Vt;++De){var Dt=We[ut+4*De];Dt!=255&&(Dt*=32897,ae[be+4*De+0]=ae[be+4*De+0]*Dt>>23,ae[be+4*De+1]=ae[be+4*De+1]*Dt>>23,ae[be+4*De+2]=ae[be+4*De+2]*Dt>>23)}Ke+=Xr}}function $n(ve,Ke,ht,Vt,Cr){for(;0<Vt--;){var Xr;for(Xr=0;Xr<ht;++Xr){var De=ve[Ke+2*Xr+0],ae=15&(We=ve[Ke+2*Xr+1]),be=4369*ae,We=(240&We|We>>4)*be>>16;ve[Ke+2*Xr+0]=(240&De|De>>4)*be>>16&240|(15&De|De<<4)*be>>16>>4&15,ve[Ke+2*Xr+1]=240&We|ae}Ke+=Cr}}function bi(ve,Ke,ht,Vt,Cr,Xr,De,ae){var be,We,ut=255;for(We=0;We<Cr;++We){for(be=0;be<Vt;++be){var Dt=ve[Ke+be];Xr[De+4*be]=Dt,ut&=Dt}Ke+=ht,De+=ae}return ut!=255}function oi(ve,Ke,ht,Vt,Cr){var Xr;for(Xr=0;Xr<Cr;++Xr)ht[Vt+Xr]=ve[Ke+Xr]>>8}function Yi(){Xl=gn,Jl=$n,cl=bi,zl=oi}function ha(ve,Ke,ht){It[ve]=function(Vt,Cr,Xr,De,ae,be,We,ut,Dt,jt,Wt,Rr,Zr,kr,Or,Yr,rn){var _n,fi=rn-1>>1,vi=ae[be+0]|We[ut+0]<<16,Qi=Dt[jt+0]|Wt[Rr+0]<<16;Se(Vt!=null);var Mi=3*vi+Qi+131074>>2;for(Ke(Vt[Cr+0],255&Mi,Mi>>16,Zr,kr),Xr!=null&&(Mi=3*Qi+vi+131074>>2,Ke(Xr[De+0],255&Mi,Mi>>16,Or,Yr)),_n=1;_n<=fi;++_n){var Da=ae[be+_n]|We[ut+_n]<<16,oa=Dt[jt+_n]|Wt[Rr+_n]<<16,$a=vi+Da+Qi+oa+524296,ja=$a+2*(Da+Qi)>>3;Mi=ja+vi>>1,vi=($a=$a+2*(vi+oa)>>3)+Da>>1,Ke(Vt[Cr+2*_n-1],255&Mi,Mi>>16,Zr,kr+(2*_n-1)*ht),Ke(Vt[Cr+2*_n-0],255&vi,vi>>16,Zr,kr+(2*_n-0)*ht),Xr!=null&&(Mi=$a+Qi>>1,vi=ja+oa>>1,Ke(Xr[De+2*_n-1],255&Mi,Mi>>16,Or,Yr+(2*_n-1)*ht),Ke(Xr[De+2*_n+0],255&vi,vi>>16,Or,Yr+(2*_n+0)*ht)),vi=Da,Qi=oa}1&rn||(Mi=3*vi+Qi+131074>>2,Ke(Vt[Cr+rn-1],255&Mi,Mi>>16,Zr,kr+(rn-1)*ht),Xr!=null&&(Mi=3*Qi+vi+131074>>2,Ke(Xr[De+rn-1],255&Mi,Mi>>16,Or,Yr+(rn-1)*ht)))}}function Pa(){te[Zl]=me,te[_l]=je,te[fu]=we,te[hl]=qe,te[fl]=it,te[pu]=Rt,te[mu]=hr,te[Lu]=je,te[Ml]=qe,te[$l]=it,te[iu]=Rt}function Co(ve){return ve&~Mn?0>ve?0:255:ve>>yn}function vo(ve,Ke){return Co((19077*ve>>8)+(26149*Ke>>8)-14234)}function ko(ve,Ke,ht){return Co((19077*ve>>8)-(6419*Ke>>8)-(13320*ht>>8)+8708)}function ls(ve,Ke){return Co((19077*ve>>8)+(33050*Ke>>8)-17685)}function jo(ve,Ke,ht,Vt,Cr){Vt[Cr+0]=vo(ve,ht),Vt[Cr+1]=ko(ve,Ke,ht),Vt[Cr+2]=ls(ve,Ke)}function Zo(ve,Ke,ht,Vt,Cr){Vt[Cr+0]=ls(ve,Ke),Vt[Cr+1]=ko(ve,Ke,ht),Vt[Cr+2]=vo(ve,ht)}function ts(ve,Ke,ht,Vt,Cr){var Xr=ko(ve,Ke,ht);Ke=Xr<<3&224|ls(ve,Ke)>>3,Vt[Cr+0]=248&vo(ve,ht)|Xr>>5,Vt[Cr+1]=Ke}function Ua(ve,Ke,ht,Vt,Cr){var Xr=240&ls(ve,Ke)|15;Vt[Cr+0]=240&vo(ve,ht)|ko(ve,Ke,ht)>>4,Vt[Cr+1]=Xr}function Oo(ve,Ke,ht,Vt,Cr){Vt[Cr+0]=255,jo(ve,Ke,ht,Vt,Cr+1)}function as(ve,Ke,ht,Vt,Cr){Zo(ve,Ke,ht,Vt,Cr),Vt[Cr+3]=255}function Ul(ve,Ke,ht,Vt,Cr){jo(ve,Ke,ht,Vt,Cr),Vt[Cr+3]=255}function go(ve,Ke){return 0>ve?0:ve>Ke?Ke:ve}function vl(ve,Ke,ht){It[ve]=function(Vt,Cr,Xr,De,ae,be,We,ut,Dt){for(var jt=ut+(-2&Dt)*ht;ut!=jt;)Ke(Vt[Cr+0],Xr[De+0],ae[be+0],We,ut),Ke(Vt[Cr+1],Xr[De+0],ae[be+0],We,ut+ht),Cr+=2,++De,++be,ut+=2*ht;1&Dt&&Ke(Vt[Cr+0],Xr[De+0],ae[be+0],We,ut)}}function Qs(ve,Ke,ht){return ht==0?ve==0?Ke==0?6:5:Ke==0?4:0:ht}function il(ve,Ke,ht,Vt,Cr){switch(ve>>>30){case 3:gs(Ke,ht,Vt,Cr,0);break;case 2:Wo(Ke,ht,Vt,Cr);break;case 1:Ps(Ke,ht,Vt,Cr)}}function ll(ve,Ke){var ht,Vt,Cr=Ke.M,Xr=Ke.Nb,De=ve.oc,ae=ve.pc+40,be=ve.oc,We=ve.pc+584,ut=ve.oc,Dt=ve.pc+600;for(ht=0;16>ht;++ht)De[ae+32*ht-1]=129;for(ht=0;8>ht;++ht)be[We+32*ht-1]=129,ut[Dt+32*ht-1]=129;for(0<Cr?De[ae-1-32]=be[We-1-32]=ut[Dt-1-32]=129:(Ye(De,ae-32-1,127,21),Ye(be,We-32-1,127,9),Ye(ut,Dt-32-1,127,9)),Vt=0;Vt<ve.za;++Vt){var jt=Ke.ya[Ke.aa+Vt];if(0<Vt){for(ht=-1;16>ht;++ht)He(De,ae+32*ht-4,De,ae+32*ht+12,4);for(ht=-1;8>ht;++ht)He(be,We+32*ht-4,be,We+32*ht+4,4),He(ut,Dt+32*ht-4,ut,Dt+32*ht+4,4)}var Wt=ve.Gd,Rr=ve.Hd+Vt,Zr=jt.ad,kr=jt.Hc;if(0<Cr&&(He(De,ae-32,Wt[Rr].y,0,16),He(be,We-32,Wt[Rr].f,0,8),He(ut,Dt-32,Wt[Rr].ea,0,8)),jt.Za){var Or=De,Yr=ae-32+16;for(0<Cr&&(Vt>=ve.za-1?Ye(Or,Yr,Wt[Rr].y[15],4):He(Or,Yr,Wt[Rr+1].y,0,4)),ht=0;4>ht;ht++)Or[Yr+128+ht]=Or[Yr+256+ht]=Or[Yr+384+ht]=Or[Yr+0+ht];for(ht=0;16>ht;++ht,kr<<=2)Or=De,Yr=ae+aa[ht],$[jt.Ob[ht]](Or,Yr),il(kr,Zr,16*+ht,Or,Yr)}else if(Or=Qs(Vt,Cr,jt.Ob[0]),he[Or](De,ae),kr!=0)for(ht=0;16>ht;++ht,kr<<=2)il(kr,Zr,16*+ht,De,ae+aa[ht]);for(ht=jt.Gc,Or=Qs(Vt,Cr,jt.Dd),L[Or](be,We),L[Or](ut,Dt),kr=Zr,Or=be,Yr=We,255&(jt=ht>>0)&&(170&jt?vs(kr,256,Or,Yr):js(kr,256,Or,Yr)),jt=ut,kr=Dt,255&(ht>>=8)&&(170&ht?vs(Zr,320,jt,kr):js(Zr,320,jt,kr)),Cr<ve.Ub-1&&(He(Wt[Rr].y,0,De,ae+480,16),He(Wt[Rr].f,0,be,We+224,8),He(Wt[Rr].ea,0,ut,Dt+224,8)),ht=8*Xr*ve.B,Wt=ve.sa,Rr=ve.ta+16*Vt+16*Xr*ve.R,Zr=ve.qa,jt=ve.ra+8*Vt+ht,kr=ve.Ha,Or=ve.Ia+8*Vt+ht,ht=0;16>ht;++ht)He(Wt,Rr+ht*ve.R,De,ae+32*ht,16);for(ht=0;8>ht;++ht)He(Zr,jt+ht*ve.B,be,We+32*ht,8),He(kr,Or+ht*ve.B,ut,Dt+32*ht,8)}}function jl(ve,Ke,ht,Vt,Cr,Xr,De,ae,be){var We=[0],ut=[0],Dt=0,jt=be!=null?be.kd:0,Wt=be!=null?be:new tl;if(ve==null||12>ht)return 7;Wt.data=ve,Wt.w=Ke,Wt.ha=ht,Ke=[Ke],ht=[ht],Wt.gb=[Wt.gb];e:{var Rr=Ke,Zr=ht,kr=Wt.gb;if(Se(ve!=null),Se(Zr!=null),Se(kr!=null),kr[0]=0,12<=Zr[0]&&!Pe(ve,Rr[0],"RIFF")){if(Pe(ve,Rr[0]+8,"WEBP")){kr=3;break e}var Or=ia(ve,Rr[0]+4);if(12>Or||4294967286<Or){kr=3;break e}if(jt&&Or>Zr[0]-8){kr=7;break e}kr[0]=Or,Rr[0]+=12,Zr[0]-=12}kr=0}if(kr!=0)return kr;for(Or=0<Wt.gb[0],ht=ht[0];;){e:{var Yr=ve;Zr=Ke,kr=ht;var rn=We,_n=ut,fi=Rr=[0];if((Mi=Dt=[Dt])[0]=0,8>kr[0])kr=7;else{if(!Pe(Yr,Zr[0],"VP8X")){if(ia(Yr,Zr[0]+4)!=10){kr=3;break e}if(18>kr[0]){kr=7;break e}var vi=ia(Yr,Zr[0]+8),Qi=1+Gi(Yr,Zr[0]+12);if(2147483648<=Qi*(Yr=1+Gi(Yr,Zr[0]+15))){kr=3;break e}fi!=null&&(fi[0]=vi),rn!=null&&(rn[0]=Qi),_n!=null&&(_n[0]=Yr),Zr[0]+=18,kr[0]-=18,Mi[0]=1}kr=0}}if(Dt=Dt[0],Rr=Rr[0],kr!=0)return kr;if(Zr=!!(2&Rr),!Or&&Dt)return 3;if(Xr!=null&&(Xr[0]=!!(16&Rr)),De!=null&&(De[0]=Zr),ae!=null&&(ae[0]=0),De=We[0],Rr=ut[0],Dt&&Zr&&be==null){kr=0;break}if(4>ht){kr=7;break}if(Or&&Dt||!Or&&!Dt&&!Pe(ve,Ke[0],"ALPH")){ht=[ht],Wt.na=[Wt.na],Wt.P=[Wt.P],Wt.Sa=[Wt.Sa];e:{vi=ve,kr=Ke,Or=ht;var Mi=Wt.gb;rn=Wt.na,_n=Wt.P,fi=Wt.Sa,Qi=22,Se(vi!=null),Se(Or!=null),Yr=kr[0];var Da=Or[0];for(Se(rn!=null),Se(fi!=null),rn[0]=null,_n[0]=null,fi[0]=0;;){if(kr[0]=Yr,Or[0]=Da,8>Da){kr=7;break e}var oa=ia(vi,Yr+4);if(4294967286<oa){kr=3;break e}var $a=8+oa+1&-2;if(Qi+=$a,0<Mi&&Qi>Mi){kr=3;break e}if(!Pe(vi,Yr,"VP8 ")||!Pe(vi,Yr,"VP8L")){kr=0;break e}if(Da[0]<$a){kr=7;break e}Pe(vi,Yr,"ALPH")||(rn[0]=vi,_n[0]=Yr+8,fi[0]=oa),Yr+=$a,Da-=$a}}if(ht=ht[0],Wt.na=Wt.na[0],Wt.P=Wt.P[0],Wt.Sa=Wt.Sa[0],kr!=0)break}ht=[ht],Wt.Ja=[Wt.Ja],Wt.xa=[Wt.xa];e:if(Mi=ve,kr=Ke,Or=ht,rn=Wt.gb[0],_n=Wt.Ja,fi=Wt.xa,vi=kr[0],Yr=!Pe(Mi,vi,"VP8 "),Qi=!Pe(Mi,vi,"VP8L"),Se(Mi!=null),Se(Or!=null),Se(_n!=null),Se(fi!=null),8>Or[0])kr=7;else{if(Yr||Qi){if(Mi=ia(Mi,vi+4),12<=rn&&Mi>rn-12){kr=3;break e}if(jt&&Mi>Or[0]-8){kr=7;break e}_n[0]=Mi,kr[0]+=8,Or[0]-=8,fi[0]=Qi}else fi[0]=5<=Or[0]&&Mi[vi+0]==47&&!(Mi[vi+4]>>5),_n[0]=Or[0];kr=0}if(ht=ht[0],Wt.Ja=Wt.Ja[0],Wt.xa=Wt.xa[0],Ke=Ke[0],kr!=0)break;if(4294967286<Wt.Ja)return 3;if(ae==null||Zr||(ae[0]=Wt.xa?2:1),De=[De],Rr=[Rr],Wt.xa){if(5>ht){kr=7;break}ae=De,jt=Rr,Zr=Xr,ve==null||5>ht?ve=0:5<=ht&&ve[Ke+0]==47&&!(ve[Ke+4]>>5)?(Or=[0],Mi=[0],rn=[0],On(_n=new _r,ve,Ke,ht),xa(_n,Or,Mi,rn)?(ae!=null&&(ae[0]=Or[0]),jt!=null&&(jt[0]=Mi[0]),Zr!=null&&(Zr[0]=rn[0]),ve=1):ve=0):ve=0}else{if(10>ht){kr=7;break}ae=Rr,ve==null||10>ht||!dr(ve,Ke+3,ht-3)?ve=0:(jt=ve[Ke+0]|ve[Ke+1]<<8|ve[Ke+2]<<16,Zr=16383&(ve[Ke+7]<<8|ve[Ke+6]),ve=16383&(ve[Ke+9]<<8|ve[Ke+8]),1&jt||3<(jt>>1&7)||!(jt>>4&1)||jt>>5>=Wt.Ja||!Zr||!ve?ve=0:(De&&(De[0]=Zr),ae&&(ae[0]=ve),ve=1))}if(!ve)return 3;if(De=De[0],Rr=Rr[0],Dt&&(We[0]!=De||ut[0]!=Rr))return 3;be!=null&&(be[0]=Wt,be.offset=Ke-be.w,Se(4294967286>Ke-be.w),Se(be.offset==be.ha-ht));break}return kr==0||kr==7&&Dt&&be==null?(Xr!=null&&(Xr[0]|=Wt.na!=null&&0<Wt.na.length),Vt!=null&&(Vt[0]=De),Cr!=null&&(Cr[0]=Rr),0):kr}function Hl(ve,Ke,ht){var Vt=Ke.width,Cr=Ke.height,Xr=0,De=0,ae=Vt,be=Cr;if(Ke.Da=ve!=null&&0<ve.Da,Ke.Da&&(ae=ve.cd,be=ve.bd,Xr=ve.v,De=ve.j,11>ht||(Xr&=-2,De&=-2),0>Xr||0>De||0>=ae||0>=be||Xr+ae>Vt||De+be>Cr))return 0;if(Ke.v=Xr,Ke.j=De,Ke.va=Xr+ae,Ke.o=De+be,Ke.U=ae,Ke.T=be,Ke.da=ve!=null&&0<ve.da,Ke.da){if(!Ji(ae,be,ht=[ve.ib],Xr=[ve.hb]))return 0;Ke.ib=ht[0],Ke.hb=Xr[0]}return Ke.ob=ve!=null&&ve.ob,Ke.Kb=ve==null||!ve.Sd,Ke.da&&(Ke.ob=Ke.ib<3*Vt/4&&Ke.hb<3*Cr/4,Ke.Kb=0),1}function Js(ve){if(ve==null)return 2;if(11>ve.S){var Ke=ve.f.RGBA;Ke.fb+=(ve.height-1)*Ke.A,Ke.A=-Ke.A}else Ke=ve.f.kb,ve=ve.height,Ke.O+=(ve-1)*Ke.fa,Ke.fa=-Ke.fa,Ke.N+=(ve-1>>1)*Ke.Ab,Ke.Ab=-Ke.Ab,Ke.W+=(ve-1>>1)*Ke.Db,Ke.Db=-Ke.Db,Ke.F!=null&&(Ke.J+=(ve-1)*Ke.lb,Ke.lb=-Ke.lb);return 0}function fs(ve,Ke,ht,Vt){if(Vt==null||0>=ve||0>=Ke)return 2;if(ht!=null){if(ht.Da){var Cr=ht.cd,Xr=ht.bd,De=-2&ht.v,ae=-2&ht.j;if(0>De||0>ae||0>=Cr||0>=Xr||De+Cr>ve||ae+Xr>Ke)return 2;ve=Cr,Ke=Xr}if(ht.da){if(!Ji(ve,Ke,Cr=[ht.ib],Xr=[ht.hb]))return 2;ve=Cr[0],Ke=Xr[0]}}Vt.width=ve,Vt.height=Ke;e:{var be=Vt.width,We=Vt.height;if(ve=Vt.S,0>=be||0>=We||!(ve>=Zl&&13>ve))ve=2;else{if(0>=Vt.Rd&&Vt.sd==null){De=Xr=Cr=Ke=0;var ut=(ae=be*Bs[ve])*We;if(11>ve||(Xr=(We+1)/2*(Ke=(be+1)/2),ve==12&&(De=(Cr=be)*We)),(We=ze(ut+2*Xr+De))==null){ve=1;break e}Vt.sd=We,11>ve?((be=Vt.f.RGBA).eb=We,be.fb=0,be.A=ae,be.size=ut):((be=Vt.f.kb).y=We,be.O=0,be.fa=ae,be.Fd=ut,be.f=We,be.N=0+ut,be.Ab=Ke,be.Cd=Xr,be.ea=We,be.W=0+ut+Xr,be.Db=Ke,be.Ed=Xr,ve==12&&(be.F=We,be.J=0+ut+2*Xr),be.Tc=De,be.lb=Cr)}if(Ke=1,Cr=Vt.S,Xr=Vt.width,De=Vt.height,Cr>=Zl&&13>Cr)if(11>Cr)ve=Vt.f.RGBA,Ke&=(ae=Math.abs(ve.A))*(De-1)+Xr<=ve.size,Ke&=ae>=Xr*Bs[Cr],Ke&=ve.eb!=null;else{ve=Vt.f.kb,ae=(Xr+1)/2,ut=(De+1)/2,be=Math.abs(ve.fa),We=Math.abs(ve.Ab);var Dt=Math.abs(ve.Db),jt=Math.abs(ve.lb),Wt=jt*(De-1)+Xr;Ke&=be*(De-1)+Xr<=ve.Fd,Ke&=We*(ut-1)+ae<=ve.Cd,Ke=(Ke&=Dt*(ut-1)+ae<=ve.Ed)&be>=Xr&We>=ae&Dt>=ae,Ke&=ve.y!=null,Ke&=ve.f!=null,Ke&=ve.ea!=null,Cr==12&&(Ke&=jt>=Xr,Ke&=Wt<=ve.Tc,Ke&=ve.F!=null)}else Ke=0;ve=Ke?0:2}}return ve!=0||ht!=null&&ht.fd&&(ve=Js(Vt)),ve}var Xo=64,Zs=[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],Gl=24,Kl=32,ka=8,Ll=[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"),It.Predictor0=function(){return 4278190080},It.Predictor1=function(ve){return ve},It.Predictor2=function(ve,Ke,ht){return Ke[ht+0]},It.Predictor3=function(ve,Ke,ht){return Ke[ht+1]},It.Predictor4=function(ve,Ke,ht){return Ke[ht-1]},It.Predictor5=function(ve,Ke,ht){return nn(nn(ve,Ke[ht+1]),Ke[ht+0])},It.Predictor6=function(ve,Ke,ht){return nn(ve,Ke[ht-1])},It.Predictor7=function(ve,Ke,ht){return nn(ve,Ke[ht+0])},It.Predictor8=function(ve,Ke,ht){return nn(Ke[ht-1],Ke[ht+0])},It.Predictor9=function(ve,Ke,ht){return nn(Ke[ht+0],Ke[ht+1])},It.Predictor10=function(ve,Ke,ht){return nn(nn(ve,Ke[ht-1]),nn(Ke[ht+0],Ke[ht+1]))},It.Predictor11=function(ve,Ke,ht){var Vt=Ke[ht+0];return 0>=Pr(Vt>>24&255,ve>>24&255,(Ke=Ke[ht-1])>>24&255)+Pr(Vt>>16&255,ve>>16&255,Ke>>16&255)+Pr(Vt>>8&255,ve>>8&255,Ke>>8&255)+Pr(255&Vt,255&ve,255&Ke)?Vt:ve},It.Predictor12=function(ve,Ke,ht){var Vt=Ke[ht+0];return(Gt((ve>>24&255)+(Vt>>24&255)-((Ke=Ke[ht-1])>>24&255))<<24|Gt((ve>>16&255)+(Vt>>16&255)-(Ke>>16&255))<<16|Gt((ve>>8&255)+(Vt>>8&255)-(Ke>>8&255))<<8|Gt((255&ve)+(255&Vt)-(255&Ke)))>>>0},It.Predictor13=function(ve,Ke,ht){var Vt=Ke[ht-1];return(wr((ve=nn(ve,Ke[ht+0]))>>24&255,Vt>>24&255)<<24|wr(ve>>16&255,Vt>>16&255)<<16|wr(ve>>8&255,Vt>>8&255)<<8|wr(ve>>0&255,Vt>>0&255))>>>0};var kl=It.PredictorAdd0;It.PredictorAdd1=Jr,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 Al=It.PredictorAdd2;Ar("ColorIndexInverseTransform","MapARGB","32b",function(ve){return ve>>8&255},function(ve){return ve}),Ar("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(ve){return ve},function(ve){return ve>>8&255});var Is,al=It.ColorIndexInverseTransform,eu=It.MapARGB,Nl=It.VP8LColorIndexInverseTransformAlpha,yl=It.MapAlpha,Ls=It.VP8LPredictorsAdd=[];Ls.length=16,(It.VP8LPredictors=[]).length=16,(It.VP8LPredictorsAdd_C=[]).length=16,(It.VP8LPredictors_C=[]).length=16;var Xs,Wl,ol,So,io,Bo,ds,gs,Wo,vs,Ps,js,bl,ml,Dl,xl,El,Pl,zs,Cs,Vs,Ts,ul,Cl,Xl,Jl,cl,zl,tu=ze(511),Iu=ze(2041),bu=ze(225),du=ze(767),hu=0,nu=Iu,dl=bu,Tl=du,wl=tu,Zl=0,_l=1,fu=2,hl=3,fl=4,pu=5,mu=6,Lu=7,Ml=8,$l=9,iu=10,au=[2,3,7],Yl=[3,3,11],Ru=[280,256,256,256,40],Nu=[0,1,1,1,0],Ql=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],gu=[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],wu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],vu=8,Gs=[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],gl=[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],ru=null,Du=[[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]],Su=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],cu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ou=[[[[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]]]],su=[[[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]]],xu=[[[[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]]]],Au=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],he=[],$=[],L=[],K=1,j=2,J=[],te=[];ha("UpsampleRgbLinePair",jo,3),ha("UpsampleBgrLinePair",Zo,3),ha("UpsampleRgbaLinePair",Ul,4),ha("UpsampleBgraLinePair",as,4),ha("UpsampleArgbLinePair",Oo,4),ha("UpsampleRgba4444LinePair",Ua,2),ha("UpsampleRgb565LinePair",ts,2);var me=It.UpsampleRgbLinePair,we=It.UpsampleBgrLinePair,je=It.UpsampleRgbaLinePair,qe=It.UpsampleBgraLinePair,it=It.UpsampleArgbLinePair,Rt=It.UpsampleRgba4444LinePair,hr=It.UpsampleRgb565LinePair,tr=16,Dr=1<<tr-1,jr=-227,Sn=482,yn=6,Mn=(256<<yn)-1,si=0,Xi=ze(256),Li=ze(256),Pi=ze(256),Aa=ze(256),Na=ze(Sn-jr),Sa=ze(Sn-jr);vl("YuvToRgbRow",jo,3),vl("YuvToBgrRow",Zo,3),vl("YuvToRgbaRow",Ul,4),vl("YuvToBgraRow",as,4),vl("YuvToArgbRow",Oo,4),vl("YuvToRgba4444Row",Ua,2),vl("YuvToRgb565Row",ts,2);var aa=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],so=[0,2,8],os=[8,7,6,4,4,2,2,2,1,1,1,1],$o=1;this.WebPDecodeRGBA=function(ve,Ke,ht,Vt,Cr){var Xr=_l,De=new Es,ae=new Ri;De.ba=ae,ae.S=Xr,ae.width=[ae.width],ae.height=[ae.height];var be=ae.width,We=ae.height,ut=new ji;if(ut==null||ve==null)var Dt=2;else Se(ut!=null),Dt=jl(ve,Ke,ht,ut.width,ut.height,ut.Pd,ut.Qd,ut.format,null);if(Dt!=0?be=0:(be!=null&&(be[0]=ut.width[0]),We!=null&&(We[0]=ut.height[0]),be=1),be){ae.width=ae.width[0],ae.height=ae.height[0],Vt!=null&&(Vt[0]=ae.width),Cr!=null&&(Cr[0]=ae.height);e:{if(Vt=new qa,(Cr=new tl).data=ve,Cr.w=Ke,Cr.ha=ht,Cr.kd=1,Ke=[0],Se(Cr!=null),((ve=jl(Cr.data,Cr.w,Cr.ha,null,null,null,Ke,null,Cr))==0||ve==7)&&Ke[0]&&(ve=4),(Ke=ve)==0){if(Se(De!=null),Vt.data=Cr.data,Vt.w=Cr.w+Cr.offset,Vt.ha=Cr.ha-Cr.offset,Vt.put=ma,Vt.ac=Zi,Vt.bc=Hi,Vt.ma=De,Cr.xa){if((ve=ro())==null){De=1;break e}if(function(jt,Wt){var Rr=[0],Zr=[0],kr=[0];t:for(;;){if(jt==null)return 0;if(Wt==null)return jt.a=2,0;if(jt.l=Wt,jt.a=0,On(jt.m,Wt.data,Wt.w,Wt.ha),!xa(jt.m,Rr,Zr,kr)){jt.a=3;break t}if(jt.xb=j,Wt.width=Rr[0],Wt.height=Zr[0],!lo(Rr[0],Zr[0],1,jt,null))break t;return 1}return Se(jt.a!=0),0}(ve,Vt)){if(Vt=(Ke=fs(Vt.width,Vt.height,De.Oa,De.ba))==0){t:{Vt=ve;r:for(;;){if(Vt==null){Vt=0;break t}if(Se(Vt.s.yc!=null),Se(Vt.s.Ya!=null),Se(0<Vt.s.Wb),Se((ht=Vt.l)!=null),Se((Cr=ht.ma)!=null),Vt.xb!=0){if(Vt.ca=Cr.ba,Vt.tb=Cr.tb,Se(Vt.ca!=null),!Hl(Cr.Oa,ht,hl)){Vt.a=2;break r}if(!no(Vt,ht.width))break r;if(ht.da)break r;if((ht.da||Ai(Vt.ca.S))&&Yi(),11>Vt.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Vt.ca.f.kb.F!=null&&Yi()),Vt.Pb&&0<Vt.s.ua&&Vt.s.vb.X==null&&!$i(Vt.s.vb,Vt.s.Wa.Xa)){Vt.a=1;break r}Vt.xb=0}if(!Ya(Vt,Vt.V,Vt.Ba,Vt.c,Vt.i,ht.o,va))break r;Cr.Dc=Vt.Ma,Vt=1;break t}Se(Vt.a!=0),Vt=0}Vt=!Vt}Vt&&(Ke=ve.a)}else Ke=ve.a}else{if((ve=new _a)==null){De=1;break e}if(ve.Fa=Cr.na,ve.P=Cr.P,ve.qc=Cr.Sa,Kr(ve,Vt)){if((Ke=fs(Vt.width,Vt.height,De.Oa,De.ba))==0){if(ve.Aa=0,ht=De.Oa,Se((Cr=ve)!=null),ht!=null){if(0<(be=0>(be=ht.Md)?0:100<be?255:255*be/100)){for(We=ut=0;4>We;++We)12>(Dt=Cr.pb[We]).lc&&(Dt.ia=be*os[0>Dt.lc?0:Dt.lc]>>3),ut|=Dt.ia;ut&&(alert("todo:VP8InitRandom"),Cr.ia=1)}Cr.Ga=ht.Id,100<Cr.Ga?Cr.Ga=100:0>Cr.Ga&&(Cr.Ga=0)}$r(ve,Vt)||(Ke=ve.a)}}else Ke=ve.a}Ke==0&&De.Oa!=null&&De.Oa.fd&&(Ke=Js(De.ba))}De=Ke}Xr=De!=0?null:11>Xr?ae.f.RGBA.eb:ae.f.kb.y}else Xr=null;return Xr};var Bs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ht(kn,It){for(var yt="",xt=0;xt<4;xt++)yt+=String.fromCharCode(kn[It++]);return yt}function Er(kn,It){return(kn[It+0]<<0|kn[It+1]<<8|kn[It+2]<<16)>>>0}function Fr(kn,It){return(kn[It+0]<<0|kn[It+1]<<8|kn[It+2]<<16|kn[It+3]<<24)>>>0}new ft;var tn=[0],Zt=[0],Rn=[],vn=new ft,Un=Qe,hn=function(kn,It){var yt={},xt=0,Tt=!1,Lt=0,_t=0;if(yt.frames=[],!function(_r,mn,In,Wn){for(var Jn=0;Jn<Wn;Jn++)if(_r[mn+Jn]!=In.charCodeAt(Jn))return!0;return!1}(kn,It,"RIFF",4)){var Xt,er;for(Fr(kn,It+=4),It+=8;It<kn.length;){var nr=Ht(kn,It),br=Fr(kn,It+=4);It+=4;var On=br+(1&br);switch(nr){case"VP8 ":case"VP8L":yt.frames[xt]===void 0&&(yt.frames[xt]={}),(an=yt.frames[xt]).src_off=Tt?_t:It-8,an.src_size=Lt+br+8,xt++,Tt&&(Tt=!1,Lt=0,_t=0);break;case"VP8X":(an=yt.header={}).feature_flags=kn[It];var bn=It+4;an.canvas_width=1+Er(kn,bn),bn+=3,an.canvas_height=1+Er(kn,bn),bn+=3;break;case"ALPH":Tt=!0,Lt=On+8,_t=It-8;break;case"ANIM":(an=yt.header).bgcolor=Fr(kn,It),bn=It+4,an.loop_count=(Xt=kn)[(er=bn)+0]<<0|Xt[er+1]<<8,bn+=2;break;case"ANMF":var qn,an;(an=yt.frames[xt]={}).offset_x=2*Er(kn,It),It+=3,an.offset_y=2*Er(kn,It),It+=3,an.width=1+Er(kn,It),It+=3,an.height=1+Er(kn,It),It+=3,an.duration=Er(kn,It),It+=3,qn=kn[It++],an.dispose=1&qn,an.blend=qn>>1&1}nr!="ANMF"&&(It+=On)}return yt}}(Un,0);hn.response=Un,hn.rgbaoutput=!0,hn.dataurl=!1;var Wr=hn.header?hn.header:null,Kn=hn.frames?hn.frames:null;if(Wr){Wr.loop_counter=Wr.loop_count,tn=[Wr.canvas_height],Zt=[Wr.canvas_width];for(var ei=0;ei<Kn.length&&Kn[ei].blend!=0;ei++);}var Si=Kn[0],Vr=vn.WebPDecodeRGBA(Un,Si.src_off,Si.src_size,Zt,tn);Si.rgba=Vr,Si.imgwidth=Zt[0],Si.imgheight=tn[0];for(var fn=0;fn<Zt[0]*tn[0]*4;fn++)Rn[fn]=Vr[fn];return this.width=Zt,this.height=tn,this.data=Rn,this}!function(Qe){var Se=function(){return typeof v.b=="function"},Pe=function(Zt,Rn,vn,Un){var hn=4,Wr=$e;switch(Un){case Qe.image_compression.FAST:hn=1,Wr=ze;break;case Qe.image_compression.MEDIUM:hn=6,Wr=St;break;case Qe.image_compression.SLOW:hn=9,Wr=ft}Zt=He(Zt,Rn,vn,Wr);var Kn=Object(v.b)(Zt,{level:hn});return Qe.__addimage__.arrayBufferToBinaryString(Kn)},He=function(Zt,Rn,vn,Un){for(var hn,Wr,Kn,ei=Zt.length/Rn,Si=new Uint8Array(Zt.length+ei),Vr=Er(),fn=0;fn<ei;fn+=1){if(Kn=fn*Rn,hn=Zt.subarray(Kn,Kn+Rn),Un)Si.set(Un(hn,vn,Wr),Kn+fn);else{for(var kn,It=Vr.length,yt=[];kn<It;kn+=1)yt[kn]=Vr[kn](hn,vn,Wr);var xt=Fr(yt.concat());Si.set(yt[xt],Kn+fn)}Wr=hn}return Si},Ye=function(Zt){var Rn=Array.apply([],Zt);return Rn.unshift(0),Rn},ze=function(Zt,Rn){var vn,Un=[],hn=Zt.length;Un[0]=1;for(var Wr=0;Wr<hn;Wr+=1)vn=Zt[Wr-Rn]||0,Un[Wr+1]=Zt[Wr]-vn+256&255;return Un},$e=function(Zt,Rn,vn){var Un,hn=[],Wr=Zt.length;hn[0]=2;for(var Kn=0;Kn<Wr;Kn+=1)Un=vn&&vn[Kn]||0,hn[Kn+1]=Zt[Kn]-Un+256&255;return hn},St=function(Zt,Rn,vn){var Un,hn,Wr=[],Kn=Zt.length;Wr[0]=3;for(var ei=0;ei<Kn;ei+=1)Un=Zt[ei-Rn]||0,hn=vn&&vn[ei]||0,Wr[ei+1]=Zt[ei]+256-(Un+hn>>>1)&255;return Wr},ft=function(Zt,Rn,vn){var Un,hn,Wr,Kn,ei=[],Si=Zt.length;ei[0]=4;for(var Vr=0;Vr<Si;Vr+=1)Un=Zt[Vr-Rn]||0,hn=vn&&vn[Vr]||0,Wr=vn&&vn[Vr-Rn]||0,Kn=Ht(Un,hn,Wr),ei[Vr+1]=Zt[Vr]-Kn+256&255;return ei},Ht=function(Zt,Rn,vn){if(Zt===Rn&&Rn===vn)return Zt;var Un=Math.abs(Rn-vn),hn=Math.abs(Zt-vn),Wr=Math.abs(Zt+Rn-vn-vn);return Un<=hn&&Un<=Wr?Zt:hn<=Wr?Rn:vn},Er=function(){return[Ye,ze,$e,St,ft]},Fr=function(Zt){var Rn=Zt.map(function(vn){return vn.reduce(function(Un,hn){return Un+Math.abs(hn)},0)});return Rn.indexOf(Math.min.apply(null,Rn))};Qe.processPNG=function(tn,Zt,Rn,vn){var Un,hn,Wr,Kn,ei,Si,Vr,fn,kn,It,yt,xt,Tt,Lt,_t,Xt=this.decode.FLATE_DECODE,er="";if(this.__addimage__.isArrayBuffer(tn)&&(tn=new Uint8Array(tn)),this.__addimage__.isArrayBufferView(tn)){if(tn=(Wr=new Ze(tn)).imgData,hn=Wr.bits,Un=Wr.colorSpace,ei=Wr.colors,[4,6].indexOf(Wr.colorType)!==-1){if(Wr.bits===8){kn=(fn=Wr.pixelBitlength==32?new Uint32Array(Wr.decodePixels().buffer):Wr.pixelBitlength==16?new Uint16Array(Wr.decodePixels().buffer):new Uint8Array(Wr.decodePixels().buffer)).length,yt=new Uint8Array(kn*Wr.colors),It=new Uint8Array(kn);var nr,br=Wr.pixelBitlength-Wr.bits;for(Lt=0,_t=0;Lt<kn;Lt++){for(Tt=fn[Lt],nr=0;nr<br;)yt[_t++]=Tt>>>nr&255,nr+=Wr.bits;It[Lt]=Tt>>>nr&255}}if(Wr.bits===16){kn=(fn=new Uint32Array(Wr.decodePixels().buffer)).length,yt=new Uint8Array(kn*(32/Wr.pixelBitlength)*Wr.colors),It=new Uint8Array(kn*(32/Wr.pixelBitlength)),xt=Wr.colors>1,Lt=0,_t=0;for(var On=0;Lt<kn;)Tt=fn[Lt++],yt[_t++]=Tt>>>0&255,xt&&(yt[_t++]=Tt>>>16&255,Tt=fn[Lt++],yt[_t++]=Tt>>>0&255),It[On++]=Tt>>>16&255;hn=8}vn!==Qe.image_compression.NONE&&Se()?(tn=Pe(yt,Wr.width*Wr.colors,Wr.colors,vn),Vr=Pe(It,Wr.width,1,vn)):(tn=yt,Vr=It,Xt=void 0)}if(Wr.colorType===3&&(Un=this.color_spaces.INDEXED,Si=Wr.palette,Wr.transparency.indexed)){var bn=Wr.transparency.indexed,qn=0;for(Lt=0,kn=bn.length;Lt<kn;++Lt)qn+=bn[Lt];if((qn/=255)===kn-1&&bn.indexOf(0)!==-1)Kn=[bn.indexOf(0)];else if(qn!==kn){for(fn=Wr.decodePixels(),It=new Uint8Array(fn.length),Lt=0,kn=fn.length;Lt<kn;Lt++)It[Lt]=bn[fn[Lt]];Vr=Pe(It,Wr.width,1)}}var an=function(_r){var mn;switch(_r){case Qe.image_compression.FAST:mn=11;break;case Qe.image_compression.MEDIUM:mn=13;break;case Qe.image_compression.SLOW:mn=14;break;default:mn=12}return mn}(vn);return Xt===this.decode.FLATE_DECODE&&(er="/Predictor "+an+" "),er+="/Colors "+ei+" /BitsPerComponent "+hn+" /Columns "+Wr.width,(this.__addimage__.isArrayBuffer(tn)||this.__addimage__.isArrayBufferView(tn))&&(tn=this.__addimage__.arrayBufferToBinaryString(tn)),(Vr&&this.__addimage__.isArrayBuffer(Vr)||this.__addimage__.isArrayBufferView(Vr))&&(Vr=this.__addimage__.arrayBufferToBinaryString(Vr)),{alias:Rn,data:tn,index:Zt,filter:Xt,decodeParameters:er,transparency:Kn,palette:Si,sMask:Vr,predictor:an,width:Wr.width,height:Wr.height,bitsPerComponent:hn,colorSpace:Un}}}}(H.API),function(Qe){Qe.processGIF89A=function(Se,Pe,He,Ye){var ze=new ct(Se),$e=ze.width,St=ze.height,ft=[];ze.decodeAndBlitFrameRGBA(0,ft);var Ht={data:ft,width:$e,height:St},Er=new kt(100).encode(Ht,100);return Qe.processJPEG.call(this,Er,Pe,He,Ye)},Qe.processGIF87A=Qe.processGIF89A}(H.API),xr.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 Qe=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Qe);for(var Se=0;Se<Qe;Se++){var Pe=this.datav.getUint8(this.pos++,!0),He=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0);this.palette[Se]={red:Ye,green:He,blue:Pe,quad:ze}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},xr.prototype.parseBGR=function(){this.pos=this.offset;try{var Qe="bit"+this.bitPP,Se=this.width*this.height*4;this.data=new Uint8Array(Se),this[Qe]()}catch(Pe){d.log("bit decode error:"+Pe)}},xr.prototype.bit1=function(){var Qe,Se=Math.ceil(this.width/8),Pe=Se%4;for(Qe=this.height-1;Qe>=0;Qe--){for(var He=this.bottom_up?Qe:this.height-1-Qe,Ye=0;Ye<Se;Ye++)for(var ze=this.datav.getUint8(this.pos++,!0),$e=He*this.width*4+8*Ye*4,St=0;St<8&&8*Ye+St<this.width;St++){var ft=this.palette[ze>>7-St&1];this.data[$e+4*St]=ft.blue,this.data[$e+4*St+1]=ft.green,this.data[$e+4*St+2]=ft.red,this.data[$e+4*St+3]=255}Pe!==0&&(this.pos+=4-Pe)}},xr.prototype.bit4=function(){for(var Qe=Math.ceil(this.width/2),Se=Qe%4,Pe=this.height-1;Pe>=0;Pe--){for(var He=this.bottom_up?Pe:this.height-1-Pe,Ye=0;Ye<Qe;Ye++){var ze=this.datav.getUint8(this.pos++,!0),$e=He*this.width*4+2*Ye*4,St=ze>>4,ft=15&ze,Ht=this.palette[St];if(this.data[$e]=Ht.blue,this.data[$e+1]=Ht.green,this.data[$e+2]=Ht.red,this.data[$e+3]=255,2*Ye+1>=this.width)break;Ht=this.palette[ft],this.data[$e+4]=Ht.blue,this.data[$e+4+1]=Ht.green,this.data[$e+4+2]=Ht.red,this.data[$e+4+3]=255}Se!==0&&(this.pos+=4-Se)}},xr.prototype.bit8=function(){for(var Qe=this.width%4,Se=this.height-1;Se>=0;Se--){for(var Pe=this.bottom_up?Se:this.height-1-Se,He=0;He<this.width;He++){var Ye=this.datav.getUint8(this.pos++,!0),ze=Pe*this.width*4+4*He;if(Ye<this.palette.length){var $e=this.palette[Ye];this.data[ze]=$e.red,this.data[ze+1]=$e.green,this.data[ze+2]=$e.blue,this.data[ze+3]=255}else this.data[ze]=255,this.data[ze+1]=255,this.data[ze+2]=255,this.data[ze+3]=255}Qe!==0&&(this.pos+=4-Qe)}},xr.prototype.bit15=function(){for(var Qe=this.width%3,Se=parseInt("11111",2),Pe=this.height-1;Pe>=0;Pe--){for(var He=this.bottom_up?Pe:this.height-1-Pe,Ye=0;Ye<this.width;Ye++){var ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var $e=(ze&Se)/Se*255|0,St=(ze>>5&Se)/Se*255|0,ft=(ze>>10&Se)/Se*255|0,Ht=ze>>15?255:0,Er=He*this.width*4+4*Ye;this.data[Er]=ft,this.data[Er+1]=St,this.data[Er+2]=$e,this.data[Er+3]=Ht}this.pos+=Qe}},xr.prototype.bit16=function(){for(var Qe=this.width%3,Se=parseInt("11111",2),Pe=parseInt("111111",2),He=this.height-1;He>=0;He--){for(var Ye=this.bottom_up?He:this.height-1-He,ze=0;ze<this.width;ze++){var $e=this.datav.getUint16(this.pos,!0);this.pos+=2;var St=($e&Se)/Se*255|0,ft=($e>>5&Pe)/Pe*255|0,Ht=($e>>11)/Se*255|0,Er=Ye*this.width*4+4*ze;this.data[Er]=Ht,this.data[Er+1]=ft,this.data[Er+2]=St,this.data[Er+3]=255}this.pos+=Qe}},xr.prototype.bit24=function(){for(var Qe=this.height-1;Qe>=0;Qe--){for(var Se=this.bottom_up?Qe:this.height-1-Qe,Pe=0;Pe<this.width;Pe++){var He=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0),$e=Se*this.width*4+4*Pe;this.data[$e]=ze,this.data[$e+1]=Ye,this.data[$e+2]=He,this.data[$e+3]=255}this.pos+=this.width%4}},xr.prototype.bit32=function(){for(var Qe=this.height-1;Qe>=0;Qe--)for(var Se=this.bottom_up?Qe:this.height-1-Qe,Pe=0;Pe<this.width;Pe++){var He=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0),St=Se*this.width*4+4*Pe;this.data[St]=ze,this.data[St+1]=Ye,this.data[St+2]=He,this.data[St+3]=$e}},xr.prototype.getData=function(){return this.data},function(Qe){Qe.processBMP=function(Se,Pe,He,Ye){var ze=new xr(Se,!1),$e=ze.width,St=ze.height,ft={data:ze.getData(),width:$e,height:St},Ht=new kt(100).encode(ft,100);return Qe.processJPEG.call(this,Ht,Pe,He,Ye)}}(H.API),Hr.prototype.getData=function(){return this.data},function(Qe){Qe.processWEBP=function(Se,Pe,He,Ye){var ze=new Hr(Se,!1),$e=ze.width,St=ze.height,ft={data:ze.getData(),width:$e,height:St},Ht=new kt(100).encode(ft,100);return Qe.processJPEG.call(this,Ht,Pe,He,Ye)}}(H.API),H.API.processRGBA=function(Qe,Se,Pe){for(var He=Qe.data,Ye=He.length,ze=new Uint8Array(Ye/4*3),$e=new Uint8Array(Ye/4),St=0,ft=0,Ht=0;Ht<Ye;Ht+=4){var Er=He[Ht],Fr=He[Ht+1],tn=He[Ht+2],Zt=He[Ht+3];ze[St++]=Er,ze[St++]=Fr,ze[St++]=tn,$e[ft++]=Zt}var Rn=this.__addimage__.arrayBufferToBinaryString(ze);return{alpha:this.__addimage__.arrayBufferToBinaryString($e),data:Rn,index:Se,alias:Pe,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Qe.width,height:Qe.height}},H.API.setLanguage=function(Qe){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"}[Qe]!==void 0&&(this.internal.languageSettings.languageCode=Qe,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},Ft=H.API,vt=Ft.getCharWidthsArray=function(Qe,Se){var Pe,He,Ye=(Se=Se||{}).font||this.internal.getFont(),ze=Se.fontSize||this.internal.getFontSize(),$e=Se.charSpace||this.internal.getCharSpace(),St=Se.widths?Se.widths:Ye.metadata.Unicode.widths,ft=St.fof?St.fof:1,Ht=Se.kerning?Se.kerning:Ye.metadata.Unicode.kerning,Er=Ht.fof?Ht.fof:1,Fr=Se.doKerning!==!1,tn=0,Zt=Qe.length,Rn=0,vn=St[0]||ft,Un=[];for(Pe=0;Pe<Zt;Pe++)He=Qe.charCodeAt(Pe),typeof Ye.metadata.widthOfString=="function"?Un.push((Ye.metadata.widthOfGlyph(Ye.metadata.characterToGlyph(He))+$e*(1e3/ze)||0)/1e3):(tn=Fr&&S()(Ht[He])==="object"&&!isNaN(parseInt(Ht[He][Rn],10))?Ht[He][Rn]/Er:0,Un.push((St[He]||vn)/ft+tn)),Rn=He;return Un},_e=Ft.getStringUnitWidth=function(Qe,Se){var Pe=(Se=Se||{}).fontSize||this.internal.getFontSize(),He=Se.font||this.internal.getFont(),Ye=Se.charSpace||this.internal.getCharSpace();return Ft.processArabic&&(Qe=Ft.processArabic(Qe)),typeof He.metadata.widthOfString=="function"?He.metadata.widthOfString(Qe,Pe,Ye)/Pe:vt.apply(this,arguments).reduce(function(ze,$e){return ze+$e},0)},Ne=function(Se,Pe,He,Ye){for(var ze=[],$e=0,St=Se.length,ft=0;$e!==St&&ft+Pe[$e]<He;)ft+=Pe[$e],$e++;ze.push(Se.slice(0,$e));var Ht=$e;for(ft=0;$e!==St;)ft+Pe[$e]>Ye&&(ze.push(Se.slice(Ht,$e)),ft=0,Ht=$e),ft+=Pe[$e],$e++;return Ht!==$e&&ze.push(Se.slice(Ht,$e)),ze},Ie=function(Se,Pe,He){He||(He={});var Ye,ze,$e,St,ft,Ht,Er,Fr=[],tn=[Fr],Zt=He.textIndent||0,Rn=0,vn=0,Un=Se.split(" "),hn=vt.apply(this,[" ",He])[0];if(Ht=He.lineIndent===-1?Un[0].length+2:He.lineIndent||0){var Wr=Array(Ht).join(" "),Kn=[];Un.map(function(Si){(Si=Si.split(/\s*\n/)).length>1?Kn=Kn.concat(Si.map(function(Vr,fn){return(fn&&Vr.length?`
`:"")+Vr})):Kn.push(Si[0])}),Un=Kn,Ht=_e.apply(this,[Wr,He])}for($e=0,St=Un.length;$e<St;$e++){var ei=0;if(Ye=Un[$e],Ht&&Ye[0]==`
`&&(Ye=Ye.substr(1),ei=1),Zt+Rn+(vn=(ze=vt.apply(this,[Ye,He])).reduce(function(Si,Vr){return Si+Vr},0))>Pe||ei){if(vn>Pe){for(ft=Ne.apply(this,[Ye,ze,Pe-(Zt+Rn),Pe]),Fr.push(ft.shift()),Fr=[ft.pop()];ft.length;)tn.push([ft.shift()]);vn=ze.slice(Ye.length-(Fr[0]?Fr[0].length:0)).reduce(function(Si,Vr){return Si+Vr},0)}else Fr=[Ye];tn.push(Fr),Zt=vn+Ht,Rn=hn}else Fr.push(Ye),Zt+=Rn+vn,Rn=hn}return Er=Ht?function(Si,Vr){return(Vr?Wr:"")+Si.join(" ")}:function(Si){return Si.join(" ")},tn.map(Er)},Ft.splitTextToSize=function(Qe,Se,Pe){var He,Ye=(Pe=Pe||{}).fontSize||this.internal.getFontSize(),ze=function(Er){if(Er.widths&&Er.kerning)return{widths:Er.widths,kerning:Er.kerning};var Fr=this.internal.getFont(Er.fontName,Er.fontStyle);return Fr.metadata.Unicode?{widths:Fr.metadata.Unicode.widths||{0:1},kerning:Fr.metadata.Unicode.kerning||{}}:{font:Fr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Pe);He=Array.isArray(Qe)?Qe:String(Qe).split(/\r?\n/);var $e=1*this.internal.scaleFactor*Se/Ye;ze.textIndent=Pe.textIndent?1*Pe.textIndent*this.internal.scaleFactor/Ye:0,ze.lineIndent=Pe.lineIndent;var St,ft,Ht=[];for(St=0,ft=He.length;St<ft;St++)Ht=Ht.concat(Ie.apply(this,[He[St],$e,ze]));return Ht},function(Qe){Qe.__fontmetrics__=Qe.__fontmetrics__||{};for(var Se="klmnopqrstuvwxyz",Pe={},He={},Ye=0;Ye<Se.length;Ye++)Pe[Se[Ye]]="0123456789abcdef"[Ye],He["0123456789abcdef"[Ye]]=Se[Ye];var ze=function(tn){return"0x"+parseInt(tn,10).toString(16)},$e=Qe.__fontmetrics__.compress=function(Fr){var tn,Zt,Rn,vn,Un=["{"];for(var hn in Fr){if(tn=Fr[hn],isNaN(parseInt(hn,10))?Zt="'"+hn+"'":(hn=parseInt(hn,10),Zt=(Zt=ze(hn).slice(2)).slice(0,-1)+He[Zt.slice(-1)]),typeof tn=="number")tn<0?(Rn=ze(tn).slice(3),vn="-"):(Rn=ze(tn).slice(2),vn=""),Rn=vn+Rn.slice(0,-1)+He[Rn.slice(-1)];else{if(S()(tn)!=="object")throw new Error("Don't know what to do with value type "+S()(tn)+".");Rn=$e(tn)}Un.push(Zt+Rn)}return Un.push("}"),Un.join("")},St=Qe.__fontmetrics__.uncompress=function(Fr){if(typeof Fr!="string")throw new Error("Invalid argument passed to uncompress.");for(var tn,Zt,Rn,vn,Un={},hn=1,Wr=Un,Kn=[],ei="",Si="",Vr=Fr.length-1,fn=1;fn<Vr;fn+=1)(vn=Fr[fn])=="'"?tn?(Rn=tn.join(""),tn=void 0):tn=[]:tn?tn.push(vn):vn=="{"?(Kn.push([Wr,Rn]),Wr={},Rn=void 0):vn=="}"?((Zt=Kn.pop())[0][Zt[1]]=Wr,Rn=void 0,Wr=Zt[0]):vn=="-"?hn=-1:Rn===void 0?Pe.hasOwnProperty(vn)?(ei+=Pe[vn],Rn=parseInt(ei,16)*hn,hn=1,ei=""):ei+=vn:Pe.hasOwnProperty(vn)?(Si+=Pe[vn],Wr[Rn]=parseInt(Si,16)*hn,hn=1,Rn=void 0,Si=""):Si+=vn;return Un},ft={codePages:["WinAnsiEncoding"],WinAnsiEncoding:St("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Ht={Unicode:{Courier:ft,"Courier-Bold":ft,"Courier-BoldOblique":ft,"Courier-Oblique":ft,Helvetica:ft,"Helvetica-Bold":ft,"Helvetica-BoldOblique":ft,"Helvetica-Oblique":ft,"Times-Roman":ft,"Times-Bold":ft,"Times-BoldItalic":ft,"Times-Italic":ft}},Er={Unicode:{"Courier-Oblique":St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":St("{'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":St("{'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:St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":St("{'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:St("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:St("{'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":St("{'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:St("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":St("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":St("{'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":St("{'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":St("{'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}}}")}};Qe.events.push(["addFont",function(Fr){var tn=Fr.font,Zt=Er.Unicode[tn.postScriptName];Zt&&(tn.metadata.Unicode={},tn.metadata.Unicode.widths=Zt.widths,tn.metadata.Unicode.kerning=Zt.kerning);var Rn=Ht.Unicode[tn.postScriptName];Rn&&(tn.metadata.Unicode.encoding=Rn,tn.encoding=Rn.codePages[0])}])}(H.API),function(Qe){var Se=function(He){for(var Ye=He.length,ze=new Uint8Array(Ye),$e=0;$e<Ye;$e++)ze[$e]=He.charCodeAt($e);return ze};Qe.API.events.push(["addFont",function(Pe){var He=void 0,Ye=Pe.font,ze=Pe.instance;if(!Ye.isStandardFont){if(ze===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ye.postScriptName+"').");if(typeof(He=ze.existsFileInVFS(Ye.postScriptName)===!1?ze.loadFile(Ye.postScriptName):ze.getFileFromVFS(Ye.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ye.postScriptName+"').");!function($e,St){St=/^\x00\x01\x00\x00/.test(St)?Se(St):Se(t(St)),$e.metadata=Qe.API.TTFFont.open(St),$e.metadata.Unicode=$e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},$e.metadata.glyIdsUsed=[0]}(Ye,He)}}])}(H),function(Qe){function Se(){return(m.canvg?Promise.resolve(m.canvg):Promise.all([i.e(0),i.e(236)]).then(i.bind(null,"DXPr"))).catch(function(Pe){return Promise.reject(new Error("Could not load canvg: "+Pe))}).then(function(Pe){return Pe.default?Pe.default:Pe})}H.API.addSvgAsImage=function(Pe,He,Ye,ze,$e,St,ft,Ht){if(isNaN(He)||isNaN(Ye))throw d.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(ze)||isNaN($e))throw d.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Er=document.createElement("canvas");Er.width=ze,Er.height=$e;var Fr=Er.getContext("2d");Fr.fillStyle="#fff",Fr.fillRect(0,0,Er.width,Er.height);var tn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Zt=this;return Se().then(function(Rn){return Rn.fromString(Fr,Pe,tn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Rn){return Rn.render(tn)}).then(function(){Zt.addImage(Er.toDataURL("image/jpeg",1),He,Ye,ze,$e,ft,Ht)})}}(),H.API.putTotalPages=function(Qe){var Se,Pe=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Se=new RegExp(Qe,"g"),Pe=this.internal.getNumberOfPages()):(Se=new RegExp(this.pdfEscape16(Qe,this.internal.getFont()),"g"),Pe=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var He=1;He<=this.internal.getNumberOfPages();He++)for(var Ye=0;Ye<this.internal.pages[He].length;Ye++)this.internal.pages[He][Ye]=this.internal.pages[He][Ye].replace(Se,Pe);return this},H.API.viewerPreferences=function(Qe,Se){var Pe;Qe=Qe||{},Se=Se||!1;var He,Ye,ze,$e={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}},St=Object.keys($e),ft=[],Ht=0,Er=0,Fr=0;function tn(Rn,vn){var Un,hn=!1;for(Un=0;Un<Rn.length;Un+=1)Rn[Un]===vn&&(hn=!0);return hn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify($e)),this.internal.viewerpreferences.isSubscribed=!1),Pe=this.internal.viewerpreferences.configuration,Qe==="reset"||Se===!0){var Zt=St.length;for(Fr=0;Fr<Zt;Fr+=1)Pe[St[Fr]].value=Pe[St[Fr]].defaultValue,Pe[St[Fr]].explicitSet=!1}if(S()(Qe)==="object"){for(Ye in Qe)if(ze=Qe[Ye],tn(St,Ye)&&ze!==void 0){if(Pe[Ye].type==="boolean"&&typeof ze=="boolean")Pe[Ye].value=ze;else if(Pe[Ye].type==="name"&&tn(Pe[Ye].valueSet,ze))Pe[Ye].value=ze;else if(Pe[Ye].type==="integer"&&Number.isInteger(ze))Pe[Ye].value=ze;else if(Pe[Ye].type==="array"){for(Ht=0;Ht<ze.length;Ht+=1)if(He=!0,ze[Ht].length===1&&typeof ze[Ht][0]=="number")ft.push(String(ze[Ht]-1));else if(ze[Ht].length>1){for(Er=0;Er<ze[Ht].length;Er+=1)typeof ze[Ht][Er]!="number"&&(He=!1);He===!0&&ft.push([ze[Ht][0]-1,ze[Ht][1]-1].join(" "))}Pe[Ye].value="["+ft.join(" ")+"]"}else Pe[Ye].value=Pe[Ye].defaultValue;Pe[Ye].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Rn,vn=[];for(Rn in Pe)Pe[Rn].explicitSet===!0&&(Pe[Rn].type==="name"?vn.push("/"+Rn+" /"+Pe[Rn].value):vn.push("/"+Rn+" "+Pe[Rn].value));vn.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+vn.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Pe,this},function(Qe){var Se=function(){var Ye='<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>',ze=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),$e=unescape(encodeURIComponent(Ye)),St=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ft=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ht=unescape(encodeURIComponent("</x:xmpmeta>")),Er=$e.length+St.length+ft.length+ze.length+Ht.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Er+" >>"),this.internal.write("stream"),this.internal.write(ze+$e+St+ft+Ht),this.internal.write("endstream"),this.internal.write("endobj")},Pe=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Qe.addMetadata=function(He,Ye){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:He,namespaceuri:Ye||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Pe),this.internal.events.subscribe("postPutResources",Se)),this}}(H.API),function(Qe){var Se=Qe.API,Pe=Se.pdfEscape16=function(ze,$e){for(var St,ft=$e.metadata.Unicode.widths,Ht=["","0","00","000","0000"],Er=[""],Fr=0,tn=ze.length;Fr<tn;++Fr){if(St=$e.metadata.characterToGlyph(ze.charCodeAt(Fr)),$e.metadata.glyIdsUsed.push(St),$e.metadata.toUnicode[St]=ze.charCodeAt(Fr),ft.indexOf(St)==-1&&(ft.push(St),ft.push([parseInt($e.metadata.widthOfGlyph(St),10)])),St=="0")return Er.join("");St=St.toString(16),Er.push(Ht[4-St.length],St)}return Er.join("")},He=function($e){var St,ft,Ht,Er,Fr,tn,Zt;for(Fr=`/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`,Ht=[],tn=0,Zt=(ft=Object.keys($e).sort(function(Rn,vn){return Rn-vn})).length;tn<Zt;tn++)St=ft[tn],Ht.length>=100&&(Fr+=`
`+Ht.length+` beginbfchar
`+Ht.join(`
`)+`
endbfchar`,Ht=[]),$e[St]!==void 0&&$e[St]!==null&&typeof $e[St].toString=="function"&&(Er=("0000"+$e[St].toString(16)).slice(-4),St=("0000"+(+St).toString(16)).slice(-4),Ht.push("<"+St+"><"+Er+">"));return Ht.length&&(Fr+=`
`+Ht.length+` beginbfchar
`+Ht.join(`
`)+`
endbfchar
`),Fr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};Se.events.push(["putFont",function(ze){!function($e){var St=$e.font,ft=$e.out,Ht=$e.newObject,Er=$e.putStream;if(St.metadata instanceof Qe.API.TTFFont&&St.encoding==="Identity-H"){for(var Fr=St.metadata.Unicode.widths,tn=St.metadata.subset.encode(St.metadata.glyIdsUsed,1),Zt="",Rn=0;Rn<tn.length;Rn++)Zt+=String.fromCharCode(tn[Rn]);var vn=Ht();Er({data:Zt,addLength1:!0,objectId:vn}),ft("endobj");var Un=Ht();Er({data:He(St.metadata.toUnicode),addLength1:!0,objectId:Un}),ft("endobj");var hn=Ht();ft("<<"),ft("/Type /FontDescriptor"),ft("/FontName /"+B(St.fontName)),ft("/FontFile2 "+vn+" 0 R"),ft("/FontBBox "+Qe.API.PDFObject.convert(St.metadata.bbox)),ft("/Flags "+St.metadata.flags),ft("/StemV "+St.metadata.stemV),ft("/ItalicAngle "+St.metadata.italicAngle),ft("/Ascent "+St.metadata.ascender),ft("/Descent "+St.metadata.decender),ft("/CapHeight "+St.metadata.capHeight),ft(">>"),ft("endobj");var Wr=Ht();ft("<<"),ft("/Type /Font"),ft("/BaseFont /"+B(St.fontName)),ft("/FontDescriptor "+hn+" 0 R"),ft("/W "+Qe.API.PDFObject.convert(Fr)),ft("/CIDToGIDMap /Identity"),ft("/DW 1000"),ft("/Subtype /CIDFontType2"),ft("/CIDSystemInfo"),ft("<<"),ft("/Supplement 0"),ft("/Registry (Adobe)"),ft("/Ordering ("+St.encoding+")"),ft(">>"),ft(">>"),ft("endobj"),St.objectNumber=Ht(),ft("<<"),ft("/Type /Font"),ft("/Subtype /Type0"),ft("/ToUnicode "+Un+" 0 R"),ft("/BaseFont /"+B(St.fontName)),ft("/Encoding /"+St.encoding),ft("/DescendantFonts ["+Wr+" 0 R]"),ft(">>"),ft("endobj"),St.isAlreadyPutted=!0}}(ze)}]),Se.events.push(["putFont",function(ze){!function($e){var St=$e.font,ft=$e.out,Ht=$e.newObject,Er=$e.putStream;if(St.metadata instanceof Qe.API.TTFFont&&St.encoding==="WinAnsiEncoding"){for(var Fr=St.metadata.rawData,tn="",Zt=0;Zt<Fr.length;Zt++)tn+=String.fromCharCode(Fr[Zt]);var Rn=Ht();Er({data:tn,addLength1:!0,objectId:Rn}),ft("endobj");var vn=Ht();Er({data:He(St.metadata.toUnicode),addLength1:!0,objectId:vn}),ft("endobj");var Un=Ht();ft("<<"),ft("/Descent "+St.metadata.decender),ft("/CapHeight "+St.metadata.capHeight),ft("/StemV "+St.metadata.stemV),ft("/Type /FontDescriptor"),ft("/FontFile2 "+Rn+" 0 R"),ft("/Flags 96"),ft("/FontBBox "+Qe.API.PDFObject.convert(St.metadata.bbox)),ft("/FontName /"+B(St.fontName)),ft("/ItalicAngle "+St.metadata.italicAngle),ft("/Ascent "+St.metadata.ascender),ft(">>"),ft("endobj"),St.objectNumber=Ht();for(var hn=0;hn<St.metadata.hmtx.widths.length;hn++)St.metadata.hmtx.widths[hn]=parseInt(St.metadata.hmtx.widths[hn]*(1e3/St.metadata.head.unitsPerEm));ft("<</Subtype/TrueType/Type/Font/ToUnicode "+vn+" 0 R/BaseFont/"+B(St.fontName)+"/FontDescriptor "+Un+" 0 R/Encoding/"+St.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Qe.API.PDFObject.convert(St.metadata.hmtx.widths)+">>"),ft("endobj"),St.isAlreadyPutted=!0}}(ze)}]);var Ye=function($e){var St,ft=$e.text||"",Ht=$e.x,Er=$e.y,Fr=$e.options||{},tn=$e.mutex||{},Zt=tn.pdfEscape,Rn=tn.activeFontKey,vn=tn.fonts,Un=Rn,hn="",Wr=0,Kn="",ei=vn[Un].encoding;if(vn[Un].encoding!=="Identity-H")return{text:ft,x:Ht,y:Er,options:Fr,mutex:tn};for(Kn=ft,Un=Rn,Array.isArray(ft)&&(Kn=ft[0]),Wr=0;Wr<Kn.length;Wr+=1)vn[Un].metadata.hasOwnProperty("cmap")&&(St=vn[Un].metadata.cmap.unicode.codeMap[Kn[Wr].charCodeAt(0)]),St||Kn[Wr].charCodeAt(0)<256&&vn[Un].metadata.hasOwnProperty("Unicode")?hn+=Kn[Wr]:hn+="";var Si="";return parseInt(Un.slice(1))<14||ei==="WinAnsiEncoding"?Si=Zt(hn,Un).split("").map(function(Vr){return Vr.charCodeAt(0).toString(16)}).join(""):ei==="Identity-H"&&(Si=Pe(hn,vn[Un])),tn.isHex=!0,{text:Si,x:Ht,y:Er,options:Fr,mutex:tn}};Se.events.push(["postProcessText",function(ze){var $e=ze.text||"",St=[],ft={text:$e,x:ze.x,y:ze.y,options:ze.options,mutex:ze.mutex};if(Array.isArray($e)){var Ht=0;for(Ht=0;Ht<$e.length;Ht+=1)Array.isArray($e[Ht])&&$e[Ht].length===3?St.push([Ye(Object.assign({},ft,{text:$e[Ht][0]})).text,$e[Ht][1],$e[Ht][2]]):St.push(Ye(Object.assign({},ft,{text:$e[Ht]})).text);ze.text=St}else ze.text=Ye(Object.assign({},ft,{text:$e})).text}])}(H),function(Qe){var Se=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Qe.existsFileInVFS=function(Pe){return Se.call(this),this.internal.vFS[Pe]!==void 0},Qe.addFileToVFS=function(Pe,He){return Se.call(this),this.internal.vFS[Pe]=He,this},Qe.getFileFromVFS=function(Pe){return Se.call(this),this.internal.vFS[Pe]!==void 0?this.internal.vFS[Pe]:null}}(H.API),function(Qe){Qe.__bidiEngine__=Qe.prototype.__bidiEngine__=function(He){var Ye,ze,$e,St,ft,Ht,Er,Fr=Se,tn=[[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]],Zt=[[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]],Rn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},vn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Un=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],hn=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)$/),Wr=!1,Kn=0;this.__bidiEngine__={};var ei=function(Tt){var Lt=Tt.charCodeAt(),_t=Lt>>8,Xt=vn[_t];return Xt!==void 0?Fr[256*Xt+(255&Lt)]:_t===252||_t===253?"AL":hn.test(_t)?"L":_t===8?"R":"N"},Si=function(Tt){for(var Lt,_t=0;_t<Tt.length;_t++){if((Lt=ei(Tt.charAt(_t)))==="L")return!1;if(Lt==="R")return!0}return!1},Vr=function(Tt,Lt,_t,Xt){var er,nr,br,On,bn=Lt[Xt];switch(bn){case"L":case"R":Wr=!1;break;case"N":case"AN":break;case"EN":Wr&&(bn="AN");break;case"AL":Wr=!0,bn="R";break;case"WS":bn="N";break;case"CS":Xt<1||Xt+1>=Lt.length||(er=_t[Xt-1])!=="EN"&&er!=="AN"||(nr=Lt[Xt+1])!=="EN"&&nr!=="AN"?bn="N":Wr&&(nr="AN"),bn=nr===er?nr:"N";break;case"ES":bn=(er=Xt>0?_t[Xt-1]:"B")==="EN"&&Xt+1<Lt.length&&Lt[Xt+1]==="EN"?"EN":"N";break;case"ET":if(Xt>0&&_t[Xt-1]==="EN"){bn="EN";break}if(Wr){bn="N";break}for(br=Xt+1,On=Lt.length;br<On&&Lt[br]==="ET";)br++;bn=br<On&&Lt[br]==="EN"?"EN":"N";break;case"NSM":if($e&&!St){for(On=Lt.length,br=Xt+1;br<On&&Lt[br]==="NSM";)br++;if(br<On){var qn=Tt[Xt],an=qn>=1425&&qn<=2303||qn===64286;if(er=Lt[br],an&&(er==="R"||er==="AL")){bn="R";break}}}bn=Xt<1||(er=Lt[Xt-1])==="B"?"N":_t[Xt-1];break;case"B":Wr=!1,Ye=!0,bn=Kn;break;case"S":ze=!0,bn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Wr=!1;break;case"BN":bn="N"}return bn},fn=function(Tt,Lt,_t){var Xt=Tt.split("");return _t&&kn(Xt,_t,{hiLevel:Kn}),Xt.reverse(),Lt&&Lt.reverse(),Xt.join("")},kn=function(Tt,Lt,_t){var Xt,er,nr,br,On,bn=-1,qn=Tt.length,an=0,_r=[],mn=Kn?Zt:tn,In=[];for(Wr=!1,Ye=!1,ze=!1,er=0;er<qn;er++)In[er]=ei(Tt[er]);for(nr=0;nr<qn;nr++){if(On=an,_r[nr]=Vr(Tt,In,_r,nr),Xt=240&(an=mn[On][Rn[_r[nr]]]),an&=15,Lt[nr]=br=mn[an][5],Xt>0)if(Xt===16){for(er=bn;er<nr;er++)Lt[er]=1;bn=-1}else bn=-1;if(mn[an][6])bn===-1&&(bn=nr);else if(bn>-1){for(er=bn;er<nr;er++)Lt[er]=br;bn=-1}In[nr]==="B"&&(Lt[nr]=0),_t.hiLevel|=br}ze&&function(Wn,Jn,Ei){for(var yi=0;yi<Ei;yi++)if(Wn[yi]==="S"){Jn[yi]=Kn;for(var mi=yi-1;mi>=0&&Wn[mi]==="WS";mi--)Jn[mi]=Kn}}(In,Lt,qn)},It=function(Tt,Lt,_t,Xt,er){if(!(er.hiLevel<Tt)){if(Tt===1&&Kn===1&&!Ye)return Lt.reverse(),void(_t&&_t.reverse());for(var nr,br,On,bn,qn=Lt.length,an=0;an<qn;){if(Xt[an]>=Tt){for(On=an+1;On<qn&&Xt[On]>=Tt;)On++;for(bn=an,br=On-1;bn<br;bn++,br--)nr=Lt[bn],Lt[bn]=Lt[br],Lt[br]=nr,_t&&(nr=_t[bn],_t[bn]=_t[br],_t[br]=nr);an=On}an++}}},yt=function(Tt,Lt,_t){var Xt=Tt.split(""),er={hiLevel:Kn};return _t||(_t=[]),kn(Xt,_t,er),function(nr,br,On){if(On.hiLevel!==0&&Er)for(var bn,qn=0;qn<nr.length;qn++)br[qn]===1&&(bn=Un.indexOf(nr[qn]))>=0&&(nr[qn]=Un[bn+1])}(Xt,_t,er),It(2,Xt,Lt,_t,er),It(1,Xt,Lt,_t,er),Xt.join("")};return this.__bidiEngine__.doBidiReorder=function(xt,Tt,Lt){if(function(Xt,er){if(er)for(var nr=0;nr<Xt.length;nr++)er[nr]=nr;St===void 0&&(St=Si(Xt)),Ht===void 0&&(Ht=Si(Xt))}(xt,Tt),$e||!ft||Ht)if($e&&ft&&St^Ht)Kn=St?1:0,xt=fn(xt,Tt,Lt);else if(!$e&&ft&&Ht)Kn=St?1:0,xt=yt(xt,Tt,Lt),xt=fn(xt,Tt);else if(!$e||St||ft||Ht){if($e&&!ft&&St^Ht)xt=fn(xt,Tt),St?(Kn=0,xt=yt(xt,Tt,Lt)):(Kn=1,xt=yt(xt,Tt,Lt),xt=fn(xt,Tt));else if($e&&St&&!ft&&Ht)Kn=1,xt=yt(xt,Tt,Lt),xt=fn(xt,Tt);else if(!$e&&!ft&&St^Ht){var _t=Er;St?(Kn=1,xt=yt(xt,Tt,Lt),Kn=0,Er=!1,xt=yt(xt,Tt,Lt),Er=_t):(Kn=0,xt=yt(xt,Tt,Lt),xt=fn(xt,Tt),Kn=1,Er=!1,xt=yt(xt,Tt,Lt),Er=_t,xt=fn(xt,Tt))}}else Kn=0,xt=yt(xt,Tt,Lt);else Kn=St?1:0,xt=yt(xt,Tt,Lt);return xt},this.__bidiEngine__.setOptions=function(xt){xt&&($e=xt.isInputVisual,ft=xt.isOutputVisual,St=xt.isInputRtl,Ht=xt.isOutputRtl,Er=xt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(He),this.__bidiEngine__};var Se=["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"],Pe=new Qe.__bidiEngine__({isInputVisual:!0});Qe.API.events.push(["postProcessText",function(He){var Ye=He.text,ze=(He.x,He.y,He.options||{}),$e=(He.mutex,ze.lang,[]);if(ze.isInputVisual=typeof ze.isInputVisual!="boolean"||ze.isInputVisual,Pe.setOptions(ze),Object.prototype.toString.call(Ye)==="[object Array]"){var St=0;for($e=[],St=0;St<Ye.length;St+=1)Object.prototype.toString.call(Ye[St])==="[object Array]"?$e.push([Pe.doBidiReorder(Ye[St][0]),Ye[St][1],Ye[St][2]]):$e.push([Pe.doBidiReorder(Ye[St])]);He.text=$e}else He.text=Pe.doBidiReorder(Ye);Pe.setOptions({isInputVisual:!0})}])}(H),H.API.TTFFont=function(){function Qe(Se){var Pe;if(this.rawData=Se,Pe=this.contents=new Nt(Se),this.contents.pos=4,Pe.readString(4)==="ttcf")throw new Error("TTCF not supported.");Pe.pos=0,this.parse(),this.subset=new Ni(this),this.registerTTF()}return Qe.open=function(Se){return new Qe(Se)},Qe.prototype.parse=function(){return this.directory=new ot(this.contents),this.head=new Pt(this),this.name=new yr(this),this.cmap=new Bt(this),this.toUnicode={},this.hhea=new wt(this),this.maxp=new en(this),this.hmtx=new sn(this),this.post=new Nr(this),this.os2=new Mt(this),this.loca=new gi(this),this.glyf=new jn(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]},Qe.prototype.registerTTF=function(){var Se,Pe,He,Ye,ze;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var $e,St,ft,Ht;for(Ht=[],$e=0,St=(ft=this.bbox).length;$e<St;$e++)Se=ft[$e],Ht.push(Math.round(Se*this.scaleFactor));return Ht}.call(this),this.stemV=0,this.post.exists?(He=255&(Ye=this.post.italic_angle),(32768&(Pe=Ye>>16))!=0&&(Pe=-(1+(65535^Pe))),this.italicAngle=+(Pe+"."+He)):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=(ze=this.familyClass)===1||ze===2||ze===3||ze===4||ze===5||ze===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")},Qe.prototype.characterToGlyph=function(Se){var Pe;return((Pe=this.cmap.unicode)!=null?Pe.codeMap[Se]:void 0)||0},Qe.prototype.widthOfGlyph=function(Se){var Pe;return Pe=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Se).advance*Pe},Qe.prototype.widthOfString=function(Se,Pe,He){var Ye,ze,$e,St;for($e=0,ze=0,St=(Se=""+Se).length;0<=St?ze<St:ze>St;ze=0<=St?++ze:--ze)Ye=Se.charCodeAt(ze),$e+=this.widthOfGlyph(this.characterToGlyph(Ye))+He*(1e3/Pe)||0;return $e*(Pe/1e3)},Qe.prototype.lineHeight=function(Se,Pe){var He;return Pe==null&&(Pe=!1),He=Pe?this.lineGap:0,(this.ascender+He-this.decender)/1e3*Se},Qe}();var on,Nt=function(){function Qe(Se){this.data=Se!=null?Se:[],this.pos=0,this.length=this.data.length}return Qe.prototype.readByte=function(){return this.data[this.pos++]},Qe.prototype.writeByte=function(Se){return this.data[this.pos++]=Se},Qe.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Qe.prototype.writeUInt32=function(Se){return this.writeByte(Se>>>24&255),this.writeByte(Se>>16&255),this.writeByte(Se>>8&255),this.writeByte(255&Se)},Qe.prototype.readInt32=function(){var Se;return(Se=this.readUInt32())>=2147483648?Se-4294967296:Se},Qe.prototype.writeInt32=function(Se){return Se<0&&(Se+=4294967296),this.writeUInt32(Se)},Qe.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Qe.prototype.writeUInt16=function(Se){return this.writeByte(Se>>8&255),this.writeByte(255&Se)},Qe.prototype.readInt16=function(){var Se;return(Se=this.readUInt16())>=32768?Se-65536:Se},Qe.prototype.writeInt16=function(Se){return Se<0&&(Se+=65536),this.writeUInt16(Se)},Qe.prototype.readString=function(Se){var Pe,He;for(He=[],Pe=0;0<=Se?Pe<Se:Pe>Se;Pe=0<=Se?++Pe:--Pe)He[Pe]=String.fromCharCode(this.readByte());return He.join("")},Qe.prototype.writeString=function(Se){var Pe,He,Ye;for(Ye=[],Pe=0,He=Se.length;0<=He?Pe<He:Pe>He;Pe=0<=He?++Pe:--Pe)Ye.push(this.writeByte(Se.charCodeAt(Pe)));return Ye},Qe.prototype.readShort=function(){return this.readInt16()},Qe.prototype.writeShort=function(Se){return this.writeInt16(Se)},Qe.prototype.readLongLong=function(){var Se,Pe,He,Ye,ze,$e,St,ft;return Se=this.readByte(),Pe=this.readByte(),He=this.readByte(),Ye=this.readByte(),ze=this.readByte(),$e=this.readByte(),St=this.readByte(),ft=this.readByte(),128&Se?-1*(72057594037927940*(255^Se)+281474976710656*(255^Pe)+1099511627776*(255^He)+4294967296*(255^Ye)+16777216*(255^ze)+65536*(255^$e)+256*(255^St)+(255^ft)+1):72057594037927940*Se+281474976710656*Pe+1099511627776*He+4294967296*Ye+16777216*ze+65536*$e+256*St+ft},Qe.prototype.writeLongLong=function(Se){var Pe,He;return Pe=Math.floor(Se/4294967296),He=4294967295&Se,this.writeByte(Pe>>24&255),this.writeByte(Pe>>16&255),this.writeByte(Pe>>8&255),this.writeByte(255&Pe),this.writeByte(He>>24&255),this.writeByte(He>>16&255),this.writeByte(He>>8&255),this.writeByte(255&He)},Qe.prototype.readInt=function(){return this.readInt32()},Qe.prototype.writeInt=function(Se){return this.writeInt32(Se)},Qe.prototype.read=function(Se){var Pe,He;for(Pe=[],He=0;0<=Se?He<Se:He>Se;He=0<=Se?++He:--He)Pe.push(this.readByte());return Pe},Qe.prototype.write=function(Se){var Pe,He,Ye,ze;for(ze=[],He=0,Ye=Se.length;He<Ye;He++)Pe=Se[He],ze.push(this.writeByte(Pe));return ze},Qe}(),ot=function(){var Qe;function Se(Pe){var He,Ye,ze;for(this.scalarType=Pe.readInt(),this.tableCount=Pe.readShort(),this.searchRange=Pe.readShort(),this.entrySelector=Pe.readShort(),this.rangeShift=Pe.readShort(),this.tables={},Ye=0,ze=this.tableCount;0<=ze?Ye<ze:Ye>ze;Ye=0<=ze?++Ye:--Ye)He={tag:Pe.readString(4),checksum:Pe.readInt(),offset:Pe.readInt(),length:Pe.readInt()},this.tables[He.tag]=He}return Se.prototype.encode=function(Pe){var He,Ye,ze,$e,St,ft,Ht,Er,Fr,tn,Zt,Rn,vn;for(vn in Zt=Object.keys(Pe).length,ft=Math.log(2),Fr=16*Math.floor(Math.log(Zt)/ft),$e=Math.floor(Fr/ft),Er=16*Zt-Fr,(Ye=new Nt).writeInt(this.scalarType),Ye.writeShort(Zt),Ye.writeShort(Fr),Ye.writeShort($e),Ye.writeShort(Er),ze=16*Zt,Ht=Ye.pos+ze,St=null,Rn=[],Pe)for(tn=Pe[vn],Ye.writeString(vn),Ye.writeInt(Qe(tn)),Ye.writeInt(Ht),Ye.writeInt(tn.length),Rn=Rn.concat(tn),vn==="head"&&(St=Ht),Ht+=tn.length;Ht%4;)Rn.push(0),Ht++;return Ye.write(Rn),He=2981146554-Qe(Ye.data),Ye.pos=St+8,Ye.writeUInt32(He),Ye.data},Qe=function(He){var Ye,ze,$e,St;for(He=Vn.call(He);He.length%4;)He.push(0);for($e=new Nt(He),ze=0,Ye=0,St=He.length;Ye<St;Ye=Ye+=4)ze+=$e.readUInt32();return 4294967295&ze},Se}(),dt={}.hasOwnProperty,Yt=function(Se,Pe){for(var He in Pe)dt.call(Pe,He)&&(Se[He]=Pe[He]);function Ye(){this.constructor=Se}return Ye.prototype=Pe.prototype,Se.prototype=new Ye,Se.__super__=Pe.prototype,Se};on=function(){function Qe(Se){var Pe;this.file=Se,Pe=this.file.directory.tables[this.tag],this.exists=!!Pe,Pe&&(this.offset=Pe.offset,this.length=Pe.length,this.parse(this.file.contents))}return Qe.prototype.parse=function(){},Qe.prototype.encode=function(){},Qe.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Qe}();var Pt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="head",Se.prototype.parse=function(Pe){return Pe.pos=this.offset,this.version=Pe.readInt(),this.revision=Pe.readInt(),this.checkSumAdjustment=Pe.readInt(),this.magicNumber=Pe.readInt(),this.flags=Pe.readShort(),this.unitsPerEm=Pe.readShort(),this.created=Pe.readLongLong(),this.modified=Pe.readLongLong(),this.xMin=Pe.readShort(),this.yMin=Pe.readShort(),this.xMax=Pe.readShort(),this.yMax=Pe.readShort(),this.macStyle=Pe.readShort(),this.lowestRecPPEM=Pe.readShort(),this.fontDirectionHint=Pe.readShort(),this.indexToLocFormat=Pe.readShort(),this.glyphDataFormat=Pe.readShort()},Se.prototype.encode=function(Pe){var He;return(He=new Nt).writeInt(this.version),He.writeInt(this.revision),He.writeInt(this.checkSumAdjustment),He.writeInt(this.magicNumber),He.writeShort(this.flags),He.writeShort(this.unitsPerEm),He.writeLongLong(this.created),He.writeLongLong(this.modified),He.writeShort(this.xMin),He.writeShort(this.yMin),He.writeShort(this.xMax),He.writeShort(this.yMax),He.writeShort(this.macStyle),He.writeShort(this.lowestRecPPEM),He.writeShort(this.fontDirectionHint),He.writeShort(Pe),He.writeShort(this.glyphDataFormat),He.data},Se}(),Et=function(){function Qe(Se,Pe){var He,Ye,ze,$e,St,ft,Ht,Er,Fr,tn,Zt,Rn,vn,Un,hn,Wr,Kn;switch(this.platformID=Se.readUInt16(),this.encodingID=Se.readShort(),this.offset=Pe+Se.readInt(),Fr=Se.pos,Se.pos=this.offset,this.format=Se.readUInt16(),this.length=Se.readUInt16(),this.language=Se.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(ft=0;ft<256;++ft)this.codeMap[ft]=Se.readByte();break;case 4:for(Zt=Se.readUInt16(),tn=Zt/2,Se.pos+=6,ze=function(){var ei,Si;for(Si=[],ft=ei=0;0<=tn?ei<tn:ei>tn;ft=0<=tn?++ei:--ei)Si.push(Se.readUInt16());return Si}(),Se.pos+=2,vn=function(){var ei,Si;for(Si=[],ft=ei=0;0<=tn?ei<tn:ei>tn;ft=0<=tn?++ei:--ei)Si.push(Se.readUInt16());return Si}(),Ht=function(){var ei,Si;for(Si=[],ft=ei=0;0<=tn?ei<tn:ei>tn;ft=0<=tn?++ei:--ei)Si.push(Se.readUInt16());return Si}(),Er=function(){var ei,Si;for(Si=[],ft=ei=0;0<=tn?ei<tn:ei>tn;ft=0<=tn?++ei:--ei)Si.push(Se.readUInt16());return Si}(),Ye=(this.length-Se.pos+this.offset)/2,St=function(){var ei,Si;for(Si=[],ft=ei=0;0<=Ye?ei<Ye:ei>Ye;ft=0<=Ye?++ei:--ei)Si.push(Se.readUInt16());return Si}(),ft=hn=0,Kn=ze.length;hn<Kn;ft=++hn)for(Un=ze[ft],He=Wr=Rn=vn[ft];Rn<=Un?Wr<=Un:Wr>=Un;He=Rn<=Un?++Wr:--Wr)Er[ft]===0?$e=He+Ht[ft]:($e=St[Er[ft]/2+(He-Rn)-(tn-ft)]||0)!==0&&($e+=Ht[ft]),this.codeMap[He]=65535&$e}Se.pos=Fr}return Qe.encode=function(Se,Pe){var He,Ye,ze,$e,St,ft,Ht,Er,Fr,tn,Zt,Rn,vn,Un,hn,Wr,Kn,ei,Si,Vr,fn,kn,It,yt,xt,Tt,Lt,_t,Xt,er,nr,br,On,bn,qn,an,_r,mn,In,Wn,Jn,Ei,yi,mi,Vi,la;switch(_t=new Nt,$e=Object.keys(Se).sort(function(Gi,ia){return Gi-ia}),Pe){case"macroman":for(vn=0,Un=function(){var Gi=[];for(Rn=0;Rn<256;++Rn)Gi.push(0);return Gi}(),Wr={0:0},ze={},Xt=0,On=$e.length;Xt<On;Xt++)Wr[yi=Se[Ye=$e[Xt]]]==null&&(Wr[yi]=++vn),ze[Ye]={old:Se[Ye],new:Wr[Se[Ye]]},Un[Ye]=Wr[Se[Ye]];return _t.writeUInt16(1),_t.writeUInt16(0),_t.writeUInt32(12),_t.writeUInt16(0),_t.writeUInt16(262),_t.writeUInt16(0),_t.write(Un),{charMap:ze,subtable:_t.data,maxGlyphID:vn+1};case"unicode":for(Tt=[],Fr=[],Kn=0,Wr={},He={},hn=Ht=null,er=0,bn=$e.length;er<bn;er++)Wr[Si=Se[Ye=$e[er]]]==null&&(Wr[Si]=++Kn),He[Ye]={old:Si,new:Wr[Si]},St=Wr[Si]-Ye,hn!=null&&St===Ht||(hn&&Fr.push(hn),Tt.push(Ye),Ht=St),hn=Ye;for(hn&&Fr.push(hn),Fr.push(65535),Tt.push(65535),yt=2*(It=Tt.length),kn=2*Math.pow(Math.log(It)/Math.LN2,2),tn=Math.log(kn/2)/Math.LN2,fn=2*It-kn,ft=[],Vr=[],Zt=[],Rn=nr=0,qn=Tt.length;nr<qn;Rn=++nr){if(xt=Tt[Rn],Er=Fr[Rn],xt===65535){ft.push(0),Vr.push(0);break}if(xt-(Lt=He[xt].new)>=32768)for(ft.push(0),Vr.push(2*(Zt.length+It-Rn)),Ye=br=xt;xt<=Er?br<=Er:br>=Er;Ye=xt<=Er?++br:--br)Zt.push(He[Ye].new);else ft.push(Lt-xt),Vr.push(0)}for(_t.writeUInt16(3),_t.writeUInt16(1),_t.writeUInt32(12),_t.writeUInt16(4),_t.writeUInt16(16+8*It+2*Zt.length),_t.writeUInt16(0),_t.writeUInt16(yt),_t.writeUInt16(kn),_t.writeUInt16(tn),_t.writeUInt16(fn),Jn=0,an=Fr.length;Jn<an;Jn++)Ye=Fr[Jn],_t.writeUInt16(Ye);for(_t.writeUInt16(0),Ei=0,_r=Tt.length;Ei<_r;Ei++)Ye=Tt[Ei],_t.writeUInt16(Ye);for(mi=0,mn=ft.length;mi<mn;mi++)St=ft[mi],_t.writeUInt16(St);for(Vi=0,In=Vr.length;Vi<In;Vi++)ei=Vr[Vi],_t.writeUInt16(ei);for(la=0,Wn=Zt.length;la<Wn;la++)vn=Zt[la],_t.writeUInt16(vn);return{charMap:He,subtable:_t.data,maxGlyphID:Kn+1}}},Qe}(),Bt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="cmap",Se.prototype.parse=function(Pe){var He,Ye,ze;for(Pe.pos=this.offset,this.version=Pe.readUInt16(),ze=Pe.readUInt16(),this.tables=[],this.unicode=null,Ye=0;0<=ze?Ye<ze:Ye>ze;Ye=0<=ze?++Ye:--Ye)He=new Et(Pe,this.offset),this.tables.push(He),He.isUnicode&&this.unicode==null&&(this.unicode=He);return!0},Se.encode=function(Pe,He){var Ye,ze;return He==null&&(He="macroman"),Ye=Et.encode(Pe,He),(ze=new Nt).writeUInt16(0),ze.writeUInt16(1),Ye.table=ze.data.concat(Ye.subtable),Ye},Se}(),wt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="hhea",Se.prototype.parse=function(Pe){return Pe.pos=this.offset,this.version=Pe.readInt(),this.ascender=Pe.readShort(),this.decender=Pe.readShort(),this.lineGap=Pe.readShort(),this.advanceWidthMax=Pe.readShort(),this.minLeftSideBearing=Pe.readShort(),this.minRightSideBearing=Pe.readShort(),this.xMaxExtent=Pe.readShort(),this.caretSlopeRise=Pe.readShort(),this.caretSlopeRun=Pe.readShort(),this.caretOffset=Pe.readShort(),Pe.pos+=8,this.metricDataFormat=Pe.readShort(),this.numberOfMetrics=Pe.readUInt16()},Se}(),Mt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="OS/2",Se.prototype.parse=function(Pe){if(Pe.pos=this.offset,this.version=Pe.readUInt16(),this.averageCharWidth=Pe.readShort(),this.weightClass=Pe.readUInt16(),this.widthClass=Pe.readUInt16(),this.type=Pe.readShort(),this.ySubscriptXSize=Pe.readShort(),this.ySubscriptYSize=Pe.readShort(),this.ySubscriptXOffset=Pe.readShort(),this.ySubscriptYOffset=Pe.readShort(),this.ySuperscriptXSize=Pe.readShort(),this.ySuperscriptYSize=Pe.readShort(),this.ySuperscriptXOffset=Pe.readShort(),this.ySuperscriptYOffset=Pe.readShort(),this.yStrikeoutSize=Pe.readShort(),this.yStrikeoutPosition=Pe.readShort(),this.familyClass=Pe.readShort(),this.panose=function(){var He,Ye;for(Ye=[],He=0;He<10;++He)Ye.push(Pe.readByte());return Ye}(),this.charRange=function(){var He,Ye;for(Ye=[],He=0;He<4;++He)Ye.push(Pe.readInt());return Ye}(),this.vendorID=Pe.readString(4),this.selection=Pe.readShort(),this.firstCharIndex=Pe.readShort(),this.lastCharIndex=Pe.readShort(),this.version>0&&(this.ascent=Pe.readShort(),this.descent=Pe.readShort(),this.lineGap=Pe.readShort(),this.winAscent=Pe.readShort(),this.winDescent=Pe.readShort(),this.codePageRange=function(){var He,Ye;for(Ye=[],He=0;He<2;He=++He)Ye.push(Pe.readInt());return Ye}(),this.version>1))return this.xHeight=Pe.readShort(),this.capHeight=Pe.readShort(),this.defaultChar=Pe.readShort(),this.breakChar=Pe.readShort(),this.maxContext=Pe.readShort()},Se}(),Nr=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="post",Se.prototype.parse=function(Pe){var He,Ye,ze;switch(Pe.pos=this.offset,this.format=Pe.readInt(),this.italicAngle=Pe.readInt(),this.underlinePosition=Pe.readShort(),this.underlineThickness=Pe.readShort(),this.isFixedPitch=Pe.readInt(),this.minMemType42=Pe.readInt(),this.maxMemType42=Pe.readInt(),this.minMemType1=Pe.readInt(),this.maxMemType1=Pe.readInt(),this.format){case 65536:break;case 131072:var $e;for(Ye=Pe.readUInt16(),this.glyphNameIndex=[],$e=0;0<=Ye?$e<Ye:$e>Ye;$e=0<=Ye?++$e:--$e)this.glyphNameIndex.push(Pe.readUInt16());for(this.names=[],ze=[];Pe.pos<this.offset+this.length;)He=Pe.readByte(),ze.push(this.names.push(Pe.readString(He)));return ze;case 151552:return Ye=Pe.readUInt16(),this.offsets=Pe.read(Ye);case 196608:break;case 262144:return this.map=function(){var St,ft,Ht;for(Ht=[],$e=St=0,ft=this.file.maxp.numGlyphs;0<=ft?St<ft:St>ft;$e=0<=ft?++St:--St)Ht.push(Pe.readUInt32());return Ht}.call(this)}},Se}(),Tr=function(Se,Pe){this.raw=Se,this.length=Se.length,this.platformID=Pe.platformID,this.encodingID=Pe.encodingID,this.languageID=Pe.languageID},yr=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="name",Se.prototype.parse=function(Pe){var He,Ye,ze,$e,St,ft,Ht,Er,Fr,tn,Zt;for(Pe.pos=this.offset,Pe.readShort(),He=Pe.readShort(),ft=Pe.readShort(),Ye=[],$e=0;0<=He?$e<He:$e>He;$e=0<=He?++$e:--$e)Ye.push({platformID:Pe.readShort(),encodingID:Pe.readShort(),languageID:Pe.readShort(),nameID:Pe.readShort(),length:Pe.readShort(),offset:this.offset+ft+Pe.readShort()});for(Ht={},$e=Fr=0,tn=Ye.length;Fr<tn;$e=++Fr)ze=Ye[$e],Pe.pos=ze.offset,Er=Pe.readString(ze.length),St=new Tr(Er,ze),Ht[Zt=ze.nameID]==null&&(Ht[Zt]=[]),Ht[ze.nameID].push(St);this.strings=Ht,this.copyright=Ht[0],this.fontFamily=Ht[1],this.fontSubfamily=Ht[2],this.uniqueSubfamily=Ht[3],this.fontName=Ht[4],this.version=Ht[5];try{this.postscriptName=Ht[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Rn){this.postscriptName=Ht[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ht[7],this.manufacturer=Ht[8],this.designer=Ht[9],this.description=Ht[10],this.vendorUrl=Ht[11],this.designerUrl=Ht[12],this.license=Ht[13],this.licenseUrl=Ht[14],this.preferredFamily=Ht[15],this.preferredSubfamily=Ht[17],this.compatibleFull=Ht[18],this.sampleText=Ht[19]},Se}(),en=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="maxp",Se.prototype.parse=function(Pe){return Pe.pos=this.offset,this.version=Pe.readInt(),this.numGlyphs=Pe.readUInt16(),this.maxPoints=Pe.readUInt16(),this.maxContours=Pe.readUInt16(),this.maxCompositePoints=Pe.readUInt16(),this.maxComponentContours=Pe.readUInt16(),this.maxZones=Pe.readUInt16(),this.maxTwilightPoints=Pe.readUInt16(),this.maxStorage=Pe.readUInt16(),this.maxFunctionDefs=Pe.readUInt16(),this.maxInstructionDefs=Pe.readUInt16(),this.maxStackElements=Pe.readUInt16(),this.maxSizeOfInstructions=Pe.readUInt16(),this.maxComponentElements=Pe.readUInt16(),this.maxComponentDepth=Pe.readUInt16()},Se}(),sn=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="hmtx",Se.prototype.parse=function(Pe){var He,Ye,ze,$e,St,ft,Ht;for(Pe.pos=this.offset,this.metrics=[],He=0,ft=this.file.hhea.numberOfMetrics;0<=ft?He<ft:He>ft;He=0<=ft?++He:--He)this.metrics.push({advance:Pe.readUInt16(),lsb:Pe.readInt16()});for(ze=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Er,Fr;for(Fr=[],He=Er=0;0<=ze?Er<ze:Er>ze;He=0<=ze?++Er:--Er)Fr.push(Pe.readInt16());return Fr}(),this.widths=function(){var Er,Fr,tn,Zt;for(Zt=[],Er=0,Fr=(tn=this.metrics).length;Er<Fr;Er++)$e=tn[Er],Zt.push($e.advance);return Zt}.call(this),Ye=this.widths[this.widths.length-1],Ht=[],He=St=0;0<=ze?St<ze:St>ze;He=0<=ze?++St:--St)Ht.push(this.widths.push(Ye));return Ht},Se.prototype.forGlyph=function(Pe){return Pe in this.metrics?this.metrics[Pe]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Pe-this.metrics.length]}},Se}(),Vn=[].slice,jn=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="glyf",Se.prototype.parse=function(){return this.cache={}},Se.prototype.glyphFor=function(Pe){var He,Ye,ze,$e,St,ft,Ht,Er,Fr,tn;return Pe in this.cache?this.cache[Pe]:($e=this.file.loca,He=this.file.contents,Ye=$e.indexOf(Pe),(ze=$e.lengthOf(Pe))===0?this.cache[Pe]=null:(He.pos=this.offset+Ye,St=(ft=new Nt(He.read(ze))).readShort(),Er=ft.readShort(),tn=ft.readShort(),Ht=ft.readShort(),Fr=ft.readShort(),this.cache[Pe]=St===-1?new ci(ft,Er,tn,Ht,Fr):new ri(ft,St,Er,tn,Ht,Fr),this.cache[Pe]))},Se.prototype.encode=function(Pe,He,Ye){var ze,$e,St,ft,Ht;for(St=[],$e=[],ft=0,Ht=He.length;ft<Ht;ft++)ze=Pe[He[ft]],$e.push(St.length),ze&&(St=St.concat(ze.encode(Ye)));return $e.push(St.length),{table:St,offsets:$e}},Se}(),ri=function(){function Qe(Se,Pe,He,Ye,ze,$e){this.raw=Se,this.numberOfContours=Pe,this.xMin=He,this.yMin=Ye,this.xMax=ze,this.yMax=$e,this.compound=!1}return Qe.prototype.encode=function(){return this.raw.data},Qe}(),ci=function(){function Qe(Se,Pe,He,Ye,ze){var $e,St;for(this.raw=Se,this.xMin=Pe,this.yMin=He,this.xMax=Ye,this.yMax=ze,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],$e=this.raw;St=$e.readShort(),this.glyphOffsets.push($e.pos),this.glyphIDs.push($e.readUInt16()),32&St;)$e.pos+=1&St?4:2,128&St?$e.pos+=8:64&St?$e.pos+=4:8&St&&($e.pos+=2)}return Qe.prototype.encode=function(){var Se,Pe,He;for(Pe=new Nt(Vn.call(this.raw.data)),Se=0,He=this.glyphIDs.length;Se<He;++Se)Pe.pos=this.glyphOffsets[Se];return Pe.data},Qe}(),gi=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return Yt(Se,on),Se.prototype.tag="loca",Se.prototype.parse=function(Pe){var He,Ye;return Pe.pos=this.offset,He=this.file.head.indexToLocFormat,this.offsets=He===0?function(){var ze,$e;for($e=[],Ye=0,ze=this.length;Ye<ze;Ye+=2)$e.push(2*Pe.readUInt16());return $e}.call(this):function(){var ze,$e;for($e=[],Ye=0,ze=this.length;Ye<ze;Ye+=4)$e.push(Pe.readUInt32());return $e}.call(this)},Se.prototype.indexOf=function(Pe){return this.offsets[Pe]},Se.prototype.lengthOf=function(Pe){return this.offsets[Pe+1]-this.offsets[Pe]},Se.prototype.encode=function(Pe,He){for(var Ye=new Uint32Array(this.offsets.length),ze=0,$e=0,St=0;St<Ye.length;++St)if(Ye[St]=ze,$e<He.length&&He[$e]==St){++$e,Ye[St]=ze;var ft=this.offsets[St],Ht=this.offsets[St+1]-ft;Ht>0&&(ze+=Ht)}for(var Er=new Array(4*Ye.length),Fr=0;Fr<Ye.length;++Fr)Er[4*Fr+3]=255&Ye[Fr],Er[4*Fr+2]=(65280&Ye[Fr])>>8,Er[4*Fr+1]=(16711680&Ye[Fr])>>16,Er[4*Fr]=(4278190080&Ye[Fr])>>24;return Er},Se}(),Ni=function(){function Qe(Se){this.font=Se,this.subset={},this.unicodes={},this.next=33}return Qe.prototype.generateCmap=function(){var Se,Pe,He,Ye,ze;for(Pe in Ye=this.font.cmap.tables[0].codeMap,Se={},ze=this.subset)He=ze[Pe],Se[Pe]=Ye[He];return Se},Qe.prototype.glyphsFor=function(Se){var Pe,He,Ye,ze,$e,St,ft;for(Ye={},$e=0,St=Se.length;$e<St;$e++)Ye[ze=Se[$e]]=this.font.glyf.glyphFor(ze);for(ze in Pe=[],Ye)((He=Ye[ze])!=null?He.compound:void 0)&&Pe.push.apply(Pe,He.glyphIDs);if(Pe.length>0)for(ze in ft=this.glyphsFor(Pe))He=ft[ze],Ye[ze]=He;return Ye},Qe.prototype.encode=function(Se,Pe){var He,Ye,ze,$e,St,ft,Ht,Er,Fr,tn,Zt,Rn,vn,Un,hn;for(Ye in He=Bt.encode(this.generateCmap(),"unicode"),$e=this.glyphsFor(Se),Zt={0:0},hn=He.charMap)Zt[(ft=hn[Ye]).old]=ft.new;for(Rn in tn=He.maxGlyphID,$e)Rn in Zt||(Zt[Rn]=tn++);return Er=function(Wr){var Kn,ei;for(Kn in ei={},Wr)ei[Wr[Kn]]=Kn;return ei}(Zt),Fr=Object.keys(Er).sort(function(Wr,Kn){return Wr-Kn}),vn=function(){var Wr,Kn,ei;for(ei=[],Wr=0,Kn=Fr.length;Wr<Kn;Wr++)St=Fr[Wr],ei.push(Er[St]);return ei}(),ze=this.font.glyf.encode($e,vn,Zt),Ht=this.font.loca.encode(ze.offsets,vn),Un={cmap:this.font.cmap.raw(),glyf:ze.table,loca:Ht,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(Pe)},this.font.os2.exists&&(Un["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Un)},Qe}();H.API.PDFObject=function(){var Qe;function Se(){}return Qe=function(He,Ye){return(Array(Ye+1).join("0")+He).slice(-Ye)},Se.convert=function(Pe){var He,Ye,ze,$e;if(Array.isArray(Pe))return"["+function(){var St,ft,Ht;for(Ht=[],St=0,ft=Pe.length;St<ft;St++)He=Pe[St],Ht.push(Se.convert(He));return Ht}().join(" ")+"]";if(typeof Pe=="string")return"/"+Pe;if(Pe!=null?Pe.isString:void 0)return"("+Pe+")";if(Pe instanceof Date)return"(D:"+Qe(Pe.getUTCFullYear(),4)+Qe(Pe.getUTCMonth(),2)+Qe(Pe.getUTCDate(),2)+Qe(Pe.getUTCHours(),2)+Qe(Pe.getUTCMinutes(),2)+Qe(Pe.getUTCSeconds(),2)+"Z)";if({}.toString.call(Pe)==="[object Object]"){for(Ye in ze=["<<"],Pe)$e=Pe[Ye],ze.push("/"+Ye+" "+Se.convert($e));return ze.push(">>"),ze.join(`
`)}return""+Pe},Se}(),D.default=H}.call(this,i("yLpj"))},e4Nc:function(k,D,i){var y=i("fGT3"),p=i("k+1r"),S=i("JHgL"),v=i("pSRY"),m=i("H8j4");function f(d){var u=-1,o=d==null?0:d.length;for(this.clear();++u<o;){var n=d[u];this.set(n[0],n[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=S,f.prototype.has=v,f.prototype.set=m,k.exports=f},e5VY:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("YNAk"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},e5cp:function(k,D,i){var y=i("fmRc"),p=i("or5M"),S=i("HDyB"),v=i("seXi"),m=i("QqLw"),f=i("Z0cm"),d=i("DSRE"),u=i("c6wG"),o=1,n="[object Arguments]",t="[object Array]",a="[object Object]",e=Object.prototype,l=e.hasOwnProperty;function r(s,c,h,g,A,b){var w=f(s),x=f(c),T=w?t:m(s),_=x?t:m(c);T=T==n?a:T,_=_==n?a:_;var E=T==a,C=_==a,I=T==_;if(I&&d(s)){if(!d(c))return!1;w=!0,E=!1}if(I&&!E)return b||(b=new y),w||u(s)?p(s,c,h,g,A,b):S(s,c,T,h,g,A,b);if(!(h&o)){var O=E&&l.call(s,"__wrapped__"),F=C&&l.call(c,"__wrapped__");if(O||F){var R=O?s.value():s,B=F?c.value():c;return b||(b=new y),A(R,B,h,g,b)}}return I?(b||(b=new y),v(s,c,h,g,A,b)):!1}k.exports=r},e7zE:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("lPiR"),i("WYAk"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.Base,m=S.WordArray,f=p.algo,d=f.SHA256,u=f.HMAC,o=f.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:d,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,a){for(var e=this.cfg,l=u.create(e.hasher,t),r=m.create(),s=m.create([1]),c=r.words,h=s.words,g=e.keySize,A=e.iterations;c.length<g;){var b=l.update(a).finalize(s);l.reset();for(var w=b.words,x=w.length,T=b,_=1;_<A;_++){T=l.finalize(T),l.reset();for(var E=T.words,C=0;C<x;C++)w[C]^=E[C]}r.concat(b),h[0]++}return r.sigBytes=g*4,r}});p.PBKDF2=function(n,t,a){return o.create(a).compute(n,t)}}(),y.PBKDF2})},eIcI:function(k,D,i){var y=i("bYtY"),p=i("hM6l");function S(m,f,d){p.call(this,m,f,d),this.type="value",this.angle=0,this.name="",this.model}y.inherits(S,p);var v=S;k.exports=v},eJH7:function(k,D,i){var y=i("bYtY");function p(S){var v=S.polar;if(v){y.isArray(v)||(v=[v]);var m=[];y.each(v,function(f,d){f.indicator?(f.type&&!f.shape&&(f.shape=f.type),S.radar=S.radar||[],y.isArray(S.radar)||(S.radar=[S.radar]),S.radar.push(f)):m.push(f)}),S.polar=m}y.each(S.series,function(f){f&&f.type==="radar"&&f.polarIndex&&(f.radarIndex=f.polarIndex)})}k.exports=p},eP3c:function(k,D,i){"use strict";function y(mt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(et){return typeof et}:y=function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},y(mt)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=ue,D.inflateReset2=ge,D.inflateResetKeep=Ce,D.inflateInit=Je,D.inflateInit2=Oe,D.inflate=Ot,D.inflateEnd=Ut,D.inflateGetHeader=ir,D.inflateSetDictionary=lr,D.inflateInfo=D.Z_DEFLATED=D.Z_BUF_ERROR=D.Z_MEM_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_NEED_DICT=D.Z_STREAM_END=D.Z_OK=D.Z_TREES=D.Z_BLOCK=D.Z_FINISH=void 0;var p=o(i("6BzB")),S=d(i("xlC8")),v=d(i("QV2g")),m=d(i("sjKO")),f=d(i("JSwD"));function d(mt){return mt&&mt.__esModule?mt:{default:mt}}function u(){if(typeof WeakMap!="function")return null;var mt=new WeakMap;return u=function(){return mt},mt}function o(mt){if(mt&&mt.__esModule)return mt;if(mt===null||y(mt)!=="object"&&typeof mt!="function")return{default:mt};var or=u();if(or&&or.has(mt))return or.get(mt);var et={},ur=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qr in mt)if(Object.prototype.hasOwnProperty.call(mt,qr)){var Fe=ur?Object.getOwnPropertyDescriptor(mt,qr):null;Fe&&(Fe.get||Fe.set)?Object.defineProperty(et,qr,Fe):et[qr]=mt[qr]}return et.default=mt,or&&or.set(mt,et),et}var n=0,t=1,a=2,e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=6;D.Z_TREES=r;var s=0;D.Z_OK=s;var c=1;D.Z_STREAM_END=c;var h=2;D.Z_NEED_DICT=h;var g=-2;D.Z_STREAM_ERROR=g;var A=-3;D.Z_DATA_ERROR=A;var b=-4;D.Z_MEM_ERROR=b;var w=-5;D.Z_BUF_ERROR=w;var x=8;D.Z_DEFLATED=x;var T=1,_=2,E=3,C=4,I=5,O=6,F=7,R=8,B=9,P=10,X=11,M=12,z=13,W=14,H=15,V=16,Q=17,G=18,ee=19,q=20,se=21,re=22,Ae=23,Te=24,Re=25,Ge=26,Ue=27,nt=28,Le=29,le=30,Xe=31,pe=32,Z=852,Y=592,ne=15,ce=ne;function ye(mt){return(mt>>>24&255)+(mt>>>8&65280)+((mt&65280)<<8)+((mt&255)<<24)}function Ee(){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 p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ce(mt){var or;return!mt||!mt.state?g:(or=mt.state,mt.total_in=mt.total_out=or.total=0,mt.msg="",or.wrap&&(mt.adler=or.wrap&1),or.mode=T,or.last=0,or.havedict=0,or.dmax=32768,or.head=null,or.hold=0,or.bits=0,or.lencode=or.lendyn=new p.Buf32(Z),or.distcode=or.distdyn=new p.Buf32(Y),or.sane=1,or.back=-1,s)}function ue(mt){var or;return!mt||!mt.state?g:(or=mt.state,or.wsize=0,or.whave=0,or.wnext=0,Ce(mt))}function ge(mt,or){var et,ur;return!mt||!mt.state?g:(ur=mt.state,or<0?(et=0,or=-or):(et=(or>>4)+1,or<48&&(or&=15)),or&&(or<8||or>15)?g:(ur.window!==null&&ur.wbits!==or&&(ur.window=null),ur.wrap=et,ur.wbits=or,ue(mt)))}function Oe(mt,or){var et,ur;return mt?(ur=new Ee,mt.state=ur,ur.window=null,et=ge(mt,or),et!==s&&(mt.state=null),et):g}function Je(mt){return Oe(mt,ce)}var lt=!0,tt,ke;function st(mt){if(lt){var or;for(tt=new p.Buf32(512),ke=new p.Buf32(32),or=0;or<144;)mt.lens[or++]=8;for(;or<256;)mt.lens[or++]=9;for(;or<280;)mt.lens[or++]=7;for(;or<288;)mt.lens[or++]=8;for((0,f.default)(t,mt.lens,0,288,tt,0,mt.work,{bits:9}),or=0;or<32;)mt.lens[or++]=5;(0,f.default)(a,mt.lens,0,32,ke,0,mt.work,{bits:5}),lt=!1}mt.lencode=tt,mt.lenbits=9,mt.distcode=ke,mt.distbits=5}function Ve(mt,or,et,ur){var qr,Fe=mt.state;return Fe.window===null&&(Fe.wsize=1<<Fe.wbits,Fe.wnext=0,Fe.whave=0,Fe.window=new p.Buf8(Fe.wsize)),ur>=Fe.wsize?(p.arraySet(Fe.window,or,et-Fe.wsize,Fe.wsize,0),Fe.wnext=0,Fe.whave=Fe.wsize):(qr=Fe.wsize-Fe.wnext,qr>ur&&(qr=ur),p.arraySet(Fe.window,or,et-ur,qr,Fe.wnext),ur-=qr,ur?(p.arraySet(Fe.window,or,et-ur,ur,0),Fe.wnext=ur,Fe.whave=Fe.wsize):(Fe.wnext+=qr,Fe.wnext===Fe.wsize&&(Fe.wnext=0),Fe.whave<Fe.wsize&&(Fe.whave+=qr))),0}function Ot(mt,or){var et,ur,qr,Fe,$t,Lr,pt,qt,vr,pn,fr,gr,dn,Qt,sr=0,Qr,Cn,Fn,ti,ki,Dn,Bn,Ft,vt=new p.Buf8(4),_e,Ne,Ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!mt||!mt.state||!mt.output||!mt.input&&mt.avail_in!==0)return g;et=mt.state,et.mode===M&&(et.mode=z),$t=mt.next_out,qr=mt.output,pt=mt.avail_out,Fe=mt.next_in,ur=mt.input,Lr=mt.avail_in,qt=et.hold,vr=et.bits,pn=Lr,fr=pt,Ft=s;e:for(;;)switch(et.mode){case T:if(et.wrap===0){et.mode=z;break}for(;vr<16;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(et.wrap&2&&qt===35615){et.check=0,vt[0]=qt&255,vt[1]=qt>>>8&255,et.check=(0,v.default)(et.check,vt,2,0),qt=0,vr=0,et.mode=_;break}if(et.flags=0,et.head&&(et.head.done=!1),!(et.wrap&1)||(((qt&255)<<8)+(qt>>8))%31){mt.msg="incorrect header check",et.mode=le;break}if((qt&15)!==x){mt.msg="unknown compression method",et.mode=le;break}if(qt>>>=4,vr-=4,Bn=(qt&15)+8,et.wbits===0)et.wbits=Bn;else if(Bn>et.wbits){mt.msg="invalid window size",et.mode=le;break}et.dmax=1<<Bn,mt.adler=et.check=1,et.mode=qt&512?P:M,qt=0,vr=0;break;case _:for(;vr<16;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(et.flags=qt,(et.flags&255)!==x){mt.msg="unknown compression method",et.mode=le;break}if(et.flags&57344){mt.msg="unknown header flags set",et.mode=le;break}et.head&&(et.head.text=qt>>8&1),et.flags&512&&(vt[0]=qt&255,vt[1]=qt>>>8&255,et.check=(0,v.default)(et.check,vt,2,0)),qt=0,vr=0,et.mode=E;case E:for(;vr<32;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}et.head&&(et.head.time=qt),et.flags&512&&(vt[0]=qt&255,vt[1]=qt>>>8&255,vt[2]=qt>>>16&255,vt[3]=qt>>>24&255,et.check=(0,v.default)(et.check,vt,4,0)),qt=0,vr=0,et.mode=C;case C:for(;vr<16;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}et.head&&(et.head.xflags=qt&255,et.head.os=qt>>8),et.flags&512&&(vt[0]=qt&255,vt[1]=qt>>>8&255,et.check=(0,v.default)(et.check,vt,2,0)),qt=0,vr=0,et.mode=I;case I:if(et.flags&1024){for(;vr<16;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}et.length=qt,et.head&&(et.head.extra_len=qt),et.flags&512&&(vt[0]=qt&255,vt[1]=qt>>>8&255,et.check=(0,v.default)(et.check,vt,2,0)),qt=0,vr=0}else et.head&&(et.head.extra=null);et.mode=O;case O:if(et.flags&1024&&(gr=et.length,gr>Lr&&(gr=Lr),gr&&(et.head&&(Bn=et.head.extra_len-et.length,et.head.extra||(et.head.extra=new Array(et.head.extra_len)),p.arraySet(et.head.extra,ur,Fe,gr,Bn)),et.flags&512&&(et.check=(0,v.default)(et.check,ur,gr,Fe)),Lr-=gr,Fe+=gr,et.length-=gr),et.length))break e;et.length=0,et.mode=F;case F:if(et.flags&2048){if(Lr===0)break e;gr=0;do Bn=ur[Fe+gr++],et.head&&Bn&&et.length<65536&&(et.head.name+=String.fromCharCode(Bn));while(Bn&&gr<Lr);if(et.flags&512&&(et.check=(0,v.default)(et.check,ur,gr,Fe)),Lr-=gr,Fe+=gr,Bn)break e}else et.head&&(et.head.name=null);et.length=0,et.mode=R;case R:if(et.flags&4096){if(Lr===0)break e;gr=0;do Bn=ur[Fe+gr++],et.head&&Bn&&et.length<65536&&(et.head.comment+=String.fromCharCode(Bn));while(Bn&&gr<Lr);if(et.flags&512&&(et.check=(0,v.default)(et.check,ur,gr,Fe)),Lr-=gr,Fe+=gr,Bn)break e}else et.head&&(et.head.comment=null);et.mode=B;case B:if(et.flags&512){for(;vr<16;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(qt!==(et.check&65535)){mt.msg="header crc mismatch",et.mode=le;break}qt=0,vr=0}et.head&&(et.head.hcrc=et.flags>>9&1,et.head.done=!0),mt.adler=et.check=0,et.mode=M;break;case P:for(;vr<32;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}mt.adler=et.check=ye(qt),qt=0,vr=0,et.mode=X;case X:if(et.havedict===0)return mt.next_out=$t,mt.avail_out=pt,mt.next_in=Fe,mt.avail_in=Lr,et.hold=qt,et.bits=vr,h;mt.adler=et.check=1,et.mode=M;case M:if(or===l||or===r)break e;case z:if(et.last){qt>>>=vr&7,vr-=vr&7,et.mode=Ue;break}for(;vr<3;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}et.last=qt&1,qt>>>=1,vr-=1;switch(qt&3){case 0:et.mode=W;break;case 1:if(st(et),et.mode=q,or===r){qt>>>=2,vr-=2;break e}break;case 2:et.mode=Q;break;case 3:mt.msg="invalid block type",et.mode=le}qt>>>=2,vr-=2;break;case W:for(qt>>>=vr&7,vr-=vr&7;vr<32;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if((qt&65535)!==(qt>>>16^65535)){mt.msg="invalid stored block lengths",et.mode=le;break}if(et.length=qt&65535,qt=0,vr=0,et.mode=H,or===r)break e;case H:et.mode=V;case V:if(gr=et.length,gr){if(gr>Lr&&(gr=Lr),gr>pt&&(gr=pt),gr===0)break e;p.arraySet(qr,ur,Fe,gr,$t),Lr-=gr,Fe+=gr,pt-=gr,$t+=gr,et.length-=gr;break}et.mode=M;break;case Q:for(;vr<14;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(et.nlen=(qt&31)+257,qt>>>=5,vr-=5,et.ndist=(qt&31)+1,qt>>>=5,vr-=5,et.ncode=(qt&15)+4,qt>>>=4,vr-=4,et.nlen>286||et.ndist>30){mt.msg="too many length or distance symbols",et.mode=le;break}et.have=0,et.mode=G;case G:for(;et.have<et.ncode;){for(;vr<3;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}et.lens[Ie[et.have++]]=qt&7,qt>>>=3,vr-=3}for(;et.have<19;)et.lens[Ie[et.have++]]=0;if(et.lencode=et.lendyn,et.lenbits=7,_e={bits:et.lenbits},Ft=(0,f.default)(n,et.lens,0,19,et.lencode,0,et.work,_e),et.lenbits=_e.bits,Ft){mt.msg="invalid code lengths set",et.mode=le;break}et.have=0,et.mode=ee;case ee:for(;et.have<et.nlen+et.ndist;){for(;!(sr=et.lencode[qt&(1<<et.lenbits)-1],Qr=sr>>>24,Cn=sr>>>16&255,Fn=sr&65535,Qr<=vr);){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(Fn<16)qt>>>=Qr,vr-=Qr,et.lens[et.have++]=Fn;else{if(Fn===16){for(Ne=Qr+2;vr<Ne;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(qt>>>=Qr,vr-=Qr,et.have===0){mt.msg="invalid bit length repeat",et.mode=le;break}Bn=et.lens[et.have-1],gr=3+(qt&3),qt>>>=2,vr-=2}else if(Fn===17){for(Ne=Qr+3;vr<Ne;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}qt>>>=Qr,vr-=Qr,Bn=0,gr=3+(qt&7),qt>>>=3,vr-=3}else{for(Ne=Qr+7;vr<Ne;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}qt>>>=Qr,vr-=Qr,Bn=0,gr=11+(qt&127),qt>>>=7,vr-=7}if(et.have+gr>et.nlen+et.ndist){mt.msg="invalid bit length repeat",et.mode=le;break}for(;gr--;)et.lens[et.have++]=Bn}}if(et.mode===le)break;if(et.lens[256]===0){mt.msg="invalid code -- missing end-of-block",et.mode=le;break}if(et.lenbits=9,_e={bits:et.lenbits},Ft=(0,f.default)(t,et.lens,0,et.nlen,et.lencode,0,et.work,_e),et.lenbits=_e.bits,Ft){mt.msg="invalid literal/lengths set",et.mode=le;break}if(et.distbits=6,et.distcode=et.distdyn,_e={bits:et.distbits},Ft=(0,f.default)(a,et.lens,et.nlen,et.ndist,et.distcode,0,et.work,_e),et.distbits=_e.bits,Ft){mt.msg="invalid distances set",et.mode=le;break}if(et.mode=q,or===r)break e;case q:et.mode=se;case se:if(Lr>=6&&pt>=258){mt.next_out=$t,mt.avail_out=pt,mt.next_in=Fe,mt.avail_in=Lr,et.hold=qt,et.bits=vr,(0,m.default)(mt,fr),$t=mt.next_out,qr=mt.output,pt=mt.avail_out,Fe=mt.next_in,ur=mt.input,Lr=mt.avail_in,qt=et.hold,vr=et.bits,et.mode===M&&(et.back=-1);break}for(et.back=0;!(sr=et.lencode[qt&(1<<et.lenbits)-1],Qr=sr>>>24,Cn=sr>>>16&255,Fn=sr&65535,Qr<=vr);){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(Cn&&(Cn&240)===0){for(ti=Qr,ki=Cn,Dn=Fn;!(sr=et.lencode[Dn+((qt&(1<<ti+ki)-1)>>ti)],Qr=sr>>>24,Cn=sr>>>16&255,Fn=sr&65535,ti+Qr<=vr);){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}qt>>>=ti,vr-=ti,et.back+=ti}if(qt>>>=Qr,vr-=Qr,et.back+=Qr,et.length=Fn,Cn===0){et.mode=Ge;break}if(Cn&32){et.back=-1,et.mode=M;break}if(Cn&64){mt.msg="invalid literal/length code",et.mode=le;break}et.extra=Cn&15,et.mode=re;case re:if(et.extra){for(Ne=et.extra;vr<Ne;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}et.length+=qt&(1<<et.extra)-1,qt>>>=et.extra,vr-=et.extra,et.back+=et.extra}et.was=et.length,et.mode=Ae;case Ae:for(;!(sr=et.distcode[qt&(1<<et.distbits)-1],Qr=sr>>>24,Cn=sr>>>16&255,Fn=sr&65535,Qr<=vr);){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if((Cn&240)===0){for(ti=Qr,ki=Cn,Dn=Fn;!(sr=et.distcode[Dn+((qt&(1<<ti+ki)-1)>>ti)],Qr=sr>>>24,Cn=sr>>>16&255,Fn=sr&65535,ti+Qr<=vr);){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}qt>>>=ti,vr-=ti,et.back+=ti}if(qt>>>=Qr,vr-=Qr,et.back+=Qr,Cn&64){mt.msg="invalid distance code",et.mode=le;break}et.offset=Fn,et.extra=Cn&15,et.mode=Te;case Te:if(et.extra){for(Ne=et.extra;vr<Ne;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}et.offset+=qt&(1<<et.extra)-1,qt>>>=et.extra,vr-=et.extra,et.back+=et.extra}if(et.offset>et.dmax){mt.msg="invalid distance too far back",et.mode=le;break}et.mode=Re;case Re:if(pt===0)break e;if(gr=fr-pt,et.offset>gr){if(gr=et.offset-gr,gr>et.whave&&et.sane){mt.msg="invalid distance too far back",et.mode=le;break}gr>et.wnext?(gr-=et.wnext,dn=et.wsize-gr):dn=et.wnext-gr,gr>et.length&&(gr=et.length),Qt=et.window}else Qt=qr,dn=$t-et.offset,gr=et.length;gr>pt&&(gr=pt),pt-=gr,et.length-=gr;do qr[$t++]=Qt[dn++];while(--gr);et.length===0&&(et.mode=se);break;case Ge:if(pt===0)break e;qr[$t++]=et.length,pt--,et.mode=se;break;case Ue:if(et.wrap){for(;vr<32;){if(Lr===0)break e;Lr--,qt|=ur[Fe++]<<vr,vr+=8}if(fr-=pt,mt.total_out+=fr,et.total+=fr,fr&&(mt.adler=et.check=et.flags?(0,v.default)(et.check,qr,fr,$t-fr):(0,S.default)(et.check,qr,fr,$t-fr)),fr=pt,(et.flags?qt:ye(qt))!==et.check){mt.msg="incorrect data check",et.mode=le;break}qt=0,vr=0}et.mode=nt;case nt:if(et.wrap&&et.flags){for(;vr<32;){if(Lr===0)break e;Lr--,qt+=ur[Fe++]<<vr,vr+=8}if(qt!==(et.total&4294967295)){mt.msg="incorrect length check",et.mode=le;break}qt=0,vr=0}et.mode=Le;case Le:Ft=c;break e;case le:Ft=A;break e;case Xe:return b;case pe:default:return g}return mt.next_out=$t,mt.avail_out=pt,mt.next_in=Fe,mt.avail_in=Lr,et.hold=qt,et.bits=vr,(et.wsize||fr!==mt.avail_out&&et.mode<le&&(et.mode<Ue||or!==e))&&Ve(mt,mt.output,mt.next_out,fr-mt.avail_out)?(et.mode=Xe,b):(pn-=mt.avail_in,fr-=mt.avail_out,mt.total_in+=pn,mt.total_out+=fr,et.total+=fr,et.wrap&&fr&&(mt.adler=et.check=et.flags?(0,v.default)(et.check,qr,fr,mt.next_out-fr):(0,S.default)(et.check,qr,fr,mt.next_out-fr)),mt.data_type=et.bits+(et.last?64:0)+(et.mode===M?128:0)+(et.mode===q||et.mode===H?256:0),(pn===0&&fr===0||or===e)&&Ft===s&&(Ft=w),Ft)}function Ut(mt){if(!mt||!mt.state)return g;var or=mt.state;return or.window&&(or.window=null),mt.state=null,s}function ir(mt,or){var et;return!mt||!mt.state?g:(et=mt.state,(et.wrap&2)===0?g:(et.head=or,or.done=!1,s))}function lr(mt,or){var et=or.length,ur,qr,Fe;return!mt||!mt.state?g:(ur=mt.state,ur.wrap!==0&&ur.mode!==X?g:ur.mode===X&&(qr=1,qr=(0,S.default)(qr,or,et,0),qr!==ur.check)?A:(Fe=Ve(mt,or,et,et),Fe?(ur.mode=Xe,b):(ur.havedict=1,s)))}var Sr="pako inflate (from Nodeca project)";D.inflateInfo=Sr},ePAk:function(k,D,i){var y=i("ProS");i("2fGM");var p=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(S){var v,m=this.ecModel;return m.eachComponent(S,function(f){f.getCoordSysModel()===this&&(v=f)},this),v},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});k.exports=p},eRkO:function(k,D,i){var y=i("+TT/"),p=y.getLayoutRect,S=y.box,v=y.positionElement,m=i("7aKB"),f=i("IwbS");function d(o,n,t){var a=n.getBoxLayoutParams(),e=n.get("padding"),l={width:t.getWidth(),height:t.getHeight()},r=p(a,l,e);S(n.get("orient"),o,n.get("itemGap"),r.width,r.height),v(o,a,l,e)}function u(o,n){var t=m.normalizeCssArray(n.get("padding")),a=n.getItemStyle(["color","opacity"]);a.fill=n.get("backgroundColor");var o=new f.Rect({shape:{x:o.x-t[3],y:o.y-t[0],width:o.width+t[1]+t[3],height:o.height+t[0]+t[2],r:n.get("borderRadius")},style:a,silent:!0,z2:-1});return o}D.layout=d,D.makeBackground=u},eS4l:function(k,D,i){i("HM/N"),i("FNN5")},ebwN:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"Map");k.exports=S},ekgI:function(k,D,i){var y=i("YESw"),p=Object.prototype,S=p.hasOwnProperty;function v(m){var f=this.__data__;return y?f[m]!==void 0:S.call(f,m)}k.exports=v},ewwo:function(k,D,i){var y=i("bMXI"),p=i("+TT/"),S=p.getLayoutRect,v=i("4mN7");function m(d,u,o){var n=d.getBoxLayoutParams();return n.aspect=o,S(n,{width:u.getWidth(),height:u.getHeight()})}function f(d,u){var o=[];return d.eachSeriesByType("graph",function(n){var t=n.get("coordinateSystem");if(!t||t==="view"){var a=n.getData(),e=a.mapArray(function(x){var T=a.getItemModel(x);return[+T.get("x"),+T.get("y")]}),l=[],r=[];v.fromPoints(e,l,r),r[0]-l[0]===0&&(r[0]+=1,l[0]-=1),r[1]-l[1]===0&&(r[1]+=1,l[1]-=1);var s=(r[0]-l[0])/(r[1]-l[1]),c=m(n,u,s);isNaN(s)&&(l=[c.x,c.y],r=[c.x+c.width,c.y+c.height]);var h=r[0]-l[0],g=r[1]-l[1],A=c.width,b=c.height,w=n.coordinateSystem=new y;w.zoomLimit=n.get("scaleLimit"),w.setBoundingRect(l[0],l[1],h,g),w.setViewRect(c.x,c.y,A,b),w.setCenter(n.get("center")),w.setZoom(n.get("zoom")),o.push(w)}}),o}k.exports=f},f1nB:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("bYtY"),m=i("4NO4"),f=i("IwbS"),d=i("+TT/"),u=i("OELB"),o=u.parsePercent,n={path:null,compoundPath:null,group:f.Group,image:f.Image,text:f.Text};S.registerPreprocessor(function(A){var b=A.graphic;v.isArray(b)?!b[0]||!b[0].elements?A.graphic=[{elements:b}]:A.graphic=[A.graphic[0]]:b&&!b.elements&&(A.graphic=[{elements:[b]}])});var t=S.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(A){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(A,b){var w=this.option,x=(b?w:A).elements,T=w.elements=b?[]:w.elements,_=[];this._flatten(x,_);var E=m.mappingToExists(T,_);m.makeIdAndName(E);var C=this._elOptionsToUpdate=[];v.each(E,function(O,F){var R=O.option;if(!R)return;C.push(R),s(O,R),c(T,F,R),h(T[F],R)},this);for(var I=T.length-1;I>=0;I--)T[I]==null?T.splice(I,1):delete T[I].$action},_flatten:function(A,b,w){v.each(A,function(x){if(!x)return;w&&(x.parentOption=w),b.push(x);var T=x.children;x.type==="group"&&T&&this._flatten(T,b,x),delete x.children},this)},useElOptionsToUpdate:function(){var A=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,A}});S.extendComponentView({type:"graphic",init:function(A,b){this._elMap=v.createHashMap(),this._lastGraphicModel},render:function(A,b,w){A!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=A,this._updateElements(A),this._relocate(A,w)},_updateElements:function(A){var b=A.useElOptionsToUpdate();if(!b)return;var w=this._elMap,x=this.group;v.each(b,function(T){var _=T.$action,E=T.id,C=w.get(E),I=T.parentId,O=I!=null?w.get(I):x,F=T.style;T.type==="text"&&F&&(T.hv&&T.hv[1]&&(F.textVerticalAlign=F.textBaseline=null),!F.hasOwnProperty("textFill")&&F.fill&&(F.textFill=F.fill),!F.hasOwnProperty("textStroke")&&F.stroke&&(F.textStroke=F.stroke));var R=l(T);!_||_==="merge"?C?C.attr(R):a(E,O,R,w):_==="replace"?(e(C,w),a(E,O,R,w)):_==="remove"&&e(C,w);var B=w.get(E);B&&(B.__ecGraphicWidthOption=T.width,B.__ecGraphicHeightOption=T.height,g(B,A,T))})},_relocate:function(A,b){for(var w=A.option.elements,x=this.group,T=this._elMap,_=b.getWidth(),E=b.getHeight(),C=0;C<w.length;C++){var I=w[C],O=T.get(I.id);if(!O||!O.isGroup)continue;var F=O.parent,R=F===x;O.__ecGraphicWidth=o(O.__ecGraphicWidthOption,R?_:F.__ecGraphicWidth)||0,O.__ecGraphicHeight=o(O.__ecGraphicHeightOption,R?E:F.__ecGraphicHeight)||0}for(var C=w.length-1;C>=0;C--){var I=w[C],O=T.get(I.id);if(!O)continue;var F=O.parent,B=F===x?{width:_,height:E}:{width:F.__ecGraphicWidth,height:F.__ecGraphicHeight};d.positionElement(O,I,B,null,{hv:I.hv,boundingMode:I.bounding})}},_clear:function(){var A=this._elMap;A.each(function(b){e(b,A)}),this._elMap=v.createHashMap()},dispose:function(){this._clear()}});function a(A,b,w,x){var T=w.type,_=n.hasOwnProperty(T)?n[T]:f.getShapeClass(T),E=new _(w);b.add(E),x.set(A,E),E.__ecGraphicId=A}function e(A,b){var w=A&&A.parent;w&&(A.type==="group"&&A.traverse(function(x){e(x,b)}),b.removeKey(A.__ecGraphicId),w.remove(A))}function l(A){return A=v.extend({},A),v.each(["id","parentId","$action","hv","bounding"].concat(d.LOCATION_PARAMS),function(b){delete A[b]}),A}function r(A,b){var w;return v.each(b,function(x){A[x]!=null&&A[x]!=="auto"&&(w=!0)}),w}function s(A,b){var w=A.exist;if(b.id=A.keyInfo.id,!b.type&&w&&(b.type=w.type),b.parentId==null){var x=b.parentOption;x?b.parentId=x.id:w&&(b.parentId=w.parentId)}b.parentOption=null}function c(A,b,w){var x=v.extend({},w),T=A[b],_=w.$action||"merge";_==="merge"?T?(v.merge(T,x,!0),d.mergeLayoutParam(T,x,{ignoreSize:!0}),d.copyLayoutParams(w,T)):A[b]=x:_==="replace"?A[b]=x:_==="remove"&&(T&&(A[b]=null))}function h(A,b){if(!A)return;A.hv=b.hv=[r(b,["left","right"]),r(b,["top","bottom"])],A.type==="group"&&(A.width==null&&(A.width=b.width=0),A.height==null&&(A.height=b.height=0))}function g(A,b,w){var x=A.eventData;!A.silent&&!A.ignore&&!x&&(x=A.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:A.name}),x&&(x.info=A.info)}},f3JH:function(k,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("oY9F"),i("MqEG"),i("LBfv"),i("noeP")},f4xo:function(k,D,i){var y=i("nVVt");function p(S){this.mode=y.MODE_8BIT_BYTE,this.data=S}p.prototype={getLength:function(v){return this.data.length},write:function(v){for(var m=0;m<this.data.length;m++)v.put(this.data.charCodeAt(m),8)}},k.exports=p},f5HG:function(k,D,i){var y=i("IwbS"),p=i("QBsz"),S=y.Line.prototype,v=y.BezierCurve.prototype;function m(d){return isNaN(+d.cpx1)||isNaN(+d.cpy1)}var f=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:S.buildPath,_buildPathCurve:v.buildPath,pointAt:function(d){return this[m(this.shape)?"_pointAtLine":"_pointAtCurve"](d)},_pointAtLine:S.pointAt,_pointAtCurve:v.pointAt,tangentAt:function(d){var u=this.shape,o=m(u)?[u.x2-u.x1,u.y2-u.y1]:this._tangentAtCurve(d);return p.normalize(o,o)},_tangentAtCurve:v.tangentAt});k.exports=f},f5Yq:function(k,D,i){var y=i("bYtY"),p=y.isFunction;function S(v,m,f){return{seriesType:v,performRawSeries:!0,reset:function(d,u,o){var n=d.getData(),t=d.get("symbol"),a=d.get("symbolSize"),e=d.get("symbolKeepAspect"),l=d.get("symbolRotate"),r=p(t),s=p(a),c=p(l),h=r||s||c,g=!r&&t?t:m,A=s?null:a,b=c?null:b;if(n.setVisual({legendSymbol:f||g,symbol:g,symbolSize:A,symbolKeepAspect:e,symbolRotate:l}),u.isSeriesFiltered(d))return;function w(x,T){if(h){var _=d.getRawValue(T),E=d.getDataParams(T);r&&x.setItemVisual(T,"symbol",t(_,E)),s&&x.setItemVisual(T,"symbolSize",a(_,E)),c&&x.setItemVisual(T,"symbolRotate",l(_,E))}if(x.hasItemOption){var C=x.getItemModel(T),I=C.getShallow("symbol",!0),O=C.getShallow("symbolSize",!0),F=C.getShallow("symbolRotate",!0),R=C.getShallow("symbolKeepAspect",!0);I!=null&&x.setItemVisual(T,"symbol",I),O!=null&&x.setItemVisual(T,"symbolSize",O),F!=null&&x.setItemVisual(T,"symbolRotate",F),R!=null&&x.setItemVisual(T,"symbolKeepAspect",R)}}return{dataEach:n.hasItemOption||h?w:null}}}}k.exports=S},fE02:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("/IIm"),v=i("vZ6x"),m=i("b9oc"),f=i("72pK"),d=i("Kagy"),u=i("IUWy");i("3TkU");var o=d.toolbox.dataZoom,n=p.each,t="\0_ec_\0toolbox-dataZoom_";function a(g,A,b){(this._brushController=new S(b.getZr())).on("brush",p.bind(this._onBrush,this)).mount(),this._isZoomActive}a.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:p.clone(o.title)};var e=a.prototype;e.render=function(g,A,b,w){this.model=g,this.ecModel=A,this.api=b,c(g,A,this,w,b),s(g,A)},e.onclick=function(g,A,b){l[b].call(this)},e.remove=function(g,A){this._brushController.unmount()},e.dispose=function(g,A){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,A){if(!A.isEnd||!g.length)return;var b={},w=this.ecModel;this._brushController.updateCovers([]);var x=new v(r(this.model.option),w,{include:["grid"]});x.matchOutputRanges(g,w,function(E,C,I){if(I.type!=="cartesian2d")return;var O=E.brushType;O==="rect"?(T("x",I,C[0]),T("y",I,C[1])):T({lineX:"x",lineY:"y"}[O],I,C)}),m.push(w,b),this._dispatchZoomAction(b);function T(E,C,I){var O=C.getAxis(E),F=O.model,R=_(E,F,w),B=R.findRepresentativeAxisProxy(F).getMinMaxSpan();(B.minValueSpan!=null||B.maxValueSpan!=null)&&(I=f(0,I.slice(),O.scale.getExtent(),0,B.minValueSpan,B.maxValueSpan)),R&&(b[R.id]={dataZoomId:R.id,startValue:I[0],endValue:I[1]})}function _(E,C,I){var O;return I.eachComponent({mainType:"dataZoom",subType:"select"},function(F){var R=F.getAxisModel(E,C.componentIndex);R&&(O=F)}),O}},e._dispatchZoomAction=function(g){var A=[];n(g,function(b,w){A.push(p.clone(b))}),A.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:A})};function r(g){var A={};return p.each(["xAxisIndex","yAxisIndex"],function(b){A[b]=g[b],A[b]==null&&(A[b]="all"),(A[b]===!1||A[b]==="none")&&(A[b]=[])}),A}function s(g,A){g.setIconStatus("back",m.count(A)>1?"emphasis":"normal")}function c(g,A,b,w,x){var T=b._isZoomActive;w&&w.type==="takeGlobalCursor"&&(T=w.key==="dataZoomSelect"?w.dataZoomSelectActive:!1),b._isZoomActive=T,g.setIconStatus("zoom",T?"emphasis":"normal");var _=new v(r(g.option),A,{include:["grid"]});b._brushController.setPanels(_.makePanelOpts(x,function(E){return E.xAxisDeclared&&!E.yAxisDeclared?"lineX":!E.xAxisDeclared&&E.yAxisDeclared?"lineY":"rect"})).enableBrush(T?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}u.register("dataZoom",a),y.registerPreprocessor(function(g){if(!g)return;var A=g.dataZoom||(g.dataZoom=[]);p.isArray(A)||(g.dataZoom=A=[A]);var b=g.toolbox;if(b&&(p.isArray(b)&&(b=b[0]),b&&b.feature)){var w=b.feature.dataZoom;x("xAxis",w),x("yAxis",w)}function x(_,E){if(!E)return;var C=_+"Index",I=E[C];I!=null&&I!=="all"&&!p.isArray(I)&&(I=I===!1||I==="none"?[]:[I]),T(_,function(O,F){if(I!=null&&I!=="all"&&p.indexOf(I,F)===-1)return;var R={type:"select",$fromToolbox:!0,filterMode:E.filterMode||"filter",id:t+_+F};R[C]=F,A.push(R)})}function T(_,E){var C=g[_];p.isArray(C)||(C=C?[C]:[]),n(C,E)}});var h=a;k.exports=h},fGT3:function(k,D,i){var y=i("4kuk"),p=i("Xi7e"),S=i("ebwN");function v(){this.size=0,this.__data__={hash:new y,map:new(S||p),string:new y}}k.exports=v},fNCr:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("tSko"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},"fR/l":function(k,D,i){var y=i("CH3K"),p=i("Z0cm");function S(v,m,f){var d=m(v);return p(v)?d:y(d,f(v))}k.exports=S},fUL4:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("r+aA"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},fW2E:function(k,D){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(p,S,v){return i.hasOwnProperty(S)?v*=p.dpr:v}k.exports=y},"fc+c":function(k,D,i){var y=i("sS/r"),p=y.extend({type:"dataZoom",render:function(S,v,m,f){this.dataZoomModel=S,this.ecModel=v,this.api=m},getTargetCoordInfo:function(){var S=this.dataZoomModel,v=this.ecModel,m={};S.eachTargetAxis(function(d,u){var o=v.getComponent(d.axis,u);if(o){var n=o.getCoordSysModel();n&&f(n,o,m[n.mainType]||(m[n.mainType]=[]),n.componentIndex)}},this);function f(d,u,o,n){for(var t,a=0;a<o.length;a++)if(o[a].model===d){t=o[a];break}t||o.push(t={model:d,axisModels:[],coordIndex:n}),t.axisModels.push(u)}return m}});k.exports=p},fjKi:function(k,D,i){var y=i("ProS");i("Q7if"),i("jndi"),y.registerPreprocessor(function(p){p.markArea=p.markArea||{}})},fls0:function(k,D,i){var y=i("bYtY"),p=i("QBsz"),S=i("oVpE"),v=i("f5HG"),m=i("IwbS"),f=i("OELB"),d=f.round,u=["fromSymbol","toSymbol"];function o(c){return"_"+c+"Type"}function n(c,h,g){var A=h.getItemVisual(g,"color"),b=h.getItemVisual(g,c),w=h.getItemVisual(g,c+"Size");if(!b||b==="none")return;y.isArray(w)||(w=[w,w]);var x=S.createSymbol(b,-w[0]/2,-w[1]/2,w[0],w[1],A);return x.name=c,x}function t(c){var h=new v({name:"line",subPixelOptimize:!0});return a(h.shape,c),h}function a(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"),A=c.childOfName("label");if(!h&&!g&&A.ignore)return;for(var b=1,w=this.parent;w;)w.scale&&(b/=w.scale[0]),w=w.parent;var x=c.childOfName("line");if(!this.__dirty&&!x.__dirty)return;var T=x.shape.percent,_=x.pointAt(0),E=x.pointAt(T),C=p.sub([],E,_);if(p.normalize(C,C),h){h.attr("position",_);var I=x.tangentAt(0);h.attr("rotation",Math.PI/2-Math.atan2(I[1],I[0])),h.attr("scale",[b*T,b*T])}if(g){g.attr("position",E);var I=x.tangentAt(1);g.attr("rotation",-Math.PI/2-Math.atan2(I[1],I[0])),g.attr("scale",[b*T,b*T])}if(!A.ignore){A.attr("position",E);var O,F,R,B,P=A.__labelDistance,X=P[0]*b,M=P[1]*b,z=T/2,I=x.tangentAt(z),W=[I[1],-I[0]],H=x.pointAt(z);W[1]>0&&(W[0]=-W[0],W[1]=-W[1]);var V=I[0]<0?-1:1;if(A.__position!=="start"&&A.__position!=="end"){var Q=-Math.atan2(I[1],I[0]);E[0]<_[0]&&(Q=Math.PI+Q),A.attr("rotation",Q)}var G;switch(A.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-M,R="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=M,R="top";break;default:G=0,R="middle"}switch(A.__position){case"end":O=[C[0]*X+E[0],C[1]*M+E[1]],F=C[0]>.8?"left":C[0]<-.8?"right":"center",R=C[1]>.8?"top":C[1]<-.8?"bottom":"middle";break;case"start":O=[-C[0]*X+_[0],-C[1]*M+_[1]],F=C[0]>.8?"right":C[0]<-.8?"left":"center",R=C[1]>.8?"bottom":C[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":O=[X*V+_[0],_[1]+G],F=I[0]<0?"right":"left",B=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":O=[H[0],H[1]+G],F="center",B=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":O=[-X*V+E[0],E[1]+G],F=I[0]>=0?"right":"left",B=[X*V,-G];break}A.attr({style:{textVerticalAlign:A.__verticalAlign||R,textAlign:A.__textAlign||F},position:O,scale:[b,b],origin:B})}}function l(c,h,g){m.Group.call(this),this._createLine(c,h,g)}var r=l.prototype;r.beforeUpdate=e,r._createLine=function(c,h,g){var A=c.hostModel,b=c.getItemLayout(h),w=t(b);w.shape.percent=0,m.initProps(w,{shape:{percent:1}},A,h),this.add(w);var x=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(x),y.each(u,function(T){var _=n(T,c,h);this.add(_),this[o(T)]=c.getItemVisual(h,T)},this),this._updateCommonStl(c,h,g)},r.updateData=function(c,h,g){var A=c.hostModel,b=this.childOfName("line"),w=c.getItemLayout(h),x={shape:{}};a(x.shape,w),m.updateProps(b,x,A,h),y.each(u,function(T){var _=c.getItemVisual(h,T),E=o(T);if(this[E]!==_){this.remove(this.childOfName(T));var C=n(T,c,h);this.add(C)}this[E]=_},this),this._updateCommonStl(c,h,g)},r._updateCommonStl=function(c,h,g){var A=c.hostModel,b=this.childOfName("line"),w=g&&g.lineStyle,x=g&&g.hoverLineStyle,T=g&&g.labelModel,_=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var E=c.getItemModel(h);w=E.getModel("lineStyle").getLineStyle(),x=E.getModel("emphasis.lineStyle").getLineStyle(),T=E.getModel("label"),_=E.getModel("emphasis.label")}var C=c.getItemVisual(h,"color"),I=y.retrieve3(c.getItemVisual(h,"opacity"),w.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:C,opacity:I},w)),b.hoverStyle=x,y.each(u,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(C),Q.setStyle({opacity:I}))},this);var O=T.getShallow("show"),F=_.getShallow("show"),R=this.childOfName("label"),B,P;if((O||F)&&(B=C||"#000",P=A.getFormattedLabel(h,"normal",c.dataType),P==null)){var X=A.getRawValue(h);P=X==null?c.getName(h):isFinite(X)?d(X):X}var M=O?P:null,z=F?y.retrieve2(A.getFormattedLabel(h,"emphasis",c.dataType),P):null,W=R.style;if(M!=null||z!=null){m.setTextStyle(R.style,T,{text:M},{autoColor:B}),R.__textAlign=W.textAlign,R.__verticalAlign=W.textVerticalAlign,R.__position=T.get("position")||"middle";var H=T.get("distance");y.isArray(H)||(H=[H,H]),R.__labelDistance=H}z!=null?R.hoverStyle={text:z,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:R.hoverStyle={text:null},R.ignore=!O&&!F,m.setHoverStyle(this)},r.highlight=function(){this.trigger("emphasis")},r.downplay=function(){this.trigger("normal")},r.updateLayout=function(c,h){this.setLinePoints(c.getItemLayout(h))},r.setLinePoints=function(c){var h=this.childOfName("line");a(h.shape,c),h.dirty()},y.inherits(l,m.Group);var s=l;k.exports=s},fmMI:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=S.each,m=S.filter,f=S.map,d=S.isArray,u=S.indexOf,o=S.isObject,n=S.isString,t=S.createHashMap,a=S.assert,e=S.clone,l=S.merge,r=S.extend,s=S.mixin,c=i("4NO4"),h=i("Qxkt"),g=i("bLfw"),A=i("iXHM"),b=i("5Hur"),w=i("D5nY"),x=w.resetSourceDefaulter,T="\0_ec_inner",_=h.extend({init:function(M,z,W,H){W=W||{},this.option=null,this._theme=new h(W),this._optionManager=H},setOption:function(M,z){a(!(T in M),"please use chart.getOption()"),this._optionManager.setOption(M,z),this.resetOption(null)},resetOption:function(M){var z=!1,W=this._optionManager;if(!M||M==="recreate"){var H=W.mountOption(M==="recreate");!this.option||M==="recreate"?I.call(this,H):(this.restoreData(),this.mergeOption(H)),z=!0}if((M==="timeline"||M==="media")&&this.restoreData(),!M||M==="recreate"||M==="timeline"){var V=W.getTimelineOption(this);V&&(this.mergeOption(V),z=!0)}if(!M||M==="recreate"||M==="media"){var Q=W.getMediaOption(this,this._api);Q.length&&v(Q,function(G){this.mergeOption(G,z=!0)},this)}return z},mergeOption:function(M){var z=this.option,W=this._componentsMap,H=[];x(this),v(M,function(Q,G){if(Q==null)return;g.hasClass(G)?G&&H.push(G):z[G]=z[G]==null?e(Q):l(z[G],Q,!0)}),g.topologicalTravel(H,g.getAllClassMainTypes(),V,this);function V(Q,G){var ee=c.normalizeToArray(M[Q]),q=c.mappingToExists(W.get(Q),ee);c.makeIdAndName(q),v(q,function(re,Ae){var Te=re.option;o(Te)&&(re.keyInfo.mainType=Q,re.keyInfo.subType=F(Q,Te,re.exist))});var se=O(W,G);z[Q]=[],W.set(Q,[]),v(q,function(re,Ae){var Te=re.exist,Re=re.option;if(a(o(Re)||Te,"Empty component definition"),!Re)Te.mergeOption({},this),Te.optionUpdated({},!1);else{var Ge=g.getClass(Q,re.keyInfo.subType,!0);if(Te&&Te.constructor===Ge)Te.name=re.keyInfo.name,Te.mergeOption(Re,this),Te.optionUpdated(Re,!1);else{var Ue=r({dependentModels:se,componentIndex:Ae},re.keyInfo);Te=new Ge(Re,this,this,Ue),r(Te,Ue),Te.init(Re,this,this,Ue),Te.optionUpdated(null,!0)}}W.get(Q)[Ae]=Te,z[Q][Ae]=Te.option},this),Q==="series"&&R(this,W.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var M=e(this.option);return v(M,function(z,W){if(g.hasClass(W)){for(var z=c.normalizeToArray(z),H=z.length-1;H>=0;H--)c.isIdInner(z[H])&&z.splice(H,1);M[W]=z}}),delete M[T],M},getTheme:function(){return this._theme},getComponent:function(M,z){var W=this._componentsMap.get(M);if(W)return W[z||0]},queryComponents:function(M){var z=M.mainType;if(!z)return[];var W=M.index,H=M.id,V=M.name,Q=this._componentsMap.get(z);if(!Q||!Q.length)return[];var G;if(W!=null)d(W)||(W=[W]),G=m(f(W,function(se){return Q[se]}),function(se){return!!se});else if(H!=null){var ee=d(H);G=m(Q,function(se){return ee&&u(H,se.id)>=0||!ee&&se.id===H})}else if(V!=null){var q=d(V);G=m(Q,function(se){return q&&u(V,se.name)>=0||!q&&se.name===V})}else G=Q.slice();return B(G,M)},findComponents:function(M){var z=M.query,W=M.mainType,H=Q(z),V=H?this.queryComponents(H):this._componentsMap.get(W);return G(B(V,M));function Q(ee){var q=W+"Index",se=W+"Id",re=W+"Name";return ee&&(ee[q]!=null||ee[se]!=null||ee[re]!=null)?{mainType:W,index:ee[q],id:ee[se],name:ee[re]}:null}function G(ee){return M.filter?m(ee,M.filter):ee}},eachComponent:function(M,z,W){var H=this._componentsMap;if(typeof M=="function")W=z,z=M,H.each(function(Q,G){v(Q,function(ee,q){z.call(W,G,ee,q)})});else if(n(M))v(H.get(M),z,W);else if(o(M)){var V=this.findComponents(M);v(V,z,W)}},getSeriesByName:function(M){var z=this._componentsMap.get("series");return m(z,function(W){return W.name===M})},getSeriesByIndex:function(M){return this._componentsMap.get("series")[M]},getSeriesByType:function(M){var z=this._componentsMap.get("series");return m(z,function(W){return W.subType===M})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(M,z){P(this),v(this._seriesIndices,function(W){var H=this._componentsMap.get("series")[W];M.call(z,H,W)},this)},eachRawSeries:function(M,z){v(this._componentsMap.get("series"),M,z)},eachSeriesByType:function(M,z,W){P(this),v(this._seriesIndices,function(H){var V=this._componentsMap.get("series")[H];V.subType===M&&z.call(W,V,H)},this)},eachRawSeriesByType:function(M,z,W){return v(this.getSeriesByType(M),z,W)},isSeriesFiltered:function(M){return P(this),this._seriesIndicesMap.get(M.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(M,z){P(this);var W=m(this._componentsMap.get("series"),M,z);R(this,W)},restoreData:function(M){var z=this._componentsMap;R(this,z.get("series"));var W=[];z.each(function(H,V){W.push(V)}),g.topologicalTravel(W,g.getAllClassMainTypes(),function(H,V){v(z.get(H),function(Q){(H!=="series"||!E(Q,M))&&Q.restoreData()})})}});function E(M,z){if(z){var W=z.seiresIndex,H=z.seriesId,V=z.seriesName;return W!=null&&M.componentIndex!==W||H!=null&&M.id!==H||V!=null&&M.name!==V}}function C(M,z){var W=M.color&&!M.colorLayer;v(z,function(H,V){if(V==="colorLayer"&&W)return;g.hasClass(V)||(typeof H=="object"?M[V]=M[V]?l(M[V],H,!1):e(H):M[V]==null&&(M[V]=H))})}function I(M){M=M,this.option={},this.option[T]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,C(M,this._theme.option),l(M,A,!1),this.mergeOption(M)}function O(M,z){d(z)||(z=z?[z]:[]);var W={};return v(z,function(H){W[H]=(M.get(H)||[]).slice()}),W}function F(M,z,W){var H=z.type?z.type:W?W.subType:g.determineSubType(M,z);return H}function R(M,z){M._seriesIndicesMap=t(M._seriesIndices=f(z,function(W){return W.componentIndex})||[])}function B(M,z){return z.hasOwnProperty("subType")?m(M,function(W){return W.subType===z.subType}):M}function P(M){}s(_,b);var X=_;k.exports=X},fmRc:function(k,D,i){var y=i("Xi7e"),p=i("77Zs"),S=i("L8xA"),v=i("gCq4"),m=i("VaNO"),f=i("0Cz8");function d(u){var o=this.__data__=new y(u);this.size=o.size}d.prototype.clear=p,d.prototype.delete=S,d.prototype.get=v,d.prototype.has=m,d.prototype.set=f,k.exports=d},ftKO:function(k,D){var i="__lodash_hash_undefined__";function y(p){return this.__data__.set(p,i),this}k.exports=y},fyUT:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),u=i.n(d),o=i("Ff2n"),n=i("rePB"),t=i("1OyB"),a=i("vuIU"),e=i("Ji7U"),l=i("md7G"),r=i("foSv"),s=i("4IlW");function c(G,ee){var q=Object.keys(G);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(G);ee&&(se=se.filter(function(re){return Object.getOwnPropertyDescriptor(G,re).enumerable})),q.push.apply(q,se)}return q}function h(G){for(var ee=1;ee<arguments.length;ee++){var q=arguments[ee]!=null?arguments[ee]:{};ee%2?c(Object(q),!0).forEach(function(se){Object(n.a)(G,se,q[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(q)):c(Object(q)).forEach(function(se){Object.defineProperty(G,se,Object.getOwnPropertyDescriptor(q,se))})}return G}function g(G){var ee=A();return function(){var se=Object(r.a)(G),re;if(ee){var Ae=Object(r.a)(this).constructor;re=Reflect.construct(se,arguments,Ae)}else re=se.apply(this,arguments);return Object(l.a)(this,re)}}function A(){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 w(G){G.preventDefault()}var x=function(ee){return ee.replace(/[^\w.-]+/g,"")},T=200,_=600,E=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,C=function(ee){return ee!=null},I=function(ee,q){return q===ee||typeof q=="number"&&typeof ee=="number"&&isNaN(q)&&isNaN(ee)},O=function(G){Object(e.a)(q,G);var ee=g(q);function q(se){var re;Object(t.a)(this,q),re=ee.call(this,se),re.onKeyDown=function(Re){var Ge=re.props,Ue=Ge.onKeyDown,nt=Ge.onPressEnter;if(Re.keyCode===s.a.UP){var Le=re.getRatio(Re);re.up(Re,Le,null),re.stop()}else if(Re.keyCode===s.a.DOWN){var le=re.getRatio(Re);re.down(Re,le,null),re.stop()}else Re.keyCode===s.a.ENTER&&nt&&nt(Re);if(re.recordCursorPosition(),re.lastKeyCode=Re.keyCode,Ue){for(var Xe=arguments.length,pe=new Array(Xe>1?Xe-1:0),Z=1;Z<Xe;Z++)pe[Z-1]=arguments[Z];Ue.apply(void 0,[Re].concat(pe))}},re.onKeyUp=function(Re){var Ge=re.props.onKeyUp;if(re.stop(),re.recordCursorPosition(),Ge){for(var Ue=arguments.length,nt=new Array(Ue>1?Ue-1:0),Le=1;Le<Ue;Le++)nt[Le-1]=arguments[Le];Ge.apply(void 0,[Re].concat(nt))}},re.onChange=function(Re){var Ge=re.props.onChange;re.state.focused&&(re.inputting=!0),re.rawInput=re.props.parser(re.getValueFromEvent(Re)),re.setState({inputValue:re.rawInput}),Ge(re.toNumber(re.rawInput))},re.onMouseUp=function(){var Re=re.props.onMouseUp;re.recordCursorPosition(),Re&&Re.apply(void 0,arguments)},re.onFocus=function(){var Re;re.setState({focused:!0}),(Re=re.props).onFocus.apply(Re,arguments)},re.onBlur=function(){var Re=re.props.onBlur;re.inputting=!1,re.setState({focused:!1});var Ge=re.getCurrentValidValue(re.state.inputValue),Ue=re.setValue(Ge,b);if(Re){var nt=re.input.value,Le=re.getInputDisplayValue({focus:!1,value:Ue});re.input.value=Le&&Number(Le),Re.apply(void 0,arguments),re.input.value=nt}},re.getRatio=function(Re){var Ge=1;return Re.metaKey||Re.ctrlKey?Ge=.1:Re.shiftKey&&(Ge=10),Ge},re.getFullNum=function(Re){return isNaN(Re)?Re:/e/i.test(String(Re))?Number(Re).toFixed(18).replace(/\.?0+$/,""):Re},re.getPrecision=function(Re){if(C(re.props.precision))return re.props.precision;var Ge=String(Re);if(Ge.indexOf("e-")>=0)return parseInt(Ge.slice(Ge.indexOf("e-")+2),10);var Ue=0;return Ge.indexOf(".")>=0&&(Ue=Ge.length-Ge.indexOf(".")-1),Ue},re.getInputDisplayValue=function(Re){var Ge=Re||re.state,Ue=Ge.focused,nt=Ge.inputValue,Le=Ge.value,le;Ue?le=nt:le=re.toPrecisionAsStep(Le),le==null&&(le="");var Xe=re.formatWrapper(le);return C(re.props.decimalSeparator)&&(Xe=Xe.toString().replace(".",re.props.decimalSeparator)),Xe},re.recordCursorPosition=function(){try{re.cursorStart=re.input.selectionStart,re.cursorEnd=re.input.selectionEnd,re.currentValue=re.input.value,re.cursorBefore=re.input.value.substring(0,re.cursorStart),re.cursorAfter=re.input.value.substring(re.cursorEnd)}catch(Re){}},re.restoreByAfter=function(Re){if(Re===void 0)return!1;var Ge=re.input.value,Ue=Ge.lastIndexOf(Re);if(Ue===-1)return!1;var nt=re.cursorBefore.length;return re.lastKeyCode===s.a.DELETE&&re.cursorBefore.charAt(nt-1)===Re[0]?(re.fixCaret(nt,nt),!0):Ue+Re.length===Ge.length?(re.fixCaret(Ue,Ue),!0):!1},re.partRestoreByAfter=function(Re){return Re===void 0?!1:Array.prototype.some.call(Re,function(Ge,Ue){var nt=Re.substring(Ue);return re.restoreByAfter(nt)})},re.isNotCompleteNumber=function(Re){return isNaN(Re)||Re===""||Re===null||Re&&Re.toString().indexOf(".")===Re.toString().length-1},re.stop=function(){re.autoStepTimer&&clearTimeout(re.autoStepTimer)},re.down=function(Re,Ge,Ue){re.pressingUpOrDown=!0,re.step("down",Re,Ge,Ue)},re.up=function(Re,Ge,Ue){re.pressingUpOrDown=!0,re.step("up",Re,Ge,Ue)},re.saveInput=function(Re){re.input=Re};var Ae=se.value;Ae===void 0&&(Ae=se.defaultValue),re.state={focused:se.autoFocus};var Te=re.getValidValue(re.toNumber(Ae));return re.state=h(h({},re.state),{},{inputValue:re.toPrecisionAsStep(Te),value:Te}),re}return Object(a.a)(q,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(re){var Ae=this.props,Te=Ae.value,Re=Ae.onChange,Ge=Ae.max,Ue=Ae.min,nt=this.state.focused;if(re){if(!I(re.value,Te)||!I(re.max,Ge)||!I(re.min,Ue)){var Le=nt?Te:this.getValidValue(Te),le;this.pressingUpOrDown?le=Le:this.inputting?le=this.rawInput:le=this.toPrecisionAsStep(Le),this.setState({value:Le,inputValue:le})}var Xe="value"in this.props?Te:this.state.value;"max"in this.props&&re.max!==Ge&&typeof Xe=="number"&&Xe>Ge&&Re&&Re(Ge),"min"in this.props&&re.min!==Ue&&typeof Xe=="number"&&Xe<Ue&&Re&&Re(Ue)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var pe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===s.a.BACKSPACE?pe=this.cursorStart-1:this.lastKeyCode===s.a.DELETE&&(pe=this.cursorStart):pe=this.input.value.length,this.fixCaret(pe,pe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case s.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case s.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Z){}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(re){var Ae=re;return Ae===""?Ae="":this.isNotCompleteNumber(parseFloat(Ae))?Ae=this.state.value:Ae=this.getValidValue(Ae),this.toNumber(Ae)}},{key:"getValueFromEvent",value:function(re){var Ae=re.target.value.trim().replace(/。/g,".");return C(this.props.decimalSeparator)&&(Ae=Ae.replace(this.props.decimalSeparator,".")),Ae}},{key:"getValidValue",value:function(re){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Re=parseFloat(re);return isNaN(Re)?re:(Re<Ae&&(Re=Ae),Re>Te&&(Re=Te),Re)}},{key:"setValue",value:function(re,Ae){var Te=this.props.precision,Re=this.isNotCompleteNumber(parseFloat(re))?null:parseFloat(re),Ge=this.state.value,Ue=Ge===void 0?null:Ge,nt=this.state.inputValue,Le=nt===void 0?null:nt,le=typeof Re=="number"?Re.toFixed(Te):"".concat(Re),Xe=Re!==Ue||le!=="".concat(Le);return"value"in this.props?(Le=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Le},Ae)):this.setState({value:Re,inputValue:this.toPrecisionAsStep(re)},Ae),Xe&&this.props.onChange(Re),Re}},{key:"getMaxPrecision",value:function(re){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Te=this.props,Re=Te.precision,Ge=Te.step;if(C(Re))return Re;var Ue=this.getPrecision(Ae),nt=this.getPrecision(Ge),Le=this.getPrecision(re);return re?Math.max(Le,Ue+nt):Ue+nt}},{key:"getPrecisionFactor",value:function(re){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Te=this.getMaxPrecision(re,Ae);return Math.pow(10,Te)}},{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(re){return this.props.formatter?this.props.formatter(re):re}},{key:"toPrecisionAsStep",value:function(re){if(this.isNotCompleteNumber(re)||re==="")return re;var Ae=Math.abs(this.getMaxPrecision(re));return isNaN(Ae)?re.toString():Number(re).toFixed(Ae)}},{key:"toNumber",value:function(re){var Ae=this.props.precision,Te=this.state.focused,Re=re&&re.length>16&&Te;return this.isNotCompleteNumber(re)||Re?re:C(Ae)?Math.round(re*Math.pow(10,Ae))/Math.pow(10,Ae):Number(re)}},{key:"upStep",value:function(re,Ae){var Te=this.props.step,Re=this.getPrecisionFactor(re,Ae),Ge=Math.abs(this.getMaxPrecision(re,Ae)),Ue=((Re*re+Re*Te*Ae)/Re).toFixed(Ge);return this.toNumber(Ue)}},{key:"downStep",value:function(re,Ae){var Te=this.props.step,Re=this.getPrecisionFactor(re,Ae),Ge=Math.abs(this.getMaxPrecision(re,Ae)),Ue=((Re*re-Re*Te*Ae)/Re).toFixed(Ge);return this.toNumber(Ue)}},{key:"step",value:function(re,Ae){var Te=this,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ge=arguments.length>3?arguments[3]:void 0;this.stop(),Ae&&(Ae.persist(),Ae.preventDefault());var Ue=this.props;if(Ue.disabled)return;var nt=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(nt))return;var Le=this["".concat(re,"Step")](nt,Re),le=Le>Ue.max||Le<Ue.min;if(Le>Ue.max?Le=Ue.max:Le<Ue.min&&(Le=Ue.min),this.setValue(Le,null),this.setState({focused:!0},function(){Te.pressingUpOrDown=!1}),le)return;this.autoStepTimer=setTimeout(function(){Te[re](Ae,Re,!0)},Ge?T:_)}},{key:"fixCaret",value:function(re,Ae){if(re===void 0||Ae===void 0||!this.input||!this.input.value)return;try{var Te=this.input.selectionStart,Re=this.input.selectionEnd;(re!==Te||Ae!==Re)&&this.input.setSelectionRange(re,Ae)}catch(Ge){}}},{key:"render",value:function(){var re,Ae=this.props,Te=Ae.prefixCls,Re=Ae.disabled,Ge=Ae.readOnly,Ue=Ae.useTouch,nt=Ae.autoComplete,Le=Ae.upHandler,le=Ae.downHandler,Xe=Ae.className,pe=Ae.max,Z=Ae.min,Y=Ae.style,ne=Ae.title,ce=Ae.onMouseEnter,ye=Ae.onMouseLeave,Ee=Ae.onMouseOver,Ce=Ae.onMouseOut,ue=Ae.required,ge=Ae.onClick,Oe=Ae.tabIndex,Je=Ae.type,lt=Ae.placeholder,tt=Ae.id,ke=Ae.inputMode,st=Ae.pattern,Ve=Ae.step,Ot=Ae.maxLength,Ut=Ae.autoFocus,ir=Ae.name,lr=Ae.onPaste,Sr=Ae.onInput,mt=Object(o.a)(Ae,["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"]),or=this.state,et=or.value,ur=or.focused,qr=u()(Te,(re={},Object(n.a)(re,Xe,!!Xe),Object(n.a)(re,"".concat(Te,"-disabled"),Re),Object(n.a)(re,"".concat(Te,"-focused"),ur),re)),Fe={};Object.keys(mt).forEach(function(sr){(sr.substr(0,5)==="data-"||sr.substr(0,5)==="aria-"||sr==="role")&&(Fe[sr]=mt[sr])});var $t=!Ge&&!Re,Lr=this.getInputDisplayValue(null),pt=(et||et===0)&&(isNaN(et)||Number(et)>=pe),qt=(et||et===0)&&(isNaN(et)||Number(et)<=Z),vr=pt||Re||Ge,pn=qt||Re||Ge,fr=u()("".concat(Te,"-handler"),"".concat(Te,"-handler-up"),Object(n.a)({},"".concat(Te,"-handler-up-disabled"),vr)),gr=u()("".concat(Te,"-handler"),"".concat(Te,"-handler-down"),Object(n.a)({},"".concat(Te,"-handler-down-disabled"),pn)),dn=Ue?{onTouchStart:vr?b:this.up,onTouchEnd:this.stop}:{onMouseDown:vr?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Qt=Ue?{onTouchStart:pn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:pn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return f.a.createElement("div",{className:qr,style:Y,title:ne,onMouseEnter:ce,onMouseLeave:ye,onMouseOver:Ee,onMouseOut:Ce,onFocus:function(){return null},onBlur:function(){return null}},f.a.createElement("div",{className:"".concat(Te,"-handler-wrap")},f.a.createElement("span",Object.assign({unselectable:"on"},dn,{role:"button","aria-label":"Increase Value","aria-disabled":vr,className:fr}),Le||f.a.createElement("span",{unselectable:"on",className:"".concat(Te,"-handler-up-inner"),onClick:w})),f.a.createElement("span",Object.assign({unselectable:"on"},Qt,{role:"button","aria-label":"Decrease Value","aria-disabled":pn,className:gr}),le||f.a.createElement("span",{unselectable:"on",className:"".concat(Te,"-handler-down-inner"),onClick:w}))),f.a.createElement("div",{className:"".concat(Te,"-input-wrap")},f.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Z,"aria-valuemax":pe,"aria-valuenow":et,required:ue,type:Je,placeholder:lt,onPaste:lr,onClick:ge,onMouseUp:this.onMouseUp,className:"".concat(Te,"-input"),tabIndex:Oe,autoComplete:nt,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:$t?this.onKeyDown:b,onKeyUp:$t?this.onKeyUp:b,autoFocus:Ut,maxLength:Ot,readOnly:Ge,disabled:Re,max:pe,min:Z,step:Ve,name:ir,title:ne,id:tt,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Lr),pattern:st,inputMode:ke,onInput:Sr},Fe))))}}]),q}(f.a.Component);O.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:x,required:!1,autoComplete:"off"};var F=O,R=F,B=i("FH2Y"),P=i.n(B),X=i("HQEm"),M=i.n(X),z=i("H84U"),W=i("3Nzz"),H=function(G,ee){var q={};for(var se in G)Object.prototype.hasOwnProperty.call(G,se)&&ee.indexOf(se)<0&&(q[se]=G[se]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,se=Object.getOwnPropertySymbols(G);re<se.length;re++)ee.indexOf(se[re])<0&&Object.prototype.propertyIsEnumerable.call(G,se[re])&&(q[se[re]]=G[se[re]]);return q},V=m.forwardRef(function(G,ee){var q=function(re){var Ae=re.getPrefixCls,Te=re.direction,Re=G.className,Ge=G.size,Ue=G.prefixCls,nt=G.readOnly,Le=H(G,["className","size","prefixCls","readOnly"]),le=Ae("input-number",Ue),Xe=m.createElement(P.a,{className:"".concat(le,"-handler-up-inner")}),pe=m.createElement(M.a,{className:"".concat(le,"-handler-down-inner")});return m.createElement(W.b.Consumer,null,function(Z){var Y,ne=Ge||Z,ce=u()((Y={},v()(Y,"".concat(le,"-lg"),ne==="large"),v()(Y,"".concat(le,"-sm"),ne==="small"),v()(Y,"".concat(le,"-rtl"),Te==="rtl"),v()(Y,"".concat(le,"-readonly"),nt),Y),Re);return m.createElement(R,p()({ref:ee,className:ce,upHandler:Xe,downHandler:pe,prefixCls:le,readOnly:nt},Le))})};return m.createElement(z.a,null,q)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(k,D,i){var y=i("bYtY"),p=i("9wZj"),S=i("OELB"),v=i("YXkt"),m=i("kj2x"),f=i("iPDy");function d(n,t,a){var e=t.coordinateSystem;n.each(function(l){var r=n.getItemModel(l),s,c=S.parsePercent(r.get("x"),a.getWidth()),h=S.parsePercent(r.get("y"),a.getHeight());if(!isNaN(c)&&!isNaN(h))s=[c,h];else if(t.getMarkerPosition)s=t.getMarkerPosition(n.getValues(n.dimensions,l));else if(e){var g=n.get(e.dimensions[0],l),A=n.get(e.dimensions[1],l);s=e.dataToPoint([g,A])}isNaN(c)||(s[0]=c),isNaN(h)||(s[1]=h),n.setItemLayout(l,s)})}var u=f.extend({type:"markPoint",updateTransform:function(n,t,a){t.eachSeries(function(e){var l=e.markPointModel;l&&(d(l.getData(),e,a),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(n,t,a,e){var l=n.coordinateSystem,r=n.id,s=n.getData(),c=this.markerGroupMap,h=c.get(r)||c.set(r,new p),g=o(l,n,t);t.setData(g),d(t.getData(),n,e),g.each(function(A){var b=g.getItemModel(A),w=b.getShallow("symbol"),x=b.getShallow("symbolSize"),T=y.isFunction(w),_=y.isFunction(x);if(T||_){var E=t.getRawValue(A),C=t.getDataParams(A);T&&(w=w(E,C)),_&&(x=x(E,C))}g.setItemVisual(A,{symbol:w,symbolSize:x,color:b.get("itemStyle.color")||s.getVisual("color")})}),h.updateData(g),this.group.add(h.group),g.eachItemGraphicEl(function(A){A.traverse(function(b){b.dataModel=t})}),h.__keep=!0,h.group.silent=t.get("silent")||n.get("silent")}});function o(n,t,a){var e;n?e=y.map(n&&n.dimensions,function(s){var c=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return y.defaults({name:s},c)}):e=[{name:"value",type:"float"}];var l=new v(e,a),r=y.map(a.get("data"),y.curry(m.dataTransform,t));return n&&(r=y.filter(r,y.curry(m.dataFilter,n))),l.initData(r,null,n?m.dimValueGetter:function(s){return s.value}),l}k.exports=u},g7p0:function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("+TT/"),v=S.getLayoutParams,m=S.sizeCalculable,f=S.mergeLayoutParam,d=p.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(n,t,a,e){var l=v(n);d.superApply(this,"init",arguments),u(n,l)},mergeOption:function(n,t){d.superApply(this,"mergeOption",arguments),u(this.option,n)}});function u(n,t){var a=n.cellSize;y.isArray(a)?a.length===1&&(a[1]=a[0]):a=n.cellSize=[a,a];var e=y.map([0,1],function(l){return m(t,l)&&(a[l]="auto"),a[l]!=null&&a[l]!=="auto"});f(n,t,{type:"box",ignoreSize:e})}var o=d;k.exports=o},g9YV:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("pED+"),v=i.n(S),m=i("+L6B"),f=i("R9oj"),d=i("7Kak"),u=i("sRBo"),o=i("qVdP"),n=i("T2oS"),t=i("DjyN"),a=i("5Dmo")},gCq4:function(k,D){function i(y){return this.__data__.get(y)}k.exports=i},gIYZ:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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"};D.default=y},gKaM:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},gPAo:function(k,D){function i(v){return v}function y(v,m,f,d,u){this._old=v,this._new=m,this._oldKeyGetter=f||i,this._newKeyGetter=d||i,this.context=u}y.prototype={constructor:y,add:function(v){return this._add=v,this},update:function(v){return this._update=v,this},remove:function(v){return this._remove=v,this},execute:function(){var v=this._old,m=this._new,f={},d={},u=[],o=[],n;for(p(v,f,u,"_oldKeyGetter",this),p(m,d,o,"_newKeyGetter",this),n=0;n<v.length;n++){var t=u[n],a=d[t];if(a!=null){var e=a.length;e?(e===1&&(d[t]=null),a=a.shift()):d[t]=null,this._update&&this._update(a,n)}else this._remove&&this._remove(n)}for(var n=0;n<o.length;n++){var t=o[n];if(d.hasOwnProperty(t)){var a=d[t];if(a==null)continue;if(!a.length)this._add&&this._add(a);else for(var l=0,e=a.length;l<e;l++)this._add&&this._add(a[l])}}}};function p(v,m,f,d,u){for(var o=0;o<v.length;o++){var n="_ec_"+u[d](v[o],o),t=m[n];t==null?(f.push(n),m[n]=o):(t.length||(m[n]=t=[t]),t.push(o))}}var S=y;k.exports=S},gRFJ:function(k,D,i){k.exports=[i("rdUC"),i("ynwM"),i("RELg"),i("DlR+"),i("CrYA"),i("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(k){return k<10?"0"+k:k}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(k){return rx_escapable.lastIndex=0,rx_escapable.test(k)?'"'+k.replace(rx_escapable,function(D){var i=meta[D];return typeof i=="string"?i:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+k+'"'}function str(k,D){var i,y,p,S,v=gap,m,f=D[k];f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(k)),typeof rep=="function"&&(f=rep.call(D,k,f));switch(typeof f){case"string":return quote(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(f)==="[object Array]"){for(S=f.length,i=0;i<S;i+=1)m[i]=str(i,f)||"null";return p=m.length===0?"[]":gap?`[
`+gap+m.join(`,
`+gap)+`
`+v+"]":"["+m.join(",")+"]",gap=v,p}if(rep&&typeof rep=="object")for(S=rep.length,i=0;i<S;i+=1)typeof rep[i]=="string"&&(y=rep[i],p=str(y,f),p&&m.push(quote(y)+(gap?": ":":")+p));else for(y in f)Object.prototype.hasOwnProperty.call(f,y)&&(p=str(y,f),p&&m.push(quote(y)+(gap?": ":":")+p));return p=m.length===0?"{}":gap?`{
`+gap+m.join(`,
`+gap)+`
`+v+"}":"{"+m.join(",")+"}",gap=v,p}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(k,D,i){var y;if(gap="",indent="",typeof i=="number")for(y=0;y<i;y+=1)indent+=" ";else typeof i=="string"&&(indent=i);if(rep=D,D&&typeof D!="function"&&(typeof D!="object"||typeof D.length!="number"))throw new Error("JSON.stringify");return str("",{"":k})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(k,D){var i,y,p=k[D];if(p&&typeof p=="object")for(i in p)Object.prototype.hasOwnProperty.call(p,i)&&(y=walk(p,i),y!==void 0?p[i]=y:delete p[i]);return reviver.call(k,D,p)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(k){return"\\u"+("0000"+k.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(k,D,i){var y=i("+TT/"),p=i("bYtY"),S=i("4NO4"),v=S.groupData;function m(I,O,F){I.eachSeriesByType("sankey",function(R){var B=R.get("nodeWidth"),P=R.get("nodeGap"),X=f(R,O);R.layoutInfo=X;var M=X.width,z=X.height,W=R.getGraph(),H=W.nodes,V=W.edges;u(H);var Q=p.filter(H,function(se){return se.getLayout().value===0}),G=Q.length!==0?0:R.get("layoutIterations"),ee=R.get("orient"),q=R.get("nodeAlign");d(H,V,B,P,M,z,G,ee,q)})}function f(I,O){return y.getLayoutRect(I.getBoxLayoutParams(),{width:O.getWidth(),height:O.getHeight()})}function d(I,O,F,R,B,P,X,M,z){o(I,O,F,B,P,M,z),l(I,O,P,B,R,X,M),C(I,M)}function u(I){p.each(I,function(O){var F=_(O.outEdges,T),R=_(O.inEdges,T),B=O.getValue()||0,P=Math.max(F,R,B);O.setLayout({value:P},!0)})}function o(I,O,F,R,B,P,X){for(var M=[],z=[],W=[],H=[],V=0,Q=0,G=0;G<O.length;G++)M[G]=1;for(G=0;G<I.length;G++)z[G]=I[G].inEdges.length,z[G]===0&&W.push(I[G]);for(var ee=-1;W.length;){for(var q=0;q<W.length;q++){var se=W[q],re=se.hostGraph.data.getRawDataItem(se.dataIndex),Ae=re.depth!=null&&re.depth>=0;Ae&&re.depth>ee&&(ee=re.depth),se.setLayout({depth:Ae?re.depth:V},!0),P==="vertical"?se.setLayout({dy:F},!0):se.setLayout({dx:F},!0);for(var Te=0;Te<se.outEdges.length;Te++){var Re=se.outEdges[Te],Ge=O.indexOf(Re);M[Ge]=0;var Ue=Re.node2,nt=I.indexOf(Ue);--z[nt]===0&&H.indexOf(Ue)<0&&H.push(Ue)}}++V,W=H,H=[]}for(G=0;G<M.length;G++)if(M[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Le=ee>V-1?ee:V-1;X&&X!=="left"&&t(I,X,P,Le);var Q=P==="vertical"?(B-F)/Le:(R-F)/Le;e(I,Q,P)}function n(I){var O=I.hostGraph.data.getRawDataItem(I.dataIndex);return O.depth!=null&&O.depth>=0}function t(I,O,F,R){if(O==="right"){for(var B=[],P=I,X=0;P.length;){for(var M=0;M<P.length;M++){var z=P[M];z.setLayout({skNodeHeight:X},!0);for(var W=0;W<z.inEdges.length;W++){var H=z.inEdges[W];B.indexOf(H.node1)<0&&B.push(H.node1)}}P=B,B=[],++X}p.each(I,function(V){n(V)||V.setLayout({depth:Math.max(0,R-V.getLayout().skNodeHeight)},!0)})}else O==="justify"&&a(I,R)}function a(I,O){p.each(I,function(F){!n(F)&&!F.outEdges.length&&F.setLayout({depth:O},!0)})}function e(I,O,F){p.each(I,function(R){var B=R.getLayout().depth*O;F==="vertical"?R.setLayout({y:B},!0):R.setLayout({x:B},!0)})}function l(I,O,F,R,B,P,X){var M=r(I,X);s(M,O,F,R,B,X),c(M,B,F,R,X);for(var z=1;P>0;P--)z*=.99,h(M,z,X),c(M,B,F,R,X),E(M,z,X),c(M,B,F,R,X)}function r(I,O){var F=[],R=O==="vertical"?"y":"x",B=v(I,function(P){return P.getLayout()[R]});return B.keys.sort(function(P,X){return P-X}),p.each(B.keys,function(P){F.push(B.buckets.get(P))}),F}function s(I,O,F,R,B,P){var X=Infinity;p.each(I,function(M){var z=M.length,W=0;p.each(M,function(V){W+=V.getLayout().value});var H=P==="vertical"?(R-(z-1)*B)/W:(F-(z-1)*B)/W;H<X&&(X=H)}),p.each(I,function(M){p.each(M,function(z,W){var H=z.getLayout().value*X;P==="vertical"?(z.setLayout({x:W},!0),z.setLayout({dx:H},!0)):(z.setLayout({y:W},!0),z.setLayout({dy:H},!0))})}),p.each(O,function(M){var z=+M.getValue()*X;M.setLayout({dy:z},!0)})}function c(I,O,F,R,B){var P=B==="vertical"?"x":"y";p.each(I,function(X){X.sort(function(q,se){return q.getLayout()[P]-se.getLayout()[P]});for(var M,z,W,H=0,V=X.length,Q=B==="vertical"?"dx":"dy",G=0;G<V;G++)z=X[G],W=H-z.getLayout()[P],W>0&&(M=z.getLayout()[P]+W,B==="vertical"?z.setLayout({x:M},!0):z.setLayout({y:M},!0)),H=z.getLayout()[P]+z.getLayout()[Q]+O;var ee=B==="vertical"?R:F;if(W=H-O-ee,W>0)for(M=z.getLayout()[P]-W,B==="vertical"?z.setLayout({x:M},!0):z.setLayout({y:M},!0),H=M,G=V-2;G>=0;--G)z=X[G],W=z.getLayout()[P]+z.getLayout()[Q]+O-H,W>0&&(M=z.getLayout()[P]-W,B==="vertical"?z.setLayout({x:M},!0):z.setLayout({y:M},!0)),H=z.getLayout()[P]})}function h(I,O,F){p.each(I.slice().reverse(),function(R){p.each(R,function(B){if(B.outEdges.length){var P=_(B.outEdges,g,F)/_(B.outEdges,T,F);if(isNaN(P)){var X=B.outEdges.length;P=X?_(B.outEdges,A,F)/X:0}if(F==="vertical"){var M=B.getLayout().x+(P-x(B,F))*O;B.setLayout({x:M},!0)}else{var z=B.getLayout().y+(P-x(B,F))*O;B.setLayout({y:z},!0)}}})})}function g(I,O){return x(I.node2,O)*I.getValue()}function A(I,O){return x(I.node2,O)}function b(I,O){return x(I.node1,O)*I.getValue()}function w(I,O){return x(I.node1,O)}function x(I,O){return O==="vertical"?I.getLayout().x+I.getLayout().dx/2:I.getLayout().y+I.getLayout().dy/2}function T(I){return I.getValue()}function _(I,O,F){for(var R=0,B=I.length,P=-1;++P<B;){var X=+O.call(I,I[P],F);isNaN(X)||(R+=X)}return R}function E(I,O,F){p.each(I,function(R){p.each(R,function(B){if(B.inEdges.length){var P=_(B.inEdges,b,F)/_(B.inEdges,T,F);if(isNaN(P)){var X=B.inEdges.length;P=X?_(B.inEdges,w,F)/X:0}if(F==="vertical"){var M=B.getLayout().x+(P-x(B,F))*O;B.setLayout({x:M},!0)}else{var z=B.getLayout().y+(P-x(B,F))*O;B.setLayout({y:z},!0)}}})})}function C(I,O){var F=O==="vertical"?"x":"y";p.each(I,function(R){R.outEdges.sort(function(B,P){return B.node2.getLayout()[F]-P.node2.getLayout()[F]}),R.inEdges.sort(function(B,P){return B.node1.getLayout()[F]-P.node1.getLayout()[F]})}),p.each(I,function(R){var B=0,P=0;p.each(R.outEdges,function(X){X.setLayout({sy:B},!0),B+=X.getLayout().dy}),p.each(R.inEdges,function(X){X.setLayout({ty:P},!0),P+=X.getLayout().dy})})}k.exports=m},"gb/T":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.ECB=function(){var p=y.lib.BlockCipherMode.extend();return p.Encryptor=p.extend({processBlock:function(v,m){this._cipher.encryptBlock(v,m)}}),p.Decryptor=p.extend({processBlock:function(v,m){this._cipher.decryptBlock(v,m)}}),p}(),y.mode.ECB})},"giR+":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("QbM5"),v=i.n(S)},gut8:function(k,D){var i={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=i,D.WILL_BE_RESTORED=y},gvm7:function(k,D,i){var y=i("bYtY"),p=i("dqUG");function S(m){this._zr=m.getZr(),this._show=!1,this._hideTimeout}S.prototype={constructor:S,_enterable:!0,update:function(){},show:function(m){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(m,f,d){this.el&&this._zr.remove(this.el);for(var u={},o=m,n="{marker",t="|}",a=o.indexOf(n);a>=0;){var e=o.indexOf(t),l=o.substr(a+n.length,e-a-n.length);l.indexOf("sub")>-1?u["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:f[l],textOffset:[3,0]}:u["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:f[l]},o=o.substr(e+1),a=o.indexOf("{marker")}this.el=new p({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 r=this;this.el.on("mouseover",function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0}),this.el.on("mouseout",function(){r._enterable&&(r._show&&r.hideLater(r._hideDelay)),r._inContent=!1})},setEnterable:function(m){this._enterable=m},getSize:function(){var m=this.el.getBoundingRect();return[m.width,m.height]},moveTo:function(m,f){this.el&&this.el.attr("position",[m,f])},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 v=S;k.exports=v},gwTy:function(k,D,i){},h54F:function(k,D,i){var y=i("ProS"),p=i("YXkt"),S=i("bYtY"),v=i("4NO4"),m=v.defaultEmphasis,f=i("Qxkt"),d=i("7aKB"),u=d.encodeHTML,o=i("I3/A"),n=i("xKMd"),t=y.extendSeriesModel({type:"series.graph",init:function(e){t.superApply(this,"init",arguments);var l=this;function r(){return l._categoriesData}this.legendVisualProvider=new n(r,r),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 r=e.edges||e.links||[],s=e.data||e.nodes||[],c=this;if(s&&r)return o(s,r,this,!0,h).data;function h(g,A){g.wrapMethod("getItemModel",function(E){var C=c._categoriesModels,I=E.getShallow("category"),O=C[I];return O&&(O.parentModel=E.parentModel,E.parentModel=O),E});var b=c.getModel("edgeLabel"),w=new f({label:b.option},b.parentModel,l),x=c.getModel("emphasis.edgeLabel"),T=new f({emphasis:{label:x.option}},x.parentModel,l);A.wrapMethod("getItemModel",function(E){return E.customizeGetParent(_),E});function _(E){return E=this.parsePath(E),E&&E[0]==="label"?w:E&&E[0]==="emphasis"&&E[1]==="label"?T:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,l,r){if(r==="edge"){var s=this.getData(),c=this.getDataParams(e,r),h=s.graph.getEdgeByIndex(e),g=s.getName(h.node1.dataIndex),A=s.getName(h.node2.dataIndex),b=[];return g!=null&&b.push(g),A!=null&&b.push(A),b=u(b.join(" > ")),c.value&&(b+=" : "+u(c.value)),b}else return t.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=S.map(this.option.categories||[],function(r){return r.value!=null?r:S.extend({value:0},r)}),l=new p(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(r){return l.getItemModel(r,!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}}}}),a=t;k.exports=a},h7HQ:function(k,D,i){var y=i("y+Vt"),p=i("T6xi"),S=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,f){p.buildPath(m,f,!0)}});k.exports=S},h8O9:function(k,D,i){var y=i("bYtY"),p=y.map,S=i("zM3Q"),v=i("7hqr"),m=v.isDimensionStacked;function f(d){return{seriesType:d,plan:S(),reset:function(u){var o=u.getData(),n=u.coordinateSystem,t=u.pipelineContext,a=t.large;if(!n)return;var e=p(n.dimensions,function(c){return o.mapDimension(c)}).slice(0,2),l=e.length,r=o.getCalculationInfo("stackResultDimension");m(o,e[0])&&(e[0]=r),m(o,e[1])&&(e[1]=r);function s(c,h){for(var g=c.end-c.start,A=a&&new Float32Array(g*l),b=c.start,w=0,x=[],T=[];b<c.end;b++){var _;if(l===1){var E=h.get(e[0],b);_=!isNaN(E)&&n.dataToPoint(E,null,T)}else{var E=x[0]=h.get(e[0],b),C=x[1]=h.get(e[1],b);_=!isNaN(E)&&!isNaN(C)&&n.dataToPoint(x,null,T)}a?(A[w++]=_?_[0]:NaN,A[w++]=_?_[1]:NaN):h.setItemLayout(b,_&&_.slice()||[NaN,NaN])}a&&h.setLayout("symbolPoints",A)}return l&&{progress:s}}}}k.exports=f},hD7B:function(k,D,i){var y=i("bYtY"),p=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function S(m){y.each(p,function(f){this[f]=y.bind(m[f],m)},this)}var v=S;k.exports=v},hFmY:function(k,D,i){var y=i("ProS"),p={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(p,function(S,v){v.eachComponent({mainType:"parallelAxis",query:S},function(m){m.axis.model.setActiveIntervals(S.intervals)})}),y.registerAction("parallelAxisExpand",function(S,v){v.eachComponent({mainType:"parallel",query:S},function(m){m.setAxisExpand(S)})})},hJvP:function(k,D,i){var y=i("2dDv"),p=i("IDmD");function S(v,m){var f=[];return v.eachComponent("parallel",function(d,u){var o=new y(d,v,m);o.name="parallel_"+u,o.resize(d,m),d.coordinateSystem=o,o.model=d,f.push(o)}),v.eachSeries(function(d){if(d.get("coordinateSystem")==="parallel"){var u=v.queryComponents({mainType:"parallel",index:d.get("parallelIndex"),id:d.get("parallelId")})[0];d.coordinateSystem=u.coordinateSystem}}),f}p.register("parallel",{create:S})},hM6l:function(k,D,i){var y=i("bYtY"),p=y.each,S=y.map,v=i("OELB"),m=v.linearMap,f=v.getPixelPrecision,d=v.round,u=i("4HMb"),o=u.createAxisTicks,n=u.createAxisLabels,t=u.calculateCategoryInterval,a=[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]),A=Math.max(h[0],h[1]);return c>=g&&c<=A},containData:function(c){return this.scale.contain(c)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(c){return f(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,A=this.scale;return c=A.normalize(c),this.onBand&&A.type==="ordinal"&&(g=g.slice(),l(g,A.count())),m(c,a,g,h)},coordToData:function(c,h){var g=this._extent,A=this.scale;this.onBand&&A.type==="ordinal"&&(g=g.slice(),l(g,A.count()));var b=m(c,g,a,h);return this.scale.scale(b)},pointToData:function(c,h){},getTicksCoords:function(c){c=c||{};var h=c.tickModel||this.getTickModel(),g=o(this,h),A=g.ticks,b=S(A,function(x){return{coord:this.dataToCoord(x),tickValue:x}},this),w=h.get("alignWithLabel");return r(this,b,w,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),A=S(g,function(b){return S(b,function(w){return{coord:this.dataToCoord(w),tickValue:w}},this)},this);return A},getViewLabels:function(){return n(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 A=Math.abs(c[1]-c[0]);return Math.abs(A)/g},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function l(c,h){var g=c[1]-c[0],A=h,b=g/A/2;c[0]+=b,c[1]-=b}function r(c,h,g,A){var b=h.length;if(!c.onBand||g||!b)return;var w=c.getExtent(),x,T;if(b===1)h[0].coord=w[0],x=h[1]={coord:w[0]};else{var _=h[b-1].tickValue-h[0].tickValue,E=(h[b-1].coord-h[0].coord)/_;p(h,function(F){F.coord-=E/2});var C=c.scale.getExtent();T=1+C[1]-h[b-1].tickValue,x={coord:h[b-1].coord+E*T},h.push(x)}var I=w[0]>w[1];O(h[0].coord,w[0])&&(A?h[0].coord=w[0]:h.shift()),A&&O(w[0],h[0].coord)&&h.unshift({coord:w[0]}),O(w[1],x.coord)&&(A?x.coord=w[1]:h.pop()),A&&O(x.coord,w[1])&&h.push({coord:w[1]});function O(F,R){return F=d(F),R=d(R),I?F>R:F<R}}var s=e;k.exports=s},hNWo:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("Qxkt"),v=i("4NO4"),m=v.isNameSpecified,f=i("Kagy"),d=f.legend.selector,u={all:{type:"all",title:p.clone(d.all)},inverse:{type:"inverse",title:p.clone(d.inverse)}},o=y.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,a,e){this.mergeDefaultAndTheme(t,e),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){o.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var a=t.selector;a===!0&&(a=t.selector=["all","inverse"]),p.isArray(a)&&p.each(a,function(e,l){p.isString(e)&&(e={type:e}),a[l]=p.merge(e,u[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,e=0;e<t.length;e++){var l=t[e].get("name");if(this.isSelected(l)){this.select(l),a=!0;break}}!a&&this.select(t[0].get("name"))}},_updateData:function(t){var a=[],e=[];t.eachRawSeries(function(s){var c=s.name;e.push(c);var h;if(s.legendVisualProvider){var g=s.legendVisualProvider,A=g.getAllNames();t.isSeriesFiltered(s)||(e=e.concat(A)),A.length?a=a.concat(A):h=!0}else h=!0;h&&m(s)&&a.push(s.name)}),this._availableNames=e;var l=this.get("data")||a,r=p.map(l,function(s){return(typeof s=="string"||typeof s=="number")&&(s={name:s}),new S(s,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var a=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;p.each(l,function(r){a[r.get("name")]=!1})}a[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,a=this.option.selected;p.each(t,function(e){a[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,a=this.option.selected;p.each(t,function(e){var l=e.get("name",!0);a.hasOwnProperty(l)||(a[l]=!0),a[l]=!a[l]})},isSelected:function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&p.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}}}),n=o;k.exports=n},hOwI:function(k,D){var i=Math.log(2);function y(S,v,m,f,d,u){var o=f+"-"+d,n=S.length;if(u.hasOwnProperty(o))return u[o];if(v===1){var t=Math.round(Math.log((1<<n)-1&~d)/i);return S[m][t]}for(var a=f|1<<m,e=m+1;f&1<<e;)e++;for(var l=0,r=0,s=0;r<n;r++){var c=1<<r;c&d||(l+=(s%2?-1:1)*S[m][r]*y(S,v-1,e,a,d|c,u),s++)}return u[o]=l,l}function p(S,v){var m=[[S[0],S[1],1,0,0,0,-v[0]*S[0],-v[0]*S[1]],[0,0,0,S[0],S[1],1,-v[1]*S[0],-v[1]*S[1]],[S[2],S[3],1,0,0,0,-v[2]*S[2],-v[2]*S[3]],[0,0,0,S[2],S[3],1,-v[3]*S[2],-v[3]*S[3]],[S[4],S[5],1,0,0,0,-v[4]*S[4],-v[4]*S[5]],[0,0,0,S[4],S[5],1,-v[5]*S[4],-v[5]*S[5]],[S[6],S[7],1,0,0,0,-v[6]*S[6],-v[6]*S[7]],[0,0,0,S[6],S[7],1,-v[7]*S[6],-v[7]*S[7]]],f={},d=y(m,8,0,0,0,f);if(d===0)return;for(var u=[],o=0;o<8;o++)for(var n=0;n<8;n++)u[n]==null&&(u[n]=0),u[n]+=((o+n)%2?-1:1)*y(m,7,o===0?1:0,1<<o,1<<n,f)/d*v[o];return function(t,a,e){var l=a*u[6]+e*u[7]+1;t[0]=(a*u[0]+e*u[1]+u[2])/l,t[1]=(a*u[3]+e*u[4]+u[5])/l}}D.buildTransformer=p},hX1E:function(k,D){var i=Math.PI*2;function y(p){return p%=i,p<0&&(p+=i),p}D.normalizeRadian=y},hXwI:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,f){for(var d=0;d<f.length;d++){var u=f[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var v=function(){function m(){y(this,m)}return S(m,[{key:"decodeRect",value:function(d,u,o,n,t,a,e){if(t.rQwait("COPYRECT",4))return!1;var l=t.rQshift16(),r=t.rQshift16();return a.copyImage(l,r,d,u,o,n),!0}}]),m}();D.default=v},hi0g:function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.each,v=y.isString,m=y.defaults,f=y.extend,d=y.isObject,u=y.clone,o=i("4NO4"),n=o.normalizeToArray,t=i("D5nY"),a=t.guessOrdinal,e=t.BE_ORDINAL,l=i("7G+c"),r=i("L0Ub"),s=r.OTHER_DIMENSIONS,c=i("Vi4m");function h(w,x,T){l.isInstance(x)||(x=l.seriesDataToSource(x)),T=T||{},w=(w||[]).slice();for(var _=(T.dimsDef||[]).slice(),E=p(),C=p(),I=[],O=g(x,w,_,T.dimCount),F=0;F<O;F++){var R=_[F]=f({},d(_[F])?_[F]:{name:_[F]}),B=R.name,P=I[F]=new c;B!=null&&E.get(B)==null&&(P.name=P.displayName=B,E.set(B,F)),R.type!=null&&(P.type=R.type),R.displayName!=null&&(P.displayName=R.displayName)}var X=T.encodeDef;!X&&T.encodeDefaulter&&(X=T.encodeDefaulter(x,O)),X=p(X),X.each(function(q,se){if(q=n(q).slice(),q.length===1&&!v(q[0])&&q[0]<0){X.set(se,!1);return}var re=X.set(se,[]);S(q,function(Ae,Te){v(Ae)&&(Ae=E.get(Ae)),Ae!=null&&Ae<O&&(re[Te]=Ae,z(I[Ae],se,Te))})});var M=0;S(w,function(q,se){var re,q,Ae,Te;if(v(q))re=q,q={};else{re=q.name;var Re=q.ordinalMeta;q.ordinalMeta=null,q=u(q),q.ordinalMeta=Re,Ae=q.dimsDef,Te=q.otherDims,q.name=q.coordDim=q.coordDimIndex=q.dimsDef=q.otherDims=null}var Ge=X.get(re);if(Ge===!1)return;var Ge=n(Ge);if(!Ge.length)for(var Ue=0;Ue<(Ae&&Ae.length||1);Ue++){for(;M<I.length&&I[M].coordDim!=null;)M++;M<I.length&&Ge.push(M++)}S(Ge,function(nt,Le){var le=I[nt];if(z(m(le,q),re,Le),le.name==null&&Ae){var Xe=Ae[Le];!d(Xe)&&(Xe={name:Xe}),le.name=le.displayName=Xe.name,le.defaultTooltip=Xe.defaultTooltip}Te&&m(le.otherDims,Te)})});function z(q,se,re){s.get(se)!=null?q.otherDims[se]=re:(q.coordDim=se,q.coordDimIndex=re,C.set(se,!0))}var W=T.generateCoord,H=T.generateCoordCount,V=H!=null;H=W?H||1:0;for(var Q=W||"value",G=0;G<O;G++){var P=I[G]=I[G]||new c,ee=P.coordDim;ee==null&&(P.coordDim=A(Q,C,V),P.coordDimIndex=0,(!W||H<=0)&&(P.isExtraCoord=!0),H--),P.name==null&&(P.name=A(P.coordDim,E)),P.type==null&&(a(x,G,P.name)===e.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return I}function g(w,x,T,_){var E=Math.max(w.dimensionsDetectCount||1,x.length,T.length,_||0);return S(x,function(C){var I=C.dimsDef;I&&(E=Math.max(E,I.length))}),E}function A(w,x,T){if(T||x.get(w)!=null){for(var _=0;x.get(w+_)!=null;)_++;w+=_}return x.set(w,!0),w}var b=h;k.exports=b},hkKa:function(k,D,i){"use strict";i.d(D,"a",function(){return m});var y=i("J4zp"),p=i.n(y),S=i("q1tI"),v=i.n(S);function m(){var f=S.useReducer(function(o){return o+1},0),d=p()(f,2),u=d[1];return u}},hw6D:function(k,D,i){var y=i("bYtY");function p(m){m.eachSeriesByType("radar",function(f){var d=f.getData(),u=[],o=f.coordinateSystem;if(!o)return;var n=o.getIndicatorAxes();y.each(n,function(t,a){d.each(d.mapDimension(n[a].dim),function(e,l){u[l]=u[l]||[];var r=o.dataToPoint(e,a);u[l][a]=S(r)?r:v(o)})}),d.each(function(t){var a=y.find(u[t],function(e){return S(e)})||v(o);u[t].push(a.slice()),d.setItemLayout(t,u[t])})})}function S(m){return!isNaN(m[0])&&!isNaN(m[1])}function v(m){return[m.cx,m.cy]}k.exports=p},hwYd:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("Nu4q")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PictureTwoTone";var n=v.forwardRef(o);D.default=n},hydK:function(k,D){var i="http://www.w3.org/2000/svg";function y(p){return document.createElementNS(i,p)}D.createElement=y},hyiK:function(k,D){function i(y,p,S,v,m,f){if(f>p&&f>v||f<p&&f<v)return 0;if(v===p)return 0;var d=v<p?1:-1,u=(f-p)/(v-p);(u===1||u===0)&&(d=v<p?.5:-.5);var o=u*(S-y)+y;return o===m?Infinity:o>m?d:0}k.exports=i},i38C:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=S.createHashMap,m=S.retrieve,f=S.each;function d(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=v(),this.categoryAxisMap=v(),this.firstCategoryDimIndex=null}function u(t){var a=t.get("coordinateSystem"),e=new d(a),l=o[a];if(l)return l(t,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(t,a,e,l){var r=t.getReferringComponents("xAxis")[0],s=t.getReferringComponents("yAxis")[0];a.coordSysDims=["x","y"],e.set("x",r),e.set("y",s),n(r)&&(l.set("x",r),a.firstCategoryDimIndex=0),n(s)&&(l.set("y",s),a.firstCategoryDimIndex==null&(a.firstCategoryDimIndex=1))},singleAxis:function(t,a,e,l){var r=t.getReferringComponents("singleAxis")[0];a.coordSysDims=["single"],e.set("single",r),n(r)&&(l.set("single",r),a.firstCategoryDimIndex=0)},polar:function(t,a,e,l){var r=t.getReferringComponents("polar")[0],s=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");a.coordSysDims=["radius","angle"],e.set("radius",s),e.set("angle",c),n(s)&&(l.set("radius",s),a.firstCategoryDimIndex=0),n(c)&&(l.set("angle",c),a.firstCategoryDimIndex==null&&(a.firstCategoryDimIndex=1))},geo:function(t,a,e,l){a.coordSysDims=["lng","lat"]},parallel:function(t,a,e,l){var r=t.ecModel,s=r.getComponent("parallel",t.get("parallelIndex")),c=a.coordSysDims=s.dimensions.slice();f(s.parallelAxisIndex,function(h,g){var A=r.getComponent("parallelAxis",h),b=c[g];e.set(b,A),n(A)&&a.firstCategoryDimIndex==null&&(l.set(b,A),a.firstCategoryDimIndex=g)})}};function n(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=u},i6bk:function(k,D,i){"use strict";i.d(D,"b",function(){return y}),i.d(D,"a",function(){return p});function y(S){return S!=null&&S===S.window}function p(S,v){if(typeof window=="undefined")return 0;var m=v?"scrollTop":"scrollLeft",f=0;return y(S)?f=S[v?"pageYOffset":"pageXOffset"]:S instanceof Document?f=S.documentElement[m]:S&&(f=S[m]),S&&!y(S)&&typeof f!="number"&&(f=(S.ownerDocument||S).documentElement[m]),f}},i8CU:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Fm1+"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},iLNv:function(k,D){var i="\0__throttleOriginMethod",y="\0__throttleRate",p="\0__throttleType";function S(f,d,u){var o,n=0,t=0,a=null,e,l,r,s;d=d||0;function c(){t=new Date().getTime(),a=null,f.apply(l,r||[])}var h=function(){o=new Date().getTime(),l=this,r=arguments;var g=s||d,A=s||u;s=null,e=o-(A?n:t)-g,clearTimeout(a),A?a=setTimeout(c,g):e>=0?c():a=setTimeout(c,-e),n=o};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(g){s=g},h}function v(f,d,u,o){var n=f[d];if(!n)return;var t=n[i]||n,a=n[p],e=n[y];if(e!==u||a!==o){if(u==null||!o)return f[d]=t;n=f[d]=S(t,u,o==="debounce"),n[i]=t,n[p]=o,n[y]=u}return n}function m(f,d){var u=f[d];u&&u[i]&&(f[d]=u[i])}D.throttle=S,D.createOrUpdate=v,D.clear=m},iPDy:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=p.createHashMap()},render:function(v,m,f){var d=this.markerGroupMap;d.each(function(o){o.__keep=!1});var u=this.type+"Model";m.eachSeries(function(o){var n=o[u];n&&this.renderSeries(o,n,m,f)},this),d.each(function(o){!o.__keep&&this.group.remove(o.group)},this)},renderSeries:function(){}});k.exports=S},iQDF:function(k,D,i){"use strict";var y=i("ZTW2"),p=i.n(y),S=i("+BJd"),v=i("+L6B")},iRjW:function(k,D,i){var y=i("bYtY"),p=i("Yl7c"),S=p.parseClassType,v=0;function m(u){return[u||"",v++,Math.random().toFixed(5)].join("_")}function f(u){var o={};return u.registerSubTypeDefaulter=function(n,t){n=S(n),o[n.main]=t},u.determineSubType=function(n,t){var a=t.type;if(!a){var e=S(n).main;u.hasSubTypes(n)&&o[e]&&(a=o[e](t))}return a},u}function d(u,o){u.topologicalTravel=function(e,l,r,s){if(!e.length)return;var c=n(l),h=c.graph,g=c.noEntryList,A={};for(y.each(e,function(E){A[E]=!0});g.length;){var b=g.pop(),w=h[b],x=!!A[b];x&&(r.call(s,b,w.originalDeps.slice()),delete A[b]),y.each(w.successor,x?_:T)}y.each(A,function(){throw new Error("Circle dependency may exists")});function T(E){h[E].entryCount--,h[E].entryCount===0&&g.push(E)}function _(E){A[E]=!0,T(E)}};function n(e){var l={},r=[];return y.each(e,function(s){var c=t(l,s),h=c.originalDeps=o(s),g=a(h,e);c.entryCount=g.length,c.entryCount===0&&r.push(s),y.each(g,function(A){y.indexOf(c.predecessor,A)<0&&c.predecessor.push(A);var b=t(l,A);y.indexOf(b.successor,A)<0&&b.successor.push(s)})}),{graph:l,noEntryList:r}}function t(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function a(e,l){var r=[];return y.each(e,function(s){y.indexOf(l,s)>=0&&r.push(s)}),r}}D.getUID=m,D.enableSubTypeDefaulter=f,D.enableTopologicalTravel=d},iUHT:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function p(w,x){for(var T=0;T<x.length;T++){var _=x[T];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}function S(w,x,T){return x&&p(w.prototype,x),T&&p(w,T),w}var v=[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],f=0,d,u,o,n,t,a;d=1<<16,u=1<<24,o=d|u,n=1<<2,t=1<<10,a=n|t;var e=[o|t,f|f,d|f,o|a,o|n,d|a,f|n,d|f,f|t,o|t,o|a,f|t,u|a,o|n,u|f,f|n,f|a,u|t,u|t,d|t,d|t,o|f,o|f,u|a,d|n,u|n,u|n,d|n,f|f,f|a,d|a,u|f,d|f,o|a,f|n,o|f,o|t,u|f,u|f,f|t,o|n,d|f,d|t,u|n,f|t,f|n,u|a,d|a,o|a,d|n,o|f,u|a,u|n,f|a,d|a,o|t,f|a,u|t,u|t,f|f,d|n,d|t,f|f,o|n];d=1<<20,u=1<<31,o=d|u,n=1<<5,t=1<<15,a=n|t;var l=[o|a,u|t,f|t,d|a,d|f,f|n,o|n,u|a,u|n,o|a,o|t,u|f,u|t,d|f,f|n,o|n,d|t,d|n,u|a,f|f,u|f,f|t,d|a,o|f,d|n,u|n,f|f,d|t,f|a,o|t,o|f,f|a,f|f,d|a,o|n,d|f,u|a,o|f,o|t,f|t,o|f,u|t,f|n,o|a,d|a,f|n,f|t,u|f,f|a,o|t,d|f,u|n,d|n,u|a,u|n,d|n,d|t,f|f,u|t,f|a,u|f,o|n,o|a,d|t];d=1<<17,u=1<<27,o=d|u,n=1<<3,t=1<<9,a=n|t;var r=[f|a,o|t,f|f,o|n,u|t,f|f,d|a,u|t,d|n,u|n,u|n,d|f,o|a,d|n,o|f,f|a,u|f,f|n,o|t,f|t,d|t,o|f,o|n,d|a,u|a,d|t,d|f,u|a,f|n,o|a,f|t,u|f,o|t,u|f,d|n,f|a,d|f,o|t,u|t,f|f,f|t,d|n,o|a,u|t,u|n,f|t,f|f,o|n,u|a,d|f,u|f,o|a,f|n,d|a,d|t,u|n,o|f,u|a,f|a,o|f,d|a,f|n,o|n,d|t];d=1<<13,u=1<<23,o=d|u,n=1<<0,t=1<<7,a=n|t;var s=[o|n,d|a,d|a,f|t,o|t,u|a,u|n,d|n,f|f,o|f,o|f,o|a,f|a,f|f,u|t,u|n,f|n,d|f,u|f,o|n,f|t,u|f,d|n,d|t,u|a,f|n,d|t,u|t,d|f,o|t,o|a,f|a,u|t,u|n,o|f,o|a,f|a,f|f,f|f,o|f,d|t,u|t,u|a,f|n,o|n,d|a,d|a,f|t,o|a,f|a,f|n,d|f,u|n,d|n,o|t,u|a,d|n,d|t,u|f,o|n,f|t,u|f,d|f,o|t];d=1<<25,u=1<<30,o=d|u,n=1<<8,t=1<<19,a=n|t;var c=[f|n,d|a,d|t,o|n,f|t,f|n,u|f,d|t,u|a,f|t,d|n,u|a,o|n,o|t,f|a,u|f,d|f,u|t,u|t,f|f,u|n,o|a,o|a,d|n,o|t,u|n,f|f,o|f,d|a,d|f,o|f,f|a,f|t,o|n,f|n,d|f,u|f,d|t,o|n,u|a,d|n,u|f,o|t,d|a,u|a,f|n,d|f,o|t,o|a,f|a,o|f,o|a,d|t,f|f,u|t,o|f,f|a,d|n,u|n,f|t,f|f,u|t,d|a,u|n];d=1<<22,u=1<<29,o=d|u,n=1<<4,t=1<<14,a=n|t;var h=[u|n,o|f,f|t,o|a,o|f,f|n,o|a,d|f,u|t,d|a,d|f,u|n,d|n,u|t,u|f,f|a,f|f,d|n,u|a,f|t,d|t,u|a,f|n,o|n,o|n,f|f,d|a,o|t,f|a,d|t,o|t,u|f,u|t,f|n,o|n,d|t,o|a,d|f,f|a,u|n,d|f,u|t,u|f,f|a,u|n,o|a,d|t,o|f,d|a,o|t,f|f,o|n,f|n,f|t,o|f,d|a,f|t,d|n,u|a,f|f,o|t,u|f,d|n,u|a];d=1<<21,u=1<<26,o=d|u,n=1<<1,t=1<<11,a=n|t;var g=[d|f,o|n,u|a,f|f,f|t,u|a,d|a,o|t,o|a,d|f,f|f,u|n,f|n,u|f,o|n,f|a,u|t,d|a,d|n,u|t,u|n,o|f,o|t,d|n,o|f,f|t,f|a,o|a,d|t,f|n,u|f,d|t,u|f,d|t,d|f,u|a,u|a,o|n,o|n,f|n,d|n,u|f,u|t,d|f,o|t,f|a,d|a,o|t,f|a,u|n,o|a,o|f,d|t,f|f,f|n,o|a,f|f,d|a,o|f,f|t,u|n,u|t,f|t,d|n];d=1<<18,u=1<<28,o=d|u,n=1<<6,t=1<<12,a=n|t;var A=[u|a,f|t,d|f,o|a,u|f,u|a,f|n,u|f,d|n,o|f,o|a,d|t,o|t,d|a,f|t,f|n,o|f,u|n,u|t,f|a,d|t,d|n,o|n,o|t,f|a,f|f,f|f,o|n,u|n,u|t,d|a,d|f,d|a,d|f,o|t,f|t,f|n,o|n,f|t,d|a,u|t,f|n,u|n,o|f,o|n,u|f,d|f,u|a,f|f,o|a,d|n,u|n,o|f,u|t,u|a,f|f,o|a,d|t,d|t,f|a,f|a,d|n,u|f,o|t],b=function(){function w(x){y(this,w),this.keys=[];for(var T=[],_=[],E=[],C=0,I=56;C<56;++C,I-=8){I+=I<-5?65:I<-3?31:I<-1?63:I===27?35:0;var O=I&7;T[C]=(x[I>>>3]&1<<O)!==0?1:0}for(var F=0;F<16;++F){var R=F<<1,B=R+1;E[R]=E[B]=0;for(var P=28;P<59;P+=28)for(var X=P-28;X<P;++X){var M=X+m[F];_[X]=M<P?T[M]:T[M-28]}for(var z=0;z<24;++z)_[v[z]]!==0&&(E[R]|=1<<23-z),_[v[z+24]]!==0&&(E[B]|=1<<23-z)}for(var W=0,H=0,V=0;W<16;++W){var Q=E[H++],G=E[H++];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 S(w,[{key:"enc8",value:function(T){var _=T.slice(),E=0,C,I,O;C=_[E++]<<24|_[E++]<<16|_[E++]<<8|_[E++],I=_[E++]<<24|_[E++]<<16|_[E++]<<8|_[E++],O=(C>>>4^I)&252645135,I^=O,C^=O<<4,O=(C>>>16^I)&65535,I^=O,C^=O<<16,O=(I>>>2^C)&858993459,C^=O,I^=O<<2,O=(I>>>8^C)&16711935,C^=O,I^=O<<8,I=I<<1|I>>>31&1,O=(C^I)&2863311530,C^=O,I^=O,C=C<<1|C>>>31&1;for(var F=0,R=0;F<8;++F){O=I<<28|I>>>4,O^=this.keys[R++];var B=g[O&63];B|=c[O>>>8&63],B|=r[O>>>16&63],B|=e[O>>>24&63],O=I^this.keys[R++],B|=A[O&63],B|=h[O>>>8&63],B|=s[O>>>16&63],B|=l[O>>>24&63],C^=B,O=C<<28|C>>>4,O^=this.keys[R++],B=g[O&63],B|=c[O>>>8&63],B|=r[O>>>16&63],B|=e[O>>>24&63],O=C^this.keys[R++],B|=A[O&63],B|=h[O>>>8&63],B|=s[O>>>16&63],B|=l[O>>>24&63],I^=B}for(I=I<<31|I>>>1,O=(C^I)&2863311530,C^=O,I^=O,C=C<<31|C>>>1,O=(C>>>8^I)&16711935,I^=O,C^=O<<8,O=(C>>>2^I)&858993459,I^=O,C^=O<<2,O=(I>>>16^C)&65535,C^=O,I^=O<<16,O=(I>>>4^C)&252645135,C^=O,I^=O<<4,O=[I,C],E=0;E<8;E++)_[E]=(O[E>>>2]>>>8*(3-E%4))%256,_[E]<0&&(_[E]+=256);return _}},{key:"encrypt",value:function(T){return this.enc8(T.slice(0,8)).concat(this.enc8(T.slice(8,16)))}}]),w}();D.default=b},iXHM:function(k,D){var i="";typeof navigator!="undefined"&&(i=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:i.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};k.exports=y},iXp4:function(k,D,i){var y=i("ItGF"),p=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function S(v){return y.browser.ie&&y.browser.version>=11?function(){var m=this.__clipPaths,f=this.style,d;if(m)for(var u=0;u<m.length;u++){var o=m[u],n=o&&o.shape,t=o&&o.type;if(n&&(t==="sector"&&n.startAngle===n.endAngle||t==="rect"&&(!n.width||!n.height))){for(var a=0;a<p.length;a++)p[a][2]=f[p[a][0]],f[p[a][0]]=p[a][1];d=!0;break}}if(v.apply(this,arguments),d)for(var a=0;a<p.length;a++)f[p[a][0]]=p[a][2]}:v}k.exports=S},iYpf:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("ZLWo")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FolderOpenOutlined";var n=v.forwardRef(o);D.default=n},ieMj:function(k,D,i){var y=i("OELB"),p=i("7aKB"),S=i("4NgU"),v=i("lE7J"),m=y.round,f=S.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(u,o){var n=this._extent;isNaN(u)||(n[0]=parseFloat(u)),isNaN(o)||(n[1]=parseFloat(o))},unionExtent:function(u){var o=this._extent;u[0]<o[0]&&(o[0]=u[0]),u[1]>o[1]&&(o[1]=u[1]),f.prototype.setExtent.call(this,o[0],o[1])},getInterval:function(){return this._interval},setInterval:function(u){this._interval=u,this._niceExtent=this._extent.slice(),this._intervalPrecision=v.getIntervalPrecision(u)},getTicks:function(u){var o=this._interval,n=this._extent,t=this._niceExtent,a=this._intervalPrecision,e=[];if(!o)return e;var l=1e4;n[0]<t[0]&&(u?e.push(m(t[0]-o,a)):e.push(n[0]));for(var r=t[0];r<=t[1]&&!(e.push(r),r=m(r+o,a),r===e[e.length-1]);)if(e.length>l)return[];var s=e.length?e[e.length-1]:t[1];return n[1]>s&&(u?e.push(m(s+o,a)):e.push(n[1])),e},getMinorTicks:function(u){for(var o=this.getTicks(!0),n=[],t=this.getExtent(),a=1;a<o.length;a++){for(var e=o[a],l=o[a-1],r=0,s=[],c=e-l,h=c/u;r<u-1;){var g=y.round(l+(r+1)*h);g>t[0]&&g<t[1]&&s.push(g),r++}n.push(s)}return n},getLabel:function(u,o){if(u==null)return"";var n=o&&o.precision;return n==null?n=y.getPrecisionSafe(u)||0:n==="auto"&&(n=this._intervalPrecision),u=m(u,n,!0),p.addCommas(u)},niceTicks:function(u,o,n){u=u||5;var t=this._extent,a=t[1]-t[0];if(!isFinite(a))return;a<0&&(a=-a,t.reverse());var e=v.intervalScaleNiceTicks(t,u,o,n);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(u){var o=this._extent;if(o[0]===o[1])if(o[0]!==0){var n=o[0];u.fixMax||(o[1]+=n/2),o[0]-=n/2}else o[1]=1;var t=o[1]-o[0];isFinite(t)||(o[0]=0,o[1]=1),this.niceTicks(u.splitNumber,u.minInterval,u.maxInterval);var a=this._interval;u.fixMin||(o[0]=m(Math.floor(o[0]/a)*a)),u.fixMax||(o[1]=m(Math.ceil(o[1]/a)*a))}});f.create=function(){return new f};var d=f;k.exports=d},j5sG:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=i("24YM"),p=S(i("NohK"));function S(m){return m&&m.__esModule?m:{default:m}}var v=function(f,d){var u=void 0,o=[],n=(0,p.default)(function(){o.forEach(function(r){r(f)})}),t=function(){var s=new ResizeObserver(n);return s.observe(f),n(),s},a=function(s){u||(u=t()),o.indexOf(s)===-1&&o.push(s)},e=function(){u.disconnect(),o=[],u=void 0,f.removeAttribute(y.SizeSensorId),d&&d()},l=function(s){var c=o.indexOf(s);c!==-1&&o.splice(c,1),o.length===0&&u&&e()};return{element:f,bind:a,destroy:e,unbind:l}};D.createSensor=v},jCoz:function(k,D,i){var y=i("bYtY"),p=i("4NgU"),S=i("OELB"),v=i("ieMj"),m=p.prototype,f=v.prototype,d=S.getPrecisionSafe,u=S.round,o=Math.floor,n=Math.ceil,t=Math.pow,a=Math.log,e=p.extend({type:"log",base:10,$constructor:function(){p.apply(this,arguments),this._originalScale=new v},getTicks:function(s){var c=this._originalScale,h=this._extent,g=c.getExtent();return y.map(f.getTicks.call(this,s),function(A){var b=S.round(t(this.base,A));return b=A===h[0]&&c.__fixMin?l(b,g[0]):b,b=A===h[1]&&c.__fixMax?l(b,g[1]):b,b},this)},getMinorTicks:f.getMinorTicks,getLabel:f.getLabel,scale:function(s){return s=m.scale.call(this,s),t(this.base,s)},setExtent:function(s,c){var h=this.base;s=a(s)/a(h),c=a(c)/a(h),f.setExtent.call(this,s,c)},getExtent:function(){var s=this.base,c=m.getExtent.call(this);c[0]=t(s,c[0]),c[1]=t(s,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(s){this._originalScale.unionExtent(s);var c=this.base;s[0]=a(s[0])/a(c),s[1]=a(s[1])/a(c),m.unionExtent.call(this,s)},unionExtentFromData:function(s,c){this.unionExtent(s.getApproximateExtent(c))},niceTicks:function(s){s=s||10;var c=this._extent,h=c[1]-c[0];if(h===Infinity||h<=0)return;var g=S.quantity(h),A=s/h*g;for(A<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[S.round(n(c[0]/g)*g),S.round(o(c[1]/g)*g)];this._interval=g,this._niceExtent=b},niceExtent:function(s){f.niceExtent.call(this,s);var c=this._originalScale;c.__fixMin=s.fixMin,c.__fixMax=s.fixMax}});y.each(["contain","normalize"],function(s){e.prototype[s]=function(c){return c=a(c)/a(this.base),m[s].call(this,c)}}),e.create=function(){return new e};function l(s,c){return u(s,d(c))}var r=e;k.exports=r},jN4g:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CloseCircleFilled";var d=D.a=p.forwardRef(f)},jO45:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="CheckCircleFilled";var d=D.a=p.forwardRef(f)},jO9C:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(S,v){S.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(S,v)},unpad:function(S){y.pad.ZeroPadding.unpad(S),S.sigBytes--}},y.pad.Iso97971})},jTL6:function(k,D,i){var y=i("y+Vt"),p=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(v,m){var f=m.cx,d=m.cy,u=Math.max(m.r,0),o=m.startAngle,n=m.endAngle,t=m.clockwise,a=Math.cos(o),e=Math.sin(o);v.moveTo(a*u+f,e*u+d),v.arc(f,d,u,o,n,!t)}});k.exports=p},je13:function(k,D,i){var y=i("5nXd"),p=i("gRFJ"),S=[i("uQRt")];k.exports=y.createStore(p,S)},jett:function(k,D,i){var y=i("ProS");i("VSLf"),i("oBaM"),i("FGaS");var p=i("mOdp"),S=i("f5Yq"),v=i("hw6D"),m=i("0/Rx"),f=i("eJH7");y.registerVisual(p("radar")),y.registerVisual(S("radar","circle")),y.registerLayout(v),y.registerProcessor(m("radar")),y.registerPreprocessor(f)},jhfD:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ArrowLeftOutlined";var d=D.a=p.forwardRef(f)},jkPA:function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.isObject,v=y.map;function m(n){this.categories=n.categories||[],this._needCollect=n.needCollect,this._deduplication=n.deduplication,this._map}m.createByAxisModel=function(n){var t=n.option,a=t.data,e=a&&v(a,u);return new m({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var f=m.prototype;f.getOrdinal=function(n){return d(this).get(n)},f.parseAndCollect=function(n){var t,a=this._needCollect;if(typeof n!="string"&&!a)return n;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=n,t;var e=d(this);return t=e.get(n),t==null&&(a?(t=this.categories.length,this.categories[t]=n,e.set(n,t)):t=NaN),t};function d(n){return n._map||(n._map=p(n.categories))}function u(n){return S(n)&&n.value!=null?n.value:n+""}var o=m;k.exports=o},jndi:function(k,D,i){var y=i("bYtY"),p=i("Qe9p"),S=i("YXkt"),v=i("OELB"),m=i("IwbS"),f=i("kj2x"),d=i("iPDy"),u=function(r,s,c,h){var g=f.dataTransform(r,h[0]),A=f.dataTransform(r,h[1]),b=y.retrieve,w=g.coord,x=A.coord;w[0]=b(w[0],-Infinity),w[1]=b(w[1],-Infinity),x[0]=b(x[0],Infinity),x[1]=b(x[1],Infinity);var T=y.mergeAll([{},g,A]);return T.coord=[g.coord,A.coord],T.x0=g.x,T.y0=g.y,T.x1=A.x,T.y1=A.y,T};function o(r){return!isNaN(r)&&!isFinite(r)}function n(r,s,c,h){var g=1-r;return o(s[g])&&o(c[g])}function t(r,s){var c=s.coord[0],h=s.coord[1];return r.type==="cartesian2d"&&(c&&h&&(n(1,c,h,r)||n(0,c,h,r)))?!0:f.dataFilter(r,{coord:c,x:s.x0,y:s.y0})||f.dataFilter(r,{coord:h,x:s.x1,y:s.y1})}function a(r,s,c,h,g){var A=h.coordinateSystem,b=r.getItemModel(s),w,x=v.parsePercent(b.get(c[0]),g.getWidth()),T=v.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(x)&&!isNaN(T))w=[x,T];else{if(h.getMarkerPosition)w=h.getMarkerPosition(r.getValues(c,s));else{var _=r.get(c[0],s),E=r.get(c[1],s),C=[_,E];A.clampData&&A.clampData(C,C),w=A.dataToPoint(C,!0)}if(A.type==="cartesian2d"){var I=A.getAxis("x"),O=A.getAxis("y"),_=r.get(c[0],s),E=r.get(c[1],s);o(_)?w[0]=I.toGlobalCoord(I.getExtent()[c[0]==="x0"?0:1]):o(E)&&(w[1]=O.toGlobalCoord(O.getExtent()[c[1]==="y0"?0:1]))}isNaN(x)||(w[0]=x),isNaN(T)||(w[1]=T)}return w}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];d.extend({type:"markArea",updateTransform:function(r,s,c){s.eachSeries(function(h){var g=h.markAreaModel;if(g){var A=g.getData();A.each(function(b){var w=y.map(e,function(T){return a(A,b,T,h,c)});A.setItemLayout(b,w);var x=A.getItemGraphicEl(b);x.setShape("points",w)})}},this)},renderSeries:function(r,s,c,h){var g=r.coordinateSystem,A=r.id,b=r.getData(),w=this.markerGroupMap,x=w.get(A)||w.set(A,{group:new m.Group});this.group.add(x.group),x.__keep=!0;var T=l(g,r,s);s.setData(T),T.each(function(_){T.setItemLayout(_,y.map(e,function(E){return a(T,_,E,r,h)})),T.setItemVisual(_,{color:b.getVisual("color")})}),T.diff(x.__data).add(function(_){var E=new m.Polygon({shape:{points:T.getItemLayout(_)}});T.setItemGraphicEl(_,E),x.group.add(E)}).update(function(_,E){var C=x.__data.getItemGraphicEl(E);m.updateProps(C,{shape:{points:T.getItemLayout(_)}},s,_),x.group.add(C),T.setItemGraphicEl(_,C)}).remove(function(_){var E=x.__data.getItemGraphicEl(_);x.group.remove(E)}).execute(),T.eachItemGraphicEl(function(_,E){var C=T.getItemModel(E),I=C.getModel("label"),O=C.getModel("emphasis.label"),F=T.getItemVisual(E,"color");_.useStyle(y.defaults(C.getModel("itemStyle").getItemStyle(),{fill:p.modifyAlpha(F,.4),stroke:F})),_.hoverStyle=C.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(_.style,_.hoverStyle,I,O,{labelFetcher:s,labelDataIndex:E,defaultText:T.getName(E)||"",isRectText:!0,autoColor:F}),m.setHoverStyle(_,{}),_.dataModel=s}),x.__data=T,x.group.silent=s.get("silent")||r.get("silent")}});function l(r,s,c){var h,g,A=["x0","y0","x1","y1"];r?(h=y.map(r&&r.dimensions,function(x){var T=s.getData(),_=T.getDimensionInfo(T.mapDimension(x))||{};return y.defaults({name:x},_)}),g=new S(y.map(A,function(x,T){return{name:x,type:h[T%2].type}}),c)):(h=[{name:"value",type:"float"}],g=new S(h,c));var b=y.map(c.get("data"),y.curry(u,s,r,c));r&&(b=y.filter(b,y.curry(t,r)));var w=r?function(x,T,_,E){return x.coord[Math.floor(E/2)][E%2]}:function(x){return x.value};return g.initData(b,null,w),g.hasItemOption=!0,g}},"jsU+":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IUWy"),v=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){v.superApply(this,"optionUpdated",arguments),p.each(this.option.feature,function(f,d){var u=S.get(d);u&&p.merge(f,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=v;k.exports=m},jtI2:function(k,D,i){i("SMc4");var y=i("bLfw"),p=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"}});k.exports=p},juDX:function(k,D,i){i("P47w");var y=i("aX58"),p=y.registerPainter,S=i("3CBa");p("svg",S)},"k+1r":function(k,D,i){var y=i("QkVE");function p(S){var v=y(this,S).delete(S);return this.size-=v?1:0,v}k.exports=p},k5C7:function(k,D,i){i("0JAE"),i("g7p0"),i("7mYs")},k9D9:function(k,D){var i="original",y="arrayRows",p="objectRows",S="keyedColumns",v="unknown",m="typedArray",f="column",d="row";D.SOURCE_FORMAT_ORIGINAL=i,D.SOURCE_FORMAT_ARRAY_ROWS=y,D.SOURCE_FORMAT_OBJECT_ROWS=p,D.SOURCE_FORMAT_KEYED_COLUMNS=S,D.SOURCE_FORMAT_UNKNOWN=v,D.SOURCE_FORMAT_TYPED_ARRAY=m,D.SERIES_LAYOUT_BY_COLUMN=f,D.SERIES_LAYOUT_BY_ROW=d},kDyi:function(k,D){function i(y){var p=y.findComponents({mainType:"legend"});p&&p.length&&y.filterSeries(function(S){for(var v=0;v<p.length;v++)if(!p[v].isSelected(S.name))return!1;return!0})}k.exports=i},kGiB:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("ABKa"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},kMLO:function(k,D,i){var y=i("XxSj"),p=i("Qe9p"),S=i("bYtY"),v=S.isArray,m="itemStyle",f={seriesType:"treemap",reset:function(r,s,c,h){var g=r.getData().tree,A=g.root,b=r.getModel(m);if(A.isRemoved())return;var w=S.map(g.levelModels,function(x){return x?x.get(m):null});d(A,{},w,b,r.getViewRoot().getAncestors(),r)}};function d(r,s,c,h,g,A){var b=r.getModel(),w=r.getLayout();if(!w||w.invisible||!w.isInView)return;var x=r.getModel(m),T=c[r.depth],_=u(x,s,T,h),E=x.get("borderColor"),C=x.get("borderColorSaturation"),I;C!=null&&(I=o(_,r),E=n(C,I)),r.setVisual("borderColor",E);var O=r.viewChildren;if(!O||!O.length)I=o(_,r),r.setVisual("color",I);else{var F=a(r,b,w,x,_,O);S.each(O,function(R,B){if(R.depth>=g.length||R===g[R.depth]){var P=l(b,_,R,B,F,A);d(R,P,c,h,g,A)}})}}function u(r,s,c,h){var g=S.extend({},s);return S.each(["color","colorAlpha","colorSaturation"],function(A){var b=r.get(A,!0);b==null&&c&&(b=c[A]),b==null&&(b=s[A]),b==null&&(b=h.get(A)),b!=null&&(g[A]=b)}),g}function o(r){var s=t(r,"color");if(s){var c=t(r,"colorAlpha"),h=t(r,"colorSaturation");return h&&(s=p.modifyHSL(s,null,null,h)),c&&(s=p.modifyAlpha(s,c)),s}}function n(r,s){return s!=null?p.modifyHSL(s,null,null,r):null}function t(r,s){var c=r[s];if(c!=null&&c!=="none")return c}function a(r,s,c,h,g,A){if(!A||!A.length)return;var b=e(s,"color")||g.color!=null&&g.color!=="none"&&(e(s,"colorAlpha")||e(s,"colorSaturation"));if(!b)return;var w=s.get("visualMin"),x=s.get("visualMax"),T=c.dataExtent.slice();w!=null&&w<T[0]&&(T[0]=w),x!=null&&x>T[1]&&(T[1]=x);var _=s.get("colorMappingBy"),E={type:b.name,dataExtent:T,visual:b.range};E.type==="color"&&(_==="index"||_==="id")?(E.mappingMethod="category",E.loop=!0):E.mappingMethod="linear";var C=new y(E);return C.__drColorMappingBy=_,C}function e(r,s){var c=r.get(s);return v(c)&&c.length?{name:s,range:c}:null}function l(r,s,c,h,g,A){var b=S.extend({},s);if(g){var w=g.type,x=w==="color"&&g.__drColorMappingBy,T=x==="index"?h:x==="id"?A.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[w]=g.mapValueToVisual(T)}return b}k.exports=f},"kVK+":function(k,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(i,y,p,S,v){var m,f,d=v*8-S-1,u=(1<<d)-1,o=u>>1,n=-7,t=p?v-1:0,a=p?-1:1,e=i[y+t];for(t+=a,m=e&(1<<-n)-1,e>>=-n,n+=d;n>0;m=m*256+i[y+t],t+=a,n-=8);for(f=m&(1<<-n)-1,m>>=-n,n+=S;n>0;f=f*256+i[y+t],t+=a,n-=8);if(m===0)m=1-o;else{if(m===u)return f?NaN:(e?-1:1)*Infinity;f=f+Math.pow(2,S),m=m-o}return(e?-1:1)*f*Math.pow(2,m-S)},D.write=function(i,y,p,S,v,m){var f,d,u,o=m*8-v-1,n=(1<<o)-1,t=n>>1,a=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=S?0:m-1,l=S?1:-1,r=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===Infinity?(d=isNaN(y)?1:0,f=n):(f=Math.floor(Math.log(y)/Math.LN2),y*(u=Math.pow(2,-f))<1&&(f--,u*=2),f+t>=1?y+=a/u:y+=a*Math.pow(2,1-t),y*u>=2&&(f++,u/=2),f+t>=n?(d=0,f=n):f+t>=1?(d=(y*u-1)*Math.pow(2,v),f=f+t):(d=y*Math.pow(2,t-1)*Math.pow(2,v),f=0));v>=8;i[p+e]=d&255,e+=l,d/=256,v-=8);for(f=f<<v|d,o+=v;o>0;i[p+e]=f&255,e+=l,f/=256,o-=8);i[p+e-l]|=r*128}},kekF:function(k,D){function i(y,p){return function(S){return y(p(S))}}k.exports=i},kj2x:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=i("7hqr"),v=S.isDimensionStacked,m=y.indexOf;function f(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,A,b,w){var x=[],T=v(h,A),_=T?h.getCalculationInfo("stackResultDimension"):A,E=s(h,_,c),C=h.indicesOfNearest(_,E)[0];x[b]=h.get(g,C),x[w]=h.get(_,C);var I=h.get(A,C),O=p.getPrecision(h.get(A,C));return O=Math.min(O,20),O>=0&&(x[w]=+x[w].toFixed(O)),[x,I]}var o=y.curry,n={min:o(u,"min"),max:o(u,"max"),average:o(u,"average")};function t(c,h){var g=c.getData(),A=c.coordinateSystem;if(h&&!d(h)&&!y.isArray(h.coord)&&A){var b=A.dimensions,w=a(h,g,A,c);if(h=y.clone(h),h.type&&n[h.type]&&w.baseAxis&&w.valueAxis){var x=m(b,w.baseAxis.dim),T=m(b,w.valueAxis.dim),_=n[h.type](g,w.baseDataDim,w.valueDataDim,x,T);h.coord=_[0],h.value=_[1]}else{for(var E=[h.xAxis!=null?h.xAxis:h.radiusAxis,h.yAxis!=null?h.yAxis:h.angleAxis],C=0;C<2;C++)n[E[C]]&&(E[C]=s(g,g.mapDimension(b[C]),E[C]));h.coord=E}}return h}function a(c,h,g,A){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(A,b.valueDataDim)),b.baseAxis=g.getOtherAxis(b.valueAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim)):(b.baseAxis=A.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(),A=g.dimensions;h=g.getDimension(h);for(var b=0;b<A.length;b++){var w=g.getDimensionInfo(A[b]);if(w.name===h)return w.coordDim}}function l(c,h){return c&&c.containData&&h.coord&&!f(h)?c.containData(h.coord):!0}function r(c,h,g,A){return A<2?c.coord&&c.coord[A]:c.value}function s(c,h,g){if(g==="average"){var A=0,b=0;return c.each(h,function(w,x){isNaN(w)||(A+=w,b++)}),A/b}else return g==="median"?c.getMedian(h):c.getDataExtent(h,!0)[g==="max"?1:0]}D.dataTransform=t,D.getAxisInfo=a,D.dataFilter=l,D.dimValueGetter=r,D.numCalculate=s},knOB:function(k,D,i){var y=i("bYtY"),p=i("hM6l");function S(m,f){p.call(this,"radius",m,f),this.type="category"}S.prototype={constructor:S,pointToData:function(m,f){return this.polar.pointToData(m,f)[this.dim==="radius"?0:1]},dataToRadius:p.prototype.dataToCoord,radiusToData:p.prototype.coordToData},y.inherits(S,p);var v=S;k.exports=v},ko1b:function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("Bsck"),v=i("Qxkt"),m=i("7aKB"),f=m.encodeHTML,d=m.addCommas,u=i("VaxA"),o=u.wrapTreePathInfo,n=p.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 r={name:e.name,children:e.data};t(r);var s=e.levels||[];s=e.levels=a(s,l);var c=y.map(s||[],function(A){return new v(A,this,l)},this),h=S.createTree(r,this,null,g);function g(A){A.wrapMethod("getItemModel",function(b,w){var x=h.getNodeByDataIndex(w),T=c[x.depth];return T&&(b.parentModel=T),b})}return h.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),r=this.getRawValue(e),s=y.isArray(r)?d(r[0]):d(r),c=l.getName(e);return f(c+": "+s)},getDataParams:function(e){var l=p.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=o(r,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 r=l.get(e);return r==null&&l.set(e,r=this._idIndexMapCount++),r},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(s){t(s);var c=s.value;y.isArray(c)&&(c=c[0]),l+=c});var r=e.value;y.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=l),r<0&&(r=0),y.isArray(e.value)?e.value[0]=r:e.value=r}function a(e,l){var r=l.get("color");if(!r)return;e=e||[];var s;if(y.each(e,function(h){var g=new v(h),A=g.get("color");(g.get("itemStyle.color")||A&&A!=="none")&&(s=!0)}),!s){var c=e[0]||(e[0]={});c.color=r.slice()}return e}k.exports=n},kzFp:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=D.pick=function(S,v){var m={};return v.forEach(function(f){m[f]=S[f]}),m}},kzvK:function(k,D,i){var y=i("sS/r"),p=y.extend({type:"timeline"});k.exports=p},"l+S1":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="SearchOutlined";var d=D.a=p.forwardRef(f)},lE7J:function(k,D,i){var y=i("OELB"),p=y.round;function S(d,u,o,n){var t={},a=d[1]-d[0],e=t.interval=y.nice(a/u,!0);o!=null&&e<o&&(e=t.interval=o),n!=null&&e>n&&(e=t.interval=n);var l=t.intervalPrecision=v(e),r=t.niceTickExtent=[p(Math.ceil(d[0]/e)*e,l),p(Math.floor(d[1]/e)*e,l)];return f(r,d),t}function v(d){return y.getPrecisionSafe(d)+2}function m(d,u,o){d[u]=Math.max(Math.min(d[u],o[1]),o[0])}function f(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])}D.intervalScaleNiceTicks=S,D.getIntervalPrecision=v,D.fixExtent=f},lELe:function(k,D,i){var y=i("bYtY");function p(S){var v=[];y.each(S.series,function(m){m&&m.type==="map"&&(v.push(m),m.map=m.map||m.mapType,y.defaults(m,m.mapLocation))})}k.exports=p},lLGD:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("nVfU"),v=S.layout,m=S.largeLayout;i("Wqna"),i("F7hV"),i("Z8zF"),i("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,p.curry(v,"bar")),y.registerLayout(y.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,m),y.registerVisual({seriesType:"bar",reset:function(f){f.getData().setVisual("legendSymbol","roundRect")}})},lMfh:function(k,D,i){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(q){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},y(q)}var p=/^\s+/,S=/\s+$/;function v(q,se){if(q=q||"",se=se||{},q instanceof v)return q;if(!(this instanceof v))return new v(q,se);var re=m(q);this._originalInput=q,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=Math.round(100*this._a)/100,this._format=se.format||re.format,this._gradientType=se.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=re.ok}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var se=this.toRgb();return(se.r*299+se.g*587+se.b*114)/1e3},getLuminance:function(){var se=this.toRgb(),re,Ae,Te,Re,Ge,Ue;return re=se.r/255,Ae=se.g/255,Te=se.b/255,re<=.03928?Re=re/12.92:Re=Math.pow((re+.055)/1.055,2.4),Ae<=.03928?Ge=Ae/12.92:Ge=Math.pow((Ae+.055)/1.055,2.4),Te<=.03928?Ue=Te/12.92:Ue=Math.pow((Te+.055)/1.055,2.4),.2126*Re+.7152*Ge+.0722*Ue},setAlpha:function(se){return this._a=O(se),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var se=o(this._r,this._g,this._b);return{h:se.h*360,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=o(this._r,this._g,this._b),re=Math.round(se.h*360),Ae=Math.round(se.s*100),Te=Math.round(se.v*100);return this._a==1?"hsv("+re+", "+Ae+"%, "+Te+"%)":"hsva("+re+", "+Ae+"%, "+Te+"%, "+this._roundA+")"},toHsl:function(){var se=d(this._r,this._g,this._b);return{h:se.h*360,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=d(this._r,this._g,this._b),re=Math.round(se.h*360),Ae=Math.round(se.s*100),Te=Math.round(se.l*100);return this._a==1?"hsl("+re+", "+Ae+"%, "+Te+"%)":"hsla("+re+", "+Ae+"%, "+Te+"%, "+this._roundA+")"},toHex:function(se){return t(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(se){return a(this._r,this._g,this._b,this._a,se)},toHex8String:function(se){return"#"+this.toHex8(se)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(F(this._r,255)*100)+"%",g:Math.round(F(this._g,255)*100)+"%",b:Math.round(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(F(this._r,255)*100)+"%, "+Math.round(F(this._g,255)*100)+"%, "+Math.round(F(this._b,255)*100)+"%)":"rgba("+Math.round(F(this._r,255)*100)+"%, "+Math.round(F(this._g,255)*100)+"%, "+Math.round(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:C[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(se){var re="#"+e(this._r,this._g,this._b,this._a),Ae=re,Te=this._gradientType?"GradientType = 1, ":"";if(se){var Re=v(se);Ae="#"+e(Re._r,Re._g,Re._b,Re._a)}return"progid:DXImageTransform.Microsoft.gradient("+Te+"startColorstr="+re+",endColorstr="+Ae+")"},toString:function(se){var re=!!se;se=se||this._format;var Ae=!1,Te=this._a<1&&this._a>=0,Re=!re&&Te&&(se==="hex"||se==="hex6"||se==="hex3"||se==="hex4"||se==="hex8"||se==="name");return Re?se==="name"&&this._a===0?this.toName():this.toRgbString():(se==="rgb"&&(Ae=this.toRgbString()),se==="prgb"&&(Ae=this.toPercentageRgbString()),(se==="hex"||se==="hex6")&&(Ae=this.toHexString()),se==="hex3"&&(Ae=this.toHexString(!0)),se==="hex4"&&(Ae=this.toHex8String(!0)),se==="hex8"&&(Ae=this.toHex8String()),se==="name"&&(Ae=this.toName()),se==="hsl"&&(Ae=this.toHslString()),se==="hsv"&&(Ae=this.toHsvString()),Ae||this.toHexString())},clone:function(){return v(this.toString())},_applyModification:function(se,re){var Ae=se.apply(null,[this].concat([].slice.call(re)));return this._r=Ae._r,this._g=Ae._g,this._b=Ae._b,this.setAlpha(Ae._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(r,arguments)},greyscale:function(){return this._applyModification(s,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(se,re){return se.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,[3])},tetrad:function(){return this._applyCombination(w,[4])}},v.fromRatio=function(q,se){if(y(q)=="object"){var re={};for(var Ae in q)q.hasOwnProperty(Ae)&&(Ae==="a"?re[Ae]=q[Ae]:re[Ae]=z(q[Ae]));q=re}return v(q,se)};function m(q){var se={r:0,g:0,b:0},re=1,Ae=null,Te=null,Re=null,Ge=!1,Ue=!1;return typeof q=="string"&&(q=G(q)),y(q)=="object"&&(Q(q.r)&&Q(q.g)&&Q(q.b)?(se=f(q.r,q.g,q.b),Ge=!0,Ue=String(q.r).substr(-1)==="%"?"prgb":"rgb"):Q(q.h)&&Q(q.s)&&Q(q.v)?(Ae=z(q.s),Te=z(q.v),se=n(q.h,Ae,Te),Ge=!0,Ue="hsv"):Q(q.h)&&Q(q.s)&&Q(q.l)&&(Ae=z(q.s),Re=z(q.l),se=u(q.h,Ae,Re),Ge=!0,Ue="hsl"),q.hasOwnProperty("a")&&(re=q.a)),re=O(re),{ok:Ge,format:q.format||Ue,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:re}}function f(q,se,re){return{r:F(q,255)*255,g:F(se,255)*255,b:F(re,255)*255}}function d(q,se,re){q=F(q,255),se=F(se,255),re=F(re,255);var Ae=Math.max(q,se,re),Te=Math.min(q,se,re),Re,Ge,Ue=(Ae+Te)/2;if(Ae==Te)Re=Ge=0;else{var nt=Ae-Te;Ge=Ue>.5?nt/(2-Ae-Te):nt/(Ae+Te);switch(Ae){case q:Re=(se-re)/nt+(se<re?6:0);break;case se:Re=(re-q)/nt+2;break;case re:Re=(q-se)/nt+4;break}Re/=6}return{h:Re,s:Ge,l:Ue}}function u(q,se,re){var Ae,Te,Re;q=F(q,360),se=F(se,100),re=F(re,100);function Ge(Le,le,Xe){return Xe<0&&(Xe+=1),Xe>1&&(Xe-=1),Xe<1/6?Le+(le-Le)*6*Xe:Xe<1/2?le:Xe<2/3?Le+(le-Le)*(2/3-Xe)*6:Le}if(se===0)Ae=Te=Re=re;else{var Ue=re<.5?re*(1+se):re+se-re*se,nt=2*re-Ue;Ae=Ge(nt,Ue,q+1/3),Te=Ge(nt,Ue,q),Re=Ge(nt,Ue,q-1/3)}return{r:Ae*255,g:Te*255,b:Re*255}}function o(q,se,re){q=F(q,255),se=F(se,255),re=F(re,255);var Ae=Math.max(q,se,re),Te=Math.min(q,se,re),Re,Ge,Ue=Ae,nt=Ae-Te;if(Ge=Ae===0?0:nt/Ae,Ae==Te)Re=0;else{switch(Ae){case q:Re=(se-re)/nt+(se<re?6:0);break;case se:Re=(re-q)/nt+2;break;case re:Re=(q-se)/nt+4;break}Re/=6}return{h:Re,s:Ge,v:Ue}}function n(q,se,re){q=F(q,360)*6,se=F(se,100),re=F(re,100);var Ae=Math.floor(q),Te=q-Ae,Re=re*(1-se),Ge=re*(1-Te*se),Ue=re*(1-(1-Te)*se),nt=Ae%6,Le=[re,Ge,Re,Re,Ue,re][nt],le=[Ue,re,re,Ge,Re,Re][nt],Xe=[Re,Re,Ue,re,re,Ge][nt];return{r:Le*255,g:le*255,b:Xe*255}}function t(q,se,re,Ae){var Te=[M(Math.round(q).toString(16)),M(Math.round(se).toString(16)),M(Math.round(re).toString(16))];return Ae&&Te[0].charAt(0)==Te[0].charAt(1)&&Te[1].charAt(0)==Te[1].charAt(1)&&Te[2].charAt(0)==Te[2].charAt(1)?Te[0].charAt(0)+Te[1].charAt(0)+Te[2].charAt(0):Te.join("")}function a(q,se,re,Ae,Te){var Re=[M(Math.round(q).toString(16)),M(Math.round(se).toString(16)),M(Math.round(re).toString(16)),M(W(Ae))];return Te&&Re[0].charAt(0)==Re[0].charAt(1)&&Re[1].charAt(0)==Re[1].charAt(1)&&Re[2].charAt(0)==Re[2].charAt(1)&&Re[3].charAt(0)==Re[3].charAt(1)?Re[0].charAt(0)+Re[1].charAt(0)+Re[2].charAt(0)+Re[3].charAt(0):Re.join("")}function e(q,se,re,Ae){var Te=[M(W(Ae)),M(Math.round(q).toString(16)),M(Math.round(se).toString(16)),M(Math.round(re).toString(16))];return Te.join("")}v.equals=function(q,se){return!q||!se?!1:v(q).toRgbString()==v(se).toRgbString()},v.random=function(){return v.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function l(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.s-=se/100,re.s=R(re.s),v(re)}function r(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.s+=se/100,re.s=R(re.s),v(re)}function s(q){return v(q).desaturate(100)}function c(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.l+=se/100,re.l=R(re.l),v(re)}function h(q,se){se=se===0?0:se||10;var re=v(q).toRgb();return re.r=Math.max(0,Math.min(255,re.r-Math.round(255*-(se/100)))),re.g=Math.max(0,Math.min(255,re.g-Math.round(255*-(se/100)))),re.b=Math.max(0,Math.min(255,re.b-Math.round(255*-(se/100)))),v(re)}function g(q,se){se=se===0?0:se||10;var re=v(q).toHsl();return re.l-=se/100,re.l=R(re.l),v(re)}function A(q,se){var re=v(q).toHsl(),Ae=(re.h+se)%360;return re.h=Ae<0?360+Ae:Ae,v(re)}function b(q){var se=v(q).toHsl();return se.h=(se.h+180)%360,v(se)}function w(q,se){if(isNaN(se)||se<=0)throw new Error("Argument to polyad must be a positive number");for(var re=v(q).toHsl(),Ae=[v(q)],Te=360/se,Re=1;Re<se;Re++)Ae.push(v({h:(re.h+Re*Te)%360,s:re.s,l:re.l}));return Ae}function x(q){var se=v(q).toHsl(),re=se.h;return[v(q),v({h:(re+72)%360,s:se.s,l:se.l}),v({h:(re+216)%360,s:se.s,l:se.l})]}function T(q,se,re){se=se||6,re=re||30;var Ae=v(q).toHsl(),Te=360/re,Re=[v(q)];for(Ae.h=(Ae.h-(Te*se>>1)+720)%360;--se;)Ae.h=(Ae.h+Te)%360,Re.push(v(Ae));return Re}function _(q,se){se=se||6;for(var re=v(q).toHsv(),Ae=re.h,Te=re.s,Re=re.v,Ge=[],Ue=1/se;se--;)Ge.push(v({h:Ae,s:Te,v:Re})),Re=(Re+Ue)%1;return Ge}v.mix=function(q,se,re){re=re===0?0:re||50;var Ae=v(q).toRgb(),Te=v(se).toRgb(),Re=re/100,Ge={r:(Te.r-Ae.r)*Re+Ae.r,g:(Te.g-Ae.g)*Re+Ae.g,b:(Te.b-Ae.b)*Re+Ae.b,a:(Te.a-Ae.a)*Re+Ae.a};return v(Ge)},v.readability=function(q,se){var re=v(q),Ae=v(se);return(Math.max(re.getLuminance(),Ae.getLuminance())+.05)/(Math.min(re.getLuminance(),Ae.getLuminance())+.05)},v.isReadable=function(q,se,re){var Ae=v.readability(q,se),Te,Re;Re=!1,Te=ee(re);switch(Te.level+Te.size){case"AAsmall":case"AAAlarge":Re=Ae>=4.5;break;case"AAlarge":Re=Ae>=3;break;case"AAAsmall":Re=Ae>=7;break}return Re},v.mostReadable=function(q,se,re){var Ae=null,Te=0,Re,Ge,Ue,nt;re=re||{},Ge=re.includeFallbackColors,Ue=re.level,nt=re.size;for(var Le=0;Le<se.length;Le++)Re=v.readability(q,se[Le]),Re>Te&&(Te=Re,Ae=v(se[Le]));return v.isReadable(q,Ae,{level:Ue,size:nt})||!Ge?Ae:(re.includeFallbackColors=!1,v.mostReadable(q,["#fff","#000"],re))};var E=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=v.hexNames=I(E);function I(q){var se={};for(var re in q)q.hasOwnProperty(re)&&(se[q[re]]=re);return se}function O(q){return q=parseFloat(q),(isNaN(q)||q<0||q>1)&&(q=1),q}function F(q,se){P(q)&&(q="100%");var re=X(q);return q=Math.min(se,Math.max(0,parseFloat(q))),re&&(q=parseInt(q*se,10)/100),Math.abs(q-se)<1e-6?1:q%se/parseFloat(se)}function R(q){return Math.min(1,Math.max(0,q))}function B(q){return parseInt(q,16)}function P(q){return typeof q=="string"&&q.indexOf(".")!=-1&&parseFloat(q)===1}function X(q){return typeof q=="string"&&q.indexOf("%")!=-1}function M(q){return q.length==1?"0"+q:""+q}function z(q){return q<=1&&(q=q*100+"%"),q}function W(q){return Math.round(parseFloat(q)*255).toString(16)}function H(q){return B(q)/255}var V=function(){var q="[-\\+]?\\d+%?",se="[-\\+]?\\d*\\.\\d+%?",re="(?:"+se+")|(?:"+q+")",Ae="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Te="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+Ae),rgba:new RegExp("rgba"+Te),hsl:new RegExp("hsl"+Ae),hsla:new RegExp("hsla"+Te),hsv:new RegExp("hsv"+Ae),hsva:new RegExp("hsva"+Te),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 Q(q){return!!V.CSS_UNIT.exec(q)}function G(q){q=q.replace(p,"").replace(S,"").toLowerCase();var se=!1;if(E[q])q=E[q],se=!0;else if(q=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=V.rgb.exec(q))?{r:re[1],g:re[2],b:re[3]}:(re=V.rgba.exec(q))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=V.hsl.exec(q))?{h:re[1],s:re[2],l:re[3]}:(re=V.hsla.exec(q))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=V.hsv.exec(q))?{h:re[1],s:re[2],v:re[3]}:(re=V.hsva.exec(q))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=V.hex8.exec(q))?{r:B(re[1]),g:B(re[2]),b:B(re[3]),a:H(re[4]),format:se?"name":"hex8"}:(re=V.hex6.exec(q))?{r:B(re[1]),g:B(re[2]),b:B(re[3]),format:se?"name":"hex"}:(re=V.hex4.exec(q))?{r:B(re[1]+""+re[1]),g:B(re[2]+""+re[2]),b:B(re[3]+""+re[3]),a:H(re[4]+""+re[4]),format:se?"name":"hex8"}:(re=V.hex3.exec(q))?{r:B(re[1]+""+re[1]),g:B(re[2]+""+re[2]),b:B(re[3]+""+re[3]),format:se?"name":"hex"}:!1}function ee(q){var se,re;return q=q||{level:"AA",size:"small"},se=(q.level||"AA").toUpperCase(),re=(q.size||"small").toLowerCase(),se!=="AA"&&se!=="AAA"&&(se="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:se,size:re}}return v})},lNSK:function(k,D,i){"use strict";function y(Fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(Lr){return typeof Lr}:y=function(Lr){return Lr&&typeof Symbol=="function"&&Lr.constructor===Symbol&&Lr!==Symbol.prototype?"symbol":typeof Lr},y(Fe)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=mt,D.deflateInit2=Sr,D.deflateReset=ir,D.deflateResetKeep=Ut,D.deflateSetHeader=lr,D.deflate=or,D.deflateEnd=et,D.deflateSetDictionary=ur,D.deflateInfo=D.Z_DEFLATED=D.Z_UNKNOWN=D.Z_DEFAULT_STRATEGY=D.Z_FIXED=D.Z_RLE=D.Z_HUFFMAN_ONLY=D.Z_FILTERED=D.Z_DEFAULT_COMPRESSION=D.Z_BUF_ERROR=D.Z_DATA_ERROR=D.Z_STREAM_ERROR=D.Z_STREAM_END=D.Z_OK=D.Z_BLOCK=D.Z_FINISH=D.Z_FULL_FLUSH=D.Z_PARTIAL_FLUSH=D.Z_NO_FLUSH=void 0;var p=o(i("6BzB")),S=o(i("c5fP")),v=d(i("xlC8")),m=d(i("QV2g")),f=d(i("xSIq"));function d(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}function u(){if(typeof WeakMap!="function")return null;var Fe=new WeakMap;return u=function(){return Fe},Fe}function o(Fe){if(Fe&&Fe.__esModule)return Fe;if(Fe===null||y(Fe)!=="object"&&typeof Fe!="function")return{default:Fe};var $t=u();if($t&&$t.has(Fe))return $t.get(Fe);var Lr={},pt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qt in Fe)if(Object.prototype.hasOwnProperty.call(Fe,qt)){var vr=pt?Object.getOwnPropertyDescriptor(Fe,qt):null;vr&&(vr.get||vr.set)?Object.defineProperty(Lr,qt,vr):Lr[qt]=Fe[qt]}return Lr.default=Fe,$t&&$t.set(Fe,Lr),Lr}var n=0;D.Z_NO_FLUSH=n;var t=1;D.Z_PARTIAL_FLUSH=t;var a=3;D.Z_FULL_FLUSH=a;var e=4;D.Z_FINISH=e;var l=5;D.Z_BLOCK=l;var r=0;D.Z_OK=r;var s=1;D.Z_STREAM_END=s;var c=-2;D.Z_STREAM_ERROR=c;var h=-3;D.Z_DATA_ERROR=h;var g=-5;D.Z_BUF_ERROR=g;var A=-1;D.Z_DEFAULT_COMPRESSION=A;var b=1;D.Z_FILTERED=b;var w=2;D.Z_HUFFMAN_ONLY=w;var x=3;D.Z_RLE=x;var T=4;D.Z_FIXED=T;var _=0;D.Z_DEFAULT_STRATEGY=_;var E=2;D.Z_UNKNOWN=E;var C=8;D.Z_DEFLATED=C;var I=9,O=15,F=8,R=29,B=256,P=B+1+R,X=30,M=19,z=2*P+1,W=15,H=3,V=258,Q=V+H+1,G=32,ee=42,q=69,se=73,re=91,Ae=103,Te=113,Re=666,Ge=1,Ue=2,nt=3,Le=4,le=3;function Xe(Fe,$t){return Fe.msg=f.default[$t],$t}function pe(Fe){return(Fe<<1)-(Fe>4?9:0)}function Z(Fe){for(var $t=Fe.length;--$t>=0;)Fe[$t]=0}function Y(Fe){var $t=Fe.state,Lr=$t.pending;if(Lr>Fe.avail_out&&(Lr=Fe.avail_out),Lr===0)return;p.arraySet(Fe.output,$t.pending_buf,$t.pending_out,Lr,Fe.next_out),Fe.next_out+=Lr,$t.pending_out+=Lr,Fe.total_out+=Lr,Fe.avail_out-=Lr,$t.pending-=Lr,$t.pending===0&&($t.pending_out=0)}function ne(Fe,$t){S._tr_flush_block(Fe,Fe.block_start>=0?Fe.block_start:-1,Fe.strstart-Fe.block_start,$t),Fe.block_start=Fe.strstart,Y(Fe.strm)}function ce(Fe,$t){Fe.pending_buf[Fe.pending++]=$t}function ye(Fe,$t){Fe.pending_buf[Fe.pending++]=$t>>>8&255,Fe.pending_buf[Fe.pending++]=$t&255}function Ee(Fe,$t,Lr,pt){var qt=Fe.avail_in;return qt>pt&&(qt=pt),qt===0?0:(Fe.avail_in-=qt,p.arraySet($t,Fe.input,Fe.next_in,qt,Lr),Fe.state.wrap===1?Fe.adler=(0,v.default)(Fe.adler,$t,qt,Lr):Fe.state.wrap===2&&(Fe.adler=(0,m.default)(Fe.adler,$t,qt,Lr)),Fe.next_in+=qt,Fe.total_in+=qt,qt)}function Ce(Fe,$t){var Lr=Fe.max_chain_length,pt=Fe.strstart,qt,vr,pn=Fe.prev_length,fr=Fe.nice_match,gr=Fe.strstart>Fe.w_size-Q?Fe.strstart-(Fe.w_size-Q):0,dn=Fe.window,Qt=Fe.w_mask,sr=Fe.prev,Qr=Fe.strstart+V,Cn=dn[pt+pn-1],Fn=dn[pt+pn];Fe.prev_length>=Fe.good_match&&(Lr>>=2),fr>Fe.lookahead&&(fr=Fe.lookahead);do{if(qt=$t,dn[qt+pn]!==Fn||dn[qt+pn-1]!==Cn||dn[qt]!==dn[pt]||dn[++qt]!==dn[pt+1])continue;pt+=2,qt++;do;while(dn[++pt]===dn[++qt]&&dn[++pt]===dn[++qt]&&dn[++pt]===dn[++qt]&&dn[++pt]===dn[++qt]&&dn[++pt]===dn[++qt]&&dn[++pt]===dn[++qt]&&dn[++pt]===dn[++qt]&&dn[++pt]===dn[++qt]&&pt<Qr);if(vr=V-(Qr-pt),pt=Qr-V,vr>pn){if(Fe.match_start=$t,pn=vr,vr>=fr)break;Cn=dn[pt+pn-1],Fn=dn[pt+pn]}}while(($t=sr[$t&Qt])>gr&&--Lr!==0);return pn<=Fe.lookahead?pn:Fe.lookahead}function ue(Fe){var $t=Fe.w_size,Lr,pt,qt,vr,pn;do{if(vr=Fe.window_size-Fe.lookahead-Fe.strstart,Fe.strstart>=$t+($t-Q)){p.arraySet(Fe.window,Fe.window,$t,$t,0),Fe.match_start-=$t,Fe.strstart-=$t,Fe.block_start-=$t,pt=Fe.hash_size,Lr=pt;do qt=Fe.head[--Lr],Fe.head[Lr]=qt>=$t?qt-$t:0;while(--pt);pt=$t,Lr=pt;do qt=Fe.prev[--Lr],Fe.prev[Lr]=qt>=$t?qt-$t:0;while(--pt);vr+=$t}if(Fe.strm.avail_in===0)break;if(pt=Ee(Fe.strm,Fe.window,Fe.strstart+Fe.lookahead,vr),Fe.lookahead+=pt,Fe.lookahead+Fe.insert>=H)for(pn=Fe.strstart-Fe.insert,Fe.ins_h=Fe.window[pn],Fe.ins_h=(Fe.ins_h<<Fe.hash_shift^Fe.window[pn+1])&Fe.hash_mask;Fe.insert&&!(Fe.ins_h=(Fe.ins_h<<Fe.hash_shift^Fe.window[pn+H-1])&Fe.hash_mask,Fe.prev[pn&Fe.w_mask]=Fe.head[Fe.ins_h],Fe.head[Fe.ins_h]=pn,pn++,Fe.insert--,Fe.lookahead+Fe.insert<H););}while(Fe.lookahead<Q&&Fe.strm.avail_in!==0)}function ge(Fe,$t){var Lr=65535;for(Lr>Fe.pending_buf_size-5&&(Lr=Fe.pending_buf_size-5);;){if(Fe.lookahead<=1){if(ue(Fe),Fe.lookahead===0&&$t===n)return Ge;if(Fe.lookahead===0)break}Fe.strstart+=Fe.lookahead,Fe.lookahead=0;var pt=Fe.block_start+Lr;if((Fe.strstart===0||Fe.strstart>=pt)&&(Fe.lookahead=Fe.strstart-pt,Fe.strstart=pt,ne(Fe,!1),Fe.strm.avail_out===0))return Ge;if(Fe.strstart-Fe.block_start>=Fe.w_size-Q&&(ne(Fe,!1),Fe.strm.avail_out===0))return Ge}return Fe.insert=0,$t===e?(ne(Fe,!0),Fe.strm.avail_out===0?nt:Le):(Fe.strstart>Fe.block_start&&(ne(Fe,!1),Fe.strm.avail_out===0),Ge)}function Oe(Fe,$t){for(var Lr,pt;;){if(Fe.lookahead<Q){if(ue(Fe),Fe.lookahead<Q&&$t===n)return Ge;if(Fe.lookahead===0)break}if(Lr=0,Fe.lookahead>=H&&(Fe.ins_h=(Fe.ins_h<<Fe.hash_shift^Fe.window[Fe.strstart+H-1])&Fe.hash_mask,Lr=Fe.prev[Fe.strstart&Fe.w_mask]=Fe.head[Fe.ins_h],Fe.head[Fe.ins_h]=Fe.strstart),Lr!==0&&Fe.strstart-Lr<=Fe.w_size-Q&&(Fe.match_length=Ce(Fe,Lr)),Fe.match_length>=H)if(pt=S._tr_tally(Fe,Fe.strstart-Fe.match_start,Fe.match_length-H),Fe.lookahead-=Fe.match_length,Fe.match_length<=Fe.max_lazy_match&&Fe.lookahead>=H){Fe.match_length--;do Fe.strstart++,Fe.ins_h=(Fe.ins_h<<Fe.hash_shift^Fe.window[Fe.strstart+H-1])&Fe.hash_mask,Lr=Fe.prev[Fe.strstart&Fe.w_mask]=Fe.head[Fe.ins_h],Fe.head[Fe.ins_h]=Fe.strstart;while(--Fe.match_length!==0);Fe.strstart++}else Fe.strstart+=Fe.match_length,Fe.match_length=0,Fe.ins_h=Fe.window[Fe.strstart],Fe.ins_h=(Fe.ins_h<<Fe.hash_shift^Fe.window[Fe.strstart+1])&Fe.hash_mask;else pt=S._tr_tally(Fe,0,Fe.window[Fe.strstart]),Fe.lookahead--,Fe.strstart++;if(pt&&(ne(Fe,!1),Fe.strm.avail_out===0))return Ge}return Fe.insert=Fe.strstart<H-1?Fe.strstart:H-1,$t===e?(ne(Fe,!0),Fe.strm.avail_out===0?nt:Le):Fe.last_lit&&(ne(Fe,!1),Fe.strm.avail_out===0)?Ge:Ue}function Je(Fe,$t){for(var Lr,pt,qt;;){if(Fe.lookahead<Q){if(ue(Fe),Fe.lookahead<Q&&$t===n)return Ge;if(Fe.lookahead===0)break}if(Lr=0,Fe.lookahead>=H&&(Fe.ins_h=(Fe.ins_h<<Fe.hash_shift^Fe.window[Fe.strstart+H-1])&Fe.hash_mask,Lr=Fe.prev[Fe.strstart&Fe.w_mask]=Fe.head[Fe.ins_h],Fe.head[Fe.ins_h]=Fe.strstart),Fe.prev_length=Fe.match_length,Fe.prev_match=Fe.match_start,Fe.match_length=H-1,Lr!==0&&Fe.prev_length<Fe.max_lazy_match&&Fe.strstart-Lr<=Fe.w_size-Q&&(Fe.match_length=Ce(Fe,Lr),Fe.match_length<=5&&(Fe.strategy===b||Fe.match_length===H&&Fe.strstart-Fe.match_start>4096)&&(Fe.match_length=H-1)),Fe.prev_length>=H&&Fe.match_length<=Fe.prev_length){qt=Fe.strstart+Fe.lookahead-H,pt=S._tr_tally(Fe,Fe.strstart-1-Fe.prev_match,Fe.prev_length-H),Fe.lookahead-=Fe.prev_length-1,Fe.prev_length-=2;do++Fe.strstart<=qt&&(Fe.ins_h=(Fe.ins_h<<Fe.hash_shift^Fe.window[Fe.strstart+H-1])&Fe.hash_mask,Lr=Fe.prev[Fe.strstart&Fe.w_mask]=Fe.head[Fe.ins_h],Fe.head[Fe.ins_h]=Fe.strstart);while(--Fe.prev_length!==0);if(Fe.match_available=0,Fe.match_length=H-1,Fe.strstart++,pt&&(ne(Fe,!1),Fe.strm.avail_out===0))return Ge}else if(Fe.match_available){if(pt=S._tr_tally(Fe,0,Fe.window[Fe.strstart-1]),pt&&ne(Fe,!1),Fe.strstart++,Fe.lookahead--,Fe.strm.avail_out===0)return Ge}else Fe.match_available=1,Fe.strstart++,Fe.lookahead--}return Fe.match_available&&(pt=S._tr_tally(Fe,0,Fe.window[Fe.strstart-1]),Fe.match_available=0),Fe.insert=Fe.strstart<H-1?Fe.strstart:H-1,$t===e?(ne(Fe,!0),Fe.strm.avail_out===0?nt:Le):Fe.last_lit&&(ne(Fe,!1),Fe.strm.avail_out===0)?Ge:Ue}function lt(Fe,$t){for(var Lr,pt,qt,vr,pn=Fe.window;;){if(Fe.lookahead<=V){if(ue(Fe),Fe.lookahead<=V&&$t===n)return Ge;if(Fe.lookahead===0)break}if(Fe.match_length=0,Fe.lookahead>=H&&Fe.strstart>0&&(qt=Fe.strstart-1,pt=pn[qt],pt===pn[++qt]&&pt===pn[++qt]&&pt===pn[++qt])){vr=Fe.strstart+V;do;while(pt===pn[++qt]&&pt===pn[++qt]&&pt===pn[++qt]&&pt===pn[++qt]&&pt===pn[++qt]&&pt===pn[++qt]&&pt===pn[++qt]&&pt===pn[++qt]&&qt<vr);Fe.match_length=V-(vr-qt),Fe.match_length>Fe.lookahead&&(Fe.match_length=Fe.lookahead)}if(Fe.match_length>=H?(Lr=S._tr_tally(Fe,1,Fe.match_length-H),Fe.lookahead-=Fe.match_length,Fe.strstart+=Fe.match_length,Fe.match_length=0):(Lr=S._tr_tally(Fe,0,Fe.window[Fe.strstart]),Fe.lookahead--,Fe.strstart++),Lr&&(ne(Fe,!1),Fe.strm.avail_out===0))return Ge}return Fe.insert=0,$t===e?(ne(Fe,!0),Fe.strm.avail_out===0?nt:Le):Fe.last_lit&&(ne(Fe,!1),Fe.strm.avail_out===0)?Ge:Ue}function tt(Fe,$t){for(var Lr;;){if(Fe.lookahead===0&&(ue(Fe),Fe.lookahead===0)){if($t===n)return Ge;break}if(Fe.match_length=0,Lr=S._tr_tally(Fe,0,Fe.window[Fe.strstart]),Fe.lookahead--,Fe.strstart++,Lr&&(ne(Fe,!1),Fe.strm.avail_out===0))return Ge}return Fe.insert=0,$t===e?(ne(Fe,!0),Fe.strm.avail_out===0?nt:Le):Fe.last_lit&&(ne(Fe,!1),Fe.strm.avail_out===0)?Ge:Ue}function ke(Fe,$t,Lr,pt,qt){this.good_length=Fe,this.max_lazy=$t,this.nice_length=Lr,this.max_chain=pt,this.func=qt}var st;st=[new ke(0,0,0,0,ge),new ke(4,4,8,4,Oe),new ke(4,5,16,8,Oe),new ke(4,6,32,32,Oe),new ke(4,4,16,16,Je),new ke(8,16,32,32,Je),new ke(8,16,128,128,Je),new ke(8,32,128,256,Je),new ke(32,128,258,1024,Je),new ke(32,258,258,4096,Je)];function Ve(Fe){Fe.window_size=2*Fe.w_size,Z(Fe.head),Fe.max_lazy_match=st[Fe.level].max_lazy,Fe.good_match=st[Fe.level].good_length,Fe.nice_match=st[Fe.level].nice_length,Fe.max_chain_length=st[Fe.level].max_chain,Fe.strstart=0,Fe.block_start=0,Fe.lookahead=0,Fe.insert=0,Fe.match_length=Fe.prev_length=H-1,Fe.match_available=0,Fe.ins_h=0}function Ot(){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=C,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 p.Buf16(z*2),this.dyn_dtree=new p.Buf16((2*X+1)*2),this.bl_tree=new p.Buf16((2*M+1)*2),Z(this.dyn_ltree),Z(this.dyn_dtree),Z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(W+1),this.heap=new p.Buf16(2*P+1),Z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*P+1),Z(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 Ut(Fe){var $t;return!Fe||!Fe.state?Xe(Fe,c):(Fe.total_in=Fe.total_out=0,Fe.data_type=E,$t=Fe.state,$t.pending=0,$t.pending_out=0,$t.wrap<0&&($t.wrap=-$t.wrap),$t.status=$t.wrap?ee:Te,Fe.adler=$t.wrap===2?0:1,$t.last_flush=n,S._tr_init($t),r)}function ir(Fe){var $t=Ut(Fe);return $t===r&&Ve(Fe.state),$t}function lr(Fe,$t){return!Fe||!Fe.state||Fe.state.wrap!==2?c:(Fe.state.gzhead=$t,r)}function Sr(Fe,$t,Lr,pt,qt,vr){if(!Fe)return c;var pn=1;if($t===A&&($t=6),pt<0?(pn=0,pt=-pt):pt>15&&(pn=2,pt-=16),qt<1||qt>I||Lr!==C||pt<8||pt>15||$t<0||$t>9||vr<0||vr>T)return Xe(Fe,c);pt===8&&(pt=9);var fr=new Ot;return Fe.state=fr,fr.strm=Fe,fr.wrap=pn,fr.gzhead=null,fr.w_bits=pt,fr.w_size=1<<fr.w_bits,fr.w_mask=fr.w_size-1,fr.hash_bits=qt+7,fr.hash_size=1<<fr.hash_bits,fr.hash_mask=fr.hash_size-1,fr.hash_shift=~~((fr.hash_bits+H-1)/H),fr.window=new p.Buf8(fr.w_size*2),fr.head=new p.Buf16(fr.hash_size),fr.prev=new p.Buf16(fr.w_size),fr.lit_bufsize=1<<qt+6,fr.pending_buf_size=fr.lit_bufsize*4,fr.pending_buf=new p.Buf8(fr.pending_buf_size),fr.d_buf=1*fr.lit_bufsize,fr.l_buf=(1+2)*fr.lit_bufsize,fr.level=$t,fr.strategy=vr,fr.method=Lr,ir(Fe)}function mt(Fe,$t){return Sr(Fe,$t,C,O,F,_)}function or(Fe,$t){var Lr,pt,qt,vr;if(!Fe||!Fe.state||$t>l||$t<0)return Fe?Xe(Fe,c):c;if(pt=Fe.state,!Fe.output||!Fe.input&&Fe.avail_in!==0||pt.status===Re&&$t!==e)return Xe(Fe,Fe.avail_out===0?g:c);if(pt.strm=Fe,Lr=pt.last_flush,pt.last_flush=$t,pt.status===ee)if(pt.wrap===2)Fe.adler=0,ce(pt,31),ce(pt,139),ce(pt,8),pt.gzhead?(ce(pt,(pt.gzhead.text?1:0)+(pt.gzhead.hcrc?2:0)+(pt.gzhead.extra?4:0)+(pt.gzhead.name?8:0)+(pt.gzhead.comment?16:0)),ce(pt,pt.gzhead.time&255),ce(pt,pt.gzhead.time>>8&255),ce(pt,pt.gzhead.time>>16&255),ce(pt,pt.gzhead.time>>24&255),ce(pt,pt.level===9?2:pt.strategy>=w||pt.level<2?4:0),ce(pt,pt.gzhead.os&255),pt.gzhead.extra&&pt.gzhead.extra.length&&(ce(pt,pt.gzhead.extra.length&255),ce(pt,pt.gzhead.extra.length>>8&255)),pt.gzhead.hcrc&&(Fe.adler=(0,m.default)(Fe.adler,pt.pending_buf,pt.pending,0)),pt.gzindex=0,pt.status=q):(ce(pt,0),ce(pt,0),ce(pt,0),ce(pt,0),ce(pt,0),ce(pt,pt.level===9?2:pt.strategy>=w||pt.level<2?4:0),ce(pt,le),pt.status=Te);else{var pn=C+(pt.w_bits-8<<4)<<8,fr=-1;pt.strategy>=w||pt.level<2?fr=0:pt.level<6?fr=1:pt.level===6?fr=2:fr=3,pn|=fr<<6,pt.strstart!==0&&(pn|=G),pn+=31-pn%31,pt.status=Te,ye(pt,pn),pt.strstart!==0&&(ye(pt,Fe.adler>>>16),ye(pt,Fe.adler&65535)),Fe.adler=1}if(pt.status===q)if(pt.gzhead.extra){for(qt=pt.pending;pt.gzindex<(pt.gzhead.extra.length&65535)&&!(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>qt&&(Fe.adler=(0,m.default)(Fe.adler,pt.pending_buf,pt.pending-qt,qt)),Y(Fe),qt=pt.pending,pt.pending===pt.pending_buf_size));)ce(pt,pt.gzhead.extra[pt.gzindex]&255),pt.gzindex++;pt.gzhead.hcrc&&pt.pending>qt&&(Fe.adler=(0,m.default)(Fe.adler,pt.pending_buf,pt.pending-qt,qt)),pt.gzindex===pt.gzhead.extra.length&&(pt.gzindex=0,pt.status=se)}else pt.status=se;if(pt.status===se)if(pt.gzhead.name){qt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>qt&&(Fe.adler=(0,m.default)(Fe.adler,pt.pending_buf,pt.pending-qt,qt)),Y(Fe),qt=pt.pending,pt.pending===pt.pending_buf_size)){vr=1;break}pt.gzindex<pt.gzhead.name.length?vr=pt.gzhead.name.charCodeAt(pt.gzindex++)&255:vr=0,ce(pt,vr)}while(vr!==0);pt.gzhead.hcrc&&pt.pending>qt&&(Fe.adler=(0,m.default)(Fe.adler,pt.pending_buf,pt.pending-qt,qt)),vr===0&&(pt.gzindex=0,pt.status=re)}else pt.status=re;if(pt.status===re)if(pt.gzhead.comment){qt=pt.pending;do{if(pt.pending===pt.pending_buf_size&&(pt.gzhead.hcrc&&pt.pending>qt&&(Fe.adler=(0,m.default)(Fe.adler,pt.pending_buf,pt.pending-qt,qt)),Y(Fe),qt=pt.pending,pt.pending===pt.pending_buf_size)){vr=1;break}pt.gzindex<pt.gzhead.comment.length?vr=pt.gzhead.comment.charCodeAt(pt.gzindex++)&255:vr=0,ce(pt,vr)}while(vr!==0);pt.gzhead.hcrc&&pt.pending>qt&&(Fe.adler=(0,m.default)(Fe.adler,pt.pending_buf,pt.pending-qt,qt)),vr===0&&(pt.status=Ae)}else pt.status=Ae;if(pt.status===Ae&&(pt.gzhead.hcrc?(pt.pending+2>pt.pending_buf_size&&Y(Fe),pt.pending+2<=pt.pending_buf_size&&(ce(pt,Fe.adler&255),ce(pt,Fe.adler>>8&255),Fe.adler=0,pt.status=Te)):pt.status=Te),pt.pending!==0){if(Y(Fe),Fe.avail_out===0)return pt.last_flush=-1,r}else if(Fe.avail_in===0&&pe($t)<=pe(Lr)&&$t!==e)return Xe(Fe,g);if(pt.status===Re&&Fe.avail_in!==0)return Xe(Fe,g);if(Fe.avail_in!==0||pt.lookahead!==0||$t!==n&&pt.status!==Re){var gr=pt.strategy===w?tt(pt,$t):pt.strategy===x?lt(pt,$t):st[pt.level].func(pt,$t);if((gr===nt||gr===Le)&&(pt.status=Re),gr===Ge||gr===nt)return Fe.avail_out===0&&(pt.last_flush=-1),r;if(gr===Ue&&($t===t?S._tr_align(pt):$t!==l&&(S._tr_stored_block(pt,0,0,!1),$t===a&&(Z(pt.head),pt.lookahead===0&&(pt.strstart=0,pt.block_start=0,pt.insert=0))),Y(Fe),Fe.avail_out===0))return pt.last_flush=-1,r}return $t!==e?r:pt.wrap<=0?s:(pt.wrap===2?(ce(pt,Fe.adler&255),ce(pt,Fe.adler>>8&255),ce(pt,Fe.adler>>16&255),ce(pt,Fe.adler>>24&255),ce(pt,Fe.total_in&255),ce(pt,Fe.total_in>>8&255),ce(pt,Fe.total_in>>16&255),ce(pt,Fe.total_in>>24&255)):(ye(pt,Fe.adler>>>16),ye(pt,Fe.adler&65535)),Y(Fe),pt.wrap>0&&(pt.wrap=-pt.wrap),pt.pending!==0?r:s)}function et(Fe){var $t;return!Fe||!Fe.state?c:($t=Fe.state.status,$t!==ee&&$t!==q&&$t!==se&&$t!==re&&$t!==Ae&&$t!==Te&&$t!==Re?Xe(Fe,c):(Fe.state=null,$t===Te?Xe(Fe,h):r))}function ur(Fe,$t){var Lr=$t.length,pt,qt,vr,pn,fr,gr,dn,Qt;if(!Fe||!Fe.state)return c;if(pt=Fe.state,pn=pt.wrap,pn===2||pn===1&&pt.status!==ee||pt.lookahead)return c;for(pn===1&&(Fe.adler=(0,v.default)(Fe.adler,$t,Lr,0)),pt.wrap=0,Lr>=pt.w_size&&(pn===0&&(Z(pt.head),pt.strstart=0,pt.block_start=0,pt.insert=0),Qt=new p.Buf8(pt.w_size),p.arraySet(Qt,$t,Lr-pt.w_size,pt.w_size,0),$t=Qt,Lr=pt.w_size),fr=Fe.avail_in,gr=Fe.next_in,dn=Fe.input,Fe.avail_in=Lr,Fe.next_in=0,Fe.input=$t,ue(pt);pt.lookahead>=H;){qt=pt.strstart,vr=pt.lookahead-(H-1);do pt.ins_h=(pt.ins_h<<pt.hash_shift^pt.window[qt+H-1])&pt.hash_mask,pt.prev[qt&pt.w_mask]=pt.head[pt.ins_h],pt.head[pt.ins_h]=qt,qt++;while(--vr);pt.strstart=qt,pt.lookahead=H-1,ue(pt)}return pt.strstart+=pt.lookahead,pt.block_start=pt.strstart,pt.insert=pt.lookahead,pt.lookahead=0,pt.match_length=pt.prev_length=H-1,pt.match_available=0,Fe.next_in=gr,Fe.input=dn,Fe.avail_in=fr,pt.wrap=pn,r}var qr="pako deflate (from Nodeca project)";D.deflateInfo=qr},lOQZ:function(k,D,i){var y=i("QBsz"),p=i("U/Mo"),S=p.getSymbolSize,v=p.getNodeGlobalScale,m=Math.PI,f=[];function d(o,n){var t=o.coordinateSystem;if(t&&t.type!=="view")return;var a=t.getBoundingRect(),e=o.getData(),l=e.graph,r=a.width/2+a.x,s=a.height/2+a.y,c=Math.min(a.width,a.height)/2,h=e.count();if(e.setLayout({cx:r,cy:s}),!h)return;u[n](o,t,l,e,c,r,s,h),l.eachEdge(function(g){var A=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),w=y.clone(g.node2.getLayout()),x,T=(b[0]+w[0])/2,_=(b[1]+w[1])/2;+A&&(A*=3,x=[r*A+T*(1-A),s*A+_*(1-A)]),g.setLayout([b,w,x])})}var u={value:function(o,n,t,a,e,l,r,s){var c=0,h=a.getSum("value"),g=Math.PI*2/(h||s);t.eachNode(function(A){var b=A.getValue("value"),w=g*(h?b:1)/2;c+=w,A.setLayout([e*Math.cos(c)+l,e*Math.sin(c)+r]),c+=w})},symbolSize:function(o,n,t,a,e,l,r,s){var c=0;f.length=s;var h=v(o);t.eachNode(function(b){var w=S(b);isNaN(w)&&(w=2),w<0&&(w=0),w*=h;var x=Math.asin(w/2/e);isNaN(x)&&(x=m/2),f[b.dataIndex]=x,c+=x*2});var g=(2*m-c)/s/2,A=0;t.eachNode(function(b){var w=g+f[b.dataIndex];A+=w,b.setLayout([e*Math.cos(A)+l,e*Math.sin(A)+r]),A+=w})}};D.circularLayout=d},lPiR:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var S=y,v=S.lib,m=v.WordArray,f=v.Hasher,d=S.algo,u=[],o=[];(function(){function a(s){for(var c=p.sqrt(s),h=2;h<=c;h++)if(!(s%h))return!1;return!0}function e(s){return(s-(s|0))*4294967296|0}for(var l=2,r=0;r<64;)a(l)&&(r<8&&(u[r]=e(p.pow(l,1/2))),o[r]=e(p.pow(l,1/3)),r++),l++})();var n=[],t=d.SHA256=f.extend({_doReset:function(){this._hash=new m.init(u.slice(0))},_doProcessBlock:function(e,l){for(var r=this._hash.words,s=r[0],c=r[1],h=r[2],g=r[3],A=r[4],b=r[5],w=r[6],x=r[7],T=0;T<64;T++){if(T<16)n[T]=e[l+T]|0;else{var _=n[T-15],E=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,C=n[T-2],I=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;n[T]=E+n[T-7]+I+n[T-16]}var O=A&b^~A&w,F=s&c^s&h^c&h,R=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),B=(A<<26|A>>>6)^(A<<21|A>>>11)^(A<<7|A>>>25),P=x+B+O+o[T]+n[T],X=R+F;x=w,w=b,b=A,A=g+P|0,g=h,h=c,c=s,s=P+X|0}r[0]=r[0]+s|0,r[1]=r[1]+c|0,r[2]=r[2]+h|0,r[3]=r[3]+g|0,r[4]=r[4]+A|0,r[5]=r[5]+b|0,r[6]=r[6]+w|0,r[7]=r[7]+x|0},_doFinalize:function(){var e=this._data,l=e.words,r=this._nDataBytes*8,s=e.sigBytes*8;return l[s>>>5]|=128<<24-s%32,l[(s+64>>>9<<4)+14]=p.floor(r/4294967296),l[(s+64>>>9<<4)+15]=r,e.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});S.SHA256=f._createHelper(t),S.HmacSHA256=f._createHmacHelper(t)}(Math),y.SHA256})},lSCD:function(k,D,i){var y=i("NykK"),p=i("GoyQ"),S="[object AsyncFunction]",v="[object Function]",m="[object GeneratorFunction]",f="[object Proxy]";function d(u){if(!p(u))return!1;var o=y(u);return o==v||o==m||o==S||o==f}k.exports=d},lUTK:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("x54q"),v=i.n(S),m=i("5Dmo")},lZu9:function(k,D,i){(function(y){y(i("VrN/"),i("1eCo"),i("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(p,S){var v=y.getMode(p,"text/html"),m=v.name=="null";function f(W){if(y.findModeByName){var H=y.findModeByName(W);H&&(W=H.mime||H.mimes[0])}var V=y.getMode(p,W);return V.name=="null"?null:V}S.highlightFormatting===void 0&&(S.highlightFormatting=!1),S.maxBlockquoteDepth===void 0&&(S.maxBlockquoteDepth=0),S.taskLists===void 0&&(S.taskLists=!1),S.strikethrough===void 0&&(S.strikethrough=!1),S.emoji===void 0&&(S.emoji=!1),S.fencedCodeBlockHighlighting===void 0&&(S.fencedCodeBlockHighlighting=!0),S.fencedCodeBlockDefaultMode===void 0&&(S.fencedCodeBlockDefaultMode="text/plain"),S.xml===void 0&&(S.xml=!0),S.tokenTypeOverrides===void 0&&(S.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)&&S.tokenTypeOverrides[u]&&(d[u]=S.tokenTypeOverrides[u]);var o=/^([*\-_])(?:\s*\1){2,}\s*$/,n=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,a=S.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,r=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,s=/^\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(W,H,V){return H.f=H.inline=V,V(W,H)}function A(W,H,V){return H.f=H.block=V,V(W,H)}function b(W){return!W||!/\S/.test(W.string)}function w(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==T){var H=m;if(!H){var V=y.innerMode(v,W.htmlState);H=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}H&&(W.f=I,W.block=x,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function x(W,H){var V=W.column()===H.indentation,Q=b(H.prevLine.stream),G=H.indentedCode,ee=H.prevLine.hr,q=H.list!==!1,se=(H.listStack[H.listStack.length-1]||0)+3;H.indentedCode=!1;var re=H.indentation;if(H.indentationDiff===null&&(H.indentationDiff=H.indentation,q)){for(H.list=null;re<H.listStack[H.listStack.length-1];)H.listStack.pop(),H.listStack.length?H.indentation=H.listStack[H.listStack.length-1]:H.list=!1;H.list!==!1&&(H.indentationDiff=re-H.listStack[H.listStack.length-1])}var Ae=!Q&&!ee&&!H.prevLine.header&&(!q||!G)&&!H.prevLine.fencedCodeEnd,Te=(H.list===!1||ee||Q)&&H.indentation<=se&&W.match(o),Re=null;if(H.indentationDiff>=4&&(G||H.prevLine.fencedCodeEnd||H.prevLine.header||Q))return W.skipToEnd(),H.indentedCode=!0,d.code;if(W.eatSpace())return null;if(V&&H.indentation<=se&&(Re=W.match(a))&&Re[1].length<=6)return H.quote=0,H.header=Re[1].length,H.thisLine.header=!0,S.highlightFormatting&&(H.formatting="header"),H.f=H.inline,E(H);if(H.indentation<=se&&W.eat(">"))return H.quote=V?1:H.quote+1,S.highlightFormatting&&(H.formatting="quote"),W.eatSpace(),E(H);if(!Te&&!H.setext&&V&&H.indentation<=se&&(Re=W.match(n))){var Ge=Re[1]?"ol":"ul";return H.indentation=re+W.current().length,H.list=!0,H.quote=0,H.listStack.push(H.indentation),H.em=!1,H.strong=!1,H.code=!1,H.strikethrough=!1,S.taskLists&&W.match(t,!1)&&(H.taskList=!0),H.f=H.inline,S.highlightFormatting&&(H.formatting=["list","list-"+Ge]),E(H)}else{if(V&&H.indentation<=se&&(Re=W.match(r,!0)))return H.quote=0,H.fencedEndRE=new RegExp(Re[1]+"+ *$"),H.localMode=S.fencedCodeBlockHighlighting&&f(Re[2]||S.fencedCodeBlockDefaultMode),H.localMode&&(H.localState=y.startState(H.localMode)),H.f=H.block=_,S.highlightFormatting&&(H.formatting="code-block"),H.code=-1,E(H);if(H.setext||(!Ae||!q)&&!H.quote&&H.list===!1&&!H.code&&!Te&&!s.test(W.string)&&(Re=W.lookAhead(1))&&(Re=Re.match(e)))return H.setext?(H.header=H.setext,H.setext=0,W.skipToEnd(),S.highlightFormatting&&(H.formatting="header")):(H.header=Re[0].charAt(0)=="="?1:2,H.setext=H.header),H.thisLine.header=!0,H.f=H.inline,E(H);if(Te)return W.skipToEnd(),H.hr=!0,H.thisLine.hr=!0,d.hr;if(W.peek()==="[")return g(W,H,P)}return g(W,H,H.inline)}function T(W,H){var V=v.token(W,H.htmlState);if(!m){var Q=y.innerMode(v,H.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||H.md_inside&&W.current().indexOf(">")>-1)&&(H.f=I,H.block=x,H.htmlState=null)}return V}function _(W,H){var V=H.listStack[H.listStack.length-1]||0,Q=H.indentation<V,G=V+3;if(H.fencedEndRE&&H.indentation<=G&&(Q||W.match(H.fencedEndRE))){S.highlightFormatting&&(H.formatting="code-block");var ee;return Q||(ee=E(H)),H.localMode=H.localState=null,H.block=x,H.f=I,H.fencedEndRE=null,H.code=0,H.thisLine.fencedCodeEnd=!0,Q?A(W,H,H.block):ee}else return H.localMode?H.localMode.token(W,H.localState):(W.skipToEnd(),d.code)}function E(W){var H=[];if(W.formatting){H.push(d.formatting),typeof W.formatting=="string"&&(W.formatting=[W.formatting]);for(var V=0;V<W.formatting.length;V++)H.push(d.formatting+"-"+W.formatting[V]),W.formatting[V]==="header"&&H.push(d.formatting+"-"+W.formatting[V]+"-"+W.header),W.formatting[V]==="quote"&&(!S.maxBlockquoteDepth||S.maxBlockquoteDepth>=W.quote?H.push(d.formatting+"-"+W.formatting[V]+"-"+W.quote):H.push("error"))}if(W.taskOpen)return H.push("meta"),H.length?H.join(" "):null;if(W.taskClosed)return H.push("property"),H.length?H.join(" "):null;if(W.linkHref?H.push(d.linkHref,"url"):(W.strong&&H.push(d.strong),W.em&&H.push(d.em),W.strikethrough&&H.push(d.strikethrough),W.emoji&&H.push(d.emoji),W.linkText&&H.push(d.linkText),W.code&&H.push(d.code),W.image&&H.push(d.image),W.imageAltText&&H.push(d.imageAltText,"link"),W.imageMarker&&H.push(d.imageMarker)),W.header&&H.push(d.header,d.header+"-"+W.header),W.quote&&(H.push(d.quote),!S.maxBlockquoteDepth||S.maxBlockquoteDepth>=W.quote?H.push(d.quote+"-"+W.quote):H.push(d.quote+"-"+S.maxBlockquoteDepth)),W.list!==!1){var Q=(W.listStack.length-1)%3;Q?Q===1?H.push(d.list2):H.push(d.list3):H.push(d.list1)}return W.trailingSpaceNewLine?H.push("trailing-space-new-line"):W.trailingSpace&&H.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),H.length?H.join(" "):null}function C(W,H){return W.match(l,!0)?E(H):void 0}function I(W,H){var V=H.text(W,H);if(typeof V!="undefined")return V;if(H.list)return H.list=null,E(H);if(H.taskList){var Q=W.match(t,!0)[1]===" ";return Q?H.taskOpen=!0:H.taskClosed=!0,S.highlightFormatting&&(H.formatting="task"),H.taskList=!1,E(H)}if(H.taskOpen=!1,H.taskClosed=!1,H.header&&W.match(/^#+$/,!0))return S.highlightFormatting&&(H.formatting="header"),E(H);var G=W.next();if(H.linkTitle){H.linkTitle=!1;var ee=G;G==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var q="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(W.match(new RegExp(q),!0))return d.linkHref}if(G==="`"){var se=H.formatting;S.highlightFormatting&&(H.formatting="code"),W.eatWhile("`");var re=W.current().length;if(H.code==0&&(!H.quote||re==1))return H.code=re,E(H);if(re==H.code){var Ae=E(H);return H.code=0,Ae}else return H.formatting=se,E(H)}else if(H.code)return E(H);if(G==="\\"&&(W.next(),S.highlightFormatting)){var Te=E(H),Re=d.formatting+"-escape";return Te?Te+" "+Re:Re}if(G==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return H.imageMarker=!0,H.image=!0,S.highlightFormatting&&(H.formatting="image"),E(H);if(G==="["&&H.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return H.imageMarker=!1,H.imageAltText=!0,S.highlightFormatting&&(H.formatting="image"),E(H);if(G==="]"&&H.imageAltText){S.highlightFormatting&&(H.formatting="image");var Te=E(H);return H.imageAltText=!1,H.image=!1,H.inline=H.f=F,Te}if(G==="["&&!H.image)return H.linkText&&W.match(/^.*?\]/)||(H.linkText=!0,S.highlightFormatting&&(H.formatting="link")),E(H);if(G==="]"&&H.linkText){S.highlightFormatting&&(H.formatting="link");var Te=E(H);return H.linkText=!1,H.inline=H.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?F:I,Te}if(G==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){H.f=H.inline=O,S.highlightFormatting&&(H.formatting="link");var Te=E(H);return Te?Te+=" ":Te="",Te+d.linkInline}if(G==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){H.f=H.inline=O,S.highlightFormatting&&(H.formatting="link");var Te=E(H);return Te?Te+=" ":Te="",Te+d.linkEmail}if(S.xml&&G==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ge=W.string.indexOf(">",W.pos);if(Ge!=-1){var Ue=W.string.substring(W.start,Ge);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ue)&&(H.md_inside=!0)}return W.backUp(1),H.htmlState=y.startState(v),A(W,H,T)}if(S.xml&&G==="<"&&W.match(/^\/\w*?>/))return H.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var nt=1,Le=W.pos==1?" ":W.string.charAt(W.pos-2);nt<3&&W.eat(G);)nt++;var le=W.peek()||" ",Xe=!/\s/.test(le)&&(!c.test(le)||/\s/.test(Le)||c.test(Le)),pe=!/\s/.test(Le)&&(!c.test(Le)||/\s/.test(le)||c.test(le)),Z=null,Y=null;if(nt%2&&(!H.em&&Xe&&(G==="*"||!pe||c.test(Le))?Z=!0:H.em==G&&pe&&(G==="*"||!Xe||c.test(le))&&(Z=!1)),nt>1&&(!H.strong&&Xe&&(G==="*"||!pe||c.test(Le))?Y=!0:H.strong==G&&pe&&(G==="*"||!Xe||c.test(le))&&(Y=!1)),Y!=null||Z!=null){S.highlightFormatting&&(H.formatting=Z==null?"strong":Y==null?"em":"strong em"),Z===!0&&(H.em=G),Y===!0&&(H.strong=G);var Ae=E(H);return Z===!1&&(H.em=!1),Y===!1&&(H.strong=!1),Ae}}else if(G===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return E(H);W.backUp(1)}if(S.strikethrough){if(G==="~"&&W.eatWhile(G)){if(H.strikethrough){S.highlightFormatting&&(H.formatting="strikethrough");var Ae=E(H);return H.strikethrough=!1,Ae}else if(W.match(/^[^\s]/,!1))return H.strikethrough=!0,S.highlightFormatting&&(H.formatting="strikethrough"),E(H)}else if(G===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return E(H);W.backUp(2)}}if(S.emoji&&G===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){H.emoji=!0,S.highlightFormatting&&(H.formatting="emoji");var ne=E(H);return H.emoji=!1,ne}return G===" "&&(W.match(/^ +$/,!1)?H.trailingSpace++:H.trailingSpace&&(H.trailingSpaceNewLine=!0)),E(H)}function O(W,H){var V=W.next();if(V===">"){H.f=H.inline=I,S.highlightFormatting&&(H.formatting="link");var Q=E(H);return Q?Q+=" ":Q="",Q+d.linkInline}return W.match(/^[^>]+/,!0),d.linkInline}function F(W,H){if(W.eatSpace())return null;var V=W.next();return V==="("||V==="["?(H.f=H.inline=B(V==="("?")":"]"),S.highlightFormatting&&(H.formatting="link-string"),H.linkHref=!0,E(H)):"error"}var R={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function B(W){return function(H,V){var Q=H.next();if(Q===W){V.f=V.inline=I,S.highlightFormatting&&(V.formatting="link-string");var G=E(V);return V.linkHref=!1,G}return H.match(R[W]),V.linkHref=!0,E(V)}}function P(W,H){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(H.f=X,W.next(),S.highlightFormatting&&(H.formatting="link"),H.linkText=!0,E(H)):g(W,H,I)}function X(W,H){if(W.match(/^\]:/,!0)){H.f=H.inline=M,S.highlightFormatting&&(H.formatting="link");var V=E(H);return H.linkText=!1,V}return W.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function M(W,H){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?H.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),H.f=H.inline=I,d.linkHref+" url")}var z={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:I,text:C,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(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&y.copyState(v,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?y.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,V){if(V.formatting=!1,H!=V.thisLine.stream){if(V.header=0,V.hr=!1,H.match(/^\s*$/,!0))return w(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:H},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=T)){var Q=H.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(H,V)},innerMode:function(H){return H.block==T?{state:H.htmlState,mode:v}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:z}},indent:function(H,V,Q){return H.block==T&&v.indent?v.indent(H.htmlState,V,Q):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,V,Q):y.Pass},blankLine:w,getType:E,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return z},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(k,D,i){var y=i("ProS");i("GVMX"),i("MH26"),y.registerPreprocessor(function(p){p.markLine=p.markLine||{}})},ljhN:function(k,D){function i(y,p){return y===p||y!==y&&p!==p}k.exports=i},lnY3:function(k,D,i){},loD1:function(k,D){function i(y,p,S,v,m,f,d){if(m===0)return!1;var u=m,o=0,n=y;if(d>p+u&&d>v+u||d<p-u&&d<v-u||f>y+u&&f>S+u||f<y-u&&f<S-u)return!1;if(y!==S)o=(p-v)/(y-S),n=(y*v-S*p)/(y-S);else return Math.abs(f-y)<=u/2;var t=o*f-d+n,a=t*t/(o*o+1);return a<=u/2*u/2}D.containStroke=i},lr6o:function(k,D,i){"use strict";var y=i("rePB"),p=i("Ff2n"),S=i("VTBJ"),v=i("1OyB"),m=i("vuIU"),f=i("JX7q"),d=i("Ji7U"),u=i("LK+K"),o=i("q1tI"),n=i("TSYQ"),t=i.n(n),a=i("FTAc"),e=i("wPhX"),l=function(T){var _=T.prefixCls,E=T.level,C=T.isStart,I=T.isEnd;if(!E)return null;for(var O="".concat(_,"-indent-unit"),F=[],R=0;R<E;R+=1){var B;F.push(o.createElement("span",{key:R,className:t()(O,(B={},Object(y.a)(B,"".concat(O,"-start"),C[R+1]),Object(y.a)(B,"".concat(O,"-end"),I[R+1]),Object(y.a)(B,"".concat(O,"-end-first-level"),!R&&I[0]),B))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},F)},r=l,s=i("c3jg"),c="open",h="close",g="---",A=function(x){Object(d.a)(_,x);var T=Object(u.a)(_);function _(){var E;return Object(v.a)(this,_),E=T.apply(this,arguments),E.state={dragNodeHighlight:!1},E.onSelectorClick=function(C){var I=E.props.context.onNodeClick;I(C,Object(s.b)(E.props)),E.isSelectable()?E.onSelect(C):E.onCheck(C)},E.onSelectorDoubleClick=function(C){var I=E.props.context.onNodeDoubleClick;I(C,Object(s.b)(E.props))},E.onSelect=function(C){if(E.isDisabled())return;var I=E.props.context.onNodeSelect;C.preventDefault(),I(C,Object(s.b)(E.props))},E.onCheck=function(C){if(E.isDisabled())return;var I=E.props,O=I.disableCheckbox,F=I.checked,R=E.props.context.onNodeCheck;if(!E.isCheckable()||O)return;C.preventDefault();var B=!F;R(C,Object(s.b)(E.props),B)},E.onMouseEnter=function(C){var I=E.props.context.onNodeMouseEnter;I(C,Object(s.b)(E.props))},E.onMouseLeave=function(C){var I=E.props.context.onNodeMouseLeave;I(C,Object(s.b)(E.props))},E.onContextMenu=function(C){var I=E.props.context.onNodeContextMenu;I(C,Object(s.b)(E.props))},E.onDragStart=function(C){var I=E.props.context.onNodeDragStart;C.stopPropagation(),E.setState({dragNodeHighlight:!0}),I(C,Object(f.a)(E));try{C.dataTransfer.setData("text/plain","")}catch(O){}},E.onDragEnter=function(C){var I=E.props.context.onNodeDragEnter;C.preventDefault(),C.stopPropagation(),I(C,Object(f.a)(E))},E.onDragOver=function(C){var I=E.props.context.onNodeDragOver;C.preventDefault(),C.stopPropagation(),I(C,Object(f.a)(E))},E.onDragLeave=function(C){var I=E.props.context.onNodeDragLeave;C.stopPropagation(),I(C,Object(f.a)(E))},E.onDragEnd=function(C){var I=E.props.context.onNodeDragEnd;C.stopPropagation(),E.setState({dragNodeHighlight:!1}),I(C,Object(f.a)(E))},E.onDrop=function(C){var I=E.props.context.onNodeDrop;C.preventDefault(),C.stopPropagation(),E.setState({dragNodeHighlight:!1}),I(C,Object(f.a)(E))},E.onExpand=function(C){var I=E.props.context.onNodeExpand;I(C,Object(s.b)(E.props))},E.setSelectHandle=function(C){E.selectHandle=C},E.getNodeState=function(){var C=E.props.expanded;return E.isLeaf()?null:C?c:h},E.hasChildren=function(){var C=E.props.eventKey,I=E.props.context.keyEntities,O=I[C]||{},F=O.children;return!!(F||[]).length},E.isLeaf=function(){var C=E.props,I=C.isLeaf,O=C.loaded,F=E.props.context.loadData,R=E.hasChildren();return I===!1?!1:I||!F&&!R||F&&O&&!R},E.isDisabled=function(){var C=E.props.disabled,I=E.props.context.disabled;return!!(I||C)},E.isCheckable=function(){var C=E.props.checkable,I=E.props.context.checkable;return!I||C===!1?!1:I},E.syncLoadData=function(C){var I=C.expanded,O=C.loading,F=C.loaded,R=E.props.context,B=R.loadData,P=R.onNodeLoad;if(O)return;B&&I&&!E.isLeaf()&&(!E.hasChildren()&&!F&&P(Object(s.b)(E.props)))},E.renderSwitcher=function(){var C=E.props,I=C.expanded,O=C.switcherIcon,F=E.props.context,R=F.prefixCls,B=F.switcherIcon,P=O||B;if(E.isLeaf())return o.createElement("span",{className:t()("".concat(R,"-switcher"),"".concat(R,"-switcher-noop"))},typeof P=="function"?P(Object(S.a)(Object(S.a)({},E.props),{},{isLeaf:!0})):P);var X=t()("".concat(R,"-switcher"),"".concat(R,"-switcher_").concat(I?c:h));return o.createElement("span",{onClick:E.onExpand,className:X},typeof P=="function"?P(Object(S.a)(Object(S.a)({},E.props),{},{isLeaf:!1})):P)},E.renderCheckbox=function(){var C=E.props,I=C.checked,O=C.halfChecked,F=C.disableCheckbox,R=E.props.context.prefixCls,B=E.isDisabled(),P=E.isCheckable();if(!P)return null;var X=typeof P!="boolean"?P:null;return o.createElement("span",{className:t()("".concat(R,"-checkbox"),I&&"".concat(R,"-checkbox-checked"),!I&&O&&"".concat(R,"-checkbox-indeterminate"),(B||F)&&"".concat(R,"-checkbox-disabled")),onClick:E.onCheck},X)},E.renderIcon=function(){var C=E.props.loading,I=E.props.context.prefixCls;return o.createElement("span",{className:t()("".concat(I,"-iconEle"),"".concat(I,"-icon__").concat(E.getNodeState()||"docu"),C&&"".concat(I,"-icon_loading"))})},E.renderSelector=function(){var C=E.state.dragNodeHighlight,I=E.props,O=I.title,F=I.selected,R=I.icon,B=I.loading,P=I.data,X=E.props.context,M=X.prefixCls,z=X.showIcon,W=X.icon,H=X.draggable,V=X.loadData,Q=X.titleRender,G=E.isDisabled(),ee="".concat(M,"-node-content-wrapper"),q;if(z){var se=R||W;q=se?o.createElement("span",{className:t()("".concat(M,"-iconEle"),"".concat(M,"-icon__customize"))},typeof se=="function"?se(E.props):se):E.renderIcon()}else V&&B&&(q=E.renderIcon());var re;typeof O=="function"?re=O(P):Q?re=Q(P):re=O;var Ae=o.createElement("span",{className:"".concat(M,"-title")},re);return o.createElement("span",{ref:E.setSelectHandle,title:typeof O=="string"?O:"",className:t()("".concat(ee),"".concat(ee,"-").concat(E.getNodeState()||"normal"),!G&&(F||C)&&"".concat(M,"-node-selected"),!G&&H&&"draggable"),draggable:!G&&H||void 0,"aria-grabbed":!G&&H||void 0,onMouseEnter:E.onMouseEnter,onMouseLeave:E.onMouseLeave,onContextMenu:E.onContextMenu,onClick:E.onSelectorClick,onDoubleClick:E.onSelectorDoubleClick,onDragStart:H?E.onDragStart:void 0},q,Ae)},E}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 C=this.props.selectable,I=this.props.context.selectable;return typeof C=="boolean"?C:I}},{key:"render",value:function(){var C,I=this.props,O=I.eventKey,F=I.className,R=I.style,B=I.dragOver,P=I.dragOverGapTop,X=I.dragOverGapBottom,M=I.isLeaf,z=I.isStart,W=I.isEnd,H=I.expanded,V=I.selected,Q=I.checked,G=I.halfChecked,ee=I.loading,q=I.domRef,se=I.active,re=I.onMouseMove,Ae=Object(p.a)(I,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Te=this.props.context,Re=Te.prefixCls,Ge=Te.filterTreeNode,Ue=Te.draggable,nt=Te.keyEntities,Le=this.isDisabled(),le=Object(e.f)(Ae),Xe=nt[O]||{},pe=Xe.level,Z=W[W.length-1];return o.createElement("div",Object.assign({ref:q,className:t()(F,"".concat(Re,"-treenode"),(C={},Object(y.a)(C,"".concat(Re,"-treenode-disabled"),Le),Object(y.a)(C,"".concat(Re,"-treenode-switcher-").concat(H?"open":"close"),!M),Object(y.a)(C,"".concat(Re,"-treenode-checkbox-checked"),Q),Object(y.a)(C,"".concat(Re,"-treenode-checkbox-indeterminate"),G),Object(y.a)(C,"".concat(Re,"-treenode-selected"),V),Object(y.a)(C,"".concat(Re,"-treenode-loading"),ee),Object(y.a)(C,"".concat(Re,"-treenode-active"),se),Object(y.a)(C,"".concat(Re,"-treenode-leaf-last"),Z),Object(y.a)(C,"drag-over",!Le&&B),Object(y.a)(C,"drag-over-gap-top",!Le&&P),Object(y.a)(C,"drag-over-gap-bottom",!Le&&X),Object(y.a)(C,"filter-node",Ge&&Ge(Object(s.b)(this.props))),C)),style:R,onDragEnter:Ue?this.onDragEnter:void 0,onDragOver:Ue?this.onDragOver:void 0,onDragLeave:Ue?this.onDragLeave:void 0,onDrop:Ue?this.onDrop:void 0,onDragEnd:Ue?this.onDragEnd:void 0,onMouseMove:re},le),o.createElement(r,{prefixCls:Re,level:pe,isStart:z,isEnd:W}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(o.Component),b=function(T){return o.createElement(a.a.Consumer,null,function(_){return o.createElement(A,Object.assign({},T,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var w=D.a=b},lrIw:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("cDf5"),v=i.n(S),m=i("J4zp"),f=i.n(m),d=i("q1tI"),u=i.n(d),o=i("Zm9Q"),n=i("TSYQ"),t=i.n(n),a=i("BGR+"),e=i("2fM7"),l=i("H84U"),r=i("uaoM"),s=i("0n0R"),c=e.a.Option,h=e.a;function g(w){return w&&w.type&&(w.type.isSelectOption||w.type.isSelectOptGroup)}var A=function(x,T){var _=x.prefixCls,E=x.className,C=x.children,I=x.dataSource,O=Object(o.a)(C),F=d.useRef();d.useImperativeHandle(T,function(){return F.current});var R;if(O.length===1&&Object(s.b)(O[0])&&!g(O[0])){var B=f()(O,1);R=B[0]}var P=function(){return R},X;return O.length&&g(O[0])?X=C:X=I?I.map(function(M){if(Object(s.b)(M))return M;switch(v()(M)){case"string":return d.createElement(c,{key:M,value:M},M);case"object":{var z=M.value;return d.createElement(c,{key:z,value:z},M.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],d.useEffect(function(){Object(r.a)(!("dataSource"in x),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!R||!("size"in x),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),d.createElement(l.a,null,function(M){var z=M.getPrefixCls,W=z("select",_);return d.createElement(h,p()({ref:F},Object(a.default)(x,["dataSource"]),{prefixCls:W,className:t()(E,"".concat(W,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:P}),X)})},b=d.forwardRef(A);b.Option=c,D.a=b},lwQL:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("9wZj"),v=i("c8qY"),m=i("SgGq"),f=i("Ae+d"),d=i("xSat"),u=d.onIrrelevantElement,o=i("IwbS"),n=i("SA8n"),t=i("U/Mo"),a=t.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",r=["itemStyle","opacity"],s=["lineStyle","opacity"];function c(b,w){var x=b.getVisual("opacity");return x!=null?x:b.getModel().get(w)}function h(b,w,x){var T=b.getGraphicEl(),_=c(b,w);x!=null&&(_==null&&(_=1),_*=x),T.downplay&&T.downplay(),T.traverse(function(E){if(!E.isGroup){var C=E.lineLabelOriginalOpacity;(C==null||x!=null)&&(C=_),E.setStyle("opacity",C)}})}function g(b,w){var x=c(b,w),T=b.getGraphicEl();T.traverse(function(_){!_.isGroup&&_.setStyle("opacity",x)}),T.highlight&&T.highlight()}var A=y.extendChartView({type:"graph",init:function(b,w){var x=new S,T=new v,_=this.group;this._controller=new m(w.getZr()),this._controllerHost={target:_},_.add(x.group),_.add(T.group),this._symbolDraw=x,this._lineDraw=T,this._firstRender=!0},render:function(b,w,x){var T=this,_=b.coordinateSystem;this._model=b;var E=this._symbolDraw,C=this._lineDraw,I=this.group;if(_.type==="view"){var O={position:_.position,scale:_.scale};this._firstRender?I.attr(O):o.updateProps(I,O,b)}n(b.getGraph(),a(b));var F=b.getData();E.updateData(F);var R=b.getEdgeData();C.updateData(R),this._updateNodeAndLinkScale(),this._updateController(b,w,x),clearTimeout(this._layoutTimeout);var B=b.forceLayout,P=b.get("force.layoutAnimation");B&&this._startForceLayoutIteration(B,P),F.eachItemGraphicEl(function(W,H){var V=F.getItemModel(H);W.off("drag").off("dragend");var Q=V.get("draggable");Q&&W.on("drag",function(){B&&(B.warmUp(),!this._layouting&&this._startForceLayoutIteration(B,P),B.setFixed(H),F.setItemLayout(H,W.position))},this).on("dragend",function(){B&&B.setUnfixed(H)},this),W.setDraggable(Q&&B),W[e]&&W.off("mouseover",W[e]),W[l]&&W.off("mouseout",W[l]),V.get("focusNodeAdjacency")&&(W.on("mouseover",W[e]=function(){T._clearTimer(),x.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:W.dataIndex})}),W.on("mouseout",W[l]=function(){T._dispatchUnfocus(x)}))},this),F.graph.eachEdge(function(W){var H=W.getGraphicEl();H[e]&&H.off("mouseover",H[e]),H[l]&&H.off("mouseout",H[l]),W.getModel().get("focusNodeAdjacency")&&(H.on("mouseover",H[e]=function(){T._clearTimer(),x.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:W.dataIndex})}),H.on("mouseout",H[l]=function(){T._dispatchUnfocus(x)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),M=F.getLayout("cx"),z=F.getLayout("cy");F.eachItemGraphicEl(function(W,H){var V=F.getItemModel(H),Q=V.get("label.rotate")||0,G=W.getSymbolPath();if(X){var ee=F.getItemLayout(H),q=Math.atan2(ee[1]-z,ee[0]-M);q<0&&(q=Math.PI*2+q);var se=ee[0]<M;se&&(q=q-Math.PI);var re=se?"left":"right";o.modifyLabelStyle(G,{textRotation:-q,textPosition:re,textOrigin:"center"},{textPosition:re})}else o.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,w){var x=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){x._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:x._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,w,x,T){var _=b.getData(),E=_.graph,C=T.dataIndex,I=T.edgeDataIndex,O=E.getNodeByIndex(C),F=E.getEdgeByIndex(I);if(!O&&!F)return;E.eachNode(function(R){h(R,r,.1)}),E.eachEdge(function(R){h(R,s,.1)}),O&&(g(O,r),p.each(O.edges,function(R){if(R.dataIndex<0)return;g(R,s),g(R.node1,r),g(R.node2,r)})),F&&(g(F,s),g(F.node1,r),g(F.node2,r))},unfocusNodeAdjacency:function(b,w,x,T){var _=b.getData().graph;_.eachNode(function(E){h(E,r)}),_.eachEdge(function(E){h(E,s)})},_startForceLayoutIteration:function(b,w){var x=this;(function T(){b.step(function(_){x.updateLayout(x._model),(x._layouting=!_)&&(w?x._layoutTimeout=setTimeout(T,16):T())})})()},_updateController:function(b,w,x){var T=this._controller,_=this._controllerHost,E=this.group;if(T.setPointerChecker(function(C,I,O){var F=E.getBoundingRect();return F.applyTransform(E.transform),F.contain(I,O)&&!u(C,x,b)}),b.coordinateSystem.type!=="view"){T.disable();return}T.enable(b.get("roam")),_.zoomLimit=b.get("scaleLimit"),_.zoom=b.coordinateSystem.getZoom(),T.off("pan").off("zoom").on("pan",function(C){f.updateViewOnPan(_,C.dx,C.dy),x.dispatchAction({seriesId:b.id,type:"graphRoam",dx:C.dx,dy:C.dy})}).on("zoom",function(C){f.updateViewOnZoom(_,C.scale,C.originX,C.originY),x.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:C.scale,originX:C.originX,originY:C.originY}),this._updateNodeAndLinkScale(),n(b.getGraph(),a(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,w=b.getData(),x=a(b),T=[x,x];w.eachItemGraphicEl(function(_,E){_.attr("scale",T)})},updateLayout:function(b){n(b.getGraph(),a(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,w){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});k.exports=A},m9t5:function(k,D,i){var y=i("KCsZ"),p=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),S={getAreaStyle:function(v,m){return p(this,v,m)}};k.exports=S},mBDr:function(k,D,i){"use strict";i.d(D,"a",function(){return S});var y=i("q1tI"),p=i.n(y);function S(v){var m=y.useRef();m.current=v;var f=y.useCallback(function(){for(var d,u=arguments.length,o=new Array(u),n=0;n<u;n++)o[n]=arguments[n];return(d=m.current)===null||d===void 0?void 0:d.call.apply(d,[m].concat(o))},[]);return f}},mFDi:function(k,D,i){var y=i("QBsz"),p=i("Fofx"),S=y.applyTransform,v=Math.min,m=Math.max;function f(u,o,n,t){n<0&&(u=u+n,n=-n),t<0&&(o=o+t,t=-t),this.x=u,this.y=o,this.width=n,this.height=t}f.prototype={constructor:f,union:function(o){var n=v(o.x,this.x),t=v(o.y,this.y);this.width=m(o.x+o.width,this.x+this.width)-n,this.height=m(o.y+o.height,this.y+this.height)-t,this.x=n,this.y=t},applyTransform:function(){var u=[],o=[],n=[],t=[];return function(a){if(!a)return;u[0]=n[0]=this.x,u[1]=t[1]=this.y,o[0]=t[0]=this.x+this.width,o[1]=n[1]=this.y+this.height,S(u,u,a),S(o,o,a),S(n,n,a),S(t,t,a),this.x=v(u[0],o[0],n[0],t[0]),this.y=v(u[1],o[1],n[1],t[1]);var e=m(u[0],o[0],n[0],t[0]),l=m(u[1],o[1],n[1],t[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(o){var n=this,t=o.width/n.width,a=o.height/n.height,e=p.create();return p.translate(e,e,[-n.x,-n.y]),p.scale(e,e,[t,a]),p.translate(e,e,[o.x,o.y]),e},intersect:function(o){if(!o)return!1;o instanceof f||(o=f.create(o));var n=this,t=n.x,a=n.x+n.width,e=n.y,l=n.y+n.height,r=o.x,s=o.x+o.width,c=o.y,h=o.y+o.height;return!(a<r||s<t||l<c||h<e)},contain:function(o,n){var t=this;return o>=t.x&&o<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(o){this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},f.create=function(u){return new f(u.x,u.y,u.width,u.height)};var d=f;k.exports=d},mHUz:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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};D.default=y},mLcG:function(k,D){var i=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(y){setTimeout(y,16)};k.exports=i},"mO/d":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("I9Y+"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},mOdp:function(k,D,i){var y=i("bYtY"),p=y.createHashMap;function S(v){return{getTargetSeries:function(m){var f={},d=p();return m.eachSeriesByType(v,function(u){u.__paletteScope=f,d.set(u.uid,u)}),d},reset:function(m,f){var d=m.getRawData(),u={},o=m.getData();o.each(function(n){var t=o.getRawIndex(n);u[t]=n}),d.each(function(n){var t=u[n],a=t!=null&&o.getItemVisual(t,"color",!0),e=t!=null&&o.getItemVisual(t,"borderColor",!0),l;if((!a||!e)&&(l=d.getItemModel(n)),!a){var r=l.get("itemStyle.color")||m.getColorFromPalette(d.getName(n)||n+"",m.__paletteScope,d.count());t!=null&&o.setItemVisual(t,"color",r)}if(!e){var s=l.get("itemStyle.borderColor");t!=null&&o.setItemVisual(t,"borderColor",s)}})}}}k.exports=S},mTgk:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("mHUz"));function p(u){return u&&u.__esModule?u:{default:u}}var S={};function v(u,o){if(o===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in S)throw new Error('Duplicate entry for key "'+u+'"');S[u]=[o,o,o,o]}function m(u,o,n){if(o===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(n===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in S)throw new Error('Duplicate entry for key "'+u+'"');S[u]=[o,o,n,o]}function f(u,o,n){if(o===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(n===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in S)throw new Error('Duplicate entry for key "'+u+'"');S[u]=[o,o,o,n]}m("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),v("AltGraph",y.default.XK_ISO_Level3_Shift),v("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),v("NumLock",y.default.XK_Num_Lock),v("ScrollLock",y.default.XK_Scroll_Lock),m("Shift",y.default.XK_Shift_L,y.default.XK_Shift_R),f("Enter",y.default.XK_Return,y.default.XK_KP_Enter),v("Tab",y.default.XK_Tab),f(" ",y.default.XK_space,y.default.XK_KP_Space),f("ArrowDown",y.default.XK_Down,y.default.XK_KP_Down),f("ArrowUp",y.default.XK_Up,y.default.XK_KP_Up),f("ArrowLeft",y.default.XK_Left,y.default.XK_KP_Left),f("ArrowRight",y.default.XK_Right,y.default.XK_KP_Right),f("End",y.default.XK_End,y.default.XK_KP_End),f("Home",y.default.XK_Home,y.default.XK_KP_Home),f("PageDown",y.default.XK_Next,y.default.XK_KP_Next),f("PageUp",y.default.XK_Prior,y.default.XK_KP_Prior),v("Backspace",y.default.XK_BackSpace),f("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),v("Copy",y.default.XF86XK_Copy),v("Cut",y.default.XF86XK_Cut),f("Delete",y.default.XK_Delete,y.default.XK_KP_Delete),f("Insert",y.default.XK_Insert,y.default.XK_KP_Insert),v("Paste",y.default.XF86XK_Paste),v("Redo",y.default.XK_Redo),v("Undo",y.default.XK_Undo),v("Cancel",y.default.XK_Cancel),v("ContextMenu",y.default.XK_Menu),v("Escape",y.default.XK_Escape),v("Execute",y.default.XK_Execute),v("Find",y.default.XK_Find),v("Help",y.default.XK_Help),v("Pause",y.default.XK_Pause),v("Select",y.default.XK_Select),v("ZoomIn",y.default.XF86XK_ZoomIn),v("ZoomOut",y.default.XF86XK_ZoomOut),v("BrightnessDown",y.default.XF86XK_MonBrightnessDown),v("BrightnessUp",y.default.XF86XK_MonBrightnessUp),v("Eject",y.default.XF86XK_Eject),v("LogOff",y.default.XF86XK_LogOff),v("Power",y.default.XF86XK_PowerOff),v("PowerOff",y.default.XF86XK_PowerDown),v("PrintScreen",y.default.XK_Print),v("Hibernate",y.default.XF86XK_Hibernate),v("Standby",y.default.XF86XK_Standby),v("WakeUp",y.default.XF86XK_WakeUp),v("AllCandidates",y.default.XK_MultipleCandidate),v("Alphanumeric",y.default.XK_Eisu_Shift),v("CodeInput",y.default.XK_Codeinput),v("Compose",y.default.XK_Multi_key),v("Convert",y.default.XK_Henkan),v("GroupFirst",y.default.XK_ISO_First_Group),v("GroupLast",y.default.XK_ISO_Last_Group),v("GroupNext",y.default.XK_ISO_Next_Group),v("GroupPrevious",y.default.XK_ISO_Prev_Group),v("NonConvert",y.default.XK_Muhenkan),v("PreviousCandidate",y.default.XK_PreviousCandidate),v("SingleCandidate",y.default.XK_SingleCandidate),v("HangulMode",y.default.XK_Hangul),v("HanjaMode",y.default.XK_Hangul_Hanja),v("JunjuaMode",y.default.XK_Hangul_Jeonja),v("Eisu",y.default.XK_Eisu_toggle),v("Hankaku",y.default.XK_Hankaku),v("Hiragana",y.default.XK_Hiragana),v("HiraganaKatakana",y.default.XK_Hiragana_Katakana),v("KanaMode",y.default.XK_Kana_Shift),v("KanjiMode",y.default.XK_Kanji),v("Katakana",y.default.XK_Katakana),v("Romaji",y.default.XK_Romaji),v("Zenkaku",y.default.XK_Zenkaku),v("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),v("F1",y.default.XK_F1),v("F2",y.default.XK_F2),v("F3",y.default.XK_F3),v("F4",y.default.XK_F4),v("F5",y.default.XK_F5),v("F6",y.default.XK_F6),v("F7",y.default.XK_F7),v("F8",y.default.XK_F8),v("F9",y.default.XK_F9),v("F10",y.default.XK_F10),v("F11",y.default.XK_F11),v("F12",y.default.XK_F12),v("F13",y.default.XK_F13),v("F14",y.default.XK_F14),v("F15",y.default.XK_F15),v("F16",y.default.XK_F16),v("F17",y.default.XK_F17),v("F18",y.default.XK_F18),v("F19",y.default.XK_F19),v("F20",y.default.XK_F20),v("F21",y.default.XK_F21),v("F22",y.default.XK_F22),v("F23",y.default.XK_F23),v("F24",y.default.XK_F24),v("F25",y.default.XK_F25),v("F26",y.default.XK_F26),v("F27",y.default.XK_F27),v("F28",y.default.XK_F28),v("F29",y.default.XK_F29),v("F30",y.default.XK_F30),v("F31",y.default.XK_F31),v("F32",y.default.XK_F32),v("F33",y.default.XK_F33),v("F34",y.default.XK_F34),v("F35",y.default.XK_F35),v("Close",y.default.XF86XK_Close),v("MailForward",y.default.XF86XK_MailForward),v("MailReply",y.default.XF86XK_Reply),v("MailSend",y.default.XF86XK_Send),v("MediaFastForward",y.default.XF86XK_AudioForward),v("MediaPause",y.default.XF86XK_AudioPause),v("MediaPlay",y.default.XF86XK_AudioPlay),v("MediaRecord",y.default.XF86XK_AudioRecord),v("MediaRewind",y.default.XF86XK_AudioRewind),v("MediaStop",y.default.XF86XK_AudioStop),v("MediaTrackNext",y.default.XF86XK_AudioNext),v("MediaTrackPrevious",y.default.XF86XK_AudioPrev),v("New",y.default.XF86XK_New),v("Open",y.default.XF86XK_Open),v("Print",y.default.XK_Print),v("Save",y.default.XF86XK_Save),v("SpellCheck",y.default.XF86XK_Spell),v("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),v("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),v("AudioVolumeMute",y.default.XF86XK_AudioMute),v("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),v("LaunchApplication1",y.default.XF86XK_MyComputer),v("LaunchApplication2",y.default.XF86XK_Calculator),v("LaunchCalendar",y.default.XF86XK_Calendar),v("LaunchMail",y.default.XF86XK_Mail),v("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),v("LaunchMusicPlayer",y.default.XF86XK_Music),v("LaunchPhone",y.default.XF86XK_Phone),v("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),v("LaunchSpreadsheet",y.default.XF86XK_Excel),v("LaunchWebBrowser",y.default.XF86XK_WWW),v("LaunchWebCam",y.default.XF86XK_WebCam),v("LaunchWordProcessor",y.default.XF86XK_Word),v("BrowserBack",y.default.XF86XK_Back),v("BrowserFavorites",y.default.XF86XK_Favorites),v("BrowserForward",y.default.XF86XK_Forward),v("BrowserHome",y.default.XF86XK_HomePage),v("BrowserRefresh",y.default.XF86XK_Refresh),v("BrowserSearch",y.default.XF86XK_Search),v("BrowserStop",y.default.XF86XK_Stop),v("Dimmer",y.default.XF86XK_BrightnessAdjust),v("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),v("RandomToggle",y.default.XF86XK_AudioRandomPlay),v("SplitScreenToggle",y.default.XF86XK_SplitScreen),v("Subtitle",y.default.XF86XK_Subtitle),v("VideoModeNext",y.default.XF86XK_Next_VMode),f("=",y.default.XK_equal,y.default.XK_KP_Equal),f("+",y.default.XK_plus,y.default.XK_KP_Add),f("-",y.default.XK_minus,y.default.XK_KP_Subtract),f("*",y.default.XK_asterisk,y.default.XK_KP_Multiply),f("/",y.default.XK_slash,y.default.XK_KP_Divide),f(".",y.default.XK_period,y.default.XK_KP_Decimal),f(",",y.default.XK_comma,y.default.XK_KP_Separator),f("0",y.default.XK_0,y.default.XK_KP_0),f("1",y.default.XK_1,y.default.XK_KP_1),f("2",y.default.XK_2,y.default.XK_KP_2),f("3",y.default.XK_3,y.default.XK_KP_3),f("4",y.default.XK_4,y.default.XK_KP_4),f("5",y.default.XK_5,y.default.XK_KP_5),f("6",y.default.XK_6,y.default.XK_KP_6),f("7",y.default.XK_7,y.default.XK_KP_7),f("8",y.default.XK_8,y.default.XK_KP_8),f("9",y.default.XK_9,y.default.XK_KP_9);var d=S;D.default=d},mYwL:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("6GrX"),v=Math.PI;function m(f,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 p.Group,o=new p.Rect({style:{fill:d.maskColor},zlevel:d.zlevel,z:1e4});u.add(o);var n=d.fontSize+" sans-serif",t=new p.Rect({style:{fill:"none",text:d.text,font:n,textPosition:"right",textDistance:10,textFill:d.textColor},zlevel:d.zlevel,z:10001});if(u.add(t),d.showSpinner){var a=new p.Arc({shape:{startAngle:-v/2,endAngle:-v/2+.1,r:d.spinnerRadius},style:{stroke:d.color,lineCap:"round",lineWidth:d.lineWidth},zlevel:d.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:v*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:v*3/2}).delay(300).start("circularInOut"),u.add(a)}return u.resize=function(){var e=S.getWidth(d.text,n),l=d.showSpinner?d.spinnerRadius:0,r=(f.getWidth()-l*2-(d.showSpinner&&e?10:0)-e)/2-(d.showSpinner?0:e/2),s=f.getHeight()/2;d.showSpinner&&a.setShape({cx:r,cy:s}),t.setShape({x:r-l,y:s-l,width:l*2,height:l*2}),o.setShape({x:0,y:0,width:f.getWidth(),height:f.getHeight()})},u.resize(),u}k.exports=m},mdPL:function(k,D,i){(function(y){var p=i("WFqU"),S=D&&!D.nodeType&&D,v=S&&typeof y=="object"&&y&&!y.nodeType&&y,m=v&&v.exports===S,f=m&&p.process,d=function(){try{var u=v&&v.require&&v.require("util").types;return u||f&&f.binding&&f.binding("util")}catch(o){}}();y.exports=d}).call(this,i("YuTi")(k))},mdZa:function(k,D,i){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(p,S){"use strict";if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(p),m=1;m<arguments.length;m++){var f=arguments[m];if(f!=null)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(v[d]=f[d])}return v},writable:!0,configurable:!0}),function(){function y(p,S){S=S||{bubbles:!1,cancelable:!1,detail:void 0};var v=document.createEvent("CustomEvent");return v.initCustomEvent(p,S.bubbles,S.cancelable,S.detail),v}y.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=y)}(),Number.isInteger=Number.isInteger||function(p){return typeof p=="number"&&isFinite(p)&&Math.floor(p)===p}},mr32:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("J4zp"),f=i.n(m),d=i("q1tI"),u=i("TSYQ"),o=i.n(u),n=i("BGR+"),t=i("V/uB"),a=i.n(t),e=i("H84U"),l=function(_,E){var C={};for(var I in _)Object.prototype.hasOwnProperty.call(_,I)&&E.indexOf(I)<0&&(C[I]=_[I]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,I=Object.getOwnPropertySymbols(_);O<I.length;O++)E.indexOf(I[O])<0&&Object.prototype.propertyIsEnumerable.call(_,I[O])&&(C[I[O]]=_[I[O]]);return C},r=function(E){var C,I=d.useContext(e.b),O=I.getPrefixCls,F=function(H){var V=E.checked,Q=E.onChange,G=E.onClick;Q&&Q(!V),G&&G(H)},R=E.prefixCls,B=E.className,P=E.checked,X=l(E,["prefixCls","className","checked"]),M=O("tag",R),z=o()(M,(C={},p()(C,"".concat(M,"-checkable"),!0),p()(C,"".concat(M,"-checkable-checked"),P),C),B);return delete X.onChange,d.createElement("span",v()({},X,{className:z,onClick:F}))},s=r,c=i("09Wf"),h=i("g0mS"),g=function(_,E){var C={};for(var I in _)Object.prototype.hasOwnProperty.call(_,I)&&E.indexOf(I)<0&&(C[I]=_[I]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,I=Object.getOwnPropertySymbols(_);O<I.length;O++)E.indexOf(I[O])<0&&Object.prototype.propertyIsEnumerable.call(_,I[O])&&(C[I[O]]=_[I[O]]);return C},A=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),w=function(E,C){var I,O=E.prefixCls,F=E.className,R=E.style,B=E.children,P=E.icon,X=E.color,M=E.onClose,z=E.closeIcon,W=E.closable,H=W===void 0?!1:W,V=g(E,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=d.useContext(e.b),G=Q.getPrefixCls,ee=Q.direction,q=d.useState(!0),se=f()(q,2),re=se[0],Ae=se[1];d.useEffect(function(){"visible"in V&&Ae(V.visible)},[V.visible]);var Te=function(){return X?A.test(X)||b.test(X):!1},Re=v()({backgroundColor:X&&!Te()?X:void 0},R),Ge=Te(),Ue=G("tag",O),nt=o()(Ue,(I={},p()(I,"".concat(Ue,"-").concat(X),Ge),p()(I,"".concat(Ue,"-has-color"),X&&!Ge),p()(I,"".concat(Ue,"-hidden"),!re),p()(I,"".concat(Ue,"-rtl"),ee==="rtl"),I),F),Le=function(ye){if(ye.stopPropagation(),M&&M(ye),ye.defaultPrevented)return;"visible"in V||Ae(!1)},le=function(){return H?z?d.createElement("div",{className:"".concat(Ue,"-close-icon"),onClick:Le},z):d.createElement(a.a,{className:"".concat(Ue,"-close-icon"),onClick:Le}):null},Xe="onClick"in V||B&&B.type==="a",pe=Object(n.default)(V,["visible"]),Z=P||null,Y=Z?d.createElement(d.Fragment,null,Z,d.createElement("span",null,B)):B,ne=d.createElement("span",v()({},pe,{ref:C,className:nt,style:Re}),Y,le());return Xe?d.createElement(h.a,null,ne):ne},x=d.forwardRef(w);x.displayName="Tag",x.CheckableTag=s;var T=D.a=x},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var D})(function(){var define,module,exports;return function(){function k(D,i,y){function p(m,f){if(!i[m]){if(!D[m]){var d=typeof require=="function"&&require;if(!f&&d)return require(m,!0);if(S)return S(m,!0);var u=new Error("Cannot find module '"+m+"'");throw u.code="MODULE_NOT_FOUND",u}var o=i[m]={exports:{}};D[m][0].call(o.exports,function(n){var t=D[m][1][n];return p(t||n)},o,o.exports,k,D,i,y)}return i[m].exports}for(var S=typeof require=="function"&&require,v=0;v<y.length;v++)p(y[v]);return p}return k}()({1:[function(k,D,i){"use strict";var y=k("./browser/client");y.Buffer=k("buffer").Buffer,y.urllib=k("../shims/xhr"),y.version=k("./browser/version").version,D.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/promise"),v=o(S),m=k("babel-runtime/regenerator"),f=o(m),d=k("babel-runtime/core-js/object/assign"),u=o(d);function o(P){return P&&P.__esModule?P:{default:P}}var n=k("debug")("ali-oss"),t=k("copy-to"),a=k("xml2js"),e=k("agentkeepalive"),l=k("merge-descriptors"),r=k("url"),s=k("is-type-of"),c=k("platform"),h=k("utility"),g=k("urllib"),A=k("./version"),b=k("bowser"),w=k("../common/signUtils"),x=k("../common/utils/isIP"),T=x.isIP,_=k("../common/client/initOptions"),E=k("../common/utils/createRequest"),C=E.createRequest,I=new e;function O(){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 F(){return location&&location.protocol==="https:"}function R(P,X){if(O(),!(this instanceof R))return new R(P,X);P&&P.inited?this.options=P:this.options=R.initOptions(P),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||I),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=R,R.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 M=(0,u.default)({secure:F(),useFetch:!1},X);return _(M)};var B=R.prototype;B.debug=n,l(B,k("./object")),l(B,k("../common/bucket/getBucketWebsite")),l(B,k("../common/bucket/putBucketWebsite")),l(B,k("../common/bucket/deleteBucketWebsite")),l(B,k("../common/bucket/getBucketLifecycle")),l(B,k("../common/bucket/putBucketLifecycle")),l(B,k("../common/bucket/deleteBucketLifecycle")),l(B,k("../common/bucket/putBucketVersioning")),l(B,k("../common/bucket/getBucketVersioning")),l(B,k("./managed-upload")),l(B,k("../common/multipart")),l(B,k("../common/parallel")),B.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),w.computeSignature(this.options.accessKeySecret,X)},B.authorization=function(X,M,z,W){var H=w.buildCanonicalString(X.toUpperCase(),M,{headers:W,parameters:z});return w.authorization(this.options.accessKeyId,this.options.accessKeySecret,H)},B.request=function(X){var M,z,W,H,V,Q;return f.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return M=C.call(this,X),this.options.useFetch||(M.params.mode="disable-fetch"),z=void 0,W=void 0,H=!!X.stream,ee.prev=5,ee.next=8,f.default.awrap(this.urllib.request(M.url,M.params));case 8:z=ee.sent,this.debug("response %s %s, got %s, headers: %j",X.method,M.url,z.status,z.headers,"info"),ee.next=15;break;case 12:ee.prev=12,ee.t0=ee.catch(5),W=ee.t0;case 15:if(V=void 0,!(z&&X.successStatuses&&X.successStatuses.indexOf(z.status)===-1)){ee.next=28;break}return ee.next=19,f.default.awrap(this.requestError(z));case 19:if(V=ee.sent,!(V.code==="RequestTimeTooSkewed"&&!H)){ee.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,ee.next=24,f.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(!W){ee.next=32;break}return ee.next=31,f.default.awrap(this.requestError(W));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,f.default.awrap(this.parseXML(z.data));case 37:Q=ee.sent,z.data=Q;case 39:return ee.abrupt("return",z);case 40:case"end":return ee.stop()}},null,this,[[5,12]])},B._getResource=function(X){var M="/";return X.bucket&&(M+=X.bucket+"/"),X.object&&(M+=X.object),M},B._isIP=T,B._escape=function(X){return h.encodeURIComponent(X).replace(/%2F/g,"/")},B._getReqUrl=function(X){var M={};t(this.options.endpoint).to(M);var z=this._isIP(M.hostname),W=this.options.cname;X.bucket&&!W&&!z&&(M.host=X.bucket+"."+M.host);var H="/";X.bucket&&z&&(H+=X.bucket+"/"),X.object&&(H+=this._escape(X.object).replace(/\+/g,"%2B")),M.pathname=H;var V={};if(X.query&&l(V,X.query),X.subres){var Q={};s.string(X.subres)?Q[X.subres]="":s.array(X.subres)?X.subres.forEach(function(G){Q[G]=""}):Q=X.subres,l(V,Q)}return M.query=V,r.format(M)},B._getUserAgent=function(){var X=p&&p.browser?"js":"nodejs",M="aliyun-sdk-"+X+"/"+A.version,z=c.description;return!z&&p&&(z="Node.js "+p.version.slice(1)+" on "+p.platform+" "+p.arch),this._checkUserAgent(M+" "+z)},B._checkUserAgent=function(X){var M=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return M},B.checkBrowserAndVersion=function(X,M){return b.name===X&&b.version.split(".")[0]===M},B.parseXML=function(X){return new v.default(function(M,z){y.isBuffer(X)&&(X=X.toString()),a.parseString(X,{explicitRoot:!1,explicitArray:!1},function(W,H){W?z(W):M(H)})})},B.requestError=function(X){var M,z,W,H;return f.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(M=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(M=new Error(X.message),M.name=X.name,M.status=X.status,M.code=X.name):(X.status===404?(M=new Error("Object not exists"),M.name="NoSuchKeyError",M.status=404,M.code="NoSuchKey"):X.status===412?(M=new Error("Pre condition failed"),M.name="PreconditionFailedError",M.status=412,M.code="PreconditionFailed"):(M=new Error("Unknow error, status: "+X.status),M.name="UnknowError",M.status=X.status),M.requestId=X.headers["x-oss-request-id"],M.host=""),Q.next=33;break;case 5:return z=String(X.data),this.debug("request response error data: %s",z,"error"),W=void 0,Q.prev=8,Q.next=11,f.default.awrap(this.parseXML(z));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:W=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(z,"error"),Q.t1.message+=`
raw xml: `+z,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:H=W.Message||"unknow request error, status: "+X.status,W.Condition&&(H+=" (condition: "+W.Condition+")"),M=new Error(H),M.name=W.Code?W.Code+"Error":"UnknowError",M.status=X.status,M.code=W.Code,M.requestId=W.RequestId,M.hostId=W.HostId,M.serverTime=W.ServerTime;case 33:return this.debug("generate error %j",M,"error"),Q.abrupt("return",M);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:k("../../node_modules/is-buffer/index.js")},k("_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(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/array/from"),S=u(p),v=k("babel-runtime/core-js/promise"),m=u(v),f=k("babel-runtime/regenerator"),d=u(f);function u(w){return w&&w.__esModule?w:{default:w}}var o=k("is-type-of"),n=k("util"),t=k("path"),a=k("mime"),e=k("copy-to"),l=k("../common/utils/isBlob"),r=l.isBlob,s=k("../common/utils/isFile"),c=s.isFile,h=i;h.multipartUpload=function(x,T,_){var E,C,I,O,F,R,B,P,X;return d.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){z.next=6;break}return z.next=5,d.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return z.abrupt("return",z.sent);case 6:return E=100*1024,_.mime||(c(T)?_.mime=a.getType(t.extname(T.name)):r(T)?_.mime=T.type:_.mime=a.getType(t.extname(T))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),z.next=12,d.default.awrap(this._getFileSize(T));case 12:if(C=z.sent,!(C<E)){z.next=25;break}return I=this._createStream(T,0,C),_.contentLength=C,z.next=18,d.default.awrap(this.putStream(x,I,_));case 18:if(O=z.sent,!(_&&_.progress)){z.next=22;break}return z.next=22,d.default.awrap(_.progress(1));case 22:return F={res:O.res,bucket:this.options.bucket,name:x,etag:O.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(F.data=O.data),z.abrupt("return",F);case 25:if(!(_.partSize&&!(parseInt(_.partSize,10)===_.partSize))){z.next=27;break}throw new Error("partSize must be int number");case 27:if(!(_.partSize&&_.partSize<E)){z.next=29;break}throw new Error("partSize must not be smaller than "+E);case 29:return z.next=31,d.default.awrap(this.initMultipartUpload(x,_));case 31:if(R=z.sent,B=R.uploadId,P=this._getPartSize(C,_.partSize),X={file:T,name:x,fileSize:C,partSize:P,uploadId:B,doneParts:[]},!(_&&_.progress)){z.next=38;break}return z.next=38,d.default.awrap(_.progress(0,X,R.res));case 38:return z.next=40,d.default.awrap(this._resumeMultipart(X,_));case 40:return z.abrupt("return",z.sent);case 41:case"end":return z.stop()}},null,this)},h._resumeMultipart=function(x,T){var _,E,C,I,O,F,R,B,P,X,M,z,W,H,V,Q,G,ee;return d.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:if(_=this,!this.isCancel()){se.next=3;break}throw this._makeCancelEvent();case 3:return E=x.file,C=x.fileSize,I=x.partSize,O=x.uploadId,F=x.doneParts,R=x.name,B=[],F.length>0&&e(F).to(B),P=this._divideParts(C,I),X=P.length,M=!1,z=function(Ae,Te){var Re=this;return new m.default(function(Ue,nt){var Le,le,Xe,pe;return d.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,Ae.isCancel()){Y.next=18;break}return Le=P[Te-1],le={stream:Ae._createStream(E,Le.start,Le.end),size:Le.end-Le.start},Y.next=6,d.default.awrap(Ae._uploadPart(R,O,Te,le));case 6:if(Xe=Y.sent,!(!Ae.isCancel()&&!M)){Y.next=15;break}if(x.doneParts.push({number:Te,etag:Xe.res.headers.etag}),!T.progress){Y.next=12;break}return Y.next=12,d.default.awrap(T.progress(F.length/X,x,Xe.res));case 12:Ue({number:Te,etag:Xe.res.headers.etag}),Y.next=16;break;case 15:Ue();case 16:Y.next=19;break;case 18:Ue();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),pe=new Error,pe.name=Y.t0.name,pe.message=Y.t0.message,pe.stack=Y.t0.stack,pe.partNum=Te,e(Y.t0).to(pe),nt(pe);case 30:case"end":return Y.stop()}},null,Re,[[0,21]])})},W=(0,S.default)(new Array(X),function(re,Ae){return Ae+1}),H=B.map(function(re){return re.number}),V=W.filter(function(re){return H.indexOf(re)<0}),Q=5,G=T.parallel||Q,se.next=17,d.default.awrap(this._parallel(V,G,function(re){return new m.default(function(Ae,Te){z(_,re).then(function(Re){Re&&B.push(Re),Ae()}).catch(function(Re){Te(Re)})})}));case 17:if(ee=se.sent,M=!0,!this.isCancel()){se.next=22;break}throw z=null,this._makeCancelEvent();case 22:if(!(ee&&ee.length>0)){se.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 se.next=27,d.default.awrap(this.completeMultipartUpload(R,O,B,T));case 27:return se.abrupt("return",se.sent);case 28:case"end":return se.stop()}},null,this)},h._getFileSize=function(x){return d.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!o.buffer(x)){_.next=4;break}return _.abrupt("return",x.length);case 4:if(!(r(x)||c(x))){_.next=6;break}return _.abrupt("return",x.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _.stop()}},null,this)};var g=k("stream"),A=g.Readable;function b(w,x){if(!(this instanceof b))return new b(w,x);A.call(this,x),this.file=w,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}n.inherits(b,A),b.prototype.readFileAndPush=function(x){if(this.fileBuffer)for(var T=!0;T&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,E=_+x;E=E>this.fileBuffer.length?this.fileBuffer.length:E,this.start=E,T=this.push(this.fileBuffer.slice(_,E))}},b.prototype._read=function(x){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 T=16*1024;x=x||T;var _=this;this.reader.onload=function(C){_.fileBuffer=y.from(new Uint8Array(C.target.result)),_.file=null,_.readFileAndPush(x)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(x)},h._createStream=function(x,T,_){if(r(x)||c(x))return new b(x.slice(T,_));throw new Error("_createStream requires File/Blob.")},h._getPartSize=function(x,T){var _=10*1e3,E=1024*1024;return T?Math.max(Math.ceil(x/_),T):E},h._divideParts=function(x,T){for(var _=Math.ceil(x/T),E=[],C=0;C<_;C++){var I=T*C,O=Math.min(I+T,x);E.push({start:I,end:O})}return E}}).call(this,k("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(k,D,i){"use strict";var y=k("babel-runtime/core-js/promise"),p=o(y),S=k("babel-runtime/core-js/object/keys"),v=o(S),m=k("babel-runtime/core-js/object/assign"),f=o(m),d=k("babel-runtime/regenerator"),u=o(d);function o(_){return _&&_.__esModule?_:{default:_}}var n=k("utility"),t=k("fs"),a=k("is-type-of"),e=k("url"),l=k("copy-to"),r=k("path"),s=k("mime"),c=k("../common/callback"),h=k("../common/signUtils"),g=k("merge-descriptors"),A=k("../common/utils/isBlob"),b=A.isBlob,w=k("../common/utils/isFile"),x=w.isFile,T=i;T.append=function(E,C,I){var O;return u.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:return I=I||{},I.position===void 0&&(I.position="0"),I.subres={append:"",position:I.position},I.method="POST",R.next=6,u.default.awrap(this.put(E,C,I));case 6:return O=R.sent,O.nextAppendPosition=O.res.headers["x-oss-next-append-position"],R.abrupt("return",O);case 9:case"end":return R.stop()}},null,this)},T.put=function(E,C,I){var O,F,R,B,P,X,M;return u.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(O=void 0,I=I||{},E=this._objectName(E),!a.buffer(C)){W.next=7;break}O=C,W.next=33;break;case 7:if(!(b(C)||x(C))){W.next=32;break}return I.mime||(x(C)?I.mime=s.getType(r.extname(C.name)):I.mime=C.type),F=this._createStream(C,0,C.size),W.next=12,u.default.awrap(this._getFileSize(C));case 12:return I.contentLength=W.sent,W.prev=13,W.next=16,u.default.awrap(this.putStream(E,F,I));case 16:return R=W.sent,W.abrupt("return",R);case 20:if(W.prev=20,W.t0=W.catch(13),!(W.t0.code==="RequestTimeTooSkewed")){W.next=29;break}return this.options.amendTimeSkewed=+new Date(W.t0.serverTime)-new Date,W.next=26,u.default.awrap(this.put(E,C,I));case 26:return W.abrupt("return",W.sent);case 29:throw W.t0;case 30:W.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return I.headers=I.headers||{},this._convertMetaToHeaders(I.meta,I.headers),B=I.method||"PUT",P=this._objectRequestParams(B,E,I),c.encodeCallback(P,I),P.mime=I.mime,P.content=O,P.successStatuses=[200],W.next=43,u.default.awrap(this.request(P));case 43:return X=W.sent,M={name:E,url:this._objectUrl(E),res:X.res},P.headers&&P.headers["x-oss-callback"]&&(M.data=JSON.parse(X.data.toString())),W.abrupt("return",M);case 47:case"end":return W.stop()}},null,this,[[13,20]])},T.putStream=function(E,C,I){var O,F,R,B;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return I=I||{},I.headers=I.headers||{},E=this._objectName(E),I.contentLength?I.headers["Content-Length"]=I.contentLength:I.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(I.meta,I.headers),O=I.method||"PUT",F=this._objectRequestParams(O,E,I),c.encodeCallback(F,I),F.mime=I.mime,F.stream=C,F.successStatuses=[200],X.next=13,u.default.awrap(this.request(F));case 13:return R=X.sent,B={name:E,url:this._objectUrl(E),res:R.res},F.headers&&F.headers["x-oss-callback"]&&(B.data=JSON.parse(R.data.toString())),X.abrupt("return",B);case 17:case"end":return X.stop()}},null,this)},g(T,k("../common/object/copyObject")),g(T,k("../common/object/getObjectTagging")),g(T,k("../common/object/putObjectTagging")),g(T,k("../common/object/deleteObjectTagging")),g(T,k("../common/image")),g(T,k("../common/object/getBucketVersions")),g(T,k("../common/object/getACL")),g(T,k("../common/object/putACL")),g(T,k("../common/object/head")),g(T,k("../common/object/delete")),g(T,k("../common/object/get")),g(T,k("../common/object/putSymlink")),g(T,k("../common/object/getSymlink")),g(T,k("../common/object/deleteMulti")),g(T,k("../common/object/getObjectMeta")),T.putMeta=function(E,C,I){var O;return u.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,u.default.awrap(this.copy(E,E,{meta:C||{},timeout:I&&I.timeout,ctx:I&&I.ctx}));case 2:return O=R.sent,R.abrupt("return",O);case 4:case"end":return R.stop()}},null,this)},T.list=function(E,C){var I,O,F,R,B;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return I=this._objectRequestParams("GET","",C),I.query=E,I.xmlResponse=!0,I.successStatuses=[200],X.next=6,u.default.awrap(this.request(I));case 6:return O=X.sent,F=O.data.Contents,R=this,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(M){return{name:M.Key,url:R._objectUrl(M.Key),lastModified:M.LastModified,etag:M.ETag,type:M.Type,size:Number(M.Size),storageClass:M.StorageClass,owner:{id:M.Owner.ID,displayName:M.Owner.DisplayName}}})),B=O.data.CommonPrefixes||null,B&&(Array.isArray(B)||(B=[B]),B=B.map(function(M){return M.Prefix})),X.abrupt("return",{res:O.res,objects:F,prefixes:B,nextMarker:O.data.NextMarker||null,isTruncated:O.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},T.restore=function(E,C){var I,O;return u.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:return C=C||{},C.subres=(0,f.default)({restore:""},C.subres),C.versionId&&(C.subres.versionId=C.versionId),I=this._objectRequestParams("POST",E,C),I.successStatuses=[202],R.next=7,u.default.awrap(this.request(I));case 7:return O=R.sent,R.abrupt("return",{res:O.res});case 9:case"end":return R.stop()}},null,this)},T.signatureUrl=function(E,C){C=C||{},E=this._objectName(E),C.method=C.method||"GET";var I=n.timestamp()+(C.expires||1800),O={bucket:this.options.bucket,object:E},F=this._getResource(O);this.options.stsToken&&(C["security-token"]=this.options.stsToken);var R=h._signatureForURL(this.options.accessKeySecret,C,F,I),B=e.parse(this._getReqUrl(O));return B.query={OSSAccessKeyId:this.options.accessKeyId,Expires:I,Signature:R.Signature},l(R.subResource).to(B.query),B.format()},T.getObjectUrl=function(E,C){return C?C[C.length-1]!=="/"&&(C+="/"):C=this.options.endpoint.format(),C+this._escape(this._objectName(E))},T._objectUrl=function(E){return this._getReqUrl({bucket:this.options.bucket,object:E})},T.generateObjectUrl=function(_,E){if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var C=e.parse(E),I=this.options.bucket;C.hostname=I+"."+C.hostname,C.host=I+"."+C.host,E=C.format()}return E+this._escape(this._objectName(_))},T._objectRequestParams=function(E,C,I){if(!this.options.bucket)throw new Error("Please create a bucket first");I=I||{},C=this._objectName(C);var O={object:C,bucket:this.options.bucket,method:E,subres:I&&I.subres,timeout:I&&I.timeout,ctx:I&&I.ctx};return I.headers&&(O.headers={},l(I.headers).to(O.headers)),O},T._objectName=function(E){return E.replace(/^\/+/,"")},T._convertMetaToHeaders=function(E,C){if(!E)return;(0,v.default)(E).forEach(function(I){C["x-oss-meta-"+I]=E[I]})},T._deleteFileSafe=function(E){var C=this;return new p.default(function(I){t.exists(E,function(O){O?t.unlink(E,function(F){F&&C.debug("unlink %j error: %s",E,F,"error"),I()}):I()})})}},{"../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(k,D,i){"use strict";i.version="6.10.0"},{}],6:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=i;f.deleteBucketLifecycle=function(u,o){var n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),n=this._bucketRequestParams("DELETE",u,"lifecycle",o),n.successStatuses=[204],e.next=5,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=i;f.deleteBucketWebsite=function(u,o){var n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),n=this._bucketRequestParams("DELETE",u,"website",o),n.successStatuses=[204],e.next=5,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/isArray"),d=f.isArray,u=k("../utils/formatObjKey"),o=u.formatObjKey,n=i;n.getBucketLifecycle=function(a,e){var l,r,s;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return m(a),l=this._bucketRequestParams("GET",a,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,h.next=6,p.default.awrap(this.request(l));case 6:return r=h.sent,s=r.data.Rule||null,s&&(d(s)||(s=[s]),s=s.map(function(g){return g.ID&&(g.id=g.ID,delete g.ID),g.Tag&&!d(g.Tag)&&(g.Tag=[g.Tag]),o(g,"firstLowerCase")})),h.abrupt("return",{rules:s,res:r.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=i;f.getBucketVersioning=function(u,o){var n,t,a;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return m(u),n=this._bucketRequestParams("GET",u,"versioning",o),n.xmlResponse=!0,n.successStatuses=[200],l.next=6,p.default.awrap(this.request(n));case 6:return t=l.sent,a=t.data.Status,l.abrupt("return",{status:t.status,versionStatus:a,res:t.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(o){return o&&o.__esModule?o:{default:o}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/isObject"),d=f.isObject,u=i;u.getBucketWebsite=function(n,t){var a,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return m(n),a=this._bucketRequestParams("GET",n,"website",t),a.successStatuses=[200],a.xmlResponse=!0,s.next=6,p.default.awrap(this.request(a));case 6:return e=s.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(d(e.data.RoutingRules.RoutingRule)?l=[e.data.RoutingRules.RoutingRule]:l=e.data.RoutingRules.RoutingRule),s.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 s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(x){return x&&x.__esModule?x:{default:x}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/isArray"),d=f.isArray,u=k("../utils/deepCopy"),o=u.deepCopy,n=k("../utils/isObject"),t=n.isObject,a=k("../utils/obj2xml"),e=a.obj2xml,l=k("../utils/checkObjectTag"),r=l.checkObjectTag,s=k("../utils/getStrBytesCount"),c=s.getStrBytesCount,h=i;h.putBucketLifecycle=function(T,_,E){var C,I,O,F,R;return p.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(m(T),d(_)){P.next=3;break}throw new Error("rules must be Array");case 3:return C=this._bucketRequestParams("PUT",T,"lifecycle",E),I=[],O={LifecycleConfiguration:{Rule:I}},_.forEach(function(X){g(X),w(X),X.id&&(X.ID=X.id,delete X.id),I.push(X)}),F=e(O,{headers:!0,firstUpperCase:!0}),C.content=F,C.mime="xml",C.successStatuses=[200],P.next=13,p.default.awrap(this.request(C));case 13:return R=P.sent,P.abrupt("return",{res:R.res});case 15:case"end":return P.stop()}},null,this)};function g(x){x.days&&(x.expiration={days:x.days}),x.date&&(x.expiration={createdBeforeDate:x.date})}function A(x,T){var _=x.days,E=x.createdBeforeDate;if(!_&&!E)throw new Error(T+" must includes days or createdBeforeDate");if(_&&!/^[1-9][0-9]*$/.test(_))throw new Error("days must be a positive integer");if(E&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(E))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(x){if(!d(x)&&!t(x))throw new Error("tag must be Object or Array");x=t(x)?[x]:x;var T={},_=o(x);_.forEach(function(E){T[E.key]=E.value}),r(T)}function w(x){if(x.id&&c(x.id)>255)throw new Error("ID is composed of 255 bytes at most");if(x.prefix===""||x.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(x.status))throw new Error("Status must be Enabled or Disabled");if(x.transition){if(!["IA","Archive"].includes(x.transition.storageClass))throw new Error("StorageClass must be IA or Archive");A(x.transition,"Transition")}if(x.expiration){if(!x.expiration.expiredObjectDeleteMarker)A(x.expiration,"Expiration");else if(x.expiration.days||x.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(x.abortMultipartUpload&&A(x.abortMultipartUpload,"AbortMultipartUpload"),!x.expiration&&!x.abortMultipartUpload&&!x.transition&&!x.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(x.tag){if(x.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(x.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(o){return o&&o.__esModule?o:{default:o}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/obj2xml"),d=f.obj2xml,u=i;u.putBucketVersioning=function(n,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(m(n),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",n,"versioning",a),l={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=d(l,{headers:!0}),c.next=9,p.default.awrap(this.request(e));case 9:return r=c.sent,c.abrupt("return",{res:r.res,status:r.status});case 11:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("../utils/obj2xml"),d=f.obj2xml,u=k("../utils/isArray"),o=u.isArray,n=i;n.putBucketWebsite=function(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],r,s,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(m(a),r=this._bucketRequestParams("PUT",a,"website",l),s={Suffix:e.index||"index.html"},c={IndexDocument:s},h={WebsiteConfiguration:c},e.supportSubDir&&(s.SupportSubDir=e.supportSubDir),e.type&&(s.Type=e.type),e.error&&(c.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){b.next=12;break}if(o(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),r.content=h,r.mime="xml",r.successStatuses=[200],b.next=18,p.default.awrap(this.request(r));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(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/object/keys"),S=f(p),v=k("babel-runtime/core-js/json/stringify"),m=f(v);function f(d){return d&&d.__esModule?d:{default:d}}i.encodeCallback=function(u,o){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&o.callback){var n={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(n.callbackHost=o.callback.host),o.callback.contentType&&(n.callbackBodyType=o.callback.contentType);var t=y.from((0,m.default)(n)).toString("base64");if(u.headers["x-oss-callback"]=t,o.callback.customValue){var a={};(0,S.default)(o.callback.customValue).forEach(function(e){a["x:"+e]=o.callback.customValue[e]}),u.headers["x-oss-callback-var"]=y.from((0,m.default)(a)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/assign"),p=S(y);function S(n){return n&&n.__esModule?n:{default:n}}var v=k("humanize-ms"),m=k("url"),f=k("../utils/checkBucketName"),d=f.checkBucketName;function u(n,t){var a=m.parse(n);if(a.protocol||(a=m.parse("http"+(t?"s":"")+"://"+n)),a.protocol!=="http:"&&a.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return a}function o(n,t,a){var e=a?"https://":"http://",l=t?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return n.substr(0,r.length)===r&&(l=".aliyuncs.com"),m.parse(e+n+l)}D.exports=function(n){if(!n||!n.accessKeyId||!n.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");n.bucket&&d(n.bucket);var t=(0,p.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},n);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=v(t.timeout)),t.endpoint)t.endpoint=u(t.endpoint,t.secure);else if(t.region)t.endpoint=o(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(k,D,i){"use strict";var y=k("merge-descriptors"),p=i;y(p,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var v=k("../utils/checkBucketName"),m=v.checkBucketName,f=k("querystring"),d=k("js-base64"),u=d.Base64.encode,o=i;o.processObjectSave=function(a,e,l,r){var s,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return n(a,"sourceObject"),n(e,"targetObject"),n(l,"process"),e=this._objectName(e),r&&m(r),s=this._objectRequestParams("POST",a,{subres:"x-oss-process"}),c=r?",b_"+u(r):"",e=u(e),h={"x-oss-process":l+"|sys/saveas,o_"+e+c},s.content=f.stringify(h),b.next=12,p.default.awrap(this.request(s));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 n(t,a){if(!t)throw new Error(a+" is required");if(typeof t!="string")throw new Error(a+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(o){return o&&o.__esModule?o:{default:o}}var v=k("copy-to"),m=k("./callback"),f=k("./utils/deepCopy"),d=f.deepCopy,u=i;u.listUploads=function(n,t){var a,e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},a={},v(t).to(a),a.subres="uploads",e=this._objectRequestParams("GET","",a),e.query=n,e.xmlResponse=!0,e.successStatuses=[200],c.next=10,p.default.awrap(this.request(e));case 10:return l=c.sent,r=l.data.Upload||[],Array.isArray(r)||(r=[r]),r=r.map(function(h){return{name:h.Key,uploadId:h.UploadId,initiated:h.Initiated}}),c.abrupt("return",{res:l.res,uploads:r,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(n,t,a,e){var l,r,s;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=e||{},l={},v(e).to(l),l.subres={uploadId:t},r=this._objectRequestParams("GET",n,l),r.query=a,r.xmlResponse=!0,r.successStatuses=[200],h.next=10,p.default.awrap(this.request(r));case 10:return s=h.sent,h.abrupt("return",{res:s.res,uploadId:s.data.UploadId,bucket:s.data.Bucket,name:s.data.Key,partNumberMarker:s.data.PartNumberMarker,nextPartNumberMarker:s.data.NextPartNumberMarker,maxParts:s.data.MaxParts,isTruncated:s.data.IsTruncated,parts:s.data.Part||[]});case 12:case"end":return h.stop()}},null,this)},u.abortMultipartUpload=function(n,t,a){var e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),a=a||{},e={},v(a).to(e),e.subres={uploadId:t},l=this._objectRequestParams("DELETE",n,e),l.successStatuses=[204],c.next=9,p.default.awrap(this.request(l));case 9:return r=c.sent,c.abrupt("return",{res:r.res});case 11:case"end":return c.stop()}},null,this)},u.initMultipartUpload=function(n,t){var a,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t=t||{},a={},v(t).to(a),a.headers=a.headers||{},this._convertMetaToHeaders(t.meta,a.headers),a.subres="uploads",e=this._objectRequestParams("POST",n,a),e.mime=t.mime,e.xmlResponse=!0,e.successStatuses=[200],s.next=12,p.default.awrap(this.request(e));case 12:return l=s.sent,s.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return s.stop()}},null,this)},u.uploadPart=function(n,t,a,e,l,r,s){var c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return c={stream:this._createStream(e,l,r),size:r-l},g.next=3,p.default.awrap(this._uploadPart(n,t,a,c,s));case 3:return g.abrupt("return",g.sent);case 4:case"end":return g.stop()}},null,this)},u.completeMultipartUpload=function(n,t,a,e){var l,r,s,c,h,g,A,b;return p.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:for(l=a.concat().sort(function(T,_){return T.number-_.number}).filter(function(T,_,E){return!_||T.number!==E[_-1].number}),r=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,s=0;s<l.length;s++)c=l[s],r+=`<Part>
`,r+="<PartNumber>"+c.number+`</PartNumber>
`,r+="<ETag>"+c.etag+`</ETag>
`,r+=`</Part>
`;return r+="</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",n,h),m.encodeCallback(g,h),g.mime="xml",g.content=r,g.headers&&g.headers["x-oss-callback"]||(g.xmlResponse=!0),g.successStatuses=[200],x.next=17,p.default.awrap(this.request(g));case 17:return A=x.sent,b={res:A.res,bucket:g.bucket,name:n,etag:A.res.headers.etag},g.headers&&g.headers["x-oss-callback"]&&(b.data=JSON.parse(A.data.toString())),x.abrupt("return",b);case 21:case"end":return x.stop()}},null,this)},u._uploadPart=function(n,t,a,e,l){var r,s,c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return l=l||{},r={},v(l).to(r),r.headers={"Content-Length":e.size},r.subres={partNumber:a,uploadId:t},s=this._objectRequestParams("PUT",n,r),s.mime=r.mime,s.stream=e.stream,s.successStatuses=[200],g.next=11,p.default.awrap(this.request(s));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,s.stream=null,g.abrupt("return",{name:n,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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),S=k("babel-runtime/core-js/object/keys"),v=d(S),m=k("babel-runtime/helpers/typeof"),f=d(m);function d(t){return t&&t.__esModule?t:{default:t}}var u=k("../utils/checkBucketName"),o=u.checkBucketName,n=i;n.copy=function(a,e,l,r){var s,c,h;return p.default.async(function(A){for(;;)switch(A.prev=A.next){case 0:return(typeof l=="undefined"?"undefined":(0,f.default)(l))==="object"&&(r=l),r=r||{},r.headers=r.headers||{},(0,v.default)(r.headers).forEach(function(b){r.headers["x-oss-copy-source-"+b.toLowerCase()]=r.headers[b]}),r.meta&&(r.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(r.meta,r.headers),e=this._getSourceName(e,l),r.versionId&&(e=e+"?versionId="+r.versionId),r.headers["x-oss-copy-source"]=e,s=this._objectRequestParams("PUT",a,r),s.xmlResponse=!0,s.successStatuses=[200,304],A.next=14,p.default.awrap(this.request(s));case 14:return c=A.sent,h=c.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),A.abrupt("return",{data:h,res:c.res});case 18:case"end":return A.stop()}},null,this)},n._getSourceName=function(a,e){return typeof e=="string"?a=this._objectName(a):a[0]!=="/"?e=this.options.bucket:(e=a.replace(/\/(.+?)(\/.*)/,"$1"),a=a.replace(/(\/.+?\/)(.*)/,"$2")),o(e),a=encodeURI(a),a="/"+e+"/"+a,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.delete=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,v.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),n=this._objectRequestParams("DELETE",u,o),n.successStatuses=[204],e.next=6,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(n){return n&&n.__esModule?n:{default:n}}var f=k("utility"),d=k("../utils/obj2xml"),u=d.obj2xml,o=i;o.deleteMulti=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,r,s,c,h,g,A,b,w,x,T;return p.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:if(e=[],!(!t||!t.length)){E.next=3;break}throw new Error("names is required");case 3:for(l=0;l<t.length;l++)r={},typeof t[l]=="string"?r.Key=f.escape(this._objectName(t[l])):(s=t[l],c=s.key,h=s.versionId,r.Key=f.escape(this._objectName(c)),r.VersionId=h),e.push(r);return g={Delete:{Quiet:!!a.quiet,Object:e}},A=u(g,{headers:!0}),a.subres=(0,v.default)({delete:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),b=this._objectRequestParams("POST","",a),b.mime="xml",b.content=A,b.xmlResponse=!0,b.successStatuses=[200],E.next=15,p.default.awrap(this.request(b));case 15:return w=E.sent,x=w.data,T=x&&x.Deleted||null,T&&(Array.isArray(T)||(T=[T])),E.abrupt("return",{res:w.res,deleted:T||[]});case 20:case"end":return E.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.deleteObjectTagging=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,v.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),u=this._objectName(u),n=this._objectRequestParams("DELETE",u,o),n.successStatuses=[204],e.next=7,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(o){return o&&o.__esModule?o:{default:o}}var f=k("fs"),d=k("is-type-of"),u=i;u.get=function(n,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r,s;return p.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=f.createWriteStream(t),l=!0):a=t,a=a||{},a.subres=(0,v.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.process&&(a.subres["x-oss-process"]=a.process),r=void 0,h.prev=8,s=this._objectRequestParams("GET",n,a),s.writeStream=e,s.successStatuses=[200,206,304],h.next=14,p.default.awrap(this.request(s));case 14:r=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,p.default.awrap(this._deleteFileSafe(t));case 24:throw h.t0;case 25:return h.abrupt("return",{res:r.res,content:r.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.getACL=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,v.default)({acl:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),u=this._objectName(u),n=this._objectRequestParams("GET",u,o),n.successStatuses=[200],n.xmlResponse=!0,e.next=8,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=d(y),S=k("babel-runtime/regenerator"),v=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(s){return s&&s.__esModule?s:{default:s}}var u=i,o=k("../utils/isObject"),n=o.isObject,t=k("../utils/isArray"),a=t.isArray;u.getBucketVersions=e,u.listObjectVersions=e;function e(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,g,A,b,w,x;return v.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(s.versionIdMarker&&s.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,f.default)({versions:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),h=this._objectRequestParams("GET","",c),h.xmlResponse=!0,h.successStatuses=[200],h.query=r(s),_.next=10,v.default.awrap(this.request(h));case 10:return g=_.sent,A=g.data.Version||[],b=g.data.DeleteMarker||[],w=this,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(E){return{name:E.Key,url:w._objectUrl(E.Key),lastModified:E.LastModified,isLatest:E.IsLatest==="true",versionId:E.VersionId,etag:E.ETag,type:E.Type,size:Number(E.Size),storageClass:E.StorageClass,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),b&&(a(b)||(b=[b]),b=b.map(function(E){return{name:E.Key,lastModified:E.LastModified,versionId:E.VersionId,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),x=g.data.CommonPrefixes||null,x&&(a(x)||(x=[x]),x=x.map(function(E){return E.Prefix})),_.abrupt("return",{res:g.res,objects:A,deleteMarker:b,prefixes:x,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(s){return s.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return n(s)&&(0,p.default)(s).forEach(function(h){c[l(h)]=s[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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.getObjectMeta=function(u,o){var n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=o||{},u=this._objectName(u),o.subres=(0,v.default)({objectMeta:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),n=this._objectRequestParams("HEAD",u,o),n.successStatuses=[200],e.next=8,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(o){return o&&o.__esModule?o:{default:o}}var f=i,d=k("../utils/isObject"),u=d.isObject;f.getObjectTagging=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,e,l,r,s;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return t.subres=(0,v.default)({tagging:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),n=this._objectName(n),a=this._objectRequestParams("GET",n,t),a.successStatuses=[200],h.next=7,p.default.awrap(this.request(a));case 7:return e=h.sent,h.next=10,p.default.awrap(this.parseXML(e.data));case 10:return l=h.sent,r=l.TagSet.Tag,r=r&&u(r)?[r]:r||[],s={},r.forEach(function(g){s[g.Key]=g.Value}),h.abrupt("return",{status:e.status,res:e.res,tag:s});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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.getSymlink=function(u){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t,a;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return o.subres=(0,v.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),u=this._objectName(u),n=this._objectRequestParams("GET",u,o),n.successStatuses=[200],l.next=7,p.default.awrap(this.request(n));case 7:return t=l.sent,a=t.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(a),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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),S=k("babel-runtime/core-js/object/keys"),v=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(o){return o&&o.__esModule?o:{default:o}}var u=i;u.head=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.subres=(0,f.default)({},t.subres),t.versionId&&(t.subres.versionId=t.versionId),a=this._objectRequestParams("HEAD",n,t),a.successStatuses=[200,304],s.next=6,p.default.awrap(this.request(a));case 6:return e=s.sent,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,v.default)(e.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[c.substring(11)]=e.headers[c])}),s.abrupt("return",l);case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.putACL=function(u,o,n){var t,a;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=n||{},n.subres=(0,v.default)({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=o,u=this._objectName(u),t=this._objectRequestParams("PUT",u,n),t.successStatuses=[200],l.next=10,p.default.awrap(this.request(t));case 10:return a=l.sent,l.abrupt("return",{res:a.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),S=k("babel-runtime/core-js/object/keys"),v=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(e){return e&&e.__esModule?e:{default:e}}var u=k("../utils/obj2xml"),o=u.obj2xml,n=k("../utils/checkObjectTag"),t=n.checkObjectTag,a=i;a.putObjectTagging=function(l,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return t(r),s.subres=(0,f.default)({tagging:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),l=this._objectName(l),c=this._objectRequestParams("PUT",l,s),c.successStatuses=[200],r=(0,v.default)(r).map(function(w){return{Key:w,Value:r[w]}}),h={Tagging:{TagSet:{Tag:r}}},c.mime="xml",c.content=o(h),b.next=12,p.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.putSymlink=function(u,o,n){var t,a;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=n||{},n.headers=n.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=o,n.subres=(0,v.default)({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),u=this._objectName(u),t=this._objectRequestParams("PUT",u,n),t.successStatuses=[200],l.next=13,p.default.awrap(this.request(t));case 13:return a=l.sent,l.abrupt("return",{res:a.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/promise"),v=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f._parallelNode=function(u,o,n,t){var a,e,l,r,s,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:a=this,e=[],l=[],r=u.length/o,s=u.length%o,c=s===0?r:(u.length-s)/o+1,h=1,g=0;case 8:if(!(g<u.length)){b.next=26;break}if(!a.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?l.push(n(a,u[g],t)):l.push(n(a,u[g])),!(l.length===o||h===c&&g===u.length-1)){b.next=23;break}return b.prev=13,h+=1,b.next=17,p.default.awrap(v.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]])},f._parallel=function(u,o,n){var t=this;return new v.default(function(a){var e=[];if(o<=0||!u){a(e);return}function l(x){return function(){if(x===null)throw new Error("Callback was already called.");var T=x;x=null;for(var _=arguments.length,E=Array(_),C=0;C<_;C++)E[C]=arguments[C];T.apply(this,E)}}function r(x){var T=-1,_=x.length;return function(){return++T<_&&!t.isCancel()?{value:x[T],key:T}:null}}var s=r(u),c=!1,h=0,g=!1;function A(x,T){h-=1,x?(c=!0,e.push(x),a(e)):T==={}||c&&h<=0?(c=!0,a(e)):g||(t.isCancel()?a(e):w())}function b(x,T){n(x).then(function(_){T(null,_)}).catch(function(_){T(_)})}function w(){for(g=!0;h<o&&!c&&!t.isCancel();){var x=s();if(x===null||e.length>0){c=!0,h<=0&&a(e);return}h+=1,b(x.value,l(A))}g=!1}w()})},f.cancel=function(u){this.options.cancelFlag=!0,u&&this.abortMultipartUpload(u.name,u.uploadId,u.options)},f.isCancel=function(){return this.options.cancelFlag},f.resetCancelFlag=function(){this.options.cancelFlag=!1},f._stop=function(){this.options.cancelFlag=!0},f._makeCancelEvent=function(){var u={status:0,name:"cancel"};return u}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/json/stringify"),S=f(p),v=k("babel-runtime/core-js/object/keys"),m=f(v);function f(o){return o&&o.__esModule?o:{default:o}}var d=k("./../../shims/crypto/crypto.js"),u=k("is-type-of");i.buildCanonicalizedResource=function(n,t){var a=""+n,e="?";if(u.string(t)&&t.trim()!=="")a+=e+t;else if(u.array(t))t.sort(),a+=e+t.join("&");else if(t){var l=function(c,h){return c[0]>h[0]?1:c[0]<h[0]?-1:0},r=function(c){a+=e+c,t[c]&&(a+="="+t[c]),e="&"};(0,m.default)(t).sort(l).forEach(r)}return a},i.buildCanonicalString=function(n,t,a,e){a=a||{};var l=a.headers||{},r="x-oss-",s=[],c={},h=[n.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 A=g.toLowerCase();A.indexOf(r)===0&&(c[A]=String(l[g]).trim())}),(0,m.default)(c).sort().forEach(function(g){s.push(g+":"+c[g])}),h=h.concat(s),h.push(this.buildCanonicalizedResource(t,a.parameters)),h.join(`
`)},i.computeSignature=function(n,t){var a=d.createHmac("sha1",n);return a.update(y.from(t,"utf8")).digest("base64")},i.authorization=function(n,t,a){return"OSS "+n+":"+this.computeSignature(t,a)},i._signatureForURL=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments[2],e=arguments[3],l={},r=t.subResource,s=r===void 0?{}:r;if(t.process){var c="x-oss-process";s[c]=t.process}if(t.trafficLimit){var h="x-oss-traffic-limit";s[h]=t.trafficLimit}if(t.response&&(0,m.default)(t.response).forEach(function(w){var x="response-"+w.toLowerCase();s[x]=t.response[w]}),(0,m.default)(t).forEach(function(w){var x=w.toLowerCase(),T=t[w];x.indexOf("x-oss-")===0?l[x]=T:(x.indexOf("content-md5")===0||x.indexOf("content-type")===0)&&(l[w]=T)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(s["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),s.callback=y.from((0,S.default)(g)).toString("base64"),t.callback.customValue){var A={};(0,m.default)(t.callback.customValue).forEach(function(w){A["x:"+w]=t.callback.customValue[w]}),s["callback-var"]=y.from((0,S.default)(A)).toString("base64")}}var b=this.buildCanonicalString(t.method,a,{headers:l,parameters:s},e.toString());return{Signature:this.computeSignature(n,b),subResource:s}}}).call(this,k("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(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkBucketName=void 0,i.checkBucketName=function(y,p){var S=p?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!S.test(y))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/entries"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"__esModule",{value:!0}),i.checkObjectTag=void 0;var v=k("./checkValid"),m=v.checkValid,f=k("./isObject"),d=f.isObject,u=[{validator:function(a){if(typeof a!="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 (/)"}],o={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 n(t){if(!d(t))throw new Error("tag must be Object");var a=(0,p.default)(t);if(a.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];a.forEach(function(l){l.forEach(function(r,s){m(r,o[e[s]])})})}i.checkObjectTag=n},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkValid=void 0;function y(p,S){S.forEach(function(v){if(v.validator)v.validator(p);else if(v.pattern&&!v.pattern.test(p))throw new Error(v.msg)})}i.checkValid=y},{}],38:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/object/assign"),S=v(p);function v(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(i,"__esModule",{value:!0}),i.createRequest=void 0;var m=k("./../../../shims/crypto/crypto.js"),f=k("debug")("ali-oss"),d=k("mime"),u=k("dateformat"),o=k("copy-to"),n=k("path");function t(l,r){return l[r]||l[r.toLowerCase()]}function a(l,r){delete l[r],delete l[r.toLowerCase()]}function e(l){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var s={"x-oss-date":u(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(s["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,S.default)(s,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(s["x-oss-security-token"]=this.options.stsToken),o(l.headers).to(s),t(s,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?s["Content-Type"]=l.mime:s["Content-Type"]=d.getType(l.mime||n.extname(l.object||""))),t(s,"Content-Type")||a(s,"Content-Type"),l.content&&(s["Content-Md5"]=m.createHash("md5").update(y.from(l.content,"utf8")).digest("base64"),s["Content-Length"]||(s["Content-Length"]=l.content.length));var c=this._getResource(l);s.authorization=this.authorization(l.method,c,l.subres,s);var h=this._getReqUrl(l);f("request %s %s, with headers %j, !!stream: %s",l.method,h,s,!!l.stream);var g=l.timeout||this.options.timeout,A={method:l.method,content:l.content,stream:l.stream,headers:s,timeout:g,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.ctx||this.ctx};return this.agent&&(A.agent=this.agent),this.httpsAgent&&(A.httpsAgent=this.httpsAgent),{url:h,params:A}}i.createRequest=e}).call(this,k("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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),S=k("babel-runtime/helpers/typeof"),v=m(S);function m(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(i,"__esModule",{value:!0}),i.deepCopy=void 0,i.deepCopy=function(f){if(f===null||(typeof f=="undefined"?"undefined":(0,v.default)(f))!=="object")return f;var d=Array.isArray(f)?[]:{};return(0,p.default)(f).forEach(function(u){d[u]=i.deepCopy(f[u])}),d}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),S=k("babel-runtime/helpers/typeof"),v=m(S);function m(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0}),i.formatObjKey=void 0;function f(u,o){if(u===null||(typeof u=="undefined"?"undefined":(0,v.default)(u))!=="object")return u;var n=void 0;if(Array.isArray(u)){n=[];for(var t=0;t<u.length;t++)n.push(f(u[t],o))}else n={},(0,p.default)(u).forEach(function(a){n[d(a,o)]=f(u[a],o)});return n}i.formatObjKey=f;function d(u,o){return o==="firstUpperCase"?u=u.replace(/^./,function(n){return n.toUpperCase()}):o==="firstLowerCase"&&(u=u.replace(/^./,function(n){return n.toLowerCase()})),u}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStrBytesCount=void 0;function y(p){for(var S=0,v=0;v<p.length;v++){var m=p.charAt(v);/^[\u00-\uff]$/.test(m)?S+=1:S+=2}return S}i.getStrBytesCount=y},{}],42:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isArray=void 0,i.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isBlob=void 0;function y(p){return typeof Blob!="undefined"&&p instanceof Blob}i.isBlob=y},{}],44:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isFile=void 0,i.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isIP=void 0,i.isIP=function(y){var p=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,S=/^\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 p.test(y)||S.test(y)}},{}],46:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isObject=void 0,i.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(i,"__esModule",{value:!0}),i.obj2xml=void 0;var v=k("./formatObjKey");function m(d){return Object.prototype.toString.call(d).replace(/(.*? |])/g,"").toLowerCase()}function f(d,u){var o="";return u&&u.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
`),u&&u.firstUpperCase&&(d=v.formatObjKey(d,"firstUpperCase")),m(d)==="object"?(0,p.default)(d).forEach(function(n){m(d[n])==="string"||m(d[n])==="number"?o+="<"+n+">"+d[n]+"</"+n+">":m(d[n])==="object"?o+="<"+n+">"+f(d[n])+"</"+n+">":m(d[n])==="array"?o+=d[n].map(function(t){return"<"+n+">"+f(t)+"</"+n+">"}).join(""):o+="<"+n+">"+d[n].toString()+"</"+n+">"}):o+=d.toString(),o}i.obj2xml=f},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,D,i){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(k,D,i){D.exports=k("./register")().Promise},{"./register":51}],50:[function(k,D,i){"use strict";var y="@@any-promise/REGISTRATION",p=null;D.exports=function(S,v){return function(f,d){f=f||null,d=d||{};var u=d.global!==!1;if(p===null&&u&&(p=S[y]||null),p!==null&&f!==null&&p.implementation!==f)throw new Error('any-promise already defined as "'+p.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return p===null&&(f!==null&&typeof d.Promise!="undefined"?p={Promise:d.Promise,implementation:f}:p=v(f),u&&(S[y]=p)),p}}},{}],51:[function(k,D,i){"use strict";D.exports=k("./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(k,D,i){D.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,D,i){D.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,D,i){D.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,D,i){D.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,D,i){D.exports={default:k("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(k,D,i){D.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,D,i){D.exports={default:k("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(k,D,i){D.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,D,i){"use strict";i.__esModule=!0;var y=k("../core-js/symbol/iterator"),p=f(y),S=k("../core-js/symbol"),v=f(S),m=typeof v.default=="function"&&typeof p.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof v.default=="function"&&d.constructor===v.default&&d!==v.default.prototype?"symbol":typeof d};function f(d){return d&&d.__esModule?d:{default:d}}i.default=typeof v.default=="function"&&m(p.default)==="symbol"?function(d){return typeof d=="undefined"?"undefined":m(d)}:function(d){return d&&typeof v.default=="function"&&d.constructor===v.default&&d!==v.default.prototype?"symbol":typeof d=="undefined"?"undefined":m(d)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(k,D,i){D.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,D,i){"use strict";i.byteLength=u,i.toByteArray=n,i.fromByteArray=e;for(var y=[],p=[],S=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=v.length;m<f;++m)y[m]=v[m],p[v.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function d(l){var r=l.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=l.indexOf("=");s===-1&&(s=r);var c=s===r?0:4-s%4;return[s,c]}function u(l){var r=d(l),s=r[0],c=r[1];return(s+c)*3/4-c}function o(l,r,s){return(r+s)*3/4-s}function n(l){var r,s=d(l),c=s[0],h=s[1],g=new S(o(l,c,h)),A=0,b=h>0?c-4:c,w;for(w=0;w<b;w+=4)r=p[l.charCodeAt(w)]<<18|p[l.charCodeAt(w+1)]<<12|p[l.charCodeAt(w+2)]<<6|p[l.charCodeAt(w+3)],g[A++]=r>>16&255,g[A++]=r>>8&255,g[A++]=r&255;return h===2&&(r=p[l.charCodeAt(w)]<<2|p[l.charCodeAt(w+1)]>>4,g[A++]=r&255),h===1&&(r=p[l.charCodeAt(w)]<<10|p[l.charCodeAt(w+1)]<<4|p[l.charCodeAt(w+2)]>>2,g[A++]=r>>8&255,g[A++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function a(l,r,s){for(var c,h=[],g=r;g<s;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 r,s=l.length,c=s%3,h=[],g=16383,A=0,b=s-c;A<b;A+=g)h.push(a(l,A,A+g>b?b:A+g));return c===1?(r=l[s-1],h.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[s-2]<<8)+l[s-1],h.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),h.join("")}},{}],70:[function(k,D,i){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(y,p,S){typeof D!="undefined"&&D.exports?D.exports=S():typeof define=="function"&&define.amd?define(p,S):y[p]=S()}(this,"bowser",function(){var y=!0;function p(o){function n(z){var W=o.match(z);return W&&W.length>1&&W[1]||""}function t(z){var W=o.match(z);return W&&W.length>1&&W[2]||""}var a=n(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),l=!e&&/android/i.test(o),r=/nexus\s*[0-6]\s*/i.test(o),s=!r&&/nexus\s*[0-9]+/i.test(o),c=/CrOS/.test(o),h=/silk/i.test(o),g=/sailfish/i.test(o),A=/tizen/i.test(o),b=/(web|hpw)(o|0)s/i.test(o),w=/windows phone/i.test(o),x=/SamsungBrowser/i.test(o),T=!w&&/windows/i.test(o),_=!a&&!h&&/macintosh/i.test(o),E=!l&&!g&&!A&&!b&&/linux/i.test(o),C=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),I=n(/version\/(\d+(\.\d+)?)/i),O=/tablet/i.test(o)&&!/tablet pc/i.test(o),F=!O&&/[^-]mobi/i.test(o),R=/xbox/i.test(o),B;/opera/i.test(o)?B={name:"Opera",opera:y,version:I||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?B={name:"Opera",opera:y,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||I}:/SamsungBrowser/i.test(o)?B={name:"Samsung Internet for Android",samsungBrowser:y,version:I||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?B={name:"NAVER Whale browser",whale:y,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?B={name:"MZ Browser",mzbrowser:y,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?B={name:"Opera Coast",coast:y,version:I||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?B={name:"Focus",focus:y,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?B={name:"Yandex Browser",yandexbrowser:y,version:I||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?B={name:"UC Browser",ucbrowser:y,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?B={name:"Maxthon",maxthon:y,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?B={name:"Epiphany",epiphany:y,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?B={name:"Puffin",puffin:y,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?B={name:"Sleipnir",sleipnir:y,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?B={name:"K-Meleon",kMeleon:y,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:w?(B={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},C?(B.msedge=y,B.version=C):(B.msie=y,B.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?B={name:"Internet Explorer",msie:y,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?B={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?B={name:"Microsoft Edge",msedge:y,version:C}:/vivaldi/i.test(o)?B={name:"Vivaldi",vivaldi:y,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||I}:g?B={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?B={name:"SeaMonkey",seamonkey:y,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(B={name:"Firefox",firefox:y,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(B.firefoxos=y,B.osname="Firefox OS")):h?B={name:"Amazon Silk",silk:y,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?B={name:"PhantomJS",phantom:y,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?B={name:"SlimerJS",slimer:y,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?B={name:"BlackBerry",osname:"BlackBerry OS",blackberry:y,version:I||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(B={name:"WebOS",osname:"WebOS",webos:y,version:I||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(B.touchpad=y)):/bada/i.test(o)?B={name:"Bada",osname:"Bada",bada:y,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:A?B={name:"Tizen",osname:"Tizen",tizen:y,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||I}:/qupzilla/i.test(o)?B={name:"QupZilla",qupzilla:y,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||I}:/chromium/i.test(o)?B={name:"Chromium",chromium:y,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||I}:/chrome|crios|crmo/i.test(o)?B={name:"Chrome",chrome:y,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?B={name:"Android",version:I}:/safari|applewebkit/i.test(o)?(B={name:"Safari",safari:y},I&&(B.version=I)):a?(B={name:a=="iphone"?"iPhone":a=="ipad"?"iPad":"iPod"},I&&(B.version=I)):/googlebot/i.test(o)?B={name:"Googlebot",googlebot:y,version:n(/googlebot\/(\d+(\.\d+))/i)||I}:B={name:n(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)},!B.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(B.name=B.name||"Blink",B.blink=y):(B.name=B.name||"Webkit",B.webkit=y),!B.version&&I&&(B.version=I)):!B.opera&&/gecko\//i.test(o)&&(B.name=B.name||"Gecko",B.gecko=y,B.version=B.version||n(/gecko\/(\d+(\.\d+)?)/i)),!B.windowsphone&&(l||B.silk)?(B.android=y,B.osname="Android"):!B.windowsphone&&a?(B[a]=y,B.ios=y,B.osname="iOS"):_?(B.mac=y,B.osname="macOS"):R?(B.xbox=y,B.osname="Xbox"):T?(B.windows=y,B.osname="Windows"):E&&(B.linux=y,B.osname="Linux");function P(z){switch(z){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="";B.windows?X=P(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):B.windowsphone?X=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):B.mac?(X=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):a?(X=n(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):l?X=n(/android[ \/-](\d+(\.\d+)*)/i):B.webos?X=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):B.blackberry?X=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):B.bada?X=n(/bada\/(\d+(\.\d+)*)/i):B.tizen&&(X=n(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(B.osversion=X);var M=!B.windows&&X.split(".")[0];return O||s||a=="ipad"||l&&(M==3||M>=4&&!F)||B.silk?B.tablet=y:(F||a=="iphone"||a=="ipod"||l||r||B.blackberry||B.webos||B.bada)&&(B.mobile=y),B.msedge||B.msie&&B.version>=10||B.yandexbrowser&&B.version>=15||B.vivaldi&&B.version>=1||B.chrome&&B.version>=20||B.samsungBrowser&&B.version>=4||B.whale&&f([B.version,"1.0"])===1||B.mzbrowser&&f([B.version,"6.0"])===1||B.focus&&f([B.version,"1.0"])===1||B.firefox&&B.version>=20||B.safari&&B.version>=6||B.opera&&B.version>=10||B.ios&&B.osversion&&B.osversion.split(".")[0]>=6||B.blackberry&&B.version>=10.1||B.chromium&&B.version>=20?B.a=y:B.msie&&B.version<10||B.chrome&&B.version<20||B.firefox&&B.version<20||B.safari&&B.version<6||B.opera&&B.version<10||B.ios&&B.osversion&&B.osversion.split(".")[0]<6||B.chromium&&B.version<20?B.c=y:B.x=y,B}var S=p(typeof navigator!="undefined"&&navigator.userAgent||"");S.test=function(o){for(var n=0;n<o.length;++n){var t=o[n];if(typeof t=="string"&&t in S)return!0}return!1};function v(o){return o.split(".").length}function m(o,n){var t=[],a;if(Array.prototype.map)return Array.prototype.map.call(o,n);for(a=0;a<o.length;a++)t.push(n(o[a]));return t}function f(o){for(var n=Math.max(v(o[0]),v(o[1])),t=m(o,function(a){var e=n-v(a);return a=a+new Array(e+1).join(".0"),m(a.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--n>=0;){if(t[0][n]>t[1][n])return 1;if(t[0][n]===t[1][n]){if(n===0)return 0}else return-1}}function d(o,n,t){var a=S;typeof n=="string"&&(t=n,n=void 0),n===void 0&&(n=!1),t&&(a=p(t));var e=""+a.version;for(var l in o)if(o.hasOwnProperty(l)&&a[l]){if(typeof o[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(o));return f([e,o[l]])<0}return n}function u(o,n,t){return!d(o,n,t)}return S.isUnsupportedBrowser=d,S.compareVersions=f,S.check=u,S._detect=p,S.detect=p,S})},{}],71:[function(k,D,i){},{}],72:[function(k,D,i){var y=k("buffer").Buffer,p=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 S(u){if(u&&!p(u))throw new Error("Unknown encoding: "+u)}var v=i.StringDecoder=function(u){this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),S(u);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;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};v.prototype.write=function(u){for(var o="";this.charLength;){var n=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";u=u.slice(n,u.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var a=o.charCodeAt(o.length-1);if(a>=55296&&a<=56319){this.charLength+=this.surrogateSize,o="";continue}if(this.charReceived=this.charLength=0,u.length===0)return o;break}this.detectIncompleteChar(u);var t=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,t),t-=this.charReceived),o+=u.toString(this.encoding,0,t);var t=o.length-1,a=o.charCodeAt(t);if(a>=55296&&a<=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),o.substring(0,t)}return o},v.prototype.detectIncompleteChar=function(u){for(var o=u.length>=3?3:u.length;o>0;o--){var n=u[u.length-o];if(o==1&&n>>5==6){this.charLength=2;break}if(o<=2&&n>>4==14){this.charLength=3;break}if(o<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=o},v.prototype.end=function(u){var o="";if(u&&u.length&&(o=this.write(u)),this.charReceived){var n=this.charReceived,t=this.charBuffer,a=this.encoding;o+=t.slice(0,n).toString(a)}return o};function m(u){return u.toString(this.encoding)}function f(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(k,D,i){(function(y,p){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var S=k("base64-js"),v=k("ieee754"),m=k("isarray");i.Buffer=p,i.SlowBuffer=h,i.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:f(),i.kMaxLength=d();function f(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(Z){return!1}}function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(pe,Z){if(d()<Z)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(Z),pe.__proto__=p.prototype):(pe===null&&(pe=new p(Z)),pe.length=Z),pe}function p(pe,Z,Y){if(!p.TYPED_ARRAY_SUPPORT&&!(this instanceof p))return new p(pe,Z,Y);if(typeof pe=="number"){if(typeof Z=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,pe)}return o(this,pe,Z,Y)}p.poolSize=8192,p._augment=function(pe){return pe.__proto__=p.prototype,pe};function o(pe,Z,Y,ne){if(typeof Z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Z instanceof ArrayBuffer?r(pe,Z,Y,ne):typeof Z=="string"?e(pe,Z,Y):s(pe,Z)}p.from=function(pe,Z,Y){return o(null,pe,Z,Y)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0}));function n(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function t(pe,Z,Y,ne){return n(Z),Z<=0?u(pe,Z):Y!==void 0?typeof ne=="string"?u(pe,Z).fill(Y,ne):u(pe,Z).fill(Y):u(pe,Z)}p.alloc=function(pe,Z,Y){return t(null,pe,Z,Y)};function a(pe,Z){if(n(Z),pe=u(pe,Z<0?0:c(Z)|0),!p.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<Z;++Y)pe[Y]=0;return pe}p.allocUnsafe=function(pe){return a(null,pe)},p.allocUnsafeSlow=function(pe){return a(null,pe)};function e(pe,Z,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var ne=g(Z,Y)|0;pe=u(pe,ne);var ce=pe.write(Z,Y);return ce!==ne&&(pe=pe.slice(0,ce)),pe}function l(pe,Z){var Y=Z.length<0?0:c(Z.length)|0;pe=u(pe,Y);for(var ne=0;ne<Y;ne+=1)pe[ne]=Z[ne]&255;return pe}function r(pe,Z,Y,ne){if(Z.byteLength,Y<0||Z.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(Z.byteLength<Y+(ne||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&ne===void 0?Z=new Uint8Array(Z):ne===void 0?Z=new Uint8Array(Z,Y):Z=new Uint8Array(Z,Y,ne),p.TYPED_ARRAY_SUPPORT?(pe=Z,pe.__proto__=p.prototype):pe=l(pe,Z),pe}function s(pe,Z){if(p.isBuffer(Z)){var Y=c(Z.length)|0;return pe=u(pe,Y),pe.length===0||Z.copy(pe,0,0,Y),pe}if(Z){if(typeof ArrayBuffer!="undefined"&&Z.buffer instanceof ArrayBuffer||"length"in Z)return typeof Z.length!="number"||Xe(Z.length)?u(pe,0):l(pe,Z);if(Z.type==="Buffer"&&m(Z.data))return l(pe,Z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(pe){if(pe>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return pe|0}function h(pe){return+pe!=pe&&(pe=0),p.alloc(+pe)}p.isBuffer=function(Z){return!!(Z!=null&&Z._isBuffer)},p.compare=function(Z,Y){if(!p.isBuffer(Z)||!p.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(Z===Y)return 0;for(var ne=Z.length,ce=Y.length,ye=0,Ee=Math.min(ne,ce);ye<Ee;++ye)if(Z[ye]!==Y[ye]){ne=Z[ye],ce=Y[ye];break}return ne<ce?-1:ce<ne?1:0},p.isEncoding=function(Z){switch(String(Z).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}},p.concat=function(Z,Y){if(!m(Z))throw new TypeError('"list" argument must be an Array of Buffers');if(Z.length===0)return p.alloc(0);var ne;if(Y===void 0)for(Y=0,ne=0;ne<Z.length;++ne)Y+=Z[ne].length;var ce=p.allocUnsafe(Y),ye=0;for(ne=0;ne<Z.length;++ne){var Ee=Z[ne];if(!p.isBuffer(Ee))throw new TypeError('"list" argument must be an Array of Buffers');Ee.copy(ce,ye),ye+=Ee.length}return ce};function g(pe,Z){if(p.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var Y=pe.length;if(Y===0)return 0;for(var ne=!1;;)switch(Z){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Ge(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Le(pe).length;default:if(ne)return Ge(pe).length;Z=(""+Z).toLowerCase(),ne=!0}}p.byteLength=g;function A(pe,Z,Y){var ne=!1;if((Z===void 0||Z<0)&&(Z=0),Z>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,Z>>>=0,Y<=Z)return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return z(this,Z,Y);case"utf8":case"utf-8":return R(this,Z,Y);case"ascii":return X(this,Z,Y);case"latin1":case"binary":return M(this,Z,Y);case"base64":return F(this,Z,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,Z,Y);default:if(ne)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),ne=!0}}p.prototype._isBuffer=!0;function b(pe,Z,Y){var ne=pe[Z];pe[Z]=pe[Y],pe[Y]=ne}p.prototype.swap16=function(){var Z=this.length;if(Z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<Z;Y+=2)b(this,Y,Y+1);return this},p.prototype.swap32=function(){var Z=this.length;if(Z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<Z;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},p.prototype.swap64=function(){var Z=this.length;if(Z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<Z;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},p.prototype.toString=function(){var Z=this.length|0;return Z===0?"":arguments.length===0?R(this,0,Z):A.apply(this,arguments)},p.prototype.equals=function(Z){if(!p.isBuffer(Z))throw new TypeError("Argument must be a Buffer");return this===Z?!0:p.compare(this,Z)===0},p.prototype.inspect=function(){var Z="",Y=i.INSPECT_MAX_BYTES;return this.length>0&&(Z=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(Z+=" ... ")),"<Buffer "+Z+">"},p.prototype.compare=function(Z,Y,ne,ce,ye){if(!p.isBuffer(Z))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ne===void 0&&(ne=Z?Z.length:0),ce===void 0&&(ce=0),ye===void 0&&(ye=this.length),Y<0||ne>Z.length||ce<0||ye>this.length)throw new RangeError("out of range index");if(ce>=ye&&Y>=ne)return 0;if(ce>=ye)return-1;if(Y>=ne)return 1;if(Y>>>=0,ne>>>=0,ce>>>=0,ye>>>=0,this===Z)return 0;for(var Ee=ye-ce,Ce=ne-Y,ue=Math.min(Ee,Ce),ge=this.slice(ce,ye),Oe=Z.slice(Y,ne),Je=0;Je<ue;++Je)if(ge[Je]!==Oe[Je]){Ee=ge[Je],Ce=Oe[Je];break}return Ee<Ce?-1:Ce<Ee?1:0};function w(pe,Z,Y,ne,ce){if(pe.length===0)return-1;if(typeof Y=="string"?(ne=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=ce?0:pe.length-1),Y<0&&(Y=pe.length+Y),Y>=pe.length){if(ce)return-1;Y=pe.length-1}else if(Y<0)if(ce)Y=0;else return-1;if(typeof Z=="string"&&(Z=p.from(Z,ne)),p.isBuffer(Z))return Z.length===0?-1:x(pe,Z,Y,ne,ce);if(typeof Z=="number")return Z=Z&255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(pe,Z,Y):Uint8Array.prototype.lastIndexOf.call(pe,Z,Y):x(pe,[Z],Y,ne,ce);throw new TypeError("val must be string, number or Buffer")}function x(pe,Z,Y,ne,ce){var ye=1,Ee=pe.length,Ce=Z.length;if(ne!==void 0&&(ne=String(ne).toLowerCase(),ne==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(pe.length<2||Z.length<2)return-1;ye=2,Ee/=2,Ce/=2,Y/=2}function ue(tt,ke){return ye===1?tt[ke]:tt.readUInt16BE(ke*ye)}var ge;if(ce){var Oe=-1;for(ge=Y;ge<Ee;ge++)if(ue(pe,ge)===ue(Z,Oe===-1?0:ge-Oe)){if(Oe===-1&&(Oe=ge),ge-Oe+1===Ce)return Oe*ye}else Oe!==-1&&(ge-=ge-Oe),Oe=-1}else for(Y+Ce>Ee&&(Y=Ee-Ce),ge=Y;ge>=0;ge--){for(var Je=!0,lt=0;lt<Ce;lt++)if(ue(pe,ge+lt)!==ue(Z,lt)){Je=!1;break}if(Je)return ge}return-1}p.prototype.includes=function(Z,Y,ne){return this.indexOf(Z,Y,ne)!==-1},p.prototype.indexOf=function(Z,Y,ne){return w(this,Z,Y,ne,!0)},p.prototype.lastIndexOf=function(Z,Y,ne){return w(this,Z,Y,ne,!1)};function T(pe,Z,Y,ne){Y=Number(Y)||0;var ce=pe.length-Y;ne?(ne=Number(ne),ne>ce&&(ne=ce)):ne=ce;var ye=Z.length;if(ye%2!==0)throw new TypeError("Invalid hex string");ne>ye/2&&(ne=ye/2);for(var Ee=0;Ee<ne;++Ee){var Ce=parseInt(Z.substr(Ee*2,2),16);if(isNaN(Ce))return Ee;pe[Y+Ee]=Ce}return Ee}function _(pe,Z,Y,ne){return le(Ge(Z,pe.length-Y),pe,Y,ne)}function E(pe,Z,Y,ne){return le(Ue(Z),pe,Y,ne)}function C(pe,Z,Y,ne){return E(pe,Z,Y,ne)}function I(pe,Z,Y,ne){return le(Le(Z),pe,Y,ne)}function O(pe,Z,Y,ne){return le(nt(Z,pe.length-Y),pe,Y,ne)}p.prototype.write=function(Z,Y,ne,ce){if(Y===void 0)ce="utf8",ne=this.length,Y=0;else if(ne===void 0&&typeof Y=="string")ce=Y,ne=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(ne)?(ne=ne|0,ce===void 0&&(ce="utf8")):(ce=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ye=this.length-Y;if((ne===void 0||ne>ye)&&(ne=ye),Z.length>0&&(ne<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var Ee=!1;;)switch(ce){case"hex":return T(this,Z,Y,ne);case"utf8":case"utf-8":return _(this,Z,Y,ne);case"ascii":return E(this,Z,Y,ne);case"latin1":case"binary":return C(this,Z,Y,ne);case"base64":return I(this,Z,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,Z,Y,ne);default:if(Ee)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),Ee=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(pe,Z,Y){return Z===0&&Y===pe.length?S.fromByteArray(pe):S.fromByteArray(pe.slice(Z,Y))}function R(pe,Z,Y){Y=Math.min(pe.length,Y);for(var ne=[],ce=Z;ce<Y;){var ye=pe[ce],Ee=null,Ce=ye>239?4:ye>223?3:ye>191?2:1;if(ce+Ce<=Y){var ue,ge,Oe,Je;switch(Ce){case 1:ye<128&&(Ee=ye);break;case 2:ue=pe[ce+1],(ue&192)===128&&(Je=(ye&31)<<6|ue&63,Je>127&&(Ee=Je));break;case 3:ue=pe[ce+1],ge=pe[ce+2],(ue&192)===128&&(ge&192)===128&&(Je=(ye&15)<<12|(ue&63)<<6|ge&63,Je>2047&&(Je<55296||Je>57343)&&(Ee=Je));break;case 4:ue=pe[ce+1],ge=pe[ce+2],Oe=pe[ce+3],(ue&192)===128&&(ge&192)===128&&(Oe&192)===128&&(Je=(ye&15)<<18|(ue&63)<<12|(ge&63)<<6|Oe&63,Je>65535&&Je<1114112&&(Ee=Je))}}Ee===null?(Ee=65533,Ce=1):Ee>65535&&(Ee-=65536,ne.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),ne.push(Ee),ce+=Ce}return P(ne)}var B=4096;function P(pe){var Z=pe.length;if(Z<=B)return String.fromCharCode.apply(String,pe);for(var Y="",ne=0;ne<Z;)Y+=String.fromCharCode.apply(String,pe.slice(ne,ne+=B));return Y}function X(pe,Z,Y){var ne="";Y=Math.min(pe.length,Y);for(var ce=Z;ce<Y;++ce)ne+=String.fromCharCode(pe[ce]&127);return ne}function M(pe,Z,Y){var ne="";Y=Math.min(pe.length,Y);for(var ce=Z;ce<Y;++ce)ne+=String.fromCharCode(pe[ce]);return ne}function z(pe,Z,Y){var ne=pe.length;(!Z||Z<0)&&(Z=0),(!Y||Y<0||Y>ne)&&(Y=ne);for(var ce="",ye=Z;ye<Y;++ye)ce+=Re(pe[ye]);return ce}function W(pe,Z,Y){for(var ne=pe.slice(Z,Y),ce="",ye=0;ye<ne.length;ye+=2)ce+=String.fromCharCode(ne[ye]+ne[ye+1]*256);return ce}p.prototype.slice=function(Z,Y){var ne=this.length;Z=~~Z,Y=Y===void 0?ne:~~Y,Z<0?(Z+=ne,Z<0&&(Z=0)):Z>ne&&(Z=ne),Y<0?(Y+=ne,Y<0&&(Y=0)):Y>ne&&(Y=ne),Y<Z&&(Y=Z);var ce;if(p.TYPED_ARRAY_SUPPORT)ce=this.subarray(Z,Y),ce.__proto__=p.prototype;else{var ye=Y-Z;ce=new p(ye,void 0);for(var Ee=0;Ee<ye;++Ee)ce[Ee]=this[Ee+Z]}return ce};function H(pe,Z,Y){if(pe%1!==0||pe<0)throw new RangeError("offset is not uint");if(pe+Z>Y)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUIntLE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=this[Z],ye=1,Ee=0;++Ee<Y&&(ye*=256);)ce+=this[Z+Ee]*ye;return ce},p.prototype.readUIntBE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=this[Z+--Y],ye=1;Y>0&&(ye*=256);)ce+=this[Z+--Y]*ye;return ce},p.prototype.readUInt8=function(Z,Y){return Y||H(Z,1,this.length),this[Z]},p.prototype.readUInt16LE=function(Z,Y){return Y||H(Z,2,this.length),this[Z]|this[Z+1]<<8},p.prototype.readUInt16BE=function(Z,Y){return Y||H(Z,2,this.length),this[Z]<<8|this[Z+1]},p.prototype.readUInt32LE=function(Z,Y){return Y||H(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+this[Z+3]*16777216},p.prototype.readUInt32BE=function(Z,Y){return Y||H(Z,4,this.length),this[Z]*16777216+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},p.prototype.readIntLE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=this[Z],ye=1,Ee=0;++Ee<Y&&(ye*=256);)ce+=this[Z+Ee]*ye;return ye*=128,ce>=ye&&(ce-=Math.pow(2,8*Y)),ce},p.prototype.readIntBE=function(Z,Y,ne){Z=Z|0,Y=Y|0,ne||H(Z,Y,this.length);for(var ce=Y,ye=1,Ee=this[Z+--ce];ce>0&&(ye*=256);)Ee+=this[Z+--ce]*ye;return ye*=128,Ee>=ye&&(Ee-=Math.pow(2,8*Y)),Ee},p.prototype.readInt8=function(Z,Y){return Y||H(Z,1,this.length),this[Z]&128?(255-this[Z]+1)*-1:this[Z]},p.prototype.readInt16LE=function(Z,Y){Y||H(Z,2,this.length);var ne=this[Z]|this[Z+1]<<8;return ne&32768?ne|4294901760:ne},p.prototype.readInt16BE=function(Z,Y){Y||H(Z,2,this.length);var ne=this[Z+1]|this[Z]<<8;return ne&32768?ne|4294901760:ne},p.prototype.readInt32LE=function(Z,Y){return Y||H(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},p.prototype.readInt32BE=function(Z,Y){return Y||H(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},p.prototype.readFloatLE=function(Z,Y){return Y||H(Z,4,this.length),v.read(this,Z,!0,23,4)},p.prototype.readFloatBE=function(Z,Y){return Y||H(Z,4,this.length),v.read(this,Z,!1,23,4)},p.prototype.readDoubleLE=function(Z,Y){return Y||H(Z,8,this.length),v.read(this,Z,!0,52,8)},p.prototype.readDoubleBE=function(Z,Y){return Y||H(Z,8,this.length),v.read(this,Z,!1,52,8)};function V(pe,Z,Y,ne,ce,ye){if(!p.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Z>ce||Z<ye)throw new RangeError('"value" argument is out of bounds');if(Y+ne>pe.length)throw new RangeError("Index out of range")}p.prototype.writeUIntLE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,ne=ne|0,!ce){var ye=Math.pow(2,8*ne)-1;V(this,Z,Y,ne,ye,0)}var Ee=1,Ce=0;for(this[Y]=Z&255;++Ce<ne&&(Ee*=256);)this[Y+Ce]=Z/Ee&255;return Y+ne},p.prototype.writeUIntBE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,ne=ne|0,!ce){var ye=Math.pow(2,8*ne)-1;V(this,Z,Y,ne,ye,0)}var Ee=ne-1,Ce=1;for(this[Y+Ee]=Z&255;--Ee>=0&&(Ce*=256);)this[Y+Ee]=Z/Ce&255;return Y+ne},p.prototype.writeUInt8=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,1,255,0),p.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),this[Y]=Z&255,Y+1};function Q(pe,Z,Y,ne){Z<0&&(Z=65535+Z+1);for(var ce=0,ye=Math.min(pe.length-Y,2);ce<ye;++ce)pe[Y+ce]=(Z&255<<8*(ne?ce:1-ce))>>>(ne?ce:1-ce)*8}p.prototype.writeUInt16LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},p.prototype.writeUInt16BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2};function G(pe,Z,Y,ne){Z<0&&(Z=4294967295+Z+1);for(var ce=0,ye=Math.min(pe.length-Y,4);ce<ye;++ce)pe[Y+ce]=Z>>>(ne?ce:3-ce)*8&255}p.prototype.writeUInt32LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y+3]=Z>>>24,this[Y+2]=Z>>>16,this[Y+1]=Z>>>8,this[Y]=Z&255):G(this,Z,Y,!0),Y+4},p.prototype.writeUInt32BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4},p.prototype.writeIntLE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,!ce){var ye=Math.pow(2,8*ne-1);V(this,Z,Y,ne,ye-1,-ye)}var Ee=0,Ce=1,ue=0;for(this[Y]=Z&255;++Ee<ne&&(Ce*=256);)Z<0&&ue===0&&this[Y+Ee-1]!==0&&(ue=1),this[Y+Ee]=(Z/Ce>>0)-ue&255;return Y+ne},p.prototype.writeIntBE=function(Z,Y,ne,ce){if(Z=+Z,Y=Y|0,!ce){var ye=Math.pow(2,8*ne-1);V(this,Z,Y,ne,ye-1,-ye)}var Ee=ne-1,Ce=1,ue=0;for(this[Y+Ee]=Z&255;--Ee>=0&&(Ce*=256);)Z<0&&ue===0&&this[Y+Ee+1]!==0&&(ue=1),this[Y+Ee]=(Z/Ce>>0)-ue&255;return Y+ne},p.prototype.writeInt8=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,1,127,-128),p.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),Z<0&&(Z=255+Z+1),this[Y]=Z&255,Y+1},p.prototype.writeInt16LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},p.prototype.writeInt16BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2},p.prototype.writeInt32LE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8,this[Y+2]=Z>>>16,this[Y+3]=Z>>>24):G(this,Z,Y,!0),Y+4},p.prototype.writeInt32BE=function(Z,Y,ne){return Z=+Z,Y=Y|0,ne||V(this,Z,Y,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4};function ee(pe,Z,Y,ne,ce,ye){if(Y+ne>pe.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function q(pe,Z,Y,ne,ce){return ce||ee(pe,Z,Y,4,34028234663852886e22,-34028234663852886e22),v.write(pe,Z,Y,ne,23,4),Y+4}p.prototype.writeFloatLE=function(Z,Y,ne){return q(this,Z,Y,!0,ne)},p.prototype.writeFloatBE=function(Z,Y,ne){return q(this,Z,Y,!1,ne)};function se(pe,Z,Y,ne,ce){return ce||ee(pe,Z,Y,8,17976931348623157e292,-17976931348623157e292),v.write(pe,Z,Y,ne,52,8),Y+8}p.prototype.writeDoubleLE=function(Z,Y,ne){return se(this,Z,Y,!0,ne)},p.prototype.writeDoubleBE=function(Z,Y,ne){return se(this,Z,Y,!1,ne)},p.prototype.copy=function(Z,Y,ne,ce){if(ne||(ne=0),!ce&&ce!==0&&(ce=this.length),Y>=Z.length&&(Y=Z.length),Y||(Y=0),ce>0&&ce<ne&&(ce=ne),ce===ne)return 0;if(Z.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("sourceStart out of bounds");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),Z.length-Y<ce-ne&&(ce=Z.length-Y+ne);var ye=ce-ne,Ee;if(this===Z&&ne<Y&&Y<ce)for(Ee=ye-1;Ee>=0;--Ee)Z[Ee+Y]=this[Ee+ne];else if(ye<1e3||!p.TYPED_ARRAY_SUPPORT)for(Ee=0;Ee<ye;++Ee)Z[Ee+Y]=this[Ee+ne];else Uint8Array.prototype.set.call(Z,this.subarray(ne,ne+ye),Y);return ye},p.prototype.fill=function(Z,Y,ne,ce){if(typeof Z=="string"){if(typeof Y=="string"?(ce=Y,Y=0,ne=this.length):typeof ne=="string"&&(ce=ne,ne=this.length),Z.length===1){var ye=Z.charCodeAt(0);ye<256&&(Z=ye)}if(ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!p.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce)}else typeof Z=="number"&&(Z=Z&255);if(Y<0||this.length<Y||this.length<ne)throw new RangeError("Out of range index");if(ne<=Y)return this;Y=Y>>>0,ne=ne===void 0?this.length:ne>>>0,Z||(Z=0);var Ee;if(typeof Z=="number")for(Ee=Y;Ee<ne;++Ee)this[Ee]=Z;else{var Ce=p.isBuffer(Z)?Z:Ge(new p(Z,ce).toString()),ue=Ce.length;for(Ee=0;Ee<ne-Y;++Ee)this[Ee+Y]=Ce[Ee%ue]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function Ae(pe){if(pe=Te(pe).replace(re,""),pe.length<2)return"";for(;pe.length%4!==0;)pe=pe+"=";return pe}function Te(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function Re(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function Ge(pe,Z){Z=Z||Infinity;for(var Y,ne=pe.length,ce=null,ye=[],Ee=0;Ee<ne;++Ee){if(Y=pe.charCodeAt(Ee),Y>55295&&Y<57344){if(!ce){if(Y>56319){(Z-=3)>-1&&ye.push(239,191,189);continue}else if(Ee+1===ne){(Z-=3)>-1&&ye.push(239,191,189);continue}ce=Y;continue}if(Y<56320){(Z-=3)>-1&&ye.push(239,191,189),ce=Y;continue}Y=(ce-55296<<10|Y-56320)+65536}else ce&&((Z-=3)>-1&&ye.push(239,191,189));if(ce=null,Y<128){if((Z-=1)<0)break;ye.push(Y)}else if(Y<2048){if((Z-=2)<0)break;ye.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((Z-=3)<0)break;ye.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((Z-=4)<0)break;ye.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return ye}function Ue(pe){for(var Z=[],Y=0;Y<pe.length;++Y)Z.push(pe.charCodeAt(Y)&255);return Z}function nt(pe,Z){for(var Y,ne,ce,ye=[],Ee=0;Ee<pe.length&&!((Z-=2)<0);++Ee)Y=pe.charCodeAt(Ee),ne=Y>>8,ce=Y%256,ye.push(ce),ye.push(ne);return ye}function Le(pe){return S.toByteArray(Ae(pe))}function le(pe,Z,Y,ne){for(var ce=0;ce<ne&&!(ce+Y>=Z.length||ce>=pe.length);++ce)Z[ce+Y]=pe[ce];return ce}function Xe(pe){return pe!==pe}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,D,i){D.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(k,D,i){D.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(k,D,i){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=Array.prototype.slice;D.exports=p;function p(v,m){if(!(this instanceof p))return new p(v,m);this.src=v,this._withAccess=m}p.prototype.withAccess=function(v){return this._withAccess=v!==!1,this},p.prototype.pick=function(v){return Array.isArray(v)||(v=y.call(arguments)),v.length&&(this.keys=v),this},p.prototype.to=function(v){if(v=v||{},!this.src)return v;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var f=0;f<m.length;f++){if(d=m[f],v[d]!==void 0)continue;v[d]=this.src[d]}return v}for(var f=0;f<m.length;f++){var d=m[f];if(!S(v,d))continue;var u=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);u&&v.__defineGetter__(d,u),o&&v.__defineSetter__(d,o),!u&&!o&&(v[d]=this.src[d])}return v},p.prototype.toCover=function(v){for(var m=this.keys||Object.keys(this.src),f=0;f<m.length;f++){var d=m[f];delete v[d];var u=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);u&&v.__defineGetter__(d,u),o&&v.__defineSetter__(d,o),!u&&!o&&(v[d]=this.src[d])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(v){var m={};return this.to(m),this.src=v,this.to(m),this.src=m,this};function S(v,m){return v[m]===void 0&&v.__lookupGetter__(m)===void 0&&v.__lookupSetter__(m)===void 0}},{}],77:[function(k,D,i){k("../../modules/es6.string.iterator"),k("../../modules/es6.array.from"),D.exports=k("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(k,D,i){var y=k("../../modules/_core"),p=y.JSON||(y.JSON={stringify:JSON.stringify});D.exports=function(v){return p.stringify.apply(p,arguments)}},{"../../modules/_core":99}],79:[function(k,D,i){k("../../modules/es6.object.assign"),D.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,D,i){k("../../modules/es6.object.create");var y=k("../../modules/_core").Object;D.exports=function(S,v){return y.create(S,v)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,D,i){k("../../modules/es6.object.define-property");var y=k("../../modules/_core").Object;D.exports=function(S,v,m){return y.defineProperty(S,v,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(k,D,i){k("../../modules/es7.object.entries"),D.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,D,i){k("../../modules/es6.object.get-own-property-names");var y=k("../../modules/_core").Object;D.exports=function(S){return y.getOwnPropertyNames(S)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,D,i){k("../../modules/es6.object.get-prototype-of"),D.exports=k("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(k,D,i){k("../../modules/es6.object.keys"),D.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,D,i){k("../modules/es6.object.to-string"),k("../modules/es6.string.iterator"),k("../modules/web.dom.iterable"),k("../modules/es6.promise"),k("../modules/es7.promise.finally"),k("../modules/es7.promise.try"),D.exports=k("../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(k,D,i){k("../modules/web.immediate"),D.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,D,i){k("../../modules/es6.string.from-code-point"),D.exports=k("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(k,D,i){k("../../modules/es6.function.has-instance"),D.exports=k("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(k,D,i){k("../../modules/es6.symbol"),k("../../modules/es6.object.to-string"),k("../../modules/es7.symbol.async-iterator"),k("../../modules/es7.symbol.observable"),D.exports=k("../../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(k,D,i){k("../../modules/es6.string.iterator"),k("../../modules/web.dom.iterable"),D.exports=k("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(k,D,i){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(k,D,i){D.exports=function(){}},{}],94:[function(k,D,i){D.exports=function(y,p,S,v){if(!(y instanceof p)||v!==void 0&&v in y)throw TypeError(S+": incorrect invocation!");return y}},{}],95:[function(k,D,i){var y=k("./_is-object");D.exports=function(p){if(!y(p))throw TypeError(p+" is not an object!");return p}},{"./_is-object":119}],96:[function(k,D,i){var y=k("./_to-iobject"),p=k("./_to-length"),S=k("./_to-absolute-index");D.exports=function(v){return function(m,f,d){var u=y(m),o=p(u.length),n=S(d,o),t;if(v&&f!=f){for(;o>n;)if(t=u[n++],t!=t)return!0}else for(;o>n;n++)if((v||n in u)&&u[n]===f)return v||n||0;return!v&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,D,i){var y=k("./_cof"),p=k("./_wks")("toStringTag"),S=y(function(){return arguments}())=="Arguments",v=function(f,d){try{return f[d]}catch(u){}};D.exports=function(m){var f,d,u;return m===void 0?"Undefined":m===null?"Null":typeof(d=v(f=Object(m),p))=="string"?d:S?y(f):(u=y(f))=="Object"&&typeof f.callee=="function"?"Arguments":u}},{"./_cof":98,"./_wks":166}],98:[function(k,D,i){var y={}.toString;D.exports=function(p){return y.call(p).slice(8,-1)}},{}],99:[function(k,D,i){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(k,D,i){"use strict";var y=k("./_object-dp"),p=k("./_property-desc");D.exports=function(S,v,m){v in S?y.f(S,v,p(0,m)):S[v]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,D,i){var y=k("./_a-function");D.exports=function(p,S,v){if(y(p),S===void 0)return p;switch(v){case 1:return function(m){return p.call(S,m)};case 2:return function(m,f){return p.call(S,m,f)};case 3:return function(m,f,d){return p.call(S,m,f,d)}}return function(){return p.apply(S,arguments)}}},{"./_a-function":92}],102:[function(k,D,i){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(k,D,i){D.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,D,i){var y=k("./_is-object"),p=k("./_global").document,S=y(p)&&y(p.createElement);D.exports=function(v){return S?p.createElement(v):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,D,i){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,D,i){var y=k("./_object-keys"),p=k("./_object-gops"),S=k("./_object-pie");D.exports=function(v){var m=y(v),f=p.f;if(f)for(var d=f(v),u=S.f,o=0,n;d.length>o;)u.call(v,n=d[o++])&&m.push(n);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,D,i){var y=k("./_global"),p=k("./_core"),S=k("./_ctx"),v=k("./_hide"),m=k("./_has"),f="prototype",d=function u(o,n,t){var a=o&u.F,e=o&u.G,l=o&u.S,r=o&u.P,s=o&u.B,c=o&u.W,h=e?p:p[n]||(p[n]={}),g=h[f],A=e?y:l?y[n]:(y[n]||{})[f],b,w,x;e&&(t=n);for(b in t){if(w=!a&&A&&A[b]!==void 0,w&&m(h,b))continue;x=w?A[b]:t[b],h[b]=e&&typeof A[b]!="function"?t[b]:s&&w?S(x,y):c&&A[b]==x?function(T){var _=function(C,I,O){if(this instanceof T){switch(arguments.length){case 0:return new T;case 1:return new T(C);case 2:return new T(C,I)}return new T(C,I,O)}return T.apply(this,arguments)};return _[f]=T[f],_}(x):r&&typeof x=="function"?S(Function.call,x):x,r&&((h.virtual||(h.virtual={}))[b]=x,o&u.R&&g&&!g[b]&&v(g,b,x))}};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,D.exports=d},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,D,i){D.exports=function(y){try{return!!y()}catch(p){return!0}}},{}],109:[function(k,D,i){var y=k("./_ctx"),p=k("./_iter-call"),S=k("./_is-array-iter"),v=k("./_an-object"),m=k("./_to-length"),f=k("./core.get-iterator-method"),d={},u={},i=D.exports=function(o,n,t,a,e){var l=e?function(){return o}:f(o),r=y(t,a,n?2:1),s=0,c,h,g,A;if(typeof l!="function")throw TypeError(o+" is not iterable!");if(S(l)){for(c=m(o.length);c>s;s++)if(A=n?r(v(h=o[s])[0],h[1]):r(o[s]),A===d||A===u)return A}else for(g=l.call(o);!(h=g.next()).done;)if(A=p(g,r,h.value,n),A===d||A===u)return A};i.BREAK=d,i.RETURN=u},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,D,i){var y=D.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(k,D,i){var y={}.hasOwnProperty;D.exports=function(p,S){return y.call(p,S)}},{}],112:[function(k,D,i){var y=k("./_object-dp"),p=k("./_property-desc");D.exports=k("./_descriptors")?function(S,v,m){return y.f(S,v,p(1,m))}:function(S,v,m){return S[v]=m,S}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,D,i){var y=k("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(k,D,i){D.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,D,i){D.exports=function(y,p,S){var v=S===void 0;switch(p.length){case 0:return v?y():y.call(S);case 1:return v?y(p[0]):y.call(S,p[0]);case 2:return v?y(p[0],p[1]):y.call(S,p[0],p[1]);case 3:return v?y(p[0],p[1],p[2]):y.call(S,p[0],p[1],p[2]);case 4:return v?y(p[0],p[1],p[2],p[3]):y.call(S,p[0],p[1],p[2],p[3])}return y.apply(S,p)}},{}],116:[function(k,D,i){var y=k("./_cof");D.exports=Object("z").propertyIsEnumerable(0)?Object:function(p){return y(p)=="String"?p.split(""):Object(p)}},{"./_cof":98}],117:[function(k,D,i){var y=k("./_iterators"),p=k("./_wks")("iterator"),S=Array.prototype;D.exports=function(v){return v!==void 0&&(y.Array===v||S[p]===v)}},{"./_iterators":125,"./_wks":166}],118:[function(k,D,i){var y=k("./_cof");D.exports=Array.isArray||function(S){return y(S)=="Array"}},{"./_cof":98}],119:[function(k,D,i){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(k,D,i){var y=k("./_an-object");D.exports=function(p,S,v,m){try{return m?S(y(v)[0],v[1]):S(v)}catch(d){var f=p.return;throw f!==void 0&&y(f.call(p)),d}}},{"./_an-object":95}],121:[function(k,D,i){"use strict";var y=k("./_object-create"),p=k("./_property-desc"),S=k("./_set-to-string-tag"),v={};k("./_hide")(v,k("./_wks")("iterator"),function(){return this}),D.exports=function(m,f,d){m.prototype=y(v,{next:p(1,d)}),S(m,f+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,D,i){"use strict";var y=k("./_library"),p=k("./_export"),S=k("./_redefine"),v=k("./_hide"),m=k("./_iterators"),f=k("./_iter-create"),d=k("./_set-to-string-tag"),u=k("./_object-gpo"),o=k("./_wks")("iterator"),n=!([].keys&&"next"in[].keys()),t="@@iterator",a="keys",e="values",l=function(){return this};D.exports=function(r,s,c,h,g,A,b){f(c,s,h);var w=function(M){if(!n&&M in E)return E[M];switch(M){case a:return function(){return new c(this,M)};case e:return function(){return new c(this,M)}}return function(){return new c(this,M)}},x=s+" Iterator",T=g==e,_=!1,E=r.prototype,C=E[o]||E[t]||g&&E[g],I=C||w(g),O=g?T?w("entries"):I:void 0,F=s=="Array"&&E.entries||C,R,B,P;if(F&&(P=u(F.call(new r)),P!==Object.prototype&&P.next&&(d(P,x,!0),!y&&typeof P[o]!="function"&&v(P,o,l))),T&&C&&C.name!==e&&(_=!0,I=function(){return C.call(this)}),(!y||b)&&(n||_||!E[o])&&v(E,o,I),m[s]=I,m[x]=l,g)if(R={values:T?I:w(e),keys:A?I:w(a),entries:O},b)for(B in R)B in E||S(E,B,R[B]);else p(p.P+p.F*(n||_),s,R);return R}},{"./_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(k,D,i){var y=k("./_wks")("iterator"),p=!1;try{var S=[7][y]();S.return=function(){p=!0},Array.from(S,function(){throw 2})}catch(v){}D.exports=function(v,m){if(!m&&!p)return!1;var f=!1;try{var d=[7],u=d[y]();u.next=function(){return{done:f=!0}},d[y]=function(){return u},v(d)}catch(o){}return f}},{"./_wks":166}],124:[function(k,D,i){D.exports=function(y,p){return{value:p,done:!!y}}},{}],125:[function(k,D,i){D.exports={}},{}],126:[function(k,D,i){D.exports=!0},{}],127:[function(k,D,i){var y=k("./_uid")("meta"),p=k("./_is-object"),S=k("./_has"),v=k("./_object-dp").f,m=0,f=Object.isExtensible||function(){return!0},d=!k("./_fails")(function(){return f(Object.preventExtensions({}))}),u=function(l){v(l,y,{value:{i:"O"+ ++m,w:{}}})},o=function(l,r){if(!p(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!S(l,y)){if(!f(l))return"F";if(!r)return"E";u(l)}return l[y].i},n=function(l,r){if(!S(l,y)){if(!f(l))return!0;if(!r)return!1;u(l)}return l[y].w},t=function(l){return d&&a.NEED&&f(l)&&!S(l,y)&&u(l),l},a=D.exports={KEY:y,NEED:!1,fastKey:o,getWeak:n,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,D,i){var y=k("./_global"),p=k("./_task").set,S=y.MutationObserver||y.WebKitMutationObserver,v=y.process,m=y.Promise,f=k("./_cof")(v)=="process";D.exports=function(){var d,u,o,n=function(){var r,s;for(f&&(r=v.domain)&&r.exit();d;){s=d.fn,d=d.next;try{s()}catch(c){throw d?o():u=void 0,c}}u=void 0,r&&r.enter()};if(f)o=function(){v.nextTick(n)};else if(S&&!(y.navigator&&y.navigator.standalone)){var t=!0,a=document.createTextNode("");new S(n).observe(a,{characterData:!0}),o=function(){a.data=t=!t}}else if(m&&m.resolve){var e=m.resolve(void 0);o=function(){e.then(n)}}else o=function(){p.call(y,n)};return function(l){var r={fn:l,next:void 0};u&&(u.next=r),d||(d=r,o()),u=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,D,i){"use strict";var y=k("./_a-function");function p(S){var v,m;this.promise=new S(function(f,d){if(v!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");v=f,m=d}),this.resolve=y(v),this.reject=y(m)}D.exports.f=function(S){return new p(S)}},{"./_a-function":92}],130:[function(k,D,i){"use strict";var y=k("./_descriptors"),p=k("./_object-keys"),S=k("./_object-gops"),v=k("./_object-pie"),m=k("./_to-object"),f=k("./_iobject"),d=Object.assign;D.exports=!d||k("./_fails")(function(){var u={},o={},n=Symbol(),t="abcdefghijklmnopqrst";return u[n]=7,t.split("").forEach(function(a){o[a]=a}),d({},u)[n]!=7||Object.keys(d({},o)).join("")!=t})?function(o,n){for(var t=m(o),a=arguments.length,e=1,l=S.f,r=v.f;a>e;)for(var s=f(arguments[e++]),c=l?p(s).concat(l(s)):p(s),h=c.length,g=0,A;h>g;)A=c[g++],(!y||r.call(s,A))&&(t[A]=s[A]);return t}:d},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,D,i){var y=k("./_an-object"),p=k("./_object-dps"),S=k("./_enum-bug-keys"),v=k("./_shared-key")("IE_PROTO"),m=function(){},f="prototype",d=function(){var o=k("./_dom-create")("iframe"),n=S.length,t="<",a=">",e;for(o.style.display="none",k("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write(t+"script"+a+"document.F=Object"+t+"/script"+a),e.close(),d=e.F;n--;)delete d[f][S[n]];return d()};D.exports=Object.create||function(o,n){var t;return o!==null?(m[f]=y(o),t=new m,m[f]=null,t[v]=o):t=d(),n===void 0?t:p(t,n)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,D,i){var y=k("./_an-object"),p=k("./_ie8-dom-define"),S=k("./_to-primitive"),v=Object.defineProperty;i.f=k("./_descriptors")?Object.defineProperty:function(f,d,u){if(y(f),d=S(d,!0),y(u),p)try{return v(f,d,u)}catch(o){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(f[d]=u.value),f}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,D,i){var y=k("./_object-dp"),p=k("./_an-object"),S=k("./_object-keys");D.exports=k("./_descriptors")?Object.defineProperties:function(m,f){p(m);for(var d=S(f),u=d.length,o=0,n;u>o;)y.f(m,n=d[o++],f[n]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,D,i){var y=k("./_object-pie"),p=k("./_property-desc"),S=k("./_to-iobject"),v=k("./_to-primitive"),m=k("./_has"),f=k("./_ie8-dom-define"),d=Object.getOwnPropertyDescriptor;i.f=k("./_descriptors")?d:function(o,n){if(o=S(o),n=v(n,!0),f)try{return d(o,n)}catch(t){}if(m(o,n))return p(!y.f.call(o,n),o[n])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,D,i){var y=k("./_to-iobject"),p=k("./_object-gopn").f,S={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(d){try{return p(d)}catch(u){return v.slice()}};D.exports.f=function(d){return v&&S.call(d)=="[object Window]"?m(d):p(y(d))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,D,i){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys").concat("length","prototype");i.f=Object.getOwnPropertyNames||function(v){return y(v,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,D,i){i.f=Object.getOwnPropertySymbols},{}],138:[function(k,D,i){var y=k("./_has"),p=k("./_to-object"),S=k("./_shared-key")("IE_PROTO"),v=Object.prototype;D.exports=Object.getPrototypeOf||function(m){return m=p(m),y(m,S)?m[S]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?v:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(k,D,i){var y=k("./_has"),p=k("./_to-iobject"),S=k("./_array-includes")(!1),v=k("./_shared-key")("IE_PROTO");D.exports=function(m,f){var d=p(m),u=0,o=[],n;for(n in d)n!=v&&(y(d,n)&&o.push(n));for(;f.length>u;)y(d,n=f[u++])&&(~S(o,n)||o.push(n));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,D,i){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys");D.exports=Object.keys||function(v){return y(v,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,D,i){i.f={}.propertyIsEnumerable},{}],142:[function(k,D,i){var y=k("./_export"),p=k("./_core"),S=k("./_fails");D.exports=function(v,m){var f=(p.Object||{})[v]||Object[v],d={};d[v]=m(f),y(y.S+y.F*S(function(){f(1)}),"Object",d)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,D,i){var y=k("./_descriptors"),p=k("./_object-keys"),S=k("./_to-iobject"),v=k("./_object-pie").f;D.exports=function(m){return function(f){for(var d=S(f),u=p(d),o=u.length,n=0,t=[],a;o>n;)a=u[n++],(!y||v.call(d,a))&&t.push(m?[a,d[a]]:d[a]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,D,i){D.exports=function(y){try{return{e:!1,v:y()}}catch(p){return{e:!0,v:p}}}},{}],145:[function(k,D,i){var y=k("./_an-object"),p=k("./_is-object"),S=k("./_new-promise-capability");D.exports=function(v,m){if(y(v),p(m)&&m.constructor===v)return m;var f=S.f(v),d=f.resolve;return d(m),f.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,D,i){D.exports=function(y,p){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:p}}},{}],147:[function(k,D,i){var y=k("./_hide");D.exports=function(p,S,v){for(var m in S)v&&p[m]?p[m]=S[m]:y(p,m,S[m]);return p}},{"./_hide":112}],148:[function(k,D,i){D.exports=k("./_hide")},{"./_hide":112}],149:[function(k,D,i){"use strict";var y=k("./_global"),p=k("./_core"),S=k("./_object-dp"),v=k("./_descriptors"),m=k("./_wks")("species");D.exports=function(f){var d=typeof p[f]=="function"?p[f]:y[f];v&&d&&!d[m]&&S.f(d,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,D,i){var y=k("./_object-dp").f,p=k("./_has"),S=k("./_wks")("toStringTag");D.exports=function(v,m,f){v&&!p(v=f?v:v.prototype,S)&&y(v,S,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,D,i){var y=k("./_shared")("keys"),p=k("./_uid");D.exports=function(S){return y[S]||(y[S]=p(S))}},{"./_shared":152,"./_uid":162}],152:[function(k,D,i){var y=k("./_core"),p=k("./_global"),S="__core-js_shared__",v=p[S]||(p[S]={});(D.exports=function(m,f){return v[m]||(v[m]=f!==void 0?f:{})})("versions",[]).push({version:y.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,D,i){var y=k("./_an-object"),p=k("./_a-function"),S=k("./_wks")("species");D.exports=function(v,m){var f=y(v).constructor,d;return f===void 0||(d=y(f)[S])==null?m:p(d)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,D,i){var y=k("./_to-integer"),p=k("./_defined");D.exports=function(S){return function(v,m){var f=String(p(v)),d=y(m),u=f.length,o,n;return d<0||d>=u?S?"":void 0:(o=f.charCodeAt(d),o<55296||o>56319||d+1===u||(n=f.charCodeAt(d+1))<56320||n>57343?S?f.charAt(d):o:S?f.slice(d,d+2):(o-55296<<10)+(n-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,D,i){var y=k("./_ctx"),p=k("./_invoke"),S=k("./_html"),v=k("./_dom-create"),m=k("./_global"),f=m.process,d=m.setImmediate,u=m.clearImmediate,o=m.MessageChannel,n=m.Dispatch,t=0,a={},e="onreadystatechange",l,r,s,c=function(){var A=+this;if(a.hasOwnProperty(A)){var b=a[A];delete a[A],b()}},h=function(A){c.call(A.data)};(!d||!u)&&(d=function(A){for(var b=[],w=1;arguments.length>w;)b.push(arguments[w++]);return a[++t]=function(){p(typeof A=="function"?A:Function(A),b)},l(t),t},u=function(A){delete a[A]},k("./_cof")(f)=="process"?l=function(A){f.nextTick(y(c,A,1))}:n&&n.now?l=function(A){n.now(y(c,A,1))}:o?(r=new o,s=r.port2,r.port1.onmessage=h,l=y(s.postMessage,s,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(l=function(A){m.postMessage(A+"","*")},m.addEventListener("message",h,!1)):e in v("script")?l=function(A){S.appendChild(v("script"))[e]=function(){S.removeChild(this),c.call(A)}}:l=function(A){setTimeout(y(c,A,1),0)}),D.exports={set:d,clear:u}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,D,i){var y=k("./_to-integer"),p=Math.max,S=Math.min;D.exports=function(v,m){return v=y(v),v<0?p(v+m,0):S(v,m)}},{"./_to-integer":157}],157:[function(k,D,i){var y=Math.ceil,p=Math.floor;D.exports=function(S){return isNaN(S=+S)?0:(S>0?p:y)(S)}},{}],158:[function(k,D,i){var y=k("./_iobject"),p=k("./_defined");D.exports=function(S){return y(p(S))}},{"./_defined":102,"./_iobject":116}],159:[function(k,D,i){var y=k("./_to-integer"),p=Math.min;D.exports=function(S){return S>0?p(y(S),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,D,i){var y=k("./_defined");D.exports=function(p){return Object(y(p))}},{"./_defined":102}],161:[function(k,D,i){var y=k("./_is-object");D.exports=function(p,S){if(!y(p))return p;var v,m;if(S&&typeof(v=p.toString)=="function"&&!y(m=v.call(p)))return m;if(typeof(v=p.valueOf)=="function"&&!y(m=v.call(p)))return m;if(!S&&typeof(v=p.toString)=="function"&&!y(m=v.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,D,i){var y=0,p=Math.random();D.exports=function(S){return"Symbol(".concat(S===void 0?"":S,")_",(++y+p).toString(36))}},{}],163:[function(k,D,i){var y=k("./_global"),p=y.navigator;D.exports=p&&p.userAgent||""},{"./_global":110}],164:[function(k,D,i){var y=k("./_global"),p=k("./_core"),S=k("./_library"),v=k("./_wks-ext"),m=k("./_object-dp").f;D.exports=function(f){var d=p.Symbol||(p.Symbol=S?{}:y.Symbol||{});f.charAt(0)!="_"&&!(f in d)&&m(d,f,{value:v.f(f)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,D,i){i.f=k("./_wks")},{"./_wks":166}],166:[function(k,D,i){var y=k("./_shared")("wks"),p=k("./_uid"),S=k("./_global").Symbol,v=typeof S=="function",m=D.exports=function(f){return y[f]||(y[f]=v&&S[f]||(v?S:p)("Symbol."+f))};m.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,D,i){var y=k("./_classof"),p=k("./_wks")("iterator"),S=k("./_iterators");D.exports=k("./_core").getIteratorMethod=function(v){if(v!=null)return v[p]||v["@@iterator"]||S[y(v)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,D,i){"use strict";var y=k("./_ctx"),p=k("./_export"),S=k("./_to-object"),v=k("./_iter-call"),m=k("./_is-array-iter"),f=k("./_to-length"),d=k("./_create-property"),u=k("./core.get-iterator-method");p(p.S+p.F*!k("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(n){var t=S(n),a=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,r=l!==void 0,s=0,c=u(t),h,g,A,b;if(r&&(l=y(l,e>2?arguments[2]:void 0,2)),c!=null&&!(a==Array&&m(c)))for(b=c.call(t),g=new a;!(A=b.next()).done;s++)d(g,s,r?v(b,l,[A.value,s],!0):A.value);else for(h=f(t.length),g=new a(h);h>s;s++)d(g,s,r?l(t[s],s):t[s]);return g.length=s,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(k,D,i){"use strict";var y=k("./_add-to-unscopables"),p=k("./_iter-step"),S=k("./_iterators"),v=k("./_to-iobject");D.exports=k("./_iter-define")(Array,"Array",function(m,f){this._t=v(m),this._i=0,this._k=f},function(){var m=this._t,f=this._k,d=this._i++;return!m||d>=m.length?(this._t=void 0,p(1)):f=="keys"?p(0,d):f=="values"?p(0,m[d]):p(0,[d,m[d]])},"values"),S.Arguments=S.Array,y("keys"),y("values"),y("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,D,i){"use strict";var y=k("./_is-object"),p=k("./_object-gpo"),S=k("./_wks")("hasInstance"),v=Function.prototype;S in v||k("./_object-dp").f(v,S,{value:function(f){if(typeof this!="function"||!y(f))return!1;if(!y(this.prototype))return f instanceof this;for(;f=p(f);)if(this.prototype===f)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(k,D,i){var y=k("./_export");y(y.S+y.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,D,i){var y=k("./_export");y(y.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,D,i){var y=k("./_export");y(y.S+y.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,D,i){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,D,i){var y=k("./_to-object"),p=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(v){return p(y(v))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,D,i){var y=k("./_to-object"),p=k("./_object-keys");k("./_object-sap")("keys",function(){return function(v){return p(y(v))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,D,i){arguments[4][71][0].apply(i,arguments)},{dup:71}],178:[function(k,D,i){"use strict";var y=k("./_library"),p=k("./_global"),S=k("./_ctx"),v=k("./_classof"),m=k("./_export"),f=k("./_is-object"),d=k("./_a-function"),u=k("./_an-instance"),o=k("./_for-of"),n=k("./_species-constructor"),t=k("./_task").set,a=k("./_microtask")(),e=k("./_new-promise-capability"),l=k("./_perform"),r=k("./_user-agent"),s=k("./_promise-resolve"),c="Promise",h=p.TypeError,g=p.process,A=g&&g.versions,b=A&&A.v8||"",w=p[c],x=v(g)=="process",T=function(){},_,E,C,I,O=E=e.f,F=!!function(){try{var H=w.resolve(1),V=(H.constructor={})[k("./_wks")("species")]=function(Q){Q(T,T)};return(x||typeof PromiseRejectionEvent=="function")&&H.then(T)instanceof V&&b.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(Q){}}(),R=function(V){var Q;return f(V)&&typeof(Q=V.then)=="function"?Q:!1},B=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;a(function(){for(var ee=V._v,q=V._s==1,se=0,re=function(Te){var Re=q?Te.ok:Te.fail,Ge=Te.resolve,Ue=Te.reject,nt=Te.domain,Le,le,Xe;try{Re?(q||(V._h==2&&M(V),V._h=1),Re===!0?Le=ee:(nt&&nt.enter(),Le=Re(ee),nt&&(nt.exit(),Xe=!0)),Le===Te.promise?Ue(h("Promise-chain cycle")):(le=R(Le))?le.call(Le,Ge,Ue):Ge(Le)):Ue(ee)}catch(pe){nt&&!Xe&&nt.exit(),Ue(pe)}};G.length>se;)re(G[se++]);V._c=[],V._n=!1,Q&&!V._h&&P(V)})},P=function(V){t.call(p,function(){var Q=V._v,G=X(V),ee,q,se;if(G&&(ee=l(function(){x?g.emit("unhandledRejection",Q,V):(q=p.onunhandledrejection)?q({promise:V,reason:Q}):(se=p.console)&&se.error&&se.error("Unhandled promise rejection",Q)}),V._h=x||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},M=function(V){t.call(p,function(){var Q;x?g.emit("rejectionHandled",V):(Q=p.onrejectionhandled)&&Q({promise:V,reason:V._v})})},z=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()),B(Q,!0)},W=function H(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=R(V))?a(function(){var ee={_w:Q,_d:!1};try{G.call(V,S(H,ee,1),S(z,ee,1))}catch(q){z.call(ee,q)}}):(Q._v=V,Q._s=1,B(Q,!1))}catch(ee){z.call({_w:Q,_d:!1},ee)}};F||(w=function(V){u(this,w,c,"_h"),d(V),_.call(this);try{V(S(W,this,1),S(z,this,1))}catch(Q){z.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=k("./_redefine-all")(w.prototype,{then:function(V,Q){var G=O(n(this,w));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=x?g.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&B(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),C=function(){var V=new _;this.promise=V,this.resolve=S(W,V,1),this.reject=S(z,V,1)},e.f=O=function(V){return V===w||V===I?new C(V):E(V)}),m(m.G+m.W+m.F*!F,{Promise:w}),k("./_set-to-string-tag")(w,c),k("./_set-species")(c),I=k("./_core")[c],m(m.S+m.F*!F,c,{reject:function(V){var Q=O(this),G=Q.reject;return G(V),Q.promise}}),m(m.S+m.F*(y||!F),c,{resolve:function(V){return s(y&&this===I?w:this,V)}}),m(m.S+m.F*!(F&&k("./_iter-detect")(function(H){w.all(H).catch(T)})),c,{all:function(V){var Q=this,G=O(Q),ee=G.resolve,q=G.reject,se=l(function(){var re=[],Ae=0,Te=1;o(V,!1,function(Re){var Ge=Ae++,Ue=!1;re.push(void 0),Te++,Q.resolve(Re).then(function(nt){if(Ue)return;Ue=!0,re[Ge]=nt,--Te||ee(re)},q)}),--Te||ee(re)});return se.e&&q(se.v),G.promise},race:function(V){var Q=this,G=O(Q),ee=G.reject,q=l(function(){o(V,!1,function(se){Q.resolve(se).then(G.resolve,ee)})});return q.e&&ee(q.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(k,D,i){var y=k("./_export"),p=k("./_to-absolute-index"),S=String.fromCharCode,v=String.fromCodePoint;y(y.S+y.F*(!!v&&v.length!=1),"String",{fromCodePoint:function(f){for(var d=[],u=arguments.length,o=0,n;u>o;){if(n=+arguments[o++],p(n,1114111)!==n)throw RangeError(n+" is not a valid code point");d.push(n<65536?S(n):S(((n-=65536)>>10)+55296,n%1024+56320))}return d.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,D,i){"use strict";var y=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(p){this._t=String(p),this._i=0},function(){var p=this._t,S=this._i,v;return S>=p.length?{value:void 0,done:!0}:(v=y(p,S),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,D,i){"use strict";var y=k("./_global"),p=k("./_has"),S=k("./_descriptors"),v=k("./_export"),m=k("./_redefine"),f=k("./_meta").KEY,d=k("./_fails"),u=k("./_shared"),o=k("./_set-to-string-tag"),n=k("./_uid"),t=k("./_wks"),a=k("./_wks-ext"),e=k("./_wks-define"),l=k("./_enum-keys"),r=k("./_is-array"),s=k("./_an-object"),c=k("./_is-object"),h=k("./_to-object"),g=k("./_to-iobject"),A=k("./_to-primitive"),b=k("./_property-desc"),w=k("./_object-create"),x=k("./_object-gopn-ext"),T=k("./_object-gopd"),_=k("./_object-gops"),E=k("./_object-dp"),C=k("./_object-keys"),I=T.f,O=E.f,F=x.f,R=y.Symbol,B=y.JSON,P=B&&B.stringify,X="prototype",M=t("_hidden"),z=t("toPrimitive"),W={}.propertyIsEnumerable,H=u("symbol-registry"),V=u("symbols"),Q=u("op-symbols"),G=Object[X],ee=typeof R=="function"&&!!_.f,q=y.QObject,se=!q||!q[X]||!q[X].findChild,re=S&&d(function(){return w(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(ye,Ee,Ce){var ue=I(G,Ee);ue&&delete G[Ee],O(ye,Ee,Ce),ue&&ye!==G&&O(G,Ee,ue)}:O,Ae=function(Ee){var Ce=V[Ee]=w(R[X]);return Ce._k=Ee,Ce},Te=ee&&typeof R.iterator=="symbol"?function(ye){return typeof ye=="symbol"}:function(ye){return ye instanceof R},Re=function(Ee,Ce,ue){return Ee===G&&Re(Q,Ce,ue),s(Ee),Ce=A(Ce,!0),s(ue),p(V,Ce)?(ue.enumerable?(p(Ee,M)&&Ee[M][Ce]&&(Ee[M][Ce]=!1),ue=w(ue,{enumerable:b(0,!1)})):(p(Ee,M)||O(Ee,M,b(1,{})),Ee[M][Ce]=!0),re(Ee,Ce,ue)):O(Ee,Ce,ue)},Ge=function(Ee,Ce){s(Ee);for(var ue=l(Ce=g(Ce)),ge=0,Oe=ue.length,Je;Oe>ge;)Re(Ee,Je=ue[ge++],Ce[Je]);return Ee},Ue=function(Ee,Ce){return Ce===void 0?w(Ee):Ge(w(Ee),Ce)},nt=function(Ee){var Ce=W.call(this,Ee=A(Ee,!0));return this===G&&p(V,Ee)&&!p(Q,Ee)?!1:Ce||!p(this,Ee)||!p(V,Ee)||p(this,M)&&this[M][Ee]?Ce:!0},Le=function(Ee,Ce){if(Ee=g(Ee),Ce=A(Ce,!0),Ee===G&&p(V,Ce)&&!p(Q,Ce))return;var ue=I(Ee,Ce);return ue&&p(V,Ce)&&!(p(Ee,M)&&Ee[M][Ce])&&(ue.enumerable=!0),ue},le=function(Ee){for(var Ce=F(g(Ee)),ue=[],ge=0,Oe;Ce.length>ge;)!p(V,Oe=Ce[ge++])&&Oe!=M&&Oe!=f&&ue.push(Oe);return ue},Xe=function(Ee){for(var Ce=Ee===G,ue=F(Ce?Q:g(Ee)),ge=[],Oe=0,Je;ue.length>Oe;)p(V,Je=ue[Oe++])&&(Ce?p(G,Je):!0)&&ge.push(V[Je]);return ge};ee||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var Ee=n(arguments.length>0?arguments[0]:void 0),Ce=function ue(ge){this===G&&ue.call(Q,ge),p(this,M)&&p(this[M],Ee)&&(this[M][Ee]=!1),re(this,Ee,b(1,ge))};return S&&se&&re(G,Ee,{configurable:!0,set:Ce}),Ae(Ee)},m(R[X],"toString",function(){return this._k}),T.f=Le,E.f=Re,k("./_object-gopn").f=x.f=le,k("./_object-pie").f=nt,_.f=Xe,S&&!k("./_library")&&m(G,"propertyIsEnumerable",nt,!0),a.f=function(ye){return Ae(t(ye))}),v(v.G+v.W+v.F*!ee,{Symbol:R});for(var pe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Z=0;pe.length>Z;)t(pe[Z++]);for(var Y=C(t.store),ne=0;Y.length>ne;)e(Y[ne++]);v(v.S+v.F*!ee,"Symbol",{for:function(Ee){return p(H,Ee+="")?H[Ee]:H[Ee]=R(Ee)},keyFor:function(Ee){if(!Te(Ee))throw TypeError(Ee+" is not a symbol!");for(var Ce in H)if(H[Ce]===Ee)return Ce},useSetter:function(){se=!0},useSimple:function(){se=!1}}),v(v.S+v.F*!ee,"Object",{create:Ue,defineProperty:Re,defineProperties:Ge,getOwnPropertyDescriptor:Le,getOwnPropertyNames:le,getOwnPropertySymbols:Xe});var ce=d(function(){_.f(1)});v(v.S+v.F*ce,"Object",{getOwnPropertySymbols:function(Ee){return _.f(h(Ee))}}),B&&v(v.S+v.F*(!ee||d(function(){var ye=R();return P([ye])!="[null]"||P({a:ye})!="{}"||P(Object(ye))!="{}"})),"JSON",{stringify:function(Ee){for(var Ce=[Ee],ue=1,ge,Oe;arguments.length>ue;)Ce.push(arguments[ue++]);return Oe=ge=Ce[1],!c(ge)&&Ee===void 0||Te(Ee)?void 0:(r(ge)||(ge=function(lt,tt){if(typeof Oe=="function"&&(tt=Oe.call(this,lt,tt)),!Te(tt))return tt}),Ce[1]=ge,P.apply(B,Ce))}}),R[X][z]||k("./_hide")(R[X],z,R[X].valueOf),o(R,"Symbol"),o(Math,"Math",!0),o(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(k,D,i){var y=k("./_export"),p=k("./_object-to-array")(!0);y(y.S,"Object",{entries:function(v){return p(v)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,D,i){"use strict";var y=k("./_export"),p=k("./_core"),S=k("./_global"),v=k("./_species-constructor"),m=k("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(d){var u=v(this,p.Promise||S.Promise),o=typeof d=="function";return this.then(o?function(n){return m(u,d()).then(function(){return n})}:d,o?function(n){return m(u,d()).then(function(){throw n})}:d)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,D,i){"use strict";var y=k("./_export"),p=k("./_new-promise-capability"),S=k("./_perform");y(y.S,"Promise",{try:function(m){var f=p.f(this),d=S(m);return(d.e?f.reject:f.resolve)(d.v),f.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,D,i){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,D,i){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,D,i){k("./es6.array.iterator");for(var y=k("./_global"),p=k("./_hide"),S=k("./_iterators"),v=k("./_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(","),f=0;f<m.length;f++){var d=m[f],u=y[d],o=u&&u.prototype;o&&!o[v]&&p(o,v,d),S[d]=S.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,D,i){var y=k("./_export"),p=k("./_task");y(y.G+y.B,{setImmediate:p.set,clearImmediate:p.clear})},{"./_export":107,"./_task":155}],189:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),S=v(p);function v(A){return A&&A.__esModule?A:{default:A}}function m(A){return Array.isArray?Array.isArray(A):g(A)==="[object Array]"}i.isArray=m;function f(A){return typeof A=="boolean"}i.isBoolean=f;function d(A){return A===null}i.isNull=d;function u(A){return A==null}i.isNullOrUndefined=u;function o(A){return typeof A=="number"}i.isNumber=o;function n(A){return typeof A=="string"}i.isString=n;function t(A){return(typeof A=="undefined"?"undefined":(0,S.default)(A))==="symbol"}i.isSymbol=t;function a(A){return A===void 0}i.isUndefined=a;function e(A){return g(A)==="[object RegExp]"}i.isRegExp=e;function l(A){return(typeof A=="undefined"?"undefined":(0,S.default)(A))==="object"&&A!==null}i.isObject=l;function r(A){return g(A)==="[object Date]"}i.isDate=r;function s(A){return g(A)==="[object Error]"||A instanceof Error}i.isError=s;function c(A){return typeof A=="function"}i.isFunction=c;function h(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||(typeof A=="undefined"?"undefined":(0,S.default)(A))==="symbol"||typeof A=="undefined"}i.isPrimitive=h,i.isBuffer=y.isBuffer;function g(A){return Object.prototype.toString.call(A)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,D,i){"use strict";var y=k("babel-runtime/helpers/typeof"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(v){"use strict";var m=function(){var n=/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,a=/[^-+\dA-Z]/g;return function(e,l,r,s){if(arguments.length===1&&o(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),r=!0,c==="GMT:"&&(s=!0));var h=r?"getUTC":"get",g=e[h+"Date"](),A=e[h+"Day"](),b=e[h+"Month"](),w=e[h+"FullYear"](),x=e[h+"Hours"](),T=e[h+"Minutes"](),_=e[h+"Seconds"](),E=e[h+"Milliseconds"](),C=r?0:e.getTimezoneOffset(),I=d(e),O=u(e),F={d:g,dd:f(g),ddd:m.i18n.dayNames[A],dddd:m.i18n.dayNames[A+7],m:b+1,mm:f(b+1),mmm:m.i18n.monthNames[b],mmmm:m.i18n.monthNames[b+12],yy:String(w).slice(2),yyyy:w,h:x%12||12,hh:f(x%12||12),H:x,HH:f(x),M:T,MM:f(T),s:_,ss:f(_),l:f(E,3),L:f(Math.round(E/10)),t:x<12?"a":"p",tt:x<12?"am":"pm",T:x<12?"A":"P",TT:x<12?"AM":"PM",Z:s?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(a,""),o:(C>0?"-":"+")+f(Math.floor(Math.abs(C)/60)*100+Math.abs(C)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:I,N:O};return l.replace(n,function(R){return R in F?F[R]:R.slice(1,R.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 f(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n}function d(n){var t=new Date(n.getFullYear(),n.getMonth(),n.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var a=new Date(t.getFullYear(),0,4);a.setDate(a.getDate()-(a.getDay()+6)%7+3);var e=t.getTimezoneOffset()-a.getTimezoneOffset();t.setHours(t.getHours()-e);var l=(t-a)/(864e5*7);return 1+Math.floor(l)}function u(n){var t=n.getDay();return t===0&&(t=7),t}function o(n){return n===null?"null":n===void 0?"undefined":(typeof n=="undefined"?"undefined":(0,p.default)(n))!=="object"?typeof n=="undefined"?"undefined":(0,p.default)(n):Array.isArray(n)?"array":{}.toString.call(n).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof i=="undefined"?"undefined":(0,p.default)(i))==="object"?D.exports=m:v.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,D,i){/*!
* 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=/["'&<>]/;D.exports=p;function p(S){var v=""+S,m=y.exec(v);if(!m)return v;var f,d="",u=0,o=0;for(u=m.index;u<v.length;u++){switch(v.charCodeAt(u)){case 34:f="&quot;";break;case 38:f="&amp;";break;case 39:f="&#39;";break;case 60:f="&lt;";break;case 62:f="&gt;";break;default:continue}o!==u&&(d+=v.substring(o,u)),o=u+1,d+=f}return o!==u?d+v.substring(o,u):d}},{}],192:[function(k,D,i){function y(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}D.exports=y,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._maxListeners=void 0,y.defaultMaxListeners=10,y.prototype.setMaxListeners=function(f){if(!S(f)||f<0||isNaN(f))throw TypeError("n must be a positive number");return this._maxListeners=f,this},y.prototype.emit=function(f){var d,u,o,n,t,a;if(this._events||(this._events={}),f==="error"&&(!this._events.error||v(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[f],m(u))return!1;if(p(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:n=Array.prototype.slice.call(arguments,1),u.apply(this,n)}else if(v(u))for(n=Array.prototype.slice.call(arguments,1),a=u.slice(),o=a.length,t=0;t<o;t++)a[t].apply(this,n);return!0},y.prototype.addListener=function(f,d){var u;if(!p(d))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",f,p(d.listener)?d.listener:d),this._events[f]?v(this._events[f])?this._events[f].push(d):this._events[f]=[this._events[f],d]:this._events[f]=d,v(this._events[f])&&!this._events[f].warned&&(m(this._maxListeners)?u=y.defaultMaxListeners:u=this._maxListeners,u&&u>0&&this._events[f].length>u&&(this._events[f].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[f].length),typeof console.trace=="function"&&console.trace())),this},y.prototype.on=y.prototype.addListener,y.prototype.once=function(f,d){if(!p(d))throw TypeError("listener must be a function");var u=!1;function o(){this.removeListener(f,o),u||(u=!0,d.apply(this,arguments))}return o.listener=d,this.on(f,o),this},y.prototype.removeListener=function(f,d){var u,o,n,t;if(!p(d))throw TypeError("listener must be a function");if(!this._events||!this._events[f])return this;if(u=this._events[f],n=u.length,o=-1,u===d||p(u.listener)&&u.listener===d)delete this._events[f],this._events.removeListener&&this.emit("removeListener",f,d);else if(v(u)){for(t=n;t-- >0;)if(u[t]===d||u[t].listener&&u[t].listener===d){o=t;break}if(o<0)return this;u.length===1?(u.length=0,delete this._events[f]):u.splice(o,1),this._events.removeListener&&this.emit("removeListener",f,d)}return this},y.prototype.removeAllListeners=function(f){var d,u;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[f]&&delete this._events[f],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[f],p(u))this.removeListener(f,u);else if(u)for(;u.length;)this.removeListener(f,u[u.length-1]);return delete this._events[f],this},y.prototype.listeners=function(f){var d;return!this._events||!this._events[f]?d=[]:p(this._events[f])?d=[this._events[f]]:d=this._events[f].slice(),d},y.prototype.listenerCount=function(f){if(this._events){var d=this._events[f];if(p(d))return 1;if(d)return d.length}return 0},y.listenerCount=function(f,d){return f.listenerCount(d)};function p(f){return typeof f=="function"}function S(f){return typeof f=="number"}function v(f){return typeof f=="object"&&f!==null}function m(f){return f===void 0}},{}],193:[function(k,D,i){var y=k("http"),p=D.exports;for(var S in y)y.hasOwnProperty(S)&&(p[S]=y[S]);p.request=function(v,m){return v||(v={}),v.scheme="https",v.protocol="https:",y.request.call(this,v,m)}},{http:231}],194:[function(k,D,i){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=k("util"),p=k("ms");D.exports=function(S){if(typeof S=="number")return S;var v=p(S);if(v===void 0){var m=new Error(y.format("humanize-ms(%j) result undefined",S));console.warn(m.stack)}return v}},{ms:204,util:243}],195:[function(k,D,i){i.read=function(y,p,S,v,m){var f,d,u=m*8-v-1,o=(1<<u)-1,n=o>>1,t=-7,a=S?m-1:0,e=S?-1:1,l=y[p+a];for(a+=e,f=l&(1<<-t)-1,l>>=-t,t+=u;t>0;f=f*256+y[p+a],a+=e,t-=8);for(d=f&(1<<-t)-1,f>>=-t,t+=v;t>0;d=d*256+y[p+a],a+=e,t-=8);if(f===0)f=1-n;else{if(f===o)return d?NaN:(l?-1:1)*Infinity;d=d+Math.pow(2,v),f=f-n}return(l?-1:1)*d*Math.pow(2,f-v)},i.write=function(y,p,S,v,m,f){var d,u,o,n=f*8-m-1,t=(1<<n)-1,a=t>>1,e=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=v?0:f-1,r=v?1:-1,s=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===Infinity?(u=isNaN(p)?1:0,d=t):(d=Math.floor(Math.log(p)/Math.LN2),p*(o=Math.pow(2,-d))<1&&(d--,o*=2),d+a>=1?p+=e/o:p+=e*Math.pow(2,1-a),p*o>=2&&(d++,o/=2),d+a>=t?(u=0,d=t):d+a>=1?(u=(p*o-1)*Math.pow(2,m),d=d+a):(u=p*Math.pow(2,a-1)*Math.pow(2,m),d=0));m>=8;y[S+l]=u&255,l+=r,u/=256,m-=8);for(d=d<<m|u,n+=m;n>0;y[S+l]=d&255,l+=r,d/=256,n-=8);y[S+l-r]|=s*128}},{}],196:[function(k,D,i){typeof Object.create=="function"?D.exports=function(p,S){S&&(p.super_=S,p.prototype=Object.create(S.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(p,S){if(S){p.super_=S;var v=function(){};v.prototype=S.prototype,p.prototype=new v,p.prototype.constructor=p}}},{}],197:[function(k,D,i){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/D.exports=function(S){return S!=null&&(y(S)||p(S)||!!S._isBuffer)};function y(S){return!!S.constructor&&typeof S.constructor.isBuffer=="function"&&S.constructor.isBuffer(S)}function p(S){return typeof S.readFloatLE=="function"&&typeof S.slice=="function"&&y(S.slice(0,0))}},{}],198:[function(k,D,i){var y={}.toString;D.exports=Array.isArray||function(p){return y.call(p)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(k,D){typeof exports=="object"&&typeof module!="undefined"?module.exports=D(k):typeof define=="function"&&define.amd?define(D):D(k)})(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(k){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(k){for(var D={},i=0,y=k.length;i<y;i++)D[k.charAt(i)]=i;return D}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(D){if(D.length<2){var i=D.charCodeAt(0);return i<128?D:i<2048?fromCharCode(192|i>>>6)+fromCharCode(128|i&63):fromCharCode(224|i>>>12&15)+fromCharCode(128|i>>>6&63)+fromCharCode(128|i&63)}else{var i=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return fromCharCode(240|i>>>18&7)+fromCharCode(128|i>>>12&63)+fromCharCode(128|i>>>6&63)+fromCharCode(128|i&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(D){return D.replace(re_utob,cb_utob)},cb_encode=function(D){var i=[0,2,1][D.length%3],y=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),p=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),i>=2?"=":b64chars.charAt(y>>>6&63),i>=1?"=":b64chars.charAt(y&63)];return p.join("")},btoa=global.btoa?function(k){return global.btoa(k)}:function(k){return k.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(D){var i=Object.prototype.toString.call(D)==="[object Uint8Array]";return i?D.toString("base64"):btoa(utob(String(D)))},encode=function(D,i){return i?_encode(String(D)).replace(/[+\/]/g,function(y){return y=="+"?"-":"_"}).replace(/=/g,""):_encode(D)},encodeURI=function(D){return encode(D,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(D){switch(D.length){case 4:var i=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),y=i-65536;return fromCharCode((y>>>10)+55296)+fromCharCode((y&1023)+56320);case 3:return fromCharCode((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return fromCharCode((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},btou=function(D){return D.replace(re_btou,cb_btou)},cb_decode=function(D){var i=D.length,y=i%4,p=(i>0?b64tab[D.charAt(0)]<<18:0)|(i>1?b64tab[D.charAt(1)]<<12:0)|(i>2?b64tab[D.charAt(2)]<<6:0)|(i>3?b64tab[D.charAt(3)]:0),S=[fromCharCode(p>>>16),fromCharCode(p>>>8&255),fromCharCode(p&255)];return S.length-=[0,0,2,1][y],S.join("")},_atob=global.atob?function(k){return global.atob(k)}:function(k){return k.replace(/\S{1,4}/g,cb_decode)},atob=function(D){return _atob(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(k){return(k.constructor===buffer.constructor?k:buffer.from(k,"base64")).toString()}:function(k){return(k.constructor===buffer.constructor?k:new buffer(k,"base64")).toString()}:function(k){return btou(_atob(k))},decode=function(D){return _decode(String(D).replace(/[-_]/g,function(i){return i=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var D=global.Base64;return global.Base64=_Base64,D};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(D){return{value:D,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(k){return encode(this,k)})),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(k,D,i){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";D.exports=p;var y=Object.prototype.hasOwnProperty;function p(S,v,m){if(!S)throw new TypeError("argument dest is required");if(!v)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(v).forEach(function(d){if(!m&&y.call(S,d))return;var u=Object.getOwnPropertyDescriptor(v,d);Object.defineProperty(S,d,u)}),S}},{}],201:[function(k,D,i){"use strict";function y(){this._types=Object.create(null),this._extensions=Object.create(null);for(var p=0;p<arguments.length;p++)this.define(arguments[p]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}y.prototype.define=function(p,S){for(var v in p){var m=p[v].map(function(u){return u.toLowerCase()});v=v.toLowerCase();for(var f=0;f<m.length;f++){var d=m[f];if(d[0]=="*")continue;if(!S&&d in this._types)throw new Error('Attempt to change mapping for "'+d+'" extension from "'+this._types[d]+'" to "'+v+'". Pass `force=true` to allow this, otherwise remove "'+d+'" from the list of extensions for "'+v+'".');this._types[d]=v}if(S||!this._extensions[v]){var d=m[0];this._extensions[v]=d[0]!="*"?d:d.substr(1)}}},y.prototype.getType=function(p){p=String(p);var S=p.replace(/^.*[/\\]/,"").toLowerCase(),v=S.replace(/^.*\./,"").toLowerCase(),m=S.length<p.length,f=v.length<S.length-1;return(f||!m)&&this._types[v]||null},y.prototype.getExtension=function(p){return p=/^\s*([^;\s]*)/.test(p)&&RegExp.$1,p&&this._extensions[p.toLowerCase()]||null},D.exports=y},{}],202:[function(k,D,i){"use strict";var y=k("./Mime");D.exports=new y(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,D,i){D.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(k,D,i){var y=1e3,p=y*60,S=p*60,v=S*24,m=v*7,f=v*365.25;D.exports=function(t,a){a=a||{};var e=typeof t;if(e==="string"&&t.length>0)return d(t);if(e==="number"&&isFinite(t))return a.long?o(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 a=/^(-?(?:\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(!a)return;var e=parseFloat(a[1]),l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return e*f;case"weeks":case"week":case"w":return e*m;case"days":case"day":case"d":return e*v;case"hours":case"hour":case"hrs":case"hr":case"h":return e*S;case"minutes":case"minute":case"mins":case"min":case"m":return e*p;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 a=Math.abs(t);return a>=v?Math.round(t/v)+"d":a>=S?Math.round(t/S)+"h":a>=p?Math.round(t/p)+"m":a>=y?Math.round(t/y)+"s":t+"ms"}function o(t){var a=Math.abs(t);return a>=v?n(t,a,v,"day"):a>=S?n(t,a,S,"hour"):a>=p?n(t,a,p,"minute"):a>=y?n(t,a,y,"second"):t+" ms"}function n(t,a,e,l){var r=a>=e*1.5;return Math.round(t/e)+" "+l+(r?"s":"")}},{}],205:[function(k,D,i){(function(y){function p(f,d){for(var u=0,o=f.length-1;o>=0;o--){var n=f[o];n==="."?f.splice(o,1):n===".."?(f.splice(o,1),u++):u&&(f.splice(o,1),u--)}if(d)for(;u--;u)f.unshift("..");return f}i.resolve=function(){for(var f="",d=!1,u=arguments.length-1;u>=-1&&!d;u--){var o=u>=0?arguments[u]:y.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;f=o+"/"+f,d=o.charAt(0)==="/"}return f=p(v(f.split("/"),function(n){return!!n}),!d).join("/"),(d?"/":"")+f||"."},i.normalize=function(f){var d=i.isAbsolute(f),u=m(f,-1)==="/";return f=p(v(f.split("/"),function(o){return!!o}),!d).join("/"),!f&&!d&&(f="."),f&&u&&(f+="/"),(d?"/":"")+f},i.isAbsolute=function(f){return f.charAt(0)==="/"},i.join=function(){var f=Array.prototype.slice.call(arguments,0);return i.normalize(v(f,function(d,u){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},i.relative=function(f,d){f=i.resolve(f).substr(1),d=i.resolve(d).substr(1);function u(r){for(var s=0;s<r.length&&!(r[s]!=="");s++);for(var c=r.length-1;c>=0&&!(r[c]!=="");c--);return s>c?[]:r.slice(s,c-s+1)}for(var o=u(f.split("/")),n=u(d.split("/")),t=Math.min(o.length,n.length),a=t,e=0;e<t;e++)if(o[e]!==n[e]){a=e;break}for(var l=[],e=a;e<o.length;e++)l.push("..");return l=l.concat(n.slice(a)),l.join("/")},i.sep="/",i.delimiter=":",i.dirname=function(f){if(typeof f!="string"&&(f=f+""),f.length===0)return".";for(var d=f.charCodeAt(0),u=d===47,o=-1,n=!0,t=f.length-1;t>=1;--t)if(d=f.charCodeAt(t),d===47){if(!n){o=t;break}}else n=!1;return o===-1?u?"/":".":u&&o===1?"/":f.slice(0,o)};function S(f){typeof f!="string"&&(f=f+"");var d=0,u=-1,o=!0,n;for(n=f.length-1;n>=0;--n)if(f.charCodeAt(n)===47){if(!o){d=n+1;break}}else u===-1&&(o=!1,u=n+1);return u===-1?"":f.slice(d,u)}i.basename=function(f,d){var u=S(f);return d&&u.substr(-1*d.length)===d&&(u=u.substr(0,u.length-d.length)),u},i.extname=function(f){typeof f!="string"&&(f=f+"");for(var d=-1,u=0,o=-1,n=!0,t=0,a=f.length-1;a>=0;--a){var e=f.charCodeAt(a);if(e===47){if(!n){u=a+1;break}continue}o===-1&&(n=!1,o=a+1),e===46?d===-1?d=a:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||o===-1||t===0||t===1&&d===o-1&&d===u+1?"":f.slice(d,o)};function v(f,d){if(f.filter)return f.filter(d);for(var u=[],o=0;o<f.length;o++)d(f[o],o,f)&&u.push(f[o]);return u}var m="ab".substr(-1)==="b"?function(f,d,u){return f.substr(d,u)}:function(f,d,u){return d<0&&(d=f.length+d),f.substr(d,u)}}).call(this,k("_process"))},{_process:208}],206:[function(k,D,i){(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 p={function:!0,object:!0},S=p[typeof window]&&window||this,v=S,m=p[typeof i]&&i,f=p[typeof D]&&D&&!D.nodeType&&D,d=m&&f&&typeof y=="object"&&y;d&&(d.global===d||d.window===d||d.self===d)&&(S=d);var u=Math.pow(2,53)-1,o=/\bOpera/,n=this,t=Object.prototype,a=t.hasOwnProperty,e=t.toString;function l(E){return E=String(E),E.charAt(0).toUpperCase()+E.slice(1)}function r(E,C,I){var O={"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 C&&I&&/^Win/i.test(E)&&!/^Windows Phone /i.test(E)&&(O=O[/[\d.]+$/.exec(E)])&&(E="Windows "+O),E=String(E),C&&I&&(E=E.replace(RegExp(C,"i"),I)),E=c(E.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]),E}function s(E,C){var I=-1,O=E?E.length:0;if(typeof O=="number"&&O>-1&&O<=u)for(;++I<O;)C(E[I],I,E);else h(E,C)}function c(E){return E=x(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:l(E)}function h(E,C){for(var I in E)a.call(E,I)&&C(E[I],I,E)}function g(E){return E==null?l(E):e.call(E).slice(8,-1)}function A(E,C){var I=E!=null?typeof E[C]:"number";return!/^(?:boolean|number|string|undefined)$/.test(I)&&(I=="object"?!!E[C]:!0)}function b(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function w(E,C){var I=null;return s(E,function(O,F){I=C(I,O,F,E)}),I}function x(E){return String(E).replace(/^ +| +$/g,"")}function T(E){var C=S,I=E&&typeof E=="object"&&g(E)!="String";I&&(C=E,E=null);var O=C.navigator||{},F=O.userAgent||"";E||(E=F);var R=I||n==v,B=I?!!O.likeChrome:/\bChrome\b/.test(E)&&!/internal|\n/i.test(e.toString()),P="Object",X=I?P:"ScriptBridgingProxyObject",M=I?P:"Environment",z=I&&C.java?"JavaPackage":g(C.java),W=I?P:"RuntimeObject",H=/\bJava/.test(z)&&C.java,V=H&&g(C.environment)==M,Q=H?"a":"\u03B1",G=H?"b":"\u03B2",ee=C.document||{},q=C.operamini||C.opera,se=o.test(se=I&&q?q["[[Class]]"]:g(q))?se:q=null,re,Ae=E,Te=[],Re=null,Ge=E==F,Ue=Ge&&q&&typeof q.version=="function"&&q.version(),nt,Le=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),le=ce(["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"]),Xe=Ee([{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"]),pe=ne({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}}),Z=ye(["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(Oe){return w(Oe,function(Je,lt){return Je||RegExp("\\b"+(lt.pattern||b(lt))+"\\b","i").exec(E)&&(lt.label||lt)})}function ne(Oe){return w(Oe,function(Je,lt,tt){return Je||(lt[Xe]||lt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Xe)]||RegExp("\\b"+b(tt)+"(?:\\b|\\w*\\d)","i").exec(E))&&tt})}function ce(Oe){return w(Oe,function(Je,lt){return Je||RegExp("\\b"+(lt.pattern||b(lt))+"\\b","i").exec(E)&&(lt.label||lt)})}function ye(Oe){return w(Oe,function(Je,lt){var tt=lt.pattern||b(lt);return!Je&&(Je=RegExp("\\b"+tt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(E))&&(Je=r(Je,tt,lt.label||lt)),Je})}function Ee(Oe){return w(Oe,function(Je,lt){var tt=lt.pattern||b(lt);return!Je&&(Je=RegExp("\\b"+tt+" *\\d+[.\\w_]*","i").exec(E)||RegExp("\\b"+tt+" *\\w+-[\\w]*","i").exec(E)||RegExp("\\b"+tt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(E))&&((Je=String(lt.label&&!RegExp(tt,"i").test(lt.label)?lt.label:Je).split("/"))[1]&&!/[\d.]+/.test(Je[0])&&(Je[0]+=" "+Je[1]),lt=lt.label||lt,Je=c(Je[0].replace(RegExp(tt,"i"),lt).replace(RegExp("; *(?:"+lt+"[_-])?","i")," ").replace(RegExp("("+lt+")[-_.]?(\\w)","i"),"$1 $2"))),Je})}function Ce(Oe){return w(Oe,function(Je,lt){return Je||(RegExp(lt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(E)||0)[1]||null})}function ue(){return this.description||""}if(Le&&(Le=[Le]),pe&&!Xe&&(Xe=Ee([pe])),(re=/\bGoogle TV\b/.exec(Xe))&&(Xe=re[0]),/\bSimulator\b/i.test(E)&&(Xe=(Xe?Xe+" ":"")+"Simulator"),le=="Opera Mini"&&/\bOPiOS\b/.test(E)&&Te.push("running in Turbo/Uncompressed mode"),le=="IE"&&/\blike iPhone OS\b/.test(E)?(re=T(E.replace(/like iPhone OS/,"")),pe=re.manufacturer,Xe=re.product):/^iP/.test(Xe)?(le||(le="Safari"),Z="iOS"+((re=/ OS ([\d_]+)/i.exec(E))?" "+re[1].replace(/_/g,"."):"")):le=="Konqueror"&&!/buntu/i.test(Z)?Z="Kubuntu":pe&&pe!="Google"&&(/Chrome/.test(le)&&!/\bMobile Safari\b/i.test(E)||/\bVita\b/.test(Xe))||/\bAndroid\b/.test(Z)&&/^Chrome/.test(le)&&/\bVersion\//i.test(E)?(le="Android Browser",Z=/\bAndroid\b/.test(Z)?Z:"Android"):le=="Silk"?(/\bMobi/i.test(E)||(Z="Android",Te.unshift("desktop mode")),/Accelerated *= *true/i.test(E)&&Te.unshift("accelerated")):le=="PaleMoon"&&(re=/\bFirefox\/([\d.]+)\b/.exec(E))?Te.push("identifying as Firefox "+re[1]):le=="Firefox"&&(re=/\b(Mobile|Tablet|TV)\b/i.exec(E))?(Z||(Z="Firefox OS"),Xe||(Xe=re[1])):!le||(re=!/\bMinefield\b/i.test(E)&&/\b(?:Firefox|Safari)\b/.exec(le))?(le&&!Xe&&/[\/,]|^[^(]+?\)/.test(E.slice(E.indexOf(re+"/")+8))&&(le=null),(re=Xe||pe||Z)&&(Xe||pe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Z))&&(le=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Z)?Z:re)+" Browser")):le=="Electron"&&(re=(/\bChrome\/([\d.]+)\b/.exec(E)||0)[1])&&Te.push("Chromium "+re),Ue||(Ue=Ce(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(le),"(?:Firefox|Minefield|NetFront)"])),(re=Le=="iCab"&&parseFloat(Ue)>3&&"WebKit"||/\bOpera\b/.test(le)&&(/\bOPR\b/.test(E)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(Le)&&"WebKit"||!Le&&/\bMSIE\b/i.test(E)&&(Z=="Mac OS"?"Tasman":"Trident")||Le=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(le)&&"NetFront")&&(Le=[re]),le=="IE"&&(re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(le+=" Mobile",Z="Windows Phone "+(/\+$/.test(re)?re:re+".x"),Te.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(le="IE Mobile",Z="Windows Phone 8.x",Te.unshift("desktop mode"),Ue||(Ue=(/\brv:([\d.]+)/.exec(E)||0)[1])):le!="IE"&&Le=="Trident"&&(re=/\brv:([\d.]+)/.exec(E))&&(le&&Te.push("identifying as "+le+(Ue?" "+Ue:"")),le="IE",Ue=re[1]),Ge){if(A(C,"global"))if(H&&(re=H.lang.System,Ae=re.getProperty("os.arch"),Z=Z||re.getProperty("os.name")+" "+re.getProperty("os.version")),V){try{Ue=C.require("ringo/engine").version.join("."),le="RingoJS"}catch(Oe){(re=C.system)&&re.global.system==C.system&&(le="Narwhal",Z||(Z=re[0].os||null))}le||(le="Rhino")}else typeof C.process=="object"&&!C.process.browser&&(re=C.process)&&(typeof re.versions=="object"&&(typeof re.versions.electron=="string"?(Te.push("Node "+re.versions.node),le="Electron",Ue=re.versions.electron):typeof re.versions.nw=="string"&&(Te.push("Chromium "+Ue,"Node "+re.versions.node),le="NW.js",Ue=re.versions.nw)),le||(le="Node.js",Ae=re.arch,Z=re.platform,Ue=/[\d.]+/.exec(re.version),Ue=Ue?Ue[0]:null));else g(re=C.runtime)==X?(le="Adobe AIR",Z=re.flash.system.Capabilities.os):g(re=C.phantom)==W?(le="PhantomJS",Ue=(re=re.version||null)&&re.major+"."+re.minor+"."+re.patch):typeof ee.documentMode=="number"&&(re=/\bTrident\/(\d+)/i.exec(E))?(Ue=[Ue,ee.documentMode],(re=+re[1]+4)!=Ue[1]&&(Te.push("IE "+Ue[1]+" mode"),Le&&(Le[1]=""),Ue[1]=re),Ue=le=="IE"?String(Ue[1].toFixed(1)):Ue[0]):typeof ee.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(le)&&(Te.push("masking as "+le+" "+Ue),le="IE",Ue="11.0",Le=["Trident"],Z="Windows");Z=Z&&c(Z)}if(Ue&&(re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ue)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(Ge&&O.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(Re=/b/i.test(re)?"beta":"alpha",Ue=Ue.replace(RegExp(re+"\\+?$"),"")+(Re=="beta"?G:Q)+(/\d+\+?/.exec(re)||"")),le=="Fennec"||le=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Z))le="Firefox Mobile";else if(le=="Maxthon"&&Ue)Ue=Ue.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Xe))Xe=="Xbox 360"&&(Z=null),Xe=="Xbox 360"&&/\bIEMobile\b/.test(E)&&Te.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(le)||le&&!Xe&&!/Browser|Mobi/.test(le))&&(Z=="Windows CE"||/Mobi/i.test(E)))le+=" Mobile";else if(le=="IE"&&Ge)try{C.external===null&&Te.unshift("platform preview")}catch(Oe){Te.unshift("embedded")}else(/\bBlackBerry\b/.test(Xe)||/\bBB10\b/.test(E))&&(re=(RegExp(Xe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||Ue)?(re=[re,/BB10/.test(E)],Z=(re[1]?(Xe=null,pe="BlackBerry"):"Device Software")+" "+re[0],Ue=null):this!=h&&Xe!="Wii"&&(Ge&&q||/Opera/.test(le)&&/\b(?:MSIE|Firefox)\b/i.test(E)||le=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Z)||le=="IE"&&(Z&&!/^Win/.test(Z)&&Ue>5.5||/\bWindows XP\b/.test(Z)&&Ue>8||Ue==8&&!/\bTrident\b/.test(E)))&&!o.test(re=T.call(h,E.replace(o,"")+";"))&&re.name&&(re="ing as "+re.name+((re=re.version)?" "+re:""),o.test(le)?(/\bIE\b/.test(re)&&Z=="Mac OS"&&(Z=null),re="identify"+re):(re="mask"+re,se?le=c(se.replace(/([a-z])([A-Z])/g,"$1 $2")):le="Opera",/\bIE\b/.test(re)&&(Z=null),Ge||(Ue=null)),Le=["Presto"],Te.push(re));(re=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(re=[parseFloat(re.replace(/\.(\d)$/,".0$1")),re],le=="Safari"&&re[1].slice(-1)=="+"?(le="WebKit Nightly",Re="alpha",Ue=re[1].slice(0,-1)):(Ue==re[1]||Ue==(re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(Ue=null),re[1]=(/\bChrome\/([\d.]+)/i.exec(E)||0)[1],re[0]==537.36&&re[2]==537.36&&parseFloat(re[1])>=28&&Le=="WebKit"&&(Le=["Blink"]),!Ge||!B&&!re[1]?(Le&&(Le[1]="like Safari"),re=(re=re[0],re<400?1:re<500?2:re<526?3:re<533?4:re<534?"4+":re<535?5:re<537?6:re<538?7:re<601?8:"8")):(Le&&(Le[1]="like Chrome"),re=re[1]||(re=re[0],re<530?1:re<532?2:re<532.05?3:re<533?4:re<534.03?5:re<534.07?6:re<534.1?7:re<534.13?8:re<534.16?9:re<534.24?10:re<534.3?11:re<535.01?12:re<535.02?"13+":re<535.07?15:re<535.11?16:re<535.19?17:re<536.05?18:re<536.1?19:re<537.01?20:re<537.11?"21+":re<537.13?23:re<537.18?24:re<537.24?25:re<537.36?26:Le!="Blink"?"27":"28")),Le&&(Le[1]+=" "+(re+=typeof re=="number"?".x":/[.+]/.test(re)?"":"+")),le=="Safari"&&(!Ue||parseInt(Ue)>45)&&(Ue=re)),le=="Opera"&&(re=/\bzbov|zvav$/.exec(Z))?(le+=" ",Te.unshift("desktop mode"),re=="zvav"?(le+="Mini",Ue=null):le+="Mobile",Z=Z.replace(RegExp(" *"+re+"$"),"")):le=="Safari"&&/\bChrome\b/.exec(Le&&Le[1])&&(Te.unshift("desktop mode"),le="Chrome Mobile",Ue=null,/\bOS X\b/.test(Z)?(pe="Apple",Z="iOS 4.3+"):Z=null),Ue&&Ue.indexOf(re=/[\d.]+$/.exec(Z))==0&&E.indexOf("/"+re+"-")>-1&&(Z=x(Z.replace(re,""))),Le&&!/\b(?:Avant|Nook)\b/.test(le)&&(/Browser|Lunascape|Maxthon/.test(le)||le!="Safari"&&/^iOS/.test(Z)&&/\bSafari\b/.test(Le[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(le)&&Le[1])&&((re=Le[Le.length-1])&&Te.push(re)),Te.length&&(Te=["("+Te.join("; ")+")"]),pe&&Xe&&Xe.indexOf(pe)<0&&Te.push("on "+pe),Xe&&Te.push((/^on /.test(Te[Te.length-1])?"":"on ")+Xe),Z&&(re=/ ([\d.+]+)$/.exec(Z),nt=re&&Z.charAt(Z.length-re[0].length-1)=="/",Z={architecture:32,family:re&&!nt?Z.replace(re[0],""):Z,version:re?re[1]:null,toString:function(){var Je=this.version;return this.family+(Je&&!nt?" "+Je:"")+(this.architecture==64?" 64-bit":"")}}),(re=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ae))&&!/\bi686\b/i.test(Ae)?(Z&&(Z.architecture=64,Z.family=Z.family.replace(RegExp(" *"+re),"")),le&&(/\bWOW64\b/i.test(E)||Ge&&/\w(?:86|32)$/.test(O.cpuClass||O.platform)&&!/\bWin64; x64\b/i.test(E))&&Te.unshift("32-bit")):Z&&/^OS X/.test(Z.family)&&le=="Chrome"&&parseFloat(Ue)>=39&&(Z.architecture=64),E||(E=null);var ge={};return ge.description=E,ge.layout=Le&&Le[0],ge.manufacturer=pe,ge.name=le,ge.prerelease=Re,ge.product=Xe,ge.ua=E,ge.version=le&&Ue,ge.os=Z||{architecture:null,family:null,version:null,toString:function(){return"null"}},ge.parse=T,ge.toString=ue,ge.version&&Te.unshift(Ue),ge.name&&Te.unshift(le),Z&&le&&!(Z==String(Z).split(" ")[0]&&(Z==le.split(" ")[0]||Xe))&&Te.push(Xe?"("+Z+")":"on "+Z),Te.length&&(ge.description=Te.join(" ")),ge}var _=T();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(S.platform=_,define(function(){return _})):m&&f?h(_,function(E,C){m[C]=E}):S.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,D,i){(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?D.exports={nextTick:p}:D.exports=y;function p(S,v,m,f){if(typeof S!="function")throw new TypeError('"callback" argument must be a function');var d=arguments.length,u,o;switch(d){case 0:case 1:return y.nextTick(S);case 2:return y.nextTick(function(){S.call(null,v)});case 3:return y.nextTick(function(){S.call(null,v,m)});case 4:return y.nextTick(function(){S.call(null,v,m,f)});default:for(u=new Array(d-1),o=0;o<u.length;)u[o++]=arguments[o];return y.nextTick(function(){S.apply(null,u)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,D,i){var y=D.exports={},p,S;function v(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=v}catch(s){p=v}try{typeof clearTimeout=="function"?S=clearTimeout:S=m}catch(s){S=m}})();function f(s){if(p===setTimeout)return setTimeout(s,0);if((p===v||!p)&&setTimeout)return p=setTimeout,setTimeout(s,0);try{return p(s,0)}catch(c){try{return p.call(null,s,0)}catch(h){return p.call(this,s,0)}}}function d(s){if(S===clearTimeout)return clearTimeout(s);if((S===m||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(s);try{return S(s)}catch(c){try{return S.call(null,s)}catch(h){return S.call(this,s)}}}var u=[],o=!1,n,t=-1;function a(){if(!o||!n)return;o=!1,n.length?u=n.concat(u):t=-1,u.length&&e()}function e(){if(o)return;var s=f(a);o=!0;for(var c=u.length;c;){for(n=u,u=[];++t<c;)n&&n[t].run();t=-1,c=u.length}n=null,o=!1,d(s)}y.nextTick=function(s){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(s,c)),u.length===1&&!o&&f(e)};function l(s,c){this.fun=s,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 r(){}y.on=r,y.addListener=r,y.once=r,y.off=r,y.removeListener=r,y.removeAllListeners=r,y.emit=r,y.prependListener=r,y.prependOnceListener=r,y.listeners=function(s){return[]},y.binding=function(s){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(s){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},{}],209:[function(k,D,i){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(p){var S=typeof i=="object"&&i&&!i.nodeType&&i,v=typeof D=="object"&&D&&!D.nodeType&&D,m=typeof y=="object"&&y;(m.global===m||m.window===m||m.self===m)&&(p=m);var f,d=2147483647,u=36,o=1,n=26,t=38,a=700,e=72,l=128,r="-",s=/^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"},A=u-o,b=Math.floor,w=String.fromCharCode,x;function T(z){throw new RangeError(g[z])}function _(z,W){for(var H=z.length,V=[];H--;)V[H]=W(z[H]);return V}function E(z,W){var H=z.split("@"),V="";H.length>1&&(V=H[0]+"@",z=H[1]),z=z.replace(h,".");var Q=z.split("."),G=_(Q,W).join(".");return V+G}function C(z){for(var W=[],H=0,V=z.length,Q,G;H<V;)Q=z.charCodeAt(H++),Q>=55296&&Q<=56319&&H<V?(G=z.charCodeAt(H++),(G&64512)==56320?W.push(((Q&1023)<<10)+(G&1023)+65536):(W.push(Q),H--)):W.push(Q);return W}function I(z){return _(z,function(W){var H="";return W>65535&&(W-=65536,H+=w(W>>>10&1023|55296),W=56320|W&1023),H+=w(W),H}).join("")}function O(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:u}function F(z,W){return z+22+75*(z<26)-((W!=0)<<5)}function R(z,W,H){var V=0;for(z=H?b(z/a):z>>1,z+=b(z/W);z>A*n>>1;V+=u)z=b(z/A);return b(V+(A+1)*z/(z+t))}function B(z){var W=[],H=z.length,V,Q=0,G=l,ee=e,q,se,re,Ae,Te,Re,Ge,Ue,nt;for(q=z.lastIndexOf(r),q<0&&(q=0),se=0;se<q;++se)z.charCodeAt(se)>=128&&T("not-basic"),W.push(z.charCodeAt(se));for(re=q>0?q+1:0;re<H;){for(Ae=Q,Te=1,Re=u;!(re>=H&&T("invalid-input"),Ge=O(z.charCodeAt(re++)),(Ge>=u||Ge>b((d-Q)/Te))&&T("overflow"),Q+=Ge*Te,Ue=Re<=ee?o:Re>=ee+n?n:Re-ee,Ge<Ue);Re+=u)nt=u-Ue,Te>b(d/nt)&&T("overflow"),Te*=nt;V=W.length+1,ee=R(Q-Ae,V,Ae==0),b(Q/V)>d-G&&T("overflow"),G+=b(Q/V),Q%=V,W.splice(Q++,0,G)}return I(W)}function P(z){var W,H,V,Q,G,ee,q,se,re,Ae,Te,Re=[],Ge,Ue,nt,Le;for(z=C(z),Ge=z.length,W=l,H=0,G=e,ee=0;ee<Ge;++ee)Te=z[ee],Te<128&&Re.push(w(Te));for(V=Q=Re.length,Q&&Re.push(r);V<Ge;){for(q=d,ee=0;ee<Ge;++ee)Te=z[ee],Te>=W&&Te<q&&(q=Te);for(Ue=V+1,q-W>b((d-H)/Ue)&&T("overflow"),H+=(q-W)*Ue,W=q,ee=0;ee<Ge;++ee)if(Te=z[ee],Te<W&&++H>d&&T("overflow"),Te==W){for(se=H,re=u;!(Ae=re<=G?o:re>=G+n?n:re-G,se<Ae);re+=u)Le=se-Ae,nt=u-Ae,Re.push(w(F(Ae+Le%nt,0))),se=b(Le/nt);Re.push(w(F(se,0))),G=R(H,Ue,V==Q),H=0,++V}++H,++W}return Re.join("")}function X(z){return E(z,function(W){return s.test(W)?B(W.slice(4).toLowerCase()):W})}function M(z){return E(z,function(W){return c.test(W)?"xn--"+P(W):W})}if(f={version:"1.4.1",ucs2:{decode:C,encode:I},decode:B,encode:P,toASCII:M,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return f});else if(S&&v)if(D.exports==S)v.exports=f;else for(x in f)f.hasOwnProperty(x)&&(S[x]=f[x]);else p.punycode=f})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(k,D,i){"use strict";function y(S,v){return Object.prototype.hasOwnProperty.call(S,v)}D.exports=function(S,v,m,f){v=v||"&",m=m||"=";var d={};if(typeof S!="string"||S.length===0)return d;var u=/\+/g;S=S.split(v);var o=1e3;f&&typeof f.maxKeys=="number"&&(o=f.maxKeys);var n=S.length;o>0&&n>o&&(n=o);for(var t=0;t<n;++t){var a=S[t].replace(u,"%20"),e=a.indexOf(m),l,r,s,c;e>=0?(l=a.substr(0,e),r=a.substr(e+1)):(l=a,r=""),s=decodeURIComponent(l),c=decodeURIComponent(r),y(d,s)?p(d[s])?d[s].push(c):d[s]=[d[s],c]:d[s]=c}return d};var p=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"}},{}],211:[function(k,D,i){"use strict";var y=function(f){switch(typeof f){case"string":return f;case"boolean":return f?"true":"false";case"number":return isFinite(f)?f:"";default:return""}};D.exports=function(m,f,d,u){return f=f||"&",d=d||"=",m===null&&(m=void 0),typeof m=="object"?S(v(m),function(o){var n=encodeURIComponent(y(o))+d;return p(m[o])?S(m[o],function(t){return n+encodeURIComponent(y(t))}).join(f):n+encodeURIComponent(y(m[o]))}).join(f):u?encodeURIComponent(y(u))+d+encodeURIComponent(y(m)):""};var p=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};function S(m,f){if(m.map)return m.map(f);for(var d=[],u=0;u<m.length;u++)d.push(f(m[u],u));return d}var v=Object.keys||function(m){var f=[];for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&f.push(d);return f}},{}],212:[function(k,D,i){"use strict";i.decode=i.parse=k("./decode"),i.encode=i.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,D,i){D.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=m(y),S=k("babel-runtime/core-js/object/keys"),v=m(S);function m(c){return c&&c.__esModule?c:{default:c}}var f=k("process-nextick-args"),d=v.default||function(c){var h=[];for(var g in c)h.push(g);return h};D.exports=l;var u=(0,p.default)(k("core-util-is"));u.inherits=k("inherits");var o=k("./_stream_readable"),n=k("./_stream_writable");u.inherits(l,o);for(var t=d(n.prototype),a=0;a<t.length;a++){var e=t[a];l.prototype[e]||(l.prototype[e]=n.prototype[e])}function l(c){if(!(this instanceof l))return new l(c);o.call(this,c),n.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",r)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function r(){if(this.allowHalfOpen||this._writableState.ended)return;f.nextTick(s,this)}function s(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(),f.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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}D.exports=f;var v=k("./_stream_transform"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(f,v);function f(d){if(!(this instanceof f))return new f(d);v.call(this,d)}f.prototype._transform=function(d,u,o){o(null,d)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/object/get-prototype-of"),v=d(S),m=k("babel-runtime/core-js/object/create"),f=d(m);function d(Le){return Le&&Le.__esModule?Le:{default:Le}}var u=k("process-nextick-args");D.exports=C;var o=k("isarray"),n;C.ReadableState=E;var t=k("events").EventEmitter,a=function(le,Xe){return le.listeners(Xe).length},e=k("./internal/streams/stream"),l=k("safe-buffer").Buffer,r=p.Uint8Array||function(){};function s(Le){return l.from(Le)}function c(Le){return l.isBuffer(Le)||Le instanceof r}var h=(0,f.default)(k("core-util-is"));h.inherits=k("inherits");var g=k("util"),A=void 0;g&&g.debuglog?A=g.debuglog("stream"):A=function(){};var b=k("./internal/streams/BufferList"),w=k("./internal/streams/destroy"),x;h.inherits(C,e);var T=["error","close","destroy","pause","resume"];function _(Le,le,Xe){if(typeof Le.prependListener=="function")return Le.prependListener(le,Xe);!Le._events||!Le._events[le]?Le.on(le,Xe):o(Le._events[le])?Le._events[le].unshift(Xe):Le._events[le]=[Xe,Le._events[le]]}function E(Le,le){n=n||k("./_stream_duplex"),Le=Le||{};var Xe=le instanceof n;this.objectMode=!!Le.objectMode,Xe&&(this.objectMode=this.objectMode||!!Le.readableObjectMode);var pe=Le.highWaterMark,Z=Le.readableHighWaterMark,Y=this.objectMode?16:16*1024;pe||pe===0?this.highWaterMark=pe:Xe&&(Z||Z===0)?this.highWaterMark=Z: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=Le.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Le.encoding&&(x||(x=k("string_decoder/").StringDecoder),this.decoder=new x(Le.encoding),this.encoding=Le.encoding)}function C(Le){if(n=n||k("./_stream_duplex"),!(this instanceof C))return new C(Le);this._readableState=new E(Le,this),this.readable=!0,Le&&(typeof Le.read=="function"&&(this._read=Le.read),typeof Le.destroy=="function"&&(this._destroy=Le.destroy)),e.call(this)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(le){if(!this._readableState)return;this._readableState.destroyed=le}}),C.prototype.destroy=w.destroy,C.prototype._undestroy=w.undestroy,C.prototype._destroy=function(Le,le){this.push(null),le(Le)},C.prototype.push=function(Le,le){var Xe=this._readableState,pe;return Xe.objectMode?pe=!0:typeof Le=="string"&&(le=le||Xe.defaultEncoding,le!==Xe.encoding&&(Le=l.from(Le,le),le=""),pe=!0),I(this,Le,le,!1,pe)},C.prototype.unshift=function(Le){return I(this,Le,null,!0,!1)};function I(Le,le,Xe,pe,Z){var Y=Le._readableState;if(le===null)Y.reading=!1,M(Le,Y);else{var ne;Z||(ne=F(Y,le)),ne?Le.emit("error",ne):Y.objectMode||le&&le.length>0?(typeof le!="string"&&!Y.objectMode&&(0,v.default)(le)!==l.prototype&&(le=s(le)),pe?Y.endEmitted?Le.emit("error",new Error("stream.unshift() after end event")):O(Le,Y,le,!0):Y.ended?Le.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!Xe?(le=Y.decoder.write(le),Y.objectMode||le.length!==0?O(Le,Y,le,!1):H(Le,Y)):O(Le,Y,le,!1))):pe||(Y.reading=!1)}return R(Y)}function O(Le,le,Xe,pe){le.flowing&&le.length===0&&!le.sync?(Le.emit("data",Xe),Le.read(0)):(le.length+=le.objectMode?1:Xe.length,pe?le.buffer.unshift(Xe):le.buffer.push(Xe),le.needReadable&&z(Le)),H(Le,le)}function F(Le,le){var Xe;return!c(le)&&typeof le!="string"&&le!==void 0&&!Le.objectMode&&(Xe=new TypeError("Invalid non-string/buffer chunk")),Xe}function R(Le){return!Le.ended&&(Le.needReadable||Le.length<Le.highWaterMark||Le.length===0)}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(Le){return x||(x=k("string_decoder/").StringDecoder),this._readableState.decoder=new x(Le),this._readableState.encoding=Le,this};var B=8388608;function P(Le){return Le>=B?Le=B:(Le--,Le|=Le>>>1,Le|=Le>>>2,Le|=Le>>>4,Le|=Le>>>8,Le|=Le>>>16,Le++),Le}function X(Le,le){return Le<=0||le.length===0&&le.ended?0:le.objectMode?1:Le!==Le?le.flowing&&le.length?le.buffer.head.data.length:le.length:(Le>le.highWaterMark&&(le.highWaterMark=P(Le)),Le<=le.length?Le:le.ended?le.length:(le.needReadable=!0,0))}C.prototype.read=function(Le){A("read",Le),Le=parseInt(Le,10);var le=this._readableState,Xe=Le;if(Le!==0&&(le.emittedReadable=!1),Le===0&&le.needReadable&&(le.length>=le.highWaterMark||le.ended))return A("read: emitReadable",le.length,le.ended),le.length===0&&le.ended?Ge(this):z(this),null;if(Le=X(Le,le),Le===0&&le.ended)return le.length===0&&Ge(this),null;var pe=le.needReadable;A("need readable",pe),(le.length===0||le.length-Le<le.highWaterMark)&&(pe=!0,A("length less than watermark",pe)),le.ended||le.reading?(pe=!1,A("reading or ended",pe)):pe&&(A("do read"),le.reading=!0,le.sync=!0,le.length===0&&(le.needReadable=!0),this._read(le.highWaterMark),le.sync=!1,le.reading||(Le=X(Xe,le)));var Z;return Le>0?Z=re(Le,le):Z=null,Z===null?(le.needReadable=!0,Le=0):le.length-=Le,le.length===0&&(le.ended||(le.needReadable=!0),Xe!==Le&&le.ended&&Ge(this)),Z!==null&&this.emit("data",Z),Z};function M(Le,le){if(le.ended)return;if(le.decoder){var Xe=le.decoder.end();Xe&&Xe.length&&(le.buffer.push(Xe),le.length+=le.objectMode?1:Xe.length)}le.ended=!0,z(Le)}function z(Le){var le=Le._readableState;le.needReadable=!1,le.emittedReadable||(A("emitReadable",le.flowing),le.emittedReadable=!0,le.sync?u.nextTick(W,Le):W(Le))}function W(Le){A("emit readable"),Le.emit("readable"),se(Le)}function H(Le,le){le.readingMore||(le.readingMore=!0,u.nextTick(V,Le,le))}function V(Le,le){for(var Xe=le.length;!le.reading&&!le.flowing&&!le.ended&&le.length<le.highWaterMark&&!(A("maybeReadMore read 0"),Le.read(0),Xe===le.length);)Xe=le.length;le.readingMore=!1}C.prototype._read=function(Le){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(Le,le){var Xe=this,pe=this._readableState;switch(pe.pipesCount){case 0:pe.pipes=Le;break;case 1:pe.pipes=[pe.pipes,Le];break;default:pe.pipes.push(Le);break}pe.pipesCount+=1,A("pipe count=%d opts=%j",pe.pipesCount,le);var Z=(!le||le.end!==!1)&&Le!==y.stdout&&Le!==y.stderr,Y=Z?ce:tt;pe.endEmitted?u.nextTick(Y):Xe.once("end",Y),Le.on("unpipe",ne);function ne(ke,st){A("onunpipe"),ke===Xe&&(st&&st.hasUnpiped===!1&&(st.hasUnpiped=!0,Ce()))}function ce(){A("onend"),Le.end()}var ye=Q(Xe);Le.on("drain",ye);var Ee=!1;function Ce(){A("cleanup"),Le.removeListener("close",Je),Le.removeListener("finish",lt),Le.removeListener("drain",ye),Le.removeListener("error",Oe),Le.removeListener("unpipe",ne),Xe.removeListener("end",ce),Xe.removeListener("end",tt),Xe.removeListener("data",ge),Ee=!0,pe.awaitDrain&&(!Le._writableState||Le._writableState.needDrain)&&ye()}var ue=!1;Xe.on("data",ge);function ge(ke){A("ondata"),ue=!1;var st=Le.write(ke);st===!1&&!ue&&((pe.pipesCount===1&&pe.pipes===Le||pe.pipesCount>1&&nt(pe.pipes,Le)!==-1)&&!Ee&&(A("false write response, pause",Xe._readableState.awaitDrain),Xe._readableState.awaitDrain++,ue=!0),Xe.pause())}function Oe(ke){A("onerror",ke),tt(),Le.removeListener("error",Oe),a(Le,"error")===0&&Le.emit("error",ke)}_(Le,"error",Oe);function Je(){Le.removeListener("finish",lt),tt()}Le.once("close",Je);function lt(){A("onfinish"),Le.removeListener("close",Je),tt()}Le.once("finish",lt);function tt(){A("unpipe"),Xe.unpipe(Le)}return Le.emit("pipe",Xe),pe.flowing||(A("pipe resume"),Xe.resume()),Le};function Q(Le){return function(){var le=Le._readableState;A("pipeOnDrain",le.awaitDrain),le.awaitDrain&&le.awaitDrain--,le.awaitDrain===0&&a(Le,"data")&&(le.flowing=!0,se(Le))}}C.prototype.unpipe=function(Le){var le=this._readableState,Xe={hasUnpiped:!1};if(le.pipesCount===0)return this;if(le.pipesCount===1)return Le&&Le!==le.pipes?this:(Le||(Le=le.pipes),le.pipes=null,le.pipesCount=0,le.flowing=!1,Le&&Le.emit("unpipe",this,Xe),this);if(!Le){var pe=le.pipes,Z=le.pipesCount;le.pipes=null,le.pipesCount=0,le.flowing=!1;for(var Y=0;Y<Z;Y++)pe[Y].emit("unpipe",this,Xe);return this}var ne=nt(le.pipes,Le);return ne===-1?this:(le.pipes.splice(ne,1),le.pipesCount-=1,le.pipesCount===1&&(le.pipes=le.pipes[0]),Le.emit("unpipe",this,Xe),this)},C.prototype.on=function(Le,le){var Xe=e.prototype.on.call(this,Le,le);if(Le==="data")this._readableState.flowing!==!1&&this.resume();else if(Le==="readable"){var pe=this._readableState;!pe.endEmitted&&!pe.readableListening&&(pe.readableListening=pe.needReadable=!0,pe.emittedReadable=!1,pe.reading?pe.length&&z(this):u.nextTick(G,this))}return Xe},C.prototype.addListener=C.prototype.on;function G(Le){A("readable nexttick read 0"),Le.read(0)}C.prototype.resume=function(){var Le=this._readableState;return Le.flowing||(A("resume"),Le.flowing=!0,ee(this,Le)),this};function ee(Le,le){le.resumeScheduled||(le.resumeScheduled=!0,u.nextTick(q,Le,le))}function q(Le,le){le.reading||(A("resume read 0"),Le.read(0)),le.resumeScheduled=!1,le.awaitDrain=0,Le.emit("resume"),se(Le),le.flowing&&!le.reading&&Le.read(0)}C.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function se(Le){var le=Le._readableState;for(A("flow",le.flowing);le.flowing&&Le.read()!==null;);}C.prototype.wrap=function(Le){var le=this,Xe=this._readableState,pe=!1;Le.on("end",function(){if(A("wrapped end"),Xe.decoder&&!Xe.ended){var ne=Xe.decoder.end();ne&&ne.length&&le.push(ne)}le.push(null)}),Le.on("data",function(ne){if(A("wrapped data"),Xe.decoder&&(ne=Xe.decoder.write(ne)),Xe.objectMode&&ne==null)return;if(!Xe.objectMode&&(!ne||!ne.length))return;var ce=le.push(ne);ce||(pe=!0,Le.pause())});for(var Z in Le)this[Z]===void 0&&typeof Le[Z]=="function"&&(this[Z]=function(ne){return function(){return Le[ne].apply(Le,arguments)}}(Z));for(var Y=0;Y<T.length;Y++)Le.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(ne){A("wrapped _read",ne),pe&&(pe=!1,Le.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=re;function re(Le,le){if(le.length===0)return null;var Xe;return le.objectMode?Xe=le.buffer.shift():!Le||Le>=le.length?(le.decoder?Xe=le.buffer.join(""):le.buffer.length===1?Xe=le.buffer.head.data:Xe=le.buffer.concat(le.length),le.buffer.clear()):Xe=Ae(Le,le.buffer,le.decoder),Xe}function Ae(Le,le,Xe){var pe;return Le<le.head.data.length?(pe=le.head.data.slice(0,Le),le.head.data=le.head.data.slice(Le)):Le===le.head.data.length?pe=le.shift():pe=Xe?Te(Le,le):Re(Le,le),pe}function Te(Le,le){var Xe=le.head,pe=1,Z=Xe.data;for(Le-=Z.length;Xe=Xe.next;){var Y=Xe.data,ne=Le>Y.length?Y.length:Le;if(ne===Y.length?Z+=Y:Z+=Y.slice(0,Le),Le-=ne,Le===0){ne===Y.length?(++pe,Xe.next?le.head=Xe.next:le.head=le.tail=null):(le.head=Xe,Xe.data=Y.slice(ne));break}++pe}return le.length-=pe,Z}function Re(Le,le){var Xe=l.allocUnsafe(Le),pe=le.head,Z=1;for(pe.data.copy(Xe),Le-=pe.data.length;pe=pe.next;){var Y=pe.data,ne=Le>Y.length?Y.length:Le;if(Y.copy(Xe,Xe.length-Le,0,ne),Le-=ne,Le===0){ne===Y.length?(++Z,pe.next?le.head=pe.next:le.head=le.tail=null):(le.head=pe,pe.data=Y.slice(ne));break}++Z}return le.length-=Z,Xe}function Ge(Le){var le=Le._readableState;if(le.length>0)throw new Error('"endReadable()" called on non-empty stream');le.endEmitted||(le.ended=!0,u.nextTick(Ue,le,Le))}function Ue(Le,le){!Le.endEmitted&&Le.length===0&&(Le.endEmitted=!0,le.readable=!1,le.emit("end"))}function nt(Le,le){for(var Xe=0,pe=Le.length;Xe<pe;Xe++)if(Le[Xe]===le)return Xe;return-1}}).call(this,k("_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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(n){return n&&n.__esModule?n:{default:n}}D.exports=d;var v=k("./_stream_duplex"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(d,v);function f(n,t){var a=this._transformState;a.transforming=!1;var e=a.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,t!=null&&this.push(t),e(n);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function d(n){if(!(this instanceof d))return new d(n);v.call(this,n),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,n&&(typeof n.transform=="function"&&(this._transform=n.transform),typeof n.flush=="function"&&(this._flush=n.flush)),this.on("prefinish",u)}function u(){var n=this;typeof this._flush=="function"?this._flush(function(t,a){o(n,t,a)}):o(this,null,null)}d.prototype.push=function(n,t){return this._transformState.needTransform=!1,v.prototype.push.call(this,n,t)},d.prototype._transform=function(n,t,a){throw new Error("_transform() is not implemented")},d.prototype._write=function(n,t,a){var e=this._transformState;if(e.writecb=a,e.writechunk=n,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(n){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(n,t){var a=this;v.prototype._destroy.call(this,n,function(e){t(e),a.emit("close")})};function o(n,t,a){if(t)return n.emit("error",t);if(a!=null&&n.push(a),n._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n._transformState.transforming)throw new Error("Calling transform done when still transforming");return n.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/object/define-property"),v=e(S),m=k("babel-runtime/core-js/symbol/has-instance"),f=e(m),d=k("babel-runtime/core-js/symbol"),u=e(d),o=k("babel-runtime/core-js/object/create"),n=e(o),t=k("babel-runtime/core-js/set-immediate"),a=e(t);function e(Re){return Re&&Re.__esModule?Re:{default:Re}}var l=k("process-nextick-args");D.exports=F;function r(Re,Ge,Ue){this.chunk=Re,this.encoding=Ge,this.callback=Ue,this.next=null}function s(Re){var Ge=this;this.next=null,this.entry=null,this.finish=function(){Te(Ge,Re)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?a.default:l.nextTick,h;F.WritableState=I;var g=(0,n.default)(k("core-util-is"));g.inherits=k("inherits");var A={deprecate:k("util-deprecate")},b=k("./internal/streams/stream"),w=k("safe-buffer").Buffer,x=p.Uint8Array||function(){};function T(Re){return w.from(Re)}function _(Re){return w.isBuffer(Re)||Re instanceof x}var E=k("./internal/streams/destroy");g.inherits(F,b);function C(){}function I(Re,Ge){h=h||k("./_stream_duplex"),Re=Re||{};var Ue=Ge instanceof h;this.objectMode=!!Re.objectMode,Ue&&(this.objectMode=this.objectMode||!!Re.writableObjectMode);var nt=Re.highWaterMark,Le=Re.writableHighWaterMark,le=this.objectMode?16:16*1024;nt||nt===0?this.highWaterMark=nt:Ue&&(Le||Le===0)?this.highWaterMark=Le:this.highWaterMark=le,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 Xe=Re.decodeStrings===!1;this.decodeStrings=!Xe,this.defaultEncoding=Re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pe){H(Ge,pe)},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 s(this)}I.prototype.getBuffer=function(){for(var Ge=this.bufferedRequest,Ue=[];Ge;)Ue.push(Ge),Ge=Ge.next;return Ue},function(){try{Object.defineProperty(I.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}();var O;typeof u.default=="function"&&f.default&&typeof Function.prototype[f.default]=="function"?(O=Function.prototype[f.default],(0,v.default)(F,f.default,{value:function(Ge){return O.call(this,Ge)?!0:this!==F?!1:Ge&&Ge._writableState instanceof I}})):O=function(Ge){return Ge instanceof this};function F(Re){if(h=h||k("./_stream_duplex"),!O.call(F,this)&&!(this instanceof h))return new F(Re);this._writableState=new I(Re,this),this.writable=!0,Re&&(typeof Re.write=="function"&&(this._write=Re.write),typeof Re.writev=="function"&&(this._writev=Re.writev),typeof Re.destroy=="function"&&(this._destroy=Re.destroy),typeof Re.final=="function"&&(this._final=Re.final)),b.call(this)}F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function R(Re,Ge){var Ue=new Error("write after end");Re.emit("error",Ue),l.nextTick(Ge,Ue)}function B(Re,Ge,Ue,nt){var Le=!0,le=!1;return Ue===null?le=new TypeError("May not write null values to stream"):typeof Ue!="string"&&Ue!==void 0&&!Ge.objectMode&&(le=new TypeError("Invalid non-string/buffer chunk")),le&&(Re.emit("error",le),l.nextTick(nt,le),Le=!1),Le}F.prototype.write=function(Re,Ge,Ue){var nt=this._writableState,Le=!1,le=!nt.objectMode&&_(Re);return le&&!w.isBuffer(Re)&&(Re=T(Re)),typeof Ge=="function"&&(Ue=Ge,Ge=null),le?Ge="buffer":Ge||(Ge=nt.defaultEncoding),typeof Ue!="function"&&(Ue=C),nt.ended?R(this,Ue):(le||B(this,nt,Re,Ue))&&(nt.pendingcb++,Le=X(this,nt,le,Re,Ge,Ue)),Le},F.prototype.cork=function(){var Re=this._writableState;Re.corked++},F.prototype.uncork=function(){var Re=this._writableState;Re.corked&&(Re.corked--,!Re.writing&&!Re.corked&&!Re.finished&&!Re.bufferProcessing&&Re.bufferedRequest&&G(this,Re))},F.prototype.setDefaultEncoding=function(Ge){if(typeof Ge=="string"&&(Ge=Ge.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ge+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ge);return this._writableState.defaultEncoding=Ge,this};function P(Re,Ge,Ue){return!Re.objectMode&&Re.decodeStrings!==!1&&typeof Ge=="string"&&(Ge=w.from(Ge,Ue)),Ge}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Re,Ge,Ue,nt,Le,le){if(!Ue){var Xe=P(Ge,nt,Le);nt!==Xe&&(Ue=!0,Le="buffer",nt=Xe)}var pe=Ge.objectMode?1:nt.length;Ge.length+=pe;var Z=Ge.length<Ge.highWaterMark;if(Z||(Ge.needDrain=!0),Ge.writing||Ge.corked){var Y=Ge.lastBufferedRequest;Ge.lastBufferedRequest={chunk:nt,encoding:Le,isBuf:Ue,callback:le,next:null},Y?Y.next=Ge.lastBufferedRequest:Ge.bufferedRequest=Ge.lastBufferedRequest,Ge.bufferedRequestCount+=1}else M(Re,Ge,!1,pe,nt,Le,le);return Z}function M(Re,Ge,Ue,nt,Le,le,Xe){Ge.writelen=nt,Ge.writecb=Xe,Ge.writing=!0,Ge.sync=!0,Ue?Re._writev(Le,Ge.onwrite):Re._write(Le,le,Ge.onwrite),Ge.sync=!1}function z(Re,Ge,Ue,nt,Le){--Ge.pendingcb,Ue?(l.nextTick(Le,nt),l.nextTick(re,Re,Ge),Re._writableState.errorEmitted=!0,Re.emit("error",nt)):(Le(nt),Re._writableState.errorEmitted=!0,Re.emit("error",nt),re(Re,Ge))}function W(Re){Re.writing=!1,Re.writecb=null,Re.length-=Re.writelen,Re.writelen=0}function H(Re,Ge){var Ue=Re._writableState,nt=Ue.sync,Le=Ue.writecb;if(W(Ue),Ge)z(Re,Ue,nt,Ge,Le);else{var le=ee(Ue);!le&&!Ue.corked&&!Ue.bufferProcessing&&Ue.bufferedRequest&&G(Re,Ue),nt?c(V,Re,Ue,le,Le):V(Re,Ue,le,Le)}}function V(Re,Ge,Ue,nt){Ue||Q(Re,Ge),Ge.pendingcb--,nt(),re(Re,Ge)}function Q(Re,Ge){Ge.length===0&&Ge.needDrain&&(Ge.needDrain=!1,Re.emit("drain"))}function G(Re,Ge){Ge.bufferProcessing=!0;var Ue=Ge.bufferedRequest;if(Re._writev&&Ue&&Ue.next){var nt=Ge.bufferedRequestCount,Le=new Array(nt),le=Ge.corkedRequestsFree;le.entry=Ue;for(var Xe=0,pe=!0;Ue;)Le[Xe]=Ue,Ue.isBuf||(pe=!1),Ue=Ue.next,Xe+=1;Le.allBuffers=pe,M(Re,Ge,!0,Ge.length,Le,"",le.finish),Ge.pendingcb++,Ge.lastBufferedRequest=null,le.next?(Ge.corkedRequestsFree=le.next,le.next=null):Ge.corkedRequestsFree=new s(Ge),Ge.bufferedRequestCount=0}else{for(;Ue;){var Z=Ue.chunk,Y=Ue.encoding,ne=Ue.callback,ce=Ge.objectMode?1:Z.length;if(M(Re,Ge,!1,ce,Z,Y,ne),Ue=Ue.next,Ge.bufferedRequestCount--,Ge.writing)break}Ue===null&&(Ge.lastBufferedRequest=null)}Ge.bufferedRequest=Ue,Ge.bufferProcessing=!1}F.prototype._write=function(Re,Ge,Ue){Ue(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(Re,Ge,Ue){var nt=this._writableState;typeof Re=="function"?(Ue=Re,Re=null,Ge=null):typeof Ge=="function"&&(Ue=Ge,Ge=null),Re!=null&&this.write(Re,Ge),nt.corked&&(nt.corked=1,this.uncork()),!nt.ending&&!nt.finished&&Ae(this,nt,Ue)};function ee(Re){return Re.ending&&Re.length===0&&Re.bufferedRequest===null&&!Re.finished&&!Re.writing}function q(Re,Ge){Re._final(function(Ue){Ge.pendingcb--,Ue&&Re.emit("error",Ue),Ge.prefinished=!0,Re.emit("prefinish"),re(Re,Ge)})}function se(Re,Ge){!Ge.prefinished&&!Ge.finalCalled&&(typeof Re._final=="function"?(Ge.pendingcb++,Ge.finalCalled=!0,l.nextTick(q,Re,Ge)):(Ge.prefinished=!0,Re.emit("prefinish")))}function re(Re,Ge){var Ue=ee(Ge);return Ue&&(se(Re,Ge),Ge.pendingcb===0&&(Ge.finished=!0,Re.emit("finish"))),Ue}function Ae(Re,Ge,Ue){Ge.ending=!0,re(Re,Ge),Ue&&(Ge.finished?l.nextTick(Ue):Re.once("finish",Ue)),Ge.ended=!0,Re.writable=!1}function Te(Re,Ge,Ue){var nt=Re.entry;for(Re.entry=null;nt;){var Le=nt.callback;Ge.pendingcb--,Le(Ue),nt=nt.next}Ge.corkedRequestsFree?Ge.corkedRequestsFree.next=Re:Ge.corkedRequestsFree=Re}Object.defineProperty(F.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ge){if(!this._writableState)return;this._writableState.destroyed=Ge}}),F.prototype.destroy=E.destroy,F.prototype._undestroy=E.undestroy,F.prototype._destroy=function(Re,Ge){this.end(),Ge(Re)}}).call(this,k("_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(k,D,i){"use strict";function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}var p=k("safe-buffer").Buffer,S=k("util");function v(m,f,d){m.copy(f,d)}D.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,o=""+u.data;u=u.next;)o+=d+u.data;return o},m.prototype.concat=function(d){if(this.length===0)return p.alloc(0);if(this.length===1)return this.head.data;for(var u=p.allocUnsafe(d>>>0),o=this.head,n=0;o;)v(o.data,u,n),n+=o.data.length,o=o.next;return u},m}(),S&&S.inspect&&S.inspect.custom&&(D.exports.prototype[S.inspect.custom]=function(){var m=S.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(k,D,i){"use strict";var y=k("process-nextick-args");function p(m,f){var d=this,u=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return u||o?(f?f(m):m&&(!this._writableState||!this._writableState.errorEmitted)&&y.nextTick(v,this,m),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(m||null,function(n){!f&&n?(y.nextTick(v,d,n),d._writableState&&(d._writableState.errorEmitted=!0)):f&&f(n)}),this)}function S(){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 v(m,f){m.emit("error",f)}D.exports={destroy:p,undestroy:S}},{"process-nextick-args":207}],221:[function(k,D,i){"use strict";D.exports=k("events").EventEmitter},{events:192}],222:[function(k,D,i){D.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,D,i){i=D.exports=k("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=k("./lib/_stream_writable.js"),i.Duplex=k("./lib/_stream_duplex.js"),i.Transform=k("./lib/_stream_transform.js"),i.PassThrough=k("./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(k,D,i){D.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,D,i){D.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,D,i){var y=function(){return this}()||Function("return this")(),p=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,S=p&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,D.exports=k("./runtime"),p)y.regeneratorRuntime=S;else try{delete y.regeneratorRuntime}catch(v){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,D,i){!function(y){"use strict";var p=Object.prototype,S=p.hasOwnProperty,v,m=typeof Symbol=="function"?Symbol:{},f=m.iterator||"@@iterator",d=m.asyncIterator||"@@asyncIterator",u=m.toStringTag||"@@toStringTag",o=typeof D=="object",n=y.regeneratorRuntime;if(n){o&&(D.exports=n);return}n=y.regeneratorRuntime=o?D.exports:{};function t(X,M,z,W){var H=M&&M.prototype instanceof h?M:h,V=Object.create(H.prototype),Q=new R(W||[]);return V._invoke=C(X,z,Q),V}n.wrap=t;function a(X,M,z){try{return{type:"normal",arg:X.call(M,z)}}catch(W){return{type:"throw",arg:W}}}var e="suspendedStart",l="suspendedYield",r="executing",s="completed",c={};function h(){}function g(){}function A(){}var b={};b[f]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(B([])));x&&x!==p&&S.call(x,f)&&(b=x);var T=A.prototype=h.prototype=Object.create(b);g.prototype=T.constructor=A,A.constructor=g,A[u]=g.displayName="GeneratorFunction";function _(X){["next","throw","return"].forEach(function(M){X[M]=function(z){return this._invoke(M,z)}})}n.isGeneratorFunction=function(X){var M=typeof X=="function"&&X.constructor;return M?M===g||(M.displayName||M.name)==="GeneratorFunction":!1},n.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,A):(X.__proto__=A,u in X||(X[u]="GeneratorFunction")),X.prototype=Object.create(T),X},n.awrap=function(X){return{__await:X}};function E(X){function M(H,V,Q,G){var ee=a(X[H],X,V);if(ee.type==="throw")G(ee.arg);else{var q=ee.arg,se=q.value;return se&&typeof se=="object"&&S.call(se,"__await")?Promise.resolve(se.__await).then(function(re){M("next",re,Q,G)},function(re){M("throw",re,Q,G)}):Promise.resolve(se).then(function(re){q.value=re,Q(q)},G)}}var z;function W(H,V){function Q(){return new Promise(function(G,ee){M(H,V,G,ee)})}return z=z?z.then(Q,Q):Q()}this._invoke=W}_(E.prototype),E.prototype[d]=function(){return this},n.AsyncIterator=E,n.async=function(X,M,z,W){var H=new E(t(X,M,z,W));return n.isGeneratorFunction(M)?H:H.next().then(function(V){return V.done?V.value:H.next()})};function C(X,M,z){var W=e;return function(V,Q){if(W===r)throw new Error("Generator is already running");if(W===s){if(V==="throw")throw Q;return P()}for(z.method=V,z.arg=Q;;){var G=z.delegate;if(G){var ee=I(G,z);if(ee){if(ee===c)continue;return ee}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(W===e)throw W=s,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);W=r;var q=a(X,M,z);if(q.type==="normal"){if(W=z.done?s:l,q.arg===c)continue;return{value:q.arg,done:z.done}}else q.type==="throw"&&(W=s,z.method="throw",z.arg=q.arg)}}}function I(X,M){var z=X.iterator[M.method];if(z===v){if(M.delegate=null,M.method==="throw"){if(X.iterator.return&&(M.method="return",M.arg=v,I(X,M),M.method==="throw"))return c;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var W=a(z,X.iterator,M.arg);if(W.type==="throw")return M.method="throw",M.arg=W.arg,M.delegate=null,c;var H=W.arg;if(!H)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,c;if(H.done)M[X.resultName]=H.value,M.next=X.nextLoc,M.method!=="return"&&(M.method="next",M.arg=v);else return H;return M.delegate=null,c}_(T),T[u]="Generator",T[f]=function(){return this},T.toString=function(){return"[object Generator]"};function O(X){var M={tryLoc:X[0]};1 in X&&(M.catchLoc=X[1]),2 in X&&(M.finallyLoc=X[2],M.afterLoc=X[3]),this.tryEntries.push(M)}function F(X){var M=X.completion||{};M.type="normal",delete M.arg,X.completion=M}function R(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(O,this),this.reset(!0)}n.keys=function(X){var M=[];for(var z in X)M.push(z);return M.reverse(),function W(){for(;M.length;){var H=M.pop();if(H in X)return W.value=H,W.done=!1,W}return W.done=!0,W}};function B(X){if(X){var M=X[f];if(M)return M.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var z=-1,W=function H(){for(;++z<X.length;)if(S.call(X,z))return H.value=X[z],H.done=!1,H;return H.value=v,H.done=!0,H};return W.next=W}}return{next:P}}n.values=B;function P(){return{value:v,done:!0}}R.prototype={constructor:R,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(F),!M)for(var z in this)z.charAt(0)==="t"&&S.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=v)},stop:function(){this.done=!0;var M=this.tryEntries[0],z=M.completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var z=this;function W(q,se){return Q.type="throw",Q.arg=M,z.next=q,se&&(z.method="next",z.arg=v),!!se}for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H],Q=V.completion;if(V.tryLoc==="root")return W("end");if(V.tryLoc<=this.prev){var G=S.call(V,"catchLoc"),ee=S.call(V,"finallyLoc");if(G&&ee){if(this.prev<V.catchLoc)return W(V.catchLoc,!0);if(this.prev<V.finallyLoc)return W(V.finallyLoc)}else if(G){if(this.prev<V.catchLoc)return W(V.catchLoc,!0)}else if(ee){if(this.prev<V.finallyLoc)return W(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(M,z){for(var W=this.tryEntries.length-1;W>=0;--W){var H=this.tryEntries[W];if(H.tryLoc<=this.prev&&S.call(H,"finallyLoc")&&this.prev<H.finallyLoc){var V=H;break}}V&&(M==="break"||M==="continue")&&V.tryLoc<=z&&z<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=M,Q.arg=z,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(M,z){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&z&&(this.next=z),c},finish:function(M){for(var z=this.tryEntries.length-1;z>=0;--z){var W=this.tryEntries[z];if(W.finallyLoc===M)return this.complete(W.completion,W.afterLoc),F(W),c}},catch:function(M){for(var z=this.tryEntries.length-1;z>=0;--z){var W=this.tryEntries[z];if(W.tryLoc===M){var H=W.completion;if(H.type==="throw"){var V=H.arg;F(W)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(M,z,W){return this.delegate={iterator:B(M),resultName:z,nextLoc:W},this.method==="next"&&(this.arg=v),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,D,i){var y=k("buffer"),p=y.Buffer;function S(m,f){for(var d in m)f[d]=m[d]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?D.exports=y:(S(y,i),i.Buffer=v);function v(m,f,d){return p(m,f,d)}S(p,v),v.from=function(m,f,d){if(typeof m=="number")throw new TypeError("Argument must not be a number");return p(m,f,d)},v.alloc=function(m,f,d){if(typeof m!="number")throw new TypeError("Argument must be a number");var u=p(m);return f!==void 0?typeof d=="string"?u.fill(f,d):u.fill(f):u.fill(0),u},v.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return p(m)},v.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(m)}},{buffer:73}],229:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/string/from-code-point"),S=l(p),v=k("babel-runtime/core-js/json/stringify"),m=l(v),f=k("babel-runtime/helpers/typeof"),d=l(f),u=k("babel-runtime/core-js/object/define-property"),o=l(u),n=k("babel-runtime/core-js/object/keys"),t=l(n),a=k("babel-runtime/core-js/object/create"),e=l(a);function l(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Y,ne){return new c(Y,ne)},r.SAXParser=c,r.SAXStream=T,r.createStream=x,r.MAX_BUFFER_LENGTH=64*1024;var s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Y,ne){if(!(this instanceof c))return new c(Y,ne);var ce=this;g(ce),ce.q=ce.c="",ce.bufferCheckPosition=r.MAX_BUFFER_LENGTH,ce.opt=ne||{},ce.opt.lowercase=ce.opt.lowercase||ce.opt.lowercasetags,ce.looseCase=ce.opt.lowercase?"toLowerCase":"toUpperCase",ce.tags=[],ce.closed=ce.closedRoot=ce.sawRoot=!1,ce.tag=ce.error=null,ce.strict=!!Y,ce.noscript=!!(Y||ce.opt.noscript),ce.state=V.BEGIN,ce.strictEntities=ce.opt.strictEntities,ce.ENTITIES=ce.strictEntities?(0,e.default)(r.XML_ENTITIES):(0,e.default)(r.ENTITIES),ce.attribList=[],ce.opt.xmlns&&(ce.ns=(0,e.default)(O)),ce.trackPosition=ce.opt.position!==!1,ce.trackPosition&&(ce.position=ce.line=ce.column=0),G(ce,"onready")}e.default||(Object.create=function(Y){function ne(){}ne.prototype=Y;var ce=new ne;return ce}),t.default||(Object.keys=function(Y){var ne=[];for(var ce in Y)Y.hasOwnProperty(ce)&&ne.push(ce);return ne});function h(Y){for(var ne=Math.max(r.MAX_BUFFER_LENGTH,10),ce=0,ye=0,Ee=s.length;ye<Ee;ye++){var Ce=Y[s[ye]].length;if(Ce>ne)switch(s[ye]){case"textNode":q(Y);break;case"cdata":ee(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":ee(Y,"onscript",Y.script),Y.script="";break;default:re(Y,"Max buffer length exceeded: "+s[ye])}ce=Math.max(ce,Ce)}var ue=r.MAX_BUFFER_LENGTH-ce;Y.bufferCheckPosition=ue+Y.position}function g(Y){for(var ne=0,ce=s.length;ne<ce;ne++)Y[s[ne]]=""}function A(Y){q(Y),Y.cdata!==""&&(ee(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(ee(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){Ae(this)},write:Z,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var b;try{b=k("stream").Stream}catch(Y){b=function(){}}var w=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function x(Y,ne){return new T(Y,ne)}function T(Y,ne){if(!(this instanceof T))return new T(Y,ne);b.apply(this),this._parser=new c(Y,ne),this.writable=!0,this.readable=!0;var ce=this;this._parser.onend=function(){ce.emit("end")},this._parser.onerror=function(ye){ce.emit("error",ye),ce._parser.error=null},this._decoder=null,w.forEach(function(ye){(0,o.default)(ce,"on"+ye,{get:function(){return ce._parser["on"+ye]},set:function(Ce){if(!Ce)return ce.removeAllListeners(ye),ce._parser["on"+ye]=Ce,Ce;ce.on(ye,Ce)},enumerable:!0,configurable:!1})})}T.prototype=(0,e.default)(b.prototype,{constructor:{value:T}}),T.prototype.write=function(Y){if(typeof y=="function"&&typeof y.isBuffer=="function"&&y.isBuffer(Y)){if(!this._decoder){var ne=k("string_decoder").StringDecoder;this._decoder=new ne("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},T.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},T.prototype.on=function(Y,ne){var ce=this;return!ce._parser["on"+Y]&&w.indexOf(Y)!==-1&&(ce._parser["on"+Y]=function(){var ye=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ye.splice(0,0,Y),ce.emit.apply(ce,ye)}),b.prototype.on.call(ce,Y,ne)};var _="[CDATA[",E="DOCTYPE",C="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",O={xml:C,xmlns:I},F=/[:_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]/,R=/[:_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-]/,B=/[#:_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 M(Y){return Y==='"'||Y==="'"}function z(Y){return Y===">"||X(Y)}function W(Y,ne){return Y.test(ne)}function H(Y,ne){return!W(Y,ne)}var V=0;r.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++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.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)(r.ENTITIES).forEach(function(Y){var ne=r.ENTITIES[Y],ce=typeof ne=="number"?String.fromCharCode(ne):ne;r.ENTITIES[Y]=ce});for(var Q in r.STATE)r.STATE[r.STATE[Q]]=Q;V=r.STATE;function G(Y,ne,ce){Y[ne]&&Y[ne](ce)}function ee(Y,ne,ce){Y.textNode&&q(Y),G(Y,ne,ce)}function q(Y){Y.textNode=se(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function se(Y,ne){return Y.trim&&(ne=ne.trim()),Y.normalize&&(ne=ne.replace(/\s+/g," ")),ne}function re(Y,ne){return q(Y),Y.trackPosition&&(ne+=`
Line: `+Y.line+`
Column: `+Y.column+`
Char: `+Y.c),ne=new Error(ne),Y.error=ne,G(Y,"onerror",ne),Y}function Ae(Y){return Y.sawRoot&&!Y.closedRoot&&Te(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&re(Y,"Unexpected end"),q(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function Te(Y,ne){if((typeof Y=="undefined"?"undefined":(0,d.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&re(Y,ne)}function Re(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var ne=Y.tags[Y.tags.length-1]||Y,ce=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(ce.ns=ne.ns),Y.attribList.length=0,ee(Y,"onopentagstart",ce)}function Ge(Y,ne){var ce=Y.indexOf(":"),ye=ce<0?["",Y]:Y.split(":"),Ee=ye[0],Ce=ye[1];return ne&&Y==="xmlns"&&(Ee="xmlns",Ce=""),{prefix:Ee,local:Ce}}function Ue(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 ne=Ge(Y.attribName,!0),ce=ne.prefix,ye=ne.local;if(ce==="xmlns")if(ye==="xml"&&Y.attribValue!==C)Te(Y,"xml: prefix must be bound to "+C+`
Actual: `+Y.attribValue);else if(ye==="xmlns"&&Y.attribValue!==I)Te(Y,"xmlns: prefix must be bound to "+I+`
Actual: `+Y.attribValue);else{var Ee=Y.tag,Ce=Y.tags[Y.tags.length-1]||Y;Ee.ns===Ce.ns&&(Ee.ns=(0,e.default)(Ce.ns)),Ee.ns[ye]=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 nt(Y,ne){if(Y.opt.xmlns){var ce=Y.tag,ye=Ge(Y.tagName);ce.prefix=ye.prefix,ce.local=ye.local,ce.uri=ce.ns[ye.prefix]||"",ce.prefix&&!ce.uri&&(Te(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),ce.uri=ye.prefix);var Ee=Y.tags[Y.tags.length-1]||Y;ce.ns&&Ee.ns!==ce.ns&&(0,t.default)(ce.ns).forEach(function(Ot){ee(Y,"onopennamespace",{prefix:Ot,uri:ce.ns[Ot]})});for(var Ce=0,ue=Y.attribList.length;Ce<ue;Ce++){var ge=Y.attribList[Ce],Oe=ge[0],Je=ge[1],lt=Ge(Oe,!0),tt=lt.prefix,ke=lt.local,st=tt===""?"":ce.ns[tt]||"",Ve={name:Oe,value:Je,prefix:tt,local:ke,uri:st};tt&&tt!=="xmlns"&&!st&&(Te(Y,"Unbound namespace prefix: "+(0,m.default)(tt)),Ve.uri=tt),Y.tag.attributes[Oe]=Ve,ee(Y,"onattribute",Ve)}Y.attribList.length=0}Y.tag.isSelfClosing=!!ne,Y.sawRoot=!0,Y.tags.push(Y.tag),ee(Y,"onopentag",Y.tag),ne||(!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 Le(Y){if(!Y.tagName){Te(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 ne=Y.tags.length,ce=Y.tagName;Y.strict||(ce=ce[Y.looseCase]());for(var ye=ce;ne--;){var Ee=Y.tags[ne];if(Ee.name!==ye)Te(Y,"Unexpected close tag");else break}if(ne<0){Te(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=ce;for(var Ce=Y.tags.length;Ce-- >ne;){var ue=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,ee(Y,"onclosetag",Y.tagName);var ge={};for(var Oe in ue.ns)ge[Oe]=ue.ns[Oe];var Je=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&ue.ns!==Je.ns&&(0,t.default)(ue.ns).forEach(function(lt){var tt=ue.ns[lt];ee(Y,"onclosenamespace",{prefix:lt,uri:tt})})}ne===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function le(Y){var ne=Y.entity,ce=ne.toLowerCase(),ye,Ee="";return Y.ENTITIES[ne]?Y.ENTITIES[ne]:Y.ENTITIES[ce]?Y.ENTITIES[ce]:(ne=ce,ne.charAt(0)==="#"&&(ne.charAt(1)==="x"?(ne=ne.slice(2),ye=parseInt(ne,16),Ee=ye.toString(16)):(ne=ne.slice(1),ye=parseInt(ne,10),Ee=ye.toString(10))),ne=ne.replace(/^0+/,""),isNaN(ye)||Ee.toLowerCase()!==ne?(Te(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,S.default)(ye))}function Xe(Y,ne){ne==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X(ne)||(Te(Y,"Non-whitespace before first tag."),Y.textNode=ne,Y.state=V.TEXT)}function pe(Y,ne){var ce="";return ne<Y.length&&(ce=Y.charAt(ne)),ce}function Z(Y){var ne=this;if(this.error)throw this.error;if(ne.closed)return re(ne,"Cannot write after close. Assign an onready handler.");if(Y===null)return Ae(ne);(typeof Y=="undefined"?"undefined":(0,d.default)(Y))==="object"&&(Y=Y.toString());for(var ce=0,ye="";!(ye=pe(Y,ce++),ne.c=ye,!ye);){ne.trackPosition&&(ne.position++,ye===`
`?(ne.line++,ne.column=0):ne.column++);switch(ne.state){case V.BEGIN:if(ne.state=V.BEGIN_WHITESPACE,ye==="\uFEFF")continue;Xe(ne,ye);continue;case V.BEGIN_WHITESPACE:Xe(ne,ye);continue;case V.TEXT:if(ne.sawRoot&&!ne.closedRoot){for(var Ee=ce-1;ye&&ye!=="<"&&ye!=="&";)ye=pe(Y,ce++),ye&&ne.trackPosition&&(ne.position++,ye===`
`?(ne.line++,ne.column=0):ne.column++);ne.textNode+=Y.substring(Ee,ce-1)}ye==="<"&&!(ne.sawRoot&&ne.closedRoot&&!ne.strict)?(ne.state=V.OPEN_WAKA,ne.startTagPosition=ne.position):(!X(ye)&&(!ne.sawRoot||ne.closedRoot)&&Te(ne,"Text data outside of root node."),ye==="&"?ne.state=V.TEXT_ENTITY:ne.textNode+=ye);continue;case V.SCRIPT:ye==="<"?ne.state=V.SCRIPT_ENDING:ne.script+=ye;continue;case V.SCRIPT_ENDING:ye==="/"?ne.state=V.CLOSE_TAG:(ne.script+="<"+ye,ne.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(ye==="!")ne.state=V.SGML_DECL,ne.sgmlDecl="";else if(!X(ye))if(W(F,ye))ne.state=V.OPEN_TAG,ne.tagName=ye;else if(ye==="/")ne.state=V.CLOSE_TAG,ne.tagName="";else if(ye==="?")ne.state=V.PROC_INST,ne.procInstName=ne.procInstBody="";else{if(Te(ne,"Unencoded <"),ne.startTagPosition+1<ne.position){var Ce=ne.position-ne.startTagPosition;ye=new Array(Ce).join(" ")+ye}ne.textNode+="<"+ye,ne.state=V.TEXT}continue;case V.SGML_DECL:(ne.sgmlDecl+ye).toUpperCase()===_?(ee(ne,"onopencdata"),ne.state=V.CDATA,ne.sgmlDecl="",ne.cdata=""):ne.sgmlDecl+ye==="--"?(ne.state=V.COMMENT,ne.comment="",ne.sgmlDecl=""):(ne.sgmlDecl+ye).toUpperCase()===E?(ne.state=V.DOCTYPE,(ne.doctype||ne.sawRoot)&&Te(ne,"Inappropriately located doctype declaration"),ne.doctype="",ne.sgmlDecl=""):ye===">"?(ee(ne,"onsgmldeclaration",ne.sgmlDecl),ne.sgmlDecl="",ne.state=V.TEXT):(M(ye)&&(ne.state=V.SGML_DECL_QUOTED),ne.sgmlDecl+=ye);continue;case V.SGML_DECL_QUOTED:ye===ne.q&&(ne.state=V.SGML_DECL,ne.q=""),ne.sgmlDecl+=ye;continue;case V.DOCTYPE:ye===">"?(ne.state=V.TEXT,ee(ne,"ondoctype",ne.doctype),ne.doctype=!0):(ne.doctype+=ye,ye==="["?ne.state=V.DOCTYPE_DTD:M(ye)&&(ne.state=V.DOCTYPE_QUOTED,ne.q=ye));continue;case V.DOCTYPE_QUOTED:ne.doctype+=ye,ye===ne.q&&(ne.q="",ne.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:ne.doctype+=ye,ye==="]"?ne.state=V.DOCTYPE:M(ye)&&(ne.state=V.DOCTYPE_DTD_QUOTED,ne.q=ye);continue;case V.DOCTYPE_DTD_QUOTED:ne.doctype+=ye,ye===ne.q&&(ne.state=V.DOCTYPE_DTD,ne.q="");continue;case V.COMMENT:ye==="-"?ne.state=V.COMMENT_ENDING:ne.comment+=ye;continue;case V.COMMENT_ENDING:ye==="-"?(ne.state=V.COMMENT_ENDED,ne.comment=se(ne.opt,ne.comment),ne.comment&&ee(ne,"oncomment",ne.comment),ne.comment=""):(ne.comment+="-"+ye,ne.state=V.COMMENT);continue;case V.COMMENT_ENDED:ye!==">"?(Te(ne,"Malformed comment"),ne.comment+="--"+ye,ne.state=V.COMMENT):ne.state=V.TEXT;continue;case V.CDATA:ye==="]"?ne.state=V.CDATA_ENDING:ne.cdata+=ye;continue;case V.CDATA_ENDING:ye==="]"?ne.state=V.CDATA_ENDING_2:(ne.cdata+="]"+ye,ne.state=V.CDATA);continue;case V.CDATA_ENDING_2:ye===">"?(ne.cdata&&ee(ne,"oncdata",ne.cdata),ee(ne,"onclosecdata"),ne.cdata="",ne.state=V.TEXT):ye==="]"?ne.cdata+="]":(ne.cdata+="]]"+ye,ne.state=V.CDATA);continue;case V.PROC_INST:ye==="?"?ne.state=V.PROC_INST_ENDING:X(ye)?ne.state=V.PROC_INST_BODY:ne.procInstName+=ye;continue;case V.PROC_INST_BODY:if(!ne.procInstBody&&X(ye))continue;ye==="?"?ne.state=V.PROC_INST_ENDING:ne.procInstBody+=ye;continue;case V.PROC_INST_ENDING:ye===">"?(ee(ne,"onprocessinginstruction",{name:ne.procInstName,body:ne.procInstBody}),ne.procInstName=ne.procInstBody="",ne.state=V.TEXT):(ne.procInstBody+="?"+ye,ne.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:W(R,ye)?ne.tagName+=ye:(Re(ne),ye===">"?nt(ne):ye==="/"?ne.state=V.OPEN_TAG_SLASH:(X(ye)||Te(ne,"Invalid character in tag name"),ne.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:ye===">"?(nt(ne,!0),Le(ne)):(Te(ne,"Forward-slash in opening tag not followed by >"),ne.state=V.ATTRIB);continue;case V.ATTRIB:if(X(ye))continue;ye===">"?nt(ne):ye==="/"?ne.state=V.OPEN_TAG_SLASH:W(F,ye)?(ne.attribName=ye,ne.attribValue="",ne.state=V.ATTRIB_NAME):Te(ne,"Invalid attribute name");continue;case V.ATTRIB_NAME:ye==="="?ne.state=V.ATTRIB_VALUE:ye===">"?(Te(ne,"Attribute without value"),ne.attribValue=ne.attribName,Ue(ne),nt(ne)):X(ye)?ne.state=V.ATTRIB_NAME_SAW_WHITE:W(R,ye)?ne.attribName+=ye:Te(ne,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(ye==="=")ne.state=V.ATTRIB_VALUE;else{if(X(ye))continue;Te(ne,"Attribute without value"),ne.tag.attributes[ne.attribName]="",ne.attribValue="",ee(ne,"onattribute",{name:ne.attribName,value:""}),ne.attribName="",ye===">"?nt(ne):W(F,ye)?(ne.attribName=ye,ne.state=V.ATTRIB_NAME):(Te(ne,"Invalid attribute name"),ne.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(ye))continue;M(ye)?(ne.q=ye,ne.state=V.ATTRIB_VALUE_QUOTED):(Te(ne,"Unquoted attribute value"),ne.state=V.ATTRIB_VALUE_UNQUOTED,ne.attribValue=ye);continue;case V.ATTRIB_VALUE_QUOTED:if(ye!==ne.q){ye==="&"?ne.state=V.ATTRIB_VALUE_ENTITY_Q:ne.attribValue+=ye;continue}Ue(ne),ne.q="",ne.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(ye)?ne.state=V.ATTRIB:ye===">"?nt(ne):ye==="/"?ne.state=V.OPEN_TAG_SLASH:W(F,ye)?(Te(ne,"No whitespace between attributes"),ne.attribName=ye,ne.attribValue="",ne.state=V.ATTRIB_NAME):Te(ne,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!z(ye)){ye==="&"?ne.state=V.ATTRIB_VALUE_ENTITY_U:ne.attribValue+=ye;continue}Ue(ne),ye===">"?nt(ne):ne.state=V.ATTRIB;continue;case V.CLOSE_TAG:if(ne.tagName)ye===">"?Le(ne):W(R,ye)?ne.tagName+=ye:ne.script?(ne.script+="</"+ne.tagName,ne.tagName="",ne.state=V.SCRIPT):(X(ye)||Te(ne,"Invalid tagname in closing tag"),ne.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(ye))continue;H(F,ye)?ne.script?(ne.script+="</"+ye,ne.state=V.SCRIPT):Te(ne,"Invalid tagname in closing tag."):ne.tagName=ye}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(ye))continue;ye===">"?Le(ne):Te(ne,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var ue,ge;switch(ne.state){case V.TEXT_ENTITY:ue=V.TEXT,ge="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:ue=V.ATTRIB_VALUE_QUOTED,ge="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:ue=V.ATTRIB_VALUE_UNQUOTED,ge="attribValue";break}ye===";"?(ne[ge]+=le(ne),ne.entity="",ne.state=ue):W(ne.entity.length?P:B,ye)?ne.entity+=ye:(Te(ne,"Invalid character in entity name"),ne[ge]+="&"+ne.entity+ye,ne.entity="",ne.state=ue);continue;default:throw new Error(ne,"Unknown state: "+ne.state)}}return ne.position>=ne.bufferCheckPosition&&h(ne),ne}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */S.default||function(){var Y=String.fromCharCode,ne=Math.floor,ce=function(){var Ee=16384,Ce=[],ue,ge,Oe=-1,Je=arguments.length;if(!Je)return"";for(var lt="";++Oe<Je;){var tt=Number(arguments[Oe]);if(!isFinite(tt)||tt<0||tt>1114111||ne(tt)!==tt)throw RangeError("Invalid code point: "+tt);tt<=65535?Ce.push(tt):(tt-=65536,ue=(tt>>10)+55296,ge=tt%1024+56320,Ce.push(ue,ge)),(Oe+1===Je||Ce.length>Ee)&&(lt+=Y.apply(null,Ce),Ce.length=0)}return lt};o.default?Object.defineProperty(String,"fromCodePoint",{value:ce,configurable:!0,writable:!0}):String.fromCodePoint=ce}()})(typeof i=="undefined"?(void 0).sax={}:i)}).call(this,k("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(k,D,i){D.exports=S;var y=k("events").EventEmitter,p=k("inherits");p(S,y),S.Readable=k("readable-stream/readable.js"),S.Writable=k("readable-stream/writable.js"),S.Duplex=k("readable-stream/duplex.js"),S.Transform=k("readable-stream/transform.js"),S.PassThrough=k("readable-stream/passthrough.js"),S.Stream=S;function S(){y.call(this)}S.prototype.pipe=function(v,m){var f=this;function d(l){v.writable&&(v.write(l)===!1&&f.pause&&f.pause())}f.on("data",d);function u(){f.readable&&f.resume&&f.resume()}v.on("drain",u),!v._isStdio&&(!m||m.end!==!1)&&(f.on("end",n),f.on("close",t));var o=!1;function n(){if(o)return;o=!0,v.end()}function t(){if(o)return;o=!0,typeof v.destroy=="function"&&v.destroy()}function a(l){if(e(),y.listenerCount(this,"error")===0)throw l}f.on("error",a),v.on("error",a);function e(){f.removeListener("data",d),v.removeListener("drain",u),f.removeListener("end",n),f.removeListener("close",t),f.removeListener("error",a),v.removeListener("error",a),f.removeListener("end",e),f.removeListener("close",e),v.removeListener("close",e)}return f.on("end",e),f.on("close",e),v.on("close",e),v.emit("pipe",f),v}},{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(k,D,i){(function(y){var p=k("./lib/request"),S=k("./lib/response"),v=k("xtend"),m=k("builtin-status-codes"),f=k("url"),d=i;d.request=function(u,o){typeof u=="string"?u=f.parse(u):u=v(u);var n=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=u.protocol||n,a=u.hostname||u.host,e=u.port,l=u.path||"/";a&&a.indexOf(":")!==-1&&(a="["+a+"]"),u.url=(a?t+"//"+a:"")+(e?":"+e:"")+l,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var r=new p(u);return o&&r.on("response",o),r},d.get=function(o,n){var t=d.request(o,n);return t.end(),t},d.ClientRequest=p,d.IncomingMessage=S.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(k,D,i){(function(y){"use strict";i.fetch=d(y.fetch)&&d(y.ReadableStream),i.writableStream=d(y.WritableStream),i.abortController=d(y.AbortController),i.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),i.blobConstructor=!0}catch(u){}var p;function S(){if(p!==void 0)return p;if(y.XMLHttpRequest){p=new y.XMLHttpRequest;try{p.open("GET",y.XDomainRequest?"/":"https://example.com")}catch(u){p=null}}else p=null;return p}function v(u){var o=S();if(!o)return!1;try{return o.responseType=u,o.responseType===u}catch(n){}return!1}var m=typeof y.ArrayBuffer!="undefined",f=m&&d(y.ArrayBuffer.prototype.slice);i.arraybuffer=i.fetch||m&&v("arraybuffer"),i.msstream=!i.fetch&&f&&v("ms-stream"),i.mozchunkedarraybuffer=!i.fetch&&m&&v("moz-chunked-arraybuffer"),i.overrideMimeType=i.fetch||(S()?d(S().overrideMimeType):!1),i.vbArray=d(y.VBArray);function d(u){return typeof u=="function"}p=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,D,i){(function(y,p,S){"use strict";var v=k("babel-runtime/core-js/object/keys"),m=f(v);function f(h){return h&&h.__esModule?h:{default:h}}var d=k("./capability"),u=k("inherits"),o=k("./response"),n=k("readable-stream"),t=k("to-arraybuffer"),a=o.IncomingMessage,e=o.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 r=D.exports=function(h){var g=this;n.Writable.call(g),g._opts=h,g._body=[],g._headers={},h.auth&&g.setHeader("Authorization","Basic "+new S(h.auth).toString("base64")),(0,m.default)(h.headers).forEach(function(w){g.setHeader(w,h.headers[w])});var A,b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!d.abortController)b=!1,A=!0;else if(h.mode==="prefer-streaming")A=!1;else if(h.mode==="allow-wrong-content-type")A=!d.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")A=!0;else throw new Error("Invalid value for opts.mode");g._mode=l(A,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};u(r,n.Writable),r.prototype.setHeader=function(h,g){var A=this,b=h.toLowerCase();if(c.indexOf(b)!==-1)return;A._headers[b]={name:h,value:g}},r.prototype.getHeader=function(h){var g=this._headers[h.toLowerCase()];return g?g.value:null},r.prototype.removeHeader=function(h){var g=this;delete g._headers[h.toLowerCase()]},r.prototype._onFinish=function(){var h=this;if(h._destroyed)return;var g=h._opts,A=h._headers,b=null;g.method!=="GET"&&g.method!=="HEAD"&&(d.arraybuffer?b=t(S.concat(h._body)):d.blobConstructor?b=new p.Blob(h._body.map(function(C){return t(C)}),{type:(A["content-type"]||{}).value||""}):b=S.concat(h._body).toString());var w=[];if((0,m.default)(A).forEach(function(C){var I=A[C].name,O=A[C].value;Array.isArray(O)?O.forEach(function(F){w.push([I,F])}):w.push([I,O])}),h._mode==="fetch"){var x=null,T=null;if(d.abortController){var _=new AbortController;x=_.signal,h._fetchAbortController=_,"requestTimeout"in g&&g.requestTimeout!==0&&(h._fetchTimer=p.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},g.requestTimeout))}p.fetch(h._opts.url,{method:h._opts.method,headers:w,body:b||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:x}).then(function(C){h._fetchResponse=C,h._connect()},function(C){p.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",C)})}else{var E=h._xhr=new p.XMLHttpRequest;try{E.open(h._opts.method,h._opts.url,!0)}catch(C){y.nextTick(function(){h.emit("error",C)});return}"responseType"in E&&(E.responseType=h._mode.split(":")[0]),"withCredentials"in E&&(E.withCredentials=!!g.withCredentials),h._mode==="text"&&"overrideMimeType"in E&&E.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(E.timeout=g.requestTimeout,E.ontimeout=function(){h.emit("requestTimeout")}),w.forEach(function(C){E.setRequestHeader(C[0],C[1])}),h._response=null,E.onreadystatechange=function(){switch(E.readyState){case e.LOADING:case e.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(E.onprogress=function(){h._onXHRProgress()}),E.onerror=function(){if(h._destroyed)return;h.emit("error",new Error("XHR error"))};try{E.send(b)}catch(C){y.nextTick(function(){h.emit("error",C)});return}}};function s(h){try{var g=h.status;return g!==null&&g!==0}catch(A){return!1}}r.prototype._onXHRProgress=function(){var h=this;if(!s(h._xhr)||h._destroyed)return;h._response||h._connect(),h._response._onXHRProgress()},r.prototype._connect=function(){var h=this;if(h._destroyed)return;h._response=new a(h._xhr,h._fetchResponse,h._mode,h._fetchTimer),h._response.on("error",function(g){h.emit("error",g)}),h.emit("response",h._response)},r.prototype._write=function(h,g,A){var b=this;b._body.push(h),A()},r.prototype.abort=r.prototype.destroy=function(){var h=this;h._destroyed=!0,p.clearTimeout(h._fetchTimer),h._response&&(h._response._destroyed=!0),h._xhr?h._xhr.abort():h._fetchAbortController&&h._fetchAbortController.abort()},r.prototype.end=function(h,g,A){var b=this;typeof h=="function"&&(A=h,h=void 0),n.Writable.prototype.end.call(b,h,g,A)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.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,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("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(k,D,i){(function(y,p,S){"use strict";var v=k("babel-runtime/core-js/promise"),m=f(v);function f(a){return a&&a.__esModule?a:{default:a}}var d=k("./capability"),u=k("inherits"),o=k("readable-stream"),n=i.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=i.IncomingMessage=function(a,e,l,r){var s=this;if(o.Readable.call(s),s._mode=l,s.headers={},s.rawHeaders=[],s.trailers={},s.rawTrailers=[],s.on("end",function(){y.nextTick(function(){s.emit("close")})}),l==="fetch"){var c=function x(){g.read().then(function(T){if(s._destroyed)return;if(T.done){p.clearTimeout(r),s.push(null);return}s.push(new S(T.value)),x()}).catch(function(T){p.clearTimeout(r),s._destroyed||s.emit("error",T)})};if(s._fetchResponse=e,s.url=e.url,s.statusCode=e.status,s.statusMessage=e.statusText,e.headers.forEach(function(x,T){s.headers[T.toLowerCase()]=x,s.rawHeaders.push(T,x)}),d.writableStream){var h=new WritableStream({write:function(T){return new m.default(function(_,E){s._destroyed?E():s.push(new S(T))?_():s._resumeFetch=_})},close:function(){p.clearTimeout(r),s._destroyed||s.push(null)},abort:function(T){s._destroyed||s.emit("error",T)}});try{e.body.pipeTo(h).catch(function(x){p.clearTimeout(r),s._destroyed||s.emit("error",x)});return}catch(x){}}var g=e.body.getReader();c()}else{s._xhr=a,s._pos=0,s.url=a.responseURL,s.statusCode=a.status,s.statusMessage=a.statusText;var A=a.getAllResponseHeaders().split(/\r?\n/);if(A.forEach(function(x){var T=x.match(/^([^:]+):\s*(.*)/);if(T){var _=T[1].toLowerCase();_==="set-cookie"?(s.headers[_]===void 0&&(s.headers[_]=[]),s.headers[_].push(T[2])):s.headers[_]!==void 0?s.headers[_]+=", "+T[2]:s.headers[_]=T[2],s.rawHeaders.push(T[1],T[2])}}),s._charset="x-user-defined",!d.overrideMimeType){var b=s.rawHeaders["mime-type"];if(b){var w=b.match(/;\s*charset=([^;])(;|$)/);w&&(s._charset=w[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};u(t,o.Readable),t.prototype._read=function(){var a=this,e=a._resumeFetch;e&&(a._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var a=this,e=a._xhr,l=null;switch(a._mode){case"text:vbarray":if(e.readyState!==n.DONE)break;try{l=new p.VBArray(e.responseBody).toArray()}catch(g){}if(l!==null){a.push(new S(l));break}case"text":try{l=e.responseText}catch(g){a._mode="text:vbarray";break}if(l.length>a._pos){var r=l.substr(a._pos);if(a._charset==="x-user-defined"){for(var s=new S(r.length),c=0;c<r.length;c++)s[c]=r.charCodeAt(c)&255;a.push(s)}else a.push(r,a._charset);a._pos=l.length}break;case"arraybuffer":if(e.readyState!==n.DONE||!e.response)break;l=e.response,a.push(new S(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==n.LOADING||!l)break;a.push(new S(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==n.LOADING)break;var h=new p.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(new S(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){a.push(null)},h.readAsArrayBuffer(l);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&a.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,D,i){"use strict";var y=k("safe-buffer").Buffer,p=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 S(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 v(h){var g=S(h);if(typeof g!="string"&&(y.isEncoding===p||!p(h)))throw new Error("Unknown encoding: "+h);return g||h}i.StringDecoder=m;function m(h){this.encoding=v(h);var g;switch(this.encoding){case"utf16le":this.text=a,this.end=e,g=4;break;case"utf8":this.fillLast=o,g=4;break;case"base64":this.text=l,this.end=r,g=3;break;default:this.write=s,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,A;if(this.lastNeed){if(g=this.fillLast(h),g===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<h.length?g?g+this.text(h,A):this.text(h,A):g||""},m.prototype.end=t,m.prototype.text=n,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 f(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,A){var b=g.length-1;if(b<A)return 0;var w=f(g[b]);return w>=0?(w>0&&(h.lastNeed=w-1),w):--b<A||w===-2?0:(w=f(g[b]),w>=0?(w>0&&(h.lastNeed=w-2),w):--b<A||w===-2?0:(w=f(g[b]),w>=0?(w>0&&(w===2?w=0:h.lastNeed=w-3),w):0))}function u(h,g,A){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 o(h){var g=this.lastTotal-this.lastNeed,A=u(this,h,g);if(A!==void 0)return A;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 n(h,g){var A=d(this,h,g);if(!this.lastNeed)return h.toString("utf8",g);this.lastTotal=A;var b=h.length-(A-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 a(h,g){if((h.length-g)%2===0){var A=h.toString("utf16le",g);if(A){var b=A.charCodeAt(A.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],A.slice(0,-1)}return A}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 A=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,A)}return g}function l(h,g){var A=(h.length-g)%3;return A===0?h.toString("base64",g):(this.lastNeed=3-A,this.lastTotal=3,A===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-A))}function r(h){var g=h&&h.length?this.write(h):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function s(h){return h.toString(this.encoding)}function c(h){return h&&h.length?this.write(h):""}},{"safe-buffer":228}],236:[function(k,D,i){(function(y,p){var S=k("process/browser.js").nextTick,v=Function.prototype.apply,m=Array.prototype.slice,f={},d=0;i.setTimeout=function(){return new u(v.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new u(v.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(o){o.close()};function u(o,n){this._id=o,this._clearFn=n}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(o,n){clearTimeout(o._idleTimeoutId),o._idleTimeout=n},i.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},i._unrefActive=i.active=function(o){clearTimeout(o._idleTimeoutId);var n=o._idleTimeout;n>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},n))},i.setImmediate=typeof y=="function"?y:function(o){var n=d++,t=arguments.length<2?!1:m.call(arguments,1);return f[n]=!0,S(function(){f[n]&&(t?o.apply(null,t):o.call(null),i.clearImmediate(n))}),n},i.clearImmediate=typeof p=="function"?p:function(o){delete f[o]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,D,i){var y=k("buffer").Buffer;D.exports=function(p){if(p instanceof Uint8Array){if(p.byteOffset===0&&p.byteLength===p.buffer.byteLength)return p.buffer;if(typeof p.buffer.slice=="function")return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}if(y.isBuffer(p)){for(var S=new Uint8Array(p.length),v=p.length,m=0;m<v;m++)S[m]=p[m];return S.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,D,i){"use strict";var y=k("punycode"),p=k("./util");i.parse=g,i.resolve=b,i.resolveObject=w,i.format=A,i.Url=S;function S(){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 v=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
`," "],u=["{","}","|","\\","^","`"].concat(d),o=["'"].concat(u),n=["%","/","?",";","#"].concat(o),t=["/","?","#"],a=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,r={javascript:!0,"javascript:":!0},s={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=k("querystring");function g(x,T,_){if(x&&p.isObject(x)&&x instanceof S)return x;var E=new S;return E.parse(x,T,_),E}S.prototype.parse=function(x,T,_){if(!p.isString(x))throw new TypeError("Parameter 'url' must be a string, not "+typeof x);var E=x.indexOf("?"),C=E!==-1&&E<x.indexOf("#")?"?":"#",I=x.split(C),O=/\\/g;I[0]=I[0].replace(O,"/"),x=I.join(C);var F=x;if(F=F.trim(),!_&&x.split("#").length===1){var R=f.exec(F);if(R)return this.path=F,this.href=F,this.pathname=R[1],R[2]?(this.search=R[2],T?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):T&&(this.search="",this.query={}),this}var B=v.exec(F);if(B){B=B[0];var P=B.toLowerCase();this.protocol=P,F=F.substr(B.length)}if(_||B||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=F.substr(0,2)==="//";X&&!(B&&s[B])&&(F=F.substr(2),this.slashes=!0)}if(!s[B]&&(X||B&&!c[B])){for(var M=-1,z=0;z<t.length;z++){var W=F.indexOf(t[z]);W!==-1&&(M===-1||W<M)&&(M=W)}var H,V;M===-1?V=F.lastIndexOf("@"):V=F.lastIndexOf("@",M),V!==-1&&(H=F.slice(0,V),F=F.slice(V+1),this.auth=decodeURIComponent(H)),M=-1;for(var z=0;z<n.length;z++){var W=F.indexOf(n[z]);W!==-1&&(M===-1||W<M)&&(M=W)}M===-1&&(M=F.length),this.host=F.slice(0,M),F=F.slice(M),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(/\./),z=0,ee=G.length;z<ee;z++){var q=G[z];if(!q)continue;if(!q.match(e)){for(var se="",re=0,Ae=q.length;re<Ae;re++)q.charCodeAt(re)>127?se+="x":se+=q[re];if(!se.match(e)){var Te=G.slice(0,z),Re=G.slice(z+1),Ge=q.match(l);Ge&&(Te.push(Ge[1]),Re.unshift(Ge[2])),Re.length&&(F="/"+Re.join(".")+F),this.hostname=Te.join(".");break}}}this.hostname.length>a?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var Ue=this.port?":"+this.port:"",nt=this.hostname||"";this.host=nt+Ue,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),F[0]!=="/"&&(F="/"+F))}if(!r[P])for(var z=0,ee=o.length;z<ee;z++){var Le=o[z];if(F.indexOf(Le)===-1)continue;var le=encodeURIComponent(Le);le===Le&&(le=escape(Le)),F=F.split(Le).join(le)}var Xe=F.indexOf("#");Xe!==-1&&(this.hash=F.substr(Xe),F=F.slice(0,Xe));var pe=F.indexOf("?");if(pe!==-1?(this.search=F.substr(pe),this.query=F.substr(pe+1),T&&(this.query=h.parse(this.query)),F=F.slice(0,pe)):T&&(this.search="",this.query={}),F&&(this.pathname=F),c[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ue=this.pathname||"",Z=this.search||"";this.path=Ue+Z}return this.href=this.format(),this};function A(x){return p.isString(x)&&(x=g(x)),x instanceof S?x.format():S.prototype.format.call(x)}S.prototype.format=function(){var x=this.auth||"";x&&(x=encodeURIComponent(x),x=x.replace(/%3A/i,":"),x+="@");var T=this.protocol||"",_=this.pathname||"",E=this.hash||"",C=!1,I="";this.host?C=x+this.host:this.hostname&&(C=x+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(C+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(I=h.stringify(this.query));var O=this.search||I&&"?"+I||"";return T&&T.substr(-1)!==":"&&(T+=":"),this.slashes||(!T||c[T])&&C!==!1?(C="//"+(C||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):C||(C=""),E&&E.charAt(0)!=="#"&&(E="#"+E),O&&O.charAt(0)!=="?"&&(O="?"+O),_=_.replace(/[?#]/g,function(F){return encodeURIComponent(F)}),O=O.replace("#","%23"),T+C+_+O+E};function b(x,T){return g(x,!1,!0).resolve(T)}S.prototype.resolve=function(x){return this.resolveObject(g(x,!1,!0)).format()};function w(x,T){return x?g(x,!1,!0).resolveObject(T):T}S.prototype.resolveObject=function(x){if(p.isString(x)){var T=new S;T.parse(x,!1,!0),x=T}for(var _=new S,E=Object.keys(this),C=0;C<E.length;C++){var I=E[C];_[I]=this[I]}if(_.hash=x.hash,x.href==="")return _.href=_.format(),_;if(x.slashes&&!x.protocol){for(var O=Object.keys(x),F=0;F<O.length;F++){var R=O[F];R!=="protocol"&&(_[R]=x[R])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(x.protocol&&x.protocol!==_.protocol){if(!c[x.protocol]){for(var B=Object.keys(x),P=0;P<B.length;P++){var X=B[P];_[X]=x[X]}return _.href=_.format(),_}if(_.protocol=x.protocol,!x.host&&!s[x.protocol]){for(var ee=(x.pathname||"").split("/");ee.length&&!(x.host=ee.shift()););x.host||(x.host=""),x.hostname||(x.hostname=""),ee[0]!==""&&ee.unshift(""),ee.length<2&&ee.unshift(""),_.pathname=ee.join("/")}else _.pathname=x.pathname;if(_.search=x.search,_.query=x.query,_.host=x.host||"",_.auth=x.auth,_.hostname=x.hostname||x.host,_.port=x.port,_.pathname||_.search){var M=_.pathname||"",z=_.search||"";_.path=M+z}return _.slashes=_.slashes||x.slashes,_.href=_.format(),_}var W=_.pathname&&_.pathname.charAt(0)==="/",H=x.host||x.pathname&&x.pathname.charAt(0)==="/",V=H||W||_.host&&x.pathname,Q=V,G=_.pathname&&_.pathname.split("/")||[],ee=x.pathname&&x.pathname.split("/")||[],q=_.protocol&&!c[_.protocol];if(q&&(_.hostname="",_.port=null,_.host&&(G[0]===""?G[0]=_.host:G.unshift(_.host)),_.host="",x.protocol&&(x.hostname=null,x.port=null,x.host&&(ee[0]===""?ee[0]=x.host:ee.unshift(x.host)),x.host=null),V=V&&(ee[0]===""||G[0]==="")),H)_.host=x.host||x.host===""?x.host:_.host,_.hostname=x.hostname||x.hostname===""?x.hostname:_.hostname,_.search=x.search,_.query=x.query,G=ee;else if(ee.length)G||(G=[]),G.pop(),G=G.concat(ee),_.search=x.search,_.query=x.query;else if(!p.isNullOrUndefined(x.search)){if(q){_.hostname=_.host=G.shift();var se=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;se&&(_.auth=se.shift(),_.host=_.hostname=se.shift())}return _.search=x.search,_.query=x.query,(!p.isNull(_.pathname)||!p.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!G.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var re=G.slice(-1)[0],Ae=(_.host||x.host||G.length>1)&&(re==="."||re==="..")||re==="",Te=0,Re=G.length;Re>=0;Re--)re=G[Re],re==="."?G.splice(Re,1):re===".."?(G.splice(Re,1),Te++):Te&&(G.splice(Re,1),Te--);if(!V&&!Q)for(;Te--;Te)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),Ae&&G.join("/").substr(-1)!=="/"&&G.push("");var Ge=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(q){_.hostname=_.host=Ge?"":G.length?G.shift():"";var se=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;se&&(_.auth=se.shift(),_.host=_.hostname=se.shift())}return V=V||_.host&&G.length,V&&!Ge&&G.unshift(""),G.length?_.pathname=G.join("/"):(_.pathname=null,_.path=null),(!p.isNull(_.pathname)||!p.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=x.auth||_.auth,_.slashes=_.slashes||x.slashes,_.href=_.format(),_},S.prototype.parseHost=function(){var x=this.host,T=m.exec(x);T&&(T=T[0],T!==":"&&(this.port=T.substr(1)),x=x.substr(0,x.length-T.length)),x&&(this.hostname=x)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,D,i){"use strict";D.exports={isString:function(p){return typeof p=="string"},isObject:function(p){return typeof p=="object"&&p!==null},isNull:function(p){return p===null},isNullOrUndefined:function(p){return p==null}}},{}],240:[function(k,D,i){(function(y){D.exports=p;function p(v,m){if(S("noDeprecation"))return v;var f=!1;function d(){if(!f){if(S("throwDeprecation"))throw new Error(m);S("traceDeprecation")?console.trace(m):console.warn(m),f=!0}return v.apply(this,arguments)}return d}function S(v){try{if(!y.localStorage)return!1}catch(f){return!1}var m=y.localStorage[v];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(k,D,i){typeof Object.create=="function"?D.exports=function(p,S){p.super_=S,p.prototype=Object.create(S.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(p,S){p.super_=S;var v=function(){};v.prototype=S.prototype,p.prototype=new v,p.prototype.constructor=p}},{}],242:[function(k,D,i){D.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},{}],243:[function(k,D,i){(function(y,p){var S=/%[sdj%]/g;i.format=function(M){if(!b(M)){for(var z=[],W=0;W<arguments.length;W++)z.push(f(arguments[W]));return z.join(" ")}for(var W=1,H=arguments,V=H.length,Q=String(M).replace(S,function(ee){if(ee==="%%")return"%";if(W>=V)return ee;switch(ee){case"%s":return String(H[W++]);case"%d":return Number(H[W++]);case"%j":try{return JSON.stringify(H[W++])}catch(q){return"[Circular]"}default:return ee}}),G=H[W];W<V;G=H[++W])h(G)||!_(G)?Q+=" "+G:Q+=" "+f(G);return Q},i.deprecate=function(M,z){if(x(p.process))return function(){return i.deprecate(M,z).apply(this,arguments)};if(y.noDeprecation===!0)return M;var W=!1;function H(){if(!W){if(y.throwDeprecation)throw new Error(z);y.traceDeprecation?console.trace(z):console.error(z),W=!0}return M.apply(this,arguments)}return H};var v={},m;i.debuglog=function(M){if(x(m)&&(m=y.env.NODE_DEBUG||""),M=M.toUpperCase(),!v[M])if(new RegExp("\\b"+M+"\\b","i").test(m)){var z=y.pid;v[M]=function(){var W=i.format.apply(i,arguments);console.error("%s %d: %s",M,z,W)}}else v[M]=function(){};return v[M]};function f(M,z){var W={seen:[],stylize:u};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),c(z)?W.showHidden=z:z&&i._extend(W,z),x(W.showHidden)&&(W.showHidden=!1),x(W.depth)&&(W.depth=2),x(W.colors)&&(W.colors=!1),x(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=d),n(W,M,W.depth)}i.inspect=f,f.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]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(M,z){var W=f.styles[z];return W?"["+f.colors[W][0]+"m"+M+"["+f.colors[W][1]+"m":M}function u(M,z){return M}function o(M){var z={};return M.forEach(function(W,H){z[W]=!0}),z}function n(M,z,W){if(M.customInspect&&z&&I(z.inspect)&&z.inspect!==i.inspect&&!(z.constructor&&z.constructor.prototype===z)){var H=z.inspect(W,M);return b(H)||(H=n(M,H,W)),H}var V=t(M,z);if(V)return V;var Q=Object.keys(z),G=o(Q);if(M.showHidden&&(Q=Object.getOwnPropertyNames(z)),C(z)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return a(z);if(Q.length===0){if(I(z)){var ee=z.name?": "+z.name:"";return M.stylize("[Function"+ee+"]","special")}if(T(z))return M.stylize(RegExp.prototype.toString.call(z),"regexp");if(E(z))return M.stylize(Date.prototype.toString.call(z),"date");if(C(z))return a(z)}var q="",se=!1,re=["{","}"];if(s(z)&&(se=!0,re=["[","]"]),I(z)){var Ae=z.name?": "+z.name:"";q=" [Function"+Ae+"]"}if(T(z)&&(q=" "+RegExp.prototype.toString.call(z)),E(z)&&(q=" "+Date.prototype.toUTCString.call(z)),C(z)&&(q=" "+a(z)),Q.length===0&&(!se||z.length==0))return re[0]+q+re[1];if(W<0)return T(z)?M.stylize(RegExp.prototype.toString.call(z),"regexp"):M.stylize("[Object]","special");M.seen.push(z);var Te;return se?Te=e(M,z,W,G,Q):Te=Q.map(function(Re){return l(M,z,W,G,Re,se)}),M.seen.pop(),r(Te,q,re)}function t(M,z){if(x(z))return M.stylize("undefined","undefined");if(b(z)){var W="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(W,"string")}if(A(z))return M.stylize(""+z,"number");if(c(z))return M.stylize(""+z,"boolean");if(h(z))return M.stylize("null","null")}function a(M){return"["+Error.prototype.toString.call(M)+"]"}function e(M,z,W,H,V){for(var Q=[],G=0,ee=z.length;G<ee;++G)X(z,String(G))?Q.push(l(M,z,W,H,String(G),!0)):Q.push("");return V.forEach(function(q){q.match(/^\d+$/)||Q.push(l(M,z,W,H,q,!0))}),Q}function l(M,z,W,H,V,Q){var G,ee,q;if(q=Object.getOwnPropertyDescriptor(z,V)||{value:z[V]},q.get?q.set?ee=M.stylize("[Getter/Setter]","special"):ee=M.stylize("[Getter]","special"):q.set&&(ee=M.stylize("[Setter]","special")),X(H,V)||(G="["+V+"]"),ee||(M.seen.indexOf(q.value)<0?(h(W)?ee=n(M,q.value,null):ee=n(M,q.value,W-1),ee.indexOf(`
`)>-1&&(Q?ee=ee.split(`
`).map(function(se){return" "+se}).join(`
`).substr(2):ee=`
`+ee.split(`
`).map(function(se){return" "+se}).join(`
`))):ee=M.stylize("[Circular]","special")),x(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=M.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=M.stylize(G,"string"))}return G+": "+ee}function r(M,z,W){var H=0,V=M.reduce(function(Q,G){return H++,G.indexOf(`
`)>=0&&H++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?W[0]+(z===""?"":z+`
`)+" "+M.join(`,
`)+" "+W[1]:W[0]+z+" "+M.join(", ")+" "+W[1]}function s(M){return Array.isArray(M)}i.isArray=s;function c(M){return typeof M=="boolean"}i.isBoolean=c;function h(M){return M===null}i.isNull=h;function g(M){return M==null}i.isNullOrUndefined=g;function A(M){return typeof M=="number"}i.isNumber=A;function b(M){return typeof M=="string"}i.isString=b;function w(M){return typeof M=="symbol"}i.isSymbol=w;function x(M){return M===void 0}i.isUndefined=x;function T(M){return _(M)&&F(M)==="[object RegExp]"}i.isRegExp=T;function _(M){return typeof M=="object"&&M!==null}i.isObject=_;function E(M){return _(M)&&F(M)==="[object Date]"}i.isDate=E;function C(M){return _(M)&&(F(M)==="[object Error]"||M instanceof Error)}i.isError=C;function I(M){return typeof M=="function"}i.isFunction=I;function O(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M=="undefined"}i.isPrimitive=O,i.isBuffer=k("./support/isBuffer");function F(M){return Object.prototype.toString.call(M)}function R(M){return M<10?"0"+M.toString(10):M.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var M=new Date,z=[R(M.getHours()),R(M.getMinutes()),R(M.getSeconds())].join(":");return[M.getDate(),B[M.getMonth()],z].join(" ")}i.log=function(){console.log("%s - %s",P(),i.format.apply(i,arguments))},i.inherits=k("inherits"),i._extend=function(M,z){if(!z||!_(z))return M;for(var W=Object.keys(z),H=W.length;H--;)M[W[H]]=z[W[H]];return M};function X(M,z){return Object.prototype.hasOwnProperty.call(M,z)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(k,D,i){"use strict";(function(){"use strict";i.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(k,D,i){"use strict";var y=k("babel-runtime/helpers/typeof"),p=m(y),S=k("babel-runtime/core-js/object/keys"),v=m(S);function m(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,d,u,o,n,t={}.hasOwnProperty;f=k("xmlbuilder"),d=k("./defaults").defaults,o=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},n=function(e){return"<![CDATA["+u(e)+"]]>"},u=function(e){return e.replace("]]>","]]]]><![CDATA[>")},i.Builder=function(){function a(e){var l,r,s;this.options={},r=d["0.2"];for(l in r){if(!t.call(r,l))continue;s=r[l],this.options[l]=s}for(l in e){if(!t.call(e,l))continue;s=e[l],this.options[l]=s}}return a.prototype.buildObject=function(e){var l,r,s,c,h;return l=this.options.attrkey,r=this.options.charkey,(0,v.default)(e).length===1&&this.options.rootName===d["0.2"].rootName?(h=(0,v.default)(e)[0],e=e[h]):h=this.options.rootName,s=function(g){return function(A,b){var w,x,T,_,E,C;if((typeof b=="undefined"?"undefined":(0,p.default)(b))!=="object")g.options.cdata&&o(b)?A.raw(n(b)):A.txt(b);else if(Array.isArray(b))for(_ in b){if(!t.call(b,_))continue;x=b[_];for(E in x)T=x[E],A=s(A.ele(E),T).up()}else for(E in b){if(!t.call(b,E))continue;if(x=b[E],E===l){if((typeof x=="undefined"?"undefined":(0,p.default)(x))==="object")for(w in x)C=x[w],A=A.att(w,C)}else if(E===r)g.options.cdata&&o(x)?A=A.raw(n(x)):A=A.txt(x);else if(Array.isArray(x))for(_ in x){if(!t.call(x,_))continue;T=x[_],typeof T=="string"?g.options.cdata&&o(T)?A=A.ele(E).raw(n(T)).up():A=A.ele(E,T).up():A=s(A.ele(E),T).up()}else(typeof x=="undefined"?"undefined":(0,p.default)(x))==="object"?A=s(A.ele(E),x).up():typeof x=="string"&&g.options.cdata&&o(x)?A=A.ele(E).raw(n(x)).up():(x==null&&(x=""),A=A.ele(E,x.toString()).up())}return A}}(this),c=f.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),s(c,e).end(this.options.renderOpts)},a}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(k,D,i){"use strict";(function(){i.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(k,D,i){"use strict";var y=k("babel-runtime/core-js/promise"),p=o(y),S=k("babel-runtime/core-js/object/get-own-property-names"),v=o(S),m=k("babel-runtime/core-js/object/keys"),f=o(m),d=k("babel-runtime/helpers/typeof"),u=o(d);function o(n){return n&&n.__esModule?n:{default:n}}(function(){"use strict";var n,t,a,e,l,r,s,c,h=function(w,x){return function(){return w.apply(x,arguments)}},g=function(w,x){for(var T in x)A.call(x,T)&&(w[T]=x[T]);function _(){this.constructor=w}return _.prototype=x.prototype,w.prototype=new _,w.__super__=x.prototype,w},A={}.hasOwnProperty;s=k("sax"),a=k("events"),n=k("./bom"),r=k("./processors"),c=k("timers").setImmediate,t=k("./defaults").defaults,e=function(w){return(typeof w=="undefined"?"undefined":(0,u.default)(w))==="object"&&w!=null&&(0,f.default)(w).length===0},l=function(w,x,T){var _,E,C;for(_=0,E=w.length;_<E;_++)C=w[_],x=C(x,T);return x},i.Parser=function(b){g(w,b);function w(x){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 T,_,E;if(!(this instanceof i.Parser))return new i.Parser(x);this.options={},_=t["0.2"];for(T in _){if(!A.call(_,T))continue;E=_[T],this.options[T]=E}for(T in x){if(!A.call(x,T))continue;E=x[T],this.options[T]=E}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(r.normalize)),this.reset()}return w.prototype.processAsync=function(){var x,T;try{return this.remaining.length<=this.options.chunkSize?(x=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(x),this.saxParser.close()):(x=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(x),c(this.processAsync))}catch(_){if(T=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(T)}},w.prototype.assignOrPush=function(x,T,_){return T in x?(x[T]instanceof Array||(x[T]=[x[T]]),x[T].push(_)):this.options.explicitArray?x[T]=[_]:x[T]=_},w.prototype.reset=function(){var x,T,_,E;return this.removeAllListeners(),this.saxParser=s.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(C){return function(I){if(C.saxParser.resume(),!C.saxParser.errThrown)return C.saxParser.errThrown=!0,C.emit("error",I)}}(this),this.saxParser.onend=function(C){return function(){if(!C.saxParser.ended)return C.saxParser.ended=!0,C.emit("end",C.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,E=[],x=this.options.attrkey,T=this.options.charkey,this.saxParser.onopentag=function(C){return function(I){var O,F,R,B,P;if(R={},R[T]="",!C.options.ignoreAttrs){P=I.attributes;for(O in P){if(!A.call(P,O))continue;!(x in R)&&!C.options.mergeAttrs&&(R[x]={}),F=C.options.attrValueProcessors?l(C.options.attrValueProcessors,I.attributes[O],O):I.attributes[O],B=C.options.attrNameProcessors?l(C.options.attrNameProcessors,O):O,C.options.mergeAttrs?C.assignOrPush(R,B,F):R[x][B]=F}}return R["#name"]=C.options.tagNameProcessors?l(C.options.tagNameProcessors,I.name):I.name,C.options.xmlns&&(R[C.options.xmlnskey]={uri:I.uri,local:I.local}),E.push(R)}}(this),this.saxParser.onclosetag=function(C){return function(){var I,O,F,R,B,P,X,M,z,W;if(P=E.pop(),B=P["#name"],(!C.options.explicitChildren||!C.options.preserveChildrenOrder)&&delete P["#name"],P.cdata===!0&&(I=P.cdata,delete P.cdata),z=E[E.length-1],P[T].match(/^\s*$/)&&!I?(O=P[T],delete P[T]):(C.options.trim&&(P[T]=P[T].trim()),C.options.normalize&&(P[T]=P[T].replace(/\s{2,}/g," ").trim()),P[T]=C.options.valueProcessors?l(C.options.valueProcessors,P[T],B):P[T],(0,f.default)(P).length===1&&T in P&&!C.EXPLICIT_CHARKEY&&(P=P[T])),e(P)&&(P=C.options.emptyTag!==""?C.options.emptyTag:O),C.options.validator!=null&&(W="/"+function(){var H,V,Q;for(Q=[],H=0,V=E.length;H<V;H++)R=E[H],Q.push(R["#name"]);return Q}().concat(B).join("/"),function(){var H;try{return P=C.options.validator(W,z&&z[B],P)}catch(V){return H=V,C.emit("error",H)}}()),C.options.explicitChildren&&!C.options.mergeAttrs&&(typeof P=="undefined"?"undefined":(0,u.default)(P))==="object"){if(!C.options.preserveChildrenOrder)R={},C.options.attrkey in P&&(R[C.options.attrkey]=P[C.options.attrkey],delete P[C.options.attrkey]),!C.options.charsAsChildren&&C.options.charkey in P&&(R[C.options.charkey]=P[C.options.charkey],delete P[C.options.charkey]),(0,v.default)(P).length>0&&(R[C.options.childkey]=P),P=R;else if(z){z[C.options.childkey]=z[C.options.childkey]||[],X={};for(F in P){if(!A.call(P,F))continue;X[F]=P[F]}z[C.options.childkey].push(X),delete P["#name"],(0,f.default)(P).length===1&&T in P&&!C.EXPLICIT_CHARKEY&&(P=P[T])}}return E.length>0?C.assignOrPush(z,B,P):(C.options.explicitRoot&&(M=P,P={},P[B]=M),C.resultObject=P,C.saxParser.ended=!0,C.emit("end",C.resultObject))}}(this),_=function(C){return function(I){var O,F;if(F=E[E.length-1],F)return F[T]+=I,C.options.explicitChildren&&C.options.preserveChildrenOrder&&C.options.charsAsChildren&&(C.options.includeWhiteChars||I.replace(/\\n/g,"").trim()!=="")&&(F[C.options.childkey]=F[C.options.childkey]||[],O={"#name":"__text__"},O[T]=I,C.options.normalize&&(O[T]=O[T].replace(/\s{2,}/g," ").trim()),F[C.options.childkey].push(O)),F}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(C){return function(I){var O;if(O=_(I),O)return O.cdata=!0}}(this)},w.prototype.parseString=function(x,T){var _;T!=null&&typeof T=="function"&&(this.on("end",function(E){return this.reset(),T(null,E)}),this.on("error",function(E){return this.reset(),T(E)}));try{return x=x.toString(),x.trim()===""?(this.emit("end",null),!0):(x=n.stripBOM(x),this.options.async?(this.remaining=x,c(this.processAsync),this.saxParser):this.saxParser.write(x).close())}catch(E){if(_=E,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(x){return new p.default(function(T){return function(_,E){return T.parseString(x,function(C,I){return C?E(C):_(I)})}}(this))},w}(a),i.parseString=function(b,w,x){var T,_,E;return x!=null?(typeof x=="function"&&(T=x),(typeof w=="undefined"?"undefined":(0,u.default)(w))==="object"&&(_=w)):(typeof w=="function"&&(T=w),_={}),E=new i.Parser(_),E.parseString(b,T)},i.parseStringPromise=function(b,w){var x,T;return(typeof w=="undefined"?"undefined":(0,u.default)(w))==="object"&&(x=w),T=new i.Parser(x),T.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(k,D,i){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),i.normalize=function(p){return p.toLowerCase()},i.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},i.stripPrefix=function(p){return p.replace(y,"")},i.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},i.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(void 0)},{}],249:[function(k,D,i){"use strict";(function(){"use strict";var y,p,S,v,m=function(u,o){for(var n in o)f.call(o,n)&&(u[n]=o[n]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;p=k("./defaults"),y=k("./builder"),S=k("./parser"),v=k("./processors"),i.defaults=p.defaults,i.processors=v,i.ValidationError=function(d){m(u,d);function u(o){this.message=o}return u}(Error),i.Builder=y.Builder,i.Parser=S.Parser,i.parseString=S.parseString,i.parseStringPromise=S.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,D,i){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,D,i){"use strict";(function(){D.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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/get-prototype-of"),p=d(y),S=k("babel-runtime/helpers/typeof"),v=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(u){return u&&u.__esModule?u:{default:u}}(function(){var u,o,n,t,a,e,l,r=[].slice,s={}.hasOwnProperty;u=function(){var h,g,A,b,w,x;if(x=arguments[0],w=2<=arguments.length?r.call(arguments,1):[],a(f.default))f.default.apply(null,arguments);else for(h=0,A=w.length;h<A;h++)if(b=w[h],b!=null)for(g in b){if(!s.call(b,g))continue;x[g]=b[g]}return x},a=function(h){return!!h&&Object.prototype.toString.call(h)==="[object Function]"},e=function(h){var g;return!!h&&((g=typeof h=="undefined"?"undefined":(0,v.default)(h))==="function"||g==="object")},n=function(h){return a(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},t=function(h){var g;if(n(h))return!h.length;for(g in h){if(!s.call(h,g))continue;return!1}return!0},l=function(h){var g,A;return e(h)&&(A=(0,p.default)(h))&&(g=A.constructor)&&typeof g=="function"&&g instanceof g&&Function.prototype.toString.call(g)===Function.prototype.toString.call(Object)},o=function(h){return a(h.valueOf)?h.valueOf():h},D.exports.assign=u,D.exports.isFunction=a,D.exports.isObject=e,D.exports.isArray=n,D.exports.isEmpty=t,D.exports.isPlainObject=l,D.exports.getValue=o}).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(k,D,i){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f;v=k("./NodeType"),f=k("./XMLNode"),D.exports=m=function(){function d(u,o,n){if(this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),o==null)throw new Error("Missing attribute name. "+this.debugInfo(o));this.name=this.stringify.name(o),this.value=this.stringify.attValue(n),this.type=v.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(o){return this.value=o||""}}),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,p.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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f,d=function(n,t){for(var a in t)u.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},u={}.hasOwnProperty;v=k("./NodeType"),f=k("./XMLCharacterData"),D.exports=m=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(a)}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f=function(o,n){for(var t in n)d.call(n,t)&&(o[t]=n[t]);function a(){this.constructor=o}return a.prototype=n.prototype,o.prototype=new a,o.__super__=n.prototype,o},d={}.hasOwnProperty;m=k("./XMLNode"),D.exports=v=function(u){f(o,u);function o(n){o.__super__.constructor.call(this,n),this.value=""}return Object.defineProperty(o.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(o.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(o.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),o.prototype.clone=function(){return(0,p.default)(this)},o.prototype.substringData=function(n,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(n,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(n,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(n,t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(n){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)?!(n.data!==this.data):!1},o}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f,d=function(n,t){for(var a in t)u.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(a)}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),S=k("babel-runtime/core-js/object/create"),v=m(S);function m(f){return f&&f.__esModule?f:{default:f}}(function(){var f,d,u;d=k("./XMLDOMErrorHandler"),u=k("./XMLDOMStringList"),D.exports=f=function(){function o(){var n;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=n=(0,v.default)(this.defaultParams)}return Object.defineProperty(o.prototype,"parameterNames",{get:function(){return new u((0,p.default)(this.defaultParams))}}),o.prototype.getParameter=function(n){return this.params.hasOwnProperty(n)?this.params[n]:null},o.prototype.canSetParameter=function(n,t){return!0},o.prototype.setParameter=function(n,t){return t!=null?this.params[n]=t:delete this.params[n]},o}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.handleError=function(S){throw new Error(S)},p}()}).call(void 0)},{}],260:[function(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.hasFeature=function(S,v){return!0},p.prototype.createDocumentType=function(S,v,m){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(S,v,m){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(S){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(S,v){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{}],261:[function(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(S){this.arr=S||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(S){return this.arr[S]||null},p.prototype.contains=function(S){return this.arr.indexOf(S)!==-1},p}()}).call(void 0)},{}],262:[function(k,D,i){"use strict";(function(){var y,p,S,v=function(d,u){for(var o in u)m.call(u,o)&&(d[o]=u[o]);function n(){this.constructor=d}return n.prototype=u.prototype,d.prototype=new n,d.__super__=u.prototype,d},m={}.hasOwnProperty;S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){v(d,f);function d(u,o,n,t,a,e){if(d.__super__.constructor.call(this,u),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(n==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!a)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(a.indexOf("#")!==0&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(e&&!a.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.name(o),this.type=y.AttributeDeclaration,this.attributeName=this.stringify.name(n),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=a}return d.prototype.toString=function(u){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(u))},d}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,D,i){"use strict";(function(){var y,p,S,v=function(d,u){for(var o in u)m.call(u,o)&&(d[o]=u[o]);function n(){this.constructor=d}return n.prototype=u.prototype,d.prototype=new n,d.__super__=u.prototype,d},m={}.hasOwnProperty;S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){v(d,f);function d(u,o,n){if(d.__super__.constructor.call(this,u),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.name(o),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(n)}return d.prototype.toString=function(u){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(u))},d}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,D,i){"use strict";(function(){var y,p,S,v,m=function(u,o){for(var n in o)f.call(o,n)&&(u[n]=o[n]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;v=k("./Utility").isObject,S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(d){m(u,d);function u(o,n,t,a){if(u.__super__.constructor.call(this,o),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(a==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!n,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!v(a))this.value=this.stringify.dtdEntityValue(a),this.internal=!0;else{if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID)),a.nData!=null&&(this.nData=this.stringify.dtdNData(a.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(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},u}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,D,i){"use strict";(function(){var y,p,S,v=function(d,u){for(var o in u)m.call(u,o)&&(d[o]=u[o]);function n(){this.constructor=d}return n.prototype=u.prototype,d.prototype=new n,d.__super__=u.prototype,d},m={}.hasOwnProperty;S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){v(d,f);function d(u,o,n){if(d.__super__.constructor.call(this,u),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.name(o),this.type=y.NotationDeclaration,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.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}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,D,i){"use strict";(function(){var y,p,S,v,m=function(u,o){for(var n in o)f.call(o,n)&&(u[n]=o[n]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;v=k("./Utility").isObject,S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(d){m(u,d);function u(o,n,t,a){var e;u.__super__.constructor.call(this,o),v(n)&&(e=n,n=e.version,t=e.encoding,a=e.standalone),n||(n="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(n),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),a!=null&&(this.standalone=this.stringify.xmlStandalone(a))}return u.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},u}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,D,i){"use strict";(function(){var y,p,S,v,m,f,d,u,o,n=function(e,l){for(var r in l)t.call(l,r)&&(e[r]=l[r]);function s(){this.constructor=e}return s.prototype=l.prototype,e.prototype=new s,e.__super__=l.prototype,e},t={}.hasOwnProperty;o=k("./Utility").isObject,u=k("./XMLNode"),y=k("./NodeType"),p=k("./XMLDTDAttList"),v=k("./XMLDTDEntity"),S=k("./XMLDTDElement"),m=k("./XMLDTDNotation"),d=k("./XMLNamedNodeMap"),D.exports=f=function(a){n(e,a);function e(l,r,s){var c,h,g,A,b,w;if(e.__super__.constructor.call(this,l),this.type=y.DocType,l.children){for(A=l.children,h=0,g=A.length;h<g;h++)if(c=A[h],c.type===y.Element){this.name=c.name;break}}this.documentObject=l,o(r)&&(b=r,r=b.pubID,s=b.sysID),s==null&&(w=[r,s],s=w[0],r=w[1]),r!=null&&(this.pubID=this.stringify.dtdPubID(r)),s!=null&&(this.sysID=this.stringify.dtdSysID(s))}return Object.defineProperty(e.prototype,"entities",{get:function(){var r,s,c,h,g;for(h={},g=this.children,s=0,c=g.length;s<c;s++)r=g[s],r.type===y.EntityDeclaration&&!r.pe&&(h[r.name]=r);return new d(h)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var r,s,c,h,g;for(h={},g=this.children,s=0,c=g.length;s<c;s++)r=g[s],r.type===y.NotationDeclaration&&(h[r.name]=r);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,r){var s;return s=new S(this,l,r),this.children.push(s),this},e.prototype.attList=function(l,r,s,c,h){var g;return g=new p(this,l,r,s,c,h),this.children.push(g),this},e.prototype.entity=function(l,r){var s;return s=new v(this,!1,l,r),this.children.push(s),this},e.prototype.pEntity=function(l,r){var s;return s=new v(this,!0,l,r),this.children.push(s),this},e.prototype.notation=function(l,r){var s;return s=new m(this,l,r),this.children.push(s),this},e.prototype.toString=function(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))},e.prototype.ele=function(l,r){return this.element(l,r)},e.prototype.att=function(l,r,s,c,h){return this.attList(l,r,s,c,h)},e.prototype.ent=function(l,r){return this.entity(l,r)},e.prototype.pent=function(l,r){return this.pEntity(l,r)},e.prototype.not=function(l,r){return this.notation(l,r)},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(k,D,i){"use strict";(function(){var y,p,S,v,m,f,d,u,o=function(a,e){for(var l in e)n.call(e,l)&&(a[l]=e[l]);function r(){this.constructor=a}return r.prototype=e.prototype,a.prototype=new r,a.__super__=e.prototype,a},n={}.hasOwnProperty;u=k("./Utility").isPlainObject,S=k("./XMLDOMImplementation"),p=k("./XMLDOMConfiguration"),m=k("./XMLNode"),y=k("./NodeType"),d=k("./XMLStringifier"),f=k("./XMLStringWriter"),D.exports=v=function(t){o(a,t);function a(e){a.__super__.constructor.call(this,null),this.name="#document",this.type=y.Document,this.documentURI=null,this.domConfig=new p,e||(e={}),e.writer||(e.writer=new f),this.options=e,this.stringify=new d(e)}return Object.defineProperty(a.prototype,"implementation",{value:new S}),Object.defineProperty(a.prototype,"doctype",{get:function(){var l,r,s,c;for(c=this.children,r=0,s=c.length;r<s;r++)if(l=c[r],l.type===y.DocType)return l;return null}}),Object.defineProperty(a.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(a.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(a.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(a.prototype,"origin",{get:function(){return null}}),Object.defineProperty(a.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(a.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(a.prototype,"contentType",{get:function(){return null}}),a.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))},a.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},a.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.renameNode=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createNodeIterator=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createTreeWalker=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(k,D,i){"use strict";(function(){var y,p,S,v,m,f,d,u,o,n,t,a,e,l,r,s,c,h,g,A,b,w,x,T,_={}.hasOwnProperty;T=k("./Utility"),w=T.isObject,b=T.isFunction,x=T.isPlainObject,A=T.getValue,y=k("./NodeType"),a=k("./XMLDocument"),l=k("./XMLElement"),v=k("./XMLCData"),m=k("./XMLComment"),s=k("./XMLRaw"),g=k("./XMLText"),r=k("./XMLProcessingInstruction"),n=k("./XMLDeclaration"),t=k("./XMLDocType"),f=k("./XMLDTDAttList"),u=k("./XMLDTDEntity"),d=k("./XMLDTDElement"),o=k("./XMLDTDNotation"),S=k("./XMLAttribute"),h=k("./XMLStringifier"),c=k("./XMLStringWriter"),p=k("./WriterState"),D.exports=e=function(){function E(C,I,O){var F;this.name="?xml",this.type=y.Document,C||(C={}),F={},C.writer?x(C.writer)&&(F=C.writer,C.writer=new c):C.writer=new c,this.options=C,this.writer=C.writer,this.writerOptions=this.writer.filterOptions(F),this.stringify=new h(C),this.onDataCallback=I||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return E.prototype.createChildNode=function(C){var I,O,F,R,B,P,X,M;switch(C.type){case y.CData:this.cdata(C.value);break;case y.Comment:this.comment(C.value);break;case y.Element:F={},X=C.attribs;for(O in X){if(!_.call(X,O))continue;I=X[O],F[O]=I.value}this.node(C.name,F);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(C.value);break;case y.Text:this.text(C.value);break;case y.ProcessingInstruction:this.instruction(C.target,C.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+C.constructor.name)}for(M=C.children,B=0,P=M.length;B<P;B++)R=M[B],this.createChildNode(R),R.type===y.Element&&this.up();return this},E.prototype.dummy=function(){return this},E.prototype.node=function(C,I,O){var F;if(C==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(C));return this.openCurrent(),C=A(C),I==null&&(I={}),I=A(I),w(I)||(F=[I,O],O=F[0],I=F[1]),this.currentNode=new l(this,C,I),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null&&this.text(O),this},E.prototype.element=function(C,I,O){var F,R,B,P,X,M;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(C)||w(C)||b(C))for(P=this.options.noValidation,this.options.noValidation=!0,M=new a(this.options).element("TEMP_ROOT"),M.element(C),this.options.noValidation=P,X=M.children,R=0,B=X.length;R<B;R++)F=X[R],this.createChildNode(F),F.type===y.Element&&this.up();else this.node(C,I,O);return this},E.prototype.attribute=function(C,I){var O,F;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(C));if(C!=null&&(C=A(C)),w(C))for(O in C){if(!_.call(C,O))continue;F=C[O],this.attribute(O,F)}else b(I)&&(I=I.apply()),this.options.keepNullAttributes&&I==null?this.currentNode.attribs[C]=new S(this,C,""):I!=null&&(this.currentNode.attribs[C]=new S(this,C,I));return this},E.prototype.text=function(C){var I;return this.openCurrent(),I=new g(this,C),this.onData(this.writer.text(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.cdata=function(C){var I;return this.openCurrent(),I=new v(this,C),this.onData(this.writer.cdata(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.comment=function(C){var I;return this.openCurrent(),I=new m(this,C),this.onData(this.writer.comment(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.raw=function(C){var I;return this.openCurrent(),I=new s(this,C),this.onData(this.writer.raw(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.instruction=function(C,I){var O,F,R,B,P;if(this.openCurrent(),C!=null&&(C=A(C)),I!=null&&(I=A(I)),Array.isArray(C))for(O=0,B=C.length;O<B;O++)F=C[O],this.instruction(F);else if(w(C))for(F in C){if(!_.call(C,F))continue;R=C[F],this.instruction(F,R)}else b(I)&&(I=I.apply()),P=new r(this,C,I),this.onData(this.writer.processingInstruction(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},E.prototype.declaration=function(C,I,O){var F;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return F=new n(this,C,I,O),this.onData(this.writer.declaration(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.doctype=function(C,I,O){if(this.openCurrent(),C==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,I,O),this.currentNode.rootNodeName=C,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},E.prototype.dtdElement=function(C,I){var O;return this.openCurrent(),O=new d(this,C,I),this.onData(this.writer.dtdElement(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.attList=function(C,I,O,F,R){var B;return this.openCurrent(),B=new f(this,C,I,O,F,R),this.onData(this.writer.dtdAttList(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.entity=function(C,I){var O;return this.openCurrent(),O=new u(this,!1,C,I),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.pEntity=function(C,I){var O;return this.openCurrent(),O=new u(this,!0,C,I),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.notation=function(C,I){var O;return this.openCurrent(),O=new o(this,C,I),this.onData(this.writer.dtdNotation(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.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},E.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},E.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},E.prototype.openNode=function(C){var I,O,F,R;if(!C.isOpen){if(!this.root&&this.currentLevel===0&&C.type===y.Element&&(this.root=C),O="",C.type===y.Element){this.writerOptions.state=p.OpenTag,O=this.writer.indent(C,this.writerOptions,this.currentLevel)+"<"+C.name,R=C.attribs;for(F in R){if(!_.call(R,F))continue;I=R[F],O+=this.writer.attribute(I,this.writerOptions,this.currentLevel)}O+=(C.children?">":"/>")+this.writer.endline(C,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,O=this.writer.indent(C,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+C.rootNodeName,C.pubID&&C.sysID?O+=' PUBLIC "'+C.pubID+'" "'+C.sysID+'"':C.sysID&&(O+=' SYSTEM "'+C.sysID+'"'),C.children?(O+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,O+=">"),O+=this.writer.endline(C,this.writerOptions,this.currentLevel);return this.onData(O,this.currentLevel),C.isOpen=!0}},E.prototype.closeNode=function(C){var I;if(!C.isClosed)return I="",this.writerOptions.state=p.CloseTag,C.type===y.Element?I=this.writer.indent(C,this.writerOptions,this.currentLevel)+"</"+C.name+">"+this.writer.endline(C,this.writerOptions,this.currentLevel):I=this.writer.indent(C,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(C,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(I,this.currentLevel),C.isClosed=!0},E.prototype.onData=function(C,I){return this.documentStarted=!0,this.onDataCallback(C,I+1)},E.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},E.prototype.debugInfo=function(C){return C==null?"":"node: <"+C+">"},E.prototype.ele=function(){return this.element.apply(this,arguments)},E.prototype.nod=function(C,I,O){return this.node(C,I,O)},E.prototype.txt=function(C){return this.text(C)},E.prototype.dat=function(C){return this.cdata(C)},E.prototype.com=function(C){return this.comment(C)},E.prototype.ins=function(C,I){return this.instruction(C,I)},E.prototype.dec=function(C,I,O){return this.declaration(C,I,O)},E.prototype.dtd=function(C,I,O){return this.doctype(C,I,O)},E.prototype.e=function(C,I,O){return this.element(C,I,O)},E.prototype.n=function(C,I,O){return this.node(C,I,O)},E.prototype.t=function(C){return this.text(C)},E.prototype.d=function(C){return this.cdata(C)},E.prototype.c=function(C){return this.comment(C)},E.prototype.r=function(C){return this.raw(C)},E.prototype.i=function(C,I){return this.instruction(C,I)},E.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.ent=function(C,I){return this.entity(C,I)},E.prototype.pent=function(C,I){return this.pEntity(C,I)},E.prototype.not=function(C,I){return this.notation(C,I)},E}()}).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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f,d=function(n,t){for(var a in t)u.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},u={}.hasOwnProperty;f=k("./XMLNode"),v=k("./NodeType"),D.exports=m=function(o){d(n,o);function n(t){n.__super__.constructor.call(this,t),this.type=v.Dummy}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return""},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f,d,u,o,n,t,a,e=function(s,c){for(var h in c)l.call(c,h)&&(s[h]=c[h]);function g(){this.constructor=s}return g.prototype=c.prototype,s.prototype=new g,s.__super__=c.prototype,s},l={}.hasOwnProperty;a=k("./Utility"),t=a.isObject,n=a.isFunction,o=a.getValue,u=k("./XMLNode"),v=k("./NodeType"),m=k("./XMLAttribute"),d=k("./XMLNamedNodeMap"),D.exports=f=function(r){e(s,r);function s(c,h,g){var A,b,w,x;if(s.__super__.constructor.call(this,c),h==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(h),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,g!=null&&this.attribute(g),c.type===v.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(x=c.children,b=0,w=x.length;b<w;b++)if(A=x[b],A.type===v.DocType){A.name=this.name;break}}}return Object.defineProperty(s.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new d(this.attribs)),this.attributeMap}}),s.prototype.clone=function(){var c,h,g,A;g=(0,p.default)(this),g.isRoot&&(g.documentObject=null),g.attribs={},A=this.attribs;for(h in A){if(!l.call(A,h))continue;c=A[h],g.attribs[h]=c.clone()}return g.children=[],this.children.forEach(function(b){var w;return w=b.clone(),w.parent=g,g.children.push(w)}),g},s.prototype.attribute=function(c,h){var g,A;if(c!=null&&(c=o(c)),t(c))for(g in c){if(!l.call(c,g))continue;A=c[g],this.attribute(g,A)}else n(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},s.prototype.removeAttribute=function(c){var h,g,A;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=o(c),Array.isArray(c))for(g=0,A=c.length;g<A;g++)h=c[g],delete this.attribs[h];else delete this.attribs[c];return this},s.prototype.toString=function(c){return this.options.writer.element(this,this.options.writer.filterOptions(c))},s.prototype.att=function(c,h){return this.attribute(c,h)},s.prototype.a=function(c,h){return this.attribute(c,h)},s.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},s.prototype.setAttribute=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNode=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c]:null},s.prototype.setAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.removeAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.removeAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNodeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setAttributeNodeNS=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.hasAttribute=function(c){return this.attribs.hasOwnProperty(c)},s.prototype.hasAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttribute=function(c,h){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:h},s.prototype.setIdAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttributeNode=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByClassName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(c){var h,g,A;if(!s.__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,A=this.attribs.length-1;0<=A?g<=A:g>=A;h=0<=A?++g:--g)if(!this.attribs[h].isEqualNode(c.attribs[h]))return!1;return!0},s}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v;D.exports=v=function(){function m(f){this.nodes=f}return Object.defineProperty(m.prototype,"length",{get:function(){return(0,p.default)(this.nodes).length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.getNamedItem=function(f){return this.nodes[f]},m.prototype.setNamedItem=function(f){var d;return d=this.nodes[f.nodeName],this.nodes[f.nodeName]=f,d||null},m.prototype.removeNamedItem=function(f){var d;return d=this.nodes[f],delete this.nodes[f],d||null},m.prototype.item=function(f){return this.nodes[(0,p.default)(this.nodes)[f]]||null},m.prototype.getNamedItemNS=function(f,d){throw new Error("This DOM method is not implemented.")},m.prototype.setNamedItemNS=function(f){throw new Error("This DOM method is not implemented.")},m.prototype.removeNamedItemNS=function(f,d){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,D,i){"use strict";(function(){var y,p,S,v,m,f,d,u,o,n,t,a,e,l,r,s,c,h,g,A={}.hasOwnProperty;g=k("./Utility"),h=g.isObject,c=g.isFunction,s=g.isEmpty,r=g.getValue,u=null,S=null,v=null,m=null,f=null,e=null,l=null,a=null,d=null,p=null,t=null,o=null,y=null,D.exports=n=function(){function b(w){this.parent=w,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=k("./XMLElement"),S=k("./XMLCData"),v=k("./XMLComment"),m=k("./XMLDeclaration"),f=k("./XMLDocType"),e=k("./XMLRaw"),l=k("./XMLText"),a=k("./XMLProcessingInstruction"),d=k("./XMLDummy"),p=k("./NodeType"),t=k("./XMLNodeList"),o=k("./XMLNamedNodeMap"),y=k("./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 x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var x,T,_,E,C;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(C="",E=this.children,T=0,_=E.length;T<_;T++)x=E[T],x.textContent&&(C+=x.textContent);return C}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(w){var x,T,_,E,C;for(this.parent=w,w&&(this.options=w.options,this.stringify=w.stringify),E=this.children,C=[],T=0,_=E.length;T<_;T++)x=E[T],C.push(x.setParent(this));return C},b.prototype.element=function(w,x,T){var _,E,C,I,O,F,R,B,P,X,M;if(F=null,x===null&&T==null&&(P=[{},null],x=P[0],T=P[1]),x==null&&(x={}),x=r(x),h(x)||(X=[x,T],T=X[0],x=X[1]),w!=null&&(w=r(w)),Array.isArray(w))for(C=0,R=w.length;C<R;C++)E=w[C],F=this.element(E);else if(c(w))F=this.element(w.apply());else if(h(w))for(O in w){if(!A.call(w,O))continue;if(M=w[O],c(M)&&(M=M.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&O.indexOf(this.stringify.convertAttKey)===0)F=this.attribute(O.substr(this.stringify.convertAttKey.length),M);else if(!this.options.separateArrayItems&&Array.isArray(M)&&s(M))F=this.dummy();else if(h(M)&&s(M))F=this.element(O);else if(!this.options.keepNullNodes&&M==null)F=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(M))for(I=0,B=M.length;I<B;I++)E=M[I],_={},_[O]=E,F=this.element(_);else h(M)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&O.indexOf(this.stringify.convertTextKey)===0?F=this.element(M):(F=this.element(O),F.element(M)):F=this.element(O,M)}else!this.options.keepNullNodes&&T===null?F=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&w.indexOf(this.stringify.convertTextKey)===0?F=this.text(T):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&w.indexOf(this.stringify.convertCDataKey)===0?F=this.cdata(T):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&w.indexOf(this.stringify.convertCommentKey)===0?F=this.comment(T):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&w.indexOf(this.stringify.convertRawKey)===0?F=this.raw(T):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&w.indexOf(this.stringify.convertPIKey)===0?F=this.instruction(w.substr(this.stringify.convertPIKey.length),T):F=this.node(w,x,T);if(F==null)throw new Error("Could not create any elements with: "+w+". "+this.debugInfo());return F},b.prototype.insertBefore=function(w,x,T){var _,E,C,I,O;if(w!=null?w.type:void 0)return C=w,I=x,C.setParent(this),I?(E=children.indexOf(I),O=children.splice(E),children.push(C),Array.prototype.push.apply(children,O)):children.push(C),C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return E=this.parent.children.indexOf(this),O=this.parent.children.splice(E),_=this.parent.element(w,x,T),Array.prototype.push.apply(this.parent.children,O),_},b.prototype.insertAfter=function(w,x,T){var _,E,C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return E=this.parent.children.indexOf(this),C=this.parent.children.splice(E+1),_=this.parent.element(w,x,T),Array.prototype.push.apply(this.parent.children,C),_},b.prototype.remove=function(){var w,x;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return w=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[w,w-w+1].concat(x=[])),this.parent},b.prototype.node=function(w,x,T){var _,E;return w!=null&&(w=r(w)),x||(x={}),x=r(x),h(x)||(E=[x,T],T=E[0],x=E[1]),_=new u(this,w,x),T!=null&&_.text(T),this.children.push(_),_},b.prototype.text=function(w){var x;return h(w)&&this.element(w),x=new l(this,w),this.children.push(x),this},b.prototype.cdata=function(w){var x;return x=new S(this,w),this.children.push(x),this},b.prototype.comment=function(w){var x;return x=new v(this,w),this.children.push(x),this},b.prototype.commentBefore=function(w){var x,T,_;return T=this.parent.children.indexOf(this),_=this.parent.children.splice(T),x=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(w){var x,T,_;return T=this.parent.children.indexOf(this),_=this.parent.children.splice(T+1),x=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(w){var x;return x=new e(this,w),this.children.push(x),this},b.prototype.dummy=function(){var w;return w=new d(this),w},b.prototype.instruction=function(w,x){var T,_,E,C,I;if(w!=null&&(w=r(w)),x!=null&&(x=r(x)),Array.isArray(w))for(C=0,I=w.length;C<I;C++)T=w[C],this.instruction(T);else if(h(w))for(T in w){if(!A.call(w,T))continue;_=w[T],this.instruction(T,_)}else c(x)&&(x=x.apply()),E=new a(this,w,x),this.children.push(E);return this},b.prototype.instructionBefore=function(w,x){var T,_,E;return _=this.parent.children.indexOf(this),E=this.parent.children.splice(_),T=this.parent.instruction(w,x),Array.prototype.push.apply(this.parent.children,E),this},b.prototype.instructionAfter=function(w,x){var T,_,E;return _=this.parent.children.indexOf(this),E=this.parent.children.splice(_+1),T=this.parent.instruction(w,x),Array.prototype.push.apply(this.parent.children,E),this},b.prototype.declaration=function(w,x,T){var _,E;return _=this.document(),E=new m(_,w,x,T),_.children.length===0?_.children.unshift(E):_.children[0].type===p.Declaration?_.children[0]=E:_.children.unshift(E),_.root()||_},b.prototype.dtd=function(w,x){var T,_,E,C,I,O,F,R,B,P;for(_=this.document(),E=new f(_,w,x),B=_.children,C=I=0,F=B.length;I<F;C=++I)if(T=B[C],T.type===p.DocType)return _.children[C]=E,E;for(P=_.children,C=O=0,R=P.length;O<R;C=++O)if(T=P[C],T.isRoot)return _.children.splice(C,0,E),E;return _.children.push(E),E},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 w;for(w=this;w;){if(w.type===p.Document)return w.rootObject;if(w.isRoot)return w;w=w.parent}},b.prototype.document=function(){var w;for(w=this;w;){if(w.type===p.Document)return w;w=w.parent}},b.prototype.end=function(w){return this.document().end(w)},b.prototype.prev=function(){var w;if(w=this.parent.children.indexOf(this),w<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[w-1]},b.prototype.next=function(){var w;if(w=this.parent.children.indexOf(this),w===-1||w===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[w+1]},b.prototype.importDocument=function(w){var x;return x=w.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this},b.prototype.debugInfo=function(w){var x,T;return w=w||this.name,w==null&&!((x=this.parent)!=null?x.name:void 0)?"":w==null?"parent: <"+this.parent.name+">":((T=this.parent)!=null?T.name:void 0)?"node: <"+w+">, parent: <"+this.parent.name+">":"node: <"+w+">"},b.prototype.ele=function(w,x,T){return this.element(w,x,T)},b.prototype.nod=function(w,x,T){return this.node(w,x,T)},b.prototype.txt=function(w){return this.text(w)},b.prototype.dat=function(w){return this.cdata(w)},b.prototype.com=function(w){return this.comment(w)},b.prototype.ins=function(w,x){return this.instruction(w,x)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(w,x,T){return this.declaration(w,x,T)},b.prototype.e=function(w,x,T){return this.element(w,x,T)},b.prototype.n=function(w,x,T){return this.node(w,x,T)},b.prototype.t=function(w){return this.text(w)},b.prototype.d=function(w){return this.cdata(w)},b.prototype.c=function(w){return this.comment(w)},b.prototype.r=function(w){return this.raw(w)},b.prototype.i=function(w,x){return this.instruction(w,x)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(w){return this.importDocument(w)},b.prototype.replaceChild=function(w,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(w){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(w,x){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(w){var x,T;return x=this,x===w?0:this.document()!==w.document()?(T=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?T|=y.Preceding:T|=y.Following,T):x.isAncestor(w)?y.Contains|y.Preceding:x.isDescendant(w)?y.Contains|y.Following:x.isPreceding(w)?y.Preceding:y.Following},b.prototype.isSameNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(w){var x,T,_;if(w.nodeType!==this.nodeType)return!1;if(w.children.length!==this.children.length)return!1;for(x=T=0,_=this.children.length-1;0<=_?T<=_:T>=_;x=0<=_?++T:--T)if(!this.children[x].isEqualNode(w.children[x]))return!1;return!0},b.prototype.getFeature=function(w,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(w,x,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(w){return w?w===this||this.isDescendant(w):!1},b.prototype.isDescendant=function(w){var x,T,_,E,C;for(C=this.children,_=0,E=C.length;_<E;_++){if(x=C[_],w===x)return!0;if(T=x.isDescendant(w),T)return!0}return!1},b.prototype.isAncestor=function(w){return w.isDescendant(this)},b.prototype.isPreceding=function(w){var x,T;return x=this.treePosition(w),T=this.treePosition(this),x===-1||T===-1?!1:x<T},b.prototype.isFollowing=function(w){var x,T;return x=this.treePosition(w),T=this.treePosition(this),x===-1||T===-1?!1:x>T},b.prototype.treePosition=function(w){var x,T;return T=0,x=!1,this.foreachTreeNode(this.document(),function(_){if(T++,!x&&_===w)return x=!0}),x?T:-1},b.prototype.foreachTreeNode=function(w,x){var T,_,E,C,I;for(w||(w=this.document()),C=w.children,_=0,E=C.length;_<E;_++){if(T=C[_],I=x(T))return I;if(I=this.foreachTreeNode(T,x),I)return I}},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(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(S){this.nodes=S}return Object.defineProperty(p.prototype,"length",{get:function(){return this.nodes.length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.item=function(S){return this.nodes[S]||null},p}()}).call(void 0)},{}],275:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f,d=function(n,t){for(var a in t)u.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(n,o);function n(t,a,e){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=v.ProcessingInstruction,this.target=this.stringify.insTarget(a),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},n.prototype.isEqualNode=function(t){return n.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f,d=function(n,t){for(var a in t)u.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLNode"),D.exports=f=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=v.Raw,this.value=this.stringify.raw(a)}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,D,i){"use strict";(function(){var y,p,S,v,m=function(u,o){for(var n in o)f.call(o,n)&&(u[n]=o[n]);function t(){this.constructor=u}return t.prototype=o.prototype,u.prototype=new t,u.__super__=o.prototype,u},f={}.hasOwnProperty;y=k("./NodeType"),v=k("./XMLWriterBase"),p=k("./WriterState"),D.exports=S=function(d){m(u,d);function u(o,n){this.stream=o,u.__super__.constructor.call(this,n)}return u.prototype.endline=function(o,n,t){return o.isLastRootNode&&n.state===p.CloseTag?"":u.__super__.endline.call(this,o,n,t)},u.prototype.document=function(o,n){var t,a,e,l,r,s,c,h,g;for(c=o.children,a=e=0,r=c.length;e<r;a=++e)t=c[a],t.isLastRootNode=a===o.children.length-1;for(n=this.filterOptions(n),h=o.children,g=[],l=0,s=h.length;l<s;l++)t=h[l],g.push(this.writeChildNode(t,n,0));return g},u.prototype.attribute=function(o,n,t){return this.stream.write(u.__super__.attribute.call(this,o,n,t))},u.prototype.cdata=function(o,n,t){return this.stream.write(u.__super__.cdata.call(this,o,n,t))},u.prototype.comment=function(o,n,t){return this.stream.write(u.__super__.comment.call(this,o,n,t))},u.prototype.declaration=function(o,n,t){return this.stream.write(u.__super__.declaration.call(this,o,n,t))},u.prototype.docType=function(o,n,t){var a,e,l,r;if(t||(t=0),this.openNode(o,n,t),n.state=p.OpenTag,this.stream.write(this.indent(o,n,t)),this.stream.write("<!DOCTYPE "+o.root().name),o.pubID&&o.sysID?this.stream.write(' PUBLIC "'+o.pubID+'" "'+o.sysID+'"'):o.sysID&&this.stream.write(' SYSTEM "'+o.sysID+'"'),o.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(o,n,t)),n.state=p.InsideTag,r=o.children,e=0,l=r.length;e<l;e++)a=r[e],this.writeChildNode(a,n,t+1);n.state=p.CloseTag,this.stream.write("]")}return n.state=p.CloseTag,this.stream.write(n.spaceBeforeSlash+">"),this.stream.write(this.endline(o,n,t)),n.state=p.None,this.closeNode(o,n,t)},u.prototype.element=function(o,n,t){var a,e,l,r,s,c,h,g,A,b;t||(t=0),this.openNode(o,n,t),n.state=p.OpenTag,this.stream.write(this.indent(o,n,t)+"<"+o.name),A=o.attribs;for(h in A){if(!f.call(A,h))continue;a=A[h],this.attribute(a,n,t)}if(l=o.children.length,r=l===0?null:o.children[0],l===0||o.children.every(function(w){return(w.type===y.Text||w.type===y.Raw)&&w.value===""}))n.allowEmpty?(this.stream.write(">"),n.state=p.CloseTag,this.stream.write("</"+o.name+">")):(n.state=p.CloseTag,this.stream.write(n.spaceBeforeSlash+"/>"));else if(n.pretty&&l===1&&(r.type===y.Text||r.type===y.Raw)&&r.value!=null)this.stream.write(">"),n.state=p.InsideTag,n.suppressPrettyCount++,g=!0,this.writeChildNode(r,n,t+1),n.suppressPrettyCount--,g=!1,n.state=p.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,n,t)),n.state=p.InsideTag,b=o.children,s=0,c=b.length;s<c;s++)e=b[s],this.writeChildNode(e,n,t+1);n.state=p.CloseTag,this.stream.write(this.indent(o,n,t)+"</"+o.name+">")}return this.stream.write(this.endline(o,n,t)),n.state=p.None,this.closeNode(o,n,t)},u.prototype.processingInstruction=function(o,n,t){return this.stream.write(u.__super__.processingInstruction.call(this,o,n,t))},u.prototype.raw=function(o,n,t){return this.stream.write(u.__super__.raw.call(this,o,n,t))},u.prototype.text=function(o,n,t){return this.stream.write(u.__super__.text.call(this,o,n,t))},u.prototype.dtdAttList=function(o,n,t){return this.stream.write(u.__super__.dtdAttList.call(this,o,n,t))},u.prototype.dtdElement=function(o,n,t){return this.stream.write(u.__super__.dtdElement.call(this,o,n,t))},u.prototype.dtdEntity=function(o,n,t){return this.stream.write(u.__super__.dtdEntity.call(this,o,n,t))},u.prototype.dtdNotation=function(o,n,t){return this.stream.write(u.__super__.dtdNotation.call(this,o,n,t))},u}(v)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,D,i){"use strict";(function(){var y,p,S=function(f,d){for(var u in d)v.call(d,u)&&(f[u]=d[u]);function o(){this.constructor=f}return o.prototype=d.prototype,f.prototype=new o,f.__super__=d.prototype,f},v={}.hasOwnProperty;p=k("./XMLWriterBase"),D.exports=y=function(m){S(f,m);function f(d){f.__super__.constructor.call(this,d)}return f.prototype.document=function(d,u){var o,n,t,a,e;for(u=this.filterOptions(u),a="",e=d.children,n=0,t=e.length;n<t;n++)o=e[n],a+=this.writeChildNode(o,u,0);return u.pretty&&a.slice(-u.newline.length)===u.newline&&(a=a.slice(0,-u.newline.length)),a},f}(p)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,D,i){"use strict";(function(){var y,p=function(m,f){return function(){return m.apply(f,arguments)}},S={}.hasOwnProperty;D.exports=y=function(){function v(m){this.assertLegalName=p(this.assertLegalName,this),this.assertLegalChar=p(this.assertLegalChar,this);var f,d,u;m||(m={}),this.options=m,this.options.version||(this.options.version="1.0"),d=m.stringify||{};for(f in d){if(!S.call(d,f))continue;u=d[f],this[f]=u}}return v.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},v.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},v.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},v.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)},v.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},v.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},v.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.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)},v.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},v.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)},v.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},v.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},v.prototype.convertAttKey="@",v.prototype.convertPIKey="?",v.prototype.convertTextKey="#text",v.prototype.convertCDataKey="#cdata",v.prototype.convertCommentKey="#comment",v.prototype.convertRawKey="#raw",v.prototype.assertLegalChar=function(m){var f,d;if(this.options.noValidation)return m;if(f="",this.options.version==="1.0"){if(f=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=m.match(f))throw new Error("Invalid character in string: "+m+" at index "+d.index)}else if(this.options.version==="1.1"&&(f=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=m.match(f)))throw new Error("Invalid character in string: "+m+" at index "+d.index);return m},v.prototype.assertLegalName=function(m){var f;if(this.options.noValidation)return m;if(this.assertLegalChar(m),f=/^([: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(f))throw new Error("Invalid character in name");return m},v.prototype.textEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},v.prototype.attEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},v}()}).call(void 0)},{}],280:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(v){return v&&v.__esModule?v:{default:v}}(function(){var v,m,f,d=function(n,t){for(var a in t)u.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},u={}.hasOwnProperty;v=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=v.Text,this.value=this.stringify.text(a)}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var a,e,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,a=this.nextSibling;a;)l=l+a.data,a=a.nextSibling;return l}}),n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},n.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,D,i){"use strict";(function(){var y,p,S,v,m,f,d,u,o,n,t,a,e,l,r,s,c,h={}.hasOwnProperty;c=k("./Utility").assign,y=k("./NodeType"),o=k("./XMLDeclaration"),n=k("./XMLDocType"),S=k("./XMLCData"),v=k("./XMLComment"),a=k("./XMLElement"),l=k("./XMLRaw"),r=k("./XMLText"),e=k("./XMLProcessingInstruction"),t=k("./XMLDummy"),m=k("./XMLDTDAttList"),f=k("./XMLDTDElement"),d=k("./XMLDTDEntity"),u=k("./XMLDTDNotation"),p=k("./WriterState"),D.exports=s=function(){function g(A){var b,w,x;A||(A={}),this.options=A,w=A.writer||{};for(b in w){if(!h.call(w,b))continue;x=w[b],this["_"+b]=this[b],this[b]=x}}return g.prototype.filterOptions=function(A){var b,w,x,T,_,E,C,I;return A||(A={}),A=c({},this.options,A),b={writer:this},b.pretty=A.pretty||!1,b.allowEmpty=A.allowEmpty||!1,b.indent=(w=A.indent)!=null?w:" ",b.newline=(x=A.newline)!=null?x:`
`,b.offset=(T=A.offset)!=null?T:0,b.dontPrettyTextNodes=(_=(E=A.dontPrettyTextNodes)!=null?E:A.dontprettytextnodes)!=null?_:0,b.spaceBeforeSlash=(C=(I=A.spaceBeforeSlash)!=null?I:A.spacebeforeslash)!=null?C:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=p.None,b},g.prototype.indent=function(A,b,w){var x;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(x=(w||0)+b.offset+1,x>0)?new Array(x).join(b.indent):""},g.prototype.endline=function(A,b,w){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(A,b,w){var x;return this.openAttribute(A,b,w),x=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,b,w),x},g.prototype.cdata=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<![CDATA[",b.state=p.InsideTag,x+=A.value,b.state=p.CloseTag,x+="]]>"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.comment=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<!-- ",b.state=p.InsideTag,x+=A.value,b.state=p.CloseTag,x+=" -->"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.declaration=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<?xml",b.state=p.InsideTag,x+=' version="'+A.version+'"',A.encoding!=null&&(x+=' encoding="'+A.encoding+'"'),A.standalone!=null&&(x+=' standalone="'+A.standalone+'"'),b.state=p.CloseTag,x+=b.spaceBeforeSlash+"?>",x+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.docType=function(A,b,w){var x,T,_,E,C;if(w||(w=0),this.openNode(A,b,w),b.state=p.OpenTag,E=this.indent(A,b,w),E+="<!DOCTYPE "+A.root().name,A.pubID&&A.sysID?E+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(E+=' SYSTEM "'+A.sysID+'"'),A.children.length>0){for(E+=" [",E+=this.endline(A,b,w),b.state=p.InsideTag,C=A.children,T=0,_=C.length;T<_;T++)x=C[T],E+=this.writeChildNode(x,b,w+1);b.state=p.CloseTag,E+="]"}return b.state=p.CloseTag,E+=b.spaceBeforeSlash+">",E+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),E},g.prototype.element=function(A,b,w){var x,T,_,E,C,I,O,F,R,B,P,X,M,z;w||(w=0),B=!1,P="",this.openNode(A,b,w),b.state=p.OpenTag,P+=this.indent(A,b,w)+"<"+A.name,X=A.attribs;for(R in X){if(!h.call(X,R))continue;x=X[R],P+=this.attribute(x,b,w)}if(_=A.children.length,E=_===0?null:A.children[0],_===0||A.children.every(function(W){return(W.type===y.Text||W.type===y.Raw)&&W.value===""}))b.allowEmpty?(P+=">",b.state=p.CloseTag,P+="</"+A.name+">"+this.endline(A,b,w)):(b.state=p.CloseTag,P+=b.spaceBeforeSlash+"/>"+this.endline(A,b,w));else if(b.pretty&&_===1&&(E.type===y.Text||E.type===y.Raw)&&E.value!=null)P+=">",b.state=p.InsideTag,b.suppressPrettyCount++,B=!0,P+=this.writeChildNode(E,b,w+1),b.suppressPrettyCount--,B=!1,b.state=p.CloseTag,P+="</"+A.name+">"+this.endline(A,b,w);else{if(b.dontPrettyTextNodes){for(M=A.children,C=0,O=M.length;C<O;C++)if(T=M[C],(T.type===y.Text||T.type===y.Raw)&&T.value!=null){b.suppressPrettyCount++,B=!0;break}}for(P+=">"+this.endline(A,b,w),b.state=p.InsideTag,z=A.children,I=0,F=z.length;I<F;I++)T=z[I],P+=this.writeChildNode(T,b,w+1);b.state=p.CloseTag,P+=this.indent(A,b,w)+"</"+A.name+">",B&&b.suppressPrettyCount--,P+=this.endline(A,b,w),b.state=p.None}return this.closeNode(A,b,w),P},g.prototype.writeChildNode=function(A,b,w){switch(A.type){case y.CData:return this.cdata(A,b,w);case y.Comment:return this.comment(A,b,w);case y.Element:return this.element(A,b,w);case y.Raw:return this.raw(A,b,w);case y.Text:return this.text(A,b,w);case y.ProcessingInstruction:return this.processingInstruction(A,b,w);case y.Dummy:return"";case y.Declaration:return this.declaration(A,b,w);case y.DocType:return this.docType(A,b,w);case y.AttributeDeclaration:return this.dtdAttList(A,b,w);case y.ElementDeclaration:return this.dtdElement(A,b,w);case y.EntityDeclaration:return this.dtdEntity(A,b,w);case y.NotationDeclaration:return this.dtdNotation(A,b,w);default:throw new Error("Unknown XML node type: "+A.constructor.name)}},g.prototype.processingInstruction=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<?",b.state=p.InsideTag,x+=A.target,A.value&&(x+=" "+A.value),b.state=p.CloseTag,x+=b.spaceBeforeSlash+"?>",x+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.raw=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w),b.state=p.InsideTag,x+=A.value,b.state=p.CloseTag,x+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.text=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w),b.state=p.InsideTag,x+=A.value,b.state=p.CloseTag,x+=this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.dtdAttList=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<!ATTLIST",b.state=p.InsideTag,x+=" "+A.elementName+" "+A.attributeName+" "+A.attributeType,A.defaultValueType!=="#DEFAULT"&&(x+=" "+A.defaultValueType),A.defaultValue&&(x+=' "'+A.defaultValue+'"'),b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.dtdElement=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<!ELEMENT",b.state=p.InsideTag,x+=" "+A.name+" "+A.value,b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.dtdEntity=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<!ENTITY",b.state=p.InsideTag,A.pe&&(x+=" %"),x+=" "+A.name,A.value?x+=' "'+A.value+'"':(A.pubID&&A.sysID?x+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(x+=' SYSTEM "'+A.sysID+'"'),A.nData&&(x+=" NDATA "+A.nData)),b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.dtdNotation=function(A,b,w){var x;return this.openNode(A,b,w),b.state=p.OpenTag,x=this.indent(A,b,w)+"<!NOTATION",b.state=p.InsideTag,x+=" "+A.name,A.pubID&&A.sysID?x+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.pubID?x+=' PUBLIC "'+A.pubID+'"':A.sysID&&(x+=' SYSTEM "'+A.sysID+'"'),b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(A,b,w),b.state=p.None,this.closeNode(A,b,w),x},g.prototype.openNode=function(A,b,w){},g.prototype.closeNode=function(A,b,w){},g.prototype.openAttribute=function(A,b,w){},g.prototype.closeAttribute=function(A,b,w){},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(k,D,i){"use strict";(function(){var y,p,S,v,m,f,d,u,o,n;n=k("./Utility"),u=n.assign,o=n.isFunction,S=k("./XMLDOMImplementation"),v=k("./XMLDocument"),m=k("./XMLDocumentCB"),d=k("./XMLStringWriter"),f=k("./XMLStreamWriter"),y=k("./NodeType"),p=k("./WriterState"),D.exports.create=function(t,a,e,l){var r,s;if(t==null)throw new Error("Root element needs a name.");return l=u({},a,e,l),r=new v(l),s=r.element(t),l.headless||(r.declaration(l),(l.pubID!=null||l.sysID!=null)&&r.dtd(l)),s},D.exports.begin=function(t,a,e){var l;return o(t)&&(l=[t,a],a=l[0],e=l[1],t={}),a?new m(t,a,e):new v(t)},D.exports.stringWriter=function(t){return new d(t)},D.exports.streamWriter=function(t,a){return new f(t,a)},D.exports.implementation=new S,D.exports.nodeType=y,D.exports.writerState=p}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(k,D,i){D.exports=p;var y=Object.prototype.hasOwnProperty;function p(){for(var S={},v=0;v<arguments.length;v++){var m=arguments[v];for(var f in m)y.call(m,f)&&(S[f]=m[f])}return S}},{}],284:[function(k,D,i){"use strict";var y=k("buffer").Buffer,p=k("./sha"),S=k("./md5"),v={sha1:p,md5:S},m=64,f=y.alloc(m);f.fill(0);function d(n,t,a){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(a)||(a=y.from(a)),t.length>m?t=n(t):t.length<m&&(t=y.concat([t,f],m));for(var e=y.alloc(m),l=y.alloc(m),r=0;r<m;r++)e[r]=t[r]^54,l[r]=t[r]^92;var s=n(y.concat([e,a]));return n(y.concat([l,s]))}function u(n,t){n=n||"sha1";var a=v[n],e=[],l=0;return a||o("algorithm:",n,"is not yet supported"),{update:function(s){return y.isBuffer(s)||(s=y.from(s)),e.push(s),l+=s.length,this},digest:function(s){var c=y.concat(e),h=t?d(a,t,c):a(c);return e=null,s?h.toString(s):h}}}function o(){var n=[].slice.call(arguments).join(" ");throw new Error([n,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}i.createHash=function(n){return u(n)},i.createHmac=function(n,t){return u(n,t)},i.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},i.createCipher=function(){o("sorry,createCipher is not implemented yet")},i.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},i.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},i.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},i.createSign=function(){o("sorry,createSign is not implemented yet")},i.createVerify=function(){o("sorry,createVerify is not implemented yet")},i.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},i.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,D,i){"use strict";var y=k("buffer").Buffer,p=4,S=y.alloc(p);S.fill(0);var v=8;function m(u,o){if(u.length%p!==0){var n=u.length+(p-u.length%p);u=y.concat([u,S],n)}for(var t=[],a=o?u.readInt32BE:u.readInt32LE,e=0;e<u.length;e+=p)t.push(a.call(u,e));return t}function f(u,o,n){for(var t=y.alloc(o),a=n?t.writeInt32BE:t.writeInt32LE,e=0;e<u.length;e++)a.call(t,u[e],e*4,!0);return t}function d(u,o,n,t){y.isBuffer(u)||(u=y.from(u));var a=o(m(u,t),u.length*v);return f(a,n,t)}D.exports={hash:d}},{buffer:73}],286:[function(k,D,i){"use strict";var y=k("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function S(t,a){t[a>>5]|=128<<a%32,t[(a+64>>>9<<4)+14]=a;for(var e=1732584193,l=-271733879,r=-1732584194,s=271733878,c=0;c<t.length;c+=16){var h=e,g=l,A=r,b=s;e=m(e,l,r,s,t[c+0],7,-680876936),s=m(s,e,l,r,t[c+1],12,-389564586),r=m(r,s,e,l,t[c+2],17,606105819),l=m(l,r,s,e,t[c+3],22,-1044525330),e=m(e,l,r,s,t[c+4],7,-176418897),s=m(s,e,l,r,t[c+5],12,1200080426),r=m(r,s,e,l,t[c+6],17,-1473231341),l=m(l,r,s,e,t[c+7],22,-45705983),e=m(e,l,r,s,t[c+8],7,1770035416),s=m(s,e,l,r,t[c+9],12,-1958414417),r=m(r,s,e,l,t[c+10],17,-42063),l=m(l,r,s,e,t[c+11],22,-1990404162),e=m(e,l,r,s,t[c+12],7,1804603682),s=m(s,e,l,r,t[c+13],12,-40341101),r=m(r,s,e,l,t[c+14],17,-1502002290),l=m(l,r,s,e,t[c+15],22,1236535329),e=f(e,l,r,s,t[c+1],5,-165796510),s=f(s,e,l,r,t[c+6],9,-1069501632),r=f(r,s,e,l,t[c+11],14,643717713),l=f(l,r,s,e,t[c+0],20,-373897302),e=f(e,l,r,s,t[c+5],5,-701558691),s=f(s,e,l,r,t[c+10],9,38016083),r=f(r,s,e,l,t[c+15],14,-660478335),l=f(l,r,s,e,t[c+4],20,-405537848),e=f(e,l,r,s,t[c+9],5,568446438),s=f(s,e,l,r,t[c+14],9,-1019803690),r=f(r,s,e,l,t[c+3],14,-187363961),l=f(l,r,s,e,t[c+8],20,1163531501),e=f(e,l,r,s,t[c+13],5,-1444681467),s=f(s,e,l,r,t[c+2],9,-51403784),r=f(r,s,e,l,t[c+7],14,1735328473),l=f(l,r,s,e,t[c+12],20,-1926607734),e=d(e,l,r,s,t[c+5],4,-378558),s=d(s,e,l,r,t[c+8],11,-2022574463),r=d(r,s,e,l,t[c+11],16,1839030562),l=d(l,r,s,e,t[c+14],23,-35309556),e=d(e,l,r,s,t[c+1],4,-1530992060),s=d(s,e,l,r,t[c+4],11,1272893353),r=d(r,s,e,l,t[c+7],16,-155497632),l=d(l,r,s,e,t[c+10],23,-1094730640),e=d(e,l,r,s,t[c+13],4,681279174),s=d(s,e,l,r,t[c+0],11,-358537222),r=d(r,s,e,l,t[c+3],16,-722521979),l=d(l,r,s,e,t[c+6],23,76029189),e=d(e,l,r,s,t[c+9],4,-640364487),s=d(s,e,l,r,t[c+12],11,-421815835),r=d(r,s,e,l,t[c+15],16,530742520),l=d(l,r,s,e,t[c+2],23,-995338651),e=u(e,l,r,s,t[c+0],6,-198630844),s=u(s,e,l,r,t[c+7],10,1126891415),r=u(r,s,e,l,t[c+14],15,-1416354905),l=u(l,r,s,e,t[c+5],21,-57434055),e=u(e,l,r,s,t[c+12],6,1700485571),s=u(s,e,l,r,t[c+3],10,-1894986606),r=u(r,s,e,l,t[c+10],15,-1051523),l=u(l,r,s,e,t[c+1],21,-2054922799),e=u(e,l,r,s,t[c+8],6,1873313359),s=u(s,e,l,r,t[c+15],10,-30611744),r=u(r,s,e,l,t[c+6],15,-1560198380),l=u(l,r,s,e,t[c+13],21,1309151649),e=u(e,l,r,s,t[c+4],6,-145523070),s=u(s,e,l,r,t[c+11],10,-1120210379),r=u(r,s,e,l,t[c+2],15,718787259),l=u(l,r,s,e,t[c+9],21,-343485551),e=o(e,h),l=o(l,g),r=o(r,A),s=o(s,b)}return Array(e,l,r,s)}function v(t,a,e,l,r,s){return o(n(o(o(a,t),o(l,s)),r),e)}function m(t,a,e,l,r,s,c){return v(a&e|~a&l,t,a,r,s,c)}function f(t,a,e,l,r,s,c){return v(a&l|e&~l,t,a,r,s,c)}function d(t,a,e,l,r,s,c){return v(a^e^l,t,a,r,s,c)}function u(t,a,e,l,r,s,c){return v(e^(a|~l),t,a,r,s,c)}function o(t,a){var e=(t&65535)+(a&65535),l=(t>>16)+(a>>16)+(e>>16);return l<<16|e&65535}function n(t,a){return t<<a|t>>>32-a}D.exports=function(a){return y.hash(a,S,16)}},{"./helpers":285}],287:[function(k,D,i){"use strict";var y=k("./helpers");function p(d,u){d[u>>5]|=128<<24-u%32,d[(u+64>>9<<4)+15]=u;for(var o=Array(80),n=1732584193,t=-271733879,a=-1732584194,e=271733878,l=-1009589776,r=0;r<d.length;r+=16){for(var s=n,c=t,h=a,g=e,A=l,b=0;b<80;b++){b<16?o[b]=d[r+b]:o[b]=f(o[b-3]^o[b-8]^o[b-14]^o[b-16],1);var w=m(m(f(n,5),S(b,t,a,e)),m(m(l,o[b]),v(b)));l=e,e=a,a=f(t,30),t=n,n=w}n=m(n,s),t=m(t,c),a=m(a,h),e=m(e,g),l=m(l,A)}return Array(n,t,a,e,l)}function S(d,u,o,n){return d<20?u&o|~u&n:d<40?u^o^n:d<60?u&o|u&n|o&n:u^o^n}function v(d){return d<20?1518500249:d<40?1859775393:d<60?-1894007588:-899497514}function m(d,u){var o=(d&65535)+(u&65535),n=(d>>16)+(u>>16)+(o>>16);return n<<16|o&65535}function f(d,u){return d<<u|d>>>32-u}D.exports=function(u){return y.hash(u,p,20,!0)}},{"./helpers":285}],288:[function(k,D,i){"use strict";D.exports=function(){return function(){}}},{}],289:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),S=v(p);function v(n){return n&&n.__esModule?n:{default:n}}var m=k("stream"),f=m.Stream,d=k("../lib/common/utils/isArray"),u=d.isArray;D.exports.string=function(t){return typeof t=="string"},D.exports.array=u,D.exports.buffer=y.isBuffer;function o(n){return n instanceof f}D.exports.writableStream=function(t){return o(t)&&typeof t._write=="function"&&(0,S.default)(t._writableState)==="object"}}).call(this,{isBuffer:k("../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(k,D,i){"use strict";i.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(p){return y}},i.escape=k("escape-html"),i.timestamp=function(p){if(p){var S=p;return typeof S=="string"&&(S=Number(S)),String(p).length===10&&(S*=1e3),new Date(S)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/json/stringify"),v=d(S),m=k("babel-runtime/helpers/typeof"),f=d(m);function d(b){return b&&b.__esModule?b:{default:b}}var u=k("util"),o=k("url"),n=k("http"),t=k("https"),a=k("debug")("urllib"),e=k("humanize-ms"),l,r=0,s=Math.pow(2,31)-10,c=/^https?:\/\//i;function h(b,w){return b===void 0?w:b}function g(b,w){return function(x,T,_){if(x)return w(x);b({data:T,status:_.statusCode,headers:_.headers,res:_})}}i.TIMEOUTS=[e("300s"),e("300s")];var A=["json","text"];i.request=function(w,x,T){return arguments.length===2&&typeof x=="function"&&(T=x,x=null),typeof T=="function"?i.requestWithCallback(w,x,T):(l||(l=k("any-promise")),new l(function(_,E){i.requestWithCallback(w,x,g(_,E))}))},i.requestWithCallback=function(w,x,T){if(!w||typeof w!="string"&&(typeof w=="undefined"?"undefined":(0,f.default)(w))!=="object"){var _=u.format("expect request url to be a string or a http request options, but got %j",w);throw new Error(_)}arguments.length===2&&typeof x=="function"&&(T=x,x=null),x=x||{},r>=s&&(r=0);var E=++r;x.requestUrls=x.requestUrls||[];var C={requestId:E,url:w,args:x,ctx:x.ctx};x.emitter&&x.emitter.emit("request",C),x.timeout=x.timeout||i.TIMEOUTS,x.maxRedirects=x.maxRedirects||10,x.streaming=x.streaming||x.customResponse;var I=Date.now(),O;typeof w=="string"?(c.test(w)||(w="http://"+w),O=o.parse(w)):O=w;var F=(x.type||x.method||O.method||"GET").toUpperCase(),R=O.port||80,B=n,P=h(x.agent,i.agent),X=x.fixJSONCtlChars;O.protocol==="https:"&&(B=t,P=h(x.httpsAgent,i.httpsAgent),O.port||(R=443));var M={host:O.hostname||O.host||"localhost",path:O.path||"/",method:F,port:R,agent:P,headers:x.headers||{},lookup:x.lookup};Array.isArray(x.timeout)?M.requestTimeout=x.timeout[x.timeout.length-1]:typeof x.timeout!="undefined"&&(M.requestTimeout=x.timeout);for(var z=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],W=0;W<z.length;W++){var H=z[W];x.hasOwnProperty(H)&&(M[H]=x[H])}M.rejectUnauthorized===!1&&!M.hasOwnProperty("secureOptions")&&(M.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var V=x.auth||O.auth;V&&(M.auth=V);var Q=x.content||x.data,G=F==="GET"||F==="HEAD"||x.dataAsQueryString;if(!x.content&&(Q&&!(typeof Q=="string"||p.isBuffer(Q))))if(G)Q=x.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var ee=M.headers["Content-Type"]||M.headers["content-type"];ee||(x.contentType==="json"?ee="application/json":ee="application/x-www-form-urlencoded",M.headers["Content-Type"]=ee),parseContentType(ee).type==="application/json"?Q=(0,v.default)(Q):Q=x.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(M.path+=(O.query?"&":"?")+Q,Q=null);var q=0;if(Q){var se=Q.length;p.isBuffer(Q)||(se=p.byteLength(Q)),q=M.headers["Content-Length"]=se}x.dataType==="json"&&(M.headers.Accept="application/json"),typeof x.beforeRequest=="function"&&x.beforeRequest(M);var re=null,Ae=null,Te=null,Re=!1,Ge=!1,Ue=0,nt=-1,Le=!1,le="",Xe="",pe=null;x.timing&&(pe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Z(){re&&(clearTimeout(re),re=null)}function Y(){Ae&&(clearTimeout(Ae),Ae=null)}function ne(ke,st,Ve){if(Y(),!T){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),E,y.pid,M.method,w),ke&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),E,y.pid,ke.name,ke.message,ke.stack);return}var Ot=T;T=null;var Ut={};if(Ve&&(nt=Ve.statusCode,Ut=Ve.headers),nt===401&&Ut["www-authenticate"]&&(!x.headers||!x.headers.Authorization)&&x.digestAuth){var ir=Ut["www-authenticate"];if(ir.indexOf("Digest ")>=0)return a("Request#%d %s: got digest auth header WWW-Authenticate: %s",E,w,ir),x.headers=x.headers||{},x.headers.Authorization=digestAuthHeader(M.method,M.path,ir,x.digestAuth),a("Request#%d %s: auth with digest header: %s",E,w,x.headers.Authorization),Ve.headers["set-cookie"]&&(x.headers.Cookie=Ve.headers["set-cookie"].join(";")),i.requestWithCallback(w,x,Ot)}var lr=Date.now()-I;pe&&(pe.contentDownload=lr),a("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",lr,Ue,nt,M.method,M.host,M.path,Ge,pe);var Sr={status:nt,statusCode:nt,headers:Ut,size:Ue,aborted:Le,rt:lr,keepAliveSocket:Ge,data:st,requestUrls:x.requestUrls,timing:pe,remoteAddress:le,remotePort:Xe};if(ke){var mt="";P&&typeof P.getCurrentStatus=="function"&&(mt=", agent status: "+(0,v.default)(P.getCurrentStatus())),ke.message+=", "+M.method+" "+w+" "+nt+" (connected: "+Re+", keepalive socket: "+Ge+mt+`)
headers: `+(0,v.default)(Ut),ke.data=st,ke.path=M.path,ke.status=nt,ke.headers=Ut,ke.res=Sr}Ot(ke,st,x.streaming?Ve:Sr),x.emitter&&(C.url=w,C.socket=lt&&lt.connection,C.options=M,C.size=q,x.emitter.emit("response",{requestId:E,error:ke,ctx:x.ctx,req:C,res:Sr}))}function ce(ke){var st=null;if(x.followRedirect&&statuses.redirect[ke.statusCode]){x._followRedirectCount=(x._followRedirectCount||0)+1;var Ve=ke.headers.location;if(!Ve)st=new Error("Got statusCode "+ke.statusCode+" but cannot resolve next location from headers"),st.name="FollowRedirectError";else if(x._followRedirectCount>x.maxRedirects)st=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+w),st.name="MaxRedirectError";else{var Ot=x.formatRedirectUrl?x.formatRedirectUrl(w,Ve):o.resolve(w,Ve);a("Request#%d %s: `redirected` from %s to %s",E,M.path,w,Ot),Y(),x.headers&&x.headers.Host&&c.test(Ve)&&(x.headers.Host=null);var Ut=T;return T=null,i.requestWithCallback(Ot,x,Ut),{redirect:!0,error:null}}}return{redirect:!1,error:st}}!M.headers["User-Agent"]&&!M.headers["user-agent"]&&(M.headers["User-Agent"]=navigator.userAgent),x.gzip&&(!M.headers["Accept-Encoding"]&&!M.headers["accept-encoding"]&&(M.headers["Accept-Encoding"]="gzip"));function ye(ke,st,Ve){var Ot=ke.headers["content-encoding"];return Ve(null,st,Ot)}var Ee=x.writeStream;a("Request#%d %s %s with headers %j, options.path: %s",E,F,w,M.headers,M.path),x.requestUrls.push(w);function Ce(ke){if(pe&&(pe.waiting=Date.now()-I),a("Request#%d %s `req response` event emit: status %d, headers: %j",E,w,ke.statusCode,ke.headers),x.streaming){var st=ce(ke);if(st.redirect){ke.resume();return}return st.error?(ke.resume(),ne(st.error,null,ke)):ne(null,null,ke)}if(ke.on("close",function(){a("Request#%d %s: `res close` event emit, total size %d",E,w,Ue)}),ke.on("error",function(){a("Request#%d %s: `res error` event emit, total size %d",E,w,Ue)}),ke.on("aborted",function(){Le=!0,a("Request#%d %s: `res aborted` event emit, total size %d",E,w,Ue)}),Ee){var st=ce(ke);if(st.redirect){ke.resume();return}return st.error?(ke.resume(),Ee.end(),ne(st.error,null,ke)):(x.consumeWriteStream===!1?ke.on("end",ne.bind(null,null,null,ke)):isNode010||isNode012?first([[Ee,"close"],[ke,"aborted"]],function(Ut,ir,lr){a("Request#%d %s: writeStream or res %s event emitted",E,w,lr),ne(Te||null,null,ke)}):Ee.on("close",function(){a("Request#%d %s: writeStream close event emitted",E,w),ne(Te||null,null,ke)}),ke.pipe(Ee))}var Ve=[];ke.on("data",function(Ot){a("Request#%d %s: `res data` event emit, size %d",E,w,Ot.length),Ue+=Ot.length,Ve.push(Ot)}),ke.on("end",function(){var Ot=p.concat(Ve,Ue);if(a("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",E,w,Ue,ke._dumped),Te)return ne(Te,Ot,ke);var Ut=ce(ke);if(Ut.error)return ne(Ut.error,Ot,ke);if(Ut.redirect)return;ye(ke,Ot,function(ir,lr,Sr){if(ir)return ne(ir,Ot,ke);if(!Sr&&A.indexOf(x.dataType)>=0){try{lr=decodeBodyByCharset(lr,ke)}catch(or){return a("decodeBodyByCharset error: %s",or),ne(null,lr,ke)}if(x.dataType==="json")if(Ue===0)lr=null;else{var mt=parseJSON(lr,X);mt.error?ir=mt.error:lr=mt.data}}Le&&a("Request#%d %s: Remote socket was terminated before `response.end()` was called",E,w),ne(ir,lr,ke)})})}var ue,ge;Array.isArray(x.timeout)?(ue=e(x.timeout[0]),ge=e(x.timeout[1])):ue=ge=e(x.timeout),a("ConnectTimeout: %d, ResponseTimeout: %d",ue,ge);function Oe(){a("Connect timer ticking, timeout: %d",ue),re=setTimeout(function(){re=null,nt===-1&&(nt=-2);var ke="Connect timeout for "+ue+"ms",st="ConnectionTimeoutError";lt.socket||(st="SocketAssignTimeoutError",ke+=", working sockets is full"),Te=new Error(ke),Te.name=st,Te.requestId=E,a("ConnectTimeout: Request#%d %s %s: %s, connected: %s",E,w,Te.name,ke,Re),tt()},ue)}function Je(){a("Response timer ticking, timeout: %d",ge),Ae=setTimeout(function(){Ae=null;var ke="Response timeout for "+ge+"ms",st="ResponseTimeoutError";Te=new Error(ke),Te.name=st,Te.requestId=E,a("ResponseTimeout: Request#%d %s %s: %s, connected: %s",E,w,Te.name,ke,Re),tt()},ge)}var lt;M.mode=x.mode?x.mode:"";try{lt=B.request(M,Ce)}catch(ke){return ne(ke)}typeof window=="undefined"?Oe():lt.on("requestTimeout",function(){nt===-1&&(nt=-2);var ke="Connect timeout for "+ue+"ms",st="ConnectionTimeoutError";Te=new Error(ke),Te.name=st,Te.requestId=E,tt()});function tt(){a("Request#%d %s abort, connected: %s",E,w,Re),lt.socket||(Te.noSocket=!0,ne(Te)),lt.abort()}return pe&&lt.on("finish",function(){pe.requestSent=Date.now()-I}),lt.once("socket",function(ke){pe&&(pe.queuing=Date.now()-I),isNode010&&ke.socket&&(ke=ke.socket);var st=ke.readyState;if(st==="opening"){ke.once("lookup",function(Ve,Ot,Ut){a("Request#%d %s lookup: %s, %s, %s",E,w,Ve,Ot,Ut),pe&&(pe.dnslookup=Date.now()-I),Ot&&(le=Ot)}),ke.once("connect",function(){pe&&(pe.connected=Date.now()-I),Z(),Je(),a("Request#%d %s new socket connected",E,w),Re=!0,le||(le=ke.remoteAddress),Xe=ke.remotePort});return}a("Request#%d %s reuse socket connected, readyState: %s",E,w,st),Re=!0,Ge=!0,le||(le=ke.remoteAddress),Xe=ke.remotePort,Z(),Je()}),lt.on("error",function(ke){(ke.name==="Error"||ke.name==="TypeError")&&(ke.name=Re?"ResponseError":"RequestError"),ke.message+=' (req "error")',a("Request#%d %s `req error` event emit, %s: %s",E,w,ke.name,ke.message),ne(Te||ke)}),Ee&&Ee.once("error",function(ke){ke.message+=' (writeStream "error")',Te=ke,a("Request#%d %s `writeStream error` event emit, %s: %s",E,w,ke.name,ke.message),tt()}),x.stream?(x.stream.pipe(lt),x.stream.once("error",function(ke){ke.message+=' (stream "error")',Te=ke,a("Request#%d %s `readStream error` event emit, %s: %s",E,w,ke.name,ke.message),tt()})):lt.end(Q),lt.requestId=E,lt}}).call(this,k("_process"),k("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"))},n1HI:function(k,D,i){var y=i("hX1E"),p=y.normalizeRadian,S=Math.PI*2;function v(m,f,d,u,o,n,t,a,e){if(t===0)return!1;var l=t;a-=m,e-=f;var r=Math.sqrt(a*a+e*e);if(r-l>d||r+l<d)return!1;if(Math.abs(u-o)%S<1e-4)return!0;if(n){var s=u;u=p(o),o=p(s)}else u=p(u),o=p(o);u>o&&(o+=S);var c=Math.atan2(e,a);return c<0&&(c+=S),c>=u&&c<=o||c+S>=u&&c+S<=o}D.containStroke=v},n4Lv:function(k,D,i){var y=i("7hqr"),p=y.isDimensionStacked,S=i("bYtY"),v=S.map;function m(u,o,n){var t=u.getBaseAxis(),a=u.getOtherAxis(t),e=f(a,n),l=t.dim,r=a.dim,s=o.mapDimension(r),c=o.mapDimension(l),h=r==="x"||r==="radius"?1:0,g=v(u.dimensions,function(w){return o.mapDimension(w)}),A,b=o.getCalculationInfo("stackResultDimension");return(A|=p(o,g[0]))&&(g[0]=b),(A|=p(o,g[1]))&&(g[1]=b),{dataDimsForPoint:g,valueStart:e,valueAxisDim:r,baseAxisDim:l,stacked:!!A,valueDim:s,baseDim:c,baseDataOffset:h,stackedOverDimension:o.getCalculationInfo("stackedOverDimension")}}function f(u,o){var n=0,t=u.scale.getExtent();return o==="start"?n=t[0]:o==="end"?n=t[1]:t[0]>0?n=t[0]:t[1]<0&&(n=t[1]),n}function d(u,o,n,t){var a=NaN;u.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),t)),isNaN(a)&&(a=u.valueStart);var e=u.baseDataOffset,l=[];return l[e]=n.get(u.baseDim,t),l[1-e]=a,o.dataToPoint(l)}D.prepareDataCoordInfo=m,D.getStackedOnPoint=d},n6Mw:function(k,D,i){var y=i("SrGk"),p=i("bYtY"),S=i("Fofx");function v(f,d){y.call(this,f,d,"clipPath","__clippath_in_use__")}p.inherits(v,y),v.prototype.update=function(f){var d=this.getSvgElement(f);d&&this.updateDom(d,f.__clipPaths,!1);var u=this.getTextSvgElement(f);u&&this.updateDom(u,f.__clipPaths,!0),this.markUsed(f)},v.prototype.updateDom=function(f,d,u){if(d&&d.length>0){var o=this.getDefs(!0),n=d[0],t,a,e=u?"_textDom":"_dom";n[e]?(a=n[e].getAttribute("id"),t=n[e],o.contains(t)||o.appendChild(t)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",a),o.appendChild(t),n[e]=t);var l=this.getSvgProxy(n);if(n.transform&&n.parent.invTransform&&!u){var r=Array.prototype.slice.call(n.transform);S.mul(n.transform,n.parent.invTransform,n.transform),l.brush(n),n.transform=r}else l.brush(n);var s=this.getSvgElement(n);t.innerHTML="",t.appendChild(s.cloneNode()),f.setAttribute("clip-path","url(#"+a+")"),d.length>1&&this.updateDom(t,d.slice(1),u)}else f&&f.setAttribute("clip-path","none")},v.prototype.markUsed=function(f){var d=this;f.__clipPaths&&p.each(f.__clipPaths,function(u){u._dom&&y.prototype.markUsed.call(d,u._dom),u._textDom&&y.prototype.markUsed.call(d,u._textDom)})};var m=v;k.exports=m},nCxF:function(k,D,i){var y=i("QBsz"),p=y.min,S=y.max,v=y.scale,m=y.distance,f=y.add,d=y.clone,u=y.sub;function o(n,t,a,e){var l=[],r=[],s=[],c=[],h,g,A,b;if(e){A=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var w=0,x=n.length;w<x;w++)p(A,A,n[w]),S(b,b,n[w]);p(A,A,e[0]),S(b,b,e[1])}for(var w=0,x=n.length;w<x;w++){var T=n[w];if(a)h=n[w?w-1:x-1],g=n[(w+1)%x];else if(w===0||w===x-1){l.push(d(n[w]));continue}else h=n[w-1],g=n[w+1];u(r,g,h),v(r,r,t);var _=m(T,h),E=m(T,g),C=_+E;C!==0&&(_/=C,E/=C),v(s,r,-_),v(c,r,E);var I=f([],T,s),O=f([],T,c);e&&(S(I,I,A),p(I,I,b),S(O,O,A),p(O,O,b)),l.push(I),l.push(O)}return a&&l.push(l.shift()),l}k.exports=o},nKiI:function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("OELB"),v=S.parsePercent,m=S.MAX_SAFE_INTEGER,f=i("+TT/"),d=i("VaxA"),u=Math.max,o=Math.min,n=y.retrieve,t=y.each,a=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],r=["upperLabel","height"],s={seriesType:"treemap",reset:function(I,O,F,R){var B=F.getWidth(),P=F.getHeight(),X=I.option,M=f.getLayoutRect(I.getBoxLayoutParams(),{width:F.getWidth(),height:F.getHeight()}),z=X.size||[],W=v(n(M.width,z[0]),B),H=v(n(M.height,z[1]),P),V=R&&R.type,Q=["treemapZoomToNode","treemapRootToNode"],G=d.retrieveTargetInfo(R,Q,I),ee=V==="treemapRender"||V==="treemapMove"?R.rootRect:null,q=I.getViewRoot(),se=d.getPathToRoot(q);if(V!=="treemapMove"){var re=V==="treemapZoomToNode"?T(I,G,q,W,H):ee?[ee.width,ee.height]:[W,H],Ae=X.sort;Ae&&Ae!=="asc"&&Ae!=="desc"&&(Ae="desc");var Te={squareRatio:X.squareRatio,sort:Ae,leafDepth:X.leafDepth};q.hostTree.clearLayouts();var Re={x:0,y:0,width:re[0],height:re[1],area:re[0]*re[1]};q.setLayout(Re),c(q,Te,!1,0);var Re=q.getLayout();t(se,function(Ue,nt){var Le=(se[nt+1]||q).getValue();Ue.setLayout(y.extend({dataExtent:[Le,Le],borderWidth:0,upperHeight:0},Re))})}var Ge=I.getData().tree.root;Ge.setLayout(_(M,ee,G),!0),I.setLayoutInfo(M),E(Ge,new p(-M.x,-M.y,B,P),se,q,0)}};function c(I,O,F,R){var B,P;if(I.isRemoved())return;var X=I.getLayout();B=X.width,P=X.height;var M=I.getModel(),z=M.get(a),W=M.get(e)/2,H=C(M),V=Math.max(z,H),Q=z-W,G=V-W,M=I.getModel();I.setLayout({borderWidth:z,upperHeight:V,upperLabelHeight:H},!0),B=u(B-2*Q,0),P=u(P-Q-G,0);var ee=B*P,q=h(I,M,ee,O,F,R);if(!q.length)return;var se={x:Q,y:G,width:B,height:P},re=o(B,P),Ae=Infinity,Te=[];Te.area=0;for(var Re=0,Ge=q.length;Re<Ge;){var Ue=q[Re];Te.push(Ue),Te.area+=Ue.getLayout().area;var nt=w(Te,re,O.squareRatio);nt<=Ae?(Re++,Ae=nt):(Te.area-=Te.pop().getLayout().area,x(Te,re,se,W,!1),re=o(se.width,se.height),Te.length=Te.area=0,Ae=Infinity)}if(Te.length&&x(Te,re,se,W,!0),!F){var Le=M.get("childrenVisibleMin");Le!=null&&ee<Le&&(F=!0)}for(var Re=0,Ge=q.length;Re<Ge;Re++)c(q[Re],O,F,R+1)}function h(I,O,F,R,B,P){var X=I.children||[],M=R.sort;M!=="asc"&&M!=="desc"&&(M=null);var z=R.leafDepth!=null&&R.leafDepth<=P;if(B&&!z)return I.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),A(X,M);var W=b(O,X,M);if(W.sum===0)return I.viewChildren=[];if(W.sum=g(O,F,W.sum,M,X),W.sum===0)return I.viewChildren=[];for(var H=0,V=X.length;H<V;H++){var Q=X[H].getValue()/W.sum*F;X[H].setLayout({area:Q})}return z&&(X.length&&I.setLayout({isLeafRoot:!0},!0),X.length=0),I.viewChildren=X,I.setLayout({dataExtent:W.dataExtent},!0),X}function g(I,O,F,R,B){if(!R)return F;for(var P=I.get("visibleMin"),X=B.length,M=X,z=X-1;z>=0;z--){var W=B[R==="asc"?X-z-1:z].getValue();W/F*O<P&&(M=z,F-=W)}return R==="asc"?B.splice(0,X-M):B.splice(M,X-M),F}function A(I,O){return O&&I.sort(function(F,R){var B=O==="asc"?F.getValue()-R.getValue():R.getValue()-F.getValue();return B===0?O==="asc"?F.dataIndex-R.dataIndex:R.dataIndex-F.dataIndex:B}),I}function b(I,O,F){for(var R=0,B=0,P=O.length;B<P;B++)R+=O[B].getValue();var X=I.get("visualDimension"),M;if(!O||!O.length)M=[NaN,NaN];else if(X==="value"&&F)M=[O[O.length-1].getValue(),O[0].getValue()],F==="asc"&&M.reverse();else{var M=[Infinity,-Infinity];t(O,function(W){var H=W.getValue(X);H<M[0]&&(M[0]=H),H>M[1]&&(M[1]=H)})}return{sum:R,dataExtent:M}}function w(I,O,F){for(var R=0,B=Infinity,P=0,X,M=I.length;P<M;P++)X=I[P].getLayout().area,X&&(X<B&&(B=X),X>R&&(R=X));var z=I.area*I.area,W=O*O*F;return z?u(W*R/z,z/(W*B)):Infinity}function x(I,O,F,R,B){var P=O===F.width?0:1,X=1-P,M=["x","y"],z=["width","height"],W=F[M[P]],H=O?I.area/O:0;(B||H>F[z[X]])&&(H=F[z[X]]);for(var V=0,Q=I.length;V<Q;V++){var G=I[V],ee={},q=H?G.getLayout().area/H:0,se=ee[z[X]]=u(H-2*R,0),re=F[M[P]]+F[z[P]]-W,Ae=V===Q-1||re<q?re:q,Te=ee[z[P]]=u(Ae-2*R,0);ee[M[X]]=F[M[X]]+o(R,se/2),ee[M[P]]=W+o(R,Te/2),W+=Ae,G.setLayout(ee,!0)}F[M[X]]+=H,F[z[X]]-=H}function T(I,O,F,R,B){var P=(O||{}).node,X=[R,B];if(!P||P===F)return X;for(var M,z=R*B,W=z*I.option.zoomToNodeRatio;M=P.parentNode;){for(var H=0,V=M.children,Q=0,G=V.length;Q<G;Q++)H+=V[Q].getValue();var ee=P.getValue();if(ee===0)return X;W*=H/ee;var q=M.getModel(),se=q.get(a),re=Math.max(se,C(q,se));W+=4*se*se+(3*se+re)*Math.pow(W,.5),W>m&&(W=m),P=M}W<z&&(W=z);var Ae=Math.pow(W/z,.5);return[R*Ae,B*Ae]}function _(I,O,F){if(O)return{x:O.x,y:O.y};var R={x:0,y:0};if(!F)return R;var B=F.node,P=B.getLayout();if(!P)return R;for(var X=[P.width/2,P.height/2],M=B;M;){var z=M.getLayout();X[0]+=z.x,X[1]+=z.y,M=M.parentNode}return{x:I.width/2-X[0],y:I.height/2-X[1]}}function E(I,O,F,R,B){var P=I.getLayout(),X=F[B],M=X&&X===I;if(X&&!M||B===F.length&&I!==R)return;I.setLayout({isInView:!0,invisible:!M&&!O.intersect(P),isAboveViewRoot:M},!0);var z=new p(O.x-P.x,O.y-P.y,O.width,O.height);t(I.viewChildren||[],function(W){E(W,z,F,R,B+1)})}function C(I){return I.get(l)?I.get(r):0}k.exports=s},nPnh:function(k,D){var i=Math.round;function y(v,m,f){if(!m)return;var d=m.x1,u=m.x2,o=m.y1,n=m.y2;v.x1=d,v.x2=u,v.y1=o,v.y2=n;var t=f&&f.lineWidth;if(!t)return;i(d*2)===i(u*2)&&(v.x1=v.x2=S(d,t,!0)),i(o*2)===i(n*2)&&(v.y1=v.y2=S(o,t,!0))}function p(v,m,f){if(!m)return;var d=m.x,u=m.y,o=m.width,n=m.height;v.x=d,v.y=u,v.width=o,v.height=n;var t=f&&f.lineWidth;if(!t)return;v.x=S(d,t,!0),v.y=S(u,t,!0),v.width=Math.max(S(d+o,t,!1)-v.x,o===0?0:1),v.height=Math.max(S(u+n,t,!1)-v.y,n===0?0:1)}function S(v,m,f){if(!m)return v;var d=i(v*2);return(d+i(m))%2===0?d/2:(d+(f?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=p,D.subPixelOptimize=S},nRaC:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("0fbx"),v=i.n(S),m=i("OaEy"),f=i("R9oj")},nVVt:function(k,D){k.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},nVfU:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=p.parsePercent,v=i("7hqr"),m=v.isDimensionStacked,f=i("zM3Q"),d="__ec_stack_",u=.5,o=typeof Float32Array!="undefined"?Float32Array:Array;function n(x){return x.get("stack")||d+x.seriesIndex}function t(x){return x.dim+x.index}function a(x){var T=[],_=x.axis,E="axis0";if(_.type!=="category")return;for(var C=_.getBandWidth(),I=0;I<x.count||0;I++)T.push(y.defaults({bandWidth:C,axisKey:E,stackId:d+I},x));for(var O=s(T),F=[],I=0;I<x.count;I++){var R=O[E][d+I];R.offsetCenter=R.offset+R.width/2,F.push(R)}return F}function e(x,T){var _=[];return T.eachSeriesByType(x,function(E){A(E)&&!b(E)&&_.push(E)}),_}function l(x){var T={};y.each(x,function(R){var B=R.coordinateSystem,P=B.getBaseAxis();if(P.type!=="time"&&P.type!=="value")return;for(var X=R.getData(),M=P.dim+"_"+P.index,z=X.mapDimension(P.dim),W=0,H=X.count();W<H;++W){var V=X.get(z,W);T[M]?T[M].push(V):T[M]=[V]}});var _=[];for(var E in T)if(T.hasOwnProperty(E)){var C=T[E];if(C){C.sort(function(R,B){return R-B});for(var I=null,O=1;O<C.length;++O){var F=C[O]-C[O-1];F>0&&(I=I===null?F:Math.min(I,F))}_[E]=I}}return _}function r(x){var T=l(x),_=[];return y.each(x,function(E){var C=E.coordinateSystem,I=C.getBaseAxis(),O=I.getExtent(),F;if(I.type==="category")F=I.getBandWidth();else if(I.type==="value"||I.type==="time"){var R=I.dim+"_"+I.index,B=T[R],P=Math.abs(O[1]-O[0]),X=I.scale.getExtent(),M=Math.abs(X[1]-X[0]);F=B?P/M*B:P}else{var z=E.getData();F=Math.abs(O[1]-O[0])/z.count()}var W=S(E.get("barWidth"),F),H=S(E.get("barMaxWidth"),F),V=S(E.get("barMinWidth")||1,F),Q=E.get("barGap"),G=E.get("barCategoryGap");_.push({bandWidth:F,barWidth:W,barMaxWidth:H,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(I),stackId:n(E)})}),s(_)}function s(x){var T={};y.each(x,function(E,C){var I=E.axisKey,O=E.bandWidth,F=T[I]||{bandWidth:O,remainedWidth:O,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},R=F.stacks;T[I]=F;var B=E.stackId;R[B]||F.autoWidthCount++,R[B]=R[B]||{width:0,maxWidth:0};var P=E.barWidth;P&&!R[B].width&&(R[B].width=P,P=Math.min(F.remainedWidth,P),F.remainedWidth-=P);var X=E.barMaxWidth;X&&(R[B].maxWidth=X);var M=E.barMinWidth;M&&(R[B].minWidth=M);var z=E.barGap;z!=null&&(F.gap=z);var W=E.barCategoryGap;W!=null&&(F.categoryGap=W)});var _={};return y.each(T,function(E,C){_[C]={};var I=E.stacks,O=E.bandWidth,F=S(E.categoryGap,O),R=S(E.gap,1),B=E.remainedWidth,P=E.autoWidthCount,X=(B-F)/(P+(P-1)*R);X=Math.max(X,0),y.each(I,function(H){var V=H.maxWidth,Q=H.minWidth;if(H.width){var G=H.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),H.width=G,B-=G+R*G,P--}else{var G=X;V&&V<G&&(G=Math.min(V,B)),Q&&Q>G&&(G=Q),G!==X&&(H.width=G,B-=G+R*G,P--)}}),X=(B-F)/(P+(P-1)*R),X=Math.max(X,0);var M=0,z;y.each(I,function(H,V){H.width||(H.width=X),z=H,M+=H.width*(1+R)}),z&&(M-=z.width*R);var W=-M/2;y.each(I,function(H,V){_[C][V]=_[C][V]||{bandWidth:O,offset:W,width:H.width},W+=H.width*(1+R)})}),_}function c(x,T,_){if(x&&T){var E=x[t(T)];return E!=null&&_!=null&&(E=E[n(_)]),E}}function h(x,T){var _=e(x,T),E=r(_),C={},I={};y.each(_,function(O){var F=O.getData(),R=O.coordinateSystem,B=R.getBaseAxis(),P=n(O),X=E[t(B)][P],M=X.offset,z=X.width,W=R.getOtherAxis(B),H=O.get("barMinHeight")||0;C[P]=C[P]||[],I[P]=I[P]||[],F.setLayout({bandWidth:X.bandWidth,offset:M,size:z});for(var V=F.mapDimension(W.dim),Q=F.mapDimension(B.dim),G=m(F,V),ee=W.isHorizontal(),q=w(B,W,G),se=0,re=F.count();se<re;se++){var Ae=F.get(V,se),Te=F.get(Q,se),Re=Ae>=0?"p":"n",Ge=q;G&&(C[P][Te]||(C[P][Te]={p:q,n:q}),Ge=C[P][Te][Re]);var Ue,nt,Le,le;if(ee){var Xe=R.dataToPoint([Ae,Te]);Ue=Ge,nt=Xe[1]+M,Le=Xe[0]-q,le=z,Math.abs(Le)<H&&(Le=(Le<0?-1:1)*H),isNaN(Le)||G&&(C[P][Te][Re]+=Le)}else{var Xe=R.dataToPoint([Te,Ae]);Ue=Xe[0]+M,nt=Ge,Le=z,le=Xe[1]-q,Math.abs(le)<H&&(le=(le<=0?-1:1)*H),isNaN(le)||G&&(C[P][Te][Re]+=le)}F.setItemLayout(se,{x:Ue,y:nt,width:Le,height:le})}},this)}var g={seriesType:"bar",plan:f(),reset:function(x){if(!A(x)||!b(x))return;var T=x.getData(),_=x.coordinateSystem,E=_.grid.getRect(),C=_.getBaseAxis(),I=_.getOtherAxis(C),O=T.mapDimension(I.dim),F=T.mapDimension(C.dim),R=I.isHorizontal(),B=R?0:1,P=c(r([x]),C,x).width;return P>u||(P=u),{progress:X};function X(M,z){for(var W=M.count,H=new o(W*2),V=new o(W*2),Q=new o(W),G,ee=[],q=[],se=0,re=0;(G=M.next())!=null;)q[B]=z.get(O,G),q[1-B]=z.get(F,G),ee=_.dataToPoint(q,null,ee),V[se]=R?E.x+E.width:ee[0],H[se++]=ee[0],V[se]=R?ee[1]:E.y+E.height,H[se++]=ee[1],Q[re++]=G;z.setLayout({largePoints:H,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:P,valueAxisStart:w(C,I,!1),backgroundStart:R?E.x:E.y,valueAxisHorizontal:R})}}};function A(x){return x.coordinateSystem&&x.coordinateSystem.type==="cartesian2d"}function b(x){return x.pipelineContext&&x.pipelineContext.large}function w(x,T,_){return T.toGlobalCoord(T.dataToCoord(T.type==="log"?1:0))}D.getLayoutOnAxis=a,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=h,D.largeLayout=g},ngQI:function(k,D,i){"use strict";i.d(D,"a",function(){return hu}),i.d(D,"b",function(){return os}),i.d(D,"c",function(){return Xr});var y=i("q1tI"),p=i.n(y),S=i("dI71"),v=i("wx14"),m=i("ANjH"),f=i("/MKj");function d(De,ae){if(De.length!==ae.length)return!1;for(var be=0;be<De.length;be++)if(De[be]!==ae[be])return!1;return!0}function u(De,ae){var be=Object(y.useState)(function(){return{inputs:ae,result:De()}})[0],We=Object(y.useRef)(!0),ut=Object(y.useRef)(be),Dt=We.current||Boolean(ae&&ut.current.inputs&&d(ae,ut.current.inputs)),jt=Dt?ut.current:{inputs:ae,result:De()};return Object(y.useEffect)(function(){We.current=!1,ut.current=jt},[jt]),jt.result}function o(De,ae){return u(function(){return De},ae)}var n=u,t=o,a=i("9R94"),e=function(ae){var be=ae.top,We=ae.right,ut=ae.bottom,Dt=ae.left,jt=We-Dt,Wt=ut-be,Rr={top:be,right:We,bottom:ut,left:Dt,width:jt,height:Wt,x:Dt,y:be,center:{x:(We+Dt)/2,y:(ut+be)/2}};return Rr},l=function(ae,be){return{top:ae.top-be.top,left:ae.left-be.left,bottom:ae.bottom+be.bottom,right:ae.right+be.right}},r=function(ae,be){return{top:ae.top+be.top,left:ae.left+be.left,bottom:ae.bottom-be.bottom,right:ae.right-be.right}},s=function(ae,be){return{top:ae.top+be.y,left:ae.left+be.x,bottom:ae.bottom+be.y,right:ae.right+be.x}},c={top:0,right:0,bottom:0,left:0},h=function(ae){var be=ae.borderBox,We=ae.margin,ut=We===void 0?c:We,Dt=ae.border,jt=Dt===void 0?c:Dt,Wt=ae.padding,Rr=Wt===void 0?c:Wt,Zr=e(l(be,ut)),kr=e(r(be,jt)),Or=e(r(kr,Rr));return{marginBox:Zr,borderBox:e(be),paddingBox:kr,contentBox:Or,margin:ut,border:jt,padding:Rr}},g=function(ae){var be=ae.slice(0,-2),We=ae.slice(-2);if(We!=="px")return 0;var ut=Number(be);return isNaN(ut)&&Object(a.a)(!1),ut},A=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(ae,be){var We=ae.borderBox,ut=ae.border,Dt=ae.margin,jt=ae.padding,Wt=s(We,be);return h({borderBox:Wt,border:ut,margin:Dt,padding:jt})},w=function(ae,be){return be===void 0&&(be=A()),b(ae,be)},x=function(ae,be){var We={top:g(be.marginTop),right:g(be.marginRight),bottom:g(be.marginBottom),left:g(be.marginLeft)},ut={top:g(be.paddingTop),right:g(be.paddingRight),bottom:g(be.paddingBottom),left:g(be.paddingLeft)},Dt={top:g(be.borderTopWidth),right:g(be.borderRightWidth),bottom:g(be.borderBottomWidth),left:g(be.borderLeftWidth)};return h({borderBox:ae,margin:We,padding:ut,border:Dt})},T=function(ae){var be=ae.getBoundingClientRect(),We=window.getComputedStyle(ae);return x(be,We)},_=Number.isNaN||function(ae){return typeof ae=="number"&&ae!==ae};function E(De,ae){return De===ae?!0:!!(_(De)&&_(ae))}function C(De,ae){if(De.length!==ae.length)return!1;for(var be=0;be<De.length;be++)if(!E(De[be],ae[be]))return!1;return!0}function I(De,ae){ae===void 0&&(ae=C);var be,We=[],ut,Dt=!1;function jt(){for(var Wt=[],Rr=0;Rr<arguments.length;Rr++)Wt[Rr]=arguments[Rr];return Dt&&be===this&&ae(Wt,We)||(ut=De.apply(this,Wt),Dt=!0,be=this,We=Wt),ut}return jt}var O=I,F=function(ae){var be=[],We=null,ut=function(){for(var jt=arguments.length,Wt=new Array(jt),Rr=0;Rr<jt;Rr++)Wt[Rr]=arguments[Rr];if(be=Wt,We)return;We=requestAnimationFrame(function(){We=null,ae.apply(void 0,be)})};return ut.cancel=function(){if(!We)return;cancelAnimationFrame(We),We=null},ut},R=F,B=i("i8i4"),P=i.n(B),X=!0,M=/[ \t]{2,}/g,z=/^[ \t]*/gm,W=function(ae){return ae.replace(M," ").replace(z,"").trim()},H=function(ae){return W(`
%creact-beautiful-dnd
%c`+W(ae)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},V=function(ae){return[H(ae),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Q="__react-beautiful-dnd-disable-dev-warnings";function G(De,ae){var be;if(X)return;if(typeof window!="undefined"&&window[Q])return;(be=console)[De].apply(be,V(ae))}var ee=G.bind(null,"warn"),q=G.bind(null,"error");function se(){}function re(De,ae){return Object(v.a)({},De,{},ae)}function Ae(De,ae,be){var We=ae.map(function(ut){var Dt=re(be,ut.options);return De.addEventListener(ut.eventName,ut.fn,Dt),function(){De.removeEventListener(ut.eventName,ut.fn,Dt)}});return function(){We.forEach(function(Dt){Dt()})}}var Te=!0,Re="Invariant failed";function Ge(De){this.message=De}Ge.prototype.toString=function(){return this.message};function Ue(De,ae){if(De)return;throw Te?new Ge(Re):new Ge(Re+": "+(ae||""))}var nt=function(De){Object(S.a)(ae,De);function ae(){for(var We,ut=arguments.length,Dt=new Array(ut),jt=0;jt<ut;jt++)Dt[jt]=arguments[jt];return We=De.call.apply(De,[this].concat(Dt))||this,We.callbacks=null,We.unbind=se,We.onWindowError=function(Wt){var Rr=We.getCallbacks();Rr.isDragging()&&Rr.tryAbort();var Zr=Wt.error;Zr instanceof Ge&&Wt.preventDefault()},We.getCallbacks=function(){if(!We.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return We.callbacks},We.setCallbacks=function(Wt){We.callbacks=Wt},We}var be=ae.prototype;return be.componentDidMount=function(){this.unbind=Ae(window,[{eventName:"error",fn:this.onWindowError}])},be.componentWillUnmount=function(){this.unbind()},be.componentDidCatch=function(ut){if(ut instanceof Ge){this.setState({});return}throw ut},be.render=function(){return this.props.children(this.setCallbacks)},ae}(p.a.Component),Le=`
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
`,le=function(ae){return ae+1},Xe=function(ae){return`
You have lifted an item in position `+le(ae.source.index)+`
`},pe=function(ae,be){var We=ae.droppableId===be.droppableId,ut=le(ae.index),Dt=le(be.index);return We?`
You have moved the item from position `+ut+`
to position `+Dt+`
`:`
You have moved the item from position `+ut+`
in list `+ae.droppableId+`
to list `+be.droppableId+`
in position `+Dt+`
`},Z=function(ae,be,We){var ut=be.droppableId===We.droppableId;return ut?`
The item `+ae+`
has been combined with `+We.draggableId:`
The item `+ae+`
in list `+be.droppableId+`
has been combined with `+We.draggableId+`
in list `+We.droppableId+`
`},Y=function(ae){var be=ae.destination;if(be)return pe(ae.source,be);var We=ae.combine;return We?Z(ae.draggableId,ae.source,We):"You are over an area that cannot be dropped on"},ne=function(ae){return`
The item has returned to its starting position
of `+le(ae.index)+`
`},ce=function(ae){if(ae.reason==="CANCEL")return`
Movement cancelled.
`+ne(ae.source)+`
`;var be=ae.destination,We=ae.combine;return be?`
You have dropped the item.
`+pe(ae.source,be)+`
`:We?`
You have dropped the item.
`+Z(ae.draggableId,ae.source,We)+`
`:`
The item has been dropped while not over a drop area.
`+ne(ae.source)+`
`},ye={dragHandleUsageInstructions:Le,onDragStart:Xe,onDragUpdate:Y,onDragEnd:ce},Ee={x:0,y:0},Ce=function(ae,be){return{x:ae.x+be.x,y:ae.y+be.y}},ue=function(ae,be){return{x:ae.x-be.x,y:ae.y-be.y}},ge=function(ae,be){return ae.x===be.x&&ae.y===be.y},Oe=function(ae){return{x:ae.x!==0?-ae.x:0,y:ae.y!==0?-ae.y:0}},Je=function(ae,be,We){var ut;return We===void 0&&(We=0),ut={},ut[ae]=be,ut[ae==="x"?"y":"x"]=We,ut},lt=function(ae,be){return Math.sqrt(Math.pow(be.x-ae.x,2)+Math.pow(be.y-ae.y,2))},tt=function(ae,be){return Math.min.apply(Math,be.map(function(We){return lt(ae,We)}))},ke=function(ae){return function(be){return{x:ae(be.x),y:ae(be.y)}}},st=function(ae,be){var We=e({top:Math.max(be.top,ae.top),right:Math.min(be.right,ae.right),bottom:Math.min(be.bottom,ae.bottom),left:Math.max(be.left,ae.left)});return We.width<=0||We.height<=0?null:We},Ve=function(ae,be){return{top:ae.top+be.y,left:ae.left+be.x,bottom:ae.bottom+be.y,right:ae.right+be.x}},Ot=function(ae){return[{x:ae.left,y:ae.top},{x:ae.right,y:ae.top},{x:ae.left,y:ae.bottom},{x:ae.right,y:ae.bottom}]},Ut={top:0,right:0,bottom:0,left:0},ir=function(ae,be){return be?Ve(ae,be.scroll.diff.displacement):ae},lr=function(ae,be,We){if(We&&We.increasedBy){var ut;return Object(v.a)({},ae,(ut={},ut[be.end]=ae[be.end]+We.increasedBy[be.line],ut))}return ae},Sr=function(ae,be){return be&&be.shouldClipSubject?st(be.pageMarginBox,ae):e(ae)},mt=function(ae){var be=ae.page,We=ae.withPlaceholder,ut=ae.axis,Dt=ae.frame,jt=ir(be.marginBox,Dt),Wt=lr(jt,ut,We),Rr=Sr(Wt,Dt);return{page:be,withPlaceholder:We,active:Rr}},or=function(ae,be){ae.frame||Ue(!1);var We=ae.frame,ut=ue(be,We.scroll.initial),Dt=Oe(ut),jt=Object(v.a)({},We,{scroll:{initial:We.scroll.initial,current:be,diff:{value:ut,displacement:Dt},max:We.scroll.max}}),Wt=mt({page:ae.subject.page,withPlaceholder:ae.subject.withPlaceholder,axis:ae.axis,frame:jt}),Rr=Object(v.a)({},ae,{frame:jt,subject:Wt});return Rr};function et(De){return Number.isInteger?Number.isInteger(De):typeof De=="number"&&isFinite(De)&&Math.floor(De)===De}function ur(De){return Object.values?Object.values(De):Object.keys(De).map(function(ae){return De[ae]})}function qr(De,ae){if(De.findIndex)return De.findIndex(ae);for(var be=0;be<De.length;be++)if(ae(De[be]))return be;return-1}function Fe(De,ae){if(De.find)return De.find(ae);var be=qr(De,ae);return be!==-1?De[be]:void 0}function $t(De){return Array.prototype.slice.call(De)}var Lr=O(function(De){return De.reduce(function(ae,be){return ae[be.descriptor.id]=be,ae},{})}),pt=O(function(De){return De.reduce(function(ae,be){return ae[be.descriptor.id]=be,ae},{})}),qt=O(function(De){return ur(De)}),vr=O(function(De){return ur(De)}),pn=O(function(De,ae){var be=vr(ae).filter(function(We){return De===We.descriptor.droppableId}).sort(function(We,ut){return We.descriptor.index-ut.descriptor.index});return be});function fr(De){return De.at&&De.at.type==="REORDER"?De.at.destination:null}function gr(De){return De.at&&De.at.type==="COMBINE"?De.at.combine:null}var dn=O(function(De,ae){return ae.filter(function(be){return be.descriptor.id!==De.descriptor.id})}),Qt=function(ae){var be=ae.isMovingForward,We=ae.draggable,ut=ae.destination,Dt=ae.insideDestination,jt=ae.previousImpact;if(!ut.isCombineEnabled)return null;var Wt=fr(jt);if(!Wt)return null;function Rr(vi){var Qi={type:"COMBINE",combine:{draggableId:vi,droppableId:ut.descriptor.id}};return Object(v.a)({},jt,{at:Qi})}var Zr=jt.displaced.all,kr=Zr.length?Zr[0]:null;if(be)return kr?Rr(kr):null;var Or=dn(We,Dt);if(!kr){if(!Or.length)return null;var Yr=Or[Or.length-1];return Rr(Yr.descriptor.id)}var rn=qr(Or,function(vi){return vi.descriptor.id===kr});rn!==-1||Ue(!1);var _n=rn-1;if(_n<0)return null;var fi=Or[_n];return Rr(fi.descriptor.id)},sr=function(ae,be){return ae.descriptor.droppableId===be.descriptor.id},Qr={point:Ee,value:0},Cn={invisible:{},visible:{},all:[]},Fn={displaced:Cn,displacedBy:Qr,at:null},ti=function(ae,be){return function(We){return ae<=We&&We<=be}},ki=function(ae){var be=ti(ae.top,ae.bottom),We=ti(ae.left,ae.right);return function(ut){var Dt=be(ut.top)&&be(ut.bottom)&&We(ut.left)&&We(ut.right);if(Dt)return!0;var jt=be(ut.top)||be(ut.bottom),Wt=We(ut.left)||We(ut.right),Rr=jt&&Wt;if(Rr)return!0;var Zr=ut.top<ae.top&&ut.bottom>ae.bottom,kr=ut.left<ae.left&&ut.right>ae.right,Or=Zr&&kr;if(Or)return!0;var Yr=Zr&&Wt||kr&&jt;return Yr}},Dn=function(ae){var be=ti(ae.top,ae.bottom),We=ti(ae.left,ae.right);return function(ut){var Dt=be(ut.top)&&be(ut.bottom)&&We(ut.left)&&We(ut.right);return Dt}},Bn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ft={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},vt=function(ae){return function(be){var We=ti(be.top,be.bottom),ut=ti(be.left,be.right);return function(Dt){return ae===Bn?We(Dt.top)&&We(Dt.bottom):ut(Dt.left)&&ut(Dt.right)}}},_e=function(ae,be){var We=be.frame?be.frame.scroll.diff.displacement:Ee;return Ve(ae,We)},Ne=function(ae,be,We){return be.subject.active?We(be.subject.active)(ae):!1},Ie=function(ae,be,We){return We(be)(ae)},Ze=function(ae){var be=ae.target,We=ae.destination,ut=ae.viewport,Dt=ae.withDroppableDisplacement,jt=ae.isVisibleThroughFrameFn,Wt=Dt?_e(be,We):be;return Ne(Wt,We,jt)&&Ie(Wt,ut,jt)},ct=function(ae){return Ze(Object(v.a)({},ae,{isVisibleThroughFrameFn:ki}))},gt=function(ae){return Ze(Object(v.a)({},ae,{isVisibleThroughFrameFn:Dn}))},kt=function(ae){return Ze(Object(v.a)({},ae,{isVisibleThroughFrameFn:vt(ae.destination.axis)}))},xr=function(ae,be,We){if(typeof We=="boolean")return We;if(!be)return!0;var ut=be.invisible,Dt=be.visible;if(ut[ae])return!1;var jt=Dt[ae];return jt?jt.shouldAnimate:!0};function Hr(De,ae){var be=De.page.marginBox,We={top:ae.point.y,right:0,bottom:0,left:ae.point.x};return e(l(be,We))}function on(De){var ae=De.afterDragging,be=De.destination,We=De.displacedBy,ut=De.viewport,Dt=De.forceShouldAnimate,jt=De.last;return ae.reduce(function(Rr,Zr){var kr=Hr(Zr,We),Or=Zr.descriptor.id;Rr.all.push(Or);var Yr=ct({target:kr,destination:be,viewport:ut,withDroppableDisplacement:!0});if(!Yr)return Rr.invisible[Zr.descriptor.id]=!0,Rr;var rn=xr(Or,jt,Dt),_n={draggableId:Or,shouldAnimate:rn};return Rr.visible[Or]=_n,Rr},{all:[],visible:{},invisible:{}})}function Nt(De,ae){if(!De.length)return 0;var be=De[De.length-1].descriptor.index;return ae.inHomeList?be:be+1}function ot(De){var ae=De.insideDestination,be=De.inHomeList,We=De.displacedBy,ut=De.destination,Dt=Nt(ae,{inHomeList:be});return{displaced:Cn,displacedBy:We,at:{type:"REORDER",destination:{droppableId:ut.descriptor.id,index:Dt}}}}function dt(De){var ae=De.draggable,be=De.insideDestination,We=De.destination,ut=De.viewport,Dt=De.displacedBy,jt=De.last,Wt=De.index,Rr=De.forceShouldAnimate,Zr=sr(ae,We);if(Wt==null)return ot({insideDestination:be,inHomeList:Zr,displacedBy:Dt,destination:We});var kr=Fe(be,function(fi){return fi.descriptor.index===Wt});if(!kr)return ot({insideDestination:be,inHomeList:Zr,displacedBy:Dt,destination:We});var Or=dn(ae,be),Yr=be.indexOf(kr),rn=Or.slice(Yr),_n=on({afterDragging:rn,destination:We,displacedBy:Dt,last:jt,viewport:ut.frame,forceShouldAnimate:Rr});return{displaced:_n,displacedBy:Dt,at:{type:"REORDER",destination:{droppableId:We.descriptor.id,index:Wt}}}}function Yt(De,ae){return Boolean(ae.effected[De])}var Pt=function(ae){var be=ae.isMovingForward,We=ae.destination,ut=ae.draggables,Dt=ae.combine,jt=ae.afterCritical;if(!We.isCombineEnabled)return null;var Wt=Dt.draggableId,Rr=ut[Wt],Zr=Rr.descriptor.index,kr=Yt(Wt,jt);return kr?be?Zr:Zr-1:be?Zr+1:Zr},Et=function(ae){var be=ae.isMovingForward,We=ae.isInHomeList,ut=ae.insideDestination,Dt=ae.location;if(!ut.length)return null;var jt=Dt.index,Wt=be?jt+1:jt-1,Rr=ut[0].descriptor.index,Zr=ut[ut.length-1].descriptor.index,kr=We?Zr:Zr+1;return Wt<Rr||Wt>kr?null:Wt},Bt=function(ae){var be=ae.isMovingForward,We=ae.isInHomeList,ut=ae.draggable,Dt=ae.draggables,jt=ae.destination,Wt=ae.insideDestination,Rr=ae.previousImpact,Zr=ae.viewport,kr=ae.afterCritical,Or=Rr.at;if(Or||Ue(!1),Or.type==="REORDER"){var Yr=Et({isMovingForward:be,isInHomeList:We,location:Or.destination,insideDestination:Wt});return Yr==null?null:dt({draggable:ut,insideDestination:Wt,destination:jt,viewport:Zr,last:Rr.displaced,displacedBy:Rr.displacedBy,index:Yr})}var rn=Pt({isMovingForward:be,destination:jt,displaced:Rr.displaced,draggables:Dt,combine:Or.combine,afterCritical:kr});return rn==null?null:dt({draggable:ut,insideDestination:Wt,destination:jt,viewport:Zr,last:Rr.displaced,displacedBy:Rr.displacedBy,index:rn})},wt=function(ae){var be=ae.displaced,We=ae.afterCritical,ut=ae.combineWith,Dt=ae.displacedBy,jt=Boolean(be.visible[ut]||be.invisible[ut]);return Yt(ut,We)?jt?Ee:Oe(Dt.point):jt?Dt.point:Ee},Mt=function(ae){var be=ae.afterCritical,We=ae.impact,ut=ae.draggables,Dt=gr(We);Dt||Ue(!1);var jt=Dt.draggableId,Wt=ut[jt].page.borderBox.center,Rr=wt({displaced:We.displaced,afterCritical:be,combineWith:jt,displacedBy:We.displacedBy});return Ce(Wt,Rr)},Nr=function(ae,be){return be.margin[ae.start]+be.borderBox[ae.size]/2},Tr=function(ae,be){return be.margin[ae.end]+be.borderBox[ae.size]/2},yr=function(ae,be,We){return be[ae.crossAxisStart]+We.margin[ae.crossAxisStart]+We.borderBox[ae.crossAxisSize]/2},en=function(ae){var be=ae.axis,We=ae.moveRelativeTo,ut=ae.isMoving;return Je(be.line,We.marginBox[be.end]+Nr(be,ut),yr(be,We.marginBox,ut))},sn=function(ae){var be=ae.axis,We=ae.moveRelativeTo,ut=ae.isMoving;return Je(be.line,We.marginBox[be.start]-Tr(be,ut),yr(be,We.marginBox,ut))},Vn=function(ae){var be=ae.axis,We=ae.moveInto,ut=ae.isMoving;return Je(be.line,We.contentBox[be.start]+Nr(be,ut),yr(be,We.contentBox,ut))},jn=function(ae){var be=ae.impact,We=ae.draggable,ut=ae.draggables,Dt=ae.droppable,jt=ae.afterCritical,Wt=pn(Dt.descriptor.id,ut),Rr=We.page,Zr=Dt.axis;if(!Wt.length)return Vn({axis:Zr,moveInto:Dt.page,isMoving:Rr});var kr=be.displaced,Or=be.displacedBy,Yr=kr.all[0];if(Yr){var rn=ut[Yr];if(Yt(Yr,jt))return sn({axis:Zr,moveRelativeTo:rn.page,isMoving:Rr});var _n=b(rn.page,Or.point);return sn({axis:Zr,moveRelativeTo:_n,isMoving:Rr})}var fi=Wt[Wt.length-1];if(fi.descriptor.id===We.descriptor.id)return Rr.borderBox.center;if(Yt(fi.descriptor.id,jt)){var vi=b(fi.page,Oe(jt.displacedBy.point));return en({axis:Zr,moveRelativeTo:vi,isMoving:Rr})}return en({axis:Zr,moveRelativeTo:fi.page,isMoving:Rr})},ri=function(ae,be){var We=ae.frame;return We?Ce(be,We.scroll.diff.displacement):be},ci=function(ae){var be=ae.impact,We=ae.draggable,ut=ae.droppable,Dt=ae.draggables,jt=ae.afterCritical,Wt=We.page.borderBox.center,Rr=be.at;return ut&&Rr?Rr.type==="REORDER"?jn({impact:be,draggable:We,draggables:Dt,droppable:ut,afterCritical:jt}):Mt({impact:be,draggables:Dt,afterCritical:jt}):Wt},gi=function(ae){var be=ci(ae),We=ae.droppable,ut=We?ri(We,be):be;return ut},Ni=function(ae,be){var We=ue(be,ae.scroll.initial),ut=Oe(We),Dt=e({top:be.y,bottom:be.y+ae.frame.height,left:be.x,right:be.x+ae.frame.width}),jt={frame:Dt,scroll:{initial:ae.scroll.initial,max:ae.scroll.max,current:be,diff:{value:We,displacement:ut}}};return jt};function Qe(De,ae){return De.map(function(be){return ae[be]})}function Se(De,ae){for(var be=0;be<ae.length;be++){var We=ae[be].visible[De];if(We)return We}return null}var Pe=function(ae){var be=ae.impact,We=ae.viewport,ut=ae.destination,Dt=ae.draggables,jt=ae.maxScrollChange,Wt=Ni(We,Ce(We.scroll.current,jt)),Rr=ut.frame?or(ut,Ce(ut.frame.scroll.current,jt)):ut,Zr=be.displaced,kr=on({afterDragging:Qe(Zr.all,Dt),destination:ut,displacedBy:be.displacedBy,viewport:Wt.frame,last:Zr,forceShouldAnimate:!1}),Or=on({afterDragging:Qe(Zr.all,Dt),destination:Rr,displacedBy:be.displacedBy,viewport:We.frame,last:Zr,forceShouldAnimate:!1}),Yr={},rn={},_n=[Zr,kr,Or];Zr.all.forEach(function(vi){var Qi=Se(vi,_n);if(Qi){rn[vi]=Qi;return}Yr[vi]=!0});var fi=Object(v.a)({},be,{displaced:{all:Zr.all,invisible:Yr,visible:rn}});return fi},He=function(ae,be){return Ce(ae.scroll.diff.displacement,be)},Ye=function(ae){var be=ae.pageBorderBoxCenter,We=ae.draggable,ut=ae.viewport,Dt=He(ut,be),jt=ue(Dt,We.page.borderBox.center);return Ce(We.client.borderBox.center,jt)},ze=function(ae){var be=ae.draggable,We=ae.destination,ut=ae.newPageBorderBoxCenter,Dt=ae.viewport,jt=ae.withDroppableDisplacement,Wt=ae.onlyOnMainAxis,Rr=Wt===void 0?!1:Wt,Zr=ue(ut,be.page.borderBox.center),kr=Ve(be.page.borderBox,Zr),Or={target:kr,destination:We,withDroppableDisplacement:jt,viewport:Dt};return Rr?kt(Or):gt(Or)},$e=function(ae){var be=ae.isMovingForward,We=ae.draggable,ut=ae.destination,Dt=ae.draggables,jt=ae.previousImpact,Wt=ae.viewport,Rr=ae.previousPageBorderBoxCenter,Zr=ae.previousClientSelection,kr=ae.afterCritical;if(!ut.isEnabled)return null;var Or=pn(ut.descriptor.id,Dt),Yr=sr(We,ut),rn=Qt({isMovingForward:be,draggable:We,destination:ut,insideDestination:Or,previousImpact:jt})||Bt({isMovingForward:be,isInHomeList:Yr,draggable:We,draggables:Dt,destination:ut,insideDestination:Or,previousImpact:jt,viewport:Wt,afterCritical:kr});if(!rn)return null;var _n=gi({impact:rn,draggable:We,droppable:ut,draggables:Dt,afterCritical:kr}),fi=ze({draggable:We,destination:ut,newPageBorderBoxCenter:_n,viewport:Wt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(fi){var vi=Ye({pageBorderBoxCenter:_n,draggable:We,viewport:Wt});return{clientSelection:vi,impact:rn,scrollJumpRequest:null}}var Qi=ue(_n,Rr),Mi=Pe({impact:rn,viewport:Wt,destination:ut,draggables:Dt,maxScrollChange:Qi});return{clientSelection:Zr,impact:Mi,scrollJumpRequest:Qi}},St=function(ae){var be=ae.subject.active;return be||Ue(!1),be},ft=function(ae){var be=ae.isMovingForward,We=ae.pageBorderBoxCenter,ut=ae.source,Dt=ae.droppables,jt=ae.viewport,Wt=ut.subject.active;if(!Wt)return null;var Rr=ut.axis,Zr=ti(Wt[Rr.start],Wt[Rr.end]),kr=qt(Dt).filter(function(Yr){return Yr!==ut}).filter(function(Yr){return Yr.isEnabled}).filter(function(Yr){return Boolean(Yr.subject.active)}).filter(function(Yr){return ki(jt.frame)(St(Yr))}).filter(function(Yr){var rn=St(Yr);return be?Wt[Rr.crossAxisEnd]<rn[Rr.crossAxisEnd]:rn[Rr.crossAxisStart]<Wt[Rr.crossAxisStart]}).filter(function(Yr){var rn=St(Yr),_n=ti(rn[Rr.start],rn[Rr.end]);return Zr(rn[Rr.start])||Zr(rn[Rr.end])||_n(Wt[Rr.start])||_n(Wt[Rr.end])}).sort(function(Yr,rn){var _n=St(Yr)[Rr.crossAxisStart],fi=St(rn)[Rr.crossAxisStart];return be?_n-fi:fi-_n}).filter(function(Yr,rn,_n){return St(Yr)[Rr.crossAxisStart]===St(_n[0])[Rr.crossAxisStart]});if(!kr.length)return null;if(kr.length===1)return kr[0];var Or=kr.filter(function(Yr){var rn=ti(St(Yr)[Rr.start],St(Yr)[Rr.end]);return rn(We[Rr.line])});return Or.length===1?Or[0]:Or.length>1?Or.sort(function(Yr,rn){return St(Yr)[Rr.start]-St(rn)[Rr.start]})[0]:kr.sort(function(Yr,rn){var _n=tt(We,Ot(St(Yr))),fi=tt(We,Ot(St(rn)));return _n!==fi?_n-fi:St(Yr)[Rr.start]-St(rn)[Rr.start]})[0]},Ht=function(ae,be){var We=ae.page.borderBox.center;return Yt(ae.descriptor.id,be)?ue(We,be.displacedBy.point):We},Er=function(ae,be){var We=ae.page.borderBox;return Yt(ae.descriptor.id,be)?Ve(We,Oe(be.displacedBy.point)):We},Fr=function(ae){var be=ae.pageBorderBoxCenter,We=ae.viewport,ut=ae.destination,Dt=ae.insideDestination,jt=ae.afterCritical,Wt=Dt.filter(function(Rr){return gt({target:Er(Rr,jt),destination:ut,viewport:We.frame,withDroppableDisplacement:!0})}).sort(function(Rr,Zr){var kr=lt(be,ri(ut,Ht(Rr,jt))),Or=lt(be,ri(ut,Ht(Zr,jt)));return kr<Or?-1:Or<kr?1:Rr.descriptor.index-Zr.descriptor.index});return Wt[0]||null},tn=O(function(ae,be){var We=be[ae.line];return{value:We,point:Je(ae.line,We)}}),Zt=function(ae,be,We){var ut=ae.axis;if(ae.descriptor.mode==="virtual")return Je(ut.line,be[ut.line]);var Dt=ae.subject.page.contentBox[ut.size],jt=pn(ae.descriptor.id,We),Wt=jt.reduce(function(kr,Or){return kr+Or.client.marginBox[ut.size]},0),Rr=Wt+be[ut.line],Zr=Rr-Dt;return Zr<=0?null:Je(ut.line,Zr)},Rn=function(ae,be){return Object(v.a)({},ae,{scroll:Object(v.a)({},ae.scroll,{max:be})})},vn=function(ae,be,We){var ut=ae.frame;sr(be,ae)&&Ue(!1),ae.subject.withPlaceholder&&Ue(!1);var Dt=tn(ae.axis,be.displaceBy).point,jt=Zt(ae,Dt,We),Wt={placeholderSize:Dt,increasedBy:jt,oldFrameMaxScroll:ae.frame?ae.frame.scroll.max:null};if(!ut){var Rr=mt({page:ae.subject.page,withPlaceholder:Wt,axis:ae.axis,frame:ae.frame});return Object(v.a)({},ae,{subject:Rr})}var Zr=jt?Ce(ut.scroll.max,jt):ut.scroll.max,kr=Rn(ut,Zr),Or=mt({page:ae.subject.page,withPlaceholder:Wt,axis:ae.axis,frame:kr});return Object(v.a)({},ae,{subject:Or,frame:kr})},Un=function(ae){var be=ae.subject.withPlaceholder;be||Ue(!1);var We=ae.frame;if(!We){var ut=mt({page:ae.subject.page,axis:ae.axis,frame:null,withPlaceholder:null});return Object(v.a)({},ae,{subject:ut})}var Dt=be.oldFrameMaxScroll;Dt||Ue(!1);var jt=Rn(We,Dt),Wt=mt({page:ae.subject.page,axis:ae.axis,frame:jt,withPlaceholder:null});return Object(v.a)({},ae,{subject:Wt,frame:jt})},hn=function(ae){var be=ae.previousPageBorderBoxCenter,We=ae.moveRelativeTo,ut=ae.insideDestination,Dt=ae.draggable,jt=ae.draggables,Wt=ae.destination,Rr=ae.viewport,Zr=ae.afterCritical;if(!We){if(ut.length)return null;var kr={displaced:Cn,displacedBy:Qr,at:{type:"REORDER",destination:{droppableId:Wt.descriptor.id,index:0}}},Or=gi({impact:kr,draggable:Dt,droppable:Wt,draggables:jt,afterCritical:Zr}),Yr=sr(Dt,Wt)?Wt:vn(Wt,Dt,jt),rn=ze({draggable:Dt,destination:Yr,newPageBorderBoxCenter:Or,viewport:Rr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return rn?kr:null}var _n=Boolean(be[Wt.axis.line]<=We.page.borderBox.center[Wt.axis.line]),fi=function(){var Qi=We.descriptor.index;return We.descriptor.id===Dt.descriptor.id||_n?Qi:Qi+1}(),vi=tn(Wt.axis,Dt.displaceBy);return dt({draggable:Dt,insideDestination:ut,destination:Wt,viewport:Rr,displacedBy:vi,last:Cn,index:fi})},Wr=function(ae){var be=ae.isMovingForward,We=ae.previousPageBorderBoxCenter,ut=ae.draggable,Dt=ae.isOver,jt=ae.draggables,Wt=ae.droppables,Rr=ae.viewport,Zr=ae.afterCritical,kr=ft({isMovingForward:be,pageBorderBoxCenter:We,source:Dt,droppables:Wt,viewport:Rr});if(!kr)return null;var Or=pn(kr.descriptor.id,jt),Yr=Fr({pageBorderBoxCenter:We,viewport:Rr,destination:kr,insideDestination:Or,afterCritical:Zr}),rn=hn({previousPageBorderBoxCenter:We,destination:kr,draggable:ut,draggables:jt,moveRelativeTo:Yr,insideDestination:Or,viewport:Rr,afterCritical:Zr});if(!rn)return null;var _n=gi({impact:rn,draggable:ut,droppable:kr,draggables:jt,afterCritical:Zr}),fi=Ye({pageBorderBoxCenter:_n,draggable:ut,viewport:Rr});return{clientSelection:fi,impact:rn,scrollJumpRequest:null}},Kn=function(ae){var be=ae.at;return be?be.type==="REORDER"?be.destination.droppableId:be.combine.droppableId:null},ei=function(ae,be){var We=Kn(ae);return We?be[We]:null},Si=function(ae){var be=ae.state,We=ae.type,ut=ei(be.impact,be.dimensions.droppables),Dt=Boolean(ut),jt=be.dimensions.droppables[be.critical.droppable.id],Wt=ut||jt,Rr=Wt.axis.direction,Zr=Rr==="vertical"&&(We==="MOVE_UP"||We==="MOVE_DOWN")||Rr==="horizontal"&&(We==="MOVE_LEFT"||We==="MOVE_RIGHT");if(Zr&&!Dt)return null;var kr=We==="MOVE_DOWN"||We==="MOVE_RIGHT",Or=be.dimensions.draggables[be.critical.draggable.id],Yr=be.current.page.borderBoxCenter,rn=be.dimensions,_n=rn.draggables,fi=rn.droppables;return Zr?$e({isMovingForward:kr,previousPageBorderBoxCenter:Yr,draggable:Or,destination:Wt,draggables:_n,viewport:be.viewport,previousClientSelection:be.current.client.selection,previousImpact:be.impact,afterCritical:be.afterCritical}):Wr({isMovingForward:kr,previousPageBorderBoxCenter:Yr,draggable:Or,isOver:Wt,draggables:_n,droppables:fi,viewport:be.viewport,afterCritical:be.afterCritical})};function Vr(De){return De.phase==="DRAGGING"||De.phase==="COLLECTING"}function fn(De){var ae=ti(De.top,De.bottom),be=ti(De.left,De.right);return function(ut){return ae(ut.y)&&be(ut.x)}}function kn(De,ae){return De.left<ae.right&&De.right>ae.left&&De.top<ae.bottom&&De.bottom>ae.top}function It(De){var ae=De.pageBorderBox,be=De.draggable,We=De.candidates,ut=be.page.borderBox.center,Dt=We.map(function(jt){var Wt=jt.axis,Rr=Je(jt.axis.line,ae.center[Wt.line],jt.page.borderBox.center[Wt.crossAxisLine]);return{id:jt.descriptor.id,distance:lt(ut,Rr)}}).sort(function(jt,Wt){return Wt.distance-jt.distance});return Dt[0]?Dt[0].id:null}function yt(De){var ae=De.pageBorderBox,be=De.draggable,We=De.droppables,ut=qt(We).filter(function(Dt){if(!Dt.isEnabled)return!1;var jt=Dt.subject.active;if(!jt)return!1;if(!kn(ae,jt))return!1;if(fn(jt)(ae.center))return!0;var Wt=Dt.axis,Rr=jt.center[Wt.crossAxisLine],Zr=ae[Wt.crossAxisStart],kr=ae[Wt.crossAxisEnd],Or=ti(jt[Wt.crossAxisStart],jt[Wt.crossAxisEnd]),Yr=Or(Zr),rn=Or(kr);return!Yr&&!rn?!0:Yr?Zr<Rr:kr>Rr});return ut.length?ut.length===1?ut[0].descriptor.id:It({pageBorderBox:ae,draggable:be,candidates:ut}):null}var xt=function(ae,be){return e(Ve(ae,be))},Tt=function(ae,be){var We=ae.frame;return We?xt(be,We.scroll.diff.value):be};function Lt(De){var ae=De.displaced,be=De.id;return Boolean(ae.visible[be]||ae.invisible[be])}function _t(De){var ae=De.draggable,be=De.closest,We=De.inHomeList;return be?We&&be.descriptor.index>ae.descriptor.index?be.descriptor.index-1:be.descriptor.index:null}var Xt=function(ae){var be=ae.pageBorderBoxWithDroppableScroll,We=ae.draggable,ut=ae.destination,Dt=ae.insideDestination,jt=ae.last,Wt=ae.viewport,Rr=ae.afterCritical,Zr=ut.axis,kr=tn(ut.axis,We.displaceBy),Or=kr.value,Yr=be[Zr.start],rn=be[Zr.end],_n=dn(We,Dt),fi=Fe(_n,function(Qi){var Mi=Qi.descriptor.id,Da=Qi.page.borderBox.center[Zr.line],oa=Yt(Mi,Rr),$a=Lt({displaced:jt,id:Mi});return oa?$a?rn<=Da:Yr<Da-Or:$a?rn<=Da+Or:Yr<Da}),vi=_t({draggable:We,closest:fi,inHomeList:sr(We,ut)});return dt({draggable:We,insideDestination:Dt,destination:ut,viewport:Wt,last:jt,displacedBy:kr,index:vi})},er=4,nr=function(ae){var be=ae.draggable,We=ae.pageBorderBoxWithDroppableScroll,ut=ae.previousImpact,Dt=ae.destination,jt=ae.insideDestination,Wt=ae.afterCritical;if(!Dt.isCombineEnabled)return null;var Rr=Dt.axis,Zr=tn(Dt.axis,be.displaceBy),kr=Zr.value,Or=We[Rr.start],Yr=We[Rr.end],rn=dn(be,jt),_n=Fe(rn,function(vi){var Qi=vi.descriptor.id,Mi=vi.page.borderBox,Da=Mi[Rr.size],oa=Da/er,$a=Yt(Qi,Wt),ja=Lt({displaced:ut.displaced,id:Qi});return $a?ja?Yr>Mi[Rr.start]+oa&&Yr<Mi[Rr.end]-oa:Or>Mi[Rr.start]-kr+oa&&Or<Mi[Rr.end]-kr-oa:ja?Yr>Mi[Rr.start]+kr+oa&&Yr<Mi[Rr.end]+kr-oa:Or>Mi[Rr.start]+oa&&Or<Mi[Rr.end]-oa});if(!_n)return null;var fi={displacedBy:Zr,displaced:ut.displaced,at:{type:"COMBINE",combine:{draggableId:_n.descriptor.id,droppableId:Dt.descriptor.id}}};return fi},br=function(ae){var be=ae.pageOffset,We=ae.draggable,ut=ae.draggables,Dt=ae.droppables,jt=ae.previousImpact,Wt=ae.viewport,Rr=ae.afterCritical,Zr=xt(We.page.borderBox,be),kr=yt({pageBorderBox:Zr,draggable:We,droppables:Dt});if(!kr)return Fn;var Or=Dt[kr],Yr=pn(Or.descriptor.id,ut),rn=Tt(Or,Zr);return nr({pageBorderBoxWithDroppableScroll:rn,draggable:We,previousImpact:jt,destination:Or,insideDestination:Yr,afterCritical:Rr})||Xt({pageBorderBoxWithDroppableScroll:rn,draggable:We,destination:Or,insideDestination:Yr,last:jt.displaced,viewport:Wt,afterCritical:Rr})},On=function(ae,be){var We;return Object(v.a)({},ae,(We={},We[be.descriptor.id]=be,We))},bn=function(ae){var be=ae.previousImpact,We=ae.impact,ut=ae.droppables,Dt=Kn(be),jt=Kn(We);if(!Dt)return ut;if(Dt===jt)return ut;var Wt=ut[Dt];if(!Wt.subject.withPlaceholder)return ut;var Rr=Un(Wt);return On(ut,Rr)},qn=function(ae){var be=ae.draggable,We=ae.draggables,ut=ae.droppables,Dt=ae.previousImpact,jt=ae.impact,Wt=bn({previousImpact:Dt,impact:jt,droppables:ut}),Rr=Kn(jt);if(!Rr)return Wt;var Zr=ut[Rr];if(sr(be,Zr))return Wt;if(Zr.subject.withPlaceholder)return Wt;var kr=vn(Zr,be,We);return On(Wt,kr)},an=function(ae){var be=ae.state,We=ae.clientSelection,ut=ae.dimensions,Dt=ae.viewport,jt=ae.impact,Wt=ae.scrollJumpRequest,Rr=Dt||be.viewport,Zr=ut||be.dimensions,kr=We||be.current.client.selection,Or=ue(kr,be.initial.client.selection),Yr={offset:Or,selection:kr,borderBoxCenter:Ce(be.initial.client.borderBoxCenter,Or)},rn={selection:Ce(Yr.selection,Rr.scroll.current),borderBoxCenter:Ce(Yr.borderBoxCenter,Rr.scroll.current),offset:Ce(Yr.offset,Rr.scroll.diff.value)},_n={client:Yr,page:rn};if(be.phase==="COLLECTING")return Object(v.a)({phase:"COLLECTING"},be,{dimensions:Zr,viewport:Rr,current:_n});var fi=Zr.draggables[be.critical.draggable.id],vi=jt||br({pageOffset:rn.offset,draggable:fi,draggables:Zr.draggables,droppables:Zr.droppables,previousImpact:be.impact,viewport:Rr,afterCritical:be.afterCritical}),Qi=qn({draggable:fi,impact:vi,previousImpact:be.impact,draggables:Zr.draggables,droppables:Zr.droppables}),Mi=Object(v.a)({},be,{current:_n,dimensions:{draggables:Zr.draggables,droppables:Qi},impact:vi,viewport:Rr,scrollJumpRequest:Wt||null,forceShouldAnimate:Wt?!1:null});return Mi};function _r(De,ae){return De.map(function(be){return ae[be]})}var mn=function(ae){var be=ae.impact,We=ae.viewport,ut=ae.draggables,Dt=ae.destination,jt=ae.forceShouldAnimate,Wt=be.displaced,Rr=_r(Wt.all,ut),Zr=on({afterDragging:Rr,destination:Dt,displacedBy:be.displacedBy,viewport:We.frame,forceShouldAnimate:jt,last:Wt});return Object(v.a)({},be,{displaced:Zr})},In=function(ae){var be=ae.impact,We=ae.draggable,ut=ae.droppable,Dt=ae.draggables,jt=ae.viewport,Wt=ae.afterCritical,Rr=gi({impact:be,draggable:We,draggables:Dt,droppable:ut,afterCritical:Wt});return Ye({pageBorderBoxCenter:Rr,draggable:We,viewport:jt})},Wn=function(ae){var be=ae.state,We=ae.dimensions,ut=ae.viewport;be.movementMode==="SNAP"||Ue(!1);var Dt=be.impact,jt=ut||be.viewport,Wt=We||be.dimensions,Rr=Wt.draggables,Zr=Wt.droppables,kr=Rr[be.critical.draggable.id],Or=Kn(Dt);Or||Ue(!1);var Yr=Zr[Or],rn=mn({impact:Dt,viewport:jt,destination:Yr,draggables:Rr}),_n=In({impact:rn,draggable:kr,droppable:Yr,draggables:Rr,viewport:jt,afterCritical:be.afterCritical});return an({impact:rn,clientSelection:_n,state:be,dimensions:Wt,viewport:jt})},Jn=function(ae){return{index:ae.index,droppableId:ae.droppableId}},Ei=function(ae){var be=ae.draggable,We=ae.home,ut=ae.draggables,Dt=ae.viewport,jt=tn(We.axis,be.displaceBy),Wt=pn(We.descriptor.id,ut),Rr=Wt.indexOf(be);Rr!==-1||Ue(!1);var Zr=Wt.slice(Rr+1),kr=Zr.reduce(function(_n,fi){return _n[fi.descriptor.id]=!0,_n},{}),Or={inVirtualList:We.descriptor.mode==="virtual",displacedBy:jt,effected:kr},Yr=on({afterDragging:Zr,destination:We,displacedBy:jt,last:null,viewport:Dt.frame,forceShouldAnimate:!1}),rn={displaced:Yr,displacedBy:jt,at:{type:"REORDER",destination:Jn(be.descriptor)}};return{impact:rn,afterCritical:Or}},yi=function(ae,be){return{draggables:ae.draggables,droppables:On(ae.droppables,be)}},mi=function(ae){},Vi=function(ae){},la=function(ae){var be=ae.draggable,We=ae.offset,ut=ae.initialWindowScroll,Dt=b(be.client,We),jt=w(Dt,ut),Wt=Object(v.a)({},be,{placeholder:Object(v.a)({},be.placeholder,{client:Dt}),client:Dt,page:jt});return Wt},Gi=function(ae){var be=ae.frame;return be||Ue(!1),be},ia=function(ae){var be=ae.additions,We=ae.updatedDroppables,ut=ae.viewport,Dt=ut.scroll.diff.value;return be.map(function(jt){var Wt=jt.descriptor.droppableId,Rr=We[Wt],Zr=Gi(Rr),kr=Zr.scroll.diff.value,Or=Ce(Dt,kr),Yr=la({draggable:jt,offset:Or,initialWindowScroll:ut.scroll.initial});return Yr})},$i=function(ae){var be=ae.state,We=ae.published;mi();var ut=We.modified.map(function(oa){var $a=be.dimensions.droppables[oa.droppableId],ja=or($a,oa.scroll);return ja}),Dt=Object(v.a)({},be.dimensions.droppables,{},Lr(ut)),jt=pt(ia({additions:We.additions,updatedDroppables:Dt,viewport:be.viewport})),Wt=Object(v.a)({},be.dimensions.draggables,{},jt);We.removals.forEach(function(oa){delete Wt[oa]});var Rr={droppables:Dt,draggables:Wt},Zr=Kn(be.impact),kr=Zr?Rr.droppables[Zr]:null,Or=Rr.draggables[be.critical.draggable.id],Yr=Rr.droppables[be.critical.droppable.id],rn=Ei({draggable:Or,home:Yr,draggables:Wt,viewport:be.viewport}),_n=rn.impact,fi=rn.afterCritical,vi=kr&&kr.isCombineEnabled?be.impact:_n,Qi=br({pageOffset:be.current.page.offset,draggable:Rr.draggables[be.critical.draggable.id],draggables:Rr.draggables,droppables:Rr.droppables,previousImpact:vi,viewport:be.viewport,afterCritical:fi});Vi();var Mi=Object(v.a)({phase:"DRAGGING"},be,{phase:"DRAGGING",impact:Qi,onLiftImpact:_n,dimensions:Rr,afterCritical:fi,forceShouldAnimate:!1});if(be.phase==="COLLECTING")return Mi;var Da=Object(v.a)({phase:"DROP_PENDING"},Mi,{phase:"DROP_PENDING",reason:be.reason,isWaiting:!1});return Da},xn=function(ae){return ae.movementMode==="SNAP"},Ti=function(ae,be,We){var ut=yi(ae.dimensions,be);return!xn(ae)||We?an({state:ae,dimensions:ut}):Wn({state:ae,dimensions:ut})};function Ji(De){return De.isDragging&&De.movementMode==="SNAP"?Object(v.a)({phase:"DRAGGING"},De,{scrollJumpRequest:null}):De}var Wi={phase:"IDLE",completed:null,shouldFlush:!1},qi=function(ae,be){if(ae===void 0&&(ae=Wi),be.type==="FLUSH")return Object(v.a)({},Wi,{shouldFlush:!0});if(be.type==="INITIAL_PUBLISH"){ae.phase==="IDLE"||Ue(!1);var We=be.payload,ut=We.critical,Dt=We.clientSelection,jt=We.viewport,Wt=We.dimensions,Rr=We.movementMode,Zr=Wt.draggables[ut.draggable.id],kr=Wt.droppables[ut.droppable.id],Or={selection:Dt,borderBoxCenter:Zr.client.borderBox.center,offset:Ee},Yr={client:Or,page:{selection:Ce(Or.selection,jt.scroll.initial),borderBoxCenter:Ce(Or.selection,jt.scroll.initial),offset:Ce(Or.selection,jt.scroll.diff.value)}},rn=qt(Wt.droppables).every(function(us){return!us.isFixedOnPage}),_n=Ei({draggable:Zr,home:kr,draggables:Wt.draggables,viewport:jt}),fi=_n.impact,vi=_n.afterCritical,Qi={phase:"DRAGGING",isDragging:!0,critical:ut,movementMode:Rr,dimensions:Wt,initial:Yr,current:Yr,isWindowScrollAllowed:rn,impact:fi,afterCritical:vi,onLiftImpact:fi,viewport:jt,scrollJumpRequest:null,forceShouldAnimate:null};return Qi}if(be.type==="COLLECTION_STARTING"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ue(!1);var Mi=Object(v.a)({phase:"COLLECTING"},ae,{phase:"COLLECTING"});return Mi}if(be.type==="PUBLISH_WHILE_DRAGGING")return ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING"||Ue(!1),$i({state:ae,published:be.payload});if(be.type==="MOVE"){if(ae.phase==="DROP_PENDING")return ae;Vr(ae)||Ue(!1);var Da=be.payload.client;return ge(Da,ae.current.client.selection)?ae:an({state:ae,clientSelection:Da,impact:xn(ae)?ae.impact:null})}if(be.type==="UPDATE_DROPPABLE_SCROLL"){if(ae.phase==="DROP_PENDING")return Ji(ae);if(ae.phase==="COLLECTING")return Ji(ae);Vr(ae)||Ue(!1);var oa=be.payload,$a=oa.id,ja=oa.newScroll,Io=ae.dimensions.droppables[$a];if(!Io)return ae;var Vo=or(Io,ja);return Ti(ae,Vo,!1)}if(be.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;Vr(ae)||Ue(!1);var N=be.payload,U=N.id,ie=N.isEnabled,oe=ae.dimensions.droppables[U];oe||Ue(!1),oe.isEnabled!==ie||Ue(!1);var de=Object(v.a)({},oe,{isEnabled:ie});return Ti(ae,de,!0)}if(be.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;Vr(ae)||Ue(!1);var Be=be.payload,At=Be.id,Kt=Be.isCombineEnabled,rr=ae.dimensions.droppables[At];rr||Ue(!1),rr.isCombineEnabled!==Kt||Ue(!1);var pr=Object(v.a)({},rr,{isCombineEnabled:Kt});return Ti(ae,pr,!0)}if(be.type==="MOVE_BY_WINDOW_SCROLL"){if(ae.phase==="DROP_PENDING"||ae.phase==="DROP_ANIMATING")return ae;Vr(ae)||Ue(!1),ae.isWindowScrollAllowed||Ue(!1);var Tn=be.payload.newScroll;if(ge(ae.viewport.scroll.current,Tn))return Ji(ae);var zn=Ni(ae.viewport,Tn);return xn(ae)?Wn({state:ae,viewport:zn}):an({state:ae,viewport:zn})}if(be.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Vr(ae))return ae;var li=be.payload.maxScroll;if(ge(li,ae.viewport.scroll.max))return ae;var di=Object(v.a)({},ae.viewport,{scroll:Object(v.a)({},ae.viewport.scroll,{max:li})});return Object(v.a)({phase:"DRAGGING"},ae,{viewport:di})}if(be.type==="MOVE_UP"||be.type==="MOVE_DOWN"||be.type==="MOVE_LEFT"||be.type==="MOVE_RIGHT"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ue(!1);var Ki=Si({state:ae,type:be.type});return Ki?an({state:ae,impact:Ki.impact,clientSelection:Ki.clientSelection,scrollJumpRequest:Ki.scrollJumpRequest}):ae}if(be.type==="DROP_PENDING"){var fa=be.payload.reason;ae.phase==="COLLECTING"||Ue(!1);var Ta=Object(v.a)({phase:"DROP_PENDING"},ae,{phase:"DROP_PENDING",isWaiting:!0,reason:fa});return Ta}if(be.type==="DROP_ANIMATE"){var ba=be.payload,ya=ba.completed,Ha=ba.dropDuration,Ja=ba.newHomeClientOffset;ae.phase==="DRAGGING"||ae.phase==="DROP_PENDING"||Ue(!1);var Uo={phase:"DROP_ANIMATING",completed:ya,dropDuration:Ha,newHomeClientOffset:Ja,dimensions:ae.dimensions};return Uo}if(be.type==="DROP_COMPLETE"){var Ao=be.payload.completed;return{phase:"IDLE",completed:Ao,shouldFlush:!1}}return ae},Ir=function(ae){return{type:"BEFORE_INITIAL_CAPTURE",payload:ae}},ar=function(ae){return{type:"LIFT",payload:ae}},nn=function(ae){return{type:"INITIAL_PUBLISH",payload:ae}},Gt=function(ae){return{type:"PUBLISH_WHILE_DRAGGING",payload:ae}},wr=function(){return{type:"COLLECTION_STARTING",payload:null}},Pr=function(ae){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ae}},Jr=function(ae){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ae}},wn=function(ae){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ae}},bt=function(ae){return{type:"MOVE",payload:ae}},mr=function(ae){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ae}},Ar=function(ae){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ae}},Ur=function(){return{type:"MOVE_UP",payload:null}},un=function(){return{type:"MOVE_DOWN",payload:null}},An=function(){return{type:"MOVE_RIGHT",payload:null}},ln=function(){return{type:"MOVE_LEFT",payload:null}},Hn=function(){return{type:"FLUSH",payload:null}},Ln=function(ae){return{type:"DROP_ANIMATE",payload:ae}},ni=function(ae){return{type:"DROP_COMPLETE",payload:ae}},Ai=function(ae){return{type:"DROP",payload:ae}},ii=function(ae){return{type:"DROP_PENDING",payload:ae}},_i=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Ri(De){if(De.length<=1)return;for(var ae=De.map(function(Wt){return Wt.descriptor.index}),be={},We=1;We<ae.length;We++){var ut=ae[We],Dt=ae[We-1];ut!==Dt+1&&(be[ut]=!0)}if(!Object.keys(be).length)return;var jt=ae.map(function(Wt){var Rr=Boolean(be[Wt]);return Rr?"[\u{1F525}"+Wt+"]":""+Wt}).join(", ")}function ji(De,ae){if(!1)var be}var wi=function(ae){return function(be){var We=be.getState,ut=be.dispatch;return function(Dt){return function(jt){if(jt.type!=="LIFT"){Dt(jt);return}var Wt=jt.payload,Rr=Wt.id,Zr=Wt.clientSelection,kr=Wt.movementMode,Or=We();Or.phase==="DROP_ANIMATING"&&ut(ni({completed:Or.completed})),We().phase==="IDLE"||Ue(!1),ut(Hn()),ut(Ir({draggableId:Rr,movementMode:kr}));var Yr={shouldPublishImmediately:kr==="SNAP"},rn={draggableId:Rr,scrollOptions:Yr},_n=ae.startPublishing(rn),fi=_n.critical,vi=_n.dimensions,Qi=_n.viewport;ji(fi,vi),ut(nn({critical:fi,dimensions:vi,clientSelection:Zr,movementMode:kr,viewport:Qi}))}}}},Ii=function(ae){return function(){return function(be){return function(We){We.type==="INITIAL_PUBLISH"&&ae.dragging(),We.type==="DROP_ANIMATE"&&ae.dropping(We.payload.completed.result.reason),(We.type==="FLUSH"||We.type==="DROP_COMPLETE")&&ae.resting(),be(We)}}}},Oi={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ui={opacity:{drop:0,combining:.7},scale:{drop:.75}},Zi={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},ma=Zi.outOfTheWay+"s "+Oi.outOfTheWay,Hi={fluid:"opacity "+ma,snap:"transform "+ma+", opacity "+ma,drop:function(ae){var be=ae+"s "+Oi.drop;return"transform "+be+", opacity "+be},outOfTheWay:"transform "+ma,placeholder:"height "+ma+", width "+ma+", margin "+ma},xa=function(ae){return ge(ae,Ee)?null:"translate("+ae.x+"px, "+ae.y+"px)"},Ea={moveTo:xa,drop:function(ae,be){var We=xa(ae);return We?be?We+" scale("+Ui.scale.drop+")":We:null}},ta=Zi.minDropTime,ra=Zi.maxDropTime,ga=ra-ta,sa=1500,Ba=.6,va=function(ae){var be=ae.current,We=ae.destination,ut=ae.reason,Dt=lt(be,We);if(Dt<=0)return ta;if(Dt>=sa)return ra;var jt=Dt/sa,Wt=ta+ga*jt,Rr=ut==="CANCEL"?Wt*Ba:Wt;return Number(Rr.toFixed(2))},Ia=function(ae){var be=ae.impact,We=ae.draggable,ut=ae.dimensions,Dt=ae.viewport,jt=ae.afterCritical,Wt=ut.draggables,Rr=ut.droppables,Zr=Kn(be),kr=Zr?Rr[Zr]:null,Or=Rr[We.descriptor.droppableId],Yr=In({impact:be,draggable:We,draggables:Wt,afterCritical:jt,droppable:kr||Or,viewport:Dt}),rn=ue(Yr,We.client.borderBox.center);return rn},za=function(ae){var be=ae.draggables,We=ae.reason,ut=ae.lastImpact,Dt=ae.home,jt=ae.viewport,Wt=ae.onLiftImpact;if(!ut.at||We!=="DROP"){var Rr=mn({draggables:be,impact:Wt,destination:Dt,viewport:jt,forceShouldAnimate:!0});return{impact:Rr,didDropInsideDroppable:!1}}if(ut.at.type==="REORDER")return{impact:ut,didDropInsideDroppable:!0};var Zr=Object(v.a)({},ut,{displaced:Cn});return{impact:Zr,didDropInsideDroppable:!0}},Va=function(ae){var be=ae.getState,We=ae.dispatch;return function(ut){return function(Dt){if(Dt.type!=="DROP"){ut(Dt);return}var jt=be(),Wt=Dt.payload.reason;if(jt.phase==="COLLECTING"){We(ii({reason:Wt}));return}if(jt.phase==="IDLE")return;var Rr=jt.phase==="DROP_PENDING"&&jt.isWaiting;Rr&&Ue(!1),jt.phase==="DRAGGING"||jt.phase==="DROP_PENDING"||Ue(!1);var Zr=jt.critical,kr=jt.dimensions,Or=kr.draggables[jt.critical.draggable.id],Yr=za({reason:Wt,lastImpact:jt.impact,afterCritical:jt.afterCritical,onLiftImpact:jt.onLiftImpact,home:jt.dimensions.droppables[jt.critical.droppable.id],viewport:jt.viewport,draggables:jt.dimensions.draggables}),rn=Yr.impact,_n=Yr.didDropInsideDroppable,fi=_n?fr(rn):null,vi=_n?gr(rn):null,Qi={index:Zr.draggable.index,droppableId:Zr.droppable.id},Mi={draggableId:Or.descriptor.id,type:Or.descriptor.type,source:Qi,reason:Wt,mode:jt.movementMode,destination:fi,combine:vi},Da=Ia({impact:rn,draggable:Or,dimensions:kr,viewport:jt.viewport,afterCritical:jt.afterCritical}),oa={critical:jt.critical,afterCritical:jt.afterCritical,result:Mi,impact:rn},$a=!ge(jt.current.client.offset,Da)||Boolean(Mi.combine);if(!$a){We(ni({completed:oa}));return}var ja=va({current:jt.current.client.offset,destination:Da,reason:Wt}),Io={newHomeClientOffset:Da,dropDuration:ja,completed:oa};We(Ln(Io))}}},Ya=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Bi(De){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(be){if(be.target!==window&&be.target!==window.document)return;De()}}}function ro(De){var ae=De.onWindowScroll;function be(){ae(Ya())}var We=R(be),ut=Bi(We),Dt=se;function jt(){return Dt!==se}function Wt(){jt()&&Ue(!1),Dt=Ae(window,[ut])}function Rr(){jt()||Ue(!1),We.cancel(),Dt(),Dt=se}return{start:Wt,stop:Rr,isActive:jt}}var lo=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},no=function(ae){var be=ro({onWindowScroll:function(ut){ae.dispatch(mr({newScroll:ut}))}});return function(We){return function(ut){!be.isActive()&&ut.type==="INITIAL_PUBLISH"&&be.start(),be.isActive()&&lo(ut)&&be.stop(),We(ut)}}},co=function(ae){var be=!1,We=!1,ut=setTimeout(function(){We=!0}),Dt=function(Wt){if(be)return;if(We)return;be=!0,ae(Wt),clearTimeout(ut)};return Dt.wasCalled=function(){return be},Dt},To=function(){var ae=[],be=function(jt){var Wt=qr(ae,function(kr){return kr.timerId===jt});Wt!==-1||Ue(!1);var Rr=ae.splice(Wt,1),Zr=Rr[0];Zr.callback()},We=function(jt){var Wt=setTimeout(function(){return be(Wt)}),Rr={timerId:Wt,callback:jt};ae.push(Rr)},ut=function(){if(!ae.length)return;var jt=[].concat(ae);ae.length=0,jt.forEach(function(Wt){clearTimeout(Wt.timerId),Wt.callback()})};return{add:We,flush:ut}},Ga=function(ae,be){return ae==null&&be==null?!0:ae==null||be==null?!1:ae.droppableId===be.droppableId&&ae.index===be.index},Po=function(ae,be){return ae==null&&be==null?!0:ae==null||be==null?!1:ae.draggableId===be.draggableId&&ae.droppableId===be.droppableId},uo=function(ae,be){if(ae===be)return!0;var We=ae.draggable.id===be.draggable.id&&ae.draggable.droppableId===be.draggable.droppableId&&ae.draggable.type===be.draggable.type&&ae.draggable.index===be.draggable.index,ut=ae.droppable.id===be.droppable.id&&ae.droppable.type===be.droppable.type;return We&&ut},ho=function(ae,be){mi(),be(),Vi()},zo=function(ae,be){return{draggableId:ae.draggable.id,type:ae.droppable.type,source:{droppableId:ae.droppable.id,index:ae.draggable.index},mode:be}},Oa=function(ae,be,We,ut){if(!ae){We(ut(be));return}var Dt=co(We),jt={announce:Dt};ae(be,jt),Dt.wasCalled()||We(ut(be))},mo=function(ae,be){var We=To(),ut=null,Dt=function(rn,_n){ut&&Ue(!1),ho("onBeforeCapture",function(){var fi=ae().onBeforeCapture;if(fi){var vi={draggableId:rn,mode:_n};fi(vi)}})},jt=function(rn,_n){ut&&Ue(!1),ho("onBeforeDragStart",function(){var fi=ae().onBeforeDragStart;fi&&fi(zo(rn,_n))})},Wt=function(rn,_n){ut&&Ue(!1);var fi=zo(rn,_n);ut={mode:_n,lastCritical:rn,lastLocation:fi.source,lastCombine:null},We.add(function(){ho("onDragStart",function(){return Oa(ae().onDragStart,fi,be,ye.onDragStart)})})},Rr=function(rn,_n){var fi=fr(_n),vi=gr(_n);ut||Ue(!1);var Qi=!uo(rn,ut.lastCritical);Qi&&(ut.lastCritical=rn);var Mi=!Ga(ut.lastLocation,fi);Mi&&(ut.lastLocation=fi);var Da=!Po(ut.lastCombine,vi);if(Da&&(ut.lastCombine=vi),!Qi&&!Mi&&!Da)return;var oa=Object(v.a)({},zo(rn,ut.mode),{combine:vi,destination:fi});We.add(function(){ho("onDragUpdate",function(){return Oa(ae().onDragUpdate,oa,be,ye.onDragUpdate)})})},Zr=function(){ut||Ue(!1),We.flush()},kr=function(rn){ut||Ue(!1),ut=null,ho("onDragEnd",function(){return Oa(ae().onDragEnd,rn,be,ye.onDragEnd)})},Or=function(){if(!ut)return;var rn=Object(v.a)({},zo(ut.lastCritical,ut.mode),{combine:null,destination:null,reason:"CANCEL"});kr(rn)};return{beforeCapture:Dt,beforeStart:jt,start:Wt,update:Rr,flush:Zr,drop:kr,abort:Or}},Do=function(ae,be){var We=mo(ae,be);return function(ut){return function(Dt){return function(jt){if(jt.type==="BEFORE_INITIAL_CAPTURE"){We.beforeCapture(jt.payload.draggableId,jt.payload.movementMode);return}if(jt.type==="INITIAL_PUBLISH"){var Wt=jt.payload.critical;We.beforeStart(Wt,jt.payload.movementMode),Dt(jt),We.start(Wt,jt.payload.movementMode);return}if(jt.type==="DROP_COMPLETE"){var Rr=jt.payload.completed.result;We.flush(),Dt(jt),We.drop(Rr);return}if(Dt(jt),jt.type==="FLUSH"){We.abort();return}var Zr=ut.getState();Zr.phase==="DRAGGING"&&We.update(Zr.critical,Zr.impact)}}}},Qo=function(ae){return function(be){return function(We){if(We.type!=="DROP_ANIMATION_FINISHED"){be(We);return}var ut=ae.getState();ut.phase==="DROP_ANIMATING"||Ue(!1),ae.dispatch(ni({completed:ut.completed}))}}},xo=function(ae){var be=null,We=null;function ut(){We&&(cancelAnimationFrame(We),We=null),be&&(be(),be=null)}return function(Dt){return function(jt){if((jt.type==="FLUSH"||jt.type==="DROP_COMPLETE"||jt.type==="DROP_ANIMATION_FINISHED")&&ut(),Dt(jt),jt.type!=="DROP_ANIMATE")return;var Wt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Zr=ae.getState();Zr.phase==="DROP_ANIMATING"&&ae.dispatch(_i())}};We=requestAnimationFrame(function(){We=null,be=Ae(window,[Wt])})}}},Fo=function(ae){return function(){return function(be){return function(We){(We.type==="DROP_COMPLETE"||We.type==="FLUSH"||We.type==="DROP_ANIMATE")&&ae.stopPublishing(),be(We)}}}},Ho=function(ae){var be=!1;return function(){return function(We){return function(ut){if(ut.type==="INITIAL_PUBLISH"){be=!0,ae.tryRecordFocus(ut.payload.critical.draggable.id),We(ut),ae.tryRestoreFocusRecorded();return}if(We(ut),!be)return;if(ut.type==="FLUSH"){be=!1,ae.tryRestoreFocusRecorded();return}if(ut.type==="DROP_COMPLETE"){be=!1;var Dt=ut.payload.completed.result;Dt.combine&&ae.tryShiftRecord(Dt.draggableId,Dt.combine.draggableId),ae.tryRestoreFocusRecorded()}}}}},go=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},qa=function(ae){return function(be){return function(We){return function(ut){if(go(ut)){ae.stop(),We(ut);return}if(ut.type==="INITIAL_PUBLISH"){We(ut);var Dt=be.getState();Dt.phase==="DRAGGING"||Ue(!1),ae.start(Dt);return}We(ut),ae.scroll(be.getState())}}}},_a=function(ae){return function(be){return function(We){if(be(We),We.type!=="PUBLISH_WHILE_DRAGGING")return;var ut=ae.getState();if(ut.phase!=="DROP_PENDING")return;if(ut.isWaiting)return;ae.dispatch(Ai({reason:ut.reason}))}}},at=m.d,dr=function(ae){var be=ae.dimensionMarshal,We=ae.focusMarshal,ut=ae.styleMarshal,Dt=ae.getResponders,jt=ae.announce,Wt=ae.autoScroller;return Object(m.e)(qi,at(Object(m.a)(Ii(ut),Fo(be),wi(be),Va,Qo,xo,_a,qa(Wt),no,Ho(We),Do(Dt,jt))))},Kr=function(){return{additions:{},removals:{},modified:{}}};function Br(De){var ae=De.registry,be=De.callbacks,We=Kr(),ut=null,Dt=function(){if(ut)return;be.collectionStarting(),ut=requestAnimationFrame(function(){ut=null,mi();var kr=We,Or=kr.additions,Yr=kr.removals,rn=kr.modified,_n=Object.keys(Or).map(function(Qi){return ae.draggable.getById(Qi).getDimension(Ee)}).sort(function(Qi,Mi){return Qi.descriptor.index-Mi.descriptor.index}),fi=Object.keys(rn).map(function(Qi){var Mi=ae.droppable.getById(Qi),Da=Mi.callbacks.getScrollWhileDragging();return{droppableId:Qi,scroll:Da}}),vi={additions:_n,removals:Object.keys(Yr),modified:fi};We=Kr(),Vi(),be.publish(vi)})},jt=function(kr){var Or=kr.descriptor.id;We.additions[Or]=kr,We.modified[kr.descriptor.droppableId]=!0,We.removals[Or]&&delete We.removals[Or],Dt()},Wt=function(kr){var Or=kr.descriptor;We.removals[Or.id]=!0,We.modified[Or.droppableId]=!0,We.additions[Or.id]&&delete We.additions[Or.id],Dt()},Rr=function(){if(!ut)return;cancelAnimationFrame(ut),ut=null,We=Kr()};return{add:jt,remove:Wt,stop:Rr}}var Pn=function(ae){var be=ae.scrollHeight,We=ae.scrollWidth,ut=ae.height,Dt=ae.width,jt=ue({x:We,y:be},{x:Dt,y:ut}),Wt={x:Math.max(0,jt.x),y:Math.max(0,jt.y)};return Wt},$r=function(){var ae=document.documentElement;return ae||Ue(!1),ae},Mr=function(){var ae=$r(),be=Pn({scrollHeight:ae.scrollHeight,scrollWidth:ae.scrollWidth,width:ae.clientWidth,height:ae.clientHeight});return be},Gn=function(){var ae=Ya(),be=Mr(),We=ae.y,ut=ae.x,Dt=$r(),jt=Dt.clientWidth,Wt=Dt.clientHeight,Rr=ut+jt,Zr=We+Wt,kr=e({top:We,left:ut,right:Rr,bottom:Zr}),Or={frame:kr,scroll:{initial:ae,current:ae,max:be,diff:{value:Ee,displacement:Ee}}};return Or},zr=function(ae){var be=ae.critical,We=ae.scrollOptions,ut=ae.registry;mi();var Dt=Gn(),jt=Dt.scroll.current,Wt=be.droppable,Rr=ut.droppable.getAllByType(Wt.type).map(function(Yr){return Yr.callbacks.getDimensionAndWatchScroll(jt,We)}),Zr=ut.draggable.getAllByType(be.draggable.type).map(function(Yr){return Yr.getDimension(jt)}),kr={draggables:pt(Zr),droppables:Lr(Rr)};Vi();var Or={dimensions:kr,critical:be,viewport:Dt};return Or};function Nn(De,ae,be){if(be.descriptor.id===ae.id)return!1;if(be.descriptor.type!==ae.type)return!1;var We=De.droppable.getById(be.descriptor.droppableId);return!(We.descriptor.mode!=="virtual")}var Qn=function(ae,be){var We=null,ut=Br({callbacks:{publish:be.publishWhileDragging,collectionStarting:be.collectionStarting},registry:ae}),Dt=function(_n,fi){if(ae.droppable.exists(_n)||Ue(!1),!We)return;be.updateDroppableIsEnabled({id:_n,isEnabled:fi})},jt=function(_n,fi){if(!We)return;ae.droppable.exists(_n)||Ue(!1),be.updateDroppableIsCombineEnabled({id:_n,isCombineEnabled:fi})},Wt=function(_n,fi){if(!We)return;ae.droppable.exists(_n)||Ue(!1),be.updateDroppableScroll({id:_n,newScroll:fi})},Rr=function(_n,fi){if(!We)return;ae.droppable.getById(_n).callbacks.scroll(fi)},Zr=function(){if(!We)return;ut.stop();var _n=We.critical.droppable;ae.droppable.getAllByType(_n.type).forEach(function(fi){return fi.callbacks.dragStopped()}),We.unsubscribe(),We=null},kr=function(_n){We||Ue(!1);var fi=We.critical.draggable;_n.type==="ADDITION"&&(Nn(ae,fi,_n.value)&&ut.add(_n.value)),_n.type==="REMOVAL"&&(Nn(ae,fi,_n.value)&&ut.remove(_n.value))},Or=function(_n){We&&Ue(!1);var fi=ae.draggable.getById(_n.draggableId),vi=ae.droppable.getById(fi.descriptor.droppableId),Qi={draggable:fi.descriptor,droppable:vi.descriptor},Mi=ae.subscribe(kr);return We={critical:Qi,unsubscribe:Mi},zr({critical:Qi,registry:ae,scrollOptions:_n.scrollOptions})},Yr={updateDroppableIsEnabled:Dt,updateDroppableIsCombineEnabled:jt,scrollDroppable:Rr,updateDroppableScroll:Wt,startPublishing:Or,stopPublishing:Zr};return Yr},Zn=function(ae,be){return ae.phase==="IDLE"?!0:ae.phase!=="DROP_ANIMATING"||ae.completed.result.draggableId===be?!1:ae.completed.result.reason==="DROP"},Yn=function(ae){window.scrollBy(ae.x,ae.y)},ui=O(function(De){return qt(De).filter(function(ae){return ae.isEnabled?!!ae.frame:!1})}),ai=function(ae,be){var We=Fe(ui(be),function(ut){return ut.frame||Ue(!1),fn(ut.frame.pageMarginBox)(ae)});return We},hi=function(ae){var be=ae.center,We=ae.destination,ut=ae.droppables;if(We){var Dt=ut[We];return Dt.frame?Dt:null}var jt=ai(be,ut);return jt},pi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ae){return Math.pow(ae,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},zi=function(ae,be){var We=ae[be.size]*pi.startFromPercentage,ut=ae[be.size]*pi.maxScrollAtPercentage,Dt={startScrollingFrom:We,maxScrollValueAt:ut};return Dt},Ci=function(ae){var be=ae.startOfRange,We=ae.endOfRange,ut=ae.current,Dt=We-be;if(Dt===0)return 0;var jt=ut-be,Wt=jt/Dt;return Wt},na=1,La=function(ae,be){if(ae>be.startScrollingFrom)return 0;if(ae<=be.maxScrollValueAt)return pi.maxPixelScroll;if(ae===be.startScrollingFrom)return na;var We=Ci({startOfRange:be.maxScrollValueAt,endOfRange:be.startScrollingFrom,current:ae}),ut=1-We,Dt=pi.maxPixelScroll*pi.ease(ut);return Math.ceil(Dt)},pa=pi.durationDampening.accelerateAt,ca=pi.durationDampening.stopDampeningAt,wa=function(ae,be){var We=be,ut=ca,Dt=Date.now(),jt=Dt-We;if(jt>=ca)return ae;if(jt<pa)return na;var Wt=Ci({startOfRange:pa,endOfRange:ut,current:jt}),Rr=ae*pi.ease(Wt);return Math.ceil(Rr)},Ca=function(ae){var be=ae.distanceToEdge,We=ae.thresholds,ut=ae.dragStartTime,Dt=ae.shouldUseTimeDampening,jt=La(be,We);return jt===0?0:Dt?Math.max(wa(jt,ut),na):jt},No=function(ae){var be=ae.container,We=ae.distanceToEdges,ut=ae.dragStartTime,Dt=ae.axis,jt=ae.shouldUseTimeDampening,Wt=zi(be,Dt),Rr=We[Dt.end]<We[Dt.start];return Rr?Ca({distanceToEdge:We[Dt.end],thresholds:Wt,dragStartTime:ut,shouldUseTimeDampening:jt}):-1*Ca({distanceToEdge:We[Dt.start],thresholds:Wt,dragStartTime:ut,shouldUseTimeDampening:jt})},fo=function(ae){var be=ae.container,We=ae.subject,ut=ae.proposedScroll,Dt=We.height>be.height,jt=We.width>be.width;return!jt&&!Dt?ut:jt&&Dt?null:{x:jt?0:ut.x,y:Dt?0:ut.y}},ea=ke(function(De){return De===0?0:De}),ua=function(ae){var be=ae.dragStartTime,We=ae.container,ut=ae.subject,Dt=ae.center,jt=ae.shouldUseTimeDampening,Wt={top:Dt.y-We.top,right:We.right-Dt.x,bottom:We.bottom-Dt.y,left:Dt.x-We.left},Rr=No({container:We,distanceToEdges:Wt,dragStartTime:be,axis:Bn,shouldUseTimeDampening:jt}),Zr=No({container:We,distanceToEdges:Wt,dragStartTime:be,axis:Ft,shouldUseTimeDampening:jt}),kr=ea({x:Zr,y:Rr});if(ge(kr,Ee))return null;var Or=fo({container:We,subject:ut,proposedScroll:kr});return Or?ge(Or,Ee)?null:Or:null},da=ke(function(De){return De===0?0:De>0?1:-1}),Ra=function(){var De=function(be,We){return be<0?be:be>We?be-We:0};return function(ae){var be=ae.current,We=ae.max,ut=ae.change,Dt=Ce(be,ut),jt={x:De(Dt.x,We.x),y:De(Dt.y,We.y)};return ge(jt,Ee)?null:jt}}(),Za=function(ae){var be=ae.max,We=ae.current,ut=ae.change,Dt={x:Math.max(We.x,be.x),y:Math.max(We.y,be.y)},jt=da(ut),Wt=Ra({max:Dt,current:We,change:jt});return Wt?jt.x!==0&&Wt.x===0?!0:jt.y!==0&&Wt.y===0:!0},Qa=function(ae,be){return Za({current:ae.scroll.current,max:ae.scroll.max,change:be})},oo=function(ae,be){if(!Qa(ae,be))return null;var We=ae.scroll.max,ut=ae.scroll.current;return Ra({current:ut,max:We,change:be})},bo=function(ae,be){var We=ae.frame;return We?Za({current:We.scroll.current,max:We.scroll.max,change:be}):!1},es=function(ae,be){var We=ae.frame;return We&&bo(ae,be)?Ra({current:We.scroll.current,max:We.scroll.max,change:be}):null},ss=function(ae){var be=ae.viewport,We=ae.subject,ut=ae.center,Dt=ae.dragStartTime,jt=ae.shouldUseTimeDampening,Wt=ua({dragStartTime:Dt,container:be.frame,subject:We,center:ut,shouldUseTimeDampening:jt});return Wt&&Qa(be,Wt)?Wt:null},Rs=function(ae){var be=ae.droppable,We=ae.subject,ut=ae.center,Dt=ae.dragStartTime,jt=ae.shouldUseTimeDampening,Wt=be.frame;if(!Wt)return null;var Rr=ua({dragStartTime:Dt,container:Wt.pageMarginBox,subject:We,center:ut,shouldUseTimeDampening:jt});return Rr&&bo(be,Rr)?Rr:null},Ko=function(ae){var be=ae.state,We=ae.dragStartTime,ut=ae.shouldUseTimeDampening,Dt=ae.scrollWindow,jt=ae.scrollDroppable,Wt=be.current.page.borderBoxCenter,Rr=be.dimensions.draggables[be.critical.draggable.id],Zr=Rr.page.marginBox;if(be.isWindowScrollAllowed){var kr=be.viewport,Or=ss({dragStartTime:We,viewport:kr,subject:Zr,center:Wt,shouldUseTimeDampening:ut});if(Or){Dt(Or);return}}var Yr=hi({center:Wt,destination:Kn(be.impact),droppables:be.dimensions.droppables});if(!Yr)return;var rn=Rs({dragStartTime:We,droppable:Yr,subject:Zr,center:Wt,shouldUseTimeDampening:ut});rn&&jt(Yr.descriptor.id,rn)},qo=function(ae){var be=ae.scrollWindow,We=ae.scrollDroppable,ut=R(be),Dt=R(We),jt=null,Wt=function(Or){jt||Ue(!1);var Yr=jt,rn=Yr.shouldUseTimeDampening,_n=Yr.dragStartTime;Ko({state:Or,scrollWindow:ut,scrollDroppable:Dt,dragStartTime:_n,shouldUseTimeDampening:rn})},Rr=function(Or){mi(),jt&&Ue(!1);var Yr=Date.now(),rn=!1,_n=function(){rn=!0};Ko({state:Or,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:_n,scrollDroppable:_n}),jt={dragStartTime:Yr,shouldUseTimeDampening:rn},Vi(),rn&&Wt(Or)},Zr=function(){if(!jt)return;ut.cancel(),Dt.cancel(),jt=null};return{start:Rr,stop:Zr,scroll:Wt}},to=function(ae){var be=ae.move,We=ae.scrollDroppable,ut=ae.scrollWindow,Dt=function(kr,Or){var Yr=Ce(kr.current.client.selection,Or);be({client:Yr})},jt=function(kr,Or){if(!bo(kr,Or))return Or;var Yr=es(kr,Or);if(!Yr)return We(kr.descriptor.id,Or),null;var rn=ue(Or,Yr);We(kr.descriptor.id,rn);var _n=ue(Or,rn);return _n},Wt=function(kr,Or,Yr){if(!kr)return Yr;if(!Qa(Or,Yr))return Yr;var rn=oo(Or,Yr);if(!rn)return ut(Yr),null;var _n=ue(Yr,rn);ut(_n);var fi=ue(Yr,_n);return fi},Rr=function(kr){var Or=kr.scrollJumpRequest;if(!Or)return;var Yr=Kn(kr.impact);Yr||Ue(!1);var rn=jt(kr.dimensions.droppables[Yr],Or);if(!rn)return;var _n=kr.viewport,fi=Wt(kr.isWindowScrollAllowed,_n,rn);if(!fi)return;Dt(kr,fi)};return Rr},Xa=function(ae){var be=ae.scrollDroppable,We=ae.scrollWindow,ut=ae.move,Dt=qo({scrollWindow:We,scrollDroppable:be}),jt=to({move:ut,scrollWindow:We,scrollDroppable:be}),Wt=function(kr){if(kr.phase!=="DRAGGING")return;if(kr.movementMode==="FLUID"){Dt.scroll(kr);return}if(!kr.scrollJumpRequest)return;jt(kr)},Rr={scroll:Wt,start:Dt.start,stop:Dt.stop};return Rr},Wa="data-rbd",Jo=function(){var De=Wa+"-drag-handle";return{base:De,draggableId:De+"-draggable-id",contextId:De+"-context-id"}}(),hs=function(){var De=Wa+"-draggable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),Eo=function(){var De=Wa+"-droppable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),Ws={contextId:Wa+"-scroll-container-context-id"},_o=function(ae){return function(be){return"["+be+'="'+ae+'"]'}},Mo=function(ae,be){return ae.map(function(We){var ut=We.styles[be];return ut?We.selector+" { "+ut+" }":""}).join(" ")},xs="pointer-events: none;",Go=function(ae){var be=_o(ae),We=function(){var Rr=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:be(Jo.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Rr,dragging:xs,dropAnimating:Rr}}}(),ut=function(){var Rr=`
transition: `+Hi.outOfTheWay+`;
`;return{selector:be(hs.contextId),styles:{dragging:Rr,dropAnimating:Rr,userCancel:Rr}}}(),Dt={selector:be(Eo.contextId),styles:{always:"overflow-anchor: none;"}},jt={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;
`}},Wt=[ut,We,Dt,jt];return{always:Mo(Wt,"always"),resting:Mo(Wt,"resting"),dragging:Mo(Wt,"dragging"),dropAnimating:Mo(Wt,"dropAnimating"),userCancel:Mo(Wt,"userCancel")}},ns=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,is=function(){var ae=document.querySelector("head");return ae||Ue(!1),ae},bs=function(ae){var be=document.createElement("style");return ae&&be.setAttribute("nonce",ae),be.type="text/css",be};function Sl(De,ae){var be=n(function(){return Go(De)},[De]),We=Object(y.useRef)(null),ut=Object(y.useRef)(null),Dt=t(O(function(Or){var Yr=ut.current;Yr||Ue(!1),Yr.textContent=Or}),[]),jt=t(function(Or){var Yr=We.current;Yr||Ue(!1),Yr.textContent=Or},[]);ns(function(){!We.current&&!ut.current||Ue(!1);var Or=bs(ae),Yr=bs(ae);return We.current=Or,ut.current=Yr,Or.setAttribute(Wa+"-always",De),Yr.setAttribute(Wa+"-dynamic",De),is().appendChild(Or),is().appendChild(Yr),jt(be.always),Dt(be.resting),function(){var rn=function(fi){var vi=fi.current;vi||Ue(!1),is().removeChild(vi),fi.current=null};rn(We),rn(ut)}},[ae,jt,Dt,be.always,be.resting,De]);var Wt=t(function(){return Dt(be.dragging)},[Dt,be.dragging]),Rr=t(function(Or){if(Or==="DROP"){Dt(be.dropAnimating);return}Dt(be.userCancel)},[Dt,be.dropAnimating,be.userCancel]),Zr=t(function(){if(!ut.current)return;Dt(be.resting)},[Dt,be.resting]),kr=n(function(){return{dragging:Wt,dropping:Rr,resting:Zr}},[Wt,Rr,Zr]);return kr}var Fs=function(ae){return ae&&ae.ownerDocument?ae.ownerDocument.defaultView:window};function Ms(De){return De instanceof Fs(De).HTMLElement}function cs(De,ae){var be="["+Jo.contextId+'="'+De+'"]',We=$t(document.querySelectorAll(be));if(!We.length)return null;var ut=Fe(We,function(Dt){return Dt.getAttribute(Jo.draggableId)===ae});return ut&&Ms(ut)?ut:null}function _s(De){var ae=Object(y.useRef)({}),be=Object(y.useRef)(null),We=Object(y.useRef)(null),ut=Object(y.useRef)(!1),Dt=t(function(Yr,rn){var _n={id:Yr,focus:rn};return ae.current[Yr]=_n,function(){var vi=ae.current,Qi=vi[Yr];Qi!==_n&&delete vi[Yr]}},[]),jt=t(function(Yr){var rn=cs(De,Yr);rn&&rn!==document.activeElement&&rn.focus()},[De]),Wt=t(function(Yr,rn){be.current===Yr&&(be.current=rn)},[]),Rr=t(function(){if(We.current)return;if(!ut.current)return;We.current=requestAnimationFrame(function(){We.current=null;var Yr=be.current;Yr&&jt(Yr)})},[jt]),Zr=t(function(Yr){be.current=null;var rn=document.activeElement;if(!rn)return;if(rn.getAttribute(Jo.draggableId)!==Yr)return;be.current=Yr},[]);ns(function(){return ut.current=!0,function(){ut.current=!1;var Yr=We.current;Yr&&cancelAnimationFrame(Yr)}},[]);var kr=n(function(){return{register:Dt,tryRecordFocus:Zr,tryRestoreFocusRecorded:Rr,tryShiftRecord:Wt}},[Dt,Zr,Rr,Wt]);return kr}function Us(){var De={draggables:{},droppables:{}},ae=[];function be(Or){return ae.push(Or),function(){var rn=ae.indexOf(Or);if(rn===-1)return;ae.splice(rn,1)}}function We(Or){ae.length&&ae.forEach(function(Yr){return Yr(Or)})}function ut(Or){return De.draggables[Or]||null}function Dt(Or){var Yr=ut(Or);return Yr||Ue(!1),Yr}var jt={register:function(Yr){De.draggables[Yr.descriptor.id]=Yr,We({type:"ADDITION",value:Yr})},update:function(Yr,rn){var _n=De.draggables[rn.descriptor.id];if(!_n)return;if(_n.uniqueId!==Yr.uniqueId)return;delete De.draggables[rn.descriptor.id],De.draggables[Yr.descriptor.id]=Yr},unregister:function(Yr){var rn=Yr.descriptor.id,_n=ut(rn);if(!_n)return;if(Yr.uniqueId!==_n.uniqueId)return;delete De.draggables[rn],We({type:"REMOVAL",value:Yr})},getById:Dt,findById:ut,exists:function(Yr){return Boolean(ut(Yr))},getAllByType:function(Yr){return ur(De.draggables).filter(function(rn){return rn.descriptor.type===Yr})}};function Wt(Or){return De.droppables[Or]||null}function Rr(Or){var Yr=Wt(Or);return Yr||Ue(!1),Yr}var Zr={register:function(Yr){De.droppables[Yr.descriptor.id]=Yr},unregister:function(Yr){var rn=Wt(Yr.descriptor.id);if(!rn)return;if(Yr.uniqueId!==rn.uniqueId)return;delete De.droppables[Yr.descriptor.id]},getById:Rr,findById:Wt,exists:function(Yr){return Boolean(Wt(Yr))},getAllByType:function(Yr){return ur(De.droppables).filter(function(rn){return rn.descriptor.type===Yr})}};function kr(){De.draggables={},De.droppables={},ae.length=0}return{draggable:jt,droppable:Zr,subscribe:be,clean:kr}}function ks(){var De=n(Us,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(De.clean)}},[De]),De}var ps=p.a.createContext(null),Es=function(){var ae=document.body;return ae||Ue(!1),ae},tl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Os=function(ae){return"rbd-announcement-"+ae};function Ro(De){var ae=n(function(){return Os(De)},[De]),be=Object(y.useRef)(null);Object(y.useEffect)(function(){var Dt=document.createElement("div");return be.current=Dt,Dt.id=ae,Dt.setAttribute("aria-live","assertive"),Dt.setAttribute("aria-atomic","true"),Object(v.a)(Dt.style,tl),Es().appendChild(Dt),function(){setTimeout(function(){var Rr=Es();Rr.contains(Dt)&&Rr.removeChild(Dt),Dt===be.current&&(be.current=null)})}},[ae]);var We=t(function(ut){var Dt=be.current;if(Dt){Dt.textContent=ut;return}},[]);return We}var wo=0,ms={separator:"::"};function As(){wo=0}function ao(De,ae){return ae===void 0&&(ae=ms),n(function(){return""+De+ae.separator+wo++},[ae.separator,De])}function Ct(De){var ae=De.contextId,be=De.uniqueId;return"rbd-hidden-text-"+ae+"-"+be}function zt(De){var ae=De.contextId,be=De.text,We=ao("hidden-text",{separator:"-"}),ut=n(function(){return Ct({contextId:ae,uniqueId:We})},[We,ae]);return Object(y.useEffect)(function(){var jt=document.createElement("div");return jt.id=ut,jt.textContent=be,jt.style.display="none",Es().appendChild(jt),function(){var Rr=Es();Rr.contains(jt)&&Rr.removeChild(jt)}},[ut,be]),ut}var gn=p.a.createContext(null),$n={react:"^16.8.5","react-dom":"^16.8.5"},bi=/(\d+)\.(\d+)\.(\d+)/,oi=function(ae){var be=bi.exec(ae);be!=null||Ue(!1);var We=Number(be[1]),ut=Number(be[2]),Dt=Number(be[3]);return{major:We,minor:ut,patch:Dt,raw:ae}},Yi=function(ae,be){return be.major>ae.major?!0:be.major<ae.major?!1:be.minor>ae.minor?!0:be.minor<ae.minor?!1:be.patch>=ae.patch},ha=function(ae,be){var We=oi(ae),ut=oi(be);if(Yi(We,ut))return},Pa=`
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
`,Co=function(ae){var be=ae.doctype;if(!be)return;be.name.toLowerCase()!=="html",be.publicId!==""};function vo(De){}function ko(De,ae){vo(function(){Object(y.useEffect)(function(){try{De()}catch(be){q(`
A setup problem was encountered.
> `+be.message+`
`)}},ae)})}function ls(){ko(function(){ha($n.react,p.a.version),Co(document)},[])}function jo(De){var ae=Object(y.useRef)(De);return Object(y.useEffect)(function(){ae.current=De}),ae}function Zo(){var De=null;function ae(){return Boolean(De)}function be(jt){return jt===De}function We(jt){De&&Ue(!1);var Wt={abandon:jt};return De=Wt,Wt}function ut(){De||Ue(!1),De=null}function Dt(){De&&(De.abandon(),ut())}return{isClaimed:ae,isActive:be,claim:We,release:ut,tryAbandon:Dt}}var ts=9,Ua=13,Oo=27,as=32,Ul=33,vl=34,Qs=35,il=36,ll=37,jl=38,Hl=39,Js=40,fs,Xo=(fs={},fs[Ua]=!0,fs[ts]=!0,fs),Zs=function(ae){Xo[ae.keyCode]&&ae.preventDefault()},Gl=function(){var De="visibilitychange";if(typeof document=="undefined")return De;var ae=[De,"ms"+De,"webkit"+De,"moz"+De,"o"+De],be=Fe(ae,function(We){return"on"+We in document});return be||De}(),Kl=0,ka=5;function Ll(De,ae){return Math.abs(ae.x-De.x)>=ka||Math.abs(ae.y-De.y)>=ka}var kl={type:"IDLE"};function Al(De){var ae=De.cancel,be=De.completed,We=De.getPhase,ut=De.setPhase;return[{eventName:"mousemove",fn:function(jt){var Wt=jt.button,Rr=jt.clientX,Zr=jt.clientY;if(Wt!==Kl)return;var kr={x:Rr,y:Zr},Or=We();if(Or.type==="DRAGGING"){jt.preventDefault(),Or.actions.move(kr);return}Or.type==="PENDING"||Ue(!1);var Yr=Or.point;if(!Ll(Yr,kr))return;jt.preventDefault();var rn=Or.actions.fluidLift(kr);ut({type:"DRAGGING",actions:rn})}},{eventName:"mouseup",fn:function(jt){var Wt=We();if(Wt.type!=="DRAGGING"){ae();return}jt.preventDefault(),Wt.actions.drop({shouldBlockNextClick:!0}),be()}},{eventName:"mousedown",fn:function(jt){We().type==="DRAGGING"&&jt.preventDefault(),ae()}},{eventName:"keydown",fn:function(jt){var Wt=We();if(Wt.type==="PENDING"){ae();return}if(jt.keyCode===Oo){jt.preventDefault(),ae();return}Zs(jt)}},{eventName:"resize",fn:ae},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){We().type==="PENDING"&&ae()}},{eventName:"webkitmouseforcedown",fn:function(jt){var Wt=We();if(Wt.type!=="IDLE"||Ue(!1),Wt.actions.shouldRespectForcePress()){ae();return}jt.preventDefault()}},{eventName:Gl,fn:ae}]}function Is(De){var ae=Object(y.useRef)(kl),be=Object(y.useRef)(se),We=n(function(){return{eventName:"mousedown",fn:function(Or){if(Or.defaultPrevented)return;if(Or.button!==Kl)return;if(Or.ctrlKey||Or.metaKey||Or.shiftKey||Or.altKey)return;var Yr=De.findClosestDraggableId(Or);if(!Yr)return;var rn=De.tryGetLock(Yr,jt,{sourceEvent:Or});if(!rn)return;Or.preventDefault();var _n={x:Or.clientX,y:Or.clientY};be.current(),Zr(rn,_n)}}},[De]),ut=n(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Or){if(Or.defaultPrevented)return;var Yr=De.findClosestDraggableId(Or);if(!Yr)return;var rn=De.findOptionsForDraggable(Yr);if(!rn)return;if(rn.shouldRespectForcePress)return;if(!De.canGetLock(Yr))return;Or.preventDefault()}}},[De]),Dt=t(function(){var Or={passive:!1,capture:!0};be.current=Ae(window,[ut,We],Or)},[ut,We]),jt=t(function(){var kr=ae.current;if(kr.type==="IDLE")return;ae.current=kl,be.current(),Dt()},[Dt]),Wt=t(function(){var kr=ae.current;jt(),kr.type==="DRAGGING"&&kr.actions.cancel({shouldBlockNextClick:!0}),kr.type==="PENDING"&&kr.actions.abort()},[jt]),Rr=t(function(){var Or={capture:!0,passive:!1},Yr=Al({cancel:Wt,completed:jt,getPhase:function(){return ae.current},setPhase:function(_n){ae.current=_n}});be.current=Ae(window,Yr,Or)},[Wt,jt]),Zr=t(function(Or,Yr){ae.current.type==="IDLE"||Ue(!1),ae.current={type:"PENDING",point:Yr,actions:Or},Rr()},[Rr]);ns(function(){return Dt(),function(){be.current()}},[Dt])}var al;function eu(){}var Nl=(al={},al[vl]=!0,al[Ul]=!0,al[il]=!0,al[Qs]=!0,al);function yl(De,ae){function be(){ae(),De.cancel()}function We(){ae(),De.drop()}return[{eventName:"keydown",fn:function(Dt){if(Dt.keyCode===Oo){Dt.preventDefault(),be();return}if(Dt.keyCode===as){Dt.preventDefault(),We();return}if(Dt.keyCode===Js){Dt.preventDefault(),De.moveDown();return}if(Dt.keyCode===jl){Dt.preventDefault(),De.moveUp();return}if(Dt.keyCode===Hl){Dt.preventDefault(),De.moveRight();return}if(Dt.keyCode===ll){Dt.preventDefault(),De.moveLeft();return}if(Nl[Dt.keyCode]){Dt.preventDefault();return}Zs(Dt)}},{eventName:"mousedown",fn:be},{eventName:"mouseup",fn:be},{eventName:"click",fn:be},{eventName:"touchstart",fn:be},{eventName:"resize",fn:be},{eventName:"wheel",fn:be,options:{passive:!0}},{eventName:Gl,fn:be}]}function Ls(De){var ae=Object(y.useRef)(eu),be=n(function(){return{eventName:"keydown",fn:function(Dt){if(Dt.defaultPrevented)return;if(Dt.keyCode!==as)return;var jt=De.findClosestDraggableId(Dt);if(!jt)return;var Wt=De.tryGetLock(jt,kr,{sourceEvent:Dt});if(!Wt)return;Dt.preventDefault();var Rr=!0,Zr=Wt.snapLift();ae.current();function kr(){Rr||Ue(!1),Rr=!1,ae.current(),We()}ae.current=Ae(window,yl(Zr,kr),{capture:!0,passive:!1})}}},[De]),We=t(function(){var Dt={passive:!1,capture:!0};ae.current=Ae(window,[be],Dt)},[be]);ns(function(){return We(),function(){ae.current()}},[We])}var Xs={type:"IDLE"},Wl=120,ol=.15;function So(De){var ae=De.cancel,be=De.getPhase;return[{eventName:"orientationchange",fn:ae},{eventName:"resize",fn:ae},{eventName:"contextmenu",fn:function(ut){ut.preventDefault()}},{eventName:"keydown",fn:function(ut){if(be().type!=="DRAGGING"){ae();return}ut.keyCode===Oo&&ut.preventDefault(),ae()}},{eventName:Gl,fn:ae}]}function io(De){var ae=De.cancel,be=De.completed,We=De.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Dt){var jt=We();if(jt.type!=="DRAGGING"){ae();return}jt.hasMoved=!0;var Wt=Dt.touches[0],Rr=Wt.clientX,Zr=Wt.clientY,kr={x:Rr,y:Zr};Dt.preventDefault(),jt.actions.move(kr)}},{eventName:"touchend",fn:function(Dt){var jt=We();if(jt.type!=="DRAGGING"){ae();return}Dt.preventDefault(),jt.actions.drop({shouldBlockNextClick:!0}),be()}},{eventName:"touchcancel",fn:function(Dt){if(We().type!=="DRAGGING"){ae();return}Dt.preventDefault(),ae()}},{eventName:"touchforcechange",fn:function(Dt){var jt=We();jt.type!=="IDLE"||Ue(!1);var Wt=Dt.touches[0];if(!Wt)return;var Rr=Wt.force>=ol;if(!Rr)return;var Zr=jt.actions.shouldRespectForcePress();if(jt.type==="PENDING"){Zr&&ae();return}if(Zr){if(jt.hasMoved){Dt.preventDefault();return}ae();return}Dt.preventDefault()}},{eventName:Gl,fn:ae}]}function Bo(De){var ae=Object(y.useRef)(Xs),be=Object(y.useRef)(se),We=t(function(){return ae.current},[]),ut=t(function(rn){ae.current=rn},[]),Dt=n(function(){return{eventName:"touchstart",fn:function(rn){if(rn.defaultPrevented)return;var _n=De.findClosestDraggableId(rn);if(!_n)return;var fi=De.tryGetLock(_n,Wt,{sourceEvent:rn});if(!fi)return;var vi=rn.touches[0],Qi=vi.clientX,Mi=vi.clientY,Da={x:Qi,y:Mi};be.current(),Or(fi,Da)}}},[De]),jt=t(function(){var rn={capture:!0,passive:!1};be.current=Ae(window,[Dt],rn)},[Dt]),Wt=t(function(){var Yr=ae.current;if(Yr.type==="IDLE")return;Yr.type==="PENDING"&&clearTimeout(Yr.longPressTimerId),ut(Xs),be.current(),jt()},[jt,ut]),Rr=t(function(){var Yr=ae.current;Wt(),Yr.type==="DRAGGING"&&Yr.actions.cancel({shouldBlockNextClick:!0}),Yr.type==="PENDING"&&Yr.actions.abort()},[Wt]),Zr=t(function(){var rn={capture:!0,passive:!1},_n={cancel:Rr,completed:Wt,getPhase:We},fi=Ae(window,io(_n),rn),vi=Ae(window,So(_n),rn);be.current=function(){fi(),vi()}},[Rr,We,Wt]),kr=t(function(){var rn=We();rn.type==="PENDING"||Ue(!1);var _n=rn.actions.fluidLift(rn.point);ut({type:"DRAGGING",actions:_n,hasMoved:!1})},[We,ut]),Or=t(function(rn,_n){We().type==="IDLE"||Ue(!1);var fi=setTimeout(kr,Wl);ut({type:"PENDING",point:_n,actions:rn,longPressTimerId:fi}),Zr()},[Zr,We,ut,kr]);ns(function(){return jt(),function(){be.current();var _n=We();_n.type==="PENDING"&&(clearTimeout(_n.longPressTimerId),ut(Xs))}},[We,jt,ut]),ns(function(){var rn=Ae(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return rn},[])}function ds(De){vo(function(){var ae=jo(De);ko(function(){ae.current.length===De.length||Ue(!1)})})}var gs={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Wo(De,ae){if(ae==null)return!1;var be=Boolean(gs[ae.tagName.toLowerCase()]);if(be)return!0;var We=ae.getAttribute("contenteditable");return We==="true"||We===""?!0:ae===De?!1:Wo(De,ae.parentElement)}function vs(De,ae){var be=ae.target;return Ms(be)?Wo(De,be):!1}var Ps=function(ae){return e(ae.getBoundingClientRect()).center};function js(De){return De instanceof Fs(De).Element}var bl=function(){var De="matches";if(typeof document=="undefined")return De;var ae=[De,"msMatchesSelector","webkitMatchesSelector"],be=Fe(ae,function(We){return We in Element.prototype});return be||De}();function ml(De,ae){return De==null?null:De[bl](ae)?De:ml(De.parentElement,ae)}function Dl(De,ae){return De.closest?De.closest(ae):ml(De,ae)}function xl(De){return"["+Jo.contextId+'="'+De+'"]'}function El(De,ae){var be=ae.target;if(!js(be))return null;var We=xl(De),ut=Dl(be,We);return ut&&Ms(ut)?ut:null}function Pl(De,ae){var be=El(De,ae);return be?be.getAttribute(Jo.draggableId):null}function zs(De,ae){var be="["+hs.contextId+'="'+De+'"]',We=$t(document.querySelectorAll(be)),ut=Fe(We,function(Dt){return Dt.getAttribute(hs.id)===ae});return ut&&Ms(ut)?ut:null}function Cs(De){De.preventDefault()}function Vs(De){var ae=De.expected,be=De.phase,We=De.isLockActive,ut=De.shouldWarn;return We()?!(ae!==be):!1}function Ts(De){var ae=De.lockAPI,be=De.store,We=De.registry,ut=De.draggableId;if(ae.isClaimed())return!1;var Dt=We.draggable.findById(ut);return Dt&&Dt.options.isEnabled?!!Zn(be.getState(),ut):!1}function ul(De){var ae=De.lockAPI,be=De.contextId,We=De.store,ut=De.registry,Dt=De.draggableId,jt=De.forceSensorStop,Wt=De.sourceEvent,Rr=Ts({lockAPI:ae,store:We,registry:ut,draggableId:Dt});if(!Rr)return null;var Zr=ut.draggable.getById(Dt),kr=zs(be,Zr.descriptor.id);if(!kr)return null;if(Wt&&!Zr.options.canDragInteractiveElements&&vs(kr,Wt))return null;var Or=ae.claim(jt||se),Yr="PRE_DRAG";function rn(){return Zr.options.shouldRespectForcePress}function _n(){return ae.isActive(Or)}function fi(ja,Io){Vs({expected:ja,phase:Yr,isLockActive:_n,shouldWarn:!0})&&We.dispatch(Io())}var vi=fi.bind(null,"DRAGGING");function Qi(ja){function Io(){ae.release(),Yr="COMPLETED"}Yr!=="PRE_DRAG"&&(Io(),Yr==="PRE_DRAG"||Ue(!1)),We.dispatch(ar(ja.liftActionArgs)),Yr="DRAGGING";function Vo(N,U){if(U===void 0&&(U={shouldBlockNextClick:!1}),ja.cleanup(),U.shouldBlockNextClick){var ie=Ae(window,[{eventName:"click",fn:Cs,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ie)}Io(),We.dispatch(Ai({reason:N}))}return Object(v.a)({isActive:function(){return Vs({expected:"DRAGGING",phase:Yr,isLockActive:_n,shouldWarn:!1})},shouldRespectForcePress:rn,drop:function(U){return Vo("DROP",U)},cancel:function(U){return Vo("CANCEL",U)}},ja.actions)}function Mi(ja){var Io=R(function(N){vi(function(){return bt({client:N})})}),Vo=Qi({liftActionArgs:{id:Dt,clientSelection:ja,movementMode:"FLUID"},cleanup:function(){return Io.cancel()},actions:{move:Io}});return Object(v.a)({},Vo,{move:Io})}function Da(){var ja={moveUp:function(){return vi(Ur)},moveRight:function(){return vi(An)},moveDown:function(){return vi(un)},moveLeft:function(){return vi(ln)}};return Qi({liftActionArgs:{id:Dt,clientSelection:Ps(kr),movementMode:"SNAP"},cleanup:se,actions:ja})}function oa(){var ja=Vs({expected:"PRE_DRAG",phase:Yr,isLockActive:_n,shouldWarn:!0});ja&&ae.release()}var $a={isActive:function(){return Vs({expected:"PRE_DRAG",phase:Yr,isLockActive:_n,shouldWarn:!1})},shouldRespectForcePress:rn,fluidLift:Mi,snapLift:Da,abort:oa};return $a}var Cl=[Is,Ls,Bo];function Xl(De){var ae=De.contextId,be=De.store,We=De.registry,ut=De.customSensors,Dt=De.enableDefaultSensors,jt=[].concat(Dt?Cl:[],ut||[]),Wt=Object(y.useState)(function(){return Zo()})[0],Rr=t(function(Mi,Da){Mi.isDragging&&!Da.isDragging&&Wt.tryAbandon()},[Wt]);ns(function(){var Mi=be.getState(),Da=be.subscribe(function(){var oa=be.getState();Rr(Mi,oa),Mi=oa});return Da},[Wt,be,Rr]),ns(function(){return Wt.tryAbandon},[Wt.tryAbandon]);var Zr=t(function(Qi){return Ts({lockAPI:Wt,registry:We,store:be,draggableId:Qi})},[Wt,We,be]),kr=t(function(Qi,Mi,Da){return ul({lockAPI:Wt,registry:We,contextId:ae,store:be,draggableId:Qi,forceSensorStop:Mi,sourceEvent:Da&&Da.sourceEvent?Da.sourceEvent:null})},[ae,Wt,We,be]),Or=t(function(Qi){return Pl(ae,Qi)},[ae]),Yr=t(function(Qi){var Mi=We.draggable.findById(Qi);return Mi?Mi.options:null},[We.draggable]),rn=t(function(){if(!Wt.isClaimed())return;Wt.tryAbandon(),be.getState().phase!=="IDLE"&&be.dispatch(Hn())},[Wt,be]),_n=t(Wt.isClaimed,[Wt]),fi=n(function(){return{canGetLock:Zr,tryGetLock:kr,findClosestDraggableId:Or,findOptionsForDraggable:Yr,tryReleaseLock:rn,isLockClaimed:_n}},[Zr,kr,Or,Yr,rn,_n]);ds(jt);for(var vi=0;vi<jt.length;vi++)jt[vi](fi)}var Jl=function(ae){return{onBeforeCapture:ae.onBeforeCapture,onBeforeDragStart:ae.onBeforeDragStart,onDragStart:ae.onDragStart,onDragEnd:ae.onDragEnd,onDragUpdate:ae.onDragUpdate}};function cl(De){return De.current||Ue(!1),De.current}function zl(De){var ae=De.contextId,be=De.setCallbacks,We=De.sensors,ut=De.nonce,Dt=De.dragHandleUsageInstructions,jt=Object(y.useRef)(null);ls();var Wt=jo(De),Rr=t(function(){return Jl(Wt.current)},[Wt]),Zr=Ro(ae),kr=zt({contextId:ae,text:Dt}),Or=Sl(ae,ut),Yr=t(function(N){cl(jt).dispatch(N)},[]),rn=n(function(){return Object(m.b)({publishWhileDragging:Gt,updateDroppableScroll:Pr,updateDroppableIsEnabled:Jr,updateDroppableIsCombineEnabled:wn,collectionStarting:wr},Yr)},[Yr]),_n=ks(),fi=n(function(){return Qn(_n,rn)},[_n,rn]),vi=n(function(){return Xa(Object(v.a)({scrollWindow:Yn,scrollDroppable:fi.scrollDroppable},Object(m.b)({move:bt},Yr)))},[fi.scrollDroppable,Yr]),Qi=_s(ae),Mi=n(function(){return dr({announce:Zr,autoScroller:vi,dimensionMarshal:fi,focusMarshal:Qi,getResponders:Rr,styleMarshal:Or})},[Zr,vi,fi,Qi,Rr,Or]);jt.current=Mi;var Da=t(function(){var N=cl(jt),U=N.getState();U.phase!=="IDLE"&&N.dispatch(Hn())},[]),oa=t(function(){var N=cl(jt).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),$a=n(function(){return{isDragging:oa,tryAbort:Da}},[oa,Da]);be($a);var ja=t(function(N){return Zn(cl(jt).getState(),N)},[]),Io=t(function(){return Vr(cl(jt).getState())},[]),Vo=n(function(){return{marshal:fi,focus:Qi,contextId:ae,canLift:ja,isMovementAllowed:Io,dragHandleUsageInstructionsId:kr,registry:_n}},[ae,fi,kr,Qi,ja,Io,_n]);return Xl({contextId:ae,store:Mi,registry:_n,customSensors:We,enableDefaultSensors:De.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Da},[Da]),p.a.createElement(gn.Provider,{value:Vo},p.a.createElement(f.a,{context:ps,store:Mi},De.children))}var tu=0;function Iu(){tu=0}function bu(){return n(function(){return""+tu++},[])}function du(){Iu(),As()}function hu(De){var ae=bu(),be=De.dragHandleUsageInstructions||ye.dragHandleUsageInstructions;return p.a.createElement(nt,null,function(We){return p.a.createElement(zl,{nonce:De.nonce,contextId:ae,setCallbacks:We,dragHandleUsageInstructions:be,enableDefaultSensors:De.enableDefaultSensors,sensors:De.sensors,onBeforeCapture:De.onBeforeCapture,onBeforeDragStart:De.onBeforeDragStart,onDragStart:De.onDragStart,onDragUpdate:De.onDragUpdate,onDragEnd:De.onDragEnd},De.children)})}var nu=function(ae){return function(be){return ae===be}},dl=nu("scroll"),Tl=nu("auto"),wl=nu("visible"),Zl=function(ae,be){return be(ae.overflowX)||be(ae.overflowY)},_l=function(ae,be){return be(ae.overflowX)&&be(ae.overflowY)},fu=function(ae){var be=window.getComputedStyle(ae),We={overflowX:be.overflowX,overflowY:be.overflowY};return Zl(We,dl)||Zl(We,Tl)},hl=function(){return!1;var ae,be;if(!fu(ae))return!1;var We,ut;if(_l(ut,wl))return!1},fl=function De(ae){return ae==null?null:ae===document.body?hl()?ae:null:ae===document.documentElement?null:fu(ae)?ae:De(ae.parentElement)},pu=function(ae){if(!ae)return;var be=fl(ae.parentElement);if(!be)return},mu=function(ae){return{x:ae.scrollLeft,y:ae.scrollTop}},Lu=function De(ae){if(!ae)return!1;var be=window.getComputedStyle(ae);return be.position==="fixed"?!0:De(ae.parentElement)},Ml=function(ae){var be=fl(ae),We=Lu(ae);return{closestScrollable:be,isFixedOnPage:We}},$l=function(ae){var be=ae.descriptor,We=ae.isEnabled,ut=ae.isCombineEnabled,Dt=ae.isFixedOnPage,jt=ae.direction,Wt=ae.client,Rr=ae.page,Zr=ae.closest,kr=function(){if(!Zr)return null;var _n=Zr.scrollSize,fi=Zr.client,vi=Pn({scrollHeight:_n.scrollHeight,scrollWidth:_n.scrollWidth,height:fi.paddingBox.height,width:fi.paddingBox.width});return{pageMarginBox:Zr.page.marginBox,frameClient:fi,scrollSize:_n,shouldClipSubject:Zr.shouldClipSubject,scroll:{initial:Zr.scroll,current:Zr.scroll,max:vi,diff:{value:Ee,displacement:Ee}}}}(),Or=jt==="vertical"?Bn:Ft,Yr=mt({page:Rr,withPlaceholder:null,axis:Or,frame:kr}),rn={descriptor:be,isCombineEnabled:ut,isFixedOnPage:Dt,axis:Or,isEnabled:We,client:Wt,page:Rr,frame:kr,subject:Yr};return rn},iu=function(ae,be){var We=T(ae);if(!be)return We;if(ae!==be)return We;var ut=We.paddingBox.top-be.scrollTop,Dt=We.paddingBox.left-be.scrollLeft,jt=ut+be.scrollHeight,Wt=Dt+be.scrollWidth,Rr={top:ut,right:Wt,bottom:jt,left:Dt},Zr=l(Rr,We.border),kr=h({borderBox:Zr,margin:We.margin,border:We.border,padding:We.padding});return kr},au=function(ae){var be=ae.ref,We=ae.descriptor,ut=ae.env,Dt=ae.windowScroll,jt=ae.direction,Wt=ae.isDropDisabled,Rr=ae.isCombineEnabled,Zr=ae.shouldClipSubject,kr=ut.closestScrollable,Or=iu(be,kr),Yr=w(Or,Dt),rn=function(){if(!kr)return null;var fi=T(kr),vi={scrollHeight:kr.scrollHeight,scrollWidth:kr.scrollWidth};return{client:fi,page:w(fi,Dt),scroll:mu(kr),scrollSize:vi,shouldClipSubject:Zr}}(),_n=$l({descriptor:We,isEnabled:!Wt,isCombineEnabled:Rr,isFixedOnPage:ut.isFixedOnPage,direction:jt,client:Or,page:Yr,closest:rn});return _n},Yl={passive:!1},Ru={passive:!0},Nu=function(ae){return ae.shouldPublishImmediately?Yl:Ru};function Ql(De){var ae=Object(y.useContext)(De);return ae||Ue(!1),ae}var gu=function(ae){return ae&&ae.env.closestScrollable||null};function wu(De){var ae=Object(y.useRef)(null),be=Ql(gn),We=ao("droppable"),ut=be.registry,Dt=be.marshal,jt=jo(De),Wt=n(function(){return{id:De.droppableId,type:De.type,mode:De.mode}},[De.droppableId,De.mode,De.type]),Rr=Object(y.useRef)(Wt),Zr=n(function(){return O(function(oa,$a){ae.current||Ue(!1);var ja={x:oa,y:$a};Dt.updateDroppableScroll(Wt.id,ja)})},[Wt.id,Dt]),kr=t(function(){var oa=ae.current;return!oa||!oa.env.closestScrollable?Ee:mu(oa.env.closestScrollable)},[]),Or=t(function(){var oa=kr();Zr(oa.x,oa.y)},[kr,Zr]),Yr=n(function(){return R(Or)},[Or]),rn=t(function(){var oa=ae.current,$a=gu(oa);oa&&$a||Ue(!1);var ja=oa.scrollOptions;if(ja.shouldPublishImmediately){Or();return}Yr()},[Yr,Or]),_n=t(function(oa,$a){ae.current&&Ue(!1);var ja=jt.current,Io=ja.getDroppableRef();Io||Ue(!1);var Vo=Ml(Io),N={ref:Io,descriptor:Wt,env:Vo,scrollOptions:$a};ae.current=N;var U=au({ref:Io,descriptor:Wt,env:Vo,windowScroll:oa,direction:ja.direction,isDropDisabled:ja.isDropDisabled,isCombineEnabled:ja.isCombineEnabled,shouldClipSubject:!ja.ignoreContainerClipping}),ie=Vo.closestScrollable;return ie&&(ie.setAttribute(Ws.contextId,be.contextId),ie.addEventListener("scroll",rn,Nu(N.scrollOptions))),U},[be.contextId,Wt,rn,jt]),fi=t(function(){var oa=ae.current,$a=gu(oa);return oa&&$a||Ue(!1),mu($a)},[]),vi=t(function(){var oa=ae.current;oa||Ue(!1);var $a=gu(oa);if(ae.current=null,!$a)return;Yr.cancel(),$a.removeAttribute(Ws.contextId),$a.removeEventListener("scroll",rn,Nu(oa.scrollOptions))},[rn,Yr]),Qi=t(function(oa){var $a=ae.current;$a||Ue(!1);var ja=gu($a);ja||Ue(!1),ja.scrollTop+=oa.y,ja.scrollLeft+=oa.x},[]),Mi=n(function(){return{getDimensionAndWatchScroll:_n,getScrollWhileDragging:fi,dragStopped:vi,scroll:Qi}},[vi,_n,fi,Qi]),Da=n(function(){return{uniqueId:We,descriptor:Wt,callbacks:Mi}},[Mi,Wt,We]);ns(function(){return Rr.current=Da.descriptor,ut.droppable.register(Da),function(){ae.current&&vi(),ut.droppable.unregister(Da)}},[Mi,Wt,vi,Da,Dt,ut.droppable]),ns(function(){if(!ae.current)return;Dt.updateDroppableIsEnabled(Rr.current.id,!De.isDropDisabled)},[De.isDropDisabled,Dt]),ns(function(){if(!ae.current)return;Dt.updateDroppableIsCombineEnabled(Rr.current.id,De.isCombineEnabled)},[De.isCombineEnabled,Dt])}function vu(){}var Gs={width:0,height:0,margin:Ut},gl=function(ae){var be=ae.isAnimatingOpenOnMount,We=ae.placeholder,ut=ae.animate;return be||ut==="close"?Gs:{height:We.client.borderBox.height,width:We.client.borderBox.width,margin:We.client.margin}},ru=function(ae){var be=ae.isAnimatingOpenOnMount,We=ae.placeholder,ut=ae.animate,Dt=gl({isAnimatingOpenOnMount:be,placeholder:We,animate:ut});return{display:We.display,boxSizing:"border-box",width:Dt.width,height:Dt.height,marginTop:Dt.margin.top,marginRight:Dt.margin.right,marginBottom:Dt.margin.bottom,marginLeft:Dt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:ut!=="none"?Hi.placeholder:null}};function Du(De){var ae=Object(y.useRef)(null),be=t(function(){if(!ae.current)return;clearTimeout(ae.current),ae.current=null},[]),We=De.animate,ut=De.onTransitionEnd,Dt=De.onClose,jt=De.contextId,Wt=Object(y.useState)(De.animate==="open"),Rr=Wt[0],Zr=Wt[1];Object(y.useEffect)(function(){return Rr?We!=="open"?(be(),Zr(!1),vu):ae.current?vu:(ae.current=setTimeout(function(){ae.current=null,Zr(!1)}),be):vu},[We,Rr,be]);var kr=t(function(Yr){if(Yr.propertyName!=="height")return;ut(),We==="close"&&Dt()},[We,Dt,ut]),Or=ru({isAnimatingOpenOnMount:Rr,animate:De.animate,placeholder:De.placeholder});return p.a.createElement(De.placeholder.tagName,{style:Or,"data-rbd-placeholder-context-id":jt,onTransitionEnd:kr,ref:De.innerRef})}var Su=p.a.memo(Du),cu=p.a.createContext(null);function ou(De){De&&Ms(De)||Ue(!1)}function su(De){return typeof De=="boolean"}function xu(De,ae){ae.forEach(function(be){return be(De)})}var Au=[function(ae){var be=ae.props;be.droppableId||Ue(!1),typeof be.droppableId=="string"||Ue(!1)},function(ae){var be=ae.props;su(be.isDropDisabled)||Ue(!1),su(be.isCombineEnabled)||Ue(!1),su(be.ignoreContainerClipping)||Ue(!1)},function(ae){var be=ae.getDroppableRef;ou(be())}],he=[function(ae){var be=ae.props,We=ae.getPlaceholderRef;if(!be.placeholder)return;var ut=We();if(ut)return}],$=[function(ae){var be=ae.props;be.renderClone||Ue(!1)},function(ae){var be=ae.getPlaceholderRef;be()&&Ue(!1)}];function L(De){ko(function(){xu(De,Au),De.props.mode==="standard"&&xu(De,he),De.props.mode==="virtual"&&xu(De,$)})}var K=function(De){Object(S.a)(ae,De);function ae(){for(var We,ut=arguments.length,Dt=new Array(ut),jt=0;jt<ut;jt++)Dt[jt]=arguments[jt];return We=De.call.apply(De,[this].concat(Dt))||this,We.state={isVisible:Boolean(We.props.on),data:We.props.on,animate:We.props.shouldAnimate&&We.props.on?"open":"none"},We.onClose=function(){if(We.state.animate!=="close")return;We.setState({isVisible:!1})},We}ae.getDerivedStateFromProps=function(ut,Dt){return ut.shouldAnimate?ut.on?{isVisible:!0,data:ut.on,animate:"open"}:Dt.isVisible?{isVisible:!0,data:Dt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(ut.on),data:ut.on,animate:"none"}};var be=ae.prototype;return be.render=function(){if(!this.state.isVisible)return null;var ut={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(ut)},ae}(p.a.PureComponent),j={dragging:5e3,dropAnimating:4500},J=function(ae,be){return be?Hi.drop(be.duration):ae?Hi.snap:Hi.fluid},te=function(ae,be){return ae?be?Ui.opacity.drop:Ui.opacity.combining:null},me=function(ae){return ae.forceShouldAnimate!=null?ae.forceShouldAnimate:ae.mode==="SNAP"};function we(De){var ae=De.dimension,be=ae.client,We=De.offset,ut=De.combineWith,Dt=De.dropping,jt=Boolean(ut),Wt=me(De),Rr=Boolean(Dt),Zr=Rr?Ea.drop(We,jt):Ea.moveTo(We),kr={position:"fixed",top:be.marginBox.top,left:be.marginBox.left,boxSizing:"border-box",width:be.borderBox.width,height:be.borderBox.height,transition:J(Wt,Dt),transform:Zr,opacity:te(jt,Rr),zIndex:Rr?j.dropAnimating:j.dragging,pointerEvents:"none"};return kr}function je(De){return{transform:Ea.moveTo(De.offset),transition:De.shouldAnimateDisplacement?null:"none"}}function qe(De){return De.type==="DRAGGING"?we(De):je(De)}function it(De,ae,be){be===void 0&&(be=Ee);var We=window.getComputedStyle(ae),ut=ae.getBoundingClientRect(),Dt=x(ut,We),jt=w(Dt,be),Wt={client:Dt,tagName:ae.tagName.toLowerCase(),display:We.display},Rr={x:Dt.marginBox.width,y:Dt.marginBox.height},Zr={descriptor:De,placeholder:Wt,displaceBy:Rr,client:Dt,page:jt};return Zr}function Rt(De){var ae=ao("draggable"),be=De.descriptor,We=De.registry,ut=De.getDraggableRef,Dt=De.canDragInteractiveElements,jt=De.shouldRespectForcePress,Wt=De.isEnabled,Rr=n(function(){return{canDragInteractiveElements:Dt,shouldRespectForcePress:jt,isEnabled:Wt}},[Dt,Wt,jt]),Zr=t(function(rn){var _n=ut();return _n||Ue(!1),it(be,_n,rn)},[be,ut]),kr=n(function(){return{uniqueId:ae,descriptor:be,options:Rr,getDimension:Zr}},[be,Zr,Rr,ae]),Or=Object(y.useRef)(kr),Yr=Object(y.useRef)(!0);ns(function(){return We.draggable.register(Or.current),function(){return We.draggable.unregister(Or.current)}},[We.draggable]),ns(function(){if(Yr.current){Yr.current=!1;return}var rn=Or.current;Or.current=kr,We.draggable.update(kr,rn)},[kr,We.draggable])}function hr(De,ae,be){ko(function(){function We(Dt){return"Draggable[id: "+Dt+"]: "}var ut=De.draggableId;if(ut||Ue(!1),typeof ut=="string"||Ue(!1),et(De.index)||Ue(!1),De.mapped.type==="DRAGGING")return;ou(be()),De.isEnabled&&(cs(ae,ut)||Ue(!1))})}function tr(De){vo(function(){var ae=Object(y.useRef)(De);ko(function(){De===ae.current||Ue(!1)},[De])})}function Dr(De){De.preventDefault()}function jr(De){var ae=Object(y.useRef)(null),be=t(function(N){ae.current=N},[]),We=t(function(){return ae.current},[]),ut=Ql(gn),Dt=ut.contextId,jt=ut.dragHandleUsageInstructionsId,Wt=ut.registry,Rr=Ql(cu),Zr=Rr.type,kr=Rr.droppableId,Or=n(function(){return{id:De.draggableId,index:De.index,type:Zr,droppableId:kr}},[De.draggableId,De.index,Zr,kr]),Yr=De.children,rn=De.draggableId,_n=De.isEnabled,fi=De.shouldRespectForcePress,vi=De.canDragInteractiveElements,Qi=De.isClone,Mi=De.mapped,Da=De.dropAnimationFinished;if(hr(De,Dt,We),tr(Qi),!Qi){var oa=n(function(){return{descriptor:Or,registry:Wt,getDraggableRef:We,canDragInteractiveElements:vi,shouldRespectForcePress:fi,isEnabled:_n}},[Or,Wt,We,vi,fi,_n]);Rt(oa)}var $a=n(function(){return _n?{tabIndex:0,role:"button","aria-describedby":jt,"data-rbd-drag-handle-draggable-id":rn,"data-rbd-drag-handle-context-id":Dt,draggable:!1,onDragStart:Dr}:null},[Dt,jt,rn,_n]),ja=t(function(N){if(Mi.type!=="DRAGGING")return;if(!Mi.dropping)return;if(N.propertyName!=="transform")return;Da()},[Da,Mi]),Io=n(function(){var N=qe(Mi),U=Mi.type==="DRAGGING"&&Mi.dropping?ja:null,ie={innerRef:be,draggableProps:{"data-rbd-draggable-context-id":Dt,"data-rbd-draggable-id":rn,style:N,onTransitionEnd:U},dragHandleProps:$a};return ie},[Dt,$a,rn,Mi,ja,be]),Vo=n(function(){return{draggableId:Or.id,type:Or.type,source:{index:Or.index,droppableId:Or.droppableId}}},[Or.droppableId,Or.id,Or.index,Or.type]);return Yr(Io,Mi.snapshot,Vo)}var Sn=function(ae,be){return ae===be},yn=function(ae){var be=ae.combine,We=ae.destination;return We?We.droppableId:be?be.droppableId:null},Mn=function(ae){return ae.combine?ae.combine.draggableId:null},si=function(ae){return ae.at&&ae.at.type==="COMBINE"?ae.at.combine.draggableId:null};function Xi(){var De=O(function(ut,Dt){return{x:ut,y:Dt}}),ae=O(function(ut,Dt,jt,Wt,Rr){return{isDragging:!0,isClone:Dt,isDropAnimating:Boolean(Rr),dropAnimation:Rr,mode:ut,draggingOver:jt,combineWith:Wt,combineTargetFor:null}}),be=O(function(ut,Dt,jt,Wt,Rr,Zr,kr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Rr,combineWith:Zr,mode:Dt,offset:ut,dimension:jt,forceShouldAnimate:kr,snapshot:ae(Dt,Wt,Rr,Zr,null)}}}),We=function(Dt,jt){if(Dt.isDragging){if(Dt.critical.draggable.id!==jt.draggableId)return null;var Wt=Dt.current.client.offset,Rr=Dt.dimensions.draggables[jt.draggableId],Zr=Kn(Dt.impact),kr=si(Dt.impact),Or=Dt.forceShouldAnimate;return be(De(Wt.x,Wt.y),Dt.movementMode,Rr,jt.isClone,Zr,kr,Or)}if(Dt.phase==="DROP_ANIMATING"){var Yr=Dt.completed;if(Yr.result.draggableId!==jt.draggableId)return null;var rn=jt.isClone,_n=Dt.dimensions.draggables[jt.draggableId],fi=Yr.result,vi=fi.mode,Qi=yn(fi),Mi=Mn(fi),Da=Dt.dropDuration,oa={duration:Da,curve:Oi.drop,moveTo:Dt.newHomeClientOffset,opacity:Mi?Ui.opacity.drop:null,scale:Mi?Ui.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Dt.newHomeClientOffset,dimension:_n,dropping:oa,draggingOver:Qi,combineWith:Mi,mode:vi,forceShouldAnimate:null,snapshot:ae(vi,rn,Qi,Mi,oa)}}}return null};return We}function Li(De){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:De,combineWith:null}}var Pi={mapped:{type:"SECONDARY",offset:Ee,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Li(null)}};function Aa(){var De=O(function(jt,Wt){return{x:jt,y:Wt}}),ae=O(Li),be=O(function(jt,Wt,Rr){return Wt===void 0&&(Wt=null),{mapped:{type:"SECONDARY",offset:jt,combineTargetFor:Wt,shouldAnimateDisplacement:Rr,snapshot:ae(Wt)}}}),We=function(Wt){return Wt?be(Ee,Wt,!0):null},ut=function(Wt,Rr,Zr,kr){var Or=Zr.displaced.visible[Wt],Yr=Boolean(kr.inVirtualList&&kr.effected[Wt]),rn=gr(Zr),_n=rn&&rn.draggableId===Wt?Rr:null;if(!Or){if(!Yr)return We(_n);if(Zr.displaced.invisible[Wt])return null;var fi=Oe(kr.displacedBy.point),vi=De(fi.x,fi.y);return be(vi,_n,!0)}if(Yr)return We(_n);var Qi=Zr.displacedBy.point,Mi=De(Qi.x,Qi.y);return be(Mi,_n,Or.shouldAnimate)},Dt=function(Wt,Rr){if(Wt.isDragging)return Wt.critical.draggable.id===Rr.draggableId?null:ut(Rr.draggableId,Wt.critical.draggable.id,Wt.impact,Wt.afterCritical);if(Wt.phase==="DROP_ANIMATING"){var Zr=Wt.completed;return Zr.result.draggableId===Rr.draggableId?null:ut(Rr.draggableId,Zr.result.draggableId,Zr.impact,Zr.afterCritical)}return null};return Dt}var Na=function(){var ae=Xi(),be=Aa(),We=function(Dt,jt){return ae(Dt,jt)||be(Dt,jt)||Pi};return We},Sa={dropAnimationFinished:_i},aa=Object(f.c)(Na,Sa,null,{context:ps,pure:!0,areStatePropsEqual:Sn})(jr);function so(De){var ae=Ql(cu),be=ae.isUsingCloneFor;return be===De.draggableId&&!De.isClone?null:p.a.createElement(aa,De)}function os(De){var ae=typeof De.isDragDisabled=="boolean"?!De.isDragDisabled:!0,be=Boolean(De.disableInteractiveElementBlocking),We=Boolean(De.shouldRespectForcePress);return p.a.createElement(so,Object(v.a)({},De,{isClone:!1,isEnabled:ae,canDragInteractiveElements:be,shouldRespectForcePress:We}))}function $o(De){var ae=Object(y.useContext)(gn);ae||Ue(!1);var be=ae.contextId,We=ae.isMovementAllowed,ut=Object(y.useRef)(null),Dt=Object(y.useRef)(null),jt=De.children,Wt=De.droppableId,Rr=De.type,Zr=De.mode,kr=De.direction,Or=De.ignoreContainerClipping,Yr=De.isDropDisabled,rn=De.isCombineEnabled,_n=De.snapshot,fi=De.useClone,vi=De.updateViewportMaxScroll,Qi=De.getContainerForClone,Mi=t(function(){return ut.current},[]),Da=t(function(oe){ut.current=oe},[]),oa=t(function(){return Dt.current},[]),$a=t(function(oe){Dt.current=oe},[]);L({props:De,getDroppableRef:Mi,getPlaceholderRef:oa});var ja=t(function(){We()&&vi({maxScroll:Mr()})},[We,vi]);wu({droppableId:Wt,type:Rr,mode:Zr,direction:kr,isDropDisabled:Yr,isCombineEnabled:rn,ignoreContainerClipping:Or,getDroppableRef:Mi});var Io=p.a.createElement(K,{on:De.placeholder,shouldAnimate:De.shouldAnimatePlaceholder},function(oe){var de=oe.onClose,Be=oe.data,At=oe.animate;return p.a.createElement(Su,{placeholder:Be,onClose:de,innerRef:$a,animate:At,contextId:be,onTransitionEnd:ja})}),Vo=n(function(){return{innerRef:Da,placeholder:Io,droppableProps:{"data-rbd-droppable-id":Wt,"data-rbd-droppable-context-id":be}}},[be,Wt,Io,Da]),N=fi?fi.dragging.draggableId:null,U=n(function(){return{droppableId:Wt,type:Rr,isUsingCloneFor:N}},[Wt,N,Rr]);function ie(){if(!fi)return null;var oe=fi.dragging,de=fi.render,Be=p.a.createElement(so,{draggableId:oe.draggableId,index:oe.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(At,Kt){return de(At,Kt,oe)});return P.a.createPortal(Be,Qi())}return p.a.createElement(cu.Provider,{value:U},jt(Vo,_n),ie())}var Bs=function(ae,be){return ae===be.droppable.type},ve=function(ae,be){return be.draggables[ae.draggable.id]},Ke=function(){var ae={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},be=Object(v.a)({},ae,{shouldAnimatePlaceholder:!1}),We=O(function(jt){return{draggableId:jt.id,type:jt.type,source:{index:jt.index,droppableId:jt.droppableId}}}),ut=O(function(jt,Wt,Rr,Zr,kr,Or){var Yr=kr.descriptor.id,rn=kr.descriptor.droppableId===jt;if(rn){var _n=Or?{render:Or,dragging:We(kr.descriptor)}:null,fi={isDraggingOver:Rr,draggingOverWith:Rr?Yr:null,draggingFromThisWith:Yr,isUsingPlaceholder:!0};return{placeholder:kr.placeholder,shouldAnimatePlaceholder:!1,snapshot:fi,useClone:_n}}if(!Wt)return be;if(!Zr)return ae;var vi={isDraggingOver:Rr,draggingOverWith:Yr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:kr.placeholder,shouldAnimatePlaceholder:!0,snapshot:vi,useClone:null}}),Dt=function(Wt,Rr){var Zr=Rr.droppableId,kr=Rr.type,Or=!Rr.isDropDisabled,Yr=Rr.renderClone;if(Wt.isDragging){var rn=Wt.critical;if(!Bs(kr,rn))return be;var _n=ve(rn,Wt.dimensions),fi=Kn(Wt.impact)===Zr;return ut(Zr,Or,fi,fi,_n,Yr)}if(Wt.phase==="DROP_ANIMATING"){var vi=Wt.completed;if(!Bs(kr,vi.critical))return be;var Qi=ve(vi.critical,Wt.dimensions);return ut(Zr,Or,yn(vi.result)===Zr,Kn(vi.impact)===Zr,Qi,Yr)}if(Wt.phase==="IDLE"&&Wt.completed&&!Wt.shouldFlush){var Mi=Wt.completed;if(!Bs(kr,Mi.critical))return be;var Da=Kn(Mi.impact)===Zr,oa=Boolean(Mi.impact.at&&Mi.impact.at.type==="COMBINE"),$a=Mi.critical.droppable.id===Zr;return Da?oa?ae:be:$a?ae:be}return be};return Dt},ht={updateViewportMaxScroll:Ar};function Vt(){return document.body||Ue(!1),document.body}var Cr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Vt},Xr=Object(f.c)(Ke,ht,null,{context:ps,pure:!0,areStatePropsEqual:Sn})($o);Xr.defaultProps=Cr},ni6a:function(k,D,i){var y=i("pzxd"),p=i("mFDi"),S=i("gut8"),v=S.WILL_BE_RESTORED,m=new p,f=function(){};f.prototype={constructor:f,drawRectText:function(o,n){var t=this.style;n=t.textRect||n,this.__dirty&&y.normalizeTextStyle(t,!0);var a=t.text;if(a!=null&&(a+=""),!y.needDrawText(a,t))return;o.save();var e=this.transform;t.transformText?this.setTransform(o):e&&(m.copy(n),m.applyTransform(e),n=m),y.renderText(this,o,a,t,n,v),o.restore()}};var d=f;k.exports=d},nkfE:function(k,D,i){var y=i("bYtY"),p=i("ca2m"),S=i("bLfw"),v=i("+TT/"),m=v.getLayoutParams,f=v.mergeLayoutParam,d=i("jkPA"),u=["value","category","time","log"];function o(n,t,a,e){y.each(u,function(l){t.extend({type:n+"Axis."+l,mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,h=c?m(r):{},g=s.getTheme();y.merge(r,g.get(l+"Axis")),y.merge(r,this.getDefaultOption()),r.type=a(n,r),c&&f(r,h,c)},optionUpdated:function(){var r=this.option;r.type==="category"&&(this.__ordinalMeta=d.createByAxisModel(this))},getCategories:function(r){var s=this.option;if(s.type==="category")return r?s.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:y.mergeAll([{},p[l+"Axis"],e],!0)})}),S.registerSubTypeDefaulter(n+"Axis",y.curry(a,n))}k.exports=o},noeP:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("UOVi");y.registerAction("dataZoom",function(v,m){var f=S.createLinkedNodesFinder(p.bind(m.eachComponent,m,"dataZoom"),S.eachAxisDim,function(u,o){return u.get(o.axisIndex)}),d=[];m.eachComponent({mainType:"dataZoom",query:v},function(u,o){d.push.apply(d,f(u).nodes)}),p.each(d,function(u,o){u.setRawRange({start:v.start,end:v.end,startValue:v.startValue,endValue:v.endValue})})})},o40c:function(k,D,i){var y=i("IwbS"),p=i("OS9S"),S=i("loD1"),v=i("aKvl"),m=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(o,n){var t=n.segs,a=n.curveness;if(n.polyline)for(var e=0;e<t.length;){var l=t[e++];if(l>0){o.moveTo(t[e++],t[e++]);for(var r=1;r<l;r++)o.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var s=t[e++],c=t[e++],h=t[e++],g=t[e++];if(o.moveTo(s,c),a>0){var A=(s+h)/2-(c-g)*a,b=(c+g)/2-(h-s)*a;o.quadraticCurveTo(A,b,h,g)}else o.lineTo(h,g)}},findDataIndex:function(o,n){var t=this.shape,a=t.segs,e=t.curveness;if(t.polyline)for(var l=0,r=0;r<a.length;){var s=a[r++];if(s>0)for(var c=a[r++],h=a[r++],g=1;g<s;g++){var A=a[r++],b=a[r++];if(S.containStroke(c,h,A,b))return l}l++}else for(var l=0,r=0;r<a.length;){var c=a[r++],h=a[r++],A=a[r++],b=a[r++];if(e>0){var w=(c+A)/2-(h-b)*e,x=(h+b)/2-(A-c)*e;if(v.containStroke(c,h,w,x,A,b))return l}else if(S.containStroke(c,h,A,b))return l;l++}return-1}});function f(){this.group=new y.Group}var d=f.prototype;d.isPersistent=function(){return!this._incremental},d.updateData=function(o){this.group.removeAll();var n=new m({rectHover:!0,cursor:"default"});n.setShape({segs:o.getLayout("linesPoints")}),this._setCommon(n,o),this.group.add(n),this._incremental=null},d.incrementalPrepareUpdate=function(o){this.group.removeAll(),this._clearIncremental(),o.count()>5e5?(this._incremental||(this._incremental=new p({silent:!0})),this.group.add(this._incremental)):this._incremental=null},d.incrementalUpdate=function(o,n){var t=new m;t.setShape({segs:n.getLayout("linesPoints")}),this._setCommon(t,n,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=o.start,this.group.add(t))},d.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},d._setCommon=function(o,n,t){var a=n.hostModel;o.setShape({polyline:a.get("polyline"),curveness:a.get("lineStyle.curveness")}),o.useStyle(a.getModel("lineStyle").getLineStyle()),o.style.strokeNoScale=!0;var e=n.getVisual("color");e&&o.setStyle("stroke",e),o.setStyle("fill"),t||(o.seriesIndex=a.seriesIndex,o.on("mousemove",function(l){o.dataIndex=null;var r=o.findDataIndex(l.offsetX,l.offsetY);r>0&&(o.dataIndex=r+o.__startIndex)}))},d._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var u=f;k.exports=u},oBaM:function(k,D,i){var y=i("T4UG"),p=i("5GtS"),S=i("bYtY"),v=i("7aKB"),m=v.encodeHTML,f=i("xKMd"),d=y.extend({type:"series.radar",dependencies:["radar"],init:function(o){d.superApply(this,"init",arguments),this.legendVisualProvider=new f(S.bind(this.getData,this),S.bind(this.getRawData,this))},getInitialData:function(o,n){return p(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(o){var n=this.getData(),t=this.coordinateSystem,a=t.getIndicatorAxes(),e=this.getData().getName(o);return m(e===""?this.name:e)+"<br/>"+S.map(a,function(l,r){var s=n.get(n.mapDimension(l.dim),o);return m(l.name+" : "+s)}).join("<br />")},getTooltipPosition:function(o){if(o!=null){for(var n=this.getData(),t=this.coordinateSystem,a=n.getValues(S.map(t.dimensions,function(s){return n.mapDimension(s)}),o,!0),e=0,l=a.length;e<l;e++)if(!isNaN(a[e])){var r=t.getIndicatorAxes();return t.coordToPoint(r[e].dataToCoord(a[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;k.exports=u},oE7X:function(k,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(k,D,i){},oRuE:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(S,v){var m=v*4,f=m-S.sigBytes%m;S.concat(y.lib.WordArray.random(f-1)).concat(y.lib.WordArray.create([f<<24],1))},unpad:function(S){var v=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=v}},y.pad.Iso10126})},oVpE:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("mFDi"),v=i("6GrX"),m=v.calculateTextPosition,f=p.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var h=c.cx,g=c.cy,A=c.width/2,b=c.height/2;s.moveTo(h,g-b),s.lineTo(h+A,g+b),s.lineTo(h-A,g+b),s.closePath()}}),d=p.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var h=c.cx,g=c.cy,A=c.width/2,b=c.height/2;s.moveTo(h,g-b),s.lineTo(h+A,g),s.lineTo(h,g+b),s.lineTo(h-A,g),s.closePath()}}),u=p.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var h=c.x,g=c.y,A=c.width/5*3,b=Math.max(A,c.height),w=A/2,x=w*w/(b-w),T=g-b+w+x,_=Math.asin(x/w),E=Math.cos(_)*w,C=Math.sin(_),I=Math.cos(_),O=w*.6,F=w*.7;s.moveTo(h-E,T+x),s.arc(h,T,w,Math.PI-_,Math.PI*2+_),s.bezierCurveTo(h+E-C*O,T+x+I*O,h,g-F,h,g),s.bezierCurveTo(h,g-F,h-E+C*O,T+x+I*O,h-E,T+x),s.closePath()}}),o=p.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var h=c.height,g=c.width,A=c.x,b=c.y,w=g/3*2;s.moveTo(A,b),s.lineTo(A+w,b+h),s.lineTo(A,b+h/4*3),s.lineTo(A-w,b+h),s.lineTo(A,b),s.closePath()}}),n={line:p.Line,rect:p.Rect,roundRect:p.Rect,square:p.Rect,circle:p.Circle,diamond:d,pin:u,arrow:o,triangle:f},t={line:function(s,c,h,g,A){A.x1=s,A.y1=c+g/2,A.x2=s+h,A.y2=c+g/2},rect:function(s,c,h,g,A){A.x=s,A.y=c,A.width=h,A.height=g},roundRect:function(s,c,h,g,A){A.x=s,A.y=c,A.width=h,A.height=g,A.r=Math.min(h,g)/4},square:function(s,c,h,g,A){var b=Math.min(h,g);A.x=s,A.y=c,A.width=b,A.height=b},circle:function(s,c,h,g,A){A.cx=s+h/2,A.cy=c+g/2,A.r=Math.min(h,g)/2},diamond:function(s,c,h,g,A){A.cx=s+h/2,A.cy=c+g/2,A.width=h,A.height=g},pin:function(s,c,h,g,A){A.x=s+h/2,A.y=c+g/2,A.width=h,A.height=g},arrow:function(s,c,h,g,A){A.x=s+h/2,A.y=c+g/2,A.width=h,A.height=g},triangle:function(s,c,h,g,A){A.cx=s+h/2,A.cy=c+g/2,A.width=h,A.height=g}},a={};y.each(n,function(s,c){a[c]=new s});var e=p.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(s,c,h){var g=m(s,c,h),A=this.shape;return A&&A.symbolType==="pin"&&c.textPosition==="inside"&&(g.y=h.y+h.height*.4),g},buildPath:function(s,c,h){var g=c.symbolType;if(g!=="none"){var A=a[g];A||(g="rect",A=a[g]),t[g](c.x,c.y,c.width,c.height,A.shape),A.buildPath(s,A.shape,h)}}});function l(s,c){if(this.type!=="image"){var h=this.style,g=this.shape;g&&g.symbolType==="line"?h.stroke=s:this.__isEmptyBrush?(h.stroke=s,h.fill=c||"#fff"):(h.fill&&(h.fill=s),h.stroke&&(h.stroke=s)),this.dirty(!1)}}function r(s,c,h,g,A,b,w){var x=s.indexOf("empty")===0;x&&(s=s.substr(5,1).toLowerCase()+s.substr(6));var T;return s.indexOf("image://")===0?T=p.makeImage(s.slice(8),new S(c,h,g,A),w?"center":"cover"):s.indexOf("path://")===0?T=p.makePath(s.slice(7),{},new S(c,h,g,A),w?"center":"cover"):T=new e({shape:{symbolType:s,x:c,y:h,width:g,height:A}}),T.__isEmptyBrush=x,T.setColor=l,T.setColor(b),T}D.createSymbol=r},oY9F:function(k,D,i){var y=i("OlYY"),p=y.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});k.exports=p},or5M:function(k,D,i){var y=i("1hJj"),p=i("QoRX"),S=i("xYSL"),v=1,m=2;function f(d,u,o,n,t,a){var e=o&v,l=d.length,r=u.length;if(l!=r&&!(e&&r>l))return!1;var s=a.get(d),c=a.get(u);if(s&&c)return s==u&&c==d;var h=-1,g=!0,A=o&m?new y:void 0;for(a.set(d,u),a.set(u,d);++h<l;){var b=d[h],w=u[h];if(n)var x=e?n(w,b,h,u,d,a):n(b,w,h,d,u,a);if(x!==void 0){if(x)continue;g=!1;break}if(A){if(!p(u,function(T,_){if(!S(A,_)&&(b===T||t(b,T,o,n,a)))return A.push(_)})){g=!1;break}}else if(!(b===w||t(b,w,o,n,a))){g=!1;break}}return a.delete(d),a.delete(u),g}k.exports=f},osHv:function(k,D,i){(function(y){y(i("VrN/"))})(function(y){"use strict";var p=y.Pos;function S(c,h){return c.line-h.line||c.ch-h.ch}var v="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=v+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f=new RegExp("<(/?)(["+v+"]["+m+"]*)","g");function d(c,h,g,A){this.line=h,this.ch=g,this.cm=c,this.text=c.getLine(h),this.min=A?Math.max(A.from,c.firstLine()):c.firstLine(),this.max=A?Math.min(A.to-1,c.lastLine()):c.lastLine()}function u(c,h){var g=c.cm.getTokenTypeAt(p(c.line,h));return g&&/\btag\b/.test(g)}function o(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function n(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(o(c))continue;return}if(!u(c,h+1)){c.ch=h+1;continue}var g=c.text.lastIndexOf("/",h),A=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,A?"selfClose":"regular"}}function a(c){for(;;){var h=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(h==-1){if(n(c))continue;return}if(!u(c,h+1)){c.ch=h;continue}f.lastIndex=h,c.ch=h;var g=f.exec(c.text);if(g&&g.index==h)return g}}function e(c){for(;;){f.lastIndex=c.ch;var h=f.exec(c.text);if(!h){if(o(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(n(c))continue;return}if(!u(c,h+1)){c.ch=h;continue}var g=c.text.lastIndexOf("/",h),A=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,A?"selfClose":"regular"}}function r(c,h){for(var g=[];;){var A=e(c),b,w=c.line,x=c.ch-(A?A[0].length:0);if(!A||!(b=t(c)))return;if(b=="selfClose")continue;if(A[1]){for(var T=g.length-1;T>=0;--T)if(g[T]==A[2]){g.length=T;break}if(T<0&&(!h||h==A[2]))return{tag:A[2],from:p(w,x),to:p(c.line,c.ch)}}else g.push(A[2])}}function s(c,h){for(var g=[];;){var A=l(c);if(!A)return;if(A=="selfClose"){a(c);continue}var b=c.line,w=c.ch,x=a(c);if(!x)return;if(x[1])g.push(x[2]);else{for(var T=g.length-1;T>=0;--T)if(g[T]==x[2]){g.length=T;break}if(T<0&&(!h||h==x[2]))return{tag:x[2],from:p(c.line,c.ch),to:p(b,w)}}}}y.registerHelper("fold","xml",function(c,h){for(var g=new d(c,h.line,0);;){var A=e(g);if(!A||g.line!=h.line)return;var b=t(g);if(!b)return;if(!A[1]&&b!="selfClose"){var w=p(g.line,g.ch),x=r(g,A[2]);return x&&S(x.from,w)>0?{from:w,to:x.from}:null}}}),y.findMatchingTag=function(c,h,g){var A=new d(c,h.line,h.ch,g);if(A.text.indexOf(">")==-1&&A.text.indexOf("<")==-1)return;var b=t(A),w=b&&p(A.line,A.ch),x=b&&a(A);if(!b||!x||S(A,h)>0)return;var T={from:p(A.line,A.ch),to:w,tag:x[2]};return b=="selfClose"?{open:T,close:null,at:"open"}:x[1]?{open:s(A,x[2]),close:T,at:"close"}:(A=new d(c,w.line,w.ch,g),{open:T,close:r(A,x[2]),at:"open"})},y.findEnclosingTag=function(c,h,g,A){for(var b=new d(c,h.line,h.ch,g);;){var w=s(b,A);if(!w)break;var x=new d(c,h.line,h.ch,g),T=r(x,w.tag);if(T)return{open:w,close:T}}},y.scanForClosingTag=function(c,h,g,A){var b=new d(c,h.line,h.ch,A?{from:0,to:A}:null);return r(b,g)}})},ozfa:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("KxFI"),v=i.n(S)},"p+If":function(k,D,i){var y=i("ProS");i("cpOr"),i("rkZ5");var p=i("ZYIC"),S=i("7ph2");y.registerLayout(p),y.registerVisual(S)},"p/La":function(k,D){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(p,S){p==="china"&&S.name==="\u53F0\u6E7E"&&S.geometries.push({type:"polygon",exterior:i[0]})}k.exports=y},p1MT:function(k,D,i){var y=i("Hw7h"),p=i("IwbS"),S=i("6Ic6"),v=i("OELB"),m=v.parsePercent,f=v.round,d=v.linearMap;function u(e,l){var r=e.get("center"),s=l.getWidth(),c=l.getHeight(),h=Math.min(s,c),g=m(r[0],l.getWidth()),A=m(r[1],l.getHeight()),b=m(e.get("radius"),h/2);return{cx:g,cy:A,r:b}}function o(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var n=Math.PI*2,t=S.extend({type:"gauge",render:function(e,l,r){this.group.removeAll();var s=e.get("axisLine.lineStyle.color"),c=u(e,r);this._renderMain(e,l,r,s,c)},dispose:function(){},_renderMain:function(e,l,r,s,c){for(var h=this.group,g=e.getModel("axisLine"),A=g.getModel("lineStyle"),b=e.get("clockwise"),w=-e.get("startAngle")/180*Math.PI,x=-e.get("endAngle")/180*Math.PI,T=(x-w)%n,_=w,E=A.get("width"),C=g.get("show"),I=0;C&&I<s.length;I++){var O=Math.min(Math.max(s[I][0],0),1),x=w+T*O,F=new p.Sector({shape:{startAngle:_,endAngle:x,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-E,r:c.r},silent:!0});F.setStyle({fill:s[I][1]}),F.setStyle(A.getLineStyle(["color","borderWidth","borderColor"])),h.add(F),_=x}var R=function(P){if(P<=0)return s[0][1];for(var X=0;X<s.length;X++)if(s[X][0]>=P&&(X===0?0:s[X-1][0])<P)return s[X][1];return s[X-1][1]};if(!b){var B=w;w=x,x=B}this._renderTicks(e,l,r,R,c,w,x,b),this._renderPointer(e,l,r,R,c,w,x,b),this._renderTitle(e,l,r,R,c),this._renderDetail(e,l,r,R,c)},_renderTicks:function(e,l,r,s,c,h,g,A){for(var b=this.group,w=c.cx,x=c.cy,T=c.r,_=+e.get("min"),E=+e.get("max"),C=e.getModel("splitLine"),I=e.getModel("axisTick"),O=e.getModel("axisLabel"),F=e.get("splitNumber"),R=I.get("splitNumber"),B=m(C.get("length"),T),P=m(I.get("length"),T),X=h,M=(g-h)/F,z=M/R,W=C.getModel("lineStyle").getLineStyle(),H=I.getModel("lineStyle").getLineStyle(),V=0;V<=F;V++){var Q=Math.cos(X),G=Math.sin(X);if(C.get("show")){var ee=new p.Line({shape:{x1:Q*T+w,y1:G*T+x,x2:Q*(T-B)+w,y2:G*(T-B)+x},style:W,silent:!0});W.stroke==="auto"&&ee.setStyle({stroke:s(V/F)}),b.add(ee)}if(O.get("show")){var q=o(f(V/F*(E-_)+_),O.get("formatter")),se=O.get("distance"),re=s(V/F);b.add(new p.Text({style:p.setTextStyle({},O,{text:q,x:Q*(T-B-se)+w,y:G*(T-B-se)+x,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:re}),silent:!0}))}if(I.get("show")&&V!==F){for(var Ae=0;Ae<=R;Ae++){var Q=Math.cos(X),G=Math.sin(X),Te=new p.Line({shape:{x1:Q*T+w,y1:G*T+x,x2:Q*(T-P)+w,y2:G*(T-P)+x},silent:!0,style:H});H.stroke==="auto"&&Te.setStyle({stroke:s((V+Ae/R)/F)}),b.add(Te),X+=z}X-=z}else X+=M}},_renderPointer:function(e,l,r,s,c,h,g,A){var b=this.group,w=this._data;if(!e.get("pointer.show")){w&&w.eachItemGraphicEl(function(C){b.remove(C)});return}var x=[+e.get("min"),+e.get("max")],T=[h,g],_=e.getData(),E=_.mapDimension("value");_.diff(w).add(function(C){var I=new y({shape:{angle:h}});p.initProps(I,{shape:{angle:d(_.get(E,C),x,T,!0)}},e),b.add(I),_.setItemGraphicEl(C,I)}).update(function(C,I){var O=w.getItemGraphicEl(I);p.updateProps(O,{shape:{angle:d(_.get(E,C),x,T,!0)}},e),b.add(O),_.setItemGraphicEl(C,O)}).remove(function(C){var I=w.getItemGraphicEl(C);b.remove(I)}).execute(),_.eachItemGraphicEl(function(C,I){var O=_.getItemModel(I),F=O.getModel("pointer");C.setShape({x:c.cx,y:c.cy,width:m(F.get("width"),c.r),r:m(F.get("length"),c.r)}),C.useStyle(O.getModel("itemStyle").getItemStyle()),C.style.fill==="auto"&&C.setStyle("fill",s(d(_.get(E,I),x,[0,1],!0))),p.setHoverStyle(C,O.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,l,r,s,c){var h=e.getData(),g=h.mapDimension("value"),A=e.getModel("title");if(A.get("show")){var b=A.get("offsetCenter"),w=c.cx+m(b[0],c.r),x=c.cy+m(b[1],c.r),T=+e.get("min"),_=+e.get("max"),E=e.getData().get(g,0),C=s(d(E,[T,_],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},A,{x:w,y:x,text:h.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:C,forceRich:!0})}))}},_renderDetail:function(e,l,r,s,c){var h=e.getModel("detail"),g=+e.get("min"),A=+e.get("max");if(h.get("show")){var b=h.get("offsetCenter"),w=c.cx+m(b[0],c.r),x=c.cy+m(b[1],c.r),T=m(h.get("width"),c.r),_=m(h.get("height"),c.r),E=e.getData(),C=E.get(E.mapDimension("value"),0),I=s(d(C,[g,A],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},h,{x:w,y:x,text:o(C,h.get("formatter")),textWidth:isNaN(T)?null:T,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:I,forceRich:!0})}))}}}),a=t;k.exports=a},"p77/":function(k,D,i){},pA7S:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.WordArray,m=S.BlockCipher,f=p.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],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],n=[{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],a=f.DES=m.extend({_doReset:function(){for(var c=this._key,h=c.words,g=[],A=0;A<56;A++){var b=d[A]-1;g[A]=h[b>>>5]>>>31-b%32&1}for(var w=this._subKeys=[],x=0;x<16;x++){for(var T=w[x]=[],_=o[x],A=0;A<24;A++)T[A/6|0]|=g[(u[A]-1+_)%28]<<31-A%6,T[4+(A/6|0)]|=g[28+(u[A+24]-1+_)%28]<<31-A%6;T[0]=T[0]<<1|T[0]>>>31;for(var A=1;A<7;A++)T[A]=T[A]>>>(A-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var E=this._invSubKeys=[],A=0;A<16;A++)E[A]=w[15-A]},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 A=0;A<16;A++){for(var b=g[A],w=this._lBlock,x=this._rBlock,T=0,_=0;_<8;_++)T|=n[_][((x^b[_])&t[_])>>>0];this._lBlock=x,this._rBlock=w^T}var E=this._lBlock;this._lBlock=this._rBlock,this._rBlock=E,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(s,c){var h=(this._lBlock>>>s^this._rBlock)&c;this._rBlock^=h,this._lBlock^=h<<s}function l(s,c){var h=(this._rBlock>>>s^this._lBlock)&c;this._lBlock^=h,this._rBlock^=h<<s}p.DES=m._createHelper(a);var r=f.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),A=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=a.createEncryptor(v.create(g)),this._des2=a.createEncryptor(v.create(A)),this._des3=a.createEncryptor(v.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});p.TripleDES=m._createHelper(r)}(),y.TripleDES})},pC0b:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("xzDV"),v=i.n(S),m=i("5Dmo")},"pED+":function(k,D,i){},pG52:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("WXVj"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},pLH3:function(k,D,i){var y=i("ProS");i("ALo7"),i("TWL2");var p=i("mOdp"),S=i("JLnu"),v=i("0/Rx");y.registerVisual(p("funnel")),y.registerLayout(S),y.registerProcessor(v("funnel"))},pP6R:function(k,D,i){var y=i("ProS"),p="\0_ec_interaction_mutex";function S(d,u,o){var n=f(d);n[u]=o}function v(d,u,o){var n=f(d),t=n[u];t===o&&(n[u]=null)}function m(d,u){return!!f(d)[u]}function f(d){return d[p]||(d[p]={})}y.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),D.take=S,D.release=v,D.isTaken=m},pSRY:function(k,D,i){var y=i("QkVE");function p(S){return y(this,S).has(S)}k.exports=p},pWdF:function(k,D,i){"use strict";i.d(D,"a",function(){return Au});var y=i("oBTY"),p=i("rAM+"),S=i("tJVT"),v=i("tS8v"),m=i("oZsa"),f=i("iZzK");function d(he){return Function.toString.call(he).indexOf("[native code]")!==-1}var u=i("cHpt");function o(he,$,L){return Object(u.a)()?o=Reflect.construct:o=function(j,J,te){var me=[null];me.push.apply(me,J);var we=Function.bind.apply(j,me),je=new we;return te&&Object(f.a)(je,te.prototype),je},o.apply(null,arguments)}function n(he){var $=typeof Map=="function"?new Map:void 0;return n=function(K){if(K===null||!d(K))return K;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(typeof $!="undefined"){if($.has(K))return $.get(K);$.set(K,j)}function j(){return o(K,arguments,Object(m.a)(this).constructor)}return j.prototype=Object.create(K.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),Object(f.a)(j,K)},n(he)}var t=i("w4Tj"),a=i("yKVA"),e=i("879j"),l=i("jrin"),r=i("fWQN"),s=i("mtLc");function c(he){return he&&he.__esModule&&Object.prototype.hasOwnProperty.call(he,"default")?he.default:he}var h={exports:{}};(function(he,$){(function(L){var K=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,j=/^(?=([^\/?#]*))\1([^]*)$/,J=/(?:\/|^)\.(?=\/)/g,te=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,me={buildAbsoluteURL:function(je,qe,it){if(it=it||{},je=je.trim(),qe=qe.trim(),!qe){if(!it.alwaysNormalize)return je;var Rt=me.parseURL(je);if(!Rt)throw new Error("Error trying to parse base URL.");return Rt.path=me.normalizePath(Rt.path),me.buildURLFromParts(Rt)}var hr=me.parseURL(qe);if(!hr)throw new Error("Error trying to parse relative URL.");if(hr.scheme)return it.alwaysNormalize?(hr.path=me.normalizePath(hr.path),me.buildURLFromParts(hr)):qe;var tr=me.parseURL(je);if(!tr)throw new Error("Error trying to parse base URL.");if(!tr.netLoc&&tr.path&&tr.path[0]!=="/"){var Dr=j.exec(tr.path);tr.netLoc=Dr[1],tr.path=Dr[2]}tr.netLoc&&!tr.path&&(tr.path="/");var jr={scheme:tr.scheme,netLoc:hr.netLoc,path:null,params:hr.params,query:hr.query,fragment:hr.fragment};if(!hr.netLoc&&(jr.netLoc=tr.netLoc,hr.path[0]!=="/"))if(!hr.path)jr.path=tr.path,hr.params||(jr.params=tr.params,hr.query||(jr.query=tr.query));else{var Sn=tr.path,yn=Sn.substring(0,Sn.lastIndexOf("/")+1)+hr.path;jr.path=me.normalizePath(yn)}return jr.path===null&&(jr.path=it.alwaysNormalize?me.normalizePath(hr.path):hr.path),me.buildURLFromParts(jr)},parseURL:function(je){var qe=K.exec(je);return qe?{scheme:qe[1]||"",netLoc:qe[2]||"",path:qe[3]||"",params:qe[4]||"",query:qe[5]||"",fragment:qe[6]||""}:null},normalizePath:function(je){for(je=je.split("").reverse().join("").replace(J,"");je.length!==(je=je.replace(te,"")).length;);return je.split("").reverse().join("")},buildURLFromParts:function(je){return je.scheme+je.netLoc+je.path+je.params+je.query+je.fragment}};he.exports=me})()})(h);var g=h.exports;function A(he,$){var L=Object.keys(he);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(he);$&&(K=K.filter(function(j){return Object.getOwnPropertyDescriptor(he,j).enumerable})),L.push.apply(L,K)}return L}function b(he){for(var $=1;$<arguments.length;$++){var L=arguments[$]!=null?arguments[$]:{};$%2?A(Object(L),!0).forEach(function(K){w(he,K,L[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(L)):A(Object(L)).forEach(function(K){Object.defineProperty(he,K,Object.getOwnPropertyDescriptor(L,K))})}return he}function w(he,$,L){return $=_($),$ in he?Object.defineProperty(he,$,{value:L,enumerable:!0,configurable:!0,writable:!0}):he[$]=L,he}function x(){return x=Object.assign?Object.assign.bind():function(he){for(var $=1;$<arguments.length;$++){var L=arguments[$];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(he[K]=L[K])}return he},x.apply(this,arguments)}function T(he,$){if(typeof he!="object"||he===null)return he;var L=he[Symbol.toPrimitive];if(L!==void 0){var K=L.call(he,$||"default");if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(he)}function _(he){var $=T(he,"string");return typeof $=="symbol"?$:String($)}var E=Number.isFinite||function(he){return typeof he=="number"&&isFinite(he)},C=Number.isSafeInteger||function(he){return typeof he=="number"&&Math.abs(he)<=I},I=Number.MAX_SAFE_INTEGER||9007199254740991,O=function(he){return he.MEDIA_ATTACHING="hlsMediaAttaching",he.MEDIA_ATTACHED="hlsMediaAttached",he.MEDIA_DETACHING="hlsMediaDetaching",he.MEDIA_DETACHED="hlsMediaDetached",he.BUFFER_RESET="hlsBufferReset",he.BUFFER_CODECS="hlsBufferCodecs",he.BUFFER_CREATED="hlsBufferCreated",he.BUFFER_APPENDING="hlsBufferAppending",he.BUFFER_APPENDED="hlsBufferAppended",he.BUFFER_EOS="hlsBufferEos",he.BUFFER_FLUSHING="hlsBufferFlushing",he.BUFFER_FLUSHED="hlsBufferFlushed",he.MANIFEST_LOADING="hlsManifestLoading",he.MANIFEST_LOADED="hlsManifestLoaded",he.MANIFEST_PARSED="hlsManifestParsed",he.LEVEL_SWITCHING="hlsLevelSwitching",he.LEVEL_SWITCHED="hlsLevelSwitched",he.LEVEL_LOADING="hlsLevelLoading",he.LEVEL_LOADED="hlsLevelLoaded",he.LEVEL_UPDATED="hlsLevelUpdated",he.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",he.LEVELS_UPDATED="hlsLevelsUpdated",he.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",he.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",he.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",he.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",he.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",he.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",he.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",he.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",he.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",he.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",he.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",he.CUES_PARSED="hlsCuesParsed",he.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",he.INIT_PTS_FOUND="hlsInitPtsFound",he.FRAG_LOADING="hlsFragLoading",he.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",he.FRAG_LOADED="hlsFragLoaded",he.FRAG_DECRYPTED="hlsFragDecrypted",he.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",he.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",he.FRAG_PARSING_METADATA="hlsFragParsingMetadata",he.FRAG_PARSED="hlsFragParsed",he.FRAG_BUFFERED="hlsFragBuffered",he.FRAG_CHANGED="hlsFragChanged",he.FPS_DROP="hlsFpsDrop",he.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",he.ERROR="hlsError",he.DESTROYING="hlsDestroying",he.KEY_LOADING="hlsKeyLoading",he.KEY_LOADED="hlsKeyLoaded",he.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",he.BACK_BUFFER_REACHED="hlsBackBufferReached",he}({}),F=function(he){return he.NETWORK_ERROR="networkError",he.MEDIA_ERROR="mediaError",he.KEY_SYSTEM_ERROR="keySystemError",he.MUX_ERROR="muxError",he.OTHER_ERROR="otherError",he}({}),R=function(he){return he.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",he.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",he.KEY_SYSTEM_NO_SESSION="keySystemNoSession",he.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",he.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",he.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",he.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",he.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",he.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",he.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",he.MANIFEST_LOAD_ERROR="manifestLoadError",he.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",he.MANIFEST_PARSING_ERROR="manifestParsingError",he.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",he.LEVEL_EMPTY_ERROR="levelEmptyError",he.LEVEL_LOAD_ERROR="levelLoadError",he.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",he.LEVEL_PARSING_ERROR="levelParsingError",he.LEVEL_SWITCH_ERROR="levelSwitchError",he.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",he.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",he.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",he.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",he.FRAG_LOAD_ERROR="fragLoadError",he.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",he.FRAG_DECRYPT_ERROR="fragDecryptError",he.FRAG_PARSING_ERROR="fragParsingError",he.FRAG_GAP="fragGap",he.REMUX_ALLOC_ERROR="remuxAllocError",he.KEY_LOAD_ERROR="keyLoadError",he.KEY_LOAD_TIMEOUT="keyLoadTimeOut",he.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",he.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",he.BUFFER_APPEND_ERROR="bufferAppendError",he.BUFFER_APPENDING_ERROR="bufferAppendingError",he.BUFFER_STALLED_ERROR="bufferStalledError",he.BUFFER_FULL_ERROR="bufferFullError",he.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",he.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",he.INTERNAL_EXCEPTION="internalException",he.INTERNAL_ABORTED="aborted",he.UNKNOWN="unknown",he}({}),B=function(){},P={trace:B,debug:B,log:B,warn:B,info:B,error:B},X=P;function M(he){var $=self.console[he];return $?$.bind(self.console,"[".concat(he,"] >")):B}function z(he){for(var $=arguments.length,L=new Array($>1?$-1:0),K=1;K<$;K++)L[K-1]=arguments[K];L.forEach(function(j){X[j]=he[j]?he[j].bind(he):M(j)})}function W(he,$){if(self.console&&he===!0||typeof he=="object"){z(he,"debug","log","info","warn","error");try{X.log('Debug logs enabled for "'.concat($,'" in hls.js version ',"1.4.13"))}catch(L){X=P}}else X=P}var H=X,V=/^(\d+)x(\d+)$/,Q=/(.+?)=(".*?"|.*?)(?:,|$)/g,G=function(){function he($){Object(r.a)(this,he),typeof $=="string"&&($=he.parseAttrList($));for(var L in $)$.hasOwnProperty(L)&&(L.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(L)),this[L]=$[L])}return Object(s.a)(he,[{key:"decimalInteger",value:function(L){var K=parseInt(this[L],10);return K>Number.MAX_SAFE_INTEGER?Infinity:K}},{key:"hexadecimalInteger",value:function(L){if(this[L]){var K=(this[L]||"0x").slice(2);K=(K.length&1?"0":"")+K;for(var j=new Uint8Array(K.length/2),J=0;J<K.length/2;J++)j[J]=parseInt(K.slice(J*2,J*2+2),16);return j}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(L){var K=parseInt(this[L],16);return K>Number.MAX_SAFE_INTEGER?Infinity:K}},{key:"decimalFloatingPoint",value:function(L){return parseFloat(this[L])}},{key:"optionalFloat",value:function(L,K){var j=this[L];return j?parseFloat(j):K}},{key:"enumeratedString",value:function(L){return this[L]}},{key:"bool",value:function(L){return this[L]==="YES"}},{key:"decimalResolution",value:function(L){var K=V.exec(this[L]);return K===null?void 0:{width:parseInt(K[1],10),height:parseInt(K[2],10)}}}],[{key:"parseAttrList",value:function(L){var K,j={},J='"';for(Q.lastIndex=0;(K=Q.exec(L))!==null;){var te=K[2];te.indexOf(J)===0&&te.lastIndexOf(J)===te.length-1&&(te=te.slice(1,-1));var me=K[1].trim();j[me]=te}return j}}]),he}();function ee(he){return he!=="ID"&&he!=="CLASS"&&he!=="START-DATE"&&he!=="DURATION"&&he!=="END-DATE"&&he!=="END-ON-NEXT"}function q(he){return he==="SCTE35-OUT"||he==="SCTE35-IN"}var se=function(){function he($,L){if(Object(r.a)(this,he),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var K=L.attr;for(var j in K)if(Object.prototype.hasOwnProperty.call($,j)&&$[j]!==K[j]){H.warn('DATERANGE tag attribute: "'.concat(j,'" does not match for tags with ID: "').concat($.ID,'"')),this._badValueForSameId=j;break}$=x(new G({}),K,$)}if(this.attr=$,this._startDate=new Date($["START-DATE"]),"END-DATE"in this.attr){var J=new Date(this.attr["END-DATE"]);E(J.getTime())&&(this._endDate=J)}}return Object(s.a)(he,[{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 L=this.duration;return L!==null?new Date(this._startDate.getTime()+L*1e3):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var L=this.attr.decimalFloatingPoint("DURATION");if(E(L))return L}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&&E(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),he}(),re=Object(s.a)(function he(){Object(r.a)(this,he),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}}),Ae={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"},Te=function(){function he($){Object(r.a)(this,he),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=Object(l.a)(Object(l.a)(Object(l.a)({},Ae.AUDIO,null),Ae.VIDEO,null),Ae.AUDIOVIDEO,null),this.baseurl=$}return Object(s.a)(he,[{key:"setByteRange",value:function(L,K){var j=L.split("@",2),J=[];j.length===1?J[0]=K?K.byteRangeEndOffset:0:J[0]=parseInt(j[1]),J[1]=parseInt(j[0])+J[0],this._byteRange=J}},{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(L){this._url=L}}]),he}(),Re=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j){var J;return Object(r.a)(this,L),J=$.call(this,j),J._decryptdata=null,J.rawProgramDateTime=null,J.programDateTime=null,J.tagList=[],J.duration=0,J.sn=0,J.levelkeys=void 0,J.type=void 0,J.loader=null,J.keyLoader=null,J.level=-1,J.cc=0,J.startPTS=void 0,J.endPTS=void 0,J.startDTS=void 0,J.endDTS=void 0,J.start=0,J.deltaPTS=void 0,J.maxStartPTS=void 0,J.minEndPTS=void 0,J.stats=new re,J.urlId=0,J.data=void 0,J.bitrateTest=!1,J.title=null,J.initSegment=null,J.endList=void 0,J.gap=void 0,J.type=K,J}return Object(s.a)(L,[{key:"decryptdata",get:function(){var j=this.levelkeys;if(!j&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var J=this.levelkeys.identity;if(J)this._decryptdata=J.getDecryptData(this.sn);else{var te=Object.keys(this.levelkeys);if(te.length===1)return this._decryptdata=this.levelkeys[te[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(!E(this.programDateTime))return null;var j=E(this.duration)?this.duration:0;return this.programDateTime+j*1e3}},{key:"encrypted",get:function(){var j;if((j=this._decryptdata)!=null&&j.encrypted)return!0;if(this.levelkeys){var J=Object.keys(this.levelkeys),te=J.length;if(te>1||te===1&&this.levelkeys[J[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(j){if(this.levelkeys){var J=this.levelkeys[j];J&&!this._decryptdata&&(this._decryptdata=J.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var j,J;(j=this.loader)==null||j.abort(),(J=this.keyLoader)==null||J.abort()}},{key:"setElementaryStreamInfo",value:function(j,J,te,me,we){var je=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qe=this.elementaryStreams,it=qe[j];if(!it){qe[j]={startPTS:J,endPTS:te,startDTS:me,endDTS:we,partial:je};return}it.startPTS=Math.min(it.startPTS,J),it.endPTS=Math.max(it.endPTS,te),it.startDTS=Math.min(it.startDTS,me),it.endDTS=Math.max(it.endDTS,we)}},{key:"clearElementaryStreamInfo",value:function(){var j=this.elementaryStreams;j[Ae.AUDIO]=null,j[Ae.VIDEO]=null,j[Ae.AUDIOVIDEO]=null}}]),L}(Te),Ge=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j,J,te,me){var we;Object(r.a)(this,L),we=$.call(this,J),we.fragOffset=0,we.duration=0,we.gap=!1,we.independent=!1,we.relurl=void 0,we.fragment=void 0,we.index=void 0,we.stats=new re,we.duration=K.decimalFloatingPoint("DURATION"),we.gap=K.bool("GAP"),we.independent=K.bool("INDEPENDENT"),we.relurl=K.enumeratedString("URI"),we.fragment=j,we.index=te;var je=K.enumeratedString("BYTERANGE");return je&&we.setByteRange(je,me),me&&(we.fragOffset=me.fragOffset+me.duration),we}return Object(s.a)(L,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var j=this.elementaryStreams;return!!(j.audio||j.video||j.audiovideo)}}]),L}(Te),Ue=10,nt=function(){function he($){Object(r.a)(this,he),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=$}return Object(s.a)(he,[{key:"reloaded",value:function(L){if(!L){this.advanced=!0,this.updated=!0;return}var K=this.lastPartSn-L.lastPartSn,j=this.lastPartIndex-L.lastPartIndex;this.updated=this.endSN!==L.endSN||!!j||!!K||!this.live,this.advanced=this.endSN>L.endSN||K>0||K===0&&j>0,this.updated||this.advanced?this.misses=Math.floor(L.misses*.6):this.misses=L.misses+1,this.availabilityDelay=L.availabilityDelay}},{key:"hasProgramDateTime",get:function(){return this.fragments.length?E(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Ue}},{key:"drift",get:function(){var L=this.driftEndTime-this.driftStartTime;if(L>0){var K=this.driftEnd-this.driftStart;return K*1e3/L}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var L;return(L=this.fragments)!=null&&L.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 L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var L;return(L=this.partList)!=null&&L.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),he}();function Le(he){return Uint8Array.from(atob(he),function($){return $.charCodeAt(0)})}function le(he){var $=Z(he).subarray(0,16),L=new Uint8Array(16);return L.set($,16-$.length),L}function Xe(he){var $=function(K,j,J){var te=K[j];K[j]=K[J],K[J]=te};$(he,0,3),$(he,1,2),$(he,4,5),$(he,6,7)}function pe(he){var $=he.split(":"),L=null;if($[0]==="data"&&$.length===2){var K=$[1].split(";"),j=K[K.length-1].split(",");if(j.length===2){var J=j[0]==="base64",te=j[1];J?(K.splice(-1,1),L=Le(te)):L=le(te)}}return L}function Z(he){return Uint8Array.from(unescape(encodeURIComponent(he)),function($){return $.charCodeAt(0)})}var Y={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ne={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function ce(he){switch(he){case ne.FAIRPLAY:return Y.FAIRPLAY;case ne.PLAYREADY:return Y.PLAYREADY;case ne.WIDEVINE:return Y.WIDEVINE;case ne.CLEARKEY:return Y.CLEARKEY}}var ye={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Ee(he){if(he===ye.WIDEVINE)return Y.WIDEVINE}function Ce(he){switch(he){case Y.FAIRPLAY:return ne.FAIRPLAY;case Y.PLAYREADY:return ne.PLAYREADY;case Y.WIDEVINE:return ne.WIDEVINE;case Y.CLEARKEY:return ne.CLEARKEY}}function ue(he){var $=he.drmSystems,L=he.widevineLicenseUrl,K=$?[Y.FAIRPLAY,Y.WIDEVINE,Y.PLAYREADY,Y.CLEARKEY].filter(function(j){return!!$[j]}):[];return!K[Y.WIDEVINE]&&L&&K.push(Y.WIDEVINE),K}var ge=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Oe(he,$,L,K){var j;switch(he){case Y.FAIRPLAY:j=["cenc","sinf"];break;case Y.WIDEVINE:case Y.PLAYREADY:j=["cenc"];break;case Y.CLEARKEY:j=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(he))}return Je(j,$,L,K)}function Je(he,$,L,K){var j={initDataTypes:he,persistentState:K.persistentState||"not-allowed",distinctiveIdentifier:K.distinctiveIdentifier||"not-allowed",sessionTypes:K.sessionTypes||[K.sessionType||"temporary"],audioCapabilities:$.map(function(J){return{contentType:'audio/mp4; codecs="'.concat(J,'"'),robustness:K.audioRobustness||"",encryptionScheme:K.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(J){return{contentType:'video/mp4; codecs="'.concat(J,'"'),robustness:K.videoRobustness||"",encryptionScheme:K.videoEncryptionScheme||null}})};return[j]}function lt(he,$,L){return Uint8Array.prototype.slice?he.slice($,L):new Uint8Array(Array.prototype.slice.call(he,$,L))}var tt=function($,L){return L+10<=$.length&&($[L]===73&&$[L+1]===68&&$[L+2]===51&&($[L+3]<255&&$[L+4]<255&&($[L+6]<128&&$[L+7]<128&&$[L+8]<128&&$[L+9]<128)))},ke=function($,L){return L+10<=$.length&&($[L]===51&&$[L+1]===68&&$[L+2]===73&&($[L+3]<255&&$[L+4]<255&&($[L+6]<128&&$[L+7]<128&&$[L+8]<128&&$[L+9]<128)))},st=function($,L){for(var K=L,j=0;tt($,L);){j+=10;var J=Ve($,L+6);j+=J,ke($,L+10)&&(j+=10),L+=j}return j>0?$.subarray(K,K+j):void 0},Ve=function($,L){var K=0;return K=($[L]&127)<<21,K|=($[L+1]&127)<<14,K|=($[L+2]&127)<<7,K|=$[L+3]&127,K},Ot=function($,L){return tt($,L)&&Ve($,L+6)+10<=$.length-L},Ut=function($){for(var L=Sr($),K=0;K<L.length;K++){var j=L[K];if(ir(j))return qr(j)}return},ir=function($){return $&&$.key==="PRIV"&&$.info==="com.apple.streaming.transportStreamTimestamp"},lr=function($){var L=String.fromCharCode($[0],$[1],$[2],$[3]),K=Ve($,4),j=10;return{type:L,size:K,data:$.subarray(j,j+K)}},Sr=function($){for(var L=0,K=[];tt($,L);){var j=Ve($,L+6);L+=10;for(var J=L+j;L+8<J;){var te=lr($.subarray(L)),me=mt(te);me&&K.push(me),L+=te.size+10}ke($,L)&&(L+=10)}return K},mt=function($){return $.type==="PRIV"?or($):$.type[0]==="W"?ur($):et($)},or=function($){if($.size<2)return;var L=Fe($.data,!0),K=new Uint8Array($.data.subarray(L.length+1));return{key:$.type,info:L,data:K.buffer}},et=function($){if($.size<2)return;if($.type==="TXXX"){var L=1,K=Fe($.data.subarray(L),!0);L+=K.length+1;var j=Fe($.data.subarray(L));return{key:$.type,info:K,data:j}}var J=Fe($.data.subarray(1));return{key:$.type,data:J}},ur=function($){if($.type==="WXXX"){if($.size<2)return;var L=1,K=Fe($.data.subarray(L),!0);L+=K.length+1;var j=Fe($.data.subarray(L));return{key:$.type,info:K,data:j}}var J=Fe($.data);return{key:$.type,data:J}},qr=function($){if($.data.byteLength===8){var L=new Uint8Array($.data),K=L[3]&1,j=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return j/=45,K&&(j+=4772185884e-2),Math.round(j)}return},Fe=function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=Lr();if(K){var j=K.decode($);if(L){var J=j.indexOf("\0");return J!==-1?j.substring(0,J):j}return j.replace(/\0/g,"")}for(var te=$.length,me,we,je,qe="",it=0;it<te;){if(me=$[it++],me===0&&L)return qe;if(me===0||me===3)continue;switch(me>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:qe+=String.fromCharCode(me);break;case 12:case 13:we=$[it++],qe+=String.fromCharCode((me&31)<<6|we&63);break;case 14:we=$[it++],je=$[it++],qe+=String.fromCharCode((me&15)<<12|(we&63)<<6|(je&63)<<0);break}}return qe},$t;function Lr(){return!$t&&typeof self.TextDecoder!="undefined"&&($t=new self.TextDecoder("utf-8")),$t}var pt={hexDump:function($){for(var L="",K=0;K<$.length;K++){var j=$[K].toString(16);j.length<2&&(j="0"+j),L+=j}return L}},qt=Math.pow(2,32)-1,vr=[].push,pn={video:1,audio:2,id3:3,text:4};function fr(he){return String.fromCharCode.apply(null,he)}function gr(he,$){var L=he[$]<<8|he[$+1];return L<0?65536+L:L}function dn(he,$){var L=Qt(he,$);return L<0?4294967296+L:L}function Qt(he,$){return he[$]<<24|he[$+1]<<16|he[$+2]<<8|he[$+3]}function sr(he,$,L){he[$]=L>>24,he[$+1]=L>>16&255,he[$+2]=L>>8&255,he[$+3]=L&255}function Qr(he,$){var L=[];if(!$.length)return L;for(var K=he.byteLength,j=0;j<K;){var J=dn(he,j),te=fr(he.subarray(j+4,j+8)),me=J>1?j+J:K;if(te===$[0])if($.length===1)L.push(he.subarray(j+8,me));else{var we=Qr(he.subarray(j+8,me),$.slice(1));we.length&&vr.apply(L,we)}j=me}return L}function Cn(he){var $=[],L=he[0],K=8,j=dn(he,K);K+=4;var J=0,te=0;L===0?K+=8:K+=16,K+=2;var me=he.length+te,we=gr(he,K);K+=2;for(var je=0;je<we;je++){var qe=K,it=dn(he,qe);qe+=4;var Rt=it&2147483647,hr=(it&2147483648)>>>31;if(hr===1)return H.warn("SIDX has hierarchical references (not supported)"),null;var tr=dn(he,qe);qe+=4,$.push({referenceSize:Rt,subsegmentDuration:tr,info:{duration:tr/j,start:me,end:me+Rt-1}}),me+=Rt,qe+=4,K=qe}return{earliestPresentationTime:J,timescale:j,version:L,referencesCount:we,references:$}}function Fn(he){for(var $=[],L=Qr(he,["moov","trak"]),K=0;K<L.length;K++){var j=L[K],J=Qr(j,["tkhd"])[0];if(J){var te=J[0],me=te===0?12:20,we=dn(J,me),je=Qr(j,["mdia","mdhd"])[0];if(je){te=je[0],me=te===0?12:20;var qe=dn(je,me),it=Qr(j,["mdia","hdlr"])[0];if(it){var Rt=fr(it.subarray(8,12)),hr={soun:Ae.AUDIO,vide:Ae.VIDEO}[Rt];if(hr){var tr=Qr(j,["mdia","minf","stbl","stsd"])[0],Dr=void 0;tr&&(Dr=fr(tr.subarray(12,16))),$[we]={timescale:qe,type:hr},$[hr]={timescale:qe,id:we,codec:Dr}}}}}}var jr=Qr(he,["moov","mvex","trex"]);return jr.forEach(function(Sn){var yn=dn(Sn,4),Mn=$[yn];Mn&&(Mn.default={duration:dn(Sn,12),flags:dn(Sn,20)})}),$}function ti(he,$){if(!he||!$)return he;var L=$.keyId;if(L&&$.isCommonEncryption){var K=Qr(he,["moov","trak"]);K.forEach(function(j){var J=Qr(j,["mdia","minf","stbl","stsd"])[0],te=J.subarray(8),me=Qr(te,["enca"]),we=me.length>0;we||(me=Qr(te,["encv"])),me.forEach(function(je){var qe=we?je.subarray(28):je.subarray(78),it=Qr(qe,["sinf"]);it.forEach(function(Rt){var hr=ki(Rt);if(hr){var tr=hr.subarray(8,24);tr.some(function(Dr){return Dr!==0})||(H.log("[eme] Patching keyId in 'enc".concat(we?"a":"v",">sinf>>tenc' box: ").concat(pt.hexDump(tr)," -> ").concat(pt.hexDump(L))),hr.set(L,8))}})})})}return he}function ki(he){var $=Qr(he,["schm"])[0];if($){var L=fr($.subarray(4,8));if(L==="cbcs"||L==="cenc")return Qr(he,["schi","tenc"])[0]}return H.error("[eme] missing 'schm' box"),null}function Dn(he,$){return Qr($,["moof","traf"]).reduce(function(L,K){var j=Qr(K,["tfdt"])[0],J=j[0],te=Qr(K,["tfhd"]).reduce(function(me,we){var je=dn(we,4),qe=he[je];if(qe){var it=dn(j,4);if(J===1){if(it===qt)return H.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),me;it*=qt+1,it+=dn(j,8)}var Rt=qe.timescale||9e4,hr=it/Rt;if(E(hr)&&(me===null||hr<me))return hr}return me},null);return te!==null&&E(te)&&(L===null||te<L)?te:L},null)}function Bn(he,$){for(var L=0,K=0,j=0,J=Qr(he,["moof","traf"]),te=0;te<J.length;te++){var me=J[te],we=Qr(me,["tfhd"])[0],je=dn(we,4),qe=$[je];if(!qe)continue;var it=qe.default,Rt=dn(we,0)|(it==null?void 0:it.flags),hr=it==null?void 0:it.duration;Rt&8&&(Rt&2?hr=dn(we,12):hr=dn(we,8));for(var tr=qe.timescale||9e4,Dr=Qr(me,["trun"]),jr=0;jr<Dr.length;jr++){if(L=Ft(Dr[jr]),!L&&hr){var Sn=dn(Dr[jr],4);L=hr*Sn}qe.type===Ae.VIDEO?K+=L/tr:qe.type===Ae.AUDIO&&(j+=L/tr)}}if(K===0&&j===0){for(var yn=0,Mn=Qr(he,["sidx"]),si=0;si<Mn.length;si++){var Xi=Cn(Mn[si]);Xi!=null&&Xi.references&&(yn+=Xi.references.reduce(function(Li,Pi){return Li+Pi.info.duration||0},0))}return yn}return K||j}function Ft(he){var $=dn(he,0),L=8;$&1&&(L+=4),$&4&&(L+=4);for(var K=0,j=dn(he,4),J=0;J<j;J++){if($&256){var te=dn(he,L);K+=te,L+=4}$&512&&(L+=4),$&1024&&(L+=4),$&2048&&(L+=4)}return K}function vt(he,$,L){Qr($,["moof","traf"]).forEach(function(K){Qr(K,["tfhd"]).forEach(function(j){var J=dn(j,4),te=he[J];if(!te)return;var me=te.timescale||9e4;Qr(K,["tfdt"]).forEach(function(we){var je=we[0],qe=dn(we,4);if(je===0)qe-=L*me,qe=Math.max(qe,0),sr(we,4,qe);else{qe*=Math.pow(2,32),qe+=dn(we,8),qe-=L*me,qe=Math.max(qe,0);var it=Math.floor(qe/(qt+1)),Rt=Math.floor(qe%(qt+1));sr(we,4,it),sr(we,8,Rt)}})})})}function _e(he){var $={valid:null,remainder:null},L=Qr(he,["moof"]);if(L){if(L.length<2)return $.remainder=he,$}else return $;var K=L[L.length-1];return $.valid=lt(he,0,K.byteOffset-8),$.remainder=lt(he,K.byteOffset-8),$}function Ne(he,$){var L=new Uint8Array(he.length+$.length);return L.set(he),L.set($,he.length),L}function Ie(he,$){var L=[],K=$.samples,j=$.timescale,J=$.id,te=!1,me=Qr(K,["moof"]);return me.map(function(we){var je=we.byteOffset-8,qe=Qr(we,["traf"]);qe.map(function(it){var Rt=Qr(it,["tfdt"]).map(function(hr){var tr=hr[0],Dr=dn(hr,4);return tr===1&&(Dr*=Math.pow(2,32),Dr+=dn(hr,8)),Dr/j})[0];return Rt!==void 0&&(he=Rt),Qr(it,["tfhd"]).map(function(hr){var tr=dn(hr,4),Dr=dn(hr,0)&16777215,jr=(Dr&1)!==0,Sn=(Dr&2)!==0,yn=(Dr&8)!==0,Mn=0,si=(Dr&16)!==0,Xi=0,Li=(Dr&32)!==0,Pi=8;tr===J&&(jr&&(Pi+=8),Sn&&(Pi+=4),yn&&(Mn=dn(hr,Pi),Pi+=4),si&&(Xi=dn(hr,Pi),Pi+=4),Li&&(Pi+=4),$.type==="video"&&(te=Ze($.codec)),Qr(it,["trun"]).map(function(Aa){var Na=Aa[0],Sa=dn(Aa,0)&16777215,aa=(Sa&1)!==0,so=0,os=(Sa&4)!==0,$o=(Sa&256)!==0,Bs=0,ve=(Sa&512)!==0,Ke=0,ht=(Sa&1024)!==0,Vt=(Sa&2048)!==0,Cr=0,Xr=dn(Aa,4),De=8;aa&&(so=dn(Aa,De),De+=4),os&&(De+=4);for(var ae=so+je,be=0;be<Xr;be++){if($o?(Bs=dn(Aa,De),De+=4):Bs=Mn,ve?(Ke=dn(Aa,De),De+=4):Ke=Xi,ht&&(De+=4),Vt&&(Na===0?Cr=dn(Aa,De):Cr=Qt(Aa,De),De+=4),$.type===Ae.VIDEO)for(var We=0;We<Ke;){var ut=dn(K,ae);if(ae+=4,ct(te,K[ae])){var Dt=K.subarray(ae,ae+ut);gt(Dt,te?2:1,he+Cr/j,L)}ae+=ut,We+=ut+4}he+=Bs/j}}))})})}),L}function Ze(he){if(!he)return!1;var $=he.indexOf("."),L=$<0?he:he.substring(0,$);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function ct(he,$){if(he){var L=$>>1&63;return L===39||L===40}else{var K=$&31;return K===6}}function gt(he,$,L,K){var j=kt(he),J=0;J+=$;for(var te=0,me=0,we=!1,je=0;J<j.length;){te=0;do{if(J>=j.length)break;je=j[J++],te+=je}while(je===255);me=0;do{if(J>=j.length)break;je=j[J++],me+=je}while(je===255);var qe=j.length-J;if(!we&&te===4&&J<j.length){we=!0;var it=j[J++];if(it===181){var Rt=gr(j,J);if(J+=2,Rt===49){var hr=dn(j,J);if(J+=4,hr===1195456820){var tr=j[J++];if(tr===3){var Dr=j[J++],jr=31&Dr,Sn=64&Dr,yn=Sn?2+jr*3:0,Mn=new Uint8Array(yn);if(Sn){Mn[0]=Dr;for(var si=1;si<yn;si++)Mn[si]=j[J++]}K.push({type:tr,payloadType:te,pts:L,bytes:Mn})}}}}}else if(te===5&&me<qe){if(we=!0,me>16){for(var Xi=[],Li=0;Li<16;Li++){var Pi=j[J++].toString(16);Xi.push(Pi.length==1?"0"+Pi:Pi),(Li===3||Li===5||Li===7||Li===9)&&Xi.push("-")}for(var Aa=me-16,Na=new Uint8Array(Aa),Sa=0;Sa<Aa;Sa++)Na[Sa]=j[J++];K.push({payloadType:te,pts:L,uuid:Xi.join(""),userData:Fe(Na),userDataBytes:Na})}}else if(me<qe)J+=me;else if(me>qe)break}}function kt(he){for(var $=he.byteLength,L=[],K=1;K<$-2;)he[K]===0&&he[K+1]===0&&he[K+2]===3?(L.push(K+2),K+=2):K++;if(L.length===0)return he;var j=$-L.length,J=new Uint8Array(j),te=0;for(K=0;K<j;te++,K++)te===L[0]&&(te++,L.shift()),J[K]=he[te];return J}function xr(he){var $=he[0],L="",K="",j=0,J=0,te=0,me=0,we=0,je=0;if($===0){for(;fr(he.subarray(je,je+1))!=="\0";)L+=fr(he.subarray(je,je+1)),je+=1;for(L+=fr(he.subarray(je,je+1)),je+=1;fr(he.subarray(je,je+1))!=="\0";)K+=fr(he.subarray(je,je+1)),je+=1;K+=fr(he.subarray(je,je+1)),je+=1,j=dn(he,12),J=dn(he,16),me=dn(he,20),we=dn(he,24),je=28}else if($===1){je+=4,j=dn(he,je),je+=4;var qe=dn(he,je);je+=4;var it=dn(he,je);for(je+=4,te=Math.pow(2,32)*qe+it,C(te)||(te=Number.MAX_SAFE_INTEGER,H.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),me=dn(he,je),je+=4,we=dn(he,je),je+=4;fr(he.subarray(je,je+1))!=="\0";)L+=fr(he.subarray(je,je+1)),je+=1;for(L+=fr(he.subarray(je,je+1)),je+=1;fr(he.subarray(je,je+1))!=="\0";)K+=fr(he.subarray(je,je+1)),je+=1;K+=fr(he.subarray(je,je+1)),je+=1}var Rt=he.subarray(je,he.byteLength);return{schemeIdUri:L,value:K,timeScale:j,presentationTime:te,presentationTimeDelta:J,eventDuration:me,id:we,payload:Rt}}function Hr(he){for(var $=arguments.length,L=new Array($>1?$-1:0),K=1;K<$;K++)L[K-1]=arguments[K];for(var j=L.length,J=8,te=j;te--;)J+=L[te].byteLength;var me=new Uint8Array(J);for(me[0]=J>>24&255,me[1]=J>>16&255,me[2]=J>>8&255,me[3]=J&255,me.set(he,4),te=0,J=8;te<j;te++)me.set(L[te],J),J+=L[te].byteLength;return me}function on(he,$,L){if(he.byteLength!==16)throw new RangeError("Invalid system id");var K,j;if($){K=1,j=new Uint8Array($.length*16);for(var J=0;J<$.length;J++){var te=$[J];if(te.byteLength!==16)throw new RangeError("Invalid key");j.set(te,J*16)}}else K=0,j=new Uint8Array;var me;K>0?(me=new Uint8Array(4),$.length>0&&new DataView(me.buffer).setUint32(0,$.length,!1)):me=new Uint8Array;var we=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(we.buffer).setUint32(0,L.byteLength,!1),Hr([112,115,115,104],new Uint8Array([K,0,0,0]),he,me,j,we,L||new Uint8Array)}function Nt(he){if(!(he instanceof ArrayBuffer)||he.byteLength<32)return null;var $={version:0,systemId:"",kids:null,data:null},L=new DataView(he),K=L.getUint32(0);if(he.byteLength!==K&&K>44)return null;var j=L.getUint32(4);if(j!==1886614376)return null;if($.version=L.getUint32(8)>>>24,$.version>1)return null;$.systemId=pt.hexDump(new Uint8Array(he,12,16));var J=L.getUint32(28);if($.version===0){if(K-32<J)return null;$.data=new Uint8Array(he,32,J)}else if($.version===1){$.kids=[];for(var te=0;te<J;te++)$.kids.push(new Uint8Array(he,32+te*16,16))}return $}var ot={},dt=function(){function he($,L,K){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,he),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=$,this.uri=L,this.keyFormat=K,this.keyFormatVersions=j,this.iv=J,this.encrypted=$?$!=="NONE":!1,this.isCommonEncryption=this.encrypted&&$!=="AES-128"}return Object(s.a)(he,[{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 ne.FAIRPLAY:case ne.WIDEVINE:case ne.PLAYREADY:case ne.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}},{key:"getDecryptData",value:function(L){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof L!="number"&&(this.method==="AES-128"&&!this.iv&&H.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),L=0);var K=Yt(L),j=new he(this.method,this.uri,"identity",this.keyFormatVersions,K);return j}var J=pe(this.uri);if(J)switch(this.keyFormat){case ne.WIDEVINE:this.pssh=J,J.length>=22&&(this.keyId=J.subarray(J.length-22,J.length-6));break;case ne.PLAYREADY:{var te=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=on(te,null,J);var me=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),we=String.fromCharCode.apply(null,Array.from(me)),je=we.substring(we.indexOf("<"),we.length),qe=new DOMParser,it=qe.parseFromString(je,"text/xml"),Rt=it.getElementsByTagName("KID")[0];if(Rt){var hr=Rt.childNodes[0]?Rt.childNodes[0].nodeValue:Rt.getAttribute("VALUE");if(hr){var tr=Le(hr).subarray(0,16);Xe(tr),this.keyId=tr}}break}default:{var Dr=J.subarray(0,16);if(Dr.length!==16){var jr=new Uint8Array(16);jr.set(Dr,16-Dr.length),Dr=jr}this.keyId=Dr;break}}if(!this.keyId||this.keyId.byteLength!==16){var Sn=ot[this.uri];if(!Sn){var yn=Object.keys(ot).length%Number.MAX_SAFE_INTEGER;Sn=new Uint8Array(16);var Mn=new DataView(Sn.buffer,12,4);Mn.setUint32(0,yn),ot[this.uri]=Sn}this.keyId=Sn}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){ot={}}}]),he}();function Yt(he){for(var $=new Uint8Array(16),L=12;L<16;L++)$[L]=he>>8*(15-L)&255;return $}var Pt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Et(he){return Pt.test(he)}function Bt(he,$,L){if(he.variableList!==null||he.hasVariableRefs)for(var K=L.length;K--;){var j=L[K],J=$[j];J&&($[j]=wt(he,J))}}function wt(he,$){if(he.variableList!==null||he.hasVariableRefs){var L=he.variableList;return $.replace(Pt,function(K){var j=K.substring(2,K.length-1),J=L==null?void 0:L[j];return J===void 0?(he.playlistParsingError||(he.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(j,'"'))),K):J})}return $}function Mt(he,$,L){var K=he.variableList;K||(he.variableList=K={});var j,J;if("QUERYPARAM"in $){j=$.QUERYPARAM;try{var te=new self.URL(L).searchParams;if(te.has(j))J=te.get(j);else throw new Error('"'.concat(j,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(me){he.playlistParsingError||(he.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(me.message)))}}else j=$.NAME,J=$.VALUE;j in K?he.playlistParsingError||(he.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(j,'"'))):K[j]=J||""}function Nr(he,$,L){var K=$.IMPORT;if(L&&K in L){var j=he.variableList;j||(he.variableList=j={}),j[K]=L[K]}else he.playlistParsingError||(he.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(K,'"')))}function Tr(){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}},en=Tr();function sn(he,$){var L=yr[$];return!!L&&L[he.slice(0,4)]===!0}function Vn(he,$){var L;return(L=en==null?void 0:en.isTypeSupported("".concat($||"video",'/mp4;codecs="').concat(he,'"')))!=null?L:!1}var jn=/#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,ri=/#EXT-X-MEDIA:(.*)/g,ci=/^#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"),Ni=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("|")),Qe=function(){function he(){Object(r.a)(this,he)}return Object(s.a)(he,null,[{key:"findGroup",value:function(L,K){for(var j=0;j<L.length;j++){var J=L[j];if(J.id===K)return J}}},{key:"convertAVC1ToAVCOTI",value:function(L){var K=L.split(".");if(K.length>2){var j=K.shift()+".";return j+=parseInt(K.shift()).toString(16),j+=("000"+parseInt(K.shift()).toString(16)).slice(-4),j}return L}},{key:"resolve",value:function(L,K){return g.buildAbsoluteURL(K,L,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(L){return ci.test(L)}},{key:"parseMasterPlaylist",value:function(L,K){var j=Et(L),J={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:j},te=[];jn.lastIndex=0;for(var me;(me=jn.exec(L))!=null;)if(me[1]){var we,je=new G(me[1]);Bt(J,je,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var qe=wt(J,me[2]),it={attrs:je,bitrate:je.decimalInteger("AVERAGE-BANDWIDTH")||je.decimalInteger("BANDWIDTH"),name:je.NAME,url:he.resolve(qe,K)},Rt=je.decimalResolution("RESOLUTION");Rt&&(it.width=Rt.width,it.height=Rt.height),He((je.CODECS||"").split(/[ ,]+/).filter(function(Xi){return Xi}),it),it.videoCodec&&it.videoCodec.indexOf("avc1")!==-1&&(it.videoCodec=he.convertAVC1ToAVCOTI(it.videoCodec)),(we=it.unknownCodecs)!=null&&we.length||te.push(it),J.levels.push(it)}else if(me[3]){var hr=me[3],tr=me[4];switch(hr){case"SESSION-DATA":{var Dr=new G(tr);Bt(J,Dr,["DATA-ID","LANGUAGE","VALUE","URI"]);var jr=Dr["DATA-ID"];jr&&(J.sessionData===null&&(J.sessionData={}),J.sessionData[jr]=Dr);break}case"SESSION-KEY":{var Sn=Se(tr,K,J);Sn.encrypted&&Sn.isSupported()?(J.sessionKeys===null&&(J.sessionKeys=[]),J.sessionKeys.push(Sn)):H.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(tr,'"'));break}case"DEFINE":{{var yn=new G(tr);Bt(J,yn,["NAME","VALUE","QUERYPARAM"]),Mt(J,yn,K)}break}case"CONTENT-STEERING":{var Mn=new G(tr);Bt(J,Mn,["SERVER-URI","PATHWAY-ID"]),J.contentSteering={uri:he.resolve(Mn["SERVER-URI"],K),pathwayId:Mn["PATHWAY-ID"]||"."};break}case"START":{J.startTimeOffset=Pe(tr);break}}}var si=te.length>0&&te.length<J.levels.length;return J.levels=si?te:J.levels,J.levels.length===0&&(J.playlistParsingError=new Error("no levels found in manifest")),J}},{key:"parseMasterPlaylistMedia",value:function(L,K,j){var J,te={},me=j.levels,we={AUDIO:me.map(function(jr){return{id:jr.attrs.AUDIO,audioCodec:jr.audioCodec}}),SUBTITLES:me.map(function(jr){return{id:jr.attrs.SUBTITLES,textCodec:jr.textCodec}}),"CLOSED-CAPTIONS":[]},je=0;for(ri.lastIndex=0;(J=ri.exec(L))!==null;){var qe=new G(J[1]),it=qe.TYPE;if(it){var Rt=we[it],hr=te[it]||[];te[it]=hr,Bt(j,qe,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var tr={attrs:qe,bitrate:0,id:je++,groupId:qe["GROUP-ID"]||"",instreamId:qe["INSTREAM-ID"],name:qe.NAME||qe.LANGUAGE||"",type:it,default:qe.bool("DEFAULT"),autoselect:qe.bool("AUTOSELECT"),forced:qe.bool("FORCED"),lang:qe.LANGUAGE,url:qe.URI?he.resolve(qe.URI,K):""};if(Rt!=null&&Rt.length){var Dr=he.findGroup(Rt,tr.groupId)||Rt[0];Ye(tr,Dr,"audioCodec"),Ye(tr,Dr,"textCodec")}hr.push(tr)}}return te}},{key:"parseLevelPlaylist",value:function(L,K,j,J,te,me){var we=new nt(K),je=we.fragments,qe=null,it=0,Rt=0,hr=0,tr=0,Dr=null,jr=new Re(J,K),Sn,yn,Mn,si=-1,Xi=!1;for(gi.lastIndex=0,we.m3u8=L,we.hasVariableRefs=Et(L);(Sn=gi.exec(L))!==null;){Xi&&(Xi=!1,jr=new Re(J,K),jr.start=hr,jr.sn=it,jr.cc=tr,jr.level=j,qe&&(jr.initSegment=qe,jr.rawProgramDateTime=qe.rawProgramDateTime,qe.rawProgramDateTime=null));var Li=Sn[1];if(Li){jr.duration=parseFloat(Li);var Pi=(" "+Sn[2]).slice(1);jr.title=Pi||null,jr.tagList.push(Pi?["INF",Li,Pi]:["INF",Li])}else if(Sn[3]){if(E(jr.duration)){jr.start=hr,Mn&&ft(jr,Mn,we),jr.sn=it,jr.level=j,jr.cc=tr,jr.urlId=te,je.push(jr);var Aa=(" "+Sn[3]).slice(1);jr.relurl=wt(we,Aa),$e(jr,Dr),Dr=jr,hr+=jr.duration,it++,Rt=0,Xi=!0}}else if(Sn[4]){var Na=(" "+Sn[4]).slice(1);Dr?jr.setByteRange(Na,Dr):jr.setByteRange(Na)}else if(Sn[5])jr.rawProgramDateTime=(" "+Sn[5]).slice(1),jr.tagList.push(["PROGRAM-DATE-TIME",jr.rawProgramDateTime]),si===-1&&(si=je.length);else{if(Sn=Sn[0].match(Ni),!Sn){H.warn("No matches on slow regex match for level playlist!");continue}for(yn=1;yn<Sn.length&&!(typeof Sn[yn]!="undefined");yn++);var Sa=(" "+Sn[yn]).slice(1),aa=(" "+Sn[yn+1]).slice(1),so=Sn[yn+2]?(" "+Sn[yn+2]).slice(1):"";switch(Sa){case"PLAYLIST-TYPE":we.type=aa.toUpperCase();break;case"MEDIA-SEQUENCE":it=we.startSN=parseInt(aa);break;case"SKIP":{var os=new G(aa);Bt(we,os,["RECENTLY-REMOVED-DATERANGES"]);var $o=os.decimalInteger("SKIPPED-SEGMENTS");if(E($o)){we.skippedSegments=$o;for(var Bs=$o;Bs--;)je.unshift(null);it+=$o}var ve=os.enumeratedString("RECENTLY-REMOVED-DATERANGES");ve&&(we.recentlyRemovedDateranges=ve.split(" "));break}case"TARGETDURATION":we.targetduration=Math.max(parseInt(aa),1);break;case"VERSION":we.version=parseInt(aa);break;case"EXTM3U":break;case"ENDLIST":we.live=!1;break;case"#":(aa||so)&&jr.tagList.push(so?[aa,so]:[aa]);break;case"DISCONTINUITY":tr++,jr.tagList.push(["DIS"]);break;case"GAP":jr.gap=!0,jr.tagList.push([Sa]);break;case"BITRATE":jr.tagList.push([Sa,aa]);break;case"DATERANGE":{var Ke=new G(aa);Bt(we,Ke,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Bt(we,Ke,Ke.clientAttrs);var ht=new se(Ke,we.dateRanges[Ke.ID]);ht.isValid||we.skippedSegments?we.dateRanges[ht.id]=ht:H.warn('Ignoring invalid DATERANGE tag: "'.concat(aa,'"')),jr.tagList.push(["EXT-X-DATERANGE",aa]);break}case"DEFINE":{{var Vt=new G(aa);Bt(we,Vt,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Vt?Nr(we,Vt,me):Mt(we,Vt,K)}break}case"DISCONTINUITY-SEQUENCE":tr=parseInt(aa);break;case"KEY":{var Cr=Se(aa,K,we);if(Cr.isSupported()){if(Cr.method==="NONE"){Mn=void 0;break}Mn||(Mn={}),Mn[Cr.keyFormat]&&(Mn=x({},Mn)),Mn[Cr.keyFormat]=Cr}else H.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(aa,'"'));break}case"START":we.startTimeOffset=Pe(aa);break;case"MAP":{var Xr=new G(aa);if(Bt(we,Xr,["BYTERANGE","URI"]),jr.duration){var De=new Re(J,K);St(De,Xr,j,Mn),qe=De,jr.initSegment=qe,qe.rawProgramDateTime&&!jr.rawProgramDateTime&&(jr.rawProgramDateTime=qe.rawProgramDateTime)}else St(jr,Xr,j,Mn),qe=jr,Xi=!0;break}case"SERVER-CONTROL":{var ae=new G(aa);we.canBlockReload=ae.bool("CAN-BLOCK-RELOAD"),we.canSkipUntil=ae.optionalFloat("CAN-SKIP-UNTIL",0),we.canSkipDateRanges=we.canSkipUntil>0&&ae.bool("CAN-SKIP-DATERANGES"),we.partHoldBack=ae.optionalFloat("PART-HOLD-BACK",0),we.holdBack=ae.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var be=new G(aa);we.partTarget=be.decimalFloatingPoint("PART-TARGET");break}case"PART":{var We=we.partList;We||(We=we.partList=[]);var ut=Rt>0?We[We.length-1]:void 0,Dt=Rt++,jt=new G(aa);Bt(we,jt,["BYTERANGE","URI"]);var Wt=new Ge(jt,jr,K,Dt,ut);We.push(Wt),jr.duration+=Wt.duration;break}case"PRELOAD-HINT":{var Rr=new G(aa);Bt(we,Rr,["URI"]),we.preloadHint=Rr;break}case"RENDITION-REPORT":{var Zr=new G(aa);Bt(we,Zr,["URI"]),we.renditionReports=we.renditionReports||[],we.renditionReports.push(Zr);break}default:H.warn("line parsed but not handled: ".concat(Sn));break}}}Dr&&!Dr.relurl?(je.pop(),hr-=Dr.duration,we.partList&&(we.fragmentHint=Dr)):we.partList&&($e(jr,Dr),jr.cc=tr,we.fragmentHint=jr,Mn&&ft(jr,Mn,we));var kr=je.length,Or=je[0],Yr=je[kr-1];if(hr+=we.skippedSegments*we.targetduration,hr>0&&kr&&Yr){we.averagetargetduration=hr/kr;var rn=Yr.sn;we.endSN=rn!=="initSegment"?rn:0,we.live||(Yr.endList=!0),Or&&(we.startCC=Or.cc)}else we.endSN=0,we.startCC=0;return we.fragmentHint&&(hr+=we.fragmentHint.duration),we.totalduration=hr,we.endCC=tr,si>0&&ze(je,si),we}}]),he}();function Se(he,$,L){var K,j,J=new G(he);Bt(L,J,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var te=(K=J.METHOD)!=null?K:"",me=J.URI,we=J.hexadecimalInteger("IV"),je=J.KEYFORMATVERSIONS,qe=(j=J.KEYFORMAT)!=null?j:"identity";me&&J.IV&&!we&&H.error("Invalid IV: ".concat(J.IV));var it=me?Qe.resolve(me,$):"",Rt=(je||"1").split("/").map(Number).filter(Number.isFinite);return new dt(te,it,qe,Rt,we)}function Pe(he){var $=new G(he),L=$.decimalFloatingPoint("TIME-OFFSET");return E(L)?L:null}function He(he,$){["video","audio","text"].forEach(function(L){var K=he.filter(function(J){return sn(J,L)});if(K.length){var j=K.filter(function(J){return J.lastIndexOf("avc1",0)===0||J.lastIndexOf("mp4a",0)===0});$["".concat(L,"Codec")]=j.length>0?j[0]:K[0],he=he.filter(function(J){return K.indexOf(J)===-1})}}),$.unknownCodecs=he}function Ye(he,$,L){var K=$[L];K&&(he[L]=K)}function ze(he,$){for(var L=he[$],K=$;K--;){var j=he[K];if(!j)return;j.programDateTime=L.programDateTime-j.duration*1e3,L=j}}function $e(he,$){he.rawProgramDateTime?he.programDateTime=Date.parse(he.rawProgramDateTime):$!=null&&$.programDateTime&&(he.programDateTime=$.endProgramDateTime),E(he.programDateTime)||(he.programDateTime=null,he.rawProgramDateTime=null)}function St(he,$,L,K){he.relurl=$.URI,$.BYTERANGE&&he.setByteRange($.BYTERANGE),he.level=L,he.sn="initSegment",K&&(he.levelkeys=K),he.initSegment=null}function ft(he,$,L){he.levelkeys=$;var K=L.encryptedFragments;(!K.length||K[K.length-1].levelkeys!==$)&&Object.keys($).some(function(j){return $[j].isCommonEncryption})&&K.push(he)}var Ht={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Er={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Fr(he){var $=he.type;switch($){case Ht.AUDIO_TRACK:return Er.AUDIO;case Ht.SUBTITLE_TRACK:return Er.SUBTITLE;default:return Er.MAIN}}function tn(he,$){var L=he.url;return(L===void 0||L.indexOf("data:")===0)&&(L=$.url),L}var Zt=function(){function he($){Object(r.a)(this,he),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=$,this.registerListeners()}return Object(s.a)(he,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(O.MANIFEST_LOADING,this.onManifestLoading,this),L.on(O.LEVEL_LOADING,this.onLevelLoading,this),L.on(O.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(O.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(O.MANIFEST_LOADING,this.onManifestLoading,this),L.off(O.LEVEL_LOADING,this.onLevelLoading,this),L.off(O.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(O.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var K=this.hls.config,j=K.pLoader,J=K.loader,te=j||J,me=new te(K);return this.loaders[L.type]=me,me}},{key:"getInternalLoader",value:function(L){return this.loaders[L.type]}},{key:"resetInternalLoader",value:function(L){this.loaders[L]&&delete this.loaders[L]}},{key:"destroyInternalLoaders",value:function(){for(var L in this.loaders){var K=this.loaders[L];K&&K.destroy(),this.resetInternalLoader(L)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(L,K){var j=K.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Ht.MANIFEST,url:j,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(L,K){var j=K.id,J=K.level,te=K.url,me=K.deliveryDirectives;this.load({id:j,level:J,responseType:"text",type:Ht.LEVEL,url:te,deliveryDirectives:me})}},{key:"onAudioTrackLoading",value:function(L,K){var j=K.id,J=K.groupId,te=K.url,me=K.deliveryDirectives;this.load({id:j,groupId:J,level:null,responseType:"text",type:Ht.AUDIO_TRACK,url:te,deliveryDirectives:me})}},{key:"onSubtitleTrackLoading",value:function(L,K){var j=K.id,J=K.groupId,te=K.url,me=K.deliveryDirectives;this.load({id:j,groupId:J,level:null,responseType:"text",type:Ht.SUBTITLE_TRACK,url:te,deliveryDirectives:me})}},{key:"load",value:function(L){var K=this,j,J=this.hls.config,te=this.getInternalLoader(L);if(te){var me=te.context;if(me&&me.url===L.url){H.trace("[playlist-loader]: playlist request ongoing");return}H.log("[playlist-loader]: aborting previous loader for type: ".concat(L.type)),te.abort()}var we;if(L.type===Ht.MANIFEST?we=J.manifestLoadPolicy.default:we=x({},J.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),te=this.createInternalLoader(L),(j=L.deliveryDirectives)!=null&&j.part){var je;if(L.type===Ht.LEVEL&&L.level!==null?je=this.hls.levels[L.level].details:L.type===Ht.AUDIO_TRACK&&L.id!==null?je=this.hls.audioTracks[L.id].details:L.type===Ht.SUBTITLE_TRACK&&L.id!==null&&(je=this.hls.subtitleTracks[L.id].details),je){var qe=je.partTarget,it=je.targetduration;if(qe&&it){var Rt=Math.max(qe*3,it*.8)*1e3;we=x({},we,{maxTimeToFirstByteMs:Math.min(Rt,we.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Rt,we.maxTimeToFirstByteMs)})}}}var hr=we.errorRetry||we.timeoutRetry||{},tr={loadPolicy:we,timeout:we.maxLoadTimeMs,maxRetry:hr.maxNumRetry||0,retryDelay:hr.retryDelayMs||0,maxRetryDelay:hr.maxRetryDelayMs||0},Dr={onSuccess:function(Sn,yn,Mn,si){var Xi=K.getInternalLoader(Mn);K.resetInternalLoader(Mn.type);var Li=Sn.data;if(Li.indexOf("#EXTM3U")!==0){K.handleManifestParsingError(Sn,Mn,new Error("no EXTM3U delimiter"),si||null,yn);return}yn.parsing.start=performance.now(),Qe.isMediaPlaylist(Li)?K.handleTrackOrLevelPlaylist(Sn,yn,Mn,si||null,Xi):K.handleMasterPlaylist(Sn,yn,Mn,si)},onError:function(Sn,yn,Mn,si){K.handleNetworkError(yn,Mn,!1,Sn,si)},onTimeout:function(Sn,yn,Mn){K.handleNetworkError(yn,Mn,!0,void 0,Sn)}};te.load(L,tr,Dr)}},{key:"handleMasterPlaylist",value:function(L,K,j,J){var te=this.hls,me=L.data,we=tn(L,j),je=Qe.parseMasterPlaylist(me,we);if(je.playlistParsingError){this.handleManifestParsingError(L,j,je.playlistParsingError,J,K);return}var qe=je.contentSteering,it=je.levels,Rt=je.sessionData,hr=je.sessionKeys,tr=je.startTimeOffset,Dr=je.variableList;this.variableList=Dr;var jr=Qe.parseMasterPlaylistMedia(me,we,je),Sn=jr.AUDIO,yn=Sn===void 0?[]:Sn,Mn=jr.SUBTITLES,si=jr["CLOSED-CAPTIONS"];if(yn.length){var Xi=yn.some(function(Li){return!Li.url});!Xi&&it[0].audioCodec&&!it[0].attrs.AUDIO&&(H.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),yn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new G({}),bitrate:0,url:""}))}te.trigger(O.MANIFEST_LOADED,{levels:it,audioTracks:yn,subtitles:Mn,captions:si,contentSteering:qe,url:we,stats:K,networkDetails:J,sessionData:Rt,sessionKeys:hr,startTimeOffset:tr,variableList:Dr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,K,j,J,te){var me=this.hls,we=j.id,je=j.level,qe=j.type,it=tn(L,j),Rt=E(we)?we:0,hr=E(je)?je:Rt,tr=Fr(j),Dr=Qe.parseLevelPlaylist(L.data,it,hr,tr,Rt,this.variableList);if(qe===Ht.MANIFEST){var jr={attrs:new G({}),bitrate:0,details:Dr,name:"",url:it};me.trigger(O.MANIFEST_LOADED,{levels:[jr],audioTracks:[],url:it,stats:K,networkDetails:J,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}K.parsing.end=performance.now(),j.levelDetails=Dr,this.handlePlaylistLoaded(Dr,L,K,j,J,te)}},{key:"handleManifestParsingError",value:function(L,K,j,J,te){this.hls.trigger(O.ERROR,{type:F.NETWORK_ERROR,details:R.MANIFEST_PARSING_ERROR,fatal:K.type===Ht.MANIFEST,url:L.url,err:j,error:j,reason:j.message,response:L,context:K,networkDetails:J,stats:te})}},{key:"handleNetworkError",value:function(L,K){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,J=arguments.length>3?arguments[3]:void 0,te=arguments.length>4?arguments[4]:void 0,me="A network ".concat(j?"timeout":"error"+(J?" (status "+J.code+")":"")," occurred while loading ").concat(L.type);L.type===Ht.LEVEL?me+=": ".concat(L.level," id: ").concat(L.id):(L.type===Ht.AUDIO_TRACK||L.type===Ht.SUBTITLE_TRACK)&&(me+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var we=new Error(me);H.warn("[playlist-loader]: ".concat(me));var je=R.UNKNOWN,qe=!1,it=this.getInternalLoader(L);switch(L.type){case Ht.MANIFEST:je=j?R.MANIFEST_LOAD_TIMEOUT:R.MANIFEST_LOAD_ERROR,qe=!0;break;case Ht.LEVEL:je=j?R.LEVEL_LOAD_TIMEOUT:R.LEVEL_LOAD_ERROR,qe=!1;break;case Ht.AUDIO_TRACK:je=j?R.AUDIO_TRACK_LOAD_TIMEOUT:R.AUDIO_TRACK_LOAD_ERROR,qe=!1;break;case Ht.SUBTITLE_TRACK:je=j?R.SUBTITLE_TRACK_LOAD_TIMEOUT:R.SUBTITLE_LOAD_ERROR,qe=!1;break}it&&this.resetInternalLoader(L.type);var Rt={type:F.NETWORK_ERROR,details:je,fatal:qe,url:L.url,loader:it,context:L,error:we,networkDetails:K,stats:te};if(J){var hr=(K==null?void 0:K.url)||L.url;Rt.response=b({url:hr,data:void 0},J)}this.hls.trigger(O.ERROR,Rt)}},{key:"handlePlaylistLoaded",value:function(L,K,j,J,te,me){var we=this.hls,je=J.type,qe=J.level,it=J.id,Rt=J.groupId,hr=J.deliveryDirectives,tr=tn(K,J),Dr=Fr(J),jr=typeof J.level=="number"&&Dr===Er.MAIN?qe:void 0;if(!L.fragments.length){var Sn=new Error("No Segments found in Playlist");we.trigger(O.ERROR,{type:F.NETWORK_ERROR,details:R.LEVEL_EMPTY_ERROR,fatal:!1,url:tr,error:Sn,reason:Sn.message,response:K,context:J,level:jr,parent:Dr,networkDetails:te,stats:j});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var yn=L.playlistParsingError;if(yn){we.trigger(O.ERROR,{type:F.NETWORK_ERROR,details:R.LEVEL_PARSING_ERROR,fatal:!1,url:tr,error:yn,reason:yn.message,response:K,context:J,level:jr,parent:Dr,networkDetails:te,stats:j});return}L.live&&me&&(me.getCacheAge&&(L.ageHeader=me.getCacheAge()||0),(!me.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(je){case Ht.MANIFEST:case Ht.LEVEL:we.trigger(O.LEVEL_LOADED,{details:L,level:jr||0,id:it||0,stats:j,networkDetails:te,deliveryDirectives:hr});break;case Ht.AUDIO_TRACK:we.trigger(O.AUDIO_TRACK_LOADED,{details:L,id:it||0,groupId:Rt||"",stats:j,networkDetails:te,deliveryDirectives:hr});break;case Ht.SUBTITLE_TRACK:we.trigger(O.SUBTITLE_TRACK_LOADED,{details:L,id:it||0,groupId:Rt||"",stats:j,networkDetails:te,deliveryDirectives:hr});break}}}]),he}();function Rn(he,$){var L;try{L=new Event("addtrack")}catch(K){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=he,$.dispatchEvent(L)}function vn(he,$){var L=he.mode;if(L==="disabled"&&(he.mode="hidden"),he.cues&&!he.cues.getCueById($.id))try{if(he.addCue($),!he.cues.getCueById($.id))throw new Error("addCue is failed for: ".concat($))}catch(j){H.debug("[texttrack-utils]: ".concat(j));try{var K=new self.TextTrackCue($.startTime,$.endTime,$.text);K.id=$.id,he.addCue(K)}catch(J){H.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(J))}}L==="disabled"&&(he.mode=L)}function Un(he){var $=he.mode;if($==="disabled"&&(he.mode="hidden"),he.cues)for(var L=he.cues.length;L--;)he.removeCue(he.cues[L]);$==="disabled"&&(he.mode=$)}function hn(he,$,L,K){var j=he.mode;if(j==="disabled"&&(he.mode="hidden"),he.cues&&he.cues.length>0)for(var J=Kn(he.cues,$,L),te=0;te<J.length;te++)(!K||K(J[te]))&&he.removeCue(J[te]);j==="disabled"&&(he.mode=j)}function Wr(he,$){if($<he[0].startTime)return 0;var L=he.length-1;if($>he[L].endTime)return-1;for(var K=0,j=L;K<=j;){var J=Math.floor((j+K)/2);if($<he[J].startTime)j=J-1;else if($>he[J].startTime&&K<L)K=J+1;else return J}return he[K].startTime-$<$-he[j].startTime?K:j}function Kn(he,$,L){var K=[],j=Wr(he,$);if(j>-1)for(var J=j,te=he.length;J<te;J++){var me=he[J];if(me.startTime>=$&&me.endTime<=L)K.push(me);else if(me.startTime>L)return K}return K}var ei={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},Si=.25;function Vr(){return typeof self=="undefined"?void 0:self.VTTCue||self.TextTrackCue}function fn(he,$,L,K,j){var J=new he($,L,"");try{J.value=K,j&&(J.type=j)}catch(te){J=new he($,L,JSON.stringify(j?b({type:j},K):K))}return J}var kn=function(){var he=Vr();try{he&&new he(0,Number.POSITIVE_INFINITY,"")}catch($){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function It(he,$){return he.getTime()/1e3-$}function yt(he){return Uint8Array.from(he.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var xt=function(){function he($){Object(r.a)(this,he),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=$,this._registerListeners()}return Object(s.a)(he,[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var L=this.hls;L.on(O.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(O.MANIFEST_LOADING,this.onManifestLoading,this),L.on(O.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(O.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(O.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(O.MANIFEST_LOADING,this.onManifestLoading,this),L.off(O.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(O.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(O.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,K){this.media=K.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Un(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(L){var K=this.getID3Track(L.textTracks);return K.mode="hidden",K}},{key:"getID3Track",value:function(L){if(!this.media)return;for(var K=0;K<L.length;K++){var j=L[K];if(j.kind==="metadata"&&j.label==="id3")return Rn(j,this.media),j}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,K){if(!this.media)return;var j=this.hls.config,J=j.enableEmsgMetadataCues,te=j.enableID3MetadataCues;if(!J&&!te)return;var me=K.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var we=Vr();if(!we)return;for(var je=0;je<me.length;je++){var qe=me[je].type;if(qe===ei.emsg&&!J||!te)continue;var it=Sr(me[je].data);if(it){var Rt=me[je].pts,hr=Rt+me[je].duration;hr>kn&&(hr=kn);var tr=hr-Rt;tr<=0&&(hr=Rt+Si);for(var Dr=0;Dr<it.length;Dr++){var jr=it[Dr];if(!ir(jr)){this.updateId3CueEnds(Rt,qe);var Sn=fn(we,Rt,hr,jr,qe);Sn&&this.id3Track.addCue(Sn)}}}}}},{key:"updateId3CueEnds",value:function(L,K){var j,J=(j=this.id3Track)==null?void 0:j.cues;if(J)for(var te=J.length;te--;){var me=J[te];me.type===K&&me.startTime<L&&me.endTime===kn&&(me.endTime=L)}}},{key:"onBufferFlushing",value:function(L,K){var j=K.startOffset,J=K.endOffset,te=K.type,me=this.id3Track,we=this.hls;if(!we)return;var je=we.config,qe=je.enableEmsgMetadataCues,it=je.enableID3MetadataCues;if(me&&(qe||it)){var Rt;te==="audio"?Rt=function(tr){return tr.type===ei.audioId3&&it}:te==="video"?Rt=function(tr){return tr.type===ei.emsg&&qe}:Rt=function(tr){return tr.type===ei.audioId3&&it||tr.type===ei.emsg&&qe},hn(me,j,J,Rt)}}},{key:"onLevelUpdated",value:function(L,K){var j=this,J=K.details;if(!this.media||!J.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var te=this.dateRangeCuesAppended,me=this.id3Track,we=J.dateRanges,je=Object.keys(we);if(me)for(var qe=Object.keys(te).filter(function(yn){return!je.includes(yn)}),it=function(){var Mn=qe[Rt];Object.keys(te[Mn].cues).forEach(function(si){me.removeCue(te[Mn].cues[si])}),delete te[Mn]},Rt=qe.length;Rt--;)it();var hr=J.fragments[J.fragments.length-1];if(je.length===0||!E(hr==null?void 0:hr.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var tr=hr.programDateTime/1e3-hr.start,Dr=Vr(),jr=function(){var Mn=je[Sn],si=we[Mn],Xi=te[Mn],Li=(Xi==null?void 0:Xi.cues)||{},Pi=(Xi==null?void 0:Xi.durationKnown)||!1,Aa=It(si.startDate,tr),Na=kn,Sa=si.endDate;if(Sa)Na=It(Sa,tr),Pi=!0;else if(si.endOnNext&&!Pi){var aa=je.reduce(function(ht,Vt){var Cr=we[Vt];return Cr.class===si.class&&Cr.id!==Vt&&Cr.startDate>si.startDate&&ht.push(Cr),ht},[]).sort(function(ht,Vt){return ht.startDate.getTime()-Vt.startDate.getTime()})[0];aa&&(Na=It(aa.startDate,tr),Pi=!0)}for(var so=Object.keys(si.attr),os=0;os<so.length;os++){var $o=so[os];if(!ee($o))continue;var Bs=Li[$o];if(Bs)Pi&&!Xi.durationKnown&&(Bs.endTime=Na);else if(Dr){var ve=si.attr[$o];q($o)&&(ve=yt(ve));var Ke=fn(Dr,Aa,Na,{key:$o,data:ve},ei.dateRange);Ke&&(Ke.id=Mn,j.id3Track.addCue(Ke),Li[$o]=Ke)}}te[Mn]={cues:Li,dateRange:si,durationKnown:Pi}},Sn=0;Sn<je.length;Sn++)jr()}}]),he}(),Tt=function(){function he($){var L=this;Object(r.a)(this,he),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 L.timeupdate()},this.hls=$,this.config=$.config,this.registerListeners()}return Object(s.a)(he,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var L=this.config,K=this.levelDetails;return L.liveMaxLatencyDuration!==void 0?L.liveMaxLatencyDuration:K?L.liveMaxLatencyDurationCount*K.targetduration:0}},{key:"targetLatency",get:function(){var L=this.levelDetails;if(L===null)return null;var K=L.holdBack,j=L.partHoldBack,J=L.targetduration,te=this.config,me=te.liveSyncDuration,we=te.liveSyncDurationCount,je=te.lowLatencyMode,qe=this.hls.userConfig,it=je&&j||K;(qe.liveSyncDuration||qe.liveSyncDurationCount||it===0)&&(it=me!==void 0?me:we*J);var Rt=J,hr=1;return it+Math.min(this.stallCount*hr,Rt)}},{key:"liveSyncPosition",get:function(){var L=this.estimateLiveEdge(),K=this.targetLatency,j=this.levelDetails;if(L===null||K===null||j===null)return null;var J=j.edge,te=L-K-this.edgeStalled,me=J-j.totalduration,we=J-(this.config.lowLatencyMode&&j.partTarget||j.targetduration);return Math.min(Math.max(me,te),we)}},{key:"drift",get:function(){var L=this.levelDetails;return L===null?1:L.drift}},{key:"edgeStalled",get:function(){var L=this.levelDetails;if(L===null)return 0;var K=(this.config.lowLatencyMode&&L.partTarget||L.targetduration)*3;return Math.max(L.age-K,0)}},{key:"forwardBufferLength",get:function(){var L=this.media,K=this.levelDetails;if(!L||!K)return 0;var j=L.buffered.length;return(j?L.buffered.end(j-1):K.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(O.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(O.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(O.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(O.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(O.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(O.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(O.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(L,K){this.media=K.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(L,K){var j=K.details;this.levelDetails=j,j.advanced&&this.timeupdate(),!j.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,K){var j;if(K.details!==R.BUFFER_STALLED_ERROR)return;this.stallCount++,(j=this.levelDetails)!=null&&j.live&&H.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,K=this.levelDetails;if(!L||!K)return;this.currentTime=L.currentTime;var j=this.computeLatency();if(j===null)return;this._latency=j;var J=this.config,te=J.lowLatencyMode,me=J.maxLiveSyncPlaybackRate;if(!te||me===1)return;var we=this.targetLatency;if(we===null)return;var je=j-we,qe=Math.min(this.maxLatency,we+K.targetduration),it=je<qe;if(K.live&&it&&je>.05&&this.forwardBufferLength>1){var Rt=Math.min(2,Math.max(1,me)),hr=Math.round(2/(1+Math.exp(-.75*je-this.edgeStalled))*20)/20;L.playbackRate=Math.min(Rt,Math.max(1,hr))}else L.playbackRate!==1&&L.playbackRate!==0&&(L.playbackRate=1)}},{key:"estimateLiveEdge",value:function(){var L=this.levelDetails;return L===null?null:L.edge+L.age}},{key:"computeLatency",value:function(){var L=this.estimateLiveEdge();return L===null?null:L-this.currentTime}}]),he}(),Lt=["NONE","TYPE-0","TYPE-1",null],_t={No:"",Yes:"YES",v2:"v2"};function Xt(he,$){var L=he.canSkipUntil,K=he.canSkipDateRanges,j=he.endSN,J=$!==void 0?$-j:0;return L&&J<L?K?_t.v2:_t.Yes:_t.No}var er=function(){function he($,L,K){Object(r.a)(this,he),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=$,this.part=L,this.skip=K}return Object(s.a)(he,[{key:"addDirectives",value:function(L){var K=new self.URL(L);return this.msn!==void 0&&K.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&K.searchParams.set("_HLS_part",this.part.toString()),this.skip&&K.searchParams.set("_HLS_skip",this.skip),K.href}}]),he}(),nr=function(){function he($){Object(r.a)(this,he),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=[$.url],this._attrs=[$.attrs],this.bitrate=$.bitrate,$.details&&(this.details=$.details),this.id=$.id||0,this.name=$.name,this.width=$.width||0,this.height=$.height||0,this.audioCodec=$.audioCodec,this.videoCodec=$.videoCodec,this.unknownCodecs=$.unknownCodecs,this.codecSet=[$.videoCodec,$.audioCodec].filter(function(L){return L}).join(",").replace(/\.[^.,]+/g,"")}return Object(s.a)(he,[{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(L){var K=L%this.url.length;this._urlId!==K&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=K)}},{key:"audioGroupId",get:function(){var L;return(L=this.audioGroupIds)==null?void 0:L[this.urlId]}},{key:"textGroupId",get:function(){var L;return(L=this.textGroupIds)==null?void 0:L[this.urlId]}},{key:"addFallback",value:function(L){this.url.push(L.url),this._attrs.push(L.attrs)}}]),he}();function br(he,$){var L=$.startPTS;if(E(L)){var K=0,j;$.sn>he.sn?(K=L-he.start,j=he):(K=he.start-L,j=$),j.duration!==K&&(j.duration=K)}else if($.sn>he.sn){var J=he.cc===$.cc;J&&he.minEndPTS?$.start=he.start+(he.minEndPTS-he.start):$.start=he.start+he.duration}else $.start=Math.max(he.start-$.duration,0)}function On(he,$,L,K,j,J){var te=K-L;te<=0&&(H.warn("Fragment should have a positive duration",$),K=L+$.duration,J=j+$.duration);var me=L,we=K,je=$.startPTS,qe=$.endPTS;if(E(je)){var it=Math.abs(je-L);E($.deltaPTS)?$.deltaPTS=Math.max(it,$.deltaPTS):$.deltaPTS=it,me=Math.max(L,je),L=Math.min(L,je),j=Math.min(j,$.startDTS),we=Math.min(K,qe),K=Math.max(K,qe),J=Math.max(J,$.endDTS)}var Rt=L-$.start;$.start!==0&&($.start=L),$.duration=K-$.start,$.startPTS=L,$.maxStartPTS=me,$.startDTS=j,$.endPTS=K,$.minEndPTS=we,$.endDTS=J;var hr=$.sn;if(!he||hr<he.startSN||hr>he.endSN)return 0;var tr,Dr=hr-he.startSN,jr=he.fragments;for(jr[Dr]=$,tr=Dr;tr>0;tr--)br(jr[tr],jr[tr-1]);for(tr=Dr;tr<jr.length-1;tr++)br(jr[tr],jr[tr+1]);return he.fragmentHint&&br(jr[jr.length-1],he.fragmentHint),he.PTSKnown=he.alignedSliding=!0,Rt}function bn(he,$){for(var L=null,K=he.fragments,j=K.length-1;j>=0;j--){var J=K[j].initSegment;if(J){L=J;break}}he.fragmentHint&&delete he.fragmentHint.endPTS;var te=0,me;if(_r(he,$,function(tr,Dr){tr.relurl&&(te=tr.cc-Dr.cc),E(tr.startPTS)&&E(tr.endPTS)&&(Dr.start=Dr.startPTS=tr.startPTS,Dr.startDTS=tr.startDTS,Dr.maxStartPTS=tr.maxStartPTS,Dr.endPTS=tr.endPTS,Dr.endDTS=tr.endDTS,Dr.minEndPTS=tr.minEndPTS,Dr.duration=tr.endPTS-tr.startPTS,Dr.duration&&(me=Dr),$.PTSKnown=$.alignedSliding=!0),Dr.elementaryStreams=tr.elementaryStreams,Dr.loader=tr.loader,Dr.stats=tr.stats,Dr.urlId=tr.urlId,tr.initSegment&&(Dr.initSegment=tr.initSegment,L=tr.initSegment)}),L){var we=$.fragmentHint?$.fragments.concat($.fragmentHint):$.fragments;we.forEach(function(tr){var Dr;(!tr.initSegment||tr.initSegment.relurl===((Dr=L)==null?void 0:Dr.relurl))&&(tr.initSegment=L)})}if($.skippedSegments)if($.deltaUpdateFailed=$.fragments.some(function(tr){return!tr}),$.deltaUpdateFailed){H.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var je=$.skippedSegments;je--;)$.fragments.shift();$.startSN=$.fragments[0].sn,$.startCC=$.fragments[0].cc}else $.canSkipDateRanges&&($.dateRanges=qn(he.dateRanges,$.dateRanges,$.recentlyRemovedDateranges));var qe=$.fragments;if(te){H.warn("discontinuity sliding from playlist, take drift into account");for(var it=0;it<qe.length;it++)qe[it].cc+=te}$.skippedSegments&&($.startCC=$.fragments[0].cc),an(he.partList,$.partList,function(tr,Dr){Dr.elementaryStreams=tr.elementaryStreams,Dr.stats=tr.stats}),me?On($,me,me.startPTS,me.endPTS,me.startDTS,me.endDTS):mn(he,$),qe.length&&($.totalduration=$.edge-qe[0].start),$.driftStartTime=he.driftStartTime,$.driftStart=he.driftStart;var Rt=$.advancedDateTime;if($.advanced&&Rt){var hr=$.edge;$.driftStart||($.driftStartTime=Rt,$.driftStart=hr),$.driftEndTime=Rt,$.driftEnd=hr}else $.driftEndTime=he.driftEndTime,$.driftEnd=he.driftEnd,$.advancedDateTime=he.advancedDateTime}function qn(he,$,L){var K=x({},he);return L&&L.forEach(function(j){delete K[j]}),Object.keys($).forEach(function(j){var J=new se($[j].attr,K[j]);J.isValid?K[j]=J:H.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify($[j].attr),'"'))}),K}function an(he,$,L){if(he&&$)for(var K=0,j=0,J=he.length;j<=J;j++){var te=he[j],me=$[j+K];te&&me&&te.index===me.index&&te.fragment.sn===me.fragment.sn?L(te,me):K--}}function _r(he,$,L){for(var K=$.skippedSegments,j=Math.max(he.startSN,$.startSN)-$.startSN,J=(he.fragmentHint?1:0)+(K?$.endSN:Math.min(he.endSN,$.endSN))-$.startSN,te=$.startSN-he.startSN,me=$.fragmentHint?$.fragments.concat($.fragmentHint):$.fragments,we=he.fragmentHint?he.fragments.concat(he.fragmentHint):he.fragments,je=j;je<=J;je++){var qe=we[te+je],it=me[je];K&&!it&&je<K&&(it=$.fragments[je]=qe),qe&&it&&L(qe,it)}}function mn(he,$){var L=$.startSN+$.skippedSegments-he.startSN,K=he.fragments;if(L<0||L>=K.length)return;In($,K[L].start)}function In(he,$){if($){for(var L=he.fragments,K=he.skippedSegments;K<L.length;K++)L[K].start+=$;he.fragmentHint&&(he.fragmentHint.start+=$)}}function Wn(he){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*he.targetduration;if(he.updated){var K=he.fragments,j=4;if(K.length&&L*j>$){var J=K[K.length-1].duration*1e3;J<L&&(L=J)}}else L/=2;return Math.round(L)}function Jn(he,$,L){if(!(he!=null&&he.details))return null;var K=he.details,j=K.fragments[$-K.startSN];return j||(j=K.fragmentHint,j&&j.sn===$?j:$<K.startSN&&L&&L.sn===$?L:null)}function Ei(he,$,L){var K;return he!=null&&he.details?yi((K=he.details)==null?void 0:K.partList,$,L):null}function yi(he,$,L){if(he)for(var K=he.length;K--;){var j=he[K];if(j.index===L&&j.fragment.sn===$)return j}return null}function mi(he){switch(he.details){case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_TIMEOUT:case R.LEVEL_LOAD_TIMEOUT:case R.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Vi(he,$){var L=mi($);return he.default["".concat(L?"timeout":"error","Retry")]}function la(he,$){var L=he.backoff==="linear"?1:Math.pow(2,$);return Math.min(L*he.retryDelayMs,he.maxRetryDelayMs)}function Gi(he){return b(b({},he),{errorRetry:null,timeoutRetry:null})}function ia(he,$,L,K){return!!he&&$<he.maxNumRetry&&($i(K)||!!L)}function $i(he){return he===0&&navigator.onLine===!1||!!he&&(he<400||he>499)}var xn={search:function($,L){for(var K=0,j=$.length-1,J=null,te=null;K<=j;){J=(K+j)/2|0,te=$[J];var me=L(te);if(me>0)K=J+1;else if(me<0)j=J-1;else return te}return null}};function Ti(he,$,L){if($===null||!Array.isArray(he)||!he.length||!E($))return null;var K=he[0].programDateTime;if($<(K||0))return null;var j=he[he.length-1].endProgramDateTime;if($>=(j||0))return null;L=L||0;for(var J=0;J<he.length;++J){var te=he[J];if(qi($,L,te))return te}return null}function Ji(he,$){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,j=null;if(he?j=$[he.sn-$[0].sn+1]||null:L===0&&$[0].start===0&&(j=$[0]),j&&Wi(L,K,j)===0)return j;var J=xn.search($,Wi.bind(null,L,K));return J&&(J!==he||!j)?J:j}function Wi(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2?arguments[2]:void 0;if(L.start<=he&&L.start+L.duration>he)return 0;var K=Math.min($,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-K<=he?1:L.start-K>he&&L.start?-1:0}function qi(he,$,L){var K=Math.min($,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,j=L.endProgramDateTime||0;return j-K>he}function Ir(he,$){return xn.search(he,function(L){return L.cc<$?1:L.cc>$?-1:0})}var ar=3e5,nn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Gt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},wr=function(){function he($){Object(r.a)(this,he),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=$,this.log=H.log.bind(H,"[info]:"),this.warn=H.warn.bind(H,"[warning]:"),this.error=H.error.bind(H,"[error]:"),this.registerListeners()}return Object(s.a)(he,[{key:"registerListeners",value:function(){var L=this.hls;L.on(O.ERROR,this.onError,this),L.on(O.MANIFEST_LOADING,this.onManifestLoading,this),L.on(O.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(O.ERROR,this.onError,this),L.off(O.ERROR,this.onErrorOut,this),L.off(O.MANIFEST_LOADING,this.onManifestLoading,this),L.off(O.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}},{key:"startLoad",value:function(L){this.playlistError=0}},{key:"stopLoad",value:function(){}},{key:"getVariantLevelIndex",value:function(L){return(L==null?void 0:L.type)===Er.MAIN?L.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onLevelUpdated",value:function(){this.playlistError=0}},{key:"onError",value:function(L,K){var j,J;if(K.fatal)return;var te=this.hls,me=K.context;switch(K.details){case R.FRAG_LOAD_ERROR:case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_ERROR:case R.KEY_LOAD_TIMEOUT:K.errorAction=this.getFragRetryOrSwitchAction(K);return;case R.FRAG_PARSING_ERROR:if((j=K.frag)!=null&&j.gap){K.errorAction={action:nn.DoNothing,flags:Gt.None};return}case R.FRAG_GAP:case R.FRAG_DECRYPT_ERROR:{K.errorAction=this.getFragRetryOrSwitchAction(K),K.errorAction.action=nn.SendAlternateToPenaltyBox;return}case R.LEVEL_EMPTY_ERROR:case R.LEVEL_PARSING_ERROR:{var we,je,qe=K.parent===Er.MAIN?K.level:te.loadLevel;K.details===R.LEVEL_EMPTY_ERROR&&!!((we=K.context)!=null&&(je=we.levelDetails)!=null&&je.live)?K.errorAction=this.getPlaylistRetryOrSwitchAction(K,qe):(K.levelRetry=!1,K.errorAction=this.getLevelSwitchAction(K,qe))}return;case R.LEVEL_LOAD_ERROR:case R.LEVEL_LOAD_TIMEOUT:typeof(me==null?void 0:me.level)=="number"&&(K.errorAction=this.getPlaylistRetryOrSwitchAction(K,me.level));return;case R.AUDIO_TRACK_LOAD_ERROR:case R.AUDIO_TRACK_LOAD_TIMEOUT:case R.SUBTITLE_LOAD_ERROR:case R.SUBTITLE_TRACK_LOAD_TIMEOUT:if(me){var it=te.levels[te.loadLevel];if(it&&(me.type===Ht.AUDIO_TRACK&&me.groupId===it.audioGroupId||me.type===Ht.SUBTITLE_TRACK&&me.groupId===it.textGroupId)){K.errorAction=this.getPlaylistRetryOrSwitchAction(K,te.loadLevel),K.errorAction.action=nn.SendAlternateToPenaltyBox,K.errorAction.flags=Gt.MoveAllAlternatesMatchingHost;return}}return;case R.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var Rt=te.levels[te.loadLevel],hr=Rt==null?void 0:Rt.attrs["HDCP-LEVEL"];hr&&(K.errorAction={action:nn.SendAlternateToPenaltyBox,flags:Gt.MoveAllAlternatesMatchingHDCP,hdcpLevel:hr})}return;case R.BUFFER_ADD_CODEC_ERROR:case R.REMUX_ALLOC_ERROR:K.errorAction=this.getLevelSwitchAction(K,(J=K.level)!=null?J:te.loadLevel);return;case R.INTERNAL_EXCEPTION:case R.BUFFER_APPENDING_ERROR:case R.BUFFER_APPEND_ERROR:case R.BUFFER_FULL_ERROR:case R.LEVEL_SWITCH_ERROR:case R.BUFFER_STALLED_ERROR:case R.BUFFER_SEEK_OVER_HOLE:case R.BUFFER_NUDGE_ON_STALL:K.errorAction={action:nn.DoNothing,flags:Gt.None};return}if(K.type===F.KEY_SYSTEM_ERROR){var tr=this.getVariantLevelIndex(K.frag);K.levelRetry=!1,K.errorAction=this.getLevelSwitchAction(K,tr);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(L,K){var j,J=this.hls,te=Vi(J.config.playlistLoadPolicy,L),me=this.playlistError++,we=(j=L.response)==null?void 0:j.code,je=ia(te,me,mi(L),we);if(je)return{action:nn.RetryRequest,flags:Gt.None,retryConfig:te,retryCount:me};var qe=this.getLevelSwitchAction(L,K);return te&&(qe.retryConfig=te,qe.retryCount=me),qe}},{key:"getFragRetryOrSwitchAction",value:function(L){var K=this.hls,j=this.getVariantLevelIndex(L.frag),J=K.levels[j],te=K.config,me=te.fragLoadPolicy,we=te.keyLoadPolicy,je=Vi(L.details.startsWith("key")?we:me,L),qe=K.levels.reduce(function(Dr,jr){return Dr+jr.fragmentError},0);if(J){var it;L.details!==R.FRAG_GAP&&J.fragmentError++;var Rt=(it=L.response)==null?void 0:it.code,hr=ia(je,qe,mi(L),Rt);if(hr)return{action:nn.RetryRequest,flags:Gt.None,retryConfig:je,retryCount:qe}}var tr=this.getLevelSwitchAction(L,j);return je&&(tr.retryConfig=je,tr.retryCount=qe),tr}},{key:"getLevelSwitchAction",value:function(L,K){var j=this.hls;K==null&&(K=j.loadLevel);var J=this.hls.levels[K];if(J&&(J.loadError++,j.autoLevelEnabled)){for(var te,me,we=-1,je=j.levels,qe=j.loadLevel,it=j.minAutoLevel,Rt=j.maxAutoLevel,hr=(te=L.frag)==null?void 0:te.type,tr=(me=L.context)!=null?me:{},Dr=tr.type,jr=tr.groupId,Sn=je.length;Sn--;){var yn=(Sn+qe)%je.length;if(yn!==qe&&yn>=it&&yn<=Rt&&je[yn].loadError===0){var Mn=je[yn];if(L.details===R.FRAG_GAP&&L.frag){var si=je[yn].details;if(si){var Xi=Ji(L.frag,si.fragments,L.frag.start);if(Xi!=null&&Xi.gap)continue}}else{if(Dr===Ht.AUDIO_TRACK&&jr===Mn.audioGroupId||Dr===Ht.SUBTITLE_TRACK&&jr===Mn.textGroupId)continue;if(hr===Er.AUDIO&&J.audioGroupId===Mn.audioGroupId||hr===Er.SUBTITLE&&J.textGroupId===Mn.textGroupId)continue}we=yn;break}}if(we>-1&&j.loadLevel!==we)return L.levelRetry=!0,this.playlistError=0,{action:nn.SendAlternateToPenaltyBox,flags:Gt.None,nextAutoLevel:we}}return{action:nn.SendAlternateToPenaltyBox,flags:Gt.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(L,K){var j;switch((j=K.errorAction)==null?void 0:j.action){case nn.DoNothing:break;case nn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(K),!K.errorAction.resolved&&K.details!==R.FRAG_GAP&&(K.fatal=!0);break}if(K.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(L){var K=this.hls,j=L.errorAction;if(!j)return;var J=j.flags,te=j.hdcpLevel,me=j.nextAutoLevel;switch(J){case Gt.None:this.switchLevel(L,me);break;case Gt.MoveAllAlternatesMatchingHost:j.resolved||(j.resolved=this.redundantFailover(L));break;case Gt.MoveAllAlternatesMatchingHDCP:te&&(K.maxHdcpLevel=Lt[Lt.indexOf(te)-1],j.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(K.maxHdcpLevel,'" or lower'));break}j.resolved||this.switchLevel(L,me)}},{key:"switchLevel",value:function(L,K){K!==void 0&&L.errorAction&&(this.warn("switching to level ".concat(K," after ").concat(L.details)),this.hls.nextAutoLevel=K,L.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},{key:"redundantFailover",value:function(L){var K=this,j=this.hls,J=this.penalizedRenditions,te=L.parent===Er.MAIN?L.level:j.loadLevel,me=j.levels[te],we=me.url.length,je=L.frag?L.frag.urlId:me.urlId;me.urlId===je&&(!L.frag||me.details)&&this.penalizeRendition(me,L);for(var qe=function(){var tr=(je+Rt)%we,Dr=J[tr];if(!Dr||Pr(Dr,L,J[je]))return K.warn("Switching to Redundant Stream ".concat(tr+1,"/").concat(we,': "').concat(me.url[tr],'" after ').concat(L.details)),K.playlistError=0,j.levels.forEach(function(jr){jr.urlId=tr}),j.nextLoadLevel=te,{v:!0}},it,Rt=1;Rt<we;Rt++)if(it=qe(),it)return it.v;return!1}},{key:"penalizeRendition",value:function(L,K){var j=this.penalizedRenditions,J=j[L.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};J.lastErrorPerfMs=performance.now(),J.errors.push(K),J.details=L.details,j[L.urlId]=J}}]),he}();function Pr(he,$,L){if(performance.now()-he.lastErrorPerfMs>ar)return!0;var K=he.details;if($.details===R.FRAG_GAP&&K&&$.frag){var j=$.frag.start,J=Ji(null,K.fragments,j);if(J&&!J.gap)return!0}if(L&&he.errors.length<L.errors.length){var te=he.errors[he.errors.length-1];if(K&&te.frag&&$.frag&&Math.abs(te.frag.start-$.frag.start)>K.targetduration*3)return!0}return!1}var Jr=function(){function he($,L){Object(r.a)(this,he),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=H.log.bind(H,"".concat(L,":")),this.warn=H.warn.bind(H,"".concat(L,":")),this.hls=$}return Object(s.a)(he,[{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(L,K){var j=K==null?void 0:K.renditionReports;if(j){for(var J=-1,te=0;te<j.length;te++){var me=j[te],we=void 0;try{we=new self.URL(me.URI,K.url).href}catch(hr){H.warn("Could not construct new URL for Rendition Report: ".concat(hr)),we=me.URI||""}if(we===L){J=te;break}else we===L.substring(0,we.length)&&(J=te)}if(J!==-1){var je=j[J],qe=parseInt(je["LAST-MSN"])||(K==null?void 0:K.lastPartSn),it=parseInt(je["LAST-PART"])||(K==null?void 0:K.lastPartIndex);if(this.hls.config.lowLatencyMode){var Rt=Math.min(K.age-K.partTarget,K.targetduration);it>=0&&Rt>K.partTarget&&(it+=1)}return new er(qe,it>=0?it:void 0,_t.No)}}}},{key:"loadPlaylist",value:function(L){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}},{key:"shouldLoadPlaylist",value:function(L){return this.canLoad&&!!L&&!!L.url&&(!L.details||L.details.live)}},{key:"shouldReloadPlaylist",value:function(L){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(L)}},{key:"playlistLoaded",value:function(L,K,j){var J=this,te=K.details,me=K.stats,we=self.performance.now(),je=me.loading.first?Math.max(0,we-me.loading.first):0;if(te.advancedDateTime=Date.now()-je,te.live||j!=null&&j.live){if(te.reloaded(j),j&&this.log("live playlist ".concat(L," ").concat(te.advanced?"REFRESHED "+te.lastPartSn+"-"+te.lastPartIndex:te.updated?"UPDATED":"MISSED")),j&&te.fragments.length>0&&bn(j,te),!this.canLoad||!te.live)return;var qe,it=void 0,Rt=void 0;if(te.canBlockReload&&te.endSN&&te.advanced){var hr=this.hls.config.lowLatencyMode,tr=te.lastPartSn,Dr=te.endSN,jr=te.lastPartIndex,Sn=jr!==-1,yn=tr===Dr,Mn=hr?0:jr;Sn?(it=yn?Dr+1:tr,Rt=yn?Mn:jr+1):it=Dr+1;var si=te.age,Xi=si+te.ageHeader,Li=Math.min(Xi-te.partTarget,te.targetduration*1.5);if(Li>0){if(j&&Li>j.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(j.tuneInGoal," to: ").concat(Li," with playlist age: ").concat(te.age)),Li=0;else{var Pi=Math.floor(Li/te.targetduration);if(it+=Pi,Rt!==void 0){var Aa=Math.round(Li%te.targetduration/te.partTarget);Rt+=Aa}this.log("CDN Tune-in age: ".concat(te.ageHeader,"s last advanced ").concat(si.toFixed(2),"s goal: ").concat(Li," skip sn ").concat(Pi," to part ").concat(Rt))}te.tuneInGoal=Li}if(qe=this.getDeliveryDirectives(te,K.deliveryDirectives,it,Rt),hr||!yn){this.loadPlaylist(qe);return}}else(te.canBlockReload||te.canSkipUntil)&&(qe=this.getDeliveryDirectives(te,K.deliveryDirectives,it,Rt));var Na=this.hls.mainForwardBufferInfo,Sa=Na?Na.end-Na.len:0,aa=(te.edge-Sa)*1e3,so=Wn(te,aa);te.updated&&we>this.requestScheduled+so&&(this.requestScheduled=me.loading.start),it!==void 0&&te.canBlockReload?this.requestScheduled=me.loading.first+so-(te.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+so<we?this.requestScheduled=we:this.requestScheduled-we<=0&&(this.requestScheduled+=so);var os=this.requestScheduled-we;os=Math.max(0,os),this.log("reload live playlist ".concat(L," in ").concat(Math.round(os)," ms")),this.timer=self.setTimeout(function(){return J.loadPlaylist(qe)},os)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(L,K,j,J){var te=Xt(L,j);return K!=null&&K.skip&&L.deltaUpdateFailed&&(j=K.msn,J=K.part,te=_t.No),new er(j,J,te)}},{key:"checkRetry",value:function(L){var K=this,j=L.details,J=mi(L),te=L.errorAction,me=te||{},we=me.action,je=me.retryCount,qe=je===void 0?0:je,it=me.retryConfig,Rt=!!te&&!!it&&(we===nn.RetryRequest||!te.resolved&&we===nn.SendAlternateToPenaltyBox);if(Rt){var hr;if(this.requestScheduled=-1,qe>=it.maxNumRetry)return!1;if(J&&(hr=L.context)!=null&&hr.deliveryDirectives)this.warn("Retrying playlist loading ".concat(qe+1,"/").concat(it.maxNumRetry,' after "').concat(j,'" without delivery-directives')),this.loadPlaylist();else{var tr=la(it,qe);this.timer=self.setTimeout(function(){return K.loadPlaylist()},tr),this.warn("Retrying playlist loading ".concat(qe+1,"/").concat(it.maxNumRetry,' after "').concat(j,'" in ').concat(tr,"ms"))}L.levelRetry=!0,te.resolved=!0}return Rt}}]),he}(),wn,bt=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j){var J;return Object(r.a)(this,L),J=$.call(this,K,"[level-controller]"),J._levels=[],J._firstLevel=-1,J._startLevel=void 0,J.currentLevel=null,J.currentLevelIndex=-1,J.manualLevelIndex=-1,J.steering=void 0,J.onParsedComplete=void 0,J.steering=j,J._registerListeners(),J}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var j=this.hls;j.on(O.MANIFEST_LOADING,this.onManifestLoading,this),j.on(O.MANIFEST_LOADED,this.onManifestLoaded,this),j.on(O.LEVEL_LOADED,this.onLevelLoaded,this),j.on(O.LEVELS_UPDATED,this.onLevelsUpdated,this),j.on(O.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),j.on(O.FRAG_LOADED,this.onFragLoaded,this),j.on(O.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var j=this.hls;j.off(O.MANIFEST_LOADING,this.onManifestLoading,this),j.off(O.MANIFEST_LOADED,this.onManifestLoaded,this),j.off(O.LEVEL_LOADED,this.onLevelLoaded,this),j.off(O.LEVELS_UPDATED,this.onLevelsUpdated,this),j.off(O.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),j.off(O.FRAG_LOADED,this.onFragLoaded,this),j.off(O.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"startLoad",value:function(){var j=this._levels;j.forEach(function(J){J.loadError=0,J.fragmentError=0}),Object(t.a)(Object(m.a)(L.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(j,J){this.resetLevels()}},{key:"onManifestLoaded",value:function(j,J){var te=[],me={},we;J.levels.forEach(function(je){var qe,it=je.attrs;((qe=je.audioCodec)==null?void 0:qe.indexOf("mp4a.40.34"))!==-1&&(wn||(wn=/chrome|firefox/i.test(navigator.userAgent)),wn&&(je.audioCodec=void 0));var Rt=it.AUDIO,hr=it.CODECS,tr=it["FRAME-RATE"],Dr=it["PATHWAY-ID"],jr=it.RESOLUTION,Sn=it.SUBTITLES,yn="".concat(Dr||".","-"),Mn="".concat(yn).concat(je.bitrate,"-").concat(jr,"-").concat(tr,"-").concat(hr);we=me[Mn],we?we.addFallback(je):(we=new nr(je),me[Mn]=we,te.push(we)),mr(we,"audio",Rt),mr(we,"text",Sn)}),this.filterAndSortMediaOptions(te,J)}},{key:"filterAndSortMediaOptions",value:function(j,J){var te=this,me=[],we=[],je=!1,qe=!1,it=!1,Rt=j.filter(function(Mn){var si=Mn.audioCodec,Xi=Mn.videoCodec,Li=Mn.width,Pi=Mn.height,Aa=Mn.unknownCodecs;return je||(je=!!(Li&&Pi)),qe||(qe=!!Xi),it||(it=!!si),!(Aa!=null&&Aa.length)&&(!si||Vn(si,"audio"))&&(!Xi||Vn(Xi,"video"))});if((je||qe)&&it&&(Rt=Rt.filter(function(Mn){var si=Mn.videoCodec,Xi=Mn.width,Li=Mn.height;return!!si||!!(Xi&&Li)})),Rt.length===0){Promise.resolve().then(function(){if(te.hls){var Mn=new Error("no level with compatible codecs found in manifest");te.hls.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:J.url,error:Mn,reason:Mn.message})}});return}J.audioTracks&&(me=J.audioTracks.filter(function(Mn){return!Mn.audioCodec||Vn(Mn.audioCodec,"audio")}),Ar(me)),J.subtitles&&(we=J.subtitles,Ar(we));var hr=Rt.slice(0);Rt.sort(function(Mn,si){return Mn.attrs["HDCP-LEVEL"]!==si.attrs["HDCP-LEVEL"]?(Mn.attrs["HDCP-LEVEL"]||"")>(si.attrs["HDCP-LEVEL"]||"")?1:-1:Mn.bitrate!==si.bitrate?Mn.bitrate-si.bitrate:Mn.attrs["FRAME-RATE"]!==si.attrs["FRAME-RATE"]?Mn.attrs.decimalFloatingPoint("FRAME-RATE")-si.attrs.decimalFloatingPoint("FRAME-RATE"):Mn.attrs.SCORE!==si.attrs.SCORE?Mn.attrs.decimalFloatingPoint("SCORE")-si.attrs.decimalFloatingPoint("SCORE"):je&&Mn.height!==si.height?Mn.height-si.height:0});var tr=hr[0];if(this.steering&&(Rt=this.steering.filterParsedLevels(Rt),Rt.length!==hr.length)){for(var Dr=0;Dr<hr.length;Dr++)if(hr[Dr].pathwayId===Rt[0].pathwayId){tr=hr[Dr];break}}this._levels=Rt;for(var jr=0;jr<Rt.length;jr++)if(Rt[jr]===tr){this._firstLevel=jr,this.log("manifest loaded, ".concat(Rt.length," level(s) found, first bitrate: ").concat(tr.bitrate));break}var Sn=it&&!qe,yn={levels:Rt,audioTracks:me,subtitleTracks:we,sessionData:J.sessionData,sessionKeys:J.sessionKeys,firstLevel:this._firstLevel,stats:J.stats,audio:it,video:qe,altAudio:!Sn&&me.some(function(Mn){return!!Mn.url})};this.hls.trigger(O.MANIFEST_PARSED,yn),(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(j){var J=this._levels;if(J.length===0)return;if(j<0||j>=J.length){var te=new Error("invalid level idx"),me=j<0;if(this.hls.trigger(O.ERROR,{type:F.OTHER_ERROR,details:R.LEVEL_SWITCH_ERROR,level:j,fatal:me,error:te,reason:te.message}),me)return;j=Math.min(j,J.length-1)}var we=this.currentLevelIndex,je=this.currentLevel,qe=je?je.attrs["PATHWAY-ID"]:void 0,it=J[j],Rt=it.attrs["PATHWAY-ID"];if(this.currentLevelIndex=j,this.currentLevel=it,we===j&&it.details&&je&&qe===Rt)return;this.log("Switching to level ".concat(j).concat(Rt?" with Pathway "+Rt:""," from level ").concat(we).concat(qe?" with Pathway "+qe:""));var hr=x({},it,{level:j,maxBitrate:it.maxBitrate,attrs:it.attrs,uri:it.uri,urlId:it.urlId});delete hr._attrs,delete hr._urlId,this.hls.trigger(O.LEVEL_SWITCHING,hr);var tr=it.details;if(!tr||tr.live){var Dr=this.switchParams(it.uri,je==null?void 0:je.details);this.loadPlaylist(Dr)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(j){this.manualLevelIndex=j,this._startLevel===void 0&&(this._startLevel=j),j!==-1&&(this.level=j)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(j){this._firstLevel=j}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var j=this.hls.config.startLevel;return j!==void 0?j:this._firstLevel}else return this._startLevel},set:function(j){this._startLevel=j}},{key:"onError",value:function(j,J){if(J.fatal||!J.context)return;J.context.type===Ht.LEVEL&&J.context.level===this.level&&this.checkRetry(J)}},{key:"onFragLoaded",value:function(j,J){var te=J.frag;if(te!==void 0&&te.type===Er.MAIN){var me=this._levels[te.level];me!==void 0&&(me.loadError=0)}}},{key:"onLevelLoaded",value:function(j,J){var te,me=J.level,we=J.details,je=this._levels[me];if(!je){var qe;this.warn("Invalid level index ".concat(me)),(qe=J.deliveryDirectives)!=null&&qe.skip&&(we.deltaUpdateFailed=!0);return}me===this.currentLevelIndex?(je.fragmentError===0&&(je.loadError=0),this.playlistLoaded(me,J,je.details)):(te=J.deliveryDirectives)!=null&&te.skip&&(we.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(j,J){var te=this.currentLevel;if(!te)return;var me=this.hls.audioTracks[J.id].groupId;if(te.audioGroupIds&&te.audioGroupId!==me){for(var we=-1,je=0;je<te.audioGroupIds.length;je++)if(te.audioGroupIds[je]===me){we=je;break}we!==-1&&we!==te.urlId&&(te.urlId=we,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(j){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var J=this.currentLevelIndex,te=this.currentLevel;if(te&&this.shouldLoadPlaylist(te)){var me=te.urlId,we=te.uri;if(j)try{we=j.addDirectives(we)}catch(qe){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(qe))}var je=te.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(J).concat((j==null?void 0:j.msn)!==void 0?" at sn "+j.msn+" part "+j.part:""," with").concat(je?" Pathway "+je:""," URI ").concat(me+1,"/").concat(te.url.length," ").concat(we)),this.clearTimer(),this.hls.trigger(O.LEVEL_LOADING,{url:we,level:J,id:me,deliveryDirectives:j||null})}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(j){this.level=j,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=j)}},{key:"removeLevel",value:function(j,J){var te=this,me=function(qe,it){return it!==J},we=this._levels.filter(function(je,qe){return qe!==j?!0:je.url.length>1&&J!==void 0?(je.url=je.url.filter(me),je.audioGroupIds&&(je.audioGroupIds=je.audioGroupIds.filter(me)),je.textGroupIds&&(je.textGroupIds=je.textGroupIds.filter(me)),je.urlId=0,!0):(te.steering&&te.steering.removeLevel(je),!1)});this.hls.trigger(O.LEVELS_UPDATED,{levels:we})}},{key:"onLevelsUpdated",value:function(j,J){var te=J.levels;te.forEach(function(me,we){var je=me.details;je!=null&&je.fragments&&je.fragments.forEach(function(qe){qe.level=we})}),this._levels=te}}]),L}(Jr);function mr(he,$,L){if(!L)return;$==="audio"?(he.audioGroupIds||(he.audioGroupIds=[]),he.audioGroupIds[he.url.length-1]=L):$==="text"&&(he.textGroupIds||(he.textGroupIds=[]),he.textGroupIds[he.url.length-1]=L)}function Ar(he){var $={};he.forEach(function(L){var K=L.groupId||"";L.id=$[K]=$[K]||0,$[K]++})}var Ur={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},un=function(){function he($){Object(r.a)(this,he),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=$,this._registerListeners()}return Object(s.a)(he,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(O.BUFFER_APPENDED,this.onBufferAppended,this),L.on(O.FRAG_BUFFERED,this.onFragBuffered,this),L.on(O.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(O.BUFFER_APPENDED,this.onBufferAppended,this),L.off(O.FRAG_BUFFERED,this.onFragBuffered,this),L.off(O.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(L,K){var j=this.activePartLists[K];if(j)for(var J=j.length;J--;){var te=j[J];if(!te)break;var me=te.end;if(te.start<=L&&me!==null&&L<=me)return te}return this.getBufferedFrag(L,K)}},{key:"getBufferedFrag",value:function(L,K){for(var j=this.fragments,J=Object.keys(j),te=J.length;te--;){var me=j[J[te]];if((me==null?void 0:me.body.type)===K&&me.buffered){var we=me.body;if(we.start<=L&&L<=we.end)return we}}return null}},{key:"detectEvictedFragments",value:function(L,K,j,J){var te=this;this.timeRanges&&(this.timeRanges[L]=K);var me=(J==null?void 0:J.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(we){var je=te.fragments[we];if(!je)return;if(me>=je.body.sn)return;if(!je.buffered&&!je.loaded){je.body.type===j&&te.removeFragment(je.body);return}var qe=je.range[L];if(!qe)return;qe.time.some(function(it){var Rt=!te.isTimeBuffered(it.startPTS,it.endPTS,K);return Rt&&te.removeFragment(je.body),Rt})})}},{key:"detectPartialFragments",value:function(L){var K=this,j=this.timeRanges,J=L.frag,te=L.part;if(!j||J.sn==="initSegment")return;var me=ln(J),we=this.fragments[me];if(!we||we.buffered&&J.gap)return;var je=!J.relurl;if(Object.keys(j).forEach(function(it){var Rt=J.elementaryStreams[it];if(!Rt)return;var hr=j[it],tr=je||Rt.partial===!0;we.range[it]=K.getBufferedTimes(J,te,tr,hr)}),we.loaded=null,Object.keys(we.range).length){we.buffered=!0;var qe=we.body.endList=J.endList||we.body.endList;qe&&(this.endListFragments[we.body.type]=we),An(we)||this.removeParts(J.sn-1,J.type)}else this.removeFragment(we.body)}},{key:"removeParts",value:function(L,K){var j=this.activePartLists[K];if(!j)return;this.activePartLists[K]=j.filter(function(J){return J.fragment.sn>=L})}},{key:"fragBuffered",value:function(L,K){var j=ln(L),J=this.fragments[j];!J&&K&&(J=this.fragments[j]={body:L,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},L.gap&&(this.hasGaps=!0)),J&&(J.loaded=null,J.buffered=!0)}},{key:"getBufferedTimes",value:function(L,K,j,J){for(var te={time:[],partial:j},me=L.start,we=L.end,je=L.minEndPTS||we,qe=L.maxStartPTS||me,it=0;it<J.length;it++){var Rt=J.start(it)-this.bufferPadding,hr=J.end(it)+this.bufferPadding;if(qe>=Rt&&je<=hr){te.time.push({startPTS:Math.max(me,J.start(it)),endPTS:Math.min(we,J.end(it))});break}else if(me<hr&&we>Rt)te.partial=!0,te.time.push({startPTS:Math.max(me,J.start(it)),endPTS:Math.min(we,J.end(it))});else if(we<=Rt)break}return te}},{key:"getPartialFragment",value:function(L){var K=null,j,J,te,me=0,we=this.bufferPadding,je=this.fragments;return Object.keys(je).forEach(function(qe){var it=je[qe];if(!it)return;An(it)&&(J=it.body.start-we,te=it.body.end+we,L>=J&&L<=te&&(j=Math.min(L-J,te-L),me<=j&&(K=it.body,me=j)))}),K}},{key:"isEndListAppended",value:function(L){var K=this.endListFragments[L];return K!==void 0&&(K.buffered||An(K))}},{key:"getState",value:function(L){var K=ln(L),j=this.fragments[K];return j?j.buffered?An(j)?Ur.PARTIAL:Ur.OK:Ur.APPENDING:Ur.NOT_LOADED}},{key:"isTimeBuffered",value:function(L,K,j){for(var J,te,me=0;me<j.length;me++){if(J=j.start(me)-this.bufferPadding,te=j.end(me)+this.bufferPadding,L>=J&&K<=te)return!0;if(K<=J)return!1}return!1}},{key:"onFragLoaded",value:function(L,K){var j=K.frag,J=K.part;if(j.sn==="initSegment"||j.bitrateTest)return;var te=J?null:K,me=ln(j);this.fragments[me]={body:j,appendedPTS:null,loaded:te,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(L,K){var j=this,J=K.frag,te=K.part,me=K.timeRanges;if(J.sn==="initSegment")return;var we=J.type;if(te){var je=this.activePartLists[we];je||(this.activePartLists[we]=je=[]),je.push(te)}this.timeRanges=me,Object.keys(me).forEach(function(qe){var it=me[qe];j.detectEvictedFragments(qe,it,we,te)})}},{key:"onFragBuffered",value:function(L,K){this.detectPartialFragments(K)}},{key:"hasFragment",value:function(L){var K=ln(L);return!!this.fragments[K]}},{key:"hasParts",value:function(L){var K;return!!((K=this.activePartLists[L])!=null&&K.length)}},{key:"removeFragmentsInRange",value:function(L,K,j,J,te){var me=this;if(J&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(we){var je=me.fragments[we];if(!je)return;var qe=je.body;if(qe.type!==j||J&&!qe.gap)return;qe.start<K&&qe.end>L&&(je.buffered||te)&&me.removeFragment(qe)})}},{key:"removeFragment",value:function(L){var K=ln(L);L.stats.loaded=0,L.clearElementaryStreamInfo();var j=this.activePartLists[L.type];if(j){var J=L.sn;this.activePartLists[L.type]=j.filter(function(te){return te.fragment.sn!==J})}delete this.fragments[K],L.endList&&delete this.endListFragments[L.type]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}]),he}();function An(he){var $,L,K;return he.buffered&&(he.body.gap||(($=he.range.video)==null?void 0:$.partial)||((L=he.range.audio)==null?void 0:L.partial)||((K=he.range.audiovideo)==null?void 0:K.partial))}function ln(he){return"".concat(he.type,"_").concat(he.level,"_").concat(he.urlId,"_").concat(he.sn)}var Hn=Math.pow(2,17),Ln=function(){function he($){Object(r.a)(this,he),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=$}return Object(s.a)(he,[{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(L,K){var j=this,J=L.url;if(!J)return Promise.reject(new ii({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(J?"part list":"url")),networkDetails:null}));this.abort();var te=this.config,me=te.fLoader,we=te.loader;return new Promise(function(je,qe){if(j.loader&&j.loader.destroy(),L.gap)if(L.tagList.some(function(Dr){return Dr[0]==="GAP"})){qe(Ai(L));return}else L.gap=!1;var it=j.loader=L.loader=me?new me(te):new we(te),Rt=ni(L),hr=Gi(te.fragLoadPolicy.default),tr={loadPolicy:hr,timeout:hr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:Hn};L.stats=it.stats,it.load(Rt,tr,{onSuccess:function(jr,Sn,yn,Mn){j.resetLoader(L,it);var si=jr.data;yn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(si.slice(0,16)),si=si.slice(16)),je({frag:L,part:null,payload:si,networkDetails:Mn})},onError:function(jr,Sn,yn,Mn){j.resetLoader(L,it),qe(new ii({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:J,data:void 0},jr),error:new Error("HTTP Error ".concat(jr.code," ").concat(jr.text)),networkDetails:yn,stats:Mn}))},onAbort:function(jr,Sn,yn){j.resetLoader(L,it),qe(new ii({type:F.NETWORK_ERROR,details:R.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:yn,stats:jr}))},onTimeout:function(jr,Sn,yn){j.resetLoader(L,it),qe(new ii({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(tr.timeout,"ms")),networkDetails:yn,stats:jr}))},onProgress:function(jr,Sn,yn,Mn){K&&K({frag:L,part:null,payload:yn,networkDetails:Mn})}})})}},{key:"loadPart",value:function(L,K,j){var J=this;this.abort();var te=this.config,me=te.fLoader,we=te.loader;return new Promise(function(je,qe){if(J.loader&&J.loader.destroy(),L.gap||K.gap){qe(Ai(L,K));return}var it=J.loader=L.loader=me?new me(te):new we(te),Rt=ni(L,K),hr=Gi(te.fragLoadPolicy.default),tr={loadPolicy:hr,timeout:hr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Hn};K.stats=it.stats,it.load(Rt,tr,{onSuccess:function(jr,Sn,yn,Mn){J.resetLoader(L,it),J.updateStatsFromPart(L,K);var si={frag:L,part:K,payload:jr.data,networkDetails:Mn};j(si),je(si)},onError:function(jr,Sn,yn,Mn){J.resetLoader(L,it),qe(new ii({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:K,response:b({url:Rt.url,data:void 0},jr),error:new Error("HTTP Error ".concat(jr.code," ").concat(jr.text)),networkDetails:yn,stats:Mn}))},onAbort:function(jr,Sn,yn){L.stats.aborted=K.stats.aborted,J.resetLoader(L,it),qe(new ii({type:F.NETWORK_ERROR,details:R.INTERNAL_ABORTED,fatal:!1,frag:L,part:K,error:new Error("Aborted"),networkDetails:yn,stats:jr}))},onTimeout:function(jr,Sn,yn){J.resetLoader(L,it),qe(new ii({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:K,error:new Error("Timeout after ".concat(tr.timeout,"ms")),networkDetails:yn,stats:jr}))}})})}},{key:"updateStatsFromPart",value:function(L,K){var j=L.stats,J=K.stats,te=J.total;if(j.loaded+=J.loaded,te){var me=Math.round(L.duration/K.duration),we=Math.min(Math.round(j.loaded/te),me),je=me-we,qe=je*Math.round(j.loaded/we);j.total=j.loaded+qe}else j.total=Math.max(j.loaded,j.total);var it=j.loading,Rt=J.loading;it.start?it.first+=Rt.first-Rt.start:(it.start=Rt.start,it.first=Rt.first),it.end=Rt.end}},{key:"resetLoader",value:function(L,K){L.loader=null,this.loader===K&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),K.destroy()}}]),he}();function ni(he){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=$||he,K={frag:he,part:$,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},j=L.byteRangeStartOffset,J=L.byteRangeEndOffset;if(E(j)&&E(J)){var te,me=j,we=J;if(he.sn==="initSegment"&&((te=he.decryptdata)==null?void 0:te.method)==="AES-128"){var je=J-j;je%16&&(we=J+(16-je%16)),j!==0&&(K.resetIV=!0,me=j-16)}K.rangeStart=me,K.rangeEnd=we}return K}function Ai(he,$){var L=new Error("GAP ".concat(he.gap?"tag":"attribute"," found")),K={type:F.MEDIA_ERROR,details:R.FRAG_GAP,fatal:!1,frag:he,error:L,networkDetails:null};return $&&(K.part=$),($||he).stats.aborted=!0,new ii(K)}var ii=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K){var j;return Object(r.a)(this,L),j=$.call(this,K.error.message),j.data=void 0,j.data=K,j}return Object(s.a)(L)}(n(Error)),_i=function(){function he($){Object(r.a)(this,he),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=$}return Object(s.a)(he,[{key:"abort",value:function(L){for(var K in this.keyUriToKeyInfo){var j=this.keyUriToKeyInfo[K].loader;if(j){if(L&&L!==j.context.frag.type)return;j.abort()}}}},{key:"detach",value:function(){for(var L in this.keyUriToKeyInfo){var K=this.keyUriToKeyInfo[L];(K.mediaKeySessionContext||K.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[L]}}},{key:"destroy",value:function(){this.detach();for(var L in this.keyUriToKeyInfo){var K=this.keyUriToKeyInfo[L].loader;K&&K.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R.KEY_LOAD_ERROR,j=arguments.length>2?arguments[2]:void 0,J=arguments.length>3?arguments[3]:void 0,te=arguments.length>4?arguments[4]:void 0;return new ii({type:F.NETWORK_ERROR,details:K,fatal:!1,frag:L,response:te,error:j,networkDetails:J})}},{key:"loadClear",value:function(L,K){var j=this;if(this.emeController&&this.config.emeEnabled)for(var J=L.sn,te=L.cc,me=function(){var qe=K[we];if(te<=qe.cc&&(J==="initSegment"||qe.sn==="initSegment"||J<qe.sn))return j.emeController.selectKeySystemFormat(qe).then(function(it){qe.setKeyFormat(it)}),1},we=0;we<K.length&&!me();we++);}},{key:"load",value:function(L){var K=this;return!L.decryptdata&&L.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(L).then(function(j){return K.loadInternal(L,j)}):this.loadInternal(L)}},{key:"loadInternal",value:function(L,K){var j,J;K&&L.setKeyFormat(K);var te=L.decryptdata;if(!te){var me=new Error(K?"Expected frag.decryptdata to be defined after setting format ".concat(K):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(L,R.KEY_LOAD_ERROR,me))}var we=te.uri;if(!we)return Promise.reject(this.createKeyLoadError(L,R.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(we,'"'))));var je=this.keyUriToKeyInfo[we];if((j=je)!=null&&j.decryptdata.key)return te.key=je.decryptdata.key,Promise.resolve({frag:L,keyInfo:je});if((J=je)!=null&&J.keyLoadPromise){var qe;switch((qe=je.mediaKeySessionContext)==null?void 0:qe.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return je.keyLoadPromise.then(function(it){return te.key=it.keyInfo.decryptdata.key,{frag:L,keyInfo:je}})}}je=this.keyUriToKeyInfo[we]={decryptdata:te,keyLoadPromise:null,loader:null,mediaKeySessionContext:null};switch(te.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return te.keyFormat==="identity"?this.loadKeyHTTP(je,L):this.loadKeyEME(je,L);case"AES-128":return this.loadKeyHTTP(je,L);default:return Promise.reject(this.createKeyLoadError(L,R.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(te.method,'"'))))}}},{key:"loadKeyEME",value:function(L,K){var j={frag:K,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var J=this.emeController.loadKey(j);if(J)return(L.keyLoadPromise=J.then(function(te){return L.mediaKeySessionContext=te,j})).catch(function(te){throw L.keyLoadPromise=null,te})}return Promise.resolve(j)}},{key:"loadKeyHTTP",value:function(L,K){var j=this,J=this.config,te=J.loader,me=new te(J);return K.keyLoader=L.loader=me,L.keyLoadPromise=new Promise(function(we,je){var qe={keyInfo:L,frag:K,responseType:"arraybuffer",url:L.decryptdata.uri},it=J.keyLoadPolicy.default,Rt={loadPolicy:it,timeout:it.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},hr={onSuccess:function(Dr,jr,Sn,yn){var Mn=Sn.frag,si=Sn.keyInfo,Xi=Sn.url;if(!Mn.decryptdata||si!==j.keyUriToKeyInfo[Xi])return je(j.createKeyLoadError(Mn,R.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),yn));si.decryptdata.key=Mn.decryptdata.key=new Uint8Array(Dr.data),Mn.keyLoader=null,si.loader=null,we({frag:Mn,keyInfo:si})},onError:function(Dr,jr,Sn,yn){j.resetLoader(jr),je(j.createKeyLoadError(K,R.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(Dr.code," loading key ").concat(Dr.text)),Sn,b({url:qe.url,data:void 0},Dr)))},onTimeout:function(Dr,jr,Sn){j.resetLoader(jr),je(j.createKeyLoadError(K,R.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Sn))},onAbort:function(Dr,jr,Sn){j.resetLoader(jr),je(j.createKeyLoadError(K,R.INTERNAL_ABORTED,new Error("key loading aborted"),Sn))}};me.load(qe,Rt,hr)})}},{key:"resetLoader",value:function(L){var K=L.frag,j=L.keyInfo,J=L.url,te=j.loader;K.keyLoader===te&&(K.keyLoader=null,j.loader=null),delete this.keyUriToKeyInfo[J],te&&te.destroy()}}]),he}(),Ri=function(){function he(){Object(r.a)(this,he),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(s.a)(he,[{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(L){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,L),!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(){}}]),he}(),ji={length:0,start:function(){return 0},end:function(){return 0}},wi=function(){function he(){Object(r.a)(this,he)}return Object(s.a)(he,null,[{key:"isBuffered",value:function(L,K){try{if(L){for(var j=he.getBuffered(L),J=0;J<j.length;J++)if(K>=j.start(J)&&K<=j.end(J))return!0}}catch(te){}return!1}},{key:"bufferInfo",value:function(L,K,j){try{if(L){var J=he.getBuffered(L),te=[],me;for(me=0;me<J.length;me++)te.push({start:J.start(me),end:J.end(me)});return this.bufferedInfo(te,K,j)}}catch(we){}return{len:0,start:K,end:K,nextStart:void 0}}},{key:"bufferedInfo",value:function(L,K,j){K=Math.max(0,K),L.sort(function(jr,Sn){var yn=jr.start-Sn.start;return yn||Sn.end-jr.end});var J=[];if(j)for(var te=0;te<L.length;te++){var me=J.length;if(me){var we=J[me-1].end;L[te].start-we<j?L[te].end>we&&(J[me-1].end=L[te].end):J.push(L[te])}else J.push(L[te])}else J=L;for(var je=0,qe,it=K,Rt=K,hr=0;hr<J.length;hr++){var tr=J[hr].start,Dr=J[hr].end;if(K+j>=tr&&K<Dr)it=tr,Rt=Dr,je=Rt-K;else if(K+j<tr){qe=tr;break}}return{len:je,start:it||0,end:Rt||0,nextStart:qe}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(K){return H.log("failed to get media.buffered",K),ji}}}]),he}(),Ii=Object(s.a)(function he($,L,K){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,te=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(r.a)(this,he),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=Oi(),this.buffering={audio:Oi(),video:Oi(),audiovideo:Oi()},this.level=$,this.sn=L,this.id=K,this.size=j,this.part=J,this.partial=te});function Oi(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Ui(he,$){for(var L=null,K=0,j=he.length;K<j;K++){var J=he[K];if(J&&J.cc===$){L=J;break}}return L}function Zi(he,$,L){return!!($.details&&(L.endCC>L.startCC||he&&he.cc<L.startCC))}function ma(he,$){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=he.fragments,j=$.fragments;if(!j.length||!K.length){H.log("No fragments to align");return}var J=Ui(K,j[0].cc);if(!J||J&&!J.startPTS){H.log("No frag in previous level to align on");return}return J}function Hi(he,$){if(he){var L=he.start+$;he.start=he.startPTS=L,he.endPTS=L+he.duration}}function xa(he,$){for(var L=$.fragments,K=0,j=L.length;K<j;K++)Hi(L[K],he);$.fragmentHint&&Hi($.fragmentHint,he),$.alignedSliding=!0}function Ea(he,$,L){if(!$)return;ta(he,L,$),!L.alignedSliding&&$.details&&ra(L,$.details),!L.alignedSliding&&$.details&&!L.skippedSegments&&mn($.details,L)}function ta(he,$,L){if(Zi(he,L,$)){var K=ma(L.details,$);K&&E(K.start)&&(H.log("Adjusting PTS using last level due to CC increase within current level ".concat($.url)),xa(K.start,$))}}function ra(he,$){if(!$.fragments.length||!he.hasProgramDateTime||!$.hasProgramDateTime)return;var L=$.fragments[0].programDateTime,K=he.fragments[0].programDateTime,j=(K-L)/1e3+$.fragments[0].start;j&&E(j)&&(H.log("Adjusting PTS using programDateTime delta ".concat(K-L,"ms, sliding:").concat(j.toFixed(3)," ").concat(he.url," ")),xa(j,he))}function ga(he,$){if(!he.hasProgramDateTime||!$.hasProgramDateTime)return;var L=he.fragments,K=$.fragments;if(!L.length||!K.length)return;var j=Math.round(K.length/2)-1,J=K[j],te=Ui(L,J.cc)||L[Math.round(L.length/2)-1],me=J.programDateTime,we=te.programDateTime;if(me===null||we===null)return;var je=(we-me)/1e3-(te.start-J.start);xa(je,he)}var sa=function(){function he($,L){Object(r.a)(this,he),this.subtle=void 0,this.aesIV=void 0,this.subtle=$,this.aesIV=L}return Object(s.a)(he,[{key:"decrypt",value:function(L,K){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},K,L)}}]),he}(),Ba=function(){function he($,L){Object(r.a)(this,he),this.subtle=void 0,this.key=void 0,this.subtle=$,this.key=L}return Object(s.a)(he,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),he}();function va(he){var $=he.byteLength,L=$&&new DataView(he.buffer).getUint8($-1);return L?lt(he,0,$-L):he}var Ia=function(){function he(){Object(r.a)(this,he),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(s.a)(he,[{key:"uint8ArrayToUint32Array_",value:function(L){for(var K=new DataView(L),j=new Uint32Array(4),J=0;J<4;J++)j[J]=K.getUint32(J*4);return j}},{key:"initTable",value:function(){var L=this.sBox,K=this.invSBox,j=this.subMix,J=j[0],te=j[1],me=j[2],we=j[3],je=this.invSubMix,qe=je[0],it=je[1],Rt=je[2],hr=je[3],tr=new Uint32Array(256),Dr=0,jr=0,Sn=0;for(Sn=0;Sn<256;Sn++)Sn<128?tr[Sn]=Sn<<1:tr[Sn]=Sn<<1^283;for(Sn=0;Sn<256;Sn++){var yn=jr^jr<<1^jr<<2^jr<<3^jr<<4;yn=yn>>>8^yn&255^99,L[Dr]=yn,K[yn]=Dr;var Mn=tr[Dr],si=tr[Mn],Xi=tr[si],Li=tr[yn]*257^yn*16843008;J[Dr]=Li<<24|Li>>>8,te[Dr]=Li<<16|Li>>>16,me[Dr]=Li<<8|Li>>>24,we[Dr]=Li,Li=Xi*16843009^si*65537^Mn*257^Dr*16843008,qe[yn]=Li<<24|Li>>>8,it[yn]=Li<<16|Li>>>16,Rt[yn]=Li<<8|Li>>>24,hr[yn]=Li,Dr?(Dr=Mn^tr[tr[tr[Xi^Mn]]],jr^=tr[tr[jr]]):Dr=jr=1}}},{key:"expandKey",value:function(L){for(var K=this.uint8ArrayToUint32Array_(L),j=!0,J=0;J<K.length&&j;)j=K[J]===this.key[J],J++;if(j)return;this.key=K;var te=this.keySize=K.length;if(te!==4&&te!==6&&te!==8)throw new Error("Invalid aes key size="+te);var me=this.ksRows=(te+6+1)*4,we,je,qe=this.keySchedule=new Uint32Array(me),it=this.invKeySchedule=new Uint32Array(me),Rt=this.sBox,hr=this.rcon,tr=this.invSubMix,Dr=tr[0],jr=tr[1],Sn=tr[2],yn=tr[3],Mn,si;for(we=0;we<me;we++){if(we<te){Mn=qe[we]=K[we];continue}si=Mn,we%te===0?(si=si<<8|si>>>24,si=Rt[si>>>24]<<24|Rt[si>>>16&255]<<16|Rt[si>>>8&255]<<8|Rt[si&255],si^=hr[we/te|0]<<24):te>6&&we%te===4&&(si=Rt[si>>>24]<<24|Rt[si>>>16&255]<<16|Rt[si>>>8&255]<<8|Rt[si&255]),qe[we]=Mn=(qe[we-te]^si)>>>0}for(je=0;je<me;je++)we=me-je,je&3?si=qe[we]:si=qe[we-4],je<4||we<=4?it[je]=si:it[je]=Dr[Rt[si>>>24]]^jr[Rt[si>>>16&255]]^Sn[Rt[si>>>8&255]]^yn[Rt[si&255]],it[je]=it[je]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,K,j){for(var J=this.keySize+6,te=this.invKeySchedule,me=this.invSBox,we=this.invSubMix,je=we[0],qe=we[1],it=we[2],Rt=we[3],hr=this.uint8ArrayToUint32Array_(j),tr=hr[0],Dr=hr[1],jr=hr[2],Sn=hr[3],yn=new Int32Array(L),Mn=new Int32Array(yn.length),si,Xi,Li,Pi,Aa,Na,Sa,aa,so,os,$o,Bs,ve,Ke,ht=this.networkToHostOrderSwap;K<yn.length;){for(so=ht(yn[K]),os=ht(yn[K+1]),$o=ht(yn[K+2]),Bs=ht(yn[K+3]),Aa=so^te[0],Na=Bs^te[1],Sa=$o^te[2],aa=os^te[3],ve=4,Ke=1;Ke<J;Ke++)si=je[Aa>>>24]^qe[Na>>16&255]^it[Sa>>8&255]^Rt[aa&255]^te[ve],Xi=je[Na>>>24]^qe[Sa>>16&255]^it[aa>>8&255]^Rt[Aa&255]^te[ve+1],Li=je[Sa>>>24]^qe[aa>>16&255]^it[Aa>>8&255]^Rt[Na&255]^te[ve+2],Pi=je[aa>>>24]^qe[Aa>>16&255]^it[Na>>8&255]^Rt[Sa&255]^te[ve+3],Aa=si,Na=Xi,Sa=Li,aa=Pi,ve=ve+4;si=me[Aa>>>24]<<24^me[Na>>16&255]<<16^me[Sa>>8&255]<<8^me[aa&255]^te[ve],Xi=me[Na>>>24]<<24^me[Sa>>16&255]<<16^me[aa>>8&255]<<8^me[Aa&255]^te[ve+1],Li=me[Sa>>>24]<<24^me[aa>>16&255]<<16^me[Aa>>8&255]<<8^me[Na&255]^te[ve+2],Pi=me[aa>>>24]<<24^me[Aa>>16&255]<<16^me[Na>>8&255]<<8^me[Sa&255]^te[ve+3],Mn[K]=ht(si^tr),Mn[K+1]=ht(Pi^Dr),Mn[K+2]=ht(Li^jr),Mn[K+3]=ht(Xi^Sn),tr=so,Dr=os,jr=$o,Sn=Bs,K=K+4}return Mn.buffer}}]),he}(),za=16,Va=function(){function he($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=L.removePKCS7Padding,j=K===void 0?!0:K;if(Object(r.a)(this,he),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=$.enableSoftwareAES,this.removePKCS7Padding=j,j)try{var J=self.crypto;J&&(this.subtle=J.subtle||J.webkitSubtle)}catch(te){}this.subtle===null&&(this.useSoftware=!0)}return Object(s.a)(he,[{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 L=this.currentResult,K=this.remainderData;if(!L||K)return this.reset(),null;var j=new Uint8Array(L);return this.reset(),this.removePKCS7Padding?va(j):j}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(L,K,j){var J=this;return this.useSoftware?new Promise(function(te,me){J.softwareDecrypt(new Uint8Array(L),K,j);var we=J.flush();we?te(we.buffer):me(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(L),K,j)}},{key:"softwareDecrypt",value:function(L,K,j){var J=this.currentIV,te=this.currentResult,me=this.remainderData;this.logOnce("JS AES decrypt"),me&&(L=Ne(me,L),this.remainderData=null);var we=this.getValidChunk(L);if(!we.length)return null;J&&(j=J);var je=this.softwareDecrypter;je||(je=this.softwareDecrypter=new Ia),je.expandKey(K);var qe=te;return this.currentResult=je.decrypt(we.buffer,0,j),this.currentIV=lt(we,-16).buffer,qe||null}},{key:"webCryptoDecrypt",value:function(L,K,j){var J=this,te=this.subtle;return(this.key!==K||!this.fastAesKey)&&(this.key=K,this.fastAesKey=new Ba(te,K)),this.fastAesKey.expandKey().then(function(me){if(!te)return Promise.reject(new Error("web crypto not initialized"));J.logOnce("WebCrypto AES decrypt");var we=new sa(te,new Uint8Array(j));return we.decrypt(L.buffer,me)}).catch(function(me){return H.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(me.name,": ").concat(me.message)),J.onWebCryptoError(L,K,j)})}},{key:"onWebCryptoError",value:function(L,K,j){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(L,K,j);var J=this.flush();if(J)return J.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(L){var K=L,j=L.length-L.length%za;return j!==L.length&&(K=lt(L,0,j),this.remainderData=lt(L,j)),K}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;H.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),he}(),Ya={toString:function($){for(var L="",K=$.length,j=0;j<K;j++)L+="[".concat($.start(j).toFixed(3),"-").concat($.end(j).toFixed(3),"]");return L}},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"},ro=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j,J,te,me){var we;return Object(r.a)(this,L),we=$.call(this),we.hls=void 0,we.fragPrevious=null,we.fragCurrent=null,we.fragmentTracker=void 0,we.transmuxer=null,we._state=Bi.STOPPED,we.playlistType=void 0,we.media=null,we.mediaBuffer=null,we.config=void 0,we.bitrateTest=!1,we.lastCurrentTime=0,we.nextLoadPosition=0,we.startPosition=0,we.startTimeOffset=null,we.loadedmetadata=!1,we.retryDate=0,we.levels=null,we.fragmentLoader=void 0,we.keyLoader=void 0,we.levelLastLoaded=null,we.startFragRequested=!1,we.decrypter=void 0,we.initPTS=[],we.onvseeking=null,we.onvended=null,we.logPrefix="",we.log=void 0,we.warn=void 0,we.playlistType=me,we.logPrefix=te,we.log=H.log.bind(H,"".concat(te,":")),we.warn=H.warn.bind(H,"".concat(te,":")),we.hls=K,we.fragmentLoader=new Ln(K.config),we.keyLoader=J,we.fragmentTracker=j,we.config=K.config,we.decrypter=new Va(K.config),K.on(O.MANIFEST_LOADED,we.onManifestLoaded,Object(v.a)(we)),we}return Object(s.a)(L,[{key:"doTick",value:function(){this.onTickEnd()}},{key:"onTickEnd",value:function(){}},{key:"startLoad",value:function(j){}},{key:"stopLoad",value:function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var j=this.fragCurrent;j!=null&&j.loader&&(j.abortRequests(),this.fragmentTracker.removeFragment(j)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Bi.STOPPED}},{key:"_streamEnded",value:function(j,J){if(J.live||j.nextStart||!j.end||!this.media)return!1;var te=J.partList;if(te!=null&&te.length){var me=te[te.length-1],we=wi.isBuffered(this.media,me.start+me.duration/2);return we}var je=J.fragments[J.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(je)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var j;return(j=this.levels[this.levelLastLoaded])==null?void 0:j.details}}},{key:"onMediaAttached",value:function(j,J){var te=this.media=this.mediaBuffer=J.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),te.addEventListener("seeking",this.onvseeking),te.addEventListener("ended",this.onvended);var me=this.config;this.levels&&me.autoStartLoad&&this.state===Bi.STOPPED&&this.startLoad(me.startPosition)}},{key:"onMediaDetaching",value:function(){var j=this.media;j!=null&&j.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),j&&this.onvseeking&&this.onvended&&(j.removeEventListener("seeking",this.onvseeking),j.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 j=this.config,J=this.fragCurrent,te=this.media,me=this.mediaBuffer,we=this.state,je=te?te.currentTime:0,qe=wi.bufferInfo(me||te,je,j.maxBufferHole);if(this.log("media seeking to ".concat(E(je)?je.toFixed(3):je,", state: ").concat(we)),this.state===Bi.ENDED)this.resetLoadingState();else if(J){var it=j.maxFragLookUpTolerance,Rt=J.start-it,hr=J.start+J.duration+it;if(!qe.len||hr<qe.start||Rt>qe.end){var tr=je>hr;(je<Rt||tr)&&(tr&&J.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),J.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}te&&(this.fragmentTracker.removeFragmentsInRange(je,Infinity,this.playlistType,!0),this.lastCurrentTime=je),!this.loadedmetadata&&!qe.len&&(this.nextLoadPosition=this.startPosition=je),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(j,J){this.startTimeOffset=J.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(L.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)(L.prototype),"onHandlerDestroyed",this).call(this)}},{key:"loadFragment",value:function(j,J,te){this._loadFragForPlayback(j,J,te)}},{key:"_loadFragForPlayback",value:function(j,J,te){var me=this,we=function(qe){if(me.fragContextChanged(j)){me.warn("Fragment ".concat(j.sn).concat(qe.part?" p: "+qe.part.index:""," of level ").concat(j.level," was dropped during download.")),me.fragmentTracker.removeFragment(j);return}j.stats.chunkCount++,me._handleFragmentLoadProgress(qe)};this._doFragLoad(j,J,te,we).then(function(je){if(!je)return;var qe=me.state;if(me.fragContextChanged(j)){(qe===Bi.FRAG_LOADING||!me.fragCurrent&&qe===Bi.PARSING)&&(me.fragmentTracker.removeFragment(j),me.state=Bi.IDLE);return}"payload"in je&&(me.log("Loaded fragment ".concat(j.sn," of level ").concat(j.level)),me.hls.trigger(O.FRAG_LOADED,je)),me._handleFragmentLoadComplete(je)}).catch(function(je){if(me.state===Bi.STOPPED||me.state===Bi.ERROR)return;me.warn(je),me.resetFragmentLoading(j)})}},{key:"clearTrackerIfNeeded",value:function(j){var J,te=this.fragmentTracker,me=te.getState(j);if(me===Ur.APPENDING){var we=j.type,je=this.getFwdBufferInfo(this.mediaBuffer,we),qe=Math.max(j.duration,je?je.len:this.config.maxBufferLength);this.reduceMaxBufferLength(qe)&&te.removeFragment(j)}else((J=this.mediaBuffer)==null?void 0:J.buffered.length)===0?te.removeAllFragments():te.hasParts(j.type)&&(te.detectPartialFragments({frag:j,part:null,stats:j.stats,id:j.type}),te.getState(j)===Ur.PARTIAL&&te.removeFragment(j))}},{key:"checkLiveUpdate",value:function(j){if(j.updated&&!j.live){var J=j.fragments[j.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:J,part:null,stats:J.stats,id:J.type})}j.fragments[0]||(j.deltaUpdateFailed=!0)}},{key:"flushMainBuffer",value:function(j,J){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(j-J))return;var me={startOffset:j,endOffset:J,type:te};this.hls.trigger(O.BUFFER_FLUSHING,me)}},{key:"_loadInitSegment",value:function(j,J){var te=this;this._doFragLoad(j,J).then(function(me){if(!me||te.fragContextChanged(j)||!te.levels)throw new Error("init load aborted");return me}).then(function(me){var we=te.hls,je=me.payload,qe=j.decryptdata;if(je&&je.byteLength>0&&qe&&qe.key&&qe.iv&&qe.method==="AES-128"){var it=self.performance.now();return te.decrypter.decrypt(new Uint8Array(je),qe.key.buffer,qe.iv.buffer).catch(function(Rt){throw we.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_DECRYPT_ERROR,fatal:!1,error:Rt,reason:Rt.message,frag:j}),Rt}).then(function(Rt){var hr=self.performance.now();return we.trigger(O.FRAG_DECRYPTED,{frag:j,payload:Rt,stats:{tstart:it,tdecrypt:hr}}),me.payload=Rt,me})}return me}).then(function(me){var we=te.fragCurrent,je=te.hls,qe=te.levels;if(!qe)throw new Error("init load aborted, missing levels");var it=j.stats;te.state=Bi.IDLE,J.fragmentError=0,j.data=new Uint8Array(me.payload),it.parsing.start=it.buffering.start=self.performance.now(),it.parsing.end=it.buffering.end=self.performance.now(),me.frag===we&&je.trigger(O.FRAG_BUFFERED,{stats:it,frag:we,part:null,id:j.type}),te.tick()}).catch(function(me){if(te.state===Bi.STOPPED||te.state===Bi.ERROR)return;te.warn(me),te.resetFragmentLoading(j)})}},{key:"fragContextChanged",value:function(j){var J=this.fragCurrent;return!j||!J||j.level!==J.level||j.sn!==J.sn||j.urlId!==J.urlId}},{key:"fragBufferedComplete",value:function(j,J){var te,me,we,je,qe=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(j.type," sn: ").concat(j.sn).concat(J?" part: "+J.index:""," of ").concat(this.playlistType===Er.MAIN?"level":"track"," ").concat(j.level," (frag:[").concat(((te=j.startPTS)!=null?te:NaN).toFixed(3),"-").concat(((me=j.endPTS)!=null?me:NaN).toFixed(3),"] > buffer:").concat(qe?Ya.toString(wi.getBuffered(qe)):"(detached)",")")),this.state=Bi.IDLE,!qe)return;!this.loadedmetadata&&j.type==Er.MAIN&&qe.buffered.length&&((we=this.fragCurrent)==null?void 0:we.sn)===((je=this.fragPrevious)==null?void 0:je.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(j){var J=this.transmuxer;if(!J)return;var te=j.frag,me=j.part,we=j.partsLoaded,je=!we||we.length===0||we.some(function(it){return!it}),qe=new Ii(te.level,te.sn,te.stats.chunkCount+1,0,me?me.index:-1,!je);J.flush(qe)}},{key:"_handleFragmentLoadProgress",value:function(j){}},{key:"_doFragLoad",value:function(j,J){var te=this,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,we=arguments.length>3?arguments[3]:void 0,je,qe=J==null?void 0:J.details;if(!this.levels||!qe)throw new Error("frag load aborted, missing level".concat(qe?"":" detail","s"));var it=null;if(j.encrypted&&!((je=j.decryptdata)!=null&&je.key)?(this.log("Loading key for ".concat(j.sn," of [").concat(qe.startSN,"-").concat(qe.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(j.level)),this.state=Bi.KEY_LOADING,this.fragCurrent=j,it=this.keyLoader.load(j).then(function(yn){if(!te.fragContextChanged(yn.frag))return te.hls.trigger(O.KEY_LOADED,yn),te.state===Bi.KEY_LOADING&&(te.state=Bi.IDLE),yn}),this.hls.trigger(O.KEY_LOADING,{frag:j}),this.fragCurrent===null&&(it=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!j.encrypted&&qe.encryptedFragments.length&&this.keyLoader.loadClear(j,qe.encryptedFragments),me=Math.max(j.start,me||0),this.config.lowLatencyMode&&j.sn!=="initSegment"){var Rt=qe.partList;if(Rt&&we){me>j.end&&qe.fragmentHint&&(j=qe.fragmentHint);var hr=this.getNextPart(Rt,j,me);if(hr>-1){var tr=Rt[hr];this.log("Loading part sn: ".concat(j.sn," p: ").concat(tr.index," cc: ").concat(j.cc," of playlist [").concat(qe.startSN,"-").concat(qe.endSN,"] parts [0-").concat(hr,"-").concat(Rt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(j.level,", target: ").concat(parseFloat(me.toFixed(3)))),this.nextLoadPosition=tr.start+tr.duration,this.state=Bi.FRAG_LOADING;var Dr;return it?Dr=it.then(function(yn){return!yn||te.fragContextChanged(yn.frag)?null:te.doFragPartsLoad(j,tr,J,we)}).catch(function(yn){return te.handleFragLoadError(yn)}):Dr=this.doFragPartsLoad(j,tr,J,we).catch(function(yn){return te.handleFragLoadError(yn)}),this.hls.trigger(O.FRAG_LOADING,{frag:j,part:tr,targetBufferTime:me}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Dr}else if(!j.url||this.loadedEndOfParts(Rt,me))return Promise.resolve(null)}}this.log("Loading fragment ".concat(j.sn," cc: ").concat(j.cc," ").concat(qe?"of ["+qe.startSN+"-"+qe.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(j.level,", target: ").concat(parseFloat(me.toFixed(3)))),E(j.sn)&&!this.bitrateTest&&(this.nextLoadPosition=j.start+j.duration),this.state=Bi.FRAG_LOADING;var jr=this.config.progressive,Sn;return jr&&it?Sn=it.then(function(yn){return!yn||te.fragContextChanged(yn==null?void 0:yn.frag)?null:te.fragmentLoader.load(j,we)}).catch(function(yn){return te.handleFragLoadError(yn)}):Sn=Promise.all([this.fragmentLoader.load(j,jr?we:void 0),it]).then(function(yn){var Mn=Object(S.a)(yn,1),si=Mn[0];return!jr&&si&&we&&we(si),si}).catch(function(yn){return te.handleFragLoadError(yn)}),this.hls.trigger(O.FRAG_LOADING,{frag:j,targetBufferTime:me}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Sn}},{key:"doFragPartsLoad",value:function(j,J,te,me){var we=this;return new Promise(function(je,qe){var it,Rt=[],hr=(it=te.details)==null?void 0:it.partList,tr=function Dr(jr){we.fragmentLoader.loadPart(j,jr,me).then(function(Sn){Rt[jr.index]=Sn;var yn=Sn.part;we.hls.trigger(O.FRAG_LOADED,Sn);var Mn=Ei(te,j.sn,jr.index+1)||yi(hr,j.sn,jr.index+1);if(Mn)Dr(Mn);else return je({frag:j,part:yn,partsLoaded:Rt})}).catch(qe)};tr(J)})}},{key:"handleFragLoadError",value:function(j){if("data"in j){var J=j.data;j.data&&J.details===R.INTERNAL_ABORTED?this.handleFragLoadAborted(J.frag,J.part):this.hls.trigger(O.ERROR,J)}else this.hls.trigger(O.ERROR,{type:F.OTHER_ERROR,details:R.INTERNAL_EXCEPTION,err:j,error:j,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(j){var J=this.getCurrentContext(j);if(!J||this.state!==Bi.PARSING){!this.fragCurrent&&this.state!==Bi.STOPPED&&this.state!==Bi.ERROR&&(this.state=Bi.IDLE);return}var te=J.frag,me=J.part,we=J.level,je=self.performance.now();te.stats.parsing.end=je,me&&(me.stats.parsing.end=je),this.updateLevelTiming(te,me,we,j.partial)}},{key:"getCurrentContext",value:function(j){var J=this.levels,te=this.fragCurrent,me=j.level,we=j.sn,je=j.part;if(!(J!=null&&J[me]))return this.warn("Levels object was unset while buffering fragment ".concat(we," of level ").concat(me,". The current chunk will not be buffered.")),null;var qe=J[me],it=je>-1?Ei(qe,we,je):null,Rt=it?it.fragment:Jn(qe,we,te);return Rt?(te&&te!==Rt&&(Rt.stats=te.stats),{frag:Rt,part:it,level:qe}):null}},{key:"bufferFragmentData",value:function(j,J,te,me,we){var je;if(!j||this.state!==Bi.PARSING)return;var qe=j.data1,it=j.data2,Rt=qe;if(qe&&it&&(Rt=Ne(qe,it)),!((je=Rt)!=null&&je.length))return;var hr={type:j.type,frag:J,part:te,chunkMeta:me,parent:J.type,data:Rt};if(this.hls.trigger(O.BUFFER_APPENDING,hr),j.dropped&&j.independent&&!te){if(we)return;this.flushBufferGap(J)}}},{key:"flushBufferGap",value:function(j){var J=this.media;if(!J)return;if(!wi.isBuffered(J,J.currentTime)){this.flushMainBuffer(0,j.start);return}var te=J.currentTime,me=wi.bufferInfo(J,te,0),we=j.duration,je=Math.min(this.config.maxFragLookUpTolerance*2,we*.25),qe=Math.max(Math.min(j.start-je,me.end-je),te+je);j.start-qe>je&&this.flushMainBuffer(qe,j.start)}},{key:"getFwdBufferInfo",value:function(j,J){var te=this.getLoadPosition();return E(te)?this.getFwdBufferInfoAtPos(j,te,J):null}},{key:"getFwdBufferInfoAtPos",value:function(j,J,te){var me=this.config.maxBufferHole,we=wi.bufferInfo(j,J,me);if(we.len===0&&we.nextStart!==void 0){var je=this.fragmentTracker.getBufferedFrag(J,te);if(je&&we.nextStart<je.end)return wi.bufferInfo(j,J,Math.max(we.nextStart,me))}return we}},{key:"getMaxBufferLength",value:function(j){var J=this.config,te;return j?te=Math.max(8*J.maxBufferSize/j,J.maxBufferLength):te=J.maxBufferLength,Math.min(te,J.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(j){var J=this.config,te=j||J.maxBufferLength;return J.maxMaxBufferLength>=te?(J.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(J.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(j){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Er.MAIN,te=this.fragmentTracker.getAppendedFrag(j,Er.MAIN);return te&&"fragment"in te?te.fragment:te}},{key:"getNextFragment",value:function(j,J){var te=J.fragments,me=te.length;if(!me)return null;var we=this.config,je=te[0].start,qe;if(J.live){var it=we.initialLiveManifestSize;if(me<it)return this.warn("Not enough fragments to start playback (have: ".concat(me,", need: ").concat(it,")")),null;!J.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(qe=this.getInitialLiveFragment(J,te),this.startPosition=qe?this.hls.liveSyncPosition||qe.start:j)}else j<=je&&(qe=te[0]);if(!qe){var Rt=we.lowLatencyMode?J.partEnd:J.fragmentEnd;qe=this.getFragmentAtPosition(j,Rt,J)}return this.mapToInitFragWhenRequired(qe)}},{key:"isLoopLoading",value:function(j,J){var te=this.fragmentTracker.getState(j);return(te===Ur.OK||te===Ur.PARTIAL&&!!j.gap)&&this.nextLoadPosition>J}},{key:"getNextFragmentLoopLoading",value:function(j,J,te,me,we){var je=j.gap,qe=this.getNextFragment(this.nextLoadPosition,J);if(qe===null)return qe;if(j=qe,je&&j&&!j.gap&&te.nextStart){var it=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,te.nextStart,me);if(it!==null&&te.len+it.len>=we)return this.log('buffer full after gaps in "'.concat(me,'" playlist starting at sn: ').concat(j.sn)),null}return j}},{key:"mapToInitFragWhenRequired",value:function(j){return j!=null&&j.initSegment&&!(j!=null&&j.initSegment.data)&&!this.bitrateTest?j.initSegment:j}},{key:"getNextPart",value:function(j,J,te){for(var me=-1,we=!1,je=!0,qe=0,it=j.length;qe<it;qe++){var Rt=j[qe];if(je=je&&!Rt.independent,me>-1&&te<Rt.start)break;var hr=Rt.loaded;hr?me=-1:(we||Rt.independent||je)&&Rt.fragment===J&&(me=qe),we=hr}return me}},{key:"loadedEndOfParts",value:function(j,J){var te=j[j.length-1];return te&&J>te.start&&te.loaded}},{key:"getInitialLiveFragment",value:function(j,J){var te=this.fragPrevious,me=null;if(te){if(j.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(te.programDateTime)),me=Ti(J,te.endProgramDateTime,this.config.maxFragLookUpTolerance)),!me){var we=te.sn+1;if(we>=j.startSN&&we<=j.endSN){var je=J[we-j.startSN];te.cc===je.cc&&(me=je,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(me.sn)))}me||(me=Ir(J,te.cc),me&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(me.sn)))}}else{var qe=this.hls.liveSyncPosition;qe!==null&&(me=this.getFragmentAtPosition(qe,this.bitrateTest?j.fragmentEnd:j.edge,j))}return me}},{key:"getFragmentAtPosition",value:function(j,J,te){var me=this.config,we=this.fragPrevious,je=te.fragments,qe=te.endSN,it=te.fragmentHint,Rt=me.maxFragLookUpTolerance,hr=te.partList,tr=!!(me.lowLatencyMode&&hr!=null&&hr.length&&it);tr&&it&&!this.bitrateTest&&(je=je.concat(it),qe=it.sn);var Dr;if(j<J){var jr=j>J-Rt?0:Rt;Dr=Ji(we,je,j,jr)}else Dr=je[je.length-1];if(Dr){var Sn=Dr.sn-te.startSN,yn=this.fragmentTracker.getState(Dr);if((yn===Ur.OK||yn===Ur.PARTIAL&&Dr.gap)&&(we=Dr),we&&Dr.sn===we.sn&&(!tr||hr[0].fragment.sn>Dr.sn)){var Mn=we&&Dr.level===we.level;if(Mn){var si=je[Sn+1];Dr.sn<qe&&this.fragmentTracker.getState(si)!==Ur.OK?Dr=si:Dr=null}}}return Dr}},{key:"synchronizeToLiveEdge",value:function(j){var J=this.config,te=this.media;if(!te)return;var me=this.hls.liveSyncPosition,we=te.currentTime,je=j.fragments[0].start,qe=j.edge,it=we>=je-J.maxFragLookUpTolerance&&we<=qe;if(me!==null&&te.duration>me&&(we<me||!it)){var Rt=J.liveMaxLatencyDuration!==void 0?J.liveMaxLatencyDuration:J.liveMaxLatencyDurationCount*j.targetduration;(!it&&te.readyState<4||we<qe-Rt)&&(this.loadedmetadata||(this.nextLoadPosition=me),te.readyState&&(this.warn("Playback: ".concat(we.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(qe,", reset currentTime to : ").concat(me.toFixed(3))),te.currentTime=me))}}},{key:"alignPlaylists",value:function(j,J){var te=this.levels,me=this.levelLastLoaded,we=this.fragPrevious,je=me!==null?te[me]:null,qe=j.fragments.length;if(!qe)return this.warn("No fragments in live playlist"),0;var it=j.fragments[0].start,Rt=!J,hr=j.alignedSliding&&E(it);if(Rt||!hr&&!it){Ea(we,je,j);var tr=j.fragments[0].start;return this.log("Live playlist sliding: ".concat(tr.toFixed(2)," start-sn: ").concat(J?J.startSN:"na","->").concat(j.startSN," prev-sn: ").concat(we?we.sn:"na"," fragments: ").concat(qe)),tr}return it}},{key:"waitForCdnTuneIn",value:function(j){var J=3;return j.live&&j.canBlockReload&&j.partTarget&&j.tuneInGoal>Math.max(j.partHoldBack,j.partTarget*J)}},{key:"setStartPosition",value:function(j,J){var te=this.startPosition;if(te<J&&(te=-1),te===-1||this.lastCurrentTime===-1){var me=this.startTimeOffset!==null,we=me?this.startTimeOffset:j.startTimeOffset;we!==null&&E(we)?(te=J+we,we<0&&(te+=j.totalduration),te=Math.min(Math.max(J,te),J+j.totalduration),this.log("Start time offset ".concat(we," found in ").concat(me?"multivariant":"media"," playlist, adjust startPosition to ").concat(te)),this.startPosition=te):j.live?te=this.hls.liveSyncPosition||J:this.startPosition=te=0,this.lastCurrentTime=te}this.nextLoadPosition=te}},{key:"getLoadPosition",value:function(){var j=this.media,J=0;return this.loadedmetadata&&j?J=j.currentTime:this.nextLoadPosition&&(J=this.nextLoadPosition),J}},{key:"handleFragLoadAborted",value:function(j,J){this.transmuxer&&j.sn!=="initSegment"&&j.stats.aborted&&(this.warn("Fragment ".concat(j.sn).concat(J?" part "+J.index:""," of level ").concat(j.level," was aborted")),this.resetFragmentLoading(j))}},{key:"resetFragmentLoading",value:function(j){(!this.fragCurrent||!this.fragContextChanged(j)&&this.state!==Bi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Bi.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(j,J){if(J.chunkMeta&&!J.frag){var te=this.getCurrentContext(J.chunkMeta);te&&(J.frag=te.frag)}var me=J.frag;if(!me||me.type!==j||!this.levels)return;if(this.fragContextChanged(me)){var we;this.warn("Frag load error must match current frag to retry ".concat(me.url," > ").concat((we=this.fragCurrent)==null?void 0:we.url));return}var je=J.details===R.FRAG_GAP;je&&this.fragmentTracker.fragBuffered(me,!0);var qe=J.errorAction,it=qe||{},Rt=it.action,hr=it.retryCount,tr=hr===void 0?0:hr,Dr=it.retryConfig;if(qe&&Rt===nn.RetryRequest&&Dr){var jr;this.resetStartWhenNotLoaded((jr=this.levelLastLoaded)!=null?jr:me.level);var Sn=la(Dr,tr);this.warn("Fragment ".concat(me.sn," of ").concat(j," ").concat(me.level," errored with ").concat(J.details,", retrying loading ").concat(tr+1,"/").concat(Dr.maxNumRetry," in ").concat(Sn,"ms")),qe.resolved=!0,this.retryDate=self.performance.now()+Sn,this.state=Bi.FRAG_LOADING_WAITING_RETRY}else Dr&&qe?(this.resetFragmentErrors(j),tr<Dr.maxNumRetry?je||(qe.resolved=!0):H.warn("".concat(J.details," reached or exceeded max retry (").concat(tr,")"))):(qe==null?void 0:qe.action)===nn.SendAlternateToPenaltyBox?this.state=Bi.WAITING_LEVEL:this.state=Bi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(j){if(this.state===Bi.PARSING||this.state===Bi.PARSED){var J=j.parent,te=this.getFwdBufferInfo(this.mediaBuffer,J),me=te&&te.len>.5;me&&this.reduceMaxBufferLength(te.len);var we=!me;return we&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(J," buffer")),j.frag&&(this.fragmentTracker.removeFragment(j.frag),this.nextLoadPosition=j.frag.start),this.resetLoadingState(),we}return!1}},{key:"resetFragmentErrors",value:function(j){j===Er.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE)}},{key:"afterBufferFlushed",value:function(j,J,te){if(!j)return;var me=wi.getBuffered(j);this.fragmentTracker.detectEvictedFragments(J,me,te),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(j){if(!this.loadedmetadata){this.startFragRequested=!1;var J=this.levels?this.levels[j].details:null;J!=null&&J.live?(this.startPosition=-1,this.setStartPosition(J,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(j){var J;this.warn("The loading context changed while buffering fragment ".concat(j.sn," of level ").concat(j.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded((J=this.levelLastLoaded)!=null?J:j.level),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(j,Infinity,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(j,J,te,me){var we=this,je,qe=te.details;if(!qe){this.warn("level.details undefined");return}var it=Object.keys(j.elementaryStreams).reduce(function(hr,tr){var Dr=j.elementaryStreams[tr];if(Dr){var jr=Dr.endPTS-Dr.startPTS;if(jr<=0)return we.warn("Could not parse fragment ".concat(j.sn," ").concat(tr," duration reliably (").concat(jr,")")),hr||!1;var Sn=me?0:On(qe,j,Dr.startPTS,Dr.endPTS,Dr.startDTS,Dr.endDTS);return we.hls.trigger(O.LEVEL_PTS_UPDATED,{details:qe,level:te,drift:Sn,type:tr,frag:j,start:Dr.startPTS,end:Dr.endPTS}),!0}return hr},!1);if(it)te.fragmentError=0;else if(((je=this.transmuxer)==null?void 0:je.error)===null){var Rt=new Error("Found no media in fragment ".concat(j.sn," of level ").concat(j.level," resetting transmuxer to fallback to playlist timing"));if(te.fragmentError===0&&(te.fragmentError++,j.gap=!0,this.fragmentTracker.removeFragment(j),this.fragmentTracker.fragBuffered(j,!0)),this.warn(Rt.message),this.hls.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,error:Rt,frag:j,reason:"Found no media in msn ".concat(j.sn,' of level "').concat(te.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=Bi.PARSED,this.hls.trigger(O.FRAG_PARSED,{frag:j,part:J})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(j){if(j.event==="demuxerWorker"){var J,te,me;this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded((J=(te=this.levelLastLoaded)!=null?te:(me=this.fragCurrent)==null?void 0:me.level)!=null?J:0),this.resetLoadingState()}}},{key:"state",get:function(){return this._state},set:function(j){var J=this._state;J!==j&&(this._state=j,this.log("".concat(J,"->").concat(j)))}}]),L}(Ri);function lo(){return self.SourceBuffer||self.WebKitSourceBuffer}function no(){var he=Tr();if(!he)return!1;var $=lo(),L=he&&typeof he.isTypeSupported=="function"&&he.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),K=!$||$.prototype&&typeof $.prototype.appendBuffer=="function"&&typeof $.prototype.remove=="function";return!!L&&!!K}function co(){var he,$=lo();return typeof($==null||(he=$.prototype)==null?void 0:he.changeType)=="function"}function To(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Ga(){var he=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"}),$=self.URL.createObjectURL(he),L=new self.Worker($);return{worker:L,objectURL:$}}function Po(he){var $=new self.URL(he,self.location.href).href,L=new self.Worker($);return{worker:L,scriptURL:$}}function uo(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:he,id:-1,pid:-1,inputTimeScale:$,sequenceNumber:-1,samples:[],dropped:0}}var ho=function(){function he(){Object(r.a)(this,he),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(s.a)(he,[{key:"resetInitSegment",value:function(L,K,j,J){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.resetContiguity()}},{key:"resetContiguity",value:function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}},{key:"canParse",value:function(L,K){return!1}},{key:"appendFrame",value:function(L,K,j){}},{key:"demux",value:function(L,K){this.cachedData&&(L=Ne(this.cachedData,L),this.cachedData=null);var j=st(L,0),J=j?j.length:0,te,me=this._audioTrack,we=this._id3Track,je=j?Ut(j):void 0,qe=L.length;for((this.basePTS===null||this.frameIndex===0&&E(je))&&(this.basePTS=zo(je,K,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),j&&j.length>0&&we.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:j,type:ei.audioId3,duration:Number.POSITIVE_INFINITY});J<qe;){if(this.canParse(L,J)){var it=this.appendFrame(me,L,J);it?(this.frameIndex++,this.lastPTS=it.sample.pts,J+=it.length,te=J):J=qe}else Ot(L,J)?(j=st(L,J),we.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:j,type:ei.audioId3,duration:Number.POSITIVE_INFINITY}),J+=j.length,te=J):J++;if(J===qe&&te!==qe){var Rt=lt(L,te);this.cachedData?this.cachedData=Ne(this.cachedData,Rt):this.cachedData=Rt}}return{audioTrack:me,videoTrack:uo(),id3Track:we,textTrack:uo()}}},{key:"demuxSampleAes",value:function(L,K,j){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(L){var K=this.cachedData;return K&&(this.cachedData=null,this.demux(K,0)),{audioTrack:this._audioTrack,videoTrack:uo(),id3Track:this._id3Track,textTrack:uo()}}},{key:"destroy",value:function(){}}]),he}(),zo=function($,L,K){if(E($))return $*90;var j=K?K.baseTime*9e4/K.timescale:0;return L*9e4+j};function Oa(he,$,L,K){var j,J,te,me,we=navigator.userAgent.toLowerCase(),je=K,qe=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];j=(($[L+2]&192)>>>6)+1;var it=($[L+2]&60)>>>2;if(it>qe.length-1){he.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(it)});return}return te=($[L+2]&1)<<2,te|=($[L+3]&192)>>>6,H.log("manifest codec:".concat(K,", ADTS type:").concat(j,", samplingIndex:").concat(it)),/firefox/i.test(we)?it>=6?(j=5,me=new Array(4),J=it-3):(j=2,me=new Array(2),J=it):we.indexOf("android")!==-1?(j=2,me=new Array(2),J=it):(j=5,me=new Array(4),K&&(K.indexOf("mp4a.40.29")!==-1||K.indexOf("mp4a.40.5")!==-1)||!K&&it>=6?J=it-3:((K&&K.indexOf("mp4a.40.2")!==-1&&(it>=6&&te===1||/vivaldi/i.test(we))||!K&&te===1)&&(j=2,me=new Array(2)),J=it)),me[0]=j<<3,me[0]|=(it&14)>>1,me[1]|=(it&1)<<7,me[1]|=te<<3,j===5&&(me[1]|=(J&14)>>1,me[2]=(J&1)<<7,me[2]|=2<<2,me[3]=0),{config:me,samplerate:qe[it],channelCount:te,codec:"mp4a.40."+j,manifestCodec:je}}function mo(he,$){return he[$]===255&&(he[$+1]&246)===240}function Do(he,$){return he[$+1]&1?7:9}function Qo(he,$){return(he[$+3]&3)<<11|he[$+4]<<3|(he[$+5]&224)>>>5}function xo(he,$){return $+5<he.length}function Fo(he,$){return $+1<he.length&&mo(he,$)}function Ho(he,$){return xo(he,$)&&mo(he,$)&&Qo(he,$)<=he.length-$}function go(he,$){if(Fo(he,$)){var L=Do(he,$);if($+L>=he.length)return!1;var K=Qo(he,$);if(K<=L)return!1;var j=$+K;return j===he.length||Fo(he,j)}return!1}function qa(he,$,L,K,j){if(!he.samplerate){var J=Oa($,L,K,j);if(!J)return;he.config=J.config,he.samplerate=J.samplerate,he.channelCount=J.channelCount,he.codec=J.codec,he.manifestCodec=J.manifestCodec,H.log("parsed codec:".concat(he.codec,", rate:").concat(J.samplerate,", channels:").concat(J.channelCount))}}function _a(he){return 1024*9e4/he}function at(he,$){var L=Do(he,$);if($+L<=he.length){var K=Qo(he,$)-L;if(K>0)return{headerLength:L,frameLength:K}}}function dr(he,$,L,K,j){var J=_a(he.samplerate),te=K+j*J,me=at($,L),we;if(me){var je=me.frameLength,qe=me.headerLength,it=qe+je,Rt=Math.max(0,L+it-$.length);Rt?(we=new Uint8Array(it-qe),we.set($.subarray(L+qe,$.length),0)):we=$.subarray(L+qe,L+it);var hr={unit:we,pts:te};return Rt||he.samples.push(hr),{sample:hr,length:it,missing:Rt}}var tr=$.length-L;we=new Uint8Array(tr),we.set($.subarray(L,$.length),0);var Dr={unit:we,pts:te};return{sample:Dr,length:tr,missing:-1}}var Kr=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j){var J;return Object(r.a)(this,L),J=$.call(this),J.observer=void 0,J.config=void 0,J.observer=K,J.config=j,J}return Object(s.a)(L,[{key:"resetInitSegment",value:function(j,J,te,me){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,j,J,te,me),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:J,duration:me,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(j,J){return Ho(j,J)}},{key:"appendFrame",value:function(j,J,te){qa(j,this.observer,J,te,j.manifestCodec);var me=dr(j,J,te,this.basePTS,this.frameIndex);if(me&&me.missing===0)return me}}],[{key:"probe",value:function(j){if(!j)return!1;for(var J=st(j,0)||[],te=J.length,me=j.length;te<me;te++)if(go(j,te))return H.log("ADTS sync word found !"),!0;return!1}}]),L}(ho),Br=/\/emsg[-/]ID3/i,Pn=function(){function he($,L){Object(r.a)(this,he),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=L}return Object(s.a)(he,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(L,K,j,J){var te=this.videoTrack=uo("video",1),me=this.audioTrack=uo("audio",1),we=this.txtTrack=uo("text",1);if(this.id3Track=uo("id3",1),this.timeOffset=0,!(L!=null&&L.byteLength))return;var je=Fn(L);if(je.video){var qe=je.video,it=qe.id,Rt=qe.timescale,hr=qe.codec;te.id=it,te.timescale=we.timescale=Rt,te.codec=hr}if(je.audio){var tr=je.audio,Dr=tr.id,jr=tr.timescale,Sn=tr.codec;me.id=Dr,me.timescale=jr,me.codec=Sn}we.id=pn.text,te.sampleDuration=0,te.duration=me.duration=J}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(L,K){this.timeOffset=K;var j=L,J=this.videoTrack,te=this.txtTrack;if(this.config.progressive){this.remainderData&&(j=Ne(this.remainderData,L));var me=_e(j);this.remainderData=me.remainder,J.samples=me.valid||new Uint8Array}else J.samples=j;var we=this.extractID3Track(J,K);return te.samples=Ie(K,J),{videoTrack:J,audioTrack:this.audioTrack,id3Track:we,textTrack:this.txtTrack}}},{key:"flush",value:function(){var L=this.timeOffset,K=this.videoTrack,j=this.txtTrack;K.samples=this.remainderData||new Uint8Array,this.remainderData=null;var J=this.extractID3Track(K,this.timeOffset);return j.samples=Ie(L,K),{videoTrack:K,audioTrack:uo(),id3Track:J,textTrack:uo()}}},{key:"extractID3Track",value:function(L,K){var j=this.id3Track;if(L.samples.length){var J=Qr(L.samples,["emsg"]);J&&J.forEach(function(te){var me=xr(te);if(Br.test(me.schemeIdUri)){var we=E(me.presentationTime)?me.presentationTime/me.timeScale:K+me.presentationTimeDelta/me.timeScale,je=me.eventDuration===4294967295?Number.POSITIVE_INFINITY:me.eventDuration/me.timeScale;je<=.001&&(je=Number.POSITIVE_INFINITY);var qe=me.payload;j.samples.push({data:qe,len:qe.byteLength,dts:we,pts:we,type:ei.emsg,duration:je})}})}return j}},{key:"demuxSampleAes",value:function(L,K,j){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(L){return L=L.length>16384?L.subarray(0,16384):L,Qr(L,["moof"]).length>0}}]),he}(),$r=null,Mr=[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],Gn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],zr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Nn=[0,1,1,4];function Qn(he,$,L,K,j){if(L+24>$.length)return;var J=Zn($,L);if(J&&L+J.frameLength<=$.length){var te=J.samplesPerFrame*9e4/J.sampleRate,me=K+j*te,we={unit:$.subarray(L,L+J.frameLength),pts:me,dts:me};return he.config=[],he.channelCount=J.channelCount,he.samplerate=J.sampleRate,he.samples.push(we),{sample:we,length:J.frameLength,missing:0}}}function Zn(he,$){var L=he[$+1]>>3&3,K=he[$+1]>>1&3,j=he[$+2]>>4&15,J=he[$+2]>>2&3;if(L!==1&&j!==0&&j!==15&&J!==3){var te=he[$+2]>>1&1,me=he[$+3]>>6,we=L===3?3-K:K===3?3:4,je=Mr[we*14+j-1]*1e3,qe=L===3?0:L===2?1:2,it=Gn[qe*3+J],Rt=me===3?1:2,hr=zr[L][K],tr=Nn[K],Dr=hr*8*tr,jr=Math.floor(hr*je/it+te)*tr;if($r===null){var Sn=navigator.userAgent||"",yn=Sn.match(/Chrome\/(\d+)/i);$r=yn?parseInt(yn[1]):0}var Mn=!!$r&&$r<=87;return Mn&&K===2&&je>=224e3&&me===0&&(he[$+3]=he[$+3]|128),{sampleRate:it,channelCount:Rt,frameLength:jr,samplesPerFrame:Dr}}}function Yn(he,$){return he[$]===255&&(he[$+1]&224)===224&&(he[$+1]&6)!==0}function ui(he,$){return $+1<he.length&&Yn(he,$)}function ai(he,$){var L=4;return Yn(he,$)&&L<=he.length-$}function hi(he,$){if($+1<he.length&&Yn(he,$)){var L=4,K=Zn(he,$),j=L;K!=null&&K.frameLength&&(j=K.frameLength);var J=$+j;return J===he.length||ui(he,J)}return!1}var pi=function(){function he($){Object(r.a)(this,he),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=$,this.bytesAvailable=$.byteLength,this.word=0,this.bitsAvailable=0}return Object(s.a)(he,[{key:"loadWord",value:function(){var L=this.data,K=this.bytesAvailable,j=L.byteLength-K,J=new Uint8Array(4),te=Math.min(4,K);if(te===0)throw new Error("no bytes available");J.set(L.subarray(j,j+te)),this.word=new DataView(J.buffer).getUint32(0),this.bitsAvailable=te*8,this.bytesAvailable-=te}},{key:"skipBits",value:function(L){var K;L=Math.min(L,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>L?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,K=L>>3,L-=K<<3,this.bytesAvailable-=K,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)}},{key:"readBits",value:function(L){var K=Math.min(this.bitsAvailable,L),j=this.word>>>32-K;if(L>32&&H.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=K,this.bitsAvailable>0)this.word<<=K;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return K=L-K,K>0&&this.bitsAvailable?j<<K|this.readBits(K):j}},{key:"skipLZ",value:function(){var L;for(L=0;L<this.bitsAvailable;++L)if((this.word&2147483648>>>L)!==0)return this.word<<=L,this.bitsAvailable-=L,L;return this.loadWord(),L+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 L=this.skipLZ();return this.readBits(L+1)-1}},{key:"readEG",value:function(){var L=this.readUEG();return 1&L?1+L>>>1:-1*(L>>>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(L){for(var K=8,j=8,J,te=0;te<L;te++)j!==0&&(J=this.readEG(),j=(K+J+256)%256),K=j===0?K:j}},{key:"readSPS",value:function(){var L=0,K=0,j=0,J=0,te,me,we,je=this.readUByte.bind(this),qe=this.readBits.bind(this),it=this.readUEG.bind(this),Rt=this.readBoolean.bind(this),hr=this.skipBits.bind(this),tr=this.skipEG.bind(this),Dr=this.skipUEG.bind(this),jr=this.skipScalingList.bind(this);je();var Sn=je();if(qe(5),hr(3),je(),Dr(),Sn===100||Sn===110||Sn===122||Sn===244||Sn===44||Sn===83||Sn===86||Sn===118||Sn===128){var yn=it();if(yn===3&&hr(1),Dr(),Dr(),hr(1),Rt())for(me=yn!==3?8:12,we=0;we<me;we++)Rt()&&(we<6?jr(16):jr(64))}Dr();var Mn=it();if(Mn===0)it();else if(Mn===1)for(hr(1),tr(),tr(),te=it(),we=0;we<te;we++)tr();Dr(),hr(1);var si=it(),Xi=it(),Li=qe(1);Li===0&&hr(1),hr(1),Rt()&&(L=it(),K=it(),j=it(),J=it());var Pi=[1,1];if(Rt()&&Rt()){var Aa=je();switch(Aa){case 1:Pi=[1,1];break;case 2:Pi=[12,11];break;case 3:Pi=[10,11];break;case 4:Pi=[16,11];break;case 5:Pi=[40,33];break;case 6:Pi=[24,11];break;case 7:Pi=[20,11];break;case 8:Pi=[32,11];break;case 9:Pi=[80,33];break;case 10:Pi=[18,11];break;case 11:Pi=[15,11];break;case 12:Pi=[64,33];break;case 13:Pi=[160,99];break;case 14:Pi=[4,3];break;case 15:Pi=[3,2];break;case 16:Pi=[2,1];break;case 255:{Pi=[je()<<8|je(),je()<<8|je()];break}}}return{width:Math.ceil((si+1)*16-L*2-K*2),height:(2-Li)*(Xi+1)*16-(Li?2:4)*(j+J),pixelRatio:Pi}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),he}(),zi=function(){function he($,L,K){Object(r.a)(this,he),this.keyData=void 0,this.decrypter=void 0,this.keyData=K,this.decrypter=new Va(L,{removePKCS7Padding:!1})}return Object(s.a)(he,[{key:"decryptBuffer",value:function(L){return this.decrypter.decrypt(L,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(L,K,j){var J=this,te=L[K].unit;if(te.length<=16)return;var me=te.subarray(16,te.length-te.length%16),we=me.buffer.slice(me.byteOffset,me.byteOffset+me.length);this.decryptBuffer(we).then(function(je){var qe=new Uint8Array(je);te.set(qe,16),J.decrypter.isSync()||J.decryptAacSamples(L,K+1,j)})}},{key:"decryptAacSamples",value:function(L,K,j){for(;;K++){if(K>=L.length){j();return}if(L[K].unit.length<32)continue;if(this.decryptAacSample(L,K,j),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(L){for(var K=Math.floor((L.length-48)/160)*16+16,j=new Int8Array(K),J=0,te=32;te<L.length-16;te+=160,J+=16)j.set(L.subarray(te,te+16),J);return j}},{key:"getAvcDecryptedUnit",value:function(L,K){for(var j=new Uint8Array(K),J=0,te=32;te<L.length-16;te+=160,J+=16)L.set(j.subarray(J,J+16),te);return L}},{key:"decryptAvcSample",value:function(L,K,j,J,te){var me=this,we=kt(te.data),je=this.getAvcEncryptedData(we);this.decryptBuffer(je.buffer).then(function(qe){te.data=me.getAvcDecryptedUnit(we,qe),me.decrypter.isSync()||me.decryptAvcSamples(L,K,j+1,J)})}},{key:"decryptAvcSamples",value:function(L,K,j,J){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;K++,j=0){if(K>=L.length){J();return}for(var te=L[K].units;!(j>=te.length);j++){var me=te[j];if(me.data.length<=48||me.type!==1&&me.type!==5)continue;if(this.decryptAvcSample(L,K,j,J,me),!this.decrypter.isSync())return}}}}]),he}(),Ci=188,na=function(){function he($,L,K){Object(r.a)(this,he),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=$,this.config=L,this.typeSupported=K}return Object(s.a)(he,[{key:"resetInitSegment",value:function(L,K,j,J){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=he.createTrack("video"),this._audioTrack=he.createTrack("audio",J),this._id3Track=he.createTrack("id3"),this._txtTrack=he.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=K,this.videoCodec=j,this._duration=J}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var L=this._audioTrack,K=this._avcTrack,j=this._id3Track;L&&(L.pesData=null),K&&(K.pesData=null),j&&(j.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(L,K){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;j||(this.sampleAes=null);var te,me=this._avcTrack,we=this._audioTrack,je=this._id3Track,qe=this._txtTrack,it=me.pid,Rt=me.pesData,hr=we.pid,tr=je.pid,Dr=we.pesData,jr=je.pesData,Sn=null,yn=this.pmtParsed,Mn=this._pmtId,si=L.length;if(this.remainderData&&(L=Ne(this.remainderData,L),si=L.length,this.remainderData=null),si<Ci&&!J)return this.remainderData=L,{audioTrack:we,videoTrack:me,id3Track:je,textTrack:qe};var Xi=Math.max(0,he.syncOffset(L));si-=(si-Xi)%Ci,si<L.byteLength&&!J&&(this.remainderData=new Uint8Array(L.buffer,si,L.buffer.byteLength-si));for(var Li=0,Pi=Xi;Pi<si;Pi+=Ci)if(L[Pi]===71){var Aa=!!(L[Pi+1]&64),Na=pa(L,Pi),Sa=(L[Pi+3]&48)>>4,aa=void 0;if(Sa>1){if(aa=Pi+5+L[Pi+4],aa===Pi+Ci)continue}else aa=Pi+4;switch(Na){case it:Aa&&(Rt&&(te=Ca(Rt))&&this.parseAVCPES(me,qe,te,!1),Rt={data:[],size:0}),Rt&&(Rt.data.push(L.subarray(aa,Pi+Ci)),Rt.size+=Pi+Ci-aa);break;case hr:if(Aa){if(Dr&&(te=Ca(Dr)))switch(we.segmentCodec){case"aac":this.parseAACPES(we,te);break;case"mp3":this.parseMPEGPES(we,te);break}Dr={data:[],size:0}}Dr&&(Dr.data.push(L.subarray(aa,Pi+Ci)),Dr.size+=Pi+Ci-aa);break;case tr:Aa&&(jr&&(te=Ca(jr))&&this.parseID3PES(je,te),jr={data:[],size:0}),jr&&(jr.data.push(L.subarray(aa,Pi+Ci)),jr.size+=Pi+Ci-aa);break;case 0:Aa&&(aa+=L[aa]+1),Mn=this._pmtId=ca(L,aa);break;case Mn:{Aa&&(aa+=L[aa]+1);var so=wa(L,aa,this.typeSupported,j);it=so.avc,it>0&&(me.pid=it),hr=so.audio,hr>0&&(we.pid=hr,we.segmentCodec=so.segmentCodec),tr=so.id3,tr>0&&(je.pid=tr),Sn!==null&&!yn&&(H.warn("MPEG-TS PMT found at ".concat(Pi," after unknown PID '").concat(Sn,"'. Backtracking to sync byte @").concat(Xi," to parse all TS packets.")),Sn=null,Pi=Xi-188),yn=this.pmtParsed=!0;break}case 17:case 8191:break;default:Sn=Na;break}}else Li++;if(Li>0){var os=new Error("Found ".concat(Li," TS packet/s that do not start with 0x47"));this.observer.emit(O.ERROR,O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,error:os,reason:os.message})}me.pesData=Rt,we.pesData=Dr,je.pesData=jr;var $o={audioTrack:we,videoTrack:me,id3Track:je,textTrack:qe};return J&&this.extractRemainingSamples($o),$o}},{key:"flush",value:function(){var L=this.remainderData;this.remainderData=null;var K;return L?K=this.demux(L,-1,!1,!0):K={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(K),this.sampleAes?this.decrypt(K,this.sampleAes):K}},{key:"extractRemainingSamples",value:function(L){var K=L.audioTrack,j=L.videoTrack,J=L.id3Track,te=L.textTrack,me=j.pesData,we=K.pesData,je=J.pesData,qe;if(me&&(qe=Ca(me))?(this.parseAVCPES(j,te,qe,!0),j.pesData=null):j.pesData=me,we&&(qe=Ca(we))){switch(K.segmentCodec){case"aac":this.parseAACPES(K,qe);break;case"mp3":this.parseMPEGPES(K,qe);break}K.pesData=null}else we!=null&&we.size&&H.log("last AAC PES packet truncated,might overlap between fragments"),K.pesData=we;je&&(qe=Ca(je))?(this.parseID3PES(J,qe),J.pesData=null):J.pesData=je}},{key:"demuxSampleAes",value:function(L,K,j){var J=this.demux(L,j,!0,!this.config.progressive),te=this.sampleAes=new zi(this.observer,this.config,K);return this.decrypt(J,te)}},{key:"decrypt",value:function(L,K){return new Promise(function(j){var J=L.audioTrack,te=L.videoTrack;J.samples&&J.segmentCodec==="aac"?K.decryptAacSamples(J.samples,0,function(){te.samples?K.decryptAvcSamples(te.samples,0,0,function(){j(L)}):j(L)}):te.samples&&K.decryptAvcSamples(te.samples,0,0,function(){j(L)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(L,K,j,J){var te=this,me=this.parseAVCNALu(L,j.data),we=this.avcSample,je,qe=!1;j.data=null,we&&me.length&&!L.audFound&&(No(we,L),we=this.avcSample=La(!1,j.pts,j.dts,"")),me.forEach(function(it){var Rt;switch(it.type){case 1:{var hr=!1;je=!0;var tr=it.data;if(qe&&tr.length>4){var Dr=new pi(tr).readSliceType();(Dr===2||Dr===4||Dr===7||Dr===9)&&(hr=!0)}if(hr){var jr;(jr=we)!=null&&jr.frame&&!we.key&&(No(we,L),we=te.avcSample=null)}we||(we=te.avcSample=La(!0,j.pts,j.dts,"")),we.frame=!0,we.key=hr;break}case 5:je=!0,(Rt=we)!=null&&Rt.frame&&!we.key&&(No(we,L),we=te.avcSample=null),we||(we=te.avcSample=La(!0,j.pts,j.dts,"")),we.key=!0,we.frame=!0;break;case 6:{je=!0,gt(it.data,1,j.pts,K.samples);break}case 7:if(je=!0,qe=!0,!L.sps){var Sn=it.data,yn=new pi(Sn),Mn=yn.readSPS();L.width=Mn.width,L.height=Mn.height,L.pixelRatio=Mn.pixelRatio,L.sps=[Sn],L.duration=te._duration;for(var si=Sn.subarray(1,4),Xi="avc1.",Li=0;Li<3;Li++){var Pi=si[Li].toString(16);Pi.length<2&&(Pi="0"+Pi),Xi+=Pi}L.codec=Xi}break;case 8:je=!0,L.pps||(L.pps=[it.data]);break;case 9:je=!1,L.audFound=!0,we&&No(we,L),we=te.avcSample=La(!1,j.pts,j.dts,"");break;case 12:je=!0;break;default:je=!1,we&&(we.debug+="unknown NAL "+it.type+" ");break}if(we&&je){var Aa=we.units;Aa.push(it)}}),J&&we&&(No(we,L),this.avcSample=null)}},{key:"getLastNalUnit",value:function(L){var K,j=this.avcSample,J;if((!j||j.units.length===0)&&(j=L[L.length-1]),(K=j)!=null&&K.units){var te=j.units;J=te[te.length-1]}return J}},{key:"parseAVCNALu",value:function(L,K){var j=K.byteLength,J=L.naluState||0,te=J,me=[],we=0,je,qe,it,Rt=-1,hr=0;for(J===-1&&(Rt=0,hr=K[0]&31,J=0,we=1);we<j;){if(je=K[we++],!J){J=je?0:1;continue}if(J===1){J=je?0:2;continue}if(!je)J=3;else if(je===1){if(Rt>=0){var tr={data:K.subarray(Rt,we-J-1),type:hr};me.push(tr)}else{var Dr=this.getLastNalUnit(L.samples);if(Dr&&(te&&we<=4-te&&(Dr.state&&(Dr.data=Dr.data.subarray(0,Dr.data.byteLength-te))),qe=we-J-1,qe>0)){var jr=new Uint8Array(Dr.data.byteLength+qe);jr.set(Dr.data,0),jr.set(K.subarray(0,qe),Dr.data.byteLength),Dr.data=jr,Dr.state=0}}we<j?(it=K[we]&31,Rt=we,hr=it,J=0):J=-1}else J=0}if(Rt>=0&&J>=0){var Sn={data:K.subarray(Rt,j),type:hr,state:J};me.push(Sn)}if(me.length===0){var yn=this.getLastNalUnit(L.samples);if(yn){var Mn=new Uint8Array(yn.data.byteLength+K.byteLength);Mn.set(yn.data,0),Mn.set(K,yn.data.byteLength),yn.data=Mn}}return L.naluState=J,me}},{key:"parseAACPES",value:function(L,K){var j=0,J=this.aacOverFlow,te=K.data;if(J){this.aacOverFlow=null;var me=J.missing,we=J.sample.unit.byteLength;if(me===-1){var je=new Uint8Array(we+te.byteLength);je.set(J.sample.unit,0),je.set(te,we),te=je}else{var qe=we-me;J.sample.unit.set(te.subarray(0,me),qe),L.samples.push(J.sample),j=J.missing}}var it,Rt;for(it=j,Rt=te.length;it<Rt-1&&!Fo(te,it);it++);if(it!==j){var hr,tr=it<Rt-1;tr?hr="AAC PES did not start with ADTS header,offset:".concat(it):hr="No ADTS header found in AAC PES";var Dr=new Error(hr);if(H.warn("parsing error: ".concat(hr)),this.observer.emit(O.ERROR,O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,levelRetry:tr,error:Dr,reason:hr}),!tr)return}qa(L,this.observer,te,it,this.audioCodec);var jr;if(K.pts!==void 0)jr=K.pts;else if(J){var Sn=_a(L.samplerate);jr=J.sample.pts+Sn}else{H.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var yn=0,Mn;it<Rt;)if(Mn=dr(L,te,it,jr,yn),it+=Mn.length,Mn.missing){this.aacOverFlow=Mn;break}else for(yn++;it<Rt-1&&!Fo(te,it);it++);}},{key:"parseMPEGPES",value:function(L,K){var j=K.data,J=j.length,te=0,me=0,we=K.pts;if(we===void 0){H.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;me<J;)if(ui(j,me)){var je=Qn(L,j,me,we,te);if(je)me+=je.length,te++;else break}else me++}},{key:"parseID3PES",value:function(L,K){if(K.pts===void 0){H.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var j=x({},K,{type:this._avcTrack?ei.emsg:ei.audioId3,duration:Number.POSITIVE_INFINITY});L.samples.push(j)}}],[{key:"probe",value:function(L){var K=he.syncOffset(L);return K>0&&H.warn("MPEG2-TS detected but first sync word found @ offset ".concat(K)),K!==-1}},{key:"syncOffset",value:function(L){for(var K=L.length,j=Math.min(Ci*5,L.length-Ci)+1,J=0;J<j;){for(var te=!1,me=-1,we=0,je=J;je<K;je+=Ci)if(L[je]===71){if(we++,me===-1&&(me=je,me!==0&&(j=Math.min(me+Ci*99,L.length-Ci)+1)),te||(te=pa(L,je)===0),te&&we>1&&(me===0&&we>2||je+Ci>j))return me}else{if(we)return-1;break}J++}return-1}},{key:"createTrack",value:function(L,K){return{container:L==="video"||L==="audio"?"video/mp2t":void 0,type:L,id:pn[L],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:L==="audio"?K:void 0}}}]),he}();function La(he,$,L,K){return{key:he,frame:!1,pts:$,dts:L,units:[],debug:K,length:0}}function pa(he,$){return((he[$+1]&31)<<8)+he[$+2]}function ca(he,$){return(he[$+10]&31)<<8|he[$+11]}function wa(he,$,L,K){var j={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},J=(he[$+1]&15)<<8|he[$+2],te=$+3+J-4,me=(he[$+10]&15)<<8|he[$+11];for($+=12+me;$<te;){var we=pa(he,$);switch(he[$]){case 207:if(!K){H.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:j.audio===-1&&(j.audio=we);break;case 21:j.id3===-1&&(j.id3=we);break;case 219:if(!K){H.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:j.avc===-1&&(j.avc=we);break;case 3:case 4:L.mpeg!==!0&&L.mp3!==!0?H.log("MPEG audio found, not supported in this browser"):j.audio===-1&&(j.audio=we,j.segmentCodec="mp3");break;case 36:H.warn("Unsupported HEVC stream type found");break}$+=((he[$+3]&15)<<8|he[$+4])+5}return j}function Ca(he){var $=0,L,K,j,J,te,me=he.data;if(!he||he.size===0)return null;for(;me[0].length<19&&me.length>1;){var we=new Uint8Array(me[0].length+me[1].length);we.set(me[0]),we.set(me[1],me[0].length),me[0]=we,me.splice(1,1)}L=me[0];var je=(L[0]<<16)+(L[1]<<8)+L[2];if(je===1){if(K=(L[4]<<8)+L[5],K&&K>he.size-6)return null;var qe=L[7];qe&192&&(J=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,qe&64?(te=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,J-te>60*9e4&&(H.warn("".concat(Math.round((J-te)/9e4),"s delta between PTS and DTS, align them")),J=te)):te=J),j=L[8];var it=j+9;if(he.size<=it)return null;he.size-=it;for(var Rt=new Uint8Array(he.size),hr=0,tr=me.length;hr<tr;hr++){L=me[hr];var Dr=L.byteLength;if(it)if(it>Dr){it-=Dr;continue}else L=L.subarray(it),Dr-=it,it=0;Rt.set(L,$),$+=Dr}return K&&(K-=j+3),{data:Rt,pts:J,dts:te,len:K}}return null}function No(he,$){if(he.units.length&&he.frame){if(he.pts===void 0){var L=$.samples,K=L.length;if(K){var j=L[K-1];he.pts=j.pts,he.dts=j.dts}else{$.dropped++;return}}$.samples.push(he)}he.debug.length&&H.log(he.pts+"/"+he.dts+":"+he.debug)}var fo=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(){return Object(r.a)(this,L),$.apply(this,arguments)}return Object(s.a)(L,[{key:"resetInitSegment",value:function(j,J,te,me){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,j,J,te,me),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:J,duration:me,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(j,J){return ai(j,J)}},{key:"appendFrame",value:function(j,J,te){return this.basePTS===null?void 0:Qn(j,J,te,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(j){if(!j)return!1;for(var J=st(j,0)||[],te=J.length,me=j.length;te<me;te++)if(hi(j,te))return H.log("MPEG Audio sync word found !"),!0;return!1}}]),L}(ho),ea=function(){function he(){Object(r.a)(this,he)}return Object(s.a)(he,null,[{key:"getSilentFrame",value:function(L,K){switch(L){case"mp4a.40.2":if(K===1)return new Uint8Array([0,200,0,128,35,128]);if(K===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(K===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(K===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(K===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(K===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(K===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(K===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(K===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}}]),he}(),ua=Math.pow(2,32)-1,da=function(){function he(){Object(r.a)(this,he)}return Object(s.a)(he,null,[{key:"init",value:function(){he.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 L;for(L in he.types)he.types.hasOwnProperty(L)&&(he.types[L]=[L.charCodeAt(0),L.charCodeAt(1),L.charCodeAt(2),L.charCodeAt(3)]);var K=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]),j=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]);he.HDLR_TYPES={video:K,audio:j};var J=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),te=new Uint8Array([0,0,0,0,0,0,0,0]);he.STTS=he.STSC=he.STCO=te,he.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),he.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),he.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),he.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var me=new Uint8Array([105,115,111,109]),we=new Uint8Array([97,118,99,49]),je=new Uint8Array([0,0,0,1]);he.FTYP=he.box(he.types.ftyp,me,je,me,we),he.DINF=he.box(he.types.dinf,he.box(he.types.dref,J))}},{key:"box",value:function(L){for(var K=8,j=arguments.length,J=new Array(j>1?j-1:0),te=1;te<j;te++)J[te-1]=arguments[te];for(var me=J.length,we=me;me--;)K+=J[me].byteLength;var je=new Uint8Array(K);for(je[0]=K>>24&255,je[1]=K>>16&255,je[2]=K>>8&255,je[3]=K&255,je.set(L,4),me=0,K=8;me<we;me++)je.set(J[me],K),K+=J[me].byteLength;return je}},{key:"hdlr",value:function(L){return he.box(he.types.hdlr,he.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return he.box(he.types.mdat,L)}},{key:"mdhd",value:function(L,K){K*=L;var j=Math.floor(K/(ua+1)),J=Math.floor(K%(ua+1));return he.box(he.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,j>>24,j>>16&255,j>>8&255,j&255,J>>24,J>>16&255,J>>8&255,J&255,85,196,0,0]))}},{key:"mdia",value:function(L){return he.box(he.types.mdia,he.mdhd(L.timescale,L.duration),he.hdlr(L.type),he.minf(L))}},{key:"mfhd",value:function(L){return he.box(he.types.mfhd,new Uint8Array([0,0,0,0,L>>24,L>>16&255,L>>8&255,L&255]))}},{key:"minf",value:function(L){return L.type==="audio"?he.box(he.types.minf,he.box(he.types.smhd,he.SMHD),he.DINF,he.stbl(L)):he.box(he.types.minf,he.box(he.types.vmhd,he.VMHD),he.DINF,he.stbl(L))}},{key:"moof",value:function(L,K,j){return he.box(he.types.moof,he.mfhd(L),he.traf(j,K))}},{key:"moov",value:function(L){for(var K=L.length,j=[];K--;)j[K]=he.trak(L[K]);return he.box.apply(null,[he.types.moov,he.mvhd(L[0].timescale,L[0].duration)].concat(j).concat(he.mvex(L)))}},{key:"mvex",value:function(L){for(var K=L.length,j=[];K--;)j[K]=he.trex(L[K]);return he.box.apply(null,[he.types.mvex].concat(j))}},{key:"mvhd",value:function(L,K){K*=L;var j=Math.floor(K/(ua+1)),J=Math.floor(K%(ua+1)),te=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,L>>24&255,L>>16&255,L>>8&255,L&255,j>>24,j>>16&255,j>>8&255,j&255,J>>24,J>>16&255,J>>8&255,J&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 he.box(he.types.mvhd,te)}},{key:"sdtp",value:function(L){var K=L.samples||[],j=new Uint8Array(4+K.length),J,te;for(J=0;J<K.length;J++)te=K[J].flags,j[J+4]=te.dependsOn<<4|te.isDependedOn<<2|te.hasRedundancy;return he.box(he.types.sdtp,j)}},{key:"stbl",value:function(L){return he.box(he.types.stbl,he.stsd(L),he.box(he.types.stts,he.STTS),he.box(he.types.stsc,he.STSC),he.box(he.types.stsz,he.STSZ),he.box(he.types.stco,he.STCO))}},{key:"avc1",value:function(L){var K=[],j=[],J,te,me;for(J=0;J<L.sps.length;J++)te=L.sps[J],me=te.byteLength,K.push(me>>>8&255),K.push(me&255),K=K.concat(Array.prototype.slice.call(te));for(J=0;J<L.pps.length;J++)te=L.pps[J],me=te.byteLength,j.push(me>>>8&255),j.push(me&255),j=j.concat(Array.prototype.slice.call(te));var we=he.box(he.types.avcC,new Uint8Array([1,K[3],K[4],K[5],252|3,224|L.sps.length].concat(K).concat([L.pps.length]).concat(j))),je=L.width,qe=L.height,it=L.pixelRatio[0],Rt=L.pixelRatio[1];return he.box(he.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,je>>8&255,je&255,qe>>8&255,qe&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]),we,he.box(he.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),he.box(he.types.pasp,new Uint8Array([it>>24,it>>16&255,it>>8&255,it&255,Rt>>24,Rt>>16&255,Rt>>8&255,Rt&255])))}},{key:"esds",value:function(L){var K=L.config.length;return new Uint8Array([0,0,0,0,3,23+K,0,1,0,4,15+K,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([K]).concat(L.config).concat([6,1,2]))}},{key:"mp4a",value:function(L){var K=L.samplerate;return he.box(he.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,K>>8&255,K&255,0,0]),he.box(he.types.esds,he.esds(L)))}},{key:"mp3",value:function(L){var K=L.samplerate;return he.box(he.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,L.channelCount,0,16,0,0,0,0,K>>8&255,K&255,0,0]))}},{key:"stsd",value:function(L){return L.type==="audio"?L.segmentCodec==="mp3"&&L.codec==="mp3"?he.box(he.types.stsd,he.STSD,he.mp3(L)):he.box(he.types.stsd,he.STSD,he.mp4a(L)):he.box(he.types.stsd,he.STSD,he.avc1(L))}},{key:"tkhd",value:function(L){var K=L.id,j=L.duration*L.timescale,J=L.width,te=L.height,me=Math.floor(j/(ua+1)),we=Math.floor(j%(ua+1));return he.box(he.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,K>>24&255,K>>16&255,K>>8&255,K&255,0,0,0,0,me>>24,me>>16&255,me>>8&255,me&255,we>>24,we>>16&255,we>>8&255,we&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,J>>8&255,J&255,0,0,te>>8&255,te&255,0,0]))}},{key:"traf",value:function(L,K){var j=he.sdtp(L),J=L.id,te=Math.floor(K/(ua+1)),me=Math.floor(K%(ua+1));return he.box(he.types.traf,he.box(he.types.tfhd,new Uint8Array([0,0,0,0,J>>24,J>>16&255,J>>8&255,J&255])),he.box(he.types.tfdt,new Uint8Array([1,0,0,0,te>>24,te>>16&255,te>>8&255,te&255,me>>24,me>>16&255,me>>8&255,me&255])),he.trun(L,j.length+16+20+8+16+8+8),j)}},{key:"trak",value:function(L){return L.duration=L.duration||4294967295,he.box(he.types.trak,he.tkhd(L),he.mdia(L))}},{key:"trex",value:function(L){var K=L.id;return he.box(he.types.trex,new Uint8Array([0,0,0,0,K>>24,K>>16&255,K>>8&255,K&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(L,K){var j=L.samples||[],J=j.length,te=12+16*J,me=new Uint8Array(te),we,je,qe,it,Rt,hr;for(K+=8+te,me.set([L.type==="video"?1:0,0,15,1,J>>>24&255,J>>>16&255,J>>>8&255,J&255,K>>>24&255,K>>>16&255,K>>>8&255,K&255],0),we=0;we<J;we++)je=j[we],qe=je.duration,it=je.size,Rt=je.flags,hr=je.cts,me.set([qe>>>24&255,qe>>>16&255,qe>>>8&255,qe&255,it>>>24&255,it>>>16&255,it>>>8&255,it&255,Rt.isLeading<<2|Rt.dependsOn,Rt.isDependedOn<<6|Rt.hasRedundancy<<4|Rt.paddingValue<<1|Rt.isNonSync,Rt.degradPrio&240<<8,Rt.degradPrio&15,hr>>>24&255,hr>>>16&255,hr>>>8&255,hr&255],12+16*we);return he.box(he.types.trun,me)}},{key:"initSegment",value:function(L){he.types||he.init();var K=he.moov(L),j=new Uint8Array(he.FTYP.byteLength+K.byteLength);return j.set(he.FTYP),j.set(K,he.FTYP.byteLength),j}}]),he}();da.types=void 0,da.HDLR_TYPES=void 0,da.STTS=void 0,da.STSC=void 0,da.STCO=void 0,da.STSZ=void 0,da.VMHD=void 0,da.SMHD=void 0,da.STSD=void 0,da.FTYP=void 0,da.DINF=void 0;var Ra=9e4;function Za(he,$){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,j=he*$*L;return K?Math.round(j):j}function Qa(he,$){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Za(he,$,1/L,K)}function oo(he){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Za(he,1e3,1/Ra,$)}function bo(he){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Za(he,Ra,1/$)}var es=10*1e3,ss=1024,Rs=1152,Ko=null,qo=null,to=function(){function he($,L,K){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,he),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=$,this.config=L,this.typeSupported=K,this.ISGenerated=!1,Ko===null){var J=navigator.userAgent||"",te=J.match(/Chrome\/(\d+)/i);Ko=te?parseInt(te[1]):0}if(qo===null){var me=navigator.userAgent.match(/Safari\/(\d+)/i);qo=me?parseInt(me[1]):0}}return Object(s.a)(he,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){H.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L}},{key:"resetNextTimestamp",value:function(){H.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){H.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(L){var K=!1,j=L.reduce(function(J,te){var me=te.pts-J;return me<-4294967296?(K=!0,Xa(J,te.pts)):me>0?J:te.pts},L[0].pts);return K&&H.debug("PTS rollover detected"),j}},{key:"remux",value:function(L,K,j,J,te,me,we,je){var qe,it,Rt,hr,tr,Dr,jr=te,Sn=te,yn=L.pid>-1,Mn=K.pid>-1,si=K.samples.length,Xi=L.samples.length>0,Li=we&&si>0||si>1,Pi=(!yn||Xi)&&(!Mn||Li)||this.ISGenerated||we;if(Pi){this.ISGenerated||(Rt=this.generateIS(L,K,te,me));var Aa=this.isVideoContiguous,Na=-1,Sa;if(Li&&(Na=Wa(K.samples),!Aa&&this.config.forceKeyFrameOnDiscontinuity))if(Dr=!0,Na>0){H.warn("[mp4-remuxer]: Dropped ".concat(Na," out of ").concat(si," video samples due to a missing keyframe"));var aa=this.getVideoStartPts(K.samples);K.samples=K.samples.slice(Na),K.dropped+=Na,Sn+=(K.samples[0].pts-aa)/K.inputTimeScale,Sa=Sn}else Na===-1&&(H.warn("[mp4-remuxer]: No keyframe found out of ".concat(si," video samples")),Dr=!1);if(this.ISGenerated){if(Xi&&Li){var so=this.getVideoStartPts(K.samples),os=Xa(L.samples[0].pts,so)-so,$o=os/K.inputTimeScale;jr+=Math.max(0,$o),Sn+=Math.max(0,-$o)}if(Xi){if(L.samplerate||(H.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Rt=this.generateIS(L,K,te,me)),it=this.remuxAudio(L,jr,this.isAudioContiguous,me,Mn||Li||je===Er.AUDIO?Sn:void 0),Li){var Bs=it?it.endPTS-it.startPTS:0;K.inputTimeScale||(H.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Rt=this.generateIS(L,K,te,me)),qe=this.remuxVideo(K,Sn,Aa,Bs)}}else Li&&(qe=this.remuxVideo(K,Sn,Aa,0));qe&&(qe.firstKeyFrame=Na,qe.independent=Na!==-1,qe.firstKeyFramePTS=Sa)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(j.samples.length&&(tr=Jo(j,te,this._initPTS,this._initDTS)),J.samples.length&&(hr=hs(J,te,this._initPTS))),{audio:it,video:qe,initSegment:Rt,independent:Dr,text:hr,id3:tr}}},{key:"generateIS",value:function(L,K,j,J){var te=L.samples,me=K.samples,we=this.typeSupported,je={},qe=this._initPTS,it=!qe||J,Rt="audio/mp4",hr,tr,Dr;if(it&&(hr=tr=Infinity),L.config&&te.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":we.mpeg?(Rt="audio/mpeg",L.codec=""):we.mp3&&(L.codec="mp3");break}je.audio={id:"audio",container:Rt,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&we.mpeg?new Uint8Array(0):da.initSegment([L]),metadata:{channelCount:L.channelCount}},it&&(Dr=L.inputTimeScale,!qe||Dr!==qe.timescale?hr=tr=te[0].pts-Math.round(Dr*j):it=!1)}if(K.sps&&K.pps&&me.length&&(K.timescale=K.inputTimeScale,je.video={id:"main",container:"video/mp4",codec:K.codec,initSegment:da.initSegment([K]),metadata:{width:K.width,height:K.height}},it))if(Dr=K.inputTimeScale,!qe||Dr!==qe.timescale){var jr=this.getVideoStartPts(me),Sn=Math.round(Dr*j);tr=Math.min(tr,Xa(me[0].dts,jr)-Sn),hr=Math.min(hr,jr-Sn)}else it=!1;if(Object.keys(je).length)return this.ISGenerated=!0,it?(this._initPTS={baseTime:hr,timescale:Dr},this._initDTS={baseTime:tr,timescale:Dr}):hr=Dr=void 0,{tracks:je,initPTS:hr,timescale:Dr}}},{key:"remuxVideo",value:function(L,K,j,J){var te=L.inputTimeScale,me=L.samples,we=[],je=me.length,qe=this._initPTS,it=this.nextAvcDts,Rt=8,hr=this.videoSampleDuration,tr,Dr,jr=Number.POSITIVE_INFINITY,Sn=Number.NEGATIVE_INFINITY,yn=!1;if(!j||it===null){var Mn=K*te,si=me[0].pts-Xa(me[0].dts,me[0].pts);it=Mn-si}for(var Xi=qe.baseTime*te/qe.timescale,Li=0;Li<je;Li++){var Pi=me[Li];Pi.pts=Xa(Pi.pts-Xi,it),Pi.dts=Xa(Pi.dts-Xi,it),Pi.dts<me[Li>0?Li-1:Li].dts&&(yn=!0)}yn&&me.sort(function(rr,pr){var Tn=rr.dts-pr.dts,zn=rr.pts-pr.pts;return Tn||zn}),tr=me[0].dts,Dr=me[me.length-1].dts;var Aa=Dr-tr,Na=Aa?Math.round(Aa/(je-1)):hr||L.inputTimeScale/30;if(j){var Sa=tr-it,aa=Sa>Na,so=Sa<-1;if((aa||so)&&(aa?H.warn("AVC: ".concat(oo(Sa,!0)," ms (").concat(Sa,"dts) hole between fragments detected, filling it")):H.warn("AVC: ".concat(oo(-Sa,!0)," ms (").concat(Sa,"dts) overlapping between fragments detected")),!so||it>=me[0].pts)){tr=it;var os=me[0].pts-Sa;me[0].dts=tr,me[0].pts=os,H.log("Video: First PTS/DTS adjusted: ".concat(oo(os,!0),"/").concat(oo(tr,!0),", delta: ").concat(oo(Sa,!0)," ms"))}}tr=Math.max(0,tr);for(var $o=0,Bs=0,ve=0;ve<je;ve++){for(var Ke=me[ve],ht=Ke.units,Vt=ht.length,Cr=0,Xr=0;Xr<Vt;Xr++)Cr+=ht[Xr].data.length;Bs+=Cr,$o+=Vt,Ke.length=Cr,Ke.dts=Math.max(Ke.dts,tr),jr=Math.min(Ke.pts,jr),Sn=Math.max(Ke.pts,Sn)}Dr=me[je-1].dts;var De=Bs+4*$o+8,ae;try{ae=new Uint8Array(De)}catch(rr){this.observer.emit(O.ERROR,O.ERROR,{type:F.MUX_ERROR,details:R.REMUX_ALLOC_ERROR,fatal:!1,error:rr,bytes:De,reason:"fail allocating video mdat ".concat(De)});return}var be=new DataView(ae.buffer);be.setUint32(0,De),ae.set(da.types.mdat,4);for(var We=!1,ut=Number.POSITIVE_INFINITY,Dt=Number.POSITIVE_INFINITY,jt=Number.NEGATIVE_INFINITY,Wt=Number.NEGATIVE_INFINITY,Rr=0;Rr<je;Rr++){for(var Zr=me[Rr],kr=Zr.units,Or=0,Yr=0,rn=kr.length;Yr<rn;Yr++){var _n=kr[Yr],fi=_n.data,vi=_n.data.byteLength;be.setUint32(Rt,vi),Rt+=4,ae.set(fi,Rt),Rt+=vi,Or+=4+vi}var Qi=void 0;if(Rr<je-1)hr=me[Rr+1].dts-Zr.dts,Qi=me[Rr+1].pts-Zr.pts;else{var Mi=this.config,Da=Rr>0?Zr.dts-me[Rr-1].dts:Na;if(Qi=Rr>0?Zr.pts-me[Rr-1].pts:Na,Mi.stretchShortVideoTrack&&this.nextAudioPts!==null){var oa=Math.floor(Mi.maxBufferHole*te),$a=(J?jr+J*te:this.nextAudioPts)-Zr.pts;$a>oa?(hr=$a-Da,hr<0?hr=Da:We=!0,H.log("[mp4-remuxer]: It is approximately ".concat($a/90," ms to the next segment; using duration ").concat(hr/90," ms for the last video frame."))):hr=Da}else hr=Da}var ja=Math.round(Zr.pts-Zr.dts);ut=Math.min(ut,hr),jt=Math.max(jt,hr),Dt=Math.min(Dt,Qi),Wt=Math.max(Wt,Qi),we.push(new Eo(Zr.key,hr,Or,ja))}if(we.length){if(Ko){if(Ko<70){var Io=we[0].flags;Io.dependsOn=2,Io.isNonSync=0}}else if(qo&&(Wt-Dt<jt-ut&&Na/jt<.025&&we[0].cts===0)){H.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var Vo=tr,N=0,U=we.length;N<U;N++){var ie=Vo+we[N].duration,oe=Vo+we[N].cts;if(N<U-1){var de=ie+we[N+1].cts;we[N].duration=de-oe}else we[N].duration=N?we[N-1].duration:Na;we[N].cts=0,Vo=ie}}}hr=We||!hr?Na:hr,this.nextAvcDts=it=Dr+hr,this.videoSampleDuration=hr,this.isVideoContiguous=!0;var Be=da.moof(L.sequenceNumber++,tr,x({},L,{samples:we})),At="video",Kt={data1:Be,data2:ae,startPTS:jr/te,endPTS:(Sn+hr)/te,startDTS:tr/te,endDTS:it/te,type:At,hasAudio:!1,hasVideo:!0,nb:we.length,dropped:L.dropped};return L.samples=[],L.dropped=0,Kt}},{key:"remuxAudio",value:function(L,K,j,J,te){var me=L.inputTimeScale,we=L.samplerate?L.samplerate:me,je=me/we,qe=L.segmentCodec==="aac"?ss:Rs,it=qe*je,Rt=this._initPTS,hr=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,tr=[],Dr=te!==void 0,jr=L.samples,Sn=hr?0:8,yn=this.nextAudioPts||-1,Mn=K*me,si=Rt.baseTime*me/Rt.timescale;if(this.isAudioContiguous=j=j||jr.length&&yn>0&&(J&&Math.abs(Mn-yn)<9e3||Math.abs(Xa(jr[0].pts-si,Mn)-yn)<20*it),jr.forEach(function(_n){_n.pts=Xa(_n.pts-si,Mn)}),!j||yn<0){if(jr=jr.filter(function(_n){return _n.pts>=0}),!jr.length)return;te===0?yn=0:J&&!Dr?yn=Math.max(0,Mn):yn=jr[0].pts}if(L.segmentCodec==="aac")for(var Xi=this.config.maxAudioFramesDrift,Li=0,Pi=yn;Li<jr.length;Li++){var Aa=jr[Li],Na=Aa.pts,Sa=Na-Pi,aa=Math.abs(1e3*Sa/me);if(Sa<=-Xi*it&&Dr)Li===0&&(H.warn("Audio frame @ ".concat((Na/me).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Sa/me)," ms.")),this.nextAudioPts=yn=Pi=Na);else if(Sa>=Xi*it&&aa<es&&Dr){var so=Math.round(Sa/it);Pi=Na-so*it,Pi<0&&(so--,Pi+=it),Li===0&&(this.nextAudioPts=yn=Pi),H.warn("[mp4-remuxer]: Injecting ".concat(so," audio frame @ ").concat((Pi/me).toFixed(3),"s due to ").concat(Math.round(1e3*Sa/me)," ms gap."));for(var os=0;os<so;os++){var $o=Math.max(Pi,0),Bs=ea.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);Bs||(H.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Bs=Aa.unit.subarray()),jr.splice(Li,0,{unit:Bs,pts:$o}),Pi+=it,Li++}}Aa.pts=Pi,Pi+=it}for(var ve=null,Ke=null,ht,Vt=0,Cr=jr.length;Cr--;)Vt+=jr[Cr].unit.byteLength;for(var Xr=0,De=jr.length;Xr<De;Xr++){var ae=jr[Xr],be=ae.unit,We=ae.pts;if(Ke!==null){var ut=tr[Xr-1];ut.duration=Math.round((We-Ke)/je)}else if(j&&L.segmentCodec==="aac"&&(We=yn),ve=We,Vt>0){Vt+=Sn;try{ht=new Uint8Array(Vt)}catch(_n){this.observer.emit(O.ERROR,O.ERROR,{type:F.MUX_ERROR,details:R.REMUX_ALLOC_ERROR,fatal:!1,error:_n,bytes:Vt,reason:"fail allocating audio mdat ".concat(Vt)});return}if(!hr){var Dt=new DataView(ht.buffer);Dt.setUint32(0,Vt),ht.set(da.types.mdat,4)}}else return;ht.set(be,Sn);var jt=be.byteLength;Sn+=jt,tr.push(new Eo(!0,qe,jt,0)),Ke=We}var Wt=tr.length;if(!Wt)return;var Rr=tr[tr.length-1];this.nextAudioPts=yn=Ke+je*Rr.duration;var Zr=hr?new Uint8Array(0):da.moof(L.sequenceNumber++,ve/je,x({},L,{samples:tr}));L.samples=[];var kr=ve/me,Or=yn/me,Yr="audio",rn={data1:Zr,data2:ht,startPTS:kr,endPTS:Or,startDTS:kr,endDTS:Or,type:Yr,hasAudio:!0,hasVideo:!1,nb:Wt};return this.isAudioContiguous=!0,rn}},{key:"remuxEmptyAudio",value:function(L,K,j,J){var te=L.inputTimeScale,me=L.samplerate?L.samplerate:te,we=te/me,je=this.nextAudioPts,qe=this._initDTS,it=qe.baseTime*9e4/qe.timescale,Rt=(je!==null?je:J.startDTS*te)+it,hr=J.endDTS*te+it,tr=we*ss,Dr=Math.ceil((hr-Rt)/tr),jr=ea.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(H.warn("[mp4-remuxer]: remux empty Audio"),!jr){H.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Sn=[],yn=0;yn<Dr;yn++){var Mn=Rt+yn*tr;Sn.push({unit:jr,pts:Mn,dts:Mn})}return L.samples=Sn,this.remuxAudio(L,K,j,!1)}}]),he}();function Xa(he,$){var L;if($===null)return he;for($<he?L=-8589934592:L=8589934592;Math.abs(he-$)>4294967296;)he+=L;return he}function Wa(he){for(var $=0;$<he.length;$++)if(he[$].key)return $;return-1}function Jo(he,$,L,K){var j=he.samples.length;if(!j)return;for(var J=he.inputTimeScale,te=0;te<j;te++){var me=he.samples[te];me.pts=Xa(me.pts-L.baseTime*J/L.timescale,$*J)/J,me.dts=Xa(me.dts-K.baseTime*J/K.timescale,$*J)/J}var we=he.samples;return he.samples=[],{samples:we}}function hs(he,$,L){var K=he.samples.length;if(!K)return;for(var j=he.inputTimeScale,J=0;J<K;J++){var te=he.samples[J];te.pts=Xa(te.pts-L.baseTime*j/L.timescale,$*j)/j}he.samples.sort(function(we,je){return we.pts-je.pts});var me=he.samples;return he.samples=[],{samples:me}}var Eo=Object(s.a)(function he($,L,K,j){Object(r.a)(this,he),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=K,this.cts=j,this.flags=new Ws($)}),Ws=Object(s.a)(function he($){Object(r.a)(this,he),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=$?2:1,this.isNonSync=$?0:1}),_o=function(){function he(){Object(r.a)(this,he),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(s.a)(he,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){this.initPTS=L,this.lastEndTime=null}},{key:"resetNextTimestamp",value:function(){this.lastEndTime=null}},{key:"resetInitSegment",value:function(L,K,j,J){this.audioCodec=K,this.videoCodec=j,this.generateInitSegment(ti(L,J)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(L){var K=this.audioCodec,j=this.videoCodec;if(!(L!=null&&L.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var J=this.initData=Fn(L);K||(K=xs(J.audio,Ae.AUDIO)),j||(j=xs(J.video,Ae.VIDEO));var te={};J.audio&&J.video?te.audiovideo={container:"video/mp4",codec:K+","+j,initSegment:L,id:"main"}:J.audio?te.audio={container:"audio/mp4",codec:K,initSegment:L,id:"audio"}:J.video?te.video={container:"video/mp4",codec:j,initSegment:L,id:"main"}:H.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=te}},{key:"remux",value:function(L,K,j,J,te,me){var we,je,qe=this.initPTS,it=this.lastEndTime,Rt={audio:void 0,video:void 0,text:J,id3:j,initSegment:void 0};E(it)||(it=this.lastEndTime=te||0);var hr=K.samples;if(!(hr!=null&&hr.length))return Rt;var tr={initPTS:void 0,timescale:1},Dr=this.initData;if((we=Dr)!=null&&we.length||(this.generateInitSegment(hr),Dr=this.initData),!((je=Dr)!=null&&je.length))return H.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Rt;this.emitInitSegment&&(tr.tracks=this.initTracks,this.emitInitSegment=!1);var jr=Bn(hr,Dr),Sn=Dn(Dr,hr),yn=Sn===null?te:Sn;(Mo(qe,yn,te,jr)||tr.timescale!==qe.timescale&&me)&&(tr.initPTS=yn-te,qe&&qe.timescale===1&&H.warn("Adjusting initPTS by ".concat(tr.initPTS-qe.baseTime)),this.initPTS=qe={baseTime:tr.initPTS,timescale:1});var Mn=L?yn-qe.baseTime/qe.timescale:it,si=Mn+jr;vt(Dr,hr,qe.baseTime/qe.timescale),jr>0?this.lastEndTime=si:(H.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var Xi=!!Dr.audio,Li=!!Dr.video,Pi="";Xi&&(Pi+="audio"),Li&&(Pi+="video");var Aa={data1:hr,startPTS:Mn,startDTS:Mn,endPTS:si,endDTS:si,type:Pi,hasAudio:Xi,hasVideo:Li,nb:1,dropped:0};return Rt.audio=Aa.type==="audio"?Aa:void 0,Rt.video=Aa.type!=="audio"?Aa:void 0,Rt.initSegment=tr,Rt.id3=Jo(j,te,qe,qe),J.samples.length&&(Rt.text=hs(J,te,qe)),Rt}}]),he}();function Mo(he,$,L,K){if(he===null)return!0;var j=Math.max(K,1),J=$-he.baseTime/he.timescale;return Math.abs(J-L)>j}function xs(he,$){var L=he==null?void 0:he.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||$===Ae.VIDEO?"avc1.42e01e":"mp4a.40.5"}var Go;try{Go=self.performance.now.bind(self.performance)}catch(he){H.debug("Unable to use Performance API on this environment"),Go=typeof self!="undefined"&&self.Date.now}var ns=[{demux:Pn,remux:_o},{demux:na,remux:to},{demux:Kr,remux:to},{demux:fo,remux:to}],is=function(){function he($,L,K,j,J){Object(r.a)(this,he),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=$,this.typeSupported=L,this.config=K,this.vendor=j,this.id=J}return Object(s.a)(he,[{key:"configure",value:function(L){this.transmuxConfig=L,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(L,K,j,J){var te=this,me=j.transmuxing;me.executeStart=Go();var we=new Uint8Array(L),je=this.currentTransmuxState,qe=this.transmuxConfig;J&&(this.currentTransmuxState=J);var it=J||je,Rt=it.contiguous,hr=it.discontinuity,tr=it.trackSwitch,Dr=it.accurateTimeOffset,jr=it.timeOffset,Sn=it.initSegmentChange,yn=qe.audioCodec,Mn=qe.videoCodec,si=qe.defaultInitPts,Xi=qe.duration,Li=qe.initSegmentData,Pi=bs(we,K);if(Pi&&Pi.method==="AES-128"){var Aa=this.getDecrypter();if(Aa.isSync()){var Na=Aa.softwareDecrypt(we,Pi.key.buffer,Pi.iv.buffer),Sa=j.part>-1;if(Sa&&(Na=Aa.flush()),!Na)return me.executeEnd=Go(),Sl(j);we=new Uint8Array(Na)}else return this.decryptionPromise=Aa.webCryptoDecrypt(we,Pi.key.buffer,Pi.iv.buffer).then(function(Bs){var ve=te.push(Bs,null,j);return te.decryptionPromise=null,ve}),this.decryptionPromise}var aa=this.needsProbing(hr,tr);if(aa){var so=this.configureTransmuxer(we);if(so)return H.warn("[transmuxer] ".concat(so.message)),this.observer.emit(O.ERROR,O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,error:so,reason:so.message}),me.executeEnd=Go(),Sl(j)}(hr||tr||Sn||aa)&&this.resetInitSegment(Li,yn,Mn,Xi,K),(hr||Sn||aa)&&this.resetInitialTimestamp(si),Rt||this.resetContiguity();var os=this.transmux(we,Pi,jr,Dr,j),$o=this.currentTransmuxState;return $o.contiguous=!0,$o.discontinuity=!1,$o.trackSwitch=!1,me.executeEnd=Go(),os}},{key:"flush",value:function(L){var K=this,j=L.transmuxing;j.executeStart=Go();var J=this.decrypter,te=this.currentTransmuxState,me=this.decryptionPromise;if(me)return me.then(function(){return K.flush(L)});var we=[],je=te.timeOffset;if(J){var qe=J.flush();qe&&we.push(this.push(qe,null,L))}var it=this.demuxer,Rt=this.remuxer;if(!it||!Rt)return j.executeEnd=Go(),[Sl(L)];var hr=it.flush(je);return Fs(hr)?hr.then(function(tr){return K.flushRemux(we,tr,L),we}):(this.flushRemux(we,hr,L),we)}},{key:"flushRemux",value:function(L,K,j){var J=K.audioTrack,te=K.videoTrack,me=K.id3Track,we=K.textTrack,je=this.currentTransmuxState,qe=je.accurateTimeOffset,it=je.timeOffset;H.log("[transmuxer.ts]: Flushed fragment ".concat(j.sn).concat(j.part>-1?" p: "+j.part:""," of level ").concat(j.level));var Rt=this.remuxer.remux(J,te,me,we,it,qe,!0,this.id);L.push({remuxResult:Rt,chunkMeta:j}),j.transmuxing.executeEnd=Go()}},{key:"resetInitialTimestamp",value:function(L){var K=this.demuxer,j=this.remuxer;if(!K||!j)return;K.resetTimeStamp(L),j.resetTimeStamp(L)}},{key:"resetContiguity",value:function(){var L=this.demuxer,K=this.remuxer;if(!L||!K)return;L.resetContiguity(),K.resetNextTimestamp()}},{key:"resetInitSegment",value:function(L,K,j,J,te){var me=this.demuxer,we=this.remuxer;if(!me||!we)return;me.resetInitSegment(L,K,j,J),we.resetInitSegment(L,K,j,te)}},{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(L,K,j,J,te){var me;return K&&K.method==="SAMPLE-AES"?me=this.transmuxSampleAes(L,K,j,J,te):me=this.transmuxUnencrypted(L,j,J,te),me}},{key:"transmuxUnencrypted",value:function(L,K,j,J){var te=this.demuxer.demux(L,K,!1,!this.config.progressive),me=te.audioTrack,we=te.videoTrack,je=te.id3Track,qe=te.textTrack,it=this.remuxer.remux(me,we,je,qe,K,j,!1,this.id);return{remuxResult:it,chunkMeta:J}}},{key:"transmuxSampleAes",value:function(L,K,j,J,te){var me=this;return this.demuxer.demuxSampleAes(L,K,j).then(function(we){var je=me.remuxer.remux(we.audioTrack,we.videoTrack,we.id3Track,we.textTrack,j,J,!1,me.id);return{remuxResult:je,chunkMeta:te}})}},{key:"configureTransmuxer",value:function(L){for(var K=this.config,j=this.observer,J=this.typeSupported,te=this.vendor,me,we=0,je=ns.length;we<je;we++)if(ns[we].demux.probe(L)){me=ns[we];break}if(!me)return new Error("Failed to find demuxer by probing fragment data");var qe=this.demuxer,it=this.remuxer,Rt=me.remux,hr=me.demux;(!it||!(it instanceof Rt))&&(this.remuxer=new Rt(j,K,J,te)),(!qe||!(qe instanceof hr))&&(this.demuxer=new hr(j,K,J),this.probe=hr.probe)}},{key:"needsProbing",value:function(L,K){return!this.demuxer||!this.remuxer||L||K}},{key:"getDecrypter",value:function(){var L=this.decrypter;return L||(L=this.decrypter=new Va(this.config)),L}}]),he}();function bs(he,$){var L=null;return he.byteLength>0&&$!=null&&$.key!=null&&$.iv!==null&&$.method!=null&&(L=$),L}var Sl=function($){return{remuxResult:{},chunkMeta:$}};function Fs(he){return"then"in he&&he.then instanceof Function}var Ms=Object(s.a)(function he($,L,K,j,J){Object(r.a)(this,he),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=$,this.videoCodec=L,this.initSegmentData=K,this.duration=j,this.defaultInitPts=J||null}),cs=Object(s.a)(function he($,L,K,j,J,te){Object(r.a)(this,he),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=$,this.contiguous=L,this.accurateTimeOffset=K,this.trackSwitch=j,this.timeOffset=J,this.initSegmentChange=te}),_s={exports:{}};(function(he){var $=Object.prototype.hasOwnProperty,L="~";function K(){}Object.create&&(K.prototype=Object.create(null),new K().__proto__||(L=!1));function j(we,je,qe){this.fn=we,this.context=je,this.once=qe||!1}function J(we,je,qe,it,Rt){if(typeof qe!="function")throw new TypeError("The listener must be a function");var hr=new j(qe,it||we,Rt),tr=L?L+je:je;return we._events[tr]?we._events[tr].fn?we._events[tr]=[we._events[tr],hr]:we._events[tr].push(hr):(we._events[tr]=hr,we._eventsCount++),we}function te(we,je){--we._eventsCount===0?we._events=new K:delete we._events[je]}function me(){this._events=new K,this._eventsCount=0}me.prototype.eventNames=function(){var je=[],qe,it;if(this._eventsCount===0)return je;for(it in qe=this._events)$.call(qe,it)&&je.push(L?it.slice(1):it);return Object.getOwnPropertySymbols?je.concat(Object.getOwnPropertySymbols(qe)):je},me.prototype.listeners=function(je){var qe=L?L+je:je,it=this._events[qe];if(!it)return[];if(it.fn)return[it.fn];for(var Rt=0,hr=it.length,tr=new Array(hr);Rt<hr;Rt++)tr[Rt]=it[Rt].fn;return tr},me.prototype.listenerCount=function(je){var qe=L?L+je:je,it=this._events[qe];return it?it.fn?1:it.length:0},me.prototype.emit=function(je,qe,it,Rt,hr,tr){var Dr=L?L+je:je;if(!this._events[Dr])return!1;var jr=this._events[Dr],Sn=arguments.length,yn,Mn;if(jr.fn){jr.once&&this.removeListener(je,jr.fn,void 0,!0);switch(Sn){case 1:return jr.fn.call(jr.context),!0;case 2:return jr.fn.call(jr.context,qe),!0;case 3:return jr.fn.call(jr.context,qe,it),!0;case 4:return jr.fn.call(jr.context,qe,it,Rt),!0;case 5:return jr.fn.call(jr.context,qe,it,Rt,hr),!0;case 6:return jr.fn.call(jr.context,qe,it,Rt,hr,tr),!0}for(Mn=1,yn=new Array(Sn-1);Mn<Sn;Mn++)yn[Mn-1]=arguments[Mn];jr.fn.apply(jr.context,yn)}else{var si=jr.length,Xi;for(Mn=0;Mn<si;Mn++){jr[Mn].once&&this.removeListener(je,jr[Mn].fn,void 0,!0);switch(Sn){case 1:jr[Mn].fn.call(jr[Mn].context);break;case 2:jr[Mn].fn.call(jr[Mn].context,qe);break;case 3:jr[Mn].fn.call(jr[Mn].context,qe,it);break;case 4:jr[Mn].fn.call(jr[Mn].context,qe,it,Rt);break;default:if(!yn)for(Xi=1,yn=new Array(Sn-1);Xi<Sn;Xi++)yn[Xi-1]=arguments[Xi];jr[Mn].fn.apply(jr[Mn].context,yn)}}}return!0},me.prototype.on=function(je,qe,it){return J(this,je,qe,it,!1)},me.prototype.once=function(je,qe,it){return J(this,je,qe,it,!0)},me.prototype.removeListener=function(je,qe,it,Rt){var hr=L?L+je:je;if(!this._events[hr])return this;if(!qe)return te(this,hr),this;var tr=this._events[hr];if(tr.fn)tr.fn===qe&&(!Rt||tr.once)&&(!it||tr.context===it)&&te(this,hr);else{for(var Dr=0,jr=[],Sn=tr.length;Dr<Sn;Dr++)(tr[Dr].fn!==qe||Rt&&!tr[Dr].once||it&&tr[Dr].context!==it)&&jr.push(tr[Dr]);jr.length?this._events[hr]=jr.length===1?jr[0]:jr:te(this,hr)}return this},me.prototype.removeAllListeners=function(je){var qe;return je?(qe=L?L+je:je,this._events[qe]&&te(this,qe)):(this._events=new K,this._eventsCount=0),this},me.prototype.off=me.prototype.removeListener,me.prototype.addListener=me.prototype.on,me.prefixed=L,me.EventEmitter=me,he.exports=me})(_s);var Us=_s.exports,ks=c(Us),ps=Tr()||{isTypeSupported:function(){return!1}},Es=function(){function he($,L,K,j){var J=this;Object(r.a)(this,he),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 te=$.config;this.hls=$,this.id=L,this.useWorker=!!te.enableWorker,this.onTransmuxComplete=K,this.onFlush=j;var me=function(hr,tr){tr=tr||{},tr.frag=J.frag,tr.id=J.id,hr===O.ERROR&&(J.error=tr.error),J.hls.trigger(hr,tr)};this.observer=new ks,this.observer.on(O.FRAG_DECRYPTED,me),this.observer.on(O.ERROR,me);var we={mp4:ps.isTypeSupported("video/mp4"),mpeg:ps.isTypeSupported("audio/mpeg"),mp3:ps.isTypeSupported('audio/mp4; codecs="mp3"')},je=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var qe=te.workerPath||To();if(qe){try{te.workerPath?(H.log("loading Web Worker ".concat(te.workerPath,' for "').concat(L,'"')),this.workerContext=Po(te.workerPath)):(H.log('injecting Web Worker for "'.concat(L,'"')),this.workerContext=Ga()),this.onwmsg=function(Rt){return J.onWorkerMessage(Rt)};var it=this.workerContext.worker;it.addEventListener("message",this.onwmsg),it.onerror=function(Rt){var hr=new Error("".concat(Rt.message," (").concat(Rt.filename,":").concat(Rt.lineno,")"));te.enableWorker=!1,H.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),J.hls.trigger(O.ERROR,{type:F.OTHER_ERROR,details:R.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:hr})},it.postMessage({cmd:"init",typeSupported:we,vendor:je,id:L,config:JSON.stringify(te)})}catch(Rt){H.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),Rt),this.resetWorker(),this.error=null,this.transmuxer=new is(this.observer,we,te,je,L)}return}}this.transmuxer=new is(this.observer,we,te,je,L)}return Object(s.a)(he,[{key:"resetWorker",value:function(){if(this.workerContext){var L=this.workerContext,K=L.worker,j=L.objectURL;j&&self.URL.revokeObjectURL(j),K.removeEventListener("message",this.onwmsg),K.onerror=null,K.terminate(),this.workerContext=null}}},{key:"destroy",value:function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var L=this.transmuxer;L&&(L.destroy(),this.transmuxer=null)}var K=this.observer;K&&K.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(L,K,j,J,te,me,we,je,qe,it){var Rt=this,hr,tr;qe.transmuxing.start=self.performance.now();var Dr=this.transmuxer,jr=me?me.start:te.start,Sn=te.decryptdata,yn=this.frag,Mn=!(yn&&te.cc===yn.cc),si=!(yn&&qe.level===yn.level),Xi=yn?qe.sn-yn.sn:-1,Li=this.part?qe.part-this.part.index:-1,Pi=Xi===0&&qe.id>1&&qe.id===(yn==null?void 0:yn.stats.chunkCount),Aa=!si&&(Xi===1||Xi===0&&(Li===1||Pi&&Li<=0)),Na=self.performance.now();(si||Xi||te.stats.parsing.start===0)&&(te.stats.parsing.start=Na),me&&(Li||!Aa)&&(me.stats.parsing.start=Na);var Sa=!(yn&&((hr=te.initSegment)==null?void 0:hr.url)===((tr=yn.initSegment)==null?void 0:tr.url)),aa=new cs(Mn,Aa,je,si,jr,Sa);if(!Aa||Mn||Sa){H.log("[transmuxer-interface, ".concat(te.type,"]: Starting new transmux session for sn: ").concat(qe.sn," p: ").concat(qe.part," level: ").concat(qe.level," id: ").concat(qe.id,`
discontinuity: `).concat(Mn,`
trackSwitch: `).concat(si,`
contiguous: `).concat(Aa,`
accurateTimeOffset: `).concat(je,`
timeOffset: `).concat(jr,`
initSegmentChange: `).concat(Sa));var so=new Ms(j,J,K,we,it);this.configureTransmuxer(so)}if(this.frag=te,this.part=me,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:Sn,chunkMeta:qe,state:aa},L instanceof ArrayBuffer?[L]:[]);else if(Dr){var os=Dr.push(L,Sn,qe,aa);Fs(os)?(Dr.async=!0,os.then(function($o){Rt.handleTransmuxComplete($o)}).catch(function($o){Rt.transmuxerError($o,qe,"transmuxer-interface push error")})):(Dr.async=!1,this.handleTransmuxComplete(os))}}},{key:"flush",value:function(L){var K=this;L.transmuxing.start=self.performance.now();var j=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:L});else if(j){var J=j.flush(L),te=Fs(J);te||j.async?(Fs(J)||(J=Promise.resolve(J)),J.then(function(me){K.handleFlushResult(me,L)}).catch(function(me){K.transmuxerError(me,L,"transmuxer-interface flush error")})):this.handleFlushResult(J,L)}}},{key:"transmuxerError",value:function(L,K,j){if(!this.hls)return;this.error=L,this.hls.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,chunkMeta:K,fatal:!1,error:L,err:L,reason:j})}},{key:"handleFlushResult",value:function(L,K){var j=this;L.forEach(function(J){j.handleTransmuxComplete(J)}),this.onFlush(K)}},{key:"onWorkerMessage",value:function(L){var K=L.data,j=this.hls;switch(K.event){case"init":{var J,te=(J=this.workerContext)==null?void 0:J.objectURL;te&&self.URL.revokeObjectURL(te);break}case"transmuxComplete":{this.handleTransmuxComplete(K.data);break}case"flush":{this.onFlush(K.data);break}case"workerLog":H[K.data.logType]&&H[K.data.logType](K.data.message);break;default:{K.data=K.data||{},K.data.frag=this.frag,K.data.id=this.id,j.trigger(K.event,K.data);break}}}},{key:"configureTransmuxer",value:function(L){var K=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:L}):K&&K.configure(L)}},{key:"handleTransmuxComplete",value:function(L){L.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(L)}}]),he}(),tl=250,Os=2,Ro=.1,wo=.05,ms=function(){function he($,L,K,j){Object(r.a)(this,he),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=$,this.media=L,this.fragmentTracker=K,this.hls=j}return Object(s.a)(he,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(L,K){var j=this.config,J=this.media,te=this.stalled;if(J===null)return;var me=J.currentTime,we=J.seeking,je=this.seeking&&!we,qe=!this.seeking&&we;if(this.seeking=we,me!==L){if(this.moved=!0,te!==null){if(this.stallReported){var it=self.performance.now()-te;H.warn("playback not stuck anymore @".concat(me,", after ").concat(Math.round(it),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(qe||je){this.stalled=null;return}if(J.paused&&!we||J.ended||J.playbackRate===0||!wi.getBuffered(J).length)return;var Rt=wi.bufferInfo(J,me,0),hr=Rt.len>0,tr=Rt.nextStart||0;if(!hr&&!tr)return;if(we){var Dr=Rt.len>Os,jr=!tr||K&&K.start<=me||tr-me>Os&&!this.fragmentTracker.getPartialFragment(me);if(Dr||jr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Sn,yn=Math.max(tr,Rt.start||0)-me,Mn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,si=Mn==null||(Sn=Mn.details)==null?void 0:Sn.live,Xi=si?Mn.details.targetduration*2:Os,Li=this.fragmentTracker.getPartialFragment(me);if(yn>0&&(yn<=Xi||Li)){this._trySkipBufferHole(Li);return}}var Pi=self.performance.now();if(te===null){this.stalled=Pi;return}var Aa=Pi-te;if(!we&&Aa>=tl&&(this._reportStall(Rt),!this.media))return;var Na=wi.bufferInfo(J,me,j.maxBufferHole);this._tryFixBufferStall(Na,Aa)}},{key:"_tryFixBufferStall",value:function(L,K){var j=this.config,J=this.fragmentTracker,te=this.media;if(te===null)return;var me=te.currentTime,we=J.getPartialFragment(me);if(we){var je=this._trySkipBufferHole(we);if(je||!this.media)return}(L.len>j.maxBufferHole||L.nextStart&&L.nextStart-me<j.maxBufferHole)&&K>j.highBufferWatchdogPeriod*1e3&&(H.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var K=this.hls,j=this.media,J=this.stallReported;if(!J&&j){this.stallReported=!0;var te=new Error("Playback stalling at @".concat(j.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));H.warn(te.message),K.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_STALLED_ERROR,fatal:!1,error:te,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var K=this.config,j=this.hls,J=this.media;if(J===null)return 0;var te=J.currentTime,me=wi.bufferInfo(J,te,0),we=te<me.start?me.start:me.nextStart;if(we){var je=me.len<=K.maxBufferHole,qe=me.len>0&&me.len<1&&J.readyState<3,it=we-te;if(it>0&&(je||qe)){if(it>K.maxBufferHole){var Rt=this.fragmentTracker,hr=!1;if(te===0){var tr=Rt.getAppendedFrag(0,Er.MAIN);tr&&we<tr.end&&(hr=!0)}if(!hr){var Dr=L||Rt.getAppendedFrag(te,Er.MAIN);if(Dr){for(var jr=!1,Sn=Dr.end;Sn<we;){var yn=Rt.getPartialFragment(Sn);if(yn)Sn+=yn.duration;else{jr=!0;break}}if(jr)return 0}}}var Mn=Math.max(we+wo,te+Ro);if(H.warn("skipping hole, adjusting currentTime from ".concat(te," to ").concat(Mn)),this.moved=!0,this.stalled=null,J.currentTime=Mn,L&&!L.gap){var si=new Error("fragment loaded with buffer holes, seeking from ".concat(te," to ").concat(Mn));j.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:si,reason:si.message,frag:L})}return Mn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,K=this.hls,j=this.media,J=this.nudgeRetry;if(j===null)return;var te=j.currentTime;if(this.nudgeRetry++,J<L.nudgeMaxRetry){var me=te+(J+1)*L.nudgeOffset,we=new Error("Nudging 'currentTime' from ".concat(te," to ").concat(me));H.warn(we.message),j.currentTime=me,K.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_NUDGE_ON_STALL,error:we,fatal:!1})}else{var je=new Error("Playhead still not moving while enough data buffered @".concat(te," after ").concat(L.nudgeMaxRetry," nudges"));H.error(je.message),K.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_STALLED_ERROR,error:je,fatal:!0})}}}]),he}(),As=100,ao=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j,J){var te;return Object(r.a)(this,L),te=$.call(this,K,j,J,"[stream-controller]",Er.MAIN),te.audioCodecSwap=!1,te.gapController=null,te.level=-1,te._forceStartLoad=!1,te.altAudio=!1,te.audioOnly=!1,te.fragPlaying=null,te.onvplaying=null,te.onvseeked=null,te.fragLastKbps=0,te.couldBacktrack=!1,te.backtrackFragment=null,te.audioCodecSwitch=!1,te.videoBuffer=null,te._registerListeners(),te}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var j=this.hls;j.on(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.on(O.MANIFEST_LOADING,this.onManifestLoading,this),j.on(O.MANIFEST_PARSED,this.onManifestParsed,this),j.on(O.LEVEL_LOADING,this.onLevelLoading,this),j.on(O.LEVEL_LOADED,this.onLevelLoaded,this),j.on(O.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),j.on(O.ERROR,this.onError,this),j.on(O.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),j.on(O.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),j.on(O.BUFFER_CREATED,this.onBufferCreated,this),j.on(O.BUFFER_FLUSHED,this.onBufferFlushed,this),j.on(O.LEVELS_UPDATED,this.onLevelsUpdated,this),j.on(O.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var j=this.hls;j.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.off(O.MANIFEST_LOADING,this.onManifestLoading,this),j.off(O.MANIFEST_PARSED,this.onManifestParsed,this),j.off(O.LEVEL_LOADED,this.onLevelLoaded,this),j.off(O.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),j.off(O.ERROR,this.onError,this),j.off(O.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),j.off(O.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),j.off(O.BUFFER_CREATED,this.onBufferCreated,this),j.off(O.BUFFER_FLUSHED,this.onBufferFlushed,this),j.off(O.LEVELS_UPDATED,this.onLevelsUpdated,this),j.off(O.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(j){if(this.levels){var J=this.lastCurrentTime,te=this.hls;if(this.stopLoad(),this.setInterval(As),this.level=-1,!this.startFragRequested){var me=te.startLevel;me===-1&&(te.config.testBandwidth&&this.levels.length>1?(me=0,this.bitrateTest=!0):me=te.nextAutoLevel),this.level=te.nextLoadLevel=me,this.loadedmetadata=!1}J>0&&j===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(J.toFixed(3))),j=J),this.state=Bi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=j,this.tick()}else this._forceStartLoad=!0,this.state=Bi.STOPPED}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,Object(t.a)(Object(m.a)(L.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case Bi.WAITING_LEVEL:{var j,J=this.levels,te=this.level,me=J==null||(j=J[te])==null?void 0:j.details;if(me&&(!me.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(me))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 we,je=self.performance.now(),qe=this.retryDate;(!qe||je>=qe||(we=this.media)!=null&&we.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)(L.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var j=this.hls,J=this.levelLastLoaded,te=this.levels,me=this.media,we=j.config,je=j.nextLoadLevel;if(J===null||!me&&(this.startFragRequested||!we.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(te!=null&&te[je]))return;var qe=te[je],it=this.getMainFwdBufferInfo();if(it===null)return;var Rt=this.getLevelDetails();if(Rt&&this._streamEnded(it,Rt)){var hr={};this.altAudio&&(hr.type="video"),this.hls.trigger(O.BUFFER_EOS,hr),this.state=Bi.ENDED;return}j.loadLevel!==je&&j.manualLevel===-1&&this.log("Adapting to level ".concat(je," from level ").concat(this.level)),this.level=j.nextLoadLevel=je;var tr=qe.details;if(!tr||this.state===Bi.WAITING_LEVEL||tr.live&&this.levelLastLoaded!==je){this.level=je,this.state=Bi.WAITING_LEVEL;return}var Dr=it.len,jr=this.getMaxBufferLength(qe.maxBitrate);if(Dr>=jr)return;this.backtrackFragment&&this.backtrackFragment.start>it.end&&(this.backtrackFragment=null);var Sn=this.backtrackFragment?this.backtrackFragment.start:it.end,yn=this.getNextFragment(Sn,tr);if(this.couldBacktrack&&!this.fragPrevious&&yn&&yn.sn!=="initSegment"&&this.fragmentTracker.getState(yn)!==Ur.OK){var Mn,si=((Mn=this.backtrackFragment)!=null?Mn:yn).sn,Xi=si-tr.startSN,Li=tr.fragments[Xi-1];Li&&yn.cc===Li.cc&&(yn=Li,this.fragmentTracker.removeFragment(Li))}else this.backtrackFragment&&it.len&&(this.backtrackFragment=null);if(yn&&this.isLoopLoading(yn,Sn)){var Pi=yn.gap;if(!Pi){var Aa=this.audioOnly&&!this.altAudio?Ae.AUDIO:Ae.VIDEO,Na=(Aa===Ae.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Na&&this.afterBufferFlushed(Na,Aa,Er.MAIN)}yn=this.getNextFragmentLoopLoading(yn,tr,it,Er.MAIN,jr)}if(!yn)return;yn.initSegment&&!yn.initSegment.data&&!this.bitrateTest&&(yn=yn.initSegment),this.loadFragment(yn,qe,Sn)}},{key:"loadFragment",value:function(j,J,te){var me=this.fragmentTracker.getState(j);this.fragCurrent=j,me===Ur.NOT_LOADED||me===Ur.PARTIAL?j.sn==="initSegment"?this._loadInitSegment(j,J):this.bitrateTest?(this.log("Fragment ".concat(j.sn," of level ").concat(j.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(j,J)):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,j,J,te)):this.clearTrackerIfNeeded(j)}},{key:"getBufferedFrag",value:function(j){return this.fragmentTracker.getBufferedFrag(j,Er.MAIN)}},{key:"followingBufferedFrag",value:function(j){return j?this.getBufferedFrag(j.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var j=this.levels,J=this.media;if(J!=null&&J.readyState){var te,me=this.getAppendedFrag(J.currentTime);me&&me.start>1&&this.flushMainBuffer(0,me.start-1);var we=this.getLevelDetails();if(we!=null&&we.live){var je=this.getMainFwdBufferInfo();if(!je||je.len<we.targetduration*2)return}if(!J.paused&&j){var qe=this.hls.nextLoadLevel,it=j[qe],Rt=this.fragLastKbps;Rt&&this.fragCurrent?te=this.fragCurrent.duration*it.maxBitrate/(1e3*Rt)+1:te=0}else te=0;var hr=this.getBufferedFrag(J.currentTime+te);if(hr){var tr=this.followingBufferedFrag(hr);if(tr){this.abortCurrentFrag();var Dr=tr.maxStartPTS?tr.maxStartPTS:tr.start,jr=tr.duration,Sn=Math.max(hr.end,Dr+Math.min(Math.max(jr-this.config.maxFragLookUpTolerance,jr*.5),jr*.75));this.flushMainBuffer(Sn,Number.POSITIVE_INFINITY)}}}}},{key:"abortCurrentFrag",value:function(){var j=this.fragCurrent;this.fragCurrent=null,this.backtrackFragment=null,j&&(j.abortRequests(),this.fragmentTracker.removeFragment(j));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(j,J){Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,j,J,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(j,J){Object(t.a)(Object(m.a)(L.prototype),"onMediaAttached",this).call(this,j,J);var te=J.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),te.addEventListener("playing",this.onvplaying),te.addEventListener("seeked",this.onvseeked),this.gapController=new ms(this.config,te,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var j=this.media;j&&this.onvplaying&&this.onvseeked&&(j.removeEventListener("playing",this.onvplaying),j.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)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var j=this.media,J=j?j.currentTime:null;E(J)&&this.log("Media seeked to ".concat(J.toFixed(3)));var te=this.getMainFwdBufferInfo();if(te===null||te.len===0){this.warn('Main forward buffer length on "seeked" event '.concat(te?te.len:"empty",")"));return}this.tick()}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(O.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(j,J){var te=!1,me=!1,we;J.levels.forEach(function(je){we=je.audioCodec,we&&(we.indexOf("mp4a.40.2")!==-1&&(te=!0),we.indexOf("mp4a.40.5")!==-1&&(me=!0))}),this.audioCodecSwitch=te&&me&&!co(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=J.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(j,J){var te=this.levels;if(!te||this.state!==Bi.IDLE)return;var me=te[J.level];(!me.details||me.details.live&&this.levelLastLoaded!==J.level||this.waitForCdnTuneIn(me.details))&&(this.state=Bi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(j,J){var te,me=this.levels,we=J.level,je=J.details,qe=je.totalduration;if(!me){this.warn("Levels were reset while loading level ".concat(we));return}this.log("Level ".concat(we," loaded [").concat(je.startSN,",").concat(je.endSN,"]").concat(je.lastPartSn?"[part-".concat(je.lastPartSn,"-").concat(je.lastPartIndex,"]"):"",", cc [").concat(je.startCC,", ").concat(je.endCC,"] duration:").concat(qe));var it=me[we],Rt=this.fragCurrent;Rt&&(this.state===Bi.FRAG_LOADING||this.state===Bi.FRAG_LOADING_WAITING_RETRY)&&((Rt.level!==J.level||Rt.urlId!==it.urlId)&&Rt.loader&&this.abortCurrentFrag());var hr=0;if(je.live||(te=it.details)!=null&&te.live){if(this.checkLiveUpdate(je),je.deltaUpdateFailed)return;hr=this.alignPlaylists(je,it.details)}if(it.details=je,this.levelLastLoaded=we,this.hls.trigger(O.LEVEL_UPDATED,{details:je,level:we}),this.state===Bi.WAITING_LEVEL){if(this.waitForCdnTuneIn(je))return;this.state=Bi.IDLE}this.startFragRequested?je.live&&this.synchronizeToLiveEdge(je):this.setStartPosition(je,hr),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(j){var J,te=j.frag,me=j.part,we=j.payload,je=this.levels;if(!je){this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(te.sn," of level ").concat(te.level," will not be buffered"));return}var qe=je[te.level],it=qe.details;if(!it){this.warn("Dropping fragment ".concat(te.sn," of level ").concat(te.level," after level details were reset")),this.fragmentTracker.removeFragment(te);return}var Rt=qe.videoCodec,hr=it.PTSKnown||!it.live,tr=(J=te.initSegment)==null?void 0:J.data,Dr=this._getAudioCodec(qe),jr=this.transmuxer=this.transmuxer||new Es(this.hls,Er.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Sn=me?me.index:-1,yn=Sn!==-1,Mn=new Ii(te.level,te.sn,te.stats.chunkCount,we.byteLength,Sn,yn),si=this.initPTS[te.cc];jr.push(we,tr,Dr,Rt,te,me,it.totalduration,hr,Mn,si)}},{key:"onAudioTrackSwitching",value:function(j,J){var te=this.altAudio,me=!!J.url;if(!me){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var we=this.fragCurrent;we&&(this.log("Switching to main audio track, cancel main fragment load"),we.abortRequests(),this.fragmentTracker.removeFragment(we)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var je=this.hls;te&&(je.trigger(O.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),je.trigger(O.AUDIO_TRACK_SWITCHED,J)}}},{key:"onAudioTrackSwitched",value:function(j,J){var te=J.id,me=!!this.hls.audioTracks[te].url;if(me){var we=this.videoBuffer;we&&this.mediaBuffer!==we&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=we)}this.altAudio=me,this.tick()}},{key:"onBufferCreated",value:function(j,J){var te=J.tracks,me,we,je=!1;for(var qe in te){var it=te[qe];if(it.id==="main"){if(we=qe,me=it,qe==="video"){var Rt=te[qe];Rt&&(this.videoBuffer=Rt.buffer)}}else je=!0}je&&me?(this.log("Alternate track found, use ".concat(we,".buffered to schedule main fragment loading")),this.mediaBuffer=me.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(j,J){var te=J.frag,me=J.part;if(te&&te.type!==Er.MAIN)return;if(this.fragContextChanged(te)){this.warn("Fragment ".concat(te.sn).concat(me?" p: "+me.index:""," of level ").concat(te.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===Bi.PARSED&&(this.state=Bi.IDLE);return}var we=me?me.stats:te.stats;this.fragLastKbps=Math.round(8*we.total/(we.buffering.end-we.loading.first)),te.sn!=="initSegment"&&(this.fragPrevious=te),this.fragBufferedComplete(te,me)}},{key:"onError",value:function(j,J){var te;if(J.fatal){this.state=Bi.ERROR;return}switch(J.details){case R.FRAG_GAP:case R.FRAG_PARSING_ERROR:case R.FRAG_DECRYPT_ERROR:case R.FRAG_LOAD_ERROR:case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_ERROR:case R.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Er.MAIN,J);break;case R.LEVEL_LOAD_ERROR:case R.LEVEL_LOAD_TIMEOUT:case R.LEVEL_PARSING_ERROR:!J.levelRetry&&this.state===Bi.WAITING_LEVEL&&((te=J.context)==null?void 0:te.type)===Ht.LEVEL&&(this.state=Bi.IDLE);break;case R.BUFFER_FULL_ERROR:if(!J.parent||J.parent!=="main")return;this.reduceLengthAndFlushBuffer(J)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case R.INTERNAL_EXCEPTION:this.recoverWorkerError(J);break}}},{key:"checkBuffer",value:function(){var j=this.media,J=this.gapController;if(!j||!J||!j.readyState)return;if(this.loadedmetadata||!wi.getBuffered(j).length){var te=this.state!==Bi.IDLE?this.fragCurrent:null;J.poll(this.lastCurrentTime,te)}this.lastCurrentTime=j.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Bi.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(j,J){var te=J.type;if(te!==Ae.AUDIO||this.audioOnly&&!this.altAudio){var me=(te===Ae.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(me,te,Er.MAIN)}}},{key:"onLevelsUpdated",value:function(j,J){this.levels=J.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var j=this.media;if(!j)return;var J=j.currentTime,te=this.startPosition;if(te>=0&&J<te){if(j.seeking){this.log("could not seek to ".concat(te,", already seeking at ").concat(J));return}var me=wi.getBuffered(j),we=me.length?me.start(0):0,je=we-te;je>0&&(je<this.config.maxBufferHole||je<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(je," to match buffer start")),te+=je,this.startPosition=te),this.log("seek to target start position ".concat(te," from current time ").concat(J)),j.currentTime=te}}},{key:"_getAudioCodec",value:function(j){var J=this.config.defaultAudioCodec||j.audioCodec;return this.audioCodecSwap&&J&&(this.log("Swapping audio codec"),J.indexOf("mp4a.40.5")!==-1?J="mp4a.40.2":J="mp4a.40.5"),J}},{key:"_loadBitrateTestFrag",value:function(j,J){var te=this;j.bitrateTest=!0,this._doFragLoad(j,J).then(function(me){var we=te.hls;if(!me||te.fragContextChanged(j))return;J.fragmentError=0,te.state=Bi.IDLE,te.startFragRequested=!1,te.bitrateTest=!1;var je=j.stats;je.parsing.start=je.parsing.end=je.buffering.start=je.buffering.end=self.performance.now(),we.trigger(O.FRAG_LOADED,me),j.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(j){var J,te="main",me=this.hls,we=j.remuxResult,je=j.chunkMeta,qe=this.getCurrentContext(je);if(!qe){this.resetWhenMissingContext(je);return}var it=qe.frag,Rt=qe.part,hr=qe.level,tr=we.video,Dr=we.text,jr=we.id3,Sn=we.initSegment,yn=hr.details,Mn=this.altAudio?void 0:we.audio;if(this.fragContextChanged(it)){this.fragmentTracker.removeFragment(it);return}if(this.state=Bi.PARSING,Sn){if(Sn!=null&&Sn.tracks){var si=it.initSegment||it;this._bufferInitSegment(hr,Sn.tracks,si,je),me.trigger(O.FRAG_PARSING_INIT_SEGMENT,{frag:si,id:te,tracks:Sn.tracks})}var Xi=Sn.initPTS,Li=Sn.timescale;E(Xi)&&(this.initPTS[it.cc]={baseTime:Xi,timescale:Li},me.trigger(O.INIT_PTS_FOUND,{frag:it,id:te,initPTS:Xi,timescale:Li}))}if(tr&&yn&&it.sn!=="initSegment"){var Pi=yn.fragments[it.sn-1-yn.startSN],Aa=it.sn===yn.startSN,Na=!Pi||it.cc>Pi.cc;if(we.independent!==!1){var Sa=tr.startPTS,aa=tr.endPTS,so=tr.startDTS,os=tr.endDTS;if(Rt)Rt.elementaryStreams[tr.type]={startPTS:Sa,endPTS:aa,startDTS:so,endDTS:os};else if(tr.firstKeyFrame&&tr.independent&&je.id===1&&!Na&&(this.couldBacktrack=!0),tr.dropped&&tr.independent){var $o=this.getMainFwdBufferInfo(),Bs=($o?$o.end:this.getLoadPosition())+this.config.maxBufferHole,ve=tr.firstKeyFramePTS?tr.firstKeyFramePTS:Sa;if(!Aa&&Bs<ve-this.config.maxBufferHole&&!Na){this.backtrack(it);return}else Na&&(it.gap=!0);it.setElementaryStreamInfo(tr.type,it.start,aa,it.start,os,!0)}it.setElementaryStreamInfo(tr.type,Sa,aa,so,os),this.backtrackFragment&&(this.backtrackFragment=it),this.bufferFragmentData(tr,it,Rt,je,Aa||Na)}else if(Aa||Na)it.gap=!0;else{this.backtrack(it);return}}if(Mn){var Ke=Mn.startPTS,ht=Mn.endPTS,Vt=Mn.startDTS,Cr=Mn.endDTS;Rt&&(Rt.elementaryStreams[Ae.AUDIO]={startPTS:Ke,endPTS:ht,startDTS:Vt,endDTS:Cr}),it.setElementaryStreamInfo(Ae.AUDIO,Ke,ht,Vt,Cr),this.bufferFragmentData(Mn,it,Rt,je)}if(yn&&jr!=null&&(J=jr.samples)!=null&&J.length){var Xr={id:te,frag:it,details:yn,samples:jr.samples};me.trigger(O.FRAG_PARSING_METADATA,Xr)}if(yn&&Dr){var De={id:te,frag:it,details:yn,samples:Dr.samples};me.trigger(O.FRAG_PARSING_USERDATA,De)}}},{key:"_bufferInitSegment",value:function(j,J,te,me){var we=this;if(this.state!==Bi.PARSING)return;this.audioOnly=!!J.audio&&!J.video,this.altAudio&&!this.audioOnly&&delete J.audio;var je=J.audio,qe=J.video,it=J.audiovideo;if(je){var Rt=j.audioCodec,hr=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(Rt&&(Rt.indexOf("mp4a.40.5")!==-1?Rt="mp4a.40.2":Rt="mp4a.40.5"),je.metadata.channelCount!==1&&hr.indexOf("firefox")===-1&&(Rt="mp4a.40.5")),hr.indexOf("android")!==-1&&je.container!=="audio/mpeg"&&(Rt="mp4a.40.2",this.log("Android: force audio codec to ".concat(Rt))),j.audioCodec&&j.audioCodec!==Rt&&this.log('Swapping manifest audio codec "'.concat(j.audioCodec,'" for "').concat(Rt,'"')),je.levelCodec=Rt,je.id="main",this.log("Init audio buffer, container:".concat(je.container,", codecs[selected/level/parsed]=[").concat(Rt||"","/").concat(j.audioCodec||"","/").concat(je.codec,"]"))}qe&&(qe.levelCodec=j.videoCodec,qe.id="main",this.log("Init video buffer, container:".concat(qe.container,", codecs[level/parsed]=[").concat(j.videoCodec||"","/").concat(qe.codec,"]"))),it&&this.log("Init audiovideo buffer, container:".concat(it.container,", codecs[level/parsed]=[").concat(j.attrs.CODECS||"","/").concat(it.codec,"]")),this.hls.trigger(O.BUFFER_CODECS,J),Object.keys(J).forEach(function(tr){var Dr=J[tr],jr=Dr.initSegment;jr!=null&&jr.byteLength&&we.hls.trigger(O.BUFFER_APPENDING,{type:tr,data:jr,frag:te,part:null,chunkMeta:me,parent:te.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Er.MAIN)}},{key:"backtrack",value:function(j){this.couldBacktrack=!0,this.backtrackFragment=j,this.resetTransmuxer(),this.flushBufferGap(j),this.fragmentTracker.removeFragment(j),this.fragPrevious=null,this.nextLoadPosition=j.start,this.state=Bi.IDLE}},{key:"checkFragmentChanged",value:function(){var j=this.media,J=null;if(j&&j.readyState>1&&j.seeking===!1){var te=j.currentTime;if(wi.isBuffered(j,te)?J=this.getAppendedFrag(te):wi.isBuffered(j,te+.1)&&(J=this.getAppendedFrag(te+.1)),J){this.backtrackFragment=null;var me=this.fragPlaying,we=J.level;(!me||J.sn!==me.sn||me.level!==we||J.urlId!==me.urlId)&&(this.fragPlaying=J,this.hls.trigger(O.FRAG_CHANGED,{frag:J}),(!me||me.level!==we)&&this.hls.trigger(O.LEVEL_SWITCHED,{level:we}))}}}},{key:"nextLevel",get:function(){var j=this.nextBufferedFrag;return j?j.level:-1}},{key:"currentFrag",get:function(){var j=this.media;return j?this.fragPlaying||this.getAppendedFrag(j.currentTime):null}},{key:"currentProgramDateTime",get:function(){var j=this.media;if(j){var J=j.currentTime,te=this.currentFrag;if(te&&E(J)&&E(te.programDateTime)){var me=te.programDateTime+(J-te.start)*1e3;return new Date(me)}}return null}},{key:"currentLevel",get:function(){var j=this.currentFrag;return j?j.level:-1}},{key:"nextBufferedFrag",get:function(){var j=this.currentFrag;return j?this.followingBufferedFrag(j):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),L}(ro),Ct=function(){function he($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(r.a)(this,he),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=$,this.alpha_=$?Math.exp(Math.log(.5)/$):0,this.estimate_=L,this.totalWeight_=K}return Object(s.a)(he,[{key:"sample",value:function(L,K){var j=Math.pow(this.alpha_,L);this.estimate_=K*(1-j)+j*this.estimate_,this.totalWeight_+=L}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var L=1-Math.pow(this.alpha_,this.totalWeight_);if(L)return this.estimate_/L}return this.estimate_}}]),he}(),zt=function(){function he($,L,K){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,he),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_=K,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Ct($),this.fast_=new Ct(L),this.defaultTTFB_=j,this.ttfb_=new Ct($)}return Object(s.a)(he,[{key:"update",value:function(L,K){var j=this.slow_,J=this.fast_,te=this.ttfb_;j.halfLife!==L&&(this.slow_=new Ct(L,j.getEstimate(),j.getTotalWeight())),J.halfLife!==K&&(this.fast_=new Ct(K,J.getEstimate(),J.getTotalWeight())),te.halfLife!==L&&(this.ttfb_=new Ct(L,te.getEstimate(),te.getTotalWeight()))}},{key:"sample",value:function(L,K){L=Math.max(L,this.minDelayMs_);var j=8*K,J=L/1e3,te=j/J;this.fast_.sample(J,te),this.slow_.sample(J,te)}},{key:"sampleTTFB",value:function(L){var K=L/1e3,j=Math.sqrt(2)*Math.exp(-Math.pow(K,2)/2);this.ttfb_.sample(j,Math.max(L,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(){}}]),he}(),gn=function(){function he($){Object(r.a)(this,he),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=$;var L=$.config;this.bwEstimator=new zt(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(s.a)(he,[{key:"registerListeners",value:function(){var L=this.hls;L.on(O.FRAG_LOADING,this.onFragLoading,this),L.on(O.FRAG_LOADED,this.onFragLoaded,this),L.on(O.FRAG_BUFFERED,this.onFragBuffered,this),L.on(O.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(O.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(O.FRAG_LOADING,this.onFragLoading,this),L.off(O.FRAG_LOADED,this.onFragLoaded,this),L.off(O.FRAG_BUFFERED,this.onFragBuffered,this),L.off(O.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(O.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(L,K){var j,J=K.frag;if(this.ignoreFragment(J))return;this.fragCurrent=J,this.partCurrent=(j=K.part)!=null?j:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,K){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,K,j,J){var te=L+j/K,me=J?this.lastLevelLoadSec:0;return te+me}},{key:"onLevelLoaded",value:function(L,K){var j=this.hls.config,J=K.stats,te=J.total,me=J.bwEstimate;E(te)&&E(me)&&(this.lastLevelLoadSec=8*te/me),K.details.live?this.bwEstimator.update(j.abrEwmaSlowLive,j.abrEwmaFastLive):this.bwEstimator.update(j.abrEwmaSlowVoD,j.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var L=this.fragCurrent,K=this.partCurrent,j=this.hls,J=j.autoLevelEnabled,te=j.media;if(!L||!te)return;var me=performance.now(),we=K?K.stats:L.stats,je=K?K.duration:L.duration,qe=me-we.loading.start;if(we.aborted||we.loaded&&we.loaded===we.total||L.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!J||te.paused||!te.playbackRate||!te.readyState)return;var it=j.mainForwardBufferInfo;if(it===null)return;var Rt=this.bwEstimator.getEstimateTTFB(),hr=Math.abs(te.playbackRate);if(qe<=Math.max(Rt,1e3*(je/(hr*2))))return;var tr=it.len/hr;if(tr>=2*je/hr)return;var Dr=we.loading.first?we.loading.first-we.loading.start:-1,jr=we.loaded&&Dr>-1,Sn=this.bwEstimator.getEstimate(),yn=j.levels,Mn=j.minAutoLevel,si=yn[L.level],Xi=we.total||Math.max(we.loaded,Math.round(je*si.maxBitrate/8)),Li=qe-Dr;Li<1&&jr&&(Li=Math.min(qe,we.loaded*8/Sn));var Pi=jr?we.loaded*1e3/Li:0,Aa=Pi?(Xi-we.loaded)/Pi:Xi*8/Sn+Rt/1e3;if(Aa<=tr)return;var Na=Pi?Pi*8:Sn,Sa=Number.POSITIVE_INFINITY,aa;for(aa=L.level-1;aa>Mn;aa--){var so=yn[aa].maxBitrate;if(Sa=this.getTimeToLoadFrag(Rt/1e3,Na,je*so,!yn[aa].details),Sa<tr)break}if(Sa>=Aa)return;if(Sa>je*10)return;j.nextLoadLevel=aa,jr?this.bwEstimator.sample(qe-Math.min(Rt,Dr),we.loaded):this.bwEstimator.sampleTTFB(qe),this.clearTimer(),H.warn("[abr] Fragment ".concat(L.sn).concat(K?" part "+K.index:""," of level ").concat(L.level,` is loading too slowly;
Time to underbuffer: `).concat(tr.toFixed(3),` s
Estimated load time for current fragment: `).concat(Aa.toFixed(3),` s
Estimated load time for down switch fragment: `).concat(Sa.toFixed(3),` s
TTFB estimate: `).concat(Dr,`
Current BW estimate: `).concat(E(Sn)?(Sn/1024).toFixed(3):"Unknown",` Kb/s
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
Aborting and switching to level `).concat(aa)),L.loader&&(this.fragCurrent=this.partCurrent=null,L.abortRequests()),j.trigger(O.FRAG_LOAD_EMERGENCY_ABORTED,{frag:L,part:K,stats:we})}},{key:"onFragLoaded",value:function(L,K){var j=K.frag,J=K.part,te=J?J.stats:j.stats;if(j.type===Er.MAIN&&this.bwEstimator.sampleTTFB(te.loading.first-te.loading.start),this.ignoreFragment(j))return;if(this.clearTimer(),this.lastLoadedFragLevel=j.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var me=J?J.duration:j.duration,we=this.hls.levels[j.level],je=(we.loaded?we.loaded.bytes:0)+te.loaded,qe=(we.loaded?we.loaded.duration:0)+me;we.loaded={bytes:je,duration:qe},we.realBitrate=Math.round(8*je/qe)}if(j.bitrateTest){var it={stats:te,frag:j,part:J,id:j.type};this.onFragBuffered(O.FRAG_BUFFERED,it),j.bitrateTest=!1}}},{key:"onFragBuffered",value:function(L,K){var j=K.frag,J=K.part,te=J!=null&&J.stats.loaded?J.stats:j.stats;if(te.aborted)return;if(this.ignoreFragment(j))return;var me=te.parsing.end-te.loading.start-Math.min(te.loading.first-te.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(me,te.loaded),te.bwEstimate=this.bwEstimator.getEstimate(),j.bitrateTest?this.bitrateTestDelay=me/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(L){return L.type!==Er.MAIN||L.sn==="initSegment"}},{key:"clearTimer",value:function(){self.clearInterval(this.timer)}},{key:"nextAutoLevel",get:function(){var L=this._nextAutoLevel,K=this.bwEstimator;if(L!==-1&&!K.canEstimate())return L;var j=this.getNextABRAutoLevel();if(L!==-1){var J=this.hls.levels;if(J.length>Math.max(L,j)&&J[L].loadError<=J[j].loadError)return L}return L!==-1&&(j=Math.min(L,j)),j},set:function(L){this._nextAutoLevel=L}},{key:"getNextABRAutoLevel",value:function(){var L=this.fragCurrent,K=this.partCurrent,j=this.hls,J=j.maxAutoLevel,te=j.config,me=j.minAutoLevel,we=j.media,je=K?K.duration:L?L.duration:0,qe=we&&we.playbackRate!==0?Math.abs(we.playbackRate):1,it=this.bwEstimator?this.bwEstimator.getEstimate():te.abrEwmaDefaultEstimate,Rt=j.mainForwardBufferInfo,hr=(Rt?Rt.len:0)/qe,tr=this.findBestLevel(it,me,J,hr,te.abrBandWidthFactor,te.abrBandWidthUpFactor);if(tr>=0)return tr;H.trace("[abr] ".concat(hr?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var Dr=je?Math.min(je,te.maxStarvationDelay):te.maxStarvationDelay,jr=te.abrBandWidthFactor,Sn=te.abrBandWidthUpFactor;if(!hr){var yn=this.bitrateTestDelay;if(yn){var Mn=je?Math.min(je,te.maxLoadingDelay):te.maxLoadingDelay;Dr=Mn-yn,H.trace("[abr] bitrate test took ".concat(Math.round(1e3*yn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*Dr)," ms")),jr=Sn=1}}return tr=this.findBestLevel(it,me,J,hr+Dr,jr,Sn),Math.max(tr,0)}},{key:"findBestLevel",value:function(L,K,j,J,te,me){for(var we,je=this.fragCurrent,qe=this.partCurrent,it=this.lastLoadedFragLevel,Rt=this.hls.levels,hr=Rt[it],tr=!!(hr!=null&&(we=hr.details)!=null&&we.live),Dr=hr==null?void 0:hr.codecSet,jr=qe?qe.duration:je?je.duration:0,Sn=this.bwEstimator.getEstimateTTFB()/1e3,yn=K,Mn=-1,si=j;si>=K;si--){var Xi=Rt[si];if(!Xi||Dr&&Xi.codecSet!==Dr){Xi&&(yn=Math.min(si,yn),Mn=Math.max(si,Mn));continue}Mn!==-1&&H.trace("[abr] Skipped level(s) ".concat(yn,"-").concat(Mn,' with CODECS:"').concat(Rt[Mn].attrs.CODECS,'"; not compatible with "').concat(hr.attrs.CODECS,'"'));var Li=Xi.details,Pi=(qe?Li==null?void 0:Li.partTarget:Li==null?void 0:Li.averagetargetduration)||jr,Aa=void 0;si<=it?Aa=te*L:Aa=me*L;var Na=Rt[si].maxBitrate,Sa=this.getTimeToLoadFrag(Sn,Aa,Na*Pi,Li===void 0);if(H.trace("[abr] level:".concat(si," adjustedbw-bitrate:").concat(Math.round(Aa-Na)," avgDuration:").concat(Pi.toFixed(1)," maxFetchDuration:").concat(J.toFixed(1)," fetchDuration:").concat(Sa.toFixed(1))),Aa>Na&&(Sa===0||!E(Sa)||tr&&!this.bitrateTestDelay||Sa<J))return si}return-1}}]),he}(),$n=function(){function he(){Object(r.a)(this,he),this.chunks=[],this.dataLength=0}return Object(s.a)(he,[{key:"push",value:function(L){this.chunks.push(L),this.dataLength+=L.length}},{key:"flush",value:function(){var L=this.chunks,K=this.dataLength,j;if(L.length)L.length===1?j=L[0]:j=bi(L,K);else return new Uint8Array(0);return this.reset(),j}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),he}();function bi(he,$){for(var L=new Uint8Array($),K=0,j=0;j<he.length;j++){var J=he[j];L.set(J,K),K+=J.length}return L}var oi=100,Yi=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j,J){var te;return Object(r.a)(this,L),te=$.call(this,K,j,J,"[audio-stream-controller]",Er.AUDIO),te.videoBuffer=null,te.videoTrackCC=-1,te.waitingVideoCC=-1,te.bufferedTrack=null,te.switchingTrack=null,te.trackId=-1,te.waitingData=null,te.mainDetails=null,te.bufferFlushed=!1,te.cachedTrackLoadedData=null,te._registerListeners(),te}return Object(s.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}},{key:"_registerListeners",value:function(){var j=this.hls;j.on(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.on(O.MANIFEST_LOADING,this.onManifestLoading,this),j.on(O.LEVEL_LOADED,this.onLevelLoaded,this),j.on(O.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),j.on(O.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),j.on(O.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),j.on(O.ERROR,this.onError,this),j.on(O.BUFFER_RESET,this.onBufferReset,this),j.on(O.BUFFER_CREATED,this.onBufferCreated,this),j.on(O.BUFFER_FLUSHED,this.onBufferFlushed,this),j.on(O.INIT_PTS_FOUND,this.onInitPtsFound,this),j.on(O.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var j=this.hls;j.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.off(O.MANIFEST_LOADING,this.onManifestLoading,this),j.off(O.LEVEL_LOADED,this.onLevelLoaded,this),j.off(O.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),j.off(O.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),j.off(O.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),j.off(O.ERROR,this.onError,this),j.off(O.BUFFER_RESET,this.onBufferReset,this),j.off(O.BUFFER_CREATED,this.onBufferCreated,this),j.off(O.BUFFER_FLUSHED,this.onBufferFlushed,this),j.off(O.INIT_PTS_FOUND,this.onInitPtsFound,this),j.off(O.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(j,J){var te=J.frag,me=J.id,we=J.initPTS,je=J.timescale;if(me==="main"){var qe=te.cc;this.initPTS[te.cc]={baseTime:we,timescale:je},this.log("InitPTS for cc: ".concat(qe," found from main: ").concat(we)),this.videoTrackCC=qe,this.state===Bi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(j){if(!this.levels){this.startPosition=j,this.state=Bi.STOPPED;return}var J=this.lastCurrentTime;this.stopLoad(),this.setInterval(oi),J>0&&j===-1?(this.log("Override startPosition with lastCurrentTime @".concat(J.toFixed(3))),j=J,this.state=Bi.IDLE):(this.loadedmetadata=!1,this.state=Bi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=j,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Bi.IDLE:this.doTickIdle();break;case Bi.WAITING_TRACK:{var j,J=this.levels,te=this.trackId,me=J==null||(j=J[te])==null?void 0:j.details;if(me){if(this.waitForCdnTuneIn(me))break;this.state=Bi.WAITING_INIT_PTS}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var we,je=performance.now(),qe=this.retryDate;(!qe||je>=qe||(we=this.media)!=null&&we.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 it=this.waitingData;if(it){var Rt=it.frag,hr=it.part,tr=it.cache,Dr=it.complete;if(this.initPTS[Rt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.FRAG_LOADING;var jr=tr.flush(),Sn={frag:Rt,part:hr,payload:jr,networkDetails:null};this._handleFragmentLoadProgress(Sn),Dr&&Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,Sn)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(Rt.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var yn=this.getLoadPosition(),Mn=wi.bufferInfo(this.mediaBuffer,yn,this.config.maxBufferHole),si=Wi(Mn.end,this.config.maxFragLookUpTolerance,Rt);si<0&&(this.log("Waiting fragment cc (".concat(Rt.cc,") @ ").concat(Rt.start," cancelled because another fragment at ").concat(Mn.end," is needed")),this.clearWaitingFragment())}}else this.state=Bi.IDLE}}this.onTickEnd()}},{key:"clearWaitingFragment",value:function(){var j=this.waitingData;j&&(this.fragmentTracker.removeFragment(j.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.IDLE)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),Object(t.a)(Object(m.a)(L.prototype),"resetLoadingState",this).call(this)}},{key:"onTickEnd",value:function(){var j=this.media;if(!(j!=null&&j.readyState))return;this.lastCurrentTime=j.currentTime}},{key:"doTickIdle",value:function(){var j=this.hls,J=this.levels,te=this.media,me=this.trackId,we=j.config;if(!(J!=null&&J[me]))return;if(!te&&(this.startFragRequested||!we.startFragPrefetch))return;var je=J[me],qe=je.details;if(!qe||qe.live&&this.levelLastLoaded!==me||this.waitForCdnTuneIn(qe)){this.state=Bi.WAITING_TRACK;return}var it=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&it&&(this.bufferFlushed=!1,this.afterBufferFlushed(it,Ae.AUDIO,Er.AUDIO));var Rt=this.getFwdBufferInfo(it,Er.AUDIO);if(Rt===null)return;var hr=this.bufferedTrack,tr=this.switchingTrack;if(!tr&&this._streamEnded(Rt,qe)){j.trigger(O.BUFFER_EOS,{type:"audio"}),this.state=Bi.ENDED;return}var Dr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Er.MAIN),jr=Rt.len,Sn=this.getMaxBufferLength(Dr==null?void 0:Dr.len);if(jr>=Sn&&!tr)return;var yn=qe.fragments,Mn=yn[0].start,si=Rt.end;if(tr&&te){var Xi=this.getLoadPosition();hr&&tr.attrs!==hr.attrs&&(si=Xi),qe.PTSKnown&&Xi<Mn&&((Rt.end>Mn||Rt.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),te.currentTime=Mn+.05))}var Li=this.getNextFragment(si,qe),Pi=!1;if(Li&&this.isLoopLoading(Li,si)&&(Pi=!!Li.gap,Li=this.getNextFragmentLoopLoading(Li,qe,Rt,Er.MAIN,Sn)),!Li){this.bufferFlushed=!0;return}var Aa=Dr&&Li.start>Dr.end+qe.targetduration;if(Aa||!(Dr!=null&&Dr.len)&&Rt.len){var Na=this.getAppendedFrag(Li.start,Er.MAIN);if(Na===null)return;if(Pi||(Pi=!!Na.gap||!!Aa&&Dr.len===0),Aa&&!Pi||Pi&&Rt.nextStart&&Rt.nextStart<Na.end)return}this.loadFragment(Li,je,si)}},{key:"getMaxBufferLength",value:function(j){var J=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return j?Math.min(Math.max(J,j),this.config.maxMaxBufferLength):J}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(j,J){var te=J.audioTracks;this.resetTransmuxer(),this.levels=te.map(function(me){return new nr(me)})}},{key:"onAudioTrackSwitching",value:function(j,J){var te=!!J.url;this.trackId=J.id;var me=this.fragCurrent;me&&(me.abortRequests(),this.removeUnbufferedFrags(me.start)),this.resetLoadingState(),te?this.setInterval(oi):this.resetTransmuxer(),te?(this.switchingTrack=J,this.state=Bi.IDLE):(this.switchingTrack=null,this.bufferedTrack=J,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(j,J){this.mainDetails=J.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(O.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(j,J){var te;if(this.mainDetails==null){this.cachedTrackLoadedData=J;return}var me=this.levels,we=J.details,je=J.id;if(!me){this.warn("Audio tracks were reset while loading level ".concat(je));return}this.log("Track ".concat(je," loaded [").concat(we.startSN,",").concat(we.endSN,"]").concat(we.lastPartSn?"[part-".concat(we.lastPartSn,"-").concat(we.lastPartIndex,"]"):"",",duration:").concat(we.totalduration));var qe=me[je],it=0;if(we.live||(te=qe.details)!=null&&te.live){this.checkLiveUpdate(we);var Rt=this.mainDetails;if(we.deltaUpdateFailed||!Rt)return;!qe.details&&we.hasProgramDateTime&&Rt.hasProgramDateTime?(ga(we,Rt),it=we.fragments[0].start):it=this.alignPlaylists(we,qe.details)}qe.details=we,this.levelLastLoaded=je,!this.startFragRequested&&(this.mainDetails||!we.live)&&this.setStartPosition(qe.details,it),this.state===Bi.WAITING_TRACK&&!this.waitForCdnTuneIn(we)&&(this.state=Bi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(j){var J,te=j.frag,me=j.part,we=j.payload,je=this.config,qe=this.trackId,it=this.levels;if(!it){this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(te.sn," of level ").concat(te.level," will not be buffered"));return}var Rt=it[qe];if(!Rt){this.warn("Audio track is undefined on fragment load progress");return}var hr=Rt.details;if(!hr){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(te.start);return}var tr=je.defaultAudioCodec||Rt.audioCodec||"mp4a.40.2",Dr=this.transmuxer;Dr||(Dr=this.transmuxer=new Es(this.hls,Er.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var jr=this.initPTS[te.cc],Sn=(J=te.initSegment)==null?void 0:J.data;if(jr!==void 0){var yn=!1,Mn=me?me.index:-1,si=Mn!==-1,Xi=new Ii(te.level,te.sn,te.stats.chunkCount,we.byteLength,Mn,si);Dr.push(we,Sn,tr,"",te,me,hr.totalduration,yn,Xi,jr)}else{this.log("Unknown video PTS for cc ".concat(te.cc,", waiting for video PTS before demuxing audio frag ").concat(te.sn," of [").concat(hr.startSN," ,").concat(hr.endSN,"],track ").concat(qe));var Li=this.waitingData=this.waitingData||{frag:te,part:me,cache:new $n,complete:!1},Pi=Li.cache;Pi.push(new Uint8Array(we)),this.waitingVideoCC=this.videoTrackCC,this.state=Bi.WAITING_INIT_PTS}}},{key:"_handleFragmentLoadComplete",value:function(j){if(this.waitingData){this.waitingData.complete=!0;return}Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,j)}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(j,J){var te=J.tracks.audio;te&&(this.mediaBuffer=te.buffer||null),J.tracks.video&&(this.videoBuffer=J.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(j,J){var te=J.frag,me=J.part;if(te.type!==Er.AUDIO){if(!this.loadedmetadata&&te.type===Er.MAIN){var we=this.videoBuffer||this.media;if(we){var je=wi.getBuffered(we);je.length&&(this.loadedmetadata=!0)}}return}if(this.fragContextChanged(te)){this.warn("Fragment ".concat(te.sn).concat(me?" p: "+me.index:""," of level ").concat(te.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(te.sn!=="initSegment"){this.fragPrevious=te;var qe=this.switchingTrack;qe&&(this.bufferedTrack=qe,this.switchingTrack=null,this.hls.trigger(O.AUDIO_TRACK_SWITCHED,b({},qe)))}this.fragBufferedComplete(te,me)}},{key:"onError",value:function(j,J){var te;if(J.fatal){this.state=Bi.ERROR;return}switch(J.details){case R.FRAG_GAP:case R.FRAG_PARSING_ERROR:case R.FRAG_DECRYPT_ERROR:case R.FRAG_LOAD_ERROR:case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_ERROR:case R.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Er.AUDIO,J);break;case R.AUDIO_TRACK_LOAD_ERROR:case R.AUDIO_TRACK_LOAD_TIMEOUT:case R.LEVEL_PARSING_ERROR:!J.levelRetry&&this.state===Bi.WAITING_TRACK&&((te=J.context)==null?void 0:te.type)===Ht.AUDIO_TRACK&&(this.state=Bi.IDLE);break;case R.BUFFER_FULL_ERROR:if(!J.parent||J.parent!=="audio")return;this.reduceLengthAndFlushBuffer(J)&&(this.bufferedTrack=null,Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case R.INTERNAL_EXCEPTION:this.recoverWorkerError(J);break}}},{key:"onBufferFlushed",value:function(j,J){var te=J.type;te===Ae.AUDIO&&(this.bufferFlushed=!0,this.state===Bi.ENDED&&(this.state=Bi.IDLE))}},{key:"_handleTransmuxComplete",value:function(j){var J,te="audio",me=this.hls,we=j.remuxResult,je=j.chunkMeta,qe=this.getCurrentContext(je);if(!qe){this.resetWhenMissingContext(je);return}var it=qe.frag,Rt=qe.part,hr=qe.level,tr=hr.details,Dr=we.audio,jr=we.text,Sn=we.id3,yn=we.initSegment;if(this.fragContextChanged(it)||!tr){this.fragmentTracker.removeFragment(it);return}if(this.state=Bi.PARSING,this.switchingTrack&&Dr&&this.completeAudioSwitch(this.switchingTrack),yn!=null&&yn.tracks){var Mn=it.initSegment||it;this._bufferInitSegment(yn.tracks,Mn,je),me.trigger(O.FRAG_PARSING_INIT_SEGMENT,{frag:Mn,id:te,tracks:yn.tracks})}if(Dr){var si=Dr.startPTS,Xi=Dr.endPTS,Li=Dr.startDTS,Pi=Dr.endDTS;Rt&&(Rt.elementaryStreams[Ae.AUDIO]={startPTS:si,endPTS:Xi,startDTS:Li,endDTS:Pi}),it.setElementaryStreamInfo(Ae.AUDIO,si,Xi,Li,Pi),this.bufferFragmentData(Dr,it,Rt,je)}if(Sn!=null&&(J=Sn.samples)!=null&&J.length){var Aa=x({id:te,frag:it,details:tr},Sn);me.trigger(O.FRAG_PARSING_METADATA,Aa)}if(jr){var Na=x({id:te,frag:it,details:tr},jr);me.trigger(O.FRAG_PARSING_USERDATA,Na)}}},{key:"_bufferInitSegment",value:function(j,J,te){if(this.state!==Bi.PARSING)return;j.video&&delete j.video;var me=j.audio;if(!me)return;me.levelCodec=me.codec,me.id="audio",this.log("Init audio buffer, container:".concat(me.container,", codecs[parsed]=[").concat(me.codec,"]")),this.hls.trigger(O.BUFFER_CODECS,j);var we=me.initSegment;if(we!=null&&we.byteLength){var je={type:"audio",frag:J,part:null,chunkMeta:te,parent:J.type,data:we};this.hls.trigger(O.BUFFER_APPENDING,je)}this.tick()}},{key:"loadFragment",value:function(j,J,te){var me=this.fragmentTracker.getState(j);if(this.fragCurrent=j,this.switchingTrack||me===Ur.NOT_LOADED||me===Ur.PARTIAL){var we;j.sn==="initSegment"?this._loadInitSegment(j,J):(we=J.details)!=null&&we.live&&!this.initPTS[j.cc]?(this.log("Waiting for video PTS in continuity counter ".concat(j.cc," of live stream before loading audio fragment ").concat(j.sn," of level ").concat(this.trackId)),this.state=Bi.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,j,J,te))}else this.clearTrackerIfNeeded(j)}},{key:"completeAudioSwitch",value:function(j){var J=this.hls,te=this.media,me=this.bufferedTrack,we=me==null?void 0:me.attrs,je=j.attrs;te&&we&&(we.CHANNELS!==je.CHANNELS||we.NAME!==je.NAME||we.LANGUAGE!==je.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=j,this.switchingTrack=null,J.trigger(O.AUDIO_TRACK_SWITCHED,b({},j))}}]),L}(ro),ha=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K){var j;return Object(r.a)(this,L),j=$.call(this,K,"[audio-track-controller]"),j.tracks=[],j.groupId=null,j.tracksInGroup=[],j.trackId=-1,j.currentTrack=null,j.selectDefaultTrack=!0,j.registerListeners(),j}return Object(s.a)(L,[{key:"registerListeners",value:function(){var j=this.hls;j.on(O.MANIFEST_LOADING,this.onManifestLoading,this),j.on(O.MANIFEST_PARSED,this.onManifestParsed,this),j.on(O.LEVEL_LOADING,this.onLevelLoading,this),j.on(O.LEVEL_SWITCHING,this.onLevelSwitching,this),j.on(O.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),j.on(O.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var j=this.hls;j.off(O.MANIFEST_LOADING,this.onManifestLoading,this),j.off(O.MANIFEST_PARSED,this.onManifestParsed,this),j.off(O.LEVEL_LOADING,this.onLevelLoading,this),j.off(O.LEVEL_SWITCHING,this.onLevelSwitching,this),j.off(O.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),j.off(O.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)(L.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(j,J){this.tracks=J.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(j,J){var te=J.id,me=J.groupId,we=J.details,je=this.tracksInGroup[te];if(!je||je.groupId!==me){this.warn("Track with id:".concat(te," and group:").concat(me," not found in active group ").concat(je.groupId));return}var qe=je.details;je.details=J.details,this.log("audio-track ".concat(te,' "').concat(je.name,'" lang:').concat(je.lang," group:").concat(me," loaded [").concat(we.startSN,"-").concat(we.endSN,"]")),te===this.trackId&&this.playlistLoaded(te,J,qe)}},{key:"onLevelLoading",value:function(j,J){this.switchLevel(J.level)}},{key:"onLevelSwitching",value:function(j,J){this.switchLevel(J.level)}},{key:"switchLevel",value:function(j){var J=this.hls.levels[j];if(!(J!=null&&J.audioGroupIds))return;var te=J.audioGroupIds[J.urlId];if(this.groupId!==te){this.groupId=te||null;var me=this.tracks.filter(function(je){return!te||je.groupId===te});this.selectDefaultTrack&&!me.some(function(je){return je.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=me;var we={audioTracks:me};this.log("Updating audio tracks, ".concat(me.length," track(s) found in group:").concat(te)),this.hls.trigger(O.AUDIO_TRACKS_UPDATED,we),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(j,J){if(J.fatal||!J.context)return;J.context.type===Ht.AUDIO_TRACK&&J.context.id===this.trackId&&J.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(J))}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(j){this.selectDefaultTrack=!1,this.setAudioTrack(j)}},{key:"setAudioTrack",value:function(j){var J=this.tracksInGroup;if(j<0||j>=J.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var te=this.currentTrack;J[this.trackId];var me=J[j],we=me.groupId,je=me.name;if(this.log("Switching to audio-track ".concat(j,' "').concat(je,'" lang:').concat(me.lang," group:").concat(we)),this.trackId=j,this.currentTrack=me,this.selectDefaultTrack=!1,this.hls.trigger(O.AUDIO_TRACK_SWITCHING,b({},me)),me.details&&!me.details.live)return;var qe=this.switchParams(me.url,te==null?void 0:te.details);this.loadPlaylist(qe)}},{key:"selectInitialTrack",value:function(){var j=this.tracksInGroup,J=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(J!==-1)this.setAudioTrack(J);else{var te=new Error("No track found for running audio group-ID: ".concat(this.groupId," track count: ").concat(j.length));this.warn(te.message),this.hls.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:te})}}},{key:"findTrackId",value:function(j){for(var J=this.tracksInGroup,te=0;te<J.length;te++){var me=J[te];if(!this.selectDefaultTrack||me.default){if(!j||j.attrs["STABLE-RENDITION-ID"]!==void 0&&j.attrs["STABLE-RENDITION-ID"]===me.attrs["STABLE-RENDITION-ID"])return me.id;if(j.name===me.name&&j.lang===me.lang)return me.id}}return-1}},{key:"loadPlaylist",value:function(j){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var J=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(J)){var te=J.id,me=J.groupId,we=J.url;if(j)try{we=j.addDirectives(we)}catch(je){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(je))}this.log("loading audio-track playlist ".concat(te,' "').concat(J.name,'" lang:').concat(J.lang," group:").concat(me)),this.clearTimer(),this.hls.trigger(O.AUDIO_TRACK_LOADING,{url:we,id:te,groupId:me,deliveryDirectives:j||null})}}}]),L}(Jr);function Pa(he,$){if(he.length!==$.length)return!1;for(var L=0;L<he.length;L++)if(!Co(he[L].attrs,$[L].attrs))return!1;return!0}function Co(he,$){var L=he["STABLE-RENDITION-ID"];return L?L===$["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(K){return he[K]!==$[K]})}var vo=500,ko=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j,J){var te;return Object(r.a)(this,L),te=$.call(this,K,j,J,"[subtitle-stream-controller]",Er.SUBTITLE),te.levels=[],te.currentTrackId=-1,te.tracksBuffered=[],te.mainDetails=null,te._registerListeners(),te}return Object(s.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null}},{key:"_registerListeners",value:function(){var j=this.hls;j.on(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.on(O.MANIFEST_LOADING,this.onManifestLoading,this),j.on(O.LEVEL_LOADED,this.onLevelLoaded,this),j.on(O.ERROR,this.onError,this),j.on(O.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),j.on(O.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),j.on(O.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),j.on(O.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),j.on(O.BUFFER_FLUSHING,this.onBufferFlushing,this),j.on(O.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var j=this.hls;j.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.off(O.MANIFEST_LOADING,this.onManifestLoading,this),j.off(O.LEVEL_LOADED,this.onLevelLoaded,this),j.off(O.ERROR,this.onError,this),j.off(O.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),j.off(O.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),j.off(O.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),j.off(O.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),j.off(O.BUFFER_FLUSHING,this.onBufferFlushing,this),j.off(O.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(j){this.stopLoad(),this.state=Bi.IDLE,this.setInterval(vo),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=j,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(j,J){this.mainDetails=J.details}},{key:"onSubtitleFragProcessed",value:function(j,J){var te=J.frag,me=J.success;if(this.fragPrevious=te,this.state=Bi.IDLE,!me)return;var we=this.tracksBuffered[this.currentTrackId];if(!we)return;for(var je,qe=te.start,it=0;it<we.length;it++)if(qe>=we[it].start&&qe<=we[it].end){je=we[it];break}var Rt=te.start+te.duration;je?je.end=Rt:(je={start:qe,end:Rt},we.push(je)),this.fragmentTracker.fragBuffered(te)}},{key:"onBufferFlushing",value:function(j,J){var te=J.startOffset,me=J.endOffset;if(te===0&&me!==Number.POSITIVE_INFINITY){var we=me-1;if(we<=0)return;J.endOffsetSubtitles=Math.max(0,we),this.tracksBuffered.forEach(function(je){for(var qe=0;qe<je.length;){if(je[qe].end<=we){je.shift();continue}else if(je[qe].start<we)je[qe].start=we;else break;qe++}}),this.fragmentTracker.removeFragmentsInRange(te,we,Er.SUBTITLE)}}},{key:"onFragBuffered",value:function(j,J){if(!this.loadedmetadata&&J.frag.type===Er.MAIN){var te;(te=this.media)!=null&&te.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(j,J){var te=J.frag;(te==null?void 0:te.type)===Er.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(j,J){var te=this,me=J.subtitleTracks;if(Pa(this.levels,me)){this.levels=me.map(function(we){return new nr(we)});return}this.tracksBuffered=[],this.levels=me.map(function(we){var je=new nr(we);return te.tracksBuffered[je.id]=[],je}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Er.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(j,J){if(this.currentTrackId=J.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var te=this.levels[this.currentTrackId];te!=null&&te.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,te&&this.setInterval(vo)}},{key:"onSubtitleTrackLoaded",value:function(j,J){var te,me=J.details,we=J.id,je=this.currentTrackId,qe=this.levels;if(!qe.length)return;var it=qe[je];if(we>=qe.length||we!==je||!it)return;this.mediaBuffer=this.mediaBufferTimeRanges;var Rt=0;if(me.live||(te=it.details)!=null&&te.live){var hr=this.mainDetails;if(me.deltaUpdateFailed||!hr)return;var tr=hr.fragments[0];it.details?(Rt=this.alignPlaylists(me,it.details),Rt===0&&tr&&(Rt=tr.start,In(me,Rt))):me.hasProgramDateTime&&hr.hasProgramDateTime?(ga(me,hr),Rt=me.fragments[0].start):tr&&(Rt=tr.start,In(me,Rt))}if(it.details=me,this.levelLastLoaded=we,!this.startFragRequested&&(this.mainDetails||!me.live)&&this.setStartPosition(it.details,Rt),this.tick(),me.live&&!this.fragCurrent&&this.media&&this.state===Bi.IDLE){var Dr=Ji(null,me.fragments,this.media.currentTime,0);Dr||(this.warn("Subtitle playlist not aligned with playback"),it.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(j){var J=this,te=j.frag,me=j.payload,we=te.decryptdata,je=this.hls;if(this.fragContextChanged(te))return;if(me&&me.byteLength>0&&we&&we.key&&we.iv&&we.method==="AES-128"){var qe=performance.now();this.decrypter.decrypt(new Uint8Array(me),we.key.buffer,we.iv.buffer).catch(function(it){throw je.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_DECRYPT_ERROR,fatal:!1,error:it,reason:it.message,frag:te}),it}).then(function(it){var Rt=performance.now();je.trigger(O.FRAG_DECRYPTED,{frag:te,payload:it,stats:{tstart:qe,tdecrypt:Rt}})}).catch(function(it){J.warn("".concat(it.name,": ").concat(it.message)),J.state=Bi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Bi.IDLE;return}if(this.state===Bi.IDLE){var j=this.currentTrackId,J=this.levels,te=J[j];if(!J.length||!te||!te.details)return;var me=this.config,we=this.getLoadPosition(),je=wi.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],we,me.maxBufferHole),qe=je.end,it=je.len,Rt=this.getFwdBufferInfo(this.media,Er.MAIN),hr=te.details,tr=this.getMaxBufferLength(Rt==null?void 0:Rt.len)+hr.levelTargetDuration;if(it>tr)return;var Dr=hr.fragments,jr=Dr.length,Sn=hr.edge,yn=null,Mn=this.fragPrevious;if(qe<Sn){var si=me.maxFragLookUpTolerance,Xi=qe>Sn-si?0:si;yn=Ji(Mn,Dr,Math.max(Dr[0].start,qe),Xi),!yn&&Mn&&Mn.start<Dr[0].start&&(yn=Dr[0])}else yn=Dr[jr-1];if(!yn)return;if(yn=this.mapToInitFragWhenRequired(yn),yn.sn!=="initSegment"){var Li=yn.sn-hr.startSN,Pi=Dr[Li-1];Pi&&Pi.cc===yn.cc&&this.fragmentTracker.getState(Pi)===Ur.NOT_LOADED&&(yn=Pi)}this.fragmentTracker.getState(yn)===Ur.NOT_LOADED&&this.loadFragment(yn,te,qe)}}},{key:"getMaxBufferLength",value:function(j){var J=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return j?Math.max(J,j):J}},{key:"loadFragment",value:function(j,J,te){this.fragCurrent=j,j.sn==="initSegment"?this._loadInitSegment(j,J):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,j,J,te))}},{key:"mediaBufferTimeRanges",get:function(){return new ls(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(ro),ls=Object(s.a)(function he($){Object(r.a)(this,he),this.buffered=void 0;var L=function(j,J,te){if(J=J>>>0,J>te-1)throw new DOMException("Failed to execute '".concat(j,"' on 'TimeRanges': The index provided (").concat(J,") is greater than the maximum bound (").concat(te,")"));return $[J][j]};this.buffered={get length(){return $.length},end:function(j){return L("end",j,$.length)},start:function(j){return L("start",j,$.length)}}}),jo=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K){var j;return Object(r.a)(this,L),j=$.call(this,K,"[subtitle-track-controller]"),j.media=null,j.tracks=[],j.groupId=null,j.tracksInGroup=[],j.trackId=-1,j.selectDefaultTrack=!0,j.queuedDefaultTrack=-1,j.trackChangeListener=function(){return j.onTextTracksChanged()},j.asyncPollTrackChange=function(){return j.pollTrackChange(0)},j.useTextTrackPolling=!1,j.subtitlePollingInterval=-1,j._subtitleDisplay=!0,j.registerListeners(),j}return Object(s.a)(L,[{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)(L.prototype),"destroy",this).call(this)}},{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(j){this._subtitleDisplay=j,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"registerListeners",value:function(){var j=this.hls;j.on(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.on(O.MANIFEST_LOADING,this.onManifestLoading,this),j.on(O.MANIFEST_PARSED,this.onManifestParsed,this),j.on(O.LEVEL_LOADING,this.onLevelLoading,this),j.on(O.LEVEL_SWITCHING,this.onLevelSwitching,this),j.on(O.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),j.on(O.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var j=this.hls;j.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),j.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),j.off(O.MANIFEST_LOADING,this.onManifestLoading,this),j.off(O.MANIFEST_PARSED,this.onManifestParsed,this),j.off(O.LEVEL_LOADING,this.onLevelLoading,this),j.off(O.LEVEL_SWITCHING,this.onLevelSwitching,this),j.off(O.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),j.off(O.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(j,J){if(this.media=J.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(j){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,j)}},{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 j=Zo(this.media.textTracks);j.forEach(function(J){Un(J)}),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(j,J){this.tracks=J.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(j,J){var te=J.id,me=J.details,we=this.trackId,je=this.tracksInGroup[we];if(!je){this.warn("Invalid subtitle track id ".concat(te));return}var qe=je.details;je.details=J.details,this.log("subtitle track ".concat(te," loaded [").concat(me.startSN,"-").concat(me.endSN,"]")),te===this.trackId&&this.playlistLoaded(te,J,qe)}},{key:"onLevelLoading",value:function(j,J){this.switchLevel(J.level)}},{key:"onLevelSwitching",value:function(j,J){this.switchLevel(J.level)}},{key:"switchLevel",value:function(j){var J=this.hls.levels[j];if(!(J!=null&&J.textGroupIds))return;var te=J.textGroupIds[J.urlId],me=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==te){var we=this.tracks.filter(function(it){return!te||it.groupId===te});this.tracksInGroup=we;var je=this.findTrackId(me==null?void 0:me.name)||this.findTrackId();this.groupId=te||null;var qe={subtitleTracks:we};this.log("Updating subtitle tracks, ".concat(we.length,' track(s) found in "').concat(te,'" group-id')),this.hls.trigger(O.SUBTITLE_TRACKS_UPDATED,qe),je!==-1&&this.setSubtitleTrack(je,me)}else this.shouldReloadPlaylist(me)&&this.setSubtitleTrack(this.trackId,me)}},{key:"findTrackId",value:function(j){for(var J=this.tracksInGroup,te=0;te<J.length;te++){var me=J[te];if((!this.selectDefaultTrack||me.default)&&(!j||j===me.name))return me.id}return-1}},{key:"onError",value:function(j,J){if(J.fatal||!J.context)return;J.context.type===Ht.SUBTITLE_TRACK&&J.context.id===this.trackId&&J.context.groupId===this.groupId&&this.checkRetry(J)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(j){this.selectDefaultTrack=!1;var J=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(j,J)}},{key:"loadPlaylist",value:function(j){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var J=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(J)){var te=J.id,me=J.groupId,we=J.url;if(j)try{we=j.addDirectives(we)}catch(je){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(je))}this.log("Loading subtitle playlist for id ".concat(te)),this.hls.trigger(O.SUBTITLE_TRACK_LOADING,{url:we,id:te,groupId:me,deliveryDirectives:j||null})}}},{key:"toggleTrackModes",value:function(j){var J=this,te=this.media,me=this.trackId;if(!te)return;var we=Zo(te.textTracks),je=we.filter(function(Rt){return Rt.groupId===J.groupId});if(j===-1)[].slice.call(we).forEach(function(Rt){Rt.mode="disabled"});else{var qe=je[me];qe&&(qe.mode="disabled")}var it=je[j];it&&(it.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(j,J){var te,me=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=j;return}if(this.trackId!==j&&this.toggleTrackModes(j),this.trackId===j&&(j===-1||(te=me[j])!=null&&te.details)||j<-1||j>=me.length)return;this.clearTimer();var we=me[j];if(this.log("Switching to subtitle-track ".concat(j)+(we?' "'.concat(we.name,'" lang:').concat(we.lang," group:").concat(we.groupId):"")),this.trackId=j,we){var je=we.id,qe=we.groupId,it=qe===void 0?"":qe,Rt=we.name,hr=we.type,tr=we.url;this.hls.trigger(O.SUBTITLE_TRACK_SWITCH,{id:je,groupId:it,name:Rt,type:hr,url:tr});var Dr=this.switchParams(we.url,J==null?void 0:J.details);this.loadPlaylist(Dr)}else this.hls.trigger(O.SUBTITLE_TRACK_SWITCH,{id:j})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var j=-1,J=Zo(this.media.textTracks),te=0;te<J.length;te++)if(J[te].mode==="hidden")j=te;else if(J[te].mode==="showing"){j=te;break}this.subtitleTrack!==j&&(this.subtitleTrack=j)}}]),L}(Jr);function Zo(he){for(var $=[],L=0;L<he.length;L++){var K=he[L];(K.kind==="subtitles"||K.kind==="captions")&&K.label&&$.push(he[L])}return $}var ts=function(){function he($){Object(r.a)(this,he),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=$}return Object(s.a)(he,[{key:"append",value:function(L,K){var j=this.queues[K];j.push(L),j.length===1&&this.buffers[K]&&this.executeNext(K)}},{key:"insertAbort",value:function(L,K){var j=this.queues[K];j.unshift(L),this.executeNext(K)}},{key:"appendBlocker",value:function(L){var K,j=new Promise(function(te){K=te}),J={execute:K,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(J,L),j}},{key:"executeNext",value:function(L){var K=this.buffers,j=this.queues,J=K[L],te=j[L];if(te.length){var me=te[0];try{me.execute()}catch(we){H.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),me.onError(we),J!=null&&J.updating||(te.shift(),this.executeNext(L))}}}},{key:"shiftAndExecuteNext",value:function(L){this.queues[L].shift(),this.executeNext(L)}},{key:"current",value:function(L){return this.queues[L][0]}}]),he}(),Ua=Tr(),Oo=/([ha]vc.)(?:\.[^.,]+)+/,as=function(){function he($){var L=this;Object(r.a)(this,he),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 K=L.media,j=L.mediaSource;H.log("[buffer-controller]: Media source opened"),K&&(K.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(O.MEDIA_ATTACHED,{media:K})),j&&j.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){H.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){H.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var K=L.media,j=L._objectUrl;K&&K.src!==j&&H.error("Media element src was set while attaching MediaSource (".concat(j," > ").concat(K.src,")"))},this.hls=$,this._initSourceBuffer(),this.registerListeners()}return Object(s.a)(he,[{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 L=this.hls;L.on(O.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(O.MANIFEST_LOADING,this.onManifestLoading,this),L.on(O.MANIFEST_PARSED,this.onManifestParsed,this),L.on(O.BUFFER_RESET,this.onBufferReset,this),L.on(O.BUFFER_APPENDING,this.onBufferAppending,this),L.on(O.BUFFER_CODECS,this.onBufferCodecs,this),L.on(O.BUFFER_EOS,this.onBufferEos,this),L.on(O.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(O.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(O.FRAG_PARSED,this.onFragParsed,this),L.on(O.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(O.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(O.MANIFEST_LOADING,this.onManifestLoading,this),L.off(O.MANIFEST_PARSED,this.onManifestParsed,this),L.off(O.BUFFER_RESET,this.onBufferReset,this),L.off(O.BUFFER_APPENDING,this.onBufferAppending,this),L.off(O.BUFFER_CODECS,this.onBufferCodecs,this),L.off(O.BUFFER_EOS,this.onBufferEos,this),L.off(O.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(O.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(O.FRAG_PARSED,this.onFragParsed,this),L.off(O.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new ts(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(L,K){var j=2;(K.audio&&!K.video||!K.altAudio||!1)&&(j=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=j,H.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(L,K){var j=this.media=K.media;if(j&&Ua){var J=this.mediaSource=new Ua;J.addEventListener("sourceopen",this._onMediaSourceOpen),J.addEventListener("sourceended",this._onMediaSourceEnded),J.addEventListener("sourceclose",this._onMediaSourceClose),j.src=self.URL.createObjectURL(J),this._objectUrl=j.src,j.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,K=this.mediaSource,j=this._objectUrl;if(K){if(H.log("[buffer-controller]: media source detaching"),K.readyState==="open")try{K.endOfStream()}catch(J){H.warn("[buffer-controller]: onMediaDetaching: ".concat(J.message," while calling endOfStream"))}this.onBufferReset(),K.removeEventListener("sourceopen",this._onMediaSourceOpen),K.removeEventListener("sourceended",this._onMediaSourceEnded),K.removeEventListener("sourceclose",this._onMediaSourceClose),L&&(L.removeEventListener("emptied",this._onMediaEmptied),j&&self.URL.revokeObjectURL(j),L.src===j?(L.removeAttribute("src"),L.load()):H.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(O.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(K){var j=L.sourceBuffer[K];try{j&&(L.removeBufferListeners(K),L.mediaSource&&L.mediaSource.removeSourceBuffer(j),L.sourceBuffer[K]=void 0)}catch(J){H.warn("[buffer-controller]: Failed to reset the ".concat(K," buffer"),J)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,K){var j=this,J=this.getSourceBufferTypes().length;if(Object.keys(K).forEach(function(te){if(J){var me=j.tracks[te];if(me&&typeof me.buffer.changeType=="function"){var we=K[te],je=we.id,qe=we.codec,it=we.levelCodec,Rt=we.container,hr=we.metadata,tr=(me.levelCodec||me.codec).replace(Oo,"$1"),Dr=(it||qe).replace(Oo,"$1");if(tr!==Dr){var jr="".concat(Rt,";codecs=").concat(it||qe);j.appendChangeType(te,jr),H.log("[buffer-controller]: switching codec ".concat(tr," to ").concat(Dr)),j.tracks[te]={buffer:me.buffer,codec:qe,container:Rt,levelCodec:it,metadata:hr,id:je}}}}else j.pendingTracks[te]=K[te]}),J)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,K){var j=this,J=this.operationQueue,te={execute:function(){var we=j.sourceBuffer[L];we&&(H.log("[buffer-controller]: changing ".concat(L," sourceBuffer type to ").concat(K)),we.changeType(K)),J.shiftAndExecuteNext(L)},onStart:function(){},onComplete:function(){},onError:function(we){H.warn("[buffer-controller]: Failed to change ".concat(L," SourceBuffer type"),we)}};J.append(te,L)}},{key:"onBufferAppending",value:function(L,K){var j=this,J=this.hls,te=this.operationQueue,me=this.tracks,we=K.data,je=K.type,qe=K.frag,it=K.part,Rt=K.chunkMeta,hr=Rt.buffering[je],tr=self.performance.now();hr.start=tr;var Dr=qe.stats.buffering,jr=it?it.stats.buffering:null;Dr.start===0&&(Dr.start=tr),jr&&jr.start===0&&(jr.start=tr);var Sn=me.audio,yn=!1;je==="audio"&&(Sn==null?void 0:Sn.container)==="audio/mpeg"&&(yn=!this.lastMpegAudioChunk||Rt.id===1||this.lastMpegAudioChunk.sn!==Rt.sn,this.lastMpegAudioChunk=Rt);var Mn=qe.start,si={execute:function(){if(hr.executeStart=self.performance.now(),yn){var Li=j.sourceBuffer[je];if(Li){var Pi=Mn-Li.timestampOffset;Math.abs(Pi)>=.1&&(H.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Mn," (delta: ").concat(Pi,") sn: ").concat(qe.sn,")")),Li.timestampOffset=Mn)}}j.appendExecutor(we,je)},onStart:function(){},onComplete:function(){var Li=self.performance.now();hr.executeEnd=hr.end=Li,Dr.first===0&&(Dr.first=Li),jr&&jr.first===0&&(jr.first=Li);var Pi=j.sourceBuffer,Aa={};for(var Na in Pi)Aa[Na]=wi.getBuffered(Pi[Na]);j.appendError=0,j.hls.trigger(O.BUFFER_APPENDED,{type:je,frag:qe,part:it,chunkMeta:Rt,parent:qe.type,timeRanges:Aa})},onError:function(Li){H.error("[buffer-controller]: Error encountered while trying to append to the ".concat(je," SourceBuffer"),Li);var Pi={type:F.MEDIA_ERROR,parent:qe.type,details:R.BUFFER_APPEND_ERROR,frag:qe,part:it,chunkMeta:Rt,error:Li,err:Li,fatal:!1};Li.code===DOMException.QUOTA_EXCEEDED_ERR?Pi.details=R.BUFFER_FULL_ERROR:(j.appendError++,Pi.details=R.BUFFER_APPEND_ERROR,j.appendError>J.config.appendErrorMaxRetry&&(H.error("[buffer-controller]: Failed ".concat(J.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),Pi.fatal=!0)),J.trigger(O.ERROR,Pi)}};te.append(si,je)}},{key:"onBufferFlushing",value:function(L,K){var j=this,J=this.operationQueue,te=function(we){return{execute:j.removeExecutor.bind(j,we,K.startOffset,K.endOffset),onStart:function(){},onComplete:function(){j.hls.trigger(O.BUFFER_FLUSHED,{type:we})},onError:function(qe){H.warn("[buffer-controller]: Failed to remove from ".concat(we," SourceBuffer"),qe)}}};K.type?J.append(te(K.type),K.type):this.getSourceBufferTypes().forEach(function(me){J.append(te(me),me)})}},{key:"onFragParsed",value:function(L,K){var j=this,J=K.frag,te=K.part,me=[],we=te?te.elementaryStreams:J.elementaryStreams;we[Ae.AUDIOVIDEO]?me.push("audiovideo"):(we[Ae.AUDIO]&&me.push("audio"),we[Ae.VIDEO]&&me.push("video"));var je=function(){var it=self.performance.now();J.stats.buffering.end=it,te&&(te.stats.buffering.end=it);var Rt=te?te.stats:J.stats;j.hls.trigger(O.FRAG_BUFFERED,{frag:J,part:te,stats:Rt,id:J.type})};me.length===0&&H.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(J.type," level: ").concat(J.level," sn: ").concat(J.sn)),this.blockBuffers(je,me)}},{key:"onFragChanged",value:function(L,K){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,K){var j=this,J=this.getSourceBufferTypes().reduce(function(te,me){var we=j.sourceBuffer[me];return we&&(!K.type||K.type===me)&&(we.ending=!0,we.ended||(we.ended=!0,H.log("[buffer-controller]: ".concat(me," sourceBuffer now EOS")))),te&&!!(!we||we.ended)},!0);J&&(H.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){j.getSourceBufferTypes().forEach(function(me){var we=j.sourceBuffer[me];we&&(we.ending=!1)});var te=j.mediaSource;if(!te||te.readyState!=="open"){te&&H.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(te.readyState));return}H.log("[buffer-controller]: Calling mediaSource.endOfStream()"),te.endOfStream()}))}},{key:"onLevelUpdated",value:function(L,K){var j=K.details;if(!j.fragments.length)return;this.details=j,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()}},{key:"flushBackBuffer",value:function(){var L=this.hls,K=this.details,j=this.media,J=this.sourceBuffer;if(!j||K===null)return;var te=this.getSourceBufferTypes();if(!te.length)return;var me=K.live&&L.config.liveBackBufferLength!==null?L.config.liveBackBufferLength:L.config.backBufferLength;if(!E(me)||me<0)return;var we=j.currentTime,je=K.levelTargetDuration,qe=Math.max(me,je),it=Math.floor(we/je)*je-qe;te.forEach(function(Rt){var hr=J[Rt];if(hr){var tr=wi.getBuffered(hr);if(tr.length>0&&it>tr.start(0)){if(L.trigger(O.BACK_BUFFER_REACHED,{bufferEnd:it}),K.live)L.trigger(O.LIVE_BACK_BUFFER_REACHED,{bufferEnd:it});else if(hr.ended&&tr.end(tr.length-1)-we<je*2){H.info("[buffer-controller]: Cannot flush ".concat(Rt," back buffer while SourceBuffer is in ended state"));return}L.trigger(O.BUFFER_FLUSHING,{startOffset:0,endOffset:it,type:Rt})}}})}},{key:"updateMediaElementDuration",value:function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var L=this.details,K=this.hls,j=this.media,J=this.mediaSource,te=L.fragments[0].start+L.totalduration,me=j.duration,we=E(J.duration)?J.duration:0;L.live&&K.config.liveDurationInfinity?(H.log("[buffer-controller]: Media Source duration is set to Infinity"),J.duration=Infinity,this.updateSeekableRange(L)):(te>we&&te>me||!E(me))&&(H.log("[buffer-controller]: Updating Media Source duration to ".concat(te.toFixed(3))),J.duration=te)}},{key:"updateSeekableRange",value:function(L){var K=this.mediaSource,j=L.fragments,J=j.length;if(J&&L.live&&K!=null&&K.setLiveSeekableRange){var te=Math.max(0,j[0].start),me=Math.max(te,te+L.totalduration);K.setLiveSeekableRange(te,me)}}},{key:"checkPendingTracks",value:function(){var L=this.bufferCodecEventsExpected,K=this.operationQueue,j=this.pendingTracks,J=Object.keys(j).length;if(J&&!L||J===2){this.createSourceBuffers(j),this.pendingTracks={};var te=this.getSourceBufferTypes();if(te.length)this.hls.trigger(O.BUFFER_CREATED,{tracks:this.tracks}),te.forEach(function(we){K.executeNext(we)});else{var me=new Error("could not create source buffer for media codec(s)");this.hls.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:me,reason:me.message})}}}},{key:"createSourceBuffers",value:function(L){var K=this.sourceBuffer,j=this.mediaSource;if(!j)throw Error("createSourceBuffers called when mediaSource was null");for(var J in L)if(!K[J]){var te=L[J];if(!te)throw Error("source buffer exists for track ".concat(J,", however track does not"));var me=te.levelCodec||te.codec,we="".concat(te.container,";codecs=").concat(me);H.log("[buffer-controller]: creating sourceBuffer(".concat(we,")"));try{var je=K[J]=j.addSourceBuffer(we),qe=J;this.addBufferListener(qe,"updatestart",this._onSBUpdateStart),this.addBufferListener(qe,"updateend",this._onSBUpdateEnd),this.addBufferListener(qe,"error",this._onSBUpdateError),this.tracks[J]={buffer:je,codec:me,container:te.container,levelCodec:te.levelCodec,metadata:te.metadata,id:te.id}}catch(it){H.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(it.message)),this.hls.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:it,mimeType:we})}}}},{key:"_onSBUpdateStart",value:function(L){var K=this.operationQueue,j=K.current(L);j.onStart()}},{key:"_onSBUpdateEnd",value:function(L){var K=this.operationQueue,j=K.current(L);j.onComplete(),K.shiftAndExecuteNext(L)}},{key:"_onSBUpdateError",value:function(L,K){var j=new Error("".concat(L," SourceBuffer error"));H.error("[buffer-controller]: ".concat(j),K),this.hls.trigger(O.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_APPENDING_ERROR,error:j,fatal:!1});var J=this.operationQueue.current(L);J&&J.onError(K)}},{key:"removeExecutor",value:function(L,K,j){var J=this.media,te=this.mediaSource,me=this.operationQueue,we=this.sourceBuffer,je=we[L];if(!J||!te||!je){H.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),me.shiftAndExecuteNext(L);return}var qe=E(J.duration)?J.duration:Infinity,it=E(te.duration)?te.duration:Infinity,Rt=Math.max(0,K),hr=Math.min(j,qe,it);hr>Rt&&!je.ending?(je.ended=!1,H.log("[buffer-controller]: Removing [".concat(Rt,",").concat(hr,"] from the ").concat(L," SourceBuffer")),je.remove(Rt,hr)):me.shiftAndExecuteNext(L)}},{key:"appendExecutor",value:function(L,K){var j=this.operationQueue,J=this.sourceBuffer,te=J[K];if(!te){H.warn("[buffer-controller]: Attempting to append to the ".concat(K," SourceBuffer, but it does not exist")),j.shiftAndExecuteNext(K);return}te.ended=!1,te.appendBuffer(L)}},{key:"blockBuffers",value:function(L){var K=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!j.length){H.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(L);return}var J=this.operationQueue,te=j.map(function(me){return J.appendBlocker(me)});Promise.all(te).then(function(){L(),j.forEach(function(me){var we=K.sourceBuffer[me];we!=null&&we.updating||J.shiftAndExecuteNext(me)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(L,K,j){var J=this.sourceBuffer[L];if(!J)return;var te=j.bind(this,L);this.listeners[L].push({event:K,listener:te}),J.addEventListener(K,te)}},{key:"removeBufferListeners",value:function(L){var K=this.sourceBuffer[L];if(!K)return;this.listeners[L].forEach(function(j){K.removeEventListener(j.event,j.listener)})}}]),he}(),Ul={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},vl=function($){var L=$;return Ul.hasOwnProperty($)&&(L=Ul[$]),String.fromCharCode(L)},Qs=15,il=100,ll={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},jl={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Hl={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Js={25:2,26:4,29:6,30:8,31:10,27:13,28:15},fs=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Xo=function(){function he(){Object(r.a)(this,he),this.time=null,this.verboseLevel=0}return Object(s.a)(he,[{key:"log",value:function(L,K){if(this.verboseLevel>=L){var j=typeof K=="function"?K():K;H.log("".concat(this.time," [").concat(L,"] ").concat(j))}}}]),he}(),Zs=function($){for(var L=[],K=0;K<$.length;K++)L.push($[K].toString(16));return L},Gl=function(){function he($,L,K,j,J){Object(r.a)(this,he),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=$||"white",this.underline=L||!1,this.italics=K||!1,this.background=j||"black",this.flash=J||!1}return Object(s.a)(he,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(L){for(var K=["foreground","underline","italics","background","flash"],j=0;j<K.length;j++){var J=K[j];L.hasOwnProperty(J)&&(this[J]=L[J])}}},{key:"isDefault",value:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}},{key:"equals",value:function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash}},{key:"copy",value:function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),he}(),Kl=function(){function he($,L,K,j,J,te){Object(r.a)(this,he),this.uchar=void 0,this.penState=void 0,this.uchar=$||" ",this.penState=new Gl(L,K,j,J,te)}return Object(s.a)(he,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(L,K){this.uchar=L,this.penState.copy(K)}},{key:"setPenState",value:function(L){this.penState.copy(L)}},{key:"equals",value:function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)}},{key:"copy",value:function(L){this.uchar=L.uchar,this.penState.copy(L.penState)}},{key:"isEmpty",value:function(){return this.uchar===" "&&this.penState.isDefault()}}]),he}(),ka=function(){function he($){Object(r.a)(this,he),this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var L=0;L<il;L++)this.chars.push(new Kl);this.logger=$,this.pos=0,this.currPenState=new Gl}return Object(s.a)(he,[{key:"equals",value:function(L){for(var K=!0,j=0;j<il;j++)if(!this.chars[j].equals(L.chars[j])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<il;K++)this.chars[K].copy(L.chars[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<il;K++)if(!this.chars[K].isEmpty()){L=!1;break}return L}},{key:"setCursor",value:function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>il&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=il)}},{key:"moveCursor",value:function(L){var K=this.pos+L;if(L>1)for(var j=this.pos+1;j<K+1;j++)this.chars[j].setPenState(this.currPenState);this.setCursor(K)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(L){var K=this;L>=144&&this.backSpace();var j=vl(L);if(this.pos>=il){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+j+") at position "+K.pos+". Skipping it!"});return}this.chars[this.pos].setChar(j,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var K;for(K=L;K<il;K++)this.chars[K].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 L=[],K=!0,j=0;j<il;j++){var J=this.chars[j].uchar;J!==" "&&(K=!1),L.push(J)}return K?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var K=this.chars[this.pos];K.setPenState(this.currPenState)}}]),he}(),Ll=function(){function he($){Object(r.a)(this,he),this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var L=0;L<Qs;L++)this.rows.push(new ka($));this.logger=$,this.currRow=Qs-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(s.a)(he,[{key:"reset",value:function(){for(var L=0;L<Qs;L++)this.rows[L].clear();this.currRow=Qs-1}},{key:"equals",value:function(L){for(var K=!0,j=0;j<Qs;j++)if(!this.rows[j].equals(L.rows[j])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<Qs;K++)this.rows[K].copy(L.rows[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<Qs;K++)if(!this.rows[K].isEmpty()){L=!1;break}return L}},{key:"backSpace",value:function(){var L=this.rows[this.currRow];L.backSpace()}},{key:"clearToEndOfRow",value:function(){var L=this.rows[this.currRow];L.clearToEndOfRow()}},{key:"insertChar",value:function(L){var K=this.rows[this.currRow];K.insertChar(L)}},{key:"setPen",value:function(L){var K=this.rows[this.currRow];K.setPenStyles(L)}},{key:"moveCursor",value:function(L){var K=this.rows[this.currRow];K.moveCursor(L)}},{key:"setCursor",value:function(L){this.logger.log(2,"setCursor: "+L);var K=this.rows[this.currRow];K.setCursor(L)}},{key:"setPAC",value:function(L){this.logger.log(2,function(){return"pacData = "+JSON.stringify(L)});var K=L.row-1;if(this.nrRollUpRows&&K<this.nrRollUpRows-1&&(K=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==K){for(var j=0;j<Qs;j++)this.rows[j].clear();var J=this.currRow+1-this.nrRollUpRows,te=this.lastOutputScreen;if(te){var me=te.rows[J].cueStartTime,we=this.logger.time;if(me&&we!==null&&me<we)for(var je=0;je<this.nrRollUpRows;je++)this.rows[K-this.nrRollUpRows+je+1].copy(te.rows[J+je])}}this.currRow=K;var qe=this.rows[this.currRow];if(L.indent!==null){var it=L.indent,Rt=Math.max(it-1,0);qe.setCursor(L.indent),L.color=qe.chars[Rt].penState.foreground}var hr={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(hr)}},{key:"setBkgData",value:function(L){this.logger.log(2,function(){return"bkgData = "+JSON.stringify(L)}),this.backSpace(),this.setPen(L),this.insertChar(32)}},{key:"setRollUpRows",value:function(L){this.nrRollUpRows=L}},{key:"rollUp",value:function(){var L=this;if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,function(){return L.getDisplayText()});var K=this.currRow+1-this.nrRollUpRows,j=this.rows.splice(K,1)[0];j.clear(),this.rows.splice(this.currRow,0,j),this.logger.log(2,"Rolling up")}},{key:"getDisplayText",value:function(L){L=L||!1;for(var K=[],j="",J=-1,te=0;te<Qs;te++){var me=this.rows[te].getTextString();me&&(J=te+1,L?K.push("Row "+J+": '"+me+"'"):K.push(me.trim()))}return K.length>0&&(L?j="["+K.join(" | ")+"]":j=K.join(`
`)),j}},{key:"getTextAndFormat",value:function(){return this.rows}}]),he}(),kl=function(){function he($,L,K){Object(r.a)(this,he),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=$,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new Ll(K),this.nonDisplayedMemory=new Ll(K),this.lastOutputScreen=new Ll(K),this.currRollUpRow=this.displayedMemory.rows[Qs-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=K}return Object(s.a)(he,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Qs-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(L){this.outputFilter=L}},{key:"setPAC",value:function(L){this.writeScreen.setPAC(L)}},{key:"setBkgData",value:function(L){this.writeScreen.setBkgData(L)}},{key:"setMode",value:function(L){if(L===this.mode)return;this.mode=L,this.logger.log(2,function(){return"MODE="+L}),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=L}},{key:"insertChars",value:function(L){for(var K=this,j=0;j<L.length;j++)this.writeScreen.insertChar(L[j]);var J=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return J+": "+K.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+K.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(L){this.logger.log(2,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)}},{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 L=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var K=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=K,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+L.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(L){this.logger.log(2,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)}},{key:"ccMIDROW",value:function(L){var K={flash:!1};if(K.underline=L%2===1,K.italics=L>=46,K.italics)K.foreground="white";else{var j=Math.floor(L/2)-16,J=["white","green","blue","cyan","red","yellow","magenta"];K.foreground=J[j]}this.logger.log(2,"MIDROW: "+JSON.stringify(K)),this.writeScreen.setPen(K)}},{key:"outputDataUpdate",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,K=this.logger.time;if(K===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=K:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,K,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:K),this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))}}]),he}(),Al=function(){function he($,L,K){Object(r.a)(this,he),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var j=new Xo;this.channels=[null,new kl($,L,j),new kl($+1,K,j)],this.cmdHistory=eu(),this.logger=j}return Object(s.a)(he,[{key:"getHandler",value:function(L){return this.channels[L].getHandler()}},{key:"setHandler",value:function(L,K){this.channels[L].setHandler(K)}},{key:"addData",value:function(L,K){var j,J,te,me=!1;this.logger.time=L;for(var we=0;we<K.length;we+=2){if(J=K[we]&127,te=K[we+1]&127,J===0&&te===0)continue;if(this.logger.log(3,"["+Zs([K[we],K[we+1]])+"] -> ("+Zs([J,te])+")"),j=this.parseCmd(J,te),j||(j=this.parseMidrow(J,te)),j||(j=this.parsePAC(J,te)),j||(j=this.parseBackgroundAttributes(J,te)),!j&&(me=this.parseChars(J,te),me)){var je=this.currentChannel;if(je&&je>0){var qe=this.channels[je];qe.insertChars(me)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!j&&!me&&this.logger.log(2,"Couldn't parse cleaned data "+Zs([J,te])+" orig: "+Zs([K[we],K[we+1]]))}}},{key:"parseCmd",value:function(L,K){var j=this.cmdHistory,J=(L===20||L===28||L===21||L===29)&&K>=32&&K<=47,te=(L===23||L===31)&&K>=33&&K<=35;if(!(J||te))return!1;if(al(L,K,j))return Is(null,null,j),this.logger.log(3,"Repeated command ("+Zs([L,K])+") is dropped"),!0;var me=L===20||L===21||L===23?1:2,we=this.channels[me];return L===20||L===21||L===28||L===29?K===32?we.ccRCL():K===33?we.ccBS():K===34?we.ccAOF():K===35?we.ccAON():K===36?we.ccDER():K===37?we.ccRU(2):K===38?we.ccRU(3):K===39?we.ccRU(4):K===40?we.ccFON():K===41?we.ccRDC():K===42?we.ccTR():K===43?we.ccRTD():K===44?we.ccEDM():K===45?we.ccCR():K===46?we.ccENM():K===47&&we.ccEOC():we.ccTO(K-32),Is(L,K,j),this.currentChannel=me,!0}},{key:"parseMidrow",value:function(L,K){var j=0;if((L===17||L===25)&&K>=32&&K<=47){if(L===17?j=1:j=2,j!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var J=this.channels[j];return J?(J.ccMIDROW(K),this.logger.log(3,"MIDROW ("+Zs([L,K])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(L,K){var j,J=this.cmdHistory,te=(L>=17&&L<=23||L>=25&&L<=31)&&K>=64&&K<=127,me=(L===16||L===24)&&K>=64&&K<=95;if(!(te||me))return!1;if(al(L,K,J))return Is(null,null,J),!0;var we=L<=23?1:2;K>=64&&K<=95?j=we===1?ll[L]:Hl[L]:j=we===1?jl[L]:Js[L];var je=this.channels[we];return je?(je.setPAC(this.interpretPAC(j,K)),Is(L,K,J),this.currentChannel=we,!0):!1}},{key:"interpretPAC",value:function(L,K){var j,J={color:null,italics:!1,indent:null,underline:!1,row:L};return K>95?j=K-96:j=K-64,J.underline=(j&1)===1,j<=13?J.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(j/2)]:j<=15?(J.italics=!0,J.color="white"):J.indent=Math.floor((j-16)/2)*4,J}},{key:"parseChars",value:function(L,K){var j,J=null,te=null;if(L>=25?(j=2,te=L-8):(j=1,te=L),te>=17&&te<=19){var me;te===17?me=K+80:te===18?me=K+112:me=K+144,this.logger.log(2,"Special char '"+vl(me)+"' in channel "+j),J=[me]}else L>=32&&L<=127&&(J=K===0?[L]:[L,K]);if(J){var we=Zs(J);this.logger.log(3,"Char codes = "+we.join(",")),Is(L,K,this.cmdHistory)}return J}},{key:"parseBackgroundAttributes",value:function(L,K){var j=(L===16||L===24)&&K>=32&&K<=47,J=(L===23||L===31)&&K>=45&&K<=47;if(!(j||J))return!1;var te,me={};L===16||L===24?(te=Math.floor((K-32)/2),me.background=fs[te],K%2===1&&(me.background=me.background+"_semi")):K===45?me.background="transparent":(me.foreground="black",K===47&&(me.underline=!0));var we=L<=23?1:2,je=this.channels[we];return je.setBkgData(me),Is(L,K,this.cmdHistory),!0}},{key:"reset",value:function(){for(var L=0;L<Object.keys(this.channels).length;L++){var K=this.channels[L];K&&K.reset()}this.cmdHistory=eu()}},{key:"cueSplitAtTime",value:function(L){for(var K=0;K<this.channels.length;K++){var j=this.channels[K];j&&j.cueSplitAtTime(L)}}}]),he}();function Is(he,$,L){L.a=he,L.b=$}function al(he,$,L){return L.a===he&&L.b===$}function eu(){return{a:null,b:null}}var Nl=function(){function he($,L){Object(r.a)(this,he),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=$,this.trackName=L}return Object(s.a)(he,[{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(L,K,j){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=K,this.screen=j,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),he}(),yl=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var he=["","lr","rl"],$=["start","middle","end","left","right"];function L(me,we){if(typeof we!="string")return!1;if(!Array.isArray(me))return!1;var je=we.toLowerCase();return~me.indexOf(je)?je:!1}function K(me){return L(he,me)}function j(me){return L($,me)}function J(me){for(var we=arguments.length,je=new Array(we>1?we-1:0),qe=1;qe<we;qe++)je[qe-1]=arguments[qe];for(var it=1;it<arguments.length;it++){var Rt=arguments[it];for(var hr in Rt)me[hr]=Rt[hr]}return me}function te(me,we,je){var qe=this,it={enumerable:!0};qe.hasBeenReset=!1;var Rt="",hr=!1,tr=me,Dr=we,jr=je,Sn=null,yn="",Mn=!0,si="auto",Xi="start",Li=50,Pi="middle",Aa=50,Na="middle";Object.defineProperty(qe,"id",J({},it,{get:function(){return Rt},set:function(aa){Rt=""+aa}})),Object.defineProperty(qe,"pauseOnExit",J({},it,{get:function(){return hr},set:function(aa){hr=!!aa}})),Object.defineProperty(qe,"startTime",J({},it,{get:function(){return tr},set:function(aa){if(typeof aa!="number")throw new TypeError("Start time must be set to a number.");tr=aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"endTime",J({},it,{get:function(){return Dr},set:function(aa){if(typeof aa!="number")throw new TypeError("End time must be set to a number.");Dr=aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"text",J({},it,{get:function(){return jr},set:function(aa){jr=""+aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"region",J({},it,{get:function(){return Sn},set:function(aa){Sn=aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"vertical",J({},it,{get:function(){return yn},set:function(aa){var so=K(aa);if(so===!1)throw new SyntaxError("An invalid or illegal string was specified.");yn=so,this.hasBeenReset=!0}})),Object.defineProperty(qe,"snapToLines",J({},it,{get:function(){return Mn},set:function(aa){Mn=!!aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"line",J({},it,{get:function(){return si},set:function(aa){if(typeof aa!="number"&&aa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");si=aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"lineAlign",J({},it,{get:function(){return Xi},set:function(aa){var so=j(aa);if(!so)throw new SyntaxError("An invalid or illegal string was specified.");Xi=so,this.hasBeenReset=!0}})),Object.defineProperty(qe,"position",J({},it,{get:function(){return Li},set:function(aa){if(aa<0||aa>100)throw new Error("Position must be between 0 and 100.");Li=aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"positionAlign",J({},it,{get:function(){return Pi},set:function(aa){var so=j(aa);if(!so)throw new SyntaxError("An invalid or illegal string was specified.");Pi=so,this.hasBeenReset=!0}})),Object.defineProperty(qe,"size",J({},it,{get:function(){return Aa},set:function(aa){if(aa<0||aa>100)throw new Error("Size must be between 0 and 100.");Aa=aa,this.hasBeenReset=!0}})),Object.defineProperty(qe,"align",J({},it,{get:function(){return Na},set:function(aa){var so=j(aa);if(!so)throw new SyntaxError("An invalid or illegal string was specified.");Na=so,this.hasBeenReset=!0}})),qe.displayState=void 0}return te.prototype.getCueAsHTML=function(){var me=self.WebVTT;return me.convertCueToDOMTree(self,this.text)},te}(),Ls=function(){function he(){Object(r.a)(this,he)}return Object(s.a)(he,[{key:"decode",value:function(L,K){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),he}();function Xs(he){function $(K,j,J,te){return(K|0)*3600+(j|0)*60+(J|0)+parseFloat(te||0)}var L=he.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?$(L[2],L[3],0,L[4]):$(L[1],L[2],L[3],L[4]):null}var Wl=function(){function he(){Object(r.a)(this,he),this.values=Object.create(null)}return Object(s.a)(he,[{key:"set",value:function(L,K){!this.get(L)&&K!==""&&(this.values[L]=K)}},{key:"get",value:function(L,K,j){return j?this.has(L)?this.values[L]:K[j]:this.has(L)?this.values[L]:K}},{key:"has",value:function(L){return L in this.values}},{key:"alt",value:function(L,K,j){for(var J=0;J<j.length;++J)if(K===j[J]){this.set(L,K);break}}},{key:"integer",value:function(L,K){/^-?\d+$/.test(K)&&this.set(L,parseInt(K,10))}},{key:"percent",value:function(L,K){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(K)){var j=parseFloat(K);if(j>=0&&j<=100)return this.set(L,j),!0}return!1}}]),he}();function ol(he,$,L,K){var j=K?he.split(K):[he];for(var J in j){if(typeof j[J]!="string")continue;var te=j[J].split(L);if(te.length!==2)continue;var me=te[0],we=te[1];$(me,we)}}var So=new yl(0,0,""),io=So.align==="middle"?"middle":"center";function Bo(he,$,L){var K=he;function j(){var me=Xs(he);if(me===null)throw new Error("Malformed timestamp: "+K);return he=he.replace(/^[^\sa-zA-Z-]+/,""),me}function J(me,we){var je=new Wl;ol(me,function(Rt,hr){var tr;switch(Rt){case"region":for(var Dr=L.length-1;Dr>=0;Dr--)if(L[Dr].id===hr){je.set(Rt,L[Dr].region);break}break;case"vertical":je.alt(Rt,hr,["rl","lr"]);break;case"line":tr=hr.split(","),je.integer(Rt,tr[0]),je.percent(Rt,tr[0])&&je.set("snapToLines",!1),je.alt(Rt,tr[0],["auto"]),tr.length===2&&je.alt("lineAlign",tr[1],["start",io,"end"]);break;case"position":tr=hr.split(","),je.percent(Rt,tr[0]),tr.length===2&&je.alt("positionAlign",tr[1],["start",io,"end","line-left","line-right","auto"]);break;case"size":je.percent(Rt,hr);break;case"align":je.alt(Rt,hr,["start",io,"end","left","right"]);break}},/:/,/\s/),we.region=je.get("region",null),we.vertical=je.get("vertical","");var qe=je.get("line","auto");qe==="auto"&&So.line===-1&&(qe=-1),we.line=qe,we.lineAlign=je.get("lineAlign","start"),we.snapToLines=je.get("snapToLines",!0),we.size=je.get("size",100),we.align=je.get("align",io);var it=je.get("position","auto");it==="auto"&&So.position===50&&(it=we.align==="start"||we.align==="left"?0:we.align==="end"||we.align==="right"?100:50),we.position=it}function te(){he=he.replace(/^\s+/,"")}if(te(),$.startTime=j(),te(),he.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+K);he=he.slice(3),te(),$.endTime=j(),te(),J(he,$)}function ds(he){return he.replace(/<br(?: \/)?>/gi,`
`)}var gs=function(){function he(){Object(r.a)(this,he),this.state="INITIAL",this.buffer="",this.decoder=new Ls,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(s.a)(he,[{key:"parse",value:function(L){var K=this;L&&(K.buffer+=K.decoder.decode(L,{stream:!0}));function j(){var qe=K.buffer,it=0;for(qe=ds(qe);it<qe.length&&qe[it]!=="\r"&&qe[it]!==`
`;)++it;var Rt=qe.slice(0,it);return qe[it]==="\r"&&++it,qe[it]===`
`&&++it,K.buffer=qe.slice(it),Rt}function J(qe){ol(qe,function(it,Rt){},/:/)}try{var te="";if(K.state==="INITIAL"){if(!/\r\n|\n/.test(K.buffer))return this;te=j();var me=te.match(/^()?WEBVTT([ \t].*)?$/);if(!(me!=null&&me[0]))throw new Error("Malformed WebVTT signature.");K.state="HEADER"}for(var we=!1;K.buffer;){if(!/\r\n|\n/.test(K.buffer))return this;we?we=!1:te=j();switch(K.state){case"HEADER":/:/.test(te)?J(te):te||(K.state="ID");continue;case"NOTE":te||(K.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(te)){K.state="NOTE";break}if(!te)continue;if(K.cue=new yl(0,0,""),K.state="CUE",te.indexOf("-->")===-1){K.cue.id=te;continue}case"CUE":if(!K.cue){K.state="BADCUE";continue}try{Bo(te,K.cue,K.regionList)}catch(qe){K.cue=null,K.state="BADCUE";continue}K.state="CUETEXT";continue;case"CUETEXT":{var je=te.indexOf("-->")!==-1;if(!te||je&&(we=!0)){K.oncue&&K.cue&&K.oncue(K.cue),K.cue=null,K.state="ID";continue}if(K.cue===null)continue;K.cue.text&&(K.cue.text+=`
`),K.cue.text+=te}continue;case"BADCUE":te||(K.state="ID")}}}catch(qe){K.state==="CUETEXT"&&K.cue&&K.oncue&&K.oncue(K.cue),K.cue=null,K.state=K.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}},{key:"flush",value:function(){var L=this;try{if((L.cue||L.state==="HEADER")&&(L.buffer+=`
`,L.parse()),L.state==="INITIAL"||L.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(K){L.onparsingerror&&L.onparsingerror(K)}return L.onflush&&L.onflush(),this}}]),he}(),Wo=/\r\n|\n\r|\n|\r/g,vs=function($,L){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return $.slice(K,K+L.length)===L},Ps=function($){var L=parseInt($.slice(-3)),K=parseInt($.slice(-6,-4)),j=parseInt($.slice(-9,-7)),J=$.length>9?parseInt($.substring(0,$.indexOf(":"))):0;if(!E(L)||!E(K)||!E(j)||!E(J))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat($));return L+=1e3*K,L+=60*1e3*j,L+=60*60*1e3*J,L},js=function($){for(var L=5381,K=$.length;K;)L=L*33^$.charCodeAt(--K);return(L>>>0).toString()};function bl(he,$,L){return js(he.toString())+js($.toString())+js(L)}var ml=function($,L,K){var j=$[L],J=$[j.prevCC];if(!J||!J.new&&j.new){$.ccOffset=$.presentationOffset=j.start,j.new=!1;return}for(;(te=J)!=null&&te.new;){var te;$.ccOffset+=j.start-J.start,j.new=!1,j=J,J=$[j.prevCC]}$.presentationOffset=K};function Dl(he,$,L,K,j,J,te){var me=new gs,we=Fe(new Uint8Array(he)).trim().replace(Wo,`
`).split(`
`),je=[],qe=$?bo($.baseTime,$.timescale):0,it="00:00.000",Rt=0,hr=0,tr,Dr=!0;me.oncue=function(jr){var Sn=L[K],yn=L.ccOffset,Mn=(Rt-qe)/9e4;if(Sn!=null&&Sn.new&&(hr!==void 0?yn=L.ccOffset=Sn.start:ml(L,K,Mn)),Mn){if(!$){tr=new Error("Missing initPTS for VTT MPEGTS");return}yn=Mn-L.presentationOffset}var si=jr.endTime-jr.startTime,Xi=Xa((jr.startTime+yn-hr)*9e4,j*9e4)/9e4;jr.startTime=Math.max(Xi,0),jr.endTime=Math.max(Xi+si,0);var Li=jr.text.trim();jr.text=decodeURIComponent(encodeURIComponent(Li)),jr.id||(jr.id=bl(jr.startTime,jr.endTime,Li)),jr.endTime>0&&je.push(jr)},me.onparsingerror=function(jr){tr=jr},me.onflush=function(){if(tr){te(tr);return}J(je)},we.forEach(function(jr){if(Dr)if(vs(jr,"X-TIMESTAMP-MAP=")){Dr=!1,jr.slice(16).split(",").forEach(function(Sn){vs(Sn,"LOCAL:")?it=Sn.slice(6):vs(Sn,"MPEGTS:")&&(Rt=parseInt(Sn.slice(7)))});try{hr=Ps(it)/1e3}catch(Sn){tr=Sn}return}else jr===""&&(Dr=!1);me.parse(jr+`
`)}),me.flush()}var xl="stpp.ttml.im1t",El=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Pl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,zs={left:"start",center:"center",right:"end",start:"start",end:"end"};function Cs(he,$,L,K){var j=Qr(new Uint8Array(he),["mdat"]);if(j.length===0){K(new Error("Could not parse IMSC1 mdat"));return}var J=j.map(function(me){return Fe(me)}),te=Qa($.baseTime,1,$.timescale);try{J.forEach(function(me){return L(Vs(me,te))})}catch(me){K(me)}}function Vs(he,$){var L=new DOMParser,K=L.parseFromString(he,"text/xml"),j=K.getElementsByTagName("tt")[0];if(!j)throw new Error("Invalid ttml");var J={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},te=Object.keys(J).reduce(function(it,Rt){return it[Rt]=j.getAttribute("ttp:".concat(Rt))||J[Rt],it},{}),me=j.getAttribute("xml:space")!=="preserve",we=ul(Ts(j,"styling","style")),je=ul(Ts(j,"layout","region")),qe=Ts(j,"body","[begin]");return[].map.call(qe,function(it){var Rt=Cl(it,me);if(!Rt||!it.hasAttribute("begin"))return null;var hr=zl(it.getAttribute("begin"),te),tr=zl(it.getAttribute("dur"),te),Dr=zl(it.getAttribute("end"),te);if(hr===null)throw cl(it);if(Dr===null){if(tr===null)throw cl(it);Dr=hr+tr}var jr=new yl(hr-$,Dr-$,Rt);jr.id=bl(jr.startTime,jr.endTime,jr.text);var Sn=je[it.getAttribute("region")],yn=we[it.getAttribute("style")],Mn=Xl(Sn,yn,we),si=Mn.textAlign;if(si){var Xi=zs[si];Xi&&(jr.lineAlign=Xi),jr.align=si}return x(jr,Mn),jr}).filter(function(it){return it!==null})}function Ts(he,$,L){var K=he.getElementsByTagName($)[0];return K?[].slice.call(K.querySelectorAll(L)):[]}function ul(he){return he.reduce(function($,L){var K=L.getAttribute("xml:id");return K&&($[K]=L),$},{})}function Cl(he,$){return[].slice.call(he.childNodes).reduce(function(L,K,j){var J;return K.nodeName==="br"&&j?L+`
`:(J=K.childNodes)!=null&&J.length?Cl(K,$):$?L+K.textContent.trim().replace(/\s+/g," "):L+K.textContent},"")}function Xl(he,$,L){var K="http://www.w3.org/ns/ttml#styling",j=null,J=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],te=he!=null&&he.hasAttribute("style")?he.getAttribute("style"):null;return te&&L.hasOwnProperty(te)&&(j=L[te]),J.reduce(function(me,we){var je=Jl($,K,we)||Jl(he,K,we)||Jl(j,K,we);return je&&(me[we]=je),me},{})}function Jl(he,$,L){return he&&he.hasAttributeNS($,L)?he.getAttributeNS($,L):null}function cl(he){return new Error("Could not parse ttml timestamp ".concat(he))}function zl(he,$){if(!he)return null;var L=Xs(he);return L===null&&(El.test(he)?L=tu(he,$):Pl.test(he)&&(L=Iu(he,$))),L}function tu(he,$){var L=El.exec(he),K=(L[4]|0)+(L[5]|0)/$.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+K/$.frameRate}function Iu(he,$){var L=Pl.exec(he),K=Number(L[1]),j=L[2];switch(j){case"h":return K*3600;case"m":return K*60;case"ms":return K*1e3;case"f":return K/$.frameRate;case"t":return K/$.tickRate}return K}var bu=function(){function he($){if(Object(r.a)(this,he),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=nu(),this.captionsProperties=void 0,this.hls=$,this.config=$.config,this.Cues=$.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 L=new Nl(this,"textTrack1"),K=new Nl(this,"textTrack2"),j=new Nl(this,"textTrack3"),J=new Nl(this,"textTrack4");this.cea608Parser1=new Al(1,L,K),this.cea608Parser2=new Al(3,j,J)}$.on(O.MEDIA_ATTACHING,this.onMediaAttaching,this),$.on(O.MEDIA_DETACHING,this.onMediaDetaching,this),$.on(O.MANIFEST_LOADING,this.onManifestLoading,this),$.on(O.MANIFEST_LOADED,this.onManifestLoaded,this),$.on(O.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),$.on(O.FRAG_LOADING,this.onFragLoading,this),$.on(O.FRAG_LOADED,this.onFragLoaded,this),$.on(O.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),$.on(O.FRAG_DECRYPTED,this.onFragDecrypted,this),$.on(O.INIT_PTS_FOUND,this.onInitPtsFound,this),$.on(O.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),$.on(O.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(s.a)(he,[{key:"destroy",value:function(){var L=this.hls;L.off(O.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(O.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(O.MANIFEST_LOADING,this.onManifestLoading,this),L.off(O.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(O.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(O.FRAG_LOADING,this.onFragLoading,this),L.off(O.FRAG_LOADED,this.onFragLoaded,this),L.off(O.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(O.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(O.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(O.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(O.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,K,j,J,te){for(var me=!1,we=te.length;we--;){var je=te[we],qe=hu(je[0],je[1],K,j);if(qe>=0&&(je[0]=Math.min(je[0],K),je[1]=Math.max(je[1],j),me=!0,qe/(j-K)>.5))return}if(me||te.push([K,j]),this.config.renderTextTracksNatively){var it=this.captionsTracks[L];this.Cues.newCue(it,K,j,J)}else{var Rt=this.Cues.newCue(null,K,j,J);this.hls.trigger(O.CUES_PARSED,{type:"captions",cues:Rt,track:L})}}},{key:"onInitPtsFound",value:function(L,K){var j=this,J=K.frag,te=K.id,me=K.initPTS,we=K.timescale,je=this.unparsedVttFrags;te==="main"&&(this.initPTS[J.cc]={baseTime:me,timescale:we}),je.length&&(this.unparsedVttFrags=[],je.forEach(function(qe){j.onFragLoaded(O.FRAG_LOADED,qe)}))}},{key:"getExistingTrack",value:function(L){var K=this.media;if(K)for(var j=0;j<K.textTracks.length;j++){var J=K.textTracks[j];if(J[L])return J}return null}},{key:"createCaptionsTrack",value:function(L){this.config.renderTextTracksNatively?this.createNativeTrack(L):this.createNonNativeTrack(L)}},{key:"createNativeTrack",value:function(L){if(this.captionsTracks[L])return;var K=this.captionsProperties,j=this.captionsTracks,J=this.media,te=K[L],me=te.label,we=te.languageCode,je=this.getExistingTrack(L);if(je)j[L]=je,Un(j[L]),Rn(j[L],J);else{var qe=this.createTextTrack("captions",me,we);qe&&(qe[L]=!0,j[L]=qe)}}},{key:"createNonNativeTrack",value:function(L){if(this.nonNativeCaptionsTracks[L])return;var K=this.captionsProperties[L];if(!K)return;var j=K.label,J={_id:L,label:j,kind:"captions",default:K.media?!!K.media.default:!1,closedCaptions:K.media};this.nonNativeCaptionsTracks[L]=J,this.hls.trigger(O.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[J]})}},{key:"createTextTrack",value:function(L,K,j){var J=this.media;return J?J.addTextTrack(L,K,j):void 0}},{key:"onMediaAttaching",value:function(L,K){this.media=K.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var L=this.captionsTracks;Object.keys(L).forEach(function(K){Un(L[K]),delete L[K]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=nu(),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 L=this.media;if(!L)return;var K=L.textTracks;if(K)for(var j=0;j<K.length;j++)Un(K[j])}},{key:"onSubtitleTracksUpdated",value:function(L,K){var j=this,J=K.subtitleTracks||[],te=J.some(function(qe){return qe.textCodec===xl});if(this.config.enableWebVTT||te&&this.config.enableIMSC1){var me=Pa(this.tracks,J);if(me){this.tracks=J;return}if(this.textTracks=[],this.tracks=J,this.config.renderTextTracksNatively){var we=this.media?this.media.textTracks:null;this.tracks.forEach(function(qe,it){var Rt;if(we&&it<we.length){for(var hr=null,tr=0;tr<we.length;tr++)if(du(we[tr],qe)){hr=we[tr];break}hr&&(Rt=hr)}if(Rt)Un(Rt);else{var Dr=j._captionsOrSubtitlesFromCharacteristics(qe);Rt=j.createTextTrack(Dr,qe.name,qe.lang),Rt&&(Rt.mode="disabled")}Rt&&(Rt.groupId=qe.groupId,j.textTracks.push(Rt))})}else if(this.tracks.length){var je=this.tracks.map(function(qe){return{label:qe.name,kind:qe.type.toLowerCase(),default:qe.default,subtitleTrack:qe}});this.hls.trigger(O.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:je})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var K=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),j=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(K&&j)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,K){var j=this;this.config.enableCEA708Captions&&K.captions&&K.captions.forEach(function(J){var te=/(?:CC|SERVICE)([1-4])/.exec(J.instreamId);if(!te)return;var me="textTrack".concat(te[1]),we=j.captionsProperties[me];if(!we)return;we.label=J.name,J.lang&&(we.languageCode=J.lang),we.media=J})}},{key:"closedCaptionsForLevel",value:function(L){var K=this.hls.levels[L.level];return K==null?void 0:K.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(L,K){var j=this.cea608Parser1,J=this.cea608Parser2,te=this.lastSn,me=this.lastPartIndex;if(!this.enabled||!(j&&J))return;if(K.frag.type===Er.MAIN){var we,je,qe=K.frag.sn,it=(we=K==null||(je=K.part)==null?void 0:je.index)!=null?we:-1;qe===te+1||qe===te&&it===me+1||(j.reset(),J.reset()),this.lastSn=qe,this.lastPartIndex=it}}},{key:"onFragLoaded",value:function(L,K){var j=K.frag,J=K.payload;if(j.type===Er.SUBTITLE)if(J.byteLength){var te=j.decryptdata,me="stats"in K;if(te==null||!te.encrypted||me){var we=this.tracks[j.level],je=this.vttCCs;je[j.cc]||(je[j.cc]={start:j.start,prevCC:this.prevCC,new:!0},this.prevCC=j.cc),we&&we.textCodec===xl?this._parseIMSC1(j,J):this._parseVTTs(K)}}else this.hls.trigger(O.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:j,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,K){var j=this,J=this.hls;Cs(K,this.initPTS[L.cc],function(te){j._appendCues(te,L.level),J.trigger(O.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(te){H.log("Failed to parse IMSC1: ".concat(te)),J.trigger(O.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:te})})}},{key:"_parseVTTs",value:function(L){var K=this,j,J=L.frag,te=L.payload,me=this.initPTS,we=this.unparsedVttFrags,je=me.length-1;if(!me[J.cc]&&je===-1){we.push(L);return}var qe=this.hls,it=(j=J.initSegment)!=null&&j.data?Ne(J.initSegment.data,new Uint8Array(te)):te;Dl(it,this.initPTS[J.cc],this.vttCCs,J.cc,J.start,function(Rt){K._appendCues(Rt,J.level),qe.trigger(O.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:J})},function(Rt){var hr=Rt.message==="Missing initPTS for VTT MPEGTS";if(hr?we.push(L):K._fallbackToIMSC1(J,te),H.log("Failed to parse VTT cue: ".concat(Rt)),hr&&je>J.cc)return;qe.trigger(O.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:J,error:Rt})})}},{key:"_fallbackToIMSC1",value:function(L,K){var j=this,J=this.tracks[L.level];J.textCodec||Cs(K,this.initPTS[L.cc],function(){J.textCodec=xl,j._parseIMSC1(L,K)},function(){J.textCodec="wvtt"})}},{key:"_appendCues",value:function(L,K){var j=this.hls;if(this.config.renderTextTracksNatively){var J=this.textTracks[K];if(!J||J.mode==="disabled")return;L.forEach(function(we){return vn(J,we)})}else{var te=this.tracks[K];if(!te)return;var me=te.default?"default":"subtitles"+K;j.trigger(O.CUES_PARSED,{type:"subtitles",cues:L,track:me})}}},{key:"onFragDecrypted",value:function(L,K){var j=K.frag;j.type===Er.SUBTITLE&&this.onFragLoaded(O.FRAG_LOADED,K)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,K){var j=this.cea608Parser1,J=this.cea608Parser2;if(!this.enabled||!(j&&J))return;var te=K.frag,me=K.samples;if(te.type===Er.MAIN&&this.closedCaptionsForLevel(te)==="NONE")return;for(var we=0;we<me.length;we++){var je=me[we].bytes;if(je){var qe=this.extractCea608Data(je);j.addData(me[we].pts,qe[0]),J.addData(me[we].pts,qe[1])}}}},{key:"onBufferFlushing",value:function(L,K){var j=K.startOffset,J=K.endOffset,te=K.endOffsetSubtitles,me=K.type,we=this.media;if(!we||we.currentTime<J)return;if(!me||me==="video"){var je=this.captionsTracks;Object.keys(je).forEach(function(it){return hn(je[it],j,J)})}if(this.config.renderTextTracksNatively&&(j===0&&te!==void 0)){var qe=this.textTracks;Object.keys(qe).forEach(function(it){return hn(qe[it],j,te)})}}},{key:"extractCea608Data",value:function(L){for(var K=[[],[]],j=L[0]&31,J=2,te=0;te<j;te++){var me=L[J++],we=127&L[J++],je=127&L[J++];if(we===0&&je===0)continue;var qe=(4&me)!==0;if(qe){var it=3&me;(it===0||it===1)&&(K[it].push(we),K[it].push(je))}}return K}}]),he}();function du(he,$){return!!he&&he.label===$.name&&!(he.textTrack1||he.textTrack2)}function hu(he,$,L,K){return Math.min($,K)-Math.max(he,L)}function nu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var dl=function(){function he($){Object(r.a)(this,he),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=$,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}return Object(s.a)(he,[{key:"setStreamController",value:function(L){this.streamController=L}},{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 L=this.hls;L.on(O.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(O.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(O.MANIFEST_PARSED,this.onManifestParsed,this),L.on(O.BUFFER_CODECS,this.onBufferCodecs,this),L.on(O.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(O.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(O.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(O.MANIFEST_PARSED,this.onManifestParsed,this),L.off(O.BUFFER_CODECS,this.onBufferCodecs,this),L.off(O.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,K){var j=this.hls.levels[K.droppedLevel];this.isLevelAllowed(j)&&this.restrictedLevels.push({bitrate:j.bitrate,height:j.height,width:j.width})}},{key:"onMediaAttaching",value:function(L,K){this.media=K.media instanceof HTMLVideoElement?K.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(L,K){var j=this.hls;this.restrictedLevels=[],this.firstLevel=K.firstLevel,j.config.capLevelToPlayerSize&&K.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,K){var j=this.hls;j.config.capLevelToPlayerSize&&K.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var L=this.hls.levels;if(L.length){var K=this.hls;K.autoLevelCapping=this.getMaxLevel(L.length-1),K.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=K.autoLevelCapping}}}},{key:"getMaxLevel",value:function(L){var K=this,j=this.hls.levels;if(!j.length)return-1;var J=j.filter(function(te,me){return K.isLevelAllowed(te)&&me<=L});return this.clientRect=null,he.getMaxLevelByMediaSize(J,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 L=this.media,K={width:0,height:0};if(L){var j=L.getBoundingClientRect();K.width=j.width,K.height=j.height,!K.width&&!K.height&&(K.width=j.right-j.left||L.width||0,K.height=j.bottom-j.top||L.height||0)}return this.clientRect=K,K}},{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 L=1;if(!this.hls.config.ignoreDevicePixelRatio)try{L=self.devicePixelRatio}catch(K){}return L}},{key:"isLevelAllowed",value:function(L){var K=this.restrictedLevels;return!K.some(function(j){return L.bitrate===j.bitrate&&L.width===j.width&&L.height===j.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,K,j){if(!(L!=null&&L.length))return-1;for(var J=function(qe,it){return it?qe.width!==it.width||qe.height!==it.height:!0},te=L.length-1,me=0;me<L.length;me+=1){var we=L[me];if((we.width>=K||we.height>=j)&&J(we,L[me+1])){te=me;break}}return te}}]),he}(),Tl=function(){function he($){Object(r.a)(this,he),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=$,this.registerListeners()}return Object(s.a)(he,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(O.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(O.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(L,K){var j=this.hls.config;if(j.capLevelOnFPSDrop){var J=K.media instanceof self.HTMLVideoElement?K.media:null;this.media=J,J&&typeof J.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),j.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,K,j){var J=performance.now();if(K){if(this.lastTime){var te=J-this.lastTime,me=j-this.lastDroppedFrames,we=K-this.lastDecodedFrames,je=1e3*me/te,qe=this.hls;if(qe.trigger(O.FPS_DROP,{currentDropped:me,currentDecoded:we,totalDroppedFrames:j}),je>0&&me>qe.config.fpsDroppedMonitoringThreshold*we){var it=qe.currentLevel;H.warn("drop FPS ratio greater than max allowed value for currentLevel: "+it),it>0&&(qe.autoLevelCapping===-1||qe.autoLevelCapping>=it)&&(it=it-1,qe.trigger(O.FPS_DROP_LEVEL_CAPPING,{level:it,droppedLevel:qe.currentLevel}),qe.autoLevelCapping=it,this.streamController.nextLevelSwitch())}}this.lastTime=J,this.lastDroppedFrames=j,this.lastDecodedFrames=K}}},{key:"checkFPSInterval",value:function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var K=L.getVideoPlaybackQuality();this.checkFPS(L,K.totalVideoFrames,K.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)}}]),he}(),wl="[eme]",Zl=function(){function he($){Object(r.a)(this,he),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=he.CDMCleanupPromise?[he.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=H.debug.bind(H,wl),this.log=H.log.bind(H,wl),this.warn=H.warn.bind(H,wl),this.error=H.error.bind(H,wl),this.hls=$,this.config=$.config,this.registerListeners()}return Object(s.a)(he,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var L=this.config;L.requestMediaKeySystemAccessFunc=null,L.licenseXhrSetup=L.licenseResponseCallback=void 0,L.drmSystems=L.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(O.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(O.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(O.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(O.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(O.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(O.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(O.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var K=this.config,j=K.drmSystems,J=K.widevineLicenseUrl,te=j[L];if(te)return te.licenseUrl;if(L===Y.WIDEVINE&&J)return J;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var K=this.config.drmSystems,j=K[L];if(j)return j.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var K=this,j=this.hls.levels,J=function(je,qe,it){return!!je&&it.indexOf(je)===qe},te=j.map(function(we){return we.audioCodec}).filter(J),me=j.map(function(we){return we.videoCodec}).filter(J);return te.length+me.length===0&&me.push("avc1.42e01e"),new Promise(function(we,je){var qe=function it(Rt){var hr=Rt.shift();K.getMediaKeysPromise(hr,te,me).then(function(tr){return we({keySystem:hr,mediaKeys:tr})}).catch(function(tr){Rt.length?it(Rt):tr instanceof _l?je(tr):je(new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_NO_ACCESS,error:tr,fatal:!0},tr.message))})};qe(L)})}},{key:"requestMediaKeySystemAccess",value:function(L,K){var j=this.config.requestMediaKeySystemAccessFunc;if(!(typeof j=="function")){var J="Configured requestMediaKeySystemAccess is not a function ".concat(j);return ge===null&&self.location.protocol==="http:"&&(J="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(J))}return j(L,K)}},{key:"getMediaKeysPromise",value:function(L,K,j){var J=this,te=Oe(L,K,j,this.config.drmSystemOptions),me=this.keySystemAccessPromises[L],we=me==null?void 0:me.keySystemAccess;if(!we){this.log('Requesting encrypted media "'.concat(L,'" key-system access with config: ').concat(JSON.stringify(te))),we=this.requestMediaKeySystemAccess(L,te);var je=this.keySystemAccessPromises[L]={keySystemAccess:we};return we.catch(function(qe){J.log('Failed to obtain access to key-system "'.concat(L,'": ').concat(qe))}),we.then(function(qe){J.log('Access for key-system "'.concat(qe.keySystem,'" obtained'));var it=J.fetchServerCertificate(L);return J.log('Create media-keys for "'.concat(L,'"')),je.mediaKeys=qe.createMediaKeys().then(function(Rt){return J.log('Media-keys created for "'.concat(L,'"')),it.then(function(hr){return hr?J.setMediaKeysServerCertificate(Rt,L,hr):Rt})}),je.mediaKeys.catch(function(Rt){J.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(Rt))}),je.mediaKeys})}return we.then(function(){return me.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(L){var K=L.decryptdata,j=L.keySystem,J=L.mediaKeys;this.log('Creating key-system session "'.concat(j,'" keyId: ').concat(pt.hexDump(K.keyId||[])));var te=J.createSession(),me={decryptdata:K,keySystem:j,mediaKeys:J,mediaKeysSession:te,keyStatus:"status-pending"};return this.mediaKeySessions.push(me),me}},{key:"renewKeySession",value:function(L){var K=L.decryptdata;if(K.pssh){var j=this.createMediaKeySessionContext(L),J=this.getKeyIdString(K),te="cenc";this.keyIdToKeySessionPromise[J]=this.generateRequestWithPreferredKeySession(j,te,K.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(L)}},{key:"getKeyIdString",value:function(L){if(!L)throw new Error("Could not read keyId of undefined decryptdata");if(L.keyId===null)throw new Error("keyId is null");return pt.hexDump(L.keyId)}},{key:"updateKeySession",value:function(L,K){var j,J=L.mediaKeysSession;return this.log('Updating key-session "'.concat(J.sessionId,'" for keyID ').concat(pt.hexDump(((j=L.decryptdata)==null?void 0:j.keyId)||[]),`
} (data length: `).concat(K&&K.byteLength,")")),J.update(K)}},{key:"selectKeySystemFormat",value:function(L){var K=Object.keys(L.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(L.sn," ").concat(L.type,": ").concat(L.level,") key formats ").concat(K.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(K)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(L){var K=this;return new Promise(function(j,J){var te=ue(K.config),me=L.map(ce).filter(function(we){return!!we&&te.indexOf(we)!==-1});return K.getKeySystemSelectionPromise(me).then(function(we){var je=we.keySystem,qe=Ce(je);qe?j(qe):J(new Error('Unable to find format for key-system "'.concat(je,'"')))}).catch(J)})}},{key:"loadKey",value:function(L){var K=this,j=L.keyInfo.decryptdata,J=this.getKeyIdString(j),te="(keyId: ".concat(J,' format: "').concat(j.keyFormat,'" method: ').concat(j.method," uri: ").concat(j.uri,")");this.log("Starting session for key ".concat(te));var me=this.keyIdToKeySessionPromise[J];return me||(me=this.keyIdToKeySessionPromise[J]=this.getKeySystemForKeyPromise(j).then(function(we){var je=we.keySystem,qe=we.mediaKeys;return K.throwIfDestroyed(),K.log("Handle encrypted media sn: ".concat(L.frag.sn," ").concat(L.frag.type,": ").concat(L.frag.level," using key ").concat(te)),K.attemptSetMediaKeys(je,qe).then(function(){K.throwIfDestroyed();var it=K.createMediaKeySessionContext({keySystem:je,mediaKeys:qe,decryptdata:j}),Rt="cenc";return K.generateRequestWithPreferredKeySession(it,Rt,j.pssh,"playlist-key")})}),me.catch(function(we){return K.handleError(we)})),me}},{key:"throwIfDestroyed",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Invalid state";if(!this.hls)throw new Error("invalid state")}},{key:"handleError",value:function(L){if(!this.hls)return;this.error(L.message),L instanceof _l?this.hls.trigger(O.ERROR,L.data):this.hls.trigger(O.ERROR,{type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var K=this.getKeyIdString(L),j=this.keyIdToKeySessionPromise[K];if(!j){var J=ce(L.keyFormat),te=J?[J]:ue(this.config);return this.attemptKeySystemAccess(te)}return j}},{key:"getKeySystemSelectionPromise",value:function(L){if(L.length||(L=ue(this.config)),L.length===0)throw new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(JSON.stringify({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(L)}},{key:"_onMediaEncrypted",value:function(L){var K=this,j=L.initDataType,J=L.initData;if(this.debug('"'.concat(L.type,'" event: init data type: "').concat(j,'"')),J===null)return;var te,me;if(j==="sinf"&&this.config.drmSystems[Y.FAIRPLAY]){var we=fr(new Uint8Array(J));try{var je=Le(JSON.parse(we).sinf),qe=ki(new Uint8Array(je));if(!qe)return;te=qe.subarray(8,24),me=Y.FAIRPLAY}catch(Mn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var it=Nt(J);if(it===null)return;it.version===0&&it.systemId===ye.WIDEVINE&&it.data&&(te=it.data.subarray(8,24)),me=Ee(it.systemId)}if(!me||!te)return;for(var Rt=pt.hexDump(te),hr=this.keyIdToKeySessionPromise,tr=this.mediaKeySessions,Dr=hr[Rt],jr=function(){var si=tr[yn],Xi=si.decryptdata;if(Xi.pssh||!Xi.keyId)return 0;var Li=pt.hexDump(Xi.keyId);if(Rt===Li||Xi.uri.replace(/-/g,"").indexOf(Rt)!==-1)return Dr=hr[Li],delete hr[Li],Xi.pssh=new Uint8Array(J),Xi.keyId=te,Dr=hr[Rt]=Dr.then(function(){return K.generateRequestWithPreferredKeySession(si,j,J,"encrypted-event-key-match")}),1},Sn,yn=0;yn<tr.length;yn++){if(Sn=jr(),Sn===0)continue;if(Sn===1)break}Dr||(Dr=hr[Rt]=this.getKeySystemSelectionPromise([me]).then(function(Mn){var si=Mn.keySystem,Xi=Mn.mediaKeys,Li;K.throwIfDestroyed();var Pi=new dt("ISO-23001-7",Rt,(Li=Ce(si))!=null?Li:"");return Pi.pssh=new Uint8Array(J),Pi.keyId=te,K.attemptSetMediaKeys(si,Xi).then(function(){K.throwIfDestroyed();var Aa=K.createMediaKeySessionContext({decryptdata:Pi,keySystem:si,mediaKeys:Xi});return K.generateRequestWithPreferredKeySession(Aa,j,J,"encrypted-event-no-match")})})),Dr.catch(function(Mn){return K.handleError(Mn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,K){var j=this,J=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var te=Promise.all(J).then(function(){if(!j.media)throw new Error("Attempted to set mediaKeys without media element attached");return j.media.setMediaKeys(K)});return this.setMediaKeysQueue.push(te),te.then(function(){j.log('Media-keys set for "'.concat(L,'"')),J.push(te),j.setMediaKeysQueue=j.setMediaKeysQueue.filter(function(me){return J.indexOf(me)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,K,j,J){var te=this,me,we,je=(me=this.config.drmSystems)==null||(we=me[L.keySystem])==null?void 0:we.generateRequest;if(je)try{var qe=je.call(this.hls,K,j,L);if(!qe)throw new Error("Invalid response from configured generateRequest filter");K=qe.initDataType,j=L.decryptdata.pssh=qe.initData?new Uint8Array(qe.initData):null}catch(Dr){var it;if(this.warn(Dr.message),(it=this.hls)!=null&&it.config.debug)throw Dr}if(j===null)return this.log('Skipping key-session request for "'.concat(J,'" (no initData)')),Promise.resolve(L);var Rt=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(J,'": ').concat(Rt," (init data type: ").concat(K," length: ").concat(j?j.byteLength:null,")"));var hr=new ks;L.mediaKeysSession.onmessage=function(Dr){var jr=L.mediaKeysSession;if(!jr){hr.emit("error",new Error("invalid state"));return}var Sn=Dr.messageType,yn=Dr.message;te.log('"'.concat(Sn,'" message event for session "').concat(jr.sessionId,'" message size: ').concat(yn.byteLength)),Sn==="license-request"||Sn==="license-renewal"?te.renewLicense(L,yn).catch(function(Mn){te.handleError(Mn),hr.emit("error",Mn)}):Sn==="license-release"?L.keySystem===Y.FAIRPLAY&&(te.updateKeySession(L,Z("acknowledged")),te.removeSession(L)):te.warn('unhandled media key message type "'.concat(Sn,'"'))},L.mediaKeysSession.onkeystatuseschange=function(Dr){var jr=L.mediaKeysSession;if(!jr){hr.emit("error",new Error("invalid state"));return}te.onKeyStatusChange(L);var Sn=L.keyStatus;hr.emit("keyStatus",Sn),Sn==="expired"&&(te.warn("".concat(L.keySystem," expired for key ").concat(Rt)),te.renewKeySession(L))};var tr=new Promise(function(Dr,jr){hr.on("error",jr),hr.on("keyStatus",function(Sn){Sn.startsWith("usable")?Dr():Sn==="output-restricted"?jr(new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Sn==="internal-error"?jr(new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(Sn,'"'))):Sn==="expired"?jr(new Error("key expired while generating request")):te.warn('unhandled key status change "'.concat(Sn,'"'))})});return L.mediaKeysSession.generateRequest(K,j).then(function(){var Dr;te.log('Request generated for key-session "'.concat((Dr=L.mediaKeysSession)==null?void 0:Dr.sessionId,'" keyId: ').concat(Rt))}).catch(function(Dr){throw new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_NO_SESSION,error:Dr,fatal:!1},"Error generating key-session request: ".concat(Dr))}).then(function(){return tr}).catch(function(Dr){throw hr.removeAllListeners(),te.removeSession(L),Dr}).then(function(){return hr.removeAllListeners(),L})}},{key:"onKeyStatusChange",value:function(L){var K=this;L.mediaKeysSession.keyStatuses.forEach(function(j,J){K.log('key status change "'.concat(j,'" for keyStatuses keyId: ').concat(pt.hexDump("buffer"in J?new Uint8Array(J.buffer,J.byteOffset,J.byteLength):new Uint8Array(J))," session keyId: ").concat(pt.hexDump(new Uint8Array(L.decryptdata.keyId||[]))," uri: ").concat(L.decryptdata.uri)),L.keyStatus=j})}},{key:"fetchServerCertificate",value:function(L){var K=this.config,j=K.loader,J=new j(K),te=this.getServerCertificateUrl(L);return te?(this.log('Fetching serverCertificate for "'.concat(L,'"')),new Promise(function(me,we){var je={responseType:"arraybuffer",url:te},qe=K.certLoadPolicy.default,it={loadPolicy:qe,timeout:qe.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Rt={onSuccess:function(tr,Dr,jr,Sn){me(tr.data)},onError:function(tr,Dr,jr,Sn){we(new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:jr,response:b({url:je.url,data:void 0},tr)},'"'.concat(L,'" certificate request failed (').concat(te,"). Status: ").concat(tr.code," (").concat(tr.text,")")))},onTimeout:function(tr,Dr,jr){we(new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:jr,response:{url:je.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(te,")")))},onAbort:function(tr,Dr,jr){we(new Error("aborted"))}};J.load(je,it,Rt)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(L,K,j){var J=this;return new Promise(function(te,me){L.setServerCertificate(j).then(function(we){J.log("setServerCertificate ".concat(we?"success":"not supported by CDM"," (").concat(j==null?void 0:j.byteLength,') on "').concat(K,'"')),te(L)}).catch(function(we){me(new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:we,fatal:!0},we.message))})})}},{key:"renewLicense",value:function(L,K){var j=this;return this.requestLicense(L,new Uint8Array(K)).then(function(J){return j.updateKeySession(L,new Uint8Array(J)).catch(function(te){throw new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:te,fatal:!0},te.message)})})}},{key:"setupLicenseXHR",value:function(L,K,j,J){var te=this,me=this.config.licenseXhrSetup;return me?Promise.resolve().then(function(){if(!j.decryptdata)throw new Error("Key removed");return me.call(te.hls,L,K,j,J)}).catch(function(we){if(!j.decryptdata)throw we;return L.open("POST",K,!0),me.call(te.hls,L,K,j,J)}).then(function(we){L.readyState||L.open("POST",K,!0);var je=we||J;return{xhr:L,licenseChallenge:je}}):(L.open("POST",K,!0),Promise.resolve({xhr:L,licenseChallenge:J}))}},{key:"requestLicense",value:function(L,K){var j=this,J=this.config.keyLoadPolicy.default;return new Promise(function(te,me){var we=j.getLicenseServerUrl(L.keySystem);j.log("Sending license request to URL: ".concat(we));var je=new XMLHttpRequest;je.responseType="arraybuffer",je.onreadystatechange=function(){if(!j.hls||!L.mediaKeysSession)return me(new Error("invalid state"));if(je.readyState===4)if(je.status===200){j._requestLicenseFailureCount=0;var qe=je.response;j.log("License received ".concat(qe instanceof ArrayBuffer?qe.byteLength:qe));var it=j.config.licenseResponseCallback;if(it)try{qe=it.call(j.hls,je,we,L)}catch(Dr){j.error(Dr)}te(qe)}else{var Rt=J.errorRetry,hr=Rt?Rt.maxNumRetry:0;if(j._requestLicenseFailureCount++,j._requestLicenseFailureCount>hr||je.status>=400&&je.status<500)me(new _l({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:je,response:{url:we,data:void 0,code:je.status,text:je.statusText}},"License Request XHR failed (".concat(we,"). Status: ").concat(je.status," (").concat(je.statusText,")")));else{var tr=hr-j._requestLicenseFailureCount+1;j.warn("Retrying license request, ".concat(tr," attempts left")),j.requestLicense(L,K).then(te,me)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=je,j.setupLicenseXHR(je,we,L,K).then(function(qe){var it=qe.xhr,Rt=qe.licenseChallenge;it.send(Rt)})})}},{key:"onMediaAttached",value:function(L,K){if(!this.config.emeEnabled)return;var j=K.media;this.media=j,j.addEventListener("encrypted",this.onMediaEncrypted),j.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var L=this,K=this.media,j=this.mediaKeySessions;K&&(K.removeEventListener("encrypted",this.onMediaEncrypted),K.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},dt.clearKeyUriToKeyIdMap();var J=j.length;he.CDMCleanupPromise=Promise.all(j.map(function(te){return L.removeSession(te)}).concat(K==null?void 0:K.setMediaKeys(null).catch(function(te){L.log("Could not clear media keys: ".concat(te,". media.src: ").concat(K==null?void 0:K.src))}))).then(function(){J&&(L.log("finished closing key sessions and clearing media keys"),j.length=0)}).catch(function(te){L.log("Could not close sessions and clear media keys: ".concat(te,". media.src: ").concat(K==null?void 0:K.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(L,K){var j=K.sessionKeys;if(!j||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var J=j.reduce(function(te,me){return te.indexOf(me.keyFormat)===-1&&te.push(me.keyFormat),te},[]);this.log("Selecting key-system from session-keys ".concat(J.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(J)}}},{key:"removeSession",value:function(L){var K=this,j=L.mediaKeysSession,J=L.licenseXhr;if(j){this.log("Remove licenses and keys and close session ".concat(j.sessionId)),j.onmessage=null,j.onkeystatuseschange=null,J&&J.readyState!==XMLHttpRequest.DONE&&J.abort(),L.mediaKeysSession=L.decryptdata=L.licenseXhr=void 0;var te=this.mediaKeySessions.indexOf(L);return te>-1&&this.mediaKeySessions.splice(te,1),j.remove().catch(function(me){K.log("Could not remove session: ".concat(me))}).then(function(){return j.close()}).catch(function(me){K.log("Could not close session: ".concat(me))})}}}]),he}();Zl.CDMCleanupPromise=void 0;var _l=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j){var J;return Object(r.a)(this,L),J=$.call(this,j),J.data=void 0,K.error||(K.error=new Error(j)),J.data=K,K.err=K.error,J}return Object(s.a)(L)}(n(Error)),fu=1,hl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},fl="h",pu=function(){function he($){var L=this;Object(r.a)(this,he),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(){L.initialized&&(L.starved=!0),L.buffering=!0},this.onPlaying=function(){L.initialized||(L.initialized=!0),L.buffering=!1},this.applyPlaylistData=function(J){try{L.apply(J,{ot:hl.MANIFEST,su:!L.initialized})}catch(te){H.warn("Could not generate manifest CMCD data.",te)}},this.applyFragmentData=function(J){try{var te=J.frag,me=L.hls.levels[te.level],we=L.getObjectType(te),je={d:te.duration*1e3,ot:we};(we===hl.VIDEO||we===hl.AUDIO||we==hl.MUXED)&&(je.br=me.bitrate/1e3,je.tb=L.getTopBandwidth(we)/1e3,je.bl=L.getBufferLength(we)),L.apply(J,je)}catch(qe){H.warn("Could not generate segment CMCD data.",qe)}},this.hls=$;var K=this.config=$.config,j=K.cmcd;j!=null&&(K.pLoader=this.createPlaylistLoader(),K.fLoader=this.createFragmentLoader(),this.sid=j.sessionId||he.uuid(),this.cid=j.contentId,this.useHeaders=j.useHeaders===!0,this.registerListeners())}return Object(s.a)(he,[{key:"registerListeners",value:function(){var L=this.hls;L.on(O.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(O.MEDIA_DETACHED,this.onMediaDetached,this),L.on(O.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(O.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(O.MEDIA_DETACHED,this.onMediaDetached,this),L.off(O.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(L,K){this.media=K.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(L,K){var j,J;this.audioBuffer=(j=K.tracks.audio)==null?void 0:j.buffer,this.videoBuffer=(J=K.tracks.video)==null?void 0:J.buffer}},{key:"createData",value:function(){var L;return{v:fu,sf:fl,sid:this.sid,cid:this.cid,pr:(L=this.media)==null?void 0:L.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}},{key:"apply",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x(K,this.createData());var j=K.ot===hl.INIT||K.ot===hl.VIDEO||K.ot===hl.MUXED;if(this.starved&&j&&(K.bs=!0,K.su=!0,this.starved=!1),K.su==null&&(K.su=this.buffering),this.useHeaders){var J=he.toHeaders(K);if(!Object.keys(J).length)return;L.headers||(L.headers={}),x(L.headers,J)}else{var te=he.toQuery(K);if(!te)return;L.url=he.appendQueryToUri(L.url,te)}}},{key:"getObjectType",value:function(L){var K=L.type;return K==="subtitle"?hl.TIMED_TEXT:L.sn==="initSegment"?hl.INIT:K==="audio"?hl.AUDIO:K==="main"?this.hls.audioTracks.length?hl.VIDEO:hl.MUXED:void 0}},{key:"getTopBandwidth",value:function(L){var K=0,j,J=this.hls;if(L===hl.AUDIO)j=J.audioTracks;else{var te=J.maxAutoLevel,me=te>-1?te+1:J.levels.length;j=J.levels.slice(0,me)}var we=Object(p.a)(j),je;try{for(we.s();!(je=we.n()).done;){var qe=je.value;qe.bitrate>K&&(K=qe.bitrate)}}catch(it){we.e(it)}finally{we.f()}return K>0?K:NaN}},{key:"getBufferLength",value:function(L){var K=this.hls.media,j=L===hl.AUDIO?this.audioBuffer:this.videoBuffer;if(!j||!K)return NaN;var J=wi.bufferInfo(j,K.currentTime,this.config.maxBufferHole);return J.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,K=this.applyPlaylistData,j=L||this.config.loader;return function(){function J(te){Object(r.a)(this,J),this.loader=void 0,this.loader=new j(te)}return Object(s.a)(J,[{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(me,we,je){K(me),this.loader.load(me,we,je)}}]),J}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,K=this.applyFragmentData,j=L||this.config.loader;return function(){function J(te){Object(r.a)(this,J),this.loader=void 0,this.loader=new j(te)}return Object(s.a)(J,[{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(me,we,je){K(me),this.loader.load(me,we,je)}}]),J}()}}],[{key:"uuid",value:function(){var L=URL.createObjectURL(new Blob),K=L.toString();return URL.revokeObjectURL(L),K.slice(K.lastIndexOf("/")+1)}},{key:"serialize",value:function(L){var K=[],j=function(yn){return!Number.isNaN(yn)&&yn!=null&&yn!==""&&yn!==!1},J=function(yn){return Math.round(yn)},te=function(yn){return J(yn/100)*100},me=function(yn){return encodeURIComponent(yn)},we={br:J,d:J,bl:te,dl:te,mtp:te,nor:me,rtp:te,tb:J},je=Object.keys(L||{}).sort(),qe=Object(p.a)(je),it;try{for(qe.s();!(it=qe.n()).done;){var Rt=it.value,hr=L[Rt];if(!j(hr))continue;if(Rt==="v"&&hr===1)continue;if(Rt=="pr"&&hr===1)continue;var tr=we[Rt];tr&&(hr=tr(hr));var Dr=typeof hr,jr=void 0;Rt==="ot"||Rt==="sf"||Rt==="st"?jr="".concat(Rt,"=").concat(hr):Dr==="boolean"?jr=Rt:Dr==="number"?jr="".concat(Rt,"=").concat(hr):jr="".concat(Rt,"=").concat(JSON.stringify(hr)),K.push(jr)}}catch(Sn){qe.e(Sn)}finally{qe.f()}return K.join(",")}},{key:"toHeaders",value:function(L){for(var K=Object.keys(L),j={},J=["Object","Request","Session","Status"],te=[{},{},{},{}],me={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},we=0,je=K;we<je.length;we++){var qe=je[we],it=me[qe]!=null?me[qe]:1;te[it][qe]=L[qe]}for(var Rt=0;Rt<te.length;Rt++){var hr=he.serialize(te[Rt]);hr&&(j["CMCD-".concat(J[Rt])]=hr)}return j}},{key:"toQuery",value:function(L){return"CMCD=".concat(encodeURIComponent(he.serialize(L)))}},{key:"appendQueryToUri",value:function(L,K){if(!K)return L;var j=L.includes("?")?"&":"?";return"".concat(L).concat(j).concat(K)}}]),he}(),mu=3e5,Lu=function(){function he($){Object(r.a)(this,he),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=$,this.log=H.log.bind(H,"[content-steering]:"),this.registerListeners()}return Object(s.a)(he,[{key:"registerListeners",value:function(){var L=this.hls;L.on(O.MANIFEST_LOADING,this.onManifestLoading,this),L.on(O.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(O.MANIFEST_PARSED,this.onManifestParsed,this),L.on(O.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(O.MANIFEST_LOADING,this.onManifestLoading,this),L.off(O.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(O.MANIFEST_PARSED,this.onManifestParsed,this),L.off(O.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var L=Math.max(this.timeToLoad*1e3-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,L)}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(L){var K=this.levels;K&&(this.levels=K.filter(function(j){return j!==L}))}},{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(L,K){var j=K.contentSteering;if(j===null)return;this.pathwayId=j.pathwayId,this.uri=j.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(L,K){this.audioTracks=K.audioTracks,this.subtitleTracks=K.subtitleTracks}},{key:"onError",value:function(L,K){var j=K.errorAction;if((j==null?void 0:j.action)===nn.SendAlternateToPenaltyBox&&j.flags===Gt.MoveAllAlternatesMatchingHost){var J=this.pathwayPriority,te=this.pathwayId;this.penalizedPathways[te]||(this.penalizedPathways[te]=performance.now()),!J&&this.levels&&(J=this.levels.reduce(function(me,we){return me.indexOf(we.pathwayId)===-1&&me.push(we.pathwayId),me},[])),J&&J.length>1&&(this.updatePathwayPriority(J),j.resolved=this.pathwayId!==te)}}},{key:"filterParsedLevels",value:function(L){this.levels=L;var K=this.getLevelsForPathway(this.pathwayId);if(K.length===0){var j=L[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(j,'"')),K=this.getLevelsForPathway(j),this.pathwayId=j}return K.length!==L.length?(this.log("Found ".concat(K.length,"/").concat(L.length,' levels in Pathway "').concat(this.pathwayId,'"')),K):L}},{key:"getLevelsForPathway",value:function(L){return this.levels===null?[]:this.levels.filter(function(K){return L===K.pathwayId})}},{key:"updatePathwayPriority",value:function(L){this.pathwayPriority=L;var K,j=this.penalizedPathways,J=performance.now();Object.keys(j).forEach(function(it){J-j[it]>mu&&delete j[it]});for(var te=0;te<L.length;te++){var me=L[te];if(j[me])continue;if(me===this.pathwayId)return;var we=this.hls.nextLoadLevel,je=this.hls.levels[we];if(K=this.getLevelsForPathway(me),K.length>0){this.log('Setting Pathway to "'.concat(me,'"')),this.pathwayId=me,this.hls.trigger(O.LEVELS_UPDATED,{levels:K});var qe=this.hls.levels[we];je&&qe&&this.levels&&(qe.attrs["STABLE-VARIANT-ID"]!==je.attrs["STABLE-VARIANT-ID"]&&qe.bitrate!==je.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(je.bitrate," to ").concat(qe.bitrate)),this.hls.nextLoadLevel=we);break}}}},{key:"clonePathways",value:function(L){var K=this,j=this.levels;if(!j)return;var J={},te={};L.forEach(function(me){var we=me.ID,je=me["BASE-ID"],qe=me["URI-REPLACEMENT"];if(j.some(function(Rt){return Rt.pathwayId===we}))return;var it=K.getLevelsForPathway(je).map(function(Rt){var hr=x({},Rt);hr.details=void 0,hr.url=$l(Rt.uri,Rt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",qe);var tr=new G(Rt.attrs);tr["PATHWAY-ID"]=we;var Dr=tr.AUDIO&&"".concat(tr.AUDIO,"_clone_").concat(we),jr=tr.SUBTITLES&&"".concat(tr.SUBTITLES,"_clone_").concat(we);Dr&&(J[tr.AUDIO]=Dr,tr.AUDIO=Dr),jr&&(te[tr.SUBTITLES]=jr,tr.SUBTITLES=jr),hr.attrs=tr;var Sn=new nr(hr);return mr(Sn,"audio",Dr),mr(Sn,"text",jr),Sn});j.push.apply(j,Object(y.a)(it)),Ml(K.audioTracks,J,qe,we),Ml(K.subtitleTracks,te,qe,we)})}},{key:"loadSteeringManifest",value:function(L){var K=this,j=this.hls.config,J=j.loader;this.loader&&this.loader.destroy(),this.loader=new J(j);var te;try{te=new self.URL(L)}catch(hr){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(L));return}if(te.protocol!=="data:"){var me=(this.hls.bandwidthEstimate||j.abrEwmaDefaultEstimate)|0;te.searchParams.set("_HLS_pathway",this.pathwayId),te.searchParams.set("_HLS_throughput",""+me)}var we={responseType:"json",url:te.href},je=j.steeringManifestLoadPolicy.default,qe=je.errorRetry||je.timeoutRetry||{},it={loadPolicy:je,timeout:je.maxLoadTimeMs,maxRetry:qe.maxNumRetry||0,retryDelay:qe.retryDelayMs||0,maxRetryDelay:qe.maxRetryDelayMs||0},Rt={onSuccess:function(tr,Dr,jr,Sn){K.log('Loaded steering manifest: "'.concat(te,'"'));var yn=tr.data;if(yn.VERSION!==1){K.log("Steering VERSION ".concat(yn.VERSION," not supported!"));return}K.updated=performance.now(),K.timeToLoad=yn.TTL;var Mn=yn["RELOAD-URI"],si=yn["PATHWAY-CLONES"],Xi=yn["PATHWAY-PRIORITY"];if(Mn)try{K.uri=new self.URL(Mn,te).href}catch(Li){K.enabled=!1,K.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Mn));return}K.scheduleRefresh(K.uri||jr.url),si&&K.clonePathways(si),Xi&&K.updatePathwayPriority(Xi)},onError:function(tr,Dr,jr,Sn){if(K.log("Error loading steering manifest: ".concat(tr.code," ").concat(tr.text," (").concat(Dr.url,")")),K.stopLoad(),tr.code===410){K.enabled=!1,K.log("Steering manifest ".concat(Dr.url," no longer available"));return}var yn=K.timeToLoad*1e3;if(tr.code===429){var Mn=K.loader;if(typeof(Mn==null?void 0:Mn.getResponseHeader)=="function"){var si=Mn.getResponseHeader("Retry-After");si&&(yn=parseFloat(si)*1e3)}K.log("Steering manifest ".concat(Dr.url," rate limited"));return}K.scheduleRefresh(K.uri||Dr.url,yn)},onTimeout:function(tr,Dr,jr){K.log("Timeout loading steering manifest (".concat(Dr.url,")")),K.scheduleRefresh(K.uri||Dr.url)}};this.log("Requesting steering manifest: ".concat(te)),this.loader.load(we,it,Rt)}},{key:"scheduleRefresh",value:function(L){var K=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){K.loadSteeringManifest(L)},j)}}]),he}();function Ml(he,$,L,K){if(!he)return;Object.keys($).forEach(function(j){var J=he.filter(function(te){return te.groupId===j}).map(function(te){var me=x({},te);return me.details=void 0,me.attrs=new G(me.attrs),me.url=me.attrs.URI=$l(te.url,te.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),me.groupId=me.attrs["GROUP-ID"]=$[j],me.attrs["PATHWAY-ID"]=K,me});he.push.apply(he,Object(y.a)(J))})}function $l(he,$,L,K){var j=K.HOST,J=K.PARAMS,te=K[L],me;$&&(me=te==null?void 0:te[$],me&&(he=me));var we=new self.URL(he);return j&&!me&&(we.host=j),J&&Object.keys(J).sort().forEach(function(je){je&&we.searchParams.set(je,J[je])}),we.href}var iu=/^age:\s*[\d.]+\s*$/im,au=function(){function he($){Object(r.a)(this,he),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=$&&$.xhrSetup||null,this.stats=new re,this.retryDelay=0}return Object(s.a)(he,[{key:"destroy",value:function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null}},{key:"abortInternal",value:function(){var L=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),L&&(L.onreadystatechange=null,L.onprogress=null,L.readyState!==4&&(this.stats.aborted=!0,L.abort()))}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}},{key:"load",value:function(L,K,j){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=L,this.config=K,this.callbacks=j,this.loadInternal()}},{key:"loadInternal",value:function(){var L=this,K=this.config,j=this.context;if(!K)return;var J=this.loader=new self.XMLHttpRequest,te=this.stats;te.loading.first=0,te.loaded=0,te.aborted=!1;var me=this.xhrSetup;me?Promise.resolve().then(function(){return L.stats.aborted?void 0:me(J,j.url)}).catch(function(we){return J.open("GET",j.url,!0),me(J,j.url)}).then(function(){if(L.stats.aborted)return;L.openAndSendXhr(J,j,K)}).catch(function(we){L.callbacks.onError({code:J.status,text:we.message},j,J,te);return}):this.openAndSendXhr(J,j,K)}},{key:"openAndSendXhr",value:function(L,K,j){L.readyState||L.open("GET",K.url,!0);var J=this.context.headers,te=j.loadPolicy,me=te.maxTimeToFirstByteMs,we=te.maxLoadTimeMs;if(J)for(var je in J)L.setRequestHeader(je,J[je]);K.rangeEnd&&L.setRequestHeader("Range","bytes="+K.rangeStart+"-"+(K.rangeEnd-1)),L.onreadystatechange=this.readystatechange.bind(this),L.onprogress=this.loadprogress.bind(this),L.responseType=K.responseType,self.clearTimeout(this.requestTimeout),j.timeout=me&&E(me)?me:we,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),j.timeout),L.send()}},{key:"readystatechange",value:function(){var L=this.context,K=this.loader,j=this.stats;if(!L||!K)return;var J=K.readyState,te=this.config;if(j.aborted)return;if(J>=2&&(j.loading.first===0&&(j.loading.first=Math.max(self.performance.now(),j.loading.start),te.timeout!==te.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),te.timeout=te.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),te.loadPolicy.maxLoadTimeMs-(j.loading.first-j.loading.start)))),J===4)){self.clearTimeout(this.requestTimeout),K.onreadystatechange=null,K.onprogress=null;var me=K.status,we=K.responseType!=="text";if(me>=200&&me<300&&(we&&K.response||K.responseText!==null)){j.loading.end=Math.max(self.performance.now(),j.loading.first);var je=we?K.response:K.responseText,qe=K.responseType==="arraybuffer"?je.byteLength:je.length;if(j.loaded=j.total=qe,j.bwEstimate=j.total*8e3/(j.loading.end-j.loading.first),!this.callbacks)return;var it=this.callbacks.onProgress;if(it&&it(j,L,je,K),!this.callbacks)return;var Rt={url:K.responseURL,data:je,code:me};this.callbacks.onSuccess(Rt,j,L,K)}else{var hr=te.loadPolicy.errorRetry,tr=j.retry;ia(hr,tr,!1,me)?this.retry(hr):(H.error("".concat(me," while loading ").concat(L.url)),this.callbacks.onError({code:me,text:K.statusText},L,K,j))}}}},{key:"loadtimeout",value:function(){var L,K=(L=this.config)==null?void 0:L.loadPolicy.timeoutRetry,j=this.stats.retry;if(ia(K,j,!0))this.retry(K);else{H.warn("timeout while loading ".concat(this.context.url));var J=this.callbacks;J&&(this.abortInternal(),J.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(L){var K=this.context,j=this.stats;this.retryDelay=la(L,j.retry),j.retry++,H.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(K.url,", retrying ").concat(j.retry,"/").concat(L.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(L){var K=this.stats;K.loaded=L.loaded,L.lengthComputable&&(K.total=L.total)}},{key:"getCacheAge",value:function(){var L=null;if(this.loader&&iu.test(this.loader.getAllResponseHeaders())){var K=this.loader.getResponseHeader("age");L=K?parseFloat(K):null}return L}},{key:"getResponseHeader",value:function(L){return this.loader&&new RegExp("^".concat(L,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(L):null}}]),he}();function Yl(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(he){}return!1}var Ru=/(\d+)-(\d+)\/(\d+)/,Nu=function(){function he($){Object(r.a)(this,he),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=$.fetchSetup||vu,this.controller=new self.AbortController,this.stats=new re}return Object(s.a)(he,[{key:"destroy",value:function(){this.loader=this.callbacks=null,this.abortInternal()}},{key:"abortInternal",value:function(){var L=this.response;L!=null&&L.ok||(this.stats.aborted=!0,this.controller.abort())}},{key:"abort",value:function(){var L;this.abortInternal(),(L=this.callbacks)!=null&&L.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}},{key:"load",value:function(L,K,j){var J=this,te=this.stats;if(te.loading.start)throw new Error("Loader can only be used once.");te.loading.start=self.performance.now();var me=Ql(L,this.controller.signal),we=j.onProgress,je=L.responseType==="arraybuffer",qe=je?"byteLength":"length",it=K.loadPolicy,Rt=it.maxTimeToFirstByteMs,hr=it.maxLoadTimeMs;this.context=L,this.config=K,this.callbacks=j,this.request=this.fetchSetup(L,me),self.clearTimeout(this.requestTimeout),K.timeout=Rt&&E(Rt)?Rt:hr,this.requestTimeout=self.setTimeout(function(){J.abortInternal(),j.onTimeout(te,L,J.response)},K.timeout),self.fetch(this.request).then(function(tr){J.response=J.loader=tr;var Dr=Math.max(self.performance.now(),te.loading.start);if(self.clearTimeout(J.requestTimeout),K.timeout=hr,J.requestTimeout=self.setTimeout(function(){J.abortInternal(),j.onTimeout(te,L,J.response)},hr-(Dr-te.loading.start)),!tr.ok){var jr=tr.status,Sn=tr.statusText;throw new Gs(Sn||"fetch, bad network response",jr,tr)}return te.loading.first=Dr,te.total=wu(tr.headers)||te.total,we&&E(K.highWaterMark)?J.loadProgressively(tr,te,L,K.highWaterMark,we):je?tr.arrayBuffer():L.responseType==="json"?tr.json():tr.text()}).then(function(tr){var Dr=J.response;self.clearTimeout(J.requestTimeout),te.loading.end=Math.max(self.performance.now(),te.loading.first);var jr=tr[qe];jr&&(te.loaded=te.total=jr);var Sn={url:Dr.url,data:tr,code:Dr.status};we&&!E(K.highWaterMark)&&we(te,L,tr,Dr),j.onSuccess(Sn,te,L,Dr)}).catch(function(tr){if(self.clearTimeout(J.requestTimeout),te.aborted)return;var Dr=tr&&tr.code||0,jr=tr?tr.message:null;j.onError({code:Dr,text:jr},L,tr?tr.details:null,te)})}},{key:"getCacheAge",value:function(){var L=null;if(this.response){var K=this.response.headers.get("age");L=K?parseFloat(K):null}return L}},{key:"getResponseHeader",value:function(L){return this.response?this.response.headers.get(L):null}},{key:"loadProgressively",value:function(L,K,j){var J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,te=arguments.length>4?arguments[4]:void 0,me=new $n,we=L.body.getReader(),je=function qe(){return we.read().then(function(it){if(it.done)return me.dataLength&&te(K,j,me.flush(),L),Promise.resolve(new ArrayBuffer(0));var Rt=it.value,hr=Rt.length;return K.loaded+=hr,hr<J||me.dataLength?(me.push(Rt),me.dataLength>=J&&te(K,j,me.flush(),L)):te(K,j,Rt,L),qe()}).catch(function(){return Promise.reject()})};return je()}}]),he}();function Ql(he,$){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:$,headers:new self.Headers(x({},he.headers))};return he.rangeEnd&&L.headers.set("Range","bytes="+he.rangeStart+"-"+String(he.rangeEnd-1)),L}function gu(he){var $=Ru.exec(he);if($)return parseInt($[2])-parseInt($[1])+1}function wu(he){var $=he.get("Content-Range");if($){var L=gu($);if(E(L))return L}var K=he.get("Content-Length");if(K)return parseInt(K)}function vu(he,$){return new self.Request(he.url,$)}var Gs=function(he){Object(a.a)(L,he);var $=Object(e.a)(L);function L(K,j,J){var te;return Object(r.a)(this,L),te=$.call(this,K),te.code=void 0,te.details=void 0,te.code=j,te.details=J,te}return Object(s.a)(L)}(n(Error)),gl=/\s/,ru={newCue:function($,L,K,j){for(var J=[],te,me,we,je,qe,it=self.VTTCue||self.TextTrackCue,Rt=0;Rt<j.rows.length;Rt++)if(te=j.rows[Rt],we=!0,je=0,qe="",!te.isEmpty()){for(var hr,tr=0;tr<te.chars.length;tr++)gl.test(te.chars[tr].uchar)&&we?je++:(qe+=te.chars[tr].uchar,we=!1);te.cueStartTime=L,L===K&&(K+=1e-4),je>=16?je--:je++;var Dr=ds(qe.trim()),jr=bl(L,K,Dr);$!=null&&(hr=$.cues)!=null&&hr.getCueById(jr)||(me=new it(L,K,Dr),me.id=jr,me.line=Rt+1,me.align="left",me.position=10+Math.min(80,Math.floor(je*8/32)*10),J.push(me))}return $&&J.length&&(J.sort(function(Sn,yn){return Sn.line==="auto"||yn.line==="auto"?0:Sn.line>8&&yn.line>8?yn.line-Sn.line:Sn.line-yn.line}),J.forEach(function(Sn){return vn($,Sn)})),J}},Du={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Su=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:au,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:gn,bufferController:as,capLevelController:dl,errorController:wr,fpsController:Tl,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:ge,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:Du},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},cu()),{},{subtitleStreamController:ko,subtitleTrackController:jo,timelineController:bu,audioStreamController:Yi,audioTrackController:ha,emeController:Zl,cmcdController:pu,contentSteeringController:Lu});function cu(){return{cueHandler:ru,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 ou(he,$){if(($.liveSyncDurationCount||$.liveMaxLatencyDurationCount)&&($.liveSyncDuration||$.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if($.liveMaxLatencyDurationCount!==void 0&&($.liveSyncDurationCount===void 0||$.liveMaxLatencyDurationCount<=$.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if($.liveMaxLatencyDuration!==void 0&&($.liveSyncDuration===void 0||$.liveMaxLatencyDuration<=$.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var L=su(he),K=["manifest","level","frag"],j=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return K.forEach(function(J){var te="".concat(J==="level"?"playlist":J,"LoadPolicy"),me=$[te]===void 0,we=[];j.forEach(function(je){var qe="".concat(J,"Loading").concat(je),it=$[qe];if(it!==void 0&&me){we.push(qe);var Rt=L[te].default;$[te]={default:Rt};switch(je){case"TimeOut":Rt.maxLoadTimeMs=it,Rt.maxTimeToFirstByteMs=it;break;case"MaxRetry":Rt.errorRetry.maxNumRetry=it,Rt.timeoutRetry.maxNumRetry=it;break;case"RetryDelay":Rt.errorRetry.retryDelayMs=it,Rt.timeoutRetry.retryDelayMs=it;break;case"MaxRetryTimeout":Rt.errorRetry.maxRetryDelayMs=it,Rt.timeoutRetry.maxRetryDelayMs=it;break}}}),we.length&&H.warn('hls.js config: "'.concat(we.join('", "'),'" setting(s) are deprecated, use "').concat(te,'": ').concat(JSON.stringify($[te])))}),b(b({},L),$)}function su(he){return he&&typeof he=="object"?Array.isArray(he)?he.map(su):Object.keys(he).reduce(function($,L){return $[L]=su(he[L]),$},{}):he}function xu(he){var $=he.loader;if($!==Nu&&$!==au)H.log("[config]: Custom loader detected, cannot enable progressive streaming"),he.progressive=!1;else{var L=Yl();L&&(he.loader=Nu,he.progressive=!0,he.enableSoftwareAES=!0,H.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var Au=function(){function he(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,he),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ks,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,W($.debug||!1,"Hls instance");var L=this.config=ou(he.DefaultConfig,$);this.userConfig=$,this._autoLevelCapping=-1,L.progressive&&xu(L);var K=L.abrController,j=L.bufferController,J=L.capLevelController,te=L.errorController,me=L.fpsController,we=new te(this),je=this.abrController=new K(this),qe=this.bufferController=new j(this),it=this.capLevelController=new J(this),Rt=new me(this),hr=new Zt(this),tr=new xt(this),Dr=L.contentSteeringController,jr=Dr?new Dr(this):null,Sn=this.levelController=new bt(this,jr),yn=new un(this),Mn=new _i(this.config),si=this.streamController=new ao(this,yn,Mn);it.setStreamController(si),Rt.setStreamController(si);var Xi=[hr,Sn,si];jr&&Xi.splice(1,0,jr),this.networkControllers=Xi;var Li=[je,qe,it,Rt,tr,yn];this.audioTrackController=this.createController(L.audioTrackController,Xi);var Pi=L.audioStreamController;Pi&&Xi.push(new Pi(this,yn,Mn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,Xi);var Aa=L.subtitleStreamController;Aa&&Xi.push(new Aa(this,yn,Mn)),this.createController(L.timelineController,Li),Mn.emeController=this.emeController=this.createController(L.emeController,Li),this.cmcdController=this.createController(L.cmcdController,Li),this.latencyController=this.createController(Tt,Li),this.coreComponents=Li,Xi.push(we);var Na=we.onErrorOut;typeof Na=="function"&&this.on(O.ERROR,Na,we)}return Object(s.a)(he,[{key:"createController",value:function(L,K){if(L){var j=new L(this);return K&&K.push(j),j}return null}},{key:"on",value:function(L,K){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,K,j)}},{key:"once",value:function(L,K){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,K,j)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,K){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,J=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,K,j,J)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,K,j){return this._emitter.emit(L,K,j)}},{key:"trigger",value:function(L,K){if(this.config.debug)return this.emit(L,L,K);try{return this.emit(L,L,K)}catch(j){H.error("An internal error happened while handling event "+L+'. Error message: "'+j.message+'". Here is a stacktrace:',j),this.trigger(O.ERROR,{type:F.OTHER_ERROR,details:R.INTERNAL_EXCEPTION,fatal:!1,event:L,error:j})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){H.log("destroy"),this.trigger(O.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(K){return K.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(K){return K.destroy()}),this.coreComponents.length=0;var L=this.config;L.xhrSetup=L.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(L){H.log("attachMedia"),this._media=L,this.trigger(O.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){H.log("detachMedia"),this.trigger(O.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var K=this.media,j=this.url,J=this.url=g.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});H.log("loadSource:".concat(J)),K&&j&&(j!==J||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(K)),this.trigger(O.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;H.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(K){K.startLoad(L)})}},{key:"stopLoad",value:function(){H.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){H.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){H.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)}},{key:"removeLevel",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(L,K)}},{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){H.log("set currentLevel:".concat(L)),this.loadLevel=L,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(L){H.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){H.log("set loadLevel:".concat(L)),this.levelController.manualLevel=L}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(L){this.levelController.nextLoadLevel=L}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(L){H.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){H.log("set startLevel:".concat(L)),L!==-1&&(L=Math.max(L,this.minAutoLevel)),this.levelController.startLevel=L}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(L){var K=!!L;K!==this.config.capLevelToPlayerSize&&(K?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=K)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(H.log("set autoLevelCapping:".concat(L)),this._autoLevelCapping=L)}},{key:"bandwidthEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var L=this.abrController.bwEstimator;return L?L.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(L){Lt.indexOf(L)>-1&&(this._maxHdcpLevel=L)}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var L=this.levels,K=this.config.minAutoBitrate;if(!L)return 0;for(var j=L.length,J=0;J<j;J++)if(L[J].maxBitrate>=K)return J;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,K=this.autoLevelCapping,j=this.maxHdcpLevel,J;if(K===-1&&L&&L.length?J=L.length-1:J=K,j)for(var te=J;te--;){var me=L[te].attrs["HDCP-LEVEL"];if(me&&me<=j)return te}return J}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(L){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,L)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var L=this.audioTrackController;return L?L.audioTracks:[]}},{key:"audioTrack",get:function(){var L=this.audioTrackController;return L?L.audioTrack:-1},set:function(L){var K=this.audioTrackController;K&&(K.audioTrack=L)}},{key:"subtitleTracks",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var L=this.subtitleTrackController;return L?L.subtitleTrack:-1},set:function(L){var K=this.subtitleTrackController;K&&(K.subtitleTrack=L)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var L=this.subtitleTrackController;return L?L.subtitleDisplay:!1},set:function(L){var K=this.subtitleTrackController;K&&(K.subtitleDisplay=L)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(L){this.config.lowLatencyMode=L}},{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.13"}},{key:"isSupported",value:function(){return no()}},{key:"Events",get:function(){return O}},{key:"ErrorTypes",get:function(){return F}},{key:"ErrorDetails",get:function(){return R}},{key:"DefaultConfig",get:function(){return he.defaultConfig?he.defaultConfig:Su},set:function(L){he.defaultConfig=L}}]),he}();Au.defaultConfig=void 0},pmaE:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),v=i("DEFe"),m="__seriesMapHighDown",f="__seriesMapCallKey",d=y.extendChartView({type:"map",render:function(n,t,a,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),n.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===n.id){var r=this._mapDraw;r&&l.add(r.group)}else if(n.needsDrawMap){var r=this._mapDraw||new v(a,!0);l.add(r.group),r.draw(n,t,a,this,e),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(n,t,a)},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(n,t,a){var e=n.originalData,l=this.group;e.each(e.mapDimension("value"),function(r,s){if(isNaN(r))return;var c=e.getItemLayout(s);if(!c||!c.point)return;var h=c.point,g=c.offset,A=new S.Circle({style:{fill:n.getData().getVisual("color")},shape:{cx:h[0]+g*9,cy:h[1],r:3},silent:!0,z2:8+(g?0:S.Z2_EMPHASIS_LIFT+1)});if(!g){var b=n.mainSeries.getData(),w=e.getName(s),x=b.indexOfName(w),T=e.getItemModel(s),_=T.getModel("label"),E=T.getModel("emphasis.label"),C=b.getItemGraphicEl(x),I=p.retrieve2(n.getFormattedLabel(x,"normal"),w),O=p.retrieve2(n.getFormattedLabel(x,"emphasis"),I),F=C[m],R=Math.random();if(!F){F=C[m]={};var B=p.curry(u,!0),P=p.curry(u,!1);C.on("mouseover",B).on("mouseout",P).on("emphasis",B).on("normal",P)}C[f]=R,p.extend(F,{recordVersion:R,circle:A,labelModel:_,hoverLabelModel:E,emphasisText:O,normalText:I}),o(F,!1)}l.add(A)})}});function u(n){var t=this[m];t&&t.recordVersion===this[f]&&o(t,n)}function o(n,t){var a=n.circle,e=n.labelModel,l=n.hoverLabelModel,r=n.emphasisText,s=n.normalText;t?(a.style.extendFrom(S.setTextStyle({},l,{text:l.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=S.Z2_EMPHASIS_LIFT):(S.setTextStyle(a.style,e,{text:e.get("show")?s:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),a.dirty(!1),a.__mapOriginalZ2!=null&&(a.z2=a.__mapOriginalZ2,a.__mapOriginalZ2=null))}k.exports=d},pwpV:function(k,D,i){},pzxd:function(k,D,i){var y=i("bYtY"),p=y.retrieve2,S=y.retrieve3,v=y.each,m=y.normalizeCssArray,f=y.isString,d=y.isObject,u=i("6GrX"),o=i("VpOo"),n=i("Xnb7"),t=i("fW2E"),a=i("gut8"),e=a.ContextCachedBy,l=a.WILL_BE_RESTORED,r=u.DEFAULT_FONT,s={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={},A={};function b(V){return w(V),v(V.rich,w),V}function w(V){if(V){V.font=u.makeFont(V);var Q=V.textAlign;Q==="middle"&&(Q="center"),V.textAlign=Q==null||s[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 x(V,Q,G,ee,q,se){ee.rich?_(V,Q,G,ee,q,se):T(V,Q,G,ee,q,se)}function T(V,Q,G,ee,q,se){"use strict";var re=O(ee),Ae,Te=!1,Re=Q.__attrCachedBy===e.PLAIN_TEXT;se!==l?(se&&(Ae=se.style,Te=!re&&Re&&Ae),Q.__attrCachedBy=re?e.NONE:e.PLAIN_TEXT):Re&&(Q.__attrCachedBy=e.NONE);var Ge=ee.font||r;(!Te||Ge!==(Ae.font||r))&&(Q.font=Ge);var Ue=V.__computedFont;V.__styleFont!==Ge&&(V.__styleFont=Ge,Ue=V.__computedFont=Q.font);var nt=ee.textPadding,Le=ee.textLineHeight,le=V.__textCotentBlock;(!le||V.__dirtyText)&&(le=V.__textCotentBlock=u.parsePlainText(G,Ue,nt,Le,ee.truncate));var Xe=le.outerHeight,pe=le.lines,Z=le.lineHeight,Y=B(A,V,ee,q),ne=Y.baseX,ce=Y.baseY,ye=Y.textAlign||"left",Ee=Y.textVerticalAlign;C(Q,ee,q,ne,ce);var Ce=u.adjustTextY(ce,Xe,Ee),ue=ne,ge=Ce;if(re||nt){var Oe=u.getWidth(G,Ue),Je=Oe;nt&&(Je+=nt[1]+nt[3]);var lt=u.adjustTextX(ne,Je,ye);re&&F(V,Q,ee,lt,Ce,Je,Xe),nt&&(ue=W(ne,ye,nt),ge+=nt[0])}Q.textAlign=ye,Q.textBaseline="middle",Q.globalAlpha=ee.opacity||1;for(var tt=0;tt<h.length;tt++){var ke=h[tt],st=ke[0],Ve=ke[1],Ot=ee[st];(!Te||Ot!==Ae[st])&&(Q[Ve]=t(Q,Ve,Ot||ke[2]))}ge+=Z/2;var Ut=ee.textStrokeWidth,ir=Te?Ae.textStrokeWidth:null,lr=!Te||Ut!==ir,Sr=!Te||lr||ee.textStroke!==Ae.textStroke,mt=X(ee.textStroke,Ut),or=M(ee.textFill);if(mt&&(lr&&(Q.lineWidth=Ut),Sr&&(Q.strokeStyle=mt)),or&&((!Te||ee.textFill!==Ae.textFill)&&(Q.fillStyle=or)),pe.length===1)mt&&Q.strokeText(pe[0],ue,ge),or&&Q.fillText(pe[0],ue,ge);else for(var tt=0;tt<pe.length;tt++)mt&&Q.strokeText(pe[tt],ue,ge),or&&Q.fillText(pe[tt],ue,ge),ge+=Z}function _(V,Q,G,ee,q,se){se!==l&&(Q.__attrCachedBy=e.NONE);var re=V.__textCotentBlock;(!re||V.__dirtyText)&&(re=V.__textCotentBlock=u.parseRichText(G,ee)),E(V,Q,re,ee,q)}function E(V,Q,G,ee,q){var se=G.width,re=G.outerWidth,Ae=G.outerHeight,Te=ee.textPadding,Re=B(A,V,ee,q),Ge=Re.baseX,Ue=Re.baseY,nt=Re.textAlign,Le=Re.textVerticalAlign;C(Q,ee,q,Ge,Ue);var le=u.adjustTextX(Ge,re,nt),Xe=u.adjustTextY(Ue,Ae,Le),pe=le,Z=Xe;Te&&(pe+=Te[3],Z+=Te[0]);var Y=pe+se;O(ee)&&F(V,Q,ee,le,Xe,re,Ae);for(var ne=0;ne<G.lines.length;ne++){for(var ce=G.lines[ne],ye=ce.tokens,Ee=ye.length,Ce=ce.lineHeight,ue=ce.width,ge=0,Oe=pe,Je=Y,lt=Ee-1,tt;ge<Ee&&(tt=ye[ge],!tt.textAlign||tt.textAlign==="left");)I(V,Q,tt,ee,Ce,Z,Oe,"left"),ue-=tt.width,Oe+=tt.width,ge++;for(;lt>=0&&(tt=ye[lt],tt.textAlign==="right");)I(V,Q,tt,ee,Ce,Z,Je,"right"),ue-=tt.width,Je-=tt.width,lt--;for(Oe+=(se-(Oe-pe)-(Y-Je)-ue)/2;ge<=lt;)tt=ye[ge],I(V,Q,tt,ee,Ce,Z,Oe+tt.width/2,"center"),Oe+=tt.width,ge++;Z+=Ce}}function C(V,Q,G,ee,q){if(G&&Q.textRotation){var se=Q.textOrigin;se==="center"?(ee=G.width/2+G.x,q=G.height/2+G.y):se&&(ee=se[0]+G.x,q=se[1]+G.y),V.translate(ee,q),V.rotate(-Q.textRotation),V.translate(-ee,-q)}}function I(V,Q,G,ee,q,se,re,Ae){var Te=ee.rich[G.styleName]||{};Te.text=G.text;var Re=G.textVerticalAlign,Ge=se+q/2;Re==="top"?Ge=se+G.height/2:Re==="bottom"&&(Ge=se+q-G.height/2),!G.isLineHolder&&O(Te)&&F(V,Q,Te,Ae==="right"?re-G.width:Ae==="center"?re-G.width/2:re,Ge-G.height/2,G.width,G.height);var Ue=G.textPadding;Ue&&(re=W(re,Ae,Ue),Ge-=G.height/2-Ue[2]-G.textHeight/2),P(Q,"shadowBlur",S(Te.textShadowBlur,ee.textShadowBlur,0)),P(Q,"shadowColor",Te.textShadowColor||ee.textShadowColor||"transparent"),P(Q,"shadowOffsetX",S(Te.textShadowOffsetX,ee.textShadowOffsetX,0)),P(Q,"shadowOffsetY",S(Te.textShadowOffsetY,ee.textShadowOffsetY,0)),P(Q,"textAlign",Ae),P(Q,"textBaseline","middle"),P(Q,"font",G.font||r);var nt=X(Te.textStroke||ee.textStroke,le),Le=M(Te.textFill||ee.textFill),le=p(Te.textStrokeWidth,ee.textStrokeWidth);nt&&(P(Q,"lineWidth",le),P(Q,"strokeStyle",nt),Q.strokeText(G.text,re,Ge)),Le&&(P(Q,"fillStyle",Le),Q.fillText(G.text,re,Ge))}function O(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function F(V,Q,G,ee,q,se,re){var Ae=G.textBackgroundColor,Te=G.textBorderWidth,Re=G.textBorderColor,Ge=f(Ae);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),Ge||Te&&Re){Q.beginPath();var Ue=G.textBorderRadius;Ue?o.buildPath(Q,{x:ee,y:q,width:se,height:re,r:Ue}):Q.rect(ee,q,se,re),Q.closePath()}if(Ge)if(P(Q,"fillStyle",Ae),G.fillOpacity!=null){var nt=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=nt}else Q.fill();else if(d(Ae)){var Le=Ae.image;Le=n.createOrUpdateImage(Le,null,V,R,Ae),Le&&n.isImageReady(Le)&&Q.drawImage(Le,ee,q,se,re)}if(Te&&Re)if(P(Q,"lineWidth",Te),P(Q,"strokeStyle",Re),G.strokeOpacity!=null){var nt=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=nt}else Q.stroke()}function R(V,Q){Q.image=V}function B(V,Q,G,ee){var q=G.x||0,se=G.y||0,re=G.textAlign,Ae=G.textVerticalAlign;if(ee){var Te=G.textPosition;if(Te instanceof Array)q=ee.x+z(Te[0],ee.width),se=ee.y+z(Te[1],ee.height);else{var Re=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,G,ee):u.calculateTextPosition(g,G,ee);q=Re.x,se=Re.y,re=re||Re.textAlign,Ae=Ae||Re.textVerticalAlign}var Ge=G.textOffset;Ge&&(q+=Ge[0],se+=Ge[1])}return V=V||{},V.baseX=q,V.baseY=se,V.textAlign=re,V.textVerticalAlign=Ae,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 M(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function z(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function W(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function H(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=x,D.getBoxPosition=B,D.getStroke=X,D.getFill=M,D.parsePercent=z,D.needDrawText=H},"q/+u":function(k,D,i){var y=i("ProS"),p=i("9wZj"),S=i("yWXo"),v=i("h8O9");y.extendChartView({type:"scatter",render:function(m,f,d){var u=m.getData(),o=this._updateSymbolDraw(u,m);o.updateData(u,{clipShape:this._getClipShape(m)}),this._finished=!0},incrementalPrepareRender:function(m,f,d){var u=m.getData(),o=this._updateSymbolDraw(u,m);o.incrementalPrepareUpdate(u),this._finished=!1},incrementalRender:function(m,f,d){this._symbolDraw.incrementalUpdate(m,f.getData(),{clipShape:this._getClipShape(f)}),this._finished=m.end===f.getData().count()},updateTransform:function(m,f,d){var u=m.getData();if(this.group.dirty(),!this._finished||u.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=v().reset(m);o.progress&&o.progress({start:0,end:u.count()},u),this._symbolDraw.updateLayout(u)},_getClipShape:function(m){var f=m.coordinateSystem,d=f&&f.getArea&&f.getArea();return m.get("clip",!0)?d:null},_updateSymbolDraw:function(m,f){var d=this._symbolDraw,u=f.pipelineContext,o=u.large;return(!d||o!==this._isLargeDraw)&&(d&&d.remove(),d=this._symbolDraw=o?new S:new p,this._isLargeDraw=o,this.group.removeAll()),this.group.add(d.group),d},remove:function(m,f){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(k,D){var i=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(p,S,v){var m=p.getModel("itemStyle"),f=p.getModel("lineStyle"),d=S.get("color"),u=f.get("color")||m.get("color")||d[p.seriesIndex%d.length],o=p.get("inactiveOpacity"),n=p.get("activeOpacity"),t=p.getModel("lineStyle").getLineStyle(),a=p.coordinateSystem,e=p.getData(),l={normal:t.opacity,active:n,inactive:o};e.setVisual("color",u);function r(s,c){a.eachActiveState(c,function(h,g){var A=l[h];if(h==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(i,!0);b!=null&&(A=b)}c.setItemVisual(g,"opacity",A)},s.start,s.end)}return{progress:r}}};k.exports=y},q4HE:function(k,D){var i="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",S="\\u20d0-\\u20ff",v=y+p+S,m="\\ufe0e\\ufe0f",f="["+i+"]",d="["+v+"]",u="\\ud83c[\\udffb-\\udfff]",o="(?:"+d+"|"+u+")",n="[^"+i+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=o+"?",r="["+m+"]?",s="(?:"+e+"(?:"+[n,t,a].join("|")+")"+r+l+")*",c=r+l+s,h="(?:"+[n+d+"?",d,t,a,f].join("|")+")",g=RegExp(u+"(?="+u+")|"+h+c,"g");function A(b){for(var w=g.lastIndex=0;g.test(b);)++w;return w}k.exports=A},q7KB:function(k,D,i){},qBft:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(S,v){var m=S.sigBytes,f=v*4,d=f-m%f,u=m+d-1;S.clamp(),S.words[u>>>2]|=d<<24-u%4*8,S.sigBytes+=d},unpad:function(S){var v=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=v}},y.pad.Ansix923})},qH13:function(k,D,i){var y=i("ItGF"),p=i("QBsz"),S=p.applyTransform,v=i("mFDi"),m=i("Qe9p"),f=i("6GrX"),d=i("pzxd"),u=i("ni6a"),o=i("Gev7"),n=i("Dagg"),t=i("dqUG"),a=i("y+Vt"),e=i("IMiH"),l=i("QuXc"),r=i("06Qe"),s=e.CMD,c=Math.round,h=Math.sqrt,g=Math.abs,A=Math.cos,b=Math.sin,w=Math.max;if(!y.canvasSupported){var x=",",T="progid:DXImageTransform.Microsoft",_=21600,E=_/2,C=1e5,I=1e3,O=function(ce){ce.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ce.coordsize=_+","+_,ce.coordorigin="0,0"},F=function(ce){return String(ce).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},R=function(ce,ye,Ee){return"rgb("+[ce,ye,Ee].join(",")+")"},B=function(ce,ye){ye&&ce&&ye.parentNode!==ce&&ce.appendChild(ye)},P=function(ce,ye){ye&&ce&&ye.parentNode===ce&&ce.removeChild(ye)},X=function(ce,ye,Ee){return(parseFloat(ce)||0)*C+(parseFloat(ye)||0)*I+Ee},M=d.parsePercent,z=function(ce,ye,Ee){var Ce=m.parse(ye);Ee=+Ee,isNaN(Ee)&&(Ee=1),Ce&&(ce.color=R(Ce[0],Ce[1],Ce[2]),ce.opacity=Ee*Ce[3])},W=function(ce){var ye=m.parse(ce);return[R(ye[0],ye[1],ye[2]),ye[3]]},H=function(ce,ye,Ee){var Ce=ye.fill;if(Ce!=null)if(Ce instanceof l){var ue,ge=0,Oe=[0,0],Je=0,lt=1,tt=Ee.getBoundingRect(),ke=tt.width,st=tt.height;if(Ce.type==="linear"){ue="gradient";var Ve=Ee.transform,Ot=[Ce.x*ke,Ce.y*st],Ut=[Ce.x2*ke,Ce.y2*st];Ve&&(S(Ot,Ot,Ve),S(Ut,Ut,Ve));var ir=Ut[0]-Ot[0],lr=Ut[1]-Ot[1];ge=Math.atan2(ir,lr)*180/Math.PI,ge<0&&(ge+=360),ge<1e-6&&(ge=0)}else{ue="gradientradial";var Ot=[Ce.x*ke,Ce.y*st],Ve=Ee.transform,Sr=Ee.scale,mt=ke,or=st;Oe=[(Ot[0]-tt.x)/mt,(Ot[1]-tt.y)/or],Ve&&S(Ot,Ot,Ve),mt/=Sr[0]*_,or/=Sr[1]*_;var et=w(mt,or);Je=2*0/et,lt=2*Ce.r/et-Je}var ur=Ce.colorStops.slice();ur.sort(function(dn,Qt){return dn.offset-Qt.offset});for(var qr=ur.length,Fe=[],$t=[],Lr=0;Lr<qr;Lr++){var pt=ur[Lr],qt=W(pt.color);$t.push(pt.offset*lt+Je+" "+qt[0]),(Lr===0||Lr===qr-1)&&Fe.push(qt)}if(qr>=2){var vr=Fe[0][0],pn=Fe[1][0],fr=Fe[0][1]*ye.opacity,gr=Fe[1][1]*ye.opacity;ce.type=ue,ce.method="none",ce.focus="100%",ce.angle=ge,ce.color=vr,ce.color2=pn,ce.colors=$t.join(","),ce.opacity=gr,ce.opacity2=fr}ue==="radial"&&(ce.focusposition=Oe.join(","))}else z(ce,Ce,ye.opacity)},V=function(ce,ye){ye.lineDash&&(ce.dashstyle=ye.lineDash.join(" ")),ye.stroke!=null&&!(ye.stroke instanceof l)&&z(ce,ye.stroke,ye.opacity)},Q=function(ce,ye,Ee,Ce){var ue=ye==="fill",ge=ce.getElementsByTagName(ye)[0];Ee[ye]!=null&&Ee[ye]!=="none"&&(ue||!ue&&Ee.lineWidth)?(ce[ue?"filled":"stroked"]="true",Ee[ye]instanceof l&&P(ce,ge),ge||(ge=r.createNode(ye)),ue?H(ge,Ee,Ce):V(ge,Ee),B(ce,ge)):(ce[ue?"filled":"stroked"]="false",P(ce,ge))},G=[[],[],[]],ee=function(ce,ye){var Ee=s.M,Ce=s.C,ue=s.L,ge=s.A,Oe=s.Q,Je=[],lt,tt,ke,st,Ve,Ot,Ut=ce.data,ir=ce.len();for(st=0;st<ir;){ke=Ut[st++],tt="",lt=0;switch(ke){case Ee:tt=" m ",lt=1,Ve=Ut[st++],Ot=Ut[st++],G[0][0]=Ve,G[0][1]=Ot;break;case ue:tt=" l ",lt=1,Ve=Ut[st++],Ot=Ut[st++],G[0][0]=Ve,G[0][1]=Ot;break;case Oe:case Ce:tt=" c ",lt=3;var lr=Ut[st++],Sr=Ut[st++],mt=Ut[st++],or=Ut[st++],et,ur;ke===Oe?(et=mt,ur=or,mt=(mt+2*lr)/3,or=(or+2*Sr)/3,lr=(Ve+2*lr)/3,Sr=(Ot+2*Sr)/3):(et=Ut[st++],ur=Ut[st++]),G[0][0]=lr,G[0][1]=Sr,G[1][0]=mt,G[1][1]=or,G[2][0]=et,G[2][1]=ur,Ve=et,Ot=ur;break;case ge:var qr=0,Fe=0,$t=1,Lr=1,pt=0;ye&&(qr=ye[4],Fe=ye[5],$t=h(ye[0]*ye[0]+ye[1]*ye[1]),Lr=h(ye[2]*ye[2]+ye[3]*ye[3]),pt=Math.atan2(-ye[1]/Lr,ye[0]/$t));var qt=Ut[st++],vr=Ut[st++],pn=Ut[st++],fr=Ut[st++],gr=Ut[st++]+pt,dn=Ut[st++]+gr+pt;st++;var Qt=Ut[st++],sr=qt+A(gr)*pn,Qr=vr+b(gr)*fr,lr=qt+A(dn)*pn,Sr=vr+b(dn)*fr,Cn=Qt?" wa ":" at ";Math.abs(sr-lr)<1e-4&&(Math.abs(dn-gr)>.01?Qt&&(sr+=270/_):Math.abs(Qr-vr)<1e-4?Qt&&sr<qt||!Qt&&sr>qt?Sr-=270/_:Sr+=270/_:Qt&&Qr<vr||!Qt&&Qr>vr?lr+=270/_:lr-=270/_),Je.push(Cn,c(((qt-pn)*$t+qr)*_-E),x,c(((vr-fr)*Lr+Fe)*_-E),x,c(((qt+pn)*$t+qr)*_-E),x,c(((vr+fr)*Lr+Fe)*_-E),x,c((sr*$t+qr)*_-E),x,c((Qr*Lr+Fe)*_-E),x,c((lr*$t+qr)*_-E),x,c((Sr*Lr+Fe)*_-E)),Ve=lr,Ot=Sr;break;case s.R:var Fn=G[0],ti=G[1];Fn[0]=Ut[st++],Fn[1]=Ut[st++],ti[0]=Fn[0]+Ut[st++],ti[1]=Fn[1]+Ut[st++],ye&&(S(Fn,Fn,ye),S(ti,ti,ye)),Fn[0]=c(Fn[0]*_-E),ti[0]=c(ti[0]*_-E),Fn[1]=c(Fn[1]*_-E),ti[1]=c(ti[1]*_-E),Je.push(" m ",Fn[0],x,Fn[1]," l ",ti[0],x,Fn[1]," l ",ti[0],x,ti[1]," l ",Fn[0],x,ti[1]);break;case s.Z:Je.push(" x ")}if(lt>0){Je.push(tt);for(var ki=0;ki<lt;ki++){var Dn=G[ki];ye&&S(Dn,Dn,ye),Je.push(c(Dn[0]*_-E),x,c(Dn[1]*_-E),ki<lt-1?x:"")}}}return Je.join("")};a.prototype.brushVML=function(ne){var ce=this.style,ye=this._vmlEl;ye||(ye=r.createNode("shape"),O(ye),this._vmlEl=ye),Q(ye,"fill",ce,this),Q(ye,"stroke",ce,this);var Ee=this.transform,Ce=Ee!=null,ue=ye.getElementsByTagName("stroke")[0];if(ue){var ge=ce.lineWidth;if(Ce&&!ce.strokeNoScale){var Oe=Ee[0]*Ee[3]-Ee[1]*Ee[2];ge*=h(g(Oe))}ue.weight=ge+"px"}var Je=this.path||(this.path=new e);this.__dirtyPath&&(Je.beginPath(),Je.subPixelOptimize=!1,this.buildPath(Je,this.shape),Je.toStatic(),this.__dirtyPath=!1),ye.path=ee(Je,this.transform),ye.style.zIndex=X(this.zlevel,this.z,this.z2),B(ne,ye),ce.text!=null?this.drawRectText(ne,this.getBoundingRect()):this.removeRectText(ne)},a.prototype.onRemove=function(ne){P(ne,this._vmlEl),this.removeRectText(ne)},a.prototype.onAdd=function(ne){B(ne,this._vmlEl),this.appendRectText(ne)};var q=function(ce){return typeof ce=="object"&&ce.tagName&&ce.tagName.toUpperCase()==="IMG"};n.prototype.brushVML=function(ne){var ce=this.style,ye=ce.image,Ee,Ce;if(q(ye)){var ue=ye.src;if(ue===this._imageSrc)Ee=this._imageWidth,Ce=this._imageHeight;else{var ge=ye.runtimeStyle,Oe=ge.width,Je=ge.height;ge.width="auto",ge.height="auto",Ee=ye.width,Ce=ye.height,ge.width=Oe,ge.height=Je,this._imageSrc=ue,this._imageWidth=Ee,this._imageHeight=Ce}ye=ue}else ye===this._imageSrc&&(Ee=this._imageWidth,Ce=this._imageHeight);if(!ye)return;var lt=ce.x||0,tt=ce.y||0,ke=ce.width,st=ce.height,Ve=ce.sWidth,Ot=ce.sHeight,Ut=ce.sx||0,ir=ce.sy||0,lr=Ve&&Ot,Sr=this._vmlEl;Sr||(Sr=r.doc.createElement("div"),O(Sr),this._vmlEl=Sr);var mt=Sr.style,or=!1,et,ur=1,qr=1;if(this.transform&&(et=this.transform,ur=h(et[0]*et[0]+et[1]*et[1]),qr=h(et[2]*et[2]+et[3]*et[3]),or=et[1]||et[2]),or){var Fe=[lt,tt],$t=[lt+ke,tt],Lr=[lt,tt+st],pt=[lt+ke,tt+st];S(Fe,Fe,et),S($t,$t,et),S(Lr,Lr,et),S(pt,pt,et);var qt=w(Fe[0],$t[0],Lr[0],pt[0]),vr=w(Fe[1],$t[1],Lr[1],pt[1]),pn=[];pn.push("M11=",et[0]/ur,x,"M12=",et[2]/qr,x,"M21=",et[1]/ur,x,"M22=",et[3]/qr,x,"Dx=",c(lt*ur+et[4]),x,"Dy=",c(tt*qr+et[5])),mt.padding="0 "+c(qt)+"px "+c(vr)+"px 0",mt.filter=T+".Matrix("+pn.join("")+", SizingMethod=clip)"}else et&&(lt=lt*ur+et[4],tt=tt*qr+et[5]),mt.filter="",mt.left=c(lt)+"px",mt.top=c(tt)+"px";var fr=this._imageEl,gr=this._cropEl;fr||(fr=r.doc.createElement("div"),this._imageEl=fr);var dn=fr.style;if(lr){if(Ee&&Ce)dn.width=c(ur*Ee*ke/Ve)+"px",dn.height=c(qr*Ce*st/Ot)+"px";else{var Qt=new Image,sr=this;Qt.onload=function(){Qt.onload=null,Ee=Qt.width,Ce=Qt.height,dn.width=c(ur*Ee*ke/Ve)+"px",dn.height=c(qr*Ce*st/Ot)+"px",sr._imageWidth=Ee,sr._imageHeight=Ce,sr._imageSrc=ye},Qt.src=ye}gr||(gr=r.doc.createElement("div"),gr.style.overflow="hidden",this._cropEl=gr);var Qr=gr.style;Qr.width=c((ke+Ut*ke/Ve)*ur),Qr.height=c((st+ir*st/Ot)*qr),Qr.filter=T+".Matrix(Dx="+-Ut*ke/Ve*ur+",Dy="+-ir*st/Ot*qr+")",gr.parentNode||Sr.appendChild(gr),fr.parentNode!==gr&&gr.appendChild(fr)}else dn.width=c(ur*ke)+"px",dn.height=c(qr*st)+"px",Sr.appendChild(fr),gr&&gr.parentNode&&(Sr.removeChild(gr),this._cropEl=null);var Cn="",Fn=ce.opacity;Fn<1&&(Cn+=".Alpha(opacity="+c(Fn*100)+") "),Cn+=T+".AlphaImageLoader(src="+ye+", SizingMethod=scale)",dn.filter=Cn,Sr.style.zIndex=X(this.zlevel,this.z,this.z2),B(ne,Sr),ce.text!=null&&this.drawRectText(ne,this.getBoundingRect())},n.prototype.onRemove=function(ne){P(ne,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(ne)},n.prototype.onAdd=function(ne){B(ne,this._vmlEl),this.appendRectText(ne)};var se="normal",re={},Ae=0,Te=100,Re=document.createElement("div"),Ge=function(ce){var ye=re[ce];if(!ye){Ae>Te&&(Ae=0,re={});var Ee=Re.style,Ce;try{Ee.font=ce,Ce=Ee.fontFamily.split(",")[0]}catch(ue){}ye={style:Ee.fontStyle||se,variant:Ee.fontVariant||se,weight:Ee.fontWeight||se,size:parseFloat(Ee.fontSize||12)|0,family:Ce||"Microsoft YaHei"},re[ce]=ye,Ae++}return ye},Ue;f.$override("measureText",function(ne,ce){var ye=r.doc;Ue||(Ue=ye.createElement("div"),Ue.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",r.doc.body.appendChild(Ue));try{Ue.style.font=ce}catch(Ee){}return Ue.innerHTML="",Ue.appendChild(ye.createTextNode(ne)),{width:Ue.offsetWidth}});for(var nt=new v,Le=function(ce,ye,Ee,Ce){var ue=this.style;this.__dirty&&d.normalizeTextStyle(ue,!0);var ge=ue.text;if(ge!=null&&(ge+=""),!ge)return;if(ue.rich){var Oe=f.parseRichText(ge,ue);ge=[];for(var Je=0;Je<Oe.lines.length;Je++){for(var lt=Oe.lines[Je].tokens,tt=[],ke=0;ke<lt.length;ke++)tt.push(lt[ke].text);ge.push(tt.join(""))}ge=ge.join(`
`)}var st,Ve,Ot=ue.textAlign,Ut=ue.textVerticalAlign,ir=Ge(ue.font),lr=ir.style+" "+ir.variant+" "+ir.weight+" "+ir.size+'px "'+ir.family+'"';Ee=Ee||f.getBoundingRect(ge,lr,Ot,Ut,ue.textPadding,ue.textLineHeight);var Sr=this.transform;if(Sr&&!Ce&&(nt.copy(ye),nt.applyTransform(Sr),ye=nt),Ce)st=ye.x,Ve=ye.y;else{var mt=ue.textPosition;if(mt instanceof Array)st=ye.x+M(mt[0],ye.width),Ve=ye.y+M(mt[1],ye.height),Ot=Ot||"left";else{var or=this.calculateTextPosition?this.calculateTextPosition({},ue,ye):f.calculateTextPosition({},ue,ye);st=or.x,Ve=or.y,Ot=Ot||or.textAlign,Ut=Ut||or.textVerticalAlign}}st=f.adjustTextX(st,Ee.width,Ot),Ve=f.adjustTextY(Ve,Ee.height,Ut),Ve+=Ee.height/2;var et=r.createNode,ur=this._textVmlEl,qr,Fe,$t;ur?($t=ur.firstChild,qr=$t.nextSibling,Fe=qr.nextSibling):(ur=et("line"),qr=et("path"),Fe=et("textpath"),$t=et("skew"),Fe.style["v-text-align"]="left",O(ur),qr.textpathok=!0,Fe.on=!0,ur.from="0 0",ur.to="1000 0.05",B(ur,$t),B(ur,qr),B(ur,Fe),this._textVmlEl=ur);var Lr=[st,Ve],pt=ur.style;Sr&&Ce?(S(Lr,Lr,Sr),$t.on=!0,$t.matrix=Sr[0].toFixed(3)+x+Sr[2].toFixed(3)+x+Sr[1].toFixed(3)+x+Sr[3].toFixed(3)+",0,0",$t.offset=(c(Lr[0])||0)+","+(c(Lr[1])||0),$t.origin="0 0",pt.left="0px",pt.top="0px"):($t.on=!1,pt.left=c(st)+"px",pt.top=c(Ve)+"px"),Fe.string=F(ge);try{Fe.style.font=lr}catch(qt){}Q(ur,"fill",{fill:ue.textFill,opacity:ue.opacity},this),Q(ur,"stroke",{stroke:ue.textStroke,opacity:ue.opacity,lineDash:ue.lineDash||null},this),ur.style.zIndex=X(this.zlevel,this.z,this.z2),B(ce,ur)},le=function(ce){P(ce,this._textVmlEl),this._textVmlEl=null},Xe=function(ce){B(ce,this._textVmlEl)},pe=[u,o,n,a,t],Z=0;Z<pe.length;Z++){var Y=pe[Z].prototype;Y.drawRectText=Le,Y.removeRectText=le,Y.appendRectText=Xe}t.prototype.brushVML=function(ne){var ce=this.style;ce.text!=null?this.drawRectText(ne,{x:ce.x||0,y:ce.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(ne)},t.prototype.onRemove=function(ne){this.removeRectText(ne)},t.prototype.onAdd=function(ne){this.appendRectText(ne)}}},qJCg:function(k,D,i){var y=i("BlVb"),p=i("mFDi"),S=i("IwbS"),v=S.linePolygonIntersect,m={lineX:f(0),lineY:f(1),rect:{point:function(o,n,t){return o&&t.boundingRect.contain(o[0],o[1])},rect:function(o,n,t){return o&&t.boundingRect.intersect(o)}},polygon:{point:function(o,n,t){return o&&t.boundingRect.contain(o[0],o[1])&&y.contain(t.range,o[0],o[1])},rect:function(o,n,t){var a=t.range;if(!o||a.length<=1)return!1;var e=o.x,l=o.y,r=o.width,s=o.height,c=a[0];if(y.contain(a,e,l)||y.contain(a,e+r,l)||y.contain(a,e,l+s)||y.contain(a,e+r,l+s)||p.create(o).contain(c[0],c[1])||v(e,l,e+r,l,a)||v(e,l,e,l+s,a)||v(e+r,l,e+r,l+s,a)||v(e,l+s,e+r,l+s,a))return!0}}};function f(o){var n=["x","y"],t=["width","height"];return{point:function(a,e,l){if(a){var r=l.range,s=a[o];return d(s,r)}},rect:function(a,e,l){if(a){var r=l.range,s=[a[n[o]],a[n[o]]+a[t[o]]];return s[1]<s[0]&&s.reverse(),d(s[0],r)||d(s[1],r)||d(r[0],s)||d(r[1],s)}}}}function d(o,n){return n[0]<=o&&o<=n[1]}var u=m;k.exports=u},qM6L:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.WordArray,m=p.enc,f=m.Utf16=m.Utf16BE={stringify:function(o){for(var n=o.words,t=o.sigBytes,a=[],e=0;e<t;e+=2){var l=n[e>>>2]>>>16-e%4*8&65535;a.push(String.fromCharCode(l))}return a.join("")},parse:function(o){for(var n=o.length,t=[],a=0;a<n;a++)t[a>>>1]|=o.charCodeAt(a)<<16-a%2*16;return v.create(t,n*2)}};m.Utf16LE={stringify:function(o){for(var n=o.words,t=o.sigBytes,a=[],e=0;e<t;e+=2){var l=d(n[e>>>2]>>>16-e%4*8&65535);a.push(String.fromCharCode(l))}return a.join("")},parse:function(o){for(var n=o.length,t=[],a=0;a<n;a++)t[a>>>1]|=d(o.charCodeAt(a)<<16-a%2*16);return v.create(t,n*2)}};function d(u){return u<<8&4278255360|u>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(k,D,i){var y=i("JEkh"),p=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}}}});k.exports=p},qOx5:function(k,D,i){"use strict";i.d(D,"a",function(){return f});var y=i("Kwbf");function p(d,u){var o=new Set;return d.forEach(function(n){u.has(n)||o.add(n)}),o}function S(d){var u=d||{},o=u.disabled,n=u.disableCheckbox,t=u.checkable;return!!(o||n)||t===!1}function v(d,u,o,n){for(var t=new Set(d),a=new Set,e=0;e<=o;e+=1){var l=u.get(e)||new Set;l.forEach(function(h){var g=h.key,A=h.node,b=h.children,w=b===void 0?[]:b;t.has(g)&&!n(A)&&w.filter(function(x){return!n(x.node)}).forEach(function(x){t.add(x.key)})})}for(var r=new Set,s=o;s>=0;s-=1){var c=u.get(s)||new Set;c.forEach(function(h){var g=h.parent,A=h.node;if(n(A)||!h.parent||r.has(h.parent.key))return;if(n(h.parent.node)){r.add(g.key);return}var b=!0,w=!1;(g.children||[]).filter(function(x){return!n(x.node)}).forEach(function(x){var T=x.key,_=t.has(T);b&&!_&&(b=!1),!w&&(_||a.has(T))&&(w=!0)}),b&&t.add(g.key),w&&a.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(p(a,t))}}function m(d,u,o,n,t){for(var a=new Set(d),e=new Set(u),l=0;l<=n;l+=1){var r=o.get(l)||new Set;r.forEach(function(g){var A=g.key,b=g.node,w=g.children,x=w===void 0?[]:w;!a.has(A)&&!e.has(A)&&!t(b)&&x.filter(function(T){return!t(T.node)}).forEach(function(T){a.delete(T.key)})})}e=new Set;for(var s=new Set,c=n;c>=0;c-=1){var h=o.get(c)||new Set;h.forEach(function(g){var A=g.parent,b=g.node;if(t(b)||!g.parent||s.has(g.parent.key))return;if(t(g.parent.node)){s.add(A.key);return}var w=!0,x=!1;(A.children||[]).filter(function(T){return!t(T.node)}).forEach(function(T){var _=T.key,E=a.has(_);w&&!E&&(w=!1),!x&&(E||e.has(_))&&(x=!0)}),w||a.delete(A.key),x&&e.add(A.key),s.add(A.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(p(e,a))}}function f(d,u,o,n){var t=[],a;n?a=n:a=S;var e=new Set(d.filter(function(c){var h=!!o[c];return h||t.push(c),h})),l=new Map,r=0;Object.keys(o).forEach(function(c){var h=o[c],g=h.level,A=l.get(g);A||(A=new Set,l.set(g,A)),A.add(h),r=Math.max(r,g)}),Object(y.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var s;return u===!0?s=v(e,l,r,a):s=m(e,u.halfCheckedKeys,l,r,a),s}},qPY4:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("u4NN"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},qWUW:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("DL4k")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretDownOutlined";var n=v.forwardRef(o);D.default=n},qWt2:function(k,D,i){var y=i("ProS"),p=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}}});k.exports=p},qZFw:function(k,D,i){var y=i("bYtY"),p=i("6GrX"),S=i("hM6l"),v=i("4NO4"),m=v.makeInner,f=m();function d(o,n){n=n||[0,360],S.call(this,"angle",o,n),this.type="category"}d.prototype={constructor:d,pointToData:function(o,n){return this.polar.pointToData(o,n)[this.dim==="radius"?0:1]},dataToAngle:S.prototype.dataToCoord,angleToData:S.prototype.coordToData,calculateCategoryInterval:function(){var o=this,n=o.getLabelModel(),t=o.scale,a=t.getExtent(),e=t.count();if(a[1]-a[0]<1)return 0;var l=a[0],r=o.dataToCoord(l+1)-o.dataToCoord(l),s=Math.abs(r),c=p.getBoundingRect(l,n.getFont(),"center","top"),h=Math.max(c.height,7),g=h/s;isNaN(g)&&(g=Infinity);var A=Math.max(0,Math.floor(g)),b=f(o.model),w=b.lastAutoInterval,x=b.lastTickCount;return w!=null&&x!=null&&Math.abs(w-A)<=1&&Math.abs(x-e)<=1&&w>A?A=w:(b.lastTickCount=e,b.lastAutoInterval=A),A}},y.inherits(d,S);var u=d;k.exports=u},qZTm:function(k,D,i){var y=i("fR/l"),p=i("MvSz"),S=i("7GkX");function v(m){return y(m,S,p)}k.exports=v},qgGe:function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("Bsck"),v=i("VaxA"),m=v.wrapTreePathInfo,f=p.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(u,o){var n={name:u.name,children:u.data};d(n);var t=u.levels||[],a={};return a.levels=t,S.createTree(n,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(u){var o=p.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(u);return o.treePathInfo=m(n,this),o},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 o=this.getRawData().tree.root;(!u||u!==o&&!o.contains(u))&&(this._viewRoot=o)}});function d(u){var o=0;y.each(u.children,function(t){d(t);var a=t.value;y.isArray(a)&&(a=a[0]),o+=a});var n=u.value;y.isArray(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=o),n<0&&(n=0),y.isArray(u.value)?u.value[0]=n:u.value=n}k.exports=f},qj72:function(k,D,i){var y=i("bYtY");function p(v,m){return m=m||[0,0],y.map(["x","y"],function(f,d){var u=this.getAxis(f),o=m[d],n=v[d]/2;return u.type==="category"?u.getBandWidth():Math.abs(u.dataToCoord(o-n)-u.dataToCoord(o+n))},this)}function S(v){var m=v.grid.getRect();return{coordSys:{type:"cartesian2d",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return v.dataToPoint(f)},size:y.bind(p,v)}}}k.exports=S},"qt/9":function(k,D,i){var y=i("ProS"),p=i("bYtY");i("Wqna"),i("1tlw"),i("Mylv");var S=i("nVfU"),v=S.layout,m=i("f5Yq");i("Ae16"),y.registerLayout(p.curry(v,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("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 p=y.lib.BlockCipherMode.extend();function S(f){if((f>>24&255)===255){var d=f>>16&255,u=f>>8&255,o=f&255;d===255?(d=0,u===255?(u=0,o===255?o=0:++o):++u):++d,f=0,f+=d<<16,f+=u<<8,f+=o}else f+=1<<24;return f}function v(f){return(f[0]=S(f[0]))===0&&(f[1]=S(f[1])),f}var m=p.Encryptor=p.extend({processBlock:function(d,u){var o=this._cipher,n=o.blockSize,t=this._iv,a=this._counter;t&&(a=this._counter=t.slice(0),this._iv=void 0),v(a);var e=a.slice(0);o.encryptBlock(e,0);for(var l=0;l<n;l++)d[u+l]^=e[l]}});return p.Decryptor=m,p}(),y.mode.CTRGladman})},qwVE:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("K4ya"),v=i("XxSj"),m=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var o=[];return u.eachComponent("visualMap",function(n){var t=d.pipelineContext;if(!n.isTargetSeries(d)||t&&t.large)return;o.push(S.incrementalApplyVisual(n.stateList,n.targetVisuals,p.bind(n.getValueState,n),n.getDataDimension(d.getData())))}),o}}),y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var o=d.getData(),n=[];u.eachComponent("visualMap",function(t){if(t.isTargetSeries(d)){var a=t.getVisualMeta(p.bind(f,null,d,t))||{stops:[],outerColors:[]},e=t.getDataDimension(o),l=o.getDimensionInfo(e);l!=null&&(a.dimension=l.index,n.push(a))}}),d.getData().setVisual("visualMeta",n)}});function f(d,u,o,n){for(var t=u.targetVisuals[n],a=v.prepareVisualTypes(t),e={color:d.getData().getVisual("color")},l=0,r=a.length;l<r;l++){var s=a[l],c=t[s==="opacity"?"__alphaForOpacity":s];c&&c.applyVisual(o,h,g)}return e.color;function h(A){return e[A]}function g(A,b){e[A]=b}}},"r+aA":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("s2MQ")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="EyeInvisibleOutlined";var n=v.forwardRef(o);D.default=n},"r/2G":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("+Zaj"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},r1uz:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.BlockCipher,m=p.algo,f=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],u=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],o={pbox:[],sbox:[]};function n(r,s){var c=s>>24&255,h=s>>16&255,g=s>>8&255,A=s&255,b=r.sbox[0][c]+r.sbox[1][h];return b=b^r.sbox[2][g],b=b+r.sbox[3][A],b}function t(r,s,c){for(var h=s,g=c,A,b=0;b<f;++b)h=h^r.pbox[b],g=n(r,h)^g,A=h,h=g,g=A;return A=h,h=g,g=A,g=g^r.pbox[f],h=h^r.pbox[f+1],{left:h,right:g}}function a(r,s,c){for(var h=s,g=c,A,b=f+1;b>1;--b)h=h^r.pbox[b],g=n(r,h)^g,A=h,h=g,g=A;return A=h,h=g,g=A,g=g^r.pbox[1],h=h^r.pbox[0],{left:h,right:g}}function e(r,s,c){for(var h=0;h<4;h++){r.sbox[h]=[];for(var g=0;g<256;g++)r.sbox[h][g]=u[h][g]}for(var A=0,b=0;b<f+2;b++)r.pbox[b]=d[b]^s[A],A++,A>=c&&(A=0);for(var w=0,x=0,T=0,_=0;_<f+2;_+=2)T=t(r,w,x),w=T.left,x=T.right,r.pbox[_]=w,r.pbox[_+1]=x;for(var E=0;E<4;E++)for(var C=0;C<256;C+=2)T=t(r,w,x),w=T.left,x=T.right,r.sbox[E][C]=w,r.sbox[E][C+1]=x;return!0}var l=m.Blowfish=v.extend({_doReset:function(){if(this._keyPriorReset===this._key)return;var s=this._keyPriorReset=this._key,c=s.words,h=s.sigBytes/4;e(o,c,h)},encryptBlock:function(s,c){var h=t(o,s[c],s[c+1]);s[c]=h.left,s[c+1]=h.right},decryptBlock:function(s,c){var h=a(o,s[c],s[c+1]);s[c]=h.left,s[c+1]=h.right},blockSize:64/32,keySize:128/32,ivSize:64/32});p.Blowfish=v._createHelper(l)}(),y.Blowfish})},r6Bn:function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=i("4fz+"),v=i("BPZU");function m(u,o){return u.zlevel===o.zlevel?u.z===o.z?u.z2-o.z2:u.z-o.z:u.zlevel-o.zlevel}var f=function(){this._roots=[],this._displayList=[],this._displayListLen=0};f.prototype={constructor:f,traverse:function(o,n){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(o,n)},getDisplayList:function(o,n){return n=n||!1,o&&this.updateDisplayList(n),this._displayList},updateDisplayList:function(o){this._displayListLen=0;for(var n=this._roots,t=this._displayList,a=0,e=n.length;a<e;a++)this._updateAndAddDisplayable(n[a],null,o);t.length=this._displayListLen,p.canvasSupported&&v(t,m)},_updateAndAddDisplayable:function(o,n,t){if(o.ignore&&!t)return;o.beforeUpdate(),o.__dirty&&o.update(),o.afterUpdate();var a=o.clipPath;if(a){n?n=n.slice():n=[];for(var e=a,l=o;e;)e.parent=l,e.updateTransform(),n.push(e),l=e,e=e.clipPath}if(o.isGroup){for(var r=o._children,s=0;s<r.length;s++){var c=r[s];o.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,n,t)}o.__dirty=!1}else o.__clipPaths=n,this._displayList[this._displayListLen++]=o},addRoot:function(o){if(o.__storage===this)return;o instanceof S&&o.addChildrenToStorage(this),this.addToStorage(o),this._roots.push(o)},delRoot:function(o){if(o==null){for(var n=0;n<this._roots.length;n++){var t=this._roots[n];t instanceof S&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(o instanceof Array){for(var n=0,a=o.length;n<a;n++)this.delRoot(o[n]);return}var e=y.indexOf(this._roots,o);e>=0&&(this.delFromStorage(o),this._roots.splice(e,1),o instanceof S&&o.delChildrenFromStorage(this))},addToStorage:function(o){return o&&(o.__storage=this,o.dirty(!1)),this},delFromStorage:function(o){return o&&(o.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:m};var d=f;k.exports=d},rA99:function(k,D,i){var y=i("y+Vt"),p=i("QBsz"),S=i("Sj9i"),v=S.quadraticSubdivide,m=S.cubicSubdivide,f=S.quadraticAt,d=S.cubicAt,u=S.quadraticDerivativeAt,o=S.cubicDerivativeAt,n=[];function t(e,l,r){var s=e.cpx2,c=e.cpy2;return s===null||c===null?[(r?o:d)(e.x1,e.cpx1,e.cpx2,e.x2,l),(r?o:d)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(r?u:f)(e.x1,e.cpx1,e.x2,l),(r?u:f)(e.y1,e.cpy1,e.y2,l)]}var a=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,r){var s=r.x1,c=r.y1,h=r.x2,g=r.y2,A=r.cpx1,b=r.cpy1,w=r.cpx2,x=r.cpy2,T=r.percent;if(T===0)return;l.moveTo(s,c),w==null||x==null?(T<1&&(v(s,A,h,T,n),A=n[1],h=n[2],v(c,b,g,T,n),b=n[1],g=n[2]),l.quadraticCurveTo(A,b,h,g)):(T<1&&(m(s,A,w,h,T,n),A=n[1],w=n[2],h=n[3],m(c,b,x,g,T,n),b=n[1],x=n[2],g=n[3]),l.bezierCurveTo(A,b,w,x,h,g))},pointAt:function(l){return t(this.shape,l,!1)},tangentAt:function(l){var r=t(this.shape,l,!0);return p.normalize(r,r)}});k.exports=a},"rAM+":function(k,D,i){"use strict";i.d(D,"a",function(){return p});var y=i("Qw5x");function p(S,v){var m;if(typeof Symbol=="undefined"||S[Symbol.iterator]==null){if(Array.isArray(S)||(m=Object(y.a)(S))||v&&S&&typeof S.length=="number"){m&&(S=m);var f=0,d=function(){};return{s:d,n:function(){return f>=S.length?{done:!0}:{done:!1,value:S[f++]}},e:function(a){throw a},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,o=!1,n;return{s:function(){m=S[Symbol.iterator]()},n:function(){var a=m.next();return u=a.done,a},e:function(a){o=!0,n=a},f:function(){try{!u&&m.return!=null&&m.return()}finally{if(o)throw n}}}}},rEGp:function(k,D){function i(y){var p=-1,S=Array(y.size);return y.forEach(function(v){S[++p]=v}),S}k.exports=i},rHrb:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=S(i("q1tI")),p=S(i("+QRC"));function S(g){return g&&g.__esModule?g:{default:g}}function v(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(b){return typeof b}:v=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},v(g)}function m(g,A){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(g);A&&(w=w.filter(function(x){return Object.getOwnPropertyDescriptor(g,x).enumerable})),b.push.apply(b,w)}return b}function f(g){for(var A=1;A<arguments.length;A++){var b=arguments[A]!=null?arguments[A]:{};A%2?m(b,!0).forEach(function(w){c(g,w,b[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):m(b).forEach(function(w){Object.defineProperty(g,w,Object.getOwnPropertyDescriptor(b,w))})}return g}function d(g,A){if(g==null)return{};var b=u(g,A),w,x;if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(g);for(x=0;x<T.length;x++){if(w=T[x],A.indexOf(w)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,w))continue;b[w]=g[w]}}return b}function u(g,A){if(g==null)return{};var b={},w=Object.keys(g),x,T;for(T=0;T<w.length;T++){if(x=w[T],A.indexOf(x)>=0)continue;b[x]=g[x]}return b}function o(g,A){if(!(g instanceof A))throw new TypeError("Cannot call a class as a function")}function n(g,A){for(var b=0;b<A.length;b++){var w=A[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function t(g,A,b){return A&&n(g.prototype,A),b&&n(g,b),g}function a(g,A){return A&&(v(A)==="object"||typeof A=="function")?A: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 r(g,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(A&&A.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),A&&s(g,A)}function s(g,A){return s=Object.setPrototypeOf||function(w,x){return w.__proto__=x,w},s(g,A)}function c(g,A,b){return A in g?Object.defineProperty(g,A,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[A]=b,g}var h=function(g){r(A,g);function A(){var b,w;o(this,A);for(var x=arguments.length,T=new Array(x),_=0;_<x;_++)T[_]=arguments[_];return w=a(this,(b=e(A)).call.apply(b,[this].concat(T))),c(l(w),"onClick",function(E){var C=w.props,I=C.text,O=C.onCopy,F=C.children,R=C.options,B=y.default.Children.only(F),P=(0,p.default)(I,R);O&&O(I,P),B&&B.props&&typeof B.props.onClick=="function"&&B.props.onClick(E)}),w}return t(A,[{key:"render",value:function(){var w=this.props,x=w.text,T=w.onCopy,_=w.options,E=w.children,C=d(w,["text","onCopy","options","children"]),I=y.default.Children.only(E);return y.default.cloneElement(I,f({},C,{onClick:this.onClick}))}}]),A}(y.default.PureComponent);D.CopyToClipboard=h,c(h,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ReloadOutlined";var d=D.a=p.forwardRef(f)},rcnY:function(k,D,i){var y=i("aRTE");function p(S,v){this.totalCount=S,this.dataCount=v}p.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],p.getRSBlocks=function(S,v){var m=p.getRsBlockTable(S,v);if(m==null)throw new Error("bad rs block @ typeNumber:"+S+"/errorCorrectLevel:"+v);for(var f=m.length/3,d=new Array,u=0;u<f;u++)for(var o=m[u*3+0],n=m[u*3+1],t=m[u*3+2],a=0;a<o;a++)d.push(new p(n,t));return d},p.getRsBlockTable=function(S,v){switch(v){case y.L:return p.RS_BLOCK_TABLE[(S-1)*4+0];case y.M:return p.RS_BLOCK_TABLE[(S-1)*4+1];case y.Q:return p.RS_BLOCK_TABLE[(S-1)*4+2];case y.H:return p.RS_BLOCK_TABLE[(S-1)*4+3];default:return}},k.exports=p},rdUC:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"localStorage",read:v,write:m,each:f,remove:d,clearAll:u};function S(){return p.localStorage}function v(o){return S().getItem(o)}function m(o,n){return S().setItem(o,n)}function f(o){for(var n=S().length-1;n>=0;n--){var t=S().key(n);o(v(t),t)}}function d(o){return S().removeItem(o)}function u(){return S().clear()}},rdor:function(k,D,i){var y=i("lOQZ"),p=y.circularLayout;function S(v){v.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&p(m,"symbolSize")})}k.exports=S},rfSb:function(k,D,i){var y=i("T4UG"),p=i("sdST"),S=i("L0Ub"),v=S.getDimensionTypeByAxis,m=i("YXkt"),f=i("bYtY"),d=i("4NO4"),u=d.groupData,o=i("7aKB"),n=o.encodeHTML,t=i("xKMd"),a=2,e=y.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new t(f.bind(this.getData,this),f.bind(this.getRawData,this))},fixData:function(r){var s=r.length,c=u(r,function(B){return B[2]}),h=[];c.buckets.each(function(B,P){h.push({name:P,dataList:B})});for(var g=h.length,A=-1,b=-1,w=0;w<g;++w){var x=h[w].dataList.length;x>A&&(A=x,b=w)}for(var T=0;T<g;++T){if(T===b)continue;for(var _=h[T].name,E=0;E<A;++E){for(var C=h[b].dataList[E][0],I=h[T].dataList.length,O=-1,F=0;F<I;++F){var R=h[T].dataList[F][0];if(R===C){O=F;break}}O===-1&&(r[s]=[],r[s][0]=C,r[s][1]=0,r[s][2]=_,s++)}}return r},getInitialData:function(r,s){for(var c=s.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],h=c.get("type"),g=f.filter(r.data,function(C){return C[2]!==void 0}),A=this.fixData(g||[]),b=[],w=this.nameMap=f.createHashMap(),x=0,T=0;T<A.length;++T)b.push(A[T][a]),w.get(A[T][a])||(w.set(A[T][a],x),x++);var _=p(A,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:v(h)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),E=new m(_,this);return E.initData(A),E},getLayerSeries:function(){for(var r=this.getData(),s=r.count(),c=[],h=0;h<s;++h)c[h]=h;var g=r.mapDimension("single"),A=u(c,function(w){return r.get("name",w)}),b=[];return A.buckets.each(function(w,x){w.sort(function(T,_){return r.get(g,T)-r.get(g,_)}),b.push({name:x,indices:w})}),b},getAxisTooltipData:function(r,s,c){f.isArray(r)||(r=r?[r]:[]);for(var h=this.getData(),g=this.getLayerSeries(),A=[],b=g.length,w,x=0;x<b;++x){for(var T=Number.MAX_VALUE,_=-1,E=g[x].indices.length,C=0;C<E;++C){var I=h.get(r[0],g[x].indices[C]),O=Math.abs(I-s);O<=T&&(w=I,T=O,_=g[x].indices[C])}A.push(_)}return{dataIndices:A,nestestValue:w}},formatTooltip:function(r){var s=this.getData(),c=s.getName(r),h=s.get(s.mapDimension("value"),r);return(isNaN(h)||h==null)&&(h="-"),n(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;k.exports=l},rkZ5:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),v=i("c8qY"),m=i("D9ME"),f=i("fls0"),d=i("RSch"),u=i("akwb"),o=i("o40c"),n=i("ZYIC"),t=i("sK/D"),a=t.createClipPath,e=S.extendChartView({type:"lines",init:function(){},render:function(l,r,s){var c=l.getData(),h=this._updateLineDraw(c,l),g=l.get("zlevel"),A=l.get("effect.trailLength"),b=s.getZr(),w=b.painter.getType()==="svg";w||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!w&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&A&&(w||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(A/10+.9,1),0)})),h.updateData(c);var x=l.get("clip",!0)&&a(l.coordinateSystem,!1,l);x?this.group.setClipPath(x):this.group.removeClipPath(),this._lastZlevel=g,this._finished=!0},incrementalPrepareRender:function(l,r,s){var c=l.getData(),h=this._updateLineDraw(c,l);h.incrementalPrepareUpdate(c),this._clearLayer(s),this._finished=!1},incrementalRender:function(l,r,s){this._lineDraw.incrementalUpdate(l,r.getData()),this._finished=l.end===r.getData().count()},updateTransform:function(l,r,s){var c=l.getData(),h=l.pipelineContext;if(!this._finished||h.large||h.progressiveRender)return{update:!0};var g=n.reset(l);g.progress&&g.progress({start:0,end:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(s)},_updateLineDraw:function(l,r){var s=this._lineDraw,c=this._showEffect(r),h=!!r.get("polyline"),g=r.pipelineContext,A=g.large;return(!s||c!==this._hasEffet||h!==this._isPolyline||A!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=A?new o:new v(h?c?u:d:c?m:f),this._hasEffet=c,this._isPolyline=h,this._isLargeDraw=A,this.group.removeAll()),this.group.add(s.group),s},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var r=l.getZr(),s=r.painter.getType()==="svg";!s&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},dispose:function(){}});k.exports=e},rmlV:function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(v,m){var f=.5522848,d=m.cx,u=m.cy,o=m.rx,n=m.ry,t=o*f,a=n*f;v.moveTo(d-o,u),v.bezierCurveTo(d-o,u-a,d-t,u-n,d,u-n),v.bezierCurveTo(d+t,u-n,d+o,u-a,d+o,u),v.bezierCurveTo(d+o,u+a,d+t,u+n,d,u+n),v.bezierCurveTo(d-t,u+n,d-o,u+a,d-o,u),v.closePath()}});k.exports=p},rnVJ:function(k,D,i){var y=i("bYtY"),p=["rect","polygon","keep","clear"];function S(m,f){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 o=m&&m.toolbox;y.isArray(o)&&(o=o[0]),o||(o={feature:{}},m.toolbox=[o]);var n=o.feature||(o.feature={}),t=n.brush||(n.brush={}),a=t.type||(t.type=[]);a.push.apply(a,u),v(a),f&&!a.length&&a.push.apply(a,p)}function v(m){var f={};y.each(m,function(d){f[d]=1}),m.length=0,y.each(f,function(d,u){m.push(u)})}k.exports=S},rwxt:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("GdRQ");function p(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function S(d,u){for(var o=0;o<u.length;o++){var n=u[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(d,n.key,n)}}function v(d,u,o){return u&&S(d.prototype,u),o&&S(d,o),d}var m=!y.supportsCursorURIs||y.isTouchDevice,f=function(){function d(){p(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 v(d,[{key:"attach",value:function(o){if(this._target&&this.detach(),this._target=o,m){document.body.appendChild(this._canvas);var n={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,n),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,n),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,n),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,n)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(m){var o={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,o),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,o),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,o),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,o),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(o,n,t,a,e){if(a===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-n,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=n,this._hotSpot.y=t;var l=this._canvas.getContext("2d");this._canvas.width=a,this._canvas.height=e;var r;try{r=new ImageData(new Uint8ClampedArray(o),a,e)}catch(c){r=l.createImageData(a,e),r.data.set(new Uint8ClampedArray(o))}if(l.clearRect(0,0,a,e),l.putImageData(r,0,0),m)this._updatePosition();else{var s=this._canvas.toDataURL();this._target.style.cursor="url("+s+")"+n+" "+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(o,n){if(!m)return;window.visualViewport?(this._position.x=o+window.visualViewport.offsetLeft,this._position.y=n+window.visualViewport.offsetTop):(this._position.x=o,this._position.y=n),this._updatePosition();var t=document.elementFromPoint(o,n);this._updateVisibility(t)}},{key:"_handleMouseOver",value:function(o){this._handleMouseMove(o)}},{key:"_handleMouseLeave",value:function(o){this._updateVisibility(o.relatedTarget)}},{key:"_handleMouseMove",value:function(o){this._updateVisibility(o.target),this._position.x=o.clientX-this._hotSpot.x,this._position.y=o.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(o){var n=this,t=document.elementFromPoint(o.clientX,o.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!n._target)return;t=document.elementFromPoint(o.clientX,o.clientY),n._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(o){return o?o===this._target?!0:this._target.contains(o)?!(window.getComputedStyle(o).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(o){this._captureIsActive()&&(o=document.captureElement),this._shouldShowCursor(o)?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}();D.default=f},rySg:function(k,D,i){i("SMc4"),i("8nMs")},s2MQ:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},s2lz:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),v=i("gPAo"),m=i("VaxA"),f=i("9hCq"),d=i("SgGq"),u=i("mFDi"),o=i("Fofx"),n=i("5s0K"),t=i("KCsZ"),a=i("7aKB"),e=a.windowOpen,l=p.bind,r=S.Group,s=S.Rect,c=p.each,h=3,g=["label"],A=["emphasis","label"],b=["upperLabel"],w=["emphasis","upperLabel"],x=10,T=1,_=2,E=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C=function(B){var P=E(B);return P.stroke=P.fill=P.lineWidth=null,P},I=y.extendChartView({type:"treemap",init:function(B,P){this._containerGroup,this._storage=O(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(B,P,X,M){var z=P.findComponents({mainType:"series",subType:"treemap",query:M});if(p.indexOf(z,B)<0)return;this.seriesModel=B,this.api=X,this.ecModel=P;var W=["treemapZoomToNode","treemapRootToNode"],H=m.retrieveTargetInfo(M,W,B),V=M&&M.type,Q=B.layoutInfo,G=!this._oldTree,ee=this._storage,q=V==="treemapRootToNode"&&H&&ee?{rootNodeGroup:ee.nodeGroup[H.node.getRawIndex()],direction:M.direction}:null,se=this._giveContainerGroup(Q),re=this._doRender(se,B,q);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(se,re,B,q):re.renderFinally(),this._resetController(X),this._renderBreadcrumb(B,X,H)},_giveContainerGroup:function(B){var P=this._containerGroup;return P||(P=this._containerGroup=new r,this._initEvents(P),this.group.add(P)),P.attr("position",[B.x,B.y]),P},_doRender:function(B,P,X){var M=P.getData().tree,z=this._oldTree,W=O(),H=O(),V=this._storage,Q=[],G=p.curry(F,P,H,V,X,W,Q);q(M.root?[M.root]:[],z&&z.root?[z.root]:[],B,M===z||!z,0);var ee=se(V);return this._oldTree=M,this._storage=H,{lastsForAnimation:W,willDeleteEls:ee,renderFinally:re};function q(Ae,Te,Re,Ge,Ue){Ge?(Te=Ae,c(Ae,function(le,Xe){!le.isRemoved()&&Le(Xe,Xe)})):new v(Te,Ae,nt,nt).add(Le).update(Le).remove(p.curry(Le,null)).execute();function nt(le){return le.getId()}function Le(le,Xe){var pe=le!=null?Ae[le]:null,Z=Xe!=null?Te[Xe]:null,Y=G(pe,Z,Re,Ue);Y&&q(pe&&pe.viewChildren||[],Z&&Z.viewChildren||[],Y,Ge,Ue+1)}}function se(Ae){var Te=O();return Ae&&c(Ae,function(Re,Ge){var Ue=Te[Ge];c(Re,function(nt){nt&&(Ue.push(nt),nt.__tmWillDelete=1)})}),Te}function re(){c(ee,function(Ae){c(Ae,function(Te){Te.parent&&Te.parent.remove(Te)})}),c(Q,function(Ae){Ae.invisible=!0,Ae.dirty()})}},_doAnimation:function(B,P,X,M){if(!X.get("animation"))return;var z=X.get("animationDurationUpdate"),W=X.get("animationEasing"),H=n.createWrap();c(P.willDeleteEls,function(V,Q){c(V,function(G,ee){if(G.invisible)return;var q=G.parent,se;if(M&&M.direction==="drillDown")se=q===M.rootNodeGroup?{shape:{x:0,y:0,width:q.__tmNodeWidth,height:q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var re=0,Ae=0;q.__tmWillDelete||(re=q.__tmNodeWidth/2,Ae=q.__tmNodeHeight/2),se=Q==="nodeGroup"?{position:[re,Ae],style:{opacity:0}}:{shape:{x:re,y:Ae,width:0,height:0},style:{opacity:0}}}se&&H.add(G,se,z,W)})}),c(this._storage,function(V,Q){c(V,function(G,ee){var q=P.lastsForAnimation[Q][ee],se={};if(!q)return;Q==="nodeGroup"?q.old&&(se.position=G.position.slice(),G.attr("position",q.old)):(q.old&&(se.shape=p.extend({},G.shape),G.setShape(q.old)),q.fadein?(G.setStyle("opacity",0),se.style={opacity:1}):G.style.opacity!==1&&(se.style={opacity:1})),H.add(G,se,z,W)})},this),this._state="animating",H.done(l(function(){this._state="ready",P.renderFinally()},this)).start()},_resetController:function(B){var P=this._controller;P||(P=this._controller=new d(B.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,B.getWidth(),B.getHeight());P.setPointerChecker(function(M,z,W){return X.contain(z,W)})},_clearController:function(){var B=this._controller;B&&(B.dispose(),B=null)},_onPan:function(B){if(this._state!=="animating"&&(Math.abs(B.dx)>h||Math.abs(B.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+B.dx,y:X.y+B.dy,width:X.width,height:X.height}})}},_onZoom:function(B){var P=B.originX,X=B.originY;if(this._state!=="animating"){var M=this.seriesModel.getData().tree.root;if(!M)return;var z=M.getLayout();if(!z)return;var W=new u(z.x,z.y,z.width,z.height),H=this.seriesModel.layoutInfo;P-=H.x,X-=H.y;var V=o.create();o.translate(V,V,[-P,-X]),o.scale(V,V,[B.scale,B.scale]),o.translate(V,V,[P,X]),W.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:W.x,y:W.y,width:W.width,height:W.height}})}},_initEvents:function(B){B.on("click",function(P){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var M=this.findTarget(P.offsetX,P.offsetY);if(!M)return;var z=M.node;if(z.getLayout().isLeafRoot)this._rootToNode(M);else if(X==="zoomToNode")this._zoomToNode(M);else if(X==="link"){var W=z.hostTree.data.getItemModel(z.dataIndex),H=W.get("link",!0),V=W.get("target",!0)||"blank";H&&e(H,V)}},this)},_renderBreadcrumb:function(B,P,X){X||(X=B.get("leafDepth",!0)!=null?{node:B.getViewRoot()}:this.findTarget(P.getWidth()/2,P.getHeight()/2),X||(X={node:B.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new f(this.group))).render(B,P,X.node,l(M,this));function M(z){this._state!=="animating"&&(m.aboveViewRoot(B.getViewRoot(),z)?this._rootToNode({node:z}):this._zoomToNode({node:z}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=O(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(B){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:B.node})},_rootToNode:function(B){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:B.node})},findTarget:function(B,P){var X,M=this.seriesModel.getViewRoot();return M.eachNode({attr:"viewChildren",order:"preorder"},function(z){var W=this._storage.background[z.getRawIndex()];if(W){var H=W.transformCoordToLocal(B,P),V=W.shape;if(V.x<=H[0]&&H[0]<=V.x+V.width&&V.y<=H[1]&&H[1]<=V.y+V.height)X={node:z,offsetX:H[0],offsetY:H[1]};else return!1}},this),X}});function O(){return{nodeGroup:[],background:[],content:[]}}function F(B,P,X,M,z,W,H,V,Q,G){if(!H)return;var ee=H.getLayout(),q=B.getData();if(q.setItemGraphicEl(H.dataIndex,null),!ee||!ee.isInView)return;var se=ee.width,re=ee.height,Ae=ee.borderWidth,Te=ee.invisible,Re=H.getRawIndex(),Ge=V&&V.getRawIndex(),Ue=H.viewChildren,nt=ee.upperHeight,Le=Ue&&Ue.length,le=H.getModel("itemStyle"),Xe=H.getModel("emphasis.itemStyle"),pe=ge("nodeGroup",r);if(!pe)return;if(Q.add(pe),pe.attr("position",[ee.x||0,ee.y||0]),pe.__tmNodeWidth=se,pe.__tmNodeHeight=re,ee.isAboveViewRoot)return pe;var Z=H.getModel(),Y=ge("background",s,G,T);if(Y&&ce(pe,Y,Le&&ee.upperLabelHeight),Le)S.isHighDownDispatcher(pe)&&S.setAsHighDownDispatcher(pe,!1),Y&&(S.setAsHighDownDispatcher(Y,!0),q.setItemGraphicEl(H.dataIndex,Y));else{var ne=ge("content",s,G,_);ne&&ye(pe,ne),Y&&S.isHighDownDispatcher(Y)&&S.setAsHighDownDispatcher(Y,!1),S.setAsHighDownDispatcher(pe,!0),q.setItemGraphicEl(H.dataIndex,pe)}return pe;function ce(lt,tt,ke){if(tt.dataIndex=H.dataIndex,tt.seriesIndex=B.seriesIndex,tt.setShape({x:0,y:0,width:se,height:re}),Te)Ee(tt);else{tt.invisible=!1;var st=H.getVisual("borderColor",!0),Ve=Xe.get("borderColor"),Ot=C(le);Ot.fill=st;var Ut=E(Xe);if(Ut.fill=Ve,ke){var ir=se-2*Ae;Ce(Ot,Ut,st,ir,nt,{x:Ae,y:0,width:ir,height:nt})}else Ot.text=Ut.text=null;tt.setStyle(Ot),S.setElementHoverStyle(tt,Ut)}lt.add(tt)}function ye(lt,tt){tt.dataIndex=H.dataIndex,tt.seriesIndex=B.seriesIndex;var ke=Math.max(se-2*Ae,0),st=Math.max(re-2*Ae,0);if(tt.culling=!0,tt.setShape({x:Ae,y:Ae,width:ke,height:st}),Te)Ee(tt);else{tt.invisible=!1;var Ve=H.getVisual("color",!0),Ot=C(le);Ot.fill=Ve;var Ut=E(Xe);Ce(Ot,Ut,Ve,ke,st),tt.setStyle(Ot),S.setElementHoverStyle(tt,Ut)}lt.add(tt)}function Ee(lt){!lt.invisible&&W.push(lt)}function Ce(lt,tt,ke,st,Ve,Ot){var Ut=Z.get("name"),ir=Z.getModel(Ot?b:g),lr=Z.getModel(Ot?w:A),Sr=ir.getShallow("show");S.setLabelStyle(lt,tt,ir,lr,{defaultText:Sr?Ut:null,autoColor:ke,isRectText:!0,labelFetcher:B,labelDataIndex:H.dataIndex,labelProp:Ot?"upperLabel":"label"}),ue(lt,Ot,ee),ue(tt,Ot,ee),Ot&&(lt.textRect=p.clone(Ot)),lt.truncate=Sr&&ir.get("ellipsis")?{outerWidth:st,outerHeight:Ve,minChar:2}:null}function ue(lt,tt,ke){var st=lt.text;if(!tt&&ke.isLeafRoot&&st!=null){var Ve=B.get("drillDownIcon",!0);lt.text=Ve?Ve+" "+st:st}}function ge(lt,tt,ke,st){var Ve=Ge!=null&&X[lt][Ge],Ot=z[lt];return Ve?(X[lt][Ge]=null,Oe(Ot,Ve,lt)):Te||(Ve=new tt({z:R(ke,st)}),Ve.__tmDepth=ke,Ve.__tmStorageName=lt,Je(Ot,Ve,lt)),P[lt][Re]=Ve}function Oe(lt,tt,ke){var st=lt[Re]={};st.old=ke==="nodeGroup"?tt.position.slice():p.extend({},tt.shape)}function Je(lt,tt,ke){var st=lt[Re]={},Ve=H.parentNode;if(Ve&&(!M||M.direction==="drillDown")){var Ot=0,Ut=0,ir=z.background[Ve.getRawIndex()];!M&&ir&&ir.old&&(Ot=ir.old.width,Ut=ir.old.height),st.old=ke==="nodeGroup"?[0,Ut]:{x:Ot,y:Ut,width:0,height:0}}st.fadein=ke!=="nodeGroup"}}function R(B,P){var X=B*x+P;return(X-1)/X}k.exports=I},sAZ8:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("+rIm"),v=i("/IIm"),m=i("9KIM"),f=i("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=y.extendComponentView({type:"parallelAxis",init:function(e,l){u.superApply(this,"init",arguments),(this._brushController=new v(l.getZr())).on("brush",p.bind(this._onBrush,this))},render:function(e,l,r,s){if(o(e,l,s))return;this.axisModel=e,this.api=r,this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new f.Group,this.group.add(this._axisGroup),!e.get("show"))return;var h=t(e,l),g=h.coordinateSystem,A=e.getAreaSelectStyle(),b=A.width,w=e.axis.dim,x=g.getAxisLayout(w),T=p.extend({strokeContainThreshold:b},x),_=new S(e,T);p.each(d,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(T,A,e,h,b,r);var E=s&&s.animation===!1?null:e;f.groupTransition(c,this._axisGroup,E)},_refreshBrushController:function(e,l,r,s,c,h){var g=r.axis.getExtent(),A=g[1]-g[0],b=Math.min(30,Math.abs(A)*.1),w=f.BoundingRect.create({x:g[0],y:-c/2,width:A,height:c});w.x-=b,w.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:m.makeRectPanelClipPath(w),isTargetByCursor:m.makeRectIsTargetByCursor(w,h,s),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(w,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(n(r))},_onBrush:function(e,l){var r=this.axisModel,s=r.axis,c=p.map(e,function(h){return[s.coordToData(h.range[0],!0),s.coordToData(h.range[1],!0)]});(!r.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:c})},dispose:function(){this._brushController.dispose()}});function o(e,l,r){return r&&r.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:r})[0]===e}function n(e){var l=e.axis;return p.map(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(r[0],!0),l.dataToCoord(r[1],!0)]}})}function t(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var a=u;k.exports=a},sE09:function(k,D,i){},sEf8:function(k,D){function i(y){return function(p){return y(p)}}k.exports=i},sGsY:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),v=i.n(S),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),u=i("H84U"),o=i("B6l+"),n=i.n(o),t=function(H){var V=H.value,Q=H.formatter,G=H.precision,ee=H.decimalSeparator,q=H.groupSeparator,se=q===void 0?"":q,re=H.prefixCls,Ae;if(typeof Q=="function")Ae=Q(V);else{var Te=String(V),Re=Te.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Re||Te==="-")Ae=Te;else{var Ge=Re[1],Ue=Re[2]||"0",nt=Re[4]||"";Ue=Ue.replace(/\B(?=(\d{3})+(?!\d))/g,se),typeof G=="number"&&(nt=n()(nt,G,"0").slice(0,G)),nt&&(nt="".concat(ee).concat(nt)),Ae=[m.createElement("span",{key:"int",className:"".concat(re,"-content-value-int")},Ge,Ue),nt&&m.createElement("span",{key:"decimal",className:"".concat(re,"-content-value-decimal")},nt)]}}return m.createElement("span",{className:"".concat(re,"-content-value")},Ae)},a=t,e=function(H){var V=H.prefixCls,Q=H.className,G=H.style,ee=H.valueStyle,q=H.value,se=q===void 0?0:q,re=H.title,Ae=H.valueRender,Te=H.prefix,Re=H.suffix,Ge=H.direction,Ue=H.onMouseEnter,nt=H.onMouseLeave,Le=m.createElement(a,v()({},H,{value:se})),le=d()(V,Q,p()({},"".concat(V,"-rtl"),Ge==="rtl"));return m.createElement("div",{className:le,style:G,onMouseEnter:Ue,onMouseLeave:nt},re&&m.createElement("div",{className:"".concat(V,"-title")},re),m.createElement("div",{style:ee,className:"".concat(V,"-content")},Te&&m.createElement("span",{className:"".concat(V,"-content-prefix")},Te),Ae?Ae(Le):Le,Re&&m.createElement("span",{className:"".concat(V,"-content-suffix")},Re)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(u.c)({prefixCls:"statistic"})(e),r=l,s=i("lwsE"),c=i.n(s),h=i("W8MJ"),g=i.n(h),A=i("7W2i"),b=i.n(A),w=i("LQ03"),x=i.n(w),T=i("J4zp"),_=i.n(T),E=i("QQZ/"),C=i.n(E),I=[["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 O(W,H){var V=W,Q=/\[[^\]]*]/g,G=(H.match(Q)||[]).map(function(re){return re.slice(1,-1)}),ee=H.replace(Q,"[]"),q=I.reduce(function(re,Ae){var Te=_()(Ae,2),Re=Te[0],Ge=Te[1];if(re.indexOf(Re)!==-1){var Ue=Math.floor(V/Ge);return V-=Ue*Ge,re.replace(new RegExp("".concat(Re,"+"),"g"),function(nt){var Le=nt.length;return C()(Ue.toString(),Le,"0")})}return re},ee),se=0;return q.replace(Q,function(){var re=G[se];return se+=1,re})}function F(W,H){var V=H.format,Q=V===void 0?"":V,G=new Date(W).getTime(),ee=Date.now(),q=Math.max(G-ee,0);return O(q,Q)}var R=i("0n0R"),B=1e3/30;function P(W){return new Date(W).getTime()}var X=function(W){b()(V,W);var H=x()(V);function V(){var Q;return c()(this,V),Q=H.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()},B)},Q.stopTimer=function(){var G=Q.props,ee=G.onFinish,q=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var se=P(q);ee&&se<Date.now()&&ee()}},Q.formatCountdown=function(G,ee){var q=Q.props.format;return F(G,v()(v()({},ee),{format:q}))},Q.valueRender=function(G){return Object(R.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(r,v()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);X.defaultProps={format:"HH:mm:ss"};var M=X;r.Countdown=M;var z=D.a=r},"sK/D":function(k,D,i){var y=i("IwbS"),p=i("OELB"),S=p.round;function v(d,u,o){var n=d.getArea(),t=d.getBaseAxis().isHorizontal(),a=n.x,e=n.y,l=n.width,r=n.height,s=o.get("lineStyle.width")||2;a-=s/2,e-=s/2,l+=s,r+=s,a=Math.floor(a),l=Math.round(l);var c=new y.Rect({shape:{x:a,y:e,width:l,height:r}});return u&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:l,height:r}},o)),c}function m(d,u,o){var n=d.getArea(),t=new y.Sector({shape:{cx:S(d.cx,1),cy:S(d.cy,1),r0:S(n.r0,1),r:S(n.r,1),startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return u&&(t.shape.endAngle=n.startAngle,y.initProps(t,{shape:{endAngle:n.endAngle}},o)),t}function f(d,u,o){if(d){if(d.type==="polar")return m(d,u,o);if(d.type==="cartesian2d")return v(d,u,o)}else return null;return null}D.createGridClipPath=v,D.createPolarClipPath=m,D.createClipPath=f},sKgW:function(k,D){var i=9007199254740991,y=Math.floor;function p(S,v){var m="";if(!S||v<1||v>i)return m;do v%2&&(m+=S),v=y(v/2),v&&(S+=S);while(v);return m}k.exports=p},sPJy:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("AOa7"),v=i.n(S),m=i("lUTK"),f=i("qVdP")},sPtV:function(k,D,i){"use strict";i.d(D,"a",function(){return v});var y=i("q1tI"),p=i.n(y),S=i("hkKa");function v(m){var f=y.useRef(m),d=Object(S.a)();return[function(){return f.current},function(u){f.current=u,d()}]}},sRwP:function(k,D,i){i("jsU+"),i("2548"),i("Tp9H"),i("06DH"),i("dnwI"),i("fE02"),i("33Ds")},"sS/r":function(k,D,i){var y=i("4fz+"),p=i("iRjW"),S=i("Yl7c"),v=function(){this.group=new y,this.uid=p.getUID("viewComponent")};v.prototype={constructor:v,init:function(d,u){},render:function(d,u,o,n){},dispose:function(){},filterForExposedEvent:null};var m=v.prototype;m.updateView=m.updateLayout=m.updateVisual=function(d,u,o,n){},S.enableClassExtend(v),S.enableClassManagement(v,{registerWhenExtend:!0});var f=v;k.exports=f},"sW+o":function(k,D,i){var y=i("SrGk"),p=i("bYtY"),S=i("SUKs"),v=i("Qe9p");function m(d,u){y.call(this,d,u,["linearGradient","radialGradient"],"__gradient_in_use__")}p.inherits(m,y),m.prototype.addWithoutUpdate=function(d,u){if(u&&u.style){var o=this;p.each(["fill","stroke"],function(n){if(u.style[n]&&(u.style[n].type==="linear"||u.style[n].type==="radial")){var t=u.style[n],a=o.getDefs(!0),e;t._dom?(e=t._dom,a.contains(t._dom)||o.addDom(e)):e=o.add(t),o.markUsed(u);var l=e.getAttribute("id");d.setAttribute(n,"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 S("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 o=d.type,n=d._dom.tagName;o==="linear"&&n==="linearGradient"||o==="radial"&&n==="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{S("Illegal gradient type.");return}d.global?u.setAttribute("gradientUnits","userSpaceOnUse"):u.setAttribute("gradientUnits","objectBoundingBox"),u.innerHTML="";for(var o=d.colorStops,n=0,t=o.length;n<t;++n){var a=this.createElement("stop");a.setAttribute("offset",o[n].offset*100+"%");var e=o[n].color;if(e.indexOf("rgba">-1)){var l=v.parse(e)[3],r=v.toHex(e);a.setAttribute("stop-color","#"+r),a.setAttribute("stop-opacity",l)}else a.setAttribute("stop-color",o[n].color);u.appendChild(a)}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 f=m;k.exports=f},sdST:function(k,D,i){var y=i("hi0g");function p(S,v){return v=v||{},y(v.coordDimensions||[],S,{dimsDef:v.dimensionsDefine||S.dimensionsDefine,encodeDef:v.encodeDefine||S.encodeDefine,dimCount:v.dimensionsCount,encodeDefaulter:v.encodeDefaulter,generateCoord:v.generateCoord,generateCoordCount:v.generateCoordCount})}k.exports=p},seXi:function(k,D,i){var y=i("qZTm"),p=1,S=Object.prototype,v=S.hasOwnProperty;function m(f,d,u,o,n,t){var a=u&p,e=y(f),l=e.length,r=y(d),s=r.length;if(l!=s&&!a)return!1;for(var c=l;c--;){var h=e[c];if(!(a?h in d:v.call(d,h)))return!1}var g=t.get(f),A=t.get(d);if(g&&A)return g==d&&A==f;var b=!0;t.set(f,d),t.set(d,f);for(var w=a;++c<l;){h=e[c];var x=f[h],T=d[h];if(o)var _=a?o(T,x,h,d,f,t):o(x,T,h,f,d,t);if(!(_===void 0?x===T||n(x,T,u,o,t):_)){b=!1;break}w||(w=h=="constructor")}if(b&&!w){var E=f.constructor,C=d.constructor;E!=C&&"constructor"in f&&"constructor"in d&&!(typeof E=="function"&&E instanceof E&&typeof C=="function"&&C instanceof C)&&(b=!1)}return t.delete(f),t.delete(d),b}k.exports=m},shjB:function(k,D){var i=9007199254740991;function y(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=i}k.exports=y},sjKO:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=S;var y=30,p=12;function S(v,m){var f,d,u,o,n,t,a,e,l,r,s,c,h,g,A,b,w,x,T,_,E,C,I,O,F;f=v.state,d=v.next_in,O=v.input,u=d+(v.avail_in-5),o=v.next_out,F=v.output,n=o-(m-v.avail_out),t=o+(v.avail_out-257),a=f.dmax,e=f.wsize,l=f.whave,r=f.wnext,s=f.window,c=f.hold,h=f.bits,g=f.lencode,A=f.distcode,b=(1<<f.lenbits)-1,w=(1<<f.distbits)-1;e:do{h<15&&(c+=O[d++]<<h,h+=8,c+=O[d++]<<h,h+=8),x=g[c&b];t:for(;;){if(T=x>>>24,c>>>=T,h-=T,T=x>>>16&255,T===0)F[o++]=x&65535;else if(T&16){_=x&65535,T&=15,T&&(h<T&&(c+=O[d++]<<h,h+=8),_+=c&(1<<T)-1,c>>>=T,h-=T),h<15&&(c+=O[d++]<<h,h+=8,c+=O[d++]<<h,h+=8),x=A[c&w];r:for(;;){if(T=x>>>24,c>>>=T,h-=T,T=x>>>16&255,T&16){if(E=x&65535,T&=15,h<T&&(c+=O[d++]<<h,h+=8,h<T&&(c+=O[d++]<<h,h+=8)),E+=c&(1<<T)-1,E>a){v.msg="invalid distance too far back",f.mode=y;break e}if(c>>>=T,h-=T,T=o-n,E>T){if(T=E-T,T>l&&f.sane){v.msg="invalid distance too far back",f.mode=y;break e}if(C=0,I=s,r===0){if(C+=e-T,T<_){_-=T;do F[o++]=s[C++];while(--T);C=o-E,I=F}}else if(r<T){if(C+=e+r-T,T-=r,T<_){_-=T;do F[o++]=s[C++];while(--T);if(C=0,r<_){T=r,_-=T;do F[o++]=s[C++];while(--T);C=o-E,I=F}}}else if(C+=r-T,T<_){_-=T;do F[o++]=s[C++];while(--T);C=o-E,I=F}for(;_>2;)F[o++]=I[C++],F[o++]=I[C++],F[o++]=I[C++],_-=3;_&&(F[o++]=I[C++],_>1&&(F[o++]=I[C++]))}else{C=o-E;do F[o++]=F[C++],F[o++]=F[C++],F[o++]=F[C++],_-=3;while(_>2);_&&(F[o++]=F[C++],_>1&&(F[o++]=F[C++]))}}else if((T&64)===0){x=A[(x&65535)+(c&(1<<T)-1)];continue r}else{v.msg="invalid distance code",f.mode=y;break e}break}}else if((T&64)===0){x=g[(x&65535)+(c&(1<<T)-1)];continue t}else if(T&32){f.mode=p;break e}else{v.msg="invalid literal/length code",f.mode=y;break e}break}}while(d<u&&o<t);_=h>>3,d-=_,h-=_<<3,c&=(1<<h)-1,v.next_in=d,v.next_out=o,v.avail_in=d<u?5+(u-d):5-(d-u),v.avail_out=o<t?257+(t-o):257-(o-t),f.hold=c,f.bits=h;return}},szbU:function(k,D,i){var y=i("bYtY"),p=y.each;function S(m){var f=m&&m.visualMap;y.isArray(f)||(f=f?[f]:[]),p(f,function(d){if(!d)return;v(d,"splitList")&&!v(d,"pieces")&&(d.pieces=d.splitList,delete d.splitList);var u=d.pieces;u&&y.isArray(u)&&p(u,function(o){y.isObject(o)&&(v(o,"start")&&!v(o,"min")&&(o.min=o.start),v(o,"end")&&!v(o,"max")&&(o.max=o.end))})})}function v(m,f){return m&&m.hasOwnProperty&&m.hasOwnProperty(f)}k.exports=S},t23M:function(k,D,i){"use strict";var y=i("wx14"),p=i("q1tI"),S=i("Zm9Q"),v=i("Kwbf"),m=i("VTBJ"),f=i("U8pU"),d=i("m+aA"),u=i("c+Xe"),o=p.createContext(null);function n(R){var B=R.children,P=R.onBatchResize,X=p.useRef(0),M=p.useRef([]),z=p.useContext(o),W=p.useCallback(function(H,V,Q){X.current+=1;var G=X.current;M.current.push({size:H,element:V,data:Q}),Promise.resolve().then(function(){G===X.current&&(P==null||P(M.current),M.current=[])}),z==null||z(H,V,Q)},[P,z]);return p.createElement(o.Provider,{value:W},B)}var t=i("bdgK"),a=new Map;function e(R){R.forEach(function(B){var P,X=B.target;(P=a.get(X))===null||P===void 0||P.forEach(function(M){return M(X)})})}var l=new t.default(e),r=null,s=null;function c(R,B){a.has(R)||(a.set(R,new Set),l.observe(R)),a.get(R).add(B)}function h(R,B){a.has(R)&&(a.get(R).delete(B),a.get(R).size||(l.unobserve(R),a.delete(R)))}var g=i("1OyB"),A=i("vuIU"),b=i("Ji7U"),w=i("LK+K"),x=function(R){Object(b.a)(P,R);var B=Object(w.a)(P);function P(){return Object(g.a)(this,P),B.apply(this,arguments)}return Object(A.a)(P,[{key:"render",value:function(){return this.props.children}}]),P}(p.Component);function T(R,B){var P=R.children,X=R.disabled,M=p.useRef(null),z=p.useRef(null),W=p.useContext(o),H=typeof P=="function",V=H?P(M):P,Q=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),G=!H&&p.isValidElement(V)&&Object(u.c)(V),ee=G?V.ref:null,q=Object(u.d)(ee,M),se=function(){var Re;return Object(d.a)(M.current)||(M.current&&Object(f.a)(M.current)==="object"?Object(d.a)((Re=M.current)===null||Re===void 0?void 0:Re.nativeElement):null)||Object(d.a)(z.current)};p.useImperativeHandle(B,function(){return se()});var re=p.useRef(R);re.current=R;var Ae=p.useCallback(function(Te){var Re=re.current,Ge=Re.onResize,Ue=Re.data,nt=Te.getBoundingClientRect(),Le=nt.width,le=nt.height,Xe=Te.offsetWidth,pe=Te.offsetHeight,Z=Math.floor(Le),Y=Math.floor(le);if(Q.current.width!==Z||Q.current.height!==Y||Q.current.offsetWidth!==Xe||Q.current.offsetHeight!==pe){var ne={width:Z,height:Y,offsetWidth:Xe,offsetHeight:pe};Q.current=ne;var ce=Xe===Math.round(Le)?Le:Xe,ye=pe===Math.round(le)?le:pe,Ee=Object(m.a)(Object(m.a)({},ne),{},{offsetWidth:ce,offsetHeight:ye});W==null||W(Ee,Te,Ue),Ge&&Promise.resolve().then(function(){Ge(Ee,Te)})}},[]);return p.useEffect(function(){var Te=se();return Te&&!X&&c(Te,Ae),function(){return h(Te,Ae)}},[M.current,X]),p.createElement(x,{ref:z},G?p.cloneElement(V,{ref:q}):V)}var _=p.forwardRef(T),E=_,C="rc-observer-key";function I(R,B){var P=R.children,X=typeof P=="function"?[P]:Object(S.a)(P);return X.map(function(M,z){var W=(M==null?void 0:M.key)||"".concat(C,"-").concat(z);return p.createElement(E,Object(y.a)({},R,{key:W,ref:z===0?B:void 0}),M)})}var O=p.forwardRef(I);O.Collection=n;var F=D.a=O},t3Fx:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=Object.assign||function(s){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(s[g]=h[g])}return s},p=function(){function s(c,h){for(var g=0;g<h.length;g++){var A=h[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(c,A.key,A)}}return function(c,h,g){return h&&s(c.prototype,h),g&&s(c,g),c}}(),S=i("q1tI"),v=t(S),m=i("17x9"),f=t(m),d=i("tkwv"),u=t(d),o=i("u3os"),n=i("kzFp");function t(s){return s&&s.__esModule?s:{default:s}}function a(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}function e(s,c){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:s}function l(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(s,c):s.__proto__=c)}var r=function(s){l(c,s);function c(h){a(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,o.clear)(g.echartsElement)}catch(A){console.warn(A)}g.echartsLib.dispose(g.echartsElement)}},g.rerender=function(){var A=g.props,b=A.onEvents,w=A.onChartReady,x=g.renderEchartDom();g.bindEvents(x,b||{}),typeof w=="function"&&g.props.onChartReady(x),g.echartsElement&&(0,o.bind)(g.echartsElement,function(){try{x.resize()}catch(T){console.warn(T)}})},g.bindEvents=function(A,b){var w=function(_,E){typeof _=="string"&&typeof E=="function"&&A.on(_,function(C){E(C,A)})};for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&w(x,b[x])},g.renderEchartDom=function(){var A=g.getEchartsInstance();return A.setOption(g.props.option,g.props.notMerge||!1,g.props.lazyUpdate||!1),g.props.showLoading?A.showLoading(g.props.loadingOption||null):A.hideLoading(),A},g.echartsLib=h.echarts,g.echartsElement=null,g}return p(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 A=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,u.default)((0,n.pick)(this.props,A),(0,n.pick)(g,A)))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(w){console.warn(w)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var g=this,A=this.props,b=A.style,w=A.className,x=y({height:300},b);return v.default.createElement("div",{ref:function(_){g.echartsElement=_},style:x,className:"echarts-for-react "+w})}}]),c}(S.Component);D.default=r,r.propTypes={option:f.default.object.isRequired,echarts:f.default.object,notMerge:f.default.bool,lazyUpdate:f.default.bool,style:f.default.object,className:f.default.string,theme:f.default.oneOfType([f.default.string,f.default.object]),onChartReady:f.default.func,showLoading:f.default.bool,loadingOption:f.default.object,onEvents:f.default.object,opts:f.default.shape({devicePixelRatio:f.default.number,renderer:f.default.oneOf(["canvas","svg"]),width:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])]),height:f.default.oneOfType([f.default.number,f.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:f.default.func},r.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("Qxkt"),v=i("Znkb"),m=i("+rIm"),f=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function d(t,a,e){a[1]>a[0]&&(a=a.slice().reverse());var l=t.coordToPoint([a[0],e]),r=t.coordToPoint([a[1],e]);return{x1:l[0],y1:l[1],x2:r[0],y2:r[1]}}function u(t){var a=t.getRadiusAxis();return a.inverse?0:1}function o(t){var a=t[0],e=t[t.length-1];a&&e&&Math.abs(Math.abs(a.coord-e.coord)-360)<1e-4&&t.pop()}var n=v.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,a){if(this.group.removeAll(),!t.get("show"))return;var e=t.axis,l=e.polar,r=l.getRadiusAxis().getExtent(),s=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});o(h),o(s),y.each(f,function(g){t.get(g+".show")&&(!e.scale.isBlank()||g==="axisLine")&&this["_"+g](t,l,s,c,r,h)},this)},_axisLine:function(t,a,e,l,r){var s=t.getModel("axisLine.lineStyle"),c=u(a),h=c?0:1,g;r[h]===0?g=new p.Circle({shape:{cx:a.cx,cy:a.cy,r:r[c]},style:s.getLineStyle(),z2:1,silent:!0}):g=new p.Ring({shape:{cx:a.cx,cy:a.cy,r:r[c],r0:r[h]},style:s.getLineStyle(),z2:1,silent:!0}),g.style.fill=null,this.group.add(g)},_axisTick:function(t,a,e,l,r){var s=t.getModel("axisTick"),c=(s.get("inside")?-1:1)*s.get("length"),h=r[u(a)],g=y.map(e,function(A){return new p.Line({shape:d(a,[h,h+c],A.coord)})});this.group.add(p.mergePath(g,{style:y.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,a,e,l,r){if(!l.length)return;for(var s=t.getModel("axisTick"),c=t.getModel("minorTick"),h=(s.get("inside")?-1:1)*c.get("length"),g=r[u(a)],A=[],b=0;b<l.length;b++)for(var w=0;w<l[b].length;w++)A.push(new p.Line({shape:d(a,[g,g+h],l[b][w].coord)}));this.group.add(p.mergePath(A,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,a,e,l,r,s){var c=t.getCategories(!0),h=t.getModel("axisLabel"),g=h.get("margin"),A=t.get("triggerEvent");y.each(s,function(b,w){var x=h,T=b.tickValue,_=r[u(a)],E=a.coordToPoint([_+g,b.coord]),C=a.cx,I=a.cy,O=Math.abs(E[0]-C)/_<.3?"center":E[0]>C?"left":"right",F=Math.abs(E[1]-I)/_<.3?"middle":E[1]>I?"top":"bottom";c&&c[T]&&c[T].textStyle&&(x=new S(c[T].textStyle,h,h.ecModel));var R=new p.Text({silent:m.isLabelSilent(t)});this.group.add(R),p.setTextStyle(R.style,x,{x:E[0],y:E[1],textFill:x.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:O,textVerticalAlign:F}),A&&(R.eventData=m.makeAxisEventDataBase(t),R.eventData.targetType="axisLabel",R.eventData.value=b.rawLabel)},this)},_splitLine:function(t,a,e,l,r){var s=t.getModel("splitLine"),c=s.getModel("lineStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var A=[],b=0;b<e.length;b++){var w=g++%h.length;A[w]=A[w]||[],A[w].push(new p.Line({shape:d(a,r,e[b].coord)}))}for(var b=0;b<A.length;b++)this.group.add(p.mergePath(A[b],{style:y.defaults({stroke:h[b%h.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,a,e,l,r){if(!l.length)return;for(var s=t.getModel("minorSplitLine"),c=s.getModel("lineStyle"),h=[],g=0;g<l.length;g++)for(var A=0;A<l[g].length;A++)h.push(new p.Line({shape:d(a,r,l[g][A].coord)}));this.group.add(p.mergePath(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,a,e,l,r){if(!e.length)return;var s=t.getModel("splitArea"),c=s.getModel("areaStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var A=[],b=Math.PI/180,w=-e[0].coord*b,x=Math.min(r[0],r[1]),T=Math.max(r[0],r[1]),_=t.get("clockwise"),E=1;E<e.length;E++){var C=g++%h.length;A[C]=A[C]||[],A[C].push(new p.Sector({shape:{cx:a.cx,cy:a.cy,r0:x,r:T,startAngle:w,endAngle:-e[E].coord*b,clockwise:_},silent:!0})),w=-e[E].coord*b}for(var E=0;E<A.length;E++)this.group.add(p.mergePath(A[E],{style:y.defaults({fill:h[E%h.length]},c.getAreaStyle()),silent:!0}))}});k.exports=n},tMB7:function(k,D,i){var y=i("y1pI");function p(S){var v=this.__data__,m=y(v,S);return m<0?void 0:v[m][1]}k.exports=p},tSko:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("SRve")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PlusOutlined";var n=v.forwardRef(o);D.default=n},tadb:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"DataView");k.exports=S},tceW:function(k,D,i){var y=i("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S={getBarItemStyle:function(v){var m=p(this,v);if(this.getBorderLineDash){var f=this.getBorderLineDash();f&&(m.lineDash=f)}return m}};k.exports=S},tkwv:function(k,D,i){"use strict";var y=Array.isArray,p=Object.keys,S=Object.prototype.hasOwnProperty;k.exports=function v(m,f){if(m===f)return!0;if(m&&f&&typeof m=="object"&&typeof f=="object"){var d=y(m),u=y(f),o,n,t;if(d&&u){if(n=m.length,n!=f.length)return!1;for(o=n;o--!==0;)if(!v(m[o],f[o]))return!1;return!0}if(d!=u)return!1;var a=m instanceof Date,e=f instanceof Date;if(a!=e)return!1;if(a&&e)return m.getTime()==f.getTime();var l=m instanceof RegExp,r=f instanceof RegExp;if(l!=r)return!1;if(l&&r)return m.toString()==f.toString();var s=p(m);if(n=s.length,n!==p(f).length)return!1;for(o=n;o--!==0;)if(!S.call(f,s[o]))return!1;for(o=n;o--!==0;)if(t=s[o],!v(m[t],f[t]))return!1;return!0}return m!==m&&f!==f}},txkQ:function(k,D,i){var y=i("aX58");D.zrender=y;var p=i("Fofx");D.matrix=p;var S=i("QBsz");D.vector=S;var v=i("bYtY"),m=i("Qe9p");D.color=m;var f=i("IwbS"),d=i("OELB");D.number=d;var u=i("7aKB");D.format=u;var o=i("iLNv"),n=o.throttle;D.throttle=o.throttle;var t=i("FUi9");D.helper=t;var a=i("vafp");D.parseGeoJSON=a;var e=i("YXkt");D.List=e;var l=i("Qxkt");D.Model=l;var r=i("hM6l");D.Axis=r;var s=i("ItGF");D.env=s;var c=a,h={};v.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(A){h[A]=v[A]});var g={};v.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(A){g[A]=f[A]}),D.parseGeoJson=c,D.util=h,D.graphic=g},u3DP:function(k,D,i){var y=i("6GrX"),p=i("OELB"),S=p.parsePercent,v=Math.PI/180;function m(o,n,t,a,e,l,r,s,c,h){o.sort(function(O,F){return O.y-F.y});function g(O,F,R,B){for(var P=O;P<F&&!(o[P].y+R>c+r);P++)if(o[P].y+=R,P>O&&P+1<F&&o[P+1].y>o[P].y+o[P].height){A(P,R/2);return}A(F-1,R/2)}function A(O,F){for(var R=O;R>=0&&!(o[R].y-F<c);R--)if(o[R].y-=F,R>0&&o[R].y>o[R-1].y+o[R-1].height)break}function b(O,F,R,B,P,X){for(var M=(X>0,F?Number.MAX_VALUE:0),z=0,W=O.length;z<W;z++){if(O[z].labelAlignTo!=="none")continue;var H=Math.abs(O[z].y-B),V=O[z].len,Q=O[z].len2,G=H<P+V?Math.sqrt((P+V+Q)*(P+V+Q)-H*H):Math.abs(O[z].x-R);F&&G>=M&&(G=M-10),!F&&G<=M&&(G=M+10),O[z].x=R+G*X,M=G}}for(var w=0,x,T=o.length,_=[],E=[],C=0;C<T;C++){if(o[C].position==="outer"&&o[C].labelAlignTo==="labelLine"){var I=o[C].x-h;o[C].linePoints[1][0]+=I,o[C].x=h}x=o[C].y-w,x<0&&g(C,T,-x,e),w=o[C].y+o[C].height}r-w<0&&A(T-1,w-r);for(var C=0;C<T;C++)o[C].y>=t?E.push(o[C]):_.push(o[C]);b(_,!1,n,t,a,e),b(E,!0,n,t,a,e)}function f(o,n,t,a,e,l,r,s){for(var c=[],h=[],g=Number.MAX_VALUE,A=-Number.MAX_VALUE,b=0;b<o.length;b++){if(d(o[b]))continue;o[b].x<n?(g=Math.min(g,o[b].x),c.push(o[b])):(A=Math.max(A,o[b].x),h.push(o[b]))}m(h,n,t,a,1,e,l,r,s,A),m(c,n,t,a,-1,e,l,r,s,g);for(var b=0;b<o.length;b++){var w=o[b];if(d(w))continue;var x=w.linePoints;if(x){var T=w.labelAlignTo==="edge",_=w.textRect.width,E;T?w.x<n?E=x[2][0]-w.labelDistance-r-w.labelMargin:E=r+e-w.labelMargin-x[2][0]-w.labelDistance:w.x<n?E=w.x-r-w.bleedMargin:E=r+e-w.x-w.bleedMargin,E<w.textRect.width&&(w.text=y.truncateText(w.text,E,w.font),w.labelAlignTo==="edge"&&(_=y.getWidth(w.text,w.font)));var C=x[1][0]-x[2][0];T?w.x<n?x[2][0]=r+w.labelMargin+_+w.labelDistance:x[2][0]=r+e-w.labelMargin-_-w.labelDistance:(w.x<n?x[2][0]=w.x+w.labelDistance:x[2][0]=w.x-w.labelDistance,x[1][0]=x[2][0]+C),x[1][1]=x[2][1]=w.y}}}function d(o){return o.position==="center"}function u(o,n,t,a,e,l){var r=o.getData(),s=[],c,h,g=!1,A=(o.get("minShowLabelAngle")||0)*v;r.each(function(b){var w=r.getItemLayout(b),x=r.getItemModel(b),T=x.getModel("label"),_=T.get("position")||x.get("emphasis.label.position"),E=T.get("distanceToLabelLine"),C=T.get("alignTo"),I=S(T.get("margin"),t),O=T.get("bleedMargin"),F=T.getFont(),R=x.getModel("labelLine"),B=R.get("length");B=S(B,t);var P=R.get("length2");if(P=S(P,t),w.angle<A)return;var X=(w.startAngle+w.endAngle)/2,M=Math.cos(X),z=Math.sin(X),W,H,V,Q;c=w.cx,h=w.cy;var G=o.getFormattedLabel(b,"normal")||r.getName(b),ee=y.getBoundingRect(G,F,Q,"top"),q=_==="inside"||_==="inner";if(_==="center")W=w.cx,H=w.cy,Q="center";else{var se=(q?(w.r+w.r0)/2*M:w.r*M)+c,re=(q?(w.r+w.r0)/2*z:w.r*z)+h;if(W=se+M*3,H=re+z*3,!q){var Ae=se+M*(B+n-w.r),Te=re+z*(B+n-w.r),Re=Ae+(M<0?-1:1)*P,Ge=Te;C==="edge"?W=M<0?e+I:e+t-I:W=Re+(M<0?-E:E),H=Ge,V=[[se,re],[Ae,Te],[Re,Ge]]}Q=q?"center":C==="edge"?M>0?"right":"left":M>0?"left":"right"}var Ue,nt=T.get("rotate");typeof nt=="number"?Ue=nt*(Math.PI/180):Ue=nt?M<0?-X+Math.PI:-X:0,g=!!Ue,w.label={x:W,y:H,position:_,height:ee.height,len:B,len2:P,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:Ue,inside:q,labelDistance:E,labelAlignTo:C,labelMargin:I,bleedMargin:O,textRect:ee,text:G,font:F},q||s.push(w.label)}),!g&&o.get("avoidLabelOverlap")&&f(s,c,h,n,t,a,e,l)}k.exports=u},u3os:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ver=D.clear=D.bind=void 0;var y=i("P4Qj"),p=function(f,d){var u=(0,y.getSensor)(f);return u.bind(d),function(){u.unbind(d)}};D.bind=p;var S=function(f){var d=(0,y.getSensor)(f);(0,y.removeSensor)(d)};D.clear=S;var v="1.0.2";D.ver=v},u4NN:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("Uc92")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="EyeOutlined";var n=v.forwardRef(o);D.default=n},u8Dt:function(k,D,i){var y=i("YESw"),p="__lodash_hash_undefined__",S=Object.prototype,v=S.hasOwnProperty;function m(f){var d=this.__data__;if(y){var u=d[f];return u===p?void 0:u}return v.call(d,f)?d[f]:void 0}k.exports=m},u9fO:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("b80e"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},uAnK:function(k,D,i){var y=i("bYtY"),p=i("Kagy"),S=i("KxfA"),v=S.retrieveRawValue;function m(f,d){var u=d.getModel("aria");if(u.get("show")){if(u.get("description")){f.setAttribute("aria-label",u.get("description"));return}}else return;var o=0;d.eachSeries(function(b,w){++o},this);var n=u.get("data.maxCount")||10,t=u.get("series.maxCount")||10,a=Math.min(o,t),e;if(o<1)return;var l=g();l?e=c(h("general.withTitle"),{title:l}):e=h("general.withoutTitle");var r=[],s=o>1?"series.multiple.prefix":"series.single.prefix";e+=c(h(s),{seriesCount:o}),d.eachSeries(function(b,w){if(w<a){var x,T=b.get("name"),_="series."+(o>1?"multiple":"single")+".";x=h(T?_+"withName":_+"withoutName"),x=c(x,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:A(b.subType)});var E=b.getData();window.data=E,E.count()>n?x+=c(h("data.partialData"),{displayCnt:n}):x+=h("data.allData");for(var C=[],I=0;I<E.count();I++)if(I<n){var O=E.getName(I),F=v(E,I);C.push(c(h(O?"data.withName":"data.withoutName"),{name:O,value:F}))}x+=C.join(h("data.separator.middle"))+h("data.separator.end"),r.push(x)}}),e+=r.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),f.setAttribute("aria-label",e);function c(b,w){if(typeof b!="string")return b;var x=b;return y.each(w,function(T,_){x=x.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),T)}),x}function h(b){var w=u.get(b);if(w==null){for(var x=b.split("."),T=p.aria,_=0;_<x.length;++_)T=T[x[_]];return T}else return w}function g(){var b=d.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function A(b){return p.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}k.exports=m},uGsb:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"),i("1uat"))})(this,function(y){return function(){var p=y,S=p.x64,v=S.Word,m=S.WordArray,f=p.algo,d=f.SHA512,u=f.SHA384=d.extend({_doReset:function(){this._hash=new m.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var n=d._doFinalize.call(this);return n.sigBytes-=16,n}});p.SHA384=d._createHelper(u),p.HmacSHA384=d._createHmacHelper(u)}(),y.SHA384})},uGxW:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(k,D,i){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(p,S,v){v=v||{},v.childrenKeyName=v.childrenKeyName||"children";var m=p||[],f=[],d=0;do{var u=m.filter(function(o){return S(o,d)})[0];if(!u)break;f.push(u),m=u[v.childrenKeyName]||[],d+=1}while(m.length>0);return f}return y})},uOyE:function(k,D,i){var y=i("ProS");y.registerAction({type:"brush",event:"brush"},function(p,S){S.eachComponent({mainType:"brush",query:p},function(v){v.setAreas(p.areas)})}),y.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),y.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(k,D,i){k.exports=y;function y(){return i("gaXo"),{}}},uciX:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("wx14"),S=i("1OyB"),v=i("vuIU"),m=i("JX7q"),f=i("Ji7U"),d=i("LK+K"),u=i("rePB"),o=i("q1tI"),n=i("i8i4"),t=i.n(n),a=i("wgJM"),e=i("l4aY"),l=i("m+aA"),r=i("c+Xe"),s=i("zT1h"),c=i("QC+M"),h=i("TSYQ"),g=i.n(h);function A(le,Xe,pe){return pe?le[0]===Xe[0]:le[0]===Xe[0]&&le[1]===Xe[1]}function b(le,Xe,pe){var Z=le[Xe]||{};return Object(y.a)(Object(y.a)({},Z),pe)}function w(le,Xe,pe,Z){for(var Y=pe.points,ne=Object.keys(le),ce=0;ce<ne.length;ce+=1){var ye=ne[ce];if(A(le[ye].points,Y,Z))return"".concat(Xe,"-placement-").concat(ye)}return""}var x=i("ODXe"),T=i("Ff2n"),_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var le=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(le)||/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(le==null?void 0:le.substr(0,4))},E=i("8XRh");function C(le){var Xe=le.prefixCls,pe=le.motion,Z=le.animation,Y=le.transitionName;return pe||(Z?{motionName:"".concat(Xe,"-").concat(Z)}:Y?{motionName:Y}:null)}function I(le){var Xe=le.prefixCls,pe=le.visible,Z=le.zIndex,Y=le.mask,ne=le.maskMotion,ce=le.maskAnimation,ye=le.maskTransitionName;if(!Y)return null;var Ee={};return(ne||ye||ce)&&(Ee=Object(y.a)({motionAppear:!0},C({motion:ne,prefixCls:Xe,transitionName:ye,animation:ce}))),o.createElement(E.b,Object(p.a)({},Ee,{visible:pe,removeOnLeave:!0}),function(Ce){var ue=Ce.className;return o.createElement("div",{style:{zIndex:Z},className:g()("".concat(Xe,"-mask"),ue)})})}var O=i("9mu1"),F=i("TNol"),R=i("U8pU");function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return Xe};var le,Xe={},pe=Object.prototype,Z=pe.hasOwnProperty,Y=Object.defineProperty||function(pt,qt,vr){pt[qt]=vr.value},ne=typeof Symbol=="function"?Symbol:{},ce=ne.iterator||"@@iterator",ye=ne.asyncIterator||"@@asyncIterator",Ee=ne.toStringTag||"@@toStringTag";function Ce(pt,qt,vr){return Object.defineProperty(pt,qt,{value:vr,enumerable:!0,configurable:!0,writable:!0}),pt[qt]}try{Ce({},"")}catch(pt){Ce=function(vr,pn,fr){return vr[pn]=fr}}function ue(pt,qt,vr,pn){var fr=qt&&qt.prototype instanceof st?qt:st,gr=Object.create(fr.prototype),dn=new $t(pn||[]);return Y(gr,"_invoke",{value:et(pt,vr,dn)}),gr}function ge(pt,qt,vr){try{return{type:"normal",arg:pt.call(qt,vr)}}catch(pn){return{type:"throw",arg:pn}}}Xe.wrap=ue;var Oe="suspendedStart",Je="suspendedYield",lt="executing",tt="completed",ke={};function st(){}function Ve(){}function Ot(){}var Ut={};Ce(Ut,ce,function(){return this});var ir=Object.getPrototypeOf,lr=ir&&ir(ir(Lr([])));lr&&lr!==pe&&Z.call(lr,ce)&&(Ut=lr);var Sr=Ot.prototype=st.prototype=Object.create(Ut);function mt(pt){["next","throw","return"].forEach(function(qt){Ce(pt,qt,function(vr){return this._invoke(qt,vr)})})}function or(pt,qt){function vr(fr,gr,dn,Qt){var sr=ge(pt[fr],pt,gr);if(sr.type!=="throw"){var Qr=sr.arg,Cn=Qr.value;return Cn&&Object(R.a)(Cn)=="object"&&Z.call(Cn,"__await")?qt.resolve(Cn.__await).then(function(Fn){vr("next",Fn,dn,Qt)},function(Fn){vr("throw",Fn,dn,Qt)}):qt.resolve(Cn).then(function(Fn){Qr.value=Fn,dn(Qr)},function(Fn){return vr("throw",Fn,dn,Qt)})}Qt(sr.arg)}var pn;Y(this,"_invoke",{value:function(gr,dn){function Qt(){return new qt(function(sr,Qr){vr(gr,dn,sr,Qr)})}return pn=pn?pn.then(Qt,Qt):Qt()}})}function et(pt,qt,vr){var pn=Oe;return function(fr,gr){if(pn===lt)throw new Error("Generator is already running");if(pn===tt){if(fr==="throw")throw gr;return{value:le,done:!0}}for(vr.method=fr,vr.arg=gr;;){var dn=vr.delegate;if(dn){var Qt=ur(dn,vr);if(Qt){if(Qt===ke)continue;return Qt}}if(vr.method==="next")vr.sent=vr._sent=vr.arg;else if(vr.method==="throw"){if(pn===Oe)throw pn=tt,vr.arg;vr.dispatchException(vr.arg)}else vr.method==="return"&&vr.abrupt("return",vr.arg);pn=lt;var sr=ge(pt,qt,vr);if(sr.type==="normal"){if(pn=vr.done?tt:Je,sr.arg===ke)continue;return{value:sr.arg,done:vr.done}}sr.type==="throw"&&(pn=tt,vr.method="throw",vr.arg=sr.arg)}}}function ur(pt,qt){var vr=qt.method,pn=pt.iterator[vr];if(pn===le)return qt.delegate=null,vr==="throw"&&pt.iterator.return&&(qt.method="return",qt.arg=le,ur(pt,qt),qt.method==="throw")||vr!=="return"&&(qt.method="throw",qt.arg=new TypeError("The iterator does not provide a '"+vr+"' method")),ke;var fr=ge(pn,pt.iterator,qt.arg);if(fr.type==="throw")return qt.method="throw",qt.arg=fr.arg,qt.delegate=null,ke;var gr=fr.arg;return gr?gr.done?(qt[pt.resultName]=gr.value,qt.next=pt.nextLoc,qt.method!=="return"&&(qt.method="next",qt.arg=le),qt.delegate=null,ke):gr:(qt.method="throw",qt.arg=new TypeError("iterator result is not an object"),qt.delegate=null,ke)}function qr(pt){var qt={tryLoc:pt[0]};1 in pt&&(qt.catchLoc=pt[1]),2 in pt&&(qt.finallyLoc=pt[2],qt.afterLoc=pt[3]),this.tryEntries.push(qt)}function Fe(pt){var qt=pt.completion||{};qt.type="normal",delete qt.arg,pt.completion=qt}function $t(pt){this.tryEntries=[{tryLoc:"root"}],pt.forEach(qr,this),this.reset(!0)}function Lr(pt){if(pt||pt===""){var qt=pt[ce];if(qt)return qt.call(pt);if(typeof pt.next=="function")return pt;if(!isNaN(pt.length)){var vr=-1,pn=function fr(){for(;++vr<pt.length;)if(Z.call(pt,vr))return fr.value=pt[vr],fr.done=!1,fr;return fr.value=le,fr.done=!0,fr};return pn.next=pn}}throw new TypeError(Object(R.a)(pt)+" is not iterable")}return Ve.prototype=Ot,Y(Sr,"constructor",{value:Ot,configurable:!0}),Y(Ot,"constructor",{value:Ve,configurable:!0}),Ve.displayName=Ce(Ot,Ee,"GeneratorFunction"),Xe.isGeneratorFunction=function(pt){var qt=typeof pt=="function"&&pt.constructor;return!!qt&&(qt===Ve||(qt.displayName||qt.name)==="GeneratorFunction")},Xe.mark=function(pt){return Object.setPrototypeOf?Object.setPrototypeOf(pt,Ot):(pt.__proto__=Ot,Ce(pt,Ee,"GeneratorFunction")),pt.prototype=Object.create(Sr),pt},Xe.awrap=function(pt){return{__await:pt}},mt(or.prototype),Ce(or.prototype,ye,function(){return this}),Xe.AsyncIterator=or,Xe.async=function(pt,qt,vr,pn,fr){fr===void 0&&(fr=Promise);var gr=new or(ue(pt,qt,vr,pn),fr);return Xe.isGeneratorFunction(qt)?gr:gr.next().then(function(dn){return dn.done?dn.value:gr.next()})},mt(Sr),Ce(Sr,Ee,"Generator"),Ce(Sr,ce,function(){return this}),Ce(Sr,"toString",function(){return"[object Generator]"}),Xe.keys=function(pt){var qt=Object(pt),vr=[];for(var pn in qt)vr.push(pn);return vr.reverse(),function fr(){for(;vr.length;){var gr=vr.pop();if(gr in qt)return fr.value=gr,fr.done=!1,fr}return fr.done=!0,fr}},Xe.values=Lr,$t.prototype={constructor:$t,reset:function(qt){if(this.prev=0,this.next=0,this.sent=this._sent=le,this.done=!1,this.delegate=null,this.method="next",this.arg=le,this.tryEntries.forEach(Fe),!qt)for(var vr in this)vr.charAt(0)==="t"&&Z.call(this,vr)&&!isNaN(+vr.slice(1))&&(this[vr]=le)},stop:function(){this.done=!0;var qt=this.tryEntries[0].completion;if(qt.type==="throw")throw qt.arg;return this.rval},dispatchException:function(qt){if(this.done)throw qt;var vr=this;function pn(Qr,Cn){return dn.type="throw",dn.arg=qt,vr.next=Qr,Cn&&(vr.method="next",vr.arg=le),!!Cn}for(var fr=this.tryEntries.length-1;fr>=0;--fr){var gr=this.tryEntries[fr],dn=gr.completion;if(gr.tryLoc==="root")return pn("end");if(gr.tryLoc<=this.prev){var Qt=Z.call(gr,"catchLoc"),sr=Z.call(gr,"finallyLoc");if(Qt&&sr){if(this.prev<gr.catchLoc)return pn(gr.catchLoc,!0);if(this.prev<gr.finallyLoc)return pn(gr.finallyLoc)}else if(Qt){if(this.prev<gr.catchLoc)return pn(gr.catchLoc,!0)}else{if(!sr)throw new Error("try statement without catch or finally");if(this.prev<gr.finallyLoc)return pn(gr.finallyLoc)}}}},abrupt:function(qt,vr){for(var pn=this.tryEntries.length-1;pn>=0;--pn){var fr=this.tryEntries[pn];if(fr.tryLoc<=this.prev&&Z.call(fr,"finallyLoc")&&this.prev<fr.finallyLoc){var gr=fr;break}}gr&&(qt==="break"||qt==="continue")&&gr.tryLoc<=vr&&vr<=gr.finallyLoc&&(gr=null);var dn=gr?gr.completion:{};return dn.type=qt,dn.arg=vr,gr?(this.method="next",this.next=gr.finallyLoc,ke):this.complete(dn)},complete:function(qt,vr){if(qt.type==="throw")throw qt.arg;return qt.type==="break"||qt.type==="continue"?this.next=qt.arg:qt.type==="return"?(this.rval=this.arg=qt.arg,this.method="return",this.next="end"):qt.type==="normal"&&vr&&(this.next=vr),ke},finish:function(qt){for(var vr=this.tryEntries.length-1;vr>=0;--vr){var pn=this.tryEntries[vr];if(pn.finallyLoc===qt)return this.complete(pn.completion,pn.afterLoc),Fe(pn),ke}},catch:function(qt){for(var vr=this.tryEntries.length-1;vr>=0;--vr){var pn=this.tryEntries[vr];if(pn.tryLoc===qt){var fr=pn.completion;if(fr.type==="throw"){var gr=fr.arg;Fe(pn)}return gr}}throw new Error("illegal catch attempt")},delegateYield:function(qt,vr,pn){return this.delegate={iterator:Lr(qt),resultName:vr,nextLoc:pn},this.method==="next"&&(this.arg=le),ke}},Xe}var P=i("HaE+"),X=i("dm2S"),M=["measure","alignPre","align",null,"motion"],z=function(le,Xe){var pe=Object(X.a)(null),Z=Object(x.a)(pe,2),Y=Z[0],ne=Z[1],ce=Object(o.useRef)();function ye(ue){ne(ue,!0)}function Ee(){a.a.cancel(ce.current)}function Ce(ue){Ee(),ce.current=Object(a.a)(function(){ye(function(ge){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return ge}),ue==null||ue()})}return Object(o.useEffect)(function(){ye("measure")},[le]),Object(o.useEffect)(function(){switch(Y){case"measure":Xe();break;default:}Y&&(ce.current=Object(a.a)(Object(P.a)(B().mark(function ue(){var ge,Oe;return B().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:ge=M.indexOf(Y),Oe=M[ge+1],Oe&&ge!==-1&&ye(Oe);case 3:case"end":return lt.stop()}},ue)}))))},[Y]),Object(o.useEffect)(function(){return function(){Ee()}},[]),[Y,Ce]},W=function(le){var Xe=o.useState({width:0,height:0}),pe=Object(x.a)(Xe,2),Z=pe[0],Y=pe[1];function ne(ye){var Ee=ye.offsetWidth,Ce=ye.offsetHeight,ue=ye.getBoundingClientRect(),ge=ue.width,Oe=ue.height;Math.abs(Ee-ge)<1&&Math.abs(Ce-Oe)<1&&(Ee=ge,Ce=Oe),Y({width:Ee,height:Ce})}var ce=o.useMemo(function(){var ye={};if(le){var Ee=Z.width,Ce=Z.height;le.indexOf("height")!==-1&&Ce?ye.height=Ce:le.indexOf("minHeight")!==-1&&Ce&&(ye.minHeight=Ce),le.indexOf("width")!==-1&&Ee?ye.width=Ee:le.indexOf("minWidth")!==-1&&Ee&&(ye.minWidth=Ee)}return ye},[le,Z]);return[ce,ne]},H=o.forwardRef(function(le,Xe){var pe=le.visible,Z=le.prefixCls,Y=le.className,ne=le.style,ce=le.children,ye=le.zIndex,Ee=le.stretch,Ce=le.destroyPopupOnHide,ue=le.forceRender,ge=le.align,Oe=le.point,Je=le.getRootDomNode,lt=le.getClassNameFromAlign,tt=le.onAlign,ke=le.onMouseEnter,st=le.onMouseLeave,Ve=le.onMouseDown,Ot=le.onTouchStart,Ut=le.onClick,ir=Object(o.useRef)(),lr=Object(o.useRef)(),Sr=Object(o.useState)(),mt=Object(x.a)(Sr,2),or=mt[0],et=mt[1],ur=W(Ee),qr=Object(x.a)(ur,2),Fe=qr[0],$t=qr[1];function Lr(){Ee&&$t(Je())}var pt=z(pe,Lr),qt=Object(x.a)(pt,2),vr=qt[0],pn=qt[1],fr=Object(o.useState)(0),gr=Object(x.a)(fr,2),dn=gr[0],Qt=gr[1],sr=Object(o.useRef)();Object(F.a)(function(){vr==="alignPre"&&Qt(0)},[vr]);function Qr(){return Oe||Je}function Cn(){var vt;(vt=ir.current)===null||vt===void 0||vt.forceAlign()}function Fn(vt,_e){var Ne=lt(_e);or!==Ne&&et(Ne),Qt(function(Ie){return Ie+1}),vr==="align"&&(tt==null||tt(vt,_e))}Object(F.a)(function(){vr==="align"&&(dn<3?Cn():pn(function(){var vt;(vt=sr.current)===null||vt===void 0||vt.call(sr)}))},[dn]);var ti=Object(y.a)({},C(le));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(vt){var _e=ti[vt];ti[vt]=function(Ne,Ie){return pn(),_e==null?void 0:_e(Ne,Ie)}});function ki(){return new Promise(function(vt){sr.current=vt})}o.useEffect(function(){!ti.motionName&&vr==="motion"&&pn()},[ti.motionName,vr]),o.useImperativeHandle(Xe,function(){return{forceAlign:Cn,getElement:function(){return lr.current}}});var Dn=Object(y.a)(Object(y.a)({},Fe),{},{zIndex:ye,opacity:vr==="motion"||vr==="stable"||!pe?void 0:0,pointerEvents:!pe&&vr!=="stable"?"none":void 0},ne),Bn=!0;ge!=null&&ge.points&&(vr==="align"||vr==="stable")&&(Bn=!1);var Ft=ce;return o.Children.count(ce)>1&&(Ft=o.createElement("div",{className:"".concat(Z,"-content")},ce)),o.createElement(E.b,Object(p.a)({visible:pe,ref:lr,leavedClassName:"".concat(Z,"-hidden")},ti,{onAppearPrepare:ki,onEnterPrepare:ki,removeOnLeave:Ce,forceRender:ue}),function(vt,_e){var Ne=vt.className,Ie=vt.style,Ze=g()(Z,Y,or,Ne);return o.createElement(O.a,{target:Qr(),key:"popup",ref:ir,monitorWindowResize:!0,disabled:Bn,align:ge,onAlign:Fn},o.createElement("div",{ref:_e,className:Ze,onMouseEnter:ke,onMouseLeave:st,onMouseDownCapture:Ve,onTouchStartCapture:Ot,onClick:Ut,style:Object(y.a)(Object(y.a)({},Ie),Dn)},Ft))})});H.displayName="PopupInner";var V=H,Q=o.forwardRef(function(le,Xe){var pe=le.prefixCls,Z=le.visible,Y=le.zIndex,ne=le.children,ce=le.mobile;ce=ce===void 0?{}:ce;var ye=ce.popupClassName,Ee=ce.popupStyle,Ce=ce.popupMotion,ue=Ce===void 0?{}:Ce,ge=ce.popupRender,Oe=le.onClick,Je=o.useRef();o.useImperativeHandle(Xe,function(){return{forceAlign:function(){},getElement:function(){return Je.current}}});var lt=Object(y.a)({zIndex:Y},Ee),tt=ne;return o.Children.count(ne)>1&&(tt=o.createElement("div",{className:"".concat(pe,"-content")},ne)),ge&&(tt=ge(tt)),o.createElement(E.b,Object(p.a)({visible:Z,ref:Je,removeOnLeave:!0},ue),function(ke,st){var Ve=ke.className,Ot=ke.style,Ut=g()(pe,ye,Ve);return o.createElement("div",{ref:st,className:Ut,onClick:Oe,style:Object(y.a)(Object(y.a)({},Ot),lt)},tt)})});Q.displayName="MobilePopupInner";var G=Q,ee=["visible","mobile"],q=o.forwardRef(function(le,Xe){var pe=le.visible,Z=le.mobile,Y=Object(T.a)(le,ee),ne=Object(o.useState)(pe),ce=Object(x.a)(ne,2),ye=ce[0],Ee=ce[1],Ce=Object(o.useState)(!1),ue=Object(x.a)(Ce,2),ge=ue[0],Oe=ue[1],Je=Object(y.a)(Object(y.a)({},Y),{},{visible:ye});Object(o.useEffect)(function(){Ee(pe),pe&&Z&&Oe(_())},[pe,Z]);var lt=ge?o.createElement(G,Object(p.a)({},Je,{mobile:Z,ref:Xe})):o.createElement(V,Object(p.a)({},Je,{ref:Xe}));return o.createElement("div",null,o.createElement(I,Je),lt)});q.displayName="Popup";var se=q,re=o.createContext(null),Ae=re;function Te(){}function Re(){return""}function Ge(le){return le?le.ownerDocument:window.document}var Ue=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function nt(le){var Xe=function(pe){Object(f.a)(Y,pe);var Z=Object(d.a)(Y);function Y(ne){var ce;Object(S.a)(this,Y),ce=Z.call(this,ne),Object(u.a)(Object(m.a)(ce),"popupRef",o.createRef()),Object(u.a)(Object(m.a)(ce),"triggerRef",o.createRef()),Object(u.a)(Object(m.a)(ce),"portalContainer",void 0),Object(u.a)(Object(m.a)(ce),"attachId",void 0),Object(u.a)(Object(m.a)(ce),"clickOutsideHandler",void 0),Object(u.a)(Object(m.a)(ce),"touchOutsideHandler",void 0),Object(u.a)(Object(m.a)(ce),"contextMenuOutsideHandler1",void 0),Object(u.a)(Object(m.a)(ce),"contextMenuOutsideHandler2",void 0),Object(u.a)(Object(m.a)(ce),"mouseDownTimeout",void 0),Object(u.a)(Object(m.a)(ce),"focusTime",void 0),Object(u.a)(Object(m.a)(ce),"preClickTime",void 0),Object(u.a)(Object(m.a)(ce),"preTouchTime",void 0),Object(u.a)(Object(m.a)(ce),"delayTimer",void 0),Object(u.a)(Object(m.a)(ce),"hasPopupMouseDown",void 0),Object(u.a)(Object(m.a)(ce),"onMouseEnter",function(Ee){var Ce=ce.props.mouseEnterDelay;ce.fireEvents("onMouseEnter",Ee),ce.delaySetPopupVisible(!0,Ce,Ce?null:Ee)}),Object(u.a)(Object(m.a)(ce),"onMouseMove",function(Ee){ce.fireEvents("onMouseMove",Ee),ce.setPoint(Ee)}),Object(u.a)(Object(m.a)(ce),"onMouseLeave",function(Ee){ce.fireEvents("onMouseLeave",Ee),ce.delaySetPopupVisible(!1,ce.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(ce),"onPopupMouseEnter",function(){ce.clearDelayTimer()}),Object(u.a)(Object(m.a)(ce),"onPopupMouseLeave",function(Ee){var Ce;if(Ee.relatedTarget&&!Ee.relatedTarget.setTimeout&&Object(e.a)((Ce=ce.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement(),Ee.relatedTarget))return;ce.delaySetPopupVisible(!1,ce.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(ce),"onFocus",function(Ee){ce.fireEvents("onFocus",Ee),ce.clearDelayTimer(),ce.isFocusToShow()&&(ce.focusTime=Date.now(),ce.delaySetPopupVisible(!0,ce.props.focusDelay))}),Object(u.a)(Object(m.a)(ce),"onMouseDown",function(Ee){ce.fireEvents("onMouseDown",Ee),ce.preClickTime=Date.now()}),Object(u.a)(Object(m.a)(ce),"onTouchStart",function(Ee){ce.fireEvents("onTouchStart",Ee),ce.preTouchTime=Date.now()}),Object(u.a)(Object(m.a)(ce),"onBlur",function(Ee){ce.fireEvents("onBlur",Ee),ce.clearDelayTimer(),ce.isBlurToHide()&&ce.delaySetPopupVisible(!1,ce.props.blurDelay)}),Object(u.a)(Object(m.a)(ce),"onContextMenu",function(Ee){Ee.preventDefault(),ce.fireEvents("onContextMenu",Ee),ce.setPopupVisible(!0,Ee)}),Object(u.a)(Object(m.a)(ce),"onContextMenuClose",function(){ce.isContextMenuToShow()&&ce.close()}),Object(u.a)(Object(m.a)(ce),"onClick",function(Ee){if(ce.fireEvents("onClick",Ee),ce.focusTime){var Ce;if(ce.preClickTime&&ce.preTouchTime?Ce=Math.min(ce.preClickTime,ce.preTouchTime):ce.preClickTime?Ce=ce.preClickTime:ce.preTouchTime&&(Ce=ce.preTouchTime),Math.abs(Ce-ce.focusTime)<20)return;ce.focusTime=0}ce.preClickTime=0,ce.preTouchTime=0,ce.isClickToShow()&&(ce.isClickToHide()||ce.isBlurToHide())&&Ee&&Ee.preventDefault&&Ee.preventDefault();var ue=!ce.state.popupVisible;(ce.isClickToHide()&&!ue||ue&&ce.isClickToShow())&&ce.setPopupVisible(!ce.state.popupVisible,Ee)}),Object(u.a)(Object(m.a)(ce),"onPopupMouseDown",function(){if(ce.hasPopupMouseDown=!0,clearTimeout(ce.mouseDownTimeout),ce.mouseDownTimeout=window.setTimeout(function(){ce.hasPopupMouseDown=!1},0),ce.context){var Ee;(Ee=ce.context).onPopupMouseDown.apply(Ee,arguments)}}),Object(u.a)(Object(m.a)(ce),"onDocumentClick",function(Ee){if(ce.props.mask&&!ce.props.maskClosable)return;var Ce=Ee.target,ue=ce.getRootDomNode(),ge=ce.getPopupDomNode();(!Object(e.a)(ue,Ce)||ce.isContextMenuOnly())&&!Object(e.a)(ge,Ce)&&!ce.hasPopupMouseDown&&ce.close()}),Object(u.a)(Object(m.a)(ce),"getRootDomNode",function(){var Ee=ce.props.getTriggerDOMNode;if(Ee)return Ee(ce.triggerRef.current);try{var Ce=Object(l.a)(ce.triggerRef.current);if(Ce)return Ce}catch(ue){}return t.a.findDOMNode(Object(m.a)(ce))}),Object(u.a)(Object(m.a)(ce),"getPopupClassNameFromAlign",function(Ee){var Ce=[],ue=ce.props,ge=ue.popupPlacement,Oe=ue.builtinPlacements,Je=ue.prefixCls,lt=ue.alignPoint,tt=ue.getPopupClassNameFromAlign;return ge&&Oe&&Ce.push(w(Oe,Je,Ee,lt)),tt&&Ce.push(tt(Ee)),Ce.join(" ")}),Object(u.a)(Object(m.a)(ce),"getComponent",function(){var Ee=ce.props,Ce=Ee.prefixCls,ue=Ee.destroyPopupOnHide,ge=Ee.popupClassName,Oe=Ee.onPopupAlign,Je=Ee.popupMotion,lt=Ee.popupAnimation,tt=Ee.popupTransitionName,ke=Ee.popupStyle,st=Ee.mask,Ve=Ee.maskAnimation,Ot=Ee.maskTransitionName,Ut=Ee.maskMotion,ir=Ee.zIndex,lr=Ee.popup,Sr=Ee.stretch,mt=Ee.alignPoint,or=Ee.mobile,et=Ee.forceRender,ur=Ee.onPopupClick,qr=ce.state,Fe=qr.popupVisible,$t=qr.point,Lr=ce.getPopupAlign(),pt={};return ce.isMouseEnterToShow()&&(pt.onMouseEnter=ce.onPopupMouseEnter),ce.isMouseLeaveToHide()&&(pt.onMouseLeave=ce.onPopupMouseLeave),pt.onMouseDown=ce.onPopupMouseDown,pt.onTouchStart=ce.onPopupMouseDown,o.createElement(se,Object(p.a)({prefixCls:Ce,destroyPopupOnHide:ue,visible:Fe,point:mt&&$t,className:ge,align:Lr,onAlign:Oe,animation:lt,getClassNameFromAlign:ce.getPopupClassNameFromAlign},pt,{stretch:Sr,getRootDomNode:ce.getRootDomNode,style:ke,mask:st,zIndex:ir,transitionName:tt,maskAnimation:Ve,maskTransitionName:Ot,maskMotion:Ut,ref:ce.popupRef,motion:Je,mobile:or,forceRender:et,onClick:ur}),typeof lr=="function"?lr():lr)}),Object(u.a)(Object(m.a)(ce),"attachParent",function(Ee){a.a.cancel(ce.attachId);var Ce=ce.props,ue=Ce.getPopupContainer,ge=Ce.getDocument,Oe=ce.getRootDomNode(),Je;ue?(Oe||ue.length===0)&&(Je=ue(Oe)):Je=ge(ce.getRootDomNode()).body,Je?Je.appendChild(Ee):ce.attachId=Object(a.a)(function(){ce.attachParent(Ee)})}),Object(u.a)(Object(m.a)(ce),"getContainer",function(){if(!ce.portalContainer){var Ee=ce.props.getDocument,Ce=Ee(ce.getRootDomNode()).createElement("div");Ce.style.position="absolute",Ce.style.top="0",Ce.style.left="0",Ce.style.width="100%",ce.portalContainer=Ce}return ce.attachParent(ce.portalContainer),ce.portalContainer}),Object(u.a)(Object(m.a)(ce),"setPoint",function(Ee){var Ce=ce.props.alignPoint;if(!Ce||!Ee)return;ce.setState({point:{pageX:Ee.pageX,pageY:Ee.pageY}})}),Object(u.a)(Object(m.a)(ce),"handlePortalUpdate",function(){ce.state.prevPopupVisible!==ce.state.popupVisible&&ce.props.afterPopupVisibleChange(ce.state.popupVisible)}),Object(u.a)(Object(m.a)(ce),"triggerContextValue",{onPopupMouseDown:ce.onPopupMouseDown});var ye;return"popupVisible"in ne?ye=!!ne.popupVisible:ye=!!ne.defaultPopupVisible,ce.state={prevPopupVisible:ye,popupVisible:ye},Ue.forEach(function(Ee){ce["fire".concat(Ee)]=function(Ce){ce.fireEvents(Ee,Ce)}}),ce}return Object(v.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ce=this.props,ye=this.state;if(ye.popupVisible){var Ee;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ee=ce.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(s.a)(Ee,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ee=Ee||ce.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(s.a)(Ee,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ee=Ee||ce.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(s.a)(Ee,"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),a.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var ce;return((ce=this.popupRef.current)===null||ce===void 0?void 0:ce.getElement())||null}},{key:"getPopupAlign",value:function(){var ce=this.props,ye=ce.popupPlacement,Ee=ce.popupAlign,Ce=ce.builtinPlacements;return ye&&Ce?b(Ce,ye,Ee):Ee}},{key:"setPopupVisible",value:function(ce,ye){var Ee=this.props.alignPoint,Ce=this.state.popupVisible;this.clearDelayTimer(),Ce!==ce&&("popupVisible"in this.props||this.setState({popupVisible:ce,prevPopupVisible:Ce}),this.props.onPopupVisibleChange(ce)),Ee&&ye&&ce&&this.setPoint(ye)}},{key:"delaySetPopupVisible",value:function(ce,ye,Ee){var Ce=this,ue=ye*1e3;if(this.clearDelayTimer(),ue){var ge=Ee?{pageX:Ee.pageX,pageY:Ee.pageY}:null;this.delayTimer=window.setTimeout(function(){Ce.setPopupVisible(ce,ge),Ce.clearDelayTimer()},ue)}else this.setPopupVisible(ce,Ee)}},{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(ce){var ye=this.props.children.props,Ee=this.props;return ye[ce]&&Ee[ce]?this["fire".concat(ce)]:ye[ce]||Ee[ce]}},{key:"isClickToShow",value:function(){var ce=this.props,ye=ce.action,Ee=ce.showAction;return ye.indexOf("click")!==-1||Ee.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var ce=this.props.action;return ce==="contextMenu"||ce.length===1&&ce[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var ce=this.props,ye=ce.action,Ee=ce.showAction;return ye.indexOf("contextMenu")!==-1||Ee.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var ce=this.props,ye=ce.action,Ee=ce.hideAction;return ye.indexOf("click")!==-1||Ee.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var ce=this.props,ye=ce.action,Ee=ce.showAction;return ye.indexOf("hover")!==-1||Ee.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var ce=this.props,ye=ce.action,Ee=ce.hideAction;return ye.indexOf("hover")!==-1||Ee.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var ce=this.props,ye=ce.action,Ee=ce.showAction;return ye.indexOf("focus")!==-1||Ee.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var ce=this.props,ye=ce.action,Ee=ce.hideAction;return ye.indexOf("focus")!==-1||Ee.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var ce;(ce=this.popupRef.current)===null||ce===void 0||ce.forceAlign()}}},{key:"fireEvents",value:function(ce,ye){var Ee=this.props.children.props[ce];Ee&&Ee(ye);var Ce=this.props[ce];Ce&&Ce(ye)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var ce=this.state.popupVisible,ye=this.props,Ee=ye.children,Ce=ye.forceRender,ue=ye.alignPoint,ge=ye.className,Oe=ye.autoDestroy,Je=o.Children.only(Ee),lt={key:"trigger"};this.isContextMenuToShow()?lt.onContextMenu=this.onContextMenu:lt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(lt.onClick=this.onClick,lt.onMouseDown=this.onMouseDown,lt.onTouchStart=this.onTouchStart):(lt.onClick=this.createTwoChains("onClick"),lt.onMouseDown=this.createTwoChains("onMouseDown"),lt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(lt.onMouseEnter=this.onMouseEnter,ue&&(lt.onMouseMove=this.onMouseMove)):lt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?lt.onMouseLeave=this.onMouseLeave:lt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(lt.onFocus=this.onFocus,lt.onBlur=this.onBlur):(lt.onFocus=this.createTwoChains("onFocus"),lt.onBlur=this.createTwoChains("onBlur"));var tt=g()(Je&&Je.props&&Je.props.className,ge);tt&&(lt.className=tt);var ke=Object(y.a)({},lt);Object(r.c)(Je)&&(ke.ref=Object(r.a)(this.triggerRef,Je.ref));var st=o.cloneElement(Je,ke),Ve;return(ce||this.popupRef.current||Ce)&&(Ve=o.createElement(le,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!ce&&Oe&&(Ve=null),o.createElement(Ae.Provider,{value:this.triggerContextValue},st,Ve)}}],[{key:"getDerivedStateFromProps",value:function(ce,ye){var Ee=ce.popupVisible,Ce={};return Ee!==void 0&&ye.popupVisible!==Ee&&(Ce.popupVisible=Ee,Ce.prevPopupVisible=ye.popupVisible),Ce}}]),Y}(o.Component);return Object(u.a)(Xe,"contextType",Ae),Object(u.a)(Xe,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Re,getDocument:Ge,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}),Xe}var Le=D.a=nt(c.a)},ugBc:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},v56E:function(k,D,i){},v5uJ:function(k,D,i){var y=i("ProS"),p=i("2B6p"),S=p.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(v,m){m.eachComponent({mainType:"series",subType:"tree",query:v},function(f){var d=v.dataIndex,u=f.getData().tree,o=u.getNodeByDataIndex(d);o.isExpand=!o.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(v,m){m.eachComponent({mainType:"series",subType:"tree",query:v},function(f){var d=f.coordinateSystem,u=S(d,v);f.setCenter&&f.setCenter(u.center),f.setZoom&&f.setZoom(u.zoom)})})},"vF/C":function(k,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("visualMap",function(p){return!p.categories&&(!(p.pieces?p.pieces.length>0:p.splitNumber>0)||p.calculable)?"continuous":"piecewise"})},vKoX:function(k,D,i){var y=i("SrGk"),p=i("bYtY");function S(f,d){y.call(this,f,d,["filter"],"__filter_in_use__","_shadowDom")}p.inherits(S,y),S.prototype.addWithoutUpdate=function(f,d){if(d&&v(d.style)){var u;if(d._shadowDom){u=d._shadowDom;var o=this.getDefs(!0);o.contains(d._shadowDom)||this.addDom(u)}else u=this.add(d);this.markUsed(d);var n=u.getAttribute("id");f.style.filter="url(#"+n+")"}},S.prototype.add=function(f){var d=this.createElement("filter");return f._shadowDomId=f._shadowDomId||this.nextId++,d.setAttribute("id","zr"+this._zrId+"-shadow-"+f._shadowDomId),this.updateDom(f,d),this.addDom(d),d},S.prototype.update=function(f,d){var u=d.style;if(v(u)){var o=this;y.prototype.update.call(this,d,function(){o.updateDom(d,d._shadowDom)})}else this.remove(f,d)},S.prototype.remove=function(f,d){d._shadowDomId!=null&&(this.removeDom(f),f.style.filter="")},S.prototype.updateDom=function(f,d){var u=d.getElementsByTagName("feDropShadow");u.length===0?u=this.createElement("feDropShadow"):u=u[0];var o=f.style,n=f.scale&&f.scale[0]||1,t=f.scale&&f.scale[1]||1,a,e,l,r;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)a=o.shadowOffsetX||0,e=o.shadowOffsetY||0,l=o.shadowBlur,r=o.shadowColor;else if(o.textShadowBlur)a=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,l=o.textShadowBlur,r=o.textShadowColor;else{this.removeDom(d,o);return}u.setAttribute("dx",a/n),u.setAttribute("dy",e/t),u.setAttribute("flood-color",r);var s=l/2/n,c=l/2/t,h=s+" "+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),f._shadowDom=d},S.prototype.markUsed=function(f){f._shadowDom&&y.prototype.markUsed.call(this,f._shadowDom)};function v(f){return f&&(f.shadowBlur||f.shadowOffsetX||f.shadowOffsetY||f.textShadowBlur||f.textShadowOffsetX||f.textShadowOffsetY)}var m=S;k.exports=m},vL6D:function(k,D,i){var y=i("bYtY"),p=i("+rIm"),S=i("IwbS"),v=i("7bkD"),m=i("Znkb"),f=i("WN+l"),d=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],n=["splitArea","splitLine"],t=m.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,r,s){var c=this.group;c.removeAll();var h=this._axisGroup;this._axisGroup=new S.Group;var g=v.layout(e),A=new p(e,g);y.each(o,A.add,A),c.add(this._axisGroup),c.add(A.getGroup()),y.each(n,function(b){e.get(b+".show")&&this["_"+b](e)},this),S.groupTransition(h,this._axisGroup,e),t.superCall(this,"render",e,l,r,s)},remove:function(){u(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("width"),h=s.get("color");h=h instanceof Array?h:[h];for(var g=e.coordinateSystem.getRect(),A=l.isHorizontal(),b=[],w=0,x=l.getTicksCoords({tickModel:r}),T=[],_=[],E=0;E<x.length;++E){var C=l.toGlobalCoord(x[E].coord);A?(T[0]=C,T[1]=g.y,_[0]=C,_[1]=g.y+g.height):(T[0]=g.x,T[1]=C,_[0]=g.x+g.width,_[1]=C);var I=w++%h.length;b[I]=b[I]||[],b[I].push(new S.Line({subPixelOptimize:!0,shape:{x1:T[0],y1:T[1],x2:_[0],y2:_[1]},style:{lineWidth:c},silent:!0}))}for(var E=0;E<b.length;++E)this.group.add(S.mergePath(b[E],{style:{stroke:h[E%h.length],lineDash:s.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){d(this,this._axisGroup,e,e)}}),a=t;k.exports=a},vWvF:function(k,D,i){var y=i("Bq2U"),p=i("SUKs"),S=i("bYtY"),v=S.isString,m=S.isFunction,f=S.isObject,d=S.isArrayLike,u=S.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(r,s){var c,h=!1,g=this,A=this.__zr;if(r){var b=r.split("."),w=g;h=b[0]==="shape";for(var x=0,T=b.length;x<T;x++){if(!w)continue;w=w[b[x]]}w&&(c=w)}else c=g;if(!c){p('Property "'+r+'" is not existed in element '+g.id);return}var _=g.animators,E=new y(c,s);return E.during(function(C){g.dirty(h)}).done(function(){_.splice(u(_,E),1)}),_.push(E),A&&A.animation.addAnimator(E),E},stopAnimation:function(r){for(var s=this.animators,c=s.length,h=0;h<c;h++)s[h].stop(r);return s.length=0,this},animateTo:function(r,s,c,h,g,A){n(this,r,s,c,h,g,A)},animateFrom:function(r,s,c,h,g,A){n(this,r,s,c,h,g,A,!0)}};function n(l,r,s,c,h,g,A,b){v(c)?(g=h,h=c,c=0):m(h)?(g=h,h="linear",c=0):m(c)?(g=c,c=0):m(s)?(g=s,s=500):s||(s=500),l.stopAnimation(),t(l,"",l,r,s,c,b);var w=l.animators.slice(),x=w.length;function T(){x--,x||g&&g()}x||g&&g();for(var _=0;_<w.length;_++)w[_].done(T).start(h,A)}function t(l,r,s,c,h,g,A){var b={},w=0;for(var x in c){if(!c.hasOwnProperty(x))continue;s[x]!=null?f(c[x])&&!d(c[x])?t(l,r?r+"."+x:x,s[x],c[x],h,g,A):(A?(b[x]=s[x],a(l,r,x,c[x])):b[x]=c[x],w++):c[x]!=null&&!A&&a(l,r,x,c[x])}w>0&&l.animate(r,!1).when(h==null?500:h,b).delay(g||0)}function a(l,r,s,c){if(!r)l.attr(s,c);else{var h={};h[r]={},h[r][s]=c,l.attr(h)}}var e=o;k.exports=e},vZ6x:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),v=i("IwbS"),m=i("4NO4"),f=i("9KIM"),d=S.each,u=S.indexOf,o=S.curry,n=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function a(E,C,I){var O=this._targetInfoList=[],F={},R=r(C,E);d(s,function(B,P){(!I||!I.include||u(I.include,P)>=0)&&B(R,O,F)})}var e=a.prototype;e.setOutputRanges=function(E,C){this.matchOutputRanges(E,C,function(I,O,F){if((I.coordRanges||(I.coordRanges=[])).push(O),!I.coordRange){I.coordRange=O;var R=g[I.brushType](0,F,O);I.__rangeOffset={offset:b[I.brushType](R.values,I.range,[1,1]),xyMinMax:R.xyMinMax}}})},e.matchOutputRanges=function(E,C,I){d(E,function(O){var F=this.findTargetInfo(O,C);F&&F!==!0&&S.each(F.coordSyses,function(R){var B=g[O.brushType](1,R,O.range);I(O,B.values,R,C)})},this)},e.setInputRanges=function(E,C){d(E,function(I){var O=this.findTargetInfo(I,C);if(I.range=I.range||[],O&&O!==!0){I.panelId=O.panelId;var F=g[I.brushType](0,O.coordSys,I.coordRange),R=I.__rangeOffset;I.range=R?b[I.brushType](F.values,R.offset,x(F.xyMinMax,R.xyMinMax)):F.values}},this)},e.makePanelOpts=function(E,C){return S.map(this._targetInfoList,function(I){var O=I.getPanelRect();return{panelId:I.panelId,defaultBrushType:C&&C(I),clipPath:f.makeRectPanelClipPath(O),isTargetByCursor:f.makeRectIsTargetByCursor(O,E,I.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(O)}})},e.controlSeries=function(E,C,I){var O=this.findTargetInfo(E,I);return O===!0||O&&u(O.coordSyses,C.coordinateSystem)>=0},e.findTargetInfo=function(E,C){for(var I=this._targetInfoList,O=r(C,E),F=0;F<I.length;F++){var R=I[F],B=E.panelId;if(B){if(R.panelId===B)return R}else for(var F=0;F<c.length;F++)if(c[F](O,R))return R}return!0};function l(E){return E[0]>E[1]&&E.reverse(),E}function r(E,C){return m.parseFinder(E,C,{includeMainTypes:t})}var s={grid:function(E,C){var I=E.xAxisModels,O=E.yAxisModels,F=E.gridModels,R=S.createHashMap(),B={},P={};if(!I&&!O&&!F)return;d(I,function(X){var M=X.axis.grid.model;R.set(M.id,M),B[M.id]=!0}),d(O,function(X){var M=X.axis.grid.model;R.set(M.id,M),P[M.id]=!0}),d(F,function(X){R.set(X.id,X),B[X.id]=!0,P[X.id]=!0}),R.each(function(X){var M=X.coordinateSystem,z=[];d(M.getCartesians(),function(W,H){(u(I,W.getAxis("x").model)>=0||u(O,W.getAxis("y").model)>=0)&&z.push(W)}),C.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:z[0],coordSyses:z,getPanelRect:h.grid,xAxisDeclared:B[X.id],yAxisDeclared:P[X.id]})})},geo:function(E,C){d(E.geoModels,function(I){var O=I.coordinateSystem;C.push({panelId:"geo--"+I.id,geoModel:I,coordSysModel:I,coordSys:O,coordSyses:[O],getPanelRect:h.geo})})}},c=[function(E,C){var I=E.xAxisModel,O=E.yAxisModel,F=E.gridModel;return!F&&I&&(F=I.axis.grid.model),!F&&O&&(F=O.axis.grid.model),F&&F===C.gridModel},function(E,C){var I=E.geoModel;return I&&I===C.geoModel}],h={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var E=this.coordSys,C=E.getBoundingRect().clone();return C.applyTransform(v.getTransform(E)),C}},g={lineX:o(A,0),lineY:o(A,1),rect:function(E,C,I){var O=C[n[E]]([I[0][0],I[1][0]]),F=C[n[E]]([I[0][1],I[1][1]]),R=[l([O[0],F[0]]),l([O[1],F[1]])];return{values:R,xyMinMax:R}},polygon:function(E,C,I){var O=[[Infinity,-Infinity],[Infinity,-Infinity]],F=S.map(I,function(R){var B=C[n[E]](R);return O[0][0]=Math.min(O[0][0],B[0]),O[1][0]=Math.min(O[1][0],B[1]),O[0][1]=Math.max(O[0][1],B[0]),O[1][1]=Math.max(O[1][1],B[1]),B});return{values:F,xyMinMax:O}}};function A(E,C,I,O){var F=I.getAxis(["x","y"][E]),R=l(S.map([0,1],function(P){return C?F.coordToData(F.toLocalCoord(O[P])):F.toGlobalCoord(F.dataToCoord(O[P]))})),B=[];return B[E]=R,B[1-E]=[NaN,NaN],{values:R,xyMinMax:B}}var b={lineX:o(w,0),lineY:o(w,1),rect:function(E,C,I){return[[E[0][0]-I[0]*C[0][0],E[0][1]-I[0]*C[0][1]],[E[1][0]-I[1]*C[1][0],E[1][1]-I[1]*C[1][1]]]},polygon:function(E,C,I){return S.map(E,function(O,F){return[O[0]-I[0]*C[F][0],O[1]-I[1]*C[F][1]]})}};function w(E,C,I,O){return[C[0]-O[E]*I[0],C[1]-O[E]*I[1]]}function x(E,C){var I=T(E),O=T(C),F=[I[0]/O[0],I[1]/O[1]];return isNaN(F[0])&&(F[0]=1),isNaN(F[1])&&(F[1]=1),F}function T(E){return E?[E[0][1]-E[0][0],E[1][1]-E[1][0]]:[NaN,NaN]}var _=a;k.exports=_},vZI5:function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("5GhG"),v=S.seriesModelMixin,m=p.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,o){var n=u.getItemLayout(d);return n&&o.rect(n.brushRect)}});y.mixin(m,v,!0);var f=m;k.exports=f},vafp:function(k,D,i){var y=i("bYtY"),p=i("8nly");function S(f){if(!f.UTF8Encoding)return f;var d=f.UTF8Scale;d==null&&(d=1024);for(var u=f.features,o=0;o<u.length;o++)for(var n=u[o],t=n.geometry,a=t.coordinates,e=t.encodeOffsets,l=0;l<a.length;l++){var r=a[l];if(t.type==="Polygon")a[l]=v(r,e[l],d);else if(t.type==="MultiPolygon")for(var s=0;s<r.length;s++){var c=r[s];r[s]=v(c,e[l][s],d)}}return f.UTF8Encoding=!1,f}function v(f,d,u){for(var o=[],n=d[0],t=d[1],a=0;a<f.length;a+=2){var e=f.charCodeAt(a)-64,l=f.charCodeAt(a+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=n,l+=t,n=e,t=l,o.push([e/u,l/u])}return o}function m(f,d){return S(f),y.map(y.filter(f.features,function(u){return u.geometry&&u.properties&&u.geometry.coordinates.length>0}),function(u){var o=u.properties,n=u.geometry,t=n.coordinates,a=[];n.type==="Polygon"&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),n.type==="MultiPolygon"&&y.each(t,function(l){l[0]&&a.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new p(o[d||"name"],a,o.cp);return e.properties=o,e})}k.exports=m},vcCh:function(k,D,i){var y=i("ProS");i("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(p,S){S.eachComponent({mainType:"series",subType:"sankey",query:p},function(v){v.setNodePosition(p.dataIndex,[p.localX,p.localY])})})},vewr:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getPointerEvent=y,D.stopEvent=p,D.setCapture=u,D.releaseCapture=o;function y(n){return n.changedTouches?n.changedTouches[0]:n.touches?n.touches[0]:n}function p(n){n.stopPropagation(),n.preventDefault()}var S=!1,v=null;document.captureElement=null;function m(n){if(S)return;var t=new n.constructor(n.type,n);S=!0,document.captureElement?document.captureElement.dispatchEvent(t):v.dispatchEvent(t),S=!1,n.stopPropagation(),t.defaultPrevented&&n.preventDefault(),n.type==="mouseup"&&o()}function f(){var n=document.getElementById("noVNC_mouse_capture_elem");n.style.cursor=window.getComputedStyle(document.captureElement).cursor}var d=new MutationObserver(f);function u(n){if(n.setCapture)n.setCapture(),document.captureElement=n,n.addEventListener("mouseup",o);else{o();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=n,d.observe(n,{attributes:!0}),f(),t.style.display="",window.addEventListener("mousemove",m),window.addEventListener("mouseup",m)}}function o(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;v=document.captureElement,document.captureElement=null,d.disconnect();var n=document.getElementById("noVNC_mouse_capture_elem");n.style.display="none",window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",m)}}},"vk+C":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("RZPm"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},w4Tj:function(k,D,i){"use strict";i.d(D,"a",function(){return S});var y=i("oZsa");function p(v,m){for(;!Object.prototype.hasOwnProperty.call(v,m)&&!(v=Object(y.a)(v),v===null););return v}function S(v,m,f){return typeof Reflect!="undefined"&&Reflect.get?S=Reflect.get:S=function(u,o,n){var t=p(u,o);if(!t)return;var a=Object.getOwnPropertyDescriptor(t,o);return a.get?a.get.call(n):a.value},S(v,m,f||v)}},w5pM:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PlusCircleOutlined";var d=D.a=p.forwardRef(f)},w6Tc:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("apAg"));function p(v){return v&&v.__esModule?v:{default:v}}var S=y;D.default=S,k.exports=S},w7YG:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.StreamCipher,m=p.algo,f=m.RC4=v.extend({_doReset:function(){for(var n=this._key,t=n.words,a=n.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,r=0;l<256;l++){var s=l%a,c=t[s>>>2]>>>24-s%4*8&255;r=(r+e[l]+c)%256;var h=e[l];e[l]=e[r],e[r]=h}this._i=this._j=0},_doProcessBlock:function(n,t){n[t]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var o=this._S,n=this._i,t=this._j,a=0,e=0;e<4;e++){n=(n+1)%256,t=(t+o[n])%256;var l=o[n];o[n]=o[t],o[t]=l,a|=o[(o[n]+o[t])%256]<<24-e*8}return this._i=n,this._j=t,a}p.RC4=v._createHelper(f);var u=m.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var n=this.cfg.drop;n>0;n--)d.call(this)}});p.RC4Drop=v._createHelper(u)}(),y.RC4})},wCAj:function(k,D,i){"use strict";var y=i("cDf5"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("J4zp"),f=i.n(m),d=i("pVnL"),u=i.n(d),o=i("q1tI"),n=i("TSYQ"),t=i.n(n),a=i("BGR+"),e=i("rePB"),l=i("VTBJ"),r=i("KQm4"),s=i("U8pU"),c=i("ODXe"),h=i("Gytx"),g=i.n(h),A=i("Kwbf"),b=i("1OyB"),w=i("vuIU"),x=i("Ji7U"),T=i("LK+K"),_=i("m+aA"),E=i("Zm9Q"),C=i("c+Xe"),I=i("bdgK"),O="rc-observer-key",F=function(bt){Object(x.a)(Ar,bt);var mr=Object(T.a)(Ar);function Ar(){var Ur;return Object(b.a)(this,Ar),Ur=mr.apply(this,arguments),Ur.resizeObserver=null,Ur.childNode=null,Ur.currentElement=null,Ur.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Ur.onResize=function(un){var An=Ur.props.onResize,ln=un[0].target,Hn=ln.getBoundingClientRect(),Ln=Hn.width,ni=Hn.height,Ai=ln.offsetWidth,ii=ln.offsetHeight,_i=Math.floor(Ln),Ri=Math.floor(ni);if(Ur.state.width!==_i||Ur.state.height!==Ri||Ur.state.offsetWidth!==Ai||Ur.state.offsetHeight!==ii){var ji={width:_i,height:Ri,offsetWidth:Ai,offsetHeight:ii};Ur.setState(ji),An&&Promise.resolve().then(function(){An(Object(l.a)(Object(l.a)({},ji),{},{offsetWidth:Ai,offsetHeight:ii}))})}},Ur.setChildNode=function(un){Ur.childNode=un},Ur}return Object(w.a)(Ar,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var un=this.props.disabled;if(un){this.destroyObserver();return}var An=Object(_.a)(this.childNode||this),ln=An!==this.currentElement;ln&&(this.destroyObserver(),this.currentElement=An),!this.resizeObserver&&An&&(this.resizeObserver=new I.default(this.onResize),this.resizeObserver.observe(An))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var un=this.props.children,An=Object(E.a)(un);if(An.length>1)Object(A.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(An.length===0)return Object(A.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var ln=An[0];if(o.isValidElement(ln)&&Object(C.c)(ln)){var Hn=ln.ref;An[0]=o.cloneElement(ln,{ref:Object(C.a)(Hn,this.setChildNode)})}return An.length===1?An[0]:An.map(function(Ln,ni){return!o.isValidElement(Ln)||"key"in Ln&&Ln.key!==null?Ln:o.cloneElement(Ln,{key:"".concat(O,"-").concat(ni)})})}}]),Ar}(o.Component);F.displayName="ResizeObserver";var R=F,B=i("qx4F");function P(bt){return null}var X=P;function M(bt){return null}var z=M,W=i("Ff2n"),H="RC_TABLE_KEY";function V(bt){return bt==null?[]:Array.isArray(bt)?bt:[bt]}function Q(bt,mr){if(!mr&&typeof mr!="number")return bt;for(var Ar=V(mr),Ur=bt,un=0;un<Ar.length;un+=1){if(!Ur)return null;var An=Ar[un];Ur=Ur[An]}return Ur}function G(bt){var mr=[],Ar={};return bt.forEach(function(Ur){for(var un=Ur||{},An=un.key,ln=un.dataIndex,Hn=An||V(ln).join("-")||H;Ar[Hn];)Hn="".concat(Hn,"_next");Ar[Hn]=!0,mr.push(Hn)}),mr}function ee(){var bt={};function mr(An,ln){ln&&Object.keys(ln).forEach(function(Hn){var Ln=ln[Hn];Ln&&Object(s.a)(Ln)==="object"?(An[Hn]=An[Hn]||{},mr(An[Hn],Ln)):An[Hn]=Ln})}for(var Ar=arguments.length,Ur=new Array(Ar),un=0;un<Ar;un++)Ur[un]=arguments[un];return Ur.forEach(function(An){mr(bt,An)}),bt}function q(bt){return bt!=null}function se(bt){return bt&&Object(s.a)(bt)==="object"&&!Array.isArray(bt)&&!o.isValidElement(bt)}function re(bt){return typeof bt=="string"?!0:Object(C.c)(bt)}function Ae(bt,mr){var Ar,Ur=bt.prefixCls,un=bt.className,An=bt.record,ln=bt.index,Hn=bt.dataIndex,Ln=bt.render,ni=bt.children,Ai=bt.component,ii=Ai===void 0?"td":Ai,_i=bt.colSpan,Ri=bt.rowSpan,ji=bt.fixLeft,wi=bt.fixRight,Ii=bt.firstFixLeft,Oi=bt.lastFixLeft,Ui=bt.firstFixRight,Zi=bt.lastFixRight,ma=bt.appendNode,Hi=bt.additionalProps,xa=Hi===void 0?{}:Hi,Ea=bt.ellipsis,ta=bt.align,ra=bt.rowType,ga=bt.isSticky,sa="".concat(Ur,"-cell"),Ba,va;if(ni)va=ni;else{var Ia=Q(An,Hn);if(va=Ia,Ln){var za=Ln(Ia,An,ln);se(za)?(va=za.children,Ba=za.props):va=za}}Object(s.a)(va)==="object"&&!Array.isArray(va)&&!o.isValidElement(va)&&(va=null),Ea&&(Oi||Ui)&&(va=o.createElement("span",{className:"".concat(sa,"-content")},va));var Va=Ba||{},Ya=Va.colSpan,Bi=Va.rowSpan,ro=Va.style,lo=Va.className,no=Object(W.a)(Va,["colSpan","rowSpan","style","className"]),co=Ya!==void 0?Ya:_i,To=Bi!==void 0?Bi:Ri;if(co===0||To===0)return null;var Ga={},Po=typeof ji=="number",uo=typeof wi=="number";Po&&(Ga.position="sticky",Ga.left=ji),uo&&(Ga.position="sticky",Ga.right=wi);var ho={};ta&&(ho.textAlign=ta);var zo,Oa=Ea===!0?{showTitle:!0}:Ea;Oa&&(Oa.showTitle||ra==="header")&&(typeof va=="string"||typeof va=="number"?zo=va.toString():o.isValidElement(va)&&typeof va.props.children=="string"&&(zo=va.props.children));var mo=Object(l.a)(Object(l.a)(Object(l.a)({title:zo},no),xa),{},{colSpan:co&&co!==1?co:null,rowSpan:To&&To!==1?To:null,className:t()(sa,un,(Ar={},Object(e.a)(Ar,"".concat(sa,"-fix-left"),Po),Object(e.a)(Ar,"".concat(sa,"-fix-left-first"),Ii),Object(e.a)(Ar,"".concat(sa,"-fix-left-last"),Oi),Object(e.a)(Ar,"".concat(sa,"-fix-right"),uo),Object(e.a)(Ar,"".concat(sa,"-fix-right-first"),Ui),Object(e.a)(Ar,"".concat(sa,"-fix-right-last"),Zi),Object(e.a)(Ar,"".concat(sa,"-ellipsis"),Ea),Object(e.a)(Ar,"".concat(sa,"-with-append"),ma),Object(e.a)(Ar,"".concat(sa,"-fix-sticky"),(Po||uo)&&ga),Ar),xa.className,lo),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},xa.style),ho),Ga),ro),ref:re(ii)?mr:null});return o.createElement(ii,Object.assign({},mo),ma,va)}var Te=o.forwardRef(Ae);Te.displayName="Cell";var Re=o.memo(Te,function(bt,mr){return mr.shouldCellUpdate?!mr.shouldCellUpdate(mr.record,bt.record):!1}),Ge=Re,Ue=o.createContext(null),nt=Ue;function Le(bt,mr,Ar,Ur,un){var An=Ar[bt]||{},ln=Ar[mr]||{},Hn,Ln;An.fixed==="left"?Hn=Ur.left[bt]:ln.fixed==="right"&&(Ln=Ur.right[mr]);var ni=!1,Ai=!1,ii=!1,_i=!1,Ri=Ar[mr+1],ji=Ar[bt-1];if(un==="rtl"){if(Hn!==void 0){var wi=ji&&ji.fixed==="left";_i=!wi}else if(Ln!==void 0){var Ii=Ri&&Ri.fixed==="right";ii=!Ii}}else if(Hn!==void 0){var Oi=Ri&&Ri.fixed==="left";ni=!Oi}else if(Ln!==void 0){var Ui=ji&&ji.fixed==="right";Ai=!Ui}return{fixLeft:Hn,fixRight:Ln,lastFixLeft:ni,firstFixRight:Ai,lastFixRight:ii,firstFixLeft:_i,isSticky:Ur.isSticky}}function le(bt){var mr=bt.cells,Ar=bt.stickyOffsets,Ur=bt.flattenColumns,un=bt.rowComponent,An=bt.cellComponent,ln=bt.onHeaderRow,Hn=bt.index,Ln=o.useContext(nt),ni=Ln.prefixCls,Ai=Ln.direction,ii;ln&&(ii=ln(mr.map(function(Ri){return Ri.column}),Hn));var _i=G(mr.map(function(Ri){return Ri.column}));return o.createElement(un,Object.assign({},ii),mr.map(function(Ri,ji){var wi=Ri.column,Ii=Le(Ri.colStart,Ri.colEnd,Ur,Ar,Ai),Oi;return wi&&wi.onHeaderCell&&(Oi=Ri.column.onHeaderCell(wi)),o.createElement(Ge,Object.assign({},Ri,{ellipsis:wi.ellipsis,align:wi.align,component:An,prefixCls:ni,key:_i[ji]},Ii,{additionalProps:Oi,rowType:"header"}))}))}le.displayName="HeaderRow";var Xe=le;function pe(bt){var mr=[];function Ar(ln,Hn){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mr[Ln]=mr[Ln]||[];var ni=Hn,Ai=ln.filter(Boolean).map(function(ii){var _i={key:ii.key,className:ii.className||"",children:ii.title,column:ii,colStart:ni},Ri=1,ji=ii.children;return ji&&ji.length>0&&(Ri=Ar(ji,ni,Ln+1).reduce(function(wi,Ii){return wi+Ii},0),_i.hasSubColumns=!0),"colSpan"in ii&&(Ri=ii.colSpan),"rowSpan"in ii&&(_i.rowSpan=ii.rowSpan),_i.colSpan=Ri,_i.colEnd=_i.colStart+Ri-1,mr[Ln].push(_i),ni+=Ri,Ri});return Ai}Ar(bt,0);for(var Ur=mr.length,un=function(Hn){mr[Hn].forEach(function(Ln){!("rowSpan"in Ln)&&!Ln.hasSubColumns&&(Ln.rowSpan=Ur-Hn)})},An=0;An<Ur;An+=1)un(An);return mr}function Z(bt){var mr=bt.stickyOffsets,Ar=bt.columns,Ur=bt.flattenColumns,un=bt.onHeaderRow,An=o.useContext(nt),ln=An.prefixCls,Hn=An.getComponent,Ln=o.useMemo(function(){return pe(Ar)},[Ar]),ni=Hn(["header","wrapper"],"thead"),Ai=Hn(["header","row"],"tr"),ii=Hn(["header","cell"],"th");return o.createElement(ni,{className:"".concat(ln,"-thead")},Ln.map(function(_i,Ri){var ji=o.createElement(Xe,{key:Ri,flattenColumns:Ur,cells:_i,stickyOffsets:mr,rowComponent:Ai,cellComponent:ii,onHeaderRow:un,index:Ri});return ji}))}var Y=Z,ne="RC_TABLE_INTERNAL_COL_DEFINE";function ce(bt){var mr=bt.expandable,Ar=Object(W.a)(bt,["expandable"]);return"expandable"in bt?Object(l.a)(Object(l.a)({},Ar),mr):Ar}function ye(bt){return Object.keys(bt).reduce(function(mr,Ar){return(Ar.substr(0,5)==="data-"||Ar.substr(0,5)==="aria-")&&(mr[Ar]=bt[Ar]),mr},{})}function Ee(bt){for(var mr=bt.colWidths,Ar=bt.columns,Ur=bt.columCount,un=[],An=Ur||Ar.length,ln=!1,Hn=An-1;Hn>=0;Hn-=1){var Ln=mr[Hn],ni=Ar&&Ar[Hn],Ai=ni&&ni[ne];(Ln||Ai||ln)&&(un.unshift(o.createElement("col",Object.assign({key:Hn,style:{width:Ln,minWidth:Ln}},Ai))),ln=!0)}return o.createElement("colgroup",null,un)}var Ce=Ee;function ue(bt,mr){return Object(o.useMemo)(function(){for(var Ar=[],Ur=0;Ur<mr;Ur+=1){var un=bt[Ur];if(un!==void 0)Ar[Ur]=un;else return null}return Ar},[bt.join("_"),mr])}var ge=o.forwardRef(function(bt,mr){var Ar=bt.noData,Ur=bt.columns,un=bt.flattenColumns,An=bt.colWidths,ln=bt.columCount,Hn=bt.stickyOffsets,Ln=bt.direction,ni=bt.fixHeader,Ai=bt.offsetHeader,ii=bt.stickyClassName,_i=bt.onScroll,Ri=Object(W.a)(bt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ji=o.useContext(nt),wi=ji.prefixCls,Ii=ji.scrollbarSize,Oi=ji.isSticky,Ui=Oi&&!ni?0:Ii,Zi=o.useRef(null),ma=o.useCallback(function(sa){Object(C.b)(mr,sa),Object(C.b)(Zi,sa)},[]);o.useEffect(function(){var sa;function Ba(va){var Ia=va.currentTarget,za=va.deltaX;za&&(_i({currentTarget:Ia,scrollLeft:Ia.scrollLeft+za}),va.preventDefault())}return(sa=Zi.current)===null||sa===void 0||sa.addEventListener("wheel",Ba),function(){var va;(va=Zi.current)===null||va===void 0||va.removeEventListener("wheel",Ba)}},[]);var Hi=un[un.length-1],xa={fixed:Hi?Hi.fixed:null,onHeaderCell:function(){return{className:"".concat(wi,"-cell-scrollbar")}}},Ea=Object(o.useMemo)(function(){return Ui?[].concat(Object(r.a)(Ur),[xa]):Ur},[Ui,Ur]),ta=Object(o.useMemo)(function(){return Ui?[].concat(Object(r.a)(un),[xa]):un},[Ui,un]),ra=Object(o.useMemo)(function(){var sa=Hn.right,Ba=Hn.left;return Object(l.a)(Object(l.a)({},Hn),{},{left:Ln==="rtl"?[].concat(Object(r.a)(Ba.map(function(va){return va+Ui})),[0]):Ba,right:Ln==="rtl"?sa:[].concat(Object(r.a)(sa.map(function(va){return va+Ui})),[0]),isSticky:Oi})},[Ui,Hn,Oi]),ga=ue(An,ln);return o.createElement("div",{style:Object(l.a)({overflow:"hidden"},Oi?{top:Ai}:{}),ref:ma,className:t()("".concat(wi,"-header"),Object(e.a)({},ii,!!ii))},o.createElement("table",{style:{tableLayout:"fixed",visibility:Ar||ga?null:"hidden"}},o.createElement(Ce,{colWidths:ga?[].concat(Object(r.a)(ga),[Ui]):[],columCount:ln+1,columns:ta}),o.createElement(Y,Object.assign({},Ri,{stickyOffsets:ra,columns:Ea,flattenColumns:ta}))))});ge.displayName="FixedHeader";var Oe=ge,Je=o.createContext(null),lt=Je;function tt(bt){var mr=bt.prefixCls,Ar=bt.children,Ur=bt.component,un=bt.cellComponent,An=bt.fixHeader,ln=bt.fixColumn,Hn=bt.horizonScroll,Ln=bt.className,ni=bt.expanded,Ai=bt.componentWidth,ii=bt.colSpan,_i=o.useContext(nt),Ri=_i.scrollbarSize;return o.useMemo(function(){var ji=Ar;return ln&&(ji=o.createElement("div",{style:{width:Ai-(An?Ri:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(mr,"-expanded-row-fixed")},ji)),o.createElement(Ur,{className:Ln,style:{display:ni?null:"none"}},o.createElement(Ge,{component:un,prefixCls:mr,colSpan:ii},ji))},[Ar,Ur,An,Hn,Ln,ni,Ai,ii,Ri])}var ke=tt;function st(bt){var mr=bt.className,Ar=bt.style,Ur=bt.record,un=bt.index,An=bt.rowKey,ln=bt.getRowKey,Hn=bt.rowExpandable,Ln=bt.expandedKeys,ni=bt.onRow,Ai=bt.indent,ii=Ai===void 0?0:Ai,_i=bt.rowComponent,Ri=bt.cellComponent,ji=bt.childrenColumnName,wi=o.useContext(nt),Ii=wi.prefixCls,Oi=wi.fixedInfoList,Ui=o.useContext(lt),Zi=Ui.fixHeader,ma=Ui.fixColumn,Hi=Ui.horizonScroll,xa=Ui.componentWidth,Ea=Ui.flattenColumns,ta=Ui.expandableType,ra=Ui.expandRowByClick,ga=Ui.onTriggerExpand,sa=Ui.rowClassName,Ba=Ui.expandedRowClassName,va=Ui.indentSize,Ia=Ui.expandIcon,za=Ui.expandedRowRender,Va=Ui.expandIconColumnIndex,Ya=o.useState(!1),Bi=Object(c.a)(Ya,2),ro=Bi[0],lo=Bi[1],no=Ln&&Ln.has(bt.recordKey);o.useEffect(function(){no&&lo(!0)},[no]);var co=ta==="row"&&(!Hn||Hn(Ur)),To=ta==="nest",Ga=ji&&Ur&&Ur[ji],Po=co||To,uo;ni&&(uo=ni(Ur,un));var ho=function(go){if(ra&&Po&&ga(Ur,go),uo&&uo.onClick){for(var qa,_a=arguments.length,at=new Array(_a>1?_a-1:0),dr=1;dr<_a;dr++)at[dr-1]=arguments[dr];(qa=uo).onClick.apply(qa,[go].concat(at))}},zo;typeof sa=="string"?zo=sa:typeof sa=="function"&&(zo=sa(Ur,un,ii));var Oa=G(Ea),mo=o.createElement(_i,Object.assign({},uo,{"data-row-key":An,className:t()(mr,"".concat(Ii,"-row"),"".concat(Ii,"-row-level-").concat(ii),zo,uo&&uo.className),style:Object(l.a)(Object(l.a)({},Ar),uo?uo.style:null),onClick:ho}),Ea.map(function(Ho,go){var qa=Ho.render,_a=Ho.dataIndex,at=Ho.className,dr=Oa[go],Kr=Oi[go],Br;go===(Va||0)&&To&&(Br=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(va*ii,"px")},className:"".concat(Ii,"-row-indent indent-level-").concat(ii)}),Ia({prefixCls:Ii,expanded:no,expandable:Ga,record:Ur,onExpand:ga})));var Pn;return Ho.onCell&&(Pn=Ho.onCell(Ur,un)),o.createElement(Ge,Object.assign({className:at,ellipsis:Ho.ellipsis,align:Ho.align,component:Ri,prefixCls:Ii,key:dr,record:Ur,index:un,dataIndex:_a,render:qa,shouldCellUpdate:Ho.shouldCellUpdate},Kr,{appendNode:Br,additionalProps:Pn}))})),Do;if(co&&(ro||no)){var Qo=za(Ur,un,ii+1,no),xo=Ba&&Ba(Ur,un,ii);Do=o.createElement(ke,{expanded:no,className:t()("".concat(Ii,"-expanded-row"),"".concat(Ii,"-expanded-row-level-").concat(ii+1),xo),prefixCls:Ii,fixHeader:Zi,fixColumn:ma,horizonScroll:Hi,component:_i,componentWidth:xa,cellComponent:Ri,colSpan:Ea.length},Qo)}var Fo;return Ga&&no&&(Fo=(Ur[ji]||[]).map(function(Ho,go){var qa=ln(Ho,go);return o.createElement(st,Object.assign({},bt,{key:qa,rowKey:qa,record:Ho,recordKey:qa,index:go,indent:ii+1}))})),o.createElement(o.Fragment,null,mo,Do,Fo)}st.displayName="BodyRow";var Ve=st,Ot=o.createContext(null),Ut=Ot;function ir(bt){var mr=bt.columnKey,Ar=bt.onColumnResize,Ur=o.useRef();return o.useEffect(function(){Ur.current&&Ar(mr,Ur.current.offsetWidth)},[]),o.createElement(R,{onResize:function(An){var ln=An.offsetWidth;Ar(mr,ln)}},o.createElement("td",{ref:Ur,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function lr(bt){var mr=bt.data,Ar=bt.getRowKey,Ur=bt.measureColumnWidth,un=bt.expandedKeys,An=bt.onRow,ln=bt.rowExpandable,Hn=bt.emptyNode,Ln=bt.childrenColumnName,ni=o.useContext(Ut),Ai=ni.onColumnResize,ii=o.useContext(nt),_i=ii.prefixCls,Ri=ii.getComponent,ji=o.useContext(lt),wi=ji.fixHeader,Ii=ji.horizonScroll,Oi=ji.flattenColumns,Ui=ji.componentWidth;return o.useMemo(function(){var Zi=Ri(["body","wrapper"],"tbody"),ma=Ri(["body","row"],"tr"),Hi=Ri(["body","cell"],"td"),xa;mr.length?xa=mr.map(function(ta,ra){var ga=Ar(ta,ra);return o.createElement(Ve,{key:ga,rowKey:ga,record:ta,recordKey:ga,index:ra,rowComponent:ma,cellComponent:Hi,expandedKeys:un,onRow:An,getRowKey:Ar,rowExpandable:ln,childrenColumnName:Ln})}):xa=o.createElement(ke,{expanded:!0,className:"".concat(_i,"-placeholder"),prefixCls:_i,fixHeader:wi,fixColumn:Ii,horizonScroll:Ii,component:ma,componentWidth:Ui,cellComponent:Hi,colSpan:Oi.length},Hn);var Ea=G(Oi);return o.createElement(Zi,{className:"".concat(_i,"-tbody")},Ur&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(_i,"-measure-row"),style:{height:0}},Ea.map(function(ta){return o.createElement(ir,{key:ta,columnKey:ta,onColumnResize:Ai})})),xa)},[mr,_i,An,Ur,un,Ar,Ri,Ui,Hn,Oi])}var Sr=o.memo(lr);Sr.displayName="Body";var mt=Sr;function or(bt){return Object(E.a)(bt).filter(function(mr){return o.isValidElement(mr)}).map(function(mr){var Ar=mr.key,Ur=mr.props,un=Ur.children,An=Object(W.a)(Ur,["children"]),ln=Object(l.a)({key:Ar},An);return un&&(ln.children=or(un)),ln})}function et(bt){return bt.reduce(function(mr,Ar){var Ur=Ar.fixed,un=Ur===!0?"left":Ur,An=Ar.children;return An&&An.length>0?[].concat(Object(r.a)(mr),Object(r.a)(et(An).map(function(ln){return Object(l.a)({fixed:un},ln)}))):[].concat(Object(r.a)(mr),[Object(l.a)(Object(l.a)({},Ar),{},{fixed:un})])},[])}function ur(bt){for(var mr=!0,Ar=0;Ar<bt.length;Ar+=1){var Ur=bt[Ar];if(mr&&Ur.fixed!=="left")mr=!1;else if(!mr&&Ur.fixed==="left"){Object(A.a)(!1,"Index ".concat(Ar-1," of `columns` missing `fixed='left'` prop."));break}}for(var un=!0,An=bt.length-1;An>=0;An-=1){var ln=bt[An];if(un&&ln.fixed!=="right")un=!1;else if(!un&&ln.fixed==="right"){Object(A.a)(!1,"Index ".concat(An+1," of `columns` missing `fixed='right'` prop."));break}}}function qr(bt){return bt.map(function(mr){var Ar=mr.fixed,Ur=Object(W.a)(mr,["fixed"]),un=Ar;return Ar==="left"?un="right":Ar==="right"&&(un="left"),Object(l.a)({fixed:un},Ur)})}function Fe(bt,mr){var Ar=bt.prefixCls,Ur=bt.columns,un=bt.children,An=bt.expandable,ln=bt.expandedKeys,Hn=bt.getRowKey,Ln=bt.onTriggerExpand,ni=bt.expandIcon,Ai=bt.rowExpandable,ii=bt.expandIconColumnIndex,_i=bt.direction,Ri=bt.expandRowByClick,ji=o.useMemo(function(){return Ur||or(un)},[Ur,un]),wi=o.useMemo(function(){if(An){var Ui,Zi=ii||0,ma=ji[Zi],Hi=(Ui={},Object(e.a)(Ui,ne,{className:"".concat(Ar,"-expand-icon-col")}),Object(e.a)(Ui,"title",""),Object(e.a)(Ui,"fixed",ma?ma.fixed:null),Object(e.a)(Ui,"className","".concat(Ar,"-row-expand-icon-cell")),Object(e.a)(Ui,"render",function(ta,ra,ga){var sa=Hn(ra,ga),Ba=ln.has(sa),va=Ai?Ai(ra):!0,Ia=ni({prefixCls:Ar,expanded:Ba,expandable:va,record:ra,onExpand:Ln});return Ri?o.createElement("span",{onClick:function(Va){return Va.stopPropagation()}},Ia):Ia}),Ui),xa=ji.slice();return Zi>=0&&xa.splice(Zi,0,Hi),xa}return ji},[An,ji,Hn,ln,ni,_i]),Ii=o.useMemo(function(){var Ui=wi;return mr&&(Ui=mr(Ui)),Ui.length||(Ui=[{render:function(){return null}}]),Ui},[mr,wi,_i]),Oi=o.useMemo(function(){return _i==="rtl"?qr(et(Ii)):et(Ii)},[Ii,_i]);return[Ii,Oi]}var $t=Fe,Lr=i("xEkU"),pt=i.n(Lr);function qt(bt){var mr=Object(o.useRef)(bt),Ar=Object(o.useState)({}),Ur=Object(c.a)(Ar,2),un=Ur[1],An=Object(o.useRef)(null),ln=Object(o.useRef)([]);function Hn(Ln){An.current===null&&(ln.current=[],An.current=pt()(function(){ln.current.forEach(function(ni){mr.current=ni(mr.current)}),An.current=null,un({})})),ln.current.push(Ln)}return Object(o.useEffect)(function(){return function(){pt.a.cancel(An.current)}},[]),[mr.current,Hn]}function vr(bt){var mr=Object(o.useRef)(bt),Ar=Object(o.useRef)(null);function Ur(){window.clearTimeout(Ar.current)}function un(ln){mr.current=ln,Ur(),Ar.current=window.setTimeout(function(){mr.current=null,Ar.current=null},100)}function An(){return mr.current}return Object(o.useEffect)(function(){return Ur},[]),[un,An]}function pn(bt,mr,Ar){var Ur=Object(o.useMemo)(function(){for(var un=[],An=[],ln=0,Hn=0,Ln=0;Ln<mr;Ln+=1)if(Ar==="rtl"){An[Ln]=Hn,Hn+=bt[Ln]||0;var ni=mr-Ln-1;un[ni]=ln,ln+=bt[ni]||0}else{un[Ln]=ln,ln+=bt[Ln]||0;var Ai=mr-Ln-1;An[Ai]=Hn,Hn+=bt[Ai]||0}return{left:un,right:An}},[bt,mr,Ar]);return Ur}var fr=pn;function gr(bt){var mr=bt.className,Ar=bt.children;return o.createElement("div",{className:mr},Ar)}var dn=gr;function Qt(bt){var mr=bt.className,Ar=bt.index,Ur=bt.children,un=bt.colSpan,An=bt.rowSpan,ln=o.useContext(nt),Hn=ln.prefixCls,Ln=ln.fixedInfoList,ni=Ln[Ar];return o.createElement(Ge,Object.assign({className:mr,index:Ar,component:"td",prefixCls:Hn,record:null,dataIndex:null,render:function(){return{children:Ur,props:{colSpan:un,rowSpan:An}}}},ni))}function sr(bt){return o.createElement("tr",Object.assign({},bt))}function Qr(bt){var mr=bt.children,Ar=o.useContext(nt),Ur=Ar.prefixCls;return o.createElement("tfoot",{className:"".concat(Ur,"-summary")},mr)}var Cn=Qr,Fn={Cell:Qt,Row:sr};function ti(bt){var mr,Ar=bt.prefixCls,Ur=bt.record,un=bt.onExpand,An=bt.expanded,ln=bt.expandable,Hn="".concat(Ar,"-row-expand-icon");if(!ln)return o.createElement("span",{className:t()(Hn,"".concat(Ar,"-row-spaced"))});var Ln=function(Ai){un(Ur,Ai),Ai.stopPropagation()};return o.createElement("span",{className:t()(Hn,(mr={},Object(e.a)(mr,"".concat(Ar,"-row-expanded"),An),Object(e.a)(mr,"".concat(Ar,"-row-collapsed"),!An),mr)),onClick:Ln})}function ki(bt,mr,Ar){var Ur=[];function un(An){(An||[]).forEach(function(ln,Hn){Ur.push(mr(ln,Hn)),un(ln[Ar])})}return un(bt),Ur}var Dn=i("zT1h"),Bn=i("y0+3"),Ft=function(mr,Ar){var Ur,un,An=mr.scrollBodyRef,ln=mr.onScroll,Hn=mr.offsetScroll,Ln=o.useContext(nt),ni=Ln.prefixCls,Ai=((Ur=An.current)===null||Ur===void 0?void 0:Ur.scrollWidth)||0,ii=((un=An.current)===null||un===void 0?void 0:un.clientWidth)||0,_i=Ai&&ii*(ii/Ai),Ri=o.useRef(),ji=qt({scrollLeft:0,isHiddenScrollBar:!1}),wi=Object(c.a)(ji,2),Ii=wi[0],Oi=wi[1],Ui=o.useRef({delta:0,x:0}),Zi=o.useState(!1),ma=Object(c.a)(Zi,2),Hi=ma[0],xa=ma[1],Ea=function(){xa(!1)},ta=function(va){va.persist(),Ui.current.delta=va.pageX-Ii.scrollLeft,Ui.current.x=0,xa(!0),va.preventDefault()},ra=function(va){var Ia,za=va||((Ia=window)===null||Ia===void 0?void 0:Ia.event),Va=za.buttons;if(!Hi||Va===0){Hi&&xa(!1);return}var Ya=Ui.current.x+va.pageX-Ui.current.x-Ui.current.delta;Ya<=0&&(Ya=0),Ya+_i>=ii&&(Ya=ii-_i),ln({scrollLeft:Ya/ii*(Ai+2)}),Ui.current.x=va.pageX},ga=function(){var va=Object(Bn.b)(An.current).top,Ia=va+An.current.offsetHeight,za=document.documentElement.scrollTop+window.innerHeight;Ia-Object(B.a)()<=za||va>=za-Hn?Oi(function(Va){return Object(l.a)(Object(l.a)({},Va),{},{isHiddenScrollBar:!0})}):Oi(function(Va){return Object(l.a)(Object(l.a)({},Va),{},{isHiddenScrollBar:!1})})},sa=function(va){Oi(function(Ia){return Object(l.a)(Object(l.a)({},Ia),{},{scrollLeft:va/Ai*ii||0})})};return o.useImperativeHandle(Ar,function(){return{setScrollLeft:sa}}),o.useEffect(function(){var Ba=Object(Dn.a)(document.body,"mouseup",Ea,!1),va=Object(Dn.a)(document.body,"mousemove",ra,!1);return ga(),function(){Ba.remove(),va.remove()}},[_i,Hi]),o.useEffect(function(){var Ba=Object(Dn.a)(window,"scroll",ga,!1),va=Object(Dn.a)(window,"resize",ga,!1);return function(){Ba.remove(),va.remove()}},[]),o.useEffect(function(){Ii.isHiddenScrollBar||Oi(function(Ba){var va,Ia;return Object(l.a)(Object(l.a)({},Ba),{},{scrollLeft:An.current.scrollLeft/((va=An.current)===null||va===void 0?void 0:va.scrollWidth)*((Ia=An.current)===null||Ia===void 0?void 0:Ia.clientWidth)})})},[Ii.isHiddenScrollBar]),Ai<=ii||!_i||Ii.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:ii,bottom:Hn},className:"".concat(ni,"-sticky-scroll")},o.createElement("div",{onMouseDown:ta,ref:Ri,className:t()("".concat(ni,"-sticky-scroll-bar"),Object(e.a)({},"".concat(ni,"-sticky-scroll-bar-active"),Hi)),style:{width:"".concat(_i,"px"),transform:"translate3d(".concat(Ii.scrollLeft,"px, 0, 0)")}}))},vt=o.forwardRef(Ft);function _e(bt,mr){return o.useMemo(function(){var Ar=!!bt;return{isSticky:Ar,stickyClassName:Ar?"".concat(mr,"-sticky-header"):"",offsetHeader:Object(s.a)(bt)==="object"&&bt.offsetHeader||0,offsetScroll:Object(s.a)(bt)==="object"&&bt.offsetScroll||0}},[bt,mr])}var Ne=[],Ie={},Ze="rc-table-internal-hook",ct=o.memo(function(bt){var mr=bt.children;return mr},function(bt,mr){return g()(bt.props,mr.props)?bt.pingLeft!==mr.pingLeft||bt.pingRight!==mr.pingRight:!1});function gt(bt){var mr,Ar=bt.prefixCls,Ur=bt.className,un=bt.rowClassName,An=bt.style,ln=bt.data,Hn=bt.rowKey,Ln=bt.scroll,ni=bt.tableLayout,Ai=bt.direction,ii=bt.title,_i=bt.footer,Ri=bt.summary,ji=bt.id,wi=bt.showHeader,Ii=bt.components,Oi=bt.emptyText,Ui=bt.onRow,Zi=bt.onHeaderRow,ma=bt.internalHooks,Hi=bt.transformColumns,xa=bt.internalRefs,Ea=bt.sticky,ta=ln||Ne,ra=!!ta.length,ga=o.useState(0),sa=Object(c.a)(ga,2),Ba=sa[0],va=sa[1];o.useEffect(function(){va(Object(B.a)())});var Ia=o.useMemo(function(){return ee(Ii,{})},[Ii]),za=o.useCallback(function(Ro,wo){return Q(Ia,Ro)||wo},[Ia]),Va=o.useMemo(function(){return typeof Hn=="function"?Hn:function(Ro){var wo=Ro&&Ro[Hn];return wo}},[Hn]),Ya=ce(bt),Bi=Ya.expandIcon,ro=Ya.expandedRowKeys,lo=Ya.defaultExpandedRowKeys,no=Ya.defaultExpandAllRows,co=Ya.expandedRowRender,To=Ya.onExpand,Ga=Ya.onExpandedRowsChange,Po=Ya.expandRowByClick,uo=Ya.rowExpandable,ho=Ya.expandIconColumnIndex,zo=Ya.expandedRowClassName,Oa=Ya.childrenColumnName,mo=Ya.indentSize,Do=Bi||ti,Qo=Oa||"children",xo=o.useMemo(function(){return co?"row":bt.expandable&&ma===Ze&&bt.expandable.__PARENT_RENDER_ICON__||ta.some(function(Ro){return Ro&&Object(s.a)(Ro)==="object"&&Ro[Qo]})?"nest":!1},[!!co,ta]),Fo=o.useState(function(){return lo||(no?ki(ta,Va,Qo):[])}),Ho=Object(c.a)(Fo,2),go=Ho[0],qa=Ho[1],_a=o.useMemo(function(){return new Set(ro||go||[])},[ro,go]),at=o.useCallback(function(Ro){var wo=Va(Ro,ta.indexOf(Ro)),ms,As=_a.has(wo);As?(_a.delete(wo),ms=Object(r.a)(_a)):ms=[].concat(Object(r.a)(_a),[wo]),qa(ms),To&&To(!As,Ro),Ga&&Ga(ms)},[Va,_a,ta,To,Ga]),dr=o.useState(0),Kr=Object(c.a)(dr,2),Br=Kr[0],Pn=Kr[1],$r=$t(Object(l.a)(Object(l.a)(Object(l.a)({},bt),Ya),{},{expandable:!!co,expandedKeys:_a,getRowKey:Va,onTriggerExpand:at,expandIcon:Do,expandIconColumnIndex:ho,direction:Ai}),ma===Ze?Hi:null),Mr=Object(c.a)($r,2),Gn=Mr[0],zr=Mr[1],Nn=o.useMemo(function(){return{columns:Gn,flattenColumns:zr}},[Gn,zr]),Qn=o.useRef(),Zn=o.useRef(),Yn=o.useRef(),ui=o.useState(!1),ai=Object(c.a)(ui,2),hi=ai[0],pi=ai[1],zi=o.useState(!1),Ci=Object(c.a)(zi,2),na=Ci[0],La=Ci[1],pa=qt(new Map),ca=Object(c.a)(pa,2),wa=ca[0],Ca=ca[1],No=G(zr),fo=No.map(function(Ro){return wa.get(Ro)}),ea=o.useMemo(function(){return fo},[fo.join("_")]),ua=fr(ea,zr.length,Ai),da=Ln&&q(Ln.y),Ra=Ln&&q(Ln.x),Za=Ra&&zr.some(function(Ro){var wo=Ro.fixed;return wo}),Qa=o.useRef(),oo=_e(Ea,Ar),bo=oo.isSticky,es=oo.offsetHeader,ss=oo.offsetScroll,Rs=oo.stickyClassName,Ko,qo,to;da&&(qo={overflowY:"scroll",maxHeight:Ln.y}),Ra&&(Ko={overflowX:"auto"},da||(qo={overflowY:"hidden"}),to={width:Ln.x===!0?"auto":Ln.x,minWidth:"100%"});var Xa=o.useCallback(function(Ro,wo){Ca(function(ms){var As=new Map(ms);return As.set(Ro,wo),As})},[]),Wa=vr(null),Jo=Object(c.a)(Wa,2),hs=Jo[0],Eo=Jo[1];function Ws(Ro,wo){if(!wo)return;typeof wo=="function"?wo(Ro):wo.scrollLeft!==Ro&&(wo.scrollLeft=Ro)}var _o=function(wo){var ms=wo.currentTarget,As=wo.scrollLeft,ao=typeof As=="number"?As:ms.scrollLeft,Ct=ms||Ie;if(!Eo()||Eo()===Ct){var zt;hs(Ct),Ws(ao,Zn.current),Ws(ao,Yn.current),Ws(ao,(zt=Qa.current)===null||zt===void 0?void 0:zt.setScrollLeft)}if(ms){var gn=ms.scrollWidth,$n=ms.clientWidth;pi(ao>0),La(ao<gn-$n)}},Mo=function(){Yn.current&&_o({currentTarget:Yn.current})},xs=function(wo){var ms=wo.width;Mo(),Pn(Qn.current?Qn.current.offsetWidth:ms)};o.useEffect(function(){return Mo},[]),o.useEffect(function(){Ra&&Mo()},[Ra]),o.useEffect(function(){ma===Ze&&xa&&(xa.body.current=Yn.current)});var Go=za(["table"],"table"),ns=o.useMemo(function(){return ni||(Za?Ln.x==="max-content"?"auto":"fixed":da||zr.some(function(Ro){var wo=Ro.ellipsis;return wo})?"fixed":"auto")},[da,Za,zr,ni]),is,bs={colWidths:ea,columCount:zr.length,stickyOffsets:ua,onHeaderRow:Zi,fixHeader:da},Sl=o.useMemo(function(){return ra?null:typeof Oi=="function"?Oi():Oi},[ra,Oi]),Fs=o.createElement(mt,{data:ta,measureColumnWidth:da||Ra||bo,expandedKeys:_a,rowExpandable:uo,getRowKey:Va,onRow:Ui,emptyNode:Sl,childrenColumnName:Qo}),Ms=o.createElement(Ce,{colWidths:zr.map(function(Ro){var wo=Ro.width;return wo}),columns:zr}),cs=Ri&&o.createElement(Cn,null,Ri(ta)),_s=za(["body"]);if(da||bo){var Us;typeof _s=="function"?(Us=_s(ta,{scrollbarSize:Ba,ref:Yn,onScroll:_o}),bs.colWidths=zr.map(function(Ro,wo){var ms=Ro.width,As=wo===Gn.length-1?ms-Ba:ms;return typeof As=="number"&&!Number.isNaN(As)?As:(Object(A.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Us=o.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),qo),onScroll:_o,ref:Yn,className:t()("".concat(Ar,"-body"))},o.createElement(Go,{style:Object(l.a)(Object(l.a)({},to),{},{tableLayout:ns})},Ms,Fs,cs),bo&&o.createElement(vt,{ref:Qa,offsetScroll:ss,scrollBodyRef:Yn,onScroll:_o})),is=o.createElement(o.Fragment,null,wi!==!1&&o.createElement(Oe,Object.assign({noData:!ta.length},bs,Nn,{direction:Ai,offsetHeader:es,stickyClassName:Rs,ref:Zn,onScroll:_o})),Us)}else is=o.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),qo),className:t()("".concat(Ar,"-content")),onScroll:_o,ref:Yn},o.createElement(Go,{style:Object(l.a)(Object(l.a)({},to),{},{tableLayout:ns})},Ms,wi!==!1&&o.createElement(Y,Object.assign({},bs,Nn)),Fs,cs));var ks=ye(bt),ps=o.createElement("div",Object.assign({className:t()(Ar,Ur,(mr={},Object(e.a)(mr,"".concat(Ar,"-rtl"),Ai==="rtl"),Object(e.a)(mr,"".concat(Ar,"-ping-left"),hi),Object(e.a)(mr,"".concat(Ar,"-ping-right"),na),Object(e.a)(mr,"".concat(Ar,"-layout-fixed"),ni==="fixed"),Object(e.a)(mr,"".concat(Ar,"-fixed-header"),da),Object(e.a)(mr,"".concat(Ar,"-fixed-column"),Za),Object(e.a)(mr,"".concat(Ar,"-scroll-horizontal"),Ra),Object(e.a)(mr,"".concat(Ar,"-has-fix-left"),zr[0]&&zr[0].fixed),Object(e.a)(mr,"".concat(Ar,"-has-fix-right"),zr[zr.length-1]&&zr[zr.length-1].fixed==="right"),mr)),style:An,id:ji,ref:Qn},ks),o.createElement(ct,{pingLeft:hi,pingRight:na,props:Object(l.a)(Object(l.a)({},bt),{},{stickyOffsets:ua,mergedExpandedKeys:_a})},ii&&o.createElement(dn,{className:"".concat(Ar,"-title")},ii(ta)),o.createElement("div",{className:"".concat(Ar,"-container")},is),_i&&o.createElement(dn,{className:"".concat(Ar,"-footer")},_i(ta))));Ra&&(ps=o.createElement(R,{onResize:xs},ps));var Es=o.useMemo(function(){return{prefixCls:Ar,getComponent:za,scrollbarSize:Ba,direction:Ai,fixedInfoList:zr.map(function(Ro,wo){return Le(wo,wo,zr,ua,Ai)}),isSticky:bo}},[Ar,za,Ba,Ai,zr,ua,Ai,bo]),tl=o.useMemo(function(){return Object(l.a)(Object(l.a)({},Nn),{},{tableLayout:ns,rowClassName:un,expandedRowClassName:zo,componentWidth:Br,fixHeader:da,fixColumn:Za,horizonScroll:Ra,expandIcon:Do,expandableType:xo,expandRowByClick:Po,expandedRowRender:co,onTriggerExpand:at,expandIconColumnIndex:ho,indentSize:mo})},[Nn,ns,un,zo,Br,da,Za,Ra,Do,xo,Po,co,at,ho,mo]),Os=o.useMemo(function(){return{onColumnResize:Xa}},[Xa]);return o.createElement(nt.Provider,{value:Es},o.createElement(lt.Provider,{value:tl},o.createElement(Ut.Provider,{value:Os},ps)))}gt.Column=z,gt.ColumnGroup=X,gt.Summary=Fn,gt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var kt=gt,xr=kt,Hr=i("W9HT"),on=i("NUBc"),Nt=i("H84U"),ot=function(bt,mr){var Ar={};for(var Ur in bt)Object.prototype.hasOwnProperty.call(bt,Ur)&&mr.indexOf(Ur)<0&&(Ar[Ur]=bt[Ur]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Ur=Object.getOwnPropertySymbols(bt);un<Ur.length;un++)mr.indexOf(Ur[un])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ur[un])&&(Ar[Ur[un]]=bt[Ur[un]]);return Ar},dt=10;function Yt(bt,mr){var Ar={current:mr.current,pageSize:mr.pageSize},Ur=bt&&p()(bt)==="object"?bt:{};return Object.keys(Ur).forEach(function(un){var An=mr[un];typeof An!="function"&&(Ar[un]=An)}),Ar}function Pt(){for(var bt={},mr=arguments.length,Ar=new Array(mr),Ur=0;Ur<mr;Ur++)Ar[Ur]=arguments[Ur];return Ar.forEach(function(un){un&&Object.keys(un).forEach(function(An){var ln=un[An];ln!==void 0&&(bt[An]=ln)})}),bt}function Et(bt,mr,Ar){var Ur=mr&&p()(mr)==="object"?mr:{},un=Ur.total,An=un===void 0?0:un,ln=ot(Ur,["total"]),Hn=Object(o.useState)(function(){return{current:"defaultCurrent"in ln?ln.defaultCurrent:1,pageSize:"defaultPageSize"in ln?ln.defaultPageSize:dt}}),Ln=f()(Hn,2),ni=Ln[0],Ai=Ln[1],ii=Pt(ni,ln,{total:An>0?An:bt});if(!An){var _i=Math.ceil(bt/ii.pageSize);_i<ii.current&&(ii.current=1)}var Ri=function(){var Ii=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Oi=arguments.length>1?arguments[1]:void 0;Ai(u()(u()({},ii),{current:Ii,pageSize:Oi||ii.pageSize}))},ji=function(Ii,Oi){var Ui=ii==null?void 0:ii.pageSize;Oi&&Oi!==Ui&&(Ii=1,mr&&mr.onShowSizeChange&&mr.onShowSizeChange(Ii,Oi)),mr&&mr.onChange&&mr.onChange(Ii,Oi),Ri(Ii,Oi),Ar(Ii,Oi||Ui)};return mr===!1?[{},function(){}]:[u()(u()({},ii),{onChange:ji}),Ri]}function Bt(bt,mr,Ar){var Ur=o.useRef({});function un(An){if(!Ur.current||Ur.current.data!==bt||Ur.current.childrenColumnName!==mr||Ur.current.getRowKey!==Ar){var ln=function Ln(ni){ni.forEach(function(Ai,ii){var _i=Ar(Ai,ii);Hn.set(_i,Ai),Ai&&p()(Ai)==="object"&&mr in Ai&&Ln(Ai[mr]||[])})},Hn=new Map;ln(bt),Ur.current={data:bt,childrenColumnName:mr,kvMap:Hn,getRowKey:Ar}}return Ur.current.kvMap.get(An)}return[un]}var wt=i("SA+Z"),Mt=i.n(wt),Nr=i("RIqP"),Tr=i.n(Nr),yr=i("HQEm"),en=i.n(yr),sn=i("c3jg"),Vn=i("qOx5"),jn=i("wPhX"),ri=i("6cGi"),ci=i("kaz8"),gi=i("jsC+"),Ni=i("BvKs"),Qe=i("9yH6"),Se=i("uaoM"),Pe="SELECT_ALL",He="SELECT_INVERT";function Ye(bt){return bt&&bt.fixed}function ze(bt,mr){var Ar=[];return(bt||[]).forEach(function(Ur){Ar.push(Ur),Ur&&p()(Ur)==="object"&&mr in Ur&&(Ar=[].concat(Tr()(Ar),Tr()(ze(Ur[mr],mr))))}),Ar}function $e(bt,mr){var Ar=bt||{},Ur=Ar.preserveSelectedRowKeys,un=Ar.selectedRowKeys,An=Ar.getCheckboxProps,ln=Ar.onChange,Hn=Ar.onSelect,Ln=Ar.onSelectAll,ni=Ar.onSelectInvert,Ai=Ar.onSelectMultiple,ii=Ar.columnWidth,_i=Ar.type,Ri=Ar.selections,ji=Ar.fixed,wi=Ar.renderCell,Ii=Ar.hideSelectAll,Oi=Ar.checkStrictly,Ui=Oi===void 0?!0:Oi,Zi=mr.prefixCls,ma=mr.data,Hi=mr.pageData,xa=mr.getRecordByKey,Ea=mr.getRowKey,ta=mr.expandType,ra=mr.childrenColumnName,ga=mr.locale,sa=mr.expandIconColumnIndex,Ba=mr.getPopupContainer,va=o.useRef(new Map),Ia=Object(ri.a)(un||[],{value:un}),za=f()(Ia,2),Va=za[0],Ya=za[1],Bi=Object(o.useMemo)(function(){return Ui?{keyEntities:null}:Object(sn.a)(ma,void 0,Ea)},[ma,Ea,Ui]),ro=Bi.keyEntities,lo=Object(o.useMemo)(function(){return ze(Hi,ra)},[Hi,ra]),no=Object(o.useMemo)(function(){var qa=new Map;return lo.forEach(function(_a,at){var dr=Ea(_a,at),Kr=(An?An(_a):null)||{};qa.set(dr,Kr)}),qa},[lo,Ea,An]),co=Object(o.useCallback)(function(qa){var _a;return!!((_a=no.get(Ea(qa)))===null||_a===void 0?void 0:_a.disabled)},[no,Ea]),To=Object(o.useMemo)(function(){if(Ui)return[Va,[]];var qa=Object(Vn.a)(Va,!0,ro,co),_a=qa.checkedKeys,at=qa.halfCheckedKeys;return[_a,at]},[Va,Ui,ro,co]),Ga=f()(To,2),Po=Ga[0],uo=Ga[1],ho=Object(o.useMemo)(function(){var qa=_i==="radio"?Po.slice(0,1):Po;return new Set(qa)},[Po,_i]),zo=Object(o.useMemo)(function(){return _i==="radio"?new Set:new Set(uo)},[uo,_i]),Oa=Object(o.useState)(null),mo=f()(Oa,2),Do=mo[0],Qo=mo[1];o.useEffect(function(){bt||Ya([])},[!!bt]);var xo=Object(o.useCallback)(function(qa){var _a,at;if(Ur){var dr=new Map;_a=qa,at=qa.map(function(Kr){var Br=xa(Kr);return!Br&&va.current.has(Kr)&&(Br=va.current.get(Kr)),dr.set(Kr,Br),Br}),va.current=dr}else _a=[],at=[],qa.forEach(function(Kr){var Br=xa(Kr);Br!==void 0&&(_a.push(Kr),at.push(Br))});Ya(_a),ln&&ln(_a,at)},[Ya,xa,ln,Ur]),Fo=Object(o.useCallback)(function(qa,_a,at,dr){if(Hn){var Kr=at.map(function(Br){return xa(Br)});Hn(xa(qa),_a,Kr,dr)}xo(at)},[Hn,xa,xo]),Ho=Object(o.useMemo)(function(){if(!Ri||Ii)return null;var qa=Ri===!0?[Pe,He]:Ri;return qa.map(function(_a){return _a===Pe?{key:"all",text:ga.selectionAll,onSelect:function(){xo(ma.map(function(dr,Kr){return Ea(dr,Kr)}))}}:_a===He?{key:"invert",text:ga.selectInvert,onSelect:function(){var dr=new Set(ho);Hi.forEach(function(Br,Pn){var $r=Ea(Br,Pn);dr.has($r)?dr.delete($r):dr.add($r)});var Kr=Array.from(dr);xo(Kr),ni&&(Object(Se.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),ni(Kr))}}:_a})},[Ri,ho,Hi,Ea,ni,xo]),go=Object(o.useCallback)(function(qa){if(!bt)return qa;var _a=new Set(ho),at=lo.map(Ea).filter(function(hi){return!no.get(hi).disabled}),dr=at.every(function(hi){return _a.has(hi)}),Kr=at.some(function(hi){return _a.has(hi)}),Br=function(){var pi=[];dr?at.forEach(function(Ci){_a.delete(Ci),pi.push(Ci)}):at.forEach(function(Ci){_a.has(Ci)||(_a.add(Ci),pi.push(Ci))});var zi=Array.from(_a);xo(zi),Ln&&Ln(!dr,zi.map(function(Ci){return xa(Ci)}),pi.map(function(Ci){return xa(Ci)}))},Pn;if(_i!=="radio"){var $r;if(Ho){var Mr=o.createElement(Ni.a,{getPopupContainer:Ba},Ho.map(function(hi,pi){var zi=hi.key,Ci=hi.text,na=hi.onSelect;return o.createElement(Ni.a.Item,{key:zi||pi,onClick:function(){na&&na(at)}},Ci)}));$r=o.createElement("div",{className:"".concat(Zi,"-selection-extra")},o.createElement(gi.a,{overlay:Mr,getPopupContainer:Ba},o.createElement("span",null,o.createElement(en.a,null))))}var Gn=lo.every(function(hi,pi){var zi=Ea(hi,pi),Ci=no.get(zi)||{};return Ci.disabled});Pn=!Ii&&o.createElement("div",{className:"".concat(Zi,"-selection")},o.createElement(ci.a,{checked:!Gn&&!!lo.length&&dr,indeterminate:!dr&&Kr,onChange:Br,disabled:lo.length===0||Gn}),$r)}var zr;_i==="radio"?zr=function(pi,zi,Ci){var na=Ea(zi,Ci),La=_a.has(na);return{node:o.createElement(Qe.a,u()({},no.get(na),{checked:La,onClick:function(ca){return ca.stopPropagation()},onChange:function(ca){_a.has(na)||Fo(na,!0,[na],ca.nativeEvent)}})),checked:La}}:zr=function(pi,zi,Ci){var na,La=Ea(zi,Ci),pa=_a.has(La),ca=zo.has(La),wa=no.get(La),Ca;return ta==="nest"?(Ca=ca,Object(Se.a)(!(typeof(wa==null?void 0:wa.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):Ca=(na=wa==null?void 0:wa.indeterminate)!==null&&na!==void 0?na:ca,{node:o.createElement(ci.a,u()({},wa,{indeterminate:Ca,checked:pa,onClick:function(fo){return fo.stopPropagation()},onChange:function(fo){var ea=fo.nativeEvent,ua=ea.shiftKey,da=-1,Ra=-1;if(ua&&Ui){var Za=new Set([Do,La]);at.some(function(Wa,Jo){if(Za.has(Wa))if(da===-1)da=Jo;else return Ra=Jo,!0;return!1})}if(Ra!==-1&&da!==Ra&&Ui){var Qa=at.slice(da,Ra+1),oo=[];pa?Qa.forEach(function(Wa){_a.has(Wa)&&(oo.push(Wa),_a.delete(Wa))}):Qa.forEach(function(Wa){_a.has(Wa)||(oo.push(Wa),_a.add(Wa))});var bo=Array.from(_a);xo(bo),Ai&&Ai(!pa,bo.map(function(Wa){return xa(Wa)}),oo.map(function(Wa){return xa(Wa)}))}else{var es=Po;if(Ui){var ss=pa?Object(jn.b)(es,La):Object(jn.a)(es,La);Fo(La,!pa,ss,ea)}else{var Rs=Object(Vn.a)([].concat(Tr()(es),[La]),!0,ro,co),Ko=Rs.checkedKeys,qo=Rs.halfCheckedKeys,to=Ko;if(pa){var Xa=new Set(Ko);Xa.delete(La),to=Object(Vn.a)(Array.from(Xa),{checked:!1,halfCheckedKeys:qo},ro,co).checkedKeys}Fo(La,!pa,to,ea)}}Qo(La)}})),checked:pa}};var Nn=function(pi,zi,Ci){var na=zr(pi,zi,Ci),La=na.node,pa=na.checked;return wi?wi(pa,zi,Ci,La):La},Qn=v()({width:ii,className:"".concat(Zi,"-selection-column"),title:bt.columnTitle||Pn,render:Nn},ne,{className:"".concat(Zi,"-selection-col")});if(ta==="row"&&qa.length&&!sa){var Zn=Mt()(qa),Yn=Zn[0],ui=Zn.slice(1),ai=ji||Ye(ui[0]);return ai&&(Yn.fixed=ai),[Yn,u()(u()({},Qn),{fixed:ai})].concat(Tr()(ui))}return[u()(u()({},Qn),{fixed:ji||Ye(qa[0])})].concat(Tr()(qa))},[Ea,lo,bt,Po,ho,zo,ii,Ho,ta,Do,no,Ai,Fo,co]);return[go,ho]}var St=i("6SEX"),ft=i.n(St),Ht=i("i8CU"),Er=i.n(Ht),Fr=i("3S7+");function tn(bt,mr){return"key"in bt&&bt.key!==void 0&&bt.key!==null?bt.key:bt.dataIndex?Array.isArray(bt.dataIndex)?bt.dataIndex.join("."):bt.dataIndex:mr}function Zt(bt,mr){return mr?"".concat(mr,"-").concat(bt):"".concat(bt)}function Rn(bt,mr){return typeof bt=="function"?bt(mr):bt}var vn="ascend",Un="descend";function hn(bt){return p()(bt.sorter)==="object"&&typeof bt.sorter.multiple=="number"?bt.sorter.multiple:!1}function Wr(bt){return typeof bt=="function"?bt:bt&&p()(bt)==="object"&&bt.compare?bt.compare:!1}function Kn(bt,mr){return mr?bt[bt.indexOf(mr)+1]:bt[0]}function ei(bt,mr,Ar){var Ur=[];function un(An,ln){Ur.push({column:An,key:tn(An,ln),multiplePriority:hn(An),sortOrder:An.sortOrder})}return(bt||[]).forEach(function(An,ln){var Hn=Zt(ln,Ar);An.children?("sortOrder"in An&&un(An,Hn),Ur=[].concat(Tr()(Ur),Tr()(ei(An.children,mr,Hn)))):An.sorter&&("sortOrder"in An?un(An,Hn):mr&&An.defaultSortOrder&&Ur.push({column:An,key:tn(An,Hn),multiplePriority:hn(An),sortOrder:An.defaultSortOrder}))}),Ur}function Si(bt,mr,Ar,Ur,un,An,ln,Hn){return(mr||[]).map(function(Ln,ni){var Ai=Zt(ni,Hn),ii=Ln;if(ii.sorter){var _i=ii.sortDirections||un,Ri=ii.showSorterTooltip===void 0?ln:ii.showSorterTooltip,ji=tn(ii,Ai),wi=Ar.find(function(ra){var ga=ra.key;return ga===ji}),Ii=wi?wi.sortOrder:null,Oi=Kn(_i,Ii),Ui=_i.includes(vn)&&o.createElement(Er.a,{className:t()("".concat(bt,"-column-sorter-up"),{active:Ii===vn})}),Zi=_i.includes(Un)&&o.createElement(ft.a,{className:t()("".concat(bt,"-column-sorter-down"),{active:Ii===Un})}),ma=An||{},Hi=ma.cancelSort,xa=ma.triggerAsc,Ea=ma.triggerDesc,ta=Hi;Oi===Un?ta=Ea:Oi===vn&&(ta=xa),ii=u()(u()({},ii),{className:t()(ii.className,v()({},"".concat(bt,"-column-sort"),Ii)),title:function(ga){var sa=o.createElement("div",{className:"".concat(bt,"-column-sorters")},o.createElement("span",null,Rn(Ln.title,ga)),o.createElement("span",{className:t()("".concat(bt,"-column-sorter"),v()({},"".concat(bt,"-column-sorter-full"),Ui&&Zi))},o.createElement("span",{className:"".concat(bt,"-column-sorter-inner")},Ui,Zi)));return Ri?o.createElement(Fr.a,{title:ta},o.createElement("div",{className:"".concat(bt,"-column-sorters-with-tooltip")},sa)):sa},onHeaderCell:function(ga){var sa=Ln.onHeaderCell&&Ln.onHeaderCell(ga)||{},Ba=sa.onClick;return sa.onClick=function(va){Ur({column:Ln,key:ji,sortOrder:Oi,multiplePriority:hn(Ln)}),Ba&&Ba(va)},sa.className=t()(sa.className,"".concat(bt,"-column-has-sorters")),sa}})}return"children"in ii&&(ii=u()(u()({},ii),{children:Si(bt,ii.children,Ar,Ur,un,An,ln,Ai)})),ii})}function Vr(bt){var mr=bt.column,Ar=bt.sortOrder;return{column:mr,order:Ar,field:mr.dataIndex,columnKey:mr.key}}function fn(bt){var mr=bt.filter(function(Ar){var Ur=Ar.sortOrder;return Ur}).map(Vr);return mr.length===0&&bt.length?u()(u()({},Vr(bt[bt.length-1])),{column:void 0}):mr.length<=1?mr[0]||{}:mr}function kn(bt,mr,Ar){var Ur=mr.slice().sort(function(ln,Hn){return Hn.multiplePriority-ln.multiplePriority}),un=bt.slice(),An=Ur.filter(function(ln){var Hn=ln.column.sorter,Ln=ln.sortOrder;return Wr(Hn)&&Ln});return An.length?un.sort(function(ln,Hn){for(var Ln=0;Ln<An.length;Ln+=1){var ni=An[Ln],Ai=ni.column.sorter,ii=ni.sortOrder,_i=Wr(Ai);if(_i&&ii){var Ri=_i(ln,Hn,ii);if(Ri!==0)return ii===vn?Ri:-Ri}}return 0}).map(function(ln){var Hn=ln[Ar];return Hn?u()(u()({},ln),v()({},Ar,kn(Hn,mr,Ar))):ln}):un}function It(bt){var mr=bt.prefixCls,Ar=bt.mergedColumns,Ur=bt.onSorterChange,un=bt.sortDirections,An=bt.tableLocale,ln=bt.showSorterTooltip,Hn=o.useState(ei(Ar,!0)),Ln=f()(Hn,2),ni=Ln[0],Ai=Ln[1],ii=o.useMemo(function(){var Ii=!0,Oi=ei(Ar,!1);if(!Oi.length)return ni;var Ui=[];function Zi(Hi){Ii?Ui.push(Hi):Ui.push(u()(u()({},Hi),{sortOrder:null}))}var ma=null;return Oi.forEach(function(Hi){ma===null?(Zi(Hi),Hi.sortOrder&&(Hi.multiplePriority===!1?Ii=!1:ma=!0)):(ma&&Hi.multiplePriority!==!1||(Ii=!1),Zi(Hi))}),Ui},[Ar,ni]),_i=o.useMemo(function(){var Ii=ii.map(function(Oi){var Ui=Oi.column,Zi=Oi.sortOrder;return{column:Ui,order:Zi}});return{sortColumns:Ii,sortColumn:Ii[0]&&Ii[0].column,sortOrder:Ii[0]&&Ii[0].order}},[ii]);function Ri(Ii){var Oi;Ii.multiplePriority===!1||!ii.length||ii[0].multiplePriority===!1?Oi=[Ii]:Oi=[].concat(Tr()(ii.filter(function(Ui){var Zi=Ui.key;return Zi!==Ii.key})),[Ii]),Ai(Oi),Ur(fn(Oi),Oi)}var ji=function(Oi){return Si(mr,Oi,ii,Ri,un,An,ln)},wi=function(){return fn(ii)};return[ji,ii,_i,wi]}var yt=i("Y+p1"),xt=i.n(yt),Tt=i("5Uyt"),Lt=i.n(Tt),_t=i("2/Rp"),Xt=i("ECub"),er=function(mr){return o.createElement("div",{className:mr.className,onClick:function(Ur){return Ur.stopPropagation()}},mr.children)},nr=er,br=i("sPtV"),On=Ni.a.SubMenu,bn=Ni.a.Item;function qn(bt){return bt.some(function(mr){var Ar=mr.children;return Ar})}function an(bt){var mr=bt.filters,Ar=bt.prefixCls,Ur=bt.filteredKeys,un=bt.filterMultiple,An=bt.locale;return mr.length===0?o.createElement(o.Fragment,null,o.createElement(Xt.a,{image:Xt.a.PRESENTED_IMAGE_SIMPLE,description:An.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):mr.map(function(ln,Hn){var Ln=String(ln.value);if(ln.children)return o.createElement(On,{key:Ln||Hn,title:ln.text,popupClassName:"".concat(Ar,"-dropdown-submenu")},an({filters:ln.children,prefixCls:Ar,filteredKeys:Ur,filterMultiple:un,locale:An}));var ni=un?ci.a:Qe.a;return o.createElement(bn,{key:ln.value!==void 0?Ln:Hn},o.createElement(ni,{checked:Ur.includes(Ln)}),o.createElement("span",null,ln.text))})}function _r(bt){var mr,Ar=bt.prefixCls,Ur=bt.column,un=bt.dropdownPrefixCls,An=bt.columnKey,ln=bt.filterMultiple,Hn=bt.filterState,Ln=bt.triggerFilter,ni=bt.locale,Ai=bt.children,ii=bt.getPopupContainer,_i=Ur.filterDropdownVisible,Ri=Ur.onFilterDropdownVisibleChange,ji=o.useState(!1),wi=f()(ji,2),Ii=wi[0],Oi=wi[1],Ui=!!(Hn&&(((mr=Hn.filteredKeys)===null||mr===void 0?void 0:mr.length)||Hn.forceFiltered)),Zi=function(mo){Oi(mo),Ri&&Ri(mo)},ma=typeof _i=="boolean"?_i:Ii,Hi=Hn&&Hn.filteredKeys,xa=Object(br.a)(Hi||[]),Ea=f()(xa,2),ta=Ea[0],ra=Ea[1],ga=function(mo){var Do=mo.selectedKeys;ra(Do)};o.useEffect(function(){ga({selectedKeys:Hi||[]})},[Hi]);var sa=o.useState([]),Ba=f()(sa,2),va=Ba[0],Ia=Ba[1],za=o.useRef(),Va=function(mo){za.current=window.setTimeout(function(){Ia(mo)})},Ya=function(){window.clearTimeout(za.current)};o.useEffect(function(){return function(){window.clearTimeout(za.current)}},[]);var Bi=function(mo){Zi(!1);var Do=mo&&mo.length?mo:null;if(Do===null&&(!Hn||!Hn.filteredKeys))return null;if(xt()(Do,Hn==null?void 0:Hn.filteredKeys))return null;Ln({column:Ur,key:An,filteredKeys:Do})},ro=function(){Bi(ta())},lo=function(){ra([]),Bi([])},no=function(mo){mo&&Hi!==void 0&&ra(Hi||[]),Zi(mo),!mo&&!Ur.filterDropdown&&ro()},co=t()(v()({},"".concat(un,"-menu-without-submenu"),!qn(Ur.filters||[]))),To;if(typeof Ur.filterDropdown=="function")To=Ur.filterDropdown({prefixCls:"".concat(un,"-custom"),setSelectedKeys:function(mo){return ga({selectedKeys:mo})},selectedKeys:ta(),confirm:ro,clearFilters:lo,filters:Ur.filters,visible:ma});else if(Ur.filterDropdown)To=Ur.filterDropdown;else{var Ga=ta()||[];To=o.createElement(o.Fragment,null,o.createElement(Ni.a,{multiple:ln,prefixCls:"".concat(un,"-menu"),className:co,onClick:Ya,onSelect:ga,onDeselect:ga,selectedKeys:Ga,getPopupContainer:ii,openKeys:va,onOpenChange:Va},an({filters:Ur.filters||[],prefixCls:Ar,filteredKeys:ta(),filterMultiple:ln,locale:ni})),o.createElement("div",{className:"".concat(Ar,"-dropdown-btns")},o.createElement(_t.a,{type:"link",size:"small",disabled:Ga.length===0,onClick:lo},ni.filterReset),o.createElement(_t.a,{type:"primary",size:"small",onClick:ro},ni.filterConfirm)))}var Po=o.createElement(nr,{className:"".concat(Ar,"-dropdown")},To),uo;typeof Ur.filterIcon=="function"?uo=Ur.filterIcon(Ui):Ur.filterIcon?uo=Ur.filterIcon:uo=o.createElement(Lt.a,null);var ho=o.useContext(Nt.b),zo=ho.direction;return o.createElement("div",{className:t()("".concat(Ar,"-column"))},o.createElement("span",{className:"".concat(Ar,"-column-title")},Ai),o.createElement("span",{className:t()("".concat(Ar,"-trigger-container"),v()({},"".concat(Ar,"-trigger-container-open"),ma)),onClick:function(mo){mo.stopPropagation()}},o.createElement(gi.a,{overlay:Po,trigger:["click"],visible:ma,onVisibleChange:no,getPopupContainer:ii,placement:zo==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Ar,"-trigger"),{active:Ui})},uo))))}var mn=_r;function In(bt,mr,Ar){var Ur=[];return(bt||[]).forEach(function(un,An){var ln=Zt(An,Ar);"children"in un?Ur=[].concat(Tr()(Ur),Tr()(In(un.children,mr,ln))):(un.filters||"filterDropdown"in un||"onFilter"in un)&&("filteredValue"in un?Ur.push({column:un,key:tn(un,ln),filteredKeys:un.filteredValue,forceFiltered:un.filtered}):Ur.push({column:un,key:tn(un,ln),filteredKeys:mr&&un.defaultFilteredValue?un.defaultFilteredValue:void 0,forceFiltered:un.filtered}))}),Ur}function Wn(bt,mr,Ar,Ur,un,An,ln,Hn){return Ar.map(function(Ln,ni){var Ai=Zt(ni,Hn),ii=Ln.filterMultiple,_i=ii===void 0?!0:ii;if(Ln.filters||"filterDropdown"in Ln){var Ri=tn(Ln,Ai),ji=Ur.find(function(wi){var Ii=wi.key;return Ri===Ii});return u()(u()({},Ln),{title:function(Ii){return o.createElement(mn,{prefixCls:"".concat(bt,"-filter"),dropdownPrefixCls:mr,column:Ln,columnKey:Ri,filterState:ji,filterMultiple:_i,triggerFilter:un,locale:ln,getPopupContainer:An},Rn(Ln.title,Ii))}})}return"children"in Ln?u()(u()({},Ln),{children:Wn(bt,mr,Ln.children,Ur,un,An,ln,Ai)}):Ln})}function Jn(bt){var mr={};return bt.forEach(function(Ar){var Ur=Ar.key,un=Ar.filteredKeys;mr[Ur]=un||null}),mr}function Ei(bt){var mr=[];return(bt||[]).forEach(function(Ar){var Ur=Ar.value,un=Ar.children;mr.push(Ur),un&&(mr=[].concat(Tr()(mr),Tr()(Ei(un))))}),mr}function yi(bt,mr){return mr.reduce(function(Ar,Ur){var un=Ur.column,An=un.onFilter,ln=un.filters,Hn=Ur.filteredKeys;return An&&Hn&&Hn.length?Ar.filter(function(Ln){return Hn.some(function(ni){var Ai=Ei(ln),ii=Ai.findIndex(function(Ri){return String(Ri)===String(ni)}),_i=ii!==-1?Ai[ii]:ni;return An(_i,Ln)})}):Ar},bt)}function mi(bt){var mr=bt.prefixCls,Ar=bt.dropdownPrefixCls,Ur=bt.mergedColumns,un=bt.onFilterChange,An=bt.getPopupContainer,ln=bt.locale,Hn=o.useState(In(Ur,!0)),Ln=f()(Hn,2),ni=Ln[0],Ai=Ln[1],ii=o.useMemo(function(){var wi=In(Ur,!1);return wi.every(function(Ii){var Oi=Ii.filteredKeys;return Oi===void 0})?ni:wi},[Ur,ni]),_i=o.useCallback(function(){return Jn(ii)},[ii]),Ri=function(Ii){var Oi=ii.filter(function(Ui){var Zi=Ui.key;return Zi!==Ii.key});Oi.push(Ii),Ai(Oi),un(Jn(Oi),Oi)},ji=function(Ii){return Wn(mr,Ar,Ii,ii,Ri,An,ln)};return[ji,ii,_i]}var Vi=mi;function la(bt,mr){return bt.map(function(Ar){var Ur=u()({},Ar);return Ur.title=Rn(Ar.title,mr),"children"in Ur&&(Ur.children=la(Ur.children,mr)),Ur})}function Gi(bt){var mr=o.useCallback(function(Ar){return la(Ar,bt)},[bt]);return[mr]}function ia(bt){return function(Ar){var Ur,un=Ar.prefixCls,An=Ar.onExpand,ln=Ar.record,Hn=Ar.expanded,Ln=Ar.expandable,ni="".concat(un,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(ii){An(ln,ii),ii.stopPropagation()},className:t()(ni,(Ur={},v()(Ur,"".concat(ni,"-spaced"),!Ln),v()(Ur,"".concat(ni,"-expanded"),Ln&&Hn),v()(Ur,"".concat(ni,"-collapsed"),Ln&&!Hn),Ur)),"aria-label":Hn?bt.collapse:bt.expand})}}var $i=ia,xn=i("zAh6"),Ti=i("ZvpZ"),Ji=Ti.a,Wi=i("3Nzz");function qi(bt){return null}var Ir=qi;function ar(bt){return null}var nn=ar,Gt=i("5OYt"),wr=[];function Pr(bt){var mr,Ar=bt.prefixCls,Ur=bt.className,un=bt.style,An=bt.size,ln=bt.bordered,Hn=bt.dropdownPrefixCls,Ln=bt.dataSource,ni=bt.pagination,Ai=bt.rowSelection,ii=bt.rowKey,_i=bt.rowClassName,Ri=bt.columns,ji=bt.children,wi=bt.childrenColumnName,Ii=bt.onChange,Oi=bt.getPopupContainer,Ui=bt.loading,Zi=bt.expandIcon,ma=bt.expandable,Hi=bt.expandedRowRender,xa=bt.expandIconColumnIndex,Ea=bt.indentSize,ta=bt.scroll,ra=bt.sortDirections,ga=bt.locale,sa=bt.showSorterTooltip,Ba=sa===void 0?!0:sa;Object(Se.a)(!(typeof ii=="function"&&ii.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var va=Object(Gt.a)(),Ia=o.useMemo(function(){var Xa=new Set(Object.keys(va).filter(function(Wa){return va[Wa]}));return(Ri||or(ji)).filter(function(Wa){return!Wa.responsive||Wa.responsive.some(function(Jo){return Xa.has(Jo)})})},[ji,Ri,va]),za=Object(a.default)(bt,["className","style","columns"]),Va=o.useContext(Wi.b),Ya=o.useContext(Nt.b),Bi=Ya.locale,ro=Bi===void 0?Ji:Bi,lo=Ya.renderEmpty,no=Ya.direction,co=An||Va,To=u()(u()({},ro.Table),ga),Ga=Ln||wr,Po=o.useContext(Nt.b),uo=Po.getPrefixCls,ho=uo("table",Ar),zo=uo("dropdown",Hn),Oa=u()({childrenColumnName:wi,expandIconColumnIndex:xa},ma),mo=Oa.childrenColumnName,Do=mo===void 0?"children":mo,Qo=o.useMemo(function(){return Ga.some(function(Xa){var Wa;return(Wa=Xa)===null||Wa===void 0?void 0:Wa[Do]})?"nest":Hi||ma&&ma.expandedRowRender?"row":null},[Ga]),xo={body:o.useRef()},Fo=o.useMemo(function(){return typeof ii=="function"?ii:function(Xa){var Wa;return(Wa=Xa)===null||Wa===void 0?void 0:Wa[ii]}},[ii]),Ho=Bt(Ga,Do,Fo),go=f()(Ho,1),qa=go[0],_a={},at=function(Wa,Jo){var hs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Eo=u()(u()({},_a),Wa);hs&&(_a.resetPagination(),Eo.pagination.current&&(Eo.pagination.current=1),ni&&ni.onChange&&ni.onChange(1,Eo.pagination.pageSize)),ta&&ta.scrollToFirstRowOnChange!==!1&&xo.body.current&&Object(xn.a)(0,{getContainer:function(){return xo.body.current}}),Ii&&Ii(Eo.pagination,Eo.filters,Eo.sorter,{currentDataSource:yi(kn(Ga,Eo.sorterStates,Do),Eo.filterStates),action:Jo})},dr=function(Wa,Jo){at({sorter:Wa,sorterStates:Jo},"sort",!1)},Kr=It({prefixCls:ho,mergedColumns:Ia,onSorterChange:dr,sortDirections:ra||["ascend","descend"],tableLocale:To,showSorterTooltip:Ba}),Br=f()(Kr,4),Pn=Br[0],$r=Br[1],Mr=Br[2],Gn=Br[3],zr=o.useMemo(function(){return kn(Ga,$r,Do)},[Ga,$r]);_a.sorter=Gn(),_a.sorterStates=$r;var Nn=function(Wa,Jo){at({filters:Wa,filterStates:Jo},"filter",!0)},Qn=Vi({prefixCls:ho,locale:To,dropdownPrefixCls:zo,mergedColumns:Ia,onFilterChange:Nn,getPopupContainer:Oi}),Zn=f()(Qn,3),Yn=Zn[0],ui=Zn[1],ai=Zn[2],hi=yi(zr,ui);_a.filters=ai(),_a.filterStates=ui;var pi=o.useMemo(function(){return u()({},Mr)},[Mr]),zi=Gi(pi),Ci=f()(zi,1),na=Ci[0],La=function(Wa,Jo){at({pagination:u()(u()({},_a.pagination),{current:Wa,pageSize:Jo})},"paginate")},pa=Et(hi.length,ni,La),ca=f()(pa,2),wa=ca[0],Ca=ca[1];_a.pagination=ni===!1?{}:Yt(ni,wa),_a.resetPagination=Ca;var No=o.useMemo(function(){if(ni===!1||!wa.pageSize)return hi;var Xa=wa.current,Wa=Xa===void 0?1:Xa,Jo=wa.total,hs=wa.pageSize,Eo=hs===void 0?dt:hs;return hi.length<Jo?hi.length>Eo?(Object(Se.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."),hi.slice((Wa-1)*Eo,Wa*Eo)):hi:hi.slice((Wa-1)*Eo,Wa*Eo)},[!!ni,hi,wa&&wa.current,wa&&wa.pageSize,wa&&wa.total]),fo=$e(Ai,{prefixCls:ho,data:hi,pageData:No,getRowKey:Fo,getRecordByKey:qa,expandType:Qo,childrenColumnName:Do,locale:To,expandIconColumnIndex:Oa.expandIconColumnIndex,getPopupContainer:Oi}),ea=f()(fo,2),ua=ea[0],da=ea[1],Ra=function(Wa,Jo,hs){var Eo;return typeof _i=="function"?Eo=t()(_i(Wa,Jo,hs)):Eo=t()(_i),t()(v()({},"".concat(ho,"-row-selected"),da.has(Fo(Wa,Jo))),Eo)};Oa.__PARENT_RENDER_ICON__=Oa.expandIcon,Oa.expandIcon=Oa.expandIcon||Zi||$i(To),Qo==="nest"&&Oa.expandIconColumnIndex===void 0?Oa.expandIconColumnIndex=Ai?1:0:Oa.expandIconColumnIndex>0&&Ai&&(Oa.expandIconColumnIndex-=1),typeof Oa.indentSize!="number"&&(Oa.indentSize=typeof Ea=="number"?Ea:15);var Za=o.useCallback(function(Xa){return na(ua(Yn(Pn(Xa))))},[Pn,Yn,ua]),Qa,oo;if(ni!==!1){var bo;wa.size?bo=wa.size:bo=co==="small"||co==="middle"?"small":void 0;var es=function(Wa){return o.createElement(on.a,u()({className:"".concat(ho,"-pagination ").concat(ho,"-pagination-").concat(Wa)},wa,{size:bo}))},ss=no==="rtl"?"left":"right";if(wa.position!==null&&Array.isArray(wa.position)){var Rs=wa.position.find(function(Xa){return Xa.indexOf("top")!==-1}),Ko=wa.position.find(function(Xa){return Xa.indexOf("bottom")!==-1});!Rs&&!Ko?oo=es(ss):(Rs&&(Qa=es(Rs.toLowerCase().replace("top",""))),Ko&&(oo=es(Ko.toLowerCase().replace("bottom",""))))}else oo=es(ss)}var qo;typeof Ui=="boolean"?qo={spinning:Ui}:p()(Ui)==="object"&&(qo=u()({spinning:!0},Ui));var to=t()("".concat(ho,"-wrapper"),Ur,v()({},"".concat(ho,"-wrapper-rtl"),no==="rtl"));return o.createElement("div",{className:to,style:un},o.createElement(Hr.a,u()({spinning:!1},qo),Qa,o.createElement(xr,u()({},za,{columns:Ia,direction:no,expandable:Oa,prefixCls:ho,className:t()((mr={},v()(mr,"".concat(ho,"-middle"),co==="middle"),v()(mr,"".concat(ho,"-small"),co==="small"),v()(mr,"".concat(ho,"-bordered"),ln),v()(mr,"".concat(ho,"-empty"),Ga.length===0),mr)),data:No,rowKey:Fo,rowClassName:Ra,emptyText:ga&&ga.emptyText||lo("Table"),internalHooks:Ze,internalRefs:xo,transformColumns:Za})),hi&&hi.length>0&&oo))}Pr.defaultProps={rowKey:"key"},Pr.SELECTION_ALL=Pe,Pr.SELECTION_INVERT=He,Pr.Column=Ir,Pr.ColumnGroup=nn,Pr.Summary=Fn;var Jr=Pr,wn=D.a=Jr},wDdD:function(k,D,i){var y=i("ProS"),p=i("bYtY");i("98bh"),i("GrNh");var S=i("d4KN"),v=i("mOdp"),m=i("KS52"),f=i("0/Rx");S("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(v("pie")),y.registerLayout(p.curry(m,"pie")),y.registerProcessor(f("pie"))},"wF/u":function(k,D,i){var y=i("e5cp"),p=i("ExA7");function S(v,m,f,d,u){return v===m?!0:v==null||m==null||!p(v)&&!p(m)?v!==v&&m!==m:y(v,m,f,d,S,u)}k.exports=S},wJg7:function(k,D){var i=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function p(S,v){var m=typeof S;return v=v==null?i:v,!!v&&(m=="number"||m!="symbol"&&y.test(S))&&(S>-1&&S%1==0)&&S<v}k.exports=p},wOnQ:function(k,D,i){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(y,p){k.exports=p()})(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(fe,xe){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,rt){Me.__proto__=rt}||function(Me,rt){for(var Jt in rt)Object.prototype.hasOwnProperty.call(rt,Jt)&&(Me[Jt]=rt[Jt])},y(fe,xe)};function p(cr,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");y(cr,fe);function xe(){this.constructor=cr}cr.prototype=fe===null?Object.create(fe):(xe.prototype=fe.prototype,new xe)}var S=function(){return S=Object.assign||function(xe){for(var Me,rt=1,Jt=arguments.length;rt<Jt;rt++){Me=arguments[rt];for(var Gr in Me)Object.prototype.hasOwnProperty.call(Me,Gr)&&(xe[Gr]=Me[Gr])}return xe},S.apply(this,arguments)};function v(cr,fe,xe,Me){function rt(Jt){return Jt instanceof xe?Jt:new xe(function(Gr){Gr(Jt)})}return new(xe||(xe=Promise))(function(Jt,Gr){function cn(Di){try{Xn(Me.next(Di))}catch(xi){Gr(xi)}}function En(Di){try{Xn(Me.throw(Di))}catch(xi){Gr(xi)}}function Xn(Di){Di.done?Jt(Di.value):rt(Di.value).then(cn,En)}Xn((Me=Me.apply(cr,fe||[])).next())})}function m(cr,fe){var xe={label:0,sent:function(){if(Jt[0]&1)throw Jt[1];return Jt[1]},trys:[],ops:[]},Me,rt,Jt,Gr;return Gr={next:cn(0),throw:cn(1),return:cn(2)},typeof Symbol=="function"&&(Gr[Symbol.iterator]=function(){return this}),Gr;function cn(Xn){return function(Di){return En([Xn,Di])}}function En(Xn){if(Me)throw new TypeError("Generator is already executing.");for(;xe;)try{if(Me=1,rt&&(Jt=Xn[0]&2?rt.return:Xn[0]?rt.throw||((Jt=rt.return)&&Jt.call(rt),0):rt.next)&&!(Jt=Jt.call(rt,Xn[1])).done)return Jt;(rt=0,Jt)&&(Xn=[Xn[0]&2,Jt.value]);switch(Xn[0]){case 0:case 1:Jt=Xn;break;case 4:return xe.label++,{value:Xn[1],done:!1};case 5:xe.label++,rt=Xn[1],Xn=[0];continue;case 7:Xn=xe.ops.pop(),xe.trys.pop();continue;default:if(!(Jt=xe.trys,Jt=Jt.length>0&&Jt[Jt.length-1])&&(Xn[0]===6||Xn[0]===2)){xe=0;continue}if(Xn[0]===3&&(!Jt||Xn[1]>Jt[0]&&Xn[1]<Jt[3])){xe.label=Xn[1];break}if(Xn[0]===6&&xe.label<Jt[1]){xe.label=Jt[1],Jt=Xn;break}if(Jt&&xe.label<Jt[2]){xe.label=Jt[2],xe.ops.push(Xn);break}Jt[2]&&xe.ops.pop(),xe.trys.pop();continue}Xn=fe.call(cr,xe)}catch(Di){Xn=[6,Di],rt=0}finally{Me=Jt=0}if(Xn[0]&5)throw Xn[1];return{value:Xn[0]?Xn[1]:void 0,done:!0}}}function f(cr,fe,xe){if(xe||arguments.length===2)for(var Me=0,rt=fe.length,Jt;Me<rt;Me++)(Jt||!(Me in fe))&&(Jt||(Jt=Array.prototype.slice.call(fe,0,Me)),Jt[Me]=fe[Me]);return cr.concat(Jt||fe)}for(var d=function(){function cr(fe,xe,Me,rt){this.left=fe,this.top=xe,this.width=Me,this.height=rt}return cr.prototype.add=function(fe,xe,Me,rt){return new cr(this.left+fe,this.top+xe,this.width+Me,this.height+rt)},cr.fromClientRect=function(fe,xe){return new cr(xe.left+fe.windowBounds.left,xe.top+fe.windowBounds.top,xe.width,xe.height)},cr.fromDOMRectList=function(fe,xe){var Me=Array.from(xe).find(function(rt){return rt.width!==0});return Me?new cr(Me.left+fe.windowBounds.left,Me.top+fe.windowBounds.top,Me.width,Me.height):cr.EMPTY},cr.EMPTY=new cr(0,0,0,0),cr}(),u=function(fe,xe){return d.fromClientRect(fe,xe.getBoundingClientRect())},o=function(fe){var xe=fe.body,Me=fe.documentElement;if(!xe||!Me)throw new Error("Unable to get document size");var rt=Math.max(Math.max(xe.scrollWidth,Me.scrollWidth),Math.max(xe.offsetWidth,Me.offsetWidth),Math.max(xe.clientWidth,Me.clientWidth)),Jt=Math.max(Math.max(xe.scrollHeight,Me.scrollHeight),Math.max(xe.offsetHeight,Me.offsetHeight),Math.max(xe.clientHeight,Me.clientHeight));return new d(0,0,rt,Jt)},n=function(fe){for(var xe=[],Me=0,rt=fe.length;Me<rt;){var Jt=fe.charCodeAt(Me++);if(Jt>=55296&&Jt<=56319&&Me<rt){var Gr=fe.charCodeAt(Me++);(Gr&64512)===56320?xe.push(((Jt&1023)<<10)+(Gr&1023)+65536):(xe.push(Jt),Me--)}else xe.push(Jt)}return xe},t=function(){for(var fe=[],xe=0;xe<arguments.length;xe++)fe[xe]=arguments[xe];if(String.fromCodePoint)return String.fromCodePoint.apply(String,fe);var Me=fe.length;if(!Me)return"";for(var rt=[],Jt=-1,Gr="";++Jt<Me;){var cn=fe[Jt];cn<=65535?rt.push(cn):(cn-=65536,rt.push((cn>>10)+55296,cn%1024+56320)),(Jt+1===Me||rt.length>16384)&&(Gr+=String.fromCharCode.apply(String,rt),rt.length=0)}return Gr},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<a.length;l++)e[a.charCodeAt(l)]=l;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),c=0;c<r.length;c++)s[r.charCodeAt(c)]=c;for(var h=function(fe){var xe=fe.length*.75,Me=fe.length,rt,Jt=0,Gr,cn,En,Xn;fe[fe.length-1]==="="&&(xe--,fe[fe.length-2]==="="&&xe--);var Di=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xe):new Array(xe),xi=Array.isArray(Di)?Di:new Uint8Array(Di);for(rt=0;rt<Me;rt+=4)Gr=s[fe.charCodeAt(rt)],cn=s[fe.charCodeAt(rt+1)],En=s[fe.charCodeAt(rt+2)],Xn=s[fe.charCodeAt(rt+3)],xi[Jt++]=Gr<<2|cn>>4,xi[Jt++]=(cn&15)<<4|En>>2,xi[Jt++]=(En&3)<<6|Xn&63;return Di},g=function(fe){for(var xe=fe.length,Me=[],rt=0;rt<xe;rt+=2)Me.push(fe[rt+1]<<8|fe[rt]);return Me},A=function(fe){for(var xe=fe.length,Me=[],rt=0;rt<xe;rt+=4)Me.push(fe[rt+3]<<24|fe[rt+2]<<16|fe[rt+1]<<8|fe[rt]);return Me},b=5,w=6+5,x=2,T=w-b,_=65536>>b,E=1<<b,C=E-1,I=1024>>b,O=_+I,F=O,R=2048>>6,B=F+R,P=65536>>w,X=1<<T,M=X-1,z=function(fe,xe,Me){return fe.slice?fe.slice(xe,Me):new Uint16Array(Array.prototype.slice.call(fe,xe,Me))},W=function(fe,xe,Me){return fe.slice?fe.slice(xe,Me):new Uint32Array(Array.prototype.slice.call(fe,xe,Me))},H=function(fe,xe){var Me=h(fe),rt=Array.isArray(Me)?A(Me):new Uint32Array(Me),Jt=Array.isArray(Me)?g(Me):new Uint16Array(Me),Gr=24,cn=z(Jt,Gr/2,rt[4]/2),En=rt[5]===2?z(Jt,(Gr+rt[4])/2):W(rt,Math.ceil((Gr+rt[4])/4));return new V(rt[0],rt[1],rt[2],rt[3],cn,En)},V=function(){function cr(fe,xe,Me,rt,Jt,Gr){this.initialValue=fe,this.errorValue=xe,this.highStart=Me,this.highValueIndex=rt,this.index=Jt,this.data=Gr}return cr.prototype.get=function(fe){var xe;if(fe>=0){if(fe<55296||fe>56319&&fe<=65535)return xe=this.index[fe>>b],xe=(xe<<x)+(fe&C),this.data[xe];if(fe<=65535)return xe=this.index[_+(fe-55296>>b)],xe=(xe<<x)+(fe&C),this.data[xe];if(fe<this.highStart)return xe=B-P+(fe>>w),xe=this.index[xe],xe+=fe>>b&M,xe=this.index[xe],xe=(xe<<x)+(fe&C),this.data[xe];if(fe<=1114111)return this.data[this.highValueIndex]}return this.errorValue},cr}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ee=0;ee<Q.length;ee++)G[Q.charCodeAt(ee)]=ee;var q="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==",se=50,re=1,Ae=2,Te=3,Re=4,Ge=5,Ue=7,nt=8,Le=9,le=10,Xe=11,pe=12,Z=13,Y=14,ne=15,ce=16,ye=17,Ee=18,Ce=19,ue=20,ge=21,Oe=22,Je=23,lt=24,tt=25,ke=26,st=27,Ve=28,Ot=29,Ut=30,ir=31,lr=32,Sr=33,mt=34,or=35,et=36,ur=37,qr=38,Fe=39,$t=40,Lr=41,pt=42,qt=43,vr=[9001,65288],pn="!",fr="\xD7",gr="\xF7",dn=H(q),Qt=[Ut,et],sr=[re,Ae,Te,Ge],Qr=[le,nt],Cn=[st,ke],Fn=sr.concat(Qr),ti=[qr,Fe,$t,mt,or],ki=[ne,Z],Dn=function(fe,xe){xe===void 0&&(xe="strict");var Me=[],rt=[],Jt=[];return fe.forEach(function(Gr,cn){var En=dn.get(Gr);if(En>se?(Jt.push(!0),En-=se):Jt.push(!1),["normal","auto","loose"].indexOf(xe)!==-1&&[8208,8211,12316,12448].indexOf(Gr)!==-1)return rt.push(cn),Me.push(ce);if(En===Re||En===Xe){if(cn===0)return rt.push(cn),Me.push(Ut);var Xn=Me[cn-1];return Fn.indexOf(Xn)===-1?(rt.push(rt[cn-1]),Me.push(Xn)):(rt.push(cn),Me.push(Ut))}if(rt.push(cn),En===ir)return Me.push(xe==="strict"?ge:ur);if(En===pt)return Me.push(Ut);if(En===Ot)return Me.push(Ut);if(En===qt)return Gr>=131072&&Gr<=196605||Gr>=196608&&Gr<=262141?Me.push(ur):Me.push(Ut);Me.push(En)}),[rt,Me,Jt]},Bn=function(fe,xe,Me,rt){var Jt=rt[Me];if(Array.isArray(fe)?fe.indexOf(Jt)!==-1:fe===Jt)for(var Gr=Me;Gr<=rt.length;){Gr++;var cn=rt[Gr];if(cn===xe)return!0;if(cn!==le)break}if(Jt===le)for(var Gr=Me;Gr>0;){Gr--;var En=rt[Gr];if(Array.isArray(fe)?fe.indexOf(En)!==-1:fe===En)for(var Xn=Me;Xn<=rt.length;){Xn++;var cn=rt[Xn];if(cn===xe)return!0;if(cn!==le)break}if(En!==le)break}return!1},Ft=function(fe,xe){for(var Me=fe;Me>=0;){var rt=xe[Me];if(rt===le)Me--;else return rt}return 0},vt=function(fe,xe,Me,rt,Jt){if(Me[rt]===0)return fr;var Gr=rt-1;if(Array.isArray(Jt)&&Jt[Gr]===!0)return fr;var cn=Gr-1,En=Gr+1,Xn=xe[Gr],Di=cn>=0?xe[cn]:0,xi=xe[En];if(Xn===Ae&&xi===Te)return fr;if(sr.indexOf(Xn)!==-1)return pn;if(sr.indexOf(xi)!==-1)return fr;if(Qr.indexOf(xi)!==-1)return fr;if(Ft(Gr,xe)===nt)return gr;if(dn.get(fe[Gr])===Xe)return fr;if((Xn===lr||Xn===Sr)&&dn.get(fe[En])===Xe)return fr;if(Xn===Ue||xi===Ue)return fr;if(Xn===Le)return fr;if([le,Z,ne].indexOf(Xn)===-1&&xi===Le)return fr;if([ye,Ee,Ce,lt,Ve].indexOf(xi)!==-1)return fr;if(Ft(Gr,xe)===Oe)return fr;if(Bn(Je,Oe,Gr,xe))return fr;if(Bn([ye,Ee],ge,Gr,xe))return fr;if(Bn(pe,pe,Gr,xe))return fr;if(Xn===le)return gr;if(Xn===Je||xi===Je)return fr;if(xi===ce||Xn===ce)return gr;if([Z,ne,ge].indexOf(xi)!==-1||Xn===Y)return fr;if(Di===et&&ki.indexOf(Xn)!==-1)return fr;if(Xn===Ve&&xi===et)return fr;if(xi===ue)return fr;if(Qt.indexOf(xi)!==-1&&Xn===tt||Qt.indexOf(Xn)!==-1&&xi===tt)return fr;if(Xn===st&&[ur,lr,Sr].indexOf(xi)!==-1||[ur,lr,Sr].indexOf(Xn)!==-1&&xi===ke)return fr;if(Qt.indexOf(Xn)!==-1&&Cn.indexOf(xi)!==-1||Cn.indexOf(Xn)!==-1&&Qt.indexOf(xi)!==-1)return fr;if([st,ke].indexOf(Xn)!==-1&&(xi===tt||[Oe,ne].indexOf(xi)!==-1&&xe[En+1]===tt)||[Oe,ne].indexOf(Xn)!==-1&&xi===tt||Xn===tt&&[tt,Ve,lt].indexOf(xi)!==-1)return fr;if([tt,Ve,lt,ye,Ee].indexOf(xi)!==-1)for(var Fi=Gr;Fi>=0;){var Fa=xe[Fi];if(Fa===tt)return fr;if([Ve,lt].indexOf(Fa)!==-1)Fi--;else break}if([st,ke].indexOf(xi)!==-1)for(var Fi=[ye,Ee].indexOf(Xn)!==-1?cn:Gr;Fi>=0;){var Fa=xe[Fi];if(Fa===tt)return fr;if([Ve,lt].indexOf(Fa)!==-1)Fi--;else break}if(qr===Xn&&[qr,Fe,mt,or].indexOf(xi)!==-1||[Fe,mt].indexOf(Xn)!==-1&&[Fe,$t].indexOf(xi)!==-1||[$t,or].indexOf(Xn)!==-1&&xi===$t)return fr;if(ti.indexOf(Xn)!==-1&&[ue,ke].indexOf(xi)!==-1||ti.indexOf(xi)!==-1&&Xn===st)return fr;if(Qt.indexOf(Xn)!==-1&&Qt.indexOf(xi)!==-1)return fr;if(Xn===lt&&Qt.indexOf(xi)!==-1)return fr;if(Qt.concat(tt).indexOf(Xn)!==-1&&xi===Oe&&vr.indexOf(fe[En])===-1||Qt.concat(tt).indexOf(xi)!==-1&&Xn===Ee)return fr;if(Xn===Lr&&xi===Lr){for(var Ka=Me[Gr],eo=1;Ka>0&&(Ka--,xe[Ka]===Lr);)eo++;if(eo%2!==0)return fr}return Xn===lr&&xi===Sr?fr:gr},_e=function(fe,xe){xe||(xe={lineBreak:"normal",wordBreak:"normal"});var Me=Dn(fe,xe.lineBreak),rt=Me[0],Jt=Me[1],Gr=Me[2];(xe.wordBreak==="break-all"||xe.wordBreak==="break-word")&&(Jt=Jt.map(function(En){return[tt,Ut,pt].indexOf(En)!==-1?ur:En}));var cn=xe.wordBreak==="keep-all"?Gr.map(function(En,Xn){return En&&fe[Xn]>=19968&&fe[Xn]<=40959}):void 0;return[rt,Jt,cn]},Ne=function(){function cr(fe,xe,Me,rt){this.codePoints=fe,this.required=xe===pn,this.start=Me,this.end=rt}return cr.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},cr}(),Ie=function(fe,xe){var Me=n(fe),rt=_e(Me,xe),Jt=rt[0],Gr=rt[1],cn=rt[2],En=Me.length,Xn=0,Di=0;return{next:function(){if(Di>=En)return{done:!0,value:null};for(var Fi=fr;Di<En&&(Fi=vt(Me,Gr,Jt,++Di,cn))===fr;);if(Fi!==fr||Di===En){var Fa=new Ne(Me,Fi,Xn,Di);return Xn=Di,{value:Fa,done:!1}}return{done:!0,value:null}}}},Ze=1<<0,ct=1<<1,gt=1<<2,kt=1<<3,xr=10,Hr=47,on=92,Nt=9,ot=32,dt=34,Yt=61,Pt=35,Et=36,Bt=37,wt=39,Mt=40,Nr=41,Tr=95,yr=45,en=33,sn=60,Vn=62,jn=64,ri=91,ci=93,gi=61,Ni=123,Qe=63,Se=125,Pe=124,He=126,Ye=128,ze=65533,$e=42,St=43,ft=44,Ht=58,Er=59,Fr=46,tn=0,Zt=8,Rn=11,vn=14,Un=31,hn=127,Wr=-1,Kn=48,ei=97,Si=101,Vr=102,fn=117,kn=122,It=65,yt=69,xt=70,Tt=85,Lt=90,_t=function(fe){return fe>=Kn&&fe<=57},Xt=function(fe){return fe>=55296&&fe<=57343},er=function(fe){return _t(fe)||fe>=It&&fe<=xt||fe>=ei&&fe<=Vr},nr=function(fe){return fe>=ei&&fe<=kn},br=function(fe){return fe>=It&&fe<=Lt},On=function(fe){return nr(fe)||br(fe)},bn=function(fe){return fe>=Ye},qn=function(fe){return fe===xr||fe===Nt||fe===ot},an=function(fe){return On(fe)||bn(fe)||fe===Tr},_r=function(fe){return an(fe)||_t(fe)||fe===yr},mn=function(fe){return fe>=tn&&fe<=Zt||fe===Rn||fe>=vn&&fe<=Un||fe===hn},In=function(fe,xe){return fe!==on?!1:xe!==xr},Wn=function(fe,xe,Me){return fe===yr?an(xe)||In(xe,Me):an(fe)?!0:!!(fe===on&&In(fe,xe))},Jn=function(fe,xe,Me){return fe===St||fe===yr?_t(xe)?!0:xe===Fr&&_t(Me):fe===Fr?_t(xe):_t(fe)},Ei=function(fe){var xe=0,Me=1;(fe[xe]===St||fe[xe]===yr)&&(fe[xe]===yr&&(Me=-1),xe++);for(var rt=[];_t(fe[xe]);)rt.push(fe[xe++]);var Jt=rt.length?parseInt(t.apply(void 0,rt),10):0;fe[xe]===Fr&&xe++;for(var Gr=[];_t(fe[xe]);)Gr.push(fe[xe++]);var cn=Gr.length,En=cn?parseInt(t.apply(void 0,Gr),10):0;(fe[xe]===yt||fe[xe]===Si)&&xe++;var Xn=1;(fe[xe]===St||fe[xe]===yr)&&(fe[xe]===yr&&(Xn=-1),xe++);for(var Di=[];_t(fe[xe]);)Di.push(fe[xe++]);var xi=Di.length?parseInt(t.apply(void 0,Di),10):0;return Me*(Jt+En*Math.pow(10,-cn))*Math.pow(10,Xn*xi)},yi={type:2},mi={type:3},Vi={type:4},la={type:13},Gi={type:8},ia={type:21},$i={type:9},xn={type:10},Ti={type:11},Ji={type:12},Wi={type:14},qi={type:23},Ir={type:1},ar={type:25},nn={type:24},Gt={type:26},wr={type:27},Pr={type:28},Jr={type:29},wn={type:31},bt={type:32},mr=function(){function cr(){this._value=[]}return cr.prototype.write=function(fe){this._value=this._value.concat(n(fe))},cr.prototype.read=function(){for(var fe=[],xe=this.consumeToken();xe!==bt;)fe.push(xe),xe=this.consumeToken();return fe},cr.prototype.consumeToken=function(){var fe=this.consumeCodePoint();switch(fe){case dt:return this.consumeStringToken(dt);case Pt:var xe=this.peekCodePoint(0),Me=this.peekCodePoint(1),rt=this.peekCodePoint(2);if(_r(xe)||In(Me,rt)){var Jt=Wn(xe,Me,rt)?ct:Ze,Gr=this.consumeName();return{type:5,value:Gr,flags:Jt}}break;case Et:if(this.peekCodePoint(0)===Yt)return this.consumeCodePoint(),la;break;case wt:return this.consumeStringToken(wt);case Mt:return yi;case Nr:return mi;case $e:if(this.peekCodePoint(0)===Yt)return this.consumeCodePoint(),Wi;break;case St:if(Jn(fe,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(fe),this.consumeNumericToken();break;case ft:return Vi;case yr:var cn=fe,En=this.peekCodePoint(0),Xn=this.peekCodePoint(1);if(Jn(cn,En,Xn))return this.reconsumeCodePoint(fe),this.consumeNumericToken();if(Wn(cn,En,Xn))return this.reconsumeCodePoint(fe),this.consumeIdentLikeToken();if(En===yr&&Xn===Vn)return this.consumeCodePoint(),this.consumeCodePoint(),nn;break;case Fr:if(Jn(fe,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(fe),this.consumeNumericToken();break;case Hr:if(this.peekCodePoint(0)===$e)for(this.consumeCodePoint();;){var Di=this.consumeCodePoint();if(Di===$e&&(Di=this.consumeCodePoint(),Di===Hr))return this.consumeToken();if(Di===Wr)return this.consumeToken()}break;case Ht:return Gt;case Er:return wr;case sn:if(this.peekCodePoint(0)===en&&this.peekCodePoint(1)===yr&&this.peekCodePoint(2)===yr)return this.consumeCodePoint(),this.consumeCodePoint(),ar;break;case jn:var xi=this.peekCodePoint(0),Fi=this.peekCodePoint(1),Fa=this.peekCodePoint(2);if(Wn(xi,Fi,Fa)){var Gr=this.consumeName();return{type:7,value:Gr}}break;case ri:return Pr;case on:if(In(fe,this.peekCodePoint(0)))return this.reconsumeCodePoint(fe),this.consumeIdentLikeToken();break;case ci:return Jr;case gi:if(this.peekCodePoint(0)===Yt)return this.consumeCodePoint(),Gi;break;case Ni:return Ti;case Se:return Ji;case fn:case Tt:var Ka=this.peekCodePoint(0),eo=this.peekCodePoint(1);return Ka===St&&(er(eo)||eo===Qe)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(fe),this.consumeIdentLikeToken();case Pe:if(this.peekCodePoint(0)===Yt)return this.consumeCodePoint(),$i;if(this.peekCodePoint(0)===Pe)return this.consumeCodePoint(),ia;break;case He:if(this.peekCodePoint(0)===Yt)return this.consumeCodePoint(),xn;break;case Wr:return bt}return qn(fe)?(this.consumeWhiteSpace(),wn):_t(fe)?(this.reconsumeCodePoint(fe),this.consumeNumericToken()):an(fe)?(this.reconsumeCodePoint(fe),this.consumeIdentLikeToken()):{type:6,value:t(fe)}},cr.prototype.consumeCodePoint=function(){var fe=this._value.shift();return typeof fe=="undefined"?-1:fe},cr.prototype.reconsumeCodePoint=function(fe){this._value.unshift(fe)},cr.prototype.peekCodePoint=function(fe){return fe>=this._value.length?-1:this._value[fe]},cr.prototype.consumeUnicodeRangeToken=function(){for(var fe=[],xe=this.consumeCodePoint();er(xe)&&fe.length<6;)fe.push(xe),xe=this.consumeCodePoint();for(var Me=!1;xe===Qe&&fe.length<6;)fe.push(xe),xe=this.consumeCodePoint(),Me=!0;if(Me){var rt=parseInt(t.apply(void 0,fe.map(function(En){return En===Qe?Kn:En})),16),Jt=parseInt(t.apply(void 0,fe.map(function(En){return En===Qe?xt:En})),16);return{type:30,start:rt,end:Jt}}var Gr=parseInt(t.apply(void 0,fe),16);if(this.peekCodePoint(0)===yr&&er(this.peekCodePoint(1))){this.consumeCodePoint(),xe=this.consumeCodePoint();for(var cn=[];er(xe)&&cn.length<6;)cn.push(xe),xe=this.consumeCodePoint();var Jt=parseInt(t.apply(void 0,cn),16);return{type:30,start:Gr,end:Jt}}else return{type:30,start:Gr,end:Gr}},cr.prototype.consumeIdentLikeToken=function(){var fe=this.consumeName();return fe.toLowerCase()==="url"&&this.peekCodePoint(0)===Mt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Mt?(this.consumeCodePoint(),{type:19,value:fe}):{type:20,value:fe}},cr.prototype.consumeUrlToken=function(){var fe=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Wr)return{type:22,value:""};var xe=this.peekCodePoint(0);if(xe===wt||xe===dt){var Me=this.consumeStringToken(this.consumeCodePoint());return Me.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Wr||this.peekCodePoint(0)===Nr)?(this.consumeCodePoint(),{type:22,value:Me.value}):(this.consumeBadUrlRemnants(),qi)}for(;;){var rt=this.consumeCodePoint();if(rt===Wr||rt===Nr)return{type:22,value:t.apply(void 0,fe)};if(qn(rt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Wr||this.peekCodePoint(0)===Nr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,fe)}):(this.consumeBadUrlRemnants(),qi);if(rt===dt||rt===wt||rt===Mt||mn(rt))return this.consumeBadUrlRemnants(),qi;if(rt===on)if(In(rt,this.peekCodePoint(0)))fe.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),qi;else fe.push(rt)}},cr.prototype.consumeWhiteSpace=function(){for(;qn(this.peekCodePoint(0));)this.consumeCodePoint()},cr.prototype.consumeBadUrlRemnants=function(){for(;;){var fe=this.consumeCodePoint();if(fe===Nr||fe===Wr)return;In(fe,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},cr.prototype.consumeStringSlice=function(fe){for(var xe=5e4,Me="";fe>0;){var rt=Math.min(xe,fe);Me+=t.apply(void 0,this._value.splice(0,rt)),fe-=rt}return this._value.shift(),Me},cr.prototype.consumeStringToken=function(fe){var xe="",Me=0;do{var rt=this._value[Me];if(rt===Wr||rt===void 0||rt===fe)return xe+=this.consumeStringSlice(Me),{type:0,value:xe};if(rt===xr)return this._value.splice(0,Me),Ir;if(rt===on){var Jt=this._value[Me+1];Jt!==Wr&&Jt!==void 0&&(Jt===xr?(xe+=this.consumeStringSlice(Me),Me=-1,this._value.shift()):In(rt,Jt)&&(xe+=this.consumeStringSlice(Me),xe+=t(this.consumeEscapedCodePoint()),Me=-1))}Me++}while(!0)},cr.prototype.consumeNumber=function(){var fe=[],xe=gt,Me=this.peekCodePoint(0);for((Me===St||Me===yr)&&fe.push(this.consumeCodePoint());_t(this.peekCodePoint(0));)fe.push(this.consumeCodePoint());Me=this.peekCodePoint(0);var rt=this.peekCodePoint(1);if(Me===Fr&&_t(rt))for(fe.push(this.consumeCodePoint(),this.consumeCodePoint()),xe=kt;_t(this.peekCodePoint(0));)fe.push(this.consumeCodePoint());Me=this.peekCodePoint(0),rt=this.peekCodePoint(1);var Jt=this.peekCodePoint(2);if((Me===yt||Me===Si)&&((rt===St||rt===yr)&&_t(Jt)||_t(rt)))for(fe.push(this.consumeCodePoint(),this.consumeCodePoint()),xe=kt;_t(this.peekCodePoint(0));)fe.push(this.consumeCodePoint());return[Ei(fe),xe]},cr.prototype.consumeNumericToken=function(){var fe=this.consumeNumber(),xe=fe[0],Me=fe[1],rt=this.peekCodePoint(0),Jt=this.peekCodePoint(1),Gr=this.peekCodePoint(2);if(Wn(rt,Jt,Gr)){var cn=this.consumeName();return{type:15,number:xe,flags:Me,unit:cn}}return rt===Bt?(this.consumeCodePoint(),{type:16,number:xe,flags:Me}):{type:17,number:xe,flags:Me}},cr.prototype.consumeEscapedCodePoint=function(){var fe=this.consumeCodePoint();if(er(fe)){for(var xe=t(fe);er(this.peekCodePoint(0))&&xe.length<6;)xe+=t(this.consumeCodePoint());qn(this.peekCodePoint(0))&&this.consumeCodePoint();var Me=parseInt(xe,16);return Me===0||Xt(Me)||Me>1114111?ze:Me}return fe===Wr?ze:fe},cr.prototype.consumeName=function(){for(var fe="";;){var xe=this.consumeCodePoint();if(_r(xe))fe+=t(xe);else if(In(xe,this.peekCodePoint(0)))fe+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(xe),fe}},cr}(),Ar=function(){function cr(fe){this._tokens=fe}return cr.create=function(fe){var xe=new mr;return xe.write(fe),new cr(xe.read())},cr.parseValue=function(fe){return cr.create(fe).parseComponentValue()},cr.parseValues=function(fe){return cr.create(fe).parseComponentValues()},cr.prototype.parseComponentValue=function(){for(var fe=this.consumeToken();fe.type===31;)fe=this.consumeToken();if(fe.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(fe);var xe=this.consumeComponentValue();do fe=this.consumeToken();while(fe.type===31);if(fe.type===32)return xe;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},cr.prototype.parseComponentValues=function(){for(var fe=[];;){var xe=this.consumeComponentValue();if(xe.type===32)return fe;fe.push(xe),fe.push()}},cr.prototype.consumeComponentValue=function(){var fe=this.consumeToken();switch(fe.type){case 11:case 28:case 2:return this.consumeSimpleBlock(fe.type);case 19:return this.consumeFunction(fe)}return fe},cr.prototype.consumeSimpleBlock=function(fe){for(var xe={type:fe,values:[]},Me=this.consumeToken();;){if(Me.type===32||ii(Me,fe))return xe;this.reconsumeToken(Me),xe.values.push(this.consumeComponentValue()),Me=this.consumeToken()}},cr.prototype.consumeFunction=function(fe){for(var xe={name:fe.value,values:[],type:18};;){var Me=this.consumeToken();if(Me.type===32||Me.type===3)return xe;this.reconsumeToken(Me),xe.values.push(this.consumeComponentValue())}},cr.prototype.consumeToken=function(){var fe=this._tokens.shift();return typeof fe=="undefined"?bt:fe},cr.prototype.reconsumeToken=function(fe){this._tokens.unshift(fe)},cr}(),Ur=function(fe){return fe.type===15},un=function(fe){return fe.type===17},An=function(fe){return fe.type===20},ln=function(fe){return fe.type===0},Hn=function(fe,xe){return An(fe)&&fe.value===xe},Ln=function(fe){return fe.type!==31},ni=function(fe){return fe.type!==31&&fe.type!==4},Ai=function(fe){var xe=[],Me=[];return fe.forEach(function(rt){if(rt.type===4){if(Me.length===0)throw new Error("Error parsing function args, zero tokens for arg");xe.push(Me),Me=[];return}rt.type!==31&&Me.push(rt)}),Me.length&&xe.push(Me),xe},ii=function(fe,xe){return xe===11&&fe.type===12||xe===28&&fe.type===29?!0:xe===2&&fe.type===3},_i=function(fe){return fe.type===17||fe.type===15},Ri=function(fe){return fe.type===16||_i(fe)},ji=function(fe){return fe.length>1?[fe[0],fe[1]]:[fe[0]]},wi={type:17,number:0,flags:gt},Ii={type:16,number:50,flags:gt},Oi={type:16,number:100,flags:gt},Ui=function(fe,xe,Me){var rt=fe[0],Jt=fe[1];return[Zi(rt,xe),Zi(typeof Jt!="undefined"?Jt:rt,Me)]},Zi=function(fe,xe){if(fe.type===16)return fe.number/100*xe;if(Ur(fe))switch(fe.unit){case"rem":case"em":return 16*fe.number;case"px":default:return fe.number}return fe.number},ma="deg",Hi="grad",xa="rad",Ea="turn",ta={name:"angle",parse:function(fe,xe){if(xe.type===15)switch(xe.unit){case ma:return Math.PI*xe.number/180;case Hi:return Math.PI/200*xe.number;case xa:return xe.number;case Ea:return Math.PI*2*xe.number}throw new Error("Unsupported angle type")}},ra=function(fe){return fe.type===15&&(fe.unit===ma||fe.unit===Hi||fe.unit===xa||fe.unit===Ea)},ga=function(fe){var xe=fe.filter(An).map(function(Me){return Me.value}).join(" ");switch(xe){case"to bottom right":case"to right bottom":case"left top":case"top left":return[wi,wi];case"to top":case"bottom":return sa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[wi,Oi];case"to right":case"left":return sa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Oi,Oi];case"to bottom":case"top":return sa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Oi,wi];case"to left":case"right":return sa(270)}return 0},sa=function(fe){return Math.PI*fe/180},Ba={name:"color",parse:function(fe,xe){if(xe.type===18){var Me=lo[xe.name];if(typeof Me=="undefined")throw new Error('Attempting to parse an unsupported color function "'+xe.name+'"');return Me(fe,xe.values)}if(xe.type===5){if(xe.value.length===3){var rt=xe.value.substring(0,1),Jt=xe.value.substring(1,2),Gr=xe.value.substring(2,3);return za(parseInt(rt+rt,16),parseInt(Jt+Jt,16),parseInt(Gr+Gr,16),1)}if(xe.value.length===4){var rt=xe.value.substring(0,1),Jt=xe.value.substring(1,2),Gr=xe.value.substring(2,3),cn=xe.value.substring(3,4);return za(parseInt(rt+rt,16),parseInt(Jt+Jt,16),parseInt(Gr+Gr,16),parseInt(cn+cn,16)/255)}if(xe.value.length===6){var rt=xe.value.substring(0,2),Jt=xe.value.substring(2,4),Gr=xe.value.substring(4,6);return za(parseInt(rt,16),parseInt(Jt,16),parseInt(Gr,16),1)}if(xe.value.length===8){var rt=xe.value.substring(0,2),Jt=xe.value.substring(2,4),Gr=xe.value.substring(4,6),cn=xe.value.substring(6,8);return za(parseInt(rt,16),parseInt(Jt,16),parseInt(Gr,16),parseInt(cn,16)/255)}}if(xe.type===20){var En=co[xe.value.toUpperCase()];if(typeof En!="undefined")return En}return co.TRANSPARENT}},va=function(fe){return(255&fe)===0},Ia=function(fe){var xe=255&fe,Me=255&fe>>8,rt=255&fe>>16,Jt=255&fe>>24;return xe<255?"rgba("+Jt+","+rt+","+Me+","+xe/255+")":"rgb("+Jt+","+rt+","+Me+")"},za=function(fe,xe,Me,rt){return(fe<<24|xe<<16|Me<<8|Math.round(rt*255)<<0)>>>0},Va=function(fe,xe){if(fe.type===17)return fe.number;if(fe.type===16){var Me=xe===3?1:255;return xe===3?fe.number/100*Me:Math.round(fe.number/100*Me)}return 0},Ya=function(fe,xe){var Me=xe.filter(ni);if(Me.length===3){var rt=Me.map(Va),Jt=rt[0],Gr=rt[1],cn=rt[2];return za(Jt,Gr,cn,1)}if(Me.length===4){var En=Me.map(Va),Jt=En[0],Gr=En[1],cn=En[2],Xn=En[3];return za(Jt,Gr,cn,Xn)}return 0};function Bi(cr,fe,xe){return xe<0&&(xe+=1),xe>=1&&(xe-=1),xe<1/6?(fe-cr)*xe*6+cr:xe<1/2?fe:xe<2/3?(fe-cr)*6*(2/3-xe)+cr:cr}var ro=function(fe,xe){var Me=xe.filter(ni),rt=Me[0],Jt=Me[1],Gr=Me[2],cn=Me[3],En=(rt.type===17?sa(rt.number):ta.parse(fe,rt))/(Math.PI*2),Xn=Ri(Jt)?Jt.number/100:0,Di=Ri(Gr)?Gr.number/100:0,xi=typeof cn!="undefined"&&Ri(cn)?Zi(cn,1):1;if(Xn===0)return za(Di*255,Di*255,Di*255,1);var Fi=Di<=.5?Di*(Xn+1):Di+Xn-Di*Xn,Fa=Di*2-Fi,Ka=Bi(Fa,Fi,En+1/3),eo=Bi(Fa,Fi,En),Yo=Bi(Fa,Fi,En-1/3);return za(Ka*255,eo*255,Yo*255,xi)},lo={hsl:ro,hsla:ro,rgb:Ya,rgba:Ya},no=function(fe,xe){return Ba.parse(fe,Ar.create(xe).parseComponentValue())},co={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},To={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(fe,xe){return xe.map(function(Me){if(An(Me))switch(Me.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ga={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Po=function(fe,xe){var Me=Ba.parse(fe,xe[0]),rt=xe[1];return rt&&Ri(rt)?{color:Me,stop:rt}:{color:Me,stop:null}},uo=function(fe,xe){var Me=fe[0],rt=fe[fe.length-1];Me.stop===null&&(Me.stop=wi),rt.stop===null&&(rt.stop=Oi);for(var Jt=[],Gr=0,cn=0;cn<fe.length;cn++){var En=fe[cn].stop;if(En!==null){var Xn=Zi(En,xe);Xn>Gr?Jt.push(Xn):Jt.push(Gr),Gr=Xn}else Jt.push(null)}for(var Di=null,cn=0;cn<Jt.length;cn++){var xi=Jt[cn];if(xi===null)Di===null&&(Di=cn);else if(Di!==null){for(var Fi=cn-Di,Fa=Jt[Di-1],Ka=(xi-Fa)/(Fi+1),eo=1;eo<=Fi;eo++)Jt[Di+eo-1]=Ka*eo;Di=null}}return fe.map(function(Yo,Lo){var yo=Yo.color;return{color:yo,stop:Math.max(Math.min(1,Jt[Lo]/xe),0)}})},ho=function(fe,xe,Me){var rt=xe/2,Jt=Me/2,Gr=Zi(fe[0],xe)-rt,cn=Jt-Zi(fe[1],Me);return(Math.atan2(cn,Gr)+Math.PI*2)%(Math.PI*2)},zo=function(fe,xe,Me){var rt=typeof fe=="number"?fe:ho(fe,xe,Me),Jt=Math.abs(xe*Math.sin(rt))+Math.abs(Me*Math.cos(rt)),Gr=xe/2,cn=Me/2,En=Jt/2,Xn=Math.sin(rt-Math.PI/2)*En,Di=Math.cos(rt-Math.PI/2)*En;return[Jt,Gr-Di,Gr+Di,cn-Xn,cn+Xn]},Oa=function(fe,xe){return Math.sqrt(fe*fe+xe*xe)},mo=function(fe,xe,Me,rt,Jt){var Gr=[[0,0],[0,xe],[fe,0],[fe,xe]];return Gr.reduce(function(cn,En){var Xn=En[0],Di=En[1],xi=Oa(Me-Xn,rt-Di);return(Jt?xi<cn.optimumDistance:xi>cn.optimumDistance)?{optimumCorner:En,optimumDistance:xi}:cn},{optimumDistance:Jt?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Do=function(fe,xe,Me,rt,Jt){var Gr=0,cn=0;switch(fe.size){case 0:fe.shape===0?Gr=cn=Math.min(Math.abs(xe),Math.abs(xe-rt),Math.abs(Me),Math.abs(Me-Jt)):fe.shape===1&&(Gr=Math.min(Math.abs(xe),Math.abs(xe-rt)),cn=Math.min(Math.abs(Me),Math.abs(Me-Jt)));break;case 2:if(fe.shape===0)Gr=cn=Math.min(Oa(xe,Me),Oa(xe,Me-Jt),Oa(xe-rt,Me),Oa(xe-rt,Me-Jt));else if(fe.shape===1){var En=Math.min(Math.abs(Me),Math.abs(Me-Jt))/Math.min(Math.abs(xe),Math.abs(xe-rt)),Xn=mo(rt,Jt,xe,Me,!0),Di=Xn[0],xi=Xn[1];Gr=Oa(Di-xe,(xi-Me)/En),cn=En*Gr}break;case 1:fe.shape===0?Gr=cn=Math.max(Math.abs(xe),Math.abs(xe-rt),Math.abs(Me),Math.abs(Me-Jt)):fe.shape===1&&(Gr=Math.max(Math.abs(xe),Math.abs(xe-rt)),cn=Math.max(Math.abs(Me),Math.abs(Me-Jt)));break;case 3:if(fe.shape===0)Gr=cn=Math.max(Oa(xe,Me),Oa(xe,Me-Jt),Oa(xe-rt,Me),Oa(xe-rt,Me-Jt));else if(fe.shape===1){var En=Math.max(Math.abs(Me),Math.abs(Me-Jt))/Math.max(Math.abs(xe),Math.abs(xe-rt)),Fi=mo(rt,Jt,xe,Me,!1),Di=Fi[0],xi=Fi[1];Gr=Oa(Di-xe,(xi-Me)/En),cn=En*Gr}break}return Array.isArray(fe.size)&&(Gr=Zi(fe.size[0],rt),cn=fe.size.length===2?Zi(fe.size[1],Jt):Gr),[Gr,cn]},Qo=function(fe,xe){var Me=sa(180),rt=[];return Ai(xe).forEach(function(Jt,Gr){if(Gr===0){var cn=Jt[0];if(cn.type===20&&cn.value==="to"){Me=ga(Jt);return}else if(ra(cn)){Me=ta.parse(fe,cn);return}}var En=Po(fe,Jt);rt.push(En)}),{angle:Me,stops:rt,type:1}},xo=function(fe,xe){var Me=sa(180),rt=[];return Ai(xe).forEach(function(Jt,Gr){if(Gr===0){var cn=Jt[0];if(cn.type===20&&["top","left","right","bottom"].indexOf(cn.value)!==-1){Me=ga(Jt);return}else if(ra(cn)){Me=(ta.parse(fe,cn)+sa(270))%sa(360);return}}var En=Po(fe,Jt);rt.push(En)}),{angle:Me,stops:rt,type:1}},Fo=function(fe,xe){var Me=sa(180),rt=[],Jt=1,Gr=0,cn=3,En=[];return Ai(xe).forEach(function(Xn,Di){var xi=Xn[0];if(Di===0){if(An(xi)&&xi.value==="linear"){Jt=1;return}else if(An(xi)&&xi.value==="radial"){Jt=2;return}}if(xi.type===18){if(xi.name==="from"){var Fi=Ba.parse(fe,xi.values[0]);rt.push({stop:wi,color:Fi})}else if(xi.name==="to"){var Fi=Ba.parse(fe,xi.values[0]);rt.push({stop:Oi,color:Fi})}else if(xi.name==="color-stop"){var Fa=xi.values.filter(ni);if(Fa.length===2){var Fi=Ba.parse(fe,Fa[1]),Ka=Fa[0];un(Ka)&&rt.push({stop:{type:16,number:Ka.number*100,flags:Ka.flags},color:Fi})}}}}),Jt===1?{angle:(Me+sa(180))%sa(360),stops:rt,type:Jt}:{size:cn,shape:Gr,stops:rt,position:En,type:Jt}},Ho="closest-side",go="farthest-side",qa="closest-corner",_a="farthest-corner",at="circle",dr="ellipse",Kr="cover",Br="contain",Pn=function(fe,xe){var Me=0,rt=3,Jt=[],Gr=[];return Ai(xe).forEach(function(cn,En){var Xn=!0;if(En===0){var Di=!1;Xn=cn.reduce(function(Fi,Fa){if(Di)if(An(Fa))switch(Fa.value){case"center":return Gr.push(Ii),Fi;case"top":case"left":return Gr.push(wi),Fi;case"right":case"bottom":return Gr.push(Oi),Fi}else(Ri(Fa)||_i(Fa))&&Gr.push(Fa);else if(An(Fa))switch(Fa.value){case at:return Me=0,!1;case dr:return Me=1,!1;case"at":return Di=!0,!1;case Ho:return rt=0,!1;case Kr:case go:return rt=1,!1;case Br:case qa:return rt=2,!1;case _a:return rt=3,!1}else if(_i(Fa)||Ri(Fa))return Array.isArray(rt)||(rt=[]),rt.push(Fa),!1;return Fi},Xn)}if(Xn){var xi=Po(fe,cn);Jt.push(xi)}}),{size:rt,shape:Me,stops:Jt,position:Gr,type:2}},$r=function(fe,xe){var Me=0,rt=3,Jt=[],Gr=[];return Ai(xe).forEach(function(cn,En){var Xn=!0;if(En===0?Xn=cn.reduce(function(xi,Fi){if(An(Fi))switch(Fi.value){case"center":return Gr.push(Ii),!1;case"top":case"left":return Gr.push(wi),!1;case"right":case"bottom":return Gr.push(Oi),!1}else if(Ri(Fi)||_i(Fi))return Gr.push(Fi),!1;return xi},Xn):En===1&&(Xn=cn.reduce(function(xi,Fi){if(An(Fi))switch(Fi.value){case at:return Me=0,!1;case dr:return Me=1,!1;case Br:case Ho:return rt=0,!1;case go:return rt=1,!1;case qa:return rt=2,!1;case Kr:case _a:return rt=3,!1}else if(_i(Fi)||Ri(Fi))return Array.isArray(rt)||(rt=[]),rt.push(Fi),!1;return xi},Xn)),Xn){var Di=Po(fe,cn);Jt.push(Di)}}),{size:rt,shape:Me,stops:Jt,position:Gr,type:2}},Mr=function(fe){return fe.type===1},Gn=function(fe){return fe.type===2},zr={name:"image",parse:function(fe,xe){if(xe.type===22){var Me={url:xe.value,type:0};return fe.cache.addImage(xe.value),Me}if(xe.type===18){var rt=Qn[xe.name];if(typeof rt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+xe.name+'"');return rt(fe,xe.values)}throw new Error("Unsupported image type "+xe.type)}};function Nn(cr){return!(cr.type===20&&cr.value==="none")&&(cr.type!==18||!!Qn[cr.name])}var Qn={"linear-gradient":Qo,"-moz-linear-gradient":xo,"-ms-linear-gradient":xo,"-o-linear-gradient":xo,"-webkit-linear-gradient":xo,"radial-gradient":Pn,"-moz-radial-gradient":$r,"-ms-radial-gradient":$r,"-o-radial-gradient":$r,"-webkit-radial-gradient":$r,"-webkit-gradient":Fo},Zn={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(fe,xe){if(xe.length===0)return[];var Me=xe[0];return Me.type===20&&Me.value==="none"?[]:xe.filter(function(rt){return ni(rt)&&Nn(rt)}).map(function(rt){return zr.parse(fe,rt)})}},Yn={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(fe,xe){return xe.map(function(Me){if(An(Me))switch(Me.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ui={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(fe,xe){return Ai(xe).map(function(Me){return Me.filter(Ri)}).map(ji)}},ai={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(fe,xe){return Ai(xe).map(function(Me){return Me.filter(An).map(function(rt){return rt.value}).join(" ")}).map(hi)}},hi=function(fe){switch(fe){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}},pi;(function(cr){cr.AUTO="auto",cr.CONTAIN="contain",cr.COVER="cover"})(pi||(pi={}));var zi={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(fe,xe){return Ai(xe).map(function(Me){return Me.filter(Ci)})}},Ci=function(fe){return An(fe)||Ri(fe)},na=function(fe){return{name:"border-"+fe+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},La=na("top"),pa=na("right"),ca=na("bottom"),wa=na("left"),Ca=function(fe){return{name:"border-radius-"+fe,initialValue:"0 0",prefix:!1,type:1,parse:function(Me,rt){return ji(rt.filter(Ri))}}},No=Ca("top-left"),fo=Ca("top-right"),ea=Ca("bottom-right"),ua=Ca("bottom-left"),da=function(fe){return{name:"border-"+fe+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Me,rt){switch(rt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ra=da("top"),Za=da("right"),Qa=da("bottom"),oo=da("left"),bo=function(fe){return{name:"border-"+fe+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Me,rt){return Ur(rt)?rt.number:0}}},es=bo("top"),ss=bo("right"),Rs=bo("bottom"),Ko=bo("left"),qo={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},to={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"rtl":return 1;case"ltr":default:return 0}}},Xa={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(fe,xe){return xe.filter(An).reduce(function(Me,rt){return Me|Wa(rt.value)},0)}},Wa=function(fe){switch(fe){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},Jo={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},hs={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(fe,xe){return xe.type===20&&xe.value==="normal"?0:xe.type===17||xe.type===15?xe.number:0}},Eo;(function(cr){cr.NORMAL="normal",cr.STRICT="strict"})(Eo||(Eo={}));var Ws={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"strict":return Eo.STRICT;case"normal":default:return Eo.NORMAL}}},_o={name:"line-height",initialValue:"normal",prefix:!1,type:4},Mo=function(fe,xe){return An(fe)&&fe.value==="normal"?1.2*xe:fe.type===17?xe*fe.number:Ri(fe)?Zi(fe,xe):xe},xs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(fe,xe){return xe.type===20&&xe.value==="none"?null:zr.parse(fe,xe)}},Go={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"inside":return 0;case"outside":default:return 1}}},ns={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(fe,xe){switch(xe){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}}},is=function(fe){return{name:"margin-"+fe,initialValue:"0",prefix:!1,type:4}},bs=is("top"),Sl=is("right"),Fs=is("bottom"),Ms=is("left"),cs={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(fe,xe){return xe.filter(An).map(function(Me){switch(Me.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},_s={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"break-word":return"break-word";case"normal":default:return"normal"}}},Us=function(fe){return{name:"padding-"+fe,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ks=Us("top"),ps=Us("right"),Es=Us("bottom"),tl=Us("left"),Os={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ro={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},wo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(fe,xe){return xe.length===1&&Hn(xe[0],"none")?[]:Ai(xe).map(function(Me){for(var rt={color:co.TRANSPARENT,offsetX:wi,offsetY:wi,blur:wi},Jt=0,Gr=0;Gr<Me.length;Gr++){var cn=Me[Gr];_i(cn)?(Jt===0?rt.offsetX=cn:Jt===1?rt.offsetY=cn:rt.blur=cn,Jt++):rt.color=Ba.parse(fe,cn)}return rt})}},ms={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},As={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(fe,xe){if(xe.type===20&&xe.value==="none")return null;if(xe.type===18){var Me=zt[xe.name];if(typeof Me=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+xe.name+'"');return Me(xe.values)}return null}},ao=function(fe){var xe=fe.filter(function(Me){return Me.type===17}).map(function(Me){return Me.number});return xe.length===6?xe:null},Ct=function(fe){var xe=fe.filter(function(Xn){return Xn.type===17}).map(function(Xn){return Xn.number}),Me=xe[0],rt=xe[1];xe[2],xe[3];var Jt=xe[4],Gr=xe[5];xe[6],xe[7],xe[8],xe[9],xe[10],xe[11];var cn=xe[12],En=xe[13];return xe[14],xe[15],xe.length===16?[Me,rt,Jt,Gr,cn,En]:null},zt={matrix:ao,matrix3d:Ct},gn={type:16,number:50,flags:gt},$n=[gn,gn],bi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(fe,xe){var Me=xe.filter(Ri);return Me.length!==2?$n:[Me[0],Me[1]]}},oi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Yi;(function(cr){cr.NORMAL="normal",cr.BREAK_ALL="break-all",cr.KEEP_ALL="keep-all"})(Yi||(Yi={}));for(var ha={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"break-all":return Yi.BREAK_ALL;case"keep-all":return Yi.KEEP_ALL;case"normal":default:return Yi.NORMAL}}},Pa={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(fe,xe){if(xe.type===20)return{auto:!0,order:0};if(un(xe))return{auto:!1,order:xe.number};throw new Error("Invalid z-index number parsed")}},Co={name:"time",parse:function(fe,xe){if(xe.type===15)switch(xe.unit.toLowerCase()){case"s":return 1e3*xe.number;case"ms":return xe.number}throw new Error("Unsupported time type")}},vo={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(fe,xe){return un(xe)?xe.number:1}},ko={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ls={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(fe,xe){return xe.filter(An).map(function(Me){switch(Me.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Me){return Me!==0})}},jo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(fe,xe){var Me=[],rt=[];return xe.forEach(function(Jt){switch(Jt.type){case 20:case 0:Me.push(Jt.value);break;case 17:Me.push(Jt.number.toString());break;case 4:rt.push(Me.join(" ")),Me.length=0;break}}),Me.length&&rt.push(Me.join(" ")),rt.map(function(Jt){return Jt.indexOf(" ")===-1?Jt:"'"+Jt+"'"})}},Zo={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ts={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(fe,xe){if(un(xe))return xe.number;if(An(xe))switch(xe.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ua={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(fe,xe){return xe.filter(An).map(function(Me){return Me.value})}},Oo={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(fe,xe){switch(xe){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},as=function(fe,xe){return(fe&xe)!==0},Ul={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(fe,xe){if(xe.length===0)return[];var Me=xe[0];return Me.type===20&&Me.value==="none"?[]:xe}},vl={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(fe,xe){if(xe.length===0)return null;var Me=xe[0];if(Me.type===20&&Me.value==="none")return null;for(var rt=[],Jt=xe.filter(Ln),Gr=0;Gr<Jt.length;Gr++){var cn=Jt[Gr],En=Jt[Gr+1];if(cn.type===20){var Xn=En&&un(En)?En.number:1;rt.push({counter:cn.value,increment:Xn})}}return rt}},Qs={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(fe,xe){if(xe.length===0)return[];for(var Me=[],rt=xe.filter(Ln),Jt=0;Jt<rt.length;Jt++){var Gr=rt[Jt],cn=rt[Jt+1];if(An(Gr)&&Gr.value!=="none"){var En=cn&&un(cn)?cn.number:0;Me.push({counter:Gr.value,reset:En})}}return Me}},il={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(fe,xe){return xe.filter(Ur).map(function(Me){return Co.parse(fe,Me)})}},ll={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(fe,xe){if(xe.length===0)return null;var Me=xe[0];if(Me.type===20&&Me.value==="none")return null;var rt=[],Jt=xe.filter(ln);if(Jt.length%2!==0)return null;for(var Gr=0;Gr<Jt.length;Gr+=2){var cn=Jt[Gr].value,En=Jt[Gr+1].value;rt.push({open:cn,close:En})}return rt}},jl=function(fe,xe,Me){if(!fe)return"";var rt=fe[Math.min(xe,fe.length-1)];return rt?Me?rt.open:rt.close:""},Hl={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(fe,xe){return xe.length===1&&Hn(xe[0],"none")?[]:Ai(xe).map(function(Me){for(var rt={color:255,offsetX:wi,offsetY:wi,blur:wi,spread:wi,inset:!1},Jt=0,Gr=0;Gr<Me.length;Gr++){var cn=Me[Gr];Hn(cn,"inset")?rt.inset=!0:_i(cn)?(Jt===0?rt.offsetX=cn:Jt===1?rt.offsetY=cn:Jt===2?rt.blur=cn:rt.spread=cn,Jt++):rt.color=Ba.parse(fe,cn)}return rt})}},Js={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(fe,xe){var Me=[0,1,2],rt=[];return xe.filter(An).forEach(function(Jt){switch(Jt.value){case"stroke":rt.push(1);break;case"fill":rt.push(0);break;case"markers":rt.push(2);break}}),Me.forEach(function(Jt){rt.indexOf(Jt)===-1&&rt.push(Jt)}),rt}},fs={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Xo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(fe,xe){return Ur(xe)?xe.number:0}},Zs=function(){function cr(fe,xe){var Me,rt;this.animationDuration=ka(fe,il,xe.animationDuration),this.backgroundClip=ka(fe,To,xe.backgroundClip),this.backgroundColor=ka(fe,Ga,xe.backgroundColor),this.backgroundImage=ka(fe,Zn,xe.backgroundImage),this.backgroundOrigin=ka(fe,Yn,xe.backgroundOrigin),this.backgroundPosition=ka(fe,ui,xe.backgroundPosition),this.backgroundRepeat=ka(fe,ai,xe.backgroundRepeat),this.backgroundSize=ka(fe,zi,xe.backgroundSize),this.borderTopColor=ka(fe,La,xe.borderTopColor),this.borderRightColor=ka(fe,pa,xe.borderRightColor),this.borderBottomColor=ka(fe,ca,xe.borderBottomColor),this.borderLeftColor=ka(fe,wa,xe.borderLeftColor),this.borderTopLeftRadius=ka(fe,No,xe.borderTopLeftRadius),this.borderTopRightRadius=ka(fe,fo,xe.borderTopRightRadius),this.borderBottomRightRadius=ka(fe,ea,xe.borderBottomRightRadius),this.borderBottomLeftRadius=ka(fe,ua,xe.borderBottomLeftRadius),this.borderTopStyle=ka(fe,Ra,xe.borderTopStyle),this.borderRightStyle=ka(fe,Za,xe.borderRightStyle),this.borderBottomStyle=ka(fe,Qa,xe.borderBottomStyle),this.borderLeftStyle=ka(fe,oo,xe.borderLeftStyle),this.borderTopWidth=ka(fe,es,xe.borderTopWidth),this.borderRightWidth=ka(fe,ss,xe.borderRightWidth),this.borderBottomWidth=ka(fe,Rs,xe.borderBottomWidth),this.borderLeftWidth=ka(fe,Ko,xe.borderLeftWidth),this.boxShadow=ka(fe,Hl,xe.boxShadow),this.color=ka(fe,qo,xe.color),this.direction=ka(fe,to,xe.direction),this.display=ka(fe,Xa,xe.display),this.float=ka(fe,Jo,xe.cssFloat),this.fontFamily=ka(fe,jo,xe.fontFamily),this.fontSize=ka(fe,Zo,xe.fontSize),this.fontStyle=ka(fe,Oo,xe.fontStyle),this.fontVariant=ka(fe,Ua,xe.fontVariant),this.fontWeight=ka(fe,ts,xe.fontWeight),this.letterSpacing=ka(fe,hs,xe.letterSpacing),this.lineBreak=ka(fe,Ws,xe.lineBreak),this.lineHeight=ka(fe,_o,xe.lineHeight),this.listStyleImage=ka(fe,xs,xe.listStyleImage),this.listStylePosition=ka(fe,Go,xe.listStylePosition),this.listStyleType=ka(fe,ns,xe.listStyleType),this.marginTop=ka(fe,bs,xe.marginTop),this.marginRight=ka(fe,Sl,xe.marginRight),this.marginBottom=ka(fe,Fs,xe.marginBottom),this.marginLeft=ka(fe,Ms,xe.marginLeft),this.opacity=ka(fe,vo,xe.opacity);var Jt=ka(fe,cs,xe.overflow);this.overflowX=Jt[0],this.overflowY=Jt[Jt.length>1?1:0],this.overflowWrap=ka(fe,_s,xe.overflowWrap),this.paddingTop=ka(fe,ks,xe.paddingTop),this.paddingRight=ka(fe,ps,xe.paddingRight),this.paddingBottom=ka(fe,Es,xe.paddingBottom),this.paddingLeft=ka(fe,tl,xe.paddingLeft),this.paintOrder=ka(fe,Js,xe.paintOrder),this.position=ka(fe,Ro,xe.position),this.textAlign=ka(fe,Os,xe.textAlign),this.textDecorationColor=ka(fe,ko,(Me=xe.textDecorationColor)!==null&&Me!==void 0?Me:xe.color),this.textDecorationLine=ka(fe,ls,(rt=xe.textDecorationLine)!==null&&rt!==void 0?rt:xe.textDecoration),this.textShadow=ka(fe,wo,xe.textShadow),this.textTransform=ka(fe,ms,xe.textTransform),this.transform=ka(fe,As,xe.transform),this.transformOrigin=ka(fe,bi,xe.transformOrigin),this.visibility=ka(fe,oi,xe.visibility),this.webkitTextStrokeColor=ka(fe,fs,xe.webkitTextStrokeColor),this.webkitTextStrokeWidth=ka(fe,Xo,xe.webkitTextStrokeWidth),this.wordBreak=ka(fe,ha,xe.wordBreak),this.zIndex=ka(fe,Pa,xe.zIndex)}return cr.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},cr.prototype.isTransparent=function(){return va(this.backgroundColor)},cr.prototype.isTransformed=function(){return this.transform!==null},cr.prototype.isPositioned=function(){return this.position!==0},cr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},cr.prototype.isFloating=function(){return this.float!==0},cr.prototype.isInlineLevel=function(){return as(this.display,4)||as(this.display,33554432)||as(this.display,268435456)||as(this.display,536870912)||as(this.display,67108864)||as(this.display,134217728)},cr}(),Gl=function(){function cr(fe,xe){this.content=ka(fe,Ul,xe.content),this.quotes=ka(fe,ll,xe.quotes)}return cr}(),Kl=function(){function cr(fe,xe){this.counterIncrement=ka(fe,vl,xe.counterIncrement),this.counterReset=ka(fe,Qs,xe.counterReset)}return cr}(),ka=function(fe,xe,Me){var rt=new mr,Jt=Me!==null&&typeof Me!="undefined"?Me.toString():xe.initialValue;rt.write(Jt);var Gr=new Ar(rt.read());switch(xe.type){case 2:var cn=Gr.parseComponentValue();return xe.parse(fe,An(cn)?cn.value:xe.initialValue);case 0:return xe.parse(fe,Gr.parseComponentValue());case 1:return xe.parse(fe,Gr.parseComponentValues());case 4:return Gr.parseComponentValue();case 3:switch(xe.format){case"angle":return ta.parse(fe,Gr.parseComponentValue());case"color":return Ba.parse(fe,Gr.parseComponentValue());case"image":return zr.parse(fe,Gr.parseComponentValue());case"length":var En=Gr.parseComponentValue();return _i(En)?En:wi;case"length-percentage":var Xn=Gr.parseComponentValue();return Ri(Xn)?Xn:wi;case"time":return Co.parse(fe,Gr.parseComponentValue())}break}},Ll="data-html2canvas-debug",kl=function(fe){var xe=fe.getAttribute(Ll);switch(xe){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Al=function(fe,xe){var Me=kl(fe);return Me===1||xe===Me},Is=function(){function cr(fe,xe){if(this.context=fe,this.textNodes=[],this.elements=[],this.flags=0,Al(xe,3))debugger;this.styles=new Zs(fe,window.getComputedStyle(xe,null)),os(xe)&&(this.styles.animationDuration.some(function(Me){return Me>0})&&(xe.style.animationDuration="0s"),this.styles.transform!==null&&(xe.style.transform="none")),this.bounds=u(this.context,xe),Al(xe,4)&&(this.flags|=16)}return cr}(),al="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),yl=0;yl<eu.length;yl++)Nl[eu.charCodeAt(yl)]=yl;for(var Ls=function(fe){var xe=fe.length*.75,Me=fe.length,rt,Jt=0,Gr,cn,En,Xn;fe[fe.length-1]==="="&&(xe--,fe[fe.length-2]==="="&&xe--);var Di=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xe):new Array(xe),xi=Array.isArray(Di)?Di:new Uint8Array(Di);for(rt=0;rt<Me;rt+=4)Gr=Nl[fe.charCodeAt(rt)],cn=Nl[fe.charCodeAt(rt+1)],En=Nl[fe.charCodeAt(rt+2)],Xn=Nl[fe.charCodeAt(rt+3)],xi[Jt++]=Gr<<2|cn>>4,xi[Jt++]=(cn&15)<<4|En>>2,xi[Jt++]=(En&3)<<6|Xn&63;return Di},Xs=function(fe){for(var xe=fe.length,Me=[],rt=0;rt<xe;rt+=2)Me.push(fe[rt+1]<<8|fe[rt]);return Me},Wl=function(fe){for(var xe=fe.length,Me=[],rt=0;rt<xe;rt+=4)Me.push(fe[rt+3]<<24|fe[rt+2]<<16|fe[rt+1]<<8|fe[rt]);return Me},ol=5,So=6+5,io=2,Bo=So-ol,ds=65536>>ol,gs=1<<ol,Wo=gs-1,vs=1024>>ol,Ps=ds+vs,js=Ps,bl=2048>>6,ml=js+bl,Dl=65536>>So,xl=1<<Bo,El=xl-1,Pl=function(fe,xe,Me){return fe.slice?fe.slice(xe,Me):new Uint16Array(Array.prototype.slice.call(fe,xe,Me))},zs=function(fe,xe,Me){return fe.slice?fe.slice(xe,Me):new Uint32Array(Array.prototype.slice.call(fe,xe,Me))},Cs=function(fe,xe){var Me=Ls(fe),rt=Array.isArray(Me)?Wl(Me):new Uint32Array(Me),Jt=Array.isArray(Me)?Xs(Me):new Uint16Array(Me),Gr=24,cn=Pl(Jt,Gr/2,rt[4]/2),En=rt[5]===2?Pl(Jt,(Gr+rt[4])/2):zs(rt,Math.ceil((Gr+rt[4])/4));return new Vs(rt[0],rt[1],rt[2],rt[3],cn,En)},Vs=function(){function cr(fe,xe,Me,rt,Jt,Gr){this.initialValue=fe,this.errorValue=xe,this.highStart=Me,this.highValueIndex=rt,this.index=Jt,this.data=Gr}return cr.prototype.get=function(fe){var xe;if(fe>=0){if(fe<55296||fe>56319&&fe<=65535)return xe=this.index[fe>>ol],xe=(xe<<io)+(fe&Wo),this.data[xe];if(fe<=65535)return xe=this.index[ds+(fe-55296>>ol)],xe=(xe<<io)+(fe&Wo),this.data[xe];if(fe<this.highStart)return xe=ml-Dl+(fe>>So),xe=this.index[xe],xe+=fe>>ol&El,xe=this.index[xe],xe=(xe<<io)+(fe&Wo),this.data[xe];if(fe<=1114111)return this.data[this.highValueIndex]}return this.errorValue},cr}(),Ts="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Cl=0;Cl<Ts.length;Cl++)ul[Ts.charCodeAt(Cl)]=Cl;var Xl=1,Jl=2,cl=3,zl=4,tu=5,Iu=7,bu=8,du=9,hu=10,nu=11,dl=12,Tl=13,wl=14,Zl=15,_l=function(fe){for(var xe=[],Me=0,rt=fe.length;Me<rt;){var Jt=fe.charCodeAt(Me++);if(Jt>=55296&&Jt<=56319&&Me<rt){var Gr=fe.charCodeAt(Me++);(Gr&64512)===56320?xe.push(((Jt&1023)<<10)+(Gr&1023)+65536):(xe.push(Jt),Me--)}else xe.push(Jt)}return xe},fu=function(){for(var fe=[],xe=0;xe<arguments.length;xe++)fe[xe]=arguments[xe];if(String.fromCodePoint)return String.fromCodePoint.apply(String,fe);var Me=fe.length;if(!Me)return"";for(var rt=[],Jt=-1,Gr="";++Jt<Me;){var cn=fe[Jt];cn<=65535?rt.push(cn):(cn-=65536,rt.push((cn>>10)+55296,cn%1024+56320)),(Jt+1===Me||rt.length>16384)&&(Gr+=String.fromCharCode.apply(String,rt),rt.length=0)}return Gr},hl=Cs(al),fl="\xD7",pu="\xF7",mu=function(fe){return hl.get(fe)},Lu=function(fe,xe,Me){var rt=Me-2,Jt=xe[rt],Gr=xe[Me-1],cn=xe[Me];if(Gr===Jl&&cn===cl)return fl;if(Gr===Jl||Gr===cl||Gr===zl)return pu;if(cn===Jl||cn===cl||cn===zl)return pu;if(Gr===bu&&[bu,du,nu,dl].indexOf(cn)!==-1)return fl;if((Gr===nu||Gr===du)&&(cn===du||cn===hu))return fl;if((Gr===dl||Gr===hu)&&cn===hu)return fl;if(cn===Tl||cn===tu)return fl;if(cn===Iu)return fl;if(Gr===Xl)return fl;if(Gr===Tl&&cn===wl){for(;Jt===tu;)Jt=xe[--rt];if(Jt===wl)return fl}if(Gr===Zl&&cn===Zl){for(var En=0;Jt===Zl;)En++,Jt=xe[--rt];if(En%2===0)return fl}return pu},Ml=function(fe){var xe=_l(fe),Me=xe.length,rt=0,Jt=0,Gr=xe.map(mu);return{next:function(){if(rt>=Me)return{done:!0,value:null};for(var En=fl;rt<Me&&(En=Lu(xe,Gr,++rt))===fl;);if(En!==fl||rt===Me){var Xn=fu.apply(null,xe.slice(Jt,rt));return Jt=rt,{value:Xn,done:!1}}return{done:!0,value:null}}}},$l=function(fe){for(var xe=Ml(fe),Me=[],rt;!(rt=xe.next()).done;)rt.value&&Me.push(rt.value.slice());return Me},iu=function(fe){var xe=123;if(fe.createRange){var Me=fe.createRange();if(Me.getBoundingClientRect){var rt=fe.createElement("boundtest");rt.style.height=xe+"px",rt.style.display="block",fe.body.appendChild(rt),Me.selectNode(rt);var Jt=Me.getBoundingClientRect(),Gr=Math.round(Jt.height);if(fe.body.removeChild(rt),Gr===xe)return!0}}return!1},au=function(fe){var xe=fe.createElement("boundtest");xe.style.width="50px",xe.style.display="block",xe.style.fontSize="12px",xe.style.letterSpacing="0px",xe.style.wordSpacing="0px",fe.body.appendChild(xe);var Me=fe.createRange();xe.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var rt=xe.firstChild,Jt=n(rt.data).map(function(Xn){return t(Xn)}),Gr=0,cn={},En=Jt.every(function(Xn,Di){Me.setStart(rt,Gr),Me.setEnd(rt,Gr+Xn.length);var xi=Me.getBoundingClientRect();Gr+=Xn.length;var Fi=xi.x>cn.x||xi.y>cn.y;return cn=xi,Di===0?!0:Fi});return fe.body.removeChild(xe),En},Yl=function(){return typeof new Image().crossOrigin!="undefined"},Ru=function(){return typeof new XMLHttpRequest().responseType=="string"},Nu=function(fe){var xe=new Image,Me=fe.createElement("canvas"),rt=Me.getContext("2d");if(!rt)return!1;xe.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{rt.drawImage(xe,0,0),Me.toDataURL()}catch(Jt){return!1}return!0},Ql=function(fe){return fe[0]===0&&fe[1]===255&&fe[2]===0&&fe[3]===255},gu=function(fe){var xe=fe.createElement("canvas"),Me=100;xe.width=Me,xe.height=Me;var rt=xe.getContext("2d");if(!rt)return Promise.reject(!1);rt.fillStyle="rgb(0, 255, 0)",rt.fillRect(0,0,Me,Me);var Jt=new Image,Gr=xe.toDataURL();Jt.src=Gr;var cn=wu(Me,Me,0,0,Jt);return rt.fillStyle="red",rt.fillRect(0,0,Me,Me),vu(cn).then(function(En){rt.drawImage(En,0,0);var Xn=rt.getImageData(0,0,Me,Me).data;rt.fillStyle="red",rt.fillRect(0,0,Me,Me);var Di=fe.createElement("div");return Di.style.backgroundImage="url("+Gr+")",Di.style.height=Me+"px",Ql(Xn)?vu(wu(Me,Me,0,0,Di)):Promise.reject(!1)}).then(function(En){return rt.drawImage(En,0,0),Ql(rt.getImageData(0,0,Me,Me).data)}).catch(function(){return!1})},wu=function(fe,xe,Me,rt,Jt){var Gr="http://www.w3.org/2000/svg",cn=document.createElementNS(Gr,"svg"),En=document.createElementNS(Gr,"foreignObject");return cn.setAttributeNS(null,"width",fe.toString()),cn.setAttributeNS(null,"height",xe.toString()),En.setAttributeNS(null,"width","100%"),En.setAttributeNS(null,"height","100%"),En.setAttributeNS(null,"x",Me.toString()),En.setAttributeNS(null,"y",rt.toString()),En.setAttributeNS(null,"externalResourcesRequired","true"),cn.appendChild(En),En.appendChild(Jt),cn},vu=function(fe){return new Promise(function(xe,Me){var rt=new Image;rt.onload=function(){return xe(rt)},rt.onerror=Me,rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(fe))})},Gs={get SUPPORT_RANGE_BOUNDS(){var cr=iu(document);return Object.defineProperty(Gs,"SUPPORT_RANGE_BOUNDS",{value:cr}),cr},get SUPPORT_WORD_BREAKING(){var cr=Gs.SUPPORT_RANGE_BOUNDS&&au(document);return Object.defineProperty(Gs,"SUPPORT_WORD_BREAKING",{value:cr}),cr},get SUPPORT_SVG_DRAWING(){var cr=Nu(document);return Object.defineProperty(Gs,"SUPPORT_SVG_DRAWING",{value:cr}),cr},get SUPPORT_FOREIGNOBJECT_DRAWING(){var cr=typeof Array.from=="function"&&typeof window.fetch=="function"?gu(document):Promise.resolve(!1);return Object.defineProperty(Gs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:cr}),cr},get SUPPORT_CORS_IMAGES(){var cr=Yl();return Object.defineProperty(Gs,"SUPPORT_CORS_IMAGES",{value:cr}),cr},get SUPPORT_RESPONSE_TYPE(){var cr=Ru();return Object.defineProperty(Gs,"SUPPORT_RESPONSE_TYPE",{value:cr}),cr},get SUPPORT_CORS_XHR(){var cr="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Gs,"SUPPORT_CORS_XHR",{value:cr}),cr},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var cr=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Gs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:cr}),cr}},gl=function(){function cr(fe,xe){this.text=fe,this.bounds=xe}return cr}(),ru=function(fe,xe,Me,rt){var Jt=su(xe,Me),Gr=[],cn=0;return Jt.forEach(function(En){if(Me.textDecorationLine.length||En.trim().length>0)if(Gs.SUPPORT_RANGE_BOUNDS){var Xn=Su(rt,cn,En.length).getClientRects();if(Xn.length>1){var Di=cu(En),xi=0;Di.forEach(function(Fa){Gr.push(new gl(Fa,d.fromDOMRectList(fe,Su(rt,xi+cn,Fa.length).getClientRects()))),xi+=Fa.length})}else Gr.push(new gl(En,d.fromDOMRectList(fe,Xn)))}else{var Fi=rt.splitText(En.length);Gr.push(new gl(En,Du(fe,rt))),rt=Fi}else Gs.SUPPORT_RANGE_BOUNDS||(rt=rt.splitText(En.length));cn+=En.length}),Gr},Du=function(fe,xe){var Me=xe.ownerDocument;if(Me){var rt=Me.createElement("html2canvaswrapper");rt.appendChild(xe.cloneNode(!0));var Jt=xe.parentNode;if(Jt){Jt.replaceChild(rt,xe);var Gr=u(fe,rt);return rt.firstChild&&Jt.replaceChild(rt.firstChild,rt),Gr}}return d.EMPTY},Su=function(fe,xe,Me){var rt=fe.ownerDocument;if(!rt)throw new Error("Node has no owner document");var Jt=rt.createRange();return Jt.setStart(fe,xe),Jt.setEnd(fe,xe+Me),Jt},cu=function(fe){if(Gs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var xe=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(xe.segment(fe)).map(function(Me){return Me.segment})}return $l(fe)},ou=function(fe,xe){if(Gs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Me=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Me.segment(fe)).map(function(rt){return rt.segment})}return Au(fe,xe)},su=function(fe,xe){return xe.letterSpacing!==0?cu(fe):ou(fe,xe)},xu=[32,160,4961,65792,65793,4153,4241],Au=function(fe,xe){for(var Me=Ie(fe,{lineBreak:xe.lineBreak,wordBreak:xe.overflowWrap==="break-word"?"break-word":xe.wordBreak}),rt=[],Jt,Gr=function(){if(Jt.value){var En=Jt.value.slice(),Xn=n(En),Di="";Xn.forEach(function(xi){xu.indexOf(xi)===-1?Di+=t(xi):(Di.length&&rt.push(Di),rt.push(t(xi)),Di="")}),Di.length&&rt.push(Di)}};!(Jt=Me.next()).done;)Gr();return rt},he=function(){function cr(fe,xe,Me){this.text=$(xe.data,Me.textTransform),this.textBounds=ru(fe,this.text,Me,xe)}return cr}(),$=function(fe,xe){switch(xe){case 1:return fe.toLowerCase();case 3:return fe.replace(L,K);case 2:return fe.toUpperCase();default:return fe}},L=/(^|\s|:|-|\(|\))([a-z])/g,K=function(fe,xe,Me){return fe.length>0?xe+Me.toUpperCase():fe},j=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;return rt.src=Me.currentSrc||Me.src,rt.intrinsicWidth=Me.naturalWidth,rt.intrinsicHeight=Me.naturalHeight,rt.context.cache.addImage(rt.src),rt}return fe}(Is),J=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;return rt.canvas=Me,rt.intrinsicWidth=Me.width,rt.intrinsicHeight=Me.height,rt}return fe}(Is),te=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this,Jt=new XMLSerializer,Gr=u(xe,Me);return Me.setAttribute("width",Gr.width+"px"),Me.setAttribute("height",Gr.height+"px"),rt.svg="data:image/svg+xml,"+encodeURIComponent(Jt.serializeToString(Me)),rt.intrinsicWidth=Me.width.baseVal.value,rt.intrinsicHeight=Me.height.baseVal.value,rt.context.cache.addImage(rt.svg),rt}return fe}(Is),me=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;return rt.value=Me.value,rt}return fe}(Is),we=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;return rt.start=Me.start,rt.reversed=typeof Me.reversed=="boolean"&&Me.reversed===!0,rt}return fe}(Is),je=[{type:15,flags:0,unit:"px",number:3}],qe=[{type:16,flags:0,number:50}],it=function(fe){return fe.width>fe.height?new d(fe.left+(fe.width-fe.height)/2,fe.top,fe.height,fe.height):fe.width<fe.height?new d(fe.left,fe.top+(fe.height-fe.width)/2,fe.width,fe.width):fe},Rt=function(fe){var xe=fe.type===Dr?new Array(fe.value.length+1).join("\u2022"):fe.value;return xe.length===0?fe.placeholder||"":xe},hr="checkbox",tr="radio",Dr="password",jr=707406591,Sn=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;rt.type=Me.type.toLowerCase(),rt.checked=Me.checked,rt.value=Rt(Me),(rt.type===hr||rt.type===tr)&&(rt.styles.backgroundColor=3739148031,rt.styles.borderTopColor=rt.styles.borderRightColor=rt.styles.borderBottomColor=rt.styles.borderLeftColor=2779096575,rt.styles.borderTopWidth=rt.styles.borderRightWidth=rt.styles.borderBottomWidth=rt.styles.borderLeftWidth=1,rt.styles.borderTopStyle=rt.styles.borderRightStyle=rt.styles.borderBottomStyle=rt.styles.borderLeftStyle=1,rt.styles.backgroundClip=[0],rt.styles.backgroundOrigin=[0],rt.bounds=it(rt.bounds));switch(rt.type){case hr:rt.styles.borderTopRightRadius=rt.styles.borderTopLeftRadius=rt.styles.borderBottomRightRadius=rt.styles.borderBottomLeftRadius=je;break;case tr:rt.styles.borderTopRightRadius=rt.styles.borderTopLeftRadius=rt.styles.borderBottomRightRadius=rt.styles.borderBottomLeftRadius=qe;break}return rt}return fe}(Is),yn=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this,Jt=Me.options[Me.selectedIndex||0];return rt.value=Jt&&Jt.text||"",rt}return fe}(Is),Mn=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;return rt.value=Me.value,rt}return fe}(Is),si=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;rt.src=Me.src,rt.width=parseInt(Me.width,10)||0,rt.height=parseInt(Me.height,10)||0,rt.backgroundColor=rt.styles.backgroundColor;try{if(Me.contentWindow&&Me.contentWindow.document&&Me.contentWindow.document.documentElement){rt.tree=Aa(xe,Me.contentWindow.document.documentElement);var Jt=Me.contentWindow.document.documentElement?no(xe,getComputedStyle(Me.contentWindow.document.documentElement).backgroundColor):co.TRANSPARENT,Gr=Me.contentWindow.document.body?no(xe,getComputedStyle(Me.contentWindow.document.body).backgroundColor):co.TRANSPARENT;rt.backgroundColor=va(Jt)?va(Gr)?rt.styles.backgroundColor:Gr:Jt}}catch(cn){}return rt}return fe}(Is),Xi=["OL","UL","MENU"],Li=function cr(fe,xe,Me,rt){for(var Jt=xe.firstChild,Gr=void 0;Jt;Jt=Gr)if(Gr=Jt.nextSibling,aa(Jt)&&Jt.data.trim().length>0)Me.textNodes.push(new he(fe,Jt,Me.styles));else if(so(Jt))if(Wt(Jt)&&Jt.assignedNodes)Jt.assignedNodes().forEach(function(En){return cr(fe,En,Me,rt)});else{var cn=Pi(fe,Jt);cn.styles.isVisible()&&(Na(Jt,cn,rt)?cn.flags|=4:Sa(cn.styles)&&(cn.flags|=2),Xi.indexOf(Jt.tagName)!==-1&&(cn.flags|=8),Me.elements.push(cn),Jt.slot,Jt.shadowRoot?cr(fe,Jt.shadowRoot,cn,rt):!Dt(Jt)&&!Vt(Jt)&&!jt(Jt)&&cr(fe,Jt,cn,rt))}},Pi=function(fe,xe){return ae(xe)?new j(fe,xe):Xr(xe)?new J(fe,xe):Vt(xe)?new te(fe,xe):Bs(xe)?new me(fe,xe):ve(xe)?new we(fe,xe):Ke(xe)?new Sn(fe,xe):jt(xe)?new yn(fe,xe):Dt(xe)?new Mn(fe,xe):be(xe)?new si(fe,xe):new Is(fe,xe)},Aa=function(fe,xe){var Me=Pi(fe,xe);return Me.flags|=4,Li(fe,xe,Me,Me),Me},Na=function(fe,xe,Me){return xe.styles.isPositionedWithZIndex()||xe.styles.opacity<1||xe.styles.isTransformed()||Cr(fe)&&Me.styles.isTransparent()},Sa=function(fe){return fe.isPositioned()||fe.isFloating()},aa=function(fe){return fe.nodeType===Node.TEXT_NODE},so=function(fe){return fe.nodeType===Node.ELEMENT_NODE},os=function(fe){return so(fe)&&typeof fe.style!="undefined"&&!$o(fe)},$o=function(fe){return typeof fe.className=="object"},Bs=function(fe){return fe.tagName==="LI"},ve=function(fe){return fe.tagName==="OL"},Ke=function(fe){return fe.tagName==="INPUT"},ht=function(fe){return fe.tagName==="HTML"},Vt=function(fe){return fe.tagName==="svg"},Cr=function(fe){return fe.tagName==="BODY"},Xr=function(fe){return fe.tagName==="CANVAS"},De=function(fe){return fe.tagName==="VIDEO"},ae=function(fe){return fe.tagName==="IMG"},be=function(fe){return fe.tagName==="IFRAME"},We=function(fe){return fe.tagName==="STYLE"},ut=function(fe){return fe.tagName==="SCRIPT"},Dt=function(fe){return fe.tagName==="TEXTAREA"},jt=function(fe){return fe.tagName==="SELECT"},Wt=function(fe){return fe.tagName==="SLOT"},Rr=function(fe){return fe.tagName.indexOf("-")>0},Zr=function(){function cr(){this.counters={}}return cr.prototype.getCounterValue=function(fe){var xe=this.counters[fe];return xe&&xe.length?xe[xe.length-1]:1},cr.prototype.getCounterValues=function(fe){var xe=this.counters[fe];return xe||[]},cr.prototype.pop=function(fe){var xe=this;fe.forEach(function(Me){return xe.counters[Me].pop()})},cr.prototype.parse=function(fe){var xe=this,Me=fe.counterIncrement,rt=fe.counterReset,Jt=!0;Me!==null&&Me.forEach(function(cn){var En=xe.counters[cn.counter];En&&cn.increment!==0&&(Jt=!1,En.length||En.push(1),En[Math.max(0,En.length-1)]+=cn.increment)});var Gr=[];return Jt&&rt.forEach(function(cn){var En=xe.counters[cn.counter];Gr.push(cn.counter),En||(En=xe.counters[cn.counter]=[]),En.push(cn.reset)}),Gr},cr}(),kr={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"]},Or={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"]},Yr={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"]},rn={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"]},_n=function(fe,xe,Me,rt,Jt,Gr){return fe<xe||fe>Me?ie(fe,Jt,Gr.length>0):rt.integers.reduce(function(cn,En,Xn){for(;fe>=En;)fe-=En,cn+=rt.values[Xn];return cn},"")+Gr},fi=function(fe,xe,Me,rt){var Jt="";do Me||fe--,Jt=rt(fe)+Jt,fe/=xe;while(fe*xe>=xe);return Jt},vi=function(fe,xe,Me,rt,Jt){var Gr=Me-xe+1;return(fe<0?"-":"")+(fi(Math.abs(fe),Gr,rt,function(cn){return t(Math.floor(cn%Gr)+xe)})+Jt)},Qi=function(fe,xe,Me){Me===void 0&&(Me=". ");var rt=xe.length;return fi(Math.abs(fe),rt,!1,function(Jt){return xe[Math.floor(Jt%rt)]})+Me},Mi=1<<0,Da=1<<1,oa=1<<2,$a=1<<3,ja=function(fe,xe,Me,rt,Jt,Gr){if(fe<-9999||fe>9999)return ie(fe,4,Jt.length>0);var cn=Math.abs(fe),En=Jt;if(cn===0)return xe[0]+En;for(var Xn=0;cn>0&&Xn<=4;Xn++){var Di=cn%10;Di===0&&as(Gr,Mi)&&En!==""?En=xe[Di]+En:Di>1||Di===1&&Xn===0||Di===1&&Xn===1&&as(Gr,Da)||Di===1&&Xn===1&&as(Gr,oa)&&fe>100||Di===1&&Xn>1&&as(Gr,$a)?En=xe[Di]+(Xn>0?Me[Xn-1]:"")+En:Di===1&&Xn>0&&(En=Me[Xn-1]+En),cn=Math.floor(cn/10)}return(fe<0?rt:"")+En},Io="\u5341\u767E\u5343\u842C",Vo="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",U="\uB9C8\uC774\uB108\uC2A4",ie=function(fe,xe,Me){var rt=Me?". ":"",Jt=Me?"\u3001":"",Gr=Me?", ":"",cn=Me?" ":"";switch(xe){case 0:return"\u2022"+cn;case 1:return"\u25E6"+cn;case 2:return"\u25FE"+cn;case 5:var En=vi(fe,48,57,!0,rt);return En.length<4?"0"+En:En;case 4:return Qi(fe,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Jt);case 6:return _n(fe,1,3999,kr,3,rt).toLowerCase();case 7:return _n(fe,1,3999,kr,3,rt);case 8:return vi(fe,945,969,!1,rt);case 9:return vi(fe,97,122,!1,rt);case 10:return vi(fe,65,90,!1,rt);case 11:return vi(fe,1632,1641,!0,rt);case 12:case 49:return _n(fe,1,9999,Or,3,rt);case 35:return _n(fe,1,9999,Or,3,rt).toLowerCase();case 13:return vi(fe,2534,2543,!0,rt);case 14:case 30:return vi(fe,6112,6121,!0,rt);case 15:return Qi(fe,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Jt);case 16:return Qi(fe,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Jt);case 17:case 48:return ja(fe,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Io,"\u8CA0",Jt,Da|oa|$a);case 47:return ja(fe,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Vo,"\u8CA0",Jt,Mi|Da|oa|$a);case 42:return ja(fe,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Io,"\u8D1F",Jt,Da|oa|$a);case 41:return ja(fe,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Vo,"\u8D1F",Jt,Mi|Da|oa|$a);case 26:return ja(fe,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,Jt,0);case 25:return ja(fe,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,Jt,Mi|Da|oa);case 31:return ja(fe,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",U,Gr,Mi|Da|oa);case 33:return ja(fe,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",U,Gr,0);case 32:return ja(fe,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",U,Gr,Mi|Da|oa);case 18:return vi(fe,2406,2415,!0,rt);case 20:return _n(fe,1,19999,rn,3,rt);case 21:return vi(fe,2790,2799,!0,rt);case 22:return vi(fe,2662,2671,!0,rt);case 22:return _n(fe,1,10999,Yr,3,rt);case 23:return Qi(fe,"\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 Qi(fe,"\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 vi(fe,3302,3311,!0,rt);case 28:return Qi(fe,"\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",Jt);case 29:return Qi(fe,"\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",Jt);case 34:return vi(fe,3792,3801,!0,rt);case 37:return vi(fe,6160,6169,!0,rt);case 38:return vi(fe,4160,4169,!0,rt);case 39:return vi(fe,2918,2927,!0,rt);case 40:return vi(fe,1776,1785,!0,rt);case 43:return vi(fe,3046,3055,!0,rt);case 44:return vi(fe,3174,3183,!0,rt);case 45:return vi(fe,3664,3673,!0,rt);case 46:return vi(fe,3872,3881,!0,rt);case 3:default:return vi(fe,48,57,!0,rt)}},oe="data-html2canvas-ignore",de=function(){function cr(fe,xe,Me){if(this.context=fe,this.options=Me,this.scrolledElements=[],this.referenceElement=xe,this.counters=new Zr,this.quoteDepth=0,!xe.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(xe.ownerDocument.documentElement,!1)}return cr.prototype.toIFrame=function(fe,xe){var Me=this,rt=At(fe,xe);if(!rt.contentWindow)return Promise.reject("Unable to find iframe window");var Jt=fe.defaultView.pageXOffset,Gr=fe.defaultView.pageYOffset,cn=rt.contentWindow,En=cn.document,Xn=pr(rt).then(function(){return v(Me,void 0,void 0,function(){var Di,xi;return m(this,function(Fi){switch(Fi.label){case 0:return this.scrolledElements.forEach(Ki),cn&&(cn.scrollTo(xe.left,xe.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(cn.scrollY!==xe.top||cn.scrollX!==xe.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(cn.scrollX-xe.left,cn.scrollY-xe.top,0,0))),Di=this.options.onclone,xi=this.clonedReferenceElement,typeof xi=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:En.fonts&&En.fonts.ready?[4,En.fonts.ready]:[3,2];case 1:Fi.sent(),Fi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,rr(En)]:[3,4];case 3:Fi.sent(),Fi.label=4;case 4:return typeof Di=="function"?[2,Promise.resolve().then(function(){return Di(En,xi)}).then(function(){return rt})]:[2,rt]}})})});return En.open(),En.write(li(document.doctype)+"<html></html>"),di(this.referenceElement.ownerDocument,Jt,Gr),En.replaceChild(En.adoptNode(this.documentElement),En.documentElement),En.close(),Xn},cr.prototype.createElementClone=function(fe){if(Al(fe,2))debugger;if(Xr(fe))return this.createCanvasClone(fe);if(De(fe))return this.createVideoClone(fe);if(We(fe))return this.createStyleClone(fe);var xe=fe.cloneNode(!1);return ae(xe)&&(ae(fe)&&fe.currentSrc&&fe.currentSrc!==fe.src&&(xe.src=fe.currentSrc,xe.srcset=""),xe.loading==="lazy"&&(xe.loading="eager")),Rr(xe)?this.createCustomElementClone(xe):xe},cr.prototype.createCustomElementClone=function(fe){var xe=document.createElement("html2canvascustomelement");return zn(fe.style,xe),xe},cr.prototype.createStyleClone=function(fe){try{var xe=fe.sheet;if(xe&&xe.cssRules){var Me=[].slice.call(xe.cssRules,0).reduce(function(Jt,Gr){return Gr&&typeof Gr.cssText=="string"?Jt+Gr.cssText:Jt},""),rt=fe.cloneNode(!1);return rt.textContent=Me,rt}}catch(Jt){if(this.context.logger.error("Unable to access cssRules property",Jt),Jt.name!=="SecurityError")throw Jt}return fe.cloneNode(!1)},cr.prototype.createCanvasClone=function(fe){var xe;if(this.options.inlineImages&&fe.ownerDocument){var Me=fe.ownerDocument.createElement("img");try{return Me.src=fe.toDataURL(),Me}catch(Xn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",fe)}}var rt=fe.cloneNode(!1);try{rt.width=fe.width,rt.height=fe.height;var Jt=fe.getContext("2d"),Gr=rt.getContext("2d");if(Gr)if(!this.options.allowTaint&&Jt)Gr.putImageData(Jt.getImageData(0,0,fe.width,fe.height),0,0);else{var cn=(xe=fe.getContext("webgl2"))!==null&&xe!==void 0?xe:fe.getContext("webgl");if(cn){var En=cn.getContextAttributes();(En==null?void 0:En.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",fe)}Gr.drawImage(fe,0,0)}return rt}catch(Xn){this.context.logger.info("Unable to clone canvas as it is tainted",fe)}return rt},cr.prototype.createVideoClone=function(fe){var xe=fe.ownerDocument.createElement("canvas");xe.width=fe.offsetWidth,xe.height=fe.offsetHeight;var Me=xe.getContext("2d");try{return Me&&(Me.drawImage(fe,0,0,xe.width,xe.height),this.options.allowTaint||Me.getImageData(0,0,xe.width,xe.height)),xe}catch(Jt){this.context.logger.info("Unable to clone video as it is tainted",fe)}var rt=fe.ownerDocument.createElement("canvas");return rt.width=fe.offsetWidth,rt.height=fe.offsetHeight,rt},cr.prototype.appendChildNode=function(fe,xe,Me){(!so(xe)||!ut(xe)&&!xe.hasAttribute(oe)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(xe)))&&((!this.options.copyStyles||!so(xe)||!We(xe))&&fe.appendChild(this.cloneNode(xe,Me)))},cr.prototype.cloneChildNodes=function(fe,xe,Me){for(var rt=this,Jt=fe.shadowRoot?fe.shadowRoot.firstChild:fe.firstChild;Jt;Jt=Jt.nextSibling)if(so(Jt)&&Wt(Jt)&&typeof Jt.assignedNodes=="function"){var Gr=Jt.assignedNodes();Gr.length&&Gr.forEach(function(cn){return rt.appendChildNode(xe,cn,Me)})}else this.appendChildNode(xe,Jt,Me)},cr.prototype.cloneNode=function(fe,xe){if(aa(fe))return document.createTextNode(fe.data);if(!fe.ownerDocument)return fe.cloneNode(!1);var Me=fe.ownerDocument.defaultView;if(Me&&so(fe)&&(os(fe)||$o(fe))){var rt=this.createElementClone(fe);rt.style.transitionProperty="none";var Jt=Me.getComputedStyle(fe),Gr=Me.getComputedStyle(fe,":before"),cn=Me.getComputedStyle(fe,":after");this.referenceElement===fe&&os(rt)&&(this.clonedReferenceElement=rt),Cr(rt)&&Ja(rt);var En=this.counters.parse(new Kl(this.context,Jt)),Xn=this.resolvePseudoContent(fe,rt,Gr,Be.BEFORE);Rr(fe)&&(xe=!0),De(fe)||this.cloneChildNodes(fe,rt,xe),Xn&&rt.insertBefore(Xn,rt.firstChild);var Di=this.resolvePseudoContent(fe,rt,cn,Be.AFTER);return Di&&rt.appendChild(Di),this.counters.pop(En),(Jt&&(this.options.copyStyles||$o(fe))&&!be(fe)||xe)&&zn(Jt,rt),(fe.scrollTop!==0||fe.scrollLeft!==0)&&this.scrolledElements.push([rt,fe.scrollLeft,fe.scrollTop]),(Dt(fe)||jt(fe))&&(Dt(rt)||jt(rt))&&(rt.value=fe.value),rt}return fe.cloneNode(!1)},cr.prototype.resolvePseudoContent=function(fe,xe,Me,rt){var Jt=this;if(!Me)return;var Gr=Me.content,cn=xe.ownerDocument;if(!cn||!Gr||Gr==="none"||Gr==="-moz-alt-content"||Me.display==="none")return;this.counters.parse(new Kl(this.context,Me));var En=new Gl(this.context,Me),Xn=cn.createElement("html2canvaspseudoelement");zn(Me,Xn),En.content.forEach(function(xi){if(xi.type===0)Xn.appendChild(cn.createTextNode(xi.value));else if(xi.type===22){var Fi=cn.createElement("img");Fi.src=xi.value,Fi.style.opacity="1",Xn.appendChild(Fi)}else if(xi.type===18){if(xi.name==="attr"){var Fa=xi.values.filter(An);Fa.length&&Xn.appendChild(cn.createTextNode(fe.getAttribute(Fa[0].value)||""))}else if(xi.name==="counter"){var Ka=xi.values.filter(ni),eo=Ka[0],Yo=Ka[1];if(eo&&An(eo)){var Lo=Jt.counters.getCounterValue(eo.value),yo=Yo&&An(Yo)?ns.parse(Jt.context,Yo.value):3;Xn.appendChild(cn.createTextNode(ie(Lo,yo,!1)))}}else if(xi.name==="counters"){var Ds=xi.values.filter(ni),eo=Ds[0],Ks=Ds[1],Yo=Ds[2];if(eo&&An(eo)){var ws=Jt.counters.getCounterValues(eo.value),po=Yo&&An(Yo)?ns.parse(Jt.context,Yo.value):3,el=Ks&&Ks.type===0?Ks.value:"",nl=ws.map(function(Pu){return ie(Pu,po,!1)}).join(el);Xn.appendChild(cn.createTextNode(nl))}}}else if(xi.type===20)switch(xi.value){case"open-quote":Xn.appendChild(cn.createTextNode(jl(En.quotes,Jt.quoteDepth++,!0)));break;case"close-quote":Xn.appendChild(cn.createTextNode(jl(En.quotes,--Jt.quoteDepth,!1)));break;default:Xn.appendChild(cn.createTextNode(xi.value))}}),Xn.className=ba+" "+ya;var Di=rt===Be.BEFORE?" "+ba:" "+ya;return $o(xe)?xe.className.baseValue+=Di:xe.className+=Di,Xn},cr.destroy=function(fe){return fe.parentNode?(fe.parentNode.removeChild(fe),!0):!1},cr}(),Be;(function(cr){cr[cr.BEFORE=0]="BEFORE",cr[cr.AFTER=1]="AFTER"})(Be||(Be={}));var At=function(fe,xe){var Me=fe.createElement("iframe");return Me.className="html2canvas-container",Me.style.visibility="hidden",Me.style.position="fixed",Me.style.left="-10000px",Me.style.top="0px",Me.style.border="0",Me.width=xe.width.toString(),Me.height=xe.height.toString(),Me.scrolling="no",Me.setAttribute(oe,"true"),fe.body.appendChild(Me),Me},Kt=function(fe){return new Promise(function(xe){if(fe.complete){xe();return}if(!fe.src){xe();return}fe.onload=xe,fe.onerror=xe})},rr=function(fe){return Promise.all([].slice.call(fe.images,0).map(Kt))},pr=function(fe){return new Promise(function(xe,Me){var rt=fe.contentWindow;if(!rt)return Me("No window assigned for iframe");var Jt=rt.document;rt.onload=fe.onload=function(){rt.onload=fe.onload=null;var Gr=setInterval(function(){Jt.body.childNodes.length>0&&Jt.readyState==="complete"&&(clearInterval(Gr),xe(fe))},50)}})},Tn=["all","d","content"],zn=function(fe,xe){for(var Me=fe.length-1;Me>=0;Me--){var rt=fe.item(Me);Tn.indexOf(rt)===-1&&xe.style.setProperty(rt,fe.getPropertyValue(rt))}return xe},li=function(fe){var xe="";return fe&&(xe+="<!DOCTYPE ",fe.name&&(xe+=fe.name),fe.internalSubset&&(xe+=fe.internalSubset),fe.publicId&&(xe+='"'+fe.publicId+'"'),fe.systemId&&(xe+='"'+fe.systemId+'"'),xe+=">"),xe},di=function(fe,xe,Me){fe&&fe.defaultView&&(xe!==fe.defaultView.pageXOffset||Me!==fe.defaultView.pageYOffset)&&fe.defaultView.scrollTo(xe,Me)},Ki=function(fe){var xe=fe[0],Me=fe[1],rt=fe[2];xe.scrollLeft=Me,xe.scrollTop=rt},fa=":before",Ta=":after",ba="___html2canvas___pseudoelement_before",ya="___html2canvas___pseudoelement_after",Ha=`{
content: "" !important;
display: none !important;
}`,Ja=function(fe){Uo(fe,"."+ba+fa+Ha+`
.`+ya+Ta+Ha)},Uo=function(fe,xe){var Me=fe.ownerDocument;if(Me){var rt=Me.createElement("style");rt.textContent=xe,fe.appendChild(rt)}},Ao=function(){function cr(){}return cr.getOrigin=function(fe){var xe=cr._link;return xe?(xe.href=fe,xe.href=xe.href,xe.protocol+xe.hostname+xe.port):"about:blank"},cr.isSameOrigin=function(fe){return cr.getOrigin(fe)===cr._origin},cr.setContext=function(fe){cr._link=fe.document.createElement("a"),cr._origin=cr.getOrigin(fe.location.href)},cr._origin="about:blank",cr}(),us=function(){function cr(fe,xe){this.context=fe,this._options=xe,this._cache={}}return cr.prototype.addImage=function(fe){var xe=Promise.resolve();return this.has(fe)||(Bl(fe)||Ol(fe))&&(this._cache[fe]=this.loadImage(fe)).catch(function(){}),xe},cr.prototype.match=function(fe){return this._cache[fe]},cr.prototype.loadImage=function(fe){return v(this,void 0,void 0,function(){var xe,Me,rt,Jt,Gr=this;return m(this,function(cn){switch(cn.label){case 0:return xe=Ao.isSameOrigin(fe),Me=!Fl(fe)&&this._options.useCORS===!0&&Gs.SUPPORT_CORS_IMAGES&&!xe,rt=!Fl(fe)&&!xe&&!Bl(fe)&&typeof this._options.proxy=="string"&&Gs.SUPPORT_CORS_XHR&&!Me,!xe&&this._options.allowTaint===!1&&!Fl(fe)&&!Bl(fe)&&!rt&&!Me?[2]:(Jt=fe,rt?[4,this.proxy(Jt)]:[3,2]);case 1:Jt=cn.sent(),cn.label=2;case 2:return this.context.logger.debug("Added image "+fe.substring(0,256)),[4,new Promise(function(En,Xn){var Di=new Image;Di.onload=function(){return En(Di)},Di.onerror=Xn,(pl(Jt)||Me)&&(Di.crossOrigin="anonymous"),Di.src=Jt,Di.complete===!0&&setTimeout(function(){return En(Di)},500),Gr._options.imageTimeout>0&&setTimeout(function(){return Xn("Timed out ("+Gr._options.imageTimeout+"ms) loading image")},Gr._options.imageTimeout)})];case 3:return[2,cn.sent()]}})})},cr.prototype.has=function(fe){return typeof this._cache[fe]!="undefined"},cr.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},cr.prototype.proxy=function(fe){var xe=this,Me=this._options.proxy;if(!Me)throw new Error("No proxy defined");var rt=fe.substring(0,256);return new Promise(function(Jt,Gr){var cn=Gs.SUPPORT_RESPONSE_TYPE?"blob":"text",En=new XMLHttpRequest;En.onload=function(){if(En.status===200)if(cn==="text")Jt(En.response);else{var xi=new FileReader;xi.addEventListener("load",function(){return Jt(xi.result)},!1),xi.addEventListener("error",function(Fi){return Gr(Fi)},!1),xi.readAsDataURL(En.response)}else Gr("Failed to proxy resource "+rt+" with status code "+En.status)},En.onerror=Gr;var Xn=Me.indexOf("?")>-1?"&":"?";if(En.open("GET",""+Me+Xn+"url="+encodeURIComponent(fe)+"&responseType="+cn),cn!=="text"&&En instanceof XMLHttpRequest&&(En.responseType=cn),xe._options.imageTimeout){var Di=xe._options.imageTimeout;En.timeout=Di,En.ontimeout=function(){return Gr("Timed out ("+Di+"ms) proxying "+rt)}}En.send()})},cr}(),Ns=/^data:image\/svg\+xml/i,rl=/^data:image\/.*;base64,/i,Hs=/^data:image\/.*/i,Ol=function(fe){return Gs.SUPPORT_SVG_DRAWING||!Il(fe)},Fl=function(fe){return Hs.test(fe)},pl=function(fe){return rl.test(fe)},Bl=function(fe){return fe.substr(0,4)==="blob"},Il=function(fe){return fe.substr(-3).toLowerCase()==="svg"||Ns.test(fe)},Ma=function(){function cr(fe,xe){this.type=0,this.x=fe,this.y=xe}return cr.prototype.add=function(fe,xe){return new cr(this.x+fe,this.y+xe)},cr}(),$s=function(fe,xe,Me){return new Ma(fe.x+(xe.x-fe.x)*Me,fe.y+(xe.y-fe.y)*Me)},Ys=function(){function cr(fe,xe,Me,rt){this.type=1,this.start=fe,this.startControl=xe,this.endControl=Me,this.end=rt}return cr.prototype.subdivide=function(fe,xe){var Me=$s(this.start,this.startControl,fe),rt=$s(this.startControl,this.endControl,fe),Jt=$s(this.endControl,this.end,fe),Gr=$s(Me,rt,fe),cn=$s(rt,Jt,fe),En=$s(Gr,cn,fe);return xe?new cr(this.start,Me,Gr,En):new cr(En,cn,Jt,this.end)},cr.prototype.add=function(fe,xe){return new cr(this.start.add(fe,xe),this.startControl.add(fe,xe),this.endControl.add(fe,xe),this.end.add(fe,xe))},cr.prototype.reverse=function(){return new cr(this.end,this.endControl,this.startControl,this.start)},cr}(),sl=function(fe){return fe.type===1},Bu=function(){function cr(fe){var xe=fe.styles,Me=fe.bounds,rt=Ui(xe.borderTopLeftRadius,Me.width,Me.height),Jt=rt[0],Gr=rt[1],cn=Ui(xe.borderTopRightRadius,Me.width,Me.height),En=cn[0],Xn=cn[1],Di=Ui(xe.borderBottomRightRadius,Me.width,Me.height),xi=Di[0],Fi=Di[1],Fa=Ui(xe.borderBottomLeftRadius,Me.width,Me.height),Ka=Fa[0],eo=Fa[1],Yo=[];Yo.push((Jt+En)/Me.width),Yo.push((Ka+xi)/Me.width),Yo.push((Gr+eo)/Me.height),Yo.push((Xn+Fi)/Me.height);var Lo=Math.max.apply(Math,Yo);Lo>1&&(Jt/=Lo,Gr/=Lo,En/=Lo,Xn/=Lo,xi/=Lo,Fi/=Lo,Ka/=Lo,eo/=Lo);var yo=Me.width-En,Ds=Me.height-Fi,Ks=Me.width-xi,ws=Me.height-eo,po=xe.borderTopWidth,el=xe.borderRightWidth,nl=xe.borderBottomWidth,Ss=xe.borderLeftWidth,_u=Zi(xe.paddingTop,fe.bounds.width),Pu=Zi(xe.paddingRight,fe.bounds.width),Ou=Zi(xe.paddingBottom,fe.bounds.width),ql=Zi(xe.paddingLeft,fe.bounds.width);this.topLeftBorderDoubleOuterBox=Jt>0||Gr>0?rs(Me.left+Ss/3,Me.top+po/3,Jt-Ss/3,Gr-po/3,ys.TOP_LEFT):new Ma(Me.left+Ss/3,Me.top+po/3),this.topRightBorderDoubleOuterBox=Jt>0||Gr>0?rs(Me.left+yo,Me.top+po/3,En-el/3,Xn-po/3,ys.TOP_RIGHT):new Ma(Me.left+Me.width-el/3,Me.top+po/3),this.bottomRightBorderDoubleOuterBox=xi>0||Fi>0?rs(Me.left+Ks,Me.top+Ds,xi-el/3,Fi-nl/3,ys.BOTTOM_RIGHT):new Ma(Me.left+Me.width-el/3,Me.top+Me.height-nl/3),this.bottomLeftBorderDoubleOuterBox=Ka>0||eo>0?rs(Me.left+Ss/3,Me.top+ws,Ka-Ss/3,eo-nl/3,ys.BOTTOM_LEFT):new Ma(Me.left+Ss/3,Me.top+Me.height-nl/3),this.topLeftBorderDoubleInnerBox=Jt>0||Gr>0?rs(Me.left+Ss*2/3,Me.top+po*2/3,Jt-Ss*2/3,Gr-po*2/3,ys.TOP_LEFT):new Ma(Me.left+Ss*2/3,Me.top+po*2/3),this.topRightBorderDoubleInnerBox=Jt>0||Gr>0?rs(Me.left+yo,Me.top+po*2/3,En-el*2/3,Xn-po*2/3,ys.TOP_RIGHT):new Ma(Me.left+Me.width-el*2/3,Me.top+po*2/3),this.bottomRightBorderDoubleInnerBox=xi>0||Fi>0?rs(Me.left+Ks,Me.top+Ds,xi-el*2/3,Fi-nl*2/3,ys.BOTTOM_RIGHT):new Ma(Me.left+Me.width-el*2/3,Me.top+Me.height-nl*2/3),this.bottomLeftBorderDoubleInnerBox=Ka>0||eo>0?rs(Me.left+Ss*2/3,Me.top+ws,Ka-Ss*2/3,eo-nl*2/3,ys.BOTTOM_LEFT):new Ma(Me.left+Ss*2/3,Me.top+Me.height-nl*2/3),this.topLeftBorderStroke=Jt>0||Gr>0?rs(Me.left+Ss/2,Me.top+po/2,Jt-Ss/2,Gr-po/2,ys.TOP_LEFT):new Ma(Me.left+Ss/2,Me.top+po/2),this.topRightBorderStroke=Jt>0||Gr>0?rs(Me.left+yo,Me.top+po/2,En-el/2,Xn-po/2,ys.TOP_RIGHT):new Ma(Me.left+Me.width-el/2,Me.top+po/2),this.bottomRightBorderStroke=xi>0||Fi>0?rs(Me.left+Ks,Me.top+Ds,xi-el/2,Fi-nl/2,ys.BOTTOM_RIGHT):new Ma(Me.left+Me.width-el/2,Me.top+Me.height-nl/2),this.bottomLeftBorderStroke=Ka>0||eo>0?rs(Me.left+Ss/2,Me.top+ws,Ka-Ss/2,eo-nl/2,ys.BOTTOM_LEFT):new Ma(Me.left+Ss/2,Me.top+Me.height-nl/2),this.topLeftBorderBox=Jt>0||Gr>0?rs(Me.left,Me.top,Jt,Gr,ys.TOP_LEFT):new Ma(Me.left,Me.top),this.topRightBorderBox=En>0||Xn>0?rs(Me.left+yo,Me.top,En,Xn,ys.TOP_RIGHT):new Ma(Me.left+Me.width,Me.top),this.bottomRightBorderBox=xi>0||Fi>0?rs(Me.left+Ks,Me.top+Ds,xi,Fi,ys.BOTTOM_RIGHT):new Ma(Me.left+Me.width,Me.top+Me.height),this.bottomLeftBorderBox=Ka>0||eo>0?rs(Me.left,Me.top+ws,Ka,eo,ys.BOTTOM_LEFT):new Ma(Me.left,Me.top+Me.height),this.topLeftPaddingBox=Jt>0||Gr>0?rs(Me.left+Ss,Me.top+po,Math.max(0,Jt-Ss),Math.max(0,Gr-po),ys.TOP_LEFT):new Ma(Me.left+Ss,Me.top+po),this.topRightPaddingBox=En>0||Xn>0?rs(Me.left+Math.min(yo,Me.width-el),Me.top+po,yo>Me.width+el?0:Math.max(0,En-el),Math.max(0,Xn-po),ys.TOP_RIGHT):new Ma(Me.left+Me.width-el,Me.top+po),this.bottomRightPaddingBox=xi>0||Fi>0?rs(Me.left+Math.min(Ks,Me.width-Ss),Me.top+Math.min(Ds,Me.height-nl),Math.max(0,xi-el),Math.max(0,Fi-nl),ys.BOTTOM_RIGHT):new Ma(Me.left+Me.width-el,Me.top+Me.height-nl),this.bottomLeftPaddingBox=Ka>0||eo>0?rs(Me.left+Ss,Me.top+Math.min(ws,Me.height-nl),Math.max(0,Ka-Ss),Math.max(0,eo-nl),ys.BOTTOM_LEFT):new Ma(Me.left+Ss,Me.top+Me.height-nl),this.topLeftContentBox=Jt>0||Gr>0?rs(Me.left+Ss+ql,Me.top+po+_u,Math.max(0,Jt-(Ss+ql)),Math.max(0,Gr-(po+_u)),ys.TOP_LEFT):new Ma(Me.left+Ss+ql,Me.top+po+_u),this.topRightContentBox=En>0||Xn>0?rs(Me.left+Math.min(yo,Me.width+Ss+ql),Me.top+po+_u,yo>Me.width+Ss+ql?0:En-Ss+ql,Xn-(po+_u),ys.TOP_RIGHT):new Ma(Me.left+Me.width-(el+Pu),Me.top+po+_u),this.bottomRightContentBox=xi>0||Fi>0?rs(Me.left+Math.min(Ks,Me.width-(Ss+ql)),Me.top+Math.min(Ds,Me.height+po+_u),Math.max(0,xi-(el+Pu)),Fi-(nl+Ou),ys.BOTTOM_RIGHT):new Ma(Me.left+Me.width-(el+Pu),Me.top+Me.height-(nl+Ou)),this.bottomLeftContentBox=Ka>0||eo>0?rs(Me.left+Ss+ql,Me.top+ws,Math.max(0,Ka-(Ss+ql)),eo-(nl+Ou),ys.BOTTOM_LEFT):new Ma(Me.left+Ss+ql,Me.top+Me.height-(nl+Ou))}return cr}(),ys;(function(cr){cr[cr.TOP_LEFT=0]="TOP_LEFT",cr[cr.TOP_RIGHT=1]="TOP_RIGHT",cr[cr.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",cr[cr.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ys||(ys={}));var rs=function(fe,xe,Me,rt,Jt){var Gr=4*((Math.sqrt(2)-1)/3),cn=Me*Gr,En=rt*Gr,Xn=fe+Me,Di=xe+rt;switch(Jt){case ys.TOP_LEFT:return new Ys(new Ma(fe,Di),new Ma(fe,Di-En),new Ma(Xn-cn,xe),new Ma(Xn,xe));case ys.TOP_RIGHT:return new Ys(new Ma(fe,xe),new Ma(fe+cn,xe),new Ma(Xn,Di-En),new Ma(Xn,Di));case ys.BOTTOM_RIGHT:return new Ys(new Ma(Xn,xe),new Ma(Xn,xe+En),new Ma(fe+cn,Di),new Ma(fe,Di));case ys.BOTTOM_LEFT:default:return new Ys(new Ma(Xn,Di),new Ma(Xn-cn,Di),new Ma(fe,xe+En),new Ma(fe,xe))}},lu=function(fe){return[fe.topLeftBorderBox,fe.topRightBorderBox,fe.bottomRightBorderBox,fe.bottomLeftBorderBox]},Rl=function(fe){return[fe.topLeftContentBox,fe.topRightContentBox,fe.bottomRightContentBox,fe.bottomLeftContentBox]},Uu=function(fe){return[fe.topLeftPaddingBox,fe.topRightPaddingBox,fe.bottomRightPaddingBox,fe.bottomLeftPaddingBox]},Eu=function(){function cr(fe,xe,Me){this.offsetX=fe,this.offsetY=xe,this.matrix=Me,this.type=0,this.target=2|4}return cr}(),uu=function(){function cr(fe,xe){this.path=fe,this.target=xe,this.type=1}return cr}(),ku=function(){function cr(fe){this.opacity=fe,this.type=2,this.target=2|4}return cr}(),Vl=function(fe){return fe.type===0},Cu=function(fe){return fe.type===1},Vu=function(fe){return fe.type===2},Ju=function(fe,xe){return fe.length===xe.length?fe.some(function(Me,rt){return Me===xe[rt]}):!1},vc=function(fe,xe,Me,rt,Jt){return fe.map(function(Gr,cn){switch(cn){case 0:return Gr.add(xe,Me);case 1:return Gr.add(xe+rt,Me);case 2:return Gr.add(xe+rt,Me+Jt);case 3:return Gr.add(xe,Me+Jt)}return Gr})},Ac=function(){function cr(fe){this.element=fe,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return cr}(),tc=function(){function cr(fe,xe){if(this.container=fe,this.parent=xe,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 Me=this.container.bounds.left+this.container.styles.transformOrigin[0].number,rt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Jt=this.container.styles.transform;this.effects.push(new Eu(Me,rt,Jt))}if(this.container.styles.overflowX!==0){var Gr=lu(this.curves),cn=Uu(this.curves);Ju(Gr,cn)?this.effects.push(new uu(Gr,2|4)):(this.effects.push(new uu(Gr,2)),this.effects.push(new uu(cn,4)))}}return cr.prototype.getEffects=function(fe){for(var xe=[2,3].indexOf(this.container.styles.position)===-1,Me=this.parent,rt=this.effects.slice(0);Me;){var Jt=Me.effects.filter(function(En){return!Cu(En)});if(xe||Me.container.styles.position!==0||!Me.parent){if(rt.unshift.apply(rt,Jt),xe=[2,3].indexOf(Me.container.styles.position)===-1,Me.container.styles.overflowX!==0){var Gr=lu(Me.curves),cn=Uu(Me.curves);Ju(Gr,cn)||rt.unshift(new uu(cn,2|4))}}else rt.unshift.apply(rt,Jt);Me=Me.parent}return rt.filter(function(En){return as(En.target,fe)})},cr}(),yc=function cr(fe,xe,Me,rt){fe.container.elements.forEach(function(Jt){var Gr=as(Jt.flags,4),cn=as(Jt.flags,2),En=new tc(Jt,fe);as(Jt.styles.display,2048)&&rt.push(En);var Xn=as(Jt.flags,8)?[]:rt;if(Gr||cn){var Di=Gr||Jt.styles.isPositioned()?Me:xe,xi=new Ac(En);if(Jt.styles.isPositioned()||Jt.styles.opacity<1||Jt.styles.isTransformed()){var Fi=Jt.styles.zIndex.order;if(Fi<0){var Fa=0;Di.negativeZIndex.some(function(eo,Yo){return Fi>eo.element.container.styles.zIndex.order?(Fa=Yo,!1):Fa>0}),Di.negativeZIndex.splice(Fa,0,xi)}else if(Fi>0){var Ka=0;Di.positiveZIndex.some(function(eo,Yo){return Fi>=eo.element.container.styles.zIndex.order?(Ka=Yo+1,!1):Ka>0}),Di.positiveZIndex.splice(Ka,0,xi)}else Di.zeroOrAutoZIndexOrTransformedOrOpacity.push(xi)}else Jt.styles.isFloating()?Di.nonPositionedFloats.push(xi):Di.nonPositionedInlineLevel.push(xi);cr(En,xi,Gr?xi:Me,Xn)}else Jt.styles.isInlineLevel()?xe.inlineLevel.push(En):xe.nonInlineLevel.push(En),cr(En,xe,Me,Xn);as(Jt.flags,8)&&sc(Jt,Xn)})},sc=function(fe,xe){for(var Me=fe instanceof we?fe.start:1,rt=fe instanceof we?fe.reversed:!1,Jt=0;Jt<xe.length;Jt++){var Gr=xe[Jt];Gr.container instanceof me&&typeof Gr.container.value=="number"&&Gr.container.value!==0&&(Me=Gr.container.value),Gr.listValue=ie(Me,Gr.container.styles.listStyleType,!0),Me+=rt?-1:1}},ju=function(fe){var xe=new tc(fe,null),Me=new Ac(xe),rt=[];return yc(xe,Me,Me,rt),sc(xe.container,rt),Me},hc=function(fe,xe){switch(xe){case 0:return Tu(fe.topLeftBorderBox,fe.topLeftPaddingBox,fe.topRightBorderBox,fe.topRightPaddingBox);case 1:return Tu(fe.topRightBorderBox,fe.topRightPaddingBox,fe.bottomRightBorderBox,fe.bottomRightPaddingBox);case 2:return Tu(fe.bottomRightBorderBox,fe.bottomRightPaddingBox,fe.bottomLeftBorderBox,fe.bottomLeftPaddingBox);case 3:default:return Tu(fe.bottomLeftBorderBox,fe.bottomLeftPaddingBox,fe.topLeftBorderBox,fe.topLeftPaddingBox)}},bc=function(fe,xe){switch(xe){case 0:return Tu(fe.topLeftBorderBox,fe.topLeftBorderDoubleOuterBox,fe.topRightBorderBox,fe.topRightBorderDoubleOuterBox);case 1:return Tu(fe.topRightBorderBox,fe.topRightBorderDoubleOuterBox,fe.bottomRightBorderBox,fe.bottomRightBorderDoubleOuterBox);case 2:return Tu(fe.bottomRightBorderBox,fe.bottomRightBorderDoubleOuterBox,fe.bottomLeftBorderBox,fe.bottomLeftBorderDoubleOuterBox);case 3:default:return Tu(fe.bottomLeftBorderBox,fe.bottomLeftBorderDoubleOuterBox,fe.topLeftBorderBox,fe.topLeftBorderDoubleOuterBox)}},Cc=function(fe,xe){switch(xe){case 0:return Tu(fe.topLeftBorderDoubleInnerBox,fe.topLeftPaddingBox,fe.topRightBorderDoubleInnerBox,fe.topRightPaddingBox);case 1:return Tu(fe.topRightBorderDoubleInnerBox,fe.topRightPaddingBox,fe.bottomRightBorderDoubleInnerBox,fe.bottomRightPaddingBox);case 2:return Tu(fe.bottomRightBorderDoubleInnerBox,fe.bottomRightPaddingBox,fe.bottomLeftBorderDoubleInnerBox,fe.bottomLeftPaddingBox);case 3:default:return Tu(fe.bottomLeftBorderDoubleInnerBox,fe.bottomLeftPaddingBox,fe.topLeftBorderDoubleInnerBox,fe.topLeftPaddingBox)}},wc=function(fe,xe){switch(xe){case 0:return Mu(fe.topLeftBorderStroke,fe.topRightBorderStroke);case 1:return Mu(fe.topRightBorderStroke,fe.bottomRightBorderStroke);case 2:return Mu(fe.bottomRightBorderStroke,fe.bottomLeftBorderStroke);case 3:default:return Mu(fe.bottomLeftBorderStroke,fe.topLeftBorderStroke)}},Mu=function(fe,xe){var Me=[];return sl(fe)?Me.push(fe.subdivide(.5,!1)):Me.push(fe),sl(xe)?Me.push(xe.subdivide(.5,!0)):Me.push(xe),Me},Tu=function(fe,xe,Me,rt){var Jt=[];return sl(fe)?Jt.push(fe.subdivide(.5,!1)):Jt.push(fe),sl(Me)?Jt.push(Me.subdivide(.5,!0)):Jt.push(Me),sl(rt)?Jt.push(rt.subdivide(.5,!0).reverse()):Jt.push(rt),sl(xe)?Jt.push(xe.subdivide(.5,!1).reverse()):Jt.push(xe),Jt},fc=function(fe){var xe=fe.bounds,Me=fe.styles;return xe.add(Me.borderLeftWidth,Me.borderTopWidth,-(Me.borderRightWidth+Me.borderLeftWidth),-(Me.borderTopWidth+Me.borderBottomWidth))},lc=function(fe){var xe=fe.styles,Me=fe.bounds,rt=Zi(xe.paddingLeft,Me.width),Jt=Zi(xe.paddingRight,Me.width),Gr=Zi(xe.paddingTop,Me.width),cn=Zi(xe.paddingBottom,Me.width);return Me.add(rt+xe.borderLeftWidth,Gr+xe.borderTopWidth,-(xe.borderRightWidth+xe.borderLeftWidth+rt+Jt),-(xe.borderTopWidth+xe.borderBottomWidth+Gr+cn))},Sc=function(fe,xe){return fe===0?xe.bounds:fe===2?lc(xe):fc(xe)},Tc=function(fe,xe){return fe===0?xe.bounds:fe===2?lc(xe):fc(xe)},Gu=function(fe,xe,Me){var rt=Sc(yu(fe.styles.backgroundOrigin,xe),fe),Jt=Tc(yu(fe.styles.backgroundClip,xe),fe),Gr=Fu(yu(fe.styles.backgroundSize,xe),Me,rt),cn=Gr[0],En=Gr[1],Xn=Ui(yu(fe.styles.backgroundPosition,xe),rt.width-cn,rt.height-En),Di=Ku(yu(fe.styles.backgroundRepeat,xe),Xn,Gr,rt,Jt),xi=Math.round(rt.left+Xn[0]),Fi=Math.round(rt.top+Xn[1]);return[Di,xi,Fi,cn,En]},Hu=function(fe){return An(fe)&&fe.value===pi.AUTO},Xu=function(fe){return typeof fe=="number"},Fu=function(fe,xe,Me){var rt=xe[0],Jt=xe[1],Gr=xe[2],cn=fe[0],En=fe[1];if(!cn)return[0,0];if(Ri(cn)&&En&&Ri(En))return[Zi(cn,Me.width),Zi(En,Me.height)];var Xn=Xu(Gr);if(An(cn)&&(cn.value===pi.CONTAIN||cn.value===pi.COVER)){if(Xu(Gr)){var Di=Me.width/Me.height;return Di<Gr!==(cn.value===pi.COVER)?[Me.width,Me.width/Gr]:[Me.height*Gr,Me.height]}return[Me.width,Me.height]}var xi=Xu(rt),Fi=Xu(Jt),Fa=xi||Fi;if(Hu(cn)&&(!En||Hu(En))){if(xi&&Fi)return[rt,Jt];if(!Xn&&!Fa)return[Me.width,Me.height];if(Fa&&Xn){var Ka=xi?rt:Jt*Gr,eo=Fi?Jt:rt/Gr;return[Ka,eo]}var Yo=xi?rt:Me.width,Lo=Fi?Jt:Me.height;return[Yo,Lo]}if(Xn){var yo=0,Ds=0;return Ri(cn)?yo=Zi(cn,Me.width):Ri(En)&&(Ds=Zi(En,Me.height)),Hu(cn)?yo=Ds*Gr:(!En||Hu(En))&&(Ds=yo/Gr),[yo,Ds]}var Ks=null,ws=null;if(Ri(cn)?Ks=Zi(cn,Me.width):En&&Ri(En)&&(ws=Zi(En,Me.height)),Ks!==null&&(!En||Hu(En))&&(ws=xi&&Fi?Ks/rt*Jt:Me.height),ws!==null&&Hu(cn)&&(Ks=xi&&Fi?ws/Jt*rt:Me.width),Ks!==null&&ws!==null)return[Ks,ws];throw new Error("Unable to calculate background-size for element")},yu=function(fe,xe){var Me=fe[xe];return typeof Me=="undefined"?fe[0]:Me},Ku=function(fe,xe,Me,rt,Jt){var Gr=xe[0],cn=xe[1],En=Me[0],Xn=Me[1];switch(fe){case 2:return[new Ma(Math.round(rt.left),Math.round(rt.top+cn)),new Ma(Math.round(rt.left+rt.width),Math.round(rt.top+cn)),new Ma(Math.round(rt.left+rt.width),Math.round(Xn+rt.top+cn)),new Ma(Math.round(rt.left),Math.round(Xn+rt.top+cn))];case 3:return[new Ma(Math.round(rt.left+Gr),Math.round(rt.top)),new Ma(Math.round(rt.left+Gr+En),Math.round(rt.top)),new Ma(Math.round(rt.left+Gr+En),Math.round(rt.height+rt.top)),new Ma(Math.round(rt.left+Gr),Math.round(rt.height+rt.top))];case 1:return[new Ma(Math.round(rt.left+Gr),Math.round(rt.top+cn)),new Ma(Math.round(rt.left+Gr+En),Math.round(rt.top+cn)),new Ma(Math.round(rt.left+Gr+En),Math.round(rt.top+cn+Xn)),new Ma(Math.round(rt.left+Gr),Math.round(rt.top+cn+Xn))];default:return[new Ma(Math.round(Jt.left),Math.round(Jt.top)),new Ma(Math.round(Jt.left+Jt.width),Math.round(Jt.top)),new Ma(Math.round(Jt.left+Jt.width),Math.round(Jt.height+Jt.top)),new Ma(Math.round(Jt.left),Math.round(Jt.height+Jt.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function cr(fe){this._data={},this._document=fe}return cr.prototype.parseMetrics=function(fe,xe){var Me=this._document.createElement("div"),rt=this._document.createElement("img"),Jt=this._document.createElement("span"),Gr=this._document.body;Me.style.visibility="hidden",Me.style.fontFamily=fe,Me.style.fontSize=xe,Me.style.margin="0",Me.style.padding="0",Me.style.whiteSpace="nowrap",Gr.appendChild(Me),rt.src=uc,rt.width=1,rt.height=1,rt.style.margin="0",rt.style.padding="0",rt.style.verticalAlign="baseline",Jt.style.fontFamily=fe,Jt.style.fontSize=xe,Jt.style.margin="0",Jt.style.padding="0",Jt.appendChild(this._document.createTextNode(cc)),Me.appendChild(Jt),Me.appendChild(rt);var cn=rt.offsetTop-Jt.offsetTop+2;Me.removeChild(Jt),Me.appendChild(this._document.createTextNode(cc)),Me.style.lineHeight="normal",rt.style.verticalAlign="super";var En=rt.offsetTop-Me.offsetTop+2;return Gr.removeChild(Me),{baseline:cn,middle:En}},cr.prototype.getMetrics=function(fe,xe){var Me=fe+" "+xe;return typeof this._data[Me]=="undefined"&&(this._data[Me]=this.parseMetrics(fe,xe)),this._data[Me]},cr}(),Ec=function(){function cr(fe,xe){this.context=fe,this.options=xe}return cr}(),pc=1e4,mc=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;return rt._activeEffects=[],rt.canvas=Me.canvas?Me.canvas:document.createElement("canvas"),rt.ctx=rt.canvas.getContext("2d"),Me.canvas||(rt.canvas.width=Math.floor(Me.width*Me.scale),rt.canvas.height=Math.floor(Me.height*Me.scale),rt.canvas.style.width=Me.width+"px",rt.canvas.style.height=Me.height+"px"),rt.fontMetrics=new xc(document),rt.ctx.scale(rt.options.scale,rt.options.scale),rt.ctx.translate(-Me.x,-Me.y),rt.ctx.textBaseline="bottom",rt._activeEffects=[],rt.context.logger.debug("Canvas renderer initialized ("+Me.width+"x"+Me.height+") with scale "+Me.scale),rt}return fe.prototype.applyEffects=function(xe){for(var Me=this;this._activeEffects.length;)this.popEffect();xe.forEach(function(rt){return Me.applyEffect(rt)})},fe.prototype.applyEffect=function(xe){this.ctx.save(),Vu(xe)&&(this.ctx.globalAlpha=xe.opacity),Vl(xe)&&(this.ctx.translate(xe.offsetX,xe.offsetY),this.ctx.transform(xe.matrix[0],xe.matrix[1],xe.matrix[2],xe.matrix[3],xe.matrix[4],xe.matrix[5]),this.ctx.translate(-xe.offsetX,-xe.offsetY)),Cu(xe)&&(this.path(xe.path),this.ctx.clip()),this._activeEffects.push(xe)},fe.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},fe.prototype.renderStack=function(xe){return v(this,void 0,void 0,function(){var Me;return m(this,function(rt){switch(rt.label){case 0:return Me=xe.element.container.styles,Me.isVisible()?[4,this.renderStackContent(xe)]:[3,2];case 1:rt.sent(),rt.label=2;case 2:return[2]}})})},fe.prototype.renderNode=function(xe){return v(this,void 0,void 0,function(){return m(this,function(Me){switch(Me.label){case 0:if(as(xe.container.flags,16))debugger;return xe.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(xe)]:[3,3];case 1:return Me.sent(),[4,this.renderNodeContent(xe)];case 2:Me.sent(),Me.label=3;case 3:return[2]}})})},fe.prototype.renderTextWithLetterSpacing=function(xe,Me,rt){var Jt=this;if(Me===0)this.ctx.fillText(xe.text,xe.bounds.left,xe.bounds.top+rt);else{var Gr=cu(xe.text);Gr.reduce(function(cn,En){return Jt.ctx.fillText(En,cn,xe.bounds.top+rt),cn+Jt.ctx.measureText(En).width},xe.bounds.left)}},fe.prototype.createFontStyle=function(xe){var Me=xe.fontVariant.filter(function(Gr){return Gr==="normal"||Gr==="small-caps"}).join(""),rt=Nc(xe.fontFamily).join(", "),Jt=Ur(xe.fontSize)?""+xe.fontSize.number+xe.fontSize.unit:xe.fontSize.number+"px";return[[xe.fontStyle,Me,xe.fontWeight,Jt,rt].join(" "),rt,Jt]},fe.prototype.renderTextNode=function(xe,Me){return v(this,void 0,void 0,function(){var rt,Jt,Gr,cn,En,Xn,Di,xi,Fi=this;return m(this,function(Fa){return rt=this.createFontStyle(Me),Jt=rt[0],Gr=rt[1],cn=rt[2],this.ctx.font=Jt,this.ctx.direction=Me.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",En=this.fontMetrics.getMetrics(Gr,cn),Xn=En.baseline,Di=En.middle,xi=Me.paintOrder,xe.textBounds.forEach(function(Ka){xi.forEach(function(eo){switch(eo){case 0:Fi.ctx.fillStyle=Ia(Me.color),Fi.renderTextWithLetterSpacing(Ka,Me.letterSpacing,Xn);var Yo=Me.textShadow;Yo.length&&Ka.text.trim().length&&(Yo.slice(0).reverse().forEach(function(Lo){Fi.ctx.shadowColor=Ia(Lo.color),Fi.ctx.shadowOffsetX=Lo.offsetX.number*Fi.options.scale,Fi.ctx.shadowOffsetY=Lo.offsetY.number*Fi.options.scale,Fi.ctx.shadowBlur=Lo.blur.number,Fi.renderTextWithLetterSpacing(Ka,Me.letterSpacing,Xn)}),Fi.ctx.shadowColor="",Fi.ctx.shadowOffsetX=0,Fi.ctx.shadowOffsetY=0,Fi.ctx.shadowBlur=0),Me.textDecorationLine.length&&(Fi.ctx.fillStyle=Ia(Me.textDecorationColor||Me.color),Me.textDecorationLine.forEach(function(Lo){switch(Lo){case 1:Fi.ctx.fillRect(Ka.bounds.left,Math.round(Ka.bounds.top+Xn),Ka.bounds.width,1);break;case 2:Fi.ctx.fillRect(Ka.bounds.left,Math.round(Ka.bounds.top),Ka.bounds.width,1);break;case 3:Fi.ctx.fillRect(Ka.bounds.left,Math.ceil(Ka.bounds.top+Di),Ka.bounds.width,1);break}}));break;case 1:Me.webkitTextStrokeWidth&&Ka.text.trim().length&&(Fi.ctx.strokeStyle=Ia(Me.webkitTextStrokeColor),Fi.ctx.lineWidth=Me.webkitTextStrokeWidth,Fi.ctx.lineJoin=window.chrome?"miter":"round",Fi.ctx.strokeText(Ka.text,Ka.bounds.left,Ka.bounds.top+Xn)),Fi.ctx.strokeStyle="",Fi.ctx.lineWidth=0,Fi.ctx.lineJoin="miter";break}})}),[2]})})},fe.prototype.renderReplacedElement=function(xe,Me,rt){if(rt&&xe.intrinsicWidth>0&&xe.intrinsicHeight>0){var Jt=lc(xe),Gr=Uu(Me);this.path(Gr),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(rt,0,0,xe.intrinsicWidth,xe.intrinsicHeight,Jt.left,Jt.top,Jt.width,Jt.height),this.ctx.restore()}},fe.prototype.renderNodeContent=function(xe){return v(this,void 0,void 0,function(){var Me,rt,Jt,Gr,cn,En,Xn,Xn,Di,xi,Fi,Fa,Ka,eo,Yo,Lo,yo,Ds,Ks,Xn,ws,Ka,Lo;return m(this,function(po){switch(po.label){case 0:this.applyEffects(xe.getEffects(4)),Me=xe.container,rt=xe.curves,Jt=Me.styles,Gr=0,cn=Me.textNodes,po.label=1;case 1:return Gr<cn.length?(En=cn[Gr],[4,this.renderTextNode(En,Jt)]):[3,4];case 2:po.sent(),po.label=3;case 3:return Gr++,[3,1];case 4:if(!(Me instanceof j))return[3,8];po.label=5;case 5:return po.trys.push([5,7,,8]),[4,this.context.cache.match(Me.src)];case 6:return Xn=po.sent(),this.renderReplacedElement(Me,rt,Xn),[3,8];case 7:return po.sent(),this.context.logger.error("Error loading image "+Me.src),[3,8];case 8:if(Me instanceof J&&this.renderReplacedElement(Me,rt,Me.canvas),!(Me instanceof te))return[3,12];po.label=9;case 9:return po.trys.push([9,11,,12]),[4,this.context.cache.match(Me.svg)];case 10:return Xn=po.sent(),this.renderReplacedElement(Me,rt,Xn),[3,12];case 11:return po.sent(),this.context.logger.error("Error loading svg "+Me.svg.substring(0,255)),[3,12];case 12:return Me instanceof si&&Me.tree?(Di=new fe(this.context,{scale:this.options.scale,backgroundColor:Me.backgroundColor,x:0,y:0,width:Me.width,height:Me.height}),[4,Di.render(Me.tree)]):[3,14];case 13:xi=po.sent(),Me.width&&Me.height&&this.ctx.drawImage(xi,0,0,Me.width,Me.height,Me.bounds.left,Me.bounds.top,Me.bounds.width,Me.bounds.height),po.label=14;case 14:if(Me instanceof Sn&&(Fi=Math.min(Me.bounds.width,Me.bounds.height),Me.type===hr?Me.checked&&(this.ctx.save(),this.path([new Ma(Me.bounds.left+Fi*.39363,Me.bounds.top+Fi*.79),new Ma(Me.bounds.left+Fi*.16,Me.bounds.top+Fi*.5549),new Ma(Me.bounds.left+Fi*.27347,Me.bounds.top+Fi*.44071),new Ma(Me.bounds.left+Fi*.39694,Me.bounds.top+Fi*.5649),new Ma(Me.bounds.left+Fi*.72983,Me.bounds.top+Fi*.23),new Ma(Me.bounds.left+Fi*.84,Me.bounds.top+Fi*.34085),new Ma(Me.bounds.left+Fi*.39363,Me.bounds.top+Fi*.79)]),this.ctx.fillStyle=Ia(jr),this.ctx.fill(),this.ctx.restore()):Me.type===tr&&(Me.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Me.bounds.left+Fi/2,Me.bounds.top+Fi/2,Fi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ia(jr),this.ctx.fill(),this.ctx.restore()))),_c(Me)&&Me.value.length){Fa=this.createFontStyle(Jt),Ka=Fa[0],eo=Fa[1],Yo=this.fontMetrics.getMetrics(Ka,eo).baseline,this.ctx.font=Ka,this.ctx.fillStyle=Ia(Jt.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(Me.styles.textAlign),Lo=lc(Me),yo=0;switch(Me.styles.textAlign){case 1:yo+=Lo.width/2;break;case 2:yo+=Lo.width;break}Ds=Lo.add(yo,0,0,-Lo.height/2+1),this.ctx.save(),this.path([new Ma(Lo.left,Lo.top),new Ma(Lo.left+Lo.width,Lo.top),new Ma(Lo.left+Lo.width,Lo.top+Lo.height),new Ma(Lo.left,Lo.top+Lo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new gl(Me.value,Ds),Jt.letterSpacing,Yo),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!as(Me.styles.display,2048))return[3,20];if(!(Me.styles.listStyleImage!==null))return[3,19];if(Ks=Me.styles.listStyleImage,!(Ks.type===0))return[3,18];Xn=void 0,ws=Ks.url,po.label=15;case 15:return po.trys.push([15,17,,18]),[4,this.context.cache.match(ws)];case 16:return Xn=po.sent(),this.ctx.drawImage(Xn,Me.bounds.left-(Xn.width+10),Me.bounds.top),[3,18];case 17:return po.sent(),this.context.logger.error("Error loading list-style-image "+ws),[3,18];case 18:return[3,20];case 19:xe.listValue&&Me.styles.listStyleType!==-1&&(Ka=this.createFontStyle(Jt)[0],this.ctx.font=Ka,this.ctx.fillStyle=Ia(Jt.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Lo=new d(Me.bounds.left,Me.bounds.top+Zi(Me.styles.paddingTop,Me.bounds.width),Me.bounds.width,Mo(Jt.lineHeight,Jt.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new gl(xe.listValue,Lo),Jt.letterSpacing,Mo(Jt.lineHeight,Jt.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),po.label=20;case 20:return[2]}})})},fe.prototype.renderStackContent=function(xe){return v(this,void 0,void 0,function(){var Me,rt,Jt,Gr,cn,Jt,En,Xn,Jt,Di,xi,Jt,Fi,Fa,Jt,Ka,eo,Jt,Yo,Lo,Jt;return m(this,function(yo){switch(yo.label){case 0:if(as(xe.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(xe.element)];case 1:yo.sent(),Me=0,rt=xe.negativeZIndex,yo.label=2;case 2:return Me<rt.length?(Jt=rt[Me],[4,this.renderStack(Jt)]):[3,5];case 3:yo.sent(),yo.label=4;case 4:return Me++,[3,2];case 5:return[4,this.renderNodeContent(xe.element)];case 6:yo.sent(),Gr=0,cn=xe.nonInlineLevel,yo.label=7;case 7:return Gr<cn.length?(Jt=cn[Gr],[4,this.renderNode(Jt)]):[3,10];case 8:yo.sent(),yo.label=9;case 9:return Gr++,[3,7];case 10:En=0,Xn=xe.nonPositionedFloats,yo.label=11;case 11:return En<Xn.length?(Jt=Xn[En],[4,this.renderStack(Jt)]):[3,14];case 12:yo.sent(),yo.label=13;case 13:return En++,[3,11];case 14:Di=0,xi=xe.nonPositionedInlineLevel,yo.label=15;case 15:return Di<xi.length?(Jt=xi[Di],[4,this.renderStack(Jt)]):[3,18];case 16:yo.sent(),yo.label=17;case 17:return Di++,[3,15];case 18:Fi=0,Fa=xe.inlineLevel,yo.label=19;case 19:return Fi<Fa.length?(Jt=Fa[Fi],[4,this.renderNode(Jt)]):[3,22];case 20:yo.sent(),yo.label=21;case 21:return Fi++,[3,19];case 22:Ka=0,eo=xe.zeroOrAutoZIndexOrTransformedOrOpacity,yo.label=23;case 23:return Ka<eo.length?(Jt=eo[Ka],[4,this.renderStack(Jt)]):[3,26];case 24:yo.sent(),yo.label=25;case 25:return Ka++,[3,23];case 26:Yo=0,Lo=xe.positiveZIndex,yo.label=27;case 27:return Yo<Lo.length?(Jt=Lo[Yo],[4,this.renderStack(Jt)]):[3,30];case 28:yo.sent(),yo.label=29;case 29:return Yo++,[3,27];case 30:return[2]}})})},fe.prototype.mask=function(xe){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(xe.slice(0).reverse()),this.ctx.closePath()},fe.prototype.path=function(xe){this.ctx.beginPath(),this.formatPath(xe),this.ctx.closePath()},fe.prototype.formatPath=function(xe){var Me=this;xe.forEach(function(rt,Jt){var Gr=sl(rt)?rt.start:rt;Jt===0?Me.ctx.moveTo(Gr.x,Gr.y):Me.ctx.lineTo(Gr.x,Gr.y),sl(rt)&&Me.ctx.bezierCurveTo(rt.startControl.x,rt.startControl.y,rt.endControl.x,rt.endControl.y,rt.end.x,rt.end.y)})},fe.prototype.renderRepeat=function(xe,Me,rt,Jt){this.path(xe),this.ctx.fillStyle=Me,this.ctx.translate(rt,Jt),this.ctx.fill(),this.ctx.translate(-rt,-Jt)},fe.prototype.resizeImage=function(xe,Me,rt){var Jt;if(xe.width===Me&&xe.height===rt)return xe;var Gr=(Jt=this.canvas.ownerDocument)!==null&&Jt!==void 0?Jt:document,cn=Gr.createElement("canvas");cn.width=Math.max(1,Me),cn.height=Math.max(1,rt);var En=cn.getContext("2d");return En.drawImage(xe,0,0,xe.width,xe.height,0,0,Me,rt),cn},fe.prototype.renderBackgroundImage=function(xe){return v(this,void 0,void 0,function(){var Me,rt,Jt,Gr,cn,En;return m(this,function(Xn){switch(Xn.label){case 0:Me=xe.styles.backgroundImage.length-1,rt=function(xi){var Fi,Fa,Ka,eo,Yo,Lo,yo,Ds,Ks,ws,eo,Yo,Lo,yo,Ds,po,el,nl,Ss,_u,Pu,Ou,ql,rc,Ks,Wu,eo,Zu,$u,yo,Ds,qu,Yo,Lo,nc,zu,ec,ic,ac,Yu,oc,Qu;return m(this,function(dc){switch(dc.label){case 0:if(!(xi.type===0))return[3,5];Fi=void 0,Fa=xi.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,Jt.context.cache.match(Fa)];case 2:return Fi=dc.sent(),[3,4];case 3:return dc.sent(),Jt.context.logger.error("Error loading background-image "+Fa),[3,4];case 4:return Fi&&(Ka=Gu(xe,Me,[Fi.width,Fi.height,Fi.width/Fi.height]),eo=Ka[0],Yo=Ka[1],Lo=Ka[2],yo=Ka[3],Ds=Ka[4],Ks=Jt.ctx.createPattern(Jt.resizeImage(Fi,yo,Ds),"repeat"),Jt.renderRepeat(eo,Ks,Yo,Lo)),[3,6];case 5:Mr(xi)?(ws=Gu(xe,Me,[null,null,null]),eo=ws[0],Yo=ws[1],Lo=ws[2],yo=ws[3],Ds=ws[4],po=zo(xi.angle,yo,Ds),el=po[0],nl=po[1],Ss=po[2],_u=po[3],Pu=po[4],Ou=document.createElement("canvas"),Ou.width=yo,Ou.height=Ds,ql=Ou.getContext("2d"),rc=ql.createLinearGradient(nl,_u,Ss,Pu),uo(xi.stops,el).forEach(function(gc){return rc.addColorStop(gc.stop,Ia(gc.color))}),ql.fillStyle=rc,ql.fillRect(0,0,yo,Ds),yo>0&&Ds>0&&(Ks=Jt.ctx.createPattern(Ou,"repeat"),Jt.renderRepeat(eo,Ks,Yo,Lo))):Gn(xi)&&(Wu=Gu(xe,Me,[null,null,null]),eo=Wu[0],Zu=Wu[1],$u=Wu[2],yo=Wu[3],Ds=Wu[4],qu=xi.position.length===0?[Ii]:xi.position,Yo=Zi(qu[0],yo),Lo=Zi(qu[qu.length-1],Ds),nc=Do(xi,Yo,Lo,yo,Ds),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=Jt.ctx.createRadialGradient(Zu+Yo,$u+Lo,0,Zu+Yo,$u+Lo,zu),uo(xi.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Ia(gc.color))}),Jt.path(eo),Jt.ctx.fillStyle=ic,zu!==ec?(ac=xe.bounds.left+.5*xe.bounds.width,Yu=xe.bounds.top+.5*xe.bounds.height,oc=ec/zu,Qu=1/oc,Jt.ctx.save(),Jt.ctx.translate(ac,Yu),Jt.ctx.transform(1,0,0,oc,0,0),Jt.ctx.translate(-ac,-Yu),Jt.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,yo,Ds*Qu),Jt.ctx.restore()):Jt.ctx.fill())),dc.label=6;case 6:return Me--,[2]}})},Jt=this,Gr=0,cn=xe.styles.backgroundImage.slice(0).reverse(),Xn.label=1;case 1:return Gr<cn.length?(En=cn[Gr],[5,rt(En)]):[3,4];case 2:Xn.sent(),Xn.label=3;case 3:return Gr++,[3,1];case 4:return[2]}})})},fe.prototype.renderSolidBorder=function(xe,Me,rt){return v(this,void 0,void 0,function(){return m(this,function(Jt){return this.path(hc(rt,Me)),this.ctx.fillStyle=Ia(xe),this.ctx.fill(),[2]})})},fe.prototype.renderDoubleBorder=function(xe,Me,rt,Jt){return v(this,void 0,void 0,function(){var Gr,cn;return m(this,function(En){switch(En.label){case 0:return Me<3?[4,this.renderSolidBorder(xe,rt,Jt)]:[3,2];case 1:return En.sent(),[2];case 2:return Gr=bc(Jt,rt),this.path(Gr),this.ctx.fillStyle=Ia(xe),this.ctx.fill(),cn=Cc(Jt,rt),this.path(cn),this.ctx.fill(),[2]}})})},fe.prototype.renderNodeBackgroundAndBorders=function(xe){return v(this,void 0,void 0,function(){var Me,rt,Jt,Gr,cn,En,Xn,Di,xi=this;return m(this,function(Fi){switch(Fi.label){case 0:return this.applyEffects(xe.getEffects(2)),Me=xe.container.styles,rt=!va(Me.backgroundColor)||Me.backgroundImage.length,Jt=[{style:Me.borderTopStyle,color:Me.borderTopColor,width:Me.borderTopWidth},{style:Me.borderRightStyle,color:Me.borderRightColor,width:Me.borderRightWidth},{style:Me.borderBottomStyle,color:Me.borderBottomColor,width:Me.borderBottomWidth},{style:Me.borderLeftStyle,color:Me.borderLeftColor,width:Me.borderLeftWidth}],Gr=Oc(yu(Me.backgroundClip,0),xe.curves),rt||Me.boxShadow.length?(this.ctx.save(),this.path(Gr),this.ctx.clip(),va(Me.backgroundColor)||(this.ctx.fillStyle=Ia(Me.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(xe.container)]):[3,2];case 1:Fi.sent(),this.ctx.restore(),Me.boxShadow.slice(0).reverse().forEach(function(Fa){xi.ctx.save();var Ka=lu(xe.curves),eo=Fa.inset?0:pc,Yo=vc(Ka,-eo+(Fa.inset?1:-1)*Fa.spread.number,(Fa.inset?1:-1)*Fa.spread.number,Fa.spread.number*(Fa.inset?-2:2),Fa.spread.number*(Fa.inset?-2:2));Fa.inset?(xi.path(Ka),xi.ctx.clip(),xi.mask(Yo)):(xi.mask(Ka),xi.ctx.clip(),xi.path(Yo)),xi.ctx.shadowOffsetX=Fa.offsetX.number+eo,xi.ctx.shadowOffsetY=Fa.offsetY.number,xi.ctx.shadowColor=Ia(Fa.color),xi.ctx.shadowBlur=Fa.blur.number,xi.ctx.fillStyle=Fa.inset?Ia(Fa.color):"rgba(0,0,0,1)",xi.ctx.fill(),xi.ctx.restore()}),Fi.label=2;case 2:cn=0,En=0,Xn=Jt,Fi.label=3;case 3:return En<Xn.length?(Di=Xn[En],Di.style!==0&&!va(Di.color)&&Di.width>0?Di.style===2?[4,this.renderDashedDottedBorder(Di.color,Di.width,cn,xe.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return Fi.sent(),[3,11];case 5:return Di.style===3?[4,this.renderDashedDottedBorder(Di.color,Di.width,cn,xe.curves,3)]:[3,7];case 6:return Fi.sent(),[3,11];case 7:return Di.style===4?[4,this.renderDoubleBorder(Di.color,Di.width,cn,xe.curves)]:[3,9];case 8:return Fi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Di.color,cn,xe.curves)];case 10:Fi.sent(),Fi.label=11;case 11:cn++,Fi.label=12;case 12:return En++,[3,3];case 13:return[2]}})})},fe.prototype.renderDashedDottedBorder=function(xe,Me,rt,Jt,Gr){return v(this,void 0,void 0,function(){var cn,En,Xn,Di,xi,Fi,Fa,Ka,eo,Yo,Lo,yo,Ds,Ks,ws,po,ws,po;return m(this,function(el){return this.ctx.save(),cn=wc(Jt,rt),En=hc(Jt,rt),Gr===2&&(this.path(En),this.ctx.clip()),sl(En[0])?(Xn=En[0].start.x,Di=En[0].start.y):(Xn=En[0].x,Di=En[0].y),sl(En[1])?(xi=En[1].end.x,Fi=En[1].end.y):(xi=En[1].x,Fi=En[1].y),rt===0||rt===2?Fa=Math.abs(Xn-xi):Fa=Math.abs(Di-Fi),this.ctx.beginPath(),Gr===3?this.formatPath(cn):this.formatPath(En.slice(0,2)),Ka=Me<3?Me*3:Me*2,eo=Me<3?Me*2:Me,Gr===3&&(Ka=Me,eo=Me),Yo=!0,Fa<=Ka*2?Yo=!1:Fa<=Ka*2+eo?(Lo=Fa/(2*Ka+eo),Ka*=Lo,eo*=Lo):(yo=Math.floor((Fa+eo)/(Ka+eo)),Ds=(Fa-yo*Ka)/(yo-1),Ks=(Fa-(yo+1)*Ka)/yo,eo=Ks<=0||Math.abs(eo-Ds)<Math.abs(eo-Ks)?Ds:Ks),Yo&&(Gr===3?this.ctx.setLineDash([0,Ka+eo]):this.ctx.setLineDash([Ka,eo])),Gr===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Me):this.ctx.lineWidth=Me*2+1.1,this.ctx.strokeStyle=Ia(xe),this.ctx.stroke(),this.ctx.setLineDash([]),Gr===2&&(sl(En[0])&&(ws=En[3],po=En[0],this.ctx.beginPath(),this.formatPath([new Ma(ws.end.x,ws.end.y),new Ma(po.start.x,po.start.y)]),this.ctx.stroke()),sl(En[1])&&(ws=En[1],po=En[2],this.ctx.beginPath(),this.formatPath([new Ma(ws.end.x,ws.end.y),new Ma(po.start.x,po.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},fe.prototype.render=function(xe){return v(this,void 0,void 0,function(){var Me;return m(this,function(rt){switch(rt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ia(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Me=ju(xe),[4,this.renderStack(Me)];case 1:return rt.sent(),this.applyEffects([]),[2,this.canvas]}})})},fe}(Ec),_c=function(fe){return fe instanceof Mn||fe instanceof yn?!0:fe instanceof Sn&&fe.type!==tr&&fe.type!==hr},Oc=function(fe,xe){switch(fe){case 0:return lu(xe);case 2:return Rl(xe);case 1:default:return Uu(xe)}},Ic=function(fe){switch(fe){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(fe){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?fe.filter(function(xe){return Lc.indexOf(xe)===-1}):fe},Dc=function(cr){p(fe,cr);function fe(xe,Me){var rt=cr.call(this,xe,Me)||this;return rt.canvas=Me.canvas?Me.canvas:document.createElement("canvas"),rt.ctx=rt.canvas.getContext("2d"),rt.options=Me,rt.canvas.width=Math.floor(Me.width*Me.scale),rt.canvas.height=Math.floor(Me.height*Me.scale),rt.canvas.style.width=Me.width+"px",rt.canvas.style.height=Me.height+"px",rt.ctx.scale(rt.options.scale,rt.options.scale),rt.ctx.translate(-Me.x,-Me.y),rt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Me.width+"x"+Me.height+" at "+Me.x+","+Me.y+") with scale "+Me.scale),rt}return fe.prototype.render=function(xe){return v(this,void 0,void 0,function(){var Me,rt;return m(this,function(Jt){switch(Jt.label){case 0:return Me=wu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,xe),[4,Rc(Me)];case 1:return rt=Jt.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ia(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(rt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},fe}(Ec),Rc=function(fe){return new Promise(function(xe,Me){var rt=new Image;rt.onload=function(){xe(rt)},rt.onerror=Me,rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(fe))})},kc=function(){function cr(fe){var xe=fe.id,Me=fe.enabled;this.id=xe,this.enabled=Me,this.start=Date.now()}return cr.prototype.debug=function(){for(var fe=[],xe=0;xe<arguments.length;xe++)fe[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,f([this.id,this.getTime()+"ms"],fe)):this.info.apply(this,fe))},cr.prototype.getTime=function(){return Date.now()-this.start},cr.prototype.info=function(){for(var fe=[],xe=0;xe<arguments.length;xe++)fe[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,f([this.id,this.getTime()+"ms"],fe)))},cr.prototype.warn=function(){for(var fe=[],xe=0;xe<arguments.length;xe++)fe[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,f([this.id,this.getTime()+"ms"],fe)):this.info.apply(this,fe))},cr.prototype.error=function(){for(var fe=[],xe=0;xe<arguments.length;xe++)fe[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,f([this.id,this.getTime()+"ms"],fe)):this.info.apply(this,fe))},cr.instances={},cr}(),Pc=function(){function cr(fe,xe){var Me;this.windowBounds=xe,this.instanceName="#"+cr.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:fe.logging}),this.cache=(Me=fe.cache)!==null&&Me!==void 0?Me:new us(this,fe)}return cr.instanceCount=1,cr}(),Mc=function(fe,xe){return xe===void 0&&(xe={}),Fc(fe,xe)};typeof window!="undefined"&&Ao.setContext(window);var Fc=function(fe,xe){return v(void 0,void 0,void 0,function(){var Me,rt,Jt,Gr,cn,En,Xn,Di,xi,Fi,Fa,Ka,eo,Yo,Lo,yo,Ds,Ks,ws,po,el,nl,el,Ss,_u,Pu,Ou,ql,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return m(this,function(Qu){switch(Qu.label){case 0:if(!fe||typeof fe!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Me=fe.ownerDocument,!Me)throw new Error("Element is not attached to a Document");if(rt=Me.defaultView,!rt)throw new Error("Document is not attached to a Window");return Jt={allowTaint:(Ss=xe.allowTaint)!==null&&Ss!==void 0?Ss:!1,imageTimeout:(_u=xe.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:xe.proxy,useCORS:(Pu=xe.useCORS)!==null&&Pu!==void 0?Pu:!1},Gr=S({logging:(Ou=xe.logging)!==null&&Ou!==void 0?Ou:!0,cache:xe.cache},Jt),cn={windowWidth:(ql=xe.windowWidth)!==null&&ql!==void 0?ql:rt.innerWidth,windowHeight:(rc=xe.windowHeight)!==null&&rc!==void 0?rc:rt.innerHeight,scrollX:(Wu=xe.scrollX)!==null&&Wu!==void 0?Wu:rt.pageXOffset,scrollY:(Zu=xe.scrollY)!==null&&Zu!==void 0?Zu:rt.pageYOffset},En=new d(cn.scrollX,cn.scrollY,cn.windowWidth,cn.windowHeight),Xn=new Pc(Gr,En),Di=($u=xe.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,xi={allowTaint:(qu=xe.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:xe.onclone,ignoreElements:xe.ignoreElements,inlineImages:Di,copyStyles:Di},Xn.logger.debug("Starting document clone with size "+En.width+"x"+En.height+" scrolled to "+-En.left+","+-En.top),Fi=new de(Xn,fe,xi),Fa=Fi.clonedReferenceElement,Fa?[4,Fi.toIFrame(Me,En)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Ka=Qu.sent(),eo=Cr(Fa)||ht(Fa)?o(Fa.ownerDocument):u(Xn,Fa),Yo=eo.width,Lo=eo.height,yo=eo.left,Ds=eo.top,Ks=Bc(Xn,Fa,xe.backgroundColor),ws={canvas:xe.canvas,backgroundColor:Ks,scale:(zu=(nc=xe.scale)!==null&&nc!==void 0?nc:rt.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=xe.x)!==null&&ec!==void 0?ec:0)+yo,y:((ic=xe.y)!==null&&ic!==void 0?ic:0)+Ds,width:(ac=xe.width)!==null&&ac!==void 0?ac:Math.ceil(Yo),height:(Yu=xe.height)!==null&&Yu!==void 0?Yu:Math.ceil(Lo)},Di?(Xn.logger.debug("Document cloned, using foreign object rendering"),el=new Dc(Xn,ws),[4,el.render(Fa)]):[3,3];case 2:return po=Qu.sent(),[3,5];case 3:return Xn.logger.debug("Document cloned, element located at "+yo+","+Ds+" with size "+Yo+"x"+Lo+" using computed rendering"),Xn.logger.debug("Starting DOM parsing"),nl=Aa(Xn,Fa),Ks===nl.styles.backgroundColor&&(nl.styles.backgroundColor=co.TRANSPARENT),Xn.logger.debug("Starting renderer for element at "+ws.x+","+ws.y+" with size "+ws.width+"x"+ws.height),el=new mc(Xn,ws),[4,el.render(nl)];case 4:po=Qu.sent(),Qu.label=5;case 5:return((oc=xe.removeContainer)!==null&&oc!==void 0?oc:!0)&&(de.destroy(Ka)||Xn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Xn.logger.debug("Finished rendering"),[2,po]}})})},Bc=function(fe,xe,Me){var rt=xe.ownerDocument,Jt=rt.documentElement?no(fe,getComputedStyle(rt.documentElement).backgroundColor):co.TRANSPARENT,Gr=rt.body?no(fe,getComputedStyle(rt.body).backgroundColor):co.TRANSPARENT,cn=typeof Me=="string"?no(fe,Me):Me===null?co.TRANSPARENT:4294967295;return xe===rt.documentElement?va(Jt)?va(Gr)?cn:Gr:Jt:cn};return Mc})},wPhX:function(k,D,i){"use strict";i.d(D,"b",function(){return n}),i.d(D,"a",function(){return t}),i.d(D,"k",function(){return a}),i.d(D,"h",function(){return e}),i.d(D,"i",function(){return l}),i.d(D,"g",function(){return r}),i.d(D,"c",function(){return s}),i.d(D,"d",function(){return c}),i.d(D,"j",function(){return A}),i.d(D,"e",function(){return b}),i.d(D,"f",function(){return w});var y=i("KQm4"),p=i("U8pU"),S=i("Ff2n"),v=i("q1tI"),m=i.n(v),f=i("Kwbf"),d=i("lr6o"),u=.25,o=2;function n(x,T){var _=x.slice(),E=_.indexOf(T);return E>=0&&_.splice(E,1),_}function t(x,T){var _=x.slice();return _.indexOf(T)===-1&&_.push(T),_}function a(x){return x.split("-")}function e(x,T){return"".concat(x,"-").concat(T)}function l(x){return x&&x.type&&x.type.isTreeNode}function r(x,T){var _=[x],E=T[x];function C(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];I.forEach(function(O){var F=O.key,R=O.children;_.push(F),C(R)})}return C(E.children),_}function s(x,T){var _=x.clientY,E=T.selectHandle.getBoundingClientRect(),C=E.top,I=E.bottom,O=E.height,F=Math.max(O*u,o);return _<=C+F?-1:_>=I-F?1:0}function c(x,T){if(!x)return;var _=T.multiple;return _?x.slice():x.length?[x[0]]:x}var h=function(T){return T};function g(x,T){if(!x)return[];var _=T||{},E=_.processProps,C=E===void 0?h:E,I=Array.isArray(x)?x:[x];return I.map(function(O){var F=O.children,R=Object(S.a)(O,["children"]),B=g(F,T);return m.a.createElement(d.a,Object.assign({},C(R)),B)})}function A(x){if(!x)return null;var T;if(Array.isArray(x))T={checkedKeys:x,halfCheckedKeys:void 0};else if(Object(p.a)(x)==="object")T={checkedKeys:x.checked||void 0,halfCheckedKeys:x.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return T}function b(x,T){var _=new Set;function E(C){if(_.has(C))return;var I=T[C];if(!I)return;_.add(C);var O=I.parent,F=I.node;if(F.disabled)return;O&&E(O.key)}return(x||[]).forEach(function(C){E(C)}),Object(y.a)(_)}function w(x){var T={};return Object.keys(x).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(T[_]=x[_])}),T}},wU8J:function(k,D){function i(){this.buffer=new Array,this.length=0}i.prototype={get:function(p){var S=Math.floor(p/8);return(this.buffer[S]>>>7-p%8&1)==1},put:function(p,S){for(var v=0;v<S;v++)this.putBit((p>>>S-v-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(p){var S=Math.floor(this.length/8);this.buffer.length<=S&&this.buffer.push(0),p&&(this.buffer[S]|=128>>>this.length%8),this.length++}},k.exports=i},wXyp:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("ygfH")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CheckOutlined";var n=v.forwardRef(o);D.default=n},wYyv:function(k,D,i){"use strict";var y=i("R5yR"),p=i("5wUe"),S=function(f,d,u){var o=d<0?f.length+d:d;if(o>=0&&o<f.length){var n=u<0?f.length+u:u,t=f.splice(d,1),a=p(t,1),e=a[0];f.splice(n,0,e)}},v=function(f,d,u){return f=y(f),S(f,d,u),f};k.exports=v,k.exports.mutate=S},wZgz:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.BlockCipher,m=p.algo,f=[],d=[],u=[],o=[],n=[],t=[],a=[],e=[],l=[],r=[];(function(){for(var h=[],g=0;g<256;g++)g<128?h[g]=g<<1:h[g]=g<<1^283;for(var A=0,b=0,g=0;g<256;g++){var w=b^b<<1^b<<2^b<<3^b<<4;w=w>>>8^w&255^99,f[A]=w,d[w]=A;var x=h[A],T=h[x],_=h[T],E=h[w]*257^w*16843008;u[A]=E<<24|E>>>8,o[A]=E<<16|E>>>16,n[A]=E<<8|E>>>24,t[A]=E;var E=_*16843009^T*65537^x*257^A*16843008;a[w]=E<<24|E>>>8,e[w]=E<<16|E>>>16,l[w]=E<<8|E>>>24,r[w]=E,A?(A=x^h[h[h[_^x]]],b^=h[h[b]]):A=b=1}})();var s=[0,1,2,4,8,16,32,64,128,27,54],c=m.AES=v.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var A=this._keyPriorReset=this._key,b=A.words,w=A.sigBytes/4,x=this._nRounds=w+6,T=(x+1)*4,_=this._keySchedule=[],E=0;E<T;E++)E<w?_[E]=b[E]:(g=_[E-1],E%w?w>6&&E%w==4&&(g=f[g>>>24]<<24|f[g>>>16&255]<<16|f[g>>>8&255]<<8|f[g&255]):(g=g<<8|g>>>24,g=f[g>>>24]<<24|f[g>>>16&255]<<16|f[g>>>8&255]<<8|f[g&255],g^=s[E/w|0]<<24),_[E]=_[E-w]^g);for(var C=this._invKeySchedule=[],I=0;I<T;I++){var E=T-I;if(I%4)var g=_[E];else var g=_[E-4];I<4||E<=4?C[I]=g:C[I]=a[f[g>>>24]]^e[f[g>>>16&255]]^l[f[g>>>8&255]]^r[f[g&255]]}},encryptBlock:function(g,A){this._doCryptBlock(g,A,this._keySchedule,u,o,n,t,f)},decryptBlock:function(g,A){var b=g[A+1];g[A+1]=g[A+3],g[A+3]=b,this._doCryptBlock(g,A,this._invKeySchedule,a,e,l,r,d);var b=g[A+1];g[A+1]=g[A+3],g[A+3]=b},_doCryptBlock:function(g,A,b,w,x,T,_,E){for(var C=this._nRounds,I=g[A]^b[0],O=g[A+1]^b[1],F=g[A+2]^b[2],R=g[A+3]^b[3],B=4,P=1;P<C;P++){var X=w[I>>>24]^x[O>>>16&255]^T[F>>>8&255]^_[R&255]^b[B++],M=w[O>>>24]^x[F>>>16&255]^T[R>>>8&255]^_[I&255]^b[B++],z=w[F>>>24]^x[R>>>16&255]^T[I>>>8&255]^_[O&255]^b[B++],W=w[R>>>24]^x[I>>>16&255]^T[O>>>8&255]^_[F&255]^b[B++];I=X,O=M,F=z,R=W}var X=(E[I>>>24]<<24|E[O>>>16&255]<<16|E[F>>>8&255]<<8|E[R&255])^b[B++],M=(E[O>>>24]<<24|E[F>>>16&255]<<16|E[R>>>8&255]<<8|E[I&255])^b[B++],z=(E[F>>>24]<<24|E[R>>>16&255]<<16|E[I>>>8&255]<<8|E[O&255])^b[B++],W=(E[R>>>24]<<24|E[I>>>16&255]<<16|E[O>>>8&255]<<8|E[F&255])^b[B++];g[A]=X,g[A+1]=M,g[A+2]=z,g[A+3]=W},keySize:256/32});p.AES=v._createHelper(c)}(),y.AES})},wbyO:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,v=S.WordArray,m=p.enc,f=m.Base64url={stringify:function(o,n){n===void 0&&(n=!0);var t=o.words,a=o.sigBytes,e=n?this._safe_map:this._map;o.clamp();for(var l=[],r=0;r<a;r+=3)for(var s=t[r>>>2]>>>24-r%4*8&255,c=t[r+1>>>2]>>>24-(r+1)%4*8&255,h=t[r+2>>>2]>>>24-(r+2)%4*8&255,g=s<<16|c<<8|h,A=0;A<4&&r+A*.75<a;A++)l.push(e.charAt(g>>>6*(3-A)&63));var b=e.charAt(64);if(b)for(;l.length%4;)l.push(b);return l.join("")},parse:function(o,n){n===void 0&&(n=!0);var t=o.length,a=n?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<a.length;l++)e[a.charCodeAt(l)]=l}var r=a.charAt(64);if(r){var s=o.indexOf(r);s!==-1&&(t=s)}return d(o,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(u,o,n){for(var t=[],a=0,e=0;e<o;e++)if(e%4){var l=n[u.charCodeAt(e-1)]<<e%4*2,r=n[u.charCodeAt(e)]>>>6-e%4*2,s=l|r;t[a>>>2]|=s<<24-a%4*8,a++}return v.create(t,a)}}(),y.enc.Base64url})},wgjA:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},whVF:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("lNSK"),p=S(i("1q3G"));function S(u){return u&&u.__esModule?u:{default:u}}function v(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function m(u,o){for(var n=0;n<o.length;n++){var t=o[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,o,n){return o&&m(u.prototype,o),n&&m(u,n),u}var d=function(){function u(){v(this,u),this.strm=new p.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.deflateInit)(this.strm,this.windowBits)}return f(u,[{key:"deflate",value:function(n){this.strm.input=n,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),a=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=[a],l=a.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 r=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);l+=r.length,e.push(r)}while(this.strm.avail_in>0);for(var s=new Uint8Array(l),c=0,h=0;h<e.length;h++)s.set(e[h],c),c+=e[h].length;a=s}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,a}}]),u}();D.default=d},wr5s:function(k,D,i){var y=i("IwbS"),p=y.extendShape,S=p({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(v,m){var f=m.cx,d=m.cy,u=Math.max(m.r0||0,0),o=Math.max(m.r,0),n=(o-u)*.5,t=u+n,a=m.startAngle,e=m.endAngle,l=m.clockwise,r=Math.cos(a),s=Math.sin(a),c=Math.cos(e),h=Math.sin(e),g=l?e-a<Math.PI*2:a-e<Math.PI*2;g&&(v.moveTo(r*u+f,s*u+d),v.arc(r*t+f,s*t+d,n,-Math.PI+a,a,!l)),v.arc(f,d,o,a,e,!l),v.moveTo(c*o+f,h*o+d),v.arc(c*t+f,h*t+d,n,e-Math.PI*2,e-Math.PI,!l),u!==0&&(v.arc(f,d,u,e,a,l),v.moveTo(r*u+f,h*u+d)),v.closePath()}});k.exports=S},wt3j:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("/IIm"),v=i("EMyp"),m=v.layoutCovers,f=y.extendComponentView({type:"brush",init:function(u,o){this.ecModel=u,this.api=o,this.model,(this._brushController=new S(o.getZr())).on("brush",p.bind(this._onBrush,this)).mount()},render:function(u){return this.model=u,d.apply(this,arguments)},updateTransform:function(u,o){return m(o),d.apply(this,arguments)},updateView:d,dispose:function(){this._brushController.dispose()},_onBrush:function(u,o){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(u,this.ecModel),(!o.isEnd||o.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:p.clone(u),$from:n}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:p.clone(u),$from:n})}});function d(u,o,n,t){(!t||t.$from!==u.id)&&this._brushController.setPanels(u.brushTargetManager.makePanelOpts(n)).enableBrush(u.brushOption).updateCovers(u.areas.slice())}k.exports=f},x3X8:function(k,D,i){var y=i("KxfA"),p=y.retrieveRawValue;function S(v,m){var f=v.mapDimension("defaultedLabel",!0),d=f.length;if(d===1)return p(v,m,f[0]);if(d){for(var u=[],o=0;o<f.length;o++){var n=p(v,m,f[o]);u.push(n)}return u.join(" ")}}D.getDefaultLabel=S},x54q:function(k,D,i){},x6Kt:function(k,D,i){var y=i("y+Vt"),p=i("VpOo"),S=i("nPnh"),v=S.subPixelOptimizeRect,m={},f=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(u,o){var n,t,a,e;this.subPixelOptimize?(v(m,o,this.style),n=m.x,t=m.y,a=m.width,e=m.height,m.r=o.r,o=m):(n=o.x,t=o.y,a=o.width,e=o.height),o.r?p.buildPath(u,o):u.rect(n,t,a,e),u.closePath();return}});k.exports=f},xGfz:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PlusSquareOutlined";var d=D.a=p.forwardRef(f)},xKMd:function(k,D){function i(p,S){this.getAllNames=function(){var v=S();return v.mapArray(v.getName)},this.containName=function(v){var m=S();return m.indexOfName(v)>=0},this.indexOfName=function(v){var m=p();return m.indexOfName(v)},this.getItemVisual=function(v,m){var f=p();return f.getItemVisual(v,m)}}var y=i;k.exports=y},xO64:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("8K/p"));function p(r){return r&&r.__esModule?r:{default:r}}function S(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(c){return typeof c}:S=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},S(r)}function v(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function m(r,s){for(var c=0;c<s.length;c++){var h=s[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(r,h.key,h)}}function f(r,s,c){return s&&m(r.prototype,s),c&&m(r,c),r}function d(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(s&&s.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),s&&u(r,s)}function u(r,s){return u=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},u(r,s)}function o(r){var s=a();return function(){var h=e(r),g;if(s){var A=e(this).constructor;g=Reflect.construct(h,arguments,A)}else g=h.apply(this,arguments);return n(this,g)}}function n(r,s){return s&&(S(s)==="object"||typeof s=="function")?s:t(r)}function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function a(){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(r){return!1}}function e(r){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},e(r)}var l=function(r){d(c,r);var s=o(c);function c(){return v(this,c),s.apply(this,arguments)}return f(c,[{key:"_pngRect",value:function(g,A,b,w,x,T,_){var E=this._readData(x);return E===null?!1:(T.imageRect(g,A,b,w,"image/png",E),!0)}},{key:"_basicRect",value:function(g,A,b,w,x,T,_,E){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=l},xOOu:function(k,D,i){(function(y,p,S){var v,v;/*!
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){k.exports=m()}(function(){return function m(f,d,u){function o(a,e){if(!d[a]){if(!f[a]){var l=typeof v=="function"&&v;if(!e&&l)return v(a,!0);if(n)return n(a,!0);var r=new Error("Cannot find module '"+a+"'");throw r.code="MODULE_NOT_FOUND",r}var s=d[a]={exports:{}};f[a][0].call(s.exports,function(c){var h=f[a][1][c];return o(h||c)},s,s.exports,m,f,d,u)}return d[a].exports}for(var n=typeof v=="function"&&v,t=0;t<u.length;t++)o(u[t]);return o}({1:[function(m,f,d){"use strict";var u=m("./utils"),o=m("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(t){for(var a,e,l,r,s,c,h,g=[],A=0,b=t.length,w=b,x=u.getTypeOf(t)!=="string";A<t.length;)w=b-A,l=x?(a=t[A++],e=A<b?t[A++]:0,A<b?t[A++]:0):(a=t.charCodeAt(A++),e=A<b?t.charCodeAt(A++):0,A<b?t.charCodeAt(A++):0),r=a>>2,s=(3&a)<<4|e>>4,c=1<w?(15&e)<<2|l>>6:64,h=2<w?63&l:64,g.push(n.charAt(r)+n.charAt(s)+n.charAt(c)+n.charAt(h));return g.join("")},d.decode=function(t){var a,e,l,r,s,c,h=0,g=0,A="data:";if(t.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var b,w=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===n.charAt(64)&&w--,t.charAt(t.length-2)===n.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=o.uint8array?new Uint8Array(0|w):new Array(0|w);h<t.length;)a=n.indexOf(t.charAt(h++))<<2|(r=n.indexOf(t.charAt(h++)))>>4,e=(15&r)<<4|(s=n.indexOf(t.charAt(h++)))>>2,l=(3&s)<<6|(c=n.indexOf(t.charAt(h++))),b[g++]=a,s!==64&&(b[g++]=e),c!==64&&(b[g++]=l);return b}},{"./support":30,"./utils":32}],2:[function(m,f,d){"use strict";var u=m("./external"),o=m("./stream/DataWorker"),n=m("./stream/Crc32Probe"),t=m("./stream/DataLengthProbe");function a(e,l,r,s,c){this.compressedSize=e,this.uncompressedSize=l,this.crc32=r,this.compression=s,this.compressedContent=c}a.prototype={getContentWorker:function(){var l=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),r=this;return l.on("end",function(){if(this.streamInfo.data_length!==r.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,l,r){return e.pipe(new n).pipe(new t("uncompressedSize")).pipe(l.compressWorker(r)).pipe(new t("compressedSize")).withStreamInfo("compression",l)},f.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,f,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,f,d){"use strict";var u=m("./utils"),o=function(){for(var n,t=[],a=0;a<256;a++){n=a;for(var e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;t[a]=n}return t}();f.exports=function(n,t){return n!==void 0&&n.length?u.getTypeOf(n)!=="string"?function(a,e,l,r){var s=o,c=r+l;a^=-1;for(var h=r;h<c;h++)a=a>>>8^s[255&(a^e[h])];return-1^a}(0|t,n,n.length,0):function(a,e,l,r){var s=o,c=r+l;a^=-1;for(var h=r;h<c;h++)a=a>>>8^s[255&(a^e.charCodeAt(h))];return-1^a}(0|t,n,n.length,0):0}},{"./utils":32}],5:[function(m,f,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,f,d){"use strict";var u=null;u=typeof Promise!="undefined"?Promise:m("lie"),f.exports={Promise:u}},{lie:37}],7:[function(m,f,d){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=m("pako"),n=m("./utils"),t=m("./stream/GenericWorker"),a=u?"uint8array":"array";function e(l,r){t.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=r,this.meta={}}d.magic="\b\0",n.inherits(e,t),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(a,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 o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(r){l.push({data:r,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,f,d){"use strict";function u(s,c){var h,g="";for(h=0;h<c;h++)g+=String.fromCharCode(255&s),s>>>=8;return g}function o(s,c,h,g,A,b){var w,x,T=s.file,_=s.compression,E=b!==a.utf8encode,C=n.transformTo("string",b(T.name)),I=n.transformTo("string",a.utf8encode(T.name)),O=T.comment,F=n.transformTo("string",b(O)),R=n.transformTo("string",a.utf8encode(O)),B=I.length!==T.name.length,P=R.length!==O.length,X="",M="",z="",W=T.dir,H=T.date,V={crc32:0,compressedSize:0,uncompressedSize:0};c&&!h||(V.crc32=s.crc32,V.compressedSize=s.compressedSize,V.uncompressedSize=s.uncompressedSize);var Q=0;c&&(Q|=8),E||!B&&!P||(Q|=2048);var G=0,ee=0;W&&(G|=16),A==="UNIX"?(ee=798,G|=function(se,re){var Ae=se;return se||(Ae=re?16893:33204),(65535&Ae)<<16}(T.unixPermissions,W)):(ee=20,G|=function(se){return 63&(se||0)}(T.dosPermissions)),w=H.getUTCHours(),w<<=6,w|=H.getUTCMinutes(),w<<=5,w|=H.getUTCSeconds()/2,x=H.getUTCFullYear()-1980,x<<=4,x|=H.getUTCMonth()+1,x<<=5,x|=H.getUTCDate(),B&&(M=u(1,1)+u(e(C),4)+I,X+="up"+u(M.length,2)+M),P&&(z=u(1,1)+u(e(F),4)+R,X+="uc"+u(z.length,2)+z);var q="";return q+=`
\0`,q+=u(Q,2),q+=_.magic,q+=u(w,2),q+=u(x,2),q+=u(V.crc32,4),q+=u(V.compressedSize,4),q+=u(V.uncompressedSize,4),q+=u(C.length,2),q+=u(X.length,2),{fileRecord:l.LOCAL_FILE_HEADER+q+C+X,dirRecord:l.CENTRAL_FILE_HEADER+u(ee,2)+q+u(F.length,2)+"\0\0\0\0"+u(G,4)+u(g,4)+C+X+F}}var n=m("../utils"),t=m("../stream/GenericWorker"),a=m("../utf8"),e=m("../crc32"),l=m("../signature");function r(s,c,h,g){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=h,this.encodeFileName=g,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(r,t),r.prototype.push=function(s){var c=s.meta.percent||0,h=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,t.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:h?(c+100*(h-g-1))/h:100}}))},r.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var c=this.streamFiles&&!s.file.dir;if(c){var h=o(s,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},r.prototype.closedSource=function(s){this.accumulate=!1;var c=this.streamFiles&&!s.file.dir,h=o(s,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)}(s),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},r.prototype.flush=function(){for(var s=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var h=this.bytesWritten-s,g=function(A,b,w,x,T){var _=n.transformTo("string",T(x));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(A,2)+u(A,2)+u(b,4)+u(w,4)+u(_.length,2)+_}(this.dirRecords.length,h,s,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},r.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},r.prototype.registerPrevious=function(s){this._sources.push(s);var c=this;return s.on("data",function(h){c.processChunk(h)}),s.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),s.on("error",function(h){c.error(h)}),this},r.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))},r.prototype.error=function(s){var c=this._sources;if(!t.prototype.error.call(this,s))return!1;for(var h=0;h<c.length;h++)try{c[h].error(s)}catch(g){}return!0},r.prototype.lock=function(){t.prototype.lock.call(this);for(var s=this._sources,c=0;c<s.length;c++)s[c].lock()},f.exports=r},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(m,f,d){"use strict";var u=m("../compressions"),o=m("./ZipFileWorker");d.generateWorker=function(n,t,a){var e=new o(t.streamFiles,a,t.platform,t.encodeFileName),l=0;try{n.forEach(function(r,s){l++;var c=function(b,w){var x=b||w,T=u[x];if(!T)throw new Error(x+" is not a valid compression method !");return T}(s.options.compression,t.compression),h=s.options.compressionOptions||t.compressionOptions||{},g=s.dir,A=s.date;s._compressWorker(c,h).withStreamInfo("file",{name:r,dir:g,date:A,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(r){e.error(r)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(m,f,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 o=new u;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(u.prototype=m("./object")).loadAsync=m("./load"),u.support=m("./support"),u.defaults=m("./defaults"),u.version="3.10.1",u.loadAsync=function(o,n){return new u().loadAsync(o,n)},u.external=m("./external"),f.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,f,d){"use strict";var u=m("./utils"),o=m("./external"),n=m("./utf8"),t=m("./zipEntries"),a=m("./stream/Crc32Probe"),e=m("./nodejsUtils");function l(r){return new o.Promise(function(s,c){var h=r.decompressed.getContentWorker().pipe(new a);h.on("error",function(g){c(g)}).on("end",function(){h.streamInfo.crc32!==r.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}f.exports=function(r,s){var c=this;return s=u.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),e.isNode&&e.isStream(r)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",r,!0,s.optimizedBinaryString,s.base64).then(function(h){var g=new t(s);return g.load(h),g}).then(function(h){var g=[o.Promise.resolve(h)],A=h.files;if(s.checkCRC32)for(var b=0;b<A.length;b++)g.push(l(A[b]));return o.Promise.all(g)}).then(function(h){for(var g=h.shift(),A=g.files,b=0;b<A.length;b++){var w=A[b],x=w.fileNameStr,T=u.resolve(w.fileNameStr);c.file(T,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:s.createFolders}),w.dir||(c.file(T).unsafeOriginalName=x)}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,f,d){"use strict";var u=m("../utils"),o=m("../stream/GenericWorker");function n(t,a){o.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(a)}u.inherits(n,o),n.prototype._bindStream=function(t){var a=this;(this._stream=t).pause(),t.on("data",function(e){a.push({data:e,meta:{percent:0}})}).on("error",function(e){a.isPaused?this.generatedError=e:a.error(e)}).on("end",function(){a.isPaused?a._upstreamEnded=!0:a.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},f.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,f,d){"use strict";var u=m("readable-stream").Readable;function o(n,t,a){u.call(this,t),this._helper=n;var e=this;n.on("data",function(l,r){e.push(l)||e._helper.pause(),a&&a(r)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}m("../utils").inherits(o,u),o.prototype._read=function(){this._helper.resume()},f.exports=o},{"../utils":32,"readable-stream":16}],14:[function(m,f,d){"use strict";f.exports={isNode:typeof y!="undefined",newBufferFrom:function(o,n){if(y.from&&y.from!==Uint8Array.from)return y.from(o,n);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new y(o,n)},allocBuffer:function(o){if(y.alloc)return y.alloc(o);var n=new y(o);return n.fill(0),n},isBuffer:function(o){return y.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(m,f,d){"use strict";function u(T,_,E){var C,I=n.getTypeOf(_),O=n.extend(E||{},e);O.date=O.date||new Date,O.compression!==null&&(O.compression=O.compression.toUpperCase()),typeof O.unixPermissions=="string"&&(O.unixPermissions=parseInt(O.unixPermissions,8)),O.unixPermissions&&16384&O.unixPermissions&&(O.dir=!0),O.dosPermissions&&16&O.dosPermissions&&(O.dir=!0),O.dir&&(T=A(T)),O.createFolders&&(C=g(T))&&b.call(this,C,!0);var F=I==="string"&&O.binary===!1&&O.base64===!1;E&&E.binary!==void 0||(O.binary=!F),(_ instanceof l&&_.uncompressedSize===0||O.dir||!_||_.length===0)&&(O.base64=!1,O.binary=!0,_="",O.compression="STORE",I="string");var R=null;R=_ instanceof l||_ instanceof t?_:c.isNode&&c.isStream(_)?new h(T,_):n.prepareContent(T,_,O.binary,O.optimizedBinaryString,O.base64);var B=new r(T,R,O);this.files[T]=B}var o=m("./utf8"),n=m("./utils"),t=m("./stream/GenericWorker"),a=m("./stream/StreamHelper"),e=m("./defaults"),l=m("./compressedObject"),r=m("./zipObject"),s=m("./generate"),c=m("./nodejsUtils"),h=m("./nodejs/NodejsStreamInputAdapter"),g=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var E=_.lastIndexOf("/");return 0<E?_.substring(0,E):""},A=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},b=function(_,E){return E=E!==void 0?E:e.createFolders,_=A(_),this.files[_]||u.call(this,_,null,{dir:!0,createFolders:E}),this.files[_]};function w(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var E,C,I;for(E in this.files)I=this.files[E],(C=E.slice(this.root.length,E.length))&&E.slice(0,this.root.length)===this.root&&_(C,I)},filter:function(_){var E=[];return this.forEach(function(C,I){_(C,I)&&E.push(I)}),E},file:function(_,E,C){if(arguments.length!==1)return _=this.root+_,u.call(this,_,E,C),this;if(w(_)){var I=_;return this.filter(function(F,R){return!R.dir&&I.test(F)})}var O=this.files[this.root+_];return O&&!O.dir?O:null},folder:function(_){if(!_)return this;if(w(_))return this.filter(function(O,F){return F.dir&&_.test(O)});var E=this.root+_,C=b.call(this,E),I=this.clone();return I.root=C.name,I},remove:function(_){_=this.root+_;var E=this.files[_];if(E||(_.slice(-1)!=="/"&&(_+="/"),E=this.files[_]),E&&!E.dir)delete this.files[_];else for(var C=this.filter(function(O,F){return F.name.slice(0,_.length)===_}),I=0;I<C.length;I++)delete this.files[C[I].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 E,C={};try{if((C=n.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");n.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var I=C.comment||this.comment||"";E=s.generateWorker(this,C,I)}catch(O){(E=new t("error")).error(O)}return new a(E,C.type||"string",C.mimeType)},generateAsync:function(_,E){return this.generateInternalStream(_).accumulate(E)},generateNodeStream:function(_,E){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(E)}};f.exports=x},{"./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,f,d){"use strict";f.exports=m("stream")},{stream:void 0}],17:[function(m,f,d){"use strict";var u=m("./DataReader");function o(n){u.call(this,n);for(var t=0;t<this.data.length;t++)n[t]=255&n[t]}m("../utils").inherits(o,u),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var t=n.charCodeAt(0),a=n.charCodeAt(1),e=n.charCodeAt(2),l=n.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===a&&this.data[r+2]===e&&this.data[r+3]===l)return r-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var t=n.charCodeAt(0),a=n.charCodeAt(1),e=n.charCodeAt(2),l=n.charCodeAt(3),r=this.readData(4);return t===r[0]&&a===r[1]&&e===r[2]&&l===r[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./DataReader":18}],18:[function(m,f,d){"use strict";var u=m("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.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 a,e=0;for(this.checkOffset(t),a=this.index+t-1;a>=this.index;a--)e=(e<<8)+this.byteAt(a);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))}},f.exports=o},{"../utils":32}],19:[function(m,f,d){"use strict";var u=m("./Uint8ArrayReader");function o(n){u.call(this,n)}m("../utils").inherits(o,u),o.prototype.readData=function(n){this.checkOffset(n);var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,f,d){"use strict";var u=m("./DataReader");function o(n){u.call(this,n)}m("../utils").inherits(o,u),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./DataReader":18}],21:[function(m,f,d){"use strict";var u=m("./ArrayReader");function o(n){u.call(this,n)}m("../utils").inherits(o,u),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(m,f,d){"use strict";var u=m("../utils"),o=m("../support"),n=m("./ArrayReader"),t=m("./StringReader"),a=m("./NodeBufferReader"),e=m("./Uint8ArrayReader");f.exports=function(l){var r=u.getTypeOf(l);return u.checkSupport(r),r!=="string"||o.uint8array?r==="nodebuffer"?new a(l):o.uint8array?new e(u.transformTo("uint8array",l)):new n(u.transformTo("array",l)):new t(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,f,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,f,d){"use strict";var u=m("./GenericWorker"),o=m("../utils");function n(t){u.call(this,"ConvertWorker to "+t),this.destType=t}o.inherits(n,u),n.prototype.processChunk=function(t){this.push({data:o.transformTo(this.destType,t.data),meta:t.meta})},f.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(m,f,d){"use strict";var u=m("./GenericWorker"),o=m("../crc32");function n(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(n,u),n.prototype.processChunk=function(t){this.streamInfo.crc32=o(t.data,this.streamInfo.crc32||0),this.push(t)},f.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,f,d){"use strict";var u=m("../utils"),o=m("./GenericWorker");function n(t){o.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}u.inherits(n,o),n.prototype.processChunk=function(t){if(t){var a=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=a+t.data.length}o.prototype.processChunk.call(this,t)},f.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(m,f,d){"use strict";var u=m("../utils"),o=m("./GenericWorker");function n(t){o.call(this,"DataWorker");var a=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){a.dataIsReady=!0,a.data=e,a.max=e&&e.length||0,a.type=u.getTypeOf(e),a.isPaused||a._tickAndRepeat()},function(e){a.error(e)})}u.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,a=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,a);break;case"uint8array":t=this.data.subarray(this.index,a);break;case"array":case"nodebuffer":t=this.data.slice(this.index,a)}return this.index=a,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},f.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(m,f,d){"use strict";function u(o){this.name=o||"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(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,t){return this._listeners[n].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,t){if(this._listeners[n])for(var a=0;a<this._listeners[n].length;a++)this._listeners[n][a].call(this,t)},pipe:function(n){return n.registerPrevious(this)},registerPrevious:function(n){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=n.streamInfo,this.mergeStreamInfo(),this.previous=n;var t=this;return n.on("data",function(a){t.processChunk(a)}),n.on("end",function(){t.end()}),n.on("error",function(a){t.error(a)}),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 n=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),n=!0),this.previous&&this.previous.resume(),!n},flush:function(){},processChunk:function(n){this.push(n)},withStreamInfo:function(n,t){return this.extraStreamInfo[n]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var n in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,n)&&(this.streamInfo[n]=this.extraStreamInfo[n])},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 n="Worker "+this.name;return this.previous?this.previous+" -> "+n:n}},f.exports=u},{}],29:[function(m,f,d){"use strict";var u=m("../utils"),o=m("./ConvertWorker"),n=m("./GenericWorker"),t=m("../base64"),a=m("../support"),e=m("../external"),l=null;if(a.nodestream)try{l=m("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function r(c,h){return new e.Promise(function(g,A){var b=[],w=c._internalType,x=c._outputType,T=c._mimeType;c.on("data",function(_,E){b.push(_),h&&h(E)}).on("error",function(_){b=[],A(_)}).on("end",function(){try{var _=function(E,C,I){switch(E){case"blob":return u.newBlob(u.transformTo("arraybuffer",C),I);case"base64":return t.encode(C);default:return u.transformTo(E,C)}}(x,function(E,C){var I,O=0,F=null,R=0;for(I=0;I<C.length;I++)R+=C[I].length;switch(E){case"string":return C.join("");case"array":return Array.prototype.concat.apply([],C);case"uint8array":for(F=new Uint8Array(R),I=0;I<C.length;I++)F.set(C[I],O),O+=C[I].length;return F;case"nodebuffer":return y.concat(C);default:throw new Error("concat : unsupported type '"+E+"'")}}(w,b),T);g(_)}catch(E){A(E)}b=[]}).resume()})}function s(c,h,g){var A=h;switch(h){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=h,this._mimeType=g,u.checkSupport(A),this._worker=c.pipe(new o(A)),c.lock()}catch(b){this._worker=new n("error"),this._worker.error(b)}}s.prototype={accumulate:function(h){return r(this,h)},on:function(h,g){var A=this;return h==="data"?this._worker.on(h,function(b){g.call(A,b.data,b.meta)}):this._worker.on(h,function(){u.delay(g,arguments,A)}),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)}},f.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(m,f,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(n){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),d.blob=o.getBlob("application/zip").size===0}catch(t){d.blob=!1}}}try{d.nodestream=!!m("readable-stream").Readable}catch(n){d.nodestream=!1}},{"readable-stream":16}],31:[function(m,f,d){"use strict";for(var u=m("./utils"),o=m("./support"),n=m("./nodejsUtils"),t=m("./stream/GenericWorker"),a=new Array(256),e=0;e<256;e++)a[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;a[254]=a[254]=1;function l(){t.call(this,"utf-8 decode"),this.leftOver=null}function r(){t.call(this,"utf-8 encode")}d.utf8encode=function(s){return o.nodebuffer?n.newBufferFrom(s,"utf-8"):function(c){var h,g,A,b,w,x=c.length,T=0;for(b=0;b<x;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<x&&(64512&(A=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(A-56320),b++),T+=g<128?1:g<2048?2:g<65536?3:4;for(h=o.uint8array?new Uint8Array(T):new Array(T),b=w=0;w<T;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<x&&(64512&(A=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(A-56320),b++),g<128?h[w++]=g:(g<2048?h[w++]=192|g>>>6:(g<65536?h[w++]=224|g>>>12:(h[w++]=240|g>>>18,h[w++]=128|g>>>12&63),h[w++]=128|g>>>6&63),h[w++]=128|63&g);return h}(s)},d.utf8decode=function(s){return o.nodebuffer?u.transformTo("nodebuffer",s).toString("utf-8"):function(c){var h,g,A,b,w=c.length,x=new Array(2*w);for(h=g=0;h<w;)if((A=c[h++])<128)x[g++]=A;else if(4<(b=a[A]))x[g++]=65533,h+=b-1;else{for(A&=b===2?31:b===3?15:7;1<b&&h<w;)A=A<<6|63&c[h++],b--;1<b?x[g++]=65533:A<65536?x[g++]=A:(A-=65536,x[g++]=55296|A>>10&1023,x[g++]=56320|1023&A)}return x.length!==g&&(x.subarray?x=x.subarray(0,g):x.length=g),u.applyFromCharCode(x)}(s=u.transformTo(o.uint8array?"uint8array":"array",s))},u.inherits(l,t),l.prototype.processChunk=function(s){var c=u.transformTo(o.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(o.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,w){var x;for((w=w||b.length)>b.length&&(w=b.length),x=w-1;0<=x&&(192&b[x])==128;)x--;return x<0||x===0?w:x+a[b[x]]>w?x:w}(c),A=c;g!==c.length&&(o.uint8array?(A=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(A=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:d.utf8decode(A),meta:s.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(r,t),r.prototype.processChunk=function(s){this.push({data:d.utf8encode(s.data),meta:s.meta})},d.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,f,d){"use strict";var u=m("./support"),o=m("./base64"),n=m("./nodejsUtils"),t=m("./external");function a(h){return h}function e(h,g){for(var A=0;A<h.length;++A)g[A]=255&h.charCodeAt(A);return g}m("setimmediate"),d.newBlob=function(h,g){d.checkSupport("blob");try{return new Blob([h],{type:g})}catch(b){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(h),A.getBlob(g)}catch(w){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(g,A,b){var w=[],x=0,T=g.length;if(T<=b)return String.fromCharCode.apply(null,g);for(;x<T;)A==="array"||A==="nodebuffer"?w.push(String.fromCharCode.apply(null,g.slice(x,Math.min(x+b,T)))):w.push(String.fromCharCode.apply(null,g.subarray(x,Math.min(x+b,T)))),x+=b;return w.join("")},stringifyByChar:function(g){for(var A="",b=0;b<g.length;b++)A+=String.fromCharCode(g[b]);return A},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,n.allocBuffer(1)).length===1}catch(h){return!1}}()}};function r(h){var g=65536,A=d.getTypeOf(h),b=!0;if(A==="uint8array"?b=l.applyCanBeUsed.uint8array:A==="nodebuffer"&&(b=l.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return l.stringifyByChunk(h,A,g)}catch(w){g=Math.floor(g/2)}return l.stringifyByChar(h)}function s(h,g){for(var A=0;A<h.length;A++)g[A]=h[A];return g}d.applyFromCharCode=r;var c={};c.string={string:a,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,n.allocBuffer(g.length))}},c.array={string:r,array:a,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return n.newBufferFrom(g)}},c.arraybuffer={string:function(g){return r(new Uint8Array(g))},array:function(g){return s(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:a,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return n.newBufferFrom(new Uint8Array(g))}},c.uint8array={string:r,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:a,nodebuffer:function(g){return n.newBufferFrom(g)}},c.nodebuffer={string:r,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return c.nodebuffer.uint8array(g).buffer},uint8array:function(g){return s(g,new Uint8Array(g.length))},nodebuffer:a},d.transformTo=function(h,g){if(g=g||"",!h)return g;d.checkSupport(h);var A=d.getTypeOf(g);return c[A][h](g)},d.resolve=function(h){for(var g=h.split("/"),A=[],b=0;b<g.length;b++){var w=g[b];w==="."||w===""&&b!==0&&b!==g.length-1||(w===".."?A.pop():A.push(w))}return A.join("/")},d.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":u.nodebuffer&&n.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,A,b="";for(A=0;A<(h||"").length;A++)b+="\\x"+((g=h.charCodeAt(A))<16?"0":"")+g.toString(16).toUpperCase();return b},d.delay=function(h,g,A){setImmediate(function(){h.apply(A||null,g||[])})},d.inherits=function(h,g){function A(){}A.prototype=g.prototype,h.prototype=new A},d.extend=function(){var h,g,A={};for(h=0;h<arguments.length;h++)for(g in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],g)&&A[g]===void 0&&(A[g]=arguments[h][g]);return A},d.prepareContent=function(h,g,A,b,w){return t.Promise.resolve(g).then(function(x){return u.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(T,_){var E=new FileReader;E.onload=function(C){T(C.target.result)},E.onerror=function(C){_(C.target.error)},E.readAsArrayBuffer(x)}):x}).then(function(x){var T=d.getTypeOf(x);return T?(T==="arraybuffer"?x=d.transformTo("uint8array",x):T==="string"&&(w?x=o.decode(x):A&&b!==!0&&(x=function(_){return e(_,u.uint8array?new Uint8Array(_.length):new Array(_.length))}(x))),x):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,f,d){"use strict";var u=m("./reader/readerFor"),o=m("./utils"),n=m("./signature"),t=m("./zipEntry"),a=m("./support");function e(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(r){if(!this.reader.readAndCheckSignature(r)){this.reader.index-=4;var s=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(s)+", expected "+o.pretty(r)+")")}},isSignature:function(r,s){var c=this.reader.index;this.reader.setIndex(r);var h=this.reader.readString(4)===s;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 r=this.reader.readData(this.zipCommentLength),s=a.uint8array?"uint8array":"array",c=o.transformTo(s,r);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 r,s,c,h=this.zip64EndOfCentralSize-44;0<h;)r=this.reader.readInt(2),s=this.reader.readInt(4),c=this.reader.readData(s),this.zip64ExtensibleData[r]={id:r,length:s,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 r,s;for(r=0;r<this.files.length;r++)s=this.files[r],this.reader.setIndex(s.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),s.readLocalPart(this.reader),s.handleUTF8(),s.processAttributes()},readCentralDir:function(){var r;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(r=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(r);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 r=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(r<0)throw this.isSignature(0,n.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(r);var s=r;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(r=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(r),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var h=s-c;if(0<h)this.isSignature(s,n.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(r){this.reader=u(r)},load:function(r){this.prepareReader(r),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},f.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(m,f,d){"use strict";var u=m("./reader/readerFor"),o=m("./utils"),n=m("./compressedObject"),t=m("./crc32"),a=m("./utf8"),e=m("./compressions"),l=m("./support");function r(s,c){this.options=s,this.loadOptions=c}r.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(A){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===A)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(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===o.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var h,g,A,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)h=c.readInt(2),g=c.readInt(2),A=c.readData(g),this.extraFields[h]={id:h,length:g,value:A};c.setIndex(b)},handleUTF8:function(){var c=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var g=o.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var b=o.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:a.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:a.utf8decode(h.readData(c.length-5))}return null}},f.exports=r},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(m,f,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 o=m("./stream/StreamHelper"),n=m("./stream/DataWorker"),t=m("./utf8"),a=m("./compressedObject"),e=m("./stream/GenericWorker");u.prototype={internalStream:function(h){var g=null,A="string";try{if(!h)throw new Error("No output type specified.");var b=(A=h.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),g=this._decompressWorker();var w=!this._dataBinary;w&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!w&&b&&(g=g.pipe(new t.Utf8DecodeWorker))}catch(x){(g=new e("error")).error(x)}return new o(g,A,"")},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 a&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new t.Utf8EncodeWorker)),a.createWorkerFrom(A,h,g)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof e?this._data:new n(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],r=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},s=0;s<l.length;s++)u.prototype[l[s]]=r;f.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(m,f,d){(function(u){"use strict";var o,n,t=u.MutationObserver||u.WebKitMutationObserver;if(t){var a=0,e=new t(c),l=u.document.createTextNode("");e.observe(l,{characterData:!0}),o=function(){l.data=a=++a%2}}else if(u.setImmediate||u.MessageChannel===void 0)o="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 r=new u.MessageChannel;r.port1.onmessage=c,o=function(){r.port2.postMessage(0)}}var s=[];function c(){var h,g;n=!0;for(var A=s.length;A;){for(g=s,s=[],h=-1;++h<A;)g[h]();A=s.length}n=!1}f.exports=function(h){s.push(h)!==1||n||o()}}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,f,d){"use strict";var u=m("immediate");function o(){}var n={},t=["REJECTED"],a=["FULFILLED"],e=["PENDING"];function l(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,A!==o&&h(this,A)}function r(A,b,w){this.promise=A,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function s(A,b,w){u(function(){var x;try{x=b(w)}catch(T){return n.reject(A,T)}x===A?n.reject(A,new TypeError("Cannot resolve promise with itself")):n.resolve(A,x)})}function c(A){var b=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof b=="function")return function(){b.apply(A,arguments)}}function h(A,b){var w=!1;function x(E){w||(w=!0,n.reject(A,E))}function T(E){w||(w=!0,n.resolve(A,E))}var _=g(function(){b(T,x)});_.status==="error"&&x(_.value)}function g(A,b){var w={};try{w.value=A(b),w.status="success"}catch(x){w.status="error",w.value=x}return w}(f.exports=l).prototype.finally=function(A){if(typeof A!="function")return this;var b=this.constructor;return this.then(function(w){return b.resolve(A()).then(function(){return w})},function(w){return b.resolve(A()).then(function(){throw w})})},l.prototype.catch=function(A){return this.then(null,A)},l.prototype.then=function(A,b){if(typeof A!="function"&&this.state===a||typeof b!="function"&&this.state===t)return this;var w=new this.constructor(o);return this.state!==e?s(w,this.state===a?A:b,this.outcome):this.queue.push(new r(w,A,b)),w},r.prototype.callFulfilled=function(A){n.resolve(this.promise,A)},r.prototype.otherCallFulfilled=function(A){s(this.promise,this.onFulfilled,A)},r.prototype.callRejected=function(A){n.reject(this.promise,A)},r.prototype.otherCallRejected=function(A){s(this.promise,this.onRejected,A)},n.resolve=function(A,b){var w=g(c,b);if(w.status==="error")return n.reject(A,w.value);var x=w.value;if(x)h(A,x);else{A.state=a,A.outcome=b;for(var T=-1,_=A.queue.length;++T<_;)A.queue[T].callFulfilled(b)}return A},n.reject=function(A,b){A.state=t,A.outcome=b;for(var w=-1,x=A.queue.length;++w<x;)A.queue[w].callRejected(b);return A},l.resolve=function(A){return A instanceof this?A:n.resolve(new this(o),A)},l.reject=function(A){var b=new this(o);return n.reject(b,A)},l.all=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=A.length,x=!1;if(!w)return this.resolve([]);for(var T=new Array(w),_=0,E=-1,C=new this(o);++E<w;)I(A[E],E);return C;function I(O,F){b.resolve(O).then(function(R){T[F]=R,++_!==w||x||(x=!0,n.resolve(C,T))},function(R){x||(x=!0,n.reject(C,R))})}},l.race=function(A){var b=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=A.length,x=!1;if(!w)return this.resolve([]);for(var T=-1,_=new this(o);++T<w;)E=A[T],b.resolve(E).then(function(C){x||(x=!0,n.resolve(_,C))},function(C){x||(x=!0,n.reject(_,C))});var E;return _}},{immediate:36}],38:[function(m,f,d){"use strict";var u={};(0,m("./lib/utils/common").assign)(u,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),f.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,f,d){"use strict";var u=m("./zlib/deflate"),o=m("./utils/common"),n=m("./utils/strings"),t=m("./zlib/messages"),a=m("./zlib/zstream"),e=Object.prototype.toString,l=0,r=-1,s=0,c=8;function h(A){if(!(this instanceof h))return new h(A);this.options=o.assign({level:r,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},A||{});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 a,this.strm.avail_out=0;var w=u.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(w!==l)throw new Error(t[w]);if(b.header&&u.deflateSetHeader(this.strm,b.header),b.dictionary){var x;if(x=typeof b.dictionary=="string"?n.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(w=u.deflateSetDictionary(this.strm,x))!==l)throw new Error(t[w]);this._dict_set=!0}}function g(A,b){var w=new h(b);if(w.push(A,!0),w.err)throw w.msg||t[w.err];return w.result}h.prototype.push=function(A,b){var w,x,T=this.strm,_=this.options.chunkSize;if(this.ended)return!1;x=b===~~b?b:b===!0?4:0,typeof A=="string"?T.input=n.string2buf(A):e.call(A)==="[object ArrayBuffer]"?T.input=new Uint8Array(A):T.input=A,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new o.Buf8(_),T.next_out=0,T.avail_out=_),(w=u.deflate(T,x))!==1&&w!==l)return this.onEnd(w),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(T.output,T.next_out))):this.onData(o.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&w!==1);return x===4?(w=u.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===l):x!==2||(this.onEnd(l),!(T.avail_out=0))},h.prototype.onData=function(A){this.chunks.push(A)},h.prototype.onEnd=function(A){A===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},d.Deflate=h,d.deflate=g,d.deflateRaw=function(A,b){return(b=b||{}).raw=!0,g(A,b)},d.gzip=function(A,b){return(b=b||{}).gzip=!0,g(A,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,f,d){"use strict";var u=m("./zlib/inflate"),o=m("./utils/common"),n=m("./utils/strings"),t=m("./zlib/constants"),a=m("./zlib/messages"),e=m("./zlib/zstream"),l=m("./zlib/gzheader"),r=Object.prototype.toString;function s(h){if(!(this instanceof s))return new s(h);this.options=o.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 A=u.inflateInit2(this.strm,g.windowBits);if(A!==t.Z_OK)throw new Error(a[A]);this.header=new l,u.inflateGetHeader(this.strm,this.header)}function c(h,g){var A=new s(g);if(A.push(h,!0),A.err)throw A.msg||a[A.err];return A.result}s.prototype.push=function(h,g){var A,b,w,x,T,_,E=this.strm,C=this.options.chunkSize,I=this.options.dictionary,O=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof h=="string"?E.input=n.binstring2buf(h):r.call(h)==="[object ArrayBuffer]"?E.input=new Uint8Array(h):E.input=h,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new o.Buf8(C),E.next_out=0,E.avail_out=C),(A=u.inflate(E,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&I&&(_=typeof I=="string"?n.string2buf(I):r.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,A=u.inflateSetDictionary(this.strm,_)),A===t.Z_BUF_ERROR&&O===!0&&(A=t.Z_OK,O=!1),A!==t.Z_STREAM_END&&A!==t.Z_OK)return this.onEnd(A),!(this.ended=!0);E.next_out&&(E.avail_out!==0&&A!==t.Z_STREAM_END&&(E.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=n.utf8border(E.output,E.next_out),x=E.next_out-w,T=n.buf2string(E.output,w),E.next_out=x,E.avail_out=C-x,x&&o.arraySet(E.output,E.output,w,x,0),this.onData(T)):this.onData(o.shrinkBuf(E.output,E.next_out)))),E.avail_in===0&&E.avail_out===0&&(O=!0)}while((0<E.avail_in||E.avail_out===0)&&A!==t.Z_STREAM_END);return A===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(A=u.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(E.avail_out=0))},s.prototype.onData=function(h){this.chunks.push(h)},s.prototype.onEnd=function(h){h===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},d.Inflate=s,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,f,d){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";d.assign=function(t){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var e=a.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,a){return t.length===a?t:t.subarray?t.subarray(0,a):(t.length=a,t)};var o={arraySet:function(a,e,l,r,s){if(e.subarray&&a.subarray)a.set(e.subarray(l,l+r),s);else for(var c=0;c<r;c++)a[s+c]=e[l+c]},flattenChunks:function(a){var e,l,r,s,c,h;for(e=r=0,l=a.length;e<l;e++)r+=a[e].length;for(h=new Uint8Array(r),e=s=0,l=a.length;e<l;e++)c=a[e],h.set(c,s),s+=c.length;return h}},n={arraySet:function(a,e,l,r,s){for(var c=0;c<r;c++)a[s+c]=e[l+c]},flattenChunks:function(a){return[].concat.apply([],a)}};d.setTyped=function(t){t?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,o)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,n))},d.setTyped(u)},{}],42:[function(m,f,d){"use strict";var u=m("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(l){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){n=!1}for(var t=new u.Buf8(256),a=0;a<256;a++)t[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function e(l,r){if(r<65537&&(l.subarray&&n||!l.subarray&&o))return String.fromCharCode.apply(null,u.shrinkBuf(l,r));for(var s="",c=0;c<r;c++)s+=String.fromCharCode(l[c]);return s}t[254]=t[254]=1,d.string2buf=function(l){var r,s,c,h,g,A=l.length,b=0;for(h=0;h<A;h++)(64512&(s=l.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=l.charCodeAt(h+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),h++),b+=s<128?1:s<2048?2:s<65536?3:4;for(r=new u.Buf8(b),h=g=0;g<b;h++)(64512&(s=l.charCodeAt(h)))==55296&&h+1<A&&(64512&(c=l.charCodeAt(h+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),h++),s<128?r[g++]=s:(s<2048?r[g++]=192|s>>>6:(s<65536?r[g++]=224|s>>>12:(r[g++]=240|s>>>18,r[g++]=128|s>>>12&63),r[g++]=128|s>>>6&63),r[g++]=128|63&s);return r},d.buf2binstring=function(l){return e(l,l.length)},d.binstring2buf=function(l){for(var r=new u.Buf8(l.length),s=0,c=r.length;s<c;s++)r[s]=l.charCodeAt(s);return r},d.buf2string=function(l,r){var s,c,h,g,A=r||l.length,b=new Array(2*A);for(s=c=0;s<A;)if((h=l[s++])<128)b[c++]=h;else if(4<(g=t[h]))b[c++]=65533,s+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&s<A;)h=h<<6|63&l[s++],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,r){var s;for((r=r||l.length)>l.length&&(r=l.length),s=r-1;0<=s&&(192&l[s])==128;)s--;return s<0||s===0?r:s+t[l[s]]>r?s:r}},{"./common":41}],43:[function(m,f,d){"use strict";f.exports=function(u,o,n,t){for(var a=65535&u|0,e=u>>>16&65535|0,l=0;n!==0;){for(n-=l=2e3<n?2e3:n;e=e+(a=a+o[t++]|0)|0,--l;);a%=65521,e%=65521}return a|e<<16|0}},{}],44:[function(m,f,d){"use strict";f.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,f,d){"use strict";var u=function(){for(var o,n=[],t=0;t<256;t++){o=t;for(var a=0;a<8;a++)o=1&o?3988292384^o>>>1:o>>>1;n[t]=o}return n}();f.exports=function(o,n,t,a){var e=u,l=a+t;o^=-1;for(var r=a;r<l;r++)o=o>>>8^e[255&(o^n[r])];return-1^o}},{}],46:[function(m,f,d){"use strict";var u,o=m("../utils/common"),n=m("./trees"),t=m("./adler32"),a=m("./crc32"),e=m("./messages"),l=0,r=4,s=0,c=-2,h=-1,g=4,A=2,b=8,w=9,x=286,T=30,_=19,E=2*x+1,C=15,I=3,O=258,F=O+I+1,R=42,B=113,P=1,X=2,M=3,z=4;function W(le,Xe){return le.msg=e[Xe],Xe}function H(le){return(le<<1)-(4<le?9:0)}function V(le){for(var Xe=le.length;0<=--Xe;)le[Xe]=0}function Q(le){var Xe=le.state,pe=Xe.pending;pe>le.avail_out&&(pe=le.avail_out),pe!==0&&(o.arraySet(le.output,Xe.pending_buf,Xe.pending_out,pe,le.next_out),le.next_out+=pe,Xe.pending_out+=pe,le.total_out+=pe,le.avail_out-=pe,Xe.pending-=pe,Xe.pending===0&&(Xe.pending_out=0))}function G(le,Xe){n._tr_flush_block(le,0<=le.block_start?le.block_start:-1,le.strstart-le.block_start,Xe),le.block_start=le.strstart,Q(le.strm)}function ee(le,Xe){le.pending_buf[le.pending++]=Xe}function q(le,Xe){le.pending_buf[le.pending++]=Xe>>>8&255,le.pending_buf[le.pending++]=255&Xe}function se(le,Xe){var pe,Z,Y=le.max_chain_length,ne=le.strstart,ce=le.prev_length,ye=le.nice_match,Ee=le.strstart>le.w_size-F?le.strstart-(le.w_size-F):0,Ce=le.window,ue=le.w_mask,ge=le.prev,Oe=le.strstart+O,Je=Ce[ne+ce-1],lt=Ce[ne+ce];le.prev_length>=le.good_match&&(Y>>=2),ye>le.lookahead&&(ye=le.lookahead);do if(Ce[(pe=Xe)+ce]===lt&&Ce[pe+ce-1]===Je&&Ce[pe]===Ce[ne]&&Ce[++pe]===Ce[ne+1]){ne+=2,pe++;do;while(Ce[++ne]===Ce[++pe]&&Ce[++ne]===Ce[++pe]&&Ce[++ne]===Ce[++pe]&&Ce[++ne]===Ce[++pe]&&Ce[++ne]===Ce[++pe]&&Ce[++ne]===Ce[++pe]&&Ce[++ne]===Ce[++pe]&&Ce[++ne]===Ce[++pe]&&ne<Oe);if(Z=O-(Oe-ne),ne=Oe-O,ce<Z){if(le.match_start=Xe,ye<=(ce=Z))break;Je=Ce[ne+ce-1],lt=Ce[ne+ce]}}while((Xe=ge[Xe&ue])>Ee&&--Y!=0);return ce<=le.lookahead?ce:le.lookahead}function re(le){var Xe,pe,Z,Y,ne,ce,ye,Ee,Ce,ue,ge=le.w_size;do{if(Y=le.window_size-le.lookahead-le.strstart,le.strstart>=ge+(ge-F)){for(o.arraySet(le.window,le.window,ge,ge,0),le.match_start-=ge,le.strstart-=ge,le.block_start-=ge,Xe=pe=le.hash_size;Z=le.head[--Xe],le.head[Xe]=ge<=Z?Z-ge:0,--pe;);for(Xe=pe=ge;Z=le.prev[--Xe],le.prev[Xe]=ge<=Z?Z-ge:0,--pe;);Y+=ge}if(le.strm.avail_in===0)break;if(ce=le.strm,ye=le.window,Ee=le.strstart+le.lookahead,Ce=Y,ue=void 0,ue=ce.avail_in,Ce<ue&&(ue=Ce),pe=ue===0?0:(ce.avail_in-=ue,o.arraySet(ye,ce.input,ce.next_in,ue,Ee),ce.state.wrap===1?ce.adler=t(ce.adler,ye,ue,Ee):ce.state.wrap===2&&(ce.adler=a(ce.adler,ye,ue,Ee)),ce.next_in+=ue,ce.total_in+=ue,ue),le.lookahead+=pe,le.lookahead+le.insert>=I)for(ne=le.strstart-le.insert,le.ins_h=le.window[ne],le.ins_h=(le.ins_h<<le.hash_shift^le.window[ne+1])&le.hash_mask;le.insert&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[ne+I-1])&le.hash_mask,le.prev[ne&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=ne,ne++,le.insert--,!(le.lookahead+le.insert<I)););}while(le.lookahead<F&&le.strm.avail_in!==0)}function Ae(le,Xe){for(var pe,Z;;){if(le.lookahead<F){if(re(le),le.lookahead<F&&Xe===l)return P;if(le.lookahead===0)break}if(pe=0,le.lookahead>=I&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+I-1])&le.hash_mask,pe=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart),pe!==0&&le.strstart-pe<=le.w_size-F&&(le.match_length=se(le,pe)),le.match_length>=I)if(Z=n._tr_tally(le,le.strstart-le.match_start,le.match_length-I),le.lookahead-=le.match_length,le.match_length<=le.max_lazy_match&&le.lookahead>=I){for(le.match_length--;le.strstart++,le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+I-1])&le.hash_mask,pe=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart,--le.match_length!=0;);le.strstart++}else le.strstart+=le.match_length,le.match_length=0,le.ins_h=le.window[le.strstart],le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+1])&le.hash_mask;else Z=n._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++;if(Z&&(G(le,!1),le.strm.avail_out===0))return P}return le.insert=le.strstart<I-1?le.strstart:I-1,Xe===r?(G(le,!0),le.strm.avail_out===0?M:z):le.last_lit&&(G(le,!1),le.strm.avail_out===0)?P:X}function Te(le,Xe){for(var pe,Z,Y;;){if(le.lookahead<F){if(re(le),le.lookahead<F&&Xe===l)return P;if(le.lookahead===0)break}if(pe=0,le.lookahead>=I&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+I-1])&le.hash_mask,pe=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart),le.prev_length=le.match_length,le.prev_match=le.match_start,le.match_length=I-1,pe!==0&&le.prev_length<le.max_lazy_match&&le.strstart-pe<=le.w_size-F&&(le.match_length=se(le,pe),le.match_length<=5&&(le.strategy===1||le.match_length===I&&4096<le.strstart-le.match_start)&&(le.match_length=I-1)),le.prev_length>=I&&le.match_length<=le.prev_length){for(Y=le.strstart+le.lookahead-I,Z=n._tr_tally(le,le.strstart-1-le.prev_match,le.prev_length-I),le.lookahead-=le.prev_length-1,le.prev_length-=2;++le.strstart<=Y&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+I-1])&le.hash_mask,pe=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart),--le.prev_length!=0;);if(le.match_available=0,le.match_length=I-1,le.strstart++,Z&&(G(le,!1),le.strm.avail_out===0))return P}else if(le.match_available){if((Z=n._tr_tally(le,0,le.window[le.strstart-1]))&&G(le,!1),le.strstart++,le.lookahead--,le.strm.avail_out===0)return P}else le.match_available=1,le.strstart++,le.lookahead--}return le.match_available&&(Z=n._tr_tally(le,0,le.window[le.strstart-1]),le.match_available=0),le.insert=le.strstart<I-1?le.strstart:I-1,Xe===r?(G(le,!0),le.strm.avail_out===0?M:z):le.last_lit&&(G(le,!1),le.strm.avail_out===0)?P:X}function Re(le,Xe,pe,Z,Y){this.good_length=le,this.max_lazy=Xe,this.nice_length=pe,this.max_chain=Z,this.func=Y}function Ge(){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 o.Buf16(2*E),this.dyn_dtree=new o.Buf16(2*(2*T+1)),this.bl_tree=new o.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 o.Buf16(C+1),this.heap=new o.Buf16(2*x+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*x+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 Ue(le){var Xe;return le&&le.state?(le.total_in=le.total_out=0,le.data_type=A,(Xe=le.state).pending=0,Xe.pending_out=0,Xe.wrap<0&&(Xe.wrap=-Xe.wrap),Xe.status=Xe.wrap?R:B,le.adler=Xe.wrap===2?0:1,Xe.last_flush=l,n._tr_init(Xe),s):W(le,c)}function nt(le){var Xe=Ue(le);return Xe===s&&function(pe){pe.window_size=2*pe.w_size,V(pe.head),pe.max_lazy_match=u[pe.level].max_lazy,pe.good_match=u[pe.level].good_length,pe.nice_match=u[pe.level].nice_length,pe.max_chain_length=u[pe.level].max_chain,pe.strstart=0,pe.block_start=0,pe.lookahead=0,pe.insert=0,pe.match_length=pe.prev_length=I-1,pe.match_available=0,pe.ins_h=0}(le.state),Xe}function Le(le,Xe,pe,Z,Y,ne){if(!le)return c;var ce=1;if(Xe===h&&(Xe=6),Z<0?(ce=0,Z=-Z):15<Z&&(ce=2,Z-=16),Y<1||w<Y||pe!==b||Z<8||15<Z||Xe<0||9<Xe||ne<0||g<ne)return W(le,c);Z===8&&(Z=9);var ye=new Ge;return(le.state=ye).strm=le,ye.wrap=ce,ye.gzhead=null,ye.w_bits=Z,ye.w_size=1<<ye.w_bits,ye.w_mask=ye.w_size-1,ye.hash_bits=Y+7,ye.hash_size=1<<ye.hash_bits,ye.hash_mask=ye.hash_size-1,ye.hash_shift=~~((ye.hash_bits+I-1)/I),ye.window=new o.Buf8(2*ye.w_size),ye.head=new o.Buf16(ye.hash_size),ye.prev=new o.Buf16(ye.w_size),ye.lit_bufsize=1<<Y+6,ye.pending_buf_size=4*ye.lit_bufsize,ye.pending_buf=new o.Buf8(ye.pending_buf_size),ye.d_buf=1*ye.lit_bufsize,ye.l_buf=3*ye.lit_bufsize,ye.level=Xe,ye.strategy=ne,ye.method=pe,nt(le)}u=[new Re(0,0,0,0,function(le,Xe){var pe=65535;for(pe>le.pending_buf_size-5&&(pe=le.pending_buf_size-5);;){if(le.lookahead<=1){if(re(le),le.lookahead===0&&Xe===l)return P;if(le.lookahead===0)break}le.strstart+=le.lookahead,le.lookahead=0;var Z=le.block_start+pe;if((le.strstart===0||le.strstart>=Z)&&(le.lookahead=le.strstart-Z,le.strstart=Z,G(le,!1),le.strm.avail_out===0))return P;if(le.strstart-le.block_start>=le.w_size-F&&(G(le,!1),le.strm.avail_out===0))return P}return le.insert=0,Xe===r?(G(le,!0),le.strm.avail_out===0?M:z):(le.strstart>le.block_start&&(G(le,!1),le.strm.avail_out),P)}),new Re(4,4,8,4,Ae),new Re(4,5,16,8,Ae),new Re(4,6,32,32,Ae),new Re(4,4,16,16,Te),new Re(8,16,32,32,Te),new Re(8,16,128,128,Te),new Re(8,32,128,256,Te),new Re(32,128,258,1024,Te),new Re(32,258,258,4096,Te)],d.deflateInit=function(le,Xe){return Le(le,Xe,b,15,8,0)},d.deflateInit2=Le,d.deflateReset=nt,d.deflateResetKeep=Ue,d.deflateSetHeader=function(le,Xe){return le&&le.state?le.state.wrap!==2?c:(le.state.gzhead=Xe,s):c},d.deflate=function(le,Xe){var pe,Z,Y,ne;if(!le||!le.state||5<Xe||Xe<0)return le?W(le,c):c;if(Z=le.state,!le.output||!le.input&&le.avail_in!==0||Z.status===666&&Xe!==r)return W(le,le.avail_out===0?-5:c);if(Z.strm=le,pe=Z.last_flush,Z.last_flush=Xe,Z.status===R)if(Z.wrap===2)le.adler=0,ee(Z,31),ee(Z,139),ee(Z,8),Z.gzhead?(ee(Z,(Z.gzhead.text?1:0)+(Z.gzhead.hcrc?2:0)+(Z.gzhead.extra?4:0)+(Z.gzhead.name?8:0)+(Z.gzhead.comment?16:0)),ee(Z,255&Z.gzhead.time),ee(Z,Z.gzhead.time>>8&255),ee(Z,Z.gzhead.time>>16&255),ee(Z,Z.gzhead.time>>24&255),ee(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),ee(Z,255&Z.gzhead.os),Z.gzhead.extra&&Z.gzhead.extra.length&&(ee(Z,255&Z.gzhead.extra.length),ee(Z,Z.gzhead.extra.length>>8&255)),Z.gzhead.hcrc&&(le.adler=a(le.adler,Z.pending_buf,Z.pending,0)),Z.gzindex=0,Z.status=69):(ee(Z,0),ee(Z,0),ee(Z,0),ee(Z,0),ee(Z,0),ee(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),ee(Z,3),Z.status=B);else{var ce=b+(Z.w_bits-8<<4)<<8;ce|=(2<=Z.strategy||Z.level<2?0:Z.level<6?1:Z.level===6?2:3)<<6,Z.strstart!==0&&(ce|=32),ce+=31-ce%31,Z.status=B,q(Z,ce),Z.strstart!==0&&(q(Z,le.adler>>>16),q(Z,65535&le.adler)),le.adler=1}if(Z.status===69)if(Z.gzhead.extra){for(Y=Z.pending;Z.gzindex<(65535&Z.gzhead.extra.length)&&(Z.pending!==Z.pending_buf_size||(Z.gzhead.hcrc&&Z.pending>Y&&(le.adler=a(le.adler,Z.pending_buf,Z.pending-Y,Y)),Q(le),Y=Z.pending,Z.pending!==Z.pending_buf_size));)ee(Z,255&Z.gzhead.extra[Z.gzindex]),Z.gzindex++;Z.gzhead.hcrc&&Z.pending>Y&&(le.adler=a(le.adler,Z.pending_buf,Z.pending-Y,Y)),Z.gzindex===Z.gzhead.extra.length&&(Z.gzindex=0,Z.status=73)}else Z.status=73;if(Z.status===73)if(Z.gzhead.name){Y=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>Y&&(le.adler=a(le.adler,Z.pending_buf,Z.pending-Y,Y)),Q(le),Y=Z.pending,Z.pending===Z.pending_buf_size)){ne=1;break}ne=Z.gzindex<Z.gzhead.name.length?255&Z.gzhead.name.charCodeAt(Z.gzindex++):0,ee(Z,ne)}while(ne!==0);Z.gzhead.hcrc&&Z.pending>Y&&(le.adler=a(le.adler,Z.pending_buf,Z.pending-Y,Y)),ne===0&&(Z.gzindex=0,Z.status=91)}else Z.status=91;if(Z.status===91)if(Z.gzhead.comment){Y=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>Y&&(le.adler=a(le.adler,Z.pending_buf,Z.pending-Y,Y)),Q(le),Y=Z.pending,Z.pending===Z.pending_buf_size)){ne=1;break}ne=Z.gzindex<Z.gzhead.comment.length?255&Z.gzhead.comment.charCodeAt(Z.gzindex++):0,ee(Z,ne)}while(ne!==0);Z.gzhead.hcrc&&Z.pending>Y&&(le.adler=a(le.adler,Z.pending_buf,Z.pending-Y,Y)),ne===0&&(Z.status=103)}else Z.status=103;if(Z.status===103&&(Z.gzhead.hcrc?(Z.pending+2>Z.pending_buf_size&&Q(le),Z.pending+2<=Z.pending_buf_size&&(ee(Z,255&le.adler),ee(Z,le.adler>>8&255),le.adler=0,Z.status=B)):Z.status=B),Z.pending!==0){if(Q(le),le.avail_out===0)return Z.last_flush=-1,s}else if(le.avail_in===0&&H(Xe)<=H(pe)&&Xe!==r)return W(le,-5);if(Z.status===666&&le.avail_in!==0)return W(le,-5);if(le.avail_in!==0||Z.lookahead!==0||Xe!==l&&Z.status!==666){var ye=Z.strategy===2?function(Ee,Ce){for(var ue;;){if(Ee.lookahead===0&&(re(Ee),Ee.lookahead===0)){if(Ce===l)return P;break}if(Ee.match_length=0,ue=n._tr_tally(Ee,0,Ee.window[Ee.strstart]),Ee.lookahead--,Ee.strstart++,ue&&(G(Ee,!1),Ee.strm.avail_out===0))return P}return Ee.insert=0,Ce===r?(G(Ee,!0),Ee.strm.avail_out===0?M:z):Ee.last_lit&&(G(Ee,!1),Ee.strm.avail_out===0)?P:X}(Z,Xe):Z.strategy===3?function(Ee,Ce){for(var ue,ge,Oe,Je,lt=Ee.window;;){if(Ee.lookahead<=O){if(re(Ee),Ee.lookahead<=O&&Ce===l)return P;if(Ee.lookahead===0)break}if(Ee.match_length=0,Ee.lookahead>=I&&0<Ee.strstart&&(ge=lt[Oe=Ee.strstart-1])===lt[++Oe]&&ge===lt[++Oe]&&ge===lt[++Oe]){Je=Ee.strstart+O;do;while(ge===lt[++Oe]&&ge===lt[++Oe]&&ge===lt[++Oe]&&ge===lt[++Oe]&&ge===lt[++Oe]&&ge===lt[++Oe]&&ge===lt[++Oe]&&ge===lt[++Oe]&&Oe<Je);Ee.match_length=O-(Je-Oe),Ee.match_length>Ee.lookahead&&(Ee.match_length=Ee.lookahead)}if(Ee.match_length>=I?(ue=n._tr_tally(Ee,1,Ee.match_length-I),Ee.lookahead-=Ee.match_length,Ee.strstart+=Ee.match_length,Ee.match_length=0):(ue=n._tr_tally(Ee,0,Ee.window[Ee.strstart]),Ee.lookahead--,Ee.strstart++),ue&&(G(Ee,!1),Ee.strm.avail_out===0))return P}return Ee.insert=0,Ce===r?(G(Ee,!0),Ee.strm.avail_out===0?M:z):Ee.last_lit&&(G(Ee,!1),Ee.strm.avail_out===0)?P:X}(Z,Xe):u[Z.level].func(Z,Xe);if(ye!==M&&ye!==z||(Z.status=666),ye===P||ye===M)return le.avail_out===0&&(Z.last_flush=-1),s;if(ye===X&&(Xe===1?n._tr_align(Z):Xe!==5&&(n._tr_stored_block(Z,0,0,!1),Xe===3&&(V(Z.head),Z.lookahead===0&&(Z.strstart=0,Z.block_start=0,Z.insert=0))),Q(le),le.avail_out===0))return Z.last_flush=-1,s}return Xe!==r?s:Z.wrap<=0?1:(Z.wrap===2?(ee(Z,255&le.adler),ee(Z,le.adler>>8&255),ee(Z,le.adler>>16&255),ee(Z,le.adler>>24&255),ee(Z,255&le.total_in),ee(Z,le.total_in>>8&255),ee(Z,le.total_in>>16&255),ee(Z,le.total_in>>24&255)):(q(Z,le.adler>>>16),q(Z,65535&le.adler)),Q(le),0<Z.wrap&&(Z.wrap=-Z.wrap),Z.pending!==0?s:1)},d.deflateEnd=function(le){var Xe;return le&&le.state?(Xe=le.state.status)!==R&&Xe!==69&&Xe!==73&&Xe!==91&&Xe!==103&&Xe!==B&&Xe!==666?W(le,c):(le.state=null,Xe===B?W(le,-3):s):c},d.deflateSetDictionary=function(le,Xe){var pe,Z,Y,ne,ce,ye,Ee,Ce,ue=Xe.length;if(!le||!le.state)return c;if((ne=(pe=le.state).wrap)===2||ne===1&&pe.status!==R||pe.lookahead)return c;for(ne===1&&(le.adler=t(le.adler,Xe,ue,0)),pe.wrap=0,ue>=pe.w_size&&(ne===0&&(V(pe.head),pe.strstart=0,pe.block_start=0,pe.insert=0),Ce=new o.Buf8(pe.w_size),o.arraySet(Ce,Xe,ue-pe.w_size,pe.w_size,0),Xe=Ce,ue=pe.w_size),ce=le.avail_in,ye=le.next_in,Ee=le.input,le.avail_in=ue,le.next_in=0,le.input=Xe,re(pe);pe.lookahead>=I;){for(Z=pe.strstart,Y=pe.lookahead-(I-1);pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[Z+I-1])&pe.hash_mask,pe.prev[Z&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=Z,Z++,--Y;);pe.strstart=Z,pe.lookahead=I-1,re(pe)}return pe.strstart+=pe.lookahead,pe.block_start=pe.strstart,pe.insert=pe.lookahead,pe.lookahead=0,pe.match_length=pe.prev_length=I-1,pe.match_available=0,le.next_in=ye,le.input=Ee,le.avail_in=ce,pe.wrap=ne,s},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,f,d){"use strict";f.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,f,d){"use strict";f.exports=function(u,o){var n,t,a,e,l,r,s,c,h,g,A,b,w,x,T,_,E,C,I,O,F,R,B,P,X;n=u.state,t=u.next_in,P=u.input,a=t+(u.avail_in-5),e=u.next_out,X=u.output,l=e-(o-u.avail_out),r=e+(u.avail_out-257),s=n.dmax,c=n.wsize,h=n.whave,g=n.wnext,A=n.window,b=n.hold,w=n.bits,x=n.lencode,T=n.distcode,_=(1<<n.lenbits)-1,E=(1<<n.distbits)-1;e:do{w<15&&(b+=P[t++]<<w,w+=8,b+=P[t++]<<w,w+=8),C=x[b&_];t:for(;;){if(b>>>=I=C>>>24,w-=I,(I=C>>>16&255)===0)X[e++]=65535&C;else{if(!(16&I)){if((64&I)==0){C=x[(65535&C)+(b&(1<<I)-1)];continue t}if(32&I){n.mode=12;break e}u.msg="invalid literal/length code",n.mode=30;break e}O=65535&C,(I&=15)&&(w<I&&(b+=P[t++]<<w,w+=8),O+=b&(1<<I)-1,b>>>=I,w-=I),w<15&&(b+=P[t++]<<w,w+=8,b+=P[t++]<<w,w+=8),C=T[b&E];r:for(;;){if(b>>>=I=C>>>24,w-=I,!(16&(I=C>>>16&255))){if((64&I)==0){C=T[(65535&C)+(b&(1<<I)-1)];continue r}u.msg="invalid distance code",n.mode=30;break e}if(F=65535&C,w<(I&=15)&&(b+=P[t++]<<w,(w+=8)<I&&(b+=P[t++]<<w,w+=8)),s<(F+=b&(1<<I)-1)){u.msg="invalid distance too far back",n.mode=30;break e}if(b>>>=I,w-=I,(I=e-l)<F){if(h<(I=F-I)&&n.sane){u.msg="invalid distance too far back",n.mode=30;break e}if(B=A,(R=0)===g){if(R+=c-I,I<O){for(O-=I;X[e++]=A[R++],--I;);R=e-F,B=X}}else if(g<I){if(R+=c+g-I,(I-=g)<O){for(O-=I;X[e++]=A[R++],--I;);if(R=0,g<O){for(O-=I=g;X[e++]=A[R++],--I;);R=e-F,B=X}}}else if(R+=g-I,I<O){for(O-=I;X[e++]=A[R++],--I;);R=e-F,B=X}for(;2<O;)X[e++]=B[R++],X[e++]=B[R++],X[e++]=B[R++],O-=3;O&&(X[e++]=B[R++],1<O&&(X[e++]=B[R++]))}else{for(R=e-F;X[e++]=X[R++],X[e++]=X[R++],X[e++]=X[R++],2<(O-=3););O&&(X[e++]=X[R++],1<O&&(X[e++]=X[R++]))}break}}break}}while(t<a&&e<r);t-=O=w>>3,b&=(1<<(w-=O<<3))-1,u.next_in=t,u.next_out=e,u.avail_in=t<a?a-t+5:5-(t-a),u.avail_out=e<r?r-e+257:257-(e-r),n.hold=b,n.bits=w}},{}],49:[function(m,f,d){"use strict";var u=m("../utils/common"),o=m("./adler32"),n=m("./crc32"),t=m("./inffast"),a=m("./inftrees"),e=1,l=2,r=0,s=-2,c=1,h=852,g=592;function A(R){return(R>>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<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 w(R){var B;return R&&R.state?(B=R.state,R.total_in=R.total_out=B.total=0,R.msg="",B.wrap&&(R.adler=1&B.wrap),B.mode=c,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new u.Buf32(h),B.distcode=B.distdyn=new u.Buf32(g),B.sane=1,B.back=-1,r):s}function x(R){var B;return R&&R.state?((B=R.state).wsize=0,B.whave=0,B.wnext=0,w(R)):s}function T(R,B){var P,X;return R&&R.state?(X=R.state,B<0?(P=0,B=-B):(P=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?s:(X.window!==null&&X.wbits!==B&&(X.window=null),X.wrap=P,X.wbits=B,x(R))):s}function _(R,B){var P,X;return R?(X=new b,(R.state=X).window=null,(P=T(R,B))!==r&&(R.state=null),P):s}var E,C,I=!0;function O(R){if(I){var B;for(E=new u.Buf32(512),C=new u.Buf32(32),B=0;B<144;)R.lens[B++]=8;for(;B<256;)R.lens[B++]=9;for(;B<280;)R.lens[B++]=7;for(;B<288;)R.lens[B++]=8;for(a(e,R.lens,0,288,E,0,R.work,{bits:9}),B=0;B<32;)R.lens[B++]=5;a(l,R.lens,0,32,C,0,R.work,{bits:5}),I=!1}R.lencode=E,R.lenbits=9,R.distcode=C,R.distbits=5}function F(R,B,P,X){var M,z=R.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new u.Buf8(z.wsize)),X>=z.wsize?(u.arraySet(z.window,B,P-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(X<(M=z.wsize-z.wnext)&&(M=X),u.arraySet(z.window,B,P-X,M,z.wnext),(X-=M)?(u.arraySet(z.window,B,P-X,X,0),z.wnext=X,z.whave=z.wsize):(z.wnext+=M,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=M))),0}d.inflateReset=x,d.inflateReset2=T,d.inflateResetKeep=w,d.inflateInit=function(R){return _(R,15)},d.inflateInit2=_,d.inflate=function(R,B){var P,X,M,z,W,H,V,Q,G,ee,q,se,re,Ae,Te,Re,Ge,Ue,nt,Le,le,Xe,pe,Z,Y=0,ne=new u.Buf8(4),ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return s;(P=R.state).mode===12&&(P.mode=13),W=R.next_out,M=R.output,V=R.avail_out,z=R.next_in,X=R.input,H=R.avail_in,Q=P.hold,G=P.bits,ee=H,q=V,Xe=r;e:for(;;)switch(P.mode){case c:if(P.wrap===0){P.mode=13;break}for(;G<16;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if(2&P.wrap&&Q===35615){ne[P.check=0]=255&Q,ne[1]=Q>>>8&255,P.check=n(P.check,ne,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){R.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){R.msg="unknown compression method",P.mode=30;break}if(G-=4,le=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=le;else if(le>P.wbits){R.msg="invalid window size",P.mode=30;break}P.dmax=1<<le,R.adler=P.check=1,P.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if(P.flags=Q,(255&P.flags)!=8){R.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){R.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&(ne[0]=255&Q,ne[1]=Q>>>8&255,P.check=n(P.check,ne,2,0)),G=Q=0,P.mode=3;case 3:for(;G<32;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}P.head&&(P.head.time=Q),512&P.flags&&(ne[0]=255&Q,ne[1]=Q>>>8&255,ne[2]=Q>>>16&255,ne[3]=Q>>>24&255,P.check=n(P.check,ne,4,0)),G=Q=0,P.mode=4;case 4:for(;G<16;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&(ne[0]=255&Q,ne[1]=Q>>>8&255,P.check=n(P.check,ne,2,0)),G=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;G<16;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&(ne[0]=255&Q,ne[1]=Q>>>8&255,P.check=n(P.check,ne,2,0)),G=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(H<(se=P.length)&&(se=H),se&&(P.head&&(le=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),u.arraySet(P.head.extra,X,z,se,le)),512&P.flags&&(P.check=n(P.check,X,se,z)),H-=se,z+=se,P.length-=se),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(H===0)break e;for(se=0;le=X[z+se++],P.head&&le&&P.length<65536&&(P.head.name+=String.fromCharCode(le)),le&&se<H;);if(512&P.flags&&(P.check=n(P.check,X,se,z)),H-=se,z+=se,le)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(H===0)break e;for(se=0;le=X[z+se++],P.head&&le&&P.length<65536&&(P.head.comment+=String.fromCharCode(le)),le&&se<H;);if(512&P.flags&&(P.check=n(P.check,X,se,z)),H-=se,z+=se,le)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;G<16;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if(Q!==(65535&P.check)){R.msg="header crc mismatch",P.mode=30;break}G=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),R.adler=P.check=0,P.mode=12;break;case 10:for(;G<32;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}R.adler=P.check=A(Q),G=Q=0,P.mode=11;case 11:if(P.havedict===0)return R.next_out=W,R.avail_out=V,R.next_in=z,R.avail_in=H,P.hold=Q,P.bits=G,2;R.adler=P.check=1,P.mode=12;case 12:if(B===5||B===6)break e;case 13:if(P.last){Q>>>=7&G,G-=7&G,P.mode=27;break}for(;G<3;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}switch(P.last=1&Q,G-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(O(P),P.mode=20,B!==6)break;Q>>>=2,G-=2;break e;case 2:P.mode=17;break;case 3:R.msg="invalid block type",P.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){R.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,G=Q=0,P.mode=15,B===6)break e;case 15:P.mode=16;case 16:if(se=P.length){if(H<se&&(se=H),V<se&&(se=V),se===0)break e;u.arraySet(M,X,z,se,W),H-=se,z+=se,V-=se,W+=se,P.length-=se;break}P.mode=12;break;case 17:for(;G<14;){if(H===0)break e;H--,Q+=X[z++]<<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){R.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(H===0)break e;H--,Q+=X[z++]<<G,G+=8}P.lens[ce[P.have++]]=7&Q,Q>>>=3,G-=3}for(;P.have<19;)P.lens[ce[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,pe={bits:P.lenbits},Xe=a(0,P.lens,0,19,P.lencode,0,P.work,pe),P.lenbits=pe.bits,Xe){R.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(;Re=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Ge=65535&Y,!((Te=Y>>>24)<=G);){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if(Ge<16)Q>>>=Te,G-=Te,P.lens[P.have++]=Ge;else{if(Ge===16){for(Z=Te+2;G<Z;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if(Q>>>=Te,G-=Te,P.have===0){R.msg="invalid bit length repeat",P.mode=30;break}le=P.lens[P.have-1],se=3+(3&Q),Q>>>=2,G-=2}else if(Ge===17){for(Z=Te+3;G<Z;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}G-=Te,le=0,se=3+(7&(Q>>>=Te)),Q>>>=3,G-=3}else{for(Z=Te+7;G<Z;){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}G-=Te,le=0,se=11+(127&(Q>>>=Te)),Q>>>=7,G-=7}if(P.have+se>P.nlen+P.ndist){R.msg="invalid bit length repeat",P.mode=30;break}for(;se--;)P.lens[P.have++]=le}}if(P.mode===30)break;if(P.lens[256]===0){R.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,pe={bits:P.lenbits},Xe=a(e,P.lens,0,P.nlen,P.lencode,0,P.work,pe),P.lenbits=pe.bits,Xe){R.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,pe={bits:P.distbits},Xe=a(l,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,pe),P.distbits=pe.bits,Xe){R.msg="invalid distances set",P.mode=30;break}if(P.mode=20,B===6)break e;case 20:P.mode=21;case 21:if(6<=H&&258<=V){R.next_out=W,R.avail_out=V,R.next_in=z,R.avail_in=H,P.hold=Q,P.bits=G,t(R,q),W=R.next_out,M=R.output,V=R.avail_out,z=R.next_in,X=R.input,H=R.avail_in,Q=P.hold,G=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Re=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Ge=65535&Y,!((Te=Y>>>24)<=G);){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if(Re&&(240&Re)==0){for(Ue=Te,nt=Re,Le=Ge;Re=(Y=P.lencode[Le+((Q&(1<<Ue+nt)-1)>>Ue)])>>>16&255,Ge=65535&Y,!(Ue+(Te=Y>>>24)<=G);){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}Q>>>=Ue,G-=Ue,P.back+=Ue}if(Q>>>=Te,G-=Te,P.back+=Te,P.length=Ge,Re===0){P.mode=26;break}if(32&Re){P.back=-1,P.mode=12;break}if(64&Re){R.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Re,P.mode=22;case 22:if(P.extra){for(Z=P.extra;G<Z;){if(H===0)break e;H--,Q+=X[z++]<<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(;Re=(Y=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,Ge=65535&Y,!((Te=Y>>>24)<=G);){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if((240&Re)==0){for(Ue=Te,nt=Re,Le=Ge;Re=(Y=P.distcode[Le+((Q&(1<<Ue+nt)-1)>>Ue)])>>>16&255,Ge=65535&Y,!(Ue+(Te=Y>>>24)<=G);){if(H===0)break e;H--,Q+=X[z++]<<G,G+=8}Q>>>=Ue,G-=Ue,P.back+=Ue}if(Q>>>=Te,G-=Te,P.back+=Te,64&Re){R.msg="invalid distance code",P.mode=30;break}P.offset=Ge,P.extra=15&Re,P.mode=24;case 24:if(P.extra){for(Z=P.extra;G<Z;){if(H===0)break e;H--,Q+=X[z++]<<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){R.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(V===0)break e;if(se=q-V,P.offset>se){if((se=P.offset-se)>P.whave&&P.sane){R.msg="invalid distance too far back",P.mode=30;break}re=se>P.wnext?(se-=P.wnext,P.wsize-se):P.wnext-se,se>P.length&&(se=P.length),Ae=P.window}else Ae=M,re=W-P.offset,se=P.length;for(V<se&&(se=V),V-=se,P.length-=se;M[W++]=Ae[re++],--se;);P.length===0&&(P.mode=21);break;case 26:if(V===0)break e;M[W++]=P.length,V--,P.mode=21;break;case 27:if(P.wrap){for(;G<32;){if(H===0)break e;H--,Q|=X[z++]<<G,G+=8}if(q-=V,R.total_out+=q,P.total+=q,q&&(R.adler=P.check=P.flags?n(P.check,M,q,W-q):o(P.check,M,q,W-q)),q=V,(P.flags?Q:A(Q))!==P.check){R.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(H===0)break e;H--,Q+=X[z++]<<G,G+=8}if(Q!==(4294967295&P.total)){R.msg="incorrect length check",P.mode=30;break}G=Q=0}P.mode=29;case 29:Xe=1;break e;case 30:Xe=-3;break e;case 31:return-4;case 32:default:return s}return R.next_out=W,R.avail_out=V,R.next_in=z,R.avail_in=H,P.hold=Q,P.bits=G,(P.wsize||q!==R.avail_out&&P.mode<30&&(P.mode<27||B!==4))&&F(R,R.output,R.next_out,q-R.avail_out)?(P.mode=31,-4):(ee-=R.avail_in,q-=R.avail_out,R.total_in+=ee,R.total_out+=q,P.total+=q,P.wrap&&q&&(R.adler=P.check=P.flags?n(P.check,M,q,R.next_out-q):o(P.check,M,q,R.next_out-q)),R.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(ee==0&&q===0||B===4)&&Xe===r&&(Xe=-5),Xe)},d.inflateEnd=function(R){if(!R||!R.state)return s;var B=R.state;return B.window&&(B.window=null),R.state=null,r},d.inflateGetHeader=function(R,B){var P;return R&&R.state?(2&(P=R.state).wrap)==0?s:((P.head=B).done=!1,r):s},d.inflateSetDictionary=function(R,B){var P,X=B.length;return R&&R.state?(P=R.state).wrap!==0&&P.mode!==11?s:P.mode===11&&o(1,B,X,0)!==P.check?-3:F(R,B,X,X)?(P.mode=31,-4):(P.havedict=1,r):s},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,f,d){"use strict";var u=m("../utils/common"),o=[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],n=[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],a=[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];f.exports=function(e,l,r,s,c,h,g,A){var b,w,x,T,_,E,C,I,O,F=A.bits,R=0,B=0,P=0,X=0,M=0,z=0,W=0,H=0,V=0,Q=0,G=null,ee=0,q=new u.Buf16(16),se=new u.Buf16(16),re=null,Ae=0;for(R=0;R<=15;R++)q[R]=0;for(B=0;B<s;B++)q[l[r+B]]++;for(M=F,X=15;1<=X&&q[X]===0;X--);if(X<M&&(M=X),X===0)return c[h++]=20971520,c[h++]=20971520,A.bits=1,0;for(P=1;P<X&&q[P]===0;P++);for(M<P&&(M=P),R=H=1;R<=15;R++)if(H<<=1,(H-=q[R])<0)return-1;if(0<H&&(e===0||X!==1))return-1;for(se[1]=0,R=1;R<15;R++)se[R+1]=se[R]+q[R];for(B=0;B<s;B++)l[r+B]!==0&&(g[se[l[r+B]]++]=B);if(E=e===0?(G=re=g,19):e===1?(G=o,ee-=257,re=n,Ae-=257,256):(G=t,re=a,-1),R=P,_=h,W=B=Q=0,x=-1,T=(V=1<<(z=M))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(C=R-W,O=g[B]<E?(I=0,g[B]):g[B]>E?(I=re[Ae+g[B]],G[ee+g[B]]):(I=96,0),b=1<<R-W,P=w=1<<z;c[_+(Q>>W)+(w-=b)]=C<<24|I<<16|O|0,w!==0;);for(b=1<<R-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,B++,--q[R]==0){if(R===X)break;R=l[r+g[B]]}if(M<R&&(Q&T)!==x){for(W===0&&(W=M),_+=P,H=1<<(z=R-W);z+W<X&&!((H-=q[z+W])<=0);)z++,H<<=1;if(V+=1<<z,e===1&&852<V||e===2&&592<V)return 1;c[x=Q&T]=M<<24|z<<16|_-h|0}}return Q!==0&&(c[_+Q]=R-W<<24|64<<16|0),A.bits=M,0}},{"../utils/common":41}],51:[function(m,f,d){"use strict";f.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,f,d){"use strict";var u=m("../utils/common"),o=0,n=1;function t(Y){for(var ne=Y.length;0<=--ne;)Y[ne]=0}var a=0,e=29,l=256,r=l+1+e,s=30,c=19,h=2*r+1,g=15,A=16,b=7,w=256,x=16,T=17,_=18,E=[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],C=[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],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(r+2));t(F);var R=new Array(2*s);t(R);var B=new Array(512);t(B);var P=new Array(256);t(P);var X=new Array(e);t(X);var M,z,W,H=new Array(s);function V(Y,ne,ce,ye,Ee){this.static_tree=Y,this.extra_bits=ne,this.extra_base=ce,this.elems=ye,this.max_length=Ee,this.has_stree=Y&&Y.length}function Q(Y,ne){this.dyn_tree=Y,this.max_code=0,this.stat_desc=ne}function G(Y){return Y<256?B[Y]:B[256+(Y>>>7)]}function ee(Y,ne){Y.pending_buf[Y.pending++]=255&ne,Y.pending_buf[Y.pending++]=ne>>>8&255}function q(Y,ne,ce){Y.bi_valid>A-ce?(Y.bi_buf|=ne<<Y.bi_valid&65535,ee(Y,Y.bi_buf),Y.bi_buf=ne>>A-Y.bi_valid,Y.bi_valid+=ce-A):(Y.bi_buf|=ne<<Y.bi_valid&65535,Y.bi_valid+=ce)}function se(Y,ne,ce){q(Y,ce[2*ne],ce[2*ne+1])}function re(Y,ne){for(var ce=0;ce|=1&Y,Y>>>=1,ce<<=1,0<--ne;);return ce>>>1}function Ae(Y,ne,ce){var ye,Ee,Ce=new Array(g+1),ue=0;for(ye=1;ye<=g;ye++)Ce[ye]=ue=ue+ce[ye-1]<<1;for(Ee=0;Ee<=ne;Ee++){var ge=Y[2*Ee+1];ge!==0&&(Y[2*Ee]=re(Ce[ge]++,ge))}}function Te(Y){var ne;for(ne=0;ne<r;ne++)Y.dyn_ltree[2*ne]=0;for(ne=0;ne<s;ne++)Y.dyn_dtree[2*ne]=0;for(ne=0;ne<c;ne++)Y.bl_tree[2*ne]=0;Y.dyn_ltree[2*w]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Re(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 Ge(Y,ne,ce,ye){var Ee=2*ne,Ce=2*ce;return Y[Ee]<Y[Ce]||Y[Ee]===Y[Ce]&&ye[ne]<=ye[ce]}function Ue(Y,ne,ce){for(var ye=Y.heap[ce],Ee=ce<<1;Ee<=Y.heap_len&&(Ee<Y.heap_len&&Ge(ne,Y.heap[Ee+1],Y.heap[Ee],Y.depth)&&Ee++,!Ge(ne,ye,Y.heap[Ee],Y.depth));)Y.heap[ce]=Y.heap[Ee],ce=Ee,Ee<<=1;Y.heap[ce]=ye}function nt(Y,ne,ce){var ye,Ee,Ce,ue,ge=0;if(Y.last_lit!==0)for(;ye=Y.pending_buf[Y.d_buf+2*ge]<<8|Y.pending_buf[Y.d_buf+2*ge+1],Ee=Y.pending_buf[Y.l_buf+ge],ge++,ye===0?se(Y,Ee,ne):(se(Y,(Ce=P[Ee])+l+1,ne),(ue=E[Ce])!==0&&q(Y,Ee-=X[Ce],ue),se(Y,Ce=G(--ye),ce),(ue=C[Ce])!==0&&q(Y,ye-=H[Ce],ue)),ge<Y.last_lit;);se(Y,w,ne)}function Le(Y,ne){var ce,ye,Ee,Ce=ne.dyn_tree,ue=ne.stat_desc.static_tree,ge=ne.stat_desc.has_stree,Oe=ne.stat_desc.elems,Je=-1;for(Y.heap_len=0,Y.heap_max=h,ce=0;ce<Oe;ce++)Ce[2*ce]!==0?(Y.heap[++Y.heap_len]=Je=ce,Y.depth[ce]=0):Ce[2*ce+1]=0;for(;Y.heap_len<2;)Ce[2*(Ee=Y.heap[++Y.heap_len]=Je<2?++Je:0)]=1,Y.depth[Ee]=0,Y.opt_len--,ge&&(Y.static_len-=ue[2*Ee+1]);for(ne.max_code=Je,ce=Y.heap_len>>1;1<=ce;ce--)Ue(Y,Ce,ce);for(Ee=Oe;ce=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Ue(Y,Ce,1),ye=Y.heap[1],Y.heap[--Y.heap_max]=ce,Y.heap[--Y.heap_max]=ye,Ce[2*Ee]=Ce[2*ce]+Ce[2*ye],Y.depth[Ee]=(Y.depth[ce]>=Y.depth[ye]?Y.depth[ce]:Y.depth[ye])+1,Ce[2*ce+1]=Ce[2*ye+1]=Ee,Y.heap[1]=Ee++,Ue(Y,Ce,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(lt,tt){var ke,st,Ve,Ot,Ut,ir,lr=tt.dyn_tree,Sr=tt.max_code,mt=tt.stat_desc.static_tree,or=tt.stat_desc.has_stree,et=tt.stat_desc.extra_bits,ur=tt.stat_desc.extra_base,qr=tt.stat_desc.max_length,Fe=0;for(Ot=0;Ot<=g;Ot++)lt.bl_count[Ot]=0;for(lr[2*lt.heap[lt.heap_max]+1]=0,ke=lt.heap_max+1;ke<h;ke++)qr<(Ot=lr[2*lr[2*(st=lt.heap[ke])+1]+1]+1)&&(Ot=qr,Fe++),lr[2*st+1]=Ot,Sr<st||(lt.bl_count[Ot]++,Ut=0,ur<=st&&(Ut=et[st-ur]),ir=lr[2*st],lt.opt_len+=ir*(Ot+Ut),or&&(lt.static_len+=ir*(mt[2*st+1]+Ut)));if(Fe!==0){do{for(Ot=qr-1;lt.bl_count[Ot]===0;)Ot--;lt.bl_count[Ot]--,lt.bl_count[Ot+1]+=2,lt.bl_count[qr]--,Fe-=2}while(0<Fe);for(Ot=qr;Ot!==0;Ot--)for(st=lt.bl_count[Ot];st!==0;)Sr<(Ve=lt.heap[--ke])||(lr[2*Ve+1]!==Ot&&(lt.opt_len+=(Ot-lr[2*Ve+1])*lr[2*Ve],lr[2*Ve+1]=Ot),st--)}}(Y,ne),Ae(Ce,Je,Y.bl_count)}function le(Y,ne,ce){var ye,Ee,Ce=-1,ue=ne[1],ge=0,Oe=7,Je=4;for(ue===0&&(Oe=138,Je=3),ne[2*(ce+1)+1]=65535,ye=0;ye<=ce;ye++)Ee=ue,ue=ne[2*(ye+1)+1],++ge<Oe&&Ee===ue||(ge<Je?Y.bl_tree[2*Ee]+=ge:Ee!==0?(Ee!==Ce&&Y.bl_tree[2*Ee]++,Y.bl_tree[2*x]++):ge<=10?Y.bl_tree[2*T]++:Y.bl_tree[2*_]++,Ce=Ee,Je=(ge=0)===ue?(Oe=138,3):Ee===ue?(Oe=6,3):(Oe=7,4))}function Xe(Y,ne,ce){var ye,Ee,Ce=-1,ue=ne[1],ge=0,Oe=7,Je=4;for(ue===0&&(Oe=138,Je=3),ye=0;ye<=ce;ye++)if(Ee=ue,ue=ne[2*(ye+1)+1],!(++ge<Oe&&Ee===ue)){if(ge<Je)for(;se(Y,Ee,Y.bl_tree),--ge!=0;);else Ee!==0?(Ee!==Ce&&(se(Y,Ee,Y.bl_tree),ge--),se(Y,x,Y.bl_tree),q(Y,ge-3,2)):ge<=10?(se(Y,T,Y.bl_tree),q(Y,ge-3,3)):(se(Y,_,Y.bl_tree),q(Y,ge-11,7));Ce=Ee,Je=(ge=0)===ue?(Oe=138,3):Ee===ue?(Oe=6,3):(Oe=7,4)}}t(H);var pe=!1;function Z(Y,ne,ce,ye){q(Y,(a<<1)+(ye?1:0),3),function(Ee,Ce,ue,ge){Re(Ee),ge&&(ee(Ee,ue),ee(Ee,~ue)),u.arraySet(Ee.pending_buf,Ee.window,Ce,ue,Ee.pending),Ee.pending+=ue}(Y,ne,ce,!0)}d._tr_init=function(Y){pe||(function(){var ne,ce,ye,Ee,Ce,ue=new Array(g+1);for(Ee=ye=0;Ee<e-1;Ee++)for(X[Ee]=ye,ne=0;ne<1<<E[Ee];ne++)P[ye++]=Ee;for(P[ye-1]=Ee,Ee=Ce=0;Ee<16;Ee++)for(H[Ee]=Ce,ne=0;ne<1<<C[Ee];ne++)B[Ce++]=Ee;for(Ce>>=7;Ee<s;Ee++)for(H[Ee]=Ce<<7,ne=0;ne<1<<C[Ee]-7;ne++)B[256+Ce++]=Ee;for(ce=0;ce<=g;ce++)ue[ce]=0;for(ne=0;ne<=143;)F[2*ne+1]=8,ne++,ue[8]++;for(;ne<=255;)F[2*ne+1]=9,ne++,ue[9]++;for(;ne<=279;)F[2*ne+1]=7,ne++,ue[7]++;for(;ne<=287;)F[2*ne+1]=8,ne++,ue[8]++;for(Ae(F,r+1,ue),ne=0;ne<s;ne++)R[2*ne+1]=5,R[2*ne]=re(ne,5);M=new V(F,E,l+1,r,g),z=new V(R,C,0,s,g),W=new V(new Array(0),I,0,c,b)}(),pe=!0),Y.l_desc=new Q(Y.dyn_ltree,M),Y.d_desc=new Q(Y.dyn_dtree,z),Y.bl_desc=new Q(Y.bl_tree,W),Y.bi_buf=0,Y.bi_valid=0,Te(Y)},d._tr_stored_block=Z,d._tr_flush_block=function(Y,ne,ce,ye){var Ee,Ce,ue=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(ge){var Oe,Je=4093624447;for(Oe=0;Oe<=31;Oe++,Je>>>=1)if(1&Je&&ge.dyn_ltree[2*Oe]!==0)return o;if(ge.dyn_ltree[18]!==0||ge.dyn_ltree[20]!==0||ge.dyn_ltree[26]!==0)return n;for(Oe=32;Oe<l;Oe++)if(ge.dyn_ltree[2*Oe]!==0)return n;return o}(Y)),Le(Y,Y.l_desc),Le(Y,Y.d_desc),ue=function(ge){var Oe;for(le(ge,ge.dyn_ltree,ge.l_desc.max_code),le(ge,ge.dyn_dtree,ge.d_desc.max_code),Le(ge,ge.bl_desc),Oe=c-1;3<=Oe&&ge.bl_tree[2*O[Oe]+1]===0;Oe--);return ge.opt_len+=3*(Oe+1)+5+5+4,Oe}(Y),Ee=Y.opt_len+3+7>>>3,(Ce=Y.static_len+3+7>>>3)<=Ee&&(Ee=Ce)):Ee=Ce=ce+5,ce+4<=Ee&&ne!==-1?Z(Y,ne,ce,ye):Y.strategy===4||Ce===Ee?(q(Y,2+(ye?1:0),3),nt(Y,F,R)):(q(Y,4+(ye?1:0),3),function(ge,Oe,Je,lt){var tt;for(q(ge,Oe-257,5),q(ge,Je-1,5),q(ge,lt-4,4),tt=0;tt<lt;tt++)q(ge,ge.bl_tree[2*O[tt]+1],3);Xe(ge,ge.dyn_ltree,Oe-1),Xe(ge,ge.dyn_dtree,Je-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,ue+1),nt(Y,Y.dyn_ltree,Y.dyn_dtree)),Te(Y),ye&&Re(Y)},d._tr_tally=function(Y,ne,ce){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=ne>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&ne,Y.pending_buf[Y.l_buf+Y.last_lit]=255&ce,Y.last_lit++,ne===0?Y.dyn_ltree[2*ce]++:(Y.matches++,ne--,Y.dyn_ltree[2*(P[ce]+l+1)]++,Y.dyn_dtree[2*G(ne)]++),Y.last_lit===Y.lit_bufsize-1},d._tr_align=function(Y){q(Y,2,3),se(Y,w,F),function(ne){ne.bi_valid===16?(ee(ne,ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0):8<=ne.bi_valid&&(ne.pending_buf[ne.pending++]=255&ne.bi_buf,ne.bi_buf>>=8,ne.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(m,f,d){"use strict";f.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,f,d){(function(u){!function(o,n){"use strict";if(!o.setImmediate){var t,a,e,l,r=1,s={},c=!1,h=o.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(o);g=g&&g.setTimeout?g:o,t={}.toString.call(o.process)==="[object process]"?function(x){S.nextTick(function(){b(x)})}:function(){if(o.postMessage&&!o.importScripts){var x=!0,T=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=T,x}}()?(l="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),function(x){o.postMessage(l+x,"*")}):o.MessageChannel?((e=new MessageChannel).port1.onmessage=function(x){b(x.data)},function(x){e.port2.postMessage(x)}):h&&"onreadystatechange"in h.createElement("script")?(a=h.documentElement,function(x){var T=h.createElement("script");T.onreadystatechange=function(){b(x),T.onreadystatechange=null,a.removeChild(T),T=null},a.appendChild(T)}):function(x){setTimeout(b,0,x)},g.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var T=new Array(arguments.length-1),_=0;_<T.length;_++)T[_]=arguments[_+1];var E={callback:x,args:T};return s[r]=E,t(r),r++},g.clearImmediate=A}function A(x){delete s[x]}function b(x){if(c)setTimeout(b,0,x);else{var T=s[x];if(T){c=!0;try{!function(_){var E=_.callback,C=_.args;switch(C.length){case 0:E();break;case 1:E(C[0]);break;case 2:E(C[0],C[1]);break;case 3:E(C[0],C[1],C[2]);break;default:E.apply(n,C)}}(T)}finally{A(x),c=!1}}}}function w(x){x.source===o&&typeof x.data=="string"&&x.data.indexOf(l)===0&&b(+x.data.slice(l.length))}}(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,i("HDXh").Buffer,i("yLpj"),i("Q2Ig"))},xRUu:function(k,D,i){i("hJvP"),i("hFmY"),i("sAZ8")},xSIq:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.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"};D.default=y},xSat:function(k,D){var i={axisPointer:1,tooltip:1,brush:1};function y(p,S,v){var m=S.getComponentByElement(p.topTarget),f=m&&m.coordinateSystem;return m&&m!==v&&!i[m.mainType]&&f&&f.model!==v}D.onIrrelevantElement=y},xTNl:function(k,D){var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]};k.exports=y},xYSL:function(k,D){function i(y,p){return y.has(p)}k.exports=i},xb2K:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("5yev")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="RedoOutlined";var n=v.forwardRef(o);D.default=n},xiyX:function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("nkfE"),v=i("ICMv"),m=p.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),f={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(o,n){return n.type||(n.data?"category":"value")}y.merge(m.prototype,v),S("single",m,d,f);var u=m;k.exports=u},xlC8:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(p,S,v,m){for(var f=p&65535|0,d=p>>>16&65535|0,u=0;v!==0;){u=v>2e3?2e3:v,v-=u;do f=f+S[m++]|0,d=d+f|0;while(--u);f%=65521,d%=65521}return f|d<<16|0}},xvlK:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="PlusOutlined";var d=D.a=p.forwardRef(f)},xzDV:function(k,D,i){},"y+Vt":function(k,D,i){var y=i("Gev7"),p=i("bYtY"),S=i("IMiH"),v=i("2DNl"),m=i("3C/r"),f=m.prototype.getCanvasPattern,d=Math.abs,u=new S(!0);function o(t){y.call(this,t),this.path=null}o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,e){var l=this.style,r=this.path||u,s=l.hasStroke(),c=l.hasFill(),h=l.fill,g=l.stroke,A=c&&!!h.colorStops,b=s&&!!g.colorStops,w=c&&!!h.image,x=s&&!!g.image;if(l.bind(a,this,e),this.setTransform(a),this.__dirty){var T;A&&(T=T||this.getBoundingRect(),this._fillGradient=l.getGradient(a,h,T)),b&&(T=T||this.getBoundingRect(),this._strokeGradient=l.getGradient(a,g,T))}A?a.fillStyle=this._fillGradient:w&&(a.fillStyle=f.call(h,a)),b?a.strokeStyle=this._strokeGradient:x&&(a.strokeStyle=f.call(g,a));var _=l.lineDash,E=l.lineDashOffset,C=!!a.setLineDash,I=this.getGlobalScale();if(r.setScale(I[0],I[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!C&&s?(r.beginPath(a),_&&!C&&(r.setLineDash(_),r.setLineDashOffset(E)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),c)if(l.fillOpacity!=null){var O=a.globalAlpha;a.globalAlpha=l.fillOpacity*l.opacity,r.fill(a),a.globalAlpha=O}else r.fill(a);if(_&&C&&(a.setLineDash(_),a.lineDashOffset=E),s)if(l.strokeOpacity!=null){var O=a.globalAlpha;a.globalAlpha=l.strokeOpacity*l.opacity,r.stroke(a),a.globalAlpha=O}else r.stroke(a);_&&C&&a.setLineDash([]),l.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,e,l){},createPathProxy:function(){this.path=new S},getBoundingRect:function(){var a=this._rect,e=this.style,l=!a;if(l){var r=this.path;r||(r=this.path=new S),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),a=r.getBoundingRect()}if(this._rect=a,e.hasStroke()){var s=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||l){s.copy(a);var c=e.lineWidth,h=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),h>1e-10&&(s.width+=c/h,s.height+=c/h,s.x-=c/h/2,s.y-=c/h/2)}return s}return a},contain:function(a,e){var l=this.transformCoordToLocal(a,e),r=this.getBoundingRect(),s=this.style;if(a=l[0],e=l[1],r.contain(a,e)){var c=this.path.data;if(s.hasStroke()){var h=s.lineWidth,g=s.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(s.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),v.containStroke(c,h/g,a,e)))return!0}if(s.hasFill())return v.contain(c,a,e)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,e){a==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,a,e)},setShape:function(a,e){var l=this.shape;if(l){if(p.isObject(a))for(var r in a)a.hasOwnProperty(r)&&(l[r]=a[r]);else l[a]=e;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&d(a[0]-1)>1e-10&&d(a[3]-1)>1e-10?Math.sqrt(d(a[0]*a[3]-a[2]*a[1])):1}},o.extend=function(t){var a=function(r){o.call(this,r),t.style&&this.style.extendFrom(t.style,!1);var s=t.shape;if(s){this.shape=this.shape||{};var c=this.shape;for(var h in s)!c.hasOwnProperty(h)&&s.hasOwnProperty(h)&&(c[h]=s[h])}t.init&&t.init.call(this,r)};p.inherits(a,o);for(var e in t)e!=="style"&&e!=="shape"&&(a.prototype[e]=t[e]);return a},p.inherits(o,y);var n=o;k.exports=n},"y+lR":function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("z35g");function v(f){S.call(this,f)}v.prototype={constructor:v,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(f){var d=this.getAxis("x"),u=this.getAxis("y");return d.contain(d.toLocalCoord(f[0]))&&u.contain(u.toLocalCoord(f[1]))},containData:function(f){return this.getAxis("x").containData(f[0])&&this.getAxis("y").containData(f[1])},dataToPoint:function(f,d,u){var o=this.getAxis("x"),n=this.getAxis("y");return u=u||[],u[0]=o.toGlobalCoord(o.dataToCoord(f[0])),u[1]=n.toGlobalCoord(n.dataToCoord(f[1])),u},clampData:function(f,d){var u=this.getAxis("x").scale,o=this.getAxis("y").scale,n=u.getExtent(),t=o.getExtent(),a=u.parse(f[0]),e=o.parse(f[1]);return d=d||[],d[0]=Math.min(Math.max(Math.min(n[0],n[1]),a),Math.max(n[0],n[1])),d[1]=Math.min(Math.max(Math.min(t[0],t[1]),e),Math.max(t[0],t[1])),d},pointToData:function(f,d){var u=this.getAxis("x"),o=this.getAxis("y");return d=d||[],d[0]=u.coordToData(u.toLocalCoord(f[0])),d[1]=o.coordToData(o.toLocalCoord(f[1])),d},getOtherAxis:function(f){return this.getAxis(f.dim==="x"?"y":"x")},getArea:function(){var f=this.getAxis("x").getGlobalExtent(),d=this.getAxis("y").getGlobalExtent(),u=Math.min(f[0],f[1]),o=Math.min(d[0],d[1]),n=Math.max(f[0],f[1])-u,t=Math.max(d[0],d[1])-o,a=new p(u,o,n,t);return a}},y.inherits(v,S);var m=v;k.exports=m},"y0+3":function(k,D,i){"use strict";i.d(D,"a",function(){return t}),i.d(D,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},S={cssFloat:1,styleFloat:1,float:1};function v(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function m(l,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return l.offsetHeight;if(r==="width")return l.offsetWidth}return r in p||(p[r]=y.test(r)),p[r]?parseFloat(s)||0:s}function f(l,r){var s=arguments.length,c=v(l);return r=S[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,s===1?c:m(l,r,c[r]||l.style[r])}function d(l,r,s){var c=arguments.length;if(r=S[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,c===3)return typeof s=="number"&&y.test(r)&&(s="".concat(s,"px")),l.style[r]=s,s;for(var h in r)r.hasOwnProperty(h)&&d(l,h,r[h]);return v(l)}function u(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function o(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function n(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),r=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:r}}function t(){var l=document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight;return{width:l,height:r}}function a(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(l){var r=l.getBoundingClientRect(),s=document.documentElement;return{left:r.left+(window.pageXOffset||s.scrollLeft)-(s.clientLeft||document.body.clientLeft||0),top:r.top+(window.pageYOffset||s.scrollTop)-(s.clientTop||document.body.clientTop||0)}}},y1pI:function(k,D,i){var y=i("ljhN");function p(S,v){for(var m=S.length;m--;)if(y(S[m][0],v))return m;return-1}k.exports=p},y23F:function(k,D){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}i.prototype={constructor:i,_dragStart:function(v){for(var m=v.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=v.offsetX,this._y=v.offsetY,this.dispatchToElement(y(m,v),"dragstart",v.event))},_drag:function(v){var m=this._draggingTarget;if(m){var f=v.offsetX,d=v.offsetY,u=f-this._x,o=d-this._y;this._x=f,this._y=d,m.drift(u,o,v),this.dispatchToElement(y(m,v),"drag",v.event);var n=this.findHover(f,d,m).target,t=this._dropTarget;this._dropTarget=n,m!==n&&(t&&n!==t&&this.dispatchToElement(y(t,v),"dragleave",v.event),n&&n!==t&&this.dispatchToElement(y(n,v),"dragenter",v.event))}},_dragEnd:function(v){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(y(m,v),"dragend",v.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,v),"drop",v.event),this._draggingTarget=null,this._dropTarget=null}};function y(S,v){return{target:S,topTarget:v&&v.topTarget}}var p=i;k.exports=p},y2l5:function(k,D,i){var y=i("MwEJ"),p=i("T4UG"),S=p.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(v,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var v=this.option.progressive;return v==null?this.option.large?5e3:this.get("progressive"):v},getProgressiveThreshold:function(){var v=this.option.progressiveThreshold;return v==null?this.option.large?1e4:this.get("progressiveThreshold"):v},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});k.exports=S},y3Kf:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="UpOutlined";var d=D.a=p.forwardRef(f)},y3NT:function(k,D,i){var y=i("OELB"),p=y.parsePercent,S=i("bYtY"),v=Math.PI/180;function m(u,o,n,t){o.eachSeriesByType(u,function(a){var e=a.get("center"),l=a.get("radius");S.isArray(l)||(l=[0,l]),S.isArray(e)||(e=[e,e]);var r=n.getWidth(),s=n.getHeight(),c=Math.min(r,s),h=p(e[0],r),g=p(e[1],s),A=p(l[0],c/2),b=p(l[1],c/2),w=-a.get("startAngle")*v,x=a.get("minAngle")*v,T=a.getData().tree.root,_=a.getViewRoot(),E=_.depth,C=a.get("sort");C!=null&&f(_,C);var I=0;S.each(_.children,function(G){!isNaN(G.getValue())&&I++});var O=_.getValue(),F=Math.PI/(O||I)*2,R=_.depth>0,B=_.height-(R?-1:1),P=(b-A)/(B||1),X=a.get("clockwise"),M=a.get("stillShowZeroSum"),z=X?1:-1,W=function(G,ee){if(!G)return;var q=ee;if(G!==T){var se=G.getValue(),re=O===0&&M?F:se*F;re<x&&(re=x),q=ee+z*re;var Ae=G.depth-E-(R?-1:1),Te=A+P*Ae,Re=A+P*(Ae+1),Ge=G.getModel();Ge.get("r0")!=null&&(Te=p(Ge.get("r0"),c/2)),Ge.get("r")!=null&&(Re=p(Ge.get("r"),c/2)),G.setLayout({angle:re,startAngle:ee,endAngle:q,clockwise:X,cx:h,cy:g,r0:Te,r:Re})}if(G.children&&G.children.length){var Ue=0;S.each(G.children,function(nt){Ue+=W(nt,ee+Ue)})}return q-ee};if(R){var H=A,V=A+P,Q=Math.PI*2;T.setLayout({angle:Q,startAngle:w,endAngle:w+Q,clockwise:X,cx:h,cy:g,r0:H,r:V})}W(_,w)})}function f(u,o){var n=u.children||[];u.children=d(n,o),n.length&&S.each(u.children,function(t){f(t,o)})}function d(u,o){if(typeof o=="function")return u.sort(o);var n=o==="asc";return u.sort(function(t,a){var e=(t.getValue()-a.getValue())*(n?1:-1);return e===0?(t.dataIndex-a.dataIndex)*(n?-1:1):e})}k.exports=m},y3Yb:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("HBhm")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PaperClipOutlined";var n=v.forwardRef(o);D.default=n},"y4/Y":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("zTMp"),v=i("62sa");i("SKx+"),i("1LEl"),i("Sp2Z"),y.registerPreprocessor(function(m){if(m){(!m.axisPointer||m.axisPointer.length===0)&&(m.axisPointer={});var f=m.axisPointer.link;f&&!p.isArray(f)&&(m.axisPointer.link=[f])}}),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,function(m,f){m.getComponent("axisPointer").coordSysAxesInfo=S.collect(m,f)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},v)},y7Aq:function(k,D,i){var y=i("bYtY"),p=i("+TT/"),S=p.getLayoutRect;function v(f,d,u){var o=f.option,n=o.align;if(n!=null&&n!=="auto")return n;for(var t={width:d.getWidth(),height:d.getHeight()},a=o.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[a],r=[0,null,10],s={},c=0;c<3;c++)s[e[1-a][c]]=r[c],s[l[c]]=c===2?u[0]:o[l[c]];var h=[["x","width",3],["y","height",0]][a],g=S(s,t,o.padding);return l[(g.margin[h[2]]||0)+g[h[0]]+g[h[1]]*.5<t[h[1]]*.5?0:1]}function m(f,d){return y.each(f||[],function(u){u.dataIndex!=null&&(u.dataIndexInside=u.dataIndex,u.dataIndex=null),u.highlightKey="visualMap"+(d?d.componentIndex:"")}),f}D.getItemAlign=v,D.makeHighDownBatch=m},y8nQ:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("gwTy"),v=i.n(S),m=i("1GLa")},yEEn:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="ArrowDownOutlined";var d=D.a=p.forwardRef(f)},yGk4:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"Set");k.exports=S},yO87:function(k,D,i){var y=i("bYtY"),p=i("oVpE"),S=p.createSymbol,v=i("IwbS"),m=v.Group,f=i("OELB"),d=f.parsePercent,u=i("FBjb"),o=3;function n(r){return y.isArray(r)||(r=[+r,+r]),r}function t(r,s){var c=s.rippleEffectColor||s.color;r.eachChild(function(h){h.attr({z:s.z,zlevel:s.zlevel,style:{stroke:s.brushType==="stroke"?c:null,fill:s.brushType==="fill"?c:null}})})}function a(r,s){m.call(this);var c=new u(r,s),h=new m;this.add(c),this.add(h),h.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(r,s)}var e=a.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(r){for(var s=r.symbolType,c=r.color,h=this.childAt(1),g=0;g<o;g++){var A=S(s,-1,-1,2,2,c);A.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-g/o*r.period+r.effectOffset;A.animate("",!0).when(r.period,{scale:[r.rippleScale/2,r.rippleScale/2]}).delay(b).start(),A.animateStyle(!0).when(r.period,{opacity:0}).delay(b).start(),h.add(A)}t(h,r)},e.updateEffectAnimation=function(r){for(var s=this._effectCfg,c=this.childAt(1),h=["symbolType","period","rippleScale"],g=0;g<h.length;g++){var A=h[g];if(s[A]!==r[A]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}t(c,r)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(r,s){var c=r.hostModel;this.childAt(0).updateData(r,s);var h=this.childAt(1),g=r.getItemModel(s),A=r.getItemVisual(s,"symbol"),b=n(r.getItemVisual(s,"symbolSize")),w=r.getItemVisual(s,"color");h.attr("scale",b),h.traverse(function(F){F.attr({fill:w})});var x=g.getShallow("symbolOffset");if(x){var T=h.position;T[0]=d(x[0],b[0]),T[1]=d(x[1],b[1])}var _=r.getItemVisual(s,"symbolRotate");h.rotation=(_||0)*Math.PI/180||0;var E={};if(E.showEffectOn=c.get("showEffectOn"),E.rippleScale=g.get("rippleEffect.scale"),E.brushType=g.get("rippleEffect.brushType"),E.period=g.get("rippleEffect.period")*1e3,E.effectOffset=s/r.count(),E.z=g.getShallow("z")||0,E.zlevel=g.getShallow("zlevel")||0,E.symbolType=A,E.color=w,E.rippleEffectColor=g.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),E.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(E):this.startEffectAnimation(E),this._effectCfg=E;else{this._effectCfg=null,this.stopEffectAnimation();var C=this.childAt(0),I=function(){C.highlight(),E.showEffectOn!=="render"&&this.startEffectAnimation(E)},O=function(){C.downplay(),E.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",I,this).on("mouseout",O,this).on("emphasis",I,this).on("normal",O,this)}this._effectCfg=E},e.fadeOut=function(r){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),r&&r()},y.inherits(a,m);var l=a;k.exports=l},yS9w:function(k,D,i){var y=i("MEGo"),p=y.parseSVG,S=y.makeViewBoxTransform,v=i("4fz+"),m=i("x6Kt"),f=i("bYtY"),d=f.assert,u=f.createHashMap,o=i("mFDi"),n=i("4NO4"),t=n.makeInner,a=t(),e={load:function(r,s){var c=a(s).originRoot;if(c)return{root:c,boundingRect:a(s).boundingRect};var h=l(s);return a(s).originRoot=h.root,a(s).boundingRect=h.boundingRect,h},makeGraphic:function(r,s,c){var h=a(s),g=h.rootMap||(h.rootMap=u()),A=g.get(c);if(A)return A;var b=h.originRoot,w=h.boundingRect;return h.originRootHostKey?A=l(s,w).root:(h.originRootHostKey=c,A=b),g.set(c,A)},removeGraphic:function(r,s,c){var h=a(s),g=h.rootMap;g&&g.removeKey(c),c===h.originRootHostKey&&(h.originRootHostKey=null)}};function l(r,s){var c=r.svgXML,h,g;try{h=c&&p(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},g=h.root,d(g!=null)}catch(_){throw new Error(`Invalid svg format
`+_.message)}var A=h.width,b=h.height,w=h.viewBoxRect;if(s||(s=A==null||b==null?g.getBoundingRect():new o(0,0,0,0),A!=null&&(s.width=A),b!=null&&(s.height=b)),w){var x=S(w,s.width,s.height),T=g;g=new v,g.add(T),T.scale=x.scale,T.position=x.position}return g.setClipPath(new m({shape:s.plain()})),{root:g,boundingRect:s}}k.exports=e},yWXo:function(k,D,i){var y=i("IwbS"),p=i("oVpE"),S=p.createSymbol,v=i("OS9S"),m=4,f=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(n,t){var a=t.points,e=t.size,l=this.symbolProxy,r=l.shape,s=n.getContext?n.getContext():n,c=s&&e[0]<m;if(c)return;for(var h=0;h<a.length;){var g=a[h++],A=a[h++];if(isNaN(g)||isNaN(A))continue;if(this.softClipShape&&!this.softClipShape.contain(g,A))continue;r.x=g-e[0]/2,r.y=A-e[1]/2,r.width=e[0],r.height=e[1],l.buildPath(n,r,!0)}},afterBrush:function(n){var t=this.shape,a=t.points,e=t.size,l=e[0]<m;if(!l)return;this.setTransform(n);for(var r=0;r<a.length;){var s=a[r++],c=a[r++];if(isNaN(s)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(s,c))continue;n.fillRect(s-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(n)},findDataIndex:function(n,t){for(var a=this.shape,e=a.points,l=a.size,r=Math.max(l[0],4),s=Math.max(l[1],4),c=e.length/2-1;c>=0;c--){var h=c*2,g=e[h]-r/2,A=e[h+1]-s/2;if(n>=g&&t>=A&&n<=g+r&&t<=A+s)return c}return-1}});function d(){this.group=new y.Group}var u=d.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(n,t){this.group.removeAll();var a=new f({rectHover:!0,cursor:"default"});a.setShape({points:n.getLayout("symbolPoints")}),this._setCommon(a,n,!1,t),this.group.add(a),this._incremental=null},u.updateLayout=function(n){if(this._incremental)return;var t=n.getLayout("symbolPoints");this.group.eachChild(function(a){if(a.startIndex!=null){var e=(a.endIndex-a.startIndex)*2,l=a.startIndex*4*2;t=new Float32Array(t.buffer,l,e)}a.setShape("points",t)})},u.incrementalPrepareUpdate=function(n){this.group.removeAll(),this._clearIncremental(),n.count()>2e6?(this._incremental||(this._incremental=new v({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(n,t,a){var e;this._incremental?(e=new f,this._incremental.addDisplayable(e,!0)):(e=new f({rectHover:!0,cursor:"default",startIndex:n.start,endIndex:n.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,a)},u._setCommon=function(n,t,a,e){var l=t.hostModel;e=e||{};var r=t.getVisual("symbolSize");n.setShape("size",r instanceof Array?r:[r,r]),n.softClipShape=e.clipShape||null,n.symbolProxy=S(t.getVisual("symbol"),0,0,0,0),n.setColor=n.symbolProxy.setColor;var s=n.shape.size[0]<m;n.useStyle(l.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&n.setColor(c),a||(n.seriesIndex=l.seriesIndex,n.on("mousemove",function(h){n.dataIndex=null;var g=n.findDataIndex(h.offsetX,h.offsetY);g>=0&&(n.dataIndex=g+(n.startIndex||0))}))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var n=this._incremental;n&&n.clearDisplaybles()};var o=d;k.exports=o},ycre:function(k,D,i){var y=i("711d"),p=y("length");k.exports=p},ye1Q:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="LoadingOutlined";var d=D.a=p.forwardRef(f)},ygfH:function(k,D,i){"use strict";Object.defineProperty(D,"__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"};D.default=y},yik8:function(k,D,i){var y=i("bZqE"),p=y.eachAfter,S=y.eachBefore,v=i("Itpr"),m=v.init,f=v.firstWalk,d=v.secondWalk,u=v.separation,o=v.radialCoordinate,n=v.getViewRect;function t(e,l){e.eachSeriesByType("tree",function(r){a(r,l)})}function a(e,l){var r=n(e,l);e.layoutInfo=r;var s=e.get("layout"),c=0,h=0,g=null;s==="radial"?(c=2*Math.PI,h=Math.min(r.height,r.width)/2,g=u(function(B,P){return(B.parentNode===P.parentNode?1:2)/B.depth})):(c=r.width,h=r.height,g=u());var A=e.getData().tree.root,b=A.children[0];if(b){m(A),p(b,f,g),A.hierNode.modifier=-b.hierNode.prelim,S(b,d);var w=b,x=b,T=b;S(b,function(B){var P=B.getLayout().x;P<w.getLayout().x&&(w=B),P>x.getLayout().x&&(x=B),B.depth>T.depth&&(T=B)});var _=w===x?1:g(w,x)/2,E=_-w.getLayout().x,C=0,I=0,O=0,F=0;if(s==="radial")C=c/(x.getLayout().x+_+E),I=h/(T.depth-1||1),S(b,function(B){O=(B.getLayout().x+E)*C,F=(B.depth-1)*I;var P=o(O,F);B.setLayout({x:P.x,y:P.y,rawX:O,rawY:F},!0)});else{var R=e.getOrient();R==="RL"||R==="LR"?(I=h/(x.getLayout().x+_+E),C=c/(T.depth-1||1),S(b,function(B){F=(B.getLayout().x+E)*I,O=R==="LR"?(B.depth-1)*C:c-(B.depth-1)*C,B.setLayout({x:O,y:F},!0)})):(R==="TB"||R==="BT")&&(C=c/(x.getLayout().x+_+E),I=h/(T.depth-1||1),S(b,function(B){O=(B.getLayout().x+E)*C,F=R==="TB"?(B.depth-1)*I:h-(B.depth-1)*I,B.setLayout({x:O,y:F},!0)}))}}}k.exports=t},ynwM:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"oldFF-globalStorage",read:v,write:m,each:f,remove:d,clearAll:u};var S=p.globalStorage;function v(o){return S[o]}function m(o,n){S[o]=n}function f(o){for(var n=S.length-1;n>=0;n--){var t=S.key(n);o(S[t],t)}}function d(o){return S.removeItem(o)}function u(){f(function(o,n){delete S[o]})}},ypgQ:function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=i("bLfw"),v=y.each,m=y.clone,f=y.map,d=y.merge,u=/^(min|max)?(.+)$/;function o(s){this._api=s,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}o.prototype={constructor:o,setOption:function(s,c){s&&y.each(p.normalizeToArray(s.series),function(A){A&&A.data&&y.isTypedArray(A.data)&&y.setAsPrimitive(A.data)}),s=m(s);var h=this._optionBackup,g=n.call(this,s,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(s){var c=this._optionBackup;return this._timelineOptions=f(c.timelineOptions,m),this._mediaList=f(c.mediaList,m),this._mediaDefault=m(c.mediaDefault),this._currentMediaIndices=[],m(s?c.baseOption:this._newBaseOption)},getTimelineOption:function(s){var c,h=this._timelineOptions;if(h.length){var g=s.getComponent("timeline");g&&(c=m(h[g.getCurrentIndex()],!0))}return c},getMediaOption:function(s){var c=this._api.getWidth(),h=this._api.getHeight(),g=this._mediaList,A=this._mediaDefault,b=[],w=[];if(!g.length&&!A)return w;for(var x=0,T=g.length;x<T;x++)t(g[x].query,c,h)&&b.push(x);return!b.length&&A&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(w=f(b,function(_){return m(_===-1?A.option:g[_].option)})),this._currentMediaIndices=b,w}};function n(s,c,h){var g=[],A=[],b,w,x=s.timeline;if(s.baseOption&&(w=s.baseOption),(x||s.options)&&(w=w||{},g=(s.options||[]).slice()),s.media){w=w||{};var T=s.media;v(T,function(_){_&&_.option&&(_.query?A.push(_):b||(b=_))})}return w||(w=s),w.timeline||(w.timeline=x),v([w].concat(g).concat(y.map(A,function(_){return _.option})),function(_){v(c,function(E){E(_,h)})}),{baseOption:w,timelineOptions:g,mediaDefault:b,mediaList:A}}function t(s,c,h){var g={width:c,height:h,aspectratio:c/h},A=!0;return y.each(s,function(b,w){var x=w.match(u);if(!x||!x[1]||!x[2])return;var T=x[1],_=x[2].toLowerCase();a(g[_],b,T)||(A=!1)}),A}function a(s,c,h){return h==="min"?s>=c:h==="max"?s<=c:s===c}function e(s,c){return s.join(",")===c.join(",")}function l(s,c){c=c||{},v(c,function(h,g){if(h==null)return;var A=s[g];if(!S.hasClass(g))s[g]=d(A,h,!0);else{h=p.normalizeToArray(h),A=p.normalizeToArray(A);var b=p.mappingToExists(A,h);s[g]=f(b,function(w){return w.option&&w.exist?d(w.exist,w.option,!0):w.exist||w.option})}})}var r=o;k.exports=r},yxFR:function(k,D,i){var y=i("y+Vt"),p=i("nPnh"),S=p.subPixelOptimizeLine,v={},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 o,n,t,a;this.subPixelOptimize?(S(v,u,this.style),o=v.x1,n=v.y1,t=v.x2,a=v.y2):(o=u.x1,n=u.y1,t=u.x2,a=u.y2);var e=u.percent;if(e===0)return;d.moveTo(o,n),e<1&&(t=o*(1-e)+t*e,a=n*(1-e)+a*e),d.lineTo(t,a)},pointAt:function(d){var u=this.shape;return[u.x1*(1-d)+u.x2*d,u.y1*(1-d)+u.y2*d]}});k.exports=m},z35g:function(k,D,i){var y=i("bYtY");function p(m){return this._axes[m]}var S=function(m){this._axes={},this._dimList=[],this.name=m||""};S.prototype={constructor:S,type:"cartesian",getAxis:function(m){return this._axes[m]},getAxes:function(){return y.map(this._dimList,p,this)},getAxesByScale:function(m){return m=m.toLowerCase(),y.filter(this.getAxes(),function(f){return f.scale.type===m})},addAxis:function(m){var f=m.dim;this._axes[f]=m,this._dimList.push(f)},dataToCoord:function(m){return this._dataCoordConvert(m,"dataToCoord")},coordToData:function(m){return this._dataCoordConvert(m,"coordToData")},_dataCoordConvert:function(m,f){for(var d=this._dimList,u=m instanceof Array?[]:{},o=0;o<d.length;o++){var n=d[o],t=this._axes[n];u[n]=t[f](m[n])}return u}};var v=S;k.exports=v},z7Xi:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("q1tI"),S={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"},v=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:v}))};f.displayName="UploadOutlined";var d=D.a=p.forwardRef(f)},zAh6:function(k,D,i){"use strict";i.d(D,"a",function(){return m});var y=i("xEkU"),p=i.n(y),S=i("i6bk");function v(f,d,u,o){var n=u-d;return f/=o/2,f<1?n/2*f*f*f+d:n/2*((f-=2)*f*f+2)+d}function m(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=d.getContainer,o=u===void 0?function(){return window}:u,n=d.callback,t=d.duration,a=t===void 0?450:t,e=o(),l=Object(S.a)(e,!0),r=Date.now(),s=function c(){var h=Date.now(),g=h-r,A=v(g>a?a:g,l,f,a);Object(S.b)(e)?e.scrollTo(window.pageXOffset,A):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=A:e.scrollTop=A,g<a?p()(c):typeof n=="function"&&n()};p()(s)}},zDms:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=i("UOVi"),v=i("72pK"),m=y.each,f=p.asc,d=function(e,l,r,s){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=s,this._dataZoomModel=r};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(r){if(S.isCoordSupported(r.get("coordinateSystem"))){var s=this._dimName,c=l.queryComponents({mainType:s+"Axis",index:r.get(s+"AxisIndex"),id:r.get(s+"AxisId")})[0];this._axisIndex===(c&&c.componentIndex)&&e.push(r)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,l=this.ecModel,r=this.getAxisModel(),s=e==="x"||e==="y",c,h;s?(h="gridIndex",c=e==="x"?"y":"x"):(h="polarIndex",c=e==="angle"?"radius":"angle");var g;return l.eachComponent(c+"Axis",function(A){(A.get(h)||0)===(r.get(h)||0)&&(g=A)}),g},getMinMaxSpan:function(){return y.clone(this._minMaxSpan)},calculateDataWindow:function(e){var l=this._dataExtent,r=this.getAxisModel(),s=r.axis.scale,c=this._dataZoomModel.getRangePropMode(),h=[0,100],g=[],A=[],b;m(["start","end"],function(T,_){var E=e[T],C=e[T+"Value"];c[_]==="percent"?(E==null&&(E=h[_]),C=s.parse(p.linearMap(E,h,l))):(b=!0,C=C==null?l[_]:s.parse(C),E=p.linearMap(C,l,h)),A[_]=C,g[_]=E}),f(A),f(g);var w=this._minMaxSpan;b?x(A,g,l,h,!1):x(g,A,h,l,!0);function x(T,_,E,C,I){var O=I?"Span":"ValueSpan";v(0,T,E,"all",w["min"+O],w["max"+O]);for(var F=0;F<2;F++)_[F]=p.linearMap(T[F],E,C,!0),I&&(_[F]=s.parse(_[F]))}return{valueWindow:A,percentWindow:g}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,l),t(this);var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,n(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,n(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var r=this._dimName,s=this.getTargetSeriesModels(),c=e.get("filterMode"),h=this._valueWindow;if(c==="none")return;m(s,function(A){var b=A.getData(),w=b.mapDimension(r,!0);if(!w.length)return;c==="weakFilter"?b.filterSelf(function(x){for(var T,_,E,C=0;C<w.length;C++){var I=b.get(w[C],x),O=!isNaN(I),F=I<h[0],R=I>h[1];if(O&&!F&&!R)return!0;O&&(E=!0),F&&(T=!0),R&&(_=!0)}return E&&T&&_}):m(w,function(x){if(c==="empty")A.setData(b=b.map(x,function(_){return g(_)?_:NaN}));else{var T={};T[x]=h,b.selectRange(T)}}),m(w,function(x){b.setApproximateExtent(h,x)})});function g(A){return A>=h[0]&&A<=h[1]}}};function u(e,l,r){var s=[Infinity,-Infinity];return m(r,function(c){var h=c.getData();h&&m(h.mapDimension(l,!0),function(g){var A=h.getApproximateExtent(g);A[0]<s[0]&&(s[0]=A[0]),A[1]>s[1]&&(s[1]=A[1])})}),s[1]<s[0]&&(s=[NaN,NaN]),o(e,s),s}function o(e,l){var r=e.getAxisModel(),s=r.getMin(!0),c=r.get("type")==="category",h=c&&r.getCategories().length;s!=null&&s!=="dataMin"&&typeof s!="function"?l[0]=s:c&&(l[0]=h>0?0:NaN);var g=r.getMax(!0);return g!=null&&g!=="dataMax"&&typeof g!="function"?l[1]=g:c&&(l[1]=h>0?h-1:NaN),r.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function n(e,l){var r=e.getAxisModel(),s=e._percentWindow,c=e._valueWindow;if(!s)return;var h=p.getPixelPrecision(c,[0,500]);h=Math.min(h,20);var g=l||s[0]===0&&s[1]===100;r.setRange(g?null:+c[0].toFixed(h),g?null:+c[1].toFixed(h))}function t(e){var l=e._minMaxSpan={},r=e._dataZoomModel,s=e._dataExtent;m(["min","max"],function(c){var h=r.get(c+"Span"),g=r.get(c+"ValueSpan");g!=null&&(g=e.getAxisModel().axis.scale.parse(g)),g!=null?h=p.linearMap(s[0]+g,s,[0,100],!0):h!=null&&(g=p.linearMap(h,[0,100],s,!0)-s[0]),l[c+"Span"]=h,l[c+"ValueSpan"]=g})}var a=d;k.exports=a},zM3Q:function(k,D,i){var y=i("4NO4"),p=y.makeInner;function S(){var v=p();return function(m){var f=v(m),d=m.pipelineContext,u=f.large,o=f.progressiveRender,n=f.large=d&&d.large,t=f.progressiveRender=d&&d.progressiveRender;return!!(u^n||o^t)&&"reset"}}k.exports=S},zRKj:function(k,D,i){i("Ae16"),i("Sp2Z"),i("y4/Y")},zTMp:function(k,D,i){var y=i("bYtY"),p=i("Qxkt"),S=y.each,v=y.curry;function m(s,c){var h={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return f(h,s,c),h.seriesInvolved&&u(h,s),h}function f(s,c,h){var g=c.getComponent("tooltip"),A=c.getComponent("axisPointer"),b=A.get("link",!0)||[],w=[];S(h.getCoordinateSystems(),function(x){if(!x.axisPointerEnabled)return;var T=r(x.model),_=s.coordSysAxesInfo[T]={};s.coordSysMap[T]=x;var E=x.model,C=E.getModel("tooltip",g);if(S(x.getAxes(),v(R,!1,null)),x.getTooltipAxes&&g&&C.get("show")){var I=C.get("trigger")==="axis",O=C.get("axisPointer.type")==="cross",F=x.getTooltipAxes(C.get("axisPointer.axis"));(I||O)&&S(F.baseAxes,v(R,O?"cross":!0,I)),O&&S(F.otherAxes,v(R,"cross",!1))}function R(B,P,X){var M=X.model.getModel("axisPointer",A),z=M.get("show");if(!z||z==="auto"&&!B&&!l(M))return;P==null&&(P=M.get("triggerTooltip")),M=B?d(X,C,A,c,B,P):M;var W=M.get("snap"),H=r(X.model),V=P||W||X.type==="category",Q=s.axesInfo[H]={key:H,axis:X,coordSys:x,axisPointerModel:M,triggerTooltip:P,involveSeries:V,snap:W,useHandle:l(M),seriesModels:[]};_[H]=Q,s.seriesInvolved|=V;var G=o(b,X);if(G!=null){var ee=w[G]||(w[G]={axesInfo:{}});ee.axesInfo[H]=Q,ee.mapper=b[G].mapper,Q.linkGroup=ee}}})}function d(s,c,h,g,A,b){var w=c.getModel("axisPointer"),x={};S(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(C){x[C]=y.clone(w.get(C))}),x.snap=s.type!=="category"&&!!b,w.get("type")==="cross"&&(x.type="line");var T=x.label||(x.label={});if(T.show==null&&(T.show=!1),A==="cross"){var _=w.get("label.show");if(T.show=_!=null?_:!0,!b){var E=x.lineStyle=w.get("crossStyle");E&&y.defaults(T,E.textStyle)}}return s.model.getModel("axisPointer",new p(x,h,g))}function u(s,c){c.eachSeries(function(h){var g=h.coordinateSystem,A=h.get("tooltip.trigger",!0),b=h.get("tooltip.show",!0);if(!g||A==="none"||A===!1||A==="item"||b===!1||h.get("axisPointer.show",!0)===!1)return;S(s.coordSysAxesInfo[r(g.model)],function(w){var x=w.axis;g.getAxis(x.dim)===x&&(w.seriesModels.push(h),w.seriesDataCount==null&&(w.seriesDataCount=0),w.seriesDataCount+=h.getData().count())})},this)}function o(s,c){for(var h=c.model,g=c.dim,A=0;A<s.length;A++){var b=s[A]||{};if(n(b[g+"AxisId"],h.id)||n(b[g+"AxisIndex"],h.componentIndex)||n(b[g+"AxisName"],h.name))return A}}function n(s,c){return s==="all"||y.isArray(s)&&y.indexOf(s,c)>=0||s===c}function t(s){var c=a(s);if(!c)return;var h=c.axisPointerModel,g=c.axis.scale,A=h.option,b=h.get("status"),w=h.get("value");w!=null&&(w=g.parse(w));var x=l(h);b==null&&(A.status=x?"show":"hide");var T=g.getExtent().slice();T[0]>T[1]&&T.reverse(),(w==null||w>T[1])&&(w=T[1]),w<T[0]&&(w=T[0]),A.value=w,x&&(A.status=c.axis.scale.isBlank()?"hide":"show")}function a(s){var c=(s.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[r(s)]}function e(s){var c=a(s);return c&&c.axisPointerModel}function l(s){return!!s.get("handle.show")}function r(s){return s.type+"||"+s.id}D.collect=m,D.fixValue=t,D.getAxisInfo=a,D.getAxisPointerModel=e,D.makeKey=r},zYTA:function(k,D,i){var y=i("bYtY"),p=256;function S(){var m=y.createCanvas();this.canvas=m,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}S.prototype={update:function(m,f,d,u,o,n){var t=this._getBrush(),a=this._getGradient(m,o,"inRange"),e=this._getGradient(m,o,"outOfRange"),l=this.pointSize+this.blurSize,r=this.canvas,s=r.getContext("2d"),c=m.length;r.width=f,r.height=d;for(var h=0;h<c;++h){var g=m[h],A=g[0],b=g[1],w=g[2],x=u(w);s.globalAlpha=x,s.drawImage(t,A-l,b-l)}if(!r.width||!r.height)return r;for(var T=s.getImageData(0,0,r.width,r.height),_=T.data,E=0,C=_.length,I=this.minOpacity,O=this.maxOpacity,F=O-I;E<C;){var x=_[E+3]/256,R=Math.floor(x*(p-1))*4;if(x>0){var B=n(x)?a:e;x>0&&(x=x*F+I),_[E++]=B[R],_[E++]=B[R+1],_[E++]=B[R+2],_[E++]=B[R+3]*x*256}else E+=4}return s.putImageData(T,0,0),r},_getBrush:function(){var m=this._brushCanvas||(this._brushCanvas=y.createCanvas()),f=this.pointSize+this.blurSize,d=f*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(-f,f,this.pointSize,0,Math.PI*2,!0),u.closePath(),u.fill(),m},_getGradient:function(m,f,d){for(var u=this._gradientPixels,o=u[d]||(u[d]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],t=0,a=0;a<256;a++)f[d](a/255,!0,n),o[t++]=n[0],o[t++]=n[1],o[t++]=n[2],o[t++]=n[3];return o}};var v=S;k.exports=v},zarK:function(k,D,i){var y=i("YH21"),p=y.addEventListener,S=y.removeEventListener,v=y.normalizeEvent,m=y.getNativeEvent,f=i("bYtY"),d=i("H6uX"),u=i("ItGF"),o=300,n=u.domSupported,t=function(){var B=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=f.map(B,function(z){var W=z.replace("mouse","pointer");return X.hasOwnProperty(W)?W:z});return{mouse:B,touch:P,pointer:M}}(),a={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(B){return B==="mousewheel"&&u.browser.firefox?"DOMMouseScroll":B}function l(B){var P=B.pointerType;return P==="pen"||P==="touch"}function r(B){B.touching=!0,B.touchTimer!=null&&(clearTimeout(B.touchTimer),B.touchTimer=null),B.touchTimer=setTimeout(function(){B.touching=!1,B.touchTimer=null},700)}function s(B){B&&(B.zrByTouch=!0)}function c(B,P){return v(B.dom,new g(B,P),!0)}function h(B,P){for(var X=P,M=!1;X&&X.nodeType!==9&&!(M=X.domBelongToZr||X!==P&&X===B.painterRoot);)X=X.parentNode;return M}function g(B,P){this.type=P.type,this.target=this.currentTarget=B.dom,this.pointerType=P.pointerType,this.clientX=P.clientX,this.clientY=P.clientY}var A=g.prototype;A.stopPropagation=A.stopImmediatePropagation=A.preventDefault=f.noop;var b={mousedown:function(P){P=v(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=v(this.dom,P);var X=this._mayPointerCapture;X&&(P.zrX!==X[0]||P.zrY!==X[1])&&C(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=v(this.dom,P),C(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=v(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=v(this.dom,P),s(P),this._lastTouchMoment=new Date,this.handler.processGesture(P,"start"),b.mousemove.call(this,P),b.mousedown.call(this,P)},touchmove:function(P){P=v(this.dom,P),s(P),this.handler.processGesture(P,"change"),b.mousemove.call(this,P)},touchend:function(P){P=v(this.dom,P),s(P),this.handler.processGesture(P,"end"),b.mouseup.call(this,P),+new Date-this._lastTouchMoment<o&&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)}};f.each(["click","mousewheel","dblclick","contextmenu"],function(B){b[B]=function(P){P=v(this.dom,P),this.trigger(B,P)}});var w={pointermove:function(P){l(P)||w.mousemove.call(this,P)},pointerup:function(P){w.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var X=this._pointerCapturing;C(this,!1),this.trigger("mouseup",P),X&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function x(B,P){var X=P.domHandlers;u.pointerEventsSupported?f.each(t.pointer,function(M){_(P,M,function(z){X[M].call(B,z)})}):(u.touchEventsSupported&&f.each(t.touch,function(M){_(P,M,function(z){X[M].call(B,z),r(P)})}),f.each(t.mouse,function(M){_(P,M,function(z){z=m(z),P.touching||X[M].call(B,z)})}))}function T(B,P){u.pointerEventsSupported?f.each(a.pointer,X):u.touchEventsSupported||f.each(a.mouse,X);function X(M){function z(W){W=m(W),h(B,W.target)||(W=c(B,W),P.domHandlers[M].call(B,W))}_(P,M,z,{capture:!0})}}function _(B,P,X,M){B.mounted[P]=X,B.listenerOpts[P]=M,p(B.domTarget,e(P),X,M)}function E(B){var P=B.mounted;for(var X in P)P.hasOwnProperty(X)&&S(B.domTarget,e(X),P[X],B.listenerOpts[X]);B.mounted={}}function C(B,P){if(B._mayPointerCapture=null,n&&B._pointerCapturing^P){B._pointerCapturing=P;var X=B._globalHandlerScope;P?T(B,X):E(X)}}function I(B,P){this.domTarget=B,this.domHandlers=P,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function O(B,P){d.call(this),this.dom=B,this.painterRoot=P,this._localHandlerScope=new I(B,b),n&&(this._globalHandlerScope=new I(document,w)),this._pointerCapturing=!1,this._mayPointerCapture=null,x(this,this._localHandlerScope)}var F=O.prototype;F.dispose=function(){E(this._localHandlerScope),n&&E(this._globalHandlerScope)},F.setCursor=function(B){this.dom.style&&(this.dom.style.cursor=B||"default")},f.mixin(O,d);var R=O;k.exports=R},zdCA:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),v=u(i("q1tI")),m=y(i("PSzr")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function u(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);if(e&&e.has(t))return e.get(t);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var c=r?Object.getOwnPropertyDescriptor(t,s):null;c&&(c.get||c.set)?Object.defineProperty(l,s,c):l[s]=t[s]}return l.default=t,e&&e.set(t,l),l}var o=function(a,e){return v.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="BarsOutlined";var n=v.forwardRef(o);D.default=n},zeV3:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),v=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),u=i.n(d),o=i("H84U"),n=function(e,l){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&l.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c<s.length;c++)l.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(e,s[c])&&(r[s[c]]=e[s[c]]);return r},t={small:8,middle:16,large:24},a=function(l){var r,s=m.useContext(o.b),c=s.getPrefixCls,h=s.space,g=s.direction,A=l.size,b=A===void 0?(h==null?void 0:h.size)||"small":A,w=l.align,x=l.className,T=l.children,_=l.direction,E=_===void 0?"horizontal":_,C=l.prefixCls,I=n(l,["size","align","className","children","direction","prefixCls"]),O=m.Children.count(T);if(O===0)return null;var F=w===void 0&&E==="horizontal"?"center":w,R=c("space",C),B=u()(R,"".concat(R,"-").concat(E),(r={},v()(r,"".concat(R,"-rtl"),g==="rtl"),v()(r,"".concat(R,"-align-").concat(F),F),r),x),P="".concat(R,"-item"),X=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",p()({className:B},I),m.Children.map(T,function(M,z){return m.createElement("div",{className:P,key:"".concat(P,"-").concat(z),style:z===O-1||M===null||M===void 0?{}:v()({},E==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},M)}))};D.a=a},zuHt:function(k,D,i){var y=i("bYtY");function p(S){var v={};S.eachSeriesByType("map",function(m){var f=m.getMapType();if(m.getHostGeoModel()||v[f])return;var d={};y.each(m.seriesGroup,function(o){var n=o.coordinateSystem,t=o.originalData;o.get("showLegendSymbol")&&S.getComponent("legend")&&t.each(t.mapDimension("value"),function(a,e){var l=t.getName(e),r=n.getRegion(l);if(!r||isNaN(a))return;var s=d[l]||0,c=n.dataToPoint(r.center);d[l]=s+1,t.setItemLayout(e,{point:c,offset:s})})});var u=m.getData();u.each(function(o){var n=u.getName(o),t=u.getItemLayout(o)||{};t.showLabel=!d[n],u.setItemLayout(o,t)}),v[f]=!0})}k.exports=p}}]);