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

951 lines
4.5 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,n){var y=n("y1pI");function p(x){return y(this.__data__,x)>-1}k.exports=p},"+BJd":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("6MrE"),A=n.n(x)},"+QRC":function(k,D,n){"use strict";var y=n("E9nw"),p={"text/plain":"Text","text/html":"Url",default:"Text"},x="Copy to clipboard: #{key}, Enter";function A(f){var h=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return f.replace(/#{\s*key\s*}/g,h)}function m(f,h){var u,a,i,t,o,e,l=!1;h||(h={}),u=h.debug||!1;try{i=y(),t=document.createRange(),o=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(),h.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[h.format]||p.default;window.clipboardData.setData(c,f)}else s.clipboardData.clearData(),s.clipboardData.setData(h.format,f);h.onCopy&&(s.preventDefault(),h.onCopy(s.clipboardData))}),document.body.appendChild(e),t.selectNodeContents(e),o.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(h.format||"text",f),h.onCopy&&h.onCopy(window.clipboardData),l=!0}catch(c){u&&console.error("unable to copy using clipboardData: ",c),u&&console.error("falling back to prompt"),a=A("message"in h?h.message:x),window.prompt(a,f)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(t):o.removeAllRanges()),e&&document.body.removeChild(e),i()}return l}k.exports=m},"+TT/":function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("OELB"),A=x.parsePercent,m=n("7aKB"),f=y.each,h=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function a(v,b,S,E,C){var _=0,T=0;E==null&&(E=Infinity),C==null&&(C=Infinity);var w=0;b.eachChild(function(O,I){var R=O.position,M=O.getBoundingRect(),F=b.childAt(I+1),P=F&&F.getBoundingRect(),X,B;if(v==="horizontal"){var j=M.width+(P?-P.x+M.x:0);X=_+j,X>E||O.newline?(_=0,X=j,T+=w+S,w=M.height):w=Math.max(w,M.height)}else{var W=M.height+(P?-P.y+M.y:0);B=T+W,B>C||O.newline?(_+=w+S,T=0,B=W,w=M.width):w=Math.max(w,M.width)}if(O.newline)return;R[0]=_,R[1]=T,v==="horizontal"?_=X+S:T=B+S})}var i=a,t=y.curry(a,"vertical"),o=y.curry(a,"horizontal");function e(v,b,S){var E=b.width,C=b.height,_=A(v.x,E),T=A(v.y,C),w=A(v.x2,E),O=A(v.y2,C);return(isNaN(_)||isNaN(parseFloat(v.x)))&&(_=0),(isNaN(w)||isNaN(parseFloat(v.x2)))&&(w=E),(isNaN(T)||isNaN(parseFloat(v.y)))&&(T=0),(isNaN(O)||isNaN(parseFloat(v.y2)))&&(O=C),S=m.normalizeCssArray(S||0),{width:Math.max(w-_-S[1]-S[3],0),height:Math.max(O-T-S[0]-S[2],0)}}function l(v,b,S){S=m.normalizeCssArray(S||0);var E=b.width,C=b.height,_=A(v.left,E),T=A(v.top,C),w=A(v.right,E),O=A(v.bottom,C),I=A(v.width,E),R=A(v.height,C),M=S[2]+S[0],F=S[1]+S[3],P=v.aspect;isNaN(I)&&(I=E-w-F-_),isNaN(R)&&(R=C-O-M-T),P!=null&&(isNaN(I)&&isNaN(R)&&(P>E/C?I=E*.8:R=C*.8),isNaN(I)&&(I=P*R),isNaN(R)&&(R=I/P)),isNaN(_)&&(_=E-w-I-F),isNaN(T)&&(T=C-O-R-M);switch(v.left||v.right){case"center":_=E/2-I/2-S[3];break;case"right":_=E-I-F;break}switch(v.top||v.bottom){case"middle":case"center":T=C/2-R/2-S[0];break;case"bottom":T=C-R-M;break}_=_||0,T=T||0,isNaN(I)&&(I=E-F-_-(w||0)),isNaN(R)&&(R=C-M-T-(O||0));var X=new p(_+S[3],T+S[0],I,R);return X.margin=S,X}function r(v,b,S,E,C){var _=!C||!C.hv||C.hv[0],T=!C||!C.hv||C.hv[1],w=C&&C.boundingMode||"all";if(!_&&!T)return;var O;if(w==="raw")O=v.type==="group"?new p(0,0,+b.width||0,+b.height||0):v.getBoundingRect();else if(O=v.getBoundingRect(),v.needLocalTransform()){var I=v.getLocalTransform();O=O.clone(),O.applyTransform(I)}b=l(y.defaults({width:O.width,height:O.height},b),S,E);var R=v.position,M=_?b.x-O.x:0,F=T?b.y-O.y:0;v.attr("position",w==="raw"?[M,F]:[R[0]+M,R[1]+F])}function s(v,b){return v[u[b][0]]!=null||v[u[b][1]]!=null&&v[u[b][2]]!=null}function c(v,b,S){!y.isObject(S)&&(S={});var E=S.ignoreSize;!y.isArray(E)&&(E=[E,E]);var C=T(u[0],0),_=T(u[1],1);I(u[0],v,C),I(u[1],v,_);function T(R,M){var F={},P=0,X={},B=0,j=2;if(f(R,function(V){X[V]=v[V]}),f(R,function(V){w(b,V)&&(F[V]=X[V]=b[V]),O(F,V)&&P++,O(X,V)&&B++}),E[M])return O(b,R[1])?X[R[2]]=null:O(b,R[2])&&(X[R[1]]=null),X;if(B===j||!P)return X;if(P>=j)return F;for(var W=0;W<R.length;W++){var z=R[W];if(!w(F,z)&&w(v,z)){F[z]=v[z];break}}return F}function w(R,M){return R.hasOwnProperty(M)}function O(R,M){return R[M]!=null&&R[M]!=="auto"}function I(R,M,F){f(R,function(P){M[P]=F[P]})}}function d(v){return g({},v)}function g(v,b){return b&&v&&f(h,function(S){b.hasOwnProperty(S)&&(v[S]=b[S])}),v}D.LOCATION_PARAMS=h,D.HV_NAMES=u,D.box=i,D.vbox=t,D.hbox=o,D.getAvailableSize=e,D.getLayoutRect=l,D.positionElement=r,D.sizeCalculable=s,D.mergeLayoutParam=c,D.getLayoutParams=d,D.copyLayoutParams=g},"+Zaj":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("ugBc")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CalendarOutlined";var i=A.forwardRef(a);D.default=i},"+d4F":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("y3Yb"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"+eQT":function(k,D,n){"use strict";var y=n("wd/R"),p=n.n(y),x=n("Kwbf"),A={getNow:function(){return p()()},getWeekDay:function(Er){var Zr=Er.clone().locale("en_US");return Zr.weekday()+Zr.localeData().firstDayOfWeek()},getYear:function(Er){return Er.year()},getMonth:function(Er){return Er.month()},getDate:function(Er){return Er.date()},getHour:function(Er){return Er.hour()},getMinute:function(Er){return Er.minute()},getSecond:function(Er){return Er.second()},addYear:function(Er,Zr){var Xr=Er.clone();return Xr.add(Zr,"year")},addMonth:function(Er,Zr){var Xr=Er.clone();return Xr.add(Zr,"month")},addDate:function(Er,Zr){var Xr=Er.clone();return Xr.add(Zr,"day")},setYear:function(Er,Zr){var Xr=Er.clone();return Xr.year(Zr)},setMonth:function(Er,Zr){var Xr=Er.clone();return Xr.month(Zr)},setDate:function(Er,Zr){var Xr=Er.clone();return Xr.date(Zr)},setHour:function(Er,Zr){var Xr=Er.clone();return Xr.hour(Zr)},setMinute:function(Er,Zr){var Xr=Er.clone();return Xr.minute(Zr)},setSecond:function(Er,Zr){var Xr=Er.clone();return Xr.second(Zr)},isAfter:function(Er,Zr){return Er.isAfter(Zr)},isValidate:function(Er){return Er.isValid()},locale:{getWeekFirstDay:function(Er){var Zr=p()().locale(Er);return Zr.localeData().firstDayOfWeek()},getWeek:function(Er,Zr){var Xr=Zr.clone(),Xn=Xr.locale(Er);return Xn.week()},getShortWeekDays:function(Er){var Zr=p()().locale(Er);return Zr.localeData().weekdaysMin()},getShortMonths:function(Er){var Zr=p()().locale(Er);return Zr.localeData().monthsShort()},format:function(Er,Zr,Xr){var Xn=Zr.clone(),un=Xn.locale(Er);return un.format(Xr)},parse:function(Er,Zr,Xr){for(var Xn=[],un=0;un<Xr.length;un+=1){var Gr=Xr[un],ri=Zr;if(Gr.includes("wo")||Gr.includes("Wo")){Gr=Gr.replace(/wo/g,"w").replace(/Wo/g,"W");var rn=Gr.match(/[-YyMmDdHhSsWwGg]+/g),jn=ri.match(/[-\d]+/g);rn&&jn?(Gr=rn.join(""),ri=jn.join("")):Xn.push(Gr.replace(/o/g,""))}var oi=p()(ri,Gr,Er,!0);if(oi.isValid())return oi}for(var li=0;li<Xn.length;li+=1){var ai=p()(Zr,Xn[li],Er,!1);if(ai.isValid())return Object(x.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),ai}return null}}},m=A,f=n("pVnL"),h=n.n(f),u=n("q1tI"),a=n.n(u),i=n("2/Rp");function t(ht){return u.createElement(i.a,h()({size:"small",type:"primary"},ht))}var o=n("mr32");function e(ht){return u.createElement(o.a,h()({color:"blue"},ht))}var l=n("lSNA"),r=n.n(l),s=n("lwsE"),c=n.n(s),d=n("W8MJ"),g=n.n(d),v=n("7W2i"),b=n.n(v),S=n("LQ03"),E=n.n(S),C=n("TSYQ"),_=n.n(C),T=n("r/2G"),w=n.n(T),O=n("XzQk"),I=n.n(O),R=n("kbBi"),M=n.n(R),F=n("1OyB"),P=n("vuIU"),X=n("Ji7U"),B=n("LK+K"),j=n("rePB"),W=n("VTBJ"),z=n("ODXe"),V=n("6cGi"),Q=n("U8pU"),G=n("4IlW"),re=u.createContext({}),ee=re,ue={visibility:"hidden"};function $(ht){var Er=ht.prefixCls,Zr=ht.prevIcon,Xr=Zr===void 0?"\u2039":Zr,Xn=ht.nextIcon,un=Xn===void 0?"\u203A":Xn,Gr=ht.superPrevIcon,ri=Gr===void 0?"\xAB":Gr,rn=ht.superNextIcon,jn=rn===void 0?"\xBB":rn,oi=ht.onSuperPrev,li=ht.onSuperNext,ai=ht.onPrev,Ei=ht.onNext,mi=ht.children,Ai=u.useContext(ee),Ii=Ai.hideNextBtn,na=Ai.hidePrevBtn;return u.createElement("div",{className:Er},oi&&u.createElement("button",{type:"button",onClick:oi,tabIndex:-1,className:"".concat(Er,"-super-prev-btn"),style:na?ue:{}},ri),ai&&u.createElement("button",{type:"button",onClick:ai,tabIndex:-1,className:"".concat(Er,"-prev-btn"),style:na?ue:{}},Xr),u.createElement("div",{className:"".concat(Er,"-view")},mi),Ei&&u.createElement("button",{type:"button",onClick:Ei,tabIndex:-1,className:"".concat(Er,"-next-btn"),style:Ii?ue:{}},un),li&&u.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Er,"-super-next-btn"),style:Ii?ue:{}},jn))}var be=$;function _e(ht){var Er=u.useContext(ee),Zr=Er.hideHeader;if(Zr)return null;var Xr=ht.prefixCls,Xn=ht.generateConfig,un=ht.locale,Gr=ht.value,ri=ht.format,rn="".concat(Xr,"-header");return u.createElement(be,{prefixCls:rn},Gr?Xn.locale.format(un.locale,Gr,ri):"\xA0")}var Ee=_e,Xe=n("YrtM"),He=n("KQm4"),nt=new Map;function Ie(ht,Er,Zr){if(nt.get(ht)&&cancelAnimationFrame(nt.get(ht)),Zr<=0){nt.set(ht,requestAnimationFrame(function(){ht.scrollTop=Er}));return}var Xr=Er-ht.scrollTop,Xn=Xr/Zr*10;nt.set(ht,requestAnimationFrame(function(){ht.scrollTop+=Xn,ht.scrollTop!==Er&&Ie(ht,Er,Zr-10)}))}function oe(ht,Er){var Zr=Er.onLeftRight,Xr=Er.onCtrlLeftRight,Xn=Er.onUpDown,un=Er.onPageUpDown,Gr=Er.onEnter,ri=ht.which,rn=ht.ctrlKey,jn=ht.metaKey;switch(ri){case G.a.LEFT:if(rn||jn){if(Xr)return Xr(-1),!0}else if(Zr)return Zr(-1),!0;break;case G.a.RIGHT:if(rn||jn){if(Xr)return Xr(1),!0}else if(Zr)return Zr(1),!0;break;case G.a.UP:if(Xn)return Xn(-1),!0;break;case G.a.DOWN:if(Xn)return Xn(1),!0;break;case G.a.PAGE_UP:if(un)return un(-1),!0;break;case G.a.PAGE_DOWN:if(un)return un(1),!0;break;case G.a.ENTER:if(Gr)return Gr(),!0;break}return!1}function ot(ht,Er,Zr,Xr){var Xn=ht;if(!Xn)switch(Er){case"time":Xn=Xr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Xn="gggg-wo";break;case"month":Xn="YYYY-MM";break;case"quarter":Xn="YYYY-[Q]Q";break;case"year":Xn="YYYY";break;default:Xn=Zr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Xn}function he(ht,Er){var Zr=ht==="time"?8:10;return Math.max(Zr,Er.length)+2}var J=null,Y=new Set;function q(ht){return!J&&typeof window!="undefined"&&window.addEventListener&&(J=function(Zr){Object(He.a)(Y).forEach(function(Xr){Xr(Zr)})},window.addEventListener("mousedown",J)),Y.add(ht),function(){Y.delete(ht),Y.size===0&&(window.removeEventListener("mousedown",J),J=null)}}var fe=function(Er){return Er==="month"||Er==="date"?"year":Er},we=function(Er){return Er==="date"?"month":Er},Ne=function(Er){return Er==="month"||Er==="date"?"quarter":Er},je=function(Er){return Er==="date"?"week":Er},me={year:fe,month:we,quarter:Ne,week:je,time:null,date:null};function Ce(ht,Er){return ht.some(function(Zr){return Zr&&Zr.contains(Er)})}function Fe(ht){var Er=ht.prefixCls,Zr=ht.units,Xr=ht.onSelect,Xn=ht.value,un=ht.active,Gr=ht.hideDisabledOptions,ri="".concat(Er,"-cell"),rn=u.useContext(ee),jn=rn.open,oi=u.useRef(null),li=u.useRef(new Map);return u.useLayoutEffect(function(){var ai=li.current.get(Xn);ai&&jn!==!1&&Ie(oi.current,ai.offsetTop,120)},[Xn]),u.useLayoutEffect(function(){if(jn){var ai=li.current.get(Xn);ai&&Ie(oi.current,ai.offsetTop,0)}},[jn]),u.createElement("ul",{className:_()("".concat(Er,"-column"),Object(j.a)({},"".concat(Er,"-column-active"),un)),ref:oi,style:{position:"relative"}},Zr.map(function(ai){var Ei;return Gr&&ai.disabled?null:u.createElement("li",{key:ai.value,ref:function(Ai){li.current.set(ai.value,Ai)},className:_()(ri,(Ei={},Object(j.a)(Ei,"".concat(ri,"-disabled"),ai.disabled),Object(j.a)(Ei,"".concat(ri,"-selected"),Xn===ai.value),Ei)),onClick:function(){if(ai.disabled)return;Xr(ai.value)}},u.createElement("div",{className:"".concat(ri,"-inner")},ai.label))}))}var it=Fe;function Ct(ht,Er){for(var Zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Xr=String(ht);Xr.length<Er;)Xr="".concat(Zr).concat(ht);return Xr}var mt=function(){for(var Er=arguments.length,Zr=new Array(Er),Xr=0;Xr<Er;Xr++)Zr[Xr]=arguments[Xr];return Zr};function Ve(ht){return ht==null?[]:Array.isArray(ht)?ht:[ht]}function or(ht){var Er={};return Object.keys(ht).forEach(function(Zr){(Zr.substr(0,5)==="data-"||Zr.substr(0,5)==="aria-"||Zr==="role"||Zr==="name")&&Zr.substr(0,7)!=="data-__"&&(Er[Zr]=ht[Zr])}),Er}function dt(ht,Er){return ht?ht[Er]:null}function Yt(ht,Er,Zr){var Xr=[dt(ht,0),dt(ht,1)];return Xr[Zr]=typeof Er=="function"?Er(Xr[Zr]):Er,!Xr[0]&&!Xr[1]?null:Xr}function hr(ht,Er,Zr,Xr,Xn){var un=ht.setHour(Er,Zr);return un=ht.setMinute(un,Xr),un=ht.setSecond(un,Xn),un}function Gt(ht,Er,Zr,Xr,Xn,un){var Gr=Math.floor(ht/Xr)*Xr;if(Gr<ht)return[Gr,60-Xn,60-un];var ri=Math.floor(Er/Xn)*Xn;if(ri<Er)return[Gr,ri,60-un];var rn=Math.floor(Zr/un)*un;return[Gr,ri,rn]}function Pt(ht,Er){if(ht.length!==Er.length)return!0;for(var Zr=0;Zr<ht.length;Zr+=1)if(ht[Zr].disabled!==Er[Zr].disabled)return!0;return!1}function Xt(ht,Er,Zr,Xr){for(var Xn=[],un=ht;un<=Er;un+=Zr)Xn.push({label:Ct(un,2),value:un,disabled:(Xr||[]).includes(un)});return Xn}function Ge(ht){var Er=ht.generateConfig,Zr=ht.prefixCls,Xr=ht.operationRef,Xn=ht.activeColumnIndex,un=ht.value,Gr=ht.showHour,ri=ht.showMinute,rn=ht.showSecond,jn=ht.use12Hours,oi=ht.hourStep,li=oi===void 0?1:oi,ai=ht.minuteStep,Ei=ai===void 0?1:ai,mi=ht.secondStep,Ai=mi===void 0?1:mi,Ii=ht.disabledHours,na=ht.disabledMinutes,ji=ht.disabledSeconds,fa=ht.hideDisabledOptions,Xa=ht.onSelect,xa=[],wa="".concat(Zr,"-content"),Da="".concat(Zr,"-time-panel"),ja,ko=un?Er.getHour(un):-1,ro=un?Er.getMinute(un):-1,pa=un?Er.getSecond(un):-1,Ea=function(Ao,$a,ss,Cs){var Fo=un||Er.getNow(),il=Math.max(0,$a),Eo=Math.max(0,ss),zo=Math.max(0,Cs);return Fo=hr(Er,Fo,!jn||!Ao?il:il+12,Eo,zo),Fo},Fa=Xt(0,23,li,Ii&&Ii()),Ka=Object(Xe.a)(function(){return Fa},Fa,Pt);jn&&(ja=ko>=12,ko%=12);var lo=u.useMemo(function(){if(!jn)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(Ao){var $a=Ao.disabled,ss=Ao.value;if($a)return;ss>=12?co[1]=!1:co[0]=!1}),co},[jn,Ka]),so=Object(z.a)(lo,2),Co=so[0],Lo=so[1],is=u.useMemo(function(){return jn?Ka.filter(ja?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var Ao=co.value%12,$a=Ao===0?"12":Ct(Ao,2);return Object(W.a)(Object(W.a)({},co),{},{label:$a,value:Ao})}):Ka},[jn,Ka]),cs=Xt(0,59,Ei,na&&na(ko)),Rs=Xt(0,59,Ai,ji&&ji(ko,ro));Xr.current={onUpDown:function(Ao){var $a=xa[Xn];if($a)for(var ss=$a.units.findIndex(function(Eo){return Eo.value===$a.value}),Cs=$a.units.length,Fo=1;Fo<Cs;Fo+=1){var il=$a.units[(ss+Ao*Fo+Cs)%Cs];if(il.disabled!==!0){$a.onSelect(il.value);break}}}};function Ko(co,Ao,$a,ss,Cs){co!==!1&&xa.push({node:u.cloneElement(Ao,{prefixCls:Da,value:$a,active:Xn===xa.length,onSelect:Cs,units:ss,hideDisabledOptions:fa}),onSelect:Cs,value:$a,units:ss})}Ko(Gr,u.createElement(it,{key:"hour"}),ko,is,function(co){Xa(Ea(ja,co,ro,pa),"mouse")}),Ko(ri,u.createElement(it,{key:"minute"}),ro,cs,function(co){Xa(Ea(ja,ko,co,pa),"mouse")}),Ko(rn,u.createElement(it,{key:"second"}),pa,Rs,function(co){Xa(Ea(ja,ko,ro,co),"mouse")});var as=-1;return typeof ja=="boolean"&&(as=ja?1:0),Ko(jn===!0,u.createElement(it,{key:"12hours"}),as,[{label:"AM",value:0,disabled:Co},{label:"PM",value:1,disabled:Lo}],function(co){Xa(Ea(!!co,ko,ro,pa),"mouse")}),u.createElement("div",{className:wa},xa.map(function(co){var Ao=co.node;return Ao}))}var pe=Ge,se=function(Er){return Er.filter(function(Zr){return Zr!==!1}).length};function lt(ht){var Er=ht.generateConfig,Zr=ht.format,Xr=Zr===void 0?"HH:mm:ss":Zr,Xn=ht.prefixCls,un=ht.active,Gr=ht.operationRef,ri=ht.showHour,rn=ht.showMinute,jn=ht.showSecond,oi=ht.use12Hours,li=oi===void 0?!1:oi,ai=ht.onSelect,Ei=ht.value,mi="".concat(Xn,"-time-panel"),Ai=u.useRef(),Ii=u.useState(-1),na=Object(z.a)(Ii,2),ji=na[0],fa=na[1],Xa=se([ri,rn,jn,li]);return Gr.current={onKeyDown:function(wa){return oe(wa,{onLeftRight:function(ja){fa((ji+ja+Xa)%Xa)},onUpDown:function(ja){ji===-1?fa(0):Ai.current&&Ai.current.onUpDown(ja)},onEnter:function(){ai(Ei||Er.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},u.createElement("div",{className:_()(mi,Object(j.a)({},"".concat(mi,"-active"),un))},u.createElement(Ee,Object.assign({},ht,{format:Xr,prefixCls:Xn})),u.createElement(pe,Object.assign({},ht,{prefixCls:Xn,activeColumnIndex:ji,operationRef:Ai})))}var Ze=lt,de=7;function _t(ht,Er){return!ht&&!Er?!0:!ht||!Er?!1:void 0}function er(ht,Er,Zr){var Xr=_t(Er,Zr);if(typeof Xr=="boolean")return Xr;var Xn=Math.floor(ht.getYear(Er)/10),un=Math.floor(ht.getYear(Zr)/10);return Xn===un}function yt(ht,Er,Zr){var Xr=_t(Er,Zr);return typeof Xr=="boolean"?Xr:ht.getYear(Er)===ht.getYear(Zr)}function Ar(ht,Er){var Zr=Math.floor(ht.getMonth(Er)/3);return Zr+1}function Sr(ht,Er,Zr){var Xr=_t(Er,Zr);return typeof Xr=="boolean"?Xr:yt(ht,Er,Zr)&&Ar(ht,Er)===Ar(ht,Zr)}function Cn(ht,Er,Zr){var Xr=_t(Er,Zr);return typeof Xr=="boolean"?Xr:yt(ht,Er,Zr)&&ht.getMonth(Er)===ht.getMonth(Zr)}function mr(ht,Er,Zr){var Xr=_t(Er,Zr);return typeof Xr=="boolean"?Xr:ht.getYear(Er)===ht.getYear(Zr)&&ht.getMonth(Er)===ht.getMonth(Zr)&&ht.getDate(Er)===ht.getDate(Zr)}function Pr(ht,Er,Zr){var Xr=_t(Er,Zr);return typeof Xr=="boolean"?Xr:ht.getHour(Er)===ht.getHour(Zr)&&ht.getMinute(Er)===ht.getMinute(Zr)&&ht.getSecond(Er)===ht.getSecond(Zr)}function gr(ht,Er,Zr,Xr){var Xn=_t(Zr,Xr);return typeof Xn=="boolean"?Xn:ht.locale.getWeek(Er,Zr)===ht.locale.getWeek(Er,Xr)}function Jt(ht,Er,Zr){return mr(ht,Er,Zr)&&Pr(ht,Er,Zr)}function Dt(ht,Er,Zr,Xr){return!Er||!Zr||!Xr?!1:!mr(ht,Er,Xr)&&!mr(ht,Zr,Xr)&&ht.isAfter(Xr,Er)&&ht.isAfter(Zr,Xr)}function dn(ht,Er,Zr){var Xr=Er.locale.getWeekFirstDay(ht),Xn=Er.setDate(Zr,1),un=Er.getWeekDay(Xn),Gr=Er.addDate(Xn,Xr-un);return Er.getMonth(Gr)===Er.getMonth(Zr)&&Er.getDate(Gr)>1&&(Gr=Er.addDate(Gr,-7)),Gr}function Fn(ht,Er,Zr){var Xr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Er){case"year":return Zr.addYear(ht,Xr*10);case"quarter":case"month":return Zr.addYear(ht,Xr);default:return Zr.addMonth(ht,Xr)}}var Zn=u.createContext({}),ci=Zn;function Xi(ht){var Er=ht.cellPrefixCls,Zr=ht.generateConfig,Xr=ht.rangedValue,Xn=ht.hoverRangedValue,un=ht.isInView,Gr=ht.isSameCell,ri=ht.offsetCell,rn=ht.today,jn=ht.value;function oi(li){var ai,Ei=ri(li,-1),mi=ri(li,1),Ai=dt(Xr,0),Ii=dt(Xr,1),na=dt(Xn,0),ji=dt(Xn,1),fa=Dt(Zr,na,ji,li);function Xa(ro){return Gr(Ai,ro)}function xa(ro){return Gr(Ii,ro)}var wa=Gr(na,li),Da=Gr(ji,li),ja=(fa||Da)&&(!un(Ei)||xa(Ei)),ko=(fa||wa)&&(!un(mi)||Xa(mi));return ai={},Object(j.a)(ai,"".concat(Er,"-in-view"),un(li)),Object(j.a)(ai,"".concat(Er,"-in-range"),Dt(Zr,Ai,Ii,li)),Object(j.a)(ai,"".concat(Er,"-range-start"),Xa(li)),Object(j.a)(ai,"".concat(Er,"-range-end"),xa(li)),Object(j.a)(ai,"".concat(Er,"-range-start-single"),Xa(li)&&!Ii),Object(j.a)(ai,"".concat(Er,"-range-end-single"),xa(li)&&!Ai),Object(j.a)(ai,"".concat(Er,"-range-start-near-hover"),Xa(li)&&(Gr(Ei,na)||Dt(Zr,na,ji,Ei))),Object(j.a)(ai,"".concat(Er,"-range-end-near-hover"),xa(li)&&(Gr(mi,ji)||Dt(Zr,na,ji,mi))),Object(j.a)(ai,"".concat(Er,"-range-hover"),fa),Object(j.a)(ai,"".concat(Er,"-range-hover-start"),wa),Object(j.a)(ai,"".concat(Er,"-range-hover-end"),Da),Object(j.a)(ai,"".concat(Er,"-range-hover-edge-start"),ja),Object(j.a)(ai,"".concat(Er,"-range-hover-edge-end"),ko),Object(j.a)(ai,"".concat(Er,"-range-hover-edge-start-near-range"),ja&&Gr(Ei,Ii)),Object(j.a)(ai,"".concat(Er,"-range-hover-edge-end-near-range"),ko&&Gr(mi,Ai)),Object(j.a)(ai,"".concat(Er,"-today"),Gr(rn,li)),Object(j.a)(ai,"".concat(Er,"-selected"),Gr(jn,li)),ai}return oi}function Gn(ht){for(var Er=ht.prefixCls,Zr=ht.disabledDate,Xr=ht.onSelect,Xn=ht.rowNum,un=ht.colNum,Gr=ht.prefixColumn,ri=ht.rowClassName,rn=ht.baseDate,jn=ht.getCellClassName,oi=ht.getCellText,li=ht.getCellNode,ai=ht.getCellDate,Ei=ht.titleCell,mi=ht.headerCells,Ai=u.useContext(ee),Ii=Ai.onDateMouseEnter,na=Ai.onDateMouseLeave,ji="".concat(Er,"-cell"),fa=[],Xa=0;Xa<Xn;Xa+=1){for(var xa=[],wa=void 0,Da=function(ro){var pa=Xa*un+ro,Ea=ai(rn,pa),Fa=Zr&&Zr(Ea);ro===0&&(wa=Ea,Gr&&xa.push(Gr(wa))),xa.push(u.createElement("td",{key:ro,title:Ei&&Ei(Ea),className:_()(ji,Object(W.a)(Object(j.a)({},"".concat(ji,"-disabled"),Fa),jn(Ea))),onClick:function(){Fa||Xr(Ea)},onMouseEnter:function(){!Fa&&Ii&&Ii(Ea)},onMouseLeave:function(){!Fa&&na&&na(Ea)}},li?li(Ea):u.createElement("div",{className:"".concat(ji,"-inner")},oi(Ea))))},ja=0;ja<un;ja+=1)Da(ja);fa.push(u.createElement("tr",{key:Xa,className:ri&&ri(wa)},xa))}return u.createElement("div",{className:"".concat(Er,"-body")},u.createElement("table",{className:"".concat(Er,"-content")},mi&&u.createElement("thead",null,u.createElement("tr",null,mi)),u.createElement("tbody",null,fa)))}function ei(ht){var Er=ht.prefixCls,Zr=ht.generateConfig,Xr=ht.prefixColumn,Xn=ht.locale,un=ht.rowCount,Gr=ht.viewDate,ri=ht.value,rn=ht.dateRender,jn=u.useContext(ci),oi=jn.rangedValue,li=jn.hoverRangedValue,ai=dn(Xn.locale,Zr,Gr),Ei="".concat(Er,"-cell"),mi=Zr.locale.getWeekFirstDay(Xn.locale),Ai=Zr.getNow(),Ii=[],na=Xn.shortWeekDays||(Zr.locale.getShortWeekDays?Zr.locale.getShortWeekDays(Xn.locale):[]);Xr&&Ii.push(u.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var ji=0;ji<de;ji+=1)Ii.push(u.createElement("th",{key:ji},na[(ji+mi)%de]));var fa=Xi({cellPrefixCls:Ei,today:Ai,value:ri,generateConfig:Zr,rangedValue:Xr?null:oi,hoverRangedValue:Xr?null:li,isSameCell:function(wa,Da){return mr(Zr,wa,Da)},isInView:function(wa){return Cn(Zr,wa,Gr)},offsetCell:function(wa,Da){return Zr.addDate(wa,Da)}}),Xa=rn?function(xa){return rn(xa,Ai)}:void 0;return u.createElement(Gn,Object.assign({},ht,{rowNum:un,colNum:de,baseDate:ai,getCellNode:Xa,getCellText:Zr.getDate,getCellClassName:fa,getCellDate:Zr.addDate,titleCell:function(wa){return Zr.locale.format(Xn.locale,wa,"YYYY-MM-DD")},headerCells:Ii}))}var Zt=ei;function Nt(ht){var Er=ht.prefixCls,Zr=ht.generateConfig,Xr=ht.locale,Xn=ht.viewDate,un=ht.onNextMonth,Gr=ht.onPrevMonth,ri=ht.onNextYear,rn=ht.onPrevYear,jn=ht.onYearClick,oi=ht.onMonthClick,li=u.useContext(ee),ai=li.hideHeader;if(ai)return null;var Ei="".concat(Er,"-header"),mi=Xr.shortMonths||(Zr.locale.getShortMonths?Zr.locale.getShortMonths(Xr.locale):[]),Ai=Zr.getMonth(Xn),Ii=u.createElement("button",{type:"button",key:"year",onClick:jn,tabIndex:-1,className:"".concat(Er,"-year-btn")},Zr.locale.format(Xr.locale,Xn,Xr.yearFormat)),na=u.createElement("button",{type:"button",key:"month",onClick:oi,tabIndex:-1,className:"".concat(Er,"-month-btn")},Xr.monthFormat?Zr.locale.format(Xr.locale,Xn,Xr.monthFormat):mi[Ai]),ji=Xr.monthBeforeYear?[na,Ii]:[Ii,na];return u.createElement(be,Object.assign({},ht,{prefixCls:Ei,onSuperPrev:rn,onPrev:Gr,onNext:un,onSuperNext:ri}),ji)}var Me=Nt,ke=6;function Pe(ht){var Er=ht.prefixCls,Zr=ht.panelName,Xr=Zr===void 0?"date":Zr,Xn=ht.keyboardConfig,un=ht.active,Gr=ht.operationRef,ri=ht.generateConfig,rn=ht.value,jn=ht.viewDate,oi=ht.onViewDateChange,li=ht.onPanelChange,ai=ht.onSelect,Ei="".concat(Er,"-").concat(Xr,"-panel");Gr.current={onKeyDown:function(na){return oe(na,Object(W.a)({onLeftRight:function(fa){ai(ri.addDate(rn||jn,fa),"key")},onCtrlLeftRight:function(fa){ai(ri.addYear(rn||jn,fa),"key")},onUpDown:function(fa){ai(ri.addDate(rn||jn,fa*de),"key")},onPageUpDown:function(fa){ai(ri.addMonth(rn||jn,fa),"key")}},Xn))}};var mi=function(na){var ji=ri.addYear(jn,na);oi(ji),li(null,ji)},Ai=function(na){var ji=ri.addMonth(jn,na);oi(ji),li(null,ji)};return u.createElement("div",{className:_()(Ei,Object(j.a)({},"".concat(Ei,"-active"),un))},u.createElement(Me,Object.assign({},ht,{prefixCls:Er,value:rn,viewDate:jn,onPrevYear:function(){mi(-1)},onNextYear:function(){mi(1)},onPrevMonth:function(){Ai(-1)},onNextMonth:function(){Ai(1)},onMonthClick:function(){li("month",jn)},onYearClick:function(){li("year",jn)}})),u.createElement(Zt,Object.assign({},ht,{onSelect:function(na){return ai(na,"mouse")},prefixCls:Er,value:rn,viewDate:jn,rowCount:ke})))}var tt=Pe;function vt(ht,Er,Zr){if(!Zr)return Er;var Xr=Er;return Xr=ht.setHour(Xr,ht.getHour(Zr)),Xr=ht.setMinute(Xr,ht.getMinute(Zr)),Xr=ht.setSecond(Xr,ht.getSecond(Zr)),Xr}var St=mt("date","time");function Vt(ht){var Er=ht.prefixCls,Zr=ht.operationRef,Xr=ht.generateConfig,Xn=ht.value,un=ht.defaultValue,Gr=ht.disabledTime,ri=ht.showTime,rn=ht.onSelect,jn="".concat(Er,"-datetime-panel"),oi=u.useState(null),li=Object(z.a)(oi,2),ai=li[0],Ei=li[1],mi=u.useRef({}),Ai=u.useRef({}),Ii=Object(Q.a)(ri)==="object"?Object(W.a)({},ri):{};function na(xa){var wa=St.indexOf(ai)+xa,Da=St[wa]||null;return Da}var ji=function(wa){Ai.current.onBlur&&Ai.current.onBlur(wa),Ei(null)};Zr.current={onKeyDown:function(wa){if(wa.which===G.a.TAB){var Da=na(wa.shiftKey?-1:1);return Ei(Da),Da&&wa.preventDefault(),!0}if(ai){var ja=ai==="date"?mi:Ai;return ja.current&&ja.current.onKeyDown&&ja.current.onKeyDown(wa),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(wa.which)?(Ei("date"),!0):!1},onBlur:ji,onClose:ji};var fa=function(wa,Da){var ja=wa;Da==="date"&&!Xn&&Ii.defaultValue?(ja=Xr.setHour(ja,Xr.getHour(Ii.defaultValue)),ja=Xr.setMinute(ja,Xr.getMinute(Ii.defaultValue)),ja=Xr.setSecond(ja,Xr.getSecond(Ii.defaultValue))):Da==="time"&&!Xn&&un&&(ja=Xr.setYear(ja,Xr.getYear(un)),ja=Xr.setMonth(ja,Xr.getMonth(un)),ja=Xr.setDate(ja,Xr.getDate(un))),rn&&rn(ja,"mouse")},Xa=Gr?Gr(Xn||null):{};return u.createElement("div",{className:_()(jn,Object(j.a)({},"".concat(jn,"-active"),ai))},u.createElement(tt,Object.assign({},ht,{operationRef:mi,active:ai==="date",onSelect:function(wa){fa(vt(Xr,wa,ri&&Object(Q.a)(ri)==="object"?ri.defaultValue:null),"date")}})),u.createElement(Ze,Object.assign({},ht,{format:void 0},Ii,Xa,{defaultValue:void 0,operationRef:Ai,active:ai==="time",onSelect:function(wa){fa(wa,"time")}})))}var Mr=Vt;function $r(ht){var Er=ht.prefixCls,Zr=ht.generateConfig,Xr=ht.locale,Xn=ht.value,un="".concat(Er,"-cell"),Gr=function(oi){return u.createElement("td",{key:"week",className:_()(un,"".concat(un,"-week"))},Zr.locale.getWeek(Xr.locale,oi))},ri="".concat(Er,"-week-panel-row"),rn=function(oi){return _()(ri,Object(j.a)({},"".concat(ri,"-selected"),gr(Zr,Xr.locale,Xn,oi)))};return u.createElement(tt,Object.assign({},ht,{panelName:"week",prefixColumn:Gr,rowClassName:rn,keyboardConfig:{onLeftRight:null}}))}var vn=$r;function jt(ht){var Er=ht.prefixCls,Zr=ht.generateConfig,Xr=ht.locale,Xn=ht.viewDate,un=ht.onNextYear,Gr=ht.onPrevYear,ri=ht.onYearClick,rn=u.useContext(ee),jn=rn.hideHeader;if(jn)return null;var oi="".concat(Er,"-header");return u.createElement(be,Object.assign({},ht,{prefixCls:oi,onSuperPrev:Gr,onSuperNext:un}),u.createElement("button",{type:"button",onClick:ri,className:"".concat(Er,"-year-btn")},Zr.locale.format(Xr.locale,Xn,Xr.yearFormat)))}var gt=jt,pt=3,ar=4;function Ht(ht){var Er=ht.prefixCls,Zr=ht.locale,Xr=ht.value,Xn=ht.viewDate,un=ht.generateConfig,Gr=ht.monthCellRender,ri=u.useContext(ci),rn=ri.rangedValue,jn=ri.hoverRangedValue,oi="".concat(Er,"-cell"),li=Xi({cellPrefixCls:oi,value:Xr,generateConfig:un,rangedValue:rn,hoverRangedValue:jn,isSameCell:function(Ii,na){return Cn(un,Ii,na)},isInView:function(){return!0},offsetCell:function(Ii,na){return un.addMonth(Ii,na)}}),ai=Zr.shortMonths||(un.locale.getShortMonths?un.locale.getShortMonths(Zr.locale):[]),Ei=un.setMonth(Xn,0),mi=Gr?function(Ai){return Gr(Ai,Zr)}:void 0;return u.createElement(Gn,Object.assign({},ht,{rowNum:ar,colNum:pt,baseDate:Ei,getCellNode:mi,getCellText:function(Ii){return Zr.monthFormat?un.locale.format(Zr.locale,Ii,Zr.monthFormat):ai[un.getMonth(Ii)]},getCellClassName:li,getCellDate:un.addMonth,titleCell:function(Ii){return un.locale.format(Zr.locale,Ii,"YYYY-MM")}}))}var Mt=Ht;function qt(ht){var Er=ht.prefixCls,Zr=ht.operationRef,Xr=ht.onViewDateChange,Xn=ht.generateConfig,un=ht.value,Gr=ht.viewDate,ri=ht.onPanelChange,rn=ht.onSelect,jn="".concat(Er,"-month-panel");Zr.current={onKeyDown:function(ai){return oe(ai,{onLeftRight:function(mi){rn(Xn.addMonth(un||Gr,mi),"key")},onCtrlLeftRight:function(mi){rn(Xn.addYear(un||Gr,mi),"key")},onUpDown:function(mi){rn(Xn.addMonth(un||Gr,mi*pt),"key")},onEnter:function(){ri("date",un||Gr)}})}};var oi=function(ai){var Ei=Xn.addYear(Gr,ai);Xr(Ei),ri(null,Ei)};return u.createElement("div",{className:jn},u.createElement(gt,Object.assign({},ht,{prefixCls:Er,onPrevYear:function(){oi(-1)},onNextYear:function(){oi(1)},onYearClick:function(){ri("year",Gr)}})),u.createElement(Mt,Object.assign({},ht,{prefixCls:Er,onSelect:function(ai){rn(ai,"mouse"),ri("date",ai)}})))}var Rt=qt;function Qt(ht){var Er=ht.prefixCls,Zr=ht.generateConfig,Xr=ht.locale,Xn=ht.viewDate,un=ht.onNextYear,Gr=ht.onPrevYear,ri=ht.onYearClick,rn=u.useContext(ee),jn=rn.hideHeader;if(jn)return null;var oi="".concat(Er,"-header");return u.createElement(be,Object.assign({},ht,{prefixCls:oi,onSuperPrev:Gr,onSuperNext:un}),u.createElement("button",{type:"button",onClick:ri,className:"".concat(Er,"-year-btn")},Zr.locale.format(Xr.locale,Xn,Xr.yearFormat)))}var jr=Qt,Nr=4,Lr=1;function ln(ht){var Er=ht.prefixCls,Zr=ht.locale,Xr=ht.value,Xn=ht.viewDate,un=ht.generateConfig,Gr=u.useContext(ci),ri=Gr.rangedValue,rn=Gr.hoverRangedValue,jn="".concat(Er,"-cell"),oi=Xi({cellPrefixCls:jn,value:Xr,generateConfig:un,rangedValue:ri,hoverRangedValue:rn,isSameCell:function(Ei,mi){return Sr(un,Ei,mi)},isInView:function(){return!0},offsetCell:function(Ei,mi){return un.addMonth(Ei,mi*3)}}),li=un.setDate(un.setMonth(Xn,0),1);return u.createElement(Gn,Object.assign({},ht,{rowNum:Lr,colNum:Nr,baseDate:li,getCellText:function(Ei){return un.locale.format(Zr.locale,Ei,Zr.quarterFormat||"[Q]Q")},getCellClassName:oi,getCellDate:function(Ei,mi){return un.addMonth(Ei,mi*3)},titleCell:function(Ei){return un.locale.format(Zr.locale,Ei,"YYYY-[Q]Q")}}))}var mn=ln;function ti(ht){var Er=ht.prefixCls,Zr=ht.operationRef,Xr=ht.onViewDateChange,Xn=ht.generateConfig,un=ht.value,Gr=ht.viewDate,ri=ht.onPanelChange,rn=ht.onSelect,jn="".concat(Er,"-quarter-panel");Zr.current={onKeyDown:function(ai){return oe(ai,{onLeftRight:function(mi){rn(Xn.addMonth(un||Gr,mi*3),"key")},onCtrlLeftRight:function(mi){rn(Xn.addYear(un||Gr,mi),"key")},onUpDown:function(mi){rn(Xn.addYear(un||Gr,mi),"key")}})}};var oi=function(ai){var Ei=Xn.addYear(Gr,ai);Xr(Ei),ri(null,Ei)};return u.createElement("div",{className:jn},u.createElement(jr,Object.assign({},ht,{prefixCls:Er,onPrevYear:function(){oi(-1)},onNextYear:function(){oi(1)},onYearClick:function(){ri("year",Gr)}})),u.createElement(mn,Object.assign({},ht,{prefixCls:Er,onSelect:function(ai){rn(ai,"mouse")}})))}var $n=ti;function hi(ht){var Er=ht.prefixCls,Zr=ht.generateConfig,Xr=ht.viewDate,Xn=ht.onPrevDecade,un=ht.onNextDecade,Gr=ht.onDecadeClick,ri=u.useContext(ee),rn=ri.hideHeader;if(rn)return null;var jn="".concat(Er,"-header"),oi=Zr.getYear(Xr),li=Math.floor(oi/Ue)*Ue,ai=li+Ue-1;return u.createElement(be,Object.assign({},ht,{prefixCls:jn,onSuperPrev:Xn,onSuperNext:un}),u.createElement("button",{type:"button",onClick:Gr,className:"".concat(Er,"-decade-btn")},li,"-",ai))}var Ti=hi,Ni=3,Wi=4;function rt(ht){var Er=ht.prefixCls,Zr=ht.value,Xr=ht.viewDate,Xn=ht.locale,un=ht.generateConfig,Gr=u.useContext(ci),ri=Gr.rangedValue,rn=Gr.hoverRangedValue,jn="".concat(Er,"-cell"),oi=un.getYear(Xr),li=Math.floor(oi/Ue)*Ue,ai=li+Ue-1,Ei=un.setYear(Xr,li-Math.ceil((Ni*Wi-Ue)/2)),mi=function(na){var ji=un.getYear(na);return li<=ji&&ji<=ai},Ai=Xi({cellPrefixCls:jn,value:Zr,generateConfig:un,rangedValue:ri,hoverRangedValue:rn,isSameCell:function(na,ji){return yt(un,na,ji)},isInView:mi,offsetCell:function(na,ji){return un.addYear(na,ji)}});return u.createElement(Gn,Object.assign({},ht,{rowNum:Wi,colNum:Ni,baseDate:Ei,getCellText:un.getYear,getCellClassName:Ai,getCellDate:un.addYear,titleCell:function(na){return un.locale.format(Xn.locale,na,"YYYY")}}))}var Re=rt,Ue=10;function Ye(ht){var Er=ht.prefixCls,Zr=ht.operationRef,Xr=ht.onViewDateChange,Xn=ht.generateConfig,un=ht.value,Gr=ht.viewDate,ri=ht.sourceMode,rn=ht.onSelect,jn=ht.onPanelChange,oi="".concat(Er,"-year-panel");Zr.current={onKeyDown:function(Ei){return oe(Ei,{onLeftRight:function(Ai){rn(Xn.addYear(un||Gr,Ai),"key")},onCtrlLeftRight:function(Ai){rn(Xn.addYear(un||Gr,Ai*Ue),"key")},onUpDown:function(Ai){rn(Xn.addYear(un||Gr,Ai*Ni),"key")},onEnter:function(){jn(ri==="date"?"date":"month",un||Gr)}})}};var li=function(Ei){var mi=Xn.addYear(Gr,Ei*10);Xr(mi),jn(null,mi)};return u.createElement("div",{className:oi},u.createElement(Ti,Object.assign({},ht,{prefixCls:Er,onPrevDecade:function(){li(-1)},onNextDecade:function(){li(1)},onDecadeClick:function(){jn("decade",Gr)}})),u.createElement(Re,Object.assign({},ht,{prefixCls:Er,onSelect:function(Ei){jn(ri==="date"?"date":"month",Ei),rn(Ei,"mouse")}})))}var et=Ye;function $e(ht){var Er=ht.prefixCls,Zr=ht.generateConfig,Xr=ht.viewDate,Xn=ht.onPrevDecades,un=ht.onNextDecades,Gr=u.useContext(ee),ri=Gr.hideHeader;if(ri)return null;var rn="".concat(Er,"-header"),jn=Zr.getYear(Xr),oi=Math.floor(jn/fn)*fn,li=oi+fn-1;return u.createElement(be,Object.assign({},ht,{prefixCls:rn,onSuperPrev:Xn,onSuperNext:un}),oi,"-",li)}var at=$e,wt=3,ft=4;function cr(ht){var Er=Qr-1,Zr=ht.prefixCls,Xr=ht.viewDate,Xn=ht.generateConfig,un=ht.disabledDate,Gr="".concat(Zr,"-cell"),ri=Xn.getYear(Xr),rn=Math.floor(ri/Qr)*Qr,jn=Math.floor(ri/fn)*fn,oi=jn+fn-1,li=Xn.setYear(Xr,jn-Math.ceil((wt*ft*Qr-fn)/2)),ai=function(mi){var Ai,Ii=un&&un(mi),na=Xn.getYear(mi),ji=na+Er;return Ai={},Object(j.a)(Ai,"".concat(Gr,"-disabled"),Ii),Object(j.a)(Ai,"".concat(Gr,"-in-view"),jn<=na&&ji<=oi),Object(j.a)(Ai,"".concat(Gr,"-selected"),na===rn),Ai};return u.createElement(Gn,Object.assign({},ht,{rowNum:ft,colNum:wt,baseDate:li,getCellText:function(mi){var Ai=Xn.getYear(mi);return"".concat(Ai,"-").concat(Ai+Er)},getCellClassName:ai,getCellDate:function(mi,Ai){return Xn.addYear(mi,Ai*Qr)}}))}var Jr=cr,Qr=10,fn=Qr*10;function pr(ht){var Er=ht.prefixCls,Zr=ht.onViewDateChange,Xr=ht.generateConfig,Xn=ht.viewDate,un=ht.operationRef,Gr=ht.onSelect,ri=ht.onPanelChange,rn="".concat(Er,"-decade-panel");un.current={onKeyDown:function(ai){return oe(ai,{onLeftRight:function(mi){Gr(Xr.addYear(Xn,mi*Qr),"key")},onCtrlLeftRight:function(mi){Gr(Xr.addYear(Xn,mi*fn),"key")},onUpDown:function(mi){Gr(Xr.addYear(Xn,mi*Qr*wt),"key")},onEnter:function(){ri("year",Xn)}})}};var jn=function(ai){var Ei=Xr.addYear(Xn,ai*fn);Zr(Ei),ri(null,Ei)},oi=function(ai){Gr(ai,"mouse"),ri("year",ai)};return u.createElement("div",{className:rn},u.createElement(at,Object.assign({},ht,{prefixCls:Er,onPrevDecades:function(){jn(-1)},onNextDecades:function(){jn(1)}})),u.createElement(Jr,Object.assign({},ht,{prefixCls:Er,onSelect:oi})))}var Wn=pr;function kr(ht,Er,Zr){return Zr?u.createElement("div",{className:"".concat(ht,"-footer-extra")},Zr(Er)):null}function kn(ht){var Er=ht.prefixCls,Zr=ht.rangeList,Xr=Zr===void 0?[]:Zr,Xn=ht.components,un=Xn===void 0?{}:Xn,Gr=ht.needConfirmButton,ri=ht.onNow,rn=ht.onOk,jn=ht.okDisabled,oi=ht.showNow,li=ht.locale,ai,Ei;if(Xr.length){var mi=un.rangeItem||"span";ai=u.createElement(u.Fragment,null,Xr.map(function(Ii){var na=Ii.label,ji=Ii.onClick,fa=Ii.onMouseEnter,Xa=Ii.onMouseLeave;return u.createElement("li",{key:na,className:"".concat(Er,"-preset")},u.createElement(mi,{onClick:ji,onMouseEnter:fa,onMouseLeave:Xa},na))}))}if(Gr){var Ai=un.button||"button";ri&&!ai&&oi!==!1&&(ai=u.createElement("li",{className:"".concat(Er,"-now")},u.createElement("a",{className:"".concat(Er,"-now-btn"),onClick:ri},li.now))),Ei=Gr&&u.createElement("li",{className:"".concat(Er,"-ok")},u.createElement(Ai,{disabled:jn,onClick:rn},li.ok))}return!ai&&!Ei?null:u.createElement("ul",{className:"".concat(Er,"-ranges")},ai,Ei)}function bn(ht){var Er,Zr=ht.prefixCls,Xr=Zr===void 0?"rc-picker":Zr,Xn=ht.className,un=ht.style,Gr=ht.locale,ri=ht.generateConfig,rn=ht.value,jn=ht.defaultValue,oi=ht.pickerValue,li=ht.defaultPickerValue,ai=ht.disabledDate,Ei=ht.mode,mi=ht.picker,Ai=mi===void 0?"date":mi,Ii=ht.tabIndex,na=Ii===void 0?0:Ii,ji=ht.showNow,fa=ht.showTime,Xa=ht.showToday,xa=ht.renderExtraFooter,wa=ht.hideHeader,Da=ht.onSelect,ja=ht.onChange,ko=ht.onPanelChange,ro=ht.onMouseDown,pa=ht.onPickerValueChange,Ea=ht.onOk,Fa=ht.components,Ka=ht.direction,lo=ht.hourStep,so=lo===void 0?1:lo,Co=ht.minuteStep,Lo=Co===void 0?1:Co,is=ht.secondStep,cs=is===void 0?1:is,Rs=Ai==="date"&&!!fa||Ai==="time",Ko=24%so===0,as=60%Lo===0,co=60%cs===0,Ao=u.useContext(ee),$a=Ao.operationRef,ss=Ao.panelRef,Cs=Ao.onSelect,Fo=Ao.hideRanges,il=Ao.defaultOpenValue,Eo=u.useContext(ci),zo=Eo.inRange,Bs=Eo.panelPosition,ms=Eo.rangedValue,hs=Eo.hoverRangedValue,An=u.useRef({}),Ns=u.useRef(!0),Ll=Object(V.a)(null,{value:rn,defaultValue:jn,postState:function(gi){return!gi&&il&&Ai==="time"?il:gi}}),el=Object(z.a)(Ll,2),Gs=el[0],ds=el[1],ks=Object(V.a)(null,{value:oi,defaultValue:li||Gs,postState:function(gi){return gi||ri.getNow()}}),Qs=Object(z.a)(ks,2),tl=Qs[0],xs=Qs[1],Us=function(gi){xs(gi),pa&&pa(gi)},al=function(gi){var Gi=me[Ai];return Gi?Gi(gi):gi},Js=Object(V.a)(function(){return Ai==="time"?"time":al("date")},{value:Ei}),Vo=Object(z.a)(Js,2),No=Vo[0],fs=Vo[1];u.useEffect(function(){fs(Ai)},[Ai]);var Ds=u.useState(function(){return No}),go=Object(z.a)(Ds,2),Ft=go[0],nr=go[1],On=function(gi,Gi){var sa=al(gi||No);nr(No),fs(sa),ko&&(No!==sa||Jt(ri,tl,tl))&&ko(Gi,sa)},di=function(gi,Gi){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(No===Ai||sa)&&(ds(gi),Da&&Da(gi),Cs&&Cs(gi,Gi),ja&&!Jt(ri,gi,Gs)&&ja(gi))},It=function(gi){return An.current&&An.current.onKeyDown?([G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN,G.a.PAGE_UP,G.a.PAGE_DOWN,G.a.ENTER].includes(gi.which)&&gi.preventDefault(),An.current.onKeyDown(gi)):(Object(x.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ce=function(gi){An.current&&An.current.onBlur&&An.current.onBlur(gi)};$a&&Bs!=="right"&&($a.current={onKeyDown:It,onClose:function(){An.current&&An.current.onClose&&An.current.onClose()}}),u.useEffect(function(){rn&&!Ns.current&&xs(rn)},[rn]),u.useEffect(function(){Ns.current=!1},[]);var Se,Le=Object(W.a)(Object(W.a)({},ht),{},{operationRef:An,prefixCls:Xr,viewDate:tl,value:Gs,onViewDateChange:Us,sourceMode:Ft,onPanelChange:On,disabledDate:No!=="decade"?ai:void 0});delete Le.onChange,delete Le.onSelect;switch(No){case"decade":Se=u.createElement(Wn,Object.assign({},Le,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}}));break;case"year":Se=u.createElement(et,Object.assign({},Le,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}}));break;case"month":Se=u.createElement(Rt,Object.assign({},Le,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}}));break;case"quarter":Se=u.createElement($n,Object.assign({},Le,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}}));break;case"week":Se=u.createElement(vn,Object.assign({},Le,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}}));break;case"time":delete Le.showTime,Se=u.createElement(Ze,Object.assign({},Le,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}}));break;default:fa?Se=u.createElement(Mr,Object.assign({},Le,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}})):Se=u.createElement(tt,Object.assign({},Le,{onSelect:function(gi,Gi){Us(gi),di(gi,Gi)}}))}var Qe,Lt,ir=function(){var gi=ri.getNow(),Gi=Gt(ri.getHour(gi),ri.getMinute(gi),ri.getSecond(gi),Ko?so:1,as?Lo:1,co?cs:1),sa=hr(ri,gi,Gi[0],Gi[1],Gi[2]);di(sa,"submit")};Fo||(Qe=kr(Xr,No,xa),Lt=kn({prefixCls:Xr,components:Fa,needConfirmButton:Rs,okDisabled:!Gs||ai&&ai(Gs),locale:Gr,showNow:ji,onNow:Rs&&ir,onOk:function(){Gs&&(di(Gs,"submit",!0),Ea&&Ea(Gs))}}));var Yr;if(Xa&&No==="date"&&Ai==="date"&&!fa){var hn=ri.getNow(),In="".concat(Xr,"-today-btn"),si=ai&&ai(hn);Yr=u.createElement("a",{className:_()(In,si&&"".concat(In,"-disabled")),"aria-disabled":si,onClick:function(){si||di(hn,"mouse",!0)}},Gr.today)}return u.createElement(ee.Provider,{value:Object(W.a)(Object(W.a)({},Ao),{},{hideHeader:"hideHeader"in ht?wa:Ao.hideHeader,hidePrevBtn:zo&&Bs==="right",hideNextBtn:zo&&Bs==="left"})},u.createElement("div",{tabIndex:na,className:_()("".concat(Xr,"-panel"),Xn,(Er={},Object(j.a)(Er,"".concat(Xr,"-panel-has-range"),ms&&ms[0]&&ms[1]),Object(j.a)(Er,"".concat(Xr,"-panel-has-range-hover"),hs&&hs[0]&&hs[1]),Object(j.a)(Er,"".concat(Xr,"-panel-rtl"),Ka==="rtl"),Er)),style:un,onKeyDown:It,onBlur:ce,onMouseDown:ro,ref:ss},Se,Qe||Lt||Yr?u.createElement("div",{className:"".concat(Xr,"-footer")},Qe,Lt,Yr):null))}var qr=bn,fi=n("JX7q"),Mi=n("i8i4"),Zi=n.n(Mi),tn=n("l4aY"),En=n("m+aA"),Vn=n("c+Xe"),Wt=n("zT1h"),Et=n("QC+M");function kt(ht,Er,Zr){return Zr?ht[0]===Er[0]:ht[0]===Er[0]&&ht[1]===Er[1]}function Bt(ht,Er,Zr){var Xr=ht[Er]||{};return Object(W.a)(Object(W.a)({},Xr),Zr)}function Kt(ht,Er,Zr,Xr){for(var Xn=Zr.points,un=Object.keys(ht),Gr=0;Gr<un.length;Gr+=1){var ri=un[Gr];if(kt(ht[ri].points,Xn,Xr))return"".concat(Er,"-placement-").concat(ri)}return""}var Ot=n("Ff2n"),sr=n("xEkU"),fr=n.n(sr),vr=n("9mu1"),Rr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Kn(ht,Er){var Zr={};return Zr[ht.toLowerCase()]=Er.toLowerCase(),Zr["Webkit".concat(ht)]="webkit".concat(Er),Zr["Moz".concat(ht)]="moz".concat(Er),Zr["ms".concat(ht)]="MS".concat(Er),Zr["O".concat(ht)]="o".concat(Er.toLowerCase()),Zr}function Dn(ht,Er){var Zr={animationend:Kn("Animation","AnimationEnd"),transitionend:Kn("Transition","TransitionEnd")};return ht&&("AnimationEvent"in Er||delete Zr.animationend.animation,"TransitionEvent"in Er||delete Zr.transitionend.transition),Zr}var ui=Dn(Rr,typeof window!="undefined"?window:{}),pn={};if(Rr){var Br=document.createElement("div");pn=Br.style}var Tn={};function zn(ht){if(Tn[ht])return Tn[ht];var Er=ui[ht];if(Er)for(var Zr=Object.keys(Er),Xr=Zr.length,Xn=0;Xn<Xr;Xn+=1){var un=Zr[Xn];if(Object.prototype.hasOwnProperty.call(Er,un)&&un in pn)return Tn[ht]=Er[un],Tn[ht]}return""}var Qn=zn("animationend"),ii=zn("transitionend"),xi=!!(Qn&&ii);function Di(ht,Er){if(!ht)return null;if(Object(Q.a)(ht)==="object"){var Zr=Er.replace(/-\w/g,function(Xr){return Xr[1].toUpperCase()});return ht[Zr]}return"".concat(ht,"-").concat(Er)}var Li="none",oa="appear",ma="enter",ia="leave";function ba(ht){var Er=ht,Zr=!!u.forwardRef;Object(Q.a)(ht)==="object"&&(Er=ht.transitionSupport,Zr="forwardRef"in ht?ht.forwardRef:Zr);function Xr(un){return!!(un.motionName&&Er)}var Xn=function(un){Object(X.a)(ri,un);var Gr=Object(B.a)(ri);function ri(){var rn;return Object(F.a)(this,ri),rn=Gr.apply(this,arguments),rn.$cacheEle=null,rn.node=null,rn.raf=null,rn.destroyed=!1,rn.deadlineId=null,rn.state={status:Li,statusActive:!1,newStatus:!1,statusStyle:null},rn.onDomUpdate=function(){var jn=rn.state,oi=jn.status,li=jn.newStatus,ai=rn.props,Ei=ai.onAppearStart,mi=ai.onEnterStart,Ai=ai.onLeaveStart,Ii=ai.onAppearActive,na=ai.onEnterActive,ji=ai.onLeaveActive,fa=ai.motionAppear,Xa=ai.motionEnter,xa=ai.motionLeave;if(!Xr(rn.props))return;var wa=rn.getElement();rn.$cacheEle!==wa&&(rn.removeEventListener(rn.$cacheEle),rn.addEventListener(wa),rn.$cacheEle=wa),li&&oi===oa&&fa?rn.updateStatus(Ei,null,null,function(){rn.updateActiveStatus(Ii,oa)}):li&&oi===ma&&Xa?rn.updateStatus(mi,null,null,function(){rn.updateActiveStatus(na,ma)}):li&&oi===ia&&xa&&rn.updateStatus(Ai,null,null,function(){rn.updateActiveStatus(ji,ia)})},rn.onMotionEnd=function(jn){if(jn&&!jn.deadline&&jn.target!==rn.getElement())return;var oi=rn.state,li=oi.status,ai=oi.statusActive,Ei=rn.props,mi=Ei.onAppearEnd,Ai=Ei.onEnterEnd,Ii=Ei.onLeaveEnd;li===oa&&ai?rn.updateStatus(mi,{status:Li},jn):li===ma&&ai?rn.updateStatus(Ai,{status:Li},jn):li===ia&&ai&&rn.updateStatus(Ii,{status:Li},jn)},rn.setNodeRef=function(jn){var oi=rn.props.internalRef;rn.node=jn,Object(Vn.b)(oi,jn)},rn.getElement=function(){try{return Object(En.a)(rn.node||Object(fi.a)(rn))}catch(jn){return rn.$cacheEle}},rn.addEventListener=function(jn){if(!jn)return;jn.addEventListener(ii,rn.onMotionEnd),jn.addEventListener(Qn,rn.onMotionEnd)},rn.removeEventListener=function(jn){if(!jn)return;jn.removeEventListener(ii,rn.onMotionEnd),jn.removeEventListener(Qn,rn.onMotionEnd)},rn.updateStatus=function(jn,oi,li,ai){var Ei=jn?jn(rn.getElement(),li):null;if(Ei===!1||rn.destroyed)return;var mi;ai&&(mi=function(){rn.nextFrame(ai)}),rn.setState(Object(W.a)({statusStyle:Object(Q.a)(Ei)==="object"?Ei:null,newStatus:!1},oi),mi)},rn.updateActiveStatus=function(jn,oi){rn.nextFrame(function(){var li=rn.state.status;if(li!==oi)return;var ai=rn.props.motionDeadline;rn.updateStatus(jn,{statusActive:!0}),ai>0&&(rn.deadlineId=setTimeout(function(){rn.onMotionEnd({deadline:!0})},ai))})},rn.nextFrame=function(jn){rn.cancelNextFrame(),rn.raf=fr()(jn)},rn.cancelNextFrame=function(){rn.raf&&(fr.a.cancel(rn.raf),rn.raf=null)},rn}return Object(P.a)(ri,[{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 jn,oi=this.state,li=oi.status,ai=oi.statusActive,Ei=oi.statusStyle,mi=this.props,Ai=mi.children,Ii=mi.motionName,na=mi.visible,ji=mi.removeOnLeave,fa=mi.leavedClassName,Xa=mi.eventProps;return Ai?li===Li||!Xr(this.props)?na?Ai(Object(W.a)({},Xa),this.setNodeRef):ji?null:Ai(Object(W.a)(Object(W.a)({},Xa),{},{className:fa}),this.setNodeRef):Ai(Object(W.a)(Object(W.a)({},Xa),{},{className:_()(Di(Ii,li),(jn={},Object(j.a)(jn,Di(Ii,"".concat(li,"-active")),ai),Object(j.a)(jn,Ii,typeof Ii=="string"),jn)),style:Ei}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(jn,oi){var li=oi.prevProps,ai=oi.status;if(!Xr(jn))return{};var Ei=jn.visible,mi=jn.motionAppear,Ai=jn.motionEnter,Ii=jn.motionLeave,na=jn.motionLeaveImmediately,ji={prevProps:jn};return(ai===oa&&!mi||ai===ma&&!Ai||ai===ia&&!Ii)&&(ji.status=Li,ji.statusActive=!1,ji.newStatus=!1),!li&&Ei&&mi&&(ji.status=oa,ji.statusActive=!1,ji.newStatus=!0),li&&!li.visible&&Ei&&Ai&&(ji.status=ma,ji.statusActive=!1,ji.newStatus=!0),(li&&li.visible&&!Ei&&Ii||!li&&na&&!Ei&&Ii)&&(ji.status=ia,ji.statusActive=!1,ji.newStatus=!0),ji}}]),ri}(u.Component);return Xn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Zr?u.forwardRef(function(un,Gr){return u.createElement(Xn,Object.assign({internalRef:Gr},un))}):Xn}var vi=ba(xi),Ln="add",Fi="keep",ha="remove",ea="removed";function aa(ht){var Er;return ht&&Object(Q.a)(ht)==="object"&&"key"in ht?Er=ht:Er={key:ht},Object(W.a)(Object(W.a)({},Er),{},{key:String(Er.key)})}function Ir(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ht.map(aa)}function wr(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Zr=[],Xr=0,Xn=Er.length,un=Ir(ht),Gr=Ir(Er);un.forEach(function(jn){for(var oi=!1,li=Xr;li<Xn;li+=1){var ai=Gr[li];if(ai.key===jn.key){Xr<li&&(Zr=Zr.concat(Gr.slice(Xr,li).map(function(Ei){return Object(W.a)(Object(W.a)({},Ei),{},{status:Ln})})),Xr=li),Zr.push(Object(W.a)(Object(W.a)({},ai),{},{status:Fi})),Xr+=1,oi=!0;break}}oi||Zr.push(Object(W.a)(Object(W.a)({},jn),{},{status:ha}))}),Xr<Xn&&(Zr=Zr.concat(Gr.slice(Xr).map(function(jn){return Object(W.a)(Object(W.a)({},jn),{},{status:Ln})})));var ri={};Zr.forEach(function(jn){var oi=jn.key;ri[oi]=(ri[oi]||0)+1});var rn=Object.keys(ri).filter(function(jn){return ri[jn]>1});return rn.forEach(function(jn){Zr=Zr.filter(function(oi){var li=oi.key,ai=oi.status;return li!==jn||ai!==ha}),Zr.forEach(function(oi){oi.key===jn&&(oi.status=Fi)})}),Zr}var xn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ur(ht){var Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vi,Zr=function(Xr){Object(X.a)(un,Xr);var Xn=Object(B.a)(un);function un(){var Gr;return Object(F.a)(this,un),Gr=Xn.apply(this,arguments),Gr.state={keyEntities:[]},Gr.removeKey=function(ri){Gr.setState(function(rn){var jn=rn.keyEntities;return{keyEntities:jn.map(function(oi){return oi.key!==ri?oi:Object(W.a)(Object(W.a)({},oi),{},{status:ea})})}})},Gr}return Object(P.a)(un,[{key:"render",value:function(){var ri=this,rn=this.state.keyEntities,jn=this.props,oi=jn.component,li=jn.children,ai=Object(Ot.a)(jn,["component","children"]),Ei=oi||u.Fragment,mi={};return xn.forEach(function(Ai){mi[Ai]=ai[Ai],delete ai[Ai]}),delete ai.keys,u.createElement(Ei,Object.assign({},ai),rn.map(function(Ai){var Ii=Ai.status,na=Object(Ot.a)(Ai,["status"]),ji=Ii===Ln||Ii===Fi;return u.createElement(Er,Object.assign({},mi,{key:na.key,visible:ji,eventProps:na,onLeaveEnd:function(){mi.onLeaveEnd&&mi.onLeaveEnd.apply(mi,arguments),ri.removeKey(na.key)}}),li)}))}}],[{key:"getDerivedStateFromProps",value:function(ri,rn){var jn=ri.keys,oi=rn.keyEntities,li=Ir(jn);if(!ht)return{keyEntities:li.map(function(mi){return Object(W.a)(Object(W.a)({},mi),{},{status:Fi})})};var ai=wr(oi,li),Ei=oi.length;return{keyEntities:ai.filter(function(mi){for(var Ai=null,Ii=0;Ii<Ei;Ii+=1){var na=oi[Ii];if(na.key===mi.key){Ai=na;break}}return!(Ai&&Ai.status===ea&&mi.status===ha)})}}}]),un}(u.Component);return Zr.defaultProps={component:"div"},Zr}var Dr=ur(xi),Vr=vi,sn=function(Er,Zr){var Xr=Er.prefixCls,Xn=Er.className,un=Er.style,Gr=Er.children,ri=Er.onMouseEnter,rn=Er.onMouseLeave,jn=Er.onMouseDown,oi=Er.onTouchStart,li=Gr;return u.Children.count(Gr)>1&&(li=u.createElement("div",{className:"".concat(Xr,"-content")},Gr)),u.createElement("div",{ref:Zr,className:Xn,onMouseEnter:ri,onMouseLeave:rn,onMouseDown:jn,onTouchStart:oi,style:un},li)},Rn=u.forwardRef(sn);Rn.displayName="PopupInner";var xt=Rn;function _r(ht){var Er=ht.prefixCls,Zr=ht.motion,Xr=ht.animation,Xn=ht.transitionName;return Zr||(Xr?{motionName:"".concat(Er,"-").concat(Xr)}:Xn?{motionName:Xn}:null)}function Or(ht){return ht&&ht.motionName}var en=function(ht){Object(X.a)(Zr,ht);var Er=Object(B.a)(Zr);function Zr(){var Xr;return Object(F.a)(this,Zr),Xr=Er.apply(this,arguments),Xr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Xr.popupRef=a.a.createRef(),Xr.alignRef=a.a.createRef(),Xr.nextFrameState=null,Xr.nextFrameId=null,Xr.onAlign=function(Xn,un){var Gr=Xr.state.status,ri=Xr.props,rn=ri.getClassNameFromAlign,jn=ri.onAlign,oi=rn(un);Gr==="align"?Xr.setState({alignClassName:oi,status:"aligned"},function(){Xr.alignRef.current.forceAlign()}):Gr==="aligned"?(Xr.setState({alignClassName:oi,status:"afterAlign"}),jn(Xn,un)):Xr.setState({alignClassName:oi})},Xr.onMotionEnd=function(){var Xn=Xr.props.visible;Xr.setState({status:Xn?"AfterMotion":"stable",inMotion:!1})},Xr.setStateOnNextFrame=function(Xn){Xr.cancelFrameState(),Xr.nextFrameState=Object(W.a)(Object(W.a)({},Xr.nextFrameState),Xn),Xr.nextFrameId=fr()(function(){var un=Object(W.a)({},Xr.nextFrameState);Xr.nextFrameState=null,Xr.setState(un)})},Xr.getMotion=function(){return Object(W.a)({},_r(Xr.props))},Xr.getAlignTarget=function(){var Xn=Xr.props,un=Xn.point,Gr=Xn.getRootDomNode;return un||Gr},Xr.cancelFrameState=function(){fr.a.cancel(Xr.nextFrameId)},Xr.renderPopupElement=function(){var Xn=Xr.state,un=Xn.status,Gr=Xn.targetHeight,ri=Xn.targetWidth,rn=Xn.alignClassName,jn=Xr.props,oi=jn.prefixCls,li=jn.className,ai=jn.style,Ei=jn.stretch,mi=jn.visible,Ai=jn.align,Ii=jn.destroyPopupOnHide,na=jn.onMouseEnter,ji=jn.onMouseLeave,fa=jn.onMouseDown,Xa=jn.onTouchStart,xa=jn.children,wa=_()(oi,li,rn),Da="".concat(oi,"-hidden"),ja={};Ei&&(Ei.indexOf("height")!==-1?ja.height=Gr:Ei.indexOf("minHeight")!==-1&&(ja.minHeight=Gr),Ei.indexOf("width")!==-1?ja.width=ri:Ei.indexOf("minWidth")!==-1&&(ja.minWidth=ri));var ko=Object(W.a)(Object(W.a)(Object(W.a)(Object(W.a)({},ja),Xr.getZIndexStyle()),ai),{},{opacity:un==="stable"||!mi?void 0:0,pointerEvents:un==="stable"||!mi?void 0:"none"}),ro=Xr.getMotion(),pa=mi;mi&&un!=="beforeMotion"&&un!=="motion"&&un!=="stable"&&(ro.motionAppear=!1,ro.motionEnter=!1,ro.motionLeave=!1),(un==="afterAlign"||un==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var lo=ro==null?void 0:ro[Ka];ro[Ka]=function(){for(var so=arguments.length,Co=new Array(so),Lo=0;Lo<so;Lo++)Co[Lo]=arguments[Lo];lo==null||lo.apply(void 0,Co),Xr.setState({inMotion:!0})}});var Ea=!mi||un!=="align"&&un!=="aligned"&&un!=="stable",Fa=!0;return un==="stable"&&(Fa=mi),Ii&&!Fa?null:a.a.createElement(Vr,Object.assign({visible:pa},ro,{removeOnLeave:!1,onEnterEnd:Xr.onMotionEnd,onLeaveEnd:Xr.onMotionEnd,leavedClassName:Da}),function(Ka,lo){var so=Ka.style,Co=Ka.className;return a.a.createElement(vr.a,{target:Xr.getAlignTarget(),key:"popup",ref:Xr.alignRef,monitorWindowResize:!0,disabled:Ea,align:Ai,onAlign:Xr.onAlign},a.a.createElement(xt,{prefixCls:oi,className:_()(wa,Co),ref:Object(Vn.a)(lo,Xr.popupRef),onMouseEnter:na,onMouseLeave:ji,onMouseDown:fa,onTouchStart:Xa,style:Object(W.a)(Object(W.a)({},ko),so)},xa))})},Xr.renderMaskElement=function(){var Xn=Xr.props,un=Xn.mask,Gr=Xn.maskMotion,ri=Xn.maskTransitionName,rn=Xn.maskAnimation,jn=Xn.prefixCls,oi=Xn.visible;if(!un)return null;var li={};return Gr&&Gr.motionName&&(li=Object(W.a)({motionAppear:!0},_r({motion:Gr,prefixCls:jn,transitionName:ri,animation:rn}))),a.a.createElement(Vr,Object.assign({},li,{visible:oi,removeOnLeave:!0}),function(ai){var Ei=ai.className;return a.a.createElement("div",{style:Xr.getZIndexStyle(),key:"mask",className:_()("".concat(jn,"-mask"),Ei)})})},Xr}return Object(P.a)(Zr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Xn=this.state.status,un=this.props,Gr=un.getRootDomNode,ri=un.visible,rn=un.stretch;if(this.cancelFrameState(),ri&&Xn!=="stable")switch(Xn){case null:{this.setStateOnNextFrame({status:rn?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Or(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var jn=["measure","align",null,"beforeMotion","motion"],oi=jn.indexOf(Xn),li=jn[oi+1];oi!==-1&&li&&this.setStateOnNextFrame({status:li})}}if(Xn==="measure"){var ai=Gr();ai&&this.setStateOnNextFrame({targetHeight:ai.offsetHeight,targetWidth:ai.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Xn=this.props.zIndex;return{zIndex:Xn}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Xn,un){var Gr=Xn.visible,ri=Object(Ot.a)(Xn,["visible"]),rn=un.prevVisible,jn=un.status,oi=un.inMotion,li={prevVisible:Gr,status:jn},ai=_r(ri);return rn===null&&Gr===!1?(li.status="stable",li.inMotion=!1):Gr!==rn&&(li.inMotion=!1,Gr||Or(ai)&&oi?li.status=null:li.status="stable",Gr&&(li.alignClassName=null)),li}}]),Zr}(u.Component),wn=en,_n=u.createContext(null),yn=_n;function Jn(){}function Un(){return""}function pi(){return window.document}var ki=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function yi(ht){var Er=function(Zr){Object(X.a)(Xn,Zr);var Xr=Object(B.a)(Xn);function Xn(un){var Gr;Object(F.a)(this,Xn),Gr=Xr.call(this,un),Gr.popupRef=a.a.createRef(),Gr.triggerRef=a.a.createRef(),Gr.onMouseEnter=function(rn){var jn=Gr.props.mouseEnterDelay;Gr.fireEvents("onMouseEnter",rn),Gr.delaySetPopupVisible(!0,jn,jn?null:rn)},Gr.onMouseMove=function(rn){Gr.fireEvents("onMouseMove",rn),Gr.setPoint(rn)},Gr.onMouseLeave=function(rn){Gr.fireEvents("onMouseLeave",rn),Gr.delaySetPopupVisible(!1,Gr.props.mouseLeaveDelay)},Gr.onPopupMouseEnter=function(){Gr.clearDelayTimer()},Gr.onPopupMouseLeave=function(rn){if(rn.relatedTarget&&!rn.relatedTarget.setTimeout&&Gr.popupRef.current&&Gr.popupRef.current.popupRef.current&&Object(tn.a)(Gr.popupRef.current.popupRef.current,rn.relatedTarget))return;Gr.delaySetPopupVisible(!1,Gr.props.mouseLeaveDelay)},Gr.onFocus=function(rn){Gr.fireEvents("onFocus",rn),Gr.clearDelayTimer(),Gr.isFocusToShow()&&(Gr.focusTime=Date.now(),Gr.delaySetPopupVisible(!0,Gr.props.focusDelay))},Gr.onMouseDown=function(rn){Gr.fireEvents("onMouseDown",rn),Gr.preClickTime=Date.now()},Gr.onTouchStart=function(rn){Gr.fireEvents("onTouchStart",rn),Gr.preTouchTime=Date.now()},Gr.onBlur=function(rn){Gr.fireEvents("onBlur",rn),Gr.clearDelayTimer(),Gr.isBlurToHide()&&Gr.delaySetPopupVisible(!1,Gr.props.blurDelay)},Gr.onContextMenu=function(rn){rn.preventDefault(),Gr.fireEvents("onContextMenu",rn),Gr.setPopupVisible(!0,rn)},Gr.onContextMenuClose=function(){Gr.isContextMenuToShow()&&Gr.close()},Gr.onClick=function(rn){if(Gr.fireEvents("onClick",rn),Gr.focusTime){var jn;if(Gr.preClickTime&&Gr.preTouchTime?jn=Math.min(Gr.preClickTime,Gr.preTouchTime):Gr.preClickTime?jn=Gr.preClickTime:Gr.preTouchTime&&(jn=Gr.preTouchTime),Math.abs(jn-Gr.focusTime)<20)return;Gr.focusTime=0}Gr.preClickTime=0,Gr.preTouchTime=0,Gr.isClickToShow()&&(Gr.isClickToHide()||Gr.isBlurToHide())&&rn&&rn.preventDefault&&rn.preventDefault();var oi=!Gr.state.popupVisible;(Gr.isClickToHide()&&!oi||oi&&Gr.isClickToShow())&&Gr.setPopupVisible(!Gr.state.popupVisible,rn)},Gr.onPopupMouseDown=function(){if(Gr.hasPopupMouseDown=!0,clearTimeout(Gr.mouseDownTimeout),Gr.mouseDownTimeout=window.setTimeout(function(){Gr.hasPopupMouseDown=!1},0),Gr.context){var rn;(rn=Gr.context).onPopupMouseDown.apply(rn,arguments)}},Gr.onDocumentClick=function(rn){if(Gr.props.mask&&!Gr.props.maskClosable)return;var jn=rn.target,oi=Gr.getRootDomNode(),li=Gr.getPopupDomNode();!Object(tn.a)(oi,jn)&&!Object(tn.a)(li,jn)&&!Gr.hasPopupMouseDown&&Gr.close()},Gr.getRootDomNode=function(){var rn=Gr.props.getTriggerDOMNode;if(rn)return rn(Gr.triggerRef.current);try{var jn=Object(En.a)(Gr.triggerRef.current);if(jn)return jn}catch(oi){}return Zi.a.findDOMNode(Object(fi.a)(Gr))},Gr.getPopupClassNameFromAlign=function(rn){var jn=[],oi=Gr.props,li=oi.popupPlacement,ai=oi.builtinPlacements,Ei=oi.prefixCls,mi=oi.alignPoint,Ai=oi.getPopupClassNameFromAlign;return li&&ai&&jn.push(Kt(ai,Ei,rn,mi)),Ai&&jn.push(Ai(rn)),jn.join(" ")},Gr.getComponent=function(){var rn=Gr.props,jn=rn.prefixCls,oi=rn.destroyPopupOnHide,li=rn.popupClassName,ai=rn.onPopupAlign,Ei=rn.popupMotion,mi=rn.popupAnimation,Ai=rn.popupTransitionName,Ii=rn.popupStyle,na=rn.mask,ji=rn.maskAnimation,fa=rn.maskTransitionName,Xa=rn.maskMotion,xa=rn.zIndex,wa=rn.popup,Da=rn.stretch,ja=rn.alignPoint,ko=Gr.state,ro=ko.popupVisible,pa=ko.point,Ea=Gr.getPopupAlign(),Fa={};return Gr.isMouseEnterToShow()&&(Fa.onMouseEnter=Gr.onPopupMouseEnter),Gr.isMouseLeaveToHide()&&(Fa.onMouseLeave=Gr.onPopupMouseLeave),Fa.onMouseDown=Gr.onPopupMouseDown,Fa.onTouchStart=Gr.onPopupMouseDown,a.a.createElement(wn,Object.assign({prefixCls:jn,destroyPopupOnHide:oi,visible:ro,point:ja&&pa,className:li,align:Ea,onAlign:ai,animation:mi,getClassNameFromAlign:Gr.getPopupClassNameFromAlign},Fa,{stretch:Da,getRootDomNode:Gr.getRootDomNode,style:Ii,mask:na,zIndex:xa,transitionName:Ai,maskAnimation:ji,maskTransitionName:fa,maskMotion:Xa,ref:Gr.popupRef,motion:Ei}),typeof wa=="function"?wa():wa)},Gr.getContainer=function(){var rn=Object(fi.a)(Gr),jn=rn.props,oi=document.createElement("div");oi.style.position="absolute",oi.style.top="0",oi.style.left="0",oi.style.width="100%";var li=jn.getPopupContainer?jn.getPopupContainer(Gr.getRootDomNode()):jn.getDocument().body;return li.appendChild(oi),oi},Gr.setPoint=function(rn){var jn=Gr.props.alignPoint;if(!jn||!rn)return;Gr.setState({point:{pageX:rn.pageX,pageY:rn.pageY}})},Gr.handlePortalUpdate=function(){Gr.state.prevPopupVisible!==Gr.state.popupVisible&&Gr.props.afterPopupVisibleChange(Gr.state.popupVisible)};var ri;return"popupVisible"in un?ri=!!un.popupVisible:ri=!!un.defaultPopupVisible,Gr.state={prevPopupVisible:ri,popupVisible:ri},ki.forEach(function(rn){Gr["fire".concat(rn)]=function(jn){Gr.fireEvents(rn,jn)}}),Gr}return Object(P.a)(Xn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Gr=this.props,ri=this.state;if(ri.popupVisible){var rn;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(rn=Gr.getDocument(),this.clickOutsideHandler=Object(Wt.a)(rn,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(rn=rn||Gr.getDocument(),this.touchOutsideHandler=Object(Wt.a)(rn,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(rn=rn||Gr.getDocument(),this.contextMenuOutsideHandler1=Object(Wt.a)(rn,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Wt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Gr=this.props,ri=Gr.popupPlacement,rn=Gr.popupAlign,jn=Gr.builtinPlacements;return ri&&jn?Bt(jn,ri,rn):rn}},{key:"setPopupVisible",value:function(Gr,ri){var rn=this.props.alignPoint,jn=this.state.popupVisible;this.clearDelayTimer(),jn!==Gr&&("popupVisible"in this.props||this.setState({popupVisible:Gr,prevPopupVisible:jn}),this.props.onPopupVisibleChange(Gr)),rn&&ri&&this.setPoint(ri)}},{key:"delaySetPopupVisible",value:function(Gr,ri,rn){var jn=this,oi=ri*1e3;if(this.clearDelayTimer(),oi){var li=rn?{pageX:rn.pageX,pageY:rn.pageY}:null;this.delayTimer=window.setTimeout(function(){jn.setPopupVisible(Gr,li),jn.clearDelayTimer()},oi)}else this.setPopupVisible(Gr,rn)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Gr){var ri=this.props.children.props,rn=this.props;return ri[Gr]&&rn[Gr]?this["fire".concat(Gr)]:ri[Gr]||rn[Gr]}},{key:"isClickToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("click")!==-1||rn.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("contextMenu")!==-1||rn.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.hideAction;return ri.indexOf("click")!==-1||rn.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("hover")!==-1||rn.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.hideAction;return ri.indexOf("hover")!==-1||rn.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.showAction;return ri.indexOf("focus")!==-1||rn.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Gr=this.props,ri=Gr.action,rn=Gr.hideAction;return ri.indexOf("focus")!==-1||rn.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Gr,ri){var rn=this.props.children.props[Gr];rn&&rn(ri);var jn=this.props[Gr];jn&&jn(ri)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Gr=this.state.popupVisible,ri=this.props,rn=ri.children,jn=ri.forceRender,oi=ri.alignPoint,li=ri.className,ai=ri.autoDestroy,Ei=a.a.Children.only(rn),mi={key:"trigger"};this.isContextMenuToShow()?mi.onContextMenu=this.onContextMenu:mi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(mi.onClick=this.onClick,mi.onMouseDown=this.onMouseDown,mi.onTouchStart=this.onTouchStart):(mi.onClick=this.createTwoChains("onClick"),mi.onMouseDown=this.createTwoChains("onMouseDown"),mi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(mi.onMouseEnter=this.onMouseEnter,oi&&(mi.onMouseMove=this.onMouseMove)):mi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?mi.onMouseLeave=this.onMouseLeave:mi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(mi.onFocus=this.onFocus,mi.onBlur=this.onBlur):(mi.onFocus=this.createTwoChains("onFocus"),mi.onBlur=this.createTwoChains("onBlur"));var Ai=_()(Ei&&Ei.props&&Ei.props.className,li);Ai&&(mi.className=Ai);var Ii=Object(W.a)({},mi);Object(Vn.c)(Ei)&&(Ii.ref=Object(Vn.a)(this.triggerRef,Ei.ref));var na=a.a.cloneElement(Ei,Ii),ji;return(Gr||this.popupRef.current||jn)&&(ji=a.a.createElement(ht,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Gr&&ai&&(ji=null),a.a.createElement(yn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},na,ji)}}],[{key:"getDerivedStateFromProps",value:function(Gr,ri){var rn=Gr.popupVisible,jn={};return rn!==void 0&&ri.popupVisible!==rn&&(jn.popupVisible=rn,jn.prevPopupVisible=ri.popupVisible),jn}}]),Xn}(a.a.Component);return Er.contextType=yn,Er.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Un,getDocument:pi,onPopupVisibleChange:Jn,afterPopupVisibleChange:Jn,onPopupAlign:Jn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Er}var _i=yi(Et.a),Ki={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 qi(ht){var Er,Zr=ht.prefixCls,Xr=ht.popupElement,Xn=ht.popupStyle,un=ht.visible,Gr=ht.dropdownClassName,ri=ht.dropdownAlign,rn=ht.transitionName,jn=ht.getPopupContainer,oi=ht.children,li=ht.range,ai=ht.popupPlacement,Ei=ht.direction,mi="".concat(Zr,"-dropdown"),Ai=function(){return ai!==void 0?ai:Ei==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(_i,{showAction:[],hideAction:[],popupPlacement:Ai(),builtinPlacements:Ki,prefixCls:mi,popupTransitionName:rn,popup:Xr,popupAlign:ri,popupVisible:un,popupClassName:_()(Gr,(Er={},Object(j.a)(Er,"".concat(mi,"-range"),li),Object(j.a)(Er,"".concat(mi,"-rtl"),Ei==="rtl"),Er)),popupStyle:Xn,getPopupContainer:jn},oi)}var zi=qi;function Hi(ht){var Er=ht.open,Zr=ht.value,Xr=ht.isClickOutside,Xn=ht.triggerOpen,un=ht.forwardKeyDown,Gr=ht.blurToCancel,ri=ht.onSubmit,rn=ht.onCancel,jn=ht.onFocus,oi=ht.onBlur,li=Object(u.useState)(!1),ai=Object(z.a)(li,2),Ei=ai[0],mi=ai[1],Ai=Object(u.useState)(!1),Ii=Object(z.a)(Ai,2),na=Ii[0],ji=Ii[1],fa=Object(u.useRef)(!1),Xa=Object(u.useRef)(!1),xa={onMouseDown:function(){mi(!0),Xn(!0)},onKeyDown:function(Da){switch(Da.which){case G.a.ENTER:{Er?ri()!==!1&&mi(!0):Xn(!0),Da.preventDefault();return}case G.a.TAB:{Ei&&Er&&!Da.shiftKey?(mi(!1),Da.preventDefault()):!Ei&&Er&&(!un(Da)&&Da.shiftKey&&(mi(!0),Da.preventDefault()));return}case G.a.ESC:{mi(!0),rn();return}}!Er&&![G.a.SHIFT].includes(Da.which)?Xn(!0):Ei||un(Da)},onFocus:function(Da){mi(!0),ji(!0),jn&&jn(Da)},onBlur:function(Da){if(fa.current||!Xr(document.activeElement)){fa.current=!1;return}Gr?setTimeout(function(){Xr(document.activeElement)&&rn()},0):Er&&(Xn(!1),Xa.current&&ri()),ji(!1),oi&&oi(Da)}};return Object(u.useEffect)(function(){Xa.current=!1},[Er]),Object(u.useEffect)(function(){Xa.current=!0},[Zr]),Object(u.useEffect)(function(){return q(function(wa){var Da=wa.target;Er&&(Xr(Da)?na||Xn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[xa,{focused:na,typing:Ei}]}function Ui(ht){var Er=ht.valueTexts,Zr=ht.onTextChange,Xr=u.useState(""),Xn=Object(z.a)(Xr,2),un=Xn[0],Gr=Xn[1],ri=u.useRef([]);ri.current=Er;function rn(oi){Gr(oi),Zr(oi)}function jn(){Gr(ri.current[0])}return u.useEffect(function(){Er.every(function(oi){return oi!==un})&&jn()},[Er.join("||")]),[un,rn,jn]}var Qi=n("Gytx"),ca=n.n(Qi);function Ca(ht,Er){var Zr=Er.formatList,Xr=Er.generateConfig,Xn=Er.locale;return Object(Xe.a)(function(){if(!ht)return[[""],""];for(var un="",Gr=[],ri=0;ri<Zr.length;ri+=1){var rn=Zr[ri],jn=Xr.locale.format(Xn.locale,ht,rn);Gr.push(jn),ri===0&&(un=jn)}return[Gr,un]},[ht,Zr],function(un,Gr){return un[0]!==Gr[0]||!ca()(un[1],Gr[1])})}function ra(ht,Er){var Zr=Er.formatList,Xr=Er.generateConfig,Xn=Er.locale,un=Object(u.useState)(null),Gr=Object(z.a)(un,2),ri=Gr[0],rn=Gr[1],jn=Object(u.useRef)(null);function oi(Ii){var na=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(jn.current),na){rn(Ii);return}jn.current=requestAnimationFrame(function(){rn(Ii)})}var li=Ca(ri,{formatList:Zr,generateConfig:Xr,locale:Xn}),ai=Object(z.a)(li,2),Ei=ai[1];function mi(Ii){oi(Ii)}function Ai(){var Ii=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;oi(null,Ii)}return Object(u.useEffect)(function(){Ai(!0)},[ht]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(jn.current)}},[]),[Ei,mi,Ai]}function Ma(ht){var Er,Zr=ht.prefixCls,Xr=Zr===void 0?"rc-picker":Zr,Xn=ht.id,un=ht.tabIndex,Gr=ht.style,ri=ht.className,rn=ht.dropdownClassName,jn=ht.dropdownAlign,oi=ht.popupStyle,li=ht.transitionName,ai=ht.generateConfig,Ei=ht.locale,mi=ht.inputReadOnly,Ai=ht.allowClear,Ii=ht.autoFocus,na=ht.showTime,ji=ht.picker,fa=ji===void 0?"date":ji,Xa=ht.format,xa=ht.use12Hours,wa=ht.value,Da=ht.defaultValue,ja=ht.open,ko=ht.defaultOpen,ro=ht.defaultOpenValue,pa=ht.suffixIcon,Ea=ht.clearIcon,Fa=ht.disabled,Ka=ht.disabledDate,lo=ht.placeholder,so=ht.getPopupContainer,Co=ht.pickerRef,Lo=ht.panelRender,is=ht.onChange,cs=ht.onOpenChange,Rs=ht.onFocus,Ko=ht.onBlur,as=ht.onMouseDown,co=ht.onMouseUp,Ao=ht.onMouseEnter,$a=ht.onMouseLeave,ss=ht.onContextMenu,Cs=ht.onClick,Fo=ht.direction,il=ht.autoComplete,Eo=il===void 0?"off":il,zo=u.useRef(null),Bs=fa==="date"&&!!na||fa==="time",ms=Ve(ot(Xa,fa,na,xa)),hs=u.useRef(null),An=u.useRef(null),Ns=Object(V.a)(null,{value:wa,defaultValue:Da}),Ll=Object(z.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=u.useState(el),ks=Object(z.a)(ds,2),Qs=ks[0],tl=ks[1],xs=u.useRef(null),Us=Object(V.a)(!1,{value:ja,defaultValue:ko,postState:function(vo){return Fa?!1:vo},onChange:function(vo){cs&&cs(vo),!vo&&xs.current&&xs.current.onClose&&xs.current.onClose()}}),al=Object(z.a)(Us,2),Js=al[0],Vo=al[1],No=Ca(Qs,{formatList:ms,generateConfig:ai,locale:Ei}),fs=Object(z.a)(No,2),Ds=fs[0],go=fs[1],Ft=Ui({valueTexts:Ds,onTextChange:function(vo){var Ms=ai.locale.parse(Ei.locale,vo,ms);Ms&&(!Ka||!Ka(Ms))&&tl(Ms)}}),nr=Object(z.a)(Ft,3),On=nr[0],di=nr[1],It=nr[2],ce=function(vo){tl(vo),Gs(vo),is&&!Jt(ai,el,vo)&&is(vo,vo?ai.locale.format(Ei.locale,vo,ms[0]):"")},Se=function(vo){if(Fa&&vo)return;Vo(vo)},Le=function(vo){return Js&&xs.current&&xs.current.onKeyDown?xs.current.onKeyDown(vo):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Qe=function(){co&&co.apply(void 0,arguments),zo.current&&(zo.current.focus(),Se(!0))},Lt=Hi({blurToCancel:Bs,open:Js,value:On,triggerOpen:Se,forwardKeyDown:Le,isClickOutside:function(vo){return!Ce([hs.current,An.current],vo)},onSubmit:function(){return Ka&&Ka(Qs)?!1:(ce(Qs),Se(!1),It(),!0)},onCancel:function(){Se(!1),tl(el),It()},onFocus:Rs,onBlur:Ko}),ir=Object(z.a)(Lt,2),Yr=ir[0],hn=ir[1],In=hn.focused,si=hn.typing;u.useEffect(function(){Js||(tl(el),!Ds.length||Ds[0]===""?di(""):go!==On&&It())},[Js,Ds]),u.useEffect(function(){Js||It()},[fa]),u.useEffect(function(){tl(el)},[el]),Co&&(Co.current={focus:function(){zo.current&&zo.current.focus()},blur:function(){zo.current&&zo.current.blur()}});var wi=Object(W.a)(Object(W.a)({},ht),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),gi=u.createElement(qr,Object.assign({},wi,{generateConfig:ai,className:_()(Object(j.a)({},"".concat(Xr,"-panel-focused"),!si)),value:Qs,locale:Ei,tabIndex:-1,onChange:tl,direction:Fo}));Lo&&(gi=Lo(gi));var Gi=u.createElement("div",{className:"".concat(Xr,"-panel-container"),onMouseDown:function(vo){vo.preventDefault()}},gi),sa;pa&&(sa=u.createElement("span",{className:"".concat(Xr,"-suffix")},pa));var Ua;Ai&&el&&!Fa&&(Ua=u.createElement("span",{onMouseDown:function(vo){vo.preventDefault(),vo.stopPropagation()},onMouseUp:function(vo){vo.preventDefault(),vo.stopPropagation(),ce(null),Se(!1)},className:"".concat(Xr,"-clear")},Ea||u.createElement("span",{className:"".concat(Xr,"-clear-btn")})));var no=function(vo,Ms){(Ms==="submit"||Ms!=="key"&&!Bs)&&(ce(vo),Se(!1))},Wo=Fo==="rtl"?"bottomRight":"bottomLeft",Zo=ra(On,{formatList:ms,generateConfig:ai,locale:Ei}),Bo=Object(z.a)(Zo,3),Es=Bo[0],As=Bo[1],$o=Bo[2];return u.createElement(ee.Provider,{value:{operationRef:xs,hideHeader:fa==="time",panelRef:hs,onSelect:no,open:Js,defaultOpenValue:ro,onDateMouseEnter:As,onDateMouseLeave:$o}},u.createElement(zi,{visible:Js,popupElement:Gi,popupStyle:oi,prefixCls:Xr,dropdownClassName:rn,dropdownAlign:jn,getPopupContainer:so,transitionName:li,popupPlacement:Wo,direction:Fo},u.createElement("div",{className:_()(Xr,ri,(Er={},Object(j.a)(Er,"".concat(Xr,"-disabled"),Fa),Object(j.a)(Er,"".concat(Xr,"-focused"),In),Object(j.a)(Er,"".concat(Xr,"-rtl"),Fo==="rtl"),Er)),style:Gr,onMouseDown:as,onMouseUp:Qe,onMouseEnter:Ao,onMouseLeave:$a,onContextMenu:ss,onClick:Cs},u.createElement("div",{className:_()("".concat(Xr,"-input"),Object(j.a)({},"".concat(Xr,"-input-placeholder"),!!Es)),ref:An},u.createElement("input",Object.assign({id:Xn,tabIndex:un,disabled:Fa,readOnly:mi||!si,value:Es||On,onChange:function(vo){di(vo.target.value)},autoFocus:Ii,placeholder:lo,ref:zo,title:On},Yr,{size:he(fa,ms[0])},or(ht),{autoComplete:Eo})),sa,Ua))))}var La=function(ht){Object(X.a)(Zr,ht);var Er=Object(B.a)(Zr);function Zr(){var Xr;return Object(F.a)(this,Zr),Xr=Er.apply(this,arguments),Xr.pickerRef=u.createRef(),Xr.focus=function(){Xr.pickerRef.current&&Xr.pickerRef.current.focus()},Xr.blur=function(){Xr.pickerRef.current&&Xr.pickerRef.current.blur()},Xr}return Object(P.a)(Zr,[{key:"render",value:function(){return u.createElement(Ma,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Zr}(u.Component),va=La;function ga(ht,Er,Zr){var Xr=ht.picker,Xn=ht.locale,un=ht.selectedValue,Gr=ht.disabledDate,ri=ht.disabled,rn=ht.generateConfig,jn=dt(un,0),oi=dt(un,1);function li(Ii){var na=rn.getYear(Ii),ji=rn.locale.getWeek(Xn.locale,Ii);return na*100+ji}function ai(Ii){var na=rn.getYear(Ii),ji=rn.getMonth(Ii);return na*100+ji}function Ei(Ii){var na=rn.getYear(Ii),ji=Ar(rn,Ii);return na*10+ji}var mi=u.useCallback(function(Ii){if(Gr&&Gr(Ii))return!0;if(ri[1]&&oi)return!mr(rn,Ii,oi)&&rn.isAfter(Ii,oi);if(Er&&oi)switch(Xr){case"quarter":return Ei(Ii)>Ei(oi);case"month":return ai(Ii)>ai(oi);case"week":return li(Ii)>li(oi);default:return!mr(rn,Ii,oi)&&rn.isAfter(Ii,oi)}return!1},[Gr,ri[1],oi,Er]),Ai=u.useCallback(function(Ii){if(Gr&&Gr(Ii))return!0;if(ri[0]&&jn)return!mr(rn,Ii,oi)&&rn.isAfter(jn,Ii);if(Zr&&jn)switch(Xr){case"quarter":return Ei(Ii)<Ei(jn);case"month":return ai(Ii)<ai(jn);case"week":return li(Ii)<li(jn);default:return!mr(rn,Ii,jn)&&rn.isAfter(jn,Ii)}return!1},[Gr,ri[0],jn,Zr]);return[mi,Ai]}function Oa(ht,Er,Zr,Xr){var Xn=Fn(ht,Zr,Xr,1);function un(Gr){return Gr(ht,Er)?"same":Gr(Xn,Er)?"closing":"far"}switch(Zr){case"year":return un(function(Gr,ri){return er(Xr,Gr,ri)});case"quarter":case"month":return un(function(Gr,ri){return yt(Xr,Gr,ri)});default:return un(function(Gr,ri){return Cn(Xr,Gr,ri)})}}function Aa(ht,Er,Zr,Xr){var Xn=dt(ht,0),un=dt(ht,1);if(Er===0)return Xn;if(Xn&&un){var Gr=Oa(Xn,un,Zr,Xr);switch(Gr){case"same":return Xn;case"closing":return Xn;default:return Fn(un,Zr,Xr,-1)}}return Xn}function Ga(ht){var Er=ht.values,Zr=ht.picker,Xr=ht.defaultDates,Xn=ht.generateConfig,un=u.useState(function(){return[dt(Xr,0),dt(Xr,1)]}),Gr=Object(z.a)(un,2),ri=Gr[0],rn=Gr[1],jn=u.useState(null),oi=Object(z.a)(jn,2),li=oi[0],ai=oi[1],Ei=dt(Er,0),mi=dt(Er,1);function Ai(na){return ri[na]?ri[na]:dt(li,na)||Aa(Er,na,Zr,Xn)||Ei||mi||Xn.getNow()}function Ii(na,ji){if(na){var fa=Yt(li,na,ji);rn(Yt(ri,null,ji)||[null,null]);var Xa=(ji+1)%2;dt(Er,Xa)||(fa=Yt(fa,na,Xa)),ai(fa)}else(Ei||mi)&&ai(null)}return[Ai,Ii]}function _a(ht,Er){return ht&&ht[0]&&ht[1]&&Er.isAfter(ht[0],ht[1])?[ht[1],ht[0]]:ht}function Va(ht,Er,Zr,Xr){return ht||Xr&&Xr[Er]?!0:!!Zr[(Er+1)%2]}function Bi(ht){var Er,Zr,Xr,Xn=ht.prefixCls,un=Xn===void 0?"rc-picker":Xn,Gr=ht.id,ri=ht.style,rn=ht.className,jn=ht.popupStyle,oi=ht.dropdownClassName,li=ht.transitionName,ai=ht.dropdownAlign,Ei=ht.getPopupContainer,mi=ht.generateConfig,Ai=ht.locale,Ii=ht.placeholder,na=ht.autoFocus,ji=ht.disabled,fa=ht.format,Xa=ht.picker,xa=Xa===void 0?"date":Xa,wa=ht.showTime,Da=ht.use12Hours,ja=ht.separator,ko=ja===void 0?"~":ja,ro=ht.value,pa=ht.defaultValue,Ea=ht.defaultPickerValue,Fa=ht.open,Ka=ht.defaultOpen,lo=ht.disabledDate,so=ht.disabledTime,Co=ht.dateRender,Lo=ht.panelRender,is=ht.ranges,cs=ht.allowEmpty,Rs=ht.allowClear,Ko=ht.suffixIcon,as=ht.clearIcon,co=ht.pickerRef,Ao=ht.inputReadOnly,$a=ht.mode,ss=ht.renderExtraFooter,Cs=ht.onChange,Fo=ht.onOpenChange,il=ht.onPanelChange,Eo=ht.onCalendarChange,zo=ht.onFocus,Bs=ht.onBlur,ms=ht.onOk,hs=ht.components,An=ht.order,Ns=ht.direction,Ll=ht.activePickerIndex,el=ht.autoComplete,Gs=el===void 0?"off":el,ds=xa==="date"&&!!wa||xa==="time",ks=Object(u.useRef)({}),Qs=Object(u.useRef)(null),tl=Object(u.useRef)(null),xs=Object(u.useRef)(null),Us=Object(u.useRef)(null),al=Object(u.useRef)(null),Js=Object(u.useRef)(null),Vo=Object(u.useRef)(null),No=Ve(ot(fa,xa,wa,Da)),fs=Object(V.a)(0,{value:Ll}),Ds=Object(z.a)(fs,2),go=Ds[0],Ft=Ds[1],nr=Object(u.useRef)(null),On=u.useMemo(function(){return Array.isArray(ji)?ji:[ji||!1,ji||!1]},[ji]),di=Object(V.a)(null,{value:ro,defaultValue:pa,postState:function(Ae){return xa==="time"&&!An?Ae:_a(Ae,mi)}}),It=Object(z.a)(di,2),ce=It[0],Se=It[1],Le=Ga({values:ce,picker:xa,defaultDates:Ea,generateConfig:mi}),Qe=Object(z.a)(Le,2),Lt=Qe[0],ir=Qe[1],Yr=Object(V.a)(ce,{postState:function(Ae){var Te=Ae;if(On[0]&&On[1])return Te;for(var ze=0;ze<2;ze+=1)On[ze]&&!dt(Te,ze)&&!dt(cs,ze)&&(Te=Yt(Te,mi.getNow(),ze));return Te}}),hn=Object(z.a)(Yr,2),In=hn[0],si=hn[1],wi=Object(V.a)([xa,xa],{value:$a}),gi=Object(z.a)(wi,2),Gi=gi[0],sa=gi[1];Object(u.useEffect)(function(){sa([xa,xa])},[xa]);var Ua=function(Ae,Te){sa(Ae),il&&il(Te,Ae)},no=ga({picker:xa,selectedValue:In,locale:Ai,disabled:On,disabledDate:lo,generateConfig:mi},ks.current[1],ks.current[0]),Wo=Object(z.a)(no,2),Zo=Wo[0],Bo=Wo[1],Es=Object(V.a)(!1,{value:Fa,defaultValue:Ka,postState:function(Ae){return On[go]?!1:Ae},onChange:function(Ae){Fo&&Fo(Ae),!Ae&&nr.current&&nr.current.onClose&&nr.current.onClose()}}),As=Object(z.a)(Es,2),$o=As[0],Do=As[1],vo=$o&&go===0,Ms=$o&&go===1,rl=Object(u.useState)(0),gs=Object(z.a)(rl,2),Ra=gs[0],dl=gs[1];Object(u.useEffect)(function(){!$o&&Qs.current&&dl(Qs.current.offsetWidth)},[$o]);var fl=u.useRef();function js(ne,Ae){if(ne)clearTimeout(fl.current),ks.current[Ae]=!0,Ft(Ae),Do(ne),$o||ir(null,Ae);else if(go===Ae){Do(ne);var Te=ks.current;fl.current=setTimeout(function(){Te===ks.current&&(ks.current={})})}}function _s(ne){js(!0,ne),setTimeout(function(){var Ae=[Js,Vo][ne];Ae.current&&Ae.current.focus()},0)}function Xs(ne,Ae){var Te=ne,ze=dt(Te,0),st=dt(Te,1);ze&&st&&mi.isAfter(ze,st)&&(xa==="week"&&!gr(mi,Ai.locale,ze,st)||xa==="quarter"&&!Sr(mi,ze,st)||xa!=="week"&&xa!=="quarter"&&xa!=="time"&&!mr(mi,ze,st)?(Ae===0?(Te=[ze,null],st=null):(ze=null,Te=[null,st]),ks.current=Object(j.a)({},Ae,!0)):(xa!=="time"||An!==!1)&&(Te=_a(Te,mi))),si(Te);var ct=Te&&Te[0]?mi.locale.format(Ai.locale,Te[0],No[0]):"",zt=Te&&Te[1]?mi.locale.format(Ai.locale,Te[1],No[0]):"";if(Eo){var Tr={range:Ae===0?"start":"end"};Eo(Te,[ct,zt],Tr)}var br=Va(ze,0,On,cs),Kr=Va(st,1,On,cs),zr=Te===null||br&&Kr;zr&&(Se(Te),Cs&&(!Jt(mi,dt(ce,0),ze)||!Jt(mi,dt(ce,1),st))&&Cs(Te,[ct,zt]));var Nn=null;Ae===0&&!On[1]?Nn=1:Ae===1&&!On[0]&&(Nn=0),Nn!==null&&Nn!==go&&(!ks.current[Nn]||!dt(Te,Nn))&&dt(Te,Ae)?_s(Nn):js(!1,Ae)}var Ql=function(Ae){return $o&&nr.current&&nr.current.onKeyDown?nr.current.onKeyDown(Ae):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ul={formatList:No,generateConfig:mi,locale:Ai},wl=Ca(dt(In,0),Ul),Ts=Object(z.a)(wl,2),Ks=Ts[0],Tl=Ts[1],pl=Ca(dt(In,1),Ul),jo=Object(z.a)(pl,2),yo=jo[0],qo=jo[1],ps=function(Ae,Te){var ze=mi.locale.parse(Ai.locale,Ae,No),st=Te===0?Zo:Bo;ze&&!st(ze)&&(si(Yt(In,ze,Te)),ir(ze,Te))},Os=Ui({valueTexts:Ks,onTextChange:function(Ae){return ps(Ae,0)}}),es=Object(z.a)(Os,3),Is=es[0],Ps=es[1],ml=es[2],Rl=Ui({valueTexts:yo,onTextChange:function(Ae){return ps(Ae,1)}}),_l=Object(z.a)(Rl,3),Bl=_l[0],jl=_l[1],kl=_l[2],Xl=Object(u.useState)(null),ol=Object(z.a)(Xl,2),Ys=ol[0],sl=ol[1],nl=Object(u.useState)(null),xl=Object(z.a)(nl,2),Ml=xl[0],Wl=xl[1],au=ra(Is,{formatList:No,generateConfig:mi,locale:Ai}),Nl=Object(z.a)(au,3),$l=Nl[0],tu=Nl[1],Iu=Nl[2],pu=ra(Bl,{formatList:No,generateConfig:mi,locale:Ai}),mu=Object(z.a)(pu,3),gu=mu[0],ql=mu[1],Cl=mu[2],ll=function(Ae){Wl(Yt(In,Ae,go)),go===0?tu(Ae):ql(Ae)},Hl=function(){Wl(Yt(In,null,go)),go===0?Iu():Cl()},Sl=function(Ae,Te){return{blurToCancel:ds,forwardKeyDown:Ql,onBlur:Bs,isClickOutside:function(st){return!Ce([tl.current,xs.current,Us.current],st)},onFocus:function(st){Ft(Ae),zo&&zo(st)},triggerOpen:function(st){js(st,Ae)},onSubmit:function(){Xs(In,Ae),Te()},onCancel:function(){js(!1,Ae),si(ce),Te()}}},Su=Hi(Object(W.a)(Object(W.a)({},Sl(0,ml)),{},{open:vo,value:Is})),vu=Object(z.a)(Su,2),Au=vu[0],Ol=vu[1],cu=Ol.focused,du=Ol.typing,Lu=Hi(Object(W.a)(Object(W.a)({},Sl(1,kl)),{},{open:Ms,value:Bl})),zl=Object(z.a)(Lu,2),ru=zl[0],ou=zl[1],su=ou.focused,Jl=ou.typing,Du=function(Ae){!$o&&!Js.current.contains(Ae.target)&&!Vo.current.contains(Ae.target)&&(On[0]?On[1]||_s(1):_s(0))},Ru=function(Ae){$o&&(cu||su)&&!Js.current.contains(Ae.target)&&!Vo.current.contains(Ae.target)&&Ae.preventDefault()},Zl=ce&&ce[0]?mi.locale.format(Ai.locale,ce[0],"YYYYMMDDHHmmss"):"",yu=ce&&ce[1]?mi.locale.format(Ai.locale,ce[1],"YYYYMMDDHHmmss"):"";Object(u.useEffect)(function(){$o||(si(ce),!Ks.length||Ks[0]===""?Ps(""):Tl!==Is&&ml(),!yo.length||yo[0]===""?jl(""):qo!==Bl&&kl())},[$o,Ks,yo]),Object(u.useEffect)(function(){si(ce)},[Zl,yu]),co&&(co.current={focus:function(){Js.current&&Js.current.focus()},blur:function(){Js.current&&Js.current.blur(),Vo.current&&Vo.current.blur()}});var xu=Object.keys(is||{}),bu=xu.map(function(ne){var Ae=is[ne],Te=typeof Ae=="function"?Ae():Ae;return{label:ne,onClick:function(){Xs(Te,null),js(!1,go)},onMouseEnter:function(){sl(Te)},onMouseLeave:function(){sl(null)}}});function hl(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null;$o&&Ml&&Ml[0]&&Ml[1]&&mi.isAfter(Ml[1],Ml[0])&&(Te=Ml);var ze=wa;if(wa&&Object(Q.a)(wa)==="object"&&wa.defaultValue){var st=wa.defaultValue;ze=Object(W.a)(Object(W.a)({},wa),{},{defaultValue:dt(st,go)||void 0})}var ct=null;return Co&&(ct=function(Tr,br){return Co(Tr,br,{range:go?"end":"start"})}),u.createElement(ci.Provider,{value:{inRange:!0,panelPosition:ne,rangedValue:Ys||In,hoverRangedValue:Te}},u.createElement(qr,Object.assign({},ht,Ae,{dateRender:ct,showTime:ze,mode:Gi[go],generateConfig:mi,style:void 0,direction:Ns,disabledDate:go===0?Zo:Bo,disabledTime:function(Tr){return so?so(Tr,go===0?"start":"end"):!1},className:_()(Object(j.a)({},"".concat(un,"-panel-focused"),go===0?!du:!Jl)),value:dt(In,go),locale:Ai,tabIndex:-1,onPanelChange:function(Tr,br){Ua(Yt(Gi,br,go),Yt(In,Tr,go));var Kr=Tr;ne==="right"&&Gi[go]===br&&(Kr=Fn(Kr,br,mi,-1)),ir(Kr,go)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Dl=0,nu=0;go&&xs.current&&al.current&&tl.current&&(Dl=xs.current.offsetWidth+al.current.offsetWidth,tl.current.offsetWidth&&Dl>tl.current.offsetWidth&&(nu=Dl));var Nu=Ns==="rtl"?{right:Dl}:{left:Dl};function hu(){var ne,Ae=kr(un,Gi[go],ss),Te=kn({prefixCls:un,components:hs,needConfirmButton:ds,okDisabled:!dt(In,go)||lo&&lo(In[go]),locale:Ai,rangeList:bu,onOk:function(){dt(In,go)&&(Xs(In,go),ms&&ms(In))}});if(xa!=="time"&&!wa){var ze=Lt(go),st=Fn(ze,xa,mi),ct=Gi[go],zt=ct===xa,Tr=hl(zt?"left":!1,{pickerValue:ze,onPickerValueChange:function(Nn){ir(Nn,go)}}),br=hl("right",{pickerValue:st,onPickerValueChange:function(Nn){ir(Fn(Nn,xa,mi,-1),go)}});Ns==="rtl"?ne=u.createElement(u.Fragment,null,br,zt&&Tr):ne=u.createElement(u.Fragment,null,Tr,zt&&br)}else ne=hl();var Kr=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(un,"-panels")},ne),(Ae||Te)&&u.createElement("div",{className:"".concat(un,"-footer")},Ae,Te));return Lo&&(Kr=Lo(Kr)),u.createElement("div",{className:"".concat(un,"-panel-container"),style:{marginLeft:nu},ref:tl,onMouseDown:function(Nn){Nn.preventDefault()}},Kr)}var fu=u.createElement("div",{className:_()("".concat(un,"-range-wrapper"),"".concat(un,"-").concat(xa,"-range-wrapper")),style:{minWidth:Ra}},u.createElement("div",{className:"".concat(un,"-range-arrow"),style:Nu}),hu()),iu;Ko&&(iu=u.createElement("span",{className:"".concat(un,"-suffix")},Ko));var ve;Rs&&(dt(ce,0)&&!On[0]||dt(ce,1)&&!On[1])&&(ve=u.createElement("span",{onMouseDown:function(Ae){Ae.preventDefault(),Ae.stopPropagation()},onMouseUp:function(Ae){Ae.preventDefault(),Ae.stopPropagation();var Te=ce;On[0]||(Te=Yt(Te,null,0)),On[1]||(Te=Yt(Te,null,1)),Xs(Te,null),js(!1,go)},className:"".concat(un,"-clear")},as||u.createElement("span",{className:"".concat(un,"-clear-btn")})));var te={size:he(xa,No[0])},L=0,K=0;xs.current&&Us.current&&al.current&&(go===0?K=xs.current.offsetWidth:(L=Dl,K=Us.current.offsetWidth));var H=Ns==="rtl"?{right:L}:{left:L},Z=function(Ae,Te){var ze=Yt(In,Ae,go);Te==="submit"||Te!=="key"&&!ds?(Xs(ze,go),go===0?Iu():Cl()):si(ze)};return u.createElement(ee.Provider,{value:{operationRef:nr,hideHeader:xa==="time",onDateMouseEnter:ll,onDateMouseLeave:Hl,hideRanges:!0,onSelect:Z,open:$o}},u.createElement(zi,{visible:$o,popupElement:fu,popupStyle:jn,prefixCls:un,dropdownClassName:oi,dropdownAlign:ai,getPopupContainer:Ei,transitionName:li,range:!0,direction:Ns},u.createElement("div",Object.assign({ref:Qs,className:_()(un,"".concat(un,"-range"),rn,(Er={},Object(j.a)(Er,"".concat(un,"-disabled"),On[0]&&On[1]),Object(j.a)(Er,"".concat(un,"-focused"),go===0?cu:su),Object(j.a)(Er,"".concat(un,"-rtl"),Ns==="rtl"),Er)),style:ri,onClick:Du,onMouseDown:Ru},or(ht)),u.createElement("div",{className:_()("".concat(un,"-input"),(Zr={},Object(j.a)(Zr,"".concat(un,"-input-active"),go===0),Object(j.a)(Zr,"".concat(un,"-input-placeholder"),!!$l),Zr)),ref:xs},u.createElement("input",Object.assign({id:Gr,disabled:On[0],readOnly:Ao||!du,value:$l||Is,onChange:function(Ae){Ps(Ae.target.value)},autoFocus:na,placeholder:dt(Ii,0)||"",ref:Js},Au,te,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(un,"-range-separator"),ref:al},ko),u.createElement("div",{className:_()("".concat(un,"-input"),(Xr={},Object(j.a)(Xr,"".concat(un,"-input-active"),go===1),Object(j.a)(Xr,"".concat(un,"-input-placeholder"),!!gu),Xr)),ref:Us},u.createElement("input",Object.assign({disabled:On[1],readOnly:Ao||!Jl,value:gu||Bl,onChange:function(Ae){jl(Ae.target.value)},placeholder:dt(Ii,1)||"",ref:Vo},ru,te,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(un,"-active-bar"),style:Object(W.a)(Object(W.a)({},H),{},{width:K,position:"absolute"})}),iu,ve)))}var io=function(ht){Object(X.a)(Zr,ht);var Er=Object(B.a)(Zr);function Zr(){var Xr;return Object(F.a)(this,Zr),Xr=Er.apply(this,arguments),Xr.pickerRef=u.createRef(),Xr.focus=function(){Xr.pickerRef.current&&Xr.pickerRef.current.focus()},Xr.blur=function(){Xr.pickerRef.current&&Xr.pickerRef.current.blur()},Xr}return Object(P.a)(Zr,[{key:"render",value:function(){return u.createElement(Bi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Zr}(u.Component),oo=io,Qo=va,mo=n("61s2");function To(ht,Er,Zr){return Zr!==void 0?Zr:ht==="year"&&Er.lang.yearPlaceholder?Er.lang.yearPlaceholder:ht==="quarter"&&Er.lang.quarterPlaceholder?Er.lang.quarterPlaceholder:ht==="month"&&Er.lang.monthPlaceholder?Er.lang.monthPlaceholder:ht==="week"&&Er.lang.weekPlaceholder?Er.lang.weekPlaceholder:ht==="time"&&Er.timePickerLocale.placeholder?Er.timePickerLocale.placeholder:Er.lang.placeholder}function ao(ht,Er,Zr){return Zr!==void 0?Zr:ht==="year"&&Er.lang.yearPlaceholder?Er.lang.rangeYearPlaceholder:ht==="month"&&Er.lang.monthPlaceholder?Er.lang.rangeMonthPlaceholder:ht==="week"&&Er.lang.weekPlaceholder?Er.lang.rangeWeekPlaceholder:ht==="time"&&Er.timePickerLocale.placeholder?Er.timePickerLocale.rangePlaceholder:Er.lang.rangePlaceholder}var So=n("uaoM"),bo=n("H84U"),to=n("YMnH"),Jo=n("3Nzz"),Uo=function(ht,Er){var Zr={};for(var Xr in ht)Object.prototype.hasOwnProperty.call(ht,Xr)&&Er.indexOf(Xr)<0&&(Zr[Xr]=ht[Xr]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xn=0,Xr=Object.getOwnPropertySymbols(ht);Xn<Xr.length;Xn++)Er.indexOf(Xr[Xn])<0&&Object.prototype.propertyIsEnumerable.call(ht,Xr[Xn])&&(Zr[Xr[Xn]]=ht[Xr[Xn]]);return Zr};function wo(ht){function Er(rn,jn){var oi=function(li){b()(Ei,li);var ai=E()(Ei);function Ei(mi){var Ai;return c()(this,Ei),Ai=ai.call(this,mi),Ai.pickerRef=u.createRef(),Ai.focus=function(){Ai.pickerRef.current&&Ai.pickerRef.current.focus()},Ai.blur=function(){Ai.pickerRef.current&&Ai.pickerRef.current.blur()},Ai.getDefaultLocale=function(){var Ii=Ai.props.locale,na=h()(h()({},mo.a),Ii);return na.lang=h()(h()({},na.lang),(Ii||{}).lang),na},Ai.renderPicker=function(Ii){var na=Ai.context,ji=na.getPrefixCls,fa=na.direction,Xa=na.getPopupContainer,xa=Ai.props,wa=xa.prefixCls,Da=xa.getPopupContainer,ja=xa.className,ko=xa.size,ro=xa.bordered,pa=ro===void 0?!0:ro,Ea=xa.placeholder,Fa=Uo(xa,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ka=Ai.props,lo=Ka.format,so=Ka.showTime,Co=ji("picker",wa),Lo={showToday:!0},is={};rn&&(is.picker=rn);var cs=rn||Ai.props.picker;return is=h()(h()(h()({},is),so?rs(h()({format:lo,picker:cs},so)):{}),cs==="time"?rs(h()(h()({format:lo},Ai.props),{picker:cs})):{}),u.createElement(Jo.b.Consumer,null,function(Rs){var Ko,as=ko||Rs;return u.createElement(Qo,h()({ref:Ai.pickerRef,placeholder:To(cs,Ii,Ea),suffixIcon:cs==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},Lo,Fa,is,{locale:Ii.lang,className:_()(ja,(Ko={},r()(Ko,"".concat(Co,"-").concat(as),as),r()(Ko,"".concat(Co,"-borderless"),!pa),Ko)),prefixCls:Co,getPopupContainer:Da||Xa,generateConfig:ht,prevIcon:u.createElement("span",{className:"".concat(Co,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(Co,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(Co,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(Co,"-super-next-icon")}),components:os,direction:fa}))})},Object(So.a)(rn!=="quarter",jn,"DatePicker.".concat(jn," is legacy usage. Please use DatePicker[picker='").concat(rn,"'] directly.")),Ai}return g()(Ei,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ei}(u.Component);return oi.contextType=bo.b,jn&&(oi.displayName=jn),oi}var Zr=Er(),Xr=Er("week","WeekPicker"),Xn=Er("month","MonthPicker"),un=Er("year","YearPicker"),Gr=Er("time","TimePicker"),ri=Er("quarter","QuarterPicker");return{DatePicker:Zr,WeekPicker:Xr,MonthPicker:Xn,YearPicker:un,TimePicker:Gr,QuarterPicker:ri}}var ts=n("8ISB"),Ia=n.n(ts),Oo=function(ht,Er){var Zr={};for(var Xr in ht)Object.prototype.hasOwnProperty.call(ht,Xr)&&Er.indexOf(Xr)<0&&(Zr[Xr]=ht[Xr]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xn=0,Xr=Object.getOwnPropertySymbols(ht);Xn<Xr.length;Xn++)Er.indexOf(Xr[Xn])<0&&Object.prototype.propertyIsEnumerable.call(ht,Xr[Xn])&&(Zr[Xr[Xn]]=ht[Xr[Xn]]);return Zr};function Io(ht){var Er=function(Zr){b()(Xn,Zr);var Xr=E()(Xn);function Xn(){var un;return c()(this,Xn),un=Xr.apply(this,arguments),un.pickerRef=u.createRef(),un.focus=function(){un.pickerRef.current&&un.pickerRef.current.focus()},un.blur=function(){un.pickerRef.current&&un.pickerRef.current.blur()},un.getDefaultLocale=function(){var Gr=un.props.locale,ri=h()(h()({},mo.a),Gr);return ri.lang=h()(h()({},ri.lang),(Gr||{}).lang),ri},un.renderPicker=function(Gr){var ri=un.context,rn=ri.getPrefixCls,jn=ri.direction,oi=ri.getPopupContainer,li=un.props,ai=li.prefixCls,Ei=li.getPopupContainer,mi=li.className,Ai=li.size,Ii=li.bordered,na=Ii===void 0?!0:Ii,ji=li.placeholder,fa=Oo(li,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Xa=un.props,xa=Xa.format,wa=Xa.showTime,Da=Xa.picker,ja=rn("picker",ai),ko={};return ko=h()(h()(h()({},ko),wa?rs(h()({format:xa,picker:Da},wa)):{}),Da==="time"?rs(h()(h()({format:xa},un.props),{picker:Da})):{}),u.createElement(Jo.b.Consumer,null,function(ro){var pa,Ea=Ai||ro;return u.createElement(oo,h()({separator:u.createElement("span",{"aria-label":"to",className:"".concat(ja,"-separator")},u.createElement(Ia.a,null)),ref:un.pickerRef,placeholder:ao(Da,Gr,ji),suffixIcon:Da==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},fa,ko,{className:_()(mi,(pa={},r()(pa,"".concat(ja,"-").concat(Ea),Ea),r()(pa,"".concat(ja,"-borderless"),!na),pa)),locale:Gr.lang,prefixCls:ja,getPopupContainer:Ei||oi,generateConfig:ht,prevIcon:u.createElement("span",{className:"".concat(ja,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(ja,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(ja,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(ja,"-super-next-icon")}),components:os,direction:jn}))})},un}return g()(Xn,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Xn}(u.Component);return Er.contextType=bo.b,Er}var os={button:t,rangeItem:e};function xo(ht){return ht?Array.isArray(ht)?ht:[ht]:[]}function rs(ht){var Er=ht.format,Zr=ht.picker,Xr=ht.showHour,Xn=ht.showMinute,un=ht.showSecond,Gr=ht.use12Hours,ri=xo(Er)[0],rn=h()({},ht);return ri&&(!ri.includes("s")&&un===void 0&&(rn.showSecond=!1),!ri.includes("m")&&Xn===void 0&&(rn.showMinute=!1),!ri.includes("H")&&!ri.includes("h")&&Xr===void 0&&(rn.showHour=!1),(ri.includes("a")||ri.includes("A"))&&Gr===void 0&&(rn.use12Hours=!0)),Zr==="time"?rn:{showTime:rn}}function Ho(ht){var Er=wo(ht),Zr=Er.DatePicker,Xr=Er.WeekPicker,Xn=Er.MonthPicker,un=Er.YearPicker,Gr=Er.TimePicker,ri=Er.QuarterPicker,rn=Io(ht),jn=Zr;return jn.WeekPicker=Xr,jn.MonthPicker=Xn,jn.YearPicker=un,jn.RangePicker=rn,jn.TimePicker=Gr,jn.QuarterPicker=ri,jn}var _o=Ho,uo=_o(m),Ha=D.a=uo},"+lIL":function(k,D,n){var y=n("ProS");n("/ry/"),n("3OrL");var p=n("L5E0"),x=n("7Phj");y.registerVisual(p),y.registerLayout(x)},"+nKL":function(k,D,n){"use strict";var y=n("wx14"),p=n("VTBJ"),x=n("rePB"),A=n("ODXe"),m=n("Ff2n"),f=n("q1tI"),h=n("TSYQ"),u=n.n(h),a=n("t23M"),i=f.forwardRef(function($,be){var _e=$.height,Ee=$.offset,Xe=$.children,He=$.prefixCls,nt=$.onInnerResize,Ie=$.innerProps,oe={},ot={display:"flex",flexDirection:"column"};return Ee!==void 0&&(oe={height:_e,position:"relative",overflow:"hidden"},ot=Object(p.a)(Object(p.a)({},ot),{},{transform:"translateY(".concat(Ee,"px)"),position:"absolute",left:0,right:0,top:0})),f.createElement("div",{style:oe},f.createElement(a.a,{onResize:function(J){var Y=J.offsetHeight;Y&&nt&&nt()}},f.createElement("div",Object(y.a)({style:ot,className:u()(Object(x.a)({},"".concat(He,"-holder-inner"),He)),ref:be},Ie),Xe)))});i.displayName="Filler";var t=i,o=n("1OyB"),e=n("vuIU"),l=n("Ji7U"),r=n("LK+K"),s=n("wgJM"),c=20;function d($){return"touches"in $?$.touches[0].pageY:$.pageY}var g=function($){Object(l.a)(_e,$);var be=Object(r.a)(_e);function _e(){var Ee;Object(o.a)(this,_e);for(var Xe=arguments.length,He=new Array(Xe),nt=0;nt<Xe;nt++)He[nt]=arguments[nt];return Ee=be.call.apply(be,[this].concat(He)),Ee.moveRaf=null,Ee.scrollbarRef=f.createRef(),Ee.thumbRef=f.createRef(),Ee.visibleTimeout=null,Ee.state={dragging:!1,pageY:null,startTop:null,visible:!1},Ee.delayHidden=function(){clearTimeout(Ee.visibleTimeout),Ee.setState({visible:!0}),Ee.visibleTimeout=setTimeout(function(){Ee.setState({visible:!1})},2e3)},Ee.onScrollbarTouchStart=function(Ie){Ie.preventDefault()},Ee.onContainerMouseDown=function(Ie){Ie.stopPropagation(),Ie.preventDefault()},Ee.patchEvents=function(){window.addEventListener("mousemove",Ee.onMouseMove),window.addEventListener("mouseup",Ee.onMouseUp),Ee.thumbRef.current.addEventListener("touchmove",Ee.onMouseMove),Ee.thumbRef.current.addEventListener("touchend",Ee.onMouseUp)},Ee.removeEvents=function(){var Ie;window.removeEventListener("mousemove",Ee.onMouseMove),window.removeEventListener("mouseup",Ee.onMouseUp),(Ie=Ee.scrollbarRef.current)===null||Ie===void 0||Ie.removeEventListener("touchstart",Ee.onScrollbarTouchStart),Ee.thumbRef.current&&(Ee.thumbRef.current.removeEventListener("touchstart",Ee.onMouseDown),Ee.thumbRef.current.removeEventListener("touchmove",Ee.onMouseMove),Ee.thumbRef.current.removeEventListener("touchend",Ee.onMouseUp)),s.a.cancel(Ee.moveRaf)},Ee.onMouseDown=function(Ie){var oe=Ee.props.onStartMove;Ee.setState({dragging:!0,pageY:d(Ie),startTop:Ee.getTop()}),oe(),Ee.patchEvents(),Ie.stopPropagation(),Ie.preventDefault()},Ee.onMouseMove=function(Ie){var oe=Ee.state,ot=oe.dragging,he=oe.pageY,J=oe.startTop,Y=Ee.props.onScroll;if(s.a.cancel(Ee.moveRaf),ot){var q=d(Ie)-he,fe=J+q,we=Ee.getEnableScrollRange(),Ne=Ee.getEnableHeightRange(),je=Ne?fe/Ne:0,me=Math.ceil(je*we);Ee.moveRaf=Object(s.a)(function(){Y(me)})}},Ee.onMouseUp=function(){var Ie=Ee.props.onStopMove;Ee.setState({dragging:!1}),Ie(),Ee.removeEvents()},Ee.getSpinHeight=function(){var Ie=Ee.props,oe=Ie.height,ot=Ie.count,he=oe/ot*10;return he=Math.max(he,c),he=Math.min(he,oe/2),Math.floor(he)},Ee.getEnableScrollRange=function(){var Ie=Ee.props,oe=Ie.scrollHeight,ot=Ie.height;return oe-ot||0},Ee.getEnableHeightRange=function(){var Ie=Ee.props.height,oe=Ee.getSpinHeight();return Ie-oe||0},Ee.getTop=function(){var Ie=Ee.props.scrollTop,oe=Ee.getEnableScrollRange(),ot=Ee.getEnableHeightRange();if(Ie===0||oe===0)return 0;var he=Ie/oe;return he*ot},Ee.showScroll=function(){var Ie=Ee.props,oe=Ie.height,ot=Ie.scrollHeight;return ot>oe},Ee}return Object(e.a)(_e,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(Xe){Xe.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var Xe=this.state,He=Xe.dragging,nt=Xe.visible,Ie=this.props,oe=Ie.prefixCls,ot=Ie.direction,he=this.getSpinHeight(),J=this.getTop(),Y=this.showScroll(),q=Y&&nt,fe=ot==="rtl"?{left:0}:{right:0};return f.createElement("div",{ref:this.scrollbarRef,className:u()("".concat(oe,"-scrollbar"),Object(x.a)({},"".concat(oe,"-scrollbar-show"),Y)),style:Object(p.a)(Object(p.a)({width:8,top:0,bottom:0},fe),{},{position:"absolute",display:q?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f.createElement("div",{ref:this.thumbRef,className:u()("".concat(oe,"-scrollbar-thumb"),Object(x.a)({},"".concat(oe,"-scrollbar-thumb-moving"),He)),style:{width:"100%",height:he,top:J,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),_e}(f.Component);function v($){var be=$.children,_e=$.setRef,Ee=f.useCallback(function(Xe){_e(Xe)},[]);return f.cloneElement(be,{ref:Ee})}function b($,be,_e,Ee,Xe,He){var nt=He.getKey;return $.slice(be,_e+1).map(function(Ie,oe){var ot=be+oe,he=Xe(Ie,ot,{}),J=nt(Ie);return f.createElement(v,{key:J,setRef:function(q){return Ee(Ie,q)}},he)})}var S=n("m+aA"),E=function(){function $(){Object(o.a)(this,$),this.maps=void 0,this.maps=Object.create(null)}return Object(e.a)($,[{key:"set",value:function(_e,Ee){this.maps[_e]=Ee}},{key:"get",value:function(_e){return this.maps[_e]}}]),$}(),C=E;function _($,be,_e){var Ee=f.useState(0),Xe=Object(A.a)(Ee,2),He=Xe[0],nt=Xe[1],Ie=Object(f.useRef)(new Map),oe=Object(f.useRef)(new C),ot=Object(f.useRef)();function he(){s.a.cancel(ot.current)}function J(){he(),ot.current=Object(s.a)(function(){Ie.current.forEach(function(q,fe){if(q&&q.offsetParent){var we=Object(S.a)(q),Ne=we.offsetHeight;oe.current.get(fe)!==Ne&&oe.current.set(fe,we.offsetHeight)}}),nt(function(q){return q+1})})}function Y(q,fe){var we=$(q),Ne=Ie.current.get(we);fe?(Ie.current.set(we,fe),J()):Ie.current.delete(we),!Ne!==!fe&&(fe?be==null||be(q):_e==null||_e(q))}return Object(f.useEffect)(function(){return he},[]),[Y,J,oe.current,He]}var T=n("U8pU");function w($,be,_e,Ee,Xe,He,nt,Ie){var oe=f.useRef();return function(ot){if(ot==null){Ie();return}if(s.a.cancel(oe.current),typeof ot=="number")nt(ot);else if(ot&&Object(T.a)(ot)==="object"){var he,J=ot.align;"index"in ot?he=ot.index:he=be.findIndex(function(we){return Xe(we)===ot.key});var Y=ot.offset,q=Y===void 0?0:Y,fe=function we(Ne,je){if(Ne<0||!$.current)return;var me=$.current.clientHeight,Ce=!1,Fe=je;if(me){for(var it=je||J,Ct=0,mt=0,Ve=0,or=Math.min(be.length,he),dt=0;dt<=or;dt+=1){var Yt=Xe(be[dt]);mt=Ct;var hr=_e.get(Yt);Ve=mt+(hr===void 0?Ee:hr),Ct=Ve,dt===he&&hr===void 0&&(Ce=!0)}var Gt=null;switch(it){case"top":Gt=mt-q;break;case"bottom":Gt=Ve-me+q;break;default:{var Pt=$.current.scrollTop,Xt=Pt+me;mt<Pt?Fe="top":Ve>Xt&&(Fe="bottom")}}Gt!==null&&Gt!==$.current.scrollTop&&nt(Gt)}oe.current=Object(s.a)(function(){Ce&&He(),we(Ne-1,Fe)},2)};fe(3)}}}function O($,be,_e,Ee){var Xe=_e-$,He=be-_e,nt=Math.min(Xe,He)*2;if(Ee<=nt){var Ie=Math.floor(Ee/2);return Ee%2?_e+Ie+1:_e-Ie}return Xe>He?_e-(Ee-He):_e+(Ee-Xe)}function I($,be,_e){var Ee=$.length,Xe=be.length,He,nt;if(Ee===0&&Xe===0)return null;Ee<Xe?(He=$,nt=be):(He=be,nt=$);var Ie={__EMPTY_ITEM__:!0};function oe(fe){return fe!==void 0?_e(fe):Ie}for(var ot=null,he=Math.abs(Ee-Xe)!==1,J=0;J<nt.length;J+=1){var Y=oe(He[J]),q=oe(nt[J]);if(Y!==q){ot=J,he=he||Y!==oe(nt[J+1]);break}}return ot===null?null:{index:ot,multiple:he}}function R($,be,_e){var Ee=f.useState($),Xe=Object(A.a)(Ee,2),He=Xe[0],nt=Xe[1],Ie=f.useState(null),oe=Object(A.a)(Ie,2),ot=oe[0],he=oe[1];return f.useEffect(function(){var J=I(He||[],$||[],be);(J==null?void 0:J.index)!==void 0&&(_e==null||_e(J.index),he($[J.index])),nt($)},[$]),[ot]}var M=(typeof navigator=="undefined"?"undefined":Object(T.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),F=M,P=function($,be){var _e=Object(f.useRef)(!1),Ee=Object(f.useRef)(null);function Xe(){clearTimeout(Ee.current),_e.current=!0,Ee.current=setTimeout(function(){_e.current=!1},50)}var He=Object(f.useRef)({top:$,bottom:be});return He.current.top=$,He.current.bottom=be,function(nt){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=nt<0&&He.current.top||nt>0&&He.current.bottom;return Ie&&oe?(clearTimeout(Ee.current),_e.current=!1):(!oe||_e.current)&&Xe(),!_e.current&&oe}};function X($,be,_e,Ee){var Xe=Object(f.useRef)(0),He=Object(f.useRef)(null),nt=Object(f.useRef)(null),Ie=Object(f.useRef)(!1),oe=P(be,_e);function ot(J){if(!$)return;s.a.cancel(He.current);var Y=J.deltaY;if(Xe.current+=Y,nt.current=Y,oe(Y))return;F||J.preventDefault(),He.current=Object(s.a)(function(){var q=Ie.current?10:1;Ee(Xe.current*q),Xe.current=0})}function he(J){if(!$)return;Ie.current=J.detail===nt.current}return[ot,he]}var B=n("TNol"),j=14/15;function W($,be,_e){var Ee=Object(f.useRef)(!1),Xe=Object(f.useRef)(0),He=Object(f.useRef)(null),nt=Object(f.useRef)(null),Ie,oe=function(Y){if(Ee.current){var q=Math.ceil(Y.touches[0].pageY),fe=Xe.current-q;Xe.current=q,_e(fe)&&Y.preventDefault(),clearInterval(nt.current),nt.current=setInterval(function(){fe*=j,(!_e(fe,!0)||Math.abs(fe)<=.1)&&clearInterval(nt.current)},16)}},ot=function(){Ee.current=!1,Ie()},he=function(Y){Ie(),Y.touches.length===1&&!Ee.current&&(Ee.current=!0,Xe.current=Math.ceil(Y.touches[0].pageY),He.current=Y.target,He.current.addEventListener("touchmove",oe),He.current.addEventListener("touchend",ot))};Ie=function(){He.current&&(He.current.removeEventListener("touchmove",oe),He.current.removeEventListener("touchend",ot))},Object(B.a)(function(){return $&&be.current.addEventListener("touchstart",he),function(){var J;(J=be.current)===null||J===void 0||J.removeEventListener("touchstart",he),Ie(),clearInterval(nt.current)}},[$])}var z=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],V=[],Q={overflowY:"auto",overflowAnchor:"none"};function G($,be){var _e=$.prefixCls,Ee=_e===void 0?"rc-virtual-list":_e,Xe=$.className,He=$.height,nt=$.itemHeight,Ie=$.fullHeight,oe=Ie===void 0?!0:Ie,ot=$.style,he=$.data,J=$.children,Y=$.itemKey,q=$.virtual,fe=$.direction,we=$.component,Ne=we===void 0?"div":we,je=$.onScroll,me=$.onVisibleChange,Ce=$.innerProps,Fe=Object(m.a)($,z),it=!!(q!==!1&&He&&nt),Ct=it&&he&&nt*he.length>He,mt=Object(f.useState)(0),Ve=Object(A.a)(mt,2),or=Ve[0],dt=Ve[1],Yt=Object(f.useState)(!1),hr=Object(A.a)(Yt,2),Gt=hr[0],Pt=hr[1],Xt=u()(Ee,Object(x.a)({},"".concat(Ee,"-rtl"),fe==="rtl"),Xe),Ge=he||V,pe=Object(f.useRef)(),se=Object(f.useRef)(),lt=Object(f.useRef)(),Ze=f.useCallback(function(pt){return typeof Y=="function"?Y(pt):pt==null?void 0:pt[Y]},[Y]),de={getKey:Ze};function _t(pt){dt(function(ar){var Ht;typeof pt=="function"?Ht=pt(ar):Ht=pt;var Mt=Nt(Ht);return pe.current.scrollTop=Mt,Mt})}var er=Object(f.useRef)({start:0,end:Ge.length}),yt=Object(f.useRef)(),Ar=R(Ge,Ze),Sr=Object(A.a)(Ar,1),Cn=Sr[0];yt.current=Cn;var mr=_(Ze,null,null),Pr=Object(A.a)(mr,4),gr=Pr[0],Jt=Pr[1],Dt=Pr[2],dn=Pr[3],Fn=f.useMemo(function(){if(!it)return{scrollHeight:void 0,start:0,end:Ge.length-1,offset:void 0};if(!Ct){var pt;return{scrollHeight:((pt=se.current)===null||pt===void 0?void 0:pt.offsetHeight)||0,start:0,end:Ge.length-1,offset:void 0}}for(var ar=0,Ht,Mt,qt,Rt=Ge.length,Qt=0;Qt<Rt;Qt+=1){var jr=Ge[Qt],Nr=Ze(jr),Lr=Dt.get(Nr),ln=ar+(Lr===void 0?nt:Lr);ln>=or&&Ht===void 0&&(Ht=Qt,Mt=ar),ln>or+He&&qt===void 0&&(qt=Qt),ar=ln}return Ht===void 0&&(Ht=0,Mt=0,qt=Math.ceil(He/nt)),qt===void 0&&(qt=Ge.length-1),qt=Math.min(qt+1,Ge.length),{scrollHeight:ar,start:Ht,end:qt,offset:Mt}},[Ct,it,or,Ge,dn,He]),Zn=Fn.scrollHeight,ci=Fn.start,Xi=Fn.end,Gn=Fn.offset;er.current.start=ci,er.current.end=Xi;var ei=Zn-He,Zt=Object(f.useRef)(ei);Zt.current=ei;function Nt(pt){var ar=pt;return Number.isNaN(Zt.current)||(ar=Math.min(ar,Zt.current)),ar=Math.max(ar,0),ar}var Me=or<=0,ke=or>=ei,Pe=P(Me,ke);function tt(pt){var ar=pt;_t(ar)}function vt(pt){var ar=pt.currentTarget.scrollTop;ar!==or&&_t(ar),je==null||je(pt)}var St=X(it,Me,ke,function(pt){_t(function(ar){var Ht=ar+pt;return Ht})}),Vt=Object(A.a)(St,2),Mr=Vt[0],$r=Vt[1];W(it,pe,function(pt,ar){return Pe(pt,ar)?!1:(Mr({preventDefault:function(){},deltaY:pt}),!0)}),Object(B.a)(function(){function pt(ar){it&&ar.preventDefault()}return pe.current.addEventListener("wheel",Mr),pe.current.addEventListener("DOMMouseScroll",$r),pe.current.addEventListener("MozMousePixelScroll",pt),function(){pe.current&&(pe.current.removeEventListener("wheel",Mr),pe.current.removeEventListener("DOMMouseScroll",$r),pe.current.removeEventListener("MozMousePixelScroll",pt))}},[it]);var vn=w(pe,Ge,Dt,nt,Ze,Jt,_t,function(){var pt;(pt=lt.current)===null||pt===void 0||pt.delayHidden()});f.useImperativeHandle(be,function(){return{scrollTo:vn}}),Object(B.a)(function(){if(me){var pt=Ge.slice(ci,Xi+1);me(pt,Ge)}},[ci,Xi,Ge]);var jt=b(Ge,ci,Xi,gr,J,de),gt=null;return He&&(gt=Object(p.a)(Object(x.a)({},oe?"height":"maxHeight",He),Q),it&&(gt.overflowY="hidden",Gt&&(gt.pointerEvents="none"))),f.createElement("div",Object(y.a)({style:Object(p.a)(Object(p.a)({},ot),{},{position:"relative"}),className:Xt},Fe),f.createElement(Ne,{className:"".concat(Ee,"-holder"),style:gt,ref:pe,onScroll:vt},f.createElement(t,{prefixCls:Ee,height:Zn,offset:Gn,onInnerResize:Jt,ref:se,innerProps:Ce},jt)),it&&f.createElement(g,{ref:lt,prefixCls:Ee,scrollTop:or,height:He,scrollHeight:Zn,count:Ge.length,direction:fe,onScroll:tt,onStartMove:function(){Pt(!0)},onStopMove:function(){Pt(!1)}}))}var re=f.forwardRef(G);re.displayName="List";var ee=re,ue=D.a=ee},"+rIm":function(k,D,n){var y=n("bYtY"),p=y.retrieve,x=y.defaults,A=y.extend,m=y.each,f=n("7aKB"),h=n("IwbS"),u=n("Qxkt"),a=n("OELB"),i=a.isRadianAroundZero,t=a.remRadian,o=n("oVpE"),e=o.createSymbol,l=n("Fofx"),r=n("QBsz"),s=r.applyTransform,c=n("aX7z"),d=c.shouldShowAllLabels,g=Math.PI,v=function(B,j){this.opt=j,this.axisModel=B,x(j,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group;var W=new h.Group({position:j.position.slice(),rotation:j.rotation});W.updateTransform(),this._transform=W.transform,this._dumbGroup=W};v.prototype={constructor:v,hasBuilder:function(B){return!!b[B]},add:function(B){b[B].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var B=this.opt,j=this.axisModel;if(!j.get("axisLine.show"))return;var W=this.axisModel.axis.getExtent(),z=this._transform,V=[W[0],0],Q=[W[1],0];z&&(s(V,V,z),s(Q,Q,z));var G=A({lineCap:"round"},j.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new h.Line({anid:"line",subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:Q[0],y2:Q[1]},style:G,strokeContainThreshold:B.strokeContainThreshold||5,silent:!0,z2:1}));var re=j.get("axisLine.symbol"),ee=j.get("axisLine.symbolSize"),ue=j.get("axisLine.symbolOffset")||0;if(typeof ue=="number"&&(ue=[ue,ue]),re!=null){typeof re=="string"&&(re=[re,re]),(typeof ee=="string"||typeof ee=="number")&&(ee=[ee,ee]);var $=ee[0],be=ee[1];m([{rotate:B.rotation+Math.PI/2,offset:ue[0],r:0},{rotate:B.rotation-Math.PI/2,offset:ue[1],r:Math.sqrt((V[0]-Q[0])*(V[0]-Q[0])+(V[1]-Q[1])*(V[1]-Q[1]))}],function(_e,Ee){if(re[Ee]!=="none"&&re[Ee]!=null){var Xe=e(re[Ee],-$/2,-be/2,$,be,G.stroke,!0),He=_e.r+_e.offset,nt=[V[0]+He*Math.cos(B.rotation),V[1]-He*Math.sin(B.rotation)];Xe.attr({rotation:_e.rotate,position:nt,silent:!0,z2:11}),this.group.add(Xe)}},this)}},axisTickLabel:function(){var B=this.axisModel,j=this.opt,W=M(this,B,j),z=P(this,B,j);T(B,z,W),F(this,B,j)},axisName:function(){var B=this.opt,j=this.axisModel,W=p(B.axisName,j.get("name"));if(!W)return;var z=j.get("nameLocation"),V=B.nameDirection,Q=j.getModel("nameTextStyle"),G=j.get("nameGap")||0,re=this.axisModel.axis.getExtent(),ee=re[0]>re[1]?-1:1,ue=[z==="start"?re[0]-ee*G:z==="end"?re[1]+ee*G:(re[0]+re[1])/2,I(z)?B.labelOffset+V*G:0],$,be=j.get("nameRotate");be!=null&&(be=be*g/180);var _e;I(z)?$=E(B.rotation,be!=null?be:B.rotation,V):($=C(B,z,be||0,re),_e=B.axisNameAvailableWidth,_e!=null&&(_e=Math.abs(_e/Math.sin($.rotation)),!isFinite(_e)&&(_e=null)));var Ee=Q.getFont(),Xe=j.get("nameTruncate",!0)||{},He=Xe.ellipsis,nt=p(B.nameTruncateMaxWidth,Xe.maxWidth,_e),Ie=He!=null&&nt!=null?f.truncateText(W,nt,Ee,He,{minChar:2,placeholder:Xe.placeholder}):W,oe=j.get("tooltip",!0),ot=j.mainType,he={componentType:ot,name:W,$vars:["name"]};he[ot+"Index"]=j.componentIndex;var J=new h.Text({anid:"name",__fullText:W,__truncatedText:Ie,position:ue,rotation:$.rotation,silent:_(j),z2:1,tooltip:oe&&oe.show?A({content:W,formatter:function(){return W},formatterParams:he},oe):null});h.setTextStyle(J.style,Q,{text:Ie,textFont:Ee,textFill:Q.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||$.textAlign,textVerticalAlign:Q.get("verticalAlign")||$.textVerticalAlign}),j.get("triggerEvent")&&(J.eventData=S(j),J.eventData.targetType="axisName",J.eventData.name=W),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},S=v.makeAxisEventDataBase=function(B){var j={componentType:B.mainType,componentIndex:B.componentIndex};return j[B.mainType+"Index"]=B.componentIndex,j},E=v.innerTextLayout=function(B,j,W){var z=t(j-B),V,Q;return i(z)?(Q=W>0?"top":"bottom",V="center"):i(z-g)?(Q=W>0?"bottom":"top",V="center"):(Q="middle",z>0&&z<g?V=W>0?"right":"left":V=W>0?"left":"right"),{rotation:z,textAlign:V,textVerticalAlign:Q}};function C(B,j,W,z){var V=t(W-B.rotation),Q,G,re=z[0]>z[1],ee=j==="start"&&!re||j!=="start"&&re;return i(V-g/2)?(G=ee?"bottom":"top",Q="center"):i(V-g*1.5)?(G=ee?"top":"bottom",Q="center"):(G="middle",V<g*1.5&&V>g/2?Q=ee?"left":"right":Q=ee?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var _=v.isLabelSilent=function(B){var j=B.get("tooltip");return B.get("silent")||!(B.get("triggerEvent")||j&&j.show)};function T(B,j,W){if(d(B.axis))return;var z=B.get("axisLabel.showMinLabel"),V=B.get("axisLabel.showMaxLabel");j=j||[],W=W||[];var Q=j[0],G=j[1],re=j[j.length-1],ee=j[j.length-2],ue=W[0],$=W[1],be=W[W.length-1],_e=W[W.length-2];z===!1?(w(Q),w(ue)):O(Q,G)&&(z?(w(G),w($)):(w(Q),w(ue))),V===!1?(w(re),w(be)):O(ee,re)&&(V?(w(ee),w(_e)):(w(re),w(be)))}function w(B){B&&(B.ignore=!0)}function O(B,j,W){var z=B&&B.getBoundingRect().clone(),V=j&&j.getBoundingRect().clone();if(!z||!V)return;var Q=l.identity([]);return l.rotate(Q,Q,-B.rotation),z.applyTransform(l.mul([],Q,B.getLocalTransform())),V.applyTransform(l.mul([],Q,j.getLocalTransform())),z.intersect(V)}function I(B){return B==="middle"||B==="center"}function R(B,j,W,z,V){for(var Q=[],G=[],re=[],ee=0;ee<B.length;ee++){var ue=B[ee].coord;G[0]=ue,G[1]=0,re[0]=ue,re[1]=W,j&&(s(G,G,j),s(re,re,j));var $=new h.Line({anid:V+"_"+B[ee].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:re[0],y2:re[1]},style:z,z2:2,silent:!0});Q.push($)}return Q}function M(B,j,W){var z=j.axis,V=j.getModel("axisTick");if(!V.get("show")||z.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=W.tickDirection*V.get("length"),re=z.getTicksCoords(),ee=R(re,B._transform,G,x(Q.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),ue=0;ue<ee.length;ue++)B.group.add(ee[ue]);return ee}function F(B,j,W){var z=j.axis,V=j.getModel("minorTick");if(!V.get("show")||z.scale.isBlank())return;var Q=z.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),re=W.tickDirection*V.get("length"),ee=x(G.getLineStyle(),x(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),ue=0;ue<Q.length;ue++)for(var $=R(Q[ue],B._transform,re,ee,"minorticks_"+ue),be=0;be<$.length;be++)B.group.add($[be])}function P(B,j,W){var z=j.axis,V=p(W.axisLabelShow,j.get("axisLabel.show"));if(!V||z.scale.isBlank())return;var Q=j.getModel("axisLabel"),G=Q.get("margin"),re=z.getViewLabels(),ee=(p(W.labelRotate,Q.get("rotate"))||0)*g/180,ue=E(W.rotation,ee,W.labelDirection),$=j.getCategories&&j.getCategories(!0),be=[],_e=_(j),Ee=j.get("triggerEvent");return m(re,function(Xe,He){var nt=Xe.tickValue,Ie=Xe.formattedLabel,oe=Xe.rawLabel,ot=Q;$&&$[nt]&&$[nt].textStyle&&(ot=new u($[nt].textStyle,Q,j.ecModel));var he=ot.getTextColor()||j.get("axisLine.lineStyle.color"),J=z.dataToCoord(nt),Y=[J,W.labelOffset+W.labelDirection*G],q=new h.Text({anid:"label_"+nt,position:Y,rotation:ue.rotation,silent:_e,z2:10});h.setTextStyle(q.style,ot,{text:Ie,textAlign:ot.getShallow("align",!0)||ue.textAlign,textVerticalAlign:ot.getShallow("verticalAlign",!0)||ot.getShallow("baseline",!0)||ue.textVerticalAlign,textFill:typeof he=="function"?he(z.type==="category"?oe:z.type==="value"?nt+"":nt,He):he}),Ee&&(q.eventData=S(j),q.eventData.targetType="axisLabel",q.eventData.value=oe),B._dumbGroup.add(q),q.updateTransform(),be.push(q),B.group.add(q),q.decomposeTransform()}),be}var X=v;k.exports=X},"+wW9":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.isArray,A=y.isObject,m=n("JuEJ"),f=n("4NO4"),h=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 a(l,r,s,c){r=r.split(",");for(var d=l,g,v=0;v<r.length-1;v++)g=r[v],d[g]==null&&(d[g]={}),d=d[g];(c||d[r[v]]==null)&&(d[r[v]]=s)}function i(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"]],o=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,r){m(l,r),l.series=h(l.series),p(l.series,function(s){if(!A(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 d=u(s,"pointer.color");d!=null&&a(s,"itemStyle.color",d)}i(s)}),l.dataRange&&(l.visualMap=l.dataRange),p(o,function(s){var c=l[s];c&&(x(c)||(c=[c]),p(c,function(d){i(d)}))})}k.exports=e},"/IIm":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("H6uX"),m=n("IwbS"),f=n("pP6R"),h=n("gPAo"),u=x.curry,a=x.each,i=x.map,t=Math.min,o=Math.max,e=Math.pow,l=1e4,r=6,s=6,c="globalPan",d={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},g={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},v={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function S(me){A.call(this),this._zr=me,this.group=new m.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},a(Y,function(Ce,Fe){this._handlers[Fe]=x.bind(Ce,this)},this)}S.prototype={constructor:S,enableBrush:function(me){return this._brushType&&C(this),me.brushType&&E(this,me),this},setPanels:function(me){if(me&&me.length){var Ce=this._panels={};x.each(me,function(Fe){Ce[Fe.panelId]=x.clone(Fe)})}else this._panels=null;return this},mount:function(me){me=me||{},this._enableGlobalPan=me.enableGlobalPan;var Ce=this.group;return this._zr.add(Ce),Ce.attr({position:me.position||[0,0],rotation:me.rotation||0,scale:me.scale||[1,1]}),this._transform=Ce.getLocalTransform(),this},eachCover:function(me,Ce){a(this._covers,me,Ce)},updateCovers:function(me){me=x.map(me,function(hr){return x.merge(x.clone(v),hr,!0)});var Ce="\0-brush-index-",Fe=this._covers,it=this._covers=[],Ct=this,mt=this._creatingCover;return new h(Fe,me,or,Ve).add(dt).update(dt).remove(Yt).execute(),this;function Ve(hr,Gt){return(hr.id!=null?hr.id:Ce+Gt)+"-"+hr.brushType}function or(hr,Gt){return Ve(hr.__brushOption,Gt)}function dt(hr,Gt){var Pt=me[hr];if(Gt!=null&&Fe[Gt]===mt)it[hr]=Fe[Gt];else{var Xt=it[hr]=Gt!=null?(Fe[Gt].__brushOption=Pt,Fe[Gt]):O(Ct,w(Ct,Pt));M(Ct,Xt)}}function Yt(hr){Fe[hr]!==mt&&Ct.group.remove(Fe[hr])}},unmount:function(){return this.enableBrush(!1),B(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},x.mixin(S,A);function E(me,Ce){var Fe=me._zr;me._enableGlobalPan||f.take(Fe,c,me._uid),_(Fe,me._handlers),me._brushType=Ce.brushType,me._brushOption=x.merge(x.clone(v),Ce,!0)}function C(me){var Ce=me._zr;f.release(Ce,c,me._uid),T(Ce,me._handlers),me._brushType=me._brushOption=null}function _(me,Ce){a(Ce,function(Fe,it){me.on(it,Fe)})}function T(me,Ce){a(Ce,function(Fe,it){me.off(it,Fe)})}function w(me,Ce){var Fe=we[Ce.brushType].createCover(me,Ce);return Fe.__brushOption=Ce,R(Fe,Ce),me.group.add(Fe),Fe}function O(me,Ce){var Fe=F(Ce);return Fe.endCreating&&(Fe.endCreating(me,Ce),R(Ce,Ce.__brushOption)),Ce}function I(me,Ce){var Fe=Ce.__brushOption;F(Ce).updateCoverShape(me,Ce,Fe.range,Fe)}function R(me,Ce){var Fe=Ce.z;Fe==null&&(Fe=l),me.traverse(function(it){it.z=Fe,it.z2=Fe})}function M(me,Ce){F(Ce).updateCommon(me,Ce),I(me,Ce)}function F(me){return we[me.__brushOption.brushType]}function P(me,Ce,Fe){var it=me._panels;if(!it)return!0;var Ct,mt=me._transform;return a(it,function(Ve){Ve.isTargetByCursor(Ce,Fe,mt)&&(Ct=Ve)}),Ct}function X(me,Ce){var Fe=me._panels;if(!Fe)return!0;var it=Ce.__brushOption.panelId;return it!=null?Fe[it]:!0}function B(me){var Ce=me._covers,Fe=Ce.length;return a(Ce,function(it){me.group.remove(it)},me),Ce.length=0,!!Fe}function j(me,Ce){var Fe=i(me._covers,function(it){var Ct=it.__brushOption,mt=x.clone(Ct.range);return{brushType:Ct.brushType,panelId:Ct.panelId,range:mt}});me.trigger("brush",Fe,{isEnd:!!Ce.isEnd,removeOnClick:!!Ce.removeOnClick})}function W(me){var Ce=me._track;if(!Ce.length)return!1;var Fe=Ce[Ce.length-1],it=Ce[0],Ct=Fe[0]-it[0],mt=Fe[1]-it[1],Ve=e(Ct*Ct+mt*mt,.5);return Ve>r}function z(me){var Ce=me.length-1;return Ce<0&&(Ce=0),[me[0],me[Ce]]}function V(me,Ce,Fe,it){var Ct=new m.Group;return Ct.add(new m.Rect({name:"main",style:ee(Fe),silent:!0,draggable:!0,cursor:"move",drift:u(me,Ce,Ct,"nswe"),ondragend:u(j,Ce,{isEnd:!0})})),a(it,function(mt){Ct.add(new m.Rect({name:mt,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(me,Ce,Ct,mt),ondragend:u(j,Ce,{isEnd:!0})}))}),Ct}function Q(me,Ce,Fe,it){var Ct=it.brushStyle.lineWidth||0,mt=o(Ct,s),Ve=Fe[0][0],or=Fe[1][0],dt=Ve-Ct/2,Yt=or-Ct/2,hr=Fe[0][1],Gt=Fe[1][1],Pt=hr-mt+Ct/2,Xt=Gt-mt+Ct/2,Ge=hr-Ve,pe=Gt-or,se=Ge+Ct,lt=pe+Ct;re(me,Ce,"main",Ve,or,Ge,pe),it.transformable&&(re(me,Ce,"w",dt,Yt,mt,lt),re(me,Ce,"e",Pt,Yt,mt,lt),re(me,Ce,"n",dt,Yt,se,mt),re(me,Ce,"s",dt,Xt,se,mt),re(me,Ce,"nw",dt,Yt,mt,mt),re(me,Ce,"ne",Pt,Yt,mt,mt),re(me,Ce,"sw",dt,Xt,mt,mt),re(me,Ce,"se",Pt,Xt,mt,mt))}function G(me,Ce){var Fe=Ce.__brushOption,it=Fe.transformable,Ct=Ce.childAt(0);Ct.useStyle(ee(Fe)),Ct.attr({silent:!it,cursor:it?"move":"default"}),a(["w","e","n","s","se","sw","ne","nw"],function(mt){var Ve=Ce.childOfName(mt),or=be(me,mt);Ve&&Ve.attr({silent:!it,invisible:!it,cursor:it?g[or]+"-resize":null})})}function re(me,Ce,Fe,it,Ct,mt,Ve){var or=Ce.childOfName(Fe);or&&or.setShape(nt(He(me,Ce,[[it,Ct],[it+mt,Ct+Ve]])))}function ee(me){return x.defaults({strokeNoScale:!0},me.brushStyle)}function ue(me,Ce,Fe,it){var Ct=[t(me,Fe),t(Ce,it)],mt=[o(me,Fe),o(Ce,it)];return[[Ct[0],mt[0]],[Ct[1],mt[1]]]}function $(me){return m.getTransform(me.group)}function be(me,Ce){if(Ce.length>1){Ce=Ce.split("");var Fe=[be(me,Ce[0]),be(me,Ce[1])];return(Fe[0]==="e"||Fe[0]==="w")&&Fe.reverse(),Fe.join("")}else{var it={w:"left",e:"right",n:"top",s:"bottom"},Ct={left:"w",right:"e",top:"n",bottom:"s"},Fe=m.transformDirection(it[Ce],$(me));return Ct[Fe]}}function _e(me,Ce,Fe,it,Ct,mt,Ve,or){var dt=it.__brushOption,Yt=me(dt.range),hr=Xe(Fe,mt,Ve);a(Ct.split(""),function(Gt){var Pt=d[Gt];Yt[Pt[0]][Pt[1]]+=hr[Pt[0]]}),dt.range=Ce(ue(Yt[0][0],Yt[1][0],Yt[0][1],Yt[1][1])),M(Fe,it),j(Fe,{isEnd:!1})}function Ee(me,Ce,Fe,it,Ct){var mt=Ce.__brushOption.range,Ve=Xe(me,Fe,it);a(mt,function(or){or[0]+=Ve[0],or[1]+=Ve[1]}),M(me,Ce),j(me,{isEnd:!1})}function Xe(me,Ce,Fe){var it=me.group,Ct=it.transformCoordToLocal(Ce,Fe),mt=it.transformCoordToLocal(0,0);return[Ct[0]-mt[0],Ct[1]-mt[1]]}function He(me,Ce,Fe){var it=X(me,Ce);return it&&it!==!0?it.clipPath(Fe,me._transform):x.clone(Fe)}function nt(me){var Ce=t(me[0][0],me[1][0]),Fe=t(me[0][1],me[1][1]),it=o(me[0][0],me[1][0]),Ct=o(me[0][1],me[1][1]);return{x:Ce,y:Fe,width:it-Ce,height:Ct-Fe}}function Ie(me,Ce,Fe){if(!me._brushType||fe(me,Ce))return;var it=me._zr,Ct=me._covers,mt=P(me,Ce,Fe);if(!me._dragging)for(var Ve=0;Ve<Ct.length;Ve++){var or=Ct[Ve].__brushOption;if(mt&&(mt===!0||or.panelId===mt.panelId)&&we[or.brushType].contain(Ct[Ve],Fe[0],Fe[1]))return}mt&&it.setCursorStyle("crosshair")}function oe(me){var Ce=me.event;Ce.preventDefault&&Ce.preventDefault()}function ot(me,Ce,Fe){return me.childOfName("main").contain(Ce,Fe)}function he(me,Ce,Fe,it){var Ct=me._creatingCover,mt=me._creatingPanel,Ve=me._brushOption,or;if(me._track.push(Fe.slice()),W(me)||Ct){if(mt&&!Ct){Ve.brushMode==="single"&&B(me);var dt=x.clone(Ve);dt.brushType=J(dt.brushType,mt),dt.panelId=mt===!0?null:mt.panelId,Ct=me._creatingCover=w(me,dt),me._covers.push(Ct)}if(Ct){var Yt=we[J(me._brushType,mt)],hr=Ct.__brushOption;hr.range=Yt.getCreatingRange(He(me,Ct,me._track)),it&&(O(me,Ct),Yt.updateCommon(me,Ct)),I(me,Ct),or={isEnd:it}}}else it&&Ve.brushMode==="single"&&Ve.removeOnClick&&(P(me,Ce,Fe)&&B(me)&&(or={isEnd:it,removeOnClick:!0}));return or}function J(me,Ce){return me==="auto"?Ce.defaultBrushType:me}var Y={mousedown:function(me){if(this._dragging)q(this,me);else if(!me.target||!me.target.draggable){oe(me);var Ce=this.group.transformCoordToLocal(me.offsetX,me.offsetY);this._creatingCover=null;var Fe=this._creatingPanel=P(this,me,Ce);Fe&&(this._dragging=!0,this._track=[Ce.slice()])}},mousemove:function(me){var Ce=me.offsetX,Fe=me.offsetY,it=this.group.transformCoordToLocal(Ce,Fe);if(Ie(this,me,it),this._dragging){oe(me);var Ct=he(this,me,it,!1);Ct&&j(this,Ct)}},mouseup:function(me){q(this,me)}};function q(me,Ce){if(me._dragging){oe(Ce);var Fe=Ce.offsetX,it=Ce.offsetY,Ct=me.group.transformCoordToLocal(Fe,it),mt=he(me,Ce,Ct,!0);me._dragging=!1,me._track=[],me._creatingCover=null,mt&&j(me,mt)}}function fe(me,Ce,Fe){var it=me._zr;return Ce<0||Ce>it.getWidth()||Fe<0||Fe>it.getHeight()}var we={lineX:Ne(0),lineY:Ne(1),rect:{createCover:function(me,Ce){return V(u(_e,function(Fe){return Fe},function(Fe){return Fe}),me,Ce,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(me){var Ce=z(me);return ue(Ce[1][0],Ce[1][1],Ce[0][0],Ce[0][1])},updateCoverShape:function(me,Ce,Fe,it){Q(me,Ce,Fe,it)},updateCommon:G,contain:ot},polygon:{createCover:function(me,Ce){var Fe=new m.Group;return Fe.add(new m.Polyline({name:"main",style:ee(Ce),silent:!0})),Fe},getCreatingRange:function(me){return me},endCreating:function(me,Ce){Ce.remove(Ce.childAt(0)),Ce.add(new m.Polygon({name:"main",draggable:!0,drift:u(Ee,me,Ce),ondragend:u(j,me,{isEnd:!0})}))},updateCoverShape:function(me,Ce,Fe,it){Ce.childAt(0).setShape({points:He(me,Ce,Fe)})},updateCommon:G,contain:ot}};function Ne(me){return{createCover:function(Ce,Fe){return V(u(_e,function(it){var Ct=[it,[0,100]];return me&&Ct.reverse(),Ct},function(it){return it[me]}),Ce,Fe,[["w","e"],["n","s"]][me])},getCreatingRange:function(Ce){var Fe=z(Ce),it=t(Fe[0][me],Fe[1][me]),Ct=o(Fe[0][me],Fe[1][me]);return[it,Ct]},updateCoverShape:function(Ce,Fe,it,Ct){var mt,Ve=X(Ce,Fe);if(Ve!==!0&&Ve.getLinearBrushOtherExtent)mt=Ve.getLinearBrushOtherExtent(me,Ce._transform);else{var or=Ce._zr;mt=[0,[or.getWidth(),or.getHeight()][1-me]]}var dt=[it,mt];me&&dt.reverse(),Q(Ce,Fe,dt,Ct)},updateCommon:G,contain:ot}}var je=S;k.exports=je},"/MfK":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DeleteOutlined";var h=D.a=p.forwardRef(f)},"/POA":function(k,D,n){!function(y,p){if(!0)k.exports=p();else var x,A}(window,function(){return function(y){var p={};function x(A){if(p[A])return p[A].exports;var m=p[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=p,x.d=function(A,m,f){x.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:f})},x.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},x.t=function(A,m){if(1&m&&(A=x(A)),8&m)return A;if(4&m&&typeof A=="object"&&A&&A.__esModule)return A;var f=Object.create(null);if(x.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:A}),2&m&&typeof A!="string")for(var h in A)x.d(f,h,function(u){return A[u]}.bind(null,h));return f},x.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return x.d(m,"a",m),m},x.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},x.p="",x(x.s=34)}([function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.forwardEvent=p.EventEmitter=void 0;var A=function(){function m(){this._listeners=[],this._disposed=!1}return Object.defineProperty(m.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(u){return h._listeners.push(u),{dispose:function(){if(!h._disposed){for(var i=0;i<h._listeners.length;i++)if(h._listeners[i]===u)return void h._listeners.splice(i,1)}}}}),this._event},enumerable:!1,configurable:!0}),m.prototype.fire=function(f,h){for(var u=[],a=0;a<this._listeners.length;a++)u.push(this._listeners[a]);for(a=0;a<u.length;a++)u[a].call(void 0,f,h)},m.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},m}();p.EventEmitter=A,p.forwardEvent=function(m,f){return m(function(h){return f.fire(h)})}},function(y,p,x){"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 A=x(14);p.IBufferService=A.createDecorator("BufferService"),p.ICoreMouseService=A.createDecorator("CoreMouseService"),p.ICoreService=A.createDecorator("CoreService"),p.ICharsetService=A.createDecorator("CharsetService"),p.IDirtyRowService=A.createDecorator("DirtyRowService"),p.IInstantiationService=A.createDecorator("InstantiationService"),p.ILogService=A.createDecorator("LogService"),p.IOptionsService=A.createDecorator("OptionsService"),p.IUnicodeService=A.createDecorator("UnicodeService")},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getDisposeArrayDisposable=p.disposeArray=p.Disposable=void 0;var A=function(){function f(){this._disposables=[],this._isDisposed=!1}return f.prototype.dispose=function(){this._isDisposed=!0;for(var h=0,u=this._disposables;h<u.length;h++)u[h].dispose();this._disposables.length=0},f.prototype.register=function(h){return this._disposables.push(h),h},f.prototype.unregister=function(h){var u=this._disposables.indexOf(h);u!==-1&&this._disposables.splice(u,1)},f}();function m(f){for(var h=0,u=f;h<u.length;h++)u[h].dispose();f.length=0}p.Disposable=A,p.disposeArray=m,p.getDisposeArrayDisposable=function(f){return{dispose:function(){return m(f)}}}},function(y,p,x){"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,x){"use strict";var A,m=this&&this.__extends||(A=function(t,o){return(A=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,o)},function(i,t){function o(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.CellData=void 0;var f=x(8),h=x(3),u=x(6),a=function(i){function t(){var o=i!==null&&i.apply(this,arguments)||this;return o.content=0,o.fg=0,o.bg=0,o.extended=new u.ExtendedAttrs,o.combinedData="",o}return m(t,i),t.fromCharData=function(o){var e=new t;return e.setFromCharData(o),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(o){this.fg=o[h.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(o[h.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(o[h.CHAR_DATA_CHAR_INDEX].length===2){var l=o[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var r=o[h.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(l-55296)+r-56320+65536|o[h.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=o[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|o[h.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=o[h.CHAR_DATA_CHAR_INDEX],this.content=2097152|o[h.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(u.AttributeData);p.CellData=a},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ISoundService=p.ISelectionService=p.IRenderService=p.IMouseService=p.ICoreBrowserService=p.ICharSizeService=void 0;var A=x(14);p.ICharSizeService=A.createDecorator("CharSizeService"),p.ICoreBrowserService=A.createDecorator("CoreBrowserService"),p.IMouseService=A.createDecorator("MouseService"),p.IRenderService=A.createDecorator("RenderService"),p.ISelectionService=A.createDecorator("SelectionService"),p.ISoundService=A.createDecorator("SoundService")},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExtendedAttrs=p.AttributeData=void 0;var A=function(){function f(){this.fg=0,this.bg=0,this.extended=new m}return f.toColorRGB=function(h){return[h>>>16&255,h>>>8&255,255&h]},f.fromColorRGB=function(h){return(255&h[0])<<16|(255&h[1])<<8|255&h[2]},f.prototype.clone=function(){var h=new f;return h.fg=this.fg,h.bg=this.bg,h.extended=this.extended.clone(),h},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=A;var m=function(){function f(h,u){h===void 0&&(h=0),u===void 0&&(u=-1),this.underlineStyle=h,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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.addDisposableDomListener=void 0,p.addDisposableDomListener=function(A,m,f,h){A.addEventListener(m,f,h);var u=!1;return{dispose:function(){u||(u=!0,A.removeEventListener(m,f,h))}}}},function(y,p,x){"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,h,u){h===void 0&&(h=0),u===void 0&&(u=f.length);for(var a="",i=h;i<u;++i){var t=f[i];t>65535?(t-=65536,a+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):a+=String.fromCharCode(t)}return a};var A=function(){function f(){this._interim=0}return f.prototype.clear=function(){this._interim=0},f.prototype.decode=function(h,u){var a=h.length;if(!a)return 0;var i=0,t=0;this._interim&&(56320<=(l=h.charCodeAt(t++))&&l<=57343?u[i++]=1024*(this._interim-55296)+l-56320+65536:(u[i++]=this._interim,u[i++]=l),this._interim=0);for(var o=t;o<a;++o){var e=h.charCodeAt(o);if(55296<=e&&e<=56319){if(++o>=a)return this._interim=e,i;var l;56320<=(l=h.charCodeAt(o))&&l<=57343?u[i++]=1024*(e-55296)+l-56320+65536:(u[i++]=e,u[i++]=l)}else u[i++]=e}return i},f}();p.StringToUtf32=A;var m=function(){function f(){this.interim=new Uint8Array(3)}return f.prototype.clear=function(){this.interim.fill(0)},f.prototype.decode=function(h,u){var a=h.length;if(!a)return 0;var i,t,o,e,l=0,r=0,s=0;if(this.interim[0]){var c=!1,d=this.interim[0];d&=(224&d)==192?31:(240&d)==224?15:7;for(var g=0,v=void 0;(v=63&this.interim[++g])&&g<4;)d<<=6,d|=v;for(var b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,S=b-g;s<S;){if(s>=a)return 0;if((192&(v=h[s++]))!=128){s--,c=!0;break}this.interim[g++]=v,d<<=6,d|=63&v}c||(b===2?d<128?s--:u[l++]=d:b===3?d<2048||d>=55296&&d<=57343||(u[l++]=d):d<65536||d>1114111||(u[l++]=d)),this.interim.fill(0)}for(var E=a-4,C=s;C<a;){for(;!(!(C<E)||128&(i=h[C])||128&(t=h[C+1])||128&(o=h[C+2])||128&(e=h[C+3]));)u[l++]=i,u[l++]=t,u[l++]=o,u[l++]=e,C+=4;if((i=h[C++])<128)u[l++]=i;else if((224&i)==192){if(C>=a)return this.interim[0]=i,l;if((192&(t=h[C++]))!=128){C--;continue}if((r=(31&i)<<6|63&t)<128){C--;continue}u[l++]=r}else if((240&i)==224){if(C>=a)return this.interim[0]=i,l;if((192&(t=h[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,l;if((192&(o=h[C++]))!=128){C--;continue}if((r=(15&i)<<12|(63&t)<<6|63&o)<2048||r>=55296&&r<=57343)continue;u[l++]=r}else if((248&i)==240){if(C>=a)return this.interim[0]=i,l;if((192&(t=h[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,l;if((192&(o=h[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,this.interim[2]=o,l;if((192&(e=h[C++]))!=128){C--;continue}if((r=(7&i)<<18|(63&t)<<12|(63&o)<<6|63&e)<65536||r>1114111)continue;u[l++]=r}}return l},f}();p.Utf8ToUtf32=m},function(y,p,x){"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,x){"use strict";var A,m,f,h;function u(i){var t=i.toString(16);return t.length<2?"0"+t:t}function a(i,t){return i<t?(t+.05)/(i+.05):(i+.05)/(t+.05)}Object.defineProperty(p,"__esModule",{value:!0}),p.contrastRatio=p.toPaddedHex=p.rgba=p.rgb=p.css=p.color=p.channels=void 0,function(i){i.toCss=function(t,o,e,l){return l!==void 0?"#"+u(t)+u(o)+u(e)+u(l):"#"+u(t)+u(o)+u(e)},i.toRgba=function(t,o,e,l){return l===void 0&&(l=255),(t<<24|o<<16|e<<8|l)>>>0}}(A=p.channels||(p.channels={})),(m=p.color||(p.color={})).blend=function(i,t){var o=(255&t.rgba)/255;if(o===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=i.rgba>>24&255,c=i.rgba>>16&255,d=i.rgba>>8&255,g=s+Math.round((e-s)*o),v=c+Math.round((l-c)*o),b=d+Math.round((r-d)*o);return{css:A.toCss(g,v,b),rgba:A.toRgba(g,v,b)}},m.isOpaque=function(i){return(255&i.rgba)==255},m.ensureContrastRatio=function(i,t,o){var e=h.ensureContrastRatio(i.rgba,t.rgba,o);if(e)return h.toColor(e>>24&255,e>>16&255,e>>8&255)},m.opaque=function(i){var t=(255|i.rgba)>>>0,o=h.toChannels(t),e=o[0],l=o[1],r=o[2];return{css:A.toCss(e,l,r),rgba:t}},m.opacity=function(i,t){var o=Math.round(255*t),e=h.toChannels(i.rgba),l=e[0],r=e[1],s=e[2];return{css:A.toCss(l,r,s,o),rgba:A.toRgba(l,r,s,o)}},(p.css||(p.css={})).toColor=function(i){switch(i.length){case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(i){function t(o,e,l){var r=o/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))}i.relativeLuminance=function(o){return t(o>>16&255,o>>8&255,255&o)},i.relativeLuminance2=t}(f=p.rgb||(p.rgb={})),function(i){function t(e,l,r){for(var s=e>>24&255,c=e>>16&255,d=e>>8&255,g=l>>24&255,v=l>>16&255,b=l>>8&255,S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));S<r&&(g>0||v>0||b>0);)g-=Math.max(0,Math.ceil(.1*g)),v-=Math.max(0,Math.ceil(.1*v)),b-=Math.max(0,Math.ceil(.1*b)),S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));return(g<<24|v<<16|b<<8|255)>>>0}function o(e,l,r){for(var s=e>>24&255,c=e>>16&255,d=e>>8&255,g=l>>24&255,v=l>>16&255,b=l>>8&255,S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));S<r&&(g<255||v<255||b<255);)g=Math.min(255,g+Math.ceil(.1*(255-g))),v=Math.min(255,v+Math.ceil(.1*(255-v))),b=Math.min(255,b+Math.ceil(.1*(255-b))),S=a(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,d));return(g<<24|v<<16|b<<8|255)>>>0}i.ensureContrastRatio=function(e,l,r){var s=f.relativeLuminance(e>>8),c=f.relativeLuminance(l>>8);if(a(s,c)<r)return c<s?t(e,l,r):o(e,l,r)},i.reduceLuminance=t,i.increaseLuminance=o,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,l,r){return{css:A.toCss(e,l,r),rgba:A.toRgba(e,l,r)}}}(h=p.rgba||(p.rgba={})),p.toPaddedHex=u,p.contrastRatio=a},function(y,p,x){"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 A=typeof navigator=="undefined",m=A?"node":navigator.userAgent,f=A?"node":navigator.platform;function h(u,a){return u.indexOf(a)>=0}p.isFirefox=!!~m.indexOf("Firefox"),p.isSafari=/^((?!chrome|android).)*safari/i.test(m),p.isMac=h(["Macintosh","MacIntel","MacPPC","Mac68K"],f),p.isIpad=f==="iPad",p.isIphone=f==="iPhone",p.isWindows=h(["Windows","Win16","Win32","WinCE"],f),p.isLinux=f.indexOf("Linux")>=0},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.C1=p.C0=void 0,function(A){A.NUL="\0",A.SOH="",A.STX="",A.ETX="",A.EOT="",A.ENQ="",A.ACK="",A.BEL="\x07",A.BS="\b",A.HT=" ",A.LF=`
`,A.VT="\v",A.FF="\f",A.CR="\r",A.SO="",A.SI="",A.DLE="",A.DC1="",A.DC2="",A.DC3="",A.DC4="",A.NAK="",A.SYN="",A.ETB="",A.CAN="",A.EM="",A.SUB="",A.ESC="",A.FS="",A.GS="",A.RS="",A.US="",A.SP=" ",A.DEL="\x7F"}(p.C0||(p.C0={})),function(A){A.PAD="\x80",A.HOP="\x81",A.BPH="\x82",A.NBH="\x83",A.IND="\x84",A.NEL="\x85",A.SSA="\x86",A.ESA="\x87",A.HTS="\x88",A.HTJ="\x89",A.VTS="\x8A",A.PLD="\x8B",A.PLU="\x8C",A.RI="\x8D",A.SS2="\x8E",A.SS3="\x8F",A.DCS="\x90",A.PU1="\x91",A.PU2="\x92",A.STS="\x93",A.CCH="\x94",A.MW="\x95",A.SPA="\x96",A.EPA="\x97",A.SOS="\x98",A.SGCI="\x99",A.SCI="\x9A",A.CSI="\x9B",A.ST="\x9C",A.OSC="\x9D",A.PM="\x9E",A.APC="\x9F"}(p.C1||(p.C1={}))},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseRenderLayer=void 0;var A=x(3),m=x(9),f=x(25),h=x(6),u=x(28),a=x(10),i=x(17),t=function(){function o(e,l,r,s,c,d,g,v){this._container=e,this._alpha=s,this._colors=c,this._rendererId=d,this._bufferService=g,this._optionsService=v,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+l+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return o.prototype.dispose=function(){var e;i.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},o.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},o.prototype.onOptionsChanged=function(){},o.prototype.onBlur=function(){},o.prototype.onFocus=function(){},o.prototype.onCursorMove=function(){},o.prototype.onGridChanged=function(e,l){},o.prototype.onSelectionChanged=function(e,l,r){r===void 0&&(r=!1)},o.prototype.setColors=function(e){this._refreshCharAtlas(e)},o.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)}},o.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())},o.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)},o.prototype._fillCells=function(e,l,r,s){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight)},o.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)},o.prototype._fillLeftLineAtCell=function(e,l,r){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},o.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)},o.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))},o.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))},o.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)},o.prototype._drawChars=function(e,l,r){var s,c,d=this._getContrastColor(e);d||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,r,d):(e.isInverse()?(s=e.isBgDefault()?m.INVERTED_DEFAULT_COLOR:e.getBgColor(),c=e.isFgDefault()?m.INVERTED_DEFAULT_COLOR:e.getFgColor()):(c=e.isBgDefault()?A.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?A.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||A.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||A.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=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))},o.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=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+h.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("+h.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var d=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&d<8&&(d+=8),this._ctx.fillStyle=this._colors.ansi[d].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()},o.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},o.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},o.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(),d=e.getBgColorMode(),g=!!e.isInverse(),v=!!e.isInverse();if(g){var b=r;r=c,c=b;var S=s;s=d,d=S}var E=this._resolveBackgroundRgba(d,c,g),C=this._resolveForegroundRgba(s,r,g,v),_=a.rgba.ensureContrastRatio(E,C,this._optionsService.options.minimumContrastRatio);if(_){var T={css:a.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,T),T}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},o.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}},o.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}},o}();p.BaseRenderLayer=t},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createDecorator=p.getServiceDependencies=p.serviceRegistry=void 0;function A(m,f,h){f.di$target===f?f.di$dependencies.push({id:m,index:h}):(f.di$dependencies=[{id:m,index:h}],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 h(u,a,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(h,u,i)};return f.toString=function(){return m},p.serviceRegistry.set(m,f),f}},function(y,p,x){"use strict";function A(m,f,h,u){if(h===void 0&&(h=0),u===void 0&&(u=m.length),h>=m.length)return m;h=(m.length+h)%m.length,u=u>=m.length?m.length:(m.length+u)%m.length;for(var a=h;a<u;++a)m[a]=f;return m}Object.defineProperty(p,"__esModule",{value:!0}),p.concat=p.fillFallback=p.fill=void 0,p.fill=function(m,f,h,u){return m.fill?m.fill(f,h,u):A(m,f,h,u)},p.fillFallback=A,p.concat=function(m,f){var h=new m.constructor(m.length+f.length);return h.set(m),h.set(f,m.length),h}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferLine=p.DEFAULT_ATTR_DATA=void 0;var A=x(8),m=x(3),f=x(4),h=x(6);p.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);var u=function(){function a(i,t,o){o===void 0&&(o=!1),this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*i);for(var e=t||f.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),l=0;l<i;++l)this.setCell(l,e);this.length=i}return a.prototype.get=function(i){var t=this._data[3*i+0],o=2097151&t;return[this._data[3*i+1],2097152&t?this._combined[i]:o?A.stringFromCodePoint(o):"",t>>22,2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):o]},a.prototype.set=function(i,t){this._data[3*i+1]=t[m.CHAR_DATA_ATTR_INDEX],t[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[i]=t[1],this._data[3*i+0]=2097152|i|t[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*i+0]=t[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[m.CHAR_DATA_WIDTH_INDEX]<<22},a.prototype.getWidth=function(i){return this._data[3*i+0]>>22},a.prototype.hasWidth=function(i){return 12582912&this._data[3*i+0]},a.prototype.getFg=function(i){return this._data[3*i+1]},a.prototype.getBg=function(i){return this._data[3*i+2]},a.prototype.hasContent=function(i){return 4194303&this._data[3*i+0]},a.prototype.getCodePoint=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):2097151&t},a.prototype.isCombined=function(i){return 2097152&this._data[3*i+0]},a.prototype.getString=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i]:2097151&t?A.stringFromCodePoint(2097151&t):""},a.prototype.loadCell=function(i,t){var o=3*i;return t.content=this._data[o+0],t.fg=this._data[o+1],t.bg=this._data[o+2],2097152&t.content&&(t.combinedData=this._combined[i]),268435456&t.bg&&(t.extended=this._extendedAttrs[i]),t},a.prototype.setCell=function(i,t){2097152&t.content&&(this._combined[i]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[i]=t.extended),this._data[3*i+0]=t.content,this._data[3*i+1]=t.fg,this._data[3*i+2]=t.bg},a.prototype.setCellFromCodePoint=function(i,t,o,e,l,r){268435456&l&&(this._extendedAttrs[i]=r),this._data[3*i+0]=t|o<<22,this._data[3*i+1]=e,this._data[3*i+2]=l},a.prototype.addCodepointToCell=function(i,t){var o=this._data[3*i+0];2097152&o?this._combined[i]+=A.stringFromCodePoint(t):(2097151&o?(this._combined[i]=A.stringFromCodePoint(2097151&o)+A.stringFromCodePoint(t),o&=-2097152,o|=2097152):o=t|1<<22,this._data[3*i+0]=o)},a.prototype.insertCells=function(i,t,o,e){if((i%=this.length)&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),t<this.length-i){for(var l=new f.CellData,r=this.length-i-t-1;r>=0;--r)this.setCell(i+t+r,this.loadCell(i+r,l));for(r=0;r<t;++r)this.setCell(i+r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);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 h.ExtendedAttrs)},a.prototype.deleteCells=function(i,t,o,e){if(i%=this.length,t<this.length-i){for(var l=new f.CellData,r=0;r<this.length-i-t;++r)this.setCell(i+r,this.loadCell(i+t+r,l));for(r=this.length-t;r<this.length;++r)this.setCell(r,o)}else for(r=i;r<this.length;++r)this.setCell(r,o);i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),this.getWidth(i)!==0||this.hasContent(i)||this.setCellFromCodePoint(i,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs)},a.prototype.replaceCells=function(i,t,o,e){for(i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.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 h.ExtendedAttrs);i<t&&i<this.length;)this.setCell(i++,o)},a.prototype.resize=function(i,t){if(i!==this.length){if(i>this.length){var o=new Uint32Array(3*i);this.length&&(3*i<this._data.length?o.set(this._data.subarray(0,3*i)):o.set(this._data)),this._data=o;for(var e=this.length;e<i;++e)this.setCell(e,t)}else if(i){(o=new Uint32Array(3*i)).set(this._data.subarray(0,3*i)),this._data=o;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var r=parseInt(l[e],10);r>=i&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=i}},a.prototype.fill=function(i){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,i)},a.prototype.copyFrom=function(i){for(var t in this.length!==i.length?this._data=new Uint32Array(i._data):this._data.set(i._data),this.length=i.length,this._combined={},i._combined)this._combined[t]=i._combined[t];for(var t in this._extendedAttrs={},i._extendedAttrs)this._extendedAttrs[t]=i._extendedAttrs[t];this.isWrapped=i.isWrapped},a.prototype.clone=function(){var i=new a(0);for(var t in i._data=new Uint32Array(this._data),i.length=this.length,this._combined)i._combined[t]=this._combined[t];for(var t in this._extendedAttrs)i._extendedAttrs[t]=this._extendedAttrs[t];return i.isWrapped=this.isWrapped,i},a.prototype.getTrimmedLength=function(){for(var i=this.length-1;i>=0;--i)if(4194303&this._data[3*i+0])return i+(this._data[3*i+0]>>22);return 0},a.prototype.copyCellsFrom=function(i,t,o,e,l){var r=i._data;if(l)for(var s=e-1;s>=0;s--)for(var c=0;c<3;c++)this._data[3*(o+s)+c]=r[3*(t+s)+c];else for(s=0;s<e;s++)for(c=0;c<3;c++)this._data[3*(o+s)+c]=r[3*(t+s)+c];var d=Object.keys(i._combined);for(c=0;c<d.length;c++){var g=parseInt(d[c],10);g>=t&&(this._combined[g-t+o]=i._combined[g])}},a.prototype.translateToString=function(i,t,o){i===void 0&&(i=!1),t===void 0&&(t=0),o===void 0&&(o=this.length),i&&(o=Math.min(o,this.getTrimmedLength()));for(var e="";t<o;){var l=this._data[3*t+0],r=2097151&l;e+=2097152&l?this._combined[t]:r?A.stringFromCodePoint(r):m.WHITESPACE_CELL_CHAR,t+=l>>22||1}return e},a}();p.BufferLine=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeElementFromParent=void 0,p.removeElementFromParent=function(){for(var A,m=[],f=0;f<arguments.length;f++)m[f]=arguments[f];for(var h=0,u=m;h<u.length;h++){var a=u[h];(A=a==null?void 0:a.parentElement)===null||A===void 0||A.removeChild(a)}}},function(y,p,x){"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,x){"use strict";var A,m=this&&this.__extends||(A=function(_,T){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,O){w.__proto__=O}||function(w,O){for(var I in O)O.hasOwnProperty(I)&&(w[I]=O[I])})(_,T)},function(C,_){function T(){this.constructor=C}A(C,_),C.prototype=_===null?Object.create(_):(T.prototype=_.prototype,new T)});Object.defineProperty(p,"__esModule",{value:!0}),p.InputHandler=p.WindowsOptionsReportType=void 0;var f,h=x(12),u=x(20),a=x(39),i=x(2),t=x(15),o=x(8),e=x(16),l=x(0),r=x(3),s=x(4),c=x(6),d=x(22),g=x(24),v={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(C,_){if(C>24)return _.setWinLines||!1;switch(C){case 1:return!!_.restoreWin;case 2:return!!_.minimizeWin;case 3:return!!_.setWinPosition;case 4:return!!_.setWinSizePixels;case 5:return!!_.raiseWin;case 6:return!!_.lowerWin;case 7:return!!_.refreshWin;case 8:return!!_.setWinSizeChars;case 9:return!!_.maximizeWin;case 10:return!!_.fullscreenWin;case 11:return!!_.getWinState;case 13:return!!_.getWinPosition;case 14:return!!_.getWinSizePixels;case 15:return!!_.getScreenSizePixels;case 16:return!!_.getCellSizePixels;case 18:return!!_.getWinSizeChars;case 19:return!!_.getScreenSizeChars;case 20:return!!_.getIconTitle;case 21:return!!_.getWinTitle;case 22:return!!_.pushTitle;case 23:return!!_.popTitle;case 24:return!!_.setWinLines}return!1}!function(C){C[C.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",C[C.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(f=p.WindowsOptionsReportType||(p.WindowsOptionsReportType={}));var S=function(){function C(_,T,w,O){this._bufferService=_,this._coreService=T,this._logService=w,this._optionsService=O,this._data=new Uint32Array(0)}return C.prototype.hook=function(_){this._data=new Uint32Array(0)},C.prototype.put=function(_,T,w){this._data=t.concat(this._data,_.subarray(T,w))},C.prototype.unhook=function(_){if(_){var T=o.utf32ToString(this._data);switch(this._data=new Uint32Array(0),T){case'"q':return this._coreService.triggerDataEvent(h.C0.ESC+'P1$r0"q'+h.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(h.C0.ESC+'P1$r61;1"p'+h.C0.ESC+"\\");case"r":var w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(h.C0.ESC+"P1$r"+w+h.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(h.C0.ESC+"P1$r0m"+h.C0.ESC+"\\");case" q":var O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(h.C0.ESC+"P1$r"+O+" q"+h.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(h.C0.ESC+"P0$r"+h.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},C}(),E=function(C){function _(T,w,O,I,R,M,F,P,X){X===void 0&&(X=new a.EscapeSequenceParser);var B=C.call(this)||this;B._bufferService=T,B._charsetService=w,B._coreService=O,B._dirtyRowService=I,B._logService=R,B._optionsService=M,B._coreMouseService=F,B._unicodeService=P,B._parser=X,B._parseBuffer=new Uint32Array(4096),B._stringDecoder=new o.StringToUtf32,B._utf8Decoder=new o.Utf8ToUtf32,B._workCell=new s.CellData,B._windowTitle="",B._iconName="",B._windowTitleStack=[],B._iconNameStack=[],B._curAttrData=e.DEFAULT_ATTR_DATA.clone(),B._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),B._onRequestBell=new l.EventEmitter,B._onRequestRefreshRows=new l.EventEmitter,B._onRequestReset=new l.EventEmitter,B._onRequestScroll=new l.EventEmitter,B._onRequestSyncScrollBar=new l.EventEmitter,B._onRequestWindowsOptionsReport=new l.EventEmitter,B._onA11yChar=new l.EventEmitter,B._onA11yTab=new l.EventEmitter,B._onCursorMove=new l.EventEmitter,B._onLineFeed=new l.EventEmitter,B._onScroll=new l.EventEmitter,B._onTitleChange=new l.EventEmitter,B.register(B._parser),B._parser.setCsiHandlerFallback(function(V,Q){B._logService.debug("Unknown CSI code: ",{identifier:B._parser.identToString(V),params:Q.toArray()})}),B._parser.setEscHandlerFallback(function(V){B._logService.debug("Unknown ESC code: ",{identifier:B._parser.identToString(V)})}),B._parser.setExecuteHandlerFallback(function(V){B._logService.debug("Unknown EXECUTE code: ",{code:V})}),B._parser.setOscHandlerFallback(function(V,Q,G){B._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),B._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),B._logService.debug("Unknown DCS code: ",{identifier:B._parser.identToString(V),action:Q,payload:G})}),B._parser.setPrintHandler(function(V,Q,G){return B.print(V,Q,G)}),B._parser.setCsiHandler({final:"@"},function(V){return B.insertChars(V)}),B._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return B.scrollLeft(V)}),B._parser.setCsiHandler({final:"A"},function(V){return B.cursorUp(V)}),B._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return B.scrollRight(V)}),B._parser.setCsiHandler({final:"B"},function(V){return B.cursorDown(V)}),B._parser.setCsiHandler({final:"C"},function(V){return B.cursorForward(V)}),B._parser.setCsiHandler({final:"D"},function(V){return B.cursorBackward(V)}),B._parser.setCsiHandler({final:"E"},function(V){return B.cursorNextLine(V)}),B._parser.setCsiHandler({final:"F"},function(V){return B.cursorPrecedingLine(V)}),B._parser.setCsiHandler({final:"G"},function(V){return B.cursorCharAbsolute(V)}),B._parser.setCsiHandler({final:"H"},function(V){return B.cursorPosition(V)}),B._parser.setCsiHandler({final:"I"},function(V){return B.cursorForwardTab(V)}),B._parser.setCsiHandler({final:"J"},function(V){return B.eraseInDisplay(V)}),B._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return B.eraseInDisplay(V)}),B._parser.setCsiHandler({final:"K"},function(V){return B.eraseInLine(V)}),B._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return B.eraseInLine(V)}),B._parser.setCsiHandler({final:"L"},function(V){return B.insertLines(V)}),B._parser.setCsiHandler({final:"M"},function(V){return B.deleteLines(V)}),B._parser.setCsiHandler({final:"P"},function(V){return B.deleteChars(V)}),B._parser.setCsiHandler({final:"S"},function(V){return B.scrollUp(V)}),B._parser.setCsiHandler({final:"T"},function(V){return B.scrollDown(V)}),B._parser.setCsiHandler({final:"X"},function(V){return B.eraseChars(V)}),B._parser.setCsiHandler({final:"Z"},function(V){return B.cursorBackwardTab(V)}),B._parser.setCsiHandler({final:"`"},function(V){return B.charPosAbsolute(V)}),B._parser.setCsiHandler({final:"a"},function(V){return B.hPositionRelative(V)}),B._parser.setCsiHandler({final:"b"},function(V){return B.repeatPrecedingCharacter(V)}),B._parser.setCsiHandler({final:"c"},function(V){return B.sendDeviceAttributesPrimary(V)}),B._parser.setCsiHandler({prefix:">",final:"c"},function(V){return B.sendDeviceAttributesSecondary(V)}),B._parser.setCsiHandler({final:"d"},function(V){return B.linePosAbsolute(V)}),B._parser.setCsiHandler({final:"e"},function(V){return B.vPositionRelative(V)}),B._parser.setCsiHandler({final:"f"},function(V){return B.hVPosition(V)}),B._parser.setCsiHandler({final:"g"},function(V){return B.tabClear(V)}),B._parser.setCsiHandler({final:"h"},function(V){return B.setMode(V)}),B._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return B.setModePrivate(V)}),B._parser.setCsiHandler({final:"l"},function(V){return B.resetMode(V)}),B._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return B.resetModePrivate(V)}),B._parser.setCsiHandler({final:"m"},function(V){return B.charAttributes(V)}),B._parser.setCsiHandler({final:"n"},function(V){return B.deviceStatus(V)}),B._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return B.deviceStatusPrivate(V)}),B._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return B.softReset(V)}),B._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return B.setCursorStyle(V)}),B._parser.setCsiHandler({final:"r"},function(V){return B.setScrollRegion(V)}),B._parser.setCsiHandler({final:"s"},function(V){return B.saveCursor(V)}),B._parser.setCsiHandler({final:"t"},function(V){return B.windowOptions(V)}),B._parser.setCsiHandler({final:"u"},function(V){return B.restoreCursor(V)}),B._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return B.insertColumns(V)}),B._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return B.deleteColumns(V)}),B._parser.setExecuteHandler(h.C0.BEL,function(){return B.bell()}),B._parser.setExecuteHandler(h.C0.LF,function(){return B.lineFeed()}),B._parser.setExecuteHandler(h.C0.VT,function(){return B.lineFeed()}),B._parser.setExecuteHandler(h.C0.FF,function(){return B.lineFeed()}),B._parser.setExecuteHandler(h.C0.CR,function(){return B.carriageReturn()}),B._parser.setExecuteHandler(h.C0.BS,function(){return B.backspace()}),B._parser.setExecuteHandler(h.C0.HT,function(){return B.tab()}),B._parser.setExecuteHandler(h.C0.SO,function(){return B.shiftOut()}),B._parser.setExecuteHandler(h.C0.SI,function(){return B.shiftIn()}),B._parser.setExecuteHandler(h.C1.IND,function(){return B.index()}),B._parser.setExecuteHandler(h.C1.NEL,function(){return B.nextLine()}),B._parser.setExecuteHandler(h.C1.HTS,function(){return B.tabSet()}),B._parser.setOscHandler(0,new d.OscHandler(function(V){B.setTitle(V),B.setIconName(V)})),B._parser.setOscHandler(1,new d.OscHandler(function(V){return B.setIconName(V)})),B._parser.setOscHandler(2,new d.OscHandler(function(V){return B.setTitle(V)})),B._parser.setEscHandler({final:"7"},function(){return B.saveCursor()}),B._parser.setEscHandler({final:"8"},function(){return B.restoreCursor()}),B._parser.setEscHandler({final:"D"},function(){return B.index()}),B._parser.setEscHandler({final:"E"},function(){return B.nextLine()}),B._parser.setEscHandler({final:"H"},function(){return B.tabSet()}),B._parser.setEscHandler({final:"M"},function(){return B.reverseIndex()}),B._parser.setEscHandler({final:"="},function(){return B.keypadApplicationMode()}),B._parser.setEscHandler({final:">"},function(){return B.keypadNumericMode()}),B._parser.setEscHandler({final:"c"},function(){return B.fullReset()}),B._parser.setEscHandler({final:"n"},function(){return B.setgLevel(2)}),B._parser.setEscHandler({final:"o"},function(){return B.setgLevel(3)}),B._parser.setEscHandler({final:"|"},function(){return B.setgLevel(3)}),B._parser.setEscHandler({final:"}"},function(){return B.setgLevel(2)}),B._parser.setEscHandler({final:"~"},function(){return B.setgLevel(1)}),B._parser.setEscHandler({intermediates:"%",final:"@"},function(){return B.selectDefaultCharset()}),B._parser.setEscHandler({intermediates:"%",final:"G"},function(){return B.selectDefaultCharset()});var j=function(Q){W._parser.setEscHandler({intermediates:"(",final:Q},function(){return B.selectCharset("("+Q)}),W._parser.setEscHandler({intermediates:")",final:Q},function(){return B.selectCharset(")"+Q)}),W._parser.setEscHandler({intermediates:"*",final:Q},function(){return B.selectCharset("*"+Q)}),W._parser.setEscHandler({intermediates:"+",final:Q},function(){return B.selectCharset("+"+Q)}),W._parser.setEscHandler({intermediates:"-",final:Q},function(){return B.selectCharset("-"+Q)}),W._parser.setEscHandler({intermediates:".",final:Q},function(){return B.selectCharset("."+Q)}),W._parser.setEscHandler({intermediates:"/",final:Q},function(){return B.selectCharset("/"+Q)})},W=this;for(var z in u.CHARSETS)j(z);return B._parser.setEscHandler({intermediates:"#",final:"8"},function(){return B.screenAlignmentPattern()}),B._parser.setErrorHandler(function(V){return B._logService.error("Parsing error: ",V),V}),B._parser.setDcsHandler({intermediates:"$",final:"q"},new S(B._bufferService,B._coreService,B._logService,B._optionsService)),B}return m(_,C),Object.defineProperty(_.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){C.prototype.dispose.call(this)},_.prototype.parse=function(T){var w=this._bufferService.buffer,O=w.x,I=w.y;if(this._logService.debug("parsing data",T),this._parseBuffer.length<T.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(T.length,131072))),this._dirtyRowService.clearRange(),T.length>131072)for(var R=0;R<T.length;R+=131072){var M=R+131072<T.length?R+131072:T.length,F=typeof T=="string"?this._stringDecoder.decode(T.substring(R,M),this._parseBuffer):this._utf8Decoder.decode(T.subarray(R,M),this._parseBuffer);this._parser.parse(this._parseBuffer,F)}else F=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer),this._parser.parse(this._parseBuffer,F);(w=this._bufferService.buffer).x===O&&w.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(T,w,O){var I,R,M=this._bufferService.buffer,F=this._charsetService.charset,P=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,B=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,W=this._curAttrData,z=M.lines.get(M.ybase+M.y);this._dirtyRowService.markDirty(M.y),M.x&&O-w>0&&z.getWidth(M.x-1)===2&&z.setCellFromCodePoint(M.x-1,0,1,W.fg,W.bg,W.extended);for(var V=w;V<O;++V){if(I=T[V],R=this._unicodeService.wcwidth(I),I<127&&F){var Q=F[String.fromCharCode(I)];Q&&(I=Q.charCodeAt(0))}if(P&&this._onA11yChar.fire(o.stringFromCodePoint(I)),R||!M.x){if(M.x+R-1>=X){if(B){for(;M.x<X;)z.setCellFromCodePoint(M.x++,0,1,W.fg,W.bg,W.extended);M.x=0,M.y++,M.y===M.scrollBottom+1?(M.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(M.y>=this._bufferService.rows&&(M.y=this._bufferService.rows-1),M.lines.get(M.ybase+M.y).isWrapped=!0),z=M.lines.get(M.ybase+M.y)}else if(M.x=X-1,R===2)continue}if(j&&(z.insertCells(M.x,R,M.getNullCell(W),W),z.getWidth(X-1)===2&&z.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,W.fg,W.bg,W.extended)),z.setCellFromCodePoint(M.x++,I,R,W.fg,W.bg,W.extended),R>0)for(;--R;)z.setCellFromCodePoint(M.x++,0,0,W.fg,W.bg,W.extended)}else z.getWidth(M.x-1)?z.addCodepointToCell(M.x-1,I):z.addCodepointToCell(M.x-2,I)}O-w>0&&(z.loadCell(M.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),M.x<X&&O-w>0&&z.getWidth(M.x)===0&&!z.hasContent(M.x)&&z.setCellFromCodePoint(M.x,0,1,W.fg,W.bg,W.extended),this._dirtyRowService.markDirty(M.y)},_.prototype.addCsiHandler=function(T,w){var O=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,w):this._parser.addCsiHandler(T,function(I){return!b(I.params[0],O._optionsService.options.windowOptions)||w(I)})},_.prototype.addDcsHandler=function(T,w){return this._parser.addDcsHandler(T,new g.DcsHandler(w))},_.prototype.addEscHandler=function(T,w){return this._parser.addEscHandler(T,w)},_.prototype.addOscHandler=function(T,w){return this._parser.addOscHandler(T,new d.OscHandler(w))},_.prototype.bell=function(){this._onRequestBell.fire()},_.prototype.lineFeed=function(){var T=this._bufferService.buffer;this._dirtyRowService.markDirty(T.y),this._optionsService.options.convertEol&&(T.x=0),T.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),T.x>=this._bufferService.cols&&T.x--,this._dirtyRowService.markDirty(T.y),this._onLineFeed.fire()},_.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},_.prototype.backspace=function(){var T,w=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(w.x>0&&w.x--);if(this._restrictCursor(this._bufferService.cols),w.x>0)w.x--;else if(w.x===0&&w.y>w.scrollTop&&w.y<=w.scrollBottom&&((T=w.lines.get(w.ybase+w.y))===null||T===void 0?void 0:T.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var O=w.lines.get(w.ybase+w.y);O.hasWidth(w.x)&&!O.hasContent(w.x)&&w.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var T=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-T)}},_.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},_.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},_.prototype._restrictCursor=function(T){T===void 0&&(T=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(T,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._setCursor=function(T,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(T,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+w)},_.prototype.cursorUp=function(T){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},_.prototype.cursorDown=function(T){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,T.params[0]||1)):this._moveCursor(0,T.params[0]||1)},_.prototype.cursorForward=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.cursorBackward=function(T){this._moveCursor(-(T.params[0]||1),0)},_.prototype.cursorNextLine=function(T){this.cursorDown(T),this._bufferService.buffer.x=0},_.prototype.cursorPrecedingLine=function(T){this.cursorUp(T),this._bufferService.buffer.x=0},_.prototype.cursorCharAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.cursorPosition=function(T){this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1)},_.prototype.charPosAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.hPositionRelative=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.linePosAbsolute=function(T){this._setCursor(this._bufferService.buffer.x,(T.params[0]||1)-1)},_.prototype.vPositionRelative=function(T){this._moveCursor(0,T.params[0]||1)},_.prototype.hVPosition=function(T){this.cursorPosition(T)},_.prototype.tabClear=function(T){var w=T.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.x=O.prevStop()},_.prototype._eraseInBufferLine=function(T,w,O,I){I===void 0&&(I=!1);var R=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);R.replaceCells(w,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(R.isWrapped=!1)},_.prototype._resetBufferLine=function(T){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},_.prototype.eraseInDisplay=function(T){var w;switch(this._restrictCursor(),T.params[0]){case 0:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);w<this._bufferService.rows;w++)this._resetBufferLine(w);this._dirtyRowService.markDirty(w);break;case 1:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(w+1).isWrapped=!1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 2:for(w=this._bufferService.rows,this._dirtyRowService.markDirty(w-1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 3:var O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},_.prototype.eraseInLine=function(T){switch(this._restrictCursor(),T.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype.insertLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,R=this._bufferService.rows-1-O.scrollBottom,M=this._bufferService.rows-1+O.ybase-R+1;w--;)O.lines.splice(M-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.deleteLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,R=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;w--;)O.lines.splice(R,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.insertChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.insertCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.deleteChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.deleteCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.scrollUp=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollTop,1),O.lines.splice(O.ybase+O.scrollBottom,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollDown=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollBottom,1),O.lines.splice(O.ybase+O.scrollTop,0,O.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollLeft=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.deleteCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.scrollRight=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.insertCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.insertColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=this._bufferService.buffer.lines.get(w.ybase+I);R.insertCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.deleteColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var R=w.lines.get(w.ybase+I);R.deleteCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.eraseChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(T.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.repeatPrecedingCharacter=function(T){if(this._parser.precedingCodepoint){for(var w=T.params[0]||1,O=new Uint32Array(w),I=0;I<w;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.length)}},_.prototype.sendDeviceAttributesPrimary=function(T){T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(h.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(h.C0.ESC+"[?6c"))},_.prototype.sendDeviceAttributesSecondary=function(T){T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(h.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(h.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(h.C0.ESC+"[>83;40003;0c"))},_.prototype._is=function(T){return(this._optionsService.options.termName+"").indexOf(T)===0},_.prototype.setMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,u.DEFAULT_CHARSET),this._charsetService.setgCharset(1,u.DEFAULT_CHARSET),this._charsetService.setgCharset(2,u.DEFAULT_CHARSET),this._charsetService.setgCharset(3,u.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},_.prototype.resetMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[w]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},_.prototype._updateAttrColor=function(T,w,O,I,R){return w===2?(T|=50331648,T&=-16777216,T|=c.AttributeData.fromColorRGB([O,I,R])):w===5&&(T&=-50331904,T|=33554432|255&O),T},_.prototype._extractColor=function(T,w,O){var I=[0,0,-1,0,0,0],R=0,M=0;do{if(I[M+R]=T.params[w+M],T.hasSubParams(w+M)){var F=T.getSubParams(w+M),P=0;do I[1]===5&&(R=1),I[M+P+1+R]=F[P];while(++P<F.length&&P+M+1+R<I.length);break}if(I[1]===5&&M+R>=2||I[1]===2&&M+R>=5)break;I[1]&&(R=1)}while(++M+w<T.length&&M+R<I.length);for(P=2;P<I.length;++P)I[P]===-1&&(I[P]=0);switch(I[0]){case 38:O.fg=this._updateAttrColor(O.fg,I[1],I[3],I[4],I[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,I[1],I[3],I[4],I[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,I[1],I[3],I[4],I[5])}return M},_.prototype._processUnderline=function(T,w){w.extended=w.extended.clone(),(!~T||T>5)&&(T=1),w.extended.underlineStyle=T,w.fg|=268435456,T===0&&(w.fg&=-268435457),w.updateExtended()},_.prototype.charAttributes=function(T){if(T.length===1&&T.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var w,O=T.length,I=this._curAttrData,R=0;R<O;R++)(w=T.params[R])>=30&&w<=37?(I.fg&=-50331904,I.fg|=16777216|w-30):w>=40&&w<=47?(I.bg&=-50331904,I.bg|=16777216|w-40):w>=90&&w<=97?(I.fg&=-50331904,I.fg|=16777224|w-90):w>=100&&w<=107?(I.bg&=-50331904,I.bg|=16777224|w-100):w===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):w===1?I.fg|=134217728:w===3?I.bg|=67108864:w===4?(I.fg|=268435456,this._processUnderline(T.hasSubParams(R)?T.getSubParams(R)[0]:1,I)):w===5?I.fg|=536870912:w===7?I.fg|=67108864:w===8?I.fg|=1073741824:w===2?I.bg|=134217728:w===21?this._processUnderline(2,I):w===22?(I.fg&=-134217729,I.bg&=-134217729):w===23?I.bg&=-67108865:w===24?I.fg&=-268435457:w===25?I.fg&=-536870913:w===27?I.fg&=-67108865:w===28?I.fg&=-1073741825:w===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):w===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):w===38||w===48||w===58?R+=this._extractColor(T,R,I):w===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):w===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",w)},_.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(h.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(h.C0.ESC+"["+w+";"+O+"R")}},_.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(h.C0.ESC+"[?"+w+";"+O+"R")}},_.prototype.softReset=function(T){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},_.prototype.setCursorStyle=function(T){var w=T.params[0]||1;switch(w){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var O=w%2==1;this._optionsService.options.cursorBlink=O},_.prototype.setScrollRegion=function(T){var w,O=T.params[0]||1;(T.length<2||(w=T.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},_.prototype.windowOptions=function(T){if(b(T.params[0],this._optionsService.options.windowOptions)){var w=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(f.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(f.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(h.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(T){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},_.prototype.restoreCursor=function(T){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},_.prototype.setTitle=function(T){this._windowTitle=T,this._onTitleChange.fire(T)},_.prototype.setIconName=function(T){this._iconName=T},_.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},_.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},_.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},_.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,u.DEFAULT_CHARSET)},_.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(v[T[0]],u.CHARSETS[T[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},_.prototype.index=function(){this._restrictCursor();var T=this._bufferService.buffer;this._bufferService.buffer.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),this._restrictCursor()},_.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},_.prototype.reverseIndex=function(){this._restrictCursor();var T=this._bufferService.buffer;if(T.y===T.scrollTop){var w=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,w,1),T.lines.set(T.ybase+T.y,T.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(T.scrollTop,T.scrollBottom)}else T.y--,this._restrictCursor()},_.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},_.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},_.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},_.prototype.setgLevel=function(T){this._charsetService.setgLevel(T)},_.prototype.screenAlignmentPattern=function(){var T=new s.CellData;T.content=1<<22|"E".charCodeAt(0),T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O<this._bufferService.rows;++O){var I=w.ybase+w.y+O,R=w.lines.get(I);R&&(R.fill(T),R.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(i.Disposable);p.InputHandler=E},function(y,p,x){"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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Params=void 0;var A=function(){function m(f,h){if(f===void 0&&(f=32),h===void 0&&(h=32),this.maxLength=f,this.maxSubParamsLength=h,h>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(f),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(f),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return m.fromArray=function(f){var h=new m;if(!f.length)return h;for(var u=f[0]instanceof Array?1:0;u<f.length;++u){var a=f[u];if(a instanceof Array)for(var i=0;i<a.length;++i)h.addSubParam(a[i]);else h.addParam(a)}return h},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=[],h=0;h<this.length;++h){f.push(this.params[h]);var u=this._subParamsIdx[h]>>8,a=255&this._subParamsIdx[h];a-u>0&&f.push(Array.prototype.slice.call(this._subParams,u,a))}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 h=this._subParamsIdx[f]>>8,u=255&this._subParamsIdx[f];return u-h>0?this._subParams.subarray(h,u):null},m.prototype.getSubParamsAll=function(){for(var f={},h=0;h<this.length;++h){var u=this._subParamsIdx[h]>>8,a=255&this._subParamsIdx[h];a-u>0&&(f[h]=this._subParams.slice(u,a))}return f},m.prototype.addDigit=function(f){var h;if(!(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,a=u[h-1];u[h-1]=~a?Math.min(10*a+f,2147483647):f}},m}();p.Params=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OscHandler=p.OscParser=void 0;var A=x(23),m=x(8),f=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(a,i){this._handlers[a]===void 0&&(this._handlers[a]=[]);var t=this._handlers[a];return t.push(i),{dispose:function(){var e=t.indexOf(i);e!==-1&&t.splice(e,1)}}},u.prototype.setHandler=function(a,i){this._handlers[a]=[i]},u.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},u.prototype.setHandlerFallback=function(a){this._handlerFb=a},u.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},u.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},u.prototype._start=function(){var a=this._handlers[this._id];if(a)for(var i=a.length-1;i>=0;i--)a[i].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(a,i,t){var o=this._handlers[this._id];if(o)for(var e=o.length-1;e>=0;e--)o[e].put(a,i,t);else this._handlerFb(this._id,"PUT",m.utf32ToString(a,i,t))},u.prototype._end=function(a){var i=this._handlers[this._id];if(i){for(var t=i.length-1;t>=0&&i[t].end(a)===!1;t--);for(t--;t>=0;t--)i[t].end(!1)}else this._handlerFb(this._id,"END",a)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(a,i,t){if(this._state!==3){if(this._state===1)for(;i<t;){var o=a[i++];if(o===59){this._state=2,this._start();break}if(o<48||57<o)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+o-48}this._state===2&&t-i>0&&this._put(a,i,t)}},u.prototype.end=function(a){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(a)),this._id=-1,this._state=0)},u}();p.OscParser=f;var h=function(){function u(a){this._handler=a,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(a,i,t){this._hitLimit||(this._data+=m.utf32ToString(a,i,t),this._data.length>A.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(a){var i;return this._hitLimit?i=!1:a&&(i=this._handler(this._data)),this._data="",this._hitLimit=!1,i},u}();p.OscHandler=h},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PAYLOAD_LIMIT=void 0,p.PAYLOAD_LIMIT=1e7},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DcsHandler=p.DcsParser=void 0;var A=x(8),m=x(21),f=x(23),h=[],u=function(){function i(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=function(){}}return i.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},i.prototype.addHandler=function(t,o){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(o),{dispose:function(){var r=e.indexOf(o);r!==-1&&e.splice(r,1)}}},i.prototype.setHandler=function(t,o){this._handlers[t]=[o]},i.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},i.prototype.setHandlerFallback=function(t){this._handlerFb=t},i.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=h,this._ident=0},i.prototype.hook=function(t,o){if(this.reset(),this._ident=t,this._active=this._handlers[t]||h,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(o);else this._handlerFb(this._ident,"HOOK",o)},i.prototype.put=function(t,o,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(t,o,e);else this._handlerFb(this._ident,"PUT",A.utf32ToString(t,o,e))},i.prototype.unhook=function(t){if(this._active.length){for(var o=this._active.length-1;o>=0&&this._active[o].unhook(t)===!1;o--);for(o--;o>=0;o--)this._active[o].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=h,this._ident=0},i}();p.DcsParser=u;var a=function(){function i(t){this._handler=t,this._data="",this._hitLimit=!1}return i.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},i.prototype.put=function(t,o,e){this._hitLimit||(this._data+=A.utf32ToString(t,o,e),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},i.prototype.unhook=function(t){var o;return this._hitLimit?o=!1:t&&(o=this._handler(this._data,this._params||new m.Params)),this._params=void 0,this._data="",this._hitLimit=!1,o},i}();p.DcsHandler=a},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeTerminalFromCache=p.acquireCharAtlas=void 0;var A=x(26),m=x(43),f=[];p.acquireCharAtlas=function(h,u,a,i,t){for(var o=A.generateConfig(i,t,h,a),e=0;e<f.length;e++){var l=(r=f[e]).ownedBy.indexOf(u);if(l>=0){if(A.configEquals(r.config,o))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(A.configEquals(r.config,o))return r.ownedBy.push(u),r.atlas}var s={atlas:new m.DynamicCharAtlas(document,o),config:o,ownedBy:[u]};return f.push(s),s.atlas},p.removeTerminalFromCache=function(h){for(var u=0;u<f.length;u++){var a=f[u].ownedBy.indexOf(h);if(a!==-1){f[u].ownedBy.length===1?(f[u].atlas.dispose(),f.splice(u,1)):f[u].ownedBy.splice(a,1);break}}}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.is256Color=p.configEquals=p.generateConfig=void 0;var A=x(3);p.generateConfig=function(m,f,h,u){var a={foreground:u.foreground,background:u.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:u.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:m,scaledCharHeight:f,fontFamily:h.fontFamily,fontSize:h.fontSize,fontWeight:h.fontWeight,fontWeightBold:h.fontWeightBold,allowTransparency:h.allowTransparency,colors:a}},p.configEquals=function(m,f){for(var h=0;h<m.colors.ansi.length;h++)if(m.colors.ansi[h].rgba!==f.colors.ansi[h].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<A.DEFAULT_COLOR}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorManager=p.DEFAULT_ANSI_COLORS=void 0;var A=x(10),m=x(45),f=A.css.toColor("#ffffff"),h=A.css.toColor("#000000"),u=A.css.toColor("#ffffff"),a=A.css.toColor("#000000"),i={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};p.DEFAULT_ANSI_COLORS=function(){for(var o=[A.css.toColor("#2e3436"),A.css.toColor("#cc0000"),A.css.toColor("#4e9a06"),A.css.toColor("#c4a000"),A.css.toColor("#3465a4"),A.css.toColor("#75507b"),A.css.toColor("#06989a"),A.css.toColor("#d3d7cf"),A.css.toColor("#555753"),A.css.toColor("#ef2929"),A.css.toColor("#8ae234"),A.css.toColor("#fce94f"),A.css.toColor("#729fcf"),A.css.toColor("#ad7fa8"),A.css.toColor("#34e2e2"),A.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],l=0;l<216;l++){var r=e[l/36%6|0],s=e[l/6%6|0],c=e[l%6];o.push({css:A.channels.toCss(r,s,c),rgba:A.channels.toRgba(r,s,c)})}for(l=0;l<24;l++){var d=8+10*l;o.push({css:A.channels.toCss(d,d,d),rgba:A.channels.toRgba(d,d,d)})}return o}();var t=function(){function o(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:h,cursor:u,cursorAccent:a,selectionTransparent:i,selectionOpaque:A.color.blend(h,i),ansi:p.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return o.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},o.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,f),this.colors.background=this._parseColor(e.background,h),this.colors.cursor=this._parseColor(e.cursor,u,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(e.selection,i,!0),this.colors.selectionOpaque=A.color.blend(this.colors.background,this.colors.selectionTransparent),A.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=A.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,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()},o.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(E){return Number(E)}),d=c[0],g=c[1],v=c[2],b=c[3],S=Math.round(255*b);return{rgba:A.channels.toRgba(d,g,v,S),css:e}}return{css:this._ctx.fillStyle,rgba:A.channels.toRgba(s[0],s[1],s[2],s[3])}},o}();p.ColorManager=t},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.throwIfFalsy=void 0,p.throwIfFalsy=function(A){if(!A)throw new Error("value must not be falsy");return A}},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(o,e){return(A=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])})(o,e)},function(t,o){function e(){this.constructor=t}A(t,o),t.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(p,"__esModule",{value:!0}),p.CharacterJoinerRegistry=p.JoinedCellData=void 0;var f=x(6),h=x(3),u=x(4),a=function(t){function o(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(o,t),o.prototype.isCombined=function(){return 2097152},o.prototype.getWidth=function(){return this._width},o.prototype.getChars=function(){return this.combinedData},o.prototype.getCode=function(){return 2097151},o.prototype.setFromCharData=function(e){throw new Error("not implemented")},o.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},o}(f.AttributeData);p.JoinedCellData=a;var i=function(){function t(o){this._bufferService=o,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return t.prototype.registerCharacterJoiner=function(o){var e={id:this._nextCharacterJoinerId++,handler:o};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(o){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===o)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(o){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(o);if(!e||e.length===0)return[];for(var l=[],r=e.translateToString(!0),s=0,c=0,d=0,g=e.getFg(0),v=e.getBg(0),b=0;b<e.getTrimmedLength();b++)if(e.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==g||this._workCell.bg!==v){if(b-s>1)for(var S=this._getJoinedRanges(r,d,c,e,s),E=0;E<S.length;E++)l.push(S[E]);s=b,d=c,g=this._workCell.fg,v=this._workCell.bg}c+=this._workCell.getChars().length||h.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-s>1)for(S=this._getJoinedRanges(r,d,c,e,s),E=0;E<S.length;E++)l.push(S[E]);return l},t.prototype._getJoinedRanges=function(o,e,l,r,s){for(var c=o.substring(e,l),d=this._characterJoiners[0].handler(c),g=1;g<this._characterJoiners.length;g++)for(var v=this._characterJoiners[g].handler(c),b=0;b<v.length;b++)t._mergeRanges(d,v[b]);return this._stringRangesToCellRanges(d,r,s),d},t.prototype._stringRangesToCellRanges=function(o,e,l){var r=0,s=!1,c=0,d=o[r];if(d){for(var g=l;g<this._bufferService.cols;g++){var v=e.getWidth(g),b=e.getString(g).length||h.WHITESPACE_CELL_CHAR.length;if(v!==0){if(!s&&d[0]<=c&&(d[0]=g,s=!0),d[1]<=c){if(d[1]=g,!(d=o[++r]))break;d[0]<=c?(d[0]=g,s=!0):s=!1}c+=b}}d&&(d[1]=this._bufferService.cols)}},t._mergeRanges=function(o,e){for(var l=!1,r=0;r<o.length;r++){var s=o[r];if(l){if(e[1]<=s[0])return o[r-1][1]=e[1],o;if(e[1]<=s[1])return o[r-1][1]=Math.max(e[1],s[1]),o.splice(r,1),o;o.splice(r,1),r--}else{if(e[1]<=s[0])return o.splice(r,0,e),o;if(e[1]<=s[1])return s[0]=Math.min(e[0],s[0]),o;e[0]<s[1]&&(s[0]=Math.min(e[0],s[0]),l=!0)}}return l?o[o.length-1][1]=e[1]:o.push(e),o},t}();p.CharacterJoinerRegistry=i},function(y,p,x){"use strict";function A(m,f){var h=f.getBoundingClientRect();return[m.clientX-h.left,m.clientY-h.top]}Object.defineProperty(p,"__esModule",{value:!0}),p.getRawByteCoords=p.getCoords=p.getCoordsRelativeToElement=void 0,p.getCoordsRelativeToElement=A,p.getCoords=function(m,f,h,u,a,i,t,o){if(a){var e=A(m,f);if(e)return e[0]=Math.ceil((e[0]+(o?i/2:0))/i),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),h+(o?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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RenderDebouncer=void 0;var A=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,h,u){var a=this;this._rowCount=u,f=f!==void 0?f:0,h=h!==void 0?h: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,h):h,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return a._innerRefresh()}))},m.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),h=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(f,h)}},m}();p.RenderDebouncer=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(u,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(u,a)},function(h,u){function a(){this.constructor=h}A(h,u),h.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.ScreenDprMonitor=void 0;var f=function(h){function u(){var a=h!==null&&h.apply(this,arguments)||this;return a._currentDevicePixelRatio=window.devicePixelRatio,a}return m(u,h),u.prototype.setListener=function(a){var i=this;this._listener&&this.clearListener(),this._listener=a,this._outerListener=function(){i._listener&&(i._listener(window.devicePixelRatio,i._currentDevicePixelRatio),i._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){h.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var a;this._outerListener&&((a=this._resolutionMediaMatchList)===null||a===void 0||a.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},u.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},u}(x(2).Disposable);p.ScreenDprMonitor=f},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clone=void 0,p.clone=function A(m,f){if(f===void 0&&(f=5),typeof m!="object")return m;var h=Array.isArray(m)?[]:{};for(var u in m)h[u]=f<=1?m[u]:m[u]?A(m[u],f-1):m[u];return h}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var A=x(4),m=x(35),f=x(18),h=x(0),u=x(83),a=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,d){return this._checkProposedApi(),this._core.registerLinkMatcher(s,c,d)},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,d){this._verifyIntegers(s,c,d),this._core.select(s,c,d)},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 d=0,g=s;d<g.length;d++){var v=g[d];if(v===1/0||isNaN(v)||v%1!=0)throw new Error("This API only accepts integers")}},r}();p.Terminal=a;var i=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 o(c)},r.prototype.getNullCell=function(){return new A.CellData},r}(),t=function(){function r(s){var c=this;this._buffers=s,this._onBufferChange=new h.EventEmitter,this._normal=new i(this._buffers.normal,"normal"),this._alternate=new i(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(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}(),o=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 A.CellData)},r.prototype.translateToString=function(s,c,d){return this._line.translateToString(s,c,d)},r}(),e=function(){function r(s){this._core=s}return r.prototype.registerCsiHandler=function(s,c){return this._core.addCsiHandler(s,function(d){return c(d.toArray())})},r.prototype.addCsiHandler=function(s,c){return this.registerCsiHandler(s,c)},r.prototype.registerDcsHandler=function(s,c){return this._core.addDcsHandler(s,function(d,g){return c(d,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,x){"use strict";var A,m=this&&this.__extends||(A=function(B,j){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,z){W.__proto__=z}||function(W,z){for(var V in z)z.hasOwnProperty(V)&&(W[V]=z[V])})(B,j)},function(X,B){function j(){this.constructor=X}A(X,B),X.prototype=B===null?Object.create(B):(j.prototype=B.prototype,new j)});Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var f=x(36),h=x(37),u=x(38),a=x(12),i=x(19),t=x(40),o=x(50),e=x(51),l=x(11),r=x(7),s=x(18),c=x(54),d=x(55),g=x(56),v=x(57),b=x(59),S=x(0),E=x(16),C=x(27),_=x(60),T=x(5),w=x(61),O=x(62),I=x(63),R=x(64),M=x(65),F=typeof window!="undefined"?window.document:null,P=function(X){function B(j){j===void 0&&(j={});var W=X.call(this,j)||this;return W.browser=l,W._keyDownHandled=!1,W._onCursorMove=new S.EventEmitter,W._onKey=new S.EventEmitter,W._onRender=new S.EventEmitter,W._onSelectionChange=new S.EventEmitter,W._onTitleChange=new S.EventEmitter,W._onFocus=new S.EventEmitter,W._onBlur=new S.EventEmitter,W._onA11yCharEmitter=new S.EventEmitter,W._onA11yTabEmitter=new S.EventEmitter,W._setup(),W.linkifier=W._instantiationService.createInstance(o.Linkifier),W.linkifier2=W.register(W._instantiationService.createInstance(I.Linkifier2)),W.register(W._inputHandler.onRequestBell(function(){return W.bell()})),W.register(W._inputHandler.onRequestRefreshRows(function(z,V){return W.refresh(z,V)})),W.register(W._inputHandler.onRequestReset(function(){return W.reset()})),W.register(W._inputHandler.onRequestScroll(function(z,V){return W.scroll(z,V||void 0)})),W.register(W._inputHandler.onRequestWindowsOptionsReport(function(z){return W._reportWindowsOptions(z)})),W.register(S.forwardEvent(W._inputHandler.onCursorMove,W._onCursorMove)),W.register(S.forwardEvent(W._inputHandler.onTitleChange,W._onTitleChange)),W.register(S.forwardEvent(W._inputHandler.onA11yChar,W._onA11yCharEmitter)),W.register(S.forwardEvent(W._inputHandler.onA11yTab,W._onA11yTabEmitter)),W.register(W._bufferService.onResize(function(z){return W._afterResize(z.cols,z.rows)})),W}return m(B,X),Object.defineProperty(B.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),B.prototype.dispose=function(){var j,W,z;this._isDisposed||(X.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(z=(W=this.element)===null||W===void 0?void 0:W.parentNode)===null||z===void 0||z.removeChild(this.element))},B.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(B.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),B.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},B.prototype._updateOptions=function(j){var W,z,V,Q;switch(X.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(W=this._renderService)===null||W===void 0||W.clear(),(z=this._charSizeService)===null||z===void 0||z.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)):((Q=this._accessibilityManager)===null||Q===void 0||Q.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},B.prototype._onTextAreaFocus=function(j){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[I"),this.updateCursorStyle(j),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},B.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.blur()},B.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},B.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),W=this._bufferService.buffer.y*j,z=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=z+"px",this.textarea.style.top=W+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=j+"px",this.textarea.style.lineHeight=j+"px",this.textarea.style.zIndex="-5"}},B.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(z){j.hasSelection()&&u.copyHandler(z,j._selectionService)}));var W=function(V){return u.handlePasteEvent(V,j.textarea,j._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(z){z.button===2&&u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(z){u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),l.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(z){z.button===1&&u.moveTextAreaUnderMouseCursor(z,j.textarea,j.screenElement)}))},B.prototype._bindKeys=function(){var j=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(W){return j._keyUp(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(W){return j._keyDown(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(W){return j._keyPress(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(W){return j._compositionHelper.compositionupdate(W)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(W){return j._queueLinkification(W.start,W.end)}))},B.prototype.open=function(j){var W=this;if(!j)throw new Error("Terminal requires a parent element.");F.body.contains(j)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=j.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),j.appendChild(this.element);var z=F.createDocumentFragment();this._viewportElement=F.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),z.appendChild(this._viewportElement),this._viewportScrollArea=F.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=F.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=F.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),z.appendChild(this.screenElement),this.textarea=F.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(R.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._compositionView=F.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(z),this._theme=this.options.theme||this._theme,this._colorManager=new C.ColorManager(F,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(T.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(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,function(G,re){return W.scrollLines(G,re)},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(T.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(d.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()},B.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(v.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},B.prototype._setTheme=function(j){var W,z,V;this._theme=j,(W=this._colorManager)===null||W===void 0||W.setTheme(j),(z=this._renderService)===null||z===void 0||z.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},B.prototype.bindMouse=function(){var j=this,W=this,z=this.element;function V($){var be,_e,Ee=W._mouseService.getRawByteCoords($,W.screenElement,W.cols,W.rows);if(!Ee)return!1;switch($.overrideType||$.type){case"mousemove":_e=32,$.buttons===void 0?(be=3,$.button!==void 0&&(be=$.button<3?$.button:3)):be=1&$.buttons?0:4&$.buttons?1:2&$.buttons?2:3;break;case"mouseup":_e=0,be=$.button<3?$.button:3;break;case"mousedown":_e=1,be=$.button<3?$.button:3;break;case"wheel":$.deltaY!==0&&(_e=$.deltaY<0?0:1),be=4;break;default:return!1}return!(_e===void 0||be===void 0||be>4)&&W._coreMouseService.triggerMouseEvent({col:Ee.x-33,row:Ee.y-33,button:be,action:_e,ctrl:$.ctrlKey,alt:$.altKey,shift:$.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(be){return V(be),be.buttons||(j._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.removeEventListener("mousemove",Q.mousedrag)),j.cancel(be)},re=function(be){return V(be),be.preventDefault(),j.cancel(be)},ee=function(be){be.buttons&&V(be)},ue=function(be){be.buttons||V(be)};this.register(this._coreMouseService.onProtocolChange(function($){$?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents($)),j.element.classList.add("enable-mouse-events"),j._selectionService.disable()):(j._logService.debug("Unbinding from mouse events."),j.element.classList.remove("enable-mouse-events"),j._selectionService.enable()),8&$?Q.mousemove||(z.addEventListener("mousemove",ue),Q.mousemove=ue):(z.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&$?Q.wheel||(z.addEventListener("wheel",re,{passive:!1}),Q.wheel=re):(z.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&$?Q.mouseup||(Q.mouseup=G):(j._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&$?Q.mousedrag||(Q.mousedrag=ee):(j._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(z,"mousedown",function($){if($.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection($))return V($),Q.mouseup&&j._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.addEventListener("mousemove",Q.mousedrag),j.cancel($)})),this.register(r.addDisposableDomListener(z,"wheel",function($){if(!Q.wheel){if(!j.buffer.hasScrollback){var be=j.viewport.getLinesScrolled($);if(be===0)return;for(var _e=a.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+($.deltaY<0?"A":"B"),Ee="",Xe=0;Xe<Math.abs(be);Xe++)Ee+=_e;j._coreService.triggerDataEvent(Ee,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(z,"wheel",function($){if(!Q.wheel)return j.viewport.onWheel($)?void 0:j.cancel($)},{passive:!1})),this.register(r.addDisposableDomListener(z,"touchstart",function($){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart($),j.cancel($)},{passive:!0})),this.register(r.addDisposableDomListener(z,"touchmove",function($){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove($)?void 0:j.cancel($)},{passive:!1}))},B.prototype.refresh=function(j,W){var z;(z=this._renderService)===null||z===void 0||z.refreshRows(j,W)},B.prototype._queueLinkification=function(j,W){var z;(z=this.linkifier)===null||z===void 0||z.linkifyRows(j,W)},B.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},B.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},B.prototype.scrollLines=function(j,W){X.prototype.scrollLines.call(this,j,W),this.refresh(0,this.rows-1)},B.prototype.paste=function(j){u.paste(j,this.textarea,this._coreService)},B.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},B.prototype.registerLinkMatcher=function(j,W,z){var V=this.linkifier.registerLinkMatcher(j,W,z);return this.refresh(0,this.rows-1),V},B.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},B.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},B.prototype.registerCharacterJoiner=function(j){var W=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),W},B.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&this.refresh(0,this.rows-1)},Object.defineProperty(B.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),B.prototype.addMarker=function(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},B.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},B.prototype.select=function(j,W,z){this._selectionService.setSelection(j,W,z)},B.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},B.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]}},B.prototype.clearSelection=function(){var j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},B.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},B.prototype.selectLines=function(j,W){var z;(z=this._selectionService)===null||z===void 0||z.selectLines(j,W)},B.prototype._keyDown=function(j){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(!this._compositionHelper.keydown(j))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var W=b.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),W.type===3||W.type===2){var z=this.rows-1;return this.scrollLines(W.type===2?-z:z),this.cancel(j,!0)}return W.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(W.cancel&&this.cancel(j,!0),!W.key||(W.key!==a.C0.ETX&&W.key!==a.C0.CR||(this.textarea.value=""),this._onKey.fire({key:W.key,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(W.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(j,!0)))},B.prototype._isThirdLevelShift=function(j,W){var z=j.isMac&&!this.options.macOptionIsMeta&&W.altKey&&!W.ctrlKey&&!W.metaKey||j.isWindows&&W.altKey&&W.ctrlKey&&!W.metaKey;return W.type==="keypress"?z:z&&(!W.keyCode||W.keyCode>47)},B.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(W){return W.keyCode===16||W.keyCode===17||W.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},B.prototype._keyPress=function(j){var W;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)W=j.charCode;else if(j.which===null||j.which===void 0)W=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;W=j.which}return!(!W||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(W=String.fromCharCode(W),this._onKey.fire({key:W,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(W,!0),!0)},B.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},B.prototype.resize=function(j,W){j!==this.cols||W!==this.rows?X.prototype.resize.call(this,j,W):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},B.prototype._afterResize=function(j,W){var z,V;(z=this._charSizeService)===null||z===void 0||z.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},B.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},B.prototype.reset=function(){var j,W;this.options.rows=this.rows,this.options.cols=this.cols;var z=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1),(W=this.viewport)===null||W===void 0||W.syncScrollArea()},B.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case i.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var W=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),z=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[4;"+z+";"+W+"t");break;case i.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[6;"+Q+";"+V+"t")}},B.prototype.cancel=function(j,W){if(this.options.cancelEvents||W)return j.preventDefault(),j.stopPropagation(),!1},B.prototype._visualBell=function(){return!1},B.prototype._soundBell=function(){return this.options.bellStyle==="sound"},B}(M.CoreTerminal);p.Terminal=P},function(y,p,x){"use strict";var A=this&&this.__decorate||function(a,i,t,o){var e,l=arguments.length,r=l<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,i,t,o);else for(var s=a.length-1;s>=0;s--)(e=a[s])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(a,i){return function(t,o){i(t,o,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CompositionHelper=void 0;var f=x(5),h=x(1),u=function(){function a(i,t,o,e,l,r){this._textarea=i,this._compositionView=t,this._bufferService=o,this._optionsService=e,this._charSizeService=l,this._coreService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(a.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),a.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},a.prototype.compositionupdate=function(i){var t=this;this._compositionView.textContent=i.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},a.prototype.compositionend=function(){this._finalizeComposition(!0)},a.prototype.keydown=function(i){if(this._isComposing||this._isSendingComposition){if(i.keyCode===229)return!1;if(i.keyCode===16||i.keyCode===17||i.keyCode===18)return!1;this._finalizeComposition(!1)}return i.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},a.prototype._finalizeComposition=function(i){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,i){var o={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(o.start,o.end):t._textarea.value.substring(o.start),t._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},a.prototype._handleAnyTextareaChanges=function(){var i=this,t=this._textarea.value;setTimeout(function(){if(!i._isComposing){var o=i._textarea.value.replace(t,"");o.length>0&&i._coreService.triggerDataEvent(o,!0)}},0)},a.prototype.updateCompositionElements=function(i){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var o=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*o,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=o+"px",this._compositionView.style.lineHeight=o+"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"}i||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},a=A([m(2,h.IBufferService),m(3,h.IOptionsService),m(4,f.ICharSizeService),m(5,h.ICoreService)],a)}();p.CompositionHelper=u},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(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,d=arguments.length,g=d<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 v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=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=x(2),a=x(7),i=x(5),t=x(1),o=function(e){function l(r,s,c,d,g,v,b){var S=e.call(this)||this;return S._scrollLines=r,S._viewportElement=s,S._scrollArea=c,S._bufferService=d,S._optionsService=g,S._charSizeService=v,S._renderService=b,S.scrollBarWidth=0,S._currentRowHeight=0,S._lastRecordedBufferLength=0,S._lastRecordedViewportHeight=0,S._lastRecordedBufferHeight=0,S._lastTouchY=0,S._lastScrollTop=0,S._wheelPartialScroll=0,S._refreshAnimationFrame=null,S._ignoreNextScrollEvent=!1,S.scrollBarWidth=S._viewportElement.offsetWidth-S._scrollArea.offsetWidth||15,S.register(a.addDisposableDomListener(S._viewportElement,"scroll",S._onScroll.bind(S))),setTimeout(function(){return S.syncScrollArea()},0),S}return m(l,e),l.prototype.onThemeChange=function(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([h(3,t.IBufferService),h(4,t.IOptionsService),h(5,i.ICharSizeService),h(6,i.IRenderService)],l)}(u.Disposable);p.Viewport=o},function(y,p,x){"use strict";function A(u){return u.replace(/\r?\n/g,"\r")}function m(u,a){return a?"[200~"+u+"[201~":u}function f(u,a,i){u=m(u=A(u),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(u,!0),a.value=""}function h(u,a,i){var t=i.getBoundingClientRect(),o=u.clientX-t.left-10,e=u.clientY-t.top-10;a.style.width="20px",a.style.height="20px",a.style.left=o+"px",a.style.top=e+"px",a.style.zIndex="1000",a.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=A,p.bracketTextForPaste=m,p.copyHandler=function(u,a){u.clipboardData&&u.clipboardData.setData("text/plain",a.selectionText),u.preventDefault()},p.handlePasteEvent=function(u,a,i){u.stopPropagation(),u.clipboardData&&f(u.clipboardData.getData("text/plain"),a,i)},p.paste=f,p.moveTextAreaUnderMouseCursor=h,p.rightClickHandler=function(u,a,i,t,o){h(u,a,i),o&&!t.isClickInSelection(u)&&t.selectWordAtCursor(u),a.value=t.selectionText,a.select()}},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(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=x(2),h=x(15),u=x(21),a=x(22),i=x(24),t=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,r){h.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 d=0;d<l.length;d++)this.table[r<<8|l[d]]=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(v,b){return b}),r=function(b,S){return l.slice(b,S)},s=r(32,127),c=r(0,24);c.push(25),c.push.apply(c,r(28,32));var d,g=r(0,14);for(d in e.setDefault(1,0),e.addMany(s,0,2,0),g)e.addMany([24,26,153,154],d,3,0),e.addMany(r(128,144),d,3,0),e.addMany(r(144,152),d,3,0),e.add(156,d,0,0),e.add(27,d,11,1),e.add(157,d,4,8),e.addMany([152,158,159],d,0,7),e.add(155,d,11,3),e.add(144,d,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 o=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,d,g){},s._executeHandlerFb=function(c){},s._csiHandlerFb=function(c,d){},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 a.OscParser,s._dcsParser=new i.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 d=0;d<r.intermediates.length;++d){var g=r.intermediates.charCodeAt(d);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 v=r.final.charCodeAt(0);if(s[0]>v||v>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return c<<=8,c|=v},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 d=this._escHandlers[c];return d.push(s),{dispose:function(){var v=d.indexOf(s);v!==-1&&d.splice(v,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 d=this._csiHandlers[c];return d.push(s),{dispose:function(){var v=d.indexOf(s);v!==-1&&d.splice(v,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,d=0,g=this.currentState,v=this._oscParser,b=this._dcsParser,S=this._collect,E=this._params,C=this._transitions.table,_=0;_<s;++_){switch((d=C[g<<8|((c=r[_])<160?c:160)])>>4){case 2:for(var T=_+1;;++T){if(T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}if(++T>=s||(c=r[T])<32||c>126&&c<160){this._printHandler(r,_,T),_=T-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:_,code:c,currentState:g,collect:S,params:E,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[S<<8|c],O=w?w.length-1:-1;O>=0&&w[O](E)===!1;O--);O<0&&this._csiHandlerFb(S<<8|c,E),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:E.addParam(0);break;case 58:E.addSubParam(-1);break;default:E.addDigit(c-48)}while(++_<s&&(c=r[_])>47&&c<60);_--;break;case 9:S<<=8,S|=c;break;case 10:for(var I=this._escHandlers[S<<8|c],R=I?I.length-1:-1;R>=0&&I[R]()===!1;R--);R<0&&this._escHandlerFb(S<<8|c),this.precedingCodepoint=0;break;case 11:E.reset(),E.addParam(0),S=0;break;case 12:b.hook(S<<8|c,E);break;case 13:for(var M=_+1;;++M)if(M>=s||(c=r[M])===24||c===26||c===27||c>127&&c<160){b.put(r,_,M),_=M-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(d|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0;break;case 4:v.start();break;case 5:for(var F=_+1;;F++)if(F>=s||(c=r[F])<32||c>127&&c<=159){v.put(r,_,F),_=F-1;break}break;case 6:v.end(c!==24&&c!==26),c===27&&(d|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0}g=15&d}this._collect=S,this.currentState=g},l}(f.Disposable);p.EscapeSequenceParser=o},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(b,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(v,b){function S(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),f=this&&this.__decorate||function(v,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(v,b,S,E);else for(var w=v.length-1;w>=0;w--)(C=v[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},h=this&&this.__param||function(v,b){return function(S,E){b(S,E,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Renderer=void 0;var u=x(41),a=x(47),i=x(48),t=x(49),o=x(29),e=x(2),l=x(5),r=x(1),s=x(25),c=x(0),d=1,g=function(v){function b(S,E,C,_,T,w,O,I,R){var M=v.call(this)||this;M._colors=S,M._screenElement=E,M._bufferService=T,M._charSizeService=w,M._optionsService=O,M._id=d++,M._onRequestRedraw=new c.EventEmitter;var F=M._optionsService.options.allowTransparency;return M._characterJoinerRegistry=new o.CharacterJoinerRegistry(M._bufferService),M._renderLayers=[new u.TextRenderLayer(M._screenElement,0,M._colors,M._characterJoinerRegistry,F,M._id,M._bufferService,O),new a.SelectionRenderLayer(M._screenElement,1,M._colors,M._id,M._bufferService,O),new t.LinkRenderLayer(M._screenElement,2,M._colors,M._id,C,_,M._bufferService,O),new i.CursorRenderLayer(M._screenElement,3,M._colors,M._id,M._onRequestRedraw,M._bufferService,O,I,R)],M.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},M._devicePixelRatio=window.devicePixelRatio,M._updateDimensions(),M.onOptionsChanged(),M}return m(b,v),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var S=0,E=this._renderLayers;S<E.length;S++)E[S].dispose();v.prototype.dispose.call(this),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(S){this._colors=S;for(var E=0,C=this._renderLayers;E<C.length;E++){var _=C[E];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(S,E){this._updateDimensions();for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},b.prototype.onBlur=function(){this._runOperation(function(S){return S.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(S){return S.onFocus()})},b.prototype.onSelectionChanged=function(S,E,C){C===void 0&&(C=!1),this._runOperation(function(_){return _.onSelectionChanged(S,E,C)})},b.prototype.onCursorMove=function(){this._runOperation(function(S){return S.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(S){return S.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(S){return S.reset()})},b.prototype._runOperation=function(S){for(var E=0,C=this._renderLayers;E<C.length;E++)S(C[E])},b.prototype.renderRows=function(S,E){for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].onGridChanged(S,E)},b.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},b.prototype.registerCharacterJoiner=function(S){return this._characterJoinerRegistry.registerCharacterJoiner(S)},b.prototype.deregisterCharacterJoiner=function(S){return this._characterJoinerRegistry.deregisterCharacterJoiner(S)},b=f([h(4,r.IBufferService),h(5,l.ICharSizeService),h(6,r.IOptionsService),h(7,r.ICoreService),h(8,l.ICoreBrowserService)],b)}(e.Disposable);p.Renderer=g},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(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=x(42),h=x(13),u=x(6),a=x(3),i=x(29),t=x(4),o=function(e){function l(r,s,c,d,g,v,b,S){var E=e.call(this,r,"text",s,g,c,v,b,S)||this;return E._characterWidth=0,E._characterFont="",E._characterOverlapCache={},E._workCell=new t.CellData,E._state=new f.GridCache,E._characterJoinerRegistry=d,E}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,d){for(var g=r;g<=s;g++)for(var v=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(v),S=c?c.getJoinedCharacters(v):[],E=0;E<this._bufferService.cols;E++){b.loadCell(E,this._workCell);var C=this._workCell,_=!1,T=E;if(C.getWidth()!==0){if(S.length>0&&E===S[0][0]){_=!0;var w=S.shift();C=new i.JoinedCellData(this._workCell,b.translateToString(!0,w[0],w[1]),w[1]-w[0]),T=w[1]-1}!_&&this._isOverlapping(C)&&T<b.length-1&&b.getCodePoint(T+1)===a.NULL_CELL_CODE&&(C.content&=-12582913,C.content|=2<<22),d(C,E,g),E=T}}},l.prototype._drawBackground=function(r,s){var c=this,d=this._ctx,g=this._bufferService.cols,v=0,b=0,S=null;d.save(),this._forEachCell(r,s,null,function(E,C,_){var T=null;E.isInverse()?T=E.isFgDefault()?c._colors.foreground.css:E.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(E.getFgColor()).join(",")+")":c._colors.ansi[E.getFgColor()].css:E.isBgRGB()?T="rgb("+u.AttributeData.toColorRGB(E.getBgColor()).join(",")+")":E.isBgPalette()&&(T=c._colors.ansi[E.getBgColor()].css),S===null&&(v=C,b=_),_!==b?(d.fillStyle=S||"",c._fillCells(v,b,g-v,1),v=C,b=_):S!==T&&(d.fillStyle=S||"",c._fillCells(v,b,C-v,1),v=C,b=_),S=T}),S!==null&&(d.fillStyle=S,this._fillCells(v,b,g-v,1)),d.restore()},l.prototype._drawForeground=function(r,s){var c=this;this._forEachCell(r,s,this._characterJoinerRegistry,function(d,g,v){if(!d.isInvisible()&&(c._drawChars(d,g,v),d.isUnderline())){if(c._ctx.save(),d.isInverse())if(d.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(d.isBgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(d.getBgColor()).join(",")+")";else{var b=d.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&b<8&&(b+=8),c._ctx.fillStyle=c._colors.ansi[b].css}else if(d.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(d.isFgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(d.getFgColor()).join(",")+")";else{var S=d.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&d.isBold()&&S<8&&(S+=8),c._ctx.fillStyle=c._colors.ansi[S].css}c._fillBottomLineAtCells(g,v,d.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}(h.BaseRenderLayer);p.TextRenderLayer=o},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridCache=void 0;var A=function(){function m(){this.cache=[]}return m.prototype.resize=function(f,h){for(var u=0;u<f;u++){this.cache.length<=u&&this.cache.push([]);for(var a=this.cache[u].length;a<h;a++)this.cache[u].push(void 0);this.cache[u].length=h}this.cache.length=f},m.prototype.clear=function(){for(var f=0;f<this.cache.length;f++)for(var h=0;h<this.cache[f].length;h++)this.cache[f][h]=void 0},m}();p.GridCache=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(d,g){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])})(d,g)},function(c,d){function g(){this.constructor=c}A(c,d),c.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)});Object.defineProperty(p,"__esModule",{value:!0}),p.NoneCharAtlas=p.DynamicCharAtlas=p.getGlyphCacheKey=void 0;var f=x(9),h=x(44),u=x(27),a=x(46),i=x(11),t=x(28),o=x(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function l(c){return c.code<<21|c.bg<<12|c.fg<<3|(c.bold?0:4)+(c.dim?0:2)+(c.italic?0:1)}p.getGlyphCacheKey=l;var r=function(c){function d(g,v){var b=c.call(this)||this;b._config=v,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=g.createElement("canvas"),b._cacheCanvas.width=1024,b._cacheCanvas.height=1024,b._cacheCtx=t.throwIfFalsy(b._cacheCanvas.getContext("2d",{alpha:!0}));var S=g.createElement("canvas");S.width=b._config.scaledCharWidth,S.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(S.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(1024/b._config.scaledCharWidth),b._height=Math.floor(1024/b._config.scaledCharHeight);var E=b._width*b._height;return b._cacheMap=new a.LRUMap(E),b._cacheMap.prealloc(E),b}return m(d,c),d.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},d.prototype.beginFrame=function(){this._drawToCacheCount=0},d.prototype.draw=function(g,v,b,S){if(v.code===32)return!0;if(!this._canCache(v))return!1;var E=l(v),C=this._cacheMap.get(E);if(C!=null)return this._drawFromCache(g,C,b,S),!0;if(this._drawToCacheCount<100){var _=void 0;_=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var T=this._drawToCache(v,_);return this._cacheMap.set(E,T),this._drawFromCache(g,T,b,S),!0}return!1},d.prototype._canCache=function(g){return g.code<256},d.prototype._toCoordinateX=function(g){return g%this._width*this._config.scaledCharWidth},d.prototype._toCoordinateY=function(g){return Math.floor(g/this._width)*this._config.scaledCharHeight},d.prototype._drawFromCache=function(g,v,b,S){if(!v.isEmpty){var E=this._toCoordinateX(v.index),C=this._toCoordinateY(v.index);g.drawImage(v.inBitmap?this._bitmap:this._cacheCanvas,E,C,this._config.scaledCharWidth,this._config.scaledCharHeight,b,S,this._config.scaledCharWidth,this._config.scaledCharHeight)}},d.prototype._getColorFromAnsiIndex=function(g){return g<this._config.colors.ansi.length?this._config.colors.ansi[g]:u.DEFAULT_ANSI_COLORS[g]},d.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},d.prototype._getForegroundColor=function(g){return g.fg===f.INVERTED_DEFAULT_COLOR?o.color.opaque(this._config.colors.background):g.fg<256?this._getColorFromAnsiIndex(g.fg):this._config.colors.foreground},d.prototype._drawToCache=function(g,v){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(g);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var S=g.bold?this._config.fontWeightBold:this._config.fontWeight,E=g.italic?"italic":"";this._tmpCtx.font=E+" "+S+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(g).css,g.dim&&(this._tmpCtx.globalAlpha=f.DIM_OPACITY),this._tmpCtx.fillText(g.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var C=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),_=!1;this._config.allowTransparency||(_=function(I,R){for(var M=!0,F=R.rgba>>>24,P=R.rgba>>>16&255,X=R.rgba>>>8&255,B=0;B<I.data.length;B+=4)I.data[B]===F&&I.data[B+1]===P&&I.data[B+2]===X?I.data[B+3]=0:M=!1;return M}(C,b));var T=this._toCoordinateX(v),w=this._toCoordinateY(v);this._cacheCtx.putImageData(C,T,w);var O={index:v,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(O),O},d.prototype._addGlyphToBitmap=function(g){var v=this;!("createImageBitmap"in window)||i.isFirefox||i.isSafari||(this._glyphsWaitingOnBitmap.push(g),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return v._generateBitmap()},100)))},d.prototype._generateBitmap=function(){var g=this,v=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){g._bitmap=b;for(var S=0;S<v.length;S++)v[S].inBitmap=!0}),this._bitmapCommitTimeout=null},d}(h.BaseCharAtlas);p.DynamicCharAtlas=r;var s=function(c){function d(g,v){return c.call(this)||this}return m(d,c),d.prototype.draw=function(g,v,b,S){return!1},d}(h.BaseCharAtlas);p.NoneCharAtlas=s},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseCharAtlas=void 0;var A=function(){function m(){this._didWarmUp=!1}return m.prototype.dispose=function(){},m.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},m.prototype._doWarmUp=function(){},m.prototype.beginFrame=function(){},m}();p.BaseCharAtlas=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorContrastCache=void 0;var A=function(){function m(){this._color={},this._rgba={}}return m.prototype.clear=function(){this._color={},this._rgba={}},m.prototype.setCss=function(f,h,u){this._rgba[f]||(this._rgba[f]={}),this._rgba[f][h]=u},m.prototype.getCss=function(f,h){return this._rgba[f]?this._rgba[f][h]:void 0},m.prototype.setColor=function(f,h,u){this._color[f]||(this._color[f]={}),this._color[f][h]=u},m.prototype.getColor=function(f,h){return this._color[f]?this._color[f][h]:void 0},m}();p.ColorContrastCache=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LRUMap=void 0;var A=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 h=f.prev,u=f.next;f===this._head&&(this._head=u),f===this._tail&&(this._tail=h),h!==null&&(h.next=u),u!==null&&(u.prev=h)},m.prototype._appendNode=function(f){var h=this._tail;h!==null&&(h.next=f),f.prev=h,f.next=null,this._tail=f,this._head===null&&(this._head=f)},m.prototype.prealloc=function(f){for(var h=this._nodePool,u=0;u<f;u++)h.push({prev:null,next:null,key:null,value:null})},m.prototype.get=function(f){var h=this._map[f];return h!==void 0?(this._unlinkNode(h),this._appendNode(h),h.value):null},m.prototype.peekValue=function(f){var h=this._map[f];return h!==void 0?h.value:null},m.prototype.peek=function(){var f=this._head;return f===null?null:f.value},m.prototype.set=function(f,h){var u=this._map[f];if(u!==void 0)u=this._map[f],this._unlinkNode(u),u.value=h;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=f,u.value=h,this._map[f]=u;else{var a=this._nodePool;a.length>0?((u=a.pop()).key=f,u.value=h):u={prev:null,next:null,key:f,value:h},this._map[f]=u,this.size++}this._appendNode(u)},m}();p.LRUMap=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(u,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o])})(u,a)},function(h,u){function a(){this.constructor=h}A(h,u),h.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionRenderLayer=void 0;var f=function(h){function u(a,i,t,o,e,l){var r=h.call(this,a,"selection",i,!0,t,o,e,l)||this;return r._clearState(),r}return m(u,h),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(a){h.prototype.resize.call(this,a),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(a,i,t){if(this._didStateChange(a,i,t,this._bufferService.buffer.ydisp))if(this._clearAll(),a&&i){var o=a[1]-this._bufferService.buffer.ydisp,e=i[1]-this._bufferService.buffer.ydisp,l=Math.max(o,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=a[0],c=i[0]-s,d=r-l+1;this._fillCells(s,l,c,d)}else{s=o===l?a[0]:0;var g=l===r?i[0]:this._bufferService.cols;this._fillCells(s,l,g-s,1);var v=Math.max(r-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,v),l!==r){var b=e===r?i[0]:this._bufferService.cols;this._fillCells(0,r,b,1)}}this._state.start=[a[0],a[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(a,i,t,o){return!this._areCoordinatesEqual(a,this._state.start)||!this._areCoordinatesEqual(i,this._state.end)||t!==this._state.columnSelectMode||o!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(a,i){return!(!a||!i)&&a[0]===i[0]&&a[1]===i[1]},u}(x(13).BaseRenderLayer);p.SelectionRenderLayer=f},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(t,o){return(A=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,o)},function(i,t){function o(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.CursorRenderLayer=void 0;var f=x(13),h=x(4),u=function(i){function t(o,e,l,r,s,c,d,g,v){var b=i.call(this,o,"cursor",e,!0,l,r,c,d)||this;return b._onRequestRedraw=s,b._coreService=g,b._coreBrowserService=v,b._cell=new h.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return m(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),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 o,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,function(){e._render(!0)})):((o=this._cursorBlinkStateManager)===null||o===void 0||o.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(o,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(o){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(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(o,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(o,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,o,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(o,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(o,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(o,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(o,e,l.getWidth(),1),this._ctx.restore()},t}(f.BaseRenderLayer);p.CursorRenderLayer=u;var a=function(){function i(t,o){this._renderCallback=o,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(i.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},i.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},i.prototype._restartInterval=function(t){var o=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(o._animationTimeRestarted){var e=600-(Date.now()-o._animationTimeRestarted);if(o._animationTimeRestarted=void 0,e>0)return void o._restartInterval(e)}o.isCursorVisible=!1,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0}),o._blinkInterval=window.setInterval(function(){if(o._animationTimeRestarted){var l=600-(Date.now()-o._animationTimeRestarted);return o._animationTimeRestarted=void 0,void o._restartInterval(l)}o.isCursorVisible=!o.isCursorVisible,o._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0})},600)},t)},i.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},i.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},i}()},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(t,o){return(A=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,o)},function(i,t){function o(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.LinkRenderLayer=void 0;var f=x(13),h=x(9),u=x(26),a=function(i){function t(o,e,l,r,s,c,d,g){var v=i.call(this,o,"link",e,!0,l,r,d,g)||this;return s.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),s.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),v}return m(t,i),t.prototype.resize=function(o){i.prototype.resize.call(this,o),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 o=this._state.y2-this._state.y1-1;o>0&&this._clearCells(0,this._state.y1+1,this._state.cols,o),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(o){if(o.fg===h.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:o.fg&&u.is256Color(o.fg)?this._ctx.fillStyle=this._colors.ansi[o.fg].css:this._ctx.fillStyle=this._colors.foreground.css,o.y1===o.y2)this._fillBottomLineAtCells(o.x1,o.y1,o.x2-o.x1);else{this._fillBottomLineAtCells(o.x1,o.y1,o.cols-o.x1);for(var e=o.y1+1;e<o.y2;e++)this._fillBottomLineAtCells(0,e,o.cols);this._fillBottomLineAtCells(0,o.y2,o.x2)}this._state=o},t.prototype._onHideLinkUnderline=function(o){this._clearCurrentLink()},t}(f.BaseRenderLayer);p.LinkRenderLayer=a},function(y,p,x){"use strict";var A=this&&this.__decorate||function(i,t,o,e){var l,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(s=(r<3?l(s):r>3?l(t,o,s):l(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},m=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZone=p.Linkifier=void 0;var f=x(0),h=x(1),u=function(){function i(t,o,e){this._bufferService=t,this._logService=o,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(i.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),i.prototype.attachToDom=function(t,o){this._element=t,this._mouseZoneManager=o},i.prototype.linkifyRows=function(t,o){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=o):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,o)),this._mouseZoneManager.clearAll(t,o),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},i._timeBeforeLatency))},i.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var o=t.ydisp+this._rowsToLinkify.start;if(!(o>=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,o,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")},i.prototype.registerLinkMatcher=function(t,o,e){if(e===void 0&&(e={}),!o)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:t,handler:o,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(l),l.id},i.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var o=this._linkMatchers.length-1;o>=0;o--)if(t.priority<=this._linkMatchers[o].priority)return void this._linkMatchers.splice(o+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},i.prototype.deregisterLinkMatcher=function(t){for(var o=0;o<this._linkMatchers.length;o++)if(this._linkMatchers[o].id===t)return this._linkMatchers.splice(o,1),!0;return!1},i.prototype._doLinkifyRow=function(t,o,e){for(var l,r=this,s=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),c=-1,d=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=o.indexOf(b,c+1),s.lastIndex=c+b.length,c<0)return"break";var S=g._bufferService.buffer.stringIndexToBufferIndex(t,c);if(S[0]<0)return"break";var E=g._bufferService.buffer.lines.get(S[0]);if(!E)return"break";var C=E.getFg(S[1]),_=C?C>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(T){r._rowsTimeoutId||T&&r._addLink(S[1],S[0]-r._bufferService.buffer.ydisp,b,e,_)}):g._addLink(S[1],S[0]-g._bufferService.buffer.ydisp,b,e,_)},g=this;(l=s.exec(o))!==null&&!(d()==="break"););},i.prototype._addLink=function(t,o,e,l,r){var s=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),d=t%this._bufferService.cols,g=o+Math.floor(t/this._bufferService.cols),v=(d+c)%this._bufferService.cols,b=g+Math.floor((d+c)/this._bufferService.cols);v===0&&(v=this._bufferService.cols,b--),this._mouseZoneManager.add(new a(d+1,g+1,v+1,b+1,function(S){if(l.handler)return l.handler(S,e);var E=window.open();E?(E.opener=null,E.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(d,g,v,b,r)),s._element.classList.add("xterm-cursor-pointer")},function(S){s._onLinkTooltip.fire(s._createLinkHoverEvent(d,g,v,b,r)),l.hoverTooltipCallback&&l.hoverTooltipCallback(S,e,{start:{x:d,y:g},end:{x:v,y:b}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(d,g,v,b,r)),s._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(S){return!l.willLinkActivate||l.willLinkActivate(S,e)}))}},i.prototype._createLinkHoverEvent=function(t,o,e,l,r){return{x1:t,y1:o,x2:e,y2:l,cols:this._bufferService.cols,fg:r}},i._timeBeforeLatency=200,i=A([m(0,h.IBufferService),m(1,h.ILogService),m(2,h.IUnicodeService)],i)}();p.Linkifier=u;var a=function(t,o,e,l,r,s,c,d,g){this.x1=t,this.y1=o,this.x2=e,this.y2=l,this.clickCallback=r,this.hoverCallback=s,this.tooltipCallback=c,this.leaveCallback=d,this.willLinkActivate=g};p.MouseZone=a},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(b,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(v,b){function S(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),f=this&&this.__decorate||function(v,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(v,b,S,E);else for(var w=v.length-1;w>=0;w--)(C=v[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},h=this&&this.__param||function(v,b){return function(S,E){b(S,E,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionService=void 0;var u=x(11),a=x(52),i=x(4),t=x(0),o=x(5),e=x(1),l=x(30),r=x(53),s=x(2),c=String.fromCharCode(160),d=new RegExp(c,"g"),g=function(v){function b(S,E,C,_,T,w,O){var I=v.call(this)||this;return I._element=S,I._screenElement=E,I._bufferService=C,I._coreService=_,I._mouseService=T,I._optionsService=w,I._renderService=O,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new i.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new t.EventEmitter),I._onRedrawRequest=I.register(new t.EventEmitter),I._onSelectionChange=I.register(new t.EventEmitter),I._onRequestScrollLines=I.register(new t.EventEmitter),I._mouseMoveListener=function(R){return I._onMouseMove(R)},I._mouseUpListener=function(R){return I._onMouseUp(R)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(R){return I._onTrim(R)}),I.register(I._bufferService.buffers.onBufferActivate(function(R){return I._onBufferActivate(R)})),I.enable(),I._model=new a.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return m(b,v),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!E||!C)&&(E[0]!==C[0]||E[1]!==C[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;if(!E||!C)return"";var _=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(E[0]===C[0])return"";for(var w=E[1];w<=C[1];w++){var O=_.translateBufferLineToString(w,!0,E[0],C[0]);T.push(O)}}else{var I=E[1]===C[1]?C[0]:void 0;for(T.push(_.translateBufferLineToString(E[1],!0,E[0],I)),w=E[1]+1;w<=C[1]-1;w++){var R=_.lines.get(w);O=_.translateBufferLineToString(w,!0),R&&R.isWrapped?T[T.length-1]+=O:T.push(O)}E[1]!==C[1]&&(R=_.lines.get(C[1]),O=_.translateBufferLineToString(C[1],!0,0,C[0]),R&&R.isWrapped?T[T.length-1]+=O:T.push(O))}return T.map(function(M){return M.replace(d," ")}).join(u.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),b.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},b.prototype.refresh=function(S){var E=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return E._refresh()})),u.isLinux&&S)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},b.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},b.prototype.isClickInSelection=function(S){var E=this._getMouseBufferCoords(S),C=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(C&&_&&E)&&this._areCoordsInSelection(E,C,_)},b.prototype._areCoordsInSelection=function(S,E,C){return S[1]>E[1]&&S[1]<C[1]||E[1]===C[1]&&S[1]===E[1]&&S[0]>=E[0]&&S[0]<C[0]||E[1]<C[1]&&S[1]===C[1]&&S[0]<C[0]||E[1]<C[1]&&S[1]===E[1]&&S[0]>=E[0]},b.prototype.selectWordAtCursor=function(S){var E=this._getMouseBufferCoords(S);E&&(this._selectWordAt(E,!1),this._model.selectionEnd=void 0,this.refresh(!0))},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(S,E){this._model.clearSelection(),S=Math.max(S,0),E=Math.min(E,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,S],this._model.selectionEnd=[this._bufferService.cols,E],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(S){this._model.onTrim(S)&&this.refresh()},b.prototype._getMouseBufferCoords=function(S){var E=this._mouseService.getCoords(S,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(E)return E[0]--,E[1]--,E[1]+=this._bufferService.buffer.ydisp,E},b.prototype._getMouseEventScrollAmount=function(S){var E=l.getCoordsRelativeToElement(S,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return E>=0&&E<=C?0:(E>C&&(E-=C),E=Math.min(Math.max(E,-50),50),(E/=50)/Math.abs(E)+Math.round(14*E))},b.prototype.shouldForceSelection=function(S){return u.isMac?S.altKey&&this._optionsService.options.macOptionClickForcesSelection:S.shiftKey},b.prototype.onMouseDown=function(S){if(this._mouseDownTimeStamp=S.timeStamp,(S.button!==2||!this.hasSelection)&&S.button===0){if(!this._enabled){if(!this.shouldForceSelection(S))return;S.stopPropagation()}S.preventDefault(),this._dragScrollAmount=0,this._enabled&&S.shiftKey?this._onIncrementalClick(S):S.detail===1?this._onSingleClick(S):S.detail===2?this._onDoubleClick(S):S.detail===3&&this._onTripleClick(S),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var S=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return S._dragScroll()},50)},b.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},b.prototype._onIncrementalClick=function(S){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(S))},b.prototype._onSingleClick=function(S){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(S)?3:0,this._model.selectionStart=this._getMouseBufferCoords(S),this._model.selectionStart){this._model.selectionEnd=void 0;var E=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);E&&E.length!==this._model.selectionStart[0]&&E.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=1,this._selectWordAt(E,!0))},b.prototype._onTripleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=2,this._selectLineAt(E[1]))},b.prototype.shouldColumnSelect=function(S){return S.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(S){if(S.stopImmediatePropagation(),this._model.selectionStart){var E=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(S),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(S),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]<C.lines.length){var _=C.lines.get(this._model.selectionEnd[1]);_&&_.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}E&&E[0]===this._model.selectionEnd[0]&&E[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},b.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var S=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(S.ydisp+this._bufferService.rows,S.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=S.ydisp),this.refresh()}},b.prototype._onMouseUp=function(S){var E=S.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&E<500&&S.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(S,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var _=r.moveToCellSequence(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(_,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(S){var E=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=S.activeBuffer.lines.onTrim(function(C){return E._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(S,E){for(var C=E[0],_=0;E[0]>=_;_++){var T=S.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:T>1&&E[0]!==_&&(C+=T-1)}return C},b.prototype.setSelection=function(S,E,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[S,E],this._model.selectionStartLength=C,this.refresh()},b.prototype._getWordAt=function(S,E,C,_){if(C===void 0&&(C=!0),_===void 0&&(_=!0),!(S[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,w=T.lines.get(S[1]);if(w){var O=T.translateBufferLineToString(S[1],!1),I=this._convertViewportColToCharacterIndex(w,S),R=I,M=S[0]-I,F=0,P=0,X=0,B=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;R<O.length&&O.charAt(R+1)===" ";)R++}else{var j=S[0],W=S[0];w.getWidth(j)===0&&(F++,j--),w.getWidth(W)===2&&(P++,W++);var z=w.getString(W).length;for(z>1&&(B+=z-1,R+=z-1);j>0&&I>0&&!this._isCharWordSeparator(w.loadCell(j-1,this._workCell));){w.loadCell(j-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(F++,j--):V>1&&(X+=V-1,I-=V-1),I--,j--}for(;W<w.length&&R+1<O.length&&!this._isCharWordSeparator(w.loadCell(W+1,this._workCell));){w.loadCell(W+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(P++,W++):Q>1&&(B+=Q-1,R+=Q-1),R++,W++}}R++;var G=I+M-F+X,re=Math.min(this._bufferService.cols,R-I+F+P-X-B);if(E||O.slice(I,R).trim()!==""){if(C&&G===0&&w.getCodePoint(0)!==32){var ee=T.lines.get(S[1]-1);if(ee&&w.isWrapped&&ee.getCodePoint(this._bufferService.cols-1)!==32){var ue=this._getWordAt([this._bufferService.cols-1,S[1]-1],!1,!0,!1);if(ue){var $=this._bufferService.cols-ue.start;G-=$,re+=$}}}if(_&&G+re===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var be=T.lines.get(S[1]+1);if(be&&be.isWrapped&&be.getCodePoint(0)!==32){var _e=this._getWordAt([0,S[1]+1],!1,!1,!0);_e&&(re+=_e.length)}}return{start:G,length:re}}}}},b.prototype._selectWordAt=function(S,E){var C=this._getWordAt(S,E);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,S[1]--;this._model.selectionStart=[C.start,S[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(S){var E=this._getWordAt(S,!0);if(E){for(var C=S[1];E.start<0;)E.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;E.start+E.length>this._bufferService.cols;)E.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?E.start:E.start+E.length,C]}},b.prototype._isCharWordSeparator=function(S){return S.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(S.getChars())>=0},b.prototype._selectLineAt=function(S){var E=this._bufferService.buffer.getWrappedRangeForLine(S);this._model.selectionStart=[0,E.first],this._model.selectionEnd=[this._bufferService.cols,E.last],this._model.selectionStartLength=0},b=f([h(2,e.IBufferService),h(3,e.ICoreService),h(4,o.IMouseService),h(5,e.IOptionsService),h(6,o.IRenderService)],b)}(s.Disposable);p.SelectionService=g},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionModel=void 0;var A=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 h=this.selectionStart[0]+this.selectionStartLength;return h>this._bufferService.cols?[h%this._bufferService.cols,this.selectionStart[1]+Math.floor(h/this._bufferService.cols)]:[h,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,h=this.selectionEnd;return!(!f||!h)&&(f[1]>h[1]||f[1]===h[1]&&f[0]>h[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=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.moveToCellSequence=void 0;var A=x(12);function m(t,o,e,l){var r=t-f(e,t),s=o-f(e,o);return i(Math.abs(r-s)-function(c,d,g){for(var v=0,b=c-f(g,c),S=d-f(g,d),E=0;E<Math.abs(b-S);E++){var C=h(c,d)==="A"?-1:1,_=g.buffer.lines.get(b+C*E);_&&_.isWrapped&&v++}return v}(t,o,e),a(h(t,o),l))}function f(t,o){for(var e=0,l=t.buffer.lines.get(o),r=l&&l.isWrapped;r&&o>=0&&o<t.rows;)e++,r=(l=t.buffer.lines.get(--o))&&l.isWrapped;return e}function h(t,o){return t>o?"A":"B"}function u(t,o,e,l,r,s){for(var c=t,d=o,g="";c!==e||d!==l;)c+=r?1:-1,r&&c>s.cols-1?(g+=s.buffer.translateBufferLineToString(d,!1,t,c),c=0,t=0,d++):!r&&c<0&&(g+=s.buffer.translateBufferLineToString(d,!1,0,t+1),t=c=s.cols-1,d--);return g+s.buffer.translateBufferLineToString(d,!1,t,c)}function a(t,o){var e=o?"O":"[";return A.C0.ESC+e+t}function i(t,o){t=Math.floor(t);for(var e="",l=0;l<t;l++)e+=o;return e}p.moveToCellSequence=function(t,o,e,l){var r,s=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(g,v,b,S,E,C){return m(v,S,E,C).length===0?"":i(u(g,v,g,v-f(E,v),!1,E).length,a("D",C))}(s,c,0,o,e,l)+m(c,o,e,l)+function(g,v,b,S,E,C){var _;_=m(v,S,E,C).length>0?S-f(E,S):v;var T=S,w=function(O,I,R,M,F,P){var X;return X=m(R,M,F,P).length>0?M-f(F,M):I,O<R&&X<=M||O>=R&&X<M?"C":"D"}(g,v,b,S,E,C);return i(u(g,_,b,T,w==="C",E).length,a(w,C))}(s,c,t,o,e,l);if(c===o)return r=s>t?"D":"C",i(Math.abs(s-t),a(r,l));r=c>o?"D":"C";var d=Math.abs(c-o);return i(function(g,v){return v.cols-g}(c>o?t:s,e)+(d-1)*e.cols+1+((c>o?s:t)-1),a(r,l))}},function(y,p,x){"use strict";var A=this&&this.__decorate||function(u,a,i,t){var o,e=arguments.length,l=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,a,i,t);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(l=(e<3?o(l):e>3?o(a,i,l):o(a,i))||l);return e>3&&l&&Object.defineProperty(a,i,l),l},m=this&&this.__param||function(u,a){return function(i,t){a(i,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SoundService=void 0;var f=x(1),h=function(){function u(a){this._optionsService=a}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var i=window.AudioContext||window.webkitAudioContext;if(!i)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new i}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var a=u.audioContext;if(a){var i=a.createBufferSource();a.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){i.buffer=t,i.connect(a.destination),i.start(0)})}},u.prototype._base64ToArrayBuffer=function(a){for(var i=window.atob(a),t=i.length,o=new Uint8Array(t),e=0;e<t;e++)o[e]=i.charCodeAt(e);return o.buffer},u.prototype._removeMimeType=function(a){return a.split(",")[1]},u=A([m(0,f.IOptionsService)],u)}();p.SoundService=h},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(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,d=arguments.length,g=d<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 v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=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=x(2),a=x(7),i=x(5),t=x(1),o=function(e){function l(r,s,c,d,g,v){var b=e.call(this)||this;return b._element=r,b._screenElement=s,b._bufferService=c,b._mouseService=d,b._selectionService=g,b._optionsService=v,b._zones=[],b._areZonesActive=!1,b._lastHoverCoords=[void 0,void 0],b._initialSelectionLength=0,b.register(a.addDisposableDomListener(b._element,"mousedown",function(S){return b._onMouseDown(S)})),b._mouseMoveListener=function(S){return b._onMouseMove(S)},b._mouseLeaveListener=function(S){return b._onMouseLeave(S)},b._clickListener=function(S){return b._onClick(S)},b}return m(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(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 d=this._zones[c];(d.y1>r&&d.y1<=s+1||d.y2>r&&d.y2<=s+1||d.y1<r&&d.y2>s+1)&&(this._currentZone&&this._currentZone===d&&(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],d=s[1],g=0;g<this._zones.length;g++){var v=this._zones[g];if(v.y1===v.y2){if(d===v.y1&&c>=v.x1&&c<v.x2)return v}else if(d===v.y1&&c>=v.x1||d===v.y2&&c<v.x2||d>v.y1&&d<v.y2)return v}},l=f([h(2,t.IBufferService),h(3,i.IMouseService),h(4,i.ISelectionService),h(5,t.IOptionsService)],l)}(u.Disposable);p.MouseZoneManager=o},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(r,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var g in d)d.hasOwnProperty(g)&&(c[g]=d[g])})(r,s)},function(l,r){function s(){this.constructor=l}A(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=x(18),h=x(11),u=x(31),a=x(7),i=x(2),t=x(32),o=x(17),e=function(l){function r(s,c){var d=l.call(this)||this;d._terminal=s,d._renderService=c,d._liveRegionLineCount=0,d._charsToConsume=[],d._charsToAnnounce="",d._accessibilityTreeRoot=document.createElement("div"),d._accessibilityTreeRoot.classList.add("xterm-accessibility"),d._rowContainer=document.createElement("div"),d._rowContainer.classList.add("xterm-accessibility-tree"),d._rowContainer.setAttribute("role","list"),d._rowElements=[];for(var g=0;g<d._terminal.rows;g++)d._rowElements[g]=d._createAccessibilityTreeNode(),d._rowContainer.appendChild(d._rowElements[g]);if(d._topBoundaryFocusListener=function(v){return d._onBoundaryFocus(v,0)},d._bottomBoundaryFocusListener=function(v){return d._onBoundaryFocus(v,1)},d._rowElements[0].addEventListener("focus",d._topBoundaryFocusListener),d._rowElements[d._rowElements.length-1].addEventListener("focus",d._bottomBoundaryFocusListener),d._refreshRowsDimensions(),d._accessibilityTreeRoot.appendChild(d._rowContainer),d._renderRowsDebouncer=new u.RenderDebouncer(d._renderRows.bind(d)),d._refreshRows(),d._liveRegion=document.createElement("div"),d._liveRegion.classList.add("live-region"),d._liveRegion.setAttribute("aria-live","assertive"),d._accessibilityTreeRoot.appendChild(d._liveRegion),!d._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return d._terminal.element.insertAdjacentElement("afterbegin",d._accessibilityTreeRoot),d.register(d._renderRowsDebouncer),d.register(d._terminal.onResize(function(v){return d._onResize(v.rows)})),d.register(d._terminal.onRender(function(v){return d._refreshRows(v.start,v.end)})),d.register(d._terminal.onScroll(function(){return d._refreshRows()})),d.register(d._terminal.onA11yChar(function(v){return d._onChar(v)})),d.register(d._terminal.onLineFeed(function(){return d._onChar(`
`)})),d.register(d._terminal.onA11yTab(function(v){return d._onTab(v)})),d.register(d._terminal.onKey(function(v){return d._onKey(v.key)})),d.register(d._terminal.onBlur(function(){return d._clearLiveRegion()})),d.register(d._renderService.onDimensionsChange(function(){return d._refreshRowsDimensions()})),d._screenDprMonitor=new t.ScreenDprMonitor,d.register(d._screenDprMonitor),d._screenDprMonitor.setListener(function(){return d._refreshRowsDimensions()}),d.register(a.addDisposableDomListener(window,"resize",function(){return d._refreshRowsDimensions()})),d}return m(r,l),r.prototype.dispose=function(){l.prototype.dispose.call(this),o.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(s,c){var d=s.target,g=this._rowElements[c===0?1:this._rowElements.length-2];if(d.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&s.relatedTarget===g){var v,b;if(c===0?(v=d,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(v=this._rowElements.shift(),b=d,this._rowContainer.removeChild(v)),v.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else S=this._createAccessibilityTreeNode(),this._rowElements.push(S),this._rowContainer.appendChild(S);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(c===0?-1:1),this._rowElements[c===0?1:this._rowElements.length-2].focus(),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)),h.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,h.isMac&&o.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 d=this._terminal.buffer,g=d.lines.length.toString(),v=s;v<=c;v++){var b=d.translateBufferLineToString(d.ydisp+v,!0),S=(d.ydisp+v+1).toString(),E=this._rowElements[v];E&&(b.length===0?E.innerHTML="&nbsp;":E.textContent=b,E.setAttribute("aria-posinset",S),E.setAttribute("aria-setsize",g))}this._announceCharacters()},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}(i.Disposable);p.AccessibilityManager=e},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(g,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E])})(g,v)},function(d,g){function v(){this.constructor=d}A(d,g),d.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),f=this&&this.__decorate||function(d,g,v,b){var S,E=arguments.length,C=E<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,v):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(d,g,v,b);else for(var _=d.length-1;_>=0;_--)(S=d[_])&&(C=(E<3?S(C):E>3?S(g,v,C):S(g,v))||C);return E>3&&C&&Object.defineProperty(g,v,C),C},h=this&&this.__param||function(d,g){return function(v,b){g(v,b,d)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DomRenderer=void 0;var u=x(58),a=x(9),i=x(2),t=x(5),o=x(1),e=x(0),l=x(10),r=x(17),s=1,c=function(d){function g(v,b,S,E,C,_,T,w,O){var I=d.call(this)||this;return I._colors=v,I._element=b,I._screenElement=S,I._viewportElement=E,I._linkifier=C,I._linkifier2=_,I._charSizeService=T,I._optionsService=w,I._bufferService=O,I._terminalClass=s++,I._rowElements=[],I._rowContainer=document.createElement("div"),I._rowContainer.classList.add("xterm-rows"),I._rowContainer.style.lineHeight="normal",I._rowContainer.setAttribute("aria-hidden","true"),I._refreshRowElements(I._bufferService.cols,I._bufferService.rows),I._selectionContainer=document.createElement("div"),I._selectionContainer.classList.add("xterm-selection"),I._selectionContainer.setAttribute("aria-hidden","true"),I.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},I._updateDimensions(),I._injectCss(),I._rowFactory=new u.DomRendererRowFactory(document,I._optionsService,I._colors),I._element.classList.add("xterm-dom-renderer-owner-"+I._terminalClass),I._screenElement.appendChild(I._rowContainer),I._screenElement.appendChild(I._selectionContainer),I._linkifier.onShowLinkUnderline(function(R){return I._onLinkHover(R)}),I._linkifier.onHideLinkUnderline(function(R){return I._onLinkLeave(R)}),I._linkifier2.onShowLinkUnderline(function(R){return I._onLinkHover(R)}),I._linkifier2.onHideLinkUnderline(function(R){return I._onLinkLeave(R)}),I}return m(g,d),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),d.prototype.dispose.call(this)},g.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var v=0,b=this._rowElements;v<b.length;v++){var S=b[v];S.style.width=this.dimensions.canvasWidth+"px",S.style.height=this.dimensions.actualCellHeight+"px",S.style.lineHeight=this.dimensions.actualCellHeight+"px",S.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.setColors=function(v){this._colors=v,this._injectCss()},g.prototype._injectCss=function(){var v=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var b=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";b+=this._terminalSelector+" span:not(."+u.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+u.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+u.ITALIC_CLASS+" { font-style: italic;}",b+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",b+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",b+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+":not(."+u.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",b+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(S,E){b+=v._terminalSelector+" .xterm-fg-"+E+" { color: "+S.css+"; }"+v._terminalSelector+" .xterm-bg-"+E+" { background-color: "+S.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+a.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},g.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},g.prototype._refreshRowElements=function(v,b){for(var S=this._rowElements.length;S<=b;S++){var E=document.createElement("div");this._rowContainer.appendChild(E),this._rowElements.push(E)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(v,b){this._refreshRowElements(v,b),this._updateDimensions()},g.prototype.onCharSizeChanged=function(){this._updateDimensions()},g.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},g.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},g.prototype.onSelectionChanged=function(v,b,S){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(v&&b){var E=v[1]-this._bufferService.buffer.ydisp,C=b[1]-this._bufferService.buffer.ydisp,_=Math.max(E,0),T=Math.min(C,this._bufferService.rows-1);if(!(_>=this._bufferService.rows||T<0)){var w=document.createDocumentFragment();if(S)w.appendChild(this._createSelectionElement(_,v[0],b[0],T-_+1));else{var O=E===_?v[0]:0,I=_===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(_,O,I));var R=T-_-1;if(w.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,R)),_!==T){var M=C===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(T,0,M))}}this._selectionContainer.appendChild(w)}}},g.prototype._createSelectionElement=function(v,b,S,E){E===void 0&&(E=1);var C=document.createElement("div");return C.style.height=E*this.dimensions.actualCellHeight+"px",C.style.top=v*this.dimensions.actualCellHeight+"px",C.style.left=b*this.dimensions.actualCellWidth+"px",C.style.width=this.dimensions.actualCellWidth*(S-b)+"px",C},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var v=0,b=this._rowElements;v<b.length;v++)b[v].innerHTML=""},g.prototype.renderRows=function(v,b){for(var S=this._bufferService.buffer.ybase+this._bufferService.buffer.y,E=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),C=this._optionsService.options.cursorBlink,_=v;_<=b;_++){var T=this._rowElements[_];T.innerHTML="";var w=_+this._bufferService.buffer.ydisp,O=this._bufferService.buffer.lines.get(w),I=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(O,w===S,I,E,C,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(g.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),g.prototype.registerCharacterJoiner=function(v){return-1},g.prototype.deregisterCharacterJoiner=function(v){return!1},g.prototype._onLinkHover=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!0)},g.prototype._onLinkLeave=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!1)},g.prototype._setCellUnderline=function(v,b,S,E,C,_){for(;v!==b||S!==E;){var T=this._rowElements[S];if(!T)return;var w=T.children[v];w&&(w.style.textDecoration=_?"underline":"none"),++v>=C&&(v=0,S++)}},g=f([h(6,t.ICharSizeService),h(7,o.IOptionsService),h(8,o.IBufferService)],g)}(i.Disposable);p.DomRenderer=c},function(y,p,x){"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 A=x(9),m=x(3),f=x(4),h=x(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 i(t,o,e){this._document=t,this._optionsService=o,this._colors=e,this._workCell=new f.CellData}return i.prototype.setColors=function(t){this._colors=t},i.prototype.createRow=function(t,o,e,l,r,s,c){for(var d=this._document.createDocumentFragment(),g=0,v=Math.min(t.length,c)-1;v>=0;v--)if(t.loadCell(v,this._workCell).getCode()!==m.NULL_CELL_CODE||o&&v===l){g=v+1;break}for(v=0;v<g;v++){t.loadCell(v,this._workCell);var b=this._workCell.getWidth();if(b!==0){var S=this._document.createElement("span");if(b>1&&(S.style.width=s*b+"px"),o&&v===l)switch(S.classList.add(p.CURSOR_CLASS),r&&S.classList.add(p.CURSOR_BLINK_CLASS),e){case"bar":S.classList.add(p.CURSOR_STYLE_BAR_CLASS);break;case"underline":S.classList.add(p.CURSOR_STYLE_UNDERLINE_CLASS);break;default:S.classList.add(p.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&S.classList.add(p.BOLD_CLASS),this._workCell.isItalic()&&S.classList.add(p.ITALIC_CLASS),this._workCell.isDim()&&S.classList.add(p.DIM_CLASS),this._workCell.isUnderline()&&S.classList.add(p.UNDERLINE_CLASS),this._workCell.isInvisible()?S.textContent=m.WHITESPACE_CELL_CHAR:S.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var E=this._workCell.getFgColor(),C=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var O=E;E=_,_=O;var I=C;C=T,T=I}switch(C){case 16777216:case 33554432:this._workCell.isBold()&&E<8&&this._optionsService.options.drawBoldTextInBrightColors&&(E+=8),this._applyMinimumContrast(S,this._colors.background,this._colors.ansi[E])||S.classList.add("xterm-fg-"+E);break;case 50331648:var R=h.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(S,this._colors.background,R)||this._addStyle(S,"color:#"+a(E.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(S,this._colors.background,this._colors.foreground)||w&&S.classList.add("xterm-fg-"+A.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:S.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(S,"background-color:#"+a(_.toString(16),"0",6));break;case 0:default:w&&S.classList.add("xterm-bg-"+A.INVERTED_DEFAULT_COLOR)}d.appendChild(S)}}return d},i.prototype._applyMinimumContrast=function(t,o,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=h.color.ensureContrastRatio(o,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(t,"color:"+l.css),!0)},i.prototype._addStyle=function(t,o){t.setAttribute("style",""+(t.getAttribute("style")||"")+o+";")},i}();function a(i,t,o){for(;i.length<o;)i=t+i;return i}p.DomRendererRowFactory=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.evaluateKeyboardEvent=void 0;var A=x(12),m={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};p.evaluateKeyboardEvent=function(f,h,u,a){var i={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"?i.key=h?A.C0.ESC+"OA":A.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?i.key=h?A.C0.ESC+"OD":A.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?i.key=h?A.C0.ESC+"OC":A.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(i.key=h?A.C0.ESC+"OB":A.C0.ESC+"[B");break;case 8:if(f.shiftKey){i.key=A.C0.BS;break}if(f.altKey){i.key=A.C0.ESC+A.C0.DEL;break}i.key=A.C0.DEL;break;case 9:if(f.shiftKey){i.key=A.C0.ESC+"[Z";break}i.key=A.C0.HT,i.cancel=!0;break;case 13:i.key=f.altKey?A.C0.ESC+A.C0.CR:A.C0.CR,i.cancel=!0;break;case 27:i.key=A.C0.ESC,f.altKey&&(i.key=A.C0.ESC+A.C0.ESC),i.cancel=!0;break;case 37:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"D",i.key===A.C0.ESC+"[1;3D"&&(i.key=A.C0.ESC+(u?"b":"[1;5D"))):i.key=h?A.C0.ESC+"OD":A.C0.ESC+"[D";break;case 39:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"C",i.key===A.C0.ESC+"[1;3C"&&(i.key=A.C0.ESC+(u?"f":"[1;5C"))):i.key=h?A.C0.ESC+"OC":A.C0.ESC+"[C";break;case 38:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"A",u||i.key!==A.C0.ESC+"[1;3A"||(i.key=A.C0.ESC+"[1;5A")):i.key=h?A.C0.ESC+"OA":A.C0.ESC+"[A";break;case 40:if(f.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"B",u||i.key!==A.C0.ESC+"[1;3B"||(i.key=A.C0.ESC+"[1;5B")):i.key=h?A.C0.ESC+"OB":A.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(i.key=A.C0.ESC+"[2~");break;case 46:i.key=t?A.C0.ESC+"[3;"+(t+1)+"~":A.C0.ESC+"[3~";break;case 36:i.key=t?A.C0.ESC+"[1;"+(t+1)+"H":h?A.C0.ESC+"OH":A.C0.ESC+"[H";break;case 35:i.key=t?A.C0.ESC+"[1;"+(t+1)+"F":h?A.C0.ESC+"OF":A.C0.ESC+"[F";break;case 33:f.shiftKey?i.type=2:i.key=A.C0.ESC+"[5~";break;case 34:f.shiftKey?i.type=3:i.key=A.C0.ESC+"[6~";break;case 112:i.key=t?A.C0.ESC+"[1;"+(t+1)+"P":A.C0.ESC+"OP";break;case 113:i.key=t?A.C0.ESC+"[1;"+(t+1)+"Q":A.C0.ESC+"OQ";break;case 114:i.key=t?A.C0.ESC+"[1;"+(t+1)+"R":A.C0.ESC+"OR";break;case 115:i.key=t?A.C0.ESC+"[1;"+(t+1)+"S":A.C0.ESC+"OS";break;case 116:i.key=t?A.C0.ESC+"[15;"+(t+1)+"~":A.C0.ESC+"[15~";break;case 117:i.key=t?A.C0.ESC+"[17;"+(t+1)+"~":A.C0.ESC+"[17~";break;case 118:i.key=t?A.C0.ESC+"[18;"+(t+1)+"~":A.C0.ESC+"[18~";break;case 119:i.key=t?A.C0.ESC+"[19;"+(t+1)+"~":A.C0.ESC+"[19~";break;case 120:i.key=t?A.C0.ESC+"[20;"+(t+1)+"~":A.C0.ESC+"[20~";break;case 121:i.key=t?A.C0.ESC+"[21;"+(t+1)+"~":A.C0.ESC+"[21~";break;case 122:i.key=t?A.C0.ESC+"[23;"+(t+1)+"~":A.C0.ESC+"[23~";break;case 123:i.key=t?A.C0.ESC+"[24;"+(t+1)+"~":A.C0.ESC+"[24~";break;default:if(!f.ctrlKey||f.shiftKey||f.altKey||f.metaKey)if(u&&!a||!f.altKey||f.metaKey)u&&!f.altKey&&!f.ctrlKey&&f.metaKey?f.keyCode===65&&(i.type=1):f.key&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&f.keyCode>=48&&f.key.length===1?i.key=f.key:f.key&&f.ctrlKey&&f.key==="_"&&(i.key=A.C0.US);else{var o=m[f.keyCode],e=o&&o[f.shiftKey?1:0];if(e)i.key=A.C0.ESC+e;else if(f.keyCode>=65&&f.keyCode<=90){var l=f.ctrlKey?f.keyCode-64:f.keyCode+32;i.key=A.C0.ESC+String.fromCharCode(l)}}else f.keyCode>=65&&f.keyCode<=90?i.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?i.key=A.C0.NUL:f.keyCode>=51&&f.keyCode<=55?i.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?i.key=A.C0.DEL:f.keyCode===219?i.key=A.C0.ESC:f.keyCode===220?i.key=A.C0.FS:f.keyCode===221&&(i.key=A.C0.GS)}return i}},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(c,d){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var b in v)v.hasOwnProperty(b)&&(g[b]=v[b])})(c,d)},function(s,c){function d(){this.constructor=s}A(s,c),s.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}),f=this&&this.__decorate||function(s,c,d,g){var v,b=arguments.length,S=b<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(s,c,d,g);else for(var E=s.length-1;E>=0;E--)(v=s[E])&&(S=(b<3?v(S):b>3?v(c,d,S):v(c,d))||S);return b>3&&S&&Object.defineProperty(c,d,S),S},h=this&&this.__param||function(s,c){return function(d,g){c(d,g,s)}};Object.defineProperty(p,"__esModule",{value:!0}),p.RenderService=void 0;var u=x(31),a=x(0),i=x(2),t=x(32),o=x(7),e=x(1),l=x(5),r=function(s){function c(d,g,v,b,S,E){var C=s.call(this)||this;if(C._renderer=d,C._rowCount=g,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new a.EventEmitter,C._onRender=new a.EventEmitter,C._onRefreshRequest=new a.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new u.RenderDebouncer(function(T,w){return C._renderRows(T,w)}),C.register(C._renderDebouncer),C._screenDprMonitor=new t.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(E.onResize(function(T){return C._fullRefresh()})),C.register(b.onOptionChange(function(){return C._renderer.onOptionsChanged()})),C.register(S.onCharSizeChange(function(){return C.onCharSizeChanged()})),C._renderer.onRequestRedraw(function(T){return C.refreshRows(T.start,T.end,!0)}),C.register(o.addDisposableDomListener(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var _=new IntersectionObserver(function(T){return C._onIntersectionChange(T[T.length-1])},{threshold:0});_.observe(v),C.register({dispose:function(){return _.disconnect()}})}return C}return m(c,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(d){this._isPaused=d.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},c.prototype.refreshRows=function(d,g,v){v===void 0&&(v=!1),this._isPaused?this._needsFullRefresh=!0:(v||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(d,g,this._rowCount))},c.prototype._renderRows=function(d,g){this._renderer.renderRows(d,g),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:d,end:g}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(d,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(d){var g=this;this._renderer.dispose(),this._renderer=d,this._renderer.onRequestRedraw(function(v){return g.refreshRows(v.start,v.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(d){this._renderer.setColors(d),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(d,g){this._renderer.onResize(d,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(d,g,v){this._selectionState.start=d,this._selectionState.end=g,this._selectionState.columnSelectMode=v,this._renderer.onSelectionChanged(d,g,v)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(d){return this._renderer.registerCharacterJoiner(d)},c.prototype.deregisterCharacterJoiner=function(d){return this._renderer.deregisterCharacterJoiner(d)},c=f([h(3,e.IOptionsService),h(4,l.ICharSizeService),h(5,e.IBufferService)],c)}(i.Disposable);p.RenderService=r},function(y,p,x){"use strict";var A=this&&this.__decorate||function(i,t,o,e){var l,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,t,o,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(s=(r<3?l(s):r>3?l(t,o,s):l(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},m=this&&this.__param||function(i,t){return function(o,e){t(o,e,i)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CharSizeService=void 0;var f=x(1),h=x(0),u=function(){function i(t,o,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new h.EventEmitter,this._measureStrategy=new a(t,o,this._optionsService)}return Object.defineProperty(i.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),i.prototype.measure=function(){var t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())},i=A([m(2,f.IOptionsService)],i)}();p.CharSizeService=u;var a=function(){function i(t,o,e){this._document=t,this._parentElement=o,this._optionsService=e,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return i.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._measureElement.getBoundingClientRect();return t.width!==0&&t.height!==0&&(this._result.width=t.width,this._result.height=Math.ceil(t.height)),this._result},i}()},function(y,p,x){"use strict";var A=this&&this.__decorate||function(a,i,t,o){var e,l=arguments.length,r=l<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,t):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,i,t,o);else for(var s=a.length-1;s>=0;s--)(e=a[s])&&(r=(l<3?e(r):l>3?e(i,t,r):e(i,t))||r);return l>3&&r&&Object.defineProperty(i,t,r),r},m=this&&this.__param||function(a,i){return function(t,o){i(t,o,a)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseService=void 0;var f=x(5),h=x(30),u=function(){function a(i,t){this._renderService=i,this._charSizeService=t}return a.prototype.getCoords=function(i,t,o,e,l){return h.getCoords(i,t,o,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},a.prototype.getRawByteCoords=function(i,t,o,e){var l=this.getCoords(i,t,o,e);return h.getRawByteCoords(l)},a=A([m(0,f.IRenderService),m(1,f.ICharSizeService)],a)}();p.MouseService=u},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(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,d=arguments.length,g=d<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 v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=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=x(1),a=x(0),i=x(2),t=x(7),o=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 a.EventEmitter),s._onHideLinkUnderline=s.register(new a.EventEmitter),s.register(i.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 d=s._linkProviders.indexOf(r);d!==-1&&s._linkProviders.splice(d,1)}}},l.prototype.attachToDom=function(r,s,c){var d=this;this._element=r,this._mouseService=s,this._renderService=c,this.register(t.addDisposableDomListener(this._element,"mouseleave",function(){d._isMouseOut=!0,d._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(),d=0;d<c.length;d++){var g=c[d];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 d=!1;this._linkProviders.forEach(function(g,v){var b;s?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(v))&&(d=c._checkLinkProviderResult(v,r,d)):g.provideLinks(r.y,function(S){var E,C;if(!c._isMouseOut){var _=S==null?void 0:S.map(function(T){return{link:T}});(E=c._activeProviderReplies)===null||E===void 0||E.set(v,_),d=c._checkLinkProviderResult(v,r,d),((C=c._activeProviderReplies)===null||C===void 0?void 0:C.size)===c._linkProviders.length&&c._removeIntersectingLinks(r.y,c._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(r,s){for(var c=new Set,d=0;d<s.size;d++){var g=s.get(d);if(g)for(var v=0;v<g.length;v++)for(var b=g[v],S=b.link.range.start.y<r?0:b.link.range.start.x,E=b.link.range.end.y>r?this._bufferService.cols:b.link.range.end.x,C=S;C<=E;C++){if(c.has(C)){g.splice(v--,1);break}c.add(C)}}},l.prototype._checkLinkProviderResult=function(r,s,c){var d,g=this;if(!this._activeProviderReplies)return c;for(var v=this._activeProviderReplies.get(r),b=!1,S=0;S<r;S++)this._activeProviderReplies.has(S)&&!this._activeProviderReplies.get(S)||(b=!0);if(!b&&v){var E=v.find(function(_){return g._linkAtPosition(_.link,s)});E&&(c=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(S=0;S<this._activeProviderReplies.size;S++){var C=(d=this._activeProviderReplies.get(S))===null||d===void 0?void 0:d.find(function(_){return g._linkAtPosition(_.link,s)});if(C){c=!0,this._handleNewLink(C);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,i.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,v;return(v=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.pointerCursor},set:function(g){var v,b;((v=s._currentLink)===null||v===void 0?void 0:v.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,v;return(v=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.underline},set:function(g){var v,b,S;((v=s._currentLink)===null||v===void 0?void 0:v.state)&&((S=(b=s._currentLink)===null||b===void 0?void 0:b.state)===null||S===void 0?void 0:S.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(d){var g=d.start===0?0:d.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(g,d.end+1+s._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(r,s,c){var d;((d=this._currentLink)===null||d===void 0?void 0:d.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,d=this._bufferService.buffer.ydisp,g=this._createLinkUnderlineEvent(c.start.x-1,c.start.y-d-1,c.end.x,c.end.y-d-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},l.prototype._linkLeave=function(r,s,c){var d;((d=this._currentLink)===null||d===void 0?void 0:d.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,d=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||d&&r.range.end.x>=s.x||g&&r.range.start.x<=s.x||d&&g)&&r.range.start.y<=s.y&&r.range.end.y>=s.y},l.prototype._positionFromMouseEvent=function(r,s,c){var d=c.getCoords(r,s,this._bufferService.cols,this._bufferService.rows);if(d)return{x:d[0],y:d[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(r,s,c,d,g){return{x1:r,y1:s,x2:c,y2:d,cols:this._bufferService.cols,fg:g}},l=f([h(0,u.IBufferService)],l)}(i.Disposable);p.Linkifier2=o},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CoreBrowserService=void 0;var A=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=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(E,C){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,T){_.__proto__=T}||function(_,T){for(var w in T)T.hasOwnProperty(w)&&(_[w]=T[w])})(E,C)},function(S,E){function C(){this.constructor=S}A(S,E),S.prototype=E===null?Object.create(E):(C.prototype=E.prototype,new C)});Object.defineProperty(p,"__esModule",{value:!0}),p.CoreTerminal=void 0;var f=x(2),h=x(1),u=x(66),a=x(67),i=x(68),t=x(74),o=x(75),e=x(0),l=x(76),r=x(77),s=x(78),c=x(80),d=x(81),g=x(19),v=x(82),b=function(S){function E(C){var _=S.call(this)||this;return _._onBinary=new e.EventEmitter,_._onData=new e.EventEmitter,_._onLineFeed=new e.EventEmitter,_._onResize=new e.EventEmitter,_._onScroll=new e.EventEmitter,_._instantiationService=new u.InstantiationService,_.optionsService=new t.OptionsService(C),_._instantiationService.setService(h.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(i.BufferService)),_._instantiationService.setService(h.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(a.LogService),_._instantiationService.setService(h.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(o.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(h.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(l.CoreMouseService),_._instantiationService.setService(h.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(r.DirtyRowService),_._instantiationService.setService(h.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(s.UnicodeService),_._instantiationService.setService(h.IUnicodeService,_.unicodeService),_._charsetService=_._instantiationService.createInstance(c.CharsetService),_._instantiationService.setService(h.ICharsetService,_._charsetService),_._inputHandler=new g.InputHandler(_._bufferService,_._charsetService,_._coreService,_._dirtyRowService,_._logService,_.optionsService,_._coreMouseService,_.unicodeService),_.register(e.forwardEvent(_._inputHandler.onLineFeed,_._onLineFeed)),_.register(_._inputHandler),_.register(e.forwardEvent(_._bufferService.onResize,_._onResize)),_.register(e.forwardEvent(_._coreService.onData,_._onData)),_.register(e.forwardEvent(_._coreService.onBinary,_._onBinary)),_.register(_.optionsService.onOptionChange(function(T){return _._updateOptions(T)})),_._writeBuffer=new v.WriteBuffer(function(T){return _._inputHandler.parse(T)}),_}return m(E,S),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){var C;this._isDisposed||(S.prototype.dispose.call(this),(C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)},E.prototype.write=function(C,_){this._writeBuffer.write(C,_)},E.prototype.writeSync=function(C){this._writeBuffer.writeSync(C)},E.prototype.resize=function(C,_){isNaN(C)||isNaN(_)||(C=Math.max(C,i.MINIMUM_COLS),_=Math.max(_,i.MINIMUM_ROWS),this._bufferService.resize(C,_))},E.prototype.scroll=function(C,_){_===void 0&&(_=!1);var T,w=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===C.fg&&T.getBg(0)===C.bg||(T=w.getBlankLine(C,_),this._cachedBlankLine=T),T.isWrapped=_;var O=w.ybase+w.scrollTop,I=w.ybase+w.scrollBottom;if(w.scrollTop===0){var R=w.lines.isFull;I===w.lines.length-1?R?w.lines.recycle().copyFrom(T):w.lines.push(T.clone()):w.lines.splice(I+1,0,T.clone()),R?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var M=I-O+1;w.lines.shiftElements(O+1,M-1,-1),w.lines.set(I,T.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.ydisp)},E.prototype.scrollLines=function(C,_){var T=this._bufferService.buffer;if(C<0){if(T.ydisp===0)return;this._bufferService.isUserScrolling=!0}else C+T.ydisp>=T.ybase&&(this._bufferService.isUserScrolling=!1);var w=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+C,T.ybase),0),w!==T.ydisp&&(_||this._onScroll.fire(T.ydisp))},E.prototype.scrollPages=function(C){this.scrollLines(C*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},E.prototype.scrollToLine=function(C){var _=C-this._bufferService.buffer.ydisp;_!==0&&this.scrollLines(_)},E.prototype.addEscHandler=function(C,_){return this._inputHandler.addEscHandler(C,_)},E.prototype.addDcsHandler=function(C,_){return this._inputHandler.addDcsHandler(C,_)},E.prototype.addCsiHandler=function(C,_){return this._inputHandler.addCsiHandler(C,_)},E.prototype.addOscHandler=function(C,_){return this._inputHandler.addOscHandler(C,_)},E.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},E.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},E.prototype._updateOptions=function(C){var _;switch(C){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((_=this._windowsMode)===null||_===void 0||_.dispose(),this._windowsMode=void 0)}},E.prototype._enableWindowsMode=function(){var C=this;if(!this._windowsMode){var _=[];_.push(this.onLineFeed(d.updateWindowsModeWrappedState.bind(null,this._bufferService))),_.push(this.addCsiHandler({final:"H"},function(){return d.updateWindowsModeWrappedState(C._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,O=_;w<O.length;w++)O[w].dispose()}}}},E}(f.Disposable);p.CoreTerminal=b},function(y,p,x){"use strict";var A=this&&this.__spreadArrays||function(){for(var a=0,i=0,t=arguments.length;i<t;i++)a+=arguments[i].length;var o=Array(a),e=0;for(i=0;i<t;i++)for(var l=arguments[i],r=0,s=l.length;r<s;r++,e++)o[e]=l[r];return o};Object.defineProperty(p,"__esModule",{value:!0}),p.InstantiationService=p.ServiceCollection=void 0;var m=x(1),f=x(14),h=function(){function a(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];this._entries=new Map;for(var o=0,e=i;o<e.length;o++){var l=e[o],r=l[0],s=l[1];this.set(r,s)}}return a.prototype.set=function(i,t){var o=this._entries.get(i);return this._entries.set(i,t),o},a.prototype.forEach=function(i){this._entries.forEach(function(t,o){return i(o,t)})},a.prototype.has=function(i){return this._entries.has(i)},a.prototype.get=function(i){return this._entries.get(i)},a}();p.ServiceCollection=h;var u=function(){function a(){this._services=new h,this._services.set(m.IInstantiationService,this)}return a.prototype.setService=function(i,t){this._services.set(i,t)},a.prototype.getService=function(i){return this._services.get(i)},a.prototype.createInstance=function(i){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var e=f.getServiceDependencies(i).sort(function(v,b){return v.index-b.index}),l=[],r=0,s=e;r<s.length;r++){var c=s[r],d=this._services.get(c.id);if(!d)throw new Error("[createInstance] "+i.name+" depends on UNKNOWN service "+c.id+".");l.push(d)}var g=e.length>0?e[0].index:t.length;if(t.length!==g)throw new Error("[createInstance] First service dependency of "+i.name+" at position "+(g+1)+" conflicts with "+t.length+" static arguments");return new(i.bind.apply(i,A([void 0],A(t,l))))},a}();p.InstantiationService=u},function(y,p,x){"use strict";var A=this&&this.__decorate||function(t,o,e,l){var r,s=arguments.length,c=s<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,o,e,l);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(c=(s<3?r(c):s>3?r(o,e,c):r(o,e))||c);return s>3&&c&&Object.defineProperty(o,e,c),c},m=this&&this.__param||function(t,o){return function(e,l){o(e,l,t)}},f=this&&this.__spreadArrays||function(){for(var t=0,o=0,e=arguments.length;o<e;o++)t+=arguments[o].length;var l=Array(t),r=0;for(o=0;o<e;o++)for(var s=arguments[o],c=0,d=s.length;c<d;c++,r++)l[r]=s[c];return l};Object.defineProperty(p,"__esModule",{value:!0}),p.LogService=p.LogLevel=void 0;var h,u=x(1);!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.OFF=4]="OFF"}(h=p.LogLevel||(p.LogLevel={}));var a={debug:h.DEBUG,info:h.INFO,warn:h.WARN,error:h.ERROR,off:h.OFF},i=function(){function t(o){var e=this;this._optionsService=o,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=a[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(o){for(var e=0;e<o.length;e++)typeof o[e]=="function"&&(o[e]=o[e]())},t.prototype._log=function(o,e,l){this._evalLazyOptionalParams(l),o.call.apply(o,f([console,"xterm.js: "+e],l))},t.prototype.debug=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.DEBUG&&this._log(console.log,o,e)},t.prototype.info=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.INFO&&this._log(console.info,o,e)},t.prototype.warn=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.WARN&&this._log(console.warn,o,e)},t.prototype.error=function(o){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=h.ERROR&&this._log(console.error,o,e)},t=A([m(0,u.IOptionsService)],t)}();p.LogService=i},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(l,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var d in c)c.hasOwnProperty(d)&&(s[d]=c[d])})(l,r)},function(e,l){function r(){this.constructor=e}A(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,d=arguments.length,g=d<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 v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>3&&g&&Object.defineProperty(l,r,g),g},h=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=x(1),a=x(69),i=x(0),t=x(2);p.MINIMUM_COLS=2,p.MINIMUM_ROWS=1;var o=function(e){function l(r){var s=e.call(this)||this;return s._optionsService=r,s.isUserScrolling=!1,s._onResize=new i.EventEmitter,s.cols=Math.max(r.options.cols,p.MINIMUM_COLS),s.rows=Math.max(r.options.rows,p.MINIMUM_ROWS),s.buffers=new a.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 a.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=f([h(0,u.IOptionsService)],l)}(t.Disposable);p.BufferService=o},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(i,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var l in e)e.hasOwnProperty(l)&&(o[l]=e[l])})(i,t)},function(a,i){function t(){this.constructor=a}A(a,i),a.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(p,"__esModule",{value:!0}),p.BufferSet=void 0;var f=x(70),h=x(0),u=function(a){function i(t,o){var e=a.call(this)||this;return e._onBufferActivate=e.register(new h.EventEmitter),e._normal=new f.Buffer(!0,t,o),e._normal.fillViewportRows(),e._alt=new f.Buffer(!1,t,o),e._activeBuffer=e._normal,e.setupTabStops(),e}return m(i,a),Object.defineProperty(i.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),i.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},i.prototype.activateAltBuffer=function(t){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(t),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},i.prototype.resize=function(t,o){this._normal.resize(t,o),this._alt.resize(t,o)},i.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},i}(x(2).Disposable);p.BufferSet=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferStringIterator=p.Buffer=p.MAX_BUFFER_SIZE=void 0;var A=x(71),m=x(16),f=x(4),h=x(3),u=x(72),a=x(73),i=x(20),t=x(6);p.MAX_BUFFER_SIZE=4294967295;var o=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=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=f.CellData.fromCharData([0,h.NULL_CELL_CHAR,h.NULL_CELL_WIDTH,h.NULL_CELL_CODE]),this._whitespaceCell=f.CellData.fromCharData([0,h.WHITESPACE_CELL_CHAR,h.WHITESPACE_CELL_WIDTH,h.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(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 A.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),d=this._getCorrectBufferLength(s);if(d>this.lines.maxLength&&(this.lines.maxLength=d),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 v=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+v+1?(this.ybase--,v++,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(d<this.lines.maxLength){var S=this.lines.length-d;S>0&&(this.lines.trimStart(S),this.ybase=Math.max(this.ybase-S,0),this.ydisp=Math.max(this.ydisp-S,0),this.savedY=Math.max(this.savedY-S,0)),this.lines.maxLength=d}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,s-1),v&&(this.y+=v),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 d=u.reflowLargerCreateNewLayout(this.lines,c);u.reflowLargerApplyNewLayout(this.lines,d.layout),this._reflowLargerAdjustViewport(r,s,d.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(r,s,c){for(var d=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,d))):(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),d=[],g=0,v=this.lines.length-1;v>=0;v--){var b=this.lines.get(v);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=r)){for(var S=[b];b.isWrapped&&v>0;)b=this.lines.get(--v),S.unshift(b);var E=this.ybase+this.y;if(!(E>=v&&E<v+S.length)){var C=S[S.length-1].getTrimmedLength(),_=u.reflowSmallerGetNewLineLengths(S,this._cols,r),T=_.length-S.length,w=void 0;w=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);for(var O=[],I=0;I<T;I++){var R=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);O.push(R)}O.length>0&&(d.push({start:v+S.length+g,newLines:O}),g+=O.length),S.push.apply(S,O);var M=_.length-1,F=_[M];F===0&&(F=_[--M]);for(var P=S.length-T-1,X=C;P>=0;){var B=Math.min(X,F);if(S[M].copyCellsFrom(S[P],X-B,F-B,B,!0),(F-=B)===0&&(F=_[--M]),(X-=B)===0){P--;var j=Math.max(P,0);X=u.getWrappedLineTrimmedLength(S,j,this._cols)}}for(I=0;I<S.length;I++)_[I]<r&&S[I].setCell(_[I],c);for(var W=T-w;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+T,this.ybase+s-1)}}}if(d.length>0){var z=[],V=[];for(I=0;I<this.lines.length;I++)V.push(this.lines.get(I));var Q=this.lines.length,G=Q-1,re=0,ee=d[re];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var ue=0;for(I=Math.min(this.lines.maxLength-1,Q+g-1);I>=0;I--)if(ee&&ee.start>G+ue){for(var $=ee.newLines.length-1;$>=0;$--)this.lines.set(I--,ee.newLines[$]);I++,z.push({index:G+1,amount:ee.newLines.length}),ue+=ee.newLines.length,ee=d[++re]}else this.lines.set(I,V[G--]);var be=0;for(I=z.length-1;I>=0;I--)z[I].index+=be,this.lines.onInsertEmitter.fire(z[I]),be+=z[I].amount;var _e=Math.max(0,Q+g-this.lines.maxLength);_e>0&&this.lines.onTrimEmitter.fire(_e)}},l.prototype.stringIndexToBufferIndex=function(r,s,c){for(c===void 0&&(c=!1);s;){var d=this.lines.get(r);if(!d)return[-1,-1];for(var g=c?d.getTrimmedLength():d.length,v=0;v<g;++v)if(d.get(v)[h.CHAR_DATA_WIDTH_INDEX]&&(s-=d.get(v)[h.CHAR_DATA_CHAR_INDEX].length||1),s<0)return[r,v];r++}return[r,0]},l.prototype.translateBufferLineToString=function(r,s,c,d){c===void 0&&(c=0);var g=this.lines.get(r);return g?g.translateToString(s,c,d):""},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 a.Marker(r);return this.markers.push(c),c.register(this.lines.onTrim(function(d){c.line-=d,c.line<0&&c.dispose()})),c.register(this.lines.onInsert(function(d){c.line>=d.index&&(c.line+=d.amount)})),c.register(this.lines.onDelete(function(d){c.line>=d.index&&c.line<d.index+d.amount&&c.dispose(),c.line>d.index&&(c.line-=d.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,d,g){return new e(this,r,s,c,d,g)},l}();p.Buffer=o;var e=function(){function l(r,s,c,d,g,v){c===void 0&&(c=0),d===void 0&&(d=r.lines.length),g===void 0&&(g=0),v===void 0&&(v=0),this._buffer=r,this._trimRight=s,this._startIndex=c,this._endIndex=d,this._startOverscan=g,this._endOverscan=v,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return l.prototype.hasNext=function(){return this._current<this._endIndex},l.prototype.next=function(){var 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,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CircularList=void 0;var A=x(0),m=function(){function f(h){this._maxLength=h,this.onDeleteEmitter=new A.EventEmitter,this.onInsertEmitter=new A.EventEmitter,this.onTrimEmitter=new A.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(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 a=new Array(u),i=0;i<Math.min(u,this.length);i++)a[i]=this._array[this._getCyclicIndex(i)];this._array=a,this._maxLength=u,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._length},set:function(u){if(u>this._length)for(var a=this._length;a<u;a++)this._array[a]=void 0;this._length=u},enumerable:!1,configurable:!0}),f.prototype.get=function(h){return this._array[this._getCyclicIndex(h)]},f.prototype.set=function(h,u){this._array[this._getCyclicIndex(h)]=u},f.prototype.push=function(h){this._array[this._getCyclicIndex(this._length)]=h,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(h,u){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];if(u){for(var t=h;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>=h;t--)this._array[this._getCyclicIndex(t+a.length)]=this._array[this._getCyclicIndex(t)];for(t=0;t<a.length;t++)this._array[this._getCyclicIndex(h+t)]=a[t];if(this._length+a.length>this._maxLength){var o=this._length+a.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=a.length},f.prototype.trimStart=function(h){h>this._length&&(h=this._length),this._startIndex+=h,this._length-=h,this.onTrimEmitter.fire(h)},f.prototype.shiftElements=function(h,u,a){if(!(u<=0)){if(h<0||h>=this._length)throw new Error("start argument out of range");if(h+a<0)throw new Error("Cannot shift elements in list beyond index 0");if(a>0){for(var i=u-1;i>=0;i--)this.set(h+i+a,this.get(h+i));var t=h+u+a-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<u;i++)this.set(h+i+a,this.get(h+i))}},f.prototype._getCyclicIndex=function(h){return(this._startIndex+h)%this._maxLength},f}();p.CircularList=m},function(y,p,x){"use strict";function A(m,f,h){if(f===m.length-1)return m[f].getTrimmedLength();var u=!m[f].hasContent(h-1)&&m[f].getWidth(h-1)===1,a=m[f+1].getWidth(0)===2;return u&&a?h-1:h}Object.defineProperty(p,"__esModule",{value:!0}),p.getWrappedLineTrimmedLength=p.reflowSmallerGetNewLineLengths=p.reflowLargerApplyNewLayout=p.reflowLargerCreateNewLayout=p.reflowLargerGetLinesToRemove=void 0,p.reflowLargerGetLinesToRemove=function(m,f,h,u,a){for(var i=[],t=0;t<m.length-1;t++){var o=t,e=m.get(++o);if(e.isWrapped){for(var l=[m.get(t)];o<m.length&&e.isWrapped;)l.push(e),e=m.get(++o);if(u>=t&&u<o)t+=l.length-1;else{for(var r=0,s=A(l,r,f),c=1,d=0;c<l.length;){var g=A(l,c,f),v=g-d,b=h-s,S=Math.min(v,b);l[r].copyCellsFrom(l[c],d,s,S,!1),(s+=S)===h&&(r++,s=0),(d+=S)===g&&(c++,d=0),s===0&&r!==0&&l[r-1].getWidth(h-1)===2&&(l[r].copyCellsFrom(l[r-1],h-1,s++,1,!1),l[r-1].setCell(h-1,a))}l[r].replaceCells(s,h,a);for(var E=0,C=l.length-1;C>0&&(C>r||l[C].getTrimmedLength()===0);C--)E++;E>0&&(i.push(t+l.length-E),i.push(E)),t+=l.length-1}}}return i},p.reflowLargerCreateNewLayout=function(m,f){for(var h=[],u=0,a=f[u],i=0,t=0;t<m.length;t++)if(a===t){var o=f[++u];m.onDeleteEmitter.fire({index:t-i,amount:o}),t+=o-1,i+=o,a=f[++u]}else h.push(t);return{layout:h,countRemoved:i}},p.reflowLargerApplyNewLayout=function(m,f){for(var h=[],u=0;u<f.length;u++)h.push(m.get(f[u]));for(u=0;u<h.length;u++)m.set(u,h[u]);m.length=f.length},p.reflowSmallerGetNewLineLengths=function(m,f,h){for(var u=[],a=m.map(function(s,c){return A(m,c,f)}).reduce(function(s,c){return s+c}),i=0,t=0,o=0;o<a;){if(a-o<h){u.push(a-o);break}i+=h;var e=A(m,t,f);i>e&&(i-=e,t++);var l=m[t].getWidth(i-1)===2;l&&i--;var r=l?h-1:h;u.push(r),o+=r}return u},p.getWrappedLineTrimmedLength=A},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(a,i){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(a,i)},function(u,a){function i(){this.constructor=u}A(u,a),u.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(p,"__esModule",{value:!0}),p.Marker=void 0;var f=x(0),h=function(u){function a(i){var t=u.call(this)||this;return t.line=i,t._id=a._nextId++,t.isDisposed=!1,t._onDispose=new f.EventEmitter,t}return m(a,u),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),a.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},a._nextId=1,a}(x(2).Disposable);p.Marker=h},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OptionsService=p.DEFAULT_OPTIONS=p.DEFAULT_BELL_SOUND=void 0;var A=x(0),m=x(11),f=x(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 h=["cols","rows"],u=function(){function a(i){this._onOptionChange=new A.EventEmitter,this.options=f.clone(p.DEFAULT_OPTIONS);for(var t=0,o=Object.keys(i);t<o.length;t++){var e=o[t];if(e in this.options){var l=i[e];this.options[e]=l}}}return Object.defineProperty(a.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),a.prototype.setOption=function(i,t){if(!(i in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');if(h.indexOf(i)!==-1)throw new Error('Option "'+i+'" can only be set in the constructor');this.options[i]!==t&&(t=this._sanitizeAndValidateOption(i,t),this.options[i]!==t&&(this.options[i]=t,this._onOptionChange.fire(i)))},a.prototype._sanitizeAndValidateOption=function(i,t){switch(i){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=p.DEFAULT_OPTIONS[i]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(i+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(i+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(i+" cannot be less than or equal to 0, value: "+t)}return t},a.prototype.getOption=function(i){if(!(i in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');return this.options[i]},a}();p.OptionsService=u},function(y,p,x){"use strict";var A,m=this&&this.__extends||(A=function(s,c){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var v in g)g.hasOwnProperty(v)&&(d[v]=g[v])})(s,c)},function(r,s){function c(){this.constructor=r}A(r,s),r.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}),f=this&&this.__decorate||function(r,s,c,d){var g,v=arguments.length,b=v<3?s:d===null?d=Object.getOwnPropertyDescriptor(s,c):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(r,s,c,d);else for(var S=r.length-1;S>=0;S--)(g=r[S])&&(b=(v<3?g(b):v>3?g(s,c,b):g(s,c))||b);return v>3&&b&&Object.defineProperty(s,c,b),b},h=this&&this.__param||function(r,s){return function(c,d){s(c,d,r)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CoreService=void 0;var u=x(1),a=x(0),i=x(33),t=x(2),o=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,d,g,v){var b=r.call(this)||this;return b._bufferService=d,b._logService=g,b._optionsService=v,b.isCursorInitialized=!1,b.isCursorHidden=!1,b._onData=b.register(new a.EventEmitter),b._onUserInput=b.register(new a.EventEmitter),b._onBinary=b.register(new a.EventEmitter),b._scrollToBottom=c,b.register({dispose:function(){return b._scrollToBottom=void 0}}),b.modes=i.clone(o),b.decPrivateModes=i.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=i.clone(o),this.decPrivateModes=i.clone(e)},s.prototype.triggerDataEvent=function(c,d){if(d===void 0&&(d=!1),!this._optionsService.options.disableStdin){var g=this._bufferService.buffer;g.ybase!==g.ydisp&&this._scrollToBottom(),d&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(v){return v.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(d){return d.charCodeAt(0)})}),this._onBinary.fire(c))},s=f([h(1,u.IBufferService),h(2,u.ILogService),h(3,u.IOptionsService)],s)}(t.Disposable);p.CoreService=l},function(y,p,x){"use strict";var A=this&&this.__decorate||function(e,l,r,s){var c,d=arguments.length,g=d<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 v=e.length-1;v>=0;v--)(c=e[v])&&(g=(d<3?c(g):d>3?c(l,r,g):c(l,r))||g);return d>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=x(1),h=x(0),u={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function a(e,l){var 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 i=String.fromCharCode,t={DEFAULT:function(l){var r=[a(l,!1)+32,l.col+32,l.row+32];return r[0]>255||r[1]>255||r[2]>255?"":""+i(r[0])+i(r[1])+i(r[2])},SGR:function(l){var r=l.action===0&&l.button!==4?"m":"M";return"[<"+a(l,!0)+";"+l.col+";"+l.row+r}},o=function(){function e(l,r){this._bufferService=l,this._coreService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new h.EventEmitter,this._lastEvent=null;for(var s=0,c=Object.keys(u);s<c.length;s++){var d=c[s];this.addProtocol(d,u[d])}for(var g=0,v=Object.keys(t);g<v.length;g++){var b=v[g];this.addEncoding(b,t[b])}this.reset()}return e.prototype.addProtocol=function(l,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=A([m(0,f.IBufferService),m(1,f.ICoreService)],e)}();p.CoreMouseService=o},function(y,p,x){"use strict";var A=this&&this.__decorate||function(u,a,i,t){var o,e=arguments.length,l=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,a,i,t);else for(var r=u.length-1;r>=0;r--)(o=u[r])&&(l=(e<3?o(l):e>3?o(a,i,l):o(a,i))||l);return e>3&&l&&Object.defineProperty(a,i,l),l},m=this&&this.__param||function(u,a){return function(i,t){a(i,t,u)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DirtyRowService=void 0;var f=x(1),h=function(){function u(a){this._bufferService=a,this.clearRange()}return Object.defineProperty(u.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),u.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},u.prototype.markDirty=function(a){a<this._start?this._start=a:a>this._end&&(this._end=a)},u.prototype.markRangeDirty=function(a,i){if(a>i){var t=a;a=i,i=t}a<this._start&&(this._start=a),i>this._end&&(this._end=i)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=A([m(0,f.IBufferService)],u)}();p.DirtyRowService=h},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeService=void 0;var A=x(0),m=x(79),f=function(){function h(){this._providers=Object.create(null),this._active="",this._onChange=new A.EventEmitter;var u=new m.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}return Object.defineProperty(h.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"activeVersion",{get:function(){return this._active},set:function(a){if(!this._providers[a])throw new Error('unknown Unicode version "'+a+'"');this._active=a,this._activeProvider=this._providers[a],this._onChange.fire(a)},enumerable:!1,configurable:!0}),h.prototype.register=function(u){this._providers[u.version]=u},h.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},h.prototype.getStringCellWidth=function(u){for(var a=0,i=u.length,t=0;t<i;++t){var o=u.charCodeAt(t);if(55296<=o&&o<=56319){if(++t>=i)return a+this.wcwidth(o);var e=u.charCodeAt(t);56320<=e&&e<=57343?o=1024*(o-55296)+e-56320+65536:a+=this.wcwidth(e)}a+=this.wcwidth(o)}return a},h}();p.UnicodeService=f},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeV6=void 0;var A,m=x(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]],h=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],u=function(){function a(){if(this.version="6",!A){A=new Uint8Array(65536),m.fill(A,1),A[0]=0,m.fill(A,0,1,32),m.fill(A,0,127,160),m.fill(A,2,4352,4448),A[9001]=2,A[9002]=2,m.fill(A,2,11904,42192),A[12351]=1,m.fill(A,2,44032,55204),m.fill(A,2,63744,64256),m.fill(A,2,65040,65050),m.fill(A,2,65072,65136),m.fill(A,2,65280,65377),m.fill(A,2,65504,65511);for(var i=0;i<f.length;++i)m.fill(A,0,f[i][0],f[i][1]+1)}}return a.prototype.wcwidth=function(i){return i<32?0:i<127?1:i<65536?A[i]:function(t,o){var e,l=0,r=o.length-1;if(t<o[0][0]||t>o[r][1])return!1;for(;r>=l;)if(t>o[e=l+r>>1][1])l=e+1;else{if(!(t<o[e][0]))return!0;r=e-1}return!1}(i,h)?0:i>=131072&&i<=196605||i>=196608&&i<=262141?2:1},a}();p.UnicodeV6=u},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CharsetService=void 0;var A=function(){function m(){this.glevel=0,this._charsets=[]}return m.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},m.prototype.setgLevel=function(f){this.glevel=f,this.charset=this._charsets[f]},m.prototype.setgCharset=function(f,h){this._charsets[f]=h,this.glevel===f&&(this.charset=h)},m}();p.CharsetService=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.updateWindowsModeWrappedState=void 0;var A=x(3);p.updateWindowsModeWrappedState=function(m){var f=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),h=f==null?void 0:f.get(m.cols-1),u=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);u&&h&&(u.isWrapped=h[A.CHAR_DATA_CODE_INDEX]!==A.NULL_CELL_CODE&&h[A.CHAR_DATA_CODE_INDEX]!==A.WHITESPACE_CELL_CODE)}},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WriteBuffer=void 0;var A=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 h=this._bufferOffset;h<this._writeBuffer.length;++h){var u=this._writeBuffer[h],a=this._callbacks[h];this._action(u),a&&a()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(f)},m.prototype.write=function(f,h){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(h)},m.prototype._innerWrite=function(){for(var f=this,h=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],a=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,a&&a(),Date.now()-h>=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=A},function(y,p,x){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AddonManager=void 0;var A=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,h){var u=this,a={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(a),h.dispose=function(){return u._wrappedAddonDispose(a)},h.activate(f)},m.prototype._wrappedAddonDispose=function(f){if(!f.isDisposed){for(var h=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===f){h=u;break}if(h===-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(h,1)}},m}();p.AddonManager=A}])})},"/SeX":function(k,D,n){var y=n("knOB"),p=n("qZFw"),x=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};x.prototype={type:"polar",axisPointerEnabled:!0,constructor:x,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=[],h=this._angleAxis,u=this._radiusAxis;return h.scale.type===m&&f.push(h),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 h=this.pointToCoord(m);return[this._radiusAxis.radiusToData(h[0],f),this._angleAxis.angleToData(h[1],f)]},pointToCoord:function(m){var f=m[0]-this.cx,h=m[1]-this.cy,u=this.getAngleAxis(),a=u.getExtent(),i=Math.min(a[0],a[1]),t=Math.max(a[0],a[1]);u.inverse?i=t-360:t=i+360;var o=Math.sqrt(f*f+h*h);f/=o,h/=o;for(var e=Math.atan2(-h,f)/Math.PI*180,l=e<i?1:-1;e<i||e>t;)e+=l*360;return[o,e]},coordToPoint:function(m){var f=m[0],h=m[1]/180*Math.PI,u=Math.cos(h)*f+this.cx,a=-Math.sin(h)*f+this.cy;return[u,a]},getArea:function(){var m=this.getAngleAxis(),f=this.getRadiusAxis(),h=f.getExtent().slice();h[0]>h[1]&&h.reverse();var u=m.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:h[0],r:h[1],startAngle:-u[0]*a,endAngle:-u[1]*a,clockwise:m.inverse,contain:function(i,t){var o=i-this.cx,e=t-this.cy,l=o*o+e*e,r=this.r,s=this.r0;return l<=r*r&&l>=s*s}}}};var A=x;k.exports=A},"/WM3":function(k,D,n){var y=n("QuXc"),p=n("bYtY"),x=p.isFunction,A={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,f){var h=m.getData(),u=(m.visualColorAccessPath||"itemStyle.color").split("."),a=m.get(u),i=x(a)&&!(a instanceof y)?a:null;(!a||i)&&(a=m.getColorFromPalette(m.name,null,f.getSeriesCount())),h.setVisual("color",a);var t=(m.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),o=m.get(t);if(h.setVisual("borderColor",o),!f.isSeriesFiltered(m)){i&&h.each(function(l){h.setItemVisual(l,"color",i(m.getDataParams(l)))});var e=function(l,r){var s=l.getItemModel(r),c=s.get(u,!0),d=s.get(t,!0);c!=null&&l.setItemVisual(r,"color",c),d!=null&&l.setItemVisual(r,"borderColor",d)};return{dataEach:h.hasItemOption?e:null}}}};k.exports=A},"/d5a":function(k,D){var n={average:function(x){for(var A=0,m=0,f=0;f<x.length;f++)isNaN(x[f])||(A+=x[f],m++);return m===0?NaN:A/m},sum:function(x){for(var A=0,m=0;m<x.length;m++)A+=x[m]||0;return A},max:function(x){for(var A=-Infinity,m=0;m<x.length;m++)x[m]>A&&(A=x[m]);return isFinite(A)?A:NaN},min:function(x){for(var A=Infinity,m=0;m<x.length;m++)x[m]<A&&(A=x[m]);return isFinite(A)?A:NaN},nearest:function(x){return x[0]}},y=function(x,A){return Math.round(x.length/2)};function p(x){return{seriesType:x,modifyOutputEnd:!0,reset:function(A,m,f){var h=A.getData(),u=A.get("sampling"),a=A.coordinateSystem;if(a.type==="cartesian2d"&&u){var i=a.getBaseAxis(),t=a.getOtherAxis(i),o=i.getExtent(),e=o[1]-o[0],l=Math.round(h.count()/e);if(l>1){var r;typeof u=="string"?r=n[u]:typeof u=="function"&&(r=u),r&&A.setData(h.downSample(h.mapDimension(t.dim),1/l,r,y))}}}}}k.exports=p},"/ezw":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("cDf5"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=function(W){var z=W.prefixCls,V=W.className,Q=W.width,G=W.style;return h.createElement("h3",{className:a()(z,V),style:A()({width:Q},G)})},t=i,o=n("RIqP"),e=n.n(o),l=function(W){var z=function($){var be=W.width,_e=W.rows,Ee=_e===void 0?2:_e;return Array.isArray(be)?be[$]:Ee-1===$?be:void 0},V=W.prefixCls,Q=W.className,G=W.style,re=W.rows,ee=e()(Array(re)).map(function(ue,$){return h.createElement("li",{key:$,style:{width:z($)}})});return h.createElement("ul",{className:a()(V,Q),style:G},ee)},r=l,s=n("H84U"),c=function(W){var z,V,Q=W.prefixCls,G=W.className,re=W.style,ee=W.size,ue=W.shape,$=a()((z={},p()(z,"".concat(Q,"-lg"),ee==="large"),p()(z,"".concat(Q,"-sm"),ee==="small"),z)),be=a()((V={},p()(V,"".concat(Q,"-circle"),ue==="circle"),p()(V,"".concat(Q,"-square"),ue==="square"),p()(V,"".concat(Q,"-round"),ue==="round"),V)),_e=typeof ee=="number"?{width:ee,height:ee,lineHeight:"".concat(ee,"px")}:{};return h.createElement("span",{className:a()(Q,G,$,be),style:A()(A()({},_e),re)})},d=c,g=n("BGR+"),v=function(W){var z=function(Q){var G=Q.getPrefixCls,re=W.prefixCls,ee=W.className,ue=W.active,$=G("skeleton",re),be=Object(g.default)(W,["prefixCls"]),_e=a()($,ee,"".concat($,"-element"),p()({},"".concat($,"-active"),ue));return h.createElement("div",{className:_e},h.createElement(d,A()({prefixCls:"".concat($,"-avatar")},be)))};return h.createElement(s.a,null,z)};v.defaultProps={size:"default",shape:"circle"};var b=v,S=function(W){var z=function(Q){var G=Q.getPrefixCls,re=W.prefixCls,ee=W.className,ue=W.active,$=G("skeleton",re),be=Object(g.default)(W,["prefixCls"]),_e=a()($,ee,"".concat($,"-element"),p()({},"".concat($,"-active"),ue));return h.createElement("div",{className:_e},h.createElement(d,A()({prefixCls:"".concat($,"-button")},be)))};return h.createElement(s.a,null,z)};S.defaultProps={size:"default"};var E=S,C=function(W){var z=function(Q){var G=Q.getPrefixCls,re=W.prefixCls,ee=W.className,ue=W.active,$=G("skeleton",re),be=Object(g.default)(W,["prefixCls"]),_e=a()($,ee,"".concat($,"-element"),p()({},"".concat($,"-active"),ue));return h.createElement("div",{className:_e},h.createElement(d,A()({prefixCls:"".concat($,"-input")},be)))};return h.createElement(s.a,null,z)};C.defaultProps={size:"default"};var _=C,T="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",w=function(W){var z=function(Q){var G=Q.getPrefixCls,re=W.prefixCls,ee=W.className,ue=W.style,$=G("skeleton",re),be=a()($,ee,"".concat($,"-element"));return h.createElement("div",{className:be},h.createElement("div",{className:a()("".concat($,"-image"),ee),style:ue},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat($,"-image-svg")},h.createElement("path",{d:T,className:"".concat($,"-image-path")}))))};return h.createElement(s.a,null,z)},O=w;function I(j){return j&&f()(j)==="object"?j:{}}function R(j,W){return j&&!W?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function M(j,W){return!j&&W?{width:"38%"}:j&&W?{width:"50%"}:{}}function F(j,W){var z={};return(!j||!W)&&(z.width="61%"),!j&&W?z.rows=3:z.rows=2,z}var P=function(W){var z=function(Q){var G=Q.getPrefixCls,re=Q.direction,ee=W.prefixCls,ue=W.loading,$=W.className,be=W.children,_e=W.avatar,Ee=W.title,Xe=W.paragraph,He=W.active,nt=W.round,Ie=G("skeleton",ee);if(ue||!("loading"in W)){var oe,ot=!!_e,he=!!Ee,J=!!Xe,Y;if(ot){var q=A()(A()({prefixCls:"".concat(Ie,"-avatar")},R(he,J)),I(_e));Y=h.createElement("div",{className:"".concat(Ie,"-header")},h.createElement(d,q))}var fe;if(he||J){var we;if(he){var Ne=A()(A()({prefixCls:"".concat(Ie,"-title")},M(ot,J)),I(Ee));we=h.createElement(t,Ne)}var je;if(J){var me=A()(A()({prefixCls:"".concat(Ie,"-paragraph")},F(ot,he)),I(Xe));je=h.createElement(r,me)}fe=h.createElement("div",{className:"".concat(Ie,"-content")},we,je)}var Ce=a()(Ie,$,(oe={},p()(oe,"".concat(Ie,"-with-avatar"),ot),p()(oe,"".concat(Ie,"-active"),He),p()(oe,"".concat(Ie,"-rtl"),re==="rtl"),p()(oe,"".concat(Ie,"-round"),nt),oe));return h.createElement("div",{className:Ce},Y,fe)}return be};return h.createElement(s.a,null,z)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=E,P.Avatar=b,P.Input=_,P.Image=O;var X=P,B=D.a=X},"/iHx":function(k,D,n){var y=n("6GrX"),p=n("IwbS"),x=["textStyle","color"],A={getTextColor:function(m){var f=this.ecModel;return this.getShallow("color")||(!m&&f?f.get(x):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=A},"/ry/":function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("5GhG"),A=x.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,A,!0);var f=m;k.exports=f},"/stD":function(k,D,n){var y=n("bYtY"),p=n("IUWy"),x=n("Kagy"),A=x.toolbox.brush;function m(u,a,i){this.model=u,this.ecModel=a,this.api=i,this._brushType,this._brushMode}m.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:y.clone(A.title)};var f=m.prototype;f.render=f.updateView=function(u,a,i){var t,o,e;a.eachComponent({mainType:"brush"},function(l){t=l.brushType,o=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=t,this._brushMode=o,y.each(u.get("type",!0),function(l){u.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?e:l===t)?"emphasis":"normal")})},f.getIcons=function(){var u=this.model,a=u.get("icon",!0),i={};return y.each(u.get("type",!0),function(t){a[t]&&(i[t]=a[t])}),i},f.onclick=function(u,a,i){var t=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?t:t===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},p.register("brush",m);var h=m;k.exports=h},"/wGt":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n("Ff2n"),c=n("1OyB"),d=n("vuIU"),g=n("Ji7U"),v=n("md7G"),b=n("foSv"),S=n("1W/9"),E=n("rePB"),C=n("JX7q"),_=n("TSYQ"),T=n.n(_),w=n("qx4F"),O=n("4IlW");function I(we){return Array.isArray(we)?we:[we]}var R={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},M=Object.keys(R).filter(function(we){if(typeof document=="undefined")return!1;var Ne=document.getElementsByTagName("html")[0];return we in(Ne?Ne.style:{})})[0],F=R[M];function P(we,Ne,je,me){we.addEventListener?we.addEventListener(Ne,je,me):we.attachEvent&&we.attachEvent("on".concat(Ne),je)}function X(we,Ne,je,me){we.removeEventListener?we.removeEventListener(Ne,je,me):we.attachEvent&&we.detachEvent("on".concat(Ne),je)}function B(we,Ne){var je=typeof we=="function"?we(Ne):we;return Array.isArray(je)?je.length===2?je:[je[0],je[1]]:[je]}var j=function(Ne){return!isNaN(parseFloat(Ne))&&isFinite(Ne)},W=!(typeof window!="undefined"&&window.document&&window.document.createElement),z=function we(Ne,je,me,Ce){if(!je||je===document||je instanceof Document)return!1;if(je===Ne.parentNode)return!0;var Fe=Math.max(Math.abs(me),Math.abs(Ce))===Math.abs(Ce),it=Math.max(Math.abs(me),Math.abs(Ce))===Math.abs(me),Ct=je.scrollHeight-je.clientHeight,mt=je.scrollWidth-je.clientWidth,Ve=document.defaultView.getComputedStyle(je),or=Ve.overflowY==="auto"||Ve.overflowY==="scroll",dt=Ve.overflowX==="auto"||Ve.overflowX==="scroll",Yt=Ct&&or,hr=mt&&dt;return Fe&&(!Yt||Yt&&(je.scrollTop>=Ct&&Ce<0||je.scrollTop<=0&&Ce>0))||it&&(!hr||hr&&(je.scrollLeft>=mt&&me<0||je.scrollLeft<=0&&me>0))?we(Ne,je.parentNode,me,Ce):!1};function V(we){var Ne=Q();return function(){var me=Object(b.a)(we),Ce;if(Ne){var Fe=Object(b.a)(this).constructor;Ce=Reflect.construct(me,arguments,Fe)}else Ce=me.apply(this,arguments);return Object(v.a)(this,Ce)}}function Q(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(we){return!1}}var G={},re=function(we){Object(g.a)(je,we);var Ne=V(je);function je(me){var Ce;return Object(c.a)(this,je),Ce=Ne.call(this,me),Ce.domFocus=function(){Ce.dom&&Ce.dom.focus()},Ce.removeStartHandler=function(Fe){if(Fe.touches.length>1)return;Ce.startPos={x:Fe.touches[0].clientX,y:Fe.touches[0].clientY}},Ce.removeMoveHandler=function(Fe){if(Fe.changedTouches.length>1)return;var it=Fe.currentTarget,Ct=Fe.changedTouches[0].clientX-Ce.startPos.x,mt=Fe.changedTouches[0].clientY-Ce.startPos.y;(it===Ce.maskDom||it===Ce.handlerDom||it===Ce.contentDom&&z(it,Fe.target,Ct,mt))&&Fe.cancelable&&Fe.preventDefault()},Ce.transitionEnd=function(Fe){var it=Fe.target;X(it,F,Ce.transitionEnd),it.style.transition=""},Ce.onKeyDown=function(Fe){if(Fe.keyCode===O.a.ESC){var it=Ce.props.onClose;Fe.stopPropagation(),it&&it(Fe)}},Ce.onWrapperTransitionEnd=function(Fe){var it=Ce.props,Ct=it.open,mt=it.afterVisibleChange;Fe.target===Ce.contentWrapper&&Fe.propertyName.match(/transform$/)&&(Ce.dom.style.transition="",!Ct&&Ce.getCurrentDrawerSome()&&(document.body.style.overflowX="",Ce.maskDom&&(Ce.maskDom.style.left="",Ce.maskDom.style.width="")),mt&&mt(!!Ct))},Ce.openLevelTransition=function(){var Fe=Ce.props,it=Fe.open,Ct=Fe.width,mt=Fe.height,Ve=Ce.getHorizontalBoolAndPlacementName(),or=Ve.isHorizontal,dt=Ve.placementName,Yt=Ce.contentDom?Ce.contentDom.getBoundingClientRect()[or?"width":"height"]:0,hr=(or?Ct:mt)||Yt;Ce.setLevelAndScrolling(it,dt,hr)},Ce.setLevelTransform=function(Fe,it,Ct,mt){var Ve=Ce.props,or=Ve.placement,dt=Ve.levelMove,Yt=Ve.duration,hr=Ve.ease,Gt=Ve.showMask;Ce.levelDom.forEach(function(Pt){Pt.style.transition="transform ".concat(Yt," ").concat(hr),P(Pt,F,Ce.transitionEnd);var Xt=Fe?Ct:0;if(dt){var Ge=B(dt,{target:Pt,open:Fe});Xt=Fe?Ge[0]:Ge[1]||0}var pe=typeof Xt=="number"?"".concat(Xt,"px"):Xt,se=or==="left"||or==="top"?pe:"-".concat(pe);se=Gt&&or==="right"&&mt?"calc(".concat(se," + ").concat(mt,"px)"):se,Pt.style.transform=Xt?"".concat(it,"(").concat(se,")"):""})},Ce.setLevelAndScrolling=function(Fe,it,Ct){var mt=Ce.props.onChange;if(!W){var Ve=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;Ce.setLevelTransform(Fe,it,Ct,Ve),Ce.toggleScrollingToDrawerAndBody(Ve)}mt&&mt(Fe)},Ce.toggleScrollingToDrawerAndBody=function(Fe){var it=Ce.props,Ct=it.getOpenCount,mt=it.getContainer,Ve=it.showMask,or=it.open,dt=mt&&mt(),Yt=Ct&&Ct();if(dt&&dt.parentNode===document.body&&Ve){var hr=["touchstart"],Gt=[document.body,Ce.maskDom,Ce.handlerDom,Ce.contentDom];or&&document.body.style.overflow!=="hidden"?(Fe&&Ce.addScrollingEffect(Fe),Yt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Gt.forEach(function(Pt,Xt){if(!Pt)return;P(Pt,hr[Xt]||"touchmove",Xt?Ce.removeMoveHandler:Ce.removeStartHandler,Ce.passive)})):Ce.getCurrentDrawerSome()&&(Yt||(document.body.style.overflow=""),document.body.style.touchAction="",Fe&&Ce.remScrollingEffect(Fe),Gt.forEach(function(Pt,Xt){if(!Pt)return;X(Pt,hr[Xt]||"touchmove",Xt?Ce.removeMoveHandler:Ce.removeStartHandler,Ce.passive)}))}},Ce.addScrollingEffect=function(Fe){var it=Ce.props,Ct=it.placement,mt=it.duration,Ve=it.ease,or=it.getOpenCount,dt=it.switchScrollingEffect,Yt=or&&or();Yt===1&&dt();var hr="width ".concat(mt," ").concat(Ve),Gt="transform ".concat(mt," ").concat(Ve);Ce.dom.style.transition="none";switch(Ct){case"right":Ce.dom.style.transform="translateX(-".concat(Fe,"px)");break;case"top":case"bottom":Ce.dom.style.width="calc(100% - ".concat(Fe,"px)"),Ce.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(Ce.timeout),Ce.timeout=setTimeout(function(){Ce.dom&&(Ce.dom.style.transition="".concat(Gt,",").concat(hr),Ce.dom.style.width="",Ce.dom.style.transform="")})},Ce.remScrollingEffect=function(Fe){var it=Ce.props,Ct=it.placement,mt=it.duration,Ve=it.ease,or=it.getOpenCount,dt=it.switchScrollingEffect,Yt=or&&or();Yt||dt(!0),M&&(document.body.style.overflowX="hidden"),Ce.dom.style.transition="none";var hr,Gt="width ".concat(mt," ").concat(Ve),Pt="transform ".concat(mt," ").concat(Ve);switch(Ct){case"left":{Ce.dom.style.width="100%",Gt="width 0s ".concat(Ve," ").concat(mt);break}case"right":{Ce.dom.style.transform="translateX(".concat(Fe,"px)"),Ce.dom.style.width="100%",Gt="width 0s ".concat(Ve," ").concat(mt),Ce.maskDom&&(Ce.maskDom.style.left="-".concat(Fe,"px"),Ce.maskDom.style.width="calc(100% + ".concat(Fe,"px)"));break}case"top":case"bottom":{Ce.dom.style.width="calc(100% + ".concat(Fe,"px)"),Ce.dom.style.height="100%",Ce.dom.style.transform="translateZ(0)",hr="height 0s ".concat(Ve," ").concat(mt);break}default:break}clearTimeout(Ce.timeout),Ce.timeout=setTimeout(function(){Ce.dom&&(Ce.dom.style.transition="".concat(Pt,",").concat(hr?"".concat(hr,","):"").concat(Gt),Ce.dom.style.transform="",Ce.dom.style.width="",Ce.dom.style.height="")})},Ce.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(Fe){return G[Fe]})},Ce.getLevelDom=function(Fe){var it=Fe.level,Ct=Fe.getContainer;if(W)return;var mt=Ct&&Ct(),Ve=mt?mt.parentNode:null;if(Ce.levelDom=[],it==="all"){var or=Ve?Array.prototype.slice.call(Ve.children):[];or.forEach(function(dt){dt.nodeName!=="SCRIPT"&&dt.nodeName!=="STYLE"&&dt.nodeName!=="LINK"&&dt!==mt&&Ce.levelDom.push(dt)})}else it&&I(it).forEach(function(dt){document.querySelectorAll(dt).forEach(function(Yt){Ce.levelDom.push(Yt)})})},Ce.getHorizontalBoolAndPlacementName=function(){var Fe=Ce.props.placement,it=Fe==="left"||Fe==="right",Ct="translate".concat(it?"X":"Y");return{isHorizontal:it,placementName:Ct}},Ce.state={_self:Object(C.a)(Ce)},Ce}return Object(d.a)(je,[{key:"componentDidMount",value:function(){var Ce=this;if(!W){var Fe=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Fe=!0,null}}))}catch(or){}this.passive=Fe?{passive:!1}:!1}var it=this.props,Ct=it.open,mt=it.getContainer,Ve=mt&&mt();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),Ct&&(Ve&&Ve.parentNode===document.body&&(G[this.drawerId]=Ct),this.openLevelTransition(),this.forceUpdate(function(){Ce.domFocus()}))}},{key:"componentDidUpdate",value:function(Ce){var Fe=this.props,it=Fe.open,Ct=Fe.getContainer,mt=Ct&&Ct();it!==Ce.open&&(it&&this.domFocus(),mt&&mt.parentNode===document.body&&(G[this.drawerId]=!!it),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var Ce=this.props,Fe=Ce.getOpenCount,it=Ce.open,Ct=Ce.switchScrollingEffect,mt=typeof Fe=="function"&&Fe();delete G[this.drawerId],it&&(this.setLevelTransform(!1),document.body.style.touchAction=""),mt||(document.body.style.overflow="",Ct(!0))}},{key:"render",value:function(){var Ce,Fe=this,it=this.props,Ct=it.className,mt=it.children,Ve=it.style,or=it.width,dt=it.height,Yt=it.defaultOpen,hr=it.open,Gt=it.prefixCls,Pt=it.placement,Xt=it.level,Ge=it.levelMove,pe=it.ease,se=it.duration,lt=it.getContainer,Ze=it.handler,de=it.onChange,_t=it.afterVisibleChange,er=it.showMask,yt=it.maskClosable,Ar=it.maskStyle,Sr=it.onClose,Cn=it.onHandleClick,mr=it.keyboard,Pr=it.getOpenCount,gr=it.switchScrollingEffect,Jt=Object(s.a)(it,["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"]),Dt=this.dom?hr:!1,dn=T()(Gt,(Ce={},Object(E.a)(Ce,"".concat(Gt,"-").concat(Pt),!0),Object(E.a)(Ce,"".concat(Gt,"-open"),Dt),Object(E.a)(Ce,Ct||"",!!Ct),Object(E.a)(Ce,"no-mask",!er),Ce)),Fn=this.getHorizontalBoolAndPlacementName(),Zn=Fn.placementName,ci=Pt==="left"||Pt==="top"?"-100%":"100%",Xi=Dt?"":"".concat(Zn,"(").concat(ci,")"),Gn=Ze&&r.cloneElement(Ze,{onClick:function(Zt){Ze.props.onClick&&Ze.props.onClick(),Cn&&Cn(Zt)},ref:function(Zt){Fe.handlerDom=Zt}});return r.createElement("div",Object.assign({},Jt,{tabIndex:-1,className:dn,style:Ve,ref:function(Zt){Fe.dom=Zt},onKeyDown:Dt&&mr?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),er&&r.createElement("div",{className:"".concat(Gt,"-mask"),onClick:yt?Sr:void 0,style:Ar,ref:function(Zt){Fe.maskDom=Zt}}),r.createElement("div",{className:"".concat(Gt,"-content-wrapper"),style:{transform:Xi,msTransform:Xi,width:j(or)?"".concat(or,"px"):or,height:j(dt)?"".concat(dt,"px"):dt},ref:function(Zt){Fe.contentWrapper=Zt}},r.createElement("div",{className:"".concat(Gt,"-content"),ref:function(Zt){Fe.contentDom=Zt},onTouchStart:Dt&&er?this.removeStartHandler:void 0,onTouchMove:Dt&&er?this.removeMoveHandler:void 0},mt),Gn))}}],[{key:"getDerivedStateFromProps",value:function(Ce,Fe){var it=Fe.prevProps,Ct=Fe._self,mt={prevProps:Ce};if(it!==void 0){var Ve=Ce.placement,or=Ce.level;Ve!==it.placement&&(Ct.contentDom=null),or!==it.level&&Ct.getLevelDom(Ce)}return mt}}]),je}(r.Component);re.defaultProps={switchScrollingEffect:function(){}};var ee=re;function ue(we){var Ne=$();return function(){var me=Object(b.a)(we),Ce;if(Ne){var Fe=Object(b.a)(this).constructor;Ce=Reflect.construct(me,arguments,Fe)}else Ce=me.apply(this,arguments);return Object(v.a)(this,Ce)}}function $(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(we){return!1}}var be=function(we){Object(g.a)(je,we);var Ne=ue(je);function je(me){var Ce;Object(c.a)(this,je),Ce=Ne.call(this,me),Ce.onHandleClick=function(it){var Ct=Ce.props,mt=Ct.onHandleClick,Ve=Ct.open;if(mt&&mt(it),typeof Ve=="undefined"){var or=Ce.state.open;Ce.setState({open:!or})}},Ce.onClose=function(it){var Ct=Ce.props,mt=Ct.onClose,Ve=Ct.open;mt&&mt(it),typeof Ve=="undefined"&&Ce.setState({open:!1})};var Fe=typeof me.open!="undefined"?me.open:!!me.defaultOpen;return Ce.state={open:Fe},"onMaskClick"in me&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),Ce}return Object(d.a)(je,[{key:"render",value:function(){var Ce=this,Fe=this.props,it=Fe.defaultOpen,Ct=Fe.getContainer,mt=Fe.wrapperClassName,Ve=Fe.forceRender,or=Fe.handler,dt=Object(s.a)(Fe,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Yt=this.state.open;if(!Ct)return r.createElement("div",{className:mt,ref:function(Pt){Ce.dom=Pt}},r.createElement(ee,Object.assign({},dt,{open:Yt,handler:or,getContainer:function(){return Ce.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var hr=!!or||Ve;return r.createElement(S.a,{visible:Yt,forceRender:hr,getContainer:Ct,wrapperClassName:mt},function(Gt){var Pt=Gt.visible,Xt=Gt.afterClose,Ge=Object(s.a)(Gt,["visible","afterClose"]);return r.createElement(ee,Object.assign({},dt,Ge,{open:Pt!==void 0?Pt:Yt,afterVisibleChange:Xt!==void 0?Xt:dt.afterVisibleChange,handler:or,onClose:Ce.onClose,onHandleClick:Ce.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(Ce,Fe){var it=Fe.prevProps,Ct={prevProps:Ce};return typeof it!="undefined"&&Ce.open!==it.open&&(Ct.open=Ce.open),Ct}}]),je}(r.Component);be.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 _e=be,Ee=_e,Xe=n("V/uB"),He=n.n(Xe),nt=n("BGR+"),Ie=n("H84U"),oe=n("CWQg"),ot=function(we,Ne){var je={};for(var me in we)Object.prototype.hasOwnProperty.call(we,me)&&Ne.indexOf(me)<0&&(je[me]=we[me]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,me=Object.getOwnPropertySymbols(we);Ce<me.length;Ce++)Ne.indexOf(me[Ce])<0&&Object.prototype.propertyIsEnumerable.call(we,me[Ce])&&(je[me[Ce]]=we[me[Ce]]);return je},he=r.createContext(null),J=Object(oe.a)("top","right","bottom","left"),Y={distance:180},q=function(we){o()(je,we);var Ne=l()(je);function je(){var me;return f()(this,je),me=Ne.apply(this,arguments),me.state={push:!1},me.push=function(){me.props.push&&me.setState({push:!0})},me.pull=function(){me.props.push&&me.setState({push:!1})},me.onDestroyTransitionEnd=function(){var Ce=me.getDestroyOnClose();if(!Ce)return;me.props.visible||(me.destroyClose=!0,me.forceUpdate())},me.getDestroyOnClose=function(){return me.props.destroyOnClose&&!me.props.visible},me.getPushDistance=function(){var Ce=me.props.push,Fe;return typeof Ce=="boolean"?Fe=Ce?Y.distance:0:Fe=Ce.distance,parseFloat(String(Fe||0))},me.getPushTransform=function(Ce){var Fe=me.getPushDistance();if(Ce==="left"||Ce==="right")return"translateX(".concat(Ce==="left"?Fe:-Fe,"px)");if(Ce==="top"||Ce==="bottom")return"translateY(".concat(Ce==="top"?Fe:-Fe,"px)")},me.getRcDrawerStyle=function(){var Ce=me.props,Fe=Ce.zIndex,it=Ce.placement,Ct=Ce.mask,mt=Ce.style,Ve=me.state.push,or=Ct?{}:me.getOffsetStyle();return A()(A()({zIndex:Fe,transform:Ve?me.getPushTransform(it):void 0},or),mt)},me.renderBody=function(){var Ce=me.props,Fe=Ce.bodyStyle,it=Ce.drawerStyle,Ct=Ce.prefixCls,mt=Ce.visible;if(me.destroyClose&&!mt)return null;me.destroyClose=!1;var Ve={},or=me.getDestroyOnClose();return or&&(Ve.opacity=0,Ve.transition="opacity .3s"),r.createElement("div",{className:"".concat(Ct,"-wrapper-body"),style:A()(A()({},Ve),it),onTransitionEnd:me.onDestroyTransitionEnd},me.renderHeader(),r.createElement("div",{className:"".concat(Ct,"-body"),style:Fe},me.props.children),me.renderFooter())},me.renderProvider=function(Ce){return me.parentDrawer=Ce,r.createElement(Ie.a,null,function(Fe){var it=Fe.getPopupContainer,Ct=Fe.getPrefixCls,mt=me.props,Ve=mt.prefixCls,or=mt.placement,dt=mt.className,Yt=mt.mask,hr=mt.direction,Gt=mt.visible,Pt=ot(mt,["prefixCls","placement","className","mask","direction","visible"]),Xt=Ct("select",Ve),Ge=T()(dt,p()({"no-mask":!Yt},"".concat(Xt,"-rtl"),hr==="rtl")),pe=Yt?me.getOffsetStyle():{};return r.createElement(he.Provider,{value:i()(me)},r.createElement(Ee,A()({handler:!1},Object(nt.default)(Pt,["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:Pt.getContainer===void 0&&it?function(){return it(document.body)}:Pt.getContainer},pe,{prefixCls:Xt,open:Gt,showMask:Yt,placement:or,style:me.getRcDrawerStyle(),className:Ge}),me.renderBody()))})},me}return u()(je,[{key:"componentDidMount",value:function(){var Ce=this.props.visible;Ce&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(Ce){var Fe=this.props.visible;Ce.visible!==Fe&&this.parentDrawer&&(Fe?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var Ce=this.props,Fe=Ce.placement,it=Ce.width,Ct=Ce.height,mt=Ce.visible,Ve=Ce.mask;if(!mt&&!Ve)return{};var or={};return Fe==="left"||Fe==="right"?or.width=it:or.height=Ct,or}},{key:"renderHeader",value:function(){var Ce=this.props,Fe=Ce.title,it=Ce.prefixCls,Ct=Ce.closable,mt=Ce.headerStyle;if(!Fe&&!Ct)return null;var Ve=Fe?"".concat(it,"-header"):"".concat(it,"-header-no-title");return r.createElement("div",{className:Ve,style:mt},Fe&&r.createElement("div",{className:"".concat(it,"-title")},Fe),Ct&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var Ce=this.props,Fe=Ce.footer,it=Ce.footerStyle,Ct=Ce.prefixCls;if(!Fe)return null;var mt="".concat(Ct,"-footer");return r.createElement("div",{className:mt,style:it},Fe)}},{key:"renderCloseIcon",value:function(){var Ce=this.props,Fe=Ce.closable,it=Ce.closeIcon,Ct=it===void 0?r.createElement(He.a,null):it,mt=Ce.prefixCls,Ve=Ce.onClose;return Fe&&r.createElement("button",{onClick:Ve,"aria-label":"Close",className:"".concat(mt,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},Ct)}},{key:"render",value:function(){return r.createElement(he.Consumer,null,this.renderProvider)}}]),je}(r.Component);q.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var fe=D.a=Object(Ie.c)({prefixCls:"drawer"})(q)},"/y7N":function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6GrX"),A=n("7aKB"),m=n("Fofx"),f=n("aX7z"),h=n("+rIm");function u(c){var d=c.get("type"),g=c.getModel(d+"Style"),v;return d==="line"?(v=g.getLineStyle(),v.fill=null):d==="shadow"&&(v=g.getAreaStyle(),v.stroke=null),v}function a(c,d,g,v,b){var S=g.get("value"),E=t(S,d.axis,d.ecModel,g.get("seriesDataIndices"),{precision:g.get("label.precision"),formatter:g.get("label.formatter")}),C=g.getModel("label"),_=A.normalizeCssArray(C.get("padding")||0),T=C.getFont(),w=x.getBoundingRect(E,T),O=b.position,I=w.width+_[1]+_[3],R=w.height+_[0]+_[2],M=b.align;M==="right"&&(O[0]-=I),M==="center"&&(O[0]-=I/2);var F=b.verticalAlign;F==="bottom"&&(O[1]-=R),F==="middle"&&(O[1]-=R/2),i(O,I,R,v);var P=C.get("backgroundColor");(!P||P==="auto")&&(P=d.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:I,height:R,r:C.get("borderRadius")},position:O.slice(),style:{text:E,textFont:T,textFill:C.getTextColor(),textPosition:"inside",textPadding:_,fill:P,stroke:C.get("borderColor")||"transparent",lineWidth:C.get("borderWidth")||0,shadowBlur:C.get("shadowBlur"),shadowColor:C.get("shadowColor"),shadowOffsetX:C.get("shadowOffsetX"),shadowOffsetY:C.get("shadowOffsetY")},z2:10}}function i(c,d,g,v){var b=v.getWidth(),S=v.getHeight();c[0]=Math.min(c[0]+d,b)-d,c[1]=Math.min(c[1]+g,S)-g,c[0]=Math.max(c[0],0),c[1]=Math.max(c[1],0)}function t(c,d,g,v,b){c=d.scale.parse(c);var S=d.scale.getLabel(c,{precision:b.precision}),E=b.formatter;if(E){var C={value:f.getAxisRawValue(d,c),axisDimension:d.dim,axisIndex:d.index,seriesData:[]};y.each(v,function(_){var T=g.getSeriesByIndex(_.seriesIndex),w=_.dataIndexInside,O=T&&T.getDataParams(w);O&&C.seriesData.push(O)}),y.isString(E)?S=E.replace("{value}",S):y.isFunction(E)&&(S=E(C))}return S}function o(c,d,g){var v=m.create();return m.rotate(v,v,g.rotation),m.translate(v,v,g.position),p.applyTransform([c.dataToCoord(d),(g.labelOffset||0)+(g.labelDirection||1)*(g.labelMargin||0)],v)}function e(c,d,g,v,b,S){var E=h.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),a(d,v,b,S,{position:o(v.axis,c,g),align:E.textAlign,verticalAlign:E.textVerticalAlign})}function l(c,d,g){return g=g||0,{x1:c[g],y1:c[1-g],x2:d[g],y2:d[1-g]}}function r(c,d,g){return g=g||0,{x:c[g],y:c[1-g],width:d[g],height:d[1-g]}}function s(c,d,g,v,b,S){return{cx:c,cy:d,r0:g,r:v,startAngle:b,endAngle:S,clockwise:!0}}D.buildElStyle=u,D.buildLabelElOption=a,D.getValueLabel=t,D.getTransformedPosition=o,D.buildCartesianSingleLabelElOption=e,D.makeLineShape=l,D.makeRectShape=r,D.makeSectorShape=s},"/zsF":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("bE4E"),A=n.n(x)},"0/Rx":function(k,D){function n(y){return{seriesType:y,reset:function(p,x){var A=x.findComponents({mainType:"legend"});if(!A||!A.length)return;var m=p.getData();m.filterSelf(function(f){for(var h=m.getName(f),u=0;u<A.length;u++)if(!A[u].isSelected(h))return!1;return!0})}}}k.exports=n},"01d+":function(k,D,n){var y=n("bYtY"),p=y.each,x=n("HF/U"),A=x.simpleLayout,m=x.simpleLayoutEdge;function f(h,u){h.eachSeriesByType("graph",function(a){var i=a.get("layout"),t=a.coordinateSystem;if(t&&t.type!=="view"){var o=a.getData(),e=[];p(t.dimensions,function(g){e=e.concat(o.mapDimension(g,!0))});for(var l=0;l<o.count();l++){for(var r=[],s=!1,c=0;c<e.length;c++){var d=o.get(e[c],l);isNaN(d)||(s=!0),r.push(d)}s?o.setItemLayout(l,t.dataToPoint(r)):o.setItemLayout(l,[NaN,NaN])}m(o.graph)}else(!i||i==="none")&&A(a)})}k.exports=f},"03A+":function(k,D,n){var y=n("JTzB"),p=n("ExA7"),x=Object.prototype,A=x.hasOwnProperty,m=x.propertyIsEnumerable,f=y(function(){return arguments}())?y:function(h){return p(h)&&A.call(h,"callee")&&!m.call(h,"callee")};k.exports=f},"06DH":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("Kagy"),A=n("IUWy"),m=x.toolbox.magicType,f="__ec_magicType_stack__";function h(o){this.model=o}h.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=h.prototype;u.getIcons=function(){var o=this.model,e=o.get("icon"),l={};return p.each(o.get("type"),function(r){e[r]&&(l[r]=e[r])}),l};var a={line:function(o,e,l,r){if(o==="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(o,e,l,r){if(o==="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(o,e,l,r){var s=l.get("stack")===f;if(o==="line"||o==="bar")return r.setIconStatus("stack",s?"normal":"emphasis"),p.merge({id:e,stack:s?"":f},r.get("option.stack")||{},!0)}},i=[["line","bar"],["stack"]];u.onclick=function(o,e,l){var r=this.model,s=r.get("seriesIndex."+l);if(!a[l])return;var c={series:[]},d=function(b){var S=b.subType,E=b.id,C=a[l](S,E,b,r);C&&(p.defaults(C,b.option),c.series.push(C));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(l==="line"||l==="bar")){var T=_.getAxesByScale("ordinal")[0];if(T){var w=T.dim,O=w+"Axis",I=o.queryComponents({mainType:O,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],R=I.componentIndex;c[O]=c[O]||[];for(var M=0;M<=R;M++)c[O][R]=c[O][R]||{};c[O][R].boundaryGap=l==="bar"}}};p.each(i,function(b){p.indexOf(b,l)>=0&&p.each(b,function(S){r.setIconStatus(S,"normal")})}),r.setIconStatus(l,"emphasis"),o.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},d);var g;if(l==="stack"){var v=c.series&&c.series[0]&&c.series[0].stack===f;g=v?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(o,e){e.mergeOption(o.newOption)}),A.register("magicType",h);var t=h;k.exports=t},"06Qe":function(k,D,n){var y=n("ItGF"),p="urn:schemas-microsoft-com:vml",x=typeof window=="undefined"?null:window,A=!1,m=x&&x.document;function f(a){return h(a)}var h;if(m&&!y.canvasSupported)try{!m.namespaces.zrvml&&m.namespaces.add("zrvml",p),h=function(i){return m.createElement("<zrvml:"+i+' class="zrvml">')}}catch(a){h=function(t){return m.createElement("<"+t+' xmlns="'+p+'" class="zrvml">')}}function u(){if(A||!m)return;A=!0;var a=m.styleSheets;a.length<31?m.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}D.doc=m,D.createNode=f,D.initVML=u},"09Wf":function(k,D,n){"use strict";n.d(D,"b",function(){return p}),n.d(D,"a",function(){return x});var y=n("CWQg"),p=Object(y.a)("success","processing","error","default","warning"),x=Object(y.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(k,D,n){var y=n("T4UG"),p=n("I3/A"),x=n("7aKB"),A=x.encodeHTML,m=n("Qxkt"),f=n("Tghj"),h=f.__DEV__,u=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(i,t){for(var o=i.edges||i.links,e=i.data||i.nodes,l=i.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&&o){var c=p(e,o,this,!0,d);return c.data}function d(g,v){g.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getData().getItemLayout(S).depth,T=C.levelModels[_];return T||this.parentModel}),b}),v.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getGraph().getEdgeByIndex(S),T=_.node1.getLayout().depth,w=C.levelModels[T];return w||this.parentModel}),b})}},setNodePosition:function(i,t){var o=this.option.data[i];o.localX=t[0],o.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(i,t,o){if(o==="edge"){var e=this.getDataParams(i,o),l=e.data,r=l.source+" -- "+l.target;return e.value&&(r+=" : "+e.value),A(r)}else if(o==="node"){var s=this.getGraph().getNodeByIndex(i),c=s.getLayout().value,d=this.getDataParams(i,o).data.name;if(c)var r=d+" : "+c;return A(r)}return u.superCall(this,"formatTooltip",i,t)},optionUpdated:function(){var i=this.option;i.focusNodeAdjacency===!0&&(i.focusNodeAdjacency="allEdges")},getDataParams:function(i,t){var o=u.superCall(this,"getDataParams",i,t);if(o.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(i),l=e.getLayout().value;o.value=l}return o},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),a=u;k.exports=a},"0Cz8":function(k,D,n){var y=n("Xi7e"),p=n("ebwN"),x=n("e4Nc"),A=200;function m(f,h){var u=this.__data__;if(u instanceof y){var a=u.__data__;if(!p||a.length<A-1)return a.push([f,h]),this.size=++u.size,this;u=this.__data__=new x(a)}return u.set(f,h),this.size=u.size,this}k.exports=m},"0HBW":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("Hxpc"),n("7uqq"),n("dmGj"),n("SehX");function x(A,m){m.update="updateView",y.registerAction(m,function(f,h){var u={};return h.eachComponent({mainType:"geo",query:f},function(a){a[A](f.name);var i=a.coordinateSystem;p.each(i.regions,function(t){u[t.name]=a.isSelected(t.name)||!1})}),{selected:u,name:f.name}})}x("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),x("select",{type:"geoSelect",event:"geoselected"}),x("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(k,D,n){var y=n("bYtY"),p=n("+TT/"),x=n("OELB"),A=n("IDmD"),m=864e5;function f(a,i,t){this._model=a}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(a){a=x.parseDate(a);var i=a.getFullYear(),t=a.getMonth()+1;t=t<10?"0"+t:t;var o=a.getDate();o=o<10?"0"+o:o;var e=a.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:i,m:t,d:o,day:e,time:a.getTime(),formatedDate:i+"-"+t+"-"+o,date:a}},getNextNDay:function(a,i){return i=i||0,i===0?this.getDateInfo(a):(a=new Date(this.getDateInfo(a).time),a.setDate(a.getDate()+i),this.getDateInfo(a))},update:function(a,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var t=this._rangeInfo.weeks||1,o=["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){d(e,g)&&(l[o[g]]=e[g]*r[g])});var s={width:i.getWidth(),height:i.getHeight()},c=this._rect=p.getLayoutRect(l,s);y.each([0,1],function(g){d(e,g)||(e[g]=c[o[g]]/r[g])});function d(g,v){return g[v]!=null&&g[v]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(a,i){y.isArray(a)&&(a=a[0]),i==null&&(i=!0);var t=this.getDateInfo(a),o=this._rangeInfo,e=t.formatedDate;if(i&&!(t.time>=o.start.time&&t.time<o.end.time+m))return[NaN,NaN];var l=t.day,r=this._getRangeInfo([o.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(a){var i=this.pointToDate(a);return i&&i.time},dataToRect:function(a,i){var t=this.dataToPoint(a,i);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(a){var i=Math.floor((a[0]-this._rect.x)/this._sw)+1,t=Math.floor((a[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,i-1,o):this._getDateByWeeksAndDay(i,t-1,o)},convertToPixel:y.curry(h,"dataToPoint"),convertFromPixel:y.curry(h,"pointToData"),_initRangeOption:function(){var a=this._model.get("range"),i=a;if(y.isArray(i)&&i.length===1&&(i=i[0]),/^\d{4}$/.test(i)&&(a=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var t=this.getDateInfo(i),o=t.date;o.setMonth(o.getMonth()+1);var e=this.getNextNDay(o,-1);a=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(a=[i,i]);var l=this._getRangeInfo(a);return l.start.time>l.end.time&&a.reverse(),a},_getRangeInfo:function(a){a=[this.getDateInfo(a[0]),this.getDateInfo(a[1])];var i;a[0].time>a[1].time&&(i=!0,a.reverse());var t=Math.floor(a[1].time/m)-Math.floor(a[0].time/m)+1,o=new Date(a[0].time),e=o.getDate(),l=a[1].date.getDate();o.setDate(e+t-1);var r=o.getDate();if(r!==l)for(var s=o.getTime()-a[1].time>0?1:-1;(r=o.getDate())!==l&&(o.getTime()-a[1].time)*s>0;)t-=s,o.setDate(r-s);var c=Math.floor((t+a[0].day+6)/7),d=i?-c+1:c-1;return i&&a.reverse(),{range:[a[0].formatedDate,a[1].formatedDate],start:a[0],end:a[1],allDay:t,weeks:c,nthWeek:d,fweek:a[0].day,lweek:a[1].day}},_getDateByWeeksAndDay:function(a,i,t){var o=this._getRangeInfo(t);if(a>o.weeks||a===0&&i<o.fweek||a===o.weeks&&i>o.lweek)return!1;var e=(a-1)*7-o.fweek+i,l=new Date(o.start.time);return l.setDate(o.start.d+e),this.getDateInfo(l)}},f.dimensions=f.prototype.dimensions,f.getDimensionsInfo=f.prototype.getDimensionsInfo,f.create=function(a,i){var t=[];return a.eachComponent("calendar",function(o){var e=new f(o,a,i);t.push(e),o.coordinateSystem=e}),a.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=t[o.get("calendarIndex")||0])}),t};function h(a,i,t,o){var e=t.calendarModel,l=t.seriesModel,r=e?e.coordinateSystem:l?l.coordinateSystem:null;return r===this?r[a](o):null}A.register("calendar",f);var u=f;k.exports=u},"0JQy":function(k,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+p+x,m="\\ufe0e\\ufe0f",f="["+n+"]",h="["+A+"]",u="\\ud83c[\\udffb-\\udfff]",a="(?:"+h+"|"+u+")",i="[^"+n+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=a+"?",r="["+m+"]?",s="(?:"+e+"(?:"+[i,t,o].join("|")+")"+r+l+")*",c=r+l+s,d="(?:"+[i+h+"?",h,t,o,f].join("|")+")",g=RegExp(u+"(?="+u+")|"+d+c,"g");function v(b){return b.match(g)||[]}k.exports=v},"0NbB":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CaretDownOutlined";var h=D.a=p.forwardRef(f)},"0V0F":function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.each;function A(f){var h=p();f.eachSeries(function(u){var a=u.get("stack");if(a){var i=h.get(a)||h.set(a,[]),t=u.getData(),o={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(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&t.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),h.each(m)}function m(f){x(f,function(h,u){var a=[],i=[NaN,NaN],t=[h.stackResultDimension,h.stackedOverDimension],o=h.data,e=h.isStackedByIndex,l=o.map(t,function(r,s,c){var d=o.get(h.stackedDimension,c);if(isNaN(d))return i;var g,v;e?v=o.getRawIndex(c):g=o.get(h.stackedByDimension,c);for(var b=NaN,S=u-1;S>=0;S--){var E=f[S];if(e||(v=E.data.rawIndexOf(E.stackedByDimension,g)),v>=0){var C=E.data.getByRawIndex(E.stackResultDimension,v);if(d>=0&&C>0||d<=0&&C<0){d+=C,b=C;break}}}return a[0]=d,a[1]=b,a});o.hostModel.setData(l),h.data=l})}k.exports=A},"0XgM":function(k,D,n){},"0fbx":function(k,D,n){},"0o9m":function(k,D,n){var y=n("ProS");n("hNWo"),n("RlCK"),n("XpcN");var p=n("kDyi"),x=n("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,p),x.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(k,D,n){var y=n("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 n=arguments[3],y=arguments[4],p=arguments[5],x=JSON.stringify;k.exports=function(A,m){for(var f,h=Object.keys(p),u=0,a=h.length;u<a;u++){var i=h[u],t=p[i].exports;if(t===A||t&&t.default===A){f=i;break}}if(!f){f=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var o={},u=0,a=h.length;u<a;u++){var i=h[u];o[i]=i}y[f]=["function(require,module,exports){"+A+"(self); }",o]}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("+x(f)+");(f.default ? f.default : f)(self);}",l];var r={};s(e);function s(S){r[S]=!0;for(var E in y[S][1]){var C=y[S][1][E];r[C]||s(C)}}var c="("+n+")({"+Object.keys(r).map(function(S){return x(S)+":["+y[S][0]+","+x(y[S][1])+"]"}).join(",")+"},{},["+x(e)+"])",d=window.URL||window.webkitURL||window.mozURL||window.msURL,g=new Blob([c],{type:"text/javascript"});if(m&&m.bare)return g;var v=d.createObjectURL(g),b=new Worker(v);return b.objectURL=v,b}},"0s+r":function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("y23F"),A=n("H6uX"),m=n("YH21"),f=n("C0SR"),h="silent";function u(s,c,d){return{type:s,event:d,target:c.target,topTarget:c.topTarget,cancelBubble:!1,offsetX:d.zrX,offsetY:d.zrY,gestureEvent:d.gestureEvent,pinchX:d.pinchX,pinchY:d.pinchY,pinchScale:d.pinchScale,wheelDelta:d.zrDelta,zrByTouch:d.zrByTouch,which:d.which,stop:a}}function a(){m.stop(this.event)}function i(){}i.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],o=function(c,d,g,v){A.call(this),this.storage=c,this.painter=d,this.painterRoot=v,g=g||new i,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.call(this),this.setHandlerProxy(g)};o.prototype={constructor:o,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(y.each(t,function(d){c.on&&c.on(d,this[d],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var d=c.zrX,g=c.zrY,v=l(this,d,g),b=this._hovered,S=b.target;S&&!S.__zr&&(b=this.findHover(b.x,b.y),S=b.target);var E=this._hovered=v?{x:d,y:g}:this.findHover(d,g),C=E.target,_=this.proxy;_.setCursor&&_.setCursor(C?C.cursor:"default"),S&&C!==S&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(E,"mousemove",c),C&&C!==S&&this.dispatchToElement(E,"mouseover",c)},mouseout:function(c){var d=c.zrEventControl,g=c.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),d!=="no_globalout"&&(!g&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,d){var g=this[c];g&&g.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var d=this.proxy;d.setCursor&&d.setCursor(c)},dispatchToElement:function(c,d,g){c=c||{};var v=c.target;if(v&&v.silent)return;for(var b="on"+d,S=u(d,c,g);v&&!(v[b]&&(S.cancelBubble=v[b].call(v,S)),v.trigger(d,S),v=v.parent,S.cancelBubble););S.cancelBubble||(this.trigger(d,S),this.painter&&this.painter.eachOtherLayer(function(E){typeof E[b]=="function"&&E[b].call(E,S),E.trigger&&E.trigger(d,S)}))},findHover:function(c,d,g){for(var v=this.storage.getDisplayList(),b={x:c,y:d},S=v.length-1;S>=0;S--){var E;if(v[S]!==g&&!v[S].ignore&&(E=e(v[S],c,d))&&(!b.topTarget&&(b.topTarget=v[S]),E!==h)){b.target=v[S];break}}return b},processGesture:function(c,d){this._gestureMgr||(this._gestureMgr=new f);var g=this._gestureMgr;d==="start"&&g.clear();var v=g.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(d==="end"&&g.clear(),v){var b=v.type;c.gestureEvent=b,this.dispatchToElement({target:v.target},b,v.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){o.prototype[s]=function(c){var d=c.zrX,g=c.zrY,v=l(this,d,g),b,S;if((s!=="mouseup"||!v)&&(b=this.findHover(d,g),S=b.target),s==="mousedown")this._downEl=S,this._downPoint=[c.zrX,c.zrY],this._upEl=S;else if(s==="mouseup")this._upEl=S;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,d){if(s[s.rectHover?"rectContain":"contain"](c,d)){for(var g=s,v;g;){if(g.clipPath&&!g.clipPath.contain(c,d))return!1;g.silent&&(v=!0),g=g.parent}return v?h:!0}return!1}function l(s,c,d){var g=s.painter;return c<0||c>g.getWidth()||d<0||d>g.getHeight()}y.mixin(o,A),y.mixin(o,x);var r=o;k.exports=r},"0ycA":function(k,D){function n(){return[]}k.exports=n},"10cm":function(k,D,n){var y=n("ProS"),p=n("2B6p"),x=p.updateCenterAndZoom;n("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(A,function(m,f){f.eachComponent({mainType:"series",query:m},function(h){var u=h.coordinateSystem,a=x(u,m);h.setCenter&&h.setCenter(a.center),h.setZoom&&h.setZoom(a.zoom)})})},"15/o":function(k,D,n){},"19Vz":function(k,D,n){(function(y){y(n("VrN/"))})(function(y){y.defineOption("placeholder","",function(u,a,i){var t=i&&i!=y.Init;if(a&&!t)u.on("blur",m),u.on("change",f),u.on("swapDoc",f),y.on(u.getInputField(),"compositionupdate",u.state.placeholderCompose=function(){A(u)}),f(u);else if(!a&&t){u.off("blur",m),u.off("change",f),u.off("swapDoc",f),y.off(u.getInputField(),"compositionupdate",u.state.placeholderCompose),p(u);var o=u.getWrapperElement();o.className=o.className.replace(" CodeMirror-empty","")}a&&!u.hasFocus()&&m(u)});function p(u){u.state.placeholder&&(u.state.placeholder.parentNode.removeChild(u.state.placeholder),u.state.placeholder=null)}function x(u){p(u);var a=u.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=u.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var i=u.getOption("placeholder");typeof i=="string"&&(i=document.createTextNode(i)),a.appendChild(i),u.display.lineSpace.insertBefore(a,u.display.lineSpace.firstChild)}function A(u){setTimeout(function(){var a=!1,i=u.getInputField();i.nodeName=="TEXTAREA"?a=!i.value:u.lineCount()==1&&(a=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),a?x(u):p(u)},20)}function m(u){h(u)&&x(u)}function f(u){var a=u.getWrapperElement(),i=h(u);a.className=a.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?x(u):p(u)}function h(u){return u.lineCount()===1&&u.getLine(0)===""}})},"1Jh7":function(k,D,n){var y=n("y+Vt"),p=n("T6xi"),x=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=x},"1LEl":function(k,D,n){var y=n("ProS"),p=n("F9bG"),x=y.extendComponentView({type:"axisPointer",render:function(m,f,h){var u=f.getComponent("tooltip"),a=m.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click";p.register("axisPointer",h,function(i,t,o){a!=="none"&&(i==="leave"||a.indexOf(i)>=0)&&o({type:"updateAxisPointer",currTrigger:i,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(m,f){p.unregister(f.getZr(),"axisPointer"),x.superApply(this._model,"remove",arguments)},dispose:function(m,f){p.unregister("axisPointer",f),x.superApply(this._model,"dispose",arguments)}}),A=x;k.exports=A},"1MYJ":function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var A=this.__dirtyPath,m=this.shape.paths,f=0;f<m.length;f++)A=A||m[f].__dirtyPath;this.__dirtyPath=A,this.__dirty=this.__dirty||A},beforeBrush:function(){this._updatePathDirty();for(var A=this.shape.paths||[],m=this.getGlobalScale(),f=0;f<A.length;f++)A[f].path||A[f].createPathProxy(),A[f].path.setScale(m[0],m[1],A[f].segmentIgnoreThreshold)},buildPath:function(A,m){for(var f=m.paths||[],h=0;h<f.length;h++)f[h].buildPath(A,f[h].shape,!0)},afterBrush:function(){for(var A=this.shape.paths||[],m=0;m<A.length;m++)A[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});k.exports=p},"1NG9":function(k,D,n){var y=n("y+Vt"),p=n("QBsz"),x=n("iXp4"),A=p.min,m=p.max,f=p.scaleAndAdd,h=p.copy,u=[],a=[],i=[];function t(d){return isNaN(d[0])||isNaN(d[1])}function o(d,g,v,b,S,E,C,_,T,w,O){return w==="none"||!w?l.apply(this,arguments):e.apply(this,arguments)}function e(d,g,v,b,S,E,C,_,T,w,O){for(var I=0,R=v,M=0;M<b;M++){var F=g[R];if(R>=S||R<0)break;if(t(F)){if(O){R+=E;continue}break}if(R===v)d[E>0?"moveTo":"lineTo"](F[0],F[1]);else if(T>0){var P=g[I],X=w==="y"?1:0,B=(F[X]-P[X])*T;h(a,P),a[X]=P[X]+B,h(i,F),i[X]=F[X]-B,d.bezierCurveTo(a[0],a[1],i[0],i[1],F[0],F[1])}else d.lineTo(F[0],F[1]);I=R,R+=E}return M}function l(d,g,v,b,S,E,C,_,T,w,O){for(var I=0,R=v,M=0;M<b;M++){var F=g[R];if(R>=S||R<0)break;if(t(F)){if(O){R+=E;continue}break}if(R===v)d[E>0?"moveTo":"lineTo"](F[0],F[1]),h(a,F);else if(T>0){var P=R+E,X=g[P];if(O)for(;X&&t(g[P]);)P+=E,X=g[P];var B=.5,j=g[I],X=g[P];if(!X||t(X))h(i,F);else{t(X)&&!O&&(X=F),p.sub(u,X,j);var W,z;if(w==="x"||w==="y"){var V=w==="x"?0:1;W=Math.abs(F[V]-j[V]),z=Math.abs(F[V]-X[V])}else W=p.dist(F,j),z=p.dist(F,X);B=z/(z+W),f(i,F,u,-T*(1-B))}A(a,a,_),m(a,a,C),A(i,i,_),m(i,i,C),d.bezierCurveTo(a[0],a[1],i[0],i[1],F[0],F[1]),f(a,F,u,T*B)}else d.lineTo(F[0],F[1]);I=R,R+=E}return M}function r(d,g){var v=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var S=0;S<d.length;S++){var E=d[S];E[0]<v[0]&&(v[0]=E[0]),E[1]<v[1]&&(v[1]=E[1]),E[0]>b[0]&&(b[0]=E[0]),E[1]>b[1]&&(b[1]=E[1])}return{min:g?v:b,max:g?b:v}}var s=y.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:x(y.prototype.brush),buildPath:function(d,g){var v=g.points,b=0,S=v.length,E=r(v,g.smoothConstraint);if(g.connectNulls){for(;S>0&&t(v[S-1]);S--);for(;b<S&&t(v[b]);b++);}for(;b<S;)b+=o(d,v,b,S,S,1,E.min,E.max,g.smooth,g.smoothMonotone,g.connectNulls)+1}}),c=y.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:x(y.prototype.brush),buildPath:function(d,g){var v=g.points,b=g.stackedOnPoints,S=0,E=v.length,C=g.smoothMonotone,_=r(v,g.smoothConstraint),T=r(b,g.smoothConstraint);if(g.connectNulls){for(;E>0&&t(v[E-1]);E--);for(;S<E&&t(v[S]);S++);}for(;S<E;){var w=o(d,v,S,E,E,1,_.min,_.max,g.smooth,C,g.connectNulls);o(d,b,S+w-1,w,E,-1,T.min,T.max,g.stackedOnSmooth,C,g.connectNulls),S+=w+1,d.closePath()}}});D.Polyline=s,D.Polygon=c},"1RvN":function(k,D){var n=function(){this.head=null,this.tail=null,this._len=0},y=n.prototype;y.insert=function(f){var h=new p(f);return this.insertEntry(h),h},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 h=f.prev,u=f.next;h?h.next=u:this.head=u,u?u.prev=h:this.tail=h,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(h){this.value=h,this.next,this.prev},x=function(h){this._list=new n,this._map={},this._maxSize=h||10,this._lastRemovedEntry=null},A=x.prototype;A.put=function(f,h){var u=this._list,a=this._map,i=null;if(a[f]==null){var t=u.len(),o=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=u.head;u.remove(e),delete a[e.key],i=e.value,this._lastRemovedEntry=e}o?o.value=h:o=new p(h),o.key=f,u.insertEntry(o),a[f]=o}return i},A.get=function(f){var h=this._map[f],u=this._list;if(h!=null)return h!==u.tail&&(u.remove(h),u.insertEntry(h)),h.value},A.clear=function(){this._list.clear(),this._map={}};var m=x;k.exports=m},"1bdT":function(k,D,n){var y=n("3gBT"),p=n("H6uX"),x=n("DN4a"),A=n("vWvF"),m=n("bYtY"),f=function(a){x.call(this,a),p.call(this,a),A.call(this,a),this.id=a.id||y()};f.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(a,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":a=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=a,t[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(a,i){},attrKV:function(a,i){if(a==="position"||a==="scale"||a==="origin"){if(i){var t=this[a];t||(t=this[a]=[]),t[0]=i[0],t[1]=i[1]}}else this[a]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(a,i){if(typeof a=="string")this.attrKV(a,i);else if(m.isObject(a))for(var t in a)a.hasOwnProperty(t)&&this.attrKV(t,a[t]);return this.dirty(!1),this},setClipPath:function(a){var i=this.__zr;i&&a.addSelfToZr(i),this.clipPath&&this.clipPath!==a&&this.removeClipPath(),this.clipPath=a,a.__zr=i,a.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var a=this.clipPath;a&&(a.__zr&&a.removeSelfFromZr(a.__zr),a.__zr=null,a.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(a){this.__zr=a;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.addAnimator(i[t]);this.clipPath&&this.clipPath.addSelfToZr(a)},removeSelfFromZr:function(a){this.__zr=null;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.removeAnimator(i[t]);this.clipPath&&this.clipPath.removeSelfFromZr(a)}},m.mixin(f,A),m.mixin(f,x),m.mixin(f,p);var h=f;k.exports=h},"1dTM":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GQ8N"),p=w(n("Lo0S")),x=n("VSMT"),A=n("GdRQ"),m=n("SZEN"),f=n("vewr"),h=_(n("YJ9k")),u=_(n("MZdM")),a=_(n("ItS6")),i=_(n("whVF")),t=_(n("Fv0C")),o=_(n("LCi9")),e=_(n("rwxt")),l=_(n("Mmt2")),r=_(n("iUHT")),s=_(n("mHUz")),c=_(n("P2ho")),d=n("NBmB");n("mdZa");var g=_(n("34/K")),v=_(n("hXwI")),b=_(n("SgaC")),S=_(n("3690")),E=_(n("8K/p")),C=_(n("xO64"));function _(fe){return fe&&fe.__esModule?fe:{default:fe}}function T(){if(typeof WeakMap!="function")return null;var fe=new WeakMap;return T=function(){return fe},fe}function w(fe){if(fe&&fe.__esModule)return fe;if(fe===null||O(fe)!=="object"&&typeof fe!="function")return{default:fe};var we=T();if(we&&we.has(fe))return we.get(fe);var Ne={},je=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var me in fe)if(Object.prototype.hasOwnProperty.call(fe,me)){var Ce=je?Object.getOwnPropertyDescriptor(fe,me):null;Ce&&(Ce.get||Ce.set)?Object.defineProperty(Ne,me,Ce):Ne[me]=fe[me]}return Ne.default=fe,we&&we.set(fe,Ne),Ne}function O(fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ne){return typeof Ne}:O=function(Ne){return Ne&&typeof Symbol=="function"&&Ne.constructor===Symbol&&Ne!==Symbol.prototype?"symbol":typeof Ne},O(fe)}function I(fe,we){if(!(fe instanceof we))throw new TypeError("Cannot call a class as a function")}function R(fe,we){for(var Ne=0;Ne<we.length;Ne++){var je=we[Ne];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(fe,je.key,je)}}function M(fe,we,Ne){return we&&R(fe.prototype,we),Ne&&R(fe,Ne),fe}function F(fe,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(we&&we.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),we&&P(fe,we)}function P(fe,we){return P=Object.setPrototypeOf||function(je,me){return je.__proto__=me,je},P(fe,we)}function X(fe){var we=W();return function(){var je=z(fe),me;if(we){var Ce=z(this).constructor;me=Reflect.construct(je,arguments,Ce)}else me=je.apply(this,arguments);return B(this,me)}}function B(fe,we){return we&&(O(we)==="object"||typeof we=="function")?we:j(fe)}function j(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}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(fe){return!1}}function z(fe){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(Ne){return Ne.__proto__||Object.getPrototypeOf(Ne)},z(fe)}var V=3,Q="rgb(40, 40, 40)",G=17,re=50,ee=19,ue=75,$=50,be=1e3,_e=50,Ee=1,Xe=1<<1,He=1<<2,nt=1<<3,Ie=1<<4,oe=1<<24,ot=1<<25,he=1<<26,J=1<<27,Y=1<<28,q=function(fe){F(Ne,fe);var we=X(Ne);function Ne(je,me,Ce){var Fe;if(I(this,Ne),!je)throw new Error("Must specify target");if(!me)throw new Error("Must specify URL");Fe=we.call(this),Fe._target=je,Fe._url=me,Ce=Ce||{},Fe._rfbCredentials=Ce.credentials||{},Fe._shared="shared"in Ce?!!Ce.shared:!0,Fe._repeaterID=Ce.repeaterID||"",Fe._wsProtocols=Ce.wsProtocols||[],Fe._rfbConnectionState="",Fe._rfbInitState="",Fe._rfbAuthScheme=-1,Fe._rfbCleanDisconnect=!0,Fe._rfbVersion=0,Fe._rfbMaxVersion=3.8,Fe._rfbTightVNC=!1,Fe._rfbVeNCryptState=0,Fe._rfbXvpVer=0,Fe._fbWidth=0,Fe._fbHeight=0,Fe._fbName="",Fe._capabilities={power:!1},Fe._supportsFence=!1,Fe._supportsContinuousUpdates=!1,Fe._enabledContinuousUpdates=!1,Fe._supportsSetDesktopSize=!1,Fe._screenID=0,Fe._screenFlags=0,Fe._qemuExtKeyEventSupported=!1,Fe._clipboardText=null,Fe._clipboardServerCapabilitiesActions={},Fe._clipboardServerCapabilitiesFormats={},Fe._sock=null,Fe._display=null,Fe._flushing=!1,Fe._keyboard=null,Fe._gestures=null,Fe._disconnTimer=null,Fe._resizeTimeout=null,Fe._mouseMoveTimer=null,Fe._decoders={},Fe._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Fe._mousePos={},Fe._mouseButtonMask=0,Fe._mouseLastMoveTime=0,Fe._viewportDragging=!1,Fe._viewportDragPos={},Fe._viewportHasMoved=!1,Fe._accumulatedWheelDeltaX=0,Fe._accumulatedWheelDeltaY=0,Fe._gestureLastTapTime=null,Fe._gestureFirstDoubleTapEv=null,Fe._gestureLastMagnitudeX=0,Fe._gestureLastMagnitudeY=0,Fe._eventHandlers={focusCanvas:Fe._focusCanvas.bind(j(Fe)),windowResize:Fe._windowResize.bind(j(Fe)),handleMouse:Fe._handleMouse.bind(j(Fe)),handleWheel:Fe._handleWheel.bind(j(Fe)),handleGesture:Fe._handleGesture.bind(j(Fe))},p.Debug(">> RFB.constructor"),Fe._screen=document.createElement("div"),Fe._screen.style.display="flex",Fe._screen.style.width="100%",Fe._screen.style.height="100%",Fe._screen.style.overflow="auto",Fe._screen.style.background=Q,Fe._canvas=document.createElement("canvas"),Fe._canvas.style.margin="auto",Fe._canvas.style.outline="none",Fe._canvas.style.flexShrink="0",Fe._canvas.width=0,Fe._canvas.height=0,Fe._canvas.tabIndex=-1,Fe._screen.appendChild(Fe._canvas),Fe._cursor=new e.default,Fe._cursorImage=Ne.cursors.none,Fe._decoders[d.encodings.encodingRaw]=new g.default,Fe._decoders[d.encodings.encodingCopyRect]=new v.default,Fe._decoders[d.encodings.encodingRRE]=new b.default,Fe._decoders[d.encodings.encodingHextile]=new S.default,Fe._decoders[d.encodings.encodingTight]=new E.default,Fe._decoders[d.encodings.encodingTightPNG]=new C.default;try{Fe._display=new u.default(Fe._canvas)}catch(it){throw p.Error("Display exception: "+it),it}return Fe._display.onflush=Fe._onFlush.bind(j(Fe)),Fe._keyboard=new t.default(Fe._canvas),Fe._keyboard.onkeyevent=Fe._handleKeyEvent.bind(j(Fe)),Fe._gestures=new o.default,Fe._sock=new l.default,Fe._sock.on("message",function(){Fe._handleMessage()}),Fe._sock.on("open",function(){Fe._rfbConnectionState==="connecting"&&Fe._rfbInitState===""?(Fe._rfbInitState="ProtocolVersion",p.Debug("Starting VNC handshake")):Fe._fail("Unexpected server connection while "+Fe._rfbConnectionState)}),Fe._sock.on("close",function(it){p.Debug("WebSocket on-close event");var Ct="";it.code&&(Ct="(code: "+it.code,it.reason&&(Ct+=", reason: "+it.reason),Ct+=")");switch(Fe._rfbConnectionState){case"connecting":Fe._fail("Connection closed "+Ct);break;case"connected":Fe._updateConnectionState("disconnecting"),Fe._updateConnectionState("disconnected");break;case"disconnecting":Fe._updateConnectionState("disconnected");break;case"disconnected":Fe._fail("Unexpected server disconnect when already disconnected "+Ct);break;default:Fe._fail("Unexpected server disconnect before connecting "+Ct);break}Fe._sock.off("close")}),Fe._sock.on("error",function(it){return p.Warn("WebSocket on-error event")}),setTimeout(Fe._updateConnectionState.bind(j(Fe),"connecting")),p.Debug("<< RFB.constructor"),Fe.dragViewport=!1,Fe.focusOnClick=!0,Fe._viewOnly=!1,Fe._clipViewport=!1,Fe._scaleViewport=!1,Fe._resizeSession=!1,Fe._showDotCursor=!1,Ce.showDotCursor!==void 0&&(p.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Fe._showDotCursor=Ce.showDotCursor),Fe._qualityLevel=6,Fe._compressionLevel=2,Fe}return M(Ne,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(me){this._rfbCredentials=me,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(me,Ce,Fe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Fe===void 0){this.sendKey(me,Ce,!0),this.sendKey(me,Ce,!1);return}var it=c.default[Ce];if(this._qemuExtKeyEventSupported&&it)me=me||0,p.Info("Sending key ("+(Fe?"down":"up")+"): keysym "+me+", scancode "+it),Ne.messages.QEMUExtendedKeyEvent(this._sock,me,Fe,it);else{if(!me)return;p.Info("Sending keysym ("+(Fe?"down":"up")+"): "+me),Ne.messages.keyEvent(this._sock,me,Fe?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(me){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Ee]&&this._clipboardServerCapabilitiesActions[J])this._clipboardText=me,Ne.messages.extendedClipboardNotify(this._sock,[Ee]);else{for(var Ce=new Uint8Array(me.length),Fe=0;Fe<me.length;Fe++)Ce[Fe]=me.charCodeAt(Fe);Ne.messages.clientCutText(this._sock,Ce)}}},{key:"_connect",value:function(){p.Debug(">> RFB.connect"),p.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(me){me.name==="SyntaxError"?this._fail("Invalid host or port ("+me+")"):this._fail("Error when opening socket ("+me+")")}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(me){if(!(me.name==="NotFoundError"))throw me}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),p.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(me){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(me){this._fbName=me,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(me){var Ce=this;window.requestAnimationFrame(function(){Ce._updateClip(),Ce._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var me=this._display.clipViewport,Ce=this._clipViewport;if(this._scaleViewport&&(Ce=!1),me!==Ce&&(this._display.clipViewport=Ce),Ce){var Fe=this._screenSize();this._display.viewportChangeSize(Fe.w,Fe.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var me=this._screenSize();this._display.autoscale(me.w,me.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var me=this._screenSize();Ne.messages.setDesktopSize(this._sock,Math.floor(me.w),Math.floor(me.h),this._screenID,this._screenFlags),p.Debug("Requested new desktop size: "+me.w+"x"+me.h)}},{key:"_screenSize",value:function(){var me=this._screen.getBoundingClientRect();return{w:me.width,h:me.height}}},{key:"_fixScrollbars",value:function(){var me=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=me}},{key:"_updateConnectionState",value:function(me){var Ce=this,Fe=this._rfbConnectionState;if(me===Fe){p.Debug("Already in state '"+me+"', ignoring");return}if(Fe==="disconnected"){p.Error("Tried changing state of a disconnected RFB object");return}switch(me){case"connected":if(Fe!=="connecting"){p.Error("Bad transition to connected state, previous connection state: "+Fe);return}break;case"disconnected":if(Fe!=="disconnecting"){p.Error("Bad transition to disconnected state, previous connection state: "+Fe);return}break;case"connecting":if(Fe!==""){p.Error("Bad transition to connecting state, previous connection state: "+Fe);return}break;case"disconnecting":if(Fe!=="connected"&&Fe!=="connecting"){p.Error("Bad transition to disconnecting state, previous connection state: "+Fe);return}break;default:p.Error("Unknown connection state: "+me);return}this._rfbConnectionState=me,p.Debug("New state '"+me+"', was '"+Fe+"'."),this._disconnTimer&&me!=="disconnecting"&&(p.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(me){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."),Ce._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(me){switch(this._rfbConnectionState){case"disconnecting":p.Error("Failed when disconnecting: "+me);break;case"connected":p.Error("Failed while connected: "+me);break;case"connecting":p.Error("Failed when connecting: "+me);break;default:p.Error("RFB failure: "+me);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(me,Ce){this._capabilities[me]=Ce,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(me,Ce,Fe){this.sendKey(me,Ce,Fe)}},{key:"_handleMouse",value:function(me){if(me.type==="click"&&me.target!==this._canvas)return;if(me.stopPropagation(),me.preventDefault(),me.type==="click"||me.type==="contextmenu")return;var Ce=(0,m.clientToElement)(me.clientX,me.clientY,this._canvas);switch(me.type){case"mousedown":(0,f.setCapture)(this._canvas),this._handleMouseButton(Ce.x,Ce.y,!0,1<<me.button);break;case"mouseup":this._handleMouseButton(Ce.x,Ce.y,!1,1<<me.button);break;case"mousemove":this._handleMouseMove(Ce.x,Ce.y);break}}},{key:"_handleMouseButton",value:function(me,Ce,Fe,it){if(this.dragViewport)if(Fe&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:me,y:Ce},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(me,Ce,it)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(me,Ce,this._mouseButtonMask)),Fe?this._mouseButtonMask|=it:this._mouseButtonMask&=~it,this._sendMouse(me,Ce,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(me,Ce){var Fe=this;if(this._viewportDragging){var it=this._viewportDragPos.x-me,Ct=this._viewportDragPos.y-Ce;(this._viewportHasMoved||Math.abs(it)>A.dragThreshold||Math.abs(Ct)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:me,y:Ce},this._display.viewportChangePos(it,Ct));return}if(this._mousePos={x:me,y:Ce},this._mouseMoveTimer==null){var mt=Date.now()-this._mouseLastMoveTime;mt>G?(this._sendMouse(me,Ce,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Fe._handleDelayedMouseMove()},G-mt)}}},{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(me,Ce,Fe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ne.messages.pointerEvent(this._sock,this._display.absX(me),this._display.absY(Ce),Fe)}},{key:"_handleWheel",value:function(me){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;me.stopPropagation(),me.preventDefault();var Ce=(0,m.clientToElement)(me.clientX,me.clientY,this._canvas),Fe=me.deltaX,it=me.deltaY;me.deltaMode!==0&&(Fe*=ee,it*=ee),this._accumulatedWheelDeltaX+=Fe,this._accumulatedWheelDeltaY+=it,Math.abs(this._accumulatedWheelDeltaX)>=re&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(Ce.x,Ce.y,!0,1<<5),this._handleMouseButton(Ce.x,Ce.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(Ce.x,Ce.y,!0,1<<6),this._handleMouseButton(Ce.x,Ce.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=re&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(Ce.x,Ce.y,!0,1<<3),this._handleMouseButton(Ce.x,Ce.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(Ce.x,Ce.y,!0,1<<4),this._handleMouseButton(Ce.x,Ce.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(me,Ce,Fe){this._handleMouseMove(Ce,Fe),this._cursor.move(me.detail.clientX,me.detail.clientY)}},{key:"_handleTapEvent",value:function(me,Ce){var Fe=(0,m.clientToElement)(me.detail.clientX,me.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<be&&this._gestureFirstDoubleTapEv.detail.type===me.detail.type){var it=this._gestureFirstDoubleTapEv.detail.clientX-me.detail.clientX,Ct=this._gestureFirstDoubleTapEv.detail.clientY-me.detail.clientY,mt=Math.hypot(it,Ct);mt<_e?Fe=(0,m.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=me}else this._gestureFirstDoubleTapEv=me;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Fe.x,Fe.y),this._handleMouseButton(Fe.x,Fe.y,!0,Ce),this._handleMouseButton(Fe.x,Fe.y,!1,Ce)}},{key:"_handleGesture",value:function(me){var Ce,Fe=(0,m.clientToElement)(me.detail.clientX,me.detail.clientY,this._canvas);switch(me.type){case"gesturestart":switch(me.detail.type){case"onetap":this._handleTapEvent(me,1);break;case"twotap":this._handleTapEvent(me,4);break;case"threetap":this._handleTapEvent(me,2);break;case"drag":this._fakeMouseMove(me,Fe.x,Fe.y),this._handleMouseButton(Fe.x,Fe.y,!0,1);break;case"longpress":this._fakeMouseMove(me,Fe.x,Fe.y),this._handleMouseButton(Fe.x,Fe.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=me.detail.magnitudeX,this._gestureLastMagnitudeY=me.detail.magnitudeY,this._fakeMouseMove(me,Fe.x,Fe.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(me.detail.magnitudeX,me.detail.magnitudeY),this._fakeMouseMove(me,Fe.x,Fe.y);break}break;case"gesturemove":switch(me.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(me,Fe.x,Fe.y);break;case"twodrag":for(this._fakeMouseMove(me,Fe.x,Fe.y);me.detail.magnitudeY-this._gestureLastMagnitudeY>$;)this._handleMouseButton(Fe.x,Fe.y,!0,8),this._handleMouseButton(Fe.x,Fe.y,!1,8),this._gestureLastMagnitudeY+=$;for(;me.detail.magnitudeY-this._gestureLastMagnitudeY<-$;)this._handleMouseButton(Fe.x,Fe.y,!0,16),this._handleMouseButton(Fe.x,Fe.y,!1,16),this._gestureLastMagnitudeY-=$;for(;me.detail.magnitudeX-this._gestureLastMagnitudeX>$;)this._handleMouseButton(Fe.x,Fe.y,!0,32),this._handleMouseButton(Fe.x,Fe.y,!1,32),this._gestureLastMagnitudeX+=$;for(;me.detail.magnitudeX-this._gestureLastMagnitudeX<-$;)this._handleMouseButton(Fe.x,Fe.y,!0,64),this._handleMouseButton(Fe.x,Fe.y,!1,64),this._gestureLastMagnitudeX-=$;break;case"pinch":if(this._fakeMouseMove(me,Fe.x,Fe.y),Ce=Math.hypot(me.detail.magnitudeX,me.detail.magnitudeY),Math.abs(Ce-this._gestureLastMagnitudeX)>ue){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);Ce-this._gestureLastMagnitudeX>ue;)this._handleMouseButton(Fe.x,Fe.y,!0,8),this._handleMouseButton(Fe.x,Fe.y,!1,8),this._gestureLastMagnitudeX+=ue;for(;Ce-this._gestureLastMagnitudeX<-ue;)this._handleMouseButton(Fe.x,Fe.y,!0,16),this._handleMouseButton(Fe.x,Fe.y,!1,16),this._gestureLastMagnitudeX-=ue}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(me.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(me,Fe.x,Fe.y),this._handleMouseButton(Fe.x,Fe.y,!1,1);break;case"longpress":this._fakeMouseMove(me,Fe.x,Fe.y),this._handleMouseButton(Fe.x,Fe.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var me=this._sock.rQshiftStr(12).substr(4,7);p.Info("Server ProtocolVersion: "+me);var Ce=0;switch(me){case"000.000":Ce=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 "+me)}if(Ce){for(var Fe="ID:"+this._repeaterID;Fe.length<250;)Fe+="\0";return this._sock.sendString(Fe),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var it="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+it+`
`),p.Debug("Sent ProtocolVersion: "+it),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function me(it,Ct){for(var mt=0;mt<Ct.length;mt++)if(Ct[mt]===it)return!0;return!1}if(this._rfbVersion>=3.7){var Ce=this._sock.rQshift8();if(this._sock.rQwait("security type",Ce,1))return!1;if(Ce===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Fe=this._sock.rQshiftBytes(Ce);if(p.Debug("Server security types: "+Fe),me(1,Fe))this._rfbAuthScheme=1;else if(me(22,Fe))this._rfbAuthScheme=22;else if(me(16,Fe))this._rfbAuthScheme=16;else if(me(2,Fe))this._rfbAuthScheme=2;else if(me(19,Fe))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Fe+")");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 me=this._sock.rQshift32(),Ce="";if(me>0){if(this._sock.rQwait("reason",me,4))return!1;Ce=this._sock.rQshiftStr(me)}return Ce!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:Ce}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+Ce+")")):(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 me=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(me),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var me=this._sock.rQshift8(),Ce=this._sock.rQshift8();if(!(me==0&&Ce==2))return this._fail("Unsupported VeNCrypt version "+me+"."+Ce);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Fe=this._sock.rQshift8();if(Fe!=0)return this._fail("VeNCrypt failure "+Fe);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var it=this._sock.rQshift8();if(it<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=it,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var Ct=[],mt=0;mt<this._rfbVeNCryptSubtypesLength;mt++)Ct.push(this._sock.rQshift32());if(Ct.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 Ve=(0,x.encodeUTF8)(this._rfbCredentials.username),or=(0,x.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Ve.length]),this._sock.send([0,0,0,or.length]),this._sock.sendString(Ve),this._sock.sendString(or),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 me=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),Ce=Ne.genDES(this._rfbCredentials.password,me);return this._sock.send(Ce),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(me){for(var Ce={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Fe={},it=0;it<me;it++){var Ct=this._sock.rQshift32(),mt=this._sock.rQshiftStr(4),Ve=this._sock.rQshiftStr(8);Fe[Ct]={vendor:mt,signature:Ve}}return p.Debug("Server Tight tunnel types: "+Fe),Fe[1]&&Fe[1].vendor==="SICR"&&Fe[1].signature==="SCHANNEL"&&(p.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Fe[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Fe[0]?Fe[0].vendor!=Ce[0].vendor||Fe[0].signature!=Ce[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(p.Debug("Selected tunnel type: "+Ce[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 me=this._sock.rQshift32();if(me>0&&this._sock.rQwait("tunnel capabilities",16*me,4))return!1;if(this._rfbTightVNC=!0,me>0)return this._negotiateTightTunnels(me),!1}if(this._sock.rQwait("sub auth count",4))return!1;var Ce=this._sock.rQshift32();if(Ce===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*Ce,4))return!1;for(var Fe={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},it=[],Ct=0;Ct<Ce;Ct++){this._sock.rQshift32();var mt=this._sock.rQshiftStr(12);it.push(mt)}p.Debug("Server Tight authentication types: "+it);for(var Ve in Fe)if(it.indexOf(Ve)!=-1){this._sock.send([0,0,0,Fe[Ve]]),p.Debug("Selected authentication type: "+Ve);switch(Ve){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: "+Ve+")")}}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 me=this._sock.rQshift32();return me===0?(this._rfbInitState="ClientInitialisation",p.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=me,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:me}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var me=this._sock.rQshift16(),Ce=this._sock.rQshift16(),Fe=this._sock.rQshift8(),it=this._sock.rQshift8(),Ct=this._sock.rQshift8(),mt=this._sock.rQshift8(),Ve=this._sock.rQshift16(),or=this._sock.rQshift16(),dt=this._sock.rQshift16(),Yt=this._sock.rQshift8(),hr=this._sock.rQshift8(),Gt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Pt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Pt,24))return!1;var Xt=this._sock.rQshiftStr(Pt);if(Xt=(0,x.decodeUTF8)(Xt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Pt))return!1;var Ge=this._sock.rQshift16(),pe=this._sock.rQshift16(),se=this._sock.rQshift16();this._sock.rQskipBytes(2);var lt=(Ge+pe+se)*16;if(this._sock.rQwait("TightVNC extended server init header",lt,32+Pt))return!1;this._sock.rQskipBytes(16*Ge),this._sock.rQskipBytes(16*pe),this._sock.rQskipBytes(16*se)}return p.Info("Screen: "+me+"x"+Ce+", bpp: "+Fe+", depth: "+it+", bigEndian: "+Ct+", trueColor: "+mt+", redMax: "+Ve+", greenMax: "+or+", blueMax: "+dt+", redShift: "+Yt+", greenShift: "+hr+", blueShift: "+Gt),this._setDesktopName(Xt),this._resize(me,Ce),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),Ne.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ne.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var me=[];me.push(d.encodings.encodingCopyRect),this._fbDepth==24&&(me.push(d.encodings.encodingTight),me.push(d.encodings.encodingTightPNG),me.push(d.encodings.encodingHextile),me.push(d.encodings.encodingRRE)),me.push(d.encodings.encodingRaw),me.push(d.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),me.push(d.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),me.push(d.encodings.pseudoEncodingDesktopSize),me.push(d.encodings.pseudoEncodingLastRect),me.push(d.encodings.pseudoEncodingQEMUExtendedKeyEvent),me.push(d.encodings.pseudoEncodingExtendedDesktopSize),me.push(d.encodings.pseudoEncodingXvp),me.push(d.encodings.pseudoEncodingFence),me.push(d.encodings.pseudoEncodingContinuousUpdates),me.push(d.encodings.pseudoEncodingDesktopName),me.push(d.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(me.push(d.encodings.pseudoEncodingVMwareCursor),me.push(d.encodings.pseudoEncodingCursor)),Ne.messages.clientEncodings(this._sock,me)}},{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 me=this._sock.rQshift32();if(me=(0,y.toSigned32bit)(me),this._sock.rQwait("ServerCutText content",Math.abs(me),8))return!1;if(me>=0){var Ce=this._sock.rQshiftStr(me);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Ce}}))}else{me=Math.abs(me);var Fe=this._sock.rQshift32(),it=Fe&65535,Ct=Fe&4278190080,mt=!!(Ct&oe);if(mt){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Ve=0;Ve<=15;Ve++){var or=1<<Ve;it&or&&(this._clipboardServerCapabilitiesFormats[or]=!0,this._sock.rQshift32())}for(var dt=24;dt<=31;dt++){var Yt=1<<dt;this._clipboardServerCapabilitiesActions[Yt]=!!(Ct&Yt)}var hr=[oe,ot,he,J,Y];Ne.messages.extendedClipboardCaps(this._sock,hr,{extendedClipboardFormatText:0})}else if(Ct===ot){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(it&Ee&&Ne.messages.extendedClipboardProvide(this._sock,[Ee],[this._clipboardText]))}else if(Ct===he){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?Ne.messages.extendedClipboardNotify(this._sock,[Ee]):Ne.messages.extendedClipboardNotify(this._sock,[]))}else if(Ct===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[ot]&&(it&Ee&&Ne.messages.extendedClipboardRequest(this._sock,[Ee]))}else if(Ct===Y){if(this._viewOnly)return!0;if(!(it&Ee))return!0;this._clipboardText=null;var Gt=this._sock.rQshiftBytes(me-4),Pt=new a.default,Xt=null;Pt.setInput(Gt);for(var Ge=0;Ge<=15;Ge++){var pe=1<<Ge;if(it&pe){var se=0,lt=Pt.inflate(4);se|=lt[0]<<24,se|=lt[1]<<16,se|=lt[2]<<8,se|=lt[3];var Ze=Pt.inflate(se);pe===Ee&&(Xt=Ze)}}if(Pt.setInput(null),Xt!==null){for(var de="",_t=0;_t<Xt.length;_t++)de+=String.fromCharCode(Xt[_t]);Xt=de,Xt=(0,x.decodeUTF8)(Xt),Xt.length>0&&Xt.charAt(Xt.length-1)==="\0"&&(Xt=Xt.slice(0,-1)),Xt=Xt.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Xt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+Ct)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var me=this._sock.rQshift32(),Ce=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",Ce,9))return!1;Ce>64&&(p.Warn("Bad payload length ("+Ce+") in fence response"),Ce=64);var Fe=this._sock.rQshiftStr(Ce);return this._supportsFence=!0,me&1<<31?(me&=1<<0|1<<1,Ne.messages.clientFence(this._sock,me,Fe),!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 me=this._sock.rQshift8(),Ce=this._sock.rQshift8();switch(Ce){case 0:p.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=me,p.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+Ce+")");break}return!0}},{key:"_normalMsg",value:function(){var me;this._FBU.rects>0?me=0:me=this._sock.rQshift8();var Ce,Fe;switch(me){case 0:return Fe=this._framebufferUpdate(),Fe&&!this._enabledContinuousUpdates&&Ne.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Fe;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 Ce=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,Ce&&(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 "+me+")"),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 me=this._sock.rQshiftBytes(12);this._FBU.x=(me[0]<<8)+me[1],this._FBU.y=(me[2]<<8)+me[3],this._FBU.width=(me[4]<<8)+me[5],this._FBU.height=(me[6]<<8)+me[7],this._FBU.encoding=parseInt((me[8]<<24)+(me[9]<<16)+(me[10]<<8)+me[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 d.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case d.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case d.encodings.pseudoEncodingCursor:return this._handleCursor();case d.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var me=document.createEvent("keyboardEvent");me.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(Ce){}return!0;case d.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case d.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case d.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var me=this._FBU.x,Ce=this._FBU.y,Fe=this._FBU.width,it=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var Ct=this._sock.rQshift8();this._sock.rQshift8();var mt,Ve=4;if(Ct==0){var or=4294967040|0;if(mt=new Array(Fe*it*Ve),this._sock.rQwait("VMware cursor classic encoding",Fe*it*Ve*2,2))return!1;for(var dt=new Array(Fe*it),Yt=0;Yt<Fe*it;Yt++)dt[Yt]=this._sock.rQshift32();for(var hr=new Array(Fe*it),Gt=0;Gt<Fe*it;Gt++)hr[Gt]=this._sock.rQshift32();for(var Pt=0;Pt<Fe*it;Pt++)if(dt[Pt]==0){var Xt=hr[Pt],Ge=Xt>>8&255,pe=Xt>>16&255,se=Xt>>24&255;mt[Pt*Ve]=Ge,mt[Pt*Ve+1]=pe,mt[Pt*Ve+2]=se,mt[Pt*Ve+3]=255}else(dt[Pt]&or)==or?hr[Pt]==0?(mt[Pt*Ve]=0,mt[Pt*Ve+1]=0,mt[Pt*Ve+2]=0,mt[Pt*Ve+3]=0):((hr[Pt]&or)==or,mt[Pt*Ve]=0,mt[Pt*Ve+1]=0,mt[Pt*Ve+2]=0,mt[Pt*Ve+3]=255):(mt[Pt*Ve]=0,mt[Pt*Ve+1]=0,mt[Pt*Ve+2]=0,mt[Pt*Ve+3]=255)}else if(Ct==1){if(this._sock.rQwait("VMware cursor alpha encoding",Fe*it*4,2))return!1;mt=new Array(Fe*it*Ve);for(var lt=0;lt<Fe*it;lt++){var Ze=this._sock.rQshift32();mt[lt*4]=Ze>>24&255,mt[lt*4+1]=Ze>>16&255,mt[lt*4+2]=Ze>>8&255,mt[lt*4+3]=Ze&255}}else return p.Warn("The given cursor type is not supported: "+Ct+" given."),!1;return this._updateCursor(mt,me,Ce,Fe,it),!0}},{key:"_handleCursor",value:function(){var me=this._FBU.x,Ce=this._FBU.y,Fe=this._FBU.width,it=this._FBU.height,Ct=Fe*it*4,mt=Math.ceil(Fe/8)*it,Ve=Ct+mt;if(this._sock.rQwait("cursor encoding",Ve))return!1;for(var or=this._sock.rQshiftBytes(Ct),dt=this._sock.rQshiftBytes(mt),Yt=new Uint8Array(Fe*it*4),hr=0,Gt=0;Gt<it;Gt++)for(var Pt=0;Pt<Fe;Pt++){var Xt=Gt*Math.ceil(Fe/8)+Math.floor(Pt/8),Ge=dt[Xt]<<Pt%8&128?255:0;Yt[hr]=or[hr+2],Yt[hr+1]=or[hr+1],Yt[hr+2]=or[hr],Yt[hr+3]=Ge,hr+=4}return this._updateCursor(Yt,me,Ce,Fe,it),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var me=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",me,4))return!1;var Ce=this._sock.rQshiftStr(me);return Ce=(0,x.decodeUTF8)(Ce,!0),this._setDesktopName(Ce),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var me=this._sock.rQpeek8(),Ce=4+me*16;if(this._sock.rQwait("ExtendedDesktopSize",Ce))return!1;var Fe=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Fe&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var it=0;it<me;it+=1)it===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 Ct="";switch(this._FBU.y){case 1:Ct="Resize is administratively prohibited";break;case 2:Ct="Out of resources";break;case 3:Ct="Invalid screen layout";break;default:Ct="Unknown reason";break}p.Warn("Server did not accept the resize request: "+Ct)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var me=this._decoders[this._FBU.encoding];if(!me)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return me.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(Ce){return this._fail("Error decoding rect: "+Ce),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Ne.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(me,Ce){this._fbWidth=me,this._fbHeight=Ce,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(me,Ce){if(this._rfbXvpVer<me)return;p.Info("Sending XVP operation "+Ce+" (version "+me+")"),Ne.messages.xvpOp(this._sock,me,Ce)}},{key:"_updateCursor",value:function(me,Ce,Fe,it,Ct){this._cursorImage={rgbaPixels:me,hotx:Ce,hoty:Fe,w:it,h:Ct},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var me=3;me<this._cursorImage.rgbaPixels.length;me+=4)if(this._cursorImage.rgbaPixels[me])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var me=this._shouldShowDotCursor()?Ne.cursors.dot:this._cursorImage;this._cursor.change(me.rgbaPixels,me.hotx,me.hoty,me.w,me.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(me){this._viewOnly=me,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(me?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(me){p.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(me){this._clipViewport=me,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(me){this._scaleViewport=me,me&&this._clipViewport&&this._updateClip(),this._updateScale(),!me&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(me){this._resizeSession=me,me&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(me){this._showDotCursor=me,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(me){this._screen.style.background=me}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(me){if(!Number.isInteger(me)||me<0||me>9){p.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===me)return;this._qualityLevel=me,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(me){if(!Number.isInteger(me)||me<0||me>9){p.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===me)return;this._compressionLevel=me,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(me,Ce){var Fe=me.split("").map(function(it){return it.charCodeAt(0)});return new r.default(Fe).encrypt(Ce)}}]),Ne}(h.default);D.default=q,q.messages={keyEvent:function(we,Ne,je){var me=we._sQ,Ce=we._sQlen;me[Ce]=4,me[Ce+1]=je,me[Ce+2]=0,me[Ce+3]=0,me[Ce+4]=Ne>>24,me[Ce+5]=Ne>>16,me[Ce+6]=Ne>>8,me[Ce+7]=Ne,we._sQlen+=8,we.flush()},QEMUExtendedKeyEvent:function(we,Ne,je,me){function Ce(mt){var Ve=me>>8,or=me&255;return Ve===224&&or<127?or|128:mt}var Fe=we._sQ,it=we._sQlen;Fe[it]=255,Fe[it+1]=0,Fe[it+2]=je>>8,Fe[it+3]=je,Fe[it+4]=Ne>>24,Fe[it+5]=Ne>>16,Fe[it+6]=Ne>>8,Fe[it+7]=Ne;var Ct=Ce(me);Fe[it+8]=Ct>>24,Fe[it+9]=Ct>>16,Fe[it+10]=Ct>>8,Fe[it+11]=Ct,we._sQlen+=12,we.flush()},pointerEvent:function(we,Ne,je,me){var Ce=we._sQ,Fe=we._sQlen;Ce[Fe]=5,Ce[Fe+1]=me,Ce[Fe+2]=Ne>>8,Ce[Fe+3]=Ne,Ce[Fe+4]=je>>8,Ce[Fe+5]=je,we._sQlen+=6,we.flush()},_buildExtendedClipboardFlags:function(we,Ne){for(var je=new Uint8Array(4),me=0,Ce=0,Fe=0;Fe<we.length;Fe++)Ce|=we[Fe];for(var it=0;it<Ne.length;it++)me|=Ne[it];return je[0]=Ce>>24,je[1]=0,je[2]=0,je[3]=me,je},extendedClipboardProvide:function(we,Ne,je){for(var me=new i.default,Ce=[],Fe=0;Fe<Ne.length;Fe++){if(Ne[Fe]!=Ee)throw new Error("Unsupported extended clipboard format for Provide message.");je[Fe]=je[Fe].replace(/\r\n|\r|\n/gm,`\r
`);var it=(0,x.encodeUTF8)(je[Fe]+"\0");Ce.push(it.length>>24&255,it.length>>16&255,it.length>>8&255,it.length&255);for(var Ct=0;Ct<it.length;Ct++)Ce.push(it.charCodeAt(Ct))}var mt=me.deflate(new Uint8Array(Ce)),Ve=new Uint8Array(4+mt.length);Ve.set(q.messages._buildExtendedClipboardFlags([Y],Ne)),Ve.set(mt,4),q.messages.clientCutText(we,Ve,!0)},extendedClipboardNotify:function(we,Ne){var je=q.messages._buildExtendedClipboardFlags([J],Ne);q.messages.clientCutText(we,je,!0)},extendedClipboardRequest:function(we,Ne){var je=q.messages._buildExtendedClipboardFlags([ot],Ne);q.messages.clientCutText(we,je,!0)},extendedClipboardCaps:function(we,Ne,je){var me=Object.keys(je),Ce=new Uint8Array(4+4*me.length);me.map(function(Ct){return parseInt(Ct)}),me.sort(function(Ct,mt){return Ct-mt}),Ce.set(q.messages._buildExtendedClipboardFlags(Ne,[]));for(var Fe=4,it=0;it<me.length;it++)Ce[Fe]=je[me[it]]>>24,Ce[Fe+1]=je[me[it]]>>16,Ce[Fe+2]=je[me[it]]>>8,Ce[Fe+3]=je[me[it]]>>0,Fe+=4,Ce[3]|=1<<me[it];q.messages.clientCutText(we,Ce,!0)},clientCutText:function(we,Ne){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,me=we._sQ,Ce=we._sQlen;me[Ce]=6,me[Ce+1]=0,me[Ce+2]=0,me[Ce+3]=0;var Fe;je?Fe=(0,y.toUnsigned32bit)(-Ne.length):Fe=Ne.length,me[Ce+4]=Fe>>24,me[Ce+5]=Fe>>16,me[Ce+6]=Fe>>8,me[Ce+7]=Fe,we._sQlen+=8;for(var it=0,Ct=Ne.length;Ct>0;){for(var mt=Math.min(Ct,we._sQbufferSize-we._sQlen),Ve=0;Ve<mt;Ve++)me[we._sQlen+Ve]=Ne[it+Ve];we._sQlen+=mt,we.flush(),Ct-=mt,it+=mt}},setDesktopSize:function(we,Ne,je,me,Ce){var Fe=we._sQ,it=we._sQlen;Fe[it]=251,Fe[it+1]=0,Fe[it+2]=Ne>>8,Fe[it+3]=Ne,Fe[it+4]=je>>8,Fe[it+5]=je,Fe[it+6]=1,Fe[it+7]=0,Fe[it+8]=me>>24,Fe[it+9]=me>>16,Fe[it+10]=me>>8,Fe[it+11]=me,Fe[it+12]=0,Fe[it+13]=0,Fe[it+14]=0,Fe[it+15]=0,Fe[it+16]=Ne>>8,Fe[it+17]=Ne,Fe[it+18]=je>>8,Fe[it+19]=je,Fe[it+20]=Ce>>24,Fe[it+21]=Ce>>16,Fe[it+22]=Ce>>8,Fe[it+23]=Ce,we._sQlen+=24,we.flush()},clientFence:function(we,Ne,je){var me=we._sQ,Ce=we._sQlen;me[Ce]=248,me[Ce+1]=0,me[Ce+2]=0,me[Ce+3]=0,me[Ce+4]=Ne>>24,me[Ce+5]=Ne>>16,me[Ce+6]=Ne>>8,me[Ce+7]=Ne;var Fe=je.length;me[Ce+8]=Fe;for(var it=0;it<Fe;it++)me[Ce+9+it]=je.charCodeAt(it);we._sQlen+=9+Fe,we.flush()},enableContinuousUpdates:function(we,Ne,je,me,Ce,Fe){var it=we._sQ,Ct=we._sQlen;it[Ct]=150,it[Ct+1]=Ne,it[Ct+2]=je>>8,it[Ct+3]=je,it[Ct+4]=me>>8,it[Ct+5]=me,it[Ct+6]=Ce>>8,it[Ct+7]=Ce,it[Ct+8]=Fe>>8,it[Ct+9]=Fe,we._sQlen+=10,we.flush()},pixelFormat:function(we,Ne,je){var me=we._sQ,Ce=we._sQlen,Fe;Ne>16?Fe=32:Ne>8?Fe=16:Fe=8;var it=Math.floor(Ne/3);me[Ce]=0,me[Ce+1]=0,me[Ce+2]=0,me[Ce+3]=0,me[Ce+4]=Fe,me[Ce+5]=Ne,me[Ce+6]=0,me[Ce+7]=je?1:0,me[Ce+8]=0,me[Ce+9]=(1<<it)-1,me[Ce+10]=0,me[Ce+11]=(1<<it)-1,me[Ce+12]=0,me[Ce+13]=(1<<it)-1,me[Ce+14]=it*2,me[Ce+15]=it*1,me[Ce+16]=it*0,me[Ce+17]=0,me[Ce+18]=0,me[Ce+19]=0,we._sQlen+=20,we.flush()},clientEncodings:function(we,Ne){var je=we._sQ,me=we._sQlen;je[me]=2,je[me+1]=0,je[me+2]=Ne.length>>8,je[me+3]=Ne.length;for(var Ce=me+4,Fe=0;Fe<Ne.length;Fe++){var it=Ne[Fe];je[Ce]=it>>24,je[Ce+1]=it>>16,je[Ce+2]=it>>8,je[Ce+3]=it,Ce+=4}we._sQlen+=Ce-me,we.flush()},fbUpdateRequest:function(we,Ne,je,me,Ce,Fe){var it=we._sQ,Ct=we._sQlen;typeof je=="undefined"&&(je=0),typeof me=="undefined"&&(me=0),it[Ct]=3,it[Ct+1]=Ne?1:0,it[Ct+2]=je>>8&255,it[Ct+3]=je&255,it[Ct+4]=me>>8&255,it[Ct+5]=me&255,it[Ct+6]=Ce>>8&255,it[Ct+7]=Ce&255,it[Ct+8]=Fe>>8&255,it[Ct+9]=Fe&255,we._sQlen+=10,we.flush()},xvpOp:function(we,Ne,je){var me=we._sQ,Ce=we._sQlen;me[Ce]=250,me[Ce+1]=0,me[Ce+2]=Ne,me[Ce+3]=je,we._sQlen+=4,we.flush()}},q.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(k,D,n){(function(y){y(n("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},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(A,m){var f=A.indentUnit,h={},u=m.htmlMode?p:x;for(var a in u)h[a]=u[a];for(var a in m)h[a]=m[a];var i,t;function o(I,R){function M(X){return R.tokenize=X,X(I,R)}var F=I.next();if(F=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?M(r("atom","]]>")):null:I.match("--")?M(r("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),M(s(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),R.tokenize=r("meta","?>"),"meta"):(i=I.eat("/")?"closeTag":"openTag",R.tokenize=e,"tag bracket");if(F=="&"){var P;return I.eat("#")?I.eat("x")?P=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):P=I.eatWhile(/[\d]/)&&I.eat(";"):P=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),P?"atom":"error"}else return I.eatWhile(/[^&<]/),null}o.isInText=!0;function e(I,R){var M=I.next();if(M==">"||M=="/"&&I.eat(">"))return R.tokenize=o,i=M==">"?"endTag":"selfcloseTag","tag bracket";if(M=="=")return i="equals",null;if(M=="<"){R.tokenize=o,R.state=v,R.tagName=R.tagStart=null;var F=R.tokenize(I,R);return F?F+" tag error":"tag error"}else return/[\'\"]/.test(M)?(R.tokenize=l(M),R.stringStartCol=I.column(),R.tokenize(I,R)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(I){var R=function(F,P){for(;!F.eol();)if(F.next()==I){P.tokenize=e;break}return"string"};return R.isInAttribute=!0,R}function r(I,R){return function(M,F){for(;!M.eol();){if(M.match(R)){F.tokenize=o;break}M.next()}return I}}function s(I){return function(R,M){for(var F;(F=R.next())!=null;){if(F=="<")return M.tokenize=s(I+1),M.tokenize(R,M);if(F==">")if(I==1){M.tokenize=o;break}else return M.tokenize=s(I-1),M.tokenize(R,M)}return"meta"}}function c(I,R,M){this.prev=I.context,this.tagName=R,this.indent=I.indented,this.startOfLine=M,(h.doNotIndent.hasOwnProperty(R)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function d(I){I.context&&(I.context=I.context.prev)}function g(I,R){for(var M;;){if(!I.context)return;if(M=I.context.tagName,!h.contextGrabbers.hasOwnProperty(M)||!h.contextGrabbers[M].hasOwnProperty(R))return;d(I)}}function v(I,R,M){return I=="openTag"?(M.tagStart=R.column(),b):I=="closeTag"?S:v}function b(I,R,M){return I=="word"?(M.tagName=R.current(),t="tag",_):h.allowMissingTagName&&I=="endTag"?(t="tag bracket",_(I,R,M)):(t="error",b)}function S(I,R,M){if(I=="word"){var F=R.current();return M.context&&M.context.tagName!=F&&h.implicitlyClosed.hasOwnProperty(M.context.tagName)&&d(M),M.context&&M.context.tagName==F||h.matchClosing===!1?(t="tag",E):(t="tag error",C)}else return h.allowMissingTagName&&I=="endTag"?(t="tag bracket",E(I,R,M)):(t="error",C)}function E(I,R,M){return I!="endTag"?(t="error",E):(d(M),v)}function C(I,R,M){return t="error",E(I,R,M)}function _(I,R,M){if(I=="word")return t="attribute",T;if(I=="endTag"||I=="selfcloseTag"){var F=M.tagName,P=M.tagStart;return M.tagName=M.tagStart=null,I=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(F)?g(M,F):(g(M,F),M.context=new c(M,F,P==M.indented)),v}return t="error",_}function T(I,R,M){return I=="equals"?w:(h.allowMissing||(t="error"),_(I,R,M))}function w(I,R,M){return I=="string"?O:I=="word"&&h.allowUnquoted?(t="string",_):(t="error",_(I,R,M))}function O(I,R,M){return I=="string"?O:_(I,R,M)}return{startState:function(R){var M={tokenize:o,state:v,indented:R||0,tagName:null,tagStart:null,context:null};return R!=null&&(M.baseIndent=R),M},token:function(R,M){if(!M.tagName&&R.sol()&&(M.indented=R.indentation()),R.eatSpace())return null;i=null;var F=M.tokenize(R,M);return(F||i)&&F!="comment"&&(t=null,M.state=M.state(i||F,R,M),t&&(F=t=="error"?F+" error":t)),F},indent:function(R,M,F){var P=R.context;if(R.tokenize.isInAttribute)return R.tagStart==R.indented?R.stringStartCol+1:R.indented+f;if(P&&P.noIndent)return y.Pass;if(R.tokenize!=e&&R.tokenize!=o)return F?F.match(/^(\s*)/)[0].length:0;if(R.tagName)return h.multilineTagIndentPastTag!==!1?R.tagStart+R.tagName.length+2:R.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(M))return 0;var X=M&&/^<(\/)?([\w_:\.-]*)/.exec(M);if(X&&X[1])for(;P;)if(P.tagName==X[2]){P=P.prev;break}else if(h.implicitlyClosed.hasOwnProperty(P.tagName))P=P.prev;else break;else if(X)for(;P;){var B=h.contextGrabbers[P.tagName];if(B&&B.hasOwnProperty(X[2]))P=P.prev;else break}for(;P&&P.prev&&!P.startOfLine;)P=P.prev;return P?P.indent+f:R.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(R){R.state==w&&(R.state=_)},xmlCurrentTag:function(R){return R.tagName?{name:R.tagName,close:R.type=="closeTag"}:null},xmlCurrentContext:function(R){for(var M=[],F=R.context;F;F=F.prev)F.tagName&&M.push(F.tagName);return M.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(k,D,n){var y=n("e4Nc"),p=n("ftKO"),x=n("3A9y");function A(m){var f=-1,h=m==null?0:m.length;for(this.__data__=new y;++f<h;)this.add(m[f])}A.prototype.add=A.prototype.push=p,A.prototype.has=x,k.exports=A},"1n7x":function(k,D,n){(function(y,p){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(A,m){k.exports=m(n("dtIV"),n("wOnQ"))})(self,function(x,A){return function(){var m={"./src/plugin/hyperlinks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.string.link.js"),s=o.n(r),c=o("./src/worker.js"),d=o("./src/utils.js"),g=[],v={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return v.toContainer.call(this).then(function(){if(this.opt.enableLinks){var E=this.prop.container,C=E.querySelectorAll("a"),_=(0,d.unitConvert)(E.getBoundingClientRect(),this.prop.pageSize.k);g=[],Array.prototype.forEach.call(C,function(T){for(var w=T.getClientRects(),O=0;O<w.length;O++){var I=(0,d.unitConvert)(w[O],this.prop.pageSize.k);I.left-=_.left,I.top-=_.top;var R=Math.floor(I.top/this.prop.pageSize.inner.height)+1,M=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,F=this.opt.margin[1]+I.left;g.push({page:R,top:M,left:F,clientRect:I,link:T})}},this)}})},c.default.prototype.toPdf=function(){return v.toPdf.call(this).then(function(){if(this.opt.enableLinks){g.forEach(function(C){this.prop.pdf.setPage(C.page),this.prop.pdf.link(C.left,C.top,C.clientRect.width,C.clientRect.height,{url:C.link.href})},this);var E=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(E)}})}},"./src/plugin/jspdf-plugin.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.symbol.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.description.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.object.to-string.js"),d=o.n(c),g=o("./node_modules/core-js/modules/es.symbol.iterator.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.array.iterator.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.string.iterator.js"),C=o.n(E),_=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),T=o.n(_),w=o("jspdf"),O=o.n(w);function I(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(F){return typeof F}:I=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},I(R)}w.jsPDF.getPageSize=function(R,M,F){if(I(R)==="object"){var P=R;R=P.orientation,M=P.unit||M,F=P.format||F}M=M||"mm",F=F||"a4",R=(""+(R||"P")).toLowerCase();var X=(""+F).toLowerCase(),B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(M){case"pt":var j=1;break;case"mm":var j=72/25.4;break;case"cm":var j=72/2.54;break;case"in":var j=72;break;case"px":var j=72/96;break;case"pc":var j=12;break;case"em":var j=12;break;case"ex":var j=6;break;default:throw"Invalid unit: "+M}if(B.hasOwnProperty(X))var W=B[X][1]/j,z=B[X][0]/j;else try{var W=F[1],z=F[0]}catch(G){throw new Error("Invalid format: "+F)}if(R==="p"||R==="portrait"){if(R="p",z>W){var V=z;z=W,W=V}}else if(R==="l"||R==="landscape"){if(R="l",W>z){var V=z;z=W,W=V}}else throw"Invalid orientation: "+R;var Q={width:z,height:W,unit:M,k:j};return Q},t.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.array.concat.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.array.slice.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.array.join.js"),d=o.n(c),g=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.object.keys.js"),S=o.n(b),E=o("./src/worker.js"),C=o("./src/utils.js"),_={toContainer:E.default.prototype.toContainer};E.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},E.default.prototype.toContainer=function(){return _.toContainer.call(this).then(function(){var O=this.prop.container,I=this.prop.pageSize.inner.px.height,R=[].concat(this.opt.pagebreak.mode),M={avoidAll:R.indexOf("avoid-all")!==-1,css:R.indexOf("css")!==-1,legacy:R.indexOf("legacy")!==-1},F={},P=this;["before","after","avoid"].forEach(function(j){var W=M.avoidAll&&j==="avoid";F[j]=W?[]:[].concat(P.opt.pagebreak[j]||[]),F[j].length>0&&(F[j]=Array.prototype.slice.call(O.querySelectorAll(F[j].join(", "))))});var X=O.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var B=O.querySelectorAll("*");Array.prototype.forEach.call(B,function(W){var z={before:!1,after:M.legacy&&X.indexOf(W)!==-1,avoid:M.avoidAll};if(M.css){var V=window.getComputedStyle(W),Q=["always","page","left","right"],G=["avoid","avoid-page"];z={before:z.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:z.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:z.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(z).forEach(function(_e){z[_e]=z[_e]||F[_e].indexOf(W)!==-1});var re=W.getBoundingClientRect();if(z.avoid&&!z.before){var ee=Math.floor(re.top/I),ue=Math.floor(re.bottom/I),$=Math.abs(re.bottom-re.top)/I;ue!==ee&&$<=1&&(z.before=!0)}if(z.before){var be=(0,C.createElement)("div",{style:{display:"block",height:I-re.top%I+"px"}});W.parentNode.insertBefore(be,W)}if(z.after){var be=(0,C.createElement)("div",{style:{display:"block",height:I-re.bottom%I+"px"}});W.parentNode.insertBefore(be,W.nextSibling)}})})}},"./src/utils.js":function(i,t,o){"use strict";o.r(t),o.d(t,{objType:function(){return R},createElement:function(){return M},cloneNode:function(){return F},unitConvert:function(){return P},toPx:function(){return X}});var e=o("./node_modules/core-js/modules/es.number.constructor.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.symbol.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.symbol.description.js"),d=o.n(c),g=o("./node_modules/core-js/modules/es.object.to-string.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.symbol.iterator.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.array.iterator.js"),C=o.n(E),_=o("./node_modules/core-js/modules/es.string.iterator.js"),T=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),O=o.n(w);function I(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(W){return typeof W}:I=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},I(B)}var R=function(j){var W=I(j);return W==="undefined"?"undefined":W==="string"||j instanceof String?"string":W==="number"||j instanceof Number?"number":W==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":W==="object"?"object":"unknown"},M=function(j,W){var z=document.createElement(j);if(W.className&&(z.className=W.className),W.innerHTML){z.innerHTML=W.innerHTML;for(var V=z.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in W.style)z.style[G]=W.style[G];return z},F=function B(j,W){for(var z=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),V=j.firstChild;V;V=V.nextSibling)(W===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&z.appendChild(B(V,W));return j.nodeType===1&&(j.nodeName==="CANVAS"?(z.width=j.width,z.height=j.height,z.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(z.value=j.value),z.addEventListener("load",function(){z.scrollTop=j.scrollTop,z.scrollLeft=j.scrollLeft},!0)),z},P=function(j,W){if(R(j)==="number")return j*72/96/W;var z={};for(var V in j)z[V]=j[V]*72/96/W;return z},X=function(j,W){return Math.floor(j*W/72*96)}},"./src/worker.js":function(i,t,o){"use strict";o.r(t);var e=o("./node_modules/core-js/modules/es.object.assign.js"),l=o.n(e),r=o("./node_modules/core-js/modules/es.array.map.js"),s=o.n(r),c=o("./node_modules/core-js/modules/es.object.keys.js"),d=o.n(c),g=o("./node_modules/core-js/modules/es.array.concat.js"),v=o.n(g),b=o("./node_modules/core-js/modules/es.object.to-string.js"),S=o.n(b),E=o("./node_modules/core-js/modules/es.regexp.to-string.js"),C=o.n(E),_=o("./node_modules/core-js/modules/es.function.name.js"),T=o.n(_),w=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),O=o.n(w),I=o("jspdf"),R=o.n(I),M=o("html2canvas"),F=o.n(M),P=o("./src/utils.js"),X=o("./node_modules/es6-promise/dist/es6-promise.js"),B=o.n(X),j=B().Promise,W=function z(V){var Q=Object.assign(z.convert(j.resolve()),JSON.parse(JSON.stringify(z.template))),G=z.convert(j.resolve(),Q);return G=G.setProgress(1,z,1,[z]),G=G.set(V),G};W.prototype=Object.create(j.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(re){switch((0,P.objType)(re)){case"string":return"string";case"element":return re.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)"},re={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 ee=(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:re}),this.prop.container.appendChild(ee),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,M(this.prop.container,G)}).then(function(G){var re=this.opt.html2canvas.onrendered||function(){};re(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,re=this.opt,ee=G.height,ue=Math.floor(G.width*this.prop.pageSize.inner.ratio),$=Math.ceil(ee/ue),be=this.prop.pageSize.inner.height,_e=document.createElement("canvas"),Ee=_e.getContext("2d");_e.width=G.width,_e.height=ue,this.prop.pdf=this.prop.pdf||new I.jsPDF(re.jsPDF);for(var Xe=0;Xe<$;Xe++){Xe===$-1&&ee%ue!==0&&(_e.height=ee%ue,be=_e.height*this.prop.pageSize.inner.width/_e.width);var He=_e.width,nt=_e.height;Ee.fillStyle="white",Ee.fillRect(0,0,He,nt),Ee.drawImage(G,0,Xe*ue,He,nt,0,0,He,nt),Xe&&this.prop.pdf.addPage();var Ie=_e.toDataURL("image/"+re.image.type,re.image.quality);this.prop.pdf.addImage(Ie,re.image.type,re.margin[1],re.margin[0],this.prop.pageSize.inner.width,be)}})},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 re=V in W.template.prop?this.prop[V]:this.opt[V];return Q?Q(re):re})},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||I.jsPDF.getPageSize(this.opt.jsPDF),V.hasOwnProperty("inner")||(V.inner={width:V.width-this.opt.margin[1]-this.opt.margin[3],height:V.height-this.opt.margin[0]-this.opt.margin[2]},V.inner.px={width:(0,P.toPx)(V.inner.width,V.k),height:(0,P.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},W.prototype.setProgress=function(V,Q,G,re){return V!=null&&(this.progress.val=V),Q!=null&&(this.progress.state=Q),G!=null&&(this.progress.n=G),re!=null&&(this.progress.stack=re),this.progress.ratio=this.progress.val/this.progress.state,this},W.prototype.updateProgress=function(V,Q,G,re){return this.setProgress(V?this.progress.val+V:null,Q||null,G?this.progress.n+G:null,re?this.progress.stack.concat(re):null)},W.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function(ee,ue){return G.updateProgress(null,null,1,[ee]),j.prototype.then.call(this,function(be){return G.updateProgress(null,ee),be}).then(ee,ue).then(function(be){return G.updateProgress(1),be})})},W.prototype.thenCore=function(V,Q,G){G=G||j.prototype.then;var re=this;V&&(V=V.bind(re)),Q&&(Q=Q.bind(re));var ee=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",ue=ee?re:W.convert(Object.assign({},re),j.prototype),$=G.call(ue,V,Q);return W.convert($,re.__proto__)},W.prototype.thenExternal=function(V,Q){return j.prototype.then.call(this,V,Q)},W.prototype.thenList=function(V){var Q=this;return V.forEach(function(re){Q=Q.thenCore(re)}),Q},W.prototype.catch=function(z){z&&(z=z.bind(this));var V=j.prototype.catch.call(this,z);return W.convert(V,this)},W.prototype.catchExternal=function(V){return j.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(i){i.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/a-possible-prototype.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"./node_modules/core-js/internals/add-to-unscopables.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),l=o("./node_modules/core-js/internals/object-create.js"),r=o("./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)}),i.exports=function(d){c[s][d]=!0}},"./node_modules/core-js/internals/an-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l))throw TypeError(String(l)+" is not an object");return l}},"./node_modules/core-js/internals/array-for-each.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/array-iteration.js").forEach,l=o("./node_modules/core-js/internals/array-method-is-strict.js"),r=l("forEach");i.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(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/to-length.js"),r=o("./node_modules/core-js/internals/to-absolute-index.js"),s=function(d){return function(g,v,b){var S=e(g),E=l(S.length),C=r(b,E),_;if(d&&v!=v){for(;E>C;)if(_=S[C++],_!=_)return!0}else for(;E>C;C++)if((d||C in S)&&S[C]===v)return d||C||0;return!d&&-1}};i.exports={includes:s(!0),indexOf:s(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(i,t,o){var e=o("./node_modules/core-js/internals/function-bind-context.js"),l=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-object.js"),s=o("./node_modules/core-js/internals/to-length.js"),c=o("./node_modules/core-js/internals/array-species-create.js"),d=[].push,g=function(b){var S=b==1,E=b==2,C=b==3,_=b==4,T=b==6,w=b==7,O=b==5||T;return function(I,R,M,F){for(var P=r(I),X=l(P),B=e(R,M,3),j=s(X.length),W=0,z=F||c,V=S?z(I,j):E||w?z(I,0):void 0,Q,G;j>W;W++)if((O||W in X)&&(Q=X[W],G=B(Q,W,P),b))if(S)V[W]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return W;case 2:d.call(V,Q)}else switch(b){case 4:return!1;case 7:d.call(V,Q)}return T?-1:C||_?_:V}};i.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/well-known-symbol.js"),r=o("./node_modules/core-js/internals/engine-v8-version.js"),s=l("species");i.exports=function(c){return r>=51||!e(function(){var d=[],g=d.constructor={};return g[s]=function(){return{foo:1}},d[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js");i.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(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/is-array.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("species");i.exports=function(c){var d;return l(c)&&(d=c.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:e(d)&&(d=d[s],d===null&&(d=void 0))),d===void 0?Array:d}},"./node_modules/core-js/internals/array-species-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/array-species-constructor.js");i.exports=function(l,r){return new(e(l))(r===0?0:r)}},"./node_modules/core-js/internals/classof-raw.js":function(i){var t={}.toString;i.exports=function(o){return t.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/classof-raw.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag"),c=l(function(){return arguments}())=="Arguments",d=function(v,b){try{return v[b]}catch(S){}};i.exports=e?l:function(g){var v,b,S;return g===void 0?"Undefined":g===null?"Null":typeof(b=d(v=Object(g),s))=="string"?b:c?l(v):(S=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":S}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/own-keys.js"),r=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),s=o("./node_modules/core-js/internals/object-define-property.js");i.exports=function(c,d){for(var g=l(d),v=s.f,b=r.f,S=0;S<g.length;S++){var E=g[S];e(c,E)||v(c,E,b(d,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},"./node_modules/core-js/internals/create-html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=/"/g;i.exports=function(s,c,d,g){var v=l(e(s)),b="<"+c;return d!==""&&(b+=" "+d+'="'+l(g).replace(r,"&quot;")+'"'),b+">"+v+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),s=o("./node_modules/core-js/internals/set-to-string-tag.js"),c=o("./node_modules/core-js/internals/iterators.js"),d=function(){return this};i.exports=function(g,v,b){var S=v+" Iterator";return g.prototype=l(e,{next:r(1,b)}),s(g,S,!1,!0),c[S]=d,g}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=e?function(s,c,d){return l.f(s,c,r(1,d))}:function(s,c,d){return s[c]=d,s}},"./node_modules/core-js/internals/create-property-descriptor.js":function(i){i.exports=function(t,o){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-property-key.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=function(s,c,d){var g=e(c);g in s?l.f(s,g,r(0,d)):s[g]=d}},"./node_modules/core-js/internals/define-iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/create-iterator-constructor.js"),r=o("./node_modules/core-js/internals/object-get-prototype-of.js"),s=o("./node_modules/core-js/internals/object-set-prototype-of.js"),c=o("./node_modules/core-js/internals/set-to-string-tag.js"),d=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),g=o("./node_modules/core-js/internals/redefine.js"),v=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/is-pure.js"),S=o("./node_modules/core-js/internals/iterators.js"),E=o("./node_modules/core-js/internals/iterators-core.js"),C=E.IteratorPrototype,_=E.BUGGY_SAFARI_ITERATORS,T=v("iterator"),w="keys",O="values",I="entries",R=function(){return this};i.exports=function(M,F,P,X,B,j,W){l(P,F,X);var z=function(Xe){if(Xe===B&&ee)return ee;if(!_&&Xe in G)return G[Xe];switch(Xe){case w:return function(){return new P(this,Xe)};case O:return function(){return new P(this,Xe)};case I:return function(){return new P(this,Xe)}}return function(){return new P(this)}},V=F+" Iterator",Q=!1,G=M.prototype,re=G[T]||G["@@iterator"]||B&&G[B],ee=!_&&re||z(B),ue=F=="Array"&&G.entries||re,$,be,_e;if(ue&&($=r(ue.call(new M)),C!==Object.prototype&&$.next&&(!b&&r($)!==C&&(s?s($,C):typeof $[T]!="function"&&d($,T,R)),c($,V,!0,!0),b&&(S[V]=R))),B==O&&re&&re.name!==O&&(Q=!0,ee=function(){return re.call(this)}),(!b||W)&&G[T]!==ee&&d(G,T,ee),S[F]=ee,B)if(be={values:z(O),keys:j?ee:z(w),entries:z(I)},W)for(_e in be)(_||Q||!(_e in G))&&g(G,_e,be[_e]);else e({target:F,proto:!0,forced:_||Q},be);return be}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/path.js"),l=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),s=o("./node_modules/core-js/internals/object-define-property.js").f;i.exports=function(c){var d=e.Symbol||(e.Symbol={});l(d,c)||s(d,c,{value:r.f(c)})}},"./node_modules/core-js/internals/descriptors.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/is-object.js"),r=e.document,s=l(r)&&l(r.createElement);i.exports=function(c){return s?r.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/engine-user-agent.js"),r=e.process,s=e.Deno,c=r&&r.versions||s&&s.version,d=c&&c.v8,g,v;d?(g=d.split("."),v=g[0]<4?1:g[0]+g[1]):l&&(g=l.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=l.match(/Chrome\/(\d+)/),g&&(v=g[1]))),i.exports=v&&+v},"./node_modules/core-js/internals/enum-bug-keys.js":function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/set-global.js"),d=o("./node_modules/core-js/internals/copy-constructor-properties.js"),g=o("./node_modules/core-js/internals/is-forced.js");i.exports=function(v,b){var S=v.target,E=v.global,C=v.stat,_,T,w,O,I,R;if(E?T=e:C?T=e[S]||c(S,{}):T=(e[S]||{}).prototype,T)for(w in b){if(I=b[w],v.noTargetGet?(R=l(T,w),O=R&&R.value):O=T[w],_=g(E?w:S+(C?".":"#")+w,v.forced),!_&&O!==void 0){if(typeof I===typeof O)continue;d(I,O)}(v.sham||O&&O.sham)&&r(I,"sham",!0),s(T,w,I,v)}}},"./node_modules/core-js/internals/fails.js":function(i){i.exports=function(t){try{return!!t()}catch(o){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(i,t,o){var e=o("./node_modules/core-js/internals/a-function.js");i.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,d){return l.call(r,c,d)};case 3:return function(c,d,g){return l.call(r,c,d,g)}}return function(){return l.apply(r,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=function(s){return typeof s=="function"?s:void 0};i.exports=function(r,s){return arguments.length<2?l(e[r]):e[r]&&e[r][s]}},"./node_modules/core-js/internals/global.js":function(i){var t=function(e){return e&&e.Math==Math&&e};i.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof y=="object"&&y)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;i.exports=Object.hasOwn||function(s,c){return l.call(e(s),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(i){i.exports={}},"./node_modules/core-js/internals/html.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js");i.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/document-create-element.js");i.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(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/classof-raw.js"),r="".split;i.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(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/object-set-prototype-of.js");i.exports=function(r,s,c){var d,g;return l&&typeof(d=s.constructor)=="function"&&d!==c&&e(g=d.prototype)&&g!==c.prototype&&l(r,g),r}},"./node_modules/core-js/internals/inspect-source.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return l.call(r)}),i.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-weak-map.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-object.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/has.js"),d=o("./node_modules/core-js/internals/shared-store.js"),g=o("./node_modules/core-js/internals/shared-key.js"),v=o("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",S=l.WeakMap,E,C,_,T=function(X){return _(X)?C(X):E(X,{})},w=function(X){return function(B){var j;if(!r(B)||(j=C(B)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return j}};if(e||d.state){var O=d.state||(d.state=new S),I=O.get,R=O.has,M=O.set;E=function(X,B){if(R.call(O,X))throw new TypeError(b);return B.facade=X,M.call(O,X,B),B},C=function(X){return I.call(O,X)||{}},_=function(X){return R.call(O,X)}}else{var F=g("state");v[F]=!0,E=function(X,B){if(c(X,F))throw new TypeError(b);return B.facade=X,s(X,F,B),B},C=function(X){return c(X,F)?X[F]:{}},_=function(X){return c(X,F)}}i.exports={set:E,get:C,has:_,enforce:T,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(i,t,o){var e=o("./node_modules/core-js/internals/classof-raw.js");i.exports=Array.isArray||function(r){return e(r)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(i,t,o){var e=o("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,r=function(b,S){var E=c[s(b)];return E==g?!0:E==d?!1:typeof S=="function"?e(S):!!S},s=r.normalize=function(v){return String(v).replace(l,".").toLowerCase()},c=r.data={},d=r.NATIVE="N",g=r.POLYFILL="P";i.exports=r},"./node_modules/core-js/internals/is-object.js":function(i){i.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(i){i.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),l=o("./node_modules/core-js/internals/use-symbol-as-uid.js");i.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(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/object-get-prototype-of.js"),r=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),d=o("./node_modules/core-js/internals/is-pure.js"),g=c("iterator"),v=!1,b=function(){return this},S,E,C;[].keys&&(C=[].keys(),"next"in C?(E=l(l(C)),E!==Object.prototype&&(S=E)):v=!0);var _=S==null||e(function(){var T={};return S[g].call(T)!==T});_&&(S={}),(!d||_)&&!s(S,g)&&r(S,g,b),i.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:v}},"./node_modules/core-js/internals/iterators.js":function(i){i.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/engine-v8-version.js"),l=o("./node_modules/core-js/internals/fails.js");i.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(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/inspect-source.js"),r=e.WeakMap;i.exports=typeof r=="function"&&/native code/.test(l(r))},"./node_modules/core-js/internals/object-assign.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/object-keys.js"),s=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),d=o("./node_modules/core-js/internals/to-object.js"),g=o("./node_modules/core-js/internals/indexed-object.js"),v=Object.assign,b=Object.defineProperty;i.exports=!v||l(function(){if(e&&v({b:1},v(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},E={},C=Symbol(),_="abcdefghijklmnopqrst";return S[C]=7,_.split("").forEach(function(T){E[T]=T}),v({},S)[C]!=7||r(v({},E)).join("")!=_})?function(E,C){for(var _=d(E),T=arguments.length,w=1,O=s.f,I=c.f;T>w;)for(var R=g(arguments[w++]),M=O?r(R).concat(O(R)):r(R),F=M.length,P=0,X;F>P;)X=M[P++],(!e||I.call(R,X))&&(_[X]=R[X]);return _}:v},"./node_modules/core-js/internals/object-create.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/object-define-properties.js"),r=o("./node_modules/core-js/internals/enum-bug-keys.js"),s=o("./node_modules/core-js/internals/hidden-keys.js"),c=o("./node_modules/core-js/internals/html.js"),d=o("./node_modules/core-js/internals/document-create-element.js"),g=o("./node_modules/core-js/internals/shared-key.js"),v=">",b="<",S="prototype",E="script",C=g("IE_PROTO"),_=function(){},T=function(F){return b+E+v+F+b+"/"+E+v},w=function(F){F.write(T("")),F.close();var P=F.parentWindow.Object;return F=null,P},O=function(){var F=d("iframe"),P="java"+E+":",X;if(F.style)return F.style.display="none",c.appendChild(F),F.src=String(P),X=F.contentWindow.document,X.open(),X.write(T("document.F=Object")),X.close(),X.F},I,R=function(){try{I=new ActiveXObject("htmlfile")}catch(P){}R=document.domain&&I?w(I):O()||w(I);for(var F=r.length;F--;)delete R[S][r[F]];return R()};s[C]=!0,i.exports=Object.create||function(F,P){var X;return F!==null?(_[S]=e(F),X=new _,_[S]=null,X[C]=F):X=R(),P===void 0?X:l(X,P)}},"./node_modules/core-js/internals/object-define-properties.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js"),r=o("./node_modules/core-js/internals/an-object.js"),s=o("./node_modules/core-js/internals/object-keys.js");i.exports=e?Object.defineProperties:function(d,g){r(d);for(var v=s(g),b=v.length,S=0,E;b>S;)l.f(d,E=v[S++],g[E]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/ie8-dom-define.js"),r=o("./node_modules/core-js/internals/an-object.js"),s=o("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(g,v,b){if(r(g),v=s(v),r(b),l)try{return c(g,v,b)}catch(S){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(g[v]=b.value),g}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),s=o("./node_modules/core-js/internals/to-indexed-object.js"),c=o("./node_modules/core-js/internals/to-property-key.js"),d=o("./node_modules/core-js/internals/has.js"),g=o("./node_modules/core-js/internals/ie8-dom-define.js"),v=Object.getOwnPropertyDescriptor;t.f=e?v:function(S,E){if(S=s(S),E=c(E),g)try{return v(S,E)}catch(C){}if(d(S,E))return r(!l.f.call(S,E),S[E])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./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(v){return s.slice()}};i.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(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),l=o("./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(i,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/shared-key.js"),s=o("./node_modules/core-js/internals/correct-prototype-getter.js"),c=r("IE_PROTO"),d=Object.prototype;i.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?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(i,t,o){var e=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/to-indexed-object.js"),r=o("./node_modules/core-js/internals/array-includes.js").indexOf,s=o("./node_modules/core-js/internals/hidden-keys.js");i.exports=function(c,d){var g=l(c),v=0,b=[],S;for(S in g)!e(s,S)&&e(g,S)&&b.push(S);for(;d.length>v;)e(g,S=d[v++])&&(~r(b,S)||b.push(S));return b}},"./node_modules/core-js/internals/object-keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/object-keys-internal.js"),l=o("./node_modules/core-js/internals/enum-bug-keys.js");i.exports=Object.keys||function(s){return e(s,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(i,t){"use strict";var o={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!o.call({1:2},1);t.f=l?function(s){var c=e(this,s);return!!c&&c.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(i,t,o){var e=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/a-possible-prototype.js");i.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(d){}return function(g,v){return e(g),l(v),r?c.call(g,v):g.__proto__=v,g}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/classof.js");i.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js");i.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(i,t,o){var e=o("./node_modules/core-js/internals/get-built-in.js"),l=o("./node_modules/core-js/internals/object-get-own-property-names.js"),r=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=o("./node_modules/core-js/internals/an-object.js");i.exports=e("Reflect","ownKeys")||function(d){var g=l.f(s(d)),v=r.f;return v?g.concat(v(d)):g}},"./node_modules/core-js/internals/path.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.exports=e},"./node_modules/core-js/internals/redefine.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),r=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/set-global.js"),c=o("./node_modules/core-js/internals/inspect-source.js"),d=o("./node_modules/core-js/internals/internal-state.js"),g=d.get,v=d.enforce,b=String(String).split("String");(i.exports=function(S,E,C,_){var T=_?!!_.unsafe:!1,w=_?!!_.enumerable:!1,O=_?!!_.noTargetGet:!1,I;if(typeof C=="function"&&(typeof E=="string"&&!r(C,"name")&&l(C,"name",E),I=v(C),I.source||(I.source=b.join(typeof E=="string"?E:""))),S===e){w?S[E]=C:s(E,C);return}else T?!O&&S[E]&&(w=!0):delete S[E];w?S[E]=C:l(S,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/an-object.js");i.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(i){i.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js");i.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(i,t,o){var e=o("./node_modules/core-js/internals/object-define-property.js").f,l=o("./node_modules/core-js/internals/has.js"),r=o("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag");i.exports=function(c,d,g){c&&!l(c=g?c:c.prototype,s)&&e(c,s,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/shared.js"),l=o("./node_modules/core-js/internals/uid.js"),r=e("keys");i.exports=function(s){return r[s]||(r[s]=l(s))}},"./node_modules/core-js/internals/shared-store.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",s=e[r]||l(r,{});i.exports=s},"./node_modules/core-js/internals/shared.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-pure.js"),l=o("./node_modules/core-js/internals/shared-store.js");(i.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(i,t,o){var e=o("./node_modules/core-js/internals/fails.js");i.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(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/require-object-coercible.js"),s=function(d){return function(g,v){var b=l(r(g)),S=e(v),E=b.length,C,_;return S<0||S>=E?d?"":void 0:(C=b.charCodeAt(S),C<55296||C>56319||S+1===E||(_=b.charCodeAt(S+1))<56320||_>57343?d?b.charAt(S):C:d?b.slice(S,S+2):(C-55296<<10)+(_-56320)+65536)}};i.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js/internals/string-trim.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js"),l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/whitespaces.js"),s="["+r+"]",c=RegExp("^"+s+s+"*"),d=RegExp(s+s+"*$"),g=function(b){return function(S){var E=l(e(S));return b&1&&(E=E.replace(c,"")),b&2&&(E=E.replace(d,"")),E}};i.exports={start:g(1),end:g(2),trim:g(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=Math.max,r=Math.min;i.exports=function(s,c){var d=e(s);return d<0?l(d+c,0):r(d,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/indexed-object.js"),l=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(r){return e(l(r))}},"./node_modules/core-js/internals/to-integer.js":function(i){var t=Math.ceil,o=Math.floor;i.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-integer.js"),l=Math.min;i.exports=function(r){return r>0?l(e(r),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(i,t,o){var e=o("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-object.js"),l=o("./node_modules/core-js/internals/is-symbol.js"),r=o("./node_modules/core-js/internals/ordinary-to-primitive.js"),s=o("./node_modules/core-js/internals/well-known-symbol.js"),c=s("toPrimitive");i.exports=function(d,g){if(!e(d)||l(d))return d;var v=d[c],b;if(v!==void 0){if(g===void 0&&(g="default"),b=v.call(d,g),!e(b)||l(b))return b;throw TypeError("Can't convert object to primitive value")}return g===void 0&&(g="number"),r(d,g)}},"./node_modules/core-js/internals/to-property-key.js":function(i,t,o){var e=o("./node_modules/core-js/internals/to-primitive.js"),l=o("./node_modules/core-js/internals/is-symbol.js");i.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(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),r={};r[l]="z",i.exports=String(r)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(i,t,o){var e=o("./node_modules/core-js/internals/is-symbol.js");i.exports=function(l){if(e(l))throw TypeError("Cannot convert a Symbol value to a string");return String(l)}},"./node_modules/core-js/internals/uid.js":function(i){var t=0,o=Math.random();i.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+o).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(i,t,o){var e=o("./node_modules/core-js/internals/native-symbol.js");i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(i,t,o){var e=o("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/shared.js"),r=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/uid.js"),c=o("./node_modules/core-js/internals/native-symbol.js"),d=o("./node_modules/core-js/internals/use-symbol-as-uid.js"),g=l("wks"),v=e.Symbol,b=d?v:v&&v.withoutSetter||s;i.exports=function(S){return(!r(g,S)||!(c||typeof g[S]=="string"))&&(c&&r(v,S)?g[S]=v[S]:g[S]=b("Symbol."+S)),g[S]}},"./node_modules/core-js/internals/whitespaces.js":function(i){i.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/fails.js"),r=o("./node_modules/core-js/internals/is-array.js"),s=o("./node_modules/core-js/internals/is-object.js"),c=o("./node_modules/core-js/internals/to-object.js"),d=o("./node_modules/core-js/internals/to-length.js"),g=o("./node_modules/core-js/internals/create-property.js"),v=o("./node_modules/core-js/internals/array-species-create.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),S=o("./node_modules/core-js/internals/well-known-symbol.js"),E=o("./node_modules/core-js/internals/engine-v8-version.js"),C=S("isConcatSpreadable"),_=9007199254740991,T="Maximum allowed index exceeded",w=E>=51||!l(function(){var M=[];return M[C]=!1,M.concat()[0]!==M}),O=b("concat"),I=function(F){if(!s(F))return!1;var P=F[C];return P!==void 0?!!P:r(F)},R=!w||!O;e({target:"Array",proto:!0,forced:R},{concat:function(F){var P=c(this),X=v(P,0),B=0,j,W,z,V,Q;for(j=-1,z=arguments.length;j<z;j++)if(Q=j===-1?P:arguments[j],I(Q)){if(V=d(Q.length),B+V>_)throw TypeError(T);for(W=0;W<V;W++,B++)W in Q&&g(X,B,Q[W])}else{if(B>=_)throw TypeError(T);g(X,B++,Q)}return X.length=B,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/to-indexed-object.js"),l=o("./node_modules/core-js/internals/add-to-unscopables.js"),r=o("./node_modules/core-js/internals/iterators.js"),s=o("./node_modules/core-js/internals/internal-state.js"),c=o("./node_modules/core-js/internals/define-iterator.js"),d="Array Iterator",g=s.set,v=s.getterFor(d);i.exports=c(Array,"Array",function(b,S){g(this,{type:d,target:e(b),index:0,kind:S})},function(){var b=v(this),S=b.target,E=b.kind,C=b.index++;return!S||C>=S.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:S[C],done:!1}:{value:[C,S[C]],done:!1}},"values"),r.Arguments=r.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/indexed-object.js"),r=o("./node_modules/core-js/internals/to-indexed-object.js"),s=o("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,d=l!=Object,g=s("join",",");e({target:"Array",proto:!0,forced:d||!g},{join:function(b){return c.call(r(this),b===void 0?",":b)}})},"./node_modules/core-js/modules/es.array.map.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/array-iteration.js").map,r=o("./node_modules/core-js/internals/array-method-has-species-support.js"),s=r("map");e({target:"Array",proto:!0,forced:!s},{map:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/is-object.js"),r=o("./node_modules/core-js/internals/is-array.js"),s=o("./node_modules/core-js/internals/to-absolute-index.js"),c=o("./node_modules/core-js/internals/to-length.js"),d=o("./node_modules/core-js/internals/to-indexed-object.js"),g=o("./node_modules/core-js/internals/create-property.js"),v=o("./node_modules/core-js/internals/well-known-symbol.js"),b=o("./node_modules/core-js/internals/array-method-has-species-support.js"),S=b("slice"),E=v("species"),C=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!S},{slice:function(w,O){var I=d(this),R=c(I.length),M=s(w,R),F=s(O===void 0?R:O,R),P,X,B;if(r(I)&&(P=I.constructor,typeof P=="function"&&(P===Array||r(P.prototype))?P=void 0:l(P)&&(P=P[E],P===null&&(P=void 0)),P===Array||P===void 0))return C.call(I,M,F);for(X=new(P===void 0?Array:P)(_(F-M,0)),B=0;M<F;M++,B++)M in I&&g(X,B,I[M]);return X.length=B,X}})},"./node_modules/core-js/modules/es.function.name.js":function(i,t,o){var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/object-define-property.js").f,r=Function.prototype,s=r.toString,c=/^\s*function ([^ (]*)/,d="name";e&&!(d in r)&&l(r,d,{configurable:!0,get:function(){try{return s.call(this).match(c)[1]}catch(v){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/descriptors.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/is-forced.js"),s=o("./node_modules/core-js/internals/redefine.js"),c=o("./node_modules/core-js/internals/has.js"),d=o("./node_modules/core-js/internals/classof-raw.js"),g=o("./node_modules/core-js/internals/inherit-if-required.js"),v=o("./node_modules/core-js/internals/is-symbol.js"),b=o("./node_modules/core-js/internals/to-primitive.js"),S=o("./node_modules/core-js/internals/fails.js"),E=o("./node_modules/core-js/internals/object-create.js"),C=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,T=o("./node_modules/core-js/internals/object-define-property.js").f,w=o("./node_modules/core-js/internals/string-trim.js").trim,O="Number",I=l[O],R=I.prototype,M=d(E(R))==O,F=function(z){if(v(z))throw TypeError("Cannot convert a Symbol value to a number");var V=b(z,"number"),Q,G,re,ee,ue,$,be,_e;if(typeof V=="string"&&V.length>2){if(V=w(V),Q=V.charCodeAt(0),Q===43||Q===45){if(G=V.charCodeAt(2),G===88||G===120)return NaN}else if(Q===48){switch(V.charCodeAt(1)){case 66:case 98:re=2,ee=49;break;case 79:case 111:re=8,ee=55;break;default:return+V}for(ue=V.slice(2),$=ue.length,be=0;be<$;be++)if(_e=ue.charCodeAt(be),_e<48||_e>ee)return NaN;return parseInt(ue,re)}}return+V};if(r(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var P=function(z){var V=arguments.length<1?0:z,Q=this;return Q instanceof P&&(M?S(function(){R.valueOf.call(Q)}):d(Q)!=O)?g(new I(F(V)),Q,P):F(V)},X=e?C(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),B=0,j;X.length>B;B++)c(I,j=X[B])&&!c(P,j)&&T(P,j,_(I,j));P.prototype=R,R.constructor=P,s(l,O,P)}},"./node_modules/core-js/modules/es.object.assign.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==l},{assign:l})},"./node_modules/core-js/modules/es.object.keys.js":function(i,t,o){var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/to-object.js"),r=o("./node_modules/core-js/internals/object-keys.js"),s=o("./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(i,t,o){var e=o("./node_modules/core-js/internals/to-string-tag-support.js"),l=o("./node_modules/core-js/internals/redefine.js"),r=o("./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(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/redefine.js"),l=o("./node_modules/core-js/internals/an-object.js"),r=o("./node_modules/core-js/internals/to-string.js"),s=o("./node_modules/core-js/internals/fails.js"),c=o("./node_modules/core-js/internals/regexp-flags.js"),d="toString",g=RegExp.prototype,v=g[d],b=s(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),S=v.name!=d;(b||S)&&e(RegExp.prototype,d,function(){var C=l(this),_=r(C.source),T=C.flags,w=r(T===void 0&&C instanceof RegExp&&!("flags"in g)?c.call(C):T);return"/"+_+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/string-multibyte.js").charAt,l=o("./node_modules/core-js/internals/to-string.js"),r=o("./node_modules/core-js/internals/internal-state.js"),s=o("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",d=r.set,g=r.getterFor(c);s(String,"String",function(v){d(this,{type:c,string:l(v),index:0})},function(){var b=g(this),S=b.string,E=b.index,C;return E>=S.length?{value:void 0,done:!0}:(C=e(S,E),b.index+=C.length,{value:C,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/create-html.js"),r=o("./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(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/descriptors.js"),r=o("./node_modules/core-js/internals/global.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/is-object.js"),d=o("./node_modules/core-js/internals/object-define-property.js").f,g=o("./node_modules/core-js/internals/copy-constructor-properties.js"),v=r.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var b={},S=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof S?new v(O):O===void 0?v():v(O);return O===""&&(b[I]=!0),I};g(S,v);var E=S.prototype=v.prototype;E.constructor=S;var C=E.toString,_=String(v("test"))=="Symbol(test)",T=/^Symbol\((.*)\)[^)]+$/;d(E,"description",{configurable:!0,get:function(){var O=c(this)?this.valueOf():this,I=C.call(O);if(s(b,O))return"";var R=_?I.slice(7,-1):I.replace(T,"$1");return R===""?void 0:R}}),e({global:!0,forced:!0},{Symbol:S})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(i,t,o){"use strict";var e=o("./node_modules/core-js/internals/export.js"),l=o("./node_modules/core-js/internals/global.js"),r=o("./node_modules/core-js/internals/get-built-in.js"),s=o("./node_modules/core-js/internals/is-pure.js"),c=o("./node_modules/core-js/internals/descriptors.js"),d=o("./node_modules/core-js/internals/native-symbol.js"),g=o("./node_modules/core-js/internals/fails.js"),v=o("./node_modules/core-js/internals/has.js"),b=o("./node_modules/core-js/internals/is-array.js"),S=o("./node_modules/core-js/internals/is-object.js"),E=o("./node_modules/core-js/internals/is-symbol.js"),C=o("./node_modules/core-js/internals/an-object.js"),_=o("./node_modules/core-js/internals/to-object.js"),T=o("./node_modules/core-js/internals/to-indexed-object.js"),w=o("./node_modules/core-js/internals/to-property-key.js"),O=o("./node_modules/core-js/internals/to-string.js"),I=o("./node_modules/core-js/internals/create-property-descriptor.js"),R=o("./node_modules/core-js/internals/object-create.js"),M=o("./node_modules/core-js/internals/object-keys.js"),F=o("./node_modules/core-js/internals/object-get-own-property-names.js"),P=o("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),B=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),j=o("./node_modules/core-js/internals/object-define-property.js"),W=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=o("./node_modules/core-js/internals/redefine.js"),Q=o("./node_modules/core-js/internals/shared.js"),G=o("./node_modules/core-js/internals/shared-key.js"),re=o("./node_modules/core-js/internals/hidden-keys.js"),ee=o("./node_modules/core-js/internals/uid.js"),ue=o("./node_modules/core-js/internals/well-known-symbol.js"),$=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),be=o("./node_modules/core-js/internals/define-well-known-symbol.js"),_e=o("./node_modules/core-js/internals/set-to-string-tag.js"),Ee=o("./node_modules/core-js/internals/internal-state.js"),Xe=o("./node_modules/core-js/internals/array-iteration.js").forEach,He=G("hidden"),nt="Symbol",Ie="prototype",oe=ue("toPrimitive"),ot=Ee.set,he=Ee.getterFor(nt),J=Object[Ie],Y=l.Symbol,q=r("JSON","stringify"),fe=B.f,we=j.f,Ne=P.f,je=W.f,me=Q("symbols"),Ce=Q("op-symbols"),Fe=Q("string-to-symbol-registry"),it=Q("symbol-to-string-registry"),Ct=Q("wks"),mt=l.QObject,Ve=!mt||!mt[Ie]||!mt[Ie].findChild,or=c&&g(function(){return R(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!=7})?function(lt,Ze,de){var _t=fe(J,Ze);_t&&delete J[Ze],we(lt,Ze,de),_t&&lt!==J&&we(J,Ze,_t)}:we,dt=function(Ze,de){var _t=me[Ze]=R(Y[Ie]);return ot(_t,{type:nt,tag:Ze,description:de}),c||(_t.description=de),_t},Yt=function(Ze,de,_t){Ze===J&&Yt(Ce,de,_t),C(Ze);var er=w(de);return C(_t),v(me,er)?(_t.enumerable?(v(Ze,He)&&Ze[He][er]&&(Ze[He][er]=!1),_t=R(_t,{enumerable:I(0,!1)})):(v(Ze,He)||we(Ze,He,I(1,{})),Ze[He][er]=!0),or(Ze,er,_t)):we(Ze,er,_t)},hr=function(Ze,de){C(Ze);var _t=T(de),er=M(_t).concat(pe(_t));return Xe(er,function(yt){(!c||Pt.call(_t,yt))&&Yt(Ze,yt,_t[yt])}),Ze},Gt=function(Ze,de){return de===void 0?R(Ze):hr(R(Ze),de)},Pt=function(Ze){var de=w(Ze),_t=je.call(this,de);return this===J&&v(me,de)&&!v(Ce,de)?!1:_t||!v(this,de)||!v(me,de)||v(this,He)&&this[He][de]?_t:!0},Xt=function(Ze,de){var _t=T(Ze),er=w(de);if(_t===J&&v(me,er)&&!v(Ce,er))return;var yt=fe(_t,er);return yt&&v(me,er)&&!(v(_t,He)&&_t[He][er])&&(yt.enumerable=!0),yt},Ge=function(Ze){var de=Ne(T(Ze)),_t=[];return Xe(de,function(er){!v(me,er)&&!v(re,er)&&_t.push(er)}),_t},pe=function(Ze){var de=Ze===J,_t=Ne(de?Ce:T(Ze)),er=[];return Xe(_t,function(yt){v(me,yt)&&(!de||v(J,yt))&&er.push(me[yt])}),er};if(d||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var Ze=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),de=ee(Ze),_t=function er(yt){this===J&&er.call(Ce,yt),v(this,He)&&v(this[He],de)&&(this[He][de]=!1),or(this,de,I(1,yt))};return c&&Ve&&or(J,de,{configurable:!0,set:_t}),dt(de,Ze)},V(Y[Ie],"toString",function(){return he(this).tag}),V(Y,"withoutSetter",function(lt){return dt(ee(lt),lt)}),W.f=Pt,j.f=Yt,B.f=Xt,F.f=P.f=Ge,X.f=pe,$.f=function(lt){return dt(ue(lt),lt)},c&&(we(Y[Ie],"description",{configurable:!0,get:function(){return he(this).description}}),s||V(J,"propertyIsEnumerable",Pt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:Y}),Xe(M(Ct),function(lt){be(lt)}),e({target:nt,stat:!0,forced:!d},{for:function(Ze){var de=O(Ze);if(v(Fe,de))return Fe[de];var _t=Y(de);return Fe[de]=_t,it[_t]=de,_t},keyFor:function(Ze){if(!E(Ze))throw TypeError(Ze+" is not a symbol");if(v(it,Ze))return it[Ze]},useSetter:function(){Ve=!0},useSimple:function(){Ve=!1}}),e({target:"Object",stat:!0,forced:!d,sham:!c},{create:Gt,defineProperty:Yt,defineProperties:hr,getOwnPropertyDescriptor:Xt}),e({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Ge,getOwnPropertySymbols:pe}),e({target:"Object",stat:!0,forced:g(function(){X.f(1)})},{getOwnPropertySymbols:function(Ze){return X.f(_(Ze))}}),q){var se=!d||g(function(){var lt=Y();return q([lt])!="[null]"||q({a:lt})!="{}"||q(Object(lt))!="{}"});e({target:"JSON",stat:!0,forced:se},{stringify:function(Ze,de,_t){for(var er=[Ze],yt=1,Ar;arguments.length>yt;)er.push(arguments[yt++]);return Ar=de,!S(de)&&Ze===void 0||E(Ze)?void 0:(b(de)||(de=function(Cn,mr){if(typeof Ar=="function"&&(mr=Ar.call(this,Cn,mr)),!E(mr))return mr}),er[1]=de,q.apply(null,er))}})}Y[Ie][oe]||z(Y[Ie],oe,Y[Ie].valueOf),_e(Y,nt),re[He]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/internals/array-for-each.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var c in l){var d=e[c],g=d&&d.prototype;if(g&&g.forEach!==r)try{s(g,"forEach",r)}catch(v){g.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(i,t,o){var e=o("./node_modules/core-js/internals/global.js"),l=o("./node_modules/core-js/internals/dom-iterables.js"),r=o("./node_modules/core-js/modules/es.array.iterator.js"),s=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=o("./node_modules/core-js/internals/well-known-symbol.js"),d=c("iterator"),g=c("toStringTag"),v=r.values;for(var b in l){var S=e[b],E=S&&S.prototype;if(E){if(E[d]!==v)try{s(E,d,v)}catch(_){E[d]=v}if(E[g]||s(E,g,b),l[b]){for(var C in r)if(E[C]!==r[C])try{s(E,C,r[C])}catch(_){E[C]=r[C]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(i){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(t,o){i.exports=o()})(this,function(){"use strict";function t(mt){var Ve=typeof mt;return mt!==null&&(Ve==="object"||Ve==="function")}function o(mt){return typeof mt=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Ve){return Object.prototype.toString.call(Ve)==="[object Array]"};var l=e,r=0,s=void 0,c=void 0,d=function(Ve,or){M[r]=Ve,M[r+1]=or,r+=2,r===2&&(c?c(F):X())};function g(mt){c=mt}function v(mt){d=mt}var b=typeof window!="undefined"?window:void 0,S=b||{},E=S.MutationObserver||S.WebKitMutationObserver,C=typeof self=="undefined"&&typeof p!="undefined"&&{}.toString.call(p)==="[object process]",_=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function T(){return function(){return p.nextTick(F)}}function w(){return typeof s!="undefined"?function(){s(F)}:R()}function O(){var mt=0,Ve=new E(F),or=document.createTextNode("");return Ve.observe(or,{characterData:!0}),function(){or.data=mt=++mt%2}}function I(){var mt=new MessageChannel;return mt.port1.onmessage=F,function(){return mt.port2.postMessage(0)}}function R(){var mt=setTimeout;return function(){return mt(F,1)}}var M=new Array(1e3);function F(){for(var mt=0;mt<r;mt+=2){var Ve=M[mt],or=M[mt+1];Ve(or),M[mt]=void 0,M[mt+1]=void 0}r=0}function P(){try{var mt=Function("return this")().require("vertx");return s=mt.runOnLoop||mt.runOnContext,w()}catch(Ve){return R()}}var X=void 0;C?X=T():E?X=O():_?X=I():b===void 0&&!0?X=P():X=R();function B(mt,Ve){var or=this,dt=new this.constructor(z);dt[W]===void 0&&q(dt);var Yt=or._state;if(Yt){var hr=arguments[Yt-1];d(function(){return ot(Yt,dt,hr,or._result)})}else Ie(or,dt,mt,Ve);return dt}function j(mt){var Ve=this;if(mt&&typeof mt=="object"&&mt.constructor===Ve)return mt;var or=new Ve(z);return Ee(or,mt),or}var W=Math.random().toString(36).substring(2);function z(){}var V=void 0,Q=1,G=2;function re(){return new TypeError("You cannot resolve a promise with itself")}function ee(){return new TypeError("A promises callback cannot return that same promise.")}function ue(mt,Ve,or,dt){try{mt.call(Ve,or,dt)}catch(Yt){return Yt}}function $(mt,Ve,or){d(function(dt){var Yt=!1,hr=ue(or,Ve,function(Gt){if(Yt)return;Yt=!0,Ve!==Gt?Ee(dt,Gt):He(dt,Gt)},function(Gt){if(Yt)return;Yt=!0,nt(dt,Gt)},"Settle: "+(dt._label||" unknown promise"));!Yt&&hr&&(Yt=!0,nt(dt,hr))},mt)}function be(mt,Ve){Ve._state===Q?He(mt,Ve._result):Ve._state===G?nt(mt,Ve._result):Ie(Ve,void 0,function(or){return Ee(mt,or)},function(or){return nt(mt,or)})}function _e(mt,Ve,or){Ve.constructor===mt.constructor&&or===B&&Ve.constructor.resolve===j?be(mt,Ve):or===void 0?He(mt,Ve):o(or)?$(mt,Ve,or):He(mt,Ve)}function Ee(mt,Ve){if(mt===Ve)nt(mt,re());else if(t(Ve)){var or=void 0;try{or=Ve.then}catch(dt){nt(mt,dt);return}_e(mt,Ve,or)}else He(mt,Ve)}function Xe(mt){mt._onerror&&mt._onerror(mt._result),oe(mt)}function He(mt,Ve){if(mt._state!==V)return;mt._result=Ve,mt._state=Q,mt._subscribers.length!==0&&d(oe,mt)}function nt(mt,Ve){if(mt._state!==V)return;mt._state=G,mt._result=Ve,d(Xe,mt)}function Ie(mt,Ve,or,dt){var Yt=mt._subscribers,hr=Yt.length;mt._onerror=null,Yt[hr]=Ve,Yt[hr+Q]=or,Yt[hr+G]=dt,hr===0&&mt._state&&d(oe,mt)}function oe(mt){var Ve=mt._subscribers,or=mt._state;if(Ve.length===0)return;for(var dt=void 0,Yt=void 0,hr=mt._result,Gt=0;Gt<Ve.length;Gt+=3)dt=Ve[Gt],Yt=Ve[Gt+or],dt?ot(or,dt,Yt,hr):Yt(hr);mt._subscribers.length=0}function ot(mt,Ve,or,dt){var Yt=o(or),hr=void 0,Gt=void 0,Pt=!0;if(Yt){try{hr=or(dt)}catch(Xt){Pt=!1,Gt=Xt}if(Ve===hr){nt(Ve,ee());return}}else hr=dt;Ve._state!==V||(Yt&&Pt?Ee(Ve,hr):Pt===!1?nt(Ve,Gt):mt===Q?He(Ve,hr):mt===G&&nt(Ve,hr))}function he(mt,Ve){try{Ve(function(dt){Ee(mt,dt)},function(dt){nt(mt,dt)})}catch(or){nt(mt,or)}}var J=0;function Y(){return J++}function q(mt){mt[W]=J++,mt._state=void 0,mt._result=void 0,mt._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var we=function(){function mt(Ve,or){this._instanceConstructor=Ve,this.promise=new Ve(z),this.promise[W]||q(this.promise),l(or)?(this.length=or.length,this._remaining=or.length,this._result=new Array(this.length),this.length===0?He(this.promise,this._result):(this.length=this.length||0,this._enumerate(or),this._remaining===0&&He(this.promise,this._result))):nt(this.promise,fe())}return mt.prototype._enumerate=function(or){for(var dt=0;this._state===V&&dt<or.length;dt++)this._eachEntry(or[dt],dt)},mt.prototype._eachEntry=function(or,dt){var Yt=this._instanceConstructor,hr=Yt.resolve;if(hr===j){var Gt=void 0,Pt=void 0,Xt=!1;try{Gt=or.then}catch(pe){Xt=!0,Pt=pe}if(Gt===B&&or._state!==V)this._settledAt(or._state,dt,or._result);else if(typeof Gt!="function")this._remaining--,this._result[dt]=or;else if(Yt===it){var Ge=new Yt(z);Xt?nt(Ge,Pt):_e(Ge,or,Gt),this._willSettleAt(Ge,dt)}else this._willSettleAt(new Yt(function(pe){return pe(or)}),dt)}else this._willSettleAt(hr(or),dt)},mt.prototype._settledAt=function(or,dt,Yt){var hr=this.promise;hr._state===V&&(this._remaining--,or===G?nt(hr,Yt):this._result[dt]=Yt),this._remaining===0&&He(hr,this._result)},mt.prototype._willSettleAt=function(or,dt){var Yt=this;Ie(or,void 0,function(hr){return Yt._settledAt(Q,dt,hr)},function(hr){return Yt._settledAt(G,dt,hr)})},mt}();function Ne(mt){return new we(this,mt).promise}function je(mt){var Ve=this;return l(mt)?new Ve(function(or,dt){for(var Yt=mt.length,hr=0;hr<Yt;hr++)Ve.resolve(mt[hr]).then(or,dt)}):new Ve(function(or,dt){return dt(new TypeError("You must pass an array to race."))})}function me(mt){var Ve=this,or=new Ve(z);return nt(or,mt),or}function Ce(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Fe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var it=function(){function mt(Ve){this[W]=Y(),this._result=this._state=void 0,this._subscribers=[],z!==Ve&&(typeof Ve!="function"&&Ce(),this instanceof mt?he(this,Ve):Fe())}return mt.prototype.catch=function(or){return this.then(null,or)},mt.prototype.finally=function(or){var dt=this,Yt=dt.constructor;return o(or)?dt.then(function(hr){return Yt.resolve(or()).then(function(){return hr})},function(hr){return Yt.resolve(or()).then(function(){throw hr})}):dt.then(or,or)},mt}();it.prototype.then=B,it.all=Ne,it.race=je,it.resolve=j,it.reject=me,it._setScheduler=g,it._setAsap=v,it._asap=d;function Ct(){var mt=void 0;if(typeof y!="undefined")mt=y;else if(typeof self!="undefined")mt=self;else try{mt=Function("return this")()}catch(dt){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ve=mt.Promise;if(Ve){var or=null;try{or=Object.prototype.toString.call(Ve.resolve())}catch(dt){}if(or==="[object Promise]"&&!Ve.cast)return}mt.Promise=it}return it.polyfill=Ct,it.Promise=it,it})},html2canvas:function(i){"use strict";i.exports=A},jspdf:function(i){"use strict";i.exports=x}},f={};function h(a){var i=f[a];if(i!==void 0)return i.exports;var t=f[a]={exports:{}};return m[a].call(t.exports,t,t.exports,h),t.exports}!function(){h.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return h.d(i,{a:i}),i}}(),!function(){h.d=function(a,i){for(var t in i)h.o(i,t)&&!h.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:i[t]})}}(),!function(){h.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}}(),!function(){h.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var u={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/h.r(u);var a=h("./src/worker.js"),i=h("./src/plugin/jspdf-plugin.js"),t=h("./src/plugin/pagebreaks.js"),o=h("./src/plugin/hyperlinks.js"),e=function l(r,s){var c=new l.Worker(s);return r?c.from(r).save():c};e.Worker=a.default,u.default=e}(),u=u.default,u}()})}).call(this,n("yLpj"),n("Q2Ig"))},"1q3G":function(k,D,n){"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,n){var y=n("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(A){return A.stack=null,p.superApply(this,"getInitialData",arguments)}}),x=p;k.exports=x},"1u/T":function(k,D,n){var y=n("ProS"),p={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(p,function(x,A){A.eachComponent({mainType:"visualMap",query:x},function(m){m.setSelected(x.selected)})})},"1uat":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.Hasher,m=p.x64,f=m.Word,h=m.WordArray,u=p.algo;function a(){return f.create.apply(f,arguments)}var i=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],t=[];(function(){for(var e=0;e<80;e++)t[e]=a()})();var o=u.SHA512=A.extend({_doReset:function(){this._hash=new h.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],d=s[1],g=s[2],v=s[3],b=s[4],S=s[5],E=s[6],C=s[7],_=c.high,T=c.low,w=d.high,O=d.low,I=g.high,R=g.low,M=v.high,F=v.low,P=b.high,X=b.low,B=S.high,j=S.low,W=E.high,z=E.low,V=C.high,Q=C.low,G=_,re=T,ee=w,ue=O,$=I,be=R,_e=M,Ee=F,Xe=P,He=X,nt=B,Ie=j,oe=W,ot=z,he=V,J=Q,Y=0;Y<80;Y++){var q,fe,we=t[Y];if(Y<16)fe=we.high=l[r+Y*2]|0,q=we.low=l[r+Y*2+1]|0;else{var Ne=t[Y-15],je=Ne.high,me=Ne.low,Ce=(je>>>1|me<<31)^(je>>>8|me<<24)^je>>>7,Fe=(me>>>1|je<<31)^(me>>>8|je<<24)^(me>>>7|je<<25),it=t[Y-2],Ct=it.high,mt=it.low,Ve=(Ct>>>19|mt<<13)^(Ct<<3|mt>>>29)^Ct>>>6,or=(mt>>>19|Ct<<13)^(mt<<3|Ct>>>29)^(mt>>>6|Ct<<26),dt=t[Y-7],Yt=dt.high,hr=dt.low,Gt=t[Y-16],Pt=Gt.high,Xt=Gt.low;q=Fe+hr,fe=Ce+Yt+(q>>>0<Fe>>>0?1:0),q=q+or,fe=fe+Ve+(q>>>0<or>>>0?1:0),q=q+Xt,fe=fe+Pt+(q>>>0<Xt>>>0?1:0),we.high=fe,we.low=q}var Ge=Xe&nt^~Xe&oe,pe=He&Ie^~He&ot,se=G&ee^G&$^ee&$,lt=re&ue^re&be^ue&be,Ze=(G>>>28|re<<4)^(G<<30|re>>>2)^(G<<25|re>>>7),de=(re>>>28|G<<4)^(re<<30|G>>>2)^(re<<25|G>>>7),_t=(Xe>>>14|He<<18)^(Xe>>>18|He<<14)^(Xe<<23|He>>>9),er=(He>>>14|Xe<<18)^(He>>>18|Xe<<14)^(He<<23|Xe>>>9),yt=i[Y],Ar=yt.high,Sr=yt.low,Cn=J+er,mr=he+_t+(Cn>>>0<J>>>0?1:0),Cn=Cn+pe,mr=mr+Ge+(Cn>>>0<pe>>>0?1:0),Cn=Cn+Sr,mr=mr+Ar+(Cn>>>0<Sr>>>0?1:0),Cn=Cn+q,mr=mr+fe+(Cn>>>0<q>>>0?1:0),Pr=de+lt,gr=Ze+se+(Pr>>>0<de>>>0?1:0);he=oe,J=ot,oe=nt,ot=Ie,nt=Xe,Ie=He,He=Ee+Cn|0,Xe=_e+mr+(He>>>0<Ee>>>0?1:0)|0,_e=$,Ee=be,$=ee,be=ue,ee=G,ue=re,re=Cn+Pr|0,G=mr+gr+(re>>>0<Cn>>>0?1:0)|0}T=c.low=T+re,c.high=_+G+(T>>>0<re>>>0?1:0),O=d.low=O+ue,d.high=w+ee+(O>>>0<ue>>>0?1:0),R=g.low=R+be,g.high=I+$+(R>>>0<be>>>0?1:0),F=v.low=F+Ee,v.high=M+_e+(F>>>0<Ee>>>0?1:0),X=b.low=X+He,b.high=P+Xe+(X>>>0<He>>>0?1:0),j=S.low=j+Ie,S.high=B+nt+(j>>>0<Ie>>>0?1:0),z=E.low=z+ot,E.high=W+oe+(z>>>0<ot>>>0?1:0),Q=C.low=Q+J,C.high=V+he+(Q>>>0<J>>>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 d=this._hash.toX32();return d},clone:function(){var l=A.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});p.SHA512=A._createHelper(o),p.HmacSHA512=A._createHmacHelper(o)}(),y.SHA512})},"1vzs":function(k,D,n){"use strict";n.d(D,"a",function(){return r});var y=n("q1tI"),p=n.n(y),x=n("HQEm"),A=n.n(x),m=n("gZBC"),f=n.n(m),h=n("NAnI"),u=n.n(h),a=n("V/uB"),i=n.n(a),t=n("kbBi"),o=n.n(t),e=n("w6Tc"),l=n.n(e);function r(s){var c=s.suffixIcon,d=s.clearIcon,g=s.menuItemSelectedIcon,v=s.removeIcon,b=s.loading,S=s.multiple,E=s.prefixCls,C=d;d||(C=y.createElement(o.a,null));var _=null;if(c!==void 0)_=c;else if(b)_=y.createElement(f.a,{spin:!0});else{var T="".concat(E,"-suffix");_=function(R){var M=R.open,F=R.showSearch;return M&&F?y.createElement(l.a,{className:T}):y.createElement(A.a,{className:T})}}var w=null;g!==void 0?w=g:S?w=y.createElement(u.a,null):w=null;var O=null;return v!==void 0?O=v:O=y.createElement(i.a,null),{clearIcon:C,suffixIcon:_,itemIcon:w,removeIcon:O}}},"1xaR":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("qgGe"),n("NA0q"),n("RPvy");var x=n("mOdp"),A=n("y3NT"),m=n("0/Rx");y.registerVisual(p.curry(x,"sunburst")),y.registerLayout(p.curry(A,"sunburst")),y.registerProcessor(p.curry(m,"sunburst"))},"24YM":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SensorTabIndex=D.SensorClassName=D.SizeSensorId=void 0;var y="size-sensor-id";D.SizeSensorId=y;var p="size-sensor-object";D.SensorClassName=p;var x="-1";D.SensorTabIndex=x},"2548":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("6GrX"),A=n("IUWy"),m=n("IwbS"),f=n("Qxkt"),h=n("gPAo"),u=n("eRkO"),a=y.extendComponentView({type:"toolbox",render:function(t,o,e,l){var r=this.group;if(r.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),c=t.get("feature")||{},d=this._features||(this._features={}),g=[];p.each(c,function(S,E){g.push(E)}),new h(this._featureNames||[],g).add(v).update(v).remove(p.curry(v,null)).execute(),this._featureNames=g;function v(S,E){var C=g[S],_=g[E],T=c[C],w=new f(T,t,t.ecModel),O;if(l&&l.newTitle!=null&&l.featureName===C&&(T.title=l.newTitle),C&&!_){if(i(C))O={model:w,onclick:w.option.onclick,featureName:C};else{var I=A.get(C);if(!I)return;O=new I(w,o,e)}d[C]=O}else{if(O=d[_],!O)return;O.model=w,O.ecModel=o,O.api=e}if(!C&&_){O.dispose&&O.dispose(o,e);return}if(!w.get("show")||O.unusable){O.remove&&O.remove(o,e);return}b(w,O,C),w.setIconStatus=function(R,M){var F=this.option,P=this.iconPaths;F.iconStatus=F.iconStatus||{},F.iconStatus[R]=M,P[R]&&P[R].trigger(M)},O.render&&O.render(w,o,e,l)}function b(S,E,C){var _=S.getModel("iconStyle"),T=S.getModel("emphasis.iconStyle"),w=E.getIcons?E.getIcons():S.get("icon"),O=S.get("title")||{};if(typeof w=="string"){var I=w,R=O;w={},O={},w[C]=I,O[C]=R}var M=S.iconPaths={};p.each(w,function(F,P){var X=m.createIcon(F,{},{x:-s/2,y:-s/2,width:s,height:s});X.setStyle(_.getItemStyle()),X.hoverStyle=T.getItemStyle(),X.setStyle({text:O[P],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var B=t.getModel("tooltip");B&&B.get("show")&&X.attr("tooltip",p.extend({content:O[P],formatter:B.get("formatter",!0)||function(){return O[P]},formatterParams:{componentType:"toolbox",name:P,title:O[P],$vars:["name","title"]},position:B.get("position",!0)||"bottom"},B.option)),m.setHoverStyle(X),t.get("showTitle")&&(X.__title=O[P],X.on("mouseover",function(){var j=T.getItemStyle(),W=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:T.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||W})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(S.get("iconStatus."+P)||"normal"),r.add(X),X.on("click",p.bind(E.onclick,E,o,e,P)),M[P]=X})}u.layout(r,t,e),r.add(u.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(S){var E=S.__title,C=S.hoverStyle;if(C&&E){var _=x.getBoundingRect(E,x.makeFont(C)),T=S.position[0]+r.position[0],w=S.position[1]+r.position[1]+s,O=!1;w+_.height>e.getHeight()&&(C.textPosition="top",O=!0);var I=O?-5-_.height:s+8;T+_.width/2>e.getWidth()?(C.textPosition=["100%",I],C.textAlign="right"):T-_.width/2<0&&(C.textPosition=[0,I],C.textAlign="left")}})},updateView:function(t,o,e,l){p.each(this._features,function(r){r.updateView&&r.updateView(r.model,o,e,l)})},remove:function(t,o){p.each(this._features,function(e){e.remove&&e.remove(t,o)}),this.group.removeAll()},dispose:function(t,o){p.each(this._features,function(e){e.dispose&&e.dispose(t,o)})}});function i(t){return t.indexOf("my")===0}k.exports=a},"2B6p":function(k,D){function n(y,p,x){var A=y.getZoom(),m=y.getCenter(),f=p.zoom,h=y.dataToPoint(m);if(p.dx!=null&&p.dy!=null){h[0]-=p.dx,h[1]-=p.dy;var m=y.pointToData(h);y.setCenter(m)}if(f!=null){if(x){var u=x.min||0,a=x.max||Infinity;f=Math.max(Math.min(A*f,a),u)/A}y.scale[0]*=f,y.scale[1]*=f;var i=y.position,t=(p.originX-i[0])*(f-1),o=(p.originY-i[1])*(f-1);i[0]-=t,i[1]-=o,y.updateTransform();var m=y.pointToData(h);y.setCenter(m),y.setZoom(f*A)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=n},"2BaD":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseCircleOutlined";var h=D.a=p.forwardRef(f)},"2DNl":function(k,D,n){var y=n("IMiH"),p=n("loD1"),x=n("59Ip"),A=n("aKvl"),m=n("n1HI"),f=n("hX1E"),h=f.normalizeRadian,u=n("Sj9i"),a=n("hyiK"),i=y.CMD,t=Math.PI*2,o=1e-4;function e(E,C){return Math.abs(E-C)<o}var l=[-1,-1,-1],r=[-1,-1];function s(){var E=r[0];r[0]=r[1],r[1]=E}function c(E,C,_,T,w,O,I,R,M,F){if(F>C&&F>T&&F>O&&F>R||F<C&&F<T&&F<O&&F<R)return 0;var P=u.cubicRootAt(C,T,O,R,F,l);if(P===0)return 0;for(var X=0,B=-1,j,W,z=0;z<P;z++){var V=l[z],Q=V===0||V===1?.5:1,G=u.cubicAt(E,_,w,I,V);if(G<M)continue;B<0&&(B=u.cubicExtrema(C,T,O,R,r),r[1]<r[0]&&B>1&&s(),j=u.cubicAt(C,T,O,R,r[0]),B>1&&(W=u.cubicAt(C,T,O,R,r[1]))),B===2?V<r[0]?X+=j<C?Q:-Q:V<r[1]?X+=W<j?Q:-Q:X+=R<W?Q:-Q:V<r[0]?X+=j<C?Q:-Q:X+=R<j?Q:-Q}return X}function d(E,C,_,T,w,O,I,R){if(R>C&&R>T&&R>O||R<C&&R<T&&R<O)return 0;var M=u.quadraticRootAt(C,T,O,R,l);if(M===0)return 0;var F=u.quadraticExtremum(C,T,O);if(F>=0&&F<=1){for(var P=0,X=u.quadraticAt(C,T,O,F),B=0;B<M;B++){var j=l[B]===0||l[B]===1?.5:1,W=u.quadraticAt(E,_,w,l[B]);if(W<I)continue;l[B]<F?P+=X<C?j:-j:P+=O<X?j:-j}return P}else{var j=l[0]===0||l[0]===1?.5:1,W=u.quadraticAt(E,_,w,l[0]);return W<I?0:O<C?j:-j}}function g(E,C,_,T,w,O,I,R){if(R-=C,R>_||R<-_)return 0;var M=Math.sqrt(_*_-R*R);l[0]=-M,l[1]=M;var F=Math.abs(T-w);if(F<1e-4)return 0;if(F%t<1e-4){T=0,w=t;var P=O?1:-1;return I>=l[0]+E&&I<=l[1]+E?P:0}if(O){var M=T;T=h(w),w=h(M)}else T=h(T),w=h(w);T>w&&(w+=t);for(var X=0,B=0;B<2;B++){var j=l[B];if(j+E>I){var W=Math.atan2(R,j),P=O?1:-1;W<0&&(W=t+W),(W>=T&&W<=w||W+t>=T&&W+t<=w)&&(W>Math.PI/2&&W<Math.PI*1.5&&(P=-P),X+=P)}}return X}function v(E,C,_,T,w){for(var O=0,I=0,R=0,M=0,F=0,P=0;P<E.length;){var X=E[P++];X===i.M&&P>1&&(_||(O+=a(I,R,M,F,T,w))),P===1&&(I=E[P],R=E[P+1],M=I,F=R);switch(X){case i.M:M=E[P++],F=E[P++],I=M,R=F;break;case i.L:if(_){if(p.containStroke(I,R,E[P],E[P+1],C,T,w))return!0}else O+=a(I,R,E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.C:if(_){if(x.containStroke(I,R,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=c(I,R,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.Q:if(_){if(A.containStroke(I,R,E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=d(I,R,E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],R=E[P++];break;case i.A:var B=E[P++],j=E[P++],W=E[P++],z=E[P++],V=E[P++],Q=E[P++];P+=1;var G=1-E[P++],re=Math.cos(V)*W+B,ee=Math.sin(V)*z+j;P>1?O+=a(I,R,re,ee,T,w):(M=re,F=ee);var ue=(T-B)*z/W+B;if(_){if(m.containStroke(B,j,z,V,V+Q,G,C,ue,w))return!0}else O+=g(B,j,z,V,V+Q,G,ue,w);I=Math.cos(V+Q)*W+B,R=Math.sin(V+Q)*z+j;break;case i.R:M=I=E[P++],F=R=E[P++];var $=E[P++],be=E[P++],re=M+$,ee=F+be;if(_){if(p.containStroke(M,F,re,F,C,T,w)||p.containStroke(re,F,re,ee,C,T,w)||p.containStroke(re,ee,M,ee,C,T,w)||p.containStroke(M,ee,M,F,C,T,w))return!0}else O+=a(re,F,re,ee,T,w),O+=a(M,ee,M,F,T,w);break;case i.Z:if(_){if(p.containStroke(I,R,M,F,C,T,w))return!0}else O+=a(I,R,M,F,T,w);I=M,R=F;break}}return!_&&!e(R,F)&&(O+=a(I,R,M,F,T,w)||0),O!==0}function b(E,C,_){return v(E,0,!1,C,_)}function S(E,C,_,T){return v(E,C,!0,_,T)}D.contain=b,D.containStroke=S},"2dDv":function(k,D,n){var y=n("bYtY"),p=n("Fofx"),x=n("+TT/"),A=n("aX7z"),m=n("D1WM"),f=n("IwbS"),h=n("OELB"),u=n("72pK"),a=y.each,i=Math.min,t=Math.max,o=Math.floor,e=Math.ceil,l=h.round,r=Math.PI;function s(b,S,E){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,S,E)}s.prototype={type:"parallel",constructor:s,_init:function(b,S,E){var C=b.dimensions,_=b.parallelAxisIndex;a(C,function(T,w){var O=_[w],I=S.getComponent("parallelAxis",O),R=this._axesMap.set(T,new m(T,A.createScaleByModel(I),[0,0],I.get("type"),O)),M=R.type==="category";R.onBand=M&&I.get("boundaryGap"),R.inverse=I.get("inverse"),I.axis=R,R.model=I,R.coordinateSystem=I.coordinateSystem=this},this)},update:function(b,S){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var S=this._makeLayoutInfo(),E=S.axisBase,C=S.layoutBase,_=S.pixelDimIndex,T=b[1-_],w=b[_];return T>=E&&T<=E+S.axisLength&&w>=C&&w<=C+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,S){S.eachSeries(function(E){if(!b.contains(E,S))return;var C=E.getData();a(this.dimensions,function(_){var T=this._axesMap.get(_);T.scale.unionExtentFromData(C,C.mapDimension(_)),A.niceScaleExtent(T.scale,T.model)},this)},this)},resize:function(b,S){this._rect=x.getLayoutRect(b.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,S=this._rect,E=["x","y"],C=["width","height"],_=b.get("layout"),T=_==="horizontal"?0:1,w=S[C[T]],O=[0,w],I=this.dimensions.length,R=c(b.get("axisExpandWidth"),O),M=c(b.get("axisExpandCount")||0,[0,I]),F=b.get("axisExpandable")&&I>3&&I>M&&M>1&&R>0&&w>0,P=b.get("axisExpandWindow"),X;if(P)X=c(P[1]-P[0],O),P[1]=P[0]+X;else{X=c(R*(M-1),O);var B=b.get("axisExpandCenter")||o(I/2);P=[R*B-X/2],P[1]=P[0]+X}var j=(w-X)/(I-M);j<3&&(j=0);var W=[o(l(P[0]/R,1))+1,e(l(P[1]/R,1))-1],z=j/R*P[0];return{layout:_,pixelDimIndex:T,layoutBase:S[E[T]],layoutLength:w,axisBase:S[E[1-T]],axisLength:S[C[1-T]],axisExpandable:F,axisExpandWidth:R,axisCollapseWidth:j,axisExpandWindow:P,axisCount:I,winInnerIndices:W,axisExpandWindow0Pos:z}},_layoutAxes:function(){var b=this._rect,S=this._axesMap,E=this.dimensions,C=this._makeLayoutInfo(),_=C.layout;S.each(function(T){var w=[0,C.axisLength],O=T.inverse?1:0;T.setExtent(w[O],w[1-O])}),a(E,function(T,w){var O=(C.axisExpandable?g:d)(w,C),I={horizontal:{x:O.position,y:C.axisLength},vertical:{x:0,y:O.position}},R={horizontal:r/2,vertical:0},M=[I[_].x+b.x,I[_].y+b.y],F=R[_],P=p.create();p.rotate(P,P,F),p.translate(P,P,M),this._axesLayout[T]={position:M,rotation:F,transform:P,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(b),S)},eachActiveState:function(b,S,E,C){E==null&&(E=0),C==null&&(C=b.count());var _=this._axesMap,T=this.dimensions,w=[],O=[];y.each(T,function(j){w.push(b.mapDimension(j)),O.push(_.get(j).model)});for(var I=this.hasAxisBrushed(),R=E;R<C;R++){var M;if(!I)M="normal";else{M="active";for(var F=b.getValues(w,R),P=0,X=T.length;P<X;P++){var B=O[P].getActiveState(F[P]);if(B==="inactive"){M="inactive";break}}}S(M,R)}},hasAxisBrushed:function(){for(var b=this.dimensions,S=this._axesMap,E=!1,C=0,_=b.length;C<_;C++)S.get(b[C]).model.getActiveState()!=="normal"&&(E=!0);return E},axisCoordToPoint:function(b,S){var E=this._axesLayout[S];return f.applyTransform([b,0],E.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var S=this._makeLayoutInfo(),E=S.pixelDimIndex,C=S.axisExpandWindow.slice(),_=C[1]-C[0],T=[0,S.axisExpandWidth*(S.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:C};var w=b[E]-S.layoutBase-S.axisExpandWindow0Pos,O,I="slide",R=S.axisCollapseWidth,M=this._model.get("axisExpandSlideTriggerArea"),F=M[0]!=null;if(R)F&&R&&w<_*M[0]?(I="jump",O=w-_*M[2]):F&&R&&w>_*(1-M[0])?(I="jump",O=w-_*(1-M[2])):(O=w-_*M[1])>=0&&(O=w-_*(1-M[1]))<=0&&(O=0),O*=S.axisExpandWidth/R,O?u(O,C,T,"all"):I="none";else{var _=C[1]-C[0],P=T[1]*w/_;C=[t(0,P-_/2)],C[1]=i(T[1],C[0]+_),C[0]=C[1]-_}return{axisExpandWindow:C,behavior:I}}};function c(b,S){return i(t(b,S[0]),S[1])}function d(b,S){var E=S.layoutLength/(S.axisCount-1);return{position:E*b,axisNameAvailableWidth:E,axisLabelShow:!0}}function g(b,S){var E=S.layoutLength,C=S.axisExpandWidth,_=S.axisCount,T=S.axisCollapseWidth,w=S.winInnerIndices,O,I=T,R=!1,M;return b<w[0]?(O=b*T,M=T):b<=w[1]?(O=S.axisExpandWindow0Pos+b*C-S.axisExpandWindow[0],I=C,R=!0):(O=E-(_-1-b)*T,M=T),{position:O,axisNameAvailableWidth:I,axisLabelShow:R,nameTruncateMaxWidth:M}}var v=s;k.exports=v},"2fGM":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),A=n("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,A);var f={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function h(u,a){return a.type||(a.data?"category":"value")}x("angle",m,h,f.angle),x("radius",m,h,f.radius)},"2fM7":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("BGR+"),r=n("TSYQ"),s=n.n(r),c=n("1OyB"),d=n("vuIU"),g=n("Ji7U"),v=n("LK+K"),b=n("rePB"),S=n("Ff2n"),E=n("ODXe"),C=n("4IlW"),_=n("bX4T"),T=n("YrtM"),w=n("+nKL"),O=function(ke){var Pe=ke.className,tt=ke.customizeIcon,vt=ke.customizeIconProps,St=ke.onMouseDown,Vt=ke.onClick,Mr=ke.children,$r;return typeof tt=="function"?$r=tt(vt):$r=tt,e.createElement("span",{className:Pe,onMouseDown:function(jt){jt.preventDefault(),St&&St(jt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Vt,"aria-hidden":!0},$r!==void 0?$r:e.createElement("span",{className:s()(Pe.split(/\s+/).map(function(vn){return"".concat(vn,"-icon")}))},Mr))},I=O,R=function(ke,Pe){var tt=ke.prefixCls,vt=ke.id,St=ke.flattenOptions,Vt=ke.childrenAsData,Mr=ke.values,$r=ke.searchValue,vn=ke.multiple,jt=ke.defaultActiveFirstOption,gt=ke.height,pt=ke.itemHeight,ar=ke.notFoundContent,Ht=ke.open,Mt=ke.menuItemSelectedIcon,qt=ke.virtual,Rt=ke.onSelect,Qt=ke.onToggleOpen,jr=ke.onActiveValue,Nr=ke.onScroll,Lr=ke.onMouseEnter,ln="".concat(tt,"-item"),mn=Object(T.a)(function(){return St},[Ht,St],function($e,at){return at[0]&&$e[1]!==at[1]}),ti=e.useRef(null),$n=function(at){at.preventDefault()},hi=function(at){ti.current&&ti.current.scrollTo({index:at})},Ti=function(at){for(var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ft=mn.length,cr=0;cr<ft;cr+=1){var Jr=(at+cr*wt+ft)%ft,Qr=mn[Jr],fn=Qr.group,pr=Qr.data;if(!fn&&!pr.disabled)return Jr}return-1},Ni=e.useState(function(){return Ti(0)}),Wi=Object(E.a)(Ni,2),rt=Wi[0],Re=Wi[1],Ue=function(at){Re(at);var wt=mn[at];if(!wt){jr(null,-1);return}jr(wt.data.value,at)};e.useEffect(function(){Ue(jt!==!1?Ti(0):-1)},[mn.length,$r]),e.useEffect(function(){var $e=setTimeout(function(){if(!vn&&Ht&&Mr.size===1){var at=Array.from(Mr)[0],wt=mn.findIndex(function(ft){var cr=ft.data;return cr.value===at});Ue(wt),hi(wt)}});return function(){return clearTimeout($e)}},[Ht]);var Ye=function(at){at!==void 0&&Rt(at,{selected:!Mr.has(at)}),vn||Qt(!1)};if(e.useImperativeHandle(Pe,function(){return{onKeyDown:function(at){var wt=at.which;switch(wt){case C.a.UP:case C.a.DOWN:{var ft=0;if(wt===C.a.UP?ft=-1:wt===C.a.DOWN&&(ft=1),ft!==0){var cr=Ti(rt+ft,ft);hi(cr),Ue(cr)}break}case C.a.ENTER:{var Jr=mn[rt];Jr&&!Jr.data.disabled?Ye(Jr.data.value):Ye(void 0),Ht&&at.preventDefault();break}case C.a.ESC:Qt(!1)}},onKeyUp:function(){},scrollTo:function(at){hi(at)}}}),mn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(vt,"_list"),className:"".concat(ln,"-empty"),onMouseDown:$n},ar);function et($e){var at=mn[$e];if(!at)return null;var wt=at.data||{},ft=wt.value,cr=wt.label,Jr=wt.children,Qr=Object(_.a)(wt,!0),fn=Vt?Jr:cr;return at?e.createElement("div",Object.assign({"aria-label":typeof fn=="string"?fn:null},Qr,{key:$e,role:"option",id:"".concat(vt,"_list_").concat($e),"aria-selected":Mr.has(ft)}),ft):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(vt,"_list"),style:{height:0,width:0,overflow:"hidden"}},et(rt-1),et(rt),et(rt+1)),e.createElement(w.a,{itemKey:"key",ref:ti,data:mn,height:gt,itemHeight:pt,fullHeight:!1,onMouseDown:$n,onScroll:Nr,virtual:qt,onMouseEnter:Lr},function($e,at){var wt,ft=$e.group,cr=$e.groupOption,Jr=$e.data,Qr=Jr.label,fn=Jr.key;if(ft)return e.createElement("div",{className:s()(ln,"".concat(ln,"-group"))},Qr!==void 0?Qr:fn);var pr=Jr.disabled,Wn=Jr.value,kr=Jr.title,kn=Jr.children,bn=Jr.style,qr=Jr.className,fi=Object(S.a)(Jr,["disabled","value","title","children","style","className"]),Mi=Mr.has(Wn),Zi="".concat(ln,"-option"),tn=s()(ln,Zi,qr,(wt={},Object(b.a)(wt,"".concat(Zi,"-grouped"),cr),Object(b.a)(wt,"".concat(Zi,"-active"),rt===at&&!pr),Object(b.a)(wt,"".concat(Zi,"-disabled"),pr),Object(b.a)(wt,"".concat(Zi,"-selected"),Mi),wt)),En=Vt?kn:Qr,Vn=!Mt||typeof Mt=="function"||Mi;return e.createElement("div",Object.assign({},fi,{"aria-selected":Mi,className:tn,title:kr,onMouseMove:function(){if(rt===at||pr)return;Ue(at)},onClick:function(){pr||Ye(Wn)},style:bn}),e.createElement("div",{className:"".concat(Zi,"-content")},En||Wn),e.isValidElement(Mt)||Mi,Vn&&e.createElement(I,{className:"".concat(ln,"-option-state"),customizeIcon:Mt,customizeIconProps:{isSelected:Mi}},Mi?"\u2713":null))}))},M=e.forwardRef(R);M.displayName="OptionList";var F=M,P=function(){return null};P.isSelectOption=!0;var X=P,B=function(){return null};B.isSelectOptGroup=!0;var j=B,W=n("VTBJ"),z=n("Zm9Q");function V(Me){var ke=Me.key,Pe=Me.props,tt=Pe.children,vt=Pe.value,St=Object(S.a)(Pe,["children","value"]);return Object(W.a)({key:ke,value:vt!==void 0?vt:ke,children:tt},St)}function Q(Me){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(Me).map(function(Pe,tt){if(!e.isValidElement(Pe)||!Pe.type)return null;var vt=Pe.type.isSelectOptGroup,St=Pe.key,Vt=Pe.props,Mr=Vt.children,$r=Object(S.a)(Vt,["children"]);return ke||!vt?V(Pe):Object(W.a)(Object(W.a)({key:"__RC_SELECT_GRP__".concat(St===null?tt:St,"__"),label:St},$r),{},{options:Q(Mr)})}).filter(function(Pe){return Pe})}var G=n("KQm4"),re=n("T5bk"),ee=n("U8pU"),ue=n("Kwbf");function $(Me){return Array.isArray(Me)?Me:Me!==void 0?[Me]:[]}function be(Me,ke){var Pe=ke.labelInValue,tt=ke.combobox;if(Me===void 0||Me===""&&tt)return[];var vt=Array.isArray(Me)?Me:[Me];return Pe?vt.map(function(St){var Vt=St.key,Mr=St.value;return Mr!==void 0?Mr:Vt}):vt}function _e(Me,ke){var Pe=ke.optionLabelProp,tt=ke.labelInValue,vt=ke.prevValue,St=ke.options,Vt=ke.getLabeledValue,Mr=Me;return tt&&(Mr=Mr.map(function($r){return Vt($r,{options:St,prevValue:vt,labelInValue:tt,optionLabelProp:Pe})})),Mr}function Ee(Me,ke){var Pe=Object(G.a)(ke),tt;for(tt=Me.length-1;tt>=0&&Me[tt].disabled;tt-=1);var vt=null;return tt!==-1&&(vt=Pe[tt],Pe.splice(tt,1)),{values:Pe,removedValue:vt}}var Xe=typeof window!="undefined"&&window.document&&window.document.documentElement,He=Xe,nt=0;function Ie(){var Me;return He?(Me=nt,nt+=1):Me="TEST_OR_SSR",Me}function oe(Me,ke){var Pe=Me.key,tt;return"value"in Me&&(tt=Me.value),Pe!=null?Pe:tt!==void 0?tt:"rc-index-key-".concat(ke)}function ot(Me){var ke=[];function Pe(tt,vt){tt.forEach(function(St){vt||!("options"in St)?ke.push({key:oe(St,ke.length),groupOption:vt,data:St}):(ke.push({key:oe(St,ke.length),group:!0,data:St}),Pe(St.options,!0))})}return Pe(Me,!1),ke}function he(Me){var ke=Object(W.a)({},Me);return"props"in ke||Object.defineProperty(ke,"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`."),ke}}),ke}function J(Me,ke){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tt=Pe.prevValueOptions,vt=tt===void 0?[]:tt,St=new Map;return ke.forEach(function(Vt){if(!Vt.group){var Mr=Vt.data;St.set(Mr.value,Mr)}}),Me.map(function(Vt){var Mr=St.get(Vt);return Mr||(Mr=Object(W.a)({},vt.find(function($r){return $r._INTERNAL_OPTION_VALUE_===Vt}))),he(Mr)})}var Y=function(ke,Pe){var tt=Pe.options,vt=Pe.prevValue,St=Pe.labelInValue,Vt=Pe.optionLabelProp,Mr=J([ke],tt)[0],$r={value:ke},vn,jt=$(vt);return St&&(vn=jt.find(function(gt){return Object(ee.a)(gt)==="object"&&"value"in gt?gt.value===ke:gt.key===ke})),vn&&Object(ee.a)(vn)==="object"&&"label"in vn?($r.label=vn.label,Mr&&typeof vn.label=="string"&&typeof Mr[Vt]=="string"&&vn.label.trim()!==Mr[Vt].trim()&&Object(ue.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Mr&&Vt in Mr?$r.label=Mr[Vt]:$r.label=ke,$r.key=$r.value,$r};function q(Me){return $(Me).join("")}function fe(Me){return function(ke,Pe){var tt=ke.toLowerCase();if("options"in Pe)return q(Pe.label).toLowerCase().includes(tt);var vt=Pe[Me],St=q(vt).toLowerCase();return St.includes(tt)}}function we(Me,ke,Pe){var tt=Pe.optionFilterProp,vt=Pe.filterOption,St=[],Vt;return vt===!1?ke:(typeof vt=="function"?Vt=vt:Vt=fe(tt),ke.forEach(function(Mr){if("options"in Mr){var $r=Vt(Me,Mr);if($r)St.push(Mr);else{var vn=Mr.options.filter(function(jt){return Vt(Me,jt)});vn.length&&St.push(Object(W.a)(Object(W.a)({},Mr),{},{options:vn}))}return}Vt(Me,he(Mr))&&St.push(Mr)}),St)}function Ne(Me,ke){if(!ke||!ke.length)return null;var Pe=!1;function tt(St,Vt){var Mr=Object(re.a)(Vt),$r=Mr[0],vn=Mr.slice(1);if(!$r)return[St];var jt=St.split($r);return Pe=Pe||jt.length>1,jt.reduce(function(gt,pt){return[].concat(Object(G.a)(gt),Object(G.a)(tt(pt,vn)))},[]).filter(function(gt){return gt})}var vt=tt(Me,ke);return Pe?vt:null}function je(Me,ke){var Pe=J([Me],ke)[0];return Pe.disabled}function me(Me,ke,Pe,tt){var vt=$(ke).slice().sort(),St=Object(G.a)(Me),Vt=new Set;return Me.forEach(function(Mr){Mr.options?Mr.options.forEach(function($r){Vt.add($r.value)}):Vt.add(Mr.value)}),vt.forEach(function(Mr){var $r=tt?Mr.value:Mr;if(!Vt.has($r)){var vn;St.push(tt?(vn={},Object(b.a)(vn,Pe,Mr.label),Object(b.a)(vn,"value",$r),vn):{value:$r})}}),St}var Ce=n("6cGi"),Fe=n("HTfv"),it=n("c+Xe"),Ct=function(ke,Pe){var tt=ke.prefixCls,vt=ke.id,St=ke.inputElement,Vt=ke.disabled,Mr=ke.tabIndex,$r=ke.autoFocus,vn=ke.autoComplete,jt=ke.editable,gt=ke.accessibilityIndex,pt=ke.value,ar=ke.onKeyDown,Ht=ke.onMouseDown,Mt=ke.onChange,qt=ke.onPaste,Rt=ke.onCompositionStart,Qt=ke.onCompositionEnd,jr=ke.open,Nr=ke.attrs,Lr=St||e.createElement("input",null),ln=Lr,mn=ln.ref,ti=ln.props,$n=ti.onKeyDown,hi=ti.onChange,Ti=ti.onMouseDown,Ni=ti.onCompositionStart,Wi=ti.onCompositionEnd,rt=ti.style;return Lr=e.cloneElement(Lr,Object(W.a)(Object(W.a)({id:vt,ref:Object(it.a)(Pe,mn),disabled:Vt,tabIndex:Mr,autoComplete:vn||"off",autoFocus:$r,className:"".concat(tt,"-selection-search-input"),style:Object(W.a)(Object(W.a)({},rt),{},{opacity:jt?null:0}),role:"combobox","aria-expanded":jr,"aria-haspopup":"listbox","aria-owns":"".concat(vt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(vt,"_list"),"aria-activedescendant":"".concat(vt,"_list_").concat(gt)},Nr),{},{value:jt?pt:"",readOnly:!jt,unselectable:jt?null:"on",onKeyDown:function(Ue){ar(Ue),$n&&$n(Ue)},onMouseDown:function(Ue){Ht(Ue),Ti&&Ti(Ue)},onChange:function(Ue){Mt(Ue),hi&&hi(Ue)},onCompositionStart:function(Ue){Rt(Ue),Ni&&Ni(Ue)},onCompositionEnd:function(Ue){Qt(Ue),Wi&&Wi(Ue)},onPaste:qt})),Lr},mt=e.forwardRef(Ct);mt.displayName="Input";var Ve=mt;function or(Me,ke){He?e.useLayoutEffect(Me,ke):e.useEffect(Me,ke)}var dt="__RC_SELECT_MAX_REST_COUNT__",Yt=function(ke){var Pe=ke.id,tt=ke.prefixCls,vt=ke.values,St=ke.open,Vt=ke.searchValue,Mr=ke.inputRef,$r=ke.placeholder,vn=ke.disabled,jt=ke.mode,gt=ke.showSearch,pt=ke.autoFocus,ar=ke.autoComplete,Ht=ke.accessibilityIndex,Mt=ke.tabIndex,qt=ke.removeIcon,Rt=ke.choiceTransitionName,Qt=ke.maxTagCount,jr=ke.maxTagTextLength,Nr=ke.maxTagPlaceholder,Lr=Nr===void 0?function(Wn){return"+ ".concat(Wn.length," ...")}:Nr,ln=ke.tagRender,mn=ke.onSelect,ti=ke.onInputChange,$n=ke.onInputPaste,hi=ke.onInputKeyDown,Ti=ke.onInputMouseDown,Ni=ke.onInputCompositionStart,Wi=ke.onInputCompositionEnd,rt=e.useState(!1),Re=Object(E.a)(rt,2),Ue=Re[0],Ye=Re[1],et=e.useRef(null),$e=e.useState(0),at=Object(E.a)($e,2),wt=at[0],ft=at[1];e.useEffect(function(){Ye(!0)},[]);var cr=St||jt==="tags"?Vt:"",Jr=jt==="tags"||St&&gt;or(function(){ft(et.current.scrollWidth)},[cr]);var Qr=vt,fn;typeof Qt=="number"&&(fn=vt.length-Qt,Qr=vt.slice(0,Qt)),typeof jr=="number"&&(Qr=Qr.map(function(Wn){var kr=Wn.label,kn=Object(S.a)(Wn,["label"]),bn=kr;if(typeof kr=="string"||typeof kr=="number"){var qr=String(bn);qr.length>jr&&(bn="".concat(qr.slice(0,jr),"..."))}return Object(W.a)(Object(W.a)({},kn),{},{label:bn})})),fn>0&&Qr.push({key:dt,label:typeof Lr=="function"?Lr(vt.slice(Qt)):Lr});var pr=e.createElement(Fe.CSSMotionList,{component:!1,keys:Qr,motionName:Rt,motionAppear:Ue},function(Wn){var kr=Wn.key,kn=Wn.label,bn=Wn.value,qr=Wn.disabled,fi=Wn.className,Mi=Wn.style,Zi=kr||bn,tn=kr!==dt&&!qr,En=function(Et){Et.preventDefault(),Et.stopPropagation()},Vn=function(Et){Et&&Et.stopPropagation(),mn(bn,{selected:!1})};return typeof ln=="function"?e.createElement("span",{key:Zi,onMouseDown:En,className:fi,style:Mi},ln({label:kn,value:bn,disabled:qr,closable:tn,onClose:Vn})):e.createElement("span",{key:Zi,className:s()(fi,"".concat(tt,"-selection-item"),Object(b.a)({},"".concat(tt,"-selection-item-disabled"),qr)),style:Mi},e.createElement("span",{className:"".concat(tt,"-selection-item-content")},kn),tn&&e.createElement(I,{className:"".concat(tt,"-selection-item-remove"),onMouseDown:En,onClick:Vn,customizeIcon:qt},"\xD7"))});return e.createElement(e.Fragment,null,pr,e.createElement("span",{className:"".concat(tt,"-selection-search"),style:{width:wt}},e.createElement(Ve,{ref:Mr,open:St,prefixCls:tt,id:Pe,inputElement:null,disabled:vn,autoFocus:pt,autoComplete:ar,editable:Jr,accessibilityIndex:Ht,value:cr,onKeyDown:hi,onMouseDown:Ti,onChange:ti,onPaste:$n,onCompositionStart:Ni,onCompositionEnd:Wi,tabIndex:Mt,attrs:Object(_.a)(ke,!0)}),e.createElement("span",{ref:et,className:"".concat(tt,"-selection-search-mirror"),"aria-hidden":!0},cr,"\xA0")),!vt.length&&!cr&&e.createElement("span",{className:"".concat(tt,"-selection-placeholder")},$r))},hr=Yt,Gt=function(ke){var Pe=ke.inputElement,tt=ke.prefixCls,vt=ke.id,St=ke.inputRef,Vt=ke.disabled,Mr=ke.autoFocus,$r=ke.autoComplete,vn=ke.accessibilityIndex,jt=ke.mode,gt=ke.open,pt=ke.values,ar=ke.placeholder,Ht=ke.tabIndex,Mt=ke.showSearch,qt=ke.searchValue,Rt=ke.activeValue,Qt=ke.onInputKeyDown,jr=ke.onInputMouseDown,Nr=ke.onInputChange,Lr=ke.onInputPaste,ln=ke.onInputCompositionStart,mn=ke.onInputCompositionEnd,ti=e.useState(!1),$n=Object(E.a)(ti,2),hi=$n[0],Ti=$n[1],Ni=jt==="combobox",Wi=Ni||Mt&&gt,rt=pt[0],Re=qt||"";Ni&&Rt&&!hi&&(Re=Rt),e.useEffect(function(){Ni&&Ti(!1)},[Ni,Rt]);var Ue=jt!=="combobox"&&!gt?!1:!!Re,Ye=rt&&(typeof rt.label=="string"||typeof rt.label=="number")?rt.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(tt,"-selection-search")},e.createElement(Ve,{ref:St,prefixCls:tt,id:vt,open:gt,inputElement:Pe,disabled:Vt,autoFocus:Mr,autoComplete:$r,editable:Wi,accessibilityIndex:vn,value:Re,onKeyDown:Qt,onMouseDown:jr,onChange:function($e){Ti(!0),Nr($e)},onPaste:Lr,onCompositionStart:ln,onCompositionEnd:mn,tabIndex:Ht,attrs:Object(_.a)(ke,!0)})),!Ni&&rt&&!Ue&&e.createElement("span",{className:"".concat(tt,"-selection-item"),title:Ye},rt.label),!rt&&!Ue&&e.createElement("span",{className:"".concat(tt,"-selection-placeholder")},ar))},Pt=Gt;function Xt(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ke=e.useRef(null),Pe=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Pe.current)}},[]);function tt(vt){(vt||ke.current===null)&&(ke.current=vt),window.clearTimeout(Pe.current),Pe.current=window.setTimeout(function(){ke.current=null},Me)}return[function(){return ke.current},tt]}var Ge=function(ke,Pe){var tt=Object(e.useRef)(null),vt=Object(e.useRef)(!1),St=ke.prefixCls,Vt=ke.multiple,Mr=ke.open,$r=ke.mode,vn=ke.showSearch,jt=ke.tokenWithEnter,gt=ke.onSearch,pt=ke.onSearchSubmit,ar=ke.onToggleOpen,Ht=ke.onInputKeyDown,Mt=ke.domRef;e.useImperativeHandle(Pe,function(){return{focus:function(){tt.current.focus()},blur:function(){tt.current.blur()}}});var qt=Xt(0),Rt=Object(E.a)(qt,2),Qt=Rt[0],jr=Rt[1],Nr=function(Ue){var Ye=Ue.which;(Ye===C.a.UP||Ye===C.a.DOWN)&&Ue.preventDefault(),Ht&&Ht(Ue),Ye===C.a.ENTER&&$r==="tags"&&!vt.current&&!Mr&&pt(Ue.target.value),[C.a.SHIFT,C.a.TAB,C.a.BACKSPACE,C.a.ESC].includes(Ye)||ar(!0)},Lr=function(){jr(!0)},ln=Object(e.useRef)(null),mn=function(Ue){gt(Ue,!0,vt.current)!==!1&&ar(!0)},ti=function(){vt.current=!0},$n=function(){vt.current=!1},hi=function(Ue){var Ye=Ue.target.value;if(jt&&ln.current&&/[\r\n]/.test(ln.current)){var et=ln.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ye=Ye.replace(et,ln.current)}ln.current=null,mn(Ye)},Ti=function(Ue){var Ye=Ue.clipboardData,et=Ye.getData("text");ln.current=et},Ni=function(Ue){var Ye=Qt();if(Ue.target!==tt.current){Ye||Ue.preventDefault();var et=document.body.style.msTouchAction!==void 0;et?setTimeout(function(){tt.current.focus()}):tt.current.focus()}($r!=="combobox"&&(!vn||!Ye)||!Mr)&&(Mr&&gt("",!0,!1),ar())},Wi={inputRef:tt,onInputKeyDown:Nr,onInputMouseDown:Lr,onInputChange:hi,onInputPaste:Ti,onInputCompositionStart:ti,onInputCompositionEnd:$n},rt=Vt?e.createElement(hr,Object.assign({},ke,Wi)):e.createElement(Pt,Object.assign({},ke,Wi));return e.createElement("div",{ref:Mt,className:"".concat(St,"-selector"),onMouseDown:Ni},rt)},pe=e.forwardRef(Ge);pe.displayName="Selector";var se=pe,lt=n("Uaa1"),Ze=function(ke){var Pe=typeof ke!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1}}}},de=function(ke,Pe){var tt=ke.prefixCls,vt=ke.disabled,St=ke.visible,Vt=ke.children,Mr=ke.popupElement,$r=ke.containerWidth,vn=ke.animation,jt=ke.transitionName,gt=ke.dropdownStyle,pt=ke.dropdownClassName,ar=ke.direction,Ht=ar===void 0?"ltr":ar,Mt=ke.dropdownMatchSelectWidth,qt=Mt===void 0?!0:Mt,Rt=ke.dropdownRender,Qt=ke.dropdownAlign,jr=ke.getPopupContainer,Nr=ke.empty,Lr=ke.getTriggerDOMNode,ln=Object(S.a)(ke,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),mn="".concat(tt,"-dropdown"),ti=Mr;Rt&&(ti=Rt(Mr));var $n=e.useMemo(function(){return Ze(qt)},[qt]),hi=vn?"".concat(mn,"-").concat(vn):jt,Ti=e.useRef(null);e.useImperativeHandle(Pe,function(){return{getPopupElement:function(){return Ti.current}}});var Ni=Object(W.a)({minWidth:$r},gt);return typeof qt=="number"?Ni.width=qt:qt&&(Ni.width=$r),e.createElement(lt.a,Object.assign({},ln,{showAction:[],hideAction:[],popupPlacement:Ht==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:$n,prefixCls:mn,popupTransitionName:hi,popup:e.createElement("div",{ref:Ti},ti),popupAlign:Qt,popupVisible:St,getPopupContainer:jr,popupClassName:s()(pt,Object(b.a)({},"".concat(mn,"-empty"),Nr)),popupStyle:Ni,getTriggerDOMNode:Lr}),Vt)},_t=e.forwardRef(de);_t.displayName="SelectTrigger";var er=_t,yt="RC_SELECT_INTERNAL_PROPS_MARK";function Ar(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ke=e.useState(!1),Pe=Object(E.a)(ke,2),tt=Pe[0],vt=Pe[1],St=e.useRef(null),Vt=function(){window.clearTimeout(St.current)};e.useEffect(function(){return Vt},[]);var Mr=function(vn,jt){Vt(),St.current=window.setTimeout(function(){vt(vn),jt&&jt()},Me)};return[tt,Mr,Vt]}function Sr(Me,ke,Pe){var tt=e.useRef(null);tt.current={elements:Me.filter(function(vt){return vt}),open:ke,triggerOpen:Pe},e.useEffect(function(){function vt(St){var Vt=St.target;tt.current.open&&tt.current.elements.every(function(Mr){return!Mr.contains(Vt)&&Mr!==Vt})&&tt.current.triggerOpen(!1)}return window.addEventListener("mousedown",vt),function(){return window.removeEventListener("mousedown",vt)}},[])}function Cn(Me){var ke=e.useRef(Me),Pe=e.useMemo(function(){var tt=new Map;ke.current.forEach(function(St){var Vt=St.value,Mr=St.label;Vt!==Mr&&tt.set(Vt,Mr)});var vt=Me.map(function(St){var Vt=tt.get(St.value);return St.value===St.label&&Vt?Object(W.a)(Object(W.a)({},St),{},{label:Vt}):St});return ke.current=vt,vt},[Me]);return Pe}function mr(Me,ke){var Pe=e.useRef(null),tt=e.useMemo(function(){var St=new Map;return ke.forEach(function(Vt){var Mr=Vt.data.value;St.set(Mr,Vt)}),St},[Me,ke]);Pe.current=tt;var vt=function(Vt){return Vt.map(function(Mr){return Pe.current.get(Mr)}).filter(Boolean)};return vt}var Pr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function gr(Me){var ke=Me.prefixCls,Pe=Me.components.optionList,tt=Me.convertChildrenToData,vt=Me.flattenOptions,St=Me.getLabeledValue,Vt=Me.filterOptions,Mr=Me.isValueDisabled,$r=Me.findValueOption,vn=Me.warningProps,jt=Me.fillOptionsWithMissingValue,gt=Me.omitDOMProps;function pt(Ht,Mt){var qt,Rt=Ht.prefixCls,Qt=Rt===void 0?ke:Rt,jr=Ht.className,Nr=Ht.id,Lr=Ht.open,ln=Ht.defaultOpen,mn=Ht.options,ti=Ht.children,$n=Ht.mode,hi=Ht.value,Ti=Ht.defaultValue,Ni=Ht.labelInValue,Wi=Ht.showSearch,rt=Ht.inputValue,Re=Ht.searchValue,Ue=Ht.filterOption,Ye=Ht.optionFilterProp,et=Ye===void 0?"value":Ye,$e=Ht.autoClearSearchValue,at=$e===void 0?!0:$e,wt=Ht.onSearch,ft=Ht.allowClear,cr=Ht.clearIcon,Jr=Ht.showArrow,Qr=Ht.inputIcon,fn=Ht.menuItemSelectedIcon,pr=Ht.disabled,Wn=Ht.loading,kr=Ht.defaultActiveFirstOption,kn=Ht.notFoundContent,bn=kn===void 0?"Not Found":kn,qr=Ht.optionLabelProp,fi=Ht.backfill,Mi=Ht.getInputElement,Zi=Ht.getPopupContainer,tn=Ht.listHeight,En=tn===void 0?200:tn,Vn=Ht.listItemHeight,Wt=Vn===void 0?20:Vn,Et=Ht.animation,kt=Ht.transitionName,Bt=Ht.virtual,Kt=Ht.dropdownStyle,Ot=Ht.dropdownClassName,sr=Ht.dropdownMatchSelectWidth,fr=Ht.dropdownRender,vr=Ht.dropdownAlign,Rr=Ht.showAction,Kn=Rr===void 0?[]:Rr,Dn=Ht.direction,ui=Ht.tokenSeparators,pn=Ht.tagRender,Br=Ht.onPopupScroll,Tn=Ht.onDropdownVisibleChange,zn=Ht.onFocus,Qn=Ht.onBlur,ii=Ht.onKeyUp,xi=Ht.onKeyDown,Di=Ht.onMouseDown,Li=Ht.onChange,oa=Ht.onSelect,ma=Ht.onDeselect,ia=Ht.onClear,ba=Ht.internalProps,vi=ba===void 0?{}:ba,Ln=Object(S.a)(Ht,["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"]),Fi=vi.mark===yt,ha=gt?gt(Ln):Ln;Pr.forEach(function(pa){delete ha[pa]});var ea=Object(e.useRef)(null),aa=Object(e.useRef)(null),Ir=Object(e.useRef)(null),wr=Object(e.useRef)(null),xn=Object(e.useMemo)(function(){return(ui||[]).some(function(pa){return[`
`,`\r
`].includes(pa)})},[ui]),ur=Ar(),Dr=Object(E.a)(ur,3),Vr=Dr[0],sn=Dr[1],Rn=Dr[2],xt=Object(e.useState)(),_r=Object(E.a)(xt,2),Or=_r[0],en=_r[1];Object(e.useEffect)(function(){en("rc_select_".concat(Ie()))},[]);var wn=Nr||Or,_n=qr;_n===void 0&&(_n=mn?"label":"children");var yn=$n==="combobox"?!1:Ni,Jn=$n==="tags"||$n==="multiple",Un=Wi!==void 0?Wi:Jn||$n==="combobox",pi=Object(e.useRef)(null);e.useImperativeHandle(Mt,function(){return{focus:Ir.current.focus,blur:Ir.current.blur}});var ki=Object(Ce.a)(Ti,{value:hi}),yi=Object(E.a)(ki,2),_i=yi[0],Ki=yi[1],qi=Object(e.useMemo)(function(){return be(_i,{labelInValue:yn,combobox:$n==="combobox"})},[_i,yn]),zi=Object(e.useMemo)(function(){return new Set(qi)},[qi]),Hi=Object(e.useState)(null),Ui=Object(E.a)(Hi,2),Qi=Ui[0],ca=Ui[1],Ca=Object(e.useState)(""),ra=Object(E.a)(Ca,2),Ma=ra[0],La=ra[1],va=Ma;$n==="combobox"&&_i!==void 0?va=_i:Re!==void 0?va=Re:rt&&(va=rt);var ga=Object(e.useMemo)(function(){var pa=mn;return pa===void 0&&(pa=tt(ti)),$n==="tags"&&jt&&(pa=jt(pa,_i,_n,Ni)),pa||[]},[mn,ti,$n,_i]),Oa=Object(e.useMemo)(function(){return vt(ga,Ht)},[ga]),Aa=mr(qi,Oa),Ga=Object(e.useMemo)(function(){if(!va||!Un)return Object(G.a)(ga);var pa=Vt(va,ga,{optionFilterProp:et,filterOption:$n==="combobox"&&Ue===void 0?function(){return!0}:Ue});return $n==="tags"&&pa.every(function(Ea){return Ea[et]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,$n,Un]),_a=Object(e.useMemo)(function(){return vt(Ga,Ht)},[Ga]);Object(e.useEffect)(function(){wr.current&&wr.current.scrollTo&&wr.current.scrollTo(0)},[va]);var Va=Object(e.useMemo)(function(){var pa=qi.map(function(Ea){var Fa=Aa([Ea]),Ka=St(Ea,{options:Fa,prevValue:_i,labelInValue:yn,optionLabelProp:_n});return Object(W.a)(Object(W.a)({},Ka),{},{disabled:Mr(Ea,Fa)})});return!$n&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[_i,ga,$n]);Va=Cn(Va);var Bi=function(Ea,Fa,Ka){var lo=Aa([Ea]),so=$r([Ea],lo)[0];if(!vi.skipTriggerSelect){var Co=yn?St(Ea,{options:lo,prevValue:_i,labelInValue:yn,optionLabelProp:_n}):Ea;Fa&&oa?oa(Co,so):!Fa&&ma&&ma(Co,so)}Fi&&(Fa&&vi.onRawSelect?vi.onRawSelect(Ea,so,Ka):!Fa&&vi.onRawDeselect&&vi.onRawDeselect(Ea,so,Ka))},io=Object(e.useState)([]),oo=Object(E.a)(io,2),Qo=oo[0],mo=oo[1],To=function(Ea){if(Fi&&vi.skipTriggerChange)return;var Fa=Aa(Ea),Ka=_e(Array.from(Ea),{labelInValue:yn,options:Fa,getLabeledValue:St,prevValue:_i,optionLabelProp:_n}),lo=Jn?Ka:Ka[0];if(Li&&(qi.length!==0||Ka.length!==0)){var so=$r(Ea,Fa,{prevValueOptions:Qo});mo(so.map(function(Co,Lo){var is=Object(W.a)({},Co);return Object.defineProperty(is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ea[Lo]}}),is})),Li(lo,Jn?so:so[0])}Ki(lo)},ao=function(Ea,Fa){var Ka=Fa.selected,lo=Fa.source;if(pr)return;var so;Jn?(so=new Set(qi),Ka?so.add(Ea):so.delete(Ea)):(so=new Set,so.add(Ea)),(Jn||!Jn&&Array.from(qi)[0]!==Ea)&&To(Array.from(so)),Bi(Ea,!Jn||Ka,lo),$n==="combobox"?(La(String(Ea)),ca("")):(!Jn||at)&&(La(""),ca(""))},So=function(Ea,Fa){ao(Ea,Object(W.a)(Object(W.a)({},Fa),{},{source:"option"}))},bo=function(Ea,Fa){ao(Ea,Object(W.a)(Object(W.a)({},Fa),{},{source:"selection"}))},to=$n==="combobox"&&Mi&&Mi()||null,Jo=Object(Ce.a)(void 0,{defaultValue:ln,value:Lr}),Uo=Object(E.a)(Jo,2),wo=Uo[0],ts=Uo[1],Ia=wo,Oo=!bn&&!Ga.length;(pr||Oo&&Ia&&$n==="combobox")&&(Ia=!1);var Io=Oo?!1:Ia,os=function(Ea){var Fa=Ea!==void 0?Ea:!Ia;wo!==Fa&&!pr&&(ts(Fa),Tn&&Tn(Fa))};Sr([ea.current,aa.current&&aa.current.getPopupElement()],Io,os);var xo=function(Ea,Fa,Ka){var lo=!0,so=Ea;ca(null);var Co=Ka?null:Ne(Ea,ui),Lo=Co;if($n==="combobox")Fa&&To([so]);else if(Co){so="",$n!=="tags"&&(Lo=Co.map(function(cs){var Rs=Oa.find(function(Ko){var as=Ko.data;return as[_n]===cs});return Rs?Rs.data.value:null}).filter(function(cs){return cs!==null}));var is=Array.from(new Set([].concat(Object(G.a)(qi),Object(G.a)(Lo))));To(is),is.forEach(function(cs){Bi(cs,!0,"input")}),os(!1),lo=!1}return La(so),wt&&va!==so&&wt(so),lo},rs=function(Ea){var Fa=Array.from(new Set([].concat(Object(G.a)(qi),[Ea])));To(Fa),Fa.forEach(function(Ka){Bi(Ka,!0,"input")}),La("")};Object(e.useEffect)(function(){wo&&!!pr&&ts(!1)},[pr]),Object(e.useEffect)(function(){!Ia&&!Jn&&$n!=="combobox"&&xo("",!1,!1)},[Ia]);var Ho=Xt(),_o=Object(E.a)(Ho,2),uo=_o[0],Ha=_o[1],ht=function(Ea){var Fa=uo(),Ka=Ea.which;if(!Ia&&Ka===C.a.ENTER&&os(!0),Ha(!!va),Ka===C.a.BACKSPACE&&!Fa&&Jn&&!va&&qi.length){var lo=Ee(Va,qi);lo.removedValue!==null&&(To(lo.values),Bi(lo.removedValue,!1,"input"))}for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];if(Ia&&wr.current){var is;(is=wr.current).onKeyDown.apply(is,[Ea].concat(Co))}xi&&xi.apply(void 0,[Ea].concat(Co))},Er=function(Ea){for(var Fa=arguments.length,Ka=new Array(Fa>1?Fa-1:0),lo=1;lo<Fa;lo++)Ka[lo-1]=arguments[lo];if(Ia&&wr.current){var so;(so=wr.current).onKeyUp.apply(so,[Ea].concat(Ka))}ii&&ii.apply(void 0,[Ea].concat(Ka))},Zr=Object(e.useRef)(!1),Xr=function(){sn(!0),pr||(zn&&!Zr.current&&zn.apply(void 0,arguments),Kn.includes("focus")&&os(!0)),Zr.current=!0},Xn=function(){if(sn(!1,function(){Zr.current=!1,os(!1)}),pr)return;va&&($n==="tags"?(xo("",!1,!1),To(Array.from(new Set([].concat(Object(G.a)(qi),[va]))))):$n==="multiple"&&La("")),Qn&&Qn.apply(void 0,arguments)},un=[];Object(e.useEffect)(function(){return function(){un.forEach(function(pa){return clearTimeout(pa)}),un.splice(0,un.length)}},[]);var Gr=function(Ea){var Fa=Ea.target,Ka=aa.current&&aa.current.getPopupElement();if(Ka&&Ka.contains(Fa)){var lo=setTimeout(function(){var is=un.indexOf(lo);is!==-1&&un.splice(is,1),Rn(),Ka.contains(document.activeElement)||Ir.current.focus()});un.push(lo)}if(Di){for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];Di.apply(void 0,[Ea].concat(Co))}},ri=Object(e.useState)(0),rn=Object(E.a)(ri,2),jn=rn[0],oi=rn[1],li=kr!==void 0?kr:$n!=="combobox",ai=function(Ea,Fa){oi(Fa),fi&&$n==="combobox"&&Ea!==null&&ca(String(Ea))},Ei=Object(e.useState)(null),mi=Object(E.a)(Ei,2),Ai=mi[0],Ii=mi[1],na=Object(e.useState)({}),ji=Object(E.a)(na,2),fa=ji[1];function Xa(){fa({})}or(function(){if(Io){var pa=Math.ceil(ea.current.offsetWidth);Ai!==pa&&Ii(pa)}},[Io]);var xa=e.createElement(Pe,{ref:wr,prefixCls:Qt,id:wn,open:Ia,childrenAsData:!mn,options:Ga,flattenOptions:_a,multiple:Jn,values:zi,height:En,itemHeight:Wt,onSelect:So,onToggleOpen:os,onActiveValue:ai,defaultActiveFirstOption:li,notFoundContent:bn,onScroll:Br,searchValue:va,menuItemSelectedIcon:fn,virtual:Bt!==!1&&sr!==!1,onMouseEnter:Xa}),wa,Da=function(){Fi&&vi.onClear&&vi.onClear(),ia&&ia(),To([]),xo("",!1,!1)};!pr&&ft&&(qi.length||va)&&(wa=e.createElement(I,{className:"".concat(Qt,"-clear"),onMouseDown:Da,customizeIcon:cr},"\xD7"));var ja=Jr!==void 0?Jr:Wn||!Jn&&$n!=="combobox",ko;ja&&(ko=e.createElement(I,{className:s()("".concat(Qt,"-arrow"),Object(b.a)({},"".concat(Qt,"-arrow-loading"),Wn)),customizeIcon:Qr,customizeIconProps:{loading:Wn,searchValue:va,open:Ia,focused:Vr,showSearch:Un}}));var ro=s()(Qt,jr,(qt={},Object(b.a)(qt,"".concat(Qt,"-focused"),Vr),Object(b.a)(qt,"".concat(Qt,"-multiple"),Jn),Object(b.a)(qt,"".concat(Qt,"-single"),!Jn),Object(b.a)(qt,"".concat(Qt,"-allow-clear"),ft),Object(b.a)(qt,"".concat(Qt,"-show-arrow"),ja),Object(b.a)(qt,"".concat(Qt,"-disabled"),pr),Object(b.a)(qt,"".concat(Qt,"-loading"),Wn),Object(b.a)(qt,"".concat(Qt,"-open"),Ia),Object(b.a)(qt,"".concat(Qt,"-customize-input"),to),Object(b.a)(qt,"".concat(Qt,"-show-search"),Un),qt));return e.createElement("div",Object.assign({className:ro},ha,{ref:ea,onMouseDown:Gr,onKeyDown:ht,onKeyUp:Er,onFocus:Xr,onBlur:Xn}),Vr&&!Ia&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(qi.join(", "))),e.createElement(er,{ref:aa,disabled:pr,prefixCls:Qt,visible:Io,popupElement:xa,containerWidth:Ai,animation:Et,transitionName:kt,dropdownStyle:Kt,dropdownClassName:Ot,direction:Dn,dropdownMatchSelectWidth:sr,dropdownRender:fr,dropdownAlign:vr,getPopupContainer:Zi,empty:!ga.length,getTriggerDOMNode:function(){return pi.current}},e.createElement(se,Object.assign({},Ht,{domRef:pi,prefixCls:Qt,inputElement:to,ref:Ir,id:wn,showSearch:Un,mode:$n,accessibilityIndex:jn,multiple:Jn,tagRender:pn,values:Va,open:Ia,onToggleOpen:os,searchValue:va,activeValue:Qi,onSearch:xo,onSearchSubmit:rs,onSelect:bo,tokenWithEnter:xn}))),ko,wa)}var ar=e.forwardRef(pt);return ar}function Jt(Me){var ke=Me.mode,Pe=Me.options,tt=Me.children,vt=Me.backfill,St=Me.allowClear,Vt=Me.placeholder,Mr=Me.getInputElement,$r=Me.showSearch,vn=Me.onSearch,jt=Me.defaultOpen,gt=Me.autoFocus,pt=Me.labelInValue,ar=Me.value,Ht=Me.inputValue,Mt=Me.optionLabelProp,qt=ke==="multiple"||ke==="tags",Rt=$r!==void 0?$r:qt||ke==="combobox",Qt=Pe||Q(tt);if(Object(ue.a)(ke!=="tags"||Qt.every(function(ln){return!ln.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ke==="tags"||ke==="combobox"){var jr=Qt.some(function(ln){return ln.options?ln.options.some(function(mn){return typeof("value"in mn?mn.value:mn.key)=="number"}):typeof("value"in ln?ln.value:ln.key)=="number"});Object(ue.a)(!jr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ue.a)(ke!=="combobox"||!Mt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ue.a)(ke==="combobox"||!vt,"`backfill` only works with `combobox` mode."),Object(ue.a)(ke==="combobox"||!Mr,"`getInputElement` only work with `combobox` mode."),Object(ue.b)(ke!=="combobox"||!Mr||!St||!Vt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),vn&&!Rt&&ke!=="combobox"&&ke!=="tags"&&Object(ue.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ue.b)(!jt||gt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ar!=null){var Nr=$(ar);Object(ue.a)(!pt||Nr.every(function(ln){return Object(ee.a)(ln)==="object"&&("key"in ln||"value"in ln)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ue.a)(!qt||Array.isArray(ar),"`value` should be array when `mode` is `multiple` or `tags`")}if(tt){var Lr=null;Object(z.a)(tt).some(function(ln){if(!e.isValidElement(ln)||!ln.type)return!1;var mn=ln.type;if(mn.isSelectOption)return!1;if(mn.isSelectOptGroup){var ti=Object(z.a)(ln.props.children).every(function($n){return!e.isValidElement($n)||!ln.type||$n.type.isSelectOption?!0:(Lr=$n.type,!1)});return!ti}return Lr=mn,!0}),Lr&&Object(ue.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Lr.displayName||Lr.name||Lr,"`.")),Object(ue.a)(Ht===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Dt=Jt,dn=gr({prefixCls:"rc-select",components:{optionList:F},convertChildrenToData:Q,flattenOptions:ot,getLabeledValue:Y,filterOptions:we,isValueDisabled:je,findValueOption:J,warningProps:Dt,fillOptionsWithMissingValue:me}),Fn=function(Me){Object(g.a)(Pe,Me);var ke=Object(v.a)(Pe);function Pe(){var tt;return Object(c.a)(this,Pe),tt=ke.apply(this,arguments),tt.selectRef=e.createRef(),tt.focus=function(){tt.selectRef.current.focus()},tt.blur=function(){tt.selectRef.current.blur()},tt}return Object(d.a)(Pe,[{key:"render",value:function(){return e.createElement(dn,Object.assign({ref:this.selectRef},this.props))}}]),Pe}(e.Component);Fn.Option=X,Fn.OptGroup=j;var Zn=Fn,ci=Zn,Xi=n("H84U"),Gn=n("1vzs"),ei=n("3Nzz"),Zt=function(Me){i()(Pe,Me);var ke=o()(Pe);function Pe(){var tt;return f()(this,Pe),tt=ke.apply(this,arguments),tt.selectRef=e.createRef(),tt.focus=function(){tt.selectRef.current&&tt.selectRef.current.focus()},tt.blur=function(){tt.selectRef.current&&tt.selectRef.current.blur()},tt.getMode=function(){var vt=tt.props.mode;return vt==="combobox"?void 0:vt===Pe.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":vt},tt.renderSelect=function(vt){var St=vt.getPopupContainer,Vt=vt.getPrefixCls,Mr=vt.renderEmpty,$r=vt.direction,vn=vt.virtual,jt=vt.dropdownMatchSelectWidth,gt=tt.props,pt=gt.prefixCls,ar=gt.notFoundContent,Ht=gt.className,Mt=gt.size,qt=gt.listHeight,Rt=qt===void 0?256:qt,Qt=gt.listItemHeight,jr=Qt===void 0?24:Qt,Nr=gt.getPopupContainer,Lr=gt.dropdownClassName,ln=gt.bordered,mn=Vt("select",pt),ti=tt.getMode(),$n=ti==="multiple"||ti==="tags",hi;ar!==void 0?hi=ar:ti==="combobox"?hi=null:hi=Mr("Select");var Ti=Object(Gn.a)(A()(A()({},tt.props),{multiple:$n,prefixCls:mn})),Ni=Ti.suffixIcon,Wi=Ti.itemIcon,rt=Ti.removeIcon,Re=Ti.clearIcon,Ue=Object(l.default)(tt.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Ye=s()(Lr,p()({},"".concat(mn,"-dropdown-").concat($r),$r==="rtl"));return e.createElement(ei.b.Consumer,null,function(et){var $e,at=Mt||et,wt=s()(Ht,($e={},p()($e,"".concat(mn,"-lg"),at==="large"),p()($e,"".concat(mn,"-sm"),at==="small"),p()($e,"".concat(mn,"-rtl"),$r==="rtl"),p()($e,"".concat(mn,"-borderless"),!ln),$e));return e.createElement(ci,A()({ref:tt.selectRef,virtual:vn,dropdownMatchSelectWidth:jt},Ue,{listHeight:Rt,listItemHeight:jr,mode:ti,prefixCls:mn,direction:$r,inputIcon:Ni,menuItemSelectedIcon:Wi,removeIcon:rt,clearIcon:Re,notFoundContent:hi,className:wt,getPopupContainer:Nr||St,dropdownClassName:Ye}))})},tt}return u()(Pe,[{key:"render",value:function(){return e.createElement(Xi.a,null,this.renderSelect)}}]),Pe}(e.Component);Zt.Option=X,Zt.OptGroup=j,Zt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Zt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Nt=D.a=Zt},"2fw6":function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(A,m,f){f&&A.moveTo(m.cx+m.r,m.cy),A.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});k.exports=p},"2gN3":function(k,D,n){var y=n("Kz5y"),p=y["__core-js_shared__"];k.exports=p},"2jpz":function(k,D,n){"use strict";n.d(D,"a",function(){return d});var y=n("cDf5"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("TSYQ"),f=n.n(m),h=n("gZBC"),u=n.n(h),a=n("vk+C"),i=n.n(a),t=n("pG52"),o=n.n(t),e=n("Csr3"),l=n.n(e),r=n("e5VY"),s=n.n(r),c=n("0n0R");function d(g,v,b,S){var E=S.isLeaf,C=S.expanded,_=S.loading;if(_)return x.createElement(u.a,{className:"".concat(g,"-switcher-loading-icon")});var T;if(b&&p()(b)==="object"&&(T=b.showLeafIcon),E)return b?p()(b)==="object"&&!T?x.createElement("span",{className:"".concat(g,"-switcher-leaf-line")}):x.createElement(i.a,{className:"".concat(g,"-switcher-line-icon")}):null;var w="".concat(g,"-switcher-icon");return Object(c.b)(v)?Object(c.a)(v,{className:f()(v.props.className||"",w)}):v||(b?C?x.createElement(o.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(l.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(s.a,{className:w}))}},"2oIt":function(k,D,n){"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,n){var y=n("ProS");n("ko1b"),n("s2lz"),n("RBEP");var p=n("kMLO"),x=n("nKiI");y.registerVisual(p),y.registerLayout(x)},"2w7y":function(k,D,n){var y=n("ProS");n("qMZE"),n("g0SD"),y.registerPreprocessor(function(p){p.markPoint=p.markPoint||{}})},"33Ds":function(k,D,n){var y=n("ProS"),p=n("b9oc"),x=n("Kagy"),A=n("IUWy"),m=x.toolbox.restore;function f(a){this.model=a}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 h=f.prototype;h.onclick=function(a,i,t){p.clear(a),i.dispatchAction({type:"restore",from:this.uid})},A.register("restore",f),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,i){i.resetOption("recreate")});var u=f;k.exports=u},"34/K":function(k,D,n){"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 h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m),this._lines=0}return x(m,[{key:"decodeRect",value:function(h,u,a,i,t,o,e){this._lines===0&&(this._lines=i);var l=e==8?1:4,r=a*l;if(t.rQwait("RAW",r))return!1;var s=u+(i-this._lines),c=Math.min(this._lines,Math.floor(t.rQlen/r)),d=t.rQ,g=t.rQi;if(e==8){for(var v=a*c,b=new Uint8Array(v*4),S=0;S<v;S++)b[S*4+0]=(d[g+S]>>0&3)*255/3,b[S*4+1]=(d[g+S]>>2&3)*255/3,b[S*4+2]=(d[g+S]>>4&3)*255/3,b[S*4+4]=0;d=b,g=0}return o.blitImage(h,s,a,c,d,g),t.rQskipBytes(c*r),this._lines-=c,!(this._lines>0)}}]),m}();D.default=A},"3690":function(k,D,n){"use strict";function y(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(t){return typeof t}:y=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(a)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return x=function(){return a},a}function A(a){if(a&&a.__esModule)return a;if(a===null||y(a)!=="object"&&typeof a!="function")return{default:a};var i=x();if(i&&i.has(a))return i.get(a);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var l=o?Object.getOwnPropertyDescriptor(a,e):null;l&&(l.get||l.set)?Object.defineProperty(t,e,l):t[e]=a[e]}return t.default=a,i&&i.set(a,t),t}function m(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function f(a,i){for(var t=0;t<i.length;t++){var o=i[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function h(a,i,t){return i&&f(a.prototype,i),t&&f(a,t),a}var u=function(){function a(){m(this,a),this._tiles=0,this._lastsubencoding=0}return h(a,[{key:"decodeRect",value:function(t,o,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 d=1;if(r.rQwait("HEXTILE",d))return!1;var g=r.rQ,v=r.rQi,b=g[v];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var S=this._totalTiles-this._tiles,E=S%this._tilesX,C=Math.floor(S/this._tilesX),_=t+E*16,T=o+C*16,w=Math.min(16,t+e-_),O=Math.min(16,o+l-T);if(b&1)d+=w*O*4;else if(b&2&&(d+=4),b&4&&(d+=4),b&8){if(d++,r.rQwait("HEXTILE",d))return!1;var I=g[v+d-1];b&16?d+=I*(4+2):d+=I*2}if(r.rQwait("HEXTILE",d))return!1;if(v++,b===0)this._lastsubencoding&1?p.Debug(" Ignoring blank after RAW"):s.fillRect(_,T,w,O,this._background);else if(b&1)s.blitImage(_,T,w,O,g,v),v+=d-1;else{if(b&2&&(this._background=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),b&4&&(this._foreground=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),s.startTile(_,T,w,O,this._background),b&8){var R=g[v];v++;for(var M=0;M<R;M++){var F=void 0;b&16?(F=[g[v],g[v+1],g[v+2],g[v+3]],v+=4):F=this._foreground;var P=g[v];v++;var X=P>>4,B=P&15,j=g[v];v++;var W=(j>>4)+1,z=(j&15)+1;s.subTile(X,B,W,z,F)}}s.finishTile()}r.rQi=v,this._lastsubencoding=b,this._tiles--}return!0}}]),a}();D.default=u},"3A9y":function(k,D){function n(y){return this.__data__.has(y)}k.exports=n},"3C/r":function(k,D){var n=function(x,A){this.image=x,this.repeat=A,this.type="pattern"};n.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var y=n;k.exports=y},"3CBa":function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("bYtY"),A=n("SUKs"),m=n("y+Vt"),f=n("Dagg"),h=n("dqUG"),u=n("DBLp"),a=n("sW+o"),i=n("n6Mw"),t=n("vKoX"),o=n("P47w"),e=o.path,l=o.image,r=o.text;function s(w){return parseInt(w,10)}function c(w){return w instanceof m?e:w instanceof f?l:w instanceof h?r:e}function d(w,O){return O&&w&&O.parentNode!==w}function g(w,O,I){if(d(w,O)&&I){var R=I.nextSibling;R?w.insertBefore(O,R):w.appendChild(O)}}function v(w,O){if(d(w,O)){var I=w.firstChild;I?w.insertBefore(O,I):w.appendChild(O)}}function b(w,O){O&&w&&O.parentNode===w&&w.removeChild(O)}function S(w){return w.__textSvgEl}function E(w){return w.__svgEl}var C=function(O,I,R,M){this.root=O,this.storage=I,this._opts=R=x.extend({},R||{});var F=p("svg");F.setAttribute("xmlns","http://www.w3.org/2000/svg"),F.setAttribute("version","1.1"),F.setAttribute("baseProfile","full"),F.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=p("g");F.appendChild(P);var X=p("g");F.appendChild(X),this.gradientManager=new a(M,X),this.clipPathManager=new i(M,X),this.shadowManager=new t(M,X);var B=document.createElement("div");B.style.cssText="overflow:hidden;position:relative",this._svgDom=F,this._svgRoot=X,this._backgroundRoot=P,this._viewport=B,O.appendChild(B),B.appendChild(F),this.resize(R.width,R.height),this._visibleList=[]};C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var O=this.getViewportRoot();if(O)return{offsetLeft:O.offsetLeft||0,offsetTop:O.offsetTop||0}},refresh:function(){var O=this.storage.getDisplayList(!0);this._paintList(O)},setBackgroundColor:function(O){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var I=p("rect");I.setAttribute("width",this.getWidth()),I.setAttribute("height",this.getHeight()),I.setAttribute("x",0),I.setAttribute("y",0),I.setAttribute("id",0),I.style.fill=O,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,R=this._visibleList,M=O.length,F=[],P;for(P=0;P<M;P++){var X=O[P],B=c(X),j=E(X)||S(X);X.invisible||(X.__dirty&&(B&&B.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(j,X)),X.__dirty=!1),F.push(X))}var W=u(R,F),z;for(P=0;P<W.length;P++){var V=W[P];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=R[V.indices[Q]],j=E(X),G=S(X);b(I,j),b(I,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=F[V.indices[Q]],j=E(X),G=S(X);z?g(I,j,z):v(I,j),j?g(I,G,j):z?g(I,G,z):v(I,G),g(I,G,j),z=G||j||z,this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=F[V.indices[Q]],j=E(X),G=S(X),j=E(X),G=S(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X),G&&g(I,G,j),z=j||G||z}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=F},_getDefs:function(O){var I=this._svgDom,R=I.getElementsByTagName("defs");if(R.length===0)if(O){var R=I.insertBefore(p("defs"),I.firstChild);return R.contains||(R.contains=function(F){var P=R.children;if(!P)return!1;for(var X=P.length-1;X>=0;--X)if(P[X]===F)return!0;return!1}),R}else return null;else return R[0]},resize:function(O,I){var R=this._viewport;R.style.display="none";var M=this._opts;if(O!=null&&(M.width=O),I!=null&&(M.height=I),O=this._getSize(0),I=this._getSize(1),R.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var F=R.style;F.width=O+"px",F.height=I+"px";var P=this._svgDom;P.setAttribute("width",O),P.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var I=this._opts,R=["width","height"][O],M=["clientWidth","clientHeight"][O],F=["paddingLeft","paddingTop"][O],P=["paddingRight","paddingBottom"][O];if(I[R]!=null&&I[R]!=="auto")return parseFloat(I[R]);var X=this.root,B=document.defaultView.getComputedStyle(X);return(X[M]||s(B[R])||s(X.style[R]))-(s(B[F])||0)-(s(B[P])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var O=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function _(w){return function(){A('In SVG mode painter not support method "'+w+'"')}}x.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){C.prototype[w]=_(w)});var T=C;k.exports=T},"3Fdi":function(k,D){var n=Function.prototype,y=n.toString;function p(x){if(x!=null){try{return y.call(x)}catch(A){}try{return x+""}catch(A){}}return""}k.exports=p},"3LNs":function(k,D,n){var y=n("bYtY"),p=n("Yl7c"),x=n("IwbS"),A=n("zTMp"),m=n("YH21"),f=n("iLNv"),h=n("4NO4"),u=h.makeInner,a=u(),i=y.clone,t=y.bind;function o(){}o.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(g,v,b,S){var E=v.get("value"),C=v.get("status");if(this._axisModel=g,this._axisPointerModel=v,this._api=b,!S&&this._lastValue===E&&this._lastStatus===C)return;this._lastValue=E,this._lastStatus=C;var _=this._group,T=this._handle;if(!C||C==="hide"){_&&_.hide(),T&&T.hide();return}_&&_.show(),T&&T.show();var w={};this.makeElOption(w,E,g,v,b);var O=w.graphicKey;O!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=O;var I=this._moveAnimation=this.determineAnimation(g,v);if(!_)_=this._group=new x.Group,this.createPointerEl(_,w,g,v),this.createLabelEl(_,w,g,v),b.getZr().add(_);else{var R=y.curry(e,v,I);this.updatePointerEl(_,w,R,v),this.updateLabelEl(_,w,R,v)}c(_,v,!0),this._renderHandle(E)},remove:function(g){this.clear(g)},dispose:function(g){this.clear(g)},determineAnimation:function(g,v){var b=v.get("animation"),S=g.axis,E=S.type==="category",C=v.get("snap");if(!C&&!E)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(E&&S.getBandWidth()>_)return!0;if(C){var T=A.getAxisInfo(g).seriesDataCount,w=S.getExtent();return Math.abs(w[0]-w[1])/T>_}return!1}return b===!0},makeElOption:function(g,v,b,S,E){},createPointerEl:function(g,v,b,S){var E=v.pointer;if(E){var C=a(g).pointerEl=new x[E.type](i(v.pointer));g.add(C)}},createLabelEl:function(g,v,b,S){if(v.label){var E=a(g).labelEl=new x.Rect(i(v.label));g.add(E),r(E,S)}},updatePointerEl:function(g,v,b){var S=a(g).pointerEl;S&&v.pointer&&(S.setStyle(v.pointer.style),b(S,{shape:v.pointer.shape}))},updateLabelEl:function(g,v,b,S){var E=a(g).labelEl;E&&(E.setStyle(v.label.style),b(E,{shape:v.label.shape,position:v.label.position}),r(E,S))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var v=this._axisPointerModel,b=this._api.getZr(),S=this._handle,E=v.getModel("handle"),C=v.get("status");if(!E.get("show")||!C||C==="hide"){S&&b.remove(S),this._handle=null;return}var _;this._handle||(_=!0,S=this._handle=x.createIcon(E.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){m.stop(O.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(S)),c(S,v,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(E.getItemStyle(null,T));var w=E.get("size");y.isArray(w)||(w=[w,w]),S.attr("scale",[w[0]/2,w[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",E.get("throttle")||0,"fixRate"),this._moveHandleToValue(g,_)},_moveHandleToValue:function(g,v){e(this._axisPointerModel,!v&&this._moveAnimation,this._handle,s(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,v){var b=this._handle;if(!b)return;this._dragging=!0;var S=this.updateHandleTransform(s(b),[g,v],this._axisModel,this._axisPointerModel);this._payloadInfo=S,b.stopAnimation(),b.attr(s(S)),a(b).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var g=this._handle;if(!g)return;var v=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:v.cursorPoint[0],y:v.cursorPoint[1],tooltipOption:v.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(g){this._dragging=!1;var v=this._handle;if(!v)return;var b=this._axisPointerModel.get("value");this._moveHandleToValue(b),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(g){this._lastValue=null,this._lastStatus=null;var v=g.getZr(),b=this._group,S=this._handle;v&&b&&(this._lastGraphicKey=null,b&&v.remove(b),S&&v.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(g,v,b){return b=b||0,{x:g[b],y:g[1-b],width:v[b],height:v[1-b]}}},o.prototype.constructor=o;function e(g,v,b,S){l(a(b).lastProp,S)||(a(b).lastProp=S,v?x.updateProps(b,S,g):(b.stopAnimation(),b.attr(S)))}function l(g,v){if(y.isObject(g)&&y.isObject(v)){var b=!0;return y.each(v,function(S,E){b=b&&l(g[E],S)}),!!b}else return g===v}function r(g,v){g[v.get("label.show")?"show":"hide"]()}function s(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,v,b){var S=v.get("z"),E=v.get("zlevel");g&&g.traverse(function(C){C.type!=="group"&&(S!=null&&(C.z=S),E!=null&&(C.zlevel=E),C.silent=b)})}p.enableClassExtend(o);var d=o;k.exports=d},"3OrL":function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("IwbS"),A=n("y+Vt"),m=["itemStyle"],f=["emphasis","itemStyle"],h=p.extend({type:"boxplot",render:function(e,l,r){var s=e.getData(),c=this.group,d=this._data;this._data||c.removeAll();var g=e.get("layout")==="horizontal"?1:0;s.diff(d).add(function(v){if(s.hasValue(v)){var b=s.getItemLayout(v),S=a(b,s,v,g,!0);s.setItemGraphicEl(v,S),c.add(S)}}).update(function(v,b){var S=d.getItemGraphicEl(b);if(!s.hasValue(v)){c.remove(S);return}var E=s.getItemLayout(v);S?i(E,S,s,v):S=a(E,s,v,g),c.add(S),s.setItemGraphicEl(v,S)}).remove(function(v){var b=d.getItemGraphicEl(v);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=A.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 a(e,l,r,s,c){var d=e.ends,g=new u({shape:{points:c?t(d,s,e):d}});return i(e,g,l,r,c),g}function i(e,l,r,s,c){var d=r.hostModel,g=x[c?"initProps":"updateProps"];g(l,{shape:{points:e.ends}},d,s);var v=r.getItemModel(s),b=v.getModel(m),S=r.getItemVisual(s,"color"),E=b.getItemStyle(["borderColor"]);E.stroke=S,E.strokeNoScale=!0,l.useStyle(E),l.z2=100;var C=v.getModel(f).getItemStyle();x.setHoverStyle(l,C)}function t(e,l,r){return y.map(e,function(s){return s=s.slice(),s[l]=r.initBaseline,s})}var o=h;k.exports=o},"3S7+":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("J4zp"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("q1tI"),u=n.n(h),a=n("U8pU"),i=n("VTBJ"),t=n("Ff2n"),o=n("1OyB"),e=n("vuIU"),l=n("JX7q"),r=n("Ji7U"),s=n("LK+K"),c=n("i8i4"),d=n.n(c),g=n("l4aY"),v=n("m+aA"),b=n("c+Xe"),S=n("zT1h"),E=n("QC+M"),C=n("TSYQ"),_=n.n(C);function T(Gn,ei,Zt){return Zt?Gn[0]===ei[0]:Gn[0]===ei[0]&&Gn[1]===ei[1]}function w(Gn,ei,Zt){var Nt=Gn[ei]||{};return Object(i.a)(Object(i.a)({},Nt),Zt)}function O(Gn,ei,Zt,Nt){for(var Me=Zt.points,ke=Object.keys(Gn),Pe=0;Pe<ke.length;Pe+=1){var tt=ke[Pe];if(T(Gn[tt].points,Me,Nt))return"".concat(ei,"-placement-").concat(tt)}return""}var I=n("xEkU"),R=n.n(I),M=n("9mu1"),F=n("rePB"),P=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(Gn,ei){var Zt={};return Zt[Gn.toLowerCase()]=ei.toLowerCase(),Zt["Webkit".concat(Gn)]="webkit".concat(ei),Zt["Moz".concat(Gn)]="moz".concat(ei),Zt["ms".concat(Gn)]="MS".concat(ei),Zt["O".concat(Gn)]="o".concat(ei.toLowerCase()),Zt}function B(Gn,ei){var Zt={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return Gn&&("AnimationEvent"in ei||delete Zt.animationend.animation,"TransitionEvent"in ei||delete Zt.transitionend.transition),Zt}var j=B(P,typeof window!="undefined"?window:{}),W={};if(P){var z=document.createElement("div");W=z.style}var V={};function Q(Gn){if(V[Gn])return V[Gn];var ei=j[Gn];if(ei)for(var Zt=Object.keys(ei),Nt=Zt.length,Me=0;Me<Nt;Me+=1){var ke=Zt[Me];if(Object.prototype.hasOwnProperty.call(ei,ke)&&ke in W)return V[Gn]=ei[ke],V[Gn]}return""}var G=Q("animationend"),re=Q("transitionend"),ee=!!(G&&re);function ue(Gn,ei){if(!Gn)return null;if(Object(a.a)(Gn)==="object"){var Zt=ei.replace(/-\w/g,function(Nt){return Nt[1].toUpperCase()});return Gn[Zt]}return"".concat(Gn,"-").concat(ei)}var $="none",be="appear",_e="enter",Ee="leave";function Xe(Gn){var ei=Gn,Zt=!!h.forwardRef;Object(a.a)(Gn)==="object"&&(ei=Gn.transitionSupport,Zt="forwardRef"in Gn?Gn.forwardRef:Zt);function Nt(ke){return!!(ke.motionName&&ei)}var Me=function(ke){Object(r.a)(tt,ke);var Pe=Object(s.a)(tt);function tt(){var vt;return Object(o.a)(this,tt),vt=Pe.apply(this,arguments),vt.$cacheEle=null,vt.node=null,vt.raf=null,vt.destroyed=!1,vt.deadlineId=null,vt.state={status:$,statusActive:!1,newStatus:!1,statusStyle:null},vt.onDomUpdate=function(){var St=vt.state,Vt=St.status,Mr=St.newStatus,$r=vt.props,vn=$r.onAppearStart,jt=$r.onEnterStart,gt=$r.onLeaveStart,pt=$r.onAppearActive,ar=$r.onEnterActive,Ht=$r.onLeaveActive,Mt=$r.motionAppear,qt=$r.motionEnter,Rt=$r.motionLeave;if(!Nt(vt.props))return;var Qt=vt.getElement();vt.$cacheEle!==Qt&&(vt.removeEventListener(vt.$cacheEle),vt.addEventListener(Qt),vt.$cacheEle=Qt),Mr&&Vt===be&&Mt?vt.updateStatus(vn,null,null,function(){vt.updateActiveStatus(pt,be)}):Mr&&Vt===_e&&qt?vt.updateStatus(jt,null,null,function(){vt.updateActiveStatus(ar,_e)}):Mr&&Vt===Ee&&Rt&&vt.updateStatus(gt,null,null,function(){vt.updateActiveStatus(Ht,Ee)})},vt.onMotionEnd=function(St){if(St&&!St.deadline&&St.target!==vt.getElement())return;var Vt=vt.state,Mr=Vt.status,$r=Vt.statusActive,vn=vt.props,jt=vn.onAppearEnd,gt=vn.onEnterEnd,pt=vn.onLeaveEnd;Mr===be&&$r?vt.updateStatus(jt,{status:$},St):Mr===_e&&$r?vt.updateStatus(gt,{status:$},St):Mr===Ee&&$r&&vt.updateStatus(pt,{status:$},St)},vt.setNodeRef=function(St){var Vt=vt.props.internalRef;vt.node=St,Object(b.b)(Vt,St)},vt.getElement=function(){try{return Object(v.a)(vt.node||Object(l.a)(vt))}catch(St){return vt.$cacheEle}},vt.addEventListener=function(St){if(!St)return;St.addEventListener(re,vt.onMotionEnd),St.addEventListener(G,vt.onMotionEnd)},vt.removeEventListener=function(St){if(!St)return;St.removeEventListener(re,vt.onMotionEnd),St.removeEventListener(G,vt.onMotionEnd)},vt.updateStatus=function(St,Vt,Mr,$r){var vn=St?St(vt.getElement(),Mr):null;if(vn===!1||vt.destroyed)return;var jt;$r&&(jt=function(){vt.nextFrame($r)}),vt.setState(Object(i.a)({statusStyle:Object(a.a)(vn)==="object"?vn:null,newStatus:!1},Vt),jt)},vt.updateActiveStatus=function(St,Vt){vt.nextFrame(function(){var Mr=vt.state.status;if(Mr!==Vt)return;var $r=vt.props.motionDeadline;vt.updateStatus(St,{statusActive:!0}),$r>0&&(vt.deadlineId=setTimeout(function(){vt.onMotionEnd({deadline:!0})},$r))})},vt.nextFrame=function(St){vt.cancelNextFrame(),vt.raf=R()(St)},vt.cancelNextFrame=function(){vt.raf&&(R.a.cancel(vt.raf),vt.raf=null)},vt}return Object(e.a)(tt,[{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 St,Vt=this.state,Mr=Vt.status,$r=Vt.statusActive,vn=Vt.statusStyle,jt=this.props,gt=jt.children,pt=jt.motionName,ar=jt.visible,Ht=jt.removeOnLeave,Mt=jt.leavedClassName,qt=jt.eventProps;return gt?Mr===$||!Nt(this.props)?ar?gt(Object(i.a)({},qt),this.setNodeRef):Ht?null:gt(Object(i.a)(Object(i.a)({},qt),{},{className:Mt}),this.setNodeRef):gt(Object(i.a)(Object(i.a)({},qt),{},{className:_()(ue(pt,Mr),(St={},Object(F.a)(St,ue(pt,"".concat(Mr,"-active")),$r),Object(F.a)(St,pt,typeof pt=="string"),St)),style:vn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(St,Vt){var Mr=Vt.prevProps,$r=Vt.status;if(!Nt(St))return{};var vn=St.visible,jt=St.motionAppear,gt=St.motionEnter,pt=St.motionLeave,ar=St.motionLeaveImmediately,Ht={prevProps:St};return($r===be&&!jt||$r===_e&&!gt||$r===Ee&&!pt)&&(Ht.status=$,Ht.statusActive=!1,Ht.newStatus=!1),!Mr&&vn&&jt&&(Ht.status=be,Ht.statusActive=!1,Ht.newStatus=!0),Mr&&!Mr.visible&&vn&&gt&&(Ht.status=_e,Ht.statusActive=!1,Ht.newStatus=!0),(Mr&&Mr.visible&&!vn&&pt||!Mr&&ar&&!vn&&pt)&&(Ht.status=Ee,Ht.statusActive=!1,Ht.newStatus=!0),Ht}}]),tt}(h.Component);return Me.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Zt?h.forwardRef(function(ke,Pe){return h.createElement(Me,Object.assign({internalRef:Pe},ke))}):Me}var He=Xe(ee),nt="add",Ie="keep",oe="remove",ot="removed";function he(Gn){var ei;return Gn&&Object(a.a)(Gn)==="object"&&"key"in Gn?ei=Gn:ei={key:Gn},Object(i.a)(Object(i.a)({},ei),{},{key:String(ei.key)})}function J(){var Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Gn.map(he)}function Y(){var Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Zt=[],Nt=0,Me=ei.length,ke=J(Gn),Pe=J(ei);ke.forEach(function(St){for(var Vt=!1,Mr=Nt;Mr<Me;Mr+=1){var $r=Pe[Mr];if($r.key===St.key){Nt<Mr&&(Zt=Zt.concat(Pe.slice(Nt,Mr).map(function(vn){return Object(i.a)(Object(i.a)({},vn),{},{status:nt})})),Nt=Mr),Zt.push(Object(i.a)(Object(i.a)({},$r),{},{status:Ie})),Nt+=1,Vt=!0;break}}Vt||Zt.push(Object(i.a)(Object(i.a)({},St),{},{status:oe}))}),Nt<Me&&(Zt=Zt.concat(Pe.slice(Nt).map(function(St){return Object(i.a)(Object(i.a)({},St),{},{status:nt})})));var tt={};Zt.forEach(function(St){var Vt=St.key;tt[Vt]=(tt[Vt]||0)+1});var vt=Object.keys(tt).filter(function(St){return tt[St]>1});return vt.forEach(function(St){Zt=Zt.filter(function(Vt){var Mr=Vt.key,$r=Vt.status;return Mr!==St||$r!==oe}),Zt.forEach(function(Vt){Vt.key===St&&(Vt.status=Ie)})}),Zt}var q=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fe(Gn){var ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He,Zt=function(Nt){Object(r.a)(ke,Nt);var Me=Object(s.a)(ke);function ke(){var Pe;return Object(o.a)(this,ke),Pe=Me.apply(this,arguments),Pe.state={keyEntities:[]},Pe.removeKey=function(tt){Pe.setState(function(vt){var St=vt.keyEntities;return{keyEntities:St.map(function(Vt){return Vt.key!==tt?Vt:Object(i.a)(Object(i.a)({},Vt),{},{status:ot})})}})},Pe}return Object(e.a)(ke,[{key:"render",value:function(){var tt=this,vt=this.state.keyEntities,St=this.props,Vt=St.component,Mr=St.children,$r=Object(t.a)(St,["component","children"]),vn=Vt||h.Fragment,jt={};return q.forEach(function(gt){jt[gt]=$r[gt],delete $r[gt]}),delete $r.keys,h.createElement(vn,Object.assign({},$r),vt.map(function(gt){var pt=gt.status,ar=Object(t.a)(gt,["status"]),Ht=pt===nt||pt===Ie;return h.createElement(ei,Object.assign({},jt,{key:ar.key,visible:Ht,eventProps:ar,onLeaveEnd:function(){jt.onLeaveEnd&&jt.onLeaveEnd.apply(jt,arguments),tt.removeKey(ar.key)}}),Mr)}))}}],[{key:"getDerivedStateFromProps",value:function(tt,vt){var St=tt.keys,Vt=vt.keyEntities,Mr=J(St);if(!Gn)return{keyEntities:Mr.map(function(jt){return Object(i.a)(Object(i.a)({},jt),{},{status:Ie})})};var $r=Y(Vt,Mr),vn=Vt.length;return{keyEntities:$r.filter(function(jt){for(var gt=null,pt=0;pt<vn;pt+=1){var ar=Vt[pt];if(ar.key===jt.key){gt=ar;break}}return!(gt&&gt.status===ot&&jt.status===oe)})}}}]),ke}(h.Component);return Zt.defaultProps={component:"div"},Zt}var we=fe(ee),Ne=He,je=function(ei,Zt){var Nt=ei.prefixCls,Me=ei.className,ke=ei.style,Pe=ei.children,tt=ei.onMouseEnter,vt=ei.onMouseLeave,St=ei.onMouseDown,Vt=ei.onTouchStart,Mr=Pe;return h.Children.count(Pe)>1&&(Mr=h.createElement("div",{className:"".concat(Nt,"-content")},Pe)),h.createElement("div",{ref:Zt,className:Me,onMouseEnter:tt,onMouseLeave:vt,onMouseDown:St,onTouchStart:Vt,style:ke},Mr)},me=h.forwardRef(je);me.displayName="PopupInner";var Ce=me;function Fe(Gn){var ei=Gn.prefixCls,Zt=Gn.motion,Nt=Gn.animation,Me=Gn.transitionName;return Zt||(Nt?{motionName:"".concat(ei,"-").concat(Nt)}:Me?{motionName:Me}:null)}function it(Gn){return Gn&&Gn.motionName}var Ct=function(Gn){Object(r.a)(Zt,Gn);var ei=Object(s.a)(Zt);function Zt(){var Nt;return Object(o.a)(this,Zt),Nt=ei.apply(this,arguments),Nt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Nt.popupRef=u.a.createRef(),Nt.alignRef=u.a.createRef(),Nt.nextFrameState=null,Nt.nextFrameId=null,Nt.onAlign=function(Me,ke){var Pe=Nt.state.status,tt=Nt.props,vt=tt.getClassNameFromAlign,St=tt.onAlign,Vt=vt(ke);Pe==="align"?Nt.setState({alignClassName:Vt,status:"aligned"},function(){Nt.alignRef.current.forceAlign()}):Pe==="aligned"?(Nt.setState({alignClassName:Vt,status:"afterAlign"}),St(Me,ke)):Nt.setState({alignClassName:Vt})},Nt.onMotionEnd=function(){var Me=Nt.props.visible;Nt.setState({status:Me?"AfterMotion":"stable",inMotion:!1})},Nt.setStateOnNextFrame=function(Me){Nt.cancelFrameState(),Nt.nextFrameState=Object(i.a)(Object(i.a)({},Nt.nextFrameState),Me),Nt.nextFrameId=R()(function(){var ke=Object(i.a)({},Nt.nextFrameState);Nt.nextFrameState=null,Nt.setState(ke)})},Nt.getMotion=function(){return Object(i.a)({},Fe(Nt.props))},Nt.getAlignTarget=function(){var Me=Nt.props,ke=Me.point,Pe=Me.getRootDomNode;return ke||Pe},Nt.cancelFrameState=function(){R.a.cancel(Nt.nextFrameId)},Nt.renderPopupElement=function(){var Me=Nt.state,ke=Me.status,Pe=Me.targetHeight,tt=Me.targetWidth,vt=Me.alignClassName,St=Nt.props,Vt=St.prefixCls,Mr=St.className,$r=St.style,vn=St.stretch,jt=St.visible,gt=St.align,pt=St.destroyPopupOnHide,ar=St.onMouseEnter,Ht=St.onMouseLeave,Mt=St.onMouseDown,qt=St.onTouchStart,Rt=St.children,Qt=_()(Vt,Mr,vt),jr="".concat(Vt,"-hidden"),Nr={};vn&&(vn.indexOf("height")!==-1?Nr.height=Pe:vn.indexOf("minHeight")!==-1&&(Nr.minHeight=Pe),vn.indexOf("width")!==-1?Nr.width=tt:vn.indexOf("minWidth")!==-1&&(Nr.minWidth=tt));var Lr=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},Nr),Nt.getZIndexStyle()),$r),{},{opacity:ke==="stable"||!jt?void 0:0,pointerEvents:ke==="stable"||!jt?void 0:"none"}),ln=Nt.getMotion(),mn=jt;jt&&ke!=="beforeMotion"&&ke!=="motion"&&ke!=="stable"&&(ln.motionAppear=!1,ln.motionEnter=!1,ln.motionLeave=!1),(ke==="afterAlign"||ke==="beforeMotion")&&(mn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(hi){var Ti=ln==null?void 0:ln[hi];ln[hi]=function(){for(var Ni=arguments.length,Wi=new Array(Ni),rt=0;rt<Ni;rt++)Wi[rt]=arguments[rt];Ti==null||Ti.apply(void 0,Wi),Nt.setState({inMotion:!0})}});var ti=!jt||ke!=="align"&&ke!=="aligned"&&ke!=="stable",$n=!0;return ke==="stable"&&($n=jt),pt&&!$n?null:u.a.createElement(Ne,Object.assign({visible:mn},ln,{removeOnLeave:!1,onEnterEnd:Nt.onMotionEnd,onLeaveEnd:Nt.onMotionEnd,leavedClassName:jr}),function(hi,Ti){var Ni=hi.style,Wi=hi.className;return u.a.createElement(M.a,{target:Nt.getAlignTarget(),key:"popup",ref:Nt.alignRef,monitorWindowResize:!0,disabled:ti,align:gt,onAlign:Nt.onAlign},u.a.createElement(Ce,{prefixCls:Vt,className:_()(Qt,Wi),ref:Object(b.a)(Ti,Nt.popupRef),onMouseEnter:ar,onMouseLeave:Ht,onMouseDown:Mt,onTouchStart:qt,style:Object(i.a)(Object(i.a)({},Lr),Ni)},Rt))})},Nt.renderMaskElement=function(){var Me=Nt.props,ke=Me.mask,Pe=Me.maskMotion,tt=Me.maskTransitionName,vt=Me.maskAnimation,St=Me.prefixCls,Vt=Me.visible;if(!ke)return null;var Mr={};return Pe&&Pe.motionName&&(Mr=Object(i.a)({motionAppear:!0},Fe({motion:Pe,prefixCls:St,transitionName:tt,animation:vt}))),u.a.createElement(Ne,Object.assign({},Mr,{visible:Vt,removeOnLeave:!0}),function($r){var vn=$r.className;return u.a.createElement("div",{style:Nt.getZIndexStyle(),key:"mask",className:_()("".concat(St,"-mask"),vn)})})},Nt}return Object(e.a)(Zt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this.state.status,ke=this.props,Pe=ke.getRootDomNode,tt=ke.visible,vt=ke.stretch;if(this.cancelFrameState(),tt&&Me!=="stable")switch(Me){case null:{this.setStateOnNextFrame({status:vt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:it(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var St=["measure","align",null,"beforeMotion","motion"],Vt=St.indexOf(Me),Mr=St[Vt+1];Vt!==-1&&Mr&&this.setStateOnNextFrame({status:Mr})}}if(Me==="measure"){var $r=Pe();$r&&this.setStateOnNextFrame({targetHeight:$r.offsetHeight,targetWidth:$r.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Me=this.props.zIndex;return{zIndex:Me}}},{key:"render",value:function(){return u.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Me,ke){var Pe=Me.visible,tt=Object(t.a)(Me,["visible"]),vt=ke.prevVisible,St=ke.status,Vt=ke.inMotion,Mr={prevVisible:Pe,status:St},$r=Fe(tt);return vt===null&&Pe===!1?(Mr.status="stable",Mr.inMotion=!1):Pe!==vt&&(Mr.inMotion=!1,Pe||it($r)&&Vt?Mr.status=null:Mr.status="stable",Pe&&(Mr.alignClassName=null)),Mr}}]),Zt}(h.Component),mt=Ct,Ve=h.createContext(null),or=Ve;function dt(){}function Yt(){return""}function hr(){return window.document}var Gt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Pt(Gn){var ei=function(Zt){Object(r.a)(Me,Zt);var Nt=Object(s.a)(Me);function Me(ke){var Pe;Object(o.a)(this,Me),Pe=Nt.call(this,ke),Pe.popupRef=u.a.createRef(),Pe.triggerRef=u.a.createRef(),Pe.onMouseEnter=function(vt){var St=Pe.props.mouseEnterDelay;Pe.fireEvents("onMouseEnter",vt),Pe.delaySetPopupVisible(!0,St,St?null:vt)},Pe.onMouseMove=function(vt){Pe.fireEvents("onMouseMove",vt),Pe.setPoint(vt)},Pe.onMouseLeave=function(vt){Pe.fireEvents("onMouseLeave",vt),Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onPopupMouseEnter=function(){Pe.clearDelayTimer()},Pe.onPopupMouseLeave=function(vt){if(vt.relatedTarget&&!vt.relatedTarget.setTimeout&&Pe.popupRef.current&&Pe.popupRef.current.popupRef.current&&Object(g.a)(Pe.popupRef.current.popupRef.current,vt.relatedTarget))return;Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onFocus=function(vt){Pe.fireEvents("onFocus",vt),Pe.clearDelayTimer(),Pe.isFocusToShow()&&(Pe.focusTime=Date.now(),Pe.delaySetPopupVisible(!0,Pe.props.focusDelay))},Pe.onMouseDown=function(vt){Pe.fireEvents("onMouseDown",vt),Pe.preClickTime=Date.now()},Pe.onTouchStart=function(vt){Pe.fireEvents("onTouchStart",vt),Pe.preTouchTime=Date.now()},Pe.onBlur=function(vt){Pe.fireEvents("onBlur",vt),Pe.clearDelayTimer(),Pe.isBlurToHide()&&Pe.delaySetPopupVisible(!1,Pe.props.blurDelay)},Pe.onContextMenu=function(vt){vt.preventDefault(),Pe.fireEvents("onContextMenu",vt),Pe.setPopupVisible(!0,vt)},Pe.onContextMenuClose=function(){Pe.isContextMenuToShow()&&Pe.close()},Pe.onClick=function(vt){if(Pe.fireEvents("onClick",vt),Pe.focusTime){var St;if(Pe.preClickTime&&Pe.preTouchTime?St=Math.min(Pe.preClickTime,Pe.preTouchTime):Pe.preClickTime?St=Pe.preClickTime:Pe.preTouchTime&&(St=Pe.preTouchTime),Math.abs(St-Pe.focusTime)<20)return;Pe.focusTime=0}Pe.preClickTime=0,Pe.preTouchTime=0,Pe.isClickToShow()&&(Pe.isClickToHide()||Pe.isBlurToHide())&&vt&&vt.preventDefault&&vt.preventDefault();var Vt=!Pe.state.popupVisible;(Pe.isClickToHide()&&!Vt||Vt&&Pe.isClickToShow())&&Pe.setPopupVisible(!Pe.state.popupVisible,vt)},Pe.onPopupMouseDown=function(){if(Pe.hasPopupMouseDown=!0,clearTimeout(Pe.mouseDownTimeout),Pe.mouseDownTimeout=window.setTimeout(function(){Pe.hasPopupMouseDown=!1},0),Pe.context){var vt;(vt=Pe.context).onPopupMouseDown.apply(vt,arguments)}},Pe.onDocumentClick=function(vt){if(Pe.props.mask&&!Pe.props.maskClosable)return;var St=vt.target,Vt=Pe.getRootDomNode(),Mr=Pe.getPopupDomNode();!Object(g.a)(Vt,St)&&!Object(g.a)(Mr,St)&&!Pe.hasPopupMouseDown&&Pe.close()},Pe.getRootDomNode=function(){var vt=Pe.props.getTriggerDOMNode;if(vt)return vt(Pe.triggerRef.current);try{var St=Object(v.a)(Pe.triggerRef.current);if(St)return St}catch(Vt){}return d.a.findDOMNode(Object(l.a)(Pe))},Pe.getPopupClassNameFromAlign=function(vt){var St=[],Vt=Pe.props,Mr=Vt.popupPlacement,$r=Vt.builtinPlacements,vn=Vt.prefixCls,jt=Vt.alignPoint,gt=Vt.getPopupClassNameFromAlign;return Mr&&$r&&St.push(O($r,vn,vt,jt)),gt&&St.push(gt(vt)),St.join(" ")},Pe.getComponent=function(){var vt=Pe.props,St=vt.prefixCls,Vt=vt.destroyPopupOnHide,Mr=vt.popupClassName,$r=vt.onPopupAlign,vn=vt.popupMotion,jt=vt.popupAnimation,gt=vt.popupTransitionName,pt=vt.popupStyle,ar=vt.mask,Ht=vt.maskAnimation,Mt=vt.maskTransitionName,qt=vt.maskMotion,Rt=vt.zIndex,Qt=vt.popup,jr=vt.stretch,Nr=vt.alignPoint,Lr=Pe.state,ln=Lr.popupVisible,mn=Lr.point,ti=Pe.getPopupAlign(),$n={};return Pe.isMouseEnterToShow()&&($n.onMouseEnter=Pe.onPopupMouseEnter),Pe.isMouseLeaveToHide()&&($n.onMouseLeave=Pe.onPopupMouseLeave),$n.onMouseDown=Pe.onPopupMouseDown,$n.onTouchStart=Pe.onPopupMouseDown,u.a.createElement(mt,Object.assign({prefixCls:St,destroyPopupOnHide:Vt,visible:ln,point:Nr&&mn,className:Mr,align:ti,onAlign:$r,animation:jt,getClassNameFromAlign:Pe.getPopupClassNameFromAlign},$n,{stretch:jr,getRootDomNode:Pe.getRootDomNode,style:pt,mask:ar,zIndex:Rt,transitionName:gt,maskAnimation:Ht,maskTransitionName:Mt,maskMotion:qt,ref:Pe.popupRef,motion:vn}),typeof Qt=="function"?Qt():Qt)},Pe.getContainer=function(){var vt=Object(l.a)(Pe),St=vt.props,Vt=document.createElement("div");Vt.style.position="absolute",Vt.style.top="0",Vt.style.left="0",Vt.style.width="100%";var Mr=St.getPopupContainer?St.getPopupContainer(Pe.getRootDomNode()):St.getDocument().body;return Mr.appendChild(Vt),Vt},Pe.setPoint=function(vt){var St=Pe.props.alignPoint;if(!St||!vt)return;Pe.setState({point:{pageX:vt.pageX,pageY:vt.pageY}})},Pe.handlePortalUpdate=function(){Pe.state.prevPopupVisible!==Pe.state.popupVisible&&Pe.props.afterPopupVisibleChange(Pe.state.popupVisible)};var tt;return"popupVisible"in ke?tt=!!ke.popupVisible:tt=!!ke.defaultPopupVisible,Pe.state={prevPopupVisible:tt,popupVisible:tt},Gt.forEach(function(vt){Pe["fire".concat(vt)]=function(St){Pe.fireEvents(vt,St)}}),Pe}return Object(e.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this.props,tt=this.state;if(tt.popupVisible){var vt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(vt=Pe.getDocument(),this.clickOutsideHandler=Object(S.a)(vt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(vt=vt||Pe.getDocument(),this.touchOutsideHandler=Object(S.a)(vt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(vt=vt||Pe.getDocument(),this.contextMenuOutsideHandler1=Object(S.a)(vt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(S.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Pe=this.props,tt=Pe.popupPlacement,vt=Pe.popupAlign,St=Pe.builtinPlacements;return tt&&St?w(St,tt,vt):vt}},{key:"setPopupVisible",value:function(Pe,tt){var vt=this.props.alignPoint,St=this.state.popupVisible;this.clearDelayTimer(),St!==Pe&&("popupVisible"in this.props||this.setState({popupVisible:Pe,prevPopupVisible:St}),this.props.onPopupVisibleChange(Pe)),vt&&tt&&this.setPoint(tt)}},{key:"delaySetPopupVisible",value:function(Pe,tt,vt){var St=this,Vt=tt*1e3;if(this.clearDelayTimer(),Vt){var Mr=vt?{pageX:vt.pageX,pageY:vt.pageY}:null;this.delayTimer=window.setTimeout(function(){St.setPopupVisible(Pe,Mr),St.clearDelayTimer()},Vt)}else this.setPopupVisible(Pe,vt)}},{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(Pe){var tt=this.props.children.props,vt=this.props;return tt[Pe]&&vt[Pe]?this["fire".concat(Pe)]:tt[Pe]||vt[Pe]}},{key:"isClickToShow",value:function(){var Pe=this.props,tt=Pe.action,vt=Pe.showAction;return tt.indexOf("click")!==-1||vt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Pe=this.props,tt=Pe.action,vt=Pe.showAction;return tt.indexOf("contextMenu")!==-1||vt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Pe=this.props,tt=Pe.action,vt=Pe.hideAction;return tt.indexOf("click")!==-1||vt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Pe=this.props,tt=Pe.action,vt=Pe.showAction;return tt.indexOf("hover")!==-1||vt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Pe=this.props,tt=Pe.action,vt=Pe.hideAction;return tt.indexOf("hover")!==-1||vt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Pe=this.props,tt=Pe.action,vt=Pe.showAction;return tt.indexOf("focus")!==-1||vt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Pe=this.props,tt=Pe.action,vt=Pe.hideAction;return tt.indexOf("focus")!==-1||vt.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(Pe,tt){var vt=this.props.children.props[Pe];vt&&vt(tt);var St=this.props[Pe];St&&St(tt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Pe=this.state.popupVisible,tt=this.props,vt=tt.children,St=tt.forceRender,Vt=tt.alignPoint,Mr=tt.className,$r=tt.autoDestroy,vn=u.a.Children.only(vt),jt={key:"trigger"};this.isContextMenuToShow()?jt.onContextMenu=this.onContextMenu:jt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(jt.onClick=this.onClick,jt.onMouseDown=this.onMouseDown,jt.onTouchStart=this.onTouchStart):(jt.onClick=this.createTwoChains("onClick"),jt.onMouseDown=this.createTwoChains("onMouseDown"),jt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(jt.onMouseEnter=this.onMouseEnter,Vt&&(jt.onMouseMove=this.onMouseMove)):jt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?jt.onMouseLeave=this.onMouseLeave:jt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(jt.onFocus=this.onFocus,jt.onBlur=this.onBlur):(jt.onFocus=this.createTwoChains("onFocus"),jt.onBlur=this.createTwoChains("onBlur"));var gt=_()(vn&&vn.props&&vn.props.className,Mr);gt&&(jt.className=gt);var pt=Object(i.a)({},jt);Object(b.c)(vn)&&(pt.ref=Object(b.a)(this.triggerRef,vn.ref));var ar=u.a.cloneElement(vn,pt),Ht;return(Pe||this.popupRef.current||St)&&(Ht=u.a.createElement(Gn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Pe&&$r&&(Ht=null),u.a.createElement(or.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ar,Ht)}}],[{key:"getDerivedStateFromProps",value:function(Pe,tt){var vt=Pe.popupVisible,St={};return vt!==void 0&&tt.popupVisible!==vt&&(St.popupVisible=vt,St.prevPopupVisible=tt.popupVisible),St}}]),Me}(u.a.Component);return ei.contextType=or,ei.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Yt,getDocument:hr,onPopupVisibleChange:dt,afterPopupVisibleChange:dt,onPopupAlign:dt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ei}var Xt=Pt(E.a),Ge={adjustX:1,adjustY:1},pe=[0,0],se={left:{points:["cr","cl"],overflow:Ge,offset:[-4,0],targetOffset:pe},right:{points:["cl","cr"],overflow:Ge,offset:[4,0],targetOffset:pe},top:{points:["bc","tc"],overflow:Ge,offset:[0,-4],targetOffset:pe},bottom:{points:["tc","bc"],overflow:Ge,offset:[0,4],targetOffset:pe},topLeft:{points:["bl","tl"],overflow:Ge,offset:[0,-4],targetOffset:pe},leftTop:{points:["tr","tl"],overflow:Ge,offset:[-4,0],targetOffset:pe},topRight:{points:["br","tr"],overflow:Ge,offset:[0,-4],targetOffset:pe},rightTop:{points:["tl","tr"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomRight:{points:["tr","br"],overflow:Ge,offset:[0,4],targetOffset:pe},rightBottom:{points:["bl","br"],overflow:Ge,offset:[4,0],targetOffset:pe},bottomLeft:{points:["tl","bl"],overflow:Ge,offset:[0,4],targetOffset:pe},leftBottom:{points:["br","bl"],overflow:Ge,offset:[-4,0],targetOffset:pe}},lt=se,Ze=function(ei){var Zt=ei.overlay,Nt=ei.prefixCls,Me=ei.id,ke=ei.overlayInnerStyle;return h.createElement("div",{className:"".concat(Nt,"-inner"),id:Me,role:"tooltip",style:ke},typeof Zt=="function"?Zt():Zt)},de=Ze,_t=function(ei,Zt){var Nt=ei.overlayClassName,Me=ei.trigger,ke=Me===void 0?["hover"]:Me,Pe=ei.mouseEnterDelay,tt=Pe===void 0?0:Pe,vt=ei.mouseLeaveDelay,St=vt===void 0?.1:vt,Vt=ei.overlayStyle,Mr=ei.prefixCls,$r=Mr===void 0?"rc-tooltip":Mr,vn=ei.children,jt=ei.onVisibleChange,gt=ei.afterVisibleChange,pt=ei.transitionName,ar=ei.animation,Ht=ei.placement,Mt=Ht===void 0?"right":Ht,qt=ei.align,Rt=qt===void 0?{}:qt,Qt=ei.destroyTooltipOnHide,jr=Qt===void 0?!1:Qt,Nr=ei.defaultVisible,Lr=ei.getTooltipContainer,ln=ei.overlayInnerStyle,mn=Object(t.a)(ei,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ti=Object(h.useRef)(null);Object(h.useImperativeHandle)(Zt,function(){return ti.current});var $n=Object(i.a)({},mn);"visible"in ei&&($n.popupVisible=ei.visible);var hi=function(){var Re=ei.arrowContent,Ue=Re===void 0?null:Re,Ye=ei.overlay,et=ei.id;return[h.createElement("div",{className:"".concat($r,"-arrow"),key:"arrow"},Ue),h.createElement(de,{key:"content",prefixCls:$r,id:et,overlay:Ye,overlayInnerStyle:ln})]},Ti=!1,Ni=!1;if(typeof jr=="boolean")Ti=jr;else if(jr&&Object(a.a)(jr)==="object"){var Wi=jr.keepParent;Ti=Wi===!0,Ni=Wi===!1}return h.createElement(Xt,Object.assign({popupClassName:Nt,prefixCls:$r,popup:hi,action:ke,builtinPlacements:se,popupPlacement:Mt,ref:ti,popupAlign:Rt,getPopupContainer:Lr,onPopupVisibleChange:jt,afterPopupVisibleChange:gt,popupTransitionName:pt,popupAnimation:ar,defaultPopupVisible:Nr,destroyPopupOnHide:Ti,autoDestroy:Ni,mouseLeaveDelay:St,popupStyle:Vt,mouseEnterDelay:tt},$n),vn)},er=Object(h.forwardRef)(_t),yt=er,Ar={adjustX:1,adjustY:1},Sr={adjustX:0,adjustY:0},Cn=[0,0];function mr(Gn){return typeof Gn=="boolean"?Gn?Ar:Sr:f()(f()({},Sr),Gn)}function Pr(Gn){var ei=Gn.arrowWidth,Zt=ei===void 0?5:ei,Nt=Gn.horizontalArrowShift,Me=Nt===void 0?16:Nt,ke=Gn.verticalArrowShift,Pe=ke===void 0?8:ke,tt=Gn.autoAdjustOverflow,vt={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:[-(Me+Zt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Pe+Zt)]},topRight:{points:["br","tc"],offset:[Me+Zt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Pe+Zt)]},bottomRight:{points:["tr","bc"],offset:[Me+Zt,4]},rightBottom:{points:["bl","cr"],offset:[4,Pe+Zt]},bottomLeft:{points:["tl","bc"],offset:[-(Me+Zt),4]},leftBottom:{points:["br","cl"],offset:[-4,Pe+Zt]}};return Object.keys(vt).forEach(function(St){vt[St]=Gn.arrowPointAtCenter?f()(f()({},vt[St]),{overflow:mr(tt),targetOffset:Cn}):f()(f()({},se[St]),{overflow:mr(tt)}),vt[St].ignoreShake=!0}),vt}var gr=n("0n0R"),Jt=n("H84U"),Dt=n("09Wf"),dn=function(ei,Zt){var Nt={},Me=f()({},ei);return Zt.forEach(function(ke){ei&&ke in ei&&(Nt[ke]=ei[ke],delete Me[ke])}),{picked:Nt,omitted:Me}},Fn=new RegExp("^(".concat(Dt.a.join("|"),")(-inverse)?$"));function Zn(Gn,ei){var Zt=Gn.type;if((Zt.__ANT_BUTTON===!0||Zt.__ANT_SWITCH===!0||Zt.__ANT_CHECKBOX===!0||Gn.type==="button")&&Gn.props.disabled){var Nt=dn(Gn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Me=Nt.picked,ke=Nt.omitted,Pe=f()(f()({display:"inline-block"},Me),{cursor:"not-allowed",width:Gn.props.block?"100%":null}),tt=f()(f()({},ke),{pointerEvents:"none"}),vt=Object(gr.a)(Gn,{style:tt,className:null});return h.createElement("span",{style:Pe,className:_()(Gn.props.className,"".concat(ei,"-disabled-compatible-wrapper"))},vt)}return Gn}var ci=h.forwardRef(function(Gn,ei){var Zt,Nt=h.useContext(Jt.b),Me=Nt.getPopupContainer,ke=Nt.getPrefixCls,Pe=Nt.direction,tt=h.useState(!!Gn.visible||!!Gn.defaultVisible),vt=A()(tt,2),St=vt[0],Vt=vt[1];h.useEffect(function(){"visible"in Gn&&Vt(Gn.visible)},[Gn.visible]);var Mr=function(){var Wi=Gn.title,rt=Gn.overlay;return!Wi&&!rt&&Wi!==0},$r=function(Wi){"visible"in Gn||Vt(Mr()?!1:Wi),Gn.onVisibleChange&&!Mr()&&Gn.onVisibleChange(Wi)},vn=function(){var Wi=Gn.builtinPlacements,rt=Gn.arrowPointAtCenter,Re=Gn.autoAdjustOverflow;return Wi||Pr({arrowPointAtCenter:rt,autoAdjustOverflow:Re})},jt=function(Wi,rt){var Re=vn(),Ue=Object.keys(Re).filter(function($e){return Re[$e].points[0]===rt.points[0]&&Re[$e].points[1]===rt.points[1]})[0];if(!Ue)return;var Ye=Wi.getBoundingClientRect(),et={top:"50%",left:"50%"};Ue.indexOf("top")>=0||Ue.indexOf("Bottom")>=0?et.top="".concat(Ye.height-rt.offset[1],"px"):(Ue.indexOf("Top")>=0||Ue.indexOf("bottom")>=0)&&(et.top="".concat(-rt.offset[1],"px")),Ue.indexOf("left")>=0||Ue.indexOf("Right")>=0?et.left="".concat(Ye.width-rt.offset[0],"px"):(Ue.indexOf("right")>=0||Ue.indexOf("Left")>=0)&&(et.left="".concat(-rt.offset[0],"px")),Wi.style.transformOrigin="".concat(et.left," ").concat(et.top)},gt=function(){var Wi=Gn.title,rt=Gn.overlay;return Wi===0?Wi:rt||Wi||""},pt=Gn.prefixCls,ar=Gn.openClassName,Ht=Gn.getPopupContainer,Mt=Gn.getTooltipContainer,qt=Gn.overlayClassName,Rt=Gn.color,Qt=Gn.overlayInnerStyle,jr=Gn.children,Nr=ke("tooltip",pt),Lr=St;!("visible"in Gn)&&Mr()&&(Lr=!1);var ln=Zn(Object(gr.b)(jr)?jr:h.createElement("span",null,jr),Nr),mn=ln.props,ti=_()(mn.className,p()({},ar||"".concat(Nr,"-open"),!0)),$n=_()(qt,(Zt={},p()(Zt,"".concat(Nr,"-rtl"),Pe==="rtl"),p()(Zt,"".concat(Nr,"-").concat(Rt),Rt&&Fn.test(Rt)),Zt)),hi,Ti;return Rt&&!Fn.test(Rt)&&(hi=f()(f()({},Qt),{background:Rt}),Ti={background:Rt}),h.createElement(yt,f()({},Gn,{prefixCls:Nr,overlayClassName:$n,getTooltipContainer:Ht||Mt||Me,ref:ei,builtinPlacements:vn(),overlay:gt(),visible:Lr,onVisibleChange:$r,onPopupAlign:jt,overlayInnerStyle:hi,arrowContent:h.createElement("span",{className:"".concat(Nr,"-arrow-content"),style:Ti})}),Lr?Object(gr.a)(ln,{className:ti}):ln)});ci.displayName="Tooltip",ci.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Xi=D.a=ci},"3TkU":function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("QUw5"),n("Swgg"),n("LBfv"),n("noeP")},"3X6L":function(k,D,n){var y=n("bYtY"),p=n("7a+S"),x=n("OKJ2"),A=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(A,x);var m=A;k.exports=m},"3e3G":function(k,D,n){var y=n("bYtY"),p=n("QuXc"),x=function(f,h,u,a,i){this.x=f==null?.5:f,this.y=h==null?.5:h,this.r=u==null?.5:u,this.type="radial",this.global=i||!1,p.call(this,a)};x.prototype={constructor:x},y.inherits(x,p);var A=x;k.exports=A},"3gBT":function(k,D){var n=2311;function y(){return n++}k.exports=y},"3hzK":function(k,D){var n={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=n},"3m61":function(k,D){function n(p){return p instanceof Array||(p=[p,p]),p}function y(p){p.eachSeriesByType("graph",function(x){var A=x.getGraph(),m=x.getEdgeData(),f=n(x.get("edgeSymbol")),h=n(x.get("edgeSymbolSize")),u="lineStyle.color".split("."),a="lineStyle.opacity".split(".");m.setVisual("fromSymbol",f&&f[0]),m.setVisual("toSymbol",f&&f[1]),m.setVisual("fromSymbolSize",h&&h[0]),m.setVisual("toSymbolSize",h&&h[1]),m.setVisual("color",x.get(u)),m.setVisual("opacity",x.get(a)),m.each(function(i){var t=m.getItemModel(i),o=A.getEdgeByIndex(i),e=n(t.getShallow("symbol",!0)),l=n(t.getShallow("symbolSize",!0)),r=t.get(u),s=t.get(a);switch(r){case"source":r=o.node1.getVisual("color");break;case"target":r=o.node2.getVisual("color");break}e[0]&&o.setVisual("fromSymbol",e[0]),e[1]&&o.setVisual("toSymbol",e[1]),l[0]&&o.setVisual("fromSymbolSize",l[0]),l[1]&&o.setVisual("toSymbolSize",l[1]),o.setVisual("color",r),o.setVisual("opacity",s)})})}k.exports=y},"3ouR":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 00354 671z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"close-square",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseSquareOutlined";var h=D.a=p.forwardRef(f)},"3y9D":function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=x.Hasher,f=p.algo,h=[],u=f.SHA1=m.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,t){for(var o=this._hash.words,e=o[0],l=o[1],r=o[2],s=o[3],c=o[4],d=0;d<80;d++){if(d<16)h[d]=i[t+d]|0;else{var g=h[d-3]^h[d-8]^h[d-14]^h[d-16];h[d]=g<<1|g>>>31}var v=(e<<5|e>>>27)+c+h[d];d<20?v+=(l&r|~l&s)+1518500249:d<40?v+=(l^r^s)+1859775393:d<60?v+=(l&r|l&s|r&s)-1894007588:v+=(l^r^s)-899497514,c=s,s=r,r=l<<30|l>>>2,l=e,e=v}o[0]=o[0]+e|0,o[1]=o[1]+l|0,o[2]=o[2]+r|0,o[3]=o[3]+s|0,o[4]=o[4]+c|0},_doFinalize:function(){var i=this._data,t=i.words,o=this._nDataBytes*8,e=i.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(o/4294967296),t[(e+64>>>9<<4)+15]=o,i.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var i=m.clone.call(this);return i._hash=this._hash.clone(),i}});p.SHA1=m._createHelper(u),p.HmacSHA1=m._createHmacHelper(u)}(),y.SHA1})},"3zoK":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("KCsZ"),A=n("nkfE"),m=n("OELB"),f=n("ICMv"),h=p.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return x([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var o=this.activeIntervals=y.clone(t);if(o)for(var e=o.length-1;e>=0;e--)m.asc(o[e])},getActiveState:function(t){var o=this.activeIntervals;if(!o.length)return"normal";if(t==null||isNaN(t))return"inactive";if(o.length===1){var e=o[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var l=0,r=o.length;l<r;l++)if(o[l][0]<=t&&t<=o[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(h.prototype,f);function a(t,o){return o.type||(o.data?"category":"value")}A("parallel",h,a,u);var i=h;k.exports=i},"49sm":function(k,D){var n={}.toString;k.exports=Array.isArray||function(y){return n.call(y)=="[object Array]"}},"4Feb":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("IwbS"),m=n("x3X8"),f=m.getDefaultLabel,h=n("MwEJ"),u=n("nVfU"),a=u.getLayoutOnAxis,i=n("gPAo"),t=n("T4UG"),o=n("Qxkt"),e=n("6Ic6"),l=n("sK/D"),r=l.createClipPath,s=n("qj72"),c=n("ANjR"),d=n("MHtr"),g=n("6usn"),v=n("Rx6q"),b=A.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],E=["emphasis","itemStyle"],C=["label"],_=["emphasis","label"],T="e\0\0",w={cartesian2d:s,geo:c,singleAxis:d,polar:g,calendar:v};t.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function($,be){return h(this.getSource(),this)},getDataParams:function($,be,_e){var Ee=t.prototype.getDataParams.apply(this,arguments);return _e&&(Ee.info=_e.info),Ee}}),e.extend({type:"custom",_data:null,render:function($,be,_e,Ee){var Xe=this._data,He=$.getData(),nt=this.group,Ie=M($,He,be,_e);He.diff(Xe).add(function(ot){P(null,ot,Ie(ot,Ee),$,nt,He)}).update(function(ot,he){var J=Xe.getItemGraphicEl(he);P(J,ot,Ie(ot,Ee),$,nt,He)}).remove(function(ot){var he=Xe.getItemGraphicEl(ot);he&&nt.remove(he)}).execute();var oe=$.get("clip",!0)?r($.coordinateSystem,!1,$):null;oe?nt.setClipPath(oe):nt.removeClipPath(),this._data=He},incrementalPrepareRender:function($,be,_e){this.group.removeAll(),this._data=null},incrementalRender:function($,be,_e,Ee,Xe){var He=be.getData(),nt=M(be,He,_e,Ee);function Ie(he){he.isGroup||(he.incremental=!0,he.useHoverLayer=!0)}for(var oe=$.start;oe<$.end;oe++){var ot=P(null,oe,nt(oe,Xe),be,this.group,He);ot.traverse(Ie)}},dispose:x.noop,filterForExposedEvent:function($,be,_e,Ee){var Xe=be.element;if(Xe==null||_e.name===Xe)return!0;for(;(_e=_e.parent)&&_e!==this.group;)if(_e.name===Xe)return!0;return!1}});function O($){var be=$.type,_e;if(be==="path"){var Ee=$.shape,Xe=Ee.width!=null&&Ee.height!=null?{x:Ee.x||0,y:Ee.y||0,width:Ee.width,height:Ee.height}:null,He=re(Ee);_e=A.makePath(He,null,Xe,Ee.layout||"center"),_e.__customPathData=He}else if(be==="image")_e=new A.Image({}),_e.__customImagePath=$.style.image;else if(be==="text")_e=new A.Text({}),_e.__customText=$.style.text;else if(be==="group")_e=new A.Group;else{if(be==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var nt=A.getShapeClass(be);_e=new nt}return _e.__customGraphicType=be,_e.name=$.name,_e}function I($,be,_e,Ee,Xe,He,nt){var Ie={},oe=_e.style||{};if(_e.shape&&(Ie.shape=x.clone(_e.shape)),_e.position&&(Ie.position=_e.position.slice()),_e.scale&&(Ie.scale=_e.scale.slice()),_e.origin&&(Ie.origin=_e.origin.slice()),_e.rotation&&(Ie.rotation=_e.rotation),$.type==="image"&&_e.style){var ot=Ie.style={};x.each(["x","y","width","height"],function(Y){R(Y,ot,oe,$.style,He)})}if($.type==="text"&&_e.style){var ot=Ie.style={};x.each(["x","y"],function(q){R(q,ot,oe,$.style,He)}),!oe.hasOwnProperty("textFill")&&oe.fill&&(oe.textFill=oe.fill),!oe.hasOwnProperty("textStroke")&&oe.stroke&&(oe.textStroke=oe.stroke)}if($.type!=="group"&&($.useStyle(oe),He)){$.style.opacity=0;var he=oe.opacity;he==null&&(he=1),A.initProps($,{style:{opacity:he}},Ee,be)}He?$.attr(Ie):A.updateProps($,Ie,Ee,be),_e.hasOwnProperty("z2")&&$.attr("z2",_e.z2||0),_e.hasOwnProperty("silent")&&$.attr("silent",_e.silent),_e.hasOwnProperty("invisible")&&$.attr("invisible",_e.invisible),_e.hasOwnProperty("ignore")&&$.attr("ignore",_e.ignore),_e.hasOwnProperty("info")&&$.attr("info",_e.info);var J=_e.styleEmphasis;A.setElementHoverStyle($,J),nt&&A.setAsHighDownDispatcher($,J!==!1)}function R($,be,_e,Ee,Xe){_e[$]!=null&&!Xe&&(be[$]=_e[$],_e[$]=Ee[$])}function M($,be,_e,Ee){var Xe=$.get("renderItem"),He=$.coordinateSystem,nt={};He&&(nt=He.prepareCustoms?He.prepareCustoms():w[He.type](He));var Ie=x.defaults({getWidth:Ee.getWidth,getHeight:Ee.getHeight,getZr:Ee.getZr,getDevicePixelRatio:Ee.getDevicePixelRatio,value:Ne,style:je,styleEmphasis:me,visual:Ce,barLayout:Fe,currentSeriesIndices:it,font:Ct},nt.api||{}),oe={context:{},seriesId:$.id,seriesName:$.name,seriesIndex:$.seriesIndex,coordSys:nt.coordSys,dataInsideLength:be.count(),encode:F($.getData())},ot,he=!0,J,Y,q,fe;return function(mt,Ve){return ot=mt,he=!0,Xe&&Xe(x.defaults({dataIndexInside:mt,dataIndex:be.getRawIndex(mt),actionType:Ve?Ve.type:null},oe),Ie)};function we(mt){mt==null&&(mt=ot),he&&(J=be.getItemModel(mt),Y=J.getModel(C),q=J.getModel(_),fe=be.getItemVisual(mt,"color"),he=!1)}function Ne(mt,Ve){return Ve==null&&(Ve=ot),be.get(be.getDimension(mt||0),Ve)}function je(mt,Ve){Ve==null&&(Ve=ot),we(Ve);var or=J.getModel(S).getItemStyle();fe!=null&&(or.fill=fe);var dt=be.getItemVisual(Ve,"opacity");dt!=null&&(or.opacity=dt);var Yt=mt?V(mt,Y):Y;return A.setTextStyle(or,Yt,null,{autoColor:fe,isRectText:!0}),or.text=Yt.getShallow("show")?x.retrieve2($.getFormattedLabel(Ve,"normal"),f(be,Ve)):null,mt&&Q(or,mt),or}function me(mt,Ve){Ve==null&&(Ve=ot),we(Ve);var or=J.getModel(E).getItemStyle(),dt=mt?V(mt,q):q;return A.setTextStyle(or,dt,null,{isRectText:!0},!0),or.text=dt.getShallow("show")?x.retrieve3($.getFormattedLabel(Ve,"emphasis"),$.getFormattedLabel(Ve,"normal"),f(be,Ve)):null,mt&&Q(or,mt),or}function Ce(mt,Ve){return Ve==null&&(Ve=ot),be.getItemVisual(Ve,mt)}function Fe(mt){if(He.getBaseAxis){var Ve=He.getBaseAxis();return a(x.defaults({axis:Ve},mt),Ee)}}function it(){return _e.getCurrentSeriesIndices()}function Ct(mt){return A.getFont(mt,_e)}}function F($){var be={};return x.each($.dimensions,function(_e,Ee){var Xe=$.getDimensionInfo(_e);if(!Xe.isExtraCoord){var He=Xe.coordDim,nt=be[He]=be[He]||[];nt[Xe.coordDimIndex]=Ee}}),be}function P($,be,_e,Ee,Xe,He){return $=X($,be,_e,Ee,Xe,He,!0),$&&He.setItemGraphicEl(be,$),$}function X($,be,_e,Ee,Xe,He,nt){var Ie=!_e;_e=_e||{};var oe=_e.type,ot=_e.shape,he=_e.style;if($&&(Ie||oe!=null&&oe!==$.__customGraphicType||oe==="path"&&ee(ot)&&re(ot)!==$.__customPathData||oe==="image"&&ue(he,"image")&&he.image!==$.__customImagePath||oe==="text"&&ue(ot,"text")&&he.text!==$.__customText)&&(Xe.remove($),$=null),Ie)return;var J=!$;return!$&&($=O(_e)),I($,be,_e,Ee,He,J,nt),oe==="group"&&B($,be,_e,Ee,He),Xe.add($),$}function B($,be,_e,Ee,Xe){var He=_e.children,nt=He?He.length:0,Ie=_e.$mergeChildren,oe=Ie==="byName"||_e.diffChildrenByName,ot=Ie===!1;if(!nt&&!oe&&!ot)return;if(oe){j({oldChildren:$.children()||[],newChildren:He||[],dataIndex:be,animatableModel:Ee,group:$,data:Xe});return}ot&&$.removeAll();for(var he=0;he<nt;he++)He[he]&&X($.childAt(he),be,He[he],Ee,$,Xe)}function j($){new i($.oldChildren,$.newChildren,W,W,$).add(z).update(z).remove(G).execute()}function W($,be){var _e=$&&$.name;return _e!=null?_e:T+be}function z($,be){var _e=this.context,Ee=$!=null?_e.newChildren[$]:null,Xe=be!=null?_e.oldChildren[be]:null;X(Xe,_e.dataIndex,Ee,_e.animatableModel,_e.group,_e.data)}function V($,be){var _e=new o({},be);return x.each(b,function(Ee,Xe){$.hasOwnProperty(Ee)&&(_e.option[Xe]=$[Ee])}),_e}function Q($,be){for(var _e in be)(be.hasOwnProperty(_e)||!b.hasOwnProperty(_e))&&($[_e]=be[_e])}function G($){var be=this.context,_e=be.oldChildren[$];_e&&be.group.remove(_e)}function re($){return $&&($.pathData||$.d)}function ee($){return $&&($.hasOwnProperty("pathData")||$.hasOwnProperty("d"))}function ue($,be){return $&&$.hasOwnProperty(be)}},"4HMb":function(k,D,n){var y=n("bYtY"),p=n("6GrX"),x=n("4NO4"),A=x.makeInner,m=n("aX7z"),f=m.makeLabelFormatter,h=m.getOptionCategoryInterval,u=m.shouldShowAllLabels,a=A();function i(C){return C.type==="category"?o(C):r(C)}function t(C,_){return C.type==="category"?l(C,_):{ticks:C.scale.getTicks()}}function o(C){var _=C.getLabelModel(),T=e(C,_);return!_.get("show")||C.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function e(C,_){var T=s(C,"labels"),w=h(_),O=c(T,w);if(O)return O;var I,R;return y.isFunction(w)?I=E(C,w):(R=w==="auto"?g(C):w,I=S(C,R)),d(T,w,{labels:I,labelCategoryInterval:R})}function l(C,_){var T=s(C,"ticks"),w=h(_),O=c(T,w);if(O)return O;var I,R;if((!_.get("show")||C.scale.isBlank())&&(I=[]),y.isFunction(w))I=E(C,w,!0);else if(w==="auto"){var M=e(C,C.getLabelModel());R=M.labelCategoryInterval,I=y.map(M.labels,function(F){return F.tickValue})}else R=w,I=S(C,R,!0);return d(T,w,{ticks:I,tickCategoryInterval:R})}function r(C){var _=C.scale.getTicks(),T=f(C);return{labels:y.map(_,function(w,O){return{formattedLabel:T(w,O),rawLabel:C.scale.getLabel(w),tickValue:w}})}}function s(C,_){return a(C)[_]||(a(C)[_]=[])}function c(C,_){for(var T=0;T<C.length;T++)if(C[T].key===_)return C[T].value}function d(C,_,T){return C.push({key:_,value:T}),T}function g(C){var _=a(C).autoInterval;return _!=null?_:a(C).autoInterval=C.calculateCategoryInterval()}function v(C){var _=b(C),T=f(C),w=(_.axisRotate-_.labelRotate)/180*Math.PI,O=C.scale,I=O.getExtent(),R=O.count();if(I[1]-I[0]<1)return 0;var M=1;R>40&&(M=Math.max(1,Math.floor(R/40)));for(var F=I[0],P=C.dataToCoord(F+1)-C.dataToCoord(F),X=Math.abs(P*Math.cos(w)),B=Math.abs(P*Math.sin(w)),j=0,W=0;F<=I[1];F+=M){var z=0,V=0,Q=p.getBoundingRect(T(F),_.font,"center","top");z=Q.width*1.3,V=Q.height*1.3,j=Math.max(j,z,7),W=Math.max(W,V,7)}var G=j/X,re=W/B;isNaN(G)&&(G=Infinity),isNaN(re)&&(re=Infinity);var ee=Math.max(0,Math.floor(Math.min(G,re))),ue=a(C.model),$=C.getExtent(),be=ue.lastAutoInterval,_e=ue.lastTickCount;return be!=null&&_e!=null&&Math.abs(be-ee)<=1&&Math.abs(_e-R)<=1&&be>ee&&ue.axisExtend0===$[0]&&ue.axisExtend1===$[1]?ee=be:(ue.lastTickCount=R,ue.lastAutoInterval=ee,ue.axisExtend0=$[0],ue.axisExtend1=$[1]),ee}function b(C){var _=C.getLabelModel();return{axisRotate:C.getRotate?C.getRotate():C.isHorizontal&&!C.isHorizontal()?90:0,labelRotate:_.get("rotate")||0,font:_.getFont()}}function S(C,_,T){var w=f(C),O=C.scale,I=O.getExtent(),R=C.getLabelModel(),M=[],F=Math.max((_||0)+1,1),P=I[0],X=O.count();P!==0&&F>1&&X/F>2&&(P=Math.round(Math.ceil(P/F)*F));var B=u(C),j=R.get("showMinLabel")||B,W=R.get("showMaxLabel")||B;j&&P!==I[0]&&V(I[0]);for(var z=P;z<=I[1];z+=F)V(z);W&&z-F!==I[1]&&V(I[1]);function V(Q){M.push(T?Q:{formattedLabel:w(Q),rawLabel:O.getLabel(Q),tickValue:Q})}return M}function E(C,_,T){var w=C.scale,O=f(C),I=[];return y.each(w.getTicks(),function(R){var M=w.getLabel(R);_(R,M)&&I.push(T?R:{formattedLabel:O(R),rawLabel:M,tickValue:R})}),I}D.createAxisLabels=i,D.createAxisTicks=t,D.calculateCategoryInterval=v},"4NO4":function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=y.each,A=y.isObject,m=y.isArray,f="series\0";function h(T){return T instanceof Array?T:T==null?[]:[T]}function u(T,w,O){if(T){T[w]=T[w]||{},T.emphasis=T.emphasis||{},T.emphasis[w]=T.emphasis[w]||{};for(var I=0,R=O.length;I<R;I++){var M=O[I];!T.emphasis[w].hasOwnProperty(M)&&T[w].hasOwnProperty(M)&&(T.emphasis[w][M]=T[w][M])}}}var a=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function i(T){return A(T)&&!m(T)&&!(T instanceof Date)?T.value:T}function t(T){return A(T)&&!(T instanceof Array)}function o(T,w){w=(w||[]).slice();var O=y.map(T||[],function(I,R){return{exist:I}});return x(w,function(I,R){if(!A(I))return;for(var M=0;M<O.length;M++)if(!O[M].option&&I.id!=null&&O[M].exist.id===I.id+""){O[M].option=I,w[R]=null;return}for(var M=0;M<O.length;M++){var F=O[M].exist;if(!O[M].option&&(F.id==null||I.id==null)&&I.name!=null&&!r(I)&&!r(F)&&F.name===I.name+""){O[M].option=I,w[R]=null;return}}}),x(w,function(I,R){if(!A(I))return;for(var M=0;M<O.length;M++){var F=O[M].exist;if(!O[M].option&&!r(F)&&I.id==null){O[M].option=I;break}}M>=O.length&&O.push({option:I})}),O}function e(T){var w=y.createHashMap();x(T,function(O,I){var R=O.exist;R&&w.set(R.id,O)}),x(T,function(O,I){var R=O.option;y.assert(!R||R.id==null||!w.get(R.id)||w.get(R.id)===O,"id duplicates: "+(R&&R.id)),R&&R.id!=null&&w.set(R.id,O),!O.keyInfo&&(O.keyInfo={})}),x(T,function(O,I){var R=O.exist,M=O.option,F=O.keyInfo;if(!A(M))return;if(F.name=M.name!=null?M.name+"":R?R.name:f+I,R)F.id=R.id;else if(M.id!=null)F.id=M.id+"";else{var P=0;do F.id="\0"+F.name+"\0"+P++;while(w.get(F.id))}w.set(F.id,O)})}function l(T){var w=T.name;return!!(w&&w.indexOf(f))}function r(T){return A(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function s(T,w){var O={},I={};return R(T||[],O),R(w||[],I,O),[M(O),M(I)];function R(F,P,X){for(var B=0,j=F.length;B<j;B++)for(var W=F[B].seriesId,z=h(F[B].dataIndex),V=X&&X[W],Q=0,G=z.length;Q<G;Q++){var re=z[Q];V&&V[re]?V[re]=null:(P[W]||(P[W]={}))[re]=1}}function M(F,P){var X=[];for(var B in F)if(F.hasOwnProperty(B)&&F[B]!=null)if(P)X.push(+B);else{var j=M(F[B],!0);j.length&&X.push({seriesId:B,dataIndex:j})}return X}}function c(T,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return y.isArray(w.dataIndex)?y.map(w.dataIndex,function(O){return T.indexOfRawIndex(O)}):T.indexOfRawIndex(w.dataIndex);if(w.name!=null)return y.isArray(w.name)?y.map(w.name,function(O){return T.indexOfName(O)}):T.indexOfName(w.name)}function d(){var T="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(w){return w[T]||(w[T]={})}}var g=0;function v(T,w,O){if(y.isString(w)){var I={};I[w+"Index"]=0,w=I}var R=O&&O.defaultMainType;R&&!b(w,R+"Index")&&!b(w,R+"Id")&&!b(w,R+"Name")&&(w[R+"Index"]=0);var M={};return x(w,function(F,P){var F=w[P];if(P==="dataIndex"||P==="dataIndexInside"){M[P]=F;return}var X=P.match(/^(\w+)(Index|Id|Name)$/)||[],B=X[1],j=(X[2]||"").toLowerCase();if(!B||!j||F==null||j==="index"&&F==="none"||O&&O.includeMainTypes&&y.indexOf(O.includeMainTypes,B)<0)return;var W={mainType:B};(j!=="index"||F!=="all")&&(W[j]=F);var z=T.queryComponents(W);M[B+"Models"]=z,M[B+"Model"]=z[0]}),M}function b(T,w){return T&&T.hasOwnProperty(w)}function S(T,w,O){T.setAttribute?T.setAttribute(w,O):T[w]=O}function E(T,w){return T.getAttribute?T.getAttribute(w):T[w]}function C(T){return T==="auto"?p.domSupported?"html":"richText":T||"html"}function _(T,w){var O=y.createHashMap(),I=[];return y.each(T,function(R){var M=w(R);(O.get(M)||(I.push(M),O.set(M,[]))).push(R)}),{keys:I,buckets:O}}D.normalizeToArray=h,D.defaultEmphasis=u,D.TEXT_STYLE_OPTIONS=a,D.getDataItemValue=i,D.isDataItemOption=t,D.mappingToExists=o,D.makeIdAndName=e,D.isNameSpecified=l,D.isIdInner=r,D.compressBatches=s,D.queryDataIndex=c,D.makeInner=d,D.parseFinder=v,D.setAttribute=S,D.getAttribute=E,D.getTooltipRenderMode=C,D.groupData=_},"4NgU":function(k,D,n){var y=n("Yl7c");function p(A){this._setting=A||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}p.prototype.parse=function(A){return A},p.prototype.getSetting=function(A){return this._setting[A]},p.prototype.contain=function(A){var m=this._extent;return A>=m[0]&&A<=m[1]},p.prototype.normalize=function(A){var m=this._extent;return m[1]===m[0]?.5:(A-m[0])/(m[1]-m[0])},p.prototype.scale=function(A){var m=this._extent;return A*(m[1]-m[0])+m[0]},p.prototype.unionExtent=function(A){var m=this._extent;A[0]<m[0]&&(m[0]=A[0]),A[1]>m[1]&&(m[1]=A[1])},p.prototype.unionExtentFromData=function(A,m){this.unionExtent(A.getApproximateExtent(m))},p.prototype.getExtent=function(){return this._extent.slice()},p.prototype.setExtent=function(A,m){var f=this._extent;isNaN(A)||(f[0]=A),isNaN(m)||(f[1]=m)},p.prototype.isBlank=function(){return this._isBlank},p.prototype.setBlank=function(A){this._isBlank=A},p.prototype.getLabel=null,y.enableClassExtend(p),y.enableClassManagement(p,{registerWhenExtend:!0});var x=p;k.exports=x},"4fz+":function(k,D,n){var y=n("bYtY"),p=n("1bdT"),x=n("mFDi"),A=function(h){h=h||{},p.call(this,h);for(var u in h)h.hasOwnProperty(u)&&(this[u]=h[u]);this._children=[],this.__storage=null,this.__dirty=!0};A.prototype={constructor:A,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(h){return this._children[h]},childOfName:function(h){for(var u=this._children,a=0;a<u.length;a++)if(u[a].name===h)return u[a]},childCount:function(){return this._children.length},add:function(h){return h&&h!==this&&h.parent!==this&&(this._children.push(h),this._doAdd(h)),this},addBefore:function(h,u){if(h&&h!==this&&h.parent!==this&&u&&u.parent===this){var a=this._children,i=a.indexOf(u);i>=0&&(a.splice(i,0,h),this._doAdd(h))}return this},_doAdd:function(h){h.parent&&h.parent.remove(h),h.parent=this;var u=this.__storage,a=this.__zr;u&&u!==h.__storage&&(u.addToStorage(h),h instanceof A&&h.addChildrenToStorage(u)),a&&a.refresh()},remove:function(h){var u=this.__zr,a=this.__storage,i=this._children,t=y.indexOf(i,h);return t<0?this:(i.splice(t,1),h.parent=null,a&&(a.delFromStorage(h),h instanceof A&&h.delChildrenFromStorage(a)),u&&u.refresh(),this)},removeAll:function(){var h=this._children,u=this.__storage,a,i;for(i=0;i<h.length;i++)a=h[i],u&&(u.delFromStorage(a),a instanceof A&&a.delChildrenFromStorage(u)),a.parent=null;return h.length=0,this},eachChild:function(h,u){for(var a=this._children,i=0;i<a.length;i++){var t=a[i];h.call(u,t,i)}return this},traverse:function(h,u){for(var a=0;a<this._children.length;a++){var i=this._children[a];h.call(u,i),i.type==="group"&&i.traverse(h,u)}return this},addChildrenToStorage:function(h){for(var u=0;u<this._children.length;u++){var a=this._children[u];h.addToStorage(a),a instanceof A&&a.addChildrenToStorage(h)}},delChildrenFromStorage:function(h){for(var u=0;u<this._children.length;u++){var a=this._children[u];h.delFromStorage(a),a instanceof A&&a.delChildrenFromStorage(h)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(h){for(var u=null,a=new x(0,0,0,0),i=h||this._children,t=[],o=0;o<i.length;o++){var e=i[o];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),r=e.getLocalTransform(t);r?(a.copy(l),a.applyTransform(r),u=u||a.clone(),u.union(a)):(u=u||l.clone(),u.union(l))}return u||a}},y.inherits(A,p);var m=A;k.exports=m},"4i/N":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseOutlined";var h=D.a=p.forwardRef(f)},"4kuk":function(k,D,n){var y=n("SfRM"),p=n("Hvzi"),x=n("u8Dt"),A=n("ekgI"),m=n("JSQU");function f(h){var u=-1,a=h==null?0:h.length;for(this.clear();++u<a;){var i=h[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=A,f.prototype.set=m,k.exports=f},"4mN7":function(k,D,n){var y=n("QBsz"),p=n("Sj9i"),x=Math.min,A=Math.max,m=Math.sin,f=Math.cos,h=Math.PI*2,u=y.create(),a=y.create(),i=y.create();function t(d,g,v){if(d.length===0)return;var b=d[0],S=b[0],E=b[0],C=b[1],_=b[1],T;for(T=1;T<d.length;T++)b=d[T],S=x(S,b[0]),E=A(E,b[0]),C=x(C,b[1]),_=A(_,b[1]);g[0]=S,g[1]=C,v[0]=E,v[1]=_}function o(d,g,v,b,S,E){S[0]=x(d,v),S[1]=x(g,b),E[0]=A(d,v),E[1]=A(g,b)}var e=[],l=[];function r(d,g,v,b,S,E,C,_,T,w){var O=p.cubicExtrema,I=p.cubicAt,R,M=O(d,v,S,C,e);for(T[0]=Infinity,T[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,R=0;R<M;R++){var F=I(d,v,S,C,e[R]);T[0]=x(F,T[0]),w[0]=A(F,w[0])}for(M=O(g,b,E,_,l),R=0;R<M;R++){var P=I(g,b,E,_,l[R]);T[1]=x(P,T[1]),w[1]=A(P,w[1])}T[0]=x(d,T[0]),w[0]=A(d,w[0]),T[0]=x(C,T[0]),w[0]=A(C,w[0]),T[1]=x(g,T[1]),w[1]=A(g,w[1]),T[1]=x(_,T[1]),w[1]=A(_,w[1])}function s(d,g,v,b,S,E,C,_){var T=p.quadraticExtremum,w=p.quadraticAt,O=A(x(T(d,v,S),1),0),I=A(x(T(g,b,E),1),0),R=w(d,v,S,O),M=w(g,b,E,I);C[0]=x(d,S,R),C[1]=x(g,E,M),_[0]=A(d,S,R),_[1]=A(g,E,M)}function c(d,g,v,b,S,E,C,_,T){var w=y.min,O=y.max,I=Math.abs(S-E);if(I%h<1e-4&&I>1e-4){_[0]=d-v,_[1]=g-b,T[0]=d+v,T[1]=g+b;return}if(u[0]=f(S)*v+d,u[1]=m(S)*b+g,a[0]=f(E)*v+d,a[1]=m(E)*b+g,w(_,u,a),O(T,u,a),S=S%h,S<0&&(S=S+h),E=E%h,E<0&&(E=E+h),S>E&&!C?E+=h:S<E&&C&&(S+=h),C){var R=E;E=S,S=R}for(var M=0;M<E;M+=Math.PI/2)M>S&&(i[0]=f(M)*v+d,i[1]=m(M)*b+g,w(_,i,_),O(T,i,T))}D.fromPoints=t,D.fromLine=o,D.fromCubic=r,D.fromQuadratic=s,D.fromArc=c},"4vCz":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("X2/X")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PlusSquareOutlined";var i=A.forwardRef(a);D.default=i},"4xFK":function(k,D,n){"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,n){var y=n("IwbS"),p=n("x3X8"),x=p.getDefaultLabel;function A(f,h,u,a,i,t,o){var e=u.getModel("label"),l=u.getModel("emphasis.label");y.setLabelStyle(f,h,e,l,{labelFetcher:i,labelDataIndex:t,defaultText:x(i.getData(),t),isRectText:!0,autoColor:a}),m(f),m(h)}function m(f,h){f.textPosition==="outside"&&(f.textPosition=h)}D.setLabel=A},"59Ip":function(k,D,n){var y=n("Sj9i");function p(x,A,m,f,h,u,a,i,t,o,e){if(t===0)return!1;var l=t;if(e>A+l&&e>f+l&&e>u+l&&e>i+l||e<A-l&&e<f-l&&e<u-l&&e<i-l||o>x+l&&o>m+l&&o>h+l&&o>a+l||o<x-l&&o<m-l&&o<h-l&&o<a-l)return!1;var r=y.cubicProjectPoint(x,A,m,f,h,u,a,i,o,e,null);return r<=l/2}D.containStroke=p},"5Dmo":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("5YgA"),A=n.n(x)},"5GOC":function(k,D,n){"use strict";var y=n("cIOH"),p=n("b56q"),x=n("15/o")},"5GhG":function(k,D,n){var y=n("5GtS"),p=n("bYtY"),x=n("L0Ub"),A=x.getDimensionTypeByAxis,m=n("D5nY"),f=m.makeSeriesEncodeForAxisCoordSys,h={_baseAxisDim:null,getInitialData:function(u,a){var i,t=a.getComponent("xAxis",this.get("xAxisIndex")),o=a.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),l=o.get("type"),r;e==="category"?(u.layout="horizontal",i=t.getOrdinalMeta(),r=!0):l==="category"?(u.layout="vertical",i=o.getOrdinalMeta(),r=!0):u.layout=u.layout||"horizontal";var s=["x","y"],c=u.layout==="horizontal"?0:1,d=this._baseAxisDim=s[c],g=s[1-c],v=[t,o],b=v[c].get("type"),S=v[1-c].get("type"),E=u.data;if(E&&r){var C=[];p.each(E,function(w,O){var I;w.value&&p.isArray(w.value)?(I=w.value.slice(),w.value.unshift(O)):p.isArray(w)?(I=w.slice(),w.unshift(O)):I=w,C.push(I)}),u.data=C}var _=this.defaultValueDimensions,T=[{name:d,type:A(b),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:A(S),dimsDef:_.slice()}];return y(this,{coordDimensions:T,dimensionsCount:_.length+1,encodeDefaulter:p.curry(f,T,this)})},getBaseAxis:function(){var u=this._baseAxisDim;return this.ecModel.getComponent(u+"Axis",this.get(u+"AxisIndex")).axis}};D.seriesModelMixin=h},"5GtS":function(k,D,n){var y=n("sdST"),p=n("YXkt"),x=n("bYtY"),A=x.extend,m=x.isArray;function f(h,u,a){u=m(u)&&{coordDimensions:u}||A({},u);var i=h.getSource(),t=y(i,u),o=new p(t,h);return o.initData(i,a),o}k.exports=f},"5Hur":function(k,D,n){var y=n("4NO4"),p=y.makeInner,x=y.normalizeToArray,A=p();function m(h,u){for(var a=h.length,i=0;i<a;i++)if(h[i].length>u)return h[i];return h[a-1]}var f={clearColorPalette:function(){A(this).colorIdx=0,A(this).colorNameMap={}},getColorFromPalette:function(h,u,a){u=u||this;var i=A(u),t=i.colorIdx||0,o=i.colorNameMap=i.colorNameMap||{};if(o.hasOwnProperty(h))return o[h];var e=x(this.get("color",!0)),l=this.get("colorLayer",!0),r=a==null||!l?e:m(l,a);if(r=r||e,!r||!r.length)return;var s=r[t];return h&&(o[h]=s),i.colorIdx=(t+1)%r.length,s}};k.exports=f},"5NDa":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("OnYD"),A=n.n(x),m=n("+L6B")},"5NHt":function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("N5BQ"),n("IyUQ"),n("LBfv"),n("noeP")},"5OYt":function(k,D,n){"use strict";var y=n("J4zp"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("ACnJ");function f(){var h=Object(x.useState)({}),u=p()(h,2),a=u[0],i=u[1];return Object(x.useEffect)(function(){var t=m.a.subscribe(function(o){i(o)});return function(){return m.a.unsubscribe(t)}},[]),a}D.a=f},"5RzL":function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("1OyB"),s=n("vuIU"),c=n("Ji7U"),d=n("LK+K"),g=n("KQm4"),v=n("U8pU"),b=n("ODXe"),S=n("VTBJ"),E=n("rePB"),C=n("Ff2n"),_=n("4IlW"),T=n("TSYQ"),w=n.n(T),O=n("6cGi"),I=n("bX4T"),R=n("8XRh"),M=function(wr){var xn=wr.className,ur=wr.customizeIcon,Dr=wr.customizeIconProps,Vr=wr.onMouseDown,sn=wr.onClick,Rn=wr.children,xt;return typeof ur=="function"?xt=ur(Dr):xt=ur,e.createElement("span",{className:xn,onMouseDown:function(Or){Or.preventDefault(),Vr&&Vr(Or)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:sn,"aria-hidden":!0},xt!==void 0?xt:e.createElement("span",{className:w()(xn.split(/\s+/).map(function(_r){return"".concat(_r,"-icon")}))},Rn))},F=M,P=n("c+Xe"),X=function(wr,xn){var ur=wr.prefixCls,Dr=wr.id,Vr=wr.inputElement,sn=wr.disabled,Rn=wr.tabIndex,xt=wr.autoFocus,_r=wr.autoComplete,Or=wr.editable,en=wr.accessibilityIndex,wn=wr.value,_n=wr.maxLength,yn=wr.onKeyDown,Jn=wr.onMouseDown,Un=wr.onChange,pi=wr.onPaste,ki=wr.onCompositionStart,yi=wr.onCompositionEnd,_i=wr.open,Ki=wr.attrs,qi=Vr||e.createElement("input",null),zi=qi,Hi=zi.ref,Ui=zi.props,Qi=Ui.onKeyDown,ca=Ui.onChange,Ca=Ui.onMouseDown,ra=Ui.onCompositionStart,Ma=Ui.onCompositionEnd,La=Ui.style;return qi=e.cloneElement(qi,Object(S.a)(Object(S.a)({id:Dr,ref:Object(P.a)(xn,Hi),disabled:sn,tabIndex:Rn,autoComplete:_r||"off",type:"search",autoFocus:xt,className:"".concat(ur,"-selection-search-input"),style:Object(S.a)(Object(S.a)({},La),{},{opacity:Or?null:0}),role:"combobox","aria-expanded":_i,"aria-haspopup":"listbox","aria-owns":"".concat(Dr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Dr,"_list"),"aria-activedescendant":"".concat(Dr,"_list_").concat(en)},Ki),{},{value:Or?wn:"",maxLength:_n,readOnly:!Or,unselectable:Or?null:"on",onKeyDown:function(ga){yn(ga),Qi&&Qi(ga)},onMouseDown:function(ga){Jn(ga),Ca&&Ca(ga)},onChange:function(ga){Un(ga),ca&&ca(ga)},onCompositionStart:function(ga){ki(ga),ra&&ra(ga)},onCompositionEnd:function(ga){yi(ga),Ma&&Ma(ga)},onPaste:pi})),qi},B=e.forwardRef(X);B.displayName="Input";var j=B;function W(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function z(Ir,wr){var xn=wr.labelInValue,ur=wr.combobox;if(Ir===void 0||Ir===""&&ur)return[];var Dr=Array.isArray(Ir)?Ir:[Ir];return xn?Dr.map(function(Vr){var sn=Vr.key,Rn=Vr.value;return Rn!==void 0?Rn:sn}):Dr}function V(Ir,wr){var xn=wr.optionLabelProp,ur=wr.labelInValue,Dr=wr.prevValue,Vr=wr.options,sn=wr.getLabeledValue,Rn=Ir;return ur&&(Rn=Rn.map(function(xt){return sn(xt,{options:Vr,prevValue:Dr,labelInValue:ur,optionLabelProp:xn})})),Rn}function Q(Ir,wr){var xn=Object(g.a)(wr),ur;for(ur=Ir.length-1;ur>=0&&Ir[ur].disabled;ur-=1);var Dr=null;return ur!==-1&&(Dr=xn[ur],xn.splice(ur,1)),{values:xn,removedValue:Dr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,re=G,ee=0;function ue(){var Ir;return re?(Ir=ee,ee+=1):Ir="TEST_OR_SSR",Ir}function $(Ir,wr){re?e.useLayoutEffect(Ir,wr):e.useEffect(Ir,wr)}var be="__RC_SELECT_MAX_REST_COUNT__",_e=function(wr){var xn=wr.id,ur=wr.prefixCls,Dr=wr.values,Vr=wr.open,sn=wr.searchValue,Rn=wr.inputRef,xt=wr.placeholder,_r=wr.disabled,Or=wr.mode,en=wr.showSearch,wn=wr.autoFocus,_n=wr.autoComplete,yn=wr.accessibilityIndex,Jn=wr.tabIndex,Un=wr.removeIcon,pi=wr.choiceTransitionName,ki=wr.maxTagCount,yi=wr.maxTagTextLength,_i=wr.maxTagPlaceholder,Ki=_i===void 0?function(to){return"+ ".concat(to.length," ...")}:_i,qi=wr.tagRender,zi=wr.onSelect,Hi=wr.onInputChange,Ui=wr.onInputPaste,Qi=wr.onInputKeyDown,ca=wr.onInputMouseDown,Ca=wr.onInputCompositionStart,ra=wr.onInputCompositionEnd,Ma=Object(e.useState)(!1),La=Object(b.a)(Ma,2),va=La[0],ga=La[1],Oa=e.useRef(null),Aa=Object(e.useState)(0),Ga=Object(b.a)(Aa,2),_a=Ga[0],Va=Ga[1],Bi=Object(e.useState)(!1),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Vr||Or==="tags"?sn:"",To=Or==="tags"||en&&(Vr||oo);$(function(){Va(Oa.current.scrollWidth)},[mo]);var ao=Dr,So;typeof ki=="number"&&(So=Dr.length-ki,ao=Dr.slice(0,ki)),typeof yi=="number"&&(ao=ao.map(function(to){var Jo=to.label,Uo=Object(C.a)(to,["label"]),wo=Jo;if(typeof Jo=="string"||typeof Jo=="number"){var ts=String(wo);ts.length>yi&&(wo="".concat(ts.slice(0,yi),"..."))}return Object(S.a)(Object(S.a)({},Uo),{},{label:wo})})),So>0&&ao.push({key:be,label:typeof Ki=="function"?Ki(Dr.slice(ki)):Ki});var bo=e.createElement(R.a,{component:!1,keys:ao,motionName:pi,motionAppear:va},function(to){var Jo=to.key,Uo=to.label,wo=to.value,ts=to.disabled,Ia=to.className,Oo=to.style,Io=Jo||wo,os=!_r&&Jo!==be&&!ts,xo=function(_o){_o.preventDefault(),_o.stopPropagation()},rs=function(_o){_o&&_o.stopPropagation(),zi(wo,{selected:!1})};return typeof qi=="function"?e.createElement("span",{key:Io,onMouseDown:xo,className:Ia,style:Oo},qi({label:Uo,value:wo,disabled:ts,closable:os,onClose:rs})):e.createElement("span",{key:Io,className:w()(Ia,"".concat(ur,"-selection-item"),Object(E.a)({},"".concat(ur,"-selection-item-disabled"),ts)),style:Oo},e.createElement("span",{className:"".concat(ur,"-selection-item-content")},Uo),os&&e.createElement(F,{className:"".concat(ur,"-selection-item-remove"),onMouseDown:xo,onClick:rs,customizeIcon:Un},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(ur,"-selection-search"),style:{width:_a},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},e.createElement(j,{ref:Rn,open:Vr,prefixCls:ur,id:xn,inputElement:null,disabled:_r,autoFocus:wn,autoComplete:_n,editable:To,accessibilityIndex:yn,value:mo,onKeyDown:Qi,onMouseDown:ca,onChange:Hi,onPaste:Ui,onCompositionStart:Ca,onCompositionEnd:ra,tabIndex:Jn,attrs:Object(I.a)(wr,!0)}),e.createElement("span",{ref:Oa,className:"".concat(ur,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!Dr.length&&!mo&&e.createElement("span",{className:"".concat(ur,"-selection-placeholder")},xt))},Ee=_e,Xe=function(wr){var xn=wr.inputElement,ur=wr.prefixCls,Dr=wr.id,Vr=wr.inputRef,sn=wr.disabled,Rn=wr.autoFocus,xt=wr.autoComplete,_r=wr.accessibilityIndex,Or=wr.mode,en=wr.open,wn=wr.values,_n=wr.placeholder,yn=wr.tabIndex,Jn=wr.showSearch,Un=wr.searchValue,pi=wr.activeValue,ki=wr.maxLength,yi=wr.onInputKeyDown,_i=wr.onInputMouseDown,Ki=wr.onInputChange,qi=wr.onInputPaste,zi=wr.onInputCompositionStart,Hi=wr.onInputCompositionEnd,Ui=e.useState(!1),Qi=Object(b.a)(Ui,2),ca=Qi[0],Ca=Qi[1],ra=Or==="combobox",Ma=ra||Jn,La=wn[0],va=Un||"";ra&&pi&&!ca&&(va=pi),e.useEffect(function(){ra&&Ca(!1)},[ra,pi]);var ga=Or!=="combobox"&&!en?!1:!!va,Oa=La&&(typeof La.label=="string"||typeof La.label=="number")?La.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(ur,"-selection-search")},e.createElement(j,{ref:Vr,prefixCls:ur,id:Dr,open:en,inputElement:xn,disabled:sn,autoFocus:Rn,autoComplete:xt,editable:Ma,accessibilityIndex:_r,value:va,onKeyDown:yi,onMouseDown:_i,onChange:function(Ga){Ca(!0),Ki(Ga)},onPaste:qi,onCompositionStart:zi,onCompositionEnd:Hi,tabIndex:yn,attrs:Object(I.a)(wr,!0),maxLength:ra?ki:void 0})),!ra&&La&&!ga&&e.createElement("span",{className:"".concat(ur,"-selection-item"),title:Oa},La.label),!La&&!ga&&e.createElement("span",{className:"".concat(ur,"-selection-placeholder")},_n))},He=Xe;function nt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,wr=e.useRef(null),xn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(xn.current)}},[]);function ur(Dr){(Dr||wr.current===null)&&(wr.current=Dr),window.clearTimeout(xn.current),xn.current=window.setTimeout(function(){wr.current=null},Ir)}return[function(){return wr.current},ur]}var Ie=function(wr,xn){var ur=Object(e.useRef)(null),Dr=Object(e.useRef)(!1),Vr=wr.prefixCls,sn=wr.multiple,Rn=wr.open,xt=wr.mode,_r=wr.showSearch,Or=wr.tokenWithEnter,en=wr.onSearch,wn=wr.onSearchSubmit,_n=wr.onToggleOpen,yn=wr.onInputKeyDown,Jn=wr.domRef;e.useImperativeHandle(xn,function(){return{focus:function(){ur.current.focus()},blur:function(){ur.current.blur()}}});var Un=nt(0),pi=Object(b.a)(Un,2),ki=pi[0],yi=pi[1],_i=function(ga){var Oa=ga.which;(Oa===_.a.UP||Oa===_.a.DOWN)&&ga.preventDefault(),yn&&yn(ga),Oa===_.a.ENTER&&xt==="tags"&&!Dr.current&&!Rn&&wn(ga.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(Oa)||_n(!0)},Ki=function(){yi(!0)},qi=Object(e.useRef)(null),zi=function(ga){en(ga,!0,Dr.current)!==!1&&_n(!0)},Hi=function(){Dr.current=!0},Ui=function(){Dr.current=!1},Qi=function(ga){var Oa=ga.target.value;if(Or&&qi.current&&/[\r\n]/.test(qi.current)){var Aa=qi.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oa=Oa.replace(Aa,qi.current)}qi.current=null,zi(Oa)},ca=function(ga){var Oa=ga.clipboardData,Aa=Oa.getData("text");qi.current=Aa},Ca=function(ga){var Oa=ga.target;if(Oa!==ur.current){var Aa=document.body.style.msTouchAction!==void 0;Aa?setTimeout(function(){ur.current.focus()}):ur.current.focus()}},ra=function(ga){var Oa=ki();ga.target!==ur.current&&!Oa&&ga.preventDefault(),(xt!=="combobox"&&(!_r||!Oa)||!Rn)&&(Rn&&en("",!0,!1),_n())},Ma={inputRef:ur,onInputKeyDown:_i,onInputMouseDown:Ki,onInputChange:Qi,onInputPaste:ca,onInputCompositionStart:Hi,onInputCompositionEnd:Ui},La=sn?e.createElement(Ee,Object.assign({},wr,Ma)):e.createElement(He,Object.assign({},wr,Ma));return e.createElement("div",{ref:Jn,className:"".concat(Vr,"-selector"),onClick:Ca,onMouseDown:ra},La)},oe=e.forwardRef(Ie);oe.displayName="Selector";var ot=oe,he=n("uciX"),J=function(wr){var xn=typeof wr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xn,adjustY:1}}}},Y=function(wr,xn){var ur=wr.prefixCls,Dr=wr.disabled,Vr=wr.visible,sn=wr.children,Rn=wr.popupElement,xt=wr.containerWidth,_r=wr.animation,Or=wr.transitionName,en=wr.dropdownStyle,wn=wr.dropdownClassName,_n=wr.direction,yn=_n===void 0?"ltr":_n,Jn=wr.dropdownMatchSelectWidth,Un=Jn===void 0?!0:Jn,pi=wr.dropdownRender,ki=wr.dropdownAlign,yi=wr.getPopupContainer,_i=wr.empty,Ki=wr.getTriggerDOMNode,qi=Object(C.a)(wr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),zi="".concat(ur,"-dropdown"),Hi=Rn;pi&&(Hi=pi(Rn));var Ui=e.useMemo(function(){return J(Un)},[Un]),Qi=_r?"".concat(zi,"-").concat(_r):Or,ca=e.useRef(null);e.useImperativeHandle(xn,function(){return{getPopupElement:function(){return ca.current}}});var Ca=Object(S.a)({minWidth:xt},en);return typeof Un=="number"?Ca.width=Un:Un&&(Ca.width=xt),e.createElement(he.a,Object.assign({},qi,{showAction:[],hideAction:[],popupPlacement:yn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Ui,prefixCls:zi,popupTransitionName:Qi,popup:e.createElement("div",{ref:ca},Hi),popupAlign:ki,popupVisible:Vr,getPopupContainer:yi,popupClassName:w()(wn,Object(E.a)({},"".concat(zi,"-empty"),_i)),popupStyle:Ca,getTriggerDOMNode:Ki}),sn)},q=e.forwardRef(Y);q.displayName="SelectTrigger";var fe=q,we="RC_SELECT_INTERNAL_PROPS_MARK";function Ne(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,wr=e.useState(!1),xn=Object(b.a)(wr,2),ur=xn[0],Dr=xn[1],Vr=e.useRef(null),sn=function(){window.clearTimeout(Vr.current)};e.useEffect(function(){return sn},[]);var Rn=function(_r,Or){sn(),Vr.current=window.setTimeout(function(){Dr(_r),Or&&Or()},Ir)};return[ur,Rn,sn]}var je=n("T5bk"),me=n("Kwbf");function Ce(Ir,wr){var xn=Ir.key,ur;return"value"in Ir&&(ur=Ir.value),xn!=null?xn:ur!==void 0?ur:"rc-index-key-".concat(wr)}function Fe(Ir){var wr=[];function xn(ur,Dr){ur.forEach(function(Vr){Dr||!("options"in Vr)?wr.push({key:Ce(Vr,wr.length),groupOption:Dr,data:Vr}):(wr.push({key:Ce(Vr,wr.length),group:!0,data:Vr}),xn(Vr.options,!0))})}return xn(Ir,!1),wr}function it(Ir){var wr=Object(S.a)({},Ir);return"props"in wr||Object.defineProperty(wr,"props",{get:function(){return Object(me.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),wr}}),wr}function Ct(Ir,wr){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ur=xn.prevValueOptions,Dr=ur===void 0?[]:ur,Vr=new Map;return wr.forEach(function(sn){if(!sn.group){var Rn=sn.data;Vr.set(Rn.value,Rn)}}),Ir.map(function(sn){var Rn=Vr.get(sn);return Rn||(Rn=Object(S.a)({},Dr.find(function(xt){return xt._INTERNAL_OPTION_VALUE_===sn}))),it(Rn)})}var mt=function(wr,xn){var ur=xn.options,Dr=xn.prevValue,Vr=xn.labelInValue,sn=xn.optionLabelProp,Rn=Ct([wr],ur)[0],xt={value:wr},_r,Or=W(Dr);return Vr&&(_r=Or.find(function(en){return Object(v.a)(en)==="object"&&"value"in en?en.value===wr:en.key===wr})),_r&&Object(v.a)(_r)==="object"&&"label"in _r?(xt.label=_r.label,Rn&&typeof _r.label=="string"&&typeof Rn[sn]=="string"&&_r.label.trim()!==Rn[sn].trim()&&Object(me.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Rn&&sn in Rn?xt.label=Rn[sn]:xt.label=wr,xt.key=xt.value,xt};function Ve(Ir){return W(Ir).join("")}function or(Ir){return function(wr,xn){var ur=wr.toLowerCase();if("options"in xn)return Ve(xn.label).toLowerCase().includes(ur);var Dr=xn[Ir],Vr=Ve(Dr).toLowerCase();return Vr.includes(ur)}}function dt(Ir,wr,xn){var ur=xn.optionFilterProp,Dr=xn.filterOption,Vr=[],sn;return Dr===!1?Object(g.a)(wr):(typeof Dr=="function"?sn=Dr:sn=or(ur),wr.forEach(function(Rn){if("options"in Rn){var xt=sn(Ir,Rn);if(xt)Vr.push(Rn);else{var _r=Rn.options.filter(function(Or){return sn(Ir,Or)});_r.length&&Vr.push(Object(S.a)(Object(S.a)({},Rn),{},{options:_r}))}return}sn(Ir,it(Rn))&&Vr.push(Rn)}),Vr)}function Yt(Ir,wr){if(!wr||!wr.length)return null;var xn=!1;function ur(Vr,sn){var Rn=Object(je.a)(sn),xt=Rn[0],_r=Rn.slice(1);if(!xt)return[Vr];var Or=Vr.split(xt);return xn=xn||Or.length>1,Or.reduce(function(en,wn){return[].concat(Object(g.a)(en),Object(g.a)(ur(wn,_r)))},[]).filter(function(en){return en})}var Dr=ur(Ir,wr);return xn?Dr:null}function hr(Ir,wr){var xn=Ct([Ir],wr)[0];return xn.disabled}function Gt(Ir,wr,xn,ur){var Dr=W(wr).slice().sort(),Vr=Object(g.a)(Ir),sn=new Set;return Ir.forEach(function(Rn){Rn.options?Rn.options.forEach(function(xt){sn.add(xt.value)}):sn.add(Rn.value)}),Dr.forEach(function(Rn){var xt=ur?Rn.value:Rn;if(!sn.has(xt)){var _r;Vr.push(ur?(_r={},Object(E.a)(_r,xn,Rn.label),Object(E.a)(_r,"value",xt),_r):{value:xt})}}),Vr}function Pt(Ir,wr,xn){var ur=e.useRef(null);ur.current={elements:Ir.filter(function(Dr){return Dr}),open:wr,triggerOpen:xn},e.useEffect(function(){function Dr(Vr){var sn=Vr.target;ur.current.open&&ur.current.elements.every(function(Rn){return!Rn.contains(sn)&&Rn!==sn})&&ur.current.triggerOpen(!1)}return window.addEventListener("mousedown",Dr),function(){return window.removeEventListener("mousedown",Dr)}},[])}function Xt(Ir){var wr=e.useRef(Ir),xn=e.useMemo(function(){var ur=new Map;wr.current.forEach(function(Vr){var sn=Vr.value,Rn=Vr.label;sn!==Rn&&ur.set(sn,Rn)});var Dr=Ir.map(function(Vr){var sn=ur.get(Vr.value);return Vr.value===Vr.label&&sn?Object(S.a)(Object(S.a)({},Vr),{},{label:sn}):Vr});return wr.current=Dr,Dr},[Ir]);return xn}function Ge(Ir,wr){var xn=e.useRef(null),ur=e.useMemo(function(){var Vr=new Map;return wr.forEach(function(sn){var Rn=sn.data.value;Vr.set(Rn,sn)}),Vr},[Ir,wr]);xn.current=ur;var Dr=function(sn){return sn.map(function(Rn){return xn.current.get(Rn)}).filter(Boolean)};return Dr}var pe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function se(Ir){var wr=Ir.prefixCls,xn=Ir.components.optionList,ur=Ir.convertChildrenToData,Dr=Ir.flattenOptions,Vr=Ir.getLabeledValue,sn=Ir.filterOptions,Rn=Ir.isValueDisabled,xt=Ir.findValueOption,_r=Ir.warningProps,Or=Ir.fillOptionsWithMissingValue,en=Ir.omitDOMProps;function wn(yn,Jn){var Un,pi=yn.prefixCls,ki=pi===void 0?wr:pi,yi=yn.className,_i=yn.id,Ki=yn.open,qi=yn.defaultOpen,zi=yn.options,Hi=yn.children,Ui=yn.mode,Qi=yn.value,ca=yn.defaultValue,Ca=yn.labelInValue,ra=yn.showSearch,Ma=yn.inputValue,La=yn.searchValue,va=yn.filterOption,ga=yn.filterSort,Oa=yn.optionFilterProp,Aa=Oa===void 0?"value":Oa,Ga=yn.autoClearSearchValue,_a=Ga===void 0?!0:Ga,Va=yn.onSearch,Bi=yn.allowClear,io=yn.clearIcon,oo=yn.showArrow,Qo=yn.inputIcon,mo=yn.menuItemSelectedIcon,To=yn.disabled,ao=yn.loading,So=yn.defaultActiveFirstOption,bo=yn.notFoundContent,to=bo===void 0?"Not Found":bo,Jo=yn.optionLabelProp,Uo=yn.backfill,wo=yn.getInputElement,ts=yn.getPopupContainer,Ia=yn.listHeight,Oo=Ia===void 0?200:Ia,Io=yn.listItemHeight,os=Io===void 0?20:Io,xo=yn.animation,rs=yn.transitionName,Ho=yn.virtual,_o=yn.dropdownStyle,uo=yn.dropdownClassName,Ha=yn.dropdownMatchSelectWidth,ht=yn.dropdownRender,Er=yn.dropdownAlign,Zr=yn.showAction,Xr=Zr===void 0?[]:Zr,Xn=yn.direction,un=yn.tokenSeparators,Gr=yn.tagRender,ri=yn.onPopupScroll,rn=yn.onDropdownVisibleChange,jn=yn.onFocus,oi=yn.onBlur,li=yn.onKeyUp,ai=yn.onKeyDown,Ei=yn.onMouseDown,mi=yn.onChange,Ai=yn.onSelect,Ii=yn.onDeselect,na=yn.onClear,ji=yn.internalProps,fa=ji===void 0?{}:ji,Xa=Object(C.a)(yn,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),xa=fa.mark===we,wa=en?en(Xa):Xa;pe.forEach(function(jo){delete wa[jo]});var Da=Object(e.useRef)(null),ja=Object(e.useRef)(null),ko=Object(e.useRef)(null),ro=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(un||[]).some(function(jo){return[`
`,`\r
`].includes(jo)})},[un]),Ea=Ne(),Fa=Object(b.a)(Ea,3),Ka=Fa[0],lo=Fa[1],so=Fa[2],Co=Object(e.useState)(),Lo=Object(b.a)(Co,2),is=Lo[0],cs=Lo[1];Object(e.useEffect)(function(){cs("rc_select_".concat(ue()))},[]);var Rs=_i||is,Ko=Jo;Ko===void 0&&(Ko=zi?"label":"children");var as=Ui==="combobox"?!1:Ca,co=Ui==="tags"||Ui==="multiple",Ao=ra!==void 0?ra:co||Ui==="combobox",$a=Object(e.useRef)(null);e.useImperativeHandle(Jn,function(){return{focus:ko.current.focus,blur:ko.current.blur}});var ss=Object(O.a)(ca,{value:Qi}),Cs=Object(b.a)(ss,2),Fo=Cs[0],il=Cs[1],Eo=Object(e.useMemo)(function(){return z(Fo,{labelInValue:as,combobox:Ui==="combobox"})},[Fo,as]),zo=Object(e.useMemo)(function(){return new Set(Eo)},[Eo]),Bs=Object(e.useState)(null),ms=Object(b.a)(Bs,2),hs=ms[0],An=ms[1],Ns=Object(e.useState)(""),Ll=Object(b.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=el;Ui==="combobox"&&Fo!==void 0?ds=Fo:La!==void 0?ds=La:Ma&&(ds=Ma);var ks=Object(e.useMemo)(function(){var jo=zi;return jo===void 0&&(jo=ur(Hi)),Ui==="tags"&&Or&&(jo=Or(jo,Fo,Ko,Ca)),jo||[]},[zi,Hi,Ui,Fo]),Qs=Object(e.useMemo)(function(){return Dr(ks,yn)},[ks]),tl=Ge(Eo,Qs),xs=Object(e.useMemo)(function(){if(!ds||!Ao)return Object(g.a)(ks);var jo=sn(ds,ks,{optionFilterProp:Aa,filterOption:Ui==="combobox"&&va===void 0?function(){return!0}:va});return Ui==="tags"&&jo.every(function(yo){return yo[Aa]!==ds})&&jo.unshift({value:ds,label:ds,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ga&&Array.isArray(jo)?Object(g.a)(jo).sort(ga):jo},[ks,ds,Ui,Ao,ga]),Us=Object(e.useMemo)(function(){return Dr(xs,yn)},[xs]);Object(e.useEffect)(function(){ro.current&&ro.current.scrollTo&&ro.current.scrollTo(0)},[ds]);var al=Object(e.useMemo)(function(){var jo=Eo.map(function(yo){var qo=tl([yo]),ps=Vr(yo,{options:qo,prevValue:Fo,labelInValue:as,optionLabelProp:Ko});return Object(S.a)(Object(S.a)({},ps),{},{disabled:Rn(yo,qo)})});return!Ui&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[Fo,ks,Ui]);al=Xt(al);var Js=function(yo,qo,ps){var Os=tl([yo]),es=xt([yo],Os)[0];if(!fa.skipTriggerSelect){var Is=as?Vr(yo,{options:Os,prevValue:Fo,labelInValue:as,optionLabelProp:Ko}):yo;qo&&Ai?Ai(Is,es):!qo&&Ii&&Ii(Is,es)}xa&&(qo&&fa.onRawSelect?fa.onRawSelect(yo,es,ps):!qo&&fa.onRawDeselect&&fa.onRawDeselect(yo,es,ps))},Vo=Object(e.useState)([]),No=Object(b.a)(Vo,2),fs=No[0],Ds=No[1],go=function(yo){if(xa&&fa.skipTriggerChange)return;var qo=tl(yo),ps=V(Array.from(yo),{labelInValue:as,options:qo,getLabeledValue:Vr,prevValue:Fo,optionLabelProp:Ko}),Os=co?ps:ps[0];if(mi&&(Eo.length!==0||ps.length!==0)){var es=xt(yo,qo,{prevValueOptions:fs});Ds(es.map(function(Is,Ps){var ml=Object(S.a)({},Is);return Object.defineProperty(ml,"_INTERNAL_OPTION_VALUE_",{get:function(){return yo[Ps]}}),ml})),mi(Os,co?es:es[0])}il(Os)},Ft=function(yo,qo){var ps=qo.selected,Os=qo.source;if(To)return;var es;co?(es=new Set(Eo),ps?es.add(yo):es.delete(yo)):(es=new Set,es.add(yo)),(co||!co&&Array.from(Eo)[0]!==yo)&&go(Array.from(es)),Js(yo,!co||ps,Os),Ui==="combobox"?(Gs(String(yo)),An("")):(!co||_a)&&(Gs(""),An(""))},nr=function(yo,qo){Ft(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"option"}))},On=function(yo,qo){Ft(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"selection"}))},di=Ui==="combobox"&&wo&&wo()||null,It=Object(O.a)(void 0,{defaultValue:qi,value:Ki}),ce=Object(b.a)(It,2),Se=ce[0],Le=ce[1],Qe=Se,Lt=!to&&!xs.length;(To||Lt&&Qe&&Ui==="combobox")&&(Qe=!1);var ir=Lt?!1:Qe,Yr=function(yo){var qo=yo!==void 0?yo:!Qe;Se!==qo&&!To&&(Le(qo),rn&&rn(qo))};Pt([Da.current,ja.current&&ja.current.getPopupElement()],ir,Yr);var hn=function(yo,qo,ps){var Os=!0,es=yo;An(null);var Is=ps?null:Yt(yo,un),Ps=Is;if(Ui==="combobox")qo&&go([es]);else if(Is){es="",Ui!=="tags"&&(Ps=Is.map(function(Rl){var _l=Qs.find(function(Bl){var jl=Bl.data;return jl[Ko]===Rl});return _l?_l.data.value:null}).filter(function(Rl){return Rl!==null}));var ml=Array.from(new Set([].concat(Object(g.a)(Eo),Object(g.a)(Ps))));go(ml),ml.forEach(function(Rl){Js(Rl,!0,"input")}),Yr(!1),Os=!1}return Gs(es),Va&&ds!==es&&Va(es),Os},In=function(yo){var qo=Array.from(new Set([].concat(Object(g.a)(Eo),[yo])));go(qo),qo.forEach(function(ps){Js(ps,!0,"input")}),Gs("")};Object(e.useEffect)(function(){Se&&!!To&&Le(!1)},[To]),Object(e.useEffect)(function(){!Qe&&!co&&Ui!=="combobox"&&hn("",!1,!1)},[Qe]);var si=nt(),wi=Object(b.a)(si,2),gi=wi[0],Gi=wi[1],sa=function(yo){var qo=gi(),ps=yo.which;if(!Qe&&ps===_.a.ENTER&&Yr(!0),Gi(!!ds),ps===_.a.BACKSPACE&&!qo&&co&&!ds&&Eo.length){var Os=Q(al,Eo);Os.removedValue!==null&&(go(Os.values),Js(Os.removedValue,!1,"input"))}for(var es=arguments.length,Is=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Is[Ps-1]=arguments[Ps];if(Qe&&ro.current){var ml;(ml=ro.current).onKeyDown.apply(ml,[yo].concat(Is))}ai&&ai.apply(void 0,[yo].concat(Is))},Ua=function(yo){for(var qo=arguments.length,ps=new Array(qo>1?qo-1:0),Os=1;Os<qo;Os++)ps[Os-1]=arguments[Os];if(Qe&&ro.current){var es;(es=ro.current).onKeyUp.apply(es,[yo].concat(ps))}li&&li.apply(void 0,[yo].concat(ps))},no=Object(e.useRef)(!1),Wo=function(){lo(!0),To||(jn&&!no.current&&jn.apply(void 0,arguments),Xr.includes("focus")&&Yr(!0)),no.current=!0},Zo=function(){if(lo(!1,function(){no.current=!1,Yr(!1)}),To)return;ds&&(Ui==="tags"?(hn("",!1,!1),go(Array.from(new Set([].concat(Object(g.a)(Eo),[ds]))))):Ui==="multiple"&&Gs("")),oi&&oi.apply(void 0,arguments)},Bo=[];Object(e.useEffect)(function(){return function(){Bo.forEach(function(jo){return clearTimeout(jo)}),Bo.splice(0,Bo.length)}},[]);var Es=function(yo){var qo=yo.target,ps=ja.current&&ja.current.getPopupElement();if(ps&&ps.contains(qo)){var Os=setTimeout(function(){var ml=Bo.indexOf(Os);ml!==-1&&Bo.splice(ml,1),so(),ps.contains(document.activeElement)||ko.current.focus()});Bo.push(Os)}if(Ei){for(var es=arguments.length,Is=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Is[Ps-1]=arguments[Ps];Ei.apply(void 0,[yo].concat(Is))}},As=Object(e.useState)(0),$o=Object(b.a)(As,2),Do=$o[0],vo=$o[1],Ms=So!==void 0?So:Ui!=="combobox",rl=function(yo,qo){var ps=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Os=ps.source,es=Os===void 0?"keyboard":Os;vo(qo),Uo&&Ui==="combobox"&&yo!==null&&es==="keyboard"&&An(String(yo))},gs=Object(e.useState)(null),Ra=Object(b.a)(gs,2),dl=Ra[0],fl=Ra[1],js=Object(e.useState)({}),_s=Object(b.a)(js,2),Xs=_s[1];function Ql(){Xs({})}$(function(){if(ir){var jo=Math.ceil(Da.current.offsetWidth);dl!==jo&&fl(jo)}},[ir]);var Ul=e.createElement(xn,{ref:ro,prefixCls:ki,id:Rs,open:Qe,childrenAsData:!zi,options:xs,flattenOptions:Us,multiple:co,values:zo,height:Oo,itemHeight:os,onSelect:nr,onToggleOpen:Yr,onActiveValue:rl,defaultActiveFirstOption:Ms,notFoundContent:to,onScroll:ri,searchValue:ds,menuItemSelectedIcon:mo,virtual:Ho!==!1&&Ha!==!1,onMouseEnter:Ql}),wl,Ts=function(){xa&&fa.onClear&&fa.onClear(),na&&na(),go([]),hn("",!1,!1)};!To&&Bi&&(Eo.length||ds)&&(wl=e.createElement(F,{className:"".concat(ki,"-clear"),onMouseDown:Ts,customizeIcon:io},"\xD7"));var Ks=oo!==void 0?oo:ao||!co&&Ui!=="combobox",Tl;Ks&&(Tl=e.createElement(F,{className:w()("".concat(ki,"-arrow"),Object(E.a)({},"".concat(ki,"-arrow-loading"),ao)),customizeIcon:Qo,customizeIconProps:{loading:ao,searchValue:ds,open:Qe,focused:Ka,showSearch:Ao}}));var pl=w()(ki,yi,(Un={},Object(E.a)(Un,"".concat(ki,"-focused"),Ka),Object(E.a)(Un,"".concat(ki,"-multiple"),co),Object(E.a)(Un,"".concat(ki,"-single"),!co),Object(E.a)(Un,"".concat(ki,"-allow-clear"),Bi),Object(E.a)(Un,"".concat(ki,"-show-arrow"),Ks),Object(E.a)(Un,"".concat(ki,"-disabled"),To),Object(E.a)(Un,"".concat(ki,"-loading"),ao),Object(E.a)(Un,"".concat(ki,"-open"),Qe),Object(E.a)(Un,"".concat(ki,"-customize-input"),di),Object(E.a)(Un,"".concat(ki,"-show-search"),Ao),Un));return e.createElement("div",Object.assign({className:pl},wa,{ref:Da,onMouseDown:Es,onKeyDown:sa,onKeyUp:Ua,onFocus:Wo,onBlur:Zo}),Ka&&!Qe&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Eo.join(", "))),e.createElement(fe,{ref:ja,disabled:To,prefixCls:ki,visible:ir,popupElement:Ul,containerWidth:dl,animation:xo,transitionName:rs,dropdownStyle:_o,dropdownClassName:uo,direction:Xn,dropdownMatchSelectWidth:Ha,dropdownRender:ht,dropdownAlign:Er,getPopupContainer:ts,empty:!ks.length,getTriggerDOMNode:function(){return $a.current}},e.createElement(ot,Object.assign({},yn,{domRef:$a,prefixCls:ki,inputElement:di,ref:ko,id:Rs,showSearch:Ao,mode:Ui,accessibilityIndex:Do,multiple:co,tagRender:Gr,values:al,open:Qe,onToggleOpen:Yr,searchValue:ds,activeValue:hs,onSearch:hn,onSearchSubmit:In,onSelect:On,tokenWithEnter:pa}))),Tl,wl)}var _n=e.forwardRef(wn);return _n}var lt=n("Zm9Q"),Ze=n("JX7q"),de=e.createContext(null),_t=function(wr){var xn=wr.prefixCls,ur=wr.level,Dr=wr.isStart,Vr=wr.isEnd;if(!ur)return null;for(var sn="".concat(xn,"-indent-unit"),Rn=[],xt=0;xt<ur;xt+=1){var _r;Rn.push(e.createElement("span",{key:xt,className:w()(sn,(_r={},Object(E.a)(_r,"".concat(sn,"-start"),Dr[xt]),Object(E.a)(_r,"".concat(sn,"-end"),Vr[xt]),_r))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(xn,"-indent")},Rn)},er=_t,yt="open",Ar="close",Sr="---",Cn=function(Ir){Object(c.a)(xn,Ir);var wr=Object(d.a)(xn);function xn(){var ur;return Object(r.a)(this,xn),ur=wr.apply(this,arguments),ur.state={dragNodeHighlight:!1},ur.onSelectorClick=function(Dr){var Vr=ur.props.context.onNodeClick;Vr(Dr,jt(ur.props)),ur.isSelectable()?ur.onSelect(Dr):ur.onCheck(Dr)},ur.onSelectorDoubleClick=function(Dr){var Vr=ur.props.context.onNodeDoubleClick;Vr(Dr,jt(ur.props))},ur.onSelect=function(Dr){if(ur.isDisabled())return;var Vr=ur.props.context.onNodeSelect;Dr.preventDefault(),Vr(Dr,jt(ur.props))},ur.onCheck=function(Dr){if(ur.isDisabled())return;var Vr=ur.props,sn=Vr.disableCheckbox,Rn=Vr.checked,xt=ur.props.context.onNodeCheck;if(!ur.isCheckable()||sn)return;Dr.preventDefault();var _r=!Rn;xt(Dr,jt(ur.props),_r)},ur.onMouseEnter=function(Dr){var Vr=ur.props.context.onNodeMouseEnter;Vr(Dr,jt(ur.props))},ur.onMouseLeave=function(Dr){var Vr=ur.props.context.onNodeMouseLeave;Vr(Dr,jt(ur.props))},ur.onContextMenu=function(Dr){var Vr=ur.props.context.onNodeContextMenu;Vr(Dr,jt(ur.props))},ur.onDragStart=function(Dr){var Vr=ur.props.context.onNodeDragStart;Dr.stopPropagation(),ur.setState({dragNodeHighlight:!0}),Vr(Dr,Object(Ze.a)(ur));try{Dr.dataTransfer.setData("text/plain","")}catch(sn){}},ur.onDragEnter=function(Dr){var Vr=ur.props.context.onNodeDragEnter;Dr.preventDefault(),Dr.stopPropagation(),Vr(Dr,Object(Ze.a)(ur))},ur.onDragOver=function(Dr){var Vr=ur.props.context.onNodeDragOver;Dr.preventDefault(),Dr.stopPropagation(),Vr(Dr,Object(Ze.a)(ur))},ur.onDragLeave=function(Dr){var Vr=ur.props.context.onNodeDragLeave;Dr.stopPropagation(),Vr(Dr,Object(Ze.a)(ur))},ur.onDragEnd=function(Dr){var Vr=ur.props.context.onNodeDragEnd;Dr.stopPropagation(),ur.setState({dragNodeHighlight:!1}),Vr(Dr,Object(Ze.a)(ur))},ur.onDrop=function(Dr){var Vr=ur.props.context.onNodeDrop;Dr.preventDefault(),Dr.stopPropagation(),ur.setState({dragNodeHighlight:!1}),Vr(Dr,Object(Ze.a)(ur))},ur.onExpand=function(Dr){var Vr=ur.props.context.onNodeExpand;Vr(Dr,jt(ur.props))},ur.setSelectHandle=function(Dr){ur.selectHandle=Dr},ur.getNodeState=function(){var Dr=ur.props.expanded;return ur.isLeaf()?null:Dr?yt:Ar},ur.hasChildren=function(){var Dr=ur.props.eventKey,Vr=ur.props.context.keyEntities,sn=Vr[Dr]||{},Rn=sn.children;return!!(Rn||[]).length},ur.isLeaf=function(){var Dr=ur.props,Vr=Dr.isLeaf,sn=Dr.loaded,Rn=ur.props.context.loadData,xt=ur.hasChildren();return Vr===!1?!1:Vr||!Rn&&!xt||Rn&&sn&&!xt},ur.isDisabled=function(){var Dr=ur.props.disabled,Vr=ur.props.context.disabled;return!!(Vr||Dr)},ur.isCheckable=function(){var Dr=ur.props.checkable,Vr=ur.props.context.checkable;return!Vr||Dr===!1?!1:Vr},ur.syncLoadData=function(Dr){var Vr=Dr.expanded,sn=Dr.loading,Rn=Dr.loaded,xt=ur.props.context,_r=xt.loadData,Or=xt.onNodeLoad;if(sn)return;_r&&Vr&&!ur.isLeaf()&&(!ur.hasChildren()&&!Rn&&Or(jt(ur.props)))},ur.renderSwitcher=function(){var Dr=ur.props,Vr=Dr.expanded,sn=Dr.switcherIcon,Rn=ur.props.context,xt=Rn.prefixCls,_r=Rn.switcherIcon,Or=sn||_r;if(ur.isLeaf())return e.createElement("span",{className:w()("".concat(xt,"-switcher"),"".concat(xt,"-switcher-noop"))},typeof Or=="function"?Or(Object(S.a)(Object(S.a)({},ur.props),{},{isLeaf:!0})):Or);var en=w()("".concat(xt,"-switcher"),"".concat(xt,"-switcher_").concat(Vr?yt:Ar));return e.createElement("span",{onClick:ur.onExpand,className:en},typeof Or=="function"?Or(Object(S.a)(Object(S.a)({},ur.props),{},{isLeaf:!1})):Or)},ur.renderCheckbox=function(){var Dr=ur.props,Vr=Dr.checked,sn=Dr.halfChecked,Rn=Dr.disableCheckbox,xt=ur.props.context.prefixCls,_r=ur.isDisabled(),Or=ur.isCheckable();if(!Or)return null;var en=typeof Or!="boolean"?Or:null;return e.createElement("span",{className:w()("".concat(xt,"-checkbox"),Vr&&"".concat(xt,"-checkbox-checked"),!Vr&&sn&&"".concat(xt,"-checkbox-indeterminate"),(_r||Rn)&&"".concat(xt,"-checkbox-disabled")),onClick:ur.onCheck},en)},ur.renderIcon=function(){var Dr=ur.props.loading,Vr=ur.props.context.prefixCls;return e.createElement("span",{className:w()("".concat(Vr,"-iconEle"),"".concat(Vr,"-icon__").concat(ur.getNodeState()||"docu"),Dr&&"".concat(Vr,"-icon_loading"))})},ur.renderSelector=function(){var Dr=ur.state.dragNodeHighlight,Vr=ur.props,sn=Vr.title,Rn=Vr.selected,xt=Vr.icon,_r=Vr.loading,Or=Vr.data,en=ur.props.context,wn=en.prefixCls,_n=en.showIcon,yn=en.icon,Jn=en.draggable,Un=en.loadData,pi=en.titleRender,ki=ur.isDisabled(),yi="".concat(wn,"-node-content-wrapper"),_i;if(_n){var Ki=xt||yn;_i=Ki?e.createElement("span",{className:w()("".concat(wn,"-iconEle"),"".concat(wn,"-icon__customize"))},typeof Ki=="function"?Ki(ur.props):Ki):ur.renderIcon()}else Un&&_r&&(_i=ur.renderIcon());var qi;typeof sn=="function"?qi=sn(Or):pi?qi=pi(Or):qi=sn;var zi=e.createElement("span",{className:"".concat(wn,"-title")},qi);return e.createElement("span",{ref:ur.setSelectHandle,title:typeof sn=="string"?sn:"",className:w()("".concat(yi),"".concat(yi,"-").concat(ur.getNodeState()||"normal"),!ki&&(Rn||Dr)&&"".concat(wn,"-node-selected"),!ki&&Jn&&"draggable"),draggable:!ki&&Jn||void 0,"aria-grabbed":!ki&&Jn||void 0,onMouseEnter:ur.onMouseEnter,onMouseLeave:ur.onMouseLeave,onContextMenu:ur.onContextMenu,onClick:ur.onSelectorClick,onDoubleClick:ur.onSelectorDoubleClick,onDragStart:Jn?ur.onDragStart:void 0},_i,zi)},ur}return Object(s.a)(xn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Dr=this.props.selectable,Vr=this.props.context.selectable;return typeof Dr=="boolean"?Dr:Vr}},{key:"render",value:function(){var Dr,Vr=this.props,sn=Vr.eventKey,Rn=Vr.className,xt=Vr.style,_r=Vr.dragOver,Or=Vr.dragOverGapTop,en=Vr.dragOverGapBottom,wn=Vr.isLeaf,_n=Vr.isStart,yn=Vr.isEnd,Jn=Vr.expanded,Un=Vr.selected,pi=Vr.checked,ki=Vr.halfChecked,yi=Vr.loading,_i=Vr.domRef,Ki=Vr.active,qi=Vr.onMouseMove,zi=Object(C.a)(Vr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Hi=this.props.context,Ui=Hi.prefixCls,Qi=Hi.filterTreeNode,ca=Hi.draggable,Ca=Hi.keyEntities,ra=this.isDisabled(),Ma=Pe(zi),La=Ca[sn]||{},va=La.level,ga=yn[yn.length-1];return e.createElement("div",Object.assign({ref:_i,className:w()(Rn,"".concat(Ui,"-treenode"),(Dr={},Object(E.a)(Dr,"".concat(Ui,"-treenode-disabled"),ra),Object(E.a)(Dr,"".concat(Ui,"-treenode-switcher-").concat(Jn?"open":"close"),!wn),Object(E.a)(Dr,"".concat(Ui,"-treenode-checkbox-checked"),pi),Object(E.a)(Dr,"".concat(Ui,"-treenode-checkbox-indeterminate"),ki),Object(E.a)(Dr,"".concat(Ui,"-treenode-selected"),Un),Object(E.a)(Dr,"".concat(Ui,"-treenode-loading"),yi),Object(E.a)(Dr,"".concat(Ui,"-treenode-active"),Ki),Object(E.a)(Dr,"".concat(Ui,"-treenode-leaf-last"),ga),Object(E.a)(Dr,"drag-over",!ra&&_r),Object(E.a)(Dr,"drag-over-gap-top",!ra&&Or),Object(E.a)(Dr,"drag-over-gap-bottom",!ra&&en),Object(E.a)(Dr,"filter-node",Qi&&Qi(jt(this.props))),Dr)),style:xt,onDragEnter:ca?this.onDragEnter:void 0,onDragOver:ca?this.onDragOver:void 0,onDragLeave:ca?this.onDragLeave:void 0,onDrop:ca?this.onDrop:void 0,onDragEnd:ca?this.onDragEnd:void 0,onMouseMove:qi},Ma),e.createElement(er,{prefixCls:Ui,level:va,isStart:_n,isEnd:yn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),xn}(e.Component),mr=function(wr){return e.createElement(de.Consumer,null,function(xn){return e.createElement(Cn,Object.assign({},wr,{context:xn}))})};mr.displayName="TreeNode",mr.defaultProps={title:Sr},mr.isTreeNode=1;var Pr=mr,gr=.25,Jt=2;function Dt(Ir,wr){var xn=Ir.slice(),ur=xn.indexOf(wr);return ur>=0&&xn.splice(ur,1),xn}function dn(Ir,wr){var xn=Ir.slice();return xn.indexOf(wr)===-1&&xn.push(wr),xn}function Fn(Ir){return Ir.split("-")}function Zn(Ir,wr){return"".concat(Ir,"-").concat(wr)}function ci(Ir){return Ir&&Ir.type&&Ir.type.isTreeNode}function Xi(Ir,wr){var xn=[Ir],ur=wr[Ir];function Dr(){var Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Vr.forEach(function(sn){var Rn=sn.key,xt=sn.children;xn.push(Rn),Dr(xt)})}return Dr(ur.children),xn}function Gn(Ir,wr){var xn=Ir.clientY,ur=wr.selectHandle.getBoundingClientRect(),Dr=ur.top,Vr=ur.bottom,sn=ur.height,Rn=Math.max(sn*gr,Jt);return xn<=Dr+Rn?-1:xn>=Vr-Rn?1:0}function ei(Ir,wr){if(!Ir)return;var xn=wr.multiple;return xn?Ir.slice():Ir.length?[Ir[0]]:Ir}var Zt=function(wr){return wr};function Nt(Ir,wr){if(!Ir)return[];var xn=wr||{},ur=xn.processProps,Dr=ur===void 0?Zt:ur,Vr=Array.isArray(Ir)?Ir:[Ir];return Vr.map(function(sn){var Rn=sn.children,xt=Object(C.a)(sn,["children"]),_r=Nt(Rn,wr);return l.a.createElement(Pr,Object.assign({},Dr(xt)),_r)})}function Me(Ir){if(!Ir)return null;var wr;if(Array.isArray(Ir))wr={checkedKeys:Ir,halfCheckedKeys:void 0};else if(Object(v.a)(Ir)==="object")wr={checkedKeys:Ir.checked||void 0,halfCheckedKeys:Ir.halfChecked||void 0};else return Object(me.a)(!1,"`checkedKeys` is not an array or an object"),null;return wr}function ke(Ir,wr){var xn=new Set;function ur(Dr){if(xn.has(Dr))return;var Vr=wr[Dr];if(!Vr)return;xn.add(Dr);var sn=Vr.parent,Rn=Vr.node;if(Rn.disabled)return;sn&&ur(sn.key)}return(Ir||[]).forEach(function(Dr){ur(Dr)}),Object(g.a)(xn)}function Pe(Ir){var wr={};return Object.keys(Ir).forEach(function(xn){(xn.startsWith("data-")||xn.startsWith("aria-"))&&(wr[xn]=Ir[xn])}),wr}function tt(Ir,wr){return Ir!=null?Ir:wr}function vt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wr=new Map;function xn(ur){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ur||[]).forEach(function(Vr){var sn=Vr.key,Rn=Vr.children;Object(me.a)(sn!=null,"Tree node must have a certain key: [".concat(Dr).concat(sn,"]"));var xt=String(sn);Object(me.a)(!wr.has(xt)||sn===null||sn===void 0,"Same 'key' exist in the Tree: ".concat(xt)),wr.set(xt,!0),xn(Rn,"".concat(Dr).concat(xt," > "))})}xn(Ir)}function St(Ir){function wr(xn){var ur=Object(lt.a)(xn);return ur.map(function(Dr){if(!ci(Dr))return Object(me.a)(!Dr,"Tree/TreeNode can only accept TreeNode as children."),null;var Vr=Dr.key,sn=Dr.props,Rn=sn.children,xt=Object(C.a)(sn,["children"]),_r=Object(S.a)({key:Vr},xt),Or=wr(Rn);return Or.length&&(_r.children=Or),_r}).filter(function(Dr){return Dr})}return wr(Ir)}function Vt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xn=new Set(wr===!0?[]:wr),ur=[];function Dr(Vr){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Vr.map(function(Rn,xt){var _r=Zn(sn?sn.pos:"0",xt),Or=tt(Rn.key,_r),en=Object(S.a)(Object(S.a)({},Rn),{},{parent:sn,pos:_r,children:null,data:Rn,isStart:[].concat(Object(g.a)(sn?sn.isStart:[]),[xt===0]),isEnd:[].concat(Object(g.a)(sn?sn.isEnd:[]),[xt===Vr.length-1])});return ur.push(en),wr===!0||xn.has(Or)?en.children=Dr(Rn.children||[],en):en.children=[],en})}return Dr(Ir),ur}function Mr(Ir,wr,xn){var ur;xn?typeof xn=="string"?ur=function(sn){return sn[xn]}:typeof xn=="function"&&(ur=function(sn){return xn(sn)}):ur=function(sn,Rn){return tt(sn.key,Rn)};function Dr(Vr,sn,Rn){var xt=Vr?Vr.children:Ir,_r=Vr?Zn(Rn.pos,sn):"0";if(Vr){var Or=ur(Vr,_r),en={node:Vr,index:sn,pos:_r,key:Or,parentPos:Rn.node?Rn.pos:null,level:Rn.level+1};wr(en)}xt&&xt.forEach(function(wn,_n){Dr(wn,_n,{node:Vr,pos:_r,level:Rn?Rn.level+1:-1})})}Dr(null)}function $r(Ir){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xn=wr.initWrapper,ur=wr.processEntity,Dr=wr.onProcessFinished,Vr=arguments.length>2?arguments[2]:void 0,sn={},Rn={},xt={posEntities:sn,keyEntities:Rn};return xn&&(xt=xn(xt)||xt),Mr(Ir,function(_r){var Or=_r.node,en=_r.index,wn=_r.pos,_n=_r.key,yn=_r.parentPos,Jn=_r.level,Un={node:Or,index:en,key:_n,pos:wn,level:Jn},pi=tt(_n,wn);sn[wn]=Un,Rn[pi]=Un,Un.parent=sn[yn],Un.parent&&(Un.parent.children=Un.parent.children||[],Un.parent.children.push(Un)),ur&&ur(Un,xt)},Vr),Dr&&Dr(xt),xt}function vn(Ir,wr){var xn=wr.expandedKeys,ur=wr.selectedKeys,Dr=wr.loadedKeys,Vr=wr.loadingKeys,sn=wr.checkedKeys,Rn=wr.halfCheckedKeys,xt=wr.dragOverNodeKey,_r=wr.dropPosition,Or=wr.keyEntities,en=Or[Ir],wn={eventKey:Ir,expanded:xn.indexOf(Ir)!==-1,selected:ur.indexOf(Ir)!==-1,loaded:Dr.indexOf(Ir)!==-1,loading:Vr.indexOf(Ir)!==-1,checked:sn.indexOf(Ir)!==-1,halfChecked:Rn.indexOf(Ir)!==-1,pos:String(en?en.pos:""),dragOver:xt===Ir&&_r===0,dragOverGapTop:xt===Ir&&_r===-1,dragOverGapBottom:xt===Ir&&_r===1};return wn}function jt(Ir){var wr=Ir.data,xn=Ir.expanded,ur=Ir.selected,Dr=Ir.checked,Vr=Ir.loaded,sn=Ir.loading,Rn=Ir.halfChecked,xt=Ir.dragOver,_r=Ir.dragOverGapTop,Or=Ir.dragOverGapBottom,en=Ir.pos,wn=Ir.active,_n=Object(S.a)(Object(S.a)({},wr),{},{expanded:xn,selected:ur,checked:Dr,loaded:Vr,loading:sn,halfChecked:Rn,dragOver:xt,dragOverGapTop:_r,dragOverGapBottom:Or,pos:en,active:wn});return"props"in _n||Object.defineProperty(_n,"props",{get:function(){return Object(me.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ir}}),_n}function gt(Ir,wr){var xn=new Set;return Ir.forEach(function(ur){wr.has(ur)||xn.add(ur)}),xn}function pt(Ir){var wr=Ir||{},xn=wr.disabled,ur=wr.disableCheckbox,Dr=wr.checkable;return!!(xn||ur)||Dr===!1}function ar(Ir,wr,xn,ur){for(var Dr=new Set(Ir),Vr=new Set,sn=0;sn<=xn;sn+=1){var Rn=wr.get(sn)||new Set;Rn.forEach(function(en){var wn=en.key,_n=en.node,yn=en.children,Jn=yn===void 0?[]:yn;Dr.has(wn)&&!ur(_n)&&Jn.filter(function(Un){return!ur(Un.node)}).forEach(function(Un){Dr.add(Un.key)})})}for(var xt=new Set,_r=xn;_r>=0;_r-=1){var Or=wr.get(_r)||new Set;Or.forEach(function(en){var wn=en.parent,_n=en.node;if(ur(_n)||!en.parent||xt.has(en.parent.key))return;if(ur(en.parent.node)){xt.add(wn.key);return}var yn=!0,Jn=!1;(wn.children||[]).filter(function(Un){return!ur(Un.node)}).forEach(function(Un){var pi=Un.key,ki=Dr.has(pi);yn&&!ki&&(yn=!1),!Jn&&(ki||Vr.has(pi))&&(Jn=!0)}),yn&&Dr.add(wn.key),Jn&&Vr.add(wn.key),xt.add(wn.key)})}return{checkedKeys:Array.from(Dr),halfCheckedKeys:Array.from(gt(Vr,Dr))}}function Ht(Ir,wr,xn,ur,Dr){for(var Vr=new Set(Ir),sn=new Set(wr),Rn=0;Rn<=ur;Rn+=1){var xt=xn.get(Rn)||new Set;xt.forEach(function(wn){var _n=wn.key,yn=wn.node,Jn=wn.children,Un=Jn===void 0?[]:Jn;!Vr.has(_n)&&!sn.has(_n)&&!Dr(yn)&&Un.filter(function(pi){return!Dr(pi.node)}).forEach(function(pi){Vr.delete(pi.key)})})}sn=new Set;for(var _r=new Set,Or=ur;Or>=0;Or-=1){var en=xn.get(Or)||new Set;en.forEach(function(wn){var _n=wn.parent,yn=wn.node;if(Dr(yn)||!wn.parent||_r.has(wn.parent.key))return;if(Dr(wn.parent.node)){_r.add(_n.key);return}var Jn=!0,Un=!1;(_n.children||[]).filter(function(pi){return!Dr(pi.node)}).forEach(function(pi){var ki=pi.key,yi=Vr.has(ki);Jn&&!yi&&(Jn=!1),!Un&&(yi||sn.has(ki))&&(Un=!0)}),Jn||Vr.delete(_n.key),Un&&sn.add(_n.key),_r.add(_n.key)})}return{checkedKeys:Array.from(Vr),halfCheckedKeys:Array.from(gt(sn,Vr))}}function Mt(Ir,wr,xn,ur){var Dr=[],Vr;ur?Vr=ur:Vr=pt;var sn=new Set(Ir.filter(function(Or){var en=!!xn[Or];return en||Dr.push(Or),en})),Rn=new Map,xt=0;Object.keys(xn).forEach(function(Or){var en=xn[Or],wn=en.level,_n=Rn.get(wn);_n||(_n=new Set,Rn.set(wn,_n)),_n.add(en),xt=Math.max(xt,wn)}),Object(me.a)(!Dr.length,"Tree missing follow keys: ".concat(Dr.slice(0,100).map(function(Or){return"'".concat(Or,"'")}).join(", ")));var _r;return wr===!0?_r=ar(sn,Rn,xt,Vr):_r=Ht(sn,wr.halfCheckedKeys,Rn,xt,Vr),_r}var qt=n("YrtM"),Rt=n("+nKL"),Qt=function(wr,xn){var ur=wr.className,Dr=wr.style,Vr=wr.motion,sn=wr.motionNodes,Rn=wr.motionType,xt=wr.onMotionStart,_r=wr.onMotionEnd,Or=wr.active,en=wr.treeNodeRequiredProps,wn=Object(C.a)(wr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),_n=e.useState(!0),yn=Object(b.a)(_n,2),Jn=yn[0],Un=yn[1],pi=e.useContext(de),ki=pi.prefixCls,yi=e.useRef(!1),_i=function(){yi.current||_r(),yi.current=!0};return Object(e.useEffect)(function(){sn&&Rn==="hide"&&Jn&&Un(!1)},[sn]),Object(e.useEffect)(function(){return sn&&xt(),function(){sn&&_i()}},[]),sn?e.createElement(R.b,Object.assign({ref:xn,visible:Jn},Vr,{motionAppear:Rn==="show",onAppearEnd:_i,onLeaveEnd:_i}),function(Ki,qi){var zi=Ki.className,Hi=Ki.style;return e.createElement("div",{ref:qi,className:w()("".concat(ki,"-treenode-motion"),zi),style:Hi},sn.map(function(Ui){var Qi=Ui.data,ca=Qi.key,Ca=Object(C.a)(Qi,["key"]),ra=Ui.isStart,Ma=Ui.isEnd;delete Ca.children;var La=vn(ca,en);return e.createElement(Pr,Object.assign({},Ca,La,{active:Or,data:Ui.data,key:ca,isStart:ra,isEnd:Ma}))}))}):e.createElement(Pr,Object.assign({domRef:xn,className:ur,style:Dr},wn,{active:Or}))};Qt.displayName="MotionTreeNode";var jr=e.forwardRef(Qt),Nr=jr;function Lr(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xn=Ir.length,ur=wr.length;if(Math.abs(xn-ur)!==1)return{add:!1,key:null};function Dr(Vr,sn){var Rn=new Map;Vr.forEach(function(_r){Rn.set(_r,!0)});var xt=sn.filter(function(_r){return!Rn.has(_r)});return xt.length===1?xt[0]:null}return xn<ur?{add:!0,key:Dr(Ir,wr)}:{add:!1,key:Dr(wr,Ir)}}function ln(Ir,wr,xn){var ur=Ir.findIndex(function(Rn){var xt=Rn.data;return xt.key===xn}),Dr=Ir[ur+1],Vr=wr.findIndex(function(Rn){var xt=Rn.data;return xt.key===xn});if(Dr){var sn=wr.findIndex(function(Rn){var xt=Rn.data;return xt.key===Dr.data.key});return wr.slice(Vr+1,sn)}return wr.slice(Vr+1)}var mn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ti=function(){},$n="RC_TREE_MOTION_".concat(Math.random()),hi={key:$n},Ti={key:$n,level:0,index:0,pos:"0",node:hi},Ni={parent:null,children:[],pos:Ti.pos,data:hi,isStart:[],isEnd:[]};function Wi(Ir,wr,xn,ur){return wr===!1||!xn?Ir:Ir.slice(0,Math.ceil(xn/ur)+1)}function rt(Ir){var wr=Ir.data.key,xn=Ir.pos;return tt(wr,xn)}function Re(Ir){for(var wr=String(Ir.data.key),xn=Ir;xn.parent;)xn=xn.parent,wr="".concat(xn.data.key," > ").concat(wr);return wr}var Ue=function(wr,xn){var ur=wr.prefixCls,Dr=wr.data,Vr=wr.selectable,sn=wr.checkable,Rn=wr.expandedKeys,xt=wr.selectedKeys,_r=wr.checkedKeys,Or=wr.loadedKeys,en=wr.loadingKeys,wn=wr.halfCheckedKeys,_n=wr.keyEntities,yn=wr.disabled,Jn=wr.dragging,Un=wr.dragOverNodeKey,pi=wr.dropPosition,ki=wr.motion,yi=wr.height,_i=wr.itemHeight,Ki=wr.virtual,qi=wr.focusable,zi=wr.activeItem,Hi=wr.focused,Ui=wr.tabIndex,Qi=wr.onKeyDown,ca=wr.onFocus,Ca=wr.onBlur,ra=wr.onActiveChange,Ma=wr.onListChangeStart,La=wr.onListChangeEnd,va=Object(C.a)(wr,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),ga=e.useRef(null);e.useImperativeHandle(xn,function(){return{scrollTo:function(rs){ga.current.scrollTo(rs)}}});var Oa=e.useState(Rn),Aa=Object(b.a)(Oa,2),Ga=Aa[0],_a=Aa[1],Va=e.useState(Dr),Bi=Object(b.a)(Va,2),io=Bi[0],oo=Bi[1],Qo=e.useState(Dr),mo=Object(b.a)(Qo,2),To=mo[0],ao=mo[1],So=e.useState([]),bo=Object(b.a)(So,2),to=bo[0],Jo=bo[1],Uo=e.useState(null),wo=Object(b.a)(Uo,2),ts=wo[0],Ia=wo[1];function Oo(){oo(Dr),ao(Dr),Jo([]),Ia(null),La()}e.useEffect(function(){_a(Rn);var xo=Lr(Ga,Rn);if(xo.key!==null)if(xo.add){var rs=io.findIndex(function(Er){var Zr=Er.data.key;return Zr===xo.key}),Ho=Wi(ln(io,Dr,xo.key),Ki,yi,_i),_o=io.slice();_o.splice(rs+1,0,Ni),ao(_o),Jo(Ho),Ia("show")}else{var uo=Dr.findIndex(function(Er){var Zr=Er.data.key;return Zr===xo.key}),Ha=Wi(ln(Dr,io,xo.key),Ki,yi,_i),ht=Dr.slice();ht.splice(uo+1,0,Ni),ao(ht),Jo(Ha),Ia("hide")}else io!==Dr&&(oo(Dr),ao(Dr))},[Rn,Dr]),e.useEffect(function(){Jn||Oo()},[Jn]);var Io=ki?To:Dr,os={expandedKeys:Rn,selectedKeys:xt,loadedKeys:Or,loadingKeys:en,checkedKeys:_r,halfCheckedKeys:wn,dragOverNodeKey:Un,dropPosition:pi,keyEntities:_n};return e.createElement(e.Fragment,null,Hi&&zi&&e.createElement("span",{style:mn,"aria-live":"assertive"},Re(zi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:mn,disabled:qi===!1||yn,tabIndex:qi!==!1?Ui:null,onKeyDown:Qi,onFocus:ca,onBlur:Ca,value:"",onChange:ti})),e.createElement(Rt.a,Object.assign({},va,{data:Io,itemKey:rt,height:yi,fullHeight:!1,virtual:Ki,itemHeight:_i,prefixCls:"".concat(ur,"-list"),ref:ga}),function(xo){var rs=xo.pos,Ho=xo.data,_o=Ho.key,uo=Object(C.a)(Ho,["key"]),Ha=xo.isStart,ht=xo.isEnd,Er=tt(_o,rs);delete uo.children;var Zr=vn(Er,os);return e.createElement(Nr,Object.assign({},uo,Zr,{active:zi&&_o===zi.data.key,pos:rs,data:xo.data,isStart:Ha,isEnd:ht,motion:ki,motionNodes:_o===$n?to:null,motionType:ts,onMotionStart:Ma,onMotionEnd:Oo,treeNodeRequiredProps:os,onMouseMove:function(){ra(null)}}))}))},Ye=e.forwardRef(Ue);Ye.displayName="NodeList";var et=Ye,$e=function(Ir){Object(c.a)(xn,Ir);var wr=Object(d.a)(xn);function xn(){var ur;return Object(r.a)(this,xn),ur=wr.apply(this,arguments),ur.destroyed=!1,ur.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},ur.listRef=e.createRef(),ur.onNodeDragStart=function(Dr,Vr){var sn=ur.state,Rn=sn.expandedKeys,xt=sn.keyEntities,_r=ur.props.onDragStart,Or=Vr.props.eventKey;ur.dragNode=Vr;var en=Dt(Rn,Or);ur.setState({dragging:!0,dragNodesKeys:Xi(Or,xt)}),ur.setExpandedKeys(en),_r&&_r({event:Dr,node:jt(Vr.props)})},ur.onNodeDragEnter=function(Dr,Vr){var sn=ur.state,Rn=sn.expandedKeys,xt=sn.keyEntities,_r=sn.dragNodesKeys,Or=ur.props.onDragEnter,en=Vr.props,wn=en.pos,_n=en.eventKey;if(!ur.dragNode||_r.indexOf(_n)!==-1)return;var yn=Gn(Dr,Vr);if(ur.dragNode.props.eventKey===_n&&yn===0){ur.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ur.setState({dragOverNodeKey:_n,dropPosition:yn}),ur.delayedDragEnterLogic||(ur.delayedDragEnterLogic={}),Object.keys(ur.delayedDragEnterLogic).forEach(function(Jn){clearTimeout(ur.delayedDragEnterLogic[Jn])}),ur.delayedDragEnterLogic[wn]=window.setTimeout(function(){if(!ur.state.dragging)return;var Jn=Object(g.a)(Rn),Un=xt[_n];Un&&(Un.children||[]).length&&(Jn=dn(Rn,_n)),"expandedKeys"in ur.props||ur.setExpandedKeys(Jn),Or&&Or({event:Dr,node:jt(Vr.props),expandedKeys:Jn})},400)},0)},ur.onNodeDragOver=function(Dr,Vr){var sn=ur.state.dragNodesKeys,Rn=ur.props.onDragOver,xt=Vr.props.eventKey;if(sn.indexOf(xt)!==-1)return;if(ur.dragNode&&xt===ur.state.dragOverNodeKey){var _r=Gn(Dr,Vr);if(_r===ur.state.dropPosition)return;ur.setState({dropPosition:_r})}Rn&&Rn({event:Dr,node:jt(Vr.props)})},ur.onNodeDragLeave=function(Dr,Vr){var sn=ur.props.onDragLeave;ur.setState({dragOverNodeKey:""}),sn&&sn({event:Dr,node:jt(Vr.props)})},ur.onNodeDragEnd=function(Dr,Vr){var sn=ur.props.onDragEnd;ur.setState({dragOverNodeKey:""}),ur.cleanDragState(),sn&&sn({event:Dr,node:jt(Vr.props)}),ur.dragNode=null},ur.onNodeDrop=function(Dr,Vr){var sn=ur.state,Rn=sn.dragNodesKeys,xt=Rn===void 0?[]:Rn,_r=sn.dropPosition,Or=ur.props.onDrop,en=Vr.props,wn=en.eventKey,_n=en.pos;if(ur.setState({dragOverNodeKey:""}),ur.cleanDragState(),xt.indexOf(wn)!==-1){Object(me.a)(!1,"Can not drop to dragNode(include it's children node)");return}var yn=Fn(_n),Jn={event:Dr,node:jt(Vr.props),dragNode:ur.dragNode?jt(ur.dragNode.props):null,dragNodesKeys:xt.slice(),dropPosition:_r+Number(yn[yn.length-1]),dropToGap:!1};_r!==0&&(Jn.dropToGap=!0),Or&&Or(Jn),ur.dragNode=null},ur.cleanDragState=function(){var Dr=ur.state.dragging;Dr&&ur.setState({dragging:!1})},ur.onNodeClick=function(Dr,Vr){var sn=ur.props.onClick;sn&&sn(Dr,Vr)},ur.onNodeDoubleClick=function(Dr,Vr){var sn=ur.props.onDoubleClick;sn&&sn(Dr,Vr)},ur.onNodeSelect=function(Dr,Vr){var sn=ur.state.selectedKeys,Rn=ur.state.keyEntities,xt=ur.props,_r=xt.onSelect,Or=xt.multiple,en=Vr.selected,wn=Vr.key,_n=!en;_n?Or?sn=dn(sn,wn):sn=[wn]:sn=Dt(sn,wn);var yn=sn.map(function(Jn){var Un=Rn[Jn];return Un?Un.node:null}).filter(function(Jn){return Jn});ur.setUncontrolledState({selectedKeys:sn}),_r&&_r(sn,{event:"select",selected:_n,node:Vr,selectedNodes:yn,nativeEvent:Dr.nativeEvent})},ur.onNodeCheck=function(Dr,Vr,sn){var Rn=ur.state,xt=Rn.keyEntities,_r=Rn.checkedKeys,Or=Rn.halfCheckedKeys,en=ur.props,wn=en.checkStrictly,_n=en.onCheck,yn=Vr.key,Jn,Un={event:"check",node:Vr,checked:sn,nativeEvent:Dr.nativeEvent};if(wn){var pi=sn?dn(_r,yn):Dt(_r,yn),ki=Dt(Or,yn);Jn={checked:pi,halfChecked:ki},Un.checkedNodes=pi.map(function(Hi){return xt[Hi]}).filter(function(Hi){return Hi}).map(function(Hi){return Hi.node}),ur.setUncontrolledState({checkedKeys:pi})}else{var yi=Mt([].concat(Object(g.a)(_r),[yn]),!0,xt),_i=yi.checkedKeys,Ki=yi.halfCheckedKeys;if(!sn){var qi=new Set(_i);qi.delete(yn);var zi=Mt(Array.from(qi),{checked:!1,halfCheckedKeys:Ki},xt);_i=zi.checkedKeys,Ki=zi.halfCheckedKeys}Jn=_i,Un.checkedNodes=[],Un.checkedNodesPositions=[],Un.halfCheckedKeys=Ki,_i.forEach(function(Hi){var Ui=xt[Hi];if(!Ui)return;var Qi=Ui.node,ca=Ui.pos;Un.checkedNodes.push(Qi),Un.checkedNodesPositions.push({node:Qi,pos:ca})}),ur.setUncontrolledState({checkedKeys:_i},!1,{halfCheckedKeys:Ki})}_n&&_n(Jn,Un)},ur.onNodeLoad=function(Dr){return new Promise(function(Vr){ur.setState(function(sn){var Rn=sn.loadedKeys,xt=Rn===void 0?[]:Rn,_r=sn.loadingKeys,Or=_r===void 0?[]:_r,en=ur.props,wn=en.loadData,_n=en.onLoad,yn=Dr.key;if(!wn||xt.indexOf(yn)!==-1||Or.indexOf(yn)!==-1)return{};var Jn=wn(Dr);return Jn.then(function(){var Un=ur.state,pi=Un.loadedKeys,ki=Un.loadingKeys,yi=dn(pi,yn),_i=Dt(ki,yn);_n&&_n(yi,{event:"load",node:Dr}),ur.setUncontrolledState({loadedKeys:yi}),ur.setState({loadingKeys:_i}),Vr()}),{loadingKeys:dn(Or,yn)}})})},ur.onNodeMouseEnter=function(Dr,Vr){var sn=ur.props.onMouseEnter;sn&&sn({event:Dr,node:Vr})},ur.onNodeMouseLeave=function(Dr,Vr){var sn=ur.props.onMouseLeave;sn&&sn({event:Dr,node:Vr})},ur.onNodeContextMenu=function(Dr,Vr){var sn=ur.props.onRightClick;sn&&(Dr.preventDefault(),sn({event:Dr,node:Vr}))},ur.onFocus=function(){var Dr=ur.props.onFocus;ur.setState({focused:!0}),Dr&&Dr.apply(void 0,arguments)},ur.onBlur=function(){var Dr=ur.props.onBlur;ur.setState({focused:!1}),ur.onActiveChange(null),Dr&&Dr.apply(void 0,arguments)},ur.getTreeNodeRequiredProps=function(){var Dr=ur.state,Vr=Dr.expandedKeys,sn=Dr.selectedKeys,Rn=Dr.loadedKeys,xt=Dr.loadingKeys,_r=Dr.checkedKeys,Or=Dr.halfCheckedKeys,en=Dr.dragOverNodeKey,wn=Dr.dropPosition,_n=Dr.keyEntities;return{expandedKeys:Vr||[],selectedKeys:sn||[],loadedKeys:Rn||[],loadingKeys:xt||[],checkedKeys:_r||[],halfCheckedKeys:Or||[],dragOverNodeKey:en,dropPosition:wn,keyEntities:_n}},ur.setExpandedKeys=function(Dr){var Vr=ur.state.treeData,sn=Vt(Vr,Dr);ur.setUncontrolledState({expandedKeys:Dr,flattenNodes:sn},!0)},ur.onNodeExpand=function(Dr,Vr){var sn=ur.state.expandedKeys,Rn=ur.state.listChanging,xt=ur.props,_r=xt.onExpand,Or=xt.loadData,en=Vr.key,wn=Vr.expanded;if(Rn)return;var _n=sn.indexOf(en),yn=!wn;if(Object(me.a)(wn&&_n!==-1||!wn&&_n===-1,"Expand state not sync with index check"),yn?sn=dn(sn,en):sn=Dt(sn,en),ur.setExpandedKeys(sn),_r&&_r(sn,{node:Vr,expanded:yn,nativeEvent:Dr.nativeEvent}),yn&&Or){var Jn=ur.onNodeLoad(Vr);Jn&&Jn.then(function(){var Un=Vt(ur.state.treeData,sn);ur.setUncontrolledState({flattenNodes:Un})})}},ur.onListChangeStart=function(){ur.setUncontrolledState({listChanging:!0})},ur.onListChangeEnd=function(){setTimeout(function(){ur.setUncontrolledState({listChanging:!1})})},ur.onActiveChange=function(Dr){var Vr=ur.state.activeKey,sn=ur.props.onActiveChange;if(Vr===Dr)return;ur.setState({activeKey:Dr}),Dr!==null&&ur.scrollTo({key:Dr}),sn&&sn(Dr)},ur.getActiveItem=function(){var Dr=ur.state,Vr=Dr.activeKey,sn=Dr.flattenNodes;return Vr===null?null:sn.find(function(Rn){var xt=Rn.data.key;return xt===Vr})||null},ur.offsetActiveKey=function(Dr){var Vr=ur.state,sn=Vr.flattenNodes,Rn=Vr.activeKey,xt=sn.findIndex(function(en){var wn=en.data.key;return wn===Rn});xt===-1&&Dr<0&&(xt=sn.length),xt=(xt+Dr+sn.length)%sn.length;var _r=sn[xt];if(_r){var Or=_r.data.key;ur.onActiveChange(Or)}else ur.onActiveChange(null)},ur.onKeyDown=function(Dr){var Vr=ur.state,sn=Vr.activeKey,Rn=Vr.expandedKeys,xt=Vr.checkedKeys,_r=ur.props,Or=_r.onKeyDown,en=_r.checkable,wn=_r.selectable;switch(Dr.which){case _.a.UP:{ur.offsetActiveKey(-1),Dr.preventDefault();break}case _.a.DOWN:{ur.offsetActiveKey(1),Dr.preventDefault();break}}var _n=ur.getActiveItem();if(_n&&_n.data){var yn=ur.getTreeNodeRequiredProps(),Jn=_n.data.isLeaf===!1||!!(_n.data.children||[]).length,Un=jt(Object(S.a)(Object(S.a)({},vn(sn,yn)),{},{data:_n.data,active:!0}));switch(Dr.which){case _.a.LEFT:{Jn&&Rn.includes(sn)?ur.onNodeExpand({},Un):_n.parent&&ur.onActiveChange(_n.parent.data.key),Dr.preventDefault();break}case _.a.RIGHT:{Jn&&!Rn.includes(sn)?ur.onNodeExpand({},Un):_n.children&&_n.children.length&&ur.onActiveChange(_n.children[0].data.key),Dr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{en&&!Un.disabled&&Un.checkable!==!1&&!Un.disableCheckbox?ur.onNodeCheck({},Un,!xt.includes(sn)):!en&&wn&&!Un.disabled&&Un.selectable!==!1&&ur.onNodeSelect({},Un);break}}}Or&&Or(Dr)},ur.setUncontrolledState=function(Dr){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ur.destroyed)return;var Rn=!1,xt=!0,_r={};Object.keys(Dr).forEach(function(Or){if(Or in ur.props){xt=!1;return}Rn=!0,_r[Or]=Dr[Or]}),Rn&&(!Vr||xt)&&ur.setState(Object(S.a)(Object(S.a)({},_r),sn))},ur.scrollTo=function(Dr){ur.listRef.current.scrollTo(Dr)},ur}return Object(s.a)(xn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Dr,Vr=this.state,sn=Vr.focused,Rn=Vr.flattenNodes,xt=Vr.keyEntities,_r=Vr.dragging,Or=Vr.activeKey,en=this.props,wn=en.prefixCls,_n=en.className,yn=en.style,Jn=en.showLine,Un=en.focusable,pi=en.tabIndex,ki=pi===void 0?0:pi,yi=en.selectable,_i=en.showIcon,Ki=en.icon,qi=en.switcherIcon,zi=en.draggable,Hi=en.checkable,Ui=en.checkStrictly,Qi=en.disabled,ca=en.motion,Ca=en.loadData,ra=en.filterTreeNode,Ma=en.height,La=en.itemHeight,va=en.virtual,ga=en.titleRender,Oa=en.onContextMenu,Aa=Pe(this.props);return e.createElement(de.Provider,{value:{prefixCls:wn,selectable:yi,showIcon:_i,icon:Ki,switcherIcon:qi,draggable:zi,checkable:Hi,checkStrictly:Ui,disabled:Qi,keyEntities:xt,loadData:Ca,filterTreeNode:ra,titleRender:ga,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:w()(wn,_n,(Dr={},Object(E.a)(Dr,"".concat(wn,"-show-line"),Jn),Object(E.a)(Dr,"".concat(wn,"-focused"),sn),Object(E.a)(Dr,"".concat(wn,"-active-focused"),Or!==null),Dr))},e.createElement(et,Object.assign({ref:this.listRef,prefixCls:wn,style:yn,data:Rn,disabled:Qi,selectable:yi,checkable:!!Hi,motion:ca,dragging:_r,height:Ma,itemHeight:La,virtual:va,focusable:Un,focused:sn,tabIndex:ki,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Oa},this.getTreeNodeRequiredProps(),Aa))))}}],[{key:"getDerivedStateFromProps",value:function(Dr,Vr){var sn=Vr.prevProps,Rn={prevProps:Dr};function xt(Ki){return!sn&&Ki in Dr||sn&&sn[Ki]!==Dr[Ki]}var _r;if(xt("treeData")?_r=Dr.treeData:xt("children")&&(Object(me.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_r=St(Dr.children)),_r){Rn.treeData=_r;var Or=$r(_r);Rn.keyEntities=Object(S.a)(Object(E.a)({},$n,Ti),Or.keyEntities)}var en=Rn.keyEntities||Vr.keyEntities;if(xt("expandedKeys")||sn&&xt("autoExpandParent"))Rn.expandedKeys=Dr.autoExpandParent||!sn&&Dr.defaultExpandParent?ke(Dr.expandedKeys,en):Dr.expandedKeys;else if(!sn&&Dr.defaultExpandAll){var wn=Object(S.a)({},en);delete wn[$n],Rn.expandedKeys=Object.keys(wn).map(function(Ki){return wn[Ki].key})}else!sn&&Dr.defaultExpandedKeys&&(Rn.expandedKeys=Dr.autoExpandParent||Dr.defaultExpandParent?ke(Dr.defaultExpandedKeys,en):Dr.defaultExpandedKeys);if(Rn.expandedKeys||delete Rn.expandedKeys,_r||Rn.expandedKeys){var _n=Vt(_r||Vr.treeData,Rn.expandedKeys||Vr.expandedKeys);Rn.flattenNodes=_n}if(Dr.selectable&&(xt("selectedKeys")?Rn.selectedKeys=ei(Dr.selectedKeys,Dr):!sn&&Dr.defaultSelectedKeys&&(Rn.selectedKeys=ei(Dr.defaultSelectedKeys,Dr))),Dr.checkable){var yn;if(xt("checkedKeys")?yn=Me(Dr.checkedKeys)||{}:!sn&&Dr.defaultCheckedKeys?yn=Me(Dr.defaultCheckedKeys)||{}:_r&&(yn=Me(Dr.checkedKeys)||{checkedKeys:Vr.checkedKeys,halfCheckedKeys:Vr.halfCheckedKeys}),yn){var Jn=yn,Un=Jn.checkedKeys,pi=Un===void 0?[]:Un,ki=Jn.halfCheckedKeys,yi=ki===void 0?[]:ki;if(!Dr.checkStrictly){var _i=Mt(pi,!0,en);pi=_i.checkedKeys,yi=_i.halfCheckedKeys}Rn.checkedKeys=pi,Rn.halfCheckedKeys=yi}}return xt("loadedKeys")&&(Rn.loadedKeys=Dr.loadedKeys),Rn}}]),xn}(e.Component);$e.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:[]},$e.TreeNode=Pr;var at=$e,wt=at,ft=e.createContext(null);function cr(Ir,wr){if(!Ir)return!0;var xn=Ir.data,ur=xn.disabled,Dr=xn.disableCheckbox;switch(wr){case"select":return ur;case"checkbox":return ur||Dr}return!1}function Jr(Ir,wr){var xn=e.useCallback(function(Dr){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",sn=arguments.length>2?arguments[2]:void 0,Rn=Ir.get(Dr);return!sn&&cr(Rn,Vr)?null:Rn},[Ir]),ur=e.useCallback(function(Dr){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",sn=arguments.length>2?arguments[2]:void 0,Rn=wr.get(Dr);return!sn&&cr(Rn,Vr)?null:Rn},[wr]);return[xn,ur]}function Qr(Ir){return e.useMemo(function(){var wr=new Map,xn=new Map;return Ir.forEach(function(ur){wr.set(ur.key,ur),xn.set(ur.data.value,ur)}),[wr,xn]},[Ir])}var fn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},pr=function(wr,xn){var ur=wr.prefixCls,Dr=wr.height,Vr=wr.itemHeight,sn=wr.virtual,Rn=wr.options,xt=wr.flattenOptions,_r=wr.multiple,Or=wr.searchValue,en=wr.onSelect,wn=wr.onToggleOpen,_n=wr.open,yn=wr.notFoundContent,Jn=wr.onMouseEnter,Un=e.useContext(ft),pi=Un.checkable,ki=Un.checkedKeys,yi=Un.halfCheckedKeys,_i=Un.treeExpandedKeys,Ki=Un.treeDefaultExpandAll,qi=Un.treeDefaultExpandedKeys,zi=Un.onTreeExpand,Hi=Un.treeIcon,Ui=Un.showTreeIcon,Qi=Un.switcherIcon,ca=Un.treeLine,Ca=Un.treeNodeFilterProp,ra=Un.loadData,Ma=Un.treeLoadedKeys,La=Un.treeMotion,va=Un.onTreeLoad,ga=e.useRef(),Oa=Object(qt.a)(function(){return Rn},[_n,Rn],function(Zr,Xr){return Xr[0]&&Zr[1]!==Xr[1]}),Aa=Qr(xt),Ga=Object(b.a)(Aa,2),_a=Ga[0],Va=Ga[1],Bi=Jr(_a,Va),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1],mo=e.useMemo(function(){return ki.map(function(Zr){var Xr=Qo(Zr);return Xr?Xr.key:null})},[ki]),To=e.useMemo(function(){return pi?{checked:mo,halfChecked:yi}:null},[mo,yi,pi]);e.useEffect(function(){if(_n&&!_r&&mo.length){var Zr;(Zr=ga.current)===null||Zr===void 0||Zr.scrollTo({key:mo[0]})}},[_n]);var ao=String(Or).toLowerCase(),So=function(Xr){return ao?String(Xr[Ca]).toLowerCase().includes(ao):!1},bo=e.useState(qi),to=Object(b.a)(bo,2),Jo=to[0],Uo=to[1],wo=e.useState(null),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=e.useMemo(function(){return _i?Object(g.a)(_i):Or?Ia:Jo},[Jo,Ia,ao,_i]);e.useEffect(function(){Or&&Oo(xt.map(function(Zr){return Zr.key}))},[Or]);var os=function(Xr){Uo(Xr),Oo(Xr),zi&&zi(Xr)},xo=function(Xr){Xr.preventDefault()},rs=function(Xr,Xn){var un=Xn.node.key,Gr=oo(un,pi?"checkbox":"select");Gr!==null&&en(Gr.data.value,{selected:!ki.includes(Gr.data.value)}),_r||wn(!1)},Ho=e.useState(null),_o=Object(b.a)(Ho,2),uo=_o[0],Ha=_o[1],ht=oo(uo);if(e.useImperativeHandle(xn,function(){return{onKeyDown:function(Xr){var Xn,un=Xr.which;switch(un){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Xn=ga.current)===null||Xn===void 0||Xn.onKeyDown(Xr);break;case _.a.ENTER:{ht!==null&&rs(null,{node:{key:uo},selected:!ki.includes(ht.data.value)});break}case _.a.ESC:wn(!1)}},onKeyUp:function(){}}}),Oa.length===0)return e.createElement("div",{role:"listbox",className:"".concat(ur,"-empty"),onMouseDown:xo},yn);var Er={};return Ma&&(Er.loadedKeys=Ma),Io&&(Er.expandedKeys=Io),e.createElement("div",{onMouseDown:xo,onMouseEnter:Jn},ht&&_n&&e.createElement("span",{style:fn,"aria-live":"assertive"},ht.data.value),e.createElement(wt,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(ur,"-tree"),treeData:Oa,height:Dr,itemHeight:Vr,virtual:sn,multiple:_r,icon:Hi,showIcon:Ui,switcherIcon:Qi,showLine:ca,loadData:Or?null:ra,motion:La,checkable:pi,checkStrictly:!0,checkedKeys:To,selectedKeys:pi?[]:mo,defaultExpandAll:Ki},Er,{onActiveChange:Ha,onSelect:rs,onCheck:rs,onExpand:os,onLoad:va,filterTreeNode:So})))},Wn=e.forwardRef(pr);Wn.displayName="OptionList";var kr=Wn,kn=function(){return null},bn=kn;function qr(Ir){return Object(lt.a)(Ir).map(function(wr){if(!e.isValidElement(wr)||!wr.type)return null;var xn=wr.key,ur=wr.props,Dr=ur.children,Vr=ur.value,sn=Object(C.a)(ur,["children","value"]),Rn=Object(S.a)({key:xn,value:Vr},sn),xt=qr(Dr);return xt.length&&(Rn.children=xt),Rn}).filter(function(wr){return wr})}function fi(Ir){if(!Ir)return Ir;var wr=Object(S.a)({},Ir);return"props"in wr||Object.defineProperty(wr,"props",{get:function(){return Object(me.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),wr}}),wr}function Mi(Ir,wr,xn,ur,Dr){var Vr=null,sn=null;function Rn(){function xt(_r){var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _r.map(function(wn,_n){var yn="".concat(Or,"-").concat(_n),Jn=xn.includes(wn.value),Un=xt(wn.children||[],yn,Jn),pi=e.createElement(bn,Object.assign({},wn),Un.map(function(yi){return yi.node}));if(wr===wn.value&&(Vr=pi),Jn){var ki={pos:yn,node:pi,children:Un};return en||sn.push(ki),ki}return null}).filter(function(wn){return wn})}sn||(sn=[],xt(ur),sn.sort(function(_r,Or){var en=_r.node.props.value,wn=Or.node.props.value,_n=xn.indexOf(en),yn=xn.indexOf(wn);return _n-yn}))}Object.defineProperty(Ir,"triggerNode",{get:function(){return Object(me.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Rn(),Vr}}),Object.defineProperty(Ir,"allCheckedNodes",{get:function(){return Object(me.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Rn(),Dr?sn:sn.map(function(_r){var Or=_r.node;return Or})}})}function Zi(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function tn(Ir,wr){var xn=new Map;return wr.forEach(function(ur){var Dr=ur.data;xn.set(Dr.value,Dr)}),Ir.map(function(ur){return fi(xn.get(ur))})}function En(Ir,wr){var xn=tn([Ir],wr)[0];return xn?xn.disabled:!1}function Vn(Ir){return Ir.disabled||Ir.disableCheckbox||Ir.checkable===!1}function Wt(Ir){for(var wr=Ir.parent,xn=0,ur=wr;ur;)ur=ur.parent,xn+=1;return xn}function Et(Ir){function wr(ur){return(ur||[]).map(function(Dr){var Vr=Dr.value,sn=Dr.key,Rn=Dr.children,xt=Object(S.a)(Object(S.a)({},Dr),{},{key:"key"in Dr?sn:Vr});return Rn&&(xt.children=wr(Rn)),xt})}var xn=Vt(wr(Ir),!0);return xn.map(function(ur){return{key:ur.data.key,data:ur.data,level:Wt(ur)}})}function kt(Ir){return function(wr,xn){var ur=xn[Ir];return String(ur).toLowerCase().includes(String(wr).toLowerCase())}}function Bt(Ir,wr,xn){var ur=xn.optionFilterProp,Dr=xn.filterOption;if(Dr===!1)return wr;var Vr;typeof Dr=="function"?Vr=Dr:Vr=kt(ur);function sn(Rn){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Rn.map(function(_r){var Or=_r.children,en=xt||Vr(Ir,fi(_r)),wn=sn(Or||[],en);return en||wn.length?Object(S.a)(Object(S.a)({},_r),{},{children:wn}):null}).filter(function(_r){return _r})}return sn(wr)}function Kt(Ir,wr,xn,ur){var Dr=new Map;return Zi(wr).forEach(function(Vr){Vr&&Object(v.a)(Vr)==="object"&&"value"in Vr&&Dr.set(Vr.value,Vr)}),Ir.map(function(Vr){var sn={value:Vr},Rn=xn(Vr,"select",!0),xt=Rn?ur(Rn.data):Vr;if(Dr.has(Vr)){var _r=Dr.get(Vr);sn.label="label"in _r?_r.label:xt,"halfChecked"in _r&&(sn.halfChecked=_r.halfChecked)}else sn.label=xt;return sn})}function Ot(Ir,wr){var xn=new Set(Ir);return xn.add(wr),Array.from(xn)}function sr(Ir,wr){var xn=new Set(Ir);return xn.delete(wr),Array.from(xn)}function fr(Ir){var wr=Ir.searchPlaceholder,xn=Ir.treeCheckStrictly,ur=Ir.treeCheckable,Dr=Ir.labelInValue,Vr=Ir.value,sn=Ir.multiple;Object(me.a)(!wr,"`searchPlaceholder` has been removed."),xn&&Dr===!1&&Object(me.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Dr||xn)&&Object(me.a)(Zi(Vr).every(function(Rn){return Rn&&Object(v.a)(Rn)==="object"&&"value"in Rn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),xn||sn||ur?Object(me.a)(!Vr||Array.isArray(Vr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(me.a)(!Array.isArray(Vr),"`value` should not be array when `TreeSelect` is single mode.")}var vr=fr,Rr=10;function Kn(Ir,wr){var xn=wr.id,ur=wr.pId,Dr=wr.rootPId,Vr={},sn=[],Rn=Ir.map(function(xt){var _r=Object(S.a)({},xt),Or=_r[xn];return Vr[Or]=_r,_r.key=_r.key||Or,_r});return Rn.forEach(function(xt){var _r=xt[ur],Or=Vr[_r];Or&&(Or.children=Or.children||[],Or.children.push(xt)),(_r===Dr||!Or&&Dr===null)&&sn.push(xt)}),sn}function Dn(Ir,wr){var xn=0,ur=new Set;function Dr(Vr){return(Vr||[]).map(function(sn){var Rn=sn.key,xt=sn.value,_r=sn.children,Or=Object(C.a)(sn,["key","value","children"]),en="value"in sn?xt:Rn,wn=Object(S.a)(Object(S.a)({},Or),{},{key:Rn!=null?Rn:en,value:en,title:wr(sn)});return"children"in sn&&(wn.children=Dr(_r)),wn})}return Dr(Ir)}function ui(Ir,wr,xn){var ur=xn.getLabelProp,Dr=xn.simpleMode,Vr=e.useRef({});return Ir?(Vr.current.formatTreeData=Vr.current.treeData===Ir?Vr.current.formatTreeData:Dn(Dr?Kn(Ir,Object(S.a)({id:"id",pId:"pId",rootPId:null},Dr!==!0?Dr:{})):Ir,ur),Vr.current.treeData=Ir):Vr.current.formatTreeData=Vr.current.children===wr?Vr.current.formatTreeData:Dn(qr(wr),ur),Vr.current.formatTreeData}var pn="SHOW_ALL",Br="SHOW_PARENT",Tn="SHOW_CHILD";function zn(Ir,wr,xn){var ur=new Set(Ir);return wr===Tn?Ir.filter(function(Dr){var Vr=xn[Dr];return!(Vr&&Vr.children&&Vr.children.every(function(sn){var Rn=sn.node;return Vn(Rn)||ur.has(Rn.key)}))}):wr===Br?Ir.filter(function(Dr){var Vr=xn[Dr],sn=Vr?Vr.parent:null;return!(sn&&!Vn(sn.node)&&ur.has(sn.node.key))}):Ir}function Qn(Ir,wr){var xn=wr.value,ur=wr.getEntityByValue,Dr=wr.getEntityByKey,Vr=wr.treeConduction,sn=wr.showCheckedStrategy,Rn=wr.conductKeyEntities,xt=wr.getLabelProp;return e.useMemo(function(){var _r=Ir;if(Vr){var Or=zn(Ir.map(function(en){var wn=ur(en);return wn?wn.key:en}),sn,Rn);_r=Or.map(function(en){var wn=Dr(en);return wn?wn.data.value:en})}return Kt(_r,xn,ur,xt)},[Ir,xn,Vr,sn,ur])}var ii=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],xi=se({prefixCls:"rc-tree-select",components:{optionList:kr},convertChildrenToData:function(){return null},flattenOptions:Et,getLabeledValue:mt,filterOptions:Bt,isValueDisabled:En,findValueOption:tn,omitDOMProps:function(wr){var xn=Object(S.a)({},wr);return ii.forEach(function(ur){delete xn[ur]}),xn}});xi.displayName="Select";var Di=e.forwardRef(function(Ir,wr){var xn=Ir.multiple,ur=Ir.treeCheckable,Dr=Ir.treeCheckStrictly,Vr=Ir.showCheckedStrategy,sn=Vr===void 0?"SHOW_CHILD":Vr,Rn=Ir.labelInValue,xt=Ir.loadData,_r=Ir.treeLoadedKeys,Or=Ir.treeNodeFilterProp,en=Or===void 0?"value":Or,wn=Ir.treeNodeLabelProp,_n=Ir.treeDataSimpleMode,yn=Ir.treeData,Jn=Ir.treeExpandedKeys,Un=Ir.treeDefaultExpandedKeys,pi=Ir.treeDefaultExpandAll,ki=Ir.children,yi=Ir.treeIcon,_i=Ir.showTreeIcon,Ki=Ir.switcherIcon,qi=Ir.treeLine,zi=Ir.treeMotion,Hi=Ir.filterTreeNode,Ui=Ir.dropdownPopupAlign,Qi=Ir.onChange,ca=Ir.onTreeExpand,Ca=Ir.onTreeLoad,ra=Ir.onDropdownVisibleChange,Ma=Ir.onSelect,La=Ir.onDeselect,va=ur||Dr,ga=xn||va,Oa=ur&&!Dr,Aa=Dr||Rn,Ga=e.useRef(null);e.useImperativeHandle(wr,function(){return{focus:Ga.current.focus,blur:Ga.current.blur}});var _a=function(un){return yn&&un.label||un.title},Va=function(un){return wn?un[wn]:_a(un)},Bi=ui(yn,ki,{getLabelProp:_a,simpleMode:_n}),io=Object(e.useMemo)(function(){return Et(Bi)},[Bi]),oo=Qr(io),Qo=Object(b.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Jr(mo,To),So=Object(b.a)(ao,2),bo=So[0],to=So[1],Jo=Object(e.useMemo)(function(){return Oa?$r(Bi):{keyEntities:null}},[Bi,ur,Dr]),Uo=Jo.keyEntities,wo=Object(O.a)(Ir.defaultValue,{value:Ir.value}),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=function(un){var Gr=[],ri=[];return un.forEach(function(rn){to(rn)?ri.push(rn):Gr.push(rn)}),{missingRawValues:Gr,existRawValues:ri}},os=Object(e.useMemo)(function(){var Xn=[],un=[];if(Zi(Ia).forEach(function(Ei){if(Ei&&Object(v.a)(Ei)==="object"&&"value"in Ei)if(Ei.halfChecked&&Dr){var mi=to(Ei.value);Xn.push(mi?mi.key:Ei.value)}else un.push(Ei.value);else un.push(Ei)}),Oa){var Gr=Io(un),ri=Gr.missingRawValues,rn=Gr.existRawValues,jn=rn.map(function(Ei){return to(Ei).key}),oi=Mt(jn,!0,Uo),li=oi.checkedKeys,ai=oi.halfCheckedKeys;return[[].concat(Object(g.a)(ri),Object(g.a)(li.map(function(Ei){return bo(Ei).data.value}))),ai]}return[un,Xn]},[Ia,ga,Aa,ur,Dr]),xo=Object(b.a)(os,2),rs=xo[0],Ho=xo[1],_o=Qn(rs,{treeConduction:Oa,value:Ia,showCheckedStrategy:sn,conductKeyEntities:Uo,getEntityByValue:to,getEntityByKey:bo,getLabelProp:Va}),uo=function(un,Gr,ri){if(Oo(ga?un:un[0]),Qi){var rn=un;if(Oa&&sn!=="SHOW_ALL"){var jn=un.map(function(ji){var fa=to(ji);return fa?fa.key:ji}),oi=zn(jn,sn,Uo);rn=oi.map(function(ji){var fa=bo(ji);return fa?fa.data.value:ji})}var li=Gr||{triggerValue:void 0,selected:void 0},ai=li.triggerValue,Ei=li.selected,mi=Aa?Kt(rn,Ia,to,Va):rn;if(Dr){var Ai=Ho.map(function(ji){var fa=bo(ji);return fa?fa.data.value:ji}).filter(function(ji){return!rn.includes(ji)});mi=[].concat(Object(g.a)(mi),Object(g.a)(Kt(Ai,Ia,to,Va)))}var Ii={preValue:_o,triggerValue:ai},na=!0;(Dr||ri==="selection"&&!Ei)&&(na=!1),Mi(Ii,ai,un,Bi,na),va?Ii.checked=Ei:Ii.selected=Ei,Qi(ga?mi:mi[0],Aa?null:rn.map(function(ji){var fa=to(ji);return fa?Va(fa.data):null}),Ii)}},Ha=function(un,Gr,ri){var rn=un;if(!ga)uo([un],{selected:!0,triggerValue:un},ri);else{var jn=Ot(rs,un);if(Oa){var oi=Io(jn),li=oi.missingRawValues,ai=oi.existRawValues,Ei=ai.map(function(Ii){return to(Ii).key}),mi=Mt(Ei,!0,Uo),Ai=mi.checkedKeys;jn=[].concat(Object(g.a)(li),Object(g.a)(Ai.map(function(Ii){return bo(Ii).data.value})))}uo(jn,{selected:!0,triggerValue:un},ri)}Ma&&Ma(rn,Gr)},ht=function(un,Gr,ri){var rn=un,jn=sr(rs,un);if(Oa){var oi=Io(jn),li=oi.missingRawValues,ai=oi.existRawValues,Ei=ai.map(function(Ii){return to(Ii).key}),mi=Mt(Ei,{checked:!1,halfCheckedKeys:Ho},Uo),Ai=mi.checkedKeys;jn=[].concat(Object(g.a)(li),Object(g.a)(Ai.map(function(Ii){return bo(Ii).data.value})))}uo(jn,{selected:!1,triggerValue:un},ri),La&&La(rn,Gr)},Er=function(){uo([],null,"clear")},Zr=e.useCallback(function(Xn){if(ra){var un={};Object.defineProperty(un,"documentClickClose",{get:function(){return Object(me.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ra(Xn,un)}},[ra]),Xr={optionLabelProp:null,optionFilterProp:en,dropdownAlign:Ui,internalProps:{mark:we,onClear:Er,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ha,onRawDeselect:ht}};return"filterTreeNode"in Ir&&(Xr.filterOption=Hi),e.createElement(ft.Provider,{value:{checkable:va,loadData:xt,treeLoadedKeys:_r,onTreeLoad:Ca,checkedKeys:rs,halfCheckedKeys:Ho,treeDefaultExpandAll:pi,treeExpandedKeys:Jn,treeDefaultExpandedKeys:Un,onTreeExpand:ca,treeIcon:yi,treeMotion:zi,showTreeIcon:_i,switcherIcon:Ki,treeLine:qi,treeNodeFilterProp:en}},e.createElement(xi,Object.assign({ref:Ga,mode:ga?"multiple":null},Ir,Xr,{value:_o,labelInValue:!0,options:Bi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Zr})))}),Li=function(Ir){Object(c.a)(xn,Ir);var wr=Object(d.a)(xn);function xn(){var ur;return Object(r.a)(this,xn),ur=wr.apply(this,arguments),ur.selectRef=e.createRef(),ur.focus=function(){ur.selectRef.current.focus()},ur.blur=function(){ur.selectRef.current.blur()},ur}return Object(s.a)(xn,[{key:"render",value:function(){return e.createElement(Di,Object.assign({ref:this.selectRef},this.props))}}]),xn}(e.Component);Li.TreeNode=bn,Li.SHOW_ALL=pn,Li.SHOW_PARENT=Br,Li.SHOW_CHILD=Tn;var oa=Li,ma=oa,ia=n("BGR+"),ba=n("H84U"),vi=n("uaoM"),Ln=n("1vzs"),Fi=n("2jpz"),ha=n("3Nzz"),ea=function(Ir){i()(xn,Ir);var wr=o()(xn);function xn(ur){var Dr;return f()(this,xn),Dr=wr.call(this,ur),Dr.selectRef=e.createRef(),Dr.renderTreeSelect=function(Vr){var sn=Vr.getPopupContainer,Rn=Vr.getPrefixCls,xt=Vr.renderEmpty,_r=Vr.direction,Or=Vr.virtual,en=Vr.dropdownMatchSelectWidth,wn=Dr.props,_n=wn.prefixCls,yn=wn.size,Jn=wn.className,Un=wn.treeCheckable,pi=wn.multiple,ki=wn.listHeight,yi=ki===void 0?256:ki,_i=wn.listItemHeight,Ki=_i===void 0?26:_i,qi=wn.notFoundContent,zi=wn.switcherIcon,Hi=wn.treeLine,Ui=wn.getPopupContainer,Qi=wn.dropdownClassName,ca=wn.bordered,Ca=wn.treeIcon,ra=Ca===void 0?!1:Ca,Ma=Rn("select",_n),La=Rn("select-tree",_n),va=Rn("tree-select",_n),ga=w()(Qi,"".concat(va,"-dropdown"),A()({},"".concat(va,"-dropdown-rtl"),_r==="rtl")),Oa=!!(Un||pi),Aa=Object(Ln.a)(p()(p()({},Dr.props),{multiple:Oa,prefixCls:Ma})),Ga=Aa.suffixIcon,_a=Aa.itemIcon,Va=Aa.removeIcon,Bi=Aa.clearIcon,io;qi!==void 0?io=qi:io=xt("Select");var oo=Object(ia.default)(Dr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function(Qo){var mo,To=yn||Qo,ao=w()(!_n&&va,(mo={},A()(mo,"".concat(Ma,"-lg"),To==="large"),A()(mo,"".concat(Ma,"-sm"),To==="small"),A()(mo,"".concat(Ma,"-rtl"),_r==="rtl"),A()(mo,"".concat(Ma,"-borderless"),!ca),mo),Jn);return e.createElement(ma,p()({virtual:Or,dropdownMatchSelectWidth:en},oo,{ref:Dr.selectRef,prefixCls:Ma,className:ao,listHeight:yi,listItemHeight:Ki,treeCheckable:Un&&e.createElement("span",{className:"".concat(Ma,"-tree-checkbox-inner")}),inputIcon:Ga,menuItemSelectedIcon:_a,removeIcon:Va,clearIcon:Bi,switcherIcon:function(bo){return Object(Fi.a)(La,zi,Hi,bo)},showTreeIcon:ra,notFoundContent:io,getPopupContainer:Ui||sn,treeMotion:null,dropdownClassName:ga}))})},Object(vi.a)(ur.multiple!==!1||!ur.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Dr}return u()(xn,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return e.createElement(ba.a,null,this.renderTreeSelect)}}]),xn}(e.Component);ea.TreeNode=bn,ea.SHOW_ALL=pn,ea.SHOW_PARENT=Br,ea.SHOW_CHILD=Tn,ea.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var aa=D.a=ea},"5Uyt":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("KmBX"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"5YOS":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("xb2K"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"5YgA":function(k,D,n){},"5bA4":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="LeftOutlined";var h=D.a=p.forwardRef(f)},"5hvy":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.x64,u=h.Word,a=x.algo,i=[],t=[],o=[];(function(){for(var r=1,s=0,c=0;c<24;c++){i[r+5*s]=(c+1)*(c+2)/2%64;var d=s%5,g=(2*r+3*s)%5;r=d,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 v=1,b=0;b<24;b++){for(var S=0,E=0,C=0;C<7;C++){if(v&1){var _=(1<<C)-1;_<32?E^=1<<_:S^=1<<_-32}v&128?v=v<<1^113:v<<=1}o[b]=u.create(S,E)}})();var e=[];(function(){for(var r=0;r<25;r++)e[r]=u.create()})();var l=a.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 d=this._state,g=this.blockSize/2,v=0;v<g;v++){var b=s[c+2*v],S=s[c+2*v+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var E=d[v];E.high^=S,E.low^=b}for(var C=0;C<24;C++){for(var _=0;_<5;_++){for(var T=0,w=0,O=0;O<5;O++){var E=d[_+5*O];T^=E.high,w^=E.low}var I=e[_];I.high=T,I.low=w}for(var _=0;_<5;_++)for(var R=e[(_+4)%5],M=e[(_+1)%5],F=M.high,P=M.low,T=R.high^(F<<1|P>>>31),w=R.low^(P<<1|F>>>31),O=0;O<5;O++){var E=d[_+5*O];E.high^=T,E.low^=w}for(var X=1;X<25;X++){var T,w,E=d[X],B=E.high,j=E.low,W=i[X];W<32?(T=B<<W|j>>>32-W,w=j<<W|B>>>32-W):(T=j<<W-32|B>>>64-W,w=B<<W-32|j>>>64-W);var z=e[t[X]];z.high=T,z.low=w}var V=e[0],Q=d[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var O=0;O<5;O++){var X=_+5*O,E=d[X],G=e[X],re=e[(_+1)%5+5*O],ee=e[(_+2)%5+5*O];E.high=G.high^~re.high&ee.high,E.low=G.low^~re.low&ee.low}var E=d[0],ue=o[C];E.high^=ue.high,E.low^=ue.low}},_doFinalize:function(){var s=this._data,c=s.words,d=this._nDataBytes*8,g=s.sigBytes*8,v=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(p.ceil((g+1)/v)*v>>>5)-1]|=128,s.sigBytes=c.length*4,this._process();for(var b=this._state,S=this.cfg.outputLength/8,E=S/8,C=[],_=0;_<E;_++){var T=b[_],w=T.high,O=T.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,C.push(O),C.push(w)}return new m.init(C,S)},clone:function(){for(var s=f.clone.call(this),c=s._state=this._state.slice(0),d=0;d<25;d++)c[d]=c[d].clone();return s}});x.SHA3=f._createHelper(l),x.HmacSHA3=f._createHmacHelper(l)}(Math),y.SHA3})},"5nXd":function(k,D,n){var y=n("MFOe"),p=y.slice,x=y.pluck,A=y.each,m=y.bind,f=y.create,h=y.isList,u=y.isFunction,a=y.isObject;k.exports={createStore:o};var i={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 o.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return o(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 o(e,l,r){r||(r=""),e&&!h(e)&&(e=[e]),l&&!h(l)&&(l=[l]);var s=r?"__storejs_"+r+"_":"",c=r?new RegExp("^"+s):null,d=/^[a-zA-Z0-9_\-]*$/;if(!d.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:s,_namespaceRegexp:c,_testStorage:function(S){try{var E="__storejs__test__";S.write(E,E);var C=S.read(E)===E;return S.remove(E),C}catch(_){return!1}},_assignPluginFnProp:function(S,E){var C=this[E];this[E]=function(){var T=p(arguments,0),w=this;function O(){return C?(A(arguments,function(R,M){T[M]=R}),C.apply(w,T)):void 0}var I=[O].concat(T);return S.apply(w,I)}},_serialize:function(S){return JSON.stringify(S)},_deserialize:function(S,E){if(!S)return E;var C="";try{C=JSON.parse(S)}catch(_){C=S}return C!==void 0?C:E},_addStorage:function(S){if(this.enabled)return;this._testStorage(S)&&(this.storage=S,this.enabled=!0)},_addPlugin:function(S){var E=this;if(h(S)){A(S,function(T){E._addPlugin(T)});return}var C=x(this.plugins,function(T){return S===T});if(C)return;if(this.plugins.push(S),!u(S))throw new Error("Plugins must be function values that return objects");var _=S.call(this);if(!a(_))throw new Error("Plugins must return an object of function properties");A(_,function(T,w){if(!u(T))throw new Error("Bad plugin property: "+w+" from plugin "+S.name+". Plugins should only return functions.");E._assignPluginFnProp(T,w)})},addStorage:function(S){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(S)}},v=f(g,i,{plugins:[]});return v.raw={},A(v,function(b,S){u(b)&&(v.raw[S]=m(v,b))}),A(e,function(b){v._addStorage(b)}),A(l,function(b){v._addPlugin(b)}),v}},"5rEg":function(k,D,n){"use strict";var y=n("mh/l"),p=n("lSNA"),x=n.n(p),A=n("q1tI"),m=n("TSYQ"),f=n.n(m),h=n("H84U"),u=function(W){return A.createElement(h.a,null,function(z){var V,Q=z.getPrefixCls,G=z.direction,re=W.prefixCls,ee=W.className,ue=ee===void 0?"":ee,$=Q("input-group",re),be=f()($,(V={},x()(V,"".concat($,"-lg"),W.size==="large"),x()(V,"".concat($,"-sm"),W.size==="small"),x()(V,"".concat($,"-compact"),W.compact),x()(V,"".concat($,"-rtl"),G==="rtl"),V),ue);return A.createElement("span",{className:be,style:W.style,onMouseEnter:W.onMouseEnter,onMouseLeave:W.onMouseLeave,onFocus:W.onFocus,onBlur:W.onBlur},W.children)})},a=u,i=n("pVnL"),t=n.n(i),o=n("c+Xe"),e=n("w6Tc"),l=n.n(e),r=n("gZBC"),s=n.n(r),c=n("2/Rp"),d=n("3Nzz"),g=n("0n0R"),v=function(j,W){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&W.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},b=A.forwardRef(function(j,W){var z=A.useRef(null),V=function(_e){var Ee=j.onChange,Xe=j.onSearch;_e&&_e.target&&_e.type==="click"&&Xe&&Xe(_e.target.value,_e),Ee&&Ee(_e)},Q=function(_e){var Ee;document.activeElement===((Ee=z.current)===null||Ee===void 0?void 0:Ee.input)&&_e.preventDefault()},G=function(_e){var Ee,Xe=j.onSearch,He=j.loading,nt=j.disabled;if(He||nt)return;Xe&&Xe((Ee=z.current)===null||Ee===void 0?void 0:Ee.input.value,_e)},re=function(_e){var Ee=j.enterButton,Xe=j.size;return Ee?A.createElement(d.b.Consumer,{key:"enterButton"},function(He){return A.createElement(c.a,{className:"".concat(_e,"-button"),type:"primary",size:Xe||He},A.createElement(s.a,null))}):A.createElement(s.a,{className:"".concat(_e,"-icon"),key:"loadingIcon"})},ee=function(_e){var Ee=j.suffix,Xe=j.enterButton,He=j.loading;if(He&&!Xe)return[Ee,re(_e)];if(Xe)return Ee;var nt=A.createElement(l.a,{className:"".concat(_e,"-icon"),key:"searchIcon",onClick:G});return Ee?[Object(g.c)(Ee,null,{key:"suffix"}),nt]:nt},ue=function(_e,Ee){var Xe=j.enterButton,He=j.disabled,nt=j.addonAfter,Ie=j.loading,oe="".concat(_e,"-button");if(Ie&&Xe)return[re(_e),nt];if(!Xe)return nt;var ot,he=Xe,J=he.type&&he.type.__ANT_BUTTON===!0;return J||he.type==="button"?ot=Object(g.a)(he,t()({onMouseDown:Q,onClick:G,key:"enterButton"},J?{className:oe,size:Ee}:{})):ot=A.createElement(c.a,{className:oe,type:"primary",size:Ee,disabled:He,key:"enterButton",onMouseDown:Q,onClick:G},Xe===!0?A.createElement(l.a,null):Xe),nt?[ot,Object(g.c)(nt,null,{key:"addonAfter"})]:ot},$=function(_e){var Ee=_e.getPrefixCls,Xe=_e.direction,He=j.prefixCls,nt=j.inputPrefixCls,Ie=j.enterButton,oe=j.className,ot=j.size,he=v(j,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete he.onSearch,delete he.loading;var J=Ee("input-search",He),Y=Ee("input",nt),q=function(we){var Ne;if(Ie){var je;Ne=f()(J,oe,(je={},x()(je,"".concat(J,"-rtl"),Xe==="rtl"),x()(je,"".concat(J,"-enter-button"),!!Ie),x()(je,"".concat(J,"-").concat(we),!!we),je))}else Ne=f()(J,oe,x()({},"".concat(J,"-rtl"),Xe==="rtl"));return Ne};return A.createElement(d.b.Consumer,null,function(fe){return A.createElement(y.a,t()({ref:Object(o.a)(z,W),onPressEnter:G},he,{size:ot||fe,prefixCls:Y,addonAfter:ue(J,ot||fe),suffix:ee(J),onChange:V,className:q(ot||fe)}))})};return A.createElement(h.a,null,$)});b.defaultProps={enterButton:!1},b.displayName="Search";var S=b,E=n("whJP"),C=n("J4zp"),_=n.n(C),T=n("BGR+"),w=n("qPY4"),O=n.n(w),I=n("fUL4"),R=n.n(I),M=function(j,W){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&W.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},F={click:"onClick",hover:"onMouseOver"},P=A.forwardRef(function(j,W){var z=Object(A.useState)(!1),V=_()(z,2),Q=V[0],G=V[1],re=function(){var be=j.disabled;if(be)return;G(!Q)},ee=function(be){var _e,Ee=j.action,Xe=j.iconRender,He=Xe===void 0?function(){return null}:Xe,nt=F[Ee]||"",Ie=He(Q),oe=(_e={},x()(_e,nt,re),x()(_e,"className","".concat(be,"-icon")),x()(_e,"key","passwordIcon"),x()(_e,"onMouseDown",function(he){he.preventDefault()}),x()(_e,"onMouseUp",function(he){he.preventDefault()}),_e);return A.cloneElement(A.isValidElement(Ie)?Ie:A.createElement("span",null,Ie),oe)},ue=function(be){var _e=be.getPrefixCls,Ee=j.className,Xe=j.prefixCls,He=j.inputPrefixCls,nt=j.size,Ie=j.visibilityToggle,oe=M(j,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),ot=_e("input",He),he=_e("input-password",Xe),J=Ie&&ee(he),Y=f()(he,Ee,x()({},"".concat(he,"-").concat(nt),!!nt)),q=t()(t()({},Object(T.default)(oe,["suffix","iconRender"])),{type:Q?"text":"password",className:Y,prefixCls:ot,suffix:J});return nt&&(q.size=nt),A.createElement(y.a,t()({ref:W},q))};return A.createElement(h.a,null,ue)});P.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(W){return W?A.createElement(O.a,null):A.createElement(R.a,null)}},P.displayName="Password";var X=P;y.a.Group=a,y.a.Search=S,y.a.TextArea=E.a,y.a.Password=X;var B=D.a=y.a},"5s0K":function(k,D,n){var y=n("bYtY");function p(){var x=[],A={},m;return{add:function(f,h,u,a,i){return y.isString(a)&&(i=a,a=0),A[f.id]?!1:(A[f.id]=1,x.push({el:f,target:h,time:u,delay:a,easing:i}),!0)},done:function(f){return m=f,this},start:function(){for(var f=x.length,h=0,u=x.length;h<u;h++){var a=x[h];a.el.animateTo(a.target,a.time,a.delay,a.easing,i)}return this;function i(){f--,f||(x.length=0,A={},m&&m())}}}}D.createWrap=p},"5yev":function(k,D,n){"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,n){var y=n("ProS");y.registerAction("legendScroll","legendscroll",function(p,x){var A=p.scrollDataIndex;A!=null&&x.eachComponent({mainType:"legend",subType:"scroll",query:p},function(m){m.setScrollDataIndex(A)})})},"62sa":function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=p.makeInner,A=n("zTMp"),m=n("Ez2D"),f=y.each,h=y.curry,u=x();function a(v,b,S){var E=v.currTrigger,C=[v.x,v.y],_=v,T=v.dispatchAction||y.bind(S.dispatchAction,S),w=b.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;g(C)&&(C=m({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var O=g(C),I=_.axesInfo,R=w.axesInfo,M=E==="leave"||g(C),F={},P={},X={list:[],map:{}},B={showPointer:h(o,P),showTooltip:h(e,X)};f(w.coordSysMap,function(W,z){var V=O||W.containPoint(C);f(w.coordSysAxesInfo[z],function(Q,G){var re=Q.axis,ee=c(I,Q);if(!M&&V&&(!I||ee)){var ue=ee&&ee.value;ue==null&&!O&&(ue=re.pointToData(C)),ue!=null&&i(Q,ue,B,!1,F)}})});var j={};return f(R,function(W,z){var V=W.linkGroup;V&&!P[z]&&f(V.axesInfo,function(Q,G){var re=P[G];if(Q!==W&&re){var ee=re.value;V.mapper&&(ee=W.axis.scale.parse(V.mapper(ee,d(Q),d(W)))),j[W.key]=ee}})}),f(j,function(W,z){i(R[z],W,B,!0,F)}),l(P,R,F),r(X,C,v,T),s(R,T,S),F}function i(v,b,S,E,C){var _=v.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!v.involveSeries){S.showPointer(v,b);return}var T=t(b,v),w=T.payloadBatch,O=T.snapToValue;w[0]&&C.seriesIndex==null&&y.extend(C,w[0]),!E&&v.snap&&(_.containData(O)&&O!=null&&(b=O)),S.showPointer(v,b,w,C),S.showTooltip(v,T,O)}function t(v,b){var S=b.axis,E=S.dim,C=v,_=[],T=Number.MAX_VALUE,w=-1;return f(b.seriesModels,function(O,I){var R=O.getData().mapDimension(E,!0),M,F;if(O.getAxisTooltipData){var P=O.getAxisTooltipData(R,v,S);F=P.dataIndices,M=P.nestestValue}else{if(F=O.getData().indicesOfNearest(R[0],v,S.type==="category"?.5:null),!F.length)return;M=O.getData().get(R[0],F[0])}if(M==null||!isFinite(M))return;var X=v-M,B=Math.abs(X);B<=T&&((B<T||X>=0&&w<0)&&(T=B,w=X,C=M,_.length=0),f(F,function(j){_.push({seriesIndex:O.seriesIndex,dataIndexInside:j,dataIndex:O.getData().getRawIndex(j)})}))}),{payloadBatch:_,snapToValue:C}}function o(v,b,S,E){v[b.key]={value:S,payloadBatch:E}}function e(v,b,S,E){var C=S.payloadBatch,_=b.axis,T=_.model,w=b.axisPointerModel;if(!b.triggerTooltip||!C.length)return;var O=b.coordSys.model,I=A.makeKey(O),R=v.map[I];R||(R=v.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.mainType,dataByAxis:[]},v.list.push(R)),R.dataByAxis.push({axisDim:_.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:E,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:C.slice()})}function l(v,b,S){var E=S.axesInfo=[];f(b,function(C,_){var T=C.axisPointerModel.option,w=v[_];w?(!C.useHandle&&(T.status="show"),T.value=w.value,T.seriesDataIndices=(w.payloadBatch||[]).slice()):!C.useHandle&&(T.status="hide"),T.status==="show"&&E.push({axisDim:C.axis.dim,axisIndex:C.axis.model.componentIndex,value:T.value})})}function r(v,b,S,E){if(g(b)||!v.list.length){E({type:"hideTip"});return}var C=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};E({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:C.dataIndexInside,dataIndex:C.dataIndex,seriesIndex:C.seriesIndex,dataByCoordSys:v.list})}function s(v,b,S){var E=S.getZr(),C="axisPointerLastHighlights",_=u(E)[C]||{},T=u(E)[C]={};f(v,function(I,R){var M=I.axisPointerModel.option;M.status==="show"&&f(M.seriesDataIndices,function(F){var P=F.seriesIndex+" | "+F.dataIndex;T[P]=F})});var w=[],O=[];y.each(_,function(I,R){!T[R]&&O.push(I)}),y.each(T,function(I,R){!_[R]&&w.push(I)}),O.length&&S.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),w.length&&S.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function c(v,b){for(var S=0;S<(v||[]).length;S++){var E=v[S];if(b.axis.dim===E.axisDim&&b.axis.model.componentIndex===E.axisIndex)return E}}function d(v){var b=v.axis.model,S={},E=S.axisDim=v.axis.dim;return S.axisIndex=S[E+"AxisIndex"]=b.componentIndex,S.axisName=S[E+"AxisName"]=b.name,S.axisId=S[E+"AxisId"]=b.id,S}function g(v){return!v||v[0]==null||isNaN(v[0])||v[1]==null||isNaN(v[1])}k.exports=a},"6BzB":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.shrinkBuf=y,D.arraySet=p,D.flattenChunks=x,D.Buf32=D.Buf16=D.Buf8=void 0;function y(h,u){return h.length===u?h:h.subarray?h.subarray(0,u):(h.length=u,h)}function p(h,u,a,i,t){if(u.subarray&&h.subarray){h.set(u.subarray(a,a+i),t);return}for(var o=0;o<i;o++)h[t+o]=u[a+o]}function x(h){var u,a,i,t,o,e;for(i=0,u=0,a=h.length;u<a;u++)i+=h[u].length;for(e=new Uint8Array(i),t=0,u=0,a=h.length;u<a;u++)o=h[u],e.set(o,t),t+=o.length;return e}var A=Uint8Array;D.Buf8=A;var m=Uint16Array;D.Buf16=m;var f=Int32Array;D.Buf32=f},"6D9b":function(k,D,n){},"6GrX":function(k,D,n){var y=n("mFDi"),p=n("Xnb7"),x=n("bYtY"),A=x.getContext,m=x.extend,f=x.retrieve2,h=x.retrieve3,u=x.trim,a={},i=0,t=5e3,o=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function r(X,B){l[X]=B}function s(X,B){B=B||e;var j=X+":"+B;if(a[j])return a[j];for(var W=(X+"").split(`
`),z=0,V=0,Q=W.length;V<Q;V++)z=Math.max(I(W[V],B).width,z);return i>t&&(i=0,a={}),i++,a[j]=z,z}function c(X,B,j,W,z,V,Q,G){return Q?g(X,B,j,W,z,V,Q,G):d(X,B,j,W,z,V,G)}function d(X,B,j,W,z,V,Q){var G=R(X,B,z,V,Q),re=s(X,B);z&&(re+=z[1]+z[3]);var ee=G.outerHeight,ue=v(0,re,j),$=b(0,ee,W),be=new y(ue,$,re,ee);return be.lineHeight=G.lineHeight,be}function g(X,B,j,W,z,V,Q,G){var re=M(X,{rich:Q,truncate:G,font:B,textAlign:j,textPadding:z,textLineHeight:V}),ee=re.outerWidth,ue=re.outerHeight,$=v(0,ee,j),be=b(0,ue,W);return new y($,be,ee,ue)}function v(X,B,j){return j==="right"?X-=B:j==="center"&&(X-=B/2),X}function b(X,B,j){return j==="middle"?X-=B/2:j==="bottom"&&(X-=B),X}function S(X,B,j){var W=B.textPosition,z=B.textDistance,V=j.x,Q=j.y;z=z||0;var G=j.height,re=j.width,ee=G/2,ue="left",$="top";switch(W){case"left":V-=z,Q+=ee,ue="right",$="middle";break;case"right":V+=z+re,Q+=ee,$="middle";break;case"top":V+=re/2,Q-=z,ue="center",$="bottom";break;case"bottom":V+=re/2,Q+=G+z,ue="center";break;case"inside":V+=re/2,Q+=ee,ue="center",$="middle";break;case"insideLeft":V+=z,Q+=ee,$="middle";break;case"insideRight":V+=re-z,Q+=ee,ue="right",$="middle";break;case"insideTop":V+=re/2,Q+=z,ue="center";break;case"insideBottom":V+=re/2,Q+=G-z,ue="center",$="bottom";break;case"insideTopLeft":V+=z,Q+=z;break;case"insideTopRight":V+=re-z,Q+=z,ue="right";break;case"insideBottomLeft":V+=z,Q+=G-z,$="bottom";break;case"insideBottomRight":V+=re-z,Q+=G-z,ue="right",$="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=ue,X.textVerticalAlign=$,X}function E(X,B,j){var W={textPosition:X,textDistance:j};return S({},W,B)}function C(X,B,j,W,z){if(!B)return"";var V=(X+"").split(`
`);z=_(B,j,W,z);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=T(V[Q],z);return V.join(`
`)}function _(X,B,j,W){W=m({},W),W.font=B;var j=f(j,"...");W.maxIterations=f(W.maxIterations,2);var z=W.minChar=f(W.minChar,0);W.cnCharWidth=s("\u56FD",B);var V=W.ascCharWidth=s("a",B);W.placeholder=f(W.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<z&&Q>=V;G++)Q-=V;var re=s(j,B);return re>Q&&(j="",re=0),Q=X-re,W.ellipsis=j,W.ellipsisWidth=re,W.contentWidth=Q,W.containerWidth=X,W}function T(X,B){var j=B.containerWidth,W=B.font,z=B.contentWidth;if(!j)return"";var V=s(X,W);if(V<=j)return X;for(var Q=0;;Q++){if(V<=z||Q>=B.maxIterations){X+=B.ellipsis;break}var G=Q===0?w(X,z,B.ascCharWidth,B.cnCharWidth):V>0?Math.floor(X.length*z/V):0;X=X.substr(0,G),V=s(X,W)}return X===""&&(X=B.placeholder),X}function w(X,B,j,W){for(var z=0,V=0,Q=X.length;V<Q&&z<B;V++){var G=X.charCodeAt(V);z+=0<=G&&G<=127?j:W}return V}function O(X){return s("\u56FD",X)}function I(X,B){return l.measureText(X,B)}l.measureText=function(X,B){var j=A();return j.font=B||e,j.measureText(X)};function R(X,B,j,W,z){X!=null&&(X+="");var V=f(W,O(B)),Q=X?X.split(`
`):[],G=Q.length*V,re=G,ee=!0;if(j&&(re+=j[0]+j[2]),X&&z){ee=!1;var ue=z.outerHeight,$=z.outerWidth;if(ue!=null&&re>ue)X="",Q=[];else if($!=null)for(var be=_($-(j?j[1]+j[3]:0),B,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),_e=0,Ee=Q.length;_e<Ee;_e++)Q[_e]=T(Q[_e],be)}return{lines:Q,height:G,outerHeight:re,lineHeight:V,canCacheByTextString:ee}}function M(X,B){var j={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return j;for(var W=o.lastIndex=0,z;(z=o.exec(X))!=null;){var V=z.index;V>W&&F(j,X.substring(W,V)),F(j,z[2],z[1]),W=o.lastIndex}W<X.length&&F(j,X.substring(W,X.length));var Q=j.lines,G=0,re=0,ee=[],ue=B.textPadding,$=B.truncate,be=$&&$.outerWidth,_e=$&&$.outerHeight;ue&&(be!=null&&(be-=ue[1]+ue[3]),_e!=null&&(_e-=ue[0]+ue[2]));for(var Ee=0;Ee<Q.length;Ee++){for(var Xe=Q[Ee],He=0,nt=0,Ie=0;Ie<Xe.tokens.length;Ie++){var oe=Xe.tokens[Ie],ot=oe.styleName&&B.rich[oe.styleName]||{},he=oe.textPadding=ot.textPadding,J=oe.font=ot.font||B.font,Y=oe.textHeight=f(ot.textHeight,O(J));if(he&&(Y+=he[0]+he[2]),oe.height=Y,oe.lineHeight=h(ot.textLineHeight,B.textLineHeight,Y),oe.textAlign=ot&&ot.textAlign||B.textAlign,oe.textVerticalAlign=ot&&ot.textVerticalAlign||"middle",_e!=null&&G+oe.lineHeight>_e)return{lines:[],width:0,height:0};oe.textWidth=s(oe.text,J);var q=ot.textWidth,fe=q==null||q==="auto";if(typeof q=="string"&&q.charAt(q.length-1)==="%")oe.percentWidth=q,ee.push(oe),q=0;else{if(fe){q=oe.textWidth;var we=ot.textBackgroundColor,Ne=we&&we.image;Ne&&(Ne=p.findExistImage(Ne),p.isImageReady(Ne)&&(q=Math.max(q,Ne.width*Y/Ne.height)))}var je=he?he[1]+he[3]:0;q+=je;var me=be!=null?be-nt:null;me!=null&&me<q&&(!fe||me<je?(oe.text="",oe.textWidth=q=0):(oe.text=C(oe.text,me-je,J,$.ellipsis,{minChar:$.minChar}),oe.textWidth=s(oe.text,J),q=oe.textWidth+je))}nt+=oe.width=q,ot&&(He=Math.max(He,oe.lineHeight))}Xe.width=nt,Xe.lineHeight=He,G+=He,re=Math.max(re,nt)}j.outerWidth=j.width=f(B.textWidth,re),j.outerHeight=j.height=f(B.textHeight,G),ue&&(j.outerWidth+=ue[1]+ue[3],j.outerHeight+=ue[0]+ue[2]);for(var Ee=0;Ee<ee.length;Ee++){var oe=ee[Ee],Ce=oe.percentWidth;oe.width=parseInt(Ce,10)/100*re}return j}function F(X,B,j){for(var W=B==="",z=B.split(`
`),V=X.lines,Q=0;Q<z.length;Q++){var G=z[Q],re={styleName:j,text:G,isLineHolder:!G&&!W};if(Q)V.push({tokens:[re]});else{var ee=(V[V.length-1]||(V[0]={tokens:[]})).tokens,ue=ee.length;ue===1&&ee[0].isLineHolder?ee[0]=re:(G||!ue||W)&&ee.push(re)}}}function P(X){var B=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return B&&u(B)||X.textFont||X.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=s,D.getBoundingRect=c,D.adjustTextX=v,D.adjustTextY=b,D.calculateTextPosition=S,D.adjustTextPositionOnRect=E,D.truncateText=C,D.getLineHeight=O,D.measureText=I,D.parsePlainText=R,D.parseRichText=M,D.makeFont=P},"6Hfg":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("FhB9")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="SwapRightOutlined";var i=A.forwardRef(a);D.default=i},"6Ic6":function(k,D,n){var y=n("bYtY"),p=y.each,x=n("4fz+"),A=n("iRjW"),m=n("Yl7c"),f=n("4NO4"),h=n("IwbS"),u=n("9H2F"),a=u.createTask,i=n("zM3Q"),t=f.makeInner(),o=i();function e(){this.group=new x,this.uid=A.getUID("viewChart"),this.renderTask=a({plan:c,reset:d}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(b,S){},render:function(b,S,E,C){},highlight:function(b,S,E,C){s(b.getData(),C,"emphasis")},downplay:function(b,S,E,C){s(b.getData(),C,"normal")},remove:function(b,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var l=e.prototype;l.updateView=l.updateLayout=l.updateVisual=function(b,S,E,C){this.render(b,S,E,C)};function r(b,S,E){if(b&&(b.trigger(S,E),b.isGroup&&!h.isHighDownDispatcher(b)))for(var C=0,_=b.childCount();C<_;C++)r(b.childAt(C),S,E)}function s(b,S,E){var C=f.queryDataIndex(b,S),_=S&&S.highlightKey!=null?h.getHighlightDigit(S.highlightKey):null;C!=null?p(f.normalizeToArray(C),function(T){r(b.getItemGraphicEl(T),E,_)}):b.eachItemGraphicEl(function(T){r(T,E,_)})}m.enableClassExtend(e,["dispose"]),m.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(b,S){t(b).updateMethod=S};function c(b){return o(b.model)}function d(b){var S=b.model,E=b.ecModel,C=b.api,_=b.payload,T=S.pipelineContext.progressiveRender,w=b.view,O=_&&t(_).updateMethod,I=T?"incrementalPrepareRender":O&&w[O]?O:"render";return I!=="render"&&w[I](S,E,C,_),g[I]}var g={incrementalPrepareRender:{progress:function(b,S){S.view.incrementalRender(b,S.model,S.ecModel,S.api,S.payload)}},render:{forceFirstProgress:!0,progress:function(b,S){S.view.render(S.model,S.ecModel,S.api,S.payload)}}},v=e;k.exports=v},"6MrE":function(k,D,n){},"6Qwc":function(k,D,n){"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,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("qWUW"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"6UJt":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("v56E"),A=n.n(x),m=n("R9oj"),f=n("5NDa")},"6VBw":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("ODXe"),x=n("rePB"),A=n("Ff2n"),m=n("q1tI"),f=n("TSYQ"),h=n.n(f),u=n("Pw59"),a=n("Qi1f"),i=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function o(b){var S=b.primaryColor,E=b.secondaryColor;t.primaryColor=S,t.secondaryColor=E||Object(a.b)(S),t.calculated=!!E}function e(){return Object(y.a)({},t)}var l=function(S){var E=S.icon,C=S.className,_=S.onClick,T=S.style,w=S.primaryColor,O=S.secondaryColor,I=Object(A.a)(S,i),R=t;if(w&&(R={primaryColor:w,secondaryColor:O||Object(a.b)(w)}),Object(a.f)(),Object(a.g)(Object(a.c)(E),"icon should be icon definiton, but got ".concat(E)),!Object(a.c)(E))return null;var M=E;return M&&typeof M.icon=="function"&&(M=Object(y.a)(Object(y.a)({},M),{},{icon:M.icon(R.primaryColor,R.secondaryColor)})),Object(a.a)(M.icon,"svg-".concat(M.name),Object(y.a)({className:C,onClick:_,style:T,"data-icon":M.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=o;var r=l;function s(b){var S=Object(a.d)(b),E=Object(p.a)(S,2),C=E[0],_=E[1];return r.setTwoToneColors({primaryColor:C,secondaryColor:_})}function c(){var b=r.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var d=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];s("#1890ff");var g=m.forwardRef(function(b,S){var E,C=b.className,_=b.icon,T=b.spin,w=b.rotate,O=b.tabIndex,I=b.onClick,R=b.twoToneColor,M=Object(A.a)(b,d),F=m.useContext(u.a),P=F.prefixCls,X=P===void 0?"anticon":P,B=F.rootClassName,j=h()(B,X,(E={},Object(x.a)(E,"".concat(X,"-").concat(_.name),!!_.name),Object(x.a)(E,"".concat(X,"-spin"),!!T||_.name==="loading"),E),C),W=O;W===void 0&&I&&(W=-1);var z=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,V=Object(a.d)(R),Q=Object(p.a)(V,2),G=Q[0],re=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},M),{},{ref:S,tabIndex:W,onClick:I,className:j}),m.createElement(r,{icon:_,primaryColor:G,secondaryColor:re,style:z}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=s;var v=D.a=g},"6cGi":function(k,D,n){"use strict";n.d(D,"a",function(){return h});var y=n("ODXe"),p=n("q1tI");function x(u){var a=p.useRef();a.current=u;var i=p.useCallback(function(){for(var t,o=arguments.length,e=new Array(o),l=0;l<o;l++)e[l]=arguments[l];return(t=a.current)===null||t===void 0?void 0:t.call.apply(t,[a].concat(e))},[]);return i}var A=n("TNol"),m=n("dm2S");function f(u){return u!==void 0}function h(u,a){var i=a||{},t=i.defaultValue,o=i.value,e=i.onChange,l=i.postState,r=Object(m.a)(function(){return f(o)?o:f(t)?typeof t=="function"?t():t:typeof u=="function"?u():u}),s=Object(y.a)(r,2),c=s[0],d=s[1],g=o!==void 0?o:c,v=l?l(g):g,b=x(e),S=Object(m.a)([g]),E=Object(y.a)(S,2),C=E[0],_=E[1];Object(A.b)(function(){var w=C[0];c!==w&&b(c,w)},[C]),Object(A.b)(function(){f(o)||d(o)},[o]);var T=x(function(w,O){d(w,O),_([g],O)});return[v,T]}},"6fms":function(k,D,n){var y=n("SUKs"),p=n("06Qe"),x=n("bYtY"),A=x.each;function m(a){return parseInt(a,10)}function f(a,i){p.initVML(),this.root=a,this.storage=i;var t=document.createElement("div"),o=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",o.style.cssText="position:absolute;left:0;top:0;",a.appendChild(t),this._vmlRoot=o,this._vmlViewport=t,this.resize();var e=i.delFromStorage,l=i.addToStorage;i.delFromStorage=function(r){e.call(i,r),r&&(r.onRemove&&r.onRemove(o))},i.addToStorage=function(r){r.onAdd&&r.onAdd(o),l.call(i,r)},this._firstPaint=!0}f.prototype={constructor:f,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},refresh:function(){var i=this.storage.getDisplayList(!0,!0);this._paintList(i)},_paintList:function(i){for(var t=this._vmlRoot,o=0;o<i.length;o++){var e=i[o];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(t),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(t),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,t),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(i,t){var i=i==null?this._getWidth():i,t=t==null?this._getHeight():t;if(this._width!==i||this._height!==t){this._width=i,this._height=t;var o=this._vmlViewport.style;o.width=i+"px",o.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var i=this.root,t=i.currentStyle;return(i.clientWidth||m(t.width))-m(t.paddingLeft)-m(t.paddingRight)|0},_getHeight:function(){var i=this.root,t=i.currentStyle;return(i.clientHeight||m(t.height))-m(t.paddingTop)-m(t.paddingBottom)|0}};function h(a){return function(){y('In IE8.0 VML mode painter not support method "'+a+'"')}}A(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(a){f.prototype[a]=h(a)});var u=f;k.exports=u},"6ner":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("1OyB"),x=n("vuIU"),A=n("Ji7U"),m=n("LK+K"),f=n("q1tI"),h=n.n(f),u=n("m+aA"),a=n("Zm9Q"),i=n("Kwbf"),t=n("c+Xe"),o=n("bdgK"),e="rc-observer-key",l=function(r){Object(A.a)(c,r);var s=Object(m.a)(c);function c(){var d;return Object(p.a)(this,c),d=s.apply(this,arguments),d.resizeObserver=null,d.childNode=null,d.currentElement=null,d.state={width:0,height:0,offsetHeight:0,offsetWidth:0},d.onResize=function(g){var v=d.props.onResize,b=g[0].target,S=b.getBoundingClientRect(),E=S.width,C=S.height,_=b.offsetWidth,T=b.offsetHeight,w=Math.floor(E),O=Math.floor(C);if(d.state.width!==w||d.state.height!==O||d.state.offsetWidth!==_||d.state.offsetHeight!==T){var I={width:w,height:O,offsetWidth:_,offsetHeight:T};d.setState(I),v&&Promise.resolve().then(function(){v(Object(y.a)(Object(y.a)({},I),{},{offsetWidth:_,offsetHeight:T}))})}},d.setChildNode=function(g){d.childNode=g},d}return Object(x.a)(c,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var g=this.props.disabled;if(g){this.destroyObserver();return}var v=Object(u.a)(this.childNode||this),b=v!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=v),!this.resizeObserver&&v&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(v))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var g=this.props.children,v=Object(a.a)(g);if(v.length>1)Object(i.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(v.length===0)return Object(i.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=v[0];if(f.isValidElement(b)&&Object(t.c)(b)){var S=b.ref;v[0]=f.cloneElement(b,{ref:Object(t.a)(S,this.setChildNode)})}return v.length===1?v[0]:v.map(function(E,C){return!f.isValidElement(E)||"key"in E&&E.key!==null?E:f.cloneElement(E,{key:"".concat(e,"-").concat(C)})})}}]),c}(f.Component);l.displayName="ResizeObserver",D.a=l},"6r85":function(k,D,n){var y=n("bYtY");function p(x){if(!x||!y.isArray(x.series))return;y.each(x.series,function(A){y.isObject(A)&&A.type==="k"&&(A.type="candlestick")})}k.exports=p},"6sVZ":function(k,D){var n=Object.prototype;function y(p){var x=p&&p.constructor,A=typeof x=="function"&&x.prototype||n;return p===A}k.exports=y},"6uqw":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ItGF"),A=n("YOMW"),m=n("XxSj"),f=n("K4ya"),h=n("4NO4"),u=n("OELB"),a=m.mapVisual,i=m.eachVisual,t=p.isArray,o=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(d,g,v){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(d,v)},optionUpdated:function(d,g){var v=this.option;x.canvasSupported||(v.realtime=!1),!g&&f.replaceVisualOption(v,d,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(d){var g=this.stateList;d=p.bind(d,this),this.controllerVisuals=f.createVisualMappings(this.option.controller,g,d),this.targetVisuals=f.createVisualMappings(this.option.target,g,d)},getTargetSeriesIndices:function(){var d=this.option.seriesIndex,g=[];return d==null||d==="all"?this.ecModel.eachSeries(function(v,b){g.push(b)}):g=h.normalizeToArray(d),g},eachTargetSeries:function(d,g){p.each(this.getTargetSeriesIndices(),function(v){d.call(g,this.ecModel.getSeriesByIndex(v))},this)},isTargetSeries:function(d){var g=!1;return this.eachTargetSeries(function(v){v===d&&(g=!0)}),g},formatValueText:function(d,g,v){var b=this.option,S=b.precision,E=this.dataBound,C=b.formatter,_,T;if(v=v||["<",">"],p.isArray(d)&&(d=d.slice(),_=!0),T=g?d:_?[w(d[0]),w(d[1])]:w(d),p.isString(C))return C.replace("{value}",_?T[0]:T).replace("{value2}",_?T[1]:T);if(p.isFunction(C))return _?C(d[0],d[1]):C(d);if(_)return d[0]===E[0]?v[0]+" "+T[1]:d[1]===E[1]?v[1]+" "+T[0]:T[0]+" - "+T[1];return T;function w(O){return O===E[0]?"min":O===E[1]?"max":(+O).toFixed(Math.min(S,20))}},resetExtent:function(){var d=this.option,g=e([d.min,d.max]);this._dataExtent=g},getDataDimension:function(d){var g=this.option.dimension,v=d.dimensions;if(g==null&&!v.length)return;if(g!=null)return d.getDimension(g);for(var b=d.dimensions,S=b.length-1;S>=0;S--){var E=b[S],C=d.getDimensionInfo(E);if(!C.isCalculationCoord)return E}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var d=this.ecModel,g=this.option,v={inRange:g.inRange,outOfRange:g.outOfRange},b=g.target||(g.target={}),S=g.controller||(g.controller={});p.merge(b,v),p.merge(S,v);var E=this.isCategory();C.call(this,b),C.call(this,S),_.call(this,b,"inRange","outOfRange"),T.call(this,S);function C(w){t(g.color)&&!w.inRange&&(w.inRange={color:g.color.slice().reverse()}),w.inRange=w.inRange||{color:d.get("gradientColor")},o(this.stateList,function(O){var I=w[O];if(p.isString(I)){var R=A.get(I,"active",E);R?(w[O]={},w[O][I]=R):delete w[O]}},this)}function _(w,O,I){var R=w[O],M=w[I];R&&!M&&(M=w[I]={},o(R,function(F,P){if(!m.isValidType(P))return;var X=A.get(P,"inactive",E);X!=null&&(M[P]=X,P==="color"&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}))}function T(w){var O=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,I=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,R=this.get("inactiveColor");o(this.stateList,function(M){var F=this.itemSize,P=w[M];P||(P=w[M]={color:E?R:[R]}),P.symbol==null&&(P.symbol=O&&p.clone(O)||(E?"roundRect":["roundRect"])),P.symbolSize==null&&(P.symbolSize=I&&p.clone(I)||(E?F[0]:[F[0],F[0]])),P.symbol=a(P.symbol,function(j){return j==="none"||j==="square"?"roundRect":j});var X=P.symbolSize;if(X!=null){var B=-Infinity;i(X,function(j){j>B&&(B=j)}),P.symbolSize=a(X,function(j){return l(j,[0,B],[0,F[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,n){var y=n("bYtY");function p(A,m){return y.map(["Radius","Angle"],function(f,h){var u=this["get"+f+"Axis"](),a=m[h],i=A[h]/2,t="dataTo"+f,o=u.type==="category"?u.getBandWidth():Math.abs(u[t](a-i)-u[t](a+i));return f==="Angle"&&(o=o*Math.PI/180),o},this)}function x(A){var m=A.getRadiusAxis(),f=A.getAngleAxis(),h=m.getExtent();return h[0]>h[1]&&h.reverse(),{coordSys:{type:"polar",cx:A.cx,cy:A.cy,r:h[1],r0:h[0]},api:{coord:y.bind(function(u){var a=m.dataToRadius(u[0]),i=f.dataToAngle(u[1]),t=A.coordToPoint([a,i]);return t.push(a,i*Math.PI/180),t}),size:y.bind(p,A)}}}k.exports=x},"6xvX":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("V7ic"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"711d":function(k,D){function n(y){return function(p){return p==null?void 0:p[y]}}k.exports=n},"72pK":function(k,D){function n(x,A,m,f,h,u){x=x||0;var a=m[1]-m[0];if(h!=null&&(h=p(h,[0,a])),u!=null&&(u=Math.max(u,h!=null?h:0)),f==="all"){var i=Math.abs(A[1]-A[0]);i=p(i,[0,a]),h=u=p(i,[h,u]),f=0}A[0]=p(A[0],m),A[1]=p(A[1],m);var t=y(A,f);A[f]+=x;var o=h||0,e=m.slice();t.sign<0?e[0]+=o:e[1]-=o,A[f]=p(A[f],e);var l=y(A,f);h!=null&&(l.sign!==t.sign||l.span<h)&&(A[1-f]=A[f]+t.sign*h);var l=y(A,f);return u!=null&&l.span>u&&(A[1-f]=A[f]+l.sign*u),A}function y(x,A){var m=x[A]-x[1-A];return{span:Math.abs(m),sign:m>0?-1:m<0?1:A?-1:1}}function p(x,A){return Math.min(A[1]!=null?A[1]:Infinity,Math.max(A[0]!=null?A[0]:-Infinity,x))}k.exports=n},"75ce":function(k,D,n){var y=n("ProS");n("IXuL"),n("8X+K");var p=n("f5Yq"),x=n("h8O9"),A=n("/d5a");n("Ae16"),y.registerVisual(p("line","circle","line")),y.registerLayout(x("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(k,D,n){var y=n("ProS");n("IWNH"),n("bNin"),n("v5uJ");var p=n("f5Yq"),x=n("yik8");y.registerVisual(p("tree","circle")),y.registerLayout(x)},"77Zs":function(k,D,n){var y=n("Xi7e");function p(){this.__data__=new y,this.size=0}k.exports=p},"7AJT":function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u,a){p.call(this,m,f,h),this.type=u||"value",this.position=a||"bottom"};x.prototype={constructor:x,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},getGlobalExtent:function(m){var 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(x,p);var A=x;k.exports=A},"7Cbv":function(k,D,n){"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 x(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(p)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return typeof e=="string"&&A.test(e)}for(var f=m,h=[],u=0;u<256;++u)h.push((u+256).toString(16).substr(1));function a(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(h[e[l+0]]+h[e[l+1]]+h[e[l+2]]+h[e[l+3]]+"-"+h[e[l+4]]+h[e[l+5]]+"-"+h[e[l+6]]+h[e[l+7]]+"-"+h[e[l+8]]+h[e[l+9]]+"-"+h[e[l+10]]+h[e[l+11]]+h[e[l+12]]+h[e[l+13]]+h[e[l+14]]+h[e[l+15]]).toLowerCase();if(!f(r))throw TypeError("Stringified UUID is invalid");return r}var i=a;function t(e,l,r){e=e||{};var s=e.random||(e.rng||x)();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 i(s)}var o=D.a=t},"7DRL":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.createHashMap,m=x.isString,f=x.isArray,h=x.each,u=x.assert,a=n("MEGo"),i=a.parseXML,t=A(),o={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}]),h(c,function(d){var g=d.type;g==="geoJson"&&(g=d.type="geoJSON");var v=e[g];v(d)}),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=i(l.source)}};k.exports=o},"7G+c":function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.isTypedArray,A=n("Yl7c"),m=A.enableClassCheck,f=n("k9D9"),h=f.SOURCE_FORMAT_ORIGINAL,u=f.SERIES_LAYOUT_BY_COLUMN,a=f.SOURCE_FORMAT_UNKNOWN,i=f.SOURCE_FORMAT_TYPED_ARRAY,t=f.SOURCE_FORMAT_KEYED_COLUMNS;function o(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===t?{}:[]),this.sourceFormat=l.sourceFormat||a,this.seriesLayoutBy=l.seriesLayoutBy||u,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&p(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}o.seriesDataToSource=function(l){return new o({data:l,sourceFormat:x(l)?i:h,fromDataset:!1})},m(o);var e=o;k.exports=e},"7GkX":function(k,D,n){var y=n("b80T"),p=n("A90E"),x=n("MMmD");function A(m){return x(m)?y(m):p(m)}k.exports=A},"7Kak":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("KPFz"),A=n.n(x)},"7Phj":function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,A=y.each;function m(a){var i=f(a);A(i,function(t){var o=t.seriesModels;if(!o.length)return;h(t),A(o,function(e,l){u(e,t.boxOffsetList[l],t.boxWidthList[l])})})}function f(a){var i=[],t=[];return a.eachSeriesByType("boxplot",function(o){var e=o.getBaseAxis(),l=y.indexOf(t,e);l<0&&(l=t.length,t[l]=e,i[l]={axis:e,seriesModels:[]}),i[l].seriesModels.push(o)}),i}function h(a){var i,t=a.axis,o=a.seriesModels,e=o.length,l=a.boxWidthList=[],r=a.boxOffsetList=[],s=[],c;if(t.type==="category")c=t.getBandWidth();else{var d=0;A(o,function(E){d=Math.max(d,E.getData().count())}),i=t.getExtent(),Math.abs(i[1]-i[0])/d}A(o,function(E){var C=E.get("boxWidth");y.isArray(C)||(C=[C,C]),s.push([x(C[0],c)||0,x(C[1],c)||0])});var g=c*.8-2,v=g/e*.3,b=(g-v*(e-1))/e,S=b/2-g/2;A(o,function(E,C){r.push(S),S+=v+b,l.push(Math.min(Math.max(b,s[C][0]),s[C][1]))})}function u(a,i,t){var o=a.coordinateSystem,e=a.getData(),l=t/2,r=a.get("layout")==="horizontal"?0:1,s=1-r,c=["x","y"],d=e.mapDimension(c[r]),g=e.mapDimension(c[s],!0);if(d==null||g.length<5)return;for(var v=0;v<e.count();v++){var b=e.get(d,v),S=O(b,g[2],v),E=O(b,g[0],v),C=O(b,g[1],v),_=O(b,g[3],v),T=O(b,g[4],v),w=[];I(w,C,0),I(w,_,1),w.push(E,C,T,_),R(w,E),R(w,T),R(w,S),e.setItemLayout(v,{initBaseline:S[s],ends:w})}function O(M,F,P){var X=e.get(F,P),B=[];B[r]=M,B[s]=X;var j;return isNaN(M)||isNaN(X)?j=[NaN,NaN]:(j=o.dataToPoint(B),j[r]+=i),j}function I(M,F,P){var X=F.slice(),B=F.slice();X[r]+=l,B[r]-=l,P?M.push(X,B):M.push(B,X)}function R(M,F){var P=F.slice(),X=F.slice();P[r]-=l,X[r]+=l,M.push(P,X)}}k.exports=m},"7SHv":function(k,D,n){var y=n("LPTA"),p=y.devicePixelRatio,x=n("bYtY"),A=n("SUKs"),m=n("mFDi"),f=n("BPZU"),h=n("Xmg4"),u=n("mLcG"),a=n("Dagg"),i=n("ItGF"),t=1e5,o=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),d=new m(0,0,0,0);function g(_,T,w){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),d.width=T,d.height=w,!c.intersect(d)}function v(_,T){if(_===T)return!1;if(!_||!T||_.length!==T.length)return!0;for(var w=0;w<_.length;w++)if(_[w]!==T[w])return!0;return!1}function b(_,T){for(var w=0;w<_.length;w++){var O=_[w];O.setTransform(T),T.beginPath(),O.buildPath(T,O.shape),T.clip(),O.restoreTransform(T)}}function S(_,T){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+_+"px","height:"+T+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var E=function(T,w,O){this.type="canvas";var I=!T.nodeName||T.nodeName.toUpperCase()==="CANVAS";this._opts=O=x.extend({},O||{}),this.dpr=O.devicePixelRatio||p,this._singleCanvas=I,this.root=T;var R=T.style;R&&(R["-webkit-tap-highlight-color"]="transparent",R["-webkit-user-select"]=R["user-select"]=R["-webkit-touch-callout"]="none",T.innerHTML=""),this.storage=w;var M=this._zlevelList=[],F=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var X=T.width,B=T.height;O.width!=null&&(X=O.width),O.height!=null&&(B=O.height),this.dpr=O.devicePixelRatio||1,T.width=X*this.dpr,T.height=B*this.dpr,this._width=X,this._height=B;var j=new h(T,this,this.dpr);j.__builtin__=!0,j.initContext(),F[o]=j,j.zlevel=o,M.push(o),this._domRoot=T}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=S(this._width,this._height);T.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};E.prototype={constructor:E,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var T=this.getViewportRoot();if(T)return{offsetLeft:T.offsetLeft||0,offsetTop:T.offsetTop||0}},refresh:function(T){var w=this.storage.getDisplayList(!0),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,T,this._redrawId);for(var I=0;I<O.length;I++){var R=O[I],M=this._layers[R];if(!M.__builtin__&&M.refresh){var F=I===0?this._backgroundColor:null;M.refresh(F)}}return this.refreshHover(),this},addHover:function(T,w){if(T.__hoverMir)return;var O=new T.constructor({style:T.style,shape:T.shape,z:T.z,z2:T.z2,silent:T.silent});return O.__from=T,T.__hoverMir=O,w&&O.setStyle(w),this._hoverElements.push(O),O},removeHover:function(T){var w=T.__hoverMir,O=this._hoverElements,I=x.indexOf(O,w);I>=0&&O.splice(I,1),T.__hoverMir=null},clearHover:function(T){for(var w=this._hoverElements,O=0;O<w.length;O++){var I=w[O].__from;I&&(I.__hoverMir=null)}w.length=0},refreshHover:function(){var T=this._hoverElements,w=T.length,O=this._hoverlayer;if(O&&O.clear(),!w)return;f(T,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(t));var I={};O.ctx.save();for(var R=0;R<w;){var M=T[R],F=M.__from;if(!(F&&F.__zr)){T.splice(R,1),F.__hoverMir=null,w--;continue}R++,F.invisible||(M.transform=F.transform,M.invTransform=F.invTransform,M.__clipPaths=F.__clipPaths,this._doPaintEl(M,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(T,w,O){if(this._redrawId!==O)return;w=w||!1,this._updateLayerStatus(T);var I=this._doPaintList(T,w);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var R=this;u(function(){R._paintList(T,w,O)})}},_compositeManually:function(){var T=this.getLayer(o).ctx,w=this._domRoot.width,O=this._domRoot.height;T.clearRect(0,0,w,O),this.eachBuiltinLayer(function(I){I.virtual&&T.drawImage(I.dom,0,0,w,O)})},_doPaintList:function(T,w){for(var O=[],I=0;I<this._zlevelList.length;I++){var R=this._zlevelList[I],M=this._layers[R];M.__builtin__&&M!==this._hoverlayer&&(M.__dirty||w)&&O.push(M)}for(var F=!0,P=0;P<O.length;P++){var M=O[P],X=M.ctx,B={};X.save();var j=w?M.__startIndex:M.__drawIndex,W=!w&&M.incremental&&Date.now,z=W&&Date.now(),V=M.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,V);else if(j===M.__startIndex){var Q=T[j];(!Q.incremental||!Q.notClear||w)&&M.clear(!1,V)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=M.__startIndex);for(var G=j;G<M.__endIndex;G++){var re=T[G];if(this._doPaintEl(re,M,w,B),re.__dirty=re.__dirtyText=!1,W){var ee=Date.now()-z;if(ee>15)break}}M.__drawIndex=G,M.__drawIndex<M.__endIndex&&(F=!1),B.prevElClipPaths&&X.restore(),X.restore()}return i.wxa&&x.each(this._layers,function(ue){ue&&ue.ctx&&ue.ctx.draw&&ue.ctx.draw()}),F},_doPaintEl:function(T,w,O,I){var R=w.ctx,M=T.transform;if((w.__dirty||O)&&!T.invisible&&T.style.opacity!==0&&!(M&&!M[0]&&!M[3])&&!(T.culling&&g(T,this._width,this._height))){var F=T.__clipPaths,P=I.prevElClipPaths;(!P||v(F,P))&&(P&&(R.restore(),I.prevElClipPaths=null,I.prevEl=null),F&&(R.save(),b(F,R),I.prevElClipPaths=F)),T.beforeBrush&&T.beforeBrush(R),T.brush(R,I.prevEl||null),I.prevEl=T,T.afterBrush&&T.afterBrush(R)}},getLayer:function(T,w){this._singleCanvas&&!this._needsManuallyCompositing&&(T=o);var O=this._layers[T];return O||(O=new h("zr_"+T,this,this.dpr),O.zlevel=T,O.__builtin__=!0,this._layerConfig[T]?x.merge(O,this._layerConfig[T],!0):this._layerConfig[T-e]&&x.merge(O,this._layerConfig[T-e],!0),w&&(O.virtual=w),this.insertLayer(T,O),O.initContext()),O},insertLayer:function(T,w){var O=this._layers,I=this._zlevelList,R=I.length,M=null,F=-1,P=this._domRoot;if(O[T]){A("ZLevel "+T+" has been used already");return}if(!s(w)){A("Layer of zlevel "+T+" is not valid");return}if(R>0&&T>I[0]){for(F=0;F<R-1&&!(I[F]<T&&I[F+1]>T);F++);M=O[I[F]]}if(I.splice(F+1,0,T),O[T]=w,!w.virtual)if(M){var X=M.dom;X.nextSibling?P.insertBefore(w.dom,X.nextSibling):P.appendChild(w.dom)}else P.firstChild?P.insertBefore(w.dom,P.firstChild):P.appendChild(w.dom)},eachLayer:function(T,w){var O=this._zlevelList,I,R;for(R=0;R<O.length;R++)I=O[R],T.call(w,this._layers[I],I)},eachBuiltinLayer:function(T,w){var O=this._zlevelList,I,R,M;for(M=0;M<O.length;M++)R=O[M],I=this._layers[R],I.__builtin__&&T.call(w,I,R)},eachOtherLayer:function(T,w){var O=this._zlevelList,I,R,M;for(M=0;M<O.length;M++)R=O[M],I=this._layers[R],I.__builtin__||T.call(w,I,R)},getLayers:function(){return this._layers},_updateLayerStatus:function(T){this.eachBuiltinLayer(function(B,j){B.__dirty=B.__used=!1});function w(B){R&&(R.__endIndex!==B&&(R.__dirty=!0),R.__endIndex=B)}if(this._singleCanvas)for(var O=1;O<T.length;O++){var I=T[O];if(I.zlevel!==T[O-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var R=null,M=0,F,O=0;O<T.length;O++){var I=T[O],P=I.zlevel,X;F!==P&&(F=P,M=0),I.incremental?(X=this.getLayer(P+l,this._needsManuallyCompositing),X.incremental=!0,M=1):X=this.getLayer(P+(M>0?e:0),this._needsManuallyCompositing),X.__builtin__||A("ZLevel "+P+" has been used by unkown layer "+X.id),X!==R&&(X.__used=!0,X.__startIndex!==O&&(X.__dirty=!0),X.__startIndex=O,X.incremental?X.__drawIndex=-1:X.__drawIndex=O,w(O),R=X),I.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=O))}w(O),this.eachBuiltinLayer(function(B,j){!B.__used&&B.getElementCount()>0&&(B.__dirty=!0,B.__startIndex=B.__endIndex=B.__drawIndex=0),B.__dirty&&B.__drawIndex<0&&(B.__drawIndex=B.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(T){T.clear()},setBackgroundColor:function(T){this._backgroundColor=T},configLayer:function(T,w){if(w){var O=this._layerConfig;O[T]?x.merge(O[T],w,!0):O[T]=w;for(var I=0;I<this._zlevelList.length;I++){var R=this._zlevelList[I];if(R===T||R===T+e){var M=this._layers[R];x.merge(M,O[T],!0)}}}},delLayer:function(T){var w=this._layers,O=this._zlevelList,I=w[T];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete w[T],O.splice(x.indexOf(O,T),1)},resize:function(T,w){if(this._domRoot.style){var O=this._domRoot;O.style.display="none";var I=this._opts;if(T!=null&&(I.width=T),w!=null&&(I.height=w),T=this._getSize(0),w=this._getSize(1),O.style.display="",this._width!==T||w!==this._height){O.style.width=T+"px",O.style.height=w+"px";for(var R in this._layers)this._layers.hasOwnProperty(R)&&this._layers[R].resize(T,w);x.each(this._progressiveLayers,function(M){M.resize(T,w)}),this.refresh(!0)}this._width=T,this._height=w}else{if(T==null||w==null)return;this._width=T,this._height=w,this.getLayer(o).resize(T,w)}return this},clearLayer:function(T){var w=this._layers[T];w&&w.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(T){if(T=T||{},this._singleCanvas&&!this._compositeManually)return this._layers[o].dom;var w=new h("image",this,T.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,T.backgroundColor||this._backgroundColor),T.pixelRatio<=this.dpr){this.refresh();var O=w.dom.width,I=w.dom.height,R=w.ctx;this.eachLayer(function(B){B.__builtin__?R.drawImage(B.dom,0,0,O,I):B.renderToCanvas&&(w.ctx.save(),B.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var M={},F=this.storage.getDisplayList(!0),P=0;P<F.length;P++){var X=F[P];this._doPaintEl(X,w,!0,M)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(T){var w=this._opts,O=["width","height"][T],I=["clientWidth","clientHeight"][T],R=["paddingLeft","paddingTop"][T],M=["paddingRight","paddingBottom"][T];if(w[O]!=null&&w[O]!=="auto")return parseFloat(w[O]);var F=this.root,P=document.defaultView.getComputedStyle(F);return(F[I]||r(P[O])||r(F.style[O]))-(r(P[R])||0)-(r(P[M])||0)|0},pathToImage:function(T,w){w=w||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),R=T.getBoundingRect(),M=T.style,F=M.shadowBlur*w,P=M.shadowOffsetX*w,X=M.shadowOffsetY*w,B=M.hasStroke()?M.lineWidth:0,j=Math.max(B/2,-P+F),W=Math.max(B/2,P+F),z=Math.max(B/2,-X+F),V=Math.max(B/2,X+F),Q=R.width+j+W,G=R.height+z+V;O.width=Q*w,O.height=G*w,I.scale(w,w),I.clearRect(0,0,Q,G),I.dpr=w;var re={position:T.position,rotation:T.rotation,scale:T.scale};T.position=[j-R.x,z-R.y],T.rotation=0,T.scale=[1,1],T.updateTransform(),T&&T.brush(I);var ee=a,ue=new ee({style:{x:0,y:0,image:O}});return re.position!=null&&(ue.position=T.position=re.position),re.rotation!=null&&(ue.rotation=T.rotation=re.rotation),re.scale!=null&&(ue.scale=T.scale=re.scale),ue}};var C=E;k.exports=C},"7a+S":function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("YXkt"),A=n("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(h,u,a){this._data,this._names,this.mergeDefaultAndTheme(h,a),this._initData()},mergeOption:function(h){m.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(h){h==null&&(h=this.option.currentIndex);var u=this._data.count();this.option.loop?h=(h%u+u)%u:(h>=u&&(h=u-1),h<0&&(h=0)),this.option.currentIndex=h},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(h){this.option.autoPlay=!!h},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var h=this.option,u=h.data||[],a=h.axisType,i=this._names=[];if(a==="category"){var t=[];y.each(u,function(l,r){var s=A.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=""),i.push(s+"")}),u=t}var o={category:"ordinal",time:"time"}[a]||"number",e=this._data=new x([{name:"value",type:o}],this);e.initData(u,i)},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,n){var y=n("bYtY"),p=n("6GrX"),x=n("OELB");function A(S){return isNaN(S)?"-":(S=(S+"").split("."),S[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(S.length>1?"."+S[1]:""))}function m(S,E){return S=(S||"").toLowerCase().replace(/-(.)/g,function(C,_){return _.toUpperCase()}),E&&S&&(S=S.charAt(0).toUpperCase()+S.slice(1)),S}var f=y.normalizeCssArray,h=/([&<>"'])/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function a(S){return S==null?"":(S+"").replace(h,function(E,C){return u[C]})}var i=["a","b","c","d","e","f","g"],t=function(S,E){return"{"+S+(E==null?"":E)+"}"};function o(S,E,C){y.isArray(E)||(E=[E]);var _=E.length;if(!_)return"";for(var T=E[0].$vars||[],w=0;w<T.length;w++){var O=i[w];S=S.replace(t(O),t(O,0))}for(var I=0;I<_;I++)for(var R=0;R<T.length;R++){var M=E[I][T[R]];S=S.replace(t(i[R],I),C?a(M):M)}return S}function e(S,E,C){return y.each(E,function(_,T){S=S.replace("{"+T+"}",C?a(_):_)}),S}function l(S,E){S=y.isString(S)?{color:S,extraCssText:E}:S||{};var C=S.color,_=S.type,E=S.extraCssText,T=S.renderMode||"html",w=S.markerId||"X";return C?T==="html"?_==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+a(C)+";"+(E||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+a(C)+";"+(E||"")+'"></span>':{renderMode:T,content:"{marker"+w+"|} ",style:{color:C}}:""}function r(S,E){return S+="","0000".substr(0,E-S.length)+S}function s(S,E,C){(S==="week"||S==="month"||S==="quarter"||S==="half-year"||S==="year")&&(S=`MM-dd
yyyy`);var _=x.parseDate(E),T=C?"UTC":"",w=_["get"+T+"FullYear"](),O=_["get"+T+"Month"]()+1,I=_["get"+T+"Date"](),R=_["get"+T+"Hours"](),M=_["get"+T+"Minutes"](),F=_["get"+T+"Seconds"](),P=_["get"+T+"Milliseconds"]();return S=S.replace("MM",r(O,2)).replace("M",O).replace("yyyy",w).replace("yy",w%100).replace("dd",r(I,2)).replace("d",I).replace("hh",r(R,2)).replace("h",R).replace("mm",r(M,2)).replace("m",M).replace("ss",r(F,2)).replace("s",F).replace("SSS",r(P,3)),S}function c(S){return S&&S.charAt(0).toUpperCase()+S.substr(1)}var d=p.truncateText;function g(S){return p.getBoundingRect(S.text,S.font,S.textAlign,S.textVerticalAlign,S.textPadding,S.textLineHeight,S.rich,S.truncate)}function v(S,E,C,_,T,w,O,I){return p.getBoundingRect(S,E,C,_,T,I,w,O)}function b(S,E){if(E==="_blank"||E==="blank"){var C=window.open();C.opener=null,C.location=S}else window.open(S,E)}D.addCommas=A,D.toCamelCase=m,D.normalizeCssArray=f,D.encodeHTML=a,D.formatTpl=o,D.formatTplSimple=e,D.getTooltipMarker=l,D.formatTime=s,D.capitalFirst=c,D.truncateText=d,D.getTextBoundingRect=g,D.getTextRect=v,D.windowOpen=b},"7bkD":function(k,D,n){var y=n("bYtY");function p(x,A){A=A||{};var m=x.coordinateSystem,f=x.axis,h={},u=f.position,a=f.orient,i=m.getRect(),t=[i.x,i.x+i.width,i.y,i.y+i.height],o={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};h.position=[a==="vertical"?o.vertical[u]:t[0],a==="horizontal"?o.horizontal[u]:t[3]];var e={horizontal:0,vertical:1};h.rotation=Math.PI/2*e[a];var l={top:-1,bottom:1,right:1,left:-1};h.labelDirection=h.tickDirection=h.nameDirection=l[u],x.get("axisTick.inside")&&(h.tickDirection=-h.tickDirection),y.retrieve(A.labelInside,x.get("axisLabel.inside"))&&(h.labelDirection=-h.labelDirection);var r=A.rotate;return r==null&&(r=x.get("axisLabel.rotate")),h.labelRotation=u==="top"?-r:r,h.z2=1,h}D.layout=p},"7fqy":function(k,D){function n(y){var p=-1,x=Array(y.size);return y.forEach(function(A,m){x[++p]=[m,A]}),x}k.exports=n},"7hqr":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.isString;function A(h,u,a){a=a||{};var i=a.byIndex,t=a.stackedCoordDimension,o=!!(h&&h.get("stack")),e,l,r,s;if(p(u,function(v,b){x(v)&&(u[b]=v={name:v}),o&&!v.isExtraCoord&&(!i&&!e&&v.ordinalMeta&&(e=v),!l&&v.type!=="ordinal"&&v.type!=="time"&&(!t||t===v.coordDim)&&(l=v))}),l&&!i&&!e&&(i=!0),l){r="__\0ecstackresult",s="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=l.coordDim,d=l.type,g=0;p(u,function(v){v.coordDim===c&&g++}),u.push({name:r,coordDim:c,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0}),g++,u.push({name:s,coordDim:s,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:i,stackedOverDimension:s,stackResultDimension:r}}function m(h,u){return!!u&&u===h.getCalculationInfo("stackedDimension")}function f(h,u){return m(h,u)?h.getCalculationInfo("stackResultDimension"):u}D.enableDataStack=A,D.isDimensionStacked=m,D.getStackedDimension=f},"7mYs":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("7aKB"),m=n("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"]},h={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},u=y.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(a,i,t){var o=this.group;o.removeAll();var e=a.coordinateSystem,l=e.getRangeInfo(),r=e.getOrient();this._renderDayRect(a,l,o),this._renderLines(a,l,r,o),this._renderYearText(a,l,r,o),this._renderMonthText(a,r,o),this._renderWeekText(a,l,r,o)},_renderDayRect:function(a,i,t){for(var o=a.coordinateSystem,e=a.getModel("itemStyle").getItemStyle(),l=o.getCellWidth(),r=o.getCellHeight(),s=i.start.time;s<=i.end.time;s=o.getNextNDay(s,1).time){var c=o.dataToRect([s],!1).tl,d=new x.Rect({shape:{x:c[0],y:c[1],width:l,height:r},cursor:"default",style:e});t.add(d)}},_renderLines:function(a,i,t,o){var e=this,l=a.coordinateSystem,r=a.getModel("splitLine.lineStyle").getLineStyle(),s=a.get("splitLine.show"),c=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=i.start,g=0;d.time<=i.end.time;g++){b(d.formatedDate),g===0&&(d=l.getDateInfo(i.start.y+"-"+i.start.m));var v=d.date;v.setMonth(v.getMonth()+1),d=l.getDateInfo(v)}b(l.getNextNDay(i.end.time,1).formatedDate);function b(S){e._firstDayOfMonth.push(l.getDateInfo(S)),e._firstDayPoints.push(l.dataToRect([S],!1).tl);var E=e._getLinePointsOfOneWeek(a,S,t);e._tlpoints.push(E[0]),e._blpoints.push(E[E.length-1]),s&&e._drawSplitline(E,r,o)}s&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),r,o),s&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),r,o)},_getEdgesPoints:function(a,i,t){var o=[a[0].slice(),a[a.length-1].slice()],e=t==="horizontal"?0:1;return o[0][e]=o[0][e]-i/2,o[1][e]=o[1][e]+i/2,o},_drawSplitline:function(a,i,t){var o=new x.Polyline({z2:20,shape:{points:a},style:i});t.add(o)},_getLinePointsOfOneWeek:function(a,i,t){var o=a.coordinateSystem;i=o.getDateInfo(i);for(var e=[],l=0;l<7;l++){var r=o.getNextNDay(i.time,l),s=o.dataToRect([r.time],!1);e[2*r.day]=s.tl,e[2*r.day+1]=s[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(a,i){return typeof a=="string"&&a?A.formatTplSimple(a,i):typeof a=="function"?a(i):i.nameMap},_yearTextPositionControl:function(a,i,t,o,e){i=i.slice();var l=["center","bottom"];o==="bottom"?(i[1]+=e,l=["center","top"]):o==="left"?i[0]-=e:o==="right"?(i[0]+=e,l=["center","top"]):i[1]-=e;var r=0;return(o==="left"||o==="right")&&(r=Math.PI/2),{rotation:r,position:i,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(a,i,t,o){var e=a.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,d=(s[0][1]+s[1][1])/2,g=t==="horizontal"?0:1,v={top:[c,s[g][1]],bottom:[c,s[1-g][1]],left:[s[1-g][0],d],right:[s[g][0],d]},b=i.start.y;+i.end.y>+i.start.y&&(b=b+"-"+i.end.y);var S=e.get("formatter"),E={start:i.start.y,end:i.end.y,nameMap:b},C=this._formatterLabel(S,E),_=new x.Text({z2:30});x.setTextStyle(_.style,e,{text:C}),_.attr(this._yearTextPositionControl(_,v[r],t,r,l)),o.add(_)},_monthTextPositionControl:function(a,i,t,o,e){var l="left",r="top",s=a[0],c=a[1];return t==="horizontal"?(c=c+e,i&&(l="center"),o==="start"&&(r="bottom")):(s=s+e,i&&(r="middle"),o==="start"&&(l="right")),{x:s,y:c,textAlign:l,textVerticalAlign:r}},_renderMonthText:function(a,i,t){var o=a.getModel("monthLabel");if(!o.get("show"))return;var e=o.get("nameMap"),l=o.get("margin"),r=o.get("position"),s=o.get("align"),c=[this._tlpoints,this._blpoints];p.isString(e)&&(e=f[e.toUpperCase()]||[]);var d=r==="start"?0:1,g=i==="horizontal"?0:1;l=r==="start"?-l:l;for(var v=s==="center",b=0;b<c[d].length-1;b++){var S=c[d][b].slice(),E=this._firstDayOfMonth[b];if(v){var C=this._firstDayPoints[b];S[g]=(C[g]+c[0][b+1][g])/2}var _=o.get("formatter"),T=e[+E.m-1],w={yyyy:E.y,yy:(E.y+"").slice(2),MM:E.m,M:+E.m,nameMap:T},O=this._formatterLabel(_,w),I=new x.Text({z2:30});p.extend(x.setTextStyle(I.style,o,{text:O}),this._monthTextPositionControl(S,v,i,r,l)),t.add(I)}},_weekTextPositionControl:function(a,i,t,o,e){var l="center",r="middle",s=a[0],c=a[1],d=t==="start";return i==="horizontal"?(s=s+o+(d?1:-1)*e[0]/2,l=d?"right":"left"):(c=c+o+(d?1:-1)*e[1]/2,r=d?"bottom":"top"),{x:s,y:c,textAlign:l,textVerticalAlign:r}},_renderWeekText:function(a,i,t,o){var e=a.getModel("dayLabel");if(!e.get("show"))return;var l=a.coordinateSystem,r=e.get("position"),s=e.get("nameMap"),c=e.get("margin"),d=l.getFirstDayOfWeek();p.isString(s)&&(s=h[s.toUpperCase()]||[]);var g=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];c=m.parsePercent(c,v[t==="horizontal"?0:1]),r==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var b=0;b<7;b++){var S=l.getNextNDay(g,b),E=l.dataToRect([S.time],!1).center,C=b;C=Math.abs((b+d)%7);var _=new x.Text({z2:30});p.extend(x.setTextStyle(_.style,e,{text:s[C]}),this._weekTextPositionControl(E,t,r,c,v)),o.add(_)}}});k.exports=u},"7oTu":function(k,D,n){var y=n("IMiH"),p=n("QBsz"),x=p.applyTransform,A=y.CMD,m=[[],[],[]],f=Math.sqrt,h=Math.atan2;function u(a,i){var t=a.data,o,e,l,r,s,c,d=A.M,g=A.C,v=A.L,b=A.R,S=A.A,E=A.Q;for(l=0,r=0;l<t.length;){o=t[l++],r=l,e=0;switch(o){case d:e=1;break;case v:e=1;break;case g:e=3;break;case E:e=2;break;case S:var C=i[4],_=i[5],T=f(i[0]*i[0]+i[1]*i[1]),w=f(i[2]*i[2]+i[3]*i[3]),O=h(-i[1]/w,i[0]/T);t[l]*=T,t[l++]+=C,t[l]*=w,t[l++]+=_,t[l++]*=T,t[l++]*=w,t[l++]+=O,t[l++]+=O,l+=2,r=l;break;case b:c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[r++]=c[0],t[r++]=c[1],c[0]+=t[l++],c[1]+=t[l++],x(c,c,i),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++],x(c,c,i),t[r++]=c[0],t[r++]=c[1]}}}k.exports=u},"7pVf":function(k,D,n){var y=n("ProS"),p=n("ZqQs");n("oE7X"),n("OUJF"),n("3X6L"),n("NH9N"),y.registerPreprocessor(p)},"7ph2":function(k,D){function n(x){return x instanceof Array||(x=[x,x]),x}var y="lineStyle.opacity".split("."),p={seriesType:"lines",reset:function(x,A,m){var f=n(x.get("symbol")),h=n(x.get("symbolSize")),u=x.getData();u.setVisual("fromSymbol",f&&f[0]),u.setVisual("toSymbol",f&&f[1]),u.setVisual("fromSymbolSize",h&&h[0]),u.setVisual("toSymbolSize",h&&h[1]),u.setVisual("opacity",x.get(y));function a(i,t){var o=i.getItemModel(t),e=n(o.getShallow("symbol",!0)),l=n(o.getShallow("symbolSize",!0)),r=o.get(y);e[0]&&i.setItemVisual(t,"fromSymbol",e[0]),e[1]&&i.setItemVisual(t,"toSymbol",e[1]),l[0]&&i.setItemVisual(t,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(t,"toSymbolSize",l[1]),i.setItemVisual(t,"opacity",r)}return{dataEach:u.hasItemOption?a:null}}};k.exports=p},"7uqq":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("AUH6"),f=n("+TT/"),h=n("OELB"),u=n("W4dC"),a=n("7DRL");function i(l,r){var s=l.get("boundingCoords");if(s!=null){var c=s[0],d=s[1];isNaN(c[0])||isNaN(c[1])||isNaN(d[0])||isNaN(d[1])||this.setBoundingRect(c[0],c[1],d[0]-c[0],d[1]-c[1])}var g=this.getBoundingRect(),v,b=l.get("layoutCenter"),S=l.get("layoutSize"),E=r.getWidth(),C=r.getHeight(),_=g.width/g.height*this.aspectScale,T=!1;b&&S&&(b=[h.parsePercent(b[0],E),h.parsePercent(b[1],C)],S=h.parsePercent(S,Math.min(E,C)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(S)&&(T=!0));var w;if(T){var w={};_>1?(w.width=S,w.height=S/_):(w.height=S,w.width=S*_),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2}else v=l.getBoxLayoutParams(),v.aspect=_,w=f.getLayoutRect(v,{width:E,height:C});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function t(l,r){A.each(r.get("geoCoord"),function(s,c){l.addGeoCoord(c,s)})}var o={dimensions:m.prototype.dimensions,create:function(l,r){var s=[];l.eachComponent("geo",function(d,g){var v=d.get("map"),b=d.get("aspectScale"),S=!0,E=a.retrieveMap(v);E&&E[0]&&E[0].type==="svg"?(b==null&&(b=1),S=!1):b==null&&(b=.75);var C=new m(v+g,v,d.get("nameMap"),S);C.aspectScale=b,C.zoomLimit=d.get("scaleLimit"),s.push(C),t(C,d),d.coordinateSystem=C,C.model=d,C.resize=i,C.resize(d,r)}),l.eachSeries(function(d){var g=d.get("coordinateSystem");if(g==="geo"){var v=d.get("geoIndex")||0;d.coordinateSystem=s[v]}});var c={};return l.eachSeriesByType("map",function(d){if(!d.getHostGeoModel()){var g=d.getMapType();c[g]=c[g]||[],c[g].push(d)}}),A.each(c,function(d,g){var v=A.map(d,function(S){return S.get("nameMap")}),b=new m(g,g,A.mergeAll(v));b.zoomLimit=A.retrieve.apply(null,A.map(d,function(S){return S.get("scaleLimit")})),s.push(b),b.resize=i,b.aspectScale=d[0].get("aspectScale"),b.resize(d[0],r),A.each(d,function(S){S.coordinateSystem=b,t(b,S)})}),s},getFilledRegions:function(l,r,s){for(var c=(l||[]).slice(),d=A.createHashMap(),g=0;g<c.length;g++)d.set(c[g].name,c[g]);var v=u.load(r,s);return A.each(v.regions,function(b){var S=b.name;!d.get(S)&&c.push({name:S})}),c}};x.registerCoordinateSystem("geo",o);var e=o;k.exports=e},"7yuC":function(k,D,n){var y=n("QBsz"),p=y.scaleAndAdd;function x(A,m,f){for(var h=f.rect,u=h.width,a=h.height,i=[h.x+u/2,h.y+a/2],t=f.gravity==null?.1:f.gravity,o=0;o<A.length;o++){var e=A[o];e.p||(e.p=y.create(u*(Math.random()-.5)+i[0],a*(Math.random()-.5)+i[1])),e.pp=y.clone(e.p),e.edges=null}var l=f.friction==null?.6:f.friction,r=l;return{warmUp:function(){r=l*.8},setFixed:function(s){A[s].fixed=!0},setUnfixed:function(s){A[s].fixed=!1},step:function(s){for(var c=[],d=A.length,g=0;g<m.length;g++){var v=m[g];if(v.ignoreForceLayout)continue;var b=v.n1,S=v.n2;y.sub(c,S.p,b.p);var E=y.len(c)-v.d,C=S.w/(b.w+S.w);isNaN(C)&&(C=0),y.normalize(c,c),!b.fixed&&p(b.p,b.p,c,C*E*r),!S.fixed&&p(S.p,S.p,c,-(1-C)*E*r)}for(var g=0;g<d;g++){var _=A[g];_.fixed||(y.sub(c,i,_.p),p(_.p,_.p,c,t*r))}for(var g=0;g<d;g++)for(var b=A[g],T=g+1;T<d;T++){var S=A[T];y.sub(c,S.p,b.p);var E=y.len(c);E===0&&(y.set(c,Math.random()-.5,Math.random()-.5),E=1);var w=(b.rep+S.rep)/E/E;!b.fixed&&p(b.pp,b.pp,c,w),!S.fixed&&p(S.pp,S.pp,c,-w)}for(var O=[],g=0;g<d;g++){var _=A[g];_.fixed||(y.sub(O,_.p,_.pp),p(_.p,_.p,O,r),y.copy(_.pp,_.p))}r=r*.992,s&&s(A,m,r<.01)}}}D.forceLayout=x},"8+yF":function(k,D,n){"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(A){if(A>=32&&A<=255)return A;var m=y[A];return m!==void 0?m:16777216|A}};D.default=p},"8CQX":function(k,D,n){"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=o,D.getKeysym=e;var p=i(n("mHUz")),x=i(n("8+yF")),A=i(n("6Qwc")),m=i(n("gIYZ")),f=i(n("mTgk")),h=a(n("GdRQ"));function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function a(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in l)if(Object.prototype.hasOwnProperty.call(l,d)){var g=c?Object.getOwnPropertyDescriptor(l,d):null;g&&(g.get||g.set)?Object.defineProperty(s,d,g):s[d]=l[d]}return s.default=l,r&&r.set(l,s),s}function i(l){return l&&l.__esModule?l:{default:l}}function t(l){if(l.code){switch(l.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return l.code}if(l.type!=="keypress"&&l.keyCode in A.default){var r=A.default[l.keyCode];if(h.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 o(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(!h.isIE()&&!h.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=o(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 d=t(l);if(d==="AltLeft")return p.default.XK_Meta_L;if(d==="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 v=r.charCodeAt();return v?x.default.lookup(v):null}},"8EBN":function(k,D,n){(function(y){y(n("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 x=y.modeInfo[p];x.mimes&&(x.mime=x.mimes[0])}y.findModeByMIME=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.mime==A)return f;if(f.mimes){for(var h=0;h<f.mimes.length;h++)if(f.mimes[h]==A)return f}}if(/\+xml$/.test(A))return y.findModeByMIME("application/xml");if(/\+json$/.test(A))return y.findModeByMIME("application/json")},y.findModeByExtension=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.ext){for(var h=0;h<f.ext.length;h++)if(f.ext[h]==A)return f}}},y.findModeByFileName=function(A){for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.file&&f.file.test(A))return f}var h=A.lastIndexOf("."),u=h>-1&&A.substring(h+1,A.length);if(u)return y.findModeByExtension(u)},y.findModeByName=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.name.toLowerCase()==A)return f;if(f.alias){for(var h=0;h<f.alias.length;h++)if(f.alias[h].toLowerCase()==A)return f}}}})},"8IMR":function(k,D,n){"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,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("6Hfg"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"8K/p":function(k,D,n){"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(n("Lo0S")),x=A(n("ItS6"));function A(t){return t&&t.__esModule?t:{default:t}}function m(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return m=function(){return t},t}function f(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=m();if(o&&o.has(t))return o.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,o&&o.set(t,e),e}function h(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function u(t,o){for(var e=0;e<o.length;e++){var l=o[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function a(t,o,e){return o&&u(t.prototype,o),e&&u(t,e),t}var i=function(){function t(){h(this,t),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var o=0;o<4;o++)this._zlibs[o]=new x.default}return a(t,[{key:"decodeRect",value:function(e,l,r,s,c,d,g){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var v=0;v<4;v++)this._ctl>>v&1&&(this._zlibs[v].reset(),p.Info("Reset zlib stream "+v));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,l,r,s,c,d,g);else if(this._ctl===9)b=this._jpegRect(e,l,r,s,c,d,g);else if(this._ctl===10)b=this._pngRect(e,l,r,s,c,d,g);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,l,r,s,c,d,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,d,g){if(c.rQwait("TIGHT",3))return!1;var v=c.rQi,b=c.rQ;return d.fillRect(e,l,r,s,[b[v+2],b[v+1],b[v]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,r,s,c,d,g){var v=this._readData(c);return v===null?!1:(d.imageRect(e,l,r,s,"image/jpeg",v),!0)}},{key:"_pngRect",value:function(e,l,r,s,c,d,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,r,s,c,d,g,v){if(this._filter===null)if(e&4){if(d.rQwait("TIGHT",1))return!1;this._filter=d.rQshift8()}else this._filter=0;var b=e&3,S;switch(this._filter){case 0:S=this._copyFilter(b,l,r,s,c,d,g,v);break;case 1:S=this._paletteFilter(b,l,r,s,c,d,g,v);break;case 2:S=this._gradientFilter(b,l,r,s,c,d,g,v);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return S&&(this._filter=null),S}},{key:"_copyFilter",value:function(e,l,r,s,c,d,g,v){var b=s*c*3,S;if(b<12){if(d.rQwait("TIGHT",b))return!1;S=d.rQshiftBytes(b)}else{if(S=this._readData(d),S===null)return!1;this._zlibs[e].setInput(S),S=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return g.blitRgbImage(l,r,s,c,S,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,r,s,c,d,g,v){if(this._numColors===0){if(d.rQwait("TIGHT palette",1))return!1;var b=d.rQpeek8()+1,S=b*3;if(d.rQwait("TIGHT palette",1+S))return!1;this._numColors=b,d.rQskipBytes(1),d.rQshiftTo(this._palette,S)}var E=this._numColors<=2?1:8,C=Math.floor((s*E+7)/8),_=C*c,T;if(_<12){if(d.rQwait("TIGHT",_))return!1;T=d.rQshiftBytes(_)}else{if(T=this._readData(d),T===null)return!1;this._zlibs[e].setInput(T),T=this._zlibs[e].inflate(_),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(l,r,s,c,T,this._palette,g):this._paletteRect(l,r,s,c,T,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,r,s,c,d,g){for(var v=this._getScratchBuffer(r*s*4),b=Math.floor((r+7)/8),S=Math.floor(r/8),E=0;E<s;E++){var C=void 0,_=void 0,T=void 0;for(T=0;T<S;T++)for(var w=7;w>=0;w--)C=(E*r+T*8+7-w)*4,_=(c[E*b+T]>>w&1)*3,v[C]=d[_],v[C+1]=d[_+1],v[C+2]=d[_+2],v[C+3]=255;for(var O=7;O>=8-r%8;O--)C=(E*r+T*8+7-O)*4,_=(c[E*b+T]>>O&1)*3,v[C]=d[_],v[C+1]=d[_+1],v[C+2]=d[_+2],v[C+3]=255}g.blitRgbxImage(e,l,r,s,v,0,!1)}},{key:"_paletteRect",value:function(e,l,r,s,c,d,g){for(var v=this._getScratchBuffer(r*s*4),b=r*s*4,S=0,E=0;S<b;S+=4,E++){var C=c[E]*3;v[S]=d[C],v[S+1]=d[C+1],v[S+2]=d[C+2],v[S+3]=255}g.blitRgbxImage(e,l,r,s,v,0,!1)}},{key:"_gradientFilter",value:function(e,l,r,s,c,d,g,v){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var l;l=e.rQshift8(),this._len=l&127,l&128&&(l=e.rQshift8(),this._len|=(l&127)<<7,l&128&&(l=e.rQshift8(),this._len|=l<<14))}if(e.rQwait("TIGHT",this._len))return null;var 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=i},"8SMY":function(k,D,n){var y=n("n4Lv"),p=y.prepareDataCoordInfo,x=y.getStackedOnPoint;function A(f,h){var u=[];return h.diff(f).add(function(a){u.push({cmd:"+",idx:a})}).update(function(a,i){u.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){u.push({cmd:"-",idx:a})}).execute(),u}function m(f,h,u,a,i,t,o,e){for(var l=A(f,h),r=[],s=[],c=[],d=[],g=[],v=[],b=[],S=p(i,h,o),E=p(t,f,e),C=0;C<l.length;C++){var _=l[C],T=!0;switch(_.cmd){case"=":var w=f.getItemLayout(_.idx),O=h.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=O.slice()),r.push(w),s.push(O),c.push(u[_.idx]),d.push(a[_.idx1]),b.push(h.getRawIndex(_.idx1));break;case"+":var I=_.idx;r.push(i.dataToPoint([h.get(S.dataDimsForPoint[0],I),h.get(S.dataDimsForPoint[1],I)])),s.push(h.getItemLayout(I).slice()),c.push(x(S,i,h,I)),d.push(a[I]),b.push(h.getRawIndex(I));break;case"-":var I=_.idx,R=f.getRawIndex(I);R!==I?(r.push(f.getItemLayout(I)),s.push(t.dataToPoint([f.get(E.dataDimsForPoint[0],I),f.get(E.dataDimsForPoint[1],I)])),c.push(u[I]),d.push(x(E,t,f,I)),b.push(R)):T=!1}T&&(g.push(_),v.push(v.length))}v.sort(function(j,W){return b[j]-b[W]});for(var M=[],F=[],P=[],X=[],B=[],C=0;C<v.length;C++){var I=v[C];M[C]=r[I],F[C]=s[I],P[C]=c[I],X[C]=d[I],B[C]=g[I]}return{current:M,next:F,stackedOnCurrent:P,stackedOnNext:X,status:B}}k.exports=m},"8Skl":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DownOutlined";var h=D.a=p.forwardRef(f)},"8Th4":function(k,D,n){var y=n("3LNs"),p=n("/y7N"),x=n("7bkD"),A=n("Znkb"),m=["x","y"],f=["width","height"],h=y.extend({makeElOption:function(o,e,l,r,s){var c=l.axis,d=c.coordinateSystem,g=i(d,1-a(c)),v=d.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var S=p.buildElStyle(r),E=u[b](c,v,g);E.style=S,o.graphicKey=E.type,o.pointer=E}var C=x.layout(l);p.buildCartesianSingleLabelElOption(e,o,C,l,r,s)},getHandleTransform:function(o,e,l){var r=x.layout(e,{labelInside:!1});return r.labelMargin=l.get("handle.margin"),{position:p.getTransformedPosition(e.axis,o,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(o,e,l,r){var s=l.axis,c=s.coordinateSystem,d=a(s),g=i(c,d),v=o.position;v[d]+=e[d],v[d]=Math.min(g[1],v[d]),v[d]=Math.max(g[0],v[d]);var b=i(c,1-d),S=(b[1]+b[0])/2,E=[S,S];return E[d]=v[d],{position:v,rotation:o.rotation,cursorPoint:E,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(o,e,l){var r=p.makeLineShape([e,l[0]],[e,l[1]],a(o));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(o,e,l){var r=o.getBandWidth(),s=l[1]-l[0];return{type:"Rect",shape:p.makeRectShape([e-r/2,l[0]],[r,s],a(o))}}};function a(o){return o.isHorizontal()?0:1}function i(o,e){var l=o.getRect();return[l[m[e]],l[m[e]]+l[f[e]]]}A.registerAxisPointerClass("SingleAxisPointer",h);var t=h;k.exports=t},"8Uz6":function(k,D,n){var y=n("hNWo"),p=n("+TT/"),x=p.mergeLayoutParam,A=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,a,i,t){var o=A(u);m.superCall(this,"init",u,a,i,t),f(this,u,o)},mergeOption:function(u,a){m.superCall(this,"mergeOption",u,a),f(this,this.option,u)}});function f(u,a,i){var t=u.getOrient(),o=[1,1];o[t.index]=0,x(a,i,{type:"box",ignoreSize:o})}var h=m;k.exports=h},"8X+K":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("4mN7"),m=A.fromPoints,f=n("9wZj"),h=n("FBjb"),u=n("8SMY"),a=n("IwbS"),i=n("4NO4"),t=n("1NG9"),o=t.Polyline,e=t.Polygon,l=n("6Ic6"),r=n("n4Lv"),s=r.prepareDataCoordInfo,c=r.getStackedOnPoint,d=n("sK/D"),g=d.createGridClipPath,v=d.createPolarClipPath;function b(M,F){if(M.length!==F.length)return;for(var P=0;P<M.length;P++){var X=M[P],B=F[P];if(X[0]!==B[0]||X[1]!==B[1])return}return!0}function S(M,F){var P=[],X=[],B=[],j=[];return m(M,P,X),m(F,B,j),Math.max(Math.abs(P[0]-B[0]),Math.abs(P[1]-B[1]),Math.abs(X[0]-j[0]),Math.abs(X[1]-j[1]))}function E(M){return typeof M=="number"?M:M?.5:0}function C(M,F,P){if(!P.valueDim)return[];for(var X=[],B=0,j=F.count();B<j;B++)X.push(c(P,M,F,B));return X}function _(M,F,P){for(var X=F.getBaseAxis(),B=X.dim==="x"||X.dim==="radius"?0:1,j=[],W=0;W<M.length-1;W++){var z=M[W+1],V=M[W];j.push(V);var Q=[];switch(P){case"end":Q[B]=z[B],Q[1-B]=V[1-B],j.push(Q);break;case"middle":var G=(V[B]+z[B])/2,re=[];Q[B]=re[B]=G,Q[1-B]=V[1-B],re[1-B]=z[1-B],j.push(Q),j.push(re);break;default:Q[B]=V[B],Q[1-B]=z[1-B],j.push(Q)}}return M[W]&&j.push(M[W]),j}function T(M,F){var P=M.getVisual("visualMeta");if(!P||!P.length||!M.count())return;if(F.type!=="cartesian2d")return;for(var X,B,j=P.length-1;j>=0;j--){var W=P[j].dimension,z=M.dimensions[W],V=M.getDimensionInfo(z);if(X=V&&V.coordDim,X==="x"||X==="y"){B=P[j];break}}if(!B)return;var Q=F.getAxis(X),G=x.map(B.stops,function(Xe){return{coord:Q.toGlobalCoord(Q.dataToCoord(Xe.value)),color:Xe.color}}),re=G.length,ee=B.outerColors.slice();re&&G[0].coord>G[re-1].coord&&(G.reverse(),ee.reverse());var ue=10,$=G[0].coord-ue,be=G[re-1].coord+ue,_e=be-$;if(_e<.001)return"transparent";x.each(G,function(Xe){Xe.offset=(Xe.coord-$)/_e}),G.push({offset:re?G[re-1].offset:.5,color:ee[1]||"transparent"}),G.unshift({offset:re?G[0].offset:.5,color:ee[0]||"transparent"});var Ee=new a.LinearGradient(0,0,0,0,G,!0);return Ee[X]=$,Ee[X+"2"]=be,Ee}function w(M,F,P){var X=M.get("showAllSymbol"),B=X==="auto";if(X&&!B)return;var j=P.getAxesByScale("ordinal")[0];if(!j)return;if(B&&O(j,F))return;var W=F.mapDimension(j.dim),z={};return x.each(j.getViewLabels(),function(V){z[V.tickValue]=1}),function(V){return!z.hasOwnProperty(F.get(W,V))}}function O(M,F){var P=M.getExtent(),X=Math.abs(P[1]-P[0])/M.scale.count();isNaN(X)&&(X=0);for(var B=F.count(),j=Math.max(1,Math.round(B/5)),W=0;W<B;W+=j)if(h.getSymbolSize(F,W)[M.isHorizontal()?1:0]*1.5>X)return!1;return!0}function I(M,F,P){if(M.type==="cartesian2d"){var X=M.getBaseAxis().isHorizontal(),B=g(M,F,P);if(!P.get("clip",!0)){var j=B.shape,W=Math.max(j.width,j.height);X?(j.y-=W,j.height+=W*2):(j.x-=W,j.width+=W*2)}return B}else return v(M,F,P)}var R=l.extend({type:"line",init:function(){var M=new a.Group,F=new f;this.group.add(F.group),this._symbolDraw=F,this._lineGroup=M},render:function(M,F,P){var X=M.coordinateSystem,B=this.group,j=M.getData(),W=M.getModel("lineStyle"),z=M.getModel("areaStyle"),V=j.mapArray(j.getItemLayout),Q=X.type==="polar",G=this._coordSys,re=this._symbolDraw,ee=this._polyline,ue=this._polygon,$=this._lineGroup,be=M.get("animation"),_e=!z.isEmpty(),Ee=z.get("origin"),Xe=s(X,j,Ee),He=C(X,j,Xe),nt=M.get("showSymbol"),Ie=nt&&!Q&&w(M,j,X),oe=this._data;oe&&oe.eachItemGraphicEl(function(we,Ne){we.__temp&&(B.remove(we),oe.setItemGraphicEl(Ne,null))}),nt||re.remove(),B.add($);var ot=!Q&&M.get("step"),he;X&&X.getArea&&M.get("clip",!0)&&(he=X.getArea(),he.width!=null?(he.x-=.1,he.y-=.1,he.width+=.2,he.height+=.2):he.r0&&(he.r0-=.5,he.r1+=.5)),this._clipShapeForSymbol=he,ee&&G.type===X.type&&ot===this._step?(_e&&!ue?ue=this._newPolygon(V,He,X,be):ue&&!_e&&($.remove(ue),ue=this._polygon=null),$.setClipPath(I(X,!1,M)),nt&&re.updateData(j,{isIgnore:Ie,clipShape:he}),j.eachItemGraphicEl(function(we){we.stopAnimation(!0)}),(!b(this._stackedOnPoints,He)||!b(this._points,V))&&(be?this._updateAnimation(j,He,X,P,ot,Ee):(ot&&(V=_(V,X,ot),He=_(He,X,ot)),ee.setShape({points:V}),ue&&ue.setShape({points:V,stackedOnPoints:He})))):(nt&&re.updateData(j,{isIgnore:Ie,clipShape:he}),ot&&(V=_(V,X,ot),He=_(He,X,ot)),ee=this._newPolyline(V,X,be),_e&&(ue=this._newPolygon(V,He,X,be)),$.setClipPath(I(X,!0,M)));var J=T(j,X)||j.getVisual("color");ee.useStyle(x.defaults(W.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var Y=M.get("smooth");if(Y=E(M.get("smooth")),ee.setShape({smooth:Y,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")}),ue){var q=j.getCalculationInfo("stackedOnSeries"),fe=0;ue.useStyle(x.defaults(z.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),q&&(fe=E(q.get("smooth"))),ue.setShape({smooth:Y,stackedOnSmooth:fe,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")})}this._data=j,this._coordSys=X,this._stackedOnPoints=He,this._points=V,this._step=ot,this._valueOrigin=Ee},dispose:function(){},highlight:function(M,F,P,X){var B=M.getData(),j=i.queryDataIndex(B,X);if(!(j instanceof Array)&&j!=null&&j>=0){var W=B.getItemGraphicEl(j);if(!W){var z=B.getItemLayout(j);if(!z)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(z[0],z[1]))return;W=new h(B,j),W.position=z,W.setZ(M.get("zlevel"),M.get("z")),W.ignore=isNaN(z[0])||isNaN(z[1]),W.__temp=!0,B.setItemGraphicEl(j,W),W.stopSymbolAnimation(!0),this.group.add(W)}W.highlight()}else l.prototype.highlight.call(this,M,F,P,X)},downplay:function(M,F,P,X){var B=M.getData(),j=i.queryDataIndex(B,X);if(j!=null&&j>=0){var W=B.getItemGraphicEl(j);W&&(W.__temp?(B.setItemGraphicEl(j,null),this.group.remove(W)):W.downplay())}else l.prototype.downplay.call(this,M,F,P,X)},_newPolyline:function(M){var F=this._polyline;return F&&this._lineGroup.remove(F),F=new o({shape:{points:M},silent:!0,z2:10}),this._lineGroup.add(F),this._polyline=F,F},_newPolygon:function(M,F){var P=this._polygon;return P&&this._lineGroup.remove(P),P=new e({shape:{points:M,stackedOnPoints:F},silent:!0}),this._lineGroup.add(P),this._polygon=P,P},_updateAnimation:function(M,F,P,X,B,j){var W=this._polyline,z=this._polygon,V=M.hostModel,Q=u(this._data,M,this._stackedOnPoints,F,this._coordSys,P,this._valueOrigin,j),G=Q.current,re=Q.stackedOnCurrent,ee=Q.next,ue=Q.stackedOnNext;if(B&&(G=_(Q.current,P,B),re=_(Q.stackedOnCurrent,P,B),ee=_(Q.next,P,B),ue=_(Q.stackedOnNext,P,B)),S(G,ee)>3e3||z&&S(re,ue)>3e3){W.setShape({points:ee}),z&&z.setShape({points:ee,stackedOnPoints:ue});return}W.shape.__points=Q.current,W.shape.points=G,a.updateProps(W,{shape:{points:ee}},V),z&&(z.setShape({points:G,stackedOnPoints:re}),a.updateProps(z,{shape:{points:ee,stackedOnPoints:ue}},V));for(var $=[],be=Q.status,_e=0;_e<be.length;_e++){var Ee=be[_e].cmd;if(Ee==="="){var Xe=M.getItemGraphicEl(be[_e].idx1);Xe&&$.push({el:Xe,ptIdx:_e})}}W.animators&&W.animators.length&&W.animators[0].during(function(){for(var He=0;He<$.length;He++){var nt=$[He].el;nt.attr("position",W.shape.__points[$[He].ptIdx])}})},remove:function(M){var F=this.group,P=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),P&&P.eachItemGraphicEl(function(X,B){X.__temp&&(F.remove(X),P.setItemGraphicEl(B,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});k.exports=R},"8XDt":function(k,D,n){n("qH13");var y=n("aX58"),p=y.registerPainter,x=n("6fms");p("vml",x)},"8XRh":function(k,D,n){"use strict";n.d(D,"a",function(){return Yt});var y=n("rePB"),p=n("VTBJ"),x=n("ODXe"),A=n("U8pU"),m=n("TSYQ"),f=n.n(m),h=n("m+aA"),u=n("c+Xe"),a=n("q1tI"),i=n("Ff2n"),t=["children"],o=a.createContext({});function e(Gt){var Pt=Gt.children,Xt=Object(i.a)(Gt,t);return a.createElement(o.Provider,{value:Xt},Pt)}var l=n("1OyB"),r=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),d=function(Gt){Object(s.a)(Xt,Gt);var Pt=Object(c.a)(Xt);function Xt(){return Object(l.a)(this,Xt),Pt.apply(this,arguments)}return Object(r.a)(Xt,[{key:"render",value:function(){return this.props.children}}]),Xt}(a.Component),g=d,v=n("dm2S"),b="none",S="appear",E="enter",C="leave",_="none",T="prepare",w="start",O="active",I="end",R="prepared",M=n("MNnm");function F(Gt,Pt){var Xt={};return Xt[Gt.toLowerCase()]=Pt.toLowerCase(),Xt["Webkit".concat(Gt)]="webkit".concat(Pt),Xt["Moz".concat(Gt)]="moz".concat(Pt),Xt["ms".concat(Gt)]="MS".concat(Pt),Xt["O".concat(Gt)]="o".concat(Pt.toLowerCase()),Xt}function P(Gt,Pt){var Xt={animationend:F("Animation","AnimationEnd"),transitionend:F("Transition","TransitionEnd")};return Gt&&("AnimationEvent"in Pt||delete Xt.animationend.animation,"TransitionEvent"in Pt||delete Xt.transitionend.transition),Xt}var X=P(Object(M.a)(),typeof window!="undefined"?window:{}),B={};if(Object(M.a)()){var j=document.createElement("div");B=j.style}var W={};function z(Gt){if(W[Gt])return W[Gt];var Pt=X[Gt];if(Pt)for(var Xt=Object.keys(Pt),Ge=Xt.length,pe=0;pe<Ge;pe+=1){var se=Xt[pe];if(Object.prototype.hasOwnProperty.call(Pt,se)&&se in B)return W[Gt]=Pt[se],W[Gt]}return""}var V=z("animationend"),Q=z("transitionend"),G=!!(V&&Q),re=V||"animationend",ee=Q||"transitionend";function ue(Gt,Pt){if(!Gt)return null;if(Object(A.a)(Gt)==="object"){var Xt=Pt.replace(/-\w/g,function(Ge){return Ge[1].toUpperCase()});return Gt[Xt]}return"".concat(Gt,"-").concat(Pt)}var $=function(Gt){var Pt=Object(a.useRef)(),Xt=Object(a.useRef)(Gt);Xt.current=Gt;var Ge=a.useCallback(function(lt){Xt.current(lt)},[]);function pe(lt){lt&&(lt.removeEventListener(ee,Ge),lt.removeEventListener(re,Ge))}function se(lt){Pt.current&&Pt.current!==lt&&pe(Pt.current),lt&&lt!==Pt.current&&(lt.addEventListener(ee,Ge),lt.addEventListener(re,Ge),Pt.current=lt)}return a.useEffect(function(){return function(){pe(Pt.current)}},[]),[se,pe]},be=Object(M.a)()?a.useLayoutEffect:a.useEffect,_e=be,Ee=n("wgJM"),Xe=function(){var Gt=a.useRef(null);function Pt(){Ee.a.cancel(Gt.current)}function Xt(Ge){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Pt();var se=Object(Ee.a)(function(){pe<=1?Ge({isCanceled:function(){return se!==Gt.current}}):Xt(Ge,pe-1)});Gt.current=se}return a.useEffect(function(){return function(){Pt()}},[]),[Xt,Pt]},He=[T,w,O,I],nt=[T,R],Ie=!1,oe=!0;function ot(Gt){return Gt===O||Gt===I}var he=function(Gt,Pt,Xt){var Ge=Object(v.a)(_),pe=Object(x.a)(Ge,2),se=pe[0],lt=pe[1],Ze=Xe(),de=Object(x.a)(Ze,2),_t=de[0],er=de[1];function yt(){lt(T,!0)}var Ar=Pt?nt:He;return _e(function(){if(se!==_&&se!==I){var Sr=Ar.indexOf(se),Cn=Ar[Sr+1],mr=Xt(se);mr===Ie?lt(Cn,!0):Cn&&_t(function(Pr){function gr(){if(Pr.isCanceled())return;lt(Cn,!0)}mr===!0?gr():Promise.resolve(mr).then(gr)})}},[Gt,se]),a.useEffect(function(){return function(){er()}},[]),[yt,se]};function J(Gt,Pt,Xt,Ge){var pe=Ge.motionEnter,se=pe===void 0?!0:pe,lt=Ge.motionAppear,Ze=lt===void 0?!0:lt,de=Ge.motionLeave,_t=de===void 0?!0:de,er=Ge.motionDeadline,yt=Ge.motionLeaveImmediately,Ar=Ge.onAppearPrepare,Sr=Ge.onEnterPrepare,Cn=Ge.onLeavePrepare,mr=Ge.onAppearStart,Pr=Ge.onEnterStart,gr=Ge.onLeaveStart,Jt=Ge.onAppearActive,Dt=Ge.onEnterActive,dn=Ge.onLeaveActive,Fn=Ge.onAppearEnd,Zn=Ge.onEnterEnd,ci=Ge.onLeaveEnd,Xi=Ge.onVisibleChanged,Gn=Object(v.a)(),ei=Object(x.a)(Gn,2),Zt=ei[0],Nt=ei[1],Me=Object(v.a)(b),ke=Object(x.a)(Me,2),Pe=ke[0],tt=ke[1],vt=Object(v.a)(null),St=Object(x.a)(vt,2),Vt=St[0],Mr=St[1],$r=Object(a.useRef)(!1),vn=Object(a.useRef)(null);function jt(){return Xt()}var gt=Object(a.useRef)(!1);function pt(){tt(b,!0),Mr(null,!0)}function ar(hi){var Ti=jt();if(hi&&!hi.deadline&&hi.target!==Ti)return;var Ni=gt.current,Wi;Pe===S&&Ni?Wi=Fn==null?void 0:Fn(Ti,hi):Pe===E&&Ni?Wi=Zn==null?void 0:Zn(Ti,hi):Pe===C&&Ni&&(Wi=ci==null?void 0:ci(Ti,hi)),Pe!==b&&Ni&&Wi!==!1&&pt()}var Ht=$(ar),Mt=Object(x.a)(Ht,1),qt=Mt[0],Rt=function(Ti){var Ni,Wi,rt;switch(Ti){case S:return Ni={},Object(y.a)(Ni,T,Ar),Object(y.a)(Ni,w,mr),Object(y.a)(Ni,O,Jt),Ni;case E:return Wi={},Object(y.a)(Wi,T,Sr),Object(y.a)(Wi,w,Pr),Object(y.a)(Wi,O,Dt),Wi;case C:return rt={},Object(y.a)(rt,T,Cn),Object(y.a)(rt,w,gr),Object(y.a)(rt,O,dn),rt;default:return{}}},Qt=a.useMemo(function(){return Rt(Pe)},[Pe]),jr=he(Pe,!Gt,function(hi){if(hi===T){var Ti=Qt[T];return Ti?Ti(jt()):Ie}if(ln in Qt){var Ni;Mr(((Ni=Qt[ln])===null||Ni===void 0?void 0:Ni.call(Qt,jt(),null))||null)}return ln===O&&(qt(jt()),er>0&&(clearTimeout(vn.current),vn.current=setTimeout(function(){ar({deadline:!0})},er))),ln===R&&pt(),oe}),Nr=Object(x.a)(jr,2),Lr=Nr[0],ln=Nr[1],mn=ot(ln);gt.current=mn,_e(function(){Nt(Pt);var hi=$r.current;$r.current=!0;var Ti;!hi&&Pt&&Ze&&(Ti=S),hi&&Pt&&se&&(Ti=E),(hi&&!Pt&&_t||!hi&&yt&&!Pt&&_t)&&(Ti=C);var Ni=Rt(Ti);Ti&&(Gt||Ni[T])?(tt(Ti),Lr()):tt(b)},[Pt]),Object(a.useEffect)(function(){(Pe===S&&!Ze||Pe===E&&!se||Pe===C&&!_t)&&tt(b)},[Ze,se,_t]),Object(a.useEffect)(function(){return function(){$r.current=!1,clearTimeout(vn.current)}},[]);var ti=a.useRef(!1);Object(a.useEffect)(function(){Zt&&(ti.current=!0),Zt!==void 0&&Pe===b&&((ti.current||Zt)&&(Xi==null||Xi(Zt)),ti.current=!0)},[Zt,Pe]);var $n=Vt;return Qt[T]&&ln===w&&($n=Object(p.a)({transition:"none"},$n)),[Pe,ln,$n,Zt!=null?Zt:Pt]}function Y(Gt){var Pt=Gt;Object(A.a)(Gt)==="object"&&(Pt=Gt.transitionSupport);function Xt(pe,se){return!!(pe.motionName&&Pt&&se!==!1)}var Ge=a.forwardRef(function(pe,se){var lt=pe.visible,Ze=lt===void 0?!0:lt,de=pe.removeOnLeave,_t=de===void 0?!0:de,er=pe.forceRender,yt=pe.children,Ar=pe.motionName,Sr=pe.leavedClassName,Cn=pe.eventProps,mr=a.useContext(o),Pr=mr.motion,gr=Xt(pe,Pr),Jt=Object(a.useRef)(),Dt=Object(a.useRef)();function dn(){try{return Jt.current instanceof HTMLElement?Jt.current:Object(h.a)(Dt.current)}catch(Mr){return null}}var Fn=J(gr,Ze,dn,pe),Zn=Object(x.a)(Fn,4),ci=Zn[0],Xi=Zn[1],Gn=Zn[2],ei=Zn[3],Zt=a.useRef(ei);ei&&(Zt.current=!0);var Nt=a.useCallback(function(Mr){Jt.current=Mr,Object(u.b)(se,Mr)},[se]),Me,ke=Object(p.a)(Object(p.a)({},Cn),{},{visible:Ze});if(!yt)Me=null;else if(ci===b)ei?Me=yt(Object(p.a)({},ke),Nt):!_t&&Zt.current&&Sr?Me=yt(Object(p.a)(Object(p.a)({},ke),{},{className:Sr}),Nt):er||!_t&&!Sr?Me=yt(Object(p.a)(Object(p.a)({},ke),{},{style:{display:"none"}}),Nt):Me=null;else{var Pe,tt;Xi===T?tt="prepare":ot(Xi)?tt="active":Xi===w&&(tt="start");var vt=ue(Ar,"".concat(ci,"-").concat(tt));Me=yt(Object(p.a)(Object(p.a)({},ke),{},{className:f()(ue(Ar,ci),(Pe={},Object(y.a)(Pe,vt,vt&&tt),Object(y.a)(Pe,Ar,typeof Ar=="string"),Pe)),style:Gn}),Nt)}if(a.isValidElement(Me)&&Object(u.c)(Me)){var St=Me,Vt=St.ref;Vt||(Me=a.cloneElement(Me,{ref:Nt}))}return a.createElement(g,{ref:Dt},Me)});return Ge.displayName="CSSMotion",Ge}var q=Y(G),fe=n("wx14"),we=n("JX7q"),Ne="add",je="keep",me="remove",Ce="removed";function Fe(Gt){var Pt;return Gt&&Object(A.a)(Gt)==="object"&&"key"in Gt?Pt=Gt:Pt={key:Gt},Object(p.a)(Object(p.a)({},Pt),{},{key:String(Pt.key)})}function it(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Gt.map(Fe)}function Ct(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xt=[],Ge=0,pe=Pt.length,se=it(Gt),lt=it(Pt);se.forEach(function(_t){for(var er=!1,yt=Ge;yt<pe;yt+=1){var Ar=lt[yt];if(Ar.key===_t.key){Ge<yt&&(Xt=Xt.concat(lt.slice(Ge,yt).map(function(Sr){return Object(p.a)(Object(p.a)({},Sr),{},{status:Ne})})),Ge=yt),Xt.push(Object(p.a)(Object(p.a)({},Ar),{},{status:je})),Ge+=1,er=!0;break}}er||Xt.push(Object(p.a)(Object(p.a)({},_t),{},{status:me}))}),Ge<pe&&(Xt=Xt.concat(lt.slice(Ge).map(function(_t){return Object(p.a)(Object(p.a)({},_t),{},{status:Ne})})));var Ze={};Xt.forEach(function(_t){var er=_t.key;Ze[er]=(Ze[er]||0)+1});var de=Object.keys(Ze).filter(function(_t){return Ze[_t]>1});return de.forEach(function(_t){Xt=Xt.filter(function(er){var yt=er.key,Ar=er.status;return yt!==_t||Ar!==me}),Xt.forEach(function(er){er.key===_t&&(er.status=je)})}),Xt}var mt=["component","children","onVisibleChanged","onAllRemoved"],Ve=["status"],or=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function dt(Gt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q,Xt=function(Ge){Object(s.a)(se,Ge);var pe=Object(c.a)(se);function se(){var lt;Object(l.a)(this,se);for(var Ze=arguments.length,de=new Array(Ze),_t=0;_t<Ze;_t++)de[_t]=arguments[_t];return lt=pe.call.apply(pe,[this].concat(de)),Object(y.a)(Object(we.a)(lt),"state",{keyEntities:[]}),Object(y.a)(Object(we.a)(lt),"removeKey",function(er){var yt=lt.state.keyEntities,Ar=yt.map(function(Sr){return Sr.key!==er?Sr:Object(p.a)(Object(p.a)({},Sr),{},{status:Ce})});return lt.setState({keyEntities:Ar}),Ar.filter(function(Sr){var Cn=Sr.status;return Cn!==Ce}).length}),lt}return Object(r.a)(se,[{key:"render",value:function(){var Ze=this,de=this.state.keyEntities,_t=this.props,er=_t.component,yt=_t.children,Ar=_t.onVisibleChanged,Sr=_t.onAllRemoved,Cn=Object(i.a)(_t,mt),mr=er||a.Fragment,Pr={};return or.forEach(function(gr){Pr[gr]=Cn[gr],delete Cn[gr]}),delete Cn.keys,a.createElement(mr,Cn,de.map(function(gr){var Jt=gr.status,Dt=Object(i.a)(gr,Ve),dn=Jt===Ne||Jt===je;return a.createElement(Pt,Object(fe.a)({},Pr,{key:Dt.key,visible:dn,eventProps:Dt,onVisibleChanged:function(Zn){if(Ar==null||Ar(Zn,{key:Dt.key}),!Zn){var ci=Ze.removeKey(Dt.key);ci===0&&Sr&&Sr()}}}),yt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,de){var _t=Ze.keys,er=de.keyEntities,yt=it(_t),Ar=Ct(er,yt);return{keyEntities:Ar.filter(function(Sr){var Cn=er.find(function(mr){var Pr=mr.key;return Sr.key===Pr});return!(Cn&&Cn.status===Ce&&Sr.status===me)})}}}]),se}(a.Component);return Object(y.a)(Xt,"defaultProps",{component:"div"}),Xt}var Yt=dt(G),hr=D.b=q},"8hn6":function(k,D){var n="#eee",y=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{textStyle:{color:n}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},p=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],x={color:p,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n},label:{color:"#000"}}},legend:{textStyle:{color:n}},textStyle:{color:n},title:{textStyle:{color:n}},toolbox:{iconStyle:{normal:{borderColor:n}}},dataZoom:{textStyle:{color:n}},visualMap:{textStyle:{color:n}},timeline:{lineStyle:{color:n},itemStyle:{normal:{color:p[1]}},label:{normal:{textStyle:{color:n}}},controlStyle:{normal:{color:n,borderColor:n}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:p},gauge:{title:{textStyle:{color:n}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};x.categoryAxis.splitLine.show=!1;var A=x;k.exports=A},"8nMs":function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+rIm"),A=n("Znkb"),m=n("AVZG"),f=n("WN+l"),h=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine","minorSplitLine"],t=A.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(o,e,l,r){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new p.Group,this.group.add(this._axisGroup),!o.get("show"))return;var c=o.getCoordSysModel(),d=m.layout(c,o),g=new x(o,d);y.each(a,g.add,g),this._axisGroup.add(g.getGroup()),y.each(i,function(v){o.get(v+".show")&&this["_"+v](o,c)},this),p.groupTransition(s,this._axisGroup,o),t.superCall(this,"render",o,e,l,r)},remove:function(){u(this)},_splitLine:function(o,e){var l=o.axis;if(l.scale.isBlank())return;var r=o.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("color");c=y.isArray(c)?c:[c];for(var d=e.coordinateSystem.getRect(),g=l.isHorizontal(),v=0,b=l.getTicksCoords({tickModel:r}),S=[],E=[],C=s.getLineStyle(),_=0;_<b.length;_++){var T=l.toGlobalCoord(b[_].coord);g?(S[0]=T,S[1]=d.y,E[0]=T,E[1]=d.y+d.height):(S[0]=d.x,S[1]=T,E[0]=d.x+d.width,E[1]=T);var w=v++%c.length,O=b[_].tickValue;this._axisGroup.add(new p.Line({anid:O!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:S[0],y1:S[1],x2:E[0],y2:E[1]},style:y.defaults({stroke:c[w]},C),silent:!0}))}},_minorSplitLine:function(o,e){var l=o.axis,r=o.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=e.coordinateSystem.getRect(),d=l.isHorizontal(),g=l.getMinorTicksCoords();if(!g.length)return;for(var v=[],b=[],S=s.getLineStyle(),E=0;E<g.length;E++)for(var C=0;C<g[E].length;C++){var _=l.toGlobalCoord(g[E][C].coord);d?(v[0]=_,v[1]=c.y,b[0]=_,b[1]=c.y+c.height):(v[0]=c.x,v[1]=_,b[0]=c.x+c.width,b[1]=_),this._axisGroup.add(new p.Line({anid:"minor_line_"+g[E][C].tickValue,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:b[0],y2:b[1]},style:S,silent:!0}))}},_splitArea:function(o,e){h(this,this._axisGroup,o,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(k,D,n){var y=n("mFDi"),p=n("4mN7"),x=n("QBsz"),A=n("BlVb");function m(h,u,a){if(this.name=h,this.geometries=u,a)a=[a[0],a[1]];else{var i=this.getBoundingRect();a=[i.x+i.width/2,i.y+i.height/2]}this.center=a}m.prototype={constructor:m,properties:null,getBoundingRect:function(){var h=this._rect;if(h)return h;for(var u=Number.MAX_VALUE,a=[u,u],i=[-u,-u],t=[],o=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var r=e[l].exterior;p.fromPoints(r,t,o),x.min(a,a,t),x.max(i,i,o)}return l===0&&(a[0]=a[1]=i[0]=i[1]=0),this._rect=new y(a[0],a[1],i[0]-a[0],i[1]-a[1])},contain:function(h){var u=this.getBoundingRect(),a=this.geometries;if(!u.contain(h[0],h[1]))return!1;e:for(var i=0,t=a.length;i<t;i++){if(a[i].type!=="polygon")continue;var o=a[i].exterior,e=a[i].interiors;if(A.contain(o,h[0],h[1])){for(var l=0;l<(e?e.length:0);l++)if(A.contain(e[l]))continue e;return!0}}return!1},transformTo:function(h,u,a,i){var t=this.getBoundingRect(),o=t.width/t.height;a?i||(i=a/o):a=o*i;for(var e=new y(h,u,a,i),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,d=r[s].interiors,g=0;g<c.length;g++)x.applyTransform(c[g],c[g],l);for(var v=0;v<(d?d.length:0);v++)for(var g=0;g<d[v].length;g++)x.applyTransform(d[v][g],d[v][g],l)}t=this._rect,t.copy(e),this.center=[t.x+t.width/2,t.y+t.height/2]},cloneShallow:function(h){h==null&&(h=this.name);var u=new m(h,this.geometries,this.center);return u._rect=this._rect,u.transformTo=null,u}};var f=m;k.exports=f},"8txm":function(k,D,n){},"8waO":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("iLNv"),A=n("ZWlE");n("hJvP"),n("IXyC"),n("xRUu");var m=5;y.extendComponentView({type:"parallel",render:function(u,a,i){this._model=u,this._api=i,this._handlers||(this._handlers={},p.each(f,function(t,o){i.getZr().on(o,this._handlers[o]=p.bind(t,this))},this)),x.createOrUpdate(this,"_throttledDispatchExpand",u.get("axisExpandRate"),"fixRate")},dispose:function(u,a){p.each(this._handlers,function(i,t){a.getZr().off(t,i)}),this._handlers=null},_throttledDispatchExpand:function(u){this._dispatchExpand(u)},_dispatchExpand:function(u){u&&this._api.dispatchAction(p.extend({type:"parallelAxisExpand"},u))}});var f={mousedown:function(u){h(this,"click")&&(this._mouseDownPoint=[u.offsetX,u.offsetY])},mouseup:function(u){var a=this._mouseDownPoint;if(h(this,"click")&&a){var i=[u.offsetX,u.offsetY],t=Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2);if(t>m)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(u){if(this._mouseDownPoint||!h(this,"mousemove"))return;var a=this._model,i=a.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]),t=i.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(a.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:i.axisExpandWindow,animation:t==="jump"?null:!1})}};function h(u,a){var i=u._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===a}y.registerPreprocessor(A)},"8x+h":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("K4ya"),f=n("Qxkt"),h=["#ddd"],u=x.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,o){var e=this.option;!o&&m.replaceVisualOption(e,t,["inBrush","outOfBrush"]);var l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:h},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(t){if(!t)return;this.areas=A.map(t,function(o){return a(this.option,o)},this)},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,o){return A.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new f(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},o,!0)}var i=u;k.exports=i},"8z0m":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("RIqP"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("J4zp"),u=n.n(h),a=n("q1tI"),i=n.n(a),t=n("TSYQ"),o=n.n(t);function e(mr,Pr){var gr="cannot "+mr.method+" "+mr.action+" "+Pr.status+"'",Jt=new Error(gr);return Jt.status=Pr.status,Jt.method=mr.method,Jt.url=mr.action,Jt}function l(mr){var Pr=mr.responseText||mr.response;if(!Pr)return Pr;try{return JSON.parse(Pr)}catch(gr){return Pr}}function r(mr){var Pr=new XMLHttpRequest;mr.onProgress&&Pr.upload&&(Pr.upload.onprogress=function(dn){dn.total>0&&(dn.percent=dn.loaded/dn.total*100),mr.onProgress(dn)});var gr=new FormData;mr.data&&Object.keys(mr.data).forEach(function(Dt){var dn=mr.data[Dt];if(Array.isArray(dn)){dn.forEach(function(Fn){gr.append(Dt+"[]",Fn)});return}gr.append(Dt,mr.data[Dt])}),mr.file instanceof Blob?gr.append(mr.filename,mr.file,mr.file.name):gr.append(mr.filename,mr.file),Pr.onerror=function(dn){mr.onError(dn)},Pr.onload=function(){return Pr.status<200||Pr.status>=300?mr.onError(e(mr,Pr),l(Pr)):mr.onSuccess(l(Pr),Pr)},Pr.open(mr.method,mr.action,!0),mr.withCredentials&&"withCredentials"in Pr&&(Pr.withCredentials=!0);var Jt=mr.headers||{};return Jt["X-Requested-With"]!==null&&Pr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Jt).forEach(function(Dt){Jt[Dt]!==null&&Pr.setRequestHeader(Dt,Jt[Dt])}),Pr.send(gr),{abort:function(){Pr.abort()}}}var s=+new Date,c=0;function d(){return"rc-upload-"+s+"-"+ ++c}function g(mr,Pr){return mr.indexOf(Pr,mr.length-Pr.length)!==-1}var v=function(mr,Pr){if(mr&&Pr){var gr=Array.isArray(Pr)?Pr:Pr.split(","),Jt=mr.name||"",Dt=mr.type||"",dn=Dt.replace(/\/.*$/,"");return gr.some(function(Fn){var Zn=Fn.trim();return Zn.charAt(0)==="."?g(Jt.toLowerCase(),Zn.toLowerCase()):/\/\*$/.test(Zn)?dn===Zn.replace(/\/.*$/,""):Dt===Zn})}return!0};function b(mr,Pr){var gr=mr.createReader(),Jt=[];function Dt(){gr.readEntries(function(dn){var Fn=Array.prototype.slice.apply(dn);Jt=Jt.concat(Fn);var Zn=!Fn.length;Zn?Pr(Jt):Dt()})}Dt()}var S=function(Pr,gr,Jt){var Dt=function dn(Fn,Zn){Zn=Zn||"",Fn.isFile?Fn.file(function(ci){Jt(ci)&&(Fn.fullPath&&!ci.webkitRelativePath&&(Object.defineProperties(ci,{webkitRelativePath:{writable:!0}}),ci.webkitRelativePath=Fn.fullPath.replace(/^\//,""),Object.defineProperties(ci,{webkitRelativePath:{writable:!1}})),gr([ci]))}):Fn.isDirectory&&b(Fn,function(ci){ci.forEach(function(Xi){dn(Xi,""+Zn+Fn.name+"/")})})};Pr.forEach(function(dn){Dt(dn.webkitGetAsEntry())})},E=S,C=Object.assign||function(mr){for(var Pr=1;Pr<arguments.length;Pr++){var gr=arguments[Pr];for(var Jt in gr)Object.prototype.hasOwnProperty.call(gr,Jt)&&(mr[Jt]=gr[Jt])}return mr},_=function(){function mr(Pr,gr){var Jt=[],Dt=!0,dn=!1,Fn=void 0;try{for(var Zn=Pr[Symbol.iterator](),ci;!(Dt=(ci=Zn.next()).done)&&!(Jt.push(ci.value),gr&&Jt.length===gr);Dt=!0);}catch(Xi){dn=!0,Fn=Xi}finally{try{!Dt&&Zn.return&&Zn.return()}finally{if(dn)throw Fn}}return Jt}return function(Pr,gr){if(Array.isArray(Pr))return Pr;if(Symbol.iterator in Object(Pr))return mr(Pr,gr);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function mr(Pr,gr){for(var Jt=0;Jt<gr.length;Jt++){var Dt=gr[Jt];Dt.enumerable=Dt.enumerable||!1,Dt.configurable=!0,"value"in Dt&&(Dt.writable=!0),Object.defineProperty(Pr,Dt.key,Dt)}}return function(Pr,gr,Jt){return gr&&mr(Pr.prototype,gr),Jt&&mr(Pr,Jt),Pr}}();function w(mr,Pr,gr){return Pr in mr?Object.defineProperty(mr,Pr,{value:gr,enumerable:!0,configurable:!0,writable:!0}):mr[Pr]=gr,mr}function O(mr,Pr){var gr={};for(var Jt in mr){if(Pr.indexOf(Jt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(mr,Jt))continue;gr[Jt]=mr[Jt]}return gr}function I(mr,Pr){if(!(mr instanceof Pr))throw new TypeError("Cannot call a class as a function")}function R(mr,Pr){if(!mr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pr&&(typeof Pr=="object"||typeof Pr=="function")?Pr:mr}function M(mr,Pr){if(typeof Pr!="function"&&Pr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Pr);mr.prototype=Object.create(Pr&&Pr.prototype,{constructor:{value:mr,enumerable:!1,writable:!0,configurable:!0}}),Pr&&(Object.setPrototypeOf?Object.setPrototypeOf(mr,Pr):mr.__proto__=Pr)}var F=function(Pr){return Object.keys(Pr).reduce(function(gr,Jt){return(Jt.substr(0,5)==="data-"||Jt.substr(0,5)==="aria-"||Jt==="role")&&(gr[Jt]=Pr[Jt]),gr},{})},P=function(mr){M(Pr,mr);function Pr(){var gr,Jt,Dt,dn;I(this,Pr);for(var Fn=arguments.length,Zn=Array(Fn),ci=0;ci<Fn;ci++)Zn[ci]=arguments[ci];return dn=(Jt=(Dt=R(this,(gr=Pr.__proto__||Object.getPrototypeOf(Pr)).call.apply(gr,[this].concat(Zn))),Dt),Dt.state={uid:d()},Dt.reqs={},Dt.onChange=function(Xi){var Gn=Xi.target.files;Dt.uploadFiles(Gn),Dt.reset()},Dt.onClick=function(Xi){var Gn=Dt.fileInput;if(!Gn)return;var ei=Dt.props,Zt=ei.children,Nt=ei.onClick;Zt&&Zt.type==="button"&&(Gn.parentNode.focus(),Gn.parentNode.querySelector("button").blur()),Gn.click(),Nt&&Nt(Xi)},Dt.onKeyDown=function(Xi){Xi.key==="Enter"&&Dt.onClick()},Dt.onFileDrop=function(Xi){var Gn=Dt.props.multiple;if(Xi.preventDefault(),Xi.type==="dragover")return;if(Dt.props.directory)E(Array.prototype.slice.call(Xi.dataTransfer.items),Dt.uploadFiles,function(Zt){return v(Zt,Dt.props.accept)});else{var ei=Array.prototype.slice.call(Xi.dataTransfer.files).filter(function(Zt){return v(Zt,Dt.props.accept)});Gn===!1&&(ei=ei.slice(0,1)),Dt.uploadFiles(ei)}},Dt.uploadFiles=function(Xi){var Gn=Array.prototype.slice.call(Xi);Gn.map(function(ei){return ei.uid=d(),ei}).forEach(function(ei){Dt.upload(ei,Gn)})},Dt.saveFileInput=function(Xi){Dt.fileInput=Xi},Jt),R(Dt,dn)}return T(Pr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Jt,Dt){var dn=this,Fn=this.props;if(!Fn.beforeUpload)return setTimeout(function(){return dn.post(Jt)},0);var Zn=Fn.beforeUpload(Jt,Dt);Zn&&Zn.then?Zn.then(function(ci){var Xi=Object.prototype.toString.call(ci);return Xi==="[object File]"||Xi==="[object Blob]"?dn.post(ci):dn.post(Jt)}).catch(function(ci){console.log(ci)}):Zn!==!1&&setTimeout(function(){return dn.post(Jt)},0);return}},{key:"post",value:function(Jt){var Dt=this;if(!this._isMounted)return;var dn=this.props,Fn=dn.onStart,Zn=dn.onProgress,ci=dn.transformFile,Xi=ci===void 0?function(Gn){return Gn}:ci;new Promise(function(Gn){var ei=dn.action;return typeof ei=="function"&&(ei=ei(Jt)),Gn(ei)}).then(function(Gn){var ei=Jt.uid,Zt=dn.customRequest||r,Nt=Promise.resolve(Xi(Jt)).then(function(Me){var ke=dn.data;return typeof ke=="function"&&(ke=ke(Me)),Promise.all([Me,ke])}).catch(function(Me){console.error(Me)});Nt.then(function(Me){var ke=_(Me,2),Pe=ke[0],tt=ke[1],vt={action:Gn,filename:dn.name,data:tt,file:Pe,headers:dn.headers,withCredentials:dn.withCredentials,method:dn.method||"post",onProgress:Zn?function(St){Zn(St,Jt)}:null,onSuccess:function(Vt,Mr){delete Dt.reqs[ei],dn.onSuccess(Vt,Jt,Mr)},onError:function(Vt,Mr){delete Dt.reqs[ei],dn.onError(Vt,Mr,Jt)}};Fn(Jt),Dt.reqs[ei]=Zt(vt)})})}},{key:"reset",value:function(){this.setState({uid:d()})}},{key:"abort",value:function(Jt){var Dt=this.reqs;if(Jt){var dn=Jt;Jt&&Jt.uid&&(dn=Jt.uid),Dt[dn]&&Dt[dn].abort&&Dt[dn].abort(),delete Dt[dn]}else Object.keys(Dt).forEach(function(Fn){Dt[Fn]&&Dt[Fn].abort&&Dt[Fn].abort(),delete Dt[Fn]})}},{key:"render",value:function(){var Jt,Dt=this.props,dn=Dt.component,Fn=Dt.prefixCls,Zn=Dt.className,ci=Dt.disabled,Xi=Dt.id,Gn=Dt.style,ei=Dt.multiple,Zt=Dt.accept,Nt=Dt.children,Me=Dt.directory,ke=Dt.openFileDialogOnClick,Pe=Dt.onMouseEnter,tt=Dt.onMouseLeave,vt=O(Dt,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),St=o()((Jt={},w(Jt,Fn,!0),w(Jt,Fn+"-disabled",ci),w(Jt,Zn,Zn),Jt)),Vt=ci?{}:{onClick:ke?this.onClick:function(){},onKeyDown:ke?this.onKeyDown:function(){},onMouseEnter:Pe,onMouseLeave:tt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(dn,C({},Vt,{className:St,role:"button",style:Gn}),i.a.createElement("input",C({},F(vt),{id:Xi,type:"file",ref:this.saveFileInput,onClick:function($r){return $r.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Zt,directory:Me?"directory":null,webkitdirectory:Me?"webkitdirectory":null,multiple:ei,onChange:this.onChange})),Nt)}}]),Pr}(a.Component),X=P,B=Object.assign||function(mr){for(var Pr=1;Pr<arguments.length;Pr++){var gr=arguments[Pr];for(var Jt in gr)Object.prototype.hasOwnProperty.call(gr,Jt)&&(mr[Jt]=gr[Jt])}return mr},j=function(){function mr(Pr,gr){for(var Jt=0;Jt<gr.length;Jt++){var Dt=gr[Jt];Dt.enumerable=Dt.enumerable||!1,Dt.configurable=!0,"value"in Dt&&(Dt.writable=!0),Object.defineProperty(Pr,Dt.key,Dt)}}return function(Pr,gr,Jt){return gr&&mr(Pr.prototype,gr),Jt&&mr(Pr,Jt),Pr}}();function W(mr,Pr){if(!(mr instanceof Pr))throw new TypeError("Cannot call a class as a function")}function z(mr,Pr){if(!mr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pr&&(typeof Pr=="object"||typeof Pr=="function")?Pr:mr}function V(mr,Pr){if(typeof Pr!="function"&&Pr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Pr);mr.prototype=Object.create(Pr&&Pr.prototype,{constructor:{value:mr,enumerable:!1,writable:!0,configurable:!0}}),Pr&&(Object.setPrototypeOf?Object.setPrototypeOf(mr,Pr):mr.__proto__=Pr)}function Q(){}var G=function(mr){V(Pr,mr);function Pr(){var gr,Jt,Dt,dn;W(this,Pr);for(var Fn=arguments.length,Zn=Array(Fn),ci=0;ci<Fn;ci++)Zn[ci]=arguments[ci];return dn=(Jt=(Dt=z(this,(gr=Pr.__proto__||Object.getPrototypeOf(Pr)).call.apply(gr,[this].concat(Zn))),Dt),Dt.saveUploader=function(Xi){Dt.uploader=Xi},Jt),z(Dt,dn)}return j(Pr,[{key:"abort",value:function(Jt){this.uploader.abort(Jt)}},{key:"render",value:function(){return i.a.createElement(X,B({},this.props,{ref:this.saveUploader}))}}]),Pr}(a.Component);G.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Q,onError:Q,onSuccess:Q,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var re=G,ee=re,ue=function(mr,Pr){var gr={};for(var Jt in mr)Object.prototype.hasOwnProperty.call(mr,Jt)&&Pr.indexOf(Jt)<0&&(gr[Jt]=mr[Jt]);if(mr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Jt=Object.getOwnPropertySymbols(mr);Dt<Jt.length;Dt++)Pr.indexOf(Jt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(mr,Jt[Dt])&&(gr[Jt[Dt]]=mr[Jt[Dt]]);return gr},$=function(Pr,gr){var Jt=Pr.style,Dt=Pr.height,dn=ue(Pr,["style","height"]);return a.createElement(Sr,f()({ref:gr},dn,{type:"drag",style:f()(f()({},Jt),{height:Dt})}))},be=a.forwardRef($);be.displayName="Dragger";var _e=be,Ee=n("UmKh"),Xe=n("gZBC"),He=n.n(Xe),nt=n("+d4F"),Ie=n.n(nt),oe=n("XAae"),ot=n.n(oe),he=n("6xvX"),J=n.n(he),Y=n("qPY4"),q=n.n(Y),fe=n("QB+1"),we=n.n(fe),Ne=n("Qs3X"),je=n.n(Ne),me=n("0n0R");function Ce(){return!0}function Fe(mr){return f()(f()({},mr),{lastModified:mr.lastModified,lastModifiedDate:mr.lastModifiedDate,name:mr.name,size:mr.size,type:mr.type,uid:mr.uid,percent:0,originFileObj:mr})}function it(mr,Pr){var gr=mr.uid!==void 0?"uid":"name";return Pr.filter(function(Jt){return Jt[gr]===mr[gr]})[0]}function Ct(mr,Pr){var gr=mr.uid!==void 0?"uid":"name",Jt=Pr.filter(function(Dt){return Dt[gr]!==mr[gr]});return Jt.length===Pr.length?null:Jt}var mt=function(){var Pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",gr=Pr.split("/"),Jt=gr[gr.length-1],Dt=Jt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Dt)||[""])[0]},Ve=function(Pr){return Pr.indexOf("image/")===0},or=function(Pr){if(Pr.type&&!Pr.thumbUrl)return Ve(Pr.type);var gr=Pr.thumbUrl||Pr.url,Jt=mt(gr);return/^data:image\//.test(gr)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Jt)?!0:/^data:/.test(gr)?!1:!Jt},dt=200;function Yt(mr){return new Promise(function(Pr){if(!mr.type||!Ve(mr.type)){Pr("");return}var gr=document.createElement("canvas");gr.width=dt,gr.height=dt,gr.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(dt,"px; height: ").concat(dt,"px; z-index: 9999; display: none;"),document.body.appendChild(gr);var Jt=gr.getContext("2d"),Dt=new Image;Dt.onload=function(){var dn=Dt.width,Fn=Dt.height,Zn=dt,ci=dt,Xi=0,Gn=0;dn<Fn?(ci=Fn*(dt/dn),Gn=-(ci-Zn)/2):(Zn=dn*(dt/Fn),Xi=-(Zn-ci)/2),Jt.drawImage(Dt,Xi,Gn,Zn,ci);var ei=gr.toDataURL();document.body.removeChild(gr),Pr(ei)},Dt.src=window.URL.createObjectURL(mr)})}var hr=n("3S7+"),Gt=n("CFYs"),Pt=n("H84U"),Xt=n("2/Rp"),Ge=n("hkKa"),pe=function(Pr,gr){var Jt,Dt=Pr.listType,dn=Pr.previewFile,Fn=Pr.onPreview,Zn=Pr.onDownload,ci=Pr.onRemove,Xi=Pr.locale,Gn=Pr.iconRender,ei=Pr.isImageUrl,Zt=Pr.prefixCls,Nt=Pr.items,Me=Nt===void 0?[]:Nt,ke=Pr.showPreviewIcon,Pe=Pr.showRemoveIcon,tt=Pr.showDownloadIcon,vt=Pr.removeIcon,St=Pr.downloadIcon,Vt=Pr.progress,Mr=Object(Ge.a)();a.useEffect(function(){if(Dt!=="picture"&&Dt!=="picture-card")return;(Me||[]).forEach(function(Nr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Nr.originFileObj instanceof File||Nr.originFileObj instanceof Blob)||Nr.thumbUrl!==void 0)return;Nr.thumbUrl="",dn&&dn(Nr.originFileObj).then(function(Lr){Nr.thumbUrl=Lr||"",Mr()})})},[Dt,Me,dn]);var $r=function(Lr,ln){return Fn?(ln.preventDefault(),Fn(Lr)):void 0},vn=function(Lr){typeof Zn=="function"?Zn(Lr):Lr.url&&window.open(Lr.url)},jt=function(Lr){ci&&ci(Lr)},gt=function(Lr){if(Gn)return Gn(Lr,Dt);var ln=Lr.status==="uploading",mn=ei&&ei(Lr)?a.createElement(ot.a,null):a.createElement(J.a,null),ti=ln?a.createElement(He.a,null):a.createElement(Ie.a,null);return Dt==="picture"?ti=ln?a.createElement(He.a,null):mn:Dt==="picture-card"&&(ti=ln?Xi.uploading:mn),ti},pt=function(Lr,ln,mn,ti){var $n={type:"text",size:"small",title:ti,onClick:function(Ni){ln(),Object(me.b)(Lr)&&Lr.props.onClick&&Lr.props.onClick(Ni)},className:"".concat(mn,"-list-item-card-actions-btn")};if(Object(me.b)(Lr)){var hi=Object(me.a)(Lr,f()(f()({},Lr.props),{onClick:function(){}}));return a.createElement(Xt.a,f()({},$n,{icon:hi}))}return a.createElement(Xt.a,$n,a.createElement("span",null,Lr))};a.useImperativeHandle(gr,function(){return{handlePreview:$r,handleDownload:vn}});var ar=a.useContext(Pt.b),Ht=ar.getPrefixCls,Mt=ar.direction,qt=Ht("upload",Zt),Rt=Me.map(function(Nr){var Lr,ln,mn,ti=gt(Nr),$n=a.createElement("div",{className:"".concat(qt,"-text-icon")},ti);if(Dt==="picture"||Dt==="picture-card")if(Nr.status==="uploading"||!Nr.thumbUrl&&!Nr.url){var hi,Ti=o()((hi={},p()(hi,"".concat(qt,"-list-item-thumbnail"),!0),p()(hi,"".concat(qt,"-list-item-file"),Nr.status!=="uploading"),hi));$n=a.createElement("div",{className:Ti},ti)}else{var Ni,Wi=ei&&ei(Nr)?a.createElement("img",{src:Nr.thumbUrl||Nr.url,alt:Nr.name,className:"".concat(qt,"-list-item-image")}):ti,rt=o()((Ni={},p()(Ni,"".concat(qt,"-list-item-thumbnail"),!0),p()(Ni,"".concat(qt,"-list-item-file"),ei&&!ei(Nr)),Ni));$n=a.createElement("a",{className:rt,onClick:function(bn){return $r(Nr,bn)},href:Nr.url||Nr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Wi)}if(Nr.status==="uploading"){var Re="percent"in Nr?a.createElement(Gt.a,f()({},Vt,{type:"line",percent:Nr.percent})):null;mn=a.createElement("div",{className:"".concat(qt,"-list-item-progress"),key:"progress"},Re)}var Ue=o()((Lr={},p()(Lr,"".concat(qt,"-list-item"),!0),p()(Lr,"".concat(qt,"-list-item-").concat(Nr.status),!0),p()(Lr,"".concat(qt,"-list-item-list-type-").concat(Dt),!0),Lr)),Ye=typeof Nr.linkProps=="string"?JSON.parse(Nr.linkProps):Nr.linkProps,et=Pe?pt(vt||a.createElement(we.a,null),function(){return jt(Nr)},qt,Xi.removeFile):null,$e=tt&&Nr.status==="done"?pt(St||a.createElement(je.a,null),function(){return vn(Nr)},qt,Xi.downloadFile):null,at=Dt!=="picture-card"&&a.createElement("span",{key:"download-delete",className:"".concat(qt,"-list-item-card-actions ").concat(Dt==="picture"?"picture":"")},$e,et),wt=o()((ln={},p()(ln,"".concat(qt,"-list-item-name"),!0),p()(ln,"".concat(qt,"-list-item-name-icon-count-").concat([$e,et].filter(function(kn){return kn}).length),!0),ln)),ft=Nr.url?[a.createElement("a",f()({key:"view",target:"_blank",rel:"noopener noreferrer",className:wt,title:Nr.name},Ye,{href:Nr.url,onClick:function(bn){return $r(Nr,bn)}}),Nr.name),at]:[a.createElement("span",{key:"view",className:wt,onClick:function(bn){return $r(Nr,bn)},title:Nr.name},Nr.name),at],cr={pointerEvents:"none",opacity:.5},Jr=ke?a.createElement("a",{href:Nr.url||Nr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Nr.url||Nr.thumbUrl?void 0:cr,onClick:function(bn){return $r(Nr,bn)},title:Xi.previewFile},a.createElement(q.a,null)):null,Qr=Dt==="picture-card"&&Nr.status!=="uploading"&&a.createElement("span",{className:"".concat(qt,"-list-item-actions")},Jr,Nr.status==="done"&&$e,et),fn;Nr.response&&typeof Nr.response=="string"?fn=Nr.response:fn=Nr.error&&Nr.error.statusText||Xi.uploadError;var pr=a.createElement("span",null,$n,ft),Wn=a.createElement("div",{className:Ue},a.createElement("div",{className:"".concat(qt,"-list-item-info")},pr),Qr,a.createElement(Ee.a,{transitionName:"fade",component:""},mn)),kr=o()(p()({},"".concat(qt,"-list-picture-card-container"),Dt==="picture-card"));return a.createElement("div",{key:Nr.uid,className:kr},Nr.status==="error"?a.createElement(hr.a,{title:fn,getPopupContainer:function(bn){return bn.parentNode}},Wn):a.createElement("span",null,Wn))}),Qt=o()((Jt={},p()(Jt,"".concat(qt,"-list"),!0),p()(Jt,"".concat(qt,"-list-").concat(Dt),!0),p()(Jt,"".concat(qt,"-list-rtl"),Mt==="rtl"),Jt)),jr=Dt==="picture-card"?"animate-inline":"animate";return a.createElement(Ee.a,{transitionName:"".concat(qt,"-").concat(jr),component:"div",className:Qt},Rt)},se=a.forwardRef(pe);se.displayName="UploadList",se.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Yt,isImageUrl:or};var lt=se,Ze=n("YMnH"),de=n("ZvpZ"),_t=n("uaoM"),er=n("sPtV"),yt=function(Pr,gr){var Jt,Dt=Pr.fileList,dn=Pr.defaultFileList,Fn=Pr.onRemove,Zn=Pr.showUploadList,ci=Pr.listType,Xi=Pr.onPreview,Gn=Pr.onDownload,ei=Pr.previewFile,Zt=Pr.disabled,Nt=Pr.locale,Me=Pr.iconRender,ke=Pr.isImageUrl,Pe=Pr.progress,tt=Pr.prefixCls,vt=Pr.className,St=Pr.type,Vt=Pr.children,Mr=Pr.style,$r=Object(er.a)(Dt||dn||[]),vn=u()($r,2),jt=vn[0],gt=vn[1],pt=a.useState("drop"),ar=u()(pt,2),Ht=ar[0],Mt=ar[1],qt=a.useRef();a.useEffect(function(){gt(Dt||dn||[]),Object(_t.a)("fileList"in Pr||!("value"in Pr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),a.useEffect(function(){"fileList"in Pr&&gt(Dt||[])},[Dt]);var Rt=function(ft){"fileList"in Pr||gt(ft.fileList);var cr=Pr.onChange;cr&&cr(f()(f()({},ft),{fileList:A()(ft.fileList)}))},Qt=function(ft){var cr=Fe(ft);cr.status="uploading";var Jr=jt().concat(),Qr=Jr.findIndex(function(fn){var pr=fn.uid;return pr===cr.uid});Qr===-1?Jr.push(cr):Jr[Qr]=cr,Rt({file:cr,fileList:Jr})},jr=function(ft,cr,Jr){try{typeof ft=="string"&&(ft=JSON.parse(ft))}catch(fn){}var Qr=it(cr,jt());if(!Qr)return;Qr.status="done",Qr.response=ft,Qr.xhr=Jr,Rt({file:f()({},Qr),fileList:jt().concat()})},Nr=function(ft,cr){var Jr=it(cr,jt());if(!Jr)return;Jr.percent=ft.percent,Rt({event:ft,file:f()({},Jr),fileList:jt().concat()})},Lr=function(ft,cr,Jr){var Qr=it(Jr,jt());if(!Qr)return;Qr.error=ft,Qr.response=cr,Qr.status="error",Rt({file:f()({},Qr),fileList:jt().concat()})},ln=function(ft){Promise.resolve(typeof Fn=="function"?Fn(ft):Fn).then(function(cr){if(cr===!1)return;var Jr=Ct(ft,jt());Jr&&(ft.status="removed",qt.current&&qt.current.abort(ft),Rt({file:ft,fileList:Jr}))})},mn=function(ft){Mt(ft.type)},ti=function(ft,cr){var Jr=Pr.beforeUpload;if(!Jr)return!0;var Qr=Jr(ft,cr);if(Qr===!1){var fn=[];return jt().concat(cr.map(Fe)).forEach(function(pr){fn.every(function(Wn){return Wn.uid!==pr.uid})&&fn.push(pr)}),Rt({file:ft,fileList:fn}),!1}return Qr&&Qr.then?Qr:!0},$n=Object(Ge.a)();a.useImperativeHandle(gr,function(){return{onStart:Qt,onSuccess:jr,onProgress:Nr,onError:Lr,fileList:jt(),upload:qt.current,forceUpdate:$n}});var hi=function(ft){var cr=Zn.showRemoveIcon,Jr=Zn.showPreviewIcon,Qr=Zn.showDownloadIcon,fn=Zn.removeIcon,pr=Zn.downloadIcon;return a.createElement(lt,{listType:ci,items:jt(),previewFile:ei,onPreview:Xi,onDownload:Gn,onRemove:ln,showRemoveIcon:!Zt&&cr,showPreviewIcon:Jr,showDownloadIcon:Qr,removeIcon:fn,downloadIcon:pr,iconRender:Me,locale:f()(f()({},ft),Nt),isImageUrl:ke,progress:Pe})},Ti=a.useContext(Pt.b),Ni=Ti.getPrefixCls,Wi=Ti.direction,rt=Ni("upload",tt),Re=f()(f()({onStart:Qt,onError:Lr,onProgress:Nr,onSuccess:jr},Pr),{prefixCls:rt,beforeUpload:ti});delete Re.className,delete Re.style,(!Vt||Zt)&&delete Re.id;var Ue=Zn?a.createElement(Ze.a,{componentName:"Upload",defaultLocale:de.a.Upload},hi):null;if(St==="drag"){var Ye,et=o()(rt,(Ye={},p()(Ye,"".concat(rt,"-drag"),!0),p()(Ye,"".concat(rt,"-drag-uploading"),jt().some(function(wt){return wt.status==="uploading"})),p()(Ye,"".concat(rt,"-drag-hover"),Ht==="dragover"),p()(Ye,"".concat(rt,"-disabled"),Zt),p()(Ye,"".concat(rt,"-rtl"),Wi==="rtl"),Ye),vt);return a.createElement("span",null,a.createElement("div",{className:et,onDrop:mn,onDragOver:mn,onDragLeave:mn,style:Mr},a.createElement(ee,f()({},Re,{ref:qt,className:"".concat(rt,"-btn")}),a.createElement("div",{className:"".concat(rt,"-drag-container")},Vt))),Ue)}var $e=o()(rt,(Jt={},p()(Jt,"".concat(rt,"-select"),!0),p()(Jt,"".concat(rt,"-select-").concat(ci),!0),p()(Jt,"".concat(rt,"-disabled"),Zt),p()(Jt,"".concat(rt,"-rtl"),Wi==="rtl"),Jt)),at=a.createElement("div",{className:$e,style:Vt?void 0:{display:"none"}},a.createElement(ee,f()({},Re,{ref:qt})));return ci==="picture-card"?a.createElement("span",{className:o()(vt,"".concat(rt,"-picture-card-wrapper"))},Ue,at):a.createElement("span",{className:vt},at,Ue)},Ar=a.forwardRef(yt);Ar.Dragger=_e,Ar.displayName="Upload",Ar.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:Ce,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var Sr=Ar;Sr.Dragger=_e;var Cn=D.a=Sr},"98bh":function(k,D,n){var y=n("ProS"),p=n("5GtS"),x=n("bYtY"),A=n("4NO4"),m=n("OELB"),f=m.getPercentWithPrecision,h=n("cCMj"),u=n("KxfA"),a=u.retrieveRawAttr,i=n("D5nY"),t=i.makeSeriesEncodeForNameBased,o=n("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new o(x.bind(this.getData,this),x.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:x.curry(t,this)})},_createSelectableList:function(){for(var r=this.getRawData(),s=r.mapDimension("value"),c=[],d=0,g=r.count();d<g;d++)c.push({name:r.getName(d),value:r.get(s,d),selected:a(r,d,"selected")});return c},getDataParams:function(r){var s=this.getData(),c=e.superCall(this,"getDataParams",r),d=[];return s.each(s.mapDimension("value"),function(g){d.push(g)}),c.percent=f(d,r,s.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(r){A.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"}});x.mixin(e,h);var l=e;k.exports=l},"9H2F":function(k,D,n){var y=n("bYtY"),p=y.assert,x=y.isArray,A=n("Tghj"),m=A.__DEV__;function f(o){return new h(o)}function h(o){o=o||{},this._reset=o.reset,this._plan=o.plan,this._count=o.count,this._onDirty=o.onDirty,this._dirty=!0,this.context}var u=h.prototype;u.perform=function(o){var e=this._upstream,l=o&&o.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),d=this._modDataCount||0,g=b(o&&o.modBy),v=o&&o.modDataCount||0;(c!==g||d!==v)&&(s="reset");function b(I){return!(I>=1)&&(I=1),I}var S;(this._dirty||s==="reset")&&(this._dirty=!1,S=t(this,l)),this._modBy=g,this._modDataCount=v;var E=o&&o.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var C=this._dueIndex,_=Math.min(E!=null?this._dueIndex+E:Infinity,this._dueEnd);if(!l&&(S||C<_)){var T=this._progress;if(x(T))for(var w=0;w<T.length;w++)i(this,T[w],C,_,g,v);else i(this,T,C,_,g,v)}this._dueIndex=_;var O=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=O}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var a=function(){var o,e,l,r,s,c={reset:function(v,b,S,E){e=v,o=b,l=S,r=E,s=Math.ceil(r/l),c.next=l>1&&r>0?g:d}};return c;function d(){return e<o?e++:null}function g(){var v=e%s*l+Math.ceil(e/s),b=e>=o?null:v<r?v:e;return e++,b}}();u.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function i(o,e,l,r,s,c){a.reset(l,r,s,c),o._callingProgress=e,o._callingProgress({start:l,end:r,count:r-l,next:a.next},o.context)}function t(o,e){o._dueIndex=o._outputDueEnd=o._dueEnd=0,o._settedOutputEnd=null;var l,r;!e&&o._reset&&(l=o._reset(o.context),l&&l.progress&&(r=l.forceFirstProgress,l=l.progress),x(l)&&!l.length&&(l=null)),o._progress=l,o._modBy=o._modDataCount=null;var s=o._downstream;return s&&s.dirty(),r}u.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},u.pipe=function(o){(this._downstream!==o||this._dirty)&&(this._downstream=o,o._upstream=this,o.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(o){this._outputDueEnd=this._settedOutputEnd=o},D.createTask=f},"9KIM":function(k,D,n){var y=n("mFDi"),p=n("xSat"),x=p.onIrrelevantElement,A=n("IwbS");function m(a){return a=u(a),function(i,t){return A.clipPointsByRect(i,a)}}function f(a,i){return a=u(a),function(t){var o=i!=null?i:t,e=o?a.width:a.height,l=o?a.x:a.y;return[l,l+(e||0)]}}function h(a,i,t){return a=u(a),function(o,e,l){return a.contain(e[0],e[1])&&!x(o,i,t)}}function u(a){return y.create(a)}D.makeRectPanelClipPath=m,D.makeLinearBrushOtherExtent=f,D.makeRectIsTargetByCursor=h},"9OqN":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CTR=function(){var p=y.lib.BlockCipherMode.extend(),x=p.Encryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var t=i.slice(0);h.encryptBlock(t,0),i[u-1]=i[u-1]+1|0;for(var o=0;o<u;o++)m[f+o]^=t[o]}});return p.Decryptor=x,p}(),y.mode.CTR})},"9ama":function(k,D,n){},"9eas":function(k,D,n){n("HM/N"),n("tBnm")},"9hCq":function(k,D,n){var y=n("IwbS"),p=n("+TT/"),x=n("bYtY"),A=n("VaxA"),m=A.wrapTreePathInfo,f=8,h=8,u=5;function a(e){this.group=new y.Group,e.add(this.group)}a.prototype={constructor:a,render:function(e,l,r,s){var c=e.getModel("breadcrumb"),d=this.group;if(d.removeAll(),!c.get("show")||!r)return;var g=c.getModel("itemStyle"),v=g.getModel("textStyle"),b={pos:{left:c.get("left"),right:c.get("right"),top:c.get("top"),bottom:c.get("bottom")},box:{width:l.getWidth(),height:l.getHeight()},emptyItemWidth:c.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,b,v),this._renderContent(e,b,g,v,s),p.positionElement(d,b.pos,b.box)},_prepare:function(e,l,r){for(var s=e;s;s=s.parentNode){var c=s.getModel().get("name"),d=r.getTextRect(c),g=Math.max(d.width+f*2,l.emptyItemWidth);l.totalWidth+=g+h,l.renderList.push({node:s,text:c,width:g})}},_renderContent:function(e,l,r,s,c){for(var d=0,g=l.emptyItemWidth,v=e.get("breadcrumb.height"),b=p.getAvailableSize(l.pos,l.box),S=l.totalWidth,E=l.renderList,C=E.length-1;C>=0;C--){var _=E[C],T=_.node,w=_.width,O=_.text;S>b.width&&(S-=w-g,w=g,O=null);var I=new y.Polygon({shape:{points:i(d,0,w,v,C===E.length-1,C===0)},style:x.defaults(r.getItemStyle(),{lineJoin:"bevel",text:O,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:x.curry(c,T)});this.group.add(I),t(I,e,T),d+=w+h}},remove:function(){this.group.removeAll()}};function i(e,l,r,s,c,d){var g=[[c?e:e-u,l],[e+r,l],[e+r,l+s],[c?e:e-u,l+s]];return!d&&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 o=a;k.exports=o},"9u0u":function(k,D,n){var y=n("bYtY");function p(A,m){var f={};return y.each(A,function(h){h.each(h.mapDimension("value"),function(u,a){var i="ec-"+h.getName(a);f[i]=f[i]||[],isNaN(u)||f[i].push(u)})}),A[0].map(A[0].mapDimension("value"),function(h,u){for(var a="ec-"+A[0].getName(u),i=0,t=Infinity,o=-Infinity,e=f[a].length,l=0;l<e;l++)t=Math.min(t,f[a][l]),o=Math.max(o,f[a][l]),i+=f[a][l];var r;return m==="min"?r=t:m==="max"?r=o:m==="average"?r=i/e:r=i,e===0?NaN:r})}function x(A){var m={};A.eachSeriesByType("map",function(f){var h=f.getHostGeoModel(),u=h?"o"+h.id:"i"+f.getMapType();(m[u]=m[u]||[]).push(f)}),y.each(m,function(f,h){for(var u=p(y.map(f,function(i){return i.getData()}),f[0].get("mapValueCalculation")),a=0;a<f.length;a++)f[a].originalData=f[a].getData();for(var a=0;a<f.length;a++)f[a].seriesGroup=f,f[a].needsDrawMap=a===0&&!f[a].getHostGeoModel(),f[a].setData(u.cloneShallow()),f[a].mainSeries=f[0]})}k.exports=x},"9wZj":function(k,D,n){var y=n("IwbS"),p=n("FBjb"),x=n("bYtY"),A=x.isObject;function m(t){this.group=new y.Group,this._symbolCtor=t||p}var f=m.prototype;function h(t,o,e,l){return o&&!isNaN(o[0])&&!isNaN(o[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(o[0],o[1]))&&t.getItemVisual(e,"symbol")!=="none"}f.updateData=function(t,o){o=u(o);var e=this.group,l=t.hostModel,r=this._data,s=this._symbolCtor,c=a(t);r||e.removeAll(),t.diff(r).add(function(d){var g=t.getItemLayout(d);if(h(t,g,d,o)){var v=new s(t,d,c);v.attr("position",g),t.setItemGraphicEl(d,v),e.add(v)}}).update(function(d,g){var v=r.getItemGraphicEl(g),b=t.getItemLayout(d);if(!h(t,b,d,o)){e.remove(v);return}v?(v.updateData(t,d,c),y.updateProps(v,{position:b},l)):(v=new s(t,d),v.attr("position",b)),e.add(v),t.setItemGraphicEl(d,v)}).remove(function(d){var g=r.getItemGraphicEl(d);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(o,e){var l=t.getItemLayout(e);o.attr("position",l)})},f.incrementalPrepareUpdate=function(t){this._seriesScope=a(t),this._data=null,this.group.removeAll()},f.incrementalUpdate=function(t,o,e){e=u(e);function l(d){d.isGroup||(d.incremental=d.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){var s=o.getItemLayout(r);if(h(o,s,r,e)){var c=new this._symbolCtor(o,r,this._seriesScope);c.traverse(l),c.attr("position",s),this.group.add(c),o.setItemGraphicEl(r,c)}}};function u(t){return t!=null&&!A(t)&&(t={isIgnore:t}),t||{}}f.remove=function(t){var o=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(l){l.fadeOut(function(){o.remove(l)})}):o.removeAll()};function a(t){var o=t.hostModel;return{itemStyle:o.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:o.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:o.get("symbolRotate"),symbolOffset:o.get("symbolOffset"),hoverAnimation:o.get("hoverAnimation"),labelModel:o.getModel("label"),hoverLabelModel:o.getModel("emphasis.label"),cursorStyle:o.get("cursor")}}var i=m;k.exports=i},"9yH6":function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("x1Ya"),h=n("TSYQ"),u=n.n(h),a=n("H84U"),i=m.createContext(null),t=i.Provider,o=i,e=n("ID/q"),l=n("uaoM"),r=function(R,M){var F={};for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&M.indexOf(P)<0&&(F[P]=R[P]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(R);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(R,P[X])&&(F[P[X]]=R[P[X]]);return F},s=function(M,F){var P,X=m.useContext(o),B=m.useContext(a.b),j=B.getPrefixCls,W=B.direction,z=m.useRef(),V=Object(e.a)(F,z);m.useEffect(function(){Object(l.a)(!("optionType"in M),"Radio","`optionType` is only support in Radio.Group.")},[]);var Q=function(He){M.onChange&&M.onChange(He),(X==null?void 0:X.onChange)&&X.onChange(He)},G=M.prefixCls,re=M.className,ee=M.children,ue=M.style,$=r(M,["prefixCls","className","children","style"]),be=j("radio",G),_e=A()({},$);X&&(_e.name=X.name,_e.onChange=Q,_e.checked=M.value===X.value,_e.disabled=M.disabled||X.disabled);var Ee=u()(re,(P={},p()(P,"".concat(be,"-wrapper"),!0),p()(P,"".concat(be,"-wrapper-checked"),_e.checked),p()(P,"".concat(be,"-wrapper-disabled"),_e.disabled),p()(P,"".concat(be,"-wrapper-rtl"),W==="rtl"),P));return m.createElement("label",{className:Ee,style:ue,onMouseEnter:M.onMouseEnter,onMouseLeave:M.onMouseLeave},m.createElement(f.a,A()({},_e,{prefixCls:be,ref:V})),ee!==void 0?m.createElement("span",null,ee):null)},c=m.forwardRef(s);c.displayName="Radio",c.defaultProps={type:"radio"};var d=c,g=n("J4zp"),v=n.n(g),b=n("6cGi"),S=n("3Nzz"),E=m.forwardRef(function(R,M){var F=m.useContext(a.b),P=F.getPrefixCls,X=F.direction,B=m.useContext(S.b),j=Object(b.a)(R.defaultValue,{value:R.value}),W=v()(j,2),z=W[0],V=W[1],Q=function(ee){var ue=z,$=ee.target.value;"value"in R||V($);var be=R.onChange;be&&$!==ue&&be(ee)},G=function(){var ee,ue=R.prefixCls,$=R.className,be=$===void 0?"":$,_e=R.options,Ee=R.optionType,Xe=R.buttonStyle,He=R.disabled,nt=R.children,Ie=R.size,oe=R.style,ot=R.id,he=R.onMouseEnter,J=R.onMouseLeave,Y=P("radio",ue),q="".concat(Y,"-group"),fe=nt;if(_e&&_e.length>0){var we=Ee==="button"?"".concat(Y,"-button"):Y;fe=_e.map(function(me){return typeof me=="string"?m.createElement(d,{ref:M,key:me,prefixCls:we,disabled:He,value:me,checked:z===me},me):m.createElement(d,{ref:M,key:"radio-group-value-options-".concat(me.value),prefixCls:we,disabled:me.disabled||He,value:me.value,checked:z===me.value,style:me.style},me.label)})}var Ne=Ie||B,je=u()(q,"".concat(q,"-").concat(Xe),(ee={},p()(ee,"".concat(q,"-").concat(Ne),Ne),p()(ee,"".concat(q,"-rtl"),X==="rtl"),ee),be);return m.createElement("div",{className:je,style:oe,onMouseEnter:he,onMouseLeave:J,id:ot},fe)};return m.createElement(t,{value:{onChange:Q,value:z,disabled:R.disabled,name:R.name}},G())});E.defaultProps={buttonStyle:"outline"};var C=m.memo(E),_=function(R,M){var F={};for(var P in R)Object.prototype.hasOwnProperty.call(R,P)&&M.indexOf(P)<0&&(F[P]=R[P]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(R);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(R,P[X])&&(F[P[X]]=R[P[X]]);return F},T=function(M,F){var P=m.useContext(o),X=m.useContext(a.b),B=X.getPrefixCls,j=M.prefixCls,W=_(M,["prefixCls"]),z=B("radio-button",j);return P&&(W.checked=M.value===P.value,W.disabled=M.disabled||P.disabled),m.createElement(d,A()({prefixCls:z},W,{type:"radio",ref:F}))},w=m.forwardRef(T),O=d;O.Button=w,O.Group=C;var I=D.a=O},A1Ka:function(k,D,n){var y=n("bLfw"),p=n("sS/r"),x=n("D5nY"),A=x.detectSourceFormat,m=n("k9D9"),f=m.SERIES_LAYOUT_BY_COLUMN;y.extend({type:"dataset",defaultOption:{seriesLayoutBy:f,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){A(this)}}),p.extend({type:"dataset"})},A90E:function(k,D,n){var y=n("6sVZ"),p=n("V6Ve"),x=Object.prototype,A=x.hasOwnProperty;function m(f){if(!y(f))return p(f);var h=[];for(var u in Object(f))A.call(f,u)&&u!="constructor"&&h.push(u);return h}k.exports=m},ABKa:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Qs9O")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FolderOutlined";var i=A.forwardRef(a);D.default=i},AE9C:function(k,D,n){var y=n("bYtY"),p=n("crZl"),x=n("IwbS"),A=n("oVpE"),m=A.createSymbol,f=n("+TT/"),h=n("y7Aq"),u=p.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group;i.removeAll();var t=this.visualMapModel,o=t.get("textGap"),e=t.textStyleModel,l=e.getFont(),r=e.getTextColor(),s=this._getItemAlign(),c=t.itemSize,d=this._getViewData(),g=d.endsText,v=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(i,g[0],c,v,s),y.each(d.viewPieceList,b,this),g&&this._renderEndsText(i,g[1],c,v,s),f.box(t.get("orient"),i,t.get("itemGap")),this.renderBackground(i),this.positionGroup(i);function b(S){var E=S.piece,C=new x.Group;C.onclick=y.bind(this._onItemClick,this,E),this._enableHoverLink(C,S.indexInModelPieceList);var _=t.getRepresentValue(E);if(this._createItemSymbol(C,_,[0,0,c[0],c[1]]),v){var T=this.visualMapModel.getValueState(_);C.add(new x.Text({style:{x:s==="right"?-o:c[0]+o,y:c[1]/2,text:E.text,textVerticalAlign:"middle",textAlign:s,textFont:l,textFill:r,opacity:T==="outOfRange"?.5:1}}))}i.add(C)}},_enableHoverLink:function(i,t){i.on("mouseover",y.bind(o,this,"highlight")).on("mouseout",y.bind(o,this,"downplay"));function o(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:h.makeHighDownBatch(l.findTargetDataIndices(t),l)})}},_getItemAlign:function(){var i=this.visualMapModel,t=i.option;if(t.orient==="vertical")return h.getItemAlign(i,this.api,i.itemSize);var o=t.align;return(!o||o==="auto")&&(o="left"),o},_renderEndsText:function(i,t,o,e,l){if(!t)return;var r=new x.Group,s=this.visualMapModel.textStyleModel;r.add(new x.Text({style:{x:e?l==="right"?o[0]:0:o[0]/2,y:o[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),i.add(r)},_getViewData:function(){var i=this.visualMapModel,t=y.map(i.getPieceList(),function(r,s){return{piece:r,indexInModelPieceList:s}}),o=i.get("text"),e=i.get("orient"),l=i.get("inverse");return(e==="horizontal"?l:!l)?t.reverse():o&&(o=o.slice().reverse()),{viewPieceList:t,endsText:o}},_createItemSymbol:function(i,t,o){i.add(m(this.getControllerVisual(t,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(t,"color")))},_onItemClick:function(i){var t=this.visualMapModel,o=t.option,e=y.clone(o.selected),l=t.getSelectedMapKey(i);o.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})}}),a=u;k.exports=a},AEZ6:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.createHashMap,A=n("T4UG"),m=n("MwEJ"),f=A.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(a,i){var t=this.getSource();return h(t,this),m(t,this)},getRawIndicesByActiveState:function(a){var i=this.coordinateSystem,t=this.getData(),o=[];return i.eachActiveState(t,function(e,l){a===e&&o.push(t.getRawIndex(l))}),o},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 h(a,i){if(a.encodeDefine)return;var t=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(!t)return;var o=a.encodeDefine=x();p(t.dimensions,function(e){var l=u(e);o.set(e,l)})}function u(a){return+a.replace("dim","")}k.exports=f},AH3D:function(k,D,n){var y=n("ProS");n("y4/Y"),n("qWt2"),n("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,n){var y=n("ProS"),p=n("bYtY"),x=n("5GtS"),A=n("4NO4"),m=A.defaultEmphasis,f=n("D5nY"),h=f.makeSeriesEncodeForNameBased,u=n("xKMd"),a=y.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new u(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,o){return x(this,{coordDimensions:["value"],encodeDefaulter:p.curry(h,this)})},_defaultLabelLine:function(t){m(t,"labelLine",["show"]);var o=t.labelLine,e=t.emphasis.labelLine;o.show=o.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var o=this.getData(),e=a.superCall(this,"getDataParams",t),l=o.mapDimension("value"),r=o.getSum(l);return e.percent=r?+(o.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}}}}),i=a;k.exports=i},ALsQ:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.CFB=function(){var p=y.lib.BlockCipherMode.extend();p.Encryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize;x.call(this,m,f,u,h),this._prevBlock=m.slice(f,f+u)}}),p.Decryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize,a=m.slice(f,f+u);x.call(this,m,f,u,h),this._prevBlock=a}});function x(A,m,f,h){var u,a=this._iv;a?(u=a.slice(0),this._iv=void 0):u=this._prevBlock,h.encryptBlock(u,0);for(var i=0;i<f;i++)A[m+i]^=u[i]}return p}(),y.mode.CFB})},ANjR:function(k,D,n){var y=n("bYtY");function p(A,m){return m=m||[0,0],y.map([0,1],function(f){var h=m[f],u=A[f]/2,a=[],i=[];return a[f]=h-u,i[f]=h+u,a[1-f]=i[1-f]=m[1-f],Math.abs(this.dataToPoint(a)[f]-this.dataToPoint(i)[f])},this)}function x(A){var m=A.getBoundingRect();return{coordSys:{type:"geo",x:m.x,y:m.y,width:m.width,height:m.height,zoom:A.getZoom()},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=x},AOa7:function(k,D,n){},AUH6:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("bMXI"),A=n("W4dC");function m(u,a,i,t){x.call(this,u),this.map=a;var o=A.load(a,i);this._nameCoordMap=o.nameCoordMap,this._regionsMap=o.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=o.regions,this._rect=o.boundingRect}m.prototype={constructor:m,type:"geo",dimensions:["lng","lat"],containCoord:function(u){for(var a=this.regions,i=0;i<a.length;i++)if(a[i].contain(u))return!0;return!1},transformTo:function(u,a,i,t){var o=this.getBoundingRect(),e=this._invertLongitute;o=o.clone(),e&&(o.y=-o.y-o.height);var l=this._rawTransformable;if(l.transform=o.calculateTransform(new p(u,a,i,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 a=this.regions,i=0;i<a.length;i++)if(a[i].contain(u))return a[i]},addGeoCoord:function(u,a){this._nameCoordMap.set(u,a)},getGeoCoord:function(u){return this._nameCoordMap.get(u)},getBoundingRect:function(){return this._rect},dataToPoint:function(u,a,i){if(typeof u=="string"&&(u=this.getGeoCoord(u)),u)return x.prototype.dataToPoint.call(this,u,a,i)},convertToPixel:y.curry(f,"dataToPoint"),convertFromPixel:y.curry(f,"pointToData")},y.mixin(m,x);function f(u,a,i,t){var o=i.geoModel,e=i.seriesModel,l=o?o.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[u](t):null}var h=m;k.exports=h},AVZG:function(k,D,n){var y=n("bYtY");function p(x,A,m){m=m||{};var f=x.coordinateSystem,h=A.axis,u={},a=h.getAxesOnZeroOf()[0],i=h.position,t=a?"onZero":i,o=h.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=A.get("offset")||0,c=o==="x"?[l[2]-s,l[3]+s]:[l[0]-s,l[1]+s];if(a){var d=a.toGlobalCoord(a.dataToCoord(0));c[r.onZero]=Math.max(Math.min(d,c[1]),c[0])}u.position=[o==="y"?c[r[t]]:l[0],o==="x"?c[r[t]]:l[3]],u.rotation=Math.PI/2*(o==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};u.labelDirection=u.tickDirection=u.nameDirection=g[i],u.labelOffset=a?c[r[i]]-c[r.onZero]:0,A.get("axisTick.inside")&&(u.tickDirection=-u.tickDirection),y.retrieve(m.labelInside,A.get("axisLabel.inside"))&&(u.labelDirection=-u.labelDirection);var v=A.get("axisLabel.rotate");return u.labelRotate=t==="top"?-v:v,u.z2=1,u}D.layout=p},"Ae+d":function(k,D){function n(p,x,A){var m=p.target,f=m.position;f[0]+=x,f[1]+=A,m.dirty()}function y(p,x,A,m){var f=p.target,h=p.zoomLimit,u=f.position,a=f.scale,i=p.zoom=p.zoom||1;if(i*=x,h){var t=h.min||0,o=h.max||Infinity;i=Math.max(Math.min(o,i),t)}var e=i/p.zoom;p.zoom=i,u[0]-=(A-u[0])*(e-1),u[1]-=(m-u[1])*(e-1),a[0]*=e,a[1]*=e,f.dirty()}D.updateViewOnPan=n,D.updateViewOnZoom=y},Ae16:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS");n("Wqna"),n("rySg"),y.extendComponentView({type:"grid",render:function(A,m){this.group.removeAll(),A.get("show")&&this.group.add(new x.Rect({shape:A.coordinateSystem.getRect(),style:p.defaults({fill:A.get("backgroundColor")},A.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(A){A.xAxis&&A.yAxis&&!A.grid&&(A.grid={})})},Awhp:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("PQMj"),A=n.n(x)},"B+YJ":function(k,D,n){n("TYVI"),n("p1MT")},"B6l+":function(k,D,n){var y=n("Sq3C"),p=n("Z1HP"),x=n("Sxd8"),A=n("dt0z");function m(f,h,u){f=A(f),h=x(h);var a=h?p(f):0;return h&&a<h?f+y(h-a,u):f}k.exports=m},B8du:function(k,D){function n(){return!1}k.exports=n},B9cy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("0XgM"),A=n.n(x)},B9fm:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("YH21"),A=n("Ze12"),m=n("ItGF"),f=n("7aKB"),h=y.each,u=f.toCamelCase,a=["","-webkit-","-moz-","-o-"],i="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function t(c){var d="cubic-bezier(0.23, 1, 0.32, 1)",g="left "+c+"s "+d+",top "+c+"s "+d;return y.map(a,function(v){return v+"transition:"+g}).join(";")}function o(c){var d=[],g=c.get("fontSize"),v=c.getTextColor();return v&&d.push("color:"+v),d.push("font:"+c.getFont()),g&&d.push("line-height:"+Math.round(g*3/2)+"px"),h(["decoration","align"],function(b){var S=c.get(b);S&&d.push("text-"+b+":"+S)}),d.join(";")}function e(c){var d=[],g=c.get("transitionDuration"),v=c.get("backgroundColor"),b=c.getModel("textStyle"),S=c.get("padding");return g&&d.push(t(g)),v&&(m.canvasSupported?d.push("background-Color:"+v):(d.push("background-Color:#"+p.toHex(v)),d.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(E){var C="border-"+E,_=u(C),T=c.get(_);T!=null&&d.push(C+":"+T+(E==="color"?"":"px"))}),d.push(o(b)),S!=null&&d.push("padding:"+f.normalizeCssArray(S).join("px ")+"px"),d.join(";")+";"}function l(c,d,g,v,b){var S=d&&d.painter;if(g){var E=S&&S.getViewportRoot();E&&A.transformLocalCoord(c,E,document.body,v,b)}else{c[0]=v,c[1]=b;var C=S&&S.getViewportRootOffset();C&&(c[0]+=C.offsetLeft,c[1]+=C.offsetTop)}}function r(c,d,g){if(m.wxa)return null;var v=document.createElement("div");v.domBelongToZr=!0,this.el=v;var b=this._zr=d.getZr(),S=this._appendToBody=g&&g.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,b,S,d.getWidth()/2,d.getHeight()/2),S?document.body.appendChild(v):c.appendChild(v),this._container=c,this._show=!1,this._hideTimeout;var E=this;v.onmouseenter=function(){E._enterable&&(clearTimeout(E._hideTimeout),E._show=!0),E._inContent=!0},v.onmousemove=function(C){if(C=C||window.event,!E._enterable){var _=b.handler,T=b.painter.getViewportRoot();x.normalizeEvent(T,C,!0),_.dispatch("mousemove",C)}},v.onmouseleave=function(){E._enterable&&(E._show&&E.hideLater(E._hideDelay)),E._inContent=!1}}r.prototype={constructor:r,_enterable:!0,update:function(){var c=this._container,d=c.currentStyle||document.defaultView.getComputedStyle(c),g=c.style;g.position!=="absolute"&&d.position!=="absolute"&&(g.position="relative")},show:function(c){clearTimeout(this._hideTimeout);var d=this.el,g=this._styleCoord;d.style.cssText=i+e(c)+";left:"+g[0]+"px;top:"+g[1]+"px;"+(c.get("extraCssText")||""),d.style.display=d.innerHTML?"block":"none",d.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,d){var g=this._styleCoord;l(g,this._zr,this._appendToBody,c,d);var v=this.el.style;v.left=g[0]+"px",v.top=g[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(c){this._show&&!(this._inContent&&this._enterable)&&(c?(this._hideDelay=c,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),c)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var c=this.el.clientWidth,d=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),d+=parseInt(g.borderTopWidth,10)+parseInt(g.borderBottomWidth,10))}return{width:c,height:d}}};var s=r;k.exports=s},BPZU:function(k,D){var n=32,y=7,p=256;function x(t){for(var o=0;t>=n;)o|=t&1,t>>=1;return t+o}function A(t,o,e,l){var r=o+1;if(r===e)return 1;if(l(t[r++],t[o])<0){for(;r<e&&l(t[r],t[r-1])<0;)r++;m(t,o,r)}else for(;r<e&&l(t[r],t[r-1])>=0;)r++;return r-o}function m(t,o,e){for(e--;o<e;){var l=t[o];t[o++]=t[e],t[e--]=l}}function f(t,o,e,l,r){for(l===o&&l++;l<e;l++){for(var s=t[l],c=o,d=l,g;c<d;)g=c+d>>>1,r(s,t[g])<0?d=g:c=g+1;var v=l-c;switch(v){case 3:t[c+3]=t[c+2];case 2:t[c+2]=t[c+1];case 1:t[c+1]=t[c];break;default:for(;v>0;)t[c+v]=t[c+v-1],v--}t[c]=s}}function h(t,o,e,l,r,s){var c=0,d=0,g=1;if(s(t,o[e+r])>0){for(d=l-r;g<d&&s(t,o[e+r+g])>0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d),c+=r,g+=r}else{for(d=r+1;g<d&&s(t,o[e+r-g])<=0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d);var v=c;c=r-g,g=r-v}for(c++;c<g;){var b=c+(g-c>>>1);s(t,o[e+b])>0?c=b+1:g=b}return g}function u(t,o,e,l,r,s){var c=0,d=0,g=1;if(s(t,o[e+r])<0){for(d=r+1;g<d&&s(t,o[e+r-g])<0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d);var v=c;c=r-g,g=r-v}else{for(d=l-r;g<d&&s(t,o[e+r+g])>=0;)c=g,g=(g<<1)+1,g<=0&&(g=d);g>d&&(g=d),c+=r,g+=r}for(c++;c<g;){var b=c+(g-c>>>1);s(t,o[e+b])<0?g=b:c=b+1}return g}function a(t,o){var e=y,l=0,r=p,s=0,c,d,g=0;l=t.length,l<2*p&&(r=l>>>1);var v=[];s=l<120?5:l<1542?10:l<119151?19:40,c=[],d=[];function b(w,O){c[g]=w,d[g]=O,g+=1}function S(){for(;g>1;){var w=g-2;if(w>=1&&d[w-1]<=d[w]+d[w+1]||w>=2&&d[w-2]<=d[w]+d[w-1])d[w-1]<d[w+1]&&w--;else if(d[w]>d[w+1])break;C(w)}}function E(){for(;g>1;){var w=g-2;w>0&&d[w-1]<d[w+1]&&w--,C(w)}}function C(w){var O=c[w],I=d[w],R=c[w+1],M=d[w+1];d[w]=I+M,w===g-3&&(c[w+1]=c[w+2],d[w+1]=d[w+2]),g--;var F=u(t[R],t,O,I,0,o);if(O+=F,I-=F,I===0)return;if(M=h(t[O+I-1],t,R,M,M-1,o),M===0)return;I<=M?_(O,I,R,M):T(O,I,R,M)}function _(w,O,I,R){var M=0;for(M=0;M<O;M++)v[M]=t[w+M];var F=0,P=I,X=w;if(t[X++]=t[P++],--R===0){for(M=0;M<O;M++)t[X+M]=v[F+M];return}if(O===1){for(M=0;M<R;M++)t[X+M]=t[P+M];t[X+R]=v[F];return}for(var B=e,j,W,z;;){j=0,W=0,z=!1;do if(o(t[P],v[F])<0){if(t[X++]=t[P++],W++,j=0,--R===0){z=!0;break}}else if(t[X++]=v[F++],j++,W=0,--O===1){z=!0;break}while((j|W)<B);if(z)break;do{if(j=u(t[P],v,F,O,0,o),j!==0){for(M=0;M<j;M++)t[X+M]=v[F+M];if(X+=j,F+=j,O-=j,O<=1){z=!0;break}}if(t[X++]=t[P++],--R===0){z=!0;break}if(W=h(v[F],t,P,R,0,o),W!==0){for(M=0;M<W;M++)t[X+M]=t[P+M];if(X+=W,P+=W,R-=W,R===0){z=!0;break}}if(t[X++]=v[F++],--O===1){z=!0;break}B--}while(j>=y||W>=y);if(z)break;B<0&&(B=0),B+=2}if(e=B,e<1&&(e=1),O===1){for(M=0;M<R;M++)t[X+M]=t[P+M];t[X+R]=v[F]}else{if(O===0)throw new Error;for(M=0;M<O;M++)t[X+M]=v[F+M]}}function T(w,O,I,R){var M=0;for(M=0;M<R;M++)v[M]=t[I+M];var F=w+O-1,P=R-1,X=I+R-1,B=0,j=0;if(t[X--]=t[F--],--O===0){for(B=X-(R-1),M=0;M<R;M++)t[B+M]=v[M];return}if(R===1){for(X-=O,F-=O,j=X+1,B=F+1,M=O-1;M>=0;M--)t[j+M]=t[B+M];t[X]=v[P];return}for(var W=e;;){var z=0,V=0,Q=!1;do if(o(v[P],t[F])<0){if(t[X--]=t[F--],z++,V=0,--O===0){Q=!0;break}}else if(t[X--]=v[P--],V++,z=0,--R===1){Q=!0;break}while((z|V)<W);if(Q)break;do{if(z=O-u(v[P],t,w,O,O-1,o),z!==0){for(X-=z,F-=z,O-=z,j=X+1,B=F+1,M=z-1;M>=0;M--)t[j+M]=t[B+M];if(O===0){Q=!0;break}}if(t[X--]=v[P--],--R===1){Q=!0;break}if(V=R-h(t[F],v,0,R,R-1,o),V!==0){for(X-=V,P-=V,R-=V,j=X+1,B=P+1,M=0;M<V;M++)t[j+M]=v[B+M];if(R<=1){Q=!0;break}}if(t[X--]=t[F--],--O===0){Q=!0;break}W--}while(z>=y||V>=y);if(Q)break;W<0&&(W=0),W+=2}if(e=W,e<1&&(e=1),R===1){for(X-=O,F-=O,j=X+1,B=F+1,M=O-1;M>=0;M--)t[j+M]=t[B+M];t[X]=v[P]}else{if(R===0)throw new Error;for(B=X-(R-1),M=0;M<R;M++)t[B+M]=v[M]}}this.mergeRuns=S,this.forceMergeRuns=E,this.pushRun=b}function i(t,o,e,l){e||(e=0),l||(l=t.length);var r=l-e;if(r<2)return;var s=0;if(r<n){s=A(t,e,l,o),f(t,e,l,e+s,o);return}var c=new a(t,o),d=x(r);do{if(s=A(t,e,l,o),s<d){var g=r;g>d&&(g=d),f(t,e,e+g,e+s,o),s=g}c.pushRun(e,s),c.mergeRuns(),r-=s,e+=s}while(r!==0);c.forceMergeRuns()}k.exports=i},Bd2K:function(k,D,n){(function(y){y(n("VrN/"),n("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(a,i,t){if(t!=y.Init&&t&&a.removeKeyMap("autoCloseTags"),!i)return;var o={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing!==!1)&&(o["'/'"]=function(e){return f(e)}),(typeof i!="object"||i.whenOpening!==!1)&&(o["'>'"]=function(e){return A(e)}),a.addKeyMap(o)});var p=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function A(a){if(a.getOption("disableInput"))return y.Pass;for(var i=a.listSelections(),t=[],o=a.getOption("autoCloseTags"),e=0;e<i.length;e++){if(!i[e].empty())return y.Pass;var l=i[e].head,r=a.getTokenAt(l),s=y.innerMode(a.getMode(),r.state),c=s.state,d=s.mode.xmlCurrentTag&&s.mode.xmlCurrentTag(c),g=d&&d.name;if(!g)return y.Pass;var v=s.mode.configuration=="html",b=typeof o=="object"&&o.dontCloseTags||v&&p,S=typeof o=="object"&&o.indentTags||v&&x;r.end>l.ch&&(g=g.slice(0,g.length-r.end+l.ch));var E=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"&&d.close||r.string.indexOf("/")==l.ch-r.start-1||b&&h(b,E)>-1||u(a,s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(c)||[],g,l,!0))return y.Pass;var C=typeof o=="object"&&o.emptyTags;if(C&&h(C,g)>-1){t[e]={text:"/>",newPos:y.Pos(l.line,l.ch+2)};continue}var _=S&&h(S,E)>-1;t[e]={indent:_,text:">"+(_?`
`:"")+"</"+g+">",newPos:_?y.Pos(l.line+1,0):y.Pos(l.line,l.ch+1)}}for(var T=typeof o=="object"&&o.dontIndentOnAutoClose,e=i.length-1;e>=0;e--){var w=t[e];a.replaceRange(w.text,i[e].head,i[e].anchor,"+insert");var O=a.listSelections().slice(0);O[e]={head:w.newPos,anchor:w.newPos},a.setSelections(O),!T&&w.indent&&(a.indentLine(w.newPos.line,null,!0),a.indentLine(w.newPos.line+1,null,!0))}}function m(a,i){for(var t=a.listSelections(),o=[],e=i?"/":"</",l=a.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,d=a.getTokenAt(c),g=y.innerMode(a.getMode(),d.state),v=g.state;if(i&&(d.type=="string"||d.string.charAt(0)!="<"||d.start!=c.ch-1))return y.Pass;var b,S=g.mode.name!="xml"&&a.getMode().name=="htmlmixed";if(S&&g.mode.name=="javascript")b=e+"script";else if(S&&g.mode.name=="css")b=e+"style";else{var E=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(v);if(!E||E.length&&u(a,E,E[E.length-1],c))return y.Pass;b=e+E[E.length-1]}a.getLine(c.line).charAt(d.end)!=">"&&(b+=">"),o[s]=b}if(a.replaceSelections(o),t=a.listSelections(),!r)for(var s=0;s<t.length;s++)(s==t.length-1||t[s].head.line<t[s+1].head.line)&&a.indentLine(t[s].head.line)}function f(a){return a.getOption("disableInput")?y.Pass:m(a,!0)}y.commands.closeTag=function(a){return m(a)};function h(a,i){if(a.indexOf)return a.indexOf(i);for(var t=0,o=a.length;t<o;++t)if(a[t]==i)return t;return-1}function u(a,i,t,o,e){if(!y.scanForClosingTag)return!1;var l=Math.min(a.lastLine()+1,o.line+500),r=y.scanForClosingTag(a,o,null,l);if(!r||r.tag!=t)return!1;for(var s=e?1:0,c=i.length-1;c>=0&&i[c]==t;c--)++s;o=r.to;for(var c=1;c<s;c++){var d=y.scanForClosingTag(a,o,null,l);if(!d||d.tag!=t)return!1;o=d.to}return!0}})},BlVb:function(k,D,n){var y=n("hyiK"),p=1e-8;function x(m,f){return Math.abs(m-f)<p}function A(m,f,h){var u=0,a=m[0];if(!a)return!1;for(var i=1;i<m.length;i++){var t=m[i];u+=y(a[0],a[1],t[0],t[1],f,h),a=t}var o=m[0];return(!x(a[0],o[0])||!x(a[1],o[1]))&&(u+=y(a[0],a[1],o[0],o[1],f,h)),u!==0}D.contain=A},BoS7:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("czTT"),A=n.n(x)},Bq2U:function(k,D,n){var y=n("RDYZ"),p=n("Qe9p"),x=n("bYtY"),A=x.isArrayLike,m=Array.prototype.slice;function f(b,S){return b[S]}function h(b,S,E){b[S]=E}function u(b,S,E){return(S-b)*E+b}function a(b,S,E){return E>.5?S:b}function i(b,S,E,C,_){var T=b.length;if(_===1)for(var w=0;w<T;w++)C[w]=u(b[w],S[w],E);else for(var O=T&&b[0].length,w=0;w<T;w++)for(var I=0;I<O;I++)C[w][I]=u(b[w][I],S[w][I],E)}function t(b,S,E){var C=b.length,_=S.length;if(C!==_){var T=C>_;if(T)b.length=_;else for(var w=C;w<_;w++)b.push(E===1?S[w]:m.call(S[w]))}for(var O=b[0]&&b[0].length,w=0;w<b.length;w++)if(E===1)isNaN(b[w])&&(b[w]=S[w]);else for(var I=0;I<O;I++)isNaN(b[w][I])&&(b[w][I]=S[w][I])}function o(b,S,E){if(b===S)return!0;var C=b.length;if(C!==S.length)return!1;if(E===1){for(var _=0;_<C;_++)if(b[_]!==S[_])return!1}else for(var T=b[0].length,_=0;_<C;_++)for(var w=0;w<T;w++)if(b[_][w]!==S[_][w])return!1;return!0}function e(b,S,E,C,_,T,w,O,I){var R=b.length;if(I===1)for(var M=0;M<R;M++)O[M]=l(b[M],S[M],E[M],C[M],_,T,w);else for(var F=b[0].length,M=0;M<R;M++)for(var P=0;P<F;P++)O[M][P]=l(b[M][P],S[M][P],E[M][P],C[M][P],_,T,w)}function l(b,S,E,C,_,T,w){var O=(E-b)*.5,I=(C-S)*.5;return(2*(S-E)+O+I)*w+(-3*(S-E)-2*O-I)*T+O*_+S}function r(b){if(A(b)){var S=b.length;if(A(b[0])){for(var E=[],C=0;C<S;C++)E.push(m.call(b[C]));return E}return m.call(b)}return b}function 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 S=b[b.length-1].value;return A(S&&S[0])?2:1}function d(b,S,E,C,_,T){var w=b._getter,O=b._setter,I=S==="spline",R=C.length;if(!R)return;var M=C[0].value,F=A(M),P=!1,X=!1,B=F?c(C):0,j;C.sort(function(J,Y){return J.time-Y.time}),j=C[R-1].time;for(var W=[],z=[],V=C[0].value,Q=!0,G=0;G<R;G++){W.push(C[G].time/j);var re=C[G].value;if(F&&o(re,V,B)||!F&&re===V||(Q=!1),V=re,typeof re=="string"){var ee=p.parse(re);ee?(re=ee,P=!0):X=!0}z.push(re)}if(!T&&Q)return;for(var ue=z[R-1],G=0;G<R-1;G++)F?t(z[G],ue,B):isNaN(z[G])&&!isNaN(ue)&&!X&&!P&&(z[G]=ue);F&&t(w(b._target,_),ue,B);var $=0,be=0,_e,Ee,Xe,He,nt,Ie;if(P)var oe=[0,0,0,0];var ot=function(Y,q){var fe;if(q<0)fe=0;else if(q<be){for(_e=Math.min($+1,R-1),fe=_e;fe>=0&&!(W[fe]<=q);fe--);fe=Math.min(fe,R-2)}else{for(fe=$;fe<R&&!(W[fe]>q);fe++);fe=Math.min(fe-1,R-2)}$=fe,be=q;var we=W[fe+1]-W[fe];if(we===0)return;if(Ee=(q-W[fe])/we,I)if(He=z[fe],Xe=z[fe===0?fe:fe-1],nt=z[fe>R-2?R-1:fe+1],Ie=z[fe>R-3?R-1:fe+2],F)e(Xe,He,nt,Ie,Ee,Ee*Ee,Ee*Ee*Ee,w(Y,_),B);else{var Ne;if(P)Ne=e(Xe,He,nt,Ie,Ee,Ee*Ee,Ee*Ee*Ee,oe,1),Ne=s(oe);else{if(X)return a(He,nt,Ee);Ne=l(Xe,He,nt,Ie,Ee,Ee*Ee,Ee*Ee*Ee)}O(Y,_,Ne)}else if(F)i(z[fe],z[fe+1],Ee,w(Y,_),B);else{var Ne;if(P)i(z[fe],z[fe+1],Ee,oe,1),Ne=s(oe);else{if(X)return a(z[fe],z[fe+1],Ee);Ne=u(z[fe],z[fe+1],Ee)}O(Y,_,Ne)}},he=new y({target:b._target,life:j,loop:b._loop,delay:b._delay,onframe:ot,ondestroy:E});return S&&S!=="spline"&&(he.easing=S),he}var g=function(S,E,C,_){this._tracks={},this._target=S,this._loop=E||!1,this._getter=C||f,this._setter=_||h,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};g.prototype={when:function(S,E){var C=this._tracks;for(var _ in E){if(!E.hasOwnProperty(_))continue;if(!C[_]){C[_]=[];var T=this._getter(this._target,_);if(T==null)continue;S!==0&&C[_].push({time:0,value:r(T)})}C[_].push({time:S,value:E[_]})}return this},during:function(S){return this._onframeList.push(S),this},pause:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].pause();this._paused=!0},resume:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var S=this._doneList,E=S.length,C=0;C<E;C++)S[C].call(this)},start:function(S,E){var C=this,_=0,T=function(){_--,_||C._doneCallback()},w;for(var O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=d(this,S,T,this._tracks[O],O,E);I&&(this._clipList.push(I),_++,this.animation&&this.animation.addClip(I),w=I)}if(w){var R=w.onframe;w.onframe=function(M,F){R(M,F);for(var P=0;P<C._onframeList.length;P++)C._onframeList[P](M,F)}}return _||this._doneCallback(),this},stop:function(S){for(var E=this._clipList,C=this.animation,_=0;_<E.length;_++){var T=E[_];S&&T.onframe(this._target,1),C&&C.removeClip(T)}E.length=0},delay:function(S){return this._delay=S,this},done:function(S){return S&&this._doneList.push(S),this},getClips:function(){return this._clipList}};var v=g;k.exports=v},Bqw1:function(k,D,n){"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,n){var y=n("bYtY"),p=n("Qxkt"),x=n("Mdki"),A=n("YXkt"),m=n("sdST"),f=function(i,t){this.name=i||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};f.prototype={constructor:f,isRemoved:function(){return this.dataIndex<0},eachNode:function(i,t,o){typeof i=="function"&&(o=t,t=i,i=null),i=i||{},y.isString(i)&&(i={order:i});var e=i.order||"preorder",l=this[i.attr||"children"],r;e==="preorder"&&(r=t.call(o,this));for(var s=0;!r&&s<l.length;s++)l[s].eachNode(i,t,o);e==="postorder"&&t.call(o,this)},updateDepthAndHeight:function(i){var t=0;this.depth=i;for(var o=0;o<this.children.length;o++){var e=this.children[o];e.updateDepthAndHeight(i+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(i){if(this.getId()===i)return this;for(var t=0,o=this.children,e=o.length;t<e;t++){var l=o[t].getNodeById(i);if(l)return l}},contains:function(i){if(i===this)return!0;for(var t=0,o=this.children,e=o.length;t<e;t++){var l=o[t].contains(i);if(l)return l}},getAncestors:function(i){for(var t=[],o=i?this:this.parentNode;o;)t.push(o),o=o.parentNode;return t.reverse(),t},getValue:function(i){var t=this.hostTree.data;return t.get(t.getDimension(i||"value"),this.dataIndex)},setLayout:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(i){if(this.dataIndex<0)return;var t=this.hostTree,o=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?o.getModel(i,e.getModel(i)):o.getModel(i)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,t)},getVisual:function(i,t){return this.hostTree.data.getItemVisual(this.dataIndex,i,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(i){for(var t=i.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(i){return i!==this&&i.isAncestorOf(this)}};function h(i,t){this.root,this.data,this._nodes=[],this.hostModel=i,this.levelModels=y.map(t||[],function(o){return new p(o,i,i.ecModel)})}h.prototype={constructor:h,type:"tree",eachNode:function(i,t,o){this.root.eachNode(i,t,o)},getNodeByDataIndex:function(i){var t=this.data.getRawIndex(i);return this._nodes[t]},getNodeByName:function(i){return this.root.getNodeByName(i)},update:function(){for(var i=this.data,t=this._nodes,o=0,e=t.length;o<e;o++)t[o].dataIndex=-1;for(var o=0,e=i.count();o<e;o++)t[i.getRawIndex(o)].dataIndex=o},clearLayouts:function(){this.data.clearItemLayouts()}},h.createTree=function(i,t,o,e){var l=new h(t,o&&o.levels),r=[],s=1;c(i);function c(v,b){var S=v.value;s=Math.max(s,y.isArray(S)?S.length:1),r.push(v);var E=new f(v.name,l);b?u(E,b):l.root=E,l._nodes.push(E);var C=v.children;if(C)for(var _=0;_<C.length;_++)c(C[_],E)}l.root.updateDepthAndHeight(0);var d=m(r,{coordDimensions:["value"],dimensionsCount:s}),g=new A(d,t);return g.initData(r),e&&e(g),x({mainData:g,struct:l,structAttr:"tree"}),l.update(),l};function u(i,t){var o=t.children;if(i.parentNode===t)return;o.push(i),i.parentNode=t}var a=h;k.exports=a},BtR2:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="LikeOutlined";var h=D.a=p.forwardRef(f)},BuqR:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("6uqw"),m=n("XxSj"),f=n("YOMW"),h=n("OELB"),u=h.reformIntervals,a=A.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,l){a.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var r=this._mode=this._determineMode();i[this._mode].call(this),this._resetSelected(e,l);var s=this.option.categories;this.resetVisual(function(c,d){r==="categories"?(c.mappingMethod="category",c.categories=x.clone(s)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=x.map(this._pieceList,function(g){var g=x.clone(g);return d!=="inRange"&&(g.visual=null),g}))})},completeVisualOption:function(){var e=this.option,l={},r=m.listVisualTypes(),s=this.isCategory();x.each(e.pieces,function(d){x.each(r,function(g){d.hasOwnProperty(g)&&(l[g]=1)})}),x.each(l,function(d,g){var v=0;x.each(this.stateList,function(b){v|=c(e,b,g)||c(e.target,b,g)},this),!v&&x.each(this.stateList,function(b){(e[b]||(e[b]={}))[g]=f.get(g,b==="inRange"?"active":"inactive",s)})},this);function c(d,g,v){return d&&d[g]&&(x.isObject(d[g])?d[g].hasOwnProperty(v):d[g]===v)}A.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,x.each(s,function(g,v){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var d=!1;x.each(s,function(g,v){var b=this.getSelectedMapKey(g);c[b]&&(d?c[b]=!1:d=!0)},this)}},getSelectedMapKey:function(e){return this._mode==="categories"?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=x.clone(e)},getValueState:function(e){var l=m.findPieceIndex(e,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var l=[];return this.eachTargetSeries(function(r){var s=[],c=r.getData();c.each(this.getDataDimension(c),function(d,g){var v=m.findPieceIndex(d,this._pieceList);v===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,S){var E=s.getRepresentValue({interval:b});S||(S=s.getValueState(E));var C=e(E,S);b[0]===-Infinity?r[0]=C:b[1]===Infinity?r[1]=C:l.push({value:b[0],color:C},{value:b[1],color:C})}var d=this._pieceList.slice();if(!d.length)d.push({interval:[-Infinity,Infinity]});else{var g=d[0].interval[0];g!==-Infinity&&d.unshift({interval:[-Infinity,g]}),g=d[d.length-1].interval[1],g!==Infinity&&d.push({interval:[g,Infinity]})}var v=-Infinity;return x.each(d,function(b){var S=b.interval;S&&(S[0]>v&&c([v,S[0]],"outOfRange"),c(S.slice()),v=S[1])},this),{stops:l,outerColors:r}}}),i={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 d=(s[1]-s[0])/c;+d.toFixed(r)!==d&&r<5;)r++;e.precision=r,d=+d.toFixed(r),e.minOpen&&l.push({interval:[-Infinity,s[0]],close:[0,0]});for(var g=0,v=s[0];g<c;v+=d,g++){var b=g===c-1?s[1]:v+d;l.push({interval:[v,b],close:[1,1]})}e.maxOpen&&l.push({interval:[s[1],Infinity],close:[0,0]}),u(l),x.each(l,function(S,E){S.index=E,S.text=this.formatValueText(S.interval)},this)},categories:function(){var e=this.option;x.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),t(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;x.each(e.pieces,function(r,s){x.isObject(r)||(r={value:r});var c={text:"",index:s};if(r.label!=null&&(c.text=r.label),r.hasOwnProperty("value")){var d=c.value=r.value;c.interval=[d,d],c.close=[1,1]}else{for(var g=c.interval=[],v=c.close=[0,0],b=[1,0,1],S=[-Infinity,Infinity],E=[],C=0;C<2;C++){for(var _=[["gte","gt","min"],["lte","lt","max"]][C],T=0;T<3&&g[C]==null;T++)g[C]=r[_[T]],v[C]=b[T],E[C]=T===2;g[C]==null&&(g[C]=S[C])}E[0]&&g[1]===Infinity&&(v[0]=0),E[1]&&g[0]===-Infinity&&(v[1]=0),g[0]===g[1]&&v[0]&&v[1]&&(c.value=g[0])}c.visual=m.retrieveVisuals(r),l.push(c)},this),t(e,l),u(l),x.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 o=a;k.exports=o},BvKs:function(k,D,n){"use strict";n.d(D,"a",function(){return jt});var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("VTBJ"),r=n("1OyB"),s=n("vuIU"),c=n("JX7q"),d=n("Ji7U"),g=n("LK+K"),v=n("I8Z2"),b=n("BGR+"),S=n("wx14"),E=n("rePB"),C=n("4IlW"),_=n("2GS6"),T=n("Gytx"),w=n.n(T),O=n("TSYQ"),I=n.n(O),R=n("U8pU"),M=n("ODXe"),F=/iPhone/i,P=/iPod/i,X=/iPad/i,B=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,W=/\bAndroid(?:.+)SD4930UR\b/i,z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,re=/BB10/i,ee=/Opera Mini/i,ue=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function be(gt,pt){return gt.test(pt)}function _e(gt){var pt=gt||(typeof navigator!="undefined"?navigator.userAgent:""),ar=pt.split("[FBAN");if(typeof ar[1]!="undefined"){var Ht=ar,Mt=Object(M.a)(Ht,1);pt=Mt[0]}if(ar=pt.split("Twitter"),typeof ar[1]!="undefined"){var qt=ar,Rt=Object(M.a)(qt,1);pt=Rt[0]}var Qt={apple:{phone:be(F,pt)&&!be(V,pt),ipod:be(P,pt),tablet:!be(F,pt)&&be(X,pt)&&!be(V,pt),device:(be(F,pt)||be(P,pt)||be(X,pt))&&!be(V,pt)},amazon:{phone:be(W,pt),tablet:!be(W,pt)&&be(z,pt),device:be(W,pt)||be(z,pt)},android:{phone:!be(V,pt)&&be(W,pt)||!be(V,pt)&&be(B,pt),tablet:!be(V,pt)&&!be(W,pt)&&!be(B,pt)&&(be(z,pt)||be(j,pt)),device:!be(V,pt)&&(be(W,pt)||be(z,pt)||be(B,pt)||be(j,pt))||be(/\bokhttp\b/i,pt)},windows:{phone:be(V,pt),tablet:be(Q,pt),device:be(V,pt)||be(Q,pt)},other:{blackberry:be(G,pt),blackberry10:be(re,pt),opera:be(ee,pt),firefox:be($,pt),chrome:be(ue,pt),device:be(G,pt)||be(re,pt)||be(ee,pt)||be($,pt)||be(ue,pt)},any:null,phone:null,tablet:null};return Qt.any=Qt.apple.device||Qt.android.device||Qt.windows.device||Qt.other.device,Qt.phone=Qt.apple.phone||Qt.android.phone||Qt.windows.phone,Qt.tablet=Qt.apple.tablet||Qt.android.tablet||Qt.windows.tablet,Qt}var Ee=Object(l.a)(Object(l.a)({},_e()),{},{isMobile:_e}),Xe=Ee;function He(){}function nt(gt,pt,ar){var Ht=pt||"";return gt.key||"".concat(Ht,"item_").concat(ar)}function Ie(gt){return"".concat(gt,"-menu-")}function oe(gt,pt){var ar=-1;e.Children.forEach(gt,function(Ht){ar+=1,Ht&&Ht.type&&Ht.type.isMenuItemGroup?e.Children.forEach(Ht.props.children,function(Mt){ar+=1,pt(Mt,ar)}):pt(Ht,ar)})}function ot(gt,pt,ar){if(!gt||ar.find)return;e.Children.forEach(gt,function(Ht){if(Ht){var Mt=Ht.type;if(!Mt||!(Mt.isSubMenu||Mt.isMenuItem||Mt.isMenuItemGroup))return;pt.indexOf(Ht.key)!==-1?ar.find=!0:Ht.props.children&&ot(Ht.props.children,pt,ar)}})}var he=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],J=function(pt){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=pt&&typeof pt.getBoundingClientRect=="function"&&pt.getBoundingClientRect().width;if(Ht){if(ar){var Mt=getComputedStyle(pt),qt=Mt.marginLeft,Rt=Mt.marginRight;Ht+=+qt.replace("px","")+ +Rt.replace("px","")}Ht=+Ht.toFixed(6)}return Ht||0},Y=function(pt,ar,Ht){pt&&Object(R.a)(pt.style)==="object"&&(pt.style[ar]=Ht)},q=function(){return Xe.any},fe=n("KQm4"),we=n("Ff2n"),Ne=n("i8i4"),je=n("bdgK"),me=n("Uaa1"),Ce=n("HTfv"),Fe={adjustX:1,adjustY:1},it={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Fe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Fe,offset:[4,0]}},Ct={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Fe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Fe,offset:[4,0]}},mt=it,Ve=0,or={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},dt=function(pt,ar,Ht){var Mt=Ie(ar),qt=pt.getState();pt.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},qt.defaultActiveFirst),{},Object(E.a)({},Mt,Ht))})},Yt=function(gt){Object(d.a)(ar,gt);var pt=Object(g.a)(ar);function ar(Ht){var Mt;Object(r.a)(this,ar),Mt=pt.call(this,Ht),Mt.onDestroy=function(Lr){Mt.props.onDestroy(Lr)},Mt.onKeyDown=function(Lr){var ln=Lr.keyCode,mn=Mt.menuInstance,ti=Mt.props,$n=ti.isOpen,hi=ti.store;if(ln===C.a.ENTER)return Mt.onTitleClick(Lr),dt(hi,Mt.props.eventKey,!0),!0;if(ln===C.a.RIGHT)return $n?mn.onKeyDown(Lr):(Mt.triggerOpenChange(!0),dt(hi,Mt.props.eventKey,!0)),!0;if(ln===C.a.LEFT){var Ti;if($n)Ti=mn.onKeyDown(Lr);else return;return Ti||(Mt.triggerOpenChange(!1),Ti=!0),Ti}return $n&&(ln===C.a.UP||ln===C.a.DOWN)?mn.onKeyDown(Lr):void 0},Mt.onOpenChange=function(Lr){Mt.props.onOpenChange(Lr)},Mt.onPopupVisibleChange=function(Lr){Mt.triggerOpenChange(Lr,Lr?"mouseenter":"mouseleave")},Mt.onMouseEnter=function(Lr){var ln=Mt.props,mn=ln.eventKey,ti=ln.onMouseEnter,$n=ln.store;dt($n,Mt.props.eventKey,!1),ti({key:mn,domEvent:Lr})},Mt.onMouseLeave=function(Lr){var ln=Mt.props,mn=ln.parentMenu,ti=ln.eventKey,$n=ln.onMouseLeave;mn.subMenuInstance=Object(c.a)(Mt),$n({key:ti,domEvent:Lr})},Mt.onTitleMouseEnter=function(Lr){var ln=Mt.props,mn=ln.eventKey,ti=ln.onItemHover,$n=ln.onTitleMouseEnter;ti({key:mn,hover:!0}),$n({key:mn,domEvent:Lr})},Mt.onTitleMouseLeave=function(Lr){var ln=Mt.props,mn=ln.parentMenu,ti=ln.eventKey,$n=ln.onItemHover,hi=ln.onTitleMouseLeave;mn.subMenuInstance=Object(c.a)(Mt),$n({key:ti,hover:!1}),hi({key:ti,domEvent:Lr})},Mt.onTitleClick=function(Lr){var ln=Object(c.a)(Mt),mn=ln.props;if(mn.onTitleClick({key:mn.eventKey,domEvent:Lr}),mn.triggerSubMenuAction==="hover")return;Mt.triggerOpenChange(!mn.isOpen,"click"),dt(mn.store,Mt.props.eventKey,!1)},Mt.onSubMenuClick=function(Lr){typeof Mt.props.onClick=="function"&&Mt.props.onClick(Mt.addKeyPath(Lr))},Mt.onSelect=function(Lr){Mt.props.onSelect(Lr)},Mt.onDeselect=function(Lr){Mt.props.onDeselect(Lr)},Mt.getPrefixCls=function(){return"".concat(Mt.props.rootPrefixCls,"-submenu")},Mt.getActiveClassName=function(){return"".concat(Mt.getPrefixCls(),"-active")},Mt.getDisabledClassName=function(){return"".concat(Mt.getPrefixCls(),"-disabled")},Mt.getSelectedClassName=function(){return"".concat(Mt.getPrefixCls(),"-selected")},Mt.getOpenClassName=function(){return"".concat(Mt.props.rootPrefixCls,"-submenu-open")},Mt.saveMenuInstance=function(Lr){Mt.menuInstance=Lr},Mt.addKeyPath=function(Lr){return Object(l.a)(Object(l.a)({},Lr),{},{keyPath:(Lr.keyPath||[]).concat(Mt.props.eventKey)})},Mt.triggerOpenChange=function(Lr,ln){var mn=Mt.props.eventKey,ti=function(){Mt.onOpenChange({key:mn,item:Object(c.a)(Mt),trigger:ln,open:Lr})};ln==="mouseenter"?Mt.mouseenterTimeout=setTimeout(function(){ti()},0):ti()},Mt.isChildrenSelected=function(){var Lr={find:!1};return ot(Mt.props.children,Mt.props.selectedKeys,Lr),Lr.find},Mt.isOpen=function(){return Mt.props.openKeys.indexOf(Mt.props.eventKey)!==-1},Mt.adjustWidth=function(){if(!Mt.subMenuTitle||!Mt.menuInstance)return;var Lr=Ne.findDOMNode(Mt.menuInstance);if(Lr.offsetWidth>=Mt.subMenuTitle.offsetWidth)return;Lr.style.minWidth="".concat(Mt.subMenuTitle.offsetWidth,"px")},Mt.saveSubMenuTitle=function(Lr){Mt.subMenuTitle=Lr},Mt.getBaseProps=function(){var Lr=Object(c.a)(Mt),ln=Lr.props;return{mode:ln.mode==="horizontal"?"vertical":ln.mode,visible:Mt.props.isOpen,level:ln.level+1,inlineIndent:ln.inlineIndent,focusable:!1,onClick:Mt.onSubMenuClick,onSelect:Mt.onSelect,onDeselect:Mt.onDeselect,onDestroy:Mt.onDestroy,selectedKeys:ln.selectedKeys,eventKey:"".concat(ln.eventKey,"-menu-"),openKeys:ln.openKeys,motion:ln.motion,onOpenChange:Mt.onOpenChange,subMenuOpenDelay:ln.subMenuOpenDelay,parentMenu:Object(c.a)(Mt),subMenuCloseDelay:ln.subMenuCloseDelay,forceSubMenuRender:ln.forceSubMenuRender,triggerSubMenuAction:ln.triggerSubMenuAction,builtinPlacements:ln.builtinPlacements,defaultActiveFirst:ln.store.getState().defaultActiveFirst[Ie(ln.eventKey)],multiple:ln.multiple,prefixCls:ln.rootPrefixCls,id:Mt.internalMenuId,manualRef:Mt.saveMenuInstance,itemIcon:ln.itemIcon,expandIcon:ln.expandIcon,direction:ln.direction}},Mt.getMotion=function(Lr,ln){var mn=Object(c.a)(Mt),ti=mn.haveRendered,$n=Mt.props,hi=$n.motion,Ti=$n.rootPrefixCls,Ni=Object(l.a)(Object(l.a)({},hi),{},{leavedClassName:"".concat(Ti,"-hidden"),removeOnLeave:!1,motionAppear:ti||!ln||Lr!=="inline"});return Ni};var qt=Ht.store,Rt=Ht.eventKey,Qt=qt.getState(),jr=Qt.defaultActiveFirst;Mt.isRootMenu=!1;var Nr=!1;return jr&&(Nr=jr[Rt]),dt(qt,Rt,Nr),Mt}return Object(s.a)(ar,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Mt=this,qt=this.props,Rt=qt.mode,Qt=qt.parentMenu,jr=qt.manualRef;if(jr&&jr(this),Rt!=="horizontal"||!Qt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Mt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Mt=this.props,qt=Mt.onDestroy,Rt=Mt.eventKey;qt&&qt(Rt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Mt){var qt=this,Rt=this.getBaseProps(),Qt=this.getMotion(Rt.mode,Rt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Rt.visible||Rt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var jr=Rt.direction;return e.createElement(Ce.default,Object.assign({visible:Rt.visible},Qt),function(Nr){var Lr=Nr.className,ln=Nr.style,mn=I()("".concat(Rt.prefixCls,"-sub"),Lr,Object(E.a)({},"".concat(Rt.prefixCls,"-rtl"),jr==="rtl"));return e.createElement(Ar,Object.assign({},Rt,{id:qt.internalMenuId,className:mn,style:ln}),Mt)})}},{key:"render",value:function(){var Mt,qt=Object(l.a)({},this.props),Rt=qt.isOpen,Qt=this.getPrefixCls(),jr=qt.mode==="inline",Nr=I()(Qt,"".concat(Qt,"-").concat(qt.mode),(Mt={},Object(E.a)(Mt,qt.className,!!qt.className),Object(E.a)(Mt,this.getOpenClassName(),Rt),Object(E.a)(Mt,this.getActiveClassName(),qt.active||Rt&&!jr),Object(E.a)(Mt,this.getDisabledClassName(),qt.disabled),Object(E.a)(Mt,this.getSelectedClassName(),this.isChildrenSelected()),Mt));this.internalMenuId||(qt.eventKey?this.internalMenuId="".concat(qt.eventKey,"$Menu"):(Ve+=1,this.internalMenuId="$__$".concat(Ve,"$Menu")));var Lr={},ln={},mn={};qt.disabled||(Lr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},mn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ti={},$n=qt.direction;jr&&($n==="rtl"?ti.paddingRight=qt.inlineIndent*qt.level:ti.paddingLeft=qt.inlineIndent*qt.level);var hi={};this.props.isOpen&&(hi={"aria-owns":this.internalMenuId});var Ti=null;qt.mode!=="horizontal"&&(Ti=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ti=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var Ni=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ti,className:"".concat(Qt,"-title"),role:"button"},mn,ln,{"aria-expanded":Rt},hi,{"aria-haspopup":"true",title:typeof qt.title=="string"?qt.title:void 0}),qt.title,Ti||e.createElement("i",{className:"".concat(Qt,"-arrow")})),Wi=this.renderChildren(qt.children),rt=qt.parentMenu.isRootMenu?qt.parentMenu.props.getPopupContainer:function(Qr){return Qr.parentNode},Re=or[qt.mode],Ue=qt.popupOffset?{offset:qt.popupOffset}:{},Ye=qt.mode==="inline"?"":qt.popupClassName;Ye+=$n==="rtl"?" ".concat(Qt,"-rtl"):"";var et=qt.disabled,$e=qt.triggerSubMenuAction,at=qt.subMenuOpenDelay,wt=qt.forceSubMenuRender,ft=qt.subMenuCloseDelay,cr=qt.builtinPlacements;he.forEach(function(Qr){return delete qt[Qr]}),delete qt.onClick;var Jr=$n==="rtl"?Object.assign({},Ct,cr):Object.assign({},it,cr);return delete qt.direction,e.createElement("li",Object.assign({},qt,Lr,{className:Nr,role:"menuitem"}),jr&&Ni,jr&&Wi,!jr&&e.createElement(me.a,{prefixCls:Qt,popupClassName:I()("".concat(Qt,"-popup"),Ye),getPopupContainer:rt,builtinPlacements:Jr,popupPlacement:Re,popupVisible:Rt,popupAlign:Ue,popup:Wi,action:et?[]:[$e],mouseEnterDelay:at,mouseLeaveDelay:ft,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:wt},Ni))}}]),ar}(e.Component);Yt.defaultProps={onMouseEnter:He,onMouseLeave:He,onTitleMouseEnter:He,onTitleMouseLeave:He,onTitleClick:He,manualRef:He,mode:"vertical",title:""};var hr=Object(v.b)(function(gt,pt){var ar=gt.openKeys,Ht=gt.activeKey,Mt=gt.selectedKeys,qt=pt.eventKey,Rt=pt.subMenuKey;return{isOpen:ar.indexOf(qt)>-1,active:Ht[Rt]===qt,selectedKeys:Mt}})(Yt);hr.isSubMenu=!0;var Gt=hr,Pt="menuitem-overflowed",Xt=.5,Ge=function(gt){Object(d.a)(ar,gt);var pt=Object(g.a)(ar);function ar(){var Ht;return Object(r.a)(this,ar),Ht=pt.apply(this,arguments),Ht.resizeObserver=null,Ht.mutationObserver=null,Ht.originalTotalWidth=0,Ht.overflowedItems=[],Ht.menuItemSizes=[],Ht.cancelFrameId=null,Ht.state={lastVisibleIndex:void 0},Ht.getMenuItemNodes=function(){var Mt=Ht.props.prefixCls,qt=Ne.findDOMNode(Object(c.a)(Ht));return qt?[].slice.call(qt.children).filter(function(Rt){return Rt.className.split(" ").indexOf("".concat(Mt,"-overflowed-submenu"))<0}):[]},Ht.getOverflowedSubMenuItem=function(Mt,qt,Rt){var Qt=Ht.props,jr=Qt.overflowedIndicator,Nr=Qt.level,Lr=Qt.mode,ln=Qt.prefixCls,mn=Qt.theme;if(Nr!==1||Lr!=="horizontal")return null;var ti=Ht.props.children[0],$n=ti.props,hi=$n.children,Ti=$n.title,Ni=$n.style,Wi=Object(we.a)($n,["children","title","style"]),rt=Object(l.a)({},Ni),Re="".concat(Mt,"-overflowed-indicator"),Ue="".concat(Mt,"-overflowed-indicator");qt.length===0&&Rt!==!0?rt=Object(l.a)(Object(l.a)({},rt),{},{display:"none"}):Rt&&(rt=Object(l.a)(Object(l.a)({},rt),{},{visibility:"hidden",position:"absolute"}),Re="".concat(Re,"-placeholder"),Ue="".concat(Ue,"-placeholder"));var Ye=mn?"".concat(ln,"-").concat(mn):"",et={};return he.forEach(function($e){Wi[$e]!==void 0&&(et[$e]=Wi[$e])}),e.createElement(Gt,Object.assign({title:jr,className:"".concat(ln,"-overflowed-submenu"),popupClassName:Ye},et,{key:Re,eventKey:Ue,disabled:!1,style:rt}),qt)},Ht.setChildrenWidthAndResize=function(){if(Ht.props.mode!=="horizontal")return;var Mt=Ne.findDOMNode(Object(c.a)(Ht));if(!Mt)return;var qt=Mt.children;if(!qt||qt.length===0)return;var Rt=Mt.children[qt.length-1];Y(Rt,"display","inline-block");var Qt=Ht.getMenuItemNodes(),jr=Qt.filter(function(Nr){return Nr.className.split(" ").indexOf(Pt)>=0});jr.forEach(function(Nr){Y(Nr,"display","inline-block")}),Ht.menuItemSizes=Qt.map(function(Nr){return J(Nr,!0)}),jr.forEach(function(Nr){Y(Nr,"display","none")}),Ht.overflowedIndicatorWidth=J(Mt.children[Mt.children.length-1],!0),Ht.originalTotalWidth=Ht.menuItemSizes.reduce(function(Nr,Lr){return Nr+Lr},0),Ht.handleResize(),Y(Rt,"display","none")},Ht.handleResize=function(){if(Ht.props.mode!=="horizontal")return;var Mt=Ne.findDOMNode(Object(c.a)(Ht));if(!Mt)return;var qt=J(Mt);Ht.overflowedItems=[];var Rt=0,Qt;Ht.originalTotalWidth>qt+Xt&&(Qt=-1,Ht.menuItemSizes.forEach(function(jr){Rt+=jr,Rt+Ht.overflowedIndicatorWidth<=qt&&(Qt+=1)})),Ht.setState({lastVisibleIndex:Qt})},Ht}return Object(s.a)(ar,[{key:"componentDidMount",value:function(){var Mt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var qt=Ne.findDOMNode(this);if(!qt)return;this.resizeObserver=new je.default(function(Rt){Rt.forEach(function(){var Qt=Mt.cancelFrameId;cancelAnimationFrame(Qt),Mt.cancelFrameId=requestAnimationFrame(Mt.setChildrenWidthAndResize)})}),[].slice.call(qt.children).concat(qt).forEach(function(Rt){Mt.resizeObserver.observe(Rt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Mt.resizeObserver.disconnect(),[].slice.call(qt.children).concat(qt).forEach(function(Rt){Mt.resizeObserver.observe(Rt)}),Mt.setChildrenWidthAndResize()}),this.mutationObserver.observe(qt,{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(Mt){var qt=this,Rt=this.state.lastVisibleIndex;return(Mt||[]).reduce(function(Qt,jr,Nr){var Lr=jr;if(qt.props.mode==="horizontal"){var ln=qt.getOverflowedSubMenuItem(jr.props.eventKey,[]);Rt!==void 0&&qt.props.className.indexOf("".concat(qt.props.prefixCls,"-root"))!==-1&&(Nr>Rt&&(Lr=e.cloneElement(jr,{style:{display:"none"},eventKey:"".concat(jr.props.eventKey,"-hidden"),className:"".concat(Pt)})),Nr===Rt+1&&(qt.overflowedItems=Mt.slice(Rt+1).map(function(ti){return e.cloneElement(ti,{key:ti.props.eventKey,mode:"vertical-left"})}),ln=qt.getOverflowedSubMenuItem(jr.props.eventKey,qt.overflowedItems)));var mn=[].concat(Object(fe.a)(Qt),[ln,Lr]);return Nr===Mt.length-1&&mn.push(qt.getOverflowedSubMenuItem(jr.props.eventKey,[],!0)),mn}return[].concat(Object(fe.a)(Qt),[Lr])},[])}},{key:"render",value:function(){var Mt=this.props,qt=Mt.visible,Rt=Mt.prefixCls,Qt=Mt.overflowedIndicator,jr=Mt.mode,Nr=Mt.level,Lr=Mt.tag,ln=Mt.children,mn=Mt.theme,ti=Object(we.a)(Mt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$n=Lr;return e.createElement($n,Object.assign({},ti),this.renderChildren(ln))}}]),ar}(e.Component);Ge.defaultProps={tag:"div",className:""};var pe=Ge;function se(gt){return gt.length?gt.every(function(pt){return!!pt.props.disabled}):!0}function lt(gt,pt,ar){var Ht=gt.getState();gt.setState({activeKey:Object(l.a)(Object(l.a)({},Ht.activeKey),{},Object(E.a)({},pt,ar))})}function Ze(gt){return gt.eventKey||"0-menu-"}function de(gt,pt){var ar=pt,Ht=gt.children,Mt=gt.eventKey;if(ar){var qt;if(oe(Ht,function(Rt,Qt){Rt&&Rt.props&&!Rt.props.disabled&&ar===nt(Rt,Mt,Qt)&&(qt=!0)}),qt)return ar}return ar=null,gt.defaultActiveFirst&&oe(Ht,function(Rt,Qt){!ar&&Rt&&!Rt.props.disabled&&(ar=nt(Rt,Mt,Qt))}),ar}function _t(gt){if(gt){var pt=this.instanceArray.indexOf(gt);pt!==-1?this.instanceArray[pt]=gt:this.instanceArray.push(gt)}}var er=function(gt){Object(d.a)(ar,gt);var pt=Object(g.a)(ar);function ar(Ht){var Mt;return Object(r.a)(this,ar),Mt=pt.call(this,Ht),Mt.onKeyDown=function(qt,Rt){var Qt=qt.keyCode,jr;if(Mt.getFlatInstanceArray().forEach(function(Lr){Lr&&Lr.props.active&&Lr.onKeyDown&&(jr=Lr.onKeyDown(qt))}),jr)return 1;var Nr=null;return(Qt===C.a.UP||Qt===C.a.DOWN)&&(Nr=Mt.step(Qt===C.a.UP?-1:1)),Nr?(qt.preventDefault(),lt(Mt.props.store,Ze(Mt.props),Nr.props.eventKey),typeof Rt=="function"&&Rt(Nr),1):void 0},Mt.onItemHover=function(qt){var Rt=qt.key,Qt=qt.hover;lt(Mt.props.store,Ze(Mt.props),Qt?Rt:null)},Mt.onDeselect=function(qt){Mt.props.onDeselect(qt)},Mt.onSelect=function(qt){Mt.props.onSelect(qt)},Mt.onClick=function(qt){Mt.props.onClick(qt)},Mt.onOpenChange=function(qt){Mt.props.onOpenChange(qt)},Mt.onDestroy=function(qt){Mt.props.onDestroy(qt)},Mt.getFlatInstanceArray=function(){return Mt.instanceArray},Mt.step=function(qt){var Rt=Mt.getFlatInstanceArray(),Qt=Mt.props.store.getState().activeKey[Ze(Mt.props)],jr=Rt.length;if(!jr)return null;qt<0&&(Rt=Rt.concat().reverse());var Nr=-1;if(Rt.every(function(ti,$n){return ti&&ti.props.eventKey===Qt?(Nr=$n,!1):!0}),!Mt.props.defaultActiveFirst&&Nr!==-1&&se(Rt.slice(Nr,jr-1)))return;var Lr=(Nr+1)%jr,ln=Lr;do{var mn=Rt[ln];if(!mn||mn.props.disabled)ln=(ln+1)%jr;else return mn}while(ln!==Lr);return null},Mt.renderCommonMenuItem=function(qt,Rt,Qt){var jr=Mt.props.store.getState(),Nr=Object(c.a)(Mt),Lr=Nr.props,ln=nt(qt,Lr.eventKey,Rt),mn=qt.props;if(!mn||typeof qt.type=="string")return qt;var ti=ln===jr.activeKey,$n=Object(l.a)(Object(l.a)({mode:mn.mode||Lr.mode,level:Lr.level,inlineIndent:Lr.inlineIndent,renderMenuItem:Mt.renderMenuItem,rootPrefixCls:Lr.prefixCls,index:Rt,parentMenu:Lr.parentMenu,manualRef:mn.disabled?void 0:Object(_.a)(qt.ref,_t.bind(Object(c.a)(Mt))),eventKey:ln,active:!mn.disabled&&ti,multiple:Lr.multiple,onClick:function(Ti){(mn.onClick||He)(Ti),Mt.onClick(Ti)},onItemHover:Mt.onItemHover,motion:Lr.motion,subMenuOpenDelay:Lr.subMenuOpenDelay,subMenuCloseDelay:Lr.subMenuCloseDelay,forceSubMenuRender:Lr.forceSubMenuRender,onOpenChange:Mt.onOpenChange,onDeselect:Mt.onDeselect,onSelect:Mt.onSelect,builtinPlacements:Lr.builtinPlacements,itemIcon:mn.itemIcon||Mt.props.itemIcon,expandIcon:mn.expandIcon||Mt.props.expandIcon},Qt),{},{direction:Lr.direction});return(Lr.mode==="inline"||q())&&($n.triggerSubMenuAction="click"),e.cloneElement(qt,$n)},Mt.renderMenuItem=function(qt,Rt,Qt){if(!qt)return null;var jr=Mt.props.store.getState(),Nr={openKeys:jr.openKeys,selectedKeys:jr.selectedKeys,triggerSubMenuAction:Mt.props.triggerSubMenuAction,subMenuKey:Qt};return Mt.renderCommonMenuItem(qt,Rt,Nr)},Ht.store.setState({activeKey:Object(l.a)(Object(l.a)({},Ht.store.getState().activeKey),{},Object(E.a)({},Ht.eventKey,de(Ht,Ht.activeKey)))}),Mt.instanceArray=[],Mt}return Object(s.a)(ar,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Mt){return this.props.visible||Mt.visible||this.props.className!==Mt.className||!w()(this.props.style,Mt.style)}},{key:"componentDidUpdate",value:function(Mt){var qt=this.props,Rt="activeKey"in qt?qt.activeKey:qt.store.getState().activeKey[Ze(qt)],Qt=de(qt,Rt);if(Qt!==Rt)lt(qt.store,Ze(qt),Qt);else if("activeKey"in Mt){var jr=de(Mt,Mt.activeKey);Qt!==jr&&lt(qt.store,Ze(qt),Qt)}}},{key:"render",value:function(){var Mt=this,qt=Object(S.a)({},this.props);this.instanceArray=[];var Rt=I()(qt.prefixCls,qt.className,"".concat(qt.prefixCls,"-").concat(qt.mode)),Qt={className:Rt,role:qt.role||"menu"};qt.id&&(Qt.id=qt.id),qt.focusable&&(Qt.tabIndex=0,Qt.onKeyDown=this.onKeyDown);var jr=qt.prefixCls,Nr=qt.eventKey,Lr=qt.visible,ln=qt.level,mn=qt.mode,ti=qt.overflowedIndicator,$n=qt.theme;return he.forEach(function(hi){return delete qt[hi]}),delete qt.onClick,e.createElement(pe,Object.assign({},qt,{prefixCls:jr,mode:mn,tag:"ul",level:ln,theme:$n,visible:Lr,overflowedIndicator:ti},Qt),e.Children.map(qt.children,function(hi,Ti){return Mt.renderMenuItem(hi,Ti,Nr||"0-menu-")}))}}]),ar}(e.Component);er.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:He};var yt=Object(v.b)()(er),Ar=yt,Sr=n("Kwbf");function Cn(gt,pt,ar){var Ht=gt.prefixCls,Mt=gt.motion,qt=gt.defaultMotions,Rt=qt===void 0?{}:qt,Qt=gt.openAnimation,jr=gt.openTransitionName,Nr=pt.switchingModeFromInline;if(Mt)return Mt;if(Object(R.a)(Qt)==="object"&&Qt)Object(Sr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Qt=="string")return{motionName:"".concat(Ht,"-open-").concat(Qt)};if(jr)return{motionName:jr};var Lr=Rt[ar];return Lr||(Nr?null:Rt.other)}var mr=function(gt){Object(d.a)(ar,gt);var pt=Object(g.a)(ar);function ar(Ht){var Mt;Object(r.a)(this,ar),Mt=pt.call(this,Ht),Mt.inlineOpenKeys=[],Mt.onSelect=function(Qt){var jr=Object(c.a)(Mt),Nr=jr.props;if(Nr.selectable){var Lr=Mt.store.getState(),ln=Lr.selectedKeys,mn=Qt.key;Nr.multiple?ln=ln.concat([mn]):ln=[mn],"selectedKeys"in Nr||Mt.store.setState({selectedKeys:ln}),Nr.onSelect(Object(l.a)(Object(l.a)({},Qt),{},{selectedKeys:ln}))}},Mt.onClick=function(Qt){var jr=Mt.getRealMenuMode(),Nr=Object(c.a)(Mt),Lr=Nr.store,ln=Nr.props.onOpenChange;jr!=="inline"&&!("openKeys"in Mt.props)&&(Lr.setState({openKeys:[]}),ln([])),Mt.props.onClick(Qt)},Mt.onKeyDown=function(Qt,jr){Mt.innerMenu.getWrappedInstance().onKeyDown(Qt,jr)},Mt.onOpenChange=function(Qt){var jr=Object(c.a)(Mt),Nr=jr.props,Lr=Mt.store.getState().openKeys.concat(),ln=!1,mn=function($n){var hi=!1;if($n.open)hi=Lr.indexOf($n.key)===-1,hi&&Lr.push($n.key);else{var Ti=Lr.indexOf($n.key);hi=Ti!==-1,hi&&Lr.splice(Ti,1)}ln=ln||hi};Array.isArray(Qt)?Qt.forEach(mn):mn(Qt),ln&&("openKeys"in Mt.props||Mt.store.setState({openKeys:Lr}),Nr.onOpenChange(Lr))},Mt.onDeselect=function(Qt){var jr=Object(c.a)(Mt),Nr=jr.props;if(Nr.selectable){var Lr=Mt.store.getState().selectedKeys.concat(),ln=Qt.key,mn=Lr.indexOf(ln);mn!==-1&&Lr.splice(mn,1),"selectedKeys"in Nr||Mt.store.setState({selectedKeys:Lr}),Nr.onDeselect(Object(l.a)(Object(l.a)({},Qt),{},{selectedKeys:Lr}))}},Mt.onMouseEnter=function(Qt){Mt.restoreModeVerticalFromInline();var jr=Mt.props.onMouseEnter;jr&&jr(Qt)},Mt.onTransitionEnd=function(Qt){var jr=Qt.propertyName==="width"&&Qt.target===Qt.currentTarget,Nr=Qt.target.className,Lr=Object.prototype.toString.call(Nr)==="[object SVGAnimatedString]"?Nr.animVal:Nr,ln=Qt.propertyName==="font-size"&&Lr.indexOf("anticon")>=0;(jr||ln)&&Mt.restoreModeVerticalFromInline()},Mt.setInnerMenu=function(Qt){Mt.innerMenu=Qt},Mt.isRootMenu=!0;var qt=Ht.defaultSelectedKeys,Rt=Ht.defaultOpenKeys;return"selectedKeys"in Ht&&(qt=Ht.selectedKeys||[]),"openKeys"in Ht&&(Rt=Ht.openKeys||[]),Mt.store=Object(v.c)({selectedKeys:qt,openKeys:Rt,activeKey:{"0-menu-":de(Ht,Ht.activeKey)}}),Mt.state={switchingModeFromInline:!1},Mt}return Object(s.a)(ar,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Mt){this.updateOpentKeysWhenSwitchMode(Mt),this.updateMiniStore();var qt=this.props,Rt=qt.siderCollapsed,Qt=qt.inlineCollapsed,jr=qt.onOpenChange;(!Mt.inlineCollapsed&&Qt||!Mt.siderCollapsed&&Rt)&&jr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Mt){var qt=this.props,Rt=this.store,Qt=this.inlineOpenKeys,jr=Rt.getState(),Nr={};Mt.mode==="inline"&&qt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in qt||((qt.inlineCollapsed&&!Mt.inlineCollapsed||qt.siderCollapsed&&!Mt.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=jr.openKeys.concat(),Nr.openKeys=[]),(!qt.inlineCollapsed&&Mt.inlineCollapsed||!qt.siderCollapsed&&Mt.siderCollapsed)&&(Nr.openKeys=Qt,this.inlineOpenKeys=[])),Object.keys(Nr).length&&Rt.setState(Nr)}},{key:"updateMenuDisplay",value:function(){var Mt=this.props.collapsedWidth,qt=this.store,Rt=this.prevOpenKeys,Qt=this.getInlineCollapsed()&&(Mt===0||Mt==="0"||Mt==="0px");Qt?(this.prevOpenKeys=qt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Rt&&(this.store.setState({openKeys:Rt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Mt=this.props.mode,qt=this.state.switchingModeFromInline,Rt=this.getInlineCollapsed();return qt&&Rt?"inline":Rt?"vertical":Mt}},{key:"getInlineCollapsed",value:function(){var Mt=this.props,qt=Mt.inlineCollapsed,Rt=Mt.siderCollapsed;return Rt!==void 0?Rt:qt}},{key:"restoreModeVerticalFromInline",value:function(){var Mt=this.state.switchingModeFromInline;Mt&&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 Mt=Object(l.a)({},Object(b.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),qt=this.getRealMenuMode();return Mt.className+=" ".concat(Mt.prefixCls,"-root"),Mt.direction==="rtl"&&(Mt.className+=" ".concat(Mt.prefixCls,"-rtl")),Mt=Object(l.a)(Object(l.a)({},Mt),{},{mode:qt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Cn(this.props,this.state,qt)}),delete Mt.openAnimation,delete Mt.openTransitionName,e.createElement(v.a,{store:this.store},e.createElement(Ar,Object.assign({},Mt,{ref:this.setInnerMenu}),this.props.children))}}]),ar}(e.Component);mr.defaultProps={selectable:!0,onClick:He,onSelect:He,onOpenChange:He,onDeselect:He,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 Pr=mr,gr=function(gt){Object(d.a)(ar,gt);var pt=Object(g.a)(ar);function ar(){var Ht;return Object(r.a)(this,ar),Ht=pt.apply(this,arguments),Ht.onKeyDown=function(Mt){var qt=Mt.keyCode;return qt===C.a.ENTER?(Ht.onClick(Mt),!0):void 0},Ht.onMouseLeave=function(Mt){var qt=Ht.props,Rt=qt.eventKey,Qt=qt.onItemHover,jr=qt.onMouseLeave;Qt({key:Rt,hover:!1}),jr({key:Rt,domEvent:Mt})},Ht.onMouseEnter=function(Mt){var qt=Ht.props,Rt=qt.eventKey,Qt=qt.onItemHover,jr=qt.onMouseEnter;Qt({key:Rt,hover:!0}),jr({key:Rt,domEvent:Mt})},Ht.onClick=function(Mt){var qt=Ht.props,Rt=qt.eventKey,Qt=qt.multiple,jr=qt.onClick,Nr=qt.onSelect,Lr=qt.onDeselect,ln=qt.isSelected,mn={key:Rt,keyPath:[Rt],item:Object(c.a)(Ht),domEvent:Mt};jr(mn),Qt?ln?Lr(mn):Nr(mn):ln||Nr(mn)},Ht.saveNode=function(Mt){Ht.node=Mt},Ht}return Object(s.a)(ar,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Mt=this.props;Mt.onDestroy&&Mt.onDestroy(Mt.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 Mt,qt=Object(l.a)({},this.props),Rt=I()(this.getPrefixCls(),qt.className,(Mt={},Object(E.a)(Mt,this.getActiveClassName(),!qt.disabled&&qt.active),Object(E.a)(Mt,this.getSelectedClassName(),qt.isSelected),Object(E.a)(Mt,this.getDisabledClassName(),qt.disabled),Mt)),Qt=Object(l.a)(Object(l.a)({},qt.attribute),{},{title:typeof qt.title=="string"?qt.title:void 0,className:Rt,role:qt.role||"menuitem","aria-disabled":qt.disabled});qt.role==="option"?Qt=Object(l.a)(Object(l.a)({},Qt),{},{role:"option","aria-selected":qt.isSelected}):(qt.role===null||qt.role==="none")&&(Qt.role="none");var jr={onClick:qt.disabled?null:this.onClick,onMouseLeave:qt.disabled?null:this.onMouseLeave,onMouseEnter:qt.disabled?null:this.onMouseEnter},Nr=Object(l.a)({},qt.style);qt.mode==="inline"&&(qt.direction==="rtl"?Nr.paddingRight=qt.inlineIndent*qt.level:Nr.paddingLeft=qt.inlineIndent*qt.level),he.forEach(function(ln){return delete qt[ln]}),delete qt.direction;var Lr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Lr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(qt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Qt,jr,{style:Nr,ref:this.saveNode}),qt.children,Lr)}}]),ar}(e.Component);gr.isMenuItem=!0,gr.defaultProps={onSelect:He,onMouseEnter:He,onMouseLeave:He,manualRef:He};var Jt=Object(v.b)(function(gt,pt){var ar=gt.activeKey,Ht=gt.selectedKeys,Mt=pt.eventKey,qt=pt.subMenuKey;return{active:ar[qt]===Mt,isSelected:Ht.indexOf(Mt)!==-1}})(gr),Dt=Jt,dn=function(gt){Object(d.a)(ar,gt);var pt=Object(g.a)(ar);function ar(){var Ht;return Object(r.a)(this,ar),Ht=pt.apply(this,arguments),Ht.renderInnerMenuItem=function(Mt){var qt=Ht.props,Rt=qt.renderMenuItem,Qt=qt.index;return Rt(Mt,Qt,Ht.props.subMenuKey)},Ht}return Object(s.a)(ar,[{key:"render",value:function(){var Mt=Object(S.a)({},this.props),qt=Mt.className,Rt=qt===void 0?"":qt,Qt=Mt.rootPrefixCls,jr="".concat(Qt,"-item-group-title"),Nr="".concat(Qt,"-item-group-list"),Lr=Mt.title,ln=Mt.children;return he.forEach(function(mn){return delete Mt[mn]}),delete Mt.onClick,delete Mt.direction,e.createElement("li",Object.assign({},Mt,{className:"".concat(Rt," ").concat(Qt,"-item-group")}),e.createElement("div",{className:jr,title:typeof Lr=="string"?Lr:void 0},Lr),e.createElement("ul",{className:Nr},e.Children.map(ln,this.renderInnerMenuItem)))}}]),ar}(e.Component);dn.isMenuItemGroup=!0,dn.defaultProps={disabled:!0};var Fn=dn,Zn=function(pt){var ar=pt.className,Ht=pt.rootPrefixCls,Mt=pt.style;return e.createElement("li",{className:"".concat(ar," ").concat(Ht,"-item-divider"),style:Mt})};Zn.defaultProps={disabled:!0,className:"",style:{}};var ci=Zn,Xi=Pr,Gn=Object(e.createContext)({inlineCollapsed:!1}),ei=Gn,Zt=n("0n0R"),Nt=function(gt){i()(ar,gt);var pt=o()(ar);function ar(){return f()(this,ar),pt.apply(this,arguments)}return u()(ar,[{key:"renderTitle",value:function(Mt){var qt=this.props,Rt=qt.icon,Qt=qt.title,jr=qt.level,Nr=qt.rootPrefixCls;if(!Rt)return Mt&&jr===1&&Qt&&typeof Qt=="string"?e.createElement("div",{className:"".concat(Nr,"-inline-collapsed-noicon")},Qt.charAt(0)):Qt;var Lr=Object(Zt.b)(Qt)&&Qt.type==="span";return e.createElement(e.Fragment,null,Rt,Lr?Qt:e.createElement("span",null,Qt))}},{key:"render",value:function(){var Mt=this,qt=this.props,Rt=qt.rootPrefixCls,Qt=qt.popupClassName;return e.createElement(ei.Consumer,null,function(jr){var Nr=jr.inlineCollapsed,Lr=jr.antdMenuTheme;return e.createElement(Gt,p()({},Object(b.default)(Mt.props,["icon"]),{title:Mt.renderTitle(Nr),popupClassName:I()(Rt,"".concat(Rt,"-").concat(Lr),Qt)}))})}}]),ar}(e.Component);Nt.contextType=ei,Nt.isSubMenu=1;var Me=Nt,ke=n("Zm9Q"),Pe=n("3S7+"),tt=n("ZX9x"),vt=function(gt,pt){var ar={};for(var Ht in gt)Object.prototype.hasOwnProperty.call(gt,Ht)&&pt.indexOf(Ht)<0&&(ar[Ht]=gt[Ht]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ht=Object.getOwnPropertySymbols(gt);Mt<Ht.length;Mt++)pt.indexOf(Ht[Mt])<0&&Object.prototype.propertyIsEnumerable.call(gt,Ht[Mt])&&(ar[Ht[Mt]]=gt[Ht[Mt]]);return ar},St=function(gt){i()(ar,gt);var pt=o()(ar);function ar(){var Ht;return f()(this,ar),Ht=pt.apply(this,arguments),Ht.renderItem=function(Mt){var qt=Mt.siderCollapsed,Rt=Ht.props,Qt=Rt.level,jr=Rt.className,Nr=Rt.children,Lr=Rt.rootPrefixCls,ln=Ht.props,mn=ln.title,ti=ln.icon,$n=ln.danger,hi=vt(ln,["title","icon","danger"]);return e.createElement(ei.Consumer,null,function(Ti){var Ni,Wi=Ti.inlineCollapsed,rt=Ti.direction,Re=mn;typeof mn=="undefined"?Re=Qt===1?Nr:"":mn===!1&&(Re="");var Ue={title:Re};!qt&&!Wi&&(Ue.title=null,Ue.visible=!1);var Ye=Object(ke.a)(Nr).length;return e.createElement(Pe.a,p()({},Ue,{placement:rt==="rtl"?"left":"right",overlayClassName:"".concat(Lr,"-inline-collapsed-tooltip")}),e.createElement(Dt,p()({},hi,{className:I()(jr,(Ni={},A()(Ni,"".concat(Lr,"-item-danger"),$n),A()(Ni,"".concat(Lr,"-item-only-child"),(ti?Ye+1:Ye)===1),Ni)),title:mn}),ti,Ht.renderItemChildren(Wi)))})},Ht}return u()(ar,[{key:"renderItemChildren",value:function(Mt){var qt=this.props,Rt=qt.icon,Qt=qt.children,jr=qt.level,Nr=qt.rootPrefixCls;return!Rt||Object(Zt.b)(Qt)&&Qt.type==="span"?Qt&&Mt&&jr===1&&typeof Qt=="string"?e.createElement("div",{className:"".concat(Nr,"-inline-collapsed-noicon")},Qt.charAt(0)):Qt:e.createElement("span",null,Qt)}},{key:"render",value:function(){return e.createElement(tt.a.Consumer,null,this.renderItem)}}]),ar}(e.Component);St.isMenuItem=!0;var Vt=n("H84U"),Mr=n("uaoM"),$r=n("EXcs"),vn=function(gt){i()(ar,gt);var pt=o()(ar);function ar(Ht){var Mt;return f()(this,ar),Mt=pt.call(this,Ht),Mt.renderMenu=function(qt){var Rt=qt.getPopupContainer,Qt=qt.getPrefixCls,jr=qt.direction,Nr=Mt.props,Lr=Nr.prefixCls,ln=Nr.className,mn=Nr.theme,ti={horizontal:{motionName:"slide-up"},inline:$r.a,other:{motionName:"zoom-big"}},$n=Qt("menu",Lr),hi=I()(ln,"".concat($n,"-").concat(mn),A()({},"".concat($n,"-inline-collapsed"),Mt.getInlineCollapsed()));return e.createElement(ei.Provider,{value:{inlineCollapsed:Mt.getInlineCollapsed()||!1,antdMenuTheme:mn,direction:jr}},e.createElement(Xi,p()({getPopupContainer:Rt},Mt.props,{className:hi,prefixCls:$n,direction:jr,defaultMotions:ti})))},Object(Mr.a)(!("inlineCollapsed"in Ht&&Ht.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Mr.a)(!(Ht.siderCollapsed!==void 0&&"inlineCollapsed"in Ht),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Mt}return u()(ar,[{key:"getInlineCollapsed",value:function(){var Mt=this.props,qt=Mt.inlineCollapsed,Rt=Mt.siderCollapsed;return Rt!==void 0?Rt:qt}},{key:"render",value:function(){return e.createElement(Vt.a,null,this.renderMenu)}}]),ar}(e.Component);vn.defaultProps={className:"",theme:"light",focusable:!1};var jt=function(gt){i()(ar,gt);var pt=o()(ar);function ar(){return f()(this,ar),pt.apply(this,arguments)}return u()(ar,[{key:"render",value:function(){var Mt=this;return e.createElement(tt.a.Consumer,null,function(qt){return e.createElement(vn,p()({},Mt.props,qt))})}}]),ar}(e.Component);jt.Divider=ci,jt.Item=St,jt.SubMenu=Me,jt.ItemGroup=Fn},C0SR:function(k,D,n){var y=n("YH21"),p=function(){this._track=[]};p.prototype={constructor:p,recognize:function(u,a,i){return this._doTrack(u,a,i),this._recognize(u)},clear:function(){return this._track.length=0,this},_doTrack:function(u,a,i){var t=u.touches;if(!t)return;for(var o={points:[],touches:[],target:a,event:u},e=0,l=t.length;e<l;e++){var r=t[e],s=y.clientToLocal(i,r,{});o.points.push([s.zrX,s.zrY]),o.touches.push(r)}this._track.push(o)},_recognize:function(u){for(var a in m)if(m.hasOwnProperty(a)){var i=m[a](this._track,u);if(i)return i}}};function x(h){var u=h[1][0]-h[0][0],a=h[1][1]-h[0][1];return Math.sqrt(u*u+a*a)}function A(h){return[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]}var m={pinch:function(u,a){var i=u.length;if(!i)return;var t=(u[i-1]||{}).points,o=(u[i-2]||{}).points||t;if(o&&o.length>1&&t&&t.length>1){var e=x(t)/x(o);!isFinite(e)&&(e=1),a.pinchScale=e;var l=A(t);return a.pinchX=l[0],a.pinchY=l[1],{type:"pinch",target:u[0].target,event:a}}}},f=p;k.exports=f},C0tN:function(k,D,n){n("0o9m"),n("8Uz6"),n("Ducp"),n("6/nd")},CBdT:function(k,D,n){var y=n("ProS");n("8waO"),n("AEZ6"),n("YNf1");var p=n("q3GZ");y.registerVisual(p)},CF2D:function(k,D,n){var y=n("ProS");n("vZI5"),n("GeKi");var p=n("6r85"),x=n("TJmX"),A=n("CbHG");y.registerPreprocessor(p),y.registerVisual(x),y.registerLayout(A)},CFYs:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n.n(r),c=n("TSYQ"),d=n.n(c),g=n("BGR+"),v=n("V/uB"),b=n.n(v),S=n("NAnI"),E=n.n(S),C=n("J84W"),_=n.n(C),T=n("kbBi"),w=n.n(T),O=n("H84U"),I=n("CWQg"),R=n("uaoM"),M=n("lMfh"),F=n.n(M),P=2,X=.16,B=.05,j=.05,W=.15,z=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(St,Vt,Mr){var $r;return Math.round(St.h)>=60&&Math.round(St.h)<=240?$r=Mr?Math.round(St.h)-P*Vt:Math.round(St.h)+P*Vt:$r=Mr?Math.round(St.h)+P*Vt:Math.round(St.h)-P*Vt,$r<0?$r+=360:$r>=360&&($r-=360),$r}function re(St,Vt,Mr){if(St.h===0&&St.s===0)return St.s;var $r;return Mr?$r=St.s-X*Vt:Vt===V?$r=St.s+X:$r=St.s+B*Vt,$r>1&&($r=1),Mr&&Vt===z&&$r>.1&&($r=.1),$r<.06&&($r=.06),Number($r.toFixed(2))}function ee(St,Vt,Mr){var $r;return Mr?$r=St.v+j*Vt:$r=St.v-W*Vt,$r>1&&($r=1),Number($r.toFixed(2))}function ue(St){for(var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Mr=[],$r=F()(St),vn=z;vn>0;vn-=1){var jt=$r.toHsv(),gt=F()({h:G(jt,vn,!0),s:re(jt,vn,!0),v:ee(jt,vn,!0)}).toHexString();Mr.push(gt)}Mr.push($r.toHexString());for(var pt=1;pt<=V;pt+=1){var ar=$r.toHsv(),Ht=F()({h:G(ar,pt),s:re(ar,pt),v:ee(ar,pt)}).toHexString();Mr.push(Ht)}return Vt.theme==="dark"?Q.map(function(Mt){var qt=Mt.index,Rt=Mt.opacity,Qt=F.a.mix(Vt.backgroundColor||"#141414",Mr[qt],Rt*100).toHexString();return Qt}):Mr}var $={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"},be={},_e={};Object.keys($).forEach(function(St){be[St]=ue($[St]),be[St].primary=be[St][5],_e[St]=ue($[St],{theme:"dark",backgroundColor:"#141414"}),_e[St].primary=_e[St][5]});var Ee=be.red,Xe=be.volcano,He=be.gold,nt=be.orange,Ie=be.yellow,oe=be.lime,ot=be.green,he=be.cyan,J=be.blue,Y=be.geekblue,q=be.purple,fe=be.magenta,we=be.grey;function Ne(St){return!St||St<0?0:St>100?100:St}function je(St){var Vt=St.success,Mr=St.successPercent,$r=Mr;return Vt&&"progress"in Vt&&(Object(R.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),$r=Vt.progress),Vt&&"percent"in Vt&&($r=Vt.percent),$r}var me=function(St,Vt){var Mr={};for(var $r in St)Object.prototype.hasOwnProperty.call(St,$r)&&Vt.indexOf($r)<0&&(Mr[$r]=St[$r]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vn=0,$r=Object.getOwnPropertySymbols(St);vn<$r.length;vn++)Vt.indexOf($r[vn])<0&&Object.prototype.propertyIsEnumerable.call(St,$r[vn])&&(Mr[$r[vn]]=St[$r[vn]]);return Mr},Ce=function(Vt){var Mr=[];return Object.keys(Vt).forEach(function($r){var vn=parseFloat($r.replace(/%/g,""));isNaN(vn)||Mr.push({key:vn,value:Vt[$r]})}),Mr=Mr.sort(function($r,vn){return $r.key-vn.key}),Mr.map(function($r){var vn=$r.key,jt=$r.value;return"".concat(jt," ").concat(vn,"%")}).join(", ")},Fe=function(Vt){var Mr=Vt.from,$r=Mr===void 0?$.blue:Mr,vn=Vt.to,jt=vn===void 0?$.blue:vn,gt=Vt.direction,pt=gt===void 0?"to right":gt,ar=me(Vt,["from","to","direction"]);if(Object.keys(ar).length!==0){var Ht=Ce(ar);return{backgroundImage:"linear-gradient(".concat(pt,", ").concat(Ht,")")}}return{backgroundImage:"linear-gradient(".concat(pt,", ").concat($r,", ").concat(jt,")")}},it=function(Vt){var Mr=Vt.prefixCls,$r=Vt.percent,vn=Vt.strokeWidth,jt=Vt.size,gt=Vt.strokeColor,pt=Vt.strokeLinecap,ar=Vt.children,Ht=Vt.trailColor,Mt=Vt.success,qt=gt&&typeof gt!="string"?Fe(gt):{background:gt},Rt=Ht?{backgroundColor:Ht}:void 0,Qt=A()({width:"".concat(Ne($r),"%"),height:vn||(jt==="small"?6:8),borderRadius:pt==="square"?0:""},qt),jr=je(Vt),Nr={width:"".concat(Ne(jr),"%"),height:vn||(jt==="small"?6:8),borderRadius:pt==="square"?0:"",backgroundColor:Mt==null?void 0:Mt.strokeColor},Lr=jr!==void 0?r.createElement("div",{className:"".concat(Mr,"-success-bg"),style:Nr}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(Mr,"-outer")},r.createElement("div",{className:"".concat(Mr,"-inner"),style:Rt},r.createElement("div",{className:"".concat(Mr,"-bg"),style:Qt}),Lr)),ar)},Ct=it,mt={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Ve=function(Vt){var Mr=Vt.map(function(){return Object(r.useRef)()}),$r=Object(r.useRef)();return Object(r.useEffect)(function(){var vn=Date.now(),jt=!1;Object.keys(Mr).forEach(function(gt){var pt=Mr[gt].current;if(!pt)return;jt=!0;var ar=pt.style;ar.transitionDuration=".3s, .3s, .3s, .06s",$r.current&&vn-$r.current<100&&(ar.transitionDuration="0s, 0s")}),jt&&($r.current=Date.now())}),[Mr]};function or(){return or=Object.assign||function(St){for(var Vt=1;Vt<arguments.length;Vt++){var Mr=arguments[Vt];for(var $r in Mr)Object.prototype.hasOwnProperty.call(Mr,$r)&&(St[$r]=Mr[$r])}return St},or.apply(this,arguments)}function dt(St,Vt){return Xt(St)||Pt(St,Vt)||hr(St,Vt)||Yt()}function Yt(){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 hr(St,Vt){if(!St)return;if(typeof St=="string")return Gt(St,Vt);var Mr=Object.prototype.toString.call(St).slice(8,-1);if(Mr==="Object"&&St.constructor&&(Mr=St.constructor.name),Mr==="Map"||Mr==="Set")return Array.from(St);if(Mr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mr))return Gt(St,Vt)}function Gt(St,Vt){(Vt==null||Vt>St.length)&&(Vt=St.length);for(var Mr=0,$r=new Array(Vt);Mr<Vt;Mr++)$r[Mr]=St[Mr];return $r}function Pt(St,Vt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(St)))return;var Mr=[],$r=!0,vn=!1,jt=void 0;try{for(var gt=St[Symbol.iterator](),pt;!($r=(pt=gt.next()).done)&&!(Mr.push(pt.value),Vt&&Mr.length===Vt);$r=!0);}catch(ar){vn=!0,jt=ar}finally{try{!$r&&gt.return!=null&&gt.return()}finally{if(vn)throw jt}}return Mr}function Xt(St){if(Array.isArray(St))return St}function Ge(St,Vt){if(St==null)return{};var Mr=pe(St,Vt),$r,vn;if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(St);for(vn=0;vn<jt.length;vn++){if($r=jt[vn],Vt.indexOf($r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(St,$r))continue;Mr[$r]=St[$r]}}return Mr}function pe(St,Vt){if(St==null)return{};var Mr={},$r=Object.keys(St),vn,jt;for(jt=0;jt<$r.length;jt++){if(vn=$r[jt],Vt.indexOf(vn)>=0)continue;Mr[vn]=St[vn]}return Mr}var se=function(Vt){var Mr=Vt.className,$r=Vt.percent,vn=Vt.prefixCls,jt=Vt.strokeColor,gt=Vt.strokeLinecap,pt=Vt.strokeWidth,ar=Vt.style,Ht=Vt.trailColor,Mt=Vt.trailWidth,qt=Vt.transition,Rt=Ge(Vt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Rt.gapPosition;var Qt=Array.isArray($r)?$r:[$r],jr=Array.isArray(jt)?jt:[jt],Nr=Ve(Qt),Lr=dt(Nr,1),ln=Lr[0],mn=pt/2,ti=100-pt/2,$n="M ".concat(gt==="round"?mn:0,",").concat(mn,`
L `).concat(gt==="round"?ti:100,",").concat(mn),hi="0 0 100 ".concat(pt),Ti=0;return s.a.createElement("svg",or({className:d()("".concat(vn,"-line"),Mr),viewBox:hi,preserveAspectRatio:"none",style:ar},Rt),s.a.createElement("path",{className:"".concat(vn,"-line-trail"),d:$n,strokeLinecap:gt,stroke:Ht,strokeWidth:Mt||pt,fillOpacity:"0"}),Qt.map(function(Ni,Wi){var rt={strokeDasharray:"".concat(Ni,"px, 100px"),strokeDashoffset:"-".concat(Ti,"px"),transition:qt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Re=jr[Wi]||jr[jr.length-1];return Ti+=Ni,s.a.createElement("path",{key:Wi,className:"".concat(vn,"-line-path"),d:$n,strokeLinecap:gt,stroke:Re,strokeWidth:pt,fillOpacity:"0",ref:ln[Wi],style:rt})}))};se.defaultProps=mt;var lt=se;function Ze(){return Ze=Object.assign||function(St){for(var Vt=1;Vt<arguments.length;Vt++){var Mr=arguments[Vt];for(var $r in Mr)Object.prototype.hasOwnProperty.call(Mr,$r)&&(St[$r]=Mr[$r])}return St},Ze.apply(this,arguments)}function de(St,Vt){return Sr(St)||Ar(St,Vt)||er(St,Vt)||_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 er(St,Vt){if(!St)return;if(typeof St=="string")return yt(St,Vt);var Mr=Object.prototype.toString.call(St).slice(8,-1);if(Mr==="Object"&&St.constructor&&(Mr=St.constructor.name),Mr==="Map"||Mr==="Set")return Array.from(St);if(Mr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mr))return yt(St,Vt)}function yt(St,Vt){(Vt==null||Vt>St.length)&&(Vt=St.length);for(var Mr=0,$r=new Array(Vt);Mr<Vt;Mr++)$r[Mr]=St[Mr];return $r}function Ar(St,Vt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(St)))return;var Mr=[],$r=!0,vn=!1,jt=void 0;try{for(var gt=St[Symbol.iterator](),pt;!($r=(pt=gt.next()).done)&&!(Mr.push(pt.value),Vt&&Mr.length===Vt);$r=!0);}catch(ar){vn=!0,jt=ar}finally{try{!$r&&gt.return!=null&&gt.return()}finally{if(vn)throw jt}}return Mr}function Sr(St){if(Array.isArray(St))return St}function Cn(St,Vt){if(St==null)return{};var Mr=mr(St,Vt),$r,vn;if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(St);for(vn=0;vn<jt.length;vn++){if($r=jt[vn],Vt.indexOf($r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(St,$r))continue;Mr[$r]=St[$r]}}return Mr}function mr(St,Vt){if(St==null)return{};var Mr={},$r=Object.keys(St),vn,jt;for(jt=0;jt<$r.length;jt++){if(vn=$r[jt],Vt.indexOf(vn)>=0)continue;Mr[vn]=St[vn]}return Mr}var Pr=0;function gr(St){return+St.replace("%","")}function Jt(St){return Array.isArray(St)?St:[St]}function Dt(St,Vt,Mr,$r){var vn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,jt=arguments.length>5?arguments[5]:void 0,gt=50-$r/2,pt=0,ar=-gt,Ht=0,Mt=-2*gt;switch(jt){case"left":pt=-gt,ar=0,Ht=2*gt,Mt=0;break;case"right":pt=gt,ar=0,Ht=-2*gt,Mt=0;break;case"bottom":ar=gt,Mt=2*gt;break;default:}var qt="M 50,50 m ".concat(pt,",").concat(ar,`
a `).concat(gt,",").concat(gt," 0 1 1 ").concat(Ht,",").concat(-Mt,`
a `).concat(gt,",").concat(gt," 0 1 1 ").concat(-Ht,",").concat(Mt),Rt=Math.PI*2*gt,Qt={stroke:Mr,strokeDasharray:"".concat(Vt/100*(Rt-vn),"px ").concat(Rt,"px"),strokeDashoffset:"-".concat(vn/2+St/100*(Rt-vn),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:qt,pathStyle:Qt}}var dn=function(Vt){var Mr=Vt.prefixCls,$r=Vt.strokeWidth,vn=Vt.trailWidth,jt=Vt.gapDegree,gt=Vt.gapPosition,pt=Vt.trailColor,ar=Vt.strokeLinecap,Ht=Vt.style,Mt=Vt.className,qt=Vt.strokeColor,Rt=Vt.percent,Qt=Cn(Vt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),jr=Object(r.useMemo)(function(){return Pr+=1,Pr},[]),Nr=Dt(0,100,pt,$r,jt,gt),Lr=Nr.pathString,ln=Nr.pathStyle,mn=Jt(Rt),ti=Jt(qt),$n=ti.find(function(rt){return Object.prototype.toString.call(rt)==="[object Object]"}),hi=Ve(mn),Ti=de(hi,1),Ni=Ti[0],Wi=function(){var Re=0;return mn.map(function(Ue,Ye){var et=ti[Ye]||ti[ti.length-1],$e=Object.prototype.toString.call(et)==="[object Object]"?"url(#".concat(Mr,"-gradient-").concat(jr,")"):"",at=Dt(Re,Ue,et,$r,jt,gt);return Re+=Ue,s.a.createElement("path",{key:Ye,className:"".concat(Mr,"-circle-path"),d:at.pathString,stroke:$e,strokeLinecap:ar,strokeWidth:$r,opacity:Ue===0?0:1,fillOpacity:"0",style:at.pathStyle,ref:Ni[Ye]})})};return s.a.createElement("svg",Ze({className:d()("".concat(Mr,"-circle"),Mt),viewBox:"0 0 100 100",style:Ht},Qt),$n&&s.a.createElement("defs",null,s.a.createElement("linearGradient",{id:"".concat(Mr,"-gradient-").concat(jr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys($n).sort(function(rt,Re){return gr(rt)-gr(Re)}).map(function(rt,Re){return s.a.createElement("stop",{key:Re,offset:rt,stopColor:$n[rt]})}))),s.a.createElement("path",{className:"".concat(Mr,"-circle-trail"),d:Lr,stroke:pt,strokeLinecap:ar,strokeWidth:vn||$r,fillOpacity:"0",style:ln}),Wi().reverse())};dn.defaultProps=mt;var Fn=dn,Zn={Line:lt,Circle:Fn};function ci(St){var Vt=St.percent,Mr=St.success,$r=St.successPercent,vn=Ne(Vt),jt=je({success:Mr,successPercent:$r});return jt?[Ne(jt),Ne(vn-Ne(jt))]:vn}function Xi(St){var Vt=St.success,Mr=St.strokeColor,$r=St.successPercent,vn=Mr||null,jt=je({success:Vt,successPercent:$r});return jt?[$.green,vn]:vn}var Gn=function(Vt){var Mr=Vt.prefixCls,$r=Vt.width,vn=Vt.strokeWidth,jt=Vt.trailColor,gt=Vt.strokeLinecap,pt=Vt.gapPosition,ar=Vt.gapDegree,Ht=Vt.type,Mt=Vt.children,qt=$r||120,Rt={width:qt,height:qt,fontSize:qt*.15+6},Qt=vn||6,jr=pt||Ht==="dashboard"&&"bottom"||"top",Nr=function(){return ar||ar===0?ar:Ht==="dashboard"?75:void 0},Lr=Xi(Vt),ln=Object.prototype.toString.call(Lr)==="[object Object]",mn=d()("".concat(Mr,"-inner"),p()({},"".concat(Mr,"-circle-gradient"),ln));return r.createElement("div",{className:mn,style:Rt},r.createElement(Fn,{percent:ci(Vt),strokeWidth:Qt,trailWidth:Qt,strokeColor:Lr,strokeLinecap:gt,trailColor:jt,prefixCls:Mr,gapDegree:Nr(),gapPosition:jr}),Mt)},ei=Gn,Zt=function(Vt){for(var Mr=Vt.size,$r=Vt.steps,vn=Vt.percent,jt=vn===void 0?0:vn,gt=Vt.strokeWidth,pt=gt===void 0?8:gt,ar=Vt.strokeColor,Ht=Vt.trailColor,Mt=Vt.prefixCls,qt=Vt.children,Rt=Math.floor($r*(jt/100)),Qt=Mr==="small"?2:14,jr=[],Nr=0;Nr<$r;Nr+=1)jr.push(r.createElement("div",{key:Nr,className:d()("".concat(Mt,"-steps-item"),p()({},"".concat(Mt,"-steps-item-active"),Nr<=Rt-1)),style:{backgroundColor:Nr<=Rt-1?ar:Ht,width:Qt,height:pt}}));return r.createElement("div",{className:"".concat(Mt,"-steps-outer")},jr,qt)},Nt=Zt,Me=function(St,Vt){var Mr={};for(var $r in St)Object.prototype.hasOwnProperty.call(St,$r)&&Vt.indexOf($r)<0&&(Mr[$r]=St[$r]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vn=0,$r=Object.getOwnPropertySymbols(St);vn<$r.length;vn++)Vt.indexOf($r[vn])<0&&Object.prototype.propertyIsEnumerable.call(St,$r[vn])&&(Mr[$r[vn]]=St[$r[vn]]);return Mr},ke=Object(I.a)("line","circle","dashboard"),Pe=Object(I.a)("normal","exception","active","success"),tt=function(St){o()(Mr,St);var Vt=l()(Mr);function Mr(){var $r;return f()(this,Mr),$r=Vt.apply(this,arguments),$r.renderProgress=function(vn){var jt,gt=vn.getPrefixCls,pt=vn.direction,ar=i()($r),Ht=ar.props,Mt=Ht.prefixCls,qt=Ht.className,Rt=Ht.size,Qt=Ht.type,jr=Ht.steps,Nr=Ht.showInfo,Lr=Ht.strokeColor,ln=Me(Ht,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),mn=gt("progress",Mt),ti=$r.getProgressStatus(),$n=$r.renderProcessInfo(mn,ti);Object(R.a)(!("successPercent"in Ht),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var hi;Qt==="line"?hi=jr?r.createElement(Nt,A()({},$r.props,{strokeColor:typeof Lr=="string"?Lr:void 0,prefixCls:mn,steps:jr}),$n):r.createElement(Ct,A()({},$r.props,{prefixCls:mn}),$n):(Qt==="circle"||Qt==="dashboard")&&(hi=r.createElement(ei,A()({},$r.props,{prefixCls:mn,progressStatus:ti}),$n));var Ti=d()(mn,(jt={},p()(jt,"".concat(mn,"-").concat(Qt==="dashboard"&&"circle"||jr&&"steps"||Qt),!0),p()(jt,"".concat(mn,"-status-").concat(ti),!0),p()(jt,"".concat(mn,"-show-info"),Nr),p()(jt,"".concat(mn,"-").concat(Rt),Rt),p()(jt,"".concat(mn,"-rtl"),pt==="rtl"),jt),qt);return r.createElement("div",A()({},Object(g.default)(ln,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:Ti}),hi)},$r}return u()(Mr,[{key:"getPercentNumber",value:function(){var vn=this.props.percent,jt=vn===void 0?0:vn,gt=je(this.props);return parseInt(gt!==void 0?gt.toString():jt.toString(),10)}},{key:"getProgressStatus",value:function(){var vn=this.props.status;return Pe.indexOf(vn)<0&&this.getPercentNumber()>=100?"success":vn||"normal"}},{key:"renderProcessInfo",value:function(vn,jt){var gt=this.props,pt=gt.showInfo,ar=gt.format,Ht=gt.type,Mt=gt.percent,qt=je(this.props);if(!pt)return null;var Rt,Qt=ar||function(Nr){return"".concat(Nr,"%")},jr=Ht==="line";return ar||jt!=="exception"&&jt!=="success"?Rt=Qt(Ne(Mt),Ne(qt)):jt==="exception"?Rt=jr?r.createElement(w.a,null):r.createElement(b.a,null):jt==="success"&&(Rt=jr?r.createElement(_.a,null):r.createElement(E.a,null)),r.createElement("span",{className:"".concat(vn,"-text"),title:typeof Rt=="string"?Rt:void 0},Rt)}},{key:"render",value:function(){return r.createElement(O.a,null,this.renderProgress)}}]),Mr}(r.Component);tt.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var vt=D.a=tt},CH3K:function(k,D){function n(y,p){for(var x=-1,A=p.length,m=y.length;++x<A;)y[m+x]=p[x];return y}k.exports=n},"CMP+":function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u){p.call(this,m,f,h),this.type=u||"value",this.model=null};x.prototype={constructor:x,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},y.inherits(x,p);var A=x;k.exports=A},CP8R:function(k,D,n){"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,n){},CbHG:function(k,D,n){var y=n("IwbS"),p=y.subPixelOptimize,x=n("zM3Q"),A=n("OELB"),m=A.parsePercent,f=n("bYtY"),h=f.retrieve2,u=typeof Float32Array!="undefined"?Float32Array:Array,a={seriesType:"candlestick",plan:x(),reset:function(o){var e=o.coordinateSystem,l=o.getData(),r=t(o,l),s=0,c=1,d=["x","y"],g=l.mapDimension(d[s]),v=l.mapDimension(d[c],!0),b=v[0],S=v[1],E=v[2],C=v[3];if(l.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),g==null||v.length<4)return;return{progress:o.pipelineContext.large?T:_};function _(w,O){for(var I;(I=w.next())!=null;){var R=O.get(g,I),M=O.get(b,I),F=O.get(S,I),P=O.get(E,I),X=O.get(C,I),B=Math.min(M,F),j=Math.max(M,F),W=re(B,R),z=re(j,R),V=re(P,R),Q=re(X,R),G=[];ee(G,z,0),ee(G,W,1),G.push($(Q),$(z),$(V),$(W)),O.setItemLayout(I,{sign:i(O,I,M,F,S),initBaseline:M>F?z[c]:W[c],ends:G,brushRect:ue(P,X,R)})}function re(be,_e){var Ee=[];return Ee[s]=_e,Ee[c]=be,isNaN(_e)||isNaN(be)?[NaN,NaN]:e.dataToPoint(Ee)}function ee(be,_e,Ee){var Xe=_e.slice(),He=_e.slice();Xe[s]=p(Xe[s]+r/2,1,!1),He[s]=p(He[s]-r/2,1,!0),Ee?be.push(Xe,He):be.push(He,Xe)}function ue(be,_e,Ee){var Xe=re(be,Ee),He=re(_e,Ee);return Xe[s]-=r/2,He[s]-=r/2,{x:Xe[0],y:Xe[1],width:c?r:He[0]-Xe[0],height:c?He[1]-Xe[1]:r}}function $(be){return be[s]=p(be[s],1),be}}function T(w,O){for(var I=new u(w.count*4),R=0,M,F=[],P=[],X;(X=w.next())!=null;){var B=O.get(g,X),j=O.get(b,X),W=O.get(S,X),z=O.get(E,X),V=O.get(C,X);if(isNaN(B)||isNaN(z)||isNaN(V)){I[R++]=NaN,R+=3;continue}I[R++]=i(O,X,j,W,S),F[s]=B,F[c]=z,M=e.dataToPoint(F,null,P),I[R++]=M?M[0]:NaN,I[R++]=M?M[1]:NaN,F[c]=V,M=e.dataToPoint(F,null,P),I[R++]=M?M[1]:NaN}O.setLayout("largePoints",I)}}};function i(o,e,l,r,s){var c;return l>r?c=-1:l<r?c=1:c=e>0?o.get(s,e-1)<=r?1:-1:1,c}function t(o,e){var l=o.getBaseAxis(),r,s=l.type==="category"?l.getBandWidth():(r=l.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=m(h(o.get("barMaxWidth"),s),s),d=m(h(o.get("barMinWidth"),1),s),g=o.get("barWidth");return g!=null?m(g,s):Math.max(Math.min(s/2,c),d)}k.exports=a},CiB2:function(k,D,n){"use strict";n.d(D,"a",function(){return y});function y(p){if(p==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(k,D,n){n("5NHt"),n("f3JH")},CrYA:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"sessionStorage",read:A,write:m,each:f,remove:h,clearAll:u};function x(){return p.sessionStorage}function A(a){return x().getItem(a)}function m(a,i){return x().setItem(a,i)}function f(a){for(var i=x().length-1;i>=0;i--){var t=x().key(i);a(A(t),t)}}function h(a){return x().removeItem(a)}function u(){return x().clear()}},Csr3:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("4vCz"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},Cwc5:function(k,D,n){var y=n("NKxu"),p=n("Npjl");function x(A,m){var f=p(A,m);return y(f)?f:void 0}k.exports=x},D1WM:function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u,a){p.call(this,m,f,h),this.type=u||"value",this.axisIndex=a};x.prototype={constructor:x,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(x,p);var A=x;k.exports=A},D5nY:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("4NO4"),A=x.makeInner,m=x.getDataItemValue,f=n("bYtY"),h=f.createHashMap,u=f.each,a=f.map,i=f.isArray,t=f.isString,o=f.isObject,e=f.isTypedArray,l=f.isArrayLike,r=f.extend,s=f.assert,c=n("7G+c"),d=n("k9D9"),g=d.SOURCE_FORMAT_ORIGINAL,v=d.SOURCE_FORMAT_ARRAY_ROWS,b=d.SOURCE_FORMAT_OBJECT_ROWS,S=d.SOURCE_FORMAT_KEYED_COLUMNS,E=d.SOURCE_FORMAT_UNKNOWN,C=d.SOURCE_FORMAT_TYPED_ARRAY,_=d.SERIES_LAYOUT_BY_ROW,T={Must:1,Might:2,Not:3},w=A();function O(G){var re=G.option.source,ee=E;if(e(re))ee=C;else if(i(re)){re.length===0&&(ee=v);for(var ue=0,$=re.length;ue<$;ue++){var be=re[ue];if(be==null)continue;if(i(be)){ee=v;break}else if(o(be)){ee=b;break}}}else if(o(re)){for(var _e in re)if(re.hasOwnProperty(_e)&&l(re[_e])){ee=S;break}}else if(re!=null)throw new Error("Invalid data");w(G).sourceFormat=ee}function I(G){return w(G).source}function R(G){w(G).datasetMap=h()}function M(G){var re=G.option,ee=re.data,ue=e(ee)?C:g,$=!1,be=re.seriesLayoutBy,_e=re.sourceHeader,Ee=re.dimensions,Xe=z(G);if(Xe){var He=Xe.option;ee=He.source,ue=w(Xe).sourceFormat,$=!0,be=be||He.seriesLayoutBy,_e==null&&(_e=He.sourceHeader),Ee=Ee||He.dimensions}var nt=F(ee,ue,be,_e,Ee);w(G).source=new c({data:ee,fromDataset:$,seriesLayoutBy:be,sourceFormat:ue,dimensionsDefine:nt.dimensionsDefine,startIndex:nt.startIndex,dimensionsDetectCount:nt.dimensionsDetectCount,encodeDefine:re.encode})}function F(G,re,ee,ue,$){if(!G)return{dimensionsDefine:P($)};var be,_e;if(re===v)ue==="auto"||ue==null?X(function(Xe){Xe!=null&&Xe!=="-"&&(t(Xe)?_e==null&&(_e=1):_e=0)},ee,G,10):_e=ue?1:0,!$&&_e===1&&($=[],X(function(Xe,He){$[He]=Xe!=null?Xe:""},ee,G)),be=$?$.length:ee===_?G.length:G[0]?G[0].length:null;else if(re===b)$||($=B(G));else if(re===S)$||($=[],u(G,function(Xe,He){$.push(He)}));else if(re===g){var Ee=m(G[0]);be=i(Ee)&&Ee.length||1}else re===C;return{startIndex:_e,dimensionsDefine:P($),dimensionsDetectCount:be}}function P(G){if(!G)return;var re=h();return a(G,function(ee,ue){if(ee=r({},o(ee)?ee:{name:ee}),ee.name==null)return ee;ee.name+="",ee.displayName==null&&(ee.displayName=ee.name);var $=re.get(ee.name);return $?ee.name+="-"+$.count++:re.set(ee.name,{count:1}),ee})}function X(G,re,ee,ue){if(ue==null&&(ue=Infinity),re===_)for(var $=0;$<ee.length&&$<ue;$++)G(ee[$]?ee[$][0]:null,$);else for(var be=ee[0]||[],$=0;$<be.length&&$<ue;$++)G(be[$],$)}function B(G){for(var re=0,ee;re<G.length&&!(ee=G[re++]););if(ee){var ue=[];return u(ee,function($,be){ue.push(be)}),ue}}function j(G,re,ee){var ue={},$=z(re);if(!$||!G)return ue;var be=[],_e=[],Ee=re.ecModel,Xe=w(Ee).datasetMap,He=$.uid+"_"+ee.seriesLayoutBy,nt,Ie;G=G.slice(),u(G,function(J,Y){!o(J)&&(G[Y]={name:J}),J.type==="ordinal"&&nt==null&&(nt=Y,Ie=he(G[Y])),ue[J.name]=[]});var oe=Xe.get(He)||Xe.set(He,{categoryWayDim:Ie,valueWayDim:0});u(G,function(J,Y){var q=J.name,fe=he(J);if(nt==null){var we=oe.valueWayDim;ot(ue[q],we,fe),ot(_e,we,fe),oe.valueWayDim+=fe}else if(nt===Y)ot(ue[q],0,fe),ot(be,0,fe);else{var we=oe.categoryWayDim;ot(ue[q],we,fe),ot(_e,we,fe),oe.categoryWayDim+=fe}});function ot(J,Y,q){for(var fe=0;fe<q;fe++)J.push(Y+fe)}function he(J){var Y=J.dimsDef;return Y?Y.length:1}return be.length&&(ue.itemName=be),_e.length&&(ue.seriesName=_e),ue}function W(G,re,ee){var ue={},$=z(G);if(!$)return ue;var be=re.sourceFormat,_e=re.dimensionsDefine,Ee;(be===b||be===S)&&u(_e,function(nt,Ie){(o(nt)?nt.name:nt)==="name"&&(Ee=Ie)});var Xe=function(){for(var nt={},Ie={},oe=[],ot=0,he=Math.min(5,ee);ot<he;ot++){var J=Q(re.data,be,re.seriesLayoutBy,_e,re.startIndex,ot);oe.push(J);var Y=J===T.Not;if(Y&&nt.v==null&&ot!==Ee&&(nt.v=ot),(nt.n==null||nt.n===nt.v||!Y&&oe[nt.n]===T.Not)&&(nt.n=ot),q(nt)&&oe[nt.n]!==T.Not)return nt;Y||(J===T.Might&&Ie.v==null&&ot!==Ee&&(Ie.v=ot),(Ie.n==null||Ie.n===Ie.v)&&(Ie.n=ot))}function q(fe){return fe.v!=null&&fe.n!=null}return q(nt)?nt:q(Ie)?Ie:null}();if(Xe){ue.value=Xe.v;var He=Ee!=null?Ee:Xe.n;ue.itemName=[He],ue.seriesName=[He]}return ue}function z(G){var re=G.option,ee=re.data;if(!ee)return G.ecModel.getComponent("dataset",re.datasetIndex||0)}function V(G,re){return Q(G.data,G.sourceFormat,G.seriesLayoutBy,G.dimensionsDefine,G.startIndex,re)}function Q(G,re,ee,ue,$,be){var _e,Ee=5;if(e(G))return T.Not;var Xe,He;if(ue){var nt=ue[be];o(nt)?(Xe=nt.name,He=nt.type):t(nt)&&(Xe=nt)}if(He!=null)return He==="ordinal"?T.Must:T.Not;if(re===v)if(ee===_){for(var Ie=G[be],oe=0;oe<(Ie||[]).length&&oe<Ee;oe++)if((_e=Y(Ie[$+oe]))!=null)return _e}else for(var oe=0;oe<G.length&&oe<Ee;oe++){var ot=G[$+oe];if(ot&&(_e=Y(ot[be]))!=null)return _e}else if(re===b){if(!Xe)return T.Not;for(var oe=0;oe<G.length&&oe<Ee;oe++){var he=G[oe];if(he&&(_e=Y(he[Xe]))!=null)return _e}}else if(re===S){if(!Xe)return T.Not;var Ie=G[Xe];if(!Ie||e(Ie))return T.Not;for(var oe=0;oe<Ie.length&&oe<Ee;oe++)if((_e=Y(Ie[oe]))!=null)return _e}else if(re===g)for(var oe=0;oe<G.length&&oe<Ee;oe++){var he=G[oe],J=m(he);if(!i(J))return T.Not;if((_e=Y(J[be]))!=null)return _e}function Y(q){var fe=t(q);if(q!=null&&isFinite(q)&&q!=="")return fe?T.Might:T.Not;if(fe&&q!=="-")return T.Must}return T.Not}D.BE_ORDINAL=T,D.detectSourceFormat=O,D.getSource=I,D.resetSourceDefaulter=R,D.prepareSource=M,D.makeSeriesEncodeForAxisCoordSys=j,D.makeSeriesEncodeForNameBased=W,D.guessOrdinal=V},D9ME:function(k,D,n){var y=n("IwbS"),p=n("fls0"),x=n("bYtY"),A=n("oVpE"),m=A.createSymbol,f=n("QBsz"),h=n("Sj9i");function u(t,o,e){y.Group.call(this),this.add(this.createLine(t,o,e)),this._updateEffectSymbol(t,o)}var a=u.prototype;a.createLine=function(t,o,e){return new p(t,o,e)},a._updateEffectSymbol=function(t,o){var e=t.getItemModel(o),l=e.getModel("effect"),r=l.get("symbolSize"),s=l.get("symbol");x.isArray(r)||(r=[r,r]);var c=l.get("color")||t.getItemVisual(o,"color"),d=this.childAt(1);if(this._symbolType!==s&&(this.remove(d),d=m(s,-.5,-.5,1,1,c),d.z2=100,d.culling=!0,this.add(d)),!d)return;d.setStyle("shadowColor",c),d.setStyle(l.getItemStyle(["color"])),d.attr("scale",r),d.setColor(c),d.attr("scale",r),this._symbolType=s,this._symbolScale=r,this._updateEffectAnimation(t,l,o)},a._updateEffectAnimation=function(t,o,e){var l=this.childAt(1);if(!l)return;var r=this,s=t.getItemLayout(e),c=o.get("period")*1e3,d=o.get("loop"),g=o.get("constantSpeed"),v=x.retrieve(o.get("delay"),function(C){return C/t.count()*c/3}),b=typeof v=="function";if(l.ignore=!0,this.updateAnimationPoints(l,s),g>0&&(c=this.getLineLength(l)/g*1e3),c!==this._period||d!==this._loop){l.stopAnimation();var S=v;b&&(S=v(e)),l.__t>0&&(S=-c*l.__t),l.__t=0;var E=l.animate("",d).when(c,{__t:1}).delay(S).during(function(){r.updateSymbolPosition(l)});d||E.done(function(){r.remove(l)}),E.start()}this._period=c,this._loop=d},a.getLineLength=function(t){return f.dist(t.__p1,t.__cp1)+f.dist(t.__cp1,t.__p2)},a.updateAnimationPoints=function(t,o){t.__p1=o[0],t.__p2=o[1],t.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},a.updateData=function(t,o,e){this.childAt(0).updateData(t,o,e),this._updateEffectSymbol(t,o)},a.updateSymbolPosition=function(t){var o=t.__p1,e=t.__p2,l=t.__cp1,r=t.__t,s=t.position,c=[s[0],s[1]],d=h.quadraticAt,g=h.quadraticDerivativeAt;s[0]=d(o[0],l[0],e[0],r),s[1]=d(o[1],l[1],e[1],r);var v=g(o[0],l[0],e[0],r),b=g(o[1],l[1],e[1],r);if(t.rotation=-Math.atan2(b,v)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var S=f.dist(c,s)*1.05;t.attr("scale",[t.scale[0],S]),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 S=2*f.dist(o,s);t.attr("scale",[t.scale[0],S])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},a.updateLayout=function(t,o){this.childAt(0).updateLayout(t,o);var e=t.getItemModel(o).getModel("effect");this._updateEffectAnimation(t,e,o)},x.inherits(u,y.Group);var i=u;k.exports=i},DBLp:function(k,D){function n(){}n.prototype={diff:function(f,h,u){u||(u=function(b,S){return b===S}),this.equals=u;var a=this;f=f.slice(),h=h.slice();var i=h.length,t=f.length,o=1,e=i+t,l=[{newPos:-1,components:[]}],r=this.extractCommon(l[0],h,f,0);if(l[0].newPos+1>=i&&r+1>=t){for(var s=[],c=0;c<h.length;c++)s.push(c);return[{indices:s,count:h.length}]}function d(){for(var v=-1*o;v<=o;v+=2){var b,S=l[v-1],E=l[v+1],C=(E?E.newPos:0)-v;S&&(l[v-1]=void 0);var _=S&&S.newPos+1<i,T=E&&0<=C&&C<t;if(!_&&!T){l[v]=void 0;continue}if(!_||T&&S.newPos<E.newPos?(b=p(E),a.pushComponent(b.components,void 0,!0)):(b=S,b.newPos++,a.pushComponent(b.components,!0,void 0)),C=a.extractCommon(b,h,f,v),b.newPos+1>=i&&C+1>=t)return y(a,b.components,h,f);l[v]=b}o++}for(;o<=e;){var g=d();if(g)return g}},pushComponent:function(f,h,u){var a=f[f.length-1];a&&a.added===h&&a.removed===u?f[f.length-1]={count:a.count+1,added:h,removed:u}:f.push({count:1,added:h,removed:u})},extractCommon:function(f,h,u,a){for(var i=h.length,t=u.length,o=f.newPos,e=o-a,l=0;o+1<i&&e+1<t&&this.equals(h[o+1],u[e+1]);)o++,e++,l++;return l&&f.components.push({count:l}),f.newPos=o,e},tokenize:function(f){return f.slice()},join:function(f){return f.slice()}};function y(m,f,h,u){for(var a=0,i=f.length,t=0,o=0;a<i;a++){var e=f[a];if(e.removed){for(var l=[],r=o;r<o+e.count;r++)l.push(r);e.indices=l,o+=e.count}else{for(var l=[],r=t;r<t+e.count;r++)l.push(r);e.indices=l,t+=e.count,e.added||(o+=e.count)}}return f}function p(m){return{newPos:m.newPos,components:m.components.slice(0)}}var x=new n;function A(m,f,h){return x.diff(m,f,h)}k.exports=A},DEFe:function(k,D,n){var y=n("bYtY"),p=n("SgGq"),x=n("Ae+d"),A=n("xSat"),m=A.onIrrelevantElement,f=n("IwbS"),h=n("W4dC"),u=n("iRjW"),a=u.getUID,i=n("DN4a");function t(s){var c=s.getItemStyle(),d=s.get("areaColor");return d!=null&&(c.fill=d),c}function o(s,c,d,g,v){d.off("click"),d.off("mousedown"),c.get("selectedMode")&&(d.on("mousedown",function(){s._mouseDownFlag=!0}),d.on("click",function(b){if(!s._mouseDownFlag)return;s._mouseDownFlag=!1;for(var S=b.target;!S.__regions;)S=S.parent;if(!S)return;var E={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(S.__regions,function(C){return{name:C.name,from:v.uid}})};E[c.mainType+"Id"]=c.id,g.dispatchAction(E),e(c,d)}))}function e(s,c){c.eachChild(function(d){y.each(d.__regions,function(g){d.trigger(s.isSelected(g.name)?"emphasis":"normal")})})}function l(s,c){var d=new f.Group;this.uid=a("ec_map_draw"),this._controller=new p(s.getZr()),this._controllerHost={target:c?d:null},this.group=d,this._updateGroup=c,this._mouseDownFlag,this._mapName,this._initialized,d.add(this._regionsGroup=new f.Group),d.add(this._backgroundGroup=new f.Group)}l.prototype={constructor:l,draw:function(s,c,d,g,v){var b=s.mainType==="geo",S=s.getData&&s.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(z){!S&&z.getHostGeoModel()===s&&(S=z.getData())});var E=s.coordinateSystem;this._updateBackground(E);var C=this._regionsGroup,_=this.group,T=E.getTransformInfo(),w=!C.childAt(0)||v,O;if(w)_.transform=T.roamTransform,_.decomposeTransform(),_.dirty();else{var I=new i;I.transform=T.roamTransform,I.decomposeTransform();var R={scale:I.scale,position:I.position};O=I.scale,f.updateProps(_,R,s)}var M=T.rawScale,F=T.rawPosition;C.removeAll();var P=["itemStyle"],X=["emphasis","itemStyle"],B=["label"],j=["emphasis","label"],W=y.createHashMap();y.each(E.regions,function(z){var V=W.get(z.name)||W.set(z.name,new f.Group),Q=new f.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=s.getRegionModel(z.name)||s,re=G.getModel(P),ee=G.getModel(X),ue=t(re),$=t(ee),be=G.getModel(B),_e=G.getModel(j),Ee;if(S){Ee=S.indexOfName(z.name);var Xe=S.getItemVisual(Ee,"color",!0);Xe&&(ue.fill=Xe)}var He=function(we){return[we[0]*M[0]+F[0],we[1]*M[1]+F[1]]};y.each(z.geometries,function(we){if(we.type!=="polygon")return;for(var Ne=[],je=0;je<we.exterior.length;++je)Ne.push(He(we.exterior[je]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ne}}));for(var je=0;je<(we.interiors?we.interiors.length:0);++je){for(var me=we.interiors[je],Ne=[],Ce=0;Ce<me.length;++Ce)Ne.push(He(me[Ce]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ne}}))}}),Q.setStyle(ue),Q.style.strokeNoScale=!0,Q.culling=!0;var nt=be.get("show"),Ie=_e.get("show"),oe=S&&isNaN(S.get(S.mapDimension("value"),Ee)),ot=S&&S.getItemLayout(Ee);if(b||oe&&(nt||Ie)||ot&&ot.showLabel){var he=b?z.name:Ee,J;(!S||Ee>=0)&&(J=s);var Y=new f.Text({position:He(z.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(f.setLabelStyle(Y.style,Y.hoverStyle={},be,_e,{labelFetcher:J,labelDataIndex:he,defaultText:z.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var q=[1/O[0],1/O[1]];f.updateProps(Y,{scale:q},s)}V.add(Y)}if(S)S.setItemGraphicEl(Ee,V);else{var G=s.getRegionModel(z.name);Q.eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:z.name,region:G&&G.option||{}}}var fe=V.__regions||(V.__regions=[]);fe.push(z),V.highDownSilentOnTouch=!!s.get("selectedMode"),f.setHoverStyle(V,$),C.add(V)}),this._updateController(s,c,d),o(this,s,C,d,g),e(s,C)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&h.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(s){var c=s.map;this._mapName!==c&&y.each(h.makeGraphic(c,this.uid),function(d){this._backgroundGroup.add(d)},this),this._mapName=c},_updateController:function(s,c,d){var g=s.coordinateSystem,v=this._controller,b=this._controllerHost;b.zoomLimit=s.get("scaleLimit"),b.zoom=g.getZoom(),v.enable(s.get("roam")||!1);var S=s.mainType;function E(){var C={type:"geoRoam",componentType:S};return C[S+"Id"]=s.id,C}v.off("pan").on("pan",function(C){this._mouseDownFlag=!1,x.updateViewOnPan(b,C.dx,C.dy),d.dispatchAction(y.extend(E(),{dx:C.dx,dy:C.dy}))},this),v.off("zoom").on("zoom",function(C){if(this._mouseDownFlag=!1,x.updateViewOnZoom(b,C.scale,C.originX,C.originY),d.dispatchAction(y.extend(E(),{zoom:C.scale,originX:C.originX,originY:C.originY})),this._updateGroup){var _=this.group.scale;this._regionsGroup.traverse(function(T){T.type==="text"&&T.attr("scale",[1/_[0],1/_[1]])})}},this),v.setPointerChecker(function(C,_,T){return g.getViewRectAfterRoam().contain(_,T)&&!m(C,d,s)})}};var r=l;k.exports=r},DFOY:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n.n(r),c=n("VTBJ"),d=n("1OyB"),g=n("vuIU"),v=n("JX7q"),b=n("Ji7U"),S=n("LK+K"),E=n("i8i4"),C=n.n(E),_=n("l4aY"),T=n("m+aA"),w=n("c+Xe"),O=n("zT1h"),I=n("QC+M"),R=n("TSYQ"),M=n.n(R);function F(Wt,Et,kt){return kt?Wt[0]===Et[0]:Wt[0]===Et[0]&&Wt[1]===Et[1]}function P(Wt,Et,kt){var Bt=Wt[Et]||{};return Object(c.a)(Object(c.a)({},Bt),kt)}function X(Wt,Et,kt,Bt){for(var Kt=kt.points,Ot=Object.keys(Wt),sr=0;sr<Ot.length;sr+=1){var fr=Ot[sr];if(F(Wt[fr].points,Kt,Bt))return"".concat(Et,"-placement-").concat(fr)}return""}var B=n("Ff2n"),j=n("xEkU"),W=n.n(j),z=n("9mu1"),V=n("rePB"),Q=n("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function re(Wt,Et){var kt={};return kt[Wt.toLowerCase()]=Et.toLowerCase(),kt["Webkit".concat(Wt)]="webkit".concat(Et),kt["Moz".concat(Wt)]="moz".concat(Et),kt["ms".concat(Wt)]="MS".concat(Et),kt["O".concat(Wt)]="o".concat(Et.toLowerCase()),kt}function ee(Wt,Et){var kt={animationend:re("Animation","AnimationEnd"),transitionend:re("Transition","TransitionEnd")};return Wt&&("AnimationEvent"in Et||delete kt.animationend.animation,"TransitionEvent"in Et||delete kt.transitionend.transition),kt}var ue=ee(G,typeof window!="undefined"?window:{}),$={};if(G){var be=document.createElement("div");$=be.style}var _e={};function Ee(Wt){if(_e[Wt])return _e[Wt];var Et=ue[Wt];if(Et)for(var kt=Object.keys(Et),Bt=kt.length,Kt=0;Kt<Bt;Kt+=1){var Ot=kt[Kt];if(Object.prototype.hasOwnProperty.call(Et,Ot)&&Ot in $)return _e[Wt]=Et[Ot],_e[Wt]}return""}var Xe=Ee("animationend"),He=Ee("transitionend"),nt=!!(Xe&&He);function Ie(Wt,Et){if(!Wt)return null;if(Object(Q.a)(Wt)==="object"){var kt=Et.replace(/-\w/g,function(Bt){return Bt[1].toUpperCase()});return Wt[kt]}return"".concat(Wt,"-").concat(Et)}var oe="none",ot="appear",he="enter",J="leave";function Y(Wt){var Et=Wt,kt=!!r.forwardRef;Object(Q.a)(Wt)==="object"&&(Et=Wt.transitionSupport,kt="forwardRef"in Wt?Wt.forwardRef:kt);function Bt(Ot){return!!(Ot.motionName&&Et)}var Kt=function(Ot){Object(b.a)(fr,Ot);var sr=Object(S.a)(fr);function fr(){var vr;return Object(d.a)(this,fr),vr=sr.apply(this,arguments),vr.$cacheEle=null,vr.node=null,vr.raf=null,vr.destroyed=!1,vr.deadlineId=null,vr.state={status:oe,statusActive:!1,newStatus:!1,statusStyle:null},vr.onDomUpdate=function(){var Rr=vr.state,Kn=Rr.status,Dn=Rr.newStatus,ui=vr.props,pn=ui.onAppearStart,Br=ui.onEnterStart,Tn=ui.onLeaveStart,zn=ui.onAppearActive,Qn=ui.onEnterActive,ii=ui.onLeaveActive,xi=ui.motionAppear,Di=ui.motionEnter,Li=ui.motionLeave;if(!Bt(vr.props))return;var oa=vr.getElement();vr.$cacheEle!==oa&&(vr.removeEventListener(vr.$cacheEle),vr.addEventListener(oa),vr.$cacheEle=oa),Dn&&Kn===ot&&xi?vr.updateStatus(pn,null,null,function(){vr.updateActiveStatus(zn,ot)}):Dn&&Kn===he&&Di?vr.updateStatus(Br,null,null,function(){vr.updateActiveStatus(Qn,he)}):Dn&&Kn===J&&Li&&vr.updateStatus(Tn,null,null,function(){vr.updateActiveStatus(ii,J)})},vr.onMotionEnd=function(Rr){if(Rr&&!Rr.deadline&&Rr.target!==vr.getElement())return;var Kn=vr.state,Dn=Kn.status,ui=Kn.statusActive,pn=vr.props,Br=pn.onAppearEnd,Tn=pn.onEnterEnd,zn=pn.onLeaveEnd;Dn===ot&&ui?vr.updateStatus(Br,{status:oe},Rr):Dn===he&&ui?vr.updateStatus(Tn,{status:oe},Rr):Dn===J&&ui&&vr.updateStatus(zn,{status:oe},Rr)},vr.setNodeRef=function(Rr){var Kn=vr.props.internalRef;vr.node=Rr,Object(w.b)(Kn,Rr)},vr.getElement=function(){try{return Object(T.a)(vr.node||Object(v.a)(vr))}catch(Rr){return vr.$cacheEle}},vr.addEventListener=function(Rr){if(!Rr)return;Rr.addEventListener(He,vr.onMotionEnd),Rr.addEventListener(Xe,vr.onMotionEnd)},vr.removeEventListener=function(Rr){if(!Rr)return;Rr.removeEventListener(He,vr.onMotionEnd),Rr.removeEventListener(Xe,vr.onMotionEnd)},vr.updateStatus=function(Rr,Kn,Dn,ui){var pn=Rr?Rr(vr.getElement(),Dn):null;if(pn===!1||vr.destroyed)return;var Br;ui&&(Br=function(){vr.nextFrame(ui)}),vr.setState(Object(c.a)({statusStyle:Object(Q.a)(pn)==="object"?pn:null,newStatus:!1},Kn),Br)},vr.updateActiveStatus=function(Rr,Kn){vr.nextFrame(function(){var Dn=vr.state.status;if(Dn!==Kn)return;var ui=vr.props.motionDeadline;vr.updateStatus(Rr,{statusActive:!0}),ui>0&&(vr.deadlineId=setTimeout(function(){vr.onMotionEnd({deadline:!0})},ui))})},vr.nextFrame=function(Rr){vr.cancelNextFrame(),vr.raf=W()(Rr)},vr.cancelNextFrame=function(){vr.raf&&(W.a.cancel(vr.raf),vr.raf=null)},vr}return Object(g.a)(fr,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Rr,Kn=this.state,Dn=Kn.status,ui=Kn.statusActive,pn=Kn.statusStyle,Br=this.props,Tn=Br.children,zn=Br.motionName,Qn=Br.visible,ii=Br.removeOnLeave,xi=Br.leavedClassName,Di=Br.eventProps;return Tn?Dn===oe||!Bt(this.props)?Qn?Tn(Object(c.a)({},Di),this.setNodeRef):ii?null:Tn(Object(c.a)(Object(c.a)({},Di),{},{className:xi}),this.setNodeRef):Tn(Object(c.a)(Object(c.a)({},Di),{},{className:M()(Ie(zn,Dn),(Rr={},Object(V.a)(Rr,Ie(zn,"".concat(Dn,"-active")),ui),Object(V.a)(Rr,zn,typeof zn=="string"),Rr)),style:pn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Rr,Kn){var Dn=Kn.prevProps,ui=Kn.status;if(!Bt(Rr))return{};var pn=Rr.visible,Br=Rr.motionAppear,Tn=Rr.motionEnter,zn=Rr.motionLeave,Qn=Rr.motionLeaveImmediately,ii={prevProps:Rr};return(ui===ot&&!Br||ui===he&&!Tn||ui===J&&!zn)&&(ii.status=oe,ii.statusActive=!1,ii.newStatus=!1),!Dn&&pn&&Br&&(ii.status=ot,ii.statusActive=!1,ii.newStatus=!0),Dn&&!Dn.visible&&pn&&Tn&&(ii.status=he,ii.statusActive=!1,ii.newStatus=!0),(Dn&&Dn.visible&&!pn&&zn||!Dn&&Qn&&!pn&&zn)&&(ii.status=J,ii.statusActive=!1,ii.newStatus=!0),ii}}]),fr}(r.Component);return Kt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},kt?r.forwardRef(function(Ot,sr){return r.createElement(Kt,Object.assign({internalRef:sr},Ot))}):Kt}var q=Y(nt),fe="add",we="keep",Ne="remove",je="removed";function me(Wt){var Et;return Wt&&Object(Q.a)(Wt)==="object"&&"key"in Wt?Et=Wt:Et={key:Wt},Object(c.a)(Object(c.a)({},Et),{},{key:String(Et.key)})}function Ce(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Wt.map(me)}function Fe(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=[],Bt=0,Kt=Et.length,Ot=Ce(Wt),sr=Ce(Et);Ot.forEach(function(Rr){for(var Kn=!1,Dn=Bt;Dn<Kt;Dn+=1){var ui=sr[Dn];if(ui.key===Rr.key){Bt<Dn&&(kt=kt.concat(sr.slice(Bt,Dn).map(function(pn){return Object(c.a)(Object(c.a)({},pn),{},{status:fe})})),Bt=Dn),kt.push(Object(c.a)(Object(c.a)({},ui),{},{status:we})),Bt+=1,Kn=!0;break}}Kn||kt.push(Object(c.a)(Object(c.a)({},Rr),{},{status:Ne}))}),Bt<Kt&&(kt=kt.concat(sr.slice(Bt).map(function(Rr){return Object(c.a)(Object(c.a)({},Rr),{},{status:fe})})));var fr={};kt.forEach(function(Rr){var Kn=Rr.key;fr[Kn]=(fr[Kn]||0)+1});var vr=Object.keys(fr).filter(function(Rr){return fr[Rr]>1});return vr.forEach(function(Rr){kt=kt.filter(function(Kn){var Dn=Kn.key,ui=Kn.status;return Dn!==Rr||ui!==Ne}),kt.forEach(function(Kn){Kn.key===Rr&&(Kn.status=we)})}),kt}var it=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ct(Wt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q,kt=function(Bt){Object(b.a)(Ot,Bt);var Kt=Object(S.a)(Ot);function Ot(){var sr;return Object(d.a)(this,Ot),sr=Kt.apply(this,arguments),sr.state={keyEntities:[]},sr.removeKey=function(fr){sr.setState(function(vr){var Rr=vr.keyEntities;return{keyEntities:Rr.map(function(Kn){return Kn.key!==fr?Kn:Object(c.a)(Object(c.a)({},Kn),{},{status:je})})}})},sr}return Object(g.a)(Ot,[{key:"render",value:function(){var fr=this,vr=this.state.keyEntities,Rr=this.props,Kn=Rr.component,Dn=Rr.children,ui=Object(B.a)(Rr,["component","children"]),pn=Kn||r.Fragment,Br={};return it.forEach(function(Tn){Br[Tn]=ui[Tn],delete ui[Tn]}),delete ui.keys,r.createElement(pn,Object.assign({},ui),vr.map(function(Tn){var zn=Tn.status,Qn=Object(B.a)(Tn,["status"]),ii=zn===fe||zn===we;return r.createElement(Et,Object.assign({},Br,{key:Qn.key,visible:ii,eventProps:Qn,onLeaveEnd:function(){Br.onLeaveEnd&&Br.onLeaveEnd.apply(Br,arguments),fr.removeKey(Qn.key)}}),Dn)}))}}],[{key:"getDerivedStateFromProps",value:function(fr,vr){var Rr=fr.keys,Kn=vr.keyEntities,Dn=Ce(Rr);if(!Wt)return{keyEntities:Dn.map(function(Br){return Object(c.a)(Object(c.a)({},Br),{},{status:we})})};var ui=Fe(Kn,Dn),pn=Kn.length;return{keyEntities:ui.filter(function(Br){for(var Tn=null,zn=0;zn<pn;zn+=1){var Qn=Kn[zn];if(Qn.key===Br.key){Tn=Qn;break}}return!(Tn&&Tn.status===je&&Br.status===Ne)})}}}]),Ot}(r.Component);return kt.defaultProps={component:"div"},kt}var mt=Ct(nt),Ve=q,or=function(Et,kt){var Bt=Et.prefixCls,Kt=Et.className,Ot=Et.style,sr=Et.children,fr=Et.onMouseEnter,vr=Et.onMouseLeave,Rr=Et.onMouseDown,Kn=Et.onTouchStart,Dn=sr;return r.Children.count(sr)>1&&(Dn=r.createElement("div",{className:"".concat(Bt,"-content")},sr)),r.createElement("div",{ref:kt,className:Kt,onMouseEnter:fr,onMouseLeave:vr,onMouseDown:Rr,onTouchStart:Kn,style:Ot},Dn)},dt=r.forwardRef(or);dt.displayName="PopupInner";var Yt=dt;function hr(Wt){var Et=Wt.prefixCls,kt=Wt.motion,Bt=Wt.animation,Kt=Wt.transitionName;return kt||(Bt?{motionName:"".concat(Et,"-").concat(Bt)}:Kt?{motionName:Kt}:null)}function Gt(Wt){return Wt&&Wt.motionName}var Pt=function(Wt){Object(b.a)(kt,Wt);var Et=Object(S.a)(kt);function kt(){var Bt;return Object(d.a)(this,kt),Bt=Et.apply(this,arguments),Bt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Bt.popupRef=s.a.createRef(),Bt.alignRef=s.a.createRef(),Bt.nextFrameState=null,Bt.nextFrameId=null,Bt.onAlign=function(Kt,Ot){var sr=Bt.state.status,fr=Bt.props,vr=fr.getClassNameFromAlign,Rr=fr.onAlign,Kn=vr(Ot);sr==="align"?Bt.setState({alignClassName:Kn,status:"aligned"},function(){Bt.alignRef.current.forceAlign()}):sr==="aligned"?(Bt.setState({alignClassName:Kn,status:"afterAlign"}),Rr(Kt,Ot)):Bt.setState({alignClassName:Kn})},Bt.onMotionEnd=function(){var Kt=Bt.props.visible;Bt.setState({status:Kt?"AfterMotion":"stable",inMotion:!1})},Bt.setStateOnNextFrame=function(Kt){Bt.cancelFrameState(),Bt.nextFrameState=Object(c.a)(Object(c.a)({},Bt.nextFrameState),Kt),Bt.nextFrameId=W()(function(){var Ot=Object(c.a)({},Bt.nextFrameState);Bt.nextFrameState=null,Bt.setState(Ot)})},Bt.getMotion=function(){return Object(c.a)({},hr(Bt.props))},Bt.getAlignTarget=function(){var Kt=Bt.props,Ot=Kt.point,sr=Kt.getRootDomNode;return Ot||sr},Bt.cancelFrameState=function(){W.a.cancel(Bt.nextFrameId)},Bt.renderPopupElement=function(){var Kt=Bt.state,Ot=Kt.status,sr=Kt.targetHeight,fr=Kt.targetWidth,vr=Kt.alignClassName,Rr=Bt.props,Kn=Rr.prefixCls,Dn=Rr.className,ui=Rr.style,pn=Rr.stretch,Br=Rr.visible,Tn=Rr.align,zn=Rr.destroyPopupOnHide,Qn=Rr.onMouseEnter,ii=Rr.onMouseLeave,xi=Rr.onMouseDown,Di=Rr.onTouchStart,Li=Rr.children,oa=M()(Kn,Dn,vr),ma="".concat(Kn,"-hidden"),ia={};pn&&(pn.indexOf("height")!==-1?ia.height=sr:pn.indexOf("minHeight")!==-1&&(ia.minHeight=sr),pn.indexOf("width")!==-1?ia.width=fr:pn.indexOf("minWidth")!==-1&&(ia.minWidth=fr));var ba=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},ia),Bt.getZIndexStyle()),ui),{},{opacity:Ot==="stable"||!Br?void 0:0,pointerEvents:Ot==="stable"||!Br?void 0:"none"}),vi=Bt.getMotion(),Ln=Br;Br&&Ot!=="beforeMotion"&&Ot!=="motion"&&Ot!=="stable"&&(vi.motionAppear=!1,vi.motionEnter=!1,vi.motionLeave=!1),(Ot==="afterAlign"||Ot==="beforeMotion")&&(Ln=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ea){var aa=vi==null?void 0:vi[ea];vi[ea]=function(){for(var Ir=arguments.length,wr=new Array(Ir),xn=0;xn<Ir;xn++)wr[xn]=arguments[xn];aa==null||aa.apply(void 0,wr),Bt.setState({inMotion:!0})}});var Fi=!Br||Ot!=="align"&&Ot!=="aligned"&&Ot!=="stable",ha=!0;return Ot==="stable"&&(ha=Br),zn&&!ha?null:s.a.createElement(Ve,Object.assign({visible:Ln},vi,{removeOnLeave:!1,onEnterEnd:Bt.onMotionEnd,onLeaveEnd:Bt.onMotionEnd,leavedClassName:ma}),function(ea,aa){var Ir=ea.style,wr=ea.className;return s.a.createElement(z.a,{target:Bt.getAlignTarget(),key:"popup",ref:Bt.alignRef,monitorWindowResize:!0,disabled:Fi,align:Tn,onAlign:Bt.onAlign},s.a.createElement(Yt,{prefixCls:Kn,className:M()(oa,wr),ref:Object(w.a)(aa,Bt.popupRef),onMouseEnter:Qn,onMouseLeave:ii,onMouseDown:xi,onTouchStart:Di,style:Object(c.a)(Object(c.a)({},ba),Ir)},Li))})},Bt.renderMaskElement=function(){var Kt=Bt.props,Ot=Kt.mask,sr=Kt.maskMotion,fr=Kt.maskTransitionName,vr=Kt.maskAnimation,Rr=Kt.prefixCls,Kn=Kt.visible;if(!Ot)return null;var Dn={};return sr&&sr.motionName&&(Dn=Object(c.a)({motionAppear:!0},hr({motion:sr,prefixCls:Rr,transitionName:fr,animation:vr}))),s.a.createElement(Ve,Object.assign({},Dn,{visible:Kn,removeOnLeave:!0}),function(ui){var pn=ui.className;return s.a.createElement("div",{style:Bt.getZIndexStyle(),key:"mask",className:M()("".concat(Rr,"-mask"),pn)})})},Bt}return Object(g.a)(kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Kt=this.state.status,Ot=this.props,sr=Ot.getRootDomNode,fr=Ot.visible,vr=Ot.stretch;if(this.cancelFrameState(),fr&&Kt!=="stable")switch(Kt){case null:{this.setStateOnNextFrame({status:vr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Gt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Rr=["measure","align",null,"beforeMotion","motion"],Kn=Rr.indexOf(Kt),Dn=Rr[Kn+1];Kn!==-1&&Dn&&this.setStateOnNextFrame({status:Dn})}}if(Kt==="measure"){var ui=sr();ui&&this.setStateOnNextFrame({targetHeight:ui.offsetHeight,targetWidth:ui.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Kt=this.props.zIndex;return{zIndex:Kt}}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Kt,Ot){var sr=Kt.visible,fr=Object(B.a)(Kt,["visible"]),vr=Ot.prevVisible,Rr=Ot.status,Kn=Ot.inMotion,Dn={prevVisible:sr,status:Rr},ui=hr(fr);return vr===null&&sr===!1?(Dn.status="stable",Dn.inMotion=!1):sr!==vr&&(Dn.inMotion=!1,sr||Gt(ui)&&Kn?Dn.status=null:Dn.status="stable",sr&&(Dn.alignClassName=null)),Dn}}]),kt}(r.Component),Xt=Pt,Ge=r.createContext(null),pe=Ge;function se(){}function lt(){return""}function Ze(){return window.document}var de=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function _t(Wt){var Et=function(kt){Object(b.a)(Kt,kt);var Bt=Object(S.a)(Kt);function Kt(Ot){var sr;Object(d.a)(this,Kt),sr=Bt.call(this,Ot),sr.popupRef=s.a.createRef(),sr.triggerRef=s.a.createRef(),sr.onMouseEnter=function(vr){var Rr=sr.props.mouseEnterDelay;sr.fireEvents("onMouseEnter",vr),sr.delaySetPopupVisible(!0,Rr,Rr?null:vr)},sr.onMouseMove=function(vr){sr.fireEvents("onMouseMove",vr),sr.setPoint(vr)},sr.onMouseLeave=function(vr){sr.fireEvents("onMouseLeave",vr),sr.delaySetPopupVisible(!1,sr.props.mouseLeaveDelay)},sr.onPopupMouseEnter=function(){sr.clearDelayTimer()},sr.onPopupMouseLeave=function(vr){if(vr.relatedTarget&&!vr.relatedTarget.setTimeout&&sr.popupRef.current&&sr.popupRef.current.popupRef.current&&Object(_.a)(sr.popupRef.current.popupRef.current,vr.relatedTarget))return;sr.delaySetPopupVisible(!1,sr.props.mouseLeaveDelay)},sr.onFocus=function(vr){sr.fireEvents("onFocus",vr),sr.clearDelayTimer(),sr.isFocusToShow()&&(sr.focusTime=Date.now(),sr.delaySetPopupVisible(!0,sr.props.focusDelay))},sr.onMouseDown=function(vr){sr.fireEvents("onMouseDown",vr),sr.preClickTime=Date.now()},sr.onTouchStart=function(vr){sr.fireEvents("onTouchStart",vr),sr.preTouchTime=Date.now()},sr.onBlur=function(vr){sr.fireEvents("onBlur",vr),sr.clearDelayTimer(),sr.isBlurToHide()&&sr.delaySetPopupVisible(!1,sr.props.blurDelay)},sr.onContextMenu=function(vr){vr.preventDefault(),sr.fireEvents("onContextMenu",vr),sr.setPopupVisible(!0,vr)},sr.onContextMenuClose=function(){sr.isContextMenuToShow()&&sr.close()},sr.onClick=function(vr){if(sr.fireEvents("onClick",vr),sr.focusTime){var Rr;if(sr.preClickTime&&sr.preTouchTime?Rr=Math.min(sr.preClickTime,sr.preTouchTime):sr.preClickTime?Rr=sr.preClickTime:sr.preTouchTime&&(Rr=sr.preTouchTime),Math.abs(Rr-sr.focusTime)<20)return;sr.focusTime=0}sr.preClickTime=0,sr.preTouchTime=0,sr.isClickToShow()&&(sr.isClickToHide()||sr.isBlurToHide())&&vr&&vr.preventDefault&&vr.preventDefault();var Kn=!sr.state.popupVisible;(sr.isClickToHide()&&!Kn||Kn&&sr.isClickToShow())&&sr.setPopupVisible(!sr.state.popupVisible,vr)},sr.onPopupMouseDown=function(){if(sr.hasPopupMouseDown=!0,clearTimeout(sr.mouseDownTimeout),sr.mouseDownTimeout=window.setTimeout(function(){sr.hasPopupMouseDown=!1},0),sr.context){var vr;(vr=sr.context).onPopupMouseDown.apply(vr,arguments)}},sr.onDocumentClick=function(vr){if(sr.props.mask&&!sr.props.maskClosable)return;var Rr=vr.target,Kn=sr.getRootDomNode(),Dn=sr.getPopupDomNode();!Object(_.a)(Kn,Rr)&&!Object(_.a)(Dn,Rr)&&!sr.hasPopupMouseDown&&sr.close()},sr.getRootDomNode=function(){var vr=sr.props.getTriggerDOMNode;if(vr)return vr(sr.triggerRef.current);try{var Rr=Object(T.a)(sr.triggerRef.current);if(Rr)return Rr}catch(Kn){}return C.a.findDOMNode(Object(v.a)(sr))},sr.getPopupClassNameFromAlign=function(vr){var Rr=[],Kn=sr.props,Dn=Kn.popupPlacement,ui=Kn.builtinPlacements,pn=Kn.prefixCls,Br=Kn.alignPoint,Tn=Kn.getPopupClassNameFromAlign;return Dn&&ui&&Rr.push(X(ui,pn,vr,Br)),Tn&&Rr.push(Tn(vr)),Rr.join(" ")},sr.getComponent=function(){var vr=sr.props,Rr=vr.prefixCls,Kn=vr.destroyPopupOnHide,Dn=vr.popupClassName,ui=vr.onPopupAlign,pn=vr.popupMotion,Br=vr.popupAnimation,Tn=vr.popupTransitionName,zn=vr.popupStyle,Qn=vr.mask,ii=vr.maskAnimation,xi=vr.maskTransitionName,Di=vr.maskMotion,Li=vr.zIndex,oa=vr.popup,ma=vr.stretch,ia=vr.alignPoint,ba=sr.state,vi=ba.popupVisible,Ln=ba.point,Fi=sr.getPopupAlign(),ha={};return sr.isMouseEnterToShow()&&(ha.onMouseEnter=sr.onPopupMouseEnter),sr.isMouseLeaveToHide()&&(ha.onMouseLeave=sr.onPopupMouseLeave),ha.onMouseDown=sr.onPopupMouseDown,ha.onTouchStart=sr.onPopupMouseDown,s.a.createElement(Xt,Object.assign({prefixCls:Rr,destroyPopupOnHide:Kn,visible:vi,point:ia&&Ln,className:Dn,align:Fi,onAlign:ui,animation:Br,getClassNameFromAlign:sr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:sr.getRootDomNode,style:zn,mask:Qn,zIndex:Li,transitionName:Tn,maskAnimation:ii,maskTransitionName:xi,maskMotion:Di,ref:sr.popupRef,motion:pn}),typeof oa=="function"?oa():oa)},sr.getContainer=function(){var vr=Object(v.a)(sr),Rr=vr.props,Kn=document.createElement("div");Kn.style.position="absolute",Kn.style.top="0",Kn.style.left="0",Kn.style.width="100%";var Dn=Rr.getPopupContainer?Rr.getPopupContainer(sr.getRootDomNode()):Rr.getDocument().body;return Dn.appendChild(Kn),Kn},sr.setPoint=function(vr){var Rr=sr.props.alignPoint;if(!Rr||!vr)return;sr.setState({point:{pageX:vr.pageX,pageY:vr.pageY}})},sr.handlePortalUpdate=function(){sr.state.prevPopupVisible!==sr.state.popupVisible&&sr.props.afterPopupVisibleChange(sr.state.popupVisible)};var fr;return"popupVisible"in Ot?fr=!!Ot.popupVisible:fr=!!Ot.defaultPopupVisible,sr.state={prevPopupVisible:fr,popupVisible:fr},de.forEach(function(vr){sr["fire".concat(vr)]=function(Rr){sr.fireEvents(vr,Rr)}}),sr}return Object(g.a)(Kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var sr=this.props,fr=this.state;if(fr.popupVisible){var vr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(vr=sr.getDocument(),this.clickOutsideHandler=Object(O.a)(vr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(vr=vr||sr.getDocument(),this.touchOutsideHandler=Object(O.a)(vr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(vr=vr||sr.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(vr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(O.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var sr=this.props,fr=sr.popupPlacement,vr=sr.popupAlign,Rr=sr.builtinPlacements;return fr&&Rr?P(Rr,fr,vr):vr}},{key:"setPopupVisible",value:function(sr,fr){var vr=this.props.alignPoint,Rr=this.state.popupVisible;this.clearDelayTimer(),Rr!==sr&&("popupVisible"in this.props||this.setState({popupVisible:sr,prevPopupVisible:Rr}),this.props.onPopupVisibleChange(sr)),vr&&fr&&this.setPoint(fr)}},{key:"delaySetPopupVisible",value:function(sr,fr,vr){var Rr=this,Kn=fr*1e3;if(this.clearDelayTimer(),Kn){var Dn=vr?{pageX:vr.pageX,pageY:vr.pageY}:null;this.delayTimer=window.setTimeout(function(){Rr.setPopupVisible(sr,Dn),Rr.clearDelayTimer()},Kn)}else this.setPopupVisible(sr,vr)}},{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(sr){var fr=this.props.children.props,vr=this.props;return fr[sr]&&vr[sr]?this["fire".concat(sr)]:fr[sr]||vr[sr]}},{key:"isClickToShow",value:function(){var sr=this.props,fr=sr.action,vr=sr.showAction;return fr.indexOf("click")!==-1||vr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var sr=this.props,fr=sr.action,vr=sr.showAction;return fr.indexOf("contextMenu")!==-1||vr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var sr=this.props,fr=sr.action,vr=sr.hideAction;return fr.indexOf("click")!==-1||vr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var sr=this.props,fr=sr.action,vr=sr.showAction;return fr.indexOf("hover")!==-1||vr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var sr=this.props,fr=sr.action,vr=sr.hideAction;return fr.indexOf("hover")!==-1||vr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var sr=this.props,fr=sr.action,vr=sr.showAction;return fr.indexOf("focus")!==-1||vr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var sr=this.props,fr=sr.action,vr=sr.hideAction;return fr.indexOf("focus")!==-1||vr.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(sr,fr){var vr=this.props.children.props[sr];vr&&vr(fr);var Rr=this.props[sr];Rr&&Rr(fr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var sr=this.state.popupVisible,fr=this.props,vr=fr.children,Rr=fr.forceRender,Kn=fr.alignPoint,Dn=fr.className,ui=fr.autoDestroy,pn=s.a.Children.only(vr),Br={key:"trigger"};this.isContextMenuToShow()?Br.onContextMenu=this.onContextMenu:Br.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Br.onClick=this.onClick,Br.onMouseDown=this.onMouseDown,Br.onTouchStart=this.onTouchStart):(Br.onClick=this.createTwoChains("onClick"),Br.onMouseDown=this.createTwoChains("onMouseDown"),Br.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Br.onMouseEnter=this.onMouseEnter,Kn&&(Br.onMouseMove=this.onMouseMove)):Br.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Br.onMouseLeave=this.onMouseLeave:Br.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Br.onFocus=this.onFocus,Br.onBlur=this.onBlur):(Br.onFocus=this.createTwoChains("onFocus"),Br.onBlur=this.createTwoChains("onBlur"));var Tn=M()(pn&&pn.props&&pn.props.className,Dn);Tn&&(Br.className=Tn);var zn=Object(c.a)({},Br);Object(w.c)(pn)&&(zn.ref=Object(w.a)(this.triggerRef,pn.ref));var Qn=s.a.cloneElement(pn,zn),ii;return(sr||this.popupRef.current||Rr)&&(ii=s.a.createElement(Wt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!sr&&ui&&(ii=null),s.a.createElement(pe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Qn,ii)}}],[{key:"getDerivedStateFromProps",value:function(sr,fr){var vr=sr.popupVisible,Rr={};return vr!==void 0&&fr.popupVisible!==vr&&(Rr.popupVisible=vr,Rr.prevPopupVisible=fr.popupVisible),Rr}}]),Kt}(s.a.Component);return Et.contextType=pe,Et.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:lt,getDocument:Ze,onPopupVisibleChange:se,afterPopupVisibleChange:se,onPopupAlign:se,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Et}var er=_t(I.a),yt=n("2W6z"),Ar=n.n(yt),Sr=n("4IlW"),Cn=n("uK0f"),mr=n.n(Cn);function Pr(Wt,Et){if(Wt===Et)return!0;if(!Wt||!Et)return!1;var kt=Wt.length;if(Et.length!==kt)return!1;for(var Bt=0;Bt<kt;Bt++)if(Wt[Bt]!==Et[Bt])return!1;return!0}function gr(Wt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gr=function(kt){return typeof kt}:gr=function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt},gr(Wt)}function Jt(Wt,Et){if(!(Wt instanceof Et))throw new TypeError("Cannot call a class as a function")}function Dt(Wt,Et){for(var kt=0;kt<Et.length;kt++){var Bt=Et[kt];Bt.enumerable=Bt.enumerable||!1,Bt.configurable=!0,"value"in Bt&&(Bt.writable=!0),Object.defineProperty(Wt,Bt.key,Bt)}}function dn(Wt,Et,kt){return Et&&Dt(Wt.prototype,Et),kt&&Dt(Wt,kt),Wt}function Fn(Wt,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Et&&Zn(Wt,Et)}function Zn(Wt,Et){return Zn=Object.setPrototypeOf||function(Bt,Kt){return Bt.__proto__=Kt,Bt},Zn(Wt,Et)}function ci(Wt){var Et=ei();return function(){var kt=Zt(Wt),Bt;if(Et){var Kt=Zt(this).constructor;Bt=Reflect.construct(kt,arguments,Kt)}else Bt=kt.apply(this,arguments);return Xi(this,Bt)}}function Xi(Wt,Et){return Et&&(gr(Et)==="object"||typeof Et=="function")?Et:Gn(Wt)}function Gn(Wt){if(Wt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Wt}function ei(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Wt){return!1}}function Zt(Wt){return Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},Zt(Wt)}var Nt=function(){var Wt=function(Et){Fn(Bt,Et);var kt=ci(Bt);function Bt(){var Kt;return Jt(this,Bt),Kt=kt.apply(this,arguments),Kt.menuItems={},Kt.saveMenuItem=function(Ot){return function(sr){Kt.menuItems[Ot]=sr}},Kt}return dn(Bt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Ot){!Ot.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Ot){var sr=this.props,fr=sr.fieldNames,vr=sr.defaultFieldNames;return fr[Ot]||vr[Ot]}},{key:"getOption",value:function(Ot,sr){var fr=this.props,vr=fr.prefixCls,Rr=fr.expandTrigger,Kn=fr.expandIcon,Dn=fr.loadingIcon,ui=this.props.onSelect.bind(this,Ot,sr),pn=this.props.onItemDoubleClick.bind(this,Ot,sr),Br={onClick:ui,onDoubleClick:pn},Tn="".concat(vr,"-menu-item"),zn=null,Qn=Ot[this.getFieldName("children")]&&Ot[this.getFieldName("children")].length>0;(Qn||Ot.isLeaf===!1)&&(Tn+=" ".concat(vr,"-menu-item-expand"),Ot.loading||(zn=r.createElement("span",{className:"".concat(vr,"-menu-item-expand-icon")},Kn))),Rr==="hover"&&(Qn||Ot.isLeaf===!1)&&(Br={onMouseEnter:this.delayOnSelect.bind(this,ui),onMouseLeave:this.delayOnSelect.bind(this),onClick:ui}),this.isActiveOption(Ot,sr)&&(Tn+=" ".concat(vr,"-menu-item-active"),Br.ref=this.saveMenuItem(sr)),Ot.disabled&&(Tn+=" ".concat(vr,"-menu-item-disabled"));var ii=null;Ot.loading&&(Tn+=" ".concat(vr,"-menu-item-loading"),ii=Dn||null);var xi="";return"title"in Ot?xi=Ot.title:typeof Ot[this.getFieldName("label")]=="string"&&(xi=Ot[this.getFieldName("label")]),r.createElement("li",Object.assign({key:Ot[this.getFieldName("value")],className:Tn,title:xi},Br,{role:"menuitem",onMouseDown:function(Li){return Li.preventDefault()}}),Ot[this.getFieldName("label")],zn,ii)}},{key:"getActiveOptions",value:function(Ot){var sr=this,fr=this.props.options,vr=Ot||this.props.activeValue;return mr()(fr,function(Rr,Kn){return Rr[sr.getFieldName("value")]===vr[Kn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Ot=this,sr=this.props.options,fr=this.getActiveOptions().map(function(vr){return vr[Ot.getFieldName("children")]}).filter(function(vr){return!!vr});return fr.unshift(sr),fr}},{key:"delayOnSelect",value:function(Ot){for(var sr=this,fr=arguments.length,vr=new Array(fr>1?fr-1:0),Rr=1;Rr<fr;Rr++)vr[Rr-1]=arguments[Rr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Ot=="function"&&(this.delayTimer=window.setTimeout(function(){Ot(vr),sr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Ot=this.getShowOptions().length,sr=0;sr<Ot;sr++){var fr=this.menuItems[sr];fr&&fr.parentElement&&(fr.parentElement.scrollTop=fr.offsetTop)}}},{key:"isActiveOption",value:function(Ot,sr){var fr=this.props.activeValue,vr=fr===void 0?[]:fr;return vr[sr]===Ot[this.getFieldName("value")]}},{key:"render",value:function(){var Ot=this,sr=this.props,fr=sr.prefixCls,vr=sr.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(Rr,Kn){return r.createElement("ul",{className:"".concat(fr,"-menu"),key:Kn,style:vr},Rr.map(function(Dn){return Ot.getOption(Dn,Kn)}))}))}}]),Bt}(r.Component);return Wt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Wt}(),Me=Nt,ke={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}}},Pe=ke;function tt(Wt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tt=function(kt){return typeof kt}:tt=function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt},tt(Wt)}function vt(Wt,Et){if(Wt==null)return{};var kt=St(Wt,Et),Bt,Kt;if(Object.getOwnPropertySymbols){var Ot=Object.getOwnPropertySymbols(Wt);for(Kt=0;Kt<Ot.length;Kt++){if(Bt=Ot[Kt],Et.indexOf(Bt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Wt,Bt))continue;kt[Bt]=Wt[Bt]}}return kt}function St(Wt,Et){if(Wt==null)return{};var kt={},Bt=Object.keys(Wt),Kt,Ot;for(Ot=0;Ot<Bt.length;Ot++){if(Kt=Bt[Ot],Et.indexOf(Kt)>=0)continue;kt[Kt]=Wt[Kt]}return kt}function Vt(Wt){return jt(Wt)||vn(Wt)||$r(Wt)||Mr()}function Mr(){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 $r(Wt,Et){if(!Wt)return;if(typeof Wt=="string")return gt(Wt,Et);var kt=Object.prototype.toString.call(Wt).slice(8,-1);if(kt==="Object"&&Wt.constructor&&(kt=Wt.constructor.name),kt==="Map"||kt==="Set")return Array.from(Wt);if(kt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(kt))return gt(Wt,Et)}function vn(Wt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Wt))return Array.from(Wt)}function jt(Wt){if(Array.isArray(Wt))return gt(Wt)}function gt(Wt,Et){(Et==null||Et>Wt.length)&&(Et=Wt.length);for(var kt=0,Bt=new Array(Et);kt<Et;kt++)Bt[kt]=Wt[kt];return Bt}function pt(Wt,Et){if(!(Wt instanceof Et))throw new TypeError("Cannot call a class as a function")}function ar(Wt,Et){for(var kt=0;kt<Et.length;kt++){var Bt=Et[kt];Bt.enumerable=Bt.enumerable||!1,Bt.configurable=!0,"value"in Bt&&(Bt.writable=!0),Object.defineProperty(Wt,Bt.key,Bt)}}function Ht(Wt,Et,kt){return Et&&ar(Wt.prototype,Et),kt&&ar(Wt,kt),Wt}function Mt(Wt,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Et&&qt(Wt,Et)}function qt(Wt,Et){return qt=Object.setPrototypeOf||function(Bt,Kt){return Bt.__proto__=Kt,Bt},qt(Wt,Et)}function Rt(Wt){var Et=Nr();return function(){var kt=Lr(Wt),Bt;if(Et){var Kt=Lr(this).constructor;Bt=Reflect.construct(kt,arguments,Kt)}else Bt=kt.apply(this,arguments);return Qt(this,Bt)}}function Qt(Wt,Et){return Et&&(tt(Et)==="object"||typeof Et=="function")?Et:jr(Wt)}function jr(Wt){if(Wt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Wt}function Nr(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(Wt){return!1}}function Lr(Wt){return Lr=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)},Lr(Wt)}var ln=function(){var Wt=function(Et){Mt(Bt,Et);var kt=Rt(Bt);function Bt(Kt){var Ot;pt(this,Bt),Ot=kt.call(this,Kt),Ot.setPopupVisible=function(fr){var vr=Ot.state.value;"popupVisible"in Ot.props||Ot.setState({popupVisible:fr}),fr&&!Ot.state.popupVisible&&Ot.setState({activeValue:vr}),Ot.props.onPopupVisibleChange(fr)},Ot.handleChange=function(fr,vr,Rr){var Kn=vr.visible;(Rr.type!=="keydown"||Rr.keyCode===Sr.a.ENTER)&&(Ot.props.onChange(fr.map(function(Dn){return Dn[Ot.getFieldName("value")]}),fr),Ot.setPopupVisible(Kn))},Ot.handlePopupVisibleChange=function(fr){Ot.setPopupVisible(fr)},Ot.handleMenuSelect=function(fr,vr,Rr){var Kn=Ot.trigger.getRootDomNode();Kn&&Kn.focus&&Kn.focus();var Dn=Ot.props,ui=Dn.changeOnSelect,pn=Dn.loadData,Br=Dn.expandTrigger;if(!fr||fr.disabled)return;var Tn=Ot.state.activeValue;Tn=Tn.slice(0,vr+1),Tn[vr]=fr[Ot.getFieldName("value")];var zn=Ot.getActiveOptions(Tn);if(fr.isLeaf===!1&&!fr[Ot.getFieldName("children")]&&pn){ui&&Ot.handleChange(zn,{visible:!0},Rr),Ot.setState({activeValue:Tn}),pn(zn);return}var Qn={};!fr[Ot.getFieldName("children")]||!fr[Ot.getFieldName("children")].length?(Ot.handleChange(zn,{visible:!1},Rr),Qn.value=Tn):ui&&(Rr.type==="click"||Rr.type==="keydown")&&(Br==="hover"?Ot.handleChange(zn,{visible:!1},Rr):Ot.handleChange(zn,{visible:!0},Rr),Qn.value=Tn),Qn.activeValue=Tn,("value"in Ot.props||Rr.type==="keydown"&&Rr.keyCode!==Sr.a.ENTER)&&delete Qn.value,Ot.setState(Qn)},Ot.handleItemDoubleClick=function(){var fr=Ot.props.changeOnSelect;fr&&Ot.setPopupVisible(!1)},Ot.handleKeyDown=function(fr){var vr=Ot.props.children;if(vr&&vr.props.onKeyDown){vr.props.onKeyDown(fr);return}var Rr=Vt(Ot.state.activeValue),Kn=Rr.length-1<0?0:Rr.length-1,Dn=Ot.getCurrentLevelOptions(),ui=Dn.map(function(zn){return zn[Ot.getFieldName("value")]}).indexOf(Rr[Kn]);if(fr.keyCode!==Sr.a.DOWN&&fr.keyCode!==Sr.a.UP&&fr.keyCode!==Sr.a.LEFT&&fr.keyCode!==Sr.a.RIGHT&&fr.keyCode!==Sr.a.ENTER&&fr.keyCode!==Sr.a.SPACE&&fr.keyCode!==Sr.a.BACKSPACE&&fr.keyCode!==Sr.a.ESC&&fr.keyCode!==Sr.a.TAB)return;if(!Ot.state.popupVisible&&fr.keyCode!==Sr.a.BACKSPACE&&fr.keyCode!==Sr.a.LEFT&&fr.keyCode!==Sr.a.RIGHT&&fr.keyCode!==Sr.a.ESC&&fr.keyCode!==Sr.a.TAB){Ot.setPopupVisible(!0);return}if(fr.keyCode===Sr.a.DOWN||fr.keyCode===Sr.a.UP){fr.preventDefault();var pn=ui;pn!==-1?fr.keyCode===Sr.a.DOWN?(pn+=1,pn=pn>=Dn.length?0:pn):(pn-=1,pn=pn<0?Dn.length-1:pn):pn=0,Rr[Kn]=Dn[pn][Ot.getFieldName("value")]}else if(fr.keyCode===Sr.a.LEFT||fr.keyCode===Sr.a.BACKSPACE)fr.preventDefault(),Rr.splice(Rr.length-1,1);else if(fr.keyCode===Sr.a.RIGHT)fr.preventDefault(),Dn[ui]&&Dn[ui][Ot.getFieldName("children")]&&Rr.push(Dn[ui][Ot.getFieldName("children")][0][Ot.getFieldName("value")]);else if(fr.keyCode===Sr.a.ESC||fr.keyCode===Sr.a.TAB){Ot.setPopupVisible(!1);return}(!Rr||Rr.length===0)&&Ot.setPopupVisible(!1);var Br=Ot.getActiveOptions(Rr),Tn=Br[Br.length-1];Ot.handleMenuSelect(Tn,Br.length-1,fr),Ot.props.onKeyDown&&Ot.props.onKeyDown(fr)},Ot.saveTrigger=function(fr){Ot.trigger=fr};var sr=[];return"value"in Kt?sr=Kt.value||[]:"defaultValue"in Kt&&(sr=Kt.defaultValue||[]),Ar()(!("filedNames"in Kt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Ot.state={popupVisible:Kt.popupVisible,activeValue:sr,value:sr,prevProps:Kt},Ot.defaultFieldNames={label:"label",value:"value",children:"children"},Ot}return Ht(Bt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Ot){var sr=this.defaultFieldNames,fr=this.props,vr=fr.fieldNames,Rr=fr.filedNames;return"filedNames"in this.props?Rr[Ot]||sr[Ot]:vr[Ot]||sr[Ot]}},{key:"getFieldNames",value:function(){var Ot=this.props,sr=Ot.fieldNames,fr=Ot.filedNames;return"filedNames"in this.props?fr:sr}},{key:"getCurrentLevelOptions",value:function(){var Ot=this,sr=this.props.options,fr=sr===void 0?[]:sr,vr=this.state.activeValue,Rr=vr===void 0?[]:vr,Kn=mr()(fr,function(Dn,ui){return Dn[Ot.getFieldName("value")]===Rr[ui]},{childrenKeyName:this.getFieldName("children")});return Kn[Kn.length-2]?Kn[Kn.length-2][this.getFieldName("children")]:Vt(fr).filter(function(Dn){return!Dn.disabled})}},{key:"getActiveOptions",value:function(Ot){var sr=this;return mr()(this.props.options||[],function(fr,vr){return fr[sr.getFieldName("value")]===Ot[vr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Ot=this.props,sr=Ot.prefixCls,fr=Ot.transitionName,vr=Ot.popupClassName,Rr=Ot.options,Kn=Rr===void 0?[]:Rr,Dn=Ot.disabled,ui=Ot.builtinPlacements,pn=Ot.popupPlacement,Br=Ot.children,Tn=Ot.dropdownRender,zn=vt(Ot,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Qn=r.createElement("div",null),ii="";Kn&&Kn.length>0?Qn=r.createElement(Me,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):ii=" ".concat(sr,"-menus-empty");var xi=Qn;return Tn&&(xi=Tn(Qn)),r.createElement(er,Object.assign({ref:this.saveTrigger},zn,{popupPlacement:pn,builtinPlacements:ui,popupTransitionName:fr,action:Dn?[]:["click"],popupVisible:Dn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(sr,"-menus"),popupClassName:vr+ii,popup:xi}),r.cloneElement(Br,{onKeyDown:this.handleKeyDown,tabIndex:Dn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Ot,sr){var fr=sr.prevProps,vr=fr===void 0?{}:fr,Rr={prevProps:Ot};return"value"in Ot&&!Pr(vr.value,Ot.value)&&(Rr.value=Ot.value||[],"loadData"in Ot||(Rr.activeValue=Ot.value||[])),"popupVisible"in Ot&&(Rr.popupVisible=Ot.popupVisible),Rr}}]),Bt}(r.Component);return Wt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Pe,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Wt}(),mn=ln,ti=mn,$n=n("BGR+"),hi=n("kbBi"),Ti=n.n(hi),Ni=n("HQEm"),Wi=n.n(Ni),rt=n("fEPi"),Re=n.n(rt),Ue=n("5YOS"),Ye=n.n(Ue),et=n("DFhj"),$e=n.n(et),at=n("5rEg"),wt=n("H84U"),ft=n("YMnH"),cr=n("uaoM"),Jr=n("3Nzz"),Qr=n("0n0R"),fn=function(Wt,Et){var kt={};for(var Bt in Wt)Object.prototype.hasOwnProperty.call(Wt,Bt)&&Et.indexOf(Bt)<0&&(kt[Bt]=Wt[Bt]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,Bt=Object.getOwnPropertySymbols(Wt);Kt<Bt.length;Kt++)Et.indexOf(Bt[Kt])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Bt[Kt])&&(kt[Bt[Kt]]=Wt[Bt[Kt]]);return kt},pr=50;function Wn(Wt,Et,kt){return Wt.split(Et).map(function(Bt,Kt){return Kt===0?Bt:[r.createElement("span",{className:"".concat(kt,"-menu-item-keyword"),key:"seperator"},Et),Bt]})}function kr(Wt,Et,kt){return Et.some(function(Bt){return Bt[kt.label].indexOf(Wt)>-1})}function kn(Wt,Et,kt,Bt){return Et.map(function(Kt,Ot){var sr=Kt[Bt.label],fr=sr.indexOf(Wt)>-1?Wn(sr,Wt,kt):sr;return Ot===0?fr:[" / ",fr]})}function bn(Wt,Et,kt,Bt){function Kt(Ot){return Ot[Bt.label].indexOf(kt)>-1}return Wt.findIndex(Kt)-Et.findIndex(Kt)}function qr(Wt){var Et=Wt.fieldNames;return Et}function fi(Wt){var Et=qr(Wt)||{},kt={children:Et.children||"children",label:Et.label||"label",value:Et.value||"value"};return kt}function Mi(Wt,Et){var kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Bt=fi(Et),Kt=[],Ot=Bt.children;return Wt.forEach(function(sr){var fr=kt.concat(sr);(Et.changeOnSelect||!sr[Ot]||!sr[Ot].length)&&Kt.push(fr),sr[Ot]&&(Kt=Kt.concat(Mi(sr[Ot],Et,fr)))}),Kt}var Zi=function(Et){return Et.join(" / ")};function tn(Wt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Wt||[]).forEach(function(kt){var Bt=Et.value||"value";Object(cr.a)(Bt in kt,"Cascader","Not found `value` in `options`."),tn(kt[Et.children||"children"],Et)})}var En=function(Wt){o()(kt,Wt);var Et=l()(kt);function kt(Bt){var Kt;return f()(this,kt),Kt=Et.call(this,Bt),Kt.cachedOptions=[],Kt.setValue=function(Ot){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Kt.props||Kt.setState({value:Ot});var fr=Kt.props.onChange;fr&&fr(Ot,sr)},Kt.saveInput=function(Ot){Kt.input=Ot},Kt.handleChange=function(Ot,sr){if(Kt.setState({inputValue:""}),sr[0].__IS_FILTERED_OPTION){var fr=Ot[0],vr=sr[0].path;Kt.setValue(fr,vr);return}Kt.setValue(Ot,sr)},Kt.handlePopupVisibleChange=function(Ot){"popupVisible"in Kt.props||Kt.setState(function(fr){return{popupVisible:Ot,inputFocused:Ot,inputValue:Ot?fr.inputValue:""}});var sr=Kt.props.onPopupVisibleChange;sr&&sr(Ot)},Kt.handleInputBlur=function(){Kt.setState({inputFocused:!1})},Kt.handleInputClick=function(Ot){var sr=Kt.state,fr=sr.inputFocused,vr=sr.popupVisible;(fr||vr)&&Ot.stopPropagation()},Kt.handleKeyDown=function(Ot){(Ot.keyCode===Sr.a.BACKSPACE||Ot.keyCode===Sr.a.SPACE)&&Ot.stopPropagation()},Kt.handleInputChange=function(Ot){var sr=Kt.state.popupVisible,fr=Ot.target.value;sr||Kt.handlePopupVisibleChange(!0),Kt.setState({inputValue:fr})},Kt.clearSelection=function(Ot){var sr=Kt.state.inputValue;Ot.preventDefault(),Ot.stopPropagation(),sr?Kt.setState({inputValue:""}):(Kt.handlePopupVisibleChange(!1),Kt.clearSelectionTimeout=setTimeout(function(){Kt.setValue([])},200))},Kt.renderCascader=function(Ot,sr){var fr=Ot.getPopupContainer,vr=Ot.getPrefixCls,Rr=Ot.renderEmpty,Kn=Ot.direction;return r.createElement(Jr.b.Consumer,null,function(Dn){var ui,pn,Br,Tn,zn=i()(Kt),Qn=zn.props,ii=zn.state,xi=Qn.prefixCls,Di=Qn.inputPrefixCls,Li=Qn.children,oa=Qn.placeholder,ma=oa===void 0?sr.placeholder||"Please select":oa,ia=Qn.size,ba=Qn.disabled,vi=Qn.className,Ln=Qn.style,Fi=Qn.allowClear,ha=Qn.showSearch,ea=ha===void 0?!1:ha,aa=Qn.suffixIcon,Ir=Qn.expandIcon,wr=Qn.notFoundContent,xn=Qn.popupClassName,ur=Qn.bordered,Dr=Qn.dropdownRender,Vr=fn(Qn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),sn=ia||Dn,Rn=ii.value,xt=ii.inputFocused,_r=Kn==="rtl",Or=vr("cascader",xi),en=vr("input",Di),wn=M()((ui={},A()(ui,"".concat(en,"-lg"),sn==="large"),A()(ui,"".concat(en,"-sm"),sn==="small"),ui)),_n=Fi&&!ba&&Rn.length>0||ii.inputValue?r.createElement(Ti.a,{className:"".concat(Or,"-picker-clear"),onClick:Kt.clearSelection}):null,yn=M()((pn={},A()(pn,"".concat(Or,"-picker-arrow"),!0),A()(pn,"".concat(Or,"-picker-arrow-expand"),ii.popupVisible),pn)),Jn=M()(vi,"".concat(Or,"-picker"),(Br={},A()(Br,"".concat(Or,"-picker-rtl"),_r),A()(Br,"".concat(Or,"-picker-with-value"),ii.inputValue),A()(Br,"".concat(Or,"-picker-disabled"),ba),A()(Br,"".concat(Or,"-picker-").concat(sn),!!sn),A()(Br,"".concat(Or,"-picker-show-search"),!!ea),A()(Br,"".concat(Or,"-picker-focused"),xt),A()(Br,"".concat(Or,"-picker-borderless"),!ur),Br)),Un=Object($n.default)(Vr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),pi=Qn.options,ki=fi(Kt.props);if(pi&&pi.length>0)ii.inputValue&&(pi=Kt.generateFilteredOptions(Or,Rr));else{var yi;pi=[(yi={},A()(yi,ki.label,wr||Rr("Cascader")),A()(yi,ki.value,"ANT_CASCADER_NOT_FOUND"),yi)]}ii.popupVisible?Kt.cachedOptions=pi:pi=Kt.cachedOptions;var _i={},Ki=(pi||[]).length===1&&pi[0].isEmptyNode;Ki&&(_i.height="auto");var qi=ea.matchInputWidth!==!1;qi&&(ii.inputValue||Ki)&&Kt.input&&(_i.width=Kt.input.input.offsetWidth);var zi;aa?zi=Object(Qr.c)(aa,r.createElement("span",{className:"".concat(Or,"-picker-arrow")},aa),function(){var Ma;return{className:M()((Ma={},A()(Ma,aa.props.className,aa.props.className),A()(Ma,"".concat(Or,"-picker-arrow"),!0),Ma))}}):zi=r.createElement(Wi.a,{className:yn});var Hi=Li||r.createElement("span",{style:Ln,className:Jn},r.createElement("span",{className:"".concat(Or,"-picker-label")},Kt.getLabel()),r.createElement(at.a,p()({},Un,{tabIndex:"-1",ref:Kt.saveInput,prefixCls:en,placeholder:Rn&&Rn.length>0?void 0:ma,className:"".concat(Or,"-input ").concat(wn),value:ii.inputValue,disabled:ba,readOnly:!ea,autoComplete:Un.autoComplete||"off",onClick:ea?Kt.handleInputClick:void 0,onBlur:ea?Kt.handleInputBlur:void 0,onKeyDown:Kt.handleKeyDown,onChange:ea?Kt.handleInputChange:void 0})),_n,zi),Ui;Ir?Ui=Ir:Ui=_r?r.createElement($e.a,null):r.createElement(Re.a,null);var Qi=r.createElement("span",{className:"".concat(Or,"-menu-item-loading-icon")},r.createElement(Ye.a,{spin:!0})),ca=Qn.getPopupContainer||fr,Ca=Object($n.default)(Qn,["inputIcon","expandIcon","loadingIcon","bordered"]),ra=M()(xn,(Tn={},A()(Tn,"".concat(Or,"-menu-").concat(Kn),Kn==="rtl"),A()(Tn,"".concat(Or,"-menu-empty"),pi.length===1&&pi[0].value==="ANT_CASCADER_NOT_FOUND"),Tn));return r.createElement(ti,p()({},Ca,{prefixCls:Or,getPopupContainer:ca,options:pi,value:Rn,popupVisible:ii.popupVisible,onPopupVisibleChange:Kt.handlePopupVisibleChange,onChange:Kt.handleChange,dropdownMenuColumnStyle:_i,expandIcon:Ui,loadingIcon:Qi,popupClassName:ra,popupPlacement:Kt.getPopupPlacement(Kn),dropdownRender:Dr}),Hi)})},Kt.state={value:Bt.value||Bt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Bt.popupVisible,flattenOptions:Bt.showSearch?Mi(Bt.options,Bt):void 0,prevProps:Bt},Kt}return u()(kt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Kt=this.props,Ot=Kt.options,sr=Kt.displayRender,fr=sr===void 0?Zi:sr,vr=fi(this.props),Rr=this.state.value,Kn=Array.isArray(Rr[0])?Rr[0]:Rr,Dn=mr()(Ot,function(pn,Br){return pn[vr.value]===Kn[Br]},{childrenKeyName:vr.children}),ui=Dn.length?Dn.map(function(pn){return pn[vr.label]}):Rr;return fr(ui,Dn)}},{key:"generateFilteredOptions",value:function(Kt,Ot){var sr=this,fr,vr=this.props,Rr=vr.showSearch,Kn=vr.notFoundContent,Dn=fi(this.props),ui=Rr.filter,pn=ui===void 0?kr:ui,Br=Rr.render,Tn=Br===void 0?kn:Br,zn=Rr.sort,Qn=zn===void 0?bn:zn,ii=Rr.limit,xi=ii===void 0?pr:ii,Di=this.state,Li=Di.flattenOptions,oa=Li===void 0?[]:Li,ma=Di.inputValue,ia;if(xi>0){ia=[];var ba=0;oa.some(function(vi){var Ln=pn(sr.state.inputValue,vi,Dn);return Ln&&(ia.push(vi),ba+=1),ba>=xi})}else Object(cr.a)(typeof xi!="number","Cascader","'limit' of showSearch should be positive number or false."),ia=oa.filter(function(vi){return pn(sr.state.inputValue,vi,Dn)});return ia=ia.sort(function(vi,Ln){return Qn(vi,Ln,ma,Dn)}),ia.length>0?ia.map(function(vi){var Ln;return Ln={__IS_FILTERED_OPTION:!0,path:vi},A()(Ln,Dn.value,vi.map(function(Fi){return Fi[Dn.value]})),A()(Ln,Dn.label,Tn(ma,vi,Kt,Dn)),A()(Ln,"disabled",vi.some(function(Fi){return!!Fi.disabled})),A()(Ln,"isEmptyNode",!0),Ln}):[(fr={},A()(fr,Dn.value,"ANT_CASCADER_NOT_FOUND"),A()(fr,Dn.label,Kn||Ot("Cascader")),A()(fr,"disabled",!0),A()(fr,"isEmptyNode",!0),fr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Ot=this.props.popupPlacement;return Ot!==void 0?Ot:Kt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Kt=this;return r.createElement(wt.a,null,function(Ot){return r.createElement(ft.a,null,function(sr){return Kt.renderCascader(Ot,sr)})})}}],[{key:"getDerivedStateFromProps",value:function(Kt,Ot){var sr=Ot.prevProps,fr={prevProps:Kt};return"value"in Kt&&(fr.value=Kt.value||[]),"popupVisible"in Kt&&(fr.popupVisible=Kt.popupVisible),Kt.showSearch&&sr.options!==Kt.options&&(fr.flattenOptions=Mi(Kt.options,Kt)),fr}}]),kt}(r.Component);En.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Vn=D.a=En},DFhj:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("GGyF"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},DL4k:function(k,D,n){"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,n){var y=n("Fofx"),p=n("QBsz"),x=y.identity,A=5e-5;function m(o){return o>A||o<-A}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},h=f.prototype;h.transform=null,h.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=[];h.updateTransform=function(){var o=this.parent,e=o&&o.transform,l=this.needLocalTransform(),r=this.transform;if(!(l||e)){r&&x(r);return}r=r||y.create(),l?this.getLocalTransform(r):x(r),e&&(l?y.mul(r,o.transform,r):y.copy(r,o.transform)),this.transform=r;var s=this.globalScaleRatio;if(s!=null&&s!==1){this.getGlobalScale(u);var c=u[0]<0?-1:1,d=u[1]<0?-1:1,g=((u[0]-c)*s+c)/u[0]||0,v=((u[1]-d)*s+d)/u[1]||0;r[0]*=g,r[1]*=g,r[2]*=v,r[3]*=v}this.invTransform=this.invTransform||y.create(),y.invert(this.invTransform,r)},h.getLocalTransform=function(o){return f.getLocalTransform(this,o)},h.setTransform=function(o){var e=this.transform,l=o.dpr||1;e?o.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):o.setTransform(l,0,0,l,0,0)},h.restoreTransform=function(o){var e=o.dpr||1;o.setTransform(e,0,0,e,0,0)};var a=[],i=y.create();h.setLocalTransform=function(o){if(!o)return;var e=o[0]*o[0]+o[1]*o[1],l=o[2]*o[2]+o[3]*o[3],r=this.position,s=this.scale;m(e-1)&&(e=Math.sqrt(e)),m(l-1)&&(l=Math.sqrt(l)),o[0]<0&&(e=-e),o[3]<0&&(l=-l),r[0]=o[4],r[1]=o[5],s[0]=e,s[1]=l,this.rotation=Math.atan2(-o[1]/l,o[0]/e)},h.decomposeTransform=function(){if(!this.transform)return;var o=this.parent,e=this.transform;o&&o.transform&&(y.mul(a,o.invTransform,e),e=a);var l=this.origin;l&&(l[0]||l[1])&&(i[4]=l[0],i[5]=l[1],y.mul(a,e,i),a[4]-=l[0],a[5]-=l[1],e=a),this.setLocalTransform(e)},h.getGlobalScale=function(o){var e=this.transform;return o=o||[],e?(o[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),o[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(o[0]=-o[0]),e[3]<0&&(o[1]=-o[1]),o):(o[0]=1,o[1]=1,o)},h.transformCoordToLocal=function(o,e){var l=[o,e],r=this.invTransform;return r&&p.applyTransform(l,l,r),l},h.transformCoordToGlobal=function(o,e){var l=[o,e],r=this.transform;return r&&p.applyTransform(l,l,r),l},f.getLocalTransform=function(o,e){e=e||[],x(e);var l=o.origin,r=o.scale||[1,1],s=o.rotation||0,c=o.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,n){"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,n){(function(y){var p=n("Kz5y"),x=n("B8du"),A=D&&!D.nodeType&&D,m=A&&typeof y=="object"&&y&&!y.nodeType&&y,f=m&&m.exports===A,h=f?p.Buffer:void 0,u=h?h.isBuffer:void 0,a=u||x;y.exports=a}).call(this,n("YuTi")(k))},DYRE:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("OPEp"),A=n.n(x)},DZo9:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("JGo8"),A=n.n(x),m=n("+L6B"),f=n("MXD1"),h=n("5Dmo")},Dagg:function(k,D,n){var y=n("Gev7"),p=n("mFDi"),x=n("bYtY"),A=n("Xnb7");function m(h){y.call(this,h)}m.prototype={constructor:m,type:"image",brush:function(u,a){var i=this.style,t=i.image;i.bind(u,this,a);var o=this._image=A.createOrUpdateImage(t,this._image,this,this.onload);if(!o||!A.isImageReady(o))return;var e=i.x||0,l=i.y||0,r=i.width,s=i.height,c=o.width/o.height;if(r==null&&s!=null?r=s*c:s==null&&r!=null?s=r/c:r==null&&s==null&&(r=o.width,s=o.height),this.setTransform(u),i.sWidth&&i.sHeight){var d=i.sx||0,g=i.sy||0;u.drawImage(o,d,g,i.sWidth,i.sHeight,e,l,r,s)}else if(i.sx&&i.sy){var d=i.sx,g=i.sy,v=r-d,b=s-g;u.drawImage(o,d,g,v,b,e,l,r,s)}else u.drawImage(o,e,l,r,s);i.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}},x.inherits(m,y);var f=m;k.exports=f},Dg8C:function(k,D,n){var y=n("XxSj"),p=n("bYtY");function x(A,m){A.eachSeriesByType("sankey",function(f){var h=f.getGraph(),u=h.nodes;if(u.length){var a=Infinity,i=-Infinity;p.each(u,function(t){var o=t.getLayout().value;o<a&&(a=o),o>i&&(i=o)}),p.each(u,function(t){var o=new y({type:"color",mappingMethod:"linear",dataExtent:[a,i],visual:f.get("color")}),e=o.mapValueToVisual(t.getLayout().value),l=t.getModel().get("itemStyle.color");l!=null?t.setVisual("color",l):t.setVisual("color",e)})}})}k.exports=x},DjyN:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Urep"),A=n.n(x),m=n("OaEy")},DlQD:function(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(Gt,Pt){for(var Xt=0;Xt<Pt.length;Xt++){var Ge=Pt[Xt];Ge.enumerable=Ge.enumerable||!1,Ge.configurable=!0,"value"in Ge&&(Ge.writable=!0),Object.defineProperty(Gt,Ge.key,Ge)}}function p(Gt,Pt,Xt){return Pt&&y(Gt.prototype,Pt),Xt&&y(Gt,Xt),Gt}function x(Gt,Pt){if(!Gt)return;if(typeof Gt=="string")return A(Gt,Pt);var Xt=Object.prototype.toString.call(Gt).slice(8,-1);if(Xt==="Object"&&Gt.constructor&&(Xt=Gt.constructor.name),Xt==="Map"||Xt==="Set")return Array.from(Gt);if(Xt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xt))return A(Gt,Pt)}function A(Gt,Pt){(Pt==null||Pt>Gt.length)&&(Pt=Gt.length);for(var Xt=0,Ge=new Array(Pt);Xt<Pt;Xt++)Ge[Xt]=Gt[Xt];return Ge}function m(Gt,Pt){var Xt;if(typeof Symbol=="undefined"||Gt[Symbol.iterator]==null){if(Array.isArray(Gt)||(Xt=x(Gt))||Pt&&Gt&&typeof Gt.length=="number"){Xt&&(Gt=Xt);var Ge=0;return function(){return Ge>=Gt.length?{done:!0}:{done:!1,value:Gt[Ge++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Xt=Gt[Symbol.iterator](),Xt.next.bind(Xt)}function f(Gt,Pt){return Pt={exports:{}},Gt(Pt,Pt.exports),Pt.exports}var h=f(function(Gt){function Pt(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Xt(Ge){Gt.exports.defaults=Ge}Gt.exports={defaults:Pt(),getDefaults:Pt,changeDefaults:Xt}}),u=h.defaults,a=h.getDefaults,i=h.changeDefaults,t=/[&<>"']/,o=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=function(Pt){return r[Pt]};function c(Gt,Pt){if(Pt){if(t.test(Gt))return Gt.replace(o,s)}else if(e.test(Gt))return Gt.replace(l,s);return Gt}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(Gt){return Gt.replace(d,function(Pt,Xt){return Xt=Xt.toLowerCase(),Xt==="colon"?":":Xt.charAt(0)==="#"?Xt.charAt(1)==="x"?String.fromCharCode(parseInt(Xt.substring(2),16)):String.fromCharCode(+Xt.substring(1)):""})}var v=/(^|[^\[])\^/g;function b(Gt,Pt){Gt=Gt.source||Gt,Pt=Pt||"";var Xt={replace:function(pe,se){return se=se.source||se,se=se.replace(v,"$1"),Gt=Gt.replace(pe,se),Xt},getRegex:function(){return new RegExp(Gt,Pt)}};return Xt}var S=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(Gt,Pt,Xt){if(Gt){var Ge;try{Ge=decodeURIComponent(g(Xt)).replace(S,"").toLowerCase()}catch(pe){return null}if(Ge.indexOf("javascript:")===0||Ge.indexOf("vbscript:")===0||Ge.indexOf("data:")===0)return null}Pt&&!E.test(Xt)&&(Xt=I(Pt,Xt));try{Xt=encodeURI(Xt).replace(/%25/g,"%")}catch(pe){return null}return Xt}var _={},T=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Gt,Pt){_[" "+Gt]||(T.test(Gt)?_[" "+Gt]=Gt+"/":_[" "+Gt]=P(Gt,"/",!0)),Gt=_[" "+Gt];var Xt=Gt.indexOf(":")===-1;return Pt.substring(0,2)==="//"?Xt?Pt:Gt.replace(w,"$1")+Pt:Pt.charAt(0)==="/"?Xt?Pt:Gt.replace(O,"$1")+Pt:Gt+Pt}var R={exec:function(){}};function M(Gt){for(var Pt=1,Xt,Ge;Pt<arguments.length;Pt++){Xt=arguments[Pt];for(Ge in Xt)Object.prototype.hasOwnProperty.call(Xt,Ge)&&(Gt[Ge]=Xt[Ge])}return Gt}function F(Gt,Pt){var Xt=Gt.replace(/\|/g,function(se,lt,Ze){for(var de=!1,_t=lt;--_t>=0&&Ze[_t]==="\\";)de=!de;return de?"|":" |"}),Ge=Xt.split(/ \|/),pe=0;if(Ge.length>Pt)Ge.splice(Pt);else for(;Ge.length<Pt;)Ge.push("");for(;pe<Ge.length;pe++)Ge[pe]=Ge[pe].trim().replace(/\\\|/g,"|");return Ge}function P(Gt,Pt,Xt){var Ge=Gt.length;if(Ge===0)return"";for(var pe=0;pe<Ge;){var se=Gt.charAt(Ge-pe-1);if(se===Pt&&!Xt)pe++;else if(se!==Pt&&Xt)pe++;else break}return Gt.substr(0,Ge-pe)}function X(Gt,Pt){if(Gt.indexOf(Pt[1])===-1)return-1;for(var Xt=Gt.length,Ge=0,pe=0;pe<Xt;pe++)if(Gt[pe]==="\\")pe++;else if(Gt[pe]===Pt[0])Ge++;else if(Gt[pe]===Pt[1]&&(Ge--,Ge<0))return pe;return-1}function B(Gt){Gt&&Gt.sanitize&&!Gt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var j={escape:c,unescape:g,edit:b,cleanUrl:C,resolveUrl:I,noopTest:R,merge:M,splitCells:F,rtrim:P,findClosingBracket:X,checkSanitizeDeprecation:B},W=h.defaults,z=j.rtrim,V=j.splitCells,Q=j.escape,G=j.findClosingBracket;function re(Gt,Pt,Xt){var Ge=Pt.href,pe=Pt.title?Q(Pt.title):null,se=Gt[1].replace(/\\([\[\]])/g,"$1");return Gt[0].charAt(0)!=="!"?{type:"link",raw:Xt,href:Ge,title:pe,text:se}:{type:"image",raw:Xt,href:Ge,title:pe,text:Q(se)}}function ee(Gt,Pt){var Xt=Gt.match(/^(\s+)(?:```)/);if(Xt===null)return Pt;var Ge=Xt[1];return Pt.split(`
`).map(function(pe){var se=pe.match(/^\s+/);if(se===null)return pe;var lt=se[0];return lt.length>=Ge.length?pe.slice(Ge.length):pe}).join(`
`)}var ue=function(){function Gt(Xt){this.options=Xt||W}var Pt=Gt.prototype;return Pt.space=function(Ge){var pe=this.rules.block.newline.exec(Ge);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:`
`}},Pt.code=function(Ge,pe){var se=this.rules.block.code.exec(Ge);if(se){var lt=pe[pe.length-1];if(lt&&lt.type==="paragraph")return{raw:se[0],text:se[0].trimRight()};var Ze=se[0].replace(/^ {4}/gm,"");return{type:"code",raw:se[0],codeBlockStyle:"indented",text:this.options.pedantic?Ze:z(Ze,`
`)}}},Pt.fences=function(Ge){var pe=this.rules.block.fences.exec(Ge);if(pe){var se=pe[0],lt=ee(se,pe[3]||"");return{type:"code",raw:se,lang:pe[2]?pe[2].trim():pe[2],text:lt}}},Pt.heading=function(Ge){var pe=this.rules.block.heading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},Pt.nptable=function(Ge){var pe=this.rules.block.nptable.exec(Ge);if(pe){var se={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[],raw:pe[0]};if(se.header.length===se.align.length){var lt=se.align.length,Ze;for(Ze=0;Ze<lt;Ze++)/^ *-+: *$/.test(se.align[Ze])?se.align[Ze]="right":/^ *:-+: *$/.test(se.align[Ze])?se.align[Ze]="center":/^ *:-+ *$/.test(se.align[Ze])?se.align[Ze]="left":se.align[Ze]=null;for(lt=se.cells.length,Ze=0;Ze<lt;Ze++)se.cells[Ze]=V(se.cells[Ze],se.header.length);return se}}},Pt.hr=function(Ge){var pe=this.rules.block.hr.exec(Ge);if(pe)return{type:"hr",raw:pe[0]}},Pt.blockquote=function(Ge){var pe=this.rules.block.blockquote.exec(Ge);if(pe){var se=pe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pe[0],text:se}}},Pt.list=function(Ge){var pe=this.rules.block.list.exec(Ge);if(pe){for(var se=pe[0],lt=pe[2],Ze=lt.length>1,de=lt[lt.length-1]===")",_t={type:"list",raw:se,ordered:Ze,start:Ze?+lt.slice(0,-1):"",loose:!1,items:[]},er=pe[0].match(this.rules.block.item),yt=!1,Ar,Sr,Cn,mr,Pr,gr,Jt,Dt=er.length,dn=0;dn<Dt;dn++)Ar=er[dn],se=Ar,Sr=Ar.length,Ar=Ar.replace(/^ *([*+-]|\d+[.)]) */,""),~Ar.indexOf(`
`)&&(Sr-=Ar.length,Ar=this.options.pedantic?Ar.replace(/^ {1,4}/gm,""):Ar.replace(new RegExp("^ {1,"+Sr+"}","gm"),"")),dn!==Dt-1&&(Cn=this.rules.block.bullet.exec(er[dn+1])[0],(Ze?Cn.length===1||!de&&Cn[Cn.length-1]===")":Cn.length>1||this.options.smartLists&&Cn!==lt)&&(mr=er.slice(dn+1).join(`
`),_t.raw=_t.raw.substring(0,_t.raw.length-mr.length),dn=Dt-1)),Pr=yt||/\n\n(?!\s*$)/.test(Ar),dn!==Dt-1&&(yt=Ar.charAt(Ar.length-1)===`
`,Pr||(Pr=yt)),Pr&&(_t.loose=!0),gr=/^\[[ xX]\] /.test(Ar),Jt=void 0,gr&&(Jt=Ar[1]!==" ",Ar=Ar.replace(/^\[[ xX]\] +/,"")),_t.items.push({type:"list_item",raw:se,task:gr,checked:Jt,loose:Pr,text:Ar});return _t}},Pt.html=function(Ge){var pe=this.rules.block.html.exec(Ge);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):Q(pe[0]):pe[0]}},Pt.def=function(Ge){var pe=this.rules.block.def.exec(Ge);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var se=pe[1].toLowerCase().replace(/\s+/g," ");return{tag:se,raw:pe[0],href:pe[2],title:pe[3]}}},Pt.table=function(Ge){var pe=this.rules.block.table.exec(Ge);if(pe){var se={type:"table",header:V(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[]};if(se.header.length===se.align.length){se.raw=pe[0];var lt=se.align.length,Ze;for(Ze=0;Ze<lt;Ze++)/^ *-+: *$/.test(se.align[Ze])?se.align[Ze]="right":/^ *:-+: *$/.test(se.align[Ze])?se.align[Ze]="center":/^ *:-+ *$/.test(se.align[Ze])?se.align[Ze]="left":se.align[Ze]=null;for(lt=se.cells.length,Ze=0;Ze<lt;Ze++)se.cells[Ze]=V(se.cells[Ze].replace(/^ *\| *| *\| *$/g,""),se.header.length);return se}}},Pt.lheading=function(Ge){var pe=this.rules.block.lheading.exec(Ge);if(pe)return{type:"heading",raw:pe[0],depth:pe[2].charAt(0)==="="?1:2,text:pe[1]}},Pt.paragraph=function(Ge){var pe=this.rules.block.paragraph.exec(Ge);if(pe)return{type:"paragraph",raw:pe[0],text:pe[1].charAt(pe[1].length-1)===`
`?pe[1].slice(0,-1):pe[1]}},Pt.text=function(Ge,pe){var se=this.rules.block.text.exec(Ge);if(se){var lt=pe[pe.length-1];return lt&&lt.type==="text"?{raw:se[0],text:se[0]}:{type:"text",raw:se[0],text:se[0]}}},Pt.escape=function(Ge){var pe=this.rules.inline.escape.exec(Ge);if(pe)return{type:"escape",raw:pe[0],text:Q(pe[1])}},Pt.tag=function(Ge,pe,se){var lt=this.rules.inline.tag.exec(Ge);if(lt)return!pe&&/^<a /i.test(lt[0])?pe=!0:pe&&/^<\/a>/i.test(lt[0])&&(pe=!1),!se&&/^<(pre|code|kbd|script)(\s|>)/i.test(lt[0])?se=!0:se&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(lt[0])&&(se=!1),{type:this.options.sanitize?"text":"html",raw:lt[0],inLink:pe,inRawBlock:se,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]}},Pt.link=function(Ge){var pe=this.rules.inline.link.exec(Ge);if(pe){var se=G(pe[2],"()");if(se>-1){var lt=pe[0].indexOf("!")===0?5:4,Ze=lt+pe[1].length+se;pe[2]=pe[2].substring(0,se),pe[0]=pe[0].substring(0,Ze).trim(),pe[3]=""}var de=pe[2],_t="";if(this.options.pedantic){var er=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(de);er?(de=er[1],_t=er[3]):_t=""}else _t=pe[3]?pe[3].slice(1,-1):"";de=de.trim().replace(/^<([\s\S]*)>$/,"$1");var yt=re(pe,{href:de&&de.replace(this.rules.inline._escapes,"$1"),title:_t&&_t.replace(this.rules.inline._escapes,"$1")},pe[0]);return yt}},Pt.reflink=function(Ge,pe){var se;if((se=this.rules.inline.reflink.exec(Ge))||(se=this.rules.inline.nolink.exec(Ge))){var lt=(se[2]||se[1]).replace(/\s+/g," ");if(lt=pe[lt.toLowerCase()],!lt||!lt.href){var Ze=se[0].charAt(0);return{type:"text",raw:Ze,text:Ze}}var de=re(se,lt,se[0]);return de}},Pt.strong=function(Ge,pe,se){se===void 0&&(se="");var lt=this.rules.inline.strong.start.exec(Ge);if(lt&&(!lt[1]||lt[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){pe=pe.slice(-1*Ge.length);var Ze=lt[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ze.lastIndex=0;for(var de;(lt=Ze.exec(pe))!=null;)if(de=this.rules.inline.strong.middle.exec(pe.slice(0,lt.index+3)),de)return{type:"strong",raw:Ge.slice(0,de[0].length),text:Ge.slice(2,de[0].length-2)}}},Pt.em=function(Ge,pe,se){se===void 0&&(se="");var lt=this.rules.inline.em.start.exec(Ge);if(lt&&(!lt[1]||lt[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){pe=pe.slice(-1*Ge.length);var Ze=lt[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ze.lastIndex=0;for(var de;(lt=Ze.exec(pe))!=null;)if(de=this.rules.inline.em.middle.exec(pe.slice(0,lt.index+2)),de)return{type:"em",raw:Ge.slice(0,de[0].length),text:Ge.slice(1,de[0].length-1)}}},Pt.codespan=function(Ge){var pe=this.rules.inline.code.exec(Ge);if(pe){var se=pe[2].replace(/\n/g," "),lt=/[^ ]/.test(se),Ze=se.startsWith(" ")&&se.endsWith(" ");return lt&&Ze&&(se=se.substring(1,se.length-1)),se=Q(se,!0),{type:"codespan",raw:pe[0],text:se}}},Pt.br=function(Ge){var pe=this.rules.inline.br.exec(Ge);if(pe)return{type:"br",raw:pe[0]}},Pt.del=function(Ge){var pe=this.rules.inline.del.exec(Ge);if(pe)return{type:"del",raw:pe[0],text:pe[1]}},Pt.autolink=function(Ge,pe){var se=this.rules.inline.autolink.exec(Ge);if(se){var lt,Ze;return se[2]==="@"?(lt=Q(this.options.mangle?pe(se[1]):se[1]),Ze="mailto:"+lt):(lt=Q(se[1]),Ze=lt),{type:"link",raw:se[0],text:lt,href:Ze,tokens:[{type:"text",raw:lt,text:lt}]}}},Pt.url=function(Ge,pe){var se;if(se=this.rules.inline.url.exec(Ge)){var lt,Ze;if(se[2]==="@")lt=Q(this.options.mangle?pe(se[0]):se[0]),Ze="mailto:"+lt;else{var de;do de=se[0],se[0]=this.rules.inline._backpedal.exec(se[0])[0];while(de!==se[0]);lt=Q(se[0]),se[1]==="www."?Ze="http://"+lt:Ze=lt}return{type:"link",raw:se[0],text:lt,href:Ze,tokens:[{type:"text",raw:lt,text:lt}]}}},Pt.inlineText=function(Ge,pe,se){var lt=this.rules.inline.text.exec(Ge);if(lt){var Ze;return pe?Ze=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]:Ze=Q(this.options.smartypants?se(lt[0]):lt[0]),{type:"text",raw:lt[0],text:Ze}}},Gt}(),$=j.noopTest,be=j.edit,_e=j.merge,Ee={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:$,table:$,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ee._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ee._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ee.def=be(Ee.def).replace("label",Ee._label).replace("title",Ee._title).getRegex(),Ee.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ee.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ee.item=be(Ee.item,"gm").replace(/bull/g,Ee.bullet).getRegex(),Ee.list=be(Ee.list).replace(/bull/g,Ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ee.def.source+")").getRegex(),Ee._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ee._comment=/<!--(?!-?>)[\s\S]*?-->/,Ee.html=be(Ee.html,"i").replace("comment",Ee._comment).replace("tag",Ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ee.paragraph=be(Ee._paragraph).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ee._tag).getRegex(),Ee.blockquote=be(Ee.blockquote).replace("paragraph",Ee.paragraph).getRegex(),Ee.normal=_e({},Ee),Ee.gfm=_e({},Ee.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ee.gfm.nptable=be(Ee.gfm.nptable).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ee._tag).getRegex(),Ee.gfm.table=be(Ee.gfm.table).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ee._tag).getRegex(),Ee.pedantic=_e({},Ee.normal,{html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ee._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:$,paragraph:be(Ee.normal._paragraph).replace("hr",Ee.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ee.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Xe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:$,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:$,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Xe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Xe.punctuation=be(Xe.punctuation).replace(/punctuation/g,Xe._punctuation).getRegex(),Xe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Xe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Xe.em.start=be(Xe.em.start).replace(/punctuation/g,Xe._punctuation).getRegex(),Xe.em.middle=be(Xe.em.middle).replace(/punctuation/g,Xe._punctuation).replace(/overlapSkip/g,Xe._overlapSkip).getRegex(),Xe.em.endAst=be(Xe.em.endAst,"g").replace(/punctuation/g,Xe._punctuation).getRegex(),Xe.em.endUnd=be(Xe.em.endUnd,"g").replace(/punctuation/g,Xe._punctuation).getRegex(),Xe.strong.start=be(Xe.strong.start).replace(/punctuation/g,Xe._punctuation).getRegex(),Xe.strong.middle=be(Xe.strong.middle).replace(/punctuation/g,Xe._punctuation).replace(/blockSkip/g,Xe._blockSkip).getRegex(),Xe.strong.endAst=be(Xe.strong.endAst,"g").replace(/punctuation/g,Xe._punctuation).getRegex(),Xe.strong.endUnd=be(Xe.strong.endUnd,"g").replace(/punctuation/g,Xe._punctuation).getRegex(),Xe.blockSkip=be(Xe._blockSkip,"g").getRegex(),Xe.overlapSkip=be(Xe._overlapSkip,"g").getRegex(),Xe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Xe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Xe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Xe.autolink=be(Xe.autolink).replace("scheme",Xe._scheme).replace("email",Xe._email).getRegex(),Xe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Xe.tag=be(Xe.tag).replace("comment",Ee._comment).replace("attribute",Xe._attribute).getRegex(),Xe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Xe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Xe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Xe.link=be(Xe.link).replace("label",Xe._label).replace("href",Xe._href).replace("title",Xe._title).getRegex(),Xe.reflink=be(Xe.reflink).replace("label",Xe._label).getRegex(),Xe.reflinkSearch=be(Xe.reflinkSearch,"g").replace("reflink",Xe.reflink).replace("nolink",Xe.nolink).getRegex(),Xe.normal=_e({},Xe),Xe.pedantic=_e({},Xe.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",Xe._label).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xe._label).getRegex()}),Xe.gfm=_e({},Xe.normal,{escape:be(Xe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),Xe.gfm.url=be(Xe.gfm.url,"i").replace("email",Xe.gfm._extended_email).getRegex(),Xe.breaks=_e({},Xe.gfm,{br:be(Xe.br).replace("{2,}","*").getRegex(),text:be(Xe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var He={block:Ee,inline:Xe},nt=h.defaults,Ie=He.block,oe=He.inline;function ot(Gt){return Gt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function he(Gt){var Pt="",Xt,Ge,pe=Gt.length;for(Xt=0;Xt<pe;Xt++)Ge=Gt.charCodeAt(Xt),Math.random()>.5&&(Ge="x"+Ge.toString(16)),Pt+="&#"+Ge+";";return Pt}var J=function(){function Gt(Xt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Xt||nt,this.options.tokenizer=this.options.tokenizer||new ue,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ge={block:Ie.normal,inline:oe.normal};this.options.pedantic?(Ge.block=Ie.pedantic,Ge.inline=oe.pedantic):this.options.gfm&&(Ge.block=Ie.gfm,this.options.breaks?Ge.inline=oe.breaks:Ge.inline=oe.gfm),this.tokenizer.rules=Ge}Gt.lex=function(Ge,pe){var se=new Gt(pe);return se.lex(Ge)};var Pt=Gt.prototype;return Pt.lex=function(Ge){return Ge=Ge.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ge,this.tokens,!0),this.inline(this.tokens),this.tokens},Pt.blockTokens=function(Ge,pe,se){pe===void 0&&(pe=[]),se===void 0&&(se=!0),Ge=Ge.replace(/^ +$/gm,"");for(var lt,Ze,de,_t;Ge;){if(lt=this.tokenizer.space(Ge)){Ge=Ge.substring(lt.raw.length),lt.type&&pe.push(lt);continue}if(lt=this.tokenizer.code(Ge,pe)){Ge=Ge.substring(lt.raw.length),lt.type?pe.push(lt):(_t=pe[pe.length-1],_t.raw+=`
`+lt.raw,_t.text+=`
`+lt.text);continue}if(lt=this.tokenizer.fences(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.heading(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.nptable(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.hr(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.blockquote(Ge)){Ge=Ge.substring(lt.raw.length),lt.tokens=this.blockTokens(lt.text,[],se),pe.push(lt);continue}if(lt=this.tokenizer.list(Ge)){for(Ge=Ge.substring(lt.raw.length),de=lt.items.length,Ze=0;Ze<de;Ze++)lt.items[Ze].tokens=this.blockTokens(lt.items[Ze].text,[],!1);pe.push(lt);continue}if(lt=this.tokenizer.html(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(se&&(lt=this.tokenizer.def(Ge))){Ge=Ge.substring(lt.raw.length),this.tokens.links[lt.tag]||(this.tokens.links[lt.tag]={href:lt.href,title:lt.title});continue}if(lt=this.tokenizer.table(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.lheading(Ge)){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(se&&(lt=this.tokenizer.paragraph(Ge))){Ge=Ge.substring(lt.raw.length),pe.push(lt);continue}if(lt=this.tokenizer.text(Ge,pe)){Ge=Ge.substring(lt.raw.length),lt.type?pe.push(lt):(_t=pe[pe.length-1],_t.raw+=`
`+lt.raw,_t.text+=`
`+lt.text);continue}if(Ge){var er="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(er);break}else throw new Error(er)}}return pe},Pt.inline=function(Ge){var pe,se,lt,Ze,de,_t,er=Ge.length;for(pe=0;pe<er;pe++){_t=Ge[pe];switch(_t.type){case"paragraph":case"text":case"heading":{_t.tokens=[],this.inlineTokens(_t.text,_t.tokens);break}case"table":{for(_t.tokens={header:[],cells:[]},Ze=_t.header.length,se=0;se<Ze;se++)_t.tokens.header[se]=[],this.inlineTokens(_t.header[se],_t.tokens.header[se]);for(Ze=_t.cells.length,se=0;se<Ze;se++)for(de=_t.cells[se],_t.tokens.cells[se]=[],lt=0;lt<de.length;lt++)_t.tokens.cells[se][lt]=[],this.inlineTokens(de[lt],_t.tokens.cells[se][lt]);break}case"blockquote":{this.inline(_t.tokens);break}case"list":{for(Ze=_t.items.length,se=0;se<Ze;se++)this.inline(_t.items[se].tokens);break}}}return Ge},Pt.inlineTokens=function(Ge,pe,se,lt,Ze){pe===void 0&&(pe=[]),se===void 0&&(se=!1),lt===void 0&&(lt=!1),Ze===void 0&&(Ze="");var de,_t=Ge,er;if(this.tokens.links){var yt=Object.keys(this.tokens.links);if(yt.length>0)for(;(er=this.tokenizer.rules.inline.reflinkSearch.exec(_t))!=null;)yt.includes(er[0].slice(er[0].lastIndexOf("[")+1,-1))&&(_t=_t.slice(0,er.index)+"["+"a".repeat(er[0].length-2)+"]"+_t.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(er=this.tokenizer.rules.inline.blockSkip.exec(_t))!=null;)_t=_t.slice(0,er.index)+"["+"a".repeat(er[0].length-2)+"]"+_t.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ge;){if(de=this.tokenizer.escape(Ge)){Ge=Ge.substring(de.raw.length),pe.push(de);continue}if(de=this.tokenizer.tag(Ge,se,lt)){Ge=Ge.substring(de.raw.length),se=de.inLink,lt=de.inRawBlock,pe.push(de);continue}if(de=this.tokenizer.link(Ge)){Ge=Ge.substring(de.raw.length),de.type==="link"&&(de.tokens=this.inlineTokens(de.text,[],!0,lt)),pe.push(de);continue}if(de=this.tokenizer.reflink(Ge,this.tokens.links)){Ge=Ge.substring(de.raw.length),de.type==="link"&&(de.tokens=this.inlineTokens(de.text,[],!0,lt)),pe.push(de);continue}if(de=this.tokenizer.strong(Ge,_t,Ze)){Ge=Ge.substring(de.raw.length),de.tokens=this.inlineTokens(de.text,[],se,lt),pe.push(de);continue}if(de=this.tokenizer.em(Ge,_t,Ze)){Ge=Ge.substring(de.raw.length),de.tokens=this.inlineTokens(de.text,[],se,lt),pe.push(de);continue}if(de=this.tokenizer.codespan(Ge)){Ge=Ge.substring(de.raw.length),pe.push(de);continue}if(de=this.tokenizer.br(Ge)){Ge=Ge.substring(de.raw.length),pe.push(de);continue}if(de=this.tokenizer.del(Ge)){Ge=Ge.substring(de.raw.length),de.tokens=this.inlineTokens(de.text,[],se,lt),pe.push(de);continue}if(de=this.tokenizer.autolink(Ge,he)){Ge=Ge.substring(de.raw.length),pe.push(de);continue}if(!se&&(de=this.tokenizer.url(Ge,he))){Ge=Ge.substring(de.raw.length),pe.push(de);continue}if(de=this.tokenizer.inlineText(Ge,lt,ot)){Ge=Ge.substring(de.raw.length),Ze=de.raw.slice(-1),pe.push(de);continue}if(Ge){var Ar="Infinite loop on byte: "+Ge.charCodeAt(0);if(this.options.silent){console.error(Ar);break}else throw new Error(Ar)}}return pe},p(Gt,null,[{key:"rules",get:function(){return{block:Ie,inline:oe}}}]),Gt}(),Y=h.defaults,q=j.cleanUrl,fe=j.escape,we=function(){function Gt(Xt){this.options=Xt||Y}var Pt=Gt.prototype;return Pt.code=function(Ge,pe,se){var lt=(pe||"").match(/\S*/)[0];if(this.options.highlight){var Ze=this.options.highlight(Ge,lt);Ze!=null&&Ze!==Ge&&(se=!0,Ge=Ze)}return lt?'<pre><code class="'+this.options.langPrefix+fe(lt,!0)+'">'+(se?Ge:fe(Ge,!0))+`</code></pre>
`:"<pre><code>"+(se?Ge:fe(Ge,!0))+`</code></pre>
`},Pt.blockquote=function(Ge){return`<blockquote>
`+Ge+`</blockquote>
`},Pt.html=function(Ge){return Ge},Pt.heading=function(Ge,pe,se,lt){return this.options.headerIds?"<h"+pe+' id="'+this.options.headerPrefix+lt.slug(se)+'">'+Ge+"</h"+pe+`>
`:"<h"+pe+">"+Ge+"</h"+pe+`>
`},Pt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Pt.list=function(Ge,pe,se){var lt=pe?"ol":"ul",Ze=pe&&se!==1?' start="'+se+'"':"";return"<"+lt+Ze+`>
`+Ge+"</"+lt+`>
`},Pt.listitem=function(Ge){return"<li>"+Ge+`</li>
`},Pt.checkbox=function(Ge){return"<input "+(Ge?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Pt.paragraph=function(Ge){return"<p>"+Ge+`</p>
`},Pt.table=function(Ge,pe){return pe&&(pe="<tbody>"+pe+"</tbody>"),`<table>
<thead>
`+Ge+`</thead>
`+pe+`</table>
`},Pt.tablerow=function(Ge){return`<tr>
`+Ge+`</tr>
`},Pt.tablecell=function(Ge,pe){var se=pe.header?"th":"td",lt=pe.align?"<"+se+' align="'+pe.align+'">':"<"+se+">";return lt+Ge+"</"+se+`>
`},Pt.strong=function(Ge){return"<strong>"+Ge+"</strong>"},Pt.em=function(Ge){return"<em>"+Ge+"</em>"},Pt.codespan=function(Ge){return"<code>"+Ge+"</code>"},Pt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Pt.del=function(Ge){return"<del>"+Ge+"</del>"},Pt.link=function(Ge,pe,se){if(Ge=q(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return se;var lt='<a href="'+fe(Ge)+'"';return pe&&(lt+=' title="'+pe+'"'),lt+=">"+se+"</a>",lt},Pt.image=function(Ge,pe,se){if(Ge=q(this.options.sanitize,this.options.baseUrl,Ge),Ge===null)return se;var lt='<img src="'+Ge+'" alt="'+se+'"';return pe&&(lt+=' title="'+pe+'"'),lt+=this.options.xhtml?"/>":">",lt},Pt.text=function(Ge){return Ge},Gt}(),Ne=function(){function Gt(){}var Pt=Gt.prototype;return Pt.strong=function(Ge){return Ge},Pt.em=function(Ge){return Ge},Pt.codespan=function(Ge){return Ge},Pt.del=function(Ge){return Ge},Pt.html=function(Ge){return Ge},Pt.text=function(Ge){return Ge},Pt.link=function(Ge,pe,se){return""+se},Pt.image=function(Ge,pe,se){return""+se},Pt.br=function(){return""},Gt}(),je=function(){function Gt(){this.seen={}}var Pt=Gt.prototype;return Pt.slug=function(Ge){var pe=Ge.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(pe)){var se=pe;do this.seen[se]++,pe=se+"-"+this.seen[se];while(this.seen.hasOwnProperty(pe))}return this.seen[pe]=0,pe},Gt}(),me=h.defaults,Ce=j.unescape,Fe=function(){function Gt(Xt){this.options=Xt||me,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ne,this.slugger=new je}Gt.parse=function(Ge,pe){var se=new Gt(pe);return se.parse(Ge)};var Pt=Gt.prototype;return Pt.parse=function(Ge,pe){pe===void 0&&(pe=!0);var se="",lt,Ze,de,_t,er,yt,Ar,Sr,Cn,mr,Pr,gr,Jt,Dt,dn,Fn,Zn,ci,Xi=Ge.length;for(lt=0;lt<Xi;lt++){mr=Ge[lt];switch(mr.type){case"space":continue;case"hr":{se+=this.renderer.hr();continue}case"heading":{se+=this.renderer.heading(this.parseInline(mr.tokens),mr.depth,Ce(this.parseInline(mr.tokens,this.textRenderer)),this.slugger);continue}case"code":{se+=this.renderer.code(mr.text,mr.lang,mr.escaped);continue}case"table":{for(Sr="",Ar="",_t=mr.header.length,Ze=0;Ze<_t;Ze++)Ar+=this.renderer.tablecell(this.parseInline(mr.tokens.header[Ze]),{header:!0,align:mr.align[Ze]});for(Sr+=this.renderer.tablerow(Ar),Cn="",_t=mr.cells.length,Ze=0;Ze<_t;Ze++){for(yt=mr.tokens.cells[Ze],Ar="",er=yt.length,de=0;de<er;de++)Ar+=this.renderer.tablecell(this.parseInline(yt[de]),{header:!1,align:mr.align[de]});Cn+=this.renderer.tablerow(Ar)}se+=this.renderer.table(Sr,Cn);continue}case"blockquote":{Cn=this.parse(mr.tokens),se+=this.renderer.blockquote(Cn);continue}case"list":{for(Pr=mr.ordered,gr=mr.start,Jt=mr.loose,_t=mr.items.length,Cn="",Ze=0;Ze<_t;Ze++)dn=mr.items[Ze],Fn=dn.checked,Zn=dn.task,Dt="",dn.task&&(ci=this.renderer.checkbox(Fn),Jt?dn.tokens.length>0&&dn.tokens[0].type==="text"?(dn.tokens[0].text=ci+" "+dn.tokens[0].text,dn.tokens[0].tokens&&dn.tokens[0].tokens.length>0&&dn.tokens[0].tokens[0].type==="text"&&(dn.tokens[0].tokens[0].text=ci+" "+dn.tokens[0].tokens[0].text)):dn.tokens.unshift({type:"text",text:ci}):Dt+=ci),Dt+=this.parse(dn.tokens,Jt),Cn+=this.renderer.listitem(Dt,Zn,Fn);se+=this.renderer.list(Cn,Pr,gr);continue}case"html":{se+=this.renderer.html(mr.text);continue}case"paragraph":{se+=this.renderer.paragraph(this.parseInline(mr.tokens));continue}case"text":{for(Cn=mr.tokens?this.parseInline(mr.tokens):mr.text;lt+1<Xi&&Ge[lt+1].type==="text";)mr=Ge[++lt],Cn+=`
`+(mr.tokens?this.parseInline(mr.tokens):mr.text);se+=pe?this.renderer.paragraph(Cn):Cn;continue}default:{var Gn='Token with "'+mr.type+'" type was not found.';if(this.options.silent){console.error(Gn);return}else throw new Error(Gn)}}}return se},Pt.parseInline=function(Ge,pe){pe=pe||this.renderer;var se="",lt,Ze,de=Ge.length;for(lt=0;lt<de;lt++){Ze=Ge[lt];switch(Ze.type){case"escape":{se+=pe.text(Ze.text);break}case"html":{se+=pe.html(Ze.text);break}case"link":{se+=pe.link(Ze.href,Ze.title,this.parseInline(Ze.tokens,pe));break}case"image":{se+=pe.image(Ze.href,Ze.title,Ze.text);break}case"strong":{se+=pe.strong(this.parseInline(Ze.tokens,pe));break}case"em":{se+=pe.em(this.parseInline(Ze.tokens,pe));break}case"codespan":{se+=pe.codespan(Ze.text);break}case"br":{se+=pe.br();break}case"del":{se+=pe.del(this.parseInline(Ze.tokens,pe));break}case"text":{se+=pe.text(Ze.text);break}default:{var _t='Token with "'+Ze.type+'" type was not found.';if(this.options.silent){console.error(_t);return}else throw new Error(_t)}}}return se},Gt}(),it=j.merge,Ct=j.checkSanitizeDeprecation,mt=j.escape,Ve=h.getDefaults,or=h.changeDefaults,dt=h.defaults;function Yt(Gt,Pt,Xt){if(typeof Gt=="undefined"||Gt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Gt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Gt)+", string expected");if(typeof Pt=="function"&&(Xt=Pt,Pt=null),Pt=it({},Yt.defaults,Pt||{}),Ct(Pt),Xt){var Ge=Pt.highlight,pe;try{pe=J.lex(Gt,Pt)}catch(de){return Xt(de)}var se=function(_t){var er;if(!_t)try{er=Fe.parse(pe,Pt)}catch(yt){_t=yt}return Pt.highlight=Ge,_t?Xt(_t):Xt(null,er)};if(!Ge||Ge.length<3)return se();if(delete Pt.highlight,!pe.length)return se();var lt=0;Yt.walkTokens(pe,function(de){de.type==="code"&&(lt++,setTimeout(function(){Ge(de.text,de.lang,function(_t,er){if(_t)return se(_t);er!=null&&er!==de.text&&(de.text=er,de.escaped=!0),lt--,lt===0&&se()})},0))}),lt===0&&se();return}try{var Ze=J.lex(Gt,Pt);return Pt.walkTokens&&Yt.walkTokens(Ze,Pt.walkTokens),Fe.parse(Ze,Pt)}catch(de){if(de.message+=`
Please report this to https://github.com/markedjs/marked.`,Pt.silent)return"<p>An error occurred:</p><pre>"+mt(de.message+"",!0)+"</pre>";throw de}}Yt.options=Yt.setOptions=function(Gt){return it(Yt.defaults,Gt),or(Yt.defaults),Yt},Yt.getDefaults=Ve,Yt.defaults=dt,Yt.use=function(Gt){var Pt=it({},Gt);if(Gt.renderer&&function(){var Ge=Yt.defaults.renderer||new we,pe=function(Ze){var de=Ge[Ze];Ge[Ze]=function(){for(var _t=arguments.length,er=new Array(_t),yt=0;yt<_t;yt++)er[yt]=arguments[yt];var Ar=Gt.renderer[Ze].apply(Ge,er);return Ar===!1&&(Ar=de.apply(Ge,er)),Ar}};for(var se in Gt.renderer)pe(se);Pt.renderer=Ge}(),Gt.tokenizer&&function(){var Ge=Yt.defaults.tokenizer||new ue,pe=function(Ze){var de=Ge[Ze];Ge[Ze]=function(){for(var _t=arguments.length,er=new Array(_t),yt=0;yt<_t;yt++)er[yt]=arguments[yt];var Ar=Gt.tokenizer[Ze].apply(Ge,er);return Ar===!1&&(Ar=de.apply(Ge,er)),Ar}};for(var se in Gt.tokenizer)pe(se);Pt.tokenizer=Ge}(),Gt.walkTokens){var Xt=Yt.defaults.walkTokens;Pt.walkTokens=function(Ge){Gt.walkTokens(Ge),Xt&&Xt(Ge)}}Yt.setOptions(Pt)},Yt.walkTokens=function(Gt,Pt){for(var Xt=m(Gt),Ge;!(Ge=Xt()).done;){var pe=Ge.value;Pt(pe);switch(pe.type){case"table":{for(var se=m(pe.tokens.header),lt;!(lt=se()).done;){var Ze=lt.value;Yt.walkTokens(Ze,Pt)}for(var de=m(pe.tokens.cells),_t;!(_t=de()).done;)for(var er=_t.value,yt=m(er),Ar;!(Ar=yt()).done;){var Sr=Ar.value;Yt.walkTokens(Sr,Pt)}break}case"list":{Yt.walkTokens(pe.items,Pt);break}default:pe.tokens&&Yt.walkTokens(pe.tokens,Pt)}}},Yt.Parser=Fe,Yt.parser=Fe.parse,Yt.Renderer=we,Yt.TextRenderer=Ne,Yt.Lexer=J,Yt.lexer=J.lex,Yt.Tokenizer=ue,Yt.Slugger=je,Yt.parse=Yt;var hr=Yt;return hr})},"DlR+":function(k,D,n){var y=n("MFOe"),p=y.Global,x=y.trim;k.exports={name:"cookieStorage",read:m,write:h,each:f,remove:u,clearAll:a};var A=p.document;function m(t){if(!t||!i(t))return null;var o="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(A.cookie.replace(new RegExp(o),"$1"))}function f(t){for(var o=A.cookie.split(/; ?/g),e=o.length-1;e>=0;e--){if(!x(o[e]))continue;var l=o[e].split("="),r=unescape(l[0]),s=unescape(l[1]);t(s,r)}}function h(t,o){if(!t)return;A.cookie=escape(t)+"="+escape(o)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function u(t){if(!t||!i(t))return;A.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function a(){f(function(t,o){u(o)})}function i(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(A.cookie)}},Ducp:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+TT/"),A=n("XpcN"),m=p.Group,f=["width","height"],h=["x","y"],u=A.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new m),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new m),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(i,t,o,e,l,r,s){var c=this;u.superCall(this,"renderInner",i,t,o,e,l,r,s);var d=this._controllerGroup,g=t.get("pageIconSize",!0);y.isArray(g)||(g=[g,g]),b("pagePrev",0);var v=t.getModel("pageTextStyle");d.add(new p.Text({name:"pageText",style:{textFill:v.getTextColor(),font:v.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(S,E){var C=S+"DataIndex",_=p.createIcon(t.get("pageIcons",!0)[t.getOrient().name][E],{onclick:y.bind(c._pageGo,c,C,t,e)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});_.name=S,d.add(_)}},layoutInner:function(i,t,o,e,l,r){var s=this.getSelectorGroup(),c=i.getOrient().index,d=f[c],g=h[c],v=f[1-c],b=h[1-c];l&&x.box("horizontal",s,i.get("selectorItemGap",!0));var S=i.get("selectorButtonGap",!0),E=s.getBoundingRect(),C=[-E.x,-E.y],_=y.clone(o);l&&(_[d]=o[d]-E[d]-S);var T=this._layoutContentAndController(i,e,_,c,d,v,b);if(l){if(r==="end")C[c]+=T[d]+S;else{var w=E[d]+S;C[c]-=w,T[g]-=w}T[d]+=E[d]+S,C[1-c]+=T[b]+T[v]/2-E[v]/2,T[v]=Math.max(T[v],E[v]),T[b]=Math.min(T[b],E[b]+C[1-c]),s.attr("position",C)}return T},_layoutContentAndController:function(i,t,o,e,l,r,s){var c=this.getContentGroup(),d=this._containerGroup,g=this._controllerGroup;x.box(i.get("orient"),c,i.get("itemGap"),e?o.width:null,e?null:o.height),x.box("horizontal",g,i.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),b=g.getBoundingRect(),S=this._showController=v[l]>o[l],E=[-v.x,-v.y];t||(E[e]=c.position[e]);var C=[0,0],_=[-b.x,-b.y],T=y.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(S){var w=i.get("pageButtonPosition",!0);w==="end"?_[e]+=o[l]-b[l]:C[e]+=b[l]+T}_[1-e]+=v[r]/2-b[r]/2,c.attr("position",E),d.attr("position",C),g.attr("position",_);var O={x:0,y:0};if(O[l]=S?o[l]:v[l],O[r]=Math.max(v[r],b[r]),O[s]=Math.min(0,b[s]+_[1-e]),d.__rectSize=o[l],S){var I={x:0,y:0};I[l]=Math.max(o[l]-b[l]-T,0),I[r]=O[r],d.setClipPath(new p.Rect({shape:I})),d.__rectSize=I[l]}else g.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var R=this._getPageInfo(i);return R.pageIndex!=null&&p.updateProps(c,{position:R.contentPosition},S?i:!1),this._updatePageInfoView(i,R),O},_pageGo:function(i,t,o){var e=this._getPageInfo(t)[i];e!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(i,t){var o=this._controllerGroup;y.each(["pagePrev","pageNext"],function(d){var g=t[d+"DataIndex"]!=null,v=o.childOfName(d);v&&(v.setStyle("fill",g?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),v.cursor=g?"pointer":"default")});var e=o.childOfName("pageText"),l=i.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(i){var t=i.get("scrollDataIndex",!0),o=this.getContentGroup(),e=this._containerGroup.__rectSize,l=i.getOrient().index,r=f[l],s=h[l],c=this._findTargetItemIndex(t),d=o.children(),g=d[c],v=d.length,b=v?1:0,S={contentPosition:o.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return S;var E=O(g);S.contentPosition[l]=-E.s;for(var C=c+1,_=E,T=E,w=null;C<=v;++C)w=O(d[C]),(!w&&T.e>_.s+e||w&&!I(w,_.s))&&(T.i>_.i?_=T:_=w,_&&(S.pageNextDataIndex==null&&(S.pageNextDataIndex=_.i),++S.pageCount)),T=w;for(var C=c-1,_=E,T=E,w=null;C>=-1;--C)w=O(d[C]),(!w||!I(T,w.s))&&_.i<T.i&&(T=_,S.pagePrevDataIndex==null&&(S.pagePrevDataIndex=_.i),++S.pageCount,++S.pageIndex),_=w;return S;function O(R){if(R){var M=R.getBoundingRect(),F=M[s]+R.position[l];return{s:F,e:F+M[r],i:R.__legendDataIndex}}}function I(R,M){return R.e>=M&&R.s<=M+e}},_findTargetItemIndex:function(i){if(!this._showController)return 0;var t,o=this.getContentGroup(),e;return o.eachChild(function(l,r){var s=l.__legendDataIndex;e==null&&s!=null&&(e=r),s===i&&(t=r)}),t!=null?t:e}}),a=u;k.exports=a},"E/ki":function(k,D,n){"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,n){(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(x,A){k.exports=A()})(this,function(){"use strict";function x(we){var Ne=typeof we;return we!==null&&(Ne==="object"||Ne==="function")}function A(we){return typeof we=="function"}var m=void 0;Array.isArray?m=Array.isArray:m=function(Ne){return Object.prototype.toString.call(Ne)==="[object Array]"};var f=m,h=0,u=void 0,a=void 0,i=function(Ne,je){E[h]=Ne,E[h+1]=je,h+=2,h===2&&(a?a(C):T())};function t(we){a=we}function o(we){i=we}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 d(){return function(){return y.nextTick(C)}}function g(){return typeof u!="undefined"?function(){u(C)}:S()}function v(){var we=0,Ne=new r(C),je=document.createTextNode("");return Ne.observe(je,{characterData:!0}),function(){je.data=we=++we%2}}function b(){var we=new MessageChannel;return we.port1.onmessage=C,function(){return we.port2.postMessage(0)}}function S(){var we=setTimeout;return function(){return we(C,1)}}var E=new Array(1e3);function C(){for(var we=0;we<h;we+=2){var Ne=E[we],je=E[we+1];Ne(je),E[we]=void 0,E[we+1]=void 0}h=0}function _(){try{var we=Function("return this")().require("vertx");return u=we.runOnLoop||we.runOnContext,g()}catch(Ne){return S()}}var T=void 0;s?T=d():r?T=v():c?T=b():e===void 0&&!0?T=_():T=S();function w(we,Ne){var je=this,me=new this.constructor(R);me[I]===void 0&&He(me);var Ce=je._state;if(Ce){var Fe=arguments[Ce-1];i(function(){return be(Ce,me,Fe,je._result)})}else ue(je,me,we,Ne);return me}function O(we){var Ne=this;if(we&&typeof we=="object"&&we.constructor===Ne)return we;var je=new Ne(R);return Q(je,we),je}var I=Math.random().toString(36).substring(2);function R(){}var M=void 0,F=1,P=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function B(){return new TypeError("A promises callback cannot return that same promise.")}function j(we,Ne,je,me){try{we.call(Ne,je,me)}catch(Ce){return Ce}}function W(we,Ne,je){i(function(me){var Ce=!1,Fe=j(je,Ne,function(it){if(Ce)return;Ce=!0,Ne!==it?Q(me,it):re(me,it)},function(it){if(Ce)return;Ce=!0,ee(me,it)},"Settle: "+(me._label||" unknown promise"));!Ce&&Fe&&(Ce=!0,ee(me,Fe))},we)}function z(we,Ne){Ne._state===F?re(we,Ne._result):Ne._state===P?ee(we,Ne._result):ue(Ne,void 0,function(je){return Q(we,je)},function(je){return ee(we,je)})}function V(we,Ne,je){Ne.constructor===we.constructor&&je===w&&Ne.constructor.resolve===O?z(we,Ne):je===void 0?re(we,Ne):A(je)?W(we,Ne,je):re(we,Ne)}function Q(we,Ne){if(we===Ne)ee(we,X());else if(x(Ne)){var je=void 0;try{je=Ne.then}catch(me){ee(we,me);return}V(we,Ne,je)}else re(we,Ne)}function G(we){we._onerror&&we._onerror(we._result),$(we)}function re(we,Ne){if(we._state!==M)return;we._result=Ne,we._state=F,we._subscribers.length!==0&&i($,we)}function ee(we,Ne){if(we._state!==M)return;we._state=P,we._result=Ne,i(G,we)}function ue(we,Ne,je,me){var Ce=we._subscribers,Fe=Ce.length;we._onerror=null,Ce[Fe]=Ne,Ce[Fe+F]=je,Ce[Fe+P]=me,Fe===0&&we._state&&i($,we)}function $(we){var Ne=we._subscribers,je=we._state;if(Ne.length===0)return;for(var me=void 0,Ce=void 0,Fe=we._result,it=0;it<Ne.length;it+=3)me=Ne[it],Ce=Ne[it+je],me?be(je,me,Ce,Fe):Ce(Fe);we._subscribers.length=0}function be(we,Ne,je,me){var Ce=A(je),Fe=void 0,it=void 0,Ct=!0;if(Ce){try{Fe=je(me)}catch(mt){Ct=!1,it=mt}if(Ne===Fe){ee(Ne,B());return}}else Fe=me;Ne._state!==M||(Ce&&Ct?Q(Ne,Fe):Ct===!1?ee(Ne,it):we===F?re(Ne,Fe):we===P&&ee(Ne,Fe))}function _e(we,Ne){try{Ne(function(me){Q(we,me)},function(me){ee(we,me)})}catch(je){ee(we,je)}}var Ee=0;function Xe(){return Ee++}function He(we){we[I]=Ee++,we._state=void 0,we._result=void 0,we._subscribers=[]}function nt(){return new Error("Array Methods must be provided an Array")}var Ie=function(){function we(Ne,je){this._instanceConstructor=Ne,this.promise=new Ne(R),this.promise[I]||He(this.promise),f(je)?(this.length=je.length,this._remaining=je.length,this._result=new Array(this.length),this.length===0?re(this.promise,this._result):(this.length=this.length||0,this._enumerate(je),this._remaining===0&&re(this.promise,this._result))):ee(this.promise,nt())}return we.prototype._enumerate=function(je){for(var me=0;this._state===M&&me<je.length;me++)this._eachEntry(je[me],me)},we.prototype._eachEntry=function(je,me){var Ce=this._instanceConstructor,Fe=Ce.resolve;if(Fe===O){var it=void 0,Ct=void 0,mt=!1;try{it=je.then}catch(or){mt=!0,Ct=or}if(it===w&&je._state!==M)this._settledAt(je._state,me,je._result);else if(typeof it!="function")this._remaining--,this._result[me]=je;else if(Ce===q){var Ve=new Ce(R);mt?ee(Ve,Ct):V(Ve,je,it),this._willSettleAt(Ve,me)}else this._willSettleAt(new Ce(function(or){return or(je)}),me)}else this._willSettleAt(Fe(je),me)},we.prototype._settledAt=function(je,me,Ce){var Fe=this.promise;Fe._state===M&&(this._remaining--,je===P?ee(Fe,Ce):this._result[me]=Ce),this._remaining===0&&re(Fe,this._result)},we.prototype._willSettleAt=function(je,me){var Ce=this;ue(je,void 0,function(Fe){return Ce._settledAt(F,me,Fe)},function(Fe){return Ce._settledAt(P,me,Fe)})},we}();function oe(we){return new Ie(this,we).promise}function ot(we){var Ne=this;return f(we)?new Ne(function(je,me){for(var Ce=we.length,Fe=0;Fe<Ce;Fe++)Ne.resolve(we[Fe]).then(je,me)}):new Ne(function(je,me){return me(new TypeError("You must pass an array to race."))})}function he(we){var Ne=this,je=new Ne(R);return ee(je,we),je}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var q=function(){function we(Ne){this[I]=Xe(),this._result=this._state=void 0,this._subscribers=[],R!==Ne&&(typeof Ne!="function"&&J(),this instanceof we?_e(this,Ne):Y())}return we.prototype.catch=function(je){return this.then(null,je)},we.prototype.finally=function(je){var me=this,Ce=me.constructor;return A(je)?me.then(function(Fe){return Ce.resolve(je()).then(function(){return Fe})},function(Fe){return Ce.resolve(je()).then(function(){throw Fe})}):me.then(je,je)},we}();q.prototype.then=w,q.all=oe,q.race=ot,q.resolve=O,q.reject=he,q._setScheduler=t,q._setAsap=o,q._asap=i;function fe(){var we=void 0;if(typeof p!="undefined")we=p;else if(typeof self!="undefined")we=self;else try{we=Function("return this")()}catch(me){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ne=we.Promise;if(Ne){var je=null;try{je=Object.prototype.toString.call(Ne.resolve())}catch(me){}if(je==="[object Promise]"&&!Ne.cast)return}we.Promise=q}return q.polyfill=fe,q.Promise=q,q})}).call(this,n("Q2Ig"),n("yLpj"))},E2jh:function(k,D,n){var y=n("2gN3"),p=function(){var A=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function x(A){return!!p&&p in A}k.exports=x},E4JC:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.StreamCipher,m=p.algo,f=[],h=[],u=[],a=m.Rabbit=A.extend({_doReset:function(){for(var o=this._key.words,e=this.cfg.iv,l=0;l<4;l++)o[l]=(o[l]<<8|o[l]>>>24)&16711935|(o[l]<<24|o[l]>>>8)&4278255360;var r=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],s=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var l=0;l<4;l++)i.call(this);for(var l=0;l<8;l++)s[l]^=r[l+4&7];if(e){var c=e.words,d=c[0],g=c[1],v=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=v>>>16|b&4294901760,E=b<<16|v&65535;s[0]^=v,s[1]^=S,s[2]^=b,s[3]^=E,s[4]^=v,s[5]^=S,s[6]^=b,s[7]^=E;for(var l=0;l<4;l++)i.call(this)}},_doProcessBlock:function(o,e){var l=this._X;i.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,o[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)h[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<h[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<h[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<h[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<h[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<h[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<h[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<h[6]>>>0?1:0)|0,this._b=o[7]>>>0<h[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+o[e],r=l&65535,s=l>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,d=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^d}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=A._createHelper(a)}(),y.Rabbit})},E9nw:function(k,D){k.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var y=document.activeElement,p=[],x=0;x<n.rangeCount;x++)p.push(n.getRangeAt(x));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return n.removeAllRanges(),function(){n.type==="Caret"&&n.removeAllRanges(),n.rangeCount||p.forEach(function(A){n.addRange(A)}),y&&y.focus()}}},ELLl:function(k,D,n){(function(y){y(n("VrN/"))})(function(y){var p={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,s,c){c&&c!=y.Init&&(r.removeKeyMap(m),r.state.closeBrackets=null),s&&(f(A(s,"pairs")),r.state.closeBrackets=s,r.addKeyMap(m))});function A(r,s){return s=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[s]!=null?r[s]:p[s]}var m={Backspace:a,Enter:i};function f(r){for(var s=0;s<r.length;s++){var c=r.charAt(s),d="'"+c+"'";m[d]||(m[d]=h(c))}}f(p.pairs+"`");function h(r){return function(s){return o(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 a(r){var s=u(r);if(!s||r.getOption("disableInput"))return y.Pass;for(var c=A(s,"pairs"),d=r.listSelections(),g=0;g<d.length;g++){if(!d[g].empty())return y.Pass;var v=e(r,d[g].head);if(!v||c.indexOf(v)%2!=0)return y.Pass}for(var g=d.length-1;g>=0;g--){var b=d[g].head;r.replaceRange("",x(b.line,b.ch-1),x(b.line,b.ch+1),"+delete")}}function i(r){var s=u(r),c=s&&A(s,"explode");if(!c||r.getOption("disableInput"))return y.Pass;for(var d=r.listSelections(),g=0;g<d.length;g++){if(!d[g].empty())return y.Pass;var v=e(r,d[g].head);if(!v||c.indexOf(v)%2!=0)return y.Pass}r.operation(function(){var b=r.lineSeparator()||`
`;r.replaceSelection(b+b,null),r.execCommand("goCharLeft"),d=r.listSelections();for(var S=0;S<d.length;S++){var E=d[S].head.line;r.indentLine(E,null,!0),r.indentLine(E+1,null,!0)}})}function t(r){var s=y.cmpPos(r.anchor,r.head)>0;return{anchor:new x(r.anchor.line,r.anchor.ch+(s?-1:1)),head:new x(r.head.line,r.head.ch+(s?1:-1))}}function o(r,s){var c=u(r);if(!c||r.getOption("disableInput"))return y.Pass;var d=A(c,"pairs"),g=d.indexOf(s);if(g==-1)return y.Pass;for(var v=A(c,"closeBefore"),b=A(c,"triples"),S=d.charAt(g+1)==s,E=r.listSelections(),C=g%2==0,_,T=0;T<E.length;T++){var w=E[T],O=w.head,I,R=r.getRange(O,x(O.line,O.ch+1));if(C&&!w.empty())I="surround";else if((S||!C)&&R==s)S&&l(r,O)?I="both":b.indexOf(s)>=0&&r.getRange(O,x(O.line,O.ch+3))==s+s+s?I="skipThree":I="skip";else if(S&&O.ch>1&&b.indexOf(s)>=0&&r.getRange(x(O.line,O.ch-2),O)==s+s){if(O.ch>2&&/\bstring/.test(r.getTokenTypeAt(x(O.line,O.ch-2))))return y.Pass;I="addFour"}else if(S){var M=O.ch==0?" ":r.getRange(x(O.line,O.ch-1),O);if(!y.isWordChar(R)&&M!=s&&!y.isWordChar(M))I="both";else return y.Pass}else if(C&&(R.length===0||/\s/.test(R)||v.indexOf(R)>-1))I="both";else return y.Pass;if(!_)_=I;else if(_!=I)return y.Pass}var F=g%2?d.charAt(g-1):s,P=g%2?s:d.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 B=r.getSelections(),X=0;X<B.length;X++)B[X]=F+B[X]+P;r.replaceSelections(B,"around"),B=r.listSelections().slice();for(var X=0;X<B.length;X++)B[X]=t(B[X]);r.setSelections(B)}else _=="both"?(r.replaceSelection(F+P,null),r.triggerElectric(F+P),r.execCommand("goCharLeft")):_=="addFour"&&(r.replaceSelection(F+F+F+F,"before"),r.execCommand("goCharRight"))})}function e(r,s){var c=r.getRange(x(s.line,s.ch-1),x(s.line,s.ch+1));return c.length==2?c:null}function l(r,s){var c=r.getTokenAt(x(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,n){(function(y,p){k.exports=D=p(n("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 x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.algo,u=m.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=m.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),i=m.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),t=m.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),o=m.create([0,1518500249,1859775393,2400959708,2840853838]),e=m.create([1352829926,1548603684,1836072691,2053994217,0]),l=h.RIPEMD160=f.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,E){for(var C=0;C<16;C++){var _=E+C,T=S[_];S[_]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var w=this._hash.words,O=o.words,I=e.words,R=u.words,M=a.words,F=i.words,P=t.words,X,B,j,W,z,V,Q,G,re,ee;V=X=w[0],Q=B=w[1],G=j=w[2],re=W=w[3],ee=z=w[4];for(var ue,C=0;C<80;C+=1)ue=X+S[E+R[C]]|0,C<16?ue+=r(B,j,W)+O[0]:C<32?ue+=s(B,j,W)+O[1]:C<48?ue+=c(B,j,W)+O[2]:C<64?ue+=d(B,j,W)+O[3]:ue+=g(B,j,W)+O[4],ue=ue|0,ue=v(ue,F[C]),ue=ue+z|0,X=z,z=W,W=v(j,10),j=B,B=ue,ue=V+S[E+M[C]]|0,C<16?ue+=g(Q,G,re)+I[0]:C<32?ue+=d(Q,G,re)+I[1]:C<48?ue+=c(Q,G,re)+I[2]:C<64?ue+=s(Q,G,re)+I[3]:ue+=r(Q,G,re)+I[4],ue=ue|0,ue=v(ue,P[C]),ue=ue+ee|0,V=ee,ee=re,re=v(G,10),G=Q,Q=ue;ue=w[1]+j+re|0,w[1]=w[2]+W+ee|0,w[2]=w[3]+z+V|0,w[3]=w[4]+X+Q|0,w[4]=w[0]+B+G|0,w[0]=ue},_doFinalize:function(){var S=this._data,E=S.words,C=this._nDataBytes*8,_=S.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S.sigBytes=(E.length+1)*4,this._process();for(var T=this._hash,w=T.words,O=0;O<5;O++){var I=w[O];w[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return T},clone:function(){var S=f.clone.call(this);return S._hash=this._hash.clone(),S}});function r(b,S,E){return b^S^E}function s(b,S,E){return b&S|~b&E}function c(b,S,E){return(b|~S)^E}function d(b,S,E){return b&E|S&~E}function g(b,S,E){return b^(S|~E)}function v(b,S){return b<<S|b>>>32-S}x.RIPEMD160=f._createHelper(l),x.HmacRIPEMD160=f._createHmacHelper(l)}(Math),y.RIPEMD160})},EMyp:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("mFDi"),A=n("K4ya"),m=n("qJCg"),f=n("iLNv"),h=n("vZ6x"),u=["inBrush","outOfBrush"],a="__ecBrushSelect",i="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,S,E){b.eachComponent({mainType:"brush"},function(C){E&&E.type==="takeGlobalCursor"&&C.setBrushOption(E.key==="brush"?E.brushOption:{brushType:!1})}),o(b)});function o(b){b.eachComponent({mainType:"brush"},function(S){var E=S.brushTargetManager=new h(S.option,b);E.setInputRanges(S.areas,b)})}y.registerVisual(t,function(b,S,E){var C=[],_,T;b.eachComponent({mainType:"brush"},function(w,O){var I={brushId:w.id,brushIndex:O,brushName:w.name,areas:p.clone(w.areas),selected:[]};C.push(I);var R=w.option,M=R.brushLink,F=[],P=[],X=[],B=0;O||(_=R.throttleType,T=R.throttleDelay);var j=p.map(w.areas,function(re){return d(p.defaults({boundingRect:g[re.brushType](re)},re))}),W=A.createVisualMappings(w.option,u,function(re){re.mappingMethod="fixed"});p.isArray(M)&&p.each(M,function(re){F[re]=1});function z(re){return M==="all"||F[re]}function V(re){return!!re.length}b.eachSeries(function(re,ee){var ue=X[ee]=[];re.subType==="parallel"?Q(re,ee,ue):G(re,ee,ue)});function Q(re,ee){var ue=re.coordinateSystem;B|=ue.hasAxisBrushed(),z(ee)&&ue.eachActiveState(re.getData(),function($,be){$==="active"&&(P[be]=1)})}function G(re,ee,ue){var $=s(re);if(!$||c(w,ee))return;if(p.each(j,function(_e){$[_e.brushType]&&w.brushTargetManager.controlSeries(_e,re,b)&&ue.push(_e),B|=V(ue)}),z(ee)&&V(ue)){var be=re.getData();be.each(function(_e){r($,ue,be,_e)&&(P[_e]=1)})}}b.eachSeries(function(re,ee){var ue={seriesId:re.id,seriesIndex:ee,seriesName:re.name,dataIndex:[]};I.selected.push(ue);var $=s(re),be=X[ee],_e=re.getData(),Ee=z(ee)?function(Xe){return P[Xe]?(ue.dataIndex.push(_e.getRawIndex(Xe)),"inBrush"):"outOfBrush"}:function(Xe){return r($,be,_e,Xe)?(ue.dataIndex.push(_e.getRawIndex(Xe)),"inBrush"):"outOfBrush"};(z(ee)?B:V(be))&&A.applyVisual(u,W,_e,Ee)})}),e(S,_,T,C,E)});function e(b,S,E,C,_){if(!_)return;var T=b.getZr();if(T[i])return;T[a]||(T[a]=l);var w=f.createOrUpdate(T,a,E,S);w(b,C)}function l(b,S){if(!b.isDisposed()){var E=b.getZr();E[i]=!0,b.dispatchAction({type:"brushSelect",batch:S}),E[i]=!1}}function r(b,S,E,C){for(var _=0,T=S.length;_<T;_++){var w=S[_];if(b[w.brushType](C,E,w.selectors,w))return!0}}function s(b){var S=b.brushSelector;if(p.isString(S)){var E=[];return p.each(m,function(_,T){E[T]=function(w,O,I,R){var M=O.getItemLayout(w);return _[S](M,I,R)}}),E}else if(p.isFunction(S)){var C={};return p.each(m,function(_,T){C[T]=S}),C}return S}function c(b,S){var E=b.option.seriesIndex;return E!=null&&E!=="all"&&(p.isArray(E)?p.indexOf(E,S)<0:S!==E)}function d(b){var S=b.selectors={};return p.each(m[b.brushType],function(E,C){S[C]=function(_){return E(_,S,b)}}),b}var g={lineX:p.noop,lineY:p.noop,rect:function(b){return v(b.range)},polygon:function(b){for(var S,E=b.range,C=0,_=E.length;C<_;C++){S=S||[[Infinity,-Infinity],[Infinity,-Infinity]];var T=E[C];T[0]<S[0][0]&&(S[0][0]=T[0]),T[0]>S[0][1]&&(S[0][1]=T[0]),T[1]<S[1][0]&&(S[1][0]=T[1]),T[1]>S[1][1]&&(S[1][1]=T[1])}return S&&v(S)}};function v(b){return new x(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}D.layoutCovers=o},ERHi:function(k,D,n){var y=n("ProS");n("Z6js"),n("R4Th");var p=n("f5Yq"),x=n("h8O9");y.registerVisual(p("effectScatter","circle")),y.registerLayout(x("effectScatter"))},ETIr:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.enc,f=m.Base64={stringify:function(a){var i=a.words,t=a.sigBytes,o=this._map;a.clamp();for(var e=[],l=0;l<t;l+=3)for(var r=i[l>>>2]>>>24-l%4*8&255,s=i[l+1>>>2]>>>24-(l+1)%4*8&255,c=i[l+2>>>2]>>>24-(l+2)%4*8&255,d=r<<16|s<<8|c,g=0;g<4&&l+g*.75<t;g++)e.push(o.charAt(d>>>6*(3-g)&63));var v=o.charAt(64);if(v)for(;e.length%4;)e.push(v);return e.join("")},parse:function(a){var i=a.length,t=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var e=0;e<t.length;e++)o[t.charCodeAt(e)]=e}var l=t.charAt(64);if(l){var r=a.indexOf(l);r!==-1&&(i=r)}return h(a,i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function h(u,a,i){for(var t=[],o=0,e=0;e<a;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,s=l|r;t[o>>>2]|=s<<24-o%4*8,o++}return A.create(t,o)}}(),y.enc.Base64})},EXcs:function(k,D,n){"use strict";var y=function(){return{height:0,opacity:0}},p=function(h){return{height:h.scrollHeight,opacity:1}},x=function(h){return{height:h.offsetHeight}},A=function(h,u){return u.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:p,onEnterActive:p,onLeaveStart:x,onLeaveActive:y,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};D.a=m},Em2t:function(k,D,n){var y=n("bahg"),p=n("quyA"),x=n("0JQy");function A(m){return p(m)?x(m):y(m)}k.exports=A},EpBk:function(k,D){function n(y){var p=typeof y;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?y!=="__proto__":y===null}k.exports=n},Ez2D:function(k,D,n){var y=n("bYtY"),p=n("4NO4");function x(A,m){var f=[],h=A.seriesIndex,u;if(h==null||!(u=m.getSeriesByIndex(h)))return{point:[]};var a=u.getData(),i=p.queryDataIndex(a,A);if(i==null||i<0||y.isArray(i))return{point:[]};var t=a.getItemGraphicEl(i),o=u.coordinateSystem;if(u.getTooltipPosition)f=u.getTooltipPosition(i)||[];else if(o&&o.dataToPoint)f=o.dataToPoint(a.getValues(y.map(o.dimensions,function(l){return a.mapDimension(l)}),i,!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=x},"F+F2":function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var p=y,x=p.lib,A=x.WordArray,m=A.init,f=A.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var u=h.byteLength,a=[],i=0;i<u;i++)a[i>>>2]|=h[i]<<24-i%4*8;m.call(this,a,u)}else m.apply(this,arguments)};f.prototype=A}(),y.lib.WordArray})},F0hE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ca2m"),A=n("Qxkt"),m=n("ICMv"),f=x.valueAxis;function h(i,t){return p.defaults({show:t},i)}var u=y.extendComponentModel({type:"radar",optionUpdated:function(){var i=this.get("boundaryGap"),t=this.get("splitNumber"),o=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),r=this.get("axisType"),s=this.get("axisLabel"),c=this.get("name"),d=this.get("name.show"),g=this.get("name.formatter"),v=this.get("nameGap"),b=this.get("triggerEvent"),S=p.map(this.get("indicator")||[],function(E){E.max!=null&&E.max>0&&!E.min?E.min=0:E.min!=null&&E.min<0&&!E.max&&(E.max=0);var C=c;if(E.color!=null&&(C=p.defaults({color:E.color},c)),E=p.merge(p.clone(E),{boundaryGap:i,splitNumber:t,scale:o,axisLine:e,axisTick:l,axisType:r,axisLabel:s,name:E.text,nameLocation:"end",nameGap:v,nameTextStyle:C,triggerEvent:b},!1),d||(E.name=""),typeof g=="string"){var _=E.name;E.name=g.replace("{value}",_!=null?_:"")}else typeof g=="function"&&(E.name=g(E.name,E));var T=p.extend(new A(E,null,this.ecModel),m);return T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this.getIndicatorModels=function(){return S}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:p.merge({lineStyle:{color:"#bbb"}},f.axisLine),axisLabel:h(f.axisLabel,!1),axisTick:h(f.axisTick,!1),axisType:"interval",splitLine:h(f.splitLine,!0),splitArea:h(f.splitArea,!0),indicator:[]}}),a=u;k.exports=a},F5Ls:function(k,D){var n={\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,x){if(p==="china"){var A=n[x.name];if(A){var m=x.center;m[0]+=A[0]/10.5,m[1]+=-A[1]/(10.5/.75)}}}k.exports=y},F7hV:function(k,D,n){var y=n("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 x=this.get("progressiveThreshold"),A=this.get("largeThreshold");return A>x&&(x=A),x},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});k.exports=p},F9bG:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4NO4"),A=x.makeInner,m=A(),f=y.each;function h(l,r,s){if(p.node)return;var c=r.getZr();m(c).records||(m(c).records={}),u(c,r);var d=m(c).records[l]||(m(c).records[l]={});d.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",i);function s(c,d){l.on(c,function(g){var v=o(r);f(m(l).records,function(b){b&&d(b,g,v.dispatchAction)}),a(v.pendings,r)})}}function a(l,r){var s=l.showTip.length,c=l.hideTip.length,d;s?d=l.showTip[s-1]:c&&(d=l.hideTip[c-1]),d&&(d.dispatchAction=null,r.dispatchAction(d))}function i(l,r,s){l.handler("leave",null,s)}function t(l,r,s,c){r.handler(l,s,c)}function o(l){var r={showTip:[],hideTip:[]},s=function(c){var d=r[c.type];d?d.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=h,D.unregister=e},FBjb:function(k,D,n){var y=n("bYtY"),p=n("oVpE"),x=p.createSymbol,A=n("IwbS"),m=n("OELB"),f=m.parsePercent,h=n("x3X8"),u=h.getDefaultLabel;function a(v,b,S){A.Group.call(this),this.updateData(v,b,S)}var i=a.prototype,t=a.getSymbolSize=function(v,b){var S=v.getItemVisual(b,"symbolSize");return S instanceof Array?S.slice():[+S,+S]};function o(v){return[v[0]/2,v[1]/2]}function e(v,b){this.parent.drift(v,b)}i._createSymbol=function(v,b,S,E,C){this.removeAll();var _=b.getItemVisual(S,"color"),T=x(v,-1,-1,2,2,_,C);T.attr({z2:100,culling:!0,scale:o(E)}),T.drift=e,this._symbolType=v,this.add(T)},i.stopSymbolAnimation=function(v){this.childAt(0).stopAnimation(v)},i.getSymbolPath=function(){return this.childAt(0)},i.getScale=function(){return this.childAt(0).scale},i.highlight=function(){this.childAt(0).trigger("emphasis")},i.downplay=function(){this.childAt(0).trigger("normal")},i.setZ=function(v,b){var S=this.childAt(0);S.zlevel=v,S.z=b},i.setDraggable=function(v){var b=this.childAt(0);b.draggable=v,b.cursor=v?"move":b.cursor},i.updateData=function(v,b,S){this.silent=!1;var E=v.getItemVisual(b,"symbol")||"circle",C=v.hostModel,_=t(v,b),T=E!==this._symbolType;if(T){var w=v.getItemVisual(b,"symbolKeepAspect");this._createSymbol(E,v,b,_,w)}else{var O=this.childAt(0);O.silent=!1,A.updateProps(O,{scale:o(_)},C,b)}if(this._updateCommon(v,b,_,S),T){var O=this.childAt(0),I=S&&S.fadeIn,R={scale:O.scale.slice()};I&&(R.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),A.initProps(O,R,C,b)}this._seriesModel=C};var l=["itemStyle"],r=["emphasis","itemStyle"],s=["label"],c=["emphasis","label"];i._updateCommon=function(v,b,S,E){var C=this.childAt(0),_=v.hostModel,T=v.getItemVisual(b,"color");C.type!=="image"?C.useStyle({strokeNoScale:!0}):C.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var w=E&&E.itemStyle,O=E&&E.hoverItemStyle,I=E&&E.symbolOffset,R=E&&E.labelModel,M=E&&E.hoverLabelModel,F=E&&E.hoverAnimation,P=E&&E.cursorStyle;if(!E||v.hasItemOption){var X=E&&E.itemModel?E.itemModel:v.getItemModel(b);w=X.getModel(l).getItemStyle(["color"]),O=X.getModel(r).getItemStyle(),I=X.getShallow("symbolOffset"),R=X.getModel(s),M=X.getModel(c),F=X.getShallow("hoverAnimation"),P=X.getShallow("cursor")}else O=y.extend({},O);var B=C.style,j=v.getItemVisual(b,"symbolRotate");C.attr("rotation",(j||0)*Math.PI/180||0),I&&C.attr("position",[f(I[0],S[0]),f(I[1],S[1])]),P&&C.attr("cursor",P),C.setColor(T,E&&E.symbolInnerColor),C.setStyle(w);var W=v.getItemVisual(b,"opacity");W!=null&&(B.opacity=W);var z=v.getItemVisual(b,"liftZ"),V=C.__z2Origin;z!=null?V==null&&(C.__z2Origin=C.z2,C.z2+=z):V!=null&&(C.z2=V,C.__z2Origin=null);var Q=E&&E.useNameLabel;A.setLabelStyle(B,O,R,M,{labelFetcher:_,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:T});function G(re,ee){return Q?v.getName(re):u(v,re)}C.__symbolOriginalScale=o(S),C.hoverStyle=O,C.highDownOnUpdate=F&&_.isAnimationEnabled()?d:null,A.setHoverStyle(C)};function d(v,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var S=this.__symbolOriginalScale,E=S[1]/S[0],C={scale:[Math.max(S[0]*1.1,S[0]+3),Math.max(S[1]*1.1,S[1]+3*E)]};this.animateTo(C,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}i.fadeOut=function(v,b){var S=this.childAt(0);this.silent=S.silent=!0,!(b&&b.keepLabel)&&(S.style.text=null),A.updateProps(S,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,v)},y.inherits(a,A.Group);var g=a;k.exports=g},FGaS:function(k,D,n){var y=n("ProS"),p=n("IwbS"),x=n("bYtY"),A=n("oVpE");function m(h){return x.isArray(h)||(h=[+h,+h]),h}var f=y.extendChartView({type:"radar",render:function(h,u,a){var i=h.coordinateSystem,t=this.group,o=h.getData(),e=this._data;function l(c,d){var g=c.getItemVisual(d,"symbol")||"circle",v=c.getItemVisual(d,"color");if(g==="none")return;var b=m(c.getItemVisual(d,"symbolSize")),S=A.createSymbol(g,-1,-1,2,2,v);return S.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),S}function r(c,d,g,v,b,S){g.removeAll();for(var E=0;E<d.length-1;E++){var C=l(v,b);C&&(C.__dimIdx=E,c[E]?(C.attr("position",c[E]),p[S?"initProps":"updateProps"](C,{position:d[E]},h,b)):C.attr("position",d[E]),g.add(C))}}function s(c){return x.map(c,function(d){return[i.cx,i.cy]})}o.diff(e).add(function(c){var d=o.getItemLayout(c);if(!d)return;var g=new p.Polygon,v=new p.Polyline,b={shape:{points:d}};g.shape.points=s(d),v.shape.points=s(d),p.initProps(g,b,h,c),p.initProps(v,b,h,c);var S=new p.Group,E=new p.Group;S.add(v),S.add(g),S.add(E),r(v.shape.points,d,E,o,c,!0),o.setItemGraphicEl(c,S)}).update(function(c,d){var g=e.getItemGraphicEl(d),v=g.childAt(0),b=g.childAt(1),S=g.childAt(2),E={shape:{points:o.getItemLayout(c)}};if(!E.shape.points)return;r(v.shape.points,E.shape.points,S,o,c,!1),p.updateProps(v,E,h),p.updateProps(b,E,h),o.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),o.eachItemGraphicEl(function(c,d){var g=o.getItemModel(d),v=c.childAt(0),b=c.childAt(1),S=c.childAt(2),E=o.getItemVisual(d,"color");t.add(c),v.useStyle(x.defaults(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:E})),v.hoverStyle=g.getModel("emphasis.lineStyle").getLineStyle();var C=g.getModel("areaStyle"),_=g.getModel("emphasis.areaStyle"),T=C.isEmpty()&&C.parentModel.isEmpty(),w=_.isEmpty()&&_.parentModel.isEmpty();w=w&&T,b.ignore=T,b.useStyle(x.defaults(C.getAreaStyle(),{fill:E,opacity:.7})),b.hoverStyle=_.getAreaStyle();var O=g.getModel("itemStyle").getItemStyle(["color"]),I=g.getModel("emphasis.itemStyle").getItemStyle(),R=g.getModel("label"),M=g.getModel("emphasis.label");S.eachChild(function(F){F.setStyle(O),F.hoverStyle=x.clone(I);var P=o.get(o.dimensions[F.__dimIdx],d);(P==null||isNaN(P))&&(P=""),p.setLabelStyle(F.style,F.hoverStyle,R,M,{labelFetcher:o.hostModel,labelDataIndex:d,labelDimIndex:F.__dimIdx,defaultText:P,autoColor:E,isRectText:!0})}),c.highDownOnUpdate=function(F,P){b.attr("ignore",P==="emphasis"?w:T)},p.setHoverStyle(c)}),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});k.exports=f},FH2Y:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("ZMnZ"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},FJo9:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("8txm"),A=n.n(x),m=n("MXD1")},FNN5:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("+rIm"),A=n("Znkb"),m=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],h=A.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(a,i){if(this.group.removeAll(),!a.get("show"))return;var t=a.axis,o=t.polar,e=o.getAngleAxis(),l=t.getTicksCoords(),r=t.getMinorTicksCoords(),s=e.getExtent()[0],c=t.getExtent(),d=u(o,a,s),g=new x(a,d);y.each(m,g.add,g),this.group.add(g.getGroup()),y.each(f,function(v){a.get(v+".show")&&!t.scale.isBlank()&&this["_"+v](a,o,s,c,l,r)},this)},_splitLine:function(a,i,t,o,e){var l=a.getModel("splitLine"),r=l.getModel("lineStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var d=[],g=0;g<e.length;g++){var v=c++%s.length;d[v]=d[v]||[],d[v].push(new p.Circle({shape:{cx:i.cx,cy:i.cy,r:e[g].coord}}))}for(var g=0;g<d.length;g++)this.group.add(p.mergePath(d[g],{style:y.defaults({stroke:s[g%s.length],fill:null},r.getLineStyle()),silent:!0}))},_minorSplitLine:function(a,i,t,o,e,l){if(!l.length)return;for(var r=a.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=[],d=0;d<l.length;d++)for(var g=0;g<l[d].length;g++)c.push(new p.Circle({shape:{cx:i.cx,cy:i.cy,r:l[d][g].coord}}));this.group.add(p.mergePath(c,{style:y.defaults({fill:null},s.getLineStyle()),silent:!0}))},_splitArea:function(a,i,t,o,e){if(!e.length)return;var l=a.getModel("splitArea"),r=l.getModel("areaStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var d=[],g=e[0].coord,v=1;v<e.length;v++){var b=c++%s.length;d[b]=d[b]||[],d[b].push(new p.Sector({shape:{cx:i.cx,cy:i.cy,r0:g,r:e[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),g=e[v].coord}for(var v=0;v<d.length;v++)this.group.add(p.mergePath(d[v],{style:y.defaults({fill:s[v%s.length]},r.getAreaStyle()),silent:!0}))}});function u(a,i,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}}k.exports=h},FTAc:function(k,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("q1tI"),p=n.n(y),x=y.createContext(null)},FUi9:function(k,D,n){var y=n("bYtY"),p=n("MwEJ"),x=n("aX7z"),A=n("ICMv"),m=n("Qxkt"),f=n("+TT/"),h=f.getLayoutRect;D.getLayoutRect=f.getLayoutRect;var u=n("7hqr"),a=u.enableDataStack,i=u.isDimensionStacked,t=u.getStackedDimension,o=n("hi0g");D.completeDimensions=o;var e=n("sdST");D.createDimensions=e;var l=n("oVpE");D.createSymbol=l.createSymbol;function r(g){return p(g.getSource(),g)}var s={isDimensionStacked:i,enableDataStack:a,getStackedDimension:t};function c(g,v){var b=v;m.isInstance(v)||(b=new m(v),y.mixin(b,A));var S=x.createScaleByModel(b);return S.setExtent(g[0],g[1]),x.niceScaleExtent(S,b),S}function d(g){y.mixin(g,A)}D.createList=r,D.dataStack=s,D.createScale=c,D.mixinAxisModelCommonMethods=d},"Fa/5":function(k,D,n){var y=n("ProS");n("y2l5"),n("q/+u");var p=n("f5Yq"),x=n("h8O9");n("Ae16"),y.registerVisual(p("scatter","circle")),y.registerLayout(x("scatter"))},FhB9:function(k,D,n){"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,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("a7Wl")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CaretUpOutlined";var i=A.forwardRef(a);D.default=i},Fofx:function(k,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var i=new n(6);return p(i),i}function p(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function x(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i}function A(i,t,o){var e=t[0]*o[0]+t[2]*o[1],l=t[1]*o[0]+t[3]*o[1],r=t[0]*o[2]+t[2]*o[3],s=t[1]*o[2]+t[3]*o[3],c=t[0]*o[4]+t[2]*o[5]+t[4],d=t[1]*o[4]+t[3]*o[5]+t[5];return i[0]=e,i[1]=l,i[2]=r,i[3]=s,i[4]=c,i[5]=d,i}function m(i,t,o){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4]+o[0],i[5]=t[5]+o[1],i}function f(i,t,o){var e=t[0],l=t[2],r=t[4],s=t[1],c=t[3],d=t[5],g=Math.sin(o),v=Math.cos(o);return i[0]=e*v+s*g,i[1]=-e*g+s*v,i[2]=l*v+c*g,i[3]=-l*g+v*c,i[4]=v*r+g*d,i[5]=v*d-g*r,i}function h(i,t,o){var e=o[0],l=o[1];return i[0]=t[0]*e,i[1]=t[1]*l,i[2]=t[2]*e,i[3]=t[3]*l,i[4]=t[4]*e,i[5]=t[5]*l,i}function u(i,t){var o=t[0],e=t[2],l=t[4],r=t[1],s=t[3],c=t[5],d=o*s-r*e;return d?(d=1/d,i[0]=s*d,i[1]=-r*d,i[2]=-e*d,i[3]=o*d,i[4]=(e*c-s*l)*d,i[5]=(r*l-o*c)*d,i):null}function a(i){var t=y();return x(t,i),t}D.create=y,D.identity=p,D.copy=x,D.mul=A,D.translate=m,D.rotate=f,D.scale=h,D.invert=u,D.clone=a},Fv0C:function(k,D,n){"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=a(n("Lo0S")),x=n("vewr"),A=a(n("8CQX")),m=h(n("mHUz")),f=a(n("GdRQ"));function h(l){return l&&l.__esModule?l:{default:l}}function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function a(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var r=u();if(r&&r.has(l))return r.get(l);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in l)if(Object.prototype.hasOwnProperty.call(l,d)){var g=c?Object.getOwnPropertyDescriptor(l,d):null;g&&(g.get||g.set)?Object.defineProperty(s,d,g):s[d]=l[d]}return s.default=l,r&&r.set(l,s),s}function i(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 o(l,r,s){return r&&t(l.prototype,r),s&&t(l,s),l}var e=function(){function l(r){i(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 o(l,[{key:"_sendKeyEvent",value:function(s,c,d){if(d)this._keyDownList[c]=s;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}p.Debug("onkeyevent "+(d?"down":"up")+", keysym: "+s,", code: "+c),this.onkeyevent(s,c,d)}},{key:"_getKeyCode",value:function(s){var c=A.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 d=parseInt(s.keyIdentifier.substr(2),16),g=String.fromCharCode(d).toUpperCase();return"Platform"+g.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(s){var c=this._getKeyCode(s),d=A.getKeysym(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&s.timeStamp-this._altGrCtrlTime<50?d=m.default.XK_ISO_Level3_Shift:this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),c==="Unidentified"){d&&(this._sendKeyEvent(d,c,!0),this._sendKeyEvent(d,c,!1)),(0,x.stopEvent)(s);return}if(f.isMac()||f.isIOS())switch(d){case m.default.XK_Super_L:d=m.default.XK_Alt_L;break;case m.default.XK_Super_R:d=m.default.XK_Super_L;break;case m.default.XK_Alt_L:d=m.default.XK_Mode_switch;break;case m.default.XK_Alt_R:d=m.default.XK_ISO_Level3_Shift;break}if(c in this._keyDownList&&(d=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,x.stopEvent)(s);return}if(!d&&(!s.key||f.isIE()||f.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,s);return}if(this._pendingKey=null,(0,x.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(d,c,!0)}},{key:"_handleKeyPress",value:function(s){if((0,x.stopEvent)(s),this._pendingKey===null)return;var c=this._getKeyCode(s),d=A.getKeysym(s);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!d){p.Info("keypress with no keysym:",s);return}this._sendKeyEvent(d,c,!0)}},{key:"_handleKeyPressTimeout",value:function(s){if(this._pendingKey===null)return;var c,d=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,d,!0)}},{key:"_handleKeyUp",value:function(s){(0,x.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,d=this._keyDownList;["AltLeft","AltRight"].forEach(function(g){if(!(g in d))return;var v=new KeyboardEvent("keyup",{key:d[g],code:g});v.skipCheckAlt=!0,c.dispatchEvent(v)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),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,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=n("QO+J"),p=n("j5sG"),x=typeof ResizeObserver!="undefined"?p.createSensor:y.createSensor;D.createSensor=x},GGyF:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("wgjA")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="LeftOutlined";var i=A.forwardRef(a);D.default=i},GIiI:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PoweroffOutlined";var h=D.a=p.forwardRef(f)},GMDS:function(k,D,n){var y=n("bYtY"),p=n("4NgU"),x=n("jkPA"),A=p.prototype,m=p.extend({type:"ordinal",init:function(h,u){(!h||y.isArray(h))&&(h=new x({categories:h})),this._ordinalMeta=h,this._extent=u||[0,h.categories.length-1]},parse:function(h){return typeof h=="string"?this._ordinalMeta.getOrdinal(h):Math.round(h)},contain:function(h){return h=this.parse(h),A.contain.call(this,h)&&this._ordinalMeta.categories[h]!=null},normalize:function(h){return A.normalize.call(this,this.parse(h))},scale:function(h){return Math.round(A.scale.call(this,h))},getTicks:function(){for(var h=[],u=this._extent,a=u[0];a<=u[1];)h.push(a),a++;return h},getLabel:function(h){if(!this.isBlank())return this._ordinalMeta.categories[h]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(h,u){this.unionExtent(h.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,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.toUnsigned32bit=y,D.toSigned32bit=p;function y(x){return x>>>0}function p(x){return x|0}},GRuw:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("lPiR"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.algo,f=m.SHA256,h=m.SHA224=f.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=f._doFinalize.call(this);return a.sigBytes-=4,a}});p.SHA224=f._createHelper(h),p.HmacSHA224=f._createHmacHelper(h)}(),y.SHA224})},GUcZ:function(k,D,n){"use strict";var y=n("fWQN"),p=n("mtLc"),x=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Me,ke){return Me.__proto__=ke,Me},Object.assign=Object.assign||function(Me){if(Me==null)throw new TypeError("Cannot convert undefined or null to object");for(var ke=Object(Me),Pe=1;Pe<arguments.length;Pe++){var tt=arguments[Pe];if(tt!=null)for(var vt in tt)tt.hasOwnProperty(vt)&&(ke[vt]=tt[vt])}return ke},typeof self.Promise!="function"&&n("E2g8").polyfill()}}]),Zt}();x.install();var A=x,m=n("+qE3"),f=n.n(m),h=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"e",value:function(Me,ke){(!Me||Zt.FORCE_GLOBAL_TAG)&&(Me=Zt.GLOBAL_TAG);var Pe="[".concat(Me,"] > ").concat(ke);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","error",Pe),!Zt.ENABLE_ERROR)return;console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe)}},{key:"i",value:function(Me,ke){(!Me||Zt.FORCE_GLOBAL_TAG)&&(Me=Zt.GLOBAL_TAG);var Pe="[".concat(Me,"] > ").concat(ke);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","info",Pe),!Zt.ENABLE_INFO)return;console.info?console.info(Pe):console.log(Pe)}},{key:"w",value:function(Me,ke){(!Me||Zt.FORCE_GLOBAL_TAG)&&(Me=Zt.GLOBAL_TAG);var Pe="[".concat(Me,"] > ").concat(ke);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","warn",Pe),!Zt.ENABLE_WARN)return;console.warn?console.warn(Pe):console.log(Pe)}},{key:"d",value:function(Me,ke){(!Me||Zt.FORCE_GLOBAL_TAG)&&(Me=Zt.GLOBAL_TAG);var Pe="[".concat(Me,"] > ").concat(ke);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","debug",Pe),!Zt.ENABLE_DEBUG)return;console.debug?console.debug(Pe):console.log(Pe)}},{key:"v",value:function(Me,ke){(!Me||Zt.FORCE_GLOBAL_TAG)&&(Me=Zt.GLOBAL_TAG);var Pe="[".concat(Me,"] > ").concat(ke);if(Zt.ENABLE_CALLBACK&&Zt.emitter.emit("log","verbose",Pe),!Zt.ENABLE_VERBOSE)return;console.log(Pe)}}]),Zt}();h.GLOBAL_TAG="flv.js",h.FORCE_GLOBAL_TAG=!1,h.ENABLE_ERROR=!0,h.ENABLE_INFO=!0,h.ENABLE_WARN=!0,h.ENABLE_DEBUG=!0,h.ENABLE_VERBOSE=!0,h.ENABLE_CALLBACK=!1,h.emitter=new f.a;var u=h,a=function(){function Zt(){Object(y.a)(this,Zt),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)(Zt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Me){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Me,this._totalBytes+=Me):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Me,this._totalBytes+=Me):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Me,this._totalBytes+=Me,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Me=(this._now()-this._lastCheckpoint)/1e3;return Me==0&&(Me=1),this._intervalBytes/Me/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 Me=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Me/1024}}]),Zt}(),i=a,t=n("yKVA"),o=n("879j"),e=function(){function Zt(Nt){Object(y.a)(this,Zt),this._message=Nt}return Object(p.a)(Zt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Zt}(),l=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(ke){return Object(y.a)(this,Me),Nt.call(this,ke)}return Object(p.a)(Me,[{key:"name",get:function(){return"IllegalStateException"}}]),Me}(e),r=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(ke){return Object(y.a)(this,Me),Nt.call(this,ke)}return Object(p.a)(Me,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Me}(e),s=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(ke){return Object(y.a)(this,Me),Nt.call(this,ke)}return Object(p.a)(Me,[{key:"name",get:function(){return"NotImplementedException"}}]),Me}(e),c={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},d={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},g=function(){function Zt(Nt){Object(y.a)(this,Zt),this._type=Nt||"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)(Zt,[{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(Me){this._onContentLengthKnown=Me}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Me){this._onURLRedirect=Me}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Me){this._onDataArrival=Me}},{key:"onError",get:function(){return this._onError},set:function(Me){this._onError=Me}},{key:"onComplete",get:function(){return this._onComplete},set:function(Me){this._onComplete=Me}},{key:"open",value:function(Me,ke){throw new s("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new s("Unimplemented abstract function!")}}]),Zt}(),v=n("w4Tj"),b=n("oZsa"),S={};function E(){var Zt=self.navigator.userAgent.toLowerCase(),Nt=/(edge)\/([\w.]+)/.exec(Zt)||/(opr)[\/]([\w.]+)/.exec(Zt)||/(chrome)[ \/]([\w.]+)/.exec(Zt)||/(iemobile)[\/]([\w.]+)/.exec(Zt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Zt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Zt)||/(webkit)[ \/]([\w.]+)/.exec(Zt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Zt)||/(msie) ([\w.]+)/.exec(Zt)||Zt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Zt)||Zt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Zt)||[],Me=/(ipad)/.exec(Zt)||/(ipod)/.exec(Zt)||/(windows phone)/.exec(Zt)||/(iphone)/.exec(Zt)||/(kindle)/.exec(Zt)||/(android)/.exec(Zt)||/(windows)/.exec(Zt)||/(mac)/.exec(Zt)||/(linux)/.exec(Zt)||/(cros)/.exec(Zt)||[],ke={browser:Nt[5]||Nt[3]||Nt[1]||"",version:Nt[2]||Nt[4]||"0",majorVersion:Nt[4]||Nt[2]||"0",platform:Me[0]||""},Pe={};if(ke.browser){Pe[ke.browser]=!0;var tt=ke.majorVersion.split(".");Pe.version={major:parseInt(ke.majorVersion,10),string:ke.version},tt.length>1&&(Pe.version.minor=parseInt(tt[1],10)),tt.length>2&&(Pe.version.build=parseInt(tt[2],10))}if(ke.platform&&(Pe[ke.platform]=!0),(Pe.chrome||Pe.opr||Pe.safari)&&(Pe.webkit=!0),Pe.rv||Pe.iemobile){Pe.rv&&delete Pe.rv;var vt="msie";ke.browser=vt,Pe[vt]=!0}if(Pe.edge){delete Pe.edge;var St="msedge";ke.browser=St,Pe[St]=!0}if(Pe.opr){var Vt="opera";ke.browser=Vt,Pe[Vt]=!0}if(Pe.safari&&Pe.android){var Mr="android";ke.browser=Mr,Pe[Mr]=!0}Pe.name=ke.browser,Pe.platform=ke.platform;for(var $r in S)S.hasOwnProperty($r)&&delete S[$r];Object.assign(S,Pe)}E();var C=S,_=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(ke,Pe){var tt;return Object(y.a)(this,Me),tt=Nt.call(this,"fetch-stream-loader"),tt.TAG="FetchStreamLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!0,tt._requestAbort=!1,tt._contentLength=null,tt._receivedLength=0,tt}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(v.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,tt){var vt=this;this._dataSource=Pe,this._range=tt;var St=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(St=Pe.redirectedURL);var Vt=this._seekHandler.getConfig(St,tt),Mr=new self.Headers;if(typeof Vt.headers=="object"){var $r=Vt.headers;for(var vn in $r)$r.hasOwnProperty(vn)&&Mr.append(vn,$r[vn])}var jt={method:"GET",headers:Mr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var gt in this._config.headers)Mr.append(gt,this._config.headers[gt]);Pe.cors===!1&&(jt.mode="same-origin"),Pe.withCredentials&&(jt.credentials="include"),Pe.referrerPolicy&&(jt.referrerPolicy=Pe.referrerPolicy),this._status=c.kConnecting,self.fetch(Vt.url,jt).then(function(pt){if(vt._requestAbort){vt._requestAbort=!1,vt._status=c.kIdle;return}if(pt.ok&&pt.status>=200&&pt.status<=299){if(pt.url!==Vt.url&&vt._onURLRedirect){var ar=vt._seekHandler.removeURLParameters(pt.url);vt._onURLRedirect(ar)}var Ht=pt.headers.get("Content-Length");return Ht!=null&&(vt._contentLength=parseInt(Ht),vt._contentLength!==0&&(vt._onContentLengthKnown&&vt._onContentLengthKnown(vt._contentLength))),vt._pump.call(vt,pt.body.getReader())}else if(vt._status=c.kError,vt._onError)vt._onError(d.HTTP_STATUS_CODE_INVALID,{code:pt.status,msg:pt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+pt.status+" "+pt.statusText)}).catch(function(pt){if(vt._status=c.kError,vt._onError)vt._onError(d.EXCEPTION,{code:-1,msg:pt.message});else throw pt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Pe){var tt=this;return Pe.read().then(function(vt){if(vt.done)if(tt._contentLength!==null&&tt._receivedLength<tt._contentLength){tt._status=c.kError;var St=d.EARLY_EOF,Vt={code:-1,msg:"Fetch stream meet Early-EOF"};if(tt._onError)tt._onError(St,Vt);else throw new e(Vt.msg)}else tt._status=c.kComplete,tt._onComplete&&tt._onComplete(tt._range.from,tt._range.from+tt._receivedLength-1);else{if(tt._requestAbort===!0)return tt._requestAbort=!1,tt._status=c.kComplete,Pe.cancel();tt._status=c.kBuffering;var Mr=vt.value.buffer,$r=tt._range.from+tt._receivedLength;tt._receivedLength+=Mr.byteLength,tt._onDataArrival&&tt._onDataArrival(Mr,$r,tt._receivedLength),tt._pump(Pe)}}).catch(function(vt){if(vt.code===11&&C.msedge)return;tt._status=c.kError;var St=0,Vt=null;if((vt.code===19||vt.message==="network error")&&(tt._contentLength===null||tt._contentLength!==null&&tt._receivedLength<tt._contentLength)?(St=d.EARLY_EOF,Vt={code:vt.code,msg:"Fetch stream meet Early-EOF"}):(St=d.EXCEPTION,Vt={code:vt.code,msg:vt.message}),tt._onError)tt._onError(St,Vt);else throw new e(Vt.msg)})}}],[{key:"isSupported",value:function(){try{var Pe=C.msedge&&C.version.minor>=15048,tt=C.msedge?Pe:!0;return self.fetch&&self.ReadableStream&&tt}catch(vt){return!1}}}]),Me}(g),T=_,w=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(ke,Pe){var tt;return Object(y.a)(this,Me),tt=Nt.call(this,"xhr-moz-chunked-loader"),tt.TAG="MozChunkedLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!0,tt._xhr=null,tt._requestAbort=!1,tt._contentLength=null,tt._receivedLength=0,tt}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(v.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,tt){this._dataSource=Pe,this._range=tt;var vt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(vt=Pe.redirectedURL);var St=this._seekHandler.getConfig(vt,tt);this._requestURL=St.url;var Vt=this._xhr=new XMLHttpRequest;if(Vt.open("GET",St.url,!0),Vt.responseType="moz-chunked-arraybuffer",Vt.onreadystatechange=this._onReadyStateChange.bind(this),Vt.onprogress=this._onProgress.bind(this),Vt.onloadend=this._onLoadEnd.bind(this),Vt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(Vt.withCredentials=!0),typeof St.headers=="object"){var Mr=St.headers;for(var $r in Mr)Mr.hasOwnProperty($r)&&Vt.setRequestHeader($r,Mr[$r])}if(typeof this._config.headers=="object"){var vn=this._config.headers;for(var jt in vn)vn.hasOwnProperty(jt)&&Vt.setRequestHeader(jt,vn[jt])}this._status=c.kConnecting,Vt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Pe){var tt=Pe.target;if(tt.readyState===2){if(tt.responseURL!=null&&tt.responseURL!==this._requestURL&&this._onURLRedirect){var vt=this._seekHandler.removeURLParameters(tt.responseURL);this._onURLRedirect(vt)}if(tt.status!==0&&(tt.status<200||tt.status>299))if(this._status=c.kError,this._onError)this._onError(d.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+tt.status+" "+tt.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;this._contentLength===null&&(Pe.total!==null&&Pe.total!==0&&(this._contentLength=Pe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var tt=Pe.target.response,vt=this._range.from+this._receivedLength;this._receivedLength+=tt.byteLength,this._onDataArrival&&this._onDataArrival(tt,vt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Pe){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(Pe){this._status=c.kError;var tt=0,vt=null;if(this._contentLength&&Pe.loaded<this._contentLength?(tt=d.EARLY_EOF,vt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(tt=d.EXCEPTION,vt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(tt,vt);else throw new e(vt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="moz-chunked-arraybuffer",Pe.responseType==="moz-chunked-arraybuffer"}catch(tt){return u.w("MozChunkedLoader",tt.message),!1}}}]),Me}(g),O=w,I=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(ke,Pe){var tt;return Object(y.a)(this,Me),tt=Nt.call(this,"xhr-msstream-loader"),tt.TAG="MSStreamLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!0,tt._xhr=null,tt._reader=null,tt._totalRange=null,tt._currentRange=null,tt._currentRequestURL=null,tt._currentRedirectedURL=null,tt._contentLength=null,tt._receivedLength=0,tt._bufferLimit=16*1024*1024,tt._lastTimeBufferSize=0,tt._isReconnecting=!1,tt}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),Object(v.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,tt){this._internalOpen(Pe,tt,!1)}},{key:"_internalOpen",value:function(Pe,tt,vt){this._dataSource=Pe,vt?this._currentRange=tt:this._totalRange=tt;var St=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?St=this._currentRedirectedURL:Pe.redirectedURL!=null&&(St=Pe.redirectedURL));var Vt=this._seekHandler.getConfig(St,tt);this._currentRequestURL=Vt.url;var Mr=this._reader=new self.MSStreamReader;Mr.onprogress=this._msrOnProgress.bind(this),Mr.onload=this._msrOnLoad.bind(this),Mr.onerror=this._msrOnError.bind(this);var $r=this._xhr=new XMLHttpRequest;if($r.open("GET",Vt.url,!0),$r.responseType="ms-stream",$r.onreadystatechange=this._xhrOnReadyStateChange.bind(this),$r.onerror=this._xhrOnError.bind(this),Pe.withCredentials&&($r.withCredentials=!0),typeof Vt.headers=="object"){var vn=Vt.headers;for(var jt in vn)vn.hasOwnProperty(jt)&&$r.setRequestHeader(jt,vn[jt])}if(typeof this._config.headers=="object"){var gt=this._config.headers;for(var pt in gt)gt.hasOwnProperty(pt)&&$r.setRequestHeader(pt,gt[pt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,$r.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(Pe){var tt=Pe.target;if(tt.readyState===2)if(tt.status>=200&&tt.status<=299){if(this._status=c.kBuffering,tt.responseURL!=null){var vt=this._seekHandler.removeURLParameters(tt.responseURL);tt.responseURL!==this._currentRequestURL&&vt!==this._currentRedirectedURL&&(this._currentRedirectedURL=vt,this._onURLRedirect&&this._onURLRedirect(vt))}var St=tt.getResponseHeader("Content-Length");if(St!=null&&this._contentLength==null){var Vt=parseInt(St);Vt>0&&(this._contentLength=Vt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(d.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new e("MSStreamLoader: Http code invalid, "+tt.status+" "+tt.statusText);else if(tt.readyState===3&&(tt.status>=200&&tt.status<=299)){this._status=c.kBuffering;var Mr=tt.response;this._reader.readAsArrayBuffer(Mr)}}},{key:"_xhrOnError",value:function(Pe){this._status=c.kError;var tt=d.EXCEPTION,vt={code:-1,msg:Pe.constructor.name+" "+Pe.type};if(this._onError)this._onError(tt,vt);else throw new e(vt.msg)}},{key:"_msrOnProgress",value:function(Pe){var tt=Pe.target,vt=tt.result;if(vt==null){this._doReconnectIfNeeded();return}var St=vt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=vt.byteLength;var Vt=this._totalRange.from+this._receivedLength;this._receivedLength+=St.byteLength,this._onDataArrival&&this._onDataArrival(St,Vt,this._receivedLength),vt.byteLength>=this._bufferLimit&&(u.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Vt+St.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 Pe={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Pe,!0)}}},{key:"_msrOnLoad",value:function(Pe){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Pe){this._status=c.kError;var tt=0,vt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(tt=d.EARLY_EOF,vt={code:-1,msg:"MSStream meet Early-Eof"}):(tt=d.EARLY_EOF,vt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(tt,vt);else throw new e(vt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="ms-stream",Pe.responseType==="ms-stream"}catch(tt){return u.w("MSStreamLoader",tt.message),!1}}}]),Me}(g),R=I,M=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(ke,Pe){var tt;return Object(y.a)(this,Me),tt=Nt.call(this,"xhr-range-loader"),tt.TAG="RangeLoader",tt._seekHandler=ke,tt._config=Pe,tt._needStash=!1,tt._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],tt._currentChunkSizeKB=384,tt._currentSpeedNormalized=0,tt._zeroSpeedChunkCount=0,tt._xhr=null,tt._speedSampler=new i,tt._requestAbort=!1,tt._waitForTotalLength=!1,tt._totalLengthReceived=!1,tt._currentRequestURL=null,tt._currentRedirectedURL=null,tt._currentRequestRange=null,tt._totalLength=null,tt._contentLength=null,tt._receivedLength=0,tt._lastTimeLoaded=0,tt}return Object(p.a)(Me,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Object(v.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Pe,tt){this._dataSource=Pe,this._range=tt,this._status=c.kConnecting;var vt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(vt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!vt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Pe=this._currentChunkSizeKB*1024,tt=this._range.from+this._receivedLength,vt=tt+Pe;this._contentLength!=null&&(vt-this._range.from>=this._contentLength&&(vt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:tt,to:vt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Pe,tt){this._lastTimeLoaded=0;var vt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?vt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(vt=Pe.redirectedURL));var St=this._seekHandler.getConfig(vt,tt);this._currentRequestURL=St.url;var Vt=this._xhr=new XMLHttpRequest;if(Vt.open("GET",St.url,!0),Vt.responseType="arraybuffer",Vt.onreadystatechange=this._onReadyStateChange.bind(this),Vt.onprogress=this._onProgress.bind(this),Vt.onload=this._onLoad.bind(this),Vt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(Vt.withCredentials=!0),typeof St.headers=="object"){var Mr=St.headers;for(var $r in Mr)Mr.hasOwnProperty($r)&&Vt.setRequestHeader($r,Mr[$r])}if(typeof this._config.headers=="object"){var vn=this._config.headers;for(var jt in vn)vn.hasOwnProperty(jt)&&Vt.setRequestHeader(jt,vn[jt])}Vt.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(Pe){var tt=Pe.target;if(tt.readyState===2){if(tt.responseURL!=null){var vt=this._seekHandler.removeURLParameters(tt.responseURL);tt.responseURL!==this._currentRequestURL&&vt!==this._currentRedirectedURL&&(this._currentRedirectedURL=vt,this._onURLRedirect&&this._onURLRedirect(vt))}if(tt.status>=200&&tt.status<=299){if(this._waitForTotalLength)return;this._status=c.kBuffering}else if(this._status=c.kError,this._onError)this._onError(d.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new e("RangeLoader: Http code invalid, "+tt.status+" "+tt.statusText)}}},{key:"_onProgress",value:function(Pe){if(this._status===c.kError)return;if(this._contentLength===null){var tt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,tt=!0;var vt=Pe.total;this._internalAbort(),vt!=null&vt!==0&&(this._totalLength=vt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,tt){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var St=Pe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Pe.loaded,this._speedSampler.addBytes(St)}},{key:"_normalizeSpeed",value:function(Pe){var tt=this._chunkSizeKBList,vt=tt.length-1,St=0,Vt=0,Mr=vt;if(Pe<tt[0])return tt[0];for(;Vt<=Mr;){if(St=Vt+Math.floor((Mr-Vt)/2),St===vt||Pe>=tt[St]&&Pe<tt[St+1])return tt[St];tt[St]<Pe?Vt=St+1:Mr=St-1}}},{key:"_onLoad",value:function(Pe){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var tt=this._speedSampler.lastSecondKBps;if(tt===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(tt=this._speedSampler.currentKBps)),tt!==0){var vt=this._normalizeSpeed(tt);this._currentSpeedNormalized!==vt&&(this._currentSpeedNormalized=vt,this._currentChunkSizeKB=vt)}var St=Pe.target.response,Vt=this._range.from+this._receivedLength;this._receivedLength+=St.byteLength;var Mr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Mr=!0,this._onDataArrival&&this._onDataArrival(St,Vt,this._receivedLength),Mr&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Pe){this._status=c.kError;var tt=0,vt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(tt=d.EARLY_EOF,vt={code:-1,msg:"RangeLoader meet Early-Eof"}):(tt=d.EXCEPTION,vt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(tt,vt);else throw new e(vt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="arraybuffer",Pe.responseType==="arraybuffer"}catch(tt){return u.w("RangeLoader",tt.message),!1}}}]),Me}(g),F=M,P=function(Zt){Object(t.a)(Me,Zt);var Nt=Object(o.a)(Me);function Me(){var ke;return Object(y.a)(this,Me),ke=Nt.call(this,"websocket-loader"),ke.TAG="WebSocketLoader",ke._needStash=!0,ke._ws=null,ke._requestAbort=!1,ke._receivedLength=0,ke}return Object(p.a)(Me,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(v.a)(Object(b.a)(Me.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe){try{var tt=this._ws=new self.WebSocket(Pe.url);tt.binaryType="arraybuffer",tt.onopen=this._onWebSocketOpen.bind(this),tt.onclose=this._onWebSocketClose.bind(this),tt.onmessage=this._onWebSocketMessage.bind(this),tt.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(St){this._status=c.kError;var vt={code:St.code,msg:St.message};if(this._onError)this._onError(d.EXCEPTION,vt);else throw new e(vt.msg)}}},{key:"abort",value:function(){var Pe=this._ws;Pe&&(Pe.readyState===0||Pe.readyState===1)&&(this._requestAbort=!0,Pe.close()),this._ws=null,this._status=c.kComplete}},{key:"_onWebSocketOpen",value:function(Pe){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Pe){var tt=this;if(Pe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Pe.data);else if(Pe.data instanceof Blob){var vt=new FileReader;vt.onload=function(){tt._dispatchArrayBuffer(vt.result)},vt.readAsArrayBuffer(Pe.data)}else{this._status=c.kError;var St={code:-1,msg:"Unsupported WebSocket message type: "+Pe.data.constructor.name};if(this._onError)this._onError(d.EXCEPTION,St);else throw new e(St.msg)}}},{key:"_dispatchArrayBuffer",value:function(Pe){var tt=Pe,vt=this._receivedLength;this._receivedLength+=tt.byteLength,this._onDataArrival&&this._onDataArrival(tt,vt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Pe){this._status=c.kError;var tt={code:Pe.code,msg:Pe.message};if(this._onError)this._onError(d.EXCEPTION,tt);else throw new e(tt.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Pe){return!1}}}]),Me}(g),X=P,B=function(){function Zt(Nt){Object(y.a)(this,Zt),this._zeroStart=Nt||!1}return Object(p.a)(Zt,[{key:"getConfig",value:function(Me,ke){var Pe={};if(ke.from!==0||ke.to!==-1){var tt;ke.to!==-1?tt="bytes=".concat(ke.from.toString(),"-").concat(ke.to.toString()):tt="bytes=".concat(ke.from.toString(),"-"),Pe.Range=tt}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:Me,headers:Pe}}},{key:"removeURLParameters",value:function(Me){return Me}}]),Zt}(),j=B,W=function(){function Zt(Nt,Me){Object(y.a)(this,Zt),this._startName=Nt,this._endName=Me}return Object(p.a)(Zt,[{key:"getConfig",value:function(Me,ke){var Pe=Me;if(ke.from!==0||ke.to!==-1){var tt=!0;Pe.indexOf("?")===-1&&(Pe+="?",tt=!1),tt&&(Pe+="&"),Pe+="".concat(this._startName,"=").concat(ke.from.toString()),ke.to!==-1&&(Pe+="&".concat(this._endName,"=").concat(ke.to.toString()))}return{url:Pe,headers:{}}}},{key:"removeURLParameters",value:function(Me){var ke=Me.split("?")[0],Pe=void 0,tt=Me.indexOf("?");tt!==-1&&(Pe=Me.substring(tt+1));var vt="";if(Pe!=null&&Pe.length>0)for(var St=Pe.split("&"),Vt=0;Vt<St.length;Vt++){var Mr=St[Vt].split("="),$r=Vt>0;Mr[0]!==this._startName&&Mr[0]!==this._endName&&($r&&(vt+="&"),vt+=St[Vt])}return vt.length===0?ke:ke+"?"+vt}}]),Zt}(),z=W,V=function(){function Zt(Nt,Me,ke){Object(y.a)(this,Zt),this.TAG="IOController",this._config=Me,this._extraData=ke,this._stashInitialSize=1024*384,Me.stashInitialSize!=null&&Me.stashInitialSize>0&&(this._stashInitialSize=Me.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,Me.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Nt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Nt.url),this._refTotalLength=Nt.filesize?Nt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new i,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(p.a)(Zt,[{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(Me){this._extraData=Me}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Me){this._onDataArrival=Me}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Me){this._onSeeked=Me}},{key:"onError",get:function(){return this._onError},set:function(Me){this._onError=Me}},{key:"onComplete",get:function(){return this._onComplete},set:function(Me){this._onComplete=Me}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Me){this._onRedirect=Me}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Me){this._onRecoveredEarlyEof=Me}},{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===F?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Me=this._config;if(Me.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(Me.seekType==="param"){var ke=Me.seekParamStart||"bstart",Pe=Me.seekParamEnd||"bend";this._seekHandler=new z(ke,Pe)}else if(Me.seekType==="custom"){if(typeof Me.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Me.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(Me.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;else if(T.isSupported())this._loaderClass=T;else if(O.isSupported())this._loaderClass=O;else if(F.isSupported())this._loaderClass=F;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(Me){this._currentRange={from:0,to:-1},Me&&(this._currentRange.from=Me),this._speedSampler.reset(),Me||(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 Me=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Me,!0)}}},{key:"seek",value:function(Me){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Me,!0)}},{key:"_internalSeek",value:function(Me,ke){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ke),this._loader.destroy(),this._loader=null;var Pe={from:Me,to:-1};this._currentRange={from:Pe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Pe),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Me){if(!Me||typeof Me!="string"||Me.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=Me}},{key:"_expandBuffer",value:function(Me){for(var ke=this._stashSize;ke+1024*1024*1<Me;)ke*=2;if(ke+=1024*1024*1,ke===this._bufferSize)return;var Pe=new ArrayBuffer(ke);if(this._stashUsed>0){var tt=new Uint8Array(this._stashBuffer,0,this._stashUsed),vt=new Uint8Array(Pe,0,ke);vt.set(tt,0)}this._stashBuffer=Pe,this._bufferSize=ke}},{key:"_normalizeSpeed",value:function(Me){var ke=this._speedNormalizeList,Pe=ke.length-1,tt=0,vt=0,St=Pe;if(Me<ke[0])return ke[0];for(;vt<=St;){if(tt=vt+Math.floor((St-vt)/2),tt===Pe||Me>=ke[tt]&&Me<ke[tt+1])return ke[tt];ke[tt]<Me?vt=tt+1:St=tt-1}}},{key:"_adjustStashSize",value:function(Me){var ke=0;this._config.isLive||Me<512?ke=Me:Me>=512&&Me<=1024?ke=Math.floor(Me*1.5):ke=Me*2,ke>8192&&(ke=8192);var Pe=ke*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=ke*1024}},{key:"_dispatchChunks",value:function(Me,ke){return this._currentRange.to=ke+Me.byteLength-1,this._onDataArrival(Me,ke)}},{key:"_onURLRedirect",value:function(Me){this._redirectedURL=Me,this._onRedirect&&this._onRedirect(Me)}},{key:"_onContentLengthKnown",value:function(Me){Me&&this._fullRequestFlag&&(this._totalLength=Me,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Me,ke,Pe){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(Me.byteLength);var tt=this._speedSampler.lastSecondKBps;if(tt!==0){var vt=this._normalizeSpeed(tt);this._speedNormalized!==vt&&(this._speedNormalized=vt,this._adjustStashSize(vt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ke),this._stashUsed+Me.byteLength<=this._stashSize){var gt=new Uint8Array(this._stashBuffer,0,this._stashSize);gt.set(new Uint8Array(Me),this._stashUsed),this._stashUsed+=Me.byteLength}else{var pt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var ar=this._stashBuffer.slice(0,this._stashUsed),Ht=this._dispatchChunks(ar,this._stashByteStart);if(Ht<ar.byteLength){if(Ht>0){var Mt=new Uint8Array(ar,Ht);pt.set(Mt,0),this._stashUsed=Mt.byteLength,this._stashByteStart+=Ht}}else this._stashUsed=0,this._stashByteStart+=Ht;this._stashUsed+Me.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Me.byteLength),pt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),pt.set(new Uint8Array(Me),this._stashUsed),this._stashUsed+=Me.byteLength}else{var qt=this._dispatchChunks(Me,ke);if(qt<Me.byteLength){var Rt=Me.byteLength-qt;Rt>this._bufferSize&&(this._expandBuffer(Rt),pt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),pt.set(new Uint8Array(Me,qt),0),this._stashUsed+=Rt,this._stashByteStart=ke+qt}}}else if(this._stashUsed===0){var St=this._dispatchChunks(Me,ke);if(St<Me.byteLength){var Vt=Me.byteLength-St;Vt>this._bufferSize&&this._expandBuffer(Vt);var Mr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Mr.set(new Uint8Array(Me,St),0),this._stashUsed+=Vt,this._stashByteStart=ke+St}}else{this._stashUsed+Me.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Me.byteLength);var $r=new Uint8Array(this._stashBuffer,0,this._bufferSize);$r.set(new Uint8Array(Me),this._stashUsed),this._stashUsed+=Me.byteLength;var vn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(vn<this._stashUsed&&vn>0){var jt=new Uint8Array(this._stashBuffer,vn);$r.set(jt,0)}this._stashUsed-=vn,this._stashByteStart+=vn}}},{key:"_flushStashBuffer",value:function(Me){if(this._stashUsed>0){var ke=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(ke,this._stashByteStart),tt=ke.byteLength-Pe;if(Pe<ke.byteLength)if(Me)u.w(this.TAG,"".concat(tt," bytes unconsumed data remain when flush buffer, dropped"));else{if(Pe>0){var vt=new Uint8Array(this._stashBuffer,0,this._bufferSize),St=new Uint8Array(ke,Pe);vt.set(St,0),this._stashUsed=St.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,tt}return 0}},{key:"_onLoaderComplete",value:function(Me,ke){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Me,ke){u.e(this.TAG,"Loader error, code = ".concat(ke.code,", msg = ").concat(ke.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Me=d.UNRECOVERABLE_EARLY_EOF);switch(Me){case d.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Pe=this._currentRange.to+1;Pe<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}Me=d.UNRECOVERABLE_EARLY_EOF;break}case d.UNRECOVERABLE_EARLY_EOF:case d.CONNECTING_TIMEOUT:case d.HTTP_STATUS_CODE_INVALID:case d.EXCEPTION:break}if(this._onError)this._onError(Me,ke);else throw new e("IOException: "+ke.msg)}}]),Zt}(),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 re(){return Object.assign({},G)}var ee=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Me=new Q({},re()),ke=Me.loaderType;return Me.destroy(),ke=="fetch-stream-loader"||ke=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Me=new Q({},re()),ke=Me.loaderType;return Me.destroy(),ke}},{key:"supportNativeMediaPlayback",value:function(Me){Zt.videoElement==null&&(Zt.videoElement=window.document.createElement("video"));var ke=Zt.videoElement.canPlayType(Me);return ke==="probably"||ke=="maybe"}},{key:"getFeatureList",value:function(){var Me={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Me.mseFlvPlayback=Zt.supportMSEH264Playback(),Me.networkStreamIO=Zt.supportNetworkStreamIO(),Me.networkLoaderName=Zt.getNetworkLoaderTypeName(),Me.mseLiveFlvPlayback=Me.mseFlvPlayback&&Me.networkStreamIO,Me.nativeMP4H264Playback=Zt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Me.nativeWebmVP8Playback=Zt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Me.nativeWebmVP9Playback=Zt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Me}}]),Zt}(),ue=ee,$={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"},be=$,_e=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"forceGlobalTag",get:function(){return u.FORCE_GLOBAL_TAG},set:function(Me){u.FORCE_GLOBAL_TAG=Me,Zt._notifyChange()}},{key:"globalTag",get:function(){return u.GLOBAL_TAG},set:function(Me){u.GLOBAL_TAG=Me,Zt._notifyChange()}},{key:"enableAll",get:function(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR},set:function(Me){u.ENABLE_VERBOSE=Me,u.ENABLE_DEBUG=Me,u.ENABLE_INFO=Me,u.ENABLE_WARN=Me,u.ENABLE_ERROR=Me,Zt._notifyChange()}},{key:"enableDebug",get:function(){return u.ENABLE_DEBUG},set:function(Me){u.ENABLE_DEBUG=Me,Zt._notifyChange()}},{key:"enableVerbose",get:function(){return u.ENABLE_VERBOSE},set:function(Me){u.ENABLE_VERBOSE=Me,Zt._notifyChange()}},{key:"enableInfo",get:function(){return u.ENABLE_INFO},set:function(Me){u.ENABLE_INFO=Me,Zt._notifyChange()}},{key:"enableWarn",get:function(){return u.ENABLE_WARN},set:function(Me){u.ENABLE_WARN=Me,Zt._notifyChange()}},{key:"enableError",get:function(){return u.ENABLE_ERROR},set:function(Me){u.ENABLE_ERROR=Me,Zt._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(Me){u.GLOBAL_TAG=Me.globalTag,u.FORCE_GLOBAL_TAG=Me.forceGlobalTag,u.ENABLE_VERBOSE=Me.enableVerbose,u.ENABLE_DEBUG=Me.enableDebug,u.ENABLE_INFO=Me.enableInfo,u.ENABLE_WARN=Me.enableWarn,u.ENABLE_ERROR=Me.enableError,u.ENABLE_CALLBACK=Me.enableCallback}},{key:"_notifyChange",value:function(){var Me=Zt.emitter;if(Me.listenerCount("change")>0){var ke=Zt.getConfig();Me.emit("change",ke)}}},{key:"registerListener",value:function(Me){Zt.emitter.addListener("change",Me)}},{key:"removeListener",value:function(Me){Zt.emitter.removeListener("change",Me)}},{key:"addLogListener",value:function(Me){u.emitter.addListener("log",Me),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,Zt._notifyChange())}},{key:"removeLogListener",value:function(Me){u.emitter.removeListener("log",Me),u.emitter.listenerCount("log")===0&&(u.ENABLE_CALLBACK=!1,Zt._notifyChange())}}]),Zt}();_e.emitter=new f.a;var Ee=_e,Xe=function(){function Zt(){Object(y.a)(this,Zt),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)(Zt,[{key:"isComplete",value:function(){var Me=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ke=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&&Me&&ke}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Me){if(this.keyframesIndex==null)return null;var ke=this.keyframesIndex,Pe=this._search(ke.times,Me);return{index:Pe,milliseconds:ke.times[Pe],fileposition:ke.filepositions[Pe]}}},{key:"_search",value:function(Me,ke){var Pe=0,tt=Me.length-1,vt=0,St=0,Vt=tt;for(ke<Me[0]&&(Pe=0,St=Vt+1);St<=Vt;)if(vt=St+Math.floor((Vt-St)/2),vt===tt||ke>=Me[vt]&&ke<Me[vt+1]){Pe=vt;break}else Me[vt]<ke?St=vt+1:Vt=vt-1;return Pe}}]),Zt}(),He=Xe;function nt(Zt,Nt,Me){var ke=Zt;if(Nt+Me<ke.length){for(;Me--;)if((ke[++Nt]&192)!==128)return!1;return!0}else return!1}function Ie(Zt){for(var Nt=[],Me=Zt,ke=0,Pe=Zt.length;ke<Pe;){if(Me[ke]<128){Nt.push(String.fromCharCode(Me[ke])),++ke;continue}else if(!(Me[ke]<192)){if(Me[ke]<224){if(nt(Me,ke,1)){var tt=(Me[ke]&31)<<6|Me[ke+1]&63;if(tt>=128){Nt.push(String.fromCharCode(tt&65535)),ke+=2;continue}}}else if(Me[ke]<240){if(nt(Me,ke,2)){var vt=(Me[ke]&15)<<12|(Me[ke+1]&63)<<6|Me[ke+2]&63;if(vt>=2048&&(vt&63488)!==55296){Nt.push(String.fromCharCode(vt&65535)),ke+=3;continue}}}else if(Me[ke]<248&&nt(Me,ke,3)){var St=(Me[ke]&7)<<18|(Me[ke+1]&63)<<12|(Me[ke+2]&63)<<6|Me[ke+3]&63;if(St>65536&&St<1114112){St-=65536,Nt.push(String.fromCharCode(St>>>10|55296)),Nt.push(String.fromCharCode(St&1023|56320)),ke+=4;continue}}}Nt.push(String.fromCharCode(65533)),++ke}return Nt.join("")}var oe=Ie,ot=function(){var Zt=new ArrayBuffer(2);return new DataView(Zt).setInt16(0,256,!0),new Int16Array(Zt)[0]===256}(),he=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"parseScriptData",value:function(Me,ke,Pe){var tt={};try{var vt=Zt.parseValue(Me,ke,Pe),St=Zt.parseValue(Me,ke+vt.size,Pe-vt.size);tt[vt.data]=St.data}catch(Vt){u.e("AMF",Vt.toString())}return tt}},{key:"parseObject",value:function(Me,ke,Pe){if(Pe<3)throw new l("Data not enough when parse ScriptDataObject");var tt=Zt.parseString(Me,ke,Pe),vt=Zt.parseValue(Me,ke+tt.size,Pe-tt.size),St=vt.objectEnd;return{data:{name:tt.data,value:vt.data},size:tt.size+vt.size,objectEnd:St}}},{key:"parseVariable",value:function(Me,ke,Pe){return Zt.parseObject(Me,ke,Pe)}},{key:"parseString",value:function(Me,ke,Pe){if(Pe<2)throw new l("Data not enough when parse String");var tt=new DataView(Me,ke,Pe),vt=tt.getUint16(0,!ot),St;return vt>0?St=oe(new Uint8Array(Me,ke+2,vt)):St="",{data:St,size:2+vt}}},{key:"parseLongString",value:function(Me,ke,Pe){if(Pe<4)throw new l("Data not enough when parse LongString");var tt=new DataView(Me,ke,Pe),vt=tt.getUint32(0,!ot),St;return vt>0?St=oe(new Uint8Array(Me,ke+4,vt)):St="",{data:St,size:4+vt}}},{key:"parseDate",value:function(Me,ke,Pe){if(Pe<10)throw new l("Data size invalid when parse Date");var tt=new DataView(Me,ke,Pe),vt=tt.getFloat64(0,!ot),St=tt.getInt16(8,!ot);return vt+=St*60*1e3,{data:new Date(vt),size:8+2}}},{key:"parseValue",value:function(Me,ke,Pe){if(Pe<1)throw new l("Data not enough when parse Value");var tt=new DataView(Me,ke,Pe),vt=1,St=tt.getUint8(0),Vt,Mr=!1;try{switch(St){case 0:Vt=tt.getFloat64(1,!ot),vt+=8;break;case 1:{var $r=tt.getUint8(1);Vt=!!$r,vt+=1;break}case 2:{var vn=Zt.parseString(Me,ke+1,Pe-1);Vt=vn.data,vt+=vn.size;break}case 3:{Vt={};var jt=0;for((tt.getUint32(Pe-4,!ot)&16777215)===9&&(jt=3);vt<Pe-4;){var gt=Zt.parseObject(Me,ke+vt,Pe-vt-jt);if(gt.objectEnd)break;Vt[gt.data.name]=gt.data.value,vt+=gt.size}if(vt<=Pe-3){var pt=tt.getUint32(vt-1,!ot)&16777215;pt===9&&(vt+=3)}break}case 8:{Vt={},vt+=4;var ar=0;for((tt.getUint32(Pe-4,!ot)&16777215)===9&&(ar=3);vt<Pe-8;){var Ht=Zt.parseVariable(Me,ke+vt,Pe-vt-ar);if(Ht.objectEnd)break;Vt[Ht.data.name]=Ht.data.value,vt+=Ht.size}if(vt<=Pe-3){var Mt=tt.getUint32(vt-1,!ot)&16777215;Mt===9&&(vt+=3)}break}case 9:Vt=void 0,vt=1,Mr=!0;break;case 10:{Vt=[];var qt=tt.getUint32(1,!ot);vt+=4;for(var Rt=0;Rt<qt;Rt++){var Qt=Zt.parseValue(Me,ke+vt,Pe-vt);Vt.push(Qt.data),vt+=Qt.size}break}case 11:{var jr=Zt.parseDate(Me,ke+1,Pe-1);Vt=jr.data,vt+=jr.size;break}case 12:{var Nr=Zt.parseString(Me,ke+1,Pe-1);Vt=Nr.data,vt+=Nr.size;break}default:vt=Pe,u.w("AMF","Unsupported AMF value type "+St)}}catch(Lr){u.e("AMF",Lr.toString())}return{data:Vt,size:vt,objectEnd:Mr}}}]),Zt}(),J=he,Y=function(){function Zt(Nt){Object(y.a)(this,Zt),this.TAG="ExpGolomb",this._buffer=Nt,this._buffer_index=0,this._total_bytes=Nt.byteLength,this._total_bits=Nt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(p.a)(Zt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Me=this._total_bytes-this._buffer_index;if(Me<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var ke=Math.min(4,Me),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+ke)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=ke,this._current_word_bits_left=ke*8}},{key:"readBits",value:function(Me){if(Me>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(Me<=this._current_word_bits_left){var ke=this._current_word>>>32-Me;return this._current_word<<=Me,this._current_word_bits_left-=Me,ke}var Pe=this._current_word_bits_left?this._current_word:0;Pe=Pe>>>32-this._current_word_bits_left;var tt=Me-this._current_word_bits_left;this._fillCurrentWord();var vt=Math.min(tt,this._current_word_bits_left),St=this._current_word>>>32-vt;return this._current_word<<=vt,this._current_word_bits_left-=vt,Pe=Pe<<vt|St,Pe}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Me;for(Me=0;Me<this._current_word_bits_left;Me++)if((this._current_word&2147483648>>>Me)!==0)return this._current_word<<=Me,this._current_word_bits_left-=Me,Me;return this._fillCurrentWord(),Me+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Me=this._skipLeadingZero();return this.readBits(Me+1)-1}},{key:"readSEG",value:function(){var Me=this.readUEG();return Me&1?Me+1>>>1:-1*(Me>>>1)}}]),Zt}(),q=Y,fe=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"_ebsp2rbsp",value:function(Me){for(var ke=Me,Pe=ke.byteLength,tt=new Uint8Array(Pe),vt=0,St=0;St<Pe;St++){if(St>=2&&(ke[St]===3&&ke[St-1]===0&&ke[St-2]===0))continue;tt[vt]=ke[St],vt++}return new Uint8Array(tt.buffer,0,vt)}},{key:"parseSPS",value:function(Me){var ke=Zt._ebsp2rbsp(Me),Pe=new q(ke);Pe.readByte();var tt=Pe.readByte();Pe.readByte();var vt=Pe.readByte();Pe.readUEG();var St=Zt.getProfileString(tt),Vt=Zt.getLevelString(vt),Mr=1,$r=420,vn=[0,420,422,444],jt=8;if((tt===100||tt===110||tt===122||tt===244||tt===44||tt===83||tt===86||tt===118||tt===128||tt===138||tt===144)&&(Mr=Pe.readUEG(),Mr===3&&Pe.readBits(1),Mr<=3&&($r=vn[Mr]),jt=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool()))for(var gt=Mr!==3?8:12,pt=0;pt<gt;pt++)Pe.readBool()&&(pt<6?Zt._skipScalingList(Pe,16):Zt._skipScalingList(Pe,64));Pe.readUEG();var ar=Pe.readUEG();if(ar===0)Pe.readUEG();else if(ar===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();for(var Ht=Pe.readUEG(),Mt=0;Mt<Ht;Mt++)Pe.readSEG()}var qt=Pe.readUEG();Pe.readBits(1);var Rt=Pe.readUEG(),Qt=Pe.readUEG(),jr=Pe.readBits(1);jr===0&&Pe.readBits(1),Pe.readBits(1);var Nr=0,Lr=0,ln=0,mn=0,ti=Pe.readBool();ti&&(Nr=Pe.readUEG(),Lr=Pe.readUEG(),ln=Pe.readUEG(),mn=Pe.readUEG());var $n=1,hi=1,Ti=0,Ni=!0,Wi=0,rt=0,Re=Pe.readBool();if(Re){if(Pe.readBool()){var Ue=Pe.readByte(),Ye=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],et=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ue>0&&Ue<16?($n=Ye[Ue-1],hi=et[Ue-1]):Ue===255&&($n=Pe.readByte()<<8|Pe.readByte(),hi=Pe.readByte()<<8|Pe.readByte())}if(Pe.readBool()&&Pe.readBool(),Pe.readBool()&&(Pe.readBits(4),Pe.readBool()&&Pe.readBits(24)),Pe.readBool()&&(Pe.readUEG(),Pe.readUEG()),Pe.readBool()){var $e=Pe.readBits(32),at=Pe.readBits(32);Ni=Pe.readBool(),Wi=at,rt=$e*2,Ti=Wi/rt}}var wt=1;($n!==1||hi!==1)&&(wt=$n/hi);var ft=0,cr=0;if(Mr===0)ft=1,cr=2-jr;else{var Jr=Mr===3?1:2,Qr=Mr===1?2:1;ft=Jr,cr=Qr*(2-jr)}var fn=(Rt+1)*16,pr=(2-jr)*((Qt+1)*16);fn-=(Nr+Lr)*ft,pr-=(ln+mn)*cr;var Wn=Math.ceil(fn*wt);return Pe.destroy(),Pe=null,{profile_string:St,level_string:Vt,bit_depth:jt,ref_frames:qt,chroma_format:$r,chroma_format_string:Zt.getChromaFormatString($r),frame_rate:{fixed:Ni,fps:Ti,fps_den:rt,fps_num:Wi},sar_ratio:{width:$n,height:hi},codec_size:{width:fn,height:pr},present_size:{width:Wn,height:pr}}}},{key:"_skipScalingList",value:function(Me,ke){for(var Pe=8,tt=8,vt=0,St=0;St<ke;St++)tt!==0&&(vt=Me.readSEG(),tt=(Pe+vt+256)%256),Pe=tt===0?Pe:tt}},{key:"getProfileString",value:function(Me){switch(Me){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(Me){return(Me/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Me){switch(Me){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Zt}(),we=fe,Ne={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},je=Ne;function me(Zt){return Zt>>>8&255|(Zt&255)<<8}function Ce(Zt){return(Zt&4278190080)>>>24|(Zt&16711680)>>>8|(Zt&65280)<<8|(Zt&255)<<24}function Fe(Zt,Nt){return Zt[Nt]<<24|Zt[Nt+1]<<16|Zt[Nt+2]<<8|Zt[Nt+3]}var it=function(){function Zt(Nt,Me){Object(y.a)(this,Zt),this.TAG="FLVDemuxer",this._config=Me,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Nt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Nt.hasAudioTrack,this._hasVideo=Nt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new He,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 ke=new ArrayBuffer(2);return new DataView(ke).setInt16(0,256,!0),new Int16Array(ke)[0]===256}()}return Object(p.a)(Zt,[{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(Me){return Me.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Me){this._onTrackMetadata=Me}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Me){this._onMediaInfo=Me}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Me){this._onMetaDataArrived=Me}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Me){this._onScriptDataArrived=Me}},{key:"onError",get:function(){return this._onError},set:function(Me){this._onError=Me}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Me){this._onDataAvailable=Me}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Me){this._timestampBase=Me}},{key:"overridedDuration",get:function(){return this._duration},set:function(Me){this._durationOverrided=!0,this._duration=Me,this._mediaInfo.duration=Me}},{key:"overridedHasAudio",set:function(Me){this._hasAudioFlagOverrided=!0,this._hasAudio=Me,this._mediaInfo.hasAudio=Me}},{key:"overridedHasVideo",set:function(Me){this._hasVideoFlagOverrided=!0,this._hasVideo=Me,this._mediaInfo.hasVideo=Me}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new He}},{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(Me,ke){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Pe=0,tt=this._littleEndian;if(ke===0)if(Me.byteLength>13){var vt=Zt.probe(Me);Pe=vt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,ke+Pe!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!");var St=new DataView(Me,Pe),Vt=St.getUint32(0,!tt);Vt!==0&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4}for(;Pe<Me.byteLength;){this._dispatch=!0;var Mr=new DataView(Me,Pe);if(Pe+11+4>Me.byteLength)break;var $r=Mr.getUint8(0),vn=Mr.getUint32(0,!tt)&16777215;if(Pe+11+vn+4>Me.byteLength)break;if($r!==8&&$r!==9&&$r!==18){u.w(this.TAG,"Unsupported tag type ".concat($r,", skipped")),Pe+=11+vn+4;continue}var jt=Mr.getUint8(4),gt=Mr.getUint8(5),pt=Mr.getUint8(6),ar=Mr.getUint8(7),Ht=pt|gt<<8|jt<<16|ar<<24,Mt=Mr.getUint32(7,!tt)&16777215;Mt!==0&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var qt=Pe+11;switch($r){case 8:this._parseAudioData(Me,qt,vn,Ht);break;case 9:this._parseVideoData(Me,qt,vn,Ht,ke+Pe);break;case 18:this._parseScriptData(Me,qt,vn);break}var Rt=Mr.getUint32(11+vn,!tt);Rt!==11+vn&&u.w(this.TAG,"Invalid PrevTagSize ".concat(Rt)),Pe+=11+vn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Pe}},{key:"_parseScriptData",value:function(Me,ke,Pe){var tt=J.parseScriptData(Me,ke,Pe);if(tt.hasOwnProperty("onMetaData")){if(tt.onMetaData==null||typeof tt.onMetaData!="object"){u.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=tt;var vt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},vt)),typeof vt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=vt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof vt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=vt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof vt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=vt.audiodatarate),typeof vt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=vt.videodatarate),typeof vt.width=="number"&&(this._mediaInfo.width=vt.width),typeof vt.height=="number"&&(this._mediaInfo.height=vt.height),typeof vt.duration=="number"){if(!this._durationOverrided){var St=Math.floor(vt.duration*this._timescale);this._duration=St,this._mediaInfo.duration=St}}else this._mediaInfo.duration=0;if(typeof vt.framerate=="number"){var Vt=Math.floor(vt.framerate*1e3);if(Vt>0){var Mr=Vt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Mr,this._referenceFrameRate.fps_num=Vt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Mr}}if(typeof vt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var $r=vt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex($r),vt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=vt,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(tt).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},tt)))}},{key:"_parseKeyframesIndex",value:function(Me){for(var ke=[],Pe=[],tt=1;tt<Me.times.length;tt++){var vt=this._timestampBase+Math.floor(Me.times[tt]*1e3);ke.push(vt),Pe.push(Me.filepositions[tt])}return{times:ke,filepositions:Pe}}},{key:"_parseAudioData",value:function(Me,ke,Pe,tt){if(Pe<=1){u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var vt=this._littleEndian,St=new DataView(Me,ke,Pe),Vt=St.getUint8(0),Mr=Vt>>>4;if(Mr!==2&&Mr!==10){this._onError(je.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Mr);return}var $r=0,vn=(Vt&12)>>>2;if(vn>=0&&vn<=4)$r=this._flvSoundRateTable[vn];else{this._onError(je.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+vn);return}var jt=(Vt&2)>>>1,gt=Vt&1,pt=this._audioMetadata,ar=this._audioTrack;if(pt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),pt=this._audioMetadata={},pt.type="audio",pt.id=ar.id,pt.timescale=this._timescale,pt.duration=this._duration,pt.audioSampleRate=$r,pt.channelCount=gt===0?1:2),Mr===10){var Ht=this._parseAACAudioData(Me,ke+1,Pe-1);if(Ht==null)return;if(Ht.packetType===0){pt.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var Mt=Ht.data;pt.audioSampleRate=Mt.samplingRate,pt.channelCount=Mt.channelCount,pt.codec=Mt.codec,pt.originalCodec=Mt.originalCodec,pt.config=Mt.config,pt.refSampleDuration=1024/pt.audioSampleRate*pt.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",pt);var qt=this._mediaInfo;qt.audioCodec=pt.originalCodec,qt.audioSampleRate=pt.audioSampleRate,qt.audioChannelCount=pt.channelCount,qt.hasVideo?qt.videoCodec!=null&&(qt.mimeType='video/x-flv; codecs="'+qt.videoCodec+","+qt.audioCodec+'"'):qt.mimeType='video/x-flv; codecs="'+qt.audioCodec+'"',qt.isComplete()&&this._onMediaInfo(qt)}else if(Ht.packetType===1){var Rt=this._timestampBase+tt,Qt={unit:Ht.data,length:Ht.data.byteLength,dts:Rt,pts:Rt};ar.samples.push(Qt),ar.length+=Ht.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Ht.packetType))}else if(Mr===2){if(!pt.codec){var jr=this._parseMP3AudioData(Me,ke+1,Pe-1,!0);if(jr==null)return;pt.audioSampleRate=jr.samplingRate,pt.channelCount=jr.channelCount,pt.codec=jr.codec,pt.originalCodec=jr.originalCodec,pt.refSampleDuration=1152/pt.audioSampleRate*pt.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",pt);var Nr=this._mediaInfo;Nr.audioCodec=pt.codec,Nr.audioSampleRate=pt.audioSampleRate,Nr.audioChannelCount=pt.channelCount,Nr.audioDataRate=jr.bitRate,Nr.hasVideo?Nr.videoCodec!=null&&(Nr.mimeType='video/x-flv; codecs="'+Nr.videoCodec+","+Nr.audioCodec+'"'):Nr.mimeType='video/x-flv; codecs="'+Nr.audioCodec+'"',Nr.isComplete()&&this._onMediaInfo(Nr)}var Lr=this._parseMP3AudioData(Me,ke+1,Pe-1,!1);if(Lr==null)return;var ln=this._timestampBase+tt,mn={unit:Lr,length:Lr.byteLength,dts:ln,pts:ln};ar.samples.push(mn),ar.length+=Lr.length}}},{key:"_parseAACAudioData",value:function(Me,ke,Pe){if(Pe<=1){u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var tt={},vt=new Uint8Array(Me,ke,Pe);return tt.packetType=vt[0],vt[0]===0?tt.data=this._parseAACAudioSpecificConfig(Me,ke+1,Pe-1):tt.data=vt.subarray(1),tt}},{key:"_parseAACAudioSpecificConfig",value:function(Me,ke,Pe){var tt=new Uint8Array(Me,ke,Pe),vt=null,St=0,Vt=0,Mr=null,$r=0,vn=null;if(St=Vt=tt[0]>>>3,$r=(tt[0]&7)<<1|tt[1]>>>7,$r<0||$r>=this._mpegSamplingRates.length){this._onError(je.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var jt=this._mpegSamplingRates[$r],gt=(tt[1]&120)>>>3;if(gt<0||gt>=8){this._onError(je.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}St===5&&(vn=(tt[1]&7)<<1|tt[2]>>>7,Mr=(tt[2]&124)>>>2);var pt=self.navigator.userAgent.toLowerCase();return pt.indexOf("firefox")!==-1?$r>=6?(St=5,vt=new Array(4),vn=$r-3):(St=2,vt=new Array(2),vn=$r):pt.indexOf("android")!==-1?(St=2,vt=new Array(2),vn=$r):(St=5,vn=$r,vt=new Array(4),$r>=6?vn=$r-3:gt===1&&(St=2,vt=new Array(2),vn=$r)),vt[0]=St<<3,vt[0]|=($r&15)>>>1,vt[1]=($r&15)<<7,vt[1]|=(gt&15)<<3,St===5&&(vt[1]|=(vn&15)>>>1,vt[2]=(vn&1)<<7,vt[2]|=2<<2,vt[3]=0),{config:vt,samplingRate:jt,channelCount:gt,codec:"mp4a.40."+St,originalCodec:"mp4a.40."+Vt}}},{key:"_parseMP3AudioData",value:function(Me,ke,Pe,tt){if(Pe<4){u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var vt=this._littleEndian,St=new Uint8Array(Me,ke,Pe),Vt=null;if(tt){if(St[0]!==255)return;var Mr=St[1]>>>3&3,$r=(St[1]&6)>>1,vn=(St[2]&240)>>>4,jt=(St[2]&12)>>>2,gt=St[3]>>>6&3,pt=gt!==3?2:1,ar=0,Ht=0,Mt=34,qt="mp3";switch(Mr){case 0:ar=this._mpegAudioV25SampleRateTable[jt];break;case 2:ar=this._mpegAudioV20SampleRateTable[jt];break;case 3:ar=this._mpegAudioV10SampleRateTable[jt];break}switch($r){case 1:Mt=34,vn<this._mpegAudioL3BitRateTable.length&&(Ht=this._mpegAudioL3BitRateTable[vn]);break;case 2:Mt=33,vn<this._mpegAudioL2BitRateTable.length&&(Ht=this._mpegAudioL2BitRateTable[vn]);break;case 3:Mt=32,vn<this._mpegAudioL1BitRateTable.length&&(Ht=this._mpegAudioL1BitRateTable[vn]);break}Vt={bitRate:Ht,samplingRate:ar,channelCount:pt,codec:qt,originalCodec:qt}}else Vt=St;return Vt}},{key:"_parseVideoData",value:function(Me,ke,Pe,tt,vt){if(Pe<=1){u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var St=new Uint8Array(Me,ke,Pe)[0],Vt=(St&240)>>>4,Mr=St&15;if(Mr!==7){this._onError(je.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Mr));return}this._parseAVCVideoPacket(Me,ke+1,Pe-1,tt,vt,Vt)}},{key:"_parseAVCVideoPacket",value:function(Me,ke,Pe,tt,vt,St){if(Pe<4){u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Vt=this._littleEndian,Mr=new DataView(Me,ke,Pe),$r=Mr.getUint8(0),vn=Mr.getUint32(0,!Vt)&16777215,jt=vn<<8>>8;if($r===0)this._parseAVCDecoderConfigurationRecord(Me,ke+4,Pe-4);else if($r===1)this._parseAVCVideoData(Me,ke+4,Pe-4,tt,vt,St,jt);else if(!($r===2)){this._onError(je.FORMAT_ERROR,"Flv: Invalid video packet type ".concat($r));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Me,ke,Pe){if(Pe<7){u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var tt=this._videoMetadata,vt=this._videoTrack,St=this._littleEndian,Vt=new DataView(Me,ke,Pe);tt?typeof tt.avcc!="undefined"&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),tt=this._videoMetadata={},tt.type="video",tt.id=vt.id,tt.timescale=this._timescale,tt.duration=this._duration);var Mr=Vt.getUint8(0),$r=Vt.getUint8(1),vn=Vt.getUint8(2),jt=Vt.getUint8(3);if(Mr!==1||$r===0){this._onError(je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Vt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(je.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var gt=Vt.getUint8(5)&31;if(gt===0){this._onError(je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else gt>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(gt));for(var pt=6,ar=0;ar<gt;ar++){var Ht=Vt.getUint16(pt,!St);if(pt+=2,Ht===0)continue;var Mt=new Uint8Array(Me,ke+pt,Ht);pt+=Ht;var qt=we.parseSPS(Mt);if(ar!==0)continue;tt.codecWidth=qt.codec_size.width,tt.codecHeight=qt.codec_size.height,tt.presentWidth=qt.present_size.width,tt.presentHeight=qt.present_size.height,tt.profile=qt.profile_string,tt.level=qt.level_string,tt.bitDepth=qt.bit_depth,tt.chromaFormat=qt.chroma_format,tt.sarRatio=qt.sar_ratio,tt.frameRate=qt.frame_rate,(qt.frame_rate.fixed===!1||qt.frame_rate.fps_num===0||qt.frame_rate.fps_den===0)&&(tt.frameRate=this._referenceFrameRate);var Rt=tt.frameRate.fps_den,Qt=tt.frameRate.fps_num;tt.refSampleDuration=tt.timescale*(Rt/Qt);for(var jr=Mt.subarray(1,4),Nr="avc1.",Lr=0;Lr<3;Lr++){var ln=jr[Lr].toString(16);ln.length<2&&(ln="0"+ln),Nr+=ln}tt.codec=Nr;var mn=this._mediaInfo;mn.width=tt.codecWidth,mn.height=tt.codecHeight,mn.fps=tt.frameRate.fps,mn.profile=tt.profile,mn.level=tt.level,mn.refFrames=qt.ref_frames,mn.chromaFormat=qt.chroma_format_string,mn.sarNum=tt.sarRatio.width,mn.sarDen=tt.sarRatio.height,mn.videoCodec=Nr,mn.hasAudio?mn.audioCodec!=null&&(mn.mimeType='video/x-flv; codecs="'+mn.videoCodec+","+mn.audioCodec+'"'):mn.mimeType='video/x-flv; codecs="'+mn.videoCodec+'"',mn.isComplete()&&this._onMediaInfo(mn)}var ti=Vt.getUint8(pt);if(ti===0){this._onError(je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ti>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ti));pt++;for(var $n=0;$n<ti;$n++){var hi=Vt.getUint16(pt,!St);if(pt+=2,hi===0)continue;pt+=hi}tt.avcc=new Uint8Array(Pe),tt.avcc.set(new Uint8Array(Me,ke,Pe),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",tt)}},{key:"_parseAVCVideoData",value:function(Me,ke,Pe,tt,vt,St,Vt){for(var Mr=this._littleEndian,$r=new DataView(Me,ke,Pe),vn=[],jt=0,gt=0,pt=this._naluLengthSize,ar=this._timestampBase+tt,Ht=St===1;gt<Pe;){if(gt+4>=Pe){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(ar,", offset = ").concat(gt,", dataSize = ").concat(Pe));break}var Mt=$r.getUint32(gt,!Mr);if(pt===3&&(Mt>>>=8),Mt>Pe-pt){u.w(this.TAG,"Malformed Nalus near timestamp ".concat(ar,", NaluSize > DataSize!"));return}var qt=$r.getUint8(gt+pt)&31;qt===5&&(Ht=!0);var Rt=new Uint8Array(Me,ke+gt,pt+Mt),Qt={type:qt,data:Rt};vn.push(Qt),jt+=Rt.byteLength,gt+=pt+Mt}if(vn.length){var jr=this._videoTrack,Nr={units:vn,length:jt,isKeyframe:Ht,dts:ar,cts:Vt,pts:ar+Vt};Ht&&(Nr.fileposition=vt),jr.samples.push(Nr),jr.length+=jt}}}],[{key:"probe",value:function(Me){var ke=new Uint8Array(Me),Pe={match:!1};if(ke[0]!==70||ke[1]!==76||ke[2]!==86||ke[3]!==1)return Pe;var tt=(ke[4]&4)>>>2!==0,vt=(ke[4]&1)!==0,St=Fe(ke,5);return St<9?Pe:{match:!0,consumed:St,dataOffset:St,hasAudioTrack:tt,hasVideoTrack:vt}}}]),Zt}(),Ct=it,mt=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"init",value:function(){Zt.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 Me in Zt.types)Zt.types.hasOwnProperty(Me)&&(Zt.types[Me]=[Me.charCodeAt(0),Me.charCodeAt(1),Me.charCodeAt(2),Me.charCodeAt(3)]);var ke=Zt.constants={};ke.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ke.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ke.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ke.STSC=ke.STCO=ke.STTS,ke.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ke.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]),ke.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]),ke.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ke.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ke.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Me){for(var ke=8,Pe=null,tt=Array.prototype.slice.call(arguments,1),vt=tt.length,St=0;St<vt;St++)ke+=tt[St].byteLength;Pe=new Uint8Array(ke),Pe[0]=ke>>>24&255,Pe[1]=ke>>>16&255,Pe[2]=ke>>>8&255,Pe[3]=ke&255,Pe.set(Me,4);for(var Vt=8,Mr=0;Mr<vt;Mr++)Pe.set(tt[Mr],Vt),Vt+=tt[Mr].byteLength;return Pe}},{key:"generateInitSegment",value:function(Me){var ke=Zt.box(Zt.types.ftyp,Zt.constants.FTYP),Pe=Zt.moov(Me),tt=new Uint8Array(ke.byteLength+Pe.byteLength);return tt.set(ke,0),tt.set(Pe,ke.byteLength),tt}},{key:"moov",value:function(Me){var ke=Zt.mvhd(Me.timescale,Me.duration),Pe=Zt.trak(Me),tt=Zt.mvex(Me);return Zt.box(Zt.types.moov,ke,Pe,tt)}},{key:"mvhd",value:function(Me,ke){return Zt.box(Zt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&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(Me){return Zt.box(Zt.types.trak,Zt.tkhd(Me),Zt.mdia(Me))}},{key:"tkhd",value:function(Me){var ke=Me.id,Pe=Me.duration,tt=Me.presentWidth,vt=Me.presentHeight;return Zt.box(Zt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&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,tt>>>8&255,tt&255,0,0,vt>>>8&255,vt&255,0,0]))}},{key:"mdia",value:function(Me){return Zt.box(Zt.types.mdia,Zt.mdhd(Me),Zt.hdlr(Me),Zt.minf(Me))}},{key:"mdhd",value:function(Me){var ke=Me.timescale,Pe=Me.duration;return Zt.box(Zt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}},{key:"hdlr",value:function(Me){var ke=null;return Me.type==="audio"?ke=Zt.constants.HDLR_AUDIO:ke=Zt.constants.HDLR_VIDEO,Zt.box(Zt.types.hdlr,ke)}},{key:"minf",value:function(Me){var ke=null;return Me.type==="audio"?ke=Zt.box(Zt.types.smhd,Zt.constants.SMHD):ke=Zt.box(Zt.types.vmhd,Zt.constants.VMHD),Zt.box(Zt.types.minf,ke,Zt.dinf(),Zt.stbl(Me))}},{key:"dinf",value:function(){var Me=Zt.box(Zt.types.dinf,Zt.box(Zt.types.dref,Zt.constants.DREF));return Me}},{key:"stbl",value:function(Me){var ke=Zt.box(Zt.types.stbl,Zt.stsd(Me),Zt.box(Zt.types.stts,Zt.constants.STTS),Zt.box(Zt.types.stsc,Zt.constants.STSC),Zt.box(Zt.types.stsz,Zt.constants.STSZ),Zt.box(Zt.types.stco,Zt.constants.STCO));return ke}},{key:"stsd",value:function(Me){return Me.type==="audio"?Me.codec==="mp3"?Zt.box(Zt.types.stsd,Zt.constants.STSD_PREFIX,Zt.mp3(Me)):Zt.box(Zt.types.stsd,Zt.constants.STSD_PREFIX,Zt.mp4a(Me)):Zt.box(Zt.types.stsd,Zt.constants.STSD_PREFIX,Zt.avc1(Me))}},{key:"mp3",value:function(Me){var ke=Me.channelCount,Pe=Me.audioSampleRate,tt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ke,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Zt.box(Zt.types[".mp3"],tt)}},{key:"mp4a",value:function(Me){var ke=Me.channelCount,Pe=Me.audioSampleRate,tt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ke,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Zt.box(Zt.types.mp4a,tt,Zt.esds(Me))}},{key:"esds",value:function(Me){var ke=Me.config||[],Pe=ke.length,tt=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(ke).concat([6,1,2]));return Zt.box(Zt.types.esds,tt)}},{key:"avc1",value:function(Me){var ke=Me.avcc,Pe=Me.codecWidth,tt=Me.codecHeight,vt=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,Pe>>>8&255,Pe&255,tt>>>8&255,tt&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 Zt.box(Zt.types.avc1,vt,Zt.box(Zt.types.avcC,ke))}},{key:"mvex",value:function(Me){return Zt.box(Zt.types.mvex,Zt.trex(Me))}},{key:"trex",value:function(Me){var ke=Me.id,Pe=new Uint8Array([0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Zt.box(Zt.types.trex,Pe)}},{key:"moof",value:function(Me,ke){return Zt.box(Zt.types.moof,Zt.mfhd(Me.sequenceNumber),Zt.traf(Me,ke))}},{key:"mfhd",value:function(Me){var ke=new Uint8Array([0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255]);return Zt.box(Zt.types.mfhd,ke)}},{key:"traf",value:function(Me,ke){var Pe=Me.id,tt=Zt.box(Zt.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),vt=Zt.box(Zt.types.tfdt,new Uint8Array([0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255])),St=Zt.sdtp(Me),Vt=Zt.trun(Me,St.byteLength+16+16+8+16+8+8);return Zt.box(Zt.types.traf,tt,vt,Vt,St)}},{key:"sdtp",value:function(Me){for(var ke=Me.samples||[],Pe=ke.length,tt=new Uint8Array(4+Pe),vt=0;vt<Pe;vt++){var St=ke[vt].flags;tt[vt+4]=St.isLeading<<6|St.dependsOn<<4|St.isDependedOn<<2|St.hasRedundancy}return Zt.box(Zt.types.sdtp,tt)}},{key:"trun",value:function(Me,ke){var Pe=Me.samples||[],tt=Pe.length,vt=12+16*tt,St=new Uint8Array(vt);ke+=8+vt,St.set([0,0,15,1,tt>>>24&255,tt>>>16&255,tt>>>8&255,tt&255,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255],0);for(var Vt=0;Vt<tt;Vt++){var Mr=Pe[Vt].duration,$r=Pe[Vt].size,vn=Pe[Vt].flags,jt=Pe[Vt].cts;St.set([Mr>>>24&255,Mr>>>16&255,Mr>>>8&255,Mr&255,$r>>>24&255,$r>>>16&255,$r>>>8&255,$r&255,vn.isLeading<<2|vn.dependsOn,vn.isDependedOn<<6|vn.hasRedundancy<<4|vn.isNonSync,0,0,jt>>>24&255,jt>>>16&255,jt>>>8&255,jt&255],12+16*Vt)}return Zt.box(Zt.types.trun,St)}},{key:"mdat",value:function(Me){return Zt.box(Zt.types.mdat,Me)}}]),Zt}();mt.init();var Ve=mt,or=function(){function Zt(){Object(y.a)(this,Zt)}return Object(p.a)(Zt,null,[{key:"getSilentFrame",value:function(Me,ke){if(Me==="mp4a.40.2"){if(ke===1)return new Uint8Array([0,200,0,128,35,128]);if(ke===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ke===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ke===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ke===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(ke===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(ke===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(ke===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(ke===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}}]),Zt}(),dt=or,Yt=Object(p.a)(function Zt(Nt,Me,ke,Pe,tt){Object(y.a)(this,Zt),this.dts=Nt,this.pts=Me,this.duration=ke,this.originalDts=Pe,this.isSyncPoint=tt,this.fileposition=null}),hr=function(){function Zt(){Object(y.a)(this,Zt),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)(Zt,[{key:"appendSyncPoint",value:function(Me){Me.isSyncPoint=!0,this.syncPoints.push(Me)}}]),Zt}(),Gt=function(){function Zt(){Object(y.a)(this,Zt),this._list=[]}return Object(p.a)(Zt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Me){var ke=this._list;if(Me.length===0)return;ke.length>0&&Me[0].originalDts<ke[ke.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ke,Me)}},{key:"getLastSyncPointBeforeDts",value:function(Me){if(this._list.length==0)return null;var ke=this._list,Pe=0,tt=ke.length-1,vt=0,St=0,Vt=tt;for(Me<ke[0].dts&&(Pe=0,St=Vt+1);St<=Vt;)if(vt=St+Math.floor((Vt-St)/2),vt===tt||Me>=ke[vt].dts&&Me<ke[vt+1].dts){Pe=vt;break}else ke[vt].dts<Me?St=vt+1:Vt=vt-1;return this._list[Pe]}}]),Zt}(),Pt=function(){function Zt(Nt){Object(y.a)(this,Zt),this._type=Nt,this._list=[],this._lastAppendLocation=-1}return Object(p.a)(Zt,[{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(Me){var ke=this._list;if(ke.length===0)return-2;var Pe=ke.length-1,tt=0,vt=0,St=Pe,Vt=0;if(Me<ke[0].originalBeginDts)return Vt=-1,Vt;for(;vt<=St;)if(tt=vt+Math.floor((St-vt)/2),tt===Pe||Me>ke[tt].lastSample.originalDts&&Me<ke[tt+1].originalBeginDts){Vt=tt;break}else ke[tt].originalBeginDts<Me?vt=tt+1:St=tt-1;return Vt}},{key:"_searchNearestSegmentAfter",value:function(Me){return this._searchNearestSegmentBefore(Me)+1}},{key:"append",value:function(Me){var ke=this._list,Pe=Me,tt=this._lastAppendLocation,vt=0;tt!==-1&&tt<ke.length&&Pe.originalBeginDts>=ke[tt].lastSample.originalDts&&(tt===ke.length-1||tt<ke.length-1&&Pe.originalBeginDts<ke[tt+1].originalBeginDts)?vt=tt+1:ke.length>0&&(vt=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=vt,this._list.splice(vt,0,Pe)}},{key:"getLastSegmentBefore",value:function(Me){var ke=this._searchNearestSegmentBefore(Me);return ke>=0?this._list[ke]:null}},{key:"getLastSampleBefore",value:function(Me){var ke=this.getLastSegmentBefore(Me);return ke!=null?ke.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Me){for(var ke=this._searchNearestSegmentBefore(Me),Pe=this._list[ke].syncPoints;Pe.length===0&&ke>0;)ke--,Pe=this._list[ke].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}]),Zt}(),Xt=function(){function Zt(Nt){Object(y.a)(this,Zt),this.TAG="MP4Remuxer",this._config=Nt,this._isLive=Nt.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 Pt("audio"),this._videoSegmentInfoList=new Pt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661)),this._fillSilentAfterSeek=C.msedge||C.msie,this._mp3UseMpegAudio=!C.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(p.a)(Zt,[{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(Me){return Me.onDataAvailable=this.remux.bind(this),Me.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Me){this._onInitSegment=Me}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Me){this._onMediaSegment=Me}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Me){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Me,ke){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Me,ke),this._remuxVideo(ke),this._remuxAudio(Me)}},{key:"_onTrackMetadataReceived",value:function(Me,ke){var Pe=null,tt="mp4",vt=ke.codec;if(Me==="audio")this._audioMeta=ke,ke.codec==="mp3"&&this._mp3UseMpegAudio?(tt="mpeg",vt="",Pe=new Uint8Array):Pe=Ve.generateInitSegment(ke);else if(Me==="video")this._videoMeta=ke,Pe=Ve.generateInitSegment(ke);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Me,{type:Me,data:Pe.buffer,codec:vt,container:"".concat(Me,"/").concat(tt),mediaDuration:ke.duration})}},{key:"_calculateDtsBase",value:function(Me,ke){if(this._dtsBaseInited)return;Me.samples&&Me.samples.length&&(this._audioDtsBase=Me.samples[0].dts),ke.samples&&ke.samples.length&&(this._videoDtsBase=ke.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Me=this._videoStashedLastSample,ke=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Me!=null&&(Pe.samples.push(Me),Pe.length=Me.length);var tt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ke!=null&&(tt.samples.push(ke),tt.length=ke.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(tt,!0)}},{key:"_remuxAudio",value:function(Me,ke){if(this._audioMeta==null)return;var Pe=Me,tt=Pe.samples,vt=void 0,St=-1,Vt=-1,Mr=-1,$r=this._audioMeta.refSampleDuration,vn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,jt=this._dtsBaseInited&&this._audioNextDts===void 0,gt=!1;if(!tt||tt.length===0)return;if(tt.length===1&&!ke)return;var pt=0,ar=null,Ht=0;vn?(pt=0,Ht=Pe.length):(pt=8,Ht=8+Pe.length);var Mt=null;if(tt.length>1&&(Mt=tt.pop(),Ht-=Mt.length),this._audioStashedLastSample!=null){var qt=this._audioStashedLastSample;this._audioStashedLastSample=null,tt.unshift(qt),Ht+=qt.length}Mt!=null&&(this._audioStashedLastSample=Mt);var Rt=tt[0].dts-this._dtsBase;if(this._audioNextDts)vt=Rt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())vt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(gt=!0));else{var Qt=this._audioSegmentInfoList.getLastSampleBefore(Rt);if(Qt!=null){var jr=Rt-(Qt.originalDts+Qt.duration);jr<=3&&(jr=0);var Nr=Qt.dts+Qt.duration+jr;vt=Rt-Nr}else vt=0}if(gt){var Lr=Rt-vt,ln=this._videoSegmentInfoList.getLastSegmentBefore(Rt);if(ln!=null&&ln.beginDts<Lr){var mn=dt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(mn){var ti=ln.beginDts,$n=Lr-ln.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ti,", duration: ").concat($n)),tt.unshift({unit:mn,dts:ti,pts:ti}),Ht+=mn.byteLength}}else gt=!1}for(var hi=[],Ti=0;Ti<tt.length;Ti++){var Ni=tt[Ti],Wi=Ni.unit,rt=Ni.dts-this._dtsBase,Re=rt-vt;St===-1&&(St=Re);var Ue=0;if(Ti!==tt.length-1){var Ye=tt[Ti+1].dts-this._dtsBase-vt;Ue=Ye-Re}else if(Mt!=null){var et=Mt.dts-this._dtsBase-vt;Ue=et-Re}else hi.length>=1?Ue=hi[hi.length-1].duration:Ue=Math.floor($r);var $e=!1,at=null;if(Ue>$r*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){$e=!0;var wt=Math.abs(Ue-$r),ft=Math.ceil(wt/$r),cr=Re+$r;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(Re+Ue," ms, expected: ").concat(Re+Math.round($r)," ms, ")+"delta: ".concat(Math.round(wt)," ms, generate: ").concat(ft," frames"));var Jr=dt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Jr==null&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Jr=Wi),at=[];for(var Qr=0;Qr<ft;Qr++){var fn=Math.round(cr);if(at.length>0){var pr=at[at.length-1];pr.duration=fn-pr.dts}var Wn={dts:fn,pts:fn,cts:0,unit:Jr,size:Jr.byteLength,duration:0,originalDts:rt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};at.push(Wn),Ht+=Wn.size,cr+=$r}var kr=at[at.length-1];kr.duration=Re+Ue-kr.dts,Ue=Math.round($r)}hi.push({dts:Re,pts:Re,cts:0,unit:Ni.unit,size:Ni.unit.byteLength,duration:Ue,originalDts:rt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),$e&&hi.push.apply(hi,at)}vn?ar=new Uint8Array(Ht):(ar=new Uint8Array(Ht),ar[0]=Ht>>>24&255,ar[1]=Ht>>>16&255,ar[2]=Ht>>>8&255,ar[3]=Ht&255,ar.set(Ve.types.mdat,4));for(var kn=0;kn<hi.length;kn++){var bn=hi[kn].unit;ar.set(bn,pt),pt+=bn.byteLength}var qr=hi[hi.length-1];Vt=qr.dts+qr.duration,this._audioNextDts=Vt;var fi=new hr;fi.beginDts=St,fi.endDts=Vt,fi.beginPts=St,fi.endPts=Vt,fi.originalBeginDts=hi[0].originalDts,fi.originalEndDts=qr.originalDts+qr.duration,fi.firstSample=new Yt(hi[0].dts,hi[0].pts,hi[0].duration,hi[0].originalDts,!1),fi.lastSample=new Yt(qr.dts,qr.pts,qr.duration,qr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(fi),Pe.samples=hi,Pe.sequenceNumber++;var Mi=null;vn?Mi=new Uint8Array:Mi=Ve.moof(Pe,St),Pe.samples=[],Pe.length=0;var Zi={type:"audio",data:this._mergeBoxes(Mi,ar).buffer,sampleCount:hi.length,info:fi};vn&&jt&&(Zi.timestampOffset=St),this._onMediaSegment("audio",Zi)}},{key:"_remuxVideo",value:function(Me,ke){if(this._videoMeta==null)return;var Pe=Me,tt=Pe.samples,vt=void 0,St=-1,Vt=-1,Mr=-1,$r=-1;if(!tt||tt.length===0)return;if(tt.length===1&&!ke)return;var vn=8,jt=null,gt=8+Me.length,pt=null;if(tt.length>1&&(pt=tt.pop(),gt-=pt.length),this._videoStashedLastSample!=null){var ar=this._videoStashedLastSample;this._videoStashedLastSample=null,tt.unshift(ar),gt+=ar.length}pt!=null&&(this._videoStashedLastSample=pt);var Ht=tt[0].dts-this._dtsBase;if(this._videoNextDts)vt=Ht-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())vt=0;else{var Mt=this._videoSegmentInfoList.getLastSampleBefore(Ht);if(Mt!=null){var qt=Ht-(Mt.originalDts+Mt.duration);qt<=3&&(qt=0);var Rt=Mt.dts+Mt.duration+qt;vt=Ht-Rt}else vt=0}for(var Qt=new hr,jr=[],Nr=0;Nr<tt.length;Nr++){var Lr=tt[Nr],ln=Lr.dts-this._dtsBase,mn=Lr.isKeyframe,ti=ln-vt,$n=Lr.cts,hi=ti+$n;St===-1&&(St=ti,Mr=hi);var Ti=0;if(Nr!==tt.length-1){var Ni=tt[Nr+1].dts-this._dtsBase-vt;Ti=Ni-ti}else if(pt!=null){var Wi=pt.dts-this._dtsBase-vt;Ti=Wi-ti}else jr.length>=1?Ti=jr[jr.length-1].duration:Ti=Math.floor(this._videoMeta.refSampleDuration);if(mn){var rt=new Yt(ti,hi,Ti,Lr.dts,!0);rt.fileposition=Lr.fileposition,Qt.appendSyncPoint(rt)}jr.push({dts:ti,pts:hi,cts:$n,units:Lr.units,size:Lr.length,isKeyframe:mn,duration:Ti,originalDts:ln,flags:{isLeading:0,dependsOn:mn?2:1,isDependedOn:mn?1:0,hasRedundancy:0,isNonSync:mn?0:1}})}jt=new Uint8Array(gt),jt[0]=gt>>>24&255,jt[1]=gt>>>16&255,jt[2]=gt>>>8&255,jt[3]=gt&255,jt.set(Ve.types.mdat,4);for(var Re=0;Re<jr.length;Re++)for(var Ue=jr[Re].units;Ue.length;){var Ye=Ue.shift(),et=Ye.data;jt.set(et,vn),vn+=et.byteLength}var $e=jr[jr.length-1];if(Vt=$e.dts+$e.duration,$r=$e.pts+$e.duration,this._videoNextDts=Vt,Qt.beginDts=St,Qt.endDts=Vt,Qt.beginPts=Mr,Qt.endPts=$r,Qt.originalBeginDts=jr[0].originalDts,Qt.originalEndDts=$e.originalDts+$e.duration,Qt.firstSample=new Yt(jr[0].dts,jr[0].pts,jr[0].duration,jr[0].originalDts,jr[0].isKeyframe),Qt.lastSample=new Yt($e.dts,$e.pts,$e.duration,$e.originalDts,$e.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Qt),Pe.samples=jr,Pe.sequenceNumber++,this._forceFirstIDR){var at=jr[0].flags;at.dependsOn=2,at.isNonSync=0}var wt=Ve.moof(Pe,St);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(wt,jt).buffer,sampleCount:jr.length,info:Qt})}},{key:"_mergeBoxes",value:function(Me,ke){var Pe=new Uint8Array(Me.byteLength+ke.byteLength);return Pe.set(Me,0),Pe.set(ke,Me.byteLength),Pe}}]),Zt}(),Ge=Xt,pe={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"},se=pe,lt=function(){function Zt(Nt,Me){Object(y.a)(this,Zt),this.TAG="TransmuxingController",this._emitter=new f.a,this._config=Me,Nt.segments||(Nt.segments=[{duration:Nt.duration,filesize:Nt.filesize,url:Nt.url}]),typeof Nt.cors!="boolean"&&(Nt.cors=!0),typeof Nt.withCredentials!="boolean"&&(Nt.withCredentials=!1),this._mediaDataSource=Nt,this._currentSegmentIndex=0;var ke=0;this._mediaDataSource.segments.forEach(function(Pe){Pe.timestampBase=ke,ke+=Pe.duration,Pe.cors=Nt.cors,Pe.withCredentials=Nt.withCredentials,Me.referrerPolicy&&(Pe.referrerPolicy=Me.referrerPolicy)}),!isNaN(ke)&&this._mediaDataSource.duration!==ke&&(this._mediaDataSource.duration=ke),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)(Zt,[{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(Me,ke){this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Me,ke){this._currentSegmentIndex=Me;var Pe=this._mediaDataSource.segments[Me],tt=this._ioctl=new Q(Pe,this._config,Me);tt.onError=this._onIOException.bind(this),tt.onSeeked=this._onIOSeeked.bind(this),tt.onComplete=this._onIOComplete.bind(this),tt.onRedirect=this._onIORedirect.bind(this),tt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ke?this._demuxer.bindDataSource(this._ioctl):tt.onDataArrival=this._onInitChunkArrival.bind(this),tt.open(ke)}},{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(Me){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var ke=this._searchSegmentIndexContains(Me);if(ke===this._currentSegmentIndex){var Pe=this._mediaInfo.segments[ke];if(Pe==null)this._pendingSeekTime=Me;else{var tt=Pe.getNearestKeyframe(Me);this._remuxer.seek(tt.milliseconds),this._ioctl.seek(tt.fileposition),this._pendingResolveSeekPoint=tt.milliseconds}}else{var vt=this._mediaInfo.segments[ke];if(vt==null)this._pendingSeekTime=Me,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ke);else{var St=vt.getNearestKeyframe(Me);this._internalAbort(),this._remuxer.seek(Me),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ke].timestampBase,this._loadSegment(ke,St.fileposition),this._pendingResolveSeekPoint=St.milliseconds,this._reportSegmentMediaInfo(ke)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Me){for(var ke=this._mediaDataSource.segments,Pe=ke.length-1,tt=0;tt<ke.length;tt++)if(Me<ke[tt].timestampBase){Pe=tt-1;break}return Pe}},{key:"_onInitChunkArrival",value:function(Me,ke){var Pe=this,tt=null,vt=0;if(ke>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,vt=this._demuxer.parseChunks(Me,ke);else if((tt=Ct.probe(Me)).match){this._demuxer=new Ct(tt,this._config),this._remuxer||(this._remuxer=new Ge(this._config));var St=this._mediaDataSource;St.duration!=null&&!isNaN(St.duration)&&(this._demuxer.overridedDuration=St.duration),typeof St.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=St.hasAudio),typeof St.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=St.hasVideo),this._demuxer.timestampBase=St.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),vt=this._demuxer.parseChunks(Me,ke)}else tt=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Pe._internalAbort()}),this._emitter.emit(se.DEMUX_ERROR,je.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),vt=0;return vt}},{key:"_onMediaInfo",value:function(Me){var ke=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Me),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,He.prototype));var Pe=Object.assign({},Me);Object.setPrototypeOf(Pe,He.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Pe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var tt=ke._pendingSeekTime;ke._pendingSeekTime=null,ke.seek(tt)})}},{key:"_onMetaDataArrived",value:function(Me){this._emitter.emit(se.METADATA_ARRIVED,Me)}},{key:"_onScriptDataArrived",value:function(Me){this._emitter.emit(se.SCRIPTDATA_ARRIVED,Me)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Me){var ke=Me,Pe=ke+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(se.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Me){var ke=this._ioctl.extraData;this._mediaDataSource.segments[ke].redirectedURL=Me}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(se.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Me,ke){u.e(this.TAG,"IOException: type = ".concat(Me,", code = ").concat(ke.code,", msg = ").concat(ke.msg)),this._emitter.emit(se.IO_ERROR,Me,ke),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Me,ke){u.e(this.TAG,"DemuxException: type = ".concat(Me,", info = ").concat(ke)),this._emitter.emit(se.DEMUX_ERROR,Me,ke)}},{key:"_onRemuxerInitSegmentArrival",value:function(Me,ke){this._emitter.emit(se.INIT_SEGMENT,Me,ke)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Me,ke){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(se.MEDIA_SEGMENT,Me,ke),this._pendingResolveSeekPoint!=null&&Me==="video"){var Pe=ke.info.syncPoints,tt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&Pe.length>0&&Pe[0].originalDts===tt&&(tt=Pe[0].pts),this._emitter.emit(se.RECOMMEND_SEEKPOINT,tt)}}},{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(Me){var ke=this._mediaInfo.segments[Me],Pe=Object.assign({},ke);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(se.MEDIA_INFO,Pe)}},{key:"_reportStatisticsInfo",value:function(){var Me={};Me.url=this._ioctl.currentURL,Me.hasRedirect=this._ioctl.hasRedirect,Me.hasRedirect&&(Me.redirectedURL=this._ioctl.currentRedirectedURL),Me.speed=this._ioctl.currentSpeed,Me.loaderType=this._ioctl.loaderType,Me.currentSegmentIndex=this._currentSegmentIndex,Me.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(se.STATISTICS_INFO,Me)}}]),Zt}(),Ze=lt,de=function(Nt){var Me="TransmuxingWorker",ke=null,Pe=Ht.bind(this);A.install(),Nt.addEventListener("message",function(Mt){switch(Mt.data.cmd){case"init":ke=new Ze(Mt.data.param[0],Mt.data.param[1]),ke.on(se.IO_ERROR,gt.bind(this)),ke.on(se.DEMUX_ERROR,pt.bind(this)),ke.on(se.INIT_SEGMENT,tt.bind(this)),ke.on(se.MEDIA_SEGMENT,vt.bind(this)),ke.on(se.LOADING_COMPLETE,St.bind(this)),ke.on(se.RECOVERED_EARLY_EOF,Vt.bind(this)),ke.on(se.MEDIA_INFO,Mr.bind(this)),ke.on(se.METADATA_ARRIVED,$r.bind(this)),ke.on(se.SCRIPTDATA_ARRIVED,vn.bind(this)),ke.on(se.STATISTICS_INFO,jt.bind(this)),ke.on(se.RECOMMEND_SEEKPOINT,ar.bind(this));break;case"destroy":ke&&(ke.destroy(),ke=null),Nt.postMessage({msg:"destroyed"});break;case"start":ke.start();break;case"stop":ke.stop();break;case"seek":ke.seek(Mt.data.param);break;case"pause":ke.pause();break;case"resume":ke.resume();break;case"logging_config":{var qt=Mt.data.param;Ee.applyConfig(qt),qt.enableCallback===!0?Ee.addLogListener(Pe):Ee.removeLogListener(Pe);break}}});function tt(Mt,qt){var Rt={msg:se.INIT_SEGMENT,data:{type:Mt,data:qt}};Nt.postMessage(Rt,[qt.data])}function vt(Mt,qt){var Rt={msg:se.MEDIA_SEGMENT,data:{type:Mt,data:qt}};Nt.postMessage(Rt,[qt.data])}function St(){var Mt={msg:se.LOADING_COMPLETE};Nt.postMessage(Mt)}function Vt(){var Mt={msg:se.RECOVERED_EARLY_EOF};Nt.postMessage(Mt)}function Mr(Mt){var qt={msg:se.MEDIA_INFO,data:Mt};Nt.postMessage(qt)}function $r(Mt){var qt={msg:se.METADATA_ARRIVED,data:Mt};Nt.postMessage(qt)}function vn(Mt){var qt={msg:se.SCRIPTDATA_ARRIVED,data:Mt};Nt.postMessage(qt)}function jt(Mt){var qt={msg:se.STATISTICS_INFO,data:Mt};Nt.postMessage(qt)}function gt(Mt,qt){Nt.postMessage({msg:se.IO_ERROR,data:{type:Mt,info:qt}})}function pt(Mt,qt){Nt.postMessage({msg:se.DEMUX_ERROR,data:{type:Mt,info:qt}})}function ar(Mt){Nt.postMessage({msg:se.RECOMMEND_SEEKPOINT,data:Mt})}function Ht(Mt,qt){Nt.postMessage({msg:"logcat_callback",data:{type:Mt,logcat:qt}})}},_t=de,er=function(){function Zt(Nt,Me){if(Object(y.a)(this,Zt),this.TAG="Transmuxer",this._emitter=new f.a,Me.enableWorker&&typeof Worker!="undefined")try{var ke=n("0r65");this._worker=ke(_t),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Nt,Me]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Ee.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Ee.getConfig()})}catch(tt){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ze(Nt,Me)}else this._controller=new Ze(Nt,Me);if(this._controller){var Pe=this._controller;Pe.on(se.IO_ERROR,this._onIOError.bind(this)),Pe.on(se.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(se.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(se.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(se.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(se.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(se.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(se.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(se.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(se.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(se.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(p.a)(Zt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Ee.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Me,ke){this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{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(Me){this._worker?this._worker.postMessage({cmd:"seek",param:Me}):this._controller.seek(Me)}},{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(Me,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.INIT_SEGMENT,Me,ke)})}},{key:"_onMediaSegment",value:function(Me,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.MEDIA_SEGMENT,Me,ke)})}},{key:"_onLoadingComplete",value:function(){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(se.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(se.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.MEDIA_INFO,Me)})}},{key:"_onMetaDataArrived",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.METADATA_ARRIVED,Me)})}},{key:"_onScriptDataArrived",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.SCRIPTDATA_ARRIVED,Me)})}},{key:"_onStatisticsInfo",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.STATISTICS_INFO,Me)})}},{key:"_onIOError",value:function(Me,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.IO_ERROR,Me,ke)})}},{key:"_onDemuxError",value:function(Me,ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(se.DEMUX_ERROR,Me,ke)})}},{key:"_onRecommendSeekpoint",value:function(Me){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(se.RECOMMEND_SEEKPOINT,Me)})}},{key:"_onLoggingConfigChanged",value:function(Me){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Me})}},{key:"_onWorkerMessage",value:function(Me){var ke=Me.data,Pe=ke.data;if(ke.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ke.msg){case se.INIT_SEGMENT:case se.MEDIA_SEGMENT:this._emitter.emit(ke.msg,Pe.type,Pe.data);break;case se.LOADING_COMPLETE:case se.RECOVERED_EARLY_EOF:this._emitter.emit(ke.msg);break;case se.MEDIA_INFO:Object.setPrototypeOf(Pe,He.prototype),this._emitter.emit(ke.msg,Pe);break;case se.METADATA_ARRIVED:case se.SCRIPTDATA_ARRIVED:case se.STATISTICS_INFO:this._emitter.emit(ke.msg,Pe);break;case se.IO_ERROR:case se.DEMUX_ERROR:this._emitter.emit(ke.msg,Pe.type,Pe.info);break;case se.RECOMMEND_SEEKPOINT:this._emitter.emit(ke.msg,Pe);break;case"logcat_callback":u.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}]),Zt}(),yt=er,Ar={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},Sr=Ar,Cn=function(){function Zt(Nt){Object(y.a)(this,Zt),this.TAG="MSEController",this._config=Nt,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 Gt}return Object(p.a)(Zt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Me,ke){this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"attachMediaElement",value:function(Me){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var ke=this._mediaSource=new window.MediaSource;ke.addEventListener("sourceopen",this.e.onSourceOpen),ke.addEventListener("sourceended",this.e.onSourceEnded),ke.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Me,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Me.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Me=this._mediaSource;for(var ke in this._sourceBuffers){var Pe=this._pendingSegments[ke];Pe.splice(0,Pe.length),this._pendingSegments[ke]=null,this._pendingRemoveRanges[ke]=null,this._lastInitSegments[ke]=null;var tt=this._sourceBuffers[ke];if(tt){if(Me.readyState!=="closed"){try{Me.removeSourceBuffer(tt)}catch(vt){u.e(this.TAG,vt.message)}tt.removeEventListener("error",this.e.onSourceBufferError),tt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ke]=null,this._sourceBuffers[ke]=null}}if(Me.readyState==="open")try{Me.endOfStream()}catch(vt){u.e(this.TAG,vt.message)}Me.removeEventListener("sourceopen",this.e.onSourceOpen),Me.removeEventListener("sourceended",this.e.onSourceEnded),Me.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(Me,ke){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Me),this._pendingSegments[Me.type].push(Me);return}var Pe=Me,tt="".concat(Pe.container);Pe.codec&&Pe.codec.length>0&&(tt+=";codecs=".concat(Pe.codec));var vt=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+tt),this._lastInitSegments[Pe.type]=Pe,tt!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])u.v(this.TAG,"Notice: ".concat(Pe.type," mimeType changed, origin: ").concat(this._mimeTypes[Pe.type],", target: ").concat(tt));else{vt=!0;try{var St=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(tt);St.addEventListener("error",this.e.onSourceBufferError),St.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Vt){u.e(this.TAG,Vt.message),this._emitter.emit(Sr.ERROR,{code:Vt.code,msg:Vt.message});return}}this._mimeTypes[Pe.type]=tt}ke||this._pendingSegments[Pe.type].push(Pe),vt||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),C.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Me){var ke=Me;this._pendingSegments[ke.type].push(ke),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Pe=this._sourceBuffers[ke.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Me){for(var ke in this._sourceBuffers){if(!this._sourceBuffers[ke])continue;var Pe=this._sourceBuffers[ke];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch($r){u.e(this.TAG,$r.message)}this._idrList.clear();var tt=this._pendingSegments[ke];if(tt.splice(0,tt.length),this._mediaSource.readyState==="closed")continue;for(var vt=0;vt<Pe.buffered.length;vt++){var St=Pe.buffered.start(vt),Vt=Pe.buffered.end(vt);this._pendingRemoveRanges[ke].push({start:St,end:Vt})}if(Pe.updating||this._doRemoveRanges(),C.safari){var Mr=this._lastInitSegments[ke];Mr&&(this._pendingSegments[ke].push(Mr),Pe.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Me=this._mediaSource,ke=this._sourceBuffers;if(!Me||Me.readyState!=="open"){Me&&Me.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ke.video&&ke.video.updating||ke.audio&&ke.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Me.endOfStream())}},{key:"getNearestKeyframe",value:function(Me){return this._idrList.getLastSyncPointBeforeDts(Me)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Me=this._mediaElement.currentTime;for(var ke in this._sourceBuffers){var Pe=this._sourceBuffers[ke];if(Pe){var tt=Pe.buffered;if(tt.length>=1&&Me-tt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Me=this._mediaElement.currentTime;for(var ke in this._sourceBuffers){var Pe=this._sourceBuffers[ke];if(Pe){for(var tt=Pe.buffered,vt=!1,St=0;St<tt.length;St++){var Vt=tt.start(St),Mr=tt.end(St);if(Vt<=Me&&Me<Mr+3){if(Me-Vt>=this._config.autoCleanupMaxBackwardDuration){vt=!0;var $r=Me-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ke].push({start:Vt,end:$r})}}else Mr<Me&&(vt=!0,this._pendingRemoveRanges[ke].push({start:Vt,end:Mr}))}vt&&!Pe.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Me=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Me.video&&Me.video.updating||Me.audio&&Me.audio.updating)return;var ke=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(ke)||Pe>ke)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(ke," to ").concat(Pe)),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Me in this._pendingRemoveRanges){if(!this._sourceBuffers[Me]||this._sourceBuffers[Me].updating)continue;for(var ke=this._sourceBuffers[Me],Pe=this._pendingRemoveRanges[Me];Pe.length&&!ke.updating;){var tt=Pe.shift();ke.remove(tt.start,tt.end)}}}},{key:"_doAppendSegments",value:function(){var Me=this._pendingSegments;for(var ke in Me){if(!this._sourceBuffers[ke]||this._sourceBuffers[ke].updating)continue;if(Me[ke].length>0){var Pe=Me[ke].shift();if(Pe.timestampOffset){var tt=this._sourceBuffers[ke].timestampOffset,vt=Pe.timestampOffset/1e3,St=Math.abs(tt-vt);St>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(tt," to ").concat(vt)),this._sourceBuffers[ke].timestampOffset=vt),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[ke].appendBuffer(Pe.data),this._isBufferFull=!1,ke==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Vt){this._pendingSegments[ke].unshift(Pe),Vt.code===22?(this._isBufferFull||this._emitter.emit(Sr.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,Vt.message),this._emitter.emit(Sr.ERROR,{code:Vt.code,msg:Vt.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 Me=this._pendingSourceBufferInit;Me.length;){var ke=Me.shift();this.appendInitSegment(ke,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Sr.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 Me=this._pendingSegments;return Me.video.length>0||Me.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Me=this._pendingRemoveRanges;return Me.video.length>0||Me.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(Sr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Me){u.e(this.TAG,"SourceBuffer Error: ".concat(Me))}}]),Zt}(),mr=Cn,Pr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},gr={NETWORK_EXCEPTION:d.EXCEPTION,NETWORK_STATUS_CODE_INVALID:d.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:d.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:d.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:je.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:je.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:je.CODEC_UNSUPPORTED},Jt=function(){function Zt(Nt,Me){if(Object(y.a)(this,Zt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new f.a,this._config=re(),typeof Me=="object"&&Object.assign(this._config,Me),Nt.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");Nt.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=Nt,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 ke=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(ke||C.msedge||C.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(p.a)(Zt,[{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(Me,ke){var Pe=this;Me===be.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(be.MEDIA_INFO,Pe.mediaInfo)}):Me===be.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(be.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"attachMediaElement",value:function(Me){var ke=this;if(this._mediaElement=Me,Me.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Me.addEventListener("seeking",this.e.onvSeeking),Me.addEventListener("canplay",this.e.onvCanPlay),Me.addEventListener("stalled",this.e.onvStalled),Me.addEventListener("progress",this.e.onvProgress),this._msectl=new mr(this._config),this._msectl.on(Sr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Sr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Sr.SOURCE_OPEN,function(){ke._mseSourceOpened=!0,ke._hasPendingLoad&&(ke._hasPendingLoad=!1,ke.load())}),this._msectl.on(Sr.ERROR,function(Pe){ke._emitter.emit(be.ERROR,Pr.MEDIA_ERROR,gr.MEDIA_MSE_ERROR,Pe)}),this._msectl.attachMediaElement(Me),this._pendingSeekTime!=null)try{Me.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Pe){}}},{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 Me=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 yt(this._mediaDataSource,this._config),this._transmuxer.on(se.INIT_SEGMENT,function(ke,Pe){Me._msectl.appendInitSegment(Pe)}),this._transmuxer.on(se.MEDIA_SEGMENT,function(ke,Pe){if(Me._msectl.appendMediaSegment(Pe),Me._config.lazyLoad&&!Me._config.isLive){var tt=Me._mediaElement.currentTime;Pe.info.endDts>=(tt+Me._config.lazyLoadMaxDuration)*1e3&&(Me._progressChecker==null&&(u.v(Me.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Me._suspendTransmuxer()))}}),this._transmuxer.on(se.LOADING_COMPLETE,function(){Me._msectl.endOfStream(),Me._emitter.emit(be.LOADING_COMPLETE)}),this._transmuxer.on(se.RECOVERED_EARLY_EOF,function(){Me._emitter.emit(be.RECOVERED_EARLY_EOF)}),this._transmuxer.on(se.IO_ERROR,function(ke,Pe){Me._emitter.emit(be.ERROR,Pr.NETWORK_ERROR,ke,Pe)}),this._transmuxer.on(se.DEMUX_ERROR,function(ke,Pe){Me._emitter.emit(be.ERROR,Pr.MEDIA_ERROR,ke,{code:-1,msg:Pe})}),this._transmuxer.on(se.MEDIA_INFO,function(ke){Me._mediaInfo=ke,Me._emitter.emit(be.MEDIA_INFO,Object.assign({},ke))}),this._transmuxer.on(se.METADATA_ARRIVED,function(ke){Me._emitter.emit(be.METADATA_ARRIVED,ke)}),this._transmuxer.on(se.SCRIPTDATA_ARRIVED,function(ke){Me._emitter.emit(be.SCRIPTDATA_ARRIVED,ke)}),this._transmuxer.on(se.STATISTICS_INFO,function(ke){Me._statisticsInfo=Me._fillStatisticsInfo(ke),Me._emitter.emit(be.STATISTICS_INFO,Object.assign({},Me._statisticsInfo))}),this._transmuxer.on(se.RECOMMEND_SEEKPOINT,function(ke){Me._mediaElement&&!Me._config.accurateSeek&&(Me._requestSetTime=!0,Me._mediaElement.currentTime=ke/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(Me){this._mediaElement.volume=Me}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Me){this._mediaElement.muted=Me}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Me){this._mediaElement?this._internalSeek(Me):this._pendingSeekTime=Me}},{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(Me){if(Me.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Me;var ke=!0,Pe=0,tt=0;if(this._mediaElement.getVideoPlaybackQuality){var vt=this._mediaElement.getVideoPlaybackQuality();Pe=vt.totalVideoFrames,tt=vt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,tt=this._mediaElement.webkitDroppedFrameCount):ke=!1;return ke&&(Me.decodedFrames=Pe,Me.droppedFrames=tt),Me}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Me=this._mediaElement.buffered,ke=this._mediaElement.currentTime,Pe=0,tt=0,vt=0;vt<Me.length;vt++){var St=Me.start(vt),Vt=Me.end(vt);if(St<=ke&&ke<Vt){Pe=St,tt=Vt;break}}tt>=ke+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 Me=this._mediaElement.currentTime,ke=this._mediaElement.buffered,Pe=!1,tt=0;tt<ke.length;tt++){var vt=ke.start(tt),St=ke.end(tt);if(Me>=vt&&Me<St){Me>=St-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Me){for(var ke=this._mediaElement.buffered,Pe=0;Pe<ke.length;Pe++){var tt=ke.start(Pe),vt=ke.end(Pe);if(Me>=tt&&Me<vt)return!0}return!1}},{key:"_internalSeek",value:function(Me){var ke=this._isTimepointBuffered(Me),Pe=!1,tt=0;if(Me<1&&this._mediaElement.buffered.length>0){var vt=this._mediaElement.buffered.start(0);(vt<1&&Me<vt||C.safari)&&(Pe=!0,tt=C.safari?.1:vt)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=tt;else if(ke){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Me;else{var St=this._msectl.getNearestKeyframe(Math.floor(Me*1e3));this._requestSetTime=!0,St!=null?this._mediaElement.currentTime=St.dts/1e3:this._mediaElement.currentTime=Me}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Me),this._transmuxer.seek(Math.floor(Me*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Me)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Me=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Me)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Me),this._transmuxer.seek(Math.floor(Me*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Me))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Me){var ke=this._mediaElement;if(Me||!this._receivedCanPlay||ke.readyState<2){var Pe=ke.buffered;Pe.length>0&&ke.currentTime<Pe.start(0)&&(u.w(this.TAG,"Playback seems stuck at ".concat(ke.currentTime,", seek to ").concat(Pe.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Me){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Me){var ke=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ke<1&&Pe.length>0){var tt=Pe.start(0);if(tt<1&&ke<tt||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.safari?.1:tt;return}}if(this._isTimepointBuffered(ke)){if(this._alwaysSeekKeyframe){var vt=this._msectl.getNearestKeyframe(Math.floor(ke*1e3));vt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=vt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:ke,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Me){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Me){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Me){this._checkAndResumeStuckPlayback()}}]),Zt}(),Dt=Jt,dn=function(){function Zt(Nt,Me){if(Object(y.a)(this,Zt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new f.a,this._config=re(),typeof Me=="object"&&Object.assign(this._config,Me),Nt.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(Nt.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(Nt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Nt,this._mediaElement=null}return Object(p.a)(Zt,[{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(Me,ke){var Pe=this;Me===be.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(be.MEDIA_INFO,Pe.mediaInfo)}):Me===be.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(be.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Me,ke)}},{key:"off",value:function(Me,ke){this._emitter.removeListener(Me,ke)}},{key:"attachMediaElement",value:function(Me){if(this._mediaElement=Me,Me.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Me.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ke){}}},{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(Me){this._mediaElement.volume=Me}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Me){this._mediaElement.muted=Me}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Me){this._mediaElement?this._mediaElement.currentTime=Me:this._pendingSeekTime=Me}},{key:"mediaInfo",get:function(){var Me=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",ke={mimeType:Me+this._mediaDataSource.type};return this._mediaElement&&(ke.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ke.width=this._mediaElement.videoWidth,ke.height=this._mediaElement.videoHeight)),ke}},{key:"statisticsInfo",get:function(){var Me={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Me;var ke=!0,Pe=0,tt=0;if(this._mediaElement.getVideoPlaybackQuality){var vt=this._mediaElement.getVideoPlaybackQuality();Pe=vt.totalVideoFrames,tt=vt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,tt=this._mediaElement.webkitDroppedFrameCount):ke=!1;return ke&&(Me.decodedFrames=Pe,Me.droppedFrames=tt),Me}},{key:"_onvLoadedMetadata",value:function(Me){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(be.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(be.STATISTICS_INFO,this.statisticsInfo)}}]),Zt}(),Fn=dn;A.install();function Zn(Zt,Nt){var Me=Zt;if(Me==null||typeof Me!="object")throw new r("MediaDataSource must be an javascript object!");if(!Me.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(Me.type){case"flv":return new Dt(Me,Nt);default:return new Fn(Me,Nt)}}function ci(){return ue.supportMSEH264Playback()}function Xi(){return ue.getFeatureList()}var Gn={};Gn.createPlayer=Zn,Gn.isSupported=ci,Gn.getFeatureList=Xi,Gn.BaseLoader=g,Gn.LoaderStatus=c,Gn.LoaderErrors=d,Gn.Events=be,Gn.ErrorTypes=Pr,Gn.ErrorDetails=gr,Gn.FlvPlayer=Dt,Gn.NativePlayer=Fn,Gn.LoggingControl=Ee,Object.defineProperty(Gn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var ei=D.a=Gn},GVMX:function(k,D,n){var y=n("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,n){"use strict";function y(C){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(T){return typeof T}:y=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},y(C)}Object.defineProperty(D,"__esModule",{value:!0}),D.isMac=c,D.isWindows=d,D.isIOS=g,D.isSafari=v,D.isIE=b,D.isEdge=S,D.isFirefox=E,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var p=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return x=function(){return C},C}function A(C){if(C&&C.__esModule)return C;if(C===null||y(C)!=="object"&&typeof C!="function")return{default:C};var _=x();if(_&&_.has(C))return _.get(C);var T={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in C)if(Object.prototype.hasOwnProperty.call(C,O)){var I=w?Object.getOwnPropertyDescriptor(C,O):null;I&&(I.get||I.set)?Object.defineProperty(T,O,I):T[O]=C[O]}return T.default=C,_&&_.set(C,T),T}var m="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;D.isTouchDevice=m,window.addEventListener("touchstart",function C(){D.isTouchDevice=m=!0,window.removeEventListener("touchstart",C,!1)},!1);var f=10*(window.devicePixelRatio||1);D.dragThreshold=f;var h=!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"),h=!0):p.Warn("Data URI scheme cursor not supported")}catch(C){p.Error("Data URI scheme cursor test exception: "+C)}var a=h;D.supportsCursorURIs=a;var i=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),i=!0}catch(C){}var t=i;D.supportsImageMetadata=t;var o=!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),o=r!=0}catch(C){p.Error("Scrollbar test exception: "+C)}var s=o;D.hasScrollbarGutter=s;function c(){return navigator&&!!/mac/i.exec(navigator.platform)}function d(){return navigator&&!!/win/i.exec(navigator.platform)}function g(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function v(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function b(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function S(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function E(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("IwbS"),A=n("y+Vt"),m=n("sK/D"),f=m.createClipPath,h=["itemStyle"],u=["emphasis","itemStyle"],a=["color","color0","borderColor","borderColor0"],i=p.extend({type:"candlestick",render:function(v,b,S){this.group.removeClipPath(),this._updateDrawMode(v),this._isLargeDraw?this._renderLarge(v):this._renderNormal(v)},incrementalPrepareRender:function(v,b,S){this._clear(),this._updateDrawMode(v)},incrementalRender:function(v,b,S,E){this._isLargeDraw?this._incrementalRenderLarge(v,b):this._incrementalRenderNormal(v,b)},_updateDrawMode:function(v){var b=v.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(v){var b=v.getData(),S=this._data,E=this.group,C=b.getLayout("isSimpleBox"),_=v.get("clip",!0),T=v.coordinateSystem,w=T.getArea&&T.getArea();this._data||E.removeAll(),b.diff(S).add(function(O){if(b.hasValue(O)){var I,R=b.getItemLayout(O);if(_&&e(w,R))return;I=o(R,O,!0),x.initProps(I,{shape:{points:R.ends}},v,O),l(I,b,O,C),E.add(I),b.setItemGraphicEl(O,I)}}).update(function(O,I){var R=S.getItemGraphicEl(I);if(!b.hasValue(O)){E.remove(R);return}var M=b.getItemLayout(O);if(_&&e(w,M)){E.remove(R);return}R?x.updateProps(R,{shape:{points:M.ends}},v,O):R=o(M,O),l(R,b,O,C),E.add(R),b.setItemGraphicEl(O,R)}).remove(function(O){var I=S.getItemGraphicEl(O);I&&E.remove(I)}).execute(),this._data=b},_renderLarge:function(v){this._clear(),c(v,this.group);var b=v.get("clip",!0)?f(v.coordinateSystem,!1,v):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(v,b){for(var S=b.getData(),E=S.getLayout("isSimpleBox"),C;(C=v.next())!=null;){var _,T=S.getItemLayout(C);_=o(T,C),l(_,S,C,E),_.incremental=!0,this.group.add(_)}},_incrementalRenderLarge:function(v,b){c(b,this.group,!0)},remove:function(v){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=A.extend({type:"normalCandlestickBox",shape:{},buildPath:function(v,b){var S=b.points;this.__simpleBox?(v.moveTo(S[4][0],S[4][1]),v.lineTo(S[6][0],S[6][1])):(v.moveTo(S[0][0],S[0][1]),v.lineTo(S[1][0],S[1][1]),v.lineTo(S[2][0],S[2][1]),v.lineTo(S[3][0],S[3][1]),v.closePath(),v.moveTo(S[4][0],S[4][1]),v.lineTo(S[5][0],S[5][1]),v.moveTo(S[6][0],S[6][1]),v.lineTo(S[7][0],S[7][1]))}});function o(v,b,S){var E=v.ends;return new t({shape:{points:S?r(E,v):E},z2:100})}function e(v,b){for(var S=!0,E=0;E<b.ends.length;E++)if(v.contain(b.ends[E][0],b.ends[E][1])){S=!1;break}return S}function l(v,b,S,E){var C=b.getItemModel(S),_=C.getModel(h),T=b.getItemVisual(S,"color"),w=b.getItemVisual(S,"borderColor")||T,O=_.getItemStyle(a);v.useStyle(O),v.style.strokeNoScale=!0,v.style.fill=T,v.style.stroke=w,v.__simpleBox=E;var I=C.getModel(u).getItemStyle();x.setHoverStyle(v,I)}function r(v,b){return y.map(v,function(S){return S=S.slice(),S[1]=b.initBaseline,S})}var s=A.extend({type:"largeCandlestickBox",shape:{},buildPath:function(v,b){for(var S=b.points,E=0;E<S.length;)if(this.__sign===S[E++]){var C=S[E++];v.moveTo(C,S[E++]),v.lineTo(C,S[E++])}else E+=3}});function c(v,b,S){var E=v.getData(),C=E.getLayout("largePoints"),_=new s({shape:{points:C},__sign:1});b.add(_);var T=new s({shape:{points:C},__sign:-1});b.add(T),d(1,_,v,E),d(-1,T,v,E),S&&(_.incremental=!0,T.incremental=!0)}function d(v,b,S,E){var C=v>0?"P":"N",_=E.getVisual("borderColor"+C)||E.getVisual("color"+C),T=S.getModel(h).getItemStyle(a);b.useStyle(T),b.style.fill=null,b.style.stroke=_}var g=i;k.exports=g},Gev7:function(k,D,n){var y=n("bYtY"),p=n("K2GJ"),x=n("1bdT"),A=n("ni6a");function m(h){h=h||{},x.call(this,h);for(var u in h)h.hasOwnProperty(u)&&u!=="style"&&(this[u]=h[u]);this.style=new p(h.style,this),this._rect=null,this.__clipPaths=null}m.prototype={constructor:m,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(u){},afterBrush:function(u){},brush:function(u,a){},getBoundingRect:function(){},contain:function(u,a){return this.rectContain(u,a)},traverse:function(u,a){u.call(a,this)},rectContain:function(u,a){var i=this.transformCoordToLocal(u,a),t=this.getBoundingRect();return t.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(u){return this.animate("style",u)},attrKV:function(u,a){u!=="style"?x.prototype.attrKV.call(this,u,a):this.style.set(a)},setStyle:function(u,a){return this.style.set(u,a),this.dirty(!1),this},useStyle:function(u){return this.style=new p(u,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(m,x),y.mixin(m,A);var f=m;k.exports=f},GrNh:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6Ic6");function A(i,t,o,e){var l=t.getData(),r=this.dataIndex,s=l.getName(r),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:i,name:s,seriesId:t.id}),l.each(function(d){m(l.getItemGraphicEl(d),l.getItemLayout(d),t.isSelected(l.getName(d)),c,o)})}function m(i,t,o,e,l){var r=(t.startAngle+t.endAngle)/2,s=Math.cos(r),c=Math.sin(r),d=o?e:0,g=[s*d,c*d];l?i.animate().when(200,{position:g}).start("bounceOut"):i.attr("position",g)}function f(i,t){p.Group.call(this);var o=new p.Sector({z2:2}),e=new p.Polyline,l=new p.Text;this.add(o),this.add(e),this.add(l),this.updateData(i,t,!0)}var h=f.prototype;h.updateData=function(i,t,o){var e=this.childAt(0),l=this.childAt(1),r=this.childAt(2),s=i.hostModel,c=i.getItemModel(t),d=i.getItemLayout(t),g=y.extend({},d);g.label=null;var v=s.getShallow("animationTypeUpdate");if(o){e.setShape(g);var b=s.getShallow("animationType");b==="scale"?(e.shape.r=d.r0,p.initProps(e,{shape:{r:d.r}},s,t)):(e.shape.endAngle=d.startAngle,p.updateProps(e,{shape:{endAngle:d.endAngle}},s,t))}else v==="expansion"?e.setShape(g):p.updateProps(e,{shape:g},s,t);var S=i.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:S},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var E=c.getShallow("cursor");E&&e.attr("cursor",E),m(this,i.getItemLayout(t),s.isSelected(i.getName(t)),s.get("selectedOffset"),s.get("animation"));var C=!o&&v==="transition";this._updateLabel(i,t,C),this.highDownOnUpdate=s.get("silent")?null:function(_,T){var w=s.isAnimationEnabled()&&c.get("hoverAnimation");T==="emphasis"?(l.ignore=l.hoverIgnore,r.ignore=r.hoverIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:d.r+s.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,r.ignore=r.normalIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:d.r}},300,"elasticOut")))},p.setHoverStyle(this)},h._updateLabel=function(i,t,o){var e=this.childAt(1),l=this.childAt(2),r=i.hostModel,s=i.getItemModel(t),c=i.getItemLayout(t),d=c.label,g=i.getItemVisual(t,"color");if(!d||isNaN(d.x)||isNaN(d.y)){l.ignore=l.normalIgnore=l.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var v={points:d.linePoints||[[d.x,d.y],[d.x,d.y],[d.x,d.y]]},b={x:d.x,y:d.y};o?(p.updateProps(e,{shape:v},r,t),p.updateProps(l,{style:b},r,t)):(e.attr({shape:v}),l.attr({style:b})),l.attr({rotation:d.rotation,origin:[d.x,d.y],z2:10});var S=s.getModel("label"),E=s.getModel("emphasis.label"),C=s.getModel("labelLine"),_=s.getModel("emphasis.labelLine"),g=i.getItemVisual(t,"color");p.setLabelStyle(l.style,l.hoverStyle={},S,E,{labelFetcher:i.hostModel,labelDataIndex:t,defaultText:d.text,autoColor:g,useInsideStyle:!!d.inside},{textAlign:d.textAlign,textVerticalAlign:d.verticalAlign,opacity:i.getItemVisual(t,"opacity")}),l.ignore=l.normalIgnore=!S.get("show"),l.hoverIgnore=!E.get("show"),e.ignore=e.normalIgnore=!C.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:g,opacity:i.getItemVisual(t,"opacity")}),e.setStyle(C.getModel("lineStyle").getLineStyle()),e.hoverStyle=_.getModel("lineStyle").getLineStyle();var T=C.get("smooth");T&&T===!0&&(T=.4),e.setShape({smooth:T})},y.inherits(f,p.Group);var u=x.extend({type:"pie",init:function(){var i=new p.Group;this._sectorGroup=i},render:function(i,t,o,e){if(e&&e.from===this.uid)return;var l=i.getData(),r=this._data,s=this.group,c=t.get("animation"),d=!r,g=i.get("animationType"),v=i.get("animationTypeUpdate"),b=y.curry(A,this.uid,i,c,o),S=i.get("selectedMode");if(l.diff(r).add(function(w){var O=new f(l,w);d&&g!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),S&&O.on("click",b),l.setItemGraphicEl(w,O),s.add(O)}).update(function(w,O){var I=r.getItemGraphicEl(O);!d&&v!=="transition"&&I.eachChild(function(R){R.stopAnimation(!0)}),I.updateData(l,w),I.off("click"),S&&I.on("click",b),s.add(I),l.setItemGraphicEl(w,I)}).remove(function(w){var O=r.getItemGraphicEl(w);s.remove(O)}).execute(),c&&l.count()>0&&(d?g!=="scale":v!=="transition")){for(var E=l.getItemLayout(0),C=1;isNaN(E.startAngle)&&C<l.count();++C)E=l.getItemLayout(C);var _=Math.max(o.getWidth(),o.getHeight())/2,T=y.bind(s.removeClipPath,s);s.setClipPath(this._createClipPath(E.cx,E.cy,_,E.startAngle,E.clockwise,T,i,d))}else s.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(i,t,o,e,l,r,s,c){var d=new p.Sector({shape:{cx:i,cy:t,r0:0,r:o,startAngle:e,endAngle:e,clockwise:l}}),g=c?p.initProps:p.updateProps;return g(d,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},s,r),d},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,s=Math.sqrt(l*l+r*r);return s<=e.r&&s>=e.r0}}}),a=u;k.exports=a},Gytx:function(k,D){k.exports=function(y,p,x,A){var m=x?x.call(A,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),h=Object.keys(p);if(f.length!==h.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(p),a=0;a<f.length;a++){var i=f[a];if(!u(i))return!1;var t=y[i],o=p[i];if(m=x?x.call(A,t,o,i):void 0,m===!1||m===void 0&&t!==o)return!1}return!0}},GzdX:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("rePB"),f=n("1OyB"),h=n("vuIU"),u=n("Ji7U"),a=n("md7G"),i=n("foSv"),t=n("m+aA"),o=n("TSYQ"),e=n.n(o),l=n("4IlW");function r(j){var W=j.pageXOffset,z="scrollLeft";if(typeof W!="number"){var V=j.document;W=V.documentElement[z],typeof W!="number"&&(W=V.body[z])}return W}function s(j){var W,z,V=j.ownerDocument,Q=V.body,G=V&&V.documentElement,re=j.getBoundingClientRect();return W=re.left,z=re.top,W-=G.clientLeft||Q.clientLeft||0,z-=G.clientTop||Q.clientTop||0,{left:W,top:z}}function c(j){var W=s(j),z=j.ownerDocument,V=z.defaultView||z.parentWindow;return W.left+=r(V),W.left}function d(j){var W=g();return function(){var V=Object(i.a)(j),Q;if(W){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}var v=function(j){Object(u.a)(z,j);var W=d(z);function z(){var V;return Object(f.a)(this,z),V=W.apply(this,arguments),V.onHover=function(Q){var G=V.props,re=G.onHover,ee=G.index;re(Q,ee)},V.onClick=function(Q){var G=V.props,re=G.onClick,ee=G.index;re(Q,ee)},V.onKeyDown=function(Q){var G=V.props,re=G.onClick,ee=G.index;Q.keyCode===13&&re(Q,ee)},V}return Object(h.a)(z,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,re=Q.index,ee=Q.value,ue=Q.allowHalf,$=Q.focused,be=re+1,_e=G;return ee===0&&re===0&&$?_e+=" ".concat(G,"-focused"):ue&&ee+.5>=be&&ee<be?(_e+=" ".concat(G,"-half ").concat(G,"-active"),$&&(_e+=" ".concat(G,"-focused"))):(_e+=be<=ee?" ".concat(G,"-full"):" ".concat(G,"-zero"),be===ee&&$&&(_e+=" ".concat(G,"-focused"))),_e}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,re=this.onKeyDown,ee=this.props,ue=ee.disabled,$=ee.prefixCls,be=ee.character,_e=ee.characterRender,Ee=ee.index,Xe=ee.count,He=ee.value,nt=typeof be=="function"?be(this.props):be,Ie=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:ue?null:G,onKeyDown:ue?null:re,onMouseMove:ue?null:Q,role:"radio","aria-checked":He>Ee?"true":"false","aria-posinset":Ee+1,"aria-setsize":Xe,tabIndex:ue?-1:0},A.a.createElement("div",{className:"".concat($,"-first")},nt),A.a.createElement("div",{className:"".concat($,"-second")},nt)));return _e&&(Ie=_e(Ie,this.props)),Ie}}]),z}(A.a.Component);function b(j,W){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);W&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),z.push.apply(z,V)}return z}function S(j){for(var W=1;W<arguments.length;W++){var z=arguments[W]!=null?arguments[W]:{};W%2?b(Object(z),!0).forEach(function(V){Object(m.a)(j,V,z[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(z)):b(Object(z)).forEach(function(V){Object.defineProperty(j,V,Object.getOwnPropertyDescriptor(z,V))})}return j}function E(j){var W=C();return function(){var V=Object(i.a)(j),Q;if(W){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}function C(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}function _(){}var T=function(j){Object(u.a)(z,j);var W=E(z);function z(V){var Q;Object(f.a)(this,z),Q=W.call(this,V),Q.onHover=function(re,ee){var ue=Q.props.onHoverChange,$=Q.getStarValue(ee,re.pageX),be=Q.state.cleanedValue;$!==be&&Q.setState({hoverValue:$,cleanedValue:null}),ue($)},Q.onMouseLeave=function(){var re=Q.props.onHoverChange;Q.setState({hoverValue:void 0,cleanedValue:null}),re(void 0)},Q.onClick=function(re,ee){var ue=Q.props.allowClear,$=Q.state.value,be=Q.getStarValue(ee,re.pageX),_e=!1;ue&&(_e=be===$),Q.onMouseLeave(),Q.changeValue(_e?0:be),Q.setState({cleanedValue:_e?be:null})},Q.onFocus=function(){var re=Q.props.onFocus;Q.setState({focused:!0}),re&&re()},Q.onBlur=function(){var re=Q.props.onBlur;Q.setState({focused:!1}),re&&re()},Q.onKeyDown=function(re){var ee=re.keyCode,ue=Q.props,$=ue.count,be=ue.allowHalf,_e=ue.onKeyDown,Ee=ue.direction,Xe=Ee==="rtl",He=Q.state.value;ee===l.a.RIGHT&&He<$&&!Xe?(be?He+=.5:He+=1,Q.changeValue(He),re.preventDefault()):ee===l.a.LEFT&&He>0&&!Xe||ee===l.a.RIGHT&&He>0&&Xe?(be?He-=.5:He-=1,Q.changeValue(He),re.preventDefault()):ee===l.a.LEFT&&He<$&&Xe&&(be?He+=.5:He+=1,Q.changeValue(He),re.preventDefault()),_e&&_e(re)},Q.saveRef=function(re){return function(ee){Q.stars[re]=ee}},Q.saveRate=function(re){Q.rate=re};var G=V.value;return G===void 0&&(G=V.defaultValue),Q.stars={},Q.state={value:G,focused:!1,cleanedValue:null},Q}return Object(h.a)(z,[{key:"componentDidMount",value:function(){var Q=this.props,G=Q.autoFocus,re=Q.disabled;G&&!re&&this.focus()}},{key:"getStarDOM",value:function(Q){return Object(t.a)(this.stars[Q])}},{key:"getStarValue",value:function(Q,G){var re=this.props,ee=re.allowHalf,ue=re.direction,$=ue==="rtl",be=Q+1;if(ee){var _e=this.getStarDOM(Q),Ee=c(_e),Xe=_e.clientWidth;($&&G-Ee>Xe/2||!$&&G-Ee<Xe/2)&&(be-=.5)}return be}},{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,re=Q.allowHalf,ee=Q.style,ue=Q.prefixCls,$=Q.disabled,be=Q.className,_e=Q.character,Ee=Q.characterRender,Xe=Q.tabIndex,He=Q.direction,nt=this.state,Ie=nt.value,oe=nt.hoverValue,ot=nt.focused,he=[],J=$?"".concat(ue,"-disabled"):"",Y=0;Y<G;Y+=1)he.push(A.a.createElement(v,{ref:this.saveRef(Y),index:Y,count:G,disabled:$,prefixCls:"".concat(ue,"-star"),allowHalf:re,value:oe===void 0?Ie:oe,onClick:this.onClick,onHover:this.onHover,key:Y,character:_e,characterRender:Ee,focused:ot}));var q=e()(ue,J,be,Object(m.a)({},"".concat(ue,"-rtl"),He==="rtl"));return A.a.createElement("ul",{className:q,style:ee,onMouseLeave:$?null:this.onMouseLeave,tabIndex:$?-1:Xe,onFocus:$?null:this.onFocus,onBlur:$?null:this.onBlur,onKeyDown:$?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},he)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?S(S({},G),{},{value:Q.value}):G}}]),z}(A.a.Component);T.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var w=T,O=w,I=n("Lerx"),R=n.n(I),M=n("3S7+"),F=n("H84U"),P=function(j,W){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&W.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},X=x.forwardRef(function(j,W){var z=j.prefixCls,V=j.tooltips,Q=P(j,["prefixCls","tooltips"]),G=function(_e,Ee){var Xe=Ee.index;return V?x.createElement(M.a,{title:V[Xe]},_e):_e},re=x.useContext(F.b),ee=re.getPrefixCls,ue=re.direction,$=ee("rate",z);return x.createElement(O,p()({ref:W,characterRender:G},Q,{prefixCls:$,direction:ue}))});X.displayName="Rate",X.defaultProps={character:x.createElement(R.a,null)};var B=D.a=X},H6uX:function(k,D){var n=Array.prototype.slice,y=function(f){this._$handlers={},this._$eventProcessor=f};y.prototype={constructor:y,one:function(f,h,u,a){return x(this,f,h,u,a,!0)},on:function(f,h,u,a){return x(this,f,h,u,a,!1)},isSilent:function(f){var h=this._$handlers;return!h[f]||!h[f].length},off:function(f,h){var u=this._$handlers;if(!f)return this._$handlers={},this;if(h){if(u[f]){for(var a=[],i=0,t=u[f].length;i<t;i++)u[f][i].h!==h&&a.push(u[f][i]);u[f]=a}u[f]&&u[f].length===0&&delete u[f]}else delete u[f];return this},trigger:function(f){var h=this._$handlers[f],u=this._$eventProcessor;if(h){var a=arguments,i=a.length;i>3&&(a=n.call(a,1));for(var t=h.length,o=0;o<t;){var e=h[o];if(u&&u.filter&&e.query!=null&&!u.filter(f,e.query)){o++;continue}switch(i){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,a[1]);break;case 3:e.h.call(e.ctx,a[1],a[2]);break;default:e.h.apply(e.ctx,a);break}e.one?(h.splice(o,1),t--):o++}}return u&&u.afterTrigger&&u.afterTrigger(f),this},triggerWithContext:function(f){var h=this._$handlers[f],u=this._$eventProcessor;if(h){var a=arguments,i=a.length;i>4&&(a=n.call(a,1,a.length-1));for(var t=a[a.length-1],o=h.length,e=0;e<o;){var l=h[e];if(u&&u.filter&&l.query!=null&&!u.filter(f,l.query)){e++;continue}switch(i){case 1:l.h.call(t);break;case 2:l.h.call(t,a[1]);break;case 3:l.h.call(t,a[1],a[2]);break;default:l.h.apply(t,a);break}l.one?(h.splice(e,1),o--):e++}}return u&&u.afterTrigger&&u.afterTrigger(f),this}};function p(m,f){var h=m._$eventProcessor;return f!=null&&h&&h.normalizeQuery&&(f=h.normalizeQuery(f)),f}function x(m,f,h,u,a,i){var t=m._$handlers;if(typeof h=="function"&&(a=u,u=h,h=null),!u||!f)return m;h=p(m,h),t[f]||(t[f]=[]);for(var o=0;o<t[f].length;o++)if(t[f][o].h===u)return m;var e={h:u,one:i,query:h,ctx:a||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 A=y;k.exports=A},H7XF:function(k,D,n){"use strict";D.byteLength=u,D.toByteArray=i,D.fromByteArray=e;for(var y=[],p=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=A.length;m<f;++m)y[m]=A[m],p[A.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function h(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=h(l),s=r[0],c=r[1];return(s+c)*3/4-c}function a(l,r,s){return(r+s)*3/4-s}function i(l){var r,s=h(l),c=s[0],d=s[1],g=new x(a(l,c,d)),v=0,b=d>0?c-4:c,S;for(S=0;S<b;S+=4)r=p[l.charCodeAt(S)]<<18|p[l.charCodeAt(S+1)]<<12|p[l.charCodeAt(S+2)]<<6|p[l.charCodeAt(S+3)],g[v++]=r>>16&255,g[v++]=r>>8&255,g[v++]=r&255;return d===2&&(r=p[l.charCodeAt(S)]<<2|p[l.charCodeAt(S+1)]>>4,g[v++]=r&255),d===1&&(r=p[l.charCodeAt(S)]<<10|p[l.charCodeAt(S+1)]<<4|p[l.charCodeAt(S+2)]>>2,g[v++]=r>>8&255,g[v++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function o(l,r,s){for(var c,d=[],g=r;g<s;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),d.push(t(c));return d.join("")}function e(l){for(var r,s=l.length,c=s%3,d=[],g=16383,v=0,b=s-c;v<b;v+=g)d.push(o(l,v,v+g>b?b:v+g));return c===1?(r=l[s-1],d.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[s-2]<<8)+l[s-1],d.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),d.join("")}},H8j4:function(k,D,n){var y=n("QkVE");function p(x,A){var m=y(this,x),f=m.size;return m.set(x,A),this.size+=m.size==f?0:1,this}k.exports=p},HBhm:function(k,D,n){"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,n){"use strict";(function(y){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var p=n("H7XF"),x=n("kVK+"),A=n("49sm");D.Buffer=u,D.SlowBuffer=d,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 he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function f(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(he,J){if(f()<J)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=u.prototype):(he===null&&(he=new u(J)),he.length=J),he}function u(he,J,Y){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return a(this,he,J,Y)}u.poolSize=8192,u._augment=function(he){return he.__proto__=u.prototype,he};function a(he,J,Y,q){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,q):typeof J=="string"?e(he,J,Y):s(he,J)}u.from=function(he,J,Y){return a(null,he,J,Y)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0}));function i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,q){return i(J),J<=0?h(he,J):Y!==void 0?typeof q=="string"?h(he,J).fill(Y,q):h(he,J).fill(Y):h(he,J)}u.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=h(he,J<0?0:c(J)|0),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}u.allocUnsafe=function(he){return o(null,he)},u.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!u.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var q=g(J,Y)|0;he=h(he,q);var fe=he.write(J,Y);return fe!==q&&(he=he.slice(0,fe)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=h(he,Y);for(var q=0;q<Y;q+=1)he[q]=J[q]&255;return he}function r(he,J,Y,q){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+(q||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&q===void 0?J=new Uint8Array(J):q===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,q),u.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=u.prototype):he=l(he,J),he}function s(he,J){if(u.isBuffer(J)){var Y=c(J.length)|0;return he=h(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||ot(J.length)?h(he,0):l(he,J);if(J.type==="Buffer"&&A(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return he|0}function d(he){return+he!=he&&(he=0),u.alloc(+he)}u.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},u.compare=function(J,Y){if(!u.isBuffer(J)||!u.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var q=J.length,fe=Y.length,we=0,Ne=Math.min(q,fe);we<Ne;++we)if(J[we]!==Y[we]){q=J[we],fe=Y[we];break}return q<fe?-1:fe<q?1:0},u.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(J,Y){if(!A(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return u.alloc(0);var q;if(Y===void 0)for(Y=0,q=0;q<J.length;++q)Y+=J[q].length;var fe=u.allocUnsafe(Y),we=0;for(q=0;q<J.length;++q){var Ne=J[q];if(!u.isBuffer(Ne))throw new TypeError('"list" argument must be an Array of Buffers');Ne.copy(fe,we),we+=Ne.length}return fe};function g(he,J){if(u.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var q=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Xe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Ie(he).length;default:if(q)return Xe(he).length;J=(""+J).toLowerCase(),q=!0}}u.byteLength=g;function v(he,J,Y){var q=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return B(this,J,Y);case"base64":return R(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,J,Y);default:if(q)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),q=!0}}u.prototype._isBuffer=!0;function b(he,J,Y){var q=he[J];he[J]=he[Y],he[Y]=q}u.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},u.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},u.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},u.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):v.apply(this,arguments)},u.prototype.equals=function(J){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:u.compare(this,J)===0},u.prototype.inspect=function(){var J="",Y=D.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},u.prototype.compare=function(J,Y,q,fe,we){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),q===void 0&&(q=J?J.length:0),fe===void 0&&(fe=0),we===void 0&&(we=this.length),Y<0||q>J.length||fe<0||we>this.length)throw new RangeError("out of range index");if(fe>=we&&Y>=q)return 0;if(fe>=we)return-1;if(Y>=q)return 1;if(Y>>>=0,q>>>=0,fe>>>=0,we>>>=0,this===J)return 0;for(var Ne=we-fe,je=q-Y,me=Math.min(Ne,je),Ce=this.slice(fe,we),Fe=J.slice(Y,q),it=0;it<me;++it)if(Ce[it]!==Fe[it]){Ne=Ce[it],je=Fe[it];break}return Ne<je?-1:je<Ne?1:0};function S(he,J,Y,q,fe){if(he.length===0)return-1;if(typeof Y=="string"?(q=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=fe?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(fe)return-1;Y=he.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof J=="string"&&(J=u.from(J,q)),u.isBuffer(J))return J.length===0?-1:E(he,J,Y,q,fe);if(typeof J=="number")return J=J&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,q,fe);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,q,fe){var we=1,Ne=he.length,je=J.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(he.length<2||J.length<2)return-1;we=2,Ne/=2,je/=2,Y/=2}function me(mt,Ve){return we===1?mt[Ve]:mt.readUInt16BE(Ve*we)}var Ce;if(fe){var Fe=-1;for(Ce=Y;Ce<Ne;Ce++)if(me(he,Ce)===me(J,Fe===-1?0:Ce-Fe)){if(Fe===-1&&(Fe=Ce),Ce-Fe+1===je)return Fe*we}else Fe!==-1&&(Ce-=Ce-Fe),Fe=-1}else for(Y+je>Ne&&(Y=Ne-je),Ce=Y;Ce>=0;Ce--){for(var it=!0,Ct=0;Ct<je;Ct++)if(me(he,Ce+Ct)!==me(J,Ct)){it=!1;break}if(it)return Ce}return-1}u.prototype.includes=function(J,Y,q){return this.indexOf(J,Y,q)!==-1},u.prototype.indexOf=function(J,Y,q){return S(this,J,Y,q,!0)},u.prototype.lastIndexOf=function(J,Y,q){return S(this,J,Y,q,!1)};function C(he,J,Y,q){Y=Number(Y)||0;var fe=he.length-Y;q?(q=Number(q),q>fe&&(q=fe)):q=fe;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");q>we/2&&(q=we/2);for(var Ne=0;Ne<q;++Ne){var je=parseInt(J.substr(Ne*2,2),16);if(isNaN(je))return Ne;he[Y+Ne]=je}return Ne}function _(he,J,Y,q){return oe(Xe(J,he.length-Y),he,Y,q)}function T(he,J,Y,q){return oe(He(J),he,Y,q)}function w(he,J,Y,q){return T(he,J,Y,q)}function O(he,J,Y,q){return oe(Ie(J),he,Y,q)}function I(he,J,Y,q){return oe(nt(J,he.length-Y),he,Y,q)}u.prototype.write=function(J,Y,q,fe){if(Y===void 0)fe="utf8",q=this.length,Y=0;else if(q===void 0&&typeof Y=="string")fe=Y,q=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(q)?(q=q|0,fe===void 0&&(fe="utf8")):(fe=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-Y;if((q===void 0||q>we)&&(q=we),J.length>0&&(q<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ne=!1;;)switch(fe){case"hex":return C(this,J,Y,q);case"utf8":case"utf-8":return _(this,J,Y,q);case"ascii":return T(this,J,Y,q);case"latin1":case"binary":return w(this,J,Y,q);case"base64":return O(this,J,Y,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,q);default:if(Ne)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ne=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(he,J,Y){return J===0&&Y===he.length?p.fromByteArray(he):p.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var q=[],fe=J;fe<Y;){var we=he[fe],Ne=null,je=we>239?4:we>223?3:we>191?2:1;if(fe+je<=Y){var me,Ce,Fe,it;switch(je){case 1:we<128&&(Ne=we);break;case 2:me=he[fe+1],(me&192)===128&&(it=(we&31)<<6|me&63,it>127&&(Ne=it));break;case 3:me=he[fe+1],Ce=he[fe+2],(me&192)===128&&(Ce&192)===128&&(it=(we&15)<<12|(me&63)<<6|Ce&63,it>2047&&(it<55296||it>57343)&&(Ne=it));break;case 4:me=he[fe+1],Ce=he[fe+2],Fe=he[fe+3],(me&192)===128&&(Ce&192)===128&&(Fe&192)===128&&(it=(we&15)<<18|(me&63)<<12|(Ce&63)<<6|Fe&63,it>65535&&it<1114112&&(Ne=it))}}Ne===null?(Ne=65533,je=1):Ne>65535&&(Ne-=65536,q.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),q.push(Ne),fe+=je}return P(q)}var F=4096;function P(he){var J=he.length;if(J<=F)return String.fromCharCode.apply(String,he);for(var Y="",q=0;q<J;)Y+=String.fromCharCode.apply(String,he.slice(q,q+=F));return Y}function X(he,J,Y){var q="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)q+=String.fromCharCode(he[fe]&127);return q}function B(he,J,Y){var q="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)q+=String.fromCharCode(he[fe]);return q}function j(he,J,Y){var q=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>q)&&(Y=q);for(var fe="",we=J;we<Y;++we)fe+=Ee(he[we]);return fe}function W(he,J,Y){for(var q=he.slice(J,Y),fe="",we=0;we<q.length;we+=2)fe+=String.fromCharCode(q[we]+q[we+1]*256);return fe}u.prototype.slice=function(J,Y){var q=this.length;J=~~J,Y=Y===void 0?q:~~Y,J<0?(J+=q,J<0&&(J=0)):J>q&&(J=q),Y<0?(Y+=q,Y<0&&(Y=0)):Y>q&&(Y=q),Y<J&&(Y=J);var fe;if(u.TYPED_ARRAY_SUPPORT)fe=this.subarray(J,Y),fe.__proto__=u.prototype;else{var we=Y-J;fe=new u(we,void 0);for(var Ne=0;Ne<we;++Ne)fe[Ne]=this[Ne+J]}return fe};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return fe},u.prototype.readUIntBE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=this[J+--Y],we=1;Y>0&&(we*=256);)fe+=this[J+--Y]*we;return fe},u.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},u.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},u.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},u.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},u.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},u.prototype.readIntLE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return we*=128,fe>=we&&(fe-=Math.pow(2,8*Y)),fe},u.prototype.readIntBE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=Y,we=1,Ne=this[J+--fe];fe>0&&(we*=256);)Ne+=this[J+--fe]*we;return we*=128,Ne>=we&&(Ne-=Math.pow(2,8*Y)),Ne},u.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},u.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var q=this[J]|this[J+1]<<8;return q&32768?q|4294901760:q},u.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var q=this[J+1]|this[J]<<8;return q&32768?q|4294901760:q},u.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},u.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},u.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!0,23,4)},u.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!1,23,4)},u.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!0,52,8)},u.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!1,52,8)};function V(he,J,Y,q,fe,we){if(!u.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>fe||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+q>he.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(J,Y,q,fe){if(J=+J,Y=Y|0,q=q|0,!fe){var we=Math.pow(2,8*q)-1;V(this,J,Y,q,we,0)}var Ne=1,je=0;for(this[Y]=J&255;++je<q&&(Ne*=256);)this[Y+je]=J/Ne&255;return Y+q},u.prototype.writeUIntBE=function(J,Y,q,fe){if(J=+J,Y=Y|0,q=q|0,!fe){var we=Math.pow(2,8*q)-1;V(this,J,Y,q,we,0)}var Ne=q-1,je=1;for(this[Y+Ne]=J&255;--Ne>=0&&(je*=256);)this[Y+Ne]=J/je&255;return Y+q},u.prototype.writeUInt8=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,1,255,0),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,q){J<0&&(J=65535+J+1);for(var fe=0,we=Math.min(he.length-Y,2);fe<we;++fe)he[Y+fe]=(J&255<<8*(q?fe:1-fe))>>>(q?fe:1-fe)*8}u.prototype.writeUInt16LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeUInt16BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,q){J<0&&(J=4294967295+J+1);for(var fe=0,we=Math.min(he.length-Y,4);fe<we;++fe)he[Y+fe]=J>>>(q?fe:3-fe)*8&255}u.prototype.writeUInt32LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},u.prototype.writeUInt32BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},u.prototype.writeIntLE=function(J,Y,q,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*q-1);V(this,J,Y,q,we-1,-we)}var Ne=0,je=1,me=0;for(this[Y]=J&255;++Ne<q&&(je*=256);)J<0&&me===0&&this[Y+Ne-1]!==0&&(me=1),this[Y+Ne]=(J/je>>0)-me&255;return Y+q},u.prototype.writeIntBE=function(J,Y,q,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*q-1);V(this,J,Y,q,we-1,-we)}var Ne=q-1,je=1,me=0;for(this[Y+Ne]=J&255;--Ne>=0&&(je*=256);)J<0&&me===0&&this[Y+Ne+1]!==0&&(me=1),this[Y+Ne]=(J/je>>0)-me&255;return Y+q},u.prototype.writeInt8=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,1,127,-128),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},u.prototype.writeInt16LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeInt16BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},u.prototype.writeInt32LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},u.prototype.writeInt32BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function re(he,J,Y,q,fe,we){if(Y+q>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function ee(he,J,Y,q,fe){return fe||re(he,J,Y,4,34028234663852886e22,-34028234663852886e22),x.write(he,J,Y,q,23,4),Y+4}u.prototype.writeFloatLE=function(J,Y,q){return ee(this,J,Y,!0,q)},u.prototype.writeFloatBE=function(J,Y,q){return ee(this,J,Y,!1,q)};function ue(he,J,Y,q,fe){return fe||re(he,J,Y,8,17976931348623157e292,-17976931348623157e292),x.write(he,J,Y,q,52,8),Y+8}u.prototype.writeDoubleLE=function(J,Y,q){return ue(this,J,Y,!0,q)},u.prototype.writeDoubleBE=function(J,Y,q){return ue(this,J,Y,!1,q)},u.prototype.copy=function(J,Y,q,fe){if(q||(q=0),!fe&&fe!==0&&(fe=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),fe>0&&fe<q&&(fe=q),fe===q)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),J.length-Y<fe-q&&(fe=J.length-Y+q);var we=fe-q,Ne;if(this===J&&q<Y&&Y<fe)for(Ne=we-1;Ne>=0;--Ne)J[Ne+Y]=this[Ne+q];else if(we<1e3||!u.TYPED_ARRAY_SUPPORT)for(Ne=0;Ne<we;++Ne)J[Ne+Y]=this[Ne+q];else Uint8Array.prototype.set.call(J,this.subarray(q,q+we),Y);return we},u.prototype.fill=function(J,Y,q,fe){if(typeof J=="string"){if(typeof Y=="string"?(fe=Y,Y=0,q=this.length):typeof q=="string"&&(fe=q,q=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!u.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<q)throw new RangeError("Out of range index");if(q<=Y)return this;Y=Y>>>0,q=q===void 0?this.length:q>>>0,J||(J=0);var Ne;if(typeof J=="number")for(Ne=Y;Ne<q;++Ne)this[Ne]=J;else{var je=u.isBuffer(J)?J:Xe(new u(J,fe).toString()),me=je.length;for(Ne=0;Ne<q-Y;++Ne)this[Ne+Y]=je[Ne%me]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function be(he){if(he=_e(he).replace($,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function _e(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Ee(he){return he<16?"0"+he.toString(16):he.toString(16)}function Xe(he,J){J=J||Infinity;for(var Y,q=he.length,fe=null,we=[],Ne=0;Ne<q;++Ne){if(Y=he.charCodeAt(Ne),Y>55295&&Y<57344){if(!fe){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ne+1===q){(J-=3)>-1&&we.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((J-=3)>-1&&we.push(239,191,189));if(fe=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function He(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function nt(he,J){for(var Y,q,fe,we=[],Ne=0;Ne<he.length&&!((J-=2)<0);++Ne)Y=he.charCodeAt(Ne),q=Y>>8,fe=Y%256,we.push(fe),we.push(q);return we}function Ie(he){return p.toByteArray(be(he))}function oe(he,J,Y,q){for(var fe=0;fe<q&&!(fe+Y>=J.length||fe>=he.length);++fe)J[fe+Y]=he[fe];return fe}function ot(he){return he!==he}}).call(this,n("yLpj"))},HDyB:function(k,D,n){var y=n("nmnc"),p=n("JHRd"),x=n("ljhN"),A=n("or5M"),m=n("7fqy"),f=n("rEGp"),h=1,u=2,a="[object Boolean]",i="[object Date]",t="[object Error]",o="[object Map]",e="[object Number]",l="[object RegExp]",r="[object Set]",s="[object String]",c="[object Symbol]",d="[object ArrayBuffer]",g="[object DataView]",v=y?y.prototype:void 0,b=v?v.valueOf:void 0;function S(E,C,_,T,w,O,I){switch(_){case g:if(E.byteLength!=C.byteLength||E.byteOffset!=C.byteOffset)return!1;E=E.buffer,C=C.buffer;case d:return!(E.byteLength!=C.byteLength||!O(new p(E),new p(C)));case a:case i:case e:return x(+E,+C);case t:return E.name==C.name&&E.message==C.message;case l:case s:return E==C+"";case o:var R=m;case r:var M=T&h;if(R||(R=f),E.size!=C.size&&!M)return!1;var F=I.get(E);if(F)return F==C;T|=u,I.set(E,C);var P=A(R(E),R(C),T,w,O,I);return I.delete(E),P;case c:if(b)return b.call(E)==b.call(C)}return!1}k.exports=S},"HF/U":function(k,D,n){var y=n("QBsz");function p(A){var m=A.coordinateSystem;if(m&&m.type!=="view")return;var f=A.getGraph();f.eachNode(function(h){var u=h.getModel();h.setLayout([+u.get("x"),+u.get("y")])}),x(f)}function x(A){A.eachEdge(function(m){var f=m.getModel().get("lineStyle.curveness")||0,h=y.clone(m.node1.getLayout()),u=y.clone(m.node2.getLayout()),a=[h,u];+f&&a.push([(h[0]+u[0])/2-(h[1]-u[1])*f,(h[1]+u[1])/2-(u[0]-h[0])*f]),m.setLayout(a)})}D.simpleLayout=p,D.simpleLayoutEdge=x},"HM/N":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("/SeX"),m=n("OELB"),f=m.parsePercent,h=n("aX7z"),u=h.createScaleByModel,a=h.niceScaleExtent,i=n("IDmD"),t=n("7hqr"),o=t.getStackedDimension;n("ePAk");function e(c,d,g){var v=d.get("center"),b=g.getWidth(),S=g.getHeight();c.cx=f(v[0],b),c.cy=f(v[1],S);var E=c.getRadiusAxis(),C=Math.min(b,S)/2,_=d.get("radius");_==null?_=[0,"100%"]:x.isArray(_)||(_=[0,_]),_=[f(_[0],C),f(_[1],C)],E.inverse?E.setExtent(_[1],_[0]):E.setExtent(_[0],_[1])}function l(c,d){var g=this,v=g.getAngleAxis(),b=g.getRadiusAxis();if(v.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(C){if(C.coordinateSystem===g){var _=C.getData();x.each(_.mapDimension("radius",!0),function(T){b.scale.unionExtentFromData(_,o(_,T))}),x.each(_.mapDimension("angle",!0),function(T){v.scale.unionExtentFromData(_,o(_,T))})}}),a(v.scale,v.model),a(b.scale,b.model),v.type==="category"&&!v.onBand){var S=v.getExtent(),E=360/v.scale.count();v.inverse?S[1]+=E:S[1]-=E,v.setExtent(S[0],S[1])}}function r(c,d){if(c.type=d.get("type"),c.scale=u(d),c.onBand=d.get("boundaryGap")&&c.type==="category",c.inverse=d.get("inverse"),d.mainType==="angleAxis"){c.inverse^=d.get("clockwise");var g=d.get("startAngle");c.setExtent(g,g+(c.inverse?-360:360))}d.axis=c,c.model=d}var s={dimensions:A.prototype.dimensions,create:function(c,d){var g=[];return c.eachComponent("polar",function(v,b){var S=new A(b);S.update=l;var E=S.getRadiusAxis(),C=S.getAngleAxis(),_=v.findAxisModel("radiusAxis"),T=v.findAxisModel("angleAxis");r(E,_),r(C,T),e(S,v,d),g.push(S),v.coordinateSystem=S,S.model=v}),c.eachSeries(function(v){if(v.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:v.get("polarIndex"),id:v.get("polarId")})[0];v.coordinateSystem=b.coordinateSystem}}),g}};i.register("polar",s)},HOxn:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Promise");k.exports=x},HQEm:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Sj0X"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},HjIi:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,A=n("7hqr"),m=A.isDimensionStacked;function f(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function h(t,o){return o.dim+t.model.componentIndex}function u(t,o,e){var l={},r=a(y.filter(o.getSeriesByType(t),function(s){return!o.isSeriesFiltered(s)&&s.coordinateSystem&&s.coordinateSystem.type==="polar"}));o.eachSeriesByType(t,function(s){if(s.coordinateSystem.type!=="polar")return;var c=s.getData(),d=s.coordinateSystem,g=d.getBaseAxis(),v=h(d,g),b=f(s),S=r[v][b],E=S.offset,C=S.width,_=d.getOtherAxis(g),T=s.coordinateSystem.cx,w=s.coordinateSystem.cy,O=s.get("barMinHeight")||0,I=s.get("barMinAngle")||0;l[b]=l[b]||[];for(var R=c.mapDimension(_.dim),M=c.mapDimension(g.dim),F=m(c,R),P=g.dim!=="radius"||!s.get("roundCap",!0),X=_.getExtent()[0],B=0,j=c.count();B<j;B++){var W=c.get(R,B),z=c.get(M,B),V=W>=0?"p":"n",Q=X;F&&(l[b][z]||(l[b][z]={p:X,n:X}),Q=l[b][z][V]);var G,re,ee,ue;if(_.dim==="radius"){var $=_.dataToRadius(W)-X,be=g.dataToAngle(z);Math.abs($)<O&&($=($<0?-1:1)*O),G=Q,re=Q+$,ee=be-E,ue=ee-C,F&&(l[b][z][V]=re)}else{var _e=_.dataToAngle(W,P)-X,Ee=g.dataToRadius(z);Math.abs(_e)<I&&(_e=(_e<0?-1:1)*I),G=Ee+E,re=G+C,ee=Q,ue=Q+_e,F&&(l[b][z][V]=ue)}c.setItemLayout(B,{cx:T,cy:w,r0:G,r:re,startAngle:-ee*Math.PI/180,endAngle:-ue*Math.PI/180})}},this)}function a(t,o){var e={};y.each(t,function(r,s){var c=r.getData(),d=r.coordinateSystem,g=d.getBaseAxis(),v=h(d,g),b=g.getExtent(),S=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),E=e[v]||{bandWidth:S,remainedWidth:S,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},C=E.stacks;e[v]=E;var _=f(r);C[_]||E.autoWidthCount++,C[_]=C[_]||{width:0,maxWidth:0};var T=x(r.get("barWidth"),S),w=x(r.get("barMaxWidth"),S),O=r.get("barGap"),I=r.get("barCategoryGap");T&&!C[_].width&&(T=Math.min(E.remainedWidth,T),C[_].width=T,E.remainedWidth-=T),w&&(C[_].maxWidth=w),O!=null&&(E.gap=O),I!=null&&(E.categoryGap=I)});var l={};return y.each(e,function(r,s){l[s]={};var c=r.stacks,d=r.bandWidth,g=x(r.categoryGap,d),v=x(r.gap,1),b=r.remainedWidth,S=r.autoWidthCount,E=(b-g)/(S+(S-1)*v);E=Math.max(E,0),y.each(c,function(w,O){var I=w.maxWidth;I&&I<E&&(I=Math.min(I,b),w.width&&(I=Math.min(I,w.width)),b-=I,w.width=I,S--)}),E=(b-g)/(S+(S-1)*v),E=Math.max(E,0);var C=0,_;y.each(c,function(w,O){w.width||(w.width=E),_=w,C+=w.width*(1+v)}),_&&(C-=_.width*v);var T=-C/2;y.each(c,function(w,O){l[s][O]=l[s][O]||{offset:T,width:w.width},T+=w.width*(1+v)})}),l}var i=u;k.exports=i},HjOm:function(k,D,n){"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 n(y){var p=this.has(y)&&delete this.__data__[y];return this.size-=p?1:0,p}k.exports=n},Hw7h:function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(x,A){var m=Math.cos,f=Math.sin,h=A.r,u=A.width,a=A.angle,i=A.x-m(a)*u*(u>=h/3?1:2),t=A.y-f(a)*u*(u>=h/3?1:2);a=A.angle-Math.PI/2,x.moveTo(i,t),x.lineTo(A.x+m(a)*u,A.y+f(a)*u),x.lineTo(A.x+m(A.angle)*h,A.y+f(A.angle)*h),x.lineTo(A.x-m(a)*u,A.y-f(a)*u),x.lineTo(i,t);return}});k.exports=p},Hxpc:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=n("bLfw"),A=n("Qxkt"),m=n("cCMj"),f=n("7uqq"),h=x.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(a){x.prototype.init.apply(this,arguments),p.defaultEmphasis(a,"label",["show"])},optionUpdated:function(){var a=this.option,i=this;a.regions=f.getFilledRegions(a.regions,a.map,a.nameMap),this._optionModelMap=y.reduce(a.regions||[],function(t,o){return o.name&&t.set(o.name,new A(o,i)),t},y.createHashMap()),this.updateSelectedMap(a.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(a){return this._optionModelMap.get(a)||new A(null,this,this.ecModel)},getFormattedLabel:function(a,i){var t=this.getRegionModel(a),o=t.get("label"+(i==="normal"?".":i+".")+"formatter"),e={name:a};if(typeof o=="function")return e.status=i,o(e);if(typeof o=="string")return o.replace("{a}",a!=null?a:"")},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a}});y.mixin(h,m);var u=h;k.exports=u},"I+77":function(k,D,n){var y=n("ProS");n("h54F"),n("lwQL"),n("10cm");var p=n("Z1r0"),x=n("f5Yq"),A=n("KUOm"),m=n("3m61"),f=n("01d+"),h=n("rdor"),u=n("WGYa"),a=n("ewwo");y.registerProcessor(p),y.registerVisual(x("graph","circle",null)),y.registerVisual(A),y.registerVisual(m),y.registerLayout(f),y.registerLayout(y.PRIORITY.VISUAL.POST_CHART_LAYOUT,h),y.registerLayout(u),y.registerCoordinateSystem("graphView",{create:a})},"I+Bx":function(k,D,n){var y=n("bYtY"),p=n("eIcI"),x=n("ieMj"),A=n("OELB"),m=n("aX7z"),f=m.getScaleExtent,h=m.niceScaleExtent,u=n("IDmD"),a=n("jCoz");function i(o,e,l){this._model=o,this.dimensions=[],this._indicatorAxes=y.map(o.getIndicatorModels(),function(r,s){var c="indicator_"+s,d=new p(c,r.get("axisType")==="log"?new a:new x);return d.name=r.get("name"),d.model=r,r.axis=d,this.dimensions.push(c),d},this),this.resize(o,l),this.cx,this.cy,this.r,this.r0,this.startAngle}i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(o,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(o),e)},i.prototype.coordToPoint=function(o,e){var l=this._indicatorAxes[e],r=l.angle,s=this.cx+o*Math.cos(r),c=this.cy-o*Math.sin(r);return[s,c]},i.prototype.pointToData=function(o){var e=o[0]-this.cx,l=o[1]-this.cy,r=Math.sqrt(e*e+l*l);e/=r,l/=r;for(var s=Math.atan2(-l,e),c=Infinity,d,g=-1,v=0;v<this._indicatorAxes.length;v++){var b=this._indicatorAxes[v],S=Math.abs(s-b.angle);S<c&&(d=b,g=v,c=S)}return[g,+(d&&d.coordToData(r))]},i.prototype.resize=function(o,e){var l=o.get("center"),r=e.getWidth(),s=e.getHeight(),c=Math.min(r,s)/2;this.cx=A.parsePercent(l[0],r),this.cy=A.parsePercent(l[1],s),this.startAngle=o.get("startAngle")*Math.PI/180;var d=o.get("radius");(typeof d=="string"||typeof d=="number")&&(d=[0,d]),this.r0=A.parsePercent(d[0],c),this.r=A.parsePercent(d[1],c),y.each(this._indicatorAxes,function(g,v){g.setExtent(this.r0,this.r);var b=this.startAngle+v*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),g.angle=b},this)},i.prototype.update=function(o,e){var l=this._indicatorAxes,r=this._model;y.each(l,function(d){d.scale.setExtent(Infinity,-Infinity)}),o.eachSeriesByType("radar",function(d,g){if(d.get("coordinateSystem")!=="radar"||o.getComponent("radar",d.get("radarIndex"))!==r)return;var v=d.getData();y.each(l,function(b){b.scale.unionExtentFromData(v,v.mapDimension(b.dim))})},this);var s=r.get("splitNumber");function c(d){var g=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),v=d/g;return v===2?v=5:v*=2,v*g}y.each(l,function(d,g){var v=f(d.scale,d.model).extent;h(d.scale,d.model);var b=d.model,S=d.scale,E=b.getMin(),C=b.getMax(),_=S.getInterval();if(E!=null&&C!=null)S.setExtent(+E,+C),S.setInterval((C-E)/s);else if(E!=null){var T;do T=E+_*s,S.setExtent(+E,T),S.setInterval(_),_=c(_);while(T<v[1]&&isFinite(T)&&isFinite(v[1]))}else if(C!=null){var w;do w=C-_*s,S.setExtent(w,+C),S.setInterval(_),_=c(_);while(w>v[0]&&isFinite(w)&&isFinite(v[0]))}else{var O=S.getTicks().length-1;O>s&&(_=c(_));var T=Math.ceil(v[1]/_)*_,w=A.round(T-_*s);S.setExtent(w,T),S.setInterval(_)}})},i.dimensions=[],i.create=function(o,e){var l=[];return o.eachComponent("radar",function(r){var s=new i(r,o,e);l.push(s),r.coordinateSystem=s}),o.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=l[r.get("radarIndex")||0])}),l},u.register("radar",i);var t=i;k.exports=t},"I3/A":function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("c2i1"),A=n("Mdki"),m=n("sdST"),f=n("IDmD"),h=n("MwEJ");function u(a,i,t,o,e){for(var l=new x(o),r=0;r<a.length;r++)l.addNode(y.retrieve(a[r].id,a[r].name,r),r);for(var s=[],c=[],d=0,r=0;r<i.length;r++){var g=i[r],v=g.source,b=g.target;l.addEdge(v,b,d)&&(c.push(g),s.push(y.retrieve(g.id,v+" > "+b)),d++)}var S=t.get("coordinateSystem"),E;if(S==="cartesian2d"||S==="polar")E=h(a,t);else{var C=f.get(S),_=C&&C.type!=="view"?C.dimensions||[]:[];y.indexOf(_,"value")<0&&_.concat(["value"]);var T=m(a,{coordDimensions:_});E=new p(T,t),E.initData(a)}var w=new p(["value"],t);return w.initData(c,s),e&&e(E,w),A({mainData:E,struct:l,structAttr:"graph",datas:{node:E,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}k.exports=u},I8Z2:function(k,D,n){"use strict";n.d(D,"a",function(){return A}),n.d(D,"b",function(){return e}),n.d(D,"c",function(){return r});var y=n("q1tI"),p=function(){var s=function(d,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])},s(d,g)};return function(c,d){s(c,d);function g(){this.constructor=c}c.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),x=y.createContext(null),A=function(s){p(c,s);function c(){return s!==null&&s.apply(this,arguments)||this}return c.prototype.render=function(){return y.createElement(x.Provider,{value:this.props.store},this.props.children)},c}(y.Component),m=n("Gytx"),f=n.n(m),h=n("2mql"),u=n.n(h),a=function(){var s=function(d,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])},s(d,g)};return function(c,d){s(c,d);function g(){this.constructor=c}c.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),i=function(){return i=Object.assign||function(s){for(var c,d=1,g=arguments.length;d<g;d++){c=arguments[d];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(s[v]=c[v])}return s},i.apply(this,arguments)};function t(s){return s.displayName||s.name||"Component"}var o=function(){return{}};function e(s,c){c===void 0&&(c={});var d=!!s,g=s||o;return function(b){var S=function(C){a(_,C);function _(T,w){var O=C.call(this,T,w)||this;return O.unsubscribe=null,O.handleChange=function(){if(!O.unsubscribe)return;var I=g(O.store.getState(),O.props);O.setState({subscribed:I})},O.store=O.context,O.state={subscribed:g(O.store.getState(),T),store:O.store,props:T},O}return _.getDerivedStateFromProps=function(T,w){return s&&s.length===2&&T!==w.props?{subscribed:g(w.store.getState(),T),props:T}:{props:T}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(T,w){return!f()(this.props,T)||!f()(this.state.subscribed,w.subscribed)},_.prototype.trySubscribe=function(){d&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},_.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},_.prototype.render=function(){var T=i(i(i({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,i({},T,{ref:this.props.miniStoreForwardedRef}))},_.displayName="Connect("+t(b)+")",_.contextType=x,_}(y.Component);if(c.forwardRef){var E=y.forwardRef(function(C,_){return y.createElement(S,i({},C,{miniStoreForwardedRef:_}))});return u()(E,b)}return u()(S,b)}}var l=function(){return l=Object.assign||function(s){for(var c,d=1,g=arguments.length;d<g;d++){c=arguments[d];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(s[v]=c[v])}return s},l.apply(this,arguments)};function r(s){var c=s,d=[];function g(S){c=l(l({},c),S);for(var E=0;E<d.length;E++)d[E]()}function v(){return c}function b(S){return d.push(S),function(){var C=d.indexOf(S);d.splice(C,1)}}return{setState:g,getState:v,subscribe:b}}},"I9Y+":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("4xFK")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DoubleRightOutlined";var i=A.forwardRef(a);D.default=i},ICMv:function(k,D,n){var y=n("bYtY"),p={getMin:function(x){var A=this.option,m=!x&&A.rangeStart!=null?A.rangeStart:A.min;return this.axis&&m!=null&&m!=="dataMin"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getMax:function(x){var A=this.option,m=!x&&A.rangeEnd!=null?A.rangeEnd:A.max;return this.axis&&m!=null&&m!=="dataMax"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getNeedCrossZero:function(){var x=this.option;return x.rangeStart!=null||x.rangeEnd!=null?!1:!x.scale},getCoordSysModel:y.noop,setRange:function(x,A){this.option.rangeStart=x,this.option.rangeEnd=A},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};k.exports=p},"ID/q":function(k,D,n){"use strict";n.d(D,"a",function(){return A});var y=n("cDf5"),p=n.n(y);function x(m,f){typeof m=="function"?m(f):p()(m)==="object"&&m&&"current"in m&&(m.current=f)}function A(){for(var m=arguments.length,f=new Array(m),h=0;h<m;h++)f[h]=arguments[h];return function(u){f.forEach(function(a){x(a,u)})}}},IDmD:function(k,D,n){var y=n("bYtY"),p={};function x(){this._coordinateSystems=[]}x.prototype={constructor:x,create:function(m,f){var h=[];y.each(p,function(u,a){var i=u.create(m,f);h=h.concat(i||[])}),this._coordinateSystems=h},update:function(m,f){y.each(this._coordinateSystems,function(h){h.update&&h.update(m,f)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},x.register=function(m,f){p[m]=f},x.get=function(m){return p[m]};var A=x;k.exports=A},IMiH:function(k,D,n){var y=n("Sj9i"),p=n("QBsz"),x=n("4mN7"),A=n("mFDi"),m=n("LPTA"),f=m.devicePixelRatio,h={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],a=[],i=[],t=[],o=Math.min,e=Math.max,l=Math.cos,r=Math.sin,s=Math.sqrt,c=Math.abs,d=typeof Float32Array!="undefined",g=function(S){this._saveData=!(S||!1),this._saveData&&(this.data=[]),this._ctx=null};g.prototype={constructor:g,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(S,E,C){C=C||0,this._ux=c(C/f/S)||0,this._uy=c(C/f/E)||0},getContext:function(){return this._ctx},beginPath:function(S){return this._ctx=S,S&&S.beginPath(),S&&(this.dpr=S.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(S,E){return this.addData(h.M,S,E),this._ctx&&this._ctx.moveTo(S,E),this._x0=S,this._y0=E,this._xi=S,this._yi=E,this},lineTo:function(S,E){var C=c(S-this._xi)>this._ux||c(E-this._yi)>this._uy||this._len<5;return this.addData(h.L,S,E),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(S,E):this._ctx.lineTo(S,E)),C&&(this._xi=S,this._yi=E),this},bezierCurveTo:function(S,E,C,_,T,w){return this.addData(h.C,S,E,C,_,T,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(S,E,C,_,T,w):this._ctx.bezierCurveTo(S,E,C,_,T,w)),this._xi=T,this._yi=w,this},quadraticCurveTo:function(S,E,C,_){return this.addData(h.Q,S,E,C,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(S,E,C,_):this._ctx.quadraticCurveTo(S,E,C,_)),this._xi=C,this._yi=_,this},arc:function(S,E,C,_,T,w){return this.addData(h.A,S,E,C,C,_,T-_,0,w?0:1),this._ctx&&this._ctx.arc(S,E,C,_,T,w),this._xi=l(T)*C+S,this._yi=r(T)*C+E,this},arcTo:function(S,E,C,_,T){return this._ctx&&this._ctx.arcTo(S,E,C,_,T),this},rect:function(S,E,C,_){return this._ctx&&this._ctx.rect(S,E,C,_),this.addData(h.R,S,E,C,_),this},closePath:function(){this.addData(h.Z);var S=this._ctx,E=this._x0,C=this._y0;return S&&(this._needsDash()&&this._dashedLineTo(E,C),S.closePath()),this._xi=E,this._yi=C,this},fill:function(S){S&&S.fill(),this.toStatic()},stroke:function(S){S&&S.stroke(),this.toStatic()},setLineDash:function(S){if(S instanceof Array){this._lineDash=S,this._dashIdx=0;for(var E=0,C=0;C<S.length;C++)E+=S[C];this._dashSum=E}return this},setLineDashOffset:function(S){return this._dashOffset=S,this},len:function(){return this._len},setData:function(S){var E=S.length;!(this.data&&this.data.length===E)&&d&&(this.data=new Float32Array(E));for(var C=0;C<E;C++)this.data[C]=S[C];this._len=E},appendPath:function(S){S instanceof Array||(S=[S]);for(var E=S.length,C=0,_=this._len,T=0;T<E;T++)C+=S[T].len();d&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+C));for(var T=0;T<E;T++)for(var w=S[T].data,O=0;O<w.length;O++)this.data[_++]=w[O];this._len=_},addData:function(S){if(!this._saveData)return;var E=this.data;this._len+arguments.length>E.length&&(this._expandData(),E=this.data);for(var C=0;C<arguments.length;C++)E[this._len++]=arguments[C];this._prevCmd=S},_expandData:function(){if(!(this.data instanceof Array)){for(var S=[],E=0;E<this._len;E++)S[E]=this.data[E];this.data=S}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(S,E){var C=this._dashSum,_=this._dashOffset,T=this._lineDash,w=this._ctx,O=this._xi,I=this._yi,R=S-O,M=E-I,F=s(R*R+M*M),P=O,X=I,B,j=T.length,W;for(R/=F,M/=F,_<0&&(_=C+_),_%=C,P-=_*R,X-=_*M;R>0&&P<=S||R<0&&P>=S||R===0&&(M>0&&X<=E||M<0&&X>=E);){if(W=this._dashIdx,B=T[W],P+=R*B,X+=M*B,this._dashIdx=(W+1)%j,R>0&&P<O||R<0&&P>O||M>0&&X<I||M<0&&X>I)continue;w[W%2?"moveTo":"lineTo"](R>=0?o(P,S):e(P,S),M>=0?o(X,E):e(X,E))}R=P-S,M=X-E,this._dashOffset=-s(R*R+M*M)},_dashedBezierTo:function(S,E,C,_,T,w){var O=this._dashSum,I=this._dashOffset,R=this._lineDash,M=this._ctx,F=this._xi,P=this._yi,X,B,j,W=y.cubicAt,z=0,V=this._dashIdx,Q=R.length,G,re,ee=0;for(I<0&&(I=O+I),I%=O,X=0;X<1;X+=.1)B=W(F,S,C,T,X+.1)-W(F,S,C,T,X),j=W(P,E,_,w,X+.1)-W(P,E,_,w,X),z+=s(B*B+j*j);for(;V<Q&&!(ee+=R[V],ee>I);V++);for(X=(ee-I)/z;X<=1;)G=W(F,S,C,T,X),re=W(P,E,_,w,X),V%2?M.moveTo(G,re):M.lineTo(G,re),X+=R[V]/z,V=(V+1)%Q;V%2!==0&&M.lineTo(T,w),B=T-G,j=w-re,this._dashOffset=-s(B*B+j*j)},_dashedQuadraticTo:function(S,E,C,_){var T=C,w=_;C=(C+2*S)/3,_=(_+2*E)/3,S=(this._xi+2*S)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(S,E,C,_,T,w)},toStatic:function(){var S=this.data;S instanceof Array&&(S.length=this._len,d&&(this.data=new Float32Array(S)))},getBoundingRect:function(){u[0]=u[1]=i[0]=i[1]=Number.MAX_VALUE,a[0]=a[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var S=this.data,E=0,C=0,_=0,T=0,w=0;w<S.length;){var O=S[w++];w===1&&(E=S[w],C=S[w+1],_=E,T=C);switch(O){case h.M:_=S[w++],T=S[w++],E=_,C=T,i[0]=_,i[1]=T,t[0]=_,t[1]=T;break;case h.L:x.fromLine(E,C,S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case h.C:x.fromCubic(E,C,S[w++],S[w++],S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case h.Q:x.fromQuadratic(E,C,S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case h.A:var I=S[w++],R=S[w++],M=S[w++],F=S[w++],P=S[w++],X=S[w++]+P;w+=1;var B=1-S[w++];w===1&&(_=l(P)*M+I,T=r(P)*F+R),x.fromArc(I,R,M,F,P,X,B,i,t),E=l(X)*M+I,C=r(X)*F+R;break;case h.R:_=E=S[w++],T=C=S[w++];var j=S[w++],W=S[w++];x.fromLine(_,T,_+j,T+W,i,t);break;case h.Z:E=_,C=T;break}p.min(u,u,i),p.max(a,a,t)}return w===0&&(u[0]=u[1]=a[0]=a[1]=0),new A(u[0],u[1],a[0]-u[0],a[1]-u[1])},rebuildPath:function(S){for(var E=this.data,C,_,T,w,O,I,R=this._ux,M=this._uy,F=this._len,P=0;P<F;){var X=E[P++];P===1&&(T=E[P],w=E[P+1],C=T,_=w);switch(X){case h.M:C=T=E[P++],_=w=E[P++],S.moveTo(T,w);break;case h.L:O=E[P++],I=E[P++],(c(O-T)>R||c(I-w)>M||P===F-1)&&(S.lineTo(O,I),T=O,w=I);break;case h.C:S.bezierCurveTo(E[P++],E[P++],E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case h.Q:S.quadraticCurveTo(E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case h.A:var B=E[P++],j=E[P++],W=E[P++],z=E[P++],V=E[P++],Q=E[P++],G=E[P++],re=E[P++],ee=W>z?W:z,ue=W>z?1:W/z,$=W>z?z/W:1,be=Math.abs(W-z)>.001,_e=V+Q;be?(S.translate(B,j),S.rotate(G),S.scale(ue,$),S.arc(0,0,ee,V,_e,1-re),S.scale(1/ue,1/$),S.rotate(-G),S.translate(-B,-j)):S.arc(B,j,ee,V,_e,1-re),P===1&&(C=l(V)*W+B,_=r(V)*z+j),T=l(_e)*W+B,w=r(_e)*z+j;break;case h.R:C=T=E[P],_=w=E[P+1],S.rect(E[P++],E[P++],E[P++],E[P++]);break;case h.Z:S.closePath(),T=C,w=_}}}},g.CMD=h;var v=g;k.exports=v},IUWy:function(k,D){var n={};function y(x,A){n[x]=A}function p(x){return n[x]}D.register=y,D.get=p},IWNH:function(k,D,n){var y=n("T4UG"),p=n("Bsck"),x=n("7aKB"),A=x.encodeHTML,m=n("Qxkt"),f=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(h){var u={name:h.name,children:h.data},a=h.leaves||{},i=new m(a,this,this.ecModel),t=p.createTree(u,this,{},o);function o(s){s.wrapMethod("getItemModel",function(c,d){var g=t.getNodeByDataIndex(d);return(!g.children.length||!g.isExpand)&&(c.parentModel=i),c})}var e=0;t.eachNode("preorder",function(s){s.depth>e&&(e=s.depth)});var l=h.expandAndCollapse,r=l&&h.initialTreeDepth>=0?h.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 h=this.get("orient");return h==="horizontal"?h="LR":h==="vertical"&&(h="TB"),h},setZoom:function(h){this.option.zoom=h},setCenter:function(h){this.option.center=h},formatTooltip:function(h){for(var u=this.getData().tree,a=u.root.children[0],i=u.getNodeByDataIndex(h),t=i.getValue(),o=i.name;i&&i!==a;)o=i.parentNode.name+"."+o,i=i.parentNode;return A(o+(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,n){var y=n("bYtY"),p=n("OELB"),x=n("7aKB"),A=n("lE7J"),m=n("ieMj"),f=m.prototype,h=Math.ceil,u=Math.floor,a=1e3,i=a*60,t=i*60,o=t*24,e=function(c,d,g,v){for(;g<v;){var b=g+v>>>1;c[b][1]<d?g=b+1:v=b}return g},l=m.extend({type:"time",getLabel:function(c){var d=this._stepLvl,g=new Date(c);return x.formatTime(d[0],g,this.getSetting("useUTC"))},niceExtent:function(c){var d=this._extent;if(d[0]===d[1]&&(d[0]-=o,d[1]+=o),d[1]===-Infinity&&d[0]===Infinity){var g=new Date;d[1]=+new Date(g.getFullYear(),g.getMonth(),g.getDate()),d[0]=d[1]-o}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var v=this._interval;c.fixMin||(d[0]=p.round(u(d[0]/v)*v)),c.fixMax||(d[1]=p.round(h(d[1]/v)*v))},niceTicks:function(c,d,g){c=c||10;var v=this._extent,b=v[1]-v[0],S=b/c;d!=null&&S<d&&(S=d),g!=null&&S>g&&(S=g);var E=r.length,C=e(r,S,0,E),_=r[Math.min(C,E-1)],T=_[1];if(_[0]==="year"){var w=b/T,O=p.nice(w/c,!0);T*=O}var I=this.getSetting("useUTC")?0:new Date(+v[0]||+v[1]).getTimezoneOffset()*60*1e3,R=[Math.round(h((v[0]-I)/T)*T+I),Math.round(u((v[1]-I)/T)*T+I)];A.fixExtent(R,v),this._stepLvl=_,this._interval=T,this._niceExtent=R},parse:function(c){return+p.parseDate(c)}});y.each(["contain","normalize"],function(c){l.prototype[c]=function(d){return f[c].call(this,this.parse(d))}});var r=[["hh:mm:ss",a],["hh:mm:ss",a*5],["hh:mm:ss",a*10],["hh:mm:ss",a*15],["hh:mm:ss",a*30],[`hh:mm
MM-dd`,i],[`hh:mm
MM-dd`,i*5],[`hh:mm
MM-dd`,i*10],[`hh:mm
MM-dd`,i*15],[`hh:mm
MM-dd`,i*30],[`hh:mm
MM-dd`,t],[`hh:mm
MM-dd`,t*2],[`hh:mm
MM-dd`,t*6],[`hh:mm
MM-dd`,t*12],[`MM-dd
yyyy`,o],[`MM-dd
yyyy`,o*2],[`MM-dd
yyyy`,o*3],[`MM-dd
yyyy`,o*4],[`MM-dd
yyyy`,o*5],[`MM-dd
yyyy`,o*6],["week",o*7],[`MM-dd
yyyy`,o*10],["week",o*14],["week",o*21],["month",o*31],["week",o*42],["month",o*62],["week",o*70],["quarter",o*95],["month",o*31*4],["month",o*31*5],["half-year",o*380/2],["month",o*31*8],["month",o*31*10],["year",o*380]];l.create=function(c){return new l({useUTC:c.ecModel.get("useUTC")})};var s=l;k.exports=s},IXuL:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("MwEJ"),A=n("T4UG"),m=A.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(f,h){return x(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity}});k.exports=m},IXyC:function(k,D,n){var y=n("bYtY"),p=n("bLfw");n("3zoK");var x=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(A){var m=this.option;A&&y.merge(m,A,!0),this._initDimensions()},contains:function(A,m){var f=A.get("parallelIndex");return f!=null&&m.getComponent("parallel",f)===this},setAxisExpand:function(A){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(m){A.hasOwnProperty(m)&&(this.option[m]=A[m])},this)},_initDimensions:function(){var A=this.dimensions=[],m=this.parallelAxisIndex=[],f=y.filter(this.dependentModels.parallelAxis,function(h){return(h.get("parallelIndex")||0)===this.componentIndex},this);y.each(f,function(h){A.push("dim"+h.get("dim")),m.push(h.componentIndex)})}});k.exports=x},Ib8C:function(k,D,n){(function(y){(function(p,x){k.exports=D=x()})(this,function(){var p=p||function(x,A){var m;if(typeof window!="undefined"&&window.crypto&&(m=window.crypto),typeof self!="undefined"&&self.crypto&&(m=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window!="undefined"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof y!="undefined"&&y.crypto&&(m=y.crypto),!m&&!0)try{m=n(4)}catch(g){}var f=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},h=Object.create||function(){function g(){}return function(v){var b;return g.prototype=v,b=new g,g.prototype=null,b}}(),u={},a=u.lib={},i=a.Base=function(){return{extend:function(v){var b=h(this);return v&&b.mixIn(v),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var b in v)v.hasOwnProperty(b)&&(this[b]=v[b]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=a.WordArray=i.extend({init:function(v,b){v=this.words=v||[],b!=A?this.sigBytes=b:this.sigBytes=v.length*4},toString:function(v){return(v||e).stringify(this)},concat:function(v){var b=this.words,S=v.words,E=this.sigBytes,C=v.sigBytes;if(this.clamp(),E%4)for(var _=0;_<C;_++){var T=S[_>>>2]>>>24-_%4*8&255;b[E+_>>>2]|=T<<24-(E+_)%4*8}else for(var w=0;w<C;w+=4)b[E+w>>>2]=S[w>>>2];return this.sigBytes+=C,this},clamp:function(){var v=this.words,b=this.sigBytes;v[b>>>2]&=4294967295<<32-b%4*8,v.length=x.ceil(b/4)},clone:function(){var v=i.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var b=[],S=0;S<v;S+=4)b.push(f());return new t.init(b,v)}}),o=u.enc={},e=o.Hex={stringify:function(v){for(var b=v.words,S=v.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(v){for(var b=v.length,S=[],E=0;E<b;E+=2)S[E>>>3]|=parseInt(v.substr(E,2),16)<<24-E%8*4;return new t.init(S,b/2)}},l=o.Latin1={stringify:function(v){for(var b=v.words,S=v.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(v){for(var b=v.length,S=[],E=0;E<b;E++)S[E>>>2]|=(v.charCodeAt(E)&255)<<24-E%4*8;return new t.init(S,b)}},r=o.Utf8={stringify:function(v){try{return decodeURIComponent(escape(l.stringify(v)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(v){return l.parse(unescape(encodeURIComponent(v)))}},s=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=r.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var b,S=this._data,E=S.words,C=S.sigBytes,_=this.blockSize,T=_*4,w=C/T;v?w=x.ceil(w):w=x.max((w|0)-this._minBufferSize,0);var O=w*_,I=x.min(O*4,C);if(O){for(var R=0;R<O;R+=_)this._doProcessBlock(E,R);b=E.splice(0,O),S.sigBytes-=I}return new t.init(b,I)},clone:function(){var v=i.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0}),c=a.Hasher=s.extend({cfg:i.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(v){return function(b,S){return new v.init(S).finalize(b)}},_createHmacHelper:function(v){return function(b,S){return new d.HMAC.init(v,S).finalize(b)}}}),d=u.algo={};return u}(Math);return p})}).call(this,n("yLpj"))},ItGF:function(k,D){var n={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?n={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?n={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?n={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:n=p(navigator.userAgent);var y=n;function p(x){var A={},m={},f=x.match(/Firefox\/([\d.]+)/),h=x.match(/MSIE\s([\d.]+)/)||x.match(/Trident\/.+?rv:(([\d.]+))/),u=x.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(x);return f&&(m.firefox=!0,m.version=f[1]),h&&(m.ie=!0,m.version=h[1]),u&&(m.edge=!0,m.version=u[1]),a&&(m.weChat=!0),{browser:m,os:A,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!m.ie&&!m.edge,pointerEventsSupported:"onpointerdown"in window&&(m.edge||m.ie&&m.version>=11),domSupported:typeof document!="undefined"}}k.exports=y},ItS6:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("eP3c"),p=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function A(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function m(u,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,a,i){return a&&m(u.prototype,a),i&&m(u,i),u}var h=function(){function u(){A(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(i){i?(this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(i){i>this.chunkSize&&(this.chunkSize=i,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=i;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=i)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,y.inflateReset)(this.strm)}}]),u}();D.default=h},Itpr:function(k,D,n){var y=n("+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,d;c=s.pop();)if(d=c.children,c.isExpand&&d.length)for(var g=d.length,v=g-1;v>=0;v--){var b=d[v];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:v,thread:null},s.push(b)}}function x(r,s){var c=r.isExpand?r.children:[],d=r.parentNode.children,g=r.hierNode.i?d[r.hierNode.i-1]:null;if(c.length){u(r);var v=(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-v):r.hierNode.prelim=v}else g&&(r.hierNode.prelim=g.hierNode.prelim+s(r,g));r.parentNode.hierNode.defaultAncestor=a(r,g,r.parentNode.hierNode.defaultAncestor||d[0],s)}function A(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 h(r,s){return y.getLayoutRect(r.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})}function u(r){for(var s=r.children,c=s.length,d=0,g=0;--c>=0;){var v=s[c];v.hierNode.prelim+=d,v.hierNode.modifier+=d,g+=v.hierNode.change,d+=v.hierNode.shift+g}}function a(r,s,c,d){if(s){for(var g=r,v=r,b=v.parentNode.children[0],S=s,E=g.hierNode.modifier,C=v.hierNode.modifier,_=b.hierNode.modifier,T=S.hierNode.modifier;S=i(S),v=t(v),S&&v;){g=i(g),b=t(b),g.hierNode.ancestor=r;var w=S.hierNode.prelim+T-v.hierNode.prelim-C+d(S,v);w>0&&(e(o(S,r,c),r,w),C+=w,E+=w),T+=S.hierNode.modifier,C+=v.hierNode.modifier,E+=g.hierNode.modifier,_+=b.hierNode.modifier}S&&!i(g)&&(g.hierNode.thread=S,g.hierNode.modifier+=T-E),v&&!t(b)&&(b.hierNode.thread=v,b.hierNode.modifier+=C-_,c=r)}return c}function i(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 o(r,s,c){return r.hierNode.ancestor.parentNode===s.parentNode?r.hierNode.ancestor:c}function e(r,s,c){var d=c/(s.hierNode.i-r.hierNode.i);s.hierNode.change-=d,s.hierNode.shift+=c,s.hierNode.modifier+=c,s.hierNode.prelim+=c,r.hierNode.change+=d}function l(r,s){return r.parentNode===s.parentNode?1:2}D.init=p,D.firstWalk=x,D.secondWalk=A,D.separation=m,D.radialCoordinate=f,D.getViewRect=h},IwbS:function(k,D,n){var y=n("bYtY"),p=n("NC18"),x=n("Qe9p"),A=n("Fofx"),m=n("QBsz"),f=n("y+Vt"),h=n("DN4a"),u=n("Dagg");D.Image=u;var a=n("4fz+");D.Group=a;var i=n("dqUG");D.Text=i;var t=n("2fw6");D.Circle=t;var o=n("SqI9");D.Sector=o;var e=n("RXMa");D.Ring=e;var l=n("h7HQ");D.Polygon=l;var r=n("1Jh7");D.Polyline=r;var s=n("x6Kt");D.Rect=s;var c=n("yxFR");D.Line=c;var d=n("rA99");D.BezierCurve=d;var g=n("jTL6");D.Arc=g;var v=n("1MYJ");D.CompoundPath=v;var b=n("SKnc");D.LinearGradient=b;var S=n("3e3G");D.RadialGradient=S;var E=n("mFDi");D.BoundingRect=E;var C=n("OS9S");D.IncrementalDisplayable=C;var _=n("nPnh"),T=Math.max,w=Math.min,O={},I=1,R={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},M="emphasis",F="normal",P=1,X={},B={};function j(Jt){return f.extend(Jt)}function W(Jt,Dt){return p.extendFromString(Jt,Dt)}function z(Jt,Dt){B[Jt]=Dt}function V(Jt){if(B.hasOwnProperty(Jt))return B[Jt]}function Q(Jt,Dt,dn,Fn){var Zn=p.createFromString(Jt,Dt);return dn&&(Fn==="center"&&(dn=re(dn,Zn.getBoundingRect())),ue(Zn,dn)),Zn}function G(Jt,Dt,dn){var Fn=new u({style:{image:Jt,x:Dt.x,y:Dt.y,width:Dt.width,height:Dt.height},onload:function(Zn){if(dn==="center"){var ci={width:Zn.width,height:Zn.height};Fn.setStyle(re(Dt,ci))}}});return Fn}function re(Jt,Dt){var dn=Dt.width/Dt.height,Fn=Jt.height*dn,Zn;Fn<=Jt.width?Zn=Jt.height:(Fn=Jt.width,Zn=Fn/dn);var ci=Jt.x+Jt.width/2,Xi=Jt.y+Jt.height/2;return{x:ci-Fn/2,y:Xi-Zn/2,width:Fn,height:Zn}}var ee=p.mergePath;function ue(Jt,Dt){if(!Jt.applyTransform)return;var dn=Jt.getBoundingRect(),Fn=dn.calculateTransform(Dt);Jt.applyTransform(Fn)}function $(Jt){return _.subPixelOptimizeLine(Jt.shape,Jt.shape,Jt.style),Jt}function be(Jt){return _.subPixelOptimizeRect(Jt.shape,Jt.shape,Jt.style),Jt}var _e=_.subPixelOptimize;function Ee(Jt){return Jt!=null&&Jt!=="none"}var Xe=y.createHashMap(),He=0;function nt(Jt){if(typeof Jt!="string")return Jt;var Dt=Xe.get(Jt);return Dt||(Dt=x.lift(Jt,-.1),He<1e4&&(Xe.set(Jt,Dt),He++)),Dt}function Ie(Jt){if(!Jt.__hoverStlDirty)return;Jt.__hoverStlDirty=!1;var Dt=Jt.__hoverStl;if(!Dt){Jt.__cachedNormalStl=Jt.__cachedNormalZ2=null;return}var dn=Jt.__cachedNormalStl={};Jt.__cachedNormalZ2=Jt.z2;var Fn=Jt.style;for(var Zn in Dt)Dt[Zn]!=null&&(dn[Zn]=Fn[Zn]);dn.fill=Fn.fill,dn.stroke=Fn.stroke}function oe(Jt){var Dt=Jt.__hoverStl;if(!Dt||Jt.__highlighted)return;var dn=Jt.__zr,Fn=Jt.useHoverLayer&&dn&&dn.painter.type==="canvas";if(Jt.__highlighted=Fn?"layer":"plain",Jt.isGroup||!dn&&Jt.useHoverLayer)return;var Zn=Jt,ci=Jt.style;Fn&&(Zn=dn.addHover(Jt),ci=Zn.style),Xt(ci),Fn||Ie(Zn),ci.extendFrom(Dt),ot(ci,Dt,"fill"),ot(ci,Dt,"stroke"),Pt(ci),Fn||(Jt.dirty(!1),Jt.z2+=I)}function ot(Jt,Dt,dn){!Ee(Dt[dn])&&Ee(Jt[dn])&&(Jt[dn]=nt(Jt[dn]))}function he(Jt){var Dt=Jt.__highlighted;if(!Dt)return;if(Jt.__highlighted=!1,Jt.isGroup)return;if(Dt==="layer")Jt.__zr&&Jt.__zr.removeHover(Jt);else{var dn=Jt.style,Fn=Jt.__cachedNormalStl;Fn&&(Xt(dn),Jt.setStyle(Fn),Pt(dn));var Zn=Jt.__cachedNormalZ2;Zn!=null&&Jt.z2-Zn===I&&(Jt.z2=Zn)}}function J(Jt,Dt,dn){var Fn=F,Zn=F,ci;Jt.__highlighted&&(Fn=M,ci=!0),Dt(Jt,dn),Jt.__highlighted&&(Zn=M,ci=!0),Jt.isGroup&&Jt.traverse(function(Xi){!Xi.isGroup&&Dt(Xi,dn)}),ci&&Jt.__highDownOnUpdate&&Jt.__highDownOnUpdate(Fn,Zn)}function Y(Jt,Dt){Dt=Jt.__hoverStl=Dt!==!1&&(Jt.hoverStyle||Dt||{}),Jt.__hoverStlDirty=!0,Jt.__highlighted&&(Jt.__cachedNormalStl=null,he(Jt),oe(Jt))}function q(Jt){!je(this,Jt)&&!this.__highByOuter&&J(this,oe)}function fe(Jt){!je(this,Jt)&&!this.__highByOuter&&J(this,he)}function we(Jt){this.__highByOuter|=1<<(Jt||0),J(this,oe)}function Ne(Jt){!(this.__highByOuter&=~(1<<(Jt||0)))&&J(this,he)}function je(Jt,Dt){return Jt.__highDownSilentOnTouch&&Dt.zrByTouch}function me(Jt,Dt){Ce(Jt,!0),J(Jt,Y,Dt)}function Ce(Jt,Dt){var dn=Dt===!1;if(Jt.__highDownSilentOnTouch=Jt.highDownSilentOnTouch,Jt.__highDownOnUpdate=Jt.highDownOnUpdate,!dn||Jt.__highDownDispatcher){var Fn=dn?"off":"on";Jt[Fn]("mouseover",q)[Fn]("mouseout",fe),Jt[Fn]("emphasis",we)[Fn]("normal",Ne),Jt.__highByOuter=Jt.__highByOuter||0,Jt.__highDownDispatcher=!dn}}function Fe(Jt){return!!(Jt&&Jt.__highDownDispatcher)}function it(Jt){var Dt=X[Jt];return Dt==null&&P<=32&&(Dt=X[Jt]=P++),Dt}function Ct(Jt,Dt,dn,Fn,Zn,ci,Xi){Zn=Zn||O;var Gn=Zn.labelFetcher,ei=Zn.labelDataIndex,Zt=Zn.labelDimIndex,Nt=Zn.labelProp,Me=dn.getShallow("show"),ke=Fn.getShallow("show"),Pe;(Me||ke)&&(Gn&&(Pe=Gn.getFormattedLabel(ei,"normal",null,Zt,Nt)),Pe==null&&(Pe=y.isFunction(Zn.defaultText)?Zn.defaultText(ei,Zn):Zn.defaultText));var tt=Me?Pe:null,vt=ke?y.retrieve2(Gn?Gn.getFormattedLabel(ei,"emphasis",null,Zt,Nt):null,Pe):null;(tt!=null||vt!=null)&&(Ve(Jt,dn,ci,Zn),Ve(Dt,Fn,Xi,Zn,!0)),Jt.text=tt,Dt.text=vt}function mt(Jt,Dt,dn){var Fn=Jt.style;Dt&&(Xt(Fn),Jt.setStyle(Dt),Pt(Fn)),Fn=Jt.__hoverStl,dn&&Fn&&(Xt(Fn),y.extend(Fn,dn),Pt(Fn))}function Ve(Jt,Dt,dn,Fn,Zn){return dt(Jt,Dt,Fn,Zn),dn&&y.extend(Jt,dn),Jt}function or(Jt,Dt,dn){var Fn={isRectText:!0},Zn;dn===!1?Zn=!0:Fn.autoColor=dn,dt(Jt,Dt,Fn,Zn)}function dt(Jt,Dt,dn,Fn){if(dn=dn||O,dn.isRectText){var Zn;dn.getTextPosition?Zn=dn.getTextPosition(Dt,Fn):(Zn=Dt.getShallow("position")||(Fn?null:"inside"),Zn==="outside"&&(Zn="top")),Jt.textPosition=Zn,Jt.textOffset=Dt.getShallow("offset");var ci=Dt.getShallow("rotate");ci!=null&&(ci*=Math.PI/180),Jt.textRotation=ci,Jt.textDistance=y.retrieve2(Dt.getShallow("distance"),Fn?null:5)}var Xi=Dt.ecModel,Gn=Xi&&Xi.option.textStyle,ei=Yt(Dt),Zt;if(ei){Zt={};for(var Nt in ei)if(ei.hasOwnProperty(Nt)){var Me=Dt.getModel(["rich",Nt]);hr(Zt[Nt]={},Me,Gn,dn,Fn)}}return Jt.rich=Zt,hr(Jt,Dt,Gn,dn,Fn,!0),dn.forceRich&&!dn.textStyle&&(dn.textStyle={}),Jt}function Yt(Jt){for(var Dt;Jt&&Jt!==Jt.ecModel;){var dn=(Jt.option||O).rich;if(dn){Dt=Dt||{};for(var Fn in dn)dn.hasOwnProperty(Fn)&&(Dt[Fn]=1)}Jt=Jt.parentModel}return Dt}function hr(Jt,Dt,dn,Fn,Zn,ci){dn=!Zn&&dn||O,Jt.textFill=Gt(Dt.getShallow("color"),Fn)||dn.color,Jt.textStroke=Gt(Dt.getShallow("textBorderColor"),Fn)||dn.textBorderColor,Jt.textStrokeWidth=y.retrieve2(Dt.getShallow("textBorderWidth"),dn.textBorderWidth),Zn||(ci&&(Jt.insideRollbackOpt=Fn,Pt(Jt)),Jt.textFill==null&&(Jt.textFill=Fn.autoColor)),Jt.fontStyle=Dt.getShallow("fontStyle")||dn.fontStyle,Jt.fontWeight=Dt.getShallow("fontWeight")||dn.fontWeight,Jt.fontSize=Dt.getShallow("fontSize")||dn.fontSize,Jt.fontFamily=Dt.getShallow("fontFamily")||dn.fontFamily,Jt.textAlign=Dt.getShallow("align"),Jt.textVerticalAlign=Dt.getShallow("verticalAlign")||Dt.getShallow("baseline"),Jt.textLineHeight=Dt.getShallow("lineHeight"),Jt.textWidth=Dt.getShallow("width"),Jt.textHeight=Dt.getShallow("height"),Jt.textTag=Dt.getShallow("tag"),(!ci||!Fn.disableBox)&&(Jt.textBackgroundColor=Gt(Dt.getShallow("backgroundColor"),Fn),Jt.textPadding=Dt.getShallow("padding"),Jt.textBorderColor=Gt(Dt.getShallow("borderColor"),Fn),Jt.textBorderWidth=Dt.getShallow("borderWidth"),Jt.textBorderRadius=Dt.getShallow("borderRadius"),Jt.textBoxShadowColor=Dt.getShallow("shadowColor"),Jt.textBoxShadowBlur=Dt.getShallow("shadowBlur"),Jt.textBoxShadowOffsetX=Dt.getShallow("shadowOffsetX"),Jt.textBoxShadowOffsetY=Dt.getShallow("shadowOffsetY")),Jt.textShadowColor=Dt.getShallow("textShadowColor")||dn.textShadowColor,Jt.textShadowBlur=Dt.getShallow("textShadowBlur")||dn.textShadowBlur,Jt.textShadowOffsetX=Dt.getShallow("textShadowOffsetX")||dn.textShadowOffsetX,Jt.textShadowOffsetY=Dt.getShallow("textShadowOffsetY")||dn.textShadowOffsetY}function Gt(Jt,Dt){return Jt!=="auto"?Jt:Dt&&Dt.autoColor?Dt.autoColor:null}function Pt(Jt){var Dt=Jt.textPosition,dn=Jt.insideRollbackOpt,Fn;if(dn&&Jt.textFill==null){var Zn=dn.autoColor,ci=dn.isRectText,Xi=dn.useInsideStyle,Gn=Xi!==!1&&(Xi===!0||ci&&Dt&&typeof Dt=="string"&&Dt.indexOf("inside")>=0),ei=!Gn&&Zn!=null;(Gn||ei)&&(Fn={textFill:Jt.textFill,textStroke:Jt.textStroke,textStrokeWidth:Jt.textStrokeWidth}),Gn&&(Jt.textFill="#fff",Jt.textStroke==null&&(Jt.textStroke=Zn,Jt.textStrokeWidth==null&&(Jt.textStrokeWidth=2))),ei&&(Jt.textFill=Zn)}Jt.insideRollback=Fn}function Xt(Jt){var Dt=Jt.insideRollback;Dt&&(Jt.textFill=Dt.textFill,Jt.textStroke=Dt.textStroke,Jt.textStrokeWidth=Dt.textStrokeWidth,Jt.insideRollback=null)}function Ge(Jt,Dt){var dn=Dt&&Dt.getModel("textStyle");return y.trim([Jt.fontStyle||dn&&dn.getShallow("fontStyle")||"",Jt.fontWeight||dn&&dn.getShallow("fontWeight")||"",(Jt.fontSize||dn&&dn.getShallow("fontSize")||12)+"px",Jt.fontFamily||dn&&dn.getShallow("fontFamily")||"sans-serif"].join(" "))}function pe(Jt,Dt,dn,Fn,Zn,ci){typeof Zn=="function"&&(ci=Zn,Zn=null);var Xi=Fn&&Fn.isAnimationEnabled();if(Xi){var Gn=Jt?"Update":"",ei=Fn.getShallow("animationDuration"+Gn),Zt=Fn.getShallow("animationEasing"+Gn),Nt=Fn.getShallow("animationDelay"+Gn);typeof Nt=="function"&&(Nt=Nt(Zn,Fn.getAnimationDelayParams?Fn.getAnimationDelayParams(Dt,Zn):null)),typeof ei=="function"&&(ei=ei(Zn)),ei>0?Dt.animateTo(dn,ei,Nt||0,Zt,ci,!!ci):(Dt.stopAnimation(),Dt.attr(dn),ci&&ci())}else Dt.stopAnimation(),Dt.attr(dn),ci&&ci()}function se(Jt,Dt,dn,Fn,Zn){pe(!0,Jt,Dt,dn,Fn,Zn)}function lt(Jt,Dt,dn,Fn,Zn){pe(!1,Jt,Dt,dn,Fn,Zn)}function Ze(Jt,Dt){for(var dn=A.identity([]);Jt&&Jt!==Dt;)A.mul(dn,Jt.getLocalTransform(),dn),Jt=Jt.parent;return dn}function de(Jt,Dt,dn){return Dt&&!y.isArrayLike(Dt)&&(Dt=h.getLocalTransform(Dt)),dn&&(Dt=A.invert([],Dt)),m.applyTransform([],Jt,Dt)}function _t(Jt,Dt,dn){var Fn=Dt[4]===0||Dt[5]===0||Dt[0]===0?1:Math.abs(2*Dt[4]/Dt[0]),Zn=Dt[4]===0||Dt[5]===0||Dt[2]===0?1:Math.abs(2*Dt[4]/Dt[2]),ci=[Jt==="left"?-Fn:Jt==="right"?Fn:0,Jt==="top"?-Zn:Jt==="bottom"?Zn:0];return ci=de(ci,Dt,dn),Math.abs(ci[0])>Math.abs(ci[1])?ci[0]>0?"right":"left":ci[1]>0?"bottom":"top"}function er(Jt,Dt,dn,Fn){if(!Jt||!Dt)return;function Zn(Gn){var ei={};return Gn.traverse(function(Zt){!Zt.isGroup&&Zt.anid&&(ei[Zt.anid]=Zt)}),ei}function ci(Gn){var ei={position:m.clone(Gn.position),rotation:Gn.rotation};return Gn.shape&&(ei.shape=y.extend({},Gn.shape)),ei}var Xi=Zn(Jt);Dt.traverse(function(Gn){if(!Gn.isGroup&&Gn.anid){var ei=Xi[Gn.anid];if(ei){var Zt=ci(Gn);Gn.attr(ci(ei)),se(Gn,Zt,dn,Gn.dataIndex)}}})}function yt(Jt,Dt){return y.map(Jt,function(dn){var Fn=dn[0];Fn=T(Fn,Dt.x),Fn=w(Fn,Dt.x+Dt.width);var Zn=dn[1];return Zn=T(Zn,Dt.y),Zn=w(Zn,Dt.y+Dt.height),[Fn,Zn]})}function Ar(Jt,Dt){var dn=T(Jt.x,Dt.x),Fn=w(Jt.x+Jt.width,Dt.x+Dt.width),Zn=T(Jt.y,Dt.y),ci=w(Jt.y+Jt.height,Dt.y+Dt.height);if(Fn>=dn&&ci>=Zn)return{x:dn,y:Zn,width:Fn-dn,height:ci-Zn}}function Sr(Jt,Dt,dn){Dt=y.extend({rectHover:!0},Dt);var Fn=Dt.style={strokeNoScale:!0};if(dn=dn||{x:-1,y:-1,width:2,height:2},Jt)return Jt.indexOf("image://")===0?(Fn.image=Jt.slice(8),y.defaults(Fn,dn),new u(Dt)):Q(Jt.replace("path://",""),Dt,dn,"center")}function Cn(Jt,Dt,dn,Fn,Zn){for(var ci=0,Xi=Zn[Zn.length-1];ci<Zn.length;ci++){var Gn=Zn[ci];if(mr(Jt,Dt,dn,Fn,Gn[0],Gn[1],Xi[0],Xi[1]))return!0;Xi=Gn}}function mr(Jt,Dt,dn,Fn,Zn,ci,Xi,Gn){var ei=dn-Jt,Zt=Fn-Dt,Nt=Xi-Zn,Me=Gn-ci,ke=Pr(Nt,Me,ei,Zt);if(gr(ke))return!1;var Pe=Jt-Zn,tt=Dt-ci,vt=Pr(Pe,tt,ei,Zt)/ke;if(vt<0||vt>1)return!1;var St=Pr(Pe,tt,Nt,Me)/ke;return!(St<0||St>1)}function Pr(Jt,Dt,dn,Fn){return Jt*Fn-dn*Dt}function gr(Jt){return Jt<=1e-6&&Jt>=-1e-6}z("circle",t),z("sector",o),z("ring",e),z("polygon",l),z("polyline",r),z("rect",s),z("line",c),z("bezierCurve",d),z("arc",g),D.Z2_EMPHASIS_LIFT=I,D.CACHED_LABEL_STYLE_PROPERTIES=R,D.extendShape=j,D.extendPath=W,D.registerShape=z,D.getShapeClass=V,D.makePath=Q,D.makeImage=G,D.mergePath=ee,D.resizePath=ue,D.subPixelOptimizeLine=$,D.subPixelOptimizeRect=be,D.subPixelOptimize=_e,D.setElementHoverStyle=Y,D.setHoverStyle=me,D.setAsHighDownDispatcher=Ce,D.isHighDownDispatcher=Fe,D.getHighlightDigit=it,D.setLabelStyle=Ct,D.modifyLabelStyle=mt,D.setTextStyle=Ve,D.setText=or,D.getFont=Ge,D.updateProps=se,D.initProps=lt,D.getTransform=Ze,D.applyTransform=de,D.transformDirection=_t,D.groupTransition=er,D.clipPointsByRect=yt,D.clipRectByRect=Ar,D.createIcon=Sr,D.linePolygonIntersect=Cn,D.lineLineIntersect=mr},IyUQ:function(k,D,n){var y=n("bYtY"),p=n("YH21"),x=n("IwbS"),A=n("iLNv"),m=n("fc+c"),f=n("OELB"),h=n("+TT/"),u=n("72pK"),a=x.Rect,i=f.linearMap,t=f.asc,o=y.bind,e=y.each,l=7,r=1,s=30,c="horizontal",d="vertical",g=5,v=["line","bar","candlestick","scatter"],b=m.extend({type:"dataZoom.slider",init:function(_,T){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=T},render:function(_,T,w,O){if(b.superApply(this,"render",arguments),A.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=_.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!O||O.type!=="dataZoom"||O.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){b.superApply(this,"remove",arguments),A.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),A.clear(this,"_dispatchZoomAction")},_buildView:function(){var _=this.group;_.removeAll(),this._resetLocation(),this._resetInterval();var T=this._displayables.barGroup=new x.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),_.add(T),this._positionGroup()},_resetLocation:function(){var _=this.dataZoomModel,T=this.api,w=this._findCoordRect(),O={width:T.getWidth(),height:T.getHeight()},I=this._orient===c?{right:O.width-w.x-w.width,top:O.height-s-l,width:w.width,height:s}:{right:l,top:w.y,width:s,height:w.height},R=h.getLayoutParams(_.option);y.each(["right","top","width","height"],function(F){R[F]==="ph"&&(R[F]=I[F])});var M=h.getLayoutRect(R,O,_.padding);this._location={x:M.x,y:M.y},this._size=[M.width,M.height],this._orient===d&&this._size.reverse()},_positionGroup:function(){var _=this.group,T=this._location,w=this._orient,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),R=this._displayables.barGroup,M=(this._dataShadowInfo||{}).otherAxisInverse;R.attr(w===c&&!I?{scale:M?[1,1]:[1,-1]}:w===c&&I?{scale:M?[-1,1]:[-1,-1]}:w===d&&!I?{scale:M?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:M?[-1,-1]:[-1,1],rotation:Math.PI/2});var F=_.getBoundingRect([R]);_.attr("position",[T.x-F.x,T.y-F.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var _=this.dataZoomModel,T=this._size,w=this._displayables.barGroup;w.add(new a({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:_.get("backgroundColor")},z2:-40})),w.add(new a({shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var _=this._dataShadowInfo=this._prepareDataShadowInfo();if(!_)return;var T=this._size,w=_.series,O=w.getRawData(),I=w.getShadowDim?w.getShadowDim():_.otherDim;if(I==null)return;var R=O.getDataExtent(I),M=(R[1]-R[0])*.3;R=[R[0]-M,R[1]+M];var F=[0,T[1]],P=[0,T[0]],X=[[T[0],0],[0,0]],B=[],j=P[1]/(O.count()-1),W=0,z=Math.round(O.count()/T[0]),V;O.each([I],function(G,re){if(z>0&&re%z){W+=j;return}var ee=G==null||isNaN(G)||G==="",ue=ee?0:i(G,R,F,!0);ee&&!V&&re?(X.push([X[X.length-1][0],0]),B.push([B[B.length-1][0],0])):!ee&&V&&(X.push([W,0]),B.push([W,0])),X.push([W,ue]),B.push([W,ue]),W+=j,V=ee});var Q=this.dataZoomModel;this._displayables.barGroup.add(new x.Polygon({shape:{points:X},style:y.defaults({fill:Q.get("dataBackgroundColor")},Q.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new x.Polyline({shape:{points:B},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,T=_.get("showDataShadow");if(T===!1)return;var w,O=this.ecModel;return _.eachTargetAxis(function(I,R){var M=_.getAxisProxy(I.name,R).getTargetSeriesModels();y.each(M,function(F){if(w)return;if(T!==!0&&y.indexOf(v,F.get("type"))<0)return;var P=O.getComponent(I.axis,R).axis,X=S(I.name),B,j=F.coordinateSystem;X!=null&&j.getOtherAxis&&(B=j.getOtherAxis(P).inverse),X=F.getData().mapDimension(X),w={thisAxis:P,series:F,thisDim:I.name,otherDim:X,otherAxisInverse:B}},this)},this),w},_renderHandle:function(){var _=this._displayables,T=_.handles=[],w=_.handleLabels=[],O=this._displayables.barGroup,I=this._size,R=this.dataZoomModel;O.add(_.filler=new a({draggable:!0,cursor:E(this._orient),drift:o(this._onDragMove,this,"all"),ondragstart:o(this._showDataInfo,this,!0),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1),style:{fill:R.get("fillerColor"),textPosition:"inside"}})),O.add(new a({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:R.get("dataBackgroundColor")||R.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(M){var F=x.createIcon(R.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:o(this._onDragMove,this,M),ondragend:o(this._onDragEnd,this),onmouseover:o(this._showDataInfo,this,!0),onmouseout:o(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),P=F.getBoundingRect();this._handleHeight=f.parsePercent(R.get("handleSize"),this._size[1]),this._handleWidth=P.width/P.height*this._handleHeight,F.setStyle(R.getModel("handleStyle").getItemStyle());var X=R.get("handleColor");X!=null&&(F.style.fill=X),O.add(T[M]=F);var B=R.textStyleModel;this.group.add(w[M]=new x.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:B.getTextColor(),textFont:B.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[i(_[0],[0,100],T,!0),i(_[1],[0,100],T,!0)]},_updateInterval:function(_,T){var w=this.dataZoomModel,O=this._handleEnds,I=this._getViewExtent(),R=w.findRepresentativeAxisProxy().getMinMaxSpan(),M=[0,100];u(T,O,I,w.get("zoomLock")?"all":_,R.minSpan!=null?i(R.minSpan,M,I,!0):null,R.maxSpan!=null?i(R.maxSpan,M,I,!0):null);var F=this._range,P=this._range=t([i(O[0],I,M,!0),i(O[1],I,M,!0)]);return!F||F[0]!==P[0]||F[1]!==P[1]},_updateView:function(_){var T=this._displayables,w=this._handleEnds,O=t(w.slice()),I=this._size;e([0,1],function(R){var M=T.handles[R],F=this._handleHeight;M.attr({scale:[F/2,F/2],position:[w[R],I[1]/2-F/2]})},this),T.filler.setShape({x:O[0],y:0,width:O[1]-O[0],height:I[1]}),this._updateDataInfo(_)},_updateDataInfo:function(_){var T=this.dataZoomModel,w=this._displayables,O=w.handleLabels,I=this._orient,R=["",""];if(T.get("showDetail")){var M=T.findRepresentativeAxisProxy();if(M){var F=M.getAxisModel().axis,P=this._range,X=_?M.calculateDataWindow({start:P[0],end:P[1]}).valueWindow:M.getDataValueWindow();R=[this._formatLabel(X[0],F),this._formatLabel(X[1],F)]}}var B=t(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(W){var z=x.getTransform(w.handles[W].parent,this.group),V=x.transformDirection(W===0?"right":"left",z),Q=this._handleWidth/2+g,G=x.applyTransform([B[W]+(W===0?-Q:Q),this._size[1]/2],z);O[W].setStyle({x:G[0],y:G[1],textVerticalAlign:I===c?"middle":V,textAlign:I===c?V:"center",text:R[W]})}},_formatLabel:function(_,T){var w=this.dataZoomModel,O=w.get("labelFormatter"),I=w.get("labelPrecision");(I==null||I==="auto")&&(I=T.getPixelPrecision());var R=_==null||isNaN(_)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(_)):_.toFixed(Math.min(I,20));return y.isFunction(O)?O(_,R):y.isString(O)?O.replace("{value}",R):R},_showDataInfo:function(_){_=this._dragging||_;var T=this._displayables.handleLabels;T[0].attr("invisible",!_),T[1].attr("invisible",!_)},_onDragMove:function(_,T,w,O){this._dragging=!0,p.stop(O.event);var I=this._displayables.barGroup.getLocalTransform(),R=x.applyTransform([T,w],I,!0),M=this._updateInterval(_,R[0]),F=this.dataZoomModel.get("realtime");this._updateView(!F),M&&F&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var T=this._size,w=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(w[0]<0||w[0]>T[0]||w[1]<0||w[1]>T[1])return;var O=this._handleEnds,I=(O[0]+O[1])/2,R=this._updateInterval("all",w[0]-I);this._updateView(),R&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var _=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:_[0],end:_[1]})},_findCoordRect:function(){var _;if(e(this.getTargetCoordInfo(),function(O){if(!_&&O.length){var I=O[0].model.coordinateSystem;_=I.getRect&&I.getRect()}}),!_){var T=this.api.getWidth(),w=this.api.getHeight();_={x:T*.2,y:w*.2,width:T*.6,height:w*.6}}return _}});function S(_){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[_]}function E(_){return _==="vertical"?"ns-resize":"ew-resize"}var C=b;k.exports=C},IzEo:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("lnY3"),A=n.n(x),m=n("Znn+"),f=n("14J3"),h=n("jCWc")},J66h:function(k,D,n){(function(y){var p,x;(function(A,m){k.exports=m(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(A){"use strict";A=A||{};var m=A.Base64,f="2.6.4",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(F){for(var P={},X=0,B=F.length;X<B;X++)P[F.charAt(X)]=X;return P}(h),a=String.fromCharCode,i=function(P){if(P.length<2){var X=P.charCodeAt(0);return X<128?P:X<2048?a(192|X>>>6)+a(128|X&63):a(224|X>>>12&15)+a(128|X>>>6&63)+a(128|X&63)}else{var X=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return a(240|X>>>18&7)+a(128|X>>>12&63)+a(128|X>>>6&63)+a(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,o=function(P){return P.replace(t,i)},e=function(P){var X=[0,2,1][P.length%3],B=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),j=[h.charAt(B>>>18),h.charAt(B>>>12&63),X>=2?"=":h.charAt(B>>>6&63),X>=1?"=":h.charAt(B&63)];return j.join("")},l=A.btoa&&typeof A.btoa=="function"?function(F){return A.btoa(F)}:function(F){if(F.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return F.replace(/[\s\S]{1,3}/g,e)},r=function(P){return l(o(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)},d=function(P){return c(P,!0)},g;A.Uint8Array&&(g=function(P,X){for(var B="",j=0,W=P.length;j<W;j+=3){var z=P[j],V=P[j+1],Q=P[j+2],G=z<<16|V<<8|Q;B+=h.charAt(G>>>18)+h.charAt(G>>>12&63)+(typeof V!="undefined"?h.charAt(G>>>6&63):"=")+(typeof Q!="undefined"?h.charAt(G&63):"=")}return X?s(B):B});var v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(P){switch(P.length){case 4:var X=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),B=X-65536;return a((B>>>10)+55296)+a((B&1023)+56320);case 3:return a((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return a((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},S=function(P){return P.replace(v,b)},E=function(P){var X=P.length,B=X%4,j=(X>0?u[P.charAt(0)]<<18:0)|(X>1?u[P.charAt(1)]<<12:0)|(X>2?u[P.charAt(2)]<<6:0)|(X>3?u[P.charAt(3)]:0),W=[a(j>>>16),a(j>>>8&255),a(j&255)];return W.length-=[0,0,2,1][B],W.join("")},C=A.atob&&typeof A.atob=="function"?function(F){return A.atob(F)}:function(F){return F.replace(/\S{1,4}/g,E)},_=function(P){return C(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(P){return S(C(P))},w=function(P){return String(P).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(P){return T(w(P))},I;A.Uint8Array&&(I=function(P){return Uint8Array.from(_(w(P)),function(X){return X.charCodeAt(0)})});var R=function(){var P=A.Base64;return A.Base64=m,P};if(A.Base64={VERSION:f,atob:_,btoa:l,fromBase64:O,toBase64:c,utob:o,encode:c,encodeURI:d,btou:S,decode:O,noConflict:R,fromUint8Array:g,toUint8Array:I},typeof Object.defineProperty=="function"){var M=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};A.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",M(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",M(function(F){return c(this,F)})),Object.defineProperty(String.prototype,"toBase64URI",M(function(){return c(this,!0)}))}}return A.Meteor&&(Base64=A.Base64),k.exports?k.exports.Base64=A.Base64:!(p=[],x=function(){return A.Base64}.apply(D,p),x!==void 0&&(k.exports=x)),{Base64:A.Base64}})}).call(this,n("yLpj"))},JEkh:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("ItGF"),f=n("4NO4"),h=n("7aKB"),u=n("OKJ2"),a=h.addCommas,i=h.encodeHTML;function t(l){f.defaultEmphasis(l,"label",["show"])}var o=x.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 d=this.constructor,g=this.mainType+"Model";s||r.eachSeries(function(v){var b=v.get(this.mainType,!0),S=v[g];if(!b||!b.data){v[g]=null;return}S?S._mergeOption(b,r,!0):(c&&t(b),A.each(b.data,function(E){E instanceof Array?(t(E[0]),t(E[1])):t(E)}),S=new d(b,this,r),A.extend(S,{mainType:this.mainType,seriesIndex:v.seriesIndex,name:v.name,createdBySelf:!0}),S.__hostSeries=v),v[g]=S},this)},formatTooltip:function(l){var r=this.getData(),s=this.getRawValue(l),c=A.isArray(s)?A.map(s,a).join(", "):a(s),d=r.getName(l),g=i(this.name);return(s!=null||d)&&(g+="<br />"),d&&(g+=i(d),s!=null&&(g+=" : ")),s!=null&&(g+=i(c)),g},getData:function(){return this._data},setData:function(l){this._data=l}});A.mixin(o,u);var e=o;k.exports=e},JGo8:function(k,D,n){},JHRd:function(k,D,n){var y=n("Kz5y"),p=y.Uint8Array;k.exports=p},JHgL:function(k,D,n){var y=n("QkVE");function p(x){return y(this,x).get(x)}k.exports=p},JLnu:function(k,D,n){var y=n("+TT/"),p=n("OELB"),x=p.parsePercent,A=p.linearMap;function m(a,i){return y.getLayoutRect(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function f(a,i){for(var t=a.mapDimension("value"),o=a.mapArray(t,function(c){return c}),e=[],l=i==="ascending",r=0,s=a.count();r<s;r++)e[r]=r;return typeof i=="function"?e.sort(i):i!=="none"&&e.sort(function(c,d){return l?o[c]-o[d]:o[d]-o[c]}),e}function h(a){a.each(function(i){var t=a.getItemModel(i),o=t.getModel("label"),e=o.get("position"),l=t.getModel("labelLine"),r=a.getItemLayout(i),s=r.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",d,g,v,b;if(c)e==="insideLeft"?(g=(s[0][0]+s[3][0])/2+5,v=(s[0][1]+s[3][1])/2,d="left"):e==="insideRight"?(g=(s[1][0]+s[2][0])/2-5,v=(s[1][1]+s[2][1])/2,d="right"):(g=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,v=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,d="center"),b=[[g,v],[g,v]];else{var S,E,C,_=l.get("length");e==="left"?(S=(s[3][0]+s[0][0])/2,E=(s[3][1]+s[0][1])/2,C=S-_,g=C-5,d="right"):e==="right"?(S=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,C=S+_,g=C+5,d="left"):e==="rightTop"?(S=s[1][0],E=s[1][1],C=S+_,g=C+5,d="top"):e==="rightBottom"?(S=s[2][0],E=s[2][1],C=S+_,g=C+5,d="bottom"):e==="leftTop"?(S=s[0][0],E=s[1][1],C=S-_,g=C-5,d="right"):e==="leftBottom"?(S=s[3][0],E=s[2][1],C=S-_,g=C-5,d="right"):(S=(s[1][0]+s[2][0])/2,E=(s[1][1]+s[2][1])/2,C=S+_,g=C+5,d="left");var T=E;b=[[S,E],[C,T]],v=T}r.label={linePoints:b,x:g,y:v,verticalAlign:"middle",textAlign:d,inside:c}})}function u(a,i,t){a.eachSeriesByType("funnel",function(o){var e=o.getData(),l=e.mapDimension("value"),r=o.get("sort"),s=m(o,i),c=f(e,r),d=[x(o.get("minSize"),s.width),x(o.get("maxSize"),s.width)],g=e.getDataExtent(l),v=o.get("min"),b=o.get("max");v==null&&(v=Math.min(g[0],0)),b==null&&(b=g[1]);var S=o.get("funnelAlign"),E=o.get("gap"),C=(s.height-E*(e.count()-1))/e.count(),_=s.y,T=function(X,B){var j=e.get(l,X)||0,W=A(j,[v,b],d,!0),z;switch(S){case"left":z=s.x;break;case"center":z=s.x+(s.width-W)/2;break;case"right":z=s.x+s.width-W;break}return[[z,B],[z+W,B]]};r==="ascending"&&(C=-C,E=-E,_+=s.height,c=c.reverse());for(var w=0;w<c.length;w++){var O=c[w],I=c[w+1],R=e.getItemModel(O),M=R.get("itemStyle.height");M==null?M=C:(M=x(M,s.height),r==="ascending"&&(M=-M));var F=T(O,_),P=T(I,_+M);_+=M+E,e.setItemLayout(O,{points:F.concat(P.slice().reverse())})}h(e)})}k.exports=u},JSQU:function(k,D,n){var y=n("YESw"),p="__lodash_hash_undefined__";function x(A,m){var f=this.__data__;return this.size+=this.has(A)?0:1,f[A]=y&&m===void 0?p:m,this}k.exports=x},JSwD:function(k,D,n){"use strict";function y(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(d){return typeof d}:y=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},y(s)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=r;var p=A(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return x=function(){return s},s}function A(s){if(s&&s.__esModule)return s;if(s===null||y(s)!=="object"&&typeof s!="function")return{default:s};var c=x();if(c&&c.has(s))return c.get(s);var d={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in s)if(Object.prototype.hasOwnProperty.call(s,v)){var b=g?Object.getOwnPropertyDescriptor(s,v):null;b&&(b.get||b.set)?Object.defineProperty(d,v,b):d[v]=s[v]}return d.default=s,c&&c.set(s,d),d}var m=15,f=852,h=592,u=0,a=1,i=2,t=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[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,d,g,v,b,S,E){var C=E.bits,_=0,T=0,w=0,O=0,I=0,R=0,M=0,F=0,P=0,X=0,B,j,W,z,V,Q=null,G=0,re,ee=new p.Buf16(m+1),ue=new p.Buf16(m+1),$=null,be=0,_e,Ee,Xe;for(_=0;_<=m;_++)ee[_]=0;for(T=0;T<g;T++)ee[c[d+T]]++;for(I=C,O=m;O>=1&&!(ee[O]!==0);O--);if(I>O&&(I=O),O===0)return v[b++]=1<<24|64<<16|0,v[b++]=1<<24|64<<16|0,E.bits=1,0;for(w=1;w<O&&!(ee[w]!==0);w++);for(I<w&&(I=w),F=1,_=1;_<=m;_++)if(F<<=1,F-=ee[_],F<0)return-1;if(F>0&&(s===u||O!==1))return-1;for(ue[1]=0,_=1;_<m;_++)ue[_+1]=ue[_]+ee[_];for(T=0;T<g;T++)c[d+T]!==0&&(S[ue[c[d+T]]++]=T);if(s===u?(Q=$=S,re=19):s===a?(Q=t,G-=257,$=o,be-=257,re=256):(Q=e,$=l,re=-1),X=0,T=0,_=w,V=b,R=I,M=0,W=-1,P=1<<I,z=P-1,s===a&&P>f||s===i&&P>h)return 1;for(;;){_e=_-M,S[T]<re?(Ee=0,Xe=S[T]):S[T]>re?(Ee=$[be+S[T]],Xe=Q[G+S[T]]):(Ee=32+64,Xe=0),B=1<<_-M,j=1<<R,w=j;do j-=B,v[V+(X>>M)+j]=_e<<24|Ee<<16|Xe|0;while(j!==0);for(B=1<<_-1;X&B;)B>>=1;if(B!==0?(X&=B-1,X+=B):X=0,T++,--ee[_]===0){if(_===O)break;_=c[d+S[T]]}if(_>I&&(X&z)!==W){for(M===0&&(M=I),V+=w,R=_-M,F=1<<R;R+M<O&&!(F-=ee[R+M],F<=0);)R++,F<<=1;if(P+=1<<R,s===a&&P>f||s===i&&P>h)return 1;W=X&z,v[W]=I<<24|R<<16|V-b|0}}return X!==0&&(v[V+X]=_-M<<24|64<<16|0),E.bits=I,0}},JTzB:function(k,D,n){var y=n("NykK"),p=n("ExA7"),x="[object Arguments]";function A(m){return p(m)&&y(m)==x}k.exports=A},JVwQ:function(k,D,n){var y=n("ProS"),p=n("1NG9"),x=p.Polygon,A=n("IwbS"),m=n("bYtY"),f=m.bind,h=m.extend,u=n("gPAo"),a=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,o,e){var l=t.getData(),r=this.group,s=t.getLayerSeries(),c=l.getLayout("layoutInfo"),d=c.rect,g=c.boundaryGap;r.attr("position",[0,d.y+g[0]]);function v(C){return C.name}var b=new u(this._layersSeries||[],s,v,v),S={};b.add(f(E,this,"add")).update(f(E,this,"update")).remove(f(E,this,"remove")).execute();function E(C,_,T){var w=this._layers;if(C==="remove"){r.remove(w[_]);return}for(var O=[],I=[],R,M=s[_].indices,F=0;F<M.length;F++){var P=l.getItemLayout(M[F]),X=P.x,B=P.y0,j=P.y;O.push([X,B]),I.push([X,B+j]),R=l.getItemVisual(M[F],"color")}var W,z,V=l.getItemLayout(M[0]),Q=l.getItemModel(M[F-1]),G=Q.getModel("label"),re=G.get("margin");if(C==="add"){var ee=S[_]=new A.Group;W=new x({shape:{points:O,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z=new A.Text({style:{x:V.x-re,y:V.y0+V.y/2}}),ee.add(W),ee.add(z),r.add(ee),W.setClipPath(i(W.getBoundingRect(),t,function(){W.removeClipPath()}))}else{var ee=w[T];W=ee.childAt(0),z=ee.childAt(1),r.add(ee),S[_]=ee,A.updateProps(W,{shape:{points:O,stackedOnPoints:I}},t),A.updateProps(z,{style:{x:V.x-re,y:V.y0+V.y/2}},t)}var ue=Q.getModel("emphasis.itemStyle"),$=Q.getModel("itemStyle");A.setTextStyle(z.style,G,{text:G.get("show")?t.getFormattedLabel(M[F-1],"normal")||l.getName(M[F-1]):null,textVerticalAlign:"middle"}),W.setStyle(h({fill:R},$.getItemStyle(["color"]))),A.setHoverStyle(W,ue.getItemStyle())}this._layersSeries=s,this._layers=S},dispose:function(){}});function i(t,o,e){var l=new A.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return A.initProps(l,{shape:{width:t.width+20,height:t.height+20}},o,e),l}k.exports=a},JgUQ:function(k,D,n){"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,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("PJYZ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n("i8i4"),c=n("TSYQ"),d=n.n(c),g=n("zT1h"),v=n("cDf5"),b=n.n(v),S=n("BGR+"),E=n("6ner"),C=n("H84U"),_=n("RIqP"),T=n.n(_),w=n("xEkU"),O=n.n(w);function I(he){var J,Y=function(we){return function(){J=null,he.apply(void 0,T()(we))}},q=function(){if(J==null){for(var we=arguments.length,Ne=new Array(we),je=0;je<we;je++)Ne[je]=arguments[je];J=O()(Y(Ne))}};return q.cancel=function(){return O.a.cancel(J)},q}function R(){return function(he,J,Y){var q=Y.value,fe=!1;return{configurable:!0,get:function(){if(fe||this===he.prototype||this.hasOwnProperty(J))return q;var Ne=I(q.bind(this));return fe=!0,Object.defineProperty(this,J,{value:Ne,configurable:!0,writable:!0}),fe=!1,Ne}}}}function M(he){return he!==window?he.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function F(he,J,Y){return Y!==void 0&&J.top>he.top-Y?Y+J.top:void 0}function P(he,J,Y){if(Y!==void 0&&J.bottom<he.bottom+Y){var q=window.innerHeight-J.bottom;return Y+q}return}var X=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],B=[];function j(){return B}function W(he,J){if(!he)return;var Y=B.find(function(q){return q.target===he});Y?Y.affixList.push(J):(Y={target:he,affixList:[J],eventHandlers:{}},B.push(Y),X.forEach(function(q){Y.eventHandlers[q]=Object(g.a)(he,q,function(){Y.affixList.forEach(function(fe){fe.lazyUpdatePosition()})})}))}function z(he){var J=B.find(function(Y){var q=Y.affixList.some(function(fe){return fe===he});return q&&(Y.affixList=Y.affixList.filter(function(fe){return fe!==he})),q});J&&J.affixList.length===0&&(B=B.filter(function(Y){return Y!==J}),X.forEach(function(Y){var q=J.eventHandlers[Y];q&&q.remove&&q.remove()}))}var V=function(he,J,Y,q){var fe=arguments.length,we=fe<3?J:q===null?q=Object.getOwnPropertyDescriptor(J,Y):q,Ne;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(he,J,Y,q);else for(var je=he.length-1;je>=0;je--)(Ne=he[je])&&(we=(fe<3?Ne(we):fe>3?Ne(J,Y,we):Ne(J,Y))||we);return fe>3&&we&&Object.defineProperty(J,Y,we),we};function Q(){return typeof window!="undefined"?window:null}var G;(function(he){he[he.None=0]="None",he[he.Prepare=1]="Prepare"})(G||(G={}));var re=function(he){o()(Y,he);var J=l()(Y);function Y(){var q;return f()(this,Y),q=J.apply(this,arguments),q.state={status:G.None,lastAffix:!1,prevTarget:null},q.getOffsetTop=function(){var fe=q.props.offsetBottom,we=q.props.offsetTop;return fe===void 0&&we===void 0&&(we=0),we},q.getOffsetBottom=function(){return q.props.offsetBottom},q.savePlaceholderNode=function(fe){q.placeholderNode=fe},q.saveFixedNode=function(fe){q.fixedNode=fe},q.measure=function(){var fe=q.state,we=fe.status,Ne=fe.lastAffix,je=q.props.onChange,me=q.getTargetFunc();if(we!==G.Prepare||!q.fixedNode||!q.placeholderNode||!me)return;var Ce=q.getOffsetTop(),Fe=q.getOffsetBottom(),it=me();if(!it)return;var Ct={status:G.None},mt=M(it),Ve=M(q.placeholderNode),or=F(Ve,mt,Ce),dt=P(Ve,mt,Fe);or!==void 0?(Ct.affixStyle={position:"fixed",top:or,width:Ve.width,height:Ve.height},Ct.placeholderStyle={width:Ve.width,height:Ve.height}):dt!==void 0&&(Ct.affixStyle={position:"fixed",bottom:dt,width:Ve.width,height:Ve.height},Ct.placeholderStyle={width:Ve.width,height:Ve.height}),Ct.lastAffix=!!Ct.affixStyle,je&&Ne!==Ct.lastAffix&&je(Ct.lastAffix),q.setState(Ct)},q.prepareMeasure=function(){if(q.setState({status:G.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var fe},q.render=function(){var fe=q.context.getPrefixCls,we=q.state,Ne=we.affixStyle,je=we.placeholderStyle,me=q.props,Ce=me.prefixCls,Fe=me.children,it=d()(A()({},fe("affix",Ce),Ne)),Ct=Object(S.default)(q.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(E.a,{onResize:function(){q.updatePosition()}},r.createElement("div",p()({},Ct,{ref:q.savePlaceholderNode}),Ne&&r.createElement("div",{style:je,"aria-hidden":"true"}),r.createElement("div",{className:it,ref:q.saveFixedNode,style:Ne},r.createElement(E.a,{onResize:function(){q.updatePosition()}},Fe))))},q}return u()(Y,[{key:"getTargetFunc",value:function(){var fe=this.context.getTargetContainer,we=this.props.target;return we!==void 0?we:fe||Q}},{key:"componentDidMount",value:function(){var fe=this,we=this.getTargetFunc();we&&(this.timeout=setTimeout(function(){W(we(),fe),fe.updatePosition()}))}},{key:"componentDidUpdate",value:function(fe){var we=this.state.prevTarget,Ne=this.getTargetFunc(),je=null;Ne&&(je=Ne()||null),we!==je&&(z(this),je&&(W(je,this),this.updatePosition()),this.setState({prevTarget:je})),(fe.offsetTop!==this.props.offsetTop||fe.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),z(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var fe=this.getTargetFunc(),we=this.state.affixStyle;if(fe&&we){var Ne=this.getOffsetTop(),je=this.getOffsetBottom(),me=fe();if(me&&this.placeholderNode){var Ce=M(me),Fe=M(this.placeholderNode),it=F(Fe,Ce,Ne),Ct=P(Fe,Ce,je);if(it!==void 0&&we.top===it||Ct!==void 0&&we.bottom===Ct)return}}this.prepareMeasure()}}]),Y}(r.Component);re.contextType=C.b,V([R()],re.prototype,"updatePosition",null),V([R()],re.prototype,"lazyUpdatePosition",null);var ee=re,ue=n("zAh6"),$=n("i6bk"),be=r.createContext(null),_e=be;function Ee(){return window}function Xe(he,J){if(!he.getClientRects().length)return 0;var Y=he.getBoundingClientRect();return Y.width||Y.height?J===window?(J=he.ownerDocument.documentElement,Y.top-J.clientTop):Y.top-J.getBoundingClientRect().top:Y.top}var He=/#(\S+)$/,nt=function(he){o()(Y,he);var J=l()(Y);function Y(){var q;return f()(this,Y),q=J.apply(this,arguments),q.state={activeLink:null},q.links=[],q.registerLink=function(fe){q.links.includes(fe)||q.links.push(fe)},q.unregisterLink=function(fe){var we=q.links.indexOf(fe);we!==-1&&q.links.splice(we,1)},q.getContainer=function(){var fe=q.context.getTargetContainer,we=q.props.getContainer,Ne=we||fe||Ee;return Ne()},q.handleScrollTo=function(fe){var we=q.props,Ne=we.offsetTop,je=we.targetOffset;q.setCurrentActiveLink(fe);var me=q.getContainer(),Ce=Object($.a)(me,!0),Fe=He.exec(fe);if(!Fe)return;var it=document.getElementById(Fe[1]);if(!it)return;var Ct=Xe(it,me),mt=Ce+Ct;mt-=je!==void 0?je:Ne||0,q.animating=!0,Object(ue.a)(mt,{callback:function(){q.animating=!1},getContainer:q.getContainer})},q.saveInkNode=function(fe){q.inkNode=fe},q.setCurrentActiveLink=function(fe){var we=q.state.activeLink,Ne=q.props.onChange;we!==fe&&(q.setState({activeLink:fe}),Ne&&Ne(fe))},q.handleScroll=function(){if(q.animating)return;var fe=q.props,we=fe.offsetTop,Ne=fe.bounds,je=fe.targetOffset,me=q.getCurrentAnchor(je!==void 0?je:we||0,Ne);q.setCurrentActiveLink(me)},q.updateInk=function(){var fe=i()(q),we=fe.prefixCls,Ne=s.findDOMNode(i()(q)),je=Ne.getElementsByClassName("".concat(we,"-link-title-active"))[0];je&&(q.inkNode.style.top="".concat(je.offsetTop+je.clientHeight/2-4.5,"px"))},q.render=function(){var fe=q.context,we=fe.getPrefixCls,Ne=fe.direction,je=q.props,me=je.prefixCls,Ce=je.className,Fe=Ce===void 0?"":Ce,it=je.style,Ct=je.offsetTop,mt=je.affix,Ve=je.showInkInFixed,or=je.children,dt=q.state.activeLink,Yt=we("anchor",me);q.prefixCls=Yt;var hr=d()("".concat(Yt,"-ink-ball"),{visible:dt}),Gt=d()(Fe,"".concat(Yt,"-wrapper"),A()({},"".concat(Yt,"-rtl"),Ne==="rtl")),Pt=d()(Yt,{fixed:!mt&&!Ve}),Xt=p()({maxHeight:Ct?"calc(100vh - ".concat(Ct,"px)"):"100vh"},it),Ge=r.createElement("div",{className:Gt,style:Xt},r.createElement("div",{className:Pt},r.createElement("div",{className:"".concat(Yt,"-ink")},r.createElement("span",{className:hr,ref:q.saveInkNode})),or));return r.createElement(_e.Provider,{value:{registerLink:q.registerLink,unregisterLink:q.unregisterLink,activeLink:q.state.activeLink,scrollTo:q.handleScrollTo,onClick:q.props.onClick}},mt?r.createElement(ee,{offsetTop:Ct,target:q.getContainer},Ge):Ge)},q}return u()(Y,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var fe=this.getContainer();this.scrollContainer!==fe&&(this.scrollContainer=fe,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 fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ne=this.props.getCurrentAnchor;if(typeof Ne=="function")return Ne();var je=[],me=this.getContainer();if(this.links.forEach(function(Fe){var it=He.exec(Fe.toString());if(!it)return;var Ct=document.getElementById(it[1]);if(Ct){var mt=Xe(Ct,me);mt<fe+we&&je.push({link:Fe,top:mt})}}),je.length){var Ce=je.reduce(function(Fe,it){return it.top>Fe.top?it:Fe});return Ce.link}return""}}]),Y}(r.Component);nt.defaultProps={affix:!0,showInkInFixed:!1},nt.contextType=C.b;var Ie=function(he){o()(Y,he);var J=l()(Y);function Y(){var q;return f()(this,Y),q=J.apply(this,arguments),q.handleClick=function(fe){var we=q.context,Ne=we.scrollTo,je=we.onClick,me=q.props,Ce=me.href,Fe=me.title;je&&je(fe,{title:Fe,href:Ce}),Ne(Ce)},q.renderAnchorLink=function(fe){var we=fe.getPrefixCls,Ne=q.props,je=Ne.prefixCls,me=Ne.href,Ce=Ne.title,Fe=Ne.children,it=Ne.className,Ct=Ne.target,mt=we("anchor",je),Ve=q.context.activeLink===me,or=d()(it,"".concat(mt,"-link"),A()({},"".concat(mt,"-link-active"),Ve)),dt=d()("".concat(mt,"-link-title"),A()({},"".concat(mt,"-link-title-active"),Ve));return r.createElement("div",{className:or},r.createElement("a",{className:dt,href:me,title:typeof Ce=="string"?Ce:"",target:Ct,onClick:q.handleClick},Ce),Fe)},q}return u()(Y,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(fe){var we=fe.href,Ne=this.props.href;we!==Ne&&(this.context.unregisterLink(we),this.context.registerLink(Ne))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(C.a,null,this.renderAnchorLink)}}]),Y}(r.Component);Ie.defaultProps={href:"#"},Ie.contextType=_e;var oe=Ie;nt.Link=oe;var ot=D.a=nt},JuEJ:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=y.each,A=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,d=m.length;c<d;c++){var g=m[c],v=s.normal,b=s.emphasis;v&&v[g]&&(r[g]=r[g]||{},r[g].normal?y.merge(r[g].normal,v[g]):r[g].normal=v[g],v[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 h(r,s,c){if(r&&r[s]&&(r[s].normal||r[s].emphasis)){var d=r[s].normal,g=r[s].emphasis;d&&(c?(r[s].normal=r[s].emphasis=null,y.defaults(r[s],d)):r[s]=d),g&&(r.emphasis=r.emphasis||{},r.emphasis[s]=g)}}function u(r){h(r,"itemStyle"),h(r,"lineStyle"),h(r,"areaStyle"),h(r,"label"),h(r,"labelLine"),h(r,"upperLabel"),h(r,"edgeLabel")}function a(r,s){var c=A(r)&&r[s],d=A(c)&&c.textStyle;if(d)for(var g=0,v=p.TEXT_STYLE_OPTIONS.length;g<v;g++){var s=p.TEXT_STYLE_OPTIONS[g];d.hasOwnProperty(s)&&(c[s]=d[s])}}function i(r){r&&(u(r),a(r,"label"),r.emphasis&&a(r.emphasis,"label"))}function t(r){if(!A(r))return;f(r),u(r),a(r,"label"),a(r,"upperLabel"),a(r,"edgeLabel"),r.emphasis&&(a(r.emphasis,"label"),a(r.emphasis,"upperLabel"),a(r.emphasis,"edgeLabel"));var s=r.markPoint;s&&(f(s),i(s));var c=r.markLine;c&&(f(c),i(c));var d=r.markArea;d&&i(d);var g=r.data;if(r.type==="graph"){g=g||r.nodes;var v=r.links||r.edges;if(v&&!y.isTypedArray(v))for(var b=0;b<v.length;b++)i(v[b]);y.each(r.categories,function(C){u(C)})}if(g&&!y.isTypedArray(g))for(var b=0;b<g.length;b++)i(g[b]);var s=r.markPoint;if(s&&s.data)for(var S=s.data,b=0;b<S.length;b++)i(S[b]);var c=r.markLine;if(c&&c.data)for(var E=c.data,b=0;b<E.length;b++)y.isArray(E[b])?(i(E[b][0]),i(E[b][1])):i(E[b]);r.type==="gauge"?(a(r,"axisLabel"),a(r,"title"),a(r,"detail")):r.type==="treemap"?(h(r.breadcrumb,"itemStyle"),y.each(r.levels,function(C){u(C)})):r.type==="tree"&&u(r.leaves)}function o(r){return y.isArray(r)?r:r?[r]:[]}function e(r){return(y.isArray(r)?r[0]:r)||{}}function l(r,s){x(o(r.series),function(d){A(d)&&t(d)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];s&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),x(c,function(d){x(o(r[d]),function(g){g&&(a(g,"axisLabel"),a(g.axisPointer,"label"))})}),x(o(r.parallel),function(d){var g=d&&d.parallelAxisDefault;a(g,"axisLabel"),a(g&&g.axisPointer,"label")}),x(o(r.calendar),function(d){h(d,"itemStyle"),a(d,"dayLabel"),a(d,"monthLabel"),a(d,"yearLabel")}),x(o(r.radar),function(d){a(d,"name")}),x(o(r.geo),function(d){A(d)&&(i(d),x(o(d.regions),function(g){i(g)}))}),x(o(r.timeline),function(d){i(d),h(d,"label"),h(d,"itemStyle"),h(d,"controlStyle",!0);var g=d.data;y.isArray(g)&&y.each(g,function(v){y.isObject(v)&&(h(v,"label"),h(v,"itemStyle"))})}),x(o(r.toolbox),function(d){h(d,"iconStyle"),x(d.feature,function(g){h(g,"iconStyle")})}),a(e(r.axisPointer),"label"),a(e(r.tooltip).axisPointer,"label")}k.exports=l},K2GJ:function(k,D,n){var y=n("fW2E"),p=n("gut8"),x=p.ContextCachedBy,A=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],m=function(e){this.extendFrom(e,!1)};function f(o,e,l){var r=e.x==null?0:e.x,s=e.x2==null?1:e.x2,c=e.y==null?0:e.y,d=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,d=d*l.height+l.y),r=isNaN(r)?0:r,s=isNaN(s)?1:s,c=isNaN(c)?0:c,d=isNaN(d)?0:d;var g=o.createLinearGradient(r,c,s,d);return g}function h(o,e,l){var r=l.width,s=l.height,c=Math.min(r,s),d=e.x==null?.5:e.x,g=e.y==null?.5:e.y,v=e.r==null?.5:e.r;e.global||(d=d*r+l.x,g=g*s+l.y,v=v*c);var b=o.createRadialGradient(d,g,0,d,g,v);return b}m.prototype={constructor:m,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,l,r){var s=this,c=r&&r.style,d=!c||e.__attrCachedBy!==x.STYLE_BIND;e.__attrCachedBy=x.STYLE_BIND;for(var g=0;g<A.length;g++){var v=A[g],b=v[0];(d||s[b]!==c[b])&&(e[b]=y(e,b,s[b]||v[1]))}if((d||s.fill!==c.fill)&&(e.fillStyle=s.fill),(d||s.stroke!==c.stroke)&&(e.strokeStyle=s.stroke),(d||s.opacity!==c.opacity)&&(e.globalAlpha=s.opacity==null?1:s.opacity),(d||s.blend!==c.blend)&&(e.globalCompositeOperation=s.blend||"source-over"),this.hasStroke()){var S=s.lineWidth;e.lineWidth=S/(this.strokeNoScale&&l&&l.getLineScale?l.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,l){if(e)for(var 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"?h:f,c=s(e,l,r),d=l.colorStops,g=0;g<d.length;g++)c.addColorStop(d[g].offset,d[g].color);return c}};for(var u=m.prototype,a=0;a<A.length;a++){var i=A[a];i[0]in u||(u[i[0]]=i[1])}m.getGradient=u.getGradient;var t=m;k.exports=t},K3mO:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.Base,m=x.WordArray,f=p.algo,h=f.MD5,u=f.EvpKDF=A.extend({cfg:A.extend({keySize:128/32,hasher:h,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,t){for(var o,e=this.cfg,l=e.hasher.create(),r=m.create(),s=r.words,c=e.keySize,d=e.iterations;s.length<c;){o&&l.update(o),o=l.update(i).finalize(t),l.reset();for(var g=1;g<d;g++)o=l.finalize(o),l.reset();r.concat(o)}return r.sigBytes=c*4,r}});p.EvpKDF=function(a,i,t){return u.create(t).compute(a,i)}}(),y.EvpKDF})},K4ya:function(k,D,n){var y=n("bYtY"),p=n("XxSj"),x=y.each;function A(a){if(a){for(var i in a)if(a.hasOwnProperty(i))return!0}}function m(a,i,t){var o={};return x(i,function(l){var r=o[l]=e();x(a[l],function(s,c){if(!p.isValidType(c))return;var d={type:c,visual:s};t&&t(d,l),r[c]=new p(d),c==="opacity"&&(d=y.clone(d),d.type="colorAlpha",r.__hidden.__alphaForOpacity=new p(d))})}),o;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var r=new l;return r}}function f(a,i,t){var o;y.each(t,function(e){i.hasOwnProperty(e)&&A(i[e])&&(o=!0)}),o&&y.each(t,function(e){i.hasOwnProperty(e)&&A(i[e])?a[e]=y.clone(i[e]):delete a[e]})}function h(a,i,t,o,e,l){var r={};y.each(a,function(v){var b=p.prepareVisualTypes(i[v]);r[v]=b});var s;function c(v){return t.getItemVisual(s,v)}function d(v,b){t.setItemVisual(s,v,b)}l==null?t.each(g):t.each([l],g);function g(v,b){s=l==null?v:b;var S=t.getRawDataItem(s);if(S&&S.visualMap===!1)return;for(var E=o.call(e,v),C=i[E],_=r[E],T=0,w=_.length;T<w;T++){var O=_[T];C[O]&&C[O].applyVisual(v,c,d)}}}function u(a,i,t,o){var e={};y.each(a,function(r){var s=p.prepareVisualTypes(i[r]);e[r]=s});function l(r,s){o!=null&&(o=s.getDimension(o));function c(O){return s.getItemVisual(g,O)}function d(O,I){s.setItemVisual(g,O,I)}for(var g;(g=r.next())!=null;){var v=s.getRawDataItem(g);if(v&&v.visualMap===!1)continue;for(var b=o!=null?s.get(o,g,!0):g,S=t(b),E=i[S],C=e[S],_=0,T=C.length;_<T;_++){var w=C[_];E[w]&&E[w].applyVisual(b,c,d)}}}return{progress:l}}D.createVisualMappings=m,D.replaceVisualOption=f,D.applyVisual=h,D.incrementalApplyVisual=u},KCsZ:function(k,D,n){var y=n("bYtY");function p(x){for(var A=0;A<x.length;A++)x[A][1]||(x[A][1]=x[A][0]);return function(m,f,h){for(var u={},a=0;a<x.length;a++){var i=x[a][1];if(f&&y.indexOf(f,i)>=0||h&&y.indexOf(h,i)<0)continue;var t=m.getShallow(i);t!=null&&(u[x[a][0]]=t)}return u}}k.exports=p},KMkd:function(k,D){function n(){this.__data__=[],this.size=0}k.exports=n},KPFz:function(k,D,n){},KQeH:function(k,D,n){"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,n){var y=n("OELB"),p=y.parsePercent,x=y.linearMap,A=n("+TT/"),m=n("u3DP"),f=n("bYtY"),h=Math.PI*2,u=Math.PI/180;function a(t,o){return A.getLayoutRect(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function i(t,o,e,l){o.eachSeriesByType(t,function(r){var s=r.getData(),c=s.mapDimension("value"),d=a(r,e),g=r.get("center"),v=r.get("radius");f.isArray(v)||(v=[0,v]),f.isArray(g)||(g=[g,g]);var b=p(d.width,e.getWidth()),S=p(d.height,e.getHeight()),E=Math.min(b,S),C=p(g[0],b)+d.x,_=p(g[1],S)+d.y,T=p(v[0],E/2),w=p(v[1],E/2),O=-r.get("startAngle")*u,I=r.get("minAngle")*u,R=0;s.each(c,function(re){!isNaN(re)&&R++});var M=s.getSum(c),F=Math.PI/(M||R)*2,P=r.get("clockwise"),X=r.get("roseType"),B=r.get("stillShowZeroSum"),j=s.getDataExtent(c);j[0]=0;var W=h,z=0,V=O,Q=P?1:-1;if(s.each(c,function(re,ee){var ue;if(isNaN(re)){s.setItemLayout(ee,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:C,cy:_,r0:T,r:X?NaN:w,viewRect:d});return}X!=="area"?ue=M===0&&B?F:re*F:ue=h/R,ue<I?(ue=I,W-=I):z+=re;var $=V+Q*ue;s.setItemLayout(ee,{angle:ue,startAngle:V,endAngle:$,clockwise:P,cx:C,cy:_,r0:T,r:X?x(re,j,[T,w]):w,viewRect:d}),V=$}),W<h&&R)if(W<=.001){var G=h/R;s.each(c,function(re,ee){if(!isNaN(re)){var ue=s.getItemLayout(ee);ue.angle=G,ue.startAngle=O+Q*ee*G,ue.endAngle=O+Q*(ee+1)*G}})}else F=W/z,V=O,s.each(c,function(re,ee){if(!isNaN(re)){var ue=s.getItemLayout(ee),$=ue.angle===I?I:re*F;ue.startAngle=V,ue.endAngle=V+Q*$,V+=Q*$}});m(r,w,d.width,d.height,d.x,d.y)})}k.exports=i},KUOm:function(k,D){function n(y){var p={};y.eachSeriesByType("graph",function(x){var A=x.getCategoriesData(),m=x.getData(),f={};A.each(function(h){var u=A.getName(h);f["ec-"+u]=h;var a=A.getItemModel(h),i=a.get("itemStyle.color")||x.getColorFromPalette(u,p);A.setItemVisual(h,"color",i);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],o=0;o<t.length;o++){var e=a.getShallow(t[o],!0);e!=null&&A.setItemVisual(h,t[o],e)}}),A.count()&&m.each(function(h){var u=m.getItemModel(h),a=u.getShallow("category");if(a!=null){typeof a=="string"&&(a=f["ec-"+a]);for(var i=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<i.length;t++)m.getItemVisual(h,i[t],!0)==null&&m.setItemVisual(h,i[t],A.getItemVisual(a,i[t]))}})})}k.exports=n},Kagy:function(k,D){var n={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=n},KamJ:function(k,D,n){var y=n("ProS"),p=n("szbU");n("vF/C"),n("qwVE"),n("BuqR"),n("AE9C"),n("1u/T"),y.registerPreprocessor(p)},KmBX:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("CP8R")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FilterFilled";var i=A.forwardRef(a);D.default=i},KmYQ:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(x,A){var m=A*4;x.clamp(),x.sigBytes+=m-(x.sigBytes%m||m)},unpad:function(x){for(var A=x.words,m=x.sigBytes-1,m=x.sigBytes-1;m>=0;m--)if(A[m>>>2]>>>24-m%4*8&255){x.sigBytes=m+1;break}}},y.pad.ZeroPadding})},"KpQ+":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("E/ki")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="ClockCircleOutlined";var i=A.forwardRef(a);D.default=i},KrTs:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("cDf5"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("q1tI"),u=n("UmKh"),a=n("TSYQ"),i=n.n(a),t=n("J4zp"),o=n.n(t),e=n("H84U"),l=n("0n0R"),r=function(w,O){var I={};for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&O.indexOf(R)<0&&(I[R]=w[R]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,R=Object.getOwnPropertySymbols(w);M<R.length;M++)O.indexOf(R[M])<0&&Object.prototype.propertyIsEnumerable.call(w,R[M])&&(I[R[M]]=w[R[M]]);return I};function s(w){return w?w.toString().split("").reverse().map(function(O){var I=Number(O);return isNaN(I)?O:I}):[]}function c(w,O){for(var I=[],R=0;R<30;R++)I.push(h.createElement("p",{key:R.toString(),className:i()(O,{current:w===R})},R%10));return I}var d=function(O){var I=O.prefixCls,R=O.count,M=O.className,F=O.style,P=O.title,X=O.component,B=X===void 0?"sup":X,j=O.displayComponent,W=O.onAnimated,z=W===void 0?function(){}:W,V=r(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=h.useState(!0),G=o()(Q,2),re=G[0],ee=G[1],ue=h.useState(R),$=o()(ue,2),be=$[0],_e=$[1],Ee=h.useState(R),Xe=o()(Ee,2),He=Xe[0],nt=Xe[1],Ie=h.useState(R),oe=o()(Ie,2),ot=oe[0],he=oe[1],J=h.useContext(e.b),Y=J.getPrefixCls,q=Y("scroll-number",I);He!==R&&(ee(!0),nt(R)),h.useEffect(function(){he(be);var me;return re&&(me=setTimeout(function(){ee(!1),_e(R),z()})),function(){me&&clearTimeout(me)}},[re,R,z]);var fe=function(Ce,Fe){var it=Math.abs(Number(be)),Ct=Math.abs(Number(ot)),mt=Math.abs(s(be)[Fe]),Ve=Math.abs(s(Ct)[Fe]);return re?10+Ce:it>Ct?mt>=Ve?10+Ce:20+Ce:mt<=Ve?10+Ce:Ce},we=function(Ce,Fe){if(typeof Ce=="number"){var it=fe(Ce,Fe),Ct=re||s(ot)[Fe]===void 0;return h.createElement("span",{className:"".concat(q,"-only"),style:{transition:Ct?"none":void 0,msTransform:"translateY(".concat(-it*100,"%)"),WebkitTransform:"translateY(".concat(-it*100,"%)"),transform:"translateY(".concat(-it*100,"%)")},key:Fe},c(it,"".concat(q,"-only-unit")))}return h.createElement("span",{key:"symbol",className:"".concat(q,"-symbol")},Ce)},Ne=function(){return be&&Number(be)%1===0?s(be).map(function(Ce,Fe){return we(Ce,Fe)}).reverse():be},je=f()(f()({},V),{style:F,className:i()(q,M),title:P});return F&&F.borderColor&&(je.style=f()(f()({},F),{boxShadow:"0 0 0 1px ".concat(F.borderColor," inset")})),j?Object(l.a)(j,{className:i()("".concat(q,"-custom-component"),j.props&&j.props.className)}):h.createElement(B,je,Ne())},g=d,v=n("09Wf");function b(w){return v.a.indexOf(w)!==-1}var S=function(O){var I,R=O.className,M=O.prefixCls,F=O.style,P=O.color,X=O.children,B=O.text,j=O.placement,W=j===void 0?"end":j,z=h.useContext(e.b),V=z.getPrefixCls,Q=z.direction,G=V("ribbon",M),re=b(P),ee=i()(G,R,"".concat(G,"-placement-").concat(W),(I={},p()(I,"".concat(G,"-rtl"),Q==="rtl"),p()(I,"".concat(G,"-color-").concat(P),re),I)),ue={},$={};return P&&!re&&(ue.background=P,$.color=P),h.createElement("div",{className:"".concat(G,"-wrapper")},X,h.createElement("div",{className:ee,style:f()(f()({},ue),F)},B,h.createElement("div",{className:"".concat(G,"-corner"),style:$})))},E=S,C=function(w,O){var I={};for(var R in w)Object.prototype.hasOwnProperty.call(w,R)&&O.indexOf(R)<0&&(I[R]=w[R]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,R=Object.getOwnPropertySymbols(w);M<R.length;M++)O.indexOf(R[M])<0&&Object.prototype.propertyIsEnumerable.call(w,R[M])&&(I[R[M]]=w[R[M]]);return I},_=function(O){var I,R,M=O.prefixCls,F=O.scrollNumberPrefixCls,P=O.children,X=O.status,B=O.text,j=O.color,W=O.count,z=W===void 0?null:W,V=O.overflowCount,Q=V===void 0?99:V,G=O.dot,re=G===void 0?!1:G,ee=O.size,ue=ee===void 0?"default":ee,$=O.title,be=O.offset,_e=O.style,Ee=O.className,Xe=O.showZero,He=Xe===void 0?!1:Xe,nt=C(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Ie=h.useContext(e.b),oe=Ie.getPrefixCls,ot=Ie.direction,he=oe("badge",M),J=function(){var hr=z>Q?"".concat(Q,"+"):z;return hr},Y=function(){return!!X||!!j},q=function(){var hr=J();return hr==="0"||hr===0},fe=function(){return re&&!q()||Y()},we=function(){return fe()?"":J()},Ne=function(){return $||(typeof z=="string"||typeof z=="number"?z:void 0)},je=function(){return ot==="rtl"?be?f()({left:parseInt(be[0],10),marginTop:be[1]},_e):_e:be?f()({right:-parseInt(be[0],10),marginTop:be[1]},_e):_e},me=function(){var hr=we(),Gt=hr==null||hr==="";return(Gt||q()&&!He)&&!fe()},Ce=function(){var hr=me();return hr||!B?null:h.createElement("span",{className:"".concat(he,"-status-text")},B)},Fe=function(){var hr=z;return!hr||A()(hr)!=="object"?void 0:Object(l.a)(hr,{style:f()(f()({},je()),hr.props&&hr.props.style)})},it=function(){var hr,Gt=oe("scroll-number",F),Pt=we(),Xt=fe(),Ge=me(),pe=i()((hr={},p()(hr,"".concat(he,"-dot"),Xt),p()(hr,"".concat(he,"-count"),!Xt),p()(hr,"".concat(he,"-count-sm"),ue==="small"),p()(hr,"".concat(he,"-multiple-words"),!Xt&&z&&z.toString&&z.toString().length>1),p()(hr,"".concat(he,"-status-").concat(X),!!X),p()(hr,"".concat(he,"-status-").concat(j),b(j)),hr)),se=je();return j&&!b(j)&&(se=se||{},se.background=j),Ge?null:h.createElement(g,{prefixCls:Gt,"data-show":!Ge,className:pe,count:Pt,displayComponent:Fe(),title:Ne(),style:se,key:"scrollNumber"})},Ct=i()((I={},p()(I,"".concat(he,"-status-dot"),Y()),p()(I,"".concat(he,"-status-").concat(X),!!X),p()(I,"".concat(he,"-status-").concat(j),b(j)),I)),mt={};j&&!b(j)&&(mt.background=j);var Ve=i()(Ee,he,(R={},p()(R,"".concat(he,"-status"),Y()),p()(R,"".concat(he,"-not-a-wrapper"),!P),p()(R,"".concat(he,"-rtl"),ot==="rtl"),R));if(!P&&Y()){var or=je(),dt=or&&or.color;return h.createElement("span",f()({},nt,{className:Ve,style:or}),h.createElement("span",{className:Ct,style:mt}),h.createElement("span",{style:{color:dt},className:"".concat(he,"-status-text")},B))}return h.createElement("span",f()({},nt,{className:Ve}),P,h.createElement(u.a,{component:"",showProp:"data-show",transitionName:P?"".concat(he,"-zoom"):"",transitionAppear:!0},it()),Ce())};_.Ribbon=E;var T=D.a=_},Kvyg:function(k,D,n){},KxBF:function(k,D){function n(y,p,x){var A=-1,m=y.length;p<0&&(p=-p>m?0:m+p),x=x>m?m:x,x<0&&(x+=m),m=p>x?0:x-p>>>0,p>>>=0;for(var f=Array(m);++A<m;)f[A]=y[A+p];return f}k.exports=n},KxFI:function(k,D,n){},KxfA:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.isTypedArray,m=x.extend,f=x.assert,h=x.each,u=x.isObject,a=n("4NO4"),i=a.getDataItemValue,t=a.isDataItemOption,o=n("OELB"),e=o.parseDate,l=n("7G+c"),r=n("k9D9"),s=r.SOURCE_FORMAT_TYPED_ARRAY,c=r.SOURCE_FORMAT_ARRAY_ROWS,d=r.SOURCE_FORMAT_ORIGINAL,g=r.SOURCE_FORMAT_OBJECT_ROWS;function v(P,X){l.isInstance(P)||(P=l.seriesDataToSource(P)),this._source=P;var B=this._data=P.data,j=P.sourceFormat;j===s&&(this._offset=0,this._dimSize=X,this._data=B);var W=S[j===c?j+"_"+P.seriesLayoutBy:j];m(this,W)}var b=v.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var S={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(P){return this._data[P+this._source.startIndex]},appendData:_},arrayRows_row:{pure:!0,count:function(){var P=this._data[0];return P?Math.max(0,P.length-this._source.startIndex):0},getItem:function(P){P+=this._source.startIndex;for(var X=[],B=this._data,j=0;j<B.length;j++){var W=B[j];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:E,getItem:C,appendData:_},keyedColumns:{pure:!0,count:function(){var P=this._source.dimensionsDefine[0].name,X=this._data[P];return X?X.length:0},getItem:function(P){for(var X=[],B=this._source.dimensionsDefine,j=0;j<B.length;j++){var W=this._data[B[j].name];X.push(W?W[P]:null)}return X},appendData:function(P){var X=this._data;h(P,function(B,j){for(var W=X[j]||(X[j]=[]),z=0;z<(B||[]).length;z++)W.push(B[z])})}},original:{count:E,getItem:C,appendData:_},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(P,X){P=P-this._offset,X=X||[];for(var B=this._dimSize*P,j=0;j<this._dimSize;j++)X[j]=this._data[B+j];return X},appendData:function(P){this._data=P},clean:function(){this._offset+=this.count(),this._data=null}}};function E(){return this._data.length}function C(P){return this._data[P]}function _(P){for(var X=0;X<P.length;X++)this._data.push(P[X])}var T={arrayRows:w,objectRows:function(P,X,B,j){return B!=null?P[j]:P},keyedColumns:w,original:function(P,X,B,j){var W=i(P);return B==null||!(W instanceof Array)?W:W[B]},typedArray:w};function w(P,X,B,j){return B!=null?P[B]:P}var O={arrayRows:I,objectRows:function(P,X,B,j){return R(P[X],this._dimensionInfos[X])},keyedColumns:I,original:function(P,X,B,j){var W=P&&(P.value==null?P:P.value);return!this._rawData.pure&&t(P)&&(this.hasItemOption=!0),R(W instanceof Array?W[j]:W,this._dimensionInfos[X])},typedArray:function(P,X,B,j){return P[j]}};function I(P,X,B,j){return R(P[j],this._dimensionInfos[X])}function R(P,X){var B=X&&X.type;if(B==="ordinal"){var j=X&&X.ordinalMeta;return j?j.parseAndCollect(P):P}return B==="time"&&typeof P!="number"&&P!=null&&P!=="-"&&(P=+e(P)),P==null||P===""?NaN:+P}function M(P,X,B){if(!P)return;var j=P.getRawDataItem(X);if(j==null)return;var W=P.getProvider().getSource().sourceFormat,z,V,Q=P.getDimensionInfo(B);return Q&&(z=Q.name,V=Q.index),T[W](j,X,V,z)}function F(P,X,B){if(!P)return;var j=P.getProvider().getSource().sourceFormat;if(j!==d&&j!==g)return;var W=P.getRawDataItem(X);if(j===d&&!u(W)&&(W=null),W)return W[B]}D.DefaultDataProvider=v,D.defaultDimValueGetters=O,D.retrieveRawValue=M,D.retrieveRawAttr=F},L0Ub:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.createHashMap,A=y.assert,m=n("Tghj"),f=m.__DEV__,h=x(["tooltip","label","itemName","itemId","seriesName"]);function u(o){var e={},l=e.encode={},r=x(),s=[],c=[],d=e.userOutput={dimensionNames:o.dimensions.slice(),encode:{}};p(o.dimensions,function(E){var C=o.getDimensionInfo(E),_=C.coordDim;if(_){var T=C.coordDimIndex;a(l,_)[T]=E,C.isExtraCoord||(r.set(_,1),t(C.type)&&(s[0]=E),a(d.encode,_)[T]=C.index),C.defaultTooltip&&c.push(E)}h.each(function(w,O){var I=a(l,O),R=C.otherDims[O];R!=null&&R!==!1&&(I[R]=C.name)})});var g=[],v={};r.each(function(E,C){var _=l[C];v[C]=_[0],g=g.concat(_)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=v;var b=l.label;b&&b.length&&(s=b.slice());var S=l.tooltip;return S&&S.length?c=S.slice():c.length||(c=s.slice()),l.defaultedLabel=s,l.defaultedTooltip=c,e}function a(o,e){return o.hasOwnProperty(e)||(o[e]=[]),o[e]}function i(o){return o==="category"?"ordinal":o==="time"?"time":"float"}function t(o){return!(o==="ordinal"||o==="time")}D.OTHER_DIMENSIONS=h,D.summarizeDimensions=u,D.getDimensionTypeByAxis=i},L3Oj:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("HjIi");n("HM/N"),n("9eas"),n("eS4l"),n("y4/Y"),n("as94"),y.registerLayout(p.curry(x,"bar")),y.extendComponentView({type:"polar"})},L41K:function(k,D,n){"use strict";n.d(D,"a",function(){return z});var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("BGR+"),s=n("VTBJ"),c=n("rePB"),d=n("Ff2n"),g=n("1OyB"),v=n("vuIU"),b=n("Ji7U"),S=n("LK+K"),E=n("Zm9Q"),C=n("TSYQ"),_=n.n(C),T=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(V){return typeof V=="string"}var O=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var re;return Object(g.a)(this,G),re=Q.apply(this,arguments),re.onClick=function(){var ee=re.props,ue=ee.onClick,$=ee.onStepClick,be=ee.stepIndex;ue&&ue.apply(void 0,arguments),$(be)},re}return Object(v.a)(G,[{key:"renderIconNode",value:function(){var ee,ue=this.props,$=ue.prefixCls,be=ue.progressDot,_e=ue.stepIcon,Ee=ue.stepNumber,Xe=ue.status,He=ue.title,nt=ue.description,Ie=ue.icon,oe=ue.iconPrefix,ot=ue.icons,he,J=_()("".concat($,"-icon"),"".concat(oe,"icon"),(ee={},Object(c.a)(ee,"".concat(oe,"icon-").concat(Ie),Ie&&w(Ie)),Object(c.a)(ee,"".concat(oe,"icon-check"),!Ie&&Xe==="finish"&&(ot&&!ot.finish||!ot)),Object(c.a)(ee,"".concat(oe,"icon-cross"),!Ie&&Xe==="error"&&(ot&&!ot.error||!ot)),ee)),Y=e.createElement("span",{className:"".concat($,"-icon-dot")});return be?typeof be=="function"?he=e.createElement("span",{className:"".concat($,"-icon")},be(Y,{index:Ee-1,status:Xe,title:He,description:nt})):he=e.createElement("span",{className:"".concat($,"-icon")},Y):Ie&&!w(Ie)?he=e.createElement("span",{className:"".concat($,"-icon")},Ie):ot&&ot.finish&&Xe==="finish"?he=e.createElement("span",{className:"".concat($,"-icon")},ot.finish):ot&&ot.error&&Xe==="error"?he=e.createElement("span",{className:"".concat($,"-icon")},ot.error):Ie||Xe==="finish"||Xe==="error"?he=e.createElement("span",{className:J}):he=e.createElement("span",{className:"".concat($,"-icon")},Ee),_e&&(he=_e({index:Ee-1,status:Xe,title:He,description:nt,node:he})),he}},{key:"render",value:function(){var ee,ue=this.props,$=ue.className,be=ue.prefixCls,_e=ue.style,Ee=ue.active,Xe=ue.status,He=Xe===void 0?"wait":Xe,nt=ue.iconPrefix,Ie=ue.icon,oe=ue.wrapperStyle,ot=ue.stepNumber,he=ue.disabled,J=ue.description,Y=ue.title,q=ue.subTitle,fe=ue.progressDot,we=ue.stepIcon,Ne=ue.tailContent,je=ue.icons,me=ue.stepIndex,Ce=ue.onStepClick,Fe=ue.onClick,it=Object(d.a)(ue,T),Ct=_()("".concat(be,"-item"),"".concat(be,"-item-").concat(He),$,(ee={},Object(c.a)(ee,"".concat(be,"-item-custom"),Ie),Object(c.a)(ee,"".concat(be,"-item-active"),Ee),Object(c.a)(ee,"".concat(be,"-item-disabled"),he===!0),ee)),mt=Object(s.a)({},_e),Ve={};return Ce&&!he&&(Ve.role="button",Ve.tabIndex=0,Ve.onClick=this.onClick),e.createElement("div",Object.assign({},it,{className:Ct,style:mt}),e.createElement("div",Object.assign({onClick:Fe},Ve,{className:"".concat(be,"-item-container")}),e.createElement("div",{className:"".concat(be,"-item-tail")},Ne),e.createElement("div",{className:"".concat(be,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(be,"-item-content")},e.createElement("div",{className:"".concat(be,"-item-title")},Y,q&&e.createElement("div",{title:typeof q=="string"?q:void 0,className:"".concat(be,"-item-subtitle")},q)),J&&e.createElement("div",{className:"".concat(be,"-item-description")},J))))}}]),G}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],R=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var re;return Object(g.a)(this,G),re=Q.apply(this,arguments),re.onStepClick=function(ee){var ue=re.props,$=ue.onChange,be=ue.current;$&&be!==ee&&$(ee)},re}return Object(v.a)(G,[{key:"render",value:function(){var ee,ue=this,$=this.props,be=$.prefixCls,_e=$.style,Ee=_e===void 0?{}:_e,Xe=$.className,He=$.children,nt=$.direction,Ie=$.type,oe=$.labelPlacement,ot=$.iconPrefix,he=$.status,J=$.size,Y=$.current,q=$.progressDot,fe=$.stepIcon,we=$.initial,Ne=$.icons,je=$.onChange,me=Object(d.a)($,I),Ce=Ie==="navigation",Fe=q?"vertical":oe,it=_()(be,"".concat(be,"-").concat(nt),Xe,(ee={},Object(c.a)(ee,"".concat(be,"-").concat(J),J),Object(c.a)(ee,"".concat(be,"-label-").concat(Fe),nt==="horizontal"),Object(c.a)(ee,"".concat(be,"-dot"),!!q),Object(c.a)(ee,"".concat(be,"-navigation"),Ce),ee));return l.a.createElement("div",Object.assign({className:it,style:Ee},me),Object(E.a)(He).map(function(Ct,mt){var Ve=we+mt,or=Object(s.a)({stepNumber:"".concat(Ve+1),stepIndex:Ve,key:Ve,prefixCls:be,iconPrefix:ot,wrapperStyle:Ee,progressDot:q,stepIcon:fe,icons:Ne,onStepClick:je&&ue.onStepClick},Ct.props);return he==="error"&&mt===Y-1&&(or.className="".concat(be,"-next-error")),Ct.props.status||(Ve===Y?or.status=he:Ve<Y?or.status="finish":or.status="wait"),or.active=Ve===Y,Object(e.cloneElement)(Ct,or)}))}}]),G}(l.a.Component);R.Step=O,R.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var M=R,F=n("NAnI"),P=n.n(F),X=n("V/uB"),B=n.n(X),j=n("H84U"),W=n("CFYs"),z=function(V){i()(G,V);var Q=o()(G);function G(){var re;return f()(this,G),re=Q.apply(this,arguments),re.renderSteps=function(ee){var ue=ee.getPrefixCls,$=ee.direction,be=ue("steps",re.props.prefixCls),_e=ue("",re.props.iconPrefix),Ee=re.props,Xe=Ee.percent,He=Ee.size,nt=_()(re.props.className,A()({},"".concat(be,"-rtl"),$==="rtl")),Ie={finish:e.createElement(P.a,{className:"".concat(be,"-finish-icon")}),error:e.createElement(B.a,{className:"".concat(be,"-error-icon")})},oe=function(he){var J=he.node,Y=he.status;if(Y==="process"&&Xe!==void 0){var q=He==="small"?32:40,fe=e.createElement("div",{className:"".concat(be,"-progress-icon")},e.createElement(W.a,{type:"circle",percent:Xe,width:q,strokeWidth:4,format:function(){return null}}),J);return fe}return J};return e.createElement(M,p()({icons:Ie},Object(r.default)(re.props,["progress"]),{stepIcon:oe,prefixCls:be,iconPrefix:_e,className:nt}))},re}return u()(G,[{key:"render",value:function(){return e.createElement(j.a,null,this.renderSteps)}}]),G}(e.Component);z.Step=M.Step,z.defaultProps={current:0}},L5E0:function(k,D){var n=["itemStyle","borderColor"];function y(p,x){var A=p.get("color");p.eachRawSeriesByType("boxplot",function(m){var f=A[m.seriesIndex%A.length],h=m.getData();h.setVisual({legendSymbol:"roundRect",color:m.get(n)||f}),p.isSeriesFiltered(m)||h.each(function(u){var a=h.getItemModel(u);h.setItemVisual(u,{color:a.get(n,!0)})})})}k.exports=y},L8xA:function(k,D){function n(y){var p=this.__data__,x=p.delete(y);return this.size=p.size,x}k.exports=n},LBfv:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=p.createHashMap,A=p.each;y.registerProcessor({getTargetSeries:function(m){var f=x();return m.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(u,a,i){var t=i.getAxisProxy(u.name,a);A(t.getTargetSeriesModels(),function(o){f.set(o.uid,o)})})}),f},modifyOutputEnd:!0,overallReset:function(m,f){m.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(u,a,i){i.getAxisProxy(u.name,a).reset(i,f)}),h.eachTargetAxis(function(u,a,i){i.getAxisProxy(u.name,a).filterData(i,f)})}),m.eachComponent("dataZoom",function(h){var u=h.findRepresentativeAxisProxy(),a=u.getDataPercentWindow(),i=u.getDataValueWindow();h.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})})}})},LCi9:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function p(v,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}function x(v,b,S){return b&&p(v.prototype,b),S&&p(v,S),v}var A=0,m=1,f=2,h=4,u=8,a=16,i=32,t=64,o=127,e=50,l=90,r=250,s=1e3,c=1e3,d=50,g=function(){function v(){y(this,v),this._target=null,this._state=o,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return x(v,[{key:"attach",value:function(S){this.detach(),this._target=S,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}},{key:"detach",value:function(){if(!this._target)return;this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null}},{key:"_eventHandler",value:function(S){var E;S.stopPropagation(),S.preventDefault();switch(S.type){case"touchstart":E=this._touchStart;break;case"touchmove":E=this._touchMove;break;case"touchend":case"touchcancel":E=this._touchEnd;break}for(var C=0;C<S.changedTouches.length;C++){var _=S.changedTouches[C];E.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(S,E,C){if(this._hasDetectedGesture()||this._state===A){this._ignored.push(S);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=A,this._ignored.push(S);return}if(this._waitingRelease){this._state=A,this._ignored.push(S);return}this._tracked.push({id:S,started:Date.now(),active:!0,firstX:E,firstY:C,lastX:E,lastY:C,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(m|u|a),this._stopLongpressTimeout();break;case 3:this._state&=~(f|i|t);break;default:this._state=A}}},{key:"_touchMove",value:function(S,E,C){var _=this._tracked.find(function(M){return M.id===S});if(_===void 0)return;_.lastX=E,_.lastY=C;var T=E-_.firstX,w=C-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(w,T)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(T,w)<e)return;if(this._state&=~(m|f|h|a),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~u),this._tracked.length!==2&&(this._state&=~(i|t)),this._tracked.length===2){var O=this._tracked.find(function(M){return M.id!==S}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var R=Math.abs(_.angle-O.angle);R=Math.abs((R+180)%360-180),R>l?this._state&=~i:this._state&=~t,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(S,E,C){if(this._ignored.indexOf(S)!==-1){this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=o,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=A),!this._hasDetectedGesture()&&(this._state&=~(u|i|t),this._state&=~a,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(f|h);break;case 2:this._state&=~(m|h);break}}if(this._waitingRelease){Date.now()-this._releaseStart>r&&(this._state=A),this._tracked.some(function(w){return Date.now()-w.started>s})&&(this._state=A);var _=this._tracked.find(function(w){return w.id===S});if(_.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==A)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var T=0;T<this._tracked.length;T++)this._tracked[T].active&&this._ignored.push(this._tracked[T].id);this._tracked=[],this._state=A,this._ignored.indexOf(S)!==-1&&this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&(this._state=o,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===A||this._state&this._state-1?!1:!(this._state&(m|f|h)&&this._tracked.some(function(S){return S.active}))}},{key:"_startLongpressTimeout",value:function(){var S=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return S._longpressTimeout()},c)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=a,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var S=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return S._twoTouchTimeout()},d)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var S=this._getAverageMovement(),E=Math.abs(S.x),C=Math.abs(S.y),_=this._getAverageDistance(),T=Math.abs(Math.hypot(_.first.x,_.first.y)-Math.hypot(_.last.x,_.last.y));C<T&&E<T?this._state=t:this._state=i,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(S){var E={type:this._stateToGesture(this._state)},C=this._getPosition(),_=C.last;S==="gesturestart"&&(_=C.first);switch(this._state){case i:case t:_=C.first;break}if(E.clientX=_.x,E.clientY=_.y,this._state===t){var T=this._getAverageDistance();S==="gesturestart"?(E.magnitudeX=T.first.x,E.magnitudeY=T.first.y):(E.magnitudeX=T.last.x,E.magnitudeY=T.last.y)}else if(this._state===i)if(S==="gesturestart")E.magnitudeX=0,E.magnitudeY=0;else{var w=this._getAverageMovement();E.magnitudeX=w.x,E.magnitudeY=w.y}var O=new CustomEvent(S,{detail:E});this._target.dispatchEvent(O)}},{key:"_stateToGesture",value:function(S){switch(S){case m:return"onetap";case f:return"twotap";case h:return"threetap";case u:return"drag";case a:return"longpress";case i:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+S)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var S=this._tracked.length,E=0,C=0,_=0,T=0,w=0;w<this._tracked.length;w++)E+=this._tracked[w].firstX,C+=this._tracked[w].firstY,_+=this._tracked[w].lastX,T+=this._tracked[w].lastY;return{first:{x:E/S,y:C/S},last:{x:_/S,y:T/S}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var S,E;S=E=0;for(var C=this._tracked.length,_=0;_<this._tracked.length;_++)S+=this._tracked[_].lastX-this._tracked[_].firstX,E+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:S/C,y:E/C}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var S=this._tracked[0],E=this._tracked[this._tracked.length-1],C=Math.abs(E.firstX-S.firstX),_=Math.abs(E.firstY-S.firstY),T=Math.abs(E.lastX-S.lastX),w=Math.abs(E.lastY-S.lastY);return{first:{x:C,y:_},last:{x:T,y:w}}}}]),v}();D.default=g},LPTA:function(k,D){var n=1;typeof window!="undefined"&&(n=Math.max(window.devicePixelRatio||1,1));var y=0,p=n;D.debugMode=y,D.devicePixelRatio=p},LPzL:function(k,D,n){var y=n("ProS");n("QzjZ"),n("vL6D"),n("xiyX"),n("y4/Y"),n("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=function(){function o(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&&o(e.prototype,l),r&&o(e,r),e}}(),p=n("q1tI"),x=f(p),A=n("17x9"),m=f(A);function f(o){return o&&o.__esModule?o:{default:o}}function h(o,e){var l={};for(var r in o){if(e.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(o,r))continue;l[r]=o[r]}return l}function u(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function a(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:o}function i(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}var t=function(o){i(e,o);function e(l){u(this,e);var r=a(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),d=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,v=s.pageYOffset!==void 0?s.pageYOffset:g.scrollTop;this.props.isReverse?d=v:d=this.calculateOffset(r,v)}else this.props.isReverse?d=c.scrollTop:d=r.scrollHeight-c.scrollTop-c.clientHeight;d<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,d=s.element,g=s.hasMore,v=s.initialLoad,b=s.isReverse,S=s.loader,E=s.loadMore,C=s.pageStart,_=s.ref,T=s.threshold,w=s.useCapture,O=s.useWindow,I=s.getScrollParent,R=h(s,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);R.ref=function(F){r.scrollComponent=F,_&&_(F)};var M=[c];return g&&(S?b?M.unshift(S):M.push(S):this.defaultLoader&&(b?M.unshift(this.defaultLoader):M.push(this.defaultLoader))),x.default.createElement(d,R,M)}}]),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 n(y,p){for(var x=-1,A=y==null?0:y.length,m=0,f=[];++x<A;){var h=y[x];p(h,x,y)&&(f[m++]=h)}return f}k.exports=n},Lerx:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Mds0"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},LlR5:function(k,D,n){"use strict";n.d(D,"b",function(){return b});var y=n("lSNA"),p=n.n(y),x=n("lwsE"),A=n.n(x),m=n("W8MJ"),f=n.n(m),h=n("7W2i"),u=n.n(h),a=n("LQ03"),i=n.n(a),t=n("q1tI"),o=n.n(t),e=n("TSYQ"),l=n.n(e),r=n("kbBi"),s=n.n(r),c=n("CWQg"),d=n("mh/l"),g=n("0n0R"),v=Object(c.a)("text","input");function b(E){return!!(E.prefix||E.suffix||E.allowClear)}var S=function(E){u()(_,E);var C=i()(_);function _(){var T;return A()(this,_),T=C.apply(this,arguments),T.containerRef=t.createRef(),T.onInputMouseUp=function(w){var O;if((O=T.containerRef.current)===null||O===void 0?void 0:O.contains(w.target)){var I=T.props.triggerFocus;I()}},T}return f()(_,[{key:"renderClearIcon",value:function(w){var O=this.props,I=O.allowClear,R=O.value,M=O.disabled,F=O.readOnly,P=O.inputType,X=O.handleReset;if(!I)return null;var B=!M&&!F&&R,j=P===v[0]?"".concat(w,"-textarea-clear-icon"):"".concat(w,"-clear-icon");return t.createElement(s.a,{onClick:X,className:l()(j,p()({},"".concat(j,"-hidden"),!B)),role:"button"})}},{key:"renderSuffix",value:function(w){var O=this.props,I=O.suffix,R=O.allowClear;return I||R?t.createElement("span",{className:"".concat(w,"-suffix")},this.renderClearIcon(w),I):null}},{key:"renderLabeledIcon",value:function(w,O){var I,R=this.props,M=R.focused,F=R.value,P=R.prefix,X=R.className,B=R.size,j=R.suffix,W=R.disabled,z=R.allowClear,V=R.direction,Q=R.style,G=R.readOnly,re=R.bordered,ee=this.renderSuffix(w);if(!b(this.props))return Object(g.a)(O,{value:F});var ue=P?t.createElement("span",{className:"".concat(w,"-prefix")},P):null,$=l()(X,"".concat(w,"-affix-wrapper"),(I={},p()(I,"".concat(w,"-affix-wrapper-focused"),M),p()(I,"".concat(w,"-affix-wrapper-disabled"),W),p()(I,"".concat(w,"-affix-wrapper-sm"),B==="small"),p()(I,"".concat(w,"-affix-wrapper-lg"),B==="large"),p()(I,"".concat(w,"-affix-wrapper-input-with-clear-btn"),j&&z&&F),p()(I,"".concat(w,"-affix-wrapper-rtl"),V==="rtl"),p()(I,"".concat(w,"-affix-wrapper-readonly"),G),p()(I,"".concat(w,"-affix-wrapper-borderless"),!re),I));return t.createElement("span",{ref:this.containerRef,className:$,style:Q,onMouseUp:this.onInputMouseUp},ue,Object(g.a)(O,{style:null,value:F,className:Object(d.c)(w,re,B,W)}),ee)}},{key:"renderInputWithLabel",value:function(w,O){var I,R,M=this.props,F=M.addonBefore,P=M.addonAfter,X=M.style,B=M.size,j=M.className,W=M.direction;if(!F&&!P)return O;var z="".concat(w,"-group"),V="".concat(z,"-addon"),Q=F?t.createElement("span",{className:V},F):null,G=P?t.createElement("span",{className:V},P):null,re=l()("".concat(w,"-wrapper"),(I={},p()(I,z,F||P),p()(I,"".concat(z,"-rtl"),W==="rtl"),I)),ee=l()(j,"".concat(w,"-group-wrapper"),(R={},p()(R,"".concat(w,"-group-wrapper-sm"),B==="small"),p()(R,"".concat(w,"-group-wrapper-lg"),B==="large"),p()(R,"".concat(w,"-group-wrapper-rtl"),W==="rtl"),R));return t.createElement("span",{className:ee,style:X},t.createElement("span",{className:re},Q,Object(g.a)(O,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(w,O){var I,R=this.props,M=R.value,F=R.allowClear,P=R.className,X=R.style,B=R.direction,j=R.bordered;if(!F)return Object(g.a)(O,{value:M});var W=l()(P,"".concat(w,"-affix-wrapper"),"".concat(w,"-affix-wrapper-textarea-with-clear-btn"),(I={},p()(I,"".concat(w,"-affix-wrapper-rtl"),B==="rtl"),p()(I,"".concat(w,"-affix-wrapper-borderless"),!j),I));return t.createElement("span",{className:W,style:X},Object(g.a)(O,{style:null,value:M}),this.renderClearIcon(w))}},{key:"render",value:function(){var w=this.props,O=w.prefixCls,I=w.inputType,R=w.element;return I===v[0]?this.renderTextAreaWithClearIcon(O,R):this.renderInputWithLabel(O,this.renderLabeledIcon(O,R))}}]),_}(t.Component);D.a=S},Llu2:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DeliveredProcedureOutlined";var h=D.a=p.forwardRef(f)},Lo0S:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.initLogging=f,D.getLogging=h,D.Error=D.Warn=D.Info=D.Debug=void 0;var y="warn",p=function(){};D.Debug=p;var x=function(){};D.Info=x;var A=function(){};D.Warn=A;var m=function(){};D.Error=m;function f(u){if(typeof u=="undefined"?u=y:y=u,D.Debug=p=D.Info=x=D.Warn=A=D.Error=m=function(){},typeof window.console!="undefined")switch(u){case"debug":D.Debug=p=console.debug.bind(window.console);case"info":D.Info=x=console.info.bind(window.console);case"warn":D.Warn=A=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 h(){return y}f()},LtfV:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="InboxOutlined";var h=D.a=p.forwardRef(f)},Lyp1:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="QuestionCircleOutlined";var h=D.a=p.forwardRef(f)},LzGr:function(k,D,n){var y=n("ProS"),p=n("rnVJ");n("EMyp"),n("8x+h"),n("wt3j"),n("uOyE"),n("/stD"),y.registerPreprocessor(p)},MBQ8:function(k,D,n){var y=n("T4UG"),p=n("MwEJ"),x=y.extend({type:"series.__base_bar__",getInitialData:function(A,m){return p(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(A){var m=this.coordinateSystem;if(m){var f=m.dataToPoint(m.clampData(A)),h=this.getData(),u=h.getLayout("offset"),a=h.getLayout("size"),i=m.getBaseAxis().isHorizontal()?0:1;return f[i]+=u+a/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=x},MEGo:function(k,D,n){var y=n("4fz+"),p=n("Dagg"),x=n("dqUG"),A=n("2fw6"),m=n("x6Kt"),f=n("rmlV"),h=n("yxFR"),u=n("y+Vt"),a=n("h7HQ"),i=n("1Jh7"),t=n("SKnc"),o=n("K2GJ"),e=n("Fofx"),l=n("NC18"),r=l.createFromString,s=n("bYtY"),c=s.isString,d=s.extend,g=s.defaults,v=s.trim,b=s.each,S=/[\s,]+/;function E(Q){if(c(Q)){var G=new DOMParser;Q=G.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(Q,G){G=G||{};var re=E(Q);if(!re)throw new Error("Illegal svg");var ee=new y;this._root=ee;var ue=re.getAttribute("viewBox")||"",$=parseFloat(re.getAttribute("width")||G.width),be=parseFloat(re.getAttribute("height")||G.height);isNaN($)&&($=null),isNaN(be)&&(be=null),M(re,ee,null,!0);for(var _e=re.firstChild;_e;)this._parseNode(_e,ee),_e=_e.nextSibling;var Ee,Xe;if(ue){var He=v(ue).split(S);He.length>=4&&(Ee={x:parseFloat(He[0]||0),y:parseFloat(He[1]||0),width:parseFloat(He[2]),height:parseFloat(He[3])})}if(Ee&&$!=null&&be!=null&&(Xe=z(Ee,$,be),!G.ignoreViewBox)){var nt=ee;ee=new y,ee.add(nt),nt.scale=Xe.scale.slice(),nt.position=Xe.position.slice()}return!G.ignoreRootClip&&$!=null&&be!=null&&ee.setClipPath(new m({shape:{x:0,y:0,width:$,height:be}})),{root:ee,width:$,height:be,viewBoxRect:Ee,viewBoxTransform:Xe}},C.prototype._parseNode=function(Q,G){var re=Q.nodeName.toLowerCase();re==="defs"?this._isDefine=!0:re==="text"&&(this._isText=!0);var ee;if(this._isDefine){var ue=T[re];if(ue){var $=ue.call(this,Q),be=Q.getAttribute("id");be&&(this._defs[be]=$)}}else{var ue=_[re];ue&&(ee=ue.call(this,Q,G),G.add(ee))}for(var _e=Q.firstChild;_e;)_e.nodeType===1&&this._parseNode(_e,ee),_e.nodeType===3&&this._isText&&this._parseText(_e,ee),_e=_e.nextSibling;re==="defs"?this._isDefine=!1:re==="text"&&(this._isText=!1)},C.prototype._parseText=function(Q,G){if(Q.nodeType===1){var re=Q.getAttribute("dx")||0,ee=Q.getAttribute("dy")||0;this._textX+=parseFloat(re),this._textY+=parseFloat(ee)}var ue=new x({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(G,ue),M(Q,ue,this._defs);var $=ue.style.fontSize;$&&$<9&&(ue.style.fontSize=9,ue.scale=ue.scale||[1,1],ue.scale[0]*=$/9,ue.scale[1]*=$/9);var be=ue.getBoundingRect();return this._textX+=be.width,G.add(ue),ue};var _={g:function(G,re){var ee=new y;return O(re,ee),M(G,ee,this._defs),ee},rect:function(G,re){var ee=new m;return O(re,ee),M(G,ee,this._defs),ee.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)}),ee},circle:function(G,re){var ee=new A;return O(re,ee),M(G,ee,this._defs),ee.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),ee},line:function(G,re){var ee=new h;return O(re,ee),M(G,ee,this._defs),ee.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)}),ee},ellipse:function(G,re){var ee=new f;return O(re,ee),M(G,ee,this._defs),ee.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)}),ee},polygon:function(G,re){var ee=G.getAttribute("points");ee&&(ee=I(ee));var ue=new a({shape:{points:ee||[]}});return O(re,ue),M(G,ue,this._defs),ue},polyline:function(G,re){var ee=new u;O(re,ee),M(G,ee,this._defs);var ue=G.getAttribute("points");ue&&(ue=I(ue));var $=new i({shape:{points:ue||[]}});return $},image:function(G,re){var ee=new p;return O(re,ee),M(G,ee,this._defs),ee.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),ee},text:function(G,re){var ee=G.getAttribute("x")||0,ue=G.getAttribute("y")||0,$=G.getAttribute("dx")||0,be=G.getAttribute("dy")||0;this._textX=parseFloat(ee)+parseFloat($),this._textY=parseFloat(ue)+parseFloat(be);var _e=new y;return O(re,_e),M(G,_e,this._defs),_e},tspan:function(G,re){var ee=G.getAttribute("x"),ue=G.getAttribute("y");ee!=null&&(this._textX=parseFloat(ee)),ue!=null&&(this._textY=parseFloat(ue));var $=G.getAttribute("dx")||0,be=G.getAttribute("dy")||0,_e=new y;return O(re,_e),M(G,_e,this._defs),this._textX+=$,this._textY+=be,_e},path:function(G,re){var ee=G.getAttribute("d")||"",ue=r(ee);return O(re,ue),M(G,ue,this._defs),ue}},T={lineargradient:function(G){var re=parseInt(G.getAttribute("x1")||0,10),ee=parseInt(G.getAttribute("y1")||0,10),ue=parseInt(G.getAttribute("x2")||10,10),$=parseInt(G.getAttribute("y2")||0,10),be=new t(re,ee,ue,$);return w(G,be),be},radialgradient:function(G){}};function w(Q,G){for(var re=Q.firstChild;re;){if(re.nodeType===1){var ee=re.getAttribute("offset");ee.indexOf("%")>0?ee=parseInt(ee,10)/100:ee?ee=parseFloat(ee):ee=0;var ue=re.getAttribute("stop-color")||"#000000";G.addColorStop(ee,ue)}re=re.nextSibling}}function O(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),g(G.__inheritedStyle,Q.__inheritedStyle))}function I(Q){for(var G=v(Q).split(S),re=[],ee=0;ee<G.length;ee+=2){var ue=parseFloat(G[ee]),$=parseFloat(G[ee+1]);re.push([ue,$])}return re}var R={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function M(Q,G,re,ee){var ue=G.__inheritedStyle||{},$=G.type==="text";if(Q.nodeType===1&&(B(Q,G),d(ue,W(Q)),!ee)){for(var be in R)if(R.hasOwnProperty(be)){var _e=Q.getAttribute(be);_e!=null&&(ue[R[be]]=_e)}}var Ee=$?"textFill":"fill",Xe=$?"textStroke":"stroke";G.style=G.style||new o;var He=G.style;ue.fill!=null&&He.set(Ee,P(ue.fill,re)),ue.stroke!=null&&He.set(Xe,P(ue.stroke,re)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(nt){var Ie=nt==="lineWidth"&&$?"textStrokeWidth":nt;ue[nt]!=null&&He.set(Ie,parseFloat(ue[nt]))}),(!ue.textBaseline||ue.textBaseline==="auto")&&(ue.textBaseline="alphabetic"),ue.textBaseline==="alphabetic"&&(ue.textBaseline="bottom"),ue.textAlign==="start"&&(ue.textAlign="left"),ue.textAlign==="end"&&(ue.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(nt){ue[nt]!=null&&He.set(nt,ue[nt])}),ue.lineDash&&(G.style.lineDash=v(ue.lineDash).split(S)),He[Xe]&&He[Xe]!=="none"&&(G[Xe]=!0),G.__inheritedStyle=ue}var F=/url\(\s*#(.*?)\)/;function P(Q,G){var re=G&&Q&&Q.match(F);if(re){var ee=v(re[1]),ue=G[ee];return ue}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function B(Q,G){var re=Q.getAttribute("transform");if(re){re=re.replace(/,/g," ");var ee=null,ue=[];re.replace(X,function(Ee,Xe,He){ue.push(Xe,He)});for(var $=ue.length-1;$>0;$-=2){var be=ue[$],_e=ue[$-1];ee=ee||e.create();switch(_e){case"translate":be=v(be).split(S),e.translate(ee,ee,[parseFloat(be[0]),parseFloat(be[1]||0)]);break;case"scale":be=v(be).split(S),e.scale(ee,ee,[parseFloat(be[0]),parseFloat(be[1]||be[0])]);break;case"rotate":be=v(be).split(S),e.rotate(ee,ee,parseFloat(be[0]));break;case"skew":be=v(be).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var be=v(be).split(S);ee[0]=parseFloat(be[0]),ee[1]=parseFloat(be[1]),ee[2]=parseFloat(be[2]),ee[3]=parseFloat(be[3]),ee[4]=parseFloat(be[4]),ee[5]=parseFloat(be[5]);break}}G.setLocalTransform(ee)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(Q){var G=Q.getAttribute("style"),re={};if(!G)return re;var ee={};j.lastIndex=0;for(var ue;(ue=j.exec(G))!=null;)ee[ue[1]]=ue[2];for(var $ in R)R.hasOwnProperty($)&&ee[$]!=null&&(re[R[$]]=ee[$]);return re}function z(Q,G,re){var ee=G/Q.width,ue=re/Q.height,$=Math.min(ee,ue),be=[$,$],_e=[-(Q.x+Q.width/2)*$+G/2,-(Q.y+Q.height/2)*$+re/2];return{scale:be,position:_e}}function V(Q,G){var re=new C;return re.parse(Q,G)}D.parseXML=E,D.makeViewBoxTransform=z,D.parseSVG=V},MFOe:function(k,D,n){(function(y){var p=f(),x=h(),A=u(),m=typeof window!="undefined"?window:y;k.exports={assign:p,create:x,trim:A,bind:a,slice:i,each:t,map:o,pluck:e,isList:l,isFunction:r,isObject:s,Global:m};function f(){return Object.assign?Object.assign:function(d,g,v,b){for(var S=1;S<arguments.length;S++)t(Object(arguments[S]),function(E,C){d[C]=E});return d}}function h(){if(Object.create)return function(g,v,b,S){var E=i(arguments,1);return p.apply(this,[Object.create(g)].concat(E))};var c=function(){};return function(g,v,b,S){var E=i(arguments,1);return c.prototype=g,p.apply(this,[new c].concat(E))}}function u(){return String.prototype.trim?function(d){return String.prototype.trim.call(d)}:function(d){return d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function a(c,d){return function(){return d.apply(c,Array.prototype.slice.call(arguments,0))}}function i(c,d){return Array.prototype.slice.call(c,d||0)}function t(c,d){e(c,function(g,v){return d(g,v),!1})}function o(c,d){var g=l(c)?[]:{};return e(c,function(v,b){return g[b]=d(v,b),!1}),g}function e(c,d){if(l(c)){for(var g=0;g<c.length;g++)if(d(c[g],g))return c[g]}else for(var v in c)if(c.hasOwnProperty(v)&&d(c[v],v))return c[v]}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,n("yLpj"))},MH26:function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("OELB"),A=n("kj2x"),m=n("c8qY"),f=n("iPDy"),h=n("7hqr"),u=h.getStackedDimension,a=function(s,c,d,g){var v=s.getData(),b=g.type;if(!y.isArray(g)&&(b==="min"||b==="max"||b==="average"||b==="median"||g.xAxis!=null||g.yAxis!=null)){var S,E;if(g.yAxis!=null||g.xAxis!=null)S=c.getAxis(g.yAxis!=null?"y":"x"),E=y.retrieve(g.yAxis,g.xAxis);else{var C=A.getAxisInfo(g,v,c,s);S=C.valueAxis;var _=u(v,C.valueDataDim);E=A.numCalculate(v,_,b)}var T=S.dim==="x"?0:1,w=1-T,O=y.clone(g),I={};O.type=null,O.coord=[],I.coord=[],O.coord[w]=-Infinity,I.coord[w]=Infinity;var R=d.get("precision");R>=0&&typeof E=="number"&&(E=+E.toFixed(Math.min(R,20))),O.coord[T]=I.coord[T]=E,g=[O,I,{type:b,valueIndex:g.valueIndex,value:E}]}return g=[A.dataTransform(s,g[0]),A.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 i(s){return!isNaN(s)&&!isFinite(s)}function t(s,c,d,g){var v=1-s,b=g.dimensions[s];return i(c[v])&&i(d[v])&&c[s]===d[s]&&g.getAxis(b).containData(c[s])}function o(s,c){if(s.type==="cartesian2d"){var d=c[0].coord,g=c[1].coord;if(d&&g&&(t(1,d,g,s)||t(0,d,g,s)))return!0}return A.dataFilter(s,c[0])&&A.dataFilter(s,c[1])}function e(s,c,d,g,v){var b=g.coordinateSystem,S=s.getItemModel(c),E,C=x.parsePercent(S.get("x"),v.getWidth()),_=x.parsePercent(S.get("y"),v.getHeight());if(!isNaN(C)&&!isNaN(_))E=[C,_];else{if(g.getMarkerPosition)E=g.getMarkerPosition(s.getValues(s.dimensions,c));else{var T=b.dimensions,w=s.get(T[0],c),O=s.get(T[1],c);E=b.dataToPoint([w,O])}if(b.type==="cartesian2d"){var I=b.getAxis("x"),R=b.getAxis("y"),T=b.dimensions;i(s.get(T[0],c))?E[0]=I.toGlobalCoord(I.getExtent()[d?0:1]):i(s.get(T[1],c))&&(E[1]=R.toGlobalCoord(R.getExtent()[d?0:1]))}isNaN(C)||(E[0]=C),isNaN(_)||(E[1]=_)}s.setItemLayout(c,E)}var l=f.extend({type:"markLine",updateTransform:function(s,c,d){c.eachSeries(function(g){var v=g.markLineModel;if(v){var b=v.getData(),S=v.__from,E=v.__to;S.each(function(C){e(S,C,!0,g,d),e(E,C,!1,g,d)}),b.each(function(C){b.setItemLayout(C,[S.getItemLayout(C),E.getItemLayout(C)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(s,c,d,g){var v=s.coordinateSystem,b=s.id,S=s.getData(),E=this.markerGroupMap,C=E.get(b)||E.set(b,new m);this.group.add(C.group);var _=r(v,s,c),T=_.from,w=_.to,O=_.line;c.__from=T,c.__to=w,c.setData(O);var I=c.get("symbol"),R=c.get("symbolSize");y.isArray(I)||(I=[I,I]),typeof R=="number"&&(R=[R,R]),_.from.each(function(F){M(T,F,!0),M(w,F,!1)}),O.each(function(F){var P=O.getItemModel(F).get("lineStyle.color");O.setItemVisual(F,{color:P||T.getItemVisual(F,"color")}),O.setItemLayout(F,[T.getItemLayout(F),w.getItemLayout(F)]),O.setItemVisual(F,{fromSymbolSize:T.getItemVisual(F,"symbolSize"),fromSymbol:T.getItemVisual(F,"symbol"),toSymbolSize:w.getItemVisual(F,"symbolSize"),toSymbol:w.getItemVisual(F,"symbol")})}),C.updateData(O),_.line.eachItemGraphicEl(function(F,P){F.traverse(function(X){X.dataModel=c})});function M(F,P,X){var B=F.getItemModel(P);e(F,P,X,s,g),F.setItemVisual(P,{symbolSize:B.get("symbolSize")||R[X?0:1],symbol:B.get("symbol",!0)||I[X?0:1],color:B.get("itemStyle.color")||S.getVisual("color")})}C.__keep=!0,C.group.silent=c.get("silent")||s.get("silent")}});function r(s,c,d){var g;s?g=y.map(s&&s.dimensions,function(_){var T=c.getData().getDimensionInfo(c.getData().mapDimension(_))||{};return y.defaults({name:_},T)}):g=[{name:"value",type:"float"}];var v=new p(g,d),b=new p(g,d),S=new p([],d),E=y.map(d.get("data"),y.curry(a,c,s,d));s&&(E=y.filter(E,y.curry(o,s)));var C=s?A.dimValueGetter:function(_){return _.value};return v.initData(y.map(E,function(_){return _[0]}),null,C),b.initData(y.map(E,function(_){return _[1]}),null,C),S.initData(y.map(E,function(_){return _[2]})),S.hasItemOption=!0,{from:v,to:b,line:S}}k.exports=l},MHoB:function(k,D,n){var y=n("bYtY"),p=n("6uqw"),x=n("OELB"),A=[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,a){m.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){m.superApply(this,"resetItemSize",arguments);var u=this.itemSize;this._orient==="horizontal"&&u.reverse(),(u[0]==null||isNaN(u[0]))&&(u[0]=A[0]),(u[1]==null||isNaN(u[1]))&&(u[1]=A[1])},_resetRange:function(){var u=this.getExtent(),a=this.option.range;!a||a.auto?(u.auto=1,this.option.range=u):y.isArray(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],u[0]),a[1]=Math.min(a[1],u[1]))},completeVisualOption:function(){p.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(u){var a=this.option.controller[u].symbolSize;a&&a[0]!==a[1]&&(a[0]=0)},this)},setSelected:function(u){this.option.range=u.slice(),this._resetRange()},getSelected:function(){var u=this.getExtent(),a=x.asc((this.get("range")||[]).slice());return a[0]>u[1]&&(a[0]=u[1]),a[1]>u[1]&&(a[1]=u[1]),a[0]<u[0]&&(a[0]=u[0]),a[1]<u[0]&&(a[1]=u[0]),a},getValueState:function(u){var a=this.option.range,i=this.getExtent();return(a[0]<=i[0]||a[0]<=u)&&(a[1]>=i[1]||u<=a[1])?"inRange":"outOfRange"},findTargetDataIndices:function(u){var a=[];return this.eachTargetSeries(function(i){var t=[],o=i.getData();o.each(this.getDataDimension(o),function(e,l){u[0]<=e&&e<=u[1]&&t.push(l)},this),a.push({seriesId:i.id,dataIndex:t})},this),a},getVisualMeta:function(u){var a=f(this,"outOfRange",this.getExtent()),i=f(this,"inRange",this.option.range.slice()),t=[];function o(g,v){t.push({value:g,color:u(g,v)})}for(var e=0,l=0,r=i.length,s=a.length;l<s&&(!i.length||a[l]<=i[0]);l++)a[l]<i[e]&&o(a[l],"outOfRange");for(var c=1;e<r;e++,c=0)c&&t.length&&o(i[e],"outOfRange"),o(i[e],"inRange");for(var c=1;l<s;l++)(!i.length||i[i.length-1]<a[l])&&(c&&(t.length&&o(t[t.length-1].value,"outOfRange"),c=0),o(a[l],"outOfRange"));var d=t.length;return{stops:t,outerColors:[d?t[0].color:"transparent",d?t[d-1].color:"transparent"]}}});function f(u,a,i){if(i[0]===i[1])return i.slice();for(var t=200,o=(i[1]-i[0])/t,e=i[0],l=[],r=0;r<=t&&e<i[1];r++)l.push(e),e+=o;return l.push(i[1]),l}var h=m;k.exports=h},MHtr:function(k,D,n){var y=n("bYtY");function p(A,m){var f=this.getAxis(),h=m instanceof Array?m[0]:m,u=(A instanceof Array?A[0]:A)/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(h-u)-f.dataToCoord(h+u))}function x(A){var m=A.getRect();return{coordSys:{type:"singleAxis",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=x},MJZm:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("rePB"),h=n("VTBJ"),u=n("KQm4"),a=n("1OyB"),i=n("vuIU"),t=n("Ji7U"),o=n("LK+K"),e=n("4IlW"),l=n("Kwbf"),r=n("TSYQ"),s=n.n(r),c=n("FTAc"),d=n("wPhX"),g=n("c3jg"),v=n("ODXe"),b=n("Ff2n"),S=n("+nKL"),E=n("HTfv"),C=n("lr6o"),_=function(Pt,Xt){var Ge=Pt.className,pe=Pt.style,se=Pt.motion,lt=Pt.motionNodes,Ze=Pt.motionType,de=Pt.onMotionStart,_t=Pt.onMotionEnd,er=Pt.active,yt=Pt.treeNodeRequiredProps,Ar=Object(b.a)(Pt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Sr=m.useState(!0),Cn=Object(v.a)(Sr,2),mr=Cn[0],Pr=Cn[1],gr=m.useContext(c.a),Jt=gr.prefixCls,Dt=m.useRef(!1),dn=function(){Dt.current||_t(),Dt.current=!0};return Object(m.useEffect)(function(){lt&&Ze==="hide"&&mr&&Pr(!1)},[lt]),Object(m.useEffect)(function(){return lt&&de(),function(){lt&&dn()}},[]),lt?m.createElement(E.default,Object.assign({ref:Xt,visible:mr},se,{motionAppear:Ze==="show",onAppearEnd:dn,onLeaveEnd:dn}),function(Fn,Zn){var ci=Fn.className,Xi=Fn.style;return m.createElement("div",{ref:Zn,className:s()("".concat(Jt,"-treenode-motion"),ci),style:Xi},lt.map(function(Gn){var ei=Gn.data,Zt=ei.key,Nt=Object(b.a)(ei,["key"]),Me=Gn.isStart,ke=Gn.isEnd;delete Nt.children;var Pe=Object(g.f)(Zt,yt);return m.createElement(C.a,Object.assign({},Nt,Pe,{active:er,data:Gn.data,key:Zt,isStart:Me,isEnd:ke}))}))}):m.createElement(C.a,Object.assign({domRef:Xt,className:Ge,style:pe},Ar,{active:er}))};_.displayName="MotionTreeNode";var T=m.forwardRef(_),w=T;function O(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xt=Gt.length,Ge=Pt.length;if(Math.abs(Xt-Ge)!==1)return{add:!1,key:null};function pe(se,lt){var Ze=new Map;se.forEach(function(_t){Ze.set(_t,!0)});var de=lt.filter(function(_t){return!Ze.has(_t)});return de.length===1?de[0]:null}return Xt<Ge?{add:!0,key:pe(Gt,Pt)}:{add:!1,key:pe(Pt,Gt)}}function I(Gt,Pt,Xt){var Ge=Gt.findIndex(function(Ze){var de=Ze.data;return de.key===Xt}),pe=Gt[Ge+1],se=Pt.findIndex(function(Ze){var de=Ze.data;return de.key===Xt});if(pe){var lt=Pt.findIndex(function(Ze){var de=Ze.data;return de.key===pe.data.key});return Pt.slice(se+1,lt)}return Pt.slice(se+1)}var R={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(){},F="RC_TREE_MOTION_".concat(Math.random()),P={key:F},X={key:F,level:0,index:0,pos:"0",node:P},B={parent:null,children:[],pos:X.pos,data:P,isStart:[],isEnd:[]};function j(Gt,Pt,Xt,Ge){return Pt===!1||!Xt?Gt:Gt.slice(0,Math.ceil(Xt/Ge)+1)}function W(Gt){var Pt=Gt.data.key,Xt=Gt.pos;return Object(g.e)(Pt,Xt)}function z(Gt){for(var Pt=String(Gt.data.key),Xt=Gt;Xt.parent;)Xt=Xt.parent,Pt="".concat(Xt.data.key," > ").concat(Pt);return Pt}var V=function(Pt,Xt){var Ge=Pt.prefixCls,pe=Pt.data,se=Pt.selectable,lt=Pt.checkable,Ze=Pt.expandedKeys,de=Pt.selectedKeys,_t=Pt.checkedKeys,er=Pt.loadedKeys,yt=Pt.loadingKeys,Ar=Pt.halfCheckedKeys,Sr=Pt.keyEntities,Cn=Pt.disabled,mr=Pt.dragging,Pr=Pt.dragOverNodeKey,gr=Pt.dropPosition,Jt=Pt.motion,Dt=Pt.height,dn=Pt.itemHeight,Fn=Pt.virtual,Zn=Pt.focusable,ci=Pt.activeItem,Xi=Pt.focused,Gn=Pt.tabIndex,ei=Pt.onKeyDown,Zt=Pt.onFocus,Nt=Pt.onBlur,Me=Pt.onActiveChange,ke=Pt.onListChangeStart,Pe=Pt.onListChangeEnd,tt=Object(b.a)(Pt,["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"]),vt=m.useRef(null);m.useImperativeHandle(Xt,function(){return{scrollTo:function(Wi){vt.current.scrollTo(Wi)}}});var St=m.useState(Ze),Vt=Object(v.a)(St,2),Mr=Vt[0],$r=Vt[1],vn=m.useState(pe),jt=Object(v.a)(vn,2),gt=jt[0],pt=jt[1],ar=m.useState(pe),Ht=Object(v.a)(ar,2),Mt=Ht[0],qt=Ht[1],Rt=m.useState([]),Qt=Object(v.a)(Rt,2),jr=Qt[0],Nr=Qt[1],Lr=m.useState(null),ln=Object(v.a)(Lr,2),mn=ln[0],ti=ln[1];function $n(){pt(pe),qt(pe),Nr([]),ti(null),Pe()}m.useEffect(function(){$r(Ze);var Ni=O(Mr,Ze);if(Ni.key!==null)if(Ni.add){var Wi=gt.findIndex(function($e){var at=$e.data.key;return at===Ni.key}),rt=j(I(gt,pe,Ni.key),Fn,Dt,dn),Re=gt.slice();Re.splice(Wi+1,0,B),qt(Re),Nr(rt),ti("show")}else{var Ue=pe.findIndex(function($e){var at=$e.data.key;return at===Ni.key}),Ye=j(I(pe,gt,Ni.key),Fn,Dt,dn),et=pe.slice();et.splice(Ue+1,0,B),qt(et),Nr(Ye),ti("hide")}else gt!==pe&&(pt(pe),qt(pe))},[Ze,pe]),m.useEffect(function(){mr||$n()},[mr]);var hi=Jt?Mt:pe,Ti={expandedKeys:Ze,selectedKeys:de,loadedKeys:er,loadingKeys:yt,checkedKeys:_t,halfCheckedKeys:Ar,dragOverNodeKey:Pr,dropPosition:gr,keyEntities:Sr};return m.createElement(m.Fragment,null,Xi&&ci&&m.createElement("span",{style:R,"aria-live":"assertive"},z(ci)),m.createElement("div",{role:"tree"},m.createElement("input",{style:R,disabled:Zn===!1||Cn,tabIndex:Zn!==!1?Gn:null,onKeyDown:ei,onFocus:Zt,onBlur:Nt,value:"",onChange:M})),m.createElement(S.a,Object.assign({},tt,{data:hi,itemKey:W,height:Dt,fullHeight:!1,virtual:Fn,itemHeight:dn,prefixCls:"".concat(Ge,"-list"),ref:vt}),function(Ni){var Wi=Ni.pos,rt=Ni.data,Re=rt.key,Ue=Object(b.a)(rt,["key"]),Ye=Ni.isStart,et=Ni.isEnd,$e=Object(g.e)(Re,Wi);delete Ue.children;var at=Object(g.f)($e,Ti);return m.createElement(w,Object.assign({},Ue,at,{active:ci&&Re===ci.data.key,pos:Wi,data:Ni.data,isStart:Ye,isEnd:et,motion:Jt,motionNodes:Re===F?jr:null,motionType:mn,onMotionStart:ke,onMotionEnd:$n,treeNodeRequiredProps:Ti,onMouseMove:function(){Me(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var G=Q,re=n("qOx5"),ee=function(Gt){Object(t.a)(Xt,Gt);var Pt=Object(o.a)(Xt);function Xt(){var Ge;return Object(a.a)(this,Xt),Ge=Pt.apply(this,arguments),Ge.destroyed=!1,Ge.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},Ge.listRef=m.createRef(),Ge.onNodeDragStart=function(pe,se){var lt=Ge.state,Ze=lt.expandedKeys,de=lt.keyEntities,_t=Ge.props.onDragStart,er=se.props.eventKey;Ge.dragNode=se;var yt=Object(d.b)(Ze,er);Ge.setState({dragging:!0,dragNodesKeys:Object(d.g)(er,de)}),Ge.setExpandedKeys(yt),_t&&_t({event:pe,node:Object(g.b)(se.props)})},Ge.onNodeDragEnter=function(pe,se){var lt=Ge.state,Ze=lt.expandedKeys,de=lt.keyEntities,_t=lt.dragNodesKeys,er=Ge.props.onDragEnter,yt=se.props,Ar=yt.pos,Sr=yt.eventKey;if(!Ge.dragNode||_t.indexOf(Sr)!==-1)return;var Cn=Object(d.c)(pe,se);if(Ge.dragNode.props.eventKey===Sr&&Cn===0){Ge.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Ge.setState({dragOverNodeKey:Sr,dropPosition:Cn}),Ge.delayedDragEnterLogic||(Ge.delayedDragEnterLogic={}),Object.keys(Ge.delayedDragEnterLogic).forEach(function(mr){clearTimeout(Ge.delayedDragEnterLogic[mr])}),Ge.delayedDragEnterLogic[Ar]=window.setTimeout(function(){if(!Ge.state.dragging)return;var mr=Object(u.a)(Ze),Pr=de[Sr];Pr&&(Pr.children||[]).length&&(mr=Object(d.a)(Ze,Sr)),"expandedKeys"in Ge.props||Ge.setExpandedKeys(mr),er&&er({event:pe,node:Object(g.b)(se.props),expandedKeys:mr})},400)},0)},Ge.onNodeDragOver=function(pe,se){var lt=Ge.state.dragNodesKeys,Ze=Ge.props.onDragOver,de=se.props.eventKey;if(lt.indexOf(de)!==-1)return;if(Ge.dragNode&&de===Ge.state.dragOverNodeKey){var _t=Object(d.c)(pe,se);if(_t===Ge.state.dropPosition)return;Ge.setState({dropPosition:_t})}Ze&&Ze({event:pe,node:Object(g.b)(se.props)})},Ge.onNodeDragLeave=function(pe,se){var lt=Ge.props.onDragLeave;Ge.setState({dragOverNodeKey:""}),lt&&lt({event:pe,node:Object(g.b)(se.props)})},Ge.onNodeDragEnd=function(pe,se){var lt=Ge.props.onDragEnd;Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),lt&&lt({event:pe,node:Object(g.b)(se.props)}),Ge.dragNode=null},Ge.onNodeDrop=function(pe,se){var lt=Ge.state,Ze=lt.dragNodesKeys,de=Ze===void 0?[]:Ze,_t=lt.dropPosition,er=Ge.props.onDrop,yt=se.props,Ar=yt.eventKey,Sr=yt.pos;if(Ge.setState({dragOverNodeKey:""}),Ge.cleanDragState(),de.indexOf(Ar)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Cn=Object(d.k)(Sr),mr={event:pe,node:Object(g.b)(se.props),dragNode:Ge.dragNode?Object(g.b)(Ge.dragNode.props):null,dragNodesKeys:de.slice(),dropPosition:_t+Number(Cn[Cn.length-1]),dropToGap:!1};_t!==0&&(mr.dropToGap=!0),er&&er(mr),Ge.dragNode=null},Ge.cleanDragState=function(){var pe=Ge.state.dragging;pe&&Ge.setState({dragging:!1})},Ge.onNodeClick=function(pe,se){var lt=Ge.props.onClick;lt&&lt(pe,se)},Ge.onNodeDoubleClick=function(pe,se){var lt=Ge.props.onDoubleClick;lt&&lt(pe,se)},Ge.onNodeSelect=function(pe,se){var lt=Ge.state.selectedKeys,Ze=Ge.state.keyEntities,de=Ge.props,_t=de.onSelect,er=de.multiple,yt=se.selected,Ar=se.key,Sr=!yt;Sr?er?lt=Object(d.a)(lt,Ar):lt=[Ar]:lt=Object(d.b)(lt,Ar);var Cn=lt.map(function(mr){var Pr=Ze[mr];return Pr?Pr.node:null}).filter(function(mr){return mr});Ge.setUncontrolledState({selectedKeys:lt}),_t&&_t(lt,{event:"select",selected:Sr,node:se,selectedNodes:Cn,nativeEvent:pe.nativeEvent})},Ge.onNodeCheck=function(pe,se,lt){var Ze=Ge.state,de=Ze.keyEntities,_t=Ze.checkedKeys,er=Ze.halfCheckedKeys,yt=Ge.props,Ar=yt.checkStrictly,Sr=yt.onCheck,Cn=se.key,mr,Pr={event:"check",node:se,checked:lt,nativeEvent:pe.nativeEvent};if(Ar){var gr=lt?Object(d.a)(_t,Cn):Object(d.b)(_t,Cn),Jt=Object(d.b)(er,Cn);mr={checked:gr,halfChecked:Jt},Pr.checkedNodes=gr.map(function(Xi){return de[Xi]}).filter(function(Xi){return Xi}).map(function(Xi){return Xi.node}),Ge.setUncontrolledState({checkedKeys:gr})}else{var Dt=Object(re.a)([].concat(Object(u.a)(_t),[Cn]),!0,de),dn=Dt.checkedKeys,Fn=Dt.halfCheckedKeys;if(!lt){var Zn=new Set(dn);Zn.delete(Cn);var ci=Object(re.a)(Array.from(Zn),{checked:!1,halfCheckedKeys:Fn},de);dn=ci.checkedKeys,Fn=ci.halfCheckedKeys}mr=dn,Pr.checkedNodes=[],Pr.checkedNodesPositions=[],Pr.halfCheckedKeys=Fn,dn.forEach(function(Xi){var Gn=de[Xi];if(!Gn)return;var ei=Gn.node,Zt=Gn.pos;Pr.checkedNodes.push(ei),Pr.checkedNodesPositions.push({node:ei,pos:Zt})}),Ge.setUncontrolledState({checkedKeys:dn},!1,{halfCheckedKeys:Fn})}Sr&&Sr(mr,Pr)},Ge.onNodeLoad=function(pe){return new Promise(function(se){Ge.setState(function(lt){var Ze=lt.loadedKeys,de=Ze===void 0?[]:Ze,_t=lt.loadingKeys,er=_t===void 0?[]:_t,yt=Ge.props,Ar=yt.loadData,Sr=yt.onLoad,Cn=pe.key;if(!Ar||de.indexOf(Cn)!==-1||er.indexOf(Cn)!==-1)return{};var mr=Ar(pe);return mr.then(function(){var Pr=Ge.state,gr=Pr.loadedKeys,Jt=Pr.loadingKeys,Dt=Object(d.a)(gr,Cn),dn=Object(d.b)(Jt,Cn);Sr&&Sr(Dt,{event:"load",node:pe}),Ge.setUncontrolledState({loadedKeys:Dt}),Ge.setState({loadingKeys:dn}),se()}),{loadingKeys:Object(d.a)(er,Cn)}})})},Ge.onNodeMouseEnter=function(pe,se){var lt=Ge.props.onMouseEnter;lt&&lt({event:pe,node:se})},Ge.onNodeMouseLeave=function(pe,se){var lt=Ge.props.onMouseLeave;lt&&lt({event:pe,node:se})},Ge.onNodeContextMenu=function(pe,se){var lt=Ge.props.onRightClick;lt&&(pe.preventDefault(),lt({event:pe,node:se}))},Ge.onFocus=function(){var pe=Ge.props.onFocus;Ge.setState({focused:!0}),pe&&pe.apply(void 0,arguments)},Ge.onBlur=function(){var pe=Ge.props.onBlur;Ge.setState({focused:!1}),Ge.onActiveChange(null),pe&&pe.apply(void 0,arguments)},Ge.getTreeNodeRequiredProps=function(){var pe=Ge.state,se=pe.expandedKeys,lt=pe.selectedKeys,Ze=pe.loadedKeys,de=pe.loadingKeys,_t=pe.checkedKeys,er=pe.halfCheckedKeys,yt=pe.dragOverNodeKey,Ar=pe.dropPosition,Sr=pe.keyEntities;return{expandedKeys:se||[],selectedKeys:lt||[],loadedKeys:Ze||[],loadingKeys:de||[],checkedKeys:_t||[],halfCheckedKeys:er||[],dragOverNodeKey:yt,dropPosition:Ar,keyEntities:Sr}},Ge.setExpandedKeys=function(pe){var se=Ge.state.treeData,lt=Object(g.d)(se,pe);Ge.setUncontrolledState({expandedKeys:pe,flattenNodes:lt},!0)},Ge.onNodeExpand=function(pe,se){var lt=Ge.state.expandedKeys,Ze=Ge.state.listChanging,de=Ge.props,_t=de.onExpand,er=de.loadData,yt=se.key,Ar=se.expanded;if(Ze)return;var Sr=lt.indexOf(yt),Cn=!Ar;if(Object(l.a)(Ar&&Sr!==-1||!Ar&&Sr===-1,"Expand state not sync with index check"),Cn?lt=Object(d.a)(lt,yt):lt=Object(d.b)(lt,yt),Ge.setExpandedKeys(lt),_t&&_t(lt,{node:se,expanded:Cn,nativeEvent:pe.nativeEvent}),Cn&&er){var mr=Ge.onNodeLoad(se);mr&&mr.then(function(){var Pr=Object(g.d)(Ge.state.treeData,lt);Ge.setUncontrolledState({flattenNodes:Pr})})}},Ge.onListChangeStart=function(){Ge.setUncontrolledState({listChanging:!0})},Ge.onListChangeEnd=function(){setTimeout(function(){Ge.setUncontrolledState({listChanging:!1})})},Ge.onActiveChange=function(pe){var se=Ge.state.activeKey,lt=Ge.props.onActiveChange;if(se===pe)return;Ge.setState({activeKey:pe}),pe!==null&&Ge.scrollTo({key:pe}),lt&&lt(pe)},Ge.getActiveItem=function(){var pe=Ge.state,se=pe.activeKey,lt=pe.flattenNodes;return se===null?null:lt.find(function(Ze){var de=Ze.data.key;return de===se})||null},Ge.offsetActiveKey=function(pe){var se=Ge.state,lt=se.flattenNodes,Ze=se.activeKey,de=lt.findIndex(function(yt){var Ar=yt.data.key;return Ar===Ze});de===-1&&pe<0&&(de=lt.length),de=(de+pe+lt.length)%lt.length;var _t=lt[de];if(_t){var er=_t.data.key;Ge.onActiveChange(er)}else Ge.onActiveChange(null)},Ge.onKeyDown=function(pe){var se=Ge.state,lt=se.activeKey,Ze=se.expandedKeys,de=se.checkedKeys,_t=Ge.props,er=_t.onKeyDown,yt=_t.checkable,Ar=_t.selectable;switch(pe.which){case e.a.UP:{Ge.offsetActiveKey(-1),pe.preventDefault();break}case e.a.DOWN:{Ge.offsetActiveKey(1),pe.preventDefault();break}}var Sr=Ge.getActiveItem();if(Sr&&Sr.data){var Cn=Ge.getTreeNodeRequiredProps(),mr=Sr.data.isLeaf===!1||!!(Sr.data.children||[]).length,Pr=Object(g.b)(Object(h.a)(Object(h.a)({},Object(g.f)(lt,Cn)),{},{data:Sr.data,active:!0}));switch(pe.which){case e.a.LEFT:{mr&&Ze.includes(lt)?Ge.onNodeExpand({},Pr):Sr.parent&&Ge.onActiveChange(Sr.parent.data.key),pe.preventDefault();break}case e.a.RIGHT:{mr&&!Ze.includes(lt)?Ge.onNodeExpand({},Pr):Sr.children&&Sr.children.length&&Ge.onActiveChange(Sr.children[0].data.key),pe.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{yt&&!Pr.disabled&&Pr.checkable!==!1&&!Pr.disableCheckbox?Ge.onNodeCheck({},Pr,!de.includes(lt)):!yt&&Ar&&!Pr.disabled&&Pr.selectable!==!1&&Ge.onNodeSelect({},Pr);break}}}er&&er(pe)},Ge.setUncontrolledState=function(pe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Ge.destroyed)return;var Ze=!1,de=!0,_t={};Object.keys(pe).forEach(function(er){if(er in Ge.props){de=!1;return}Ze=!0,_t[er]=pe[er]}),Ze&&(!se||de)&&Ge.setState(Object(h.a)(Object(h.a)({},_t),lt))},Ge.scrollTo=function(pe){Ge.listRef.current.scrollTo(pe)},Ge}return Object(i.a)(Xt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var pe,se=this.state,lt=se.focused,Ze=se.flattenNodes,de=se.keyEntities,_t=se.dragging,er=se.activeKey,yt=this.props,Ar=yt.prefixCls,Sr=yt.className,Cn=yt.style,mr=yt.showLine,Pr=yt.focusable,gr=yt.tabIndex,Jt=gr===void 0?0:gr,Dt=yt.selectable,dn=yt.showIcon,Fn=yt.icon,Zn=yt.switcherIcon,ci=yt.draggable,Xi=yt.checkable,Gn=yt.checkStrictly,ei=yt.disabled,Zt=yt.motion,Nt=yt.loadData,Me=yt.filterTreeNode,ke=yt.height,Pe=yt.itemHeight,tt=yt.virtual,vt=yt.titleRender,St=yt.onContextMenu,Vt=Object(d.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:Ar,selectable:Dt,showIcon:dn,icon:Fn,switcherIcon:Zn,draggable:ci,checkable:Xi,checkStrictly:Gn,disabled:ei,keyEntities:de,loadData:Nt,filterTreeNode:Me,titleRender:vt,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()(Ar,Sr,(pe={},Object(f.a)(pe,"".concat(Ar,"-show-line"),mr),Object(f.a)(pe,"".concat(Ar,"-focused"),lt),Object(f.a)(pe,"".concat(Ar,"-active-focused"),er!==null),pe))},m.createElement(G,Object.assign({ref:this.listRef,prefixCls:Ar,style:Cn,data:Ze,disabled:ei,selectable:Dt,checkable:!!Xi,motion:Zt,dragging:_t,height:ke,itemHeight:Pe,virtual:tt,focusable:Pr,focused:lt,tabIndex:Jt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:St},this.getTreeNodeRequiredProps(),Vt))))}}],[{key:"getDerivedStateFromProps",value:function(pe,se){var lt=se.prevProps,Ze={prevProps:pe};function de(Fn){return!lt&&Fn in pe||lt&&lt[Fn]!==pe[Fn]}var _t;if(de("treeData")?_t=pe.treeData:de("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_t=Object(g.c)(pe.children)),_t){Ze.treeData=_t;var er=Object(g.a)(_t);Ze.keyEntities=Object(h.a)(Object(f.a)({},F,X),er.keyEntities)}var yt=Ze.keyEntities||se.keyEntities;if(de("expandedKeys")||lt&&de("autoExpandParent"))Ze.expandedKeys=pe.autoExpandParent||!lt&&pe.defaultExpandParent?Object(d.e)(pe.expandedKeys,yt):pe.expandedKeys;else if(!lt&&pe.defaultExpandAll){var Ar=Object(h.a)({},yt);delete Ar[F],Ze.expandedKeys=Object.keys(Ar).map(function(Fn){return Ar[Fn].key})}else!lt&&pe.defaultExpandedKeys&&(Ze.expandedKeys=pe.autoExpandParent||pe.defaultExpandParent?Object(d.e)(pe.defaultExpandedKeys,yt):pe.defaultExpandedKeys);if(Ze.expandedKeys||delete Ze.expandedKeys,_t||Ze.expandedKeys){var Sr=Object(g.d)(_t||se.treeData,Ze.expandedKeys||se.expandedKeys);Ze.flattenNodes=Sr}if(pe.selectable&&(de("selectedKeys")?Ze.selectedKeys=Object(d.d)(pe.selectedKeys,pe):!lt&&pe.defaultSelectedKeys&&(Ze.selectedKeys=Object(d.d)(pe.defaultSelectedKeys,pe))),pe.checkable){var Cn;if(de("checkedKeys")?Cn=Object(d.j)(pe.checkedKeys)||{}:!lt&&pe.defaultCheckedKeys?Cn=Object(d.j)(pe.defaultCheckedKeys)||{}:_t&&(Cn=Object(d.j)(pe.checkedKeys)||{checkedKeys:se.checkedKeys,halfCheckedKeys:se.halfCheckedKeys}),Cn){var mr=Cn,Pr=mr.checkedKeys,gr=Pr===void 0?[]:Pr,Jt=mr.halfCheckedKeys,Dt=Jt===void 0?[]:Jt;if(!pe.checkStrictly){var dn=Object(re.a)(gr,!0,yt);gr=dn.checkedKeys,Dt=dn.halfCheckedKeys}Ze.checkedKeys=gr,Ze.halfCheckedKeys=Dt}}return de("loadedKeys")&&(Ze.loadedKeys=pe.loadedKeys),Ze}}]),Xt}(m.Component);ee.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:[]},ee.TreeNode=C.a;var ue=ee,$=ue,be=n("RIqP"),_e=n.n(be),Ee=n("J4zp"),Xe=n.n(Ee),He=n("sEfC"),nt=n.n(He),Ie=n("vk+C"),oe=n.n(Ie),ot=n("Vy0f"),he=n.n(ot),J=n("kGiB"),Y=n.n(J),q=n("H84U"),fe;(function(Gt){Gt[Gt.None=0]="None",Gt[Gt.Start=1]="Start",Gt[Gt.End=2]="End"})(fe||(fe={}));function we(Gt,Pt){function Xt(Ge){var pe=Ge.key,se=Ge.children;Pt(pe,Ge)!==!1&&we(se||[],Pt)}Gt.forEach(Xt)}function Ne(Gt){var Pt=Gt.treeData,Xt=Gt.expandedKeys,Ge=Gt.startKey,pe=Gt.endKey,se=[],lt=fe.None;if(Ge&&Ge===pe)return[Ge];if(!Ge||!pe)return[];function Ze(de){return de===Ge||de===pe}return we(Pt,function(de){if(lt===fe.End)return!1;if(Ze(de)){if(se.push(de),lt===fe.None)lt=fe.Start;else if(lt===fe.Start)return lt=fe.End,!1}else lt===fe.Start&&se.push(de);return!(Xt.indexOf(de)===-1)}),se}function je(Gt,Pt){var Xt=_e()(Pt),Ge=[];return we(Gt,function(pe,se){var lt=Xt.indexOf(pe);return lt!==-1&&(Ge.push(se),Xt.splice(lt,1)),!!Xt.length}),Ge}var me=function(Gt,Pt){var Xt={};for(var Ge in Gt)Object.prototype.hasOwnProperty.call(Gt,Ge)&&Pt.indexOf(Ge)<0&&(Xt[Ge]=Gt[Ge]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ge=Object.getOwnPropertySymbols(Gt);pe<Ge.length;pe++)Pt.indexOf(Ge[pe])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Ge[pe])&&(Xt[Ge[pe]]=Gt[Ge[pe]]);return Xt};function Ce(Gt){var Pt=Gt.isLeaf,Xt=Gt.expanded;return Pt?m.createElement(oe.a,null):Xt?m.createElement(he.a,null):m.createElement(Y.a,null)}function Fe(Gt){var Pt=Gt.treeData,Xt=Gt.children;return Pt||Object(g.c)(Xt)}var it=function(Pt,Xt){var Ge=Pt.defaultExpandAll,pe=Pt.defaultExpandParent,se=Pt.defaultExpandedKeys,lt=me(Pt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Ze=m.useRef(),de=m.useRef(),_t=m.createRef();m.useImperativeHandle(Xt,function(){return _t.current});var er=function(){var St=Object(g.a)(Fe(lt)),Vt=St.keyEntities,Mr;return Ge?Mr=Object.keys(Vt):pe?Mr=Object(d.e)(lt.expandedKeys||se,Vt):Mr=lt.expandedKeys||se,Mr},yt=m.useState(lt.selectedKeys||lt.defaultSelectedKeys||[]),Ar=Xe()(yt,2),Sr=Ar[0],Cn=Ar[1],mr=m.useState(er()),Pr=Xe()(mr,2),gr=Pr[0],Jt=Pr[1];m.useEffect(function(){"selectedKeys"in lt&&Cn(lt.selectedKeys)},[lt.selectedKeys]),m.useEffect(function(){"expandedKeys"in lt&&Jt(lt.expandedKeys)},[lt.expandedKeys]);var Dt=function(St,Vt){var Mr=Vt.isLeaf;if(Mr||St.shiftKey||St.metaKey||St.ctrlKey)return;_t.current.onNodeExpand(St,Vt)},dn=nt()(Dt,200,{leading:!0}),Fn=function(St,Vt){return"expandedKeys"in lt||Jt(St),lt.onExpand?lt.onExpand(St,Vt):void 0},Zn=function(St,Vt){var Mr=lt.expandAction;Mr==="click"&&dn(St,Vt),lt.onClick&&lt.onClick(St,Vt)},ci=function(St,Vt){var Mr=lt.expandAction;Mr==="doubleClick"&&dn(St,Vt),lt.onDoubleClick&&lt.onDoubleClick(St,Vt)},Xi=function(St,Vt){var Mr=lt.multiple,$r=Vt.node,vn=Vt.nativeEvent,jt=$r.key,gt=jt===void 0?"":jt,pt=Fe(lt),ar=A()(A()({},Vt),{selected:!0}),Ht=vn.ctrlKey||vn.metaKey,Mt=vn.shiftKey,qt;Mr&&Ht?(qt=St,Ze.current=gt,de.current=qt,ar.selectedNodes=je(pt,qt)):Mr&&Mt?(qt=Array.from(new Set([].concat(_e()(de.current||[]),_e()(Ne({treeData:pt,expandedKeys:gr,startKey:gt,endKey:Ze.current}))))),ar.selectedNodes=je(pt,qt)):(qt=[gt],Ze.current=gt,de.current=qt,ar.selectedNodes=je(pt,qt)),lt.onSelect&&lt.onSelect(qt,ar),"selectedKeys"in lt||Cn(qt)},Gn=m.useContext(q.b),ei=Gn.getPrefixCls,Zt=Gn.direction,Nt=lt.prefixCls,Me=lt.className,ke=me(lt,["prefixCls","className"]),Pe=ei("tree",Nt),tt=s()("".concat(Pe,"-directory"),Me,p()({},"".concat(Pe,"-directory-rtl"),Zt==="rtl"));return m.createElement(Yt,A()({icon:Ce,ref:_t,blockNode:!0},ke,{prefixCls:Pe,className:tt,expandedKeys:gr,selectedKeys:Sr,onSelect:Xi,onClick:Zn,onDoubleClick:ci,onExpand:Fn}))},Ct=m.forwardRef(it);Ct.displayName="DirectoryTree",Ct.defaultProps={showIcon:!0,expandAction:"click"};var mt=Ct,Ve=n("EXcs"),or=n("2jpz"),dt=m.forwardRef(function(Gt,Pt){var Xt,Ge=m.useContext(q.b),pe=Ge.getPrefixCls,se=Ge.direction,lt=Ge.virtual,Ze=Gt.prefixCls,de=Gt.className,_t=Gt.showIcon,er=Gt.showLine,yt=Gt.switcherIcon,Ar=Gt.blockNode,Sr=Gt.children,Cn=Gt.checkable,mr=A()(A()({},Gt),{showLine:Boolean(er)}),Pr=pe("tree",Ze);return m.createElement($,A()({itemHeight:20,ref:Pt,virtual:lt},mr,{prefixCls:Pr,className:s()(de,(Xt={},p()(Xt,"".concat(Pr,"-icon-hide"),!_t),p()(Xt,"".concat(Pr,"-block-node"),Ar),p()(Xt,"".concat(Pr,"-rtl"),se==="rtl"),Xt)),checkable:Cn&&m.createElement("span",{className:"".concat(Pr,"-checkbox-inner")}),switcherIcon:function(Jt){return Object(or.a)(Pr,yt,er,Jt)}}),Sr)});dt.TreeNode=C.a,dt.DirectoryTree=mt,dt.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},Ve.a),{motionAppear:!1}),blockNode:!1};var Yt=dt,hr=D.a=Yt},MKOG:function(k,D,n){var y=n("bYtY"),p=n("YH21"),x=p.Dispatcher,A=n("mLcG"),m=n("Bq2U"),f=function(a){a=a||{},this.stage=a.stage||{},this.onframe=a.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,x.call(this)};f.prototype={constructor:f,addClip:function(a){this._clips.push(a)},addAnimator:function(a){a.animation=this;for(var i=a.getClips(),t=0;t<i.length;t++)this.addClip(i[t])},removeClip:function(a){var i=y.indexOf(this._clips,a);i>=0&&this._clips.splice(i,1)},removeAnimator:function(a){for(var i=a.getClips(),t=0;t<i.length;t++)this.removeClip(i[t]);a.animation=null},_update:function(){for(var a=new Date().getTime()-this._pausedTime,i=a-this._time,t=this._clips,o=t.length,e=[],l=[],r=0;r<o;r++){var s=t[r],c=s.step(a,i);c&&(e.push(c),l.push(s))}for(var r=0;r<o;)t[r]._needsRemove?(t[r]=t[o-1],t.pop(),o--):r++;o=e.length;for(var r=0;r<o;r++)l[r].fire(e[r]);this._time=a,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){var a=this;this._running=!0;function i(){a._running&&(A(i),!a._paused&&a._update())}A(i)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(a,i){i=i||{};var t=new m(a,i.loop,i.getter,i.setter);return this.addAnimator(t),t}},y.mixin(f,x);var h=f;k.exports=h},MMmD:function(k,D,n){var y=n("lSCD"),p=n("shjB");function x(A){return A!=null&&p(A.length)&&!y(A)}k.exports=x},MRoa:function(k,D,n){var y=n("ProS");n("0Bwj"),n("W2nI"),n("vcCh");var p=n("gawk"),x=n("Dg8C");y.registerLayout(p),y.registerVisual(x)},MT78:function(k,D,n){var y=n("ProS");(function(){for(var x in y){if(y==null||!y.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=y[x]}})();var p=n("txkQ");(function(){for(var x in p){if(p==null||!p.hasOwnProperty(x)||x==="default"||x==="__esModule")return;D[x]=p[x]}})(),n("A1Ka"),n("75ce"),n("lLGD"),n("wDdD"),n("Fa/5"),n("jett"),n("Z1wy"),n("75ev"),n("2uGb"),n("I+77"),n("B+YJ"),n("pLH3"),n("CBdT"),n("MRoa"),n("+lIL"),n("CF2D"),n("ERHi"),n("p+If"),n("XOKv"),n("qt/9"),n("bBL8"),n("1xaR"),n("4Feb"),n("zRKj"),n("L3Oj"),n("0HBW"),n("LPzL"),n("8waO"),n("k5C7"),n("f1nB"),n("sRwP"),n("AH3D"),n("y4/Y"),n("LzGr"),n("Ynxi"),n("7pVf"),n("2w7y"),n("laiN"),n("fjKi"),n("C0tN"),n("0o9m"),n("Cm0C"),n("f3JH"),n("5NHt"),n("VFCP"),n("dBmv"),n("KamJ"),n("8XDt"),n("juDX")},MXD1:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Kvyg"),A=n.n(x)},MZdM:function(k,D,n){"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(n("Lo0S")),x=f(n("N/zr")),A=n("GdRQ"),m=n("GQ8N");function f(e){return e&&e.__esModule?e:{default:e}}function h(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return h=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=h();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 d=s?Object.getOwnPropertyDescriptor(e,c):null;d&&(d.get||d.set)?Object.defineProperty(r,c,d):r[c]=e[c]}return r.default=e,l&&l.set(e,r),r}function a(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function i(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&&i(e.prototype,l),r&&i(e,r),e}var o=function(){function e(l){if(a(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,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 d=c.x+c.w-1,g=c.y+c.h-1;if(r<0&&c.x+r<0&&(r=-c.x),d+r>=this._fbWidth&&(r-=d+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 d=this._target;d.width=r,d.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 d=null;c.width>0&&c.height>0&&(d=this._drawCtx.getImageData(0,0,c.width,c.height)),c.width!==r&&(c.width=r),c.height!==s&&(c.height=s),d&&this._drawCtx.putImageData(d,0,0)}var g=this._viewportLoc;this.viewportChangeSize(g.w,g.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(r,s,c,d){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+d>this._damageBounds.bottom&&(this._damageBounds.bottom=s+d)}},{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,d=this._damageBounds.right-s,g=this._damageBounds.bottom-c,v=s-this._viewportLoc.x,b=c-this._viewportLoc.y;v<0&&(d+=v,s-=v,v=0),b<0&&(g+=b,c-=b,b=0),v+d>this._viewportLoc.w&&(d=this._viewportLoc.w-v),b+g>this._viewportLoc.h&&(g=this._viewportLoc.h-b),d>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,s,c,d,g,v,b,d,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,d,g,v){this._renderQ.length!==0&&!v?this._renderQPush({type:"fill",x:r,y:s,width:c,height:d,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(r,s,c,d),this._damage(r,s,c,d))}},{key:"copyImage",value:function(r,s,c,d,g,v,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:s,x:c,y:d,width:g,height:v}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,r,s,g,v,c,d,g,v),this._damage(c,d,g,v))}},{key:"imageRect",value:function(r,s,c,d,g,v){if(c===0||d===0)return;var b=new Image;b.src="data: "+g+";base64,"+x.default.encode(v),this._renderQPush({type:"img",img:b,x:r,y:s,width:c,height:d})}},{key:"startTile",value:function(r,s,c,d,g){this._tileX=r,this._tileY=s,c===16&&d===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,d);for(var v=g[2],b=g[1],S=g[0],E=this._tile.data,C=0;C<c*d*4;C+=4)E[C]=v,E[C+1]=b,E[C+2]=S,E[C+3]=255}},{key:"subTile",value:function(r,s,c,d,g){for(var v=g[2],b=g[1],S=g[0],E=r+c,C=s+d,_=this._tile.data,T=this._tile.width,w=s;w<C;w++)for(var O=r;O<E;O++){var I=(O+w*T)*4;_[I]=v,_[I+1]=b,_[I+2]=S,_[I+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(r,s,c,d,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*d*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blit",data:S,x:r,y:s,width:c,height:d})}else this._bgrxImageData(r,s,c,d,g,v)}},{key:"blitRgbImage",value:function(r,s,c,d,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*d*3);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgb",data:S,x:r,y:s,width:c,height:d})}else this._rgbImageData(r,s,c,d,g,v)}},{key:"blitRgbxImage",value:function(r,s,c,d,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*d*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgbx",data:S,x:r,y:s,width:c,height:d})}else this._rgbxImageData(r,s,c,d,g,v)}},{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 d=this._viewportLoc,g=r/s,v=d.w/d.h;v>=g?c=r/d.w:c=s/d.h}this._rescale(c)}},{key:"_rescale",value:function(r){this._scale=r;var s=this._viewportLoc,c=r*s.w+"px",d=r*s.h+"px";(this._target.style.width!==c||this._target.style.height!==d)&&(this._target.style.width=c,this._target.style.height=d)}},{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,d,g,v){for(var b=this._drawCtx.createImageData(c,d),S=b.data,E=0,C=v;E<c*d*4;E+=4,C+=3)S[E]=g[C],S[E+1]=g[C+1],S[E+2]=g[C+2],S[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,s,c,d,g,v){for(var b=this._drawCtx.createImageData(c,d),S=b.data,E=0,C=v;E<c*d*4;E+=4,C+=4)S[E]=g[C+2],S[E+1]=g[C+1],S[E+2]=g[C],S[E+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,s,c,d,g,v){var b;A.supportsImageMetadata?b=new ImageData(new Uint8ClampedArray(g.buffer,g.byteOffset,c*d*4),c,d):(b=this._drawCtx.createImageData(c,d),b.data.set(new Uint8ClampedArray(g.buffer,g.byteOffset,c*d*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=o},Mdki:function(k,D,n){var y=n("bYtY"),p=y.each,x="\0__link_datas",A="\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(d){c.wrapMethod(d,y.curry(f,l))})}),r.wrapMethod("cloneShallow",y.curry(u,l)),p(r.CHANGABLE_METHODS,function(c){r.wrapMethod(c,y.curry(h,l))}),y.assert(s[r.dataType]===r)}function f(l,r){if(i(this)){var s=y.extend({},this[x]);s[this.dataType]=r,t(r,s,l)}else o(r,this.dataType,this[A],l);return r}function h(l,r){return l.struct&&l.struct.update(this),r}function u(l,r){return p(r[x],function(s,c){s!==r&&o(s.cloneShallow(),c,r,l)}),r}function a(l){var r=this[A];return l==null||r==null?r:r[x][l]}function i(l){return l[A]===l}function t(l,r,s){l[x]={},p(r,function(c,d){o(c,d,l,s)})}function o(l,r,s,c){s[x][r]=l,l[A]=s,l.dataType=r,c.struct&&(l[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=l),l.getLinkedData=a}var e=m;k.exports=e},Mds0:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("8IMR")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="StarFilled";var i=A.forwardRef(a);D.default=i},Mgri:function(k,D,n){for(var y=n("bYtY"),p=n("8nly"),x=[126,25],A=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],m=0;m<A.length;m++)for(var f=0;f<A[m].length;f++)A[m][f][0]/=10.5,A[m][f][1]/=-10.5/.75,A[m][f][0]+=x[0],A[m][f][1]+=x[1];function h(u,a){u==="china"&&a.push(new p("\u5357\u6D77\u8BF8\u5C9B",y.map(A,function(i){return{type:"polygon",exterior:i}}),x))}k.exports=h},MlIO:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.Base,f=A.WordArray,h=x.x64={},u=h.Word=m.extend({init:function(t,o){this.high=t,this.low=o}}),a=h.WordArray=m.extend({init:function(t,o){t=this.words=t||[],o!=p?this.sigBytes=o:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,o=t.length,e=[],l=0;l<o;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),o=t.words=this.words.slice(0),e=o.length,l=0;l<e;l++)o[l]=o[l].clone();return t}})}(),y})},Mmt2:function(k,D,n){"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=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return x=function(){return t},t}function A(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var o=x();if(o&&o.has(t))return o.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,o&&o.set(t,e),e}function m(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function f(t,o){for(var e=0;e<o.length;e++){var l=o[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function h(t,o,e){return o&&f(t.prototype,o),e&&f(t,e),t}var u=!1,a=40*1024*1024,i=function(){function t(){m(this,t),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return h(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>a&&(this._rQbufferSize=a,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+a+" bytes, and the new message could not fit");if(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=i},MqEG:function(k,D,n){var y=n("bYtY"),p=n("fc+c"),x=n("72pK"),A=n("VXYp"),m=y.bind,f=p.extend({type:"dataZoom.inside",init:function(t,o){this._range},render:function(t,o,e,l){f.superApply(this,"render",arguments),this._range=t.getPercentRange(),y.each(this.getTargetCoordInfo(),function(r,s){var c=y.map(r,function(d){return A.generateCoordId(d.model)});y.each(r,function(d){var g=d.model,v={};y.each(["pan","zoom","scrollMove"],function(b){v[b]=m(h[b],this,d,s)},this),A.register(e,{coordId:A.generateCoordId(g),allCoordIds:c,containsPoint:function(b,S,E){return g.coordinateSystem.containPoint([S,E])},dataZoomId:t.id,dataZoomModel:t,getRange:v})},this)},this)},dispose:function(){A.unregister(this.api,this.dataZoomModel.id),f.superApply(this,"dispose",arguments),this._range=null}}),h={zoom:function(t,o,e,l){var r=this._range,s=r.slice(),c=t.axisModels[0];if(!c)return;var d=a[o](null,[l.originX,l.originY],c,e,t),g=(d.signal>0?d.pixelStart+d.pixelLength-d.pixel:d.pixel-d.pixelStart)/d.pixelLength*(s[1]-s[0])+s[0],v=Math.max(1/l.scale,0);s[0]=(s[0]-g)*v+g,s[1]=(s[1]-g)*v+g;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x(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,o,e,l,r,s){var c=a[l]([s.oldX,s.oldY],[s.newX,s.newY],o,r,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:u(function(t,o,e,l,r,s){var c=a[l]([0,0],[s.scrollDelta,s.scrollDelta],o,r,e);return c.signal*(t[1]-t[0])*s.scrollDelta})};function u(t){return function(o,e,l,r){var s=this._range,c=s.slice(),d=o.axisModels[0];if(!d)return;var g=t(c,d,o,e,l,r);if(x(g,c,[0,100],"all"),this._range=c,s[0]!==c[0]||s[1]!==c[1])return c}}var a={grid:function(t,o,e,l,r){var s=e.axis,c={},d=r.model.coordinateSystem.getRect();return t=t||[0,0],s.dim==="x"?(c.pixel=o[0]-t[0],c.pixelLength=d.width,c.pixelStart=d.x,c.signal=s.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=d.height,c.pixelStart=d.y,c.signal=s.inverse?-1:1),c},polar:function(t,o,e,l,r){var s=e.axis,c={},d=r.model.coordinateSystem,g=d.getRadiusAxis().getExtent(),v=d.getAngleAxis().getExtent();return t=t?d.pointToCoord(t):[0,0],o=d.pointToCoord(o),e.mainType==="radiusAxis"?(c.pixel=o[0]-t[0],c.pixelLength=g[1]-g[0],c.pixelStart=g[0],c.signal=s.inverse?1:-1):(c.pixel=o[1]-t[1],c.pixelLength=v[1]-v[0],c.pixelStart=v[0],c.signal=s.inverse?-1:1),c},singleAxis:function(t,o,e,l,r){var s=e.axis,c=r.model.coordinateSystem.getRect(),d={};return t=t||[0,0],s.orient==="horizontal"?(d.pixel=o[0]-t[0],d.pixelLength=c.width,d.pixelStart=c.x,d.signal=s.inverse?1:-1):(d.pixel=o[1]-t[1],d.pixelLength=c.height,d.pixelStart=c.y,d.signal=s.inverse?-1:1),d}},i=f;k.exports=i},MvSz:function(k,D,n){var y=n("LXxW"),p=n("0ycA"),x=Object.prototype,A=x.propertyIsEnumerable,m=Object.getOwnPropertySymbols,f=m?function(h){return h==null?[]:(h=Object(h),y(m(h),function(u){return A.call(h,u)}))}:p;k.exports=f},MwEJ:function(k,D,n){var y=n("bYtY"),p=n("YXkt"),x=n("sdST"),A=n("k9D9"),m=A.SOURCE_FORMAT_ORIGINAL,f=n("L0Ub"),h=f.getDimensionTypeByAxis,u=n("4NO4"),a=u.getDataItemValue,i=n("IDmD"),t=n("i38C"),o=t.getCoordSysInfoBySeries,e=n("7G+c"),l=n("7hqr"),r=l.enableDataStack,s=n("D5nY"),c=s.makeSeriesEncodeForAxisCoordSys;function d(S,E,C){C=C||{},e.isInstance(S)||(S=e.seriesDataToSource(S));var _=E.get("coordinateSystem"),T=i.get(_),w=o(E),O;w&&(O=y.map(w.coordSysDims,function(B){var j={name:B},W=w.axisMap.get(B);if(W){var z=W.get("type");j.type=h(z)}return j})),O||(O=T&&(T.getDimensionsInfo?T.getDimensionsInfo():T.dimensions.slice())||["x","y"]);var I=x(S,{coordDimensions:O,generateCoord:C.generateCoord,encodeDefaulter:C.useEncodeDefaulter?y.curry(c,O,E):null}),R,M;w&&y.each(I,function(B,j){var W=B.coordDim,z=w.categoryAxisMap.get(W);z&&(R==null&&(R=j),B.ordinalMeta=z.getOrdinalMeta()),B.otherDims.itemName!=null&&(M=!0)}),!M&&R!=null&&(I[R].otherDims.itemName=0);var F=r(E,I),P=new p(I,E);P.setCalculationInfo(F);var X=R!=null&&g(S)?function(B,j,W,z){return z===R?W:this.defaultDimValueGetter(B,j,W,z)}:null;return P.hasItemOption=!1,P.initData(S,null,X),P}function g(S){if(S.sourceFormat===m){var E=v(S.data||[]);return E!=null&&!y.isArray(a(E))}}function v(S){for(var E=0;E<S.length&&S[E]==null;)E++;return S[E]}var b=d;k.exports=b},Mylv:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("oVpE"),m=A.createSymbol,f=n("OELB"),h=f.parsePercent,u=f.isNumeric,a=n("56rv"),i=a.setLabel,t=["itemStyle","borderWidth"],o=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new x.Circle,l=y.extendChartView({type:"pictorialBar",render:function(V,Q,G){var re=this.group,ee=V.getData(),ue=this._data,$=V.coordinateSystem,be=$.getBaseAxis(),_e=!!be.isHorizontal(),Ee=$.grid.getRect(),Xe={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:$,coordSysExtent:[[Ee.x,Ee.x+Ee.width],[Ee.y,Ee.y+Ee.height]],isHorizontal:_e,valueDim:o[+_e],categoryDim:o[1-_e]};return ee.diff(ue).add(function(He){if(!ee.hasValue(He))return;var nt=T(ee,He),Ie=r(ee,He,nt,Xe),oe=R(ee,Xe,Ie);ee.setItemGraphicEl(He,oe),re.add(oe),j(oe,Xe,Ie)}).update(function(He,nt){var Ie=ue.getItemGraphicEl(nt);if(!ee.hasValue(He)){re.remove(Ie);return}var oe=T(ee,He),ot=r(ee,He,oe,Xe),he=P(ee,ot);Ie&&he!==Ie.__pictorialShapeStr&&(re.remove(Ie),ee.setItemGraphicEl(He,null),Ie=null),Ie?M(Ie,Xe,ot):Ie=R(ee,Xe,ot,!0),ee.setItemGraphicEl(He,Ie),Ie.__pictorialSymbolMeta=ot,re.add(Ie),j(Ie,Xe,ot)}).remove(function(He){var nt=ue.getItemGraphicEl(He);nt&&F(ue,He,nt.__pictorialSymbolMeta.animationModel,nt)}).execute(),this._data=ee,this.group},dispose:p.noop,remove:function(V,Q){var G=this.group,re=this._data;V.get("animation")?re&&re.eachItemGraphicEl(function(ee){F(re,ee.dataIndex,V,ee)}):G.removeAll()}});function r(V,Q,G,re){var ee=V.getItemLayout(Q),ue=G.get("symbolRepeat"),$=G.get("symbolClip"),be=G.get("symbolPosition")||"start",_e=G.get("symbolRotate"),Ee=(_e||0)*Math.PI/180||0,Xe=G.get("symbolPatternSize")||2,He=G.isAnimationEnabled(),nt={dataIndex:Q,layout:ee,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:$,symbolRepeat:ue,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:Xe,rotation:Ee,animationModel:He?G:null,hoverAnimation:He&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};s(G,ue,ee,re,nt),d(V,Q,ee,ue,$,nt.boundingLength,nt.pxSign,Xe,re,nt),g(G,nt.symbolScale,Ee,re,nt);var Ie=nt.symbolSize,oe=G.get("symbolOffset");return p.isArray(oe)&&(oe=[h(oe[0],Ie[0]),h(oe[1],Ie[1])]),v(G,Ie,ee,ue,$,oe,be,nt.valueLineWidth,nt.boundingLength,nt.repeatCutLength,re,nt),nt}function s(V,Q,G,re,ee){var ue=re.valueDim,$=V.get("symbolBoundingData"),be=re.coordSys.getOtherAxis(re.coordSys.getBaseAxis()),_e=be.toGlobalCoord(be.dataToCoord(0)),Ee=1-+(G[ue.wh]<=0),Xe;if(p.isArray($)){var He=[c(be,$[0])-_e,c(be,$[1])-_e];He[1]<He[0]&&He.reverse(),Xe=He[Ee]}else $!=null?Xe=c(be,$)-_e:Q?Xe=re.coordSysExtent[ue.index][Ee]-_e:Xe=G[ue.wh];ee.boundingLength=Xe,Q&&(ee.repeatCutLength=G[ue.wh]),ee.pxSign=Xe>0?1:Xe<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function d(V,Q,G,re,ee,ue,$,be,_e,Ee){var Xe=_e.valueDim,He=_e.categoryDim,nt=Math.abs(G[He.wh]),Ie=V.getItemVisual(Q,"symbolSize");p.isArray(Ie)?Ie=Ie.slice():(Ie==null&&(Ie="100%"),Ie=[Ie,Ie]),Ie[He.index]=h(Ie[He.index],nt),Ie[Xe.index]=h(Ie[Xe.index],re?nt:Math.abs(ue)),Ee.symbolSize=Ie;var oe=Ee.symbolScale=[Ie[0]/be,Ie[1]/be];oe[Xe.index]*=(_e.isHorizontal?-1:1)*$}function g(V,Q,G,re,ee){var ue=V.get(t)||0;ue&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),ue/=e.getLineScale(),ue*=Q[re.valueDim.index]),ee.valueLineWidth=ue}function v(V,Q,G,re,ee,ue,$,be,_e,Ee,Xe,He){var nt=Xe.categoryDim,Ie=Xe.valueDim,oe=He.pxSign,ot=Math.max(Q[Ie.index]+be,0),he=ot;if(re){var J=Math.abs(_e),Y=p.retrieve(V.get("symbolMargin"),"15%")+"",q=!1;Y.lastIndexOf("!")===Y.length-1&&(q=!0,Y=Y.slice(0,Y.length-1)),Y=h(Y,Q[Ie.index]);var fe=Math.max(ot+Y*2,0),we=q?0:Y*2,Ne=u(re),je=Ne?re:W((J+we)/fe),me=J-je*ot;Y=me/2/(q?je:je-1),fe=ot+Y*2,we=q?0:Y*2,!Ne&&re!=="fixed"&&(je=Ee?W((Math.abs(Ee)+we)/fe):0),he=je*fe-we,He.repeatTimes=je,He.symbolMargin=Y}var Ce=oe*(he/2),Fe=He.pathPosition=[];Fe[nt.index]=G[nt.wh]/2,Fe[Ie.index]=$==="start"?Ce:$==="end"?_e-Ce:_e/2,ue&&(Fe[0]+=ue[0],Fe[1]+=ue[1]);var it=He.bundlePosition=[];it[nt.index]=G[nt.xy],it[Ie.index]=G[Ie.xy];var Ct=He.barRectShape=p.extend({},G);Ct[Ie.wh]=oe*Math.max(Math.abs(G[Ie.wh]),Math.abs(Fe[Ie.index]+Ce)),Ct[nt.wh]=G[nt.wh];var mt=He.clipShape={};mt[nt.xy]=-G[nt.xy],mt[nt.wh]=Xe.ecSize[nt.wh],mt[Ie.xy]=0,mt[Ie.wh]=G[Ie.wh]}function b(V){var Q=V.symbolPatternSize,G=m(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return G.attr({culling:!0}),G.type!=="image"&&G.setStyle({strokeNoScale:!0}),G}function S(V,Q,G,re){var ee=V.__pictorialBundle,ue=G.symbolSize,$=G.valueLineWidth,be=G.pathPosition,_e=Q.valueDim,Ee=G.repeatTimes||0,Xe=0,He=ue[Q.valueDim.index]+$+G.symbolMargin*2;for(X(V,function(J){J.__pictorialAnimationIndex=Xe,J.__pictorialRepeatTimes=Ee,Xe<Ee?B(J,null,oe(Xe),G,re):B(J,null,{scale:[0,0]},G,re,function(){ee.remove(J)}),I(J,G),Xe++});Xe<Ee;Xe++){var nt=b(G);nt.__pictorialAnimationIndex=Xe,nt.__pictorialRepeatTimes=Ee,ee.add(nt);var Ie=oe(Xe);B(nt,{position:Ie.position,scale:[0,0]},{scale:Ie.scale,rotation:Ie.rotation},G,re),nt.on("mouseover",ot).on("mouseout",he),I(nt,G)}function oe(J){var Y=be.slice(),q=G.pxSign,fe=J;return(G.symbolRepeatDirection==="start"?q>0:q<0)&&(fe=Ee-1-J),Y[_e.index]=He*(fe-Ee/2+.5)+be[_e.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function ot(){X(V,function(J){J.trigger("emphasis")})}function he(){X(V,function(J){J.trigger("normal")})}}function E(V,Q,G,re){var ee=V.__pictorialBundle,ue=V.__pictorialMainPath;ue?B(ue,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,re):(ue=V.__pictorialMainPath=b(G),ee.add(ue),B(ue,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,re),ue.on("mouseover",$).on("mouseout",be)),I(ue,G);function $(){this.trigger("emphasis")}function be(){this.trigger("normal")}}function C(V,Q,G){var re=p.extend({},Q.barRectShape),ee=V.__pictorialBarRect;ee?B(ee,null,{shape:re},Q,G):(ee=V.__pictorialBarRect=new x.Rect({z2:2,shape:re,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add(ee))}function _(V,Q,G,re){if(G.symbolClip){var ee=V.__pictorialClipPath,ue=p.extend({},G.clipShape),$=Q.valueDim,be=G.animationModel,_e=G.dataIndex;if(ee)x.updateProps(ee,{shape:ue},be,_e);else{ue[$.wh]=0,ee=new x.Rect({shape:ue}),V.__pictorialBundle.setClipPath(ee),V.__pictorialClipPath=ee;var Ee={};Ee[$.wh]=G.clipShape[$.wh],x[re?"updateProps":"initProps"](ee,{shape:Ee},be,_e)}}}function T(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=w,G.isAnimationEnabled=O,G}function w(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(V,Q){V.off("emphasis").off("normal");var G=Q.symbolScale.slice();Q.hoverAnimation&&V.on("emphasis",function(){this.animateTo({scale:[G[0]*1.1,G[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:G.slice()},400,"elasticOut")})}function R(V,Q,G,re){var ee=new x.Group,ue=new x.Group;return ee.add(ue),ee.__pictorialBundle=ue,ue.attr("position",G.bundlePosition.slice()),G.symbolRepeat?S(ee,Q,G):E(ee,Q,G),C(ee,G,re),_(ee,Q,G,re),ee.__pictorialShapeStr=P(V,G),ee.__pictorialSymbolMeta=G,ee}function M(V,Q,G){var re=G.animationModel,ee=G.dataIndex,ue=V.__pictorialBundle;x.updateProps(ue,{position:G.bundlePosition.slice()},re,ee),G.symbolRepeat?S(V,Q,G,!0):E(V,Q,G,!0),C(V,G,!0),_(V,Q,G,!0)}function F(V,Q,G,re){var ee=re.__pictorialBarRect;ee&&(ee.style.text=null);var ue=[];X(re,function($){ue.push($)}),re.__pictorialMainPath&&ue.push(re.__pictorialMainPath),re.__pictorialClipPath&&(G=null),p.each(ue,function($){x.updateProps($,{scale:[0,0]},G,Q,function(){re.parent&&re.parent.remove(re)})}),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(re){re!==V.__pictorialBarRect&&Q.call(G,re)})}function B(V,Q,G,re,ee,ue){Q&&V.attr(Q),re.symbolClip&&!ee?G&&V.attr(G):G&&x[ee?"updateProps":"initProps"](V,G,re.animationModel,re.dataIndex,ue)}function j(V,Q,G){var re=G.color,ee=G.dataIndex,ue=G.itemModel,$=ue.getModel("itemStyle").getItemStyle(["color"]),be=ue.getModel("emphasis.itemStyle").getItemStyle(),_e=ue.getShallow("cursor");X(V,function(nt){nt.setColor(re),nt.setStyle(p.defaults({fill:re,opacity:G.opacity},$)),x.setHoverStyle(nt,be),_e&&(nt.cursor=_e),nt.z2=G.z2});var Ee={},Xe=Q.valueDim.posDesc[+(G.boundingLength>0)],He=V.__pictorialBarRect;i(He.style,Ee,ue,re,Q.seriesModel,ee,Xe),x.setHoverStyle(He,Ee)}function W(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var z=l;k.exports=z},"N/zr":function(k,D,n){"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=A(n("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return x=function(){return f},f}function A(f){if(f&&f.__esModule)return f;if(f===null||y(f)!=="object"&&typeof f!="function")return{default:f};var h=x();if(h&&h.has(f))return h.get(f);var u={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in f)if(Object.prototype.hasOwnProperty.call(f,i)){var t=a?Object.getOwnPropertyDescriptor(f,i):null;t&&(t.get||t.set)?Object.defineProperty(u,i,t):u[i]=f[i]}return u.default=f,h&&h.set(f,u),u}var m={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(h){"use strict";for(var u="",a=h.length,i=a%3,t=0;t<a-2;t+=3)u+=this.toBase64Table[h[t]>>2],u+=this.toBase64Table[((h[t]&3)<<4)+(h[t+1]>>4)],u+=this.toBase64Table[((h[t+1]&15)<<2)+(h[t+2]>>6)],u+=this.toBase64Table[h[t+2]&63];var o=a-i;return i===2?(u+=this.toBase64Table[h[o]>>2],u+=this.toBase64Table[((h[o]&3)<<4)+(h[o+1]>>4)],u+=this.toBase64Table[(h[o+1]&15)<<2],u+=this.toBase64Table[64]):i===1&&(u+=this.toBase64Table[h[o]>>2],u+=this.toBase64Table[(h[o]&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(h){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=h.indexOf("=")-u;a<0&&(a=h.length-u);for(var i=(a>>2)*3+Math.floor(a%4/1.5),t=new Array(i),o=0,e=0,l=0,r=u;r<h.length;r++){var s=this.toBinaryTable[h.charCodeAt(r)&127],c=h.charAt(r)===this.base64Pad;if(s===-1){p.Error("Illegal character code "+h.charCodeAt(r)+" at position "+r);continue}e=e<<6|s,o+=6,o>=8&&(o-=8,c||(t[l++]=e>>o&255),e&=(1<<o)-1)}if(o){var d=new Error("Corrupted base64 string");throw d.name="Base64-Error",d}return t}};D.default=m},N5BQ:function(k,D,n){var y=n("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"}}}),x=p;k.exports=x},NA0q:function(k,D,n){var y=n("bYtY"),p=n("6Ic6"),x=n("TkdX"),A=n("gPAo"),m=n("7aKB"),f=m.windowOpen,h="sunburstRootToNode",u=p.extend({type:"sunburst",init:function(){},render:function(i,t,o,e){var l=this;this.seriesModel=i,this.api=o,this.ecModel=t;var r=i.getData(),s=r.tree.root,c=i.getViewRoot(),d=this.group,g=i.get("renderLabelForZeroData"),v=[];c.eachNode(function(O){v.push(O)});var b=this._oldChildren||[];if(C(v,b),w(s,c),e&&e.highlight&&e.highlight.piece){var S=i.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(S)}else if(e&&e.unhighlight){var E=this.virtualPiece;!E&&s.children.length&&(E=s.children[0].piece),E&&E.onNormal()}this._initEvents(),this._oldChildren=v;function C(O,I){if(O.length===0&&I.length===0)return;new A(I,O,R,R).add(M).update(M).remove(y.curry(M,null)).execute();function R(F){return F.getId()}function M(F,P){var X=F==null?null:O[F],B=P==null?null:I[P];_(X,B)}}function _(O,I){if(!g&&O&&!O.getValue()&&(O=null),O!==s&&I!==s){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",i,t),r.setItemGraphicEl(O.dataIndex,I.piece)):T(I);else if(O){var R=new x(O,i,t);d.add(R),r.setItemGraphicEl(O.dataIndex,R)}}}function T(O){if(!O)return;O.piece&&(d.remove(O.piece),O.piece=null)}function w(O,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,O,"normal",i,t):(l.virtualPiece=new x(O,i,t),d.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var R=function(M){l._rootToNode(I.parentNode)};I.piece._onclickEvent=R,l.virtualPiece.on("click",R)}else l.virtualPiece&&(d.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var i=this,t=function(o){var e=!1,l=i.seriesModel.getViewRoot();l.eachNode(function(r){if(!e&&r.piece&&r.piece.childAt(0)===o.target){var s=r.getModel().get("nodeClick");if(s==="rootToNode")i._rootToNode(r);else if(s==="link"){var c=r.getModel(),d=c.get("link");if(d){var g=c.get("target",!0)||"_blank";f(d,g)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(i){i!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:h,from:this.uid,seriesId:this.seriesModel.id,targetNode:i})},containPoint:function(i,t){var o=t.getData(),e=o.getItemLayout(0);if(e){var l=i[0]-e.cx,r=i[1]-e.cy,s=Math.sqrt(l*l+r*r);return s<=e.r&&s>=e.r0}}}),a=u;k.exports=a},NAnI:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("wXyp"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},NBmB:function(k,D,n){"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(x){switch(x){case y.encodingRaw:return"Raw";case y.encodingCopyRect:return"CopyRect";case y.encodingRRE:return"RRE";case y.encodingHextile:return"Hextile";case y.encodingTight:return"Tight";case y.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+x+"]"}}},NC18:function(k,D,n){var y=n("y+Vt"),p=n("IMiH"),x=n("7oTu"),A=Math.sqrt,m=Math.sin,f=Math.cos,h=Math.PI,u=function(v){return Math.sqrt(v[0]*v[0]+v[1]*v[1])},a=function(v,b){return(v[0]*b[0]+v[1]*b[1])/(u(v)*u(b))},i=function(v,b){return(v[0]*b[1]<v[1]*b[0]?-1:1)*Math.acos(a(v,b))};function t(g,v,b,S,E,C,_,T,w,O,I){var R=w*(h/180),M=f(R)*(g-b)/2+m(R)*(v-S)/2,F=-1*m(R)*(g-b)/2+f(R)*(v-S)/2,P=M*M/(_*_)+F*F/(T*T);P>1&&(_*=A(P),T*=A(P));var X=(E===C?-1:1)*A((_*_*(T*T)-_*_*(F*F)-T*T*(M*M))/(_*_*(F*F)+T*T*(M*M)))||0,B=X*_*F/T,j=X*-T*M/_,W=(g+b)/2+f(R)*B-m(R)*j,z=(v+S)/2+m(R)*B+f(R)*j,V=i([1,0],[(M-B)/_,(F-j)/T]),Q=[(M-B)/_,(F-j)/T],G=[(-1*M-B)/_,(-1*F-j)/T],re=i(Q,G);a(Q,G)<=-1&&(re=h),a(Q,G)>=1&&(re=0),C===0&&re>0&&(re=re-2*h),C===1&&re<0&&(re=re+2*h),I.addData(O,W,z,_,T,V,re,R,C)}var o=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(g){if(!g)return new p;for(var v=0,b=0,S=v,E=b,C,_=new p,T=p.CMD,w=g.match(o),O=0;O<w.length;O++){for(var I=w[O],R=I.charAt(0),M,F=I.match(e)||[],P=F.length,X=0;X<P;X++)F[X]=parseFloat(F[X]);for(var B=0;B<P;){var j,W,z,V,Q,G,re,ee=v,ue=b;switch(R){case"l":v+=F[B++],b+=F[B++],M=T.L,_.addData(M,v,b);break;case"L":v=F[B++],b=F[B++],M=T.L,_.addData(M,v,b);break;case"m":v+=F[B++],b+=F[B++],M=T.M,_.addData(M,v,b),S=v,E=b,R="l";break;case"M":v=F[B++],b=F[B++],M=T.M,_.addData(M,v,b),S=v,E=b,R="L";break;case"h":v+=F[B++],M=T.L,_.addData(M,v,b);break;case"H":v=F[B++],M=T.L,_.addData(M,v,b);break;case"v":b+=F[B++],M=T.L,_.addData(M,v,b);break;case"V":b=F[B++],M=T.L,_.addData(M,v,b);break;case"C":M=T.C,_.addData(M,F[B++],F[B++],F[B++],F[B++],F[B++],F[B++]),v=F[B-2],b=F[B-1];break;case"c":M=T.C,_.addData(M,F[B++]+v,F[B++]+b,F[B++]+v,F[B++]+b,F[B++]+v,F[B++]+b),v+=F[B-2],b+=F[B-1];break;case"S":j=v,W=b;var $=_.len(),be=_.data;C===T.C&&(j+=v-be[$-4],W+=b-be[$-3]),M=T.C,ee=F[B++],ue=F[B++],v=F[B++],b=F[B++],_.addData(M,j,W,ee,ue,v,b);break;case"s":j=v,W=b;var $=_.len(),be=_.data;C===T.C&&(j+=v-be[$-4],W+=b-be[$-3]),M=T.C,ee=v+F[B++],ue=b+F[B++],v+=F[B++],b+=F[B++],_.addData(M,j,W,ee,ue,v,b);break;case"Q":ee=F[B++],ue=F[B++],v=F[B++],b=F[B++],M=T.Q,_.addData(M,ee,ue,v,b);break;case"q":ee=F[B++]+v,ue=F[B++]+b,v+=F[B++],b+=F[B++],M=T.Q,_.addData(M,ee,ue,v,b);break;case"T":j=v,W=b;var $=_.len(),be=_.data;C===T.Q&&(j+=v-be[$-4],W+=b-be[$-3]),v=F[B++],b=F[B++],M=T.Q,_.addData(M,j,W,v,b);break;case"t":j=v,W=b;var $=_.len(),be=_.data;C===T.Q&&(j+=v-be[$-4],W+=b-be[$-3]),v+=F[B++],b+=F[B++],M=T.Q,_.addData(M,j,W,v,b);break;case"A":z=F[B++],V=F[B++],Q=F[B++],G=F[B++],re=F[B++],ee=v,ue=b,v=F[B++],b=F[B++],M=T.A,t(ee,ue,v,b,G,re,z,V,Q,M,_);break;case"a":z=F[B++],V=F[B++],Q=F[B++],G=F[B++],re=F[B++],ee=v,ue=b,v+=F[B++],b+=F[B++],M=T.A,t(ee,ue,v,b,G,re,z,V,Q,M,_);break}}(R==="z"||R==="Z")&&(M=T.Z,_.addData(M),v=S,b=E),C=M}return _.toStatic(),_}function r(g,v){var b=l(g);return v=v||{},v.buildPath=function(S){if(S.setData){S.setData(b.data);var E=S.getContext();E&&S.rebuildPath(E)}else{var E=S;b.rebuildPath(E)}},v.applyTransform=function(S){x(b,S),this.dirty(!0)},v}function s(g,v){return new y(r(g,v))}function c(g,v){return y.extend(r(g,v))}function d(g,v){for(var b=[],S=g.length,E=0;E<S;E++){var C=g[E];C.path||C.createPathProxy(),C.__dirtyPath&&C.buildPath(C.path,C.shape,!0),b.push(C.path)}var _=new y(v);return _.createPathProxy(),_.buildPath=function(T){T.appendPath(b);var w=T.getContext();w&&T.rebuildPath(w)},_}D.createFromString=s,D.extendFromString=c,D.mergePath=d},NFKh:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("wbyO"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"))})(this,function(y){return y})},NH9N:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("Fofx"),A=n("IwbS"),m=n("+TT/"),f=n("kzvK"),h=n("CMP+"),u=n("oVpE"),a=u.createSymbol,i=n("aX7z"),t=n("OELB"),o=n("7aKB"),e=o.encodeHTML,l=y.bind,r=y.each,s=Math.PI,c=f.extend({type:"timeline.slider",init:function(S,E){this.api=E,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(S,E,C,_){if(this.model=S,this.api=C,this.ecModel=E,this.group.removeAll(),S.get("show",!0)){var T=this._layout(S,C),w=this._createGroup("mainGroup"),O=this._createGroup("labelGroup"),I=this._axis=this._createAxis(T,S);S.formatTooltip=function(R){return e(I.scale.getLabel(R))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(R){this["_render"+R](T,w,I,S)},this),this._renderAxisLabel(T,O,I,S),this._position(T,S)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(S,E){var C=S.get("label.position"),_=S.get("orient"),T=d(S,E);C==null||C==="auto"?C=_==="horizontal"?T.y+T.height/2<E.getHeight()/2?"-":"+":T.x+T.width/2<E.getWidth()/2?"+":"-":isNaN(C)&&(C={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[_][C]);var w={horizontal:"center",vertical:C>=0||C==="+"?"left":"right"},O={horizontal:C>=0||C==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:s/2},R=_==="vertical"?T.height:T.width,M=S.getModel("controlStyle"),F=M.get("show",!0),P=F?M.get("itemSize"):0,X=F?M.get("itemGap"):0,B=P+X,j=S.get("label.rotate")||0;j=j*s/180;var W,z,V,Q,G=M.get("position",!0),re=F&&M.get("showPlayBtn",!0),ee=F&&M.get("showPrevBtn",!0),ue=F&&M.get("showNextBtn",!0),$=0,be=R;return G==="left"||G==="bottom"?(re&&(W=[0,0],$+=B),ee&&(z=[$,0],$+=B),ue&&(V=[be-P,0],be-=B)):(re&&(W=[be-P,0],be-=B),ee&&(z=[0,0],$+=B),ue&&(V=[be-P,0],be-=B)),Q=[$,be],S.get("inverse")&&Q.reverse(),{viewRect:T,mainLength:R,orient:_,rotation:I[_],labelRotation:j,labelPosOpt:C,labelAlign:S.get("label.align")||w[_],labelBaseline:S.get("label.verticalAlign")||S.get("label.baseline")||O[_],playPosition:W,prevBtnPosition:z,nextBtnPosition:V,axisExtent:Q,controlSize:P,controlGap:X}},_position:function(S,E){var C=this._mainGroup,_=this._labelGroup,T=S.viewRect;if(S.orient==="vertical"){var w=x.create(),O=T.x,I=T.y+T.height;x.translate(w,w,[-O,-I]),x.rotate(w,w,-s/2),x.translate(w,w,[O,I]),T=T.clone(),T.applyTransform(w)}var R=z(T),M=z(C.getBoundingRect()),F=z(_.getBoundingRect()),P=C.position,X=_.position;X[0]=P[0]=R[0][0];var B=S.labelPosOpt;if(isNaN(B)){var j=B==="+"?0:1;V(P,M,R,1,j),V(X,F,R,1,1-j)}else{var j=B>=0?0:1;V(P,M,R,1,j),X[1]=P[1]+B}C.attr("position",P),_.attr("position",X),C.rotation=_.rotation=S.rotation,W(C),W(_);function W(Q){var G=Q.position;Q.origin=[R[0][0]-G[0],R[1][0]-G[1]]}function z(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,re,ee,ue){Q[ee]+=re[ee][ue]-G[ee][ue]}},_createAxis:function(S,E){var C=E.getData(),_=E.get("axisType"),T=i.createScaleByModel(E,_);T.getTicks=function(){return C.mapArray(["value"],function(I){return I})};var w=C.getDataExtent("value");T.setExtent(w[0],w[1]),T.niceTicks();var O=new h("value",T,S.axisExtent,_);return O.model=E,O},_createGroup:function(S){var E=this["_"+S]=new A.Group;return this.group.add(E),E},_renderAxisLine:function(S,E,C,_){var T=C.getExtent();if(!_.get("lineStyle.show"))return;E.add(new A.Line({shape:{x1:T[0],y1:0,x2:T[1],y2:0},style:y.extend({lineCap:"round"},_.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(S,E,C,_){var T=_.getData(),w=C.scale.getTicks();r(w,function(O){var I=C.dataToCoord(O),R=T.getItemModel(O),M=R.getModel("itemStyle"),F=R.getModel("emphasis.itemStyle"),P={position:[I,0],onclick:l(this._changeTimeline,this,O)},X=v(R,M,E,P);A.setHoverStyle(X,F.getItemStyle()),R.get("tooltip")?(X.dataIndex=O,X.dataModel=_):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(S,E,C,_){var T=C.getLabelModel();if(!T.get("show"))return;var w=_.getData(),O=C.getViewLabels();r(O,function(I){var R=I.tickValue,M=w.getItemModel(R),F=M.getModel("label"),P=M.getModel("emphasis.label"),X=C.dataToCoord(I.tickValue),B=new A.Text({position:[X,0],rotation:S.labelRotation-S.rotation,onclick:l(this._changeTimeline,this,R),silent:!1});A.setTextStyle(B.style,F,{text:I.formattedLabel,textAlign:S.labelAlign,textVerticalAlign:S.labelBaseline}),E.add(B),A.setHoverStyle(B,A.setTextStyle({},P))},this)},_renderControl:function(S,E,C,_){var T=S.controlSize,w=S.rotation,O=_.getModel("controlStyle").getItemStyle(),I=_.getModel("emphasis.controlStyle").getItemStyle(),R=[0,-T/2,T,T],M=_.getPlayState(),F=_.get("inverse",!0);P(S.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,F?"-":"+")),P(S.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,F?"+":"-")),P(S.playPosition,"controlStyle."+(M?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!M),!0);function P(X,B,j,W){if(!X)return;var z={position:X,origin:[T/2,0],rotation:W?-w:0,rectHover:!0,style:O,onclick:j},V=g(_,B,R,z);E.add(V),A.setHoverStyle(V,I)}},_renderCurrentPointer:function(S,E,C,_){var T=_.getData(),w=_.getCurrentIndex(),O=T.getItemModel(w).getModel("checkpointStyle"),I=this,R={onCreate:function(M){M.draggable=!0,M.drift=l(I._handlePointerDrag,I),M.ondragend=l(I._handlePointerDragend,I),b(M,w,C,_,!0)},onUpdate:function(M){b(M,w,C,_)}};this._currentPointer=v(O,O,this._mainGroup,{},this._currentPointer,R)},_handlePlayClick:function(S){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:S,from:this.uid})},_handlePointerDrag:function(S,E,C){this._clearTimer(),this._pointerChangeTimeline([C.offsetX,C.offsetY])},_handlePointerDragend:function(S){this._pointerChangeTimeline([S.offsetX,S.offsetY],!0)},_pointerChangeTimeline:function(S,E){var C=this._toAxisCoord(S)[0],_=this._axis,T=t.asc(_.getExtent().slice());C>T[1]&&(C=T[1]),C<T[0]&&(C=T[0]),this._currentPointer.position[0]=C,this._currentPointer.dirty();var w=this._findNearestTick(C),O=this.model;(E||w!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(S,this),this.model.get("playInterval")));function S(){var E=this.model;this._changeTimeline(E.getCurrentIndex()+(E.get("rewind",!0)?-1:1))}},_toAxisCoord:function(S){var E=this._mainGroup.getLocalTransform();return A.applyTransform(S,E,!0)},_findNearestTick:function(S){var E=this.model.getData(),C=Infinity,_,T=this._axis;return E.each(["value"],function(w,O){var I=T.dataToCoord(w),R=Math.abs(I-S);R<C&&(C=R,_=O)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(S){var E=this.model.getCurrentIndex();S==="+"?S=E+1:S==="-"&&(S=E-1),this.api.dispatchAction({type:"timelineChange",currentIndex:S,from:this.uid})}});function d(S,E){return m.getLayoutRect(S.getBoxLayoutParams(),{width:E.getWidth(),height:E.getHeight()},S.get("padding"))}function g(S,E,C,_){var T=A.makePath(S.get(E).replace(/^path:\/\//,""),y.clone(_||{}),new p(C[0],C[1],C[2],C[3]),"center");return T}function v(S,E,C,_,T,w){var O=E.get("color");if(T)T.setColor(O),C.add(T),w&&w.onUpdate(T);else{var I=S.get("symbol");T=a(I,-1,-1,2,2,O),T.setStyle("strokeNoScale",!0),C.add(T),w&&w.onCreate(T)}var R=E.getItemStyle(["color","symbol","symbolSize"]);T.setStyle(R),_=y.merge({rectHover:!0,z2:100},_,!0);var M=S.get("symbolSize");M=M instanceof Array?M.slice():[+M,+M],M[0]/=2,M[1]/=2,_.scale=M;var F=S.get("symbolOffset");if(F){var P=_.position=_.position||[0,0];P[0]+=t.parsePercent(F[0],M[0]),P[1]+=t.parsePercent(F[1],M[1])}var X=S.get("symbolRotate");return _.rotation=(X||0)*Math.PI/180||0,T.attr(_),T.updateTransform(),T}function b(S,E,C,_,T){if(S.dragging)return;var w=_.getModel("checkpointStyle"),O=C.dataToCoord(_.getData().get(["value"],E));T||!w.get("animation",!0)?S.attr({position:[O,0]}):(S.stopAnimation(!0),S.animateTo({position:[O,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}k.exports=c},NJEC:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("J4zp"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("sKbD"),i=n.n(a),t=n("4IlW"),o=n("3S7+"),e=n("2/Rp"),l=n("zvFY"),r=n("YMnH"),s=n("ZvpZ"),c=n("H84U"),d=n("bogI"),g=n("0n0R"),v=void 0,b=function(E,C){var _={};for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&C.indexOf(T)<0&&(_[T]=E[T]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,T=Object.getOwnPropertySymbols(E);w<T.length;w++)C.indexOf(T[w])<0&&Object.prototype.propertyIsEnumerable.call(E,T[w])&&(_[T[w]]=E[T[w]]);return _},S=m.forwardRef(function(E,C){var _=m.useState(E.visible),T=A()(_,2),w=T[0],O=T[1];m.useEffect(function(){"visible"in E&&O(E.visible)},[E.visible]),m.useEffect(function(){"defaultVisible"in E&&O(E.defaultVisible)},[E.defaultVisible]);var I=function(_e,Ee){"visible"in E||O(_e),E.onVisibleChange&&E.onVisibleChange(_e,Ee)},R=function(_e){I(!1,_e),E.onConfirm&&E.onConfirm.call(v,_e)},M=function(_e){I(!1,_e),E.onCancel&&E.onCancel.call(v,_e)},F=function(_e){_e.keyCode===t.a.ESC&&w&&I(!1,_e)},P=function(_e){var Ee=E.disabled;if(Ee)return;I(_e)},X=function(_e,Ee){var Xe=E.okButtonProps,He=E.cancelButtonProps,nt=E.title,Ie=E.cancelText,oe=E.okText,ot=E.okType,he=E.icon;return m.createElement("div",{className:"".concat(_e,"-inner-content")},m.createElement("div",{className:"".concat(_e,"-message")},he,m.createElement("div",{className:"".concat(_e,"-message-title")},Object(d.a)(nt))),m.createElement("div",{className:"".concat(_e,"-buttons")},m.createElement(e.a,p()({onClick:M,size:"small"},He),Ie||Ee.cancelText),m.createElement(e.a,p()({onClick:R},Object(l.a)(ot),{size:"small"},Xe),oe||Ee.okText)))},B=m.useContext(c.b),j=B.getPrefixCls,W=E.prefixCls,z=E.placement,V=E.children,Q=E.overlayClassName,G=b(E,["prefixCls","placement","children","overlayClassName"]),re=j("popover",W),ee=j("popconfirm",W),ue=u()(ee,Q),$=m.createElement(r.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},function(be){return X(re,be)});return m.createElement(o.a,p()({},G,{prefixCls:re,placement:z,onVisibleChange:P,visible:w,overlay:$,overlayClassName:ue,ref:C}),Object(g.a)(V,{onKeyDown:function(_e){var Ee,Xe;(Xe=V==null?void 0:(Ee=V.props).onKeyDown)===null||Xe===void 0||Xe.call(Ee,_e),F(_e)}}))});S.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:m.createElement(i.a,null),disabled:!1},D.a=S},NKxu:function(k,D,n){var y=n("lSCD"),p=n("E2jh"),x=n("GoyQ"),A=n("3Fdi"),m=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,a=h.toString,i=u.hasOwnProperty,t=RegExp("^"+a.call(i).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o(e){if(!x(e)||p(e))return!1;var l=y(e)?t:f;return l.test(A(e))}k.exports=o},NUBc:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("wx14"),u=n("rePB"),a=n("VTBJ"),i=n("1OyB"),t=n("vuIU"),o=n("Ji7U"),e=n("LK+K"),l=n("TSYQ"),r=n.n(l),s=function(Ee){var Xe,He="".concat(Ee.rootPrefixCls,"-item"),nt=r()(He,"".concat(He,"-").concat(Ee.page),(Xe={},Object(u.a)(Xe,"".concat(He,"-active"),Ee.active),Object(u.a)(Xe,Ee.className,!!Ee.className),Object(u.a)(Xe,"".concat(He,"-disabled"),!Ee.page),Xe)),Ie=function(){Ee.onClick(Ee.page)},oe=function(he){Ee.onKeyPress(he,Ee.onClick,Ee.page)};return f.a.createElement("li",{title:Ee.showTitle?Ee.page:null,className:nt,onClick:Ie,onKeyPress:oe,tabIndex:"0"},Ee.itemRender(Ee.page,"page",f.a.createElement("a",{rel:"nofollow"},Ee.page)))},c=s,d={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},g=function(_e){Object(o.a)(Xe,_e);var Ee=Object(e.a)(Xe);function Xe(){var He;Object(i.a)(this,Xe);for(var nt=arguments.length,Ie=new Array(nt),oe=0;oe<nt;oe++)Ie[oe]=arguments[oe];return He=Ee.call.apply(Ee,[this].concat(Ie)),He.state={goInputText:""},He.buildOptionText=function(ot){return"".concat(ot," ").concat(He.props.locale.items_per_page)},He.changeSize=function(ot){He.props.changeSize(Number(ot))},He.handleChange=function(ot){He.setState({goInputText:ot.target.value})},He.handleBlur=function(ot){var he=He.props,J=he.goButton,Y=he.quickGo,q=he.rootPrefixCls,fe=He.state.goInputText;if(J||fe==="")return;if(ot.relatedTarget&&(ot.relatedTarget.className.indexOf("".concat(q,"-prev"))>=0||ot.relatedTarget.className.indexOf("".concat(q,"-next"))>=0))return;He.setState({goInputText:""}),Y(He.getValidValue())},He.go=function(ot){var he=He.state.goInputText;if(he==="")return;(ot.keyCode===d.ENTER||ot.type==="click")&&(He.setState({goInputText:""}),He.props.quickGo(He.getValidValue()))},He}return Object(t.a)(Xe,[{key:"getValidValue",value:function(){var nt=this.state,Ie=nt.goInputText,oe=nt.current;return!Ie||isNaN(Ie)?oe:Number(Ie)}},{key:"getPageSizeOptions",value:function(){var nt=this.props,Ie=nt.pageSize,oe=nt.pageSizeOptions;return oe.some(function(ot){return ot.toString()===Ie.toString()})?oe:oe.concat([Ie.toString()]).sort(function(ot,he){var J=isNaN(Number(ot))?0:Number(ot),Y=isNaN(Number(he))?0:Number(he);return J-Y})}},{key:"render",value:function(){var nt=this,Ie=this.props,oe=Ie.pageSize,ot=Ie.locale,he=Ie.rootPrefixCls,J=Ie.changeSize,Y=Ie.quickGo,q=Ie.goButton,fe=Ie.selectComponentClass,we=Ie.buildOptionText,Ne=Ie.selectPrefixCls,je=Ie.disabled,me=this.state.goInputText,Ce="".concat(he,"-options"),Fe=fe,it=null,Ct=null,mt=null;if(!J&&!Y)return null;var Ve=this.getPageSizeOptions();if(J&&Fe){var or=Ve.map(function(dt,Yt){return f.a.createElement(Fe.Option,{key:Yt,value:dt.toString()},(we||nt.buildOptionText)(dt))});it=f.a.createElement(Fe,{disabled:je,prefixCls:Ne,showSearch:!1,className:"".concat(Ce,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(oe||Ve[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Yt){return Yt.parentNode}},or)}return Y&&(q&&(mt=typeof q=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:je,className:"".concat(Ce,"-quick-jumper-button")},ot.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},q)),Ct=f.a.createElement("div",{className:"".concat(Ce,"-quick-jumper")},ot.jump_to,f.a.createElement("input",{disabled:je,type:"text",value:me,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),ot.page,mt)),f.a.createElement("li",{className:"".concat(Ce)},it,Ct)}}]),Xe}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var v=g,b=n("N2Kk");function S(){}function E(_e){return typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e}function C(_e,Ee,Xe){return Xe}function _(_e,Ee,Xe){var He=typeof _e=="undefined"?Ee.pageSize:_e;return Math.floor((Xe.total-1)/He)+1}var T=function(_e){Object(o.a)(Xe,_e);var Ee=Object(e.a)(Xe);function Xe(He){var nt;Object(i.a)(this,Xe),nt=Ee.call(this,He),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(J,Y){var q=nt.props.prefixCls,fe=J||f.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(q,"-item-link")});return typeof J=="function"&&(fe=f.a.createElement(J,Object(a.a)({},nt.props))),fe},nt.savePaginationNode=function(J){nt.paginationNode=J},nt.isValid=function(J){return E(J)&&J!==nt.state.current},nt.shouldDisplayQuickJumper=function(){var J=nt.props,Y=J.showQuickJumper,q=J.pageSize,fe=J.total;return fe<=q?!1:Y},nt.handleKeyDown=function(J){(J.keyCode===d.ARROW_UP||J.keyCode===d.ARROW_DOWN)&&J.preventDefault()},nt.handleKeyUp=function(J){var Y=nt.getValidValue(J),q=nt.state.currentInputValue;Y!==q&&nt.setState({currentInputValue:Y}),J.keyCode===d.ENTER?nt.handleChange(Y):J.keyCode===d.ARROW_UP?nt.handleChange(Y-1):J.keyCode===d.ARROW_DOWN&&nt.handleChange(Y+1)},nt.changePageSize=function(J){var Y=nt.state.current,q=_(J,nt.state,nt.props);Y=Y>q?q:Y,q===0&&(Y=nt.state.current),typeof J=="number"&&("pageSize"in nt.props||nt.setState({pageSize:J}),"current"in nt.props||nt.setState({current:Y,currentInputValue:Y})),nt.props.onShowSizeChange(Y,J),"onChange"in nt.props&&nt.props.onChange&&nt.props.onChange(Y,J)},nt.handleChange=function(J){var Y=nt.props.disabled,q=J;if(nt.isValid(q)&&!Y){var fe=_(void 0,nt.state,nt.props);q>fe?q=fe:q<1&&(q=1),"current"in nt.props||nt.setState({current:q,currentInputValue:q});var we=nt.state.pageSize;return nt.props.onChange(q,we),q}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(J,Y){if(J.key==="Enter"||J.charCode===13){for(var q=arguments.length,fe=new Array(q>2?q-2:0),we=2;we<q;we++)fe[we-2]=arguments[we];Y.apply(void 0,fe)}},nt.runIfEnterPrev=function(J){nt.runIfEnter(J,nt.prev)},nt.runIfEnterNext=function(J){nt.runIfEnter(J,nt.next)},nt.runIfEnterJumpPrev=function(J){nt.runIfEnter(J,nt.jumpPrev)},nt.runIfEnterJumpNext=function(J){nt.runIfEnter(J,nt.jumpNext)},nt.handleGoTO=function(J){(J.keyCode===d.ENTER||J.type==="click")&&nt.handleChange(nt.state.currentInputValue)};var Ie=He.onChange!==S,oe="current"in He;oe&&!Ie&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ot=He.defaultCurrent;"current"in He&&(ot=He.current);var he=He.defaultPageSize;return"pageSize"in He&&(he=He.pageSize),ot=Math.min(ot,_(he,void 0,He)),nt.state={current:ot,currentInputValue:ot,pageSize:he},nt}return Object(t.a)(Xe,[{key:"componentDidUpdate",value:function(nt,Ie){var oe=this.props.prefixCls;if(Ie.current!==this.state.current&&this.paginationNode){var ot=this.paginationNode.querySelector(".".concat(oe,"-item-").concat(Ie.current));ot&&document.activeElement===ot&&ot.blur()}}},{key:"getValidValue",value:function(nt){var Ie=nt.target.value,oe=_(void 0,this.state,this.props),ot=this.state.currentInputValue,he;return Ie===""?he=Ie:isNaN(Number(Ie))?he=ot:Ie>=oe?he=oe:he=Number(Ie),he}},{key:"getShowSizeChanger",value:function(){var nt=this.props,Ie=nt.showSizeChanger,oe=nt.total,ot=nt.totalBoundaryShowSizeChanger;return typeof Ie!="undefined"?Ie:oe>ot}},{key:"renderPrev",value:function(nt){var Ie=this.props,oe=Ie.prevIcon,ot=Ie.itemRender,he=ot(nt,"prev",this.getItemIcon(oe,"prev page")),J=!this.hasPrev();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"renderNext",value:function(nt){var Ie=this.props,oe=Ie.nextIcon,ot=Ie.itemRender,he=ot(nt,"next",this.getItemIcon(oe,"next page")),J=!this.hasNext();return Object(m.isValidElement)(he)?Object(m.cloneElement)(he,{disabled:J}):he}},{key:"render",value:function(){var nt=this,Ie=this.props,oe=Ie.prefixCls,ot=Ie.className,he=Ie.style,J=Ie.disabled,Y=Ie.hideOnSinglePage,q=Ie.total,fe=Ie.locale,we=Ie.showQuickJumper,Ne=Ie.showLessItems,je=Ie.showTitle,me=Ie.showTotal,Ce=Ie.simple,Fe=Ie.itemRender,it=Ie.showPrevNextJumpers,Ct=Ie.jumpPrevIcon,mt=Ie.jumpNextIcon,Ve=Ie.selectComponentClass,or=Ie.selectPrefixCls,dt=Ie.pageSizeOptions,Yt=this.state,hr=Yt.current,Gt=Yt.pageSize,Pt=Yt.currentInputValue;if(Y===!0&&q<=Gt)return null;var Xt=_(void 0,this.state,this.props),Ge=[],pe=null,se=null,lt=null,Ze=null,de=null,_t=we&&we.goButton,er=Ne?1:2,yt=hr-1>0?hr-1:0,Ar=hr+1<Xt?hr+1:Xt,Sr=Object.keys(this.props).reduce(function(ei,Zt){return(Zt.substr(0,5)==="data-"||Zt.substr(0,5)==="aria-"||Zt==="role")&&(ei[Zt]=nt.props[Zt]),ei},{});if(Ce)return _t&&(typeof _t=="boolean"?de=f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},fe.jump_to_confirm):de=f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_t),de=f.a.createElement("li",{title:je?"".concat(fe.jump_to).concat(hr,"/").concat(Xt):null,className:"".concat(oe,"-simple-pager")},de)),f.a.createElement("ul",Object(h.a)({className:r()(oe,"".concat(oe,"-simple"),Object(u.a)({},"".concat(oe,"-disabled"),J),ot),style:he,ref:this.savePaginationNode},Sr),f.a.createElement("li",{title:je?fe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(oe,"-prev"),Object(u.a)({},"".concat(oe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(yt)),f.a.createElement("li",{title:je?"".concat(hr,"/").concat(Xt):null,className:"".concat(oe,"-simple-pager")},f.a.createElement("input",{type:"text",value:Pt,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(oe,"-slash")},"/"),Xt),f.a.createElement("li",{title:je?fe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(oe,"-next"),Object(u.a)({},"".concat(oe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ar)),de);if(Xt<=3+er*2){var Cn={locale:fe,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:je,itemRender:Fe};Xt||Ge.push(f.a.createElement(c,Object(h.a)({},Cn,{key:"noPager",page:Xt,className:"".concat(oe,"-disabled")})));for(var mr=1;mr<=Xt;mr+=1){var Pr=hr===mr;Ge.push(f.a.createElement(c,Object(h.a)({},Cn,{key:mr,page:mr,active:Pr})))}}else{var gr=Ne?fe.prev_3:fe.prev_5,Jt=Ne?fe.next_3:fe.next_5;it&&(pe=f.a.createElement("li",{title:je?gr:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(oe,"-jump-prev"),Object(u.a)({},"".concat(oe,"-jump-prev-custom-icon"),!!Ct))},Fe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ct,"prev page"))),se=f.a.createElement("li",{title:je?Jt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(oe,"-jump-next"),Object(u.a)({},"".concat(oe,"-jump-next-custom-icon"),!!mt))},Fe(this.getJumpNextPage(),"jump-next",this.getItemIcon(mt,"next page")))),Ze=f.a.createElement(c,{locale:fe,last:!0,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Xt,page:Xt,active:!1,showTitle:je,itemRender:Fe}),lt=f.a.createElement(c,{locale:fe,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:je,itemRender:Fe});var Dt=Math.max(1,hr-er),dn=Math.min(hr+er,Xt);hr-1<=er&&(dn=1+er*2),Xt-hr<=er&&(Dt=Xt-er*2);for(var Fn=Dt;Fn<=dn;Fn+=1){var Zn=hr===Fn;Ge.push(f.a.createElement(c,{locale:fe,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Fn,page:Fn,active:Zn,showTitle:je,itemRender:Fe}))}hr-1>=er*2&&hr!==1+2&&(Ge[0]=Object(m.cloneElement)(Ge[0],{className:"".concat(oe,"-item-after-jump-prev")}),Ge.unshift(pe)),Xt-hr>=er*2&&hr!==Xt-2&&(Ge[Ge.length-1]=Object(m.cloneElement)(Ge[Ge.length-1],{className:"".concat(oe,"-item-before-jump-next")}),Ge.push(se)),Dt!==1&&Ge.unshift(lt),dn!==Xt&&Ge.push(Ze)}var ci=null;me&&(ci=f.a.createElement("li",{className:"".concat(oe,"-total-text")},me(q,[q===0?0:(hr-1)*Gt+1,hr*Gt>q?q:hr*Gt])));var Xi=!this.hasPrev()||!Xt,Gn=!this.hasNext()||!Xt;return f.a.createElement("ul",Object(h.a)({className:r()(oe,ot,Object(u.a)({},"".concat(oe,"-disabled"),J)),style:he,unselectable:"unselectable",ref:this.savePaginationNode},Sr),ci,f.a.createElement("li",{title:je?fe.prev_page:null,onClick:this.prev,tabIndex:Xi?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(oe,"-prev"),Object(u.a)({},"".concat(oe,"-disabled"),Xi)),"aria-disabled":Xi},this.renderPrev(yt)),Ge,f.a.createElement("li",{title:je?fe.next_page:null,onClick:this.next,tabIndex:Gn?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(oe,"-next"),Object(u.a)({},"".concat(oe,"-disabled"),Gn)),"aria-disabled":Gn},this.renderNext(Ar)),f.a.createElement(v,{disabled:J,locale:fe,rootPrefixCls:oe,selectComponentClass:Ve,selectPrefixCls:or,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:hr,pageSize:Gt,pageSizeOptions:dt,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_t}))}}],[{key:"getDerivedStateFromProps",value:function(nt,Ie){var oe={};if("current"in nt&&(oe.current=nt.current,nt.current!==Ie.current&&(oe.currentInputValue=oe.current)),"pageSize"in nt&&nt.pageSize!==Ie.pageSize){var ot=Ie.current,he=_(nt.pageSize,Ie,nt);ot=ot>he?he:ot,"current"in nt||(oe.current=ot,oe.currentInputValue=ot),oe.pageSize=nt.pageSize}return oe}}]),Xe}(f.a.Component);T.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:S,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:S,locale:b.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var w=T,O=n("H4fg"),I=n("DFhj"),R=n.n(I),M=n("fEPi"),F=n.n(M),P=n("u9fO"),X=n.n(P),B=n("mO/d"),j=n.n(B),W=n("2fM7"),z=function(Ee){return m.createElement(W.a,A()({size:"small"},Ee))};z.Option=W.a.Option;var V=z,Q=n("YMnH"),G=n("H84U"),re=n("5OYt"),ee=function(_e,Ee){var Xe={};for(var He in _e)Object.prototype.hasOwnProperty.call(_e,He)&&Ee.indexOf(He)<0&&(Xe[He]=_e[He]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,He=Object.getOwnPropertySymbols(_e);nt<He.length;nt++)Ee.indexOf(He[nt])<0&&Object.prototype.propertyIsEnumerable.call(_e,He[nt])&&(Xe[He[nt]]=_e[He[nt]]);return Xe},ue=function(Ee){var Xe=Ee.prefixCls,He=Ee.selectPrefixCls,nt=Ee.className,Ie=Ee.size,oe=Ee.locale,ot=ee(Ee,["prefixCls","selectPrefixCls","className","size","locale"]),he=Object(re.a)(),J=he.xs,Y=m.useContext(G.b),q=Y.getPrefixCls,fe=Y.direction,we=q("pagination",Xe),Ne=function(){var Ce=m.createElement("span",{className:"".concat(we,"-item-ellipsis")},"\u2022\u2022\u2022"),Fe=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(R.a,null)),it=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(F.a,null)),Ct=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(X.a,{className:"".concat(we,"-item-link-icon")}),Ce)),mt=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(j.a,{className:"".concat(we,"-item-link-icon")}),Ce));if(fe==="rtl"){var Ve=[it,Fe];Fe=Ve[0],it=Ve[1];var or=[mt,Ct];Ct=or[0],mt=or[1]}return{prevIcon:Fe,nextIcon:it,jumpPrevIcon:Ct,jumpNextIcon:mt}},je=function(Ce){var Fe=A()(A()({},Ce),oe),it=Ie==="small"||!!(J&&!Ie&&ot.responsive),Ct=q("select",He),mt=r()(nt,p()({mini:it},"".concat(we,"-rtl"),fe==="rtl"));return m.createElement(w,A()({},ot,{prefixCls:we,selectPrefixCls:Ct},Ne(),{className:mt,selectComponentClass:it?V:W.a,locale:Fe}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:O.a},je)},$=ue,be=D.a=$},NohK:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=function(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,m=null;return function(){for(var f=this,h=arguments.length,u=new Array(h),a=0;a<h;a++)u[a]=arguments[a];clearTimeout(m),m=setTimeout(function(){x.apply(f,u)},A)}};D.default=y},Npjl:function(k,D){function n(y,p){return y==null?void 0:y[p]}k.exports=n},Nu4q:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:x}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:A}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:A}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:A}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:x}}]}},name:"picture",theme:"twotone"};D.default=y},"O/iA":function(k,D,n){},O3gP:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("O/iA"),A=n.n(x),m=n("OaEy")},OELB:function(k,D,n){var y=n("bYtY"),p=1e-4;function x(E){return E.replace(/^\s+|\s+$/g,"")}function A(E,C,_,T){var w=C[1]-C[0],O=_[1]-_[0];if(w===0)return O===0?_[0]:(_[0]+_[1])/2;if(T)if(w>0){if(E<=C[0])return _[0];if(E>=C[1])return _[1]}else{if(E>=C[0])return _[0];if(E<=C[1])return _[1]}else{if(E===C[0])return _[0];if(E===C[1])return _[1]}return(E-C[0])/w*O+_[0]}function m(E,C){switch(E){case"center":case"middle":E="50%";break;case"left":case"top":E="0%";break;case"right":case"bottom":E="100%";break}return typeof E=="string"?x(E).match(/%$/)?parseFloat(E)/100*C:parseFloat(E):E==null?NaN:+E}function f(E,C,_){return C==null&&(C=10),C=Math.min(Math.max(0,C),20),E=(+E).toFixed(C),_?E:+E}function h(E){return E.sort(function(C,_){return C-_}),E}function u(E){if(E=+E,isNaN(E))return 0;for(var C=1,_=0;Math.round(E*C)/C!==E;)C*=10,_++;return _}function a(E){var C=E.toString(),_=C.indexOf("e");if(_>0){var T=+C.slice(_+1);return T<0?-T:0}else{var w=C.indexOf(".");return w<0?0:C.length-1-w}}function i(E,C){var _=Math.log,T=Math.LN10,w=Math.floor(_(E[1]-E[0])/T),O=Math.round(_(Math.abs(C[1]-C[0]))/T),I=Math.min(Math.max(-w+O,0),20);return isFinite(I)?I:20}function t(E,C,_){if(!E[C])return 0;var T=y.reduce(E,function(W,z){return W+(isNaN(z)?0:z)},0);if(T===0)return 0;for(var w=Math.pow(10,_),O=y.map(E,function(W){return(isNaN(W)?0:W)/T*w*100}),I=w*100,R=y.map(O,function(W){return Math.floor(W)}),M=y.reduce(R,function(W,z){return W+z},0),F=y.map(O,function(W,z){return W-R[z]});M<I;){for(var P=Number.NEGATIVE_INFINITY,X=null,B=0,j=F.length;B<j;++B)F[B]>P&&(P=F[B],X=B);++R[X],F[X]=0,++M}return R[C]/w}var o=9007199254740991;function e(E){var C=Math.PI*2;return(E%C+C)%C}function l(E){return E>-p&&E<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(E){if(E instanceof Date)return E;if(typeof E=="string"){var C=r.exec(E);if(!C)return new Date(NaN);if(C[8]){var _=+C[4]||0;return C[8].toUpperCase()!=="Z"&&(_-=C[8].slice(0,3)),new Date(Date.UTC(+C[1],+(C[2]||1)-1,+C[3]||1,_,+(C[5]||0),+C[6]||0,+C[7]||0))}else return new Date(+C[1],+(C[2]||1)-1,+C[3]||1,+C[4]||0,+(C[5]||0),+C[6]||0,+C[7]||0)}else if(E==null)return new Date(NaN);return new Date(Math.round(E))}function c(E){return Math.pow(10,d(E))}function d(E){if(E===0)return 0;var C=Math.floor(Math.log(E)/Math.LN10);return E/Math.pow(10,C)>=10&&C++,C}function g(E,C){var _=d(E),T=Math.pow(10,_),w=E/T,O;return C?w<1.5?O=1:w<2.5?O=2:w<4?O=3:w<7?O=5:O=10:w<1?O=1:w<2?O=2:w<3?O=3:w<5?O=5:O=10,E=O*T,_>=-20?+E.toFixed(_<0?-_:0):E}function v(E,C){var _=(E.length-1)*C+1,T=Math.floor(_),w=+E[T-1],O=_-T;return O?w+O*(E[T]-w):w}function b(E){E.sort(function(M,F){return R(M,F,0)?-1:1});for(var C=-Infinity,_=1,T=0;T<E.length;){for(var w=E[T].interval,O=E[T].close,I=0;I<2;I++)w[I]<=C&&(w[I]=C,O[I]=I?1:1-_),C=w[I],_=O[I];w[0]===w[1]&&O[0]*O[1]!==1?E.splice(T,1):T++}return E;function R(M,F,P){return M.interval[P]<F.interval[P]||M.interval[P]===F.interval[P]&&(M.close[P]-F.close[P]===(P?-1:1)||!P&&R(M,F,1))}}function S(E){return E-parseFloat(E)>=0}D.linearMap=A,D.parsePercent=m,D.round=f,D.asc=h,D.getPrecision=u,D.getPrecisionSafe=a,D.getPixelPrecision=i,D.getPercentWithPrecision=t,D.MAX_SAFE_INTEGER=o,D.remRadian=e,D.isRadianAroundZero=l,D.parseDate=s,D.quantity=c,D.quantityExponent=d,D.nice=g,D.quantile=v,D.reformIntervals=b,D.isNumeric=S},OKJ2:function(k,D,n){var y=n("KxfA"),p=y.retrieveRawValue,x=n("7aKB"),A=x.getTooltipMarker,m=x.formatTpl,f=n("4NO4"),h=f.getTooltipRenderMode,u=/\{@(.+?)\}/g,a={getDataParams:function(i,t){var o=this.getData(t),e=this.getRawValue(i,t),l=o.getRawIndex(i),r=o.getName(i),s=o.getRawDataItem(i),c=o.getItemVisual(i,"color"),d=o.getItemVisual(i,"borderColor"),g=this.ecModel.getComponent("tooltip"),v=g&&g.get("renderMode"),b=h(v),S=this.mainType,E=S==="series",C=o.userOutput;return{componentType:S,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:E?this.subType:null,seriesIndex:this.seriesIndex,seriesId:E?this.id:null,seriesName:E?this.name:null,name:r,dataIndex:l,data:s,dataType:t,value:e,color:c,borderColor:d,dimensionNames:C?C.dimensionNames:null,encode:C?C.encode:null,marker:A({color:c,renderMode:b}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(i,t,o,e,l){t=t||"normal";var r=this.getData(o),s=r.getItemModel(i),c=this.getDataParams(i,o);e!=null&&c.value instanceof Array&&(c.value=c.value[e]);var d=s.get(t==="normal"?[l||"label","formatter"]:[t,l||"label","formatter"]);if(typeof d=="function")return c.status=t,c.dimensionIndex=e,d(c);if(typeof d=="string"){var g=m(d,c);return g.replace(u,function(v,b){var S=b.length;return b.charAt(0)==="["&&b.charAt(S-1)==="]"&&(b=+b.slice(1,S-1)),p(r,i,b)})}},getRawValue:function(i,t){return p(this.getData(t),i)},formatTooltip:function(){}};k.exports=a},OLod:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("K3mO"))})(this,function(y){y.lib.Cipher||function(p){var x=y,A=x.lib,m=A.Base,f=A.WordArray,h=A.BufferedBlockAlgorithm,u=x.enc,a=u.Utf8,i=u.Base64,t=x.algo,o=t.EvpKDF,e=A.Cipher=h.extend({cfg:m.extend(),createEncryptor:function(I,R){return this.create(this._ENC_XFORM_MODE,I,R)},createDecryptor:function(I,R){return this.create(this._DEC_XFORM_MODE,I,R)},init:function(I,R,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=R,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?w:C}return function(I){return{encrypt:function(M,F,P){return O(F).encrypt(I,M,F,P)},decrypt:function(M,F,P){return O(F).decrypt(I,M,F,P)}}}}()}),l=A.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),r=x.mode={},s=A.BlockCipherMode=m.extend({createEncryptor:function(I,R){return this.Encryptor.create(I,R)},createDecryptor:function(I,R){return this.Decryptor.create(I,R)},init:function(I,R){this._cipher=I,this._iv=R}}),c=r.CBC=function(){var O=s.extend();O.Encryptor=O.extend({processBlock:function(M,F){var P=this._cipher,X=P.blockSize;I.call(this,M,F,X),P.encryptBlock(M,F),this._prevBlock=M.slice(F,F+X)}}),O.Decryptor=O.extend({processBlock:function(M,F){var P=this._cipher,X=P.blockSize,B=M.slice(F,F+X);P.decryptBlock(M,F),I.call(this,M,F,X),this._prevBlock=B}});function I(R,M,F){var P,X=this._iv;X?(P=X,this._iv=p):P=this._prevBlock;for(var B=0;B<F;B++)R[M+B]^=P[B]}return O}(),d=x.pad={},g=d.Pkcs7={pad:function(I,R){for(var M=R*4,F=M-I.sigBytes%M,P=F<<24|F<<16|F<<8|F,X=[],B=0;B<F;B+=4)X.push(P);var j=f.create(X,F);I.concat(j)},unpad:function(I){var R=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=R}},v=A.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var I;e.reset.call(this);var R=this.cfg,M=R.iv,F=R.mode;this._xformMode==this._ENC_XFORM_MODE?I=F.createEncryptor:(I=F.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,M&&M.words):(this._mode=I.call(F,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,R){this._mode.processBlock(I,R)},_doFinalize:function(){var I,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),R.unpad(I)),I},blockSize:128/32}),b=A.CipherParams=m.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),S=x.format={},E=S.OpenSSL={stringify:function(I){var R,M=I.ciphertext,F=I.salt;return F?R=f.create([1398893684,1701076831]).concat(F).concat(M):R=M,R.toString(i)},parse:function(I){var R,M=i.parse(I),F=M.words;return F[0]==1398893684&&F[1]==1701076831&&(R=f.create(F.slice(2,4)),F.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:R})}},C=A.SerializableCipher=m.extend({cfg:m.extend({format:E}),encrypt:function(I,R,M,F){F=this.cfg.extend(F);var P=I.createEncryptor(M,F),X=P.finalize(R),B=P.cfg;return b.create({ciphertext:X,key:M,iv:B.iv,algorithm:I,mode:B.mode,padding:B.padding,blockSize:I.blockSize,formatter:F.format})},decrypt:function(I,R,M,F){F=this.cfg.extend(F),R=this._parse(R,F.format);var P=I.createDecryptor(M,F).finalize(R.ciphertext);return P},_parse:function(I,R){return typeof I=="string"?R.parse(I,this):I}}),_=x.kdf={},T=_.OpenSSL={execute:function(I,R,M,F){F||(F=f.random(64/8));var P=o.create({keySize:R+M}).compute(I,F),X=f.create(P.words.slice(R),M*4);return P.sigBytes=R*4,b.create({key:P,iv:X,salt:F})}},w=A.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:T}),encrypt:function(I,R,M,F){F=this.cfg.extend(F);var P=F.kdf.execute(M,I.keySize,I.ivSize);F.iv=P.iv;var X=C.encrypt.call(this,I,R,P.key,F);return X.mixIn(P),X},decrypt:function(I,R,M,F){F=this.cfg.extend(F),R=this._parse(R,F.format);var P=F.kdf.execute(M,I.keySize,I.ivSize,R.salt);F.iv=P.iv;var X=C.decrypt.call(this,I,R,P.key,F);return X}})}()})},OPEp:function(k,D,n){},OQFs:function(k,D,n){var y=n("KCsZ"),p=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getLineStyle:function(A){var m=p(this,A);return m.lineDash=this.getLineDash(m.lineWidth),m},getLineDash:function(A){A==null&&(A=1);var m=this.get("type"),f=Math.max(A,2),h=A*4;return m==="solid"||m==null?!1:m==="dashed"?[h,h]:[f,f]}};k.exports=x},OS9S:function(k,D,n){var y=n("bYtY"),p=y.inherits,x=n("Gev7"),A=n("mFDi");function m(u){x.call(this,u),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}m.prototype.incremental=!0,m.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},m.prototype.addDisplayable=function(u,a){a?this._temporaryDisplayables.push(u):this._displayables.push(u),this.dirty()},m.prototype.addDisplayables=function(u,a){a=a||!1;for(var i=0;i<u.length;i++)this.addDisplayable(u[i],a)},m.prototype.eachPendingDisplayable=function(u){for(var a=this._cursor;a<this._displayables.length;a++)u&&u(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)u&&u(this._temporaryDisplayables[a])},m.prototype.update=function(){this.updateTransform();for(var u=this._cursor;u<this._displayables.length;u++){var a=this._displayables[u];a.parent=this,a.update(),a.parent=null}for(var u=0;u<this._temporaryDisplayables.length;u++){var a=this._temporaryDisplayables[u];a.parent=this,a.update(),a.parent=null}},m.prototype.brush=function(u,a){for(var i=this._cursor;i<this._displayables.length;i++){var t=this._displayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===this._cursor?null:this._displayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var t=this._temporaryDisplayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===0?null:this._temporaryDisplayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._temporaryDisplayables=[],this.notClear=!0};var f=[];m.prototype.getBoundingRect=function(){if(!this._rect){for(var u=new A(Infinity,Infinity,-Infinity,-Infinity),a=0;a<this._displayables.length;a++){var i=this._displayables[a],t=i.getBoundingRect().clone();i.needLocalTransform()&&t.applyTransform(i.getLocalTransform(f)),u.union(t)}this._rect=u}return this._rect},m.prototype.contain=function(u,a){var i=this.transformCoordToLocal(u,a),t=this.getBoundingRect();if(t.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var e=this._displayables[o];if(e.contain(u,a))return!0}return!1},p(m,x);var h=m;k.exports=h},OUJF:function(k,D,n){var y=n("ProS"),p=n("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(x,A){var m=A.getComponent("timeline");return m&&x.currentIndex!=null&&(m.setCurrentIndex(x.currentIndex),!m.get("loop",!0)&&m.isIndexMax()&&m.setPlayState(!1)),A.resetOption("timeline"),p.defaults({currentIndex:m.option.currentIndex},x)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(x,A){var m=A.getComponent("timeline");m&&x.playState!=null&&m.setPlayState(x.playState)})},OXB0:function(k,D,n){var y=n("T4UG"),p=n("MwEJ"),x=n("IDmD"),A=y.extend({type:"series.heatmap",getInitialData:function(m,f){return p(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var m=x.get(this.get("coordinateSystem"));if(m&&m.dimensions)return m.dimensions[0]==="lng"&&m.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});k.exports=A},OaEy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("bKJz"),A=n.n(x),m=n("R9oj")},"Of+w":function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"WeakMap");k.exports=x},Ol7k:function(k,D,n){"use strict";var y=n("PKem"),p=n("ZX9x");y.b.Sider=p.b,D.a=y.b},OlYY:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("ItGF"),f=n("4NO4"),h=n("UOVi"),u=n("zDms"),a=A.each,i=h.eachAxisDim,t=x.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(r,s,c){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var d=o(r);this.settledOption=d,this.mergeDefaultAndTheme(r,c),this.doInit(d)},mergeOption:function(r){var s=o(r);A.merge(this.option,r,!0),A.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;a([["start","startValue"],["end","endValue"]],function(d,g){this._rangePropMode[g]==="value"&&(s[d[0]]=c[d[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var r=this._axisProxies;this.eachTargetAxis(function(s,c,d,g){var v=this.dependentModels[s.axis][c],b=v.__dzAxisProxy||(v.__dzAxisProxy=new u(s.name,c,this,g));r[s.name+"_"+c]=b},this)},_resetTarget:function(){var r=this.option,s=this._judgeAutoMode();i(function(c){var d=c.axisIndex;r[d]=f.normalizeToArray(r[d])},this),s==="axisIndex"?this._autoSetAxisIndex():s==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var r=this.option,s=!1;i(function(d){r[d.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,d=this.dependentModels;if(r){var g=s==="vertical"?"y":"x";d[g+"Axis"].length?(c[g+"AxisIndex"]=[0],r=!1):a(d.singleAxis,function(v){r&&v.get("orient",!0)===s&&(c.singleAxisIndex=[v.componentIndex],r=!1)})}r&&i(function(v){if(!r)return;var b=[],S=this.dependentModels[v.axis];if(S.length&&!b.length)for(var E=0,C=S.length;E<C;E++)S[E].get("type")==="category"&&b.push(E);c[v.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(v){this._isSeriesHasAllAxesTypeOf(v,"value")&&i(function(b){var S=c[b.axisIndex],E=v.get(b.axisIndex),C=v.get(b.axisId),_=v.ecModel.queryComponents({mainType:b.axis,index:E,id:C})[0];E=_.componentIndex,A.indexOf(S,E)<0&&S.push(E)})},this)},_autoSetOrient:function(){var 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 i(function(d){var g=r.get(d.axisIndex),v=this.dependentModels[d.axis][g];(!v||v.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 i(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;i(function(d){a(this.get(d.axisIndex),function(g){r.call(s,d,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;a([["start","startValue"],["end","endValue"]],function(d){(r[d[0]]!=null||r[d[1]]!=null)&&(s[d[0]]=c[d[0]]=r[d[0]],s[d[1]]=c[d[1]]=r[d[1]])},this),e(this,r)},setCalculatedRange:function(r){var s=this.option;a(["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 o(r){var s={};return a(["start","end","startValue","endValue","throttle"],function(c){r.hasOwnProperty(c)&&(s[c]=r[c])}),s}function e(r,s){var c=r._rangePropMode,d=r.get("rangeMode");a([["start","startValue"],["end","endValue"]],function(g,v){var b=s[g[0]]!=null,S=s[g[1]]!=null;b&&!S?c[v]="percent":!b&&S?c[v]="value":d?c[v]=d[v]:b&&(c[v]="percent")})}var l=t;k.exports=l},OnYD:function(k,D,n){},"Oy/b":function(k,D,n){(function(p,x){k.exports=x()})(typeof self!="undefined"?self:this,function(){return function(y){var p={};function x(A){if(p[A])return p[A].exports;var m=p[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=p,x.d=function(A,m,f){x.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:f})},x.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},x.t=function(A,m){if(m&1&&(A=x(A)),m&8)return A;if(m&4&&typeof A=="object"&&A&&A.__esModule)return A;var f=Object.create(null);if(x.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:A}),m&2&&typeof A!="string")for(var h in A)x.d(f,h,function(u){return A[u]}.bind(null,h));return f},x.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return x.d(m,"a",m),m},x.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},x.p="",x(x.s=1)}([function(y,p,x){},function(y,p,x){"use strict";x.r(p);var A=x(0),m=function(){function It(ce,Se,Le){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ce,this.start=Se,this.end=Le}return It.range=function(Se,Le){return Le?!Se||!Se.loc||!Le.loc||Se.loc.lexer!==Le.loc.lexer?null:new It(Se.loc.lexer,Se.loc.start,Le.loc.end):Se&&Se.loc},It}(),f=function(){function It(Se,Le){this.text=void 0,this.loc=void 0,this.text=Se,this.loc=Le}var ce=It.prototype;return ce.range=function(Le,Qe){return new It(Qe,m.range(this,Le))},It}(),h=function It(ce,Se){this.position=void 0;var Le="KaTeX parse error: "+ce,Qe,Lt=Se&&Se.loc;if(Lt&&Lt.start<=Lt.end){var ir=Lt.lexer.input;Qe=Lt.start;var Yr=Lt.end;Qe===ir.length?Le+=" at end of input: ":Le+=" at position "+(Qe+1)+": ";var hn=ir.slice(Qe,Yr).replace(/[^]/g,"$&\u0332"),In;Qe>15?In="\u2026"+ir.slice(Qe-15,Qe):In=ir.slice(0,Qe);var si;Yr+15<ir.length?si=ir.slice(Yr,Yr+15)+"\u2026":si=ir.slice(Yr),Le+=In+hn+si}var wi=new Error(Le);return wi.name="ParseError",wi.__proto__=It.prototype,wi.position=Qe,wi};h.prototype.__proto__=Error.prototype;var u=h,a=function(ce,Se){return ce.indexOf(Se)!==-1},i=function(ce,Se){return ce===void 0?Se:ce},t=/([A-Z])/g,o=function(ce){return ce.replace(t,"-$1").toLowerCase()},e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},l=/[&><"']/g;function r(It){return String(It).replace(l,function(ce){return e[ce]})}var s=function It(ce){return ce.type==="ordgroup"||ce.type==="color"?ce.body.length===1?It(ce.body[0]):ce:ce.type==="font"?It(ce.body):ce},c=function(ce){var Se=s(ce);return Se.type==="mathord"||Se.type==="textord"||Se.type==="atom"},d=function(ce){if(!ce)throw new Error("Expected non-null, but got "+String(ce));return ce},g=function(ce){var Se=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(ce);return Se!=null?Se[1]:"_relative"},v={contains:a,deflt:i,escape:r,hyphenate:o,getBaseElem:s,isCharacterBox:c,protocolFromUrl:g},b=function(){function It(Se){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,Se=Se||{},this.displayMode=v.deflt(Se.displayMode,!1),this.output=v.deflt(Se.output,"htmlAndMathml"),this.leqno=v.deflt(Se.leqno,!1),this.fleqn=v.deflt(Se.fleqn,!1),this.throwOnError=v.deflt(Se.throwOnError,!0),this.errorColor=v.deflt(Se.errorColor,"#cc0000"),this.macros=Se.macros||{},this.minRuleThickness=Math.max(0,v.deflt(Se.minRuleThickness,0)),this.colorIsTextColor=v.deflt(Se.colorIsTextColor,!1),this.strict=v.deflt(Se.strict,"warn"),this.trust=v.deflt(Se.trust,!1),this.maxSize=Math.max(0,v.deflt(Se.maxSize,Infinity)),this.maxExpand=Math.max(0,v.deflt(Se.maxExpand,1e3))}var ce=It.prototype;return ce.reportNonstrict=function(Le,Qe,Lt){var ir=this.strict;if(typeof ir=="function"&&(ir=ir(Le,Qe,Lt)),!ir||ir==="ignore")return;if(ir===!0||ir==="error")throw new u("LaTeX-incompatible input and strict mode is set to 'error': "+(Qe+" ["+Le+"]"),Lt);ir==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Le+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ir+"': "+Qe+" ["+Le+"]"))},ce.useStrictBehavior=function(Le,Qe,Lt){var ir=this.strict;if(typeof ir=="function")try{ir=ir(Le,Qe,Lt)}catch(Yr){ir="error"}return!ir||ir==="ignore"?!1:ir===!0||ir==="error"?!0:ir==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Le+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ir+"': "+Qe+" ["+Le+"]")),!1)},ce.isTrusted=function(Le){Le.url&&!Le.protocol&&(Le.protocol=v.protocolFromUrl(Le.url));var Qe=typeof this.trust=="function"?this.trust(Le):this.trust;return Boolean(Qe)},It}(),S=function(){function It(Se,Le,Qe){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=Se,this.size=Le,this.cramped=Qe}var ce=It.prototype;return ce.sup=function(){return M[F[this.id]]},ce.sub=function(){return M[P[this.id]]},ce.fracNum=function(){return M[X[this.id]]},ce.fracDen=function(){return M[B[this.id]]},ce.cramp=function(){return M[j[this.id]]},ce.text=function(){return M[W[this.id]]},ce.isTight=function(){return this.size>=2},It}(),E=0,C=1,_=2,T=3,w=4,O=5,I=6,R=7,M=[new S(E,0,!1),new S(C,0,!0),new S(_,1,!1),new S(T,1,!0),new S(w,2,!1),new S(O,2,!0),new S(I,3,!1),new S(R,3,!0)],F=[w,O,w,O,I,R,I,R],P=[O,O,O,O,R,R,R,R],X=[_,T,w,O,I,R,I,R],B=[T,T,O,O,R,R,R,R],j=[C,C,T,T,O,O,R,R],W=[E,C,_,T,_,T,_,T],z={DISPLAY:M[E],TEXT:M[_],SCRIPT:M[w],SCRIPTSCRIPT:M[I]},V=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Q(It){for(var ce=0;ce<V.length;ce++)for(var Se=V[ce],Le=0;Le<Se.blocks.length;Le++){var Qe=Se.blocks[Le];if(It>=Qe[0]&&It<=Qe[1])return Se.name}return null}var G=[];V.forEach(function(It){return It.blocks.forEach(function(ce){return G.push.apply(G,ce)})});function re(It){for(var ce=0;ce<G.length;ce+=2)if(It>=G[ce]&&It<=G[ce+1])return!0;return!1}var ee=80,ue=function(ce,Se){return"M95,"+(622+ce+Se)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+ce/2.075+" -"+ce+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+ce)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},$=function(ce,Se){return"M263,"+(601+ce+Se)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+ce/2.084+" -"+ce+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+ce)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},be=function(ce,Se){return"M983 "+(10+ce+Se)+`
l`+ce/3.13+" -"+ce+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+ce)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+ce)+" "+Se+"h400000v"+(40+ce)+"h-400000z"},_e=function(ce,Se){return"M424,"+(2398+ce+Se)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+ce/4.223+" -"+ce+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+ce)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+ce)+" "+Se+`
h400000v`+(40+ce)+"h-400000z"},Ee=function(ce,Se){return"M473,"+(2713+ce+Se)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ce/5.298+" -"+ce+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ce)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+ce)+" "+Se+"h400000v"+(40+ce)+"H1017.7z"},Xe=function(ce,Se,Le){var Qe=Le-54-Se-ce;return"M702 "+(ce+Se)+"H400000"+(40+ce)+`
H742v`+Qe+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+Se+"H400000v"+(40+ce)+"H742z"},He=function(ce,Se,Le){Se=1e3*Se;var Qe="";switch(ce){case"sqrtMain":Qe=ue(Se,ee);break;case"sqrtSize1":Qe=$(Se,ee);break;case"sqrtSize2":Qe=be(Se,ee);break;case"sqrtSize3":Qe=_e(Se,ee);break;case"sqrtSize4":Qe=Ee(Se,ee);break;case"sqrtTall":Qe=Xe(Se,ee,Le)}return Qe},nt={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ie=function(){function It(Se){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=Se,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ce=It.prototype;return ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){for(var Le=document.createDocumentFragment(),Qe=0;Qe<this.children.length;Qe++)Le.appendChild(this.children[Qe].toNode());return Le},ce.toMarkup=function(){for(var Le="",Qe=0;Qe<this.children.length;Qe++)Le+=this.children[Qe].toMarkup();return Le},ce.toText=function(){var Le=function(Lt){return Lt.toText()};return this.children.map(Le).join("")},It}(),oe=function(ce){return ce.filter(function(Se){return Se}).join(" ")},ot=function(ce,Se,Le){if(this.classes=ce||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Le||{},Se){Se.style.isTight()&&this.classes.push("mtight");var Qe=Se.getColor();Qe&&(this.style.color=Qe)}},he=function(ce){var Se=document.createElement(ce);Se.className=oe(this.classes);for(var Le in this.style)this.style.hasOwnProperty(Le)&&(Se.style[Le]=this.style[Le]);for(var Qe in this.attributes)this.attributes.hasOwnProperty(Qe)&&Se.setAttribute(Qe,this.attributes[Qe]);for(var Lt=0;Lt<this.children.length;Lt++)Se.appendChild(this.children[Lt].toNode());return Se},J=function(ce){var Se="<"+ce;this.classes.length&&(Se+=' class="'+v.escape(oe(this.classes))+'"');var Le="";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Le+=v.hyphenate(Qe)+":"+this.style[Qe]+";");Le&&(Se+=' style="'+v.escape(Le)+'"');for(var Lt in this.attributes)this.attributes.hasOwnProperty(Lt)&&(Se+=" "+Lt+'="'+v.escape(this.attributes[Lt])+'"');Se+=">";for(var ir=0;ir<this.children.length;ir++)Se+=this.children[ir].toMarkup();return Se+="</"+ce+">",Se},Y=function(){function It(Se,Le,Qe,Lt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ot.call(this,Se,Qe,Lt),this.children=Le||[]}var ce=It.prototype;return ce.setAttribute=function(Le,Qe){this.attributes[Le]=Qe},ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){return he.call(this,"span")},ce.toMarkup=function(){return J.call(this,"span")},It}(),q=function(){function It(Se,Le,Qe,Lt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ot.call(this,Le,Lt),this.children=Qe||[],this.setAttribute("href",Se)}var ce=It.prototype;return ce.setAttribute=function(Le,Qe){this.attributes[Le]=Qe},ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){return he.call(this,"a")},ce.toMarkup=function(){return J.call(this,"a")},It}(),fe=function(){function It(Se,Le,Qe){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=Le,this.src=Se,this.classes=["mord"],this.style=Qe}var ce=It.prototype;return ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){var Le=document.createElement("img");Le.src=this.src,Le.alt=this.alt,Le.className="mord";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Le.style[Qe]=this.style[Qe]);return Le},ce.toMarkup=function(){var Le="<img src='"+this.src+" 'alt='"+this.alt+"' ",Qe="";for(var Lt in this.style)this.style.hasOwnProperty(Lt)&&(Qe+=v.hyphenate(Lt)+":"+this.style[Lt]+";");return Qe&&(Le+=' style="'+v.escape(Qe)+'"'),Le+="'/>",Le},It}(),we={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ne=function(){function It(Se,Le,Qe,Lt,ir,Yr,hn,In){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=Se,this.height=Le||0,this.depth=Qe||0,this.italic=Lt||0,this.skew=ir||0,this.width=Yr||0,this.classes=hn||[],this.style=In||{},this.maxFontSize=0;var si=Q(this.text.charCodeAt(0));si&&this.classes.push(si+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=we[this.text])}var ce=It.prototype;return ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){var Le=document.createTextNode(this.text),Qe=null;this.italic>0&&(Qe=document.createElement("span"),Qe.style.marginRight=this.italic+"em"),this.classes.length>0&&(Qe=Qe||document.createElement("span"),Qe.className=oe(this.classes));for(var Lt in this.style)this.style.hasOwnProperty(Lt)&&(Qe=Qe||document.createElement("span"),Qe.style[Lt]=this.style[Lt]);return Qe?(Qe.appendChild(Le),Qe):Le},ce.toMarkup=function(){var Le=!1,Qe="<span";this.classes.length&&(Le=!0,Qe+=' class="',Qe+=v.escape(oe(this.classes)),Qe+='"');var Lt="";this.italic>0&&(Lt+="margin-right:"+this.italic+"em;");for(var ir in this.style)this.style.hasOwnProperty(ir)&&(Lt+=v.hyphenate(ir)+":"+this.style[ir]+";");Lt&&(Le=!0,Qe+=' style="'+v.escape(Lt)+'"');var Yr=v.escape(this.text);return Le?(Qe+=">",Qe+=Yr,Qe+="</span>",Qe):Yr},It}(),je=function(){function It(Se,Le){this.children=void 0,this.attributes=void 0,this.children=Se||[],this.attributes=Le||{}}var ce=It.prototype;return ce.toNode=function(){var Le="http://www.w3.org/2000/svg",Qe=document.createElementNS(Le,"svg");for(var Lt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Lt)&&Qe.setAttribute(Lt,this.attributes[Lt]);for(var ir=0;ir<this.children.length;ir++)Qe.appendChild(this.children[ir].toNode());return Qe},ce.toMarkup=function(){var Le="<svg";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Le+=" "+Qe+"='"+this.attributes[Qe]+"'");Le+=">";for(var Lt=0;Lt<this.children.length;Lt++)Le+=this.children[Lt].toMarkup();return Le+="</svg>",Le},It}(),me=function(){function It(Se,Le){this.pathName=void 0,this.alternate=void 0,this.pathName=Se,this.alternate=Le}var ce=It.prototype;return ce.toNode=function(){var Le="http://www.w3.org/2000/svg",Qe=document.createElementNS(Le,"path");return this.alternate?Qe.setAttribute("d",this.alternate):Qe.setAttribute("d",nt[this.pathName]),Qe},ce.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+nt[this.pathName]+"'/>"},It}(),Ce=function(){function It(Se){this.attributes=void 0,this.attributes=Se||{}}var ce=It.prototype;return ce.toNode=function(){var Le="http://www.w3.org/2000/svg",Qe=document.createElementNS(Le,"line");for(var Lt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Lt)&&Qe.setAttribute(Lt,this.attributes[Lt]);return Qe},ce.toMarkup=function(){var Le="<line";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Le+=" "+Qe+"='"+this.attributes[Qe]+"'");return Le+="/>",Le},It}();function Fe(It){if(It instanceof Ne)return It;throw new Error("Expected symbolNode but got "+String(It)+".")}function it(It){if(It instanceof Y)return It;throw new Error("Expected span<HtmlDomNode> but got "+String(It)+".")}var Ct={"AMS-Regular":{"65":[0,.68889,0,0,.72222],"66":[0,.68889,0,0,.66667],"67":[0,.68889,0,0,.72222],"68":[0,.68889,0,0,.72222],"69":[0,.68889,0,0,.66667],"70":[0,.68889,0,0,.61111],"71":[0,.68889,0,0,.77778],"72":[0,.68889,0,0,.77778],"73":[0,.68889,0,0,.38889],"74":[.16667,.68889,0,0,.5],"75":[0,.68889,0,0,.77778],"76":[0,.68889,0,0,.66667],"77":[0,.68889,0,0,.94445],"78":[0,.68889,0,0,.72222],"79":[.16667,.68889,0,0,.77778],"80":[0,.68889,0,0,.61111],"81":[.16667,.68889,0,0,.77778],"82":[0,.68889,0,0,.72222],"83":[0,.68889,0,0,.55556],"84":[0,.68889,0,0,.66667],"85":[0,.68889,0,0,.72222],"86":[0,.68889,0,0,.72222],"87":[0,.68889,0,0,1],"88":[0,.68889,0,0,.72222],"89":[0,.68889,0,0,.72222],"90":[0,.68889,0,0,.66667],"107":[0,.68889,0,0,.55556],"165":[0,.675,.025,0,.75],"174":[.15559,.69224,0,0,.94666],"240":[0,.68889,0,0,.55556],"295":[0,.68889,0,0,.54028],"710":[0,.825,0,0,2.33334],"732":[0,.9,0,0,2.33334],"770":[0,.825,0,0,2.33334],"771":[0,.9,0,0,2.33334],"989":[.08167,.58167,0,0,.77778],"1008":[0,.43056,.04028,0,.66667],"8245":[0,.54986,0,0,.275],"8463":[0,.68889,0,0,.54028],"8487":[0,.68889,0,0,.72222],"8498":[0,.68889,0,0,.55556],"8502":[0,.68889,0,0,.66667],"8503":[0,.68889,0,0,.44445],"8504":[0,.68889,0,0,.66667],"8513":[0,.68889,0,0,.63889],"8592":[-.03598,.46402,0,0,.5],"8594":[-.03598,.46402,0,0,.5],"8602":[-.13313,.36687,0,0,1],"8603":[-.13313,.36687,0,0,1],"8606":[.01354,.52239,0,0,1],"8608":[.01354,.52239,0,0,1],"8610":[.01354,.52239,0,0,1.11111],"8611":[.01354,.52239,0,0,1.11111],"8619":[0,.54986,0,0,1],"8620":[0,.54986,0,0,1],"8621":[-.13313,.37788,0,0,1.38889],"8622":[-.13313,.36687,0,0,1],"8624":[0,.69224,0,0,.5],"8625":[0,.69224,0,0,.5],"8630":[0,.43056,0,0,1],"8631":[0,.43056,0,0,1],"8634":[.08198,.58198,0,0,.77778],"8635":[.08198,.58198,0,0,.77778],"8638":[.19444,.69224,0,0,.41667],"8639":[.19444,.69224,0,0,.41667],"8642":[.19444,.69224,0,0,.41667],"8643":[.19444,.69224,0,0,.41667],"8644":[.1808,.675,0,0,1],"8646":[.1808,.675,0,0,1],"8647":[.1808,.675,0,0,1],"8648":[.19444,.69224,0,0,.83334],"8649":[.1808,.675,0,0,1],"8650":[.19444,.69224,0,0,.83334],"8651":[.01354,.52239,0,0,1],"8652":[.01354,.52239,0,0,1],"8653":[-.13313,.36687,0,0,1],"8654":[-.13313,.36687,0,0,1],"8655":[-.13313,.36687,0,0,1],"8666":[.13667,.63667,0,0,1],"8667":[.13667,.63667,0,0,1],"8669":[-.13313,.37788,0,0,1],"8672":[-.064,.437,0,0,1.334],"8674":[-.064,.437,0,0,1.334],"8705":[0,.825,0,0,.5],"8708":[0,.68889,0,0,.55556],"8709":[.08167,.58167,0,0,.77778],"8717":[0,.43056,0,0,.42917],"8722":[-.03598,.46402,0,0,.5],"8724":[.08198,.69224,0,0,.77778],"8726":[.08167,.58167,0,0,.77778],"8733":[0,.69224,0,0,.77778],"8736":[0,.69224,0,0,.72222],"8737":[0,.69224,0,0,.72222],"8738":[.03517,.52239,0,0,.72222],"8739":[.08167,.58167,0,0,.22222],"8740":[.25142,.74111,0,0,.27778],"8741":[.08167,.58167,0,0,.38889],"8742":[.25142,.74111,0,0,.5],"8756":[0,.69224,0,0,.66667],"8757":[0,.69224,0,0,.66667],"8764":[-.13313,.36687,0,0,.77778],"8765":[-.13313,.37788,0,0,.77778],"8769":[-.13313,.36687,0,0,.77778],"8770":[-.03625,.46375,0,0,.77778],"8774":[.30274,.79383,0,0,.77778],"8776":[-.01688,.48312,0,0,.77778],"8778":[.08167,.58167,0,0,.77778],"8782":[.06062,.54986,0,0,.77778],"8783":[.06062,.54986,0,0,.77778],"8785":[.08198,.58198,0,0,.77778],"8786":[.08198,.58198,0,0,.77778],"8787":[.08198,.58198,0,0,.77778],"8790":[0,.69224,0,0,.77778],"8791":[.22958,.72958,0,0,.77778],"8796":[.08198,.91667,0,0,.77778],"8806":[.25583,.75583,0,0,.77778],"8807":[.25583,.75583,0,0,.77778],"8808":[.25142,.75726,0,0,.77778],"8809":[.25142,.75726,0,0,.77778],"8812":[.25583,.75583,0,0,.5],"8814":[.20576,.70576,0,0,.77778],"8815":[.20576,.70576,0,0,.77778],"8816":[.30274,.79383,0,0,.77778],"8817":[.30274,.79383,0,0,.77778],"8818":[.22958,.72958,0,0,.77778],"8819":[.22958,.72958,0,0,.77778],"8822":[.1808,.675,0,0,.77778],"8823":[.1808,.675,0,0,.77778],"8828":[.13667,.63667,0,0,.77778],"8829":[.13667,.63667,0,0,.77778],"8830":[.22958,.72958,0,0,.77778],"8831":[.22958,.72958,0,0,.77778],"8832":[.20576,.70576,0,0,.77778],"8833":[.20576,.70576,0,0,.77778],"8840":[.30274,.79383,0,0,.77778],"8841":[.30274,.79383,0,0,.77778],"8842":[.13597,.63597,0,0,.77778],"8843":[.13597,.63597,0,0,.77778],"8847":[.03517,.54986,0,0,.77778],"8848":[.03517,.54986,0,0,.77778],"8858":[.08198,.58198,0,0,.77778],"8859":[.08198,.58198,0,0,.77778],"8861":[.08198,.58198,0,0,.77778],"8862":[0,.675,0,0,.77778],"8863":[0,.675,0,0,.77778],"8864":[0,.675,0,0,.77778],"8865":[0,.675,0,0,.77778],"8872":[0,.69224,0,0,.61111],"8873":[0,.69224,0,0,.72222],"8874":[0,.69224,0,0,.88889],"8876":[0,.68889,0,0,.61111],"8877":[0,.68889,0,0,.61111],"8878":[0,.68889,0,0,.72222],"8879":[0,.68889,0,0,.72222],"8882":[.03517,.54986,0,0,.77778],"8883":[.03517,.54986,0,0,.77778],"8884":[.13667,.63667,0,0,.77778],"8885":[.13667,.63667,0,0,.77778],"8888":[0,.54986,0,0,1.11111],"8890":[.19444,.43056,0,0,.55556],"8891":[.19444,.69224,0,0,.61111],"8892":[.19444,.69224,0,0,.61111],"8901":[0,.54986,0,0,.27778],"8903":[.08167,.58167,0,0,.77778],"8905":[.08167,.58167,0,0,.77778],"8906":[.08167,.58167,0,0,.77778],"8907":[0,.69224,0,0,.77778],"8908":[0,.69224,0,0,.77778],"8909":[-.03598,.46402,0,0,.77778],"8910":[0,.54986,0,0,.76042],"8911":[0,.54986,0,0,.76042],"8912":[.03517,.54986,0,0,.77778],"8913":[.03517,.54986,0,0,.77778],"8914":[0,.54986,0,0,.66667],"8915":[0,.54986,0,0,.66667],"8916":[0,.69224,0,0,.66667],"8918":[.0391,.5391,0,0,.77778],"8919":[.0391,.5391,0,0,.77778],"8920":[.03517,.54986,0,0,1.33334],"8921":[.03517,.54986,0,0,1.33334],"8922":[.38569,.88569,0,0,.77778],"8923":[.38569,.88569,0,0,.77778],"8926":[.13667,.63667,0,0,.77778],"8927":[.13667,.63667,0,0,.77778],"8928":[.30274,.79383,0,0,.77778],"8929":[.30274,.79383,0,0,.77778],"8934":[.23222,.74111,0,0,.77778],"8935":[.23222,.74111,0,0,.77778],"8936":[.23222,.74111,0,0,.77778],"8937":[.23222,.74111,0,0,.77778],"8938":[.20576,.70576,0,0,.77778],"8939":[.20576,.70576,0,0,.77778],"8940":[.30274,.79383,0,0,.77778],"8941":[.30274,.79383,0,0,.77778],"8994":[.19444,.69224,0,0,.77778],"8995":[.19444,.69224,0,0,.77778],"9416":[.15559,.69224,0,0,.90222],"9484":[0,.69224,0,0,.5],"9488":[0,.69224,0,0,.5],"9492":[0,.37788,0,0,.5],"9496":[0,.37788,0,0,.5],"9585":[.19444,.68889,0,0,.88889],"9586":[.19444,.74111,0,0,.88889],"9632":[0,.675,0,0,.77778],"9633":[0,.675,0,0,.77778],"9650":[0,.54986,0,0,.72222],"9651":[0,.54986,0,0,.72222],"9654":[.03517,.54986,0,0,.77778],"9660":[0,.54986,0,0,.72222],"9661":[0,.54986,0,0,.72222],"9664":[.03517,.54986,0,0,.77778],"9674":[.11111,.69224,0,0,.66667],"9733":[.19444,.69224,0,0,.94445],"10003":[0,.69224,0,0,.83334],"10016":[0,.69224,0,0,.83334],"10731":[.11111,.69224,0,0,.66667],"10846":[.19444,.75583,0,0,.61111],"10877":[.13667,.63667,0,0,.77778],"10878":[.13667,.63667,0,0,.77778],"10885":[.25583,.75583,0,0,.77778],"10886":[.25583,.75583,0,0,.77778],"10887":[.13597,.63597,0,0,.77778],"10888":[.13597,.63597,0,0,.77778],"10889":[.26167,.75726,0,0,.77778],"10890":[.26167,.75726,0,0,.77778],"10891":[.48256,.98256,0,0,.77778],"10892":[.48256,.98256,0,0,.77778],"10901":[.13667,.63667,0,0,.77778],"10902":[.13667,.63667,0,0,.77778],"10933":[.25142,.75726,0,0,.77778],"10934":[.25142,.75726,0,0,.77778],"10935":[.26167,.75726,0,0,.77778],"10936":[.26167,.75726,0,0,.77778],"10937":[.26167,.75726,0,0,.77778],"10938":[.26167,.75726,0,0,.77778],"10949":[.25583,.75583,0,0,.77778],"10950":[.25583,.75583,0,0,.77778],"10955":[.28481,.79383,0,0,.77778],"10956":[.28481,.79383,0,0,.77778],"57350":[.08167,.58167,0,0,.22222],"57351":[.08167,.58167,0,0,.38889],"57352":[.08167,.58167,0,0,.77778],"57353":[0,.43056,.04028,0,.66667],"57356":[.25142,.75726,0,0,.77778],"57357":[.25142,.75726,0,0,.77778],"57358":[.41951,.91951,0,0,.77778],"57359":[.30274,.79383,0,0,.77778],"57360":[.30274,.79383,0,0,.77778],"57361":[.41951,.91951,0,0,.77778],"57366":[.25142,.75726,0,0,.77778],"57367":[.25142,.75726,0,0,.77778],"57368":[.25142,.75726,0,0,.77778],"57369":[.25142,.75726,0,0,.77778],"57370":[.13597,.63597,0,0,.77778],"57371":[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{"48":[0,.43056,0,0,.5],"49":[0,.43056,0,0,.5],"50":[0,.43056,0,0,.5],"51":[.19444,.43056,0,0,.5],"52":[.19444,.43056,0,0,.5],"53":[.19444,.43056,0,0,.5],"54":[0,.64444,0,0,.5],"55":[.19444,.43056,0,0,.5],"56":[0,.64444,0,0,.5],"57":[.19444,.43056,0,0,.5],"65":[0,.68333,0,.19445,.79847],"66":[0,.68333,.03041,.13889,.65681],"67":[0,.68333,.05834,.13889,.52653],"68":[0,.68333,.02778,.08334,.77139],"69":[0,.68333,.08944,.11111,.52778],"70":[0,.68333,.09931,.11111,.71875],"71":[.09722,.68333,.0593,.11111,.59487],"72":[0,.68333,.00965,.11111,.84452],"73":[0,.68333,.07382,0,.54452],"74":[.09722,.68333,.18472,.16667,.67778],"75":[0,.68333,.01445,.05556,.76195],"76":[0,.68333,0,.13889,.68972],"77":[0,.68333,0,.13889,1.2009],"78":[0,.68333,.14736,.08334,.82049],"79":[0,.68333,.02778,.11111,.79611],"80":[0,.68333,.08222,.08334,.69556],"81":[.09722,.68333,0,.11111,.81667],"82":[0,.68333,0,.08334,.8475],"83":[0,.68333,.075,.13889,.60556],"84":[0,.68333,.25417,0,.54464],"85":[0,.68333,.09931,.08334,.62583],"86":[0,.68333,.08222,0,.61278],"87":[0,.68333,.08222,.08334,.98778],"88":[0,.68333,.14643,.13889,.7133],"89":[.09722,.68333,.08222,.08334,.66834],"90":[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{"33":[0,.69141,0,0,.29574],"34":[0,.69141,0,0,.21471],"38":[0,.69141,0,0,.73786],"39":[0,.69141,0,0,.21201],"40":[.24982,.74947,0,0,.38865],"41":[.24982,.74947,0,0,.38865],"42":[0,.62119,0,0,.27764],"43":[.08319,.58283,0,0,.75623],"44":[0,.10803,0,0,.27764],"45":[.08319,.58283,0,0,.75623],"46":[0,.10803,0,0,.27764],"47":[.24982,.74947,0,0,.50181],"48":[0,.47534,0,0,.50181],"49":[0,.47534,0,0,.50181],"50":[0,.47534,0,0,.50181],"51":[.18906,.47534,0,0,.50181],"52":[.18906,.47534,0,0,.50181],"53":[.18906,.47534,0,0,.50181],"54":[0,.69141,0,0,.50181],"55":[.18906,.47534,0,0,.50181],"56":[0,.69141,0,0,.50181],"57":[.18906,.47534,0,0,.50181],"58":[0,.47534,0,0,.21606],"59":[.12604,.47534,0,0,.21606],"61":[-.13099,.36866,0,0,.75623],"63":[0,.69141,0,0,.36245],"65":[0,.69141,0,0,.7176],"66":[0,.69141,0,0,.88397],"67":[0,.69141,0,0,.61254],"68":[0,.69141,0,0,.83158],"69":[0,.69141,0,0,.66278],"70":[.12604,.69141,0,0,.61119],"71":[0,.69141,0,0,.78539],"72":[.06302,.69141,0,0,.7203],"73":[0,.69141,0,0,.55448],"74":[.12604,.69141,0,0,.55231],"75":[0,.69141,0,0,.66845],"76":[0,.69141,0,0,.66602],"77":[0,.69141,0,0,1.04953],"78":[0,.69141,0,0,.83212],"79":[0,.69141,0,0,.82699],"80":[.18906,.69141,0,0,.82753],"81":[.03781,.69141,0,0,.82699],"82":[0,.69141,0,0,.82807],"83":[0,.69141,0,0,.82861],"84":[0,.69141,0,0,.66899],"85":[0,.69141,0,0,.64576],"86":[0,.69141,0,0,.83131],"87":[0,.69141,0,0,1.04602],"88":[0,.69141,0,0,.71922],"89":[.18906,.69141,0,0,.83293],"90":[.12604,.69141,0,0,.60201],"91":[.24982,.74947,0,0,.27764],"93":[.24982,.74947,0,0,.27764],"94":[0,.69141,0,0,.49965],"97":[0,.47534,0,0,.50046],"98":[0,.69141,0,0,.51315],"99":[0,.47534,0,0,.38946],"100":[0,.62119,0,0,.49857],"101":[0,.47534,0,0,.40053],"102":[.18906,.69141,0,0,.32626],"103":[.18906,.47534,0,0,.5037],"104":[.18906,.69141,0,0,.52126],"105":[0,.69141,0,0,.27899],"106":[0,.69141,0,0,.28088],"107":[0,.69141,0,0,.38946],"108":[0,.69141,0,0,.27953],"109":[0,.47534,0,0,.76676],"110":[0,.47534,0,0,.52666],"111":[0,.47534,0,0,.48885],"112":[.18906,.52396,0,0,.50046],"113":[.18906,.47534,0,0,.48912],"114":[0,.47534,0,0,.38919],"115":[0,.47534,0,0,.44266],"116":[0,.62119,0,0,.33301],"117":[0,.47534,0,0,.5172],"118":[0,.52396,0,0,.5118],"119":[0,.52396,0,0,.77351],"120":[.18906,.47534,0,0,.38865],"121":[.18906,.47534,0,0,.49884],"122":[.18906,.47534,0,0,.39054],"8216":[0,.69141,0,0,.21471],"8217":[0,.69141,0,0,.21471],"58112":[0,.62119,0,0,.49749],"58113":[0,.62119,0,0,.4983],"58114":[.18906,.69141,0,0,.33328],"58115":[.18906,.69141,0,0,.32923],"58116":[.18906,.47534,0,0,.50343],"58117":[0,.69141,0,0,.33301],"58118":[0,.62119,0,0,.33409],"58119":[0,.47534,0,0,.50073]},"Main-Bold":{"33":[0,.69444,0,0,.35],"34":[0,.69444,0,0,.60278],"35":[.19444,.69444,0,0,.95833],"36":[.05556,.75,0,0,.575],"37":[.05556,.75,0,0,.95833],"38":[0,.69444,0,0,.89444],"39":[0,.69444,0,0,.31944],"40":[.25,.75,0,0,.44722],"41":[.25,.75,0,0,.44722],"42":[0,.75,0,0,.575],"43":[.13333,.63333,0,0,.89444],"44":[.19444,.15556,0,0,.31944],"45":[0,.44444,0,0,.38333],"46":[0,.15556,0,0,.31944],"47":[.25,.75,0,0,.575],"48":[0,.64444,0,0,.575],"49":[0,.64444,0,0,.575],"50":[0,.64444,0,0,.575],"51":[0,.64444,0,0,.575],"52":[0,.64444,0,0,.575],"53":[0,.64444,0,0,.575],"54":[0,.64444,0,0,.575],"55":[0,.64444,0,0,.575],"56":[0,.64444,0,0,.575],"57":[0,.64444,0,0,.575],"58":[0,.44444,0,0,.31944],"59":[.19444,.44444,0,0,.31944],"60":[.08556,.58556,0,0,.89444],"61":[-.10889,.39111,0,0,.89444],"62":[.08556,.58556,0,0,.89444],"63":[0,.69444,0,0,.54305],"64":[0,.69444,0,0,.89444],"65":[0,.68611,0,0,.86944],"66":[0,.68611,0,0,.81805],"67":[0,.68611,0,0,.83055],"68":[0,.68611,0,0,.88194],"69":[0,.68611,0,0,.75555],"70":[0,.68611,0,0,.72361],"71":[0,.68611,0,0,.90416],"72":[0,.68611,0,0,.9],"73":[0,.68611,0,0,.43611],"74":[0,.68611,0,0,.59444],"75":[0,.68611,0,0,.90138],"76":[0,.68611,0,0,.69166],"77":[0,.68611,0,0,1.09166],"78":[0,.68611,0,0,.9],"79":[0,.68611,0,0,.86388],"80":[0,.68611,0,0,.78611],"81":[.19444,.68611,0,0,.86388],"82":[0,.68611,0,0,.8625],"83":[0,.68611,0,0,.63889],"84":[0,.68611,0,0,.8],"85":[0,.68611,0,0,.88472],"86":[0,.68611,.01597,0,.86944],"87":[0,.68611,.01597,0,1.18888],"88":[0,.68611,0,0,.86944],"89":[0,.68611,.02875,0,.86944],"90":[0,.68611,0,0,.70277],"91":[.25,.75,0,0,.31944],"92":[.25,.75,0,0,.575],"93":[.25,.75,0,0,.31944],"94":[0,.69444,0,0,.575],"95":[.31,.13444,.03194,0,.575],"97":[0,.44444,0,0,.55902],"98":[0,.69444,0,0,.63889],"99":[0,.44444,0,0,.51111],"100":[0,.69444,0,0,.63889],"101":[0,.44444,0,0,.52708],"102":[0,.69444,.10903,0,.35139],"103":[.19444,.44444,.01597,0,.575],"104":[0,.69444,0,0,.63889],"105":[0,.69444,0,0,.31944],"106":[.19444,.69444,0,0,.35139],"107":[0,.69444,0,0,.60694],"108":[0,.69444,0,0,.31944],"109":[0,.44444,0,0,.95833],"110":[0,.44444,0,0,.63889],"111":[0,.44444,0,0,.575],"112":[.19444,.44444,0,0,.63889],"113":[.19444,.44444,0,0,.60694],"114":[0,.44444,0,0,.47361],"115":[0,.44444,0,0,.45361],"116":[0,.63492,0,0,.44722],"117":[0,.44444,0,0,.63889],"118":[0,.44444,.01597,0,.60694],"119":[0,.44444,.01597,0,.83055],"120":[0,.44444,0,0,.60694],"121":[.19444,.44444,.01597,0,.60694],"122":[0,.44444,0,0,.51111],"123":[.25,.75,0,0,.575],"124":[.25,.75,0,0,.31944],"125":[.25,.75,0,0,.575],"126":[.35,.34444,0,0,.575],"168":[0,.69444,0,0,.575],"172":[0,.44444,0,0,.76666],"176":[0,.69444,0,0,.86944],"177":[.13333,.63333,0,0,.89444],"184":[.17014,0,0,0,.51111],"198":[0,.68611,0,0,1.04166],"215":[.13333,.63333,0,0,.89444],"216":[.04861,.73472,0,0,.89444],"223":[0,.69444,0,0,.59722],"230":[0,.44444,0,0,.83055],"247":[.13333,.63333,0,0,.89444],"248":[.09722,.54167,0,0,.575],"305":[0,.44444,0,0,.31944],"338":[0,.68611,0,0,1.16944],"339":[0,.44444,0,0,.89444],"567":[.19444,.44444,0,0,.35139],"710":[0,.69444,0,0,.575],"711":[0,.63194,0,0,.575],"713":[0,.59611,0,0,.575],"714":[0,.69444,0,0,.575],"715":[0,.69444,0,0,.575],"728":[0,.69444,0,0,.575],"729":[0,.69444,0,0,.31944],"730":[0,.69444,0,0,.86944],"732":[0,.69444,0,0,.575],"733":[0,.69444,0,0,.575],"915":[0,.68611,0,0,.69166],"916":[0,.68611,0,0,.95833],"920":[0,.68611,0,0,.89444],"923":[0,.68611,0,0,.80555],"926":[0,.68611,0,0,.76666],"928":[0,.68611,0,0,.9],"931":[0,.68611,0,0,.83055],"933":[0,.68611,0,0,.89444],"934":[0,.68611,0,0,.83055],"936":[0,.68611,0,0,.89444],"937":[0,.68611,0,0,.83055],"8211":[0,.44444,.03194,0,.575],"8212":[0,.44444,.03194,0,1.14999],"8216":[0,.69444,0,0,.31944],"8217":[0,.69444,0,0,.31944],"8220":[0,.69444,0,0,.60278],"8221":[0,.69444,0,0,.60278],"8224":[.19444,.69444,0,0,.51111],"8225":[.19444,.69444,0,0,.51111],"8242":[0,.55556,0,0,.34444],"8407":[0,.72444,.15486,0,.575],"8463":[0,.69444,0,0,.66759],"8465":[0,.69444,0,0,.83055],"8467":[0,.69444,0,0,.47361],"8472":[.19444,.44444,0,0,.74027],"8476":[0,.69444,0,0,.83055],"8501":[0,.69444,0,0,.70277],"8592":[-.10889,.39111,0,0,1.14999],"8593":[.19444,.69444,0,0,.575],"8594":[-.10889,.39111,0,0,1.14999],"8595":[.19444,.69444,0,0,.575],"8596":[-.10889,.39111,0,0,1.14999],"8597":[.25,.75,0,0,.575],"8598":[.19444,.69444,0,0,1.14999],"8599":[.19444,.69444,0,0,1.14999],"8600":[.19444,.69444,0,0,1.14999],"8601":[.19444,.69444,0,0,1.14999],"8636":[-.10889,.39111,0,0,1.14999],"8637":[-.10889,.39111,0,0,1.14999],"8640":[-.10889,.39111,0,0,1.14999],"8641":[-.10889,.39111,0,0,1.14999],"8656":[-.10889,.39111,0,0,1.14999],"8657":[.19444,.69444,0,0,.70277],"8658":[-.10889,.39111,0,0,1.14999],"8659":[.19444,.69444,0,0,.70277],"8660":[-.10889,.39111,0,0,1.14999],"8661":[.25,.75,0,0,.70277],"8704":[0,.69444,0,0,.63889],"8706":[0,.69444,.06389,0,.62847],"8707":[0,.69444,0,0,.63889],"8709":[.05556,.75,0,0,.575],"8711":[0,.68611,0,0,.95833],"8712":[.08556,.58556,0,0,.76666],"8715":[.08556,.58556,0,0,.76666],"8722":[.13333,.63333,0,0,.89444],"8723":[.13333,.63333,0,0,.89444],"8725":[.25,.75,0,0,.575],"8726":[.25,.75,0,0,.575],"8727":[-.02778,.47222,0,0,.575],"8728":[-.02639,.47361,0,0,.575],"8729":[-.02639,.47361,0,0,.575],"8730":[.18,.82,0,0,.95833],"8733":[0,.44444,0,0,.89444],"8734":[0,.44444,0,0,1.14999],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.31944],"8741":[.25,.75,0,0,.575],"8743":[0,.55556,0,0,.76666],"8744":[0,.55556,0,0,.76666],"8745":[0,.55556,0,0,.76666],"8746":[0,.55556,0,0,.76666],"8747":[.19444,.69444,.12778,0,.56875],"8764":[-.10889,.39111,0,0,.89444],"8768":[.19444,.69444,0,0,.31944],"8771":[.00222,.50222,0,0,.89444],"8776":[.02444,.52444,0,0,.89444],"8781":[.00222,.50222,0,0,.89444],"8801":[.00222,.50222,0,0,.89444],"8804":[.19667,.69667,0,0,.89444],"8805":[.19667,.69667,0,0,.89444],"8810":[.08556,.58556,0,0,1.14999],"8811":[.08556,.58556,0,0,1.14999],"8826":[.08556,.58556,0,0,.89444],"8827":[.08556,.58556,0,0,.89444],"8834":[.08556,.58556,0,0,.89444],"8835":[.08556,.58556,0,0,.89444],"8838":[.19667,.69667,0,0,.89444],"8839":[.19667,.69667,0,0,.89444],"8846":[0,.55556,0,0,.76666],"8849":[.19667,.69667,0,0,.89444],"8850":[.19667,.69667,0,0,.89444],"8851":[0,.55556,0,0,.76666],"8852":[0,.55556,0,0,.76666],"8853":[.13333,.63333,0,0,.89444],"8854":[.13333,.63333,0,0,.89444],"8855":[.13333,.63333,0,0,.89444],"8856":[.13333,.63333,0,0,.89444],"8857":[.13333,.63333,0,0,.89444],"8866":[0,.69444,0,0,.70277],"8867":[0,.69444,0,0,.70277],"8868":[0,.69444,0,0,.89444],"8869":[0,.69444,0,0,.89444],"8900":[-.02639,.47361,0,0,.575],"8901":[-.02639,.47361,0,0,.31944],"8902":[-.02778,.47222,0,0,.575],"8968":[.25,.75,0,0,.51111],"8969":[.25,.75,0,0,.51111],"8970":[.25,.75,0,0,.51111],"8971":[.25,.75,0,0,.51111],"8994":[-.13889,.36111,0,0,1.14999],"8995":[-.13889,.36111,0,0,1.14999],"9651":[.19444,.69444,0,0,1.02222],"9657":[-.02778,.47222,0,0,.575],"9661":[.19444,.69444,0,0,1.02222],"9667":[-.02778,.47222,0,0,.575],"9711":[.19444,.69444,0,0,1.14999],"9824":[.12963,.69444,0,0,.89444],"9825":[.12963,.69444,0,0,.89444],"9826":[.12963,.69444,0,0,.89444],"9827":[.12963,.69444,0,0,.89444],"9837":[0,.75,0,0,.44722],"9838":[.19444,.69444,0,0,.44722],"9839":[.19444,.69444,0,0,.44722],"10216":[.25,.75,0,0,.44722],"10217":[.25,.75,0,0,.44722],"10815":[0,.68611,0,0,.9],"10927":[.19667,.69667,0,0,.89444],"10928":[.19667,.69667,0,0,.89444],"57376":[.19444,.69444,0,0,0]},"Main-BoldItalic":{"33":[0,.69444,.11417,0,.38611],"34":[0,.69444,.07939,0,.62055],"35":[.19444,.69444,.06833,0,.94444],"37":[.05556,.75,.12861,0,.94444],"38":[0,.69444,.08528,0,.88555],"39":[0,.69444,.12945,0,.35555],"40":[.25,.75,.15806,0,.47333],"41":[.25,.75,.03306,0,.47333],"42":[0,.75,.14333,0,.59111],"43":[.10333,.60333,.03306,0,.88555],"44":[.19444,.14722,0,0,.35555],"45":[0,.44444,.02611,0,.41444],"46":[0,.14722,0,0,.35555],"47":[.25,.75,.15806,0,.59111],"48":[0,.64444,.13167,0,.59111],"49":[0,.64444,.13167,0,.59111],"50":[0,.64444,.13167,0,.59111],"51":[0,.64444,.13167,0,.59111],"52":[.19444,.64444,.13167,0,.59111],"53":[0,.64444,.13167,0,.59111],"54":[0,.64444,.13167,0,.59111],"55":[.19444,.64444,.13167,0,.59111],"56":[0,.64444,.13167,0,.59111],"57":[0,.64444,.13167,0,.59111],"58":[0,.44444,.06695,0,.35555],"59":[.19444,.44444,.06695,0,.35555],"61":[-.10889,.39111,.06833,0,.88555],"63":[0,.69444,.11472,0,.59111],"64":[0,.69444,.09208,0,.88555],"65":[0,.68611,0,0,.86555],"66":[0,.68611,.0992,0,.81666],"67":[0,.68611,.14208,0,.82666],"68":[0,.68611,.09062,0,.87555],"69":[0,.68611,.11431,0,.75666],"70":[0,.68611,.12903,0,.72722],"71":[0,.68611,.07347,0,.89527],"72":[0,.68611,.17208,0,.8961],"73":[0,.68611,.15681,0,.47166],"74":[0,.68611,.145,0,.61055],"75":[0,.68611,.14208,0,.89499],"76":[0,.68611,0,0,.69777],"77":[0,.68611,.17208,0,1.07277],"78":[0,.68611,.17208,0,.8961],"79":[0,.68611,.09062,0,.85499],"80":[0,.68611,.0992,0,.78721],"81":[.19444,.68611,.09062,0,.85499],"82":[0,.68611,.02559,0,.85944],"83":[0,.68611,.11264,0,.64999],"84":[0,.68611,.12903,0,.7961],"85":[0,.68611,.17208,0,.88083],"86":[0,.68611,.18625,0,.86555],"87":[0,.68611,.18625,0,1.15999],"88":[0,.68611,.15681,0,.86555],"89":[0,.68611,.19803,0,.86555],"90":[0,.68611,.14208,0,.70888],"91":[.25,.75,.1875,0,.35611],"93":[.25,.75,.09972,0,.35611],"94":[0,.69444,.06709,0,.59111],"95":[.31,.13444,.09811,0,.59111],"97":[0,.44444,.09426,0,.59111],"98":[0,.69444,.07861,0,.53222],"99":[0,.44444,.05222,0,.53222],"100":[0,.69444,.10861,0,.59111],"101":[0,.44444,.085,0,.53222],"102":[.19444,.69444,.21778,0,.4],"103":[.19444,.44444,.105,0,.53222],"104":[0,.69444,.09426,0,.59111],"105":[0,.69326,.11387,0,.35555],"106":[.19444,.69326,.1672,0,.35555],"107":[0,.69444,.11111,0,.53222],"108":[0,.69444,.10861,0,.29666],"109":[0,.44444,.09426,0,.94444],"110":[0,.44444,.09426,0,.64999],"111":[0,.44444,.07861,0,.59111],"112":[.19444,.44444,.07861,0,.59111],"113":[.19444,.44444,.105,0,.53222],"114":[0,.44444,.11111,0,.50167],"115":[0,.44444,.08167,0,.48694],"116":[0,.63492,.09639,0,.385],"117":[0,.44444,.09426,0,.62055],"118":[0,.44444,.11111,0,.53222],"119":[0,.44444,.11111,0,.76777],"120":[0,.44444,.12583,0,.56055],"121":[.19444,.44444,.105,0,.56166],"122":[0,.44444,.13889,0,.49055],"126":[.35,.34444,.11472,0,.59111],"163":[0,.69444,0,0,.86853],"168":[0,.69444,.11473,0,.59111],"176":[0,.69444,0,0,.94888],"184":[.17014,0,0,0,.53222],"198":[0,.68611,.11431,0,1.02277],"216":[.04861,.73472,.09062,0,.88555],"223":[.19444,.69444,.09736,0,.665],"230":[0,.44444,.085,0,.82666],"248":[.09722,.54167,.09458,0,.59111],"305":[0,.44444,.09426,0,.35555],"338":[0,.68611,.11431,0,1.14054],"339":[0,.44444,.085,0,.82666],"567":[.19444,.44444,.04611,0,.385],"710":[0,.69444,.06709,0,.59111],"711":[0,.63194,.08271,0,.59111],"713":[0,.59444,.10444,0,.59111],"714":[0,.69444,.08528,0,.59111],"715":[0,.69444,0,0,.59111],"728":[0,.69444,.10333,0,.59111],"729":[0,.69444,.12945,0,.35555],"730":[0,.69444,0,0,.94888],"732":[0,.69444,.11472,0,.59111],"733":[0,.69444,.11472,0,.59111],"915":[0,.68611,.12903,0,.69777],"916":[0,.68611,0,0,.94444],"920":[0,.68611,.09062,0,.88555],"923":[0,.68611,0,0,.80666],"926":[0,.68611,.15092,0,.76777],"928":[0,.68611,.17208,0,.8961],"931":[0,.68611,.11431,0,.82666],"933":[0,.68611,.10778,0,.88555],"934":[0,.68611,.05632,0,.82666],"936":[0,.68611,.10778,0,.88555],"937":[0,.68611,.0992,0,.82666],"8211":[0,.44444,.09811,0,.59111],"8212":[0,.44444,.09811,0,1.18221],"8216":[0,.69444,.12945,0,.35555],"8217":[0,.69444,.12945,0,.35555],"8220":[0,.69444,.16772,0,.62055],"8221":[0,.69444,.07939,0,.62055]},"Main-Italic":{"33":[0,.69444,.12417,0,.30667],"34":[0,.69444,.06961,0,.51444],"35":[.19444,.69444,.06616,0,.81777],"37":[.05556,.75,.13639,0,.81777],"38":[0,.69444,.09694,0,.76666],"39":[0,.69444,.12417,0,.30667],"40":[.25,.75,.16194,0,.40889],"41":[.25,.75,.03694,0,.40889],"42":[0,.75,.14917,0,.51111],"43":[.05667,.56167,.03694,0,.76666],"44":[.19444,.10556,0,0,.30667],"45":[0,.43056,.02826,0,.35778],"46":[0,.10556,0,0,.30667],"47":[.25,.75,.16194,0,.51111],"48":[0,.64444,.13556,0,.51111],"49":[0,.64444,.13556,0,.51111],"50":[0,.64444,.13556,0,.51111],"51":[0,.64444,.13556,0,.51111],"52":[.19444,.64444,.13556,0,.51111],"53":[0,.64444,.13556,0,.51111],"54":[0,.64444,.13556,0,.51111],"55":[.19444,.64444,.13556,0,.51111],"56":[0,.64444,.13556,0,.51111],"57":[0,.64444,.13556,0,.51111],"58":[0,.43056,.0582,0,.30667],"59":[.19444,.43056,.0582,0,.30667],"61":[-.13313,.36687,.06616,0,.76666],"63":[0,.69444,.1225,0,.51111],"64":[0,.69444,.09597,0,.76666],"65":[0,.68333,0,0,.74333],"66":[0,.68333,.10257,0,.70389],"67":[0,.68333,.14528,0,.71555],"68":[0,.68333,.09403,0,.755],"69":[0,.68333,.12028,0,.67833],"70":[0,.68333,.13305,0,.65277],"71":[0,.68333,.08722,0,.77361],"72":[0,.68333,.16389,0,.74333],"73":[0,.68333,.15806,0,.38555],"74":[0,.68333,.14028,0,.525],"75":[0,.68333,.14528,0,.76888],"76":[0,.68333,0,0,.62722],"77":[0,.68333,.16389,0,.89666],"78":[0,.68333,.16389,0,.74333],"79":[0,.68333,.09403,0,.76666],"80":[0,.68333,.10257,0,.67833],"81":[.19444,.68333,.09403,0,.76666],"82":[0,.68333,.03868,0,.72944],"83":[0,.68333,.11972,0,.56222],"84":[0,.68333,.13305,0,.71555],"85":[0,.68333,.16389,0,.74333],"86":[0,.68333,.18361,0,.74333],"87":[0,.68333,.18361,0,.99888],"88":[0,.68333,.15806,0,.74333],"89":[0,.68333,.19383,0,.74333],"90":[0,.68333,.14528,0,.61333],"91":[.25,.75,.1875,0,.30667],"93":[.25,.75,.10528,0,.30667],"94":[0,.69444,.06646,0,.51111],"95":[.31,.12056,.09208,0,.51111],"97":[0,.43056,.07671,0,.51111],"98":[0,.69444,.06312,0,.46],"99":[0,.43056,.05653,0,.46],"100":[0,.69444,.10333,0,.51111],"101":[0,.43056,.07514,0,.46],"102":[.19444,.69444,.21194,0,.30667],"103":[.19444,.43056,.08847,0,.46],"104":[0,.69444,.07671,0,.51111],"105":[0,.65536,.1019,0,.30667],"106":[.19444,.65536,.14467,0,.30667],"107":[0,.69444,.10764,0,.46],"108":[0,.69444,.10333,0,.25555],"109":[0,.43056,.07671,0,.81777],"110":[0,.43056,.07671,0,.56222],"111":[0,.43056,.06312,0,.51111],"112":[.19444,.43056,.06312,0,.51111],"113":[.19444,.43056,.08847,0,.46],"114":[0,.43056,.10764,0,.42166],"115":[0,.43056,.08208,0,.40889],"116":[0,.61508,.09486,0,.33222],"117":[0,.43056,.07671,0,.53666],"118":[0,.43056,.10764,0,.46],"119":[0,.43056,.10764,0,.66444],"120":[0,.43056,.12042,0,.46389],"121":[.19444,.43056,.08847,0,.48555],"122":[0,.43056,.12292,0,.40889],"126":[.35,.31786,.11585,0,.51111],"163":[0,.69444,0,0,.76909],"168":[0,.66786,.10474,0,.51111],"176":[0,.69444,0,0,.83129],"184":[.17014,0,0,0,.46],"198":[0,.68333,.12028,0,.88277],"216":[.04861,.73194,.09403,0,.76666],"223":[.19444,.69444,.10514,0,.53666],"230":[0,.43056,.07514,0,.71555],"248":[.09722,.52778,.09194,0,.51111],"305":[0,.43056,0,.02778,.32246],"338":[0,.68333,.12028,0,.98499],"339":[0,.43056,.07514,0,.71555],"567":[.19444,.43056,0,.08334,.38403],"710":[0,.69444,.06646,0,.51111],"711":[0,.62847,.08295,0,.51111],"713":[0,.56167,.10333,0,.51111],"714":[0,.69444,.09694,0,.51111],"715":[0,.69444,0,0,.51111],"728":[0,.69444,.10806,0,.51111],"729":[0,.66786,.11752,0,.30667],"730":[0,.69444,0,0,.83129],"732":[0,.66786,.11585,0,.51111],"733":[0,.69444,.1225,0,.51111],"915":[0,.68333,.13305,0,.62722],"916":[0,.68333,0,0,.81777],"920":[0,.68333,.09403,0,.76666],"923":[0,.68333,0,0,.69222],"926":[0,.68333,.15294,0,.66444],"928":[0,.68333,.16389,0,.74333],"931":[0,.68333,.12028,0,.71555],"933":[0,.68333,.11111,0,.76666],"934":[0,.68333,.05986,0,.71555],"936":[0,.68333,.11111,0,.76666],"937":[0,.68333,.10257,0,.71555],"8211":[0,.43056,.09208,0,.51111],"8212":[0,.43056,.09208,0,1.02222],"8216":[0,.69444,.12417,0,.30667],"8217":[0,.69444,.12417,0,.30667],"8220":[0,.69444,.1685,0,.51444],"8221":[0,.69444,.06961,0,.51444],"8463":[0,.68889,0,0,.54028]},"Main-Regular":{"32":[0,0,0,0,.25],"33":[0,.69444,0,0,.27778],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.77778],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.19444,.10556,0,0,.27778],"45":[0,.43056,0,0,.33333],"46":[0,.10556,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.64444,0,0,.5],"49":[0,.64444,0,0,.5],"50":[0,.64444,0,0,.5],"51":[0,.64444,0,0,.5],"52":[0,.64444,0,0,.5],"53":[0,.64444,0,0,.5],"54":[0,.64444,0,0,.5],"55":[0,.64444,0,0,.5],"56":[0,.64444,0,0,.5],"57":[0,.64444,0,0,.5],"58":[0,.43056,0,0,.27778],"59":[.19444,.43056,0,0,.27778],"60":[.0391,.5391,0,0,.77778],"61":[-.13313,.36687,0,0,.77778],"62":[.0391,.5391,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.77778],"65":[0,.68333,0,0,.75],"66":[0,.68333,0,0,.70834],"67":[0,.68333,0,0,.72222],"68":[0,.68333,0,0,.76389],"69":[0,.68333,0,0,.68056],"70":[0,.68333,0,0,.65278],"71":[0,.68333,0,0,.78472],"72":[0,.68333,0,0,.75],"73":[0,.68333,0,0,.36111],"74":[0,.68333,0,0,.51389],"75":[0,.68333,0,0,.77778],"76":[0,.68333,0,0,.625],"77":[0,.68333,0,0,.91667],"78":[0,.68333,0,0,.75],"79":[0,.68333,0,0,.77778],"80":[0,.68333,0,0,.68056],"81":[.19444,.68333,0,0,.77778],"82":[0,.68333,0,0,.73611],"83":[0,.68333,0,0,.55556],"84":[0,.68333,0,0,.72222],"85":[0,.68333,0,0,.75],"86":[0,.68333,.01389,0,.75],"87":[0,.68333,.01389,0,1.02778],"88":[0,.68333,0,0,.75],"89":[0,.68333,.025,0,.75],"90":[0,.68333,0,0,.61111],"91":[.25,.75,0,0,.27778],"92":[.25,.75,0,0,.5],"93":[.25,.75,0,0,.27778],"94":[0,.69444,0,0,.5],"95":[.31,.12056,.02778,0,.5],"97":[0,.43056,0,0,.5],"98":[0,.69444,0,0,.55556],"99":[0,.43056,0,0,.44445],"100":[0,.69444,0,0,.55556],"101":[0,.43056,0,0,.44445],"102":[0,.69444,.07778,0,.30556],"103":[.19444,.43056,.01389,0,.5],"104":[0,.69444,0,0,.55556],"105":[0,.66786,0,0,.27778],"106":[.19444,.66786,0,0,.30556],"107":[0,.69444,0,0,.52778],"108":[0,.69444,0,0,.27778],"109":[0,.43056,0,0,.83334],"110":[0,.43056,0,0,.55556],"111":[0,.43056,0,0,.5],"112":[.19444,.43056,0,0,.55556],"113":[.19444,.43056,0,0,.52778],"114":[0,.43056,0,0,.39167],"115":[0,.43056,0,0,.39445],"116":[0,.61508,0,0,.38889],"117":[0,.43056,0,0,.55556],"118":[0,.43056,.01389,0,.52778],"119":[0,.43056,.01389,0,.72222],"120":[0,.43056,0,0,.52778],"121":[.19444,.43056,.01389,0,.52778],"122":[0,.43056,0,0,.44445],"123":[.25,.75,0,0,.5],"124":[.25,.75,0,0,.27778],"125":[.25,.75,0,0,.5],"126":[.35,.31786,0,0,.5],"160":[0,0,0,0,.25],"167":[.19444,.69444,0,0,.44445],"168":[0,.66786,0,0,.5],"172":[0,.43056,0,0,.66667],"176":[0,.69444,0,0,.75],"177":[.08333,.58333,0,0,.77778],"182":[.19444,.69444,0,0,.61111],"184":[.17014,0,0,0,.44445],"198":[0,.68333,0,0,.90278],"215":[.08333,.58333,0,0,.77778],"216":[.04861,.73194,0,0,.77778],"223":[0,.69444,0,0,.5],"230":[0,.43056,0,0,.72222],"247":[.08333,.58333,0,0,.77778],"248":[.09722,.52778,0,0,.5],"305":[0,.43056,0,0,.27778],"338":[0,.68333,0,0,1.01389],"339":[0,.43056,0,0,.77778],"567":[.19444,.43056,0,0,.30556],"710":[0,.69444,0,0,.5],"711":[0,.62847,0,0,.5],"713":[0,.56778,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.66786,0,0,.27778],"730":[0,.69444,0,0,.75],"732":[0,.66786,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.68333,0,0,.625],"916":[0,.68333,0,0,.83334],"920":[0,.68333,0,0,.77778],"923":[0,.68333,0,0,.69445],"926":[0,.68333,0,0,.66667],"928":[0,.68333,0,0,.75],"931":[0,.68333,0,0,.72222],"933":[0,.68333,0,0,.77778],"934":[0,.68333,0,0,.72222],"936":[0,.68333,0,0,.77778],"937":[0,.68333,0,0,.72222],"8211":[0,.43056,.02778,0,.5],"8212":[0,.43056,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5],"8224":[.19444,.69444,0,0,.44445],"8225":[.19444,.69444,0,0,.44445],"8230":[0,.12,0,0,1.172],"8242":[0,.55556,0,0,.275],"8407":[0,.71444,.15382,0,.5],"8463":[0,.68889,0,0,.54028],"8465":[0,.69444,0,0,.72222],"8467":[0,.69444,0,.11111,.41667],"8472":[.19444,.43056,0,.11111,.63646],"8476":[0,.69444,0,0,.72222],"8501":[0,.69444,0,0,.61111],"8592":[-.13313,.36687,0,0,1],"8593":[.19444,.69444,0,0,.5],"8594":[-.13313,.36687,0,0,1],"8595":[.19444,.69444,0,0,.5],"8596":[-.13313,.36687,0,0,1],"8597":[.25,.75,0,0,.5],"8598":[.19444,.69444,0,0,1],"8599":[.19444,.69444,0,0,1],"8600":[.19444,.69444,0,0,1],"8601":[.19444,.69444,0,0,1],"8614":[.011,.511,0,0,1],"8617":[.011,.511,0,0,1.126],"8618":[.011,.511,0,0,1.126],"8636":[-.13313,.36687,0,0,1],"8637":[-.13313,.36687,0,0,1],"8640":[-.13313,.36687,0,0,1],"8641":[-.13313,.36687,0,0,1],"8652":[.011,.671,0,0,1],"8656":[-.13313,.36687,0,0,1],"8657":[.19444,.69444,0,0,.61111],"8658":[-.13313,.36687,0,0,1],"8659":[.19444,.69444,0,0,.61111],"8660":[-.13313,.36687,0,0,1],"8661":[.25,.75,0,0,.61111],"8704":[0,.69444,0,0,.55556],"8706":[0,.69444,.05556,.08334,.5309],"8707":[0,.69444,0,0,.55556],"8709":[.05556,.75,0,0,.5],"8711":[0,.68333,0,0,.83334],"8712":[.0391,.5391,0,0,.66667],"8715":[.0391,.5391,0,0,.66667],"8722":[.08333,.58333,0,0,.77778],"8723":[.08333,.58333,0,0,.77778],"8725":[.25,.75,0,0,.5],"8726":[.25,.75,0,0,.5],"8727":[-.03472,.46528,0,0,.5],"8728":[-.05555,.44445,0,0,.5],"8729":[-.05555,.44445,0,0,.5],"8730":[.2,.8,0,0,.83334],"8733":[0,.43056,0,0,.77778],"8734":[0,.43056,0,0,1],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.27778],"8741":[.25,.75,0,0,.5],"8743":[0,.55556,0,0,.66667],"8744":[0,.55556,0,0,.66667],"8745":[0,.55556,0,0,.66667],"8746":[0,.55556,0,0,.66667],"8747":[.19444,.69444,.11111,0,.41667],"8764":[-.13313,.36687,0,0,.77778],"8768":[.19444,.69444,0,0,.27778],"8771":[-.03625,.46375,0,0,.77778],"8773":[-.022,.589,0,0,1],"8776":[-.01688,.48312,0,0,.77778],"8781":[-.03625,.46375,0,0,.77778],"8784":[-.133,.67,0,0,.778],"8801":[-.03625,.46375,0,0,.77778],"8804":[.13597,.63597,0,0,.77778],"8805":[.13597,.63597,0,0,.77778],"8810":[.0391,.5391,0,0,1],"8811":[.0391,.5391,0,0,1],"8826":[.0391,.5391,0,0,.77778],"8827":[.0391,.5391,0,0,.77778],"8834":[.0391,.5391,0,0,.77778],"8835":[.0391,.5391,0,0,.77778],"8838":[.13597,.63597,0,0,.77778],"8839":[.13597,.63597,0,0,.77778],"8846":[0,.55556,0,0,.66667],"8849":[.13597,.63597,0,0,.77778],"8850":[.13597,.63597,0,0,.77778],"8851":[0,.55556,0,0,.66667],"8852":[0,.55556,0,0,.66667],"8853":[.08333,.58333,0,0,.77778],"8854":[.08333,.58333,0,0,.77778],"8855":[.08333,.58333,0,0,.77778],"8856":[.08333,.58333,0,0,.77778],"8857":[.08333,.58333,0,0,.77778],"8866":[0,.69444,0,0,.61111],"8867":[0,.69444,0,0,.61111],"8868":[0,.69444,0,0,.77778],"8869":[0,.69444,0,0,.77778],"8872":[.249,.75,0,0,.867],"8900":[-.05555,.44445,0,0,.5],"8901":[-.05555,.44445,0,0,.27778],"8902":[-.03472,.46528,0,0,.5],"8904":[.005,.505,0,0,.9],"8942":[.03,.9,0,0,.278],"8943":[-.19,.31,0,0,1.172],"8945":[-.1,.82,0,0,1.282],"8968":[.25,.75,0,0,.44445],"8969":[.25,.75,0,0,.44445],"8970":[.25,.75,0,0,.44445],"8971":[.25,.75,0,0,.44445],"8994":[-.14236,.35764,0,0,1],"8995":[-.14236,.35764,0,0,1],"9136":[.244,.744,0,0,.412],"9137":[.244,.744,0,0,.412],"9651":[.19444,.69444,0,0,.88889],"9657":[-.03472,.46528,0,0,.5],"9661":[.19444,.69444,0,0,.88889],"9667":[-.03472,.46528,0,0,.5],"9711":[.19444,.69444,0,0,1],"9824":[.12963,.69444,0,0,.77778],"9825":[.12963,.69444,0,0,.77778],"9826":[.12963,.69444,0,0,.77778],"9827":[.12963,.69444,0,0,.77778],"9837":[0,.75,0,0,.38889],"9838":[.19444,.69444,0,0,.38889],"9839":[.19444,.69444,0,0,.38889],"10216":[.25,.75,0,0,.38889],"10217":[.25,.75,0,0,.38889],"10222":[.244,.744,0,0,.412],"10223":[.244,.744,0,0,.412],"10229":[.011,.511,0,0,1.609],"10230":[.011,.511,0,0,1.638],"10231":[.011,.511,0,0,1.859],"10232":[.024,.525,0,0,1.609],"10233":[.024,.525,0,0,1.638],"10234":[.024,.525,0,0,1.858],"10236":[.011,.511,0,0,1.638],"10815":[0,.68333,0,0,.75],"10927":[.13597,.63597,0,0,.77778],"10928":[.13597,.63597,0,0,.77778],"57376":[.19444,.69444,0,0,0]},"Math-BoldItalic":{"65":[0,.68611,0,0,.86944],"66":[0,.68611,.04835,0,.8664],"67":[0,.68611,.06979,0,.81694],"68":[0,.68611,.03194,0,.93812],"69":[0,.68611,.05451,0,.81007],"70":[0,.68611,.15972,0,.68889],"71":[0,.68611,0,0,.88673],"72":[0,.68611,.08229,0,.98229],"73":[0,.68611,.07778,0,.51111],"74":[0,.68611,.10069,0,.63125],"75":[0,.68611,.06979,0,.97118],"76":[0,.68611,0,0,.75555],"77":[0,.68611,.11424,0,1.14201],"78":[0,.68611,.11424,0,.95034],"79":[0,.68611,.03194,0,.83666],"80":[0,.68611,.15972,0,.72309],"81":[.19444,.68611,0,0,.86861],"82":[0,.68611,.00421,0,.87235],"83":[0,.68611,.05382,0,.69271],"84":[0,.68611,.15972,0,.63663],"85":[0,.68611,.11424,0,.80027],"86":[0,.68611,.25555,0,.67778],"87":[0,.68611,.15972,0,1.09305],"88":[0,.68611,.07778,0,.94722],"89":[0,.68611,.25555,0,.67458],"90":[0,.68611,.06979,0,.77257],"97":[0,.44444,0,0,.63287],"98":[0,.69444,0,0,.52083],"99":[0,.44444,0,0,.51342],"100":[0,.69444,0,0,.60972],"101":[0,.44444,0,0,.55361],"102":[.19444,.69444,.11042,0,.56806],"103":[.19444,.44444,.03704,0,.5449],"104":[0,.69444,0,0,.66759],"105":[0,.69326,0,0,.4048],"106":[.19444,.69326,.0622,0,.47083],"107":[0,.69444,.01852,0,.6037],"108":[0,.69444,.0088,0,.34815],"109":[0,.44444,0,0,1.0324],"110":[0,.44444,0,0,.71296],"111":[0,.44444,0,0,.58472],"112":[.19444,.44444,0,0,.60092],"113":[.19444,.44444,.03704,0,.54213],"114":[0,.44444,.03194,0,.5287],"115":[0,.44444,0,0,.53125],"116":[0,.63492,0,0,.41528],"117":[0,.44444,0,0,.68102],"118":[0,.44444,.03704,0,.56666],"119":[0,.44444,.02778,0,.83148],"120":[0,.44444,0,0,.65903],"121":[.19444,.44444,.03704,0,.59028],"122":[0,.44444,.04213,0,.55509],"915":[0,.68611,.15972,0,.65694],"916":[0,.68611,0,0,.95833],"920":[0,.68611,.03194,0,.86722],"923":[0,.68611,0,0,.80555],"926":[0,.68611,.07458,0,.84125],"928":[0,.68611,.08229,0,.98229],"931":[0,.68611,.05451,0,.88507],"933":[0,.68611,.15972,0,.67083],"934":[0,.68611,0,0,.76666],"936":[0,.68611,.11653,0,.71402],"937":[0,.68611,.04835,0,.8789],"945":[0,.44444,0,0,.76064],"946":[.19444,.69444,.03403,0,.65972],"947":[.19444,.44444,.06389,0,.59003],"948":[0,.69444,.03819,0,.52222],"949":[0,.44444,0,0,.52882],"950":[.19444,.69444,.06215,0,.50833],"951":[.19444,.44444,.03704,0,.6],"952":[0,.69444,.03194,0,.5618],"953":[0,.44444,0,0,.41204],"954":[0,.44444,0,0,.66759],"955":[0,.69444,0,0,.67083],"956":[.19444,.44444,0,0,.70787],"957":[0,.44444,.06898,0,.57685],"958":[.19444,.69444,.03021,0,.50833],"959":[0,.44444,0,0,.58472],"960":[0,.44444,.03704,0,.68241],"961":[.19444,.44444,0,0,.6118],"962":[.09722,.44444,.07917,0,.42361],"963":[0,.44444,.03704,0,.68588],"964":[0,.44444,.13472,0,.52083],"965":[0,.44444,.03704,0,.63055],"966":[.19444,.44444,0,0,.74722],"967":[.19444,.44444,0,0,.71805],"968":[.19444,.69444,.03704,0,.75833],"969":[0,.44444,.03704,0,.71782],"977":[0,.69444,0,0,.69155],"981":[.19444,.69444,0,0,.7125],"982":[0,.44444,.03194,0,.975],"1009":[.19444,.44444,0,0,.6118],"1013":[0,.44444,0,0,.48333]},"Math-Italic":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"Math-Regular":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{"33":[0,.69444,0,0,.36667],"34":[0,.69444,0,0,.55834],"35":[.19444,.69444,0,0,.91667],"36":[.05556,.75,0,0,.55],"37":[.05556,.75,0,0,1.02912],"38":[0,.69444,0,0,.83056],"39":[0,.69444,0,0,.30556],"40":[.25,.75,0,0,.42778],"41":[.25,.75,0,0,.42778],"42":[0,.75,0,0,.55],"43":[.11667,.61667,0,0,.85556],"44":[.10556,.13056,0,0,.30556],"45":[0,.45833,0,0,.36667],"46":[0,.13056,0,0,.30556],"47":[.25,.75,0,0,.55],"48":[0,.69444,0,0,.55],"49":[0,.69444,0,0,.55],"50":[0,.69444,0,0,.55],"51":[0,.69444,0,0,.55],"52":[0,.69444,0,0,.55],"53":[0,.69444,0,0,.55],"54":[0,.69444,0,0,.55],"55":[0,.69444,0,0,.55],"56":[0,.69444,0,0,.55],"57":[0,.69444,0,0,.55],"58":[0,.45833,0,0,.30556],"59":[.10556,.45833,0,0,.30556],"61":[-.09375,.40625,0,0,.85556],"63":[0,.69444,0,0,.51945],"64":[0,.69444,0,0,.73334],"65":[0,.69444,0,0,.73334],"66":[0,.69444,0,0,.73334],"67":[0,.69444,0,0,.70278],"68":[0,.69444,0,0,.79445],"69":[0,.69444,0,0,.64167],"70":[0,.69444,0,0,.61111],"71":[0,.69444,0,0,.73334],"72":[0,.69444,0,0,.79445],"73":[0,.69444,0,0,.33056],"74":[0,.69444,0,0,.51945],"75":[0,.69444,0,0,.76389],"76":[0,.69444,0,0,.58056],"77":[0,.69444,0,0,.97778],"78":[0,.69444,0,0,.79445],"79":[0,.69444,0,0,.79445],"80":[0,.69444,0,0,.70278],"81":[.10556,.69444,0,0,.79445],"82":[0,.69444,0,0,.70278],"83":[0,.69444,0,0,.61111],"84":[0,.69444,0,0,.73334],"85":[0,.69444,0,0,.76389],"86":[0,.69444,.01528,0,.73334],"87":[0,.69444,.01528,0,1.03889],"88":[0,.69444,0,0,.73334],"89":[0,.69444,.0275,0,.73334],"90":[0,.69444,0,0,.67223],"91":[.25,.75,0,0,.34306],"93":[.25,.75,0,0,.34306],"94":[0,.69444,0,0,.55],"95":[.35,.10833,.03056,0,.55],"97":[0,.45833,0,0,.525],"98":[0,.69444,0,0,.56111],"99":[0,.45833,0,0,.48889],"100":[0,.69444,0,0,.56111],"101":[0,.45833,0,0,.51111],"102":[0,.69444,.07639,0,.33611],"103":[.19444,.45833,.01528,0,.55],"104":[0,.69444,0,0,.56111],"105":[0,.69444,0,0,.25556],"106":[.19444,.69444,0,0,.28611],"107":[0,.69444,0,0,.53056],"108":[0,.69444,0,0,.25556],"109":[0,.45833,0,0,.86667],"110":[0,.45833,0,0,.56111],"111":[0,.45833,0,0,.55],"112":[.19444,.45833,0,0,.56111],"113":[.19444,.45833,0,0,.56111],"114":[0,.45833,.01528,0,.37222],"115":[0,.45833,0,0,.42167],"116":[0,.58929,0,0,.40417],"117":[0,.45833,0,0,.56111],"118":[0,.45833,.01528,0,.5],"119":[0,.45833,.01528,0,.74445],"120":[0,.45833,0,0,.5],"121":[.19444,.45833,.01528,0,.5],"122":[0,.45833,0,0,.47639],"126":[.35,.34444,0,0,.55],"168":[0,.69444,0,0,.55],"176":[0,.69444,0,0,.73334],"180":[0,.69444,0,0,.55],"184":[.17014,0,0,0,.48889],"305":[0,.45833,0,0,.25556],"567":[.19444,.45833,0,0,.28611],"710":[0,.69444,0,0,.55],"711":[0,.63542,0,0,.55],"713":[0,.63778,0,0,.55],"728":[0,.69444,0,0,.55],"729":[0,.69444,0,0,.30556],"730":[0,.69444,0,0,.73334],"732":[0,.69444,0,0,.55],"733":[0,.69444,0,0,.55],"915":[0,.69444,0,0,.58056],"916":[0,.69444,0,0,.91667],"920":[0,.69444,0,0,.85556],"923":[0,.69444,0,0,.67223],"926":[0,.69444,0,0,.73334],"928":[0,.69444,0,0,.79445],"931":[0,.69444,0,0,.79445],"933":[0,.69444,0,0,.85556],"934":[0,.69444,0,0,.79445],"936":[0,.69444,0,0,.85556],"937":[0,.69444,0,0,.79445],"8211":[0,.45833,.03056,0,.55],"8212":[0,.45833,.03056,0,1.10001],"8216":[0,.69444,0,0,.30556],"8217":[0,.69444,0,0,.30556],"8220":[0,.69444,0,0,.55834],"8221":[0,.69444,0,0,.55834]},"SansSerif-Italic":{"33":[0,.69444,.05733,0,.31945],"34":[0,.69444,.00316,0,.5],"35":[.19444,.69444,.05087,0,.83334],"36":[.05556,.75,.11156,0,.5],"37":[.05556,.75,.03126,0,.83334],"38":[0,.69444,.03058,0,.75834],"39":[0,.69444,.07816,0,.27778],"40":[.25,.75,.13164,0,.38889],"41":[.25,.75,.02536,0,.38889],"42":[0,.75,.11775,0,.5],"43":[.08333,.58333,.02536,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,.01946,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,.13164,0,.5],"48":[0,.65556,.11156,0,.5],"49":[0,.65556,.11156,0,.5],"50":[0,.65556,.11156,0,.5],"51":[0,.65556,.11156,0,.5],"52":[0,.65556,.11156,0,.5],"53":[0,.65556,.11156,0,.5],"54":[0,.65556,.11156,0,.5],"55":[0,.65556,.11156,0,.5],"56":[0,.65556,.11156,0,.5],"57":[0,.65556,.11156,0,.5],"58":[0,.44444,.02502,0,.27778],"59":[.125,.44444,.02502,0,.27778],"61":[-.13,.37,.05087,0,.77778],"63":[0,.69444,.11809,0,.47222],"64":[0,.69444,.07555,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,.08293,0,.66667],"67":[0,.69444,.11983,0,.63889],"68":[0,.69444,.07555,0,.72223],"69":[0,.69444,.11983,0,.59722],"70":[0,.69444,.13372,0,.56945],"71":[0,.69444,.11983,0,.66667],"72":[0,.69444,.08094,0,.70834],"73":[0,.69444,.13372,0,.27778],"74":[0,.69444,.08094,0,.47222],"75":[0,.69444,.11983,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,.08094,0,.875],"78":[0,.69444,.08094,0,.70834],"79":[0,.69444,.07555,0,.73611],"80":[0,.69444,.08293,0,.63889],"81":[.125,.69444,.07555,0,.73611],"82":[0,.69444,.08293,0,.64584],"83":[0,.69444,.09205,0,.55556],"84":[0,.69444,.13372,0,.68056],"85":[0,.69444,.08094,0,.6875],"86":[0,.69444,.1615,0,.66667],"87":[0,.69444,.1615,0,.94445],"88":[0,.69444,.13372,0,.66667],"89":[0,.69444,.17261,0,.66667],"90":[0,.69444,.11983,0,.61111],"91":[.25,.75,.15942,0,.28889],"93":[.25,.75,.08719,0,.28889],"94":[0,.69444,.0799,0,.5],"95":[.35,.09444,.08616,0,.5],"97":[0,.44444,.00981,0,.48056],"98":[0,.69444,.03057,0,.51667],"99":[0,.44444,.08336,0,.44445],"100":[0,.69444,.09483,0,.51667],"101":[0,.44444,.06778,0,.44445],"102":[0,.69444,.21705,0,.30556],"103":[.19444,.44444,.10836,0,.5],"104":[0,.69444,.01778,0,.51667],"105":[0,.67937,.09718,0,.23889],"106":[.19444,.67937,.09162,0,.26667],"107":[0,.69444,.08336,0,.48889],"108":[0,.69444,.09483,0,.23889],"109":[0,.44444,.01778,0,.79445],"110":[0,.44444,.01778,0,.51667],"111":[0,.44444,.06613,0,.5],"112":[.19444,.44444,.0389,0,.51667],"113":[.19444,.44444,.04169,0,.51667],"114":[0,.44444,.10836,0,.34167],"115":[0,.44444,.0778,0,.38333],"116":[0,.57143,.07225,0,.36111],"117":[0,.44444,.04169,0,.51667],"118":[0,.44444,.10836,0,.46111],"119":[0,.44444,.10836,0,.68334],"120":[0,.44444,.09169,0,.46111],"121":[.19444,.44444,.10836,0,.46111],"122":[0,.44444,.08752,0,.43472],"126":[.35,.32659,.08826,0,.5],"168":[0,.67937,.06385,0,.5],"176":[0,.69444,0,0,.73752],"184":[.17014,0,0,0,.44445],"305":[0,.44444,.04169,0,.23889],"567":[.19444,.44444,.04169,0,.26667],"710":[0,.69444,.0799,0,.5],"711":[0,.63194,.08432,0,.5],"713":[0,.60889,.08776,0,.5],"714":[0,.69444,.09205,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,.09483,0,.5],"729":[0,.67937,.07774,0,.27778],"730":[0,.69444,0,0,.73752],"732":[0,.67659,.08826,0,.5],"733":[0,.69444,.09205,0,.5],"915":[0,.69444,.13372,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,.07555,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,.12816,0,.66667],"928":[0,.69444,.08094,0,.70834],"931":[0,.69444,.11983,0,.72222],"933":[0,.69444,.09031,0,.77778],"934":[0,.69444,.04603,0,.72222],"936":[0,.69444,.09031,0,.77778],"937":[0,.69444,.08293,0,.72222],"8211":[0,.44444,.08616,0,.5],"8212":[0,.44444,.08616,0,1],"8216":[0,.69444,.07816,0,.27778],"8217":[0,.69444,.07816,0,.27778],"8220":[0,.69444,.14205,0,.5],"8221":[0,.69444,.00316,0,.5]},"SansSerif-Regular":{"33":[0,.69444,0,0,.31945],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.75834],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,0,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.65556,0,0,.5],"49":[0,.65556,0,0,.5],"50":[0,.65556,0,0,.5],"51":[0,.65556,0,0,.5],"52":[0,.65556,0,0,.5],"53":[0,.65556,0,0,.5],"54":[0,.65556,0,0,.5],"55":[0,.65556,0,0,.5],"56":[0,.65556,0,0,.5],"57":[0,.65556,0,0,.5],"58":[0,.44444,0,0,.27778],"59":[.125,.44444,0,0,.27778],"61":[-.13,.37,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,0,0,.66667],"67":[0,.69444,0,0,.63889],"68":[0,.69444,0,0,.72223],"69":[0,.69444,0,0,.59722],"70":[0,.69444,0,0,.56945],"71":[0,.69444,0,0,.66667],"72":[0,.69444,0,0,.70834],"73":[0,.69444,0,0,.27778],"74":[0,.69444,0,0,.47222],"75":[0,.69444,0,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,0,0,.875],"78":[0,.69444,0,0,.70834],"79":[0,.69444,0,0,.73611],"80":[0,.69444,0,0,.63889],"81":[.125,.69444,0,0,.73611],"82":[0,.69444,0,0,.64584],"83":[0,.69444,0,0,.55556],"84":[0,.69444,0,0,.68056],"85":[0,.69444,0,0,.6875],"86":[0,.69444,.01389,0,.66667],"87":[0,.69444,.01389,0,.94445],"88":[0,.69444,0,0,.66667],"89":[0,.69444,.025,0,.66667],"90":[0,.69444,0,0,.61111],"91":[.25,.75,0,0,.28889],"93":[.25,.75,0,0,.28889],"94":[0,.69444,0,0,.5],"95":[.35,.09444,.02778,0,.5],"97":[0,.44444,0,0,.48056],"98":[0,.69444,0,0,.51667],"99":[0,.44444,0,0,.44445],"100":[0,.69444,0,0,.51667],"101":[0,.44444,0,0,.44445],"102":[0,.69444,.06944,0,.30556],"103":[.19444,.44444,.01389,0,.5],"104":[0,.69444,0,0,.51667],"105":[0,.67937,0,0,.23889],"106":[.19444,.67937,0,0,.26667],"107":[0,.69444,0,0,.48889],"108":[0,.69444,0,0,.23889],"109":[0,.44444,0,0,.79445],"110":[0,.44444,0,0,.51667],"111":[0,.44444,0,0,.5],"112":[.19444,.44444,0,0,.51667],"113":[.19444,.44444,0,0,.51667],"114":[0,.44444,.01389,0,.34167],"115":[0,.44444,0,0,.38333],"116":[0,.57143,0,0,.36111],"117":[0,.44444,0,0,.51667],"118":[0,.44444,.01389,0,.46111],"119":[0,.44444,.01389,0,.68334],"120":[0,.44444,0,0,.46111],"121":[.19444,.44444,.01389,0,.46111],"122":[0,.44444,0,0,.43472],"126":[.35,.32659,0,0,.5],"168":[0,.67937,0,0,.5],"176":[0,.69444,0,0,.66667],"184":[.17014,0,0,0,.44445],"305":[0,.44444,0,0,.23889],"567":[.19444,.44444,0,0,.26667],"710":[0,.69444,0,0,.5],"711":[0,.63194,0,0,.5],"713":[0,.60889,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.67937,0,0,.27778],"730":[0,.69444,0,0,.66667],"732":[0,.67659,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.69444,0,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,0,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,0,0,.66667],"928":[0,.69444,0,0,.70834],"931":[0,.69444,0,0,.72222],"933":[0,.69444,0,0,.77778],"934":[0,.69444,0,0,.72222],"936":[0,.69444,0,0,.77778],"937":[0,.69444,0,0,.72222],"8211":[0,.44444,.02778,0,.5],"8212":[0,.44444,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5]},"Script-Regular":{"65":[0,.7,.22925,0,.80253],"66":[0,.7,.04087,0,.90757],"67":[0,.7,.1689,0,.66619],"68":[0,.7,.09371,0,.77443],"69":[0,.7,.18583,0,.56162],"70":[0,.7,.13634,0,.89544],"71":[0,.7,.17322,0,.60961],"72":[0,.7,.29694,0,.96919],"73":[0,.7,.19189,0,.80907],"74":[.27778,.7,.19189,0,1.05159],"75":[0,.7,.31259,0,.91364],"76":[0,.7,.19189,0,.87373],"77":[0,.7,.15981,0,1.08031],"78":[0,.7,.3525,0,.9015],"79":[0,.7,.08078,0,.73787],"80":[0,.7,.08078,0,1.01262],"81":[0,.7,.03305,0,.88282],"82":[0,.7,.06259,0,.85],"83":[0,.7,.19189,0,.86767],"84":[0,.7,.29087,0,.74697],"85":[0,.7,.25815,0,.79996],"86":[0,.7,.27523,0,.62204],"87":[0,.7,.27523,0,.80532],"88":[0,.7,.26006,0,.94445],"89":[0,.7,.2939,0,.70961],"90":[0,.7,.24037,0,.8212]},"Size1-Regular":{"40":[.35001,.85,0,0,.45834],"41":[.35001,.85,0,0,.45834],"47":[.35001,.85,0,0,.57778],"91":[.35001,.85,0,0,.41667],"92":[.35001,.85,0,0,.57778],"93":[.35001,.85,0,0,.41667],"123":[.35001,.85,0,0,.58334],"125":[.35001,.85,0,0,.58334],"710":[0,.72222,0,0,.55556],"732":[0,.72222,0,0,.55556],"770":[0,.72222,0,0,.55556],"771":[0,.72222,0,0,.55556],"8214":[-99e-5,.601,0,0,.77778],"8593":[1e-5,.6,0,0,.66667],"8595":[1e-5,.6,0,0,.66667],"8657":[1e-5,.6,0,0,.77778],"8659":[1e-5,.6,0,0,.77778],"8719":[.25001,.75,0,0,.94445],"8720":[.25001,.75,0,0,.94445],"8721":[.25001,.75,0,0,1.05556],"8730":[.35001,.85,0,0,1],"8739":[-.00599,.606,0,0,.33333],"8741":[-.00599,.606,0,0,.55556],"8747":[.30612,.805,.19445,0,.47222],"8748":[.306,.805,.19445,0,.47222],"8749":[.306,.805,.19445,0,.47222],"8750":[.30612,.805,.19445,0,.47222],"8896":[.25001,.75,0,0,.83334],"8897":[.25001,.75,0,0,.83334],"8898":[.25001,.75,0,0,.83334],"8899":[.25001,.75,0,0,.83334],"8968":[.35001,.85,0,0,.47222],"8969":[.35001,.85,0,0,.47222],"8970":[.35001,.85,0,0,.47222],"8971":[.35001,.85,0,0,.47222],"9168":[-99e-5,.601,0,0,.66667],"10216":[.35001,.85,0,0,.47222],"10217":[.35001,.85,0,0,.47222],"10752":[.25001,.75,0,0,1.11111],"10753":[.25001,.75,0,0,1.11111],"10754":[.25001,.75,0,0,1.11111],"10756":[.25001,.75,0,0,.83334],"10758":[.25001,.75,0,0,.83334]},"Size2-Regular":{"40":[.65002,1.15,0,0,.59722],"41":[.65002,1.15,0,0,.59722],"47":[.65002,1.15,0,0,.81111],"91":[.65002,1.15,0,0,.47222],"92":[.65002,1.15,0,0,.81111],"93":[.65002,1.15,0,0,.47222],"123":[.65002,1.15,0,0,.66667],"125":[.65002,1.15,0,0,.66667],"710":[0,.75,0,0,1],"732":[0,.75,0,0,1],"770":[0,.75,0,0,1],"771":[0,.75,0,0,1],"8719":[.55001,1.05,0,0,1.27778],"8720":[.55001,1.05,0,0,1.27778],"8721":[.55001,1.05,0,0,1.44445],"8730":[.65002,1.15,0,0,1],"8747":[.86225,1.36,.44445,0,.55556],"8748":[.862,1.36,.44445,0,.55556],"8749":[.862,1.36,.44445,0,.55556],"8750":[.86225,1.36,.44445,0,.55556],"8896":[.55001,1.05,0,0,1.11111],"8897":[.55001,1.05,0,0,1.11111],"8898":[.55001,1.05,0,0,1.11111],"8899":[.55001,1.05,0,0,1.11111],"8968":[.65002,1.15,0,0,.52778],"8969":[.65002,1.15,0,0,.52778],"8970":[.65002,1.15,0,0,.52778],"8971":[.65002,1.15,0,0,.52778],"10216":[.65002,1.15,0,0,.61111],"10217":[.65002,1.15,0,0,.61111],"10752":[.55001,1.05,0,0,1.51112],"10753":[.55001,1.05,0,0,1.51112],"10754":[.55001,1.05,0,0,1.51112],"10756":[.55001,1.05,0,0,1.11111],"10758":[.55001,1.05,0,0,1.11111]},"Size3-Regular":{"40":[.95003,1.45,0,0,.73611],"41":[.95003,1.45,0,0,.73611],"47":[.95003,1.45,0,0,1.04445],"91":[.95003,1.45,0,0,.52778],"92":[.95003,1.45,0,0,1.04445],"93":[.95003,1.45,0,0,.52778],"123":[.95003,1.45,0,0,.75],"125":[.95003,1.45,0,0,.75],"710":[0,.75,0,0,1.44445],"732":[0,.75,0,0,1.44445],"770":[0,.75,0,0,1.44445],"771":[0,.75,0,0,1.44445],"8730":[.95003,1.45,0,0,1],"8968":[.95003,1.45,0,0,.58334],"8969":[.95003,1.45,0,0,.58334],"8970":[.95003,1.45,0,0,.58334],"8971":[.95003,1.45,0,0,.58334],"10216":[.95003,1.45,0,0,.75],"10217":[.95003,1.45,0,0,.75]},"Size4-Regular":{"40":[1.25003,1.75,0,0,.79167],"41":[1.25003,1.75,0,0,.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,.58334],"123":[1.25003,1.75,0,0,.80556],"125":[1.25003,1.75,0,0,.80556],"710":[0,.825,0,0,1.8889],"732":[0,.825,0,0,1.8889],"770":[0,.825,0,0,1.8889],"771":[0,.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,.63889],"8969":[1.25003,1.75,0,0,.63889],"8970":[1.25003,1.75,0,0,.63889],"8971":[1.25003,1.75,0,0,.63889],"9115":[.64502,1.155,0,0,.875],"9116":[1e-5,.6,0,0,.875],"9117":[.64502,1.155,0,0,.875],"9118":[.64502,1.155,0,0,.875],"9119":[1e-5,.6,0,0,.875],"9120":[.64502,1.155,0,0,.875],"9121":[.64502,1.155,0,0,.66667],"9122":[-99e-5,.601,0,0,.66667],"9123":[.64502,1.155,0,0,.66667],"9124":[.64502,1.155,0,0,.66667],"9125":[-99e-5,.601,0,0,.66667],"9126":[.64502,1.155,0,0,.66667],"9127":[1e-5,.9,0,0,.88889],"9128":[.65002,1.15,0,0,.88889],"9129":[.90001,0,0,0,.88889],"9130":[0,.3,0,0,.88889],"9131":[1e-5,.9,0,0,.88889],"9132":[.65002,1.15,0,0,.88889],"9133":[.90001,0,0,0,.88889],"9143":[.88502,.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,.80556],"10217":[1.25003,1.75,0,0,.80556],"57344":[-.00499,.605,0,0,1.05556],"57345":[-.00499,.605,0,0,1.05556],"57680":[0,.12,0,0,.45],"57681":[0,.12,0,0,.45],"57682":[0,.12,0,0,.45],"57683":[0,.12,0,0,.45]},"Typewriter-Regular":{"32":[0,0,0,0,.525],"33":[0,.61111,0,0,.525],"34":[0,.61111,0,0,.525],"35":[0,.61111,0,0,.525],"36":[.08333,.69444,0,0,.525],"37":[.08333,.69444,0,0,.525],"38":[0,.61111,0,0,.525],"39":[0,.61111,0,0,.525],"40":[.08333,.69444,0,0,.525],"41":[.08333,.69444,0,0,.525],"42":[0,.52083,0,0,.525],"43":[-.08056,.53055,0,0,.525],"44":[.13889,.125,0,0,.525],"45":[-.08056,.53055,0,0,.525],"46":[0,.125,0,0,.525],"47":[.08333,.69444,0,0,.525],"48":[0,.61111,0,0,.525],"49":[0,.61111,0,0,.525],"50":[0,.61111,0,0,.525],"51":[0,.61111,0,0,.525],"52":[0,.61111,0,0,.525],"53":[0,.61111,0,0,.525],"54":[0,.61111,0,0,.525],"55":[0,.61111,0,0,.525],"56":[0,.61111,0,0,.525],"57":[0,.61111,0,0,.525],"58":[0,.43056,0,0,.525],"59":[.13889,.43056,0,0,.525],"60":[-.05556,.55556,0,0,.525],"61":[-.19549,.41562,0,0,.525],"62":[-.05556,.55556,0,0,.525],"63":[0,.61111,0,0,.525],"64":[0,.61111,0,0,.525],"65":[0,.61111,0,0,.525],"66":[0,.61111,0,0,.525],"67":[0,.61111,0,0,.525],"68":[0,.61111,0,0,.525],"69":[0,.61111,0,0,.525],"70":[0,.61111,0,0,.525],"71":[0,.61111,0,0,.525],"72":[0,.61111,0,0,.525],"73":[0,.61111,0,0,.525],"74":[0,.61111,0,0,.525],"75":[0,.61111,0,0,.525],"76":[0,.61111,0,0,.525],"77":[0,.61111,0,0,.525],"78":[0,.61111,0,0,.525],"79":[0,.61111,0,0,.525],"80":[0,.61111,0,0,.525],"81":[.13889,.61111,0,0,.525],"82":[0,.61111,0,0,.525],"83":[0,.61111,0,0,.525],"84":[0,.61111,0,0,.525],"85":[0,.61111,0,0,.525],"86":[0,.61111,0,0,.525],"87":[0,.61111,0,0,.525],"88":[0,.61111,0,0,.525],"89":[0,.61111,0,0,.525],"90":[0,.61111,0,0,.525],"91":[.08333,.69444,0,0,.525],"92":[.08333,.69444,0,0,.525],"93":[.08333,.69444,0,0,.525],"94":[0,.61111,0,0,.525],"95":[.09514,0,0,0,.525],"96":[0,.61111,0,0,.525],"97":[0,.43056,0,0,.525],"98":[0,.61111,0,0,.525],"99":[0,.43056,0,0,.525],"100":[0,.61111,0,0,.525],"101":[0,.43056,0,0,.525],"102":[0,.61111,0,0,.525],"103":[.22222,.43056,0,0,.525],"104":[0,.61111,0,0,.525],"105":[0,.61111,0,0,.525],"106":[.22222,.61111,0,0,.525],"107":[0,.61111,0,0,.525],"108":[0,.61111,0,0,.525],"109":[0,.43056,0,0,.525],"110":[0,.43056,0,0,.525],"111":[0,.43056,0,0,.525],"112":[.22222,.43056,0,0,.525],"113":[.22222,.43056,0,0,.525],"114":[0,.43056,0,0,.525],"115":[0,.43056,0,0,.525],"116":[0,.55358,0,0,.525],"117":[0,.43056,0,0,.525],"118":[0,.43056,0,0,.525],"119":[0,.43056,0,0,.525],"120":[0,.43056,0,0,.525],"121":[.22222,.43056,0,0,.525],"122":[0,.43056,0,0,.525],"123":[.08333,.69444,0,0,.525],"124":[.08333,.69444,0,0,.525],"125":[.08333,.69444,0,0,.525],"126":[0,.61111,0,0,.525],"127":[0,.61111,0,0,.525],"160":[0,0,0,0,.525],"176":[0,.61111,0,0,.525],"184":[.19445,0,0,0,.525],"305":[0,.43056,0,0,.525],"567":[.22222,.43056,0,0,.525],"711":[0,.56597,0,0,.525],"713":[0,.56555,0,0,.525],"714":[0,.61111,0,0,.525],"715":[0,.61111,0,0,.525],"728":[0,.61111,0,0,.525],"730":[0,.61111,0,0,.525],"770":[0,.61111,0,0,.525],"771":[0,.61111,0,0,.525],"776":[0,.61111,0,0,.525],"915":[0,.61111,0,0,.525],"916":[0,.61111,0,0,.525],"920":[0,.61111,0,0,.525],"923":[0,.61111,0,0,.525],"926":[0,.61111,0,0,.525],"928":[0,.61111,0,0,.525],"931":[0,.61111,0,0,.525],"933":[0,.61111,0,0,.525],"934":[0,.61111,0,0,.525],"936":[0,.61111,0,0,.525],"937":[0,.61111,0,0,.525],"8216":[0,.61111,0,0,.525],"8217":[0,.61111,0,0,.525],"8242":[0,.61111,0,0,.525],"9251":[.11111,.21944,0,0,.525]}},mt={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ve={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function or(It,ce){Ct[It]=ce}function dt(It,ce,Se){if(!Ct[ce])throw new Error("Font metrics not found for font: "+ce+".");var Le=It.charCodeAt(0),Qe=Ct[ce][Le];if(!Qe&&It[0]in Ve&&(Le=Ve[It[0]].charCodeAt(0),Qe=Ct[ce][Le]),!Qe&&Se==="text"&&(re(Le)&&(Qe=Ct[ce][77])),Qe)return{depth:Qe[0],height:Qe[1],italic:Qe[2],skew:Qe[3],width:Qe[4]}}var Yt={};function hr(It){var ce;if(It>=5?ce=0:It>=3?ce=1:ce=2,!Yt[ce]){var Se=Yt[ce]={cssEmPerMu:mt.quad[ce]/18};for(var Le in mt)mt.hasOwnProperty(Le)&&(Se[Le]=mt[Le][ce])}return Yt[ce]}var Gt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Pt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Xt={math:{},text:{}},Ge=Xt;function pe(It,ce,Se,Le,Qe,Lt){Xt[It][Qe]={font:ce,group:Se,replace:Le},Lt&&Le&&(Xt[It][Le]=Xt[It][Qe])}var se="math",lt="text",Ze="main",de="ams",_t="accent-token",er="bin",yt="close",Ar="inner",Sr="mathord",Cn="op-token",mr="open",Pr="punct",gr="rel",Jt="spacing",Dt="textord";pe(se,Ze,gr,"\u2261","\\equiv",!0),pe(se,Ze,gr,"\u227A","\\prec",!0),pe(se,Ze,gr,"\u227B","\\succ",!0),pe(se,Ze,gr,"\u223C","\\sim",!0),pe(se,Ze,gr,"\u22A5","\\perp"),pe(se,Ze,gr,"\u2AAF","\\preceq",!0),pe(se,Ze,gr,"\u2AB0","\\succeq",!0),pe(se,Ze,gr,"\u2243","\\simeq",!0),pe(se,Ze,gr,"\u2223","\\mid",!0),pe(se,Ze,gr,"\u226A","\\ll",!0),pe(se,Ze,gr,"\u226B","\\gg",!0),pe(se,Ze,gr,"\u224D","\\asymp",!0),pe(se,Ze,gr,"\u2225","\\parallel"),pe(se,Ze,gr,"\u22C8","\\bowtie",!0),pe(se,Ze,gr,"\u2323","\\smile",!0),pe(se,Ze,gr,"\u2291","\\sqsubseteq",!0),pe(se,Ze,gr,"\u2292","\\sqsupseteq",!0),pe(se,Ze,gr,"\u2250","\\doteq",!0),pe(se,Ze,gr,"\u2322","\\frown",!0),pe(se,Ze,gr,"\u220B","\\ni",!0),pe(se,Ze,gr,"\u221D","\\propto",!0),pe(se,Ze,gr,"\u22A2","\\vdash",!0),pe(se,Ze,gr,"\u22A3","\\dashv",!0),pe(se,Ze,gr,"\u220B","\\owns"),pe(se,Ze,Pr,".","\\ldotp"),pe(se,Ze,Pr,"\u22C5","\\cdotp"),pe(se,Ze,Dt,"#","\\#"),pe(lt,Ze,Dt,"#","\\#"),pe(se,Ze,Dt,"&","\\&"),pe(lt,Ze,Dt,"&","\\&"),pe(se,Ze,Dt,"\u2135","\\aleph",!0),pe(se,Ze,Dt,"\u2200","\\forall",!0),pe(se,Ze,Dt,"\u210F","\\hbar",!0),pe(se,Ze,Dt,"\u2203","\\exists",!0),pe(se,Ze,Dt,"\u2207","\\nabla",!0),pe(se,Ze,Dt,"\u266D","\\flat",!0),pe(se,Ze,Dt,"\u2113","\\ell",!0),pe(se,Ze,Dt,"\u266E","\\natural",!0),pe(se,Ze,Dt,"\u2663","\\clubsuit",!0),pe(se,Ze,Dt,"\u2118","\\wp",!0),pe(se,Ze,Dt,"\u266F","\\sharp",!0),pe(se,Ze,Dt,"\u2662","\\diamondsuit",!0),pe(se,Ze,Dt,"\u211C","\\Re",!0),pe(se,Ze,Dt,"\u2661","\\heartsuit",!0),pe(se,Ze,Dt,"\u2111","\\Im",!0),pe(se,Ze,Dt,"\u2660","\\spadesuit",!0),pe(lt,Ze,Dt,"\xA7","\\S",!0),pe(lt,Ze,Dt,"\xB6","\\P",!0),pe(se,Ze,Dt,"\u2020","\\dag"),pe(lt,Ze,Dt,"\u2020","\\dag"),pe(lt,Ze,Dt,"\u2020","\\textdagger"),pe(se,Ze,Dt,"\u2021","\\ddag"),pe(lt,Ze,Dt,"\u2021","\\ddag"),pe(lt,Ze,Dt,"\u2021","\\textdaggerdbl"),pe(se,Ze,yt,"\u23B1","\\rmoustache",!0),pe(se,Ze,mr,"\u23B0","\\lmoustache",!0),pe(se,Ze,yt,"\u27EF","\\rgroup",!0),pe(se,Ze,mr,"\u27EE","\\lgroup",!0),pe(se,Ze,er,"\u2213","\\mp",!0),pe(se,Ze,er,"\u2296","\\ominus",!0),pe(se,Ze,er,"\u228E","\\uplus",!0),pe(se,Ze,er,"\u2293","\\sqcap",!0),pe(se,Ze,er,"\u2217","\\ast"),pe(se,Ze,er,"\u2294","\\sqcup",!0),pe(se,Ze,er,"\u25EF","\\bigcirc"),pe(se,Ze,er,"\u2219","\\bullet"),pe(se,Ze,er,"\u2021","\\ddagger"),pe(se,Ze,er,"\u2240","\\wr",!0),pe(se,Ze,er,"\u2A3F","\\amalg"),pe(se,Ze,er,"&","\\And"),pe(se,Ze,gr,"\u27F5","\\longleftarrow",!0),pe(se,Ze,gr,"\u21D0","\\Leftarrow",!0),pe(se,Ze,gr,"\u27F8","\\Longleftarrow",!0),pe(se,Ze,gr,"\u27F6","\\longrightarrow",!0),pe(se,Ze,gr,"\u21D2","\\Rightarrow",!0),pe(se,Ze,gr,"\u27F9","\\Longrightarrow",!0),pe(se,Ze,gr,"\u2194","\\leftrightarrow",!0),pe(se,Ze,gr,"\u27F7","\\longleftrightarrow",!0),pe(se,Ze,gr,"\u21D4","\\Leftrightarrow",!0),pe(se,Ze,gr,"\u27FA","\\Longleftrightarrow",!0),pe(se,Ze,gr,"\u21A6","\\mapsto",!0),pe(se,Ze,gr,"\u27FC","\\longmapsto",!0),pe(se,Ze,gr,"\u2197","\\nearrow",!0),pe(se,Ze,gr,"\u21A9","\\hookleftarrow",!0),pe(se,Ze,gr,"\u21AA","\\hookrightarrow",!0),pe(se,Ze,gr,"\u2198","\\searrow",!0),pe(se,Ze,gr,"\u21BC","\\leftharpoonup",!0),pe(se,Ze,gr,"\u21C0","\\rightharpoonup",!0),pe(se,Ze,gr,"\u2199","\\swarrow",!0),pe(se,Ze,gr,"\u21BD","\\leftharpoondown",!0),pe(se,Ze,gr,"\u21C1","\\rightharpoondown",!0),pe(se,Ze,gr,"\u2196","\\nwarrow",!0),pe(se,Ze,gr,"\u21CC","\\rightleftharpoons",!0),pe(se,de,gr,"\u226E","\\nless",!0),pe(se,de,gr,"\uE010","\\@nleqslant"),pe(se,de,gr,"\uE011","\\@nleqq"),pe(se,de,gr,"\u2A87","\\lneq",!0),pe(se,de,gr,"\u2268","\\lneqq",!0),pe(se,de,gr,"\uE00C","\\@lvertneqq"),pe(se,de,gr,"\u22E6","\\lnsim",!0),pe(se,de,gr,"\u2A89","\\lnapprox",!0),pe(se,de,gr,"\u2280","\\nprec",!0),pe(se,de,gr,"\u22E0","\\npreceq",!0),pe(se,de,gr,"\u22E8","\\precnsim",!0),pe(se,de,gr,"\u2AB9","\\precnapprox",!0),pe(se,de,gr,"\u2241","\\nsim",!0),pe(se,de,gr,"\uE006","\\@nshortmid"),pe(se,de,gr,"\u2224","\\nmid",!0),pe(se,de,gr,"\u22AC","\\nvdash",!0),pe(se,de,gr,"\u22AD","\\nvDash",!0),pe(se,de,gr,"\u22EA","\\ntriangleleft"),pe(se,de,gr,"\u22EC","\\ntrianglelefteq",!0),pe(se,de,gr,"\u228A","\\subsetneq",!0),pe(se,de,gr,"\uE01A","\\@varsubsetneq"),pe(se,de,gr,"\u2ACB","\\subsetneqq",!0),pe(se,de,gr,"\uE017","\\@varsubsetneqq"),pe(se,de,gr,"\u226F","\\ngtr",!0),pe(se,de,gr,"\uE00F","\\@ngeqslant"),pe(se,de,gr,"\uE00E","\\@ngeqq"),pe(se,de,gr,"\u2A88","\\gneq",!0),pe(se,de,gr,"\u2269","\\gneqq",!0),pe(se,de,gr,"\uE00D","\\@gvertneqq"),pe(se,de,gr,"\u22E7","\\gnsim",!0),pe(se,de,gr,"\u2A8A","\\gnapprox",!0),pe(se,de,gr,"\u2281","\\nsucc",!0),pe(se,de,gr,"\u22E1","\\nsucceq",!0),pe(se,de,gr,"\u22E9","\\succnsim",!0),pe(se,de,gr,"\u2ABA","\\succnapprox",!0),pe(se,de,gr,"\u2246","\\ncong",!0),pe(se,de,gr,"\uE007","\\@nshortparallel"),pe(se,de,gr,"\u2226","\\nparallel",!0),pe(se,de,gr,"\u22AF","\\nVDash",!0),pe(se,de,gr,"\u22EB","\\ntriangleright"),pe(se,de,gr,"\u22ED","\\ntrianglerighteq",!0),pe(se,de,gr,"\uE018","\\@nsupseteqq"),pe(se,de,gr,"\u228B","\\supsetneq",!0),pe(se,de,gr,"\uE01B","\\@varsupsetneq"),pe(se,de,gr,"\u2ACC","\\supsetneqq",!0),pe(se,de,gr,"\uE019","\\@varsupsetneqq"),pe(se,de,gr,"\u22AE","\\nVdash",!0),pe(se,de,gr,"\u2AB5","\\precneqq",!0),pe(se,de,gr,"\u2AB6","\\succneqq",!0),pe(se,de,gr,"\uE016","\\@nsubseteqq"),pe(se,de,er,"\u22B4","\\unlhd"),pe(se,de,er,"\u22B5","\\unrhd"),pe(se,de,gr,"\u219A","\\nleftarrow",!0),pe(se,de,gr,"\u219B","\\nrightarrow",!0),pe(se,de,gr,"\u21CD","\\nLeftarrow",!0),pe(se,de,gr,"\u21CF","\\nRightarrow",!0),pe(se,de,gr,"\u21AE","\\nleftrightarrow",!0),pe(se,de,gr,"\u21CE","\\nLeftrightarrow",!0),pe(se,de,gr,"\u25B3","\\vartriangle"),pe(se,de,Dt,"\u210F","\\hslash"),pe(se,de,Dt,"\u25BD","\\triangledown"),pe(se,de,Dt,"\u25CA","\\lozenge"),pe(se,de,Dt,"\u24C8","\\circledS"),pe(se,de,Dt,"\xAE","\\circledR"),pe(lt,de,Dt,"\xAE","\\circledR"),pe(se,de,Dt,"\u2221","\\measuredangle",!0),pe(se,de,Dt,"\u2204","\\nexists"),pe(se,de,Dt,"\u2127","\\mho"),pe(se,de,Dt,"\u2132","\\Finv",!0),pe(se,de,Dt,"\u2141","\\Game",!0),pe(se,de,Dt,"\u2035","\\backprime"),pe(se,de,Dt,"\u25B2","\\blacktriangle"),pe(se,de,Dt,"\u25BC","\\blacktriangledown"),pe(se,de,Dt,"\u25A0","\\blacksquare"),pe(se,de,Dt,"\u29EB","\\blacklozenge"),pe(se,de,Dt,"\u2605","\\bigstar"),pe(se,de,Dt,"\u2222","\\sphericalangle",!0),pe(se,de,Dt,"\u2201","\\complement",!0),pe(se,de,Dt,"\xF0","\\eth",!0),pe(se,de,Dt,"\u2571","\\diagup"),pe(se,de,Dt,"\u2572","\\diagdown"),pe(se,de,Dt,"\u25A1","\\square"),pe(se,de,Dt,"\u25A1","\\Box"),pe(se,de,Dt,"\u25CA","\\Diamond"),pe(se,de,Dt,"\xA5","\\yen",!0),pe(lt,de,Dt,"\xA5","\\yen",!0),pe(se,de,Dt,"\u2713","\\checkmark",!0),pe(lt,de,Dt,"\u2713","\\checkmark"),pe(se,de,Dt,"\u2136","\\beth",!0),pe(se,de,Dt,"\u2138","\\daleth",!0),pe(se,de,Dt,"\u2137","\\gimel",!0),pe(se,de,Dt,"\u03DD","\\digamma",!0),pe(se,de,Dt,"\u03F0","\\varkappa"),pe(se,de,mr,"\u250C","\\ulcorner",!0),pe(se,de,yt,"\u2510","\\urcorner",!0),pe(se,de,mr,"\u2514","\\llcorner",!0),pe(se,de,yt,"\u2518","\\lrcorner",!0),pe(se,de,gr,"\u2266","\\leqq",!0),pe(se,de,gr,"\u2A7D","\\leqslant",!0),pe(se,de,gr,"\u2A95","\\eqslantless",!0),pe(se,de,gr,"\u2272","\\lesssim",!0),pe(se,de,gr,"\u2A85","\\lessapprox",!0),pe(se,de,gr,"\u224A","\\approxeq",!0),pe(se,de,er,"\u22D6","\\lessdot"),pe(se,de,gr,"\u22D8","\\lll",!0),pe(se,de,gr,"\u2276","\\lessgtr",!0),pe(se,de,gr,"\u22DA","\\lesseqgtr",!0),pe(se,de,gr,"\u2A8B","\\lesseqqgtr",!0),pe(se,de,gr,"\u2251","\\doteqdot"),pe(se,de,gr,"\u2253","\\risingdotseq",!0),pe(se,de,gr,"\u2252","\\fallingdotseq",!0),pe(se,de,gr,"\u223D","\\backsim",!0),pe(se,de,gr,"\u22CD","\\backsimeq",!0),pe(se,de,gr,"\u2AC5","\\subseteqq",!0),pe(se,de,gr,"\u22D0","\\Subset",!0),pe(se,de,gr,"\u228F","\\sqsubset",!0),pe(se,de,gr,"\u227C","\\preccurlyeq",!0),pe(se,de,gr,"\u22DE","\\curlyeqprec",!0),pe(se,de,gr,"\u227E","\\precsim",!0),pe(se,de,gr,"\u2AB7","\\precapprox",!0),pe(se,de,gr,"\u22B2","\\vartriangleleft"),pe(se,de,gr,"\u22B4","\\trianglelefteq"),pe(se,de,gr,"\u22A8","\\vDash",!0),pe(se,de,gr,"\u22AA","\\Vvdash",!0),pe(se,de,gr,"\u2323","\\smallsmile"),pe(se,de,gr,"\u2322","\\smallfrown"),pe(se,de,gr,"\u224F","\\bumpeq",!0),pe(se,de,gr,"\u224E","\\Bumpeq",!0),pe(se,de,gr,"\u2267","\\geqq",!0),pe(se,de,gr,"\u2A7E","\\geqslant",!0),pe(se,de,gr,"\u2A96","\\eqslantgtr",!0),pe(se,de,gr,"\u2273","\\gtrsim",!0),pe(se,de,gr,"\u2A86","\\gtrapprox",!0),pe(se,de,er,"\u22D7","\\gtrdot"),pe(se,de,gr,"\u22D9","\\ggg",!0),pe(se,de,gr,"\u2277","\\gtrless",!0),pe(se,de,gr,"\u22DB","\\gtreqless",!0),pe(se,de,gr,"\u2A8C","\\gtreqqless",!0),pe(se,de,gr,"\u2256","\\eqcirc",!0),pe(se,de,gr,"\u2257","\\circeq",!0),pe(se,de,gr,"\u225C","\\triangleq",!0),pe(se,de,gr,"\u223C","\\thicksim"),pe(se,de,gr,"\u2248","\\thickapprox"),pe(se,de,gr,"\u2AC6","\\supseteqq",!0),pe(se,de,gr,"\u22D1","\\Supset",!0),pe(se,de,gr,"\u2290","\\sqsupset",!0),pe(se,de,gr,"\u227D","\\succcurlyeq",!0),pe(se,de,gr,"\u22DF","\\curlyeqsucc",!0),pe(se,de,gr,"\u227F","\\succsim",!0),pe(se,de,gr,"\u2AB8","\\succapprox",!0),pe(se,de,gr,"\u22B3","\\vartriangleright"),pe(se,de,gr,"\u22B5","\\trianglerighteq"),pe(se,de,gr,"\u22A9","\\Vdash",!0),pe(se,de,gr,"\u2223","\\shortmid"),pe(se,de,gr,"\u2225","\\shortparallel"),pe(se,de,gr,"\u226C","\\between",!0),pe(se,de,gr,"\u22D4","\\pitchfork",!0),pe(se,de,gr,"\u221D","\\varpropto"),pe(se,de,gr,"\u25C0","\\blacktriangleleft"),pe(se,de,gr,"\u2234","\\therefore",!0),pe(se,de,gr,"\u220D","\\backepsilon"),pe(se,de,gr,"\u25B6","\\blacktriangleright"),pe(se,de,gr,"\u2235","\\because",!0),pe(se,de,gr,"\u22D8","\\llless"),pe(se,de,gr,"\u22D9","\\gggtr"),pe(se,de,er,"\u22B2","\\lhd"),pe(se,de,er,"\u22B3","\\rhd"),pe(se,de,gr,"\u2242","\\eqsim",!0),pe(se,Ze,gr,"\u22C8","\\Join"),pe(se,de,gr,"\u2251","\\Doteq",!0),pe(se,de,er,"\u2214","\\dotplus",!0),pe(se,de,er,"\u2216","\\smallsetminus"),pe(se,de,er,"\u22D2","\\Cap",!0),pe(se,de,er,"\u22D3","\\Cup",!0),pe(se,de,er,"\u2A5E","\\doublebarwedge",!0),pe(se,de,er,"\u229F","\\boxminus",!0),pe(se,de,er,"\u229E","\\boxplus",!0),pe(se,de,er,"\u22C7","\\divideontimes",!0),pe(se,de,er,"\u22C9","\\ltimes",!0),pe(se,de,er,"\u22CA","\\rtimes",!0),pe(se,de,er,"\u22CB","\\leftthreetimes",!0),pe(se,de,er,"\u22CC","\\rightthreetimes",!0),pe(se,de,er,"\u22CF","\\curlywedge",!0),pe(se,de,er,"\u22CE","\\curlyvee",!0),pe(se,de,er,"\u229D","\\circleddash",!0),pe(se,de,er,"\u229B","\\circledast",!0),pe(se,de,er,"\u22C5","\\centerdot"),pe(se,de,er,"\u22BA","\\intercal",!0),pe(se,de,er,"\u22D2","\\doublecap"),pe(se,de,er,"\u22D3","\\doublecup"),pe(se,de,er,"\u22A0","\\boxtimes",!0),pe(se,de,gr,"\u21E2","\\dashrightarrow",!0),pe(se,de,gr,"\u21E0","\\dashleftarrow",!0),pe(se,de,gr,"\u21C7","\\leftleftarrows",!0),pe(se,de,gr,"\u21C6","\\leftrightarrows",!0),pe(se,de,gr,"\u21DA","\\Lleftarrow",!0),pe(se,de,gr,"\u219E","\\twoheadleftarrow",!0),pe(se,de,gr,"\u21A2","\\leftarrowtail",!0),pe(se,de,gr,"\u21AB","\\looparrowleft",!0),pe(se,de,gr,"\u21CB","\\leftrightharpoons",!0),pe(se,de,gr,"\u21B6","\\curvearrowleft",!0),pe(se,de,gr,"\u21BA","\\circlearrowleft",!0),pe(se,de,gr,"\u21B0","\\Lsh",!0),pe(se,de,gr,"\u21C8","\\upuparrows",!0),pe(se,de,gr,"\u21BF","\\upharpoonleft",!0),pe(se,de,gr,"\u21C3","\\downharpoonleft",!0),pe(se,de,gr,"\u22B8","\\multimap",!0),pe(se,de,gr,"\u21AD","\\leftrightsquigarrow",!0),pe(se,de,gr,"\u21C9","\\rightrightarrows",!0),pe(se,de,gr,"\u21C4","\\rightleftarrows",!0),pe(se,de,gr,"\u21A0","\\twoheadrightarrow",!0),pe(se,de,gr,"\u21A3","\\rightarrowtail",!0),pe(se,de,gr,"\u21AC","\\looparrowright",!0),pe(se,de,gr,"\u21B7","\\curvearrowright",!0),pe(se,de,gr,"\u21BB","\\circlearrowright",!0),pe(se,de,gr,"\u21B1","\\Rsh",!0),pe(se,de,gr,"\u21CA","\\downdownarrows",!0),pe(se,de,gr,"\u21BE","\\upharpoonright",!0),pe(se,de,gr,"\u21C2","\\downharpoonright",!0),pe(se,de,gr,"\u21DD","\\rightsquigarrow",!0),pe(se,de,gr,"\u21DD","\\leadsto"),pe(se,de,gr,"\u21DB","\\Rrightarrow",!0),pe(se,de,gr,"\u21BE","\\restriction"),pe(se,Ze,Dt,"\u2018","`"),pe(se,Ze,Dt,"$","\\$"),pe(lt,Ze,Dt,"$","\\$"),pe(lt,Ze,Dt,"$","\\textdollar"),pe(se,Ze,Dt,"%","\\%"),pe(lt,Ze,Dt,"%","\\%"),pe(se,Ze,Dt,"_","\\_"),pe(lt,Ze,Dt,"_","\\_"),pe(lt,Ze,Dt,"_","\\textunderscore"),pe(se,Ze,Dt,"\u2220","\\angle",!0),pe(se,Ze,Dt,"\u221E","\\infty",!0),pe(se,Ze,Dt,"\u2032","\\prime"),pe(se,Ze,Dt,"\u25B3","\\triangle"),pe(se,Ze,Dt,"\u0393","\\Gamma",!0),pe(se,Ze,Dt,"\u0394","\\Delta",!0),pe(se,Ze,Dt,"\u0398","\\Theta",!0),pe(se,Ze,Dt,"\u039B","\\Lambda",!0),pe(se,Ze,Dt,"\u039E","\\Xi",!0),pe(se,Ze,Dt,"\u03A0","\\Pi",!0),pe(se,Ze,Dt,"\u03A3","\\Sigma",!0),pe(se,Ze,Dt,"\u03A5","\\Upsilon",!0),pe(se,Ze,Dt,"\u03A6","\\Phi",!0),pe(se,Ze,Dt,"\u03A8","\\Psi",!0),pe(se,Ze,Dt,"\u03A9","\\Omega",!0),pe(se,Ze,Dt,"A","\u0391"),pe(se,Ze,Dt,"B","\u0392"),pe(se,Ze,Dt,"E","\u0395"),pe(se,Ze,Dt,"Z","\u0396"),pe(se,Ze,Dt,"H","\u0397"),pe(se,Ze,Dt,"I","\u0399"),pe(se,Ze,Dt,"K","\u039A"),pe(se,Ze,Dt,"M","\u039C"),pe(se,Ze,Dt,"N","\u039D"),pe(se,Ze,Dt,"O","\u039F"),pe(se,Ze,Dt,"P","\u03A1"),pe(se,Ze,Dt,"T","\u03A4"),pe(se,Ze,Dt,"X","\u03A7"),pe(se,Ze,Dt,"\xAC","\\neg",!0),pe(se,Ze,Dt,"\xAC","\\lnot"),pe(se,Ze,Dt,"\u22A4","\\top"),pe(se,Ze,Dt,"\u22A5","\\bot"),pe(se,Ze,Dt,"\u2205","\\emptyset"),pe(se,de,Dt,"\u2205","\\varnothing"),pe(se,Ze,Sr,"\u03B1","\\alpha",!0),pe(se,Ze,Sr,"\u03B2","\\beta",!0),pe(se,Ze,Sr,"\u03B3","\\gamma",!0),pe(se,Ze,Sr,"\u03B4","\\delta",!0),pe(se,Ze,Sr,"\u03F5","\\epsilon",!0),pe(se,Ze,Sr,"\u03B6","\\zeta",!0),pe(se,Ze,Sr,"\u03B7","\\eta",!0),pe(se,Ze,Sr,"\u03B8","\\theta",!0),pe(se,Ze,Sr,"\u03B9","\\iota",!0),pe(se,Ze,Sr,"\u03BA","\\kappa",!0),pe(se,Ze,Sr,"\u03BB","\\lambda",!0),pe(se,Ze,Sr,"\u03BC","\\mu",!0),pe(se,Ze,Sr,"\u03BD","\\nu",!0),pe(se,Ze,Sr,"\u03BE","\\xi",!0),pe(se,Ze,Sr,"\u03BF","\\omicron",!0),pe(se,Ze,Sr,"\u03C0","\\pi",!0),pe(se,Ze,Sr,"\u03C1","\\rho",!0),pe(se,Ze,Sr,"\u03C3","\\sigma",!0),pe(se,Ze,Sr,"\u03C4","\\tau",!0),pe(se,Ze,Sr,"\u03C5","\\upsilon",!0),pe(se,Ze,Sr,"\u03D5","\\phi",!0),pe(se,Ze,Sr,"\u03C7","\\chi",!0),pe(se,Ze,Sr,"\u03C8","\\psi",!0),pe(se,Ze,Sr,"\u03C9","\\omega",!0),pe(se,Ze,Sr,"\u03B5","\\varepsilon",!0),pe(se,Ze,Sr,"\u03D1","\\vartheta",!0),pe(se,Ze,Sr,"\u03D6","\\varpi",!0),pe(se,Ze,Sr,"\u03F1","\\varrho",!0),pe(se,Ze,Sr,"\u03C2","\\varsigma",!0),pe(se,Ze,Sr,"\u03C6","\\varphi",!0),pe(se,Ze,er,"\u2217","*"),pe(se,Ze,er,"+","+"),pe(se,Ze,er,"\u2212","-"),pe(se,Ze,er,"\u22C5","\\cdot",!0),pe(se,Ze,er,"\u2218","\\circ"),pe(se,Ze,er,"\xF7","\\div",!0),pe(se,Ze,er,"\xB1","\\pm",!0),pe(se,Ze,er,"\xD7","\\times",!0),pe(se,Ze,er,"\u2229","\\cap",!0),pe(se,Ze,er,"\u222A","\\cup",!0),pe(se,Ze,er,"\u2216","\\setminus"),pe(se,Ze,er,"\u2227","\\land"),pe(se,Ze,er,"\u2228","\\lor"),pe(se,Ze,er,"\u2227","\\wedge",!0),pe(se,Ze,er,"\u2228","\\vee",!0),pe(se,Ze,Dt,"\u221A","\\surd"),pe(se,Ze,mr,"(","("),pe(se,Ze,mr,"[","["),pe(se,Ze,mr,"\u27E8","\\langle",!0),pe(se,Ze,mr,"\u2223","\\lvert"),pe(se,Ze,mr,"\u2225","\\lVert"),pe(se,Ze,yt,")",")"),pe(se,Ze,yt,"]","]"),pe(se,Ze,yt,"?","?"),pe(se,Ze,yt,"!","!"),pe(se,Ze,yt,"\u27E9","\\rangle",!0),pe(se,Ze,yt,"\u2223","\\rvert"),pe(se,Ze,yt,"\u2225","\\rVert"),pe(se,Ze,gr,"=","="),pe(se,Ze,gr,"<","<"),pe(se,Ze,gr,">",">"),pe(se,Ze,gr,":",":"),pe(se,Ze,gr,"\u2248","\\approx",!0),pe(se,Ze,gr,"\u2245","\\cong",!0),pe(se,Ze,gr,"\u2265","\\ge"),pe(se,Ze,gr,"\u2265","\\geq",!0),pe(se,Ze,gr,"\u2190","\\gets"),pe(se,Ze,gr,">","\\gt"),pe(se,Ze,gr,"\u2208","\\in",!0),pe(se,Ze,gr,"\uE020","\\@not"),pe(se,Ze,gr,"\u2282","\\subset",!0),pe(se,Ze,gr,"\u2283","\\supset",!0),pe(se,Ze,gr,"\u2286","\\subseteq",!0),pe(se,Ze,gr,"\u2287","\\supseteq",!0),pe(se,de,gr,"\u2288","\\nsubseteq",!0),pe(se,de,gr,"\u2289","\\nsupseteq",!0),pe(se,Ze,gr,"\u22A8","\\models"),pe(se,Ze,gr,"\u2190","\\leftarrow",!0),pe(se,Ze,gr,"\u2264","\\le"),pe(se,Ze,gr,"\u2264","\\leq",!0),pe(se,Ze,gr,"<","\\lt"),pe(se,Ze,gr,"\u2192","\\rightarrow",!0),pe(se,Ze,gr,"\u2192","\\to"),pe(se,de,gr,"\u2271","\\ngeq",!0),pe(se,de,gr,"\u2270","\\nleq",!0),pe(se,Ze,Jt,"\xA0","\\ "),pe(se,Ze,Jt,"\xA0","~"),pe(se,Ze,Jt,"\xA0","\\space"),pe(se,Ze,Jt,"\xA0","\\nobreakspace"),pe(lt,Ze,Jt,"\xA0","\\ "),pe(lt,Ze,Jt,"\xA0","~"),pe(lt,Ze,Jt,"\xA0","\\space"),pe(lt,Ze,Jt,"\xA0","\\nobreakspace"),pe(se,Ze,Jt,null,"\\nobreak"),pe(se,Ze,Jt,null,"\\allowbreak"),pe(se,Ze,Pr,",",","),pe(se,Ze,Pr,";",";"),pe(se,de,er,"\u22BC","\\barwedge",!0),pe(se,de,er,"\u22BB","\\veebar",!0),pe(se,Ze,er,"\u2299","\\odot",!0),pe(se,Ze,er,"\u2295","\\oplus",!0),pe(se,Ze,er,"\u2297","\\otimes",!0),pe(se,Ze,Dt,"\u2202","\\partial",!0),pe(se,Ze,er,"\u2298","\\oslash",!0),pe(se,de,er,"\u229A","\\circledcirc",!0),pe(se,de,er,"\u22A1","\\boxdot",!0),pe(se,Ze,er,"\u25B3","\\bigtriangleup"),pe(se,Ze,er,"\u25BD","\\bigtriangledown"),pe(se,Ze,er,"\u2020","\\dagger"),pe(se,Ze,er,"\u22C4","\\diamond"),pe(se,Ze,er,"\u22C6","\\star"),pe(se,Ze,er,"\u25C3","\\triangleleft"),pe(se,Ze,er,"\u25B9","\\triangleright"),pe(se,Ze,mr,"{","\\{"),pe(lt,Ze,Dt,"{","\\{"),pe(lt,Ze,Dt,"{","\\textbraceleft"),pe(se,Ze,yt,"}","\\}"),pe(lt,Ze,Dt,"}","\\}"),pe(lt,Ze,Dt,"}","\\textbraceright"),pe(se,Ze,mr,"{","\\lbrace"),pe(se,Ze,yt,"}","\\rbrace"),pe(se,Ze,mr,"[","\\lbrack"),pe(lt,Ze,Dt,"[","\\lbrack"),pe(se,Ze,yt,"]","\\rbrack"),pe(lt,Ze,Dt,"]","\\rbrack"),pe(se,Ze,mr,"(","\\lparen"),pe(se,Ze,yt,")","\\rparen"),pe(lt,Ze,Dt,"<","\\textless"),pe(lt,Ze,Dt,">","\\textgreater"),pe(se,Ze,mr,"\u230A","\\lfloor",!0),pe(se,Ze,yt,"\u230B","\\rfloor",!0),pe(se,Ze,mr,"\u2308","\\lceil",!0),pe(se,Ze,yt,"\u2309","\\rceil",!0),pe(se,Ze,Dt,"\\","\\backslash"),pe(se,Ze,Dt,"\u2223","|"),pe(se,Ze,Dt,"\u2223","\\vert"),pe(lt,Ze,Dt,"|","\\textbar"),pe(se,Ze,Dt,"\u2225","\\|"),pe(se,Ze,Dt,"\u2225","\\Vert"),pe(lt,Ze,Dt,"\u2225","\\textbardbl"),pe(lt,Ze,Dt,"~","\\textasciitilde"),pe(lt,Ze,Dt,"\\","\\textbackslash"),pe(lt,Ze,Dt,"^","\\textasciicircum"),pe(se,Ze,gr,"\u2191","\\uparrow",!0),pe(se,Ze,gr,"\u21D1","\\Uparrow",!0),pe(se,Ze,gr,"\u2193","\\downarrow",!0),pe(se,Ze,gr,"\u21D3","\\Downarrow",!0),pe(se,Ze,gr,"\u2195","\\updownarrow",!0),pe(se,Ze,gr,"\u21D5","\\Updownarrow",!0),pe(se,Ze,Cn,"\u2210","\\coprod"),pe(se,Ze,Cn,"\u22C1","\\bigvee"),pe(se,Ze,Cn,"\u22C0","\\bigwedge"),pe(se,Ze,Cn,"\u2A04","\\biguplus"),pe(se,Ze,Cn,"\u22C2","\\bigcap"),pe(se,Ze,Cn,"\u22C3","\\bigcup"),pe(se,Ze,Cn,"\u222B","\\int"),pe(se,Ze,Cn,"\u222B","\\intop"),pe(se,Ze,Cn,"\u222C","\\iint"),pe(se,Ze,Cn,"\u222D","\\iiint"),pe(se,Ze,Cn,"\u220F","\\prod"),pe(se,Ze,Cn,"\u2211","\\sum"),pe(se,Ze,Cn,"\u2A02","\\bigotimes"),pe(se,Ze,Cn,"\u2A01","\\bigoplus"),pe(se,Ze,Cn,"\u2A00","\\bigodot"),pe(se,Ze,Cn,"\u222E","\\oint"),pe(se,Ze,Cn,"\u222F","\\oiint"),pe(se,Ze,Cn,"\u2230","\\oiiint"),pe(se,Ze,Cn,"\u2A06","\\bigsqcup"),pe(se,Ze,Cn,"\u222B","\\smallint"),pe(lt,Ze,Ar,"\u2026","\\textellipsis"),pe(se,Ze,Ar,"\u2026","\\mathellipsis"),pe(lt,Ze,Ar,"\u2026","\\ldots",!0),pe(se,Ze,Ar,"\u2026","\\ldots",!0),pe(se,Ze,Ar,"\u22EF","\\@cdots",!0),pe(se,Ze,Ar,"\u22F1","\\ddots",!0),pe(se,Ze,Dt,"\u22EE","\\varvdots"),pe(se,Ze,_t,"\u02CA","\\acute"),pe(se,Ze,_t,"\u02CB","\\grave"),pe(se,Ze,_t,"\xA8","\\ddot"),pe(se,Ze,_t,"~","\\tilde"),pe(se,Ze,_t,"\u02C9","\\bar"),pe(se,Ze,_t,"\u02D8","\\breve"),pe(se,Ze,_t,"\u02C7","\\check"),pe(se,Ze,_t,"^","\\hat"),pe(se,Ze,_t,"\u20D7","\\vec"),pe(se,Ze,_t,"\u02D9","\\dot"),pe(se,Ze,_t,"\u02DA","\\mathring"),pe(se,Ze,Sr,"\u0131","\\imath",!0),pe(se,Ze,Sr,"\u0237","\\jmath",!0),pe(lt,Ze,Dt,"\u0131","\\i",!0),pe(lt,Ze,Dt,"\u0237","\\j",!0),pe(lt,Ze,Dt,"\xDF","\\ss",!0),pe(lt,Ze,Dt,"\xE6","\\ae",!0),pe(lt,Ze,Dt,"\xE6","\\ae",!0),pe(lt,Ze,Dt,"\u0153","\\oe",!0),pe(lt,Ze,Dt,"\xF8","\\o",!0),pe(lt,Ze,Dt,"\xC6","\\AE",!0),pe(lt,Ze,Dt,"\u0152","\\OE",!0),pe(lt,Ze,Dt,"\xD8","\\O",!0),pe(lt,Ze,_t,"\u02CA","\\'"),pe(lt,Ze,_t,"\u02CB","\\`"),pe(lt,Ze,_t,"\u02C6","\\^"),pe(lt,Ze,_t,"\u02DC","\\~"),pe(lt,Ze,_t,"\u02C9","\\="),pe(lt,Ze,_t,"\u02D8","\\u"),pe(lt,Ze,_t,"\u02D9","\\."),pe(lt,Ze,_t,"\u02DA","\\r"),pe(lt,Ze,_t,"\u02C7","\\v"),pe(lt,Ze,_t,"\xA8",'\\"'),pe(lt,Ze,_t,"\u02DD","\\H"),pe(lt,Ze,_t,"\u25EF","\\textcircled");var dn={"--":!0,"---":!0,"``":!0,"''":!0};pe(lt,Ze,Dt,"\u2013","--"),pe(lt,Ze,Dt,"\u2013","\\textendash"),pe(lt,Ze,Dt,"\u2014","---"),pe(lt,Ze,Dt,"\u2014","\\textemdash"),pe(lt,Ze,Dt,"\u2018","`"),pe(lt,Ze,Dt,"\u2018","\\textquoteleft"),pe(lt,Ze,Dt,"\u2019","'"),pe(lt,Ze,Dt,"\u2019","\\textquoteright"),pe(lt,Ze,Dt,"\u201C","``"),pe(lt,Ze,Dt,"\u201C","\\textquotedblleft"),pe(lt,Ze,Dt,"\u201D","''"),pe(lt,Ze,Dt,"\u201D","\\textquotedblright"),pe(se,Ze,Dt,"\xB0","\\degree",!0),pe(lt,Ze,Dt,"\xB0","\\degree"),pe(lt,Ze,Dt,"\xB0","\\textdegree",!0),pe(se,Ze,Sr,"\xA3","\\pounds"),pe(se,Ze,Sr,"\xA3","\\mathsterling",!0),pe(lt,Ze,Sr,"\xA3","\\pounds"),pe(lt,Ze,Sr,"\xA3","\\textsterling",!0),pe(se,de,Dt,"\u2720","\\maltese"),pe(lt,de,Dt,"\u2720","\\maltese"),pe(lt,Ze,Jt,"\xA0","\\ "),pe(lt,Ze,Jt,"\xA0"," "),pe(lt,Ze,Jt,"\xA0","~");for(var Fn='0123456789/@."',Zn=0;Zn<Fn.length;Zn++){var ci=Fn.charAt(Zn);pe(se,Ze,Dt,ci,ci)}for(var Xi='0123456789!@*()-=+[]<>|";:?/.,',Gn=0;Gn<Xi.length;Gn++){var ei=Xi.charAt(Gn);pe(lt,Ze,Dt,ei,ei)}for(var Zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Nt=0;Nt<Zt.length;Nt++){var Me=Zt.charAt(Nt);pe(se,Ze,Sr,Me,Me),pe(lt,Ze,Dt,Me,Me)}pe(se,de,Dt,"C","\u2102"),pe(lt,de,Dt,"C","\u2102"),pe(se,de,Dt,"H","\u210D"),pe(lt,de,Dt,"H","\u210D"),pe(se,de,Dt,"N","\u2115"),pe(lt,de,Dt,"N","\u2115"),pe(se,de,Dt,"P","\u2119"),pe(lt,de,Dt,"P","\u2119"),pe(se,de,Dt,"Q","\u211A"),pe(lt,de,Dt,"Q","\u211A"),pe(se,de,Dt,"R","\u211D"),pe(lt,de,Dt,"R","\u211D"),pe(se,de,Dt,"Z","\u2124"),pe(lt,de,Dt,"Z","\u2124"),pe(se,Ze,Sr,"h","\u210E"),pe(lt,Ze,Sr,"h","\u210E");for(var ke="",Pe=0;Pe<Zt.length;Pe++){var tt=Zt.charAt(Pe);ke=String.fromCharCode(55349,56320+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56372+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56424+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56580+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56736+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56788+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56840+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56944+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),Pe<26&&(ke=String.fromCharCode(55349,56632+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke),ke=String.fromCharCode(55349,56476+Pe),pe(se,Ze,Sr,tt,ke),pe(lt,Ze,Dt,tt,ke))}ke=String.fromCharCode(55349,56668),pe(se,Ze,Sr,"k",ke),pe(lt,Ze,Dt,"k",ke);for(var vt=0;vt<10;vt++){var St=vt.toString();ke=String.fromCharCode(55349,57294+vt),pe(se,Ze,Sr,St,ke),pe(lt,Ze,Dt,St,ke),ke=String.fromCharCode(55349,57314+vt),pe(se,Ze,Sr,St,ke),pe(lt,Ze,Dt,St,ke),ke=String.fromCharCode(55349,57324+vt),pe(se,Ze,Sr,St,ke),pe(lt,Ze,Dt,St,ke),ke=String.fromCharCode(55349,57334+vt),pe(se,Ze,Sr,St,ke),pe(lt,Ze,Dt,St,ke)}for(var Vt="\xC7\xD0\xDE\xE7\xFE",Mr=0;Mr<Vt.length;Mr++){var $r=Vt.charAt(Mr);pe(se,Ze,Sr,$r,$r),pe(lt,Ze,Dt,$r,$r)}pe(lt,Ze,Dt,"\xF0","\xF0"),pe(lt,Ze,Dt,"\u2013","\u2013"),pe(lt,Ze,Dt,"\u2014","\u2014"),pe(lt,Ze,Dt,"\u2018","\u2018"),pe(lt,Ze,Dt,"\u2019","\u2019"),pe(lt,Ze,Dt,"\u201C","\u201C"),pe(lt,Ze,Dt,"\u201D","\u201D");var vn=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],jt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],gt=function(ce,Se){var Le=ce.charCodeAt(0),Qe=ce.charCodeAt(1),Lt=(Le-55296)*1024+(Qe-56320)+65536,ir=Se==="math"?0:1;if(119808<=Lt&&Lt<120484){var Yr=Math.floor((Lt-119808)/26);return[vn[Yr][2],vn[Yr][ir]]}else if(120782<=Lt&&Lt<=120831){var hn=Math.floor((Lt-120782)/10);return[jt[hn][2],jt[hn][ir]]}else{if(Lt===120485||Lt===120486)return[vn[0][2],vn[0][ir]];if(120486<Lt&&Lt<120782)return["",""];throw new u("Unsupported character: "+ce)}},pt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ar=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ht=function(ce,Se){return Se.size<2?ce:pt[ce-1][Se.size-1]},Mt=function(){function It(Se){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=Se.style,this.color=Se.color,this.size=Se.size||It.BASESIZE,this.textSize=Se.textSize||this.size,this.phantom=!!Se.phantom,this.font=Se.font||"",this.fontFamily=Se.fontFamily||"",this.fontWeight=Se.fontWeight||"",this.fontShape=Se.fontShape||"",this.sizeMultiplier=ar[this.size-1],this.maxSize=Se.maxSize,this.minRuleThickness=Se.minRuleThickness,this._fontMetrics=void 0}var ce=It.prototype;return ce.extend=function(Le){var Qe={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var Lt in Le)Le.hasOwnProperty(Lt)&&(Qe[Lt]=Le[Lt]);return new It(Qe)},ce.havingStyle=function(Le){return this.style===Le?this:this.extend({style:Le,size:Ht(this.textSize,Le)})},ce.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ce.havingSize=function(Le){return this.size===Le&&this.textSize===Le?this:this.extend({style:this.style.text(),size:Le,textSize:Le,sizeMultiplier:ar[Le-1]})},ce.havingBaseStyle=function(Le){Le=Le||this.style.text();var Qe=Ht(It.BASESIZE,Le);return this.size===Qe&&this.textSize===It.BASESIZE&&this.style===Le?this:this.extend({style:Le,size:Qe})},ce.havingBaseSizing=function(){var Le;switch(this.style.id){case 4:case 5:Le=3;break;case 6:case 7:Le=1;break;default:Le=6}return this.extend({style:this.style.text(),size:Le})},ce.withColor=function(Le){return this.extend({color:Le})},ce.withPhantom=function(){return this.extend({phantom:!0})},ce.withFont=function(Le){return this.extend({font:Le})},ce.withTextFontFamily=function(Le){return this.extend({fontFamily:Le,font:""})},ce.withTextFontWeight=function(Le){return this.extend({fontWeight:Le,font:""})},ce.withTextFontShape=function(Le){return this.extend({fontShape:Le,font:""})},ce.sizingClasses=function(Le){return Le.size!==this.size?["sizing","reset-size"+Le.size,"size"+this.size]:[]},ce.baseSizingClasses=function(){return this.size!==It.BASESIZE?["sizing","reset-size"+this.size,"size"+It.BASESIZE]:[]},ce.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=hr(this.size)),this._fontMetrics},ce.getColor=function(){return this.phantom?"transparent":this.color},It}();Mt.BASESIZE=6;var qt=Mt,Rt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Qt={ex:!0,em:!0,mu:!0},jr=function(ce){return typeof ce!="string"&&(ce=ce.unit),ce in Rt||ce in Qt||ce==="ex"},Nr=function(ce,Se){var Le;if(ce.unit in Rt)Le=Rt[ce.unit]/Se.fontMetrics().ptPerEm/Se.sizeMultiplier;else if(ce.unit==="mu")Le=Se.fontMetrics().cssEmPerMu;else{var Qe;if(Se.style.isTight()?Qe=Se.havingStyle(Se.style.text()):Qe=Se,ce.unit==="ex")Le=Qe.fontMetrics().xHeight;else if(ce.unit==="em")Le=Qe.fontMetrics().quad;else throw new u("Invalid unit: '"+ce.unit+"'");Qe!==Se&&(Le*=Qe.sizeMultiplier/Se.sizeMultiplier)}return Math.min(ce.number*Le,Se.maxSize)},Lr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],ln=function(ce,Se,Le){return Ge[Le][ce]&&Ge[Le][ce].replace&&(ce=Ge[Le][ce].replace),{value:ce,metrics:dt(ce,Se,Le)}},mn=function(ce,Se,Le,Qe,Lt){var ir=ln(ce,Se,Le),Yr=ir.metrics;ce=ir.value;var hn;if(Yr){var In=Yr.italic;(Le==="text"||Qe&&Qe.font==="mathit")&&(In=0),hn=new Ne(ce,Yr.height,Yr.depth,In,Yr.skew,Yr.width,Lt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ce+"' in style '"+Se+"' and mode '"+Le+"'")),hn=new Ne(ce,0,0,0,0,0,Lt);if(Qe){hn.maxFontSize=Qe.sizeMultiplier,Qe.style.isTight()&&hn.classes.push("mtight");var si=Qe.getColor();si&&(hn.style.color=si)}return hn},ti=function(ce,Se,Le,Qe){return Qe===void 0&&(Qe=[]),Le.font==="boldsymbol"&&ln(ce,"Main-Bold",Se).metrics?mn(ce,"Main-Bold",Se,Le,Qe.concat(["mathbf"])):ce==="\\"||Ge[Se][ce].font==="main"?mn(ce,"Main-Regular",Se,Le,Qe):mn(ce,"AMS-Regular",Se,Le,Qe.concat(["amsrm"]))},$n=function(ce,Se,Le,Qe){return/[0-9]/.test(ce.charAt(0))||v.contains(Lr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},hi=function(ce,Se,Le,Qe){return v.contains(Lr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ce.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Ti=function(ce,Se,Le,Qe){return ln(ce,"Math-BoldItalic",Se).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ni=function(ce,Se,Le){var Qe=ce.mode,Lt=ce.text,ir=["mord"],Yr=Qe==="math"||Qe==="text"&&Se.font,hn=Yr?Se.font:Se.fontFamily;if(Lt.charCodeAt(0)===55349){var In=gt(Lt,Qe),si=In[0],wi=In[1];return mn(Lt,si,Qe,Se,ir.concat(wi))}else if(hn){var gi,Gi;if(hn==="boldsymbol"||hn==="mathnormal"){var sa=hn==="boldsymbol"?Ti(Lt,Qe,Se,ir):hi(Lt,Qe,Se,ir);gi=sa.fontName,Gi=[sa.fontClass]}else v.contains(Lr,Lt)?(gi="Main-Italic",Gi=["mathit"]):Yr?(gi=fn[hn].fontName,Gi=[hn]):(gi=Qr(hn,Se.fontWeight,Se.fontShape),Gi=[hn,Se.fontWeight,Se.fontShape]);if(ln(Lt,gi,Qe).metrics)return mn(Lt,gi,Qe,Se,ir.concat(Gi));if(dn.hasOwnProperty(Lt)&&gi.substr(0,10)==="Typewriter"){for(var Ua=[],no=0;no<Lt.length;no++)Ua.push(mn(Lt[no],gi,Qe,Se,ir.concat(Gi)));return at(Ua)}}if(Le==="mathord"){var Wo=$n(Lt,Qe,Se,ir);return mn(Lt,Wo.fontName,Qe,Se,ir.concat([Wo.fontClass]))}else if(Le==="textord"){var Zo=Ge[Qe][Lt]&&Ge[Qe][Lt].font;if(Zo==="ams"){var Bo=Qr("amsrm",Se.fontWeight,Se.fontShape);return mn(Lt,Bo,Qe,Se,ir.concat("amsrm",Se.fontWeight,Se.fontShape))}else if(Zo==="main"||!Zo){var Es=Qr("textrm",Se.fontWeight,Se.fontShape);return mn(Lt,Es,Qe,Se,ir.concat(Se.fontWeight,Se.fontShape))}else{var As=Qr(Zo,Se.fontWeight,Se.fontShape);return mn(Lt,As,Qe,Se,ir.concat(As,Se.fontWeight,Se.fontShape))}}else throw new Error("unexpected type: "+Le+" in makeOrd")},Wi=function(ce,Se){if(oe(ce.classes)!==oe(Se.classes)||ce.skew!==Se.skew||ce.maxFontSize!==Se.maxFontSize)return!1;for(var Le in ce.style)if(ce.style.hasOwnProperty(Le)&&ce.style[Le]!==Se.style[Le])return!1;for(var Qe in Se.style)if(Se.style.hasOwnProperty(Qe)&&ce.style[Qe]!==Se.style[Qe])return!1;return!0},rt=function(ce){for(var Se=0;Se<ce.length-1;Se++){var Le=ce[Se],Qe=ce[Se+1];Le instanceof Ne&&Qe instanceof Ne&&Wi(Le,Qe)&&(Le.text+=Qe.text,Le.height=Math.max(Le.height,Qe.height),Le.depth=Math.max(Le.depth,Qe.depth),Le.italic=Qe.italic,ce.splice(Se+1,1),Se--)}return ce},Re=function(ce){for(var Se=0,Le=0,Qe=0,Lt=0;Lt<ce.children.length;Lt++){var ir=ce.children[Lt];ir.height>Se&&(Se=ir.height),ir.depth>Le&&(Le=ir.depth),ir.maxFontSize>Qe&&(Qe=ir.maxFontSize)}ce.height=Se,ce.depth=Le,ce.maxFontSize=Qe},Ue=function(ce,Se,Le,Qe){var Lt=new Y(ce,Se,Le,Qe);return Re(Lt),Lt},Ye=function(ce,Se,Le,Qe){return new Y(ce,Se,Le,Qe)},et=function(ce,Se,Le){var Qe=Ue([ce],[],Se);return Qe.height=Math.max(Le||Se.fontMetrics().defaultRuleThickness,Se.minRuleThickness),Qe.style.borderBottomWidth=Qe.height+"em",Qe.maxFontSize=1,Qe},$e=function(ce,Se,Le,Qe){var Lt=new q(ce,Se,Le,Qe);return Re(Lt),Lt},at=function(ce){var Se=new Ie(ce);return Re(Se),Se},wt=function(ce,Se){return ce instanceof Ie?Ue([],[ce],Se):ce},ft=function(ce){if(ce.positionType==="individualShift"){for(var Se=ce.children,Le=[Se[0]],Qe=-Se[0].shift-Se[0].elem.depth,Lt=Qe,ir=1;ir<Se.length;ir++){var Yr=-Se[ir].shift-Lt-Se[ir].elem.depth,hn=Yr-(Se[ir-1].elem.height+Se[ir-1].elem.depth);Lt=Lt+Yr,Le.push({type:"kern",size:hn}),Le.push(Se[ir])}return{children:Le,depth:Qe}}var In;if(ce.positionType==="top"){for(var si=ce.positionData,wi=0;wi<ce.children.length;wi++){var gi=ce.children[wi];si-=gi.type==="kern"?gi.size:gi.elem.height+gi.elem.depth}In=si}else if(ce.positionType==="bottom")In=-ce.positionData;else{var Gi=ce.children[0];if(Gi.type!=="elem")throw new Error('First child must have type "elem".');if(ce.positionType==="shift")In=-Gi.elem.depth-ce.positionData;else if(ce.positionType==="firstBaseline")In=-Gi.elem.depth;else throw new Error("Invalid positionType "+ce.positionType+".")}return{children:ce.children,depth:In}},cr=function(ce,Se){for(var Le=ft(ce),Qe=Le.children,Lt=Le.depth,ir=0,Yr=0;Yr<Qe.length;Yr++){var hn=Qe[Yr];if(hn.type==="elem"){var In=hn.elem;ir=Math.max(ir,In.maxFontSize,In.height)}}ir+=2;var si=Ue(["pstrut"],[]);si.style.height=ir+"em";for(var wi=[],gi=Lt,Gi=Lt,sa=Lt,Ua=0;Ua<Qe.length;Ua++){var no=Qe[Ua];if(no.type==="kern")sa+=no.size;else{var Wo=no.elem,Zo=no.wrapperClasses||[],Bo=no.wrapperStyle||{},Es=Ue(Zo,[si,Wo],void 0,Bo);Es.style.top=-ir-sa-Wo.depth+"em",no.marginLeft&&(Es.style.marginLeft=no.marginLeft),no.marginRight&&(Es.style.marginRight=no.marginRight),wi.push(Es),sa+=Wo.height+Wo.depth}gi=Math.min(gi,sa),Gi=Math.max(Gi,sa)}var As=Ue(["vlist"],wi);As.style.height=Gi+"em";var $o;if(gi<0){var Do=Ue([],[]),vo=Ue(["vlist"],[Do]);vo.style.height=-gi+"em";var Ms=Ue(["vlist-s"],[new Ne("\u200B")]);$o=[Ue(["vlist-r"],[As,Ms]),Ue(["vlist-r"],[vo])]}else $o=[Ue(["vlist-r"],[As])];var rl=Ue(["vlist-t"],$o);return $o.length===2&&rl.classes.push("vlist-t2"),rl.height=Gi,rl.depth=-gi,rl},Jr=function(ce,Se){var Le=Ue(["mspace"],[],Se),Qe=Nr(ce,Se);return Le.style.marginRight=Qe+"em",Le},Qr=function(ce,Se,Le){var Qe="";switch(ce){case"amsrm":Qe="AMS";break;case"textrm":Qe="Main";break;case"textsf":Qe="SansSerif";break;case"texttt":Qe="Typewriter";break;default:Qe=ce}var Lt;return Se==="textbf"&&Le==="textit"?Lt="BoldItalic":Se==="textbf"?Lt="Bold":Se==="textit"?Lt="Italic":Lt="Regular",Qe+"-"+Lt},fn={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},pr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Wn=function(ce,Se){var Le=pr[ce],Qe=Le[0],Lt=Le[1],ir=Le[2],Yr=new me(Qe),hn=new je([Yr],{width:Lt+"em",height:ir+"em",style:"width:"+Lt+"em",viewBox:"0 0 "+1e3*Lt+" "+1e3*ir,preserveAspectRatio:"xMinYMin"}),In=Ye(["overlay"],[hn],Se);return In.height=ir,In.style.height=ir+"em",In.style.width=Lt+"em",In},kr={fontMap:fn,makeSymbol:mn,mathsym:ti,makeSpan:Ue,makeSvgSpan:Ye,makeLineSpan:et,makeAnchor:$e,makeFragment:at,wrapFragment:wt,makeVList:cr,makeOrd:Ni,makeGlue:Jr,staticSvg:Wn,svgData:pr,tryCombineChars:rt};function kn(It,ce){var Se=bn(It,ce);if(!Se)throw new Error("Expected node of type "+ce+", but got "+(It?"node of type "+It.type:String(It)));return Se}function bn(It,ce){return It&&It.type===ce?It:null}function qr(It,ce){var Se=fi(It,ce);if(!Se)throw new Error('Expected node of type "atom" and family "'+ce+'", but got '+(It?It.type==="atom"?"atom of family "+It.family:"node of type "+It.type:String(It)));return Se}function fi(It,ce){return It&&It.type==="atom"&&It.family===ce?It:null}function Mi(It){var ce=Zi(It);if(!ce)throw new Error("Expected node of symbol group type, but got "+(It?"node of type "+It.type:String(It)));return ce}function Zi(It){return It&&(It.type==="atom"||Pt.hasOwnProperty(It.type))?It:null}var tn={number:3,unit:"mu"},En={number:4,unit:"mu"},Vn={number:5,unit:"mu"},Wt={mord:{mop:tn,mbin:En,mrel:Vn,minner:tn},mop:{mord:tn,mop:tn,mrel:Vn,minner:tn},mbin:{mord:En,mop:En,mopen:En,minner:En},mrel:{mord:Vn,mop:Vn,mopen:Vn,minner:Vn},mopen:{},mclose:{mop:tn,mbin:En,mrel:Vn,minner:tn},mpunct:{mord:tn,mop:tn,mrel:Vn,mopen:tn,mclose:tn,mpunct:tn,minner:tn},minner:{mord:tn,mop:tn,mbin:En,mrel:Vn,mopen:tn,mpunct:tn,minner:tn}},Et={mord:{mop:tn},mop:{mord:tn,mop:tn},mbin:{},mrel:{},mopen:{},mclose:{mop:tn},mpunct:{},minner:{mop:tn}},kt={},Bt={},Kt={};function Ot(It){for(var ce=It.type,Se=It.names,Le=It.props,Qe=It.handler,Lt=It.htmlBuilder,ir=It.mathmlBuilder,Yr={type:ce,numArgs:Le.numArgs,argTypes:Le.argTypes,greediness:Le.greediness===void 0?1:Le.greediness,allowedInText:!!Le.allowedInText,allowedInMath:Le.allowedInMath===void 0?!0:Le.allowedInMath,numOptionalArgs:Le.numOptionalArgs||0,infix:!!Le.infix,handler:Qe},hn=0;hn<Se.length;++hn)kt[Se[hn]]=Yr;ce&&(Lt&&(Bt[ce]=Lt),ir&&(Kt[ce]=ir))}function sr(It){var ce=It.type,Se=It.htmlBuilder,Le=It.mathmlBuilder;Ot({type:ce,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:Se,mathmlBuilder:Le})}var fr=function(ce){var Se=bn(ce,"ordgroup");return Se?Se.body:[ce]},vr=kr.makeSpan,Rr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Kn=["rightmost","mrel","mclose","mpunct"],Dn={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT},ui={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},pn=function(ce,Se,Le,Qe){Qe===void 0&&(Qe=[null,null]);for(var Lt=[],ir=0;ir<ce.length;ir++){var Yr=xi(ce[ir],Se);if(Yr instanceof Ie){var hn=Yr.children;Lt.push.apply(Lt,hn)}else Lt.push(Yr)}if(!Le)return Lt;var In=Se;if(ce.length===1){var si=bn(ce[0],"sizing")||bn(ce[0],"styling");si&&(si.type==="sizing"?In=Se.havingSize(si.size):si.type==="styling"&&(In=Se.havingStyle(Dn[si.style])))}var wi=vr([Qe[0]||"leftmost"],[],Se),gi=vr([Qe[1]||"rightmost"],[],Se);return Br(Lt,function(Gi,sa){var Ua=sa.classes[0],no=Gi.classes[0];Ua==="mbin"&&v.contains(Kn,no)?sa.classes[0]="mord":no==="mbin"&&v.contains(Rr,Ua)&&(Gi.classes[0]="mord")},{node:wi},gi),Br(Lt,function(Gi,sa){var Ua=Qn(sa),no=Qn(Gi),Wo=Ua&&no?Gi.hasClass("mtight")?Et[Ua][no]:Wt[Ua][no]:null;if(Wo)return kr.makeGlue(Wo,In)},{node:wi},gi),Lt},Br=function It(ce,Se,Le,Qe){Qe&&ce.push(Qe);for(var Lt=0;Lt<ce.length;Lt++){var ir=ce[Lt],Yr=Tn(ir);if(Yr){It(Yr.children,Se,Le);continue}if(ir.classes[0]==="mspace")continue;var hn=Se(ir,Le.node);hn&&(Le.insertAfter?Le.insertAfter(hn):(ce.unshift(hn),Lt++)),Le.node=ir,Le.insertAfter=function(In){return function(si){ce.splice(In+1,0,si),Lt++}}(Lt)}Qe&&ce.pop()},Tn=function(ce){return ce instanceof Ie||ce instanceof q?ce:null},zn=function It(ce,Se){var Le=Tn(ce);if(Le){var Qe=Le.children;if(Qe.length){if(Se==="right")return It(Qe[Qe.length-1],"right");if(Se==="left")return It(Qe[0],"left")}}return ce},Qn=function(ce,Se){return ce?(Se&&(ce=zn(ce,Se)),ui[ce.classes[0]]||null):null},ii=function(ce,Se){var Le=["nulldelimiter"].concat(ce.baseSizingClasses());return vr(Se.concat(Le))},xi=function(ce,Se,Le){if(!ce)return vr();if(Bt[ce.type]){var Qe=Bt[ce.type](ce,Se);if(Le&&Se.size!==Le.size){Qe=vr(Se.sizingClasses(Le),[Qe],Se);var Lt=Se.sizeMultiplier/Le.sizeMultiplier;Qe.height*=Lt,Qe.depth*=Lt}return Qe}else throw new u("Got group of unknown type: '"+ce.type+"'")};function Di(It,ce){var Se=vr(["base"],It,ce),Le=vr(["strut"]);return Le.style.height=Se.height+Se.depth+"em",Le.style.verticalAlign=-Se.depth+"em",Se.children.unshift(Le),Se}function Li(It,ce){var Se=null;It.length===1&&It[0].type==="tag"&&(Se=It[0].tag,It=It[0].body);for(var Le=pn(It,ce,!0),Qe=[],Lt=[],ir=0;ir<Le.length;ir++)if(Lt.push(Le[ir]),Le[ir].hasClass("mbin")||Le[ir].hasClass("mrel")||Le[ir].hasClass("allowbreak")){for(var Yr=!1;ir<Le.length-1&&Le[ir+1].hasClass("mspace")&&!Le[ir+1].hasClass("newline");)ir++,Lt.push(Le[ir]),Le[ir].hasClass("nobreak")&&(Yr=!0);Yr||(Qe.push(Di(Lt,ce)),Lt=[])}else Le[ir].hasClass("newline")&&(Lt.pop(),Lt.length>0&&(Qe.push(Di(Lt,ce)),Lt=[]),Qe.push(Le[ir]));Lt.length>0&&Qe.push(Di(Lt,ce));var hn;Se&&(hn=Di(pn(Se,ce,!0)),hn.classes=["tag"],Qe.push(hn));var In=vr(["katex-html"],Qe);if(In.setAttribute("aria-hidden","true"),hn){var si=hn.children[0];si.style.height=In.height+In.depth+"em",si.style.verticalAlign=-In.depth+"em"}return In}function oa(It){return new Ie(It)}var ma=function(){function It(Se,Le){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=Se,this.attributes={},this.children=Le||[]}var ce=It.prototype;return ce.setAttribute=function(Le,Qe){this.attributes[Le]=Qe},ce.getAttribute=function(Le){return this.attributes[Le]},ce.toNode=function(){var Le=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&Le.setAttribute(Qe,this.attributes[Qe]);for(var Lt=0;Lt<this.children.length;Lt++)Le.appendChild(this.children[Lt].toNode());return Le},ce.toMarkup=function(){var Le="<"+this.type;for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Le+=" "+Qe+'="',Le+=v.escape(this.attributes[Qe]),Le+='"');Le+=">";for(var Lt=0;Lt<this.children.length;Lt++)Le+=this.children[Lt].toMarkup();return Le+="</"+this.type+">",Le},ce.toText=function(){return this.children.map(function(Le){return Le.toText()}).join("")},It}(),ia=function(){function It(Se){this.text=void 0,this.text=Se}var ce=It.prototype;return ce.toNode=function(){return document.createTextNode(this.text)},ce.toMarkup=function(){return v.escape(this.toText())},ce.toText=function(){return this.text},It}(),ba=function(){function It(Se){this.width=void 0,this.character=void 0,this.width=Se,Se>=.05555&&Se<=.05556?this.character="\u200A":Se>=.1666&&Se<=.1667?this.character="\u2009":Se>=.2222&&Se<=.2223?this.character="\u2005":Se>=.2777&&Se<=.2778?this.character="\u2005\u200A":Se>=-.05556&&Se<=-.05555?this.character="\u200A\u2063":Se>=-.1667&&Se<=-.1666?this.character="\u2009\u2063":Se>=-.2223&&Se<=-.2222?this.character="\u205F\u2063":Se>=-.2778&&Se<=-.2777?this.character="\u2005\u2063":this.character=null}var ce=It.prototype;return ce.toNode=function(){if(this.character)return document.createTextNode(this.character);var Le=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Le.setAttribute("width",this.width+"em"),Le},ce.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ce.toText=function(){return this.character?this.character:" "},It}(),vi={MathNode:ma,TextNode:ia,SpaceNode:ba,newDocumentFragment:oa},Ln=function(ce,Se,Le){return Ge[Se][ce]&&Ge[Se][ce].replace&&ce.charCodeAt(0)!==55349&&!(dn.hasOwnProperty(ce)&&Le&&(Le.fontFamily&&Le.fontFamily.substr(4,2)==="tt"||Le.font&&Le.font.substr(4,2)==="tt"))&&(ce=Ge[Se][ce].replace),new vi.TextNode(ce)},Fi=function(ce){return ce.length===1?ce[0]:new vi.MathNode("mrow",ce)},ha=function(ce,Se){if(Se.fontFamily==="texttt")return"monospace";if(Se.fontFamily==="textsf")return Se.fontShape==="textit"&&Se.fontWeight==="textbf"?"sans-serif-bold-italic":Se.fontShape==="textit"?"sans-serif-italic":Se.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(Se.fontShape==="textit"&&Se.fontWeight==="textbf")return"bold-italic";if(Se.fontShape==="textit")return"italic";if(Se.fontWeight==="textbf")return"bold";var Le=Se.font;if(!Le||Le==="mathnormal")return null;var Qe=ce.mode;if(Le==="mathit")return"italic";if(Le==="boldsymbol")return"bold-italic";if(Le==="mathbf")return"bold";if(Le==="mathbb")return"double-struck";if(Le==="mathfrak")return"fraktur";if(Le==="mathscr"||Le==="mathcal")return"script";if(Le==="mathsf")return"sans-serif";if(Le==="mathtt")return"monospace";var Lt=ce.text;if(v.contains(["\\imath","\\jmath"],Lt))return null;Ge[Qe][Lt]&&Ge[Qe][Lt].replace&&(Lt=Ge[Qe][Lt].replace);var ir=kr.fontMap[Le].fontName;return dt(Lt,ir,Qe)?kr.fontMap[Le].variant:null},ea=function(ce,Se,Le){if(ce.length===1){var Qe=Ir(ce[0],Se);return Le&&Qe instanceof ma&&Qe.type==="mo"&&(Qe.setAttribute("lspace","0em"),Qe.setAttribute("rspace","0em")),[Qe]}for(var Lt=[],ir,Yr=0;Yr<ce.length;Yr++){var hn=Ir(ce[Yr],Se);if(hn instanceof ma&&ir instanceof ma){if(hn.type==="mtext"&&ir.type==="mtext"&&hn.getAttribute("mathvariant")===ir.getAttribute("mathvariant")){var In;(In=ir.children).push.apply(In,hn.children);continue}else if(hn.type==="mn"&&ir.type==="mn"){var si;(si=ir.children).push.apply(si,hn.children);continue}else if(hn.type==="mi"&&hn.children.length===1&&ir.type==="mn"){var wi=hn.children[0];if(wi instanceof ia&&wi.text==="."){var gi;(gi=ir.children).push.apply(gi,hn.children);continue}}else if(ir.type==="mi"&&ir.children.length===1){var Gi=ir.children[0];if(Gi instanceof ia&&Gi.text==="\u0338"&&(hn.type==="mo"||hn.type==="mi"||hn.type==="mn")){var sa=hn.children[0];sa instanceof ia&&sa.text.length>0&&(sa.text=sa.text.slice(0,1)+"\u0338"+sa.text.slice(1),Lt.pop())}}}Lt.push(hn),ir=hn}return Lt},aa=function(ce,Se,Le){return Fi(ea(ce,Se,Le))},Ir=function(ce,Se){if(!ce)return new vi.MathNode("mrow");if(Kt[ce.type]){var Le=Kt[ce.type](ce,Se);return Le}else throw new u("Got group of unknown type: '"+ce.type+"'")};function wr(It,ce,Se,Le){var Qe=ea(It,Se),Lt;Qe.length===1&&Qe[0]instanceof ma&&v.contains(["mrow","mtable"],Qe[0].type)?Lt=Qe[0]:Lt=new vi.MathNode("mrow",Qe);var ir=new vi.MathNode("annotation",[new vi.TextNode(ce)]);ir.setAttribute("encoding","application/x-tex");var Yr=new vi.MathNode("semantics",[Lt,ir]),hn=new vi.MathNode("math",[Yr]);hn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var In=Le?"katex":"katex-mathml";return kr.makeSpan([In],[hn])}var xn=function(ce){return new qt({style:ce.displayMode?z.DISPLAY:z.TEXT,maxSize:ce.maxSize,minRuleThickness:ce.minRuleThickness})},ur=function(ce,Se){if(Se.displayMode){var Le=["katex-display"];Se.leqno&&Le.push("leqno"),Se.fleqn&&Le.push("fleqn"),ce=kr.makeSpan(Le,[ce])}return ce},Dr=function(ce,Se,Le){var Qe=xn(Le),Lt;if(Le.output==="mathml")return wr(ce,Se,Qe,!0);if(Le.output==="html"){var ir=Li(ce,Qe);Lt=kr.makeSpan(["katex"],[ir])}else{var Yr=wr(ce,Se,Qe,!1),hn=Li(ce,Qe);Lt=kr.makeSpan(["katex"],[Yr,hn])}return ur(Lt,Le)},Vr=function(ce,Se,Le){var Qe=xn(Le),Lt=Li(ce,Qe),ir=kr.makeSpan(["katex"],[Lt]);return ur(ir,Le)},sn=Dr,Rn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},xt=function(ce){var Se=new vi.MathNode("mo",[new vi.TextNode(Rn[ce.substr(1)])]);return Se.setAttribute("stretchy","true"),Se},_r={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Or=function(ce){return ce.type==="ordgroup"?ce.body.length:1},en=function(ce,Se){function Le(){var hn=4e5,In=ce.label.substr(1);if(v.contains(["widehat","widecheck","widetilde","utilde"],In)){var si=ce,wi=Or(si.base),gi,Gi,sa;if(wi>5)In==="widehat"||In==="widecheck"?(gi=420,hn=2364,sa=.42,Gi=In+"4"):(gi=312,hn=2340,sa=.34,Gi="tilde4");else{var Ua=[1,1,2,2,3,3][wi];In==="widehat"||In==="widecheck"?(hn=[0,1062,2364,2364,2364][Ua],gi=[0,239,300,360,420][Ua],sa=[0,.24,.3,.3,.36,.42][Ua],Gi=In+Ua):(hn=[0,600,1033,2339,2340][Ua],gi=[0,260,286,306,312][Ua],sa=[0,.26,.286,.3,.306,.34][Ua],Gi="tilde"+Ua)}var no=new me(Gi),Wo=new je([no],{width:"100%",height:sa+"em",viewBox:"0 0 "+hn+" "+gi,preserveAspectRatio:"none"});return{span:kr.makeSvgSpan([],[Wo],Se),minWidth:0,height:sa}}else{var Zo=[],Bo=_r[In],Es=Bo[0],As=Bo[1],$o=Bo[2],Do=$o/1e3,vo=Es.length,Ms,rl;if(vo===1){var gs=Bo[3];Ms=["hide-tail"],rl=[gs]}else if(vo===2)Ms=["halfarrow-left","halfarrow-right"],rl=["xMinYMin","xMaxYMin"];else if(vo===3)Ms=["brace-left","brace-center","brace-right"],rl=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+vo+" children.");for(var Ra=0;Ra<vo;Ra++){var dl=new me(Es[Ra]),fl=new je([dl],{width:"400em",height:Do+"em",viewBox:"0 0 "+hn+" "+$o,preserveAspectRatio:rl[Ra]+" slice"}),js=kr.makeSvgSpan([Ms[Ra]],[fl],Se);if(vo===1)return{span:js,minWidth:As,height:Do};js.style.height=Do+"em",Zo.push(js)}return{span:kr.makeSpan(["stretchy"],Zo,Se),minWidth:As,height:Do}}}var Qe=Le(),Lt=Qe.span,ir=Qe.minWidth,Yr=Qe.height;return Lt.height=Yr,Lt.style.height=Yr+"em",ir>0&&(Lt.style.minWidth=ir+"em"),Lt},wn=function(ce,Se,Le,Qe){var Lt,ir=ce.height+ce.depth+2*Le;if(/fbox|color/.test(Se)){if(Lt=kr.makeSpan(["stretchy",Se],[],Qe),Se==="fbox"){var Yr=Qe.color&&Qe.getColor();Yr&&(Lt.style.borderColor=Yr)}}else{var hn=[];/^[bx]cancel$/.test(Se)&&hn.push(new Ce({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(Se)&&hn.push(new Ce({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var In=new je(hn,{width:"100%",height:ir+"em"});Lt=kr.makeSvgSpan([],[In],Qe)}return Lt.height=ir,Lt.style.height=ir+"em",Lt},_n={encloseSpan:wn,mathMLnode:xt,svgSpan:en},yn=function(ce,Se){var Le,Qe,Lt=bn(ce,"supsub"),ir;Lt?(Qe=kn(Lt.base,"accent"),Le=Qe.base,Lt.base=Le,ir=it(xi(Lt,Se)),Lt.base=Qe):(Qe=kn(ce,"accent"),Le=Qe.base);var Yr=xi(Le,Se.havingCrampedStyle()),hn=Qe.isShifty&&v.isCharacterBox(Le),In=0;if(hn){var si=v.getBaseElem(Le),wi=xi(si,Se.havingCrampedStyle());In=Fe(wi).skew}var gi=Math.min(Yr.height,Se.fontMetrics().xHeight),Gi;if(Qe.isStretchy)Gi=_n.svgSpan(Qe,Se),Gi=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Yr},{type:"elem",elem:Gi,wrapperClasses:["svg-align"],wrapperStyle:In>0?{width:"calc(100% - "+2*In+"em)",marginLeft:2*In+"em"}:void 0}]},Se);else{var sa,Ua;Qe.label==="\\vec"?(sa=kr.staticSvg("vec",Se),Ua=kr.svgData.vec[1]):(sa=kr.makeOrd({mode:Qe.mode,text:Qe.label},Se,"textord"),sa=Fe(sa),sa.italic=0,Ua=sa.width),Gi=kr.makeSpan(["accent-body"],[sa]);var no=Qe.label==="\\textcircled";no&&(Gi.classes.push("accent-full"),gi=Yr.height);var Wo=In;no||(Wo-=Ua/2),Gi.style.left=Wo+"em",Qe.label==="\\textcircled"&&(Gi.style.top=".2em"),Gi=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Yr},{type:"kern",size:-gi},{type:"elem",elem:Gi}]},Se)}var Zo=kr.makeSpan(["mord","accent"],[Gi],Se);return ir?(ir.children[0]=Zo,ir.height=Math.max(Zo.height,ir.height),ir.classes[0]="mord",ir):Zo},Jn=function(ce,Se){var Le=ce.isStretchy?_n.mathMLnode(ce.label):new vi.MathNode("mo",[Ln(ce.label,ce.mode)]),Qe=new vi.MathNode("mover",[Ir(ce.base,Se),Le]);return Qe.setAttribute("accent","true"),Qe},Un=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(It){return"\\"+It}).join("|"));Ot({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ce,Se){var Le=Se[0],Qe=!Un.test(ce.funcName),Lt=!Qe||ce.funcName==="\\widehat"||ce.funcName==="\\widetilde"||ce.funcName==="\\widecheck";return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:Qe,isShifty:Lt,base:Le}},htmlBuilder:yn,mathmlBuilder:Jn}),Ot({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){var Le=Se[0];return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:!1,isShifty:!0,base:Le}},htmlBuilder:yn,mathmlBuilder:Jn}),Ot({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0];return{type:"accentUnder",mode:Le.mode,label:Qe,base:Lt}},htmlBuilder:function(ce,Se){var Le=xi(ce.base,Se),Qe=_n.svgSpan(ce,Se),Lt=ce.label==="\\utilde"?.12:0,ir=kr.makeVList({positionType:"bottom",positionData:Qe.height+Lt,children:[{type:"elem",elem:Qe,wrapperClasses:["svg-align"]},{type:"kern",size:Lt},{type:"elem",elem:Le}]},Se);return kr.makeSpan(["mord","accentunder"],[ir],Se)},mathmlBuilder:function(ce,Se){var Le=_n.mathMLnode(ce.label),Qe=new vi.MathNode("munder",[Ir(ce.base,Se),Le]);return Qe.setAttribute("accentunder","true"),Qe}});var pi=function(ce){var Se=new vi.MathNode("mpadded",ce?[ce]:[]);return Se.setAttribute("width","+0.6em"),Se.setAttribute("lspace","0.3em"),Se};Ot({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=ce.funcName;return{type:"xArrow",mode:Qe.mode,label:Lt,body:Se[0],below:Le[0]}},htmlBuilder:function(ce,Se){var Le=Se.style,Qe=Se.havingStyle(Le.sup()),Lt=kr.wrapFragment(xi(ce.body,Qe,Se),Se);Lt.classes.push("x-arrow-pad");var ir;ce.below&&(Qe=Se.havingStyle(Le.sub()),ir=kr.wrapFragment(xi(ce.below,Qe,Se),Se),ir.classes.push("x-arrow-pad"));var Yr=_n.svgSpan(ce,Se),hn=-Se.fontMetrics().axisHeight+.5*Yr.height,In=-Se.fontMetrics().axisHeight-.5*Yr.height-.111;(Lt.depth>.25||ce.label==="\\xleftequilibrium")&&(In-=Lt.depth);var si;if(ir){var wi=-Se.fontMetrics().axisHeight+ir.height+.5*Yr.height+.111;si=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Lt,shift:In},{type:"elem",elem:Yr,shift:hn},{type:"elem",elem:ir,shift:wi}]},Se)}else si=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Lt,shift:In},{type:"elem",elem:Yr,shift:hn}]},Se);return si.children[0].children[0].children[1].classes.push("svg-align"),kr.makeSpan(["mrel","x-arrow"],[si],Se)},mathmlBuilder:function(ce,Se){var Le=_n.mathMLnode(ce.label),Qe;if(ce.body){var Lt=pi(Ir(ce.body,Se));if(ce.below){var ir=pi(Ir(ce.below,Se));Qe=new vi.MathNode("munderover",[Le,ir,Lt])}else Qe=new vi.MathNode("mover",[Le,Lt])}else if(ce.below){var Yr=pi(Ir(ce.below,Se));Qe=new vi.MathNode("munder",[Le,Yr])}else Qe=pi(),Qe=new vi.MathNode("mover",[Le,Qe]);return Qe}}),Ot({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){for(var Le=ce.parser,Qe=kn(Se[0],"ordgroup"),Lt=Qe.body,ir="",Yr=0;Yr<Lt.length;Yr++){var hn=kn(Lt[Yr],"textord");ir+=hn.text}var In=parseInt(ir);if(isNaN(In))throw new u("\\@char has non-numeric argument "+ir);return{type:"textord",mode:Le.mode,text:String.fromCharCode(In)}}});var ki=function(ce,Se){var Le=pn(ce.body,Se.withColor(ce.color),!1);return kr.makeFragment(Le)},yi=function(ce,Se){var Le=ea(ce.body,Se.withColor(ce.color)),Qe=new vi.MathNode("mstyle",Le);return Qe.setAttribute("mathcolor",ce.color),Qe};Ot({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ce,Se){var Le=ce.parser,Qe=kn(Se[0],"color-token").color,Lt=Se[1];return{type:"color",mode:Le.mode,color:Qe,body:fr(Lt)}},htmlBuilder:ki,mathmlBuilder:yi}),Ot({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ce,Se){var Le=ce.parser,Qe=ce.breakOnTokenText,Lt=kn(Se[0],"color-token").color;Le.gullet.macros.set("\\current@color",Lt);var ir=Le.parseExpression(!0,Qe);return{type:"color",mode:Le.mode,color:Lt,body:ir}},htmlBuilder:ki,mathmlBuilder:yi}),Ot({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=ce.funcName,ir=Le[0],Yr=Lt==="\\cr",hn=!1;return Yr||(Qe.settings.displayMode&&Qe.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?hn=!1:hn=!0),{type:"cr",mode:Qe.mode,newLine:hn,newRow:Yr,size:ir&&kn(ir,"size").value}},htmlBuilder:function(ce,Se){if(ce.newRow)throw new u("\\cr valid only within a tabular/array environment");var Le=kr.makeSpan(["mspace"],[],Se);return ce.newLine&&(Le.classes.push("newline"),ce.size&&(Le.style.marginTop=Nr(ce.size,Se)+"em")),Le},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mspace");return ce.newLine&&(Le.setAttribute("linebreak","newline"),ce.size&&Le.setAttribute("height",Nr(ce.size,Se)+"em")),Le}});var _i=function(ce,Se,Le){var Qe=Ge.math[ce]&&Ge.math[ce].replace,Lt=dt(Qe||ce,Se,Le);if(!Lt)throw new Error("Unsupported symbol "+ce+" and font size "+Se+".");return Lt},Ki=function(ce,Se,Le,Qe){var Lt=Le.havingBaseStyle(Se),ir=kr.makeSpan(Qe.concat(Lt.sizingClasses(Le)),[ce],Le),Yr=Lt.sizeMultiplier/Le.sizeMultiplier;return ir.height*=Yr,ir.depth*=Yr,ir.maxFontSize=Lt.sizeMultiplier,ir},qi=function(ce,Se,Le){var Qe=Se.havingBaseStyle(Le),Lt=(1-Se.sizeMultiplier/Qe.sizeMultiplier)*Se.fontMetrics().axisHeight;ce.classes.push("delimcenter"),ce.style.top=Lt+"em",ce.height-=Lt,ce.depth+=Lt},zi=function(ce,Se,Le,Qe,Lt,ir){var Yr=kr.makeSymbol(ce,"Main-Regular",Lt,Qe),hn=Ki(Yr,Se,Qe,ir);return Le&&qi(hn,Qe,Se),hn},Hi=function(ce,Se,Le,Qe){return kr.makeSymbol(ce,"Size"+Se+"-Regular",Le,Qe)},Ui=function(ce,Se,Le,Qe,Lt,ir){var Yr=Hi(ce,Se,Lt,Qe),hn=Ki(kr.makeSpan(["delimsizing","size"+Se],[Yr],Qe),z.TEXT,Qe,ir);return Le&&qi(hn,Qe,z.TEXT),hn},Qi=function(ce,Se,Le){var Qe;Se==="Size1-Regular"?Qe="delim-size1":Qe="delim-size4";var Lt=kr.makeSpan(["delimsizinginner",Qe],[kr.makeSpan([],[kr.makeSymbol(ce,Se,Le)])]);return{type:"elem",elem:Lt}},ca={type:"kern",size:-.005},Ca=function(ce,Se,Le,Qe,Lt,ir){var Yr,hn,In,si;Yr=In=si=ce,hn=null;var wi="Size1-Regular";ce==="\\uparrow"?In=si="\u23D0":ce==="\\Uparrow"?In=si="\u2016":ce==="\\downarrow"?Yr=In="\u23D0":ce==="\\Downarrow"?Yr=In="\u2016":ce==="\\updownarrow"?(Yr="\\uparrow",In="\u23D0",si="\\downarrow"):ce==="\\Updownarrow"?(Yr="\\Uparrow",In="\u2016",si="\\Downarrow"):ce==="["||ce==="\\lbrack"?(Yr="\u23A1",In="\u23A2",si="\u23A3",wi="Size4-Regular"):ce==="]"||ce==="\\rbrack"?(Yr="\u23A4",In="\u23A5",si="\u23A6",wi="Size4-Regular"):ce==="\\lfloor"||ce==="\u230A"?(In=Yr="\u23A2",si="\u23A3",wi="Size4-Regular"):ce==="\\lceil"||ce==="\u2308"?(Yr="\u23A1",In=si="\u23A2",wi="Size4-Regular"):ce==="\\rfloor"||ce==="\u230B"?(In=Yr="\u23A5",si="\u23A6",wi="Size4-Regular"):ce==="\\rceil"||ce==="\u2309"?(Yr="\u23A4",In=si="\u23A5",wi="Size4-Regular"):ce==="("||ce==="\\lparen"?(Yr="\u239B",In="\u239C",si="\u239D",wi="Size4-Regular"):ce===")"||ce==="\\rparen"?(Yr="\u239E",In="\u239F",si="\u23A0",wi="Size4-Regular"):ce==="\\{"||ce==="\\lbrace"?(Yr="\u23A7",hn="\u23A8",si="\u23A9",In="\u23AA",wi="Size4-Regular"):ce==="\\}"||ce==="\\rbrace"?(Yr="\u23AB",hn="\u23AC",si="\u23AD",In="\u23AA",wi="Size4-Regular"):ce==="\\lgroup"||ce==="\u27EE"?(Yr="\u23A7",si="\u23A9",In="\u23AA",wi="Size4-Regular"):ce==="\\rgroup"||ce==="\u27EF"?(Yr="\u23AB",si="\u23AD",In="\u23AA",wi="Size4-Regular"):ce==="\\lmoustache"||ce==="\u23B0"?(Yr="\u23A7",si="\u23AD",In="\u23AA",wi="Size4-Regular"):(ce==="\\rmoustache"||ce==="\u23B1")&&(Yr="\u23AB",si="\u23A9",In="\u23AA",wi="Size4-Regular");var gi=_i(Yr,wi,Lt),Gi=gi.height+gi.depth,sa=_i(In,wi,Lt),Ua=sa.height+sa.depth,no=_i(si,wi,Lt),Wo=no.height+no.depth,Zo=0,Bo=1;if(hn!==null){var Es=_i(hn,wi,Lt);Zo=Es.height+Es.depth,Bo=2}var As=Gi+Wo+Zo,$o=Math.max(0,Math.ceil((Se-As)/(Bo*Ua))),Do=As+$o*Bo*Ua,vo=Qe.fontMetrics().axisHeight;Le&&(vo*=Qe.sizeMultiplier);var Ms=Do/2-vo,rl=($o+1)*.005-Ua,gs=[];if(gs.push(Qi(si,wi,Lt)),hn===null)for(var Ra=0;Ra<$o;Ra++)gs.push(ca),gs.push(Qi(In,wi,Lt));else{for(var dl=0;dl<$o;dl++)gs.push(ca),gs.push(Qi(In,wi,Lt));gs.push({type:"kern",size:rl}),gs.push(Qi(In,wi,Lt)),gs.push(ca),gs.push(Qi(hn,wi,Lt));for(var fl=0;fl<$o;fl++)gs.push(ca),gs.push(Qi(In,wi,Lt))}gs.push({type:"kern",size:rl}),gs.push(Qi(In,wi,Lt)),gs.push(ca),gs.push(Qi(Yr,wi,Lt));var js=Qe.havingBaseStyle(z.TEXT),_s=kr.makeVList({positionType:"bottom",positionData:Ms,children:gs},js);return Ki(kr.makeSpan(["delimsizing","mult"],[_s],js),z.TEXT,Qe,ir)},ra=80,Ma=.08,La=function(ce,Se,Le,Qe,Lt){var ir=He(ce,Qe,Le),Yr=new me(ce,ir),hn=new je([Yr],{width:"400em",height:Se+"em",viewBox:"0 0 400000 "+Le,preserveAspectRatio:"xMinYMin slice"});return kr.makeSvgSpan(["hide-tail"],[hn],Lt)},va=function(ce,Se){var Le=Se.havingBaseSizing(),Qe=Qo("\\surd",ce*Le.sizeMultiplier,io,Le),Lt=Le.sizeMultiplier,ir=Math.max(0,Se.minRuleThickness-Se.fontMetrics().sqrtRuleThickness),Yr,hn=0,In=0,si=0,wi;return Qe.type==="small"?(si=1e3+1e3*ir+ra,ce<1?Lt=1:ce<1.4&&(Lt=.7),hn=(1+ir+Ma)/Lt,In=(1+ir)/Lt,Yr=La("sqrtMain",hn,si,ir,Se),Yr.style.minWidth="0.853em",wi=.833/Lt):Qe.type==="large"?(si=(1e3+ra)*Ga[Qe.size],In=(Ga[Qe.size]+ir)/Lt,hn=(Ga[Qe.size]+ir+Ma)/Lt,Yr=La("sqrtSize"+Qe.size,hn,si,ir,Se),Yr.style.minWidth="1.02em",wi=1/Lt):(hn=ce+ir+Ma,In=ce+ir,si=Math.floor(1e3*ce+ir)+ra,Yr=La("sqrtTall",hn,si,ir,Se),Yr.style.minWidth="0.742em",wi=1.056),Yr.height=In,Yr.style.height=hn+"em",{span:Yr,advanceWidth:wi,ruleWidth:(Se.fontMetrics().sqrtRuleThickness+ir)*Lt}},ga=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Oa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Aa=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ga=[0,1.2,1.8,2.4,3],_a=function(ce,Se,Le,Qe,Lt){if(ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle"),v.contains(ga,ce)||v.contains(Aa,ce))return Ui(ce,Se,!1,Le,Qe,Lt);if(v.contains(Oa,ce))return Ca(ce,Ga[Se],!1,Le,Qe,Lt);throw new u("Illegal delimiter: '"+ce+"'")},Va=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bi=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],io=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oo=function(ce){if(ce.type==="small")return"Main-Regular";if(ce.type==="large")return"Size"+ce.size+"-Regular";if(ce.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ce.type+"' here.")},Qo=function(ce,Se,Le,Qe){for(var Lt=Math.min(2,3-Qe.style.size),ir=Lt;ir<Le.length&&!(Le[ir].type==="stack");ir++){var Yr=_i(ce,oo(Le[ir]),"math"),hn=Yr.height+Yr.depth;if(Le[ir].type==="small"){var In=Qe.havingBaseStyle(Le[ir].style);hn*=In.sizeMultiplier}if(hn>Se)return Le[ir]}return Le[Le.length-1]},mo=function(ce,Se,Le,Qe,Lt,ir){ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle");var Yr;v.contains(Aa,ce)?Yr=Va:v.contains(ga,ce)?Yr=io:Yr=Bi;var hn=Qo(ce,Se,Yr,Qe);return hn.type==="small"?zi(ce,hn.style,Le,Qe,Lt,ir):hn.type==="large"?Ui(ce,hn.size,Le,Qe,Lt,ir):Ca(ce,Se,Le,Qe,Lt,ir)},To=function(ce,Se,Le,Qe,Lt,ir){var Yr=Qe.fontMetrics().axisHeight*Qe.sizeMultiplier,hn=901,In=5/Qe.fontMetrics().ptPerEm,si=Math.max(Se-Yr,Le+Yr),wi=Math.max(si/500*hn,2*si-In);return mo(ce,wi,!0,Qe,Lt,ir)},ao={sqrtImage:va,sizedDelim:_a,customSizedDelim:mo,leftRightDelim:To},So={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function to(It,ce){var Se=Zi(It);if(Se&&v.contains(bo,Se.text))return Se;throw new u("Invalid delimiter: '"+(Se?Se.text:JSON.stringify(It))+"' after '"+ce.funcName+"'",It)}Ot({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ce,Se){var Le=to(Se[0],ce);return{type:"delimsizing",mode:ce.parser.mode,size:So[ce.funcName].size,mclass:So[ce.funcName].mclass,delim:Le.text}},htmlBuilder:function(ce,Se){return ce.delim==="."?kr.makeSpan([ce.mclass]):ao.sizedDelim(ce.delim,ce.size,Se,ce.mode,[ce.mclass])},mathmlBuilder:function(ce){var Se=[];ce.delim!=="."&&Se.push(Ln(ce.delim,ce.mode));var Le=new vi.MathNode("mo",Se);return ce.mclass==="mopen"||ce.mclass==="mclose"?Le.setAttribute("fence","true"):Le.setAttribute("fence","false"),Le}});function Jo(It){if(!It.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ot({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ce,Se){var Le=ce.parser.gullet.macros.get("\\current@color");if(Le&&typeof Le!="string")throw new u("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ce.parser.mode,delim:to(Se[0],ce).text,color:Le}}}),Ot({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ce,Se){var Le=to(Se[0],ce),Qe=ce.parser;++Qe.leftrightDepth;var Lt=Qe.parseExpression(!1);--Qe.leftrightDepth,Qe.expect("\\right",!1);var ir=kn(Qe.parseFunction(),"leftright-right");return{type:"leftright",mode:Qe.mode,body:Lt,left:Le.text,right:ir.delim,rightColor:ir.color}},htmlBuilder:function(ce,Se){Jo(ce);for(var Le=pn(ce.body,Se,!0,["mopen","mclose"]),Qe=0,Lt=0,ir=!1,Yr=0;Yr<Le.length;Yr++)Le[Yr].isMiddle?ir=!0:(Qe=Math.max(Le[Yr].height,Qe),Lt=Math.max(Le[Yr].depth,Lt));Qe*=Se.sizeMultiplier,Lt*=Se.sizeMultiplier;var hn;if(ce.left==="."?hn=ii(Se,["mopen"]):hn=ao.leftRightDelim(ce.left,Qe,Lt,Se,ce.mode,["mopen"]),Le.unshift(hn),ir)for(var In=1;In<Le.length;In++){var si=Le[In],wi=si.isMiddle;wi&&(Le[In]=ao.leftRightDelim(wi.delim,Qe,Lt,wi.options,ce.mode,[]))}var gi;if(ce.right===".")gi=ii(Se,["mclose"]);else{var Gi=ce.rightColor?Se.withColor(ce.rightColor):Se;gi=ao.leftRightDelim(ce.right,Qe,Lt,Gi,ce.mode,["mclose"])}return Le.push(gi),kr.makeSpan(["minner"],Le,Se)},mathmlBuilder:function(ce,Se){Jo(ce);var Le=ea(ce.body,Se);if(ce.left!=="."){var Qe=new vi.MathNode("mo",[Ln(ce.left,ce.mode)]);Qe.setAttribute("fence","true"),Le.unshift(Qe)}if(ce.right!=="."){var Lt=new vi.MathNode("mo",[Ln(ce.right,ce.mode)]);Lt.setAttribute("fence","true"),ce.rightColor&&Lt.setAttribute("mathcolor",ce.rightColor),Le.push(Lt)}return Fi(Le)}}),Ot({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ce,Se){var Le=to(Se[0],ce);if(!ce.parser.leftrightDepth)throw new u("\\middle without preceding \\left",Le);return{type:"middle",mode:ce.parser.mode,delim:Le.text}},htmlBuilder:function(ce,Se){var Le;if(ce.delim===".")Le=ii(Se,[]);else{Le=ao.sizedDelim(ce.delim,1,Se,ce.mode,[]);var Qe={delim:ce.delim,options:Se};Le.isMiddle=Qe}return Le},mathmlBuilder:function(ce,Se){var Le=ce.delim==="\\vert"||ce.delim==="|"?Ln("|","text"):Ln(ce.delim,ce.mode),Qe=new vi.MathNode("mo",[Le]);return Qe.setAttribute("fence","true"),Qe.setAttribute("lspace","0.05em"),Qe.setAttribute("rspace","0.05em"),Qe}});var Uo=function(ce,Se){var Le=kr.wrapFragment(xi(ce.body,Se),Se),Qe=ce.label.substr(1),Lt=Se.sizeMultiplier,ir,Yr=0,hn=v.isCharacterBox(ce.body);if(Qe==="sout")ir=kr.makeSpan(["stretchy","sout"]),ir.height=Se.fontMetrics().defaultRuleThickness/Lt,Yr=-.5*Se.fontMetrics().xHeight;else{/cancel/.test(Qe)?hn||Le.classes.push("cancel-pad"):Le.classes.push("boxpad");var In=0,si=0;/box/.test(Qe)?(si=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness),In=Se.fontMetrics().fboxsep+(Qe==="colorbox"?0:si)):In=hn?.2:0,ir=_n.encloseSpan(Le,Qe,In,Se),/fbox|boxed|fcolorbox/.test(Qe)&&(ir.style.borderStyle="solid",ir.style.borderWidth=si+"em"),Yr=Le.depth+In,ce.backgroundColor&&(ir.style.backgroundColor=ce.backgroundColor,ce.borderColor&&(ir.style.borderColor=ce.borderColor))}var wi;return ce.backgroundColor?wi=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ir,shift:Yr},{type:"elem",elem:Le,shift:0}]},Se):wi=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Le,shift:0},{type:"elem",elem:ir,shift:Yr,wrapperClasses:/cancel/.test(Qe)?["svg-align"]:[]}]},Se),/cancel/.test(Qe)&&(wi.height=Le.height,wi.depth=Le.depth),/cancel/.test(Qe)&&!hn?kr.makeSpan(["mord","cancel-lap"],[wi],Se):kr.makeSpan(["mord"],[wi],Se)},wo=function(ce,Se){var Le=0,Qe=new vi.MathNode(ce.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ir(ce.body,Se)]);switch(ce.label){case"\\cancel":Qe.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Qe.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Qe.setAttribute("notation","horizontalstrike");break;case"\\fbox":Qe.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(Le=Se.fontMetrics().fboxsep*Se.fontMetrics().ptPerEm,Qe.setAttribute("width","+"+2*Le+"pt"),Qe.setAttribute("height","+"+2*Le+"pt"),Qe.setAttribute("lspace",Le+"pt"),Qe.setAttribute("voffset",Le+"pt"),ce.label==="\\fcolorbox"){var Lt=Math.max(Se.fontMetrics().fboxrule,Se.minRuleThickness);Qe.setAttribute("style","border: "+Lt+"em solid "+String(ce.borderColor))}break;case"\\xcancel":Qe.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ce.backgroundColor&&Qe.setAttribute("mathbackground",ce.backgroundColor),Qe};Ot({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=ce.funcName,ir=kn(Se[0],"color-token").color,Yr=Se[1];return{type:"enclose",mode:Qe.mode,label:Lt,backgroundColor:ir,body:Yr}},htmlBuilder:Uo,mathmlBuilder:wo}),Ot({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=ce.funcName,ir=kn(Se[0],"color-token").color,Yr=kn(Se[1],"color-token").color,hn=Se[2];return{type:"enclose",mode:Qe.mode,label:Lt,backgroundColor:Yr,borderColor:ir,body:hn}},htmlBuilder:Uo,mathmlBuilder:wo}),Ot({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ce,Se){var Le=ce.parser;return{type:"enclose",mode:Le.mode,label:"\\fbox",body:Se[0]}}}),Ot({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=ce.funcName,ir=Se[0];return{type:"enclose",mode:Qe.mode,label:Lt,body:ir}},htmlBuilder:Uo,mathmlBuilder:wo});var ts={};function Ia(It){for(var ce=It.type,Se=It.names,Le=It.props,Qe=It.handler,Lt=It.htmlBuilder,ir=It.mathmlBuilder,Yr={type:ce,numArgs:Le.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Qe},hn=0;hn<Se.length;++hn)ts[Se[hn]]=Yr;Lt&&(Bt[ce]=Lt),ir&&(Kt[ce]=ir)}function Oo(It){var ce=[];It.consumeSpaces();for(var Se=It.fetch().text;Se==="\\hline"||Se==="\\hdashline";)It.consume(),ce.push(Se==="\\hdashline"),It.consumeSpaces(),Se=It.fetch().text;return ce}function Io(It,ce,Se){var Le=ce.hskipBeforeAndAfter,Qe=ce.addJot,Lt=ce.cols,ir=ce.arraystretch,Yr=ce.colSeparationType;if(It.gullet.beginGroup(),It.gullet.macros.set("\\\\","\\cr"),!ir){var hn=It.gullet.expandMacroAsText("\\arraystretch");if(hn==null)ir=1;else if(ir=parseFloat(hn),!ir||ir<0)throw new u("Invalid \\arraystretch: "+hn)}It.gullet.beginGroup();var In=[],si=[In],wi=[],gi=[];for(gi.push(Oo(It));;){var Gi=It.parseExpression(!1,"\\cr");It.gullet.endGroup(),It.gullet.beginGroup(),Gi={type:"ordgroup",mode:It.mode,body:Gi},Se&&(Gi={type:"styling",mode:It.mode,style:Se,body:[Gi]}),In.push(Gi);var sa=It.fetch().text;if(sa==="&")It.consume();else if(sa==="\\end"){In.length===1&&Gi.type==="styling"&&Gi.body[0].body.length===0&&si.pop(),gi.length<si.length+1&&gi.push([]);break}else if(sa==="\\cr"){var Ua=kn(It.parseFunction(),"cr");wi.push(Ua.size),gi.push(Oo(It)),In=[],si.push(In)}else throw new u("Expected & or \\\\ or \\cr or \\end",It.nextToken)}return It.gullet.endGroup(),It.gullet.endGroup(),{type:"array",mode:It.mode,addJot:Qe,arraystretch:ir,body:si,cols:Lt,rowGaps:wi,hskipBeforeAndAfter:Le,hLinesBeforeRow:gi,colSeparationType:Yr}}function os(It){return It.substr(0,1)==="d"?"display":"text"}var xo=function(ce,Se){var Le,Qe,Lt=ce.body.length,ir=ce.hLinesBeforeRow,Yr=0,hn=new Array(Lt),In=[],si=Math.max(Se.fontMetrics().arrayRuleWidth,Se.minRuleThickness),wi=1/Se.fontMetrics().ptPerEm,gi=5*wi;if(ce.colSeparationType&&ce.colSeparationType==="small"){var Gi=Se.havingStyle(z.SCRIPT).sizeMultiplier;gi=.2778*(Gi/Se.sizeMultiplier)}var sa=12*wi,Ua=3*wi,no=ce.arraystretch*sa,Wo=.7*no,Zo=.3*no,Bo=0;function Es(Is){for(var Ps=0;Ps<Is.length;++Ps)Ps>0&&(Bo+=.25),In.push({pos:Bo,isDashed:Is[Ps]})}for(Es(ir[0]),Le=0;Le<ce.body.length;++Le){var As=ce.body[Le],$o=Wo,Do=Zo;Yr<As.length&&(Yr=As.length);var vo=new Array(As.length);for(Qe=0;Qe<As.length;++Qe){var Ms=xi(As[Qe],Se);Do<Ms.depth&&(Do=Ms.depth),$o<Ms.height&&($o=Ms.height),vo[Qe]=Ms}var rl=ce.rowGaps[Le],gs=0;rl&&(gs=Nr(rl,Se),gs>0&&(gs+=Zo,Do<gs&&(Do=gs),gs=0)),ce.addJot&&(Do+=Ua),vo.height=$o,vo.depth=Do,Bo+=$o,vo.pos=Bo,Bo+=Do+gs,hn[Le]=vo,Es(ir[Le+1])}var Ra=Bo/2+Se.fontMetrics().axisHeight,dl=ce.cols||[],fl=[],js,_s;for(Qe=0,_s=0;Qe<Yr||_s<dl.length;++Qe,++_s){for(var Xs=dl[_s]||{},Ql=!0;Xs.type==="separator";){if(Ql||(js=kr.makeSpan(["arraycolsep"],[]),js.style.width=Se.fontMetrics().doubleRuleSep+"em",fl.push(js)),Xs.separator==="|"||Xs.separator===":"){var Ul=Xs.separator==="|"?"solid":"dashed",wl=kr.makeSpan(["vertical-separator"],[],Se);wl.style.height=Bo+"em",wl.style.borderRightWidth=si+"em",wl.style.borderRightStyle=Ul,wl.style.margin="0 -"+si/2+"em",wl.style.verticalAlign=-(Bo-Ra)+"em",fl.push(wl)}else throw new u("Invalid separator type: "+Xs.separator);_s++,Xs=dl[_s]||{},Ql=!1}if(Qe>=Yr)continue;var Ts=void 0;(Qe>0||ce.hskipBeforeAndAfter)&&(Ts=v.deflt(Xs.pregap,gi),Ts!==0&&(js=kr.makeSpan(["arraycolsep"],[]),js.style.width=Ts+"em",fl.push(js)));var Ks=[];for(Le=0;Le<Lt;++Le){var Tl=hn[Le],pl=Tl[Qe];if(!pl)continue;var jo=Tl.pos-Ra;pl.depth=Tl.depth,pl.height=Tl.height,Ks.push({type:"elem",elem:pl,shift:jo})}Ks=kr.makeVList({positionType:"individualShift",children:Ks},Se),Ks=kr.makeSpan(["col-align-"+(Xs.align||"c")],[Ks]),fl.push(Ks),(Qe<Yr-1||ce.hskipBeforeAndAfter)&&(Ts=v.deflt(Xs.postgap,gi),Ts!==0&&(js=kr.makeSpan(["arraycolsep"],[]),js.style.width=Ts+"em",fl.push(js)))}if(hn=kr.makeSpan(["mtable"],fl),In.length>0){for(var yo=kr.makeLineSpan("hline",Se,si),qo=kr.makeLineSpan("hdashline",Se,si),ps=[{type:"elem",elem:hn,shift:0}];In.length>0;){var Os=In.pop(),es=Os.pos-Ra;Os.isDashed?ps.push({type:"elem",elem:qo,shift:es}):ps.push({type:"elem",elem:yo,shift:es})}hn=kr.makeVList({positionType:"individualShift",children:ps},Se)}return kr.makeSpan(["mord"],[hn],Se)},rs={c:"center ",l:"left ",r:"right "},Ho=function(ce,Se){var Le=new vi.MathNode("mtable",ce.body.map(function(Bo){return new vi.MathNode("mtr",Bo.map(function(Es){return new vi.MathNode("mtd",[Ir(Es,Se)])}))})),Qe=ce.arraystretch===.5?.1:.16+ce.arraystretch-1+(ce.addJot?.09:0);Le.setAttribute("rowspacing",Qe+"em");var Lt="",ir="";if(ce.cols){var Yr=ce.cols,hn="",In=!1,si=0,wi=Yr.length;Yr[0].type==="separator"&&(Lt+="top ",si=1),Yr[Yr.length-1].type==="separator"&&(Lt+="bottom ",wi-=1);for(var gi=si;gi<wi;gi++)Yr[gi].type==="align"?(ir+=rs[Yr[gi].align],In&&(hn+="none "),In=!0):Yr[gi].type==="separator"&&(In&&(hn+=Yr[gi].separator==="|"?"solid ":"dashed ",In=!1));Le.setAttribute("columnalign",ir.trim()),/[sd]/.test(hn)&&Le.setAttribute("columnlines",hn.trim())}if(ce.colSeparationType==="align"){for(var Gi=ce.cols||[],sa="",Ua=1;Ua<Gi.length;Ua++)sa+=Ua%2?"0em ":"1em ";Le.setAttribute("columnspacing",sa.trim())}else ce.colSeparationType==="alignat"?Le.setAttribute("columnspacing","0em"):ce.colSeparationType==="small"?Le.setAttribute("columnspacing","0.2778em"):Le.setAttribute("columnspacing","1em");var no="",Wo=ce.hLinesBeforeRow;Lt+=Wo[0].length>0?"left ":"",Lt+=Wo[Wo.length-1].length>0?"right ":"";for(var Zo=1;Zo<Wo.length-1;Zo++)no+=Wo[Zo].length===0?"none ":Wo[Zo][0]?"dashed ":"solid ";return/[sd]/.test(no)&&Le.setAttribute("rowlines",no.trim()),Lt!==""&&(Le=new vi.MathNode("menclose",[Le]),Le.setAttribute("notation",Lt.trim())),ce.arraystretch&&ce.arraystretch<1&&(Le=new vi.MathNode("mstyle",[Le]),Le.setAttribute("scriptlevel","1")),Le},_o=function(ce,Se){var Le=[],Qe=Io(ce.parser,{cols:Le,addJot:!0},"display"),Lt,ir=0,Yr={type:"ordgroup",mode:ce.mode,body:[]},hn=bn(Se[0],"ordgroup");if(hn){for(var In="",si=0;si<hn.body.length;si++){var wi=kn(hn.body[si],"textord");In+=wi.text}Lt=Number(In),ir=Lt*2}var gi=!ir;Qe.body.forEach(function(no){for(var Wo=1;Wo<no.length;Wo+=2){var Zo=kn(no[Wo],"styling"),Bo=kn(Zo.body[0],"ordgroup");Bo.body.unshift(Yr)}if(gi)ir<no.length&&(ir=no.length);else{var Es=no.length/2;if(Lt<Es)throw new u("Too many math in a row: "+("expected "+Lt+", but got "+Es),no[0])}});for(var Gi=0;Gi<ir;++Gi){var sa="r",Ua=0;Gi%2===1?sa="l":Gi>0&&gi&&(Ua=1),Le[Gi]={type:"align",align:sa,pregap:Ua,postgap:0}}return Qe.colSeparationType=gi?"align":"alignat",Qe};Ia({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ce,Se){var Le=Zi(Se[0]),Qe=Le?[Se[0]]:kn(Se[0],"ordgroup").body,Lt=Qe.map(function(Yr){var hn=Mi(Yr),In=hn.text;if("lcr".indexOf(In)!==-1)return{type:"align",align:In};if(In==="|")return{type:"separator",separator:"|"};if(In===":")return{type:"separator",separator:":"};throw new u("Unknown column alignment: "+In,Yr)}),ir={cols:Lt,hskipBeforeAndAfter:!0};return Io(ce.parser,ir,os(ce.envName))},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ce){var Se={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ce.envName],Le={hskipBeforeAndAfter:!1},Qe=Io(ce.parser,Le,os(ce.envName));return Se?{type:"leftright",mode:ce.mode,body:[Qe],left:Se[0],right:Se[1],rightColor:void 0}:Qe},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ce){var Se={arraystretch:.5},Le=Io(ce.parser,Se,"script");return Le.colSeparationType="small",Le},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ce,Se){var Le=Zi(Se[0]),Qe=Le?[Se[0]]:kn(Se[0],"ordgroup").body,Lt=Qe.map(function(Yr){var hn=Mi(Yr),In=hn.text;if("lc".indexOf(In)!==-1)return{type:"align",align:In};throw new u("Unknown column alignment: "+In,Yr)});if(Lt.length>1)throw new u("{subarray} can contain only one column");var ir={cols:Lt,hskipBeforeAndAfter:!1,arraystretch:.5};if(ir=Io(ce.parser,ir,"script"),ir.body[0].length>1)throw new u("{subarray} can contain only one column");return ir},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ce){var Se={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Le=Io(ce.parser,Se,os(ce.envName));return{type:"leftright",mode:ce.mode,body:[Le],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["aligned"],props:{numArgs:0},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ce){var Se={cols:[{type:"align",align:"c"}],addJot:!0};return Io(ce.parser,Se,"display")},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["alignedat"],props:{numArgs:1},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Ot({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ce,Se){throw new u(ce.funcName+" valid only within array environment")}});var uo=ts,Ha=uo;Ot({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0];if(Lt.type!=="ordgroup")throw new u("Invalid environment name",Lt);for(var ir="",Yr=0;Yr<Lt.body.length;++Yr)ir+=kn(Lt.body[Yr],"textord").text;if(Qe==="\\begin"){if(!Ha.hasOwnProperty(ir))throw new u("No such environment: "+ir,Lt);var hn=Ha[ir],In=Le.parseArguments("\\begin{"+ir+"}",hn),si=In.args,wi=In.optArgs,gi={mode:Le.mode,envName:ir,parser:Le},Gi=hn.handler(gi,si,wi);Le.expect("\\end",!1);var sa=Le.nextToken,Ua=kn(Le.parseFunction(),"environment");if(Ua.name!==ir)throw new u("Mismatch: \\begin{"+ir+"} matched by \\end{"+Ua.name+"}",sa);return Gi}return{type:"environment",mode:Le.mode,name:ir,nameGroup:Lt}}});var ht=kr.makeSpan;function Er(It,ce){var Se=pn(It.body,ce,!0);return ht([It.mclass],Se,ce)}function Zr(It,ce){var Se,Le=ea(It.body,ce);return It.mclass==="minner"?vi.newDocumentFragment(Le):(It.mclass==="mord"?It.isCharacterBox?(Se=Le[0],Se.type="mi"):Se=new vi.MathNode("mi",Le):(It.isCharacterBox?(Se=Le[0],Se.type="mo"):Se=new vi.MathNode("mo",Le),It.mclass==="mbin"?(Se.attributes.lspace="0.22em",Se.attributes.rspace="0.22em"):It.mclass==="mpunct"?(Se.attributes.lspace="0em",Se.attributes.rspace="0.17em"):(It.mclass==="mopen"||It.mclass==="mclose")&&(Se.attributes.lspace="0em",Se.attributes.rspace="0em")),Se)}Ot({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0];return{type:"mclass",mode:Le.mode,mclass:"m"+Qe.substr(5),body:fr(Lt),isCharacterBox:v.isCharacterBox(Lt)}},htmlBuilder:Er,mathmlBuilder:Zr});var Xr=function(ce){var Se=ce.type==="ordgroup"&&ce.body.length?ce.body[0]:ce;return Se.type==="atom"&&(Se.family==="bin"||Se.family==="rel")?"m"+Se.family:"mord"};Ot({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ce,Se){var Le=ce.parser;return{type:"mclass",mode:Le.mode,mclass:Xr(Se[0]),body:[Se[1]],isCharacterBox:v.isCharacterBox(Se[1])}}}),Ot({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[1],ir=Se[0],Yr;Qe!=="\\stackrel"?Yr=Xr(Lt):Yr="mrel";var hn={type:"op",mode:Lt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Qe!=="\\stackrel",body:fr(Lt)},In={type:"supsub",mode:ir.mode,base:hn,sup:Qe==="\\underset"?null:ir,sub:Qe==="\\underset"?ir:null};return{type:"mclass",mode:Le.mode,mclass:Yr,body:[In],isCharacterBox:v.isCharacterBox(In)}},htmlBuilder:Er,mathmlBuilder:Zr});var Xn=function(ce,Se){var Le=ce.font,Qe=Se.withFont(Le);return xi(ce.body,Qe)},un=function(ce,Se){var Le=ce.font,Qe=Se.withFont(Le);return Ir(ce.body,Qe)},Gr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ot({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0],ir=Qe;return ir in Gr&&(ir=Gr[ir]),{type:"font",mode:Le.mode,font:ir.slice(1),body:Lt}},htmlBuilder:Xn,mathmlBuilder:un}),Ot({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ce,Se){var Le=ce.parser,Qe=Se[0],Lt=v.isCharacterBox(Qe);return{type:"mclass",mode:Le.mode,mclass:Xr(Qe),body:[{type:"font",mode:Le.mode,font:"boldsymbol",body:Qe}],isCharacterBox:Lt}}}),Ot({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=ce.breakOnTokenText,ir=Le.mode,Yr=Le.parseExpression(!0,Lt),hn="math"+Qe.slice(1);return{type:"font",mode:ir,font:hn,body:{type:"ordgroup",mode:Le.mode,body:Yr}}},htmlBuilder:Xn,mathmlBuilder:un});var ri=function(ce,Se){var Le=Se;return ce==="display"?Le=Le.id>=z.SCRIPT.id?Le.text():z.DISPLAY:ce==="text"&&Le.size===z.DISPLAY.size?Le=z.TEXT:ce==="script"?Le=z.SCRIPT:ce==="scriptscript"&&(Le=z.SCRIPTSCRIPT),Le},rn=function(ce,Se){var Le=ri(ce.size,Se.style),Qe=Le.fracNum(),Lt=Le.fracDen(),ir;ir=Se.havingStyle(Qe);var Yr=xi(ce.numer,ir,Se);if(ce.continued){var hn=8.5/Se.fontMetrics().ptPerEm,In=3.5/Se.fontMetrics().ptPerEm;Yr.height=Yr.height<hn?hn:Yr.height,Yr.depth=Yr.depth<In?In:Yr.depth}ir=Se.havingStyle(Lt);var si=xi(ce.denom,ir,Se),wi,gi,Gi;ce.hasBarLine?(ce.barSize?(gi=Nr(ce.barSize,Se),wi=kr.makeLineSpan("frac-line",Se,gi)):wi=kr.makeLineSpan("frac-line",Se),gi=wi.height,Gi=wi.height):(wi=null,gi=0,Gi=Se.fontMetrics().defaultRuleThickness);var sa,Ua,no;Le.size===z.DISPLAY.size||ce.size==="display"?(sa=Se.fontMetrics().num1,gi>0?Ua=3*Gi:Ua=7*Gi,no=Se.fontMetrics().denom1):(gi>0?(sa=Se.fontMetrics().num2,Ua=Gi):(sa=Se.fontMetrics().num3,Ua=3*Gi),no=Se.fontMetrics().denom2);var Wo;if(wi){var Bo=Se.fontMetrics().axisHeight;sa-Yr.depth-(Bo+.5*gi)<Ua&&(sa+=Ua-(sa-Yr.depth-(Bo+.5*gi))),Bo-.5*gi-(si.height-no)<Ua&&(no+=Ua-(Bo-.5*gi-(si.height-no)));var Es=-(Bo-.5*gi);Wo=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:si,shift:no},{type:"elem",elem:wi,shift:Es},{type:"elem",elem:Yr,shift:-sa}]},Se)}else{var Zo=sa-Yr.depth-(si.height-no);Zo<Ua&&(sa+=.5*(Ua-Zo),no+=.5*(Ua-Zo)),Wo=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:si,shift:no},{type:"elem",elem:Yr,shift:-sa}]},Se)}ir=Se.havingStyle(Le),Wo.height*=ir.sizeMultiplier/Se.sizeMultiplier,Wo.depth*=ir.sizeMultiplier/Se.sizeMultiplier;var As;Le.size===z.DISPLAY.size?As=Se.fontMetrics().delim1:As=Se.fontMetrics().delim2;var $o,Do;return ce.leftDelim==null?$o=ii(Se,["mopen"]):$o=ao.customSizedDelim(ce.leftDelim,As,!0,Se.havingStyle(Le),ce.mode,["mopen"]),ce.continued?Do=kr.makeSpan([]):ce.rightDelim==null?Do=ii(Se,["mclose"]):Do=ao.customSizedDelim(ce.rightDelim,As,!0,Se.havingStyle(Le),ce.mode,["mclose"]),kr.makeSpan(["mord"].concat(ir.sizingClasses(Se)),[$o,kr.makeSpan(["mfrac"],[Wo]),Do],Se)},jn=function(ce,Se){var Le=new vi.MathNode("mfrac",[Ir(ce.numer,Se),Ir(ce.denom,Se)]);if(!ce.hasBarLine)Le.setAttribute("linethickness","0px");else if(ce.barSize){var Qe=Nr(ce.barSize,Se);Le.setAttribute("linethickness",Qe+"em")}var Lt=ri(ce.size,Se.style);if(Lt.size!==Se.style.size){Le=new vi.MathNode("mstyle",[Le]);var ir=Lt.size===z.DISPLAY.size?"true":"false";Le.setAttribute("displaystyle",ir),Le.setAttribute("scriptlevel","0")}if(ce.leftDelim!=null||ce.rightDelim!=null){var Yr=[];if(ce.leftDelim!=null){var hn=new vi.MathNode("mo",[new vi.TextNode(ce.leftDelim.replace("\\",""))]);hn.setAttribute("fence","true"),Yr.push(hn)}if(Yr.push(Le),ce.rightDelim!=null){var In=new vi.MathNode("mo",[new vi.TextNode(ce.rightDelim.replace("\\",""))]);In.setAttribute("fence","true"),Yr.push(In)}return Fi(Yr)}return Le};Ot({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0],ir=Se[1],Yr,hn=null,In=null,si="auto";switch(Qe){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Yr=!0;break;case"\\\\atopfrac":Yr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Yr=!1,hn="(",In=")";break;case"\\\\bracefrac":Yr=!1,hn="\\{",In="\\}";break;case"\\\\brackfrac":Yr=!1,hn="[",In="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Qe){case"\\cfrac":case"\\dfrac":case"\\dbinom":si="display";break;case"\\tfrac":case"\\tbinom":si="text";break}return{type:"genfrac",mode:Le.mode,continued:Qe==="\\cfrac",numer:Lt,denom:ir,hasBarLine:Yr,leftDelim:hn,rightDelim:In,size:si,barSize:null}},htmlBuilder:rn,mathmlBuilder:jn}),Ot({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ce){var Se=ce.parser,Le=ce.funcName,Qe=ce.token,Lt;switch(Le){case"\\over":Lt="\\frac";break;case"\\choose":Lt="\\binom";break;case"\\atop":Lt="\\\\atopfrac";break;case"\\brace":Lt="\\\\bracefrac";break;case"\\brack":Lt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:Se.mode,replaceWith:Lt,token:Qe}}});var oi=["display","text","script","scriptscript"],li=function(ce){var Se=null;return ce.length>0&&(Se=ce,Se=Se==="."?null:Se),Se};Ot({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ce,Se){var Le=ce.parser,Qe=Se[4],Lt=Se[5],ir=bn(Se[0],"atom");ir&&(ir=qr(Se[0],"open"));var Yr=ir?li(ir.text):null,hn=bn(Se[1],"atom");hn&&(hn=qr(Se[1],"close"));var In=hn?li(hn.text):null,si=kn(Se[2],"size"),wi,gi=null;si.isBlank?wi=!0:(gi=si.value,wi=gi.number>0);var Gi="auto",sa=bn(Se[3],"ordgroup");if(sa){if(sa.body.length>0){var Ua=kn(sa.body[0],"textord");Gi=oi[Number(Ua.text)]}}else sa=kn(Se[3],"textord"),Gi=oi[Number(sa.text)];return{type:"genfrac",mode:Le.mode,numer:Qe,denom:Lt,continued:!1,hasBarLine:wi,barSize:gi,leftDelim:Yr,rightDelim:In,size:Gi}},htmlBuilder:rn,mathmlBuilder:jn}),Ot({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=ce.token;return{type:"infix",mode:Le.mode,replaceWith:"\\\\abovefrac",size:kn(Se[0],"size").value,token:Lt}}}),Ot({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0],ir=d(kn(Se[1],"infix").size),Yr=Se[2],hn=ir.number>0;return{type:"genfrac",mode:Le.mode,numer:Lt,denom:Yr,continued:!1,hasBarLine:hn,barSize:ir,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:rn,mathmlBuilder:jn});var ai=function(ce,Se){var Le=Se.style,Qe,Lt,ir=bn(ce,"supsub");ir?(Qe=ir.sup?xi(ir.sup,Se.havingStyle(Le.sup()),Se):xi(ir.sub,Se.havingStyle(Le.sub()),Se),Lt=kn(ir.base,"horizBrace")):Lt=kn(ce,"horizBrace");var Yr=xi(Lt.base,Se.havingBaseStyle(z.DISPLAY)),hn=_n.svgSpan(Lt,Se),In;if(Lt.isOver?(In=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Yr},{type:"kern",size:.1},{type:"elem",elem:hn}]},Se),In.children[0].children[0].children[1].classes.push("svg-align")):(In=kr.makeVList({positionType:"bottom",positionData:Yr.depth+.1+hn.height,children:[{type:"elem",elem:hn},{type:"kern",size:.1},{type:"elem",elem:Yr}]},Se),In.children[0].children[0].children[0].classes.push("svg-align")),Qe){var si=kr.makeSpan(["mord",Lt.isOver?"mover":"munder"],[In],Se);Lt.isOver?In=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:si},{type:"kern",size:.2},{type:"elem",elem:Qe}]},Se):In=kr.makeVList({positionType:"bottom",positionData:si.depth+.2+Qe.height+Qe.depth,children:[{type:"elem",elem:Qe},{type:"kern",size:.2},{type:"elem",elem:si}]},Se)}return kr.makeSpan(["mord",Lt.isOver?"mover":"munder"],[In],Se)},Ei=function(ce,Se){var Le=_n.mathMLnode(ce.label);return new vi.MathNode(ce.isOver?"mover":"munder",[Ir(ce.base,Se),Le])};Ot({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName;return{type:"horizBrace",mode:Le.mode,label:Qe,isOver:/^\\over/.test(Qe),base:Se[0]}},htmlBuilder:ai,mathmlBuilder:Ei}),Ot({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=Se[1],Lt=kn(Se[0],"url").url;return Le.settings.isTrusted({command:"\\href",url:Lt})?{type:"href",mode:Le.mode,href:Lt,body:fr(Qe)}:Le.formatUnsupportedCmd("\\href")},htmlBuilder:function(ce,Se){var Le=pn(ce.body,Se,!1);return kr.makeAnchor(ce.href,[],Le,Se)},mathmlBuilder:function(ce,Se){var Le=aa(ce.body,Se);return Le instanceof ma||(Le=new ma("mrow",[Le])),Le.setAttribute("href",ce.href),Le}}),Ot({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=kn(Se[0],"url").url;if(!Le.settings.isTrusted({command:"\\url",url:Qe}))return Le.formatUnsupportedCmd("\\url");for(var Lt=[],ir=0;ir<Qe.length;ir++){var Yr=Qe[ir];Yr==="~"&&(Yr="\\textasciitilde"),Lt.push({type:"textord",mode:"text",text:Yr})}var hn={type:"text",mode:Le.mode,font:"\\texttt",body:Lt};return{type:"href",mode:Le.mode,href:Qe,body:fr(hn)}}}),Ot({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser;return{type:"htmlmathml",mode:Le.mode,html:fr(Se[0]),mathml:fr(Se[1])}},htmlBuilder:function(ce,Se){var Le=pn(ce.html,Se,!1);return kr.makeFragment(Le)},mathmlBuilder:function(ce,Se){return aa(ce.mathml,Se)}});var mi=function(ce){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ce))return{number:+ce,unit:"bp"};var Se=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ce);if(!Se)throw new u("Invalid size: '"+ce+"' in \\includegraphics");var Le={number:+(Se[1]+Se[2]),unit:Se[3]};if(!jr(Le))throw new u("Invalid unit: '"+Le.unit+"' in \\includegraphics.");return Le};Ot({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ce,Se,Le){var Qe=ce.parser,Lt={number:0,unit:"em"},ir={number:.9,unit:"em"},Yr={number:0,unit:"em"},hn="";if(Le[0])for(var In=kn(Le[0],"raw").string,si=In.split(","),wi=0;wi<si.length;wi++){var gi=si[wi].split("=");if(gi.length===2){var Gi=gi[1].trim();switch(gi[0].trim()){case"alt":hn=Gi;break;case"width":Lt=mi(Gi);break;case"height":ir=mi(Gi);break;case"totalheight":Yr=mi(Gi);break;default:throw new u("Invalid key: '"+gi[0]+"' in \\includegraphics.")}}}var sa=kn(Se[0],"url").url;return hn===""&&(hn=sa,hn=hn.replace(/^.*[\\/]/,""),hn=hn.substring(0,hn.lastIndexOf("."))),Qe.settings.isTrusted({command:"\\includegraphics",url:sa})?{type:"includegraphics",mode:Qe.mode,alt:hn,width:Lt,height:ir,totalheight:Yr,src:sa}:Qe.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ce,Se){var Le=Nr(ce.height,Se),Qe=0;ce.totalheight.number>0&&(Qe=Nr(ce.totalheight,Se)-Le,Qe=Number(Qe.toFixed(2)));var Lt=0;ce.width.number>0&&(Lt=Nr(ce.width,Se));var ir={height:Le+Qe+"em"};Lt>0&&(ir.width=Lt+"em"),Qe>0&&(ir.verticalAlign=-Qe+"em");var Yr=new fe(ce.src,ce.alt,ir);return Yr.height=Le,Yr.depth=Qe,Yr},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mglyph",[]);Le.setAttribute("alt",ce.alt);var Qe=Nr(ce.height,Se),Lt=0;if(ce.totalheight.number>0&&(Lt=Nr(ce.totalheight,Se)-Qe,Lt=Lt.toFixed(2),Le.setAttribute("valign","-"+Lt+"em")),Le.setAttribute("height",Qe+Lt+"em"),ce.width.number>0){var ir=Nr(ce.width,Se);Le.setAttribute("width",ir+"em")}return Le.setAttribute("src",ce.src),Le}}),Ot({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=kn(Se[0],"size");if(Le.settings.strict){var ir=Qe[1]==="m",Yr=Lt.value.unit==="mu";ir?(Yr||Le.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" supports only mu units, "+("not "+Lt.value.unit+" units")),Le.mode!=="math"&&Le.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" works only in math mode")):Yr&&Le.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" doesn't support mu units")}return{type:"kern",mode:Le.mode,dimension:Lt.value}},htmlBuilder:function(ce,Se){return kr.makeGlue(ce.dimension,Se)},mathmlBuilder:function(ce,Se){var Le=Nr(ce.dimension,Se);return new vi.SpaceNode(Le)}}),Ot({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0];return{type:"lap",mode:Le.mode,alignment:Qe.slice(5),body:Lt}},htmlBuilder:function(ce,Se){var Le;ce.alignment==="clap"?(Le=kr.makeSpan([],[xi(ce.body,Se)]),Le=kr.makeSpan(["inner"],[Le],Se)):Le=kr.makeSpan(["inner"],[xi(ce.body,Se)]);var Qe=kr.makeSpan(["fix"],[]),Lt=kr.makeSpan([ce.alignment],[Le,Qe],Se),ir=kr.makeSpan(["strut"]);return ir.style.height=Lt.height+Lt.depth+"em",ir.style.verticalAlign=-Lt.depth+"em",Lt.children.unshift(ir),Lt=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Lt}]},Se),kr.makeSpan(["mord"],[Lt],Se)},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mpadded",[Ir(ce.body,Se)]);if(ce.alignment!=="rlap"){var Qe=ce.alignment==="llap"?"-1":"-0.5";Le.setAttribute("lspace",Qe+"width")}return Le.setAttribute("width","0px"),Le}}),Ot({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){var Le=ce.funcName,Qe=ce.parser,Lt=Qe.mode;Qe.switchMode("math");var ir=Le==="\\("?"\\)":"$",Yr=Qe.parseExpression(!1,ir);return Qe.expect(ir),Qe.switchMode(Lt),{type:"styling",mode:Qe.mode,style:"text",body:Yr}}}),Ot({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Se){throw new u("Mismatched "+ce.funcName)}});var Ai=function(ce,Se){switch(Se.style.size){case z.DISPLAY.size:return ce.display;case z.TEXT.size:return ce.text;case z.SCRIPT.size:return ce.script;case z.SCRIPTSCRIPT.size:return ce.scriptscript;default:return ce.text}};Ot({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ce,Se){var Le=ce.parser;return{type:"mathchoice",mode:Le.mode,display:fr(Se[0]),text:fr(Se[1]),script:fr(Se[2]),scriptscript:fr(Se[3])}},htmlBuilder:function(ce,Se){var Le=Ai(ce,Se),Qe=pn(Le,Se,!1);return kr.makeFragment(Qe)},mathmlBuilder:function(ce,Se){var Le=Ai(ce,Se);return aa(Le,Se)}});var Ii=function(ce,Se,Le,Qe,Lt,ir,Yr){ce=kr.makeSpan([],[ce]);var hn,In;if(Se){var si=xi(Se,Qe.havingStyle(Lt.sup()),Qe);In={elem:si,kern:Math.max(Qe.fontMetrics().bigOpSpacing1,Qe.fontMetrics().bigOpSpacing3-si.depth)}}if(Le){var wi=xi(Le,Qe.havingStyle(Lt.sub()),Qe);hn={elem:wi,kern:Math.max(Qe.fontMetrics().bigOpSpacing2,Qe.fontMetrics().bigOpSpacing4-wi.height)}}var gi;if(In&&hn){var Gi=Qe.fontMetrics().bigOpSpacing5+hn.elem.height+hn.elem.depth+hn.kern+ce.depth+Yr;gi=kr.makeVList({positionType:"bottom",positionData:Gi,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:hn.elem,marginLeft:-ir+"em"},{type:"kern",size:hn.kern},{type:"elem",elem:ce},{type:"kern",size:In.kern},{type:"elem",elem:In.elem,marginLeft:ir+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else if(hn){var sa=ce.height-Yr;gi=kr.makeVList({positionType:"top",positionData:sa,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:hn.elem,marginLeft:-ir+"em"},{type:"kern",size:hn.kern},{type:"elem",elem:ce}]},Qe)}else if(In){var Ua=ce.depth+Yr;gi=kr.makeVList({positionType:"bottom",positionData:Ua,children:[{type:"elem",elem:ce},{type:"kern",size:In.kern},{type:"elem",elem:In.elem,marginLeft:ir+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else return ce;return kr.makeSpan(["mop","op-limits"],[gi],Qe)},na=["\\smallint"],ji=function(ce,Se){var Le,Qe,Lt=!1,ir,Yr=bn(ce,"supsub");Yr?(Le=Yr.sup,Qe=Yr.sub,ir=kn(Yr.base,"op"),Lt=!0):ir=kn(ce,"op");var hn=Se.style,In=!1;hn.size===z.DISPLAY.size&&ir.symbol&&!v.contains(na,ir.name)&&(In=!0);var si;if(ir.symbol){var wi=In?"Size2-Regular":"Size1-Regular",gi="";if((ir.name==="\\oiint"||ir.name==="\\oiiint")&&(gi=ir.name.substr(1),ir.name=gi==="oiint"?"\\iint":"\\iiint"),si=kr.makeSymbol(ir.name,wi,"math",Se,["mop","op-symbol",In?"large-op":"small-op"]),gi.length>0){var Gi=si.italic,sa=kr.staticSvg(gi+"Size"+(In?"2":"1"),Se);si=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:si,shift:0},{type:"elem",elem:sa,shift:In?.08:0}]},Se),ir.name="\\"+gi,si.classes.unshift("mop"),si.italic=Gi}}else if(ir.body){var Ua=pn(ir.body,Se,!0);Ua.length===1&&Ua[0]instanceof Ne?(si=Ua[0],si.classes[0]="mop"):si=kr.makeSpan(["mop"],kr.tryCombineChars(Ua),Se)}else{for(var no=[],Wo=1;Wo<ir.name.length;Wo++)no.push(kr.mathsym(ir.name[Wo],ir.mode,Se));si=kr.makeSpan(["mop"],no,Se)}var Zo=0,Bo=0;return(si instanceof Ne||ir.name==="\\oiint"||ir.name==="\\oiiint")&&!ir.suppressBaseShift&&(Zo=(si.height-si.depth)/2-Se.fontMetrics().axisHeight,Bo=si.italic),Lt?Ii(si,Le,Qe,Se,hn,Bo,Zo):(Zo&&(si.style.position="relative",si.style.top=Zo+"em"),si)},fa=function(ce,Se){var Le;if(ce.symbol)Le=new ma("mo",[Ln(ce.name,ce.mode)]),v.contains(na,ce.name)&&Le.setAttribute("largeop","false");else if(ce.body)Le=new ma("mo",ea(ce.body,Se));else{Le=new ma("mi",[new ia(ce.name.slice(1))]);var Qe=new ma("mo",[Ln("\u2061","text")]);ce.parentIsSupSub?Le=new ma("mo",[Le,Qe]):Le=oa([Le,Qe])}return Le},Xa={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ot({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Qe;return Lt.length===1&&(Lt=Xa[Lt]),{type:"op",mode:Le.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Lt}},htmlBuilder:ji,mathmlBuilder:fa}),Ot({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ce,Se){var Le=ce.parser,Qe=Se[0];return{type:"op",mode:Le.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:fr(Qe)}},htmlBuilder:ji,mathmlBuilder:fa});var xa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ot({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Le=ce.funcName;return{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Le}},htmlBuilder:ji,mathmlBuilder:fa}),Ot({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Le=ce.funcName;return{type:"op",mode:Se.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Le}},htmlBuilder:ji,mathmlBuilder:fa}),Ot({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ce){var Se=ce.parser,Le=ce.funcName,Qe=Le;return Qe.length===1&&(Qe=xa[Qe]),{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Qe}},htmlBuilder:ji,mathmlBuilder:fa});var wa=function(ce,Se){var Le,Qe,Lt=!1,ir,Yr=bn(ce,"supsub");Yr?(Le=Yr.sup,Qe=Yr.sub,ir=kn(Yr.base,"operatorname"),Lt=!0):ir=kn(ce,"operatorname");var hn;if(ir.body.length>0){for(var In=ir.body.map(function(Gi){var sa=Gi.text;return typeof sa=="string"?{type:"textord",mode:Gi.mode,text:sa}:Gi}),si=pn(In,Se.withFont("mathrm"),!0),wi=0;wi<si.length;wi++){var gi=si[wi];gi instanceof Ne&&(gi.text=gi.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}hn=kr.makeSpan(["mop"],si,Se)}else hn=kr.makeSpan(["mop"],[],Se);return Lt?Ii(hn,Le,Qe,Se,Se.style,0,0):hn},Da=function(ce,Se){for(var Le=ea(ce.body,Se.withFont("mathrm")),Qe=!0,Lt=0;Lt<Le.length;Lt++){var ir=Le[Lt];if(!(ir instanceof vi.SpaceNode))if(ir instanceof vi.MathNode)switch(ir.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Yr=ir.children[0];ir.children.length===1&&Yr instanceof vi.TextNode?Yr.text=Yr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Qe=!1;break}default:Qe=!1}else Qe=!1}if(Qe){var hn=Le.map(function(wi){return wi.toText()}).join("");Le=[new vi.TextNode(hn)]}var In=new vi.MathNode("mi",Le);In.setAttribute("mathvariant","normal");var si=new vi.MathNode("mo",[Ln("\u2061","text")]);return ce.parentIsSupSub?new vi.MathNode("mo",[In,si]):vi.newDocumentFragment([In,si])};Ot({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0];return{type:"operatorname",mode:Le.mode,body:fr(Lt),alwaysHandleSupSub:Qe==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:Da}),sr({type:"ordgroup",htmlBuilder:function(ce,Se){return ce.semisimple?kr.makeFragment(pn(ce.body,Se,!1)):kr.makeSpan(["mord"],pn(ce.body,Se,!0),Se)},mathmlBuilder:function(ce,Se){return aa(ce.body,Se,!0)}}),Ot({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ce,Se){var Le=ce.parser,Qe=Se[0];return{type:"overline",mode:Le.mode,body:Qe}},htmlBuilder:function(ce,Se){var Le=xi(ce.body,Se.havingCrampedStyle()),Qe=kr.makeLineSpan("overline-line",Se),Lt=Se.fontMetrics().defaultRuleThickness,ir=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"kern",size:3*Lt},{type:"elem",elem:Qe},{type:"kern",size:Lt}]},Se);return kr.makeSpan(["mord","overline"],[ir],Se)},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mo",[new vi.TextNode("\u203E")]);Le.setAttribute("stretchy","true");var Qe=new vi.MathNode("mover",[Ir(ce.body,Se),Le]);return Qe.setAttribute("accent","true"),Qe}}),Ot({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=Se[0];return{type:"phantom",mode:Le.mode,body:fr(Qe)}},htmlBuilder:function(ce,Se){var Le=pn(ce.body,Se.withPhantom(),!1);return kr.makeFragment(Le)},mathmlBuilder:function(ce,Se){var Le=ea(ce.body,Se);return new vi.MathNode("mphantom",Le)}}),Ot({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=Se[0];return{type:"hphantom",mode:Le.mode,body:Qe}},htmlBuilder:function(ce,Se){var Le=kr.makeSpan([],[xi(ce.body,Se.withPhantom())]);if(Le.height=0,Le.depth=0,Le.children)for(var Qe=0;Qe<Le.children.length;Qe++)Le.children[Qe].height=0,Le.children[Qe].depth=0;return Le=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le}]},Se),kr.makeSpan(["mord"],[Le],Se)},mathmlBuilder:function(ce,Se){var Le=ea(fr(ce.body),Se),Qe=new vi.MathNode("mphantom",Le),Lt=new vi.MathNode("mpadded",[Qe]);return Lt.setAttribute("height","0px"),Lt.setAttribute("depth","0px"),Lt}}),Ot({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=Se[0];return{type:"vphantom",mode:Le.mode,body:Qe}},htmlBuilder:function(ce,Se){var Le=kr.makeSpan(["inner"],[xi(ce.body,Se.withPhantom())]),Qe=kr.makeSpan(["fix"],[]);return kr.makeSpan(["mord","rlap"],[Le,Qe],Se)},mathmlBuilder:function(ce,Se){var Le=ea(fr(ce.body),Se),Qe=new vi.MathNode("mphantom",Le),Lt=new vi.MathNode("mpadded",[Qe]);return Lt.setAttribute("width","0px"),Lt}}),Ot({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=kn(Se[0],"size").value,Lt=Se[1];return{type:"raisebox",mode:Le.mode,dy:Qe,body:Lt}},htmlBuilder:function(ce,Se){var Le=xi(ce.body,Se),Qe=Nr(ce.dy,Se);return kr.makeVList({positionType:"shift",positionData:-Qe,children:[{type:"elem",elem:Le}]},Se)},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mpadded",[Ir(ce.body,Se)]),Qe=ce.dy.number+ce.dy.unit;return Le.setAttribute("voffset",Qe),Le}}),Ot({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=Le[0],ir=kn(Se[0],"size"),Yr=kn(Se[1],"size");return{type:"rule",mode:Qe.mode,shift:Lt&&kn(Lt,"size").value,width:ir.value,height:Yr.value}},htmlBuilder:function(ce,Se){var Le=kr.makeSpan(["mord","rule"],[],Se),Qe=Nr(ce.width,Se),Lt=Nr(ce.height,Se),ir=ce.shift?Nr(ce.shift,Se):0;return Le.style.borderRightWidth=Qe+"em",Le.style.borderTopWidth=Lt+"em",Le.style.bottom=ir+"em",Le.width=Qe,Le.height=Lt+ir,Le.depth=-ir,Le.maxFontSize=Lt*1.125*Se.sizeMultiplier,Le},mathmlBuilder:function(ce,Se){var Le=Nr(ce.width,Se),Qe=Nr(ce.height,Se),Lt=ce.shift?Nr(ce.shift,Se):0,ir=Se.color&&Se.getColor()||"black",Yr=new vi.MathNode("mspace");Yr.setAttribute("mathbackground",ir),Yr.setAttribute("width",Le+"em"),Yr.setAttribute("height",Qe+"em");var hn=new vi.MathNode("mpadded",[Yr]);return Lt>=0?hn.setAttribute("height","+"+Lt+"em"):(hn.setAttribute("height",Lt+"em"),hn.setAttribute("depth","+"+-Lt+"em")),hn.setAttribute("voffset",Lt+"em"),hn}});function ja(It,ce,Se){for(var Le=pn(It,ce,!1),Qe=ce.sizeMultiplier/Se.sizeMultiplier,Lt=0;Lt<Le.length;Lt++){var ir=Le[Lt].classes.indexOf("sizing");ir<0?Array.prototype.push.apply(Le[Lt].classes,ce.sizingClasses(Se)):Le[Lt].classes[ir+1]==="reset-size"+ce.size&&(Le[Lt].classes[ir+1]="reset-size"+Se.size),Le[Lt].height*=Qe,Le[Lt].depth*=Qe}return kr.makeFragment(Le)}var ko=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ro=function(ce,Se){var Le=Se.havingSize(ce.size);return ja(ce.body,Le,Se)};Ot({type:"sizing",names:ko,props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Le=ce.breakOnTokenText,Qe=ce.funcName,Lt=ce.parser,ir=Lt.parseExpression(!1,Le);return{type:"sizing",mode:Lt.mode,size:ko.indexOf(Qe)+1,body:ir}},htmlBuilder:ro,mathmlBuilder:function(ce,Se){var Le=Se.havingSize(ce.size),Qe=ea(ce.body,Le),Lt=new vi.MathNode("mstyle",Qe);return Lt.setAttribute("mathsize",Le.sizeMultiplier+"em"),Lt}}),Ot({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=!1,ir=!1,Yr=Le[0]&&kn(Le[0],"ordgroup");if(Yr)for(var hn="",In=0;In<Yr.body.length;++In){var si=Yr.body[In];if(hn=si.text,hn==="t")Lt=!0;else if(hn==="b")ir=!0;else{Lt=!1,ir=!1;break}}else Lt=!0,ir=!0;var wi=Se[0];return{type:"smash",mode:Qe.mode,body:wi,smashHeight:Lt,smashDepth:ir}},htmlBuilder:function(ce,Se){var Le=kr.makeSpan([],[xi(ce.body,Se)]);if(!ce.smashHeight&&!ce.smashDepth)return Le;if(ce.smashHeight&&(Le.height=0,Le.children))for(var Qe=0;Qe<Le.children.length;Qe++)Le.children[Qe].height=0;if(ce.smashDepth&&(Le.depth=0,Le.children))for(var Lt=0;Lt<Le.children.length;Lt++)Le.children[Lt].depth=0;var ir=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le}]},Se);return kr.makeSpan(["mord"],[ir],Se)},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mpadded",[Ir(ce.body,Se)]);return ce.smashHeight&&Le.setAttribute("height","0px"),ce.smashDepth&&Le.setAttribute("depth","0px"),Le}}),Ot({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,Se,Le){var Qe=ce.parser,Lt=Le[0],ir=Se[0];return{type:"sqrt",mode:Qe.mode,body:ir,index:Lt}},htmlBuilder:function(ce,Se){var Le=xi(ce.body,Se.havingCrampedStyle());Le.height===0&&(Le.height=Se.fontMetrics().xHeight),Le=kr.wrapFragment(Le,Se);var Qe=Se.fontMetrics(),Lt=Qe.defaultRuleThickness,ir=Lt;Se.style.id<z.TEXT.id&&(ir=Se.fontMetrics().xHeight);var Yr=Lt+ir/4,hn=Le.height+Le.depth+Yr+Lt,In=ao.sqrtImage(hn,Se),si=In.span,wi=In.ruleWidth,gi=In.advanceWidth,Gi=si.height-wi;Gi>Le.height+Le.depth+Yr&&(Yr=(Yr+Gi-Le.height-Le.depth)/2);var sa=si.height-Le.height-Yr-wi;Le.style.paddingLeft=gi+"em";var Ua=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le,wrapperClasses:["svg-align"]},{type:"kern",size:-(Le.height+sa)},{type:"elem",elem:si},{type:"kern",size:wi}]},Se);if(ce.index){var no=Se.havingStyle(z.SCRIPTSCRIPT),Wo=xi(ce.index,no,Se),Zo=.6*(Ua.height-Ua.depth),Bo=kr.makeVList({positionType:"shift",positionData:-Zo,children:[{type:"elem",elem:Wo}]},Se),Es=kr.makeSpan(["root"],[Bo]);return kr.makeSpan(["mord","sqrt"],[Es,Ua],Se)}else return kr.makeSpan(["mord","sqrt"],[Ua],Se)},mathmlBuilder:function(ce,Se){var Le=ce.body,Qe=ce.index;return Qe?new vi.MathNode("mroot",[Ir(Le,Se),Ir(Qe,Se)]):new vi.MathNode("msqrt",[Ir(Le,Se)])}});var pa={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};Ot({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se){var Le=ce.breakOnTokenText,Qe=ce.funcName,Lt=ce.parser,ir=Lt.parseExpression(!0,Le),Yr=Qe.slice(1,Qe.length-5);return{type:"styling",mode:Lt.mode,style:Yr,body:ir}},htmlBuilder:function(ce,Se){var Le=pa[ce.style],Qe=Se.havingStyle(Le).withFont("");return ja(ce.body,Qe,Se)},mathmlBuilder:function(ce,Se){var Le=pa[ce.style],Qe=Se.havingStyle(Le),Lt=ea(ce.body,Qe),ir=new vi.MathNode("mstyle",Lt),Yr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},hn=Yr[ce.style];return ir.setAttribute("scriptlevel",hn[0]),ir.setAttribute("displaystyle",hn[1]),ir}});var Ea=function(ce,Se){var Le=ce.base;if(Le)if(Le.type==="op"){var Qe=Le.limits&&(Se.style.size===z.DISPLAY.size||Le.alwaysHandleSupSub);return Qe?ji:null}else if(Le.type==="operatorname"){var Lt=Le.alwaysHandleSupSub&&(Se.style.size===z.DISPLAY.size||Le.limits);return Lt?wa:null}else{if(Le.type==="accent")return v.isCharacterBox(Le.base)?yn:null;if(Le.type==="horizBrace"){var ir=!ce.sub;return ir===Le.isOver?ai:null}else return null}else return null};sr({type:"supsub",htmlBuilder:function(ce,Se){var Le=Ea(ce,Se);if(Le)return Le(ce,Se);var Qe=ce.base,Lt=ce.sup,ir=ce.sub,Yr=xi(Qe,Se),hn,In,si=Se.fontMetrics(),wi=0,gi=0,Gi=Qe&&v.isCharacterBox(Qe);if(Lt){var sa=Se.havingStyle(Se.style.sup());hn=xi(Lt,sa,Se),Gi||(wi=Yr.height-sa.fontMetrics().supDrop*sa.sizeMultiplier/Se.sizeMultiplier)}if(ir){var Ua=Se.havingStyle(Se.style.sub());In=xi(ir,Ua,Se),Gi||(gi=Yr.depth+Ua.fontMetrics().subDrop*Ua.sizeMultiplier/Se.sizeMultiplier)}var no;Se.style===z.DISPLAY?no=si.sup1:Se.style.cramped?no=si.sup3:no=si.sup2;var Wo=Se.sizeMultiplier,Zo=.5/si.ptPerEm/Wo+"em",Bo=null;if(In){var Es=ce.base&&ce.base.type==="op"&&ce.base.name&&(ce.base.name==="\\oiint"||ce.base.name==="\\oiiint");(Yr instanceof Ne||Es)&&(Bo=-Yr.italic+"em")}var As;if(hn&&In){wi=Math.max(wi,no,hn.depth+.25*si.xHeight),gi=Math.max(gi,si.sub2);var $o=si.defaultRuleThickness,Do=4*$o;if(wi-hn.depth-(In.height-gi)<Do){gi=Do-(wi-hn.depth)+In.height;var vo=.8*si.xHeight-(wi-hn.depth);vo>0&&(wi+=vo,gi-=vo)}var Ms=[{type:"elem",elem:In,shift:gi,marginRight:Zo,marginLeft:Bo},{type:"elem",elem:hn,shift:-wi,marginRight:Zo}];As=kr.makeVList({positionType:"individualShift",children:Ms},Se)}else if(In){gi=Math.max(gi,si.sub1,In.height-.8*si.xHeight);var rl=[{type:"elem",elem:In,marginLeft:Bo,marginRight:Zo}];As=kr.makeVList({positionType:"shift",positionData:gi,children:rl},Se)}else if(hn)wi=Math.max(wi,no,hn.depth+.25*si.xHeight),As=kr.makeVList({positionType:"shift",positionData:-wi,children:[{type:"elem",elem:hn,marginRight:Zo}]},Se);else throw new Error("supsub must have either sup or sub.");var gs=Qn(Yr,"right")||"mord";return kr.makeSpan([gs],[Yr,kr.makeSpan(["msupsub"],[As])],Se)},mathmlBuilder:function(ce,Se){var Le=!1,Qe,Lt,ir=bn(ce.base,"horizBrace");ir&&(Lt=!!ce.sup,Lt===ir.isOver&&(Le=!0,Qe=ir.isOver)),ce.base&&(ce.base.type==="op"||ce.base.type==="operatorname")&&(ce.base.parentIsSupSub=!0);var Yr=[Ir(ce.base,Se)];ce.sub&&Yr.push(Ir(ce.sub,Se)),ce.sup&&Yr.push(Ir(ce.sup,Se));var hn;if(Le)hn=Qe?"mover":"munder";else if(ce.sub)if(ce.sup){var wi=ce.base;wi&&wi.type==="op"&&wi.limits&&Se.style===z.DISPLAY||wi&&wi.type==="operatorname"&&wi.alwaysHandleSupSub&&(Se.style===z.DISPLAY||wi.limits)?hn="munderover":hn="msubsup"}else{var si=ce.base;si&&si.type==="op"&&si.limits&&(Se.style===z.DISPLAY||si.alwaysHandleSupSub)||si&&si.type==="operatorname"&&si.alwaysHandleSupSub&&(si.limits||Se.style===z.DISPLAY)?hn="munder":hn="msub"}else{var In=ce.base;In&&In.type==="op"&&In.limits&&(Se.style===z.DISPLAY||In.alwaysHandleSupSub)||In&&In.type==="operatorname"&&In.alwaysHandleSupSub&&(In.limits||Se.style===z.DISPLAY)?hn="mover":hn="msup"}var gi=new vi.MathNode(hn,Yr);return gi}}),sr({type:"atom",htmlBuilder:function(ce,Se){return kr.mathsym(ce.text,ce.mode,Se,["m"+ce.family])},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mo",[Ln(ce.text,ce.mode)]);if(ce.family==="bin"){var Qe=ha(ce,Se);Qe==="bold-italic"&&Le.setAttribute("mathvariant",Qe)}else ce.family==="punct"?Le.setAttribute("separator","true"):(ce.family==="open"||ce.family==="close")&&Le.setAttribute("stretchy","false");return Le}});var Fa={mi:"italic",mn:"normal",mtext:"normal"};sr({type:"mathord",htmlBuilder:function(ce,Se){return kr.makeOrd(ce,Se,"mathord")},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mi",[Ln(ce.text,ce.mode,Se)]),Qe=ha(ce,Se)||"italic";return Qe!==Fa[Le.type]&&Le.setAttribute("mathvariant",Qe),Le}}),sr({type:"textord",htmlBuilder:function(ce,Se){return kr.makeOrd(ce,Se,"textord")},mathmlBuilder:function(ce,Se){var Le=Ln(ce.text,ce.mode,Se),Qe=ha(ce,Se)||"normal",Lt;return ce.mode==="text"?Lt=new vi.MathNode("mtext",[Le]):/[0-9]/.test(ce.text)?Lt=new vi.MathNode("mn",[Le]):ce.text==="\\prime"?Lt=new vi.MathNode("mo",[Le]):Lt=new vi.MathNode("mi",[Le]),Qe!==Fa[Lt.type]&&Lt.setAttribute("mathvariant",Qe),Lt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};sr({type:"spacing",htmlBuilder:function(ce,Se){if(lo.hasOwnProperty(ce.text)){var Le=lo[ce.text].className||"";if(ce.mode==="text"){var Qe=kr.makeOrd(ce,Se,"textord");return Qe.classes.push(Le),Qe}else return kr.makeSpan(["mspace",Le],[kr.mathsym(ce.text,ce.mode,Se)],Se)}else{if(Ka.hasOwnProperty(ce.text))return kr.makeSpan(["mspace",Ka[ce.text]],[],Se);throw new u('Unknown type of space "'+ce.text+'"')}},mathmlBuilder:function(ce,Se){var Le;if(lo.hasOwnProperty(ce.text))Le=new vi.MathNode("mtext",[new vi.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ce.text))return new vi.MathNode("mspace");throw new u('Unknown type of space "'+ce.text+'"')}return Le}});var so=function(){var ce=new vi.MathNode("mtd",[]);return ce.setAttribute("width","50%"),ce};sr({type:"tag",mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mtable",[new vi.MathNode("mtr",[so(),new vi.MathNode("mtd",[aa(ce.body,Se)]),so(),new vi.MathNode("mtd",[aa(ce.tag,Se)])])]);return Le.setAttribute("width","100%"),Le}});var Co={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lo={"\\textbf":"textbf","\\textmd":"textmd"},is={"\\textit":"textit","\\textup":"textup"},cs=function(ce,Se){var Le=ce.font;return Le?Co[Le]?Se.withTextFontFamily(Co[Le]):Lo[Le]?Se.withTextFontWeight(Lo[Le]):Se.withTextFontShape(is[Le]):Se};Ot({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser,Qe=ce.funcName,Lt=Se[0];return{type:"text",mode:Le.mode,body:fr(Lt),font:Qe}},htmlBuilder:function(ce,Se){var Le=cs(ce,Se),Qe=pn(ce.body,Le,!0);return kr.makeSpan(["mord","text"],kr.tryCombineChars(Qe),Le)},mathmlBuilder:function(ce,Se){var Le=cs(ce,Se);return aa(ce.body,Le)}}),Ot({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Se){var Le=ce.parser;return{type:"underline",mode:Le.mode,body:Se[0]}},htmlBuilder:function(ce,Se){var Le=xi(ce.body,Se),Qe=kr.makeLineSpan("underline-line",Se),Lt=Se.fontMetrics().defaultRuleThickness,ir=kr.makeVList({positionType:"top",positionData:Le.height,children:[{type:"kern",size:Lt},{type:"elem",elem:Qe},{type:"kern",size:3*Lt},{type:"elem",elem:Le}]},Se);return kr.makeSpan(["mord","underline"],[ir],Se)},mathmlBuilder:function(ce,Se){var Le=new vi.MathNode("mo",[new vi.TextNode("\u203E")]);Le.setAttribute("stretchy","true");var Qe=new vi.MathNode("munder",[Ir(ce.body,Se),Le]);return Qe.setAttribute("accentunder","true"),Qe}}),Ot({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Se,Le){throw new u("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ce,Se){for(var Le=Rs(ce),Qe=[],Lt=Se.havingStyle(Se.style.text()),ir=0;ir<Le.length;ir++){var Yr=Le[ir];Yr==="~"&&(Yr="\\textasciitilde"),Qe.push(kr.makeSymbol(Yr,"Typewriter-Regular",ce.mode,Lt,["mord","texttt"]))}return kr.makeSpan(["mord","text"].concat(Lt.sizingClasses(Se)),kr.tryCombineChars(Qe),Lt)},mathmlBuilder:function(ce,Se){var Le=new vi.TextNode(Rs(ce)),Qe=new vi.MathNode("mtext",[Le]);return Qe.setAttribute("mathvariant","monospace"),Qe}});var Rs=function(ce){return ce.body.replace(/ /g,ce.star?"\u2423":"\xA0")},Ko=kt,as=Ko,co=`[ \r
]`,Ao="\\\\[a-zA-Z@]+",$a="\\\\[^\uD800-\uDFFF]",ss=""+Ao+co+"*",Cs=new RegExp("^("+Ao+")"+co+"*$"),Fo="[\u0300-\u036F]",il=new RegExp(Fo+"+$"),Eo="("+co+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Fo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ss)+("|"+$a+")"),zo=function(){function It(Se,Le){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=Se,this.settings=Le,this.tokenRegex=new RegExp(Eo,"g"),this.catcodes={"%":14}}var ce=It.prototype;return ce.setCatcode=function(Le,Qe){this.catcodes[Le]=Qe},ce.lex=function(){var Le=this.input,Qe=this.tokenRegex.lastIndex;if(Qe===Le.length)return new f("EOF",new m(this,Qe,Qe));var Lt=this.tokenRegex.exec(Le);if(Lt===null||Lt.index!==Qe)throw new u("Unexpected character: '"+Le[Qe]+"'",new f(Le[Qe],new m(this,Qe,Qe+1)));var ir=Lt[2]||" ";if(this.catcodes[ir]===14){var Yr=Le.indexOf(`
`,this.tokenRegex.lastIndex);return Yr===-1?(this.tokenRegex.lastIndex=Le.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Yr+1,this.lex()}var hn=ir.match(Cs);return hn&&(ir=hn[1]),new f(ir,new m(this,Qe,this.tokenRegex.lastIndex))},It}(),Bs=function(){function It(Se,Le){Se===void 0&&(Se={}),Le===void 0&&(Le={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Le,this.builtins=Se,this.undefStack=[]}var ce=It.prototype;return ce.beginGroup=function(){this.undefStack.push({})},ce.endGroup=function(){if(this.undefStack.length===0)throw new u("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Le=this.undefStack.pop();for(var Qe in Le)Le.hasOwnProperty(Qe)&&(Le[Qe]===void 0?delete this.current[Qe]:this.current[Qe]=Le[Qe])},ce.has=function(Le){return this.current.hasOwnProperty(Le)||this.builtins.hasOwnProperty(Le)},ce.get=function(Le){return this.current.hasOwnProperty(Le)?this.current[Le]:this.builtins[Le]},ce.set=function(Le,Qe,Lt){if(Lt===void 0&&(Lt=!1),Lt){for(var ir=0;ir<this.undefStack.length;ir++)delete this.undefStack[ir][Le];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Le]=Qe)}else{var Yr=this.undefStack[this.undefStack.length-1];Yr&&!Yr.hasOwnProperty(Le)&&(Yr[Le]=this.current[Le])}this.current[Le]=Qe},It}(),ms={},hs=ms;function An(It,ce){ms[It]=ce}An("\\@firstoftwo",function(It){var ce=It.consumeArgs(2);return{tokens:ce[0],numArgs:0}}),An("\\@secondoftwo",function(It){var ce=It.consumeArgs(2);return{tokens:ce[1],numArgs:0}}),An("\\@ifnextchar",function(It){var ce=It.consumeArgs(3),Se=It.future();return ce[0].length===1&&ce[0][0].text===Se.text?{tokens:ce[1],numArgs:0}:{tokens:ce[2],numArgs:0}}),An("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),An("\\TextOrMath",function(It){var ce=It.consumeArgs(2);return It.mode==="text"?{tokens:ce[0],numArgs:0}:{tokens:ce[1],numArgs:0}});var Ns={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};An("\\char",function(It){var ce=It.popToken(),Se,Le="";if(ce.text==="'")Se=8,ce=It.popToken();else if(ce.text==='"')Se=16,ce=It.popToken();else if(ce.text==="`")if(ce=It.popToken(),ce.text[0]==="\\")Le=ce.text.charCodeAt(1);else{if(ce.text==="EOF")throw new u("\\char` missing argument");Le=ce.text.charCodeAt(0)}else Se=10;if(Se){if(Le=Ns[ce.text],Le==null||Le>=Se)throw new u("Invalid base-"+Se+" digit "+ce.text);for(var Qe;(Qe=Ns[It.future().text])!=null&&Qe<Se;)Le*=Se,Le+=Qe,It.popToken()}return"\\@char{"+Le+"}"});var Ll=function(ce,Se){var Le=ce.consumeArgs(1)[0];if(Le.length!==1)throw new u("\\gdef's first argument must be a macro name");var Qe=Le[0].text,Lt=0;for(Le=ce.consumeArgs(1)[0];Le.length===1&&Le[0].text==="#";){if(Le=ce.consumeArgs(1)[0],Le.length!==1)throw new u('Invalid argument number length "'+Le.length+'"');if(!/^[1-9]$/.test(Le[0].text))throw new u('Invalid argument number "'+Le[0].text+'"');if(Lt++,parseInt(Le[0].text)!==Lt)throw new u('Argument number "'+Le[0].text+'" out of order');Le=ce.consumeArgs(1)[0]}return ce.macros.set(Qe,{tokens:Le,numArgs:Lt},Se),""};An("\\gdef",function(It){return Ll(It,!0)}),An("\\def",function(It){return Ll(It,!1)}),An("\\global",function(It){var ce=It.consumeArgs(1)[0];if(ce.length!==1)throw new u("Invalid command after \\global");var Se=ce[0].text;if(Se==="\\def")return Ll(It,!0);throw new u("Invalid command '"+Se+"' after \\global")});var el=function(ce,Se,Le){var Qe=ce.consumeArgs(1)[0];if(Qe.length!==1)throw new u("\\newcommand's first argument must be a macro name");var Lt=Qe[0].text,ir=ce.isDefined(Lt);if(ir&&!Se)throw new u("\\newcommand{"+Lt+"} attempting to redefine "+(Lt+"; use \\renewcommand"));if(!ir&&!Le)throw new u("\\renewcommand{"+Lt+"} when command "+Lt+" does not yet exist; use \\newcommand");var Yr=0;if(Qe=ce.consumeArgs(1)[0],Qe.length===1&&Qe[0].text==="["){for(var hn="",In=ce.expandNextToken();In.text!=="]"&&In.text!=="EOF";)hn+=In.text,In=ce.expandNextToken();if(!hn.match(/^\s*[0-9]+\s*$/))throw new u("Invalid number of arguments: "+hn);Yr=parseInt(hn),Qe=ce.consumeArgs(1)[0]}return ce.macros.set(Lt,{tokens:Qe,numArgs:Yr}),""};An("\\newcommand",function(It){return el(It,!1,!0)}),An("\\renewcommand",function(It){return el(It,!0,!1)}),An("\\providecommand",function(It){return el(It,!0,!0)}),An("\\bgroup","{"),An("\\egroup","}"),An("\\lq","`"),An("\\rq","'"),An("\\aa","\\r a"),An("\\AA","\\r A"),An("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),An("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),An("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),An("\u212C","\\mathscr{B}"),An("\u2130","\\mathscr{E}"),An("\u2131","\\mathscr{F}"),An("\u210B","\\mathscr{H}"),An("\u2110","\\mathscr{I}"),An("\u2112","\\mathscr{L}"),An("\u2133","\\mathscr{M}"),An("\u211B","\\mathscr{R}"),An("\u212D","\\mathfrak{C}"),An("\u210C","\\mathfrak{H}"),An("\u2128","\\mathfrak{Z}"),An("\\Bbbk","\\Bbb{k}"),An("\xB7","\\cdotp"),An("\\llap","\\mathllap{\\textrm{#1}}"),An("\\rlap","\\mathrlap{\\textrm{#1}}"),An("\\clap","\\mathclap{\\textrm{#1}}"),An("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),An("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),An("\\ne","\\neq"),An("\u2260","\\neq"),An("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),An("\u2209","\\notin"),An("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),An("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),An("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),An("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),An("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),An("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),An("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),An("\u27C2","\\perp"),An("\u203C","\\mathclose{!\\mkern-0.8mu!}"),An("\u220C","\\notni"),An("\u231C","\\ulcorner"),An("\u231D","\\urcorner"),An("\u231E","\\llcorner"),An("\u231F","\\lrcorner"),An("\xA9","\\copyright"),An("\xAE","\\textregistered"),An("\uFE0F","\\textregistered"),An("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),An("\u22EE","\\vdots"),An("\\varGamma","\\mathit{\\Gamma}"),An("\\varDelta","\\mathit{\\Delta}"),An("\\varTheta","\\mathit{\\Theta}"),An("\\varLambda","\\mathit{\\Lambda}"),An("\\varXi","\\mathit{\\Xi}"),An("\\varPi","\\mathit{\\Pi}"),An("\\varSigma","\\mathit{\\Sigma}"),An("\\varUpsilon","\\mathit{\\Upsilon}"),An("\\varPhi","\\mathit{\\Phi}"),An("\\varPsi","\\mathit{\\Psi}"),An("\\varOmega","\\mathit{\\Omega}"),An("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),An("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),An("\\boxed","\\fbox{$\\displaystyle{#1}$}"),An("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),An("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),An("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Gs={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};An("\\dots",function(It){var ce="\\dotso",Se=It.expandAfterFuture().text;return Se in Gs?ce=Gs[Se]:Se.substr(0,4)==="\\not"?ce="\\dotsb":Se in Ge.math&&(v.contains(["bin","rel"],Ge.math[Se].group)&&(ce="\\dotsb")),ce});var ds={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};An("\\dotso",function(It){var ce=It.future().text;return ce in ds?"\\ldots\\,":"\\ldots"}),An("\\dotsc",function(It){var ce=It.future().text;return ce in ds&&ce!==","?"\\ldots\\,":"\\ldots"}),An("\\cdots",function(It){var ce=It.future().text;return ce in ds?"\\@cdots\\,":"\\@cdots"}),An("\\dotsb","\\cdots"),An("\\dotsm","\\cdots"),An("\\dotsi","\\!\\cdots"),An("\\dotsx","\\ldots\\,"),An("\\DOTSI","\\relax"),An("\\DOTSB","\\relax"),An("\\DOTSX","\\relax"),An("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),An("\\,","\\tmspace+{3mu}{.1667em}"),An("\\thinspace","\\,"),An("\\>","\\mskip{4mu}"),An("\\:","\\tmspace+{4mu}{.2222em}"),An("\\medspace","\\:"),An("\\;","\\tmspace+{5mu}{.2777em}"),An("\\thickspace","\\;"),An("\\!","\\tmspace-{3mu}{.1667em}"),An("\\negthinspace","\\!"),An("\\negmedspace","\\tmspace-{4mu}{.2222em}"),An("\\negthickspace","\\tmspace-{5mu}{.277em}"),An("\\enspace","\\kern.5em "),An("\\enskip","\\hskip.5em\\relax"),An("\\quad","\\hskip1em\\relax"),An("\\qquad","\\hskip2em\\relax"),An("\\tag","\\@ifstar\\tag@literal\\tag@paren"),An("\\tag@paren","\\tag@literal{({#1})}"),An("\\tag@literal",function(It){if(It.macros.get("\\df@tag"))throw new u("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),An("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),An("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),An("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),An("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),An("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),An("\\\\","\\newline"),An("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ks=Ct["Main-Regular"]["T".charCodeAt(0)][1]-.7*Ct["Main-Regular"]["A".charCodeAt(0)][1]+"em";An("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),An("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),An("\\hspace","\\@ifstar\\@hspacer\\@hspace"),An("\\@hspace","\\hskip #1\\relax"),An("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),An("\\ordinarycolon",":"),An("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),An("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),An("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),An("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),An("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),An("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),An("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),An("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),An("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),An("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),An("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),An("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),An("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),An("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),An("\u2237","\\dblcolon"),An("\u2239","\\eqcolon"),An("\u2254","\\coloneqq"),An("\u2255","\\eqqcolon"),An("\u2A74","\\Coloneqq"),An("\\ratio","\\vcentcolon"),An("\\coloncolon","\\dblcolon"),An("\\colonequals","\\coloneqq"),An("\\coloncolonequals","\\Coloneqq"),An("\\equalscolon","\\eqqcolon"),An("\\equalscoloncolon","\\Eqqcolon"),An("\\colonminus","\\coloneq"),An("\\coloncolonminus","\\Coloneq"),An("\\minuscolon","\\eqcolon"),An("\\minuscoloncolon","\\Eqcolon"),An("\\coloncolonapprox","\\Colonapprox"),An("\\coloncolonsim","\\Colonsim"),An("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),An("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),An("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),An("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),An("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),An("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),An("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),An("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),An("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),An("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),An("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),An("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),An("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),An("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),An("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),An("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),An("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),An("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),An("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),An("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),An("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),An("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),An("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),An("\u27E6","\\llbracket"),An("\u27E7","\\rrbracket"),An("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),An("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),An("\u2983","\\lBrace"),An("\u2984","\\rBrace"),An("\\darr","\\downarrow"),An("\\dArr","\\Downarrow"),An("\\Darr","\\Downarrow"),An("\\lang","\\langle"),An("\\rang","\\rangle"),An("\\uarr","\\uparrow"),An("\\uArr","\\Uparrow"),An("\\Uarr","\\Uparrow"),An("\\N","\\mathbb{N}"),An("\\R","\\mathbb{R}"),An("\\Z","\\mathbb{Z}"),An("\\alef","\\aleph"),An("\\alefsym","\\aleph"),An("\\Alpha","\\mathrm{A}"),An("\\Beta","\\mathrm{B}"),An("\\bull","\\bullet"),An("\\Chi","\\mathrm{X}"),An("\\clubs","\\clubsuit"),An("\\cnums","\\mathbb{C}"),An("\\Complex","\\mathbb{C}"),An("\\Dagger","\\ddagger"),An("\\diamonds","\\diamondsuit"),An("\\empty","\\emptyset"),An("\\Epsilon","\\mathrm{E}"),An("\\Eta","\\mathrm{H}"),An("\\exist","\\exists"),An("\\harr","\\leftrightarrow"),An("\\hArr","\\Leftrightarrow"),An("\\Harr","\\Leftrightarrow"),An("\\hearts","\\heartsuit"),An("\\image","\\Im"),An("\\infin","\\infty"),An("\\Iota","\\mathrm{I}"),An("\\isin","\\in"),An("\\Kappa","\\mathrm{K}"),An("\\larr","\\leftarrow"),An("\\lArr","\\Leftarrow"),An("\\Larr","\\Leftarrow"),An("\\lrarr","\\leftrightarrow"),An("\\lrArr","\\Leftrightarrow"),An("\\Lrarr","\\Leftrightarrow"),An("\\Mu","\\mathrm{M}"),An("\\natnums","\\mathbb{N}"),An("\\Nu","\\mathrm{N}"),An("\\Omicron","\\mathrm{O}"),An("\\plusmn","\\pm"),An("\\rarr","\\rightarrow"),An("\\rArr","\\Rightarrow"),An("\\Rarr","\\Rightarrow"),An("\\real","\\Re"),An("\\reals","\\mathbb{R}"),An("\\Reals","\\mathbb{R}"),An("\\Rho","\\mathrm{P}"),An("\\sdot","\\cdot"),An("\\sect","\\S"),An("\\spades","\\spadesuit"),An("\\sub","\\subset"),An("\\sube","\\subseteq"),An("\\supe","\\supseteq"),An("\\Tau","\\mathrm{T}"),An("\\thetasym","\\vartheta"),An("\\weierp","\\wp"),An("\\Zeta","\\mathrm{Z}"),An("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),An("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),An("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),An("\\blue","\\textcolor{##6495ed}{#1}"),An("\\orange","\\textcolor{##ffa500}{#1}"),An("\\pink","\\textcolor{##ff00af}{#1}"),An("\\red","\\textcolor{##df0030}{#1}"),An("\\green","\\textcolor{##28ae7b}{#1}"),An("\\gray","\\textcolor{gray}{#1}"),An("\\purple","\\textcolor{##9d38bd}{#1}"),An("\\blueA","\\textcolor{##ccfaff}{#1}"),An("\\blueB","\\textcolor{##80f6ff}{#1}"),An("\\blueC","\\textcolor{##63d9ea}{#1}"),An("\\blueD","\\textcolor{##11accd}{#1}"),An("\\blueE","\\textcolor{##0c7f99}{#1}"),An("\\tealA","\\textcolor{##94fff5}{#1}"),An("\\tealB","\\textcolor{##26edd5}{#1}"),An("\\tealC","\\textcolor{##01d1c1}{#1}"),An("\\tealD","\\textcolor{##01a995}{#1}"),An("\\tealE","\\textcolor{##208170}{#1}"),An("\\greenA","\\textcolor{##b6ffb0}{#1}"),An("\\greenB","\\textcolor{##8af281}{#1}"),An("\\greenC","\\textcolor{##74cf70}{#1}"),An("\\greenD","\\textcolor{##1fab54}{#1}"),An("\\greenE","\\textcolor{##0d923f}{#1}"),An("\\goldA","\\textcolor{##ffd0a9}{#1}"),An("\\goldB","\\textcolor{##ffbb71}{#1}"),An("\\goldC","\\textcolor{##ff9c39}{#1}"),An("\\goldD","\\textcolor{##e07d10}{#1}"),An("\\goldE","\\textcolor{##a75a05}{#1}"),An("\\redA","\\textcolor{##fca9a9}{#1}"),An("\\redB","\\textcolor{##ff8482}{#1}"),An("\\redC","\\textcolor{##f9685d}{#1}"),An("\\redD","\\textcolor{##e84d39}{#1}"),An("\\redE","\\textcolor{##bc2612}{#1}"),An("\\maroonA","\\textcolor{##ffbde0}{#1}"),An("\\maroonB","\\textcolor{##ff92c6}{#1}"),An("\\maroonC","\\textcolor{##ed5fa6}{#1}"),An("\\maroonD","\\textcolor{##ca337c}{#1}"),An("\\maroonE","\\textcolor{##9e034e}{#1}"),An("\\purpleA","\\textcolor{##ddd7ff}{#1}"),An("\\purpleB","\\textcolor{##c6b9fc}{#1}"),An("\\purpleC","\\textcolor{##aa87ff}{#1}"),An("\\purpleD","\\textcolor{##7854ab}{#1}"),An("\\purpleE","\\textcolor{##543b78}{#1}"),An("\\mintA","\\textcolor{##f5f9e8}{#1}"),An("\\mintB","\\textcolor{##edf2df}{#1}"),An("\\mintC","\\textcolor{##e0e5cc}{#1}"),An("\\grayA","\\textcolor{##f6f7f7}{#1}"),An("\\grayB","\\textcolor{##f0f1f2}{#1}"),An("\\grayC","\\textcolor{##e3e5e6}{#1}"),An("\\grayD","\\textcolor{##d6d8da}{#1}"),An("\\grayE","\\textcolor{##babec2}{#1}"),An("\\grayF","\\textcolor{##888d93}{#1}"),An("\\grayG","\\textcolor{##626569}{#1}"),An("\\grayH","\\textcolor{##3b3e40}{#1}"),An("\\grayI","\\textcolor{##21242c}{#1}"),An("\\kaBlue","\\textcolor{##314453}{#1}"),An("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},tl=function(){function It(Se,Le,Qe){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=Le,this.expansionCount=0,this.feed(Se),this.macros=new Bs(hs,Le.macros),this.mode=Qe,this.stack=[]}var ce=It.prototype;return ce.feed=function(Le){this.lexer=new zo(Le,this.settings)},ce.switchMode=function(Le){this.mode=Le},ce.beginGroup=function(){this.macros.beginGroup()},ce.endGroup=function(){this.macros.endGroup()},ce.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ce.popToken=function(){return this.future(),this.stack.pop()},ce.pushToken=function(Le){this.stack.push(Le)},ce.pushTokens=function(Le){var Qe;(Qe=this.stack).push.apply(Qe,Le)},ce.consumeSpaces=function(){for(;;){var Le=this.future();if(Le.text===" ")this.stack.pop();else break}},ce.consumeArgs=function(Le){for(var Qe=[],Lt=0;Lt<Le;++Lt){this.consumeSpaces();var ir=this.popToken();if(ir.text==="{"){for(var Yr=[],hn=1;hn!==0;){var In=this.popToken();if(Yr.push(In),In.text==="{")++hn;else if(In.text==="}")--hn;else if(In.text==="EOF")throw new u("End of input in macro argument",ir)}Yr.pop(),Yr.reverse(),Qe[Lt]=Yr}else{if(ir.text==="EOF")throw new u("End of input expecting macro argument");Qe[Lt]=[ir]}}return Qe},ce.expandOnce=function(){var Le=this.popToken(),Qe=Le.text,Lt=this._getExpansion(Qe);if(Lt==null)return this.pushToken(Le),Le;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new u("Too many expansions: infinite loop or need to increase maxExpand setting");var ir=Lt.tokens;if(Lt.numArgs){var Yr=this.consumeArgs(Lt.numArgs);ir=ir.slice();for(var hn=ir.length-1;hn>=0;--hn){var In=ir[hn];if(In.text==="#"){if(hn===0)throw new u("Incomplete placeholder at end of macro body",In);if(In=ir[--hn],In.text==="#")ir.splice(hn+1,1);else if(/^[1-9]$/.test(In.text)){var si;(si=ir).splice.apply(si,[hn,2].concat(Yr[+In.text-1]))}else throw new u("Not a valid argument number",In)}}}return this.pushTokens(ir),ir},ce.expandAfterFuture=function(){return this.expandOnce(),this.future()},ce.expandNextToken=function(){for(;;){var Le=this.expandOnce();if(Le instanceof f)if(Le.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ce.expandMacro=function(Le){if(!this.macros.get(Le))return;var Qe=[],Lt=this.stack.length;for(this.pushToken(new f(Le));this.stack.length>Lt;){var ir=this.expandOnce();ir instanceof f&&Qe.push(this.stack.pop())}return Qe},ce.expandMacroAsText=function(Le){var Qe=this.expandMacro(Le);return Qe&&Qe.map(function(Lt){return Lt.text}).join("")},ce._getExpansion=function(Le){var Qe=this.macros.get(Le);if(Qe==null)return Qe;var Lt=typeof Qe=="function"?Qe(this):Qe;if(typeof Lt=="string"){var ir=0;if(Lt.indexOf("#")!==-1)for(var Yr=Lt.replace(/##/g,"");Yr.indexOf("#"+(ir+1))!==-1;)++ir;for(var hn=new zo(Lt,this.settings),In=[],si=hn.lex();si.text!=="EOF";)In.push(si),si=hn.lex();In.reverse();var wi={tokens:In,numArgs:ir};return wi}return Lt},ce.isDefined=function(Le){return this.macros.has(Le)||as.hasOwnProperty(Le)||Ge.math.hasOwnProperty(Le)||Ge.text.hasOwnProperty(Le)||Qs.hasOwnProperty(Le)},It}(),xs={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Us={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},al=function(){function It(Se,Le){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new tl(Se,Le,this.mode),this.settings=Le,this.leftrightDepth=0}var ce=It.prototype;return ce.expect=function(Le,Qe){if(Qe===void 0&&(Qe=!0),this.fetch().text!==Le)throw new u("Expected '"+Le+"', got '"+this.fetch().text+"'",this.fetch());Qe&&this.consume()},ce.consume=function(){this.nextToken=null},ce.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ce.switchMode=function(Le){this.mode=Le,this.gullet.switchMode(Le)},ce.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Le=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Le},ce.parseExpression=function(Le,Qe){for(var Lt=[];;){this.mode==="math"&&this.consumeSpaces();var ir=this.fetch();if(It.endOfExpression.indexOf(ir.text)!==-1)break;if(Qe&&ir.text===Qe)break;if(Le&&as[ir.text]&&as[ir.text].infix)break;var Yr=this.parseAtom(Qe);if(!Yr)break;Lt.push(Yr)}return this.mode==="text"&&this.formLigatures(Lt),this.handleInfixNodes(Lt)},ce.handleInfixNodes=function(Le){for(var Qe=-1,Lt,ir=0;ir<Le.length;ir++){var Yr=bn(Le[ir],"infix");if(Yr){if(Qe!==-1)throw new u("only one infix operator per group",Yr.token);Qe=ir,Lt=Yr.replaceWith}}if(Qe!==-1&&Lt){var hn,In,si=Le.slice(0,Qe),wi=Le.slice(Qe+1);si.length===1&&si[0].type==="ordgroup"?hn=si[0]:hn={type:"ordgroup",mode:this.mode,body:si},wi.length===1&&wi[0].type==="ordgroup"?In=wi[0]:In={type:"ordgroup",mode:this.mode,body:wi};var gi;return Lt==="\\\\abovefrac"?gi=this.callFunction(Lt,[hn,Le[Qe],In],[]):gi=this.callFunction(Lt,[hn,In],[]),[gi]}else return Le},ce.handleSupSubscript=function(Le){var Qe=this.fetch(),Lt=Qe.text;this.consume();var ir=this.parseGroup(Le,!1,It.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!ir)throw new u("Expected group after '"+Lt+"'",Qe);return ir},ce.formatUnsupportedCmd=function(Le){for(var Qe=[],Lt=0;Lt<Le.length;Lt++)Qe.push({type:"textord",mode:"text",text:Le[Lt]});var ir={type:"text",mode:this.mode,body:Qe},Yr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[ir]};return Yr},ce.parseAtom=function(Le){var Qe=this.parseGroup("atom",!1,null,Le);if(this.mode==="text")return Qe;for(var Lt,ir;;){this.consumeSpaces();var Yr=this.fetch();if(Yr.text==="\\limits"||Yr.text==="\\nolimits"){var hn=bn(Qe,"op");if(hn){var In=Yr.text==="\\limits";hn.limits=In,hn.alwaysHandleSupSub=!0}else if(hn=bn(Qe,"operatorname"),hn&&hn.alwaysHandleSupSub){var si=Yr.text==="\\limits";hn.limits=si}else throw new u("Limit controls must follow a math operator",Yr);this.consume()}else if(Yr.text==="^"){if(Lt)throw new u("Double superscript",Yr);Lt=this.handleSupSubscript("superscript")}else if(Yr.text==="_"){if(ir)throw new u("Double subscript",Yr);ir=this.handleSupSubscript("subscript")}else if(Yr.text==="'"){if(Lt)throw new u("Double superscript",Yr);var wi={type:"textord",mode:this.mode,text:"\\prime"},gi=[wi];for(this.consume();this.fetch().text==="'";)gi.push(wi),this.consume();this.fetch().text==="^"&&gi.push(this.handleSupSubscript("superscript")),Lt={type:"ordgroup",mode:this.mode,body:gi}}else break}return Lt||ir?{type:"supsub",mode:this.mode,base:Qe,sup:Lt,sub:ir}:Qe},ce.parseFunction=function(Le,Qe,Lt){var ir=this.fetch(),Yr=ir.text,hn=as[Yr];if(!hn)return null;if(this.consume(),Lt!=null&&hn.greediness<=Lt)throw new u("Got function '"+Yr+"' with no arguments"+(Qe?" as "+Qe:""),ir);if(this.mode==="text"&&!hn.allowedInText)throw new u("Can't use function '"+Yr+"' in text mode",ir);if(this.mode==="math"&&hn.allowedInMath===!1)throw new u("Can't use function '"+Yr+"' in math mode",ir);var In=this.parseArguments(Yr,hn),si=In.args,wi=In.optArgs;return this.callFunction(Yr,si,wi,ir,Le)},ce.callFunction=function(Le,Qe,Lt,ir,Yr){var hn={funcName:Le,parser:this,token:ir,breakOnTokenText:Yr},In=as[Le];if(In&&In.handler)return In.handler(hn,Qe,Lt);throw new u("No function handler for "+Le)},ce.parseArguments=function(Le,Qe){var Lt=Qe.numArgs+Qe.numOptionalArgs;if(Lt===0)return{args:[],optArgs:[]};for(var ir=Qe.greediness,Yr=[],hn=[],In=0;In<Lt;In++){var si=Qe.argTypes&&Qe.argTypes[In],wi=In<Qe.numOptionalArgs,gi=In>0&&!wi||In===0&&!wi&&this.mode==="math",Gi=this.parseGroupOfType("argument to '"+Le+"'",si,wi,ir,gi);if(!Gi){if(wi){hn.push(null);continue}throw new u("Expected group after '"+Le+"'",this.fetch())}(wi?hn:Yr).push(Gi)}return{args:Yr,optArgs:hn}},ce.parseGroupOfType=function(Le,Qe,Lt,ir,Yr){switch(Qe){case"color":return Yr&&this.consumeSpaces(),this.parseColorGroup(Lt);case"size":return Yr&&this.consumeSpaces(),this.parseSizeGroup(Lt);case"url":return this.parseUrlGroup(Lt,Yr);case"math":case"text":return this.parseGroup(Le,Lt,ir,void 0,Qe,Yr);case"hbox":{var hn=this.parseGroup(Le,Lt,ir,void 0,"text",Yr);if(!hn)return hn;var In={type:"styling",mode:hn.mode,body:[hn],style:"text"};return In}case"raw":{if(Yr&&this.consumeSpaces(),Lt&&this.fetch().text==="{")return null;var si=this.parseStringGroup("raw",Lt,!0);if(si)return{type:"raw",mode:"text",string:si.text};throw new u("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Le,Lt,ir,void 0,void 0,Yr);default:throw new u("Unknown group type as "+Le,this.fetch())}},ce.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ce.parseStringGroup=function(Le,Qe,Lt){var ir=Qe?"[":"{",Yr=Qe?"]":"}",hn=this.fetch();if(hn.text!==ir){if(Qe)return null;if(Lt&&hn.text!=="EOF"&&/[^{}[\]]/.test(hn.text))return this.consume(),hn}var In=this.mode;this.mode="text",this.expect(ir);for(var si="",wi=this.fetch(),gi=0,Gi=wi,sa;(sa=this.fetch()).text!==Yr||Lt&&gi>0;){switch(sa.text){case"EOF":throw new u("Unexpected end of input in "+Le,wi.range(Gi,si));case ir:gi++;break;case Yr:gi--;break}Gi=sa,si+=Gi.text,this.consume()}return this.expect(Yr),this.mode=In,wi.range(Gi,si)},ce.parseRegexGroup=function(Le,Qe){var Lt=this.mode;this.mode="text";for(var ir=this.fetch(),Yr=ir,hn="",In;(In=this.fetch()).text!=="EOF"&&Le.test(hn+In.text);)Yr=In,hn+=Yr.text,this.consume();if(hn==="")throw new u("Invalid "+Qe+": '"+ir.text+"'",ir);return this.mode=Lt,ir.range(Yr,hn)},ce.parseColorGroup=function(Le){var Qe=this.parseStringGroup("color",Le);if(!Qe)return null;var Lt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Qe.text);if(!Lt)throw new u("Invalid color: '"+Qe.text+"'",Qe);var ir=Lt[0];return/^[0-9a-f]{6}$/i.test(ir)&&(ir="#"+ir),{type:"color-token",mode:this.mode,color:ir}},ce.parseSizeGroup=function(Le){var Qe,Lt=!1;if(!Le&&this.fetch().text!=="{"?Qe=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Qe=this.parseStringGroup("size",Le),!Qe)return null;!Le&&Qe.text.length===0&&(Qe.text="0pt",Lt=!0);var ir=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Qe.text);if(!ir)throw new u("Invalid size: '"+Qe.text+"'",Qe);var Yr={number:+(ir[1]+ir[2]),unit:ir[3]};if(!jr(Yr))throw new u("Invalid unit: '"+Yr.unit+"'",Qe);return{type:"size",mode:this.mode,value:Yr,isBlank:Lt}},ce.parseUrlGroup=function(Le,Qe){this.gullet.lexer.setCatcode("%",13);var Lt=this.parseStringGroup("url",Le,!0);if(this.gullet.lexer.setCatcode("%",14),!Lt)return null;var ir=Lt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:ir}},ce.parseGroup=function(Le,Qe,Lt,ir,Yr,hn){var In=this.mode;Yr&&this.switchMode(Yr),hn&&this.consumeSpaces();var si=this.fetch(),wi=si.text,gi;if(Qe?wi==="[":wi==="{"||wi==="\\begingroup"){this.consume();var Gi=It.endOfGroup[wi];this.gullet.beginGroup();var sa=this.parseExpression(!1,Gi),Ua=this.fetch();this.expect(Gi),this.gullet.endGroup(),gi={type:"ordgroup",mode:this.mode,loc:m.range(si,Ua),body:sa,semisimple:wi==="\\begingroup"||void 0}}else if(Qe)gi=null;else if(gi=this.parseFunction(ir,Le,Lt)||this.parseSymbol(),gi==null&&wi[0]==="\\"&&!Qs.hasOwnProperty(wi)){if(this.settings.throwOnError)throw new u("Undefined control sequence: "+wi,si);gi=this.formatUnsupportedCmd(wi),this.consume()}return Yr&&this.switchMode(In),gi},ce.formLigatures=function(Le){for(var Qe=Le.length-1,Lt=0;Lt<Qe;++Lt){var ir=Le[Lt],Yr=ir.text;Yr==="-"&&Le[Lt+1].text==="-"&&(Lt+1<Qe&&Le[Lt+2].text==="-"?(Le.splice(Lt,3,{type:"textord",mode:"text",loc:m.range(ir,Le[Lt+2]),text:"---"}),Qe-=2):(Le.splice(Lt,2,{type:"textord",mode:"text",loc:m.range(ir,Le[Lt+1]),text:"--"}),Qe-=1)),(Yr==="'"||Yr==="`")&&Le[Lt+1].text===Yr&&(Le.splice(Lt,2,{type:"textord",mode:"text",loc:m.range(ir,Le[Lt+1]),text:Yr+Yr}),Qe-=1)}},ce.parseSymbol=function(){var Le=this.fetch(),Qe=Le.text;if(/^\\verb[^a-zA-Z]/.test(Qe)){this.consume();var Lt=Qe.slice(5),ir=Lt.charAt(0)==="*";if(ir&&(Lt=Lt.slice(1)),Lt.length<2||Lt.charAt(0)!==Lt.slice(-1))throw new u(`\\verb assertion failed --
please report what input caused this bug`);return Lt=Lt.slice(1,-1),{type:"verb",mode:"text",body:Lt,star:ir}}Us.hasOwnProperty(Qe[0])&&!Ge[this.mode][Qe[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Qe[0]+'" used in math mode',Le),Qe=Us[Qe[0]]+Qe.substr(1));var Yr=il.exec(Qe);Yr&&(Qe=Qe.substring(0,Yr.index),Qe==="i"?Qe="\u0131":Qe==="j"&&(Qe="\u0237"));var hn;if(Ge[this.mode][Qe]){this.settings.strict&&this.mode==="math"&&Vt.indexOf(Qe)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Qe[0]+'" used in math mode',Le);var In=Ge[this.mode][Qe].group,si=m.range(Le),wi;if(Gt.hasOwnProperty(In)){var gi=In;wi={type:"atom",mode:this.mode,family:gi,loc:si,text:Qe}}else wi={type:In,mode:this.mode,loc:si,text:Qe};hn=wi}else if(Qe.charCodeAt(0)>=128)this.settings.strict&&(re(Qe.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Qe[0]+'" used in math mode',Le):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Qe[0]+'"'+(" ("+Qe.charCodeAt(0)+")"),Le)),hn={type:"textord",mode:"text",loc:m.range(Le),text:Qe};else return null;if(this.consume(),Yr)for(var Gi=0;Gi<Yr[0].length;Gi++){var sa=Yr[0][Gi];if(!xs[sa])throw new u("Unknown accent ' "+sa+"'",Le);var Ua=xs[sa][this.mode];if(!Ua)throw new u("Accent "+sa+" unsupported in "+this.mode+" mode",Le);hn={type:"accent",mode:this.mode,loc:m.range(Le),label:Ua,isStretchy:!1,isShifty:!0,base:hn}}return hn},It}();al.endOfExpression=["}","\\endgroup","\\end","\\right","&"],al.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},al.SUPSUB_GREEDINESS=1;var Js=function(ce,Se){if(!(typeof ce=="string"||ce instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Le=new al(ce,Se);delete Le.gullet.macros.current["\\df@tag"];var Qe=Le.parse();if(Le.gullet.macros.get("\\df@tag")){if(!Se.displayMode)throw new u("\\tag works only in display equations");Le.gullet.feed("\\df@tag"),Qe=[{type:"tag",mode:"text",body:Qe,tag:Le.parse()}]}return Qe},Vo=Js,No=function(ce,Se,Le){Se.textContent="";var Qe=Ft(ce,Le).toNode();Se.appendChild(Qe)};typeof document!="undefined"&&(document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),No=function(){throw new u("KaTeX doesn't work in quirks mode.")}));var fs=function(ce,Se){var Le=Ft(ce,Se).toMarkup();return Le},Ds=function(ce,Se){var Le=new b(Se);return Vo(ce,Le)},go=function(ce,Se,Le){if(Le.throwOnError||!(ce instanceof u))throw ce;var Qe=kr.makeSpan(["katex-error"],[new Ne(Se)]);return Qe.setAttribute("title",ce.toString()),Qe.setAttribute("style","color:"+Le.errorColor),Qe},Ft=function(ce,Se){var Le=new b(Se);try{var Qe=Vo(ce,Le);return Dr(Qe,ce,Le)}catch(Lt){return go(Lt,ce,Le)}},nr=function(ce,Se){var Le=new b(Se);try{var Qe=Vo(ce,Le);return Vr(Qe,ce,Le)}catch(Lt){return go(Lt,ce,Le)}},On={version:"0.11.1",render:No,renderToString:fs,ParseError:u,__parse:Ds,__renderToDomTree:Ft,__renderToHTMLTree:nr,__setFontMetrics:or,__defineSymbol:pe,__defineMacro:An,__domTree:{Span:Y,Anchor:q,SymbolNode:Ne,SvgNode:je,PathNode:me,LineNode:Ce}},di=p.default=On}]).default})},P2fV:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("Q9mQ"),A=n("+L6B"),m=n("sE09"),f=n.n(m)},P2ho:function(k,D,n){"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,n){var y=n("hydK"),p=y.createElement,x=n("IMiH"),A=n("mFDi"),m=n("Fofx"),f=n("6GrX"),h=n("pzxd"),u=n("dqUG"),a=x.CMD,i=Array.prototype.join,t="none",o=Math.round,e=Math.sin,l=Math.cos,r=Math.PI,s=Math.PI*2,c=180/r,d=1e-4;function g(Q){return o(Q*1e4)/1e4}function v(Q){return Q<d&&Q>-d}function b(Q,G){var re=G?Q.textFill:Q.fill;return re!=null&&re!==t}function S(Q,G){var re=G?Q.textStroke:Q.stroke;return re!=null&&re!==t}function E(Q,G){G&&C(Q,"transform","matrix("+i.call(G,",")+")")}function C(Q,G,re){(!re||re.type!=="linear"&&re.type!=="radial")&&Q.setAttribute(G,re)}function _(Q,G,re){Q.setAttributeNS("http://www.w3.org/1999/xlink",G,re)}function T(Q,G,re,ee){if(b(G,re)){var ue=re?G.textFill:G.fill;ue=ue==="transparent"?t:ue,C(Q,"fill",ue),C(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else C(Q,"fill",t);if(S(G,re)){var $=re?G.textStroke:G.stroke;$=$==="transparent"?t:$,C(Q,"stroke",$);var be=re?G.textStrokeWidth:G.lineWidth,_e=!re&&G.strokeNoScale?ee.getLineScale():1;C(Q,"stroke-width",be/_e),C(Q,"paint-order",re?"stroke":"fill"),C(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Ee=G.lineDash;Ee?(C(Q,"stroke-dasharray",G.lineDash.join(",")),C(Q,"stroke-dashoffset",o(G.lineDashOffset||0))):C(Q,"stroke-dasharray",""),G.lineCap&&C(Q,"stroke-linecap",G.lineCap),G.lineJoin&&C(Q,"stroke-linejoin",G.lineJoin),G.miterLimit&&C(Q,"stroke-miterlimit",G.miterLimit)}else C(Q,"stroke",t)}function w(Q){for(var G=[],re=Q.data,ee=Q.len(),ue=0;ue<ee;){var $=re[ue++],be="",_e=0;switch($){case a.M:be="M",_e=2;break;case a.L:be="L",_e=2;break;case a.Q:be="Q",_e=4;break;case a.C:be="C",_e=6;break;case a.A:var Ee=re[ue++],Xe=re[ue++],He=re[ue++],nt=re[ue++],Ie=re[ue++],oe=re[ue++],ot=re[ue++],he=re[ue++],J=Math.abs(oe),Y=v(J-s)||(he?oe>=s:-oe>=s),q=oe>0?oe%s:oe%s+s,fe=!1;Y?fe=!0:v(J)?fe=!1:fe=q>=r===!!he;var we=g(Ee+He*l(Ie)),Ne=g(Xe+nt*e(Ie));Y&&(he?oe=s-1e-4:oe=-s+1e-4,fe=!0,ue===9&&G.push("M",we,Ne));var je=g(Ee+He*l(Ie+oe)),me=g(Xe+nt*e(Ie+oe));G.push("A",g(He),g(nt),o(ot*c),+fe,+he,je,me);break;case a.Z:be="Z";break;case a.R:var je=g(re[ue++]),me=g(re[ue++]),Ce=g(re[ue++]),Fe=g(re[ue++]);G.push("M",je,me,"L",je+Ce,me,"L",je+Ce,me+Fe,"L",je,me+Fe,"L",je,me);break}be&&G.push(be);for(var it=0;it<_e;it++)G.push(g(re[ue++]))}return G.join(" ")}var O={};O.brush=function(Q){var G=Q.style,re=Q.__svgEl;re||(re=p("path"),Q.__svgEl=re),Q.path||Q.createPathProxy();var ee=Q.path;if(Q.__dirtyPath){ee.beginPath(),ee.subPixelOptimize=!1,Q.buildPath(ee,Q.shape),Q.__dirtyPath=!1;var ue=w(ee);ue.indexOf("NaN")<0&&C(re,"d",ue)}T(re,G,!1,Q),E(re,Q.transform),G.text!=null?B(Q,Q.getBoundingRect()):V(Q)};var I={};I.brush=function(Q){var G=Q.style,re=G.image;if(re instanceof HTMLImageElement){var ee=re.src;re=ee}if(!re)return;var ue=G.x||0,$=G.y||0,be=G.width,_e=G.height,Ee=Q.__svgEl;Ee||(Ee=p("image"),Q.__svgEl=Ee),re!==Q.__imageSrc&&(_(Ee,"href",re),Q.__imageSrc=re),C(Ee,"width",be),C(Ee,"height",_e),C(Ee,"x",ue),C(Ee,"y",$),E(Ee,Q.transform),G.text!=null?B(Q,Q.getBoundingRect()):V(Q)};var R={},M=new A,F={},P=[],X={left:"start",right:"end",center:"middle",middle:"middle"},B=function(G,re){var ee=G.style,ue=G.transform,$=G instanceof u||ee.transformText;G.__dirty&&h.normalizeTextStyle(ee,!0);var be=ee.text;if(be!=null&&(be+=""),!h.needDrawText(be,ee))return;be==null&&(be=""),!$&&ue&&(M.copy(re),M.applyTransform(ue),re=M);var _e=G.__textSvgEl;_e||(_e=p("text"),G.__textSvgEl=_e);var Ee=_e.style,Xe=ee.font||f.DEFAULT_FONT,He=_e.__computedFont;Xe!==_e.__styleFont&&(Ee.font=_e.__styleFont=Xe,He=_e.__computedFont=Ee.font);var nt=ee.textPadding,Ie=ee.textLineHeight,oe=G.__textCotentBlock;(!oe||G.__dirtyText)&&(oe=G.__textCotentBlock=f.parsePlainText(be,He,nt,Ie,ee.truncate));var ot=oe.outerHeight,he=oe.lineHeight;h.getBoxPosition(F,G,ee,re);var J=F.baseX,Y=F.baseY,q=F.textAlign||"left",fe=F.textVerticalAlign;j(_e,$,ue,ee,re,J,Y);var we=f.adjustTextY(Y,ot,fe),Ne=J,je=we;nt&&(Ne=W(J,q,nt),je+=nt[0]),je+=he/2,T(_e,ee,!0,G);var me=oe.canCacheByTextString,Ce=G.__tspanList||(G.__tspanList=[]),Fe=Ce.length;if(me&&G.__canCacheByTextString&&G.__text===be){if(G.__dirtyText&&Fe)for(var it=0;it<Fe;++it)z(Ce[it],q,Ne,je+it*he)}else{G.__text=be,G.__canCacheByTextString=me;for(var Ct=oe.lines,mt=Ct.length,it=0;it<mt;it++){var Ve=Ce[it],or=Ct[it];Ve?Ve.__zrText!==or&&(Ve.innerHTML="",Ve.appendChild(document.createTextNode(or))):(Ve=Ce[it]=p("tspan"),_e.appendChild(Ve),Ve.appendChild(document.createTextNode(or))),z(Ve,q,Ne,je+it*he)}if(Fe>mt){for(;it<Fe;it++)_e.removeChild(Ce[it]);Ce.length=mt}}};function j(Q,G,re,ee,ue,$,be){m.identity(P),G&&re&&m.copy(P,re);var _e=ee.textRotation;if(ue&&_e){var Ee=ee.textOrigin;Ee==="center"?($=ue.width/2+ue.x,be=ue.height/2+ue.y):Ee&&($=Ee[0]+ue.x,be=Ee[1]+ue.y),P[4]-=$,P[5]-=be,m.rotate(P,P,_e),P[4]+=$,P[5]+=be}E(Q,P)}function W(Q,G,re){return G==="right"?Q-re[1]:G==="center"?Q+re[3]/2-re[1]/2:Q+re[3]}function z(Q,G,re,ee){C(Q,"dominant-baseline","middle"),C(Q,"text-anchor",X[G]),C(Q,"x",re),C(Q,"y",ee)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}R.drawRectText=B,R.brush=function(Q){var G=Q.style;G.text!=null?B(Q,!1):V(Q)},D.path=O,D.image=I,D.text=R},P4Qj:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=void 0;var y=A(n("chpo")),p=n("FxDU"),x=n("24YM");function A(u){return u&&u.__esModule?u:{default:u}}var m={},f=function(a){var i=a.getAttribute(x.SizeSensorId);if(i&&m[i])return m[i];var t=(0,y.default)();a.setAttribute(x.SizeSensorId,t);var o=(0,p.createSensor)(a);return m[t]=o,o};D.getSensor=f;var h=function(a){var i=a.element.getAttribute(x.SizeSensorId);a.element.removeAttribute(x.SizeSensorId),a.destroy(),i&&m[i]&&delete m[i]};D.removeSensor=h},P5Jw:function(k,D,n){"use strict";var y=n("rHrb"),p=y.CopyToClipboard;p.CopyToClipboard=p,k.exports=p},PArb:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("H84U"),i=function(o,e){var l={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(l[r]=o[r]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(o);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(o,r[s])&&(l[r[s]]=o[r[s]]);return l},t=function(e){return m.createElement(a.a,null,function(l){var r,s=l.getPrefixCls,c=l.direction,d=e.prefixCls,g=e.type,v=g===void 0?"horizontal":g,b=e.orientation,S=b===void 0?"center":b,E=e.className,C=e.children,_=e.dashed,T=e.plain,w=i(e,["prefixCls","type","orientation","className","children","dashed","plain"]),O=s("divider",d),I=S.length>0?"-".concat(S):S,R=!!C,M=u()(E,O,"".concat(O,"-").concat(v),(r={},A()(r,"".concat(O,"-with-text"),R),A()(r,"".concat(O,"-with-text").concat(I),R),A()(r,"".concat(O,"-dashed"),!!_),A()(r,"".concat(O,"-plain"),!!T),A()(r,"".concat(O,"-rtl"),c==="rtl"),r));return m.createElement("div",p()({className:M},w,{role:"separator"}),C&&m.createElement("span",{className:"".concat(O,"-inner-text")},C))})};D.a=t},PD8m:function(k,D){k.exports={name:"memoryStorage",read:y,write:p,each:x,remove:A,clearAll:m};var n={};function y(f){return n[f]}function p(f,h){n[f]=h}function x(f){for(var h in n)n.hasOwnProperty(h)&&f(n[h],h)}function A(f){delete n[f]}function m(f){n={}}},PKem:function(k,D,n){"use strict";n.d(D,"a",function(){return b});var y=n("RIqP"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("pVnL"),f=n.n(m),h=n("lwsE"),u=n.n(h),a=n("W8MJ"),i=n.n(a),t=n("7W2i"),o=n.n(t),e=n("LQ03"),l=n.n(e),r=n("q1tI"),s=n.n(r),c=n("TSYQ"),d=n.n(c),g=n("H84U"),v=function(I,R){var M={};for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&R.indexOf(F)<0&&(M[F]=I[F]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,F=Object.getOwnPropertySymbols(I);P<F.length;P++)R.indexOf(F[P])<0&&Object.prototype.propertyIsEnumerable.call(I,F[P])&&(M[F[P]]=I[F[P]]);return M},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function S(I){var R=I.suffixCls,M=I.tagName,F=I.displayName;return function(P){var X;return X=function(B){o()(W,B);var j=l()(W);function W(){var z;return u()(this,W),z=j.apply(this,arguments),z.renderComponent=function(V){var Q=V.getPrefixCls,G=z.props.prefixCls,re=Q(R,G);return r.createElement(P,f()({prefixCls:re,tagName:M},z.props))},z}return i()(W,[{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),W}(r.Component),X.displayName=F,X}}var E=function(R){var M=R.prefixCls,F=R.className,P=R.children,X=R.tagName,B=v(R,["prefixCls","className","children","tagName"]),j=d()(M,F);return r.createElement(X,f()({className:j},B),P)},C=function(I){o()(M,I);var R=l()(M);function M(){var F;return u()(this,M),F=R.apply(this,arguments),F.state={siders:[]},F.renderComponent=function(P){var X,B=P.direction,j=F.props,W=j.prefixCls,z=j.className,V=j.children,Q=j.hasSider,G=j.tagName,re=v(j,["prefixCls","className","children","hasSider","tagName"]),ee=d()(W,(X={},A()(X,"".concat(W,"-has-sider"),typeof Q=="boolean"?Q:F.state.siders.length>0),A()(X,"".concat(W,"-rtl"),B==="rtl"),X),z);return r.createElement(b.Provider,{value:{siderHook:F.getSiderHook()}},r.createElement(G,f()({className:ee},re),V))},F}return i()(M,[{key:"getSiderHook",value:function(){var P=this;return{addSider:function(B){P.setState(function(j){return{siders:[].concat(p()(j.siders),[B])}})},removeSider:function(B){P.setState(function(j){return{siders:j.siders.filter(function(W){return W!==B})}})}}}},{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),M}(r.Component),_=S({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),T=S({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),w=S({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),O=S({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=T,_.Footer=w,_.Content=O,D.b=_},PNag:function(k,D,n){var y=n("bYtY"),p=n("SKnc"),x=n("YH21"),A=n("crZl"),m=n("IwbS"),f=n("OELB"),h=n("72pK"),u=n("y7Aq"),a=n("4NO4"),i=f.linearMap,t=y.each,o=Math.min,e=Math.max,l=12,r=6,s=A.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(C,_,T,w){(!w||w.type!=="selectDataRange"||w.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var C=this.visualMapModel,_=this.group;this._orient=C.get("orient"),this._useHandle=C.get("calculable"),this._resetInterval(),this._renderBar(_);var T=C.get("text");this._renderEndsText(_,T,0),this._renderEndsText(_,T,1),this._updateView(!0),this.renderBackground(_),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(_)},_renderEndsText:function(C,_,T){if(!_)return;var w=_[1-T];w=w!=null?w+"":"";var O=this.visualMapModel,I=O.get("textGap"),R=O.itemSize,M=this._shapes.barGroup,F=this._applyTransform([R[0]/2,T===0?-I:R[1]+I],M),P=this._applyTransform(T===0?"bottom":"top",M),X=this._orient,B=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:F[0],y:F[1],textVerticalAlign:X==="horizontal"?"middle":P,textAlign:X==="horizontal"?P:"center",text:w,textFont:B.getFont(),textFill:B.getTextColor()}}))},_renderBar:function(C){var _=this.visualMapModel,T=this._shapes,w=_.itemSize,O=this._orient,I=this._useHandle,R=u.getItemAlign(_,this.api,w),M=T.barGroup=this._createBarGroup(R);M.add(T.outOfRange=c()),M.add(T.inRange=c(null,I?S(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var F=_.textStyleModel.getTextRect("\u56FD"),P=e(F.width,F.height);I&&(T.handleThumbs=[],T.handleLabels=[],T.handleLabelPoints=[],this._createHandle(M,0,w,P,O,R),this._createHandle(M,1,w,P,O,R)),this._createIndicator(M,w,P,O),C.add(M)},_createHandle:function(C,_,T,w,O){var I=y.bind(this._dragHandle,this,_,!1),R=y.bind(this._dragHandle,this,_,!0),M=c(d(_,w),S(this._orient),I,R);M.position[0]=T[0],C.add(M);var F=this.visualMapModel.textStyleModel,P=new m.Text({draggable:!0,drift:I,onmousemove:function(j){x.stop(j.event)},ondragend:R,style:{x:0,y:0,text:"",textFont:F.getFont(),textFill:F.getTextColor()}});this.group.add(P);var X=[O==="horizontal"?w/2:w*1.5,O==="horizontal"?_===0?-(w*1.5):w*1.5:_===0?-w/2:w/2],B=this._shapes;B.handleThumbs[_]=M,B.handleLabelPoints[_]=X,B.handleLabels[_]=P},_createIndicator:function(C,_,T,w){var O=c([[0,0]],"move");O.position[0]=_[0],O.attr({invisible:!0,silent:!0}),C.add(O);var I=this.visualMapModel.textStyleModel,R=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(R);var M=[w==="horizontal"?T/2:r+3,0],F=this._shapes;F.indicator=O,F.indicatorLabel=R,F.indicatorLabelPoint=M},_dragHandle:function(C,_,T,w){if(!this._useHandle)return;if(this._dragging=!_,!_){var O=this._applyTransform([T,w],this._shapes.barGroup,!0);this._updateInterval(C,O[1]),this._updateView()}_===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),_?!this._hovering&&this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[C],!1)},_resetInterval:function(){var C=this.visualMapModel,_=this._dataInterval=C.getSelected(),T=C.getExtent(),w=[0,C.itemSize[1]];this._handleEnds=[i(_[0],T,w,!0),i(_[1],T,w,!0)]},_updateInterval:function(C,_){_=_||0;var T=this.visualMapModel,w=this._handleEnds,O=[0,T.itemSize[1]];h(_,w,O,C,0);var I=T.getExtent();this._dataInterval=[i(w[0],O,I,!0),i(w[1],O,I,!0)]},_updateView:function(C){var _=this.visualMapModel,T=_.getExtent(),w=this._shapes,O=[0,_.itemSize[1]],I=C?O:this._handleEnds,R=this._createBarVisual(this._dataInterval,T,I,"inRange"),M=this._createBarVisual(T,T,O,"outOfRange");w.inRange.setStyle({fill:R.barColor,opacity:R.opacity}).setShape("points",R.barPoints),w.outOfRange.setStyle({fill:M.barColor,opacity:M.opacity}).setShape("points",M.barPoints),this._updateHandle(I,R)},_createBarVisual:function(C,_,T,w){var O={forceState:w,convertOpacityToAlpha:!0},I=this._makeColorGradient(C,O),R=[this.getControllerVisual(C[0],"symbolSize",O),this.getControllerVisual(C[1],"symbolSize",O)],M=this._createBarPoints(T,R);return{barColor:new p(0,0,0,1,I),barPoints:M,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(C,_){var T=100,w=[],O=(C[1]-C[0])/T;w.push({color:this.getControllerVisual(C[0],"color",_),offset:0});for(var I=1;I<T;I++){var R=C[0]+O*I;if(R>C[1])break;w.push({color:this.getControllerVisual(R,"color",_),offset:I/T})}return w.push({color:this.getControllerVisual(C[1],"color",_),offset:1}),w},_createBarPoints:function(C,_){var T=this.visualMapModel.itemSize;return[[T[0]-_[0],C[0]],[T[0],C[0]],[T[0],C[1]],[T[0]-_[1],C[1]]]},_createBarGroup:function(C){var _=this._orient,T=this.visualMapModel.get("inverse");return new m.Group(_==="horizontal"&&!T?{scale:C==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:_==="horizontal"&&T?{scale:C==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:_==="vertical"&&!T?{scale:C==="left"?[1,-1]:[-1,-1]}:{scale:C==="left"?[1,1]:[-1,1]})},_updateHandle:function(C,_){if(!this._useHandle)return;var T=this._shapes,w=this.visualMapModel,O=T.handleThumbs,I=T.handleLabels;t([0,1],function(R){var M=O[R];M.setStyle("fill",_.handlesColor[R]),M.position[1]=C[R];var F=m.applyTransform(T.handleLabelPoints[R],m.getTransform(M,this.group));I[R].setStyle({x:F[0],y:F[1],text:w.formatValueText(this._dataInterval[R]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?R===0?"bottom":"top":"left",T.barGroup)})},this)},_showIndicator:function(C,_,T,w){var O=this.visualMapModel,I=O.getExtent(),R=O.itemSize,M=[0,R[1]],F=i(C,I,M,!0),P=this._shapes,X=P.indicator;if(!X)return;X.position[1]=F,X.attr("invisible",!1),X.setShape("points",g(!!T,w,F,R[1]));var B={convertOpacityToAlpha:!0},j=this.getControllerVisual(C,"color",B);X.setStyle("fill",j);var W=m.applyTransform(P.indicatorLabelPoint,m.getTransform(X,this.group)),z=P.indicatorLabel;z.attr("invisible",!1);var V=this._applyTransform("left",P.barGroup),Q=this._orient;z.setStyle({text:(T||"")+O.formatValueText(_),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:W[0],y:W[1]})},_enableHoverLinkToSeries:function(){var C=this;this._shapes.barGroup.on("mousemove",function(_){if(C._hovering=!0,!C._dragging){var T=C.visualMapModel.itemSize,w=C._applyTransform([_.offsetX,_.offsetY],C._shapes.barGroup,!0,!0);w[1]=o(e(0,w[1]),T[1]),C._doHoverLinkToSeries(w[1],0<=w[0]&&w[0]<=T[0])}}).on("mouseout",function(){C._hovering=!1,!C._dragging&&C._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var C=this.api.getZr();this.visualMapModel.option.hoverLink?(C.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),C.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(C,_){var T=this.visualMapModel,w=T.itemSize;if(!T.option.hoverLink)return;var O=[0,w[1]],I=T.getExtent();C=o(e(O[0],C),O[1]);var R=v(T,I,O),M=[C-R,C+R],F=i(C,O,I,!0),P=[i(M[0],O,I,!0),i(M[1],O,I,!0)];M[0]<O[0]&&(P[0]=-Infinity),M[1]>O[1]&&(P[1]=Infinity),_&&(P[0]===-Infinity?this._showIndicator(F,P[1],"< ",R):P[1]===Infinity?this._showIndicator(F,P[0],"> ",R):this._showIndicator(F,F,"\u2248 ",R));var X=this._hoverLinkDataIndices,B=[];(_||b(T))&&(B=this._hoverLinkDataIndices=T.findTargetDataIndices(P));var j=a.compressBatches(X,B);this._dispatchHighDown("downplay",u.makeHighDownBatch(j[0],T)),this._dispatchHighDown("highlight",u.makeHighDownBatch(j[1],T))},_hoverLinkFromSeriesMouseOver:function(C){var _=C.target,T=this.visualMapModel;if(!_||_.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!T.isTargetSeries(w))return;var O=w.getData(_.dataType),I=O.get(T.getDataDimension(O),_.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var C=this._shapes;C.indicator&&C.indicator.attr("invisible",!0),C.indicatorLabel&&C.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var C=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(C,this.visualMapModel)),C.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var C=this.api.getZr();C.off("mouseover",this._hoverLinkFromSeriesMouseOver),C.off("mouseout",this._hideIndicator)},_applyTransform:function(C,_,T,w){var O=m.getTransform(_,w?null:this.group);return m[y.isArray(C)?"applyTransform":"transformDirection"](C,O,T)},_dispatchHighDown:function(C,_){_&&_.length&&this.api.dispatchAction({type:C,batch:_})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(C,_,T,w){return new m.Polygon({shape:{points:C},draggable:!!T,cursor:_,drift:T,onmousemove:function(O){x.stop(O.event)},ondragend:w})}function d(C,_){return C===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function g(C,_,T,w){return C?[[0,-o(_,e(T,0))],[r,0],[0,o(_,e(w-T,0))]]:[[0,0],[5,-5],[5,5]]}function v(C,_,T){var w=l/2,O=C.get("hoverLinkDataSize");return O&&(w=i(O,_,T,!0)/2),w}function b(C){var _=C.get("hoverLinkOnHandle");return!!(_==null?C.get("realtime"):_)}function S(C){return C==="vertical"?"ns-resize":"ew-resize"}var E=s;k.exports=E},PQMj:function(k,D,n){},PSzr:function(k,D,n){"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,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.StreamCipher,m=p.algo,f=[],h=[],u=[],a=m.RabbitLegacy=A.extend({_doReset:function(){var o=this._key.words,e=this.cfg.iv,l=this._X=[o[0],o[3]<<16|o[2]>>>16,o[1],o[0]<<16|o[3]>>>16,o[2],o[1]<<16|o[0]>>>16,o[3],o[2]<<16|o[1]>>>16],r=this._C=[o[2]<<16|o[2]>>>16,o[0]&4294901760|o[1]&65535,o[3]<<16|o[3]>>>16,o[1]&4294901760|o[2]&65535,o[0]<<16|o[0]>>>16,o[2]&4294901760|o[3]&65535,o[1]<<16|o[1]>>>16,o[3]&4294901760|o[0]&65535];this._b=0;for(var s=0;s<4;s++)i.call(this);for(var s=0;s<8;s++)r[s]^=l[s+4&7];if(e){var c=e.words,d=c[0],g=c[1],v=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=v>>>16|b&4294901760,E=b<<16|v&65535;r[0]^=v,r[1]^=S,r[2]^=b,r[3]^=E,r[4]^=v,r[5]^=S,r[6]^=b,r[7]^=E;for(var s=0;s<4;s++)i.call(this)}},_doProcessBlock:function(o,e){var l=this._X;i.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,o[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,o=this._C,e=0;e<8;e++)h[e]=o[e];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<h[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<h[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<h[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<h[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<h[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<h[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<h[6]>>>0?1:0)|0,this._b=o[7]>>>0<h[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+o[e],r=l&65535,s=l>>>16,c=((r*r>>>17)+r*s>>>15)+s*s,d=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^d}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=A._createHelper(a)}(),y.RabbitLegacy})},ProS:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("aX58"),A=n("bYtY"),m=n("Qe9p"),f=n("ItGF"),h=n("BPZU"),u=n("H6uX"),a=n("fmMI"),i=n("hD7B"),t=n("IDmD"),o=n("ypgQ"),e=n("+wW9"),l=n("0V0F"),r=n("bLfw"),s=n("T4UG"),c=n("sS/r"),d=n("6Ic6"),g=n("IwbS"),v=n("4NO4"),b=n("iLNv"),S=b.throttle,E=n("/WM3"),C=n("uAnK"),_=n("mYwL"),T=n("af/B"),w=n("xTNl"),O=n("8hn6");n("A1Ka");var I=n("7DRL"),R=A.assert,M=A.each,F=A.isFunction,P=A.isObject,X=r.parseClassType,B="4.8.0",j={zrender:"4.3.1"},W=1,z=1e3,V=800,Q=900,G=5e3,re=1e3,ee=1100,ue=2e3,$=3e3,be=3500,_e=4e3,Ee=5e3,Xe={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:re,PROGRESSIVE_LAYOUT:ee,GLOBAL:ue,CHART:$,POST_CHART_LAYOUT:be,COMPONENT:_e,BRUSH:Ee}},He="__flagInMainProcess",nt="__optionUpdated",Ie=/^[a-zA-Z0-9_]+$/;function oe(Rt,Qt){return function(jr,Nr,Lr){if(!Qt&&this._disposed){hr(this.id);return}jr=jr&&jr.toLowerCase(),u.prototype[Rt].call(this,jr,Nr,Lr)}}function ot(){u.call(this)}ot.prototype.on=oe("on",!0),ot.prototype.off=oe("off",!0),ot.prototype.one=oe("one",!0),A.mixin(ot,u);function he(Rt,Qt,jr){jr=jr||{},typeof Qt=="string"&&(Qt=yt[Qt]),this.id,this.group,this._dom=Rt;var Nr="canvas",Lr=this._zr=x.init(Rt,{renderer:jr.renderer||Nr,devicePixelRatio:jr.devicePixelRatio,width:jr.width,height:jr.height});this._throttledZrFlush=S(A.bind(Lr.flush,Lr),17);var Qt=A.clone(Qt);Qt&&e(Qt,!0),this._theme=Qt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var ln=this._api=Ge(this);function mn(ti,$n){return ti.__prio-$n.__prio}h(er,mn),h(Ze,mn),this._scheduler=new T(this,ln,Ze,er),u.call(this,this._ecEventProcessor=new pe),this._messageCenter=new ot,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],Lr.animation.on("frame",this._onframe,this),Fe(Lr,this),A.setAsPrimitive(this)}var J=he.prototype;J._onframe=function(){if(this._disposed)return;var Rt=this._scheduler;if(this[nt]){var Qt=this[nt].silent;this[He]=!0,fe(this),q.update.call(this),this[He]=!1,this[nt]=!1,me.call(this,Qt),Ce.call(this,Qt)}else if(Rt.unfinished){var jr=W,Nr=this._model,Lr=this._api;Rt.unfinished=!1;do{var ln=+new Date;Rt.performSeriesTasks(Nr),Rt.performDataProcessorTasks(Nr),Ne(this,Nr),Rt.performVisualTasks(Nr),or(this,this._model,Lr,"remain"),jr-=+new Date-ln}while(jr>0&&Rt.unfinished);Rt.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(Rt,Qt,jr){if(this._disposed){hr(this.id);return}var Nr;if(P(Qt)&&(jr=Qt.lazyUpdate,Nr=Qt.silent,Qt=Qt.notMerge),this[He]=!0,!this._model||Qt){var Lr=new o(this._api),ln=this._theme,mn=this._model=new a;mn.scheduler=this._scheduler,mn.init(null,null,ln,Lr)}this._model.setOption(Rt,de),jr?(this[nt]={silent:Nr},this[He]=!1):(fe(this),q.update.call(this),this._zr.flush(),this[nt]=!1,this[He]=!1,me.call(this,Nr),Ce.call(this,Nr))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.getRenderedCanvas=function(Rt){if(!f.canvasSupported)return;Rt=Rt||{},Rt.pixelRatio=Rt.pixelRatio||1,Rt.backgroundColor=Rt.backgroundColor||this._model.get("backgroundColor");var Qt=this._zr;return Qt.painter.getRenderedCanvas(Rt)},J.getSvgDataURL=function(){if(!f.svgSupported)return;var Rt=this._zr,Qt=Rt.storage.getDisplayList();return A.each(Qt,function(jr){jr.stopAnimation(!0)}),Rt.painter.toDataURL()},J.getDataURL=function(Rt){if(this._disposed){hr(this.id);return}Rt=Rt||{};var Qt=Rt.excludeComponents,jr=this._model,Nr=[],Lr=this;M(Qt,function(mn){jr.eachComponent({mainType:mn},function(ti){var $n=Lr._componentsMap[ti.__viewId];$n.group.ignore||(Nr.push($n),$n.group.ignore=!0)})});var ln=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(Rt).toDataURL("image/"+(Rt&&Rt.type||"png"));return M(Nr,function(mn){mn.group.ignore=!1}),ln},J.getConnectedDataURL=function(Rt){if(this._disposed){hr(this.id);return}if(!f.canvasSupported)return;var Qt=Rt.type==="svg",jr=this.group,Nr=Math.min,Lr=Math.max,ln=Infinity;if(Cn[jr]){var mn=ln,ti=ln,$n=-ln,hi=-ln,Ti=[],Ni=Rt&&Rt.pixelRatio||1;A.each(Sr,function(et,$e){if(et.group===jr){var at=Qt?et.getZr().painter.getSvgDom().innerHTML:et.getRenderedCanvas(A.clone(Rt)),wt=et.getDom().getBoundingClientRect();mn=Nr(wt.left,mn),ti=Nr(wt.top,ti),$n=Lr(wt.right,$n),hi=Lr(wt.bottom,hi),Ti.push({dom:at,left:wt.left,top:wt.top})}}),mn*=Ni,ti*=Ni,$n*=Ni,hi*=Ni;var Wi=$n-mn,rt=hi-ti,Re=A.createCanvas(),Ue=x.init(Re,{renderer:Qt?"svg":"canvas"});if(Ue.resize({width:Wi,height:rt}),Qt){var Ye="";return M(Ti,function(et){var $e=et.left-mn,at=et.top-ti;Ye+='<g transform="translate('+$e+","+at+')">'+et.dom+"</g>"}),Ue.painter.getSvgRoot().innerHTML=Ye,Rt.connectedBackgroundColor&&Ue.painter.setBackgroundColor(Rt.connectedBackgroundColor),Ue.refreshImmediately(),Ue.painter.toDataURL()}else return Rt.connectedBackgroundColor&&Ue.add(new g.Rect({shape:{x:0,y:0,width:Wi,height:rt},style:{fill:Rt.connectedBackgroundColor}})),M(Ti,function(et){var $e=new g.Image({style:{x:et.left*Ni-mn,y:et.top*Ni-ti,image:et.dom}});Ue.add($e)}),Ue.refreshImmediately(),Re.toDataURL("image/"+(Rt&&Rt.type||"png"))}else return this.getDataURL(Rt)},J.convertToPixel=A.curry(Y,"convertToPixel"),J.convertFromPixel=A.curry(Y,"convertFromPixel");function Y(Rt,Qt,jr){if(this._disposed){hr(this.id);return}var Nr=this._model,Lr=this._coordSysMgr.getCoordinateSystems(),ln;Qt=v.parseFinder(Nr,Qt);for(var mn=0;mn<Lr.length;mn++){var ti=Lr[mn];if(ti[Rt]&&(ln=ti[Rt](Nr,Qt,jr))!=null)return ln}}J.containPixel=function(Rt,Qt){if(this._disposed){hr(this.id);return}var jr=this._model,Nr;return Rt=v.parseFinder(jr,Rt),A.each(Rt,function(Lr,ln){ln.indexOf("Models")>=0&&A.each(Lr,function(mn){var ti=mn.coordinateSystem;if(ti&&ti.containPoint)Nr|=!!ti.containPoint(Qt);else if(ln==="seriesModels"){var $n=this._chartsMap[mn.__viewId];$n&&$n.containPoint&&(Nr|=$n.containPoint(Qt,mn))}},this)},this),!!Nr},J.getVisual=function(Rt,Qt){var jr=this._model;Rt=v.parseFinder(jr,Rt,{defaultMainType:"series"});var Nr=Rt.seriesModel,Lr=Nr.getData(),ln=Rt.hasOwnProperty("dataIndexInside")?Rt.dataIndexInside:Rt.hasOwnProperty("dataIndex")?Lr.indexOfRawIndex(Rt.dataIndex):null;return ln!=null?Lr.getItemVisual(ln,Qt):Lr.getVisual(Qt)},J.getViewOfComponentModel=function(Rt){return this._componentsMap[Rt.__viewId]},J.getViewOfSeriesModel=function(Rt){return this._chartsMap[Rt.__viewId]};var q={prepareAndUpdate:function(Rt){fe(this),q.update.call(this,Rt)},update:function(Rt){var Qt=this._model,jr=this._api,Nr=this._zr,Lr=this._coordSysMgr,ln=this._scheduler;if(!Qt)return;ln.restoreData(Qt,Rt),ln.performSeriesTasks(Qt),Lr.create(Qt,jr),ln.performDataProcessorTasks(Qt,Rt),Ne(this,Qt),Lr.update(Qt,jr),Ct(Qt),ln.performVisualTasks(Qt,Rt),mt(this,Qt,jr,Rt);var mn=Qt.get("backgroundColor")||"transparent";if(f.canvasSupported)Nr.setBackgroundColor(mn);else{var ti=m.parse(mn);mn=m.stringify(ti,"rgb"),ti[3]===0&&(mn="transparent")}dt(Qt,jr)},updateTransform:function(Rt){var Qt=this._model,jr=this,Nr=this._api;if(!Qt)return;var Lr=[];Qt.eachComponent(function(mn,ti){var $n=jr.getViewOfComponentModel(ti);if($n&&$n.__alive)if($n.updateTransform){var hi=$n.updateTransform(ti,Qt,Nr,Rt);hi&&hi.update&&Lr.push($n)}else Lr.push($n)});var ln=A.createHashMap();Qt.eachSeries(function(mn){var ti=jr._chartsMap[mn.__viewId];if(ti.updateTransform){var $n=ti.updateTransform(mn,Qt,Nr,Rt);$n&&$n.update&&ln.set(mn.uid,1)}else ln.set(mn.uid,1)}),Ct(Qt),this._scheduler.performVisualTasks(Qt,Rt,{setDirty:!0,dirtyMap:ln}),or(jr,Qt,Nr,Rt,ln),dt(Qt,this._api)},updateView:function(Rt){var Qt=this._model;if(!Qt)return;d.markUpdateMethod(Rt,"updateView"),Ct(Qt),this._scheduler.performVisualTasks(Qt,Rt,{setDirty:!0}),mt(this,this._model,this._api,Rt),dt(Qt,this._api)},updateVisual:function(Rt){q.update.call(this,Rt)},updateLayout:function(Rt){q.update.call(this,Rt)}};function fe(Rt){var Qt=Rt._model,jr=Rt._scheduler;jr.restorePipelines(Qt),jr.prepareStageTasks(),it(Rt,"component",Qt,jr),it(Rt,"chart",Qt,jr),jr.plan()}function we(Rt,Qt,jr,Nr,Lr){var ln=Rt._model;if(!Nr){M(Rt._componentsViews.concat(Rt._chartsViews),hi);return}var mn={};mn[Nr+"Id"]=jr[Nr+"Id"],mn[Nr+"Index"]=jr[Nr+"Index"],mn[Nr+"Name"]=jr[Nr+"Name"];var ti={mainType:Nr,query:mn};Lr&&(ti.subType=Lr);var $n=jr.excludeSeriesId;$n!=null&&($n=A.createHashMap(v.normalizeToArray($n))),ln&&ln.eachComponent(ti,function(Ti){(!$n||$n.get(Ti.id)==null)&&hi(Rt[Nr==="series"?"_chartsMap":"_componentsMap"][Ti.__viewId])},Rt);function hi(Ti){Ti&&Ti.__alive&&Ti[Qt]&&Ti[Qt](Ti.__model,ln,Rt._api,jr)}}J.resize=function(Rt){if(this._disposed){hr(this.id);return}this._zr.resize(Rt);var Qt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Qt)return;var jr=Qt.resetOption("media"),Nr=Rt&&Rt.silent;this[He]=!0,jr&&fe(this),q.update.call(this),this[He]=!1,me.call(this,Nr),Ce.call(this,Nr)};function Ne(Rt,Qt){var jr=Rt._chartsMap,Nr=Rt._scheduler;Qt.eachSeries(function(Lr){Nr.updateStreamModes(Lr,jr[Lr.__viewId])})}J.showLoading=function(Rt,Qt){if(this._disposed){hr(this.id);return}if(P(Rt)&&(Qt=Rt,Rt=""),Rt=Rt||"default",this.hideLoading(),!Ar[Rt])return;var jr=Ar[Rt](this._api,Qt),Nr=this._zr;this._loadingFX=jr,Nr.add(jr)},J.hideLoading=function(){if(this._disposed){hr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(Rt){var Qt=A.extend({},Rt);return Qt.type=lt[Rt.type],Qt},J.dispatchAction=function(Rt,Qt){if(this._disposed){hr(this.id);return}if(P(Qt)||(Qt={silent:!!Qt}),!se[Rt.type])return;if(!this._model)return;if(this[He]){this._pendingActions.push(Rt);return}je.call(this,Rt,Qt.silent),Qt.flush?this._zr.flush(!0):Qt.flush!==!1&&f.browser.weChat&&this._throttledZrFlush(),me.call(this,Qt.silent),Ce.call(this,Qt.silent)};function je(Rt,Qt){var jr=Rt.type,Nr=Rt.escapeConnect,Lr=se[jr],ln=Lr.actionInfo,mn=(ln.update||"update").split(":"),ti=mn.pop();mn=mn[0]!=null&&X(mn[0]),this[He]=!0;var $n=[Rt],hi=!1;Rt.batch&&(hi=!0,$n=A.map(Rt.batch,function(rt){return rt=A.defaults(A.extend({},rt),Rt),rt.batch=null,rt}));var Ti=[],Ni,Wi=jr==="highlight"||jr==="downplay";M($n,function(rt){Ni=Lr.action(rt,this._model,this._api),Ni=Ni||A.extend({},rt),Ni.type=ln.event||Ni.type,Ti.push(Ni),Wi?we(this,ti,rt,"series"):mn&&we(this,ti,rt,mn.main,mn.sub)},this),ti!=="none"&&!Wi&&!mn&&(this[nt]?(fe(this),q.update.call(this,Rt),this[nt]=!1):q[ti].call(this,Rt)),hi?Ni={type:ln.event||jr,escapeConnect:Nr,batch:Ti}:Ni=Ti[0],this[He]=!1,!Qt&&this._messageCenter.trigger(Ni.type,Ni)}function me(Rt){for(var Qt=this._pendingActions;Qt.length;){var jr=Qt.shift();je.call(this,jr,Rt)}}function Ce(Rt){!Rt&&this.trigger("updated")}function Fe(Rt,Qt){Rt.on("rendered",function(){Qt.trigger("rendered"),Rt.animation.isFinished()&&!Qt[nt]&&!Qt._scheduler.unfinished&&!Qt._pendingActions.length&&Qt.trigger("finished")})}J.appendData=function(Rt){if(this._disposed){hr(this.id);return}var Qt=Rt.seriesIndex,jr=this.getModel(),Nr=jr.getSeriesByIndex(Qt);Nr.appendData(Rt),this._scheduler.unfinished=!0},J.on=oe("on",!1),J.off=oe("off",!1),J.one=oe("one",!1);function it(Rt,Qt,jr,Nr){for(var Lr=Qt==="component",ln=Lr?Rt._componentsViews:Rt._chartsViews,mn=Lr?Rt._componentsMap:Rt._chartsMap,ti=Rt._zr,$n=Rt._api,hi=0;hi<ln.length;hi++)ln[hi].__alive=!1;Lr?jr.eachComponent(function(Wi,rt){Wi!=="series"&&Ti(rt)}):jr.eachSeries(Ti);function Ti(Wi){var rt="_ec_"+Wi.id+"_"+Wi.type,Re=mn[rt];if(!Re){var Ue=X(Wi.type),Ye=Lr?c.getClass(Ue.main,Ue.sub):d.getClass(Ue.sub);Re=new Ye,Re.init(jr,$n),mn[rt]=Re,ln.push(Re),ti.add(Re.group)}Wi.__viewId=Re.__id=rt,Re.__alive=!0,Re.__model=Wi,Re.group.__ecComponentInfo={mainType:Wi.mainType,index:Wi.componentIndex},!Lr&&Nr.prepareView(Re,Wi,jr,$n)}for(var hi=0;hi<ln.length;){var Ni=ln[hi];Ni.__alive?hi++:(!Lr&&Ni.renderTask.dispose(),ti.remove(Ni.group),Ni.dispose(jr,$n),ln.splice(hi,1),delete mn[Ni.__id],Ni.__id=Ni.group.__ecComponentInfo=null)}}function Ct(Rt){Rt.clearColorPalette(),Rt.eachSeries(function(Qt){Qt.clearColorPalette()})}function mt(Rt,Qt,jr,Nr){Ve(Rt,Qt,jr,Nr),M(Rt._chartsViews,function(Lr){Lr.__alive=!1}),or(Rt,Qt,jr,Nr),M(Rt._chartsViews,function(Lr){Lr.__alive||Lr.remove(Qt,jr)})}function Ve(Rt,Qt,jr,Nr,Lr){M(Lr||Rt._componentsViews,function(ln){var mn=ln.__model;ln.render(mn,Qt,jr,Nr),Xt(mn,ln)})}function or(Rt,Qt,jr,Nr,Lr){var ln=Rt._scheduler,mn;Qt.eachSeries(function(ti){var $n=Rt._chartsMap[ti.__viewId];$n.__alive=!0;var hi=$n.renderTask;ln.updatePayload(hi,Nr),Lr&&Lr.get(ti.uid)&&hi.dirty(),mn|=hi.perform(ln.getPerformArgs(hi)),$n.group.silent=!!ti.get("silent"),Xt(ti,$n),Pt(ti,$n)}),ln.unfinished|=mn,Gt(Rt,Qt),C(Rt._zr.dom,Qt)}function dt(Rt,Qt){M(_t,function(jr){jr(Rt,Qt)})}var Yt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){M(Yt,function(Rt){var Qt=function(jr){var Nr=this.getModel(),Lr=jr.target,ln,mn=Rt==="globalout";if(mn)ln={};else if(Lr&&Lr.dataIndex!=null){var ti=Lr.dataModel||Nr.getSeriesByIndex(Lr.seriesIndex);ln=ti&&ti.getDataParams(Lr.dataIndex,Lr.dataType,Lr)||{}}else Lr&&Lr.eventData&&(ln=A.extend({},Lr.eventData));if(ln){var $n=ln.componentType,hi=ln.componentIndex;($n==="markLine"||$n==="markPoint"||$n==="markArea")&&($n="series",hi=ln.seriesIndex);var Ti=$n&&hi!=null&&Nr.getComponent($n,hi),Ni=Ti&&this[Ti.mainType==="series"?"_chartsMap":"_componentsMap"][Ti.__viewId];ln.event=jr,ln.type=Rt,this._ecEventProcessor.eventInfo={targetEl:Lr,packedEvent:ln,model:Ti,view:Ni},this.trigger(Rt,ln)}};Qt.zrEventfulCallAtLast=!0,this._zr.on(Rt,Qt,this)},this),M(lt,function(Rt,Qt){this._messageCenter.on(Qt,function(jr){this.trigger(Qt,jr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){hr(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){hr(this.id);return}this._disposed=!0,v.setAttribute(this.getDom(),gr,"");var Rt=this._api,Qt=this._model;M(this._componentsViews,function(jr){jr.dispose(Qt,Rt)}),M(this._chartsViews,function(jr){jr.dispose(Qt,Rt)}),this._zr.dispose(),delete Sr[this.id]},A.mixin(he,u);function hr(Rt){}function Gt(Rt,Qt){var jr=Rt._zr,Nr=jr.storage,Lr=0;Nr.traverse(function(ln){Lr++}),Lr>Qt.get("hoverLayerThreshold")&&!f.node&&Qt.eachSeries(function(ln){if(ln.preventUsingHoverLayer)return;var mn=Rt._chartsMap[ln.__viewId];mn.__alive&&mn.group.traverse(function(ti){ti.useHoverLayer=!0})})}function Pt(Rt,Qt){var jr=Rt.get("blendMode")||null;Qt.group.traverse(function(Nr){Nr.isGroup||Nr.style.blend!==jr&&Nr.setStyle("blend",jr),Nr.eachPendingDisplayable&&Nr.eachPendingDisplayable(function(Lr){Lr.setStyle("blend",jr)})})}function Xt(Rt,Qt){var jr=Rt.get("z"),Nr=Rt.get("zlevel");Qt.group.traverse(function(Lr){Lr.type!=="group"&&(jr!=null&&(Lr.z=jr),Nr!=null&&(Lr.zlevel=Nr))})}function Ge(Rt){var Qt=Rt._coordSysMgr;return A.extend(new i(Rt),{getCoordinateSystems:A.bind(Qt.getCoordinateSystems,Qt),getComponentByElement:function(jr){for(;jr;){var Nr=jr.__ecComponentInfo;if(Nr!=null)return Rt._model.getComponent(Nr.mainType,Nr.index);jr=jr.parent}}})}function pe(){this.eventInfo}pe.prototype={constructor:pe,normalizeQuery:function(Rt){var Qt={},jr={},Nr={};if(A.isString(Rt)){var Lr=X(Rt);Qt.mainType=Lr.main||null,Qt.subType=Lr.sub||null}else{var ln=["Index","Name","Id"],mn={name:1,dataIndex:1,dataType:1};A.each(Rt,function(ti,$n){for(var hi=!1,Ti=0;Ti<ln.length;Ti++){var Ni=ln[Ti],Wi=$n.lastIndexOf(Ni);if(Wi>0&&Wi===$n.length-Ni.length){var rt=$n.slice(0,Wi);rt!=="data"&&(Qt.mainType=rt,Qt[Ni.toLowerCase()]=ti,hi=!0)}}mn.hasOwnProperty($n)&&(jr[$n]=ti,hi=!0),hi||(Nr[$n]=ti)})}return{cptQuery:Qt,dataQuery:jr,otherQuery:Nr}},filter:function(Rt,Qt,jr){var Nr=this.eventInfo;if(!Nr)return!0;var Lr=Nr.targetEl,ln=Nr.packedEvent,mn=Nr.model,ti=Nr.view;if(!mn||!ti)return!0;var $n=Qt.cptQuery,hi=Qt.dataQuery;return Ti($n,mn,"mainType")&&Ti($n,mn,"subType")&&Ti($n,mn,"index","componentIndex")&&Ti($n,mn,"name")&&Ti($n,mn,"id")&&Ti(hi,ln,"name")&&Ti(hi,ln,"dataIndex")&&Ti(hi,ln,"dataType")&&(!ti.filterForExposedEvent||ti.filterForExposedEvent(Rt,Qt.otherQuery,Lr,ln));function Ti(Ni,Wi,rt,Re){return Ni[rt]==null||Wi[Re||rt]===Ni[rt]}},afterTrigger:function(){this.eventInfo=null}};var se={},lt={},Ze=[],de=[],_t=[],er=[],yt={},Ar={},Sr={},Cn={},mr=new Date-0,Pr=new Date-0,gr="_echarts_instance_";function Jt(Rt){var Qt=0,jr=1,Nr=2,Lr="__connectUpdateStatus";function ln(mn,ti){for(var $n=0;$n<mn.length;$n++){var hi=mn[$n];hi[Lr]=ti}}M(lt,function(mn,ti){Rt._messageCenter.on(ti,function($n){if(Cn[Rt.group]&&Rt[Lr]!==Qt){if($n&&$n.escapeConnect)return;var hi=Rt.makeActionFromEvent($n),Ti=[];M(Sr,function(Ni){Ni!==Rt&&Ni.group===Rt.group&&Ti.push(Ni)}),ln(Ti,Qt),M(Ti,function(Ni){Ni[Lr]!==jr&&Ni.dispatchAction(hi)}),ln(Ti,Nr)}})})}function Dt(Rt,Qt,jr){var Nr=Xi(Rt);if(Nr)return Nr;var Lr=new he(Rt,Qt,jr);return Lr.id="ec_"+mr++,Sr[Lr.id]=Lr,v.setAttribute(Rt,gr,Lr.id),Jt(Lr),Lr}function dn(Rt){if(A.isArray(Rt)){var Qt=Rt;Rt=null,M(Qt,function(jr){jr.group!=null&&(Rt=jr.group)}),Rt=Rt||"g_"+Pr++,M(Qt,function(jr){jr.group=Rt})}return Cn[Rt]=!0,Rt}function Fn(Rt){Cn[Rt]=!1}var Zn=Fn;function ci(Rt){typeof Rt=="string"?Rt=Sr[Rt]:Rt instanceof he||(Rt=Xi(Rt)),Rt instanceof he&&!Rt.isDisposed()&&Rt.dispose()}function Xi(Rt){return Sr[v.getAttribute(Rt,gr)]}function Gn(Rt){return Sr[Rt]}function ei(Rt,Qt){yt[Rt]=Qt}function Zt(Rt){de.push(Rt)}function Nt(Rt,Qt){Vt(Ze,Rt,Qt,z)}function Me(Rt){_t.push(Rt)}function ke(Rt,Qt,jr){typeof Qt=="function"&&(jr=Qt,Qt="");var Nr=P(Rt)?Rt.type:[Rt,Rt={event:Qt}][0];Rt.event=(Rt.event||Nr).toLowerCase(),Qt=Rt.event,R(Ie.test(Nr)&&Ie.test(Qt)),se[Nr]||(se[Nr]={action:jr,actionInfo:Rt}),lt[Qt]=Nr}function Pe(Rt,Qt){t.register(Rt,Qt)}function tt(Rt){var Qt=t.get(Rt);if(Qt)return Qt.getDimensionsInfo?Qt.getDimensionsInfo():Qt.dimensions.slice()}function vt(Rt,Qt){Vt(er,Rt,Qt,re,"layout")}function St(Rt,Qt){Vt(er,Rt,Qt,$,"visual")}function Vt(Rt,Qt,jr,Nr,Lr){(F(Qt)||P(Qt))&&(jr=Qt,Qt=Nr);var ln=T.wrapStageHandler(jr,Lr);return ln.__prio=Qt,ln.__raw=jr,Rt.push(ln),ln}function Mr(Rt,Qt){Ar[Rt]=Qt}function $r(Rt){return r.extend(Rt)}function vn(Rt){return c.extend(Rt)}function jt(Rt){return s.extend(Rt)}function gt(Rt){return d.extend(Rt)}function pt(Rt){A.$override("createCanvas",Rt)}function ar(Rt,Qt,jr){I.registerMap(Rt,Qt,jr)}function Ht(Rt){var Qt=I.retrieveMap(Rt);return Qt&&Qt[0]&&{geoJson:Qt[0].geoJSON,specialAreas:Qt[0].specialAreas}}St(ue,E),Zt(e),Nt(Q,l),Mr("default",_),ke({type:"highlight",event:"highlight",update:"highlight"},A.noop),ke({type:"downplay",event:"downplay",update:"downplay"},A.noop),ei("light",w),ei("dark",O);var Mt={};D.version=B,D.dependencies=j,D.PRIORITY=Xe,D.init=Dt,D.connect=dn,D.disConnect=Fn,D.disconnect=Zn,D.dispose=ci,D.getInstanceByDom=Xi,D.getInstanceById=Gn,D.registerTheme=ei,D.registerPreprocessor=Zt,D.registerProcessor=Nt,D.registerPostUpdate=Me,D.registerAction=ke,D.registerCoordinateSystem=Pe,D.getCoordinateSystemDimensions=tt,D.registerLayout=vt,D.registerVisual=St,D.registerLoading=Mr,D.extendComponentModel=$r,D.extendComponentView=vn,D.extendSeriesModel=jt,D.extendChartView=gt,D.setCanvasCreator=pt,D.registerMap=ar,D.getMap=Ht,D.dataTool=Mt;var qt=n("txkQ");(function(){for(var Rt in qt)qt.hasOwnProperty(Rt)&&(D[Rt]=qt[Rt])})()},Pw59:function(k,D,n){"use strict";var y=n("q1tI"),p=n.n(y),x=Object(y.createContext)({});D.a=x},Q7if:function(k,D,n){var y=n("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,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("UADf"),A=n.n(x)},"QB+1":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Ywus"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},QBsz:function(k,D){var n=typeof Float32Array=="undefined"?Array:Float32Array;function y(T,w){var O=new n(2);return T==null&&(T=0),w==null&&(w=0),O[0]=T,O[1]=w,O}function p(T,w){return T[0]=w[0],T[1]=w[1],T}function x(T){var w=new n(2);return w[0]=T[0],w[1]=T[1],w}function A(T,w,O){return T[0]=w,T[1]=O,T}function m(T,w,O){return T[0]=w[0]+O[0],T[1]=w[1]+O[1],T}function f(T,w,O,I){return T[0]=w[0]+O[0]*I,T[1]=w[1]+O[1]*I,T}function h(T,w,O){return T[0]=w[0]-O[0],T[1]=w[1]-O[1],T}function u(T){return Math.sqrt(i(T))}var a=u;function i(T){return T[0]*T[0]+T[1]*T[1]}var t=i;function o(T,w,O){return T[0]=w[0]*O[0],T[1]=w[1]*O[1],T}function e(T,w,O){return T[0]=w[0]/O[0],T[1]=w[1]/O[1],T}function l(T,w){return T[0]*w[0]+T[1]*w[1]}function r(T,w,O){return T[0]=w[0]*O,T[1]=w[1]*O,T}function s(T,w){var O=u(w);return O===0?(T[0]=0,T[1]=0):(T[0]=w[0]/O,T[1]=w[1]/O),T}function c(T,w){return Math.sqrt((T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1]))}var d=c;function g(T,w){return(T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1])}var v=g;function b(T,w){return T[0]=-w[0],T[1]=-w[1],T}function S(T,w,O,I){return T[0]=w[0]+I*(O[0]-w[0]),T[1]=w[1]+I*(O[1]-w[1]),T}function E(T,w,O){var I=w[0],R=w[1];return T[0]=O[0]*I+O[2]*R+O[4],T[1]=O[1]*I+O[3]*R+O[5],T}function C(T,w,O){return T[0]=Math.min(w[0],O[0]),T[1]=Math.min(w[1],O[1]),T}function _(T,w,O){return T[0]=Math.max(w[0],O[0]),T[1]=Math.max(w[1],O[1]),T}D.create=y,D.copy=p,D.clone=x,D.set=A,D.add=m,D.scaleAndAdd=f,D.sub=h,D.len=u,D.length=a,D.lenSquare=i,D.lengthSquare=t,D.mul=o,D.div=e,D.dot=l,D.scale=r,D.normalize=s,D.distance=c,D.dist=d,D.distanceSquare=g,D.distSquare=v,D.negate=b,D.lerp=S,D.applyTransform=E,D.min=C,D.max=_},"QO+J":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=x(n("NohK")),p=n("24YM");function x(m){return m&&m.__esModule?m:{default:m}}var A=function(f){var h=void 0,u=[],a=function(){getComputedStyle(f).position==="static"&&(f.style.position="relative");var r=document.createElement("object");return r.onload=function(){r.contentDocument.defaultView.addEventListener("resize",i),i()},r.style.display="block",r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.height="100%",r.style.width="100%",r.style.overflow="hidden",r.style.pointerEvents="none",r.style.zIndex="-1",r.style.opacity="0",r.setAttribute("class",p.SensorClassName),r.setAttribute("tabindex",p.SensorTabIndex),r.type="text/html",f.appendChild(r),r.data="about:blank",r},i=(0,y.default)(function(){u.forEach(function(l){l(f)})}),t=function(r){h||(h=a()),u.indexOf(r)===-1&&u.push(r)},o=function(){h&&h.parentNode&&(h.contentDocument&&h.contentDocument.defaultView.removeEventListener("resize",i),h.parentNode.removeChild(h),h=void 0,u=[])},e=function(r){var s=u.indexOf(r);s!==-1&&u.splice(s,1),u.length===0&&h&&o()};return{element:f,bind:t,destroy:o,unbind:e}};D.createSensor=A},"QQZ/":function(k,D,n){var y=n("Sq3C"),p=n("Z1HP"),x=n("Sxd8"),A=n("dt0z");function m(f,h,u){f=A(f),h=x(h);var a=h?p(f):0;return h&&a<h?y(h-a,u)+f:f}k.exports=m},QUw5:function(k,D,n){var y=n("OlYY"),p=y.extend({type:"dataZoom.select"});k.exports=p},QV2g:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){for(var A,m=[],f=0;f<256;f++){A=f;for(var h=0;h<8;h++)A=A&1?3988292384^A>>>1:A>>>1;m[f]=A}return m}var p=y();function x(A,m,f,h){var u=p,a=h+f;A^=-1;for(var i=h;i<a;i++)A=A>>>8^u[(A^m[i])&255];return A^-1}},QbM5:function(k,D,n){},Qe9p:function(k,D,n){var y=n("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 x(w){return w=Math.round(w),w<0?0:w>255?255:w}function A(w){return w=Math.round(w),w<0?0:w>360?360:w}function m(w){return w<0?0:w>1?1:w}function f(w){return w.length&&w.charAt(w.length-1)==="%"?x(parseFloat(w)/100*255):x(parseInt(w,10))}function h(w){return w.length&&w.charAt(w.length-1)==="%"?m(parseFloat(w)/100):m(parseFloat(w))}function u(w,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?w+(O-w)*I*6:I*2<1?O:I*3<2?w+(O-w)*(2/3-I)*6:w}function a(w,O,I){return w+(O-w)*I}function i(w,O,I,R,M){return w[0]=O,w[1]=I,w[2]=R,w[3]=M,w}function t(w,O){return w[0]=O[0],w[1]=O[1],w[2]=O[2],w[3]=O[3],w}var o=new y(20),e=null;function l(w,O){e&&t(e,O),e=o.put(w,e||O.slice())}function r(w,O){if(!w)return;O=O||[];var I=o.get(w);if(I)return t(O,I);w=w+"";var R=w.replace(/ /g,"").toLowerCase();if(R in p)return t(O,p[R]),l(w,O),O;if(R.charAt(0)==="#"){if(R.length===4){var M=parseInt(R.substr(1),16);if(!(M>=0&&M<=4095)){i(O,0,0,0,1);return}return i(O,(M&3840)>>4|(M&3840)>>8,M&240|(M&240)>>4,M&15|(M&15)<<4,1),l(w,O),O}else if(R.length===7){var M=parseInt(R.substr(1),16);if(!(M>=0&&M<=16777215)){i(O,0,0,0,1);return}return i(O,(M&16711680)>>16,(M&65280)>>8,M&255,1),l(w,O),O}return}var F=R.indexOf("("),P=R.indexOf(")");if(F!==-1&&P+1===R.length){var X=R.substr(0,F),B=R.substr(F+1,P-(F+1)).split(","),j=1;switch(X){case"rgba":if(B.length!==4){i(O,0,0,0,1);return}j=h(B.pop());case"rgb":if(B.length!==3){i(O,0,0,0,1);return}return i(O,f(B[0]),f(B[1]),f(B[2]),j),l(w,O),O;case"hsla":if(B.length!==4){i(O,0,0,0,1);return}return B[3]=h(B[3]),s(B,O),l(w,O),O;case"hsl":if(B.length!==3){i(O,0,0,0,1);return}return s(B,O),l(w,O),O;default:return}}i(O,0,0,0,1);return}function s(w,O){var I=(parseFloat(w[0])%360+360)%360/360,R=h(w[1]),M=h(w[2]),F=M<=.5?M*(R+1):M+R-M*R,P=M*2-F;return O=O||[],i(O,x(u(P,F,I+1/3)*255),x(u(P,F,I)*255),x(u(P,F,I-1/3)*255),1),w.length===4&&(O[3]=w[3]),O}function c(w){if(!w)return;var O=w[0]/255,I=w[1]/255,R=w[2]/255,M=Math.min(O,I,R),F=Math.max(O,I,R),P=F-M,X=(F+M)/2,B,j;if(P===0)B=0,j=0;else{X<.5?j=P/(F+M):j=P/(2-F-M);var W=((F-O)/6+P/2)/P,z=((F-I)/6+P/2)/P,V=((F-R)/6+P/2)/P;O===F?B=V-z:I===F?B=1/3+W-V:R===F&&(B=2/3+z-W),B<0&&(B+=1),B>1&&(B-=1)}var Q=[B*360,j,X];return w[3]!=null&&Q.push(w[3]),Q}function d(w,O){var I=r(w);if(I){for(var R=0;R<3;R++)O<0?I[R]=I[R]*(1-O)|0:I[R]=(255-I[R])*O+I[R]|0,I[R]>255?I[R]=255:w[R]<0&&(I[R]=0);return T(I,I.length===4?"rgba":"rgb")}}function g(w){var O=r(w);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function v(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;I=I||[];var R=w*(O.length-1),M=Math.floor(R),F=Math.ceil(R),P=O[M],X=O[F],B=R-M;return I[0]=x(a(P[0],X[0],B)),I[1]=x(a(P[1],X[1],B)),I[2]=x(a(P[2],X[2],B)),I[3]=m(a(P[3],X[3],B)),I}var b=v;function S(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;var R=w*(O.length-1),M=Math.floor(R),F=Math.ceil(R),P=r(O[M]),X=r(O[F]),B=R-M,j=T([x(a(P[0],X[0],B)),x(a(P[1],X[1],B)),x(a(P[2],X[2],B)),m(a(P[3],X[3],B))],"rgba");return I?{color:j,leftIndex:M,rightIndex:F,value:R}:j}var E=S;function C(w,O,I,R){if(w=r(w),w)return w=c(w),O!=null&&(w[0]=A(O)),I!=null&&(w[1]=h(I)),R!=null&&(w[2]=h(R)),T(s(w),"rgba")}function _(w,O){if(w=r(w),w&&O!=null)return w[3]=m(O),T(w,"rgba")}function T(w,O){if(!w||!w.length)return;var I=w[0]+","+w[1]+","+w[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+w[3]),O+"("+I+")"}D.parse=r,D.lift=d,D.toHex=g,D.fastLerp=v,D.fastMapToColor=b,D.lerp=S,D.mapToColor=E,D.modifyHSL=C,D.modifyAlpha=_,D.stringify=T},Qi1f:function(k,D,n){"use strict";n.d(D,"g",function(){return E}),n.d(D,"c",function(){return C}),n.d(D,"a",function(){return T}),n.d(D,"b",function(){return w}),n.d(D,"d",function(){return O}),n.d(D,"e",function(){return I}),n.d(D,"f",function(){return M});var y=n("VTBJ"),p=n("U8pU"),x=n("AJpP"),A=n("q1tI"),m=n.n(A),f=n("Kwbf"),h=n("MNnm"),u=n("l4aY"),a="data-rc-order",i="rc-util-key",t=new Map;function o(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=F.mark;return P?P.startsWith("data-")?P:"data-".concat(P):i}function e(F){if(F.attachTo)return F.attachTo;var P=document.querySelector("head");return P||document.body}function l(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function r(F){return Array.from((t.get(F)||F).children).filter(function(P){return P.tagName==="STYLE"})}function s(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(h.a)())return null;var X=P.csp,B=P.prepend,j=document.createElement("style");j.setAttribute(a,l(B)),X!=null&&X.nonce&&(j.nonce=X==null?void 0:X.nonce),j.innerHTML=F;var W=e(P),z=W.firstChild;if(B){if(B==="queue"){var V=r(W).filter(function(Q){return["prepend","prependQueue"].includes(Q.getAttribute(a))});if(V.length)return W.insertBefore(j,V[V.length-1].nextSibling),j}W.insertBefore(j,z)}else W.appendChild(j);return j}function c(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=e(P);return r(X).find(function(B){return B.getAttribute(o(P))===F})}function d(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=c(F,P);if(X){var B=e(P);B.removeChild(X)}}function g(F,P){var X=t.get(F);if(!X||!Object(u.a)(document,X)){var B=s("",P),j=B.parentNode;t.set(F,j),F.removeChild(B)}}function v(){t.clear()}function b(F,P){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=e(X);g(B,X);var j=c(P,X);if(j){var W,z;if((W=X.csp)!==null&&W!==void 0&&W.nonce&&j.nonce!==((z=X.csp)===null||z===void 0?void 0:z.nonce)){var V;j.nonce=(V=X.csp)===null||V===void 0?void 0:V.nonce}return j.innerHTML!==F&&(j.innerHTML=F),j}var Q=s(F,X);return Q.setAttribute(o(X),P),Q}var S=n("Pw59");function E(F,P){Object(f.a)(F,"[@ant-design/icons] ".concat(P))}function C(F){return Object(p.a)(F)==="object"&&typeof F.name=="string"&&typeof F.theme=="string"&&(Object(p.a)(F.icon)==="object"||typeof F.icon=="function")}function _(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(F).reduce(function(P,X){var B=F[X];switch(X){case"class":P.className=B,delete P.class;break;default:P[X]=B}return P},{})}function T(F,P,X){return X?m.a.createElement(F.tag,Object(y.a)(Object(y.a)({key:P},_(F.attrs)),X),(F.children||[]).map(function(B,j){return T(B,"".concat(P,"-").concat(F.tag,"-").concat(j))})):m.a.createElement(F.tag,Object(y.a)({key:P},_(F.attrs)),(F.children||[]).map(function(B,j){return T(B,"".concat(P,"-").concat(F.tag,"-").concat(j))}))}function w(F){return Object(x.generate)(F)[0]}function O(F){return F?Array.isArray(F)?F:[F]:[]}var I={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},R=`
.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);
}
}
`,M=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R,X=Object(A.useContext)(S.a),B=X.csp;Object(A.useEffect)(function(){b(P,"@ant-design-icons",{prepend:!0,csp:B})},[])}},QkVE:function(k,D,n){var y=n("EpBk");function p(x,A){var m=x.__data__;return y(A)?m[typeof A=="string"?"string":"hash"]:m.map}k.exports=p},QoRX:function(k,D){function n(y,p){for(var x=-1,A=y==null?0:y.length;++x<A;)if(p(y[x],x,y))return!0;return!1}k.exports=n},QqLw:function(k,D,n){var y=n("tadb"),p=n("ebwN"),x=n("HOxn"),A=n("yGk4"),m=n("Of+w"),f=n("NykK"),h=n("3Fdi"),u="[object Map]",a="[object Object]",i="[object Promise]",t="[object Set]",o="[object WeakMap]",e="[object DataView]",l=h(y),r=h(p),s=h(x),c=h(A),d=h(m),g=f;(y&&g(new y(new ArrayBuffer(1)))!=e||p&&g(new p)!=u||x&&g(x.resolve())!=i||A&&g(new A)!=t||m&&g(new m)!=o)&&(g=function(v){var b=f(v),S=b==a?v.constructor:void 0,E=S?h(S):"";if(E)switch(E){case l:return e;case r:return u;case s:return i;case c:return t;case d:return o}return b}),k.exports=g},Qs3X:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("X+im"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},Qs9O:function(k,D,n){"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 n=function(x){this.colorStops=x||[]};n.prototype={constructor:n,addColorStop:function(x,A){this.colorStops.push({offset:x,color:A})}};var y=n;k.exports=y},Qvb6:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("ItGF"),A=n("B9fm"),m=n("gvm7"),f=n("7aKB"),h=n("OELB"),u=n("IwbS"),a=n("Ez2D"),i=n("+TT/"),t=n("Qxkt"),o=n("F9bG"),e=n("aX7z"),l=n("/y7N"),r=n("4NO4"),s=r.getTooltipRenderMode,c=p.bind,d=p.each,g=h.parsePercent,v=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(O,I){if(x.node)return;var R=O.getComponent("tooltip"),M=R.get("renderMode");this._renderMode=s(M);var F;this._renderMode==="html"?(F=new A(I.getDom(),I,{appendToBody:R.get("appendToBody",!0)}),this._newLine="<br/>"):(F=new m(I),this._newLine=`
`),this._tooltipContent=F},render:function(O,I,R){if(x.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=R,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var M=this._tooltipContent;M.update(),M.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");o.register("itemTooltip",this._api,c(function(R,M,F){I!=="none"&&(I.indexOf(R)>=0?this._tryShow(M,F):R==="leave"&&this._hide(F))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,R=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var M=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!R.isDisposed()&&M.manuallyShowTip(O,I,R,{x:M._lastX,y:M._lastY})})}},manuallyShowTip:function(O,I,R,M){if(M.from===this.uid||x.node)return;var F=E(M,R);this._ticket="";var P=M.dataByCoordSys;if(M.tooltip&&M.x!=null&&M.y!=null){var X=v;X.position=[M.x,M.y],X.update(),X.tooltip=M.tooltip,this._tryShow({offsetX:M.x,offsetY:M.y,target:X},F)}else if(P)this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,dataByCoordSys:M.dataByCoordSys,tooltipOption:M.tooltipOption},F);else if(M.seriesIndex!=null){if(this._manuallyAxisShowTip(O,I,R,M))return;var B=a(M,I),j=B.point[0],W=B.point[1];j!=null&&W!=null&&this._tryShow({offsetX:j,offsetY:W,position:M.position,target:B.el},F)}else M.x!=null&&M.y!=null&&(R.dispatchAction({type:"updateAxisPointer",x:M.x,y:M.y}),this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,target:R.getZr().findHover(M.x,M.y).target},F))},manuallyHideTip:function(O,I,R,M){var F=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&F.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,M.from!==this.uid&&this._hide(E(M,R))},_manuallyAxisShowTip:function(O,I,R,M){var F=M.seriesIndex,P=M.dataIndex,X=I.getComponent("axisPointer").coordSysAxesInfo;if(F==null||P==null||X==null)return;var B=I.getSeriesByIndex(F);if(!B)return;var j=B.getData(),O=S([j.getItemModel(P),B,(B.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(R.dispatchAction({type:"updateAxisPointer",seriesIndex:F,dataIndex:P,position:M.position}),!0)},_tryShow:function(O,I){var R=O.target,M=this._tooltipModel;if(!M)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var F=O.dataByCoordSys;F&&F.length?this._showAxisTooltip(F,O):R&&R.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,R,I)):R&&R.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,R,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var R=O.get("showDelay");I=p.bind(I,this),clearTimeout(this._showTimout),R>0?this._showTimout=setTimeout(I,R):I()},_showAxisTooltip:function(O,I){var R=this._ecModel,M=this._tooltipModel,F=[I.offsetX,I.offsetY],P=[],X=[],B=S([I.tooltipOption,M]),j=this._renderMode,W=this._newLine,z={};d(O,function(Q){d(Q.dataByAxis,function(G){var re=R.getComponent(G.axisDim+"Axis",G.axisIndex),ee=G.value,ue=[];if(!re||ee==null)return;var $=l.getValueLabel(ee,re.axis,R,G.seriesDataIndices,G.valueLabelOpt);p.each(G.seriesDataIndices,function(_e){var Ee=R.getSeriesByIndex(_e.seriesIndex),Xe=_e.dataIndexInside,He=Ee&&Ee.getDataParams(Xe);if(He.axisDim=G.axisDim,He.axisIndex=G.axisIndex,He.axisType=G.axisType,He.axisId=G.axisId,He.axisValue=e.getAxisRawValue(re.axis,ee),He.axisValueLabel=$,He){X.push(He);var nt=Ee.formatTooltip(Xe,!0,null,j),Ie;if(p.isObject(nt)){Ie=nt.html;var oe=nt.markers;p.merge(z,oe)}else Ie=nt;ue.push(Ie)}});var be=$;j!=="html"?P.push(ue.join(W)):P.push((be?f.encodeHTML(be)+W:"")+ue.join(W))})},this),P.reverse(),P=P.join(this._newLine+this._newLine);var V=I.position;this._showOrMove(B,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(B,V,F[0],F[1],this._tooltipContent,X):this._showTooltipContent(B,P,X,Math.random(),F[0],F[1],V,void 0,z)})},_showSeriesItemTooltip:function(O,I,R){var M=this._ecModel,F=I.seriesIndex,P=M.getSeriesByIndex(F),X=I.dataModel||P,B=I.dataIndex,j=I.dataType,W=X.getData(j),z=S([W.getItemModel(B),X,P&&(P.coordinateSystem||{}).model,this._tooltipModel]),V=z.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(B,j),G=X.formatTooltip(B,!1,j,this._renderMode),re,ee;p.isObject(G)?(re=G.html,ee=G.markers):(re=G,ee=null);var ue="item_"+X.name+"_"+B;this._showOrMove(z,function(){this._showTooltipContent(z,re,Q,ue,O.offsetX,O.offsetY,O.position,O.target,ee)}),R({type:"showTip",dataIndexInside:B,dataIndex:W.getRawIndex(B),seriesIndex:F,from:this.uid})},_showComponentItemTooltip:function(O,I,R){var M=I.tooltip;if(typeof M=="string"){var F=M;M={content:F,formatter:F}}var P=new t(M,this._tooltipModel,this._ecModel),X=P.get("content"),B=Math.random();this._showOrMove(P,function(){this._showTooltipContent(P,X,P.get("formatterParams")||{},B,O.offsetX,O.offsetY,O.position,I)}),R({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,R,M,F,P,X,B,j){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var W=this._tooltipContent,z=O.get("formatter");X=X||O.get("position");var V=I;if(z&&typeof z=="string")V=f.formatTpl(z,R,!0);else if(typeof z=="function"){var Q=c(function(G,re){G===this._ticket&&(W.setContent(re,j,O),this._updatePosition(O,X,F,P,W,R,B))},this);this._ticket=M,V=z(R,M,Q)}W.setContent(V,j,O),W.show(O),this._updatePosition(O,X,F,P,W,R,B)},_updatePosition:function(O,I,R,M,F,P,X){var B=this._api.getWidth(),j=this._api.getHeight();I=I||O.get("position");var W=F.getSize(),z=O.get("align"),V=O.get("verticalAlign"),Q=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof I=="function"&&(I=I([R,M],P,F.el,Q,{viewSize:[B,j],contentSize:W.slice()})),p.isArray(I))R=g(I[0],B),M=g(I[1],j);else if(p.isObject(I)){I.width=W[0],I.height=W[1];var G=i.getLayoutRect(I,{width:B,height:j});R=G.x,M=G.y,z=null,V=null}else if(typeof I=="string"&&X){var re=T(I,Q,W);R=re[0],M=re[1]}else{var re=C(R,M,F,B,j,z?null:20,V?null:20);R=re[0],M=re[1]}if(z&&(R-=w(z)?W[0]/2:z==="right"?W[0]:0),V&&(M-=w(V)?W[1]/2:V==="bottom"?W[1]:0),O.get("confine")){var re=_(R,M,F,B,j);R=re[0],M=re[1]}F.moveTo(R,M)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,R=!!I&&I.length===O.length;return R&&d(I,function(M,F){var P=M.dataByAxis||{},X=O[F]||{},B=X.dataByAxis||[];R&=P.length===B.length,R&&d(P,function(j,W){var z=B[W]||{},V=j.seriesDataIndices||[],Q=z.seriesDataIndices||[];R&=j.value===z.value&&j.axisType===z.axisType&&j.axisId===z.axisId&&V.length===Q.length,R&&d(V,function(G,re){var ee=Q[re];R&=G.seriesIndex===ee.seriesIndex&&G.dataIndex===ee.dataIndex})})}),this._lastDataByCoordSys=O,!!R},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(x.node)return;this._tooltipContent.dispose(),o.unregister("itemTooltip",I)}});function S(O){for(var I=O.pop();O.length;){var R=O.pop();R&&(t.isInstance(R)&&(R=R.get("tooltip",!0)),typeof R=="string"&&(R={formatter:R}),I=new t(R,I,I.ecModel))}return I}function E(O,I){return O.dispatchAction||p.bind(I.dispatchAction,I)}function C(O,I,R,M,F,P,X){var B=R.getOuterSize(),j=B.width,W=B.height;return P!=null&&(O+j+P>M?O-=j+P:O+=P),X!=null&&(I+W+X>F?I-=W+X:I+=X),[O,I]}function _(O,I,R,M,F){var P=R.getOuterSize(),X=P.width,B=P.height;return O=Math.min(O+X,M)-X,I=Math.min(I+B,F)-B,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function T(O,I,R){var M=R[0],F=R[1],P=5,X=0,B=0,j=I.width,W=I.height;switch(O){case"inside":X=I.x+j/2-M/2,B=I.y+W/2-F/2;break;case"top":X=I.x+j/2-M/2,B=I.y-F-P;break;case"bottom":X=I.x+j/2-M/2,B=I.y+W+P;break;case"left":X=I.x-M-P,B=I.y+W/2-F/2;break;case"right":X=I.x+j+P,B=I.y+W/2-F/2}return[X,B]}function w(O){return O==="center"||O==="middle"}k.exports=b},Qxkt:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4NO4"),A=x.makeInner,m=n("Yl7c"),f=m.enableClassExtend,h=m.enableClassCheck,u=n("OQFs"),a=n("m9t5"),i=n("/iHx"),t=n("VR9l"),o=y.mixin,e=A();function l(d,g,v){this.parentModel=g,this.ecModel=v,this.option=d}l.prototype={constructor:l,init:null,mergeOption:function(d){y.merge(this.option,d,!0)},get:function(d,g){return d==null?this.option:r(this.option,this.parsePath(d),!g&&s(this,d))},getShallow:function(d,g){var v=this.option,b=v==null?v:v[d],S=!g&&s(this,d);return b==null&&S&&(b=S.getShallow(d)),b},getModel:function(d,g){var v=d==null?this.option:r(this.option,d=this.parsePath(d)),b;return g=g||(b=s(this,d))&&b.getModel(d),new l(v,g,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var d=this.constructor;return new d(y.clone(this.option))},setReadOnly:function(d){},parsePath:function(d){return typeof d=="string"&&(d=d.split(".")),d},customizeGetParent:function(d){e(this).getParent=d},isAnimationEnabled:function(){if(!p.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function r(d,g,v){for(var b=0;b<g.length;b++){if(!g[b])continue;if(d=d&&typeof d=="object"?d[g[b]]:null,d==null)break}return d==null&&v&&(d=v.get(g)),d}function s(d,g){var v=e(d).getParent;return v?v.call(d,g):d.parentModel}f(l),h(l),o(l,u),o(l,a),o(l,i),o(l,t);var c=l;k.exports=c},QyFq:function(k,D,n){"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,n){var y=n("S/Yl"),p=n("IDmD");function x(A,m){var f=[];return A.eachComponent("singleAxis",function(h,u){var a=new y(h,A,m);a.name="single_"+u,a.resize(h,m),h.coordinateSystem=a,f.push(a)}),A.eachSeries(function(h){if(h.get("coordinateSystem")==="singleAxis"){var u=A.queryComponents({mainType:"singleAxis",index:h.get("singleAxisIndex"),id:h.get("singleAxisId")})[0];h.coordinateSystem=u&&u.coordinateSystem}}),f}p.register("single",{create:x,dimensions:y.prototype.dimensions})},R4Th:function(k,D,n){var y=n("ProS"),p=n("9wZj"),x=n("yO87"),A=n("Fofx"),m=n("h8O9"),f=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new p(x)},render:function(h,u,a){var i=h.getData(),t=this._symbolDraw;t.updateData(i),this.group.add(t.group)},updateTransform:function(h,u,a){var i=h.getData();this.group.dirty();var t=m().reset(h);t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(h){var u=h.coordinateSystem;u&&u.getRoamTransform&&(this.group.transform=A.clone(u.getRoamTransform()),this.group.decomposeTransform())},remove:function(h,u){this._symbolDraw&&this._symbolDraw.remove(u)},dispose:function(){}});k.exports=f},R9oj:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("pwpV"),A=n.n(x)},RBEP:function(k,D,n){for(var y=n("ProS"),p=n("VaxA"),x=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],m=0;m<A.length;m++)y.registerAction({type:A[m],update:"updateView"},x);y.registerAction({type:"treemapRootToNode",update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"treemap",query:f},u);function u(a,i){var t=["treemapZoomToNode","treemapRootToNode"],o=p.retrieveTargetInfo(f,t,a);if(o){var e=a.getViewRoot();e&&(f.direction=p.aboveViewRoot(e,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}})},RCxd:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ExclamationCircleOutlined";var h=D.a=p.forwardRef(f)},RDYZ:function(k,D,n){var y=n("dMvE");function p(A){this._target=A.target,this._life=A.life||1e3,this._delay=A.delay||0,this._initialized=!1,this.loop=A.loop==null?!1:A.loop,this.gap=A.gap||0,this.easing=A.easing||"Linear",this.onframe=A.onframe,this.ondestroy=A.ondestroy,this.onrestart=A.onrestart,this._pausedTime=0,this._paused=!1}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 h=(m-this._startTime-this._pausedTime)/this._life;if(h<0)return;h=Math.min(h,1);var u=this.easing,a=typeof u=="string"?y[u]:u,i=typeof a=="function"?a(h):h;return this.fire("frame",i),h===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 x=p;k.exports=x},RELg:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"oldIE-userDataStorage",write:h,read:u,each:a,remove:i,clearAll:t};var x="storejs",A=p.document,m=l(),f=(p.navigator?p.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function h(r,s){if(f)return;var c=e(r);m(function(d){d.setAttribute(c,s),d.save(x)})}function u(r){if(f)return;var s=e(r),c=null;return m(function(d){c=d.getAttribute(s)}),c}function a(r){m(function(s){for(var c=s.XMLDocument.documentElement.attributes,d=c.length-1;d>=0;d--){var g=c[d];r(s.getAttribute(g.name),g.name)}})}function i(r){var s=e(r);m(function(c){c.removeAttribute(s),c.save(x)})}function t(){m(function(r){var s=r.XMLDocument.documentElement.attributes;r.load(x);for(var c=s.length-1;c>=0;c--)r.removeAttribute(s[c].name);r.save(x)})}var o=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(o,"___")}function l(){if(!A||!A.documentElement||!A.documentElement.addBehavior)return null;var r="script",s,c,d;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,d=s.createElement("div")}catch(g){d=A.createElement("div"),s=A.body}return function(g){var v=[].slice.call(arguments,0);v.unshift(d),s.appendChild(d),d.addBehavior("#default#userData"),d.load(x),g.apply(this,v),s.removeChild(d);return}}},RPvy:function(k,D,n){var y=n("ProS"),p=n("VaxA"),x="sunburstRootToNode";y.registerAction({type:x,update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(a,i){var t=p.retrieveTargetInfo(f,[x],a);if(t){var o=a.getViewRoot();o&&(f.direction=p.aboveViewRoot(o,t.node)?"rollUp":"drillDown"),a.resetViewRoot(t.node)}}});var A="sunburstHighlight";y.registerAction({type:A,update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(a,i){var t=p.retrieveTargetInfo(f,[A],a);t&&(f.highlight=t.node)}});var m="sunburstUnhighlight";y.registerAction({type:m,update:"updateView"},function(f,h){h.eachComponent({mainType:"series",subType:"sunburst",query:f},u);function u(a,i){f.unhighlight=!0}})},RSch:function(k,D,n){var y=n("IwbS"),p=n("bYtY");function x(f,h,u){y.Group.call(this),this._createPolyline(f,h,u)}var A=x.prototype;A._createPolyline=function(f,h,u){var a=f.getItemLayout(h),i=new y.Polyline({shape:{points:a}});this.add(i),this._updateCommonStl(f,h,u)},A.updateData=function(f,h,u){var a=f.hostModel,i=this.childAt(0),t={shape:{points:f.getItemLayout(h)}};y.updateProps(i,t,a,h),this._updateCommonStl(f,h,u)},A._updateCommonStl=function(f,h,u){var a=this.childAt(0),i=f.getItemModel(h),t=f.getItemVisual(h,"color"),o=u&&u.lineStyle,e=u&&u.hoverLineStyle;(!u||f.hasItemOption)&&(o=i.getModel("lineStyle").getLineStyle(),e=i.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:t},o)),a.hoverStyle=e,y.setHoverStyle(this)},A.updateLayout=function(f,h){var u=this.childAt(0);u.setShape("points",f.getItemLayout(h))},p.inherits(x,y.Group);var m=x;k.exports=m},RXMa:function(k,D,n){var y=n("y+Vt"),p=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(A,m){var f=m.cx,h=m.cy,u=Math.PI*2;A.moveTo(f+m.r,h),A.arc(f,h,m.r,0,u,!1),A.moveTo(f+m.r0,h),A.arc(f,h,m.r0,0,u,!0)}});k.exports=p},RZPm:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("JgUQ")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FileOutlined";var i=A.forwardRef(a);D.default=i},RlCK:function(k,D,n){var y=n("ProS"),p=n("bYtY");function x(A,m,f){var h={},u=A==="toggleSelected",a;return f.eachComponent("legend",function(i){u&&a!=null?i[a?"select":"unSelect"](m.name):A==="allSelect"||A==="inverseSelect"?i[A]():(i[A](m.name),a=i.isSelected(m.name));var t=i.getData();p.each(t,function(o){var e=o.get("name");if(e===`
`||e==="")return;var l=i.isSelected(e);h.hasOwnProperty(e)?h[e]=h[e]&&l:h[e]=l})}),A==="allSelect"||A==="inverseSelect"?{selected:h}:{name:m.name,selected:h}}y.registerAction("legendToggleSelect","legendselectchanged",p.curry(x,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",p.curry(x,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",p.curry(x,"inverseSelect")),y.registerAction("legendSelect","legendselected",p.curry(x,"select")),y.registerAction("legendUnSelect","legendunselected",p.curry(x,"unSelect"))},RotF:function(k,D,n){k.exports=n("LSTS")},Rx6q:function(k,D){function n(y){var p=y.getRect(),x=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:x.start,end:x.end,weeks:x.weeks,dayCount:x.allDay}},api:{coord:function(A,m){return y.dataToPoint(A,m)}}}}k.exports=n},"S/Yl":function(k,D,n){var y=n("Zvw2"),p=n("aX7z"),x=n("+TT/"),A=x.getLayoutRect,m=n("bYtY"),f=m.each;function h(a,i,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(a,i,t),this.model=a}h.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:h,_init:function(a,i,t){var o=this.dimension,e=new y(o,p.createScaleByModel(a),[0,0],a.get("type"),a.get("position")),l=e.type==="category";e.onBand=l&&a.get("boundaryGap"),e.inverse=a.get("inverse"),e.orient=a.get("orient"),a.axis=e,e.model=a,e.coordinateSystem=this,this._axis=e},update:function(a,i){a.eachSeries(function(t){if(t.coordinateSystem===this){var o=t.getData();f(o.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(o,e)},this),p.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(a,i){this._rect=A({left:a.get("left"),top:a.get("top"),right:a.get("right"),bottom:a.get("bottom"),width:a.get("width"),height:a.get("height")},{width:i.getWidth(),height:i.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var a=this._rect,i=this._axis,t=i.isHorizontal(),o=t?[0,a.width]:[0,a.height],e=i.reverse?1:0;i.setExtent(o[e],o[1-e]),this._updateAxisTransform(i,t?a.x:a.y)},_updateAxisTransform:function(a,i){var t=a.getExtent(),o=t[0]+t[1],e=a.isHorizontal();a.toGlobalCoord=e?function(l){return l+i}:function(l){return o-l+i},a.toLocalCoord=e?function(l){return l-i}:function(l){return o-l+i}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(a){var i=this.getRect(),t=this.getAxis(),o=t.orient;return o==="horizontal"?t.contain(t.toLocalCoord(a[0]))&&a[1]>=i.y&&a[1]<=i.y+i.height:t.contain(t.toLocalCoord(a[1]))&&a[0]>=i.y&&a[0]<=i.y+i.height},pointToData:function(a){var i=this.getAxis();return[i.coordToData(i.toLocalCoord(a[i.orient==="horizontal"?0:1]))]},dataToPoint:function(a){var i=this.getAxis(),t=this.getRect(),o=[],e=i.orient==="horizontal"?0:1;return a instanceof Array&&(a=a[0]),o[e]=i.toGlobalCoord(i.dataToCoord(+a)),o[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,o}};var u=h;k.exports=u},S6kV:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.OFB=function(){var p=y.lib.BlockCipherMode.extend(),x=p.Encryptor=p.extend({processBlock:function(m,f){var h=this._cipher,u=h.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),h.encryptBlock(i,0);for(var t=0;t<u;t++)m[f+t]^=i[t]}});return p.Decryptor=x,p}(),y.mode.OFB})},"SA+Z":function(k,D,n){var y=n("wTVA"),p=n("EbDI"),x=n("ZhPi"),A=n("wkBT");function m(f){return y(f)||p(f)||x(f)||A()}k.exports=m,k.exports.__esModule=!0,k.exports.default=k.exports},"SA4+":function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("IwbS"),m=n("zYTA"),f=n("bYtY");function h(t,o,e){var l=t[1]-t[0];o=f.map(o,function(c){return{interval:[(c.interval[0]-t[0])/l,(c.interval[1]-t[0])/l]}});var r=o.length,s=0;return function(c){for(var d=s;d<r;d++){var g=o[d].interval;if(g[0]<=c&&c<=g[1]){s=d;break}}if(d===r)for(var d=s-1;d>=0;d--){var g=o[d].interval;if(g[0]<=c&&c<=g[1]){s=d;break}}return d>=0&&d<r&&e[d]}}function u(t,o){var e=t[1]-t[0];return o=[(o[0]-t[0])/e,(o[1]-t[0])/e],function(l){return l>=o[0]&&l<=o[1]}}function a(t){var o=t.dimensions;return o[0]==="lng"&&o[1]==="lat"}var i=x.extendChartView({type:"heatmap",render:function(t,o,e){var l;o.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()):a(r)&&this._renderOnGeo(r,t,l,e)},incrementalPrepareRender:function(t,o,e){this.group.removeAll()},incrementalRender:function(t,o,e,l){var r=o.coordinateSystem;r&&this._renderOnCartesianAndCalendar(o,l,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,o,e,l,r){var s=t.coordinateSystem,c,d;if(s.type==="cartesian2d"){var g=s.getAxis("x"),v=s.getAxis("y");c=g.getBandWidth(),d=v.getBandWidth()}for(var b=this.group,S=t.getData(),E="itemStyle",C="emphasis.itemStyle",_="label",T="emphasis.label",w=t.getModel(E).getItemStyle(["color"]),O=t.getModel(C).getItemStyle(),I=t.getModel(_),R=t.getModel(T),M=s.type,F=M==="cartesian2d"?[S.mapDimension("x"),S.mapDimension("y"),S.mapDimension("value")]:[S.mapDimension("time"),S.mapDimension("value")],P=e;P<l;P++){var X;if(M==="cartesian2d"){if(isNaN(S.get(F[2],P)))continue;var B=s.dataToPoint([S.get(F[0],P),S.get(F[1],P)]);X=new A.Rect({shape:{x:Math.floor(Math.round(B[0])-c/2),y:Math.floor(Math.round(B[1])-d/2),width:Math.ceil(c),height:Math.ceil(d)},style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}else{if(isNaN(S.get(F[1],P)))continue;X=new A.Rect({z2:1,shape:s.dataToRect([S.get(F[0],P)]).contentShape,style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}var j=S.getItemModel(P);S.hasItemOption&&(w=j.getModel(E).getItemStyle(["color"]),O=j.getModel(C).getItemStyle(),I=j.getModel(_),R=j.getModel(T));var W=t.getRawValue(P),z="-";W&&W[2]!=null&&(z=W[2]),A.setLabelStyle(w,O,I,R,{labelFetcher:t,labelDataIndex:P,defaultText:z,isRectText:!0}),X.setStyle(w),A.setHoverStyle(X,S.hasItemOption?O:f.extend({},O)),X.incremental=r,r&&(X.useHoverLayer=!0),b.add(X),S.setItemGraphicEl(P,X)}},_renderOnGeo:function(t,o,e,l){var r=e.targetVisuals.inRange,s=e.targetVisuals.outOfRange,c=o.getData(),d=this._hmLayer||this._hmLayer||new m;d.blurSize=o.get("blurSize"),d.pointSize=o.get("pointSize"),d.minOpacity=o.get("minOpacity"),d.maxOpacity=o.get("maxOpacity");var g=t.getViewRect().clone(),v=t.getRoamTransform();g.applyTransform(v);var b=Math.max(g.x,0),S=Math.max(g.y,0),E=Math.min(g.width+g.x,l.getWidth()),C=Math.min(g.height+g.y,l.getHeight()),_=E-b,T=C-S,w=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],O=c.mapArray(w,function(F,P,X){var B=t.dataToPoint([F,P]);return B[0]-=b,B[1]-=S,B.push(X),B}),I=e.getExtent(),R=e.type==="visualMap.continuous"?u(I,e.option.range):h(I,e.getPieceList(),e.option.selected);d.update(O,_,T,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},R);var M=new A.Image({style:{width:_,height:T,x:b,y:S,image:d.canvas},silent:!0});this.group.add(M)},dispose:function(){}});k.exports=i},SA8n:function(k,D,n){var y=n("Sj9i"),p=n("QBsz"),x=n("U/Mo"),A=x.getSymbolSize,m=[],f=[],h=[],u=y.quadraticAt,a=p.distSquare,i=Math.abs;function t(e,l,r){for(var s=e[0],c=e[1],d=e[2],g=Infinity,v,b=r*r,S=.1,E=.1;E<=.9;E+=.1){m[0]=u(s[0],c[0],d[0],E),m[1]=u(s[1],c[1],d[1],E);var C=i(a(m,l)-b);C<g&&(g=C,v=E)}for(var _=0;_<32;_++){var T=v+S;f[0]=u(s[0],c[0],d[0],v),f[1]=u(s[1],c[1],d[1],v),h[0]=u(s[0],c[0],d[0],T),h[1]=u(s[1],c[1],d[1],T);var C=a(f,l)-b;if(i(C)<.01)break;var w=a(h,l)-b;S/=2,C<0?w>=0?v=v+S:v=v-S:w>=0?v=v-S:v=v+S}return v}function o(e,l){var r=[],s=y.quadraticSubdivide,c=[[],[],[]],d=[[],[]],g=[];l/=2,e.eachEdge(function(v,b){var S=v.getLayout(),E=v.getVisual("fromSymbol"),C=v.getVisual("toSymbol");S.__original||(S.__original=[p.clone(S[0]),p.clone(S[1])],S[2]&&S.__original.push(p.clone(S[2])));var _=S.__original;if(S[2]!=null){if(p.copy(c[0],_[0]),p.copy(c[1],_[2]),p.copy(c[2],_[1]),E&&E!=="none"){var T=A(v.node1),w=t(c,_[0],T*l);s(c[0][0],c[1][0],c[2][0],w,r),c[0][0]=r[3],c[1][0]=r[4],s(c[0][1],c[1][1],c[2][1],w,r),c[0][1]=r[3],c[1][1]=r[4]}if(C&&C!=="none"){var T=A(v.node2),w=t(c,_[1],T*l);s(c[0][0],c[1][0],c[2][0],w,r),c[1][0]=r[1],c[2][0]=r[2],s(c[0][1],c[1][1],c[2][1],w,r),c[1][1]=r[1],c[2][1]=r[2]}p.copy(S[0],c[0]),p.copy(S[1],c[2]),p.copy(S[2],c[1])}else{if(p.copy(d[0],_[0]),p.copy(d[1],_[1]),p.sub(g,d[1],d[0]),p.normalize(g,g),E&&E!=="none"){var T=A(v.node1);p.scaleAndAdd(d[0],d[0],g,T*l)}if(C&&C!=="none"){var T=A(v.node2);p.scaleAndAdd(d[1],d[1],g,-T*l)}p.copy(S[0],d[0]),p.copy(S[1],d[1])}})}k.exports=o},SJMd:function(k,D){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var n,y,p,x=!1,A,m;window.PR_SHOULD_USE_CONTINUATION=!0;var f,h;(function(){var u=window,a=["break,continue,do,else,for,if,return,while"],i=[a,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],t=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[t,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],e=[t,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[t,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",s=[t,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],c="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",d=[a,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],g=[a,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[a,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[o,l,e,s,c,d,g,v],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",C="kwd",_="com",T="typ",w="lit",O="pun",I="pln",R="tag",M="dec",F="src",P="atn",X="atv",B="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(he){for(var J=0,Y=!1,q=!1,fe=0,we=he.length;fe<we;++fe){var Ne=he[fe];if(Ne.ignoreCase)q=!0;else if(/[a-z]/i.test(Ne.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Y=!0,q=!1;break}}var je={b:8,t:9,n:10,v:11,f:12,r:13};function me(mt){var Ve=mt.charCodeAt(0);if(Ve!==92)return Ve;var or=mt.charAt(1);return Ve=je[or],Ve||("0"<=or&&or<="7"?parseInt(mt.substring(1),8):or==="u"||or==="x"?parseInt(mt.substring(2),16):mt.charCodeAt(1))}function Ce(mt){if(mt<32)return(mt<16?"\\x0":"\\x")+mt.toString(16);var Ve=String.fromCharCode(mt);return Ve==="\\"||Ve==="-"||Ve==="]"||Ve==="^"?"\\"+Ve:Ve}function Fe(mt){var Ve=mt.substring(1,mt.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),or=[],dt=Ve[0]==="^",Yt=["["];dt&&Yt.push("^");for(var hr=dt?1:0,Gt=Ve.length;hr<Gt;++hr){var Pt=Ve[hr];if(/\\[bdsw]/i.test(Pt))Yt.push(Pt);else{var Xt=me(Pt),Ge;hr+2<Gt&&Ve[hr+1]==="-"?(Ge=me(Ve[hr+2]),hr+=2):Ge=Xt,or.push([Xt,Ge]),Ge<65||Xt>122||(Ge<65||Xt>90||or.push([Math.max(65,Xt)|32,Math.min(Ge,90)|32]),Ge<97||Xt>122||or.push([Math.max(97,Xt)&~32,Math.min(Ge,122)&~32]))}}or.sort(function(Ze,de){return Ze[0]-de[0]||de[1]-Ze[1]});for(var pe=[],se=[],hr=0;hr<or.length;++hr){var lt=or[hr];lt[0]<=se[1]+1?se[1]=Math.max(se[1],lt[1]):pe.push(se=lt)}for(var hr=0;hr<pe.length;++hr){var lt=pe[hr];Yt.push(Ce(lt[0])),lt[1]>lt[0]&&(lt[1]+1>lt[0]&&Yt.push("-"),Yt.push(Ce(lt[1])))}return Yt.push("]"),Yt.join("")}function it(mt){for(var Ve=mt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),or=Ve.length,dt=[],Yt=0,hr=0;Yt<or;++Yt){var Gt=Ve[Yt];if(Gt==="(")++hr;else if(Gt.charAt(0)==="\\"){var Pt=+Gt.substring(1);Pt&&(Pt<=hr?dt[Pt]=-1:Ve[Yt]=Ce(Pt))}}for(var Yt=1;Yt<dt.length;++Yt)dt[Yt]===-1&&(dt[Yt]=++J);for(var Yt=0,hr=0;Yt<or;++Yt){var Gt=Ve[Yt];if(Gt==="(")++hr,dt[hr]||(Ve[Yt]="(?:");else if(Gt.charAt(0)==="\\"){var Pt=+Gt.substring(1);Pt&&Pt<=hr&&(Ve[Yt]="\\"+dt[Pt])}}for(var Yt=0;Yt<or;++Yt)Ve[Yt]==="^"&&Ve[Yt+1]!=="^"&&(Ve[Yt]="");if(mt.ignoreCase&&Y)for(var Yt=0;Yt<or;++Yt){var Gt=Ve[Yt],Xt=Gt.charAt(0);Gt.length>=2&&Xt==="["?Ve[Yt]=Fe(Gt):Xt!=="\\"&&(Ve[Yt]=Gt.replace(/[a-zA-Z]/g,function(se){var lt=se.charCodeAt(0);return"["+String.fromCharCode(lt&~32,lt|32)+"]"}))}return Ve.join("")}for(var Ct=[],fe=0,we=he.length;fe<we;++fe){var Ne=he[fe];if(Ne.global||Ne.multiline)throw new Error(""+Ne);Ct.push("(?:"+it(Ne)+")")}return new RegExp(Ct.join("|"),q?"gi":"g")}function z(he,J){var Y=/(?:^|\s)nocode(?:\s|$)/,q=[],fe=0,we=[],Ne=0;function je(me){var Ce=me.nodeType;if(Ce==1){if(Y.test(me.className))return;for(var Fe=me.firstChild;Fe;Fe=Fe.nextSibling)je(Fe);var it=me.nodeName.toLowerCase();(it==="br"||it==="li")&&(q[Ne]=`
`,we[Ne<<1]=fe++,we[Ne++<<1|1]=me)}else if(Ce==3||Ce==4){var Ct=me.nodeValue;Ct.length&&(J?Ct=Ct.replace(/\r\n?/g,`
`):Ct=Ct.replace(/[ \t\r\n]+/g," "),q[Ne]=Ct,we[Ne<<1]=fe,fe+=Ct.length,we[Ne++<<1|1]=me)}}return je(he),{sourceCode:q.join("").replace(/\n$/,""),spans:we}}function V(he,J,Y,q,fe){if(!Y)return;var we={sourceNode:he,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:J,decorations:null};q(we),fe.push.apply(fe,we.decorations)}var Q=/\S/;function G(he){for(var J=void 0,Y=he.firstChild;Y;Y=Y.nextSibling){var q=Y.nodeType;J=q===1?J?he:Y:q===3&&Q.test(Y.nodeValue)?he:J}return J===he?void 0:J}function re(he,J){var Y={},q;(function(){for(var Ne=he.concat(J),je=[],me={},Ce=0,Fe=Ne.length;Ce<Fe;++Ce){var it=Ne[Ce],Ct=it[3];if(Ct)for(var mt=Ct.length;--mt>=0;)Y[Ct.charAt(mt)]=it;var Ve=it[1],or=""+Ve;me.hasOwnProperty(or)||(je.push(Ve),me[or]=null)}je.push(/[\0-\uffff]/),q=W(je)})();var fe=J.length,we=function Ne(je){for(var me=je.sourceCode,Ce=je.basePos,Fe=je.sourceNode,it=[Ce,I],Ct=0,mt=me.match(q)||[],Ve={},or=0,dt=mt.length;or<dt;++or){var Yt=mt[or],hr=Ve[Yt],Gt=void 0,Pt;if(typeof hr=="string")Pt=!1;else{var Xt=Y[Yt.charAt(0)];if(Xt)Gt=Yt.match(Xt[1]),hr=Xt[0];else{for(var Ge=0;Ge<fe;++Ge)if(Xt=J[Ge],Gt=Yt.match(Xt[1]),Gt){hr=Xt[0];break}Gt||(hr=I)}Pt=hr.length>=5&&hr.substring(0,5)==="lang-",Pt&&!(Gt&&typeof Gt[1]=="string")&&(Pt=!1,hr=F),Pt||(Ve[Yt]=hr)}var pe=Ct;if(Ct+=Yt.length,!Pt)it.push(Ce+pe,hr);else{var se=Gt[1],lt=Yt.indexOf(se),Ze=lt+se.length;Gt[2]&&(Ze=Yt.length-Gt[2].length,lt=Ze-se.length);var de=hr.substring(5);V(Fe,Ce+pe,Yt.substring(0,lt),Ne,it),V(Fe,Ce+pe+lt,se,Xe(de,se),it),V(Fe,Ce+pe+Ze,Yt.substring(Ze),Ne,it)}}je.decorations=it};return we}function ee(he){var J=[],Y=[];he.tripleQuotedStrings?J.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):he.multiLineStrings?J.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),he.verbatimStrings&&Y.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var q=he.hashComments;q&&(he.cStyleComments?(q>1?J.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([_,/^#[^\r\n]*/,null,"#"])),he.cStyleComments&&(Y.push([_,/^\/\/[^\r\n]*/,null]),Y.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=he.regexLiterals;if(fe){var we=fe>1?"":`
\r`,Ne=we?".":"[\\S\\s]",je="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Ne+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Ne+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+j+"("+je+")")])}var me=he.types;me&&Y.push([T,me]);var Ce=(""+he.keywords).replace(/^ | $/g,"");Ce.length&&Y.push([C,new RegExp("^(?:"+Ce.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([I,/^\s+/,null,` \r
\xA0`]);var Fe="^.[^\\s\\w.$@'\"`/\\\\]*";return he.regexLiterals&&(Fe+="(?!s*/)"),Y.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[O,new RegExp(Fe),null]),re(J,Y)}var ue=ee({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function $(he,J,Y){for(var q=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,we=he.ownerDocument,Ne=we.createElement("li");he.firstChild;)Ne.appendChild(he.firstChild);var je=[Ne];function me(Ve){var or=Ve.nodeType;if(or==1&&!q.test(Ve.className))if(Ve.nodeName==="br")Ce(Ve),Ve.parentNode&&Ve.parentNode.removeChild(Ve);else for(var dt=Ve.firstChild;dt;dt=dt.nextSibling)me(dt);else if((or==3||or==4)&&Y){var Yt=Ve.nodeValue,hr=Yt.match(fe);if(hr){var Gt=Yt.substring(0,hr.index);Ve.nodeValue=Gt;var Pt=Yt.substring(hr.index+hr[0].length);if(Pt){var Xt=Ve.parentNode;Xt.insertBefore(we.createTextNode(Pt),Ve.nextSibling)}Ce(Ve),Gt||Ve.parentNode.removeChild(Ve)}}}function Ce(Ve){for(;!Ve.nextSibling;)if(Ve=Ve.parentNode,!Ve)return;function or(hr,Gt){var Pt=Gt?hr.cloneNode(!1):hr,Xt=hr.parentNode;if(Xt){var Ge=or(Xt,1),pe=hr.nextSibling;Ge.appendChild(Pt);for(var se=pe;se;se=pe)pe=se.nextSibling,Ge.appendChild(se)}return Pt}for(var dt=or(Ve.nextSibling,0),Yt;(Yt=dt.parentNode)&&Yt.nodeType===1;)dt=Yt;je.push(dt)}for(var Fe=0;Fe<je.length;++Fe)me(je[Fe]);J===(J|0)&&je[0].setAttribute("value",J);var it=we.createElement("ol");it.className="linenums";for(var Ct=Math.max(0,J-1|0)||0,Fe=0,mt=je.length;Fe<mt;++Fe)Ne=je[Fe],Ne.className="L"+(Fe+Ct)%10,Ne.firstChild||Ne.appendChild(we.createTextNode("\xA0")),it.appendChild(Ne);he.appendChild(it)}function be(he){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var Y=/\n/g,q=he.sourceCode,fe=q.length,we=0,Ne=he.spans,je=Ne.length,me=0,Ce=he.decorations,Fe=Ce.length,it=0;Ce[Fe]=fe;var Ct,mt;for(mt=Ct=0;mt<Fe;)Ce[mt]!==Ce[mt+2]?(Ce[Ct++]=Ce[mt++],Ce[Ct++]=Ce[mt++]):mt+=2;for(Fe=Ct,mt=Ct=0;mt<Fe;){for(var Ve=Ce[mt],or=Ce[mt+1],dt=mt+2;dt+2<=Fe&&Ce[dt+1]===or;)dt+=2;Ce[Ct++]=Ve,Ce[Ct++]=or,mt=dt}Fe=Ce.length=Ct;var Yt=he.sourceNode,hr="";Yt&&(hr=Yt.style.display,Yt.style.display="none");try{for(var Gt=null;me<je;){var Pt=Ne[me],Xt=Ne[me+2]||fe,Ge=Ce[it+2]||fe,dt=Math.min(Xt,Ge),pe=Ne[me+1],se;if(pe.nodeType!==1&&(se=q.substring(we,dt))){J&&(se=se.replace(Y,"\r")),pe.nodeValue=se;var lt=pe.ownerDocument,Ze=lt.createElement("span");Ze.className=Ce[it+1];var de=pe.parentNode;de.replaceChild(Ze,pe),Ze.appendChild(pe),we<Xt&&(Ne[me+1]=pe=lt.createTextNode(q.substring(dt,Xt)),de.insertBefore(pe,Ze.nextSibling))}we=dt,we>=Xt&&(me+=2),we>=Ge&&(it+=2)}}finally{Yt&&(Yt.style.display=hr)}}var _e={};function Ee(he,J){for(var Y=J.length;--Y>=0;){var q=J[Y];_e.hasOwnProperty(q)?u.console&&console.warn("cannot override language handler %s",q):_e[q]=he}}function Xe(he,J){return he&&_e.hasOwnProperty(he)||(he=/^\s*</.test(J)?"default-markup":"default-code"),_e[he]}Ee(ue,["default-code"]),Ee(re([],[[I,/^[^<?]+/],[M,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ee(re([[I,/^[\s]+/,null,` \r
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[R,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[O,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ee(re([],[[X,/^[\s\S]+/]]),["uq.val"]),Ee(ee({keywords:o,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),Ee(ee({keywords:"null,true,false"}),["json"]),Ee(ee({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),Ee(ee({keywords:e,cStyleComments:!0}),["java"]),Ee(ee({keywords:v,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ee(ee({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ee(ee({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ee(ee({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ee(ee({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ee(ee({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ee(re([],[[E,/^[\s\S]+/]]),["regex"]);function He(he){var J=he.langExtension;try{var Y=z(he.sourceNode,he.pre),q=Y.sourceCode;he.sourceCode=q,he.spans=Y.spans,he.basePos=0,Xe(J,q)(he),be(he)}catch(fe){u.console&&console.log(fe&&fe.stack||fe)}}function nt(he,J,Y){var q=Y||!1,fe=J||null,we=document.createElement("div");we.innerHTML="<pre>"+he+"</pre>",we=we.firstChild,q&&$(we,q,!0);var Ne={langExtension:fe,numberLines:q,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return He(Ne),we.innerHTML}function Ie(he,J){var Y=J||document.body,q=Y.ownerDocument||document;function fe(Pt){return Y.getElementsByTagName(Pt)}for(var we=[fe("pre"),fe("code"),fe("xmp")],Ne=[],je=0;je<we.length;++je)for(var me=0,Ce=we[je].length;me<Ce;++me)Ne.push(we[je][me]);we=null;var Fe=Date;Fe.now||(Fe={now:function(){return+new Date}});var it=0,Ct=/\blang(?:uage)?-([\w.]+)(?!\S)/,mt=/\bprettyprint\b/,Ve=/\bprettyprinted\b/,or=/pre|xmp/i,dt=/^code$/i,Yt=/^(?:pre|code|xmp)$/i,hr={};function Gt(){for(var Pt=u.PR_SHOULD_USE_CONTINUATION?Fe.now()+250:Infinity;it<Ne.length&&Fe.now()<Pt;it++){for(var Xt=Ne[it],Ge=hr,pe=Xt;pe=pe.previousSibling;){var se=pe.nodeType,lt=(se===7||se===8)&&pe.nodeValue;if(lt?!/^\??prettify\b/.test(lt):se!==3||/\S/.test(pe.nodeValue))break;if(lt){Ge={},lt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Dt,dn,Fn){Ge[dn]=Fn});break}}var Ze=Xt.className;if((Ge!==hr||mt.test(Ze))&&!Ve.test(Ze)){for(var de=!1,_t=Xt.parentNode;_t;_t=_t.parentNode){var er=_t.tagName;if(Yt.test(er)&&_t.className&&mt.test(_t.className)){de=!0;break}}if(!de){Xt.className+=" prettyprinted";var yt=Ge.lang;if(!yt){yt=Ze.match(Ct);var Ar;!yt&&(Ar=G(Xt))&&dt.test(Ar.tagName)&&(yt=Ar.className.match(Ct)),yt&&(yt=yt[1])}var Sr;if(or.test(Xt.tagName))Sr=1;else{var Cn=Xt.currentStyle,mr=q.defaultView,Pr=Cn?Cn.whiteSpace:mr&&mr.getComputedStyle?mr.getComputedStyle(Xt,null).getPropertyValue("white-space"):0;Sr=Pr&&Pr.substring(0,3)==="pre"}var gr=Ge.linenums;(gr=gr==="true"||+gr)||(gr=Ze.match(/\blinenums\b(?::(\d+))?/),gr=gr?gr[1]&&gr[1].length?+gr[1]:!0:!1),gr&&$(Xt,gr,Sr);var Jt={langExtension:yt,sourceNode:Xt,numberLines:gr,pre:Sr,sourceCode:null,basePos:null,spans:null,decorations:null};He(Jt)}}}it<Ne.length?u.setTimeout(Gt,250):typeof he=="function"&&he()}Gt()}var oe=u.PR={createSimpleLexer:re,registerLangHandler:Ee,sourceDecorator:ee,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:X,PR_COMMENT:_,PR_DECLARATION:M,PR_KEYWORD:C,PR_LITERAL:w,PR_NOCODE:B,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:F,PR_STRING:E,PR_TAG:R,PR_TYPE:T,prettyPrintOne:x?u.prettyPrintOne=nt:f=nt,prettyPrint:h=x?u.prettyPrint=Ie:h=Ie},ot=u.define;typeof ot=="function"&&ot.amd&&ot("google-code-prettify",[],function(){return oe})})()},SKnc:function(k,D,n){var y=n("bYtY"),p=n("QuXc"),x=function(f,h,u,a,i,t){this.x=f==null?0:f,this.y=h==null?0:h,this.x2=u==null?1:u,this.y2=a==null?0:a,this.type="linear",this.global=t||!1,p.call(this,i)};x.prototype={constructor:x},y.inherits(x,p);var A=x;k.exports=A},"SKx+":function(k,D,n){var y=n("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}}}),x=p;k.exports=x},SMc4:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),A=n("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(a,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,A);var h={offset:0};x("x",m,f,h),x("y",m,f,h);var u=m;k.exports=u},SRve:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};D.default=y},SUKs:function(k,D,n){var y=n("LPTA"),p=y.debugMode,x=function(){};p===1&&(x=console.error);var A=x;k.exports=A},SZEN:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.clientToElement=y;function y(p,x,A){var m=A.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,x<m.top?f.y=0:x>=m.bottom?f.y=m.height-1:f.y=x-m.top,f}},Sdc0:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n("rePB"),h=n("ODXe"),u=n("Ff2n"),a=n("TSYQ"),i=n.n(a),t=n("6cGi"),o=n("4IlW"),e=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=w===void 0?"rc-switch":w,I=C.className,R=C.checked,M=C.defaultChecked,F=C.disabled,P=C.loadingIcon,X=C.checkedChildren,B=C.unCheckedChildren,j=C.onClick,W=C.onChange,z=C.onKeyDown,V=Object(u.a)(C,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:R,defaultValue:M}),G=Object(h.a)(Q,2),re=G[0],ee=G[1];function ue(Ee,Xe){var He=re;return F||(He=Ee,ee(He),W==null||W(He,Xe)),He}function $(Ee){Ee.which===o.a.LEFT?ue(!1,Ee):Ee.which===o.a.RIGHT&&ue(!0,Ee),z==null||z(Ee)}function be(Ee){var Xe=ue(!re,Ee);j==null||j(Xe,Ee)}var _e=i()(O,I,(T={},Object(f.a)(T,"".concat(O,"-checked"),re),Object(f.a)(T,"".concat(O,"-disabled"),F),T));return m.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":re,disabled:F,className:_e,ref:_,onKeyDown:$,onClick:be}),P,m.createElement("span",{className:"".concat(O,"-inner")},re?X:B))});e.displayName="Switch";var l=e,r=n("gZBC"),s=n.n(r),c=n("g0mS"),d=n("H84U"),g=n("3Nzz"),v=n("uaoM"),b=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},S=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=C.size,I=C.loading,R=C.className,M=R===void 0?"":R,F=C.disabled,P=b(C,["prefixCls","size","loading","className","disabled"]);Object(v.a)("checked"in P||!("value"in P),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=m.useContext(d.b),B=X.getPrefixCls,j=X.direction,W=m.useContext(g.b),z=B("switch",w),V=m.createElement("div",{className:"".concat(z,"-handle")},I&&m.createElement(s.a,{className:"".concat(z,"-loading-icon")})),Q=i()(M,(T={},A()(T,"".concat(z,"-small"),(O||W)==="small"),A()(T,"".concat(z,"-loading"),I),A()(T,"".concat(z,"-rtl"),j==="rtl"),T));return m.createElement(c.a,{insertExtraNode:!0},m.createElement(l,p()({},P,{prefixCls:z,className:Q,disabled:F||I,ref:_,loadingIcon:V})))});S.__ANT_SWITCH=!0,S.displayName="Switch";var E=D.a=S},SehX:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("2B6p"),A=x.updateCenterAndZoom;y.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(m,f){var h=m.componentType||"series";f.eachComponent({mainType:h,query:m},function(u){var a=u.coordinateSystem;if(a.type!=="geo")return;var i=A(a,m,u.get("scaleLimit"));u.setCenter&&u.setCenter(i.center),u.setZoom&&u.setZoom(i.zoom),h==="series"&&p.each(u.seriesGroup,function(t){t.setCenter(i.center),t.setZoom(i.zoom)})})})},SfRM:function(k,D,n){var y=n("YESw");function p(){this.__data__=y?y(null):{},this.size=0}k.exports=p},SgGq:function(k,D,n){var y=n("bYtY"),p=n("H6uX"),x=n("YH21"),A=n("pP6R");function m(r){this.pointerChecker,this._zr=r,this._opt={};var s=y.bind,c=s(f,this),d=s(h,this),g=s(u,this),v=s(a,this),b=s(i,this);p.call(this),this.setPointerChecker=function(S){this.pointerChecker=S},this.enable=function(S,E){this.disable(),this._opt=y.defaults(y.clone(E)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(r.on("mousedown",c),r.on("mousemove",d),r.on("mouseup",g)),(S===!0||S==="scale"||S==="zoom")&&(r.on("mousewheel",v),r.on("pinch",b))},this.disable=function(){r.off("mousedown",c),r.off("mousemove",d),r.off("mouseup",g),r.off("mousewheel",v),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(x.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 h(r){if(!this._dragging||!e("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||A.isTaken(this._zr,"globalPan"))return;var s=r.offsetX,c=r.offsetY,d=this._x,g=this._y,v=s-d,b=c-g;this._x=s,this._y=c,this._opt.preventDefaultMouseMove&&x.stop(r.event),o(this,"pan","moveOnMouseMove",r,{dx:v,dy:b,oldX:d,oldY:g,newX:s,newY:c})}function u(r){x.isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)}function a(r){var s=e("zoomOnMouseWheel",r,this._opt),c=e("moveOnMouseWheel",r,this._opt),d=r.wheelDelta,g=Math.abs(d),v=r.offsetX,b=r.offsetY;if(d===0||!s&&!c)return;if(s){var S=g>3?1.4:g>1?1.2:1.1,E=d>0?S:1/S;t(this,"zoom","zoomOnMouseWheel",r,{scale:E,originX:v,originY:b})}if(c){var C=Math.abs(d),_=(d>0?1:-1)*(C>3?.4:C>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:_,originX:v,originY:b})}}function i(r){if(A.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,d,g){r.pointerChecker&&r.pointerChecker(d,g.originX,g.originY)&&(x.stop(d.event),o(r,s,c,d,g))}function o(r,s,c,d,g){g.isAvailableBehavior=y.bind(e,null,c,d),r.trigger(s,g)}function e(r,s,c){var d=c[r];return!r||d&&(!y.isString(d)||s.event[d+"Key"])}var l=m;k.exports=l},SgaC:function(k,D,n){"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 h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m),this._subrects=0}return x(m,[{key:"decodeRect",value:function(h,u,a,i,t,o,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var l=t.rQshiftBytes(4);o.fillRect(h,u,a,i,l)}for(;this._subrects>0;){if(t.rQwait("RRE",4+8))return!1;var r=t.rQshiftBytes(4),s=t.rQshift16(),c=t.rQshift16(),d=t.rQshift16(),g=t.rQshift16();o.fillRect(h+s,u+c,d,g,r),this._subrects--}return!0}}]),m}();D.default=A},Sj0X:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("XuBP")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DownOutlined";var i=A.forwardRef(a);D.default=i},Sj9i:function(k,D,n){var y=n("QBsz"),p=y.create,x=y.distSquare,A=Math.pow,m=Math.sqrt,f=1e-8,h=1e-4,u=m(3),a=1/3,i=p(),t=p(),o=p();function e(w){return w>-f&&w<f}function l(w){return w>f||w<-f}function r(w,O,I,R,M){var F=1-M;return F*F*(F*w+3*M*O)+M*M*(M*R+3*F*I)}function s(w,O,I,R,M){var F=1-M;return 3*(((O-w)*F+2*(I-O)*M)*F+(R-I)*M*M)}function c(w,O,I,R,M,F){var P=R+3*(O-I)-w,X=3*(I-O*2+w),B=3*(O-w),j=w-M,W=X*X-3*P*B,z=X*B-9*P*j,V=B*B-3*X*j,Q=0;if(e(W)&&e(z))if(e(X))F[0]=0;else{var G=-B/X;G>=0&&G<=1&&(F[Q++]=G)}else{var re=z*z-4*W*V;if(e(re)){var ee=z/W,G=-X/P+ee,ue=-ee/2;G>=0&&G<=1&&(F[Q++]=G),ue>=0&&ue<=1&&(F[Q++]=ue)}else if(re>0){var $=m(re),be=W*X+1.5*P*(-z+$),_e=W*X+1.5*P*(-z-$);be<0?be=-A(-be,a):be=A(be,a),_e<0?_e=-A(-_e,a):_e=A(_e,a);var G=(-X-(be+_e))/(3*P);G>=0&&G<=1&&(F[Q++]=G)}else{var Ee=(2*W*X-3*P*z)/(2*m(W*W*W)),Xe=Math.acos(Ee)/3,He=m(W),nt=Math.cos(Xe),G=(-X-2*He*nt)/(3*P),ue=(-X+He*(nt+u*Math.sin(Xe)))/(3*P),Ie=(-X+He*(nt-u*Math.sin(Xe)))/(3*P);G>=0&&G<=1&&(F[Q++]=G),ue>=0&&ue<=1&&(F[Q++]=ue),Ie>=0&&Ie<=1&&(F[Q++]=Ie)}}return Q}function d(w,O,I,R,M){var F=6*I-12*O+6*w,P=9*O+3*R-3*w-9*I,X=3*O-3*w,B=0;if(e(P)){if(l(F)){var j=-X/F;j>=0&&j<=1&&(M[B++]=j)}}else{var W=F*F-4*P*X;if(e(W))M[0]=-F/(2*P);else if(W>0){var z=m(W),j=(-F+z)/(2*P),V=(-F-z)/(2*P);j>=0&&j<=1&&(M[B++]=j),V>=0&&V<=1&&(M[B++]=V)}}return B}function g(w,O,I,R,M,F){var P=(O-w)*M+w,X=(I-O)*M+O,B=(R-I)*M+I,j=(X-P)*M+P,W=(B-X)*M+X,z=(W-j)*M+j;F[0]=w,F[1]=P,F[2]=j,F[3]=z,F[4]=z,F[5]=W,F[6]=B,F[7]=R}function v(w,O,I,R,M,F,P,X,B,j,W){var z,V=.005,Q=Infinity,G,re,ee,ue;i[0]=B,i[1]=j;for(var $=0;$<1;$+=.05)t[0]=r(w,I,M,P,$),t[1]=r(O,R,F,X,$),ee=x(i,t),ee<Q&&(z=$,Q=ee);Q=Infinity;for(var be=0;be<32&&!(V<h);be++)G=z-V,re=z+V,t[0]=r(w,I,M,P,G),t[1]=r(O,R,F,X,G),ee=x(t,i),G>=0&&ee<Q?(z=G,Q=ee):(o[0]=r(w,I,M,P,re),o[1]=r(O,R,F,X,re),ue=x(o,i),re<=1&&ue<Q?(z=re,Q=ue):V*=.5);return W&&(W[0]=r(w,I,M,P,z),W[1]=r(O,R,F,X,z)),m(Q)}function b(w,O,I,R){var M=1-R;return M*(M*w+2*R*O)+R*R*I}function S(w,O,I,R){return 2*((1-R)*(O-w)+R*(I-O))}function E(w,O,I,R,M){var F=w-2*O+I,P=2*(O-w),X=w-R,B=0;if(e(F)){if(l(P)){var j=-X/P;j>=0&&j<=1&&(M[B++]=j)}}else{var W=P*P-4*F*X;if(e(W)){var j=-P/(2*F);j>=0&&j<=1&&(M[B++]=j)}else if(W>0){var z=m(W),j=(-P+z)/(2*F),V=(-P-z)/(2*F);j>=0&&j<=1&&(M[B++]=j),V>=0&&V<=1&&(M[B++]=V)}}return B}function C(w,O,I){var R=w+I-2*O;return R===0?.5:(w-O)/R}function _(w,O,I,R,M){var F=(O-w)*R+w,P=(I-O)*R+O,X=(P-F)*R+F;M[0]=w,M[1]=F,M[2]=X,M[3]=X,M[4]=P,M[5]=I}function T(w,O,I,R,M,F,P,X,B){var j,W=.005,z=Infinity;i[0]=P,i[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(w,I,M,V),t[1]=b(O,R,F,V);var Q=x(i,t);Q<z&&(j=V,z=Q)}z=Infinity;for(var G=0;G<32&&!(W<h);G++){var re=j-W,ee=j+W;t[0]=b(w,I,M,re),t[1]=b(O,R,F,re);var Q=x(t,i);if(re>=0&&Q<z)j=re,z=Q;else{o[0]=b(w,I,M,ee),o[1]=b(O,R,F,ee);var ue=x(o,i);ee<=1&&ue<z?(j=ee,z=ue):W*=.5}}return B&&(B[0]=b(w,I,M,j),B[1]=b(O,R,F,j)),m(z)}D.cubicAt=r,D.cubicDerivativeAt=s,D.cubicRootAt=c,D.cubicExtrema=d,D.cubicSubdivide=g,D.cubicProjectPoint=v,D.quadraticAt=b,D.quadraticDerivativeAt=S,D.quadraticRootAt=E,D.quadraticExtremum=C,D.quadraticSubdivide=_,D.quadraticProjectPoint=T},Sp2Z:function(k,D,n){var y=n("3LNs"),p=n("/y7N"),x=n("AVZG"),A=n("Znkb"),m=y.extend({makeElOption:function(i,t,o,e,l){var r=o.axis,s=r.grid,c=e.get("type"),d=f(s,r).getOtherAxis(r).getGlobalExtent(),g=r.toGlobalCoord(r.dataToCoord(t,!0));if(c&&c!=="none"){var v=p.buildElStyle(e),b=h[c](r,g,d);b.style=v,i.graphicKey=b.type,i.pointer=b}var S=x.layout(s.model,o);p.buildCartesianSingleLabelElOption(t,i,S,o,e,l)},getHandleTransform:function(i,t,o){var e=x.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=o.get("handle.margin"),{position:p.getTransformedPosition(t.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,t,o,e){var l=o.axis,r=l.grid,s=l.getGlobalExtent(!0),c=f(r,l).getOtherAxis(l).getGlobalExtent(),d=l.dim==="x"?0:1,g=i.position;g[d]+=t[d],g[d]=Math.min(s[1],g[d]),g[d]=Math.max(s[0],g[d]);var v=(c[1]+c[0])/2,b=[v,v];b[d]=g[d];var S=[{verticalAlign:"middle"},{align:"center"}];return{position:g,rotation:i.rotation,cursorPoint:b,tooltipOption:S[d]}}});function f(i,t){var o={};return o[t.dim+"AxisIndex"]=t.index,i.getCartesian(o)}var h={line:function(i,t,o){var e=p.makeLineShape([t,o[0]],[t,o[1]],u(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,t,o){var e=Math.max(1,i.getBandWidth()),l=o[1]-o[0];return{type:"Rect",shape:p.makeRectShape([t-e/2,o[0]],[e,l],u(i))}}};function u(i){return i.dim==="x"?0:1}A.registerAxisPointerClass("CartesianAxisPointer",m);var a=m;k.exports=a},Sq3C:function(k,D,n){var y=n("sKgW"),p=n("zoYe"),x=n("wy8a"),A=n("quyA"),m=n("Z1HP"),f=n("Em2t"),h=Math.ceil;function u(a,i){i=i===void 0?" ":p(i);var t=i.length;if(t<2)return t?y(i,a):i;var o=y(i,h(a/m(i)));return A(i)?x(f(o),0,a).join(""):o.slice(0,a)}k.exports=u},SqI9:function(k,D,n){var y=n("y+Vt"),p=n("iXp4"),x=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 h=f.cx,u=f.cy,a=Math.max(f.r0||0,0),i=Math.max(f.r,0),t=f.startAngle,o=f.endAngle,e=f.clockwise,l=Math.cos(t),r=Math.sin(t);m.moveTo(l*a+h,r*a+u),m.lineTo(l*i+h,r*i+u),m.arc(h,u,i,t,o,!e),m.lineTo(Math.cos(o)*a+h,Math.sin(o)*a+u),a!==0&&m.arc(h,u,a,o,t,e),m.closePath()}});k.exports=x},SrGk:function(k,D,n){var y=n("hydK"),p=y.createElement,x=n("bYtY"),A=n("y+Vt"),m=n("Dagg"),f=n("dqUG"),h=n("P47w"),u=h.path,a=h.image,i=h.text,t="0",o="1";function e(r,s,c,d,g){this._zrId=r,this._svgRoot=s,this._tagNames=typeof c=="string"?[c]:c,this._markLabel=d,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(d){var g=c.children;if(!g)return!1;for(var v=g.length-1;v>=0;--v)if(g[v]===d)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 d=this.add(r);d&&(r[this._domName]=d)}},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 x.each(this._tagNames,function(c){var d=r.getElementsByTagName(c);s=s.concat([].slice.call(d))}),s},e.prototype.markAllUnused=function(){var r=this.getDoms(),s=this;x.each(r,function(c){c[s._markLabel]=t})},e.prototype.markUsed=function(r){r&&(r[this._markLabel]=o)},e.prototype.removeUnused=function(){var r=this.getDefs(!1);if(!r)return;var s=this.getDoms(),c=this;x.each(s,function(d){d[c._markLabel]!==o&&r.removeChild(d)})},e.prototype.getSvgProxy=function(r){return r instanceof A?u:r instanceof m?a:r instanceof f?i: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,n){var y=n("fc+c"),p=y.extend({type:"dataZoom.select"});k.exports=p},Sxd8:function(k,D,n){var y=n("ZCgT");function p(x){var A=y(x),m=A%1;return A===A?m?A-m:A:0}k.exports=p},T1rO:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("zdCA"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},T4UG:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("ItGF"),m=n("7aKB"),f=m.formatTime,h=m.encodeHTML,u=m.addCommas,a=m.getTooltipMarker,i=n("4NO4"),t=n("bLfw"),o=n("5Hur"),e=n("OKJ2"),l=n("+TT/"),r=l.getLayoutParams,s=l.mergeLayoutParam,c=n("9H2F"),d=c.createTask,g=n("D5nY"),v=g.prepareSource,b=g.getSource,S=n("KxfA"),E=S.retrieveRawValue,C=i.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(B,j,W,z){this.seriesIndex=this.componentIndex,this.dataTask=d({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(B,W),v(this);var V=this.getInitialData(B,W);M(V,this),this.dataTask.context.data=V,C(this).dataBeforeProcessed=V,T(this)},mergeDefaultAndTheme:function(B,j){var W=this.layoutMode,z=W?r(B):{},V=this.subType;t.hasClass(V)&&(V+="Series"),x.merge(B,j.getTheme().get(this.subType)),x.merge(B,this.getDefaultOption()),i.defaultEmphasis(B,"label",["show"]),this.fillDataTextStyle(B.data),W&&s(B,z,W)},mergeOption:function(B,j){B=x.merge(this.option,B,!0),this.fillDataTextStyle(B.data);var W=this.layoutMode;W&&s(this.option,B,W),v(this);var z=this.getInitialData(B,j);M(z,this),this.dataTask.dirty(),this.dataTask.context.data=z,C(this).dataBeforeProcessed=z,T(this)},fillDataTextStyle:function(B){if(B&&!x.isTypedArray(B))for(var j=["show"],W=0;W<B.length;W++)B[W]&&B[W].label&&i.defaultEmphasis(B[W],"label",j)},getInitialData:function(){},appendData:function(B){var j=this.getRawData();j.appendData(B.data)},getData:function(B){var j=P(this);if(j){var W=j.context.data;return B==null?W:W.getLinkedData(B)}else return C(this).data},setData:function(B){var j=P(this);if(j){var W=j.context;W.data!==B&&j.modifyOutputEnd&&j.setOutputEnd(B.count()),W.outputData=B,j!==this.dataTask&&(W.data=B)}C(this).data=B},getSource:function(){return b(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var B=this.coordinateSystem;return B&&B.getBaseAxis&&B.getBaseAxis()},formatTooltip:function(B,j,W,z){var V=this;z=z||"html";var Q=z==="html"?"<br/>":`
`,G=z==="richText",re={},ee=0;function ue(we){var Ne=x.reduce(we,function(it,Ct,mt){var Ve=be.getDimensionInfo(mt);return it|=Ve&&Ve.tooltip!==!1&&Ve.displayName!=null},0),je=[];_e.length?x.each(_e,function(it){me(E(be,B,it),it)}):x.each(we,me);function me(it,Ct){var mt=be.getDimensionInfo(Ct);if(!mt||mt.otherDims.tooltip===!1)return;var Ve=mt.type,or="sub"+V.seriesIndex+"at"+ee,dt=a({color:nt,type:"subItem",renderMode:z,markerId:or}),Yt=typeof dt=="string"?dt:dt.content,hr=(Ne?Yt+h(mt.displayName||"-")+": ":"")+h(Ve==="ordinal"?it+"":Ve==="time"?j?"":f("yyyy/MM/dd hh:mm:ss",it):u(it));hr&&je.push(hr),G&&(re[or]=nt,++ee)}var Ce=Ne?G?`
`:"<br/>":"",Fe=Ce+je.join(Ce||", ");return{renderMode:z,content:Fe,style:re}}function $(we){return{renderMode:z,content:h(u(we)),style:re}}var be=this.getData(),_e=be.mapDimension("defaultedTooltip",!0),Ee=_e.length,Xe=this.getRawValue(B),He=x.isArray(Xe),nt=be.getItemVisual(B,"color");x.isObject(nt)&&nt.colorStops&&(nt=(nt.colorStops[0]||{}).color),nt=nt||"transparent";var Ie=Ee>1||He&&!Ee?ue(Xe):$(Ee?E(be,B,_e[0]):He?Xe[0]:Xe),oe=Ie.content,ot=V.seriesIndex+"at"+ee,he=a({color:nt,type:"item",renderMode:z,markerId:ot});re[ot]=nt,++ee;var J=be.getName(B),Y=this.name;i.isNameSpecified(this)||(Y=""),Y=Y?h(Y)+(j?": ":Q):"";var q=typeof he=="string"?he:he.content,fe=j?q+Y+oe:Y+q+(J?h(J)+": "+oe:oe);return{html:fe,markers:re}},isAnimationEnabled:function(){if(A.node)return!1;var B=this.getShallow("animation");return B&&(this.getData().count()>this.getShallow("animationThreshold")&&(B=!1)),B},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(B,j,W){var z=this.ecModel,V=o.getColorFromPalette.call(this,B,j,W);return V||(V=z.getColorFromPalette(B,j,W)),V},coordDimToDataDim:function(B){return this.getRawData().mapDimension(B,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});x.mixin(_,e),x.mixin(_,o);function T(B){var j=B.name;i.isNameSpecified(B)||(B.name=w(B)||j)}function w(B){var j=B.getRawData(),W=j.mapDimension("seriesName",!0),z=[];return x.each(W,function(V){var Q=j.getDimensionInfo(V);Q.displayName&&z.push(Q.displayName)}),z.join(" ")}function O(B){return B.model.getRawData().count()}function I(B){var j=B.model;return j.setData(j.getRawData().cloneShallow()),R}function R(B,j){j.outputData&&B.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function M(B,j){x.each(B.CHANGABLE_METHODS,function(W){B.wrapMethod(W,x.curry(F,j))})}function F(B){var j=P(B);j&&j.setOutputEnd(this.count())}function P(B){var j=(B.ecModel||{}).scheduler,W=j&&j.getPipeline(B.uid);if(W){var z=W.currentTask;if(z){var V=z.agentStubMap;V&&(z=V.get(B.uid))}return z}}var X=_;k.exports=X},T6xi:function(k,D,n){var y=n("YgsL"),p=n("nCxF");function x(A,m,f){var h=m.points,u=m.smooth;if(h&&h.length>=2){if(u&&u!=="spline"){var a=p(h,u,f,m.smoothConstraint);A.moveTo(h[0][0],h[0][1]);for(var i=h.length,t=0;t<(f?i:i-1);t++){var o=a[t*2],e=a[t*2+1],l=h[(t+1)%i];A.bezierCurveTo(o[0],o[1],e[0],e[1],l[0],l[1])}}else{u==="spline"&&(h=y(h,f)),A.moveTo(h[0][0],h[0][1]);for(var t=1,r=h.length;t<r;t++)A.lineTo(h[t][0],h[t][1])}f&&A.closePath()}}D.buildPath=x},TIY9:function(k,D,n){var y=n("bYtY"),p=y.each,x=n("vafp"),A=n("4NO4"),m=A.makeInner,f=n("Mgri"),h=n("F5Ls"),u=n("a9QJ"),a=n("p/La"),i=m(),t={load:function(e,l,r){var s=i(l).parsed;if(s)return s;var c=l.specialAreas||{},d=l.geoJSON,g;try{g=d?x(d,r):[]}catch(v){throw new Error(`Invalid geoJson format
`+v.message)}return f(e,g),p(g,function(v){var b=v.name;h(e,v),u(e,v),a(e,v);var S=c[b];S&&v.transformTo(S.left,S.top,S.width,S.height)}),i(l).parsed={regions:g,boundingRect:o(g)}}};function o(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,n){var y=n("zM3Q"),p=["itemStyle","borderColor"],x=["itemStyle","borderColor0"],A=["itemStyle","color"],m=["itemStyle","color0"],f={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(h,u){var a=h.getData();if(a.setVisual({legendSymbol:"roundRect",colorP:o(1,h),colorN:o(-1,h),borderColorP:e(1,h),borderColorN:e(-1,h)}),u.isSeriesFiltered(h))return;var i=h.pipelineContext.large;return!i&&{progress:t};function t(l,r){for(var s;(s=l.next())!=null;){var c=r.getItemModel(s),d=r.getItemLayout(s).sign;r.setItemVisual(s,{color:o(d,c),borderColor:e(d,c)})}}function o(l,r){return r.get(l>0?A:m)}function e(l,r){return r.get(l>0?p:x)}}};k.exports=f},TWL2:function(k,D,n){var y=n("IwbS"),p=n("bYtY"),x=n("6Ic6");function A(a,i){y.Group.call(this);var t=new y.Polygon,o=new y.Polyline,e=new y.Text;this.add(t),this.add(o),this.add(e),this.highDownOnUpdate=function(l,r){r==="emphasis"?(o.ignore=o.hoverIgnore,e.ignore=e.hoverIgnore):(o.ignore=o.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(a,i,!0)}var m=A.prototype,f=["itemStyle","opacity"];m.updateData=function(a,i,t){var o=this.childAt(0),e=a.hostModel,l=a.getItemModel(i),r=a.getItemLayout(i),s=a.getItemModel(i).get(f);s=s==null?1:s,o.useStyle({}),t?(o.setShape({points:r.points}),o.setStyle({opacity:0}),y.initProps(o,{style:{opacity:s}},e,i)):y.updateProps(o,{style:{opacity:s},shape:{points:r.points}},e,i);var c=l.getModel("itemStyle"),d=a.getItemVisual(i,"color");o.setStyle(p.defaults({lineJoin:"round",fill:d},c.getItemStyle(["opacity"]))),o.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(a,i),y.setHoverStyle(this)},m._updateLabel=function(a,i){var t=this.childAt(1),o=this.childAt(2),e=a.hostModel,l=a.getItemModel(i),r=a.getItemLayout(i),s=r.label,c=a.getItemVisual(i,"color");y.updateProps(t,{shape:{points:s.linePoints||s.linePoints}},e,i),y.updateProps(o,{style:{x:s.x,y:s.y}},e,i),o.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var d=l.getModel("label"),g=l.getModel("emphasis.label"),v=l.getModel("labelLine"),b=l.getModel("emphasis.labelLine"),c=a.getItemVisual(i,"color");y.setLabelStyle(o.style,o.hoverStyle={},d,g,{labelFetcher:a.hostModel,labelDataIndex:i,defaultText:a.getName(i),autoColor:c,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),o.ignore=o.normalIgnore=!d.get("show"),o.hoverIgnore=!g.get("show"),t.ignore=t.normalIgnore=!v.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(v.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},p.inherits(A,y.Group);var h=x.extend({type:"funnel",render:function(a,i,t){var o=a.getData(),e=this._data,l=this.group;o.diff(e).add(function(r){var s=new A(o,r);o.setItemGraphicEl(r,s),l.add(s)}).update(function(r,s){var c=e.getItemGraphicEl(s);c.updateData(o,r),l.add(c),o.setItemGraphicEl(r,c)}).remove(function(r){var s=e.getItemGraphicEl(r);l.remove(s)}).execute(),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=h;k.exports=u},TYVI:function(k,D,n){var y=n("5GtS"),p=n("T4UG"),x=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}}}),A=x;k.exports=A},Tghj:function(k,D,n){(function(y){var p;typeof window!="undefined"?p=window.__DEV__:typeof y!="undefined"&&(p=y.__DEV__),typeof p=="undefined"&&(p=!0);var x=p;D.__DEV__=x}).call(this,n("yLpj"))},ThAp:function(k,D,n){var y=n("bYtY"),p=n("5GtS"),x=n("T4UG"),A=n("7aKB"),m=A.encodeHTML,f=A.addCommas,h=n("cCMj"),u=n("KxfA"),a=u.retrieveRawAttr,i=n("W4dC"),t=n("D5nY"),o=t.makeSeriesEncodeForNameBased,e=x.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(r){for(var s=p(this,{coordDimensions:["value"],encodeDefaulter:y.curry(o,this)}),c=s.mapDimension("value"),d=y.createHashMap(),g=[],v=[],b=0,S=s.count();b<S;b++){var E=s.getName(b);d.set(E,!0),g.push({name:E,value:s.get(c,b),selected:a(s,b,"selected")})}var C=i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(C.regions,function(_){var T=_.name;d.get(T)||(g.push({name:T}),v.push(T))}),this.updateSelectedMap(g),s.appendValues([],v),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)),d=s.getName(r),g=this.seriesGroup,v=[],b=0;b<g.length;b++){var S=g[b].originalData.indexOfName(d),E=s.mapDimension("value");isNaN(g[b].originalData.get(E,S))||v.push(m(g[b].name))}return v.join(", ")+"<br />"+m(d+" : "+c)},getTooltipPosition:function(r){if(r!=null){var s=this.getData().getName(r),c=this.coordinateSystem,d=c.getRegion(s);return d&&c.dataToPoint(d.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,h);var l=e;k.exports=l},TkdX:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,m=4;function f(e,l,r){p.Group.call(this);var s=new p.Sector({z2:A});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 d(){c.ignore=c.hoverIgnore}function g(){c.ignore=c.normalIgnore}this.on("emphasis",d).on("normal",g).on("mouseover",d).on("mouseout",g)}var h=f.prototype;h.updateData=function(e,l,r,s,c){this.node=l,l.piece=this,s=s||this._seriesModel,c=c||this._ecModel;var d=this.childAt(0);d.dataIndex=l.dataIndex;var g=l.getModel(),v=l.getLayout(),b=y.extend({},v);b.label=null;var S=a(l,s,c);o(l,s,S);var E=g.getModel("itemStyle").getItemStyle(),C;if(r==="normal")C=E;else{var _=g.getModel(r+".itemStyle").getItemStyle();C=y.merge(_,E)}C=y.defaults({lineJoin:"bevel",fill:C.fill||S},C),e?(d.setShape(b),d.shape.r=v.r0,p.updateProps(d,{shape:{r:v.r}},s,l.dataIndex),d.useStyle(C)):typeof C.fill=="object"&&C.fill.type||typeof d.style.fill=="object"&&d.style.fill.type?(p.updateProps(d,{shape:b},s),d.useStyle(C)):p.updateProps(d,{shape:b,style:C},s),this._updateLabel(s,S,r);var T=g.getShallow("cursor");if(T&&d.attr("cursor",T),e){var w=s.getShallow("highlightPolicy");this._initEvents(d,l,s,w)}this._seriesModel=s||this._seriesModel,this._ecModel=c||this._ecModel,p.setHoverStyle(this)},h.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!==x.NONE&&r.piece.childAt(0).trigger("downplay"))})},h.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},h.onHighlight=function(){this.updateData(!1,this.node,"highlight")},h.onDownplay=function(){this.updateData(!1,this.node,"downplay")},h._updateLabel=function(e,l,r){var s=this.node.getModel(),c=s.getModel("label"),d=r==="normal"||r==="emphasis"?c:s.getModel(r+".label"),g=s.getModel("emphasis.label"),v=y.retrieve(e.getFormattedLabel(this.node.dataIndex,r,null,null,"label"),this.node.name);j("show")===!1&&(v="");var b=this.node.getLayout(),S=d.get("minAngle");S==null&&(S=c.get("minAngle")),S=S/180*Math.PI;var E=b.endAngle-b.startAngle;S!=null&&Math.abs(E)<S&&(v="");var C=this.childAt(1);p.setLabelStyle(C.style,C.hoverStyle||{},c,g,{defaultText:d.getShallow("show")?v:null,autoColor:l,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,T=Math.cos(_),w=Math.sin(_),O,I=j("position"),R=j("distance")||0,M=j("align");I==="outside"?(O=b.r+R,M=_>Math.PI/2?"right":"left"):!M||M==="center"?(O=(b.r+b.r0)/2,M="center"):M==="left"?(O=b.r0+R,_>Math.PI/2&&(M="right")):M==="right"&&(O=b.r-R,_>Math.PI/2&&(M="left")),C.attr("style",{text:v,textAlign:M,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var F=O*T+b.cx,P=O*w+b.cy;C.attr("position",[F,P]);var X=j("rotate"),B=0;X==="radial"?(B=-_,B<-Math.PI/2&&(B+=Math.PI)):X==="tangential"?(B=Math.PI/2-_,B>Math.PI/2?B-=Math.PI:B<-Math.PI/2&&(B+=Math.PI)):typeof X=="number"&&(B=X*Math.PI/180),C.attr("rotation",B);function j(W){var z=d.get(W);return z==null?c.get(W):z}},h._initEvents=function(e,l,r,s){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,d=function(){c.onEmphasis(s)},g=function(){c.onNormal()},v=function(){c.onDownplay()},b=function(){c.onHighlight()};r.isAnimationEnabled()&&e.on("mouseover",d).on("mouseout",g).on("emphasis",d).on("normal",g).on("downplay",v).on("highlight",b)},y.inherits(f,p.Group);var u=f;function a(e,l,r){var s=e.getVisual("color"),c=e.getVisual("visualMeta");(!c||c.length===0)&&(s=null);var d=e.getModel("itemStyle").get("color");if(d)return d;if(s)return s;if(e.depth===0)return r.option.color[0];var g=r.option.color.length;return d=r.option.color[i(e)%g],d}function i(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===x.NONE?!1:r===x.SELF?e===l:r===x.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function o(e,l,r){var s=l.getData();s.setItemVisual(e.dataIndex,"color",r)}k.exports=u},Tp9H:function(k,D,n){var y=n("ItGF"),p=n("Kagy"),x=n("IUWy"),A=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:A.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:A.lang.slice()},m.prototype.unusable=!y.canvasSupported;var f=m.prototype;f.onclick=function(u,a){var i=this.model,t=i.get("name")||u.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",e=o?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:e,backgroundColor:i.get("backgroundColor",!0)||u.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(typeof MouseEvent=="function"&&!y.browser.ie&&!y.browser.edge){var 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]),d=c.length,g=new Uint8Array(d);d--;)g[d]=c.charCodeAt(d);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,t+"."+e)}else{var b=i.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',E=window.open();E.document.write(S)}},x.register("saveAsImage",m);var h=m;k.exports=h},"U/Mo":function(k,D){function n(p){var x=p.coordinateSystem;if(x.type!=="view")return 1;var A=p.option.nodeScaleRatio,m=x.scale,f=m&&m[0]||1,h=x.getZoom(),u=(h-1)*A+1;return u/f}function y(p){var x=p.getVisual("symbolSize");return x instanceof Array&&(x=(x[0]+x[1])/2),+x}D.getNodeGlobalScale=n,D.getSymbolSize=y},UADf:function(k,D,n){},UESt:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="RightOutlined";var h=D.a=p.forwardRef(f)},"UNi/":function(k,D){function n(y,p){for(var x=-1,A=Array(y);++x<y;)A[x]=p(x);return A}k.exports=n},UOVi:function(k,D,n){var y=n("bYtY"),p=n("7aKB"),x=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function m(a){return y.indexOf(A,a)>=0}function f(a,i){a=a.slice();var t=y.map(a,p.capitalFirst);i=(i||[]).slice();var o=y.map(i,p.capitalFirst);return function(e,l){y.each(a,function(r,s){for(var c={name:r,capital:t[s]},d=0;d<i.length;d++)c[i[d]]=r+o[d];e.call(l,c)})}}var h=f(x,["axisIndex","axis","index","id"]);function u(a,i,t){return function(r){var s={nodes:[],records:{}};if(i(function(g){s.records[g.name]={}}),!r)return s;l(r,s);var c;do c=!1,a(d);while(c);function d(g){!o(g,s)&&e(g,s)&&(l(g,s),c=!0)}return s};function o(r,s){return y.indexOf(s.nodes,r)>=0}function e(r,s){var c=!1;return i(function(d){y.each(t(r,d)||[],function(g){s.records[d.name][g]&&(c=!0)})}),c}function l(r,s){s.nodes.push(r),i(function(c){y.each(t(r,c)||[],function(d){s.records[c.name][d]=!0})})}}D.isCoordSupported=m,D.createNameEach=f,D.eachAxisDim=h,D.createLinkedNodesFinder=u},Uc92:function(k,D,n){"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,n){var y=n("bYtY"),p=n("OELB");function x(f,h){f.eachSeriesByType("themeRiver",function(u){var a=u.getData(),i=u.coordinateSystem,t={},o=i.getRect();t.rect=o;var e=u.get("boundaryGap"),l=i.getAxis();if(t.boundaryGap=e,l.orient==="horizontal"){e[0]=p.parsePercent(e[0],o.height),e[1]=p.parsePercent(e[1],o.height);var r=o.height-e[0]-e[1];A(a,u,r)}else{e[0]=p.parsePercent(e[0],o.width),e[1]=p.parsePercent(e[1],o.width);var s=o.width-e[0]-e[1];A(a,u,s)}a.setLayout("layoutInfo",t)})}function A(f,h,u){if(!f.count())return;for(var a=h.coordinateSystem,i=h.getLayerSeries(),t=f.mapDimension("single"),o=f.mapDimension("value"),e=y.map(i,function(S){return y.map(S.indices,function(E){var C=a.dataToPoint(f.get(t,E));return C[1]=f.get(o,E),C})}),l=m(e),r=l.y0,s=u/l.max,c=i.length,d=i[0].indices.length,g,v=0;v<d;++v){g=r[v]*s,f.setItemLayout(i[0].indices[v],{layerIndex:0,x:e[0][v][0],y0:g,y:e[0][v][1]*s});for(var b=1;b<c;++b)g+=e[b-1][v][1]*s,f.setItemLayout(i[b].indices[v],{layerIndex:b,x:e[b][v][0],y0:g,y:e[b][v][1]*s})}}function m(f){for(var h=f.length,u=f[0].length,a=[],i=[],t=0,o,e={},l=0;l<u;++l){for(var r=0,o=0;r<h;++r)o+=f[r][l][1];o>t&&(t=o),a.push(o)}for(var s=0;s<u;++s)i[s]=(t-a[s])/2;t=0;for(var c=0;c<u;++c){var d=a[c]+i[c];d>t&&(t=d)}return e.y0=i,e.max=t,e}k.exports=x},Urep:function(k,D,n){},V6Ve:function(k,D,n){var y=n("kekF"),p=y(Object.keys,Object);k.exports=p},V7ic:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("digP")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FileTwoTone";var i=A.forwardRef(a);D.default=i},VFCP:function(k,D,n){n("dBmv"),n("KamJ")},VPsl:function(k,D){function n(y){y.eachSeriesByType("map",function(p){var x=p.get("color"),A=p.getModel("itemStyle"),m=A.get("areaColor"),f=A.get("color")||x[p.seriesIndex%x.length];p.getData().setVisual({areaColor:m,color:f})})}k.exports=n},VR9l:function(k,D,n){var y=n("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),x={getItemStyle:function(A,m){var f=p(this,A,m),h=this.getBorderLineDash();return h&&(f.lineDash=h),f},getBorderLineDash:function(){var A=this.get("borderType");return A==="solid"||A==null?null:A==="dashed"?[5,5]:[1,1]}};k.exports=x},VSLf:function(k,D,n){n("I+Bx"),n("F0hE"),n("bBKM")},VSMT:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.decodeUTF8=y,D.encodeUTF8=p;function y(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(x))}catch(m){if(m instanceof URIError&&A)return x;throw m}}function p(x){return unescape(encodeURIComponent(x))}},VXYp:function(k,D,n){var y=n("bYtY"),p=n("SgGq"),x=n("iLNv"),A="\0_ec_dataZoom_roams";function m(e,l){var r=u(e),s=l.dataZoomId,c=l.coordId;y.each(r,function(v,b){var S=v.dataZoomInfos;S[s]&&y.indexOf(l.allCoordIds,c)<0&&(delete S[s],v.count--)}),i(r);var d=r[c];d||(d=r[c]={coordId:c,dataZoomInfos:{},count:0},d.controller=a(e,d),d.dispatchAction=y.curry(t,e)),!d.dataZoomInfos[s]&&d.count++,d.dataZoomInfos[s]=l;var g=o(d.dataZoomInfos);d.controller.enable(g.controlType,g.opt),d.controller.setPointerChecker(l.containsPoint),x.createOrUpdate(d,"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--)}),i(r)}function h(e){return e.type+"\0_"+e.id}function u(e){var l=e.getZr();return l[A]||(l[A]={})}function a(e,l){var r=new p(e.getZr());return y.each(["pan","zoom","scrollMove"],function(s){r.on(s,function(c){var d=[];y.each(l.dataZoomInfos,function(g){if(!c.isAvailableBehavior(g.dataZoomModel.option))return;var v=(g.getRange||{})[s],b=v&&v(l.controller,c);!g.dataZoomModel.get("disabled",!0)&&b&&d.push({dataZoomId:g.dataZoomId,start:b[0],end:b[1]})}),d.length&&l.dispatchAction(d)})}),r}function i(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 o(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(d){var g=d.dataZoomModel,v=g.get("disabled",!0)?!1:g.get("zoomLock",!0)?"move":!0;s[r+v]>s[r+l]&&(l=v),c&=g.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}D.register=m,D.unregister=f,D.generateCoordId=h},VaNO:function(k,D){function n(y){return this.__data__.has(y)}k.exports=n},VaxA:function(k,D,n){var y=n("bYtY");function p(f,h,u){if(f&&y.indexOf(h,f.type)>=0){var a=u.getData().tree.root,i=f.targetNode;if(typeof i=="string"&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var t=f.targetNodeId;if(t!=null&&(i=a.getNodeById(t)))return{node:i}}}function x(f){for(var h=[];f;)f=f.parentNode,f&&h.push(f);return h.reverse()}function A(f,h){var u=x(f);return y.indexOf(u,h)>=0}function m(f,h){for(var u=[];f;){var a=f.dataIndex;u.push({name:f.name,dataIndex:a,value:h.getRawValue(a)}),f=f.parentNode}return u.reverse(),u}D.retrieveTargetInfo=p,D.getPathToRoot=x,D.aboveViewRoot=A,D.wrapTreePathInfo=m},Vi4m:function(k,D,n){var y=n("bYtY");function p(A){A!=null&&y.extend(this,A),this.otherDims={}}var x=p;k.exports=x},Vl3Y:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("J4zp"),A=n.n(x),m=n("lSNA"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=n("85Yc"),t=n("H84U"),o=n("BGR+"),e=h.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=h.createContext({updateItemErrors:function(){}}),r=function(_t){var er=Object(o.default)(_t,["prefixCls"]);return h.createElement(i.FormProvider,er)};function s(de){return typeof de=="object"&&de!=null&&de.nodeType===1}function c(de,_t){return(!_t||de!=="hidden")&&de!=="visible"&&de!=="clip"}function d(de,_t){if(de.clientHeight<de.scrollHeight||de.clientWidth<de.scrollWidth){var er=getComputedStyle(de,null);return c(er.overflowY,_t)||c(er.overflowX,_t)||function(yt){var Ar=function(Sr){if(!Sr.ownerDocument||!Sr.ownerDocument.defaultView)return null;try{return Sr.ownerDocument.defaultView.frameElement}catch(Cn){return null}}(yt);return!!Ar&&(Ar.clientHeight<yt.scrollHeight||Ar.clientWidth<yt.scrollWidth)}(de)}return!1}function g(de,_t,er,yt,Ar,Sr,Cn,mr){return Sr<de&&Cn>_t||Sr>de&&Cn<_t?0:Sr<=de&&mr<=er||Cn>=_t&&mr>=er?Sr-de-yt:Cn>_t&&mr<er||Sr<de&&mr>er?Cn-_t+Ar:0}var v=function(_t,er){var yt=window,Ar=er.scrollMode,Sr=er.block,Cn=er.inline,mr=er.boundary,Pr=er.skipOverflowHiddenElements,gr=typeof mr=="function"?mr:function(rt){return rt!==mr};if(!s(_t))throw new TypeError("Invalid target");for(var Jt,Dt,dn=document.scrollingElement||document.documentElement,Fn=[],Zn=_t;s(Zn)&&gr(Zn);){if((Zn=(Dt=(Jt=Zn).parentElement)==null?Jt.getRootNode().host||null:Dt)===dn){Fn.push(Zn);break}Zn!=null&&Zn===document.body&&d(Zn)&&!d(document.documentElement)||Zn!=null&&d(Zn,Pr)&&Fn.push(Zn)}for(var ci=yt.visualViewport?yt.visualViewport.width:innerWidth,Xi=yt.visualViewport?yt.visualViewport.height:innerHeight,Gn=window.scrollX||pageXOffset,ei=window.scrollY||pageYOffset,Zt=_t.getBoundingClientRect(),Nt=Zt.height,Me=Zt.width,ke=Zt.top,Pe=Zt.right,tt=Zt.bottom,vt=Zt.left,St=Sr==="start"||Sr==="nearest"?ke:Sr==="end"?tt:ke+Nt/2,Vt=Cn==="center"?vt+Me/2:Cn==="end"?Pe:vt,Mr=[],$r=0;$r<Fn.length;$r++){var vn=Fn[$r],jt=vn.getBoundingClientRect(),gt=jt.height,pt=jt.width,ar=jt.top,Ht=jt.right,Mt=jt.bottom,qt=jt.left;if(Ar==="if-needed"&&ke>=0&&vt>=0&&tt<=Xi&&Pe<=ci&&ke>=ar&&tt<=Mt&&vt>=qt&&Pe<=Ht)return Mr;var Rt=getComputedStyle(vn),Qt=parseInt(Rt.borderLeftWidth,10),jr=parseInt(Rt.borderTopWidth,10),Nr=parseInt(Rt.borderRightWidth,10),Lr=parseInt(Rt.borderBottomWidth,10),ln=0,mn=0,ti="offsetWidth"in vn?vn.offsetWidth-vn.clientWidth-Qt-Nr:0,$n="offsetHeight"in vn?vn.offsetHeight-vn.clientHeight-jr-Lr:0,hi="offsetWidth"in vn?vn.offsetWidth===0?0:pt/vn.offsetWidth:0,Ti="offsetHeight"in vn?vn.offsetHeight===0?0:gt/vn.offsetHeight:0;if(dn===vn)ln=Sr==="start"?St:Sr==="end"?St-Xi:Sr==="nearest"?g(ei,ei+Xi,Xi,jr,Lr,ei+St,ei+St+Nt,Nt):St-Xi/2,mn=Cn==="start"?Vt:Cn==="center"?Vt-ci/2:Cn==="end"?Vt-ci:g(Gn,Gn+ci,ci,Qt,Nr,Gn+Vt,Gn+Vt+Me,Me),ln=Math.max(0,ln+ei),mn=Math.max(0,mn+Gn);else{ln=Sr==="start"?St-ar-jr:Sr==="end"?St-Mt+Lr+$n:Sr==="nearest"?g(ar,Mt,gt,jr,Lr+$n,St,St+Nt,Nt):St-(ar+gt/2)+$n/2,mn=Cn==="start"?Vt-qt-Qt:Cn==="center"?Vt-(qt+pt/2)+ti/2:Cn==="end"?Vt-Ht+Nr+ti:g(qt,Ht,pt,Qt,Nr+ti,Vt,Vt+Me,Me);var Ni=vn.scrollLeft,Wi=vn.scrollTop;St+=Wi-(ln=Math.max(0,Math.min(Wi+ln/Ti,vn.scrollHeight-gt/Ti+$n))),Vt+=Ni-(mn=Math.max(0,Math.min(Ni+mn/hi,vn.scrollWidth-pt/hi+ti)))}Mr.push({el:vn,top:ln,left:mn})}return Mr};function b(de){return de===Object(de)&&Object.keys(de).length!==0}function S(de,_t){_t===void 0&&(_t="auto");var er="scrollBehavior"in document.body.style;de.forEach(function(yt){var Ar=yt.el,Sr=yt.top,Cn=yt.left;Ar.scroll&&er?Ar.scroll({top:Sr,left:Cn,behavior:_t}):(Ar.scrollTop=Sr,Ar.scrollLeft=Cn)})}function E(de){return de===!1?{block:"end",inline:"nearest"}:b(de)?de:{block:"start",inline:"nearest"}}function C(de,_t){var er=de.isConnected||de.ownerDocument.documentElement.contains(de);if(b(_t)&&typeof _t.behavior=="function")return _t.behavior(er?v(de,_t):[]);if(!er)return;var yt=E(_t);return S(v(de,yt),yt.behavior)}var _=C;function T(de){return de===void 0||de===!1?[]:Array.isArray(de)?de:[de]}function w(de,_t){if(!de.length)return;var er=de.join("_");return _t?"".concat(_t,"_").concat(er):er}function O(de){var _t=T(de);return _t.join("_")}function I(de){var _t=Object(i.useForm)(),er=A()(_t,1),yt=er[0],Ar=Object(h.useRef)({}),Sr=Object(h.useMemo)(function(){return de||p()(p()({},yt),{__INTERNAL__:{itemRef:function(mr){return function(Pr){var gr=O(mr);Pr?Ar.current[gr]=Pr:delete Ar.current[gr]}}},scrollToField:function(mr){var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},gr=T(mr),Jt=w(gr,Sr.__INTERNAL__.name),Dt=Jt?document.getElementById(Jt):null;Dt&&_(Dt,p()({scrollMode:"if-needed",block:"nearest"},Pr))},getFieldInstance:function(mr){var Pr=O(mr);return Ar.current[Pr]}})},[de,yt]);return[Sr]}var R=n("3Nzz"),M=function(de,_t){var er={};for(var yt in de)Object.prototype.hasOwnProperty.call(de,yt)&&_t.indexOf(yt)<0&&(er[yt]=de[yt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ar=0,yt=Object.getOwnPropertySymbols(de);Ar<yt.length;Ar++)_t.indexOf(yt[Ar])<0&&Object.prototype.propertyIsEnumerable.call(de,yt[Ar])&&(er[yt[Ar]]=de[yt[Ar]]);return er},F=function(_t,er){var yt,Ar=h.useContext(R.b),Sr=h.useContext(t.b),Cn=Sr.getPrefixCls,mr=Sr.direction,Pr=_t.name,gr=_t.prefixCls,Jt=_t.className,Dt=Jt===void 0?"":Jt,dn=_t.size,Fn=dn===void 0?Ar:dn,Zn=_t.form,ci=_t.colon,Xi=_t.labelAlign,Gn=_t.labelCol,ei=_t.wrapperCol,Zt=_t.hideRequiredMark,Nt=_t.layout,Me=Nt===void 0?"horizontal":Nt,ke=_t.scrollToFirstError,Pe=_t.requiredMark,tt=_t.onFinishFailed,vt=M(_t,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),St=Object(h.useMemo)(function(){return Pe!==void 0?Pe:!Zt},[Zt,Pe]),Vt=Cn("form",gr),Mr=a()(Vt,(yt={},f()(yt,"".concat(Vt,"-").concat(Me),!0),f()(yt,"".concat(Vt,"-hide-required-mark"),St===!1),f()(yt,"".concat(Vt,"-rtl"),mr==="rtl"),f()(yt,"".concat(Vt,"-").concat(Fn),Fn),yt),Dt),$r=I(Zn),vn=A()($r,1),jt=vn[0],gt=jt.__INTERNAL__;gt.name=Pr;var pt=Object(h.useMemo)(function(){return{name:Pr,labelAlign:Xi,labelCol:Gn,wrapperCol:ei,vertical:Me==="vertical",colon:ci,requiredMark:St,itemRef:gt.itemRef}},[Pr,Xi,Gn,ei,Me,ci,St]);h.useImperativeHandle(er,function(){return jt});var ar=function(Mt){tt&&tt(Mt),ke&&Mt.errorFields.length&&jt.scrollToField(Mt.errorFields[0].name)};return h.createElement(R.a,{size:Fn},h.createElement(e.Provider,{value:pt},h.createElement(i.default,p()({id:Pr},vt,{onFinishFailed:ar,form:jt,className:Mr}))))},P=h.forwardRef(F),X=P,B=n("cDf5"),j=n.n(B),W=n("RIqP"),z=n.n(W),V=n("Y+p1"),Q=n.n(V),G=n("KW7l"),re=n("c+Xe"),ee=n("qrJ5"),ue=n("CWQg"),$=n("uaoM"),be=n("/kpp"),_e=n("YMnH"),Ee=n("ZvpZ"),Xe=function(_t){var er=_t.prefixCls,yt=_t.label,Ar=_t.htmlFor,Sr=_t.labelCol,Cn=_t.labelAlign,mr=_t.colon,Pr=_t.required,gr=_t.requiredMark,Jt=Object(_e.b)("Form"),Dt=A()(Jt,1),dn=Dt[0];return yt?h.createElement(e.Consumer,{key:"label"},function(Fn){var Zn,ci=Fn.vertical,Xi=Fn.labelAlign,Gn=Fn.labelCol,ei=Fn.colon,Zt,Nt=Sr||Gn||{},Me=Cn||Xi,ke="".concat(er,"-item-label"),Pe=a()(ke,Me==="left"&&"".concat(ke,"-left"),Nt.className),tt=yt,vt=mr===!0||ei!==!1&&mr!==!1,St=vt&&!ci;St&&typeof yt=="string"&&yt.trim()!==""&&(tt=yt.replace(/[:|]\s*$/,"")),gr==="optional"&&!Pr&&(tt=h.createElement(h.Fragment,null,tt,h.createElement("span",{className:"".concat(er,"-item-optional")},(dn==null?void 0:dn.optional)||((Zt=Ee.a.Form)===null||Zt===void 0?void 0:Zt.optional))));var Vt=a()((Zn={},f()(Zn,"".concat(er,"-item-required"),Pr),f()(Zn,"".concat(er,"-item-required-mark-optional"),gr==="optional"),f()(Zn,"".concat(er,"-item-no-colon"),!vt),Zn));return h.createElement(be.a,p()({},Nt,{className:Pe}),h.createElement("label",{htmlFor:Ar,className:Vt,title:typeof yt=="string"?yt:""},tt))}):null},He=Xe,nt=n("gZBC"),Ie=n.n(nt),oe=n("kbBi"),ot=n.n(oe),he=n("J84W"),J=n.n(he),Y=n("sKbD"),q=n.n(Y),fe=n("YrtM"),we=n("HTfv"),Ne=n("hkKa");function je(de,_t,er){var yt=h.useRef({errors:de,visible:!!de.length}),Ar=Object(Ne.a)(),Sr=function(){var mr=yt.current.visible,Pr=!!de.length,gr=yt.current.errors;yt.current.errors=de,yt.current.visible=Pr,mr!==Pr?_t(Pr):(gr.length!==de.length||gr.some(function(Jt,Dt){return Jt!==de[Dt]}))&&Ar()};return h.useEffect(function(){if(!er){var Cn=setTimeout(Sr,10);return function(){return clearTimeout(Cn)}}},[de]),er&&Sr(),[yt.current.visible,yt.current.errors]}var me={success:J.a,warning:q.a,error:ot.a,validating:Ie.a},Ce=function(_t){var er=_t.prefixCls,yt=_t.wrapperCol,Ar=_t.children,Sr=_t.help,Cn=_t.errors,mr=_t.onDomErrorVisibleChange,Pr=_t.hasFeedback,gr=_t.validateStatus,Jt=_t.extra,Dt=Object(Ne.a)(),dn="".concat(er,"-item"),Fn=h.useContext(e),Zn=yt||Fn.wrapperCol||{},ci=a()("".concat(dn,"-control"),Zn.className),Xi=je(Cn,function(tt){tt&&Promise.resolve().then(function(){mr(!0)}),Dt()},!!Sr),Gn=A()(Xi,2),ei=Gn[0],Zt=Gn[1];h.useEffect(function(){return function(){mr(!1)}},[]);var Nt=Object(fe.a)(function(){return Zt},ei,function(tt,vt){return vt}),Me=gr&&me[gr],ke=Pr&&Me?h.createElement("span",{className:"".concat(dn,"-children-icon")},h.createElement(Me,null)):null,Pe=p()({},Fn);return delete Pe.labelCol,delete Pe.wrapperCol,h.createElement(e.Provider,{value:Pe},h.createElement(be.a,p()({},Zn,{className:ci}),h.createElement("div",{className:"".concat(dn,"-control-input")},h.createElement("div",{className:"".concat(dn,"-control-input-content")},Ar),ke),h.createElement(we.default,{motionDeadline:500,visible:ei,motionName:"show-help",onLeaveEnd:function(){mr(!1)},motionAppear:!0,removeOnLeave:!0},function(tt){var vt=tt.className;return h.createElement("div",{className:a()("".concat(dn,"-explain"),vt),key:"help"},Nt.map(function(St,Vt){return h.createElement("div",{key:Vt,role:"alert"},St)}))}),Jt&&h.createElement("div",{className:"".concat(dn,"-extra")},Jt)))},Fe=Ce,it=n("0n0R"),Ct=n("xEkU"),mt=n.n(Ct);function Ve(de){var _t=h.useState(de),er=A()(_t,2),yt=er[0],Ar=er[1],Sr=Object(h.useRef)(null),Cn=Object(h.useRef)([]),mr=Object(h.useRef)(!1);h.useEffect(function(){return function(){mr.current=!0,mt.a.cancel(Sr.current)}},[]);function Pr(gr){if(mr.current)return;Sr.current===null&&(Cn.current=[],Sr.current=mt()(function(){Sr.current=null,Ar(function(Jt){var Dt=Jt;return Cn.current.forEach(function(dn){Dt=dn(Dt)}),Dt})})),Cn.current.push(gr)}return[yt,Pr]}function or(){var de=h.useContext(e),_t=de.itemRef,er=h.useRef({});function yt(Ar,Sr){var Cn=Sr&&j()(Sr)==="object"&&Sr.ref,mr=Ar.join("_");return(er.current.name!==mr||er.current.originRef!==Cn)&&(er.current.name=mr,er.current.originRef=Cn,er.current.ref=Object(re.a)(_t(Ar),Cn)),er.current.ref}return yt}var dt=function(de,_t){var er={};for(var yt in de)Object.prototype.hasOwnProperty.call(de,yt)&&_t.indexOf(yt)<0&&(er[yt]=de[yt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ar=0,yt=Object.getOwnPropertySymbols(de);Ar<yt.length;Ar++)_t.indexOf(yt[Ar])<0&&Object.prototype.propertyIsEnumerable.call(de,yt[Ar])&&(er[yt[Ar]]=de[yt[Ar]]);return er},Yt=Object(ue.a)("success","warning","error","validating",""),hr=h.memo(function(de){var _t=de.children;return _t},function(de,_t){return de.value===_t.value&&de.update===_t.update});function Gt(de){return de===null&&Object($.a)(!1,"Form.Item","`null` is passed as `name` property"),!(de==null)}function Pt(de){var _t=de.name,er=de.fieldKey,yt=de.noStyle,Ar=de.dependencies,Sr=de.prefixCls,Cn=de.style,mr=de.className,Pr=de.shouldUpdate,gr=de.hasFeedback,Jt=de.help,Dt=de.rules,dn=de.validateStatus,Fn=de.children,Zn=de.required,ci=de.label,Xi=de.trigger,Gn=Xi===void 0?"onChange":Xi,ei=de.validateTrigger,Zt=de.hidden,Nt=dt(de,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Me=h.useRef(!1),ke=h.useContext(t.b),Pe=ke.getPrefixCls,tt=h.useContext(e),vt=tt.name,St=tt.requiredMark,Vt=h.useContext(l),Mr=Vt.updateItemErrors,$r=h.useState(!!Jt),vn=A()($r,2),jt=vn[0],gt=vn[1],pt=h.useRef(dn),ar=Ve({}),Ht=A()(ar,2),Mt=Ht[0],qt=Ht[1],Rt=h.useContext(G.b),Qt=Rt.validateTrigger,jr=ei!==void 0?ei:Qt;function Nr(rt){Me.current||gt(rt)}var Lr=Gt(_t),ln=h.useRef([]);h.useEffect(function(){return function(){Me.current=!0,Mr(ln.current.join("__SPLIT__"),[])}},[]);var mn=Pe("form",Sr),ti=yt?Mr:function(rt,Re){qt(function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(Ue[rt],Re)?Ue:p()(p()({},Ue),f()({},rt,Re))})},$n=or();function hi(rt,Re,Ue,Ye){var et,$e;if(yt&&!Zt)return rt;var at=[];Object.keys(Mt).forEach(function(Jr){at=[].concat(z()(at),z()(Mt[Jr]||[]))});var wt;Jt!=null?wt=T(Jt):(wt=Ue?Ue.errors:[],wt=[].concat(z()(wt),z()(at)));var ft="";dn!==void 0?ft=dn:(Ue==null?void 0:Ue.validating)?ft="validating":(($e=Ue==null?void 0:Ue.errors)===null||$e===void 0?void 0:$e.length)||at.length?ft="error":(Ue==null?void 0:Ue.touched)&&(ft="success"),jt&&Jt&&(pt.current=ft);var cr=(et={},f()(et,"".concat(mn,"-item"),!0),f()(et,"".concat(mn,"-item-with-help"),jt||Jt),f()(et,"".concat(mr),!!mr),f()(et,"".concat(mn,"-item-has-feedback"),ft&&gr),f()(et,"".concat(mn,"-item-has-success"),ft==="success"),f()(et,"".concat(mn,"-item-has-warning"),ft==="warning"),f()(et,"".concat(mn,"-item-has-error"),ft==="error"),f()(et,"".concat(mn,"-item-has-error-leave"),!Jt&&jt&&pt.current==="error"),f()(et,"".concat(mn,"-item-is-validating"),ft==="validating"),f()(et,"".concat(mn,"-item-hidden"),Zt),et);return h.createElement(ee.a,p()({className:a()(cr),style:Cn,key:"row"},Object(o.default)(Nt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),h.createElement(He,p()({htmlFor:Re,required:Ye,requiredMark:St},de,{prefixCls:mn})),h.createElement(Fe,p()({},de,Ue,{errors:wt,prefixCls:mn,onDomErrorVisibleChange:Nr,validateStatus:ft}),h.createElement(l.Provider,{value:{updateItemErrors:ti}},rt)))}var Ti=typeof Fn=="function",Ni=h.useRef(0);if(Ni.current+=1,!Lr&&!Ti&&!Ar)return hi(Fn);var Wi={};return typeof ci=="string"&&(Wi.label=ci),h.createElement(i.Field,p()({},de,{messageVariables:Wi,trigger:Gn,validateTrigger:jr,onReset:function(){Nr(!1)}}),function(rt,Re,Ue){var Ye=Re.errors,et=T(_t).length&&Re?Re.name:[],$e=w(et,vt);if(yt){if(ln.current=z()(et),er){var at=Array.isArray(er)?er:[er];ln.current=[].concat(z()(et.slice(0,-1)),z()(at))}Mr(ln.current.join("__SPLIT__"),Ye)}var wt=Zn!==void 0?Zn:!!(Dt&&Dt.some(function(fn){if(fn&&j()(fn)==="object"&&fn.required)return!0;if(typeof fn=="function"){var pr=fn(Ue);return pr&&pr.required}return!1})),ft=p()({},rt),cr=null;if(Object($.a)(!(Pr&&Ar),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Fn)&&Lr)Object($.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),cr=Fn;else if(Ti&&(!(Pr||Ar)||Lr))Object($.a)(!!(Pr||Ar),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object($.a)(!Lr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(Ar&&!Ti&&!Lr)Object($.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(it.b)(Fn)){Object($.a)(Fn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Jr=p()(p()({},Fn.props),ft);Jr.id||(Jr.id=$e),Object(re.c)(Fn)&&(Jr.ref=$n(et,Fn));var Qr=new Set([].concat(z()(T(Gn)),z()(T(jr))));Qr.forEach(function(fn){Jr[fn]=function(){for(var pr,Wn,kr,kn,bn,qr=arguments.length,fi=new Array(qr),Mi=0;Mi<qr;Mi++)fi[Mi]=arguments[Mi];(kr=ft[fn])===null||kr===void 0||(pr=kr).call.apply(pr,[ft].concat(fi)),(bn=(kn=Fn.props)[fn])===null||bn===void 0||(Wn=bn).call.apply(Wn,[kn].concat(fi))}}),cr=h.createElement(hr,{value:ft[de.valuePropName||"value"],update:Ni.current},Object(it.a)(Fn,Jr))}else Ti&&(Pr||Ar)&&!Lr?cr=Fn(Ue):(Object($.a)(!et.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),cr=Fn);return hi(cr,$e,Re,wt)})}var Xt=Pt,Ge=function(de,_t){var er={};for(var yt in de)Object.prototype.hasOwnProperty.call(de,yt)&&_t.indexOf(yt)<0&&(er[yt]=de[yt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ar=0,yt=Object.getOwnPropertySymbols(de);Ar<yt.length;Ar++)_t.indexOf(yt[Ar])<0&&Object.prototype.propertyIsEnumerable.call(de,yt[Ar])&&(er[yt[Ar]]=de[yt[Ar]]);return er},pe=function(_t){var er=_t.children,yt=Ge(_t,["children"]);return Object($.a)(!!yt.name,"Form.List","Miss `name` prop."),h.createElement(i.List,yt,function(Ar,Sr){return er(Ar.map(function(Cn){return p()(p()({},Cn),{fieldKey:Cn.key})}),Sr)})},se=pe,lt=X;lt.Item=Xt,lt.List=se,lt.useForm=I,lt.Provider=r,lt.create=function(){Object($.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Ze=D.a=lt},VpOo:function(k,D){function n(y,p){var x=p.x,A=p.y,m=p.width,f=p.height,h=p.r,u,a,i,t;m<0&&(x=x+m,m=-m),f<0&&(A=A+f,f=-f),typeof h=="number"?u=a=i=t=h:h instanceof Array?h.length===1?u=a=i=t=h[0]:h.length===2?(u=i=h[0],a=t=h[1]):h.length===3?(u=h[0],a=t=h[1],i=h[2]):(u=h[0],a=h[1],i=h[2],t=h[3]):u=a=i=t=0;var o;u+a>m&&(o=u+a,u*=m/o,a*=m/o),i+t>m&&(o=i+t,i*=m/o,t*=m/o),a+i>f&&(o=a+i,a*=f/o,i*=f/o),u+t>f&&(o=u+t,u*=f/o,t*=f/o),y.moveTo(x+u,A),y.lineTo(x+m-a,A),a!==0&&y.arc(x+m-a,A+a,a,-Math.PI/2,0),y.lineTo(x+m,A+f-i),i!==0&&y.arc(x+m-i,A+f-i,i,0,Math.PI/2),y.lineTo(x+t,A+f),t!==0&&y.arc(x+t,A+f-t,t,Math.PI/2,Math.PI),y.lineTo(x,A+u),u!==0&&y.arc(x+u,A+u,u,Math.PI,Math.PI*1.5)}D.buildPath=n},"VrN/":function(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";var y=navigator.userAgent,p=navigator.platform,x=/gecko\/\d/i.test(y),A=/MSIE \d/.test(y),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),f=/Edge\/(\d+)/.exec(y),h=A||m||f,u=h&&(A?document.documentMode||6:+(f||m)[1]),a=!f&&/WebKit\//.test(y),i=a&&/Qt\/\d+\.\d+/.test(y),t=!f&&/Chrome\//.test(y),o=/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),d=s||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(y),g=s||/Mac/.test(p),v=/\bCrOS\b/.test(y),b=/win/i.test(p),S=o&&y.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(o=!1,a=!0);var E=g&&(i||o&&(S==null||S<12.11)),C=x||h&&u>=9;function _(N){return new RegExp("(^|\\s)"+N+"(?:$|\\s)\\s*")}var T=function(U,ie){var le=U.className,ge=_(ie).exec(le);if(ge){var Ke=le.slice(ge.index+ge[0].length);U.className=le.slice(0,ge.index)+(Ke?ge[1]+Ke:"")}};function w(N){for(var U=N.childNodes.length;U>0;--U)N.removeChild(N.firstChild);return N}function O(N,U){return w(N).appendChild(U)}function I(N,U,ie,le){var ge=document.createElement(N);if(ie&&(ge.className=ie),le&&(ge.style.cssText=le),typeof U=="string")ge.appendChild(document.createTextNode(U));else if(U)for(var Ke=0;Ke<U.length;++Ke)ge.appendChild(U[Ke]);return ge}function R(N,U,ie,le){var ge=I(N,U,ie,le);return ge.setAttribute("role","presentation"),ge}var M;document.createRange?M=function(U,ie,le,ge){var Ke=document.createRange();return Ke.setEnd(ge||U,le),Ke.setStart(U,ie),Ke}:M=function(U,ie,le){var ge=document.body.createTextRange();try{ge.moveToElementText(U.parentNode)}catch(Ke){return ge}return ge.collapse(!0),ge.moveEnd("character",le),ge.moveStart("character",ie),ge};function F(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 B(N,U){for(var ie=N.split(" "),le=0;le<ie.length;le++)ie[le]&&!_(ie[le]).test(U)&&(U+=" "+ie[le]);return U}var j=function(U){U.select()};s?j=function(U){U.selectionStart=0,U.selectionEnd=U.value.length}:h&&(j=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 z(N,U,ie){U||(U={});for(var le in N)N.hasOwnProperty(le)&&(ie!==!1||!U.hasOwnProperty(le))&&(U[le]=N[le]);return U}function V(N,U,ie,le,ge){U==null&&(U=N.search(/[^\s\u00a0]/),U==-1&&(U=N.length));for(var Ke=le||0,Tt=ge||0;;){var tr=N.indexOf(" ",Ke);if(tr<0||tr>=U)return Tt+(U-Ke);Tt+=tr-Ke,Tt+=ie-Tt%ie,Ke=tr+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 re=50,ee={toString:function(){return"CodeMirror.Pass"}},ue={scroll:!1},$={origin:"*mouse"},be={origin:"+move"};function _e(N,U,ie){for(var le=0,ge=0;;){var Ke=N.indexOf(" ",le);Ke==-1&&(Ke=N.length);var Tt=Ke-le;if(Ke==N.length||ge+Tt>=U)return le+Math.min(Tt,U-ge);if(ge+=Ke-le,ge+=ie-ge%ie,le=Ke+1,ge>=U)return le}}var Ee=[""];function Xe(N){for(;Ee.length<=N;)Ee.push(He(Ee)+" ");return Ee[N]}function He(N){return N[N.length-1]}function nt(N,U){for(var ie=[],le=0;le<N.length;le++)ie[le]=U(N[le],le);return ie}function Ie(N,U,ie){for(var le=0,ge=ie(U);le<N.length&&ie(N[le])<=ge;)le++;N.splice(le,0,U)}function oe(){}function ot(N,U){var ie;return Object.create?ie=Object.create(N):(oe.prototype=N,ie=new oe),U&&z(U,ie),ie}var he=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||he.test(N))}function Y(N,U){return U?U.source.indexOf("\\w")>-1&&J(N)?!0:U.test(N):J(N)}function q(N){for(var U in N)if(N.hasOwnProperty(U)&&N[U])return!1;return!0}var fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function we(N){return N.charCodeAt(0)>=768&&fe.test(N)}function Ne(N,U,ie){for(;(ie<0?U>0:U<N.length)&&we(N.charAt(U));)U+=ie;return U}function je(N,U,ie){for(var le=U>ie?-1:1;;){if(U==ie)return U;var ge=(U+ie)/2,Ke=le<0?Math.ceil(ge):Math.floor(ge);if(Ke==U)return N(Ke)?U:ie;N(Ke)?ie=Ke:U=Ke+le}}function me(N,U,ie,le){if(!N)return le(U,ie,"ltr",0);for(var ge=!1,Ke=0;Ke<N.length;++Ke){var Tt=N[Ke];(Tt.from<ie&&Tt.to>U||U==ie&&Tt.to==U)&&(le(Math.max(Tt.from,U),Math.min(Tt.to,ie),Tt.level==1?"rtl":"ltr",Ke),ge=!0)}ge||le(U,ie,"ltr")}var Ce=null;function Fe(N,U,ie){var le;Ce=null;for(var ge=0;ge<N.length;++ge){var Ke=N[ge];if(Ke.from<U&&Ke.to>U)return ge;Ke.to==U&&(Ke.from!=Ke.to&&ie=="before"?le=ge:Ce=ge),Ke.from==U&&(Ke.from!=Ke.to&&ie!="before"?le=ge:Ce=ge)}return le!=null?le:Ce}var it=function(){var N="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",U="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(Cr){return Cr<=247?N.charAt(Cr):1424<=Cr&&Cr<=1524?"R":1536<=Cr&&Cr<=1785?U.charAt(Cr-1536):1774<=Cr&&Cr<=2220?"r":8192<=Cr&&Cr<=8203?"w":Cr==8204?"b":"L"}var le=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ge=/[stwN]/,Ke=/[LRr]/,Tt=/[Lb1n]/,tr=/[1n]/;function yr(Cr,Bn,qn){this.level=Cr,this.from=Bn,this.to=qn}return function(Cr,Bn){var qn=Bn=="ltr"?"L":"R";if(Cr.length==0||Bn=="ltr"&&!le.test(Cr))return!1;for(var Si=Cr.length,Ci=[],la=0;la<Si;++la)Ci.push(ie(Cr.charCodeAt(la)));for(var Ta=0,Wa=qn;Ta<Si;++Ta){var ka=Ci[Ta];ka=="m"?Ci[Ta]=Wa:Wa=ka}for(var Na=0,qa=qn;Na<Si;++Na){var ho=Ci[Na];ho=="1"&&qa=="r"?Ci[Na]="n":Ke.test(ho)&&(qa=ho,ho=="r"&&(Ci[Na]="R"))}for(var ns=1,Mo=Ci[0];ns<Si-1;++ns){var Ss=Ci[ns];Ss=="+"&&Mo=="1"&&Ci[ns+1]=="1"?Ci[ns]="1":Ss==","&&Mo==Ci[ns+1]&&(Mo=="1"||Mo=="n")&&(Ci[ns]=Mo),Mo=Ss}for(var Zs=0;Zs<Si;++Zs){var yl=Ci[Zs];if(yl==",")Ci[Zs]="N";else if(yl=="%"){var ul=void 0;for(ul=Zs+1;ul<Si&&Ci[ul]=="%";++ul);for(var Pl=Zs&&Ci[Zs-1]=="!"||ul<Si&&Ci[ul]=="1"?"1":"N",Vl=Zs;Vl<ul;++Vl)Ci[Vl]=Pl;Zs=ul-1}}for(var Il=0,Gl=qn;Il<Si;++Il){var Fl=Ci[Il];Gl=="L"&&Fl=="1"?Ci[Il]="L":Ke.test(Fl)&&(Gl=Fl)}for(var Ja=0;Ja<Si;++Ja)if(ge.test(Ci[Ja])){var vl=void 0;for(vl=Ja+1;vl<Si&&ge.test(Ci[vl]);++vl);for(var gl=(Ja?Ci[Ja-1]:qn)=="L",El=(vl<Si?Ci[vl]:qn)=="L",Bu=gl==El?gl?"L":"R":qn,Hs=Ja;Hs<vl;++Hs)Ci[Hs]=Bu;Ja=vl-1}for(var vs=[],lu,Kl=0;Kl<Si;)if(Tt.test(Ci[Kl])){var Uu=Kl;for(++Kl;Kl<Si&&Tt.test(Ci[Kl]);++Kl);vs.push(new yr(0,Uu,Kl))}else{var Eu=Kl,uu=vs.length,ku=Bn=="rtl"?1:0;for(++Kl;Kl<Si&&Ci[Kl]!="L";++Kl);for(var Yl=Eu;Yl<Kl;)if(tr.test(Ci[Yl])){Eu<Yl&&(vs.splice(uu,0,new yr(1,Eu,Yl)),uu+=ku);var Tu=Yl;for(++Yl;Yl<Kl&&tr.test(Ci[Yl]);++Yl);vs.splice(uu,0,new yr(2,Tu,Yl)),uu+=ku,Eu=Yl}else++Yl;Eu<Kl&&vs.splice(uu,0,new yr(1,Eu,Kl))}return Bn=="ltr"&&(vs[0].level==1&&(lu=Cr.match(/^\s+/))&&(vs[0].from=lu[0].length,vs.unshift(new yr(0,0,lu[0].length))),He(vs).level==1&&(lu=Cr.match(/\s+$/))&&(He(vs).to-=lu[0].length,vs.push(new yr(0,Si-lu[0].length,Si)))),Bn=="rtl"?vs.reverse():vs}}();function Ct(N,U){var ie=N.order;return ie==null&&(ie=N.order=it(N.text,U)),ie}var mt=[],Ve=function(U,ie,le){if(U.addEventListener)U.addEventListener(ie,le,!1);else if(U.attachEvent)U.attachEvent("on"+ie,le);else{var ge=U._handlers||(U._handlers={});ge[ie]=(ge[ie]||mt).concat(le)}};function or(N,U){return N._handlers&&N._handlers[U]||mt}function dt(N,U,ie){if(N.removeEventListener)N.removeEventListener(U,ie,!1);else if(N.detachEvent)N.detachEvent("on"+U,ie);else{var le=N._handlers,ge=le&&le[U];if(ge){var Ke=G(ge,ie);Ke>-1&&(le[U]=ge.slice(0,Ke).concat(ge.slice(Ke+1)))}}}function Yt(N,U){var ie=or(N,U);if(!ie.length)return;for(var le=Array.prototype.slice.call(arguments,2),ge=0;ge<ie.length;++ge)ie[ge].apply(null,le)}function hr(N,U,ie){return typeof U=="string"&&(U={type:U,preventDefault:function(){this.defaultPrevented=!0}}),Yt(N,ie||U.type,N,U),se(U)||U.codemirrorIgnore}function Gt(N){var U=N._handlers&&N._handlers.cursorActivity;if(!U)return;for(var ie=N.curOp.cursorActivityHandlers||(N.curOp.cursorActivityHandlers=[]),le=0;le<U.length;++le)G(ie,U[le])==-1&&ie.push(U[le])}function Pt(N,U){return or(N,U).length>0}function Xt(N){N.prototype.on=function(U,ie){Ve(this,U,ie)},N.prototype.off=function(U,ie){dt(this,U,ie)}}function Ge(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function pe(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function se(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function lt(N){Ge(N),pe(N)}function Ze(N){return N.target||N.srcElement}function de(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(h&&u<9)return!1;var N=I("div");return"draggable"in N||"dragDrop"in N}(),er;function yt(N){if(er==null){var U=I("span","\u200B");O(N,I("span",[U,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(er=U.offsetWidth<=1&&U.offsetHeight>2&&!(h&&u<8))}var ie=er?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var Ar;function Sr(N){if(Ar!=null)return Ar;var U=O(N,document.createTextNode("A\u062EA")),ie=M(U,0,1).getBoundingClientRect(),le=M(U,1,2).getBoundingClientRect();return w(N),!ie||ie.left==ie.right?!1:Ar=le.right-ie.right<3}var Cn=`
b`.split(/\n/).length!=3?function(N){for(var U=0,ie=[],le=N.length;U<=le;){var ge=N.indexOf(`
`,U);ge==-1&&(ge=N.length);var Ke=N.slice(U,N.charAt(ge-1)=="\r"?ge-1:ge),Tt=Ke.indexOf("\r");Tt!=-1?(ie.push(Ke.slice(0,Tt)),U+=Tt+1):(ie.push(Ke),U=ge+1)}return ie}:function(N){return N.split(/\r\n?|\n/)},mr=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},Pr=function(){var N=I("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),gr=null;function Jt(N){if(gr!=null)return gr;var U=O(N,I("span","x")),ie=U.getBoundingClientRect(),le=M(U,0,1).getBoundingClientRect();return gr=Math.abs(ie.left-le.left)>1}var Dt={},dn={};function Fn(N,U){arguments.length>2&&(U.dependencies=Array.prototype.slice.call(arguments,2)),Dt[N]=U}function Zn(N,U){dn[N]=U}function ci(N){if(typeof N=="string"&&dn.hasOwnProperty(N))N=dn[N];else if(N&&typeof N.name=="string"&&dn.hasOwnProperty(N.name)){var U=dn[N.name];typeof U=="string"&&(U={name:U}),N=ot(U,N),N.name=U.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return ci("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return ci("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function Xi(N,U){U=ci(U);var ie=Dt[U.name];if(!ie)return Xi(N,"text/plain");var le=ie(N,U);if(Gn.hasOwnProperty(U.name)){var ge=Gn[U.name];for(var Ke in ge){if(!ge.hasOwnProperty(Ke))continue;le.hasOwnProperty(Ke)&&(le["_"+Ke]=le[Ke]),le[Ke]=ge[Ke]}}if(le.name=U.name,U.helperType&&(le.helperType=U.helperType),U.modeProps)for(var Tt in U.modeProps)le[Tt]=U.modeProps[Tt];return le}var Gn={};function ei(N,U){var ie=Gn.hasOwnProperty(N)?Gn[N]:Gn[N]={};z(U,ie)}function Zt(N,U){if(U===!0)return U;if(N.copyState)return N.copyState(U);var ie={};for(var le in U){var ge=U[le];ge instanceof Array&&(ge=ge.concat([])),ie[le]=ge}return ie}function Nt(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 Me(N,U,ie){return N.startState?N.startState(U,ie):!0}var ke=function(U,ie,le){this.pos=this.start=0,this.string=U,this.tabSize=ie||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=le};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.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},ke.prototype.eatWhile=function(N){for(var U=this.pos;this.eat(N););return this.pos>U},ke.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(N){var U=this.string.indexOf(N,this.pos);if(U>-1)return this.pos=U,!0},ke.prototype.backUp=function(N){this.pos-=N},ke.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)},ke.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(N,U,ie){if(typeof N=="string"){var le=function(tr){return ie?tr.toLowerCase():tr},ge=this.string.substr(this.pos,N.length);if(le(ge)==le(N))return U!==!1&&(this.pos+=N.length),!0}else{var Ke=this.string.slice(this.pos).match(N);return Ke&&Ke.index>0?null:(Ke&&U!==!1&&(this.pos+=Ke[0].length),Ke)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(N,U){this.lineStart+=N;try{return U()}finally{this.lineStart-=N}},ke.prototype.lookAhead=function(N){var U=this.lineOracle;return U&&U.lookAhead(N)},ke.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Pe(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 le=0;;++le){var ge=ie.children[le],Ke=ge.chunkSize();if(U<Ke){ie=ge;break}U-=Ke}return ie.lines[U]}function tt(N,U,ie){var le=[],ge=U.line;return N.iter(U.line,ie.line+1,function(Ke){var Tt=Ke.text;ge==ie.line&&(Tt=Tt.slice(0,ie.ch)),ge==U.line&&(Tt=Tt.slice(U.ch)),le.push(Tt),++ge}),le}function vt(N,U,ie){var le=[];return N.iter(U,ie,function(ge){le.push(ge.text)}),le}function St(N,U){var ie=U-N.height;if(ie)for(var le=N;le;le=le.parent)le.height+=ie}function Vt(N){if(N.parent==null)return null;for(var U=N.parent,ie=G(U.lines,N),le=U.parent;le;U=le,le=le.parent)for(var ge=0;!(le.children[ge]==U);++ge)ie+=le.children[ge].chunkSize();return ie+U.first}function Mr(N,U){var ie=N.first;e:do{for(var le=0;le<N.children.length;++le){var ge=N.children[le],Ke=ge.height;if(U<Ke){N=ge;continue e}U-=Ke,ie+=ge.chunkSize()}return ie}while(!N.lines);for(var Tt=0;Tt<N.lines.length;++Tt){var tr=N.lines[Tt],yr=tr.height;if(U<yr)break;U-=yr}return ie+Tt}function $r(N,U){return U>=N.first&&U<N.first+N.size}function vn(N,U){return String(N.lineNumberFormatter(U+N.firstLineNumber))}function jt(N,U,ie){if(ie===void 0&&(ie=null),!(this instanceof jt))return new jt(N,U,ie);this.line=N,this.ch=U,this.sticky=ie}function gt(N,U){return N.line-U.line||N.ch-U.ch}function pt(N,U){return N.sticky==U.sticky&&gt(N,U)==0}function ar(N){return jt(N.line,N.ch)}function Ht(N,U){return gt(N,U)<0?U:N}function Mt(N,U){return gt(N,U)<0?N:U}function qt(N,U){return Math.max(N.first,Math.min(U,N.first+N.size-1))}function Rt(N,U){if(U.line<N.first)return jt(N.first,0);var ie=N.first+N.size-1;return U.line>ie?jt(ie,Pe(N,ie).text.length):Qt(U,Pe(N,U.line).text.length)}function Qt(N,U){var ie=N.ch;return ie==null||ie>U?jt(N.line,U):ie<0?jt(N.line,0):N}function jr(N,U){for(var ie=[],le=0;le<U.length;le++)ie[le]=Rt(N,U[le]);return ie}var Nr=function(U,ie){this.state=U,this.lookAhead=ie},Lr=function(U,ie,le,ge){this.state=ie,this.doc=U,this.line=le,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};Lr.prototype.lookAhead=function(N){var U=this.doc.getLine(this.line+N);return U!=null&&N>this.maxLookAhead&&(this.maxLookAhead=N),U},Lr.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}},Lr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Lr.fromSaved=function(N,U,ie){return U instanceof Nr?new Lr(N,Zt(N.mode,U.state),ie,U.lookAhead):new Lr(N,Zt(N.mode,U),ie)},Lr.prototype.save=function(N){var U=N!==!1?Zt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nr(U,this.maxLookAhead):U};function ln(N,U,ie,le){var ge=[N.state.modeGen],Ke={};Re(N,U.text,N.doc.mode,ie,function(Cr,Bn){return ge.push(Cr,Bn)},Ke,le);for(var Tt=ie.state,tr=function(Bn){ie.baseTokens=ge;var qn=N.state.overlays[Bn],Si=1,Ci=0;ie.state=!0,Re(N,U.text,qn.mode,ie,function(la,Ta){for(var Wa=Si;Ci<la;){var ka=ge[Si];ka>la&&ge.splice(Si,1,la,ge[Si+1],ka),Si+=2,Ci=Math.min(la,ka)}if(!Ta)return;if(qn.opaque)ge.splice(Wa,Si-Wa,la,"overlay "+Ta),Si=Wa+2;else for(;Wa<Si;Wa+=2){var Na=ge[Wa+1];ge[Wa+1]=(Na?Na+" ":"")+"overlay "+Ta}},Ke),ie.state=Tt,ie.baseTokens=null,ie.baseTokenPos=1},yr=0;yr<N.state.overlays.length;++yr)tr(yr);return{styles:ge,classes:Ke.bgClass||Ke.textClass?Ke:null}}function mn(N,U,ie){if(!U.styles||U.styles[0]!=N.state.modeGen){var le=ti(N,Vt(U)),ge=U.text.length>N.options.maxHighlightLength&&Zt(N.doc.mode,le.state),Ke=ln(N,U,le);ge&&(le.state=ge),U.stateAfter=le.save(!ge),U.styles=Ke.styles,Ke.classes?U.styleClasses=Ke.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 ti(N,U,ie){var le=N.doc,ge=N.display;if(!le.mode.startState)return new Lr(le,!0,U);var Ke=Ue(N,U,ie),Tt=Ke>le.first&&Pe(le,Ke-1).stateAfter,tr=Tt?Lr.fromSaved(le,Tt,Ke):new Lr(le,Me(le.mode),Ke);return le.iter(Ke,U,function(yr){$n(N,yr.text,tr);var Cr=tr.line;yr.stateAfter=Cr==U-1||Cr%5==0||Cr>=ge.viewFrom&&Cr<ge.viewTo?tr.save():null,tr.nextLine()}),ie&&(le.modeFrontier=tr.line),tr}function $n(N,U,ie,le){var ge=N.doc.mode,Ke=new ke(U,N.options.tabSize,ie);for(Ke.start=Ke.pos=le||0,U==""&&hi(ge,ie.state);!Ke.eol();)Ti(ge,Ke,ie.state),Ke.start=Ke.pos}function hi(N,U){if(N.blankLine)return N.blankLine(U);if(!N.innerMode)return;var ie=Nt(N,U);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}function Ti(N,U,ie,le){for(var ge=0;ge<10;ge++){le&&(le[0]=Nt(N,ie).mode);var Ke=N.token(U,ie);if(U.pos>U.start)return Ke}throw new Error("Mode "+N.name+" failed to advance stream.")}var Ni=function(U,ie,le){this.start=U.start,this.end=U.pos,this.string=U.current(),this.type=ie||null,this.state=le};function Wi(N,U,ie,le){var ge=N.doc,Ke=ge.mode,Tt;U=Rt(ge,U);var tr=Pe(ge,U.line),yr=ti(N,U.line,ie),Cr=new ke(tr.text,N.options.tabSize,yr),Bn;for(le&&(Bn=[]);(le||Cr.pos<U.ch)&&!Cr.eol();)Cr.start=Cr.pos,Tt=Ti(Ke,Cr,yr.state),le&&Bn.push(new Ni(Cr,Tt,Zt(ge.mode,yr.state)));return le?Bn:new Ni(Cr,Tt,yr.state)}function rt(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 le=ie[1]?"bgClass":"textClass";U[le]==null?U[le]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(U[le])||(U[le]+=" "+ie[2])}return N}function Re(N,U,ie,le,ge,Ke,Tt){var tr=ie.flattenSpans;tr==null&&(tr=N.options.flattenSpans);var yr=0,Cr=null,Bn=new ke(U,N.options.tabSize,le),qn,Si=N.options.addModeClass&&[null];for(U==""&&rt(hi(ie,le.state),Ke);!Bn.eol();){if(Bn.pos>N.options.maxHighlightLength?(tr=!1,Tt&&$n(N,U,le,Bn.pos),Bn.pos=U.length,qn=null):qn=rt(Ti(ie,Bn,le.state,Si),Ke),Si){var Ci=Si[0].name;Ci&&(qn="m-"+(qn?Ci+" "+qn:Ci))}if(!tr||Cr!=qn){for(;yr<Bn.start;)yr=Math.min(Bn.start,yr+5e3),ge(yr,Cr);Cr=qn}Bn.start=Bn.pos}for(;yr<Bn.pos;){var la=Math.min(Bn.pos,yr+5e3);ge(la,Cr),yr=la}}function Ue(N,U,ie){for(var le,ge,Ke=N.doc,Tt=ie?-1:U-(N.doc.mode.innerMode?1e3:100),tr=U;tr>Tt;--tr){if(tr<=Ke.first)return Ke.first;var yr=Pe(Ke,tr-1),Cr=yr.stateAfter;if(Cr&&(!ie||tr+(Cr instanceof Nr?Cr.lookAhead:0)<=Ke.modeFrontier))return tr;var Bn=V(yr.text,null,N.options.tabSize);(ge==null||le>Bn)&&(ge=tr-1,le=Bn)}return ge}function Ye(N,U){if(N.modeFrontier=Math.min(N.modeFrontier,U),N.highlightFrontier<U-10)return;for(var ie=N.first,le=U-1;le>ie;le--){var ge=Pe(N,le).stateAfter;if(ge&&(!(ge instanceof Nr)||le+ge.lookAhead<U)){ie=le+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ie)}var et=!1,$e=!1;function at(){et=!0}function wt(){$e=!0}function ft(N,U,ie){this.marker=N,this.from=U,this.to=ie}function cr(N,U){if(N)for(var ie=0;ie<N.length;++ie){var le=N[ie];if(le.marker==U)return le}}function Jr(N,U){for(var ie,le=0;le<N.length;++le)N[le]!=U&&(ie||(ie=[])).push(N[le]);return ie}function Qr(N,U){N.markedSpans=N.markedSpans?N.markedSpans.concat([U]):[U],U.marker.attachLine(N)}function fn(N,U,ie){var le;if(N)for(var ge=0;ge<N.length;++ge){var Ke=N[ge],Tt=Ke.marker,tr=Ke.from==null||(Tt.inclusiveLeft?Ke.from<=U:Ke.from<U);if(tr||Ke.from==U&&Tt.type=="bookmark"&&(!ie||!Ke.marker.insertLeft)){var yr=Ke.to==null||(Tt.inclusiveRight?Ke.to>=U:Ke.to>U);(le||(le=[])).push(new ft(Tt,Ke.from,yr?null:Ke.to))}}return le}function pr(N,U,ie){var le;if(N)for(var ge=0;ge<N.length;++ge){var Ke=N[ge],Tt=Ke.marker,tr=Ke.to==null||(Tt.inclusiveRight?Ke.to>=U:Ke.to>U);if(tr||Ke.from==U&&Tt.type=="bookmark"&&(!ie||Ke.marker.insertLeft)){var yr=Ke.from==null||(Tt.inclusiveLeft?Ke.from<=U:Ke.from<U);(le||(le=[])).push(new ft(Tt,yr?null:Ke.from-U,Ke.to==null?null:Ke.to-U))}}return le}function Wn(N,U){if(U.full)return null;var ie=$r(N,U.from.line)&&Pe(N,U.from.line).markedSpans,le=$r(N,U.to.line)&&Pe(N,U.to.line).markedSpans;if(!ie&&!le)return null;var ge=U.from.ch,Ke=U.to.ch,Tt=gt(U.from,U.to)==0,tr=fn(ie,ge,Tt),yr=pr(le,Ke,Tt),Cr=U.text.length==1,Bn=He(U.text).length+(Cr?ge:0);if(tr)for(var qn=0;qn<tr.length;++qn){var Si=tr[qn];if(Si.to==null){var Ci=cr(yr,Si.marker);Ci?Cr&&(Si.to=Ci.to==null?null:Ci.to+Bn):Si.to=ge}}if(yr)for(var la=0;la<yr.length;++la){var Ta=yr[la];if(Ta.to!=null&&(Ta.to+=Bn),Ta.from==null){var Wa=cr(tr,Ta.marker);Wa||(Ta.from=Bn,Cr&&(tr||(tr=[])).push(Ta))}else Ta.from+=Bn,Cr&&(tr||(tr=[])).push(Ta)}tr&&(tr=kr(tr)),yr&&yr!=tr&&(yr=kr(yr));var ka=[tr];if(!Cr){var Na=U.text.length-2,qa;if(Na>0&&tr)for(var ho=0;ho<tr.length;++ho)tr[ho].to==null&&(qa||(qa=[])).push(new ft(tr[ho].marker,null,null));for(var ns=0;ns<Na;++ns)ka.push(qa);ka.push(yr)}return ka}function kr(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 kn(N,U,ie){var le=null;if(N.iter(U.line,ie.line+1,function(Ci){if(Ci.markedSpans)for(var la=0;la<Ci.markedSpans.length;++la){var Ta=Ci.markedSpans[la].marker;Ta.readOnly&&(!le||G(le,Ta)==-1)&&(le||(le=[])).push(Ta)}}),!le)return null;for(var ge=[{from:U,to:ie}],Ke=0;Ke<le.length;++Ke)for(var Tt=le[Ke],tr=Tt.find(0),yr=0;yr<ge.length;++yr){var Cr=ge[yr];if(gt(Cr.to,tr.from)<0||gt(Cr.from,tr.to)>0)continue;var Bn=[yr,1],qn=gt(Cr.from,tr.from),Si=gt(Cr.to,tr.to);(qn<0||!Tt.inclusiveLeft&&!qn)&&Bn.push({from:Cr.from,to:tr.from}),(Si>0||!Tt.inclusiveRight&&!Si)&&Bn.push({from:tr.to,to:Cr.to}),ge.splice.apply(ge,Bn),yr+=Bn.length-3}return ge}function bn(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 qr(N,U){if(!U)return;for(var ie=0;ie<U.length;++ie)U[ie].marker.attachLine(N);N.markedSpans=U}function fi(N){return N.inclusiveLeft?-1:0}function Mi(N){return N.inclusiveRight?1:0}function Zi(N,U){var ie=N.lines.length-U.lines.length;if(ie!=0)return ie;var le=N.find(),ge=U.find(),Ke=gt(le.from,ge.from)||fi(N)-fi(U);if(Ke)return-Ke;var Tt=gt(le.to,ge.to)||Mi(N)-Mi(U);return Tt||U.id-N.id}function tn(N,U){var ie=$e&&N.markedSpans,le;if(ie)for(var ge=void 0,Ke=0;Ke<ie.length;++Ke)ge=ie[Ke],ge.marker.collapsed&&(U?ge.from:ge.to)==null&&(!le||Zi(le,ge.marker)<0)&&(le=ge.marker);return le}function En(N){return tn(N,!0)}function Vn(N){return tn(N,!1)}function Wt(N,U){var ie=$e&&N.markedSpans,le;if(ie)for(var ge=0;ge<ie.length;++ge){var Ke=ie[ge];Ke.marker.collapsed&&(Ke.from==null||Ke.from<U)&&(Ke.to==null||Ke.to>U)&&(!le||Zi(le,Ke.marker)<0)&&(le=Ke.marker)}return le}function Et(N,U,ie,le,ge){var Ke=Pe(N,U),Tt=$e&&Ke.markedSpans;if(Tt)for(var tr=0;tr<Tt.length;++tr){var yr=Tt[tr];if(!yr.marker.collapsed)continue;var Cr=yr.marker.find(0),Bn=gt(Cr.from,ie)||fi(yr.marker)-fi(ge),qn=gt(Cr.to,le)||Mi(yr.marker)-Mi(ge);if(Bn>=0&&qn<=0||Bn<=0&&qn>=0)continue;if(Bn<=0&&(yr.marker.inclusiveRight&&ge.inclusiveLeft?gt(Cr.to,ie)>=0:gt(Cr.to,ie)>0)||Bn>=0&&(yr.marker.inclusiveRight&&ge.inclusiveLeft?gt(Cr.from,le)<=0:gt(Cr.from,le)<0))return!0}}function kt(N){for(var U;U=En(N);)N=U.find(-1,!0).line;return N}function Bt(N){for(var U;U=Vn(N);)N=U.find(1,!0).line;return N}function Kt(N){for(var U,ie;U=Vn(N);)N=U.find(1,!0).line,(ie||(ie=[])).push(N);return ie}function Ot(N,U){var ie=Pe(N,U),le=kt(ie);return ie==le?U:Vt(le)}function sr(N,U){if(U>N.lastLine())return U;var ie=Pe(N,U),le;if(!fr(N,ie))return U;for(;le=Vn(ie);)ie=le.find(1,!0).line;return Vt(ie)+1}function fr(N,U){var ie=$e&&U.markedSpans;if(ie)for(var le=void 0,ge=0;ge<ie.length;++ge){if(le=ie[ge],!le.marker.collapsed)continue;if(le.from==null)return!0;if(le.marker.widgetNode)continue;if(le.from==0&&le.marker.inclusiveLeft&&vr(N,U,le))return!0}}function vr(N,U,ie){if(ie.to==null){var le=ie.marker.find(1,!0);return vr(N,le.line,cr(le.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==U.text.length)return!0;for(var ge=void 0,Ke=0;Ke<U.markedSpans.length;++Ke)if(ge=U.markedSpans[Ke],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==ie.to&&(ge.to==null||ge.to!=ie.from)&&(ge.marker.inclusiveLeft||ie.marker.inclusiveRight)&&vr(N,U,ge))return!0}function Rr(N){N=kt(N);for(var U=0,ie=N.parent,le=0;le<ie.lines.length;++le){var ge=ie.lines[le];if(ge==N)break;U+=ge.height}for(var Ke=ie.parent;Ke;ie=Ke,Ke=ie.parent)for(var Tt=0;Tt<Ke.children.length;++Tt){var tr=Ke.children[Tt];if(tr==ie)break;U+=tr.height}return U}function Kn(N){if(N.height==0)return 0;for(var U=N.text.length,ie,le=N;ie=En(le);){var ge=ie.find(0,!0);le=ge.from.line,U+=ge.from.ch-ge.to.ch}for(le=N;ie=Vn(le);){var Ke=ie.find(0,!0);U-=le.text.length-Ke.from.ch,le=Ke.to.line,U+=le.text.length-Ke.to.ch}return U}function Dn(N){var U=N.display,ie=N.doc;U.maxLine=Pe(ie,ie.first),U.maxLineLength=Kn(U.maxLine),U.maxLineChanged=!0,ie.iter(function(le){var ge=Kn(le);ge>U.maxLineLength&&(U.maxLineLength=ge,U.maxLine=le)})}var ui=function(U,ie,le){this.text=U,qr(this,ie),this.height=le?le(this):1};ui.prototype.lineNo=function(){return Vt(this)},Xt(ui);function pn(N,U,ie,le){N.text=U,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),bn(N),qr(N,ie);var ge=le?le(N):1;ge!=N.height&&St(N,ge)}function Br(N){N.parent=null,bn(N)}var Tn={},zn={};function Qn(N,U){if(!N||/^\s*$/.test(N))return null;var ie=U.addModeClass?zn:Tn;return ie[N]||(ie[N]=N.replace(/\S+/g,"cm-$&"))}function ii(N,U){var ie=R("span",null,null,a?"padding-right: .1px":null),le={pre:R("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:N,trailingSpace:!1,splitSpaces:N.getOption("lineWrapping")};U.measure={};for(var ge=0;ge<=(U.rest?U.rest.length:0);ge++){var Ke=ge?U.rest[ge-1]:U.line,Tt=void 0;le.pos=0,le.addToken=Di,Sr(N.display.measure)&&(Tt=Ct(Ke,N.doc.direction))&&(le.addToken=oa(le.addToken,Tt)),le.map=[];var tr=U!=N.display.externalMeasured&&Vt(Ke);ia(Ke,le,mn(N,Ke,tr)),Ke.styleClasses&&(Ke.styleClasses.bgClass&&(le.bgClass=B(Ke.styleClasses.bgClass,le.bgClass||"")),Ke.styleClasses.textClass&&(le.textClass=B(Ke.styleClasses.textClass,le.textClass||""))),le.map.length==0&&le.map.push(0,0,le.content.appendChild(yt(N.display.measure))),ge==0?(U.measure.map=le.map,U.measure.cache={}):((U.measure.maps||(U.measure.maps=[])).push(le.map),(U.measure.caches||(U.measure.caches=[])).push({}))}if(a){var yr=le.content.lastChild;(/\bcm-tab\b/.test(yr.className)||yr.querySelector&&yr.querySelector(".cm-tab"))&&(le.content.className="cm-tab-wrap-hack")}return Yt(N,"renderLine",N,U.line,le.pre),le.pre.className&&(le.textClass=B(le.pre.className,le.textClass||"")),le}function xi(N){var U=I("span","\u2022","cm-invalidchar");return U.title="\\u"+N.charCodeAt(0).toString(16),U.setAttribute("aria-label",U.title),U}function Di(N,U,ie,le,ge,Ke,Tt){if(!U)return;var tr=N.splitSpaces?Li(U,N.trailingSpace):U,yr=N.cm.state.specialChars,Cr=!1,Bn;if(!yr.test(U))N.col+=U.length,Bn=document.createTextNode(tr),N.map.push(N.pos,N.pos+U.length,Bn),h&&u<9&&(Cr=!0),N.pos+=U.length;else{Bn=document.createDocumentFragment();for(var qn=0;;){yr.lastIndex=qn;var Si=yr.exec(U),Ci=Si?Si.index-qn:U.length-qn;if(Ci){var la=document.createTextNode(tr.slice(qn,qn+Ci));h&&u<9?Bn.appendChild(I("span",[la])):Bn.appendChild(la),N.map.push(N.pos,N.pos+Ci,la),N.col+=Ci,N.pos+=Ci}if(!Si)break;qn+=Ci+1;var Ta=void 0;if(Si[0]==" "){var Wa=N.cm.options.tabSize,ka=Wa-N.col%Wa;Ta=Bn.appendChild(I("span",Xe(ka),"cm-tab")),Ta.setAttribute("role","presentation"),Ta.setAttribute("cm-text"," "),N.col+=ka}else Si[0]=="\r"||Si[0]==`
`?(Ta=Bn.appendChild(I("span",Si[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ta.setAttribute("cm-text",Si[0]),N.col+=1):(Ta=N.cm.options.specialCharPlaceholder(Si[0]),Ta.setAttribute("cm-text",Si[0]),h&&u<9?Bn.appendChild(I("span",[Ta])):Bn.appendChild(Ta),N.col+=1);N.map.push(N.pos,N.pos+1,Ta),N.pos++}}if(N.trailingSpace=tr.charCodeAt(U.length-1)==32,ie||le||ge||Cr||Ke||Tt){var Na=ie||"";le&&(Na+=le),ge&&(Na+=ge);var qa=I("span",[Bn],Na,Ke);if(Tt)for(var ho in Tt)Tt.hasOwnProperty(ho)&&ho!="style"&&ho!="class"&&qa.setAttribute(ho,Tt[ho]);return N.content.appendChild(qa)}N.content.appendChild(Bn)}function Li(N,U){if(N.length>1&&!/ /.test(N))return N;for(var ie=U,le="",ge=0;ge<N.length;ge++){var Ke=N.charAt(ge);Ke==" "&&ie&&(ge==N.length-1||N.charCodeAt(ge+1)==32)&&(Ke="\xA0"),le+=Ke,ie=Ke==" "}return le}function oa(N,U){return function(ie,le,ge,Ke,Tt,tr,yr){ge=ge?ge+" cm-force-border":"cm-force-border";for(var Cr=ie.pos,Bn=Cr+le.length;;){for(var qn=void 0,Si=0;Si<U.length&&!(qn=U[Si],qn.to>Cr&&qn.from<=Cr);Si++);if(qn.to>=Bn)return N(ie,le,ge,Ke,Tt,tr,yr);N(ie,le.slice(0,qn.to-Cr),ge,Ke,null,tr,yr),Ke=null,le=le.slice(qn.to-Cr),Cr=qn.to}}}function ma(N,U,ie,le){var ge=!le&&ie.widgetNode;ge&&N.map.push(N.pos,N.pos+U,ge),!le&&N.cm.display.input.needsContentAttribute&&(ge||(ge=N.content.appendChild(document.createElement("span"))),ge.setAttribute("cm-marker",ie.id)),ge&&(N.cm.display.input.setUneditable(ge),N.content.appendChild(ge)),N.pos+=U,N.trailingSpace=!1}function ia(N,U,ie){var le=N.markedSpans,ge=N.text,Ke=0;if(!le){for(var Tt=1;Tt<ie.length;Tt+=2)U.addToken(U,ge.slice(Ke,Ke=ie[Tt]),Qn(ie[Tt+1],U.cm.options));return}for(var tr=ge.length,yr=0,Cr=1,Bn="",qn,Si,Ci=0,la,Ta,Wa,ka,Na;;){if(Ci==yr){la=Ta=Wa=Si="",Na=null,ka=null,Ci=Infinity;for(var qa=[],ho=void 0,ns=0;ns<le.length;++ns){var Mo=le[ns],Ss=Mo.marker;if(Ss.type=="bookmark"&&Mo.from==yr&&Ss.widgetNode)qa.push(Ss);else if(Mo.from<=yr&&(Mo.to==null||Mo.to>yr||Ss.collapsed&&Mo.to==yr&&Mo.from==yr)){if(Mo.to!=null&&Mo.to!=yr&&Ci>Mo.to&&(Ci=Mo.to,Ta=""),Ss.className&&(la+=" "+Ss.className),Ss.css&&(Si=(Si?Si+";":"")+Ss.css),Ss.startStyle&&Mo.from==yr&&(Wa+=" "+Ss.startStyle),Ss.endStyle&&Mo.to==Ci&&(ho||(ho=[])).push(Ss.endStyle,Mo.to),Ss.title&&((Na||(Na={})).title=Ss.title),Ss.attributes)for(var Zs in Ss.attributes)(Na||(Na={}))[Zs]=Ss.attributes[Zs];Ss.collapsed&&(!ka||Zi(ka.marker,Ss)<0)&&(ka=Mo)}else Mo.from>yr&&Ci>Mo.from&&(Ci=Mo.from)}if(ho)for(var yl=0;yl<ho.length;yl+=2)ho[yl+1]==Ci&&(Ta+=" "+ho[yl]);if(!ka||ka.from==yr)for(var ul=0;ul<qa.length;++ul)ma(U,0,qa[ul]);if(ka&&(ka.from||0)==yr){if(ma(U,(ka.to==null?tr+1:ka.to)-yr,ka.marker,ka.from==null),ka.to==null)return;ka.to==yr&&(ka=!1)}}if(yr>=tr)break;for(var Pl=Math.min(tr,Ci);;){if(Bn){var Vl=yr+Bn.length;if(!ka){var Il=Vl>Pl?Bn.slice(0,Pl-yr):Bn;U.addToken(U,Il,qn?qn+la:la,Wa,yr+Il.length==Ci?Ta:"",Si,Na)}if(Vl>=Pl){Bn=Bn.slice(Pl-yr),yr=Pl;break}yr=Vl,Wa=""}Bn=ge.slice(Ke,Ke=ie[Cr++]),qn=Qn(ie[Cr++],U.cm.options)}}}function ba(N,U,ie){this.line=U,this.rest=Kt(U),this.size=this.rest?Vt(He(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=fr(N,U)}function vi(N,U,ie){for(var le=[],ge,Ke=U;Ke<ie;Ke=ge){var Tt=new ba(N.doc,Pe(N.doc,Ke),Ke);ge=Ke+Tt.size,le.push(Tt)}return le}var Ln=null;function Fi(N){Ln?Ln.ops.push(N):N.ownsGroup=Ln={ops:[N],delayedCallbacks:[]}}function ha(N){var U=N.delayedCallbacks,ie=0;do{for(;ie<U.length;ie++)U[ie].call(null);for(var le=0;le<N.ops.length;le++){var ge=N.ops[le];if(ge.cursorActivityHandlers)for(;ge.cursorActivityCalled<ge.cursorActivityHandlers.length;)ge.cursorActivityHandlers[ge.cursorActivityCalled++].call(null,ge.cm)}}while(ie<U.length)}function ea(N,U){var ie=N.ownsGroup;if(!ie)return;try{ha(ie)}finally{Ln=null,U(ie)}}var aa=null;function Ir(N,U){var ie=or(N,U);if(!ie.length)return;var le=Array.prototype.slice.call(arguments,2),ge;Ln?ge=Ln.delayedCallbacks:aa?ge=aa:(ge=aa=[],setTimeout(wr,0));for(var Ke=function(yr){ge.push(function(){return ie[yr].apply(null,le)})},Tt=0;Tt<ie.length;++Tt)Ke(Tt)}function wr(){var N=aa;aa=null;for(var U=0;U<N.length;++U)N[U]()}function xn(N,U,ie,le){for(var ge=0;ge<U.changes.length;ge++){var Ke=U.changes[ge];Ke=="text"?sn(N,U):Ke=="gutter"?xt(N,U,ie,le):Ke=="class"?Rn(N,U):Ke=="widget"&&_r(N,U,le)}U.changes=null}function ur(N){return N.node==N.text&&(N.node=I("div",null,null,"position: relative"),N.text.parentNode&&N.text.parentNode.replaceChild(N.node,N.text),N.node.appendChild(N.text),h&&u<8&&(N.node.style.zIndex=2)),N.node}function Dr(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 le=ur(U);U.background=le.insertBefore(I("div",null,ie),le.firstChild),N.display.input.setUneditable(U.background)}}function Vr(N,U){var ie=N.display.externalMeasured;return ie&&ie.line==U.line?(N.display.externalMeasured=null,U.measure=ie.measure,ie.built):ii(N,U)}function sn(N,U){var ie=U.text.className,le=Vr(N,U);U.text==U.node&&(U.node=le.pre),U.text.parentNode.replaceChild(le.pre,U.text),U.text=le.pre,le.bgClass!=U.bgClass||le.textClass!=U.textClass?(U.bgClass=le.bgClass,U.textClass=le.textClass,Rn(N,U)):ie&&(U.text.className=ie)}function Rn(N,U){Dr(N,U),U.line.wrapClass?ur(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 xt(N,U,ie,le){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 ge=ur(U);U.gutterBackground=I("div",null,"CodeMirror-gutter-background "+U.line.gutterClass,"left: "+(N.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px; width: "+le.gutterTotalWidth+"px"),N.display.input.setUneditable(U.gutterBackground),ge.insertBefore(U.gutterBackground,U.text)}var Ke=U.line.gutterMarkers;if(N.options.lineNumbers||Ke){var Tt=ur(U),tr=U.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(N.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px");if(N.display.input.setUneditable(tr),Tt.insertBefore(tr,U.text),U.line.gutterClass&&(tr.className+=" "+U.line.gutterClass),N.options.lineNumbers&&(!Ke||!Ke["CodeMirror-linenumbers"])&&(U.lineNumber=tr.appendChild(I("div",vn(N.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+le.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),Ke)for(var yr=0;yr<N.display.gutterSpecs.length;++yr){var Cr=N.display.gutterSpecs[yr].className,Bn=Ke.hasOwnProperty(Cr)&&Ke[Cr];Bn&&tr.appendChild(I("div",[Bn],"CodeMirror-gutter-elt","left: "+le.gutterLeft[Cr]+"px; width: "+le.gutterWidth[Cr]+"px"))}}}function _r(N,U,ie){U.alignable&&(U.alignable=null);for(var le=_("CodeMirror-linewidget"),ge=U.node.firstChild,Ke=void 0;ge;ge=Ke)Ke=ge.nextSibling,le.test(ge.className)&&U.node.removeChild(ge);en(N,U,ie)}function Or(N,U,ie,le){var ge=Vr(N,U);return U.text=U.node=ge.pre,ge.bgClass&&(U.bgClass=ge.bgClass),ge.textClass&&(U.textClass=ge.textClass),Rn(N,U),xt(N,U,ie,le),en(N,U,le),U.node}function en(N,U,ie){if(wn(N,U.line,U,ie,!0),U.rest)for(var le=0;le<U.rest.length;le++)wn(N,U.rest[le],U,ie,!1)}function wn(N,U,ie,le,ge){if(!U.widgets)return;for(var Ke=ur(ie),Tt=0,tr=U.widgets;Tt<tr.length;++Tt){var yr=tr[Tt],Cr=I("div",[yr.node],"CodeMirror-linewidget"+(yr.className?" "+yr.className:""));yr.handleMouseEvents||Cr.setAttribute("cm-ignore-events","true"),_n(yr,Cr,ie,le),N.display.input.setUneditable(Cr),ge&&yr.above?Ke.insertBefore(Cr,ie.gutter||ie.text):Ke.appendChild(Cr),Ir(yr,"redraw")}}function _n(N,U,ie,le){if(N.noHScroll){(ie.alignable||(ie.alignable=[])).push(U);var ge=le.wrapperWidth;U.style.left=le.fixedPos+"px",N.coverGutter||(ge-=le.gutterTotalWidth,U.style.paddingLeft=le.gutterTotalWidth+"px"),U.style.width=ge+"px"}N.coverGutter&&(U.style.zIndex=5,U.style.position="relative",N.noHScroll||(U.style.marginLeft=-le.gutterTotalWidth+"px"))}function yn(N){if(N.height!=null)return N.height;var U=N.doc.cm;if(!U)return 0;if(!F(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;"),O(U.display.measure,I("div",[N.node],null,ie))}return N.height=N.node.parentNode.offsetHeight}function Jn(N,U){for(var ie=Ze(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 Un(N){return N.lineSpace.offsetTop}function pi(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function ki(N){if(N.cachedPaddingH)return N.cachedPaddingH;var U=O(N.measure,I("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(U):U.currentStyle,le={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(le.left)&&!isNaN(le.right)&&(N.cachedPaddingH=le),le}function yi(N){return re-N.display.nativeBarWidth}function _i(N){return N.display.scroller.clientWidth-yi(N)-N.display.barWidth}function Ki(N){return N.display.scroller.clientHeight-yi(N)-N.display.barHeight}function qi(N,U,ie){var le=N.options.lineWrapping,ge=le&&_i(N);if(!U.measure.heights||le&&U.measure.width!=ge){var Ke=U.measure.heights=[];if(le){U.measure.width=ge;for(var Tt=U.text.firstChild.getClientRects(),tr=0;tr<Tt.length-1;tr++){var yr=Tt[tr],Cr=Tt[tr+1];Math.abs(yr.bottom-Cr.bottom)>2&&Ke.push((yr.bottom+Cr.top)/2-ie.top)}}Ke.push(ie.bottom-ie.top)}}function zi(N,U,ie){if(N.line==U)return{map:N.measure.map,cache:N.measure.cache};for(var le=0;le<N.rest.length;le++)if(N.rest[le]==U)return{map:N.measure.maps[le],cache:N.measure.caches[le]};for(var ge=0;ge<N.rest.length;ge++)if(Vt(N.rest[ge])>ie)return{map:N.measure.maps[ge],cache:N.measure.caches[ge],before:!0}}function Hi(N,U){U=kt(U);var ie=Vt(U),le=N.display.externalMeasured=new ba(N.doc,U,ie);le.lineN=ie;var ge=le.built=ii(N,le);return le.text=ge.pre,O(N.display.lineMeasure,ge.pre),le}function Ui(N,U,ie,le){return Ca(N,ca(N,U),ie,le)}function Qi(N,U){if(U>=N.display.viewFrom&&U<N.display.viewTo)return N.display.view[uo(N,U)];var ie=N.display.externalMeasured;if(ie&&U>=ie.lineN&&U<ie.lineN+ie.size)return ie}function ca(N,U){var ie=Vt(U),le=Qi(N,ie);le&&!le.text?le=null:le&&le.changes&&(xn(N,le,ie,os(N)),N.curOp.forceUpdate=!0),le||(le=Hi(N,U));var ge=zi(le,U,ie);return{line:U,view:le,rect:null,map:ge.map,cache:ge.cache,before:ge.before,hasHeights:!1}}function Ca(N,U,ie,le,ge){U.before&&(ie=-1);var Ke=ie+(le||""),Tt;return U.cache.hasOwnProperty(Ke)?Tt=U.cache[Ke]:(U.rect||(U.rect=U.view.text.getBoundingClientRect()),U.hasHeights||(qi(N,U.view,U.rect),U.hasHeights=!0),Tt=va(N,U,ie,le),Tt.bogus||(U.cache[Ke]=Tt)),{left:Tt.left,right:Tt.right,top:ge?Tt.rtop:Tt.top,bottom:ge?Tt.rbottom:Tt.bottom}}var ra={left:0,right:0,top:0,bottom:0};function Ma(N,U,ie){for(var le,ge,Ke,Tt,tr,yr,Cr=0;Cr<N.length;Cr+=3)if(tr=N[Cr],yr=N[Cr+1],U<tr?(ge=0,Ke=1,Tt="left"):U<yr?(ge=U-tr,Ke=ge+1):(Cr==N.length-3||U==yr&&N[Cr+3]>U)&&(Ke=yr-tr,ge=Ke-1,U>=yr&&(Tt="right")),ge!=null){if(le=N[Cr+2],tr==yr&&ie==(le.insertLeft?"left":"right")&&(Tt=ie),ie=="left"&&ge==0)for(;Cr&&N[Cr-2]==N[Cr-3]&&N[Cr-1].insertLeft;)le=N[(Cr-=3)+2],Tt="left";if(ie=="right"&&ge==yr-tr)for(;Cr<N.length-3&&N[Cr+3]==N[Cr+4]&&!N[Cr+5].insertLeft;)le=N[(Cr+=3)+2],Tt="right";break}return{node:le,start:ge,end:Ke,collapse:Tt,coverStart:tr,coverEnd:yr}}function La(N,U){var ie=ra;if(U=="left")for(var le=0;le<N.length&&!((ie=N[le]).left!=ie.right);le++);else for(var ge=N.length-1;ge>=0&&!((ie=N[ge]).left!=ie.right);ge--);return ie}function va(N,U,ie,le){var ge=Ma(U.map,ie,le),Ke=ge.node,Tt=ge.start,tr=ge.end,yr=ge.collapse,Cr;if(Ke.nodeType==3){for(var Bn=0;Bn<4;Bn++){for(;Tt&&we(U.line.text.charAt(ge.coverStart+Tt));)--Tt;for(;ge.coverStart+tr<ge.coverEnd&&we(U.line.text.charAt(ge.coverStart+tr));)++tr;if(h&&u<9&&Tt==0&&tr==ge.coverEnd-ge.coverStart?Cr=Ke.parentNode.getBoundingClientRect():Cr=La(M(Ke,Tt,tr).getClientRects(),le),Cr.left||Cr.right||Tt==0)break;tr=Tt,Tt=Tt-1,yr="right"}h&&u<11&&(Cr=ga(N.display.measure,Cr))}else{Tt>0&&(yr=le="right");var qn;N.options.lineWrapping&&(qn=Ke.getClientRects()).length>1?Cr=qn[le=="right"?qn.length-1:0]:Cr=Ke.getBoundingClientRect()}if(h&&u<9&&!Tt&&(!Cr||!Cr.left&&!Cr.right)){var Si=Ke.parentNode.getClientRects()[0];Si?Cr={left:Si.left,right:Si.left+Io(N.display),top:Si.top,bottom:Si.bottom}:Cr=ra}for(var Ci=Cr.top-U.rect.top,la=Cr.bottom-U.rect.top,Ta=(Ci+la)/2,Wa=U.view.measure.heights,ka=0;ka<Wa.length-1&&!(Ta<Wa[ka]);ka++);var Na=ka?Wa[ka-1]:0,qa=Wa[ka],ho={left:(yr=="right"?Cr.right:Cr.left)-U.rect.left,right:(yr=="left"?Cr.left:Cr.right)-U.rect.left,top:Na,bottom:qa};return!Cr.left&&!Cr.right&&(ho.bogus=!0),N.options.singleCursorHeightPerLine||(ho.rtop=Ci,ho.rbottom=la),ho}function ga(N,U){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Jt(N))return U;var ie=screen.logicalXDPI/screen.deviceXDPI,le=screen.logicalYDPI/screen.deviceYDPI;return{left:U.left*ie,right:U.right*ie,top:U.top*le,bottom:U.bottom*le}}function Oa(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 Aa(N){N.display.externalMeasure=null,w(N.display.lineMeasure);for(var U=0;U<N.display.view.length;U++)Oa(N.display.view[U])}function Ga(N){Aa(N),N.display.cachedCharWidth=N.display.cachedTextHeight=N.display.cachedPaddingH=null,N.options.lineWrapping||(N.display.maxLineChanged=!0),N.display.lineNumChars=null}function _a(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Va(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bi(N){var U=0;if(N.widgets)for(var ie=0;ie<N.widgets.length;++ie)N.widgets[ie].above&&(U+=yn(N.widgets[ie]));return U}function io(N,U,ie,le,ge){if(!ge){var Ke=Bi(U);ie.top+=Ke,ie.bottom+=Ke}if(le=="line")return ie;le||(le="local");var Tt=Rr(U);if(le=="local"?Tt+=Un(N.display):Tt-=N.display.viewOffset,le=="page"||le=="window"){var tr=N.display.lineSpace.getBoundingClientRect();Tt+=tr.top+(le=="window"?0:Va());var yr=tr.left+(le=="window"?0:_a());ie.left+=yr,ie.right+=yr}return ie.top+=Tt,ie.bottom+=Tt,ie}function oo(N,U,ie){if(ie=="div")return U;var le=U.left,ge=U.top;if(ie=="page")le-=_a(),ge-=Va();else if(ie=="local"||!ie){var Ke=N.display.sizer.getBoundingClientRect();le+=Ke.left,ge+=Ke.top}var Tt=N.display.lineSpace.getBoundingClientRect();return{left:le-Tt.left,top:ge-Tt.top}}function Qo(N,U,ie,le,ge){return le||(le=Pe(N.doc,U.line)),io(N,le,Ui(N,le,U.ch,ge),ie)}function mo(N,U,ie,le,ge,Ke){le=le||Pe(N.doc,U.line),ge||(ge=ca(N,le));function Tt(la,Ta){var Wa=Ca(N,ge,la,Ta?"right":"left",Ke);return Ta?Wa.left=Wa.right:Wa.right=Wa.left,io(N,le,Wa,ie)}var tr=Ct(le,N.doc.direction),yr=U.ch,Cr=U.sticky;if(yr>=le.text.length?(yr=le.text.length,Cr="before"):yr<=0&&(yr=0,Cr="after"),!tr)return Tt(Cr=="before"?yr-1:yr,Cr=="before");function Bn(la,Ta,Wa){var ka=tr[Ta],Na=ka.level==1;return Tt(Wa?la-1:la,Na!=Wa)}var qn=Fe(tr,yr,Cr),Si=Ce,Ci=Bn(yr,qn,Cr=="before");return Si!=null&&(Ci.other=Bn(yr,Si,Cr!="before")),Ci}function To(N,U){var ie=0;U=Rt(N.doc,U),N.options.lineWrapping||(ie=Io(N.display)*U.ch);var le=Pe(N.doc,U.line),ge=Rr(le)+Un(N.display);return{left:ie,right:ie,top:ge,bottom:ge+le.height}}function ao(N,U,ie,le,ge){var Ke=jt(N,U,ie);return Ke.xRel=ge,le&&(Ke.outside=le),Ke}function So(N,U,ie){var le=N.doc;if(ie+=N.display.viewOffset,ie<0)return ao(le.first,0,null,-1,-1);var ge=Mr(le,ie),Ke=le.first+le.size-1;if(ge>Ke)return ao(le.first+le.size-1,Pe(le,Ke).text.length,null,1,1);U<0&&(U=0);for(var Tt=Pe(le,ge);;){var tr=Uo(N,Tt,ge,U,ie),yr=Wt(Tt,tr.ch+(tr.xRel>0||tr.outside>0?1:0));if(!yr)return tr;var Cr=yr.find(1);if(Cr.line==ge)return Cr;Tt=Pe(le,ge=Cr.line)}}function bo(N,U,ie,le){le-=Bi(U);var ge=U.text.length,Ke=je(function(Tt){return Ca(N,ie,Tt-1).bottom<=le},ge,0);return ge=je(function(Tt){return Ca(N,ie,Tt).top>le},Ke,ge),{begin:Ke,end:ge}}function to(N,U,ie,le){ie||(ie=ca(N,U));var ge=io(N,U,Ca(N,ie,le),"line").top;return bo(N,U,ie,ge)}function Jo(N,U,ie,le){return N.bottom<=ie?!1:N.top>ie?!0:(le?N.left:N.right)>U}function Uo(N,U,ie,le,ge){ge-=Rr(U);var Ke=ca(N,U),Tt=Bi(U),tr=0,yr=U.text.length,Cr=!0,Bn=Ct(U,N.doc.direction);if(Bn){var qn=(N.options.lineWrapping?ts:wo)(N,U,ie,Ke,Bn,le,ge);Cr=qn.level!=1,tr=Cr?qn.from:qn.to-1,yr=Cr?qn.to:qn.from-1}var Si=null,Ci=null,la=je(function(ns){var Mo=Ca(N,Ke,ns);return Mo.top+=Tt,Mo.bottom+=Tt,Jo(Mo,le,ge,!1)?(Mo.top<=ge&&Mo.left<=le&&(Si=ns,Ci=Mo),!0):!1},tr,yr),Ta,Wa,ka=!1;if(Ci){var Na=le-Ci.left<Ci.right-le,qa=Na==Cr;la=Si+(qa?0:1),Wa=qa?"after":"before",Ta=Na?Ci.left:Ci.right}else{!Cr&&(la==yr||la==tr)&&la++,Wa=la==0?"after":la==U.text.length?"before":Ca(N,Ke,la-(Cr?1:0)).bottom+Tt<=ge==Cr?"after":"before";var ho=mo(N,jt(ie,la,Wa),"line",U,Ke);Ta=ho.left,ka=ge<ho.top?-1:ge>=ho.bottom?1:0}return la=Ne(U.text,la,1),ao(ie,la,Wa,ka,le-Ta)}function wo(N,U,ie,le,ge,Ke,Tt){var tr=je(function(qn){var Si=ge[qn],Ci=Si.level!=1;return Jo(mo(N,jt(ie,Ci?Si.to:Si.from,Ci?"before":"after"),"line",U,le),Ke,Tt,!0)},0,ge.length-1),yr=ge[tr];if(tr>0){var Cr=yr.level!=1,Bn=mo(N,jt(ie,Cr?yr.from:yr.to,Cr?"after":"before"),"line",U,le);Jo(Bn,Ke,Tt,!0)&&Bn.top>Tt&&(yr=ge[tr-1])}return yr}function ts(N,U,ie,le,ge,Ke,Tt){var tr=bo(N,U,le,Tt),yr=tr.begin,Cr=tr.end;/\s/.test(U.text.charAt(Cr-1))&&Cr--;for(var Bn=null,qn=null,Si=0;Si<ge.length;Si++){var Ci=ge[Si];if(Ci.from>=Cr||Ci.to<=yr)continue;var la=Ci.level!=1,Ta=Ca(N,le,la?Math.min(Cr,Ci.to)-1:Math.max(yr,Ci.from)).right,Wa=Ta<Ke?Ke-Ta+1e9:Ta-Ke;(!Bn||qn>Wa)&&(Bn=Ci,qn=Wa)}return Bn||(Bn=ge[ge.length-1]),Bn.from<yr&&(Bn={from:yr,to:Bn.to,level:Bn.level}),Bn.to>Cr&&(Bn={from:Bn.from,to:Cr,level:Bn.level}),Bn}var Ia;function Oo(N){if(N.cachedTextHeight!=null)return N.cachedTextHeight;if(Ia==null){Ia=I("pre",null,"CodeMirror-line-like");for(var U=0;U<49;++U)Ia.appendChild(document.createTextNode("x")),Ia.appendChild(I("br"));Ia.appendChild(document.createTextNode("x"))}O(N.measure,Ia);var ie=Ia.offsetHeight/50;return ie>3&&(N.cachedTextHeight=ie),w(N.measure),ie||1}function Io(N){if(N.cachedCharWidth!=null)return N.cachedCharWidth;var U=I("span","xxxxxxxxxx"),ie=I("pre",[U],"CodeMirror-line-like");O(N.measure,ie);var le=U.getBoundingClientRect(),ge=(le.right-le.left)/10;return ge>2&&(N.cachedCharWidth=ge),ge||10}function os(N){for(var U=N.display,ie={},le={},ge=U.gutters.clientLeft,Ke=U.gutters.firstChild,Tt=0;Ke;Ke=Ke.nextSibling,++Tt){var tr=N.display.gutterSpecs[Tt].className;ie[tr]=Ke.offsetLeft+Ke.clientLeft+ge,le[tr]=Ke.clientWidth}return{fixedPos:xo(U),gutterTotalWidth:U.gutters.offsetWidth,gutterLeft:ie,gutterWidth:le,wrapperWidth:U.wrapper.clientWidth}}function xo(N){return N.scroller.getBoundingClientRect().left-N.sizer.getBoundingClientRect().left}function rs(N){var U=Oo(N.display),ie=N.options.lineWrapping,le=ie&&Math.max(5,N.display.scroller.clientWidth/Io(N.display)-3);return function(ge){if(fr(N.doc,ge))return 0;var Ke=0;if(ge.widgets)for(var Tt=0;Tt<ge.widgets.length;Tt++)ge.widgets[Tt].height&&(Ke+=ge.widgets[Tt].height);return ie?Ke+(Math.ceil(ge.text.length/le)||1)*U:Ke+U}}function Ho(N){var U=N.doc,ie=rs(N);U.iter(function(le){var ge=ie(le);ge!=le.height&&St(le,ge)})}function _o(N,U,ie,le){var ge=N.display;if(!ie&&Ze(U).getAttribute("cm-not-content")=="true")return null;var Ke,Tt,tr=ge.lineSpace.getBoundingClientRect();try{Ke=U.clientX-tr.left,Tt=U.clientY-tr.top}catch(qn){return null}var yr=So(N,Ke,Tt),Cr;if(le&&yr.xRel>0&&(Cr=Pe(N.doc,yr.line).text).length==yr.ch){var Bn=V(Cr,Cr.length,N.options.tabSize)-Cr.length;yr=jt(yr.line,Math.max(0,Math.round((Ke-ki(N.display).left)/Io(N.display))-Bn))}return yr}function uo(N,U){if(U>=N.display.viewTo)return null;if(U-=N.display.viewFrom,U<0)return null;for(var ie=N.display.view,le=0;le<ie.length;le++)if(U-=ie[le].size,U<0)return le}function Ha(N,U,ie,le){U==null&&(U=N.doc.first),ie==null&&(ie=N.doc.first+N.doc.size),le||(le=0);var ge=N.display;if(le&&ie<ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>U)&&(ge.updateLineNumbers=U),N.curOp.viewChanged=!0,U>=ge.viewTo)$e&&Ot(N.doc,U)<ge.viewTo&&Er(N);else if(ie<=ge.viewFrom)$e&&sr(N.doc,ie+le)>ge.viewFrom?Er(N):(ge.viewFrom+=le,ge.viewTo+=le);else if(U<=ge.viewFrom&&ie>=ge.viewTo)Er(N);else if(U<=ge.viewFrom){var Ke=Zr(N,ie,ie+le,1);Ke?(ge.view=ge.view.slice(Ke.index),ge.viewFrom=Ke.lineN,ge.viewTo+=le):Er(N)}else if(ie>=ge.viewTo){var Tt=Zr(N,U,U,-1);Tt?(ge.view=ge.view.slice(0,Tt.index),ge.viewTo=Tt.lineN):Er(N)}else{var tr=Zr(N,U,U,-1),yr=Zr(N,ie,ie+le,1);tr&&yr?(ge.view=ge.view.slice(0,tr.index).concat(vi(N,tr.lineN,yr.lineN)).concat(ge.view.slice(yr.index)),ge.viewTo+=le):Er(N)}var Cr=ge.externalMeasured;Cr&&(ie<Cr.lineN?Cr.lineN+=le:U<Cr.lineN+Cr.size&&(ge.externalMeasured=null))}function ht(N,U,ie){N.curOp.viewChanged=!0;var le=N.display,ge=N.display.externalMeasured;if(ge&&U>=ge.lineN&&U<ge.lineN+ge.size&&(le.externalMeasured=null),U<le.viewFrom||U>=le.viewTo)return;var Ke=le.view[uo(N,U)];if(Ke.node==null)return;var Tt=Ke.changes||(Ke.changes=[]);G(Tt,ie)==-1&&Tt.push(ie)}function Er(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function Zr(N,U,ie,le){var ge=uo(N,U),Ke,Tt=N.display.view;if(!$e||ie==N.doc.first+N.doc.size)return{index:ge,lineN:ie};for(var tr=N.display.viewFrom,yr=0;yr<ge;yr++)tr+=Tt[yr].size;if(tr!=U){if(le>0){if(ge==Tt.length-1)return null;Ke=tr+Tt[ge].size-U,ge++}else Ke=tr-U;U+=Ke,ie+=Ke}for(;Ot(N.doc,ie)!=ie;){if(ge==(le<0?0:Tt.length-1))return null;ie+=le*Tt[ge-(le<0?1:0)].size,ge+=le}return{index:ge,lineN:ie}}function Xr(N,U,ie){var le=N.display,ge=le.view;ge.length==0||U>=le.viewTo||ie<=le.viewFrom?(le.view=vi(N,U,ie),le.viewFrom=U):(le.viewFrom>U?le.view=vi(N,U,le.viewFrom).concat(le.view):le.viewFrom<U&&(le.view=le.view.slice(uo(N,U))),le.viewFrom=U,le.viewTo<ie?le.view=le.view.concat(vi(N,le.viewTo,ie)):le.viewTo>ie&&(le.view=le.view.slice(0,uo(N,ie)))),le.viewTo=ie}function Xn(N){for(var U=N.display.view,ie=0,le=0;le<U.length;le++){var ge=U[le];!ge.hidden&&(!ge.node||ge.changes)&&++ie}return ie}function un(N){N.display.input.showSelection(N.display.input.prepareSelection())}function Gr(N,U){U===void 0&&(U=!0);for(var ie=N.doc,le={},ge=le.cursors=document.createDocumentFragment(),Ke=le.selection=document.createDocumentFragment(),Tt=0;Tt<ie.sel.ranges.length;Tt++){if(!U&&Tt==ie.sel.primIndex)continue;var tr=ie.sel.ranges[Tt];if(tr.from().line>=N.display.viewTo||tr.to().line<N.display.viewFrom)continue;var yr=tr.empty();(yr||N.options.showCursorWhenSelecting)&&ri(N,tr.head,ge),yr||jn(N,tr,Ke)}return le}function ri(N,U,ie){var le=mo(N,U,"div",null,null,!N.options.singleCursorHeightPerLine),ge=ie.appendChild(I("div","\xA0","CodeMirror-cursor"));if(ge.style.left=le.left+"px",ge.style.top=le.top+"px",ge.style.height=Math.max(0,le.bottom-le.top)*N.options.cursorHeight+"px",le.other){var Ke=ie.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ke.style.display="",Ke.style.left=le.other.left+"px",Ke.style.top=le.other.top+"px",Ke.style.height=(le.other.bottom-le.other.top)*.85+"px"}}function rn(N,U){return N.top-U.top||N.left-U.left}function jn(N,U,ie){var le=N.display,ge=N.doc,Ke=document.createDocumentFragment(),Tt=ki(N.display),tr=Tt.left,yr=Math.max(le.sizerWidth,_i(N)-le.sizer.offsetLeft)-Tt.right,Cr=ge.direction=="ltr";function Bn(qa,ho,ns,Mo){ho<0&&(ho=0),ho=Math.round(ho),Mo=Math.round(Mo),Ke.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+qa+`px;
top: `+ho+"px; width: "+(ns==null?yr-qa:ns)+`px;
height: `+(Mo-ho)+"px"))}function qn(qa,ho,ns){var Mo=Pe(ge,qa),Ss=Mo.text.length,Zs,yl;function ul(Il,Gl){return Qo(N,jt(qa,Il),"div",Mo,Gl)}function Pl(Il,Gl,Fl){var Ja=to(N,Mo,null,Il),vl=Gl=="ltr"==(Fl=="after")?"left":"right",gl=Fl=="after"?Ja.begin:Ja.end-(/\s/.test(Mo.text.charAt(Ja.end-1))?2:1);return ul(gl,vl)[vl]}var Vl=Ct(Mo,ge.direction);return me(Vl,ho||0,ns==null?Ss:ns,function(Il,Gl,Fl,Ja){var vl=Fl=="ltr",gl=ul(Il,vl?"left":"right"),El=ul(Gl-1,vl?"right":"left"),Bu=ho==null&&Il==0,Hs=ns==null&&Gl==Ss,vs=Ja==0,lu=!Vl||Ja==Vl.length-1;if(El.top-gl.top<=3){var Kl=(Cr?Bu:Hs)&&vs,Uu=(Cr?Hs:Bu)&&lu,Eu=Kl?tr:(vl?gl:El).left,uu=Uu?yr:(vl?El:gl).right;Bn(Eu,gl.top,uu-Eu,gl.bottom)}else{var ku,Yl,Tu,Vu;vl?(ku=Cr&&Bu&&vs?tr:gl.left,Yl=Cr?yr:Pl(Il,Fl,"before"),Tu=Cr?tr:Pl(Gl,Fl,"after"),Vu=Cr&&Hs&&lu?yr:El.right):(ku=Cr?Pl(Il,Fl,"before"):tr,Yl=!Cr&&Bu&&vs?yr:gl.right,Tu=!Cr&&Hs&&lu?tr:El.left,Vu=Cr?Pl(Gl,Fl,"after"):yr),Bn(ku,gl.top,Yl-ku,gl.bottom),gl.bottom<El.top&&Bn(tr,gl.bottom,null,El.top),Bn(Tu,El.top,Vu-Tu,El.bottom)}(!Zs||rn(gl,Zs)<0)&&(Zs=gl),rn(El,Zs)<0&&(Zs=El),(!yl||rn(gl,yl)<0)&&(yl=gl),rn(El,yl)<0&&(yl=El)}),{start:Zs,end:yl}}var Si=U.from(),Ci=U.to();if(Si.line==Ci.line)qn(Si.line,Si.ch,Ci.ch);else{var la=Pe(ge,Si.line),Ta=Pe(ge,Ci.line),Wa=kt(la)==kt(Ta),ka=qn(Si.line,Si.ch,Wa?la.text.length+1:null).end,Na=qn(Ci.line,Wa?0:null,Ci.ch).start;Wa&&(ka.top<Na.top-2?(Bn(ka.right,ka.top,null,ka.bottom),Bn(tr,Na.top,Na.left,Na.bottom)):Bn(ka.right,ka.top,Na.left-ka.right,ka.bottom)),ka.bottom<Na.top&&Bn(tr,ka.bottom,null,Na.top)}ie.appendChild(Ke)}function oi(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()||mi(N),U.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},N.options.cursorBlinkRate):N.options.cursorBlinkRate<0&&(U.cursorDiv.style.visibility="hidden")}function li(N){N.state.focused||(N.display.input.focus(),Ei(N))}function ai(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,mi(N))},100)}function Ei(N,U){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(Yt(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(),a&&setTimeout(function(){return N.display.input.reset(!0)},20)),N.display.input.receivedFocus()),oi(N)}function mi(N,U){if(N.state.delayingBlurEvent)return;N.state.focused&&(Yt(N,"blur",N,U),N.state.focused=!1,T(N.display.wrapper,"CodeMirror-focused")),clearInterval(N.display.blinker),setTimeout(function(){N.state.focused||(N.display.shift=!1)},150)}function Ai(N){for(var U=N.display,ie=U.lineDiv.offsetTop,le=0;le<U.view.length;le++){var ge=U.view[le],Ke=N.options.lineWrapping,Tt=void 0,tr=0;if(ge.hidden)continue;if(h&&u<8){var yr=ge.node.offsetTop+ge.node.offsetHeight;Tt=yr-ie,ie=yr}else{var Cr=ge.node.getBoundingClientRect();Tt=Cr.bottom-Cr.top,!Ke&&ge.text.firstChild&&(tr=ge.text.firstChild.getBoundingClientRect().right-Cr.left-1)}var Bn=ge.line.height-Tt;if((Bn>.005||Bn<-.005)&&(St(ge.line,Tt),Ii(ge.line),ge.rest))for(var qn=0;qn<ge.rest.length;qn++)Ii(ge.rest[qn]);if(tr>N.display.sizerWidth){var Si=Math.ceil(tr/Io(N.display));Si>N.display.maxLineLength&&(N.display.maxLineLength=Si,N.display.maxLine=ge.line,N.display.maxLineChanged=!0)}}}function Ii(N){if(N.widgets)for(var U=0;U<N.widgets.length;++U){var ie=N.widgets[U],le=ie.node.parentNode;le&&(ie.height=le.offsetHeight)}}function na(N,U,ie){var le=ie&&ie.top!=null?Math.max(0,ie.top):N.scroller.scrollTop;le=Math.floor(le-Un(N));var ge=ie&&ie.bottom!=null?ie.bottom:le+N.wrapper.clientHeight,Ke=Mr(U,le),Tt=Mr(U,ge);if(ie&&ie.ensure){var tr=ie.ensure.from.line,yr=ie.ensure.to.line;tr<Ke?(Ke=tr,Tt=Mr(U,Rr(Pe(U,tr))+N.wrapper.clientHeight)):Math.min(yr,U.lastLine())>=Tt&&(Ke=Mr(U,Rr(Pe(U,yr))-N.wrapper.clientHeight),Tt=yr)}return{from:Ke,to:Math.max(Tt,Ke+1)}}function ji(N,U){if(hr(N,"scrollCursorIntoView"))return;var ie=N.display,le=ie.sizer.getBoundingClientRect(),ge=null;if(U.top+le.top<0?ge=!0:U.bottom+le.top>(window.innerHeight||document.documentElement.clientHeight)&&(ge=!1),ge!=null&&!r){var Ke=I("div","\u200B",null,`position: absolute;
top: `+(U.top-ie.viewOffset-Un(N.display))+`px;
height: `+(U.bottom-U.top+yi(N)+ie.barHeight)+`px;
left: `+U.left+"px; width: "+Math.max(2,U.right-U.left)+"px;");N.display.lineSpace.appendChild(Ke),Ke.scrollIntoView(ge),N.display.lineSpace.removeChild(Ke)}}function fa(N,U,ie,le){le==null&&(le=0);var ge;!N.options.lineWrapping&&U==ie&&(U=U.ch?jt(U.line,U.sticky=="before"?U.ch-1:U.ch,"after"):U,ie=U.sticky=="before"?jt(U.line,U.ch+1,"before"):U);for(var Ke=0;Ke<5;Ke++){var Tt=!1,tr=mo(N,U),yr=!ie||ie==U?tr:mo(N,ie);ge={left:Math.min(tr.left,yr.left),top:Math.min(tr.top,yr.top)-le,right:Math.max(tr.left,yr.left),bottom:Math.max(tr.bottom,yr.bottom)+le};var Cr=xa(N,ge),Bn=N.doc.scrollTop,qn=N.doc.scrollLeft;if(Cr.scrollTop!=null&&(Ea(N,Cr.scrollTop),Math.abs(N.doc.scrollTop-Bn)>1&&(Tt=!0)),Cr.scrollLeft!=null&&(Ka(N,Cr.scrollLeft),Math.abs(N.doc.scrollLeft-qn)>1&&(Tt=!0)),!Tt)break}return ge}function Xa(N,U){var ie=xa(N,U);ie.scrollTop!=null&&Ea(N,ie.scrollTop),ie.scrollLeft!=null&&Ka(N,ie.scrollLeft)}function xa(N,U){var ie=N.display,le=Oo(N.display);U.top<0&&(U.top=0);var ge=N.curOp&&N.curOp.scrollTop!=null?N.curOp.scrollTop:ie.scroller.scrollTop,Ke=Ki(N),Tt={};U.bottom-U.top>Ke&&(U.bottom=U.top+Ke);var tr=N.doc.height+pi(ie),yr=U.top<le,Cr=U.bottom>tr-le;if(U.top<ge)Tt.scrollTop=yr?0:U.top;else if(U.bottom>ge+Ke){var Bn=Math.min(U.top,(Cr?tr:U.bottom)-Ke);Bn!=ge&&(Tt.scrollTop=Bn)}var qn=N.options.fixedGutter?0:ie.gutters.offsetWidth,Si=N.curOp&&N.curOp.scrollLeft!=null?N.curOp.scrollLeft:ie.scroller.scrollLeft-qn,Ci=_i(N)-ie.gutters.offsetWidth,la=U.right-U.left>Ci;return la&&(U.right=U.left+Ci),U.left<10?Tt.scrollLeft=0:U.left<Si?Tt.scrollLeft=Math.max(0,U.left+qn-(la?0:10)):U.right>Ci+Si-3&&(Tt.scrollLeft=U.right+(la?0:10)-Ci),Tt}function wa(N,U){if(U==null)return;ro(N),N.curOp.scrollTop=(N.curOp.scrollTop==null?N.doc.scrollTop:N.curOp.scrollTop)+U}function Da(N){ro(N);var U=N.getCursor();N.curOp.scrollToPos={from:U,to:U,margin:N.options.cursorScrollMargin}}function ja(N,U,ie){(U!=null||ie!=null)&&ro(N),U!=null&&(N.curOp.scrollLeft=U),ie!=null&&(N.curOp.scrollTop=ie)}function ko(N,U){ro(N),N.curOp.scrollToPos=U}function ro(N){var U=N.curOp.scrollToPos;if(U){N.curOp.scrollToPos=null;var ie=To(N,U.from),le=To(N,U.to);pa(N,ie,le,U.margin)}}function pa(N,U,ie,le){var ge=xa(N,{left:Math.min(U.left,ie.left),top:Math.min(U.top,ie.top)-le,right:Math.max(U.right,ie.right),bottom:Math.max(U.bottom,ie.bottom)+le});ja(N,ge.scrollLeft,ge.scrollTop)}function Ea(N,U){if(Math.abs(N.doc.scrollTop-U)<2)return;x||Qs(N,{top:U}),Fa(N,U,!0),x&&Qs(N),hs(N,100)}function Fa(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 Ka(N,U,ie,le){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)&&!le)return;N.doc.scrollLeft=U,al(N),N.display.scroller.scrollLeft!=U&&(N.display.scroller.scrollLeft=U),N.display.scrollbars.setScrollLeft(U)}function lo(N){var U=N.display,ie=U.gutters.offsetWidth,le=Math.round(N.doc.height+pi(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:le,scrollHeight:le+yi(N)+U.barHeight,nativeBarWidth:U.nativeBarWidth,gutterWidth:ie}}var so=function(U,ie,le){this.cm=le;var ge=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ke=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=Ke.tabIndex=-1,U(ge),U(Ke),Ve(ge,"scroll",function(){ge.clientHeight&&ie(ge.scrollTop,"vertical")}),Ve(Ke,"scroll",function(){Ke.clientWidth&&ie(Ke.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};so.prototype.update=function(N){var U=N.scrollWidth>N.clientWidth+1,ie=N.scrollHeight>N.clientHeight+1,le=N.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=U?le+"px":"0";var ge=N.viewHeight-(U?le:0);this.vert.firstChild.style.height=Math.max(0,N.scrollHeight-N.clientHeight+ge)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(U){this.horiz.style.display="block",this.horiz.style.right=ie?le+"px":"0",this.horiz.style.left=N.barLeft+"px";var Ke=N.viewWidth-N.barLeft-(ie?le:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+Ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(le==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?le:0,bottom:U?le:0}},so.prototype.setScrollLeft=function(N){this.horiz.scrollLeft!=N&&(this.horiz.scrollLeft=N),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},so.prototype.setScrollTop=function(N){this.vert.scrollTop!=N&&(this.vert.scrollTop=N),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},so.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},so.prototype.enableZeroWidthBar=function(N,U,ie){N.style.pointerEvents="auto";function le(){var ge=N.getBoundingClientRect(),Ke=ie=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);Ke!=N?N.style.pointerEvents="none":U.set(1e3,le)}U.set(1e3,le)},so.prototype.clear=function(){var N=this.horiz.parentNode;N.removeChild(this.horiz),N.removeChild(this.vert)};var Co=function(){};Co.prototype.update=function(){return{bottom:0,right:0}},Co.prototype.setScrollLeft=function(){},Co.prototype.setScrollTop=function(){},Co.prototype.clear=function(){};function Lo(N,U){U||(U=lo(N));var ie=N.display.barWidth,le=N.display.barHeight;is(N,U);for(var ge=0;ge<4&&ie!=N.display.barWidth||le!=N.display.barHeight;ge++)ie!=N.display.barWidth&&N.options.lineWrapping&&Ai(N),is(N,lo(N)),ie=N.display.barWidth,le=N.display.barHeight}function is(N,U){var ie=N.display,le=ie.scrollbars.update(U);ie.sizer.style.paddingRight=(ie.barWidth=le.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=le.bottom)+"px",ie.heightForcer.style.borderBottom=le.bottom+"px solid transparent",le.right&&le.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=le.bottom+"px",ie.scrollbarFiller.style.width=le.right+"px"):ie.scrollbarFiller.style.display="",le.bottom&&N.options.coverGutterNextToScrollbar&&N.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=le.bottom+"px",ie.gutterFiller.style.width=U.gutterWidth+"px"):ie.gutterFiller.style.display=""}var cs={native:so,null:Co};function Rs(N){N.display.scrollbars&&(N.display.scrollbars.clear(),N.display.scrollbars.addClass&&T(N.display.wrapper,N.display.scrollbars.addClass)),N.display.scrollbars=new cs[N.options.scrollbarStyle](function(U){N.display.wrapper.insertBefore(U,N.display.scrollbarFiller),Ve(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"?Ka(N,U):Ea(N,U)},N),N.display.scrollbars.addClass&&X(N.display.wrapper,N.display.scrollbars.addClass)}var Ko=0;function as(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},Fi(N.curOp)}function co(N){var U=N.curOp;U&&ea(U,function(ie){for(var le=0;le<ie.ops.length;le++)ie.ops[le].cm.curOp=null;Ao(ie)})}function Ao(N){for(var U=N.ops,ie=0;ie<U.length;ie++)$a(U[ie]);for(var le=0;le<U.length;le++)ss(U[le]);for(var ge=0;ge<U.length;ge++)Cs(U[ge]);for(var Ke=0;Ke<U.length;Ke++)Fo(U[Ke]);for(var Tt=0;Tt<U.length;Tt++)il(U[Tt])}function $a(N){var U=N.cm,ie=U.display;Ll(U),N.updateMaxLine&&Dn(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 Ns(U,N.mustUpdate&&{top:N.scrollTop,ensure:N.scrollToPos},N.forceUpdate)}function ss(N){N.updatedDisplay=N.mustUpdate&&ds(N.cm,N.update)}function Cs(N){var U=N.cm,ie=U.display;N.updatedDisplay&&Ai(U),N.barMeasure=lo(U),ie.maxLineChanged&&!U.options.lineWrapping&&(N.adjustWidthTo=Ui(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+yi(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 Fo(N){var U=N.cm;N.adjustWidthTo!=null&&(U.display.sizer.style.minWidth=N.adjustWidthTo+"px",N.maxScrollLeft<U.doc.scrollLeft&&Ka(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)&&Lo(U,N.barMeasure),N.updatedDisplay&&Us(U,N.barMeasure),N.selectionChanged&&oi(U),U.state.focused&&N.updateInput&&U.display.input.reset(N.typing),ie&&li(N.cm)}function il(N){var U=N.cm,ie=U.display,le=U.doc;if(N.updatedDisplay&&ks(U,N.update),ie.wheelStartX!=null&&(N.scrollTop!=null||N.scrollLeft!=null||N.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),N.scrollTop!=null&&Fa(U,N.scrollTop,N.forceScroll),N.scrollLeft!=null&&Ka(U,N.scrollLeft,!0,!0),N.scrollToPos){var ge=fa(U,Rt(le,N.scrollToPos.from),Rt(le,N.scrollToPos.to),N.scrollToPos.margin);ji(U,ge)}var Ke=N.maybeHiddenMarkers,Tt=N.maybeUnhiddenMarkers;if(Ke)for(var tr=0;tr<Ke.length;++tr)Ke[tr].lines.length||Yt(Ke[tr],"hide");if(Tt)for(var yr=0;yr<Tt.length;++yr)Tt[yr].lines.length&&Yt(Tt[yr],"unhide");ie.wrapper.offsetHeight&&(le.scrollTop=U.display.scroller.scrollTop),N.changeObjs&&Yt(U,"changes",U,N.changeObjs),N.update&&N.update.finish()}function Eo(N,U){if(N.curOp)return U();as(N);try{return U()}finally{co(N)}}function zo(N,U){return function(){if(N.curOp)return U.apply(N,arguments);as(N);try{return U.apply(N,arguments)}finally{co(N)}}}function Bs(N){return function(){if(this.curOp)return N.apply(this,arguments);as(this);try{return N.apply(this,arguments)}finally{co(this)}}}function ms(N){return function(){var U=this.cm;if(!U||U.curOp)return N.apply(this,arguments);as(U);try{return N.apply(this,arguments)}finally{co(U)}}}function hs(N,U){N.doc.highlightFrontier<N.display.viewTo&&N.state.highlight.set(U,W(An,N))}function An(N){var U=N.doc;if(U.highlightFrontier>=N.display.viewTo)return;var ie=+new Date+N.options.workTime,le=ti(N,U.highlightFrontier),ge=[];U.iter(le.line,Math.min(U.first+U.size,N.display.viewTo+500),function(Ke){if(le.line>=N.display.viewFrom){var Tt=Ke.styles,tr=Ke.text.length>N.options.maxHighlightLength?Zt(U.mode,le.state):null,yr=ln(N,Ke,le,!0);tr&&(le.state=tr),Ke.styles=yr.styles;var Cr=Ke.styleClasses,Bn=yr.classes;Bn?Ke.styleClasses=Bn:Cr&&(Ke.styleClasses=null);for(var qn=!Tt||Tt.length!=Ke.styles.length||Cr!=Bn&&(!Cr||!Bn||Cr.bgClass!=Bn.bgClass||Cr.textClass!=Bn.textClass),Si=0;!qn&&Si<Tt.length;++Si)qn=Tt[Si]!=Ke.styles[Si];qn&&ge.push(le.line),Ke.stateAfter=le.save(),le.nextLine()}else Ke.text.length<=N.options.maxHighlightLength&&$n(N,Ke.text,le),Ke.stateAfter=le.line%5==0?le.save():null,le.nextLine();if(+new Date>ie)return hs(N,N.options.workDelay),!0}),U.highlightFrontier=le.line,U.modeFrontier=Math.max(U.modeFrontier,le.line),ge.length&&Eo(N,function(){for(var Ke=0;Ke<ge.length;Ke++)ht(N,ge[Ke],"text")})}var Ns=function(U,ie,le){var ge=U.display;this.viewport=ie,this.visible=na(ge,U.doc,ie),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=_i(U),this.force=le,this.dims=os(U),this.events=[]};Ns.prototype.signal=function(N,U){Pt(N,U)&&this.events.push(arguments)},Ns.prototype.finish=function(){for(var N=0;N<this.events.length;N++)Yt.apply(null,this.events[N])};function Ll(N){var U=N.display;!U.scrollbarsClipped&&U.scroller.offsetWidth&&(U.nativeBarWidth=U.scroller.offsetWidth-U.scroller.clientWidth,U.heightForcer.style.height=yi(N)+"px",U.sizer.style.marginBottom=-U.nativeBarWidth+"px",U.sizer.style.borderRightWidth=yi(N)+"px",U.scrollbarsClipped=!0)}function el(N){if(N.hasFocus())return null;var U=P();if(!U||!F(N.display.lineDiv,U))return null;var ie={activeElt:U};if(window.getSelection){var le=window.getSelection();le.anchorNode&&le.extend&&F(N.display.lineDiv,le.anchorNode)&&(ie.anchorNode=le.anchorNode,ie.anchorOffset=le.anchorOffset,ie.focusNode=le.focusNode,ie.focusOffset=le.focusOffset)}return ie}function Gs(N){if(!N||!N.activeElt||N.activeElt==P())return;if(N.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(N.activeElt.nodeName)&&N.anchorNode&&F(document.body,N.anchorNode)&&F(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 ds(N,U){var ie=N.display,le=N.doc;if(U.editorIsHidden)return Er(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&&Xn(N)==0)return!1;Js(N)&&(Er(N),U.dims=os(N));var ge=le.first+le.size,Ke=Math.max(U.visible.from-N.options.viewportMargin,le.first),Tt=Math.min(ge,U.visible.to+N.options.viewportMargin);ie.viewFrom<Ke&&Ke-ie.viewFrom<20&&(Ke=Math.max(le.first,ie.viewFrom)),ie.viewTo>Tt&&ie.viewTo-Tt<20&&(Tt=Math.min(ge,ie.viewTo)),$e&&(Ke=Ot(N.doc,Ke),Tt=sr(N.doc,Tt));var tr=Ke!=ie.viewFrom||Tt!=ie.viewTo||ie.lastWrapHeight!=U.wrapperHeight||ie.lastWrapWidth!=U.wrapperWidth;Xr(N,Ke,Tt),ie.viewOffset=Rr(Pe(N.doc,ie.viewFrom)),N.display.mover.style.top=ie.viewOffset+"px";var yr=Xn(N);if(!tr&&yr==0&&!U.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var Cr=el(N);return yr>4&&(ie.lineDiv.style.display="none"),tl(N,ie.updateLineNumbers,U.dims),yr>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Gs(Cr),w(ie.cursorDiv),w(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,tr&&(ie.lastWrapHeight=U.wrapperHeight,ie.lastWrapWidth=U.wrapperWidth,hs(N,400)),ie.updateLineNumbers=null,!0}function ks(N,U){for(var ie=U.viewport,le=!0;;le=!1){if(!le||!N.options.lineWrapping||U.oldDisplayWidth==_i(N)){if(ie&&ie.top!=null&&(ie={top:Math.min(N.doc.height+pi(N.display)-Ki(N),ie.top)}),U.visible=na(N.display,N.doc,ie),U.visible.from>=N.display.viewFrom&&U.visible.to<=N.display.viewTo)break}else le&&(U.visible=na(N.display,N.doc,ie));if(!ds(N,U))break;Ai(N);var ge=lo(N);un(N),Lo(N,ge),Us(N,ge),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 Qs(N,U){var ie=new Ns(N,U);if(ds(N,ie)){Ai(N),ks(N,ie);var le=lo(N);un(N),Lo(N,le),Us(N,le),ie.finish()}}function tl(N,U,ie){var le=N.display,ge=N.options.lineNumbers,Ke=le.lineDiv,Tt=Ke.firstChild;function tr(la){var Ta=la.nextSibling;return a&&g&&N.display.currentWheelTarget==la?la.style.display="none":la.parentNode.removeChild(la),Ta}for(var yr=le.view,Cr=le.viewFrom,Bn=0;Bn<yr.length;Bn++){var qn=yr[Bn];if(!qn.hidden)if(!qn.node||qn.node.parentNode!=Ke){var Si=Or(N,qn,Cr,ie);Ke.insertBefore(Si,Tt)}else{for(;Tt!=qn.node;)Tt=tr(Tt);var Ci=ge&&U!=null&&U<=Cr&&qn.lineNumber;qn.changes&&(G(qn.changes,"gutter")>-1&&(Ci=!1),xn(N,qn,Cr,ie)),Ci&&(w(qn.lineNumber),qn.lineNumber.appendChild(document.createTextNode(vn(N.options,Cr)))),Tt=qn.node.nextSibling}Cr+=qn.size}for(;Tt;)Tt=tr(Tt)}function xs(N){var U=N.gutters.offsetWidth;N.sizer.style.marginLeft=U+"px"}function Us(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+yi(N)+"px"}function al(N){var U=N.display,ie=U.view;if(!U.alignWidgets&&(!U.gutters.firstChild||!N.options.fixedGutter))return;for(var le=xo(U)-U.scroller.scrollLeft+N.doc.scrollLeft,ge=U.gutters.offsetWidth,Ke=le+"px",Tt=0;Tt<ie.length;Tt++)if(!ie[Tt].hidden){N.options.fixedGutter&&(ie[Tt].gutter&&(ie[Tt].gutter.style.left=Ke),ie[Tt].gutterBackground&&(ie[Tt].gutterBackground.style.left=Ke));var tr=ie[Tt].alignable;if(tr)for(var yr=0;yr<tr.length;yr++)tr[yr].style.left=Ke}N.options.fixedGutter&&(U.gutters.style.left=le+ge+"px")}function Js(N){if(!N.options.lineNumbers)return!1;var U=N.doc,ie=vn(N.options,U.first+U.size-1),le=N.display;if(ie.length!=le.lineNumChars){var ge=le.measure.appendChild(I("div",[I("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ke=ge.firstChild.offsetWidth,Tt=ge.offsetWidth-Ke;return le.lineGutter.style.width="",le.lineNumInnerWidth=Math.max(Ke,le.lineGutter.offsetWidth-Tt)+1,le.lineNumWidth=le.lineNumInnerWidth+Tt,le.lineNumChars=le.lineNumInnerWidth?ie.length:-1,le.lineGutter.style.width=le.lineNumWidth+"px",xs(N.display),!0}return!1}function Vo(N,U){for(var ie=[],le=!1,ge=0;ge<N.length;ge++){var Ke=N[ge],Tt=null;if(typeof Ke!="string"&&(Tt=Ke.style,Ke=Ke.className),Ke=="CodeMirror-linenumbers")if(U)le=!0;else continue;ie.push({className:Ke,style:Tt})}return U&&!le&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function No(N){var U=N.gutters,ie=N.gutterSpecs;w(U),N.lineGutter=null;for(var le=0;le<ie.length;++le){var ge=ie[le],Ke=ge.className,Tt=ge.style,tr=U.appendChild(I("div",null,"CodeMirror-gutter "+Ke));Tt&&(tr.style.cssText=Tt),Ke=="CodeMirror-linenumbers"&&(N.lineGutter=tr,tr.style.width=(N.lineNumWidth||1)+"px")}U.style.display=ie.length?"":"none",xs(N)}function fs(N){No(N.display),Ha(N),al(N)}function Ds(N,U,ie,le){var ge=this;this.input=ie,ge.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),ge.scrollbarFiller.setAttribute("cm-not-content","true"),ge.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),ge.gutterFiller.setAttribute("cm-not-content","true"),ge.lineDiv=R("div",null,"CodeMirror-code"),ge.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),ge.cursorDiv=I("div",null,"CodeMirror-cursors"),ge.measure=I("div",null,"CodeMirror-measure"),ge.lineMeasure=I("div",null,"CodeMirror-measure"),ge.lineSpace=R("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var Ke=R("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=I("div",[Ke],null,"position: relative"),ge.sizer=I("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=I("div",null,null,"position: absolute; height: "+re+"px; width: 1px;"),ge.gutters=I("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=I("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=I("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),h&&u<8&&(ge.gutters.style.zIndex=-1,ge.scroller.style.paddingRight=0),!a&&!(x&&d)&&(ge.scroller.draggable=!0),N&&(N.appendChild?N.appendChild(ge.wrapper):N(ge.wrapper)),ge.viewFrom=ge.viewTo=U.first,ge.reportedViewFrom=ge.reportedViewTo=U.first,ge.view=[],ge.renderedView=null,ge.externalMeasured=null,ge.viewOffset=0,ge.lastWrapHeight=ge.lastWrapWidth=0,ge.updateLineNumbers=null,ge.nativeBarWidth=ge.barHeight=ge.barWidth=0,ge.scrollbarsClipped=!1,ge.lineNumWidth=ge.lineNumInnerWidth=ge.lineNumChars=null,ge.alignWidgets=!1,ge.cachedCharWidth=ge.cachedTextHeight=ge.cachedPaddingH=null,ge.maxLine=null,ge.maxLineLength=0,ge.maxLineChanged=!1,ge.wheelDX=ge.wheelDY=ge.wheelStartX=ge.wheelStartY=null,ge.shift=!1,ge.selForContextMenu=null,ge.activeTouch=null,ge.gutterSpecs=Vo(le.gutters,le.lineNumbers),No(ge),ie.init(ge)}var go=0,Ft=null;h?Ft=-.53:x?Ft=15:t?Ft=-.7:e&&(Ft=-1/3);function nr(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 On(N){var U=nr(N);return U.x*=Ft,U.y*=Ft,U}function di(N,U){var ie=nr(U),le=ie.x,ge=ie.y,Ke=N.display,Tt=Ke.scroller,tr=Tt.scrollWidth>Tt.clientWidth,yr=Tt.scrollHeight>Tt.clientHeight;if(!(le&&tr||ge&&yr))return;if(ge&&g&&a){e:for(var Cr=U.target,Bn=Ke.view;Cr!=Tt;Cr=Cr.parentNode)for(var qn=0;qn<Bn.length;qn++)if(Bn[qn].node==Cr){N.display.currentWheelTarget=Cr;break e}}if(le&&!x&&!o&&Ft!=null){ge&&yr&&Ea(N,Math.max(0,Tt.scrollTop+ge*Ft)),Ka(N,Math.max(0,Tt.scrollLeft+le*Ft)),(!ge||ge&&yr)&&Ge(U),Ke.wheelStartX=null;return}if(ge&&Ft!=null){var Si=ge*Ft,Ci=N.doc.scrollTop,la=Ci+Ke.wrapper.clientHeight;Si<0?Ci=Math.max(0,Ci+Si-50):la=Math.min(N.doc.height,la+Si+50),Qs(N,{top:Ci,bottom:la})}go<20&&(Ke.wheelStartX==null?(Ke.wheelStartX=Tt.scrollLeft,Ke.wheelStartY=Tt.scrollTop,Ke.wheelDX=le,Ke.wheelDY=ge,setTimeout(function(){if(Ke.wheelStartX==null)return;var Ta=Tt.scrollLeft-Ke.wheelStartX,Wa=Tt.scrollTop-Ke.wheelStartY,ka=Wa&&Ke.wheelDY&&Wa/Ke.wheelDY||Ta&&Ke.wheelDX&&Ta/Ke.wheelDX;if(Ke.wheelStartX=Ke.wheelStartY=null,!ka)return;Ft=(Ft*go+ka)/(go+1),++go},200)):(Ke.wheelDX+=le,Ke.wheelDY+=ge))}var It=function(U,ie){this.ranges=U,this.primIndex=ie};It.prototype.primary=function(){return this.ranges[this.primIndex]},It.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],le=N.ranges[U];if(!pt(ie.anchor,le.anchor)||!pt(ie.head,le.head))return!1}return!0},It.prototype.deepCopy=function(){for(var N=[],U=0;U<this.ranges.length;U++)N[U]=new ce(ar(this.ranges[U].anchor),ar(this.ranges[U].head));return new It(N,this.primIndex)},It.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},It.prototype.contains=function(N,U){U||(U=N);for(var ie=0;ie<this.ranges.length;ie++){var le=this.ranges[ie];if(gt(U,le.from())>=0&&gt(N,le.to())<=0)return ie}return-1};var ce=function(U,ie){this.anchor=U,this.head=ie};ce.prototype.from=function(){return Mt(this.anchor,this.head)},ce.prototype.to=function(){return Ht(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Se(N,U,ie){var le=N&&N.options.selectionsMayTouch,ge=U[ie];U.sort(function(Si,Ci){return gt(Si.from(),Ci.from())}),ie=G(U,ge);for(var Ke=1;Ke<U.length;Ke++){var Tt=U[Ke],tr=U[Ke-1],yr=gt(tr.to(),Tt.from());if(le&&!Tt.empty()?yr>0:yr>=0){var Cr=Mt(tr.from(),Tt.from()),Bn=Ht(tr.to(),Tt.to()),qn=tr.empty()?Tt.from()==Tt.head:tr.from()==tr.head;Ke<=ie&&--ie,U.splice(--Ke,2,new ce(qn?Bn:Cr,qn?Cr:Bn))}}return new It(U,ie)}function Le(N,U){return new It([new ce(N,U||N)],0)}function Qe(N){return N.text?jt(N.from.line+N.text.length-1,He(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function Lt(N,U){if(gt(N,U.from)<0)return N;if(gt(N,U.to)<=0)return Qe(U);var ie=N.line+U.text.length-(U.to.line-U.from.line)-1,le=N.ch;return N.line==U.to.line&&(le+=Qe(U).ch-U.to.ch),jt(ie,le)}function ir(N,U){for(var ie=[],le=0;le<N.sel.ranges.length;le++){var ge=N.sel.ranges[le];ie.push(new ce(Lt(ge.anchor,U),Lt(ge.head,U)))}return Se(N.cm,ie,N.sel.primIndex)}function Yr(N,U,ie){return N.line==U.line?jt(ie.line,N.ch-U.ch+ie.ch):jt(ie.line+(N.line-U.line),N.ch)}function hn(N,U,ie){for(var le=[],ge=jt(N.first,0),Ke=ge,Tt=0;Tt<U.length;Tt++){var tr=U[Tt],yr=Yr(tr.from,ge,Ke),Cr=Yr(Qe(tr),ge,Ke);if(ge=tr.to,Ke=Cr,ie=="around"){var Bn=N.sel.ranges[Tt],qn=gt(Bn.head,Bn.anchor)<0;le[Tt]=new ce(qn?Cr:yr,qn?yr:Cr)}else le[Tt]=new ce(yr,yr)}return new It(le,N.sel.primIndex)}function In(N){N.doc.mode=Xi(N.options,N.doc.modeOption),si(N)}function si(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,hs(N,100),N.state.modeGen++,N.curOp&&Ha(N)}function wi(N,U){return U.from.ch==0&&U.to.ch==0&&He(U.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function gi(N,U,ie,le){function ge(Na){return ie?ie[Na]:null}function Ke(Na,qa,ho){pn(Na,qa,ho,le),Ir(Na,"change",Na,U)}function Tt(Na,qa){for(var ho=[],ns=Na;ns<qa;++ns)ho.push(new ui(Cr[ns],ge(ns),le));return ho}var tr=U.from,yr=U.to,Cr=U.text,Bn=Pe(N,tr.line),qn=Pe(N,yr.line),Si=He(Cr),Ci=ge(Cr.length-1),la=yr.line-tr.line;if(U.full)N.insert(0,Tt(0,Cr.length)),N.remove(Cr.length,N.size-Cr.length);else if(wi(N,U)){var Ta=Tt(0,Cr.length-1);Ke(qn,qn.text,Ci),la&&N.remove(tr.line,la),Ta.length&&N.insert(tr.line,Ta)}else if(Bn==qn)if(Cr.length==1)Ke(Bn,Bn.text.slice(0,tr.ch)+Si+Bn.text.slice(yr.ch),Ci);else{var Wa=Tt(1,Cr.length-1);Wa.push(new ui(Si+Bn.text.slice(yr.ch),Ci,le)),Ke(Bn,Bn.text.slice(0,tr.ch)+Cr[0],ge(0)),N.insert(tr.line+1,Wa)}else if(Cr.length==1)Ke(Bn,Bn.text.slice(0,tr.ch)+Cr[0]+qn.text.slice(yr.ch),ge(0)),N.remove(tr.line+1,la);else{Ke(Bn,Bn.text.slice(0,tr.ch)+Cr[0],ge(0)),Ke(qn,Si+qn.text.slice(yr.ch),Ci);var ka=Tt(1,Cr.length-1);la>1&&N.remove(tr.line+1,la-1),N.insert(tr.line+1,ka)}Ir(N,"change",N,U)}function Gi(N,U,ie){function le(ge,Ke,Tt){if(ge.linked)for(var tr=0;tr<ge.linked.length;++tr){var yr=ge.linked[tr];if(yr.doc==Ke)continue;var Cr=Tt&&yr.sharedHist;if(ie&&!Cr)continue;U(yr.doc,Cr),le(yr.doc,ge,Cr)}}le(N,null,!0)}function sa(N,U){if(U.cm)throw new Error("This document is already in use.");N.doc=U,U.cm=N,Ho(N),In(N),Ua(N),N.options.lineWrapping||Dn(N),N.options.mode=U.modeOption,Ha(N)}function Ua(N){(N.doc.direction=="rtl"?X:T)(N.display.lineDiv,"CodeMirror-rtl")}function no(N){Eo(N,function(){Ua(N),Ha(N)})}function Wo(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 Zo(N,U){var ie={from:ar(U.from),to:Qe(U),text:tt(N,U.from,U.to)};return Ms(N,ie,U.from.line,U.to.line+1),Gi(N,function(le){return Ms(le,ie,U.from.line,U.to.line+1)},!0),ie}function Bo(N){for(;N.length;){var U=He(N);if(U.ranges)N.pop();else break}}function Es(N,U){if(U)return Bo(N.done),He(N.done);if(N.done.length&&!He(N.done).ranges)return He(N.done);if(N.done.length>1&&!N.done[N.done.length-2].ranges)return N.done.pop(),He(N.done)}function As(N,U,ie,le){var ge=N.history;ge.undone.length=0;var Ke=+new Date,Tt,tr;if((ge.lastOp==le||ge.lastOrigin==U.origin&&U.origin&&(U.origin.charAt(0)=="+"&&ge.lastModTime>Ke-(N.cm?N.cm.options.historyEventDelay:500)||U.origin.charAt(0)=="*"))&&(Tt=Es(ge,ge.lastOp==le)))tr=He(Tt.changes),gt(U.from,U.to)==0&&gt(U.from,tr.to)==0?tr.to=Qe(U):Tt.changes.push(Zo(N,U));else{var yr=He(ge.done);for((!yr||!yr.ranges)&&vo(N.sel,ge.done),Tt={changes:[Zo(N,U)],generation:ge.generation},ge.done.push(Tt);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(ie),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=Ke,ge.lastOp=ge.lastSelOp=le,ge.lastOrigin=ge.lastSelOrigin=U.origin,tr||Yt(N,"historyAdded")}function $o(N,U,ie,le){var ge=U.charAt(0);return ge=="*"||ge=="+"&&ie.ranges.length==le.ranges.length&&ie.somethingSelected()==le.somethingSelected()&&new Date-N.history.lastSelTime<=(N.cm?N.cm.options.historyEventDelay:500)}function Do(N,U,ie,le){var ge=N.history,Ke=le&&le.origin;ie==ge.lastSelOp||Ke&&ge.lastSelOrigin==Ke&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==Ke||$o(N,Ke,He(ge.done),U))?ge.done[ge.done.length-1]=U:vo(U,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=Ke,ge.lastSelOp=ie,le&&le.clearRedo!==!1&&Bo(ge.undone)}function vo(N,U){var ie=He(U);ie&&ie.ranges&&ie.equals(N)||U.push(N)}function Ms(N,U,ie,le){var ge=U["spans_"+N.id],Ke=0;N.iter(Math.max(N.first,ie),Math.min(N.first+N.size,le),function(Tt){Tt.markedSpans&&((ge||(ge=U["spans_"+N.id]={}))[Ke]=Tt.markedSpans),++Ke})}function rl(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 gs(N,U){var ie=U["spans_"+N.id];if(!ie)return null;for(var le=[],ge=0;ge<U.text.length;++ge)le.push(rl(ie[ge]));return le}function Ra(N,U){var ie=gs(N,U),le=Wn(N,U);if(!ie)return le;if(!le)return ie;for(var ge=0;ge<ie.length;++ge){var Ke=ie[ge],Tt=le[ge];if(Ke&&Tt){e:for(var tr=0;tr<Tt.length;++tr){for(var yr=Tt[tr],Cr=0;Cr<Ke.length;++Cr)if(Ke[Cr].marker==yr.marker)continue e;Ke.push(yr)}}else Tt&&(ie[ge]=Tt)}return ie}function dl(N,U,ie){for(var le=[],ge=0;ge<N.length;++ge){var Ke=N[ge];if(Ke.ranges){le.push(ie?It.prototype.deepCopy.call(Ke):Ke);continue}var Tt=Ke.changes,tr=[];le.push({changes:tr});for(var yr=0;yr<Tt.length;++yr){var Cr=Tt[yr],Bn=void 0;if(tr.push({from:Cr.from,to:Cr.to,text:Cr.text}),U)for(var qn in Cr)(Bn=qn.match(/^spans_(\d+)$/))&&(G(U,Number(Bn[1]))>-1&&(He(tr)[qn]=Cr[qn],delete Cr[qn]))}}return le}function fl(N,U,ie,le){if(le){var ge=N.anchor;if(ie){var Ke=gt(U,ge)<0;Ke!=gt(ie,ge)<0?(ge=U,U=ie):Ke!=gt(U,ie)<0&&(U=ie)}return new ce(ge,U)}else return new ce(ie||U,U)}function js(N,U,ie,le,ge){ge==null&&(ge=N.cm&&(N.cm.display.shift||N.extend)),Ts(N,new It([fl(N.sel.primary(),U,ie,ge)],0),le)}function _s(N,U,ie){for(var le=[],ge=N.cm&&(N.cm.display.shift||N.extend),Ke=0;Ke<N.sel.ranges.length;Ke++)le[Ke]=fl(N.sel.ranges[Ke],U[Ke],null,ge);var Tt=Se(N.cm,le,N.sel.primIndex);Ts(N,Tt,ie)}function Xs(N,U,ie,le){var ge=N.sel.ranges.slice(0);ge[U]=ie,Ts(N,Se(N.cm,ge,N.sel.primIndex),le)}function Ql(N,U,ie,le){Ts(N,Le(U,ie),le)}function Ul(N,U,ie){var le={ranges:U.ranges,update:function(Ke){this.ranges=[];for(var Tt=0;Tt<Ke.length;Tt++)this.ranges[Tt]=new ce(Rt(N,Ke[Tt].anchor),Rt(N,Ke[Tt].head))},origin:ie&&ie.origin};return Yt(N,"beforeSelectionChange",N,le),N.cm&&Yt(N.cm,"beforeSelectionChange",N.cm,le),le.ranges!=U.ranges?Se(N.cm,le.ranges,le.ranges.length-1):U}function wl(N,U,ie){var le=N.history.done,ge=He(le);ge&&ge.ranges?(le[le.length-1]=U,Ks(N,U,ie)):Ts(N,U,ie)}function Ts(N,U,ie){Ks(N,U,ie),Do(N,N.sel,N.cm?N.cm.curOp.id:NaN,ie)}function Ks(N,U,ie){(Pt(N,"beforeSelectionChange")||N.cm&&Pt(N.cm,"beforeSelectionChange"))&&(U=Ul(N,U,ie));var le=ie&&ie.bias||(gt(U.primary().head,N.sel.primary().head)<0?-1:1);Tl(N,jo(N,U,le,!0)),!(ie&&ie.scroll===!1)&&N.cm&&Da(N.cm)}function Tl(N,U){if(U.equals(N.sel))return;N.sel=U,N.cm&&(N.cm.curOp.updateInput=1,N.cm.curOp.selectionChanged=!0,Gt(N.cm)),Ir(N,"cursorActivity",N)}function pl(N){Tl(N,jo(N,N.sel,null,!1))}function jo(N,U,ie,le){for(var ge,Ke=0;Ke<U.ranges.length;Ke++){var Tt=U.ranges[Ke],tr=U.ranges.length==N.sel.ranges.length&&N.sel.ranges[Ke],yr=qo(N,Tt.anchor,tr&&tr.anchor,ie,le),Cr=qo(N,Tt.head,tr&&tr.head,ie,le);(ge||yr!=Tt.anchor||Cr!=Tt.head)&&(ge||(ge=U.ranges.slice(0,Ke)),ge[Ke]=new ce(yr,Cr))}return ge?Se(N.cm,ge,U.primIndex):U}function yo(N,U,ie,le,ge){var Ke=Pe(N,U.line);if(Ke.markedSpans)for(var Tt=0;Tt<Ke.markedSpans.length;++Tt){var tr=Ke.markedSpans[Tt],yr=tr.marker,Cr="selectLeft"in yr?!yr.selectLeft:yr.inclusiveLeft,Bn="selectRight"in yr?!yr.selectRight:yr.inclusiveRight;if((tr.from==null||(Cr?tr.from<=U.ch:tr.from<U.ch))&&(tr.to==null||(Bn?tr.to>=U.ch:tr.to>U.ch))){if(ge&&(Yt(yr,"beforeCursorEnter"),yr.explicitlyCleared))if(Ke.markedSpans){--Tt;continue}else break;if(!yr.atomic)continue;if(ie){var qn=yr.find(le<0?1:-1),Si=void 0;if((le<0?Bn:Cr)&&(qn=ps(N,qn,-le,qn&&qn.line==U.line?Ke:null)),qn&&qn.line==U.line&&(Si=gt(qn,ie))&&(le<0?Si<0:Si>0))return yo(N,qn,U,le,ge)}var Ci=yr.find(le<0?-1:1);return(le<0?Cr:Bn)&&(Ci=ps(N,Ci,le,Ci.line==U.line?Ke:null)),Ci?yo(N,Ci,U,le,ge):null}}return U}function qo(N,U,ie,le,ge){var Ke=le||1,Tt=yo(N,U,ie,Ke,ge)||!ge&&yo(N,U,ie,Ke,!0)||yo(N,U,ie,-Ke,ge)||!ge&&yo(N,U,ie,-Ke,!0);return Tt||(N.cantEdit=!0,jt(N.first,0))}function ps(N,U,ie,le){return ie<0&&U.ch==0?U.line>N.first?Rt(N,jt(U.line-1)):null:ie>0&&U.ch==(le||Pe(N,U.line)).text.length?U.line<N.first+N.size-1?jt(U.line+1,0):null:new jt(U.line,U.ch+ie)}function Os(N){N.setSelection(jt(N.firstLine(),0),jt(N.lastLine()),ue)}function es(N,U,ie){var le={canceled:!1,from:U.from,to:U.to,text:U.text,origin:U.origin,cancel:function(){return le.canceled=!0}};return ie&&(le.update=function(ge,Ke,Tt,tr){ge&&(le.from=Rt(N,ge)),Ke&&(le.to=Rt(N,Ke)),Tt&&(le.text=Tt),tr!==void 0&&(le.origin=tr)}),Yt(N,"beforeChange",N,le),N.cm&&Yt(N.cm,"beforeChange",N.cm,le),le.canceled?(N.cm&&(N.cm.curOp.updateInput=2),null):{from:le.from,to:le.to,text:le.text,origin:le.origin}}function Is(N,U,ie){if(N.cm){if(!N.cm.curOp)return zo(N.cm,Is)(N,U,ie);if(N.cm.state.suppressEdits)return}if((Pt(N,"beforeChange")||N.cm&&Pt(N.cm,"beforeChange"))&&(U=es(N,U,!0),!U))return;var le=et&&!ie&&kn(N,U.from,U.to);if(le)for(var ge=le.length-1;ge>=0;--ge)Ps(N,{from:le[ge].from,to:le[ge].to,text:ge?[""]:U.text,origin:U.origin});else Ps(N,U)}function Ps(N,U){if(U.text.length==1&&U.text[0]==""&&gt(U.from,U.to)==0)return;var ie=ir(N,U);As(N,U,ie,N.cm?N.cm.curOp.id:NaN),_l(N,U,ie,Wn(N,U));var le=[];Gi(N,function(ge,Ke){!Ke&&G(le,ge.history)==-1&&(ol(ge.history,U),le.push(ge.history)),_l(ge,U,null,Wn(ge,U))})}function ml(N,U,ie){var le=N.cm&&N.cm.state.suppressEdits;if(le&&!ie)return;for(var ge=N.history,Ke,Tt=N.sel,tr=U=="undo"?ge.done:ge.undone,yr=U=="undo"?ge.undone:ge.done,Cr=0;Cr<tr.length&&!(Ke=tr[Cr],ie?Ke.ranges&&!Ke.equals(N.sel):!Ke.ranges);Cr++);if(Cr==tr.length)return;for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(Ke=tr.pop(),Ke.ranges){if(vo(Ke,yr),ie&&!Ke.equals(N.sel)){Ts(N,Ke,{clearRedo:!1});return}Tt=Ke}else if(le){tr.push(Ke);return}else break;var Bn=[];vo(Tt,yr),yr.push({changes:Bn,generation:ge.generation}),ge.generation=Ke.generation||++ge.maxGeneration;for(var qn=Pt(N,"beforeChange")||N.cm&&Pt(N.cm,"beforeChange"),Si=function(Wa){var ka=Ke.changes[Wa];if(ka.origin=U,qn&&!es(N,ka,!1))return tr.length=0,{};Bn.push(Zo(N,ka));var Na=Wa?ir(N,ka):He(tr);_l(N,ka,Na,Ra(N,ka)),!Wa&&N.cm&&N.cm.scrollIntoView({from:ka.from,to:Qe(ka)});var qa=[];Gi(N,function(ho,ns){!ns&&G(qa,ho.history)==-1&&(ol(ho.history,ka),qa.push(ho.history)),_l(ho,ka,null,Ra(ho,ka))})},Ci=Ke.changes.length-1;Ci>=0;--Ci){var la=Si(Ci);if(la)return la.v}}function Rl(N,U){if(U==0)return;if(N.first+=U,N.sel=new It(nt(N.sel.ranges,function(ge){return new ce(jt(ge.anchor.line+U,ge.anchor.ch),jt(ge.head.line+U,ge.head.ch))}),N.sel.primIndex),N.cm){Ha(N.cm,N.first,N.first-U,U);for(var ie=N.cm.display,le=ie.viewFrom;le<ie.viewTo;le++)ht(N.cm,le,"gutter")}}function _l(N,U,ie,le){if(N.cm&&!N.cm.curOp)return zo(N.cm,_l)(N,U,ie,le);if(U.to.line<N.first){Rl(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 ge=U.text.length-1-(N.first-U.from.line);Rl(N,ge),U={from:jt(N.first,0),to:jt(U.to.line+ge,U.to.ch),text:[He(U.text)],origin:U.origin}}var Ke=N.lastLine();U.to.line>Ke&&(U={from:U.from,to:jt(Ke,Pe(N,Ke).text.length),text:[U.text[0]],origin:U.origin}),U.removed=tt(N,U.from,U.to),ie||(ie=ir(N,U)),N.cm?Bl(N.cm,U,le):gi(N,U,le),Ks(N,ie,ue),N.cantEdit&&qo(N,jt(N.firstLine(),0))&&(N.cantEdit=!1)}function Bl(N,U,ie){var le=N.doc,ge=N.display,Ke=U.from,Tt=U.to,tr=!1,yr=Ke.line;N.options.lineWrapping||(yr=Vt(kt(Pe(le,Ke.line))),le.iter(yr,Tt.line+1,function(Ci){if(Ci==ge.maxLine)return tr=!0,!0})),le.sel.contains(U.from,U.to)>-1&&Gt(N),gi(le,U,ie,rs(N)),N.options.lineWrapping||(le.iter(yr,Ke.line+U.text.length,function(Ci){var la=Kn(Ci);la>ge.maxLineLength&&(ge.maxLine=Ci,ge.maxLineLength=la,ge.maxLineChanged=!0,tr=!1)}),tr&&(N.curOp.updateMaxLine=!0)),Ye(le,Ke.line),hs(N,400);var Cr=U.text.length-(Tt.line-Ke.line)-1;U.full?Ha(N):Ke.line==Tt.line&&U.text.length==1&&!wi(N.doc,U)?ht(N,Ke.line,"text"):Ha(N,Ke.line,Tt.line+1,Cr);var Bn=Pt(N,"changes"),qn=Pt(N,"change");if(qn||Bn){var Si={from:Ke,to:Tt,text:U.text,removed:U.removed,origin:U.origin};qn&&Ir(N,"change",N,Si),Bn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(Si)}N.display.selForContextMenu=null}function jl(N,U,ie,le,ge){var Ke;le||(le=ie),gt(le,ie)<0&&(Ke=[le,ie],ie=Ke[0],le=Ke[1]),typeof U=="string"&&(U=N.splitLines(U)),Is(N,{from:ie,to:le,text:U,origin:ge})}function kl(N,U,ie,le){ie<N.line?N.line+=le:U<N.line&&(N.line=U,N.ch=0)}function Xl(N,U,ie,le){for(var ge=0;ge<N.length;++ge){var Ke=N[ge],Tt=!0;if(Ke.ranges){Ke.copied||(Ke=N[ge]=Ke.deepCopy(),Ke.copied=!0);for(var tr=0;tr<Ke.ranges.length;tr++)kl(Ke.ranges[tr].anchor,U,ie,le),kl(Ke.ranges[tr].head,U,ie,le);continue}for(var yr=0;yr<Ke.changes.length;++yr){var Cr=Ke.changes[yr];if(ie<Cr.from.line)Cr.from=jt(Cr.from.line+le,Cr.from.ch),Cr.to=jt(Cr.to.line+le,Cr.to.ch);else if(U<=Cr.to.line){Tt=!1;break}}Tt||(N.splice(0,ge+1),ge=0)}}function ol(N,U){var ie=U.from.line,le=U.to.line,ge=U.text.length-(le-ie)-1;Xl(N.done,ie,le,ge),Xl(N.undone,ie,le,ge)}function Ys(N,U,ie,le){var ge=U,Ke=U;return typeof U=="number"?Ke=Pe(N,qt(N,U)):ge=Vt(U),ge==null?null:(le(Ke,ge)&&N.cm&&ht(N.cm,ge,ie),Ke)}function sl(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}sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(U,ie){for(var le=U,ge=U+ie;le<ge;++le){var Ke=this.lines[le];this.height-=Ke.height,Br(Ke),Ir(Ke,"delete")}this.lines.splice(U,ie)},collapse:function(U){U.push.apply(U,this.lines)},insertInner:function(U,ie,le){this.height+=le,this.lines=this.lines.slice(0,U).concat(ie).concat(this.lines.slice(U));for(var ge=0;ge<ie.length;++ge)ie[ge].parent=this},iterN:function(U,ie,le){for(var ge=U+ie;U<ge;++U)if(le(this.lines[U]))return!0}};function nl(N){this.children=N;for(var U=0,ie=0,le=0;le<N.length;++le){var ge=N[le];U+=ge.chunkSize(),ie+=ge.height,ge.parent=this}this.size=U,this.height=ie,this.parent=null}nl.prototype={chunkSize:function(){return this.size},removeInner:function(U,ie){this.size-=ie;for(var le=0;le<this.children.length;++le){var ge=this.children[le],Ke=ge.chunkSize();if(U<Ke){var Tt=Math.min(ie,Ke-U),tr=ge.height;if(ge.removeInner(U,Tt),this.height-=tr-ge.height,Ke==Tt&&(this.children.splice(le--,1),ge.parent=null),(ie-=Tt)==0)break;U=0}else U-=Ke}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof sl))){var yr=[];this.collapse(yr),this.children=[new sl(yr)],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,le){this.size+=ie.length,this.height+=le;for(var ge=0;ge<this.children.length;++ge){var Ke=this.children[ge],Tt=Ke.chunkSize();if(U<=Tt){if(Ke.insertInner(U,ie,le),Ke.lines&&Ke.lines.length>50){for(var tr=Ke.lines.length%25+25,yr=tr;yr<Ke.lines.length;){var Cr=new sl(Ke.lines.slice(yr,yr+=25));Ke.height-=Cr.height,this.children.splice(++ge,0,Cr),Cr.parent=this}Ke.lines=Ke.lines.slice(0,tr),this.maybeSpill()}break}U-=Tt}},maybeSpill:function(){if(this.children.length<=10)return;var U=this;do{var ie=U.children.splice(U.children.length-5,5),le=new nl(ie);if(U.parent){U.size-=le.size,U.height-=le.height;var Ke=G(U.parent.children,U);U.parent.children.splice(Ke+1,0,le)}else{var ge=new nl(U.children);ge.parent=U,U.children=[ge,le],U=ge}le.parent=U.parent}while(U.children.length>10);U.parent.maybeSpill()},iterN:function(U,ie,le){for(var ge=0;ge<this.children.length;++ge){var Ke=this.children[ge],Tt=Ke.chunkSize();if(U<Tt){var tr=Math.min(ie,Tt-U);if(Ke.iterN(U,tr,le))return!0;if((ie-=tr)==0)break;U=0}else U-=Tt}}};var xl=function(U,ie,le){if(le)for(var ge in le)le.hasOwnProperty(ge)&&(this[ge]=le[ge]);this.doc=U,this.node=ie};xl.prototype.clear=function(){var N=this.doc.cm,U=this.line.widgets,ie=this.line,le=Vt(ie);if(le==null||!U)return;for(var ge=0;ge<U.length;++ge)U[ge]==this&&U.splice(ge--,1);U.length||(ie.widgets=null);var Ke=yn(this);St(ie,Math.max(0,ie.height-Ke)),N&&(Eo(N,function(){Ml(N,ie,-Ke),ht(N,le,"widget")}),Ir(N,"lineWidgetCleared",N,this,le))},xl.prototype.changed=function(){var N=this,U=this.height,ie=this.doc.cm,le=this.line;this.height=null;var ge=yn(this)-U;if(!ge)return;fr(this.doc,le)||St(le,le.height+ge),ie&&Eo(ie,function(){ie.curOp.forceUpdate=!0,Ml(ie,le,ge),Ir(ie,"lineWidgetChanged",ie,N,Vt(le))})},Xt(xl);function Ml(N,U,ie){Rr(U)<(N.curOp&&N.curOp.scrollTop||N.doc.scrollTop)&&wa(N,ie)}function Wl(N,U,ie,le){var ge=new xl(N,ie,le),Ke=N.cm;return Ke&&ge.noHScroll&&(Ke.display.alignWidgets=!0),Ys(N,U,"widget",function(Tt){var tr=Tt.widgets||(Tt.widgets=[]);if(ge.insertAt==null?tr.push(ge):tr.splice(Math.min(tr.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=Tt,Ke&&!fr(N,Tt)){var yr=Rr(Tt)<N.scrollTop;St(Tt,Tt.height+yn(ge)),yr&&wa(Ke,ge.height),Ke.curOp.forceUpdate=!0}return!0}),Ke&&Ir(Ke,"lineWidgetAdded",Ke,ge,typeof U=="number"?U:Vt(U)),ge}var au=0,Nl=function(U,ie){this.lines=[],this.type=ie,this.doc=U,this.id=++au};Nl.prototype.clear=function(){if(this.explicitlyCleared)return;var N=this.doc.cm,U=N&&!N.curOp;if(U&&as(N),Pt(this,"clear")){var ie=this.find();ie&&Ir(this,"clear",ie.from,ie.to)}for(var le=null,ge=null,Ke=0;Ke<this.lines.length;++Ke){var Tt=this.lines[Ke],tr=cr(Tt.markedSpans,this);N&&!this.collapsed?ht(N,Vt(Tt),"text"):N&&(tr.to!=null&&(ge=Vt(Tt)),tr.from!=null&&(le=Vt(Tt))),Tt.markedSpans=Jr(Tt.markedSpans,tr),tr.from==null&&this.collapsed&&!fr(this.doc,Tt)&&N&&St(Tt,Oo(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var yr=0;yr<this.lines.length;++yr){var Cr=kt(this.lines[yr]),Bn=Kn(Cr);Bn>N.display.maxLineLength&&(N.display.maxLine=Cr,N.display.maxLineLength=Bn,N.display.maxLineChanged=!0)}le!=null&&N&&this.collapsed&&Ha(N,le,ge+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,N&&pl(N.doc)),N&&Ir(N,"markerCleared",N,this,le,ge),U&&co(N),this.parent&&this.parent.clear()},Nl.prototype.find=function(N,U){N==null&&this.type=="bookmark"&&(N=1);for(var ie,le,ge=0;ge<this.lines.length;++ge){var Ke=this.lines[ge],Tt=cr(Ke.markedSpans,this);if(Tt.from!=null&&(ie=jt(U?Ke:Vt(Ke),Tt.from),N==-1))return ie;if(Tt.to!=null&&(le=jt(U?Ke:Vt(Ke),Tt.to),N==1))return le}return ie&&{from:ie,to:le}},Nl.prototype.changed=function(){var N=this,U=this.find(-1,!0),ie=this,le=this.doc.cm;if(!U||!le)return;Eo(le,function(){var ge=U.line,Ke=Vt(U.line),Tt=Qi(le,Ke);if(Tt&&(Oa(Tt),le.curOp.selectionChanged=le.curOp.forceUpdate=!0),le.curOp.updateMaxLine=!0,!fr(ie.doc,ge)&&ie.height!=null){var tr=ie.height;ie.height=null;var yr=yn(ie)-tr;yr&&St(ge,ge.height+yr)}Ir(le,"markerChanged",le,N)})},Nl.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)},Nl.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)}},Xt(Nl);function $l(N,U,ie,le,ge){if(le&&le.shared)return Iu(N,U,ie,le,ge);if(N.cm&&!N.cm.curOp)return zo(N.cm,$l)(N,U,ie,le,ge);var Ke=new Nl(N,ge),Tt=gt(U,ie);if(le&&z(le,Ke,!1),Tt>0||Tt==0&&Ke.clearWhenEmpty!==!1)return Ke;if(Ke.replacedWith&&(Ke.collapsed=!0,Ke.widgetNode=R("span",[Ke.replacedWith],"CodeMirror-widget"),le.handleMouseEvents||Ke.widgetNode.setAttribute("cm-ignore-events","true"),le.insertLeft&&(Ke.widgetNode.insertLeft=!0)),Ke.collapsed){if(Et(N,U.line,U,ie,Ke)||U.line!=ie.line&&Et(N,ie.line,U,ie,Ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt()}Ke.addToHistory&&As(N,{from:U,to:ie,origin:"markText"},N.sel,NaN);var tr=U.line,yr=N.cm,Cr;if(N.iter(tr,ie.line+1,function(qn){yr&&Ke.collapsed&&!yr.options.lineWrapping&&kt(qn)==yr.display.maxLine&&(Cr=!0),Ke.collapsed&&tr!=U.line&&St(qn,0),Qr(qn,new ft(Ke,tr==U.line?U.ch:null,tr==ie.line?ie.ch:null)),++tr}),Ke.collapsed&&N.iter(U.line,ie.line+1,function(qn){fr(N,qn)&&St(qn,0)}),Ke.clearOnEnter&&Ve(Ke,"beforeCursorEnter",function(){return Ke.clear()}),Ke.readOnly&&(at(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),Ke.collapsed&&(Ke.id=++au,Ke.atomic=!0),yr){if(Cr&&(yr.curOp.updateMaxLine=!0),Ke.collapsed)Ha(yr,U.line,ie.line+1);else if(Ke.className||Ke.startStyle||Ke.endStyle||Ke.css||Ke.attributes||Ke.title)for(var Bn=U.line;Bn<=ie.line;Bn++)ht(yr,Bn,"text");Ke.atomic&&pl(yr.doc),Ir(yr,"markerAdded",yr,Ke)}return Ke}var tu=function(U,ie){this.markers=U,this.primary=ie;for(var le=0;le<U.length;++le)U[le].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)},Xt(tu);function Iu(N,U,ie,le,ge){le=z(le),le.shared=!1;var Ke=[$l(N,U,ie,le,ge)],Tt=Ke[0],tr=le.widgetNode;return Gi(N,function(yr){tr&&(le.widgetNode=tr.cloneNode(!0)),Ke.push($l(yr,Rt(yr,U),Rt(yr,ie),le,ge));for(var Cr=0;Cr<yr.linked.length;++Cr)if(yr.linked[Cr].isParent)return;Tt=He(Ke)}),new tu(Ke,Tt)}function pu(N){return N.findMarks(jt(N.first,0),N.clipPos(jt(N.lastLine())),function(U){return U.parent})}function mu(N,U){for(var ie=0;ie<U.length;ie++){var le=U[ie],ge=le.find(),Ke=N.clipPos(ge.from),Tt=N.clipPos(ge.to);if(gt(Ke,Tt)){var tr=$l(N,Ke,Tt,le.primary,le.primary.type);le.markers.push(tr),tr.parent=le}}}function gu(N){for(var U=function(ge){var Ke=N[ge],Tt=[Ke.primary.doc];Gi(Ke.primary.doc,function(Cr){return Tt.push(Cr)});for(var tr=0;tr<Ke.markers.length;tr++){var yr=Ke.markers[tr];G(Tt,yr.doc)==-1&&(yr.parent=null,Ke.markers.splice(tr--,1))}},ie=0;ie<N.length;ie++)U(ie)}var ql=0,Cl=function N(U,ie,le,ge,Ke){if(!(this instanceof N))return new N(U,ie,le,ge,Ke);le==null&&(le=0),nl.call(this,[new sl([new ui("",null)])]),this.first=le,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=le;var Tt=jt(le,0);this.sel=Le(Tt),this.history=new Wo(null),this.id=++ql,this.modeOption=ie,this.lineSep=ge,this.direction=Ke=="rtl"?"rtl":"ltr",this.extend=!1,typeof U=="string"&&(U=this.splitLines(U)),gi(this,{from:Tt,to:Tt,text:U}),Ts(this,Le(Tt),ue)};Cl.prototype=ot(nl.prototype,{constructor:Cl,iter:function(U,ie,le){le?this.iterN(U-this.first,ie-U,le):this.iterN(this.first,this.first+this.size,U)},insert:function(U,ie){for(var le=0,ge=0;ge<ie.length;++ge)le+=ie[ge].height;this.insertInner(U-this.first,ie,le)},remove:function(U,ie){this.removeInner(U-this.first,ie)},getValue:function(U){var ie=vt(this,this.first,this.first+this.size);return U===!1?ie:ie.join(U||this.lineSeparator())},setValue:ms(function(N){var U=jt(this.first,0),ie=this.first+this.size-1;Is(this,{from:U,to:jt(ie,Pe(this,ie).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&ja(this.cm,0,0),Ts(this,Le(U),ue)}),replaceRange:function(U,ie,le,ge){ie=Rt(this,ie),le=le?Rt(this,le):ie,jl(this,U,ie,le,ge)},getRange:function(U,ie,le){var ge=tt(this,Rt(this,U),Rt(this,ie));return le===!1?ge:ge.join(le||this.lineSeparator())},getLine:function(U){var ie=this.getLineHandle(U);return ie&&ie.text},getLineHandle:function(U){if($r(this,U))return Pe(this,U)},getLineNumber:function(U){return Vt(U)},getLineHandleVisualStart:function(U){return typeof U=="number"&&(U=Pe(this,U)),kt(U)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(U){return Rt(this,U)},getCursor:function(U){var ie=this.sel.primary(),le;return U==null||U=="head"?le=ie.head:U=="anchor"?le=ie.anchor:U=="end"||U=="to"||U===!1?le=ie.to():le=ie.from(),le},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ms(function(N,U,ie){Ql(this,Rt(this,typeof N=="number"?jt(N,U||0):N),null,ie)}),setSelection:ms(function(N,U,ie){Ql(this,Rt(this,N),Rt(this,U||N),ie)}),extendSelection:ms(function(N,U,ie){js(this,Rt(this,N),U&&Rt(this,U),ie)}),extendSelections:ms(function(N,U){_s(this,jr(this,N),U)}),extendSelectionsBy:ms(function(N,U){var ie=nt(this.sel.ranges,N);_s(this,jr(this,ie),U)}),setSelections:ms(function(N,U,ie){if(!N.length)return;for(var le=[],ge=0;ge<N.length;ge++)le[ge]=new ce(Rt(this,N[ge].anchor),Rt(this,N[ge].head));U==null&&(U=Math.min(N.length-1,this.sel.primIndex)),Ts(this,Se(this.cm,le,U),ie)}),addSelection:ms(function(N,U,ie){var le=this.sel.ranges.slice(0);le.push(new ce(Rt(this,N),Rt(this,U||N))),Ts(this,Se(this.cm,le,le.length-1),ie)}),getSelection:function(U){for(var ie=this.sel.ranges,le,ge=0;ge<ie.length;ge++){var Ke=tt(this,ie[ge].from(),ie[ge].to());le=le?le.concat(Ke):Ke}return U===!1?le:le.join(U||this.lineSeparator())},getSelections:function(U){for(var ie=[],le=this.sel.ranges,ge=0;ge<le.length;ge++){var Ke=tt(this,le[ge].from(),le[ge].to());U!==!1&&(Ke=Ke.join(U||this.lineSeparator())),ie[ge]=Ke}return ie},replaceSelection:function(U,ie,le){for(var ge=[],Ke=0;Ke<this.sel.ranges.length;Ke++)ge[Ke]=U;this.replaceSelections(ge,ie,le||"+input")},replaceSelections:ms(function(N,U,ie){for(var le=[],ge=this.sel,Ke=0;Ke<ge.ranges.length;Ke++){var Tt=ge.ranges[Ke];le[Ke]={from:Tt.from(),to:Tt.to(),text:this.splitLines(N[Ke]),origin:ie}}for(var tr=U&&U!="end"&&hn(this,le,U),yr=le.length-1;yr>=0;yr--)Is(this,le[yr]);tr?wl(this,tr):this.cm&&Da(this.cm)}),undo:ms(function(){ml(this,"undo")}),redo:ms(function(){ml(this,"redo")}),undoSelection:ms(function(){ml(this,"undo",!0)}),redoSelection:ms(function(){ml(this,"redo",!0)}),setExtending:function(U){this.extend=U},getExtending:function(){return this.extend},historySize:function(){for(var U=this.history,ie=0,le=0,ge=0;ge<U.done.length;ge++)U.done[ge].ranges||++ie;for(var Ke=0;Ke<U.undone.length;Ke++)U.undone[Ke].ranges||++le;return{undo:ie,redo:le}},clearHistory:function(){var U=this;this.history=new Wo(this.history.maxGeneration),Gi(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:dl(this.history.done),undone:dl(this.history.undone)}},setHistory:function(U){var ie=this.history=new Wo(this.history.maxGeneration);ie.done=dl(U.done.slice(0),null,!0),ie.undone=dl(U.undone.slice(0),null,!0)},setGutterMarker:ms(function(N,U,ie){return Ys(this,N,"gutter",function(le){var ge=le.gutterMarkers||(le.gutterMarkers={});return ge[U]=ie,!ie&&q(ge)&&(le.gutterMarkers=null),!0})}),clearGutter:ms(function(N){var U=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[N]&&Ys(U,ie,"gutter",function(){return ie.gutterMarkers[N]=null,q(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(U){var ie;if(typeof U=="number"){if(!$r(this,U))return null;if(ie=U,U=Pe(this,U),!U)return null}else if(ie=Vt(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:ms(function(N,U,ie){return Ys(this,N,U=="gutter"?"gutter":"class",function(le){var ge=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass";if(!le[ge])le[ge]=ie;else{if(_(ie).test(le[ge]))return!1;le[ge]+=" "+ie}return!0})}),removeLineClass:ms(function(N,U,ie){return Ys(this,N,U=="gutter"?"gutter":"class",function(le){var ge=U=="text"?"textClass":U=="background"?"bgClass":U=="gutter"?"gutterClass":"wrapClass",Ke=le[ge];if(Ke)if(ie==null)le[ge]=null;else{var Tt=Ke.match(_(ie));if(!Tt)return!1;var tr=Tt.index+Tt[0].length;le[ge]=Ke.slice(0,Tt.index)+(!Tt.index||tr==Ke.length?"":" ")+Ke.slice(tr)||null}else return!1;return!0})}),addLineWidget:ms(function(N,U,ie){return Wl(this,N,U,ie)}),removeLineWidget:function(U){U.clear()},markText:function(U,ie,le){return $l(this,Rt(this,U),Rt(this,ie),le,le&&le.type||"range")},setBookmark:function(U,ie){var le={replacedWith:ie&&(ie.nodeType==null?ie.widget:ie),insertLeft:ie&&ie.insertLeft,clearWhenEmpty:!1,shared:ie&&ie.shared,handleMouseEvents:ie&&ie.handleMouseEvents};return U=Rt(this,U),$l(this,U,U,le,"bookmark")},findMarksAt:function(U){U=Rt(this,U);var ie=[],le=Pe(this,U.line).markedSpans;if(le)for(var ge=0;ge<le.length;++ge){var Ke=le[ge];(Ke.from==null||Ke.from<=U.ch)&&(Ke.to==null||Ke.to>=U.ch)&&ie.push(Ke.marker.parent||Ke.marker)}return ie},findMarks:function(U,ie,le){U=Rt(this,U),ie=Rt(this,ie);var ge=[],Ke=U.line;return this.iter(U.line,ie.line+1,function(Tt){var tr=Tt.markedSpans;if(tr)for(var yr=0;yr<tr.length;yr++){var Cr=tr[yr];!(Cr.to!=null&&Ke==U.line&&U.ch>=Cr.to||Cr.from==null&&Ke!=U.line||Cr.from!=null&&Ke==ie.line&&Cr.from>=ie.ch)&&(!le||le(Cr.marker))&&ge.push(Cr.marker.parent||Cr.marker)}++Ke}),ge},getAllMarks:function(){var U=[];return this.iter(function(ie){var le=ie.markedSpans;if(le)for(var ge=0;ge<le.length;++ge)le[ge].from!=null&&U.push(le[ge].marker)}),U},posFromIndex:function(U){var ie,le=this.first,ge=this.lineSeparator().length;return this.iter(function(Ke){var Tt=Ke.text.length+ge;if(Tt>U)return ie=U,!0;U-=Tt,++le}),Rt(this,jt(le,ie))},indexFromPos:function(U){U=Rt(this,U);var ie=U.ch;if(U.line<this.first||U.ch<0)return 0;var le=this.lineSeparator().length;return this.iter(this.first,U.line,function(ge){ie+=ge.text.length+le}),ie},copy:function(U){var ie=new Cl(vt(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,le=this.first+this.size;U.from!=null&&U.from>ie&&(ie=U.from),U.to!=null&&U.to<le&&(le=U.to);var ge=new Cl(vt(this,ie,le),U.mode||this.modeOption,ie,this.lineSep,this.direction);return U.sharedHist&&(ge.history=this.history),(this.linked||(this.linked=[])).push({doc:ge,sharedHist:U.sharedHist}),ge.linked=[{doc:this,isParent:!0,sharedHist:U.sharedHist}],mu(ge,pu(this)),ge},unlinkDoc:function(U){if(U instanceof Fr&&(U=U.doc),this.linked)for(var ie=0;ie<this.linked.length;++ie){var le=this.linked[ie];if(le.doc!=U)continue;this.linked.splice(ie,1),U.unlinkDoc(this),gu(pu(this));break}if(U.history==this.history){var ge=[U.id];Gi(U,function(Ke){return ge.push(Ke.id)},!0),U.history=new Wo(null),U.history.done=dl(this.history.done,ge),U.history.undone=dl(this.history.undone,ge)}},iterLinkedDocs:function(U){Gi(this,U)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(U){return this.lineSep?U.split(this.lineSep):Cn(U)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ms(function(N){if(N!="rtl"&&(N="ltr"),N==this.direction)return;this.direction=N,this.iter(function(U){return U.order=null}),this.cm&&no(this.cm)})}),Cl.prototype.eachLine=Cl.prototype.iter;var ll=0;function Hl(N){var U=this;if(vu(U),hr(U,N)||Jn(U.display,N))return;Ge(N),h&&(ll=+new Date);var ie=_o(U,N,!0),le=N.dataTransfer.files;if(!ie||U.isReadOnly())return;if(le&&le.length&&window.FileReader&&window.File)for(var ge=le.length,Ke=Array(ge),Tt=0,tr=function(){++Tt==ge&&zo(U,function(){ie=Rt(U.doc,ie);var la={from:ie,to:ie,text:U.doc.splitLines(Ke.filter(function(Ta){return Ta!=null}).join(U.doc.lineSeparator())),origin:"paste"};Is(U.doc,la),wl(U.doc,Le(Rt(U.doc,ie),Rt(U.doc,Qe(la))))})()},yr=function(la,Ta){if(U.options.allowDropFileTypes&&G(U.options.allowDropFileTypes,la.type)==-1){tr();return}var Wa=new FileReader;Wa.onerror=function(){return tr()},Wa.onload=function(){var ka=Wa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ka)){tr();return}Ke[Ta]=ka,tr()},Wa.readAsText(la)},Cr=0;Cr<le.length;Cr++)yr(le[Cr],Cr);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 Bn=N.dataTransfer.getData("Text");if(Bn){var qn;if(U.state.draggingText&&!U.state.draggingText.copy&&(qn=U.listSelections()),Ks(U.doc,Le(ie,ie)),qn)for(var Si=0;Si<qn.length;++Si)jl(U.doc,"",qn[Si].anchor,qn[Si].head,"drag");U.replaceSelection(Bn,"around","paste"),U.display.input.focus()}}catch(Ci){}}}function Sl(N,U){if(h&&(!N.state.draggingText||+new Date-ll<100)){lt(U);return}if(hr(N,U)||Jn(N.display,U))return;if(U.dataTransfer.setData("Text",N.getSelection()),U.dataTransfer.effectAllowed="copyMove",U.dataTransfer.setDragImage&&!e){var ie=I("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o&&(ie.width=ie.height=1,N.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),U.dataTransfer.setDragImage(ie,0,0),o&&ie.parentNode.removeChild(ie)}}function Su(N,U){var ie=_o(N,U);if(!ie)return;var le=document.createDocumentFragment();ri(N,ie,le),N.display.dragCursor||(N.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),N.display.lineSpace.insertBefore(N.display.dragCursor,N.display.cursorDiv)),O(N.display.dragCursor,le)}function vu(N){N.display.dragCursor&&(N.display.lineSpace.removeChild(N.display.dragCursor),N.display.dragCursor=null)}function Au(N){if(!document.getElementsByClassName)return;for(var U=document.getElementsByClassName("CodeMirror"),ie=[],le=0;le<U.length;le++){var ge=U[le].CodeMirror;ge&&ie.push(ge)}ie.length&&ie[0].operation(function(){for(var Ke=0;Ke<ie.length;Ke++)N(ie[Ke])})}var Ol=!1;function cu(){if(Ol)return;du(),Ol=!0}function du(){var N;Ve(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,Au(Lu)},100))}),Ve(window,"blur",function(){return Au(mi)})}function Lu(N){var U=N.display;U.cachedCharWidth=U.cachedTextHeight=U.cachedPaddingH=null,U.scrollbarsClipped=!1,N.setSize()}for(var zl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ru=0;ru<10;ru++)zl[ru+48]=zl[ru+96]=String(ru);for(var ou=65;ou<=90;ou++)zl[ou]=String.fromCharCode(ou);for(var su=1;su<=12;su++)zl[su+111]=zl[su+63235]="F"+su;var Jl={};Jl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Jl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Jl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Jl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Jl.default=g?Jl.macDefault:Jl.pcDefault;function Du(N){var U=N.split(/-(?!$)/);N=U[U.length-1];for(var ie,le,ge,Ke,Tt=0;Tt<U.length-1;Tt++){var tr=U[Tt];if(/^(cmd|meta|m)$/i.test(tr))Ke=!0;else if(/^a(lt)?$/i.test(tr))ie=!0;else if(/^(c|ctrl|control)$/i.test(tr))le=!0;else if(/^s(hift)?$/i.test(tr))ge=!0;else throw new Error("Unrecognized modifier name: "+tr)}return ie&&(N="Alt-"+N),le&&(N="Ctrl-"+N),Ke&&(N="Cmd-"+N),ge&&(N="Shift-"+N),N}function Ru(N){var U={};for(var ie in N)if(N.hasOwnProperty(ie)){var le=N[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(le=="..."){delete N[ie];continue}for(var ge=nt(ie.split(" "),Du),Ke=0;Ke<ge.length;Ke++){var Tt=void 0,tr=void 0;Ke==ge.length-1?(tr=ge.join(" "),Tt=le):(tr=ge.slice(0,Ke+1).join(" "),Tt="...");var yr=U[tr];if(!yr)U[tr]=Tt;else if(yr!=Tt)throw new Error("Inconsistent bindings for "+tr)}delete N[ie]}for(var Cr in U)N[Cr]=U[Cr];return N}function Zl(N,U,ie,le){U=hl(U);var ge=U.call?U.call(N,le):U[N];if(ge===!1)return"nothing";if(ge==="...")return"multi";if(ge!=null&&ie(ge))return"handled";if(U.fallthrough){if(Object.prototype.toString.call(U.fallthrough)!="[object Array]")return Zl(N,U.fallthrough,ie,le);for(var Ke=0;Ke<U.fallthrough.length;Ke++){var Tt=Zl(N,U.fallthrough[Ke],ie,le);if(Tt)return Tt}}}function yu(N){var U=typeof N=="string"?N:zl[N.keyCode];return U=="Ctrl"||U=="Alt"||U=="Shift"||U=="Mod"}function xu(N,U,ie){var le=N;return U.altKey&&le!="Alt"&&(N="Alt-"+N),(E?U.metaKey:U.ctrlKey)&&le!="Ctrl"&&(N="Ctrl-"+N),(E?U.ctrlKey:U.metaKey)&&le!="Mod"&&(N="Cmd-"+N),!ie&&U.shiftKey&&le!="Shift"&&(N="Shift-"+N),N}function bu(N,U){if(o&&N.keyCode==34&&N.char)return!1;var ie=zl[N.keyCode];return ie==null||N.altGraphKey?!1:(N.keyCode==3&&N.code&&(ie=N.code),xu(ie,N,U))}function hl(N){return typeof N=="string"?Jl[N]:N}function Dl(N,U){for(var ie=N.doc.sel.ranges,le=[],ge=0;ge<ie.length;ge++){for(var Ke=U(ie[ge]);le.length&&gt(Ke.from,He(le).to)<=0;){var Tt=le.pop();if(gt(Tt.from,Ke.from)<0){Ke.from=Tt.from;break}}le.push(Ke)}Eo(N,function(){for(var tr=le.length-1;tr>=0;tr--)jl(N.doc,"",le[tr].from,le[tr].to,"+delete");Da(N)})}function nu(N,U,ie){var le=Ne(N.text,U+ie,ie);return le<0||le>N.text.length?null:le}function Nu(N,U,ie){var le=nu(N,U.ch,ie);return le==null?null:new jt(U.line,le,ie<0?"after":"before")}function hu(N,U,ie,le,ge){if(N){U.doc.direction=="rtl"&&(ge=-ge);var Ke=Ct(ie,U.doc.direction);if(Ke){var Tt=ge<0?He(Ke):Ke[0],tr=ge<0==(Tt.level==1),yr=tr?"after":"before",Cr;if(Tt.level>0||U.doc.direction=="rtl"){var Bn=ca(U,ie);Cr=ge<0?ie.text.length-1:0;var qn=Ca(U,Bn,Cr).top;Cr=je(function(Si){return Ca(U,Bn,Si).top==qn},ge<0==(Tt.level==1)?Tt.from:Tt.to-1,Cr),yr=="before"&&(Cr=nu(ie,Cr,1))}else Cr=ge<0?Tt.to:Tt.from;return new jt(le,Cr,yr)}}return new jt(le,ge<0?ie.text.length:0,ge<0?"before":"after")}function fu(N,U,ie,le){var ge=Ct(U,N.doc.direction);if(!ge)return Nu(U,ie,le);ie.ch>=U.text.length?(ie.ch=U.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var Ke=Fe(ge,ie.ch,ie.sticky),Tt=ge[Ke];if(N.doc.direction=="ltr"&&Tt.level%2==0&&(le>0?Tt.to>ie.ch:Tt.from<ie.ch))return Nu(U,ie,le);var tr=function(Na,qa){return nu(U,Na instanceof jt?Na.ch:Na,qa)},yr,Cr=function(Na){return N.options.lineWrapping?(yr=yr||ca(N,U),to(N,U,yr,Na)):{begin:0,end:U.text.length}},Bn=Cr(ie.sticky=="before"?tr(ie,-1):ie.ch);if(N.doc.direction=="rtl"||Tt.level==1){var qn=Tt.level==1==le<0,Si=tr(ie,qn?1:-1);if(Si!=null&&(qn?Si<=Tt.to&&Si<=Bn.end:Si>=Tt.from&&Si>=Bn.begin)){var Ci=qn?"before":"after";return new jt(ie.line,Si,Ci)}}var la=function(Na,qa,ho){for(var ns=function(ul,Pl){return Pl?new jt(ie.line,tr(ul,1),"before"):new jt(ie.line,ul,"after")};Na>=0&&Na<ge.length;Na+=qa){var Mo=ge[Na],Ss=qa>0==(Mo.level!=1),Zs=Ss?ho.begin:tr(ho.end,-1);if(Mo.from<=Zs&&Zs<Mo.to)return ns(Zs,Ss);if(Zs=Ss?Mo.from:tr(Mo.to,-1),ho.begin<=Zs&&Zs<ho.end)return ns(Zs,Ss)}},Ta=la(Ke+le,le,Bn);if(Ta)return Ta;var Wa=le>0?Bn.end:tr(Bn.begin,-1);return Wa!=null&&!(le>0&&Wa==U.text.length)&&(Ta=la(le>0?0:ge.length-1,le,Cr(Wa)),Ta)?Ta:null}var iu={selectAll:Os,singleSelection:function(U){return U.setSelection(U.getCursor("anchor"),U.getCursor("head"),ue)},killLine:function(U){return Dl(U,function(ie){if(ie.empty()){var le=Pe(U.doc,ie.head.line).text.length;return ie.head.ch==le&&ie.head.line<U.lastLine()?{from:ie.head,to:jt(ie.head.line+1,0)}:{from:ie.head,to:jt(ie.head.line,le)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(U){return Dl(U,function(ie){return{from:jt(ie.from().line,0),to:Rt(U.doc,jt(ie.to().line+1,0))}})},delLineLeft:function(U){return Dl(U,function(ie){return{from:jt(ie.from().line,0),to:ie.from()}})},delWrappedLineLeft:function(U){return Dl(U,function(ie){var le=U.charCoords(ie.head,"div").top+5,ge=U.coordsChar({left:0,top:le},"div");return{from:ge,to:ie.from()}})},delWrappedLineRight:function(U){return Dl(U,function(ie){var le=U.charCoords(ie.head,"div").top+5,ge=U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:le},"div");return{from:ie.from(),to:ge}})},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(jt(U.firstLine(),0))},goDocEnd:function(U){return U.extendSelection(jt(U.lastLine()))},goLineStart:function(U){return U.extendSelectionsBy(function(ie){return ve(U,ie.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(U){return U.extendSelectionsBy(function(ie){return L(U,ie.head)},{origin:"+move",bias:1})},goLineEnd:function(U){return U.extendSelectionsBy(function(ie){return te(U,ie.head.line)},{origin:"+move",bias:-1})},goLineRight:function(U){return U.extendSelectionsBy(function(ie){var le=U.cursorCoords(ie.head,"div").top+5;return U.coordsChar({left:U.display.lineDiv.offsetWidth+100,top:le},"div")},be)},goLineLeft:function(U){return U.extendSelectionsBy(function(ie){var le=U.cursorCoords(ie.head,"div").top+5;return U.coordsChar({left:0,top:le},"div")},be)},goLineLeftSmart:function(U){return U.extendSelectionsBy(function(ie){var le=U.cursorCoords(ie.head,"div").top+5,ge=U.coordsChar({left:0,top:le},"div");return ge.ch<U.getLine(ge.line).search(/\S/)?L(U,ie.head):ge},be)},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=[],le=U.listSelections(),ge=U.options.tabSize,Ke=0;Ke<le.length;Ke++){var Tt=le[Ke].from(),tr=V(U.getLine(Tt.line),Tt.ch,ge);ie.push(Xe(ge-tr%ge))}U.replaceSelections(ie)},defaultTab:function(U){U.somethingSelected()?U.indentSelection("add"):U.execCommand("insertTab")},transposeChars:function(U){return Eo(U,function(){for(var ie=U.listSelections(),le=[],ge=0;ge<ie.length;ge++){if(!ie[ge].empty())continue;var Ke=ie[ge].head,Tt=Pe(U.doc,Ke.line).text;if(Tt){if(Ke.ch==Tt.length&&(Ke=new jt(Ke.line,Ke.ch-1)),Ke.ch>0)Ke=new jt(Ke.line,Ke.ch+1),U.replaceRange(Tt.charAt(Ke.ch-1)+Tt.charAt(Ke.ch-2),jt(Ke.line,Ke.ch-2),Ke,"+transpose");else if(Ke.line>U.doc.first){var tr=Pe(U.doc,Ke.line-1).text;tr&&(Ke=new jt(Ke.line,1),U.replaceRange(Tt.charAt(0)+U.doc.lineSeparator()+tr.charAt(tr.length-1),jt(Ke.line-1,tr.length-1),Ke,"+transpose"))}}le.push(new ce(Ke,Ke))}U.setSelections(le)})},newlineAndIndent:function(U){return Eo(U,function(){for(var ie=U.listSelections(),le=ie.length-1;le>=0;le--)U.replaceRange(U.doc.lineSeparator(),ie[le].anchor,ie[le].head,"+input");ie=U.listSelections();for(var ge=0;ge<ie.length;ge++)U.indentLine(ie[ge].from().line,null,!0);Da(U)})},openLine:function(U){return U.replaceSelection(`
`,"start")},toggleOverwrite:function(U){return U.toggleOverwrite()}};function ve(N,U){var ie=Pe(N.doc,U),le=kt(ie);return le!=ie&&(U=Vt(le)),hu(!0,N,le,U,1)}function te(N,U){var ie=Pe(N.doc,U),le=Bt(ie);return le!=ie&&(U=Vt(le)),hu(!0,N,ie,U,-1)}function L(N,U){var ie=ve(N,U.line),le=Pe(N.doc,ie.line),ge=Ct(le,N.doc.direction);if(!ge||ge[0].level==0){var Ke=Math.max(ie.ch,le.text.search(/\S/)),Tt=U.line==ie.line&&U.ch<=Ke&&U.ch;return jt(ie.line,Tt?0:Ke,ie.sticky)}return ie}function K(N,U,ie){if(typeof U=="string"&&(U=iu[U],!U))return!1;N.display.input.ensurePolled();var le=N.display.shift,ge=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ie&&(N.display.shift=!1),ge=U(N)!=ee}finally{N.display.shift=le,N.state.suppressEdits=!1}return ge}function H(N,U,ie){for(var le=0;le<N.state.keyMaps.length;le++){var ge=Zl(U,N.state.keyMaps[le],ie,N);if(ge)return ge}return N.options.extraKeys&&Zl(U,N.options.extraKeys,ie,N)||Zl(U,N.options.keyMap,ie,N)}var Z=new Q;function ne(N,U,ie,le){var ge=N.state.keySeq;if(ge){if(yu(U))return"handled";if(/\'$/.test(U)?N.state.keySeq=null:Z.set(50,function(){N.state.keySeq==ge&&(N.state.keySeq=null,N.display.input.reset())}),Ae(N,ge+" "+U,ie,le))return!0}return Ae(N,U,ie,le)}function Ae(N,U,ie,le){var ge=H(N,U,le);return ge=="multi"&&(N.state.keySeq=U),ge=="handled"&&Ir(N,"keyHandled",N,U,ie),(ge=="handled"||ge=="multi")&&(Ge(ie),oi(N)),!!ge}function Te(N,U){var ie=bu(U,!0);return ie?U.shiftKey&&!N.state.keySeq?ne(N,"Shift-"+ie,U,function(le){return K(N,le,!0)})||ne(N,ie,U,function(le){if(typeof le=="string"?/^go[A-Z]/.test(le):le.motion)return K(N,le)}):ne(N,ie,U,function(le){return K(N,le)}):!1}function ze(N,U,ie){return ne(N,"'"+ie+"'",U,function(le){return K(N,le,!0)})}var st=null;function ct(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(U.curOp.focus=P(),hr(U,N))return;h&&u<11&&N.keyCode==27&&(N.returnValue=!1);var ie=N.keyCode;U.display.shift=ie==16||N.shiftKey;var le=Te(U,N);o&&(st=le?ie:null,!le&&ie==88&&!Pr&&(g?N.metaKey:N.ctrlKey)&&U.replaceSelection("",null,"cut")),x&&!g&&!le&&ie==46&&N.shiftKey&&!N.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(U.display.lineDiv.className)&&zt(U)}function zt(N){var U=N.display.lineDiv;X(U,"CodeMirror-crosshair");function ie(le){(le.keyCode==18||!le.altKey)&&(T(U,"CodeMirror-crosshair"),dt(document,"keyup",ie),dt(document,"mouseover",ie))}Ve(document,"keyup",ie),Ve(document,"mouseover",ie)}function Tr(N){N.keyCode==16&&(this.doc.sel.shift=!1),hr(this,N)}function br(N){var U=this;if(N.target&&N.target!=U.display.input.getField())return;if(Jn(U.display,N)||hr(U,N)||N.ctrlKey&&!N.altKey||g&&N.metaKey)return;var ie=N.keyCode,le=N.charCode;if(o&&ie==st){st=null,Ge(N);return}if(o&&(!N.which||N.which<10)&&Te(U,N))return;var ge=String.fromCharCode(le==null?ie:le);if(ge=="\b")return;if(ze(U,N,ge))return;U.display.input.onKeyPress(N)}var Kr=400,zr=function(U,ie,le){this.time=U,this.pos=ie,this.button=le};zr.prototype.compare=function(N,U,ie){return this.time+Kr>N&&gt(U,this.pos)==0&&ie==this.button};var Nn,Mn;function Yn(N,U){var ie=+new Date;return Mn&&Mn.compare(ie,N,U)?(Nn=Mn=null,"triple"):Nn&&Nn.compare(ie,N,U)?(Mn=new zr(ie,N,U),Nn=null,"double"):(Nn=new zr(ie,N,U),Mn=null,"single")}function bi(N){var U=this,ie=U.display;if(hr(U,N)||ie.activeTouch&&ie.input.supportsTouch())return;if(ie.input.ensurePolled(),ie.shift=N.shiftKey,Jn(ie,N)){a||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(Ls(U,N))return;var le=_o(U,N),ge=de(N),Ke=le?Yn(le,ge):"single";if(window.focus(),ge==1&&U.state.selectingText&&U.state.selectingText(N),le&&ua(U,ge,le,Ke,N))return;ge==1?le?ta(U,le,Ke,N):Ze(N)==ie.scroller&&Ge(N):ge==2?(le&&js(U.doc,le),setTimeout(function(){return ie.input.focus()},20)):ge==3&&(C?U.display.input.onContextMenu(N):ai(U))}function ua(N,U,ie,le,ge){var Ke="Click";return le=="double"?Ke="Double"+Ke:le=="triple"&&(Ke="Triple"+Ke),Ke=(U==1?"Left":U==2?"Middle":"Right")+Ke,ne(N,xu(Ke,ge),ge,function(Tt){if(typeof Tt=="string"&&(Tt=iu[Tt]),!Tt)return!1;var tr=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),tr=Tt(N,ie)!=ee}finally{N.state.suppressEdits=!1}return tr})}function Yi(N,U,ie){var le=N.getOption("configureMouse"),ge=le?le(N,U,ie):{};if(ge.unit==null){var Ke=v?ie.shiftKey&&ie.metaKey:ie.altKey;ge.unit=Ke?"rectangle":U=="single"?"char":U=="double"?"word":"line"}return(ge.extend==null||N.doc.extend)&&(ge.extend=N.doc.extend||ie.shiftKey),ge.addNew==null&&(ge.addNew=g?ie.metaKey:ie.ctrlKey),ge.moveOnDrag==null&&(ge.moveOnDrag=!(g?ie.altKey:ie.ctrlKey)),ge}function ta(N,U,ie,le){h?setTimeout(W(li,N),0):N.curOp.focus=P();var ge=Yi(N,ie,le),Ke=N.doc.sel,Tt;N.options.dragDrop&&_t&&!N.isReadOnly()&&ie=="single"&&(Tt=Ke.contains(U))>-1&&(gt((Tt=Ke.ranges[Tt]).from(),U)<0||U.xRel>0)&&(gt(Tt.to(),U)>0||U.xRel<0)?Pa(N,le,U,ge):Ba(N,le,U,ge)}function Pa(N,U,ie,le){var ge=N.display,Ke=!1,Tt=zo(N,function(Cr){a&&(ge.scroller.draggable=!1),N.state.draggingText=!1,dt(ge.wrapper.ownerDocument,"mouseup",Tt),dt(ge.wrapper.ownerDocument,"mousemove",tr),dt(ge.scroller,"dragstart",yr),dt(ge.scroller,"drop",Tt),Ke||(Ge(Cr),le.addNew||js(N.doc,ie,null,null,le.extend),a&&!e||h&&u==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),tr=function(Bn){Ke=Ke||Math.abs(U.clientX-Bn.clientX)+Math.abs(U.clientY-Bn.clientY)>=10},yr=function(){return Ke=!0};a&&(ge.scroller.draggable=!0),N.state.draggingText=Tt,Tt.copy=!le.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),Ve(ge.wrapper.ownerDocument,"mouseup",Tt),Ve(ge.wrapper.ownerDocument,"mousemove",tr),Ve(ge.scroller,"dragstart",yr),Ve(ge.scroller,"drop",Tt),ai(N),setTimeout(function(){return ge.input.focus()},20)}function Ya(N,U,ie){if(ie=="char")return new ce(U,U);if(ie=="word")return N.findWordAt(U);if(ie=="line")return new ce(jt(U.line,0),Rt(N.doc,jt(U.line+1,0)));var le=ie(N,U);return new ce(le.from,le.to)}function Ba(N,U,ie,le){var ge=N.display,Ke=N.doc;Ge(U);var Tt,tr,yr=Ke.sel,Cr=yr.ranges;if(le.addNew&&!le.extend?(tr=Ke.sel.contains(ie),tr>-1?Tt=Cr[tr]:Tt=new ce(ie,ie)):(Tt=Ke.sel.primary(),tr=Ke.sel.primIndex),le.unit=="rectangle")le.addNew||(Tt=new ce(ie,ie)),ie=_o(N,U,!0,!0),tr=-1;else{var Bn=Ya(N,ie,le.unit);le.extend?Tt=fl(Tt,Bn.anchor,Bn.head,le.extend):Tt=Bn}le.addNew?tr==-1?(tr=Cr.length,Ts(Ke,Se(N,Cr.concat([Tt]),tr),{scroll:!1,origin:"*mouse"})):Cr.length>1&&Cr[tr].empty()&&le.unit=="char"&&!le.extend?(Ts(Ke,Se(N,Cr.slice(0,tr).concat(Cr.slice(tr+1)),0),{scroll:!1,origin:"*mouse"}),yr=Ke.sel):Xs(Ke,tr,Tt,$):(tr=0,Ts(Ke,new It([Tt],0),$),yr=Ke.sel);var qn=ie;function Si(qa){if(gt(qn,qa)==0)return;if(qn=qa,le.unit=="rectangle"){for(var ho=[],ns=N.options.tabSize,Mo=V(Pe(Ke,ie.line).text,ie.ch,ns),Ss=V(Pe(Ke,qa.line).text,qa.ch,ns),Zs=Math.min(Mo,Ss),yl=Math.max(Mo,Ss),ul=Math.min(ie.line,qa.line),Pl=Math.min(N.lastLine(),Math.max(ie.line,qa.line));ul<=Pl;ul++){var Vl=Pe(Ke,ul).text,Il=_e(Vl,Zs,ns);Zs==yl?ho.push(new ce(jt(ul,Il),jt(ul,Il))):Vl.length>Il&&ho.push(new ce(jt(ul,Il),jt(ul,_e(Vl,yl,ns))))}ho.length||ho.push(new ce(ie,ie)),Ts(Ke,Se(N,yr.ranges.slice(0,tr).concat(ho),tr),{origin:"*mouse",scroll:!1}),N.scrollIntoView(qa)}else{var Gl=Tt,Fl=Ya(N,qa,le.unit),Ja=Gl.anchor,vl;gt(Fl.anchor,Ja)>0?(vl=Fl.head,Ja=Mt(Gl.from(),Fl.anchor)):(vl=Fl.anchor,Ja=Ht(Gl.to(),Fl.head));var gl=yr.ranges.slice(0);gl[tr]=Sa(N,new ce(Rt(Ke,Ja),vl)),Ts(Ke,Se(N,gl,tr),$)}}var Ci=ge.wrapper.getBoundingClientRect(),la=0;function Ta(qa){var ho=++la,ns=_o(N,qa,!0,le.unit=="rectangle");if(!ns)return;if(gt(ns,qn)!=0){N.curOp.focus=P(),Si(ns);var Mo=na(ge,Ke);(ns.line>=Mo.to||ns.line<Mo.from)&&setTimeout(zo(N,function(){la==ho&&Ta(qa)}),150)}else{var Ss=qa.clientY<Ci.top?-20:qa.clientY>Ci.bottom?20:0;Ss&&setTimeout(zo(N,function(){if(la!=ho)return;ge.scroller.scrollTop+=Ss,Ta(qa)}),50)}}function Wa(qa){N.state.selectingText=!1,la=Infinity,qa&&(Ge(qa),ge.input.focus()),dt(ge.wrapper.ownerDocument,"mousemove",ka),dt(ge.wrapper.ownerDocument,"mouseup",Na),Ke.history.lastSelOrigin=null}var ka=zo(N,function(qa){qa.buttons===0||!de(qa)?Wa(qa):Ta(qa)}),Na=zo(N,Wa);N.state.selectingText=Na,Ve(ge.wrapper.ownerDocument,"mousemove",ka),Ve(ge.wrapper.ownerDocument,"mouseup",Na)}function Sa(N,U){var ie=U.anchor,le=U.head,ge=Pe(N.doc,ie.line);if(gt(ie,le)==0&&ie.sticky==le.sticky)return U;var Ke=Ct(ge);if(!Ke)return U;var Tt=Fe(Ke,ie.ch,ie.sticky),tr=Ke[Tt];if(tr.from!=ie.ch&&tr.to!=ie.ch)return U;var yr=Tt+(tr.from==ie.ch==(tr.level!=1)?0:1);if(yr==0||yr==Ke.length)return U;var Cr;if(le.line!=ie.line)Cr=(le.line-ie.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Bn=Fe(Ke,le.ch,le.sticky),qn=Bn-Tt||(le.ch-ie.ch)*(tr.level==1?-1:1);Bn==yr-1||Bn==yr?Cr=qn<0:Cr=qn>0}var Si=Ke[yr+(Cr?-1:0)],Ci=Cr==(Si.level==1),la=Ci?Si.from:Si.to,Ta=Ci?"after":"before";return ie.ch==la&&ie.sticky==Ta?U:new ce(new jt(ie.line,la,Ta),le)}function Go(N,U,ie,le){var ge,Ke;if(U.touches)ge=U.touches[0].clientX,Ke=U.touches[0].clientY;else try{ge=U.clientX,Ke=U.clientY}catch(Si){return!1}if(ge>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;le&&Ge(U);var Tt=N.display,tr=Tt.lineDiv.getBoundingClientRect();if(Ke>tr.bottom||!Pt(N,ie))return se(U);Ke-=tr.top-Tt.viewOffset;for(var yr=0;yr<N.display.gutterSpecs.length;++yr){var Cr=Tt.gutters.childNodes[yr];if(Cr&&Cr.getBoundingClientRect().right>=ge){var Bn=Mr(N.doc,Ke),qn=N.display.gutterSpecs[yr];return Yt(N,ie,N,Bn,qn.className,U),se(U)}}}function Ls(N,U){return Go(N,U,"gutterClick",!0)}function ys(N,U){if(Jn(N.display,U)||bs(N,U))return;if(hr(N,U,"contextmenu"))return;C||N.display.input.onContextMenu(U)}function bs(N,U){return Pt(N,"gutterContextMenu")?Go(N,U,"gutterContextMenu",!1):!1}function Fs(N){N.display.wrapper.className=N.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+N.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ga(N)}var ws={toString:function(){return"CodeMirror.Init"}},Ws={},xe={};function Je(N){var U=N.optionHandlers;function ie(le,ge,Ke,Tt){N.defaults[le]=ge,Ke&&(U[le]=Tt?function(tr,yr,Cr){Cr!=ws&&Ke(tr,yr,Cr)}:Ke)}N.defineOption=ie,N.Init=ws,ie("value","",function(le,ge){return le.setValue(ge)},!0),ie("mode",null,function(le,ge){le.doc.modeOption=ge,In(le)},!0),ie("indentUnit",2,In,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(le){si(le),Ga(le),Ha(le)},!0),ie("lineSeparator",null,function(le,ge){if(le.doc.lineSep=ge,!ge)return;var Ke=[],Tt=le.doc.first;le.doc.iter(function(yr){for(var Cr=0;;){var Bn=yr.text.indexOf(ge,Cr);if(Bn==-1)break;Cr=Bn+ge.length,Ke.push(jt(Tt,Bn))}Tt++});for(var tr=Ke.length-1;tr>=0;tr--)jl(le.doc,ge,Ke[tr],jt(Ke[tr].line,Ke[tr].ch+ge.length))}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(le,ge,Ke){le.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),Ke!=ws&&le.refresh()}),ie("specialCharPlaceholder",xi,function(le){return le.refresh()},!0),ie("electricChars",!0),ie("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ie("spellcheck",!1,function(le,ge){return le.getInputField().spellcheck=ge},!0),ie("autocorrect",!1,function(le,ge){return le.getInputField().autocorrect=ge},!0),ie("autocapitalize",!1,function(le,ge){return le.getInputField().autocapitalize=ge},!0),ie("rtlMoveVisually",!b),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(le){Fs(le),fs(le)},!0),ie("keyMap","default",function(le,ge,Ke){var Tt=hl(ge),tr=Ke!=ws&&hl(Ke);tr&&tr.detach&&tr.detach(le,Tt),Tt.attach&&Tt.attach(le,tr||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,lr,!0),ie("gutters",[],function(le,ge){le.display.gutterSpecs=Vo(ge,le.options.lineNumbers),fs(le)},!0),ie("fixedGutter",!0,function(le,ge){le.display.gutters.style.left=ge?xo(le.display)+"px":"0",le.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(le){return Lo(le)},!0),ie("scrollbarStyle","native",function(le){Rs(le),Lo(le),le.display.scrollbars.setScrollTop(le.doc.scrollTop),le.display.scrollbars.setScrollLeft(le.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(le,ge){le.display.gutterSpecs=Vo(le.options.gutters,ge),fs(le)},!0),ie("firstLineNumber",1,fs,!0),ie("lineNumberFormatter",function(le){return le},fs,!0),ie("showCursorWhenSelecting",!1,un,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(le,ge){ge=="nocursor"&&(mi(le),le.display.input.blur()),le.display.input.readOnlyChanged(ge)}),ie("screenReaderLabel",null,function(le,ge){ge=ge===""?null:ge,le.display.input.screenReaderLabelChanged(ge)}),ie("disableInput",!1,function(le,ge){ge||le.display.input.reset()},!0),ie("dragDrop",!0,bt),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,un,!0),ie("singleCursorHeightPerLine",!0,un,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,si,!0),ie("addModeClass",!1,si,!0),ie("pollInterval",100),ie("undoDepth",200,function(le,ge){return le.doc.history.undoDepth=ge}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(le){return le.refresh()},!0),ie("maxHighlightLength",1e4,si,!0),ie("moveInputWithCursor",!0,function(le,ge){ge||le.display.input.resetPosition()}),ie("tabindex",null,function(le,ge){return le.display.input.getField().tabIndex=ge||""}),ie("autofocus",null),ie("direction","ltr",function(le,ge){return le.doc.setDirection(ge)},!0),ie("phrases",null)}function bt(N,U,ie){var le=ie&&ie!=ws;if(!U!=!le){var ge=N.display.dragFunctions,Ke=U?Ve:dt;Ke(N.display.scroller,"dragstart",ge.start),Ke(N.display.scroller,"dragenter",ge.enter),Ke(N.display.scroller,"dragover",ge.over),Ke(N.display.scroller,"dragleave",ge.leave),Ke(N.display.scroller,"drop",ge.drop)}}function lr(N){N.options.lineWrapping?(X(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(T(N.display.wrapper,"CodeMirror-wrap"),Dn(N)),Ho(N),Ha(N),Ga(N),setTimeout(function(){return Lo(N)},100)}function Fr(N,U){var ie=this;if(!(this instanceof Fr))return new Fr(N,U);this.options=U=U?z(U):{},z(Ws,U,!1);var le=U.value;typeof le=="string"?le=new Cl(le,U.mode,null,U.lineSeparator,U.direction):U.mode&&(le.modeOption=U.mode),this.doc=le;var ge=new Fr.inputStyles[U.inputStyle](this),Ke=this.display=new Ds(N,le,ge,U);Ke.wrapper.CodeMirror=this,Fs(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&&!d&&Ke.input.focus(),h&&u<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),an(this),cu(),as(this),this.curOp.forceUpdate=!0,sa(this,le),U.autofocus&&!d||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&Ei(ie)},20):mi(this);for(var Tt in xe)xe.hasOwnProperty(Tt)&&xe[Tt](this,U[Tt],ws);Js(this),U.finishInit&&U.finishInit(this);for(var tr=0;tr<Be.length;++tr)Be[tr](this);co(this),a&&U.lineWrapping&&getComputedStyle(Ke.lineDiv).textRendering=="optimizelegibility"&&(Ke.lineDiv.style.textRendering="auto")}Fr.defaults=Ws,Fr.optionHandlers=xe;function an(N){var U=N.display;Ve(U.scroller,"mousedown",zo(N,bi)),h&&u<11?Ve(U.scroller,"dblclick",zo(N,function(yr){if(hr(N,yr))return;var Cr=_o(N,yr);if(!Cr||Ls(N,yr)||Jn(N.display,yr))return;Ge(yr);var Bn=N.findWordAt(Cr);js(N.doc,Bn.anchor,Bn.head)})):Ve(U.scroller,"dblclick",function(yr){return hr(N,yr)||Ge(yr)}),Ve(U.scroller,"contextmenu",function(yr){return ys(N,yr)}),Ve(U.input.getField(),"contextmenu",function(yr){U.scroller.contains(yr.target)||ys(N,yr)});var ie,le={end:0};function ge(){U.activeTouch&&(ie=setTimeout(function(){return U.activeTouch=null},1e3),le=U.activeTouch,le.end=+new Date)}function Ke(yr){if(yr.touches.length!=1)return!1;var Cr=yr.touches[0];return Cr.radiusX<=1&&Cr.radiusY<=1}function Tt(yr,Cr){if(Cr.left==null)return!0;var Bn=Cr.left-yr.left,qn=Cr.top-yr.top;return Bn*Bn+qn*qn>20*20}Ve(U.scroller,"touchstart",function(yr){if(!hr(N,yr)&&!Ke(yr)&&!Ls(N,yr)){U.input.ensurePolled(),clearTimeout(ie);var Cr=+new Date;U.activeTouch={start:Cr,moved:!1,prev:Cr-le.end<=300?le:null},yr.touches.length==1&&(U.activeTouch.left=yr.touches[0].pageX,U.activeTouch.top=yr.touches[0].pageY)}}),Ve(U.scroller,"touchmove",function(){U.activeTouch&&(U.activeTouch.moved=!0)}),Ve(U.scroller,"touchend",function(yr){var Cr=U.activeTouch;if(Cr&&!Jn(U,yr)&&Cr.left!=null&&!Cr.moved&&new Date-Cr.start<300){var Bn=N.coordsChar(U.activeTouch,"page"),qn;!Cr.prev||Tt(Cr,Cr.prev)?qn=new ce(Bn,Bn):!Cr.prev.prev||Tt(Cr,Cr.prev.prev)?qn=N.findWordAt(Bn):qn=new ce(jt(Bn.line,0),Rt(N.doc,jt(Bn.line+1,0))),N.setSelection(qn.anchor,qn.head),N.focus(),Ge(yr)}ge()}),Ve(U.scroller,"touchcancel",ge),Ve(U.scroller,"scroll",function(){U.scroller.clientHeight&&(Ea(N,U.scroller.scrollTop),Ka(N,U.scroller.scrollLeft,!0),Yt(N,"scroll",N))}),Ve(U.scroller,"mousewheel",function(yr){return di(N,yr)}),Ve(U.scroller,"DOMMouseScroll",function(yr){return di(N,yr)}),Ve(U.wrapper,"scroll",function(){return U.wrapper.scrollTop=U.wrapper.scrollLeft=0}),U.dragFunctions={enter:function(Cr){hr(N,Cr)||lt(Cr)},over:function(Cr){hr(N,Cr)||(Su(N,Cr),lt(Cr))},start:function(Cr){return Sl(N,Cr)},drop:zo(N,Hl),leave:function(Cr){hr(N,Cr)||vu(N)}};var tr=U.input.getField();Ve(tr,"keyup",function(yr){return Tr.call(N,yr)}),Ve(tr,"keydown",zo(N,ct)),Ve(tr,"keypress",zo(N,br)),Ve(tr,"focus",function(yr){return Ei(N,yr)}),Ve(tr,"blur",function(yr){return mi(N,yr)})}var Be=[];Fr.defineInitHook=function(N){return Be.push(N)};function ae(N,U,ie,le){var ge=N.doc,Ke;ie==null&&(ie="add"),ie=="smart"&&(ge.mode.indent?Ke=ti(N,U).state:ie="prev");var Tt=N.options.tabSize,tr=Pe(ge,U),yr=V(tr.text,null,Tt);tr.stateAfter&&(tr.stateAfter=null);var Cr=tr.text.match(/^\s*/)[0],Bn;if(!le&&!/\S/.test(tr.text))Bn=0,ie="not";else if(ie=="smart"&&(Bn=ge.mode.indent(Ke,tr.text.slice(Cr.length),tr.text),Bn==ee||Bn>150)){if(!le)return;ie="prev"}ie=="prev"?U>ge.first?Bn=V(Pe(ge,U-1).text,null,Tt):Bn=0:ie=="add"?Bn=yr+N.options.indentUnit:ie=="subtract"?Bn=yr-N.options.indentUnit:typeof ie=="number"&&(Bn=yr+ie),Bn=Math.max(0,Bn);var qn="",Si=0;if(N.options.indentWithTabs)for(var Ci=Math.floor(Bn/Tt);Ci;--Ci)Si+=Tt,qn+=" ";if(Si<Bn&&(qn+=Xe(Bn-Si)),qn!=Cr)return jl(ge,qn,jt(U,0),jt(U,Cr.length),"+input"),tr.stateAfter=null,!0;for(var la=0;la<ge.sel.ranges.length;la++){var Ta=ge.sel.ranges[la];if(Ta.head.line==U&&Ta.head.ch<Cr.length){var Wa=jt(U,Cr.length);Xs(ge,la,new ce(Wa,Wa));break}}}var Oe=null;function qe(N){Oe=N}function At(N,U,ie,le,ge){var Ke=N.doc;N.display.shift=!1,le||(le=Ke.sel);var Tt=+new Date-200,tr=ge=="paste"||N.state.pasteIncoming>Tt,yr=Cn(U),Cr=null;if(tr&&le.ranges.length>1)if(Oe&&Oe.text.join(`
`)==U){if(le.ranges.length%Oe.text.length==0){Cr=[];for(var Bn=0;Bn<Oe.text.length;Bn++)Cr.push(Ke.splitLines(Oe.text[Bn]))}}else yr.length==le.ranges.length&&N.options.pasteLinesPerSelection&&(Cr=nt(yr,function(ka){return[ka]}));for(var qn=N.curOp.updateInput,Si=le.ranges.length-1;Si>=0;Si--){var Ci=le.ranges[Si],la=Ci.from(),Ta=Ci.to();Ci.empty()&&(ie&&ie>0?la=jt(la.line,la.ch-ie):N.state.overwrite&&!tr?Ta=jt(Ta.line,Math.min(Pe(Ke,Ta.line).text.length,Ta.ch+He(yr).length)):tr&&Oe&&Oe.lineWise&&Oe.text.join(`
`)==yr.join(`
`)&&(la=Ta=jt(la.line,0)));var Wa={from:la,to:Ta,text:Cr?Cr[Si%Cr.length]:yr,origin:ge||(tr?"paste":N.state.cutIncoming>Tt?"cut":"+input")};Is(N.doc,Wa),Ir(N,"inputRead",N,Wa)}U&&!tr&&$t(N,U),Da(N),N.curOp.updateInput<2&&(N.curOp.updateInput=qn),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function Ut(N,U){var ie=N.clipboardData&&N.clipboardData.getData("Text");if(ie)return N.preventDefault(),!U.isReadOnly()&&!U.options.disableInput&&Eo(U,function(){return At(U,ie,0,null,"paste")}),!0}function $t(N,U){if(!N.options.electricChars||!N.options.smartIndent)return;for(var ie=N.doc.sel,le=ie.ranges.length-1;le>=0;le--){var ge=ie.ranges[le];if(ge.head.ch>100||le&&ie.ranges[le-1].head.line==ge.head.line)continue;var Ke=N.getModeAt(ge.head),Tt=!1;if(Ke.electricChars){for(var tr=0;tr<Ke.electricChars.length;tr++)if(U.indexOf(Ke.electricChars.charAt(tr))>-1){Tt=ae(N,ge.head.line,"smart");break}}else Ke.electricInput&&(Ke.electricInput.test(Pe(N.doc,ge.head.line).text.slice(0,ge.head.ch))&&(Tt=ae(N,ge.head.line,"smart")));Tt&&Ir(N,"electricInput",N,ge.head.line)}}function rr(N){for(var U=[],ie=[],le=0;le<N.doc.sel.ranges.length;le++){var ge=N.doc.sel.ranges[le].head.line,Ke={anchor:jt(ge,0),head:jt(ge+1,0)};ie.push(Ke),U.push(N.getRange(Ke.anchor,Ke.head))}return{text:U,ranges:ie}}function Wr(N,U,ie,le){N.setAttribute("autocorrect",ie?"":"off"),N.setAttribute("autocapitalize",le?"":"off"),N.setAttribute("spellcheck",!!U)}function cn(){var N=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),U=I("div",[N],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?N.style.width="1000px":N.setAttribute("wrap","off"),s&&(N.style.border="1px solid black"),Wr(N),U}function Hr(N){var U=N.optionHandlers,ie=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,Ke){var Tt=this.options,tr=Tt[ge];if(Tt[ge]==Ke&&ge!="mode")return;Tt[ge]=Ke,U.hasOwnProperty(ge)&&zo(this,U[ge])(this,Ke,tr),Yt(this,"optionChange",this,ge)},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,Ke){this.state.keyMaps[Ke?"push":"unshift"](hl(ge))},removeKeyMap:function(ge){for(var Ke=this.state.keyMaps,Tt=0;Tt<Ke.length;++Tt)if(Ke[Tt]==ge||Ke[Tt].name==ge)return Ke.splice(Tt,1),!0},addOverlay:Bs(function(le,ge){var Ke=le.token?le:N.getMode(this.options,le);if(Ke.startState)throw new Error("Overlays may not be stateful.");Ie(this.state.overlays,{mode:Ke,modeSpec:le,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(Tt){return Tt.priority}),this.state.modeGen++,Ha(this)}),removeOverlay:Bs(function(le){for(var ge=this.state.overlays,Ke=0;Ke<ge.length;++Ke){var Tt=ge[Ke].modeSpec;if(Tt==le||typeof le=="string"&&Tt.name==le){ge.splice(Ke,1),this.state.modeGen++,Ha(this);return}}}),indentLine:Bs(function(le,ge,Ke){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),$r(this.doc,le)&&ae(this,le,ge,Ke)}),indentSelection:Bs(function(le){for(var ge=this.doc.sel.ranges,Ke=-1,Tt=0;Tt<ge.length;Tt++){var tr=ge[Tt];if(tr.empty())tr.head.line>Ke&&(ae(this,tr.head.line,le,!0),Ke=tr.head.line,Tt==this.doc.sel.primIndex&&Da(this));else{var yr=tr.from(),Cr=tr.to(),Bn=Math.max(Ke,yr.line);Ke=Math.min(this.lastLine(),Cr.line-(Cr.ch?0:1))+1;for(var qn=Bn;qn<Ke;++qn)ae(this,qn,le);var Si=this.doc.sel.ranges;yr.ch==0&&ge.length==Si.length&&Si[Tt].from().ch>0&&Xs(this.doc,Tt,new ce(yr,Si[Tt].to()),ue)}}}),getTokenAt:function(ge,Ke){return Wi(this,ge,Ke)},getLineTokens:function(ge,Ke){return Wi(this,jt(ge),Ke,!0)},getTokenTypeAt:function(ge){ge=Rt(this.doc,ge);var Ke=mn(this,Pe(this.doc,ge.line)),Tt=0,tr=(Ke.length-1)/2,yr=ge.ch,Cr;if(yr==0)Cr=Ke[2];else for(;;){var Bn=Tt+tr>>1;if((Bn?Ke[Bn*2-1]:0)>=yr)tr=Bn;else if(Ke[Bn*2+1]<yr)Tt=Bn+1;else{Cr=Ke[Bn*2+2];break}}var qn=Cr?Cr.indexOf("overlay "):-1;return qn<0?Cr:qn==0?null:Cr.slice(0,qn-1)},getModeAt:function(ge){var Ke=this.doc.mode;return Ke.innerMode?N.innerMode(Ke,this.getTokenAt(ge).state).mode:Ke},getHelper:function(ge,Ke){return this.getHelpers(ge,Ke)[0]},getHelpers:function(ge,Ke){var Tt=[];if(!ie.hasOwnProperty(Ke))return Tt;var tr=ie[Ke],yr=this.getModeAt(ge);if(typeof yr[Ke]=="string")tr[yr[Ke]]&&Tt.push(tr[yr[Ke]]);else if(yr[Ke])for(var Cr=0;Cr<yr[Ke].length;Cr++){var Bn=tr[yr[Ke][Cr]];Bn&&Tt.push(Bn)}else yr.helperType&&tr[yr.helperType]?Tt.push(tr[yr.helperType]):tr[yr.name]&&Tt.push(tr[yr.name]);for(var qn=0;qn<tr._global.length;qn++){var Si=tr._global[qn];Si.pred(yr,this)&&G(Tt,Si.val)==-1&&Tt.push(Si.val)}return Tt},getStateAfter:function(ge,Ke){var Tt=this.doc;return ge=qt(Tt,ge==null?Tt.first+Tt.size-1:ge),ti(this,ge+1,Ke).state},cursorCoords:function(ge,Ke){var Tt,tr=this.doc.sel.primary();return ge==null?Tt=tr.head:typeof ge=="object"?Tt=Rt(this.doc,ge):Tt=ge?tr.from():tr.to(),mo(this,Tt,Ke||"page")},charCoords:function(ge,Ke){return Qo(this,Rt(this.doc,ge),Ke||"page")},coordsChar:function(ge,Ke){return ge=oo(this,ge,Ke||"page"),So(this,ge.left,ge.top)},lineAtHeight:function(ge,Ke){return ge=oo(this,{top:ge,left:0},Ke||"page").top,Mr(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,Ke,Tt){var tr=!1,yr;if(typeof ge=="number"){var Cr=this.doc.first+this.doc.size-1;ge<this.doc.first?ge=this.doc.first:ge>Cr&&(ge=Cr,tr=!0),yr=Pe(this.doc,ge)}else yr=ge;return io(this,yr,{top:0,left:0},Ke||"page",Tt||tr).top+(tr?this.doc.height-Rr(yr):0)},defaultTextHeight:function(){return Oo(this.display)},defaultCharWidth:function(){return Io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,Ke,Tt,tr,yr){var Cr=this.display;ge=mo(this,Rt(this.doc,ge));var Bn=ge.bottom,qn=ge.left;if(Ke.style.position="absolute",Ke.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ke),Cr.sizer.appendChild(Ke),tr=="over")Bn=ge.top;else if(tr=="above"||tr=="near"){var Si=Math.max(Cr.wrapper.clientHeight,this.doc.height),Ci=Math.max(Cr.sizer.clientWidth,Cr.lineSpace.clientWidth);(tr=="above"||ge.bottom+Ke.offsetHeight>Si)&&ge.top>Ke.offsetHeight?Bn=ge.top-Ke.offsetHeight:ge.bottom+Ke.offsetHeight<=Si&&(Bn=ge.bottom),qn+Ke.offsetWidth>Ci&&(qn=Ci-Ke.offsetWidth)}Ke.style.top=Bn+"px",Ke.style.left=Ke.style.right="",yr=="right"?(qn=Cr.sizer.clientWidth-Ke.offsetWidth,Ke.style.right="0px"):(yr=="left"?qn=0:yr=="middle"&&(qn=(Cr.sizer.clientWidth-Ke.offsetWidth)/2),Ke.style.left=qn+"px"),Tt&&Xa(this,{left:qn,top:Bn,right:qn+Ke.offsetWidth,bottom:Bn+Ke.offsetHeight})},triggerOnKeyDown:Bs(ct),triggerOnKeyPress:Bs(br),triggerOnKeyUp:Tr,triggerOnMouseDown:Bs(bi),execCommand:function(ge){if(iu.hasOwnProperty(ge))return iu[ge].call(null,this)},triggerElectric:Bs(function(le){$t(this,le)}),findPosH:function(ge,Ke,Tt,tr){var yr=1;Ke<0&&(yr=-1,Ke=-Ke);for(var Cr=Rt(this.doc,ge),Bn=0;Bn<Ke&&!(Cr=Ur(this.doc,Cr,yr,Tt,tr),Cr.hitSide);++Bn);return Cr},moveH:Bs(function(le,ge){var Ke=this;this.extendSelectionsBy(function(Tt){return Ke.display.shift||Ke.doc.extend||Tt.empty()?Ur(Ke.doc,Tt.head,le,ge,Ke.options.rtlMoveVisually):le<0?Tt.from():Tt.to()},be)}),deleteH:Bs(function(le,ge){var Ke=this.doc.sel,Tt=this.doc;Ke.somethingSelected()?Tt.replaceSelection("",null,"+delete"):Dl(this,function(tr){var yr=Ur(Tt,tr.head,le,ge,!1);return le<0?{from:yr,to:tr.head}:{from:tr.head,to:yr}})}),findPosV:function(ge,Ke,Tt,tr){var yr=1,Cr=tr;Ke<0&&(yr=-1,Ke=-Ke);for(var Bn=Rt(this.doc,ge),qn=0;qn<Ke;++qn){var Si=mo(this,Bn,"div");if(Cr==null?Cr=Si.left:Si.left=Cr,Bn=on(this,Si,yr,Tt),Bn.hitSide)break}return Bn},moveV:Bs(function(le,ge){var Ke=this,Tt=this.doc,tr=[],yr=!this.display.shift&&!Tt.extend&&Tt.sel.somethingSelected();if(Tt.extendSelectionsBy(function(Bn){if(yr)return le<0?Bn.from():Bn.to();var qn=mo(Ke,Bn.head,"div");Bn.goalColumn!=null&&(qn.left=Bn.goalColumn),tr.push(qn.left);var Si=on(Ke,qn,le,ge);return ge=="page"&&Bn==Tt.sel.primary()&&wa(Ke,Qo(Ke,Si,"div").top-qn.top),Si},be),tr.length)for(var Cr=0;Cr<Tt.sel.ranges.length;Cr++)Tt.sel.ranges[Cr].goalColumn=tr[Cr]}),findWordAt:function(ge){var Ke=this.doc,Tt=Pe(Ke,ge.line).text,tr=ge.ch,yr=ge.ch;if(Tt){var Cr=this.getHelper(ge,"wordChars");(ge.sticky=="before"||yr==Tt.length)&&tr?--tr:++yr;for(var Bn=Tt.charAt(tr),qn=Y(Bn,Cr)?function(Si){return Y(Si,Cr)}:/\s/.test(Bn)?function(Si){return/\s/.test(Si)}:function(Si){return!/\s/.test(Si)&&!Y(Si)};tr>0&&qn(Tt.charAt(tr-1));)--tr;for(;yr<Tt.length&&qn(Tt.charAt(yr));)++yr}return new ce(jt(ge.line,tr),jt(ge.line,yr))},toggleOverwrite:function(ge){if(ge!=null&&ge==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),Yt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Bs(function(le,ge){ja(this,le,ge)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-yi(this)-this.display.barHeight,width:ge.scrollWidth-yi(this)-this.display.barWidth,clientHeight:Ki(this),clientWidth:_i(this)}},scrollIntoView:Bs(function(le,ge){le==null?(le={from:this.doc.sel.primary().head,to:null},ge==null&&(ge=this.options.cursorScrollMargin)):typeof le=="number"?le={from:jt(le,0),to:null}:le.from==null&&(le={from:le,to:null}),le.to||(le.to=le.from),le.margin=ge||0,le.from.line!=null?ko(this,le):pa(this,le.from,le.to,le.margin)}),setSize:Bs(function(le,ge){var Ke=this,Tt=function(Cr){return typeof Cr=="number"||/^\d+$/.test(String(Cr))?Cr+"px":Cr};le!=null&&(this.display.wrapper.style.width=Tt(le)),ge!=null&&(this.display.wrapper.style.height=Tt(ge)),this.options.lineWrapping&&Aa(this);var tr=this.display.viewFrom;this.doc.iter(tr,this.display.viewTo,function(yr){if(yr.widgets){for(var Cr=0;Cr<yr.widgets.length;Cr++)if(yr.widgets[Cr].noHScroll){ht(Ke,tr,"widget");break}}++tr}),this.curOp.forceUpdate=!0,Yt(this,"refresh",this)}),operation:function(ge){return Eo(this,ge)},startOperation:function(){return as(this)},endOperation:function(){return co(this)},refresh:Bs(function(){var le=this.display.cachedTextHeight;Ha(this),this.curOp.forceUpdate=!0,Ga(this),ja(this,this.doc.scrollLeft,this.doc.scrollTop),xs(this.display),(le==null||Math.abs(le-Oo(this.display))>.5||this.options.lineWrapping)&&Ho(this),Yt(this,"refresh",this)}),swapDoc:Bs(function(le){var ge=this.doc;return ge.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,le),Ga(this),this.display.input.reset(),ja(this,le.scrollLeft,le.scrollTop),this.curOp.forceScroll=!0,Ir(this,"swapDoc",this,ge),ge}),phrase:function(ge){var Ke=this.options.phrases;return Ke&&Object.prototype.hasOwnProperty.call(Ke,ge)?Ke[ge]:ge},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Xt(N),N.registerHelper=function(le,ge,Ke){ie.hasOwnProperty(le)||(ie[le]=N[le]={_global:[]}),ie[le][ge]=Ke},N.registerGlobalHelper=function(le,ge,Ke,Tt){N.registerHelper(le,ge,Tt),ie[le]._global.push({pred:Ke,val:Tt})}}function Ur(N,U,ie,le,ge){var Ke=U,Tt=ie,tr=Pe(N,U.line),yr=ge&&N.direction=="rtl"?-ie:ie;function Cr(){var Na=U.line+yr;return Na<N.first||Na>=N.first+N.size?!1:(U=new jt(Na,U.ch,U.sticky),tr=Pe(N,Na))}function Bn(Na){var qa;if(le=="codepoint"){var ho=tr.text.charCodeAt(U.ch+(le>0?0:-1));isNaN(ho)?qa=null:qa=new jt(U.line,Math.max(0,Math.min(tr.text.length,U.ch+ie*(ho>=55296&&ho<56320?2:1))),-ie)}else ge?qa=fu(N.cm,tr,U,ie):qa=Nu(tr,U,ie);if(qa==null)if(!Na&&Cr())U=hu(ge,N.cm,tr,U.line,yr);else return!1;else U=qa;return!0}if(le=="char"||le=="codepoint")Bn();else if(le=="column")Bn(!0);else if(le=="word"||le=="group")for(var qn=null,Si=le=="group",Ci=N.cm&&N.cm.getHelper(U,"wordChars"),la=!0;!(ie<0&&!Bn(!la));la=!1){var Ta=tr.text.charAt(U.ch)||`
`,Wa=Y(Ta,Ci)?"w":Si&&Ta==`
`?"n":!Si||/\s/.test(Ta)?null:"p";if(Si&&!la&&!Wa&&(Wa="s"),qn&&qn!=Wa){ie<0&&(ie=1,Bn(),U.sticky="after");break}if(Wa&&(qn=Wa),ie>0&&!Bn(!la))break}var ka=qo(N,U,Ke,Tt,!0);return pt(Ke,ka)&&(ka.hitSide=!0),ka}function on(N,U,ie,le){var ge=N.doc,Ke=U.left,Tt;if(le=="page"){var tr=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),yr=Math.max(tr-.5*Oo(N.display),3);Tt=(ie>0?U.bottom:U.top)+ie*yr}else le=="line"&&(Tt=ie>0?U.bottom+3:U.top-3);for(var Cr;!(Cr=So(N,Ke,Tt),!Cr.outside);){if(ie<0?Tt<=0:Tt>=ge.height){Cr.hitSide=!0;break}Tt+=ie*5}return Cr}var gn=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};gn.prototype.init=function(N){var U=this,ie=this,le=ie.cm,ge=ie.div=N.lineDiv;Wr(ge,le.options.spellcheck,le.options.autocorrect,le.options.autocapitalize);function Ke(tr){for(var yr=tr.target;yr;yr=yr.parentNode){if(yr==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(yr.className))break}return!1}Ve(ge,"paste",function(tr){if(!Ke(tr)||hr(le,tr)||Ut(tr,le))return;u<=11&&setTimeout(zo(le,function(){return U.updateFromDOM()}),20)}),Ve(ge,"compositionstart",function(tr){U.composing={data:tr.data,done:!1}}),Ve(ge,"compositionupdate",function(tr){U.composing||(U.composing={data:tr.data,done:!1})}),Ve(ge,"compositionend",function(tr){U.composing&&(tr.data!=U.composing.data&&U.readFromDOMSoon(),U.composing.done=!0)}),Ve(ge,"touchstart",function(){return ie.forceCompositionEnd()}),Ve(ge,"input",function(){U.composing||U.readFromDOMSoon()});function Tt(tr){if(!Ke(tr)||hr(le,tr))return;if(le.somethingSelected())qe({lineWise:!1,text:le.getSelections()}),tr.type=="cut"&&le.replaceSelection("",null,"cut");else if(le.options.lineWiseCopyCut){var yr=rr(le);qe({lineWise:!0,text:yr.text}),tr.type=="cut"&&le.operation(function(){le.setSelections(yr.ranges,0,ue),le.replaceSelection("",null,"cut")})}else return;if(tr.clipboardData){tr.clipboardData.clearData();var Cr=Oe.text.join(`
`);if(tr.clipboardData.setData("Text",Cr),tr.clipboardData.getData("Text")==Cr){tr.preventDefault();return}}var Bn=cn(),qn=Bn.firstChild;le.display.lineSpace.insertBefore(Bn,le.display.lineSpace.firstChild),qn.value=Oe.text.join(`
`);var Si=document.activeElement;j(qn),setTimeout(function(){le.display.lineSpace.removeChild(Bn),Si.focus(),Si==ge&&ie.showPrimarySelection()},50)}Ve(ge,"copy",Tt),Ve(ge,"cut",Tt)},gn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},gn.prototype.prepareSelection=function(){var N=Gr(this.cm,!1);return N.focus=document.activeElement==this.div,N},gn.prototype.showSelection=function(N,U){if(!N||!this.cm.display.view.length)return;(N.focus||U)&&this.showPrimarySelection(),this.showMultipleSelections(N)},gn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},gn.prototype.showPrimarySelection=function(){var N=this.getSelection(),U=this.cm,ie=U.doc.sel.primary(),le=ie.from(),ge=ie.to();if(U.display.viewTo==U.display.viewFrom||le.line>=U.display.viewTo||ge.line<U.display.viewFrom){N.removeAllRanges();return}var Ke=Ji(U,N.anchorNode,N.anchorOffset),Tt=Ji(U,N.focusNode,N.focusOffset);if(Ke&&!Ke.bad&&Tt&&!Tt.bad&&gt(Mt(Ke,Tt),le)==0&&gt(Ht(Ke,Tt),ge)==0)return;var tr=U.display.view,yr=le.line>=U.display.viewFrom&&Hn(U,le)||{node:tr[0].measure.map[2],offset:0},Cr=ge.line<U.display.viewTo&&Hn(U,ge);if(!Cr){var Bn=tr[tr.length-1].measure,qn=Bn.maps?Bn.maps[Bn.maps.length-1]:Bn.map;Cr={node:qn[qn.length-1],offset:qn[qn.length-2]-qn[qn.length-3]}}if(!yr||!Cr){N.removeAllRanges();return}var Si=N.rangeCount&&N.getRangeAt(0),Ci;try{Ci=M(yr.node,yr.offset,Cr.offset,Cr.node)}catch(la){}Ci&&(!x&&U.state.focused?(N.collapse(yr.node,yr.offset),Ci.collapsed||(N.removeAllRanges(),N.addRange(Ci))):(N.removeAllRanges(),N.addRange(Ci)),Si&&N.anchorNode==null?N.addRange(Si):x&&this.startGracePeriod()),this.rememberSelection()},gn.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)},gn.prototype.showMultipleSelections=function(N){O(this.cm.display.cursorDiv,N.cursors),O(this.cm.display.selectionDiv,N.selection)},gn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},gn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var U=N.getRangeAt(0).commonAncestorContainer;return F(this.div,U)},gn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},gn.prototype.blur=function(){this.div.blur()},gn.prototype.getField=function(){return this.div},gn.prototype.supportsTouch=function(){return!0},gn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():Eo(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)},gn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},gn.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&&Oi(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=Ji(U,N.anchorNode,N.anchorOffset),le=Ji(U,N.focusNode,N.focusOffset);ie&&le&&Eo(U,function(){Ts(U.doc,Le(ie,le),ue),(ie.bad||le.bad)&&(U.curOp.selectionChanged=!0)})},gn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var N=this.cm,U=N.display,ie=N.doc.sel.primary(),le=ie.from(),ge=ie.to();if(le.ch==0&&le.line>N.firstLine()&&(le=jt(le.line-1,Pe(N.doc,le.line-1).length)),ge.ch==Pe(N.doc,ge.line).text.length&&ge.line<N.lastLine()&&(ge=jt(ge.line+1,0)),le.line<U.viewFrom||ge.line>U.viewTo-1)return!1;var Ke,Tt,tr;le.line==U.viewFrom||(Ke=uo(N,le.line))==0?(Tt=Vt(U.view[0].line),tr=U.view[0].node):(Tt=Vt(U.view[Ke].line),tr=U.view[Ke-1].node.nextSibling);var yr=uo(N,ge.line),Cr,Bn;if(yr==U.view.length-1?(Cr=U.viewTo-1,Bn=U.lineDiv.lastChild):(Cr=Vt(U.view[yr+1].line)-1,Bn=U.view[yr+1].node.previousSibling),!tr)return!1;for(var qn=N.doc.splitLines(da(N,tr,Bn,Tt,Cr)),Si=tt(N.doc,jt(Tt,0),jt(Cr,Pe(N.doc,Cr).text.length));qn.length>1&&Si.length>1;)if(He(qn)==He(Si))qn.pop(),Si.pop(),Cr--;else if(qn[0]==Si[0])qn.shift(),Si.shift(),Tt++;else break;for(var Ci=0,la=0,Ta=qn[0],Wa=Si[0],ka=Math.min(Ta.length,Wa.length);Ci<ka&&Ta.charCodeAt(Ci)==Wa.charCodeAt(Ci);)++Ci;for(var Na=He(qn),qa=He(Si),ho=Math.min(Na.length-(qn.length==1?Ci:0),qa.length-(Si.length==1?Ci:0));la<ho&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)++la;if(qn.length==1&&Si.length==1&&Tt==le.line)for(;Ci&&Ci>le.ch&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)Ci--,la++;qn[qn.length-1]=Na.slice(0,Na.length-la).replace(/^\u200b+/,""),qn[0]=qn[0].slice(Ci).replace(/\u200b+$/,"");var ns=jt(Tt,Ci),Mo=jt(Cr,Si.length?He(Si).length-la:0);if(qn.length>1||qn[0]||gt(ns,Mo))return jl(N.doc,qn,ns,Mo,"+input"),!0},gn.prototype.ensurePolled=function(){this.forceCompositionEnd()},gn.prototype.reset=function(){this.forceCompositionEnd()},gn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},gn.prototype.readFromDOMSoon=function(){var 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)},gn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&Eo(this.cm,function(){return Ha(N.cm)})},gn.prototype.setUneditable=function(N){N.contentEditable="false"},gn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||zo(this.cm,At)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},gn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},gn.prototype.onContextMenu=function(){},gn.prototype.resetPosition=function(){},gn.prototype.needsContentAttribute=!0;function Hn(N,U){var ie=Qi(N,U.line);if(!ie||ie.hidden)return null;var le=Pe(N.doc,U.line),ge=zi(ie,le,U.line),Ke=Ct(le,N.doc.direction),Tt="left";if(Ke){var tr=Fe(Ke,U.ch);Tt=tr%2?"right":"left"}var yr=Ma(ge.map,U.ch,Tt);return yr.offset=yr.collapse=="right"?yr.end:yr.start,yr}function Oi(N){for(var U=N;U;U=U.parentNode)if(/CodeMirror-gutter-wrapper/.test(U.className))return!0;return!1}function Ri(N,U){return U&&(N.bad=!0),N}function da(N,U,ie,le,ge){var Ke="",Tt=!1,tr=N.doc.lineSeparator(),yr=!1;function Cr(Ci){return function(la){return la.id==Ci}}function Bn(){Tt&&(Ke+=tr,yr&&(Ke+=tr),Tt=yr=!1)}function qn(Ci){Ci&&(Bn(),Ke+=Ci)}function Si(Ci){if(Ci.nodeType==1){var la=Ci.getAttribute("cm-text");if(la){qn(la);return}var Ta=Ci.getAttribute("cm-marker"),Wa;if(Ta){var ka=N.findMarks(jt(le,0),jt(ge+1,0),Cr(+Ta));ka.length&&(Wa=ka[0].find(0))&&qn(tt(N.doc,Wa.from,Wa.to).join(tr));return}if(Ci.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(Ci.nodeName);if(!/^br$/i.test(Ci.nodeName)&&Ci.textContent.length==0)return;Na&&Bn();for(var qa=0;qa<Ci.childNodes.length;qa++)Si(Ci.childNodes[qa]);/^(pre|p)$/i.test(Ci.nodeName)&&(yr=!0),Na&&(Tt=!0)}else Ci.nodeType==3&&qn(Ci.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Si(U),U==ie);)U=U.nextSibling,yr=!1;return Ke}function Ji(N,U,ie){var le;if(U==N.display.lineDiv){if(le=N.display.lineDiv.childNodes[ie],!le)return Ri(N.clipPos(jt(N.display.viewTo-1)),!0);U=null,ie=0}else for(le=U;;le=le.parentNode){if(!le||le==N.display.lineDiv)return null;if(le.parentNode&&le.parentNode==N.display.lineDiv)break}for(var ge=0;ge<N.display.view.length;ge++){var Ke=N.display.view[ge];if(Ke.node==le)return Qa(Ke,U,ie)}}function Qa(N,U,ie){var le=N.text.firstChild,ge=!1;if(!U||!F(le,U))return Ri(jt(Vt(N.line),0),!0);if(U==le&&(ge=!0,U=le.childNodes[ie],ie=0,!U)){var Ke=N.rest?He(N.rest):N.line;return Ri(jt(Vt(Ke),Ke.text.length),ge)}var Tt=U.nodeType==3?U:null,tr=U;for(!Tt&&U.childNodes.length==1&&U.firstChild.nodeType==3&&(Tt=U.firstChild,ie&&(ie=Tt.nodeValue.length));tr.parentNode!=le;)tr=tr.parentNode;var yr=N.measure,Cr=yr.maps;function Bn(Wa,ka,Na){for(var qa=-1;qa<(Cr?Cr.length:0);qa++)for(var ho=qa<0?yr.map:Cr[qa],ns=0;ns<ho.length;ns+=3){var Mo=ho[ns+2];if(Mo==Wa||Mo==ka){var Ss=Vt(qa<0?N.line:N.rest[qa]),Zs=ho[ns]+Na;return(Na<0||Mo!=Wa)&&(Zs=ho[ns+(Na?1:0)]),jt(Ss,Zs)}}}var qn=Bn(Tt,tr,ie);if(qn)return Ri(qn,ge);for(var Si=tr.nextSibling,Ci=Tt?Tt.nodeValue.length-ie:0;Si;Si=Si.nextSibling){if(qn=Bn(Si,Si.firstChild,0),qn)return Ri(jt(qn.line,qn.ch-Ci),ge);Ci+=Si.textContent.length}for(var la=tr.previousSibling,Ta=ie;la;la=la.previousSibling){if(qn=Bn(la,la.firstChild,-1),qn)return Ri(jt(qn.line,qn.ch+Ta),ge);Ta+=la.textContent.length}}var ya=function(U){this.cm=U,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};ya.prototype.init=function(N){var U=this,ie=this,le=this.cm;this.createField(N);var ge=this.textarea;N.wrapper.insertBefore(this.wrapper,N.wrapper.firstChild),s&&(ge.style.width="0px"),Ve(ge,"input",function(){h&&u>=9&&U.hasSelection&&(U.hasSelection=null),ie.poll()}),Ve(ge,"paste",function(Tt){if(hr(le,Tt)||Ut(Tt,le))return;le.state.pasteIncoming=+new Date,ie.fastPoll()});function Ke(Tt){if(hr(le,Tt))return;if(le.somethingSelected())qe({lineWise:!1,text:le.getSelections()});else if(le.options.lineWiseCopyCut){var tr=rr(le);qe({lineWise:!0,text:tr.text}),Tt.type=="cut"?le.setSelections(tr.ranges,null,ue):(ie.prevInput="",ge.value=tr.text.join(`
`),j(ge))}else return;Tt.type=="cut"&&(le.state.cutIncoming=+new Date)}Ve(ge,"cut",Ke),Ve(ge,"copy",Ke),Ve(N.scroller,"paste",function(Tt){if(Jn(N,Tt)||hr(le,Tt))return;if(!ge.dispatchEvent){le.state.pasteIncoming=+new Date,ie.focus();return}var tr=new Event("paste");tr.clipboardData=Tt.clipboardData,ge.dispatchEvent(tr)}),Ve(N.lineSpace,"selectstart",function(Tt){Jn(N,Tt)||Ge(Tt)}),Ve(ge,"compositionstart",function(){var Tt=le.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:Tt,range:le.markText(Tt,le.getCursor("to"),{className:"CodeMirror-composing"})}}),Ve(ge,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},ya.prototype.createField=function(N){this.wrapper=cn(),this.textarea=this.wrapper.firstChild},ya.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},ya.prototype.prepareSelection=function(){var N=this.cm,U=N.display,ie=N.doc,le=Gr(N);if(N.options.moveInputWithCursor){var ge=mo(N,ie.sel.primary().head,"div"),Ke=U.wrapper.getBoundingClientRect(),Tt=U.lineDiv.getBoundingClientRect();le.teTop=Math.max(0,Math.min(U.wrapper.clientHeight-10,ge.top+Tt.top-Ke.top)),le.teLeft=Math.max(0,Math.min(U.wrapper.clientWidth-10,ge.left+Tt.left-Ke.left))}return le},ya.prototype.showSelection=function(N){var U=this.cm,ie=U.display;O(ie.cursorDiv,N.cursors),O(ie.selectionDiv,N.selection),N.teTop!=null&&(this.wrapper.style.top=N.teTop+"px",this.wrapper.style.left=N.teLeft+"px")},ya.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&&j(this.textarea),h&&u>=9&&(this.hasSelection=ie)}else N||(this.prevInput=this.textarea.value="",h&&u>=9&&(this.hasSelection=null))},ya.prototype.getField=function(){return this.textarea},ya.prototype.supportsTouch=function(){return!1},ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||P()!=this.textarea))try{this.textarea.focus()}catch(N){}},ya.prototype.blur=function(){this.textarea.blur()},ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ya.prototype.receivedFocus=function(){this.slowPoll()},ya.prototype.slowPoll=function(){var N=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){N.poll(),N.cm.state.focused&&N.slowPoll()})},ya.prototype.fastPoll=function(){var N=!1,U=this;U.pollingFast=!0;function ie(){var le=U.poll();!le&&!N?(N=!0,U.polling.set(60,ie)):(U.pollingFast=!1,U.slowPoll())}U.polling.set(20,ie)},ya.prototype.poll=function(){var N=this,U=this.cm,ie=this.textarea,le=this.prevInput;if(this.contextMenuPending||!U.state.focused||mr(ie)&&!le&&!this.composing||U.isReadOnly()||U.options.disableInput||U.state.keySeq)return!1;var ge=ie.value;if(ge==le&&!U.somethingSelected())return!1;if(h&&u>=9&&this.hasSelection===ge||g&&/[\uf700-\uf7ff]/.test(ge))return U.display.input.reset(),!1;if(U.doc.sel==U.display.selForContextMenu){var Ke=ge.charCodeAt(0);if(Ke==8203&&!le&&(le="\u200B"),Ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var Tt=0,tr=Math.min(le.length,ge.length);Tt<tr&&le.charCodeAt(Tt)==ge.charCodeAt(Tt);)++Tt;return Eo(U,function(){At(U,ge.slice(Tt),le.length-Tt,null,N.composing?"*compose":null),ge.length>1e3||ge.indexOf(`
`)>-1?ie.value=N.prevInput="":N.prevInput=ge,N.composing&&(N.composing.range.clear(),N.composing.range=U.markText(N.composing.start,U.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ya.prototype.onKeyPress=function(){h&&u>=9&&(this.hasSelection=null),this.fastPoll()},ya.prototype.onContextMenu=function(N){var U=this,ie=U.cm,le=ie.display,ge=U.textarea;U.contextMenuPending&&U.contextMenuPending();var Ke=_o(ie,N),Tt=le.scroller.scrollTop;if(!Ke||o)return;var tr=ie.options.resetSelectionOnContextMenu;tr&&ie.doc.sel.contains(Ke)==-1&&zo(ie,Ts)(ie.doc,Le(Ke),ue);var yr=ge.style.cssText,Cr=U.wrapper.style.cssText,Bn=U.wrapper.offsetParent.getBoundingClientRect();U.wrapper.style.cssText="position: static",ge.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(N.clientY-Bn.top-5)+"px; left: "+(N.clientX-Bn.left-5)+`px;
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qn;a&&(qn=window.scrollY),le.input.focus(),a&&window.scrollTo(null,qn),le.input.reset(),ie.somethingSelected()||(ge.value=U.prevInput=" "),U.contextMenuPending=Ci,le.selForContextMenu=ie.doc.sel,clearTimeout(le.detectingSelectAll);function Si(){if(ge.selectionStart!=null){var Ta=ie.somethingSelected(),Wa="\u200B"+(Ta?ge.value:"");ge.value="\u21DA",ge.value=Wa,U.prevInput=Ta?"":"\u200B",ge.selectionStart=1,ge.selectionEnd=Wa.length,le.selForContextMenu=ie.doc.sel}}function Ci(){if(U.contextMenuPending!=Ci)return;if(U.contextMenuPending=!1,U.wrapper.style.cssText=Cr,ge.style.cssText=yr,h&&u<9&&le.scrollbars.setScrollTop(le.scroller.scrollTop=Tt),ge.selectionStart!=null){(!h||h&&u<9)&&Si();var Ta=0,Wa=function ka(){le.selForContextMenu==ie.doc.sel&&ge.selectionStart==0&&ge.selectionEnd>0&&U.prevInput=="\u200B"?zo(ie,Os)(ie):Ta++<10?le.detectingSelectAll=setTimeout(ka,500):(le.selForContextMenu=null,le.input.reset())};le.detectingSelectAll=setTimeout(Wa,200)}}if(h&&u>=9&&Si(),C){lt(N);var la=function Ta(){dt(window,"mouseup",Ta),setTimeout(Ci,20)};Ve(window,"mouseup",la)}else setTimeout(Ci,50)},ya.prototype.readOnlyChanged=function(N){N||this.reset(),this.textarea.disabled=N=="nocursor",this.textarea.readOnly=!!N},ya.prototype.setUneditable=function(){},ya.prototype.needsContentAttribute=!1;function fo(N,U){if(U=U?z(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 le(){N.value=tr.getValue()}var ge;if(N.form&&(Ve(N.form,"submit",le),!U.leaveSubmitMethodAlone)){var Ke=N.form;ge=Ke.submit;try{var Tt=Ke.submit=function(){le(),Ke.submit=ge,Ke.submit(),Ke.submit=Tt}}catch(yr){}}U.finishInit=function(yr){yr.save=le,yr.getTextArea=function(){return N},yr.toTextArea=function(){yr.toTextArea=isNaN,le(),N.parentNode.removeChild(yr.getWrapperElement()),N.style.display="",N.form&&(dt(N.form,"submit",le),!U.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=ge))}},N.style.display="none";var tr=Fr(function(yr){return N.parentNode.insertBefore(yr,N.nextSibling)},U);return tr}function za(N){N.off=dt,N.on=Ve,N.wheelEventPixels=On,N.Doc=Cl,N.splitLines=Cn,N.countColumn=V,N.findColumn=_e,N.isWordChar=J,N.Pass=ee,N.signal=Yt,N.Line=ui,N.changeEnd=Qe,N.scrollbarModel=cs,N.Pos=jt,N.cmpPos=gt,N.modes=Dt,N.mimeModes=dn,N.resolveMode=ci,N.getMode=Xi,N.modeExtensions=Gn,N.extendMode=ei,N.copyState=Zt,N.startState=Me,N.innerMode=Nt,N.commands=iu,N.keyMap=Jl,N.keyName=bu,N.isModifierKey=yu,N.lookupKey=Zl,N.normalizeKeyMap=Ru,N.StringStream=ke,N.SharedTextMarker=tu,N.TextMarker=Nl,N.LineWidget=xl,N.e_preventDefault=Ge,N.e_stopPropagation=pe,N.e_stop=lt,N.addClass=X,N.contains=F,N.rmClass=T,N.keyNames=zl}Je(Fr),Hr(Fr);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Cl.prototype)Cl.prototype.hasOwnProperty(ls)&&G(Xo,ls)<0&&(Fr.prototype[ls]=function(N){return function(){return N.apply(this.doc,arguments)}}(Cl.prototype[ls]));return Xt(Cl),Fr.inputStyles={textarea:ya,contenteditable:gn},Fr.defineMode=function(N){!Fr.defaults.mode&&N!="null"&&(Fr.defaults.mode=N),Fn.apply(this,arguments)},Fr.defineMIME=Zn,Fr.defineMode("null",function(){return{token:function(U){return U.skipToEnd()}}}),Fr.defineMIME("text/plain","null"),Fr.defineExtension=function(N,U){Fr.prototype[N]=U},Fr.defineDocExtension=function(N,U){Cl.prototype[N]=U},Fr.fromTextArea=fo,za(Fr),Fr.version="5.58.2",Fr})},Vy0f:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("iYpf"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},W2nI:function(k,D,n){var y=n("IwbS"),p=n("ProS"),x=n("bYtY"),A=["itemStyle","opacity"],m=["emphasis","itemStyle","opacity"],f=["lineStyle","opacity"],h=["emphasis","lineStyle","opacity"];function u(l,r){return l.getVisual("opacity")||l.getModel().get(r)}function a(l,r,s){var c=l.getGraphicEl(),d=u(l,r);s!=null&&(d==null&&(d=1),d*=s),c.downplay&&c.downplay(),c.traverse(function(g){g.type!=="group"&&g.setStyle("opacity",d)})}function i(l,r){var s=u(l,r),c=l.getGraphicEl();c.traverse(function(d){d.type!=="group"&&d.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")}}),o=p.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,r,s){var c=this,d=l.getGraph(),g=this.group,v=l.layoutInfo,b=v.width,S=v.height,E=l.getData(),C=l.getData("edge"),_=l.get("orient");this._model=l,g.removeAll(),g.attr("position",[v.x,v.y]),d.eachEdge(function(T){var w=new t;w.dataIndex=T.dataIndex,w.seriesIndex=l.seriesIndex,w.dataType="edge";var O=T.getModel("lineStyle"),I=O.get("curveness"),R=T.node1.getLayout(),M=T.node1.getModel(),F=M.get("localX"),P=M.get("localY"),X=T.node2.getLayout(),B=T.node2.getModel(),j=B.get("localX"),W=B.get("localY"),z=T.getLayout(),V,Q,G,re,ee,ue,$,be;w.shape.extent=Math.max(1,z.dy),w.shape.orient=_,_==="vertical"?(V=(F!=null?F*b:R.x)+z.sy,Q=(P!=null?P*S:R.y)+R.dy,G=(j!=null?j*b:X.x)+z.ty,re=W!=null?W*S:X.y,ee=V,ue=Q*(1-I)+re*I,$=G,be=Q*I+re*(1-I)):(V=(F!=null?F*b:R.x)+R.dx,Q=(P!=null?P*S:R.y)+z.sy,G=j!=null?j*b:X.x,re=(W!=null?W*S:X.y)+z.ty,ee=V*(1-I)+G*I,ue=Q,$=V*I+G*(1-I),be=re),w.setShape({x1:V,y1:Q,x2:G,y2:re,cpx1:ee,cpy1:ue,cpx2:$,cpy2:be}),w.setStyle(O.getItemStyle());switch(w.style.fill){case"source":w.style.fill=T.node1.getVisual("color");break;case"target":w.style.fill=T.node2.getVisual("color");break}y.setHoverStyle(w,T.getModel("emphasis.lineStyle").getItemStyle()),g.add(w),C.setItemGraphicEl(T.dataIndex,w)}),d.eachNode(function(T){var w=T.getLayout(),O=T.getModel(),I=O.get("localX"),R=O.get("localY"),M=O.getModel("label"),F=O.getModel("emphasis.label"),P=new y.Rect({shape:{x:I!=null?I*b:w.x,y:R!=null?R*S:w.y,width:w.dx,height:w.dy},style:O.getModel("itemStyle").getItemStyle()}),X=T.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(P.style,X,M,F,{labelFetcher:l,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),P.setStyle("fill",T.getVisual("color")),y.setHoverStyle(P,X),g.add(P),E.setItemGraphicEl(T.dataIndex,P),P.dataType="node"}),E.eachItemGraphicEl(function(T,w){var O=E.getItemModel(w);O.get("draggable")&&(T.drift=function(I,R){c._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=R,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:E.getRawIndex(w),localX:this.shape.x/b,localY:this.shape.y/S})},T.ondragend=function(){c._focusAdjacencyDisabled=!1},T.draggable=!0,T.cursor="move"),T.highlight=function(){this.trigger("emphasis")},T.downplay=function(){this.trigger("normal")},T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),C.eachItemGraphicEl(function(T,w){var O=C.getItemModel(w);T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.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 d=l.getData(),g=d.graph,v=c.dataIndex,b=d.getItemModel(v),S=c.edgeDataIndex;if(v==null&&S==null)return;var E=g.getNodeByIndex(v),C=g.getEdgeByIndex(S);if(g.eachNode(function(T){a(T,A,.1)}),g.eachEdge(function(T){a(T,f,.1)}),E){i(E,m);var _=b.get("focusNodeAdjacency");_==="outEdges"?x.each(E.outEdges,function(T){if(T.dataIndex<0)return;i(T,h),i(T.node2,m)}):_==="inEdges"?x.each(E.inEdges,function(T){if(T.dataIndex<0)return;i(T,h),i(T.node1,m)}):_==="allEdges"&&x.each(E.edges,function(T){if(T.dataIndex<0)return;i(T,h),T.node1!==E&&i(T.node1,m),T.node2!==E&&i(T.node2,m)})}C&&(i(C,h),i(C.node1,m),i(C.node2,m))},unfocusNodeAdjacency:function(l,r,s,c){var d=l.getGraph();d.eachNode(function(g){a(g,A)}),d.eachEdge(function(g){a(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=o},W4dC:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.each,m=x.createHashMap,f=n("7DRL"),h=n("TIY9"),u=n("yS9w"),a=n("mFDi"),i={geoJSON:h,svg:u},t={load:function(r,s,c){var d=[],g=m(),v=m(),b,S=l(r);return A(S,function(E){var C=i[E.type].load(r,E,c);A(C.regions,function(T){var w=T.name;s&&s.hasOwnProperty(w)&&(T=T.cloneShallow(w=s[w])),d.push(T),g.set(w,T),v.set(w,T.center)});var _=C.boundingRect;_&&(b?b.union(_):b=_.clone())}),{regions:d,regionsMap:g,nameCoordMap:v,boundingRect:b||new a(0,0,0,0)}},makeGraphic:o("makeGraphic"),removeGraphic:o("removeGraphic")};function o(r){return function(s,c){var d=l(s),g=[];return A(d,function(v){var b=i[v.type][r];b&&g.push(b(s,v,c))}),g}}function e(r){}function l(r){var s=f.retrieveMap(r)||[];return s}k.exports=t},WGYa:function(k,D,n){var y=n("7yuC"),p=y.forceLayout,x=n("HF/U"),A=x.simpleLayout,m=n("lOQZ"),f=m.circularLayout,h=n("OELB"),u=h.linearMap,a=n("QBsz"),i=n("bYtY");function t(o){o.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,d=s.edgeData,g=e.getModel("force"),v=g.get("initLayout");e.preservedPoints?c.each(function(M){var F=c.getId(M);c.setItemLayout(M,r[F]||[NaN,NaN])}):!v||v==="none"?A(e):v==="circular"&&f(e,"value");var b=c.getDataExtent("value"),S=d.getDataExtent("value"),E=g.get("repulsion"),C=g.get("edgeLength");i.isArray(E)||(E=[E,E]),i.isArray(C)||(C=[C,C]),C=[C[1],C[0]];var _=c.mapArray("value",function(M,F){var P=c.getItemLayout(F),X=u(M,b,E);return isNaN(X)&&(X=(E[0]+E[1])/2),{w:X,rep:X,fixed:c.getItemModel(F).get("fixed"),p:!P||isNaN(P[0])||isNaN(P[1])?null:P}}),T=d.mapArray("value",function(M,F){var P=s.getEdgeByIndex(F),X=u(M,S,C);isNaN(X)&&(X=(C[0]+C[1])/2);var B=P.getModel();return{n1:_[P.node1.dataIndex],n2:_[P.node2.dataIndex],d:X,curveness:B.get("lineStyle.curveness")||0,ignoreForceLayout:B.get("ignoreForceLayout")}}),l=e.coordinateSystem,w=l.getBoundingRect(),O=p(_,T,{rect:w,gravity:g.get("gravity"),friction:g.get("friction")}),I=O.step;O.step=function(M){for(var F=0,P=_.length;F<P;F++)_[F].fixed&&a.copy(_[F].p,s.getNodeByIndex(F).getLayout());I(function(X,B,j){for(var W=0,z=X.length;W<z;W++)X[W].fixed||s.getNodeByIndex(W).setLayout(X[W].p),r[c.getId(W)]=X[W].p;for(var W=0,z=B.length;W<z;W++){var V=B[W],Q=s.getEdgeByIndex(W),G=V.n1.p,re=V.n2.p,ee=Q.getLayout();ee=ee?ee.slice():[],ee[0]=ee[0]||[],ee[1]=ee[1]||[],a.copy(ee[0],G),a.copy(ee[1],re),+V.curveness&&(ee[2]=[(G[0]+re[0])/2-(G[1]-re[1])*V.curveness,(G[1]+re[1])/2-(re[0]-G[0])*V.curveness]),Q.setLayout(ee)}M&&M(j)})},e.forceLayout=O,e.preservedPoints=r,O.step()}else e.forceLayout=null})}k.exports=t},"WN+l":function(k,D,n){var y=n("bYtY"),p=n("IwbS");function x(m,f,h,u){var a=h.axis;if(a.scale.isBlank())return;var i=h.getModel("splitArea"),t=i.getModel("areaStyle"),o=t.get("color"),e=u.coordinateSystem.getRect(),l=a.getTicksCoords({tickModel:i,clamp:!0});if(!l.length)return;var r=o.length,s=m.__splitAreaColors,c=y.createHashMap(),d=0;if(s)for(var g=0;g<l.length;g++){var v=s.get(l[g].tickValue);if(v!=null){d=(v+(r-1)*g)%r;break}}var b=a.toGlobalCoord(l[0].coord),S=t.getAreaStyle();o=y.isArray(o)?o:[o];for(var g=1;g<l.length;g++){var E=a.toGlobalCoord(l[g].coord),C,_,T,w;a.isHorizontal()?(C=b,_=e.y,T=E-C,w=e.height,b=C+T):(C=e.x,_=b,T=e.width,w=E-_,b=_+w);var O=l[g-1].tickValue;O!=null&&c.set(O,d),f.add(new p.Rect({anid:O!=null?"area_"+O:null,shape:{x:C,y:_,width:T,height:w},style:y.defaults({fill:o[d]},S),silent:!0})),d=(d+1)%r}m.__splitAreaColors=c}function A(m){m.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=x,D.rectCoordAxisHandleRemove=A},WXVj:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Bqw1")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="MinusSquareOutlined";var i=A.forwardRef(a);D.default=i},WYAk:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){(function(){var p=y,x=p.lib,A=x.Base,m=p.enc,f=m.Utf8,h=p.algo,u=h.HMAC=A.extend({init:function(i,t){i=this._hasher=new i.init,typeof t=="string"&&(t=f.parse(t));var o=i.blockSize,e=o*4;t.sigBytes>e&&(t=i.finalize(t)),t.clamp();for(var l=this._oKey=t.clone(),r=this._iKey=t.clone(),s=l.words,c=r.words,d=0;d<o;d++)s[d]^=1549556828,c[d]^=909522486;l.sigBytes=r.sigBytes=e,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var t=this._hasher,o=t.finalize(i);t.reset();var e=t.finalize(this._oKey.clone().concat(o));return e}})})()})},Wqna:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.isObject,m=x.each,f=x.map,h=x.indexOf,u=x.retrieve,a=n("+TT/"),i=a.getLayoutRect,t=n("aX7z"),o=t.createScaleByModel,e=t.ifAxisCrossZero,l=t.niceScaleExtent,r=t.estimateLabelUnionRect,s=n("y+lR"),c=n("7AJT"),d=n("IDmD"),g=n("7hqr"),v=g.getStackedDimension;n("jtI2");function b(M,F,P){return M.getCoordSysModel()===F}function S(M,F,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(M,F,P),this.model=M}var E=S.prototype;E.type="grid",E.axisPointerEnabled=!0,E.getRect=function(){return this._rect},E.update=function(M,F){var P=this._axesMap;this._updateScale(M,this.model),m(P.x,function(B){l(B.scale,B.model)}),m(P.y,function(B){l(B.scale,B.model)});var X={};m(P.x,function(B){C(P,"y",B,X)}),m(P.y,function(B){C(P,"x",B,X)}),this.resize(this.model,F)};function C(M,F,P,X){P.getAxesOnZeroOf=function(){return j?[j]:[]};var B=M[F],j,W=P.model,z=W.get("axisLine.onZero"),V=W.get("axisLine.onZeroAxisIndex");if(!z)return;if(V!=null)_(B[V])&&(j=B[V]);else for(var Q in B)if(B.hasOwnProperty(Q)&&_(B[Q])&&!X[G(B[Q])]){j=B[Q];break}j&&(X[G(j)]=!0);function G(re){return re.dim+"_"+re.index}}function _(M){return M&&M.type!=="category"&&M.type!=="time"&&e(M)}E.resize=function(M,F,P){var X=i(M.getBoxLayoutParams(),{width:F.getWidth(),height:F.getHeight()});this._rect=X;var B=this._axesList;j(),!P&&M.get("containLabel")&&(m(B,function(W){if(!W.model.get("axisLabel.inside")){var z=r(W);if(z){var V=W.isHorizontal()?"height":"width",Q=W.model.get("axisLabel.margin");X[V]-=z[V]+Q,W.position==="top"?X.y+=z.height+Q:W.position==="left"&&(X.x+=z.width+Q)}}}),j());function j(){m(B,function(W){var z=W.isHorizontal(),V=z?[0,X.width]:[0,X.height],Q=W.inverse?1:0;W.setExtent(V[Q],V[1-Q]),T(W,z?X.x:X.y)})}},E.getAxis=function(M,F){var P=this._axesMap[M];if(P!=null){if(F==null){for(var X in P)if(P.hasOwnProperty(X))return P[X]}return P[F]}},E.getAxes=function(){return this._axesList.slice()},E.getCartesian=function(M,F){if(M!=null&&F!=null){var P="x"+M+"y"+F;return this._coordsMap[P]}A(M)&&(F=M.yAxisIndex,M=M.xAxisIndex);for(var X=0,B=this._coordsList;X<B.length;X++)if(B[X].getAxis("x").index===M||B[X].getAxis("y").index===F)return B[X]},E.getCartesians=function(){return this._coordsList.slice()},E.convertToPixel=function(M,F,P){var X=this._findConvertTarget(M,F);return X.cartesian?X.cartesian.dataToPoint(P):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(P)):null},E.convertFromPixel=function(M,F,P){var X=this._findConvertTarget(M,F);return X.cartesian?X.cartesian.pointToData(P):X.axis?X.axis.coordToData(X.axis.toLocalCoord(P)):null},E._findConvertTarget=function(M,F){var P=F.seriesModel,X=F.xAxisModel||P&&P.getReferringComponents("xAxis")[0],B=F.yAxisModel||P&&P.getReferringComponents("yAxis")[0],j=F.gridModel,W=this._coordsList,z,V;if(P)z=P.coordinateSystem,h(W,z)<0&&(z=null);else if(X&&B)z=this.getCartesian(X.componentIndex,B.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(B)V=this.getAxis("y",B.componentIndex);else if(j){var Q=j.coordinateSystem;Q===this&&(z=this._coordsList[0])}return{cartesian:z,axis:V}},E.containPoint=function(M){var F=this._coordsList[0];if(F)return F.containPoint(M)},E._initCartesian=function(M,F,P){var X={left:!1,right:!1,top:!1,bottom:!1},B={x:{},y:{}},j={x:0,y:0};if(F.eachComponent("xAxis",W("x"),this),F.eachComponent("yAxis",W("y"),this),!j.x||!j.y){this._axesMap={},this._axesList=[];return}this._axesMap=B,m(B.x,function(z,V){m(B.y,function(Q,G){var re="x"+V+"y"+G,ee=new s(re);ee.grid=this,ee.model=M,this._coordsMap[re]=ee,this._coordsList.push(ee),ee.addAxis(z),ee.addAxis(Q)},this)},this);function W(z){return function(V,Q){if(!b(V,M,F))return;var G=V.get("position");z==="x"?G!=="top"&&G!=="bottom"&&(G=X.bottom?"top":"bottom"):G!=="left"&&G!=="right"&&(G=X.left?"right":"left"),X[G]=!0;var re=new c(z,o(V),[0,0],V.get("type"),G),ee=re.type==="category";re.onBand=ee&&V.get("boundaryGap"),re.inverse=V.get("inverse"),V.axis=re,re.model=V,re.grid=this,re.index=Q,this._axesList.push(re),B[z][Q]=re,j[z]++}}},E._updateScale=function(M,F){m(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),M.eachSeries(function(X){if(I(X)){var B=O(X,M),j=B[0],W=B[1];if(!b(j,F,M)||!b(W,F,M))return;var z=this.getCartesian(j.componentIndex,W.componentIndex),V=X.getData(),Q=z.getAxis("x"),G=z.getAxis("y");V.type==="list"&&(P(V,Q,X),P(V,G,X))}},this);function P(X,B,j){m(X.mapDimension(B.dim,!0),function(W){B.scale.unionExtentFromData(X,v(X,W))})}},E.getTooltipAxes=function(M){var F=[],P=[];return m(this.getCartesians(),function(X){var B=M!=null&&M!=="auto"?X.getAxis(M):X.getBaseAxis(),j=X.getOtherAxis(B);h(F,B)<0&&F.push(B),h(P,j)<0&&P.push(j)}),{baseAxes:F,otherAxes:P}};function T(M,F){var P=M.getExtent(),X=P[0]+P[1];M.toGlobalCoord=M.dim==="x"?function(B){return B+F}:function(B){return X-B+F},M.toLocalCoord=M.dim==="x"?function(B){return B-F}:function(B){return X-B+F}}var w=["xAxis","yAxis"];function O(M,F){return f(w,function(P){var X=M.getReferringComponents(P)[0];return X})}function I(M){return M.get("coordinateSystem")==="cartesian2d"}S.create=function(M,F){var P=[];return M.eachComponent("grid",function(X,B){var j=new S(X,M,F);j.name="grid_"+B,j.resize(X,F,!0),X.coordinateSystem=j,P.push(j)}),M.eachSeries(function(X){if(!I(X))return;var B=O(X,M),j=B[0],W=B[1],z=j.getCoordSysModel(),V=z.coordinateSystem;X.coordinateSystem=V.getCartesian(j.componentIndex,W.componentIndex)}),P},S.dimensions=S.prototype.dimensions=s.prototype.dimensions,d.register("cartesian2d",S);var R=S;k.exports=R},"X+im":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("KQeH")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DownloadOutlined";var i=A.forwardRef(a);D.default=i},"X2/X":function(k,D,n){"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,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("hwYd"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},XOKv:function(k,D,n){n("OXB0"),n("SA4+")},Xi7e:function(k,D,n){var y=n("KMkd"),p=n("adU4"),x=n("tMB7"),A=n("+6XX"),m=n("Z8oC");function f(h){var u=-1,a=h==null?0:h.length;for(this.clear();++u<a;){var i=h[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=A,f.prototype.set=m,k.exports=f},Xmg4:function(k,D,n){var y=n("bYtY"),p=n("LPTA"),x=p.devicePixelRatio,A=n("K2GJ"),m=n("3C/r");function f(){return!1}function h(i,t,o){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",i)),e.width=l*o,e.height=r*o,e}var u=function(t,o,e){var l;e=e||x,typeof t=="string"?l=h(t,o,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=o,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=h("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,o){var e=this.dpr,l=this.dom,r=l.style,s=this.domBack;r&&(r.width=t+"px",r.height=o+"px"),l.width=t*e,l.height=o*e,s&&(s.width=t*e,s.height=o*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,o){var e=this.dom,l=this.ctx,r=e.width,s=e.height,o=o||this.clearColor,c=this.motionBlur&&!t,d=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),o&&o!=="transparent"){var v;o.colorStops?(v=o.__canvasGradient||A.getGradient(l,o,{x:0,y:0,width:r,height:s}),o.__canvasGradient=v):o.image&&(v=m.prototype.getCanvasPattern.call(o,l)),l.save(),l.fillStyle=v||o,l.fillRect(0,0,r,s),l.restore()}if(c){var b=this.domBack;l.save(),l.globalAlpha=d,l.drawImage(b,0,0,r,s),l.restore()}}};var a=u;k.exports=a},Xnb7:function(k,D,n){var y=n("1RvN"),p=new y(50);function x(h){if(typeof h=="string"){var u=p.get(h);return u&&u.image}else return h}function A(h,u,a,i,t){if(h)if(typeof h=="string"){if(u&&u.__zrImageSrc===h||!a)return u;var o=p.get(h),e={hostEl:a,cb:i,cbPayload:t};return o?(u=o.image,!f(u)&&o.pending.push(e)):(u=new Image,u.onload=u.onerror=m,p.put(h,u.__cachedImgObj={image:u,pending:[e]}),u.src=u.__zrImageSrc=h),u}else return h;else return u}function m(){var h=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var u=0;u<h.pending.length;u++){var a=h.pending[u],i=a.cb;i&&i(this,a.cbPayload),a.hostEl.dirty()}h.pending.length=0}function f(h){return h&&h.width&&h.height}D.findExistImage=x,D.createOrUpdateImage=A,D.isImageReady=f},XpcN:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("oVpE"),f=m.createSymbol,h=n("IwbS"),u=n("eRkO"),a=u.makeBackground,i=n("+TT/"),t=A.curry,o=A.each,e=h.Group,l=x.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(g,v,b){var S=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!g.get("show",!0))return;var E=g.get("align"),C=g.get("orient");(!E||E==="auto")&&(E=g.get("left")==="right"&&C==="vertical"?"right":"left");var _=g.get("selector",!0),T=g.get("selectorPosition",!0);_&&(!T||T==="auto")&&(T=C==="horizontal"?"end":"start"),this.renderInner(E,g,v,b,_,C,T);var w=g.getBoxLayoutParams(),O={width:b.getWidth(),height:b.getHeight()},I=g.get("padding"),R=i.getLayoutRect(w,O,I),M=this.layoutInner(g,E,R,S,_,T),F=i.getLayoutRect(A.defaults({width:M.width,height:M.height},w),O,I);this.group.attr("position",[F.x-M.x,F.y-M.y]),this.group.add(this._backgroundEl=a(M,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,v,b,S,E,C,_){var T=this.getContentGroup(),w=A.createHashMap(),O=v.get("selectedMode"),I=[];b.eachRawSeries(function(R){!R.get("legendHoverLink")&&I.push(R.id)}),o(v.getData(),function(R,M){var F=R.get("name");if(!this.newlineDisabled&&(F===""||F===`
`)){T.add(new e({newline:!0}));return}var P=b.getSeriesByName(F)[0];if(w.get(F))return;if(P){var X=P.getData(),B=X.getVisual("color"),j=X.getVisual("borderColor");typeof B=="function"&&(B=B(P.getDataParams(0))),typeof j=="function"&&(j=j(P.getDataParams(0)));var W=X.getVisual("legendSymbol")||"roundRect",z=X.getVisual("symbol"),V=this._createItem(F,M,R,v,W,z,g,B,j,O);V.on("click",t(s,F,null,S,I)).on("mouseover",t(c,P.name,null,S,I)).on("mouseout",t(d,P.name,null,S,I)),w.set(F,!0)}else b.eachRawSeries(function(Q){if(w.get(F))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(F))return;var re=G.indexOfName(F),ee=G.getItemVisual(re,"color"),ue=G.getItemVisual(re,"borderColor"),$="roundRect",be=this._createItem(F,M,R,v,$,null,g,ee,ue,O);be.on("click",t(s,null,F,S,I)).on("mouseover",t(c,null,F,S,I)).on("mouseout",t(d,null,F,S,I)),w.set(F,!0)}},this)},this),E&&this._createSelector(E,v,S,C,_)},_createSelector:function(g,v,b,S,E){var C=this.getSelectorGroup();o(g,function(T){_(T)});function _(T){var w=T.type,O=new h.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});C.add(O);var I=v.getModel("selectorLabel"),R=v.getModel("emphasis.selectorLabel");h.setLabelStyle(O.style,O.hoverStyle={},I,R,{defaultText:T.title,isRectText:!1}),h.setHoverStyle(O)}},_createItem:function(g,v,b,S,E,C,_,T,w,O){var I=S.get("itemWidth"),R=S.get("itemHeight"),M=S.get("inactiveColor"),F=S.get("inactiveBorderColor"),P=S.get("symbolKeepAspect"),X=S.getModel("itemStyle"),B=S.isSelected(g),j=new e,W=b.getModel("textStyle"),z=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;E=z||E;var G=f(E,0,0,I,R,B?T:M,P==null?!0:P);if(j.add(r(G,E,X,w,F,B)),!z&&C&&(C!==E||C==="none")){var re=R*.8;C==="none"&&(C="circle");var ee=f(C,(I-re)/2,(R-re)/2,re,re,B?T:M,P==null?!0:P);j.add(r(ee,C,X,w,F,B))}var ue=_==="left"?I+5:-5,$=_,be=S.get("formatter"),_e=g;typeof be=="string"&&be?_e=be.replace("{name}",g!=null?g:""):typeof be=="function"&&(_e=be(g)),j.add(new h.Text({style:h.setTextStyle({},W,{text:_e,x:ue,y:R/2,textFill:B?W.getTextColor():M,textAlign:$,textVerticalAlign:"middle"})}));var Ee=new h.Rect({shape:j.getBoundingRect(),invisible:!0,tooltip:V.get("show")?A.extend({content:g,formatter:Q.get("formatter",!0)||function(){return g},formatterParams:{componentType:"legend",legendIndex:S.componentIndex,name:g,$vars:["name"]}},V.option):null});return j.add(Ee),j.eachChild(function(Xe){Xe.silent=!0}),Ee.silent=!O,this.getContentGroup().add(j),h.setHoverStyle(j),j.__legendDataIndex=v,j},layoutInner:function(g,v,b,S,E,C){var _=this.getContentGroup(),T=this.getSelectorGroup();i.box(g.get("orient"),_,g.get("itemGap"),b.width,b.height);var w=_.getBoundingRect(),O=[-w.x,-w.y];if(E){i.box("horizontal",T,g.get("selectorItemGap",!0));var I=T.getBoundingRect(),R=[-I.x,-I.y],M=g.get("selectorButtonGap",!0),F=g.getOrient().index,P=F===0?"width":"height",X=F===0?"height":"width",B=F===0?"y":"x";C==="end"?R[F]+=w[P]+M:O[F]+=I[P]+M,R[1-F]+=w[X]/2-I[X]/2,T.attr("position",R),_.attr("position",O);var j={x:0,y:0};return j[P]=w[P]+M+I[P],j[X]=Math.max(w[X],I[X]),j[B]=Math.min(0,I[B]+R[1-F]),j}else return _.attr("position",O),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(g,v,b,S,E,C){var _;return v!=="line"&&v.indexOf("empty")<0?(_=b.getItemStyle(),g.style.stroke=S,C||(_.stroke=E)):_=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(_)}function s(g,v,b,S){d(g,v,b,S),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:v}),c(g,v,b,S)}function c(g,v,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:v,excludeSeriesId:S})}function d(g,v,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:v,excludeSeriesId:S})}k.exports=l},XuBP:function(k,D,n){"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,n){var y=n("bYtY"),p=n("Qe9p"),x=n("OELB"),A=x.linearMap,m=y.each,f=y.isObject,h=-1,u=function(C){var _=C.mappingMethod,T=C.type,w=this.option=y.clone(C);this.type=T,this.mappingMethod=_,this._normalizeData=b[_];var O=a[T];this.applyVisual=O.applyVisual,this.getColorMapper=O.getColorMapper,this._doMap=O._doMap[_],_==="piecewise"?(o(w),i(w)):_==="category"?w.categories?t(w):o(w,!0):(y.assert(_!=="linear"||w.dataExtent),o(w))};u.prototype={constructor:u,mapValueToVisual:function(C){var _=this._normalizeData(C);return this._doMap(_,C)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var a=u.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var C=this.option;return y.bind(C.mappingMethod==="category"?function(_,T){return!T&&(_=this._normalizeData(_)),s.call(this,_)}:function(_,T,w){var O=!!w;return!T&&(_=this._normalizeData(_)),w=p.fastLerp(_,C.parsedVisual,w),O?w:p.stringify(w,"rgba")},this)},_doMap:{linear:function(C){return p.stringify(p.fastLerp(C,this.option.parsedVisual),"rgba")},category:s,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=p.stringify(p.fastLerp(C,this.option.parsedVisual),"rgba")),T},fixed:c}},colorHue:e(function(C,_){return p.modifyHSL(C,_)}),colorSaturation:e(function(C,_){return p.modifyHSL(C,null,_)}),colorLightness:e(function(C,_){return p.modifyHSL(C,null,null,_)}),colorAlpha:e(function(C,_){return p.modifyAlpha(C,_)}),opacity:{applyVisual:r("opacity"),_doMap:d([0,1])},liftZ:{applyVisual:r("liftZ"),_doMap:{linear:c,category:c,piecewise:c,fixed:c}},symbol:{applyVisual:function(C,_,T){var w=this.mapValueToVisual(C);if(y.isString(w))T("symbol",w);else if(f(w))for(var O in w)w.hasOwnProperty(O)&&T(O,w[O])},_doMap:{linear:l,category:s,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=l.call(this,C)),T},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:d([0,1])}};function i(C){var _=C.pieceList;C.hasSpecialVisual=!1,y.each(_,function(T,w){T.originIndex=w,T.visual!=null&&(C.hasSpecialVisual=!0)})}function t(C){var _=C.categories,T=C.visual,w=C.categoryMap={};if(m(_,function(R,M){w[R]=M}),!y.isArray(T)){var O=[];y.isObject(T)?m(T,function(R,M){var F=w[M];O[F!=null?F:h]=R}):O[h]=T,T=v(C,O)}for(var I=_.length-1;I>=0;I--)T[I]==null&&(delete w[_[I]],_.pop())}function o(C,_){var T=C.visual,w=[];y.isObject(T)?m(T,function(I){w.push(I)}):T!=null&&w.push(T);var O={color:1,symbol:1};!_&&w.length===1&&!O.hasOwnProperty(C.type)&&(w[1]=w[0]),v(C,w)}function e(C){return{applyVisual:function(_,T,w){_=this.mapValueToVisual(_),w("color",C(T("color"),_))},_doMap:d([0,1])}}function l(C){var _=this.option.visual;return _[Math.round(A(C,[0,1],[0,_.length-1],!0))]||{}}function r(C){return function(_,T,w){w(C,this.mapValueToVisual(_))}}function s(C){var _=this.option.visual;return _[this.option.loop&&C!==h?C%_.length:C]}function c(){return this.option.visual[0]}function d(C){return{linear:function(_){return A(_,C,this.option.visual,!0)},category:s,piecewise:function(_,T){var w=g.call(this,T);return w==null&&(w=A(_,C,this.option.visual,!0)),w},fixed:c}}function g(C){var _=this.option,T=_.pieceList;if(_.hasSpecialVisual){var w=u.findPieceIndex(C,T),O=T[w];if(O&&O.visual)return O.visual[this.type]}}function v(C,_){return C.visual=_,C.type==="color"&&(C.parsedVisual=y.map(_,function(T){return p.parse(T)})),_}var b={linear:function(C){return A(C,this.option.dataExtent,[0,1],!0)},piecewise:function(C){var _=this.option.pieceList,T=u.findPieceIndex(C,_,!0);if(T!=null)return A(T,[0,_.length-1],[0,1],!0)},category:function(C){var _=this.option.categories?this.option.categoryMap[C]:C;return _==null?h:_},fixed:y.noop};u.listVisualTypes=function(){var C=[];return y.each(a,function(_,T){C.push(T)}),C},u.addVisualHandler=function(C,_){a[C]=_},u.isValidType=function(C){return a.hasOwnProperty(C)},u.eachVisual=function(C,_,T){y.isObject(C)?y.each(C,_,T):_.call(T,C)},u.mapVisual=function(C,_,T){var w,O=y.isArray(C)?[]:y.isObject(C)?{}:(w=!0,null);return u.eachVisual(C,function(I,R){var M=_.call(T,I,R);w?O=M:O[R]=M}),O},u.retrieveVisuals=function(C){var _={},T;return C&&m(a,function(w,O){C.hasOwnProperty(O)&&(_[O]=C[O],T=!0)}),T?_:null},u.prepareVisualTypes=function(C){if(f(C)){var _=[];m(C,function(T,w){_.push(w)}),C=_}else if(y.isArray(C))C=C.slice();else return[];return C.sort(function(T,w){return w==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),C},u.dependsOn=function(C,_){return _==="color"?!!(C&&C.indexOf(_)===0):C===_},u.findPieceIndex=function(C,_,T){for(var w,O=Infinity,I=0,R=_.length;I<R;I++){var M=_[I].value;if(M!=null){if(M===C||typeof M=="string"&&M===C+"")return I;T&&B(M,I)}}for(var I=0,R=_.length;I<R;I++){var F=_[I],P=F.interval,X=F.close;if(P){if(P[0]===-Infinity){if(S(X[1],C,P[1]))return I}else if(P[1]===Infinity){if(S(X[0],P[0],C))return I}else if(S(X[0],P[0],C)&&S(X[1],C,P[1]))return I;T&&B(P[0],I),T&&B(P[1],I)}}if(T)return C===Infinity?_.length-1:C===-Infinity?0:w;function B(j,W){var z=Math.abs(j-C);z<O&&(O=z,w=W)}};function S(C,_,T){return C?_<=T:_<T}var E=u;k.exports=E},XzQk:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("KpQ+"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"Y+p1":function(k,D,n){var y=n("wF/u");function p(x,A){return y(x,A)}k.exports=p},Y1PL:function(k,D,n){"use strict";n.r(D),n.d(D,"ResizableTextArea",function(){return E});var y=n("wx14"),p=n("1OyB"),x=n("vuIU"),A=n("Ji7U"),m=n("LK+K"),f=n("q1tI"),h=n("VTBJ"),u=n("rePB"),a=n("t23M"),i=n("bT9E"),t=n("TSYQ"),o=n.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(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=T.getAttribute("id")||T.getAttribute("data-reactid")||T.getAttribute("name");if(w&&r[O])return r[O];var I=window.getComputedStyle(T),R=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),M=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),F=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),P=l.map(function(B){return"".concat(B,":").concat(I.getPropertyValue(B))}).join(";"),X={sizingStyle:P,paddingSize:M,borderSize:F,boxSizing:R};return w&&O&&(r[O]=X),X}function d(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),document.body.appendChild(s)),T.getAttribute("wrap")?s.setAttribute("wrap",T.getAttribute("wrap")):s.removeAttribute("wrap");var R=c(T,w),M=R.paddingSize,F=R.borderSize,P=R.boxSizing,X=R.sizingStyle;s.setAttribute("style","".concat(X,";").concat(e)),s.value=T.value||T.placeholder||"";var B=Number.MIN_SAFE_INTEGER,j=Number.MAX_SAFE_INTEGER,W=s.scrollHeight,z;if(P==="border-box"?W+=F:P==="content-box"&&(W-=M),O!==null||I!==null){s.value=" ";var V=s.scrollHeight-M;O!==null&&(B=V*O,P==="border-box"&&(B=B+M+F),W=Math.max(B,W)),I!==null&&(j=V*I,P==="border-box"&&(j=j+M+F),z=W>j?"":"hidden",W=Math.min(j,W))}return{height:W,minHeight:B,maxHeight:j,overflowY:z,resize:"none"}}var g=n("Gytx"),v=n.n(g),b;(function(T){T[T.NONE=0]="NONE",T[T.RESIZING=1]="RESIZING",T[T.RESIZED=2]="RESIZED"})(b||(b={}));var S=function(T){Object(A.a)(O,T);var w=Object(m.a)(O);function O(I){var R;return Object(p.a)(this,O),R=w.call(this,I),R.nextFrameActionId=void 0,R.resizeFrameId=void 0,R.textArea=void 0,R.saveTextArea=function(M){R.textArea=M},R.handleResize=function(M){var F=R.state.resizeStatus,P=R.props,X=P.autoSize,B=P.onResize;if(F!==b.NONE)return;typeof B=="function"&&B(M),X&&R.resizeOnNextFrame()},R.resizeOnNextFrame=function(){cancelAnimationFrame(R.nextFrameActionId),R.nextFrameActionId=requestAnimationFrame(R.resizeTextarea)},R.resizeTextarea=function(){var M=R.props.autoSize;if(!M||!R.textArea)return;var F=M.minRows,P=M.maxRows,X=d(R.textArea,!1,F,P);R.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(R.resizeFrameId),R.resizeFrameId=requestAnimationFrame(function(){R.setState({resizeStatus:b.RESIZED},function(){R.resizeFrameId=requestAnimationFrame(function(){R.setState({resizeStatus:b.NONE}),R.fixFirefoxAutoScroll()})})})})},R.renderTextArea=function(){var M=R.props,F=M.prefixCls,P=F===void 0?"rc-textarea":F,X=M.autoSize,B=M.onResize,j=M.className,W=M.disabled,z=R.state,V=z.textareaStyles,Q=z.resizeStatus,G=Object(i.a)(R.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),re=o()(P,j,Object(u.a)({},"".concat(P,"-disabled"),W));"value"in G&&(G.value=G.value||"");var ee=Object(h.a)(Object(h.a)(Object(h.a)({},R.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(a.a,{onResize:R.handleResize,disabled:!(X||B)},f.createElement("textarea",Object(y.a)({},G,{className:re,style:ee,ref:R.saveTextArea})))},R.state={textareaStyles:{},resizeStatus:b.NONE},R}return Object(x.a)(O,[{key:"componentDidUpdate",value:function(R){(R.value!==this.props.value||!v()(R.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 R=this.textArea.selectionStart,M=this.textArea.selectionEnd;this.textArea.setSelectionRange(R,M)}}catch(F){}}},{key:"render",value:function(){return this.renderTextArea()}}]),O}(f.Component),E=S,C=function(T){Object(A.a)(O,T);var w=Object(m.a)(O);function O(I){var R;Object(p.a)(this,O),R=w.call(this,I),R.resizableTextArea=void 0,R.focus=function(){R.resizableTextArea.textArea.focus()},R.saveTextArea=function(F){R.resizableTextArea=F},R.handleChange=function(F){var P=R.props.onChange;R.setValue(F.target.value,function(){R.resizableTextArea.resizeTextarea()}),P&&P(F)},R.handleKeyDown=function(F){var P=R.props,X=P.onPressEnter,B=P.onKeyDown;F.keyCode===13&&X&&X(F),B&&B(F)};var M=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return R.state={value:M},R}return Object(x.a)(O,[{key:"setValue",value:function(R,M){"value"in this.props||this.setState({value:R},M)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(E,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(R){return"value"in R?{value:R.value}:null}}]),O}(f.Component),_=D.default=C},YESw:function(k,D,n){var y=n("Cwc5"),p=y(Object,"create");k.exports=p},YH21:function(k,D,n){var y=n("H6uX");D.Dispatcher=y;var p=n("ItGF"),x=n("Ze12"),A=x.isCanvasEl,m=x.transformCoordWithViewport,f=typeof window!="undefined"&&!!window.addEventListener,h=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function a(d,g,v,b){return v=v||{},b||!p.canvasSupported?i(d,g,v):p.browser.firefox&&g.layerX!=null&&g.layerX!==g.offsetX?(v.zrX=g.layerX,v.zrY=g.layerY):g.offsetX!=null?(v.zrX=g.offsetX,v.zrY=g.offsetY):i(d,g,v),v}function i(d,g,v){if(p.domSupported&&d.getBoundingClientRect){var b=g.clientX,S=g.clientY;if(A(d)){var E=d.getBoundingClientRect();v.zrX=b-E.left,v.zrY=S-E.top;return}else if(m(u,d,b,S)){v.zrX=u[0],v.zrY=u[1];return}}v.zrX=v.zrY=0}function t(d){return d||window.event}function o(d,g,v){if(g=t(g),g.zrX!=null)return g;var b=g.type,S=b&&b.indexOf("touch")>=0;if(!S)a(d,g,g,v),g.zrDelta=g.wheelDelta?g.wheelDelta/120:-(g.detail||0)/3;else{var E=b!=="touchend"?g.targetTouches[0]:g.changedTouches[0];E&&a(d,E,g,v)}var C=g.button;return g.which==null&&C!==void 0&&h.test(g.type)&&(g.which=C&1?1:C&2?3:C&4?2:0),g}function e(d,g,v,b){f?d.addEventListener(g,v,b):d.attachEvent("on"+g,v)}function l(d,g,v,b){f?d.removeEventListener(g,v,b):d.detachEvent("on"+g,v)}var r=f?function(d){d.preventDefault(),d.stopPropagation(),d.cancelBubble=!0}:function(d){d.returnValue=!1,d.cancelBubble=!0};function s(d){return d.which===2||d.which===3}function c(d){return d.which>1}D.clientToLocal=a,D.getNativeEvent=t,D.normalizeEvent=o,D.addEventListener=e,D.removeEventListener=l,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=s,D.notLeftMouse=c},YJ9k:function(k,D,n){"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 h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m),this._listeners=new Map}return x(m,[{key:"addEventListener",value:function(h,u){this._listeners.has(h)||this._listeners.set(h,new Set),this._listeners.get(h).add(u)}},{key:"removeEventListener",value:function(h,u){this._listeners.has(h)&&this._listeners.get(h).delete(u)}},{key:"dispatchEvent",value:function(h){var u=this;return this._listeners.has(h.type)?(this._listeners.get(h.type).forEach(function(a){return a.call(u,h)}),!h.defaultPrevented):!0}}]),m}();D.default=A},YJCA:function(k,D,n){"use strict";n.d(D,"a",function(){return q}),n.d(D,"b",function(){return Ne});var y=n("wx14"),p=n("ODXe"),x=n("vpQ4"),A=n("1OyB"),m=n("vuIU"),f=n("md7G"),h=n("foSv"),u=n("Ji7U"),a=n("JX7q"),i=n("rePB"),t=n("q1tI"),o=n.n(t),e=n("17x9"),l=n.n(e),r=n("i8i4"),s=n.n(r),c=n("QLaP"),d=n.n(c),g=n("KQm4"),v=function(){function je(){Object(A.a)(this,je),Object(i.a)(this,"refs",{})}return Object(m.a)(je,[{key:"add",value:function(Ce,Fe){this.refs[Ce]||(this.refs[Ce]=[]),this.refs[Ce].push(Fe)}},{key:"remove",value:function(Ce,Fe){var it=this.getIndex(Ce,Fe);it!==-1&&this.refs[Ce].splice(it,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var Ce=this;return this.refs[this.active.collection].find(function(Fe){var it=Fe.node;return it.sortableInfo.index==Ce.active.index})}},{key:"getIndex",value:function(Ce,Fe){return this.refs[Ce].indexOf(Fe)}},{key:"getOrderedRefs",value:function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[Ce].sort(b)}}]),je}();function b(je,me){var Ce=je.node.sortableInfo.index,Fe=me.node.sortableInfo.index;return Ce-Fe}function S(je,me,Ce){return je=je.slice(),je.splice(Ce<0?je.length+Ce:Ce,0,je.splice(me,1)[0]),je}function E(je,me){return Object.keys(je).reduce(function(Ce,Fe){return me.indexOf(Fe)===-1&&(Ce[Fe]=je[Fe]),Ce},{})}var C={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var je=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],me=(Array.prototype.slice.call(je).join("").match(/-(moz|webkit|ms)-/)||je.OLink===""&&["","o"])[1];switch(me){case"ms":return"ms";default:return me&&me.length?me[0].toUpperCase()+me.substr(1):""}}();function T(je,me){Object.keys(me).forEach(function(Ce){je.style[Ce]=me[Ce]})}function w(je,me){je.style["".concat(_,"Transform")]=me==null?"":"translate3d(".concat(me.x,"px,").concat(me.y,"px,0)")}function O(je,me){je.style["".concat(_,"TransitionDuration")]=me==null?"":"".concat(me,"ms")}function I(je,me){for(;je;){if(me(je))return je;je=je.parentNode}return null}function R(je,me,Ce){return Math.max(je,Math.min(Ce,me))}function M(je){return je.substr(-2)==="px"?parseFloat(je):0}function F(je){var me=window.getComputedStyle(je);return{bottom:M(me.marginBottom),left:M(me.marginLeft),right:M(me.marginRight),top:M(me.marginTop)}}function P(je,me){var Ce=me.displayName||me.name;return Ce?"".concat(je,"(").concat(Ce,")"):je}function X(je,me){var Ce=je.getBoundingClientRect();return{top:Ce.top+me.top,left:Ce.left+me.left}}function B(je){return je.touches&&je.touches.length?{x:je.touches[0].pageX,y:je.touches[0].pageY}:je.changedTouches&&je.changedTouches.length?{x:je.changedTouches[0].pageX,y:je.changedTouches[0].pageY}:{x:je.pageX,y:je.pageY}}function j(je){return je.touches&&je.touches.length||je.changedTouches&&je.changedTouches.length}function W(je,me){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!je)return;var Fe={left:Ce.left+je.offsetLeft,top:Ce.top+je.offsetTop};return je.parentNode===me?Fe:W(je.parentNode,me,Fe)}function z(je,me,Ce){return je<Ce&&je>me?je-1:je>Ce&&je<me?je+1:je}function V(je){var me=je.lockOffset,Ce=je.width,Fe=je.height,it=me,Ct=me,mt="px";if(typeof me=="string"){var Ve=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(me);d()(Ve!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',me),it=parseFloat(me),Ct=parseFloat(me),mt=Ve[1]}return d()(isFinite(it)&&isFinite(Ct),"lockOffset value should be a finite. Given %s",me),mt==="%"&&(it=it*Ce/100,Ct=Ct*Fe/100),{x:it,y:Ct}}function Q(je){var me=je.height,Ce=je.width,Fe=je.lockOffset,it=Array.isArray(Fe)?Fe:[Fe,Fe];d()(it.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Fe);var Ct=Object(p.a)(it,2),mt=Ct[0],Ve=Ct[1];return[V({height:me,lockOffset:mt,width:Ce}),V({height:me,lockOffset:Ve,width:Ce})]}function G(je){var me=window.getComputedStyle(je),Ce=/(auto|scroll)/,Fe=["overflow","overflowX","overflowY"];return Fe.find(function(it){return Ce.test(me[it])})}function re(je){return je instanceof HTMLElement?G(je)?je:re(je.parentNode):null}function ee(je){var me=window.getComputedStyle(je);return me.display==="grid"?{x:M(me.gridColumnGap),y:M(me.gridRowGap)}:{x:0,y:0}}var ue={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},$={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function be(je){var me="input, textarea, select, canvas, [contenteditable]",Ce=je.querySelectorAll(me),Fe=je.cloneNode(!0),it=Object(g.a)(Fe.querySelectorAll(me));return it.forEach(function(Ct,mt){if(Ct.type!=="file"&&(Ct.value=Ce[mt].value),Ct.type==="radio"&&Ct.name&&(Ct.name="__sortableClone__".concat(Ct.name)),Ct.tagName===$.Canvas&&Ce[mt].width>0&&Ce[mt].height>0){var Ve=Ct.getContext("2d");Ve.drawImage(Ce[mt],0,0)}}),Fe}function _e(je){var me,Ce,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ce=me=function(it){Object(u.a)(Ct,it);function Ct(){return Object(A.a)(this,Ct),Object(f.a)(this,Object(h.a)(Ct).apply(this,arguments))}return Object(m.a)(Ct,[{key:"componentDidMount",value:function(){var Ve=Object(r.findDOMNode)(this);Ve.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return d()(Fe.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 Ve=Fe.withRef?"wrappedInstance":null;return Object(t.createElement)(je,Object(y.a)({ref:Ve},this.props))}}]),Ct}(t.Component),Object(i.a)(me,"displayName",P("sortableHandle",je)),Ce}function Ee(je){return je.sortableHandle!=null}var Xe=function(){function je(me,Ce){Object(A.a)(this,je),this.container=me,this.onScrollCallback=Ce}return Object(m.a)(je,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(Ce){var Fe=this,it=Ce.translate,Ct=Ce.minTranslate,mt=Ce.maxTranslate,Ve=Ce.width,or=Ce.height,dt={x:0,y:0},Yt={x:1,y:1},hr={x:10,y:10},Gt=this.container,Pt=Gt.scrollTop,Xt=Gt.scrollLeft,Ge=Gt.scrollHeight,pe=Gt.scrollWidth,se=Gt.clientHeight,lt=Gt.clientWidth,Ze=Pt===0,de=Ge-Pt-se===0,_t=Xt===0,er=pe-Xt-lt===0;it.y>=mt.y-or/2&&!de?(dt.y=1,Yt.y=hr.y*Math.abs((mt.y-or/2-it.y)/or)):it.x>=mt.x-Ve/2&&!er?(dt.x=1,Yt.x=hr.x*Math.abs((mt.x-Ve/2-it.x)/Ve)):it.y<=Ct.y+or/2&&!Ze?(dt.y=-1,Yt.y=hr.y*Math.abs((it.y-or/2-Ct.y)/or)):it.x<=Ct.x+Ve/2&&!_t&&(dt.x=-1,Yt.x=hr.x*Math.abs((it.x-Ve/2-Ct.x)/Ve)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(dt.x!==0||dt.y!==0)&&(this.interval=setInterval(function(){Fe.isAutoScrolling=!0;var yt={left:Yt.x*dt.x,top:Yt.y*dt.y};Fe.container.scrollTop+=yt.top,Fe.container.scrollLeft+=yt.left,Fe.onScrollCallback(yt)},5))}}]),je}();function He(je){var me=je.node;return{height:me.offsetHeight,width:me.offsetWidth}}function nt(je){var me=[$.Input,$.Textarea,$.Select,$.Option,$.Button];return me.indexOf(je.target.tagName)!==-1?!0:!!I(je.target,function(Ce){return Ce.contentEditable==="true"})}var Ie={axis:l.a.oneOf(["x","y","xy"]),contentWindow:l.a.any,disableAutoscroll:l.a.bool,distance:l.a.number,getContainer:l.a.func,getHelperDimensions:l.a.func,helperClass:l.a.string,helperContainer:l.a.oneOfType([l.a.func,typeof HTMLElement=="undefined"?l.a.any:l.a.instanceOf(HTMLElement)]),hideSortableGhost:l.a.bool,keyboardSortingTransitionDuration:l.a.number,lockAxis:l.a.string,lockOffset:l.a.oneOfType([l.a.number,l.a.string,l.a.arrayOf(l.a.oneOfType([l.a.number,l.a.string]))]),lockToContainerEdges:l.a.bool,onSortEnd:l.a.func,onSortMove:l.a.func,onSortOver:l.a.func,onSortStart:l.a.func,pressDelay:l.a.number,pressThreshold:l.a.number,keyCodes:l.a.shape({lift:l.a.arrayOf(l.a.number),drop:l.a.arrayOf(l.a.number),cancel:l.a.arrayOf(l.a.number),up:l.a.arrayOf(l.a.number),down:l.a.arrayOf(l.a.number)}),shouldCancelStart:l.a.func,transitionDuration:l.a.number,updateBeforeSortStart:l.a.func,useDragHandle:l.a.bool,useWindowAsScrollContainer:l.a.bool},oe={lift:[ue.SPACE],drop:[ue.SPACE],cancel:[ue.ESC],up:[ue.UP,ue.LEFT],down:[ue.DOWN,ue.RIGHT]},ot={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:He,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:oe,shouldCancelStart:nt,transitionDuration:300,useWindowAsScrollContainer:!1},he=Object.keys(Ie);function J(je){d()(!(je.distance&&je.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(je,me){try{var Ce=je()}catch(Fe){return me(!0,Fe)}return Ce&&Ce.then?Ce.then(me.bind(null,!1),me.bind(null,!0)):me(!1,value)}function q(je){var me,Ce,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ce=me=function(it){Object(u.a)(Ct,it);function Ct(mt){var Ve;return Object(A.a)(this,Ct),Ve=Object(f.a)(this,Object(h.a)(Ct).call(this,mt)),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"state",{}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handleStart",function(or){var dt=Ve.props,Yt=dt.distance,hr=dt.shouldCancelStart;if(or.button===2||hr(or))return;Ve.touched=!0,Ve.position=B(or);var Gt=I(or.target,function(lt){return lt.sortableInfo!=null});if(Gt&&Gt.sortableInfo&&Ve.nodeIsChild(Gt)&&!Ve.state.sorting){var Pt=Ve.props.useDragHandle,Xt=Gt.sortableInfo,Ge=Xt.index,pe=Xt.collection,se=Xt.disabled;if(se)return;if(Pt&&!I(or.target,Ee))return;Ve.manager.active={collection:pe,index:Ge},!j(or)&&or.target.tagName===$.Anchor&&or.preventDefault(),Yt||(Ve.props.pressDelay===0?Ve.handlePress(or):Ve.pressTimer=setTimeout(function(){return Ve.handlePress(or)},Ve.props.pressDelay))}}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"nodeIsChild",function(or){return or.sortableInfo.manager===Ve.manager}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handleMove",function(or){var dt=Ve.props,Yt=dt.distance,hr=dt.pressThreshold;if(!Ve.state.sorting&&Ve.touched&&!Ve._awaitingUpdateBeforeSortStart){var Gt=B(or),Pt={x:Ve.position.x-Gt.x,y:Ve.position.y-Gt.y},Xt=Math.abs(Pt.x)+Math.abs(Pt.y);Ve.delta=Pt,!Yt&&(!hr||Xt>=hr)?(clearTimeout(Ve.cancelTimer),Ve.cancelTimer=setTimeout(Ve.cancel,0)):Yt&&Xt>=Yt&&Ve.manager.isActive()&&Ve.handlePress(or)}}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handleEnd",function(){Ve.touched=!1,Ve.cancel()}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"cancel",function(){var or=Ve.props.distance,dt=Ve.state.sorting;dt||(or||clearTimeout(Ve.pressTimer),Ve.manager.active=null)}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handlePress",function(or){try{var dt=Ve.manager.getActive(),Yt=function(){if(dt){var hr=function(){var Sr=de.sortableInfo.index,Cn=F(de),mr=ee(Ve.container),Pr=Ve.scrollContainer.getBoundingClientRect(),gr=Xt({index:Sr,node:de,collection:_t});if(Ve.node=de,Ve.margin=Cn,Ve.gridGap=mr,Ve.width=gr.width,Ve.height=gr.height,Ve.marginOffset={x:Ve.margin.left+Ve.margin.right+Ve.gridGap.x,y:Math.max(Ve.margin.top,Ve.margin.bottom,Ve.gridGap.y)},Ve.boundingClientRect=de.getBoundingClientRect(),Ve.containerBoundingRect=Pr,Ve.index=Sr,Ve.newIndex=Sr,Ve.axis={x:Pt.indexOf("x")>=0,y:Pt.indexOf("y")>=0},Ve.offsetEdge=W(de,Ve.container),er?Ve.initialOffset=B(Object(x.a)({},or,{pageX:Ve.boundingClientRect.left,pageY:Ve.boundingClientRect.top})):Ve.initialOffset=B(or),Ve.initialScroll={left:Ve.scrollContainer.scrollLeft,top:Ve.scrollContainer.scrollTop},Ve.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Ve.helper=Ve.helperContainer.appendChild(be(de)),T(Ve.helper,{boxSizing:"border-box",height:"".concat(Ve.height,"px"),left:"".concat(Ve.boundingClientRect.left-Cn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Ve.boundingClientRect.top-Cn.top,"px"),width:"".concat(Ve.width,"px")}),er&&Ve.helper.focus(),pe&&(Ve.sortableGhost=de,T(de,{opacity:0,visibility:"hidden"})),Ve.minTranslate={},Ve.maxTranslate={},er){var Jt=Ze?{top:0,left:0,width:Ve.contentWindow.innerWidth,height:Ve.contentWindow.innerHeight}:Ve.containerBoundingRect,Dt=Jt.top,dn=Jt.left,Fn=Jt.width,Zn=Jt.height,ci=Dt+Zn,Xi=dn+Fn;Ve.axis.x&&(Ve.minTranslate.x=dn-Ve.boundingClientRect.left,Ve.maxTranslate.x=Xi-(Ve.boundingClientRect.left+Ve.width)),Ve.axis.y&&(Ve.minTranslate.y=Dt-Ve.boundingClientRect.top,Ve.maxTranslate.y=ci-(Ve.boundingClientRect.top+Ve.height))}else Ve.axis.x&&(Ve.minTranslate.x=(Ze?0:Pr.left)-Ve.boundingClientRect.left-Ve.width/2,Ve.maxTranslate.x=(Ze?Ve.contentWindow.innerWidth:Pr.left+Pr.width)-Ve.boundingClientRect.left-Ve.width/2),Ve.axis.y&&(Ve.minTranslate.y=(Ze?0:Pr.top)-Ve.boundingClientRect.top-Ve.height/2,Ve.maxTranslate.y=(Ze?Ve.contentWindow.innerHeight:Pr.top+Pr.height)-Ve.boundingClientRect.top-Ve.height/2);Ge&&Ge.split(" ").forEach(function(Gn){return Ve.helper.classList.add(Gn)}),Ve.listenerNode=or.touches?de:Ve.contentWindow,er?(Ve.listenerNode.addEventListener("wheel",Ve.handleKeyEnd,!0),Ve.listenerNode.addEventListener("mousedown",Ve.handleKeyEnd,!0),Ve.listenerNode.addEventListener("keydown",Ve.handleKeyDown)):(C.move.forEach(function(Gn){return Ve.listenerNode.addEventListener(Gn,Ve.handleSortMove,!1)}),C.end.forEach(function(Gn){return Ve.listenerNode.addEventListener(Gn,Ve.handleSortEnd,!1)})),Ve.setState({sorting:!0,sortingIndex:Sr}),lt&&lt({node:de,index:Sr,collection:_t,isKeySorting:er,nodes:Ve.manager.getOrderedRefs(),helper:Ve.helper},or),er&&Ve.keyMove(0)},Gt=Ve.props,Pt=Gt.axis,Xt=Gt.getHelperDimensions,Ge=Gt.helperClass,pe=Gt.hideSortableGhost,se=Gt.updateBeforeSortStart,lt=Gt.onSortStart,Ze=Gt.useWindowAsScrollContainer,de=dt.node,_t=dt.collection,er=Ve.manager.isKeySorting,yt=function(){if(typeof se=="function"){Ve._awaitingUpdateBeforeSortStart=!0;var Ar=Y(function(){var Sr=de.sortableInfo.index;return Promise.resolve(se({collection:_t,index:Sr,node:de,isKeySorting:er},or)).then(function(){})},function(Sr,Cn){if(Ve._awaitingUpdateBeforeSortStart=!1,Sr)throw Cn;return Cn});if(Ar&&Ar.then)return Ar.then(function(){})}}();return yt&&yt.then?yt.then(hr):hr(yt)}}();return Promise.resolve(Yt&&Yt.then?Yt.then(function(){}):void 0)}catch(hr){return Promise.reject(hr)}}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handleSortMove",function(or){var dt=Ve.props.onSortMove;typeof or.preventDefault=="function"&&or.preventDefault(),Ve.updateHelperPosition(or),Ve.animateNodes(),Ve.autoscroll(),dt&&dt(or)}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handleSortEnd",function(or){var dt=Ve.props,Yt=dt.hideSortableGhost,hr=dt.onSortEnd,Gt=Ve.manager,Pt=Gt.active.collection,Xt=Gt.isKeySorting,Ge=Ve.manager.getOrderedRefs();Ve.listenerNode&&(Xt?(Ve.listenerNode.removeEventListener("wheel",Ve.handleKeyEnd,!0),Ve.listenerNode.removeEventListener("mousedown",Ve.handleKeyEnd,!0),Ve.listenerNode.removeEventListener("keydown",Ve.handleKeyDown)):(C.move.forEach(function(de){return Ve.listenerNode.removeEventListener(de,Ve.handleSortMove)}),C.end.forEach(function(de){return Ve.listenerNode.removeEventListener(de,Ve.handleSortEnd)}))),Ve.helper.parentNode.removeChild(Ve.helper),Yt&&Ve.sortableGhost&&T(Ve.sortableGhost,{opacity:"",visibility:""});for(var pe=0,se=Ge.length;pe<se;pe++){var lt=Ge[pe],Ze=lt.node;lt.edgeOffset=null,lt.boundingClientRect=null,w(Ze,null),O(Ze,null),lt.translate=null}Ve.autoScroller.clear(),Ve.manager.active=null,Ve.manager.isKeySorting=!1,Ve.setState({sorting:!1,sortingIndex:null}),typeof hr=="function"&&hr({collection:Pt,newIndex:Ve.newIndex,oldIndex:Ve.index,isKeySorting:Xt,nodes:Ge},or),Ve.touched=!1}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"autoscroll",function(){var or=Ve.props.disableAutoscroll,dt=Ve.manager.isKeySorting;if(or){Ve.autoScroller.clear();return}if(dt){var Yt=Object(x.a)({},Ve.translate),hr=0,Gt=0;Ve.axis.x&&(Yt.x=Math.min(Ve.maxTranslate.x,Math.max(Ve.minTranslate.x,Ve.translate.x)),hr=Ve.translate.x-Yt.x),Ve.axis.y&&(Yt.y=Math.min(Ve.maxTranslate.y,Math.max(Ve.minTranslate.y,Ve.translate.y)),Gt=Ve.translate.y-Yt.y),Ve.translate=Yt,w(Ve.helper,Ve.translate),Ve.scrollContainer.scrollLeft+=hr,Ve.scrollContainer.scrollTop+=Gt;return}Ve.autoScroller.update({height:Ve.height,maxTranslate:Ve.maxTranslate,minTranslate:Ve.minTranslate,translate:Ve.translate,width:Ve.width})}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"onAutoScroll",function(or){Ve.translate.x+=or.left,Ve.translate.y+=or.top,Ve.animateNodes()}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handleKeyDown",function(or){var dt=or.keyCode,Yt=Ve.props,hr=Yt.shouldCancelStart,Gt=Yt.keyCodes,Pt=Gt===void 0?{}:Gt,Xt=Object(x.a)({},oe,Pt);if(Ve.manager.active&&!Ve.manager.isKeySorting||!Ve.manager.active&&(!Xt.lift.includes(dt)||hr(or)||!Ve.isValidSortingTarget(or)))return;or.stopPropagation(),or.preventDefault(),Xt.lift.includes(dt)&&!Ve.manager.active?Ve.keyLift(or):Xt.drop.includes(dt)&&Ve.manager.active?Ve.keyDrop(or):Xt.cancel.includes(dt)?(Ve.newIndex=Ve.manager.active.index,Ve.keyDrop(or)):Xt.up.includes(dt)?Ve.keyMove(-1):Xt.down.includes(dt)&&Ve.keyMove(1)}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"keyLift",function(or){var dt=or.target,Yt=I(dt,function(Xt){return Xt.sortableInfo!=null}),hr=Yt.sortableInfo,Gt=hr.index,Pt=hr.collection;Ve.initialFocusedNode=dt,Ve.manager.isKeySorting=!0,Ve.manager.active={index:Gt,collection:Pt},Ve.handlePress(or)}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"keyMove",function(or){var dt=Ve.manager.getOrderedRefs(),Yt=dt[dt.length-1].node.sortableInfo.index,hr=Ve.newIndex+or,Gt=Ve.newIndex;if(hr<0||hr>Yt)return;Ve.prevIndex=Gt,Ve.newIndex=hr;var Pt=z(Ve.newIndex,Ve.prevIndex,Ve.index),Xt=dt.find(function(er){var yt=er.node;return yt.sortableInfo.index===Pt}),Ge=Xt.node,pe=Ve.containerScrollDelta,se=Xt.boundingClientRect||X(Ge,pe),lt=Xt.translate||{x:0,y:0},Ze={top:se.top+lt.y-pe.top,left:se.left+lt.x-pe.left},de=Gt<hr,_t={x:de&&Ve.axis.x?Ge.offsetWidth-Ve.width:0,y:de&&Ve.axis.y?Ge.offsetHeight-Ve.height:0};Ve.handleSortMove({pageX:Ze.left+_t.x,pageY:Ze.top+_t.y,ignoreTransition:or===0})}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"keyDrop",function(or){Ve.handleSortEnd(or),Ve.initialFocusedNode&&Ve.initialFocusedNode.focus()}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"handleKeyEnd",function(or){Ve.manager.active&&Ve.keyDrop(or)}),Object(i.a)(Object(a.a)(Object(a.a)(Ve)),"isValidSortingTarget",function(or){var dt=Ve.props.useDragHandle,Yt=or.target,hr=I(Yt,function(Gt){return Gt.sortableInfo!=null});return hr&&hr.sortableInfo&&!hr.sortableInfo.disabled&&(dt?Ee(Yt):Yt.sortableInfo)}),J(mt),Ve.manager=new v,Ve.events={end:Ve.handleEnd,move:Ve.handleMove,start:Ve.handleStart},Ve}return Object(m.a)(Ct,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Ve=this,or=this.props.useWindowAsScrollContainer,dt=this.getContainer();Promise.resolve(dt).then(function(Yt){Ve.container=Yt,Ve.document=Ve.container.ownerDocument||document;var hr=Ve.props.contentWindow||Ve.document.defaultView||window;Ve.contentWindow=typeof hr=="function"?hr():hr,Ve.scrollContainer=or?Ve.document.scrollingElement||Ve.document.documentElement:re(Ve.container)||Ve.container,Ve.autoScroller=new Xe(Ve.scrollContainer,Ve.onAutoScroll),Object.keys(Ve.events).forEach(function(Gt){return C[Gt].forEach(function(Pt){return Ve.container.addEventListener(Pt,Ve.events[Gt],!1)})}),Ve.container.addEventListener("keydown",Ve.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Ve=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(or){return C[or].forEach(function(dt){return Ve.container.removeEventListener(dt,Ve.events[or])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Ve){var or=this.props,dt=or.lockAxis,Yt=or.lockOffset,hr=or.lockToContainerEdges,Gt=or.transitionDuration,Pt=or.keyboardSortingTransitionDuration,Xt=Pt===void 0?Gt:Pt,Ge=this.manager.isKeySorting,pe=Ve.ignoreTransition,se=B(Ve),lt={x:se.x-this.initialOffset.x,y:se.y-this.initialOffset.y};if(lt.y-=window.pageYOffset-this.initialWindowScroll.top,lt.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=lt,hr){var Ze=Q({height:this.height,lockOffset:Yt,width:this.width}),de=Object(p.a)(Ze,2),_t=de[0],er=de[1],yt={x:this.width/2-_t.x,y:this.height/2-_t.y},Ar={x:this.width/2-er.x,y:this.height/2-er.y};lt.x=R(this.minTranslate.x+yt.x,this.maxTranslate.x-Ar.x,lt.x),lt.y=R(this.minTranslate.y+yt.y,this.maxTranslate.y-Ar.y,lt.y)}dt==="x"?lt.y=0:dt==="y"&&(lt.x=0),Ge&&Xt&&!pe&&O(this.helper,Xt),w(this.helper,lt)}},{key:"animateNodes",value:function(){var Ve=this.props,or=Ve.transitionDuration,dt=Ve.hideSortableGhost,Yt=Ve.onSortOver,hr=this.containerScrollDelta,Gt=this.windowScrollDelta,Pt=this.manager.getOrderedRefs(),Xt={left:this.offsetEdge.left+this.translate.x+hr.left,top:this.offsetEdge.top+this.translate.y+hr.top},Ge=this.manager.isKeySorting,pe=this.newIndex;this.newIndex=null;for(var se=0,lt=Pt.length;se<lt;se++){var Ze=Pt[se].node,de=Ze.sortableInfo.index,_t=Ze.offsetWidth,er=Ze.offsetHeight,yt={height:this.height>er?er/2:this.height/2,width:this.width>_t?_t/2:this.width/2},Ar=Ge&&de>this.index&&de<=pe,Sr=Ge&&de<this.index&&de>=pe,Cn={x:0,y:0},mr=Pt[se].edgeOffset;mr||(mr=W(Ze,this.container),Pt[se].edgeOffset=mr,Ge&&(Pt[se].boundingClientRect=X(Ze,hr)));var Pr=se<Pt.length-1&&Pt[se+1],gr=se>0&&Pt[se-1];if(Pr&&!Pr.edgeOffset&&(Pr.edgeOffset=W(Pr.node,this.container),Ge&&(Pr.boundingClientRect=X(Pr.node,hr))),de===this.index){dt&&(this.sortableGhost=Ze,T(Ze,{opacity:0,visibility:"hidden"}));continue}or&&O(Ze,or),this.axis.x?this.axis.y?Sr||de<this.index&&(Xt.left+Gt.left-yt.width<=mr.left&&Xt.top+Gt.top<=mr.top+yt.height||Xt.top+Gt.top+yt.height<=mr.top)?(Cn.x=this.width+this.marginOffset.x,mr.left+Cn.x>this.containerBoundingRect.width-yt.width&&(Pr&&(Cn.x=Pr.edgeOffset.left-mr.left,Cn.y=Pr.edgeOffset.top-mr.top)),this.newIndex===null&&(this.newIndex=de)):(Ar||de>this.index&&(Xt.left+Gt.left+yt.width>=mr.left&&Xt.top+Gt.top+yt.height>=mr.top||Xt.top+Gt.top+yt.height>=mr.top+er))&&(Cn.x=-(this.width+this.marginOffset.x),mr.left+Cn.x<this.containerBoundingRect.left+yt.width&&(gr&&(Cn.x=gr.edgeOffset.left-mr.left,Cn.y=gr.edgeOffset.top-mr.top)),this.newIndex=de):Ar||de>this.index&&Xt.left+Gt.left+yt.width>=mr.left?(Cn.x=-(this.width+this.marginOffset.x),this.newIndex=de):(Sr||de<this.index&&Xt.left+Gt.left<=mr.left+yt.width)&&(Cn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=de)):this.axis.y&&(Ar||de>this.index&&Xt.top+Gt.top+yt.height>=mr.top?(Cn.y=-(this.height+this.marginOffset.y),this.newIndex=de):(Sr||de<this.index&&Xt.top+Gt.top<=mr.top+yt.height)&&(Cn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=de))),w(Ze,Cn),Pt[se].translate=Cn}this.newIndex==null&&(this.newIndex=this.index),Ge&&(this.newIndex=pe);var Jt=Ge?this.prevIndex:pe;Yt&&this.newIndex!==Jt&&Yt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Jt,isKeySorting:Ge,nodes:Pt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return d()(Fe.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 Ve=this.props.getContainer;return typeof Ve!="function"?Object(r.findDOMNode)(this):Ve(Fe.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Ve=Fe.withRef?"wrappedInstance":null;return Object(t.createElement)(je,Object(y.a)({ref:Ve},E(this.props,he)))}},{key:"helperContainer",get:function(){var Ve=this.props.helperContainer;return typeof Ve=="function"?Ve():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Ve=this.props.useWindowAsScrollContainer;return Ve?{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}}}]),Ct}(t.Component),Object(i.a)(me,"displayName",P("sortableList",je)),Object(i.a)(me,"defaultProps",ot),Object(i.a)(me,"propTypes",Ie),Object(i.a)(me,"childContextTypes",{manager:l.a.object.isRequired}),Ce}var fe={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},we=Object.keys(fe);function Ne(je){var me,Ce,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ce=me=function(it){Object(u.a)(Ct,it);function Ct(){return Object(A.a)(this,Ct),Object(f.a)(this,Object(h.a)(Ct).apply(this,arguments))}return Object(m.a)(Ct,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Ve){this.node&&(Ve.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Ve.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Ve.collection!==this.props.collection&&(this.unregister(Ve.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Ve=this.props,or=Ve.collection,dt=Ve.disabled,Yt=Ve.index,hr=Object(r.findDOMNode)(this);hr.sortableInfo={collection:or,disabled:dt,index:Yt,manager:this.context.manager},this.node=hr,this.ref={node:hr},this.context.manager.add(or,this.ref)}},{key:"unregister",value:function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Ve,this.ref)}},{key:"getWrappedInstance",value:function(){return d()(Fe.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 Ve=Fe.withRef?"wrappedInstance":null;return Object(t.createElement)(je,Object(y.a)({ref:Ve},E(this.props,we)))}}]),Ct}(t.Component),Object(i.a)(me,"displayName",P("sortableElement",je)),Object(i.a)(me,"contextTypes",{manager:l.a.object.isRequired}),Object(i.a)(me,"propTypes",fe),Object(i.a)(me,"defaultProps",{collection:0}),Ce}},YNAk:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("QyFq")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CaretDownFilled";var i=A.forwardRef(a);D.default=i},YNf1:function(k,D,n){var y=n("IwbS"),p=n("6Ic6"),x=.3,A=p.extend({type:"parallel",init:function(){this._dataGroup=new y.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(o,e,l,r){var s=this._dataGroup,c=o.getData(),d=this._data,g=o.coordinateSystem,v=g.dimensions,b=u(o);c.diff(d).add(S).update(E).remove(C).execute();function S(T){var w=h(c,s,T,v,g);a(w,c,T,b)}function E(T,w){var O=d.getItemGraphicEl(w),I=f(c,T,v,g);c.setItemGraphicEl(T,O);var R=r&&r.animation===!1?null:o;y.updateProps(O,{shape:{points:I}},R,T),a(O,c,T,b)}function C(T){var w=d.getItemGraphicEl(T);s.remove(w)}if(!this._initialized){this._initialized=!0;var _=m(g,o,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(_)}this._data=c},incrementalPrepareRender:function(o,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(o,e,l){for(var r=e.getData(),s=e.coordinateSystem,c=s.dimensions,d=u(e),g=o.start;g<o.end;g++){var v=h(r,this._dataGroup,g,c,s);v.incremental=!0,a(v,r,g,d)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(o,e,l){var r=o.model,s=o.getRect(),c=new y.Rect({shape:{x:s.x,y:s.y,width:s.width,height:s.height}}),d=r.get("layout")==="horizontal"?"width":"height";return c.setShape(d,0),y.initProps(c,{shape:{width:s.width,height:s.height}},e,l),c}function f(o,e,l,r){for(var s=[],c=0;c<l.length;c++){var d=l[c],g=o.get(o.mapDimension(d),e);i(g,r.getAxis(d).type)||s.push(r.dataToPoint(g,d))}return s}function h(o,e,l,r,s){var c=f(o,l,r,s),d=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(d),o.setItemGraphicEl(l,d),d}function u(o){var e=o.get("smooth",!0);return e===!0&&(e=x),{lineStyle:o.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:x}}function a(o,e,l,r){var s=r.lineStyle;if(e.hasItemOption){var c=e.getItemModel(l).getModel("lineStyle");s=c.getLineStyle()}o.useStyle(s);var d=o.style;d.fill=null,d.stroke=e.getItemVisual(l,"color"),d.opacity=e.getItemVisual(l,"opacity"),r.smooth&&(o.shape.smooth=r.smooth)}function i(o,e){return e==="category"?o==null:o==null||isNaN(o)}var t=A;k.exports=t},YOMW:function(k,D,n){var y=n("bYtY"),p={get:function(m,f,h){var u=y.clone((x[m]||{})[f]);return h&&y.isArray(u)?u[u.length-1]:u}},x={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},A=p;k.exports=A},YXkt:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("Qxkt"),m=n("gPAo"),f=n("7G+c"),h=n("KxfA"),u=h.defaultDimValueGetters,a=h.DefaultDataProvider,i=n("L0Ub"),t=i.summarizeDimensions,o=n("Vi4m"),e=x.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},d=typeof Uint32Array===l?Array:Uint32Array,g=typeof Int32Array===l?Array:Int32Array,v=typeof Uint16Array===l?Array:Uint16Array;function b(G){return G._rawCount>65535?d:v}function S(G){var re=G.constructor;return re===Array?G.slice():new re(G)}var E=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function _(G,re){x.each(E.concat(re.__wrappedMethods||[]),function(ee){re.hasOwnProperty(ee)&&(G[ee]=re[ee])}),G.__wrappedMethods=re.__wrappedMethods,x.each(C,function(ee){G[ee]=x.clone(re[ee])}),G._calculationInfo=x.extend(re._calculationInfo)}var T=function(G,re){G=G||["x","y"];for(var ee={},ue=[],$={},be=0;be<G.length;be++){var _e=G[be];x.isString(_e)?_e=new o({name:_e}):_e instanceof o||(_e=new o(_e));var Ee=_e.name;_e.type=_e.type||"float",_e.coordDim||(_e.coordDim=Ee,_e.coordDimIndex=0),_e.otherDims=_e.otherDims||{},ue.push(Ee),ee[Ee]=_e,_e.index=be,_e.createInvertedIndices&&($[Ee]=[])}this.dimensions=ue,this._dimensionInfos=ee,this.hostModel=re,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=$,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=T.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},w.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(G,re){var ee=this._dimensionsSummary;if(re==null)return ee.encodeFirstDimNotExtra[G];var ue=ee.encode[G];return re===!0?(ue||[]).slice():ue&&ue[re]},w.initData=function(G,re,ee){var ue=f.isInstance(G)||x.isArrayLike(G);ue&&(G=new a(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=re||[],this._idList=[],this._nameRepeatCount={},ee||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=ee=ee||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(G){var re=this._rawData,ee=this.count();re.appendData(G);var ue=re.count();re.persistent||(ue+=ee),this._initDataFromProvider(ee,ue)},w.appendValues=function(G,re){for(var ee=this._chunkSize,ue=this._storage,$=this.dimensions,be=$.length,_e=this._rawExtent,Ee=this.count(),Xe=Ee+Math.max(G.length,re?re.length:0),He=this._chunkCount,nt=0;nt<be;nt++){var Ie=$[nt];_e[Ie]||(_e[Ie]=z()),ue[Ie]||(ue[Ie]=[]),O(ue,this._dimensionInfos[Ie],ee,He,Xe),this._chunkCount=ue[Ie].length}for(var oe=new Array(be),ot=Ee;ot<Xe;ot++){for(var he=ot-Ee,J=Math.floor(ot/ee),Y=ot%ee,q=0;q<be;q++){var Ie=$[q],fe=this._dimValueGetterArrayRows(G[he]||oe,Ie,he,q);ue[Ie][J][Y]=fe;var we=_e[Ie];fe<we[0]&&(we[0]=fe),fe>we[1]&&(we[1]=fe)}re&&(this._nameList[ot]=re[he])}this._rawCount=this._count=Xe,this._extent={},I(this)},w._initDataFromProvider=function(G,re){if(G>=re)return;for(var ee=this._chunkSize,ue=this._rawData,$=this._storage,be=this.dimensions,_e=be.length,Ee=this._dimensionInfos,Xe=this._nameList,He=this._idList,nt=this._rawExtent,Ie=this._nameRepeatCount={},oe,ot=this._chunkCount,he=0;he<_e;he++){var J=be[he];nt[J]||(nt[J]=z());var Y=Ee[J];Y.otherDims.itemName===0&&(oe=this._nameDimIdx=he),Y.otherDims.itemId===0&&(this._idDimIdx=he),$[J]||($[J]=[]),O($,Y,ee,ot,re),this._chunkCount=$[J].length}for(var q=new Array(_e),fe=G;fe<re;fe++){q=ue.getItem(fe,q);for(var we=Math.floor(fe/ee),Ne=fe%ee,je=0;je<_e;je++){var J=be[je],me=$[J][we],Ce=this._dimValueGetter(q,J,fe,je);me[Ne]=Ce;var Fe=nt[J];Ce<Fe[0]&&(Fe[0]=Ce),Ce>Fe[1]&&(Fe[1]=Ce)}if(!ue.pure){var it=Xe[fe];if(q&&it==null){if(q.name!=null)Xe[fe]=it=q.name;else if(oe!=null){var Ct=be[oe],mt=$[Ct][we];if(mt){it=mt[Ne];var Ve=Ee[Ct].ordinalMeta;Ve&&Ve.categories.length&&(it=Ve.categories[it])}}}var or=q==null?null:q.id;or==null&&it!=null&&(Ie[it]=Ie[it]||0,or=it,Ie[it]>0&&(or+="__ec__"+Ie[it]),Ie[it]++),or!=null&&(He[fe]=or)}}!ue.persistent&&ue.clean&&ue.clean(),this._rawCount=this._count=re,this._extent={},I(this)};function O(G,re,ee,ue,$){var be=c[re.type],_e=ue-1,Ee=re.name,Xe=G[Ee][_e];if(Xe&&Xe.length<ee){for(var He=new be(Math.min($-_e*ee,ee)),nt=0;nt<Xe.length;nt++)He[nt]=Xe[nt];G[Ee][_e]=He}for(var Ie=ue*ee;Ie<$;Ie+=ee)G[Ee].push(new be(Math.min($-Ie,ee)))}function I(G){var re=G._invertedIndicesMap;x.each(re,function(ee,ue){var $=G._dimensionInfos[ue],be=$.ordinalMeta;if(be){ee=re[ue]=new g(be.categories.length);for(var _e=0;_e<ee.length;_e++)ee[_e]=r;for(var _e=0;_e<G._count;_e++)ee[G.get(ue,_e)]=_e}})}function R(G,re,ee){var ue;if(re!=null){var $=G._chunkSize,be=Math.floor(ee/$),_e=ee%$,Ee=G.dimensions[re],Xe=G._storage[Ee][be];if(Xe){ue=Xe[_e];var He=G._dimensionInfos[Ee].ordinalMeta;He&&He.categories.length&&(ue=He.categories[ue])}}return ue}w.count=function(){return this._count},w.getIndices=function(){var G,re=this._indices;if(re){var ee=re.constructor,ue=this._count;if(ee===Array){G=new ee(ue);for(var $=0;$<ue;$++)G[$]=re[$]}else G=new ee(re.buffer,0,ue)}else for(var ee=b(this),G=new ee(this.count()),$=0;$<G.length;$++)G[$]=$;return G},w.get=function(G,re){if(!(re>=0&&re<this._count))return NaN;var ee=this._storage;if(!ee[G])return NaN;re=this.getRawIndex(re);var ue=Math.floor(re/this._chunkSize),$=re%this._chunkSize,be=ee[G][ue],_e=be[$];return _e},w.getByRawIndex=function(G,re){if(!(re>=0&&re<this._rawCount))return NaN;var ee=this._storage[G];if(!ee)return NaN;var ue=Math.floor(re/this._chunkSize),$=re%this._chunkSize,be=ee[ue];return be[$]},w._getFast=function(G,re){var ee=Math.floor(re/this._chunkSize),ue=re%this._chunkSize,$=this._storage[G][ee];return $[ue]},w.getValues=function(G,re){var ee=[];x.isArray(G)||(re=G,G=this.dimensions);for(var ue=0,$=G.length;ue<$;ue++)ee.push(this.get(G[ue],re));return ee},w.hasValue=function(G){for(var re=this._dimensionsSummary.dataDimsOnCoord,ee=0,ue=re.length;ee<ue;ee++)if(isNaN(this.get(re[ee],G)))return!1;return!0},w.getDataExtent=function(G){G=this.getDimension(G);var re=this._storage[G],ee=z();if(!re)return ee;var ue=this.count(),$=!this._indices,be;if($)return this._rawExtent[G].slice();if(be=this._extent[G],be)return be.slice();be=ee;for(var _e=be[0],Ee=be[1],Xe=0;Xe<ue;Xe++){var He=this._getFast(G,this.getRawIndex(Xe));He<_e&&(_e=He),He>Ee&&(Ee=He)}return be=[_e,Ee],this._extent[G]=be,be},w.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},w.setApproximateExtent=function(G,re){re=this.getDimension(re),this._approximateExtent[re]=G.slice()},w.getCalculationInfo=function(G){return this._calculationInfo[G]},w.setCalculationInfo=function(G,re){e(G)?x.extend(this._calculationInfo,G):this._calculationInfo[G]=re},w.getSum=function(G){var re=this._storage[G],ee=0;if(re)for(var ue=0,$=this.count();ue<$;ue++){var be=this.get(G,ue);isNaN(be)||(ee+=be)}return ee},w.getMedian=function(G){var re=[];this.each(G,function($,be){isNaN($)||re.push($)});var ee=[].concat(re).sort(function($,be){return $-be}),ue=this.count();return ue===0?0:ue%2===1?ee[(ue-1)/2]:(ee[ue/2]+ee[ue/2-1])/2},w.rawIndexOf=function(G,re){var ee=G&&this._invertedIndicesMap[G],ue=ee[re];return ue==null||isNaN(ue)?r:ue},w.indexOfName=function(G){for(var re=0,ee=this.count();re<ee;re++)if(this.getName(re)===G)return re;return-1},w.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var re=this._indices,ee=re[G];if(ee!=null&&ee<this._count&&ee===G)return G;for(var ue=0,$=this._count-1;ue<=$;){var be=(ue+$)/2|0;if(re[be]<G)ue=be+1;else if(re[be]>G)$=be-1;else return be}return-1},w.indicesOfNearest=function(G,re,ee){var ue=this._storage,$=ue[G],be=[];if(!$)return be;ee==null&&(ee=Infinity);for(var _e=Infinity,Ee=-1,Xe=0,He=0,nt=this.count();He<nt;He++){var Ie=re-this.get(G,He),oe=Math.abs(Ie);oe<=ee&&((oe<_e||oe===_e&&Ie>=0&&Ee<0)&&(_e=oe,Ee=Ie,Xe=0),Ie===Ee&&(be[Xe++]=He))}return be.length=Xe,be},w.getRawIndex=M;function M(G){return G}function F(G){return G<this._count&&G>=0?this._indices[G]:-1}w.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var re=[],ee=0;ee<this.dimensions.length;ee++){var ue=this.dimensions[ee];re.push(this.get(ue,G))}return re},w.getName=function(G){var re=this.getRawIndex(G);return this._nameList[re]||R(this,this._nameDimIdx,re)||""},w.getId=function(G){return P(this,this.getRawIndex(G))};function P(G,re){var ee=G._idList[re];return ee==null&&(ee=R(G,G._idDimIdx,re)),ee==null&&(ee=s+re),ee}function X(G){return x.isArray(G)||(G=[G]),G}function B(G,re){for(var ee=0;ee<re.length;ee++)G._dimensionInfos[re[ee]]||console.error("Unkown dimension "+re[ee])}w.each=function(G,re,ee,ue){"use strict";if(!this._count)return;typeof G=="function"&&(ue=ee,ee=re,re=G,G=[]),ee=ee||ue||this,G=x.map(X(G),this.getDimension,this);for(var $=G.length,be=0;be<this.count();be++)switch($){case 0:re.call(ee,be);break;case 1:re.call(ee,this.get(G[0],be),be);break;case 2:re.call(ee,this.get(G[0],be),this.get(G[1],be),be);break;default:for(var _e=0,Ee=[];_e<$;_e++)Ee[_e]=this.get(G[_e],be);Ee[_e]=be,re.apply(ee,Ee)}},w.filterSelf=function(G,re,ee,ue){"use strict";if(!this._count)return;typeof G=="function"&&(ue=ee,ee=re,re=G,G=[]),ee=ee||ue||this,G=x.map(X(G),this.getDimension,this);for(var $=this.count(),be=b(this),_e=new be($),Ee=[],Xe=G.length,He=0,nt=G[0],Ie=0;Ie<$;Ie++){var oe,ot=this.getRawIndex(Ie);if(Xe===0)oe=re.call(ee,Ie);else if(Xe===1){var he=this._getFast(nt,ot);oe=re.call(ee,he,Ie)}else{for(var J=0;J<Xe;J++)Ee[J]=this._getFast(nt,ot);Ee[J]=Ie,oe=re.apply(ee,Ee)}oe&&(_e[He++]=ot)}return He<$&&(this._indices=_e),this._count=He,this._extent={},this.getRawIndex=this._indices?F:M,this},w.selectRange=function(G){"use strict";if(!this._count)return;var re=[];for(var ee in G)G.hasOwnProperty(ee)&&re.push(ee);var ue=re.length;if(!ue)return;var $=this.count(),be=b(this),_e=new be($),Ee=0,Xe=re[0],He=G[Xe][0],nt=G[Xe][1],Ie=!1;if(!this._indices){var oe=0;if(ue===1){for(var ot=this._storage[re[0]],he=0;he<this._chunkCount;he++)for(var J=ot[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),q=0;q<Y;q++){var fe=J[q];(fe>=He&&fe<=nt||isNaN(fe))&&(_e[Ee++]=oe),oe++}Ie=!0}else if(ue===2){for(var ot=this._storage[Xe],we=this._storage[re[1]],Ne=G[re[1]][0],je=G[re[1]][1],he=0;he<this._chunkCount;he++)for(var J=ot[he],me=we[he],Y=Math.min(this._count-he*this._chunkSize,this._chunkSize),q=0;q<Y;q++){var fe=J[q],Ce=me[q];(fe>=He&&fe<=nt||isNaN(fe))&&(Ce>=Ne&&Ce<=je||isNaN(Ce))&&(_e[Ee++]=oe),oe++}Ie=!0}}if(!Ie)if(ue===1)for(var q=0;q<$;q++){var Fe=this.getRawIndex(q),fe=this._getFast(Xe,Fe);(fe>=He&&fe<=nt||isNaN(fe))&&(_e[Ee++]=Fe)}else for(var q=0;q<$;q++){for(var it=!0,Fe=this.getRawIndex(q),he=0;he<ue;he++){var Ct=re[he],fe=this._getFast(ee,Fe);(fe<G[Ct][0]||fe>G[Ct][1])&&(it=!1)}it&&(_e[Ee++]=this.getRawIndex(q))}return Ee<$&&(this._indices=_e),this._count=Ee,this._extent={},this.getRawIndex=this._indices?F:M,this},w.mapArray=function(G,re,ee,ue){"use strict";typeof G=="function"&&(ue=ee,ee=re,re=G,G=[]),ee=ee||ue||this;var $=[];return this.each(G,function(){$.push(re&&re.apply(this,arguments))},ee),$};function j(G,re){var ee=G.dimensions,ue=new T(x.map(ee,G.getDimensionInfo,G),G.hostModel);_(ue,G);for(var $=ue._storage={},be=G._storage,_e=0;_e<ee.length;_e++){var Ee=ee[_e];be[Ee]&&(x.indexOf(re,Ee)>=0?($[Ee]=W(be[Ee]),ue._rawExtent[Ee]=z(),ue._extent[Ee]=null):$[Ee]=be[Ee])}return ue}function W(G){for(var re=new Array(G.length),ee=0;ee<G.length;ee++)re[ee]=S(G[ee]);return re}function z(){return[Infinity,-Infinity]}w.map=function(G,re,ee,ue){"use strict";ee=ee||ue||this,G=x.map(X(G),this.getDimension,this);var $=j(this,G);$._indices=this._indices,$.getRawIndex=$._indices?F:M;for(var be=$._storage,_e=[],Ee=this._chunkSize,Xe=G.length,He=this.count(),nt=[],Ie=$._rawExtent,oe=0;oe<He;oe++){for(var ot=0;ot<Xe;ot++)nt[ot]=this.get(G[ot],oe);nt[Xe]=oe;var he=re&&re.apply(ee,nt);if(he!=null){typeof he!="object"&&(_e[0]=he,he=_e);for(var J=this.getRawIndex(oe),Y=Math.floor(J/Ee),q=J%Ee,fe=0;fe<he.length;fe++){var we=G[fe],Ne=he[fe],je=Ie[we],me=be[we];me&&(me[Y][q]=Ne),Ne<je[0]&&(je[0]=Ne),Ne>je[1]&&(je[1]=Ne)}}}return $},w.downSample=function(G,re,ee,ue){for(var $=j(this,[G]),be=$._storage,_e=[],Ee=Math.floor(1/re),Xe=be[G],He=this.count(),nt=this._chunkSize,Ie=$._rawExtent[G],oe=new(b(this))(He),ot=0,he=0;he<He;he+=Ee){Ee>He-he&&(Ee=He-he,_e.length=Ee);for(var J=0;J<Ee;J++){var Y=this.getRawIndex(he+J),q=Math.floor(Y/nt),fe=Y%nt;_e[J]=Xe[q][fe]}var we=ee(_e),Ne=this.getRawIndex(Math.min(he+ue(_e,we)||0,He-1)),je=Math.floor(Ne/nt),me=Ne%nt;Xe[je][me]=we,we<Ie[0]&&(Ie[0]=we),we>Ie[1]&&(Ie[1]=we),oe[ot++]=Ne}return $._count=ot,$._indices=oe,$.getRawIndex=F,$},w.getItemModel=function(G){var re=this.hostModel;return new A(this.getRawDataItem(G),re,re&&re.ecModel)},w.diff=function(G){var re=this;return new m(G?G.getIndices():[],this.getIndices(),function(ee){return P(G,ee)},function(ee){return P(re,ee)})},w.getVisual=function(G){var re=this._visual;return re&&re[G]},w.setVisual=function(G,re){if(e(G)){for(var ee in G)G.hasOwnProperty(ee)&&this.setVisual(ee,G[ee]);return}this._visual=this._visual||{},this._visual[G]=re},w.setLayout=function(G,re){if(e(G)){for(var ee in G)G.hasOwnProperty(ee)&&this.setLayout(ee,G[ee]);return}this._layout[G]=re},w.getLayout=function(G){return this._layout[G]},w.getItemLayout=function(G){return this._itemLayouts[G]},w.setItemLayout=function(G,re,ee){this._itemLayouts[G]=ee?x.extend(this._itemLayouts[G]||{},re):re},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(G,re,ee){var ue=this._itemVisuals[G],$=ue&&ue[re];return $==null&&!ee?this.getVisual(re):$},w.setItemVisual=function(G,re,ee){var ue=this._itemVisuals[G]||{},$=this.hasItemVisual;if(this._itemVisuals[G]=ue,e(re)){for(var be in re)re.hasOwnProperty(be)&&(ue[be]=re[be],$[be]=!0);return}ue[re]=ee,$[re]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};w.setItemGraphicEl=function(G,re){var ee=this.hostModel;re&&(re.dataIndex=G,re.dataType=this.dataType,re.seriesIndex=ee&&ee.seriesIndex,re.type==="group"&&re.traverse(V,re)),this._graphicEls[G]=re},w.getItemGraphicEl=function(G){return this._graphicEls[G]},w.eachItemGraphicEl=function(G,re){x.each(this._graphicEls,function(ee,ue){ee&&(G&&G.call(re,ee,ue))})},w.cloneShallow=function(G){if(!G){var re=x.map(this.dimensions,this.getDimensionInfo,this);G=new T(re,this.hostModel)}if(G._storage=this._storage,_(G,this),this._indices){var ee=this._indices.constructor;G._indices=new ee(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?F:M,G},w.wrapMethod=function(G,re){var ee=this[G];if(typeof ee!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var ue=ee.apply(this,arguments);return re.apply(this,[ue].concat(x.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=T;k.exports=Q},YgsL:function(k,D,n){var y=n("QBsz"),p=y.distance;function x(m,f,h,u,a,i,t){var o=(h-m)*.5,e=(u-f)*.5;return(2*(f-h)+o+e)*t+(-3*(f-h)-2*o-e)*i+o*a+f}function A(m,f){for(var h=m.length,u=[],a=0,i=1;i<h;i++)a+=p(m[i-1],m[i]);var t=a/2;t=t<h?h:t;for(var i=0;i<t;i++){var o=i/(t-1)*(f?h:h-1),e=Math.floor(o),l=o-e,r,s=m[e%h],c,d;f?(r=m[(e-1+h)%h],c=m[(e+1)%h],d=m[(e+2)%h]):(r=m[e===0?e:e-1],c=m[e>h-2?h-1:e+1],d=m[e>h-3?h-1:e+2]);var g=l*l,v=l*g;u.push([x(r[0],s[0],c[0],d[0],l,g,v),x(r[1],s[1],c[1],d[1],l,g,v)])}return u}k.exports=A},Yl7c:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=".",m="___EC__COMPONENT__CONTAINER___";function f(r){var s={main:"",sub:""};return r&&(r=r.split(A),s.main=r[0]||"",s.sub=r[1]||""),s}function h(r){x.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 d=this,g=function(){c.$constructor?c.$constructor.apply(this,arguments):d.apply(this,arguments)};return x.extend(g.prototype,c),g.extend=this.extend,g.superCall=t,g.superApply=o,x.inherits(g,this),g.superClass=d,g}}var a=0;function i(r){var s=["__\0is_clz",a++,Math.random().toFixed(3)].join("_");r.prototype[s]=!0,r.isInstance=function(c){return!!(c&&c[s])}}function t(r,s){var c=x.slice(arguments,2);return this.superClass.prototype[s].apply(r,c)}function o(r,s,c){return this.superClass.prototype[s].apply(r,c)}function e(r,s){s=s||{};var c={};r.registerClass=function(v,b){if(b){if(h(b),b=f(b),!b.sub)c[b.main]=v;else if(b.sub!==m){var S=d(b);S[b.sub]=v}}return v},r.getClass=function(v,b,S){var E=c[v];if(E&&E[m]&&(E=b?E[b]:null),S&&!E)throw new Error(b?"Component "+v+"."+(b||"")+" not exists. Load it first.":v+".type should be specified.");return E},r.getClassesByMainType=function(v){v=f(v);var b=[],S=c[v.main];return S&&S[m]?x.each(S,function(E,C){C!==m&&b.push(E)}):b.push(S),b},r.hasClass=function(v){return v=f(v),!!c[v.main]},r.getAllClassMainTypes=function(){var v=[];return x.each(c,function(b,S){v.push(S)}),v},r.hasSubTypes=function(v){v=f(v);var b=c[v.main];return b&&b[m]},r.parseClassType=f;function d(v){var b=c[v.main];return(!b||!b[m])&&(b=c[v.main]={},b[m]=!0),b}if(s.registerWhenExtend){var g=r.extend;g&&(r.extend=function(v){var b=g.call(this,v);return r.registerClass(b,v.type)})}return r}function l(r,s){}D.parseClassType=f,D.enableClassExtend=u,D.enableClassCheck=i,D.enableClassManagement=e,D.setReadOnly=l},Ynxi:function(k,D,n){var y=n("bYtY"),p=n("ProS"),x=n("IwbS"),A=n("+TT/"),m=A.getLayoutRect,f=n("7aKB"),h=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,a,i){if(this.group.removeAll(),!u.get("show"))return;var t=this.group,o=u.getModel("textStyle"),e=u.getModel("subtextStyle"),l=u.get("textAlign"),r=y.retrieve2(u.get("textBaseline"),u.get("textVerticalAlign")),s=new x.Text({style:x.setTextStyle({},o,{text:u.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),d=u.get("subtext"),g=new x.Text({style:x.setTextStyle({},e,{text:d,textFill:e.getTextColor(),y:c.height+u.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=u.get("link"),b=u.get("sublink"),S=u.get("triggerEvent",!0);s.silent=!v&&!S,g.silent=!b&&!S,v&&s.on("click",function(){h(v,"_"+u.get("target"))}),b&&g.on("click",function(){h(v,"_"+u.get("subtarget"))}),s.eventData=g.eventData=S?{componentType:"title",componentIndex:u.componentIndex}:null,t.add(s),d&&t.add(g);var E=t.getBoundingRect(),C=u.getBoxLayoutParams();C.width=E.width,C.height=E.height;var _=m(C,{width:i.getWidth(),height:i.getHeight()},u.get("padding"));l||(l=u.get("left")||u.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),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 T={textAlign:l,textVerticalAlign:r};s.setStyle(T),g.setStyle(T),E=t.getBoundingRect();var w=_.margin,O=u.getItemStyle(["color","opacity"]);O.fill=u.get("backgroundColor");var I=new x.Rect({shape:{x:E.x-w[3],y:E.y-w[0],width:E.width+w[1]+w[3],height:E.height+w[0]+w[2],r:u.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});t.add(I)}})},Ywus:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("DO2E")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DeleteOutlined";var i=A.forwardRef(a);D.default=i},Z0Lh:function(k,D,n){"use strict";var y=n("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=y(n("pVnL")),x=y(n("HjOm")),A=y(n("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"]},x.default),timePickerLocale:(0,p.default)({},A.default)};m.lang.ok="\u786E \u5B9A";var f=m;D.default=f},Z0cm:function(k,D){var n=Array.isArray;k.exports=n},Z1HP:function(k,D,n){var y=n("ycre"),p=n("quyA"),x=n("q4HE");function A(m){return p(m)?x(m):y(m)}k.exports=A},Z1r0:function(k,D){function n(y){var p=y.findComponents({mainType:"legend"});if(!p||!p.length)return;y.eachSeriesByType("graph",function(x){var A=x.getCategoriesData(),m=x.getGraph(),f=m.data,h=A.mapArray(A.getName);f.filterSelf(function(u){var a=f.getItemModel(u),i=a.getShallow("category");if(i!=null){typeof i=="number"&&(i=h[i]);for(var t=0;t<p.length;t++)if(!p[t].isSelected(i))return!1}return!0})},this)}k.exports=n},Z1wy:function(k,D,n){var y=n("ProS");n("ThAp"),n("pmaE"),n("SehX"),n("7uqq");var p=n("zuHt"),x=n("VPsl"),A=n("9u0u"),m=n("lELe"),f=n("d4KN");y.registerLayout(p),y.registerVisual(x),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A),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,n){var y=n("MwEJ"),p=n("T4UG"),x=p.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});k.exports=x},Z6rY:function(k,D,n){"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,n){var y=n("y1pI");function p(x,A){var m=this.__data__,f=y(m,x);return f<0?(++this.size,m.push([x,A])):m[f][1]=A,this}k.exports=p},Z8zF:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("IwbS"),f=n("56rv"),h=f.setLabel,u=n("Qxkt"),a=n("tceW"),i=n("y+Vt"),t=n("4fz+"),o=n("iLNv"),e=o.throttle,l=n("sK/D"),r=l.createClipPath,s=n("wr5s"),c=["itemStyle","barBorderWidth"],d=[0,0];A.extend(u.prototype,a);function g(V,Q){var G=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var re=V.getBaseAxis();if(re.type!=="category"||!re.onBand){var ee=Q.getLayout("bandWidth");re.isHorizontal()?(G.x-=ee,G.width+=ee*2):(G.y-=ee,G.height+=ee*2)}}return G}var v=x.extendChartView({type:"bar",render:function(V,Q,G){this._updateDrawMode(V);var re=V.get("coordinateSystem");return(re==="cartesian2d"||re==="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,re){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 re=this.group,ee=V.getData(),ue=this._data,$=V.coordinateSystem,be=$.getBaseAxis(),_e;$.type==="cartesian2d"?_e=be.isHorizontal():$.type==="polar"&&(_e=be.dim==="angle");var Ee=V.isAnimationEnabled()?V:null,Xe=V.get("clip",!0),He=g($,ee);re.removeClipPath();var nt=V.get("roundCap",!0),Ie=V.get("showBackground",!0),oe=V.getModel("backgroundStyle"),ot=oe.get("barBorderRadius")||0,he=[],J=this._backgroundEls||[];ee.diff(ue).add(function(fe){var we=ee.getItemModel(fe),Ne=w[$.type](ee,fe,we);if(Ie){var je=w[$.type](ee,fe),me=z($,_e,je);me.useStyle(oe.getBarItemStyle()),$.type==="cartesian2d"&&me.setShape("r",ot),he[fe]=me}if(!ee.hasValue(fe))return;if(Xe){var Ce=E[$.type](He,Ne);if(Ce){re.remove(Fe);return}}var Fe=C[$.type](fe,Ne,_e,Ee,!1,nt);ee.setItemGraphicEl(fe,Fe),re.add(Fe),I(Fe,ee,fe,we,Ne,V,_e,$.type==="polar")}).update(function(fe,we){var Ne=ee.getItemModel(fe),je=w[$.type](ee,fe,Ne);if(Ie){var me=J[we];me.useStyle(oe.getBarItemStyle()),$.type==="cartesian2d"&&me.setShape("r",ot),he[fe]=me;var Ce=w[$.type](ee,fe),Fe=W(_e,Ce,$);m.updateProps(me,{shape:Fe},Ee,fe)}var it=ue.getItemGraphicEl(we);if(!ee.hasValue(fe)){re.remove(it);return}if(Xe){var Ct=E[$.type](He,je);if(Ct){re.remove(it);return}}it?m.updateProps(it,{shape:je},Ee,fe):it=C[$.type](fe,je,_e,Ee,!0,nt),ee.setItemGraphicEl(fe,it),re.add(it),I(it,ee,fe,Ne,je,V,_e,$.type==="polar")}).remove(function(fe){var we=ue.getItemGraphicEl(fe);$.type==="cartesian2d"?we&&_(fe,Ee,we):we&&T(fe,Ee,we)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var q=0;q<he.length;++q)Y.add(he[q]);re.add(Y),this._backgroundEls=he,this._data=ee},_renderLarge:function(V,Q,G){this._clear(),F(V,this.group);var re=V.get("clip",!0)?r(V.coordinateSystem,!1,V):null;re?this.group.setClipPath(re):this.group.removeClipPath()},_incrementalRenderLarge:function(V,Q){this._removeBackground(),F(Q,this.group,!0)},dispose:A.noop,remove:function(V){this._clear(V)},_clear:function(V){var Q=this.group,G=this._data;V&&V.get("animation")&&G&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],G.eachItemGraphicEl(function(re){re.type==="sector"?T(re.dataIndex,V,re):_(re.dataIndex,V,re)})):Q.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),b=Math.max,S=Math.min,E={cartesian2d:function(V,Q){var G=Q.width<0?-1:1,re=Q.height<0?-1:1;G<0&&(Q.x+=Q.width,Q.width=-Q.width),re<0&&(Q.y+=Q.height,Q.height=-Q.height);var ee=b(Q.x,V.x),ue=S(Q.x+Q.width,V.x+V.width),$=b(Q.y,V.y),be=S(Q.y+Q.height,V.y+V.height);Q.x=ee,Q.y=$,Q.width=ue-ee,Q.height=be-$;var _e=Q.width<0||Q.height<0;return G<0&&(Q.x+=Q.width,Q.width=-Q.width),re<0&&(Q.y+=Q.height,Q.height=-Q.height),_e},polar:function(V){return!1}},C={cartesian2d:function(V,Q,G,re,ee){var ue=new m.Rect({shape:A.extend({},Q),z2:1});if(ue.name="item",re){var $=ue.shape,be=G?"height":"width",_e={};$[be]=0,_e[be]=Q[be],m[ee?"updateProps":"initProps"](ue,{shape:_e},re,V)}return ue},polar:function(V,Q,G,re,ee,ue){var $=Q.startAngle<Q.endAngle,be=!G&&ue?s:m.Sector,_e=new be({shape:A.defaults({clockwise:$},Q),z2:1});if(_e.name="item",re){var Ee=_e.shape,Xe=G?"r":"endAngle",He={};Ee[Xe]=G?0:Q.startAngle,He[Xe]=Q[Xe],m[ee?"updateProps":"initProps"](_e,{shape:He},re,V)}return _e}};function _(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function T(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{r:G.shape.r0}},Q,V,function(){G.parent&&G.parent.remove(G)})}var w={cartesian2d:function(V,Q,G){var re=V.getItemLayout(Q),ee=G?R(G,re):0,ue=re.width>0?1:-1,$=re.height>0?1:-1;return{x:re.x+ue*ee/2,y:re.y+$*ee/2,width:re.width-ue*ee,height:re.height-$*ee}},polar:function(V,Q,G){var re=V.getItemLayout(Q);return{cx:re.cx,cy:re.cy,r0:re.r0,r:re.r,startAngle:re.startAngle,endAngle:re.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function I(V,Q,G,re,ee,ue,$,be){var _e=Q.getItemVisual(G,"color"),Ee=Q.getItemVisual(G,"opacity"),Xe=Q.getVisual("borderColor"),He=re.getModel("itemStyle"),nt=re.getModel("emphasis.itemStyle").getBarItemStyle();be||V.setShape("r",He.get("barBorderRadius")||0),V.useStyle(A.defaults({stroke:O(ee)?"none":Xe,fill:O(ee)?"none":_e,opacity:Ee},He.getBarItemStyle()));var Ie=re.getShallow("cursor");Ie&&V.attr("cursor",Ie);var oe=$?ee.height>0?"bottom":"top":ee.width>0?"left":"right";be||h(V.style,nt,re,_e,ue,G,oe),O(ee)&&(nt.fill=nt.stroke="none"),m.setHoverStyle(V,nt)}function R(V,Q){var G=V.get(c)||0,re=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),ee=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,re,ee)}var M=i.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,re=this.__startPoint,ee=this.__baseDimIdx,ue=0;ue<G.length;ue+=2)re[ee]=G[ue+ee],V.moveTo(re[0],re[1]),V.lineTo(G[ue],G[ue+1])}});function F(V,Q,G){var re=V.getData(),ee=[],ue=re.getLayout("valueAxisHorizontal")?1:0;ee[1-ue]=re.getLayout("valueAxisStart");var $=re.getLayout("largeDataIndices"),be=re.getLayout("barWidth"),_e=V.getModel("backgroundStyle"),Ee=V.get("showBackground",!0);if(Ee){var Xe=re.getLayout("largeBackgroundPoints"),He=[];He[1-ue]=re.getLayout("backgroundStart");var nt=new M({shape:{points:Xe},incremental:!!G,__startPoint:He,__baseDimIdx:ue,__largeDataIndices:$,__barWidth:be,silent:!0,z2:0});j(nt,_e,re),Q.add(nt)}var Ie=new M({shape:{points:re.getLayout("largePoints")},incremental:!!G,__startPoint:ee,__baseDimIdx:ue,__largeDataIndices:$,__barWidth:be});Q.add(Ie),B(Ie,V,re),Ie.seriesIndex=V.seriesIndex,V.get("silent")||(Ie.on("mousedown",P),Ie.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 re=V.__baseDimIdx,ee=1-re,ue=V.shape.points,$=V.__largeDataIndices,be=Math.abs(V.__barWidth/2),_e=V.__startPoint[ee];d[0]=Q,d[1]=G;for(var Ee=d[re],Xe=d[1-re],He=Ee-be,nt=Ee+be,Ie=0,oe=ue.length/2;Ie<oe;Ie++){var ot=Ie*2,he=ue[ot+re],J=ue[ot+ee];if(he>=He&&he<=nt&&(_e<=J?Xe>=_e&&Xe<=J:Xe>=J&&Xe<=_e))return $[Ie]}return-1}function B(V,Q,G){var re=G.getVisual("borderColor")||G.getVisual("color"),ee=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(ee),V.style.fill=null,V.style.stroke=re,V.style.lineWidth=G.getLayout("barWidth")}function j(V,Q,G){var re=Q.get("borderColor")||Q.get("color"),ee=Q.getItemStyle(["color","borderColor"]);V.useStyle(ee),V.style.fill=null,V.style.stroke=re,V.style.lineWidth=G.getLayout("barWidth")}function W(V,Q,G){var re,ee=G.type==="polar";return ee?re=G.getArea():re=G.grid.getRect(),ee?{cx:re.cx,cy:re.cy,r0:V?re.r0:Q.r0,r:V?re.r:Q.r,startAngle:V?Q.startAngle:0,endAngle:V?Q.endAngle:Math.PI*2}:{x:V?Q.x:re.x,y:V?re.y:Q.y,width:V?Q.width:re.width,height:V?re.height:Q.height}}function z(V,Q,G){var re=V.type==="polar"?m.Sector:m.Rect;return new re({shape:W(Q,G,V),silent:!0,z2:0})}k.exports=v},ZCgT:function(k,D,n){var y=n("tLB3"),p=1/0,x=17976931348623157e292;function A(m){if(!m)return m===0?m:0;if(m=y(m),m===p||m===-p){var f=m<0?-1:1;return f*x}return m===m?m:0}k.exports=A},ZLWo:function(k,D,n){"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,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("2oIt")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="UpOutlined";var i=A.forwardRef(a);D.default=i},ZTPi:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n("rePB"),h=n("ODXe"),u=n("Ff2n"),a=n("VTBJ"),i=n("TSYQ"),t=n.n(i),o=n("Zm9Q"),e=n("6cGi"),l=n("KQm4"),r=n("xEkU"),s=n.n(r),c=n("1OyB"),d=n("vuIU"),g=n("Ji7U"),v=n("LK+K"),b=n("m+aA"),S=n("Kwbf"),E=n("c+Xe"),C=n("bdgK"),_="rc-observer-key",T=function(tn){Object(g.a)(Vn,tn);var En=Object(v.a)(Vn);function Vn(){var Wt;return Object(c.a)(this,Vn),Wt=En.apply(this,arguments),Wt.resizeObserver=null,Wt.childNode=null,Wt.currentElement=null,Wt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Wt.onResize=function(Et){var kt=Wt.props.onResize,Bt=Et[0].target,Kt=Bt.getBoundingClientRect(),Ot=Kt.width,sr=Kt.height,fr=Bt.offsetWidth,vr=Bt.offsetHeight,Rr=Math.floor(Ot),Kn=Math.floor(sr);if(Wt.state.width!==Rr||Wt.state.height!==Kn||Wt.state.offsetWidth!==fr||Wt.state.offsetHeight!==vr){var Dn={width:Rr,height:Kn,offsetWidth:fr,offsetHeight:vr};Wt.setState(Dn),kt&&Promise.resolve().then(function(){kt(Object(a.a)(Object(a.a)({},Dn),{},{offsetWidth:fr,offsetHeight:vr}))})}},Wt.setChildNode=function(Et){Wt.childNode=Et},Wt}return Object(d.a)(Vn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Et=this.props.disabled;if(Et){this.destroyObserver();return}var kt=Object(b.a)(this.childNode||this),Bt=kt!==this.currentElement;Bt&&(this.destroyObserver(),this.currentElement=kt),!this.resizeObserver&&kt&&(this.resizeObserver=new C.default(this.onResize),this.resizeObserver.observe(kt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Et=this.props.children,kt=Object(o.a)(Et);if(kt.length>1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(kt.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Bt=kt[0];if(m.isValidElement(Bt)&&Object(E.c)(Bt)){var Kt=Bt.ref;kt[0]=m.cloneElement(Bt,{ref:Object(E.a)(Kt,this.setChildNode)})}return kt.length===1?kt[0]:kt.map(function(Ot,sr){return!m.isValidElement(Ot)||"key"in Ot&&Ot.key!==null?Ot:m.cloneElement(Ot,{key:"".concat(_,"-").concat(sr)})})}}]),Vn}(m.Component);T.displayName="ResizeObserver";var w=T;function O(tn){var En=Object(m.useRef)(),Vn=Object(m.useRef)(!1);function Wt(){for(var Et=arguments.length,kt=new Array(Et),Bt=0;Bt<Et;Bt++)kt[Bt]=arguments[Bt];Vn.current||(s.a.cancel(En.current),En.current=s()(function(){tn.apply(void 0,kt)}))}return Object(m.useEffect)(function(){return function(){Vn.current=!0,s.a.cancel(En.current)}},[]),Wt}function I(tn){var En=Object(m.useRef)([]),Vn=Object(m.useState)({}),Wt=Object(h.a)(Vn,2),Et=Wt[1],kt=Object(m.useRef)(typeof tn=="function"?tn():tn),Bt=O(function(){var Ot=kt.current;En.current.forEach(function(sr){Ot=sr(Ot)}),En.current=[],kt.current=Ot,Et({})});function Kt(Ot){En.current.push(Ot),Bt()}return[kt.current,Kt]}var R=n("4IlW");function M(tn,En){var Vn,Wt=tn.prefixCls,Et=tn.id,kt=tn.active,Bt=tn.rtl,Kt=tn.tab,Ot=Kt.key,sr=Kt.tab,fr=Kt.disabled,vr=Kt.closeIcon,Rr=tn.tabBarGutter,Kn=tn.tabPosition,Dn=tn.closable,ui=tn.renderWrapper,pn=tn.removeAriaLabel,Br=tn.editable,Tn=tn.onClick,zn=tn.onRemove,Qn=tn.onFocus,ii="".concat(Wt,"-tab");m.useEffect(function(){return zn},[]);var xi={};Kn==="top"||Kn==="bottom"?xi[Bt?"marginLeft":"marginRight"]=Rr:xi.marginBottom=Rr;var Di=Br&&Dn!==!1&&!fr;function Li(ia){if(fr)return;Tn(ia)}function oa(ia){ia.preventDefault(),ia.stopPropagation(),Br.onEdit("remove",{key:Ot,event:ia})}var ma=m.createElement("div",{key:Ot,ref:En,className:t()(ii,(Vn={},Object(f.a)(Vn,"".concat(ii,"-with-remove"),Di),Object(f.a)(Vn,"".concat(ii,"-active"),kt),Object(f.a)(Vn,"".concat(ii,"-disabled"),fr),Vn)),style:xi,onClick:Li},m.createElement("div",{role:"tab","aria-selected":kt,id:Et&&"".concat(Et,"-tab-").concat(Ot),className:"".concat(ii,"-btn"),"aria-controls":Et&&"".concat(Et,"-panel-").concat(Ot),"aria-disabled":fr,tabIndex:fr?null:0,onClick:function(ba){ba.stopPropagation(),Li(ba)},onKeyDown:function(ba){[R.a.SPACE,R.a.ENTER].includes(ba.which)&&(ba.preventDefault(),Li(ba))},onFocus:Qn},sr),Di&&m.createElement("button",{type:"button","aria-label":pn||"remove",tabIndex:0,className:"".concat(ii,"-remove"),onClick:function(ba){ba.stopPropagation(),oa(ba)}},vr||Br.removeIcon||"\xD7"));return ui&&(ma=ui(ma)),ma}var F=m.forwardRef(M),P={width:0,height:0,left:0,top:0};function X(tn,En,Vn){return Object(m.useMemo)(function(){for(var Wt,Et=new Map,kt=En.get((Wt=tn[0])===null||Wt===void 0?void 0:Wt.key)||P,Bt=kt.left+kt.width,Kt=0;Kt<tn.length;Kt+=1){var Ot=tn[Kt].key,sr=En.get(Ot);if(!sr){var fr;sr=En.get((fr=tn[Kt-1])===null||fr===void 0?void 0:fr.key)||P}var vr=Et.get(Ot)||Object(a.a)({},sr);vr.right=Bt-vr.left-vr.width,Et.set(Ot,vr)}return Et},[tn.map(function(Wt){return Wt.key}).join("_"),En,Vn])}var B={width:0,height:0,left:0,top:0,right:0};function j(tn,En,Vn,Wt,Et){var kt=Et.tabs,Bt=Et.tabPosition,Kt=Et.rtl,Ot,sr,fr;["top","bottom"].includes(Bt)?(Ot="width",sr=Kt?"right":"left",fr=Math.abs(En.left)):(Ot="height",sr="top",fr=-En.top);var vr=En[Ot],Rr=Vn[Ot],Kn=Wt[Ot],Dn=vr;return Rr+Kn>vr&&(Dn=vr-Kn),Object(m.useMemo)(function(){if(!kt.length)return[0,0];for(var ui=kt.length,pn=ui,Br=0;Br<ui;Br+=1){var Tn=tn.get(kt[Br].key)||B;if(Tn[sr]+Tn[Ot]>fr+Dn){pn=Br-1;break}}for(var zn=0,Qn=ui-1;Qn>=0;Qn-=1){var ii=tn.get(kt[Qn].key)||B;if(ii[sr]<fr){zn=Qn+1;break}}return[zn,pn]},[tn,fr,Dn,Bt,kt.map(function(ui){return ui.key}).join("_"),Kt])}var W=n("wx14"),z=n("JX7q"),V=n("I8Z2"),Q=n("bT9E"),G=n("2GS6"),re=n("Gytx"),ee=n.n(re),ue=n("U8pU"),$=/iPhone/i,be=/iPod/i,_e=/iPad/i,Ee=/\bAndroid(?:.+)Mobile\b/i,Xe=/Android/i,He=/\bAndroid(?:.+)SD4930UR\b/i,nt=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Ie=/Windows Phone/i,oe=/\bWindows(?:.+)ARM\b/i,ot=/BlackBerry/i,he=/BB10/i,J=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,q=/Mobile(?:.+)Firefox\b/i;function fe(tn,En){return tn.test(En)}function we(tn){var En=tn||(typeof navigator!="undefined"?navigator.userAgent:""),Vn=(En||"").split("[FBAN");if(typeof Vn[1]!="undefined"){var Wt=Vn,Et=Object(h.a)(Wt,1);En=Et[0]}if(Vn=En.split("Twitter"),typeof Vn[1]!="undefined"){var kt=Vn,Bt=Object(h.a)(kt,1);En=Bt[0]}var Kt={apple:{phone:fe($,En)&&!fe(Ie,En),ipod:fe(be,En),tablet:!fe($,En)&&fe(_e,En)&&!fe(Ie,En),device:(fe($,En)||fe(be,En)||fe(_e,En))&&!fe(Ie,En)},amazon:{phone:fe(He,En),tablet:!fe(He,En)&&fe(nt,En),device:fe(He,En)||fe(nt,En)},android:{phone:!fe(Ie,En)&&fe(He,En)||!fe(Ie,En)&&fe(Ee,En),tablet:!fe(Ie,En)&&!fe(He,En)&&!fe(Ee,En)&&(fe(nt,En)||fe(Xe,En)),device:!fe(Ie,En)&&(fe(He,En)||fe(nt,En)||fe(Ee,En)||fe(Xe,En))||fe(/\bokhttp\b/i,En)},windows:{phone:fe(Ie,En),tablet:fe(oe,En),device:fe(Ie,En)||fe(oe,En)},other:{blackberry:fe(ot,En),blackberry10:fe(he,En),opera:fe(J,En),firefox:fe(q,En),chrome:fe(Y,En),device:fe(ot,En)||fe(he,En)||fe(J,En)||fe(q,En)||fe(Y,En)},any:null,phone:null,tablet:null};return Kt.any=Kt.apple.device||Kt.android.device||Kt.windows.device||Kt.other.device,Kt.phone=Kt.apple.phone||Kt.android.phone||Kt.windows.phone,Kt.tablet=Kt.apple.tablet||Kt.android.tablet||Kt.windows.tablet,Kt}var Ne=Object(a.a)(Object(a.a)({},we()),{},{isMobile:we}),je=Ne;function me(){}function Ce(tn,En,Vn){var Wt=En||"";return tn.key||"".concat(Wt,"item_").concat(Vn)}function Fe(tn){return"".concat(tn,"-menu-")}function it(tn,En){var Vn=-1;m.Children.forEach(tn,function(Wt){Vn+=1,Wt&&Wt.type&&Wt.type.isMenuItemGroup?m.Children.forEach(Wt.props.children,function(Et){Vn+=1,En(Et,Vn)}):En(Wt,Vn)})}function Ct(tn,En,Vn){if(!tn||Vn.find)return;m.Children.forEach(tn,function(Wt){if(Wt){var Et=Wt.type;if(!Et||!(Et.isSubMenu||Et.isMenuItem||Et.isMenuItemGroup))return;En.indexOf(Wt.key)!==-1?Vn.find=!0:Wt.props.children&&Ct(Wt.props.children,En,Vn)}})}var mt=["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"],Ve=function(En){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=En&&typeof En.getBoundingClientRect=="function"&&En.getBoundingClientRect().width;if(Wt){if(Vn){var Et=getComputedStyle(En),kt=Et.marginLeft,Bt=Et.marginRight;Wt+=+kt.replace("px","")+ +Bt.replace("px","")}Wt=+Wt.toFixed(6)}return Wt||0},or=function(En,Vn,Wt){En&&Object(ue.a)(En.style)==="object"&&(En.style[Vn]=Wt)},dt=function(){return je.any},Yt=n("i8i4"),hr=n("uciX"),Gt=n("wgJM"),Pt=n("8XRh"),Xt={adjustX:1,adjustY:1},Ge={topLeft:{points:["bl","tl"],overflow:Xt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Xt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Xt,offset:[4,0]}},pe={topLeft:{points:["bl","tl"],overflow:Xt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Xt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Xt,offset:[4,0]}},se=Ge,lt=0,Ze={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},de=function(En,Vn,Wt){var Et=Fe(Vn),kt=En.getState();En.setState({defaultActiveFirst:Object(a.a)(Object(a.a)({},kt.defaultActiveFirst),{},Object(f.a)({},Et,Wt))})},_t=function(tn){Object(g.a)(Vn,tn);var En=Object(v.a)(Vn);function Vn(Wt){var Et;Object(c.a)(this,Vn),Et=En.call(this,Wt),Et.onDestroy=function(fr){Et.props.onDestroy(fr)},Et.onKeyDown=function(fr){var vr=fr.keyCode,Rr=Et.menuInstance,Kn=Et.props.store,Dn=Et.getVisible();if(vr===R.a.ENTER)return Et.onTitleClick(fr),de(Kn,Et.props.eventKey,!0),!0;if(vr===R.a.RIGHT)return Dn?Rr.onKeyDown(fr):(Et.triggerOpenChange(!0),de(Kn,Et.props.eventKey,!0)),!0;if(vr===R.a.LEFT){var ui;if(Dn)ui=Rr.onKeyDown(fr);else return;return ui||(Et.triggerOpenChange(!1),ui=!0),ui}return Dn&&(vr===R.a.UP||vr===R.a.DOWN)?Rr.onKeyDown(fr):void 0},Et.onOpenChange=function(fr){Et.props.onOpenChange(fr)},Et.onPopupVisibleChange=function(fr){Et.triggerOpenChange(fr,fr?"mouseenter":"mouseleave")},Et.onMouseEnter=function(fr){var vr=Et.props,Rr=vr.eventKey,Kn=vr.onMouseEnter,Dn=vr.store;de(Dn,Et.props.eventKey,!1),Kn({key:Rr,domEvent:fr})},Et.onMouseLeave=function(fr){var vr=Et.props,Rr=vr.parentMenu,Kn=vr.eventKey,Dn=vr.onMouseLeave;Rr.subMenuInstance=Object(z.a)(Et),Dn({key:Kn,domEvent:fr})},Et.onTitleMouseEnter=function(fr){var vr=Et.props,Rr=vr.eventKey,Kn=vr.onItemHover,Dn=vr.onTitleMouseEnter;Kn({key:Rr,hover:!0}),Dn({key:Rr,domEvent:fr})},Et.onTitleMouseLeave=function(fr){var vr=Et.props,Rr=vr.parentMenu,Kn=vr.eventKey,Dn=vr.onItemHover,ui=vr.onTitleMouseLeave;Rr.subMenuInstance=Object(z.a)(Et),Dn({key:Kn,hover:!1}),ui({key:Kn,domEvent:fr})},Et.onTitleClick=function(fr){var vr=Object(z.a)(Et),Rr=vr.props;if(Rr.onTitleClick({key:Rr.eventKey,domEvent:fr}),Rr.triggerSubMenuAction==="hover")return;Et.triggerOpenChange(!Et.getVisible(),"click"),de(Rr.store,Et.props.eventKey,!1)},Et.onSubMenuClick=function(fr){typeof Et.props.onClick=="function"&&Et.props.onClick(Et.addKeyPath(fr))},Et.onSelect=function(fr){Et.props.onSelect(fr)},Et.onDeselect=function(fr){Et.props.onDeselect(fr)},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.getVisible=function(){return Et.state.isOpen},Et.getMode=function(){return Et.state.mode},Et.saveMenuInstance=function(fr){Et.menuInstance=fr},Et.addKeyPath=function(fr){return Object(a.a)(Object(a.a)({},fr),{},{keyPath:(fr.keyPath||[]).concat(Et.props.eventKey)})},Et.triggerOpenChange=function(fr,vr){var Rr=Et.props.eventKey,Kn=function(){Et.onOpenChange({key:Rr,item:Object(z.a)(Et),trigger:vr,open:fr})};vr==="mouseenter"?Et.mouseenterTimeout=setTimeout(function(){Kn()},0):Kn()},Et.isChildrenSelected=function(){var fr={find:!1};return Ct(Et.props.children,Et.props.selectedKeys,fr),fr.find},Et.isInlineMode=function(){return Et.getMode()==="inline"},Et.adjustWidth=function(){if(!Et.subMenuTitle||!Et.menuInstance)return;var fr=Yt.findDOMNode(Et.menuInstance);if(fr.offsetWidth>=Et.subMenuTitle.offsetWidth)return;fr.style.minWidth="".concat(Et.subMenuTitle.offsetWidth,"px")},Et.saveSubMenuTitle=function(fr){Et.subMenuTitle=fr},Et.getBaseProps=function(){var fr=Object(z.a)(Et),vr=fr.props,Rr=Et.getMode();return{mode:Rr==="horizontal"?"vertical":Rr,visible:Et.getVisible(),level:vr.level+1,inlineIndent:vr.inlineIndent,focusable:!1,onClick:Et.onSubMenuClick,onSelect:Et.onSelect,onDeselect:Et.onDeselect,onDestroy:Et.onDestroy,selectedKeys:vr.selectedKeys,eventKey:"".concat(vr.eventKey,"-menu-"),openKeys:vr.openKeys,motion:vr.motion,onOpenChange:Et.onOpenChange,subMenuOpenDelay:vr.subMenuOpenDelay,parentMenu:Object(z.a)(Et),subMenuCloseDelay:vr.subMenuCloseDelay,forceSubMenuRender:vr.forceSubMenuRender,triggerSubMenuAction:vr.triggerSubMenuAction,builtinPlacements:vr.builtinPlacements,defaultActiveFirst:vr.store.getState().defaultActiveFirst[Fe(vr.eventKey)],multiple:vr.multiple,prefixCls:vr.rootPrefixCls,id:Et.internalMenuId,manualRef:Et.saveMenuInstance,itemIcon:vr.itemIcon,expandIcon:vr.expandIcon,direction:vr.direction}},Et.getMotion=function(fr,vr){var Rr=Object(z.a)(Et),Kn=Rr.haveRendered,Dn=Et.props,ui=Dn.motion,pn=Dn.rootPrefixCls,Br=Object(a.a)(Object(a.a)({},ui),{},{leavedClassName:"".concat(pn,"-hidden"),removeOnLeave:!1,motionAppear:Kn||!vr||fr!=="inline"});return Br};var kt=Wt.store,Bt=Wt.eventKey,Kt=kt.getState(),Ot=Kt.defaultActiveFirst;Et.isRootMenu=!1;var sr=!1;return Ot&&(sr=Ot[Bt]),de(kt,Bt,sr),Et.state={mode:Wt.mode,isOpen:Wt.isOpen},Et}return Object(d.a)(Vn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Et=this,kt=this.props,Bt=kt.mode,Kt=kt.parentMenu,Ot=kt.manualRef,sr=kt.isOpen,fr=function(){Et.setState({mode:Bt,isOpen:sr})},vr=sr!==this.state.isOpen,Rr=Bt!==this.state.mode;if((Rr||vr)&&(Gt.a.cancel(this.updateStateRaf),Rr?this.updateStateRaf=Object(Gt.a)(fr):fr()),Ot&&Ot(this),Bt!=="horizontal"||!(Kt==null?void 0:Kt.isRootMenu)||!sr)return;this.minWidthTimeout=setTimeout(function(){return Et.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Et=this.props,kt=Et.onDestroy,Bt=Et.eventKey;kt&&kt(Bt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Gt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Et,kt){var Bt=this.getBaseProps();return m.createElement(ci,Object(W.a)({},Bt,{id:this.internalMenuId,className:Et,style:kt}),this.props.children)}},{key:"renderChildren",value:function(){var Et=this,kt=this.getBaseProps(),Bt=kt.mode,Kt=kt.visible,Ot=kt.forceSubMenuRender,sr=kt.direction,fr=this.getMotion(Bt,Kt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Kt||Ot,!this.haveOpened)return m.createElement("div",null);var vr=t()("".concat(kt.prefixCls,"-sub"),Object(f.a)({},"".concat(kt.prefixCls,"-rtl"),sr==="rtl"));return this.isInlineMode()?m.createElement(Pt.b,Object(W.a)({visible:kt.visible,forceRender:Ot},fr),function(Rr){var Kn=Rr.className,Dn=Rr.style,ui=t()(vr,Kn);return Et.renderPopupMenu(ui,Dn)}):this.renderPopupMenu(vr)}},{key:"render",value:function(){var Et,kt,Bt,Kt=Object(a.a)({},this.props),Ot=this.getVisible(),sr=this.getPrefixCls(),fr=this.isInlineMode(),vr=this.getMode(),Rr=t()(sr,"".concat(sr,"-").concat(vr),(Et={},Object(f.a)(Et,Kt.className,!!Kt.className),Object(f.a)(Et,this.getOpenClassName(),Ot),Object(f.a)(Et,this.getActiveClassName(),Kt.active||Ot&&!fr),Object(f.a)(Et,this.getDisabledClassName(),Kt.disabled),Object(f.a)(Et,this.getSelectedClassName(),this.isChildrenSelected()),Et));this.internalMenuId||(Kt.eventKey?this.internalMenuId="".concat(Kt.eventKey,"$Menu"):(lt+=1,this.internalMenuId="$__$".concat(lt,"$Menu")));var Kn={},Dn={},ui={};Kt.disabled||(Kn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Dn={onClick:this.onTitleClick},ui={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var pn={},Br=Kt.direction,Tn=Br==="rtl";fr&&(Tn?pn.paddingRight=Kt.inlineIndent*Kt.level:pn.paddingLeft=Kt.inlineIndent*Kt.level);var zn={};this.getVisible()&&(zn={"aria-owns":this.internalMenuId});var Qn=null;vr!=="horizontal"&&(Qn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Qn=m.createElement(this.props.expandIcon,Object(a.a)({},this.props))));var ii=m.createElement("div",Object(W.a)({ref:this.saveSubMenuTitle,style:pn,className:"".concat(sr,"-title"),role:"button"},ui,Dn,{"aria-expanded":Ot},zn,{"aria-haspopup":"true",title:typeof Kt.title=="string"?Kt.title:void 0}),Kt.title,Qn||m.createElement("i",{className:"".concat(sr,"-arrow")})),xi=this.renderChildren(),Di=((kt=Kt.parentMenu)===null||kt===void 0?void 0:kt.isRootMenu)?Kt.parentMenu.props.getPopupContainer:function(wr){return wr.parentNode},Li=Ze[vr],oa=Kt.popupOffset?{offset:Kt.popupOffset}:{},ma=t()((Bt={},Object(f.a)(Bt,Kt.popupClassName,Kt.popupClassName&&!fr),Object(f.a)(Bt,"".concat(sr,"-rtl"),Tn),Bt)),ia=Kt.disabled,ba=Kt.triggerSubMenuAction,vi=Kt.subMenuOpenDelay,Ln=Kt.forceSubMenuRender,Fi=Kt.subMenuCloseDelay,ha=Kt.builtinPlacements;mt.forEach(function(wr){return delete Kt[wr]}),delete Kt.onClick;var ea=Tn?Object(a.a)(Object(a.a)({},pe),ha):Object(a.a)(Object(a.a)({},Ge),ha);delete Kt.direction;var aa=this.getBaseProps(),Ir=fr?null:this.getMotion(aa.mode,aa.visible);return m.createElement("li",Object(W.a)({},Kt,Kn,{className:Rr,role:"menuitem"}),m.createElement(hr.a,{prefixCls:sr,popupClassName:t()("".concat(sr,"-popup"),ma),getPopupContainer:Di,builtinPlacements:ea,popupPlacement:Li,popupVisible:fr?!1:Ot,popupAlign:oa,popup:fr?null:xi,action:ia||fr?[]:[ba],mouseEnterDelay:vi,mouseLeaveDelay:Fi,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ln,popupMotion:Ir},ii),fr?xi:null)}}]),Vn}(m.Component);_t.defaultProps={onMouseEnter:me,onMouseLeave:me,onTitleMouseEnter:me,onTitleMouseLeave:me,onTitleClick:me,manualRef:me,mode:"vertical",title:""};var er=Object(V.b)(function(tn,En){var Vn=tn.openKeys,Wt=tn.activeKey,Et=tn.selectedKeys,kt=En.eventKey,Bt=En.subMenuKey;return{isOpen:Vn.indexOf(kt)>-1,active:Wt[Bt]===kt,selectedKeys:Et}})(_t);er.isSubMenu=!0;var yt=er,Ar="menuitem-overflowed",Sr=.5,Cn=function(tn){Object(g.a)(Vn,tn);var En=Object(v.a)(Vn);function Vn(){var Wt;return Object(c.a)(this,Vn),Wt=En.apply(this,arguments),Wt.resizeObserver=null,Wt.mutationObserver=null,Wt.originalTotalWidth=0,Wt.overflowedItems=[],Wt.menuItemSizes=[],Wt.cancelFrameId=null,Wt.state={lastVisibleIndex:void 0},Wt.childRef=m.createRef(),Wt.getMenuItemNodes=function(){var Et=Wt.props.prefixCls,kt=Wt.childRef.current;return kt?[].slice.call(kt.children).filter(function(Bt){return Bt.className.split(" ").indexOf("".concat(Et,"-overflowed-submenu"))<0}):[]},Wt.getOverflowedSubMenuItem=function(Et,kt,Bt){var Kt=Wt.props,Ot=Kt.overflowedIndicator,sr=Kt.level,fr=Kt.mode,vr=Kt.prefixCls,Rr=Kt.theme;if(sr!==1||fr!=="horizontal")return null;var Kn=Wt.props.children[0],Dn=Kn.props,ui=Dn.children,pn=Dn.title,Br=Dn.style,Tn=Object(u.a)(Dn,["children","title","style"]),zn=Object(a.a)({},Br),Qn="".concat(Et,"-overflowed-indicator"),ii="".concat(Et,"-overflowed-indicator");kt.length===0&&Bt!==!0?zn=Object(a.a)(Object(a.a)({},zn),{},{display:"none"}):Bt&&(zn=Object(a.a)(Object(a.a)({},zn),{},{visibility:"hidden",position:"absolute"}),Qn="".concat(Qn,"-placeholder"),ii="".concat(ii,"-placeholder"));var xi=Rr?"".concat(vr,"-").concat(Rr):"",Di={};return mt.forEach(function(Li){Tn[Li]!==void 0&&(Di[Li]=Tn[Li])}),m.createElement(yt,Object(W.a)({title:Ot,className:"".concat(vr,"-overflowed-submenu"),popupClassName:xi},Di,{key:Qn,eventKey:ii,disabled:!1,style:zn}),kt)},Wt.setChildrenWidthAndResize=function(){if(Wt.props.mode!=="horizontal")return;var Et=Wt.childRef.current;if(!Et)return;var kt=Et.children;if(!kt||kt.length===0)return;var Bt=Et.children[kt.length-1];or(Bt,"display","inline-block");var Kt=Wt.getMenuItemNodes(),Ot=Kt.filter(function(sr){return sr.className.split(" ").indexOf(Ar)>=0});Ot.forEach(function(sr){or(sr,"display","inline-block")}),Wt.menuItemSizes=Kt.map(function(sr){return Ve(sr,!0)}),Ot.forEach(function(sr){or(sr,"display","none")}),Wt.overflowedIndicatorWidth=Ve(Et.children[Et.children.length-1],!0),Wt.originalTotalWidth=Wt.menuItemSizes.reduce(function(sr,fr){return sr+fr},0),Wt.handleResize(),or(Bt,"display","none")},Wt.handleResize=function(){if(Wt.props.mode!=="horizontal")return;var Et=Wt.childRef.current;if(!Et)return;var kt=Ve(Et);Wt.overflowedItems=[];var Bt=0,Kt;Wt.originalTotalWidth>kt+Sr&&(Kt=-1,Wt.menuItemSizes.forEach(function(Ot){Bt+=Ot,Bt+Wt.overflowedIndicatorWidth<=kt&&(Kt+=1)})),Wt.setState({lastVisibleIndex:Kt})},Wt}return Object(d.a)(Vn,[{key:"componentDidMount",value:function(){var Et=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var kt=this.childRef.current;if(!kt)return;this.resizeObserver=new C.default(function(Bt){Bt.forEach(function(){var Kt=Et.cancelFrameId;cancelAnimationFrame(Kt),Et.cancelFrameId=requestAnimationFrame(Et.setChildrenWidthAndResize)})}),[].slice.call(kt.children).concat(kt).forEach(function(Bt){Et.resizeObserver.observe(Bt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Et.resizeObserver.disconnect(),[].slice.call(kt.children).concat(kt).forEach(function(Bt){Et.resizeObserver.observe(Bt)}),Et.setChildrenWidthAndResize()}),this.mutationObserver.observe(kt,{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 kt=this,Bt=this.state.lastVisibleIndex;return(Et||[]).reduce(function(Kt,Ot,sr){var fr=Ot;if(kt.props.mode==="horizontal"){var vr=kt.getOverflowedSubMenuItem(Ot.props.eventKey,[]);Bt!==void 0&&kt.props.className.indexOf("".concat(kt.props.prefixCls,"-root"))!==-1&&(sr>Bt&&(fr=m.cloneElement(Ot,{style:{display:"none"},eventKey:"".concat(Ot.props.eventKey,"-hidden"),className:"".concat(Ar)})),sr===Bt+1&&(kt.overflowedItems=Et.slice(Bt+1).map(function(Kn){return m.cloneElement(Kn,{key:Kn.props.eventKey,mode:"vertical-left"})}),vr=kt.getOverflowedSubMenuItem(Ot.props.eventKey,kt.overflowedItems)));var Rr=[].concat(Object(l.a)(Kt),[vr,fr]);return sr===Et.length-1&&Rr.push(kt.getOverflowedSubMenuItem(Ot.props.eventKey,[],!0)),Rr}return[].concat(Object(l.a)(Kt),[fr])},[])}},{key:"render",value:function(){var Et=this.props,kt=Et.visible,Bt=Et.prefixCls,Kt=Et.overflowedIndicator,Ot=Et.mode,sr=Et.level,fr=Et.tag,vr=Et.children,Rr=Et.theme,Kn=Object(u.a)(Et,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Dn=fr;return m.createElement(Dn,Object(W.a)({ref:this.childRef},Kn),this.renderChildren(vr))}}]),Vn}(m.Component);Cn.defaultProps={tag:"div",className:""};var mr=Cn;function Pr(tn){return tn.length?tn.every(function(En){return!!En.props.disabled}):!0}function gr(tn,En,Vn){var Wt=tn.getState();tn.setState({activeKey:Object(a.a)(Object(a.a)({},Wt.activeKey),{},Object(f.a)({},En,Vn))})}function Jt(tn){return tn.eventKey||"0-menu-"}function Dt(tn,En){var Vn=En,Wt=tn.children,Et=tn.eventKey;if(Vn){var kt;if(it(Wt,function(Bt,Kt){Bt&&Bt.props&&!Bt.props.disabled&&Vn===Ce(Bt,Et,Kt)&&(kt=!0)}),kt)return Vn}return Vn=null,tn.defaultActiveFirst&&it(Wt,function(Bt,Kt){!Vn&&Bt&&!Bt.props.disabled&&(Vn=Ce(Bt,Et,Kt))}),Vn}function dn(tn){if(!tn)return;var En=this.instanceArray.indexOf(tn);En!==-1?this.instanceArray[En]=tn:this.instanceArray.push(tn)}var Fn=function(tn){Object(g.a)(Vn,tn);var En=Object(v.a)(Vn);function Vn(Wt){var Et;return Object(c.a)(this,Vn),Et=En.call(this,Wt),Et.onKeyDown=function(kt,Bt){var Kt=kt.keyCode,Ot;if(Et.getFlatInstanceArray().forEach(function(fr){fr&&fr.props.active&&fr.onKeyDown&&(Ot=fr.onKeyDown(kt))}),Ot)return 1;var sr=null;return(Kt===R.a.UP||Kt===R.a.DOWN)&&(sr=Et.step(Kt===R.a.UP?-1:1)),sr?(kt.preventDefault(),gr(Et.props.store,Jt(Et.props),sr.props.eventKey),typeof Bt=="function"&&Bt(sr),1):void 0},Et.onItemHover=function(kt){var Bt=kt.key,Kt=kt.hover;gr(Et.props.store,Jt(Et.props),Kt?Bt:null)},Et.onDeselect=function(kt){Et.props.onDeselect(kt)},Et.onSelect=function(kt){Et.props.onSelect(kt)},Et.onClick=function(kt){Et.props.onClick(kt)},Et.onOpenChange=function(kt){Et.props.onOpenChange(kt)},Et.onDestroy=function(kt){Et.props.onDestroy(kt)},Et.getFlatInstanceArray=function(){return Et.instanceArray},Et.step=function(kt){var Bt=Et.getFlatInstanceArray(),Kt=Et.props.store.getState().activeKey[Jt(Et.props)],Ot=Bt.length;if(!Ot)return null;kt<0&&(Bt=Bt.concat().reverse());var sr=-1;if(Bt.every(function(Kn,Dn){return Kn&&Kn.props.eventKey===Kt?(sr=Dn,!1):!0}),!Et.props.defaultActiveFirst&&sr!==-1&&Pr(Bt.slice(sr,Ot-1)))return;var fr=(sr+1)%Ot,vr=fr;do{var Rr=Bt[vr];if(!Rr||Rr.props.disabled)vr=(vr+1)%Ot;else return Rr}while(vr!==fr);return null},Et.renderCommonMenuItem=function(kt,Bt,Kt){var Ot=Et.props.store.getState(),sr=Object(z.a)(Et),fr=sr.props,vr=Ce(kt,fr.eventKey,Bt),Rr=kt.props;if(!Rr||typeof kt.type=="string")return kt;var Kn=vr===Ot.activeKey,Dn=Object(a.a)(Object(a.a)({mode:Rr.mode||fr.mode,level:fr.level,inlineIndent:fr.inlineIndent,renderMenuItem:Et.renderMenuItem,rootPrefixCls:fr.prefixCls,index:Bt,parentMenu:fr.parentMenu,manualRef:Rr.disabled?void 0:Object(G.a)(kt.ref,dn.bind(Object(z.a)(Et))),eventKey:vr,active:!Rr.disabled&&Kn,multiple:fr.multiple,onClick:function(pn){(Rr.onClick||me)(pn),Et.onClick(pn)},onItemHover:Et.onItemHover,motion:fr.motion,subMenuOpenDelay:fr.subMenuOpenDelay,subMenuCloseDelay:fr.subMenuCloseDelay,forceSubMenuRender:fr.forceSubMenuRender,onOpenChange:Et.onOpenChange,onDeselect:Et.onDeselect,onSelect:Et.onSelect,builtinPlacements:fr.builtinPlacements,itemIcon:Rr.itemIcon||Et.props.itemIcon,expandIcon:Rr.expandIcon||Et.props.expandIcon},Kt),{},{direction:fr.direction});return(fr.mode==="inline"||dt())&&(Dn.triggerSubMenuAction="click"),m.cloneElement(kt,Object(a.a)(Object(a.a)({},Dn),{},{key:vr||Bt}))},Et.renderMenuItem=function(kt,Bt,Kt){if(!kt)return null;var Ot=Et.props.store.getState(),sr={openKeys:Ot.openKeys,selectedKeys:Ot.selectedKeys,triggerSubMenuAction:Et.props.triggerSubMenuAction,subMenuKey:Kt};return Et.renderCommonMenuItem(kt,Bt,sr)},Wt.store.setState({activeKey:Object(a.a)(Object(a.a)({},Wt.store.getState().activeKey),{},Object(f.a)({},Wt.eventKey,Dt(Wt,Wt.activeKey)))}),Et.instanceArray=[],Et}return Object(d.a)(Vn,[{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||!ee()(this.props.style,Et.style)}},{key:"componentDidUpdate",value:function(Et){var kt=this.props,Bt="activeKey"in kt?kt.activeKey:kt.store.getState().activeKey[Jt(kt)],Kt=Dt(kt,Bt);if(Kt!==Bt)gr(kt.store,Jt(kt),Kt);else if("activeKey"in Et){var Ot=Dt(Et,Et.activeKey);Kt!==Ot&&gr(kt.store,Jt(kt),Kt)}}},{key:"render",value:function(){var Et=this,kt=Object(W.a)({},this.props);this.instanceArray=[];var Bt=t()(kt.prefixCls,kt.className,"".concat(kt.prefixCls,"-").concat(kt.mode)),Kt={className:Bt,role:kt.role||"menu"};kt.id&&(Kt.id=kt.id),kt.focusable&&(Kt.tabIndex=0,Kt.onKeyDown=this.onKeyDown);var Ot=kt.prefixCls,sr=kt.eventKey,fr=kt.visible,vr=kt.level,Rr=kt.mode,Kn=kt.overflowedIndicator,Dn=kt.theme;return mt.forEach(function(ui){return delete kt[ui]}),delete kt.onClick,m.createElement(mr,Object(W.a)({},kt,{prefixCls:Ot,mode:Rr,tag:"ul",level:vr,theme:Dn,visible:fr,overflowedIndicator:Kn},Kt),Object(o.a)(kt.children).map(function(ui,pn){return Et.renderMenuItem(ui,pn,sr||"0-menu-")}))}}]),Vn}(m.Component);Fn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:me};var Zn=Object(V.b)()(Fn),ci=Zn;function Xi(tn,En,Vn){var Wt=tn.prefixCls,Et=tn.motion,kt=tn.defaultMotions,Bt=kt===void 0?{}:kt,Kt=tn.openAnimation,Ot=tn.openTransitionName,sr=En.switchingModeFromInline;if(Et)return Et;if(Object(ue.a)(Kt)==="object"&&Kt)Object(S.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Kt=="string")return{motionName:"".concat(Wt,"-open-").concat(Kt)};if(Ot)return{motionName:Ot};var fr=Bt[Vn];return fr||(sr?null:Bt.other)}var Gn=function(tn){Object(g.a)(Vn,tn);var En=Object(v.a)(Vn);function Vn(Wt){var Et;Object(c.a)(this,Vn),Et=En.call(this,Wt),Et.onSelect=function(Kt){var Ot=Object(z.a)(Et),sr=Ot.props;if(sr.selectable){var fr=Et.store.getState(),vr=fr.selectedKeys,Rr=Kt.key;sr.multiple?vr=vr.concat([Rr]):vr=[Rr],"selectedKeys"in sr||Et.store.setState({selectedKeys:vr}),sr.onSelect(Object(a.a)(Object(a.a)({},Kt),{},{selectedKeys:vr}))}},Et.onClick=function(Kt){var Ot=Et.getRealMenuMode(),sr=Object(z.a)(Et),fr=sr.store,vr=sr.props.onOpenChange;Ot!=="inline"&&!("openKeys"in Et.props)&&(fr.setState({openKeys:[]}),vr([])),Et.props.onClick(Kt)},Et.onKeyDown=function(Kt,Ot){Et.innerMenu.getWrappedInstance().onKeyDown(Kt,Ot)},Et.onOpenChange=function(Kt){var Ot=Object(z.a)(Et),sr=Ot.props,fr=Et.store.getState().openKeys.concat(),vr=!1,Rr=function(Dn){var ui=!1;if(Dn.open)ui=fr.indexOf(Dn.key)===-1,ui&&fr.push(Dn.key);else{var pn=fr.indexOf(Dn.key);ui=pn!==-1,ui&&fr.splice(pn,1)}vr=vr||ui};Array.isArray(Kt)?Kt.forEach(Rr):Rr(Kt),vr&&("openKeys"in Et.props||Et.store.setState({openKeys:fr}),sr.onOpenChange(fr))},Et.onDeselect=function(Kt){var Ot=Object(z.a)(Et),sr=Ot.props;if(sr.selectable){var fr=Et.store.getState().selectedKeys.concat(),vr=Kt.key,Rr=fr.indexOf(vr);Rr!==-1&&fr.splice(Rr,1),"selectedKeys"in sr||Et.store.setState({selectedKeys:fr}),sr.onDeselect(Object(a.a)(Object(a.a)({},Kt),{},{selectedKeys:fr}))}},Et.onMouseEnter=function(Kt){Et.restoreModeVerticalFromInline();var Ot=Et.props.onMouseEnter;Ot&&Ot(Kt)},Et.onTransitionEnd=function(Kt){var Ot=Kt.propertyName==="width"&&Kt.target===Kt.currentTarget,sr=Kt.target.className,fr=Object.prototype.toString.call(sr)==="[object SVGAnimatedString]"?sr.animVal:sr,vr=Kt.propertyName==="font-size"&&fr.indexOf("anticon")>=0;(Ot||vr)&&Et.restoreModeVerticalFromInline()},Et.setInnerMenu=function(Kt){Et.innerMenu=Kt},Et.isRootMenu=!0;var kt=Wt.defaultSelectedKeys,Bt=Wt.defaultOpenKeys;return"selectedKeys"in Wt&&(kt=Wt.selectedKeys||[]),"openKeys"in Wt&&(Bt=Wt.openKeys||[]),Et.store=Object(V.c)({selectedKeys:kt,openKeys:Bt,activeKey:{"0-menu-":Dt(Wt,Wt.activeKey)}}),Et.state={switchingModeFromInline:!1,prevProps:Wt,inlineOpenKeys:[],store:Et.store},Et}return Object(d.a)(Vn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Et){var kt=this.props,Bt=kt.siderCollapsed,Kt=kt.inlineCollapsed,Ot=kt.onOpenChange;(!Et.inlineCollapsed&&Kt||!Et.siderCollapsed&&Bt)&&Ot([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Et=this.props.collapsedWidth,kt=this.store,Bt=this.prevOpenKeys,Kt=this.getInlineCollapsed()&&(Et===0||Et==="0"||Et==="0px");Kt?(this.prevOpenKeys=kt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Bt&&(this.store.setState({openKeys:Bt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Et=this.props.mode,kt=this.state.switchingModeFromInline,Bt=this.getInlineCollapsed();return kt&&Bt?"inline":Bt?"vertical":Et}},{key:"getInlineCollapsed",value:function(){var Et=this.props,kt=Et.inlineCollapsed,Bt=Et.siderCollapsed;return Bt!==void 0?Bt:kt}},{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(a.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),kt=this.getRealMenuMode();return Et.className+=" ".concat(Et.prefixCls,"-root"),Et.direction==="rtl"&&(Et.className+=" ".concat(Et.prefixCls,"-rtl")),Et=Object(a.a)(Object(a.a)({},Et),{},{mode:kt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Xi(this.props,this.state,kt)}),delete Et.openAnimation,delete Et.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(ci,Object(W.a)({},Et,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Et,kt){var Bt=kt.prevProps,Kt=kt.store,Ot=Kt.getState(),sr={},fr={prevProps:Et};return Bt.mode==="inline"&&Et.mode!=="inline"&&(fr.switchingModeFromInline=!0),"openKeys"in Et?sr.openKeys=Et.openKeys||[]:((Et.inlineCollapsed&&!Bt.inlineCollapsed||Et.siderCollapsed&&!Bt.siderCollapsed)&&(fr.switchingModeFromInline=!0,fr.inlineOpenKeys=Ot.openKeys,sr.openKeys=[]),(!Et.inlineCollapsed&&Bt.inlineCollapsed||!Et.siderCollapsed&&Bt.siderCollapsed)&&(sr.openKeys=kt.inlineOpenKeys,fr.inlineOpenKeys=[])),Object.keys(sr).length&&Kt.setState(sr),fr}}]),Vn}(m.Component);Gn.defaultProps={selectable:!0,onClick:me,onSelect:me,onOpenChange:me,onDeselect:me,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 ei=Gn,Zt=function(tn){Object(g.a)(Vn,tn);var En=Object(v.a)(Vn);function Vn(){var Wt;return Object(c.a)(this,Vn),Wt=En.apply(this,arguments),Wt.onKeyDown=function(Et){var kt=Et.keyCode;return kt===R.a.ENTER?(Wt.onClick(Et),!0):void 0},Wt.onMouseLeave=function(Et){var kt=Wt.props,Bt=kt.eventKey,Kt=kt.onItemHover,Ot=kt.onMouseLeave;Kt({key:Bt,hover:!1}),Ot({key:Bt,domEvent:Et})},Wt.onMouseEnter=function(Et){var kt=Wt.props,Bt=kt.eventKey,Kt=kt.onItemHover,Ot=kt.onMouseEnter;Kt({key:Bt,hover:!0}),Ot({key:Bt,domEvent:Et})},Wt.onClick=function(Et){var kt=Wt.props,Bt=kt.eventKey,Kt=kt.multiple,Ot=kt.onClick,sr=kt.onSelect,fr=kt.onDeselect,vr=kt.isSelected,Rr={key:Bt,keyPath:[Bt],item:Object(z.a)(Wt),domEvent:Et};Ot(Rr),Kt?vr?fr(Rr):sr(Rr):vr||sr(Rr)},Wt.saveNode=function(Et){Wt.node=Et},Wt}return Object(d.a)(Vn,[{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,kt=Object(a.a)({},this.props),Bt=t()(this.getPrefixCls(),kt.className,(Et={},Object(f.a)(Et,this.getActiveClassName(),!kt.disabled&&kt.active),Object(f.a)(Et,this.getSelectedClassName(),kt.isSelected),Object(f.a)(Et,this.getDisabledClassName(),kt.disabled),Et)),Kt=Object(a.a)(Object(a.a)({},kt.attribute),{},{title:typeof kt.title=="string"?kt.title:void 0,className:Bt,role:kt.role||"menuitem","aria-disabled":kt.disabled});kt.role==="option"?Kt=Object(a.a)(Object(a.a)({},Kt),{},{role:"option","aria-selected":kt.isSelected}):(kt.role===null||kt.role==="none")&&(Kt.role="none");var Ot={onClick:kt.disabled?null:this.onClick,onMouseLeave:kt.disabled?null:this.onMouseLeave,onMouseEnter:kt.disabled?null:this.onMouseEnter},sr=Object(a.a)({},kt.style);kt.mode==="inline"&&(kt.direction==="rtl"?sr.paddingRight=kt.inlineIndent*kt.level:sr.paddingLeft=kt.inlineIndent*kt.level),mt.forEach(function(vr){return delete kt[vr]}),delete kt.direction;var fr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(fr=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(W.a)({},Object(Q.a)(kt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Kt,Ot,{style:sr,ref:this.saveNode}),kt.children,fr)}}]),Vn}(m.Component);Zt.isMenuItem=!0,Zt.defaultProps={onSelect:me,onMouseEnter:me,onMouseLeave:me,manualRef:me};var Nt=Object(V.b)(function(tn,En){var Vn=tn.activeKey,Wt=tn.selectedKeys,Et=En.eventKey,kt=En.subMenuKey;return{active:Vn[kt]===Et,isSelected:Array.isArray(Wt)?Wt.indexOf(Et)!==-1:Wt===Et}})(Zt),Me=Nt,ke=function(tn){Object(g.a)(Vn,tn);var En=Object(v.a)(Vn);function Vn(){var Wt;return Object(c.a)(this,Vn),Wt=En.apply(this,arguments),Wt.renderInnerMenuItem=function(Et){var kt=Wt.props,Bt=kt.renderMenuItem,Kt=kt.index;return Bt(Et,Kt,Wt.props.subMenuKey)},Wt}return Object(d.a)(Vn,[{key:"render",value:function(){var Et=Object(W.a)({},this.props),kt=Et.className,Bt=kt===void 0?"":kt,Kt=Et.rootPrefixCls,Ot="".concat(Kt,"-item-group-title"),sr="".concat(Kt,"-item-group-list"),fr=Et.title,vr=Et.children;return mt.forEach(function(Rr){return delete Et[Rr]}),delete Et.direction,m.createElement("li",Object(W.a)({},Et,{onClick:function(Kn){return Kn.stopPropagation()},className:"".concat(Bt," ").concat(Kt,"-item-group")}),m.createElement("div",{className:Ot,title:typeof fr=="string"?fr:void 0},fr),m.createElement("ul",{className:sr},m.Children.map(vr,this.renderInnerMenuItem)))}}]),Vn}(m.Component);ke.isMenuItemGroup=!0,ke.defaultProps={disabled:!0};var Pe=ke,tt=function(En){var Vn=En.className,Wt=En.rootPrefixCls,Et=En.style;return m.createElement("li",{className:"".concat(Vn," ").concat(Wt,"-item-divider"),style:Et})};tt.defaultProps={disabled:!0,className:"",style:{}};var vt=tt,St=ei,Vt={adjustX:1,adjustY:1},Mr=[0,0],$r={topLeft:{points:["bl","tl"],overflow:Vt,offset:[0,-4],targetOffset:Mr},topCenter:{points:["bc","tc"],overflow:Vt,offset:[0,-4],targetOffset:Mr},topRight:{points:["br","tr"],overflow:Vt,offset:[0,-4],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:Vt,offset:[0,4],targetOffset:Mr},bottomCenter:{points:["tc","bc"],overflow:Vt,offset:[0,4],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:Vt,offset:[0,4],targetOffset:Mr}},vn=$r,jt=R.a.ESC,gt=R.a.TAB;function pt(tn){var En=tn.visible,Vn=tn.setTriggerVisible,Wt=tn.triggerRef,Et=tn.menuRef,kt=tn.onVisibleChange,Bt=tn.autoFocus,Kt=m.useRef(!1),Ot=function(){if(En&&Wt.current){var Rr,Kn,Dn,ui;(Rr=Wt.current)===null||Rr===void 0||((Kn=Rr.triggerRef)===null||Kn===void 0||((Dn=Kn.current)===null||Dn===void 0||((ui=Dn.focus)===null||ui===void 0)))||ui.call(Dn),Vn(!1),typeof kt=="function"&&kt(!1)}},sr=function(){var Rr,Kn;(Rr=Et.current)===null||Rr===void 0||((Kn=Rr.focus)===null||Kn===void 0)||Kn.call(Rr),Kt.current=!0},fr=function(Rr){var Kn;switch(Rr.keyCode){case jt:Ot();break;case gt:!Kt.current&&((Kn=Et.current)===null||Kn===void 0?void 0:Kn.focus)?(Rr.preventDefault(),sr()):Ot();break}};m.useEffect(function(){return En?(window.addEventListener("keydown",fr),Bt&&Object(Gt.a)(sr,3),function(){window.removeEventListener("keydown",fr),Kt.current=!1}):function(){Kt.current=!1}},[En])}var ar=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Ht(tn,En){var Vn=tn.arrow,Wt=Vn===void 0?!1:Vn,Et=tn.prefixCls,kt=Et===void 0?"rc-dropdown":Et,Bt=tn.transitionName,Kt=tn.animation,Ot=tn.align,sr=tn.placement,fr=sr===void 0?"bottomLeft":sr,vr=tn.placements,Rr=vr===void 0?vn:vr,Kn=tn.getPopupContainer,Dn=tn.showAction,ui=tn.hideAction,pn=tn.overlayClassName,Br=tn.overlayStyle,Tn=tn.visible,zn=tn.trigger,Qn=zn===void 0?["hover"]:zn,ii=tn.autoFocus,xi=Object(u.a)(tn,ar),Di=m.useState(),Li=Object(h.a)(Di,2),oa=Li[0],ma=Li[1],ia="visible"in tn?Tn:oa,ba=m.useRef(null);m.useImperativeHandle(En,function(){return ba.current});var vi=m.useRef(null),Ln="".concat(kt,"-menu");pt({visible:ia,setTriggerVisible:ma,triggerRef:ba,menuRef:vi,onVisibleChange:tn.onVisibleChange,autoFocus:ii});var Fi=function(){var sn=tn.overlay,Rn;return typeof sn=="function"?Rn=sn():Rn=sn,Rn},ha=function(sn){var Rn=tn.onOverlayClick,xt=Fi().props;ma(!1),Rn&&Rn(sn),xt.onClick&&xt.onClick(sn)},ea=function(sn){var Rn=tn.onVisibleChange;ma(sn),typeof Rn=="function"&&Rn(sn)},aa=function(){var sn,Rn=Fi(),xt=Object(E.a)(vi,Rn.ref),_r=(sn={prefixCls:Ln},Object(f.a)(sn,"data-dropdown-inject",!0),Object(f.a)(sn,"onClick",ha),Object(f.a)(sn,"ref",Object(E.c)(Rn)?xt:void 0),sn);return typeof Rn.type=="string"&&(delete _r.prefixCls,delete _r["data-dropdown-inject"]),m.createElement(m.Fragment,null,Wt&&m.createElement("div",{className:"".concat(kt,"-arrow")}),m.cloneElement(Rn,_r))},Ir=function(){var sn=tn.overlay;return typeof sn=="function"?aa:aa()},wr=function(){var sn=tn.minOverlayWidthMatchTrigger,Rn=tn.alignPoint;return"minOverlayWidthMatchTrigger"in tn?sn:!Rn},xn=function(){var sn=tn.openClassName;return sn!==void 0?sn:"".concat(kt,"-open")},ur=function(){var sn=tn.children,Rn=sn.props?sn.props:{},xt=t()(Rn.className,xn());return ia&&sn?m.cloneElement(sn,{className:xt}):sn},Dr=ui;return!Dr&&Qn.indexOf("contextMenu")!==-1&&(Dr=["click"]),m.createElement(hr.a,Object(a.a)(Object(a.a)({builtinPlacements:Rr},xi),{},{prefixCls:kt,ref:ba,popupClassName:t()(pn,Object(f.a)({},"".concat(kt,"-show-arrow"),Wt)),popupStyle:Br,action:Qn,showAction:Dn,hideAction:Dr||[],popupPlacement:fr,popupAlign:Ot,popupTransitionName:Bt,popupAnimation:Kt,popupVisible:ia,stretch:wr()?"minWidth":"",popup:Ir(),onPopupVisibleChange:ea,getPopupContainer:Kn}),ur())}var Mt=m.forwardRef(Ht),qt=Mt;function Rt(tn,En){var Vn=tn.prefixCls,Wt=tn.editable,Et=tn.locale,kt=tn.style;return!Wt||Wt.showAdd===!1?null:m.createElement("button",{ref:En,type:"button",className:"".concat(Vn,"-nav-add"),style:kt,"aria-label":(Et==null?void 0:Et.addAriaLabel)||"Add tab",onClick:function(Kt){Wt.onEdit("add",{event:Kt})}},Wt.addIcon||"+")}var Qt=m.forwardRef(Rt);function jr(tn,En){var Vn=tn.prefixCls,Wt=tn.id,Et=tn.tabs,kt=tn.locale,Bt=tn.mobile,Kt=tn.moreIcon,Ot=Kt===void 0?"More":Kt,sr=tn.moreTransitionName,fr=tn.style,vr=tn.className,Rr=tn.editable,Kn=tn.tabBarGutter,Dn=tn.rtl,ui=tn.onTabClick,pn=Object(m.useState)(!1),Br=Object(h.a)(pn,2),Tn=Br[0],zn=Br[1],Qn=Object(m.useState)(null),ii=Object(h.a)(Qn,2),xi=ii[0],Di=ii[1],Li="".concat(Wt,"-more-popup"),oa="".concat(Vn,"-dropdown"),ma=xi!==null?"".concat(Li,"-").concat(xi):null,ia=kt==null?void 0:kt.dropdownAriaLabel,ba=m.createElement(St,{onClick:function(Ir){var wr=Ir.key,xn=Ir.domEvent;ui(wr,xn),zn(!1)},id:Li,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[xi],"aria-label":ia!==void 0?ia:"expanded dropdown"},Et.map(function(aa){return m.createElement(Me,{key:aa.key,id:"".concat(Li,"-").concat(aa.key),role:"option","aria-controls":Wt&&"".concat(Wt,"-panel-").concat(aa.key),disabled:aa.disabled},aa.tab)}));function vi(aa){for(var Ir=Et.filter(function(Vr){return!Vr.disabled}),wr=Ir.findIndex(function(Vr){return Vr.key===xi})||0,xn=Ir.length,ur=0;ur<xn;ur+=1){wr=(wr+aa+xn)%xn;var Dr=Ir[wr];if(!Dr.disabled){Di(Dr.key);return}}}function Ln(aa){var Ir=aa.which;if(!Tn){[R.a.DOWN,R.a.SPACE,R.a.ENTER].includes(Ir)&&(zn(!0),aa.preventDefault());return}switch(Ir){case R.a.UP:vi(-1),aa.preventDefault();break;case R.a.DOWN:vi(1),aa.preventDefault();break;case R.a.ESC:zn(!1);break;case R.a.SPACE:case R.a.ENTER:xi!==null&&ui(xi,aa);break}}Object(m.useEffect)(function(){var aa=document.getElementById(ma);aa&&aa.scrollIntoView&&aa.scrollIntoView(!1)},[xi]),Object(m.useEffect)(function(){Tn||Di(null)},[Tn]);var Fi=Object(f.a)({},Dn?"marginLeft":"marginRight",Kn);Et.length||(Fi.visibility="hidden",Fi.order=1);var ha=t()(Object(f.a)({},"".concat(oa,"-rtl"),Dn)),ea=Bt?null:m.createElement(qt,{prefixCls:oa,overlay:ba,trigger:["hover"],visible:Tn,transitionName:sr,onVisibleChange:zn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(Vn,"-nav-more"),style:Fi,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Li,id:"".concat(Wt,"-more"),"aria-expanded":Tn,onKeyDown:Ln},Ot));return m.createElement("div",{className:t()("".concat(Vn,"-nav-operations"),vr),style:fr,ref:En},ea,m.createElement(Qt,{prefixCls:Vn,locale:kt,editable:Rr}))}var Nr=m.forwardRef(jr),Lr=Object(m.createContext)(null),ln=.1,mn=.01,ti=20,$n=Math.pow(.995,ti);function hi(){var tn=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(tn)||/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(tn.substr(0,4)))}function Ti(tn,En){var Vn=Object(m.useState)(),Wt=Object(h.a)(Vn,2),Et=Wt[0],kt=Wt[1],Bt=Object(m.useState)(0),Kt=Object(h.a)(Bt,2),Ot=Kt[0],sr=Kt[1],fr=Object(m.useState)(0),vr=Object(h.a)(fr,2),Rr=vr[0],Kn=vr[1],Dn=Object(m.useState)(),ui=Object(h.a)(Dn,2),pn=ui[0],Br=ui[1],Tn=Object(m.useRef)();function zn(ia){var ba=ia.touches[0],vi=ba.screenX,Ln=ba.screenY;kt({x:vi,y:Ln}),window.clearInterval(Tn.current)}function Qn(ia){if(!Et)return;ia.preventDefault();var ba=ia.touches[0],vi=ba.screenX,Ln=ba.screenY;kt({x:vi,y:Ln});var Fi=vi-Et.x,ha=Ln-Et.y;En(Fi,ha);var ea=Date.now();sr(ea),Kn(ea-Ot),Br({x:Fi,y:ha})}function ii(){if(!Et)return;if(kt(null),Br(null),pn){var ia=pn.x/Rr,ba=pn.y/Rr,vi=Math.abs(ia),Ln=Math.abs(ba);if(Math.max(vi,Ln)<ln)return;var Fi=ia,ha=ba;Tn.current=window.setInterval(function(){if(Math.abs(Fi)<mn&&Math.abs(ha)<mn){window.clearInterval(Tn.current);return}Fi*=$n,ha*=$n,En(Fi*ti,ha*ti)},ti)}}var xi=Object(m.useRef)(0),Di=Object(m.useRef)(!1),Li=Object(m.useRef)();function oa(ia){var ba=ia.deltaX,vi=ia.deltaY,Ln=0,Fi=Math.abs(ba),ha=Math.abs(vi);Fi===ha?Ln=Li.current==="x"?ba:vi:Fi>ha?(Ln=ba,Li.current="x"):(Ln=vi,Li.current="y");var ea=Date.now();ea-xi.current>100&&(Di.current=!1),(En(-Ln,-Ln)||Di.current)&&(ia.preventDefault(),Di.current=!0),xi.current=ea}var ma=Object(m.useRef)(null);ma.current={onTouchStart:zn,onTouchMove:Qn,onTouchEnd:ii,onWheel:oa},m.useEffect(function(){function ia(Fi){ma.current.onTouchStart(Fi)}function ba(Fi){ma.current.onTouchMove(Fi)}function vi(Fi){ma.current.onTouchEnd(Fi)}function Ln(Fi){ma.current.onWheel(Fi)}return document.addEventListener("touchmove",ba,{passive:!1}),document.addEventListener("touchend",vi,{passive:!1}),tn.current.addEventListener("touchstart",ia,{passive:!1}),tn.current.addEventListener("wheel",Ln),function(){document.removeEventListener("touchmove",ba),document.removeEventListener("touchend",vi)}},[])}function Ni(){var tn=Object(m.useRef)(new Map);function En(Wt){return tn.current.has(Wt)||tn.current.set(Wt,m.createRef()),tn.current.get(Wt)}function Vn(Wt){tn.current.delete(Wt)}return[En,Vn]}function Wi(tn,En){var Vn=m.useRef(tn),Wt=m.useState({}),Et=Object(h.a)(Wt,2),kt=Et[1];function Bt(Kt){var Ot=typeof Kt=="function"?Kt(Vn.current):Kt;Ot!==Vn.current&&En(Ot,Vn.current),Vn.current=Ot,kt({})}return[Vn.current,Bt]}var rt=function(En){var Vn=En.position,Wt=En.prefixCls,Et=En.extra;if(!Et)return null;var kt,Bt=Et;return Vn==="right"&&(kt=Bt.right||!Bt.left&&Bt||null),Vn==="left"&&(kt=Bt.left||null),kt?m.createElement("div",{className:"".concat(Wt,"-extra-content")},kt):null};function Re(tn,En){var Vn,Wt=m.useContext(Lr),Et=Wt.prefixCls,kt=Wt.tabs,Bt=tn.className,Kt=tn.style,Ot=tn.id,sr=tn.animated,fr=tn.activeKey,vr=tn.rtl,Rr=tn.extra,Kn=tn.editable,Dn=tn.locale,ui=tn.tabPosition,pn=tn.tabBarGutter,Br=tn.children,Tn=tn.onTabClick,zn=tn.onTabScroll,Qn=Object(m.useRef)(),ii=Object(m.useRef)(),xi=Object(m.useRef)(),Di=Object(m.useRef)(),Li=Ni(),oa=Object(h.a)(Li,2),ma=oa[0],ia=oa[1],ba=ui==="top"||ui==="bottom",vi=Wi(0,function(oi,li){ba&&zn&&zn({direction:oi>li?"left":"right"})}),Ln=Object(h.a)(vi,2),Fi=Ln[0],ha=Ln[1],ea=Wi(0,function(oi,li){!ba&&zn&&zn({direction:oi>li?"top":"bottom"})}),aa=Object(h.a)(ea,2),Ir=aa[0],wr=aa[1],xn=Object(m.useState)(0),ur=Object(h.a)(xn,2),Dr=ur[0],Vr=ur[1],sn=Object(m.useState)(0),Rn=Object(h.a)(sn,2),xt=Rn[0],_r=Rn[1],Or=Object(m.useState)(0),en=Object(h.a)(Or,2),wn=en[0],_n=en[1],yn=Object(m.useState)(0),Jn=Object(h.a)(yn,2),Un=Jn[0],pi=Jn[1],ki=Object(m.useState)(null),yi=Object(h.a)(ki,2),_i=yi[0],Ki=yi[1],qi=Object(m.useState)(null),zi=Object(h.a)(qi,2),Hi=zi[0],Ui=zi[1],Qi=Object(m.useState)(0),ca=Object(h.a)(Qi,2),Ca=ca[0],ra=ca[1],Ma=Object(m.useState)(0),La=Object(h.a)(Ma,2),va=La[0],ga=La[1],Oa=I(new Map),Aa=Object(h.a)(Oa,2),Ga=Aa[0],_a=Aa[1],Va=X(kt,Ga,Dr),Bi="".concat(Et,"-nav-operations-hidden"),io=0,oo=0;ba?vr?(io=0,oo=Math.max(0,Dr-_i)):(io=Math.min(0,_i-Dr),oo=0):(io=Math.min(0,Hi-xt),oo=0);function Qo(oi){return oi<io?[io,!1]:oi>oo?[oo,!1]:[oi,!0]}var mo=Object(m.useRef)(),To=Object(m.useState)(),ao=Object(h.a)(To,2),So=ao[0],bo=ao[1];function to(){bo(Date.now())}function Jo(){window.clearTimeout(mo.current)}Ti(Qn,function(oi,li){var ai=!1;function Ei(mi,Ai){mi(function(Ii){var na=Qo(Ii+Ai),ji=Object(h.a)(na,2),fa=ji[0],Xa=ji[1];return ai=Xa,fa})}if(ba){if(_i>=Dr)return ai;Ei(ha,oi)}else{if(Hi>=xt)return ai;Ei(wr,li)}return Jo(),to(),ai}),Object(m.useEffect)(function(){return Jo(),So&&(mo.current=window.setTimeout(function(){bo(0)},100)),Jo},[So]);function Uo(){var oi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fr,li=Va.get(oi);if(!li)return;if(ba){var ai=Fi;vr?li.right<Fi?ai=li.right:li.right+li.width>Fi+_i&&(ai=li.right+li.width-_i):li.left<-Fi?ai=-li.left:li.left+li.width>-Fi+_i&&(ai=-(li.left+li.width-_i)),wr(0),ha(Qo(ai)[0])}else{var Ei=Ir;li.top<-Ir?Ei=-li.top:li.top+li.height>-Ir+Hi&&(Ei=-(li.top+li.height-Hi)),ha(0),wr(Qo(Ei)[0])}}var wo=j(Va,{width:_i,height:Hi,left:Fi,top:Ir},{width:wn,height:Un},{width:Ca,height:va},Object(a.a)(Object(a.a)({},tn),{},{tabs:kt})),ts=Object(h.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=kt.map(function(oi){var li=oi.key;return m.createElement(F,{id:Ot,prefixCls:Et,key:li,rtl:vr,tab:oi,closable:oi.closable,editable:Kn,active:li===fr,tabPosition:ui,tabBarGutter:pn,renderWrapper:Br,removeAriaLabel:Dn==null?void 0:Dn.removeAriaLabel,ref:ma(li),onClick:function(Ei){Tn(li,Ei)},onRemove:function(){ia(li)},onFocus:function(){Uo(li),to(),vr||(Qn.current.scrollLeft=0),Qn.current.scrollTop=0}})}),os=O(function(){var oi,li,ai,Ei,mi,Ai,Ii,na,ji,fa=((oi=Qn.current)===null||oi===void 0?void 0:oi.offsetWidth)||0,Xa=((li=Qn.current)===null||li===void 0?void 0:li.offsetHeight)||0,xa=((ai=Di.current)===null||ai===void 0?void 0:ai.offsetWidth)||0,wa=((Ei=Di.current)===null||Ei===void 0?void 0:Ei.offsetHeight)||0,Da=((mi=xi.current)===null||mi===void 0?void 0:mi.offsetWidth)||0,ja=((Ai=xi.current)===null||Ai===void 0?void 0:Ai.offsetHeight)||0;Ki(fa),Ui(Xa),ra(xa),ga(wa);var ko=(((Ii=ii.current)===null||Ii===void 0?void 0:Ii.offsetWidth)||0)-xa,ro=(((na=ii.current)===null||na===void 0?void 0:na.offsetHeight)||0)-wa;Vr(ko),_r(ro);var pa=(ji=xi.current)===null||ji===void 0?void 0:ji.className.includes(Bi);_n(ko-(pa?0:Da)),pi(ro-(pa?0:ja)),_a(function(){var Ea=new Map;return kt.forEach(function(Fa){var Ka=Fa.key,lo=ma(Ka).current;lo&&Ea.set(Ka,{width:lo.offsetWidth,height:lo.offsetHeight,left:lo.offsetLeft,top:lo.offsetTop})}),Ea})}),xo=kt.slice(0,Ia),rs=kt.slice(Oo+1),Ho=[].concat(Object(l.a)(xo),Object(l.a)(rs)),_o=Object(m.useState)(),uo=Object(h.a)(_o,2),Ha=uo[0],ht=uo[1],Er=Va.get(fr),Zr=Object(m.useRef)();function Xr(){s.a.cancel(Zr.current)}Object(m.useEffect)(function(){var oi={};return Er&&(ba?(vr?oi.right=Er.right:oi.left=Er.left,oi.width=Er.width):(oi.top=Er.top,oi.height=Er.height)),Xr(),Zr.current=s()(function(){ht(oi)}),Xr},[Er,ba,vr]),Object(m.useEffect)(function(){Uo()},[fr,Er,Va,ba]),Object(m.useEffect)(function(){os()},[vr,pn,fr,kt.map(function(oi){return oi.key}).join("_")]);var Xn=!!Ho.length,un="".concat(Et,"-nav-wrap"),Gr,ri,rn,jn;return ba?vr?(ri=Fi>0,Gr=Fi+_i<Dr):(Gr=Fi<0,ri=-Fi+_i<Dr):(rn=Ir<0,jn=-Ir+Hi<xt),m.createElement("div",{ref:En,role:"tablist",className:t()("".concat(Et,"-nav"),Bt),style:Kt,onKeyDown:function(){to()}},m.createElement(rt,{position:"left",extra:Rr,prefixCls:Et}),m.createElement(w,{onResize:os},m.createElement("div",{className:t()(un,(Vn={},Object(f.a)(Vn,"".concat(un,"-ping-left"),Gr),Object(f.a)(Vn,"".concat(un,"-ping-right"),ri),Object(f.a)(Vn,"".concat(un,"-ping-top"),rn),Object(f.a)(Vn,"".concat(un,"-ping-bottom"),jn),Vn)),ref:Qn},m.createElement(w,{onResize:os},m.createElement("div",{ref:ii,className:"".concat(Et,"-nav-list"),style:{transform:"translate(".concat(Fi,"px, ").concat(Ir,"px)"),transition:So?"none":void 0}},Io,m.createElement(Qt,{ref:Di,prefixCls:Et,locale:Dn,editable:Kn,style:{visibility:Xn?"hidden":null}}),m.createElement("div",{className:t()("".concat(Et,"-ink-bar"),Object(f.a)({},"".concat(Et,"-ink-bar-animated"),sr.inkBar)),style:Ha}))))),m.createElement(Nr,Object.assign({},tn,{ref:xi,prefixCls:Et,tabs:Ho,className:!Xn&&Bi})),m.createElement(rt,{position:"right",extra:Rr,prefixCls:Et}))}var Ue=m.forwardRef(Re);function Ye(tn){var En=tn.id,Vn=tn.activeKey,Wt=tn.animated,Et=tn.tabPosition,kt=tn.rtl,Bt=tn.destroyInactiveTabPane,Kt=m.useContext(Lr),Ot=Kt.prefixCls,sr=Kt.tabs,fr=Wt.tabPane,vr=sr.findIndex(function(Rr){return Rr.key===Vn});return m.createElement("div",{className:t()("".concat(Ot,"-content-holder"))},m.createElement("div",{className:t()("".concat(Ot,"-content"),"".concat(Ot,"-content-").concat(Et),Object(f.a)({},"".concat(Ot,"-content-animated"),fr)),style:vr&&fr?Object(f.a)({},kt?"marginRight":"marginLeft","-".concat(vr,"00%")):null},sr.map(function(Rr){return m.cloneElement(Rr.node,{key:Rr.key,prefixCls:Ot,tabKey:Rr.key,id:En,animated:fr,active:Rr.key===Vn,destroyInactiveTabPane:Bt})})))}function et(tn){var En=tn.prefixCls,Vn=tn.forceRender,Wt=tn.className,Et=tn.style,kt=tn.id,Bt=tn.active,Kt=tn.animated,Ot=tn.destroyInactiveTabPane,sr=tn.tabKey,fr=tn.children,vr=m.useState(Vn),Rr=Object(h.a)(vr,2),Kn=Rr[0],Dn=Rr[1];m.useEffect(function(){Bt?Dn(!0):Ot&&Dn(!1)},[Bt,Ot]);var ui={};return Bt||(Kt?(ui.visibility="hidden",ui.height=0,ui.overflowY="hidden"):ui.display="none"),m.createElement("div",{id:kt&&"".concat(kt,"-panel-").concat(sr),role:"tabpanel",tabIndex:Bt?0:-1,"aria-labelledby":kt&&"".concat(kt,"-tab-").concat(sr),"aria-hidden":!Bt,style:Object(a.a)(Object(a.a)({},ui),Et),className:t()("".concat(En,"-tabpane"),Bt&&"".concat(En,"-tabpane-active"),Wt)},(Bt||Kn||Vn)&&fr)}var $e=0;function at(tn){return Object(o.a)(tn).map(function(En){if(m.isValidElement(En)){var Vn=En.key!==void 0?String(En.key):void 0;return Object(a.a)(Object(a.a)({key:Vn},En.props),{},{node:En})}return null}).filter(function(En){return En})}function wt(tn,En){var Vn,Wt=tn.id,Et=tn.prefixCls,kt=Et===void 0?"rc-tabs":Et,Bt=tn.className,Kt=tn.children,Ot=tn.direction,sr=tn.activeKey,fr=tn.defaultActiveKey,vr=tn.editable,Rr=tn.animated,Kn=tn.tabPosition,Dn=Kn===void 0?"top":Kn,ui=tn.tabBarGutter,pn=tn.tabBarStyle,Br=tn.tabBarExtraContent,Tn=tn.locale,zn=tn.moreIcon,Qn=tn.moreTransitionName,ii=tn.destroyInactiveTabPane,xi=tn.renderTabBar,Di=tn.onChange,Li=tn.onTabClick,oa=tn.onTabScroll,ma=Object(u.a)(tn,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),ia=at(Kt),ba=Ot==="rtl",vi;Rr===!1?vi={inkBar:!1,tabPane:!1}:vi=Object(a.a)({inkBar:!0,tabPane:!1},Rr!==!0?Rr:null);var Ln=Object(m.useState)(!1),Fi=Object(h.a)(Ln,2),ha=Fi[0],ea=Fi[1];Object(m.useEffect)(function(){ea(hi())},[]);var aa=Object(e.a)(function(){var Un;return(Un=ia[0])===null||Un===void 0?void 0:Un.key},{value:sr,defaultValue:fr}),Ir=Object(h.a)(aa,2),wr=Ir[0],xn=Ir[1],ur=Object(m.useState)(function(){return ia.findIndex(function(Un){return Un.key===wr})}),Dr=Object(h.a)(ur,2),Vr=Dr[0],sn=Dr[1];Object(m.useEffect)(function(){var Un=ia.findIndex(function(ki){return ki.key===wr});if(Un===-1){var pi;Un=Math.max(0,Math.min(Vr,ia.length-1)),xn((pi=ia[Un])===null||pi===void 0?void 0:pi.key)}sn(Un)},[ia.map(function(Un){return Un.key}).join("_"),wr,Vr]);var Rn=Object(e.a)(null,{value:Wt}),xt=Object(h.a)(Rn,2),_r=xt[0],Or=xt[1],en=Dn;ha&&!["left","right"].includes(Dn)&&(en="top"),Object(m.useEffect)(function(){Wt||(Or("rc-tabs-".concat($e)),$e+=1)},[]);function wn(Un,pi){Li==null||Li(Un,pi),xn(Un),Di==null||Di(Un)}var _n={id:_r,activeKey:wr,animated:vi,tabPosition:en,rtl:ba,mobile:ha},yn,Jn=Object(a.a)(Object(a.a)({},_n),{},{editable:vr,locale:Tn,moreIcon:zn,moreTransitionName:Qn,tabBarGutter:ui,onTabClick:wn,onTabScroll:oa,extra:Br,style:pn,panes:Kt});return xi?yn=xi(Jn,Ue):yn=m.createElement(Ue,Object.assign({},Jn)),m.createElement(Lr.Provider,{value:{tabs:ia,prefixCls:kt}},m.createElement("div",Object.assign({ref:En,id:Wt,className:t()(kt,"".concat(kt,"-").concat(en),(Vn={},Object(f.a)(Vn,"".concat(kt,"-mobile"),ha),Object(f.a)(Vn,"".concat(kt,"-editable"),vr),Object(f.a)(Vn,"".concat(kt,"-rtl"),ba),Vn),Bt)},ma),yn,m.createElement(Ye,Object.assign({destroyInactiveTabPane:ii},_n,{animated:vi}))))}var ft=m.forwardRef(wt);ft.TabPane=et;var cr=ft,Jr=cr,Qr=n("cCPh"),fn=n.n(Qr),pr=n("fNCr"),Wn=n.n(pr),kr=n("V/uB"),kn=n.n(kr),bn=n("uaoM"),qr=n("H84U"),fi=function(tn,En){var Vn={};for(var Wt in tn)Object.prototype.hasOwnProperty.call(tn,Wt)&&En.indexOf(Wt)<0&&(Vn[Wt]=tn[Wt]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Wt=Object.getOwnPropertySymbols(tn);Et<Wt.length;Et++)En.indexOf(Wt[Et])<0&&Object.prototype.propertyIsEnumerable.call(tn,Wt[Et])&&(Vn[Wt[Et]]=tn[Wt[Et]]);return Vn};function Mi(tn){var En,Vn=tn.type,Wt=tn.className,Et=tn.size,kt=tn.onEdit,Bt=tn.hideAdd,Kt=tn.centered,Ot=tn.addIcon,sr=fi(tn,["type","className","size","onEdit","hideAdd","centered","addIcon"]),fr=sr.prefixCls,vr=m.useContext(qr.b),Rr=vr.getPrefixCls,Kn=vr.direction,Dn=Rr("tabs",fr),ui;return Vn==="editable-card"&&(ui={onEdit:function(Br,Tn){var zn=Tn.key,Qn=Tn.event;kt==null||kt(Br==="add"?Qn:zn,Br)},removeIcon:m.createElement(kn.a,null),addIcon:Ot||m.createElement(Wn.a,null),showAdd:Bt!==!0}),Object(bn.a)(!("onPrevClick"in sr)&&!("onNextClick"in sr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement(Jr,p()({direction:Kn},sr,{moreTransitionName:"slide-up",className:t()(Wt,(En={},A()(En,"".concat(Dn,"-").concat(Et),Et),A()(En,"".concat(Dn,"-card"),["card","editable-card"].includes(Vn)),A()(En,"".concat(Dn,"-editable-card"),Vn==="editable-card"),A()(En,"".concat(Dn,"-centered"),Kt),En)),editable:ui,moreIcon:m.createElement(fn.a,null),prefixCls:Dn}))}Mi.TabPane=et;var Zi=D.a=Mi},ZTW2:function(k,D,n){},ZWlE:function(k,D,n){var y=n("bYtY"),p=n("4NO4");function x(f){A(f),m(f)}function A(f){if(f.parallel)return;var h=!1;y.each(f.series,function(u){u&&u.type==="parallel"&&(h=!0)}),h&&(f.parallel=[{}])}function m(f){var h=p.normalizeToArray(f.parallelAxis);y.each(h,function(u){if(!y.isObject(u))return;var a=u.parallelIndex||0,i=p.normalizeToArray(f.parallel)[a];i&&i.parallelAxisDefault&&y.merge(u,i.parallelAxisDefault,!1)})}k.exports=x},ZX9x:function(k,D,n){"use strict";n.d(D,"a",function(){return I}),n.d(D,"b",function(){return F});var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n("TSYQ"),r=n.n(l),s=n("BGR+"),c=n("T1rO"),d=n.n(c),g=n("fEPi"),v=n.n(g),b=n("DFhj"),S=n.n(b),E=n("PKem"),C=n("H84U"),_=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},T=_,w=function(P,X){var B={};for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&X.indexOf(j)<0&&(B[j]=P[j]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,j=Object.getOwnPropertySymbols(P);W<j.length;W++)X.indexOf(j[W])<0&&Object.prototype.propertyIsEnumerable.call(P,j[W])&&(B[j[W]]=P[j[W]]);return B},O={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),R=function(){var P=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,"".concat(X).concat(P)}}(),M=function(P){i()(B,P);var X=o()(B);function B(j){var W;f()(this,B),W=X.call(this,j),W.responsiveHandler=function(Q){W.setState({below:Q.matches});var G=W.props.onBreakpoint,re=W.state.collapsed;G&&G(Q.matches),re!==Q.matches&&W.setCollapsed(Q.matches,"responsive")},W.setCollapsed=function(Q,G){"collapsed"in W.props||W.setState({collapsed:Q});var re=W.props.onCollapse;re&&re(Q,G)},W.toggle=function(){var Q=!W.state.collapsed;W.setCollapsed(Q,"clickTrigger")},W.renderSider=function(Q){var G,re=Q.getPrefixCls,ee=W.props,ue=ee.prefixCls,$=ee.className,be=ee.theme,_e=ee.collapsible,Ee=ee.reverseArrow,Xe=ee.trigger,He=ee.style,nt=ee.width,Ie=ee.collapsedWidth,oe=ee.zeroWidthTriggerStyle,ot=ee.children,he=w(ee,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=W.state,Y=J.collapsed,q=J.below,fe=re("layout-sider",ue),we=Object(s.default)(he,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ne=Y?Ie:nt,je=T(Ne)?"".concat(Ne,"px"):String(Ne),me=parseFloat(String(Ie||0))===0?e.createElement("span",{onClick:W.toggle,className:r()("".concat(fe,"-zero-width-trigger"),"".concat(fe,"-zero-width-trigger-").concat(Ee?"right":"left")),style:oe},Xe||e.createElement(d.a,null)):null,Ce={expanded:Ee?e.createElement(v.a,null):e.createElement(S.a,null),collapsed:Ee?e.createElement(S.a,null):e.createElement(v.a,null)},Fe=Y?"collapsed":"expanded",it=Ce[Fe],Ct=Xe!==null?me||e.createElement("div",{className:"".concat(fe,"-trigger"),onClick:W.toggle,style:{width:je}},Xe||it):null,mt=A()(A()({},He),{flex:"0 0 ".concat(je),maxWidth:je,minWidth:je,width:je}),Ve=r()($,fe,"".concat(fe,"-").concat(be),(G={},p()(G,"".concat(fe,"-collapsed"),!!Y),p()(G,"".concat(fe,"-has-trigger"),_e&&Xe!==null&&!me),p()(G,"".concat(fe,"-below"),!!q),p()(G,"".concat(fe,"-zero-width"),parseFloat(je)===0),G));return e.createElement("aside",A()({className:Ve},we,{style:mt}),e.createElement("div",{className:"".concat(fe,"-children")},ot),_e||q&&me?Ct:null)},W.uniqueId=R("ant-sider-");var z;typeof window!="undefined"&&(z=window.matchMedia),z&&j.breakpoint&&j.breakpoint in O&&(W.mql=z("(max-width: ".concat(O[j.breakpoint],")")));var V;return"collapsed"in j?V=j.collapsed:V=j.defaultCollapsed,W.state={collapsed:V,below:!1},W}return u()(B,[{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,z;(W=this===null||this===void 0?void 0:this.mql)===null||W===void 0||W.removeListener(this.responsiveHandler),(z=this.props)===null||z===void 0||z.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var W=this.state.collapsed,z=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:W,collapsedWidth:z}},e.createElement(C.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(W){return"collapsed"in W?{collapsed:W.collapsed}:null}}]),B}(e.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var F=function(P){i()(B,P);var X=o()(B);function B(){return f()(this,B),X.apply(this,arguments)}return u()(B,[{key:"render",value:function(){var W=this;return e.createElement(E.a.Consumer,null,function(z){return e.createElement(M,A()({},z,W.props))})}}]),B}(e.Component)},ZYIC:function(k,D,n){var y=n("zM3Q"),p={seriesType:"lines",plan:y(),reset:function(x){var A=x.coordinateSystem,m=x.get("polyline"),f=x.pipelineContext.large;function h(u,a){var i=[];if(f){var t,o=u.end-u.start;if(m){for(var e=0,l=u.start;l<u.end;l++)e+=x.getLineCoordsCount(l);t=new Float32Array(o+e*2)}else t=new Float32Array(o*4);for(var r=0,s=[],l=u.start;l<u.end;l++){var c=x.getLineCoords(l,i);m&&(t[r++]=c);for(var d=0;d<c;d++)s=A.dataToPoint(i[d],!1,s),t[r++]=s[0],t[r++]=s[1]}a.setLayout("linesPoints",t)}else for(var l=u.start;l<u.end;l++){var g=a.getItemModel(l),c=x.getLineCoords(l,i),v=[];if(m)for(var b=0;b<c;b++)v.push(A.dataToPoint(i[b]));else{v[0]=A.dataToPoint(i[0]),v[1]=A.dataToPoint(i[1]);var S=g.get("lineStyle.curveness");+S&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*S,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*S])}a.setItemLayout(l,v)}}return{progress:h}}};k.exports=p},Ze12:function(k,D,n){var y=n("ItGF"),p=n("hOwI"),x=p.buildTransformer,A="___zrEVENTSAVED",m=[];function f(t,o,e,l,r){return h(m,o,l,r,!0)&&h(t,e,m[0],m[1])}function h(t,o,e,l,r){if(o.getBoundingClientRect&&y.domSupported&&!i(o)){var s=o[A]||(o[A]={}),c=u(o,s),d=a(c,s,r);if(d)return d(t,e,l),!0}return!1}function u(t,o){var e=o.markers;if(e)return e;e=o.markers=[];for(var l=["left","right"],r=["top","bottom"],s=0;s<4;s++){var c=document.createElement("div"),d=c.style,g=s%2,v=(s>>1)%2;d.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[g]+":0",r[v]+":0",l[1-g]+":auto",r[1-v]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function a(t,o,e){for(var l=e?"invTrans":"trans",r=o[l],s=o.srcCoords,c=!0,d=[],g=[],v=0;v<4;v++){var b=t[v].getBoundingClientRect(),S=2*v,E=b.left,C=b.top;d.push(E,C),c=c&&s&&E===s[S]&&C===s[S+1],g.push(t[v].offsetLeft,t[v].offsetTop)}return c&&r?r:(o.srcCoords=d,o[l]=e?x(g,d):x(d,g))}function i(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=f,D.transformCoordWithViewport=h,D.isCanvasEl=i},Znkb:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("zTMp"),m=x.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(i,t,o,e){this.axisPointerClass&&A.fixValue(i),m.superApply(this,"render",arguments),f(this,i,t,o,e,!0)},updateAxisPointer:function(i,t,o,e,l){f(this,i,t,o,e,!1)},remove:function(i,t){var o=this._axisPointer;o&&o.remove(t),m.superApply(this,"remove",arguments)},dispose:function(i,t){h(this,t),m.superApply(this,"dispose",arguments)}});function f(i,t,o,e,l,r){var s=m.getAxisPointerClass(i.axisPointerClass);if(!s)return;var c=A.getAxisPointerModel(t);c?(i._axisPointer||(i._axisPointer=new s)).render(t,c,e,r):h(i,e)}function h(i,t,o){var e=i._axisPointer;e&&e.dispose(t,o),i._axisPointer=null}var u=[];m.registerAxisPointerClass=function(i,t){u[i]=t},m.getAxisPointerClass=function(i){return i&&u[i]};var a=m;k.exports=a},"Znn+":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("9ama"),A=n.n(x)},ZqQs:function(k,D,n){var y=n("bYtY");function p(f){var h=f&&f.timeline;y.isArray(h)||(h=h?[h]:[]),y.each(h,function(u){if(!u)return;x(u)})}function x(f){var h=f.type,u={number:"value",time:"time"};if(u[h]&&(f.axisType=u[h],delete f.type),A(f),m(f,"controlPosition")){var a=f.controlStyle||(f.controlStyle={});m(a,"position")||(a.position=f.controlPosition),a.position==="none"&&!m(a,"show")&&(a.show=!1,delete a.position),delete f.controlPosition}y.each(f.data||[],function(i){y.isObject(i)&&!y.isArray(i)&&(!m(i,"value")&&m(i,"name")&&(i.value=i.name),A(i))})}function A(f){var h=f.itemStyle||(f.itemStyle={}),u=h.emphasis||(h.emphasis={}),a=f.label||f.label||{},i=a.normal||(a.normal={}),t={normal:1,emphasis:1};y.each(a,function(o,e){!t[e]&&!m(i,e)&&(i[e]=o)}),u.label&&!m(a,"emphasis")&&(a.emphasis=u.label,delete u.label)}function m(f,h){return f.hasOwnProperty(h)}k.exports=p},Zvw2:function(k,D,n){var y=n("bYtY"),p=n("hM6l"),x=function(m,f,h,u,a){p.call(this,m,f,h),this.type=u||"value",this.position=a||"bottom",this.orient=null};x.prototype={constructor:x,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},pointToData:function(m,f){return this.coordinateSystem.pointToData(m,f)[0]},toGlobalCoord:null,toLocalCoord:null},y.inherits(x,p);var A=x;k.exports=A},a7Wl:function(k,D,n){"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 n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(p,x){if(p==="world"){var A=n[x.name];if(A){var m=x.center;m[0]=A[0],m[1]=A[1]}}}k.exports=y},aHsQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("6D9b"),A=n.n(x)},aKvl:function(k,D,n){var y=n("Sj9i"),p=y.quadraticProjectPoint;function x(A,m,f,h,u,a,i,t,o){if(i===0)return!1;var e=i;if(o>m+e&&o>h+e&&o>a+e||o<m-e&&o<h-e&&o<a-e||t>A+e&&t>f+e&&t>u+e||t<A-e&&t<f-e&&t<u-e)return!1;var l=p(A,m,f,h,u,a,t,o,null);return l<=e/2}D.containStroke=x},aTJb:function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(k,D,n){var y=n("3gBT"),p=n("ItGF"),x=n("bYtY"),A=n("0s+r"),m=n("r6Bn"),f=n("7SHv"),h=n("MKOG"),u=n("zarK");/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var a=!p.canvasSupported,i={canvas:f},t={},o="4.3.1";function e(g,v){var b=new d(y(),g,v);return t[b.id]=b,b}function l(g){if(g)g.dispose();else{for(var v in t)t.hasOwnProperty(v)&&t[v].dispose();t={}}return this}function r(g){return t[g]}function s(g,v){i[g]=v}function c(g){delete t[g]}var d=function(v,b,S){S=S||{},this.dom=b,this.id=v;var E=this,C=new m,_=S.renderer;if(a){if(!i.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!i[_])&&(_="canvas");var T=new i[_](b,C,S,v);this.storage=C,this.painter=T;var w=!p.node&&!p.worker?new u(T.getViewportRoot(),T.root):null;this.handler=new A(C,T,w,T.root),this.animation=new h({stage:{update:x.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var O=C.delFromStorage,I=C.addToStorage;C.delFromStorage=function(R){O.call(C,R),R&&R.removeSelfFromZr(E)},C.addToStorage=function(R){I.call(C,R),R.addSelfToZr(E)}};d.prototype={constructor:d,getId:function(){return this.id},add:function(v){this.storage.addRoot(v),this._needsRefresh=!0},remove:function(v){this.storage.delRoot(v),this._needsRefresh=!0},configLayer:function(v,b){this.painter.configLayer&&this.painter.configLayer(v,b),this._needsRefresh=!0},setBackgroundColor:function(v){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(v),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var v;this._needsRefresh&&(v=!0,this.refreshImmediately()),this._needsRefreshHover&&(v=!0,this.refreshHoverImmediately()),v&&this.trigger("rendered")},addHover:function(v,b){if(this.painter.addHover){var S=this.painter.addHover(v,b);return this.refreshHover(),S}},removeHover:function(v){this.painter.removeHover&&(this.painter.removeHover(v),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(v){v=v||{},this.painter.resize(v.width,v.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(v,b){return this.painter.pathToImage(v,b)},setCursorStyle:function(v){this.handler.setCursorStyle(v)},findHover:function(v,b){return this.handler.findHover(v,b)},on:function(v,b,S){this.handler.on(v,b,S)},off:function(v,b){this.handler.off(v,b)},trigger:function(v,b){this.handler.trigger(v,b)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,c(this.id)}},D.version=o,D.init=e,D.dispose=l,D.getInstance=r,D.registerPainter=s},aX7z:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("GMDS"),m=n("ieMj"),f=n("4NgU"),h=n("OELB"),u=n("nVfU"),a=u.prepareLayoutBarSeries,i=u.makeColumnLayout,t=u.retrieveColumnLayout,o=n("mFDi");n("IWp7"),n("jCoz");function e(C,_){var T=C.type,w=_.getMin(),O=_.getMax(),I=C.getExtent(),R,M,F;T==="ordinal"?R=_.getCategories().length:(M=_.get("boundaryGap"),x.isArray(M)||(M=[M||0,M||0]),typeof M[0]=="boolean"&&(M=[0,0]),M[0]=h.parsePercent(M[0],1),M[1]=h.parsePercent(M[1],1),F=I[1]-I[0]||Math.abs(I[0])),w==="dataMin"?w=I[0]:typeof w=="function"&&(w=w({min:I[0],max:I[1]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var P=w!=null,X=O!=null;w==null&&(w=T==="ordinal"?R?0:NaN:I[0]-M[0]*F),O==null&&(O=T==="ordinal"?R?R-1:NaN:I[1]+M[1]*F),(w==null||!isFinite(w))&&(w=NaN),(O==null||!isFinite(O))&&(O=NaN),C.setBlank(x.eqNaN(w)||x.eqNaN(O)||T==="ordinal"&&!C.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(w>0&&O>0&&!P&&(w=0),w<0&&O<0&&!X&&(O=0));var B=_.ecModel;if(B&&T==="time"){var j=a("bar",B),W;if(x.each(j,function(Q){W|=Q.getBaseAxis()===_.axis}),W){var z=i(j),V=l(w,O,_,z);w=V.min,O=V.max}}return{extent:[w,O],fixMin:P,fixMax:X}}function l(C,_,T,w){var O=T.axis.getExtent(),I=O[1]-O[0],R=t(w,T.axis);if(R===void 0)return{min:C,max:_};var M=Infinity;x.each(R,function(W){M=Math.min(W.offset,M)});var F=-Infinity;x.each(R,function(W){F=Math.max(W.offset+W.width,F)}),M=Math.abs(M),F=Math.abs(F);var P=M+F,X=_-C,B=1-(M+F)/I,j=X/B-X;return _+=j*(F/P),C-=j*(M/P),{min:C,max:_}}function r(C,_){var T=e(C,_),w=T.extent,O=_.get("splitNumber");C.type==="log"&&(C.base=_.get("logBase"));var I=C.type;C.setExtent(w[0],w[1]),C.niceExtent({splitNumber:O,fixMin:T.fixMin,fixMax:T.fixMax,minInterval:I==="interval"||I==="time"?_.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?_.get("maxInterval"):null});var R=_.get("interval");R!=null&&(C.setInterval&&C.setInterval(R))}function s(C,_){if(_=_||C.get("type"),_)switch(_){case"category":return new A(C.getOrdinalMeta?C.getOrdinalMeta():C.getCategories(),[Infinity,-Infinity]);case"value":return new m;default:return(f.getClass(_)||m).create(C)}}function c(C){var _=C.scale.getExtent(),T=_[0],w=_[1];return!(T>0&&w>0||T<0&&w<0)}function d(C){var _=C.getLabelModel().get("formatter"),T=C.type==="category"?C.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(w){return function(O){return O=C.scale.getLabel(O),w.replace("{value}",O!=null?O:"")}}(_),_):typeof _=="function"?function(w,O){return T!=null&&(O=w-T),_(g(C,w),O)}:function(w){return C.scale.getLabel(w)}}function g(C,_){return C.type==="category"?C.scale.getLabel(_):_}function v(C){var _=C.model,T=C.scale;if(!_.get("axisLabel.show")||T.isBlank())return;var w=C.type==="category",O,I,R=T.getExtent();w?I=T.count():(O=T.getTicks(),I=O.length);var M=C.getLabelModel(),F=d(C),P,X=1;I>40&&(X=Math.ceil(I/40));for(var B=0;B<I;B+=X){var j=O?O[B]:R[0]+B,W=F(j),z=M.getTextRect(W),V=b(z,M.get("rotate")||0);P?P.union(V):P=V}return P}function b(C,_){var T=_*Math.PI/180,w=C.plain(),O=w.width,I=w.height,R=O*Math.cos(T)+I*Math.sin(T),M=O*Math.sin(T)+I*Math.cos(T),F=new o(w.x,w.y,R,M);return F}function S(C){var _=C.get("interval");return _==null?"auto":_}function E(C){return C.type==="category"&&S(C.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=s,D.ifAxisCrossZero=c,D.makeLabelFormatter=d,D.getAxisRawValue=g,D.estimateLabelUnionRect=v,D.getOptionCategoryInterval=S,D.shouldShowAllLabels=E},adU4:function(k,D,n){var y=n("y1pI"),p=Array.prototype,x=p.splice;function A(m){var f=this.__data__,h=y(f,m);if(h<0)return!1;var u=f.length-1;return h==u?f.pop():x.call(f,h,1),--this.size,!0}k.exports=A},"af/B":function(k,D,n){var y=n("bYtY"),p=y.each,x=y.map,A=y.isFunction,m=y.createHashMap,f=y.noop,h=n("9H2F"),u=h.createTask,a=n("iRjW"),i=a.getUID,t=n("fmMI"),o=n("hD7B"),e=n("4NO4"),l=e.normalizeToArray;function r(W,z,V,Q){this.ecInstance=W,this.api=z,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=m()}var s=r.prototype;s.restoreData=function(W,z){W.restoreData(z),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},s.getPerformArgs=function(W,z){if(!W.__pipeline)return;var V=this._pipelineMap.get(W.__pipeline.id),Q=V.context,G=!z&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&W.__idxInPipeline>V.blockIndex,re=G?V.step:null,ee=Q&&Q.modDataCount,ue=ee!=null?Math.ceil(ee/re):null;return{step:re,modBy:ue,modDataCount:ee}},s.getPipeline=function(W){return this._pipelineMap.get(W)},s.updateStreamModes=function(W,z){var V=this._pipelineMap.get(W.uid),Q=W.getData(),G=Q.count(),re=V.progressiveEnabled&&z.incrementalPrepareRender&&G>=V.threshold,ee=W.get("large")&&G>=W.get("largeThreshold"),ue=W.get("progressiveChunkMode")==="mod"?G:null;W.pipelineContext=V.context={progressiveRender:re,modDataCount:ue,large:ee}},s.restorePipelines=function(W){var z=this,V=z._pipelineMap=m();W.eachSeries(function(Q){var G=Q.getProgressive(),re=Q.uid;V.set(re,{id:re,head:null,tail:null,threshold:Q.getProgressiveThreshold(),progressiveEnabled:G&&!(Q.preventIncremental&&Q.preventIncremental()),blockIndex:-1,step:Math.round(G||700),count:0}),R(z,Q,Q.dataTask)})},s.prepareStageTasks=function(){var W=this._stageTaskMap,z=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,z,V),Q.overallReset&&v(this,Q,G,z,V)},this)},s.prepareView=function(W,z,V,Q){var G=W.renderTask,re=G.context;re.model=z,re.ecModel=V,re.api=Q,G.__block=!W.incrementalPrepareRender,R(this,z,G)},s.performDataProcessorTasks=function(W,z){c(this,this._dataProcessorHandlers,W,z,{block:!0})},s.performVisualTasks=function(W,z,V){c(this,this._visualHandlers,W,z,V)};function c(W,z,V,Q,G){G=G||{};var re;p(z,function(ue,$){if(G.visualType&&G.visualType!==ue.visualType)return;var be=W._stageTaskMap.get(ue.uid),_e=be.seriesTaskMap,Ee=be.overallTask;if(Ee){var Xe,He=Ee.agentStubMap;He.each(function(Ie){ee(G,Ie)&&(Ie.dirty(),Xe=!0)}),Xe&&Ee.dirty(),d(Ee,Q);var nt=W.getPerformArgs(Ee,G.block);He.each(function(Ie){Ie.perform(nt)}),re|=Ee.perform(nt)}else _e&&_e.each(function(Ie,oe){ee(G,Ie)&&Ie.dirty();var ot=W.getPerformArgs(Ie,G.block);ot.skip=!ue.performRawSeries&&V.isSeriesFiltered(Ie.context.model),d(Ie,Q),re|=Ie.perform(ot)})});function ee(ue,$){return ue.setDirty&&(!ue.dirtyMap||ue.dirtyMap.get($.__pipeline.id))}W.unfinished|=re}s.performSeriesTasks=function(W){var z;W.eachSeries(function(V){z|=V.dataTask.perform()}),this.unfinished|=z},s.plan=function(){this._pipelineMap.each(function(W){var z=W.tail;do{if(z.__block){W.blockIndex=z.__idxInPipeline;break}z=z.getUpstream()}while(z)})};var d=s.updatePayload=function(W,z){z!=="remain"&&(W.context.payload=z)};function g(W,z,V,Q,G){var re=V.seriesTaskMap||(V.seriesTaskMap=m()),ee=z.seriesType,ue=z.getTargetSeries;z.createOnAllSeries?Q.eachRawSeries($):ee?Q.eachRawSeriesByType(ee,$):ue&&ue(Q,G).each($);function $(_e){var Ee=_e.uid,Xe=re.get(Ee)||re.set(Ee,u({plan:_,reset:T,count:I}));Xe.context={model:_e,ecModel:Q,api:G,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:W},R(W,_e,Xe)}var be=W._pipelineMap;re.each(function(_e,Ee){be.get(Ee)||(_e.dispose(),re.removeKey(Ee))})}function v(W,z,V,Q,G){var re=V.overallTask=V.overallTask||u({reset:b});re.context={ecModel:Q,api:G,overallReset:z.overallReset,scheduler:W};var ee=re.agentStubMap=re.agentStubMap||m(),ue=z.seriesType,$=z.getTargetSeries,be=!0,_e=z.modifyOutputEnd;ue?Q.eachRawSeriesByType(ue,Ee):$?$(Q,G).each(Ee):(be=!1,p(Q.getSeries(),Ee));function Ee(He){var nt=He.uid,Ie=ee.get(nt);Ie||(Ie=ee.set(nt,u({reset:S,onDirty:C})),re.dirty()),Ie.context={model:He,overallProgress:be,modifyOutputEnd:_e},Ie.agent=re,Ie.__block=be,R(W,He,Ie)}var Xe=W._pipelineMap;ee.each(function(He,nt){Xe.get(nt)||(He.dispose(),re.dirty(),ee.removeKey(nt))})}function b(W){W.overallReset(W.ecModel,W.api,W.payload)}function S(W,z){return W.overallProgress&&E}function E(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function _(W){return W.plan&&W.plan(W.model,W.ecModel,W.api,W.payload)}function T(W){W.useClearVisual&&W.data.clearAllVisual();var z=W.resetDefines=l(W.reset(W.model,W.ecModel,W.api,W.payload));return z.length>1?x(z,function(V,Q){return O(Q)}):w}var w=O(0);function O(W){return function(z,V){var Q=V.data,G=V.resetDefines[W];if(G&&G.dataEach)for(var re=z.start;re<z.end;re++)G.dataEach(Q,re);else G&&G.progress&&G.progress(z,Q)}}function I(W){return W.data.count()}function R(W,z,V){var Q=z.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,z){return A(W)&&(W={overallReset:W,seriesType:M(W)}),W.uid=i("stageHandler"),z&&(W.visualType=z),W};function M(W){X=null;try{W(F,P)}catch(z){}return X}var F={},P={},X;B(F,t),B(P,o),F.eachSeriesByType=F.eachRawSeriesByType=function(W){X=W},F.eachComponent=function(W){W.mainType==="series"&&W.subType&&(X=W.subType)};function B(W,z){for(var V in z.prototype)W[V]=f}var j=r;k.exports=j},akwb:function(k,D,n){var y=n("RSch"),p=n("bYtY"),x=n("D9ME"),A=n("QBsz");function m(u,a,i){x.call(this,u,a,i),this._lastFrame=0,this._lastFramePercent=0}var f=m.prototype;f.createLine=function(u,a,i){return new y(u,a,i)},f.updateAnimationPoints=function(u,a){this._points=a;for(var i=[0],t=0,o=1;o<a.length;o++){var e=a[o-1],l=a[o];t+=A.dist(e,l),i.push(t)}if(t===0)return;for(var o=0;o<i.length;o++)i[o]/=t;this._offsets=i,this._length=t},f.getLineLength=function(u){return this._length},f.updateSymbolPosition=function(u){var a=u.__t,i=this._points,t=this._offsets,o=i.length;if(!t)return;var e=this._lastFrame,l;if(a<this._lastFramePercent){var r=Math.min(e+1,o-1);for(l=r;l>=0&&!(t[l]<=a);l--);l=Math.min(l,o-2)}else{for(var l=e;l<o&&!(t[l]>a);l++);l=Math.min(l-1,o-2)}A.lerp(u.position,i[l],i[l+1],(a-t[l])/(t[l+1]-t[l]));var s=i[l+1][0]-i[l][0],c=i[l+1][1]-i[l][1];u.rotation=-Math.atan2(c,s)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,u.ignore=!1},p.inherits(m,x);var h=m;k.exports=h},apAg:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("bsht")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="SearchOutlined";var i=A.forwardRef(a);D.default=i},as94:function(k,D,n){var y=n("7aKB"),p=n("3LNs"),x=n("IwbS"),A=n("/y7N"),m=n("Fofx"),f=n("+rIm"),h=n("Znkb"),u=p.extend({makeElOption:function(o,e,l,r,s){var c=l.axis;c.dim==="angle"&&(this.animationThreshold=Math.PI/18);var d=c.polar,g=d.getOtherAxis(c),v=g.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var S=r.get("type");if(S&&S!=="none"){var E=A.buildElStyle(r),C=i[S](c,d,b,v,E);C.style=E,o.graphicKey=C.type,o.pointer=C}var _=r.get("label.margin"),T=a(e,l,r,d,_);A.buildLabelElOption(o,l,r,s,T)}});function a(o,e,l,r,s){var c=e.axis,d=c.dataToCoord(o),g=r.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var v=r.getRadiusAxis().getExtent(),b,S,E;if(c.dim==="radius"){var C=m.create();m.rotate(C,C,g),m.translate(C,C,[r.cx,r.cy]),b=x.applyTransform([d,-s],C);var _=e.getModel("axisLabel").get("rotate")||0,T=f.innerTextLayout(g,_*Math.PI/180,-1);S=T.textAlign,E=T.textVerticalAlign}else{var w=v[1];b=r.coordToPoint([w+s,d]);var O=r.cx,I=r.cy;S=Math.abs(b[0]-O)/w<.3?"center":b[0]>O?"left":"right",E=Math.abs(b[1]-I)/w<.3?"middle":b[1]>I?"top":"bottom"}return{position:b,align:S,verticalAlign:E}}var i={line:function(o,e,l,r,s){return o.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([r[0],l]),e.coordToPoint([r[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(o,e,l,r,s){var c=Math.max(1,o.getBandWidth()),d=Math.PI/180;return o.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,r[0],r[1],(-l-c/2)*d,(-l+c/2)*d)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,l-c/2,l+c/2,0,Math.PI*2)}}};h.registerAxisPointerClass("PolarAxisPointer",u);var t=u;k.exports=t},b56q:function(k,D,n){},b80T:function(k,D,n){var y=n("UNi/"),p=n("03A+"),x=n("Z0cm"),A=n("DSRE"),m=n("wJg7"),f=n("c6wG"),h=Object.prototype,u=h.hasOwnProperty;function a(i,t){var o=x(i),e=!o&&p(i),l=!o&&!e&&A(i),r=!o&&!e&&!l&&f(i),s=o||e||l||r,c=s?y(i.length,String):[],d=c.length;for(var g in i)(t||u.call(i,g))&&!(s&&(g=="length"||l&&(g=="offset"||g=="parent")||r&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||m(g,d)))&&c.push(g);return c}k.exports=a},b80e:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("gKaM")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="DoubleLeftOutlined";var i=A.forwardRef(a);D.default=i},b9oc:function(k,D,n){var y=n("bYtY"),p=y.each,x="\0_ec_hist_store";function A(a,i){var t=u(a);p(i,function(o,e){for(var l=t.length-1;l>=0;l--){var r=t[l];if(r[e])break}if(l<0){var s=a.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(i)}function m(a){var i=u(a),t=i[i.length-1];i.length>1&&i.pop();var o={};return p(t,function(e,l){for(var r=i.length-1;r>=0;r--){var e=i[r][l];if(e){o[l]=e;break}}}),o}function f(a){a[x]=null}function h(a){return u(a).length}function u(a){var i=a[x];return i||(i=a[x]=[{}]),i}D.push=A,D.pop=m,D.clear=f,D.count=h},bBKM:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("+rIm"),f=n("IwbS"),h=["axisLine","axisTickLabel","axisName"],u=x.extendComponentView({type:"radar",render:function(a,i,t){var o=this.group;o.removeAll(),this._buildAxes(a),this._buildSplitLineAndArea(a)},_buildAxes:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes(),o=A.map(t,function(e){var l=new m(e.model,{position:[i.cx,i.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A.each(o,function(e){A.each(h,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes();if(!t.length)return;var o=a.get("shape"),e=a.getModel("splitLine"),l=a.getModel("splitArea"),r=e.getModel("lineStyle"),s=l.getModel("areaStyle"),c=e.get("show"),d=l.get("show"),g=r.get("color"),v=s.get("color");g=A.isArray(g)?g:[g],v=A.isArray(v)?v:[v];var b=[],S=[];function E(j,W,z){var V=z%W.length;return j[V]=j[V]||[],V}if(o==="circle")for(var C=t[0].getTicksCoords(),_=i.cx,T=i.cy,w=0;w<C.length;w++){if(c){var O=E(b,g,w);b[O].push(new f.Circle({shape:{cx:_,cy:T,r:C[w].coord}}))}if(d&&w<C.length-1){var O=E(S,v,w);S[O].push(new f.Ring({shape:{cx:_,cy:T,r0:C[w].coord,r:C[w+1].coord}}))}}else for(var I,R=A.map(t,function(j,W){var z=j.getTicksCoords();return I=I==null?z.length-1:Math.min(z.length-1,I),A.map(z,function(V){return i.coordToPoint(V.coord,W)})}),M=[],w=0;w<=I;w++){for(var F=[],P=0;P<t.length;P++)F.push(R[P][w]);if(F[0]&&F.push(F[0].slice()),c){var O=E(b,g,w);b[O].push(new f.Polyline({shape:{points:F}}))}if(d&&M){var O=E(S,v,w-1);S[O].push(new f.Polygon({shape:{points:F.concat(M)}}))}M=F.slice().reverse()}var X=r.getLineStyle(),B=s.getAreaStyle();A.each(S,function(j,W){this.group.add(f.mergePath(j,{style:A.defaults({stroke:"none",fill:v[W%v.length]},B),silent:!0}))},this),A.each(b,function(j,W){this.group.add(f.mergePath(j,{style:A.defaults({fill:"none",stroke:g[W%g.length]},X),silent:!0}))},this)}});k.exports=u},bBL8:function(k,D,n){var y=n("ProS");n("LPzL"),n("rfSb"),n("JVwQ");var p=n("UnoB"),x=n("cbJ4"),A=n("0/Rx");y.registerLayout(p),y.registerVisual(x),y.registerProcessor(A("themeRiver"))},bE4E:function(k,D,n){},bE4q:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("RIqP"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=n("Zm9Q"),t=n("HQEm"),o=n.n(t),e=n("XBQK"),l=n("H84U"),r=function(M,F){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&F.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,X=Object.getOwnPropertySymbols(M);B<X.length;B++)F.indexOf(X[B])<0&&Object.prototype.propertyIsEnumerable.call(M,X[B])&&(P[X[B]]=M[X[B]]);return P},s=function(F){var P=F.prefixCls,X=F.separator,B=X===void 0?"/":X,j=F.children,W=F.overlay,z=F.dropdownProps,V=r(F,["prefixCls","separator","children","overlay","dropdownProps"]),Q=h.useContext(l.b),G=Q.getPrefixCls,re=G("breadcrumb",P),ee=function(be){return W?h.createElement(e.a,p()({overlay:W,placement:"bottomCenter"},z),h.createElement("span",{className:"".concat(re,"-overlay-link")},be,h.createElement(o.a,null))):be},ue;return"href"in V?ue=h.createElement("a",p()({className:"".concat(re,"-link")},V),j):ue=h.createElement("span",p()({className:"".concat(re,"-link")},V),j),ue=ee(ue),j?h.createElement("span",null,ue,B&&B!==""&&h.createElement("span",{className:"".concat(re,"-separator")},B)):null};s.__ANT_BREADCRUMB_ITEM=!0;var c=s,d=function(F){var P=F.children,X=h.useContext(l.b),B=X.getPrefixCls,j=B("breadcrumb");return h.createElement("span",{className:"".concat(j,"-separator")},P||"/")};d.__ANT_BREADCRUMB_SEPARATOR=!0;var g=d,v=n("BvKs"),b=n("uaoM"),S=n("0n0R"),E=function(M,F){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&F.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,X=Object.getOwnPropertySymbols(M);B<X.length;B++)F.indexOf(X[B])<0&&Object.prototype.propertyIsEnumerable.call(M,X[B])&&(P[X[B]]=M[X[B]]);return P};function C(M,F){if(!M.breadcrumbName)return null;var P=Object.keys(F).join("|"),X=M.breadcrumbName.replace(new RegExp(":(".concat(P,")"),"g"),function(B,j){return F[j]||B});return X}function _(M,F,P,X){var B=P.indexOf(M)===P.length-1,j=C(M,F);return B?h.createElement("span",null,j):h.createElement("a",{href:"#/".concat(X.join("/"))},j)}var T=function(F,P){return F=(F||"").replace(/^\//,""),Object.keys(P).forEach(function(X){F=F.replace(":".concat(X),P[X])}),F},w=function(F){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,B=f()(F),j=T(P,X);return j&&B.push(j),B},O=function(F){var P=F.prefixCls,X=F.separator,B=X===void 0?"/":X,j=F.style,W=F.className,z=F.routes,V=F.children,Q=F.itemRender,G=Q===void 0?_:Q,re=F.params,ee=re===void 0?{}:re,ue=E(F,["prefixCls","separator","style","className","routes","children","itemRender","params"]),$=h.useContext(l.b),be=$.getPrefixCls,_e=$.direction,Ee,Xe=be("breadcrumb",P);if(z&&z.length>0){var He=[];Ee=z.map(function(Ie){var oe=T(Ie.path,ee);oe&&He.push(oe);var ot;return Ie.children&&Ie.children.length&&(ot=h.createElement(v.a,null,Ie.children.map(function(he){return h.createElement(v.a.Item,{key:he.path||he.breadcrumbName},G(he,ee,z,w(He,he.path,ee)))}))),h.createElement(c,{overlay:ot,separator:B,key:oe||Ie.breadcrumbName},G(Ie,ee,z,He))})}else V&&(Ee=Object(i.a)(V).map(function(Ie,oe){return Ie&&(Object(b.a)(Ie.type&&(Ie.type.__ANT_BREADCRUMB_ITEM===!0||Ie.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(S.a)(Ie,{separator:B,key:oe}))}));var nt=a()(W,Xe,A()({},"".concat(Xe,"-rtl"),_e==="rtl"));return h.createElement("div",p()({className:nt,style:j},ue),Ee)};O.Item=c,O.Separator=g;var I=O,R=D.a=I},bKJz:function(k,D,n){},bLfw:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=n("iRjW"),A=n("Yl7c"),m=A.enableClassManagement,f=A.parseClassType,h=n("4NO4"),u=h.makeInner,a=n("+TT/"),i=n("3hzK"),t=u(),o=p.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(r,s,c,d){p.call(this,r,s,c,d),this.uid=x.getUID("ec_cpt_model")},init:function(r,s,c,d){this.mergeDefaultAndTheme(r,c)},mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,d=c?a.getLayoutParams(r):{},g=s.getTheme();y.merge(r,g.get(this.mainType)),y.merge(r,this.getDefaultOption()),c&&a.mergeLayoutParam(r,d,c)},mergeOption:function(r,s){y.merge(this.option,r,!0);var c=this.layoutMode;c&&a.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 d=c.prototype.defaultOption;d&&s.push(d),c=c.superClass}for(var g={},v=s.length-1;v>=0;v--)g=y.merge(g,s[v],!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(o,{registerWhenExtend:!0}),x.enableSubTypeDefaulter(o),x.enableTopologicalTravel(o,e);function e(r){var s=[];return y.each(o.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(o,i);var l=o;k.exports=l},bMXI:function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("Fofx"),A=n("mFDi"),m=n("DN4a"),f=p.applyTransform;function h(){m.call(this)}y.mixin(h,m);function u(t){this.name=t,this.zoomLimit,m.call(this),this._roamTransformable=new h,this._rawTransformable=new h,this._center,this._zoom}u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(t,o,e,l){return this._rect=new A(t,o,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,o,e,l){this.transformTo(t,o,e,l),this._viewRect=new A(t,o,e,l)},transformTo:function(t,o,e,l){var r=this.getBoundingRect(),s=this._rawTransformable;s.transform=r.calculateTransform(new A(t,o,e,l)),s.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var o=this.zoomLimit;o&&(o.max!=null&&(t=Math.min(o.max,t)),o.min!=null&&(t=Math.max(o.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),o=t.x+t.width/2,e=t.y+t.height/2;return[o,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(),o=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),r=this.getZoom();l=p.applyTransform([],l,t),e=p.applyTransform([],e,t),o.origin=l,o.position=[e[0]-l[0],e[1]-l[1]],o.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,o=this._rawTransformable;o.parent=t,t.updateTransform(),o.updateTransform(),x.copy(this.transform||(this.transform=[]),o.transform||x.create()),this._rawTransform=o.getLocalTransform(),this.invTransform=this.invTransform||[],x.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,o=this._rawTransformable;return{roamTransform:t?y.slice(t):x.create(),rawScale:y.slice(o.scale),rawPosition:y.slice(o.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,o,e){var l=o?this._rawTransform:this.transform;return e=e||[],l?f(e,t,l):p.copy(e,t)},pointToData:function(t){var o=this.invTransform;return o?f([],t,o):[t[0],t[1]]},convertToPixel:y.curry(a,"dataToPoint"),convertFromPixel:y.curry(a,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},y.mixin(u,m);function a(t,o,e,l){var r=e.seriesModel,s=r?r.coordinateSystem:null;return s===this?s[t](l):null}var i=u;k.exports=i},bNin:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("FBjb"),A=n("Itpr"),m=A.radialCoordinate,f=n("ProS"),h=n("4mN7"),u=n("bMXI"),a=n("Ae+d"),i=n("SgGq"),t=n("xSat"),o=t.onIrrelevantElement,e=n("Tghj"),l=e.__DEV__,r=n("OELB"),s=r.parsePercent,c=p.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(_,T){var w=T.childPoints,O=w.length,I=T.parentPoint,R=w[0],M=w[O-1];if(O===1){_.moveTo(I[0],I[1]),_.lineTo(R[0],R[1]);return}var F=T.orient,P=F==="TB"||F==="BT"?0:1,X=1-P,B=s(T.forkPosition,1),j=[];j[P]=I[P],j[X]=I[X]+(M[X]-I[X])*B,_.moveTo(I[0],I[1]),_.lineTo(j[0],j[1]),_.moveTo(R[0],R[1]),j[P]=R[P],_.lineTo(j[0],j[1]),j[P]=M[P],_.lineTo(j[0],j[1]),_.lineTo(M[0],M[1]);for(var W=1;W<O-1;W++){var z=w[W];_.moveTo(z[0],z[1]),j[P]=z[P],_.lineTo(j[0],j[1])}}}),d=f.extendChartView({type:"tree",init:function(_,T){this._oldTree,this._mainGroup=new p.Group,this._controller=new i(T.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,T,w,O){var I=_.getData(),R=_.layoutInfo,M=this._mainGroup,F=_.get("layout");F==="radial"?M.attr("position",[R.x+R.width/2,R.y+R.height/2]):M.attr("position",[R.x,R.y]),this._updateViewCoordSys(_,R,F),this._updateController(_,T,w);var P=this._data,X={expandAndCollapse:_.get("expandAndCollapse"),layout:F,edgeShape:_.get("edgeShape"),edgeForkPosition:_.get("edgeForkPosition"),orient:_.getOrient(),curvature:_.get("lineStyle.curveness"),symbolRotate:_.get("symbolRotate"),symbolOffset:_.get("symbolOffset"),hoverAnimation:_.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(P).add(function(B){g(I,B)&&b(I,B,null,M,_,X)}).update(function(B,j){var W=P.getItemGraphicEl(j);if(!g(I,B)){W&&E(P,j,W,M,_,X);return}b(I,B,W,M,_,X)}).remove(function(B){var j=P.getItemGraphicEl(B);j&&E(P,B,j,M,_,X)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),X.expandAndCollapse===!0&&I.eachItemGraphicEl(function(B,j){B.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:j})})}),this._data=I},_updateViewCoordSys:function(_){var T=_.getData(),w=[];T.each(function(P){var X=T.getItemLayout(P);X&&!isNaN(X.x)&&!isNaN(X.y)&&w.push([+X.x,+X.y])});var O=[],I=[];h.fromPoints(w,O,I);var R=this._min,M=this._max;I[0]-O[0]===0&&(O[0]=R?R[0]:O[0]-1,I[0]=M?M[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=R?R[1]:O[1]-1,I[1]=M?M[1]:I[1]+1);var F=_.coordinateSystem=new u;F.zoomLimit=_.get("scaleLimit"),F.setBoundingRect(O[0],O[1],I[0]-O[0],I[1]-O[1]),F.setCenter(_.get("center")),F.setZoom(_.get("zoom")),this.group.attr({position:F.position,scale:F.scale}),this._viewCoordSys=F,this._min=O,this._max=I},_updateController:function(_,T,w){var O=this._controller,I=this._controllerHost,R=this.group;O.setPointerChecker(function(M,F,P){var X=R.getBoundingRect();return X.applyTransform(R.transform),X.contain(F,P)&&!o(M,w,_)}),O.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),O.off("pan").off("zoom").on("pan",function(M){a.updateViewOnPan(I,M.dx,M.dy),w.dispatchAction({seriesId:_.id,type:"treeRoam",dx:M.dx,dy:M.dy})},this).on("zoom",function(M){a.updateViewOnZoom(I,M.scale,M.originX,M.originY),w.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:M.scale,originX:M.originX,originY:M.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var T=_.getData(),w=this._getNodeGlobalScale(_),O=[w,w];T.eachItemGraphicEl(function(I,R){I.attr("scale",O)})},_getNodeGlobalScale:function(_){var T=_.coordinateSystem;if(T.type!=="view")return 1;var w=this._nodeScaleRatio,O=T.scale,I=O&&O[0]||1,R=T.getZoom(),M=(R-1)*w+1;return M/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(_,T){var w=_.getItemLayout(T);return w&&!isNaN(w.x)&&!isNaN(w.y)&&_.getItemVisual(T,"symbol")!=="none"}function v(_,T,w){return w.itemModel=T,w.itemStyle=T.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=T.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=T.getModel("lineStyle").getLineStyle(),w.labelModel=T.getModel("label"),w.hoverLabelModel=T.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function b(_,T,w,O,I,R){var M=!w,F=_.tree.getNodeByDataIndex(T),P=F.getModel(),R=v(F,P,R),X=_.tree.root,B=F.parentNode===X?F:F.parentNode||F,j=_.getItemGraphicEl(B.dataIndex),W=B.getLayout(),z=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:W,V=F.getLayout();M?(w=new x(_,T,R),w.attr("position",[z.x,z.y])):w.updateData(_,T,R),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=V.rawX,w.__radialRawY=V.rawY,O.add(w),_.setItemGraphicEl(T,w),p.updateProps(w,{position:[V.x,V.y]},I);var Q=w.getSymbolPath();if(R.layout==="radial"){var G=X.children[0],re=G.getLayout(),ee=G.children.length,ue,$;if(V.x===re.x&&F.isExpand===!0){var be={};be.x=(G.children[0].getLayout().x+G.children[ee-1].getLayout().x)/2,be.y=(G.children[0].getLayout().y+G.children[ee-1].getLayout().y)/2,ue=Math.atan2(be.y-re.y,be.x-re.x),ue<0&&(ue=Math.PI*2+ue),$=be.x<re.x,$&&(ue=ue-Math.PI)}else ue=Math.atan2(V.y-re.y,V.x-re.x),ue<0&&(ue=Math.PI*2+ue),F.children.length===0||F.children.length!==0&&F.isExpand===!1?($=V.x<re.x,$&&(ue=ue-Math.PI)):($=V.x>re.x,$||(ue=ue-Math.PI));var _e=$?"left":"right",Ee=R.labelModel.get("rotate"),Xe=Ee*(Math.PI/180);Q.setStyle({textPosition:R.labelModel.get("position")||_e,textRotation:Ee==null?-ue:Xe,textOrigin:"center",verticalAlign:"middle"})}S(I,F,X,w,z,W,V,O,R)}function S(_,T,w,O,I,R,M,F,P){var X=P.edgeShape,B=O.__edge;if(X==="curve")T.parentNode&&T.parentNode!==w&&(B||(B=O.__edge=new p.BezierCurve({shape:C(P,I,I),style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(B,{shape:C(P,R,M),style:{opacity:1}},_));else if(X==="polyline"&&(P.layout==="orthogonal"&&(T!==w&&T.children&&T.children.length!==0&&T.isExpand===!0))){for(var j=T.children,W=[],z=0;z<j.length;z++){var V=j[z].getLayout();W.push([V.x,V.y])}B||(B=O.__edge=new c({shape:{parentPoint:[M.x,M.y],childPoints:[[M.x,M.y]],orient:P.orient,forkPosition:P.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),p.updateProps(B,{shape:{parentPoint:[M.x,M.y],childPoints:W},style:{opacity:1}},_)}F.add(B)}function E(_,T,w,O,I,R){for(var M=_.tree.getNodeByDataIndex(T),F=_.tree.root,P=M.getModel(),R=v(M,P,R),X=M.parentNode===F?M:M.parentNode||M,B=R.edgeShape,j;j=X.getLayout(),j==null;)X=X.parentNode===F?X:X.parentNode||X;p.updateProps(w,{position:[j.x+1,j.y+1]},I,function(){O.remove(w),_.setItemGraphicEl(T,null)}),w.fadeOut(null,{keepLabel:!0});var W=_.getItemGraphicEl(X.dataIndex),z=W.__edge,V=w.__edge||(X.isExpand===!1||X.children.length===1?z:void 0),B=R.edgeShape;V&&(B==="curve"?p.updateProps(V,{shape:C(R,j,j),style:{opacity:0}},I,function(){O.remove(V)}):B==="polyline"&&R.layout==="orthogonal"&&p.updateProps(V,{shape:{parentPoint:[j.x,j.y],childPoints:[[j.x,j.y]]},style:{opacity:0}},I,function(){O.remove(V)}))}function C(_,T,w){var O,I,R,M,F=_.orient,P,X,B,j;if(_.layout==="radial"){P=T.rawX,B=T.rawY,X=w.rawX,j=w.rawY;var W=m(P,B),z=m(P,B+(j-B)*_.curvature),V=m(X,j+(B-j)*_.curvature),Q=m(X,j);return{x1:W.x,y1:W.y,x2:Q.x,y2:Q.y,cpx1:z.x,cpy1:z.y,cpx2:V.x,cpy2:V.y}}else P=T.x,B=T.y,X=w.x,j=w.y,(F==="LR"||F==="RL")&&(O=P+(X-P)*_.curvature,I=B,R=X+(P-X)*_.curvature,M=j),(F==="TB"||F==="BT")&&(O=P,I=B+(j-B)*_.curvature,R=X,M=j+(B-j)*_.curvature);return{x1:P,y1:B,x2:X,y2:j,cpx1:O,cpy1:I,cpx2:R,cpy2:M}}k.exports=d},bQjk:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.CipherParams,f=x.enc,h=f.Hex,u=x.format,a=u.Hex={stringify:function(t){return t.ciphertext.toString(h)},parse:function(t){var o=h.parse(t);return m.create({ciphertext:o})}}}(),y.format.Hex})},bT9E:function(k,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("VTBJ");function p(x,A){var m=Object(y.a)({},x);return Array.isArray(A)&&A.forEach(function(f){delete m[f]}),m}},bX4T:function(k,D,n){"use strict";n.d(D,"a",function(){return u});var y=n("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`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,A="".concat(p," ").concat(x).split(/[\s\n]+/),m="aria-",f="data-";function h(a,i){return a.indexOf(i)===0}function u(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;i===!1?t={aria:!0,data:!0,attr:!0}:i===!0?t={aria:!0}:t=Object(y.a)({},i);var o={};return Object.keys(a).forEach(function(e){(t.aria&&(e==="role"||h(e,m))||t.data&&h(e,f)||t.attr&&A.includes(e))&&(o[e]=a[e])}),o}},bYtY:function(k,D){var n={"[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,x=Array.prototype,A=x.forEach,m=x.filter,f=x.slice,h=x.map,u=x.reduce,a={};function i(Ie,oe){Ie==="createCanvas"&&(c=null),a[Ie]=oe}function t(Ie){if(Ie==null||typeof Ie!="object")return Ie;var oe=Ie,ot=p.call(Ie);if(ot==="[object Array]"){if(!_e(Ie)){oe=[];for(var he=0,J=Ie.length;he<J;he++)oe[he]=t(Ie[he])}}else if(y[ot]){if(!_e(Ie)){var Y=Ie.constructor;if(Ie.constructor.from)oe=Y.from(Ie);else{oe=new Y(Ie.length);for(var he=0,J=Ie.length;he<J;he++)oe[he]=t(Ie[he])}}}else if(!n[ot]&&!_e(Ie)&&!j(Ie)){oe={};for(var q in Ie)Ie.hasOwnProperty(q)&&(oe[q]=t(Ie[q]))}return oe}function o(Ie,oe,ot){if(!P(oe)||!P(Ie))return ot?t(oe):Ie;for(var he in oe)if(oe.hasOwnProperty(he)){var J=Ie[he],Y=oe[he];P(Y)&&P(J)&&!R(Y)&&!R(J)&&!j(Y)&&!j(J)&&!X(Y)&&!X(J)&&!_e(Y)&&!_e(J)?o(J,Y,ot):(ot||!(he in Ie))&&(Ie[he]=t(oe[he],!0))}return Ie}function e(Ie,oe){for(var ot=Ie[0],he=1,J=Ie.length;he<J;he++)ot=o(ot,Ie[he],oe);return ot}function l(Ie,oe){for(var ot in oe)oe.hasOwnProperty(ot)&&(Ie[ot]=oe[ot]);return Ie}function r(Ie,oe,ot){for(var he in oe)oe.hasOwnProperty(he)&&(ot?oe[he]!=null:Ie[he]==null)&&(Ie[he]=oe[he]);return Ie}var s=function(){return a.createCanvas()};a.createCanvas=function(){return document.createElement("canvas")};var c;function d(){return c||(c=s().getContext("2d")),c}function g(Ie,oe){if(Ie){if(Ie.indexOf)return Ie.indexOf(oe);for(var ot=0,he=Ie.length;ot<he;ot++)if(Ie[ot]===oe)return ot}return-1}function v(Ie,oe){var ot=Ie.prototype;function he(){}he.prototype=oe.prototype,Ie.prototype=new he;for(var J in ot)ot.hasOwnProperty(J)&&(Ie.prototype[J]=ot[J]);Ie.prototype.constructor=Ie,Ie.superClass=oe}function b(Ie,oe,ot){Ie="prototype"in Ie?Ie.prototype:Ie,oe="prototype"in oe?oe.prototype:oe,r(Ie,oe,ot)}function S(Ie){return Ie?typeof Ie=="string"?!1:typeof Ie.length=="number":void 0}function E(Ie,oe,ot){if(!(Ie&&oe))return;if(Ie.forEach&&Ie.forEach===A)Ie.forEach(oe,ot);else if(Ie.length===+Ie.length)for(var he=0,J=Ie.length;he<J;he++)oe.call(ot,Ie[he],he,Ie);else for(var Y in Ie)Ie.hasOwnProperty(Y)&&oe.call(ot,Ie[Y],Y,Ie)}function C(Ie,oe,ot){if(!(Ie&&oe))return;if(Ie.map&&Ie.map===h)return Ie.map(oe,ot);for(var he=[],J=0,Y=Ie.length;J<Y;J++)he.push(oe.call(ot,Ie[J],J,Ie));return he}function _(Ie,oe,ot,he){if(!(Ie&&oe))return;if(Ie.reduce&&Ie.reduce===u)return Ie.reduce(oe,ot,he);for(var J=0,Y=Ie.length;J<Y;J++)ot=oe.call(he,ot,Ie[J],J,Ie);return ot}function T(Ie,oe,ot){if(!(Ie&&oe))return;if(Ie.filter&&Ie.filter===m)return Ie.filter(oe,ot);for(var he=[],J=0,Y=Ie.length;J<Y;J++)oe.call(ot,Ie[J],J,Ie)&&he.push(Ie[J]);return he}function w(Ie,oe,ot){if(!(Ie&&oe))return;for(var he=0,J=Ie.length;he<J;he++)if(oe.call(ot,Ie[he],he,Ie))return Ie[he]}function O(Ie,oe){var ot=f.call(arguments,2);return function(){return Ie.apply(oe,ot.concat(f.call(arguments)))}}function I(Ie){var oe=f.call(arguments,1);return function(){return Ie.apply(this,oe.concat(f.call(arguments)))}}function R(Ie){return p.call(Ie)==="[object Array]"}function M(Ie){return typeof Ie=="function"}function F(Ie){return p.call(Ie)==="[object String]"}function P(Ie){var oe=typeof Ie;return oe==="function"||!!Ie&&oe==="object"}function X(Ie){return!!n[p.call(Ie)]}function B(Ie){return!!y[p.call(Ie)]}function j(Ie){return typeof Ie=="object"&&typeof Ie.nodeType=="number"&&typeof Ie.ownerDocument=="object"}function W(Ie){return Ie!==Ie}function z(Ie){for(var oe=0,ot=arguments.length;oe<ot;oe++)if(arguments[oe]!=null)return arguments[oe]}function V(Ie,oe){return Ie!=null?Ie:oe}function Q(Ie,oe,ot){return Ie!=null?Ie:oe!=null?oe:ot}function G(){return Function.call.apply(f,arguments)}function re(Ie){if(typeof Ie=="number")return[Ie,Ie,Ie,Ie];var oe=Ie.length;return oe===2?[Ie[0],Ie[1],Ie[0],Ie[1]]:oe===3?[Ie[0],Ie[1],Ie[2],Ie[1]]:Ie}function ee(Ie,oe){if(!Ie)throw new Error(oe)}function ue(Ie){return Ie==null?null:typeof Ie.trim=="function"?Ie.trim():Ie.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var $="__ec_primitive__";function be(Ie){Ie[$]=!0}function _e(Ie){return Ie[$]}function Ee(Ie){var oe=R(Ie);this.data={};var ot=this;Ie instanceof Ee?Ie.each(he):Ie&&E(Ie,he);function he(J,Y){oe?ot.set(J,Y):ot.set(Y,J)}}Ee.prototype={constructor:Ee,get:function(oe){return this.data.hasOwnProperty(oe)?this.data[oe]:null},set:function(oe,ot){return this.data[oe]=ot},each:function(oe,ot){ot!==void 0&&(oe=O(oe,ot));for(var he in this.data)this.data.hasOwnProperty(he)&&oe(this.data[he],he)},removeKey:function(oe){delete this.data[oe]}};function Xe(Ie){return new Ee(Ie)}function He(Ie,oe){for(var ot=new Ie.constructor(Ie.length+oe.length),he=0;he<Ie.length;he++)ot[he]=Ie[he];var J=Ie.length;for(he=0;he<oe.length;he++)ot[he+J]=oe[he];return ot}function nt(){}D.$override=i,D.clone=t,D.merge=o,D.mergeAll=e,D.extend=l,D.defaults=r,D.createCanvas=s,D.getContext=d,D.indexOf=g,D.inherits=v,D.mixin=b,D.isArrayLike=S,D.each=E,D.map=C,D.reduce=_,D.filter=T,D.find=w,D.bind=O,D.curry=I,D.isArray=R,D.isFunction=M,D.isString=F,D.isObject=P,D.isBuiltInObject=X,D.isTypedArray=B,D.isDom=j,D.eqNaN=W,D.retrieve=z,D.retrieve2=V,D.retrieve3=Q,D.slice=G,D.normalizeCssArray=re,D.assert=ee,D.trim=ue,D.setAsPrimitive=be,D.isPrimitive=_e,D.createHashMap=Xe,D.concatArray=He,D.noop=nt},bZqE:function(k,D){function n(p,x,A){for(var m=[p],f=[],h;h=m.pop();)if(f.push(h),h.isExpand){var u=h.children;if(u.length)for(var a=0;a<u.length;a++)m.push(u[a])}for(;h=f.pop();)x(h,A)}function y(p,x){for(var A=[p],m;m=A.pop();)if(x(m),m.isExpand){var f=m.children;if(f.length)for(var h=f.length-1;h>=0;h--)A.push(f[h])}}D.eachAfter=n,D.eachBefore=y},bahg:function(k,D){function n(y){return y.split("")}k.exports=n},bbsP:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("CWI+"),A=n.n(x)},bogI:function(k,D,n){"use strict";n.d(D,"a",function(){return y});var y=function(x){if(!x)return null;var A=typeof x=="function";return A?x():x}},bsht:function(k,D,n){"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,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("TSYQ"),h=n.n(f),u=n("BGR+"),a=n("H84U"),i=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},t=function(_){return m.createElement(a.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,R=_.hoverable,M=R===void 0?!0:R,F=i(_,["prefixCls","className","hoverable"]),P=w("card",O),X=h()("".concat(P,"-grid"),I,p()({},"".concat(P,"-grid-hoverable"),M));return m.createElement("div",A()({},F,{className:X}))})},o=t,e=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},l=function(_){return m.createElement(a.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,R=_.avatar,M=_.title,F=_.description,P=e(_,["prefixCls","className","avatar","title","description"]),X=w("card",O),B=h()("".concat(X,"-meta"),I),j=R?m.createElement("div",{className:"".concat(X,"-meta-avatar")},R):null,W=M?m.createElement("div",{className:"".concat(X,"-meta-title")},M):null,z=F?m.createElement("div",{className:"".concat(X,"-meta-description")},F):null,V=W||z?m.createElement("div",{className:"".concat(X,"-meta-detail")},W,z):null;return m.createElement("div",A()({},P,{className:B}),j,V)})},r=l,s=n("ZTPi"),c=n("BMrR"),d=n("kPKH"),g=n("3Nzz"),v=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T};function b(C){var _=C.map(function(T,w){return m.createElement("li",{style:{width:"".concat(100/C.length,"%")},key:"action-".concat(w)},m.createElement("span",null,T))});return _}var S=function(_){var T,w,O=m.useContext(a.b),I=O.getPrefixCls,R=O.direction,M=m.useContext(g.b),F=function(hr){_.onTabChange&&_.onTabChange(hr)},P=function(){var hr;return m.Children.forEach(_.children,function(Gt){Gt&&Gt.type&&Gt.type===o&&(hr=!0)}),hr},X=_.prefixCls,B=_.className,j=_.extra,W=_.headStyle,z=W===void 0?{}:W,V=_.bodyStyle,Q=V===void 0?{}:V,G=_.title,re=_.loading,ee=_.bordered,ue=ee===void 0?!0:ee,$=_.size,be=_.type,_e=_.cover,Ee=_.actions,Xe=_.tabList,He=_.children,nt=_.activeTabKey,Ie=_.defaultActiveTabKey,oe=_.tabBarExtraContent,ot=_.hoverable,he=_.tabProps,J=he===void 0?{}:he,Y=v(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),q=I("card",X),fe=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,we=m.createElement("div",{className:"".concat(q,"-loading-block")}),Ne=m.createElement("div",{className:"".concat(q,"-loading-content"),style:fe},m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:22},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:8},we),m.createElement(d.a,{span:15},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:6},we),m.createElement(d.a,{span:18},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:13},we),m.createElement(d.a,{span:9},we)),m.createElement(c.a,{gutter:8},m.createElement(d.a,{span:4},we),m.createElement(d.a,{span:3},we),m.createElement(d.a,{span:16},we))),je=nt!==void 0,me=A()(A()({},J),(T={},p()(T,je?"activeKey":"defaultActiveKey",je?nt:Ie),p()(T,"tabBarExtraContent",oe),T)),Ce,Fe=Xe&&Xe.length?m.createElement(s.a,A()({size:"large"},me,{className:"".concat(q,"-head-tabs"),onChange:F}),Xe.map(function(Yt){return m.createElement(s.a.TabPane,{tab:Yt.tab,disabled:Yt.disabled,key:Yt.key})})):null;(G||j||Fe)&&(Ce=m.createElement("div",{className:"".concat(q,"-head"),style:z},m.createElement("div",{className:"".concat(q,"-head-wrapper")},G&&m.createElement("div",{className:"".concat(q,"-head-title")},G),j&&m.createElement("div",{className:"".concat(q,"-extra")},j)),Fe));var it=_e?m.createElement("div",{className:"".concat(q,"-cover")},_e):null,Ct=m.createElement("div",{className:"".concat(q,"-body"),style:Q},re?Ne:He),mt=Ee&&Ee.length?m.createElement("ul",{className:"".concat(q,"-actions")},b(Ee)):null,Ve=Object(u.default)(Y,["onTabChange"]),or=$||M,dt=h()(q,B,(w={},p()(w,"".concat(q,"-loading"),re),p()(w,"".concat(q,"-bordered"),ue),p()(w,"".concat(q,"-hoverable"),ot),p()(w,"".concat(q,"-contain-grid"),P()),p()(w,"".concat(q,"-contain-tabs"),Xe&&Xe.length),p()(w,"".concat(q,"-").concat(or),or),p()(w,"".concat(q,"-type-").concat(be),!!be),p()(w,"".concat(q,"-rtl"),R==="rtl"),w));return m.createElement("div",A()({},Ve,{className:dt}),Ce,it,Ct,mt)};S.Grid=o,S.Meta=r;var E=D.a=S},c2i1:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("Yl7c"),m=A.enableClassCheck;function f(e){return"_EC_"+e}var h=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=h.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 a(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]),a.isInstance(e)||(e=s[f(e)]),a.isInstance(l)||(l=s[f(l)]),!e||!l)return;var d=e.id+"-"+l.id;if(c[d])return;var g=new i(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[d]=g,g},u.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},u.getEdge=function(e,l){a.isInstance(e)&&(e=e.id),a.isInstance(l)&&(l=l.id);var 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(a.isInstance(l)||(l=this._nodesMap[f(l)]),!l)return;for(var c=r==="out"?"outEdges":r==="in"?"inEdges":"edges",d=0;d<this.nodes.length;d++)this.nodes[d].__visited=!1;if(e.call(s,l,null))return;for(var g=[l];g.length;)for(var v=g.shift(),b=v[c],d=0;d<b.length;d++){var S=b[d],E=S.node1===v?S.node2:S.node1;if(!E.__visited){if(e.call(s,E,v))return;g.push(E),E.__visited=!0}}},u.update=function(){for(var e=this.data,l=this.edgeData,r=this.nodes,s=this.edges,c=0,d=r.length;c<d;c++)r[c].dataIndex=-1;for(var c=0,d=e.count();c<d;c++)r[e.getRawIndex(c)].dataIndex=c;l.filterSelf(function(g){var v=s[l.getRawIndex(g)];return v.node1.dataIndex>=0&&v.node2.dataIndex>=0});for(var c=0,d=s.length;c<d;c++)s[c].dataIndex=-1;for(var c=0,d=l.count();c<d;c++)s[l.getRawIndex(c)].dataIndex=c},u.clone=function(){for(var e=new h(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 a(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}a.prototype={constructor:a,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,r=l.data.getItemModel(this.dataIndex);return r.getModel(e)}};function i(e,l,r){this.node1=e,this.node2=l,this.dataIndex=r==null?-1:r}i.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)}}};x.mixin(a,t("hostGraph","data")),x.mixin(i,t("hostGraph","edgeData")),h.Node=a,h.Edge=i,m(a),m(i);var o=h;k.exports=o},c3jg:function(k,D,n){"use strict";n.d(D,"e",function(){return h}),n.d(D,"c",function(){return a}),n.d(D,"d",function(){return i}),n.d(D,"a",function(){return o}),n.d(D,"f",function(){return e}),n.d(D,"b",function(){return l});var y=n("KQm4"),p=n("VTBJ"),x=n("Ff2n"),A=n("Zm9Q"),m=n("Kwbf"),f=n("wPhX");function h(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(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(v){var b=v.key,S=v.children;Object(m.a)(b!=null,"Tree node must have a certain key: [".concat(g).concat(b,"]"));var E=String(b);Object(m.a)(!s.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),s.set(E,!0),c(S,"".concat(g).concat(E," > "))})}c(r)}function a(r){function s(c){var d=Object(A.a)(c);return d.map(function(g){if(!Object(f.i)(g))return Object(m.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var v=g.key,b=g.props,S=b.children,E=Object(x.a)(b,["children"]),C=Object(p.a)({key:v},E),_=s(S);return _.length&&(C.children=_),C}).filter(function(g){return g})}return s(r)}function i(){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),d=[];function g(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(S,E){var C=Object(f.h)(b?b.pos:"0",E),_=h(S.key,C),T=Object(p.a)(Object(p.a)({},S),{},{parent:b,pos:C,children:null,data:S,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[E===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[E===v.length-1])});return d.push(T),s===!0||c.has(_)?T.children=g(S.children||[],T):T.children=[],T})}return g(r),d}function t(r,s,c){var d;c?typeof c=="string"?d=function(b){return b[c]}:typeof c=="function"&&(d=function(b){return c(b)}):d=function(b,S){return h(b.key,S)};function g(v,b,S){var E=v?v.children:r,C=v?Object(f.h)(S.pos,b):"0";if(v){var _=d(v,C),T={node:v,index:b,pos:C,key:_,parentPos:S.node?S.pos:null,level:S.level+1};s(T)}E&&E.forEach(function(w,O){g(w,O,{node:v,pos:C,level:S?S.level+1:-1})})}g(null)}function o(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.initWrapper,d=s.processEntity,g=s.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,b={},S={},E={posEntities:b,keyEntities:S};return c&&(E=c(E)||E),t(r,function(C){var _=C.node,T=C.index,w=C.pos,O=C.key,I=C.parentPos,R=C.level,M={node:_,index:T,key:O,pos:w,level:R},F=h(O,w);b[w]=M,S[F]=M,M.parent=b[I],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),d&&d(M,E)},v),g&&g(E),E}function e(r,s){var c=s.expandedKeys,d=s.selectedKeys,g=s.loadedKeys,v=s.loadingKeys,b=s.checkedKeys,S=s.halfCheckedKeys,E=s.dragOverNodeKey,C=s.dropPosition,_=s.keyEntities,T=_[r],w={eventKey:r,expanded:c.indexOf(r)!==-1,selected:d.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:v.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:S.indexOf(r)!==-1,pos:String(T?T.pos:""),dragOver:E===r&&C===0,dragOverGapTop:E===r&&C===-1,dragOverGapBottom:E===r&&C===1};return w}function l(r){var s=r.data,c=r.expanded,d=r.selected,g=r.checked,v=r.loaded,b=r.loading,S=r.halfChecked,E=r.dragOver,C=r.dragOverGapTop,_=r.dragOverGapBottom,T=r.pos,w=r.active,O=Object(p.a)(Object(p.a)({},s),{},{expanded:c,selected:d,checked:g,loaded:v,loading:b,halfChecked:S,dragOver:E,dragOverGapTop:C,dragOverGapBottom:_,pos:T,active:w});return"props"in O||Object.defineProperty(O,"props",{get:function(){return Object(m.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),O}},c5Ni:function(k,D,n){},c5fP:function(k,D,n){"use strict";function y(dt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(hr){return typeof hr}:y=function(hr){return hr&&typeof Symbol=="function"&&hr.constructor===Symbol&&hr!==Symbol.prototype?"symbol":typeof hr},y(dt)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=it,D._tr_stored_block=Ct,D._tr_flush_block=Ve,D._tr_tally=or,D._tr_align=mt;var p=A(n("6BzB"));function x(){if(typeof WeakMap!="function")return null;var dt=new WeakMap;return x=function(){return dt},dt}function A(dt){if(dt&&dt.__esModule)return dt;if(dt===null||y(dt)!=="object"&&typeof dt!="function")return{default:dt};var Yt=x();if(Yt&&Yt.has(dt))return Yt.get(dt);var hr={},Gt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in dt)if(Object.prototype.hasOwnProperty.call(dt,Pt)){var Xt=Gt?Object.getOwnPropertyDescriptor(dt,Pt):null;Xt&&(Xt.get||Xt.set)?Object.defineProperty(hr,Pt,Xt):hr[Pt]=dt[Pt]}return hr.default=dt,Yt&&Yt.set(dt,hr),hr}var m=4,f=0,h=1,u=2;function a(dt){for(var Yt=dt.length;--Yt>=0;)dt[Yt]=0}var i=0,t=1,o=2,e=3,l=258,r=29,s=256,c=s+1+r,d=30,g=19,v=2*c+1,b=15,S=16,E=7,C=256,_=16,T=17,w=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=512,P=new Array((c+2)*2);a(P);var X=new Array(d*2);a(X);var B=new Array(F);a(B);var j=new Array(l-e+1);a(j);var W=new Array(r);a(W);var z=new Array(d);a(z);function V(dt,Yt,hr,Gt,Pt){this.static_tree=dt,this.extra_bits=Yt,this.extra_base=hr,this.elems=Gt,this.max_length=Pt,this.has_stree=dt&&dt.length}var Q,G,re;function ee(dt,Yt){this.dyn_tree=dt,this.max_code=0,this.stat_desc=Yt}function ue(dt){return dt<256?B[dt]:B[256+(dt>>>7)]}function $(dt,Yt){dt.pending_buf[dt.pending++]=Yt&255,dt.pending_buf[dt.pending++]=Yt>>>8&255}function be(dt,Yt,hr){dt.bi_valid>S-hr?(dt.bi_buf|=Yt<<dt.bi_valid&65535,$(dt,dt.bi_buf),dt.bi_buf=Yt>>S-dt.bi_valid,dt.bi_valid+=hr-S):(dt.bi_buf|=Yt<<dt.bi_valid&65535,dt.bi_valid+=hr)}function _e(dt,Yt,hr){be(dt,hr[Yt*2],hr[Yt*2+1])}function Ee(dt,Yt){var hr=0;do hr|=dt&1,dt>>>=1,hr<<=1;while(--Yt>0);return hr>>>1}function Xe(dt){dt.bi_valid===16?($(dt,dt.bi_buf),dt.bi_buf=0,dt.bi_valid=0):dt.bi_valid>=8&&(dt.pending_buf[dt.pending++]=dt.bi_buf&255,dt.bi_buf>>=8,dt.bi_valid-=8)}function He(dt,Yt){var hr=Yt.dyn_tree,Gt=Yt.max_code,Pt=Yt.stat_desc.static_tree,Xt=Yt.stat_desc.has_stree,Ge=Yt.stat_desc.extra_bits,pe=Yt.stat_desc.extra_base,se=Yt.stat_desc.max_length,lt,Ze,de,_t,er,yt,Ar=0;for(_t=0;_t<=b;_t++)dt.bl_count[_t]=0;for(hr[dt.heap[dt.heap_max]*2+1]=0,lt=dt.heap_max+1;lt<v;lt++){if(Ze=dt.heap[lt],_t=hr[hr[Ze*2+1]*2+1]+1,_t>se&&(_t=se,Ar++),hr[Ze*2+1]=_t,Ze>Gt)continue;dt.bl_count[_t]++,er=0,Ze>=pe&&(er=Ge[Ze-pe]),yt=hr[Ze*2],dt.opt_len+=yt*(_t+er),Xt&&(dt.static_len+=yt*(Pt[Ze*2+1]+er))}if(Ar===0)return;do{for(_t=se-1;dt.bl_count[_t]===0;)_t--;dt.bl_count[_t]--,dt.bl_count[_t+1]+=2,dt.bl_count[se]--,Ar-=2}while(Ar>0);for(_t=se;_t!==0;_t--)for(Ze=dt.bl_count[_t];Ze!==0;){if(de=dt.heap[--lt],de>Gt)continue;hr[de*2+1]!==_t&&(dt.opt_len+=(_t-hr[de*2+1])*hr[de*2],hr[de*2+1]=_t),Ze--}}function nt(dt,Yt,hr){var Gt=new Array(b+1),Pt=0,Xt,Ge;for(Xt=1;Xt<=b;Xt++)Gt[Xt]=Pt=Pt+hr[Xt-1]<<1;for(Ge=0;Ge<=Yt;Ge++){var pe=dt[Ge*2+1];if(pe===0)continue;dt[Ge*2]=Ee(Gt[pe]++,pe)}}function Ie(){var dt,Yt,hr,Gt,Pt,Xt=new Array(b+1);for(hr=0,Gt=0;Gt<r-1;Gt++)for(W[Gt]=hr,dt=0;dt<1<<O[Gt];dt++)j[hr++]=Gt;for(j[hr-1]=Gt,Pt=0,Gt=0;Gt<16;Gt++)for(z[Gt]=Pt,dt=0;dt<1<<I[Gt];dt++)B[Pt++]=Gt;for(Pt>>=7;Gt<d;Gt++)for(z[Gt]=Pt<<7,dt=0;dt<1<<I[Gt]-7;dt++)B[256+Pt++]=Gt;for(Yt=0;Yt<=b;Yt++)Xt[Yt]=0;for(dt=0;dt<=143;)P[dt*2+1]=8,dt++,Xt[8]++;for(;dt<=255;)P[dt*2+1]=9,dt++,Xt[9]++;for(;dt<=279;)P[dt*2+1]=7,dt++,Xt[7]++;for(;dt<=287;)P[dt*2+1]=8,dt++,Xt[8]++;for(nt(P,c+1,Xt),dt=0;dt<d;dt++)X[dt*2+1]=5,X[dt*2]=Ee(dt,5);Q=new V(P,O,s+1,c,b),G=new V(X,I,0,d,b),re=new V(new Array(0),R,0,g,E)}function oe(dt){var Yt;for(Yt=0;Yt<c;Yt++)dt.dyn_ltree[Yt*2]=0;for(Yt=0;Yt<d;Yt++)dt.dyn_dtree[Yt*2]=0;for(Yt=0;Yt<g;Yt++)dt.bl_tree[Yt*2]=0;dt.dyn_ltree[C*2]=1,dt.opt_len=dt.static_len=0,dt.last_lit=dt.matches=0}function ot(dt){dt.bi_valid>8?$(dt,dt.bi_buf):dt.bi_valid>0&&(dt.pending_buf[dt.pending++]=dt.bi_buf),dt.bi_buf=0,dt.bi_valid=0}function he(dt,Yt,hr,Gt){ot(dt),Gt&&($(dt,hr),$(dt,~hr)),p.arraySet(dt.pending_buf,dt.window,Yt,hr,dt.pending),dt.pending+=hr}function J(dt,Yt,hr,Gt){var Pt=Yt*2,Xt=hr*2;return dt[Pt]<dt[Xt]||dt[Pt]===dt[Xt]&&Gt[Yt]<=Gt[hr]}function Y(dt,Yt,hr){for(var Gt=dt.heap[hr],Pt=hr<<1;Pt<=dt.heap_len&&!(Pt<dt.heap_len&&J(Yt,dt.heap[Pt+1],dt.heap[Pt],dt.depth)&&Pt++,J(Yt,Gt,dt.heap[Pt],dt.depth));)dt.heap[hr]=dt.heap[Pt],hr=Pt,Pt<<=1;dt.heap[hr]=Gt}function q(dt,Yt,hr){var Gt,Pt,Xt=0,Ge,pe;if(dt.last_lit!==0)do Gt=dt.pending_buf[dt.d_buf+Xt*2]<<8|dt.pending_buf[dt.d_buf+Xt*2+1],Pt=dt.pending_buf[dt.l_buf+Xt],Xt++,Gt===0?_e(dt,Pt,Yt):(Ge=j[Pt],_e(dt,Ge+s+1,Yt),pe=O[Ge],pe!==0&&(Pt-=W[Ge],be(dt,Pt,pe)),Gt--,Ge=ue(Gt),_e(dt,Ge,hr),pe=I[Ge],pe!==0&&(Gt-=z[Ge],be(dt,Gt,pe)));while(Xt<dt.last_lit);_e(dt,C,Yt)}function fe(dt,Yt){var hr=Yt.dyn_tree,Gt=Yt.stat_desc.static_tree,Pt=Yt.stat_desc.has_stree,Xt=Yt.stat_desc.elems,Ge,pe,se=-1,lt;for(dt.heap_len=0,dt.heap_max=v,Ge=0;Ge<Xt;Ge++)hr[Ge*2]!==0?(dt.heap[++dt.heap_len]=se=Ge,dt.depth[Ge]=0):hr[Ge*2+1]=0;for(;dt.heap_len<2;)lt=dt.heap[++dt.heap_len]=se<2?++se:0,hr[lt*2]=1,dt.depth[lt]=0,dt.opt_len--,Pt&&(dt.static_len-=Gt[lt*2+1]);for(Yt.max_code=se,Ge=dt.heap_len>>1;Ge>=1;Ge--)Y(dt,hr,Ge);lt=Xt;do Ge=dt.heap[1],dt.heap[1]=dt.heap[dt.heap_len--],Y(dt,hr,1),pe=dt.heap[1],dt.heap[--dt.heap_max]=Ge,dt.heap[--dt.heap_max]=pe,hr[lt*2]=hr[Ge*2]+hr[pe*2],dt.depth[lt]=(dt.depth[Ge]>=dt.depth[pe]?dt.depth[Ge]:dt.depth[pe])+1,hr[Ge*2+1]=hr[pe*2+1]=lt,dt.heap[1]=lt++,Y(dt,hr,1);while(dt.heap_len>=2);dt.heap[--dt.heap_max]=dt.heap[1],He(dt,Yt),nt(hr,se,dt.bl_count)}function we(dt,Yt,hr){var Gt,Pt=-1,Xt,Ge=Yt[0*2+1],pe=0,se=7,lt=4;for(Ge===0&&(se=138,lt=3),Yt[(hr+1)*2+1]=65535,Gt=0;Gt<=hr;Gt++){if(Xt=Ge,Ge=Yt[(Gt+1)*2+1],++pe<se&&Xt===Ge)continue;pe<lt?dt.bl_tree[Xt*2]+=pe:Xt!==0?(Xt!==Pt&&dt.bl_tree[Xt*2]++,dt.bl_tree[_*2]++):pe<=10?dt.bl_tree[T*2]++:dt.bl_tree[w*2]++,pe=0,Pt=Xt,Ge===0?(se=138,lt=3):Xt===Ge?(se=6,lt=3):(se=7,lt=4)}}function Ne(dt,Yt,hr){var Gt,Pt=-1,Xt,Ge=Yt[0*2+1],pe=0,se=7,lt=4;for(Ge===0&&(se=138,lt=3),Gt=0;Gt<=hr;Gt++){if(Xt=Ge,Ge=Yt[(Gt+1)*2+1],++pe<se&&Xt===Ge)continue;if(pe<lt)do _e(dt,Xt,dt.bl_tree);while(--pe!==0);else Xt!==0?(Xt!==Pt&&(_e(dt,Xt,dt.bl_tree),pe--),_e(dt,_,dt.bl_tree),be(dt,pe-3,2)):pe<=10?(_e(dt,T,dt.bl_tree),be(dt,pe-3,3)):(_e(dt,w,dt.bl_tree),be(dt,pe-11,7));pe=0,Pt=Xt,Ge===0?(se=138,lt=3):Xt===Ge?(se=6,lt=3):(se=7,lt=4)}}function je(dt){var Yt;for(we(dt,dt.dyn_ltree,dt.l_desc.max_code),we(dt,dt.dyn_dtree,dt.d_desc.max_code),fe(dt,dt.bl_desc),Yt=g-1;Yt>=3&&!(dt.bl_tree[M[Yt]*2+1]!==0);Yt--);return dt.opt_len+=3*(Yt+1)+5+5+4,Yt}function me(dt,Yt,hr,Gt){var Pt;for(be(dt,Yt-257,5),be(dt,hr-1,5),be(dt,Gt-4,4),Pt=0;Pt<Gt;Pt++)be(dt,dt.bl_tree[M[Pt]*2+1],3);Ne(dt,dt.dyn_ltree,Yt-1),Ne(dt,dt.dyn_dtree,hr-1)}function Ce(dt){var Yt=4093624447,hr;for(hr=0;hr<=31;hr++,Yt>>>=1)if(Yt&1&&dt.dyn_ltree[hr*2]!==0)return f;if(dt.dyn_ltree[9*2]!==0||dt.dyn_ltree[10*2]!==0||dt.dyn_ltree[13*2]!==0)return h;for(hr=32;hr<s;hr++)if(dt.dyn_ltree[hr*2]!==0)return h;return f}var Fe=!1;function it(dt){Fe||(Ie(),Fe=!0),dt.l_desc=new ee(dt.dyn_ltree,Q),dt.d_desc=new ee(dt.dyn_dtree,G),dt.bl_desc=new ee(dt.bl_tree,re),dt.bi_buf=0,dt.bi_valid=0,oe(dt)}function Ct(dt,Yt,hr,Gt){be(dt,(i<<1)+(Gt?1:0),3),he(dt,Yt,hr,!0)}function mt(dt){be(dt,t<<1,3),_e(dt,C,P),Xe(dt)}function Ve(dt,Yt,hr,Gt){var Pt,Xt,Ge=0;dt.level>0?(dt.strm.data_type===u&&(dt.strm.data_type=Ce(dt)),fe(dt,dt.l_desc),fe(dt,dt.d_desc),Ge=je(dt),Pt=dt.opt_len+3+7>>>3,Xt=dt.static_len+3+7>>>3,Xt<=Pt&&(Pt=Xt)):Pt=Xt=hr+5,hr+4<=Pt&&Yt!==-1?Ct(dt,Yt,hr,Gt):dt.strategy===m||Xt===Pt?(be(dt,(t<<1)+(Gt?1:0),3),q(dt,P,X)):(be(dt,(o<<1)+(Gt?1:0),3),me(dt,dt.l_desc.max_code+1,dt.d_desc.max_code+1,Ge+1),q(dt,dt.dyn_ltree,dt.dyn_dtree)),oe(dt),Gt&&ot(dt)}function or(dt,Yt,hr){return dt.pending_buf[dt.d_buf+dt.last_lit*2]=Yt>>>8&255,dt.pending_buf[dt.d_buf+dt.last_lit*2+1]=Yt&255,dt.pending_buf[dt.l_buf+dt.last_lit]=hr&255,dt.last_lit++,Yt===0?dt.dyn_ltree[hr*2]++:(dt.matches++,Yt--,dt.dyn_ltree[(j[hr]+s+1)*2]++,dt.dyn_dtree[ue(Yt)*2]++),dt.last_lit===dt.lit_bufsize-1}},c6wG:function(k,D,n){var y=n("dD9F"),p=n("sEf8"),x=n("mdPL"),A=x&&x.isTypedArray,m=A?p(A):y;k.exports=m},c8qY:function(k,D,n){var y=n("IwbS"),p=n("fls0");function x(o){this._ctor=o||p,this.group=new y.Group}var A=x.prototype;A.isPersistent=function(){return!0},A.updateData=function(o){var e=this,l=e.group,r=e._lineData;e._lineData=o,r||l.removeAll();var s=u(o);o.diff(r).add(function(c){m(e,o,c,s)}).update(function(c,d){f(e,r,o,d,c,s)}).remove(function(c){l.remove(r.getItemGraphicEl(c))}).execute()};function m(o,e,l,r){var s=e.getItemLayout(l);if(!i(s))return;var c=new o._ctor(e,l,r);e.setItemGraphicEl(l,c),o.group.add(c)}function f(o,e,l,r,s,c){var d=e.getItemGraphicEl(r);if(!i(l.getItemLayout(s))){o.group.remove(d);return}d?d.updateData(l,s,c):d=new o._ctor(l,s,c),l.setItemGraphicEl(s,d),o.group.add(d)}A.updateLayout=function(){var o=this._lineData;if(!o)return;o.eachItemGraphicEl(function(e,l){e.updateLayout(o,l)},this)},A.incrementalPrepareUpdate=function(o){this._seriesScope=u(o),this._lineData=null,this.group.removeAll()};function h(o){return o.animators&&o.animators.length>0}A.incrementalUpdate=function(o,e){function l(d){!d.isGroup&&!h(d)&&(d.incremental=d.useHoverLayer=!0)}for(var r=o.start;r<o.end;r++){var s=e.getItemLayout(r);if(i(s)){var c=new this._ctor(e,r,this._seriesScope);c.traverse(l),this.group.add(c),e.setItemGraphicEl(r,c)}}};function u(o){var e=o.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}A.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},A._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};function a(o){return isNaN(o[0])||isNaN(o[1])}function i(o){return!a(o[0])&&!a(o[1])}var t=x;k.exports=t},cCMj:function(k,D,n){var y=n("bYtY"),p={updateSelectedMap:function(x){this._targetList=y.isArray(x)?x.slice():[],this._selectTargetMap=y.reduce(x||[],function(A,m){return A.set(m.name,m),A},y.createHashMap())},select:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x),f=this.get("selectedMode");f==="single"&&this._selectTargetMap.each(function(h){h.selected=!1}),m&&(m.selected=!0)},unSelect:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);m&&(m.selected=!1)},toggleSelected:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);if(m!=null)return this[m.selected?"unSelect":"select"](x,A),m.selected},isSelected:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);return m&&m.selected}};k.exports=p},cVA7:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("MT78"),p=m(y),x=n("t3Fx"),A=m(x);function m(i){return i&&i.__esModule?i:{default:i}}function f(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function h(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i}function u(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)}var a=function(i){u(t,i);function t(o){f(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return e.echartsLib=p.default,e}return t}(A.default);D.default=a},cWXX:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("oIFs"),A=n.n(x)},ca2m:function(k,D,n){var y=n("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)"]}}},x={};x.categoryAxis=y.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},p),x.valueAxis=y.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},p),x.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},x.valueAxis),x.logAxis=y.defaults({scale:!0,logBase:10},x.valueAxis);var A=x;k.exports=A},cbJ4:function(k,D,n){var y=n("bYtY"),p=y.createHashMap;function x(A){A.eachSeriesByType("themeRiver",function(m){var f=m.getData(),h=m.getRawData(),u=m.get("color"),a=p();f.each(function(i){a.set(f.getRawIndex(i),i)}),h.each(function(i){var t=h.getName(i),o=u[(m.nameMap.get(t)-1)%u.length];h.setItemVisual(i,"color",o);var e=a.get(i);e!=null&&f.setItemVisual(e,"color",o)})})}k.exports=x},chpo:function(k,D,n){"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,n){var y=n("Tghj"),p=y.__DEV__,x=n("T4UG"),A=n("YXkt"),m=n("bYtY"),f=m.concatArray,h=m.mergeAll,u=m.map,a=n("7aKB"),i=a.encodeHTML,t=n("IDmD"),o=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function l(c){var d=c.data;d&&d[0]&&d[0][0]&&d[0][0].coord&&(c.data=u(d,function(g){var v=[g[0].coord,g[1].coord],b={coords:v};return g[0].name&&(b.fromName=g[0].name),g[1].name&&(b.toName=g[1].name),h([b,g[0],g[1]])}))}var r=x.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(c){c.data=c.data||[],l(c);var d=this._processFlatCoordsArray(c.data);this._flatCoords=d.flatCoords,this._flatCoordsOffset=d.flatCoordsOffset,d.flatCoords&&(c.data=new Float32Array(d.count)),r.superApply(this,"init",arguments)},mergeOption:function(c){if(c.data=c.data||[],l(c),c.data){var d=this._processFlatCoordsArray(c.data);this._flatCoords=d.flatCoords,this._flatCoordsOffset=d.flatCoordsOffset,d.flatCoords&&(c.data=new Float32Array(d.count))}r.superApply(this,"mergeOption",arguments)},appendData:function(c){var d=this._processFlatCoordsArray(c.data);d.flatCoords&&(this._flatCoords?(this._flatCoords=f(this._flatCoords,d.flatCoords),this._flatCoordsOffset=f(this._flatCoordsOffset,d.flatCoordsOffset)):(this._flatCoords=d.flatCoords,this._flatCoordsOffset=d.flatCoordsOffset),c.data=new Float32Array(d.count)),this.getRawData().appendData(c.data)},_getCoordsFromItemModel:function(c){var d=this.getData().getItemModel(c),g=d.option instanceof Array?d.option:d.getShallow("coords");return g},getLineCoordsCount:function(c){return this._flatCoordsOffset?this._flatCoordsOffset[c*2+1]:this._getCoordsFromItemModel(c).length},getLineCoords:function(c,d){if(this._flatCoordsOffset){for(var g=this._flatCoordsOffset[c*2],v=this._flatCoordsOffset[c*2+1],b=0;b<v;b++)d[b]=d[b]||[],d[b][0]=this._flatCoords[g+b*2],d[b][1]=this._flatCoords[g+b*2+1];return v}else{for(var S=this._getCoordsFromItemModel(c),b=0;b<S.length;b++)d[b]=d[b]||[],d[b][0]=S[b][0],d[b][1]=S[b][1];return S.length}},_processFlatCoordsArray:function(c){var d=0;if(this._flatCoords&&(d=this._flatCoords.length),typeof c[0]=="number"){for(var g=c.length,v=new o(g),b=new e(g),S=0,E=0,C=0,_=0;_<g;){C++;var T=c[_++];v[E++]=S+d,v[E++]=T;for(var w=0;w<T;w++){var O=c[_++],I=c[_++];b[S++]=O,b[S++]=I,_>g}}return{flatCoordsOffset:new Uint32Array(v.buffer,0,E),flatCoords:b,count:C}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,d){var g=new A(["value"],this);return g.hasItemOption=!1,g.initData(c.data,[],function(v,b,S,E){if(v instanceof Array)return NaN;g.hasItemOption=!0;var C=v.value;if(C!=null)return C instanceof Array?C[E]:C}),g},formatTooltip:function(c){var d=this.getData(),g=d.getItemModel(c),v=g.get("name");if(v)return v;var b=g.get("fromName"),S=g.get("toName"),E=[];return b!=null&&E.push(b),S!=null&&E.push(S),i(E.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c==null?this.option.large?1e4:this.get("progressive"):c},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c==null?this.option.large?2e4:this.get("progressiveThreshold"):c},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),s=r;k.exports=s},crZl:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("7aKB"),m=n("+TT/"),f=n("XxSj"),h=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(u,a){this.ecModel=u,this.api=a,this.visualMapModel},render:function(u,a,i,t){if(this.visualMapModel=u,u.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(u){var a=this.visualMapModel,i=A.normalizeCssArray(a.get("padding")||0),t=u.getBoundingRect();u.add(new x.Rect({z2:-1,silent:!0,shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[3]+i[1],height:t.height+i[0]+i[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},getControllerVisual:function(u,a,i){i=i||{};var t=i.forceState,o=this.visualMapModel,e={};if(a==="symbol"&&(e.symbol=o.get("itemSymbol")),a==="color"){var l=o.get("contentColor");e.color=l}function r(g){return e[g]}function s(g,v){e[g]=v}var c=o.controllerVisuals[t||o.getValueState(u)],d=f.prepareVisualTypes(c);return p.each(d,function(g){var v=c[g];i.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",v=c.__alphaForOpacity),f.dependsOn(g,a)&&(v&&v.applyVisual(u,r,s))}),e[a]},positionGroup:function(u){var a=this.visualMapModel,i=this.api;m.positionElement(u,a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:p.noop});k.exports=h},crp1:function(k,D,n){"use strict";n.d(D,"b",function(){return Jt}),n.d(D,"a",function(){return Zn});var y={},p=function(gt,pt,ar,Ht,Mt){var qt=y[pt]||(y[pt]=URL.createObjectURL(new Blob([gt],{type:"text/javascript"}))),Rt=new Worker(qt);return Rt.onerror=function(Qt){return Mt(Qt.error,null)},Rt.onmessage=function(Qt){return Mt(null,Qt.data)},Rt.postMessage(ar,Ht),Rt},x=Uint8Array,A=Uint16Array,m=Uint32Array,f=new x([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),h=new x([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new x([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(gt,pt){for(var ar=new A(31),Ht=0;Ht<31;++Ht)ar[Ht]=pt+=1<<gt[Ht-1];for(var Mt=new m(ar[30]),Ht=1;Ht<30;++Ht)for(var qt=ar[Ht];qt<ar[Ht+1];++qt)Mt[qt]=qt-ar[Ht]<<5|Ht;return[ar,Mt]},i=a(f,2),t=i[0],o=i[1];t[28]=258,o[258]=28;for(var e=a(h,0),l=e[0],r=e[1],s=new A(32768),c=0;c<32768;++c){var d=(c&43690)>>>1|(c&21845)<<1;d=(d&52428)>>>2|(d&13107)<<2,d=(d&61680)>>>4|(d&3855)<<4,s[c]=((d&65280)>>>8|(d&255)<<8)>>>1}for(var g=function(gt,pt,ar){for(var Ht=gt.length,Mt=0,qt=new A(pt);Mt<Ht;++Mt)++qt[gt[Mt]-1];var Rt=new A(pt);for(Mt=0;Mt<pt;++Mt)Rt[Mt]=Rt[Mt-1]+qt[Mt-1]<<1;var Qt;if(ar){Qt=new A(1<<pt);var jr=15-pt;for(Mt=0;Mt<Ht;++Mt)if(gt[Mt])for(var Nr=Mt<<4|gt[Mt],Lr=pt-gt[Mt],ln=Rt[gt[Mt]-1]++<<Lr,mn=ln|(1<<Lr)-1;ln<=mn;++ln)Qt[s[ln]>>>jr]=Nr}else for(Qt=new A(Ht),Mt=0;Mt<Ht;++Mt)Qt[Mt]=s[Rt[gt[Mt]-1]++]>>>15-gt[Mt];return Qt},v=new x(288),c=0;c<144;++c)v[c]=8;for(var c=144;c<256;++c)v[c]=9;for(var c=256;c<280;++c)v[c]=7;for(var c=280;c<288;++c)v[c]=8;for(var b=new x(32),c=0;c<32;++c)b[c]=5;var S=g(v,9,0),E=g(v,9,1),C=g(b,5,0),_=g(b,5,1),T=function(gt){for(var pt=gt[0],ar=1;ar<gt.length;++ar)gt[ar]>pt&&(pt=gt[ar]);return pt},w=function(gt,pt,ar){var Ht=pt/8>>0;return(gt[Ht]|gt[Ht+1]<<8)>>>(pt&7)&ar},O=function(gt,pt){var ar=pt/8>>0;return(gt[ar]|gt[ar+1]<<8|gt[ar+2]<<16)>>>(pt&7)},I=function(gt){return(gt/8>>0)+(gt&7&&1)},R=function(gt,pt,ar){(pt==null||pt<0)&&(pt=0),(ar==null||ar>gt.length)&&(ar=gt.length);var Ht=new(gt instanceof A?A:gt instanceof m?m:x)(ar-pt);return Ht.set(gt.subarray(pt,ar)),Ht},M=function(gt,pt,ar){var Ht=gt.length,Mt=!pt||ar,qt=!ar||ar.i;ar||(ar={}),pt||(pt=new x(Ht*3));var Rt=function(Vn){var Wt=pt.length;if(Vn>Wt){var Et=new x(Math.max(Wt*2,Vn));Et.set(pt),pt=Et}},Qt=ar.f||0,jr=ar.p||0,Nr=ar.b||0,Lr=ar.l,ln=ar.d,mn=ar.m,ti=ar.n,$n=Ht*8;do{if(!Lr){ar.f=Qt=w(gt,jr,1);var hi=w(gt,jr+1,3);if(jr+=3,hi)if(hi==1)Lr=E,ln=_,mn=9,ti=5;else if(hi==2){var rt=w(gt,jr,31)+257,Re=w(gt,jr+10,15)+4,Ue=rt+w(gt,jr+5,31)+1;jr+=14;for(var Ye=new x(Ue),et=new x(19),$e=0;$e<Re;++$e)et[u[$e]]=w(gt,jr+$e*3,7);jr+=Re*3;var at=T(et),wt=(1<<at)-1;if(!qt&&jr+Ue*(at+7)>$n)break;for(var ft=g(et,at,1),$e=0;$e<Ue;){var cr=ft[w(gt,jr,wt)];jr+=cr&15;var Ti=cr>>>4;if(Ti<16)Ye[$e++]=Ti;else{var Jr=0,Qr=0;for(Ti==16?(Qr=3+w(gt,jr,3),jr+=2,Jr=Ye[$e-1]):Ti==17?(Qr=3+w(gt,jr,7),jr+=3):Ti==18&&(Qr=11+w(gt,jr,127),jr+=7);Qr--;)Ye[$e++]=Jr}}var fn=Ye.subarray(0,rt),pr=Ye.subarray(rt);mn=T(fn),ti=T(pr),Lr=g(fn,mn,1),ln=g(pr,ti,1)}else throw"invalid block type";else{var Ti=I(jr)+4,Ni=gt[Ti-4]|gt[Ti-3]<<8,Wi=Ti+Ni;if(Wi>Ht){if(qt)throw"unexpected EOF";break}Mt&&Rt(Nr+Ni),pt.set(gt.subarray(Ti,Wi),Nr),ar.b=Nr+=Ni,ar.p=jr=Wi*8;continue}if(jr>$n)throw"unexpected EOF"}Mt&&Rt(Nr+131072);for(var Wn=(1<<mn)-1,kr=(1<<ti)-1,kn=mn+ti+18;qt||jr+kn<$n;){var Jr=Lr[O(gt,jr)&Wn],bn=Jr>>>4;if(jr+=Jr&15,jr>$n)throw"unexpected EOF";if(!Jr)throw"invalid length/literal";if(bn<256)pt[Nr++]=bn;else if(bn==256){Lr=null;break}else{var qr=bn-254;if(bn>264){var $e=bn-257,fi=f[$e];qr=w(gt,jr,(1<<fi)-1)+t[$e],jr+=fi}var Mi=ln[O(gt,jr)&kr],Zi=Mi>>>4;if(!Mi)throw"invalid distance";jr+=Mi&15;var pr=l[Zi];if(Zi>3){var fi=h[Zi];pr+=O(gt,jr)&(1<<fi)-1,jr+=fi}if(jr>$n)throw"unexpected EOF";Mt&&Rt(Nr+131072);for(var tn=Nr+qr;Nr<tn;Nr+=4)pt[Nr]=pt[Nr-pr],pt[Nr+1]=pt[Nr+1-pr],pt[Nr+2]=pt[Nr+2-pr],pt[Nr+3]=pt[Nr+3-pr];Nr=tn}}ar.l=Lr,ar.p=jr,ar.b=Nr,Lr&&(Qt=1,ar.m=mn,ar.d=ln,ar.n=ti)}while(!Qt);return Nr==pt.length?pt:R(pt,0,Nr)},F=function(gt,pt,ar){ar<<=pt&7;var Ht=pt/8>>0;gt[Ht]|=ar,gt[Ht+1]|=ar>>>8},P=function(gt,pt,ar){ar<<=pt&7;var Ht=pt/8>>0;gt[Ht]|=ar,gt[Ht+1]|=ar>>>8,gt[Ht+2]|=ar>>>16},X=function(gt,pt){for(var ar=[],Ht=0;Ht<gt.length;++Ht)gt[Ht]&&ar.push({s:Ht,f:gt[Ht]});var Mt=ar.length,qt=ar.slice();if(!Mt)return[new x(0),0];if(Mt==1){var Rt=new x(ar[0].s+1);return Rt[ar[0].s]=1,[Rt,1]}ar.sort(function(Ue,Ye){return Ue.f-Ye.f}),ar.push({s:-1,f:25001});var Qt=ar[0],jr=ar[1],Nr=0,Lr=1,ln=2;for(ar[0]={s:-1,f:Qt.f+jr.f,l:Qt,r:jr};Lr!=Mt-1;)Qt=ar[ar[Nr].f<ar[ln].f?Nr++:ln++],jr=ar[Nr!=Lr&&ar[Nr].f<ar[ln].f?Nr++:ln++],ar[Lr++]={s:-1,f:Qt.f+jr.f,l:Qt,r:jr};for(var mn=qt[0].s,Ht=1;Ht<Mt;++Ht)qt[Ht].s>mn&&(mn=qt[Ht].s);var ti=new A(mn+1),$n=B(ar[Lr-1],ti,0);if($n>pt){var Ht=0,hi=0,Ti=$n-pt,Ni=1<<Ti;for(qt.sort(function(Ye,et){return ti[et.s]-ti[Ye.s]||Ye.f-et.f});Ht<Mt;++Ht){var Wi=qt[Ht].s;if(ti[Wi]>pt)hi+=Ni-(1<<$n-ti[Wi]),ti[Wi]=pt;else break}for(hi>>>=Ti;hi>0;){var rt=qt[Ht].s;ti[rt]<pt?hi-=1<<pt-ti[rt]++-1:++Ht}for(;Ht>=0&&hi;--Ht){var Re=qt[Ht].s;ti[Re]==pt&&(--ti[Re],++hi)}$n=pt}return[new x(ti),$n]},B=function jt(gt,pt,ar){return gt.s==-1?Math.max(jt(gt.l,pt,ar+1),jt(gt.r,pt,ar+1)):pt[gt.s]=ar},j=function(gt){for(var pt=gt.length;pt&&!gt[--pt];);for(var ar=new A(++pt),Ht=0,Mt=gt[0],qt=1,Rt=function(Nr){ar[Ht++]=Nr},Qt=1;Qt<=pt;++Qt)if(gt[Qt]==Mt&&Qt!=pt)++qt;else{if(!Mt&&qt>2){for(;qt>138;qt-=138)Rt(32754);qt>2&&(Rt(qt>10?qt-11<<5|28690:qt-3<<5|12305),qt=0)}else if(qt>3){for(Rt(Mt),--qt;qt>6;qt-=6)Rt(8304);qt>2&&(Rt(qt-3<<5|8208),qt=0)}for(;qt--;)Rt(Mt);qt=1,Mt=gt[Qt]}return[ar.subarray(0,Ht),pt]},W=function(gt,pt){for(var ar=0,Ht=0;Ht<pt.length;++Ht)ar+=gt[Ht]*pt[Ht];return ar},z=function(gt,pt,ar){var Ht=ar.length,Mt=I(pt+2);gt[Mt]=Ht&255,gt[Mt+1]=Ht>>>8,gt[Mt+2]=gt[Mt]^255,gt[Mt+3]=gt[Mt+1]^255;for(var qt=0;qt<Ht;++qt)gt[Mt+qt+4]=ar[qt];return(Mt+4+Ht)*8},V=function(gt,pt,ar,Ht,Mt,qt,Rt,Qt,jr,Nr,Lr){F(pt,Lr++,ar),++Mt[256];for(var ln=X(Mt,15),mn=ln[0],ti=ln[1],$n=X(qt,15),hi=$n[0],Ti=$n[1],Ni=j(mn),Wi=Ni[0],rt=Ni[1],Re=j(hi),Ue=Re[0],Ye=Re[1],et=new A(19),$e=0;$e<Wi.length;++$e)et[Wi[$e]&31]++;for(var $e=0;$e<Ue.length;++$e)et[Ue[$e]&31]++;for(var at=X(et,7),wt=at[0],ft=at[1],cr=19;cr>4&&!wt[u[cr-1]];--cr);var Jr=Nr+5<<3,Qr=W(Mt,v)+W(qt,b)+Rt,fn=W(Mt,mn)+W(qt,hi)+Rt+14+3*cr+W(et,wt)+(2*et[16]+3*et[17]+7*et[18]);if(Jr<=Qr&&Jr<=fn)return z(pt,Lr,gt.subarray(jr,jr+Nr));var pr,Wn,kr,kn;if(F(pt,Lr,1+(fn<Qr)),Lr+=2,fn<Qr){pr=g(mn,ti,0),Wn=mn,kr=g(hi,Ti,0),kn=hi;var bn=g(wt,ft,0);F(pt,Lr,rt-257),F(pt,Lr+5,Ye-1),F(pt,Lr+10,cr-4),Lr+=14;for(var $e=0;$e<cr;++$e)F(pt,Lr+3*$e,wt[u[$e]]);Lr+=3*cr;for(var qr=[Wi,Ue],fi=0;fi<2;++fi)for(var Mi=qr[fi],$e=0;$e<Mi.length;++$e){var Zi=Mi[$e]&31;F(pt,Lr,bn[Zi]),Lr+=wt[Zi],Zi>15&&(F(pt,Lr,Mi[$e]>>>5&127),Lr+=Mi[$e]>>>12)}}else pr=S,Wn=v,kr=C,kn=b;for(var $e=0;$e<Qt;++$e)if(Ht[$e]>255){var Zi=Ht[$e]>>>18&31;P(pt,Lr,pr[Zi+257]),Lr+=Wn[Zi+257],Zi>7&&(F(pt,Lr,Ht[$e]>>>23&31),Lr+=f[Zi]);var tn=Ht[$e]&31;P(pt,Lr,kr[tn]),Lr+=kn[tn],tn>3&&(P(pt,Lr,Ht[$e]>>>5&8191),Lr+=h[tn])}else P(pt,Lr,pr[Ht[$e]]),Lr+=Wn[Ht[$e]];return P(pt,Lr,pr[256]),Lr+Wn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new x(0),re=function(gt,pt,ar,Ht,Mt,qt){var Rt=gt.length,Qt=new x(Ht+Rt+5*(1+Math.floor(Rt/7e3))+Mt),jr=Qt.subarray(Ht,Qt.length-Mt),Nr=0;if(!pt||Rt<8)for(var Lr=0;Lr<=Rt;Lr+=65535){var ln=Lr+65535;ln<Rt?Nr=z(jr,Nr,gt.subarray(Lr,ln)):(jr[Lr]=qt,Nr=z(jr,Nr,gt.subarray(Lr,Rt)))}else{for(var mn=Q[pt-1],ti=mn>>>13,$n=mn&8191,hi=(1<<ar)-1,Ti=new A(32768),Ni=new A(hi+1),Wi=Math.ceil(ar/3),rt=2*Wi,Re=function(fr){return(gt[fr]^gt[fr+1]<<Wi^gt[fr+2]<<rt)&hi},Ue=new m(25e3),Ye=new A(288),et=new A(32),$e=0,at=0,Lr=0,wt=0,ft=0,cr=0;Lr<Rt;++Lr){var Jr=Re(Lr),Qr=Lr&32767,fn=Ni[Jr];if(Ti[Qr]=fn,Ni[Jr]=Qr,ft<=Lr){var pr=Rt-Lr;if(($e>7e3||wt>24576)&&pr>423){Nr=V(gt,jr,0,Ue,Ye,et,at,wt,cr,Lr-cr,Nr),wt=$e=at=0,cr=Lr;for(var Wn=0;Wn<286;++Wn)Ye[Wn]=0;for(var Wn=0;Wn<30;++Wn)et[Wn]=0}var kr=2,kn=0,bn=$n,qr=Qr-fn&32767;if(pr>2&&Jr==Re(Lr-qr))for(var fi=Math.min(ti,pr)-1,Mi=Math.min(32767,Lr),Zi=Math.min(258,pr);qr<=Mi&&--bn&&Qr!=fn;){if(gt[Lr+kr]==gt[Lr+kr-qr]){for(var tn=0;tn<Zi&&gt[Lr+tn]==gt[Lr+tn-qr];++tn);if(tn>kr){if(kr=tn,kn=qr,tn>fi)break;for(var En=Math.min(qr,tn-2),Vn=0,Wn=0;Wn<En;++Wn){var Wt=Lr-qr+Wn+32768&32767,Et=Ti[Wt],kt=Wt-Et+32768&32767;kt>Vn&&(Vn=kt,fn=Wt)}}}Qr=fn,fn=Ti[Qr],qr+=Qr-fn+32768&32767}if(kn){Ue[wt++]=268435456|o[kr]<<18|r[kn];var Bt=o[kr]&31,Kt=r[kn]&31;at+=f[Bt]+h[Kt],++Ye[257+Bt],++et[Kt],ft=Lr+kr,++$e}else Ue[wt++]=gt[Lr],++Ye[gt[Lr]]}}Nr=V(gt,jr,qt,Ue,Ye,et,at,wt,cr,Lr-cr,Nr),qt||(Nr=z(jr,Nr,G))}return R(Qt,0,Ht+I(Nr)+Mt)},ee=function(){for(var jt=new m(256),gt=0;gt<256;++gt){for(var pt=gt,ar=9;--ar;)pt=(pt&1&&3988292384)^pt>>>1;jt[gt]=pt}return jt}(),ue=function(){var gt=4294967295;return{p:function(ar){for(var Ht=gt,Mt=0;Mt<ar.length;++Mt)Ht=ee[Ht&255^ar[Mt]]^Ht>>>8;gt=Ht},d:function(){return gt^4294967295}}},$=function(){var gt=1,pt=0;return{p:function(Ht){for(var Mt=gt,qt=pt,Rt=Ht.length,Qt=0;Qt!=Rt;){for(var jr=Math.min(Qt+5552,Rt);Qt<jr;++Qt)Mt+=Ht[Qt],qt+=Mt;Mt%=65521,qt%=65521}gt=Mt,pt=qt},d:function(){return(gt>>>8<<16|(pt&255)<<8|pt>>>8)+((gt&255)<<23)*2}}},be=function(gt,pt,ar,Ht,Mt){return re(gt,pt.level==null?6:pt.level,pt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(gt.length)))*1.5):12+pt.mem,ar,Ht,!Mt)},_e=function(gt,pt){var ar={};for(var Ht in gt)ar[Ht]=gt[Ht];for(var Ht in pt)ar[Ht]=pt[Ht];return ar},Ee=function(gt,pt,ar){for(var Ht=gt(),Mt=gt.toString(),qt=Mt.slice(Mt.indexOf("[")+1,Mt.lastIndexOf("]")).replace(/ /g,"").split(","),Rt=0;Rt<Ht.length;++Rt){var Qt=Ht[Rt],jr=qt[Rt];if(typeof Qt=="function"){pt+=";"+jr+"=";var Nr=Qt.toString();if(Qt.prototype)if(Nr.indexOf("[native code]")!=-1){var Lr=Nr.indexOf(" ",8)+1;pt+=Nr.slice(Lr,Nr.indexOf("(",Lr))}else{pt+=Nr;for(var ln in Qt.prototype)pt+=";"+jr+".prototype."+ln+"="+Qt.prototype[ln].toString()}else pt+=Nr}else ar[jr]=Qt}return[pt,ar]},Xe=[],He=function(gt){var pt=[];for(var ar in gt)(gt[ar]instanceof x||gt[ar]instanceof A||gt[ar]instanceof m)&&pt.push((gt[ar]=new gt[ar].constructor(gt[ar])).buffer);return pt},nt=function(gt,pt,ar,Ht){var Mt;if(!Xe[ar]){for(var qt="",Rt={},Qt=gt.length-1,jr=0;jr<Qt;++jr)Mt=Ee(gt[jr],qt,Rt),qt=Mt[0],Rt=Mt[1];Xe[ar]=Ee(gt[Qt],qt,Rt)}var Nr=_e({},Xe[ar][1]);return p(Xe[ar][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+pt.toString()+"}",ar,Nr,He(Nr),Ht)},Ie=function(){return[x,A,m,f,h,u,t,l,E,_,s,g,T,w,O,I,R,M,lt,q,fe]},oe=function(){return[x,A,m,f,h,u,o,r,S,v,C,b,s,Q,G,g,F,P,X,B,j,W,z,V,I,R,re,be,Xt,q]},ot=function(){return[it,Ve,Fe,ue,ee]},he=function(){return[Ct,mt]},J=function(){return[or,Fe,$]},Y=function(){return[dt]},q=function(gt){return postMessage(gt,[gt.buffer])},fe=function(gt){return gt&&gt.size&&new x(gt.size)},we=function(gt,pt,ar,Ht,Mt,qt){var Rt=nt(ar,Ht,Mt,function(Qt,jr){Rt.terminate(),qt(Qt,jr)});return pt.consume||(gt=new x(gt)),Rt.postMessage([gt,pt],[gt.buffer]),function(){Rt.terminate()}},Ne=function(gt){return gt.ondata=function(pt,ar){return postMessage([pt,ar],[pt.buffer])},function(pt){return gt.push(pt.data[0],pt.data[1])}},je=function(gt,pt,ar,Ht,Mt){var qt,Rt=nt(gt,Ht,Mt,function(Qt,jr){Qt?(Rt.terminate(),pt.ondata.call(pt,Qt)):(jr[1]&&Rt.terminate(),pt.ondata.call(pt,Qt,jr[0],jr[1]))});Rt.postMessage(ar),pt.push=function(Qt,jr){if(qt)throw"stream finished";if(!pt.ondata)throw"no stream handler";Rt.postMessage([Qt,qt=jr],[Qt.buffer])},pt.terminate=function(){Rt.terminate()}},me=function(gt,pt){return gt[pt]|gt[pt+1]<<8},Ce=function(gt,pt){return(gt[pt]|gt[pt+1]<<8|gt[pt+2]<<16)+(gt[pt+3]<<23)*2},Fe=function(gt,pt,ar){for(;ar;++pt)gt[pt]=ar,ar>>>=8},it=function(gt,pt){var ar=pt.filename;if(gt[0]=31,gt[1]=139,gt[2]=8,gt[8]=pt.level<2?4:pt.level==9?2:0,gt[9]=3,pt.mtime!=0&&Fe(gt,4,Math.floor(new Date(pt.mtime||Date.now())/1e3)),ar){gt[3]=8;for(var Ht=0;Ht<=ar.length;++Ht)gt[Ht+10]=ar.charCodeAt(Ht)}},Ct=function(gt){if(gt[0]!=31||gt[1]!=139||gt[2]!=8)throw"invalid gzip data";var pt=gt[3],ar=10;pt&4&&(ar+=gt[10]|(gt[11]<<8)+2);for(var Ht=(pt>>3&1)+(pt>>4&1);Ht>0;Ht-=!gt[ar++]);return ar+(pt&2)},mt=function(gt){var pt=gt.length;return(gt[pt-4]|gt[pt-3]<<8|gt[pt-2]<<16)+2*(gt[pt-1]<<23)},Ve=function(gt){return 10+(gt.filename&&gt.filename.length+1||0)},or=function(gt,pt){var ar=pt.level,Ht=ar==0?0:ar<6?1:ar==9?3:2;gt[0]=120,gt[1]=Ht<<6|(Ht?32-2*Ht:1)},dt=function(gt){if((gt[0]&15)!=8||gt[0]>>>4>7||(gt[0]<<8|gt[1])%31)throw"invalid zlib data";if(gt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Yt(jt,gt){return!gt&&typeof jt=="function"&&(gt=jt,jt={}),this.ondata=gt,jt}var hr=function(){function jt(gt,pt){!pt&&typeof gt=="function"&&(pt=gt,gt={}),this.ondata=pt,this.o=gt||{}}return jt.prototype.p=function(gt,pt){this.ondata(be(gt,this.o,0,0,!pt),pt)},jt.prototype.push=function(gt,pt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=pt,this.p(gt,pt||!1)},jt}(),Gt=function(){function jt(gt,pt){je([oe,function(){return[Ne,hr]}],this,Yt.call(this,gt,pt),function(ar){var Ht=new hr(ar.data);onmessage=Ne(Ht)},6)}return jt}();function Pt(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";return we(jt,gt,[oe],function(ar){return q(Xt(ar.data[0],ar.data[1]))},0,pt)}function Xt(jt,gt){return gt===void 0&&(gt={}),be(jt,gt,0,0)}var Ge=function(){function jt(gt){this.s={},this.p=new x(0),this.ondata=gt}return jt.prototype.e=function(gt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var pt=this.p.length,ar=new x(pt+gt.length);ar.set(this.p),ar.set(gt,pt),this.p=ar},jt.prototype.c=function(gt){this.d=this.s.i=gt||!1;var pt=this.s.b,ar=M(this.p,this.o,this.s);this.ondata(R(ar,pt,this.s.b),this.d),this.o=R(ar,this.s.b-32768),this.s.b=this.o.length,this.p=R(this.p,this.s.p/8>>0),this.s.p&=7},jt.prototype.push=function(gt,pt){this.e(gt),this.c(pt)},jt}(),pe=function(){function jt(gt){this.ondata=gt,je([Ie,function(){return[Ne,Ge]}],this,0,function(){var pt=new Ge;onmessage=Ne(pt)},7)}return jt}();function se(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";return we(jt,gt,[Ie],function(ar){return q(lt(ar.data[0],fe(ar.data[1])))},1,pt)}function lt(jt,gt){return M(jt,gt)}var Ze=function(){function jt(gt,pt){this.c=ue(),this.l=0,this.v=1,hr.call(this,gt,pt)}return jt.prototype.push=function(gt,pt){hr.prototype.push.call(this,gt,pt)},jt.prototype.p=function(gt,pt){this.c.p(gt),this.l+=gt.length;var ar=be(gt,this.o,this.v&&Ve(this.o),pt&&8,!pt);this.v&&(it(ar,this.o),this.v=0),pt&&(Fe(ar,ar.length-8,this.c.d()),Fe(ar,ar.length-4,this.l)),this.ondata(ar,pt)},jt}(),de=function(){function jt(gt,pt){je([oe,ot,function(){return[Ne,hr,Ze]}],this,Yt.call(this,gt,pt),function(ar){var Ht=new Ze(ar.data);onmessage=Ne(Ht)},8)}return jt}();function _t(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";return we(jt,gt,[oe,ot,function(){return[er]}],function(ar){return q(er(ar.data[0],ar.data[1]))},2,pt)}function er(jt,gt){gt===void 0&&(gt={});var pt=ue(),ar=jt.length;pt.p(jt);var Ht=be(jt,gt,Ve(gt),8),Mt=Ht.length;return it(Ht,gt),Fe(Ht,Mt-8,pt.d()),Fe(Ht,Mt-4,ar),Ht}var yt=function(){function jt(gt){this.v=1,Ge.call(this,gt)}return jt.prototype.push=function(gt,pt){if(Ge.prototype.e.call(this,gt),this.v){var ar=Ct(this.p);if(ar>=this.p.length&&!pt)return;this.p=this.p.subarray(ar),this.v=0}if(pt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ge.prototype.c.call(this,pt)},jt}(),Ar=function(){function jt(gt){this.ondata=gt,je([Ie,he,function(){return[Ne,Ge,yt]}],this,0,function(){var pt=new yt;onmessage=Ne(pt)},9)}return jt}();function Sr(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";return we(jt,gt,[Ie,he,function(){return[Cn]}],function(ar){return q(Cn(ar.data[0]))},3,pt)}function Cn(jt,gt){return M(jt.subarray(Ct(jt),-8),gt||new x(mt(jt)))}var mr=function(){function jt(gt,pt){this.c=$(),this.v=1,hr.call(this,gt,pt)}return jt.prototype.push=function(gt,pt){hr.prototype.push.call(this,gt,pt)},jt.prototype.p=function(gt,pt){this.c.p(gt);var ar=be(gt,this.o,this.v&&2,pt&&4,!pt);this.v&&(or(ar,this.o),this.v=0),pt&&Fe(ar,ar.length-4,this.c.d()),this.ondata(ar,pt)},jt}(),Pr=function(){function jt(gt,pt){je([oe,J,function(){return[Ne,hr,mr]}],this,Yt.call(this,gt,pt),function(ar){var Ht=new mr(ar.data);onmessage=Ne(Ht)},10)}return jt}();function gr(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";return we(jt,gt,[oe,J,function(){return[Jt]}],function(ar){return q(Jt(ar.data[0],ar.data[1]))},4,pt)}function Jt(jt,gt){gt===void 0&&(gt={});var pt=$();pt.p(jt);var ar=be(jt,gt,2,4);return or(ar,gt),Fe(ar,ar.length-4,pt.d()),ar}var Dt=function(){function jt(gt){this.v=1,Ge.call(this,gt)}return jt.prototype.push=function(gt,pt){if(Ge.prototype.e.call(this,gt),this.v){if(this.p.length<2&&!pt)return;this.p=this.p.subarray(2),this.v=0}if(pt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ge.prototype.c.call(this,pt)},jt}(),dn=function(){function jt(gt){this.ondata=gt,je([Ie,Y,function(){return[Ne,Ge,Dt]}],this,0,function(){var pt=new Dt;onmessage=Ne(pt)},11)}return jt}();function Fn(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";return we(jt,gt,[Ie,Y,function(){return[Zn]}],function(ar){return q(Zn(ar.data[0],fe(ar.data[1])))},5,pt)}function Zn(jt,gt){return M((dt(jt),jt.subarray(2,-4)),gt)}var ci=function(){function jt(gt){this.G=yt,this.I=Ge,this.Z=Dt,this.ondata=gt}return jt.prototype.push=function(gt,pt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(gt,pt);else{if(this.p&&this.p.length){var ar=new x(this.p.length+gt.length);ar.set(this.p),ar.set(gt,this.p.length)}else this.p=gt;if(this.p.length>2){var Ht=this,Mt=function(){Ht.ondata.apply(Ht,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Mt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Mt):new this.Z(Mt),this.s.push(this.p,pt),this.p=null}}},jt}(),Xi=function(){function jt(gt){this.G=Ar,this.I=pe,this.Z=dn,this.ondata=gt}return jt.prototype.push=function(gt,pt){ci.prototype.push.call(this,gt,pt)},jt}();function Gn(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";return jt[0]==31&&jt[1]==139&&jt[2]==8?Sr(jt,gt,pt):(jt[0]&15)!=8||jt[0]>>4>7||(jt[0]<<8|jt[1])%31?se(jt,gt,pt):Fn(jt,gt,pt)}function ei(jt,gt){return jt[0]==31&&jt[1]==139&&jt[2]==8?Cn(jt,gt):(jt[0]&15)!=8||jt[0]>>4>7||(jt[0]<<8|jt[1])%31?lt(jt,gt):Zn(jt,gt)}var Zt=function jt(gt,pt,ar,Ht){for(var Mt in gt){var qt=gt[Mt],Rt=pt+Mt;qt instanceof x?ar[Rt]=[qt,Ht]:Array.isArray(qt)?ar[Rt]=[qt[0],_e(Ht,qt[1])]:jt(qt,Rt+"/",ar,Ht)}};function Nt(jt,gt){var pt=jt.length;if(!gt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(jt);for(var ar=new x(jt.length+(jt.length>>>1)),Ht=0,Mt=function(Nr){ar[Ht++]=Nr},qt=0;qt<pt;++qt){if(Ht+5>ar.length){var Rt=new x(Ht+8+(pt-qt<<1));Rt.set(ar),ar=Rt}var Qt=jt.charCodeAt(qt);Qt<128||gt?Mt(Qt):Qt<2048?(Mt(192|Qt>>>6),Mt(128|Qt&63)):Qt>55295&&Qt<57344?(Qt=65536+(Qt&1023<<10)|jt.charCodeAt(++qt)&1023,Mt(240|Qt>>>18),Mt(128|Qt>>>12&63),Mt(128|Qt>>>6&63),Mt(128|Qt&63)):(Mt(224|Qt>>>12),Mt(128|Qt>>>6&63),Mt(128|Qt&63))}return R(ar,0,Ht)}function Me(jt,gt){var pt="";if(!gt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(jt);for(var ar=0;ar<jt.length;){var Ht=jt[ar++];Ht<128||gt?pt+=String.fromCharCode(Ht):Ht<224?pt+=String.fromCharCode((Ht&31)<<6|jt[ar++]&63):Ht<240?pt+=String.fromCharCode((Ht&15)<<12|(jt[ar++]&63)<<6|jt[ar++]&63):(Ht=((Ht&15)<<18|(jt[ar++]&63)<<12|(jt[ar++]&63)<<6|jt[ar++]&63)-65536,pt+=String.fromCharCode(55296|Ht>>10,56320|Ht&1023))}return pt}var ke=function(gt,pt){return pt+30+me(gt,pt+26)+me(gt,pt+28)},Pe=function(gt,pt,ar){var Ht=me(gt,pt+28),Mt=Me(gt.subarray(pt+46,pt+46+Ht),!(me(gt,pt+8)&2048)),qt=pt+46+Ht,Rt=ar?tt(gt,qt):[Ce(gt,pt+20),Ce(gt,pt+24),Ce(gt,pt+42)],Qt=Rt[0],jr=Rt[1],Nr=Rt[2];return[me(gt,pt+10),Qt,jr,Mt,qt+me(gt,pt+30)+me(gt,pt+32),Nr]},tt=function(gt,pt){for(;me(gt,pt)!=1;pt+=4+me(gt,pt+2));return[Ce(gt,pt+12),Ce(gt,pt+4),Ce(gt,pt+20)]},vt=function(gt,pt,ar,Ht,Mt,qt,Rt,Qt,jr,Nr){var Lr=qt.length,ln=Ht.length;Fe(gt,pt,jr!=null?33639248:67324752),pt+=4,jr!=null&&(gt[pt]=20,pt+=2),gt[pt]=20,pt+=2,gt[pt++]=Nr==8&&(Qt.level==1?6:Qt.level<6?4:Qt.level==9?2:0),gt[pt++]=Rt&&8,gt[pt]=Nr,pt+=2;var mn=new Date(Qt.mtime||Date.now()),ti=mn.getFullYear()-1980;if(ti<0||ti>119)throw"date not in range 1980-2099";Fe(gt,pt,(ti<<24)*2|mn.getMonth()+1<<21|mn.getDate()<<16|mn.getHours()<<11|mn.getMinutes()<<5|mn.getSeconds()>>>1),pt+=4,Fe(gt,pt,ar),Fe(gt,pt+4,ln),Fe(gt,pt+8,Mt),Fe(gt,pt+12,Lr),pt+=16,jr!=null&&(Fe(gt,pt+=10,jr),pt+=4),gt.set(qt,pt),pt+=Lr,jr==null&&gt.set(Ht,pt)},St=function(gt,pt,ar,Ht,Mt){Fe(gt,pt,101010256),Fe(gt,pt+8,ar),Fe(gt,pt+10,ar),Fe(gt,pt+12,Ht),Fe(gt,pt+16,Mt)};function Vt(jt,gt,pt){if(pt||(pt=gt,gt={}),typeof pt!="function")throw"no callback";var ar={};Zt(jt,"",ar,gt);var Ht=Object.keys(ar),Mt=Ht.length,qt=0,Rt=0,Qt=Mt,jr=new Array(Mt),Nr=[],Lr=function(){for(var hi=0;hi<Nr.length;++hi)Nr[hi]()},ln=function(){var hi=new x(Rt+22),Ti=qt,Ni=Rt-qt;Rt=0;for(var Wi=0;Wi<Qt;++Wi){var rt=jr[Wi];try{vt(hi,Rt,rt.c,rt.d,rt.m,rt.n,rt.u,rt.p,null,rt.t),vt(hi,qt,rt.c,rt.d,rt.m,rt.n,rt.u,rt.p,Rt,rt.t),qt+=46+rt.n.length,Rt+=30+rt.n.length+rt.d.length}catch(Re){return pt(Re,null)}}St(hi,qt,jr.length,Ni,Ti),pt(null,hi)};Mt||ln();for(var mn=function(hi){var Ti=Ht[hi],Ni=ar[Ti],Wi=Ni[0],rt=Ni[1],Re=ue(),Ue=Wi.length;Re.p(Wi);var Ye=Nt(Ti),et=Ye.length,$e=rt.level==0?0:8,at=function(ft,cr){if(ft)Lr(),pt(ft,null);else{var Jr=cr.length;jr[hi]={t:$e,d:cr,m:Ue,c:Re.d(),u:Ti.length!=Jr,n:Ye,p:rt},qt+=30+et+Jr,Rt+=76+2*et+Jr,--Mt||ln()}};if(Ye.length>65535&&at("filename too long",null),!$e)at(null,Wi);else if(Ue<16e4)try{at(null,Xt(Wi,rt))}catch(wt){at(wt,null)}else Nr.push(Pt(Wi,rt,at))},ti=0;ti<Qt;++ti)mn(ti);return Lr}function Mr(jt,gt){gt===void 0&&(gt={});var pt={},ar=[];Zt(jt,"",pt,gt);var Ht=0,Mt=0;for(var qt in pt){var Rt=pt[qt],Qt=Rt[0],jr=Rt[1],Nr=jr.level==0?0:8,Lr=Nt(qt),ln=Lr.length;if(Lr.length>65535)throw"filename too long";var mn=Nr?Xt(Qt,jr):Qt,ti=mn.length,$n=ue();$n.p(Qt),ar.push({t:Nr,d:mn,m:Qt.length,c:$n.d(),u:qt.length!=ln,n:Lr,o:Ht,p:jr}),Ht+=30+ln+ti,Mt+=76+2*ln+ti}for(var hi=new x(Mt+22),Ti=Ht,Ni=Mt-Ht,Wi=0;Wi<ar.length;++Wi){var rt=ar[Wi];vt(hi,rt.o,rt.c,rt.d,rt.m,rt.n,rt.u,rt.p,null,rt.t),vt(hi,Ht,rt.c,rt.d,rt.m,rt.n,rt.u,rt.p,rt.o,rt.t),Ht+=46+rt.n.length}return St(hi,Ht,ar.length,Ni,Ti),hi}function $r(jt,gt){if(typeof gt!="function")throw"no callback";for(var pt=[],ar=function(){for(var mn=0;mn<pt.length;++mn)pt[mn]()},Ht={},Mt=jt.length-22;Ce(jt,Mt)!=101010256;--Mt)if(!Mt||jt.length-Mt>65558){gt("invalid zip file",null);return}var qt=me(jt,Mt+8);qt||gt(null,{});var Rt=qt,Qt=Ce(jt,Mt+16),jr=Qt==4294967295;if(jr){if(Mt=Ce(jt,Mt-12),Ce(jt,Mt)!=101075792)throw"invalid zip file";Rt=qt=Ce(jt,Mt+32),Qt=Ce(jt,Mt+48)}for(var Nr=function(mn){var ti=Pe(jt,Qt,jr),$n=ti[0],hi=ti[1],Ti=ti[2],Ni=ti[3],Wi=ti[4],rt=ti[5],Re=ke(jt,rt);Qt=Wi;var Ue=function($e,at){$e?(ar(),gt($e,null)):(Ht[Ni]=at,--qt||gt(null,Ht))};if(!$n)Ue(null,R(jt,Re,Re+hi));else if($n==8){var Ye=jt.subarray(Re,Re+hi);if(hi<32e4)try{Ue(null,lt(Ye,new x(Ti)))}catch(et){Ue(et,null)}else pt.push(se(Ye,{size:Ti},Ue))}else Ue("unknown compression type "+$n,null)},Lr=0;Lr<Rt;++Lr)Nr(Lr);return ar}function vn(jt){for(var gt={},pt=jt.length-22;Ce(jt,pt)!=101010256;--pt)if(!pt||jt.length-pt>65558)throw"invalid zip file";var ar=me(jt,pt+8);if(!ar)return{};var Ht=Ce(jt,pt+16),Mt=Ht==4294967295;if(Mt){if(pt=Ce(jt,pt-12),Ce(jt,pt)!=101075792)throw"invalid zip file";ar=Ce(jt,pt+32),Ht=Ce(jt,pt+48)}for(var qt=0;qt<ar;++qt){var Rt=Pe(jt,Ht,Mt),Qt=Rt[0],jr=Rt[1],Nr=Rt[2],Lr=Rt[3],ln=Rt[4],mn=Rt[5],ti=ke(jt,mn);if(Ht=ln,!Qt)gt[Lr]=R(jt,ti,ti+jr);else if(Qt==8)gt[Lr]=lt(jt.subarray(ti,ti+jr),new x(Nr));else throw"unknown compression type "+Qt}return gt}},cv67:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.algo,u=[];(function(){for(var l=0;l<64;l++)u[l]=p.abs(p.sin(l+1))*4294967296|0})();var a=h.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 d=s+c,g=r[d];r[d]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var v=this._hash.words,b=r[s+0],S=r[s+1],E=r[s+2],C=r[s+3],_=r[s+4],T=r[s+5],w=r[s+6],O=r[s+7],I=r[s+8],R=r[s+9],M=r[s+10],F=r[s+11],P=r[s+12],X=r[s+13],B=r[s+14],j=r[s+15],W=v[0],z=v[1],V=v[2],Q=v[3];W=i(W,z,V,Q,b,7,u[0]),Q=i(Q,W,z,V,S,12,u[1]),V=i(V,Q,W,z,E,17,u[2]),z=i(z,V,Q,W,C,22,u[3]),W=i(W,z,V,Q,_,7,u[4]),Q=i(Q,W,z,V,T,12,u[5]),V=i(V,Q,W,z,w,17,u[6]),z=i(z,V,Q,W,O,22,u[7]),W=i(W,z,V,Q,I,7,u[8]),Q=i(Q,W,z,V,R,12,u[9]),V=i(V,Q,W,z,M,17,u[10]),z=i(z,V,Q,W,F,22,u[11]),W=i(W,z,V,Q,P,7,u[12]),Q=i(Q,W,z,V,X,12,u[13]),V=i(V,Q,W,z,B,17,u[14]),z=i(z,V,Q,W,j,22,u[15]),W=t(W,z,V,Q,S,5,u[16]),Q=t(Q,W,z,V,w,9,u[17]),V=t(V,Q,W,z,F,14,u[18]),z=t(z,V,Q,W,b,20,u[19]),W=t(W,z,V,Q,T,5,u[20]),Q=t(Q,W,z,V,M,9,u[21]),V=t(V,Q,W,z,j,14,u[22]),z=t(z,V,Q,W,_,20,u[23]),W=t(W,z,V,Q,R,5,u[24]),Q=t(Q,W,z,V,B,9,u[25]),V=t(V,Q,W,z,C,14,u[26]),z=t(z,V,Q,W,I,20,u[27]),W=t(W,z,V,Q,X,5,u[28]),Q=t(Q,W,z,V,E,9,u[29]),V=t(V,Q,W,z,O,14,u[30]),z=t(z,V,Q,W,P,20,u[31]),W=o(W,z,V,Q,T,4,u[32]),Q=o(Q,W,z,V,I,11,u[33]),V=o(V,Q,W,z,F,16,u[34]),z=o(z,V,Q,W,B,23,u[35]),W=o(W,z,V,Q,S,4,u[36]),Q=o(Q,W,z,V,_,11,u[37]),V=o(V,Q,W,z,O,16,u[38]),z=o(z,V,Q,W,M,23,u[39]),W=o(W,z,V,Q,X,4,u[40]),Q=o(Q,W,z,V,b,11,u[41]),V=o(V,Q,W,z,C,16,u[42]),z=o(z,V,Q,W,w,23,u[43]),W=o(W,z,V,Q,R,4,u[44]),Q=o(Q,W,z,V,P,11,u[45]),V=o(V,Q,W,z,j,16,u[46]),z=o(z,V,Q,W,E,23,u[47]),W=e(W,z,V,Q,b,6,u[48]),Q=e(Q,W,z,V,O,10,u[49]),V=e(V,Q,W,z,B,15,u[50]),z=e(z,V,Q,W,T,21,u[51]),W=e(W,z,V,Q,P,6,u[52]),Q=e(Q,W,z,V,C,10,u[53]),V=e(V,Q,W,z,M,15,u[54]),z=e(z,V,Q,W,S,21,u[55]),W=e(W,z,V,Q,I,6,u[56]),Q=e(Q,W,z,V,j,10,u[57]),V=e(V,Q,W,z,w,15,u[58]),z=e(z,V,Q,W,X,21,u[59]),W=e(W,z,V,Q,_,6,u[60]),Q=e(Q,W,z,V,F,10,u[61]),V=e(V,Q,W,z,E,15,u[62]),z=e(z,V,Q,W,R,21,u[63]),v[0]=v[0]+W|0,v[1]=v[1]+z|0,v[2]=v[2]+V|0,v[3]=v[3]+Q|0},_doFinalize:function(){var r=this._data,s=r.words,c=this._nDataBytes*8,d=r.sigBytes*8;s[d>>>5]|=128<<24-d%32;var g=p.floor(c/4294967296),v=c;s[(d+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,s[(d+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,r.sigBytes=(s.length+1)*4,this._process();for(var b=this._hash,S=b.words,E=0;E<4;E++){var C=S[E];S[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return b},clone:function(){var r=f.clone.call(this);return r._hash=this._hash.clone(),r}});function i(l,r,s,c,d,g,v){var b=l+(r&s|~r&c)+d+v;return(b<<g|b>>>32-g)+r}function t(l,r,s,c,d,g,v){var b=l+(r&c|s&~c)+d+v;return(b<<g|b>>>32-g)+r}function o(l,r,s,c,d,g,v){var b=l+(r^s^c)+d+v;return(b<<g|b>>>32-g)+r}function e(l,r,s,c,d,g,v){var b=l+(s^(r|~c))+d+v;return(b<<g|b>>>32-g)+r}x.MD5=f._createHelper(a),x.HmacMD5=f._createHmacHelper(a)}(Math),y.MD5})},czTT:function(k,D,n){},d4KN:function(k,D,n){var y=n("ProS"),p=n("bYtY");function x(A,m){p.each(m,function(f){f.update="updateView",y.registerAction(f,function(h,u){var a={};return u.eachComponent({mainType:"series",subType:A,query:h},function(i){i[f.method]&&i[f.method](h.name,h.dataIndex);var t=i.getData();t.each(function(o){var e=t.getName(o);a[e]=i.isSelected(e)||!1})}),{name:h.name,selected:a,seriesId:h.seriesId}})})}k.exports=x},dBmv:function(k,D,n){var y=n("ProS"),p=n("szbU");n("vF/C"),n("qwVE"),n("MHoB"),n("PNag"),n("1u/T"),y.registerPreprocessor(p)},dD9F:function(k,D,n){var y=n("NykK"),p=n("shjB"),x=n("ExA7"),A="[object Arguments]",m="[object Array]",f="[object Boolean]",h="[object Date]",u="[object Error]",a="[object Function]",i="[object Map]",t="[object Number]",o="[object Object]",e="[object RegExp]",l="[object Set]",r="[object String]",s="[object WeakMap]",c="[object ArrayBuffer]",d="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",b="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",T="[object Uint16Array]",w="[object Uint32Array]",O={};O[g]=O[v]=O[b]=O[S]=O[E]=O[C]=O[_]=O[T]=O[w]=!0,O[A]=O[m]=O[c]=O[f]=O[d]=O[h]=O[u]=O[a]=O[i]=O[t]=O[o]=O[e]=O[l]=O[r]=O[s]=!1;function I(R){return x(R)&&p(R.length)&&!!O[y(R)]}k.exports=I},"dF/Y":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="DownloadOutlined";var h=D.a=p.forwardRef(f)},dMvE:function(k,D){var n={linear:function(x){return x},quadraticIn:function(x){return x*x},quadraticOut:function(x){return x*(2-x)},quadraticInOut:function(x){return(x*=2)<1?.5*x*x:-.5*(--x*(x-2)-1)},cubicIn:function(x){return x*x*x},cubicOut:function(x){return--x*x*x+1},cubicInOut:function(x){return(x*=2)<1?.5*x*x*x:.5*((x-=2)*x*x+2)},quarticIn:function(x){return x*x*x*x},quarticOut:function(x){return 1- --x*x*x*x},quarticInOut:function(x){return(x*=2)<1?.5*x*x*x*x:-.5*((x-=2)*x*x*x-2)},quinticIn:function(x){return x*x*x*x*x},quinticOut:function(x){return--x*x*x*x*x+1},quinticInOut:function(x){return(x*=2)<1?.5*x*x*x*x*x:.5*((x-=2)*x*x*x*x+2)},sinusoidalIn:function(x){return 1-Math.cos(x*Math.PI/2)},sinusoidalOut:function(x){return Math.sin(x*Math.PI/2)},sinusoidalInOut:function(x){return .5*(1-Math.cos(Math.PI*x))},exponentialIn:function(x){return x===0?0:Math.pow(1024,x-1)},exponentialOut:function(x){return x===1?1:1-Math.pow(2,-10*x)},exponentialInOut:function(x){return x===0?0:x===1?1:(x*=2)<1?.5*Math.pow(1024,x-1):.5*(-Math.pow(2,-10*(x-1))+2)},circularIn:function(x){return 1-Math.sqrt(1-x*x)},circularOut:function(x){return Math.sqrt(1- --x*x)},circularInOut:function(x){return(x*=2)<1?-.5*(Math.sqrt(1-x*x)-1):.5*(Math.sqrt(1-(x-=2)*x)+1)},elasticIn:function(x){var A,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),-(m*Math.pow(2,10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/f)))},elasticOut:function(x){var A,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),m*Math.pow(2,-10*x)*Math.sin((x-A)*(2*Math.PI)/f)+1)},elasticInOut:function(x){var A,m=.1,f=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),(x*=2)<1?-.5*(m*Math.pow(2,10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/f)):m*Math.pow(2,-10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/f)*.5+1)},backIn:function(x){var A=1.70158;return x*x*((A+1)*x-A)},backOut:function(x){var A=1.70158;return--x*x*((A+1)*x+A)+1},backInOut:function(x){var A=1.70158*1.525;return(x*=2)<1?.5*(x*x*((A+1)*x-A)):.5*((x-=2)*x*((A+1)*x+A)+2)},bounceIn:function(x){return 1-n.bounceOut(1-x)},bounceOut:function(x){return x<1/2.75?7.5625*x*x:x<2/2.75?7.5625*(x-=1.5/2.75)*x+.75:x<2.5/2.75?7.5625*(x-=2.25/2.75)*x+.9375:7.5625*(x-=2.625/2.75)*x+.984375},bounceInOut:function(x){return x<.5?n.bounceIn(x*2)*.5:n.bounceOut(x*2-1)*.5+.5}},y=n;k.exports=y},diRs:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("q1tI"),A=n.n(x),m=n("3S7+"),f=n("H84U"),h=n("bogI"),u=function(i,t){var o={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&t.indexOf(e)<0&&(o[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(i);l<e.length;l++)t.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(i,e[l])&&(o[e[l]]=i[e[l]]);return o},a=x.forwardRef(function(i,t){var o=i.prefixCls,e=i.title,l=i.content,r=u(i,["prefixCls","title","content"]),s=x.useContext(f.b),c=s.getPrefixCls,d=function(b){return x.createElement(x.Fragment,null,e&&x.createElement("div",{className:"".concat(b,"-title")},Object(h.a)(e)),x.createElement("div",{className:"".concat(b,"-inner-content")},Object(h.a)(l)))},g=c("popover",o);return x.createElement(m.a,p()({},r,{prefixCls:g,ref:t,overlay:d(g)}))});a.displayName="Popover",a.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},D.a=a},digP:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(x,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:A}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:x}}]}},name:"file",theme:"twotone"};D.default=y},dm2S:function(k,D,n){"use strict";n.d(D,"a",function(){return A});var y=n("ODXe"),p=n("q1tI"),x=n.n(p);function A(m){var f=p.useRef(!1),h=p.useState(m),u=Object(y.a)(h,2),a=u[0],i=u[1];p.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function t(o,e){if(e&&f.current)return;i(o)}return[a,t]}},dmGj:function(k,D,n){var y=n("DEFe"),p=n("ProS"),x=p.extendComponentView({type:"geo",init:function(A,m){var f=new y(m,!0);this._mapDraw=f,this.group.add(f.group)},render:function(A,m,f,h){if(h&&h.type==="geoToggleSelect"&&h.from===this.uid)return;var u=this._mapDraw;A.get("show")?u.draw(A,m,f,this,h):this._mapDraw.group.removeAll(),this.group.silent=A.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});k.exports=x},dnwI:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("YH21"),A=n("Kagy"),m=n("IUWy"),f=A.toolbox.dataView,h=new Array(60).join("-"),u=" ";function a(S){var E={},C=[],_=[];return S.eachRawSeries(function(T){var w=T.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var O=w.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;E[I]||(E[I]={categoryAxis:O,valueAxis:w.getOtherAxis(O),series:[]},_.push({axisDim:O.dim,axisIndex:O.index})),E[I].series.push(T)}else C.push(T)}else C.push(T)}),{seriesGroupByCategoryAxis:E,other:C,meta:_}}function i(S){var E=[];return p.each(S,function(C,_){var T=C.categoryAxis,w=C.valueAxis,O=w.dim,I=[" "].concat(p.map(C.series,function(B){return B.name})),R=[T.model.getCategories()];p.each(C.series,function(B){R.push(B.getRawData().mapArray(O,function(j){return j}))});for(var M=[I.join(u)],F=0;F<R[0].length;F++){for(var P=[],X=0;X<R.length;X++)P.push(R[X][F]);M.push(P.join(u))}E.push(M.join(`
`))}),E.join(`
`+h+`
`)}function t(S){return p.map(S,function(E){var C=E.getRawData(),_=[E.name],T=[];return C.each(C.dimensions,function(){for(var w=arguments.length,O=arguments[w-1],I=C.getName(O),R=0;R<w-1;R++)T[R]=arguments[R];_.push((I?I+u:"")+T.join(u))}),_.join(`
`)}).join(`
`+h+`
`)}function o(S){var E=a(S);return{value:p.filter([i(E.seriesGroupByCategoryAxis),t(E.other)],function(C){return C.replace(/[\n\t\s]/g,"")}).join(`
`+h+`
`),meta:E.meta}}function e(S){return S.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(S){var E=S.slice(0,S.indexOf(`
`));if(E.indexOf(u)>=0)return!0}var r=new RegExp("["+u+"]+","g");function s(S){for(var E=S.split(/\n+/g),C=e(E.shift()).split(r),_=[],T=p.map(C,function(R){return{name:R,data:[]}}),w=0;w<E.length;w++){var O=e(E[w]).split(r);_.push(O.shift());for(var I=0;I<O.length;I++)T[I]&&(T[I].data[w]=O[I])}return{series:T,categories:_}}function c(S){for(var E=S.split(/\n+/g),C=e(E.shift()),_=[],T=0;T<E.length;T++){var w=e(E[T]).split(r),O="",I,R=!1;isNaN(w[0])?(R=!0,O=w[0],w=w.slice(1),_[T]={name:O,value:[]},I=_[T].value):I=_[T]=[];for(var M=0;M<w.length;M++)I.push(+w[M]);I.length===1&&(R?_[T].value=I[0]:_[T]=I[0])}return{name:C,data:_}}function d(S,E){var C=S.split(new RegExp(`
*`+h+`
*`,"g")),_={series:[]};return p.each(C,function(T,w){if(l(T)){var O=s(T),I=E[w],R=I.axisDim+"Axis";I&&(_[R]=_[R]||[],_[R][I.axisIndex]={data:O.categories},_.series=_.series.concat(O.series))}else{var O=c(T);_.series.push(O)}}),_}function g(S){this._dom=null,this.model=S}g.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title: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(S,E){var C=E.getDom(),_=this.model;this._dom&&C.removeChild(this._dom);var T=document.createElement("div");T.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",T.style.backgroundColor=_.get("backgroundColor")||"#fff";var w=document.createElement("h4"),O=_.get("lang")||[];w.innerHTML=O[0]||_.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=_.get("textColor");var I=document.createElement("div"),R=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var M=_.get("optionToContent"),F=_.get("contentToOption"),P=o(S);if(typeof M=="function"){var X=M(E.getOption());typeof X=="string"?I.innerHTML=X:p.isDom(X)&&I.appendChild(X)}else I.appendChild(R),R.readOnly=_.get("readOnly"),R.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",R.style.color=_.get("textColor"),R.style.borderColor=_.get("textareaBorderColor"),R.style.backgroundColor=_.get("textareaColor"),R.value=P.value;var B=P.meta,j=document.createElement("div");j.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",z=document.createElement("div"),V=document.createElement("div");W+=";background-color:"+_.get("buttonColor"),W+=";color:"+_.get("buttonTextColor");var Q=this;function G(){C.removeChild(T),Q._dom=null}x.addEventListener(z,"click",G),x.addEventListener(V,"click",function(){var re;try{typeof F=="function"?re=F(I,E.getOption()):re=d(R.value,B)}catch(ee){throw G(),new Error("Data view format error "+ee)}re&&E.dispatchAction({type:"changeDataView",newOption:re}),G()}),z.innerHTML=O[1],V.innerHTML=O[2],V.style.cssText=W,z.style.cssText=W,!_.get("readOnly")&&j.appendChild(V),j.appendChild(z),T.appendChild(w),T.appendChild(I),T.appendChild(j),I.style.height=C.clientHeight-80+"px",C.appendChild(T),this._dom=T},g.prototype.remove=function(S,E){this._dom&&E.getDom().removeChild(this._dom)},g.prototype.dispose=function(S,E){this.remove(S,E)};function v(S,E){return p.map(S,function(C,_){var T=E&&E[_];return p.isObject(T)&&!p.isArray(T)?(p.isObject(C)&&!p.isArray(C)&&(C=C.value),p.defaults({value:C},T)):C})}m.register("dataView",g),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(S,E){var C=[];p.each(S.newOption.series,function(_){var T=E.getSeriesByName(_.name)[0];if(!T)C.push(p.extend({type:"scatter"},_));else{var w=T.get("data");C.push({name:_.name,data:v(_.data,w)})}}),E.mergeOption(p.defaults({series:C},S.newOption))});var b=g;k.exports=b},dqUG:function(k,D,n){var y=n("Gev7"),p=n("bYtY"),x=n("6GrX"),A=n("pzxd"),m=n("gut8"),f=m.ContextCachedBy,h=function(i){y.call(this,i)};h.prototype={constructor:h,type:"text",brush:function(i,t){var o=this.style;this.__dirty&&A.normalizeTextStyle(o,!0),o.fill=o.stroke=o.shadowBlur=o.shadowColor=o.shadowOffsetX=o.shadowOffsetY=null;var e=o.text;if(e!=null&&(e+=""),!A.needDrawText(e,o)){i.__attrCachedBy=f.NONE;return}this.setTransform(i),A.renderText(this,i,e,o,null,t),this.restoreTransform(i)},getBoundingRect:function(){var i=this.style;if(this.__dirty&&A.normalizeTextStyle(i,!0),!this._rect){var t=i.text;t!=null?t+="":t="";var o=x.getBoundingRect(i.text+"",i.font,i.textAlign,i.textVerticalAlign,i.textPadding,i.textLineHeight,i.rich);if(o.x+=i.x||0,o.y+=i.y||0,A.getStroke(i.textStroke,i.textStrokeWidth)){var e=i.textStrokeWidth;o.x-=e/2,o.y-=e/2,o.width+=e,o.height+=e}this._rect=o}return this._rect}},p.inherits(h,y);var u=h;k.exports=u},dt0z:function(k,D,n){var y=n("zoYe");function p(x){return x==null?"":y(x)}k.exports=p},dtIV:function(k,D,n){"use strict";n.r(D),function(y){n.d(D,"AcroForm",function(){return Ze}),n.d(D,"AcroFormAppearance",function(){return se}),n.d(D,"AcroFormButton",function(){return Yt}),n.d(D,"AcroFormCheckBox",function(){return Xt}),n.d(D,"AcroFormChoiceField",function(){return mt}),n.d(D,"AcroFormComboBox",function(){return or}),n.d(D,"AcroFormEditBox",function(){return dt}),n.d(D,"AcroFormListBox",function(){return Ve}),n.d(D,"AcroFormPasswordField",function(){return pe}),n.d(D,"AcroFormPushButton",function(){return hr}),n.d(D,"AcroFormRadioButton",function(){return Gt}),n.d(D,"AcroFormTextField",function(){return Ge}),n.d(D,"GState",function(){return X}),n.d(D,"ShadingPattern",function(){return j}),n.d(D,"TilingPattern",function(){return W}),n.d(D,"jsPDF",function(){return z});var p=n("cDf5"),x=n.n(p),A=n("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 h={log:f,warn:function(Re){m.console&&(typeof m.console.warn=="function"?m.console.warn.apply(m.console,arguments):f.call(null,arguments))},error:function(Re){m.console&&(typeof m.console.error=="function"?m.console.error.apply(m.console,arguments):f(Re))}};function u(rt,Re,Ue){var Ye=new XMLHttpRequest;Ye.open("GET",rt),Ye.responseType="blob",Ye.onload=function(){e(Ye.response,Re,Ue)},Ye.onerror=function(){h.error("could not download file")},Ye.send()}function a(rt){var Re=new XMLHttpRequest;Re.open("HEAD",rt,!1);try{Re.send()}catch(Ue){}return Re.status>=200&&Re.status<=299}function i(rt){try{rt.dispatchEvent(new MouseEvent("click"))}catch(Ue){var Re=document.createEvent("MouseEvents");Re.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),rt.dispatchEvent(Re)}}var t,o,e=m.saveAs||((typeof window=="undefined"?"undefined":x()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(rt,Re,Ue){var Ye=m.URL||m.webkitURL,et=document.createElement("a");Re=Re||rt.name||"download",et.download=Re,et.rel="noopener",typeof rt=="string"?(et.href=rt,et.origin!==location.origin?a(et.href)?u(rt,Re,Ue):i(et,et.target="_blank"):i(et)):(et.href=Ye.createObjectURL(rt),setTimeout(function(){Ye.revokeObjectURL(et.href)},4e4),setTimeout(function(){i(et)},0))}:"msSaveOrOpenBlob"in navigator?function(rt,Re,Ue){if(Re=Re||rt.name||"download",typeof rt=="string")if(a(rt))u(rt,Re,Ue);else{var Ye=document.createElement("a");Ye.href=rt,Ye.target="_blank",setTimeout(function(){i(Ye)})}else navigator.msSaveOrOpenBlob(function(et,$e){return $e===void 0?$e={autoBom:!1}:x()($e)!=="object"&&(h.warn("Deprecated: Expected third argument to be a object"),$e={autoBom:!$e}),$e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(et.type)?new Blob([String.fromCharCode(65279),et],{type:et.type}):et}(rt,Ue),Re)}:function(rt,Re,Ue,Ye){if((Ye=Ye||open("","_blank"))&&(Ye.document.title=Ye.document.body.innerText="downloading..."),typeof rt=="string")return u(rt,Re,Ue);var et=rt.type==="application/octet-stream",$e=/constructor/i.test(m.HTMLElement)||m.safari,at=/CriOS\/[\d]+/.test(navigator.userAgent);if((at||et&&$e)&&(typeof FileReader=="undefined"?"undefined":x()(FileReader))==="object"){var wt=new FileReader;wt.onloadend=function(){var Jr=wt.result;Jr=at?Jr:Jr.replace(/^data:[^;]*;/,"data:attachment/file;"),Ye?Ye.location.href=Jr:location=Jr,Ye=null},wt.readAsDataURL(rt)}else{var ft=m.URL||m.webkitURL,cr=ft.createObjectURL(rt);Ye?Ye.location=cr:location.href=cr,Ye=null,setTimeout(function(){ft.revokeObjectURL(cr)},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(rt){var Re;rt=rt||"",this.ok=!1,rt.charAt(0)=="#"&&(rt=rt.substr(1,6)),rt={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"}[rt=(rt=rt.replace(/ /g,"")).toLowerCase()]||rt;for(var Ue=[{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)]}}],Ye=0;Ye<Ue.length;Ye++){var et=Ue[Ye].re,$e=Ue[Ye].process,at=et.exec(rt);at&&(Re=$e(at),this.r=Re[0],this.g=Re[1],this.b=Re[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 wt=this.r.toString(16),ft=this.g.toString(16),cr=this.b.toString(16);return wt.length==1&&(wt="0"+wt),ft.length==1&&(ft="0"+ft),cr.length==1&&(cr="0"+cr),"#"+wt+ft+cr}}/**
* @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(rt,Re){var Ue=rt[0],Ye=rt[1],et=rt[2],$e=rt[3];Ue=c(Ue,Ye,et,$e,Re[0],7,-680876936),$e=c($e,Ue,Ye,et,Re[1],12,-389564586),et=c(et,$e,Ue,Ye,Re[2],17,606105819),Ye=c(Ye,et,$e,Ue,Re[3],22,-1044525330),Ue=c(Ue,Ye,et,$e,Re[4],7,-176418897),$e=c($e,Ue,Ye,et,Re[5],12,1200080426),et=c(et,$e,Ue,Ye,Re[6],17,-1473231341),Ye=c(Ye,et,$e,Ue,Re[7],22,-45705983),Ue=c(Ue,Ye,et,$e,Re[8],7,1770035416),$e=c($e,Ue,Ye,et,Re[9],12,-1958414417),et=c(et,$e,Ue,Ye,Re[10],17,-42063),Ye=c(Ye,et,$e,Ue,Re[11],22,-1990404162),Ue=c(Ue,Ye,et,$e,Re[12],7,1804603682),$e=c($e,Ue,Ye,et,Re[13],12,-40341101),et=c(et,$e,Ue,Ye,Re[14],17,-1502002290),Ue=d(Ue,Ye=c(Ye,et,$e,Ue,Re[15],22,1236535329),et,$e,Re[1],5,-165796510),$e=d($e,Ue,Ye,et,Re[6],9,-1069501632),et=d(et,$e,Ue,Ye,Re[11],14,643717713),Ye=d(Ye,et,$e,Ue,Re[0],20,-373897302),Ue=d(Ue,Ye,et,$e,Re[5],5,-701558691),$e=d($e,Ue,Ye,et,Re[10],9,38016083),et=d(et,$e,Ue,Ye,Re[15],14,-660478335),Ye=d(Ye,et,$e,Ue,Re[4],20,-405537848),Ue=d(Ue,Ye,et,$e,Re[9],5,568446438),$e=d($e,Ue,Ye,et,Re[14],9,-1019803690),et=d(et,$e,Ue,Ye,Re[3],14,-187363961),Ye=d(Ye,et,$e,Ue,Re[8],20,1163531501),Ue=d(Ue,Ye,et,$e,Re[13],5,-1444681467),$e=d($e,Ue,Ye,et,Re[2],9,-51403784),et=d(et,$e,Ue,Ye,Re[7],14,1735328473),Ue=g(Ue,Ye=d(Ye,et,$e,Ue,Re[12],20,-1926607734),et,$e,Re[5],4,-378558),$e=g($e,Ue,Ye,et,Re[8],11,-2022574463),et=g(et,$e,Ue,Ye,Re[11],16,1839030562),Ye=g(Ye,et,$e,Ue,Re[14],23,-35309556),Ue=g(Ue,Ye,et,$e,Re[1],4,-1530992060),$e=g($e,Ue,Ye,et,Re[4],11,1272893353),et=g(et,$e,Ue,Ye,Re[7],16,-155497632),Ye=g(Ye,et,$e,Ue,Re[10],23,-1094730640),Ue=g(Ue,Ye,et,$e,Re[13],4,681279174),$e=g($e,Ue,Ye,et,Re[0],11,-358537222),et=g(et,$e,Ue,Ye,Re[3],16,-722521979),Ye=g(Ye,et,$e,Ue,Re[6],23,76029189),Ue=g(Ue,Ye,et,$e,Re[9],4,-640364487),$e=g($e,Ue,Ye,et,Re[12],11,-421815835),et=g(et,$e,Ue,Ye,Re[15],16,530742520),Ue=v(Ue,Ye=g(Ye,et,$e,Ue,Re[2],23,-995338651),et,$e,Re[0],6,-198630844),$e=v($e,Ue,Ye,et,Re[7],10,1126891415),et=v(et,$e,Ue,Ye,Re[14],15,-1416354905),Ye=v(Ye,et,$e,Ue,Re[5],21,-57434055),Ue=v(Ue,Ye,et,$e,Re[12],6,1700485571),$e=v($e,Ue,Ye,et,Re[3],10,-1894986606),et=v(et,$e,Ue,Ye,Re[10],15,-1051523),Ye=v(Ye,et,$e,Ue,Re[1],21,-2054922799),Ue=v(Ue,Ye,et,$e,Re[8],6,1873313359),$e=v($e,Ue,Ye,et,Re[15],10,-30611744),et=v(et,$e,Ue,Ye,Re[6],15,-1560198380),Ye=v(Ye,et,$e,Ue,Re[13],21,1309151649),Ue=v(Ue,Ye,et,$e,Re[4],6,-145523070),$e=v($e,Ue,Ye,et,Re[11],10,-1120210379),et=v(et,$e,Ue,Ye,Re[2],15,718787259),Ye=v(Ye,et,$e,Ue,Re[9],21,-343485551),rt[0]=O(Ue,rt[0]),rt[1]=O(Ye,rt[1]),rt[2]=O(et,rt[2]),rt[3]=O($e,rt[3])}function s(rt,Re,Ue,Ye,et,$e){return Re=O(O(Re,rt),O(Ye,$e)),O(Re<<et|Re>>>32-et,Ue)}function c(rt,Re,Ue,Ye,et,$e,at){return s(Re&Ue|~Re&Ye,rt,Re,et,$e,at)}function d(rt,Re,Ue,Ye,et,$e,at){return s(Re&Ye|Ue&~Ye,rt,Re,et,$e,at)}function g(rt,Re,Ue,Ye,et,$e,at){return s(Re^Ue^Ye,rt,Re,et,$e,at)}function v(rt,Re,Ue,Ye,et,$e,at){return s(Ue^(Re|~Ye),rt,Re,et,$e,at)}function b(rt){var Re,Ue=rt.length,Ye=[1732584193,-271733879,-1732584194,271733878];for(Re=64;Re<=rt.length;Re+=64)r(Ye,S(rt.substring(Re-64,Re)));rt=rt.substring(Re-64);var et=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Re=0;Re<rt.length;Re++)et[Re>>2]|=rt.charCodeAt(Re)<<(Re%4<<3);if(et[Re>>2]|=128<<(Re%4<<3),Re>55)for(r(Ye,et),Re=0;Re<16;Re++)et[Re]=0;return et[14]=8*Ue,r(Ye,et),Ye}function S(rt){var Re,Ue=[];for(Re=0;Re<64;Re+=4)Ue[Re>>2]=rt.charCodeAt(Re)+(rt.charCodeAt(Re+1)<<8)+(rt.charCodeAt(Re+2)<<16)+(rt.charCodeAt(Re+3)<<24);return Ue}t=m.atob.bind(m),o=m.btoa.bind(m);var E="0123456789abcdef".split("");function C(rt){for(var Re="",Ue=0;Ue<4;Ue++)Re+=E[rt>>8*Ue+4&15]+E[rt>>8*Ue&15];return Re}function _(rt){return String.fromCharCode((255&rt)>>0,(65280&rt)>>8,(16711680&rt)>>16,(4278190080&rt)>>24)}function T(rt){return b(rt).map(_).join("")}var w=function(rt){for(var Re=0;Re<rt.length;Re++)rt[Re]=C(rt[Re]);return rt.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(rt,Re){if(w){var Ue=(65535&rt)+(65535&Re);return(rt>>16)+(Re>>16)+(Ue>>16)<<16|65535&Ue}return rt+Re&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function I(rt,Re){var Ue,Ye,et,$e;if(rt!==Ue){for(var at=(et=rt,$e=1+(256/rt.length>>0),new Array($e+1).join(et)),wt=[],ft=0;ft<256;ft++)wt[ft]=ft;var cr=0;for(ft=0;ft<256;ft++){var Jr=wt[ft];cr=(cr+Jr+at.charCodeAt(ft))%256,wt[ft]=wt[cr],wt[cr]=Jr}Ue=rt,Ye=wt}else wt=Ye;var Qr=Re.length,fn=0,pr=0,Wn="";for(ft=0;ft<Qr;ft++)pr=(pr+(Jr=wt[fn=(fn+1)%256]))%256,wt[fn]=wt[pr],wt[pr]=Jr,at=wt[(wt[fn]+wt[pr])%256],Wn+=String.fromCharCode(Re.charCodeAt(ft)^at);return Wn}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var R={print:4,modify:8,copy:16,"annot-forms":32};function M(rt,Re,Ue,Ye){this.v=1,this.r=2;var et=192;rt.forEach(function(wt){if(R.perm!==void 0)throw new Error("Invalid permission: "+wt);et+=R[wt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var $e=(Re+this.padding).substr(0,32),at=(Ue+this.padding).substr(0,32);this.O=this.processOwnerPassword($e,at),this.P=-(1+(255^et)),this.encryptionKey=T($e+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ye)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function F(rt){if(/[^\u0000-\u00ff]/.test(rt))throw new Error("Invalid PDF Name Object: "+rt+", Only accept ASCII characters.");for(var Re="",Ue=rt.length,Ye=0;Ye<Ue;Ye++){var et=rt.charCodeAt(Ye);et<33||et===35||et===37||et===40||et===41||et===47||et===60||et===62||et===91||et===93||et===123||et===125||et>126?Re+="#"+("0"+et.toString(16)).slice(-2):Re+=rt[Ye]}return Re}function P(rt){if(x()(rt)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Re={};this.subscribe=function(Ue,Ye,et){if(et=et||!1,typeof Ue!="string"||typeof Ye!="function"||typeof et!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Re.hasOwnProperty(Ue)||(Re[Ue]={});var $e=Math.random().toString(35);return Re[Ue][$e]=[Ye,!!et],$e},this.unsubscribe=function(Ue){for(var Ye in Re)if(Re[Ye][Ue])return delete Re[Ye][Ue],Object.keys(Re[Ye]).length===0&&delete Re[Ye],!0;return!1},this.publish=function(Ue){if(Re.hasOwnProperty(Ue)){var Ye=Array.prototype.slice.call(arguments,1),et=[];for(var $e in Re[Ue]){var at=Re[Ue][$e];try{at[0].apply(rt,Ye)}catch(wt){m.console&&h.error("jsPDF PubSub Error",wt.message,wt)}at[1]&&et.push($e)}et.length&&et.forEach(this.unsubscribe)}},this.getTopics=function(){return Re}}function X(rt){if(!(this instanceof X))return new X(rt);var Re="opacity,stroke-opacity".split(",");for(var Ue in rt)rt.hasOwnProperty(Ue)&&Re.indexOf(Ue)>=0&&(this[Ue]=rt[Ue]);this.id="",this.objectNumber=-1}function B(rt,Re){this.gState=rt,this.matrix=Re,this.id="",this.objectNumber=-1}function j(rt,Re,Ue,Ye,et){if(!(this instanceof j))return new j(rt,Re,Ue,Ye,et);this.type=rt==="axial"?2:3,this.coords=Re,this.colors=Ue,B.call(this,Ye,et)}function W(rt,Re,Ue,Ye,et){if(!(this instanceof W))return new W(rt,Re,Ue,Ye,et);this.boundingBox=rt,this.xStep=Re,this.yStep=Ue,this.stream="",this.cloneIndex=0,B.call(this,Ye,et)}function z(rt){var Re,Ue=typeof arguments[0]=="string"?arguments[0]:"p",Ye=arguments[1],et=arguments[2],$e=arguments[3],at=[],wt=1,ft=16,cr="S",Jr=null;x()(rt=rt||{})==="object"&&(Ue=rt.orientation,Ye=rt.unit||Ye,et=rt.format||et,$e=rt.compress||rt.compressPdf||$e,(Jr=rt.encryption||null)!==null&&(Jr.userPassword=Jr.userPassword||"",Jr.ownerPassword=Jr.ownerPassword||"",Jr.userPermissions=Jr.userPermissions||[]),wt=typeof rt.userUnit=="number"?Math.abs(rt.userUnit):1,rt.precision!==void 0&&(Re=rt.precision),rt.floatPrecision!==void 0&&(ft=rt.floatPrecision),cr=rt.defaultPathOperation||"S"),at=rt.filters||($e===!0?["FlateEncode"]:at),Ye=Ye||"mm",Ue=(""+(Ue||"P")).toLowerCase();var Qr=rt.putOnlyUsedFonts||!1,fn={},pr={internal:{},__private__:{}};pr.__private__.PubSub=P;var Wn="1.3",kr=pr.__private__.getPdfVersion=function(){return Wn};pr.__private__.setPdfVersion=function(Ft){Wn=Ft};var kn={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]};pr.__private__.getPageFormats=function(){return kn};var bn=pr.__private__.getPageFormat=function(Ft){return kn[Ft]};et=et||"a4";var qr={COMPAT:"compat",ADVANCED:"advanced"},fi=qr.COMPAT;function Mi(){this.saveGraphicsState(),Ln(new ra(Or,0,0,-Or,0,Ds()*Or).toString()+" cm"),this.setFontSize(this.getFontSize()/Or),cr="n",fi=qr.ADVANCED}function Zi(){this.restoreGraphicsState(),cr="S",fi=qr.COMPAT}var tn=pr.__private__.combineFontStyleAndFontWeight=function(Ft,nr){if(Ft=="bold"&&nr=="normal"||Ft=="bold"&&nr==400||Ft=="normal"&&nr=="italic"||Ft=="bold"&&nr=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return nr&&(Ft=nr==400||nr==="normal"?Ft==="italic"?"italic":"normal":nr!=700&&nr!=="bold"||Ft!=="normal"?(nr==700?"bold":nr)+""+Ft:"bold"),Ft};pr.advancedAPI=function(Ft){var nr=fi===qr.COMPAT;return nr&&Mi.call(this),typeof Ft!="function"||(Ft(this),nr&&Zi.call(this)),this},pr.compatAPI=function(Ft){var nr=fi===qr.ADVANCED;return nr&&Zi.call(this),typeof Ft!="function"||(Ft(this),nr&&Mi.call(this)),this},pr.isAdvancedAPI=function(){return fi===qr.ADVANCED};var En,Vn=function(nr){if(fi!==qr.ADVANCED)throw new Error(nr+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Wt=pr.roundToPrecision=pr.__private__.roundToPrecision=function(Ft,nr){var On=Re||nr;if(isNaN(Ft)||isNaN(On))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ft.toFixed(On).replace(/0+$/,"")};En=pr.hpf=pr.__private__.hpf=typeof ft=="number"?function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.hpf");return Wt(Ft,ft)}:ft==="smart"?function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.hpf");return Wt(Ft,Ft>-1&&Ft<1?16:5)}:function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.hpf");return Wt(Ft,16)};var Et=pr.f2=pr.__private__.f2=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.f2");return Wt(Ft,2)},kt=pr.__private__.f3=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.f3");return Wt(Ft,3)},Bt=pr.scale=pr.__private__.scale=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.scale");return fi===qr.COMPAT?Ft*Or:fi===qr.ADVANCED?Ft:void 0},Kt=function(nr){return fi===qr.COMPAT?Ds()-nr:fi===qr.ADVANCED?nr:void 0},Ot=function(nr){return Bt(Kt(nr))};pr.__private__.setPrecision=pr.setPrecision=function(Ft){typeof parseInt(Ft,10)=="number"&&(Re=parseInt(Ft,10))};var sr,fr="00000000000000000000000000000000",vr=pr.__private__.getFileId=function(){return fr},Rr=pr.__private__.setFileId=function(Ft){return fr=Ft!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ft)?Ft.toUpperCase():fr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Jr!==null&&(wa=new M(Jr.userPermissions,Jr.userPassword,Jr.ownerPassword,fr)),fr};pr.setFileId=function(Ft){return Rr(Ft),this},pr.getFileId=function(){return vr()};var Kn=pr.__private__.convertDateToPDFDate=function(Ft){var nr=Ft.getTimezoneOffset(),On=nr<0?"+":"-",di=Math.floor(Math.abs(nr/60)),It=Math.abs(nr%60),ce=[On,Tn(di),"'",Tn(It),"'"].join("");return["D:",Ft.getFullYear(),Tn(Ft.getMonth()+1),Tn(Ft.getDate()),Tn(Ft.getHours()),Tn(Ft.getMinutes()),Tn(Ft.getSeconds()),ce].join("")},Dn=pr.__private__.convertPDFDateToDate=function(Ft){var nr=parseInt(Ft.substr(2,4),10),On=parseInt(Ft.substr(6,2),10)-1,di=parseInt(Ft.substr(8,2),10),It=parseInt(Ft.substr(10,2),10),ce=parseInt(Ft.substr(12,2),10),Se=parseInt(Ft.substr(14,2),10);return new Date(nr,On,di,It,ce,Se,0)},ui=pr.__private__.setCreationDate=function(Ft){var nr;if(Ft===void 0&&(Ft=new Date),Ft instanceof Date)nr=Kn(Ft);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(Ft))throw new Error("Invalid argument passed to jsPDF.setCreationDate");nr=Ft}return sr=nr},pn=pr.__private__.getCreationDate=function(Ft){var nr=sr;return Ft==="jsDate"&&(nr=Dn(sr)),nr};pr.setCreationDate=function(Ft){return ui(Ft),this},pr.getCreationDate=function(Ft){return pn(Ft)};var Br,Tn=pr.__private__.padd2=function(Ft){return("0"+parseInt(Ft)).slice(-2)},zn=pr.__private__.padd2Hex=function(Ft){return("00"+(Ft=Ft.toString())).substr(Ft.length)},Qn=0,ii=[],xi=[],Di=0,Li=[],oa=[],ma=!1,ia=xi,ba=function(){Qn=0,Di=0,xi=[],ii=[],Li=[],_a=Oa(),Va=Oa()};pr.__private__.setCustomOutputDestination=function(Ft){ma=!0,ia=Ft};var vi=function(nr){ma||(ia=nr)};pr.__private__.resetCustomOutputDestination=function(){ma=!1,ia=xi};var Ln=pr.__private__.out=function(Ft){return Ft=Ft.toString(),Di+=Ft.length+1,ia.push(Ft),ia},Fi=pr.__private__.write=function(Ft){return Ln(arguments.length===1?Ft.toString():Array.prototype.join.call(arguments," "))},ha=pr.__private__.getArrayBuffer=function(Ft){for(var nr=Ft.length,On=new ArrayBuffer(nr),di=new Uint8Array(On);nr--;)di[nr]=Ft.charCodeAt(nr);return On},ea=[["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]];pr.__private__.getStandardFonts=function(){return ea};var aa=rt.fontSize||16;pr.__private__.setFontSize=pr.setFontSize=function(Ft){return aa=fi===qr.ADVANCED?Ft/Or:Ft,this};var Ir,wr=pr.__private__.getFontSize=pr.getFontSize=function(){return fi===qr.COMPAT?aa:aa*Or},xn=rt.R2L||!1;pr.__private__.setR2L=pr.setR2L=function(Ft){return xn=Ft,this},pr.__private__.getR2L=pr.getR2L=function(){return xn};var ur,Dr=pr.__private__.setZoomMode=function(Ft){var nr=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ft))Ir=Ft;else if(isNaN(Ft)){if(nr.indexOf(Ft)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ft+'" is not recognized.');Ir=Ft}else Ir=parseInt(Ft,10)};pr.__private__.getZoomMode=function(){return Ir};var Vr,sn=pr.__private__.setPageMode=function(Ft){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ft)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ft+'" is not recognized.');ur=Ft};pr.__private__.getPageMode=function(){return ur};var Rn=pr.__private__.setLayoutMode=function(Ft){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ft)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ft+'" is not recognized.');Vr=Ft};pr.__private__.getLayoutMode=function(){return Vr},pr.__private__.setDisplayMode=pr.setDisplayMode=function(Ft,nr,On){return Dr(Ft),Rn(nr),sn(On),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};pr.__private__.getDocumentProperty=function(Ft){if(Object.keys(xt).indexOf(Ft)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[Ft]},pr.__private__.getDocumentProperties=function(){return xt},pr.__private__.setDocumentProperties=pr.setProperties=pr.setDocumentProperties=function(Ft){for(var nr in xt)xt.hasOwnProperty(nr)&&Ft[nr]&&(xt[nr]=Ft[nr]);return this},pr.__private__.setDocumentProperty=function(Ft,nr){if(Object.keys(xt).indexOf(Ft)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[Ft]=nr};var _r,Or,en,wn,_n,yn={},Jn={},Un=[],pi={},ki={},yi={},_i={},Ki=null,qi=0,zi=[],Hi=new P(pr),Ui=rt.hotfixes||[],Qi={},ca={},Ca=[],ra=function Ft(nr,On,di,It,ce,Se){if(!(this instanceof Ft))return new Ft(nr,On,di,It,ce,Se);isNaN(nr)&&(nr=1),isNaN(On)&&(On=0),isNaN(di)&&(di=0),isNaN(It)&&(It=1),isNaN(ce)&&(ce=0),isNaN(Se)&&(Se=0),this._matrix=[nr,On,di,It,ce,Se]};Object.defineProperty(ra.prototype,"sx",{get:function(){return this._matrix[0]},set:function(nr){this._matrix[0]=nr}}),Object.defineProperty(ra.prototype,"shy",{get:function(){return this._matrix[1]},set:function(nr){this._matrix[1]=nr}}),Object.defineProperty(ra.prototype,"shx",{get:function(){return this._matrix[2]},set:function(nr){this._matrix[2]=nr}}),Object.defineProperty(ra.prototype,"sy",{get:function(){return this._matrix[3]},set:function(nr){this._matrix[3]=nr}}),Object.defineProperty(ra.prototype,"tx",{get:function(){return this._matrix[4]},set:function(nr){this._matrix[4]=nr}}),Object.defineProperty(ra.prototype,"ty",{get:function(){return this._matrix[5]},set:function(nr){this._matrix[5]=nr}}),Object.defineProperty(ra.prototype,"a",{get:function(){return this._matrix[0]},set:function(nr){this._matrix[0]=nr}}),Object.defineProperty(ra.prototype,"b",{get:function(){return this._matrix[1]},set:function(nr){this._matrix[1]=nr}}),Object.defineProperty(ra.prototype,"c",{get:function(){return this._matrix[2]},set:function(nr){this._matrix[2]=nr}}),Object.defineProperty(ra.prototype,"d",{get:function(){return this._matrix[3]},set:function(nr){this._matrix[3]=nr}}),Object.defineProperty(ra.prototype,"e",{get:function(){return this._matrix[4]},set:function(nr){this._matrix[4]=nr}}),Object.defineProperty(ra.prototype,"f",{get:function(){return this._matrix[5]},set:function(nr){this._matrix[5]=nr}}),Object.defineProperty(ra.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ra.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ra.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ra.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ra.prototype.join=function(Ft){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(En).join(Ft)},ra.prototype.multiply=function(Ft){var nr=Ft.sx*this.sx+Ft.shy*this.shx,On=Ft.sx*this.shy+Ft.shy*this.sy,di=Ft.shx*this.sx+Ft.sy*this.shx,It=Ft.shx*this.shy+Ft.sy*this.sy,ce=Ft.tx*this.sx+Ft.ty*this.shx+this.tx,Se=Ft.tx*this.shy+Ft.ty*this.sy+this.ty;return new ra(nr,On,di,It,ce,Se)},ra.prototype.decompose=function(){var Ft=this.sx,nr=this.shy,On=this.shx,di=this.sy,It=this.tx,ce=this.ty,Se=Math.sqrt(Ft*Ft+nr*nr),Le=(Ft/=Se)*On+(nr/=Se)*di;On-=Ft*Le,di-=nr*Le;var Qe=Math.sqrt(On*On+di*di);return Le/=Qe,Ft*(di/=Qe)<nr*(On/=Qe)&&(Ft=-Ft,nr=-nr,Le=-Le,Se=-Se),{scale:new ra(Se,0,0,Qe,0,0),translate:new ra(1,0,0,1,It,ce),rotate:new ra(Ft,nr,-nr,Ft,0,0),skew:new ra(1,0,Le,1,0,0)}},ra.prototype.toString=function(Ft){return this.join(" ")},ra.prototype.inversed=function(){var Ft=this.sx,nr=this.shy,On=this.shx,di=this.sy,It=this.tx,ce=this.ty,Se=1/(Ft*di-nr*On),Le=di*Se,Qe=-nr*Se,Lt=-On*Se,ir=Ft*Se;return new ra(Le,Qe,Lt,ir,-Le*It-Lt*ce,-Qe*It-ir*ce)},ra.prototype.applyToPoint=function(Ft){var nr=Ft.x*this.sx+Ft.y*this.shx+this.tx,On=Ft.x*this.shy+Ft.y*this.sy+this.ty;return new tl(nr,On)},ra.prototype.applyToRectangle=function(Ft){var nr=this.applyToPoint(Ft),On=this.applyToPoint(new tl(Ft.x+Ft.w,Ft.y+Ft.h));return new xs(nr.x,nr.y,On.x-nr.x,On.y-nr.y)},ra.prototype.clone=function(){var Ft=this.sx,nr=this.shy,On=this.shx,di=this.sy,It=this.tx,ce=this.ty;return new ra(Ft,nr,On,di,It,ce)},pr.Matrix=ra;var Ma=pr.matrixMult=function(Ft,nr){return nr.multiply(Ft)},La=new ra(1,0,0,1,0,0);pr.unitMatrix=pr.identityMatrix=La;var va=function(nr,On){if(!ki[nr]){var di=(On instanceof j?"Sh":"P")+(Object.keys(pi).length+1).toString(10);On.id=di,ki[nr]=di,pi[di]=On,Hi.publish("addPattern",On)}};pr.ShadingPattern=j,pr.TilingPattern=W,pr.addShadingPattern=function(Ft,nr){return Vn("addShadingPattern()"),va(Ft,nr),this},pr.beginTilingPattern=function(Ft){Vn("beginTilingPattern()"),al(Ft.boundingBox[0],Ft.boundingBox[1],Ft.boundingBox[2]-Ft.boundingBox[0],Ft.boundingBox[3]-Ft.boundingBox[1],Ft.matrix)},pr.endTilingPattern=function(Ft,nr){Vn("endTilingPattern()"),nr.stream=oa[Br].join(`
`),va(Ft,nr),Hi.publish("endTilingPattern",nr),Ca.pop().restore()};var ga=pr.__private__.newObject=function(){var Ft=Oa();return Aa(Ft,!0),Ft},Oa=pr.__private__.newObjectDeferred=function(){return Qn++,ii[Qn]=function(){return Di},Qn},Aa=function(nr,On){return On=typeof On=="boolean"&&On,ii[nr]=Di,On&&Ln(nr+" 0 obj"),nr},Ga=pr.__private__.newAdditionalObject=function(){var Ft={objId:Oa(),content:""};return Li.push(Ft),Ft},_a=Oa(),Va=Oa(),Bi=pr.__private__.decodeColorString=function(Ft){var nr=Ft.split(" ");if(nr.length!==2||nr[1]!=="g"&&nr[1]!=="G")nr.length===5&&(nr[4]==="k"||nr[4]==="K")&&(nr=[(1-nr[0])*(1-nr[3]),(1-nr[1])*(1-nr[3]),(1-nr[2])*(1-nr[3]),"r"]);else{var On=parseFloat(nr[0]);nr=[On,On,On,"r"]}for(var di="#",It=0;It<3;It++)di+=("0"+Math.floor(255*parseFloat(nr[It])).toString(16)).slice(-2);return di},io=pr.__private__.encodeColorString=function(Ft){var nr;typeof Ft=="string"&&(Ft={ch1:Ft});var On=Ft.ch1,di=Ft.ch2,It=Ft.ch3,ce=Ft.ch4,Se=Ft.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof On=="string"&&On.charAt(0)!=="#"){var Le=new l(On);if(Le.ok)On=Le.toHex();else if(!/^\d*\.?\d*$/.test(On))throw new Error('Invalid color "'+On+'" passed to jsPDF.encodeColorString.')}if(typeof On=="string"&&/^#[0-9A-Fa-f]{3}$/.test(On)&&(On="#"+On[1]+On[1]+On[2]+On[2]+On[3]+On[3]),typeof On=="string"&&/^#[0-9A-Fa-f]{6}$/.test(On)){var Qe=parseInt(On.substr(1),16);On=Qe>>16&255,di=Qe>>8&255,It=255&Qe}if(di===void 0||ce===void 0&&On===di&&di===It)if(typeof On=="string")nr=On+" "+Se[0];else switch(Ft.precision){case 2:nr=Et(On/255)+" "+Se[0];break;case 3:default:nr=kt(On/255)+" "+Se[0]}else if(ce===void 0||x()(ce)==="object"){if(ce&&!isNaN(ce.a)&&ce.a===0)return nr=["1.","1.","1.",Se[1]].join(" ");if(typeof On=="string")nr=[On,di,It,Se[1]].join(" ");else switch(Ft.precision){case 2:nr=[Et(On/255),Et(di/255),Et(It/255),Se[1]].join(" ");break;default:case 3:nr=[kt(On/255),kt(di/255),kt(It/255),Se[1]].join(" ")}}else if(typeof On=="string")nr=[On,di,It,ce,Se[2]].join(" ");else switch(Ft.precision){case 2:nr=[Et(On),Et(di),Et(It),Et(ce),Se[2]].join(" ");break;case 3:default:nr=[kt(On),kt(di),kt(It),kt(ce),Se[2]].join(" ")}return nr},oo=pr.__private__.getFilters=function(){return at},Qo=pr.__private__.putStream=function(Ft){var nr=(Ft=Ft||{}).data||"",On=Ft.filters||oo(),di=Ft.alreadyAppliedFilters||[],It=Ft.addLength1||!1,ce=nr.length,Se=Ft.objectId,Le=function(gi){return gi};if(Jr!==null&&Se===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Jr!==null&&(Le=wa.encryptor(Se,0));var Qe={};On===!0&&(On=["FlateEncode"]);var Lt=Ft.additionalKeyValues||[],ir=(Qe=z.API.processDataByFilters!==void 0?z.API.processDataByFilters(nr,On):{data:nr,reverseChain:[]}).reverseChain+(Array.isArray(di)?di.join(" "):di.toString());if(Qe.data.length!==0&&(Lt.push({key:"Length",value:Qe.data.length}),It===!0&&Lt.push({key:"Length1",value:ce})),ir.length!=0)if(ir.split("/").length-1==1)Lt.push({key:"Filter",value:ir});else{Lt.push({key:"Filter",value:"["+ir+"]"});for(var Yr=0;Yr<Lt.length;Yr+=1)if(Lt[Yr].key==="DecodeParms"){for(var hn=[],In=0;In<Qe.reverseChain.split("/").length-1;In+=1)hn.push("null");hn.push(Lt[Yr].value),Lt[Yr].value="["+hn.join(" ")+"]"}}Ln("<<");for(var si=0;si<Lt.length;si++)Ln("/"+Lt[si].key+" "+Lt[si].value);Ln(">>"),Qe.data.length!==0&&(Ln("stream"),Ln(Le(Qe.data)),Ln("endstream"))},mo=pr.__private__.putPage=function(Ft){var nr=Ft.number,On=Ft.data,di=Ft.objId,It=Ft.contentsObjId;Aa(di,!0),Ln("<</Type /Page"),Ln("/Parent "+Ft.rootDictionaryObjId+" 0 R"),Ln("/Resources "+Ft.resourceDictionaryObjId+" 0 R"),Ln("/MediaBox ["+parseFloat(En(Ft.mediaBox.bottomLeftX))+" "+parseFloat(En(Ft.mediaBox.bottomLeftY))+" "+En(Ft.mediaBox.topRightX)+" "+En(Ft.mediaBox.topRightY)+"]"),Ft.cropBox!==null&&Ln("/CropBox ["+En(Ft.cropBox.bottomLeftX)+" "+En(Ft.cropBox.bottomLeftY)+" "+En(Ft.cropBox.topRightX)+" "+En(Ft.cropBox.topRightY)+"]"),Ft.bleedBox!==null&&Ln("/BleedBox ["+En(Ft.bleedBox.bottomLeftX)+" "+En(Ft.bleedBox.bottomLeftY)+" "+En(Ft.bleedBox.topRightX)+" "+En(Ft.bleedBox.topRightY)+"]"),Ft.trimBox!==null&&Ln("/TrimBox ["+En(Ft.trimBox.bottomLeftX)+" "+En(Ft.trimBox.bottomLeftY)+" "+En(Ft.trimBox.topRightX)+" "+En(Ft.trimBox.topRightY)+"]"),Ft.artBox!==null&&Ln("/ArtBox ["+En(Ft.artBox.bottomLeftX)+" "+En(Ft.artBox.bottomLeftY)+" "+En(Ft.artBox.topRightX)+" "+En(Ft.artBox.topRightY)+"]"),typeof Ft.userUnit=="number"&&Ft.userUnit!==1&&Ln("/UserUnit "+Ft.userUnit),Hi.publish("putPage",{objId:di,pageContext:zi[nr],pageNumber:nr,page:On}),Ln("/Contents "+It+" 0 R"),Ln(">>"),Ln("endobj");var ce=On.join(`
`);return fi===qr.ADVANCED&&(ce+=`
Q`),Aa(It,!0),Qo({data:ce,filters:oo(),objectId:It}),Ln("endobj"),di},To=pr.__private__.putPages=function(){var Ft,nr,On=[];for(Ft=1;Ft<=qi;Ft++)zi[Ft].objId=Oa(),zi[Ft].contentsObjId=Oa();for(Ft=1;Ft<=qi;Ft++)On.push(mo({number:Ft,data:oa[Ft],objId:zi[Ft].objId,contentsObjId:zi[Ft].contentsObjId,mediaBox:zi[Ft].mediaBox,cropBox:zi[Ft].cropBox,bleedBox:zi[Ft].bleedBox,trimBox:zi[Ft].trimBox,artBox:zi[Ft].artBox,userUnit:zi[Ft].userUnit,rootDictionaryObjId:_a,resourceDictionaryObjId:Va}));Aa(_a,!0),Ln("<</Type /Pages");var di="/Kids [";for(nr=0;nr<qi;nr++)di+=On[nr]+" 0 R ";Ln(di+"]"),Ln("/Count "+qi),Ln(">>"),Ln("endobj"),Hi.publish("postPutPages")},ao=function(nr){Hi.publish("putFont",{font:nr,out:Ln,newObject:ga,putStream:Qo}),nr.isAlreadyPutted!==!0&&(nr.objectNumber=ga(),Ln("<<"),Ln("/Type /Font"),Ln("/BaseFont /"+F(nr.postScriptName)),Ln("/Subtype /Type1"),typeof nr.encoding=="string"&&Ln("/Encoding /"+nr.encoding),Ln("/FirstChar 32"),Ln("/LastChar 255"),Ln(">>"),Ln("endobj"))},So=function(){for(var nr in yn)yn.hasOwnProperty(nr)&&(Qr===!1||Qr===!0&&fn.hasOwnProperty(nr))&&ao(yn[nr])},bo=function(nr){nr.objectNumber=ga();var On=[];On.push({key:"Type",value:"/XObject"}),On.push({key:"Subtype",value:"/Form"}),On.push({key:"BBox",value:"["+[En(nr.x),En(nr.y),En(nr.x+nr.width),En(nr.y+nr.height)].join(" ")+"]"}),On.push({key:"Matrix",value:"["+nr.matrix.toString()+"]"});var di=nr.pages[1].join(`
`);Qo({data:di,additionalKeyValues:On,objectId:nr.objectNumber}),Ln("endobj")},to=function(){for(var nr in Qi)Qi.hasOwnProperty(nr)&&bo(Qi[nr])},Jo=function(nr,On){var di,It=[],ce=1/(On-1);for(di=0;di<1;di+=ce)It.push(di);if(It.push(1),nr[0].offset!=0){var Se={offset:0,color:nr[0].color};nr.unshift(Se)}if(nr[nr.length-1].offset!=1){var Le={offset:1,color:nr[nr.length-1].color};nr.push(Le)}for(var Qe="",Lt=0,ir=0;ir<It.length;ir++){for(di=It[ir];di>nr[Lt+1].offset;)Lt++;var Yr=nr[Lt].offset,hn=(di-Yr)/(nr[Lt+1].offset-Yr),In=nr[Lt].color,si=nr[Lt+1].color;Qe+=zn(Math.round((1-hn)*In[0]+hn*si[0]).toString(16))+zn(Math.round((1-hn)*In[1]+hn*si[1]).toString(16))+zn(Math.round((1-hn)*In[2]+hn*si[2]).toString(16))}return Qe.trim()},Uo=function(nr,On){On||(On=21);var di=ga(),It=Jo(nr.colors,On),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+On+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qo({data:It,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:di}),Ln("endobj"),nr.objectNumber=ga(),Ln("<< /ShadingType "+nr.type),Ln("/ColorSpace /DeviceRGB");var Se="/Coords ["+En(parseFloat(nr.coords[0]))+" "+En(parseFloat(nr.coords[1]))+" ";nr.type===2?Se+=En(parseFloat(nr.coords[2]))+" "+En(parseFloat(nr.coords[3])):Se+=En(parseFloat(nr.coords[2]))+" "+En(parseFloat(nr.coords[3]))+" "+En(parseFloat(nr.coords[4]))+" "+En(parseFloat(nr.coords[5])),Ln(Se+="]"),nr.matrix&&Ln("/Matrix ["+nr.matrix.toString()+"]"),Ln("/Function "+di+" 0 R"),Ln("/Extend [true true]"),Ln(">>"),Ln("endobj")},wo=function(nr,On){var di=Oa(),It=ga();On.push({resourcesOid:di,objectOid:It}),nr.objectNumber=It;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+nr.boundingBox.map(En).join(" ")+"]"}),ce.push({key:"XStep",value:En(nr.xStep)}),ce.push({key:"YStep",value:En(nr.yStep)}),ce.push({key:"Resources",value:di+" 0 R"}),nr.matrix&&ce.push({key:"Matrix",value:"["+nr.matrix.toString()+"]"}),Qo({data:nr.stream,additionalKeyValues:ce,objectId:nr.objectNumber}),Ln("endobj")},ts=function(nr){var On;for(On in pi)pi.hasOwnProperty(On)&&(pi[On]instanceof j?Uo(pi[On]):pi[On]instanceof W&&wo(pi[On],nr))},Ia=function(nr){for(var On in nr.objectNumber=ga(),Ln("<<"),nr)switch(On){case"opacity":Ln("/ca "+Et(nr[On]));break;case"stroke-opacity":Ln("/CA "+Et(nr[On]))}Ln(">>"),Ln("endobj")},Oo=function(){var nr;for(nr in yi)yi.hasOwnProperty(nr)&&Ia(yi[nr])},Io=function(){for(var nr in Ln("/XObject <<"),Qi)Qi.hasOwnProperty(nr)&&Qi[nr].objectNumber>=0&&Ln("/"+nr+" "+Qi[nr].objectNumber+" 0 R");Hi.publish("putXobjectDict"),Ln(">>")},os=function(){wa.oid=ga(),Ln("<<"),Ln("/Filter /Standard"),Ln("/V "+wa.v),Ln("/R "+wa.r),Ln("/U <"+wa.toHexString(wa.U)+">"),Ln("/O <"+wa.toHexString(wa.O)+">"),Ln("/P "+wa.P),Ln(">>"),Ln("endobj")},xo=function(){for(var nr in Ln("/Font <<"),yn)yn.hasOwnProperty(nr)&&(Qr===!1||Qr===!0&&fn.hasOwnProperty(nr))&&Ln("/"+nr+" "+yn[nr].objectNumber+" 0 R");Ln(">>")},rs=function(){if(Object.keys(pi).length>0){for(var nr in Ln("/Shading <<"),pi)pi.hasOwnProperty(nr)&&pi[nr]instanceof j&&pi[nr].objectNumber>=0&&Ln("/"+nr+" "+pi[nr].objectNumber+" 0 R");Hi.publish("putShadingPatternDict"),Ln(">>")}},Ho=function(nr){if(Object.keys(pi).length>0){for(var On in Ln("/Pattern <<"),pi)pi.hasOwnProperty(On)&&pi[On]instanceof pr.TilingPattern&&pi[On].objectNumber>=0&&pi[On].objectNumber<nr&&Ln("/"+On+" "+pi[On].objectNumber+" 0 R");Hi.publish("putTilingPatternDict"),Ln(">>")}},_o=function(){if(Object.keys(yi).length>0){var nr;for(nr in Ln("/ExtGState <<"),yi)yi.hasOwnProperty(nr)&&yi[nr].objectNumber>=0&&Ln("/"+nr+" "+yi[nr].objectNumber+" 0 R");Hi.publish("putGStateDict"),Ln(">>")}},uo=function(nr){Aa(nr.resourcesOid,!0),Ln("<<"),Ln("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),xo(),rs(),Ho(nr.objectOid),_o(),Io(),Ln(">>"),Ln("endobj")},Ha=function(){var nr=[];So(),Oo(),to(),ts(nr),Hi.publish("putResources"),nr.forEach(uo),uo({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),Hi.publish("postPutResources")},ht=function(){Hi.publish("putAdditionalObjects");for(var nr=0;nr<Li.length;nr++){var On=Li[nr];Aa(On.objId,!0),Ln(On.content),Ln("endobj")}Hi.publish("postPutAdditionalObjects")},Er=function(nr){Jn[nr.fontName]=Jn[nr.fontName]||{},Jn[nr.fontName][nr.fontStyle]=nr.id},Zr=function(nr,On,di,It,ce){var Se={id:"F"+(Object.keys(yn).length+1).toString(10),postScriptName:nr,fontName:On,fontStyle:di,encoding:It,isStandardFont:ce||!1,metadata:{}};return Hi.publish("addFont",{font:Se,instance:this}),yn[Se.id]=Se,Er(Se),Se.id},Xr=function(nr){for(var On=0,di=ea.length;On<di;On++){var It=Zr.call(this,nr[On][0],nr[On][1],nr[On][2],ea[On][3],!0);Qr===!1&&(fn[It]=!0);var ce=nr[On][0].split("-");Er({id:It,fontName:ce[0],fontStyle:ce[1]||""})}Hi.publish("addFonts",{fonts:yn,dictionary:Jn})},Xn=function(nr){return nr.foo=function(){try{return nr.apply(this,arguments)}catch(It){var On=It.stack||"";~On.indexOf(" at ")&&(On=On.split(" at ")[1]);var di="Error in function "+On.split(`
`)[0].split("<")[0]+": "+It.message;if(!m.console)throw new Error(di);m.console.error(di,It),m.alert&&alert(di)}},nr.foo.bar=nr,nr.foo},un=function(nr,On){var di,It,ce,Se,Le,Qe,Lt,ir,Yr;if(ce=(On=On||{}).sourceEncoding||"Unicode",Le=On.outputEncoding,(On.autoencode||Le)&&yn[_r].metadata&&yn[_r].metadata[ce]&&yn[_r].metadata[ce].encoding&&(Se=yn[_r].metadata[ce].encoding,!Le&&yn[_r].encoding&&(Le=yn[_r].encoding),!Le&&Se.codePages&&(Le=Se.codePages[0]),typeof Le=="string"&&(Le=Se[Le]),Le)){for(Lt=!1,Qe=[],di=0,It=nr.length;di<It;di++)(ir=Le[nr.charCodeAt(di)])?Qe.push(String.fromCharCode(ir)):Qe.push(nr[di]),Qe[di].charCodeAt(0)>>8&&(Lt=!0);nr=Qe.join("")}for(di=nr.length;Lt===void 0&&di!==0;)nr.charCodeAt(di-1)>>8&&(Lt=!0),di--;if(!Lt)return nr;for(Qe=On.noBOM?[]:[254,255],di=0,It=nr.length;di<It;di++){if((Yr=(ir=nr.charCodeAt(di))>>8)>>8)throw new Error("Character at position "+di+" of string '"+nr+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qe.push(Yr),Qe.push(ir-(Yr<<8))}return String.fromCharCode.apply(void 0,Qe)},Gr=pr.__private__.pdfEscape=pr.pdfEscape=function(Ft,nr){return un(Ft,nr).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ri=pr.__private__.beginPage=function(Ft){oa[++qi]=[],zi[qi]={objId:0,contentsObjId:0,userUnit:Number(wt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ft[0]),topRightY:Number(Ft[1])}},oi(qi),vi(oa[Br])},rn=function(nr,On){var di,It,ce;switch(Ue=On||Ue,typeof nr=="string"&&(di=bn(nr.toLowerCase()),Array.isArray(di)&&(It=di[0],ce=di[1])),Array.isArray(nr)&&(It=nr[0]*Or,ce=nr[1]*Or),isNaN(It)&&(It=et[0],ce=et[1]),(It>14400||ce>14400)&&(h.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),It=Math.min(14400,It),ce=Math.min(14400,ce)),et=[It,ce],Ue.substr(0,1)){case"l":ce>It&&(et=[ce,It]);break;case"p":It>ce&&(et=[ce,It])}ri(et),ss(Ao),Ln(hs),ds!==0&&Ln(ds+" J"),ks!==0&&Ln(ks+" j"),Hi.publish("addPage",{pageNumber:qi})},jn=function(nr){nr>0&&nr<=qi&&(oa.splice(nr,1),zi.splice(nr,1),qi--,Br>qi&&(Br=qi),this.setPage(Br))},oi=function(nr){nr>0&&nr<=qi&&(Br=nr)},li=pr.__private__.getNumberOfPages=pr.getNumberOfPages=function(){return oa.length-1},ai=function(nr,On,di){var It,ce=void 0;return di=di||{},nr=nr!==void 0?nr:yn[_r].fontName,On=On!==void 0?On:yn[_r].fontStyle,It=nr.toLowerCase(),Jn[It]!==void 0&&Jn[It][On]!==void 0?ce=Jn[It][On]:Jn[nr]!==void 0&&Jn[nr][On]!==void 0?ce=Jn[nr][On]:di.disableWarning===!1&&h.warn("Unable to look up font label for font '"+nr+"', '"+On+"'. Refer to getFontList() for available fonts."),ce||di.noFallback||(ce=Jn.times[On])==null&&(ce=Jn.times.normal),ce},Ei=pr.__private__.putInfo=function(){var Ft=ga(),nr=function(It){return It};for(var On in Jr!==null&&(nr=wa.encryptor(Ft,0)),Ln("<<"),Ln("/Producer ("+Gr(nr("jsPDF "+z.version))+")"),xt)xt.hasOwnProperty(On)&&xt[On]&&Ln("/"+On.substr(0,1).toUpperCase()+On.substr(1)+" ("+Gr(nr(xt[On]))+")");Ln("/CreationDate ("+Gr(nr(sr))+")"),Ln(">>"),Ln("endobj")},mi=pr.__private__.putCatalog=function(Ft){var nr=(Ft=Ft||{}).rootDictionaryObjId||_a;switch(ga(),Ln("<<"),Ln("/Type /Catalog"),Ln("/Pages "+nr+" 0 R"),Ir||(Ir="fullwidth"),Ir){case"fullwidth":Ln("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Ln("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Ln("/OpenAction [3 0 R /Fit]");break;case"original":Ln("/OpenAction [3 0 R /XYZ null null 1]");break;default:var On=""+Ir;On.substr(On.length-1)==="%"&&(Ir=parseInt(Ir)/100),typeof Ir=="number"&&Ln("/OpenAction [3 0 R /XYZ null null "+Et(Ir)+"]")}switch(Vr||(Vr="continuous"),Vr){case"continuous":Ln("/PageLayout /OneColumn");break;case"single":Ln("/PageLayout /SinglePage");break;case"two":case"twoleft":Ln("/PageLayout /TwoColumnLeft");break;case"tworight":Ln("/PageLayout /TwoColumnRight")}ur&&Ln("/PageMode /"+ur),Hi.publish("putCatalog"),Ln(">>"),Ln("endobj")},Ai=pr.__private__.putTrailer=function(){Ln("trailer"),Ln("<<"),Ln("/Size "+(Qn+1)),Ln("/Root "+Qn+" 0 R"),Ln("/Info "+(Qn-1)+" 0 R"),Jr!==null&&Ln("/Encrypt "+wa.oid+" 0 R"),Ln("/ID [ <"+fr+"> <"+fr+"> ]"),Ln(">>")},Ii=pr.__private__.putHeader=function(){Ln("%PDF-"+Wn),Ln("%\xBA\xDF\xAC\xE0")},na=pr.__private__.putXRef=function(){var Ft="0000000000";Ln("xref"),Ln("0 "+(Qn+1)),Ln("0000000000 65535 f ");for(var nr=1;nr<=Qn;nr++)typeof ii[nr]=="function"?Ln((Ft+ii[nr]()).slice(-10)+" 00000 n "):ii[nr]!==void 0?Ln((Ft+ii[nr]).slice(-10)+" 00000 n "):Ln("0000000000 00000 n ")},ji=pr.__private__.buildDocument=function(){ba(),vi(xi),Hi.publish("buildDocument"),Ii(),To(),ht(),Ha(),Jr!==null&&os(),Ei(),mi();var Ft=Di;return na(),Ai(),Ln("startxref"),Ln(""+Ft),Ln("%%EOF"),vi(oa[Br]),xi.join(`
`)},fa=pr.__private__.getBlob=function(Ft){return new Blob([ha(Ft)],{type:"application/pdf"})},Xa=pr.output=pr.__private__.output=Xn(function(Ft,nr){switch(typeof(nr=nr||{})=="string"?nr={filename:nr}:nr.filename=nr.filename||"generated.pdf",Ft){case void 0:return ji();case"save":pr.save(nr.filename);break;case"arraybuffer":return ha(ji());case"blob":return fa(ji());case"bloburi":case"bloburl":if(m.URL!==void 0&&typeof m.URL.createObjectURL=="function")return m.URL&&m.URL.createObjectURL(fa(ji()))||void 0;h.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var On="",di=ji();try{On=o(di)}catch(In){On=o(unescape(encodeURIComponent(di)))}return"data:application/pdf;filename="+nr.filename+";base64,"+On;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var It="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ce=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';nr.pdfObjectUrl&&(It=nr.pdfObjectUrl,ce="");var Se='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+It+'"'+ce+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(nr)+");</script></body></html>",Le=m.open();return Le!==null&&Le.document.write(Se),Le}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Qe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(nr.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+nr.filename+'" width="500px" height="400px" /></body></html>',Lt=m.open();if(Lt!==null){Lt.document.write(Qe);var ir=this;Lt.document.documentElement.querySelector("#pdfViewer").onload=function(){Lt.document.title=nr.filename,Lt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ir.output("bloburl"))}}return Lt}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 Yr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",nr)+'"></iframe></body></html>',hn=m.open();if(hn!==null&&(hn.document.write(Yr),hn.document.title=nr.filename),hn||typeof safari=="undefined")return hn;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",nr);default:return null}}),xa=function(nr){return Array.isArray(Ui)===!0&&Ui.indexOf(nr)>-1};switch(Ye){case"pt":Or=1;break;case"mm":Or=72/25.4;break;case"cm":Or=72/2.54;break;case"in":Or=72;break;case"px":Or=xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Or=12;break;case"ex":Or=6;break;default:if(typeof Ye!="number")throw new Error("Invalid unit: "+Ye);Or=Ye}var wa=null;ui(),Rr();var Da=function(nr){return Jr!==null?wa.encryptor(nr,0):function(On){return On}},ja=pr.__private__.getPageInfo=pr.getPageInfo=function(Ft){if(isNaN(Ft)||Ft%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:zi[Ft].objId,pageNumber:Ft,pageContext:zi[Ft]}},ko=pr.__private__.getPageInfoByObjId=function(Ft){if(isNaN(Ft)||Ft%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var nr in zi)if(zi[nr].objId===Ft)break;return ja(nr)},ro=pr.__private__.getCurrentPageInfo=pr.getCurrentPageInfo=function(){return{objId:zi[Br].objId,pageNumber:Br,pageContext:zi[Br]}};pr.addPage=function(){return rn.apply(this,arguments),this},pr.setPage=function(){return oi.apply(this,arguments),vi.call(this,oa[Br]),this},pr.insertPage=function(Ft){return this.addPage(),this.movePage(Br,Ft),this},pr.movePage=function(Ft,nr){var On,di;if(Ft>nr){On=oa[Ft],di=zi[Ft];for(var It=Ft;It>nr;It--)oa[It]=oa[It-1],zi[It]=zi[It-1];oa[nr]=On,zi[nr]=di,this.setPage(nr)}else if(Ft<nr){On=oa[Ft],di=zi[Ft];for(var ce=Ft;ce<nr;ce++)oa[ce]=oa[ce+1],zi[ce]=zi[ce+1];oa[nr]=On,zi[nr]=di,this.setPage(nr)}return this},pr.deletePage=function(){return jn.apply(this,arguments),this},pr.__private__.text=pr.text=function(Ft,nr,On,di,It){var ce,Se,Le,Qe,Lt,ir,Yr,hn,In,si=(di=di||{}).scope||this;if(typeof Ft=="number"&&typeof nr=="number"&&(typeof On=="string"||Array.isArray(On))){var wi=On;On=nr,nr=Ft,Ft=wi}if(arguments[3]instanceof ra==!1?(Le=arguments[4],Qe=arguments[5],x()(Yr=arguments[3])==="object"&&Yr!==null||(typeof Le=="string"&&(Qe=Le,Le=null),typeof Yr=="string"&&(Qe=Yr,Yr=null),typeof Yr=="number"&&(Le=Yr,Yr=null),di={flags:Yr,angle:Le,align:Qe})):(Vn("The transform parameter of text() with a Matrix value"),In=It),isNaN(nr)||isNaN(On)||Ft==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ft.length===0)return si;var gi="",Gi=!1,sa=typeof di.lineHeightFactor=="number"?di.lineHeightFactor:co,Ua=si.internal.scaleFactor;function no(ol){return ol=ol.split(" ").join(Array(di.TabLen||9).join(" ")),Gr(ol,Yr)}function Wo(ol){for(var Ys,sl=ol.concat(),nl=[],xl=sl.length;xl--;)typeof(Ys=sl.shift())=="string"?nl.push(Ys):Array.isArray(ol)&&(Ys.length===1||Ys[1]===void 0&&Ys[2]===void 0)?nl.push(Ys[0]):nl.push([Ys[0],Ys[1],Ys[2]]);return nl}function Zo(ol,Ys){var sl;if(typeof ol=="string")sl=Ys(ol)[0];else if(Array.isArray(ol)){for(var nl,xl,Ml=ol.concat(),Wl=[],au=Ml.length;au--;)typeof(nl=Ml.shift())=="string"?Wl.push(Ys(nl)[0]):Array.isArray(nl)&&typeof nl[0]=="string"&&(xl=Ys(nl[0],nl[1],nl[2]),Wl.push([xl[0],xl[1],xl[2]]));sl=Wl}return sl}var Bo=!1,Es=!0;if(typeof Ft=="string")Bo=!0;else if(Array.isArray(Ft)){var As=Ft.concat();Se=[];for(var $o,Do=As.length;Do--;)(typeof($o=As.shift())!="string"||Array.isArray($o)&&typeof $o[0]!="string")&&(Es=!1);Bo=Es}if(Bo===!1)throw new Error('Type of text must be string or Array. "'+Ft+'" is not recognized.');typeof Ft=="string"&&(Ft=Ft.match(/[\r?\n]/)?Ft.split(/\r\n|\r|\n/g):[Ft]);var vo=aa/si.internal.scaleFactor,Ms=vo*(sa-1);switch(di.baseline){case"bottom":On-=Ms;break;case"top":On+=vo-Ms;break;case"hanging":On+=vo-2*Ms;break;case"middle":On+=vo/2-Ms}if((ir=di.maxWidth||0)>0&&(typeof Ft=="string"?Ft=si.splitTextToSize(Ft,ir):Object.prototype.toString.call(Ft)==="[object Array]"&&(Ft=Ft.reduce(function(ol,Ys){return ol.concat(si.splitTextToSize(Ys,ir))},[]))),ce={text:Ft,x:nr,y:On,options:di,mutex:{pdfEscape:Gr,activeFontKey:_r,fonts:yn,activeFontSize:aa}},Hi.publish("preProcessText",ce),Ft=ce.text,Le=(di=ce.options).angle,In instanceof ra==!1&&Le&&typeof Le=="number"){Le*=Math.PI/180,di.rotationDirection===0&&(Le=-Le),fi===qr.ADVANCED&&(Le=-Le);var rl=Math.cos(Le),gs=Math.sin(Le);In=new ra(rl,gs,-gs,rl,0,0)}else Le&&Le instanceof ra&&(In=Le);fi!==qr.ADVANCED||In||(In=La),(Lt=di.charSpace||el)!==void 0&&(gi+=En(Bt(Lt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(hn=di.horizontalScale)!==void 0&&(gi+=En(100*hn)+` Tz
`),di.lang;var Ra=-1,dl=di.renderingMode!==void 0?di.renderingMode:di.stroke,fl=si.internal.getCurrentPageInfo().pageContext;switch(dl){case 0:case!1:case"fill":Ra=0;break;case 1:case!0:case"stroke":Ra=1;break;case 2:case"fillThenStroke":Ra=2;break;case 3:case"invisible":Ra=3;break;case 4:case"fillAndAddForClipping":Ra=4;break;case 5:case"strokeAndAddPathForClipping":Ra=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ra=6;break;case 7:case"addToPathForClipping":Ra=7}var js=fl.usedRenderingMode!==void 0?fl.usedRenderingMode:-1;Ra!==-1?gi+=Ra+` Tr
`:js!==-1&&(gi+=`0 Tr
`),Ra!==-1&&(fl.usedRenderingMode=Ra),Qe=di.align||"left";var _s,Xs=aa*sa,Ql=si.internal.pageSize.getWidth(),Ul=yn[_r];Lt=di.charSpace||el,ir=di.maxWidth||0,Yr=Object.assign({autoencode:!0,noBOM:!0},di.flags);var wl=[];if(Object.prototype.toString.call(Ft)==="[object Array]"){var Ts;Se=Wo(Ft),Qe!=="left"&&(_s=Se.map(function(ol){return si.getStringUnitWidth(ol,{font:Ul,charSpace:Lt,fontSize:aa,doKerning:!1})*aa/Ua}));var Ks,Tl=0;if(Qe==="right"){nr-=_s[0],Ft=[],Do=Se.length;for(var pl=0;pl<Do;pl++)pl===0?(Ks=Eo(nr),Ts=zo(On)):(Ks=Bt(Tl-_s[pl]),Ts=-Xs),Ft.push([Se[pl],Ks,Ts]),Tl=_s[pl]}else if(Qe==="center"){nr-=_s[0]/2,Ft=[],Do=Se.length;for(var jo=0;jo<Do;jo++)jo===0?(Ks=Eo(nr),Ts=zo(On)):(Ks=Bt((Tl-_s[jo])/2),Ts=-Xs),Ft.push([Se[jo],Ks,Ts]),Tl=_s[jo]}else if(Qe==="left"){Ft=[],Do=Se.length;for(var yo=0;yo<Do;yo++)Ft.push(Se[yo])}else{if(Qe!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Ft=[],Do=Se.length,ir=ir!==0?ir:Ql;for(var qo=0;qo<Do;qo++)Ts=qo===0?zo(On):-Xs,Ks=qo===0?Eo(nr):0,qo<Do-1?wl.push(En(Bt((ir-_s[qo])/(Se[qo].split(" ").length-1)))):wl.push(0),Ft.push([Se[qo],Ks,Ts])}}var ps=typeof di.R2L=="boolean"?di.R2L:xn;ps===!0&&(Ft=Zo(Ft,function(ol,Ys,sl){return[ol.split("").reverse().join(""),Ys,sl]})),ce={text:Ft,x:nr,y:On,options:di,mutex:{pdfEscape:Gr,activeFontKey:_r,fonts:yn,activeFontSize:aa}},Hi.publish("postProcessText",ce),Ft=ce.text,Gi=ce.mutex.isHex||!1;var Os=yn[_r].encoding;Os!=="WinAnsiEncoding"&&Os!=="StandardEncoding"||(Ft=Zo(Ft,function(ol,Ys,sl){return[no(ol),Ys,sl]})),Se=Wo(Ft),Ft=[];for(var es,Is,Ps,ml=0,Rl=1,_l=Array.isArray(Se[0])?Rl:ml,Bl="",jl=function(Ys,sl,nl){var xl="";return nl instanceof ra?(nl=typeof di.angle=="number"?Ma(nl,new ra(1,0,0,1,Ys,sl)):Ma(new ra(1,0,0,1,Ys,sl),nl),fi===qr.ADVANCED&&(nl=Ma(new ra(1,0,0,-1,0,0),nl)),xl=nl.join(" ")+` Tm
`):xl=En(Ys)+" "+En(sl)+` Td
`,xl},kl=0;kl<Se.length;kl++){switch(Bl="",_l){case Rl:Ps=(Gi?"<":"(")+Se[kl][0]+(Gi?">":")"),es=parseFloat(Se[kl][1]),Is=parseFloat(Se[kl][2]);break;case ml:Ps=(Gi?"<":"(")+Se[kl]+(Gi?">":")"),es=Eo(nr),Is=zo(On)}wl!==void 0&&wl[kl]!==void 0&&(Bl=wl[kl]+` Tw
`),kl===0?Ft.push(Bl+jl(es,Is,In)+Ps):_l===ml?Ft.push(Bl+Ps):_l===Rl&&Ft.push(Bl+jl(es,Is,In)+Ps)}Ft=_l===ml?Ft.join(` Tj
T* `):Ft.join(` Tj
`),Ft+=` Tj
`;var Xl=`BT
/`;return Xl+=_r+" "+aa+` Tf
`,Xl+=En(aa*sa)+` TL
`,Xl+=Ns+`
`,Xl+=gi,Xl+=Ft,Ln(Xl+="ET"),fn[_r]=!0,si};var pa=pr.__private__.clip=pr.clip=function(Ft){return Ln(Ft==="evenodd"?"W*":"W"),this};pr.clipEvenOdd=function(){return pa("evenodd")},pr.__private__.discardPath=pr.discardPath=function(){return Ln("n"),this};var Ea=pr.__private__.isValidStyle=function(Ft){var nr=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ft)!==-1&&(nr=!0),nr};pr.__private__.setDefaultPathOperation=pr.setDefaultPathOperation=function(Ft){return Ea(Ft)&&(cr=Ft),this};var Fa=pr.__private__.getStyle=pr.getStyle=function(Ft){var nr=cr;switch(Ft){case"D":case"S":nr="S";break;case"F":nr="f";break;case"FD":case"DF":nr="B";break;case"f":case"f*":case"B":case"B*":nr=Ft}return nr},Ka=pr.close=function(){return Ln("h"),this};pr.stroke=function(){return Ln("S"),this},pr.fill=function(Ft){return lo("f",Ft),this},pr.fillEvenOdd=function(Ft){return lo("f*",Ft),this},pr.fillStroke=function(Ft){return lo("B",Ft),this},pr.fillStrokeEvenOdd=function(Ft){return lo("B*",Ft),this};var lo=function(nr,On){x()(On)==="object"?Lo(On,nr):Ln(nr)},so=function(nr){nr===null||fi===qr.ADVANCED&&nr===void 0||(nr=Fa(nr),Ln(nr))};function Co(Ft,nr,On,di,It){var ce=new W(nr||this.boundingBox,On||this.xStep,di||this.yStep,this.gState,It||this.matrix);ce.stream=this.stream;var Se=Ft+"$$"+this.cloneIndex+++"$$";return va(Se,ce),ce}var Lo=function(nr,On){var di=ki[nr.key],It=pi[di];if(It instanceof j)Ln("q"),Ln(is(On)),It.gState&&pr.setGState(It.gState),Ln(nr.matrix.toString()+" cm"),Ln("/"+di+" sh"),Ln("Q");else if(It instanceof W){var ce=new ra(1,0,0,-1,0,Ds());nr.matrix&&(ce=ce.multiply(nr.matrix||La),di=Co.call(It,nr.key,nr.boundingBox,nr.xStep,nr.yStep,ce).id),Ln("q"),Ln("/Pattern cs"),Ln("/"+di+" scn"),It.gState&&pr.setGState(It.gState),Ln(On),Ln("Q")}},is=function(nr){switch(nr){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},cs=pr.moveTo=function(Ft,nr){return Ln(En(Bt(Ft))+" "+En(Ot(nr))+" m"),this},Rs=pr.lineTo=function(Ft,nr){return Ln(En(Bt(Ft))+" "+En(Ot(nr))+" l"),this},Ko=pr.curveTo=function(Ft,nr,On,di,It,ce){return Ln([En(Bt(Ft)),En(Ot(nr)),En(Bt(On)),En(Ot(di)),En(Bt(It)),En(Ot(ce)),"c"].join(" ")),this};pr.__private__.line=pr.line=function(Ft,nr,On,di,It){if(isNaN(Ft)||isNaN(nr)||isNaN(On)||isNaN(di)||!Ea(It))throw new Error("Invalid arguments passed to jsPDF.line");return fi===qr.COMPAT?this.lines([[On-Ft,di-nr]],Ft,nr,[1,1],It||"S"):this.lines([[On-Ft,di-nr]],Ft,nr,[1,1]).stroke()},pr.__private__.lines=pr.lines=function(Ft,nr,On,di,It,ce){var Se,Le,Qe,Lt,ir,Yr,hn,In,si,wi,gi,Gi;if(typeof Ft=="number"&&(Gi=On,On=nr,nr=Ft,Ft=Gi),di=di||[1,1],ce=ce||!1,isNaN(nr)||isNaN(On)||!Array.isArray(Ft)||!Array.isArray(di)||!Ea(It)||typeof ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(nr,On),Se=di[0],Le=di[1],Lt=Ft.length,wi=nr,gi=On,Qe=0;Qe<Lt;Qe++)(ir=Ft[Qe]).length===2?(wi=ir[0]*Se+wi,gi=ir[1]*Le+gi,Rs(wi,gi)):(Yr=ir[0]*Se+wi,hn=ir[1]*Le+gi,In=ir[2]*Se+wi,si=ir[3]*Le+gi,wi=ir[4]*Se+wi,gi=ir[5]*Le+gi,Ko(Yr,hn,In,si,wi,gi));return ce&&Ka(),so(It),this},pr.path=function(Ft){for(var nr=0;nr<Ft.length;nr++){var On=Ft[nr],di=On.c;switch(On.op){case"m":cs(di[0],di[1]);break;case"l":Rs(di[0],di[1]);break;case"c":Ko.apply(this,di);break;case"h":Ka()}}return this},pr.__private__.rect=pr.rect=function(Ft,nr,On,di,It){if(isNaN(Ft)||isNaN(nr)||isNaN(On)||isNaN(di)||!Ea(It))throw new Error("Invalid arguments passed to jsPDF.rect");return fi===qr.COMPAT&&(di=-di),Ln([En(Bt(Ft)),En(Ot(nr)),En(Bt(On)),En(Bt(di)),"re"].join(" ")),so(It),this},pr.__private__.triangle=pr.triangle=function(Ft,nr,On,di,It,ce,Se){if(isNaN(Ft)||isNaN(nr)||isNaN(On)||isNaN(di)||isNaN(It)||isNaN(ce)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[On-Ft,di-nr],[It-On,ce-di],[Ft-It,nr-ce]],Ft,nr,[1,1],Se,!0),this},pr.__private__.roundedRect=pr.roundedRect=function(Ft,nr,On,di,It,ce,Se){if(isNaN(Ft)||isNaN(nr)||isNaN(On)||isNaN(di)||isNaN(It)||isNaN(ce)||!Ea(Se))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Le=4/3*(Math.SQRT2-1);return It=Math.min(It,.5*On),ce=Math.min(ce,.5*di),this.lines([[On-2*It,0],[It*Le,0,It,ce-ce*Le,It,ce],[0,di-2*ce],[0,ce*Le,-It*Le,ce,-It,ce],[2*It-On,0],[-It*Le,0,-It,-ce*Le,-It,-ce],[0,2*ce-di],[0,-ce*Le,It*Le,-ce,It,-ce]],Ft+It,nr,[1,1],Se,!0),this},pr.__private__.ellipse=pr.ellipse=function(Ft,nr,On,di,It){if(isNaN(Ft)||isNaN(nr)||isNaN(On)||isNaN(di)||!Ea(It))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*On,Se=4/3*(Math.SQRT2-1)*di;return cs(Ft+On,nr),Ko(Ft+On,nr-Se,Ft+ce,nr-di,Ft,nr-di),Ko(Ft-ce,nr-di,Ft-On,nr-Se,Ft-On,nr),Ko(Ft-On,nr+Se,Ft-ce,nr+di,Ft,nr+di),Ko(Ft+ce,nr+di,Ft+On,nr+Se,Ft+On,nr),so(It),this},pr.__private__.circle=pr.circle=function(Ft,nr,On,di){if(isNaN(Ft)||isNaN(nr)||isNaN(On)||!Ea(di))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ft,nr,On,On,di)},pr.setFont=function(Ft,nr,On){return On&&(nr=tn(nr,On)),_r=ai(Ft,nr,{disableWarning:!1}),this};var as=pr.__private__.getFont=pr.getFont=function(){return yn[ai.apply(pr,arguments)]};pr.__private__.getFontList=pr.getFontList=function(){var Ft,nr,On={};for(Ft in Jn)if(Jn.hasOwnProperty(Ft))for(nr in On[Ft]=[],Jn[Ft])Jn[Ft].hasOwnProperty(nr)&&On[Ft].push(nr);return On},pr.addFont=function(Ft,nr,On,di,It){var ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ce.indexOf(arguments[3])!==-1?It=arguments[3]:arguments[3]&&ce.indexOf(arguments[3])==-1&&(On=tn(On,di)),It=It||"Identity-H",Zr.call(this,Ft,nr,On,It)};var co,Ao=rt.lineWidth||.200025,$a=pr.__private__.getLineWidth=pr.getLineWidth=function(){return Ao},ss=pr.__private__.setLineWidth=pr.setLineWidth=function(Ft){return Ao=Ft,Ln(En(Bt(Ft))+" w"),this};pr.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(Ft,nr){if(Ft=Ft||[],nr=nr||0,isNaN(nr)||!Array.isArray(Ft))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ft=Ft.map(function(On){return En(Bt(On))}).join(" "),nr=En(Bt(nr)),Ln("["+Ft+"] "+nr+" d"),this};var Cs=pr.__private__.getLineHeight=pr.getLineHeight=function(){return aa*co};pr.__private__.getLineHeight=pr.getLineHeight=function(){return aa*co};var Fo=pr.__private__.setLineHeightFactor=pr.setLineHeightFactor=function(Ft){return typeof(Ft=Ft||1.15)=="number"&&(co=Ft),this},il=pr.__private__.getLineHeightFactor=pr.getLineHeightFactor=function(){return co};Fo(rt.lineHeight);var Eo=pr.__private__.getHorizontalCoordinate=function(Ft){return Bt(Ft)},zo=pr.__private__.getVerticalCoordinate=function(Ft){return fi===qr.ADVANCED?Ft:zi[Br].mediaBox.topRightY-zi[Br].mediaBox.bottomLeftY-Bt(Ft)},Bs=pr.__private__.getHorizontalCoordinateString=pr.getHorizontalCoordinateString=function(Ft){return En(Eo(Ft))},ms=pr.__private__.getVerticalCoordinateString=pr.getVerticalCoordinateString=function(Ft){return En(zo(Ft))},hs=rt.strokeColor||"0 G";pr.__private__.getStrokeColor=pr.getDrawColor=function(){return Bi(hs)},pr.__private__.setStrokeColor=pr.setDrawColor=function(Ft,nr,On,di){return hs=io({ch1:Ft,ch2:nr,ch3:On,ch4:di,pdfColorType:"draw",precision:2}),Ln(hs),this};var An=rt.fillColor||"0 g";pr.__private__.getFillColor=pr.getFillColor=function(){return Bi(An)},pr.__private__.setFillColor=pr.setFillColor=function(Ft,nr,On,di){return An=io({ch1:Ft,ch2:nr,ch3:On,ch4:di,pdfColorType:"fill",precision:2}),Ln(An),this};var Ns=rt.textColor||"0 g",Ll=pr.__private__.getTextColor=pr.getTextColor=function(){return Bi(Ns)};pr.__private__.setTextColor=pr.setTextColor=function(Ft,nr,On,di){return Ns=io({ch1:Ft,ch2:nr,ch3:On,ch4:di,pdfColorType:"text",precision:3}),this};var el=rt.charSpace,Gs=pr.__private__.getCharSpace=pr.getCharSpace=function(){return parseFloat(el||0)};pr.__private__.setCharSpace=pr.setCharSpace=function(Ft){if(isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return el=Ft,this};var ds=0;pr.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},pr.__private__.setLineCap=pr.setLineCap=function(Ft){var nr=pr.CapJoinStyles[Ft];if(nr===void 0)throw new Error("Line cap style of '"+Ft+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ds=nr,Ln(nr+" J"),this};var ks=0;pr.__private__.setLineJoin=pr.setLineJoin=function(Ft){var nr=pr.CapJoinStyles[Ft];if(nr===void 0)throw new Error("Line join style of '"+Ft+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ks=nr,Ln(nr+" j"),this},pr.__private__.setLineMiterLimit=pr.__private__.setMiterLimit=pr.setLineMiterLimit=pr.setMiterLimit=function(Ft){if(Ft=Ft||0,isNaN(Ft))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ln(En(Bt(Ft))+" M"),this},pr.GState=X,pr.setGState=function(Ft){(Ft=typeof Ft=="string"?yi[_i[Ft]]:Qs(null,Ft)).equals(Ki)||(Ln("/"+Ft.id+" gs"),Ki=Ft)};var Qs=function(nr,On){if(!nr||!_i[nr]){var di=!1;for(var It in yi)if(yi.hasOwnProperty(It)&&yi[It].equals(On)){di=!0;break}if(di)On=yi[It];else{var ce="GS"+(Object.keys(yi).length+1).toString(10);yi[ce]=On,On.id=ce}return nr&&(_i[nr]=On.id),Hi.publish("addGState",On),On}};pr.addGState=function(Ft,nr){return Qs(Ft,nr),this},pr.saveGraphicsState=function(){return Ln("q"),Un.push({key:_r,size:aa,color:Ns}),this},pr.restoreGraphicsState=function(){Ln("Q");var Ft=Un.pop();return _r=Ft.key,aa=Ft.size,Ns=Ft.color,Ki=null,this},pr.setCurrentTransformationMatrix=function(Ft){return Ln(Ft.toString()+" cm"),this},pr.comment=function(Ft){return Ln("#"+Ft),this};var tl=function(nr,On){var di=nr||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return di},set:function(Le){isNaN(Le)||(di=parseFloat(Le))}});var It=On||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return It},set:function(Le){isNaN(Le)||(It=parseFloat(Le))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Le){ce=Le.toString()}}),this},xs=function(nr,On,di,It){tl.call(this,nr,On),this.type="rect";var ce=di||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Qe){isNaN(Qe)||(ce=parseFloat(Qe))}});var Se=It||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(Qe){isNaN(Qe)||(Se=parseFloat(Qe))}}),this},Us=function(){this.page=qi,this.currentPage=Br,this.pages=oa.slice(0),this.pagesContext=zi.slice(0),this.x=en,this.y=wn,this.matrix=_n,this.width=No(Br),this.height=Ds(Br),this.outputDestination=ia,this.id="",this.objectNumber=-1};Us.prototype.restore=function(){qi=this.page,Br=this.currentPage,zi=this.pagesContext,oa=this.pages,en=this.x,wn=this.y,_n=this.matrix,fs(Br,this.width),go(Br,this.height),ia=this.outputDestination};var al=function(nr,On,di,It,ce){Ca.push(new Us),qi=Br=0,oa=[],en=nr,wn=On,_n=ce,ri([di,It])},Js=function(nr){if(ca[nr])Ca.pop().restore();else{var On=new Us,di="Xo"+(Object.keys(Qi).length+1).toString(10);On.id=di,ca[nr]=di,Qi[di]=On,Hi.publish("addFormObject",On),Ca.pop().restore()}};for(var Vo in pr.beginFormObject=function(Ft,nr,On,di,It){return al(Ft,nr,On,di,It),this},pr.endFormObject=function(Ft){return Js(Ft),this},pr.doFormObject=function(Ft,nr){var On=Qi[ca[Ft]];return Ln("q"),Ln(nr.toString()+" cm"),Ln("/"+On.id+" Do"),Ln("Q"),this},pr.getFormObject=function(Ft){var nr=Qi[ca[Ft]];return{x:nr.x,y:nr.y,width:nr.width,height:nr.height,matrix:nr.matrix}},pr.save=function(Ft,nr){return Ft=Ft||"generated.pdf",(nr=nr||{}).returnPromise=nr.returnPromise||!1,nr.returnPromise===!1?(e(fa(ji()),Ft),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(On,di){try{var It=e(fa(ji()),Ft);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),On(It)}catch(ce){di(ce.message)}})},z.API)z.API.hasOwnProperty(Vo)&&(Vo==="events"&&z.API.events.length?function(Ft,nr){var On,di,It;for(It=nr.length-1;It!==-1;It--)On=nr[It][0],di=nr[It][1],Ft.subscribe.apply(Ft,[On].concat(typeof di=="function"?[di]:di))}(Hi,z.API.events):pr[Vo]=z.API[Vo]);var No=pr.getPageWidth=function(Ft){return(zi[Ft=Ft||Br].mediaBox.topRightX-zi[Ft].mediaBox.bottomLeftX)/Or},fs=pr.setPageWidth=function(Ft,nr){zi[Ft].mediaBox.topRightX=nr*Or+zi[Ft].mediaBox.bottomLeftX},Ds=pr.getPageHeight=function(Ft){return(zi[Ft=Ft||Br].mediaBox.topRightY-zi[Ft].mediaBox.bottomLeftY)/Or},go=pr.setPageHeight=function(Ft,nr){zi[Ft].mediaBox.topRightY=nr*Or+zi[Ft].mediaBox.bottomLeftY};return pr.internal={pdfEscape:Gr,getStyle:Fa,getFont:as,getFontSize:wr,getCharSpace:Gs,getTextColor:Ll,getLineHeight:Cs,getLineHeightFactor:il,getLineWidth:$a,write:Fi,getHorizontalCoordinate:Eo,getVerticalCoordinate:zo,getCoordinateString:Bs,getVerticalCoordinateString:ms,collections:{},newObject:ga,newAdditionalObject:Ga,newObjectDeferred:Oa,newObjectDeferredBegin:Aa,getFilters:oo,putStream:Qo,events:Hi,scaleFactor:Or,pageSize:{getWidth:function(){return No(Br)},setWidth:function(nr){fs(Br,nr)},getHeight:function(){return Ds(Br)},setHeight:function(nr){go(Br,nr)}},encryptionOptions:Jr,encryption:wa,getEncryptor:Da,output:Xa,getNumberOfPages:li,pages:oa,out:Ln,f2:Et,f3:kt,getPageInfo:ja,getPageInfoByObjId:ko,getCurrentPageInfo:ro,getPDFVersion:kr,Point:tl,Rectangle:xs,Matrix:ra,hasHotfix:xa},Object.defineProperty(pr.internal.pageSize,"width",{get:function(){return No(Br)},set:function(nr){fs(Br,nr)},enumerable:!0,configurable:!0}),Object.defineProperty(pr.internal.pageSize,"height",{get:function(){return Ds(Br)},set:function(nr){go(Br,nr)},enumerable:!0,configurable:!0}),Xr.call(pr,ea),_r="F1",rn(et,Ue),Hi.publish("initialized"),pr}M.prototype.lsbFirstWord=function(rt){return String.fromCharCode(rt>>0&255,rt>>8&255,rt>>16&255,rt>>24&255)},M.prototype.toHexString=function(rt){return rt.split("").map(function(Re){return("0"+(255&Re.charCodeAt(0)).toString(16)).slice(-2)}).join("")},M.prototype.hexToBytes=function(rt){for(var Re=[],Ue=0;Ue<rt.length;Ue+=2)Re.push(String.fromCharCode(parseInt(rt.substr(Ue,2),16)));return Re.join("")},M.prototype.processOwnerPassword=function(rt,Re){return I(T(Re).substr(0,5),rt)},M.prototype.encryptor=function(rt,Re){var Ue=T(this.encryptionKey+String.fromCharCode(255&rt,rt>>8&255,rt>>16&255,255&Re,Re>>8&255)).substr(0,10);return function(Ye){return I(Ue,Ye)}},X.prototype.equals=function(rt){var Re,Ue="id,objectNumber,equals";if(!rt||x()(rt)!==x()(this))return!1;var Ye=0;for(Re in this)if(!(Ue.indexOf(Re)>=0)){if(this.hasOwnProperty(Re)&&!rt.hasOwnProperty(Re))return!1;if(this[Re]!==rt[Re])return!1;Ye++}for(Re in rt)rt.hasOwnProperty(Re)&&Ue.indexOf(Re)<0&&Ye--;return Ye===0},z.API={events:[]},z.version="2.5.1";var V=z.API,Q=1,G=function(Re){return Re.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},re=function(Re){return Re.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ee=function(Re){return Re.toFixed(2)},ue=function(Re){return Re.toFixed(5)};V.__acroform__={};var $=function(Re,Ue){Re.prototype=Object.create(Ue.prototype),Re.prototype.constructor=Re},be=function(Re){return Re*Q},_e=function(Re){var Ue=new Fe,Ye=se.internal.getHeight(Re)||0,et=se.internal.getWidth(Re)||0;return Ue.BBox=[0,0,Number(ee(et)),Number(ee(Ye))],Ue},Ee=V.__acroform__.setBit=function(rt,Re){if(rt=rt||0,Re=Re||0,isNaN(rt)||isNaN(Re))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return rt|=1<<Re},Xe=V.__acroform__.clearBit=function(rt,Re){if(rt=rt||0,Re=Re||0,isNaN(rt)||isNaN(Re))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return rt&=~(1<<Re)},He=V.__acroform__.getBit=function(rt,Re){if(isNaN(rt)||isNaN(Re))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(rt&1<<Re)==0?0:1},nt=V.__acroform__.getBitForPdf=function(rt,Re){if(isNaN(rt)||isNaN(Re))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return He(rt,Re-1)},Ie=V.__acroform__.setBitForPdf=function(rt,Re){if(isNaN(rt)||isNaN(Re))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ee(rt,Re-1)},oe=V.__acroform__.clearBitForPdf=function(rt,Re){if(isNaN(rt)||isNaN(Re))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Xe(rt,Re-1)},ot=V.__acroform__.calculateCoordinates=function(rt,Re){var Ue=Re.internal.getHorizontalCoordinate,Ye=Re.internal.getVerticalCoordinate,et=rt[0],$e=rt[1],at=rt[2],wt=rt[3],ft={};return ft.lowerLeft_X=Ue(et)||0,ft.lowerLeft_Y=Ye($e+wt)||0,ft.upperRight_X=Ue(et+at)||0,ft.upperRight_Y=Ye($e)||0,[Number(ee(ft.lowerLeft_X)),Number(ee(ft.lowerLeft_Y)),Number(ee(ft.upperRight_X)),Number(ee(ft.upperRight_Y))]},he=function(Re){if(Re.appearanceStreamContent)return Re.appearanceStreamContent;if(Re.V||Re.DV){var Ue=[],Ye=Re._V||Re.DV,et=J(Re,Ye),$e=Re.scope.internal.getFont(Re.fontName,Re.fontStyle).id;Ue.push("/Tx BMC"),Ue.push("q"),Ue.push("BT"),Ue.push(Re.scope.__private__.encodeColorString(Re.color)),Ue.push("/"+$e+" "+ee(et.fontSize)+" Tf"),Ue.push("1 0 0 1 0 0 Tm"),Ue.push(et.text),Ue.push("ET"),Ue.push("Q"),Ue.push("EMC");var at=_e(Re);return at.scope=Re.scope,at.stream=Ue.join(`
`),at}},J=function(Re,Ue){var Ye=Re.fontSize===0?Re.maxFontSize:Re.fontSize,et={text:"",fontSize:""},$e=(Ue=(Ue=Ue.substr(0,1)=="("?Ue.substr(1):Ue).substr(Ue.length-1)==")"?Ue.substr(0,Ue.length-1):Ue).split(" ");$e=Re.multiline?$e.map(function(Bt){return Bt.split(`
`)}):$e.map(function(Bt){return[Bt]});var at=Ye,wt=se.internal.getHeight(Re)||0;wt=wt<0?-wt:wt;var ft=se.internal.getWidth(Re)||0;ft=ft<0?-ft:ft;var cr=function(Kt,Ot,sr){if(Kt+1<$e.length){var fr=Ot+" "+$e[Kt+1][0];return Y(fr,Re,sr).width<=ft-4}return!1};at++;e:for(;at>0;){Ue="",at--;var Jr,Qr,fn=Y("3",Re,at).height,pr=Re.multiline?wt-at:(wt-fn)/2,Wn=pr+=2,kr=0,kn=0,bn=0;if(at<=0){Ue=`(...) Tj
`,Ue+="% Width of Text: "+Y(Ue,Re,at=12).width+", FieldWidth:"+ft+`
`;break}for(var qr="",fi=0,Mi=0;Mi<$e.length;Mi++)if($e.hasOwnProperty(Mi)){var Zi=!1;if($e[Mi].length!==1&&bn!==$e[Mi].length-1){if((fn+2)*(fi+2)+2>wt)continue e;qr+=$e[Mi][bn],Zi=!0,kn=Mi,Mi--}else{qr=(qr+=$e[Mi][bn]+" ").substr(qr.length-1)==" "?qr.substr(0,qr.length-1):qr;var tn=parseInt(Mi),En=cr(tn,qr,at),Vn=Mi>=$e.length-1;if(En&&!Vn){qr+=" ",bn=0;continue}if(En||Vn){if(Vn)kn=tn;else if(Re.multiline&&(fn+2)*(fi+2)+2>wt)continue e}else{if(!Re.multiline)continue e;if((fn+2)*(fi+2)+2>wt)continue e;kn=tn}}for(var Wt="",Et=kr;Et<=kn;Et++){var kt=$e[Et];if(Re.multiline){if(Et===kn){Wt+=kt[bn]+" ",bn=(bn+1)%kt.length;continue}if(Et===kr){Wt+=kt[kt.length-1]+" ";continue}}Wt+=kt[0]+" "}switch(Wt=Wt.substr(Wt.length-1)==" "?Wt.substr(0,Wt.length-1):Wt,Qr=Y(Wt,Re,at).width,Re.textAlign){case"right":Jr=ft-Qr-2;break;case"center":Jr=(ft-Qr)/2;break;case"left":default:Jr=2}Ue+=ee(Jr)+" "+ee(Wn)+` Td
`,Ue+="("+G(Wt)+`) Tj
`,Ue+=-ee(Jr)+` 0 Td
`,Wn=-(at+2),Qr=0,kr=Zi?kn:kn+1,fi++,qr=""}break}return et.text=Ue,et.fontSize=at,et},Y=function(Re,Ue,Ye){var et=Ue.scope.internal.getFont(Ue.fontName,Ue.fontStyle),$e=Ue.scope.getStringUnitWidth(Re,{font:et,fontSize:parseFloat(Ye),charSpace:0})*parseFloat(Ye);return{height:Ue.scope.getStringUnitWidth("3",{font:et,fontSize:parseFloat(Ye),charSpace:0})*parseFloat(Ye)*1.5,width:$e}},q={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},fe=function(Re,Ue){var Ye={type:"reference",object:Re};Ue.internal.getPageInfo(Re.page).pageContext.annotations.find(function(et){return et.type===Ye.type&&et.object===Ye.object})===void 0&&Ue.internal.getPageInfo(Re.page).pageContext.annotations.push(Ye)},we=function(Re,Ue){for(var Ye in Re)if(Re.hasOwnProperty(Ye)){var et=Ye,$e=Re[Ye];Ue.internal.newObjectDeferredBegin($e.objId,!0),x()($e)==="object"&&typeof $e.putStream=="function"&&$e.putStream(),delete Re[et]}},Ne=function(Re,Ue){if(Ue.scope=Re,Re.internal!==void 0&&(Re.internal.acroformPlugin===void 0||Re.internal.acroformPlugin.isInitialized===!1)){if(Ct.FieldNum=0,Re.internal.acroformPlugin=JSON.parse(JSON.stringify(q)),Re.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Re.internal.scaleFactor,Re.internal.acroformPlugin.acroFormDictionaryRoot=new it,Re.internal.acroformPlugin.acroFormDictionaryRoot.scope=Re,Re.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Re.internal.events.subscribe("postPutResources",function(){!function(Ye){Ye.internal.events.unsubscribe(Ye.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ye.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ye.internal.acroformPlugin.printedOut=!0}(Re)}),Re.internal.events.subscribe("buildDocument",function(){!function(Ye){Ye.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var et=Ye.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var $e in et)if(et.hasOwnProperty($e)){var at=et[$e];at.objId=void 0,at.hasAnnotation&&fe(at,Ye)}}(Re)}),Re.internal.events.subscribe("putCatalog",function(){!function(Ye){if(Ye.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ye.internal.write("/AcroForm "+Ye.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Re)}),Re.internal.events.subscribe("postPutPages",function(Ye){!function(et,$e){var at=!et;for(var wt in et||($e.internal.newObjectDeferredBegin($e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),$e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),et=et||$e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(et.hasOwnProperty(wt)){var ft=et[wt],cr=[],Jr=ft.Rect;if(ft.Rect&&(ft.Rect=ot(ft.Rect,$e)),$e.internal.newObjectDeferredBegin(ft.objId,!0),ft.DA=se.createDefaultAppearanceStream(ft),x()(ft)==="object"&&typeof ft.getKeyValueListForStream=="function"&&(cr=ft.getKeyValueListForStream()),ft.Rect=Jr,ft.hasAppearanceStream&&!ft.appearanceStreamContent){var Qr=he(ft);cr.push({key:"AP",value:"<</N "+Qr+">>"}),$e.internal.acroformPlugin.xForms.push(Qr)}if(ft.appearanceStreamContent){var fn="";for(var pr in ft.appearanceStreamContent)if(ft.appearanceStreamContent.hasOwnProperty(pr)){var Wn=ft.appearanceStreamContent[pr];if(fn+="/"+pr+" ",fn+="<<",Object.keys(Wn).length>=1||Array.isArray(Wn)){for(var wt in Wn)if(Wn.hasOwnProperty(wt)){var kr=Wn[wt];typeof kr=="function"&&(kr=kr.call($e,ft)),fn+="/"+wt+" "+kr+" ",$e.internal.acroformPlugin.xForms.indexOf(kr)>=0||$e.internal.acroformPlugin.xForms.push(kr)}}else typeof(kr=Wn)=="function"&&(kr=kr.call($e,ft)),fn+="/"+wt+" "+kr,$e.internal.acroformPlugin.xForms.indexOf(kr)>=0||$e.internal.acroformPlugin.xForms.push(kr);fn+=">>"}cr.push({key:"AP",value:`<<
`+fn+">>"})}$e.internal.putStream({additionalKeyValues:cr,objectId:ft.objId}),$e.internal.out("endobj")}at&&we($e.internal.acroformPlugin.xForms,$e)}(Ye,Re)}),Re.internal.acroformPlugin.isInitialized=!0}},je=V.__acroform__.arrayToPdfArray=function(rt,Re,Ue){var Ye=function(wt){return wt};if(Array.isArray(rt)){for(var et="[",$e=0;$e<rt.length;$e++)switch($e!==0&&(et+=" "),x()(rt[$e])){case"boolean":case"number":case"object":et+=rt[$e].toString();break;case"string":rt[$e].substr(0,1)!=="/"?(Re!==void 0&&Ue&&(Ye=Ue.internal.getEncryptor(Re)),et+="("+G(Ye(rt[$e].toString()))+")"):et+=rt[$e].toString()}return et+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},me=function(Re,Ue,Ye){var et=function(at){return at};return Ue!==void 0&&Ye&&(et=Ye.internal.getEncryptor(Ue)),(Re=Re||"").toString(),Re="("+G(et(Re))+")"},Ce=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(Ue){this._objId=Ue}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ce.prototype.toString=function(){return this.objId+" 0 R"},Ce.prototype.putStream=function(){var rt=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:rt,objectId:this.objId}),this.scope.internal.out("endobj")},Ce.prototype.getKeyValueListForStream=function(){var rt=[],Re=Object.getOwnPropertyNames(this).filter(function($e){return $e!="content"&&$e!="appearanceStreamContent"&&$e!="scope"&&$e!="objId"&&$e.substring(0,1)!="_"});for(var Ue in Re)if(Object.getOwnPropertyDescriptor(this,Re[Ue]).configurable===!1){var Ye=Re[Ue],et=this[Ye];et&&(Array.isArray(et)?rt.push({key:Ye,value:je(et,this.objId,this.scope)}):et instanceof Ce?(et.scope=this.scope,rt.push({key:Ye,value:et.objId+" 0 R"})):typeof et!="function"&&rt.push({key:Ye,value:et}))}return rt};var Fe=function(){Ce.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 Re,Ue=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Ue},set:function(et){Ue=et}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(et){Re=et.trim()},get:function(){return Re||null}})};$(Fe,Ce);var it=function(){Ce.call(this);var Re,Ue=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Ue.length>0?Ue:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Ue}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Re){var et=function(at){return at};return this.scope&&(et=this.scope.internal.getEncryptor(this.objId)),"("+G(et(Re))+")"}},set:function(et){Re=et}})};$(it,Ce);var Ct=function rt(){Ce.call(this);var Re=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Re},set:function(qr){if(isNaN(qr))throw new Error('Invalid value "'+qr+'" for attribute F supplied.');Re=qr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(Re,3))},set:function(qr){Boolean(qr)===!0?this.F=Ie(Re,3):this.F=oe(Re,3)}});var Ue=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ue},set:function(qr){if(isNaN(qr))throw new Error('Invalid value "'+qr+'" for attribute Ff supplied.');Ue=qr}});var Ye=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ye.length!==0)return Ye},set:function(qr){Ye=qr!==void 0?qr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[0])?0:Ye[0]},set:function(qr){Ye[0]=qr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[1])?0:Ye[1]},set:function(qr){Ye[1]=qr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[2])?0:Ye[2]},set:function(qr){Ye[2]=qr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[3])?0:Ye[3]},set:function(qr){Ye[3]=qr}});var et="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return et},set:function(qr){switch(qr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":et=qr;break;default:throw new Error('Invalid value "'+qr+'" for attribute FT supplied.')}}});var $e=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!$e||$e.length<1){if(this instanceof Pt)return;$e="FieldObject"+rt.FieldNum++}var qr=function(Mi){return Mi};return this.scope&&(qr=this.scope.internal.getEncryptor(this.objId)),"("+G(qr($e))+")"},set:function(qr){$e=qr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return $e},set:function(qr){$e=qr}});var at="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return at},set:function(qr){at=qr}});var wt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(qr){wt=qr}});var ft=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ft},set:function(qr){ft=qr}});var cr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return cr===void 0?50/Q:cr},set:function(qr){cr=qr}});var Jr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Jr},set:function(qr){Jr=qr}});var Qr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Qr||this instanceof Pt||this instanceof Ge))return me(Qr,this.objId,this.scope)},set:function(qr){qr=qr.toString(),Qr=qr}});var fn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(fn)return this instanceof Yt==!1?me(fn,this.objId,this.scope):fn},set:function(qr){qr=qr.toString(),fn=this instanceof Yt==!1?qr.substr(0,1)==="("?re(qr.substr(1,qr.length-2)):re(qr):qr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Yt==!0?re(fn.substr(1,fn.length-1)):fn},set:function(qr){qr=qr.toString(),fn=this instanceof Yt==!0?"/"+qr:qr}});var pr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(pr)return pr},set:function(qr){this.V=qr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(pr)return this instanceof Yt==!1?me(pr,this.objId,this.scope):pr},set:function(qr){qr=qr.toString(),pr=this instanceof Yt==!1?qr.substr(0,1)==="("?re(qr.substr(1,qr.length-2)):re(qr):qr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Yt==!0?re(pr.substr(1,pr.length-1)):pr},set:function(qr){qr=qr.toString(),pr=this instanceof Yt==!0?"/"+qr:qr}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Wn,kr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return kr},set:function(qr){qr=Boolean(qr),kr=qr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Wn)return Wn},set:function(qr){Wn=qr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,1))},set:function(qr){Boolean(qr)===!0?this.Ff=Ie(this.Ff,1):this.Ff=oe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,2))},set:function(qr){Boolean(qr)===!0?this.Ff=Ie(this.Ff,2):this.Ff=oe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,3))},set:function(qr){Boolean(qr)===!0?this.Ff=Ie(this.Ff,3):this.Ff=oe(this.Ff,3)}});var kn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(kn!==null)return kn},set:function(qr){if([0,1,2].indexOf(qr)===-1)throw new Error('Invalid value "'+qr+'" for attribute Q supplied.');kn=qr}}),Object.defineProperty(this,"textAlign",{get:function(){var qr;switch(kn){case 0:default:qr="left";break;case 1:qr="center";break;case 2:qr="right"}return qr},configurable:!0,enumerable:!0,set:function(qr){switch(qr){case"right":case 2:kn=2;break;case"center":case 1:kn=1;break;case"left":case 0:default:kn=0}}})};$(Ct,Ce);var mt=function(){Ct.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Re=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Re},set:function(et){Re=et}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Re},set:function(et){Re=et}});var Ue=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return je(Ue,this.objId,this.scope)},set:function(et){var $e,at;at=[],typeof($e=et)=="string"&&(at=function(wt,ft,cr){cr||(cr=1);for(var Jr,Qr=[];Jr=ft.exec(wt);)Qr.push(Jr[cr]);return Qr}($e,/\((.*?)\)/g)),Ue=at}}),this.getOptions=function(){return Ue},this.setOptions=function(Ye){Ue=Ye,this.sort&&Ue.sort()},this.addOption=function(Ye){Ye=(Ye=Ye||"").toString(),Ue.push(Ye),this.sort&&Ue.sort()},this.removeOption=function(Ye,et){for(et=et||!1,Ye=(Ye=Ye||"").toString();Ue.indexOf(Ye)!==-1&&(Ue.splice(Ue.indexOf(Ye),1),et!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,18))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,18):this.Ff=oe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,19))},set:function(et){this.combo===!0&&(Boolean(et)===!0?this.Ff=Ie(this.Ff,19):this.Ff=oe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,20))},set:function(et){Boolean(et)===!0?(this.Ff=Ie(this.Ff,20),Ue.sort()):this.Ff=oe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,22))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,22):this.Ff=oe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,23))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,23):this.Ff=oe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,27))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,27):this.Ff=oe(this.Ff,27)}}),this.hasAppearanceStream=!1};$(mt,Ct);var Ve=function(){mt.call(this),this.fontName="helvetica",this.combo=!1};$(Ve,mt);var or=function(){Ve.call(this),this.combo=!0};$(or,Ve);var dt=function(){or.call(this),this.edit=!0};$(dt,or);var Yt=function(){Ct.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,15))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,15):this.Ff=oe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,16))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,16):this.Ff=oe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,17))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,17):this.Ff=oe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,26))},set:function(et){Boolean(et)===!0?this.Ff=Ie(this.Ff,26):this.Ff=oe(this.Ff,26)}});var Re,Ue={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var et=function(ft){return ft};if(this.scope&&(et=this.scope.internal.getEncryptor(this.objId)),Object.keys(Ue).length!==0){var $e,at=[];for($e in at.push("<<"),Ue)at.push("/"+$e+" ("+G(et(Ue[$e]))+")");return at.push(">>"),at.join(`
`)}},set:function(et){x()(et)==="object"&&(Ue=et)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ue.CA||""},set:function(et){typeof et=="string"&&(Ue.CA=et)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Re},set:function(et){Re=et}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Re.substr(1,Re.length-1)},set:function(et){Re="/"+et}})};$(Yt,Ct);var hr=function(){Yt.call(this),this.pushButton=!0};$(hr,Yt);var Gt=function(){Yt.call(this),this.radio=!0,this.pushButton=!1;var Re=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Re},set:function(Ye){Re=Ye!==void 0?Ye:[]}})};$(Gt,Yt);var Pt=function(){var Re,Ue;Ct.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Re},set:function(at){Re=at}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Ue},set:function(at){Ue=at}});var Ye,et={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var at=function(Jr){return Jr};this.scope&&(at=this.scope.internal.getEncryptor(this.objId));var wt,ft=[];for(wt in ft.push("<<"),et)ft.push("/"+wt+" ("+G(at(et[wt]))+")");return ft.push(">>"),ft.join(`
`)},set:function(at){x()(at)==="object"&&(et=at)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return et.CA||""},set:function(at){typeof at=="string"&&(et.CA=at)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ye},set:function(at){Ye=at}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ye.substr(1,Ye.length-1)},set:function(at){Ye="/"+at}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=se.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};$(Pt,Ct),Gt.prototype.setAppearance=function(rt){if(!("createAppearanceStream"in rt)||!("getCA"in rt))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Re in this.Kids)if(this.Kids.hasOwnProperty(Re)){var Ue=this.Kids[Re];Ue.appearanceStreamContent=rt.createAppearanceStream(Ue.optionName),Ue.caption=rt.getCA()}},Gt.prototype.createOption=function(rt){var Re=new Pt;return Re.Parent=this,Re.optionName=rt,this.Kids.push(Re),lt.call(this.scope,Re),Re};var Xt=function(){Yt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=se.CheckBox.createAppearanceStream()};$(Xt,Yt);var Ge=function(){Ct.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,13))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Ie(this.Ff,13):this.Ff=oe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,21))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Ie(this.Ff,21):this.Ff=oe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,23))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Ie(this.Ff,23):this.Ff=oe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,24))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Ie(this.Ff,24):this.Ff=oe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,25))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Ie(this.Ff,25):this.Ff=oe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,26))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Ie(this.Ff,26):this.Ff=oe(this.Ff,26)}});var Re=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Re},set:function(Ye){Re=Ye}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Re},set:function(Ye){Number.isInteger(Ye)&&(Re=Ye)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};$(Ge,Ct);var pe=function(){Ge.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(nt(this.Ff,14))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Ie(this.Ff,14):this.Ff=oe(this.Ff,14)}}),this.password=!0};$(pe,Ge);var se={CheckBox:{createAppearanceStream:function(){return{N:{On:se.CheckBox.YesNormal},D:{On:se.CheckBox.YesPushDown,Off:se.CheckBox.OffPushDown}}},YesPushDown:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=[],et=Re.scope.internal.getFont(Re.fontName,Re.fontStyle).id,$e=Re.scope.__private__.encodeColorString(Re.color),at=J(Re,Re.caption);return Ye.push("0.749023 g"),Ye.push("0 0 "+ee(se.internal.getWidth(Re))+" "+ee(se.internal.getHeight(Re))+" re"),Ye.push("f"),Ye.push("BMC"),Ye.push("q"),Ye.push("0 0 1 rg"),Ye.push("/"+et+" "+ee(at.fontSize)+" Tf "+$e),Ye.push("BT"),Ye.push(at.text),Ye.push("ET"),Ye.push("Q"),Ye.push("EMC"),Ue.stream=Ye.join(`
`),Ue},YesNormal:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=Re.scope.internal.getFont(Re.fontName,Re.fontStyle).id,et=Re.scope.__private__.encodeColorString(Re.color),$e=[],at=se.internal.getHeight(Re),wt=se.internal.getWidth(Re),ft=J(Re,Re.caption);return $e.push("1 g"),$e.push("0 0 "+ee(wt)+" "+ee(at)+" re"),$e.push("f"),$e.push("q"),$e.push("0 0 1 rg"),$e.push("0 0 "+ee(wt-1)+" "+ee(at-1)+" re"),$e.push("W"),$e.push("n"),$e.push("0 g"),$e.push("BT"),$e.push("/"+Ye+" "+ee(ft.fontSize)+" Tf "+et),$e.push(ft.text),$e.push("ET"),$e.push("Q"),Ue.stream=$e.join(`
`),Ue},OffPushDown:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+ee(se.internal.getWidth(Re))+" "+ee(se.internal.getHeight(Re))+" re"),Ye.push("f"),Ue.stream=Ye.join(`
`),Ue}},RadioButton:{Circle:{createAppearanceStream:function(Re){var Ue={D:{Off:se.RadioButton.Circle.OffPushDown},N:{}};return Ue.N[Re]=se.RadioButton.Circle.YesNormal,Ue.D[Re]=se.RadioButton.Circle.YesPushDown,Ue},getCA:function(){return"l"},YesNormal:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=[],et=se.internal.getWidth(Re)<=se.internal.getHeight(Re)?se.internal.getWidth(Re)/4:se.internal.getHeight(Re)/4;et=Number((.9*et).toFixed(5));var $e=se.internal.Bezier_C,at=Number((et*$e).toFixed(5));return Ye.push("q"),Ye.push("1 0 0 1 "+ue(se.internal.getWidth(Re)/2)+" "+ue(se.internal.getHeight(Re)/2)+" cm"),Ye.push(et+" 0 m"),Ye.push(et+" "+at+" "+at+" "+et+" 0 "+et+" c"),Ye.push("-"+at+" "+et+" -"+et+" "+at+" -"+et+" 0 c"),Ye.push("-"+et+" -"+at+" -"+at+" -"+et+" 0 -"+et+" c"),Ye.push(at+" -"+et+" "+et+" -"+at+" "+et+" 0 c"),Ye.push("f"),Ye.push("Q"),Ue.stream=Ye.join(`
`),Ue},YesPushDown:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=[],et=se.internal.getWidth(Re)<=se.internal.getHeight(Re)?se.internal.getWidth(Re)/4:se.internal.getHeight(Re)/4;et=Number((.9*et).toFixed(5));var $e=Number((2*et).toFixed(5)),at=Number(($e*se.internal.Bezier_C).toFixed(5)),wt=Number((et*se.internal.Bezier_C).toFixed(5));return Ye.push("0.749023 g"),Ye.push("q"),Ye.push("1 0 0 1 "+ue(se.internal.getWidth(Re)/2)+" "+ue(se.internal.getHeight(Re)/2)+" cm"),Ye.push($e+" 0 m"),Ye.push($e+" "+at+" "+at+" "+$e+" 0 "+$e+" c"),Ye.push("-"+at+" "+$e+" -"+$e+" "+at+" -"+$e+" 0 c"),Ye.push("-"+$e+" -"+at+" -"+at+" -"+$e+" 0 -"+$e+" c"),Ye.push(at+" -"+$e+" "+$e+" -"+at+" "+$e+" 0 c"),Ye.push("f"),Ye.push("Q"),Ye.push("0 g"),Ye.push("q"),Ye.push("1 0 0 1 "+ue(se.internal.getWidth(Re)/2)+" "+ue(se.internal.getHeight(Re)/2)+" cm"),Ye.push(et+" 0 m"),Ye.push(et+" "+wt+" "+wt+" "+et+" 0 "+et+" c"),Ye.push("-"+wt+" "+et+" -"+et+" "+wt+" -"+et+" 0 c"),Ye.push("-"+et+" -"+wt+" -"+wt+" -"+et+" 0 -"+et+" c"),Ye.push(wt+" -"+et+" "+et+" -"+wt+" "+et+" 0 c"),Ye.push("f"),Ye.push("Q"),Ue.stream=Ye.join(`
`),Ue},OffPushDown:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=[],et=se.internal.getWidth(Re)<=se.internal.getHeight(Re)?se.internal.getWidth(Re)/4:se.internal.getHeight(Re)/4;et=Number((.9*et).toFixed(5));var $e=Number((2*et).toFixed(5)),at=Number(($e*se.internal.Bezier_C).toFixed(5));return Ye.push("0.749023 g"),Ye.push("q"),Ye.push("1 0 0 1 "+ue(se.internal.getWidth(Re)/2)+" "+ue(se.internal.getHeight(Re)/2)+" cm"),Ye.push($e+" 0 m"),Ye.push($e+" "+at+" "+at+" "+$e+" 0 "+$e+" c"),Ye.push("-"+at+" "+$e+" -"+$e+" "+at+" -"+$e+" 0 c"),Ye.push("-"+$e+" -"+at+" -"+at+" -"+$e+" 0 -"+$e+" c"),Ye.push(at+" -"+$e+" "+$e+" -"+at+" "+$e+" 0 c"),Ye.push("f"),Ye.push("Q"),Ue.stream=Ye.join(`
`),Ue}},Cross:{createAppearanceStream:function(Re){var Ue={D:{Off:se.RadioButton.Cross.OffPushDown},N:{}};return Ue.N[Re]=se.RadioButton.Cross.YesNormal,Ue.D[Re]=se.RadioButton.Cross.YesPushDown,Ue},getCA:function(){return"8"},YesNormal:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=[],et=se.internal.calculateCross(Re);return Ye.push("q"),Ye.push("1 1 "+ee(se.internal.getWidth(Re)-2)+" "+ee(se.internal.getHeight(Re)-2)+" re"),Ye.push("W"),Ye.push("n"),Ye.push(ee(et.x1.x)+" "+ee(et.x1.y)+" m"),Ye.push(ee(et.x2.x)+" "+ee(et.x2.y)+" l"),Ye.push(ee(et.x4.x)+" "+ee(et.x4.y)+" m"),Ye.push(ee(et.x3.x)+" "+ee(et.x3.y)+" l"),Ye.push("s"),Ye.push("Q"),Ue.stream=Ye.join(`
`),Ue},YesPushDown:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=se.internal.calculateCross(Re),et=[];return et.push("0.749023 g"),et.push("0 0 "+ee(se.internal.getWidth(Re))+" "+ee(se.internal.getHeight(Re))+" re"),et.push("f"),et.push("q"),et.push("1 1 "+ee(se.internal.getWidth(Re)-2)+" "+ee(se.internal.getHeight(Re)-2)+" re"),et.push("W"),et.push("n"),et.push(ee(Ye.x1.x)+" "+ee(Ye.x1.y)+" m"),et.push(ee(Ye.x2.x)+" "+ee(Ye.x2.y)+" l"),et.push(ee(Ye.x4.x)+" "+ee(Ye.x4.y)+" m"),et.push(ee(Ye.x3.x)+" "+ee(Ye.x3.y)+" l"),et.push("s"),et.push("Q"),Ue.stream=et.join(`
`),Ue},OffPushDown:function(Re){var Ue=_e(Re);Ue.scope=Re.scope;var Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+ee(se.internal.getWidth(Re))+" "+ee(se.internal.getHeight(Re))+" re"),Ye.push("f"),Ue.stream=Ye.join(`
`),Ue}}},createDefaultAppearanceStream:function(Re){var Ue=Re.scope.internal.getFont(Re.fontName,Re.fontStyle).id,Ye=Re.scope.__private__.encodeColorString(Re.color);return"/"+Ue+" "+Re.fontSize+" Tf "+Ye}};se.internal={Bezier_C:.551915024494,calculateCross:function(Re){var Ue=se.internal.getWidth(Re),Ye=se.internal.getHeight(Re),et=Math.min(Ue,Ye);return{x1:{x:(Ue-et)/2,y:(Ye-et)/2+et},x2:{x:(Ue-et)/2+et,y:(Ye-et)/2},x3:{x:(Ue-et)/2,y:(Ye-et)/2},x4:{x:(Ue-et)/2+et,y:(Ye-et)/2+et}}}},se.internal.getWidth=function(rt){var Re=0;return x()(rt)==="object"&&(Re=be(rt.Rect[2])),Re},se.internal.getHeight=function(rt){var Re=0;return x()(rt)==="object"&&(Re=be(rt.Rect[3])),Re};var lt=V.addField=function(rt){if(Ne(this,rt),!(rt instanceof Ct))throw new Error("Invalid argument passed to jsPDF.addField.");var Re;return(Re=rt).scope.internal.acroformPlugin.printedOut&&(Re.scope.internal.acroformPlugin.printedOut=!1,Re.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Re.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Re),rt.page=rt.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=mt,V.AcroFormListBox=Ve,V.AcroFormComboBox=or,V.AcroFormEditBox=dt,V.AcroFormButton=Yt,V.AcroFormPushButton=hr,V.AcroFormRadioButton=Gt,V.AcroFormCheckBox=Xt,V.AcroFormTextField=Ge,V.AcroFormPasswordField=pe,V.AcroFormAppearance=se,V.AcroForm={ChoiceField:mt,ListBox:Ve,ComboBox:or,EditBox:dt,Button:Yt,PushButton:hr,RadioButton:Gt,CheckBox:Xt,TextField:Ge,PasswordField:pe,Appearance:se},z.AcroForm={ChoiceField:mt,ListBox:Ve,ComboBox:or,EditBox:dt,Button:Yt,PushButton:hr,RadioButton:Gt,CheckBox:Xt,TextField:Ge,PasswordField:pe,Appearance:se};var Ze=z.AcroForm;function de(rt){return rt.reduce(function(Re,Ue,Ye){return Re[Ue]=Ye,Re},{})}!function(rt){rt.__addimage__={};var Re="UNKNOWN",Ue={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Ye=rt.__addimage__.getImageFileTypeByImageData=function(kt,Bt){var Kt,Ot,sr,fr,vr,Rr=Re;if((Bt=Bt||Re)==="RGBA"||kt.data!==void 0&&kt.data instanceof Uint8ClampedArray&&"height"in kt&&"width"in kt)return"RGBA";if(tn(kt))for(vr in Ue)for(sr=Ue[vr],Kt=0;Kt<sr.length;Kt+=1){for(fr=!0,Ot=0;Ot<sr[Kt].length;Ot+=1)if(sr[Kt][Ot]!==void 0&&sr[Kt][Ot]!==kt[Ot]){fr=!1;break}if(fr===!0){Rr=vr;break}}else for(vr in Ue)for(sr=Ue[vr],Kt=0;Kt<sr.length;Kt+=1){for(fr=!0,Ot=0;Ot<sr[Kt].length;Ot+=1)if(sr[Kt][Ot]!==void 0&&sr[Kt][Ot]!==kt.charCodeAt(Ot)){fr=!1;break}if(fr===!0){Rr=vr;break}}return Rr===Re&&Bt!==Re&&(Rr=Bt),Rr},et=function kt(Bt){for(var Kt=this.internal.write,Ot=this.internal.putStream,sr=(0,this.internal.getFilters)();sr.indexOf("FlateEncode")!==-1;)sr.splice(sr.indexOf("FlateEncode"),1);Bt.objectId=this.internal.newObject();var fr=[];if(fr.push({key:"Type",value:"/XObject"}),fr.push({key:"Subtype",value:"/Image"}),fr.push({key:"Width",value:Bt.width}),fr.push({key:"Height",value:Bt.height}),Bt.colorSpace===kn.INDEXED?fr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Bt.palette.length/3-1)+" "+("sMask"in Bt&&Bt.sMask!==void 0?Bt.objectId+2:Bt.objectId+1)+" 0 R]"}):(fr.push({key:"ColorSpace",value:"/"+Bt.colorSpace}),Bt.colorSpace===kn.DEVICE_CMYK&&fr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),fr.push({key:"BitsPerComponent",value:Bt.bitsPerComponent}),"decodeParameters"in Bt&&Bt.decodeParameters!==void 0&&fr.push({key:"DecodeParms",value:"<<"+Bt.decodeParameters+">>"}),"transparency"in Bt&&Array.isArray(Bt.transparency)){for(var vr="",Rr=0,Kn=Bt.transparency.length;Rr<Kn;Rr++)vr+=Bt.transparency[Rr]+" "+Bt.transparency[Rr]+" ";fr.push({key:"Mask",value:"["+vr+"]"})}Bt.sMask!==void 0&&fr.push({key:"SMask",value:Bt.objectId+1+" 0 R"});var Dn=Bt.filter!==void 0?["/"+Bt.filter]:void 0;if(Ot({data:Bt.data,additionalKeyValues:fr,alreadyAppliedFilters:Dn,objectId:Bt.objectId}),Kt("endobj"),"sMask"in Bt&&Bt.sMask!==void 0){var ui="/Predictor "+Bt.predictor+" /Colors 1 /BitsPerComponent "+Bt.bitsPerComponent+" /Columns "+Bt.width,pn={width:Bt.width,height:Bt.height,colorSpace:"DeviceGray",bitsPerComponent:Bt.bitsPerComponent,decodeParameters:ui,data:Bt.sMask};"filter"in Bt&&(pn.filter=Bt.filter),kt.call(this,pn)}if(Bt.colorSpace===kn.INDEXED){var Br=this.internal.newObject();Ot({data:Vn(new Uint8Array(Bt.palette)),objectId:Br}),Kt("endobj")}},$e=function(){var Bt=this.internal.collections.addImage_images;for(var Kt in Bt)et.call(this,Bt[Kt])},at=function(){var Bt,Kt=this.internal.collections.addImage_images,Ot=this.internal.write;for(var sr in Kt)Ot("/I"+(Bt=Kt[sr]).index,Bt.objectId,"0","R")},wt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",$e),this.internal.events.subscribe("putXobjectDict",at))},ft=function(){var Bt=this.internal.collections.addImage_images;return wt.call(this),Bt},cr=function(){return Object.keys(this.internal.collections.addImage_images).length},Jr=function(Bt){return typeof rt["process"+Bt.toUpperCase()]=="function"},Qr=function(Bt){return x()(Bt)==="object"&&Bt.nodeType===1},fn=function(Bt,Kt){if(Bt.nodeName==="IMG"&&Bt.hasAttribute("src")){var Ot=""+Bt.getAttribute("src");if(Ot.indexOf("data:image/")===0)return t(unescape(Ot).split("base64,").pop());var sr=rt.loadFile(Ot,!0);if(sr!==void 0)return sr}if(Bt.nodeName==="CANVAS"){if(Bt.width===0||Bt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Bt.width+", height: "+Bt.height);var fr;switch(Kt){case"PNG":fr="image/png";break;case"WEBP":fr="image/webp";break;case"JPEG":case"JPG":default:fr="image/jpeg"}return t(Bt.toDataURL(fr,1).split("base64,").pop())}},pr=function(Bt){var Kt=this.internal.collections.addImage_images;if(Kt){for(var Ot in Kt)if(Bt===Kt[Ot].alias)return Kt[Ot]}},Wn=function(Bt,Kt,Ot){return Bt||Kt||(Bt=-96,Kt=-96),Bt<0&&(Bt=-1*Ot.width*72/Bt/this.internal.scaleFactor),Kt<0&&(Kt=-1*Ot.height*72/Kt/this.internal.scaleFactor),Bt===0&&(Bt=Kt*Ot.width/Ot.height),Kt===0&&(Kt=Bt*Ot.height/Ot.width),[Bt,Kt]},kr=function(Bt,Kt,Ot,sr,fr,vr){var Rr=Wn.call(this,Ot,sr,fr),Kn=this.internal.getCoordinateString,Dn=this.internal.getVerticalCoordinateString,ui=ft.call(this);if(Ot=Rr[0],sr=Rr[1],ui[fr.index]=fr,vr){vr*=Math.PI/180;var pn=Math.cos(vr),Br=Math.sin(vr),Tn=function(ii){return ii.toFixed(4)},zn=[Tn(pn),Tn(Br),Tn(-1*Br),Tn(pn),0,0,"cm"]}this.internal.write("q"),vr?(this.internal.write([1,"0","0",1,Kn(Bt),Dn(Kt+sr),"cm"].join(" ")),this.internal.write(zn.join(" ")),this.internal.write([Kn(Ot),"0","0",Kn(sr),"0","0","cm"].join(" "))):this.internal.write([Kn(Ot),"0","0",Kn(sr),Kn(Bt),Dn(Kt+sr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+fr.index+" Do"),this.internal.write("Q")},kn=rt.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"};rt.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 bn=rt.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},qr=rt.__addimage__.sHashCode=function(kt){var Bt,Kt,Ot=0;if(typeof kt=="string")for(Kt=kt.length,Bt=0;Bt<Kt;Bt++)Ot=(Ot<<5)-Ot+kt.charCodeAt(Bt),Ot|=0;else if(tn(kt))for(Kt=kt.byteLength/2,Bt=0;Bt<Kt;Bt++)Ot=(Ot<<5)-Ot+kt[Bt],Ot|=0;return Ot},fi=rt.__addimage__.validateStringAsBase64=function(kt){(kt=kt||"").toString().trim();var Bt=!0;return kt.length===0&&(Bt=!1),kt.length%4!=0&&(Bt=!1),/^[A-Za-z0-9+/]+$/.test(kt.substr(0,kt.length-2))===!1&&(Bt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(kt.substr(-2))===!1&&(Bt=!1),Bt},Mi=rt.__addimage__.extractImageFromDataUrl=function(kt){var Bt=(kt=kt||"").split("base64,"),Kt=null;if(Bt.length===2){var Ot=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Bt[0]);Array.isArray(Ot)&&(Kt={mimeType:Ot[1],charset:Ot[2],data:Bt[1]})}return Kt},Zi=rt.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};rt.__addimage__.isArrayBuffer=function(kt){return Zi()&&kt instanceof ArrayBuffer};var tn=rt.__addimage__.isArrayBufferView=function(kt){return Zi()&&typeof Uint32Array!="undefined"&&(kt instanceof Int8Array||kt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&kt instanceof Uint8ClampedArray||kt instanceof Int16Array||kt instanceof Uint16Array||kt instanceof Int32Array||kt instanceof Uint32Array||kt instanceof Float32Array||kt instanceof Float64Array)},En=rt.__addimage__.binaryStringToUint8Array=function(kt){for(var Bt=kt.length,Kt=new Uint8Array(Bt),Ot=0;Ot<Bt;Ot++)Kt[Ot]=kt.charCodeAt(Ot);return Kt},Vn=rt.__addimage__.arrayBufferToBinaryString=function(kt){for(var Bt="",Kt=tn(kt)?kt:new Uint8Array(kt),Ot=0;Ot<Kt.length;Ot+=8192)Bt+=String.fromCharCode.apply(null,Kt.subarray(Ot,Ot+8192));return Bt};rt.addImage=function(){var kt,Bt,Kt,Ot,sr,fr,vr,Rr,Kn;if(typeof arguments[1]=="number"?(Bt=Re,Kt=arguments[1],Ot=arguments[2],sr=arguments[3],fr=arguments[4],vr=arguments[5],Rr=arguments[6],Kn=arguments[7]):(Bt=arguments[1],Kt=arguments[2],Ot=arguments[3],sr=arguments[4],fr=arguments[5],vr=arguments[6],Rr=arguments[7],Kn=arguments[8]),x()(kt=arguments[0])==="object"&&!Qr(kt)&&"imageData"in kt){var Dn=kt;kt=Dn.imageData,Bt=Dn.format||Bt||Re,Kt=Dn.x||Kt||0,Ot=Dn.y||Ot||0,sr=Dn.w||Dn.width||sr,fr=Dn.h||Dn.height||fr,vr=Dn.alias||vr,Rr=Dn.compression||Rr,Kn=Dn.rotation||Dn.angle||Kn}var ui=this.internal.getFilters();if(Rr===void 0&&ui.indexOf("FlateEncode")!==-1&&(Rr="SLOW"),isNaN(Kt)||isNaN(Ot))throw new Error("Invalid coordinates passed to jsPDF.addImage");wt.call(this);var pn=Wt.call(this,kt,Bt,vr,Rr);return kr.call(this,Kt,Ot,sr,fr,pn,Kn),this};var Wt=function(Bt,Kt,Ot,sr){var fr,vr,Rr;if(typeof Bt=="string"&&Ye(Bt)===Re){Bt=unescape(Bt);var Kn=Et(Bt,!1);(Kn!==""||(Kn=rt.loadFile(Bt,!0))!==void 0)&&(Bt=Kn)}if(Qr(Bt)&&(Bt=fn(Bt,Kt)),Kt=Ye(Bt,Kt),!Jr(Kt))throw new Error("addImage does not support files of type '"+Kt+"', please ensure that a plugin for '"+Kt+"' support is added.");if(((Rr=Ot)==null||Rr.length===0)&&(Ot=function(Dn){return typeof Dn=="string"||tn(Dn)?qr(Dn):tn(Dn.data)?qr(Dn.data):null}(Bt)),(fr=pr.call(this,Ot))||(Zi()&&(Bt instanceof Uint8Array||Kt==="RGBA"||(vr=Bt,Bt=En(Bt))),fr=this["process"+Kt.toUpperCase()](Bt,cr.call(this),Ot,function(Dn){return Dn&&typeof Dn=="string"&&(Dn=Dn.toUpperCase()),Dn in rt.image_compression?Dn:bn.NONE}(sr),vr)),!fr)throw new Error("An unknown error occurred whilst processing the image.");return fr},Et=rt.__addimage__.convertBase64ToBinaryString=function(kt,Bt){var Kt;Bt=typeof Bt!="boolean"||Bt;var Ot,sr="";if(typeof kt=="string"){Ot=(Kt=Mi(kt))!==null?Kt.data:kt;try{sr=t(Ot)}catch(fr){if(Bt)throw fi(Ot)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+fr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return sr};rt.getImageProperties=function(kt){var Bt,Kt,Ot="";if(Qr(kt)&&(kt=fn(kt)),typeof kt=="string"&&Ye(kt)===Re&&((Ot=Et(kt,!1))===""&&(Ot=rt.loadFile(kt)||""),kt=Ot),Kt=Ye(kt),!Jr(Kt))throw new Error("addImage does not support files of type '"+Kt+"', please ensure that a plugin for '"+Kt+"' support is added.");if(!Zi()||kt instanceof Uint8Array||(kt=En(kt)),!(Bt=this["process"+Kt.toUpperCase()](kt)))throw new Error("An unknown error occurred whilst processing the image");return Bt.fileType=Kt,Bt}}(z.API),function(rt){var Re=function(Ye){if(Ye!==void 0&&Ye!="")return!0};z.API.events.push(["addPage",function(Ue){this.internal.getPageInfo(Ue.pageNumber).pageContext.annotations=[]}]),rt.events.push(["putPage",function(Ue){for(var Ye,et,$e,at=this.internal.getCoordinateString,wt=this.internal.getVerticalCoordinateString,ft=this.internal.getPageInfoByObjId(Ue.objId),cr=Ue.pageContext.annotations,Jr=!1,Qr=0;Qr<cr.length&&!Jr;Qr++)switch((Ye=cr[Qr]).type){case"link":(Re(Ye.options.url)||Re(Ye.options.pageNumber))&&(Jr=!0);break;case"reference":case"text":case"freetext":Jr=!0}if(Jr!=0){this.internal.write("/Annots [");for(var fn=0;fn<cr.length;fn++){Ye=cr[fn];var pr=this.internal.pdfEscape,Wn=this.internal.getEncryptor(Ue.objId);switch(Ye.type){case"reference":this.internal.write(" "+Ye.object.objId+" 0 R ");break;case"text":var kr=this.internal.newAdditionalObject(),kn=this.internal.newAdditionalObject(),bn=this.internal.getEncryptor(kr.objId),qr=Ye.title||"Note";$e="<</Type /Annot /Subtype /Text "+(et="/Rect ["+at(Ye.bounds.x)+" "+wt(Ye.bounds.y+Ye.bounds.h)+" "+at(Ye.bounds.x+Ye.bounds.w)+" "+wt(Ye.bounds.y)+"] ")+"/Contents ("+pr(bn(Ye.contents))+")",$e+=" /Popup "+kn.objId+" 0 R",$e+=" /P "+ft.objId+" 0 R",$e+=" /T ("+pr(bn(qr))+") >>",kr.content=$e;var fi=kr.objId+" 0 R";$e="<</Type /Annot /Subtype /Popup "+(et="/Rect ["+at(Ye.bounds.x+30)+" "+wt(Ye.bounds.y+Ye.bounds.h)+" "+at(Ye.bounds.x+Ye.bounds.w+30)+" "+wt(Ye.bounds.y)+"] ")+" /Parent "+fi,Ye.open&&($e+=" /Open true"),$e+=" >>",kn.content=$e,this.internal.write(kr.objId,"0 R",kn.objId,"0 R");break;case"freetext":et="/Rect ["+at(Ye.bounds.x)+" "+wt(Ye.bounds.y)+" "+at(Ye.bounds.x+Ye.bounds.w)+" "+wt(Ye.bounds.y+Ye.bounds.h)+"] ";var Mi=Ye.color||"#000000";$e="<</Type /Annot /Subtype /FreeText "+et+"/Contents ("+pr(Wn(Ye.contents))+")",$e+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Mi+")",$e+=" /Border [0 0 0]",$e+=" >>",this.internal.write($e);break;case"link":if(Ye.options.name){var Zi=this.annotations._nameMap[Ye.options.name];Ye.options.pageNumber=Zi.page,Ye.options.top=Zi.y}else Ye.options.top||(Ye.options.top=0);if(et="/Rect ["+Ye.finalBounds.x+" "+Ye.finalBounds.y+" "+Ye.finalBounds.w+" "+Ye.finalBounds.h+"] ",$e="",Ye.options.url)$e="<</Type /Annot /Subtype /Link "+et+"/Border [0 0 0] /A <</S /URI /URI ("+pr(Wn(Ye.options.url))+") >>";else if(Ye.options.pageNumber)switch($e="<</Type /Annot /Subtype /Link "+et+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ye.options.pageNumber).objId+" 0 R",Ye.options.magFactor=Ye.options.magFactor||"XYZ",Ye.options.magFactor){case"Fit":$e+=" /Fit]";break;case"FitH":$e+=" /FitH "+Ye.options.top+"]";break;case"FitV":Ye.options.left=Ye.options.left||0,$e+=" /FitV "+Ye.options.left+"]";break;case"XYZ":default:var tn=wt(Ye.options.top);Ye.options.left=Ye.options.left||0,Ye.options.zoom===void 0&&(Ye.options.zoom=0),$e+=" /XYZ "+Ye.options.left+" "+tn+" "+Ye.options.zoom+"]"}$e!=""&&($e+=" >>",this.internal.write($e))}}this.internal.write("]")}}]),rt.createAnnotation=function(Ue){var Ye=this.internal.getCurrentPageInfo();switch(Ue.type){case"link":this.link(Ue.bounds.x,Ue.bounds.y,Ue.bounds.w,Ue.bounds.h,Ue);break;case"text":case"freetext":Ye.pageContext.annotations.push(Ue)}},rt.link=function(Ue,Ye,et,$e,at){var wt=this.internal.getCurrentPageInfo(),ft=this.internal.getCoordinateString,cr=this.internal.getVerticalCoordinateString;wt.pageContext.annotations.push({finalBounds:{x:ft(Ue),y:cr(Ye),w:ft(Ue+et),h:cr(Ye+$e)},options:at,type:"link"})},rt.textWithLink=function(Ue,Ye,et,$e){var at,wt,ft=this.getTextWidth(Ue),cr=this.internal.getLineHeight()/this.internal.scaleFactor;if($e.maxWidth!==void 0){wt=$e.maxWidth;var Jr=this.splitTextToSize(Ue,wt).length;at=Math.ceil(cr*Jr)}else wt=ft,at=cr;return this.text(Ue,Ye,et,$e),et+=.2*cr,$e.align==="center"&&(Ye-=ft/2),$e.align==="right"&&(Ye-=ft),this.link(Ye,et-cr,wt,at,$e),ft},rt.getTextWidth=function(Ue){var Ye=this.internal.getFontSize();return this.getStringUnitWidth(Ue)*Ye/this.internal.scaleFactor}}(z.API),function(rt){var Re={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]},Ue={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Ye={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},et=[1570,1571,1573,1575];rt.__arabicParser__={};var $e=rt.__arabicParser__.isInArabicSubstitutionA=function(kr){return Re[kr.charCodeAt(0)]!==void 0},at=rt.__arabicParser__.isArabicLetter=function(kr){return typeof kr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(kr)},wt=rt.__arabicParser__.isArabicEndLetter=function(kr){return at(kr)&&$e(kr)&&Re[kr.charCodeAt(0)].length<=2},ft=rt.__arabicParser__.isArabicAlfLetter=function(kr){return at(kr)&&et.indexOf(kr.charCodeAt(0))>=0};rt.__arabicParser__.arabicLetterHasIsolatedForm=function(kr){return at(kr)&&$e(kr)&&Re[kr.charCodeAt(0)].length>=1};var cr=rt.__arabicParser__.arabicLetterHasFinalForm=function(kr){return at(kr)&&$e(kr)&&Re[kr.charCodeAt(0)].length>=2};rt.__arabicParser__.arabicLetterHasInitialForm=function(kr){return at(kr)&&$e(kr)&&Re[kr.charCodeAt(0)].length>=3};var Jr=rt.__arabicParser__.arabicLetterHasMedialForm=function(kr){return at(kr)&&$e(kr)&&Re[kr.charCodeAt(0)].length==4},Qr=rt.__arabicParser__.resolveLigatures=function(kr){var kn=0,bn=Ue,qr="",fi=0;for(kn=0;kn<kr.length;kn+=1)bn[kr.charCodeAt(kn)]!==void 0?(fi++,typeof(bn=bn[kr.charCodeAt(kn)])=="number"&&(qr+=String.fromCharCode(bn),bn=Ue,fi=0),kn===kr.length-1&&(bn=Ue,qr+=kr.charAt(kn-(fi-1)),kn-=fi-1,fi=0)):(bn=Ue,qr+=kr.charAt(kn-fi),kn-=fi,fi=0);return qr};rt.__arabicParser__.isArabicDiacritic=function(kr){return kr!==void 0&&Ye[kr.charCodeAt(0)]!==void 0};var fn=rt.__arabicParser__.getCorrectForm=function(kr,kn,bn){return at(kr)?$e(kr)===!1?-1:!cr(kr)||!at(kn)&&!at(bn)||!at(bn)&&wt(kn)||wt(kr)&&!at(kn)||wt(kr)&&ft(kn)||wt(kr)&&wt(kn)?0:Jr(kr)&&at(kn)&&!wt(kn)&&at(bn)&&cr(bn)?3:wt(kr)||!at(bn)?1:2:-1},pr=function(kn){var bn=0,qr=0,fi=0,Mi="",Zi="",tn="",En=(kn=kn||"").split("\\s+"),Vn=[];for(bn=0;bn<En.length;bn+=1){for(Vn.push(""),qr=0;qr<En[bn].length;qr+=1)Mi=En[bn][qr],Zi=En[bn][qr-1],tn=En[bn][qr+1],at(Mi)?(fi=fn(Mi,Zi,tn),Vn[bn]+=fi!==-1?String.fromCharCode(Re[Mi.charCodeAt(0)][fi]):Mi):Vn[bn]+=Mi;Vn[bn]=Qr(Vn[bn])}return Vn.join(" ")},Wn=rt.__arabicParser__.processArabic=rt.processArabic=function(){var kr,kn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,bn=[];if(Array.isArray(kn)){var qr=0;for(bn=[],qr=0;qr<kn.length;qr+=1)Array.isArray(kn[qr])?bn.push([pr(kn[qr][0]),kn[qr][1],kn[qr][2]]):bn.push([pr(kn[qr])]);kr=bn}else kr=pr(kn);return typeof arguments[0]=="string"?kr:(arguments[0].text=kr,arguments[0])};rt.events.push(["preProcessText",Wn])}(z.API),z.API.autoPrint=function(rt){var Re;switch((rt=rt||{}).variant=rt.variant||"non-conform",rt.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Re=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 "+Re+" 0 R")})}return this},function(rt){var Re=function(){var Ye=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ye},set:function(cr){Ye=cr}});var et=150;Object.defineProperty(this,"width",{get:function(){return et},set:function(cr){et=isNaN(cr)||Number.isInteger(cr)===!1||cr<0?150:cr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=et+1)}});var $e=300;Object.defineProperty(this,"height",{get:function(){return $e},set:function(cr){$e=isNaN(cr)||Number.isInteger(cr)===!1||cr<0?300:cr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=$e+1)}});var at=[];Object.defineProperty(this,"childNodes",{get:function(){return at},set:function(cr){at=cr}});var wt={};Object.defineProperty(this,"style",{get:function(){return wt},set:function(cr){wt=cr}}),Object.defineProperty(this,"parentNode",{})};Re.prototype.getContext=function(Ue,Ye){var et;if((Ue=Ue||"2d")!=="2d")return null;for(et in Ye)this.pdf.context2d.hasOwnProperty(et)&&(this.pdf.context2d[et]=Ye[et]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Re.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},rt.events.push(["initialized",function(){this.canvas=new Re,this.canvas.pdf=this}])}(z.API),function(rt){var Re={left:0,top:0,bottom:0,right:0},Ue=!1,Ye=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},Re),this.internal.__cell__.margins.width=this.getPageWidth(),et.call(this))},et=function(){this.internal.__cell__.lastCell=new $e,this.internal.__cell__.pages=1},$e=function(){var cr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return cr},set:function(bn){cr=bn}});var Jr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Jr},set:function(bn){Jr=bn}});var Qr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Qr},set:function(bn){Qr=bn}});var fn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return fn},set:function(bn){fn=bn}});var pr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return pr},set:function(bn){pr=bn}});var Wn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Wn},set:function(bn){Wn=bn}});var kr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return kr},set:function(bn){kr=bn}}),this};$e.prototype.clone=function(){return new $e(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},$e.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},rt.setHeaderFunction=function(ft){return Ye.call(this),this.internal.__cell__.headerFunction=typeof ft=="function"?ft:void 0,this},rt.getTextDimensions=function(ft,cr){Ye.call(this);var Jr=(cr=cr||{}).fontSize||this.getFontSize(),Qr=cr.font||this.getFont(),fn=cr.scaleFactor||this.internal.scaleFactor,pr=0,Wn=0,kr=0,kn=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 bn=cr.maxWidth;bn>0?typeof ft=="string"?ft=this.splitTextToSize(ft,bn):Object.prototype.toString.call(ft)==="[object Array]"&&(ft=ft.reduce(function(fi,Mi){return fi.concat(kn.splitTextToSize(Mi,bn))},[])):ft=Array.isArray(ft)?ft:[ft];for(var qr=0;qr<ft.length;qr++)pr<(kr=this.getStringUnitWidth(ft[qr],{font:Qr})*Jr)&&(pr=kr);return pr!==0&&(Wn=ft.length),{w:pr/=fn,h:Math.max((Wn*Jr*this.getLineHeightFactor()-Jr*(this.getLineHeightFactor()-1))/fn,0)}},rt.cellAddPage=function(){Ye.call(this),this.addPage();var ft=this.internal.__cell__.margins||Re;return this.internal.__cell__.lastCell=new $e(ft.left,ft.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var at=rt.cell=function(){var ft;ft=arguments[0]instanceof $e?arguments[0]:new $e(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ye.call(this);var cr=this.internal.__cell__.lastCell,Jr=this.internal.__cell__.padding,Qr=this.internal.__cell__.margins||Re,fn=this.internal.__cell__.tableHeaderRow,pr=this.internal.__cell__.printHeaders;return cr.lineNumber!==void 0&&(cr.lineNumber===ft.lineNumber?(ft.x=(cr.x||0)+(cr.width||0),ft.y=cr.y||0):cr.y+cr.height+ft.height+Qr.bottom>this.getPageHeight()?(this.cellAddPage(),ft.y=Qr.top,pr&&fn&&(this.printHeaderRow(ft.lineNumber,!0),ft.y+=fn[0].height)):ft.y=cr.y+cr.height||ft.y),ft.text[0]!==void 0&&(this.rect(ft.x,ft.y,ft.width,ft.height,Ue===!0?"FD":void 0),ft.align==="right"?this.text(ft.text,ft.x+ft.width-Jr,ft.y+Jr,{align:"right",baseline:"top"}):ft.align==="center"?this.text(ft.text,ft.x+ft.width/2,ft.y+Jr,{align:"center",baseline:"top",maxWidth:ft.width-Jr-Jr}):this.text(ft.text,ft.x+Jr,ft.y+Jr,{align:"left",baseline:"top",maxWidth:ft.width-Jr-Jr})),this.internal.__cell__.lastCell=ft,this};rt.table=function(ft,cr,Jr,Qr,fn){if(Ye.call(this),!Jr)throw new Error("No data for PDF table.");var pr,Wn,kr,kn,bn=[],qr=[],fi=[],Mi={},Zi={},tn=[],En=[],Vn=(fn=fn||{}).autoSize||!1,Wt=fn.printHeaders!==!1,Et=fn.css&&fn.css["font-size"]!==void 0?16*fn.css["font-size"]:fn.fontSize||12,kt=fn.margins||Object.assign({width:this.getPageWidth()},Re),Bt=typeof fn.padding=="number"?fn.padding:3,Kt=fn.headerBackgroundColor||"#c8c8c8",Ot=fn.headerTextColor||"#000";if(et.call(this),this.internal.__cell__.printHeaders=Wt,this.internal.__cell__.margins=kt,this.internal.__cell__.table_font_size=Et,this.internal.__cell__.padding=Bt,this.internal.__cell__.headerBackgroundColor=Kt,this.internal.__cell__.headerTextColor=Ot,this.setFontSize(Et),Qr==null)qr=bn=Object.keys(Jr[0]),fi=bn.map(function(){return"left"});else if(Array.isArray(Qr)&&x()(Qr[0])==="object")for(bn=Qr.map(function(Dn){return Dn.name}),qr=Qr.map(function(Dn){return Dn.prompt||Dn.name||""}),fi=Qr.map(function(Dn){return Dn.align||"left"}),pr=0;pr<Qr.length;pr+=1)Zi[Qr[pr].name]=Qr[pr].width*(19.049976/25.4);else Array.isArray(Qr)&&typeof Qr[0]=="string"&&(qr=bn=Qr,fi=bn.map(function(){return"left"}));if(Vn||Array.isArray(Qr)&&typeof Qr[0]=="string")for(pr=0;pr<bn.length;pr+=1){for(Mi[kn=bn[pr]]=Jr.map(function(Dn){return Dn[kn]}),this.setFont(void 0,"bold"),tn.push(this.getTextDimensions(qr[pr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Wn=Mi[kn],this.setFont(void 0,"normal"),kr=0;kr<Wn.length;kr+=1)tn.push(this.getTextDimensions(Wn[kr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Zi[kn]=Math.max.apply(null,tn)+Bt+Bt,tn=[]}if(Wt){var sr={};for(pr=0;pr<bn.length;pr+=1)sr[bn[pr]]={},sr[bn[pr]].text=qr[pr],sr[bn[pr]].align=fi[pr];var fr=wt.call(this,sr,Zi);En=bn.map(function(Dn){return new $e(ft,cr,Zi[Dn],fr,sr[Dn].text,void 0,sr[Dn].align)}),this.setTableHeaderRow(En),this.printHeaderRow(1,!1)}var vr=Qr.reduce(function(Dn,ui){return Dn[ui.name]=ui.align,Dn},{});for(pr=0;pr<Jr.length;pr+=1){"rowStart"in fn&&fn.rowStart instanceof Function&&fn.rowStart({row:pr,data:Jr[pr]},this);var Rr=wt.call(this,Jr[pr],Zi);for(kr=0;kr<bn.length;kr+=1){var Kn=Jr[pr][bn[kr]];"cellStart"in fn&&fn.cellStart instanceof Function&&fn.cellStart({row:pr,col:kr,data:Kn},this),at.call(this,new $e(ft,cr,Zi[bn[kr]],Rr,Kn,pr+2,vr[bn[kr]]))}}return this.internal.__cell__.table_x=ft,this.internal.__cell__.table_y=cr,this};var wt=function(cr,Jr){var Qr=this.internal.__cell__.padding,fn=this.internal.__cell__.table_font_size,pr=this.internal.scaleFactor;return Object.keys(cr).map(function(Wn){var kr=cr[Wn];return this.splitTextToSize(kr.hasOwnProperty("text")?kr.text:kr,Jr[Wn]-Qr-Qr)},this).map(function(Wn){return this.getLineHeightFactor()*Wn.length*fn/pr+Qr+Qr},this).reduce(function(Wn,kr){return Math.max(Wn,kr)},0)};rt.setTableHeaderRow=function(ft){Ye.call(this),this.internal.__cell__.tableHeaderRow=ft},rt.printHeaderRow=function(ft,cr){if(Ye.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Jr;if(Ue=!0,typeof this.internal.__cell__.headerFunction=="function"){var Qr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new $e(Qr[0],Qr[1],Qr[2],Qr[3],void 0,-1)}this.setFont(void 0,"bold");for(var fn=[],pr=0;pr<this.internal.__cell__.tableHeaderRow.length;pr+=1){Jr=this.internal.__cell__.tableHeaderRow[pr].clone(),cr&&(Jr.y=this.internal.__cell__.margins.top||0,fn.push(Jr)),Jr.lineNumber=ft;var Wn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),at.call(this,Jr),this.setTextColor(Wn)}fn.length>0&&this.setTableHeaderRow(fn),this.setFont(void 0,"normal"),Ue=!1}}(z.API);var _t={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},er=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],yt=de(er),Ar=[100,200,300,400,500,600,700,800,900],Sr=de(Ar);function Cn(rt){var Re=rt.family.replace(/"|'/g,"").toLowerCase(),Ue=function($e){return _t[$e=$e||"normal"]?$e:"normal"}(rt.style),Ye=function($e){if(!$e)return 400;if(typeof $e=="number")return $e>=100&&$e<=900&&$e%100==0?$e:400;if(/^\d00$/.test($e))return parseInt($e);switch($e){case"bold":return 700;case"normal":default:return 400}}(rt.weight),et=function($e){return typeof yt[$e=$e||"normal"]=="number"?$e:"normal"}(rt.stretch);return{family:Re,style:Ue,weight:Ye,stretch:et,src:rt.src||[],ref:rt.ref||{name:Re,style:[et,Ue,Ye].join(" ")}}}function mr(rt,Re,Ue,Ye){var et;for(et=Ue;et>=0&&et<Re.length;et+=Ye)if(rt[Re[et]])return rt[Re[et]];for(et=Ue;et>=0&&et<Re.length;et-=Ye)if(rt[Re[et]])return rt[Re[et]]}var Pr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},gr={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Jt(rt){return[rt.stretch,rt.style,rt.weight,rt.family].join(" ")}function Dt(rt,Re,Ue){for(var Ye=(Ue=Ue||{}).defaultFontFamily||"times",et=Object.assign({},Pr,Ue.genericFontFamilies||{}),$e=null,at=null,wt=0;wt<Re.length;++wt)if(et[($e=Cn(Re[wt])).family]&&($e.family=et[$e.family]),rt.hasOwnProperty($e.family)){at=rt[$e.family];break}if(!(at=at||rt[Ye]))throw new Error("Could not find a font-family for the rule '"+Jt($e)+"' and default family '"+Ye+"'.");if(at=function(ft,cr){if(cr[ft])return cr[ft];var Jr=yt[ft],Qr=Jr<=yt.normal?-1:1,fn=mr(cr,er,Jr,Qr);if(!fn)throw new Error("Could not find a matching font-stretch value for "+ft);return fn}($e.stretch,at),at=function(ft,cr){if(cr[ft])return cr[ft];for(var Jr=_t[ft],Qr=0;Qr<Jr.length;++Qr)if(cr[Jr[Qr]])return cr[Jr[Qr]];throw new Error("Could not find a matching font-style for "+ft)}($e.style,at),!(at=function(ft,cr){if(cr[ft])return cr[ft];if(ft===400&&cr[500])return cr[500];if(ft===500&&cr[400])return cr[400];var Jr=Sr[ft],Qr=mr(cr,Ar,Jr,ft<400?-1:1);if(!Qr)throw new Error("Could not find a matching font-weight for value "+ft);return Qr}($e.weight,at)))throw new Error("Failed to resolve a font for the rule '"+Jt($e)+"'.");return at}function dn(rt){return rt.trimLeft()}function Fn(rt,Re){for(var Ue=0;Ue<rt.length;){if(rt.charAt(Ue)===Re)return[rt.substring(0,Ue),rt.substring(Ue+1)];Ue+=1}return null}function Zn(rt){var Re=rt.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Re===null?null:[Re[0],rt.substring(Re[0].length)]}var ci,Xi,Gn,ei=["times"];!function(rt){var Re,Ue,Ye,et,$e,at,wt,ft,cr,Jr=function(Br){return Br=Br||{},this.isStrokeTransparent=Br.isStrokeTransparent||!1,this.strokeOpacity=Br.strokeOpacity||1,this.strokeStyle=Br.strokeStyle||"#000000",this.fillStyle=Br.fillStyle||"#000000",this.isFillTransparent=Br.isFillTransparent||!1,this.fillOpacity=Br.fillOpacity||1,this.font=Br.font||"10px sans-serif",this.textBaseline=Br.textBaseline||"alphabetic",this.textAlign=Br.textAlign||"left",this.lineWidth=Br.lineWidth||1,this.lineJoin=Br.lineJoin||"miter",this.lineCap=Br.lineCap||"butt",this.path=Br.path||[],this.transform=Br.transform!==void 0?Br.transform.clone():new ft,this.globalCompositeOperation=Br.globalCompositeOperation||"normal",this.globalAlpha=Br.globalAlpha||1,this.clip_path=Br.clip_path||[],this.currentPoint=Br.currentPoint||new at,this.miterLimit=Br.miterLimit||10,this.lastPoint=Br.lastPoint||new at,this.lineDashOffset=Br.lineDashOffset||0,this.lineDash=Br.lineDash||[],this.margin=Br.margin||[0,0,0,0],this.prevPageLastElemOffset=Br.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Br.ignoreClearRect!="boolean"||Br.ignoreClearRect,this};rt.events.push(["initialized",function(){this.context2d=new Qr(this),Re=this.internal.f2,Ue=this.internal.getCoordinateString,Ye=this.internal.getVerticalCoordinateString,et=this.internal.getHorizontalCoordinate,$e=this.internal.getVerticalCoordinate,at=this.internal.Point,wt=this.internal.Rectangle,ft=this.internal.Matrix,cr=new Jr}]);var Qr=function(Br){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Tn=Br;Object.defineProperty(this,"pdf",{get:function(){return Tn}});var zn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return zn},set:function(Fi){zn=Boolean(Fi)}});var Qn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Qn},set:function(Fi){Qn=Boolean(Fi)}});var ii=0;Object.defineProperty(this,"posX",{get:function(){return ii},set:function(Fi){isNaN(Fi)||(ii=Fi)}});var xi=0;Object.defineProperty(this,"posY",{get:function(){return xi},set:function(Fi){isNaN(Fi)||(xi=Fi)}}),Object.defineProperty(this,"margin",{get:function(){return cr.margin},set:function(Fi){var ha;typeof Fi=="number"?ha=[Fi,Fi,Fi,Fi]:((ha=new Array(4))[0]=Fi[0],ha[1]=Fi.length>=2?Fi[1]:ha[0],ha[2]=Fi.length>=3?Fi[2]:ha[0],ha[3]=Fi.length>=4?Fi[3]:ha[1]),cr.margin=ha}});var Di=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Di},set:function(Fi){Di=Fi}});var Li=0;Object.defineProperty(this,"lastBreak",{get:function(){return Li},set:function(Fi){Li=Fi}});var oa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oa},set:function(Fi){oa=Fi}}),Object.defineProperty(this,"ctx",{get:function(){return cr},set:function(Fi){Fi instanceof Jr&&(cr=Fi)}}),Object.defineProperty(this,"path",{get:function(){return cr.path},set:function(Fi){cr.path=Fi}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(Fi){ma=Fi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Fi){var ha;ha=fn(Fi),this.ctx.fillStyle=ha.style,this.ctx.isFillTransparent=ha.a===0,this.ctx.fillOpacity=ha.a,this.pdf.setFillColor(ha.r,ha.g,ha.b,{a:ha.a}),this.pdf.setTextColor(ha.r,ha.g,ha.b,{a:ha.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Fi){var ha=fn(Fi);this.ctx.strokeStyle=ha.style,this.ctx.isStrokeTransparent=ha.a===0,this.ctx.strokeOpacity=ha.a,ha.a===0?this.pdf.setDrawColor(255,255,255):(ha.a,this.pdf.setDrawColor(ha.r,ha.g,ha.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Fi){["butt","round","square"].indexOf(Fi)!==-1&&(this.ctx.lineCap=Fi,this.pdf.setLineCap(Fi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Fi){isNaN(Fi)||(this.ctx.lineWidth=Fi,this.pdf.setLineWidth(Fi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Fi){["bevel","round","miter"].indexOf(Fi)!==-1&&(this.ctx.lineJoin=Fi,this.pdf.setLineJoin(Fi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Fi){isNaN(Fi)||(this.ctx.miterLimit=Fi,this.pdf.setMiterLimit(Fi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Fi){this.ctx.textBaseline=Fi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Fi){["right","end","center","left","start"].indexOf(Fi)!==-1&&(this.ctx.textAlign=Fi)}});var ia=null;function ba(Ln,Fi){if(ia===null){var ha=function(ea){var aa=[];return Object.keys(ea).forEach(function(Ir){ea[Ir].forEach(function(wr){var xn=null;switch(wr){case"bold":xn={family:Ir,weight:"bold"};break;case"italic":xn={family:Ir,style:"italic"};break;case"bolditalic":xn={family:Ir,weight:"bold",style:"italic"};break;case"":case"normal":xn={family:Ir}}xn!==null&&(xn.ref={name:Ir,style:wr},aa.push(xn))})}),aa}(Ln.getFontList());ia=function(ea){for(var aa={},Ir=0;Ir<ea.length;++Ir){var wr=Cn(ea[Ir]),xn=wr.family,ur=wr.stretch,Dr=wr.style,Vr=wr.weight;aa[xn]=aa[xn]||{},aa[xn][ur]=aa[xn][ur]||{},aa[xn][ur][Dr]=aa[xn][ur][Dr]||{},aa[xn][ur][Dr][Vr]=wr}return aa}(ha.concat(Fi))}return ia}var vi=null;Object.defineProperty(this,"fontFaces",{get:function(){return vi},set:function(Fi){ia=null,vi=Fi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Fi){var ha;if(this.ctx.font=Fi,(ha=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Fi))!==null){var ea=ha[1],aa=(ha[2],ha[3]),Ir=ha[4],wr=(ha[5],ha[6]),xn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ir)[2];Ir=xn==="px"?Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor):xn==="em"?Math.floor(parseFloat(Ir)*this.pdf.getFontSize()):Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ir);var ur=function(Or){var en,wn,_n=[],yn=Or.trim();if(yn==="")return ei;if(yn in gr)return[gr[yn]];for(;yn!=="";){switch(wn=null,en=(yn=dn(yn)).charAt(0)){case'"':case"'":wn=Fn(yn.substring(1),en);break;default:wn=Zn(yn)}if(wn===null)return ei;if(_n.push(wn[0]),(yn=dn(wn[1]))!==""&&yn.charAt(0)!==",")return ei;yn=yn.replace(/^,/,"")}return _n}(wr);if(this.fontFaces){var Dr=Dt(ba(this.pdf,this.fontFaces),ur.map(function(Or){return{family:Or,stretch:"normal",weight:aa,style:ea}}));this.pdf.setFont(Dr.ref.name,Dr.ref.style)}else{var Vr="";(aa==="bold"||parseInt(aa,10)>=700||ea==="bold")&&(Vr="bold"),ea==="italic"&&(Vr+="italic"),Vr.length===0&&(Vr="normal");for(var sn="",Rn={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"},xt=0;xt<ur.length;xt++){if(this.pdf.internal.getFont(ur[xt],Vr,{noFallback:!0,disableWarning:!0})!==void 0){sn=ur[xt];break}if(Vr==="bolditalic"&&this.pdf.internal.getFont(ur[xt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)sn=ur[xt],Vr="bold";else if(this.pdf.internal.getFont(ur[xt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){sn=ur[xt],Vr="normal";break}}if(sn===""){for(var _r=0;_r<ur.length;_r++)if(Rn[ur[_r]]){sn=Rn[ur[_r]];break}}sn=sn===""?"Times":sn,this.pdf.setFont(sn,Vr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Fi){this.ctx.globalCompositeOperation=Fi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Fi){this.ctx.globalAlpha=Fi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Fi){this.ctx.lineDashOffset=Fi,ui.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Fi){this.ctx.lineDash=Fi,ui.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Fi){this.ctx.ignoreClearRect=Boolean(Fi)}})};Qr.prototype.setLineDash=function(pn){this.lineDash=pn},Qr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Qr.prototype.fill=function(){Mi.call(this,"fill",!1)},Qr.prototype.stroke=function(){Mi.call(this,"stroke",!1)},Qr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Qr.prototype.moveTo=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw h.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Tn=this.ctx.transform.applyToPoint(new at(pn,Br));this.path.push({type:"mt",x:Tn.x,y:Tn.y}),this.ctx.lastPoint=new at(pn,Br)},Qr.prototype.closePath=function(){var pn=new at(0,0),Br=0;for(Br=this.path.length-1;Br!==-1;Br--)if(this.path[Br].type==="begin"&&x()(this.path[Br+1])==="object"&&typeof this.path[Br+1].x=="number"){pn=new at(this.path[Br+1].x,this.path[Br+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new at(pn.x,pn.y)},Qr.prototype.lineTo=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw h.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Tn=this.ctx.transform.applyToPoint(new at(pn,Br));this.path.push({type:"lt",x:Tn.x,y:Tn.y}),this.ctx.lastPoint=new at(Tn.x,Tn.y)},Qr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Mi.call(this,null,!0)},Qr.prototype.quadraticCurveTo=function(pn,Br,Tn,zn){if(isNaN(Tn)||isNaN(zn)||isNaN(pn)||isNaN(Br))throw h.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Qn=this.ctx.transform.applyToPoint(new at(Tn,zn)),ii=this.ctx.transform.applyToPoint(new at(pn,Br));this.path.push({type:"qct",x1:ii.x,y1:ii.y,x:Qn.x,y:Qn.y}),this.ctx.lastPoint=new at(Qn.x,Qn.y)},Qr.prototype.bezierCurveTo=function(pn,Br,Tn,zn,Qn,ii){if(isNaN(Qn)||isNaN(ii)||isNaN(pn)||isNaN(Br)||isNaN(Tn)||isNaN(zn))throw h.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var xi=this.ctx.transform.applyToPoint(new at(Qn,ii)),Di=this.ctx.transform.applyToPoint(new at(pn,Br)),Li=this.ctx.transform.applyToPoint(new at(Tn,zn));this.path.push({type:"bct",x1:Di.x,y1:Di.y,x2:Li.x,y2:Li.y,x:xi.x,y:xi.y}),this.ctx.lastPoint=new at(xi.x,xi.y)},Qr.prototype.arc=function(pn,Br,Tn,zn,Qn,ii){if(isNaN(pn)||isNaN(Br)||isNaN(Tn)||isNaN(zn)||isNaN(Qn))throw h.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ii=Boolean(ii),!this.ctx.transform.isIdentity){var xi=this.ctx.transform.applyToPoint(new at(pn,Br));pn=xi.x,Br=xi.y;var Di=this.ctx.transform.applyToPoint(new at(0,Tn)),Li=this.ctx.transform.applyToPoint(new at(0,0));Tn=Math.sqrt(Math.pow(Di.x-Li.x,2)+Math.pow(Di.y-Li.y,2))}Math.abs(Qn-zn)>=2*Math.PI&&(zn=0,Qn=2*Math.PI),this.path.push({type:"arc",x:pn,y:Br,radius:Tn,startAngle:zn,endAngle:Qn,counterclockwise:ii})},Qr.prototype.arcTo=function(pn,Br,Tn,zn,Qn){throw new Error("arcTo not implemented.")},Qr.prototype.rect=function(pn,Br,Tn,zn){if(isNaN(pn)||isNaN(Br)||isNaN(Tn)||isNaN(zn))throw h.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(pn,Br),this.lineTo(pn+Tn,Br),this.lineTo(pn+Tn,Br+zn),this.lineTo(pn,Br+zn),this.lineTo(pn,Br),this.lineTo(pn+Tn,Br),this.lineTo(pn,Br)},Qr.prototype.fillRect=function(pn,Br,Tn,zn){if(isNaN(pn)||isNaN(Br)||isNaN(Tn)||isNaN(zn))throw h.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!pr.call(this)){var Qn={};this.lineCap!=="butt"&&(Qn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Qn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(pn,Br,Tn,zn),this.fill(),Qn.hasOwnProperty("lineCap")&&(this.lineCap=Qn.lineCap),Qn.hasOwnProperty("lineJoin")&&(this.lineJoin=Qn.lineJoin)}},Qr.prototype.strokeRect=function(pn,Br,Tn,zn){if(isNaN(pn)||isNaN(Br)||isNaN(Tn)||isNaN(zn))throw h.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Wn.call(this)||(this.beginPath(),this.rect(pn,Br,Tn,zn),this.stroke())},Qr.prototype.clearRect=function(pn,Br,Tn,zn){if(isNaN(pn)||isNaN(Br)||isNaN(Tn)||isNaN(zn))throw h.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(pn,Br,Tn,zn))},Qr.prototype.save=function(pn){pn=typeof pn!="boolean"||pn;for(var Br=this.pdf.internal.getCurrentPageInfo().pageNumber,Tn=0;Tn<this.pdf.internal.getNumberOfPages();Tn++)this.pdf.setPage(Tn+1),this.pdf.internal.out("q");if(this.pdf.setPage(Br),pn){this.ctx.fontSize=this.pdf.internal.getFontSize();var zn=new Jr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=zn}},Qr.prototype.restore=function(pn){pn=typeof pn!="boolean"||pn;for(var Br=this.pdf.internal.getCurrentPageInfo().pageNumber,Tn=0;Tn<this.pdf.internal.getNumberOfPages();Tn++)this.pdf.setPage(Tn+1),this.pdf.internal.out("Q");this.pdf.setPage(Br),pn&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Qr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var fn=function(Br){var Tn,zn,Qn,ii;if(Br.isCanvasGradient===!0&&(Br=Br.getColor()),!Br)return{r:0,g:0,b:0,a:0,style:Br};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Br))Tn=0,zn=0,Qn=0,ii=0;else{var xi=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Br);if(xi!==null)Tn=parseInt(xi[1]),zn=parseInt(xi[2]),Qn=parseInt(xi[3]),ii=1;else if((xi=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Br))!==null)Tn=parseInt(xi[1]),zn=parseInt(xi[2]),Qn=parseInt(xi[3]),ii=parseFloat(xi[4]);else{if(ii=1,typeof Br=="string"&&Br.charAt(0)!=="#"){var Di=new l(Br);Br=Di.ok?Di.toHex():"#000000"}Br.length===4?(Tn=Br.substring(1,2),Tn+=Tn,zn=Br.substring(2,3),zn+=zn,Qn=Br.substring(3,4),Qn+=Qn):(Tn=Br.substring(1,3),zn=Br.substring(3,5),Qn=Br.substring(5,7)),Tn=parseInt(Tn,16),zn=parseInt(zn,16),Qn=parseInt(Qn,16)}}return{r:Tn,g:zn,b:Qn,a:ii,style:Br}},pr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Wn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Qr.prototype.fillText=function(pn,Br,Tn,zn){if(isNaN(Br)||isNaN(Tn)||typeof pn!="string")throw h.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(zn=isNaN(zn)?void 0:zn,!pr.call(this)){var Qn=Rr(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;Bt.call(this,{text:pn,x:Br,y:Tn,scale:ii,angle:Qn,align:this.textAlign,maxWidth:zn})}},Qr.prototype.strokeText=function(pn,Br,Tn,zn){if(isNaN(Br)||isNaN(Tn)||typeof pn!="string")throw h.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Wn.call(this)){zn=isNaN(zn)?void 0:zn;var Qn=Rr(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;Bt.call(this,{text:pn,x:Br,y:Tn,scale:ii,renderingMode:"stroke",angle:Qn,align:this.textAlign,maxWidth:zn})}},Qr.prototype.measureText=function(pn){if(typeof pn!="string")throw h.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Br=this.pdf,Tn=this.pdf.internal.scaleFactor,zn=Br.internal.getFontSize(),Qn=Br.getStringUnitWidth(pn)*zn/Br.internal.scaleFactor,ii=function(Di){var Li=(Di=Di||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Li}}),this};return new ii({width:Qn*=Math.round(96*Tn/72*1e4)/1e4})},Qr.prototype.scale=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw h.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Tn=new ft(pn,0,0,Br,0,0);this.ctx.transform=this.ctx.transform.multiply(Tn)},Qr.prototype.rotate=function(pn){if(isNaN(pn))throw h.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Br=new ft(Math.cos(pn),Math.sin(pn),-Math.sin(pn),Math.cos(pn),0,0);this.ctx.transform=this.ctx.transform.multiply(Br)},Qr.prototype.translate=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw h.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Tn=new ft(1,0,0,1,pn,Br);this.ctx.transform=this.ctx.transform.multiply(Tn)},Qr.prototype.transform=function(pn,Br,Tn,zn,Qn,ii){if(isNaN(pn)||isNaN(Br)||isNaN(Tn)||isNaN(zn)||isNaN(Qn)||isNaN(ii))throw h.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var xi=new ft(pn,Br,Tn,zn,Qn,ii);this.ctx.transform=this.ctx.transform.multiply(xi)},Qr.prototype.setTransform=function(pn,Br,Tn,zn,Qn,ii){pn=isNaN(pn)?1:pn,Br=isNaN(Br)?0:Br,Tn=isNaN(Tn)?0:Tn,zn=isNaN(zn)?1:zn,Qn=isNaN(Qn)?0:Qn,ii=isNaN(ii)?0:ii,this.ctx.transform=new ft(pn,Br,Tn,zn,Qn,ii)};var kr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Qr.prototype.drawImage=function(pn,Br,Tn,zn,Qn,ii,xi,Di,Li){var oa=this.pdf.getImageProperties(pn),ma=1,ia=1,ba=1,vi=1;zn!==void 0&&Di!==void 0&&(ba=Di/zn,vi=Li/Qn,ma=oa.width/zn*Di/zn,ia=oa.height/Qn*Li/Qn),ii===void 0&&(ii=Br,xi=Tn,Br=0,Tn=0),zn!==void 0&&Di===void 0&&(Di=zn,Li=Qn),zn===void 0&&Di===void 0&&(Di=oa.width,Li=oa.height);for(var Ln,Fi=this.ctx.transform.decompose(),ha=Rr(Fi.rotate.shx),ea=new ft,aa=(ea=(ea=(ea=ea.multiply(Fi.translate)).multiply(Fi.skew)).multiply(Fi.scale)).applyToRectangle(new wt(ii-Br*ba,xi-Tn*vi,zn*ma,Qn*ia)),Ir=kn.call(this,aa),wr=[],xn=0;xn<Ir.length;xn+=1)wr.indexOf(Ir[xn])===-1&&wr.push(Ir[xn]);if(fi(wr),this.autoPaging)for(var ur=wr[0],Dr=wr[wr.length-1],Vr=ur;Vr<Dr+1;Vr++){this.pdf.setPage(Vr);var sn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Rn=Vr===1?this.posY+this.margin[0]:this.margin[0],xt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_r=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Or=Vr===1?0:xt+(Vr-2)*_r;if(this.ctx.clip_path.length!==0){var en=this.path;Ln=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=qr(Ln,this.posX+this.margin[3],-Or+Rn+this.ctx.prevPageLastElemOffset),Zi.call(this,"fill",!0),this.path=en}var wn=JSON.parse(JSON.stringify(aa));wn=qr([wn],this.posX+this.margin[3],-Or+Rn+this.ctx.prevPageLastElemOffset)[0];var _n=(Vr>ur||Vr<Dr)&&kr.call(this);_n&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],sn,_r,null).clip().discardPath()),this.pdf.addImage(pn,"JPEG",wn.x,wn.y,wn.w,wn.h,null,null,ha),_n&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(pn,"JPEG",aa.x,aa.y,aa.w,aa.h,null,null,ha)};var kn=function(Br,Tn,zn){var Qn=[];Tn=Tn||this.pdf.internal.pageSize.width,zn=zn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ii=this.posY+this.ctx.prevPageLastElemOffset;switch(Br.type){default:case"mt":case"lt":Qn.push(Math.floor((Br.y+ii)/zn)+1);break;case"arc":Qn.push(Math.floor((Br.y+ii-Br.radius)/zn)+1),Qn.push(Math.floor((Br.y+ii+Br.radius)/zn)+1);break;case"qct":var xi=Kn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Br.x1,Br.y1,Br.x,Br.y);Qn.push(Math.floor((xi.y+ii)/zn)+1),Qn.push(Math.floor((xi.y+xi.h+ii)/zn)+1);break;case"bct":var Di=Dn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Br.x1,Br.y1,Br.x2,Br.y2,Br.x,Br.y);Qn.push(Math.floor((Di.y+ii)/zn)+1),Qn.push(Math.floor((Di.y+Di.h+ii)/zn)+1);break;case"rect":Qn.push(Math.floor((Br.y+ii)/zn)+1),Qn.push(Math.floor((Br.y+Br.h+ii)/zn)+1)}for(var Li=0;Li<Qn.length;Li+=1)for(;this.pdf.internal.getNumberOfPages()<Qn[Li];)bn.call(this);return Qn},bn=function(){var Br=this.fillStyle,Tn=this.strokeStyle,zn=this.font,Qn=this.lineCap,ii=this.lineWidth,xi=this.lineJoin;this.pdf.addPage(),this.fillStyle=Br,this.strokeStyle=Tn,this.font=zn,this.lineCap=Qn,this.lineWidth=ii,this.lineJoin=xi},qr=function(Br,Tn,zn){for(var Qn=0;Qn<Br.length;Qn++)switch(Br[Qn].type){case"bct":Br[Qn].x2+=Tn,Br[Qn].y2+=zn;case"qct":Br[Qn].x1+=Tn,Br[Qn].y1+=zn;case"mt":case"lt":case"arc":default:Br[Qn].x+=Tn,Br[Qn].y+=zn}return Br},fi=function(Br){return Br.sort(function(Tn,zn){return Tn-zn})},Mi=function(Br,Tn){for(var zn,Qn,ii=this.fillStyle,xi=this.strokeStyle,Di=this.lineCap,Li=this.lineWidth,oa=Math.abs(Li*this.ctx.transform.scaleX),ma=this.lineJoin,ia=JSON.parse(JSON.stringify(this.path)),ba=JSON.parse(JSON.stringify(this.path)),vi=[],Ln=0;Ln<ba.length;Ln++)if(ba[Ln].x!==void 0)for(var Fi=kn.call(this,ba[Ln]),ha=0;ha<Fi.length;ha+=1)vi.indexOf(Fi[ha])===-1&&vi.push(Fi[ha]);for(var ea=0;ea<vi.length;ea++)for(;this.pdf.internal.getNumberOfPages()<vi[ea];)bn.call(this);if(fi(vi),this.autoPaging)for(var aa=vi[0],Ir=vi[vi.length-1],wr=aa;wr<Ir+1;wr++){this.pdf.setPage(wr),this.fillStyle=ii,this.strokeStyle=xi,this.lineCap=Di,this.lineWidth=oa,this.lineJoin=ma;var xn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ur=wr===1?this.posY+this.margin[0]:this.margin[0],Dr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Vr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],sn=wr===1?0:Dr+(wr-2)*Vr;if(this.ctx.clip_path.length!==0){var Rn=this.path;zn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=qr(zn,this.posX+this.margin[3],-sn+ur+this.ctx.prevPageLastElemOffset),Zi.call(this,Br,!0),this.path=Rn}if(Qn=JSON.parse(JSON.stringify(ia)),this.path=qr(Qn,this.posX+this.margin[3],-sn+ur+this.ctx.prevPageLastElemOffset),Tn===!1||wr===0){var xt=(wr>aa||wr<Ir)&&kr.call(this);xt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xn,Vr,null).clip().discardPath()),Zi.call(this,Br,Tn),xt&&this.pdf.restoreGraphicsState()}this.lineWidth=Li}else this.lineWidth=oa,Zi.call(this,Br,Tn),this.lineWidth=Li;this.path=ia},Zi=function(Br,Tn){if((Br!=="stroke"||Tn||!Wn.call(this))&&(Br==="stroke"||Tn||!pr.call(this))){for(var zn,Qn,ii=[],xi=this.path,Di=0;Di<xi.length;Di++){var Li=xi[Di];switch(Li.type){case"begin":ii.push({begin:!0});break;case"close":ii.push({close:!0});break;case"mt":ii.push({start:Li,deltas:[],abs:[]});break;case"lt":var oa=ii.length;if(xi[Di-1]&&!isNaN(xi[Di-1].x)&&(zn=[Li.x-xi[Di-1].x,Li.y-xi[Di-1].y],oa>0)){for(;oa>=0;oa--)if(ii[oa-1].close!==!0&&ii[oa-1].begin!==!0){ii[oa-1].deltas.push(zn),ii[oa-1].abs.push(Li);break}}break;case"bct":zn=[Li.x1-xi[Di-1].x,Li.y1-xi[Di-1].y,Li.x2-xi[Di-1].x,Li.y2-xi[Di-1].y,Li.x-xi[Di-1].x,Li.y-xi[Di-1].y],ii[ii.length-1].deltas.push(zn);break;case"qct":var ma=xi[Di-1].x+2/3*(Li.x1-xi[Di-1].x),ia=xi[Di-1].y+2/3*(Li.y1-xi[Di-1].y),ba=Li.x+2/3*(Li.x1-Li.x),vi=Li.y+2/3*(Li.y1-Li.y),Ln=Li.x,Fi=Li.y;zn=[ma-xi[Di-1].x,ia-xi[Di-1].y,ba-xi[Di-1].x,vi-xi[Di-1].y,Ln-xi[Di-1].x,Fi-xi[Di-1].y],ii[ii.length-1].deltas.push(zn);break;case"arc":ii.push({deltas:[],abs:[],arc:!0}),Array.isArray(ii[ii.length-1].abs)&&ii[ii.length-1].abs.push(Li)}}Qn=Tn?null:Br==="stroke"?"stroke":"fill";for(var ha=!1,ea=0;ea<ii.length;ea++)if(ii[ea].arc)for(var aa=ii[ea].abs,Ir=0;Ir<aa.length;Ir++){var wr=aa[Ir];wr.type==="arc"?Vn.call(this,wr.x,wr.y,wr.radius,wr.startAngle,wr.endAngle,wr.counterclockwise,void 0,Tn,!ha):Kt.call(this,wr.x,wr.y),ha=!0}else if(ii[ea].close===!0)this.pdf.internal.out("h"),ha=!1;else if(ii[ea].begin!==!0){var xn=ii[ea].start.x,ur=ii[ea].start.y;Ot.call(this,ii[ea].deltas,xn,ur),ha=!0}Qn&&Wt.call(this,Qn),Tn&&Et.call(this)}},tn=function(Br){var Tn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,zn=Tn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Br-zn;case"top":return Br+Tn-zn;case"hanging":return Br+Tn-2*zn;case"middle":return Br+Tn/2-zn;case"ideographic":return Br;case"alphabetic":default:return Br}},En=function(Br){return Br+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Qr.prototype.createLinearGradient=function(){var pn=function(){};return pn.colorStops=[],pn.addColorStop=function(Br,Tn){this.colorStops.push([Br,Tn])},pn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},pn.isCanvasGradient=!0,pn},Qr.prototype.createPattern=function(){return this.createLinearGradient()},Qr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Vn=function(Br,Tn,zn,Qn,ii,xi,Di,Li,oa){for(var ma=fr.call(this,zn,Qn,ii,xi),ia=0;ia<ma.length;ia++){var ba=ma[ia];ia===0&&(oa?kt.call(this,ba.x1+Br,ba.y1+Tn):Kt.call(this,ba.x1+Br,ba.y1+Tn)),sr.call(this,Br,Tn,ba.x2,ba.y2,ba.x3,ba.y3,ba.x4,ba.y4)}Li?Et.call(this):Wt.call(this,Di)},Wt=function(Br){switch(Br){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Et=function(){this.pdf.clip(),this.pdf.discardPath()},kt=function(Br,Tn){this.pdf.internal.out(Ue(Br)+" "+Ye(Tn)+" m")},Bt=function(Br){var Tn;switch(Br.align){case"right":case"end":Tn="right";break;case"center":Tn="center";break;case"left":case"start":default:Tn="left"}var zn=this.pdf.getTextDimensions(Br.text),Qn=tn.call(this,Br.y),ii=En.call(this,Qn)-zn.h,xi=this.ctx.transform.applyToPoint(new at(Br.x,Qn)),Di=this.ctx.transform.decompose(),Li=new ft;Li=(Li=(Li=Li.multiply(Di.translate)).multiply(Di.skew)).multiply(Di.scale);for(var oa,ma,ia,ba=this.ctx.transform.applyToRectangle(new wt(Br.x,Qn,zn.w,zn.h)),vi=Li.applyToRectangle(new wt(Br.x,ii,zn.w,zn.h)),Ln=kn.call(this,vi),Fi=[],ha=0;ha<Ln.length;ha+=1)Fi.indexOf(Ln[ha])===-1&&Fi.push(Ln[ha]);if(fi(Fi),this.autoPaging)for(var ea=Fi[0],aa=Fi[Fi.length-1],Ir=ea;Ir<aa+1;Ir++){this.pdf.setPage(Ir);var wr=Ir===1?this.posY+this.margin[0]:this.margin[0],xn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ur=this.pdf.internal.pageSize.height-this.margin[2],Dr=ur-this.margin[0],Vr=this.pdf.internal.pageSize.width-this.margin[1],sn=Vr-this.margin[3],Rn=Ir===1?0:xn+(Ir-2)*Dr;if(this.ctx.clip_path.length!==0){var xt=this.path;oa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=qr(oa,this.posX+this.margin[3],-1*Rn+wr),Zi.call(this,"fill",!0),this.path=xt}var _r=qr([JSON.parse(JSON.stringify(vi))],this.posX+this.margin[3],-Rn+wr+this.ctx.prevPageLastElemOffset)[0];Br.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Br.scale),ia=this.lineWidth,this.lineWidth=ia*Br.scale);var Or=this.autoPaging!=="text";if(Or||_r.y+_r.h<=ur){if(Or||_r.y>=wr&&_r.x<=Vr){var en=Or?Br.text:this.pdf.splitTextToSize(Br.text,Br.maxWidth||Vr-_r.x)[0],wn=qr([JSON.parse(JSON.stringify(ba))],this.posX+this.margin[3],-Rn+wr+this.ctx.prevPageLastElemOffset)[0],_n=Or&&(Ir>ea||Ir<aa)&&kr.call(this);_n&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],sn,Dr,null).clip().discardPath()),this.pdf.text(en,wn.x,wn.y,{angle:Br.angle,align:Tn,renderingMode:Br.renderingMode}),_n&&this.pdf.restoreGraphicsState()}}else _r.y<ur&&(this.ctx.prevPageLastElemOffset+=ur-_r.y);Br.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=ia)}else Br.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Br.scale),ia=this.lineWidth,this.lineWidth=ia*Br.scale),this.pdf.text(Br.text,xi.x+this.posX,xi.y+this.posY,{angle:Br.angle,align:Tn,renderingMode:Br.renderingMode,maxWidth:Br.maxWidth}),Br.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=ia)},Kt=function(Br,Tn,zn,Qn){zn=zn||0,Qn=Qn||0,this.pdf.internal.out(Ue(Br+zn)+" "+Ye(Tn+Qn)+" l")},Ot=function(Br,Tn,zn){return this.pdf.lines(Br,Tn,zn,null,null)},sr=function(Br,Tn,zn,Qn,ii,xi,Di,Li){this.pdf.internal.out([Re(et(zn+Br)),Re($e(Qn+Tn)),Re(et(ii+Br)),Re($e(xi+Tn)),Re(et(Di+Br)),Re($e(Li+Tn)),"c"].join(" "))},fr=function(Br,Tn,zn,Qn){for(var ii=2*Math.PI,xi=Math.PI/2;Tn>zn;)Tn-=ii;var Di=Math.abs(zn-Tn);Di<ii&&Qn&&(Di=ii-Di);for(var Li=[],oa=Qn?-1:1,ma=Tn;Di>1e-5;){var ia=ma+oa*Math.min(Di,xi);Li.push(vr.call(this,Br,ma,ia)),Di-=Math.abs(ia-ma),ma=ia}return Li},vr=function(Br,Tn,zn){var Qn=(zn-Tn)/2,ii=Br*Math.cos(Qn),xi=Br*Math.sin(Qn),Di=ii,Li=-xi,oa=Di*Di+Li*Li,ma=oa+Di*ii+Li*xi,ia=4/3*(Math.sqrt(2*oa*ma)-ma)/(Di*xi-Li*ii),ba=Di-ia*Li,vi=Li+ia*Di,Ln=ba,Fi=-vi,ha=Qn+Tn,ea=Math.cos(ha),aa=Math.sin(ha);return{x1:Br*Math.cos(Tn),y1:Br*Math.sin(Tn),x2:ba*ea-vi*aa,y2:ba*aa+vi*ea,x3:Ln*ea-Fi*aa,y3:Ln*aa+Fi*ea,x4:Br*Math.cos(zn),y4:Br*Math.sin(zn)}},Rr=function(Br){return 180*Br/Math.PI},Kn=function(Br,Tn,zn,Qn,ii,xi){var Di=Br+.5*(zn-Br),Li=Tn+.5*(Qn-Tn),oa=ii+.5*(zn-ii),ma=xi+.5*(Qn-xi),ia=Math.min(Br,ii,Di,oa),ba=Math.max(Br,ii,Di,oa),vi=Math.min(Tn,xi,Li,ma),Ln=Math.max(Tn,xi,Li,ma);return new wt(ia,vi,ba-ia,Ln-vi)},Dn=function(Br,Tn,zn,Qn,ii,xi,Di,Li){var oa,ma,ia,ba,vi,Ln,Fi,ha,ea,aa,Ir,wr,xn,ur,Dr=zn-Br,Vr=Qn-Tn,sn=ii-zn,Rn=xi-Qn,xt=Di-ii,_r=Li-xi;for(ma=0;ma<41;ma++)ea=(Fi=(ia=Br+(oa=ma/40)*Dr)+oa*((vi=zn+oa*sn)-ia))+oa*(vi+oa*(ii+oa*xt-vi)-Fi),aa=(ha=(ba=Tn+oa*Vr)+oa*((Ln=Qn+oa*Rn)-ba))+oa*(Ln+oa*(xi+oa*_r-Ln)-ha),ma==0?(Ir=ea,wr=aa,xn=ea,ur=aa):(Ir=Math.min(Ir,ea),wr=Math.min(wr,aa),xn=Math.max(xn,ea),ur=Math.max(ur,aa));return new wt(Math.round(Ir),Math.round(wr),Math.round(xn-Ir),Math.round(ur-wr))},ui=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Br,Tn,zn=(Br=this.ctx.lineDash,Tn=this.ctx.lineDashOffset,JSON.stringify({lineDash:Br,lineDashOffset:Tn}));this.prevLineDash!==zn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=zn)}}}(z.API),function(rt){var Re=function(at){var wt,ft,cr,Jr,Qr,fn,pr,Wn,kr,kn;for(/[^\x00-\xFF]/.test(at),ft=[],cr=0,Jr=(at+=wt="\0\0\0\0".slice(at.length%4||4)).length;Jr>cr;cr+=4)(Qr=(at.charCodeAt(cr)<<24)+(at.charCodeAt(cr+1)<<16)+(at.charCodeAt(cr+2)<<8)+at.charCodeAt(cr+3))!==0?(fn=(Qr=((Qr=((Qr=((Qr=(Qr-(kn=Qr%85))/85)-(kr=Qr%85))/85)-(Wn=Qr%85))/85)-(pr=Qr%85))/85)%85,ft.push(fn+33,pr+33,Wn+33,kr+33,kn+33)):ft.push(122);return function(bn,qr){for(var fi=qr;fi>0;fi--)bn.pop()}(ft,wt.length),String.fromCharCode.apply(String,ft)+"~>"},Ue=function(at){var wt,ft,cr,Jr,Qr,fn=String,pr="length",Wn=255,kr="charCodeAt",kn="slice",bn="replace";for(at[kn](-2),at=at[kn](0,-2)[bn](/\s/g,"")[bn]("z","!!!!!"),cr=[],Jr=0,Qr=(at+=wt="uuuuu"[kn](at[pr]%5||5))[pr];Qr>Jr;Jr+=5)ft=52200625*(at[kr](Jr)-33)+614125*(at[kr](Jr+1)-33)+7225*(at[kr](Jr+2)-33)+85*(at[kr](Jr+3)-33)+(at[kr](Jr+4)-33),cr.push(Wn&ft>>24,Wn&ft>>16,Wn&ft>>8,Wn&ft);return function(qr,fi){for(var Mi=fi;Mi>0;Mi--)qr.pop()}(cr,wt[pr]),fn.fromCharCode.apply(fn,cr)},Ye=function(at){var wt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((at=at.replace(/\s/g,"")).indexOf(">")!==-1&&(at=at.substr(0,at.indexOf(">"))),at.length%2&&(at+="0"),wt.test(at)===!1)return"";for(var ft="",cr=0;cr<at.length;cr+=2)ft+=String.fromCharCode("0x"+(at[cr]+at[cr+1]));return ft},et=function(at){for(var wt=new Uint8Array(at.length),ft=at.length;ft--;)wt[ft]=at.charCodeAt(ft);return at=(wt=Object(A.b)(wt)).reduce(function(cr,Jr){return cr+String.fromCharCode(Jr)},"")};rt.processDataByFilters=function($e,at){var wt=0,ft=$e||"",cr=[];for(typeof(at=at||[])=="string"&&(at=[at]),wt=0;wt<at.length;wt+=1)switch(at[wt]){case"ASCII85Decode":case"/ASCII85Decode":ft=Ue(ft),cr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ft=Re(ft),cr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ft=Ye(ft),cr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ft=ft.split("").map(function(Jr){return("0"+Jr.charCodeAt().toString(16)).slice(-2)}).join("")+">",cr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ft=et(ft),cr.push("/FlateDecode");break;default:throw new Error('The filter: "'+at[wt]+'" is not implemented')}return{data:ft,reverseChain:cr.reverse().join(" ")}}}(z.API),function(rt){rt.loadFile=function(Re,Ue,Ye){return function(et,$e,at){$e=$e!==!1,at=typeof at=="function"?at:function(){};var wt=void 0;try{wt=function(ft,cr,Jr){var Qr=new XMLHttpRequest,fn=0,pr=function(kr){var kn=kr.length,bn=[],qr=String.fromCharCode;for(fn=0;fn<kn;fn+=1)bn.push(qr(255&kr.charCodeAt(fn)));return bn.join("")};if(Qr.open("GET",ft,!cr),Qr.overrideMimeType("text/plain; charset=x-user-defined"),cr===!1&&(Qr.onload=function(){Qr.status===200?Jr(pr(this.responseText)):Jr(void 0)}),Qr.send(null),cr&&Qr.status===200)return pr(Qr.responseText)}(et,$e,at)}catch(ft){}return wt}(Re,Ue,Ye)},rt.loadImageFile=rt.loadFile}(z.API),function(rt){function Re(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(n.t.bind(null,"wOnQ",7))).catch(function(at){return Promise.reject(new Error("Could not load html2canvas: "+at))}).then(function(at){return at.default?at.default:at})}function Ue(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):n.e(246).then(n.t.bind(null,"qZ2Q",7))).catch(function(at){return Promise.reject(new Error("Could not load dompurify: "+at))}).then(function(at){return at.default?at.default:at})}var Ye=function(wt){var ft=x()(wt);return ft==="undefined"?"undefined":ft==="string"||wt instanceof String?"string":ft==="number"||wt instanceof Number?"number":ft==="function"||wt instanceof Function?"function":wt&&wt.constructor===Array?"array":wt&&wt.nodeType===1?"element":ft==="object"?"object":"unknown"},et=function(wt,ft){var cr=document.createElement(wt);for(var Jr in ft.className&&(cr.className=ft.className),ft.innerHTML&&ft.dompurify&&(cr.innerHTML=ft.dompurify.sanitize(ft.innerHTML)),ft.style)cr.style[Jr]=ft.style[Jr];return cr},$e=function at(wt){var ft=Object.assign(at.convert(Promise.resolve()),JSON.parse(JSON.stringify(at.template))),cr=at.convert(Promise.resolve(),ft);return cr=(cr=cr.setProgress(1,at,1,[at])).set(wt)};($e.prototype=Object.create(Promise.prototype)).constructor=$e,$e.convert=function(at,wt){return at.__proto__=wt||$e.prototype,at},$e.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"}},$e.prototype.from=function(at,wt){return this.then(function(){switch(wt=wt||function(ft){switch(Ye(ft)){case"string":return"string";case"element":return ft.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(at)){case"string":return this.then(Ue).then(function(ft){return this.set({src:et("div",{innerHTML:at,dompurify:ft})})});case"element":return this.set({src:at});case"canvas":return this.set({canvas:at});case"img":return this.set({img:at});default:return this.error("Unknown source type.")}})},$e.prototype.to=function(at){switch(at){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.")}},$e.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 at={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},wt=function ft(cr,Jr){for(var Qr=cr.nodeType===3?document.createTextNode(cr.nodeValue):cr.cloneNode(!1),fn=cr.firstChild;fn;fn=fn.nextSibling)Jr!==!0&&fn.nodeType===1&&fn.nodeName==="SCRIPT"||Qr.appendChild(ft(fn,Jr));return cr.nodeType===1&&(cr.nodeName==="CANVAS"?(Qr.width=cr.width,Qr.height=cr.height,Qr.getContext("2d").drawImage(cr,0,0)):cr.nodeName!=="TEXTAREA"&&cr.nodeName!=="SELECT"||(Qr.value=cr.value),Qr.addEventListener("load",function(){Qr.scrollTop=cr.scrollTop,Qr.scrollLeft=cr.scrollLeft},!0)),Qr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);wt.tagName==="BODY"&&(at.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=et("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=et("div",{className:"html2pdf__container",style:at}),this.prop.container.appendChild(wt),this.prop.container.firstChild.appendChild(et("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"})},$e.prototype.toCanvas=function(){var at=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(at).then(Re).then(function(wt){var ft=Object.assign({},this.opt.html2canvas);return delete ft.onrendered,wt(this.prop.container,ft)}).then(function(wt){(this.opt.html2canvas.onrendered||function(){})(wt),this.prop.canvas=wt,document.body.removeChild(this.prop.overlay)})},$e.prototype.toContext2d=function(){var at=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(at).then(Re).then(function(wt){var ft=this.opt.jsPDF,cr=this.opt.fontFaces,Jr=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Qr=Object.assign({async:!0,allowTaint:!0,scale:Jr,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Qr.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=cr,cr)for(var fn=0;fn<cr.length;++fn){var pr=cr[fn],Wn=pr.src.find(function(kr){return kr.format==="truetype"});Wn&&ft.addFont(Wn.url,pr.ref.name,pr.ref.style)}return Qr.windowHeight=Qr.windowHeight||0,Qr.windowHeight=Qr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Qr.windowHeight,ft.context2d.save(!0),wt(this.prop.container,Qr)}).then(function(wt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(wt),this.prop.canvas=wt,document.body.removeChild(this.prop.overlay)})},$e.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var at=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=at})},$e.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},$e.prototype.output=function(at,wt,ft){return(ft=ft||"pdf").toLowerCase()==="img"||ft.toLowerCase()==="image"?this.outputImg(at,wt):this.outputPdf(at,wt)},$e.prototype.outputPdf=function(at,wt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(at,wt)})},$e.prototype.outputImg=function(at){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(at){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 "'+at+'" is not supported.'}})},$e.prototype.save=function(at){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(at?{filename:at}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},$e.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},$e.prototype.set=function(at){if(Ye(at)!=="object")return this;var wt=Object.keys(at||{}).map(function(ft){if(ft in $e.template.prop)return function(){this.prop[ft]=at[ft]};switch(ft){case"margin":return this.setMargin.bind(this,at.margin);case"jsPDF":return function(){return this.opt.jsPDF=at.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,at.pageSize);default:return function(){this.opt[ft]=at[ft]}}},this);return this.then(function(){return this.thenList(wt)})},$e.prototype.get=function(at,wt){return this.then(function(){var ft=at in $e.template.prop?this.prop[at]:this.opt[at];return wt?wt(ft):ft})},$e.prototype.setMargin=function(at){return this.then(function(){switch(Ye(at)){case"number":at=[at,at,at,at];case"array":if(at.length===2&&(at=[at[0],at[1],at[0],at[1]]),at.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=at}).then(this.setPageSize)},$e.prototype.setPageSize=function(at){function wt(ft,cr){return Math.floor(ft*cr/72*96)}return this.then(function(){(at=at||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(at.inner={width:at.width-this.opt.margin[1]-this.opt.margin[3],height:at.height-this.opt.margin[0]-this.opt.margin[2]},at.inner.px={width:wt(at.inner.width,at.k),height:wt(at.inner.height,at.k)},at.inner.ratio=at.inner.height/at.inner.width),this.prop.pageSize=at})},$e.prototype.setProgress=function(at,wt,ft,cr){return at!=null&&(this.progress.val=at),wt!=null&&(this.progress.state=wt),ft!=null&&(this.progress.n=ft),cr!=null&&(this.progress.stack=cr),this.progress.ratio=this.progress.val/this.progress.state,this},$e.prototype.updateProgress=function(at,wt,ft,cr){return this.setProgress(at?this.progress.val+at:null,wt||null,ft?this.progress.n+ft:null,cr?this.progress.stack.concat(cr):null)},$e.prototype.then=function(at,wt){var ft=this;return this.thenCore(at,wt,function(cr,Jr){return ft.updateProgress(null,null,1,[cr]),Promise.prototype.then.call(this,function(Qr){return ft.updateProgress(null,cr),Qr}).then(cr,Jr).then(function(Qr){return ft.updateProgress(1),Qr})})},$e.prototype.thenCore=function(at,wt,ft){ft=ft||Promise.prototype.then,at&&(at=at.bind(this)),wt&&(wt=wt.bind(this));var cr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:$e.convert(Object.assign({},this),Promise.prototype),Jr=ft.call(cr,at,wt);return $e.convert(Jr,this.__proto__)},$e.prototype.thenExternal=function(at,wt){return Promise.prototype.then.call(this,at,wt)},$e.prototype.thenList=function(at){var wt=this;return at.forEach(function(ft){wt=wt.thenCore(ft)}),wt},$e.prototype.catch=function(at){at&&(at=at.bind(this));var wt=Promise.prototype.catch.call(this,at);return $e.convert(wt,this)},$e.prototype.catchExternal=function(at){return Promise.prototype.catch.call(this,at)},$e.prototype.error=function(at){return this.then(function(){throw new Error(at)})},$e.prototype.using=$e.prototype.set,$e.prototype.saveAs=$e.prototype.save,$e.prototype.export=$e.prototype.output,$e.prototype.run=$e.prototype.then,z.getPageSize=function(at,wt,ft){if(x()(at)==="object"){var cr=at;at=cr.orientation,wt=cr.unit||wt,ft=cr.format||ft}wt=wt||"mm",ft=ft||"a4",at=(""+(at||"P")).toLowerCase();var Jr,Qr=(""+ft).toLowerCase(),fn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(wt){case"pt":Jr=1;break;case"mm":Jr=72/25.4;break;case"cm":Jr=72/2.54;break;case"in":Jr=72;break;case"px":Jr=.75;break;case"pc":case"em":Jr=12;break;case"ex":Jr=6;break;default:throw"Invalid unit: "+wt}var pr,Wn=0,kr=0;if(fn.hasOwnProperty(Qr))Wn=fn[Qr][1]/Jr,kr=fn[Qr][0]/Jr;else try{Wn=ft[1],kr=ft[0]}catch(kn){throw new Error("Invalid format: "+ft)}if(at==="p"||at==="portrait")at="p",kr>Wn&&(pr=kr,kr=Wn,Wn=pr);else{if(at!=="l"&&at!=="landscape")throw"Invalid orientation: "+at;at="l",Wn>kr&&(pr=kr,kr=Wn,Wn=pr)}return{width:kr,height:Wn,unit:wt,k:Jr,orientation:at}},rt.html=function(at,wt){(wt=wt||{}).callback=wt.callback||function(){},wt.html2canvas=wt.html2canvas||{},wt.html2canvas.canvas=wt.html2canvas.canvas||this.canvas,wt.jsPDF=wt.jsPDF||this,wt.fontFaces=wt.fontFaces?wt.fontFaces.map(Cn):null;var ft=new $e(wt);return wt.worker?ft:ft.from(at).doCallback()}}(z.API),z.API.addJS=function(rt){return Gn=rt,this.internal.events.subscribe("postPutResources",function(){ci=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ci+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Xi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Gn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ci!==void 0&&Xi!==void 0&&this.internal.out("/Names <</JavaScript "+ci+" 0 R>>")}),this},function(rt){var Re;rt.events.push(["postPutResources",function(){var Ue=this,Ye=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var et=Ue.outline.render().split(/\r\n/),$e=0;$e<et.length;$e++){var at=et[$e],wt=Ye.exec(at);if(wt!=null){var ft=wt[1];Ue.internal.newObjectDeferredBegin(ft,!1)}Ue.internal.write(at)}if(this.outline.createNamedDestinations){var cr=this.internal.pages.length,Jr=[];for($e=0;$e<cr;$e++){var Qr=Ue.internal.newObject();Jr.push(Qr);var fn=Ue.internal.getPageInfo($e+1);Ue.internal.write("<< /D["+fn.objId+" 0 R /XYZ null null null]>> endobj")}var pr=Ue.internal.newObject();for(Ue.internal.write("<< /Names [ "),$e=0;$e<Jr.length;$e++)Ue.internal.write("(page_"+($e+1)+")"+Jr[$e]+" 0 R");Ue.internal.write(" ] >>","endobj"),Re=Ue.internal.newObject(),Ue.internal.write("<< /Dests "+pr+" 0 R"),Ue.internal.write(">>","endobj")}}]),rt.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 "+Re+" 0 R"))}]),rt.events.push(["initialized",function(){var Ue=this;Ue.outline={createNamedDestinations:!1,root:{children:[]}},Ue.outline.add=function(Ye,et,$e){var at={title:et,options:$e,children:[]};return Ye==null&&(Ye=this.root),Ye.children.push(at),at},Ue.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ue,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ue.outline.genIds_r=function(Ye){Ye.id=Ue.internal.newObjectDeferred();for(var et=0;et<Ye.children.length;et++)this.genIds_r(Ye.children[et])},Ue.outline.renderRoot=function(Ye){this.objStart(Ye),this.line("/Type /Outlines"),Ye.children.length>0&&(this.line("/First "+this.makeRef(Ye.children[0])),this.line("/Last "+this.makeRef(Ye.children[Ye.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ye)),this.objEnd()},Ue.outline.renderItems=function(Ye){for(var et=this.ctx.pdf.internal.getVerticalCoordinateString,$e=0;$e<Ye.children.length;$e++){var at=Ye.children[$e];this.objStart(at),this.line("/Title "+this.makeString(at.title)),this.line("/Parent "+this.makeRef(Ye)),$e>0&&this.line("/Prev "+this.makeRef(Ye.children[$e-1])),$e<Ye.children.length-1&&this.line("/Next "+this.makeRef(Ye.children[$e+1])),at.children.length>0&&(this.line("/First "+this.makeRef(at.children[0])),this.line("/Last "+this.makeRef(at.children[at.children.length-1])));var wt=this.count=this.count_r({count:0},at);if(wt>0&&this.line("/Count "+wt),at.options&&at.options.pageNumber){var ft=Ue.internal.getPageInfo(at.options.pageNumber);this.line("/Dest ["+ft.objId+" 0 R /XYZ 0 "+et(0)+" 0]")}this.objEnd()}for(var cr=0;cr<Ye.children.length;cr++)this.renderItems(Ye.children[cr])},Ue.outline.line=function(Ye){this.ctx.val+=Ye+`\r
`},Ue.outline.makeRef=function(Ye){return Ye.id+" 0 R"},Ue.outline.makeString=function(Ye){return"("+Ue.internal.pdfEscape(Ye)+")"},Ue.outline.objStart=function(Ye){this.ctx.val+=`\r
`+Ye.id+` 0 obj\r
<<\r
`},Ue.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Ue.outline.count_r=function(Ye,et){for(var $e=0;$e<et.children.length;$e++)Ye.count++,this.count_r(Ye,et.children[$e]);return Ye.count}}])}(z.API),function(rt){var Re=[192,193,194,195,196,197,198,199];rt.processJPEG=function(Ue,Ye,et,$e,at,wt){var ft,cr=this.decode.DCT_DECODE,Jr=null;if(typeof Ue=="string"||this.__addimage__.isArrayBuffer(Ue)||this.__addimage__.isArrayBufferView(Ue)){switch(Ue=at||Ue,Ue=this.__addimage__.isArrayBuffer(Ue)?new Uint8Array(Ue):Ue,(ft=function(Qr){for(var fn,pr=256*Qr.charCodeAt(4)+Qr.charCodeAt(5),Wn=Qr.length,kr={width:0,height:0,numcomponents:1},kn=4;kn<Wn;kn+=2){if(kn+=pr,Re.indexOf(Qr.charCodeAt(kn+1))!==-1){fn=256*Qr.charCodeAt(kn+5)+Qr.charCodeAt(kn+6),kr={width:256*Qr.charCodeAt(kn+7)+Qr.charCodeAt(kn+8),height:fn,numcomponents:Qr.charCodeAt(kn+9)};break}pr=256*Qr.charCodeAt(kn+2)+Qr.charCodeAt(kn+3)}return kr}(Ue=this.__addimage__.isArrayBufferView(Ue)?this.__addimage__.arrayBufferToBinaryString(Ue):Ue)).numcomponents){case 1:wt=this.color_spaces.DEVICE_GRAY;break;case 4:wt=this.color_spaces.DEVICE_CMYK;break;case 3:wt=this.color_spaces.DEVICE_RGB}Jr={data:Ue,width:ft.width,height:ft.height,colorSpace:wt,bitsPerComponent:8,filter:cr,index:Ye,alias:et}}return Jr}}(z.API);var Zt,Nt,Me,ke,Pe,tt=function(){var rt,Re,Ue;function Ye($e){var at,wt,ft,cr,Jr,Qr,fn,pr,Wn,kr,kn,bn,qr,fi;for(this.data=$e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Qr=null;;){switch(at=this.readUInt32(),Wn=function(){var Mi,Zi;for(Zi=[],Mi=0;Mi<4;++Mi)Zi.push(String.fromCharCode(this.data[this.pos++]));return Zi}.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(at);break;case"fcTL":Qr&&this.animation.frames.push(Qr),this.pos+=4,Qr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Jr=this.readUInt16(),cr=this.readUInt16()||100,Qr.delay=1e3*Jr/cr,Qr.disposeOp=this.data[this.pos++],Qr.blendOp=this.data[this.pos++],Qr.data=[];break;case"IDAT":case"fdAT":for(Wn==="fdAT"&&(this.pos+=4,at-=4),$e=(Qr!=null?Qr.data:void 0)||this.imgData,bn=0;0<=at?bn<at:bn>at;0<=at?++bn:--bn)$e.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(at),this.transparency.indexed.length>ft)throw new Error("More transparent colors than palette size");if((kr=ft-this.transparency.indexed.length)>0)for(qr=0;0<=kr?qr<kr:qr>kr;0<=kr?++qr:--qr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(at)[0];break;case 2:this.transparency.rgb=this.read(at)}break;case"tEXt":fn=(kn=this.read(at)).indexOf(0),pr=String.fromCharCode.apply(String,kn.slice(0,fn)),this.text[pr]=String.fromCharCode.apply(String,kn.slice(fn+1));break;case"IEND":return Qr&&this.animation.frames.push(Qr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(fi=this.colorType)===4||fi===6,wt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*wt,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+=at}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ye.prototype.read=function($e){var at,wt;for(wt=[],at=0;0<=$e?at<$e:at>$e;0<=$e?++at:--at)wt.push(this.data[this.pos++]);return wt},Ye.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ye.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ye.prototype.decodePixels=function($e){var at=this.pixelBitlength/8,wt=new Uint8Array(this.width*this.height*at),ft=0,cr=this;if($e==null&&($e=this.imgData),$e.length===0)return new Uint8Array(0);function Jr(Qr,fn,pr,Wn){var kr,kn,bn,qr,fi,Mi,Zi,tn,En,Vn,Wt,Et,kt,Bt,Kt,Ot,sr,fr,vr,Rr,Kn,Dn=Math.ceil((cr.width-Qr)/pr),ui=Math.ceil((cr.height-fn)/Wn),pn=cr.width==Dn&&cr.height==ui;for(Bt=at*Dn,Et=pn?wt:new Uint8Array(Bt*ui),Mi=$e.length,kt=0,kn=0;kt<ui&&ft<Mi;){switch($e[ft++]){case 0:for(qr=sr=0;sr<Bt;qr=sr+=1)Et[kn++]=$e[ft++];break;case 1:for(qr=fr=0;fr<Bt;qr=fr+=1)kr=$e[ft++],fi=qr<at?0:Et[kn-at],Et[kn++]=(kr+fi)%256;break;case 2:for(qr=vr=0;vr<Bt;qr=vr+=1)kr=$e[ft++],bn=(qr-qr%at)/at,Kt=kt&&Et[(kt-1)*Bt+bn*at+qr%at],Et[kn++]=(Kt+kr)%256;break;case 3:for(qr=Rr=0;Rr<Bt;qr=Rr+=1)kr=$e[ft++],bn=(qr-qr%at)/at,fi=qr<at?0:Et[kn-at],Kt=kt&&Et[(kt-1)*Bt+bn*at+qr%at],Et[kn++]=(kr+Math.floor((fi+Kt)/2))%256;break;case 4:for(qr=Kn=0;Kn<Bt;qr=Kn+=1)kr=$e[ft++],bn=(qr-qr%at)/at,fi=qr<at?0:Et[kn-at],kt===0?Kt=Ot=0:(Kt=Et[(kt-1)*Bt+bn*at+qr%at],Ot=bn&&Et[(kt-1)*Bt+(bn-1)*at+qr%at]),Zi=fi+Kt-Ot,tn=Math.abs(Zi-fi),Vn=Math.abs(Zi-Kt),Wt=Math.abs(Zi-Ot),En=tn<=Vn&&tn<=Wt?fi:Vn<=Wt?Kt:Ot,Et[kn++]=(kr+En)%256;break;default:throw new Error("Invalid filter algorithm: "+$e[ft-1])}if(!pn){var Br=((fn+kt*Wn)*cr.width+Qr)*at,Tn=kt*Bt;for(qr=0;qr<Dn;qr+=1){for(var zn=0;zn<at;zn+=1)wt[Br++]=Et[Tn++];Br+=(pr-1)*at}}kt++}}return $e=Object(A.a)($e),cr.interlaceMethod==1?(Jr(0,0,8,8),Jr(4,0,8,8),Jr(0,4,4,8),Jr(2,0,4,4),Jr(0,2,2,4),Jr(1,0,2,2),Jr(0,1,1,2)):Jr(0,0,1,1),wt},Ye.prototype.decodePalette=function(){var $e,at,wt,ft,cr,Jr,Qr,fn,pr;for(wt=this.palette,Jr=this.transparency.indexed||[],cr=new Uint8Array((Jr.length||0)+wt.length),ft=0,$e=0,at=Qr=0,fn=wt.length;Qr<fn;at=Qr+=3)cr[ft++]=wt[at],cr[ft++]=wt[at+1],cr[ft++]=wt[at+2],cr[ft++]=(pr=Jr[$e++])!=null?pr:255;return cr},Ye.prototype.copyToImageData=function($e,at){var wt,ft,cr,Jr,Qr,fn,pr,Wn,kr,kn,bn;if(ft=this.colors,kr=null,wt=this.hasAlphaChannel,this.palette.length&&(kr=(bn=this._decodedPalette)!=null?bn:this._decodedPalette=this.decodePalette(),ft=4,wt=!0),Wn=(cr=$e.data||$e).length,Qr=kr||at,Jr=fn=0,ft===1)for(;Jr<Wn;)pr=kr?4*at[Jr/4]:fn,kn=Qr[pr++],cr[Jr++]=kn,cr[Jr++]=kn,cr[Jr++]=kn,cr[Jr++]=wt?Qr[pr++]:255,fn=pr;else for(;Jr<Wn;)pr=kr?4*at[Jr/4]:fn,cr[Jr++]=Qr[pr++],cr[Jr++]=Qr[pr++],cr[Jr++]=Qr[pr++],cr[Jr++]=wt?Qr[pr++]:255,fn=pr},Ye.prototype.decode=function(){var $e;return $e=new Uint8Array(this.width*this.height*4),this.copyToImageData($e,this.decodePixels()),$e};var et=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Re=m.document.createElement("canvas"),Ue=Re.getContext("2d")}catch(at){return!1}return!0}return!1};return et(),rt=function(at){var wt;if(et()===!0)return Ue.width=at.width,Ue.height=at.height,Ue.clearRect(0,0,at.width,at.height),Ue.putImageData(at,0,0),(wt=new Image).src=Re.toDataURL(),wt;throw new Error("This method requires a Browser with Canvas-capability.")},Ye.prototype.decodeFrames=function($e){var at,wt,ft,cr,Jr,Qr,fn,pr;if(this.animation){for(pr=[],wt=Jr=0,Qr=(fn=this.animation.frames).length;Jr<Qr;wt=++Jr)at=fn[wt],ft=$e.createImageData(at.width,at.height),cr=this.decodePixels(new Uint8Array(at.data)),this.copyToImageData(ft,cr),at.imageData=ft,pr.push(at.image=rt(ft));return pr}},Ye.prototype.renderFrame=function($e,at){var wt,ft,cr;return wt=(ft=this.animation.frames)[at],cr=ft[at-1],at===0&&$e.clearRect(0,0,this.width,this.height),(cr!=null?cr.disposeOp:void 0)===1?$e.clearRect(cr.xOffset,cr.yOffset,cr.width,cr.height):(cr!=null?cr.disposeOp:void 0)===2&&$e.putImageData(cr.imageData,cr.xOffset,cr.yOffset),wt.blendOp===0&&$e.clearRect(wt.xOffset,wt.yOffset,wt.width,wt.height),$e.drawImage(wt.image,wt.xOffset,wt.yOffset)},Ye.prototype.animate=function($e){var at,wt,ft,cr,Jr,Qr,fn=this;return wt=0,Qr=this.animation,cr=Qr.numFrames,ft=Qr.frames,Jr=Qr.numPlays,(at=function(){var Wn,kr;if(Wn=wt++%cr,kr=ft[Wn],fn.renderFrame($e,Wn),cr>1&&wt/cr<Jr)return fn.animation._timeout=setTimeout(at,kr.delay)})()},Ye.prototype.stopAnimation=function(){var $e;return clearTimeout(($e=this.animation)!=null?$e._timeout:void 0)},Ye.prototype.render=function($e){var at,wt;return $e._png&&$e._png.stopAnimation(),$e._png=this,$e.width=this.width,$e.height=this.height,at=$e.getContext("2d"),this.animation?(this.decodeFrames(at),this.animate(at)):(wt=at.createImageData(this.width,this.height),this.copyToImageData(wt,this.decodePixels()),at.putImageData(wt,0,0))},Ye}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function vt(rt){var Re=0;if(rt[Re++]!==71||rt[Re++]!==73||rt[Re++]!==70||rt[Re++]!==56||(rt[Re++]+1&253)!=56||rt[Re++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ue=rt[Re++]|rt[Re++]<<8,Ye=rt[Re++]|rt[Re++]<<8,et=rt[Re++],$e=et>>7,at=1<<(7&et)+1;rt[Re++],rt[Re++];var wt=null,ft=null;$e&&(wt=Re,ft=at,Re+=3*at);var cr=!0,Jr=[],Qr=0,fn=null,pr=0,Wn=null;for(this.width=Ue,this.height=Ye;cr&&Re<rt.length;)switch(rt[Re++]){case 33:switch(rt[Re++]){case 255:if(rt[Re]!==11||rt[Re+1]==78&&rt[Re+2]==69&&rt[Re+3]==84&&rt[Re+4]==83&&rt[Re+5]==67&&rt[Re+6]==65&&rt[Re+7]==80&&rt[Re+8]==69&&rt[Re+9]==50&&rt[Re+10]==46&&rt[Re+11]==48&&rt[Re+12]==3&&rt[Re+13]==1&&rt[Re+16]==0)Re+=14,Wn=rt[Re++]|rt[Re++]<<8,Re++;else for(Re+=12;;){if(!((kt=rt[Re++])>=0))throw Error("Invalid block size");if(kt===0)break;Re+=kt}break;case 249:if(rt[Re++]!==4||rt[Re+4]!==0)throw new Error("Invalid graphics extension block.");var kr=rt[Re++];Qr=rt[Re++]|rt[Re++]<<8,fn=rt[Re++],(1&kr)==0&&(fn=null),pr=kr>>2&7,Re++;break;case 254:for(;;){if(!((kt=rt[Re++])>=0))throw Error("Invalid block size");if(kt===0)break;Re+=kt}break;default:throw new Error("Unknown graphic control label: 0x"+rt[Re-1].toString(16))}break;case 44:var kn=rt[Re++]|rt[Re++]<<8,bn=rt[Re++]|rt[Re++]<<8,qr=rt[Re++]|rt[Re++]<<8,fi=rt[Re++]|rt[Re++]<<8,Mi=rt[Re++],Zi=Mi>>6&1,tn=1<<(7&Mi)+1,En=wt,Vn=ft,Wt=!1;Mi>>7&&(Wt=!0,En=Re,Vn=tn,Re+=3*tn);var Et=Re;for(Re++;;){var kt;if(!((kt=rt[Re++])>=0))throw Error("Invalid block size");if(kt===0)break;Re+=kt}Jr.push({x:kn,y:bn,width:qr,height:fi,has_local_palette:Wt,palette_offset:En,palette_size:Vn,data_offset:Et,data_length:Re-Et,transparent_index:fn,interlaced:!!Zi,delay:Qr,disposal:pr});break;case 59:cr=!1;break;default:throw new Error("Unknown gif block: 0x"+rt[Re-1].toString(16))}this.numFrames=function(){return Jr.length},this.loopCount=function(){return Wn},this.frameInfo=function(Bt){if(Bt<0||Bt>=Jr.length)throw new Error("Frame index out of range.");return Jr[Bt]},this.decodeAndBlitFrameBGRA=function(Bt,Kt){var Ot=this.frameInfo(Bt),sr=Ot.width*Ot.height,fr=new Uint8Array(sr);St(rt,Ot.data_offset,fr,sr);var vr=Ot.palette_offset,Rr=Ot.transparent_index;Rr===null&&(Rr=256);var Kn=Ot.width,Dn=Ue-Kn,ui=Kn,pn=4*(Ot.y*Ue+Ot.x),Br=4*((Ot.y+Ot.height)*Ue+Ot.x),Tn=pn,zn=4*Dn;Ot.interlaced===!0&&(zn+=4*Ue*7);for(var Qn=8,ii=0,xi=fr.length;ii<xi;++ii){var Di=fr[ii];if(ui===0&&(ui=Kn,(Tn+=zn)>=Br&&(zn=4*Dn+4*Ue*(Qn-1),Tn=pn+(Kn+Dn)*(Qn<<1),Qn>>=1)),Di===Rr)Tn+=4;else{var Li=rt[vr+3*Di],oa=rt[vr+3*Di+1],ma=rt[vr+3*Di+2];Kt[Tn++]=ma,Kt[Tn++]=oa,Kt[Tn++]=Li,Kt[Tn++]=255}--ui}},this.decodeAndBlitFrameRGBA=function(Bt,Kt){var Ot=this.frameInfo(Bt),sr=Ot.width*Ot.height,fr=new Uint8Array(sr);St(rt,Ot.data_offset,fr,sr);var vr=Ot.palette_offset,Rr=Ot.transparent_index;Rr===null&&(Rr=256);var Kn=Ot.width,Dn=Ue-Kn,ui=Kn,pn=4*(Ot.y*Ue+Ot.x),Br=4*((Ot.y+Ot.height)*Ue+Ot.x),Tn=pn,zn=4*Dn;Ot.interlaced===!0&&(zn+=4*Ue*7);for(var Qn=8,ii=0,xi=fr.length;ii<xi;++ii){var Di=fr[ii];if(ui===0&&(ui=Kn,(Tn+=zn)>=Br&&(zn=4*Dn+4*Ue*(Qn-1),Tn=pn+(Kn+Dn)*(Qn<<1),Qn>>=1)),Di===Rr)Tn+=4;else{var Li=rt[vr+3*Di],oa=rt[vr+3*Di+1],ma=rt[vr+3*Di+2];Kt[Tn++]=Li,Kt[Tn++]=oa,Kt[Tn++]=ma,Kt[Tn++]=255}--ui}}}function St(rt,Re,Ue,Ye){for(var et=rt[Re++],$e=1<<et,at=$e+1,wt=at+1,ft=et+1,cr=(1<<ft)-1,Jr=0,Qr=0,fn=0,pr=rt[Re++],Wn=new Int32Array(4096),kr=null;;){for(;Jr<16&&pr!==0;)Qr|=rt[Re++]<<Jr,Jr+=8,pr===1?pr=rt[Re++]:--pr;if(Jr<ft)break;var kn=Qr&cr;if(Qr>>=ft,Jr-=ft,kn!==$e){if(kn===at)break;for(var bn=kn<wt?kn:kr,qr=0,fi=bn;fi>$e;)fi=Wn[fi]>>8,++qr;var Mi=fi;if(fn+qr+(bn!==kn?1:0)>Ye)return void h.log("Warning, gif stream longer than expected.");Ue[fn++]=Mi;var Zi=fn+=qr;for(bn!==kn&&(Ue[fn++]=Mi),fi=bn;qr--;)fi=Wn[fi],Ue[--Zi]=255&fi,fi>>=8;kr!==null&&wt<4096&&(Wn[wt++]=kr<<8|Mi,wt>=cr+1&&ft<12&&(++ft,cr=cr<<1|1)),kr=kn}else wt=at+1,cr=(1<<(ft=et+1))-1,kr=null}return fn!==Ye&&h.log("Warning, gif stream shorter than expected."),Ue}/**
* @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 Vt(rt){var Re,Ue,Ye,et,$e,at=Math.floor,wt=new Array(64),ft=new Array(64),cr=new Array(64),Jr=new Array(64),Qr=new Array(65535),fn=new Array(65535),pr=new Array(64),Wn=new Array(64),kr=[],kn=0,bn=7,qr=new Array(64),fi=new Array(64),Mi=new Array(64),Zi=new Array(256),tn=new Array(2048),En=[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],Vn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Wt=[0,1,2,3,4,5,6,7,8,9,10,11],Et=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],kt=[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],Bt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Kt=[0,1,2,3,4,5,6,7,8,9,10,11],Ot=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],sr=[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 fr(pn,Br){for(var Tn=0,zn=0,Qn=new Array,ii=1;ii<=16;ii++){for(var xi=1;xi<=pn[ii];xi++)Qn[Br[zn]]=[],Qn[Br[zn]][0]=Tn,Qn[Br[zn]][1]=ii,zn++,Tn++;Tn*=2}return Qn}function vr(pn){for(var Br=pn[0],Tn=pn[1]-1;Tn>=0;)Br&1<<Tn&&(kn|=1<<bn),Tn--,--bn<0&&(kn==255?(Rr(255),Rr(0)):Rr(kn),bn=7,kn=0)}function Rr(pn){kr.push(pn)}function Kn(pn){Rr(pn>>8&255),Rr(255&pn)}function Dn(pn,Br,Tn,zn,Qn){for(var ii,xi=Qn[0],Di=Qn[240],Li=function(ea,aa){var Ir,wr,xn,ur,Dr,Vr,sn,Rn,xt,_r,Or=0;for(xt=0;xt<8;++xt){Ir=ea[Or],wr=ea[Or+1],xn=ea[Or+2],ur=ea[Or+3],Dr=ea[Or+4],Vr=ea[Or+5],sn=ea[Or+6];var en=Ir+(Rn=ea[Or+7]),wn=Ir-Rn,_n=wr+sn,yn=wr-sn,Jn=xn+Vr,Un=xn-Vr,pi=ur+Dr,ki=ur-Dr,yi=en+pi,_i=en-pi,Ki=_n+Jn,qi=_n-Jn;ea[Or]=yi+Ki,ea[Or+4]=yi-Ki;var zi=.707106781*(qi+_i);ea[Or+2]=_i+zi,ea[Or+6]=_i-zi;var Hi=.382683433*((yi=ki+Un)-(qi=yn+wn)),Ui=.5411961*yi+Hi,Qi=1.306562965*qi+Hi,ca=.707106781*(Ki=Un+yn),Ca=wn+ca,ra=wn-ca;ea[Or+5]=ra+Ui,ea[Or+3]=ra-Ui,ea[Or+1]=Ca+Qi,ea[Or+7]=Ca-Qi,Or+=8}for(Or=0,xt=0;xt<8;++xt){Ir=ea[Or],wr=ea[Or+8],xn=ea[Or+16],ur=ea[Or+24],Dr=ea[Or+32],Vr=ea[Or+40],sn=ea[Or+48];var Ma=Ir+(Rn=ea[Or+56]),La=Ir-Rn,va=wr+sn,ga=wr-sn,Oa=xn+Vr,Aa=xn-Vr,Ga=ur+Dr,_a=ur-Dr,Va=Ma+Ga,Bi=Ma-Ga,io=va+Oa,oo=va-Oa;ea[Or]=Va+io,ea[Or+32]=Va-io;var Qo=.707106781*(oo+Bi);ea[Or+16]=Bi+Qo,ea[Or+48]=Bi-Qo;var mo=.382683433*((Va=_a+Aa)-(oo=ga+La)),To=.5411961*Va+mo,ao=1.306562965*oo+mo,So=.707106781*(io=Aa+ga),bo=La+So,to=La-So;ea[Or+40]=to+To,ea[Or+24]=to-To,ea[Or+8]=bo+ao,ea[Or+56]=bo-ao,Or++}for(xt=0;xt<64;++xt)_r=ea[xt]*aa[xt],pr[xt]=_r>0?_r+.5|0:_r-.5|0;return pr}(pn,Br),oa=0;oa<64;++oa)Wn[En[oa]]=Li[oa];var ma=Wn[0]-Tn;Tn=Wn[0],ma==0?vr(zn[0]):(vr(zn[fn[ii=32767+ma]]),vr(Qr[ii]));for(var ia=63;ia>0&&Wn[ia]==0;)ia--;if(ia==0)return vr(xi),Tn;for(var ba,vi=1;vi<=ia;){for(var Ln=vi;Wn[vi]==0&&vi<=ia;)++vi;var Fi=vi-Ln;if(Fi>=16){ba=Fi>>4;for(var ha=1;ha<=ba;++ha)vr(Di);Fi&=15}ii=32767+Wn[vi],vr(Qn[(Fi<<4)+fn[ii]]),vr(Qr[ii]),vi++}return ia!=63&&vr(xi),Tn}function ui(pn){(pn=Math.min(Math.max(pn,1),100),$e!=pn)&&(!function(Br){for(var Tn=[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],zn=0;zn<64;zn++){var Qn=at((Tn[zn]*Br+50)/100);Qn=Math.min(Math.max(Qn,1),255),wt[En[zn]]=Qn}for(var ii=[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],xi=0;xi<64;xi++){var Di=at((ii[xi]*Br+50)/100);Di=Math.min(Math.max(Di,1),255),ft[En[xi]]=Di}for(var Li=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],oa=0,ma=0;ma<8;ma++)for(var ia=0;ia<8;ia++)cr[oa]=1/(wt[En[oa]]*Li[ma]*Li[ia]*8),Jr[oa]=1/(ft[En[oa]]*Li[ma]*Li[ia]*8),oa++}(pn<50?Math.floor(5e3/pn):Math.floor(200-2*pn)),$e=pn)}this.encode=function(pn,Br){Br&&ui(Br),kr=new Array,kn=0,bn=7,Kn(65496),Kn(65504),Kn(16),Rr(74),Rr(70),Rr(73),Rr(70),Rr(0),Rr(1),Rr(1),Rr(0),Kn(1),Kn(1),Rr(0),Rr(0),function(){Kn(65499),Kn(132),Rr(0);for(var wr=0;wr<64;wr++)Rr(wt[wr]);Rr(1);for(var xn=0;xn<64;xn++)Rr(ft[xn])}(),function(wr,xn){Kn(65472),Kn(17),Rr(8),Kn(xn),Kn(wr),Rr(3),Rr(1),Rr(17),Rr(0),Rr(2),Rr(17),Rr(1),Rr(3),Rr(17),Rr(1)}(pn.width,pn.height),function(){Kn(65476),Kn(418),Rr(0);for(var wr=0;wr<16;wr++)Rr(Vn[wr+1]);for(var xn=0;xn<=11;xn++)Rr(Wt[xn]);Rr(16);for(var ur=0;ur<16;ur++)Rr(Et[ur+1]);for(var Dr=0;Dr<=161;Dr++)Rr(kt[Dr]);Rr(1);for(var Vr=0;Vr<16;Vr++)Rr(Bt[Vr+1]);for(var sn=0;sn<=11;sn++)Rr(Kt[sn]);Rr(17);for(var Rn=0;Rn<16;Rn++)Rr(Ot[Rn+1]);for(var xt=0;xt<=161;xt++)Rr(sr[xt])}(),Kn(65498),Kn(12),Rr(3),Rr(1),Rr(0),Rr(2),Rr(17),Rr(3),Rr(17),Rr(0),Rr(63),Rr(0);var Tn=0,zn=0,Qn=0;kn=0,bn=7,this.encode.displayName="_encode_";for(var ii,xi,Di,Li,oa,ma,ia,ba,vi,Ln=pn.data,Fi=pn.width,ha=pn.height,ea=4*Fi,aa=0;aa<ha;){for(ii=0;ii<ea;){for(oa=ea*aa+ii,ia=-1,ba=0,vi=0;vi<64;vi++)ma=oa+(ba=vi>>3)*ea+(ia=4*(7&vi)),aa+ba>=ha&&(ma-=ea*(aa+1+ba-ha)),ii+ia>=ea&&(ma-=ii+ia-ea+4),xi=Ln[ma++],Di=Ln[ma++],Li=Ln[ma++],qr[vi]=(tn[xi]+tn[Di+256>>0]+tn[Li+512>>0]>>16)-128,fi[vi]=(tn[xi+768>>0]+tn[Di+1024>>0]+tn[Li+1280>>0]>>16)-128,Mi[vi]=(tn[xi+1280>>0]+tn[Di+1536>>0]+tn[Li+1792>>0]>>16)-128;Tn=Dn(qr,cr,Tn,Re,Ye),zn=Dn(fi,Jr,zn,Ue,et),Qn=Dn(Mi,Jr,Qn,Ue,et),ii+=32}aa+=8}if(bn>=0){var Ir=[];Ir[1]=bn+1,Ir[0]=(1<<bn+1)-1,vr(Ir)}return Kn(65497),new Uint8Array(kr)},rt=rt||50,function(){for(var pn=String.fromCharCode,Br=0;Br<256;Br++)Zi[Br]=pn(Br)}(),Re=fr(Vn,Wt),Ue=fr(Bt,Kt),Ye=fr(Et,kt),et=fr(Ot,sr),function(){for(var pn=1,Br=2,Tn=1;Tn<=15;Tn++){for(var zn=pn;zn<Br;zn++)fn[32767+zn]=Tn,Qr[32767+zn]=[],Qr[32767+zn][1]=Tn,Qr[32767+zn][0]=zn;for(var Qn=-(Br-1);Qn<=-pn;Qn++)fn[32767+Qn]=Tn,Qr[32767+Qn]=[],Qr[32767+Qn][1]=Tn,Qr[32767+Qn][0]=Br-1+Qn;pn<<=1,Br<<=1}}(),function(){for(var pn=0;pn<256;pn++)tn[pn]=19595*pn,tn[pn+256>>0]=38470*pn,tn[pn+512>>0]=7471*pn+32768,tn[pn+768>>0]=-11059*pn,tn[pn+1024>>0]=-21709*pn,tn[pn+1280>>0]=32768*pn+8421375,tn[pn+1536>>0]=-27439*pn,tn[pn+1792>>0]=-5329*pn}(),ui(rt)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Mr(rt,Re){if(this.pos=0,this.buffer=rt,this.datav=new DataView(rt.buffer),this.is_with_alpha=!!Re,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 $r(rt){function Re(Vn){if(!Vn)throw Error("assert :P")}function Ue(Vn,Wt,Et){for(var kt=0;4>kt;kt++)if(Vn[Wt+kt]!=Et.charCodeAt(kt))return!0;return!1}function Ye(Vn,Wt,Et,kt,Bt){for(var Kt=0;Kt<Bt;Kt++)Vn[Wt+Kt]=Et[kt+Kt]}function et(Vn,Wt,Et,kt){for(var Bt=0;Bt<kt;Bt++)Vn[Wt+Bt]=Et}function $e(Vn){return new Int32Array(Vn)}function at(Vn,Wt){for(var Et=[],kt=0;kt<Vn;kt++)Et.push(new Wt);return Et}function wt(Vn,Wt){var Et=[];return function kt(Bt,Kt,Ot){for(var sr=Ot[Kt],fr=0;fr<sr&&(Bt.push(Ot.length>Kt+1?[]:new Wt),!(Ot.length<Kt+1));fr++)kt(Bt[fr],Kt+1,Ot)}(Et,0,Vn),Et}var ft=function(){var Wt=this;function Et(xe,Je){for(var bt=1<<Je-1>>>0;xe&bt;)bt>>>=1;return bt?(xe&bt-1)+bt:xe}function kt(xe,Je,bt,lr,Fr){Re(!(lr%bt));do xe[Je+(lr-=bt)]=Fr;while(0<lr)}function Bt(xe,Je,bt,lr,Fr){if(Re(2328>=Fr),512>=Fr)var an=$e(512);else if((an=$e(Fr))==null)return 0;return function(Be,ae,Oe,qe,At,Ut){var $t,rr,Wr=ae,cn=1<<Oe,Hr=$e(16),Ur=$e(16);for(Re(At!=0),Re(qe!=null),Re(Be!=null),Re(0<Oe),rr=0;rr<At;++rr){if(15<qe[rr])return 0;++Hr[qe[rr]]}if(Hr[0]==At)return 0;for(Ur[1]=0,$t=1;15>$t;++$t){if(Hr[$t]>1<<$t)return 0;Ur[$t+1]=Ur[$t]+Hr[$t]}for(rr=0;rr<At;++rr)$t=qe[rr],0<qe[rr]&&(Ut[Ur[$t]++]=rr);if(Ur[15]==1)return(qe=new Kt).g=0,qe.value=Ut[0],kt(Be,Wr,1,cn,qe),cn;var on,gn=-1,Hn=cn-1,Oi=0,Ri=1,da=1,Ji=1<<Oe;for(rr=0,$t=1,At=2;$t<=Oe;++$t,At<<=1){if(Ri+=da<<=1,0>(da-=Hr[$t]))return 0;for(;0<Hr[$t];--Hr[$t])(qe=new Kt).g=$t,qe.value=Ut[rr++],kt(Be,Wr+Oi,At,Ji,qe),Oi=Et(Oi,$t)}for($t=Oe+1,At=2;15>=$t;++$t,At<<=1){if(Ri+=da<<=1,0>(da-=Hr[$t]))return 0;for(;0<Hr[$t];--Hr[$t]){if(qe=new Kt,(Oi&Hn)!=gn){for(Wr+=Ji,on=1<<(gn=$t)-Oe;15>gn&&!(0>=(on-=Hr[gn]));)++gn,on<<=1;cn+=Ji=1<<(on=gn-Oe),Be[ae+(gn=Oi&Hn)].g=on+Oe,Be[ae+gn].value=Wr-ae-gn}qe.g=$t-Oe,qe.value=Ut[rr++],kt(Be,Wr+(Oi>>Oe),At,Ji,qe),Oi=Et(Oi,$t)}}return Ri!=2*Ur[15]-1?0:cn}(xe,Je,bt,lr,Fr,an)}function Kt(){this.value=this.g=0}function Ot(){this.value=this.g=0}function sr(){this.G=at(5,Kt),this.H=$e(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=at(vo,Ot)}function fr(xe,Je,bt,lr){Re(xe!=null),Re(Je!=null),Re(2147483648>lr),xe.Ca=254,xe.I=0,xe.b=-8,xe.Ka=0,xe.oa=Je,xe.pa=bt,xe.Jd=Je,xe.Yc=bt+lr,xe.Zc=4<=lr?bt+lr-4+1:bt,xi(xe)}function vr(xe,Je){for(var bt=0;0<Je--;)bt|=Li(xe,128)<<Je;return bt}function Rr(xe,Je){var bt=vr(xe,Je);return Di(xe)?-bt:bt}function Kn(xe,Je,bt,lr){var Fr,an=0;for(Re(xe!=null),Re(Je!=null),Re(4294967288>lr),xe.Sb=lr,xe.Ra=0,xe.u=0,xe.h=0,4<lr&&(lr=4),Fr=0;Fr<lr;++Fr)an+=Je[bt+Fr]<<8*Fr;xe.Ra=an,xe.bb=lr,xe.oa=Je,xe.pa=bt}function Dn(xe){for(;8<=xe.u&&xe.bb<xe.Sb;)xe.Ra>>>=8,xe.Ra+=xe.oa[xe.pa+xe.bb]<<gs-8>>>0,++xe.bb,xe.u-=8;zn(xe)&&(xe.h=1,xe.u=0)}function ui(xe,Je){if(Re(0<=Je),!xe.h&&Je<=rl){var bt=Tn(xe)&Ms[Je];return xe.u+=Je,Dn(xe),bt}return xe.h=1,xe.u=0}function pn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Br(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Tn(xe){return xe.Ra>>>(xe.u&gs-1)>>>0}function zn(xe){return Re(xe.bb<=xe.Sb),xe.h||xe.bb==xe.Sb&&xe.u>gs}function Qn(xe,Je){xe.u=Je,xe.h=zn(xe)}function ii(xe){xe.u>=Ra&&(Re(xe.u>=Ra),Dn(xe))}function xi(xe){Re(xe!=null&&xe.oa!=null),xe.pa<xe.Zc?(xe.I=(xe.oa[xe.pa++]|xe.I<<8)>>>0,xe.b+=8):(Re(xe!=null&&xe.oa!=null),xe.pa<xe.Yc?(xe.b+=8,xe.I=xe.oa[xe.pa++]|xe.I<<8):xe.Ka?xe.b=0:(xe.I<<=8,xe.b+=8,xe.Ka=1))}function Di(xe){return vr(xe,1)}function Li(xe,Je){var bt=xe.Ca;0>xe.b&&xi(xe);var lr=xe.b,Fr=bt*Je>>>8,an=(xe.I>>>lr>Fr)+0;for(an?(bt-=Fr,xe.I-=Fr+1<<lr>>>0):bt=Fr+1,lr=bt,Fr=0;256<=lr;)Fr+=8,lr>>=8;return lr=7^Fr+dl[lr],xe.b-=lr,xe.Ca=(bt<<lr)-1,an}function oa(xe,Je,bt){xe[Je+0]=bt>>24&255,xe[Je+1]=bt>>16&255,xe[Je+2]=bt>>8&255,xe[Je+3]=bt>>0&255}function ma(xe,Je){return xe[Je+0]<<0|xe[Je+1]<<8}function ia(xe,Je){return ma(xe,Je)|xe[Je+2]<<16}function ba(xe,Je){return ma(xe,Je)|ma(xe,Je+2)<<16}function vi(xe,Je){var bt=1<<Je;return Re(xe!=null),Re(0<Je),xe.X=$e(bt),xe.X==null?0:(xe.Mb=32-Je,xe.Xa=Je,1)}function Ln(xe,Je){Re(xe!=null),Re(Je!=null),Re(xe.Xa==Je.Xa),Ye(Je.X,0,xe.X,0,1<<Je.Xa)}function Fi(){this.X=[],this.Xa=this.Mb=0}function ha(xe,Je,bt,lr){Re(bt!=null),Re(lr!=null);var Fr=bt[0],an=lr[0];return Fr==0&&(Fr=(xe*an+Je/2)/Je),an==0&&(an=(Je*Fr+xe/2)/xe),0>=Fr||0>=an?0:(bt[0]=Fr,lr[0]=an,1)}function ea(xe,Je){return xe+(1<<Je)-1>>>Je}function aa(xe,Je){return((4278255360&xe)+(4278255360&Je)>>>0&4278255360)+((16711935&xe)+(16711935&Je)>>>0&16711935)>>>0}function Ir(xe,Je){Wt[Je]=function(bt,lr,Fr,an,Be,ae,Oe){var qe;for(qe=0;qe<Be;++qe){var At=Wt[xe](ae[Oe+qe-1],Fr,an+qe);ae[Oe+qe]=aa(bt[lr+qe],At)}}}function wr(){this.ud=this.hd=this.jd=0}function xn(xe,Je){return((4278124286&(xe^Je))>>>1)+(xe&Je)>>>0}function ur(xe){return 0<=xe&&256>xe?xe:0>xe?0:255<xe?255:void 0}function Dr(xe,Je){return ur(xe+(xe-Je+.5>>1))}function Vr(xe,Je,bt){return Math.abs(Je-bt)-Math.abs(xe-bt)}function sn(xe,Je,bt,lr,Fr,an,Be){for(lr=an[Be-1],bt=0;bt<Fr;++bt)an[Be+bt]=lr=aa(xe[Je+bt],lr)}function Rn(xe,Je,bt,lr,Fr){var an;for(an=0;an<bt;++an){var Be=xe[Je+an],ae=Be>>8&255,Oe=16711935&(Oe=(Oe=16711935&Be)+((ae<<16)+ae));lr[Fr+an]=(4278255360&Be)+Oe>>>0}}function xt(xe,Je){Je.jd=xe>>0&255,Je.hd=xe>>8&255,Je.ud=xe>>16&255}function _r(xe,Je,bt,lr,Fr,an){var Be;for(Be=0;Be<lr;++Be){var ae=Je[bt+Be],Oe=ae>>>8,qe=ae,At=255&(At=(At=ae>>>16)+((xe.jd<<24>>24)*(Oe<<24>>24)>>>5));qe=255&(qe=(qe=qe+((xe.hd<<24>>24)*(Oe<<24>>24)>>>5))+((xe.ud<<24>>24)*(At<<24>>24)>>>5)),Fr[an+Be]=(4278255360&ae)+(At<<16)+qe}}function Or(xe,Je,bt,lr,Fr){Wt[Je]=function(an,Be,ae,Oe,qe,At,Ut,$t,rr){for(Oe=Ut;Oe<$t;++Oe)for(Ut=0;Ut<rr;++Ut)qe[At++]=Fr(ae[lr(an[Be++])])},Wt[xe]=function(an,Be,ae,Oe,qe,At,Ut){var $t=8>>an.b,rr=an.Ea,Wr=an.K[0],cn=an.w;if(8>$t)for(an=(1<<an.b)-1,cn=(1<<$t)-1;Be<ae;++Be){var Hr,Ur=0;for(Hr=0;Hr<rr;++Hr)Hr&an||(Ur=lr(Oe[qe++])),At[Ut++]=Fr(Wr[Ur&cn]),Ur>>=$t}else Wt["VP8LMapColor"+bt](Oe,qe,Wr,cn,At,Ut,Be,ae,rr)}}function en(xe,Je,bt,lr,Fr){for(bt=Je+bt;Je<bt;){var an=xe[Je++];lr[Fr++]=an>>16&255,lr[Fr++]=an>>8&255,lr[Fr++]=an>>0&255}}function wn(xe,Je,bt,lr,Fr){for(bt=Je+bt;Je<bt;){var an=xe[Je++];lr[Fr++]=an>>16&255,lr[Fr++]=an>>8&255,lr[Fr++]=an>>0&255,lr[Fr++]=an>>24&255}}function _n(xe,Je,bt,lr,Fr){for(bt=Je+bt;Je<bt;){var an=(Be=xe[Je++])>>16&240|Be>>12&15,Be=Be>>0&240|Be>>28&15;lr[Fr++]=an,lr[Fr++]=Be}}function yn(xe,Je,bt,lr,Fr){for(bt=Je+bt;Je<bt;){var an=(Be=xe[Je++])>>16&248|Be>>13&7,Be=Be>>5&224|Be>>3&31;lr[Fr++]=an,lr[Fr++]=Be}}function Jn(xe,Je,bt,lr,Fr){for(bt=Je+bt;Je<bt;){var an=xe[Je++];lr[Fr++]=an>>0&255,lr[Fr++]=an>>8&255,lr[Fr++]=an>>16&255}}function Un(xe,Je,bt,lr,Fr,an){if(an==0)for(bt=Je+bt;Je<bt;)oa(lr,((an=xe[Je++])[0]>>24|an[1]>>8&65280|an[2]<<8&16711680|an[3]<<24)>>>0),Fr+=32;else Ye(lr,Fr,xe,Je,bt)}function pi(xe,Je){Wt[Je][0]=Wt[xe+"0"],Wt[Je][1]=Wt[xe+"1"],Wt[Je][2]=Wt[xe+"2"],Wt[Je][3]=Wt[xe+"3"],Wt[Je][4]=Wt[xe+"4"],Wt[Je][5]=Wt[xe+"5"],Wt[Je][6]=Wt[xe+"6"],Wt[Je][7]=Wt[xe+"7"],Wt[Je][8]=Wt[xe+"8"],Wt[Je][9]=Wt[xe+"9"],Wt[Je][10]=Wt[xe+"10"],Wt[Je][11]=Wt[xe+"11"],Wt[Je][12]=Wt[xe+"12"],Wt[Je][13]=Wt[xe+"13"],Wt[Je][14]=Wt[xe+"0"],Wt[Je][15]=Wt[xe+"0"]}function ki(xe){return xe==Lu||xe==zl||xe==ru||xe==ou}function yi(){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 Ki(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new yi,this.f.kb=new _i,this.sd=null}function qi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function zi(){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 Hi(xe){return alert("todo:WebPSamplerProcessPlane"),xe.T}function Ui(xe,Je){var bt=xe.T,lr=Je.ba.f.RGBA,Fr=lr.eb,an=lr.fb+xe.ka*lr.A,Be=ze[Je.ba.S],ae=xe.y,Oe=xe.O,qe=xe.f,At=xe.N,Ut=xe.ea,$t=xe.W,rr=Je.cc,Wr=Je.dc,cn=Je.Mc,Hr=Je.Nc,Ur=xe.ka,on=xe.ka+xe.T,gn=xe.U,Hn=gn+1>>1;for(Ur==0?Be(ae,Oe,null,null,qe,At,Ut,$t,qe,At,Ut,$t,Fr,an,null,null,gn):(Be(Je.ec,Je.fc,ae,Oe,rr,Wr,cn,Hr,qe,At,Ut,$t,Fr,an-lr.A,Fr,an,gn),++bt);Ur+2<on;Ur+=2)rr=qe,Wr=At,cn=Ut,Hr=$t,At+=xe.Rc,$t+=xe.Rc,an+=2*lr.A,Be(ae,(Oe+=2*xe.fa)-xe.fa,ae,Oe,rr,Wr,cn,Hr,qe,At,Ut,$t,Fr,an-lr.A,Fr,an,gn);return Oe+=xe.fa,xe.j+on<xe.o?(Ye(Je.ec,Je.fc,ae,Oe,gn),Ye(Je.cc,Je.dc,qe,At,Hn),Ye(Je.Mc,Je.Nc,Ut,$t,Hn),bt--):1&on||Be(ae,Oe,null,null,qe,At,Ut,$t,qe,At,Ut,$t,Fr,an+lr.A,null,null,gn),bt}function Qi(xe,Je,bt){var lr=xe.F,Fr=[xe.J];if(lr!=null){var an=xe.U,Be=Je.ba.S,ae=Be==Ol||Be==ru;Je=Je.ba.f.RGBA;var Oe=[0],qe=xe.ka;Oe[0]=xe.T,xe.Kb&&(qe==0?--Oe[0]:(--qe,Fr[0]-=xe.width),xe.j+xe.ka+xe.T==xe.o&&(Oe[0]=xe.o-xe.j-qe));var At=Je.eb;qe=Je.fb+qe*Je.A,xe=Nl(lr,Fr[0],xe.width,an,Oe,At,qe+(ae?0:3),Je.A),Re(bt==Oe),xe&&ki(Be)&&Wl(At,qe,ae,an,Oe,Je.A)}return 0}function ca(xe){var Je=xe.ma,bt=Je.ba.S,lr=11>bt,Fr=bt==Su||bt==Au||bt==Ol||bt==cu||bt==12||ki(bt);if(Je.memory=null,Je.Ib=null,Je.Jb=null,Je.Nd=null,!As(Je.Oa,xe,Fr?11:12))return 0;if(Fr&&ki(bt)&&Qe(),xe.da)alert("todo:use_scaling");else{if(lr){if(Je.Ib=Hi,xe.Kb){if(bt=xe.U+1>>1,Je.memory=$e(xe.U+2*bt),Je.memory==null)return 0;Je.ec=Je.memory,Je.fc=0,Je.cc=Je.ec,Je.dc=Je.fc+xe.U,Je.Mc=Je.cc,Je.Nc=Je.dc+bt,Je.Ib=Ui,Qe()}}else alert("todo:EmitYUV");Fr&&(Je.Jb=Qi,lr&&Se())}if(lr&&!ta){for(xe=0;256>xe;++xe)Pa[xe]=89858*(xe-128)+Mn>>Nn,Sa[xe]=-22014*(xe-128)+Mn,Ba[xe]=-45773*(xe-128),Ya[xe]=113618*(xe-128)+Mn>>Nn;for(xe=Yn;xe<bi;++xe)Je=76283*(xe-16)+Mn>>Nn,Go[xe-Yn]=_o(Je,255),Ls[xe-Yn]=_o(Je+8>>4,15);ta=1}return 1}function Ca(xe){var Je=xe.ma,bt=xe.U,lr=xe.T;return Re(!(1&xe.ka)),0>=bt||0>=lr?0:(bt=Je.Ib(xe,Je),Je.Jb!=null&&Je.Jb(xe,Je,bt),Je.Dc+=bt,1)}function ra(xe){xe.ma.memory=null}function Ma(xe,Je,bt,lr){return ui(xe,8)!=47?0:(Je[0]=ui(xe,14)+1,bt[0]=ui(xe,14)+1,lr[0]=ui(xe,1),ui(xe,3)!=0?0:!xe.h)}function La(xe,Je){if(4>xe)return xe+1;var bt=xe-2>>1;return(2+(1&xe)<<bt)+ui(Je,bt)+1}function va(xe,Je){return 120<Je?Je-120:1<=(bt=((bt=yu[Je-1])>>4)*xe+(8-(15&bt)))?bt:1;var bt}function ga(xe,Je,bt){var lr=Tn(bt),Fr=xe[Je+=255&lr].g-8;return 0<Fr&&(Qn(bt,bt.u+8),lr=Tn(bt),Je+=xe[Je].value,Je+=lr&(1<<Fr)-1),Qn(bt,bt.u+xe[Je].g),xe[Je].value}function Oa(xe,Je,bt){return bt.g+=xe.g,bt.value+=xe.value<<Je>>>0,Re(8>=bt.g),xe.g}function Aa(xe,Je,bt){var lr=xe.xc;return Re((Je=lr==0?0:xe.vc[xe.md*(bt>>lr)+(Je>>lr)])<xe.Wb),xe.Ya[Je]}function Ga(xe,Je,bt,lr){var Fr=xe.ab,an=xe.c*Je,Be=xe.C;Je=Be+Je;var ae=bt,Oe=lr;for(lr=xe.Ta,bt=xe.Ua;0<Fr--;){var qe=xe.gc[Fr],At=Be,Ut=Je,$t=ae,rr=Oe,Wr=(Oe=lr,ae=bt,qe.Ea);switch(Re(At<Ut),Re(Ut<=qe.nc),qe.hc){case 2:_s($t,rr,(Ut-At)*Wr,Oe,ae);break;case 0:var cn=At,Hr=Ut,Ur=Oe,on=ae,gn=(Ji=qe).Ea;cn==0&&(fl($t,rr,null,null,1,Ur,on),sn($t,rr+1,0,0,gn-1,Ur,on+1),rr+=gn,on+=gn,++cn);for(var Hn=1<<Ji.b,Oi=Hn-1,Ri=ea(gn,Ji.b),da=Ji.K,Ji=Ji.w+(cn>>Ji.b)*Ri;cn<Hr;){var Qa=da,ya=Ji,fo=1;for(js($t,rr,Ur,on-gn,1,Ur,on);fo<gn;){var za=(fo&~Oi)+Hn;za>gn&&(za=gn),(0,Ts[Qa[ya++]>>8&15])($t,rr+ +fo,Ur,on+fo-gn,za-fo,Ur,on+fo),fo=za}rr+=gn,on+=gn,++cn&Oi||(Ji+=Ri)}Ut!=qe.nc&&Ye(Oe,ae-Wr,Oe,ae+(Ut-At-1)*Wr,Wr);break;case 1:for(Wr=$t,Hr=rr,gn=($t=qe.Ea)-(on=$t&~(Ur=(rr=1<<qe.b)-1)),cn=ea($t,qe.b),Hn=qe.K,qe=qe.w+(At>>qe.b)*cn;At<Ut;){for(Oi=Hn,Ri=qe,da=new wr,Ji=Hr+on,Qa=Hr+$t;Hr<Ji;)xt(Oi[Ri++],da),Ks(da,Wr,Hr,rr,Oe,ae),Hr+=rr,ae+=rr;Hr<Qa&&(xt(Oi[Ri++],da),Ks(da,Wr,Hr,gn,Oe,ae),Hr+=gn,ae+=gn),++At&Ur||(qe+=cn)}break;case 3:if($t==Oe&&rr==ae&&0<qe.b){for(Hr=Oe,$t=Wr=ae+(Ut-At)*Wr-(on=(Ut-At)*ea(qe.Ea,qe.b)),rr=Oe,Ur=ae,cn=[],on=(gn=on)-1;0<=on;--on)cn[on]=rr[Ur+on];for(on=gn-1;0<=on;--on)Hr[$t+on]=cn[on];Xs(qe,At,Ut,Oe,Wr,Oe,ae)}else Xs(qe,At,Ut,$t,rr,Oe,ae)}ae=lr,Oe=bt}Oe!=bt&&Ye(lr,bt,ae,Oe,an)}function _a(xe,Je){var bt=xe.V,lr=xe.Ba+xe.c*xe.C,Fr=Je-xe.C;if(Re(Je<=xe.l.o),Re(16>=Fr),0<Fr){var an=xe.l,Be=xe.Ta,ae=xe.Ua,Oe=an.width;if(Ga(xe,Fr,bt,lr),Fr=ae=[ae],Re((bt=xe.C)<(lr=Je)),Re(an.v<an.va),lr>an.o&&(lr=an.o),bt<an.j){var qe=an.j-bt;bt=an.j,Fr[0]+=qe*Oe}if(bt>=lr?bt=0:(Fr[0]+=4*an.v,an.ka=bt-an.j,an.U=an.va-an.v,an.T=lr-bt,bt=1),bt){if(ae=ae[0],11>(bt=xe.ca).S){var At=bt.f.RGBA,Ut=(lr=bt.S,Fr=an.U,an=an.T,qe=At.eb,At.A),$t=an;for(At=At.fb+xe.Ma*At.A;0<$t--;){var rr=Be,Wr=ae,cn=Fr,Hr=qe,Ur=At;switch(lr){case Sl:Tl(rr,Wr,cn,Hr,Ur);break;case Su:pl(rr,Wr,cn,Hr,Ur);break;case Lu:pl(rr,Wr,cn,Hr,Ur),Wl(Hr,Ur,0,cn,1,0);break;case vu:qo(rr,Wr,cn,Hr,Ur);break;case Au:Un(rr,Wr,cn,Hr,Ur,1);break;case zl:Un(rr,Wr,cn,Hr,Ur,1),Wl(Hr,Ur,0,cn,1,0);break;case Ol:Un(rr,Wr,cn,Hr,Ur,0);break;case ru:Un(rr,Wr,cn,Hr,Ur,0),Wl(Hr,Ur,1,cn,1,0);break;case cu:jo(rr,Wr,cn,Hr,Ur);break;case ou:jo(rr,Wr,cn,Hr,Ur),au(Hr,Ur,cn,1,0);break;case du:yo(rr,Wr,cn,Hr,Ur);break;default:Re(0)}ae+=Oe,At+=Ut}xe.Ma+=an}else alert("todo:EmitRescaledRowsYUVA");Re(xe.Ma<=bt.height)}}xe.C=Je,Re(xe.C<=xe.i)}function Va(xe){var Je;if(0<xe.ua)return 0;for(Je=0;Je<xe.Wb;++Je){var bt=xe.Ya[Je].G,lr=xe.Ya[Je].H;if(0<bt[1][lr[1]+0].g||0<bt[2][lr[2]+0].g||0<bt[3][lr[3]+0].g)return 0}return 1}function Bi(xe,Je,bt,lr,Fr,an){if(xe.Z!=0){var Be=xe.qd,ae=xe.rd;for(Re(Te[xe.Z]!=null);Je<bt;++Je)Te[xe.Z](Be,ae,lr,Fr,lr,Fr,an),Be=lr,ae=Fr,Fr+=an;xe.qd=Be,xe.rd=ae}}function io(xe,Je){var bt=xe.l.ma,lr=bt.Z==0||bt.Z==1?xe.l.j:xe.C;if(lr=xe.C<lr?lr:xe.C,Re(Je<=xe.l.o),Je>lr){var Fr=xe.l.width,an=bt.ca,Be=bt.tb+Fr*lr,ae=xe.V,Oe=xe.Ba+xe.c*lr,qe=xe.gc;Re(xe.ab==1),Re(qe[0].hc==3),Ul(qe[0],lr,Je,ae,Oe,an,Be),Bi(bt,lr,Je,an,Be,Fr)}xe.C=xe.Ma=Je}function oo(xe,Je,bt,lr,Fr,an,Be){var ae=xe.$/lr,Oe=xe.$%lr,qe=xe.m,At=xe.s,Ut=bt+xe.$,$t=Ut;Fr=bt+lr*Fr;var rr=bt+lr*an,Wr=280+At.ua,cn=xe.Pb?ae:16777216,Hr=0<At.ua?At.Wa:null,Ur=At.wc,on=Ut<rr?Aa(At,Oe,ae):null;Re(xe.C<an),Re(rr<=Fr);var gn=!1;e:for(;;){for(;gn||Ut<rr;){var Hn=0;if(ae>=cn){var Oi=Ut-bt;Re((cn=xe).Pb),cn.wd=cn.m,cn.xd=Oi,0<cn.s.ua&&Ln(cn.s.Wa,cn.s.vb),cn=ae+bu}if(Oe&Ur||(on=Aa(At,Oe,ae)),Re(on!=null),on.Qb&&(Je[Ut]=on.qb,gn=!0),!gn)if(ii(qe),on.jc){Hn=qe,Oi=Je;var Ri=Ut,da=on.pd[Tn(Hn)&vo-1];Re(on.jc),256>da.g?(Qn(Hn,Hn.u+da.g),Oi[Ri]=da.value,Hn=0):(Qn(Hn,Hn.u+da.g-256),Re(256<=da.value),Hn=da.value),Hn==0&&(gn=!0)}else Hn=ga(on.G[0],on.H[0],qe);if(qe.h)break;if(gn||256>Hn){if(!gn)if(on.nd)Je[Ut]=(on.qb|Hn<<8)>>>0;else{if(ii(qe),gn=ga(on.G[1],on.H[1],qe),ii(qe),Oi=ga(on.G[2],on.H[2],qe),Ri=ga(on.G[3],on.H[3],qe),qe.h)break;Je[Ut]=(Ri<<24|gn<<16|Hn<<8|Oi)>>>0}if(gn=!1,++Ut,++Oe>=lr&&(Oe=0,++ae,Be!=null&&ae<=an&&!(ae%16)&&Be(xe,ae),Hr!=null))for(;$t<Ut;)Hn=Je[$t++],Hr.X[(506832829*Hn&4294967295)>>>Hr.Mb]=Hn}else if(280>Hn){if(Hn=La(Hn-256,qe),Oi=ga(on.G[4],on.H[4],qe),ii(qe),Oi=va(lr,Oi=La(Oi,qe)),qe.h)break;if(Ut-bt<Oi||Fr-Ut<Hn)break e;for(Ri=0;Ri<Hn;++Ri)Je[Ut+Ri]=Je[Ut+Ri-Oi];for(Ut+=Hn,Oe+=Hn;Oe>=lr;)Oe-=lr,++ae,Be!=null&&ae<=an&&!(ae%16)&&Be(xe,ae);if(Re(Ut<=Fr),Oe&Ur&&(on=Aa(At,Oe,ae)),Hr!=null)for(;$t<Ut;)Hn=Je[$t++],Hr.X[(506832829*Hn&4294967295)>>>Hr.Mb]=Hn}else{if(!(Hn<Wr))break e;for(gn=Hn-280,Re(Hr!=null);$t<Ut;)Hn=Je[$t++],Hr.X[(506832829*Hn&4294967295)>>>Hr.Mb]=Hn;Hn=Ut,Re(!(gn>>>(Oi=Hr).Xa)),Je[Hn]=Oi.X[gn],gn=!0}gn||Re(qe.h==zn(qe))}if(xe.Pb&&qe.h&&Ut<Fr)Re(xe.m.h),xe.a=5,xe.m=xe.wd,xe.$=xe.xd,0<xe.s.ua&&Ln(xe.s.vb,xe.s.Wa);else{if(qe.h)break e;Be!=null&&Be(xe,ae>an?an:ae),xe.a=0,xe.$=Ut-bt}return 1}return xe.a=3,0}function Qo(xe){Re(xe!=null),xe.vc=null,xe.yc=null,xe.Ya=null;var Je=xe.Wa;Je!=null&&(Je.X=null),xe.vb=null,Re(xe!=null)}function mo(){var xe=new No;return xe==null?null:(xe.a=0,xe.xb=Ae,pi("Predictor","VP8LPredictors"),pi("Predictor","VP8LPredictors_C"),pi("PredictorAdd","VP8LPredictorsAdd"),pi("PredictorAdd","VP8LPredictorsAdd_C"),_s=Rn,Ks=_r,Tl=en,pl=wn,jo=_n,yo=yn,qo=Jn,Wt.VP8LMapColor32b=Ql,Wt.VP8LMapColor8b=wl,xe)}function To(xe,Je,bt,lr,Fr){var an=1,Be=[xe],ae=[Je],Oe=lr.m,qe=lr.s,At=null,Ut=0;e:for(;;){if(bt)for(;an&&ui(Oe,1);){var $t=Be,rr=ae,Wr=lr,cn=1,Hr=Wr.m,Ur=Wr.gc[Wr.ab],on=ui(Hr,2);if(Wr.Oc&1<<on)an=0;else{switch(Wr.Oc|=1<<on,Ur.hc=on,Ur.Ea=$t[0],Ur.nc=rr[0],Ur.K=[null],++Wr.ab,Re(4>=Wr.ab),on){case 0:case 1:Ur.b=ui(Hr,3)+2,cn=To(ea(Ur.Ea,Ur.b),ea(Ur.nc,Ur.b),0,Wr,Ur.K),Ur.K=Ur.K[0];break;case 3:var gn,Hn=ui(Hr,8)+1,Oi=16<Hn?0:4<Hn?1:2<Hn?2:3;if($t[0]=ea(Ur.Ea,Oi),Ur.b=Oi,gn=cn=To(Hn,1,0,Wr,Ur.K)){var Ri,da=Hn,Ji=Ur,Qa=1<<(8>>Ji.b),ya=$e(Qa);if(ya==null)gn=0;else{var fo=Ji.K[0],za=Ji.w;for(ya[0]=Ji.K[0][0],Ri=1;Ri<1*da;++Ri)ya[Ri]=aa(fo[za+Ri],ya[Ri-1]);for(;Ri<4*Qa;++Ri)ya[Ri]=0;Ji.K[0]=null,Ji.K[0]=ya,gn=1}}cn=gn;break;case 2:break;default:Re(0)}an=cn}}if(Be=Be[0],ae=ae[0],an&&ui(Oe,1)&&!(an=1<=(Ut=ui(Oe,4))&&11>=Ut)){lr.a=3;break e}var Xo;if(Xo=an)t:{var ls,N,U,ie=lr,le=Be,ge=ae,Ke=Ut,Tt=bt,tr=ie.m,yr=ie.s,Cr=[null],Bn=1,qn=0,Si=xu[Ke];r:for(;;){if(Tt&&ui(tr,1)){var Ci=ui(tr,3)+2,la=ea(le,Ci),Ta=ea(ge,Ci),Wa=la*Ta;if(!To(la,Ta,0,ie,Cr))break r;for(Cr=Cr[0],yr.xc=Ci,ls=0;ls<Wa;++ls){var ka=Cr[ls]>>8&65535;Cr[ls]=ka,ka>=Bn&&(Bn=ka+1)}}if(tr.h)break r;for(N=0;5>N;++N){var Na=Du[N];!N&&0<Ke&&(Na+=1<<Ke),qn<Na&&(qn=Na)}var qa=at(Bn*Si,Kt),ho=Bn,ns=at(ho,sr);if(ns==null)var Mo=null;else Re(65536>=ho),Mo=ns;var Ss=$e(qn);if(Mo==null||Ss==null||qa==null){ie.a=1;break r}var Zs=qa;for(ls=U=0;ls<Bn;++ls){var yl=Mo[ls],ul=yl.G,Pl=yl.H,Vl=0,Il=1,Gl=0;for(N=0;5>N;++N){Na=Du[N],ul[N]=Zs,Pl[N]=U,!N&&0<Ke&&(Na+=1<<Ke);i:{var Fl,Ja=Na,vl=ie,gl=Ss,El=Zs,Bu=U,Hs=0,vs=vl.m,lu=ui(vs,1);if(et(gl,0,0,Ja),lu){var Kl=ui(vs,1)+1,Uu=ui(vs,1),Eu=ui(vs,Uu==0?1:8);gl[Eu]=1,Kl==2&&(gl[Eu=ui(vs,8)]=1);var uu=1}else{var ku=$e(19),Yl=ui(vs,4)+4;if(19<Yl){vl.a=3;var Tu=0;break i}for(Fl=0;Fl<Yl;++Fl)ku[Zl[Fl]]=ui(vs,3);var Vu=void 0,Ju=void 0,vc=vl,Ac=ku,tc=Ja,yc=gl,sc=0,ju=vc.m,hc=8,bc=at(128,Kt);n:for(;Bt(bc,0,7,Ac,19);){if(ui(ju,1)){var Tc=2+2*ui(ju,3);if((Vu=2+ui(ju,Tc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){ii(ju);var wc=bc[0+(127&Tn(ju))];Qn(ju,ju.u+wc.g);var Pu=wc.value;if(16>Pu)yc[Ju++]=Pu,Pu!=0&&(hc=Pu);else{var Cu=Pu==16,fc=Pu-16,lc=Jl[fc],Sc=ui(ju,su[fc])+lc;if(Ju+Sc>tc)break n;for(var Cc=Cu?hc:0;0<Sc--;)yc[Ju++]=Cc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!vs.h)&&(Hs=Bt(El,Bu,8,gl,Ja)),uu&&Hs!=0?Tu=Hs:(vl.a=3,Tu=0)}if(Tu==0)break r;if(Il&&Ru[N]==1&&(Il=Zs[U].g==0),Vl+=Zs[U].g,U+=Tu,3>=N){var Gu,Hu=Ss[0];for(Gu=1;Gu<Na;++Gu)Ss[Gu]>Hu&&(Hu=Ss[Gu]);Gl+=Hu}}if(yl.nd=Il,yl.Qb=0,Il&&(yl.qb=(ul[3][Pl[3]+0].value<<24|ul[1][Pl[1]+0].value<<16|ul[2][Pl[2]+0].value)>>>0,Vl==0&&256>ul[0][Pl[0]+0].value&&(yl.Qb=1,yl.qb+=ul[0][Pl[0]+0].value<<8)),yl.jc=!yl.Qb&&6>Gl,yl.jc){var Xu,Fu=yl;for(Xu=0;Xu<vo;++Xu){var wu=Xu,Ku=Fu.pd[wu],uc=Fu.G[0][Fu.H[0]+wu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,wu>>=Oa(uc,8,Ku),wu>>=Oa(Fu.G[1][Fu.H[1]+wu],16,Ku),wu>>=Oa(Fu.G[2][Fu.H[2]+wu],0,Ku),Oa(Fu.G[3][Fu.H[3]+wu],24,Ku))}}}yr.vc=Cr,yr.Wb=Bn,yr.Ya=Mo,yr.yc=qa,Xo=1;break t}Xo=0}if(!(an=Xo)){lr.a=3;break e}if(0<Ut){if(qe.ua=1<<Ut,!vi(qe.Wa,Ut)){lr.a=1,an=0;break e}}else qe.ua=0;var cc=lr,xc=Be,Ec=ae,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=ea(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,bt){lr.xb=ne;break e}if((At=$e(Be*ae))==null){lr.a=1,an=0;break e}an=(an=oo(lr,At,0,Be,ae,ae,null))&&!Oe.h;break e}return an?(Fr!=null?Fr[0]=At:(Re(At==null),Re(bt)),lr.$=0,bt||Qo(qe)):Qo(qe),an}function ao(xe,Je){var bt=xe.c*xe.i,lr=bt+Je+16*Je;return Re(xe.c<=Je),xe.V=$e(lr),xe.V==null?(xe.Ta=null,xe.Ua=0,xe.a=1,0):(xe.Ta=xe.V,xe.Ua=xe.Ba+bt+Je,1)}function So(xe,Je){var bt=xe.C,lr=Je-bt,Fr=xe.V,an=xe.Ba+xe.c*bt;for(Re(Je<=xe.l.o);0<lr;){var Be=16<lr?16:lr,ae=xe.l.ma,Oe=xe.l.width,qe=Oe*Be,At=ae.ca,Ut=ae.tb+Oe*bt,$t=xe.Ta,rr=xe.Ua;Ga(xe,Be,Fr,an),$l($t,rr,At,Ut,qe),Bi(ae,bt,bt+Be,At,Ut,Oe),lr-=Be,Fr+=Be*xe.c,bt+=Be}Re(bt==Je),xe.C=xe.Ma=Je}function bo(){this.ub=this.yd=this.td=this.Rb=0}function to(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Jo(){this.Fb=this.Bb=this.Cb=0,this.Zb=$e(4),this.Lb=$e(4)}function Uo(){this.Yb=function(){var xe=[];return function Je(bt,lr,Fr){for(var an=Fr[lr],Be=0;Be<an&&(bt.push(Fr.length>lr+1?[]:0),!(Fr.length<lr+1));Be++)Je(bt[Be],lr+1,Fr)}(xe,0,[3,11]),xe}()}function wo(){this.jb=$e(3),this.Wc=wt([4,8],Uo),this.Xc=wt([4,17],Uo)}function ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new $e(4),this.od=new $e(4)}function Ia(){this.ld=this.La=this.dd=this.tc=0}function Oo(){this.Na=this.la=0}function Io(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function os(){this.ad=$e(384),this.Za=0,this.Ob=$e(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function xo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ia),this.Y=0,this.ya=Array(new os),this.aa=0,this.l=new uo}function rs(){this.y=$e(16),this.f=$e(8),this.ea=$e(8)}function Ho(){this.cb=this.a=0,this.sc="",this.m=new pn,this.Od=new bo,this.Kc=new to,this.ed=new ts,this.Qa=new Jo,this.Ic=this.$c=this.Aa=0,this.D=new xo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=at(8,pn),this.ia=0,this.pb=at(4,Io),this.Pa=new wo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new rs),this.Hd=0,this.rb=Array(new Oo),this.sb=0,this.wa=Array(new Ia),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new os),this.L=this.aa=0,this.gd=wt([4,2],Ia),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _o(xe,Je){return 0>xe?0:xe>Je?Je:xe}function uo(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ha(){var xe=new Ho;return xe!=null&&(xe.a=0,xe.sc="OK",xe.cb=0,xe.Xb=0,nu||(nu=Xr)),xe}function ht(xe,Je,bt){return xe.a==0&&(xe.a=Je,xe.sc=bt,xe.cb=0),0}function Er(xe,Je,bt){return 3<=bt&&xe[Je+0]==157&&xe[Je+1]==1&&xe[Je+2]==42}function Zr(xe,Je){if(xe==null)return 0;if(xe.a=0,xe.sc="OK",Je==null)return ht(xe,2,"null VP8Io passed to VP8GetHeaders()");var bt=Je.data,lr=Je.w,Fr=Je.ha;if(4>Fr)return ht(xe,7,"Truncated header.");var an=bt[lr+0]|bt[lr+1]<<8|bt[lr+2]<<16,Be=xe.Od;if(Be.Rb=!(1&an),Be.td=an>>1&7,Be.yd=an>>4&1,Be.ub=an>>5,3<Be.td)return ht(xe,3,"Incorrect keyframe parameters.");if(!Be.yd)return ht(xe,4,"Frame not displayable.");lr+=3,Fr-=3;var ae=xe.Kc;if(Be.Rb){if(7>Fr)return ht(xe,7,"cannot parse picture header");if(!Er(bt,lr,Fr))return ht(xe,3,"Bad code word");ae.c=16383&(bt[lr+4]<<8|bt[lr+3]),ae.Td=bt[lr+4]>>6,ae.i=16383&(bt[lr+6]<<8|bt[lr+5]),ae.Ud=bt[lr+6]>>6,lr+=7,Fr-=7,xe.za=ae.c+15>>4,xe.Ub=ae.i+15>>4,Je.width=ae.c,Je.height=ae.i,Je.Da=0,Je.j=0,Je.v=0,Je.va=Je.width,Je.o=Je.height,Je.da=0,Je.ib=Je.width,Je.hb=Je.height,Je.U=Je.width,Je.T=Je.height,et((an=xe.Pa).jb,0,255,an.jb.length),Re((an=xe.Qa)!=null),an.Cb=0,an.Bb=0,an.Fb=1,et(an.Zb,0,0,an.Zb.length),et(an.Lb,0,0,an.Lb)}if(Be.ub>Fr)return ht(xe,7,"bad partition length");fr(an=xe.m,bt,lr,Be.ub),lr+=Be.ub,Fr-=Be.ub,Be.Rb&&(ae.Ld=Di(an),ae.Kd=Di(an)),ae=xe.Qa;var Oe,qe=xe.Pa;if(Re(an!=null),Re(ae!=null),ae.Cb=Di(an),ae.Cb){if(ae.Bb=Di(an),Di(an)){for(ae.Fb=Di(an),Oe=0;4>Oe;++Oe)ae.Zb[Oe]=Di(an)?Rr(an,7):0;for(Oe=0;4>Oe;++Oe)ae.Lb[Oe]=Di(an)?Rr(an,6):0}if(ae.Bb)for(Oe=0;3>Oe;++Oe)qe.jb[Oe]=Di(an)?vr(an,8):255}else ae.Bb=0;if(an.Ka)return ht(xe,3,"cannot parse segment header");if((ae=xe.ed).zd=Di(an),ae.Tb=vr(an,6),ae.wb=vr(an,3),ae.Pc=Di(an),ae.Pc&&Di(an)){for(qe=0;4>qe;++qe)Di(an)&&(ae.vd[qe]=Rr(an,6));for(qe=0;4>qe;++qe)Di(an)&&(ae.od[qe]=Rr(an,6))}if(xe.L=ae.Tb==0?0:ae.zd?1:2,an.Ka)return ht(xe,3,"cannot parse filter header");var At=Fr;if(Fr=Oe=lr,lr=Oe+At,ae=At,xe.Xb=(1<<vr(xe.m,2))-1,At<3*(qe=xe.Xb))bt=7;else{for(Oe+=3*qe,ae-=3*qe,At=0;At<qe;++At){var Ut=bt[Fr+0]|bt[Fr+1]<<8|bt[Fr+2]<<16;Ut>ae&&(Ut=ae),fr(xe.Jc[+At],bt,Oe,Ut),Oe+=Ut,ae-=Ut,Fr+=3}fr(xe.Jc[+qe],bt,Oe,ae),bt=Oe<lr?0:5}if(bt!=0)return ht(xe,bt,"cannot parse partitions");for(bt=vr(Oe=xe.m,7),Fr=Di(Oe)?Rr(Oe,4):0,lr=Di(Oe)?Rr(Oe,4):0,ae=Di(Oe)?Rr(Oe,4):0,qe=Di(Oe)?Rr(Oe,4):0,Oe=Di(Oe)?Rr(Oe,4):0,At=xe.Qa,Ut=0;4>Ut;++Ut){if(At.Cb){var $t=At.Zb[Ut];At.Fb||($t+=bt)}else{if(0<Ut){xe.pb[Ut]=xe.pb[0];continue}$t=bt}var rr=xe.pb[Ut];rr.Sc[0]=hl[_o($t+Fr,127)],rr.Sc[1]=Dl[_o($t+0,127)],rr.Eb[0]=2*hl[_o($t+lr,127)],rr.Eb[1]=101581*Dl[_o($t+ae,127)]>>16,8>rr.Eb[1]&&(rr.Eb[1]=8),rr.Qc[0]=hl[_o($t+qe,117)],rr.Qc[1]=Dl[_o($t+Oe,127)],rr.lc=$t+Oe}if(!Be.Rb)return ht(xe,4,"Not a key frame.");for(Di(an),Be=xe.Pa,bt=0;4>bt;++bt){for(Fr=0;8>Fr;++Fr)for(lr=0;3>lr;++lr)for(ae=0;11>ae;++ae)qe=Li(an,te[bt][Fr][lr][ae])?vr(an,8):iu[bt][Fr][lr][ae],Be.Wc[bt][Fr].Yb[lr][ae]=qe;for(Fr=0;17>Fr;++Fr)Be.Xc[bt][Fr]=Be.Wc[bt][L[Fr]]}return xe.kc=Di(an),xe.kc&&(xe.Bd=vr(an,8)),xe.cb=1}function Xr(xe,Je,bt,lr,Fr,an,Be){var ae=Je[Fr].Yb[bt];for(bt=0;16>Fr;++Fr){if(!Li(xe,ae[bt+0]))return Fr;for(;!Li(xe,ae[bt+1]);)if(ae=Je[++Fr].Yb[0],bt=0,Fr==16)return 16;var Oe=Je[Fr+1].Yb;if(Li(xe,ae[bt+2])){var qe=xe,At=0;if(Li(qe,($t=ae)[(Ut=bt)+3]))if(Li(qe,$t[Ut+6])){for(ae=0,Ut=2*(At=Li(qe,$t[Ut+8]))+($t=Li(qe,$t[Ut+9+At])),At=0,$t=Nu[Ut];$t[ae];++ae)At+=At+Li(qe,$t[ae]);At+=3+(8<<Ut)}else Li(qe,$t[Ut+7])?(At=7+2*Li(qe,165),At+=Li(qe,145)):At=5+Li(qe,159);else At=Li(qe,$t[Ut+4])?3+Li(qe,$t[Ut+5]):2;ae=Oe[2]}else At=1,ae=Oe[1];Oe=Be+hu[Fr],0>(qe=xe).b&&xi(qe);var Ut,$t=qe.b,rr=(Ut=qe.Ca>>1)-(qe.I>>$t)>>31;--qe.b,qe.Ca+=rr,qe.Ca|=1,qe.I-=(Ut+1&rr)<<$t,an[Oe]=((At^rr)-rr)*lr[(0<Fr)+0]}return 16}function Xn(xe){var Je=xe.rb[xe.sb-1];Je.la=0,Je.Na=0,et(xe.zc,0,0,xe.zc.length),xe.ja=0}function un(xe,Je){if(xe==null)return 0;if(Je==null)return ht(xe,2,"NULL VP8Io parameter in VP8Decode().");if(!xe.cb&&!Zr(xe,Je))return 0;if(Re(xe.cb),Je.ac==null||Je.ac(Je)){Je.ob&&(xe.L=0);var bt=bs[xe.L];if(xe.L==2?(xe.yb=0,xe.zb=0):(xe.yb=Je.v-bt>>4,xe.zb=Je.j-bt>>4,0>xe.yb&&(xe.yb=0),0>xe.zb&&(xe.zb=0)),xe.Va=Je.o+15+bt>>4,xe.Hb=Je.va+15+bt>>4,xe.Hb>xe.za&&(xe.Hb=xe.za),xe.Va>xe.Ub&&(xe.Va=xe.Ub),0<xe.L){var lr=xe.ed;for(bt=0;4>bt;++bt){var Fr;if(xe.Qa.Cb){var an=xe.Qa.Lb[bt];xe.Qa.Fb||(an+=lr.Tb)}else an=lr.Tb;for(Fr=0;1>=Fr;++Fr){var Be=xe.gd[bt][Fr],ae=an;if(lr.Pc&&(ae+=lr.vd[0],Fr&&(ae+=lr.od[0])),0<(ae=0>ae?0:63<ae?63:ae)){var Oe=ae;0<lr.wb&&(Oe=4<lr.wb?Oe>>2:Oe>>1)>9-lr.wb&&(Oe=9-lr.wb),1>Oe&&(Oe=1),Be.dd=Oe,Be.tc=2*ae+Oe,Be.ld=40<=ae?2:15<=ae?1:0}else Be.tc=0;Be.La=Fr}}}bt=0}else ht(xe,6,"Frame setup failed"),bt=xe.a;if(bt=bt==0){if(bt){xe.$c=0,0<xe.Aa||(xe.Ic=ws);e:{bt=xe.Ic,lr=4*(Oe=xe.za);var qe=32*Oe,At=Oe+1,Ut=0<xe.L?Oe*(0<xe.Aa?2:1):0,$t=(xe.Aa==2?2:1)*Oe;if((Be=lr+832+(Fr=3*(16*bt+bs[xe.L])/2*qe)+(an=xe.Fa!=null&&0<xe.Fa.length?xe.Kc.c*xe.Kc.i:0))!=Be)bt=0;else{if(Be>xe.Vb){if(xe.Vb=0,xe.Ec=$e(Be),xe.Fc=0,xe.Ec==null){bt=ht(xe,1,"no memory during frame initialization.");break e}xe.Vb=Be}Be=xe.Ec,ae=xe.Fc,xe.Ac=Be,xe.Bc=ae,ae+=lr,xe.Gd=at(qe,rs),xe.Hd=0,xe.rb=at(At+1,Oo),xe.sb=1,xe.wa=Ut?at(Ut,Ia):null,xe.Y=0,xe.D.Nb=0,xe.D.wa=xe.wa,xe.D.Y=xe.Y,0<xe.Aa&&(xe.D.Y+=Oe),Re(!0),xe.oc=Be,xe.pc=ae,ae+=832,xe.ya=at($t,os),xe.aa=0,xe.D.ya=xe.ya,xe.D.aa=xe.aa,xe.Aa==2&&(xe.D.aa+=Oe),xe.R=16*Oe,xe.B=8*Oe,Oe=(qe=bs[xe.L])*xe.R,qe=qe/2*xe.B,xe.sa=Be,xe.ta=ae+Oe,xe.qa=xe.sa,xe.ra=xe.ta+16*bt*xe.R+qe,xe.Ha=xe.qa,xe.Ia=xe.ra+8*bt*xe.B+qe,xe.$c=0,ae+=Fr,xe.mb=an?Be:null,xe.nb=an?ae:null,Re(ae+an<=xe.Fc+xe.Vb),Xn(xe),et(xe.Ac,xe.Bc,0,lr),bt=1}}if(bt){if(Je.ka=0,Je.y=xe.sa,Je.O=xe.ta,Je.f=xe.qa,Je.N=xe.ra,Je.ea=xe.Ha,Je.Vd=xe.Ia,Je.fa=xe.R,Je.Rc=xe.B,Je.F=null,Je.J=0,!gu){for(bt=-255;255>=bt;++bt)tu[255+bt]=0>bt?-bt:bt;for(bt=-1020;1020>=bt;++bt)Iu[1020+bt]=-128>bt?-128:127<bt?127:bt;for(bt=-112;112>=bt;++bt)pu[112+bt]=-16>bt?-16:15<bt?15:bt;for(bt=-255;510>=bt;++bt)mu[255+bt]=0>bt?0:255<bt?255:bt;gu=1}ps=Ai,Os=li,Is=ai,Ps=Ei,ml=mi,es=oi,Rl=Ll,_l=el,Bl=ks,jl=Qs,kl=Gs,Xl=ds,ol=tl,Ys=xs,sl=zo,nl=Bs,xl=ms,Ml=hs,H[0]=Ka,H[1]=na,H[2]=Ea,H[3]=Fa,H[4]=lo,H[5]=Co,H[6]=so,H[7]=Lo,H[8]=cs,H[9]=is,K[0]=Da,K[1]=fa,K[2]=Xa,K[3]=xa,K[4]=ja,K[5]=ko,K[6]=ro,Z[0]=co,Z[1]=ji,Z[2]=Rs,Z[3]=Ko,Z[4]=$a,Z[5]=Ao,Z[6]=ss,bt=1}else bt=0}bt&&(bt=function(rr,Wr){for(rr.M=0;rr.M<rr.Va;++rr.M){var cn,Hr=rr.Jc[rr.M&rr.Xb],Ur=rr.m,on=rr;for(cn=0;cn<on.za;++cn){var gn=Ur,Hn=on,Oi=Hn.Ac,Ri=Hn.Bc+4*cn,da=Hn.zc,Ji=Hn.ya[Hn.aa+cn];if(Hn.Qa.Bb?Ji.$b=Li(gn,Hn.Pa.jb[0])?2+Li(gn,Hn.Pa.jb[2]):Li(gn,Hn.Pa.jb[1]):Ji.$b=0,Hn.kc&&(Ji.Ad=Li(gn,Hn.Bd)),Ji.Za=!Li(gn,145)+0,Ji.Za){var Qa=Ji.Ob,ya=0;for(Hn=0;4>Hn;++Hn){var fo,za=da[0+Hn];for(fo=0;4>fo;++fo){za=ve[Oi[Ri+fo]][za];for(var Xo=fu[Li(gn,za[0])];0<Xo;)Xo=fu[2*Xo+Li(gn,za[Xo])];za=-Xo,Oi[Ri+fo]=za}Ye(Qa,ya,Oi,Ri,4),ya+=4,da[0+Hn]=za}}else za=Li(gn,156)?Li(gn,128)?1:3:Li(gn,163)?2:0,Ji.Ob[0]=za,et(Oi,Ri,za,4),et(da,0,za,4);Ji.Dd=Li(gn,142)?Li(gn,114)?Li(gn,183)?1:3:2:0}if(on.m.Ka)return ht(rr,7,"Premature end-of-partition0 encountered.");for(;rr.ja<rr.za;++rr.ja){if(on=Hr,gn=(Ur=rr).rb[Ur.sb-1],Oi=Ur.rb[Ur.sb+Ur.ja],cn=Ur.ya[Ur.aa+Ur.ja],Ri=Ur.kc?cn.Ad:0)gn.la=Oi.la=0,cn.Za||(gn.Na=Oi.Na=0),cn.Hc=0,cn.Gc=0,cn.ia=0;else{var ls,N;if(gn=Oi,Oi=on,Ri=Ur.Pa.Xc,da=Ur.ya[Ur.aa+Ur.ja],Ji=Ur.pb[da.$b],Hn=da.ad,Qa=0,ya=Ur.rb[Ur.sb-1],za=fo=0,et(Hn,Qa,0,384),da.Za)var U=0,ie=Ri[3];else{Xo=$e(16);var le=gn.Na+ya.Na;if(le=nu(Oi,Ri[1],le,Ji.Eb,0,Xo,0),gn.Na=ya.Na=(0<le)+0,1<le)ps(Xo,0,Hn,Qa);else{var ge=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)Hn[Qa+Xo]=ge}U=1,ie=Ri[0]}var Ke=15&gn.la,Tt=15&ya.la;for(Xo=0;4>Xo;++Xo){var tr=1&Tt;for(ge=N=0;4>ge;++ge)Ke=Ke>>1|(tr=(le=nu(Oi,ie,le=tr+(1&Ke),Ji.Sc,U,Hn,Qa))>U)<<7,N=N<<2|(3<le?3:1<le?2:Hn[Qa+0]!=0),Qa+=16;Ke>>=4,Tt=Tt>>1|tr<<7,fo=(fo<<8|N)>>>0}for(ie=Ke,U=Tt>>4,ls=0;4>ls;ls+=2){for(N=0,Ke=gn.la>>4+ls,Tt=ya.la>>4+ls,Xo=0;2>Xo;++Xo){for(tr=1&Tt,ge=0;2>ge;++ge)le=tr+(1&Ke),Ke=Ke>>1|(tr=0<(le=nu(Oi,Ri[2],le,Ji.Qc,0,Hn,Qa)))<<3,N=N<<2|(3<le?3:1<le?2:Hn[Qa+0]!=0),Qa+=16;Ke>>=2,Tt=Tt>>1|tr<<5}za|=N<<4*ls,ie|=Ke<<4<<ls,U|=(240&Tt)<<ls}gn.la=ie,ya.la=U,da.Hc=fo,da.Gc=za,da.ia=43690&za?0:Ji.ia,Ri=!(fo|za)}if(0<Ur.L&&(Ur.wa[Ur.Y+Ur.ja]=Ur.gd[cn.$b][cn.Za],Ur.wa[Ur.Y+Ur.ja].La|=!Ri),on.Ka)return ht(rr,7,"Premature end-of-file encountered.")}if(Xn(rr),Ur=Wr,on=1,cn=(Hr=rr).D,gn=0<Hr.L&&Hr.M>=Hr.zb&&Hr.M<=Hr.Va,Hr.Aa==0)e:{if(cn.M=Hr.M,cn.uc=gn,Bo(Hr,cn),on=1,cn=(N=Hr.D).Nb,gn=(za=bs[Hr.L])*Hr.R,Oi=za/2*Hr.B,Xo=16*cn*Hr.R,ge=8*cn*Hr.B,Ri=Hr.sa,da=Hr.ta-gn+Xo,Ji=Hr.qa,Hn=Hr.ra-Oi+ge,Qa=Hr.Ha,ya=Hr.Ia-Oi+ge,Tt=(Ke=N.M)==0,fo=Ke>=Hr.Va-1,Hr.Aa==2&&Bo(Hr,N),N.uc)for(tr=(le=Hr).D.M,Re(le.D.uc),N=le.yb;N<le.Hb;++N){U=N,ie=tr;var yr=(Cr=(Na=le).D).Nb;ls=Na.R;var Cr=Cr.wa[Cr.Y+U],Bn=Na.sa,qn=Na.ta+16*yr*ls+16*U,Si=Cr.dd,Ci=Cr.tc;if(Ci!=0)if(Re(3<=Ci),Na.L==1)0<U&&nl(Bn,qn,ls,Ci+4),Cr.La&&Ml(Bn,qn,ls,Ci),0<ie&&sl(Bn,qn,ls,Ci+4),Cr.La&&xl(Bn,qn,ls,Ci);else{var la=Na.B,Ta=Na.qa,Wa=Na.ra+8*yr*la+8*U,ka=Na.Ha,Na=Na.Ia+8*yr*la+8*U;yr=Cr.ld,0<U&&(_l(Bn,qn,ls,Ci+4,Si,yr),jl(Ta,Wa,ka,Na,la,Ci+4,Si,yr)),Cr.La&&(Xl(Bn,qn,ls,Ci,Si,yr),Ys(Ta,Wa,ka,Na,la,Ci,Si,yr)),0<ie&&(Rl(Bn,qn,ls,Ci+4,Si,yr),Bl(Ta,Wa,ka,Na,la,Ci+4,Si,yr)),Cr.La&&(kl(Bn,qn,ls,Ci,Si,yr),ol(Ta,Wa,ka,Na,la,Ci,Si,yr))}}if(Hr.ia&&alert("todo:DitherRow"),Ur.put!=null){if(N=16*Ke,Ke=16*(Ke+1),Tt?(Ur.y=Hr.sa,Ur.O=Hr.ta+Xo,Ur.f=Hr.qa,Ur.N=Hr.ra+ge,Ur.ea=Hr.Ha,Ur.W=Hr.Ia+ge):(N-=za,Ur.y=Ri,Ur.O=da,Ur.f=Ji,Ur.N=Hn,Ur.ea=Qa,Ur.W=ya),fo||(Ke-=za),Ke>Ur.o&&(Ke=Ur.o),Ur.F=null,Ur.J=null,Hr.Fa!=null&&0<Hr.Fa.length&&N<Ke&&(Ur.J=nr(Hr,Ur,N,Ke-N),Ur.F=Hr.mb,Ur.F==null&&Ur.F.length==0)){on=ht(Hr,3,"Could not decode alpha data.");break e}N<Ur.j&&(za=Ur.j-N,N=Ur.j,Re(!(1&za)),Ur.O+=Hr.R*za,Ur.N+=Hr.B*(za>>1),Ur.W+=Hr.B*(za>>1),Ur.F!=null&&(Ur.J+=Ur.width*za)),N<Ke&&(Ur.O+=Ur.v,Ur.N+=Ur.v>>1,Ur.W+=Ur.v>>1,Ur.F!=null&&(Ur.J+=Ur.v),Ur.ka=N-Ur.j,Ur.U=Ur.va-Ur.v,Ur.T=Ke-N,on=Ur.put(Ur))}cn+1!=Hr.Ic||fo||(Ye(Hr.sa,Hr.ta-gn,Ri,da+16*Hr.R,gn),Ye(Hr.qa,Hr.ra-Oi,Ji,Hn+8*Hr.B,Oi),Ye(Hr.Ha,Hr.Ia-Oi,Qa,ya+8*Hr.B,Oi))}if(!on)return ht(rr,6,"Output aborted.")}return 1}(xe,Je)),Je.bc!=null&&Je.bc(Je),bt&=1}return bt?(xe.cb=0,bt):0}function Gr(xe,Je,bt,lr,Fr){Fr=xe[Je+bt+32*lr]+(Fr>>3),xe[Je+bt+32*lr]=-256&Fr?0>Fr?0:255:Fr}function ri(xe,Je,bt,lr,Fr,an){Gr(xe,Je,0,bt,lr+Fr),Gr(xe,Je,1,bt,lr+an),Gr(xe,Je,2,bt,lr-an),Gr(xe,Je,3,bt,lr-Fr)}function rn(xe){return(20091*xe>>16)+xe}function jn(xe,Je,bt,lr){var Fr,an=0,Be=$e(16);for(Fr=0;4>Fr;++Fr){var ae=xe[Je+0]+xe[Je+8],Oe=xe[Je+0]-xe[Je+8],qe=(35468*xe[Je+4]>>16)-rn(xe[Je+12]),At=rn(xe[Je+4])+(35468*xe[Je+12]>>16);Be[an+0]=ae+At,Be[an+1]=Oe+qe,Be[an+2]=Oe-qe,Be[an+3]=ae-At,an+=4,Je++}for(Fr=an=0;4>Fr;++Fr)ae=(xe=Be[an+0]+4)+Be[an+8],Oe=xe-Be[an+8],qe=(35468*Be[an+4]>>16)-rn(Be[an+12]),Gr(bt,lr,0,0,ae+(At=rn(Be[an+4])+(35468*Be[an+12]>>16))),Gr(bt,lr,1,0,Oe+qe),Gr(bt,lr,2,0,Oe-qe),Gr(bt,lr,3,0,ae-At),an++,lr+=32}function oi(xe,Je,bt,lr){var Fr=xe[Je+0]+4,an=35468*xe[Je+4]>>16,Be=rn(xe[Je+4]),ae=35468*xe[Je+1]>>16;ri(bt,lr,0,Fr+Be,xe=rn(xe[Je+1]),ae),ri(bt,lr,1,Fr+an,xe,ae),ri(bt,lr,2,Fr-an,xe,ae),ri(bt,lr,3,Fr-Be,xe,ae)}function li(xe,Je,bt,lr,Fr){jn(xe,Je,bt,lr),Fr&&jn(xe,Je+16,bt,lr+4)}function ai(xe,Je,bt,lr){Os(xe,Je+0,bt,lr,1),Os(xe,Je+32,bt,lr+128,1)}function Ei(xe,Je,bt,lr){var Fr;for(xe=xe[Je+0]+4,Fr=0;4>Fr;++Fr)for(Je=0;4>Je;++Je)Gr(bt,lr,Je,Fr,xe)}function mi(xe,Je,bt,lr){xe[Je+0]&&Ps(xe,Je+0,bt,lr),xe[Je+16]&&Ps(xe,Je+16,bt,lr+4),xe[Je+32]&&Ps(xe,Je+32,bt,lr+128),xe[Je+48]&&Ps(xe,Je+48,bt,lr+128+4)}function Ai(xe,Je,bt,lr){var Fr,an=$e(16);for(Fr=0;4>Fr;++Fr){var Be=xe[Je+0+Fr]+xe[Je+12+Fr],ae=xe[Je+4+Fr]+xe[Je+8+Fr],Oe=xe[Je+4+Fr]-xe[Je+8+Fr],qe=xe[Je+0+Fr]-xe[Je+12+Fr];an[0+Fr]=Be+ae,an[8+Fr]=Be-ae,an[4+Fr]=qe+Oe,an[12+Fr]=qe-Oe}for(Fr=0;4>Fr;++Fr)Be=(xe=an[0+4*Fr]+3)+an[3+4*Fr],ae=an[1+4*Fr]+an[2+4*Fr],Oe=an[1+4*Fr]-an[2+4*Fr],qe=xe-an[3+4*Fr],bt[lr+0]=Be+ae>>3,bt[lr+16]=qe+Oe>>3,bt[lr+32]=Be-ae>>3,bt[lr+48]=qe-Oe>>3,lr+=64}function Ii(xe,Je,bt){var lr,Fr=Je-32,an=ll,Be=255-xe[Fr-1];for(lr=0;lr<bt;++lr){var ae,Oe=an,qe=Be+xe[Je-1];for(ae=0;ae<bt;++ae)xe[Je+ae]=Oe[qe+xe[Fr+ae]];Je+=32}}function na(xe,Je){Ii(xe,Je,4)}function ji(xe,Je){Ii(xe,Je,8)}function fa(xe,Je){Ii(xe,Je,16)}function Xa(xe,Je){var bt;for(bt=0;16>bt;++bt)Ye(xe,Je+32*bt,xe,Je-32,16)}function xa(xe,Je){var bt;for(bt=16;0<bt;--bt)et(xe,Je,xe[Je-1],16),Je+=32}function wa(xe,Je,bt){var lr;for(lr=0;16>lr;++lr)et(Je,bt+32*lr,xe,16)}function Da(xe,Je){var bt,lr=16;for(bt=0;16>bt;++bt)lr+=xe[Je-1+32*bt]+xe[Je+bt-32];wa(lr>>5,xe,Je)}function ja(xe,Je){var bt,lr=8;for(bt=0;16>bt;++bt)lr+=xe[Je-1+32*bt];wa(lr>>4,xe,Je)}function ko(xe,Je){var bt,lr=8;for(bt=0;16>bt;++bt)lr+=xe[Je+bt-32];wa(lr>>4,xe,Je)}function ro(xe,Je){wa(128,xe,Je)}function pa(xe,Je,bt){return xe+2*Je+bt+2>>2}function Ea(xe,Je){var bt,lr=Je-32;for(lr=new Uint8Array([pa(xe[lr-1],xe[lr+0],xe[lr+1]),pa(xe[lr+0],xe[lr+1],xe[lr+2]),pa(xe[lr+1],xe[lr+2],xe[lr+3]),pa(xe[lr+2],xe[lr+3],xe[lr+4])]),bt=0;4>bt;++bt)Ye(xe,Je+32*bt,lr,0,lr.length)}function Fa(xe,Je){var bt=xe[Je-1],lr=xe[Je-1+32],Fr=xe[Je-1+64],an=xe[Je-1+96];oa(xe,Je+0,16843009*pa(xe[Je-1-32],bt,lr)),oa(xe,Je+32,16843009*pa(bt,lr,Fr)),oa(xe,Je+64,16843009*pa(lr,Fr,an)),oa(xe,Je+96,16843009*pa(Fr,an,an))}function Ka(xe,Je){var bt,lr=4;for(bt=0;4>bt;++bt)lr+=xe[Je+bt-32]+xe[Je-1+32*bt];for(lr>>=3,bt=0;4>bt;++bt)et(xe,Je+32*bt,lr,4)}function lo(xe,Je){var bt=xe[Je-1+0],lr=xe[Je-1+32],Fr=xe[Je-1+64],an=xe[Je-1-32],Be=xe[Je+0-32],ae=xe[Je+1-32],Oe=xe[Je+2-32],qe=xe[Je+3-32];xe[Je+0+96]=pa(lr,Fr,xe[Je-1+96]),xe[Je+1+96]=xe[Je+0+64]=pa(bt,lr,Fr),xe[Je+2+96]=xe[Je+1+64]=xe[Je+0+32]=pa(an,bt,lr),xe[Je+3+96]=xe[Je+2+64]=xe[Je+1+32]=xe[Je+0+0]=pa(Be,an,bt),xe[Je+3+64]=xe[Je+2+32]=xe[Je+1+0]=pa(ae,Be,an),xe[Je+3+32]=xe[Je+2+0]=pa(Oe,ae,Be),xe[Je+3+0]=pa(qe,Oe,ae)}function so(xe,Je){var bt=xe[Je+1-32],lr=xe[Je+2-32],Fr=xe[Je+3-32],an=xe[Je+4-32],Be=xe[Je+5-32],ae=xe[Je+6-32],Oe=xe[Je+7-32];xe[Je+0+0]=pa(xe[Je+0-32],bt,lr),xe[Je+1+0]=xe[Je+0+32]=pa(bt,lr,Fr),xe[Je+2+0]=xe[Je+1+32]=xe[Je+0+64]=pa(lr,Fr,an),xe[Je+3+0]=xe[Je+2+32]=xe[Je+1+64]=xe[Je+0+96]=pa(Fr,an,Be),xe[Je+3+32]=xe[Je+2+64]=xe[Je+1+96]=pa(an,Be,ae),xe[Je+3+64]=xe[Je+2+96]=pa(Be,ae,Oe),xe[Je+3+96]=pa(ae,Oe,Oe)}function Co(xe,Je){var bt=xe[Je-1+0],lr=xe[Je-1+32],Fr=xe[Je-1+64],an=xe[Je-1-32],Be=xe[Je+0-32],ae=xe[Je+1-32],Oe=xe[Je+2-32],qe=xe[Je+3-32];xe[Je+0+0]=xe[Je+1+64]=an+Be+1>>1,xe[Je+1+0]=xe[Je+2+64]=Be+ae+1>>1,xe[Je+2+0]=xe[Je+3+64]=ae+Oe+1>>1,xe[Je+3+0]=Oe+qe+1>>1,xe[Je+0+96]=pa(Fr,lr,bt),xe[Je+0+64]=pa(lr,bt,an),xe[Je+0+32]=xe[Je+1+96]=pa(bt,an,Be),xe[Je+1+32]=xe[Je+2+96]=pa(an,Be,ae),xe[Je+2+32]=xe[Je+3+96]=pa(Be,ae,Oe),xe[Je+3+32]=pa(ae,Oe,qe)}function Lo(xe,Je){var bt=xe[Je+0-32],lr=xe[Je+1-32],Fr=xe[Je+2-32],an=xe[Je+3-32],Be=xe[Je+4-32],ae=xe[Je+5-32],Oe=xe[Je+6-32],qe=xe[Je+7-32];xe[Je+0+0]=bt+lr+1>>1,xe[Je+1+0]=xe[Je+0+64]=lr+Fr+1>>1,xe[Je+2+0]=xe[Je+1+64]=Fr+an+1>>1,xe[Je+3+0]=xe[Je+2+64]=an+Be+1>>1,xe[Je+0+32]=pa(bt,lr,Fr),xe[Je+1+32]=xe[Je+0+96]=pa(lr,Fr,an),xe[Je+2+32]=xe[Je+1+96]=pa(Fr,an,Be),xe[Je+3+32]=xe[Je+2+96]=pa(an,Be,ae),xe[Je+3+64]=pa(Be,ae,Oe),xe[Je+3+96]=pa(ae,Oe,qe)}function is(xe,Je){var bt=xe[Je-1+0],lr=xe[Je-1+32],Fr=xe[Je-1+64],an=xe[Je-1+96];xe[Je+0+0]=bt+lr+1>>1,xe[Je+2+0]=xe[Je+0+32]=lr+Fr+1>>1,xe[Je+2+32]=xe[Je+0+64]=Fr+an+1>>1,xe[Je+1+0]=pa(bt,lr,Fr),xe[Je+3+0]=xe[Je+1+32]=pa(lr,Fr,an),xe[Je+3+32]=xe[Je+1+64]=pa(Fr,an,an),xe[Je+3+64]=xe[Je+2+64]=xe[Je+0+96]=xe[Je+1+96]=xe[Je+2+96]=xe[Je+3+96]=an}function cs(xe,Je){var bt=xe[Je-1+0],lr=xe[Je-1+32],Fr=xe[Je-1+64],an=xe[Je-1+96],Be=xe[Je-1-32],ae=xe[Je+0-32],Oe=xe[Je+1-32],qe=xe[Je+2-32];xe[Je+0+0]=xe[Je+2+32]=bt+Be+1>>1,xe[Je+0+32]=xe[Je+2+64]=lr+bt+1>>1,xe[Je+0+64]=xe[Je+2+96]=Fr+lr+1>>1,xe[Je+0+96]=an+Fr+1>>1,xe[Je+3+0]=pa(ae,Oe,qe),xe[Je+2+0]=pa(Be,ae,Oe),xe[Je+1+0]=xe[Je+3+32]=pa(bt,Be,ae),xe[Je+1+32]=xe[Je+3+64]=pa(lr,bt,Be),xe[Je+1+64]=xe[Je+3+96]=pa(Fr,lr,bt),xe[Je+1+96]=pa(an,Fr,lr)}function Rs(xe,Je){var bt;for(bt=0;8>bt;++bt)Ye(xe,Je+32*bt,xe,Je-32,8)}function Ko(xe,Je){var bt;for(bt=0;8>bt;++bt)et(xe,Je,xe[Je-1],8),Je+=32}function as(xe,Je,bt){var lr;for(lr=0;8>lr;++lr)et(Je,bt+32*lr,xe,8)}function co(xe,Je){var bt,lr=8;for(bt=0;8>bt;++bt)lr+=xe[Je+bt-32]+xe[Je-1+32*bt];as(lr>>4,xe,Je)}function Ao(xe,Je){var bt,lr=4;for(bt=0;8>bt;++bt)lr+=xe[Je+bt-32];as(lr>>3,xe,Je)}function $a(xe,Je){var bt,lr=4;for(bt=0;8>bt;++bt)lr+=xe[Je-1+32*bt];as(lr>>3,xe,Je)}function ss(xe,Je){as(128,xe,Je)}function Cs(xe,Je,bt){var lr=xe[Je-bt],Fr=xe[Je+0],an=3*(Fr-lr)+ql[1020+xe[Je-2*bt]-xe[Je+bt]],Be=Cl[112+(an+4>>3)];xe[Je-bt]=ll[255+lr+Cl[112+(an+3>>3)]],xe[Je+0]=ll[255+Fr-Be]}function Fo(xe,Je,bt,lr){var Fr=xe[Je+0],an=xe[Je+bt];return Hl[255+xe[Je-2*bt]-xe[Je-bt]]>lr||Hl[255+an-Fr]>lr}function il(xe,Je,bt,lr){return 4*Hl[255+xe[Je-bt]-xe[Je+0]]+Hl[255+xe[Je-2*bt]-xe[Je+bt]]<=lr}function Eo(xe,Je,bt,lr,Fr){var an=xe[Je-3*bt],Be=xe[Je-2*bt],ae=xe[Je-bt],Oe=xe[Je+0],qe=xe[Je+bt],At=xe[Je+2*bt],Ut=xe[Je+3*bt];return 4*Hl[255+ae-Oe]+Hl[255+Be-qe]>lr?0:Hl[255+xe[Je-4*bt]-an]<=Fr&&Hl[255+an-Be]<=Fr&&Hl[255+Be-ae]<=Fr&&Hl[255+Ut-At]<=Fr&&Hl[255+At-qe]<=Fr&&Hl[255+qe-Oe]<=Fr}function zo(xe,Je,bt,lr){var Fr=2*lr+1;for(lr=0;16>lr;++lr)il(xe,Je+lr,bt,Fr)&&Cs(xe,Je+lr,bt)}function Bs(xe,Je,bt,lr){var Fr=2*lr+1;for(lr=0;16>lr;++lr)il(xe,Je+lr*bt,1,Fr)&&Cs(xe,Je+lr*bt,1)}function ms(xe,Je,bt,lr){var Fr;for(Fr=3;0<Fr;--Fr)zo(xe,Je+=4*bt,bt,lr)}function hs(xe,Je,bt,lr){var Fr;for(Fr=3;0<Fr;--Fr)Bs(xe,Je+=4,bt,lr)}function An(xe,Je,bt,lr,Fr,an,Be,ae){for(an=2*an+1;0<Fr--;){if(Eo(xe,Je,bt,an,Be))if(Fo(xe,Je,bt,ae))Cs(xe,Je,bt);else{var Oe=xe,qe=Je,At=bt,Ut=Oe[qe-2*At],$t=Oe[qe-At],rr=Oe[qe+0],Wr=Oe[qe+At],cn=Oe[qe+2*At],Hr=27*(on=ql[1020+3*(rr-$t)+ql[1020+Ut-Wr]])+63>>7,Ur=18*on+63>>7,on=9*on+63>>7;Oe[qe-3*At]=ll[255+Oe[qe-3*At]+on],Oe[qe-2*At]=ll[255+Ut+Ur],Oe[qe-At]=ll[255+$t+Hr],Oe[qe+0]=ll[255+rr-Hr],Oe[qe+At]=ll[255+Wr-Ur],Oe[qe+2*At]=ll[255+cn-on]}Je+=lr}}function Ns(xe,Je,bt,lr,Fr,an,Be,ae){for(an=2*an+1;0<Fr--;){if(Eo(xe,Je,bt,an,Be))if(Fo(xe,Je,bt,ae))Cs(xe,Je,bt);else{var Oe=xe,qe=Je,At=bt,Ut=Oe[qe-At],$t=Oe[qe+0],rr=Oe[qe+At],Wr=Cl[112+((cn=3*($t-Ut))+4>>3)],cn=Cl[112+(cn+3>>3)],Hr=Wr+1>>1;Oe[qe-2*At]=ll[255+Oe[qe-2*At]+Hr],Oe[qe-At]=ll[255+Ut+cn],Oe[qe+0]=ll[255+$t-Wr],Oe[qe+At]=ll[255+rr-Hr]}Je+=lr}}function Ll(xe,Je,bt,lr,Fr,an){An(xe,Je,bt,1,16,lr,Fr,an)}function el(xe,Je,bt,lr,Fr,an){An(xe,Je,1,bt,16,lr,Fr,an)}function Gs(xe,Je,bt,lr,Fr,an){var Be;for(Be=3;0<Be;--Be)Ns(xe,Je+=4*bt,bt,1,16,lr,Fr,an)}function ds(xe,Je,bt,lr,Fr,an){var Be;for(Be=3;0<Be;--Be)Ns(xe,Je+=4,1,bt,16,lr,Fr,an)}function ks(xe,Je,bt,lr,Fr,an,Be,ae){An(xe,Je,Fr,1,8,an,Be,ae),An(bt,lr,Fr,1,8,an,Be,ae)}function Qs(xe,Je,bt,lr,Fr,an,Be,ae){An(xe,Je,1,Fr,8,an,Be,ae),An(bt,lr,1,Fr,8,an,Be,ae)}function tl(xe,Je,bt,lr,Fr,an,Be,ae){Ns(xe,Je+4*Fr,Fr,1,8,an,Be,ae),Ns(bt,lr+4*Fr,Fr,1,8,an,Be,ae)}function xs(xe,Je,bt,lr,Fr,an,Be,ae){Ns(xe,Je+4,1,Fr,8,an,Be,ae),Ns(bt,lr+4,1,Fr,8,an,Be,ae)}function Us(){this.ba=new Ki,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new zi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function al(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Js(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Vo(){this.ua=0,this.Wa=new Fi,this.vb=new Fi,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new sr,this.yc=new Kt}function No(){this.xb=this.a=0,this.l=new uo,this.ca=new Ki,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Br,this.Pb=0,this.wd=new Br,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Vo,this.ab=0,this.gc=at(4,Js),this.Oc=0}function fs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new uo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ds(xe,Je,bt,lr,Fr,an,Be){for(xe=xe==null?0:xe[Je+0],Je=0;Je<Be;++Je)Fr[an+Je]=xe+bt[lr+Je]&255,xe=Fr[an+Je]}function go(xe,Je,bt,lr,Fr,an,Be){var ae;if(xe==null)Ds(null,null,bt,lr,Fr,an,Be);else for(ae=0;ae<Be;++ae)Fr[an+ae]=xe[Je+ae]+bt[lr+ae]&255}function Ft(xe,Je,bt,lr,Fr,an,Be){if(xe==null)Ds(null,null,bt,lr,Fr,an,Be);else{var ae,Oe=xe[Je+0],qe=Oe,At=Oe;for(ae=0;ae<Be;++ae)qe=At+(Oe=xe[Je+ae])-qe,At=bt[lr+ae]+(-256&qe?0>qe?0:255:qe)&255,qe=Oe,Fr[an+ae]=At}}function nr(xe,Je,bt,lr){var Fr=Je.width,an=Je.o;if(Re(xe!=null&&Je!=null),0>bt||0>=lr||bt+lr>an)return null;if(!xe.Cc){if(xe.ga==null){var Be;if(xe.ga=new fs,(Be=xe.ga==null)||(Be=Je.width*Je.o,Re(xe.Gb.length==0),xe.Gb=$e(Be),xe.Uc=0,xe.Gb==null?Be=0:(xe.mb=xe.Gb,xe.nb=xe.Uc,xe.rc=null,Be=1),Be=!Be),!Be){Be=xe.ga;var ae=xe.Fa,Oe=xe.P,qe=xe.qc,At=xe.mb,Ut=xe.nb,$t=Oe+1,rr=qe-1,Wr=Be.l;if(Re(ae!=null&&At!=null&&Je!=null),Te[0]=null,Te[1]=Ds,Te[2]=go,Te[3]=Ft,Be.ca=At,Be.tb=Ut,Be.c=Je.width,Be.i=Je.height,Re(0<Be.c&&0<Be.i),1>=qe)Je=0;else if(Be.$a=ae[Oe+0]>>0&3,Be.Z=ae[Oe+0]>>2&3,Be.Lc=ae[Oe+0]>>4&3,Oe=ae[Oe+0]>>6&3,0>Be.$a||1<Be.$a||4<=Be.Z||1<Be.Lc||Oe)Je=0;else if(Wr.put=Ca,Wr.ac=ca,Wr.bc=ra,Wr.ma=Be,Wr.width=Je.width,Wr.height=Je.height,Wr.Da=Je.Da,Wr.v=Je.v,Wr.va=Je.va,Wr.j=Je.j,Wr.o=Je.o,Be.$a)e:{Re(Be.$a==1),Je=mo();t:for(;;){if(Je==null){Je=0;break e}if(Re(Be!=null),Be.mc=Je,Je.c=Be.c,Je.i=Be.i,Je.l=Be.l,Je.l.ma=Be,Je.l.width=Be.c,Je.l.height=Be.i,Je.a=0,Kn(Je.m,ae,$t,rr),!To(Be.c,Be.i,1,Je,null))break t;if(Je.ab==1&&Je.gc[0].hc==3&&Va(Je.s)?(Be.ic=1,ae=Je.c*Je.i,Je.Ta=null,Je.Ua=0,Je.V=$e(ae),Je.Ba=0,Je.V==null?(Je.a=1,Je=0):Je=1):(Be.ic=0,Je=ao(Je,Be.c)),!Je)break t;Je=1;break e}Be.mc=null,Je=0}else Je=rr>=Be.c*Be.i;Be=!Je}if(Be)return null;xe.ga.Lc!=1?xe.Ga=0:lr=an-bt}Re(xe.ga!=null),Re(bt+lr<=an);e:{if(Je=(ae=xe.ga).c,an=ae.l.o,ae.$a==0){if($t=xe.rc,rr=xe.Vc,Wr=xe.Fa,Oe=xe.P+1+bt*Je,qe=xe.mb,At=xe.nb+bt*Je,Re(Oe<=xe.P+xe.qc),ae.Z!=0)for(Re(Te[ae.Z]!=null),Be=0;Be<lr;++Be)Te[ae.Z]($t,rr,Wr,Oe,qe,At,Je),$t=qe,rr=At,At+=Je,Oe+=Je;else for(Be=0;Be<lr;++Be)Ye(qe,At,Wr,Oe,Je),$t=qe,rr=At,At+=Je,Oe+=Je;xe.rc=$t,xe.Vc=rr}else{if(Re(ae.mc!=null),Je=bt+lr,Re((Be=ae.mc)!=null),Re(Je<=Be.i),Be.C>=Je)Je=1;else if(ae.ic||Se(),ae.ic){ae=Be.V,$t=Be.Ba,rr=Be.c;var cn=Be.i,Hr=(Wr=1,Oe=Be.$/rr,qe=Be.$%rr,At=Be.m,Ut=Be.s,Be.$),Ur=rr*cn,on=rr*Je,gn=Ut.wc,Hn=Hr<on?Aa(Ut,qe,Oe):null;Re(Hr<=Ur),Re(Je<=cn),Re(Va(Ut));t:for(;;){for(;!At.h&&Hr<on;){if(qe&gn||(Hn=Aa(Ut,qe,Oe)),Re(Hn!=null),ii(At),256>(cn=ga(Hn.G[0],Hn.H[0],At)))ae[$t+Hr]=cn,++Hr,++qe>=rr&&(qe=0,++Oe<=Je&&!(Oe%16)&&io(Be,Oe));else{if(!(280>cn)){Wr=0;break t}cn=La(cn-256,At);var Oi,Ri=ga(Hn.G[4],Hn.H[4],At);if(ii(At),!(Hr>=(Ri=va(rr,Ri=La(Ri,At)))&&Ur-Hr>=cn)){Wr=0;break t}for(Oi=0;Oi<cn;++Oi)ae[$t+Hr+Oi]=ae[$t+Hr+Oi-Ri];for(Hr+=cn,qe+=cn;qe>=rr;)qe-=rr,++Oe<=Je&&!(Oe%16)&&io(Be,Oe);Hr<on&&qe&gn&&(Hn=Aa(Ut,qe,Oe))}Re(At.h==zn(At))}io(Be,Oe>Je?Je:Oe);break t}!Wr||At.h&&Hr<Ur?(Wr=0,Be.a=At.h?5:3):Be.$=Hr,Je=Wr}else Je=oo(Be,Be.V,Be.Ba,Be.c,Be.i,Je,So);if(!Je){lr=0;break e}}bt+lr>=an&&(xe.Cc=1),lr=1}if(!lr)return null;if(xe.Cc&&((lr=xe.ga)!=null&&(lr.mc=null),xe.ga=null,0<xe.Ga))return alert("todo:WebPDequantizeLevels"),null}return xe.nb+bt*Fr}function On(xe,Je,bt,lr,Fr,an){for(;0<Fr--;){var Be,ae=xe,Oe=Je+(bt?1:0),qe=xe,At=Je+(bt?0:3);for(Be=0;Be<lr;++Be){var Ut=qe[At+4*Be];Ut!=255&&(Ut*=32897,ae[Oe+4*Be+0]=ae[Oe+4*Be+0]*Ut>>23,ae[Oe+4*Be+1]=ae[Oe+4*Be+1]*Ut>>23,ae[Oe+4*Be+2]=ae[Oe+4*Be+2]*Ut>>23)}Je+=an}}function di(xe,Je,bt,lr,Fr){for(;0<lr--;){var an;for(an=0;an<bt;++an){var Be=xe[Je+2*an+0],ae=15&(qe=xe[Je+2*an+1]),Oe=4369*ae,qe=(240&qe|qe>>4)*Oe>>16;xe[Je+2*an+0]=(240&Be|Be>>4)*Oe>>16&240|(15&Be|Be<<4)*Oe>>16>>4&15,xe[Je+2*an+1]=240&qe|ae}Je+=Fr}}function It(xe,Je,bt,lr,Fr,an,Be,ae){var Oe,qe,At=255;for(qe=0;qe<Fr;++qe){for(Oe=0;Oe<lr;++Oe){var Ut=xe[Je+Oe];an[Be+4*Oe]=Ut,At&=Ut}Je+=bt,Be+=ae}return At!=255}function ce(xe,Je,bt,lr,Fr){var an;for(an=0;an<Fr;++an)bt[lr+an]=xe[Je+an]>>8}function Se(){Wl=On,au=di,Nl=It,$l=ce}function Le(xe,Je,bt){Wt[xe]=function(lr,Fr,an,Be,ae,Oe,qe,At,Ut,$t,rr,Wr,cn,Hr,Ur,on,gn){var Hn,Oi=gn-1>>1,Ri=ae[Oe+0]|qe[At+0]<<16,da=Ut[$t+0]|rr[Wr+0]<<16;Re(lr!=null);var Ji=3*Ri+da+131074>>2;for(Je(lr[Fr+0],255&Ji,Ji>>16,cn,Hr),an!=null&&(Ji=3*da+Ri+131074>>2,Je(an[Be+0],255&Ji,Ji>>16,Ur,on)),Hn=1;Hn<=Oi;++Hn){var Qa=ae[Oe+Hn]|qe[At+Hn]<<16,ya=Ut[$t+Hn]|rr[Wr+Hn]<<16,fo=Ri+Qa+da+ya+524296,za=fo+2*(Qa+da)>>3;Ji=za+Ri>>1,Ri=(fo=fo+2*(Ri+ya)>>3)+Qa>>1,Je(lr[Fr+2*Hn-1],255&Ji,Ji>>16,cn,Hr+(2*Hn-1)*bt),Je(lr[Fr+2*Hn-0],255&Ri,Ri>>16,cn,Hr+(2*Hn-0)*bt),an!=null&&(Ji=fo+da>>1,Ri=za+ya>>1,Je(an[Be+2*Hn-1],255&Ji,Ji>>16,Ur,on+(2*Hn-1)*bt),Je(an[Be+2*Hn+0],255&Ri,Ri>>16,Ur,on+(2*Hn+0)*bt)),Ri=Qa,da=ya}1&gn||(Ji=3*Ri+da+131074>>2,Je(lr[Fr+gn-1],255&Ji,Ji>>16,cn,Hr+(gn-1)*bt),an!=null&&(Ji=3*da+Ri+131074>>2,Je(an[Be+gn-1],255&Ji,Ji>>16,Ur,on+(gn-1)*bt)))}}function Qe(){ze[Sl]=st,ze[Su]=zt,ze[vu]=ct,ze[Au]=Tr,ze[Ol]=br,ze[cu]=Kr,ze[du]=zr,ze[Lu]=zt,ze[zl]=Tr,ze[ru]=br,ze[ou]=Kr}function Lt(xe){return xe&~Yi?0>xe?0:255:xe>>ua}function ir(xe,Je){return Lt((19077*xe>>8)+(26149*Je>>8)-14234)}function Yr(xe,Je,bt){return Lt((19077*xe>>8)-(6419*Je>>8)-(13320*bt>>8)+8708)}function hn(xe,Je){return Lt((19077*xe>>8)+(33050*Je>>8)-17685)}function In(xe,Je,bt,lr,Fr){lr[Fr+0]=ir(xe,bt),lr[Fr+1]=Yr(xe,Je,bt),lr[Fr+2]=hn(xe,Je)}function si(xe,Je,bt,lr,Fr){lr[Fr+0]=hn(xe,Je),lr[Fr+1]=Yr(xe,Je,bt),lr[Fr+2]=ir(xe,bt)}function wi(xe,Je,bt,lr,Fr){var an=Yr(xe,Je,bt);Je=an<<3&224|hn(xe,Je)>>3,lr[Fr+0]=248&ir(xe,bt)|an>>5,lr[Fr+1]=Je}function gi(xe,Je,bt,lr,Fr){var an=240&hn(xe,Je)|15;lr[Fr+0]=240&ir(xe,bt)|Yr(xe,Je,bt)>>4,lr[Fr+1]=an}function Gi(xe,Je,bt,lr,Fr){lr[Fr+0]=255,In(xe,Je,bt,lr,Fr+1)}function sa(xe,Je,bt,lr,Fr){si(xe,Je,bt,lr,Fr),lr[Fr+3]=255}function Ua(xe,Je,bt,lr,Fr){In(xe,Je,bt,lr,Fr),lr[Fr+3]=255}function _o(xe,Je){return 0>xe?0:xe>Je?Je:xe}function no(xe,Je,bt){Wt[xe]=function(lr,Fr,an,Be,ae,Oe,qe,At,Ut){for(var $t=At+(-2&Ut)*bt;At!=$t;)Je(lr[Fr+0],an[Be+0],ae[Oe+0],qe,At),Je(lr[Fr+1],an[Be+0],ae[Oe+0],qe,At+bt),Fr+=2,++Be,++Oe,At+=2*bt;1&Ut&&Je(lr[Fr+0],an[Be+0],ae[Oe+0],qe,At)}}function Wo(xe,Je,bt){return bt==0?xe==0?Je==0?6:5:Je==0?4:0:bt}function Zo(xe,Je,bt,lr,Fr){switch(xe>>>30){case 3:Os(Je,bt,lr,Fr,0);break;case 2:es(Je,bt,lr,Fr);break;case 1:Ps(Je,bt,lr,Fr)}}function Bo(xe,Je){var bt,lr,Fr=Je.M,an=Je.Nb,Be=xe.oc,ae=xe.pc+40,Oe=xe.oc,qe=xe.pc+584,At=xe.oc,Ut=xe.pc+600;for(bt=0;16>bt;++bt)Be[ae+32*bt-1]=129;for(bt=0;8>bt;++bt)Oe[qe+32*bt-1]=129,At[Ut+32*bt-1]=129;for(0<Fr?Be[ae-1-32]=Oe[qe-1-32]=At[Ut-1-32]=129:(et(Be,ae-32-1,127,21),et(Oe,qe-32-1,127,9),et(At,Ut-32-1,127,9)),lr=0;lr<xe.za;++lr){var $t=Je.ya[Je.aa+lr];if(0<lr){for(bt=-1;16>bt;++bt)Ye(Be,ae+32*bt-4,Be,ae+32*bt+12,4);for(bt=-1;8>bt;++bt)Ye(Oe,qe+32*bt-4,Oe,qe+32*bt+4,4),Ye(At,Ut+32*bt-4,At,Ut+32*bt+4,4)}var rr=xe.Gd,Wr=xe.Hd+lr,cn=$t.ad,Hr=$t.Hc;if(0<Fr&&(Ye(Be,ae-32,rr[Wr].y,0,16),Ye(Oe,qe-32,rr[Wr].f,0,8),Ye(At,Ut-32,rr[Wr].ea,0,8)),$t.Za){var Ur=Be,on=ae-32+16;for(0<Fr&&(lr>=xe.za-1?et(Ur,on,rr[Wr].y[15],4):Ye(Ur,on,rr[Wr+1].y,0,4)),bt=0;4>bt;bt++)Ur[on+128+bt]=Ur[on+256+bt]=Ur[on+384+bt]=Ur[on+0+bt];for(bt=0;16>bt;++bt,Hr<<=2)Ur=Be,on=ae+ys[bt],H[$t.Ob[bt]](Ur,on),Zo(Hr,cn,16*+bt,Ur,on)}else if(Ur=Wo(lr,Fr,$t.Ob[0]),K[Ur](Be,ae),Hr!=0)for(bt=0;16>bt;++bt,Hr<<=2)Zo(Hr,cn,16*+bt,Be,ae+ys[bt]);for(bt=$t.Gc,Ur=Wo(lr,Fr,$t.Dd),Z[Ur](Oe,qe),Z[Ur](At,Ut),Hr=cn,Ur=Oe,on=qe,255&($t=bt>>0)&&(170&$t?Is(Hr,256,Ur,on):ml(Hr,256,Ur,on)),$t=At,Hr=Ut,255&(bt>>=8)&&(170&bt?Is(cn,320,$t,Hr):ml(cn,320,$t,Hr)),Fr<xe.Ub-1&&(Ye(rr[Wr].y,0,Be,ae+480,16),Ye(rr[Wr].f,0,Oe,qe+224,8),Ye(rr[Wr].ea,0,At,Ut+224,8)),bt=8*an*xe.B,rr=xe.sa,Wr=xe.ta+16*lr+16*an*xe.R,cn=xe.qa,$t=xe.ra+8*lr+bt,Hr=xe.Ha,Ur=xe.Ia+8*lr+bt,bt=0;16>bt;++bt)Ye(rr,Wr+bt*xe.R,Be,ae+32*bt,16);for(bt=0;8>bt;++bt)Ye(cn,$t+bt*xe.B,Oe,qe+32*bt,8),Ye(Hr,Ur+bt*xe.B,At,Ut+32*bt,8)}}function Es(xe,Je,bt,lr,Fr,an,Be,ae,Oe){var qe=[0],At=[0],Ut=0,$t=Oe!=null?Oe.kd:0,rr=Oe!=null?Oe:new al;if(xe==null||12>bt)return 7;rr.data=xe,rr.w=Je,rr.ha=bt,Je=[Je],bt=[bt],rr.gb=[rr.gb];e:{var Wr=Je,cn=bt,Hr=rr.gb;if(Re(xe!=null),Re(cn!=null),Re(Hr!=null),Hr[0]=0,12<=cn[0]&&!Ue(xe,Wr[0],"RIFF")){if(Ue(xe,Wr[0]+8,"WEBP")){Hr=3;break e}var Ur=ba(xe,Wr[0]+4);if(12>Ur||4294967286<Ur){Hr=3;break e}if($t&&Ur>cn[0]-8){Hr=7;break e}Hr[0]=Ur,Wr[0]+=12,cn[0]-=12}Hr=0}if(Hr!=0)return Hr;for(Ur=0<rr.gb[0],bt=bt[0];;){e:{var on=xe;cn=Je,Hr=bt;var gn=qe,Hn=At,Oi=Wr=[0];if((Ji=Ut=[Ut])[0]=0,8>Hr[0])Hr=7;else{if(!Ue(on,cn[0],"VP8X")){if(ba(on,cn[0]+4)!=10){Hr=3;break e}if(18>Hr[0]){Hr=7;break e}var Ri=ba(on,cn[0]+8),da=1+ia(on,cn[0]+12);if(2147483648<=da*(on=1+ia(on,cn[0]+15))){Hr=3;break e}Oi!=null&&(Oi[0]=Ri),gn!=null&&(gn[0]=da),Hn!=null&&(Hn[0]=on),cn[0]+=18,Hr[0]-=18,Ji[0]=1}Hr=0}}if(Ut=Ut[0],Wr=Wr[0],Hr!=0)return Hr;if(cn=!!(2&Wr),!Ur&&Ut)return 3;if(an!=null&&(an[0]=!!(16&Wr)),Be!=null&&(Be[0]=cn),ae!=null&&(ae[0]=0),Be=qe[0],Wr=At[0],Ut&&cn&&Oe==null){Hr=0;break}if(4>bt){Hr=7;break}if(Ur&&Ut||!Ur&&!Ut&&!Ue(xe,Je[0],"ALPH")){bt=[bt],rr.na=[rr.na],rr.P=[rr.P],rr.Sa=[rr.Sa];e:{Ri=xe,Hr=Je,Ur=bt;var Ji=rr.gb;gn=rr.na,Hn=rr.P,Oi=rr.Sa,da=22,Re(Ri!=null),Re(Ur!=null),on=Hr[0];var Qa=Ur[0];for(Re(gn!=null),Re(Oi!=null),gn[0]=null,Hn[0]=null,Oi[0]=0;;){if(Hr[0]=on,Ur[0]=Qa,8>Qa){Hr=7;break e}var ya=ba(Ri,on+4);if(4294967286<ya){Hr=3;break e}var fo=8+ya+1&-2;if(da+=fo,0<Ji&&da>Ji){Hr=3;break e}if(!Ue(Ri,on,"VP8 ")||!Ue(Ri,on,"VP8L")){Hr=0;break e}if(Qa[0]<fo){Hr=7;break e}Ue(Ri,on,"ALPH")||(gn[0]=Ri,Hn[0]=on+8,Oi[0]=ya),on+=fo,Qa-=fo}}if(bt=bt[0],rr.na=rr.na[0],rr.P=rr.P[0],rr.Sa=rr.Sa[0],Hr!=0)break}bt=[bt],rr.Ja=[rr.Ja],rr.xa=[rr.xa];e:if(Ji=xe,Hr=Je,Ur=bt,gn=rr.gb[0],Hn=rr.Ja,Oi=rr.xa,Ri=Hr[0],on=!Ue(Ji,Ri,"VP8 "),da=!Ue(Ji,Ri,"VP8L"),Re(Ji!=null),Re(Ur!=null),Re(Hn!=null),Re(Oi!=null),8>Ur[0])Hr=7;else{if(on||da){if(Ji=ba(Ji,Ri+4),12<=gn&&Ji>gn-12){Hr=3;break e}if($t&&Ji>Ur[0]-8){Hr=7;break e}Hn[0]=Ji,Hr[0]+=8,Ur[0]-=8,Oi[0]=da}else Oi[0]=5<=Ur[0]&&Ji[Ri+0]==47&&!(Ji[Ri+4]>>5),Hn[0]=Ur[0];Hr=0}if(bt=bt[0],rr.Ja=rr.Ja[0],rr.xa=rr.xa[0],Je=Je[0],Hr!=0)break;if(4294967286<rr.Ja)return 3;if(ae==null||cn||(ae[0]=rr.xa?2:1),Be=[Be],Wr=[Wr],rr.xa){if(5>bt){Hr=7;break}ae=Be,$t=Wr,cn=an,xe==null||5>bt?xe=0:5<=bt&&xe[Je+0]==47&&!(xe[Je+4]>>5)?(Ur=[0],Ji=[0],gn=[0],Kn(Hn=new Br,xe,Je,bt),Ma(Hn,Ur,Ji,gn)?(ae!=null&&(ae[0]=Ur[0]),$t!=null&&($t[0]=Ji[0]),cn!=null&&(cn[0]=gn[0]),xe=1):xe=0):xe=0}else{if(10>bt){Hr=7;break}ae=Wr,xe==null||10>bt||!Er(xe,Je+3,bt-3)?xe=0:($t=xe[Je+0]|xe[Je+1]<<8|xe[Je+2]<<16,cn=16383&(xe[Je+7]<<8|xe[Je+6]),xe=16383&(xe[Je+9]<<8|xe[Je+8]),1&$t||3<($t>>1&7)||!($t>>4&1)||$t>>5>=rr.Ja||!cn||!xe?xe=0:(Be&&(Be[0]=cn),ae&&(ae[0]=xe),xe=1))}if(!xe)return 3;if(Be=Be[0],Wr=Wr[0],Ut&&(qe[0]!=Be||At[0]!=Wr))return 3;Oe!=null&&(Oe[0]=rr,Oe.offset=Je-Oe.w,Re(4294967286>Je-Oe.w),Re(Oe.offset==Oe.ha-bt));break}return Hr==0||Hr==7&&Ut&&Oe==null?(an!=null&&(an[0]|=rr.na!=null&&0<rr.na.length),lr!=null&&(lr[0]=Be),Fr!=null&&(Fr[0]=Wr),0):Hr}function As(xe,Je,bt){var lr=Je.width,Fr=Je.height,an=0,Be=0,ae=lr,Oe=Fr;if(Je.Da=xe!=null&&0<xe.Da,Je.Da&&(ae=xe.cd,Oe=xe.bd,an=xe.v,Be=xe.j,11>bt||(an&=-2,Be&=-2),0>an||0>Be||0>=ae||0>=Oe||an+ae>lr||Be+Oe>Fr))return 0;if(Je.v=an,Je.j=Be,Je.va=an+ae,Je.o=Be+Oe,Je.U=ae,Je.T=Oe,Je.da=xe!=null&&0<xe.da,Je.da){if(!ha(ae,Oe,bt=[xe.ib],an=[xe.hb]))return 0;Je.ib=bt[0],Je.hb=an[0]}return Je.ob=xe!=null&&xe.ob,Je.Kb=xe==null||!xe.Sd,Je.da&&(Je.ob=Je.ib<3*lr/4&&Je.hb<3*Fr/4,Je.Kb=0),1}function $o(xe){if(xe==null)return 2;if(11>xe.S){var Je=xe.f.RGBA;Je.fb+=(xe.height-1)*Je.A,Je.A=-Je.A}else Je=xe.f.kb,xe=xe.height,Je.O+=(xe-1)*Je.fa,Je.fa=-Je.fa,Je.N+=(xe-1>>1)*Je.Ab,Je.Ab=-Je.Ab,Je.W+=(xe-1>>1)*Je.Db,Je.Db=-Je.Db,Je.F!=null&&(Je.J+=(xe-1)*Je.lb,Je.lb=-Je.lb);return 0}function Do(xe,Je,bt,lr){if(lr==null||0>=xe||0>=Je)return 2;if(bt!=null){if(bt.Da){var Fr=bt.cd,an=bt.bd,Be=-2&bt.v,ae=-2&bt.j;if(0>Be||0>ae||0>=Fr||0>=an||Be+Fr>xe||ae+an>Je)return 2;xe=Fr,Je=an}if(bt.da){if(!ha(xe,Je,Fr=[bt.ib],an=[bt.hb]))return 2;xe=Fr[0],Je=an[0]}}lr.width=xe,lr.height=Je;e:{var Oe=lr.width,qe=lr.height;if(xe=lr.S,0>=Oe||0>=qe||!(xe>=Sl&&13>xe))xe=2;else{if(0>=lr.Rd&&lr.sd==null){Be=an=Fr=Je=0;var At=(ae=Oe*Ws[xe])*qe;if(11>xe||(an=(qe+1)/2*(Je=(Oe+1)/2),xe==12&&(Be=(Fr=Oe)*qe)),(qe=$e(At+2*an+Be))==null){xe=1;break e}lr.sd=qe,11>xe?((Oe=lr.f.RGBA).eb=qe,Oe.fb=0,Oe.A=ae,Oe.size=At):((Oe=lr.f.kb).y=qe,Oe.O=0,Oe.fa=ae,Oe.Fd=At,Oe.f=qe,Oe.N=0+At,Oe.Ab=Je,Oe.Cd=an,Oe.ea=qe,Oe.W=0+At+an,Oe.Db=Je,Oe.Ed=an,xe==12&&(Oe.F=qe,Oe.J=0+At+2*an),Oe.Tc=Be,Oe.lb=Fr)}if(Je=1,Fr=lr.S,an=lr.width,Be=lr.height,Fr>=Sl&&13>Fr)if(11>Fr)xe=lr.f.RGBA,Je&=(ae=Math.abs(xe.A))*(Be-1)+an<=xe.size,Je&=ae>=an*Ws[Fr],Je&=xe.eb!=null;else{xe=lr.f.kb,ae=(an+1)/2,At=(Be+1)/2,Oe=Math.abs(xe.fa),qe=Math.abs(xe.Ab);var Ut=Math.abs(xe.Db),$t=Math.abs(xe.lb),rr=$t*(Be-1)+an;Je&=Oe*(Be-1)+an<=xe.Fd,Je&=qe*(At-1)+ae<=xe.Cd,Je=(Je&=Ut*(At-1)+ae<=xe.Ed)&Oe>=an&qe>=ae&Ut>=ae,Je&=xe.y!=null,Je&=xe.f!=null,Je&=xe.ea!=null,Fr==12&&(Je&=$t>=an,Je&=rr<=xe.Tc,Je&=xe.F!=null)}else Je=0;xe=Je?0:2}}return xe!=0||bt!=null&&bt.fd&&(xe=$o(lr)),xe}var vo=64,Ms=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rl=24,gs=32,Ra=8,dl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ir("Predictor0","PredictorAdd0"),Wt.Predictor0=function(){return 4278190080},Wt.Predictor1=function(xe){return xe},Wt.Predictor2=function(xe,Je,bt){return Je[bt+0]},Wt.Predictor3=function(xe,Je,bt){return Je[bt+1]},Wt.Predictor4=function(xe,Je,bt){return Je[bt-1]},Wt.Predictor5=function(xe,Je,bt){return xn(xn(xe,Je[bt+1]),Je[bt+0])},Wt.Predictor6=function(xe,Je,bt){return xn(xe,Je[bt-1])},Wt.Predictor7=function(xe,Je,bt){return xn(xe,Je[bt+0])},Wt.Predictor8=function(xe,Je,bt){return xn(Je[bt-1],Je[bt+0])},Wt.Predictor9=function(xe,Je,bt){return xn(Je[bt+0],Je[bt+1])},Wt.Predictor10=function(xe,Je,bt){return xn(xn(xe,Je[bt-1]),xn(Je[bt+0],Je[bt+1]))},Wt.Predictor11=function(xe,Je,bt){var lr=Je[bt+0];return 0>=Vr(lr>>24&255,xe>>24&255,(Je=Je[bt-1])>>24&255)+Vr(lr>>16&255,xe>>16&255,Je>>16&255)+Vr(lr>>8&255,xe>>8&255,Je>>8&255)+Vr(255&lr,255&xe,255&Je)?lr:xe},Wt.Predictor12=function(xe,Je,bt){var lr=Je[bt+0];return(ur((xe>>24&255)+(lr>>24&255)-((Je=Je[bt-1])>>24&255))<<24|ur((xe>>16&255)+(lr>>16&255)-(Je>>16&255))<<16|ur((xe>>8&255)+(lr>>8&255)-(Je>>8&255))<<8|ur((255&xe)+(255&lr)-(255&Je)))>>>0},Wt.Predictor13=function(xe,Je,bt){var lr=Je[bt-1];return(Dr((xe=xn(xe,Je[bt+0]))>>24&255,lr>>24&255)<<24|Dr(xe>>16&255,lr>>16&255)<<16|Dr(xe>>8&255,lr>>8&255)<<8|Dr(xe>>0&255,lr>>0&255))>>>0};var fl=Wt.PredictorAdd0;Wt.PredictorAdd1=sn,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 js=Wt.PredictorAdd2;Or("ColorIndexInverseTransform","MapARGB","32b",function(xe){return xe>>8&255},function(xe){return xe}),Or("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(xe){return xe},function(xe){return xe>>8&255});var _s,Xs=Wt.ColorIndexInverseTransform,Ql=Wt.MapARGB,Ul=Wt.VP8LColorIndexInverseTransformAlpha,wl=Wt.MapAlpha,Ts=Wt.VP8LPredictorsAdd=[];Ts.length=16,(Wt.VP8LPredictors=[]).length=16,(Wt.VP8LPredictorsAdd_C=[]).length=16,(Wt.VP8LPredictors_C=[]).length=16;var Ks,Tl,pl,jo,yo,qo,ps,Os,es,Is,Ps,ml,Rl,_l,Bl,jl,kl,Xl,ol,Ys,sl,nl,xl,Ml,Wl,au,Nl,$l,tu=$e(511),Iu=$e(2041),pu=$e(225),mu=$e(767),gu=0,ql=Iu,Cl=pu,ll=mu,Hl=tu,Sl=0,Su=1,vu=2,Au=3,Ol=4,cu=5,du=6,Lu=7,zl=8,ru=9,ou=10,su=[2,3,7],Jl=[3,3,11],Du=[280,256,256,256,40],Ru=[0,1,1,1,0],Zl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],xu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],bu=8,hl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Dl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nu=null,Nu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],iu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ve=[[[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]]],te=[[[[255,255,255,255,255,255,255,255,255,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]]]],L=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],K=[],H=[],Z=[],ne=1,Ae=2,Te=[],ze=[];Le("UpsampleRgbLinePair",In,3),Le("UpsampleBgrLinePair",si,3),Le("UpsampleRgbaLinePair",Ua,4),Le("UpsampleBgraLinePair",sa,4),Le("UpsampleArgbLinePair",Gi,4),Le("UpsampleRgba4444LinePair",gi,2),Le("UpsampleRgb565LinePair",wi,2);var st=Wt.UpsampleRgbLinePair,ct=Wt.UpsampleBgrLinePair,zt=Wt.UpsampleRgbaLinePair,Tr=Wt.UpsampleBgraLinePair,br=Wt.UpsampleArgbLinePair,Kr=Wt.UpsampleRgba4444LinePair,zr=Wt.UpsampleRgb565LinePair,Nn=16,Mn=1<<Nn-1,Yn=-227,bi=482,ua=6,Yi=(256<<ua)-1,ta=0,Pa=$e(256),Ya=$e(256),Ba=$e(256),Sa=$e(256),Go=$e(bi-Yn),Ls=$e(bi-Yn);no("YuvToRgbRow",In,3),no("YuvToBgrRow",si,3),no("YuvToRgbaRow",Ua,4),no("YuvToBgraRow",sa,4),no("YuvToArgbRow",Gi,4),no("YuvToRgba4444Row",gi,2),no("YuvToRgb565Row",wi,2);var ys=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],bs=[0,2,8],Fs=[8,7,6,4,4,2,2,2,1,1,1,1],ws=1;this.WebPDecodeRGBA=function(xe,Je,bt,lr,Fr){var an=Su,Be=new Us,ae=new Ki;Be.ba=ae,ae.S=an,ae.width=[ae.width],ae.height=[ae.height];var Oe=ae.width,qe=ae.height,At=new qi;if(At==null||xe==null)var Ut=2;else Re(At!=null),Ut=Es(xe,Je,bt,At.width,At.height,At.Pd,At.Qd,At.format,null);if(Ut!=0?Oe=0:(Oe!=null&&(Oe[0]=At.width[0]),qe!=null&&(qe[0]=At.height[0]),Oe=1),Oe){ae.width=ae.width[0],ae.height=ae.height[0],lr!=null&&(lr[0]=ae.width),Fr!=null&&(Fr[0]=ae.height);e:{if(lr=new uo,(Fr=new al).data=xe,Fr.w=Je,Fr.ha=bt,Fr.kd=1,Je=[0],Re(Fr!=null),((xe=Es(Fr.data,Fr.w,Fr.ha,null,null,null,Je,null,Fr))==0||xe==7)&&Je[0]&&(xe=4),(Je=xe)==0){if(Re(Be!=null),lr.data=Fr.data,lr.w=Fr.w+Fr.offset,lr.ha=Fr.ha-Fr.offset,lr.put=Ca,lr.ac=ca,lr.bc=ra,lr.ma=Be,Fr.xa){if((xe=mo())==null){Be=1;break e}if(function($t,rr){var Wr=[0],cn=[0],Hr=[0];t:for(;;){if($t==null)return 0;if(rr==null)return $t.a=2,0;if($t.l=rr,$t.a=0,Kn($t.m,rr.data,rr.w,rr.ha),!Ma($t.m,Wr,cn,Hr)){$t.a=3;break t}if($t.xb=Ae,rr.width=Wr[0],rr.height=cn[0],!To(Wr[0],cn[0],1,$t,null))break t;return 1}return Re($t.a!=0),0}(xe,lr)){if(lr=(Je=Do(lr.width,lr.height,Be.Oa,Be.ba))==0){t:{lr=xe;r:for(;;){if(lr==null){lr=0;break t}if(Re(lr.s.yc!=null),Re(lr.s.Ya!=null),Re(0<lr.s.Wb),Re((bt=lr.l)!=null),Re((Fr=bt.ma)!=null),lr.xb!=0){if(lr.ca=Fr.ba,lr.tb=Fr.tb,Re(lr.ca!=null),!As(Fr.Oa,bt,Au)){lr.a=2;break r}if(!ao(lr,bt.width))break r;if(bt.da)break r;if((bt.da||ki(lr.ca.S))&&Se(),11>lr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),lr.ca.f.kb.F!=null&&Se()),lr.Pb&&0<lr.s.ua&&lr.s.vb.X==null&&!vi(lr.s.vb,lr.s.Wa.Xa)){lr.a=1;break r}lr.xb=0}if(!oo(lr,lr.V,lr.Ba,lr.c,lr.i,bt.o,_a))break r;Fr.Dc=lr.Ma,lr=1;break t}Re(lr.a!=0),lr=0}lr=!lr}lr&&(Je=xe.a)}else Je=xe.a}else{if((xe=new Ha)==null){Be=1;break e}if(xe.Fa=Fr.na,xe.P=Fr.P,xe.qc=Fr.Sa,Zr(xe,lr)){if((Je=Do(lr.width,lr.height,Be.Oa,Be.ba))==0){if(xe.Aa=0,bt=Be.Oa,Re((Fr=xe)!=null),bt!=null){if(0<(Oe=0>(Oe=bt.Md)?0:100<Oe?255:255*Oe/100)){for(qe=At=0;4>qe;++qe)12>(Ut=Fr.pb[qe]).lc&&(Ut.ia=Oe*Fs[0>Ut.lc?0:Ut.lc]>>3),At|=Ut.ia;At&&(alert("todo:VP8InitRandom"),Fr.ia=1)}Fr.Ga=bt.Id,100<Fr.Ga?Fr.Ga=100:0>Fr.Ga&&(Fr.Ga=0)}un(xe,lr)||(Je=xe.a)}}else Je=xe.a}Je==0&&Be.Oa!=null&&Be.Oa.fd&&(Je=$o(Be.ba))}Be=Je}an=Be!=0?null:11>an?ae.f.RGBA.eb:ae.f.kb.y}else an=null;return an};var Ws=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function cr(Vn,Wt){for(var Et="",kt=0;kt<4;kt++)Et+=String.fromCharCode(Vn[Wt++]);return Et}function Jr(Vn,Wt){return(Vn[Wt+0]<<0|Vn[Wt+1]<<8|Vn[Wt+2]<<16)>>>0}function Qr(Vn,Wt){return(Vn[Wt+0]<<0|Vn[Wt+1]<<8|Vn[Wt+2]<<16|Vn[Wt+3]<<24)>>>0}new ft;var fn=[0],pr=[0],Wn=[],kr=new ft,kn=rt,bn=function(Vn,Wt){var Et={},kt=0,Bt=!1,Kt=0,Ot=0;if(Et.frames=[],!function(Br,Tn,zn,Qn){for(var ii=0;ii<Qn;ii++)if(Br[Tn+ii]!=zn.charCodeAt(ii))return!0;return!1}(Vn,Wt,"RIFF",4)){var sr,fr;for(Qr(Vn,Wt+=4),Wt+=8;Wt<Vn.length;){var vr=cr(Vn,Wt),Rr=Qr(Vn,Wt+=4);Wt+=4;var Kn=Rr+(1&Rr);switch(vr){case"VP8 ":case"VP8L":Et.frames[kt]===void 0&&(Et.frames[kt]={}),(pn=Et.frames[kt]).src_off=Bt?Ot:Wt-8,pn.src_size=Kt+Rr+8,kt++,Bt&&(Bt=!1,Kt=0,Ot=0);break;case"VP8X":(pn=Et.header={}).feature_flags=Vn[Wt];var Dn=Wt+4;pn.canvas_width=1+Jr(Vn,Dn),Dn+=3,pn.canvas_height=1+Jr(Vn,Dn),Dn+=3;break;case"ALPH":Bt=!0,Kt=Kn+8,Ot=Wt-8;break;case"ANIM":(pn=Et.header).bgcolor=Qr(Vn,Wt),Dn=Wt+4,pn.loop_count=(sr=Vn)[(fr=Dn)+0]<<0|sr[fr+1]<<8,Dn+=2;break;case"ANMF":var ui,pn;(pn=Et.frames[kt]={}).offset_x=2*Jr(Vn,Wt),Wt+=3,pn.offset_y=2*Jr(Vn,Wt),Wt+=3,pn.width=1+Jr(Vn,Wt),Wt+=3,pn.height=1+Jr(Vn,Wt),Wt+=3,pn.duration=Jr(Vn,Wt),Wt+=3,ui=Vn[Wt++],pn.dispose=1&ui,pn.blend=ui>>1&1}vr!="ANMF"&&(Wt+=Kn)}return Et}}(kn,0);bn.response=kn,bn.rgbaoutput=!0,bn.dataurl=!1;var qr=bn.header?bn.header:null,fi=bn.frames?bn.frames:null;if(qr){qr.loop_counter=qr.loop_count,fn=[qr.canvas_height],pr=[qr.canvas_width];for(var Mi=0;Mi<fi.length&&fi[Mi].blend!=0;Mi++);}var Zi=fi[0],tn=kr.WebPDecodeRGBA(kn,Zi.src_off,Zi.src_size,pr,fn);Zi.rgba=tn,Zi.imgwidth=pr[0],Zi.imgheight=fn[0];for(var En=0;En<pr[0]*fn[0]*4;En++)Wn[En]=tn[En];return this.width=pr,this.height=fn,this.data=Wn,this}!function(rt){var Re=function(){return typeof A.b=="function"},Ue=function(pr,Wn,kr,kn){var bn=4,qr=at;switch(kn){case rt.image_compression.FAST:bn=1,qr=$e;break;case rt.image_compression.MEDIUM:bn=6,qr=wt;break;case rt.image_compression.SLOW:bn=9,qr=ft}pr=Ye(pr,Wn,kr,qr);var fi=Object(A.b)(pr,{level:bn});return rt.__addimage__.arrayBufferToBinaryString(fi)},Ye=function(pr,Wn,kr,kn){for(var bn,qr,fi,Mi=pr.length/Wn,Zi=new Uint8Array(pr.length+Mi),tn=Jr(),En=0;En<Mi;En+=1){if(fi=En*Wn,bn=pr.subarray(fi,fi+Wn),kn)Zi.set(kn(bn,kr,qr),fi+En);else{for(var Vn,Wt=tn.length,Et=[];Vn<Wt;Vn+=1)Et[Vn]=tn[Vn](bn,kr,qr);var kt=Qr(Et.concat());Zi.set(Et[kt],fi+En)}qr=bn}return Zi},et=function(pr){var Wn=Array.apply([],pr);return Wn.unshift(0),Wn},$e=function(pr,Wn){var kr,kn=[],bn=pr.length;kn[0]=1;for(var qr=0;qr<bn;qr+=1)kr=pr[qr-Wn]||0,kn[qr+1]=pr[qr]-kr+256&255;return kn},at=function(pr,Wn,kr){var kn,bn=[],qr=pr.length;bn[0]=2;for(var fi=0;fi<qr;fi+=1)kn=kr&&kr[fi]||0,bn[fi+1]=pr[fi]-kn+256&255;return bn},wt=function(pr,Wn,kr){var kn,bn,qr=[],fi=pr.length;qr[0]=3;for(var Mi=0;Mi<fi;Mi+=1)kn=pr[Mi-Wn]||0,bn=kr&&kr[Mi]||0,qr[Mi+1]=pr[Mi]+256-(kn+bn>>>1)&255;return qr},ft=function(pr,Wn,kr){var kn,bn,qr,fi,Mi=[],Zi=pr.length;Mi[0]=4;for(var tn=0;tn<Zi;tn+=1)kn=pr[tn-Wn]||0,bn=kr&&kr[tn]||0,qr=kr&&kr[tn-Wn]||0,fi=cr(kn,bn,qr),Mi[tn+1]=pr[tn]-fi+256&255;return Mi},cr=function(pr,Wn,kr){if(pr===Wn&&Wn===kr)return pr;var kn=Math.abs(Wn-kr),bn=Math.abs(pr-kr),qr=Math.abs(pr+Wn-kr-kr);return kn<=bn&&kn<=qr?pr:bn<=qr?Wn:kr},Jr=function(){return[et,$e,at,wt,ft]},Qr=function(pr){var Wn=pr.map(function(kr){return kr.reduce(function(kn,bn){return kn+Math.abs(bn)},0)});return Wn.indexOf(Math.min.apply(null,Wn))};rt.processPNG=function(fn,pr,Wn,kr){var kn,bn,qr,fi,Mi,Zi,tn,En,Vn,Wt,Et,kt,Bt,Kt,Ot,sr=this.decode.FLATE_DECODE,fr="";if(this.__addimage__.isArrayBuffer(fn)&&(fn=new Uint8Array(fn)),this.__addimage__.isArrayBufferView(fn)){if(fn=(qr=new tt(fn)).imgData,bn=qr.bits,kn=qr.colorSpace,Mi=qr.colors,[4,6].indexOf(qr.colorType)!==-1){if(qr.bits===8){Vn=(En=qr.pixelBitlength==32?new Uint32Array(qr.decodePixels().buffer):qr.pixelBitlength==16?new Uint16Array(qr.decodePixels().buffer):new Uint8Array(qr.decodePixels().buffer)).length,Et=new Uint8Array(Vn*qr.colors),Wt=new Uint8Array(Vn);var vr,Rr=qr.pixelBitlength-qr.bits;for(Kt=0,Ot=0;Kt<Vn;Kt++){for(Bt=En[Kt],vr=0;vr<Rr;)Et[Ot++]=Bt>>>vr&255,vr+=qr.bits;Wt[Kt]=Bt>>>vr&255}}if(qr.bits===16){Vn=(En=new Uint32Array(qr.decodePixels().buffer)).length,Et=new Uint8Array(Vn*(32/qr.pixelBitlength)*qr.colors),Wt=new Uint8Array(Vn*(32/qr.pixelBitlength)),kt=qr.colors>1,Kt=0,Ot=0;for(var Kn=0;Kt<Vn;)Bt=En[Kt++],Et[Ot++]=Bt>>>0&255,kt&&(Et[Ot++]=Bt>>>16&255,Bt=En[Kt++],Et[Ot++]=Bt>>>0&255),Wt[Kn++]=Bt>>>16&255;bn=8}kr!==rt.image_compression.NONE&&Re()?(fn=Ue(Et,qr.width*qr.colors,qr.colors,kr),tn=Ue(Wt,qr.width,1,kr)):(fn=Et,tn=Wt,sr=void 0)}if(qr.colorType===3&&(kn=this.color_spaces.INDEXED,Zi=qr.palette,qr.transparency.indexed)){var Dn=qr.transparency.indexed,ui=0;for(Kt=0,Vn=Dn.length;Kt<Vn;++Kt)ui+=Dn[Kt];if((ui/=255)===Vn-1&&Dn.indexOf(0)!==-1)fi=[Dn.indexOf(0)];else if(ui!==Vn){for(En=qr.decodePixels(),Wt=new Uint8Array(En.length),Kt=0,Vn=En.length;Kt<Vn;Kt++)Wt[Kt]=Dn[En[Kt]];tn=Ue(Wt,qr.width,1)}}var pn=function(Br){var Tn;switch(Br){case rt.image_compression.FAST:Tn=11;break;case rt.image_compression.MEDIUM:Tn=13;break;case rt.image_compression.SLOW:Tn=14;break;default:Tn=12}return Tn}(kr);return sr===this.decode.FLATE_DECODE&&(fr="/Predictor "+pn+" "),fr+="/Colors "+Mi+" /BitsPerComponent "+bn+" /Columns "+qr.width,(this.__addimage__.isArrayBuffer(fn)||this.__addimage__.isArrayBufferView(fn))&&(fn=this.__addimage__.arrayBufferToBinaryString(fn)),(tn&&this.__addimage__.isArrayBuffer(tn)||this.__addimage__.isArrayBufferView(tn))&&(tn=this.__addimage__.arrayBufferToBinaryString(tn)),{alias:Wn,data:fn,index:pr,filter:sr,decodeParameters:fr,transparency:fi,palette:Zi,sMask:tn,predictor:pn,width:qr.width,height:qr.height,bitsPerComponent:bn,colorSpace:kn}}}}(z.API),function(rt){rt.processGIF89A=function(Re,Ue,Ye,et){var $e=new vt(Re),at=$e.width,wt=$e.height,ft=[];$e.decodeAndBlitFrameRGBA(0,ft);var cr={data:ft,width:at,height:wt},Jr=new Vt(100).encode(cr,100);return rt.processJPEG.call(this,Jr,Ue,Ye,et)},rt.processGIF87A=rt.processGIF89A}(z.API),Mr.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 rt=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(rt);for(var Re=0;Re<rt;Re++){var Ue=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),et=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0);this.palette[Re]={red:et,green:Ye,blue:Ue,quad:$e}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mr.prototype.parseBGR=function(){this.pos=this.offset;try{var rt="bit"+this.bitPP,Re=this.width*this.height*4;this.data=new Uint8Array(Re),this[rt]()}catch(Ue){h.log("bit decode error:"+Ue)}},Mr.prototype.bit1=function(){var rt,Re=Math.ceil(this.width/8),Ue=Re%4;for(rt=this.height-1;rt>=0;rt--){for(var Ye=this.bottom_up?rt:this.height-1-rt,et=0;et<Re;et++)for(var $e=this.datav.getUint8(this.pos++,!0),at=Ye*this.width*4+8*et*4,wt=0;wt<8&&8*et+wt<this.width;wt++){var ft=this.palette[$e>>7-wt&1];this.data[at+4*wt]=ft.blue,this.data[at+4*wt+1]=ft.green,this.data[at+4*wt+2]=ft.red,this.data[at+4*wt+3]=255}Ue!==0&&(this.pos+=4-Ue)}},Mr.prototype.bit4=function(){for(var rt=Math.ceil(this.width/2),Re=rt%4,Ue=this.height-1;Ue>=0;Ue--){for(var Ye=this.bottom_up?Ue:this.height-1-Ue,et=0;et<rt;et++){var $e=this.datav.getUint8(this.pos++,!0),at=Ye*this.width*4+2*et*4,wt=$e>>4,ft=15&$e,cr=this.palette[wt];if(this.data[at]=cr.blue,this.data[at+1]=cr.green,this.data[at+2]=cr.red,this.data[at+3]=255,2*et+1>=this.width)break;cr=this.palette[ft],this.data[at+4]=cr.blue,this.data[at+4+1]=cr.green,this.data[at+4+2]=cr.red,this.data[at+4+3]=255}Re!==0&&(this.pos+=4-Re)}},Mr.prototype.bit8=function(){for(var rt=this.width%4,Re=this.height-1;Re>=0;Re--){for(var Ue=this.bottom_up?Re:this.height-1-Re,Ye=0;Ye<this.width;Ye++){var et=this.datav.getUint8(this.pos++,!0),$e=Ue*this.width*4+4*Ye;if(et<this.palette.length){var at=this.palette[et];this.data[$e]=at.red,this.data[$e+1]=at.green,this.data[$e+2]=at.blue,this.data[$e+3]=255}else this.data[$e]=255,this.data[$e+1]=255,this.data[$e+2]=255,this.data[$e+3]=255}rt!==0&&(this.pos+=4-rt)}},Mr.prototype.bit15=function(){for(var rt=this.width%3,Re=parseInt("11111",2),Ue=this.height-1;Ue>=0;Ue--){for(var Ye=this.bottom_up?Ue:this.height-1-Ue,et=0;et<this.width;et++){var $e=this.datav.getUint16(this.pos,!0);this.pos+=2;var at=($e&Re)/Re*255|0,wt=($e>>5&Re)/Re*255|0,ft=($e>>10&Re)/Re*255|0,cr=$e>>15?255:0,Jr=Ye*this.width*4+4*et;this.data[Jr]=ft,this.data[Jr+1]=wt,this.data[Jr+2]=at,this.data[Jr+3]=cr}this.pos+=rt}},Mr.prototype.bit16=function(){for(var rt=this.width%3,Re=parseInt("11111",2),Ue=parseInt("111111",2),Ye=this.height-1;Ye>=0;Ye--){for(var et=this.bottom_up?Ye:this.height-1-Ye,$e=0;$e<this.width;$e++){var at=this.datav.getUint16(this.pos,!0);this.pos+=2;var wt=(at&Re)/Re*255|0,ft=(at>>5&Ue)/Ue*255|0,cr=(at>>11)/Re*255|0,Jr=et*this.width*4+4*$e;this.data[Jr]=cr,this.data[Jr+1]=ft,this.data[Jr+2]=wt,this.data[Jr+3]=255}this.pos+=rt}},Mr.prototype.bit24=function(){for(var rt=this.height-1;rt>=0;rt--){for(var Re=this.bottom_up?rt:this.height-1-rt,Ue=0;Ue<this.width;Ue++){var Ye=this.datav.getUint8(this.pos++,!0),et=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0),at=Re*this.width*4+4*Ue;this.data[at]=$e,this.data[at+1]=et,this.data[at+2]=Ye,this.data[at+3]=255}this.pos+=this.width%4}},Mr.prototype.bit32=function(){for(var rt=this.height-1;rt>=0;rt--)for(var Re=this.bottom_up?rt:this.height-1-rt,Ue=0;Ue<this.width;Ue++){var Ye=this.datav.getUint8(this.pos++,!0),et=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0),at=this.datav.getUint8(this.pos++,!0),wt=Re*this.width*4+4*Ue;this.data[wt]=$e,this.data[wt+1]=et,this.data[wt+2]=Ye,this.data[wt+3]=at}},Mr.prototype.getData=function(){return this.data},function(rt){rt.processBMP=function(Re,Ue,Ye,et){var $e=new Mr(Re,!1),at=$e.width,wt=$e.height,ft={data:$e.getData(),width:at,height:wt},cr=new Vt(100).encode(ft,100);return rt.processJPEG.call(this,cr,Ue,Ye,et)}}(z.API),$r.prototype.getData=function(){return this.data},function(rt){rt.processWEBP=function(Re,Ue,Ye,et){var $e=new $r(Re,!1),at=$e.width,wt=$e.height,ft={data:$e.getData(),width:at,height:wt},cr=new Vt(100).encode(ft,100);return rt.processJPEG.call(this,cr,Ue,Ye,et)}}(z.API),z.API.processRGBA=function(rt,Re,Ue){for(var Ye=rt.data,et=Ye.length,$e=new Uint8Array(et/4*3),at=new Uint8Array(et/4),wt=0,ft=0,cr=0;cr<et;cr+=4){var Jr=Ye[cr],Qr=Ye[cr+1],fn=Ye[cr+2],pr=Ye[cr+3];$e[wt++]=Jr,$e[wt++]=Qr,$e[wt++]=fn,at[ft++]=pr}var Wn=this.__addimage__.arrayBufferToBinaryString($e);return{alpha:this.__addimage__.arrayBufferToBinaryString(at),data:Wn,index:Re,alias:Ue,colorSpace:"DeviceRGB",bitsPerComponent:8,width:rt.width,height:rt.height}},z.API.setLanguage=function(rt){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"}[rt]!==void 0&&(this.internal.languageSettings.languageCode=rt,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},Zt=z.API,Nt=Zt.getCharWidthsArray=function(rt,Re){var Ue,Ye,et=(Re=Re||{}).font||this.internal.getFont(),$e=Re.fontSize||this.internal.getFontSize(),at=Re.charSpace||this.internal.getCharSpace(),wt=Re.widths?Re.widths:et.metadata.Unicode.widths,ft=wt.fof?wt.fof:1,cr=Re.kerning?Re.kerning:et.metadata.Unicode.kerning,Jr=cr.fof?cr.fof:1,Qr=Re.doKerning!==!1,fn=0,pr=rt.length,Wn=0,kr=wt[0]||ft,kn=[];for(Ue=0;Ue<pr;Ue++)Ye=rt.charCodeAt(Ue),typeof et.metadata.widthOfString=="function"?kn.push((et.metadata.widthOfGlyph(et.metadata.characterToGlyph(Ye))+at*(1e3/$e)||0)/1e3):(fn=Qr&&x()(cr[Ye])==="object"&&!isNaN(parseInt(cr[Ye][Wn],10))?cr[Ye][Wn]/Jr:0,kn.push((wt[Ye]||kr)/ft+fn)),Wn=Ye;return kn},Me=Zt.getStringUnitWidth=function(rt,Re){var Ue=(Re=Re||{}).fontSize||this.internal.getFontSize(),Ye=Re.font||this.internal.getFont(),et=Re.charSpace||this.internal.getCharSpace();return Zt.processArabic&&(rt=Zt.processArabic(rt)),typeof Ye.metadata.widthOfString=="function"?Ye.metadata.widthOfString(rt,Ue,et)/Ue:Nt.apply(this,arguments).reduce(function($e,at){return $e+at},0)},ke=function(Re,Ue,Ye,et){for(var $e=[],at=0,wt=Re.length,ft=0;at!==wt&&ft+Ue[at]<Ye;)ft+=Ue[at],at++;$e.push(Re.slice(0,at));var cr=at;for(ft=0;at!==wt;)ft+Ue[at]>et&&($e.push(Re.slice(cr,at)),ft=0,cr=at),ft+=Ue[at],at++;return cr!==at&&$e.push(Re.slice(cr,at)),$e},Pe=function(Re,Ue,Ye){Ye||(Ye={});var et,$e,at,wt,ft,cr,Jr,Qr=[],fn=[Qr],pr=Ye.textIndent||0,Wn=0,kr=0,kn=Re.split(" "),bn=Nt.apply(this,[" ",Ye])[0];if(cr=Ye.lineIndent===-1?kn[0].length+2:Ye.lineIndent||0){var qr=Array(cr).join(" "),fi=[];kn.map(function(Zi){(Zi=Zi.split(/\s*\n/)).length>1?fi=fi.concat(Zi.map(function(tn,En){return(En&&tn.length?`
`:"")+tn})):fi.push(Zi[0])}),kn=fi,cr=Me.apply(this,[qr,Ye])}for(at=0,wt=kn.length;at<wt;at++){var Mi=0;if(et=kn[at],cr&&et[0]==`
`&&(et=et.substr(1),Mi=1),pr+Wn+(kr=($e=Nt.apply(this,[et,Ye])).reduce(function(Zi,tn){return Zi+tn},0))>Ue||Mi){if(kr>Ue){for(ft=ke.apply(this,[et,$e,Ue-(pr+Wn),Ue]),Qr.push(ft.shift()),Qr=[ft.pop()];ft.length;)fn.push([ft.shift()]);kr=$e.slice(et.length-(Qr[0]?Qr[0].length:0)).reduce(function(Zi,tn){return Zi+tn},0)}else Qr=[et];fn.push(Qr),pr=kr+cr,Wn=bn}else Qr.push(et),pr+=Wn+kr,Wn=bn}return Jr=cr?function(Zi,tn){return(tn?qr:"")+Zi.join(" ")}:function(Zi){return Zi.join(" ")},fn.map(Jr)},Zt.splitTextToSize=function(rt,Re,Ue){var Ye,et=(Ue=Ue||{}).fontSize||this.internal.getFontSize(),$e=function(Jr){if(Jr.widths&&Jr.kerning)return{widths:Jr.widths,kerning:Jr.kerning};var Qr=this.internal.getFont(Jr.fontName,Jr.fontStyle);return Qr.metadata.Unicode?{widths:Qr.metadata.Unicode.widths||{0:1},kerning:Qr.metadata.Unicode.kerning||{}}:{font:Qr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Ue);Ye=Array.isArray(rt)?rt:String(rt).split(/\r?\n/);var at=1*this.internal.scaleFactor*Re/et;$e.textIndent=Ue.textIndent?1*Ue.textIndent*this.internal.scaleFactor/et:0,$e.lineIndent=Ue.lineIndent;var wt,ft,cr=[];for(wt=0,ft=Ye.length;wt<ft;wt++)cr=cr.concat(Pe.apply(this,[Ye[wt],at,$e]));return cr},function(rt){rt.__fontmetrics__=rt.__fontmetrics__||{};for(var Re="klmnopqrstuvwxyz",Ue={},Ye={},et=0;et<Re.length;et++)Ue[Re[et]]="0123456789abcdef"[et],Ye["0123456789abcdef"[et]]=Re[et];var $e=function(fn){return"0x"+parseInt(fn,10).toString(16)},at=rt.__fontmetrics__.compress=function(Qr){var fn,pr,Wn,kr,kn=["{"];for(var bn in Qr){if(fn=Qr[bn],isNaN(parseInt(bn,10))?pr="'"+bn+"'":(bn=parseInt(bn,10),pr=(pr=$e(bn).slice(2)).slice(0,-1)+Ye[pr.slice(-1)]),typeof fn=="number")fn<0?(Wn=$e(fn).slice(3),kr="-"):(Wn=$e(fn).slice(2),kr=""),Wn=kr+Wn.slice(0,-1)+Ye[Wn.slice(-1)];else{if(x()(fn)!=="object")throw new Error("Don't know what to do with value type "+x()(fn)+".");Wn=at(fn)}kn.push(pr+Wn)}return kn.push("}"),kn.join("")},wt=rt.__fontmetrics__.uncompress=function(Qr){if(typeof Qr!="string")throw new Error("Invalid argument passed to uncompress.");for(var fn,pr,Wn,kr,kn={},bn=1,qr=kn,fi=[],Mi="",Zi="",tn=Qr.length-1,En=1;En<tn;En+=1)(kr=Qr[En])=="'"?fn?(Wn=fn.join(""),fn=void 0):fn=[]:fn?fn.push(kr):kr=="{"?(fi.push([qr,Wn]),qr={},Wn=void 0):kr=="}"?((pr=fi.pop())[0][pr[1]]=qr,Wn=void 0,qr=pr[0]):kr=="-"?bn=-1:Wn===void 0?Ue.hasOwnProperty(kr)?(Mi+=Ue[kr],Wn=parseInt(Mi,16)*bn,bn=1,Mi=""):Mi+=kr:Ue.hasOwnProperty(kr)?(Zi+=Ue[kr],qr[Wn]=parseInt(Zi,16)*bn,bn=1,Wn=void 0,Zi=""):Zi+=kr;return kn},ft={codePages:["WinAnsiEncoding"],WinAnsiEncoding:wt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},cr={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}},Jr={Unicode:{"Courier-Oblique":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":wt("{'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":wt("{'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:wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":wt("{'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:wt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:wt("{'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":wt("{'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:wt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":wt("{'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":wt("{'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":wt("{'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}}}")}};rt.events.push(["addFont",function(Qr){var fn=Qr.font,pr=Jr.Unicode[fn.postScriptName];pr&&(fn.metadata.Unicode={},fn.metadata.Unicode.widths=pr.widths,fn.metadata.Unicode.kerning=pr.kerning);var Wn=cr.Unicode[fn.postScriptName];Wn&&(fn.metadata.Unicode.encoding=Wn,fn.encoding=Wn.codePages[0])}])}(z.API),function(rt){var Re=function(Ye){for(var et=Ye.length,$e=new Uint8Array(et),at=0;at<et;at++)$e[at]=Ye.charCodeAt(at);return $e};rt.API.events.push(["addFont",function(Ue){var Ye=void 0,et=Ue.font,$e=Ue.instance;if(!et.isStandardFont){if($e===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+et.postScriptName+"').");if(typeof(Ye=$e.existsFileInVFS(et.postScriptName)===!1?$e.loadFile(et.postScriptName):$e.getFileFromVFS(et.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+et.postScriptName+"').");!function(at,wt){wt=/^\x00\x01\x00\x00/.test(wt)?Re(wt):Re(t(wt)),at.metadata=rt.API.TTFFont.open(wt),at.metadata.Unicode=at.metadata.Unicode||{encoding:{},kerning:{},widths:[]},at.metadata.glyIdsUsed=[0]}(et,Ye)}}])}(z),function(rt){function Re(){return(m.canvg?Promise.resolve(m.canvg):Promise.all([n.e(0),n.e(241)]).then(n.bind(null,"DXPr"))).catch(function(Ue){return Promise.reject(new Error("Could not load canvg: "+Ue))}).then(function(Ue){return Ue.default?Ue.default:Ue})}z.API.addSvgAsImage=function(Ue,Ye,et,$e,at,wt,ft,cr){if(isNaN(Ye)||isNaN(et))throw h.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN($e)||isNaN(at))throw h.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Jr=document.createElement("canvas");Jr.width=$e,Jr.height=at;var Qr=Jr.getContext("2d");Qr.fillStyle="#fff",Qr.fillRect(0,0,Jr.width,Jr.height);var fn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},pr=this;return Re().then(function(Wn){return Wn.fromString(Qr,Ue,fn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Wn){return Wn.render(fn)}).then(function(){pr.addImage(Jr.toDataURL("image/jpeg",1),Ye,et,$e,at,ft,cr)})}}(),z.API.putTotalPages=function(rt){var Re,Ue=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Re=new RegExp(rt,"g"),Ue=this.internal.getNumberOfPages()):(Re=new RegExp(this.pdfEscape16(rt,this.internal.getFont()),"g"),Ue=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ye=1;Ye<=this.internal.getNumberOfPages();Ye++)for(var et=0;et<this.internal.pages[Ye].length;et++)this.internal.pages[Ye][et]=this.internal.pages[Ye][et].replace(Re,Ue);return this},z.API.viewerPreferences=function(rt,Re){var Ue;rt=rt||{},Re=Re||!1;var Ye,et,$e,at={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}},wt=Object.keys(at),ft=[],cr=0,Jr=0,Qr=0;function fn(Wn,kr){var kn,bn=!1;for(kn=0;kn<Wn.length;kn+=1)Wn[kn]===kr&&(bn=!0);return bn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(at)),this.internal.viewerpreferences.isSubscribed=!1),Ue=this.internal.viewerpreferences.configuration,rt==="reset"||Re===!0){var pr=wt.length;for(Qr=0;Qr<pr;Qr+=1)Ue[wt[Qr]].value=Ue[wt[Qr]].defaultValue,Ue[wt[Qr]].explicitSet=!1}if(x()(rt)==="object"){for(et in rt)if($e=rt[et],fn(wt,et)&&$e!==void 0){if(Ue[et].type==="boolean"&&typeof $e=="boolean")Ue[et].value=$e;else if(Ue[et].type==="name"&&fn(Ue[et].valueSet,$e))Ue[et].value=$e;else if(Ue[et].type==="integer"&&Number.isInteger($e))Ue[et].value=$e;else if(Ue[et].type==="array"){for(cr=0;cr<$e.length;cr+=1)if(Ye=!0,$e[cr].length===1&&typeof $e[cr][0]=="number")ft.push(String($e[cr]-1));else if($e[cr].length>1){for(Jr=0;Jr<$e[cr].length;Jr+=1)typeof $e[cr][Jr]!="number"&&(Ye=!1);Ye===!0&&ft.push([$e[cr][0]-1,$e[cr][1]-1].join(" "))}Ue[et].value="["+ft.join(" ")+"]"}else Ue[et].value=Ue[et].defaultValue;Ue[et].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Wn,kr=[];for(Wn in Ue)Ue[Wn].explicitSet===!0&&(Ue[Wn].type==="name"?kr.push("/"+Wn+" /"+Ue[Wn].value):kr.push("/"+Wn+" "+Ue[Wn].value));kr.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+kr.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ue,this},function(rt){var Re=function(){var et='<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>',$e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),at=unescape(encodeURIComponent(et)),wt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ft=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),cr=unescape(encodeURIComponent("</x:xmpmeta>")),Jr=at.length+wt.length+ft.length+$e.length+cr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Jr+" >>"),this.internal.write("stream"),this.internal.write($e+at+wt+ft+cr),this.internal.write("endstream"),this.internal.write("endobj")},Ue=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};rt.addMetadata=function(Ye,et){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ye,namespaceuri:et||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ue),this.internal.events.subscribe("postPutResources",Re)),this}}(z.API),function(rt){var Re=rt.API,Ue=Re.pdfEscape16=function($e,at){for(var wt,ft=at.metadata.Unicode.widths,cr=["","0","00","000","0000"],Jr=[""],Qr=0,fn=$e.length;Qr<fn;++Qr){if(wt=at.metadata.characterToGlyph($e.charCodeAt(Qr)),at.metadata.glyIdsUsed.push(wt),at.metadata.toUnicode[wt]=$e.charCodeAt(Qr),ft.indexOf(wt)==-1&&(ft.push(wt),ft.push([parseInt(at.metadata.widthOfGlyph(wt),10)])),wt=="0")return Jr.join("");wt=wt.toString(16),Jr.push(cr[4-wt.length],wt)}return Jr.join("")},Ye=function(at){var wt,ft,cr,Jr,Qr,fn,pr;for(Qr=`/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`,cr=[],fn=0,pr=(ft=Object.keys(at).sort(function(Wn,kr){return Wn-kr})).length;fn<pr;fn++)wt=ft[fn],cr.length>=100&&(Qr+=`
`+cr.length+` beginbfchar
`+cr.join(`
`)+`
endbfchar`,cr=[]),at[wt]!==void 0&&at[wt]!==null&&typeof at[wt].toString=="function"&&(Jr=("0000"+at[wt].toString(16)).slice(-4),wt=("0000"+(+wt).toString(16)).slice(-4),cr.push("<"+wt+"><"+Jr+">"));return cr.length&&(Qr+=`
`+cr.length+` beginbfchar
`+cr.join(`
`)+`
endbfchar
`),Qr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};Re.events.push(["putFont",function($e){!function(at){var wt=at.font,ft=at.out,cr=at.newObject,Jr=at.putStream;if(wt.metadata instanceof rt.API.TTFFont&&wt.encoding==="Identity-H"){for(var Qr=wt.metadata.Unicode.widths,fn=wt.metadata.subset.encode(wt.metadata.glyIdsUsed,1),pr="",Wn=0;Wn<fn.length;Wn++)pr+=String.fromCharCode(fn[Wn]);var kr=cr();Jr({data:pr,addLength1:!0,objectId:kr}),ft("endobj");var kn=cr();Jr({data:Ye(wt.metadata.toUnicode),addLength1:!0,objectId:kn}),ft("endobj");var bn=cr();ft("<<"),ft("/Type /FontDescriptor"),ft("/FontName /"+F(wt.fontName)),ft("/FontFile2 "+kr+" 0 R"),ft("/FontBBox "+rt.API.PDFObject.convert(wt.metadata.bbox)),ft("/Flags "+wt.metadata.flags),ft("/StemV "+wt.metadata.stemV),ft("/ItalicAngle "+wt.metadata.italicAngle),ft("/Ascent "+wt.metadata.ascender),ft("/Descent "+wt.metadata.decender),ft("/CapHeight "+wt.metadata.capHeight),ft(">>"),ft("endobj");var qr=cr();ft("<<"),ft("/Type /Font"),ft("/BaseFont /"+F(wt.fontName)),ft("/FontDescriptor "+bn+" 0 R"),ft("/W "+rt.API.PDFObject.convert(Qr)),ft("/CIDToGIDMap /Identity"),ft("/DW 1000"),ft("/Subtype /CIDFontType2"),ft("/CIDSystemInfo"),ft("<<"),ft("/Supplement 0"),ft("/Registry (Adobe)"),ft("/Ordering ("+wt.encoding+")"),ft(">>"),ft(">>"),ft("endobj"),wt.objectNumber=cr(),ft("<<"),ft("/Type /Font"),ft("/Subtype /Type0"),ft("/ToUnicode "+kn+" 0 R"),ft("/BaseFont /"+F(wt.fontName)),ft("/Encoding /"+wt.encoding),ft("/DescendantFonts ["+qr+" 0 R]"),ft(">>"),ft("endobj"),wt.isAlreadyPutted=!0}}($e)}]),Re.events.push(["putFont",function($e){!function(at){var wt=at.font,ft=at.out,cr=at.newObject,Jr=at.putStream;if(wt.metadata instanceof rt.API.TTFFont&&wt.encoding==="WinAnsiEncoding"){for(var Qr=wt.metadata.rawData,fn="",pr=0;pr<Qr.length;pr++)fn+=String.fromCharCode(Qr[pr]);var Wn=cr();Jr({data:fn,addLength1:!0,objectId:Wn}),ft("endobj");var kr=cr();Jr({data:Ye(wt.metadata.toUnicode),addLength1:!0,objectId:kr}),ft("endobj");var kn=cr();ft("<<"),ft("/Descent "+wt.metadata.decender),ft("/CapHeight "+wt.metadata.capHeight),ft("/StemV "+wt.metadata.stemV),ft("/Type /FontDescriptor"),ft("/FontFile2 "+Wn+" 0 R"),ft("/Flags 96"),ft("/FontBBox "+rt.API.PDFObject.convert(wt.metadata.bbox)),ft("/FontName /"+F(wt.fontName)),ft("/ItalicAngle "+wt.metadata.italicAngle),ft("/Ascent "+wt.metadata.ascender),ft(">>"),ft("endobj"),wt.objectNumber=cr();for(var bn=0;bn<wt.metadata.hmtx.widths.length;bn++)wt.metadata.hmtx.widths[bn]=parseInt(wt.metadata.hmtx.widths[bn]*(1e3/wt.metadata.head.unitsPerEm));ft("<</Subtype/TrueType/Type/Font/ToUnicode "+kr+" 0 R/BaseFont/"+F(wt.fontName)+"/FontDescriptor "+kn+" 0 R/Encoding/"+wt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+rt.API.PDFObject.convert(wt.metadata.hmtx.widths)+">>"),ft("endobj"),wt.isAlreadyPutted=!0}}($e)}]);var et=function(at){var wt,ft=at.text||"",cr=at.x,Jr=at.y,Qr=at.options||{},fn=at.mutex||{},pr=fn.pdfEscape,Wn=fn.activeFontKey,kr=fn.fonts,kn=Wn,bn="",qr=0,fi="",Mi=kr[kn].encoding;if(kr[kn].encoding!=="Identity-H")return{text:ft,x:cr,y:Jr,options:Qr,mutex:fn};for(fi=ft,kn=Wn,Array.isArray(ft)&&(fi=ft[0]),qr=0;qr<fi.length;qr+=1)kr[kn].metadata.hasOwnProperty("cmap")&&(wt=kr[kn].metadata.cmap.unicode.codeMap[fi[qr].charCodeAt(0)]),wt||fi[qr].charCodeAt(0)<256&&kr[kn].metadata.hasOwnProperty("Unicode")?bn+=fi[qr]:bn+="";var Zi="";return parseInt(kn.slice(1))<14||Mi==="WinAnsiEncoding"?Zi=pr(bn,kn).split("").map(function(tn){return tn.charCodeAt(0).toString(16)}).join(""):Mi==="Identity-H"&&(Zi=Ue(bn,kr[kn])),fn.isHex=!0,{text:Zi,x:cr,y:Jr,options:Qr,mutex:fn}};Re.events.push(["postProcessText",function($e){var at=$e.text||"",wt=[],ft={text:at,x:$e.x,y:$e.y,options:$e.options,mutex:$e.mutex};if(Array.isArray(at)){var cr=0;for(cr=0;cr<at.length;cr+=1)Array.isArray(at[cr])&&at[cr].length===3?wt.push([et(Object.assign({},ft,{text:at[cr][0]})).text,at[cr][1],at[cr][2]]):wt.push(et(Object.assign({},ft,{text:at[cr]})).text);$e.text=wt}else $e.text=et(Object.assign({},ft,{text:at})).text}])}(z),function(rt){var Re=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};rt.existsFileInVFS=function(Ue){return Re.call(this),this.internal.vFS[Ue]!==void 0},rt.addFileToVFS=function(Ue,Ye){return Re.call(this),this.internal.vFS[Ue]=Ye,this},rt.getFileFromVFS=function(Ue){return Re.call(this),this.internal.vFS[Ue]!==void 0?this.internal.vFS[Ue]:null}}(z.API),function(rt){rt.__bidiEngine__=rt.prototype.__bidiEngine__=function(Ye){var et,$e,at,wt,ft,cr,Jr,Qr=Re,fn=[[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]],pr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Wn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},kr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},kn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],bn=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)$/),qr=!1,fi=0;this.__bidiEngine__={};var Mi=function(Bt){var Kt=Bt.charCodeAt(),Ot=Kt>>8,sr=kr[Ot];return sr!==void 0?Qr[256*sr+(255&Kt)]:Ot===252||Ot===253?"AL":bn.test(Ot)?"L":Ot===8?"R":"N"},Zi=function(Bt){for(var Kt,Ot=0;Ot<Bt.length;Ot++){if((Kt=Mi(Bt.charAt(Ot)))==="L")return!1;if(Kt==="R")return!0}return!1},tn=function(Bt,Kt,Ot,sr){var fr,vr,Rr,Kn,Dn=Kt[sr];switch(Dn){case"L":case"R":qr=!1;break;case"N":case"AN":break;case"EN":qr&&(Dn="AN");break;case"AL":qr=!0,Dn="R";break;case"WS":Dn="N";break;case"CS":sr<1||sr+1>=Kt.length||(fr=Ot[sr-1])!=="EN"&&fr!=="AN"||(vr=Kt[sr+1])!=="EN"&&vr!=="AN"?Dn="N":qr&&(vr="AN"),Dn=vr===fr?vr:"N";break;case"ES":Dn=(fr=sr>0?Ot[sr-1]:"B")==="EN"&&sr+1<Kt.length&&Kt[sr+1]==="EN"?"EN":"N";break;case"ET":if(sr>0&&Ot[sr-1]==="EN"){Dn="EN";break}if(qr){Dn="N";break}for(Rr=sr+1,Kn=Kt.length;Rr<Kn&&Kt[Rr]==="ET";)Rr++;Dn=Rr<Kn&&Kt[Rr]==="EN"?"EN":"N";break;case"NSM":if(at&&!wt){for(Kn=Kt.length,Rr=sr+1;Rr<Kn&&Kt[Rr]==="NSM";)Rr++;if(Rr<Kn){var ui=Bt[sr],pn=ui>=1425&&ui<=2303||ui===64286;if(fr=Kt[Rr],pn&&(fr==="R"||fr==="AL")){Dn="R";break}}}Dn=sr<1||(fr=Kt[sr-1])==="B"?"N":Ot[sr-1];break;case"B":qr=!1,et=!0,Dn=fi;break;case"S":$e=!0,Dn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":qr=!1;break;case"BN":Dn="N"}return Dn},En=function(Bt,Kt,Ot){var sr=Bt.split("");return Ot&&Vn(sr,Ot,{hiLevel:fi}),sr.reverse(),Kt&&Kt.reverse(),sr.join("")},Vn=function(Bt,Kt,Ot){var sr,fr,vr,Rr,Kn,Dn=-1,ui=Bt.length,pn=0,Br=[],Tn=fi?pr:fn,zn=[];for(qr=!1,et=!1,$e=!1,fr=0;fr<ui;fr++)zn[fr]=Mi(Bt[fr]);for(vr=0;vr<ui;vr++){if(Kn=pn,Br[vr]=tn(Bt,zn,Br,vr),sr=240&(pn=Tn[Kn][Wn[Br[vr]]]),pn&=15,Kt[vr]=Rr=Tn[pn][5],sr>0)if(sr===16){for(fr=Dn;fr<vr;fr++)Kt[fr]=1;Dn=-1}else Dn=-1;if(Tn[pn][6])Dn===-1&&(Dn=vr);else if(Dn>-1){for(fr=Dn;fr<vr;fr++)Kt[fr]=Rr;Dn=-1}zn[vr]==="B"&&(Kt[vr]=0),Ot.hiLevel|=Rr}$e&&function(Qn,ii,xi){for(var Di=0;Di<xi;Di++)if(Qn[Di]==="S"){ii[Di]=fi;for(var Li=Di-1;Li>=0&&Qn[Li]==="WS";Li--)ii[Li]=fi}}(zn,Kt,ui)},Wt=function(Bt,Kt,Ot,sr,fr){if(!(fr.hiLevel<Bt)){if(Bt===1&&fi===1&&!et)return Kt.reverse(),void(Ot&&Ot.reverse());for(var vr,Rr,Kn,Dn,ui=Kt.length,pn=0;pn<ui;){if(sr[pn]>=Bt){for(Kn=pn+1;Kn<ui&&sr[Kn]>=Bt;)Kn++;for(Dn=pn,Rr=Kn-1;Dn<Rr;Dn++,Rr--)vr=Kt[Dn],Kt[Dn]=Kt[Rr],Kt[Rr]=vr,Ot&&(vr=Ot[Dn],Ot[Dn]=Ot[Rr],Ot[Rr]=vr);pn=Kn}pn++}}},Et=function(Bt,Kt,Ot){var sr=Bt.split(""),fr={hiLevel:fi};return Ot||(Ot=[]),Vn(sr,Ot,fr),function(vr,Rr,Kn){if(Kn.hiLevel!==0&&Jr)for(var Dn,ui=0;ui<vr.length;ui++)Rr[ui]===1&&(Dn=kn.indexOf(vr[ui]))>=0&&(vr[ui]=kn[Dn+1])}(sr,Ot,fr),Wt(2,sr,Kt,Ot,fr),Wt(1,sr,Kt,Ot,fr),sr.join("")};return this.__bidiEngine__.doBidiReorder=function(kt,Bt,Kt){if(function(sr,fr){if(fr)for(var vr=0;vr<sr.length;vr++)fr[vr]=vr;wt===void 0&&(wt=Zi(sr)),cr===void 0&&(cr=Zi(sr))}(kt,Bt),at||!ft||cr)if(at&&ft&&wt^cr)fi=wt?1:0,kt=En(kt,Bt,Kt);else if(!at&&ft&&cr)fi=wt?1:0,kt=Et(kt,Bt,Kt),kt=En(kt,Bt);else if(!at||wt||ft||cr){if(at&&!ft&&wt^cr)kt=En(kt,Bt),wt?(fi=0,kt=Et(kt,Bt,Kt)):(fi=1,kt=Et(kt,Bt,Kt),kt=En(kt,Bt));else if(at&&wt&&!ft&&cr)fi=1,kt=Et(kt,Bt,Kt),kt=En(kt,Bt);else if(!at&&!ft&&wt^cr){var Ot=Jr;wt?(fi=1,kt=Et(kt,Bt,Kt),fi=0,Jr=!1,kt=Et(kt,Bt,Kt),Jr=Ot):(fi=0,kt=Et(kt,Bt,Kt),kt=En(kt,Bt),fi=1,Jr=!1,kt=Et(kt,Bt,Kt),Jr=Ot,kt=En(kt,Bt))}}else fi=0,kt=Et(kt,Bt,Kt);else fi=wt?1:0,kt=Et(kt,Bt,Kt);return kt},this.__bidiEngine__.setOptions=function(kt){kt&&(at=kt.isInputVisual,ft=kt.isOutputVisual,wt=kt.isInputRtl,cr=kt.isOutputRtl,Jr=kt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ye),this.__bidiEngine__};var Re=["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"],Ue=new rt.__bidiEngine__({isInputVisual:!0});rt.API.events.push(["postProcessText",function(Ye){var et=Ye.text,$e=(Ye.x,Ye.y,Ye.options||{}),at=(Ye.mutex,$e.lang,[]);if($e.isInputVisual=typeof $e.isInputVisual!="boolean"||$e.isInputVisual,Ue.setOptions($e),Object.prototype.toString.call(et)==="[object Array]"){var wt=0;for(at=[],wt=0;wt<et.length;wt+=1)Object.prototype.toString.call(et[wt])==="[object Array]"?at.push([Ue.doBidiReorder(et[wt][0]),et[wt][1],et[wt][2]]):at.push([Ue.doBidiReorder(et[wt])]);Ye.text=at}else Ye.text=Ue.doBidiReorder(et);Ue.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function rt(Re){var Ue;if(this.rawData=Re,Ue=this.contents=new jt(Re),this.contents.pos=4,Ue.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ue.pos=0,this.parse(),this.subset=new Wi(this),this.registerTTF()}return rt.open=function(Re){return new rt(Re)},rt.prototype.parse=function(){return this.directory=new gt(this.contents),this.head=new Ht(this),this.name=new Lr(this),this.cmap=new qt(this),this.toUnicode={},this.hhea=new Rt(this),this.maxp=new ln(this),this.hmtx=new mn(this),this.post=new jr(this),this.os2=new Qt(this),this.loca=new Ni(this),this.glyf=new $n(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]},rt.prototype.registerTTF=function(){var Re,Ue,Ye,et,$e;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var at,wt,ft,cr;for(cr=[],at=0,wt=(ft=this.bbox).length;at<wt;at++)Re=ft[at],cr.push(Math.round(Re*this.scaleFactor));return cr}.call(this),this.stemV=0,this.post.exists?(Ye=255&(et=this.post.italic_angle),(32768&(Ue=et>>16))!=0&&(Ue=-(1+(65535^Ue))),this.italicAngle=+(Ue+"."+Ye)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=($e=this.familyClass)===1||$e===2||$e===3||$e===4||$e===5||$e===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")},rt.prototype.characterToGlyph=function(Re){var Ue;return((Ue=this.cmap.unicode)!=null?Ue.codeMap[Re]:void 0)||0},rt.prototype.widthOfGlyph=function(Re){var Ue;return Ue=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Re).advance*Ue},rt.prototype.widthOfString=function(Re,Ue,Ye){var et,$e,at,wt;for(at=0,$e=0,wt=(Re=""+Re).length;0<=wt?$e<wt:$e>wt;$e=0<=wt?++$e:--$e)et=Re.charCodeAt($e),at+=this.widthOfGlyph(this.characterToGlyph(et))+Ye*(1e3/Ue)||0;return at*(Ue/1e3)},rt.prototype.lineHeight=function(Re,Ue){var Ye;return Ue==null&&(Ue=!1),Ye=Ue?this.lineGap:0,(this.ascender+Ye-this.decender)/1e3*Re},rt}();var vn,jt=function(){function rt(Re){this.data=Re!=null?Re:[],this.pos=0,this.length=this.data.length}return rt.prototype.readByte=function(){return this.data[this.pos++]},rt.prototype.writeByte=function(Re){return this.data[this.pos++]=Re},rt.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},rt.prototype.writeUInt32=function(Re){return this.writeByte(Re>>>24&255),this.writeByte(Re>>16&255),this.writeByte(Re>>8&255),this.writeByte(255&Re)},rt.prototype.readInt32=function(){var Re;return(Re=this.readUInt32())>=2147483648?Re-4294967296:Re},rt.prototype.writeInt32=function(Re){return Re<0&&(Re+=4294967296),this.writeUInt32(Re)},rt.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},rt.prototype.writeUInt16=function(Re){return this.writeByte(Re>>8&255),this.writeByte(255&Re)},rt.prototype.readInt16=function(){var Re;return(Re=this.readUInt16())>=32768?Re-65536:Re},rt.prototype.writeInt16=function(Re){return Re<0&&(Re+=65536),this.writeUInt16(Re)},rt.prototype.readString=function(Re){var Ue,Ye;for(Ye=[],Ue=0;0<=Re?Ue<Re:Ue>Re;Ue=0<=Re?++Ue:--Ue)Ye[Ue]=String.fromCharCode(this.readByte());return Ye.join("")},rt.prototype.writeString=function(Re){var Ue,Ye,et;for(et=[],Ue=0,Ye=Re.length;0<=Ye?Ue<Ye:Ue>Ye;Ue=0<=Ye?++Ue:--Ue)et.push(this.writeByte(Re.charCodeAt(Ue)));return et},rt.prototype.readShort=function(){return this.readInt16()},rt.prototype.writeShort=function(Re){return this.writeInt16(Re)},rt.prototype.readLongLong=function(){var Re,Ue,Ye,et,$e,at,wt,ft;return Re=this.readByte(),Ue=this.readByte(),Ye=this.readByte(),et=this.readByte(),$e=this.readByte(),at=this.readByte(),wt=this.readByte(),ft=this.readByte(),128&Re?-1*(72057594037927940*(255^Re)+281474976710656*(255^Ue)+1099511627776*(255^Ye)+4294967296*(255^et)+16777216*(255^$e)+65536*(255^at)+256*(255^wt)+(255^ft)+1):72057594037927940*Re+281474976710656*Ue+1099511627776*Ye+4294967296*et+16777216*$e+65536*at+256*wt+ft},rt.prototype.writeLongLong=function(Re){var Ue,Ye;return Ue=Math.floor(Re/4294967296),Ye=4294967295&Re,this.writeByte(Ue>>24&255),this.writeByte(Ue>>16&255),this.writeByte(Ue>>8&255),this.writeByte(255&Ue),this.writeByte(Ye>>24&255),this.writeByte(Ye>>16&255),this.writeByte(Ye>>8&255),this.writeByte(255&Ye)},rt.prototype.readInt=function(){return this.readInt32()},rt.prototype.writeInt=function(Re){return this.writeInt32(Re)},rt.prototype.read=function(Re){var Ue,Ye;for(Ue=[],Ye=0;0<=Re?Ye<Re:Ye>Re;Ye=0<=Re?++Ye:--Ye)Ue.push(this.readByte());return Ue},rt.prototype.write=function(Re){var Ue,Ye,et,$e;for($e=[],Ye=0,et=Re.length;Ye<et;Ye++)Ue=Re[Ye],$e.push(this.writeByte(Ue));return $e},rt}(),gt=function(){var rt;function Re(Ue){var Ye,et,$e;for(this.scalarType=Ue.readInt(),this.tableCount=Ue.readShort(),this.searchRange=Ue.readShort(),this.entrySelector=Ue.readShort(),this.rangeShift=Ue.readShort(),this.tables={},et=0,$e=this.tableCount;0<=$e?et<$e:et>$e;et=0<=$e?++et:--et)Ye={tag:Ue.readString(4),checksum:Ue.readInt(),offset:Ue.readInt(),length:Ue.readInt()},this.tables[Ye.tag]=Ye}return Re.prototype.encode=function(Ue){var Ye,et,$e,at,wt,ft,cr,Jr,Qr,fn,pr,Wn,kr;for(kr in pr=Object.keys(Ue).length,ft=Math.log(2),Qr=16*Math.floor(Math.log(pr)/ft),at=Math.floor(Qr/ft),Jr=16*pr-Qr,(et=new jt).writeInt(this.scalarType),et.writeShort(pr),et.writeShort(Qr),et.writeShort(at),et.writeShort(Jr),$e=16*pr,cr=et.pos+$e,wt=null,Wn=[],Ue)for(fn=Ue[kr],et.writeString(kr),et.writeInt(rt(fn)),et.writeInt(cr),et.writeInt(fn.length),Wn=Wn.concat(fn),kr==="head"&&(wt=cr),cr+=fn.length;cr%4;)Wn.push(0),cr++;return et.write(Wn),Ye=2981146554-rt(et.data),et.pos=wt+8,et.writeUInt32(Ye),et.data},rt=function(Ye){var et,$e,at,wt;for(Ye=ti.call(Ye);Ye.length%4;)Ye.push(0);for(at=new jt(Ye),$e=0,et=0,wt=Ye.length;et<wt;et=et+=4)$e+=at.readUInt32();return 4294967295&$e},Re}(),pt={}.hasOwnProperty,ar=function(Re,Ue){for(var Ye in Ue)pt.call(Ue,Ye)&&(Re[Ye]=Ue[Ye]);function et(){this.constructor=Re}return et.prototype=Ue.prototype,Re.prototype=new et,Re.__super__=Ue.prototype,Re};vn=function(){function rt(Re){var Ue;this.file=Re,Ue=this.file.directory.tables[this.tag],this.exists=!!Ue,Ue&&(this.offset=Ue.offset,this.length=Ue.length,this.parse(this.file.contents))}return rt.prototype.parse=function(){},rt.prototype.encode=function(){},rt.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},rt}();var Ht=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="head",Re.prototype.parse=function(Ue){return Ue.pos=this.offset,this.version=Ue.readInt(),this.revision=Ue.readInt(),this.checkSumAdjustment=Ue.readInt(),this.magicNumber=Ue.readInt(),this.flags=Ue.readShort(),this.unitsPerEm=Ue.readShort(),this.created=Ue.readLongLong(),this.modified=Ue.readLongLong(),this.xMin=Ue.readShort(),this.yMin=Ue.readShort(),this.xMax=Ue.readShort(),this.yMax=Ue.readShort(),this.macStyle=Ue.readShort(),this.lowestRecPPEM=Ue.readShort(),this.fontDirectionHint=Ue.readShort(),this.indexToLocFormat=Ue.readShort(),this.glyphDataFormat=Ue.readShort()},Re.prototype.encode=function(Ue){var Ye;return(Ye=new jt).writeInt(this.version),Ye.writeInt(this.revision),Ye.writeInt(this.checkSumAdjustment),Ye.writeInt(this.magicNumber),Ye.writeShort(this.flags),Ye.writeShort(this.unitsPerEm),Ye.writeLongLong(this.created),Ye.writeLongLong(this.modified),Ye.writeShort(this.xMin),Ye.writeShort(this.yMin),Ye.writeShort(this.xMax),Ye.writeShort(this.yMax),Ye.writeShort(this.macStyle),Ye.writeShort(this.lowestRecPPEM),Ye.writeShort(this.fontDirectionHint),Ye.writeShort(Ue),Ye.writeShort(this.glyphDataFormat),Ye.data},Re}(),Mt=function(){function rt(Re,Ue){var Ye,et,$e,at,wt,ft,cr,Jr,Qr,fn,pr,Wn,kr,kn,bn,qr,fi;switch(this.platformID=Re.readUInt16(),this.encodingID=Re.readShort(),this.offset=Ue+Re.readInt(),Qr=Re.pos,Re.pos=this.offset,this.format=Re.readUInt16(),this.length=Re.readUInt16(),this.language=Re.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]=Re.readByte();break;case 4:for(pr=Re.readUInt16(),fn=pr/2,Re.pos+=6,$e=function(){var Mi,Zi;for(Zi=[],ft=Mi=0;0<=fn?Mi<fn:Mi>fn;ft=0<=fn?++Mi:--Mi)Zi.push(Re.readUInt16());return Zi}(),Re.pos+=2,kr=function(){var Mi,Zi;for(Zi=[],ft=Mi=0;0<=fn?Mi<fn:Mi>fn;ft=0<=fn?++Mi:--Mi)Zi.push(Re.readUInt16());return Zi}(),cr=function(){var Mi,Zi;for(Zi=[],ft=Mi=0;0<=fn?Mi<fn:Mi>fn;ft=0<=fn?++Mi:--Mi)Zi.push(Re.readUInt16());return Zi}(),Jr=function(){var Mi,Zi;for(Zi=[],ft=Mi=0;0<=fn?Mi<fn:Mi>fn;ft=0<=fn?++Mi:--Mi)Zi.push(Re.readUInt16());return Zi}(),et=(this.length-Re.pos+this.offset)/2,wt=function(){var Mi,Zi;for(Zi=[],ft=Mi=0;0<=et?Mi<et:Mi>et;ft=0<=et?++Mi:--Mi)Zi.push(Re.readUInt16());return Zi}(),ft=bn=0,fi=$e.length;bn<fi;ft=++bn)for(kn=$e[ft],Ye=qr=Wn=kr[ft];Wn<=kn?qr<=kn:qr>=kn;Ye=Wn<=kn?++qr:--qr)Jr[ft]===0?at=Ye+cr[ft]:(at=wt[Jr[ft]/2+(Ye-Wn)-(fn-ft)]||0)!==0&&(at+=cr[ft]),this.codeMap[Ye]=65535&at}Re.pos=Qr}return rt.encode=function(Re,Ue){var Ye,et,$e,at,wt,ft,cr,Jr,Qr,fn,pr,Wn,kr,kn,bn,qr,fi,Mi,Zi,tn,En,Vn,Wt,Et,kt,Bt,Kt,Ot,sr,fr,vr,Rr,Kn,Dn,ui,pn,Br,Tn,zn,Qn,ii,xi,Di,Li,oa,ma;switch(Ot=new jt,at=Object.keys(Re).sort(function(ia,ba){return ia-ba}),Ue){case"macroman":for(kr=0,kn=function(){var ia=[];for(Wn=0;Wn<256;++Wn)ia.push(0);return ia}(),qr={0:0},$e={},sr=0,Kn=at.length;sr<Kn;sr++)qr[Di=Re[et=at[sr]]]==null&&(qr[Di]=++kr),$e[et]={old:Re[et],new:qr[Re[et]]},kn[et]=qr[Re[et]];return Ot.writeUInt16(1),Ot.writeUInt16(0),Ot.writeUInt32(12),Ot.writeUInt16(0),Ot.writeUInt16(262),Ot.writeUInt16(0),Ot.write(kn),{charMap:$e,subtable:Ot.data,maxGlyphID:kr+1};case"unicode":for(Bt=[],Qr=[],fi=0,qr={},Ye={},bn=cr=null,fr=0,Dn=at.length;fr<Dn;fr++)qr[Zi=Re[et=at[fr]]]==null&&(qr[Zi]=++fi),Ye[et]={old:Zi,new:qr[Zi]},wt=qr[Zi]-et,bn!=null&&wt===cr||(bn&&Qr.push(bn),Bt.push(et),cr=wt),bn=et;for(bn&&Qr.push(bn),Qr.push(65535),Bt.push(65535),Et=2*(Wt=Bt.length),Vn=2*Math.pow(Math.log(Wt)/Math.LN2,2),fn=Math.log(Vn/2)/Math.LN2,En=2*Wt-Vn,ft=[],tn=[],pr=[],Wn=vr=0,ui=Bt.length;vr<ui;Wn=++vr){if(kt=Bt[Wn],Jr=Qr[Wn],kt===65535){ft.push(0),tn.push(0);break}if(kt-(Kt=Ye[kt].new)>=32768)for(ft.push(0),tn.push(2*(pr.length+Wt-Wn)),et=Rr=kt;kt<=Jr?Rr<=Jr:Rr>=Jr;et=kt<=Jr?++Rr:--Rr)pr.push(Ye[et].new);else ft.push(Kt-kt),tn.push(0)}for(Ot.writeUInt16(3),Ot.writeUInt16(1),Ot.writeUInt32(12),Ot.writeUInt16(4),Ot.writeUInt16(16+8*Wt+2*pr.length),Ot.writeUInt16(0),Ot.writeUInt16(Et),Ot.writeUInt16(Vn),Ot.writeUInt16(fn),Ot.writeUInt16(En),ii=0,pn=Qr.length;ii<pn;ii++)et=Qr[ii],Ot.writeUInt16(et);for(Ot.writeUInt16(0),xi=0,Br=Bt.length;xi<Br;xi++)et=Bt[xi],Ot.writeUInt16(et);for(Li=0,Tn=ft.length;Li<Tn;Li++)wt=ft[Li],Ot.writeUInt16(wt);for(oa=0,zn=tn.length;oa<zn;oa++)Mi=tn[oa],Ot.writeUInt16(Mi);for(ma=0,Qn=pr.length;ma<Qn;ma++)kr=pr[ma],Ot.writeUInt16(kr);return{charMap:Ye,subtable:Ot.data,maxGlyphID:fi+1}}},rt}(),qt=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="cmap",Re.prototype.parse=function(Ue){var Ye,et,$e;for(Ue.pos=this.offset,this.version=Ue.readUInt16(),$e=Ue.readUInt16(),this.tables=[],this.unicode=null,et=0;0<=$e?et<$e:et>$e;et=0<=$e?++et:--et)Ye=new Mt(Ue,this.offset),this.tables.push(Ye),Ye.isUnicode&&this.unicode==null&&(this.unicode=Ye);return!0},Re.encode=function(Ue,Ye){var et,$e;return Ye==null&&(Ye="macroman"),et=Mt.encode(Ue,Ye),($e=new jt).writeUInt16(0),$e.writeUInt16(1),et.table=$e.data.concat(et.subtable),et},Re}(),Rt=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="hhea",Re.prototype.parse=function(Ue){return Ue.pos=this.offset,this.version=Ue.readInt(),this.ascender=Ue.readShort(),this.decender=Ue.readShort(),this.lineGap=Ue.readShort(),this.advanceWidthMax=Ue.readShort(),this.minLeftSideBearing=Ue.readShort(),this.minRightSideBearing=Ue.readShort(),this.xMaxExtent=Ue.readShort(),this.caretSlopeRise=Ue.readShort(),this.caretSlopeRun=Ue.readShort(),this.caretOffset=Ue.readShort(),Ue.pos+=8,this.metricDataFormat=Ue.readShort(),this.numberOfMetrics=Ue.readUInt16()},Re}(),Qt=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="OS/2",Re.prototype.parse=function(Ue){if(Ue.pos=this.offset,this.version=Ue.readUInt16(),this.averageCharWidth=Ue.readShort(),this.weightClass=Ue.readUInt16(),this.widthClass=Ue.readUInt16(),this.type=Ue.readShort(),this.ySubscriptXSize=Ue.readShort(),this.ySubscriptYSize=Ue.readShort(),this.ySubscriptXOffset=Ue.readShort(),this.ySubscriptYOffset=Ue.readShort(),this.ySuperscriptXSize=Ue.readShort(),this.ySuperscriptYSize=Ue.readShort(),this.ySuperscriptXOffset=Ue.readShort(),this.ySuperscriptYOffset=Ue.readShort(),this.yStrikeoutSize=Ue.readShort(),this.yStrikeoutPosition=Ue.readShort(),this.familyClass=Ue.readShort(),this.panose=function(){var Ye,et;for(et=[],Ye=0;Ye<10;++Ye)et.push(Ue.readByte());return et}(),this.charRange=function(){var Ye,et;for(et=[],Ye=0;Ye<4;++Ye)et.push(Ue.readInt());return et}(),this.vendorID=Ue.readString(4),this.selection=Ue.readShort(),this.firstCharIndex=Ue.readShort(),this.lastCharIndex=Ue.readShort(),this.version>0&&(this.ascent=Ue.readShort(),this.descent=Ue.readShort(),this.lineGap=Ue.readShort(),this.winAscent=Ue.readShort(),this.winDescent=Ue.readShort(),this.codePageRange=function(){var Ye,et;for(et=[],Ye=0;Ye<2;Ye=++Ye)et.push(Ue.readInt());return et}(),this.version>1))return this.xHeight=Ue.readShort(),this.capHeight=Ue.readShort(),this.defaultChar=Ue.readShort(),this.breakChar=Ue.readShort(),this.maxContext=Ue.readShort()},Re}(),jr=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="post",Re.prototype.parse=function(Ue){var Ye,et,$e;switch(Ue.pos=this.offset,this.format=Ue.readInt(),this.italicAngle=Ue.readInt(),this.underlinePosition=Ue.readShort(),this.underlineThickness=Ue.readShort(),this.isFixedPitch=Ue.readInt(),this.minMemType42=Ue.readInt(),this.maxMemType42=Ue.readInt(),this.minMemType1=Ue.readInt(),this.maxMemType1=Ue.readInt(),this.format){case 65536:break;case 131072:var at;for(et=Ue.readUInt16(),this.glyphNameIndex=[],at=0;0<=et?at<et:at>et;at=0<=et?++at:--at)this.glyphNameIndex.push(Ue.readUInt16());for(this.names=[],$e=[];Ue.pos<this.offset+this.length;)Ye=Ue.readByte(),$e.push(this.names.push(Ue.readString(Ye)));return $e;case 151552:return et=Ue.readUInt16(),this.offsets=Ue.read(et);case 196608:break;case 262144:return this.map=function(){var wt,ft,cr;for(cr=[],at=wt=0,ft=this.file.maxp.numGlyphs;0<=ft?wt<ft:wt>ft;at=0<=ft?++wt:--wt)cr.push(Ue.readUInt32());return cr}.call(this)}},Re}(),Nr=function(Re,Ue){this.raw=Re,this.length=Re.length,this.platformID=Ue.platformID,this.encodingID=Ue.encodingID,this.languageID=Ue.languageID},Lr=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="name",Re.prototype.parse=function(Ue){var Ye,et,$e,at,wt,ft,cr,Jr,Qr,fn,pr;for(Ue.pos=this.offset,Ue.readShort(),Ye=Ue.readShort(),ft=Ue.readShort(),et=[],at=0;0<=Ye?at<Ye:at>Ye;at=0<=Ye?++at:--at)et.push({platformID:Ue.readShort(),encodingID:Ue.readShort(),languageID:Ue.readShort(),nameID:Ue.readShort(),length:Ue.readShort(),offset:this.offset+ft+Ue.readShort()});for(cr={},at=Qr=0,fn=et.length;Qr<fn;at=++Qr)$e=et[at],Ue.pos=$e.offset,Jr=Ue.readString($e.length),wt=new Nr(Jr,$e),cr[pr=$e.nameID]==null&&(cr[pr]=[]),cr[$e.nameID].push(wt);this.strings=cr,this.copyright=cr[0],this.fontFamily=cr[1],this.fontSubfamily=cr[2],this.uniqueSubfamily=cr[3],this.fontName=cr[4],this.version=cr[5];try{this.postscriptName=cr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Wn){this.postscriptName=cr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=cr[7],this.manufacturer=cr[8],this.designer=cr[9],this.description=cr[10],this.vendorUrl=cr[11],this.designerUrl=cr[12],this.license=cr[13],this.licenseUrl=cr[14],this.preferredFamily=cr[15],this.preferredSubfamily=cr[17],this.compatibleFull=cr[18],this.sampleText=cr[19]},Re}(),ln=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="maxp",Re.prototype.parse=function(Ue){return Ue.pos=this.offset,this.version=Ue.readInt(),this.numGlyphs=Ue.readUInt16(),this.maxPoints=Ue.readUInt16(),this.maxContours=Ue.readUInt16(),this.maxCompositePoints=Ue.readUInt16(),this.maxComponentContours=Ue.readUInt16(),this.maxZones=Ue.readUInt16(),this.maxTwilightPoints=Ue.readUInt16(),this.maxStorage=Ue.readUInt16(),this.maxFunctionDefs=Ue.readUInt16(),this.maxInstructionDefs=Ue.readUInt16(),this.maxStackElements=Ue.readUInt16(),this.maxSizeOfInstructions=Ue.readUInt16(),this.maxComponentElements=Ue.readUInt16(),this.maxComponentDepth=Ue.readUInt16()},Re}(),mn=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="hmtx",Re.prototype.parse=function(Ue){var Ye,et,$e,at,wt,ft,cr;for(Ue.pos=this.offset,this.metrics=[],Ye=0,ft=this.file.hhea.numberOfMetrics;0<=ft?Ye<ft:Ye>ft;Ye=0<=ft?++Ye:--Ye)this.metrics.push({advance:Ue.readUInt16(),lsb:Ue.readInt16()});for($e=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Jr,Qr;for(Qr=[],Ye=Jr=0;0<=$e?Jr<$e:Jr>$e;Ye=0<=$e?++Jr:--Jr)Qr.push(Ue.readInt16());return Qr}(),this.widths=function(){var Jr,Qr,fn,pr;for(pr=[],Jr=0,Qr=(fn=this.metrics).length;Jr<Qr;Jr++)at=fn[Jr],pr.push(at.advance);return pr}.call(this),et=this.widths[this.widths.length-1],cr=[],Ye=wt=0;0<=$e?wt<$e:wt>$e;Ye=0<=$e?++wt:--wt)cr.push(this.widths.push(et));return cr},Re.prototype.forGlyph=function(Ue){return Ue in this.metrics?this.metrics[Ue]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ue-this.metrics.length]}},Re}(),ti=[].slice,$n=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="glyf",Re.prototype.parse=function(){return this.cache={}},Re.prototype.glyphFor=function(Ue){var Ye,et,$e,at,wt,ft,cr,Jr,Qr,fn;return Ue in this.cache?this.cache[Ue]:(at=this.file.loca,Ye=this.file.contents,et=at.indexOf(Ue),($e=at.lengthOf(Ue))===0?this.cache[Ue]=null:(Ye.pos=this.offset+et,wt=(ft=new jt(Ye.read($e))).readShort(),Jr=ft.readShort(),fn=ft.readShort(),cr=ft.readShort(),Qr=ft.readShort(),this.cache[Ue]=wt===-1?new Ti(ft,Jr,fn,cr,Qr):new hi(ft,wt,Jr,fn,cr,Qr),this.cache[Ue]))},Re.prototype.encode=function(Ue,Ye,et){var $e,at,wt,ft,cr;for(wt=[],at=[],ft=0,cr=Ye.length;ft<cr;ft++)$e=Ue[Ye[ft]],at.push(wt.length),$e&&(wt=wt.concat($e.encode(et)));return at.push(wt.length),{table:wt,offsets:at}},Re}(),hi=function(){function rt(Re,Ue,Ye,et,$e,at){this.raw=Re,this.numberOfContours=Ue,this.xMin=Ye,this.yMin=et,this.xMax=$e,this.yMax=at,this.compound=!1}return rt.prototype.encode=function(){return this.raw.data},rt}(),Ti=function(){function rt(Re,Ue,Ye,et,$e){var at,wt;for(this.raw=Re,this.xMin=Ue,this.yMin=Ye,this.xMax=et,this.yMax=$e,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],at=this.raw;wt=at.readShort(),this.glyphOffsets.push(at.pos),this.glyphIDs.push(at.readUInt16()),32&wt;)at.pos+=1&wt?4:2,128&wt?at.pos+=8:64&wt?at.pos+=4:8&wt&&(at.pos+=2)}return rt.prototype.encode=function(){var Re,Ue,Ye;for(Ue=new jt(ti.call(this.raw.data)),Re=0,Ye=this.glyphIDs.length;Re<Ye;++Re)Ue.pos=this.glyphOffsets[Re];return Ue.data},rt}(),Ni=function(rt){function Re(){return Re.__super__.constructor.apply(this,arguments)}return ar(Re,vn),Re.prototype.tag="loca",Re.prototype.parse=function(Ue){var Ye,et;return Ue.pos=this.offset,Ye=this.file.head.indexToLocFormat,this.offsets=Ye===0?function(){var $e,at;for(at=[],et=0,$e=this.length;et<$e;et+=2)at.push(2*Ue.readUInt16());return at}.call(this):function(){var $e,at;for(at=[],et=0,$e=this.length;et<$e;et+=4)at.push(Ue.readUInt32());return at}.call(this)},Re.prototype.indexOf=function(Ue){return this.offsets[Ue]},Re.prototype.lengthOf=function(Ue){return this.offsets[Ue+1]-this.offsets[Ue]},Re.prototype.encode=function(Ue,Ye){for(var et=new Uint32Array(this.offsets.length),$e=0,at=0,wt=0;wt<et.length;++wt)if(et[wt]=$e,at<Ye.length&&Ye[at]==wt){++at,et[wt]=$e;var ft=this.offsets[wt],cr=this.offsets[wt+1]-ft;cr>0&&($e+=cr)}for(var Jr=new Array(4*et.length),Qr=0;Qr<et.length;++Qr)Jr[4*Qr+3]=255&et[Qr],Jr[4*Qr+2]=(65280&et[Qr])>>8,Jr[4*Qr+1]=(16711680&et[Qr])>>16,Jr[4*Qr]=(4278190080&et[Qr])>>24;return Jr},Re}(),Wi=function(){function rt(Re){this.font=Re,this.subset={},this.unicodes={},this.next=33}return rt.prototype.generateCmap=function(){var Re,Ue,Ye,et,$e;for(Ue in et=this.font.cmap.tables[0].codeMap,Re={},$e=this.subset)Ye=$e[Ue],Re[Ue]=et[Ye];return Re},rt.prototype.glyphsFor=function(Re){var Ue,Ye,et,$e,at,wt,ft;for(et={},at=0,wt=Re.length;at<wt;at++)et[$e=Re[at]]=this.font.glyf.glyphFor($e);for($e in Ue=[],et)((Ye=et[$e])!=null?Ye.compound:void 0)&&Ue.push.apply(Ue,Ye.glyphIDs);if(Ue.length>0)for($e in ft=this.glyphsFor(Ue))Ye=ft[$e],et[$e]=Ye;return et},rt.prototype.encode=function(Re,Ue){var Ye,et,$e,at,wt,ft,cr,Jr,Qr,fn,pr,Wn,kr,kn,bn;for(et in Ye=qt.encode(this.generateCmap(),"unicode"),at=this.glyphsFor(Re),pr={0:0},bn=Ye.charMap)pr[(ft=bn[et]).old]=ft.new;for(Wn in fn=Ye.maxGlyphID,at)Wn in pr||(pr[Wn]=fn++);return Jr=function(qr){var fi,Mi;for(fi in Mi={},qr)Mi[qr[fi]]=fi;return Mi}(pr),Qr=Object.keys(Jr).sort(function(qr,fi){return qr-fi}),kr=function(){var qr,fi,Mi;for(Mi=[],qr=0,fi=Qr.length;qr<fi;qr++)wt=Qr[qr],Mi.push(Jr[wt]);return Mi}(),$e=this.font.glyf.encode(at,kr,pr),cr=this.font.loca.encode($e.offsets,kr),kn={cmap:this.font.cmap.raw(),glyf:$e.table,loca:cr,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(Ue)},this.font.os2.exists&&(kn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(kn)},rt}();z.API.PDFObject=function(){var rt;function Re(){}return rt=function(Ye,et){return(Array(et+1).join("0")+Ye).slice(-et)},Re.convert=function(Ue){var Ye,et,$e,at;if(Array.isArray(Ue))return"["+function(){var wt,ft,cr;for(cr=[],wt=0,ft=Ue.length;wt<ft;wt++)Ye=Ue[wt],cr.push(Re.convert(Ye));return cr}().join(" ")+"]";if(typeof Ue=="string")return"/"+Ue;if(Ue!=null?Ue.isString:void 0)return"("+Ue+")";if(Ue instanceof Date)return"(D:"+rt(Ue.getUTCFullYear(),4)+rt(Ue.getUTCMonth(),2)+rt(Ue.getUTCDate(),2)+rt(Ue.getUTCHours(),2)+rt(Ue.getUTCMinutes(),2)+rt(Ue.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ue)==="[object Object]"){for(et in $e=["<<"],Ue)at=Ue[et],$e.push("/"+et+" "+Re.convert(at));return $e.push(">>"),$e.join(`
`)}return""+Ue},Re}(),D.default=z}.call(this,n("yLpj"))},e4Nc:function(k,D,n){var y=n("fGT3"),p=n("k+1r"),x=n("JHgL"),A=n("pSRY"),m=n("H8j4");function f(h){var u=-1,a=h==null?0:h.length;for(this.clear();++u<a;){var i=h[u];this.set(i[0],i[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=x,f.prototype.has=A,f.prototype.set=m,k.exports=f},e5VY:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("YNAk"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},e5cp:function(k,D,n){var y=n("fmRc"),p=n("or5M"),x=n("HDyB"),A=n("seXi"),m=n("QqLw"),f=n("Z0cm"),h=n("DSRE"),u=n("c6wG"),a=1,i="[object Arguments]",t="[object Array]",o="[object Object]",e=Object.prototype,l=e.hasOwnProperty;function r(s,c,d,g,v,b){var S=f(s),E=f(c),C=S?t:m(s),_=E?t:m(c);C=C==i?o:C,_=_==i?o:_;var T=C==o,w=_==o,O=C==_;if(O&&h(s)){if(!h(c))return!1;S=!0,T=!1}if(O&&!T)return b||(b=new y),S||u(s)?p(s,c,d,g,v,b):x(s,c,C,d,g,v,b);if(!(d&a)){var I=T&&l.call(s,"__wrapped__"),R=w&&l.call(c,"__wrapped__");if(I||R){var M=I?s.value():s,F=R?c.value():c;return b||(b=new y),v(M,F,d,g,b)}}return O?(b||(b=new y),A(s,c,d,g,v,b)):!1}k.exports=r},e7zE:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("3y9D"),n("WYAk"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.Base,m=x.WordArray,f=p.algo,h=f.SHA1,u=f.HMAC,a=f.PBKDF2=A.extend({cfg:A.extend({keySize:128/32,hasher:h,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,o){for(var e=this.cfg,l=u.create(e.hasher,t),r=m.create(),s=m.create([1]),c=r.words,d=s.words,g=e.keySize,v=e.iterations;c.length<g;){var b=l.update(o).finalize(s);l.reset();for(var S=b.words,E=S.length,C=b,_=1;_<v;_++){C=l.finalize(C),l.reset();for(var T=C.words,w=0;w<E;w++)S[w]^=T[w]}r.concat(b),d[0]++}return r.sigBytes=g*4,r}});p.PBKDF2=function(i,t,o){return a.create(o).compute(i,t)}}(),y.PBKDF2})},eIcI:function(k,D,n){var y=n("bYtY"),p=n("hM6l");function x(m,f,h){p.call(this,m,f,h),this.type="value",this.angle=0,this.name="",this.model}y.inherits(x,p);var A=x;k.exports=A},eJH7:function(k,D,n){var y=n("bYtY");function p(x){var A=x.polar;if(A){y.isArray(A)||(A=[A]);var m=[];y.each(A,function(f,h){f.indicator?(f.type&&!f.shape&&(f.shape=f.type),x.radar=x.radar||[],y.isArray(x.radar)||(x.radar=[x.radar]),x.radar.push(f)):m.push(f)}),x.polar=m}y.each(x.series,function(f){f&&f.type==="radar"&&f.polarIndex&&(f.radarIndex=f.polarIndex)})}k.exports=p},eP3c:function(k,D,n){"use strict";function y(Ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(se){return typeof se}:y=function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},y(Ge)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=me,D.inflateReset2=Ce,D.inflateResetKeep=je,D.inflateInit=it,D.inflateInit2=Fe,D.inflate=Yt,D.inflateEnd=hr,D.inflateGetHeader=Gt,D.inflateSetDictionary=Pt,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=a(n("6BzB")),x=h(n("xlC8")),A=h(n("QV2g")),m=h(n("sjKO")),f=h(n("JSwD"));function h(Ge){return Ge&&Ge.__esModule?Ge:{default:Ge}}function u(){if(typeof WeakMap!="function")return null;var Ge=new WeakMap;return u=function(){return Ge},Ge}function a(Ge){if(Ge&&Ge.__esModule)return Ge;if(Ge===null||y(Ge)!=="object"&&typeof Ge!="function")return{default:Ge};var pe=u();if(pe&&pe.has(Ge))return pe.get(Ge);var se={},lt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ze in Ge)if(Object.prototype.hasOwnProperty.call(Ge,Ze)){var de=lt?Object.getOwnPropertyDescriptor(Ge,Ze):null;de&&(de.get||de.set)?Object.defineProperty(se,Ze,de):se[Ze]=Ge[Ze]}return se.default=Ge,pe&&pe.set(Ge,se),se}var i=0,t=1,o=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 d=2;D.Z_NEED_DICT=d;var g=-2;D.Z_STREAM_ERROR=g;var v=-3;D.Z_DATA_ERROR=v;var b=-4;D.Z_MEM_ERROR=b;var S=-5;D.Z_BUF_ERROR=S;var E=8;D.Z_DEFLATED=E;var C=1,_=2,T=3,w=4,O=5,I=6,R=7,M=8,F=9,P=10,X=11,B=12,j=13,W=14,z=15,V=16,Q=17,G=18,re=19,ee=20,ue=21,$=22,be=23,_e=24,Ee=25,Xe=26,He=27,nt=28,Ie=29,oe=30,ot=31,he=32,J=852,Y=592,q=15,fe=q;function we(Ge){return(Ge>>>24&255)+(Ge>>>8&65280)+((Ge&65280)<<8)+((Ge&255)<<24)}function Ne(){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 je(Ge){var pe;return!Ge||!Ge.state?g:(pe=Ge.state,Ge.total_in=Ge.total_out=pe.total=0,Ge.msg="",pe.wrap&&(Ge.adler=pe.wrap&1),pe.mode=C,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new p.Buf32(J),pe.distcode=pe.distdyn=new p.Buf32(Y),pe.sane=1,pe.back=-1,s)}function me(Ge){var pe;return!Ge||!Ge.state?g:(pe=Ge.state,pe.wsize=0,pe.whave=0,pe.wnext=0,je(Ge))}function Ce(Ge,pe){var se,lt;return!Ge||!Ge.state?g:(lt=Ge.state,pe<0?(se=0,pe=-pe):(se=(pe>>4)+1,pe<48&&(pe&=15)),pe&&(pe<8||pe>15)?g:(lt.window!==null&&lt.wbits!==pe&&(lt.window=null),lt.wrap=se,lt.wbits=pe,me(Ge)))}function Fe(Ge,pe){var se,lt;return Ge?(lt=new Ne,Ge.state=lt,lt.window=null,se=Ce(Ge,pe),se!==s&&(Ge.state=null),se):g}function it(Ge){return Fe(Ge,fe)}var Ct=!0,mt,Ve;function or(Ge){if(Ct){var pe;for(mt=new p.Buf32(512),Ve=new p.Buf32(32),pe=0;pe<144;)Ge.lens[pe++]=8;for(;pe<256;)Ge.lens[pe++]=9;for(;pe<280;)Ge.lens[pe++]=7;for(;pe<288;)Ge.lens[pe++]=8;for((0,f.default)(t,Ge.lens,0,288,mt,0,Ge.work,{bits:9}),pe=0;pe<32;)Ge.lens[pe++]=5;(0,f.default)(o,Ge.lens,0,32,Ve,0,Ge.work,{bits:5}),Ct=!1}Ge.lencode=mt,Ge.lenbits=9,Ge.distcode=Ve,Ge.distbits=5}function dt(Ge,pe,se,lt){var Ze,de=Ge.state;return de.window===null&&(de.wsize=1<<de.wbits,de.wnext=0,de.whave=0,de.window=new p.Buf8(de.wsize)),lt>=de.wsize?(p.arraySet(de.window,pe,se-de.wsize,de.wsize,0),de.wnext=0,de.whave=de.wsize):(Ze=de.wsize-de.wnext,Ze>lt&&(Ze=lt),p.arraySet(de.window,pe,se-lt,Ze,de.wnext),lt-=Ze,lt?(p.arraySet(de.window,pe,se-lt,lt,0),de.wnext=lt,de.whave=de.wsize):(de.wnext+=Ze,de.wnext===de.wsize&&(de.wnext=0),de.whave<de.wsize&&(de.whave+=Ze))),0}function Yt(Ge,pe){var se,lt,Ze,de,_t,er,yt,Ar,Sr,Cn,mr,Pr,gr,Jt,Dt=0,dn,Fn,Zn,ci,Xi,Gn,ei,Zt,Nt=new p.Buf8(4),Me,ke,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Ge||!Ge.state||!Ge.output||!Ge.input&&Ge.avail_in!==0)return g;se=Ge.state,se.mode===B&&(se.mode=j),_t=Ge.next_out,Ze=Ge.output,yt=Ge.avail_out,de=Ge.next_in,lt=Ge.input,er=Ge.avail_in,Ar=se.hold,Sr=se.bits,Cn=er,mr=yt,Zt=s;e:for(;;)switch(se.mode){case C:if(se.wrap===0){se.mode=j;break}for(;Sr<16;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(se.wrap&2&&Ar===35615){se.check=0,Nt[0]=Ar&255,Nt[1]=Ar>>>8&255,se.check=(0,A.default)(se.check,Nt,2,0),Ar=0,Sr=0,se.mode=_;break}if(se.flags=0,se.head&&(se.head.done=!1),!(se.wrap&1)||(((Ar&255)<<8)+(Ar>>8))%31){Ge.msg="incorrect header check",se.mode=oe;break}if((Ar&15)!==E){Ge.msg="unknown compression method",se.mode=oe;break}if(Ar>>>=4,Sr-=4,ei=(Ar&15)+8,se.wbits===0)se.wbits=ei;else if(ei>se.wbits){Ge.msg="invalid window size",se.mode=oe;break}se.dmax=1<<ei,Ge.adler=se.check=1,se.mode=Ar&512?P:B,Ar=0,Sr=0;break;case _:for(;Sr<16;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(se.flags=Ar,(se.flags&255)!==E){Ge.msg="unknown compression method",se.mode=oe;break}if(se.flags&57344){Ge.msg="unknown header flags set",se.mode=oe;break}se.head&&(se.head.text=Ar>>8&1),se.flags&512&&(Nt[0]=Ar&255,Nt[1]=Ar>>>8&255,se.check=(0,A.default)(se.check,Nt,2,0)),Ar=0,Sr=0,se.mode=T;case T:for(;Sr<32;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}se.head&&(se.head.time=Ar),se.flags&512&&(Nt[0]=Ar&255,Nt[1]=Ar>>>8&255,Nt[2]=Ar>>>16&255,Nt[3]=Ar>>>24&255,se.check=(0,A.default)(se.check,Nt,4,0)),Ar=0,Sr=0,se.mode=w;case w:for(;Sr<16;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}se.head&&(se.head.xflags=Ar&255,se.head.os=Ar>>8),se.flags&512&&(Nt[0]=Ar&255,Nt[1]=Ar>>>8&255,se.check=(0,A.default)(se.check,Nt,2,0)),Ar=0,Sr=0,se.mode=O;case O:if(se.flags&1024){for(;Sr<16;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}se.length=Ar,se.head&&(se.head.extra_len=Ar),se.flags&512&&(Nt[0]=Ar&255,Nt[1]=Ar>>>8&255,se.check=(0,A.default)(se.check,Nt,2,0)),Ar=0,Sr=0}else se.head&&(se.head.extra=null);se.mode=I;case I:if(se.flags&1024&&(Pr=se.length,Pr>er&&(Pr=er),Pr&&(se.head&&(ei=se.head.extra_len-se.length,se.head.extra||(se.head.extra=new Array(se.head.extra_len)),p.arraySet(se.head.extra,lt,de,Pr,ei)),se.flags&512&&(se.check=(0,A.default)(se.check,lt,Pr,de)),er-=Pr,de+=Pr,se.length-=Pr),se.length))break e;se.length=0,se.mode=R;case R:if(se.flags&2048){if(er===0)break e;Pr=0;do ei=lt[de+Pr++],se.head&&ei&&se.length<65536&&(se.head.name+=String.fromCharCode(ei));while(ei&&Pr<er);if(se.flags&512&&(se.check=(0,A.default)(se.check,lt,Pr,de)),er-=Pr,de+=Pr,ei)break e}else se.head&&(se.head.name=null);se.length=0,se.mode=M;case M:if(se.flags&4096){if(er===0)break e;Pr=0;do ei=lt[de+Pr++],se.head&&ei&&se.length<65536&&(se.head.comment+=String.fromCharCode(ei));while(ei&&Pr<er);if(se.flags&512&&(se.check=(0,A.default)(se.check,lt,Pr,de)),er-=Pr,de+=Pr,ei)break e}else se.head&&(se.head.comment=null);se.mode=F;case F:if(se.flags&512){for(;Sr<16;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(Ar!==(se.check&65535)){Ge.msg="header crc mismatch",se.mode=oe;break}Ar=0,Sr=0}se.head&&(se.head.hcrc=se.flags>>9&1,se.head.done=!0),Ge.adler=se.check=0,se.mode=B;break;case P:for(;Sr<32;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}Ge.adler=se.check=we(Ar),Ar=0,Sr=0,se.mode=X;case X:if(se.havedict===0)return Ge.next_out=_t,Ge.avail_out=yt,Ge.next_in=de,Ge.avail_in=er,se.hold=Ar,se.bits=Sr,d;Ge.adler=se.check=1,se.mode=B;case B:if(pe===l||pe===r)break e;case j:if(se.last){Ar>>>=Sr&7,Sr-=Sr&7,se.mode=He;break}for(;Sr<3;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}se.last=Ar&1,Ar>>>=1,Sr-=1;switch(Ar&3){case 0:se.mode=W;break;case 1:if(or(se),se.mode=ee,pe===r){Ar>>>=2,Sr-=2;break e}break;case 2:se.mode=Q;break;case 3:Ge.msg="invalid block type",se.mode=oe}Ar>>>=2,Sr-=2;break;case W:for(Ar>>>=Sr&7,Sr-=Sr&7;Sr<32;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if((Ar&65535)!==(Ar>>>16^65535)){Ge.msg="invalid stored block lengths",se.mode=oe;break}if(se.length=Ar&65535,Ar=0,Sr=0,se.mode=z,pe===r)break e;case z:se.mode=V;case V:if(Pr=se.length,Pr){if(Pr>er&&(Pr=er),Pr>yt&&(Pr=yt),Pr===0)break e;p.arraySet(Ze,lt,de,Pr,_t),er-=Pr,de+=Pr,yt-=Pr,_t+=Pr,se.length-=Pr;break}se.mode=B;break;case Q:for(;Sr<14;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(se.nlen=(Ar&31)+257,Ar>>>=5,Sr-=5,se.ndist=(Ar&31)+1,Ar>>>=5,Sr-=5,se.ncode=(Ar&15)+4,Ar>>>=4,Sr-=4,se.nlen>286||se.ndist>30){Ge.msg="too many length or distance symbols",se.mode=oe;break}se.have=0,se.mode=G;case G:for(;se.have<se.ncode;){for(;Sr<3;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}se.lens[Pe[se.have++]]=Ar&7,Ar>>>=3,Sr-=3}for(;se.have<19;)se.lens[Pe[se.have++]]=0;if(se.lencode=se.lendyn,se.lenbits=7,Me={bits:se.lenbits},Zt=(0,f.default)(i,se.lens,0,19,se.lencode,0,se.work,Me),se.lenbits=Me.bits,Zt){Ge.msg="invalid code lengths set",se.mode=oe;break}se.have=0,se.mode=re;case re:for(;se.have<se.nlen+se.ndist;){for(;!(Dt=se.lencode[Ar&(1<<se.lenbits)-1],dn=Dt>>>24,Fn=Dt>>>16&255,Zn=Dt&65535,dn<=Sr);){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(Zn<16)Ar>>>=dn,Sr-=dn,se.lens[se.have++]=Zn;else{if(Zn===16){for(ke=dn+2;Sr<ke;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(Ar>>>=dn,Sr-=dn,se.have===0){Ge.msg="invalid bit length repeat",se.mode=oe;break}ei=se.lens[se.have-1],Pr=3+(Ar&3),Ar>>>=2,Sr-=2}else if(Zn===17){for(ke=dn+3;Sr<ke;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}Ar>>>=dn,Sr-=dn,ei=0,Pr=3+(Ar&7),Ar>>>=3,Sr-=3}else{for(ke=dn+7;Sr<ke;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}Ar>>>=dn,Sr-=dn,ei=0,Pr=11+(Ar&127),Ar>>>=7,Sr-=7}if(se.have+Pr>se.nlen+se.ndist){Ge.msg="invalid bit length repeat",se.mode=oe;break}for(;Pr--;)se.lens[se.have++]=ei}}if(se.mode===oe)break;if(se.lens[256]===0){Ge.msg="invalid code -- missing end-of-block",se.mode=oe;break}if(se.lenbits=9,Me={bits:se.lenbits},Zt=(0,f.default)(t,se.lens,0,se.nlen,se.lencode,0,se.work,Me),se.lenbits=Me.bits,Zt){Ge.msg="invalid literal/lengths set",se.mode=oe;break}if(se.distbits=6,se.distcode=se.distdyn,Me={bits:se.distbits},Zt=(0,f.default)(o,se.lens,se.nlen,se.ndist,se.distcode,0,se.work,Me),se.distbits=Me.bits,Zt){Ge.msg="invalid distances set",se.mode=oe;break}if(se.mode=ee,pe===r)break e;case ee:se.mode=ue;case ue:if(er>=6&&yt>=258){Ge.next_out=_t,Ge.avail_out=yt,Ge.next_in=de,Ge.avail_in=er,se.hold=Ar,se.bits=Sr,(0,m.default)(Ge,mr),_t=Ge.next_out,Ze=Ge.output,yt=Ge.avail_out,de=Ge.next_in,lt=Ge.input,er=Ge.avail_in,Ar=se.hold,Sr=se.bits,se.mode===B&&(se.back=-1);break}for(se.back=0;!(Dt=se.lencode[Ar&(1<<se.lenbits)-1],dn=Dt>>>24,Fn=Dt>>>16&255,Zn=Dt&65535,dn<=Sr);){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(Fn&&(Fn&240)===0){for(ci=dn,Xi=Fn,Gn=Zn;!(Dt=se.lencode[Gn+((Ar&(1<<ci+Xi)-1)>>ci)],dn=Dt>>>24,Fn=Dt>>>16&255,Zn=Dt&65535,ci+dn<=Sr);){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}Ar>>>=ci,Sr-=ci,se.back+=ci}if(Ar>>>=dn,Sr-=dn,se.back+=dn,se.length=Zn,Fn===0){se.mode=Xe;break}if(Fn&32){se.back=-1,se.mode=B;break}if(Fn&64){Ge.msg="invalid literal/length code",se.mode=oe;break}se.extra=Fn&15,se.mode=$;case $:if(se.extra){for(ke=se.extra;Sr<ke;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}se.length+=Ar&(1<<se.extra)-1,Ar>>>=se.extra,Sr-=se.extra,se.back+=se.extra}se.was=se.length,se.mode=be;case be:for(;!(Dt=se.distcode[Ar&(1<<se.distbits)-1],dn=Dt>>>24,Fn=Dt>>>16&255,Zn=Dt&65535,dn<=Sr);){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if((Fn&240)===0){for(ci=dn,Xi=Fn,Gn=Zn;!(Dt=se.distcode[Gn+((Ar&(1<<ci+Xi)-1)>>ci)],dn=Dt>>>24,Fn=Dt>>>16&255,Zn=Dt&65535,ci+dn<=Sr);){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}Ar>>>=ci,Sr-=ci,se.back+=ci}if(Ar>>>=dn,Sr-=dn,se.back+=dn,Fn&64){Ge.msg="invalid distance code",se.mode=oe;break}se.offset=Zn,se.extra=Fn&15,se.mode=_e;case _e:if(se.extra){for(ke=se.extra;Sr<ke;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}se.offset+=Ar&(1<<se.extra)-1,Ar>>>=se.extra,Sr-=se.extra,se.back+=se.extra}if(se.offset>se.dmax){Ge.msg="invalid distance too far back",se.mode=oe;break}se.mode=Ee;case Ee:if(yt===0)break e;if(Pr=mr-yt,se.offset>Pr){if(Pr=se.offset-Pr,Pr>se.whave&&se.sane){Ge.msg="invalid distance too far back",se.mode=oe;break}Pr>se.wnext?(Pr-=se.wnext,gr=se.wsize-Pr):gr=se.wnext-Pr,Pr>se.length&&(Pr=se.length),Jt=se.window}else Jt=Ze,gr=_t-se.offset,Pr=se.length;Pr>yt&&(Pr=yt),yt-=Pr,se.length-=Pr;do Ze[_t++]=Jt[gr++];while(--Pr);se.length===0&&(se.mode=ue);break;case Xe:if(yt===0)break e;Ze[_t++]=se.length,yt--,se.mode=ue;break;case He:if(se.wrap){for(;Sr<32;){if(er===0)break e;er--,Ar|=lt[de++]<<Sr,Sr+=8}if(mr-=yt,Ge.total_out+=mr,se.total+=mr,mr&&(Ge.adler=se.check=se.flags?(0,A.default)(se.check,Ze,mr,_t-mr):(0,x.default)(se.check,Ze,mr,_t-mr)),mr=yt,(se.flags?Ar:we(Ar))!==se.check){Ge.msg="incorrect data check",se.mode=oe;break}Ar=0,Sr=0}se.mode=nt;case nt:if(se.wrap&&se.flags){for(;Sr<32;){if(er===0)break e;er--,Ar+=lt[de++]<<Sr,Sr+=8}if(Ar!==(se.total&4294967295)){Ge.msg="incorrect length check",se.mode=oe;break}Ar=0,Sr=0}se.mode=Ie;case Ie:Zt=c;break e;case oe:Zt=v;break e;case ot:return b;case he:default:return g}return Ge.next_out=_t,Ge.avail_out=yt,Ge.next_in=de,Ge.avail_in=er,se.hold=Ar,se.bits=Sr,(se.wsize||mr!==Ge.avail_out&&se.mode<oe&&(se.mode<He||pe!==e))&&dt(Ge,Ge.output,Ge.next_out,mr-Ge.avail_out)?(se.mode=ot,b):(Cn-=Ge.avail_in,mr-=Ge.avail_out,Ge.total_in+=Cn,Ge.total_out+=mr,se.total+=mr,se.wrap&&mr&&(Ge.adler=se.check=se.flags?(0,A.default)(se.check,Ze,mr,Ge.next_out-mr):(0,x.default)(se.check,Ze,mr,Ge.next_out-mr)),Ge.data_type=se.bits+(se.last?64:0)+(se.mode===B?128:0)+(se.mode===ee||se.mode===z?256:0),(Cn===0&&mr===0||pe===e)&&Zt===s&&(Zt=S),Zt)}function hr(Ge){if(!Ge||!Ge.state)return g;var pe=Ge.state;return pe.window&&(pe.window=null),Ge.state=null,s}function Gt(Ge,pe){var se;return!Ge||!Ge.state?g:(se=Ge.state,(se.wrap&2)===0?g:(se.head=pe,pe.done=!1,s))}function Pt(Ge,pe){var se=pe.length,lt,Ze,de;return!Ge||!Ge.state?g:(lt=Ge.state,lt.wrap!==0&&lt.mode!==X?g:lt.mode===X&&(Ze=1,Ze=(0,x.default)(Ze,pe,se,0),Ze!==lt.check)?v:(de=dt(Ge,pe,se,se),de?(lt.mode=ot,b):(lt.havedict=1,s)))}var Xt="pako inflate (from Nodeca project)";D.inflateInfo=Xt},ePAk:function(k,D,n){var y=n("ProS");n("2fGM");var p=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(x){var A,m=this.ecModel;return m.eachComponent(x,function(f){f.getCoordSysModel()===this&&(A=f)},this),A},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});k.exports=p},eRkO:function(k,D,n){var y=n("+TT/"),p=y.getLayoutRect,x=y.box,A=y.positionElement,m=n("7aKB"),f=n("IwbS");function h(a,i,t){var o=i.getBoxLayoutParams(),e=i.get("padding"),l={width:t.getWidth(),height:t.getHeight()},r=p(o,l,e);x(i.get("orient"),a,i.get("itemGap"),r.width,r.height),A(a,o,l,e)}function u(a,i){var t=m.normalizeCssArray(i.get("padding")),o=i.getItemStyle(["color","opacity"]);o.fill=i.get("backgroundColor");var a=new f.Rect({shape:{x:a.x-t[3],y:a.y-t[0],width:a.width+t[1]+t[3],height:a.height+t[0]+t[2],r:i.get("borderRadius")},style:o,silent:!0,z2:-1});return a}D.layout=h,D.makeBackground=u},eS4l:function(k,D,n){n("HM/N"),n("FNN5")},eUgh:function(k,D){function n(y,p){for(var x=-1,A=y==null?0:y.length,m=Array(A);++x<A;)m[x]=p(y[x],x,y);return m}k.exports=n},ebwN:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Map");k.exports=x},ekgI:function(k,D,n){var y=n("YESw"),p=Object.prototype,x=p.hasOwnProperty;function A(m){var f=this.__data__;return y?f[m]!==void 0:x.call(f,m)}k.exports=A},ewwo:function(k,D,n){var y=n("bMXI"),p=n("+TT/"),x=p.getLayoutRect,A=n("4mN7");function m(h,u,a){var i=h.getBoxLayoutParams();return i.aspect=a,x(i,{width:u.getWidth(),height:u.getHeight()})}function f(h,u){var a=[];return h.eachSeriesByType("graph",function(i){var t=i.get("coordinateSystem");if(!t||t==="view"){var o=i.getData(),e=o.mapArray(function(E){var C=o.getItemModel(E);return[+C.get("x"),+C.get("y")]}),l=[],r=[];A.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(i,u,s);isNaN(s)&&(l=[c.x,c.y],r=[c.x+c.width,c.y+c.height]);var d=r[0]-l[0],g=r[1]-l[1],v=c.width,b=c.height,S=i.coordinateSystem=new y;S.zoomLimit=i.get("scaleLimit"),S.setBoundingRect(l[0],l[1],d,g),S.setViewRect(c.x,c.y,v,b),S.setCenter(i.get("center")),S.setZoom(i.get("zoom")),a.push(S)}}),a}k.exports=f},f1nB:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("bYtY"),m=n("4NO4"),f=n("IwbS"),h=n("+TT/"),u=n("OELB"),a=u.parsePercent,i={path:null,compoundPath:null,group:f.Group,image:f.Image,text:f.Text};x.registerPreprocessor(function(v){var b=v.graphic;A.isArray(b)?!b[0]||!b[0].elements?v.graphic=[{elements:b}]:v.graphic=[v.graphic[0]]:b&&!b.elements&&(v.graphic=[{elements:[b]}])});var t=x.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(v){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(v,b){var S=this.option,E=(b?S:v).elements,C=S.elements=b?[]:S.elements,_=[];this._flatten(E,_);var T=m.mappingToExists(C,_);m.makeIdAndName(T);var w=this._elOptionsToUpdate=[];A.each(T,function(I,R){var M=I.option;if(!M)return;w.push(M),s(I,M),c(C,R,M),d(C[R],M)},this);for(var O=C.length-1;O>=0;O--)C[O]==null?C.splice(O,1):delete C[O].$action},_flatten:function(v,b,S){A.each(v,function(E){if(!E)return;S&&(E.parentOption=S),b.push(E);var C=E.children;E.type==="group"&&C&&this._flatten(C,b,E),delete E.children},this)},useElOptionsToUpdate:function(){var v=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,v}});x.extendComponentView({type:"graphic",init:function(v,b){this._elMap=A.createHashMap(),this._lastGraphicModel},render:function(v,b,S){v!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=v,this._updateElements(v),this._relocate(v,S)},_updateElements:function(v){var b=v.useElOptionsToUpdate();if(!b)return;var S=this._elMap,E=this.group;A.each(b,function(C){var _=C.$action,T=C.id,w=S.get(T),O=C.parentId,I=O!=null?S.get(O):E,R=C.style;C.type==="text"&&R&&(C.hv&&C.hv[1]&&(R.textVerticalAlign=R.textBaseline=null),!R.hasOwnProperty("textFill")&&R.fill&&(R.textFill=R.fill),!R.hasOwnProperty("textStroke")&&R.stroke&&(R.textStroke=R.stroke));var M=l(C);!_||_==="merge"?w?w.attr(M):o(T,I,M,S):_==="replace"?(e(w,S),o(T,I,M,S)):_==="remove"&&e(w,S);var F=S.get(T);F&&(F.__ecGraphicWidthOption=C.width,F.__ecGraphicHeightOption=C.height,g(F,v,C))})},_relocate:function(v,b){for(var S=v.option.elements,E=this.group,C=this._elMap,_=b.getWidth(),T=b.getHeight(),w=0;w<S.length;w++){var O=S[w],I=C.get(O.id);if(!I||!I.isGroup)continue;var R=I.parent,M=R===E;I.__ecGraphicWidth=a(I.__ecGraphicWidthOption,M?_:R.__ecGraphicWidth)||0,I.__ecGraphicHeight=a(I.__ecGraphicHeightOption,M?T:R.__ecGraphicHeight)||0}for(var w=S.length-1;w>=0;w--){var O=S[w],I=C.get(O.id);if(!I)continue;var R=I.parent,F=R===E?{width:_,height:T}:{width:R.__ecGraphicWidth,height:R.__ecGraphicHeight};h.positionElement(I,O,F,null,{hv:O.hv,boundingMode:O.bounding})}},_clear:function(){var v=this._elMap;v.each(function(b){e(b,v)}),this._elMap=A.createHashMap()},dispose:function(){this._clear()}});function o(v,b,S,E){var C=S.type,_=i.hasOwnProperty(C)?i[C]:f.getShapeClass(C),T=new _(S);b.add(T),E.set(v,T),T.__ecGraphicId=v}function e(v,b){var S=v&&v.parent;S&&(v.type==="group"&&v.traverse(function(E){e(E,b)}),b.removeKey(v.__ecGraphicId),S.remove(v))}function l(v){return v=A.extend({},v),A.each(["id","parentId","$action","hv","bounding"].concat(h.LOCATION_PARAMS),function(b){delete v[b]}),v}function r(v,b){var S;return A.each(b,function(E){v[E]!=null&&v[E]!=="auto"&&(S=!0)}),S}function s(v,b){var S=v.exist;if(b.id=v.keyInfo.id,!b.type&&S&&(b.type=S.type),b.parentId==null){var E=b.parentOption;E?b.parentId=E.id:S&&(b.parentId=S.parentId)}b.parentOption=null}function c(v,b,S){var E=A.extend({},S),C=v[b],_=S.$action||"merge";_==="merge"?C?(A.merge(C,E,!0),h.mergeLayoutParam(C,E,{ignoreSize:!0}),h.copyLayoutParams(S,C)):v[b]=E:_==="replace"?v[b]=E:_==="remove"&&(C&&(v[b]=null))}function d(v,b){if(!v)return;v.hv=b.hv=[r(b,["left","right"]),r(b,["top","bottom"])],v.type==="group"&&(v.width==null&&(v.width=b.width=0),v.height==null&&(v.height=b.height=0))}function g(v,b,S){var E=v.eventData;!v.silent&&!v.ignore&&!E&&(E=v.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:v.name}),E&&(E.info=v.info)}},f3JH:function(k,D,n){n("aTJb"),n("OlYY"),n("fc+c"),n("oY9F"),n("MqEG"),n("LBfv"),n("noeP")},f5HG:function(k,D,n){var y=n("IwbS"),p=n("QBsz"),x=y.Line.prototype,A=y.BezierCurve.prototype;function m(h){return isNaN(+h.cpx1)||isNaN(+h.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(h,u){this[m(u)?"_buildPathLine":"_buildPathCurve"](h,u)},_buildPathLine:x.buildPath,_buildPathCurve:A.buildPath,pointAt:function(h){return this[m(this.shape)?"_pointAtLine":"_pointAtCurve"](h)},_pointAtLine:x.pointAt,_pointAtCurve:A.pointAt,tangentAt:function(h){var u=this.shape,a=m(u)?[u.x2-u.x1,u.y2-u.y1]:this._tangentAtCurve(h);return p.normalize(a,a)},_tangentAtCurve:A.tangentAt});k.exports=f},f5Yq:function(k,D,n){var y=n("bYtY"),p=y.isFunction;function x(A,m,f){return{seriesType:A,performRawSeries:!0,reset:function(h,u,a){var i=h.getData(),t=h.get("symbol"),o=h.get("symbolSize"),e=h.get("symbolKeepAspect"),l=h.get("symbolRotate"),r=p(t),s=p(o),c=p(l),d=r||s||c,g=!r&&t?t:m,v=s?null:o,b=c?null:b;if(i.setVisual({legendSymbol:f||g,symbol:g,symbolSize:v,symbolKeepAspect:e,symbolRotate:l}),u.isSeriesFiltered(h))return;function S(E,C){if(d){var _=h.getRawValue(C),T=h.getDataParams(C);r&&E.setItemVisual(C,"symbol",t(_,T)),s&&E.setItemVisual(C,"symbolSize",o(_,T)),c&&E.setItemVisual(C,"symbolRotate",l(_,T))}if(E.hasItemOption){var w=E.getItemModel(C),O=w.getShallow("symbol",!0),I=w.getShallow("symbolSize",!0),R=w.getShallow("symbolRotate",!0),M=w.getShallow("symbolKeepAspect",!0);O!=null&&E.setItemVisual(C,"symbol",O),I!=null&&E.setItemVisual(C,"symbolSize",I),R!=null&&E.setItemVisual(C,"symbolRotate",R),M!=null&&E.setItemVisual(C,"symbolKeepAspect",M)}}return{dataEach:i.hasItemOption||d?S:null}}}}k.exports=x},fE02:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("/IIm"),A=n("vZ6x"),m=n("b9oc"),f=n("72pK"),h=n("Kagy"),u=n("IUWy");n("3TkU");var a=h.toolbox.dataZoom,i=p.each,t="\0_ec_\0toolbox-dataZoom_";function o(g,v,b){(this._brushController=new x(b.getZr())).on("brush",p.bind(this._onBrush,this)).mount(),this._isZoomActive}o.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(a.title)};var e=o.prototype;e.render=function(g,v,b,S){this.model=g,this.ecModel=v,this.api=b,c(g,v,this,S,b),s(g,v)},e.onclick=function(g,v,b){l[b].call(this)},e.remove=function(g,v){this._brushController.unmount()},e.dispose=function(g,v){this._brushController.dispose()};var l={zoom:function(){var g=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:g})},back:function(){this._dispatchZoomAction(m.pop(this.ecModel))}};e._onBrush=function(g,v){if(!v.isEnd||!g.length)return;var b={},S=this.ecModel;this._brushController.updateCovers([]);var E=new A(r(this.model.option),S,{include:["grid"]});E.matchOutputRanges(g,S,function(T,w,O){if(O.type!=="cartesian2d")return;var I=T.brushType;I==="rect"?(C("x",O,w[0]),C("y",O,w[1])):C({lineX:"x",lineY:"y"}[I],O,w)}),m.push(S,b),this._dispatchZoomAction(b);function C(T,w,O){var I=w.getAxis(T),R=I.model,M=_(T,R,S),F=M.findRepresentativeAxisProxy(R).getMinMaxSpan();(F.minValueSpan!=null||F.maxValueSpan!=null)&&(O=f(0,O.slice(),I.scale.getExtent(),0,F.minValueSpan,F.maxValueSpan)),M&&(b[M.id]={dataZoomId:M.id,startValue:O[0],endValue:O[1]})}function _(T,w,O){var I;return O.eachComponent({mainType:"dataZoom",subType:"select"},function(R){var M=R.getAxisModel(T,w.componentIndex);M&&(I=R)}),I}},e._dispatchZoomAction=function(g){var v=[];i(g,function(b,S){v.push(p.clone(b))}),v.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:v})};function r(g){var v={};return p.each(["xAxisIndex","yAxisIndex"],function(b){v[b]=g[b],v[b]==null&&(v[b]="all"),(v[b]===!1||v[b]==="none")&&(v[b]=[])}),v}function s(g,v){g.setIconStatus("back",m.count(v)>1?"emphasis":"normal")}function c(g,v,b,S,E){var C=b._isZoomActive;S&&S.type==="takeGlobalCursor"&&(C=S.key==="dataZoomSelect"?S.dataZoomSelectActive:!1),b._isZoomActive=C,g.setIconStatus("zoom",C?"emphasis":"normal");var _=new A(r(g.option),v,{include:["grid"]});b._brushController.setPanels(_.makePanelOpts(E,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"})).enableBrush(C?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}u.register("dataZoom",o),y.registerPreprocessor(function(g){if(!g)return;var v=g.dataZoom||(g.dataZoom=[]);p.isArray(v)||(g.dataZoom=v=[v]);var b=g.toolbox;if(b&&(p.isArray(b)&&(b=b[0]),b&&b.feature)){var S=b.feature.dataZoom;E("xAxis",S),E("yAxis",S)}function E(_,T){if(!T)return;var w=_+"Index",O=T[w];O!=null&&O!=="all"&&!p.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),C(_,function(I,R){if(O!=null&&O!=="all"&&p.indexOf(O,R)===-1)return;var M={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:t+_+R};M[w]=R,v.push(M)})}function C(_,T){var w=g[_];p.isArray(w)||(w=w?[w]:[]),i(w,T)}});var d=o;k.exports=d},fGT3:function(k,D,n){var y=n("4kuk"),p=n("Xi7e"),x=n("ebwN");function A(){this.size=0,this.__data__={hash:new y,map:new(x||p),string:new y}}k.exports=A},fNCr:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("tSko"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},"fR/l":function(k,D,n){var y=n("CH3K"),p=n("Z0cm");function x(A,m,f){var h=m(A);return p(A)?h:y(h,f(A))}k.exports=x},fUL4:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("r+aA"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},fW2E:function(k,D){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(p,x,A){return n.hasOwnProperty(x)?A*=p.dpr:A}k.exports=y},"fc+c":function(k,D,n){var y=n("sS/r"),p=y.extend({type:"dataZoom",render:function(x,A,m,f){this.dataZoomModel=x,this.ecModel=A,this.api=m},getTargetCoordInfo:function(){var x=this.dataZoomModel,A=this.ecModel,m={};x.eachTargetAxis(function(h,u){var a=A.getComponent(h.axis,u);if(a){var i=a.getCoordSysModel();i&&f(i,a,m[i.mainType]||(m[i.mainType]=[]),i.componentIndex)}},this);function f(h,u,a,i){for(var t,o=0;o<a.length;o++)if(a[o].model===h){t=a[o];break}t||a.push(t={model:h,axisModels:[],coordIndex:i}),t.axisModels.push(u)}return m}});k.exports=p},fjKi:function(k,D,n){var y=n("ProS");n("Q7if"),n("jndi"),y.registerPreprocessor(function(p){p.markArea=p.markArea||{}})},fls0:function(k,D,n){var y=n("bYtY"),p=n("QBsz"),x=n("oVpE"),A=n("f5HG"),m=n("IwbS"),f=n("OELB"),h=f.round,u=["fromSymbol","toSymbol"];function a(c){return"_"+c+"Type"}function i(c,d,g){var v=d.getItemVisual(g,"color"),b=d.getItemVisual(g,c),S=d.getItemVisual(g,c+"Size");if(!b||b==="none")return;y.isArray(S)||(S=[S,S]);var E=x.createSymbol(b,-S[0]/2,-S[1]/2,S[0],S[1],v);return E.name=c,E}function t(c){var d=new A({name:"line",subPixelOptimize:!0});return o(d.shape,c),d}function o(c,d){c.x1=d[0][0],c.y1=d[0][1],c.x2=d[1][0],c.y2=d[1][1],c.percent=1;var g=d[2];g?(c.cpx1=g[0],c.cpy1=g[1]):(c.cpx1=NaN,c.cpy1=NaN)}function e(){var c=this,d=c.childOfName("fromSymbol"),g=c.childOfName("toSymbol"),v=c.childOfName("label");if(!d&&!g&&v.ignore)return;for(var b=1,S=this.parent;S;)S.scale&&(b/=S.scale[0]),S=S.parent;var E=c.childOfName("line");if(!this.__dirty&&!E.__dirty)return;var C=E.shape.percent,_=E.pointAt(0),T=E.pointAt(C),w=p.sub([],T,_);if(p.normalize(w,w),d){d.attr("position",_);var O=E.tangentAt(0);d.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),d.attr("scale",[b*C,b*C])}if(g){g.attr("position",T);var O=E.tangentAt(1);g.attr("rotation",-Math.PI/2-Math.atan2(O[1],O[0])),g.attr("scale",[b*C,b*C])}if(!v.ignore){v.attr("position",T);var I,R,M,F,P=v.__labelDistance,X=P[0]*b,B=P[1]*b,j=C/2,O=E.tangentAt(j),W=[O[1],-O[0]],z=E.pointAt(j);W[1]>0&&(W[0]=-W[0],W[1]=-W[1]);var V=O[0]<0?-1:1;if(v.__position!=="start"&&v.__position!=="end"){var Q=-Math.atan2(O[1],O[0]);T[0]<_[0]&&(Q=Math.PI+Q),v.attr("rotation",Q)}var G;switch(v.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-B,M="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=B,M="top";break;default:G=0,M="middle"}switch(v.__position){case"end":I=[w[0]*X+T[0],w[1]*B+T[1]],R=w[0]>.8?"left":w[0]<-.8?"right":"center",M=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":I=[-w[0]*X+_[0],-w[1]*B+_[1]],R=w[0]>.8?"right":w[0]<-.8?"left":"center",M=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[X*V+_[0],_[1]+G],R=O[0]<0?"right":"left",F=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[z[0],z[1]+G],R="center",F=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-X*V+T[0],T[1]+G],R=O[0]>=0?"right":"left",F=[X*V,-G];break}v.attr({style:{textVerticalAlign:v.__verticalAlign||M,textAlign:v.__textAlign||R},position:I,scale:[b,b],origin:F})}}function l(c,d,g){m.Group.call(this),this._createLine(c,d,g)}var r=l.prototype;r.beforeUpdate=e,r._createLine=function(c,d,g){var v=c.hostModel,b=c.getItemLayout(d),S=t(b);S.shape.percent=0,m.initProps(S,{shape:{percent:1}},v,d),this.add(S);var E=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(E),y.each(u,function(C){var _=i(C,c,d);this.add(_),this[a(C)]=c.getItemVisual(d,C)},this),this._updateCommonStl(c,d,g)},r.updateData=function(c,d,g){var v=c.hostModel,b=this.childOfName("line"),S=c.getItemLayout(d),E={shape:{}};o(E.shape,S),m.updateProps(b,E,v,d),y.each(u,function(C){var _=c.getItemVisual(d,C),T=a(C);if(this[T]!==_){this.remove(this.childOfName(C));var w=i(C,c,d);this.add(w)}this[T]=_},this),this._updateCommonStl(c,d,g)},r._updateCommonStl=function(c,d,g){var v=c.hostModel,b=this.childOfName("line"),S=g&&g.lineStyle,E=g&&g.hoverLineStyle,C=g&&g.labelModel,_=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var T=c.getItemModel(d);S=T.getModel("lineStyle").getLineStyle(),E=T.getModel("emphasis.lineStyle").getLineStyle(),C=T.getModel("label"),_=T.getModel("emphasis.label")}var w=c.getItemVisual(d,"color"),O=y.retrieve3(c.getItemVisual(d,"opacity"),S.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:O},S)),b.hoverStyle=E,y.each(u,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(w),Q.setStyle({opacity:O}))},this);var I=C.getShallow("show"),R=_.getShallow("show"),M=this.childOfName("label"),F,P;if((I||R)&&(F=w||"#000",P=v.getFormattedLabel(d,"normal",c.dataType),P==null)){var X=v.getRawValue(d);P=X==null?c.getName(d):isFinite(X)?h(X):X}var B=I?P:null,j=R?y.retrieve2(v.getFormattedLabel(d,"emphasis",c.dataType),P):null,W=M.style;if(B!=null||j!=null){m.setTextStyle(M.style,C,{text:B},{autoColor:F}),M.__textAlign=W.textAlign,M.__verticalAlign=W.textVerticalAlign,M.__position=C.get("position")||"middle";var z=C.get("distance");y.isArray(z)||(z=[z,z]),M.__labelDistance=z}j!=null?M.hoverStyle={text:j,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:M.hoverStyle={text:null},M.ignore=!I&&!R,m.setHoverStyle(this)},r.highlight=function(){this.trigger("emphasis")},r.downplay=function(){this.trigger("normal")},r.updateLayout=function(c,d){this.setLinePoints(c.getItemLayout(d))},r.setLinePoints=function(c){var d=this.childOfName("line");o(d.shape,c),d.dirty()},y.inherits(l,m.Group);var s=l;k.exports=s},fmMI:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.each,m=x.filter,f=x.map,h=x.isArray,u=x.indexOf,a=x.isObject,i=x.isString,t=x.createHashMap,o=x.assert,e=x.clone,l=x.merge,r=x.extend,s=x.mixin,c=n("4NO4"),d=n("Qxkt"),g=n("bLfw"),v=n("iXHM"),b=n("5Hur"),S=n("D5nY"),E=S.resetSourceDefaulter,C="\0_ec_inner",_=d.extend({init:function(B,j,W,z){W=W||{},this.option=null,this._theme=new d(W),this._optionManager=z},setOption:function(B,j){o(!(C in B),"please use chart.getOption()"),this._optionManager.setOption(B,j),this.resetOption(null)},resetOption:function(B){var j=!1,W=this._optionManager;if(!B||B==="recreate"){var z=W.mountOption(B==="recreate");!this.option||B==="recreate"?O.call(this,z):(this.restoreData(),this.mergeOption(z)),j=!0}if((B==="timeline"||B==="media")&&this.restoreData(),!B||B==="recreate"||B==="timeline"){var V=W.getTimelineOption(this);V&&(this.mergeOption(V),j=!0)}if(!B||B==="recreate"||B==="media"){var Q=W.getMediaOption(this,this._api);Q.length&&A(Q,function(G){this.mergeOption(G,j=!0)},this)}return j},mergeOption:function(B){var j=this.option,W=this._componentsMap,z=[];E(this),A(B,function(Q,G){if(Q==null)return;g.hasClass(G)?G&&z.push(G):j[G]=j[G]==null?e(Q):l(j[G],Q,!0)}),g.topologicalTravel(z,g.getAllClassMainTypes(),V,this);function V(Q,G){var re=c.normalizeToArray(B[Q]),ee=c.mappingToExists(W.get(Q),re);c.makeIdAndName(ee),A(ee,function($,be){var _e=$.option;a(_e)&&($.keyInfo.mainType=Q,$.keyInfo.subType=R(Q,_e,$.exist))});var ue=I(W,G);j[Q]=[],W.set(Q,[]),A(ee,function($,be){var _e=$.exist,Ee=$.option;if(o(a(Ee)||_e,"Empty component definition"),!Ee)_e.mergeOption({},this),_e.optionUpdated({},!1);else{var Xe=g.getClass(Q,$.keyInfo.subType,!0);if(_e&&_e.constructor===Xe)_e.name=$.keyInfo.name,_e.mergeOption(Ee,this),_e.optionUpdated(Ee,!1);else{var He=r({dependentModels:ue,componentIndex:be},$.keyInfo);_e=new Xe(Ee,this,this,He),r(_e,He),_e.init(Ee,this,this,He),_e.optionUpdated(null,!0)}}W.get(Q)[be]=_e,j[Q][be]=_e.option},this),Q==="series"&&M(this,W.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var B=e(this.option);return A(B,function(j,W){if(g.hasClass(W)){for(var j=c.normalizeToArray(j),z=j.length-1;z>=0;z--)c.isIdInner(j[z])&&j.splice(z,1);B[W]=j}}),delete B[C],B},getTheme:function(){return this._theme},getComponent:function(B,j){var W=this._componentsMap.get(B);if(W)return W[j||0]},queryComponents:function(B){var j=B.mainType;if(!j)return[];var W=B.index,z=B.id,V=B.name,Q=this._componentsMap.get(j);if(!Q||!Q.length)return[];var G;if(W!=null)h(W)||(W=[W]),G=m(f(W,function(ue){return Q[ue]}),function(ue){return!!ue});else if(z!=null){var re=h(z);G=m(Q,function(ue){return re&&u(z,ue.id)>=0||!re&&ue.id===z})}else if(V!=null){var ee=h(V);G=m(Q,function(ue){return ee&&u(V,ue.name)>=0||!ee&&ue.name===V})}else G=Q.slice();return F(G,B)},findComponents:function(B){var j=B.query,W=B.mainType,z=Q(j),V=z?this.queryComponents(z):this._componentsMap.get(W);return G(F(V,B));function Q(re){var ee=W+"Index",ue=W+"Id",$=W+"Name";return re&&(re[ee]!=null||re[ue]!=null||re[$]!=null)?{mainType:W,index:re[ee],id:re[ue],name:re[$]}:null}function G(re){return B.filter?m(re,B.filter):re}},eachComponent:function(B,j,W){var z=this._componentsMap;if(typeof B=="function")W=j,j=B,z.each(function(Q,G){A(Q,function(re,ee){j.call(W,G,re,ee)})});else if(i(B))A(z.get(B),j,W);else if(a(B)){var V=this.findComponents(B);A(V,j,W)}},getSeriesByName:function(B){var j=this._componentsMap.get("series");return m(j,function(W){return W.name===B})},getSeriesByIndex:function(B){return this._componentsMap.get("series")[B]},getSeriesByType:function(B){var j=this._componentsMap.get("series");return m(j,function(W){return W.subType===B})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(B,j){P(this),A(this._seriesIndices,function(W){var z=this._componentsMap.get("series")[W];B.call(j,z,W)},this)},eachRawSeries:function(B,j){A(this._componentsMap.get("series"),B,j)},eachSeriesByType:function(B,j,W){P(this),A(this._seriesIndices,function(z){var V=this._componentsMap.get("series")[z];V.subType===B&&j.call(W,V,z)},this)},eachRawSeriesByType:function(B,j,W){return A(this.getSeriesByType(B),j,W)},isSeriesFiltered:function(B){return P(this),this._seriesIndicesMap.get(B.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(B,j){P(this);var W=m(this._componentsMap.get("series"),B,j);M(this,W)},restoreData:function(B){var j=this._componentsMap;M(this,j.get("series"));var W=[];j.each(function(z,V){W.push(V)}),g.topologicalTravel(W,g.getAllClassMainTypes(),function(z,V){A(j.get(z),function(Q){(z!=="series"||!T(Q,B))&&Q.restoreData()})})}});function T(B,j){if(j){var W=j.seiresIndex,z=j.seriesId,V=j.seriesName;return W!=null&&B.componentIndex!==W||z!=null&&B.id!==z||V!=null&&B.name!==V}}function w(B,j){var W=B.color&&!B.colorLayer;A(j,function(z,V){if(V==="colorLayer"&&W)return;g.hasClass(V)||(typeof z=="object"?B[V]=B[V]?l(B[V],z,!1):e(z):B[V]==null&&(B[V]=z))})}function O(B){B=B,this.option={},this.option[C]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(B,this._theme.option),l(B,v,!1),this.mergeOption(B)}function I(B,j){h(j)||(j=j?[j]:[]);var W={};return A(j,function(z){W[z]=(B.get(z)||[]).slice()}),W}function R(B,j,W){var z=j.type?j.type:W?W.subType:g.determineSubType(B,j);return z}function M(B,j){B._seriesIndicesMap=t(B._seriesIndices=f(j,function(W){return W.componentIndex})||[])}function F(B,j){return j.hasOwnProperty("subType")?m(B,function(W){return W.subType===j.subType}):B}function P(B){}s(_,b);var X=_;k.exports=X},fmRc:function(k,D,n){var y=n("Xi7e"),p=n("77Zs"),x=n("L8xA"),A=n("gCq4"),m=n("VaNO"),f=n("0Cz8");function h(u){var a=this.__data__=new y(u);this.size=a.size}h.prototype.clear=p,h.prototype.delete=x,h.prototype.get=A,h.prototype.has=m,h.prototype.set=f,k.exports=h},ftKO:function(k,D){var n="__lodash_hash_undefined__";function y(p){return this.__data__.set(p,n),this}k.exports=y},fyUT:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("Ff2n"),i=n("rePB"),t=n("1OyB"),o=n("vuIU"),e=n("Ji7U"),l=n("md7G"),r=n("foSv"),s=n("4IlW");function c(G,re){var ee=Object.keys(G);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(G);re&&(ue=ue.filter(function($){return Object.getOwnPropertyDescriptor(G,$).enumerable})),ee.push.apply(ee,ue)}return ee}function d(G){for(var re=1;re<arguments.length;re++){var ee=arguments[re]!=null?arguments[re]:{};re%2?c(Object(ee),!0).forEach(function(ue){Object(i.a)(G,ue,ee[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(ee)):c(Object(ee)).forEach(function(ue){Object.defineProperty(G,ue,Object.getOwnPropertyDescriptor(ee,ue))})}return G}function g(G){var re=v();return function(){var ue=Object(r.a)(G),$;if(re){var be=Object(r.a)(this).constructor;$=Reflect.construct(ue,arguments,be)}else $=ue.apply(this,arguments);return Object(l.a)(this,$)}}function v(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(G){return!1}}function b(){}function S(G){G.preventDefault()}var E=function(re){return re.replace(/[^\w.-]+/g,"")},C=200,_=600,T=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(re){return re!=null},O=function(re,ee){return ee===re||typeof ee=="number"&&typeof re=="number"&&isNaN(ee)&&isNaN(re)},I=function(G){Object(e.a)(ee,G);var re=g(ee);function ee(ue){var $;Object(t.a)(this,ee),$=re.call(this,ue),$.onKeyDown=function(Ee){var Xe=$.props,He=Xe.onKeyDown,nt=Xe.onPressEnter;if(Ee.keyCode===s.a.UP){var Ie=$.getRatio(Ee);$.up(Ee,Ie,null),$.stop()}else if(Ee.keyCode===s.a.DOWN){var oe=$.getRatio(Ee);$.down(Ee,oe,null),$.stop()}else Ee.keyCode===s.a.ENTER&&nt&&nt(Ee);if($.recordCursorPosition(),$.lastKeyCode=Ee.keyCode,He){for(var ot=arguments.length,he=new Array(ot>1?ot-1:0),J=1;J<ot;J++)he[J-1]=arguments[J];He.apply(void 0,[Ee].concat(he))}},$.onKeyUp=function(Ee){var Xe=$.props.onKeyUp;if($.stop(),$.recordCursorPosition(),Xe){for(var He=arguments.length,nt=new Array(He>1?He-1:0),Ie=1;Ie<He;Ie++)nt[Ie-1]=arguments[Ie];Xe.apply(void 0,[Ee].concat(nt))}},$.onChange=function(Ee){var Xe=$.props.onChange;$.state.focused&&($.inputting=!0),$.rawInput=$.props.parser($.getValueFromEvent(Ee)),$.setState({inputValue:$.rawInput}),Xe($.toNumber($.rawInput))},$.onMouseUp=function(){var Ee=$.props.onMouseUp;$.recordCursorPosition(),Ee&&Ee.apply(void 0,arguments)},$.onFocus=function(){var Ee;$.setState({focused:!0}),(Ee=$.props).onFocus.apply(Ee,arguments)},$.onBlur=function(){var Ee=$.props.onBlur;$.inputting=!1,$.setState({focused:!1});var Xe=$.getCurrentValidValue($.state.inputValue),He=$.setValue(Xe,b);if(Ee){var nt=$.input.value,Ie=$.getInputDisplayValue({focus:!1,value:He});$.input.value=Ie&&Number(Ie),Ee.apply(void 0,arguments),$.input.value=nt}},$.getRatio=function(Ee){var Xe=1;return Ee.metaKey||Ee.ctrlKey?Xe=.1:Ee.shiftKey&&(Xe=10),Xe},$.getFullNum=function(Ee){return isNaN(Ee)?Ee:/e/i.test(String(Ee))?Number(Ee).toFixed(18).replace(/\.?0+$/,""):Ee},$.getPrecision=function(Ee){if(w($.props.precision))return $.props.precision;var Xe=String(Ee);if(Xe.indexOf("e-")>=0)return parseInt(Xe.slice(Xe.indexOf("e-")+2),10);var He=0;return Xe.indexOf(".")>=0&&(He=Xe.length-Xe.indexOf(".")-1),He},$.getInputDisplayValue=function(Ee){var Xe=Ee||$.state,He=Xe.focused,nt=Xe.inputValue,Ie=Xe.value,oe;He?oe=nt:oe=$.toPrecisionAsStep(Ie),oe==null&&(oe="");var ot=$.formatWrapper(oe);return w($.props.decimalSeparator)&&(ot=ot.toString().replace(".",$.props.decimalSeparator)),ot},$.recordCursorPosition=function(){try{$.cursorStart=$.input.selectionStart,$.cursorEnd=$.input.selectionEnd,$.currentValue=$.input.value,$.cursorBefore=$.input.value.substring(0,$.cursorStart),$.cursorAfter=$.input.value.substring($.cursorEnd)}catch(Ee){}},$.restoreByAfter=function(Ee){if(Ee===void 0)return!1;var Xe=$.input.value,He=Xe.lastIndexOf(Ee);if(He===-1)return!1;var nt=$.cursorBefore.length;return $.lastKeyCode===s.a.DELETE&&$.cursorBefore.charAt(nt-1)===Ee[0]?($.fixCaret(nt,nt),!0):He+Ee.length===Xe.length?($.fixCaret(He,He),!0):!1},$.partRestoreByAfter=function(Ee){return Ee===void 0?!1:Array.prototype.some.call(Ee,function(Xe,He){var nt=Ee.substring(He);return $.restoreByAfter(nt)})},$.isNotCompleteNumber=function(Ee){return isNaN(Ee)||Ee===""||Ee===null||Ee&&Ee.toString().indexOf(".")===Ee.toString().length-1},$.stop=function(){$.autoStepTimer&&clearTimeout($.autoStepTimer)},$.down=function(Ee,Xe,He){$.pressingUpOrDown=!0,$.step("down",Ee,Xe,He)},$.up=function(Ee,Xe,He){$.pressingUpOrDown=!0,$.step("up",Ee,Xe,He)},$.saveInput=function(Ee){$.input=Ee};var be=ue.value;be===void 0&&(be=ue.defaultValue),$.state={focused:ue.autoFocus};var _e=$.getValidValue($.toNumber(be));return $.state=d(d({},$.state),{},{inputValue:$.toPrecisionAsStep(_e),value:_e}),$}return Object(o.a)(ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function($){var be=this.props,_e=be.value,Ee=be.onChange,Xe=be.max,He=be.min,nt=this.state.focused;if($){if(!O($.value,_e)||!O($.max,Xe)||!O($.min,He)){var Ie=nt?_e:this.getValidValue(_e),oe;this.pressingUpOrDown?oe=Ie:this.inputting?oe=this.rawInput:oe=this.toPrecisionAsStep(Ie),this.setState({value:Ie,inputValue:oe})}var ot="value"in this.props?_e:this.state.value;"max"in this.props&&$.max!==Xe&&typeof ot=="number"&&ot>Xe&&Ee&&Ee(Xe),"min"in this.props&&$.min!==He&&typeof ot=="number"&&ot<He&&Ee&&Ee(He)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var he=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===s.a.BACKSPACE?he=this.cursorStart-1:this.lastKeyCode===s.a.DELETE&&(he=this.cursorStart):he=this.input.value.length,this.fixCaret(he,he)}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(J){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function($){var be=$;return be===""?be="":this.isNotCompleteNumber(parseFloat(be))?be=this.state.value:be=this.getValidValue(be),this.toNumber(be)}},{key:"getValueFromEvent",value:function($){var be=$.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(be=be.replace(this.props.decimalSeparator,".")),be}},{key:"getValidValue",value:function($){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Ee=parseFloat($);return isNaN(Ee)?$:(Ee<be&&(Ee=be),Ee>_e&&(Ee=_e),Ee)}},{key:"setValue",value:function($,be){var _e=this.props.precision,Ee=this.isNotCompleteNumber(parseFloat($))?null:parseFloat($),Xe=this.state.value,He=Xe===void 0?null:Xe,nt=this.state.inputValue,Ie=nt===void 0?null:nt,oe=typeof Ee=="number"?Ee.toFixed(_e):"".concat(Ee),ot=Ee!==He||oe!=="".concat(Ie);return"value"in this.props?(Ie=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Ie},be)):this.setState({value:Ee,inputValue:this.toPrecisionAsStep($)},be),ot&&this.props.onChange(Ee),Ee}},{key:"getMaxPrecision",value:function($){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=this.props,Ee=_e.precision,Xe=_e.step;if(w(Ee))return Ee;var He=this.getPrecision(be),nt=this.getPrecision(Xe),Ie=this.getPrecision($);return $?Math.max(Ie,He+nt):He+nt}},{key:"getPrecisionFactor",value:function($){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=this.getMaxPrecision($,be);return Math.pow(10,_e)}},{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($){return this.props.formatter?this.props.formatter($):$}},{key:"toPrecisionAsStep",value:function($){if(this.isNotCompleteNumber($)||$==="")return $;var be=Math.abs(this.getMaxPrecision($));return isNaN(be)?$.toString():Number($).toFixed(be)}},{key:"toNumber",value:function($){var be=this.props.precision,_e=this.state.focused,Ee=$&&$.length>16&&_e;return this.isNotCompleteNumber($)||Ee?$:w(be)?Math.round($*Math.pow(10,be))/Math.pow(10,be):Number($)}},{key:"upStep",value:function($,be){var _e=this.props.step,Ee=this.getPrecisionFactor($,be),Xe=Math.abs(this.getMaxPrecision($,be)),He=((Ee*$+Ee*_e*be)/Ee).toFixed(Xe);return this.toNumber(He)}},{key:"downStep",value:function($,be){var _e=this.props.step,Ee=this.getPrecisionFactor($,be),Xe=Math.abs(this.getMaxPrecision($,be)),He=((Ee*$-Ee*_e*be)/Ee).toFixed(Xe);return this.toNumber(He)}},{key:"step",value:function($,be){var _e=this,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Xe=arguments.length>3?arguments[3]:void 0;this.stop(),be&&(be.persist(),be.preventDefault());var He=this.props;if(He.disabled)return;var nt=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(nt))return;var Ie=this["".concat($,"Step")](nt,Ee),oe=Ie>He.max||Ie<He.min;if(Ie>He.max?Ie=He.max:Ie<He.min&&(Ie=He.min),this.setValue(Ie,null),this.setState({focused:!0},function(){_e.pressingUpOrDown=!1}),oe)return;this.autoStepTimer=setTimeout(function(){_e[$](be,Ee,!0)},Xe?C:_)}},{key:"fixCaret",value:function($,be){if($===void 0||be===void 0||!this.input||!this.input.value)return;try{var _e=this.input.selectionStart,Ee=this.input.selectionEnd;($!==_e||be!==Ee)&&this.input.setSelectionRange($,be)}catch(Xe){}}},{key:"render",value:function(){var $,be=this.props,_e=be.prefixCls,Ee=be.disabled,Xe=be.readOnly,He=be.useTouch,nt=be.autoComplete,Ie=be.upHandler,oe=be.downHandler,ot=be.className,he=be.max,J=be.min,Y=be.style,q=be.title,fe=be.onMouseEnter,we=be.onMouseLeave,Ne=be.onMouseOver,je=be.onMouseOut,me=be.required,Ce=be.onClick,Fe=be.tabIndex,it=be.type,Ct=be.placeholder,mt=be.id,Ve=be.inputMode,or=be.pattern,dt=be.step,Yt=be.maxLength,hr=be.autoFocus,Gt=be.name,Pt=be.onPaste,Xt=be.onInput,Ge=Object(a.a)(be,["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"]),pe=this.state,se=pe.value,lt=pe.focused,Ze=u()(_e,($={},Object(i.a)($,ot,!!ot),Object(i.a)($,"".concat(_e,"-disabled"),Ee),Object(i.a)($,"".concat(_e,"-focused"),lt),$)),de={};Object.keys(Ge).forEach(function(Dt){(Dt.substr(0,5)==="data-"||Dt.substr(0,5)==="aria-"||Dt==="role")&&(de[Dt]=Ge[Dt])});var _t=!Xe&&!Ee,er=this.getInputDisplayValue(null),yt=(se||se===0)&&(isNaN(se)||Number(se)>=he),Ar=(se||se===0)&&(isNaN(se)||Number(se)<=J),Sr=yt||Ee||Xe,Cn=Ar||Ee||Xe,mr=u()("".concat(_e,"-handler"),"".concat(_e,"-handler-up"),Object(i.a)({},"".concat(_e,"-handler-up-disabled"),Sr)),Pr=u()("".concat(_e,"-handler"),"".concat(_e,"-handler-down"),Object(i.a)({},"".concat(_e,"-handler-down-disabled"),Cn)),gr=He?{onTouchStart:Sr?b:this.up,onTouchEnd:this.stop}:{onMouseDown:Sr?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Jt=He?{onTouchStart:Cn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:Cn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return f.a.createElement("div",{className:Ze,style:Y,title:q,onMouseEnter:fe,onMouseLeave:we,onMouseOver:Ne,onMouseOut:je,onFocus:function(){return null},onBlur:function(){return null}},f.a.createElement("div",{className:"".concat(_e,"-handler-wrap")},f.a.createElement("span",Object.assign({unselectable:"on"},gr,{role:"button","aria-label":"Increase Value","aria-disabled":Sr,className:mr}),Ie||f.a.createElement("span",{unselectable:"on",className:"".concat(_e,"-handler-up-inner"),onClick:S})),f.a.createElement("span",Object.assign({unselectable:"on"},Jt,{role:"button","aria-label":"Decrease Value","aria-disabled":Cn,className:Pr}),oe||f.a.createElement("span",{unselectable:"on",className:"".concat(_e,"-handler-down-inner"),onClick:S}))),f.a.createElement("div",{className:"".concat(_e,"-input-wrap")},f.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":J,"aria-valuemax":he,"aria-valuenow":se,required:me,type:it,placeholder:Ct,onPaste:Pt,onClick:Ce,onMouseUp:this.onMouseUp,className:"".concat(_e,"-input"),tabIndex:Fe,autoComplete:nt,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:_t?this.onKeyDown:b,onKeyUp:_t?this.onKeyUp:b,autoFocus:hr,maxLength:Yt,readOnly:Xe,disabled:Ee,max:he,min:J,step:dt,name:Gt,title:q,id:mt,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(er),pattern:or,inputMode:Ve,onInput:Xt},de))))}}]),ee}(f.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:T,min:-T,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:E,required:!1,autoComplete:"off"};var R=I,M=R,F=n("FH2Y"),P=n.n(F),X=n("HQEm"),B=n.n(X),j=n("H84U"),W=n("3Nzz"),z=function(G,re){var ee={};for(var ue in G)Object.prototype.hasOwnProperty.call(G,ue)&&re.indexOf(ue)<0&&(ee[ue]=G[ue]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,ue=Object.getOwnPropertySymbols(G);$<ue.length;$++)re.indexOf(ue[$])<0&&Object.prototype.propertyIsEnumerable.call(G,ue[$])&&(ee[ue[$]]=G[ue[$]]);return ee},V=m.forwardRef(function(G,re){var ee=function($){var be=$.getPrefixCls,_e=$.direction,Ee=G.className,Xe=G.size,He=G.prefixCls,nt=G.readOnly,Ie=z(G,["className","size","prefixCls","readOnly"]),oe=be("input-number",He),ot=m.createElement(P.a,{className:"".concat(oe,"-handler-up-inner")}),he=m.createElement(B.a,{className:"".concat(oe,"-handler-down-inner")});return m.createElement(W.b.Consumer,null,function(J){var Y,q=Xe||J,fe=u()((Y={},A()(Y,"".concat(oe,"-lg"),q==="large"),A()(Y,"".concat(oe,"-sm"),q==="small"),A()(Y,"".concat(oe,"-rtl"),_e==="rtl"),A()(Y,"".concat(oe,"-readonly"),nt),Y),Ee);return m.createElement(M,p()({ref:re,className:fe,upHandler:ot,downHandler:he,prefixCls:oe,readOnly:nt},Ie))})};return m.createElement(j.a,null,ee)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(k,D,n){var y=n("bYtY"),p=n("9wZj"),x=n("OELB"),A=n("YXkt"),m=n("kj2x"),f=n("iPDy");function h(i,t,o){var e=t.coordinateSystem;i.each(function(l){var r=i.getItemModel(l),s,c=x.parsePercent(r.get("x"),o.getWidth()),d=x.parsePercent(r.get("y"),o.getHeight());if(!isNaN(c)&&!isNaN(d))s=[c,d];else if(t.getMarkerPosition)s=t.getMarkerPosition(i.getValues(i.dimensions,l));else if(e){var g=i.get(e.dimensions[0],l),v=i.get(e.dimensions[1],l);s=e.dataToPoint([g,v])}isNaN(c)||(s[0]=c),isNaN(d)||(s[1]=d),i.setItemLayout(l,s)})}var u=f.extend({type:"markPoint",updateTransform:function(i,t,o){t.eachSeries(function(e){var l=e.markPointModel;l&&(h(l.getData(),e,o),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(i,t,o,e){var l=i.coordinateSystem,r=i.id,s=i.getData(),c=this.markerGroupMap,d=c.get(r)||c.set(r,new p),g=a(l,i,t);t.setData(g),h(t.getData(),i,e),g.each(function(v){var b=g.getItemModel(v),S=b.getShallow("symbol"),E=b.getShallow("symbolSize"),C=y.isFunction(S),_=y.isFunction(E);if(C||_){var T=t.getRawValue(v),w=t.getDataParams(v);C&&(S=S(T,w)),_&&(E=E(T,w))}g.setItemVisual(v,{symbol:S,symbolSize:E,color:b.get("itemStyle.color")||s.getVisual("color")})}),d.updateData(g),this.group.add(d.group),g.eachItemGraphicEl(function(v){v.traverse(function(b){b.dataModel=t})}),d.__keep=!0,d.group.silent=t.get("silent")||i.get("silent")}});function a(i,t,o){var e;i?e=y.map(i&&i.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 A(e,o),r=y.map(o.get("data"),y.curry(m.dataTransform,t));return i&&(r=y.filter(r,y.curry(m.dataFilter,i))),l.initData(r,null,i?m.dimValueGetter:function(s){return s.value}),l}k.exports=u},g7p0:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("+TT/"),A=x.getLayoutParams,m=x.sizeCalculable,f=x.mergeLayoutParam,h=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(i,t,o,e){var l=A(i);h.superApply(this,"init",arguments),u(i,l)},mergeOption:function(i,t){h.superApply(this,"mergeOption",arguments),u(this.option,i)}});function u(i,t){var o=i.cellSize;y.isArray(o)?o.length===1&&(o[1]=o[0]):o=i.cellSize=[o,o];var e=y.map([0,1],function(l){return m(t,l)&&(o[l]="auto"),o[l]!=null&&o[l]!=="auto"});f(i,t,{type:"box",ignoreSize:e})}var a=h;k.exports=a},g9YV:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("pED+"),A=n.n(x),m=n("+L6B"),f=n("R9oj"),h=n("7Kak"),u=n("sRBo"),a=n("qVdP"),i=n("T2oS"),t=n("DjyN"),o=n("5Dmo")},gCq4:function(k,D){function n(y){return this.__data__.get(y)}k.exports=n},gIYZ:function(k,D,n){"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,n){"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 n(A){return A}function y(A,m,f,h,u){this._old=A,this._new=m,this._oldKeyGetter=f||n,this._newKeyGetter=h||n,this.context=u}y.prototype={constructor:y,add:function(A){return this._add=A,this},update:function(A){return this._update=A,this},remove:function(A){return this._remove=A,this},execute:function(){var A=this._old,m=this._new,f={},h={},u=[],a=[],i;for(p(A,f,u,"_oldKeyGetter",this),p(m,h,a,"_newKeyGetter",this),i=0;i<A.length;i++){var t=u[i],o=h[t];if(o!=null){var e=o.length;e?(e===1&&(h[t]=null),o=o.shift()):h[t]=null,this._update&&this._update(o,i)}else this._remove&&this._remove(i)}for(var i=0;i<a.length;i++){var t=a[i];if(h.hasOwnProperty(t)){var o=h[t];if(o==null)continue;if(!o.length)this._add&&this._add(o);else for(var l=0,e=o.length;l<e;l++)this._add&&this._add(o[l])}}}};function p(A,m,f,h,u){for(var a=0;a<A.length;a++){var i="_ec_"+u[h](A[a],a),t=m[i];t==null?(f.push(i),m[i]=a):(t.length||(m[i]=t=[t]),t.push(a))}}var x=y;k.exports=x},gRFJ:function(k,D,n){k.exports=[n("rdUC"),n("ynwM"),n("RELg"),n("DlR+"),n("CrYA"),n("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 n=meta[D];return typeof n=="string"?n:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+k+'"'}function str(k,D){var n,y,p,x,A=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(x=f.length,n=0;n<x;n+=1)m[n]=str(n,f)||"null";return p=m.length===0?"[]":gap?`[
`+gap+m.join(`,
`+gap)+`
`+A+"]":"["+m.join(",")+"]",gap=A,p}if(rep&&typeof rep=="object")for(x=rep.length,n=0;n<x;n+=1)typeof rep[n]=="string"&&(y=rep[n],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)+`
`+A+"}":"{"+m.join(",")+"}",gap=A,p}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(k,D,n){var y;if(gap="",indent="",typeof n=="number")for(y=0;y<n;y+=1)indent+=" ";else typeof n=="string"&&(indent=n);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 n,y,p=k[D];if(p&&typeof p=="object")for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(y=walk(p,n),y!==void 0?p[n]=y:delete p[n]);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,n){var y=n("+TT/"),p=n("bYtY"),x=n("4NO4"),A=x.groupData;function m(O,I,R){O.eachSeriesByType("sankey",function(M){var F=M.get("nodeWidth"),P=M.get("nodeGap"),X=f(M,I);M.layoutInfo=X;var B=X.width,j=X.height,W=M.getGraph(),z=W.nodes,V=W.edges;u(z);var Q=p.filter(z,function(ue){return ue.getLayout().value===0}),G=Q.length!==0?0:M.get("layoutIterations"),re=M.get("orient"),ee=M.get("nodeAlign");h(z,V,F,P,B,j,G,re,ee)})}function f(O,I){return y.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function h(O,I,R,M,F,P,X,B,j){a(O,I,R,F,P,B,j),l(O,I,P,F,M,X,B),w(O,B)}function u(O){p.each(O,function(I){var R=_(I.outEdges,C),M=_(I.inEdges,C),F=I.getValue()||0,P=Math.max(R,M,F);I.setLayout({value:P},!0)})}function a(O,I,R,M,F,P,X){for(var B=[],j=[],W=[],z=[],V=0,Q=0,G=0;G<I.length;G++)B[G]=1;for(G=0;G<O.length;G++)j[G]=O[G].inEdges.length,j[G]===0&&W.push(O[G]);for(var re=-1;W.length;){for(var ee=0;ee<W.length;ee++){var ue=W[ee],$=ue.hostGraph.data.getRawDataItem(ue.dataIndex),be=$.depth!=null&&$.depth>=0;be&&$.depth>re&&(re=$.depth),ue.setLayout({depth:be?$.depth:V},!0),P==="vertical"?ue.setLayout({dy:R},!0):ue.setLayout({dx:R},!0);for(var _e=0;_e<ue.outEdges.length;_e++){var Ee=ue.outEdges[_e],Xe=I.indexOf(Ee);B[Xe]=0;var He=Ee.node2,nt=O.indexOf(He);--j[nt]===0&&z.indexOf(He)<0&&z.push(He)}}++V,W=z,z=[]}for(G=0;G<B.length;G++)if(B[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Ie=re>V-1?re:V-1;X&&X!=="left"&&t(O,X,P,Ie);var Q=P==="vertical"?(F-R)/Ie:(M-R)/Ie;e(O,Q,P)}function i(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function t(O,I,R,M){if(I==="right"){for(var F=[],P=O,X=0;P.length;){for(var B=0;B<P.length;B++){var j=P[B];j.setLayout({skNodeHeight:X},!0);for(var W=0;W<j.inEdges.length;W++){var z=j.inEdges[W];F.indexOf(z.node1)<0&&F.push(z.node1)}}P=F,F=[],++X}p.each(O,function(V){i(V)||V.setLayout({depth:Math.max(0,M-V.getLayout().skNodeHeight)},!0)})}else I==="justify"&&o(O,M)}function o(O,I){p.each(O,function(R){!i(R)&&!R.outEdges.length&&R.setLayout({depth:I},!0)})}function e(O,I,R){p.each(O,function(M){var F=M.getLayout().depth*I;R==="vertical"?M.setLayout({y:F},!0):M.setLayout({x:F},!0)})}function l(O,I,R,M,F,P,X){var B=r(O,X);s(B,I,R,M,F,X),c(B,F,R,M,X);for(var j=1;P>0;P--)j*=.99,d(B,j,X),c(B,F,R,M,X),T(B,j,X),c(B,F,R,M,X)}function r(O,I){var R=[],M=I==="vertical"?"y":"x",F=A(O,function(P){return P.getLayout()[M]});return F.keys.sort(function(P,X){return P-X}),p.each(F.keys,function(P){R.push(F.buckets.get(P))}),R}function s(O,I,R,M,F,P){var X=Infinity;p.each(O,function(B){var j=B.length,W=0;p.each(B,function(V){W+=V.getLayout().value});var z=P==="vertical"?(M-(j-1)*F)/W:(R-(j-1)*F)/W;z<X&&(X=z)}),p.each(O,function(B){p.each(B,function(j,W){var z=j.getLayout().value*X;P==="vertical"?(j.setLayout({x:W},!0),j.setLayout({dx:z},!0)):(j.setLayout({y:W},!0),j.setLayout({dy:z},!0))})}),p.each(I,function(B){var j=+B.getValue()*X;B.setLayout({dy:j},!0)})}function c(O,I,R,M,F){var P=F==="vertical"?"x":"y";p.each(O,function(X){X.sort(function(ee,ue){return ee.getLayout()[P]-ue.getLayout()[P]});for(var B,j,W,z=0,V=X.length,Q=F==="vertical"?"dx":"dy",G=0;G<V;G++)j=X[G],W=z-j.getLayout()[P],W>0&&(B=j.getLayout()[P]+W,F==="vertical"?j.setLayout({x:B},!0):j.setLayout({y:B},!0)),z=j.getLayout()[P]+j.getLayout()[Q]+I;var re=F==="vertical"?M:R;if(W=z-I-re,W>0)for(B=j.getLayout()[P]-W,F==="vertical"?j.setLayout({x:B},!0):j.setLayout({y:B},!0),z=B,G=V-2;G>=0;--G)j=X[G],W=j.getLayout()[P]+j.getLayout()[Q]+I-z,W>0&&(B=j.getLayout()[P]-W,F==="vertical"?j.setLayout({x:B},!0):j.setLayout({y:B},!0)),z=j.getLayout()[P]})}function d(O,I,R){p.each(O.slice().reverse(),function(M){p.each(M,function(F){if(F.outEdges.length){var P=_(F.outEdges,g,R)/_(F.outEdges,C,R);if(isNaN(P)){var X=F.outEdges.length;P=X?_(F.outEdges,v,R)/X:0}if(R==="vertical"){var B=F.getLayout().x+(P-E(F,R))*I;F.setLayout({x:B},!0)}else{var j=F.getLayout().y+(P-E(F,R))*I;F.setLayout({y:j},!0)}}})})}function g(O,I){return E(O.node2,I)*O.getValue()}function v(O,I){return E(O.node2,I)}function b(O,I){return E(O.node1,I)*O.getValue()}function S(O,I){return E(O.node1,I)}function E(O,I){return I==="vertical"?O.getLayout().x+O.getLayout().dx/2:O.getLayout().y+O.getLayout().dy/2}function C(O){return O.getValue()}function _(O,I,R){for(var M=0,F=O.length,P=-1;++P<F;){var X=+I.call(O,O[P],R);isNaN(X)||(M+=X)}return M}function T(O,I,R){p.each(O,function(M){p.each(M,function(F){if(F.inEdges.length){var P=_(F.inEdges,b,R)/_(F.inEdges,C,R);if(isNaN(P)){var X=F.inEdges.length;P=X?_(F.inEdges,S,R)/X:0}if(R==="vertical"){var B=F.getLayout().x+(P-E(F,R))*I;F.setLayout({x:B},!0)}else{var j=F.getLayout().y+(P-E(F,R))*I;F.setLayout({y:j},!0)}}})})}function w(O,I){var R=I==="vertical"?"x":"y";p.each(O,function(M){M.outEdges.sort(function(F,P){return F.node2.getLayout()[R]-P.node2.getLayout()[R]}),M.inEdges.sort(function(F,P){return F.node1.getLayout()[R]-P.node1.getLayout()[R]})}),p.each(O,function(M){var F=0,P=0;p.each(M.outEdges,function(X){X.setLayout({sy:F},!0),F+=X.getLayout().dy}),p.each(M.inEdges,function(X){X.setLayout({ty:P},!0),P+=X.getLayout().dy})})}k.exports=m},"gb/T":function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.mode.ECB=function(){var p=y.lib.BlockCipherMode.extend();return p.Encryptor=p.extend({processBlock:function(A,m){this._cipher.encryptBlock(A,m)}}),p.Decryptor=p.extend({processBlock:function(A,m){this._cipher.decryptBlock(A,m)}}),p}(),y.mode.ECB})},"giR+":function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("QbM5"),A=n.n(x)},gut8:function(k,D){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=n,D.WILL_BE_RESTORED=y},gvm7:function(k,D,n){var y=n("bYtY"),p=n("dqUG");function x(m){this._zr=m.getZr(),this._show=!1,this._hideTimeout}x.prototype={constructor:x,_enterable:!0,update:function(){},show:function(m){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(m,f,h){this.el&&this._zr.remove(this.el);for(var u={},a=m,i="{marker",t="|}",o=a.indexOf(i);o>=0;){var e=a.indexOf(t),l=a.substr(o+i.length,e-o-i.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]},a=a.substr(e+1),o=a.indexOf("{marker")}this.el=new p({style:{rich:u,text:m,textLineHeight:20,textBackgroundColor:h.get("backgroundColor"),textBorderRadius:h.get("borderRadius"),textFill:h.get("textStyle.color"),textPadding:h.get("padding")},z:h.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 A=x;k.exports=A},gwTy:function(k,D,n){},h54F:function(k,D,n){var y=n("ProS"),p=n("YXkt"),x=n("bYtY"),A=n("4NO4"),m=A.defaultEmphasis,f=n("Qxkt"),h=n("7aKB"),u=h.encodeHTML,a=n("I3/A"),i=n("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 i(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 a(s,r,this,!0,d).data;function d(g,v){g.wrapMethod("getItemModel",function(T){var w=c._categoriesModels,O=T.getShallow("category"),I=w[O];return I&&(I.parentModel=T.parentModel,T.parentModel=I),T});var b=c.getModel("edgeLabel"),S=new f({label:b.option},b.parentModel,l),E=c.getModel("emphasis.edgeLabel"),C=new f({emphasis:{label:E.option}},E.parentModel,l);v.wrapMethod("getItemModel",function(T){return T.customizeGetParent(_),T});function _(T){return T=this.parsePath(T),T&&T[0]==="label"?S:T&&T[0]==="emphasis"&&T[1]==="label"?C:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,l,r){if(r==="edge"){var s=this.getData(),c=this.getDataParams(e,r),d=s.graph.getEdgeByIndex(e),g=s.getName(d.node1.dataIndex),v=s.getName(d.node2.dataIndex),b=[];return g!=null&&b.push(g),v!=null&&b.push(v),b=u(b.join(" > ")),c.value&&(b+=" : "+u(c.value)),b}else return t.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=x.map(this.option.categories||[],function(r){return r.value!=null?r:x.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}}}}),o=t;k.exports=o},h7HQ:function(k,D,n){var y=n("y+Vt"),p=n("T6xi"),x=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,f){p.buildPath(m,f,!0)}});k.exports=x},h8O9:function(k,D,n){var y=n("bYtY"),p=y.map,x=n("zM3Q"),A=n("7hqr"),m=A.isDimensionStacked;function f(h){return{seriesType:h,plan:x(),reset:function(u){var a=u.getData(),i=u.coordinateSystem,t=u.pipelineContext,o=t.large;if(!i)return;var e=p(i.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),l=e.length,r=a.getCalculationInfo("stackResultDimension");m(a,e[0])&&(e[0]=r),m(a,e[1])&&(e[1]=r);function s(c,d){for(var g=c.end-c.start,v=o&&new Float32Array(g*l),b=c.start,S=0,E=[],C=[];b<c.end;b++){var _;if(l===1){var T=d.get(e[0],b);_=!isNaN(T)&&i.dataToPoint(T,null,C)}else{var T=E[0]=d.get(e[0],b),w=E[1]=d.get(e[1],b);_=!isNaN(T)&&!isNaN(w)&&i.dataToPoint(E,null,C)}o?(v[S++]=_?_[0]:NaN,v[S++]=_?_[1]:NaN):d.setItemLayout(b,_&&_.slice()||[NaN,NaN])}o&&d.setLayout("symbolPoints",v)}return l&&{progress:s}}}}k.exports=f},hD7B:function(k,D,n){var y=n("bYtY"),p=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function x(m){y.each(p,function(f){this[f]=y.bind(m[f],m)},this)}var A=x;k.exports=A},hFmY:function(k,D,n){var y=n("ProS"),p={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(p,function(x,A){A.eachComponent({mainType:"parallelAxis",query:x},function(m){m.axis.model.setActiveIntervals(x.intervals)})}),y.registerAction("parallelAxisExpand",function(x,A){A.eachComponent({mainType:"parallel",query:x},function(m){m.setAxisExpand(x)})})},hJvP:function(k,D,n){var y=n("2dDv"),p=n("IDmD");function x(A,m){var f=[];return A.eachComponent("parallel",function(h,u){var a=new y(h,A,m);a.name="parallel_"+u,a.resize(h,m),h.coordinateSystem=a,a.model=h,f.push(a)}),A.eachSeries(function(h){if(h.get("coordinateSystem")==="parallel"){var u=A.queryComponents({mainType:"parallel",index:h.get("parallelIndex"),id:h.get("parallelId")})[0];h.coordinateSystem=u.coordinateSystem}}),f}p.register("parallel",{create:x})},hM6l:function(k,D,n){var y=n("bYtY"),p=y.each,x=y.map,A=n("OELB"),m=A.linearMap,f=A.getPixelPrecision,h=A.round,u=n("4HMb"),a=u.createAxisTicks,i=u.createAxisLabels,t=u.calculateCategoryInterval,o=[0,1],e=function(c,d,g){this.dim=c,this.scale=d,this._extent=g||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(c){var d=this._extent,g=Math.min(d[0],d[1]),v=Math.max(d[0],d[1]);return c>=g&&c<=v},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,d){var g=this._extent;g[0]=c,g[1]=d},dataToCoord:function(c,d){var g=this._extent,v=this.scale;return c=v.normalize(c),this.onBand&&v.type==="ordinal"&&(g=g.slice(),l(g,v.count())),m(c,o,g,d)},coordToData:function(c,d){var g=this._extent,v=this.scale;this.onBand&&v.type==="ordinal"&&(g=g.slice(),l(g,v.count()));var b=m(c,g,o,d);return this.scale.scale(b)},pointToData:function(c,d){},getTicksCoords:function(c){c=c||{};var d=c.tickModel||this.getTickModel(),g=a(this,d),v=g.ticks,b=x(v,function(E){return{coord:this.dataToCoord(E),tickValue:E}},this),S=d.get("alignWithLabel");return r(this,b,S,c.clamp),b},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var c=this.model.getModel("minorTick"),d=c.get("splitNumber");d>0&&d<100||(d=5);var g=this.scale.getMinorTicks(d),v=x(g,function(b){return x(b,function(S){return{coord:this.dataToCoord(S),tickValue:S}},this)},this);return v},getViewLabels:function(){return i(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var c=this._extent,d=this.scale.getExtent(),g=d[1]-d[0]+(this.onBand?1:0);g===0&&(g=1);var v=Math.abs(c[1]-c[0]);return Math.abs(v)/g},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function l(c,d){var g=c[1]-c[0],v=d,b=g/v/2;c[0]+=b,c[1]-=b}function r(c,d,g,v){var b=d.length;if(!c.onBand||g||!b)return;var S=c.getExtent(),E,C;if(b===1)d[0].coord=S[0],E=d[1]={coord:S[0]};else{var _=d[b-1].tickValue-d[0].tickValue,T=(d[b-1].coord-d[0].coord)/_;p(d,function(R){R.coord-=T/2});var w=c.scale.getExtent();C=1+w[1]-d[b-1].tickValue,E={coord:d[b-1].coord+T*C},d.push(E)}var O=S[0]>S[1];I(d[0].coord,S[0])&&(v?d[0].coord=S[0]:d.shift()),v&&I(S[0],d[0].coord)&&d.unshift({coord:S[0]}),I(S[1],E.coord)&&(v?E.coord=S[1]:d.pop()),v&&I(E.coord,S[1])&&d.push({coord:S[1]});function I(R,M){return R=h(R),M=h(M),O?R>M:R<M}}var s=e;k.exports=s},hNWo:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("Qxkt"),A=n("4NO4"),m=A.isNameSpecified,f=n("Kagy"),h=f.legend.selector,u={all:{type:"all",title:p.clone(h.all)},inverse:{type:"inverse",title:p.clone(h.inverse)}},a=y.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,o,e){this.mergeDefaultAndTheme(t,e),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){a.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var o=t.selector;o===!0&&(o=t.selector=["all","inverse"]),p.isArray(o)&&p.each(o,function(e,l){p.isString(e)&&(e={type:e}),o[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 o=!1,e=0;e<t.length;e++){var l=t[e].get("name");if(this.isSelected(l)){this.select(l),o=!0;break}}!o&&this.select(t[0].get("name"))}},_updateData:function(t){var o=[],e=[];t.eachRawSeries(function(s){var c=s.name;e.push(c);var d;if(s.legendVisualProvider){var g=s.legendVisualProvider,v=g.getAllNames();t.isSeriesFiltered(s)||(e=e.concat(v)),v.length?o=o.concat(v):d=!0}else d=!0;d&&m(s)&&o.push(s.name)}),this._availableNames=e;var l=this.get("data")||o,r=p.map(l,function(s){return(typeof s=="string"||typeof s=="number")&&(s={name:s}),new x(s,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var o=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;p.each(l,function(r){o[r.get("name")]=!1})}o[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var o=this.option.selected;o.hasOwnProperty(t)||(o[t]=!0),this[o[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,o=this.option.selected;p.each(t,function(e){o[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,o=this.option.selected;p.each(t,function(e){var l=e.get("name",!0);o.hasOwnProperty(l)||(o[l]=!0),o[l]=!o[l]})},isSelected:function(t){var o=this.option.selected;return!(o.hasOwnProperty(t)&&!o[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}}}),i=a;k.exports=i},hOwI:function(k,D){var n=Math.log(2);function y(x,A,m,f,h,u){var a=f+"-"+h,i=x.length;if(u.hasOwnProperty(a))return u[a];if(A===1){var t=Math.round(Math.log((1<<i)-1&~h)/n);return x[m][t]}for(var o=f|1<<m,e=m+1;f&1<<e;)e++;for(var l=0,r=0,s=0;r<i;r++){var c=1<<r;c&h||(l+=(s%2?-1:1)*x[m][r]*y(x,A-1,e,o,h|c,u),s++)}return u[a]=l,l}function p(x,A){var m=[[x[0],x[1],1,0,0,0,-A[0]*x[0],-A[0]*x[1]],[0,0,0,x[0],x[1],1,-A[1]*x[0],-A[1]*x[1]],[x[2],x[3],1,0,0,0,-A[2]*x[2],-A[2]*x[3]],[0,0,0,x[2],x[3],1,-A[3]*x[2],-A[3]*x[3]],[x[4],x[5],1,0,0,0,-A[4]*x[4],-A[4]*x[5]],[0,0,0,x[4],x[5],1,-A[5]*x[4],-A[5]*x[5]],[x[6],x[7],1,0,0,0,-A[6]*x[6],-A[6]*x[7]],[0,0,0,x[6],x[7],1,-A[7]*x[6],-A[7]*x[7]]],f={},h=y(m,8,0,0,0,f);if(h===0)return;for(var u=[],a=0;a<8;a++)for(var i=0;i<8;i++)u[i]==null&&(u[i]=0),u[i]+=((a+i)%2?-1:1)*y(m,7,a===0?1:0,1<<a,1<<i,f)/h*A[a];return function(t,o,e){var l=o*u[6]+e*u[7]+1;t[0]=(o*u[0]+e*u[1]+u[2])/l,t[1]=(o*u[3]+e*u[4]+u[5])/l}}D.buildTransformer=p},hX1E:function(k,D){var n=Math.PI*2;function y(p){return p%=n,p<0&&(p+=n),p}D.normalizeRadian=y},hXwI:function(k,D,n){"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 h=0;h<f.length;h++){var u=f[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,f,h){return f&&p(m.prototype,f),h&&p(m,h),m}var A=function(){function m(){y(this,m)}return x(m,[{key:"decodeRect",value:function(h,u,a,i,t,o,e){if(t.rQwait("COPYRECT",4))return!1;var l=t.rQshift16(),r=t.rQshift16();return o.copyImage(l,r,h,u,a,i),!0}}]),m}();D.default=A},hi0g:function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.each,A=y.isString,m=y.defaults,f=y.extend,h=y.isObject,u=y.clone,a=n("4NO4"),i=a.normalizeToArray,t=n("D5nY"),o=t.guessOrdinal,e=t.BE_ORDINAL,l=n("7G+c"),r=n("L0Ub"),s=r.OTHER_DIMENSIONS,c=n("Vi4m");function d(S,E,C){l.isInstance(E)||(E=l.seriesDataToSource(E)),C=C||{},S=(S||[]).slice();for(var _=(C.dimsDef||[]).slice(),T=p(),w=p(),O=[],I=g(E,S,_,C.dimCount),R=0;R<I;R++){var M=_[R]=f({},h(_[R])?_[R]:{name:_[R]}),F=M.name,P=O[R]=new c;F!=null&&T.get(F)==null&&(P.name=P.displayName=F,T.set(F,R)),M.type!=null&&(P.type=M.type),M.displayName!=null&&(P.displayName=M.displayName)}var X=C.encodeDef;!X&&C.encodeDefaulter&&(X=C.encodeDefaulter(E,I)),X=p(X),X.each(function(ee,ue){if(ee=i(ee).slice(),ee.length===1&&!A(ee[0])&&ee[0]<0){X.set(ue,!1);return}var $=X.set(ue,[]);x(ee,function(be,_e){A(be)&&(be=T.get(be)),be!=null&&be<I&&($[_e]=be,j(O[be],ue,_e))})});var B=0;x(S,function(ee,ue){var $,ee,be,_e;if(A(ee))$=ee,ee={};else{$=ee.name;var Ee=ee.ordinalMeta;ee.ordinalMeta=null,ee=u(ee),ee.ordinalMeta=Ee,be=ee.dimsDef,_e=ee.otherDims,ee.name=ee.coordDim=ee.coordDimIndex=ee.dimsDef=ee.otherDims=null}var Xe=X.get($);if(Xe===!1)return;var Xe=i(Xe);if(!Xe.length)for(var He=0;He<(be&&be.length||1);He++){for(;B<O.length&&O[B].coordDim!=null;)B++;B<O.length&&Xe.push(B++)}x(Xe,function(nt,Ie){var oe=O[nt];if(j(m(oe,ee),$,Ie),oe.name==null&&be){var ot=be[Ie];!h(ot)&&(ot={name:ot}),oe.name=oe.displayName=ot.name,oe.defaultTooltip=ot.defaultTooltip}_e&&m(oe.otherDims,_e)})});function j(ee,ue,$){s.get(ue)!=null?ee.otherDims[ue]=$:(ee.coordDim=ue,ee.coordDimIndex=$,w.set(ue,!0))}var W=C.generateCoord,z=C.generateCoordCount,V=z!=null;z=W?z||1:0;for(var Q=W||"value",G=0;G<I;G++){var P=O[G]=O[G]||new c,re=P.coordDim;re==null&&(P.coordDim=v(Q,w,V),P.coordDimIndex=0,(!W||z<=0)&&(P.isExtraCoord=!0),z--),P.name==null&&(P.name=v(P.coordDim,T)),P.type==null&&(o(E,G,P.name)===e.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return O}function g(S,E,C,_){var T=Math.max(S.dimensionsDetectCount||1,E.length,C.length,_||0);return x(E,function(w){var O=w.dimsDef;O&&(T=Math.max(T,O.length))}),T}function v(S,E,C){if(C||E.get(S)!=null){for(var _=0;E.get(S+_)!=null;)_++;S+=_}return E.set(S,!0),S}var b=d;k.exports=b},hkKa:function(k,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("J4zp"),p=n.n(y),x=n("q1tI"),A=n.n(x);function m(){var f=x.useReducer(function(a){return a+1},0),h=p()(f,2),u=h[1];return u}},hw6D:function(k,D,n){var y=n("bYtY");function p(m){m.eachSeriesByType("radar",function(f){var h=f.getData(),u=[],a=f.coordinateSystem;if(!a)return;var i=a.getIndicatorAxes();y.each(i,function(t,o){h.each(h.mapDimension(i[o].dim),function(e,l){u[l]=u[l]||[];var r=a.dataToPoint(e,o);u[l][o]=x(r)?r:A(a)})}),h.each(function(t){var o=y.find(u[t],function(e){return x(e)})||A(a);u[t].push(o.slice()),h.setItemLayout(t,u[t])})})}function x(m){return!isNaN(m[0])&&!isNaN(m[1])}function A(m){return[m.cx,m.cy]}k.exports=p},hwYd:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Nu4q")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PictureTwoTone";var i=A.forwardRef(a);D.default=i},hydK:function(k,D){var n="http://www.w3.org/2000/svg";function y(p){return document.createElementNS(n,p)}D.createElement=y},hyiK:function(k,D){function n(y,p,x,A,m,f){if(f>p&&f>A||f<p&&f<A)return 0;if(A===p)return 0;var h=A<p?1:-1,u=(f-p)/(A-p);(u===1||u===0)&&(h=A<p?.5:-.5);var a=u*(x-y)+y;return a===m?Infinity:a>m?h:0}k.exports=n},i38C:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=x.createHashMap,m=x.retrieve,f=x.each;function h(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=A(),this.categoryAxisMap=A(),this.firstCategoryDimIndex=null}function u(t){var o=t.get("coordinateSystem"),e=new h(o),l=a[o];if(l)return l(t,e,e.axisMap,e.categoryAxisMap),e}var a={cartesian2d:function(t,o,e,l){var r=t.getReferringComponents("xAxis")[0],s=t.getReferringComponents("yAxis")[0];o.coordSysDims=["x","y"],e.set("x",r),e.set("y",s),i(r)&&(l.set("x",r),o.firstCategoryDimIndex=0),i(s)&&(l.set("y",s),o.firstCategoryDimIndex==null&(o.firstCategoryDimIndex=1))},singleAxis:function(t,o,e,l){var r=t.getReferringComponents("singleAxis")[0];o.coordSysDims=["single"],e.set("single",r),i(r)&&(l.set("single",r),o.firstCategoryDimIndex=0)},polar:function(t,o,e,l){var r=t.getReferringComponents("polar")[0],s=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");o.coordSysDims=["radius","angle"],e.set("radius",s),e.set("angle",c),i(s)&&(l.set("radius",s),o.firstCategoryDimIndex=0),i(c)&&(l.set("angle",c),o.firstCategoryDimIndex==null&&(o.firstCategoryDimIndex=1))},geo:function(t,o,e,l){o.coordSysDims=["lng","lat"]},parallel:function(t,o,e,l){var r=t.ecModel,s=r.getComponent("parallel",t.get("parallelIndex")),c=o.coordSysDims=s.dimensions.slice();f(s.parallelAxisIndex,function(d,g){var v=r.getComponent("parallelAxis",d),b=c[g];e.set(b,v),i(v)&&o.firstCategoryDimIndex==null&&(l.set(b,v),o.firstCategoryDimIndex=g)})}};function i(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=u},i6bk:function(k,D,n){"use strict";n.d(D,"b",function(){return y}),n.d(D,"a",function(){return p});function y(x){return x!=null&&x===x.window}function p(x,A){if(typeof window=="undefined")return 0;var m=A?"scrollTop":"scrollLeft",f=0;return y(x)?f=x[A?"pageYOffset":"pageXOffset"]:x instanceof Document?f=x.documentElement[m]:x&&(f=x[m]),x&&!y(x)&&typeof f!="number"&&(f=(x.ownerDocument||x).documentElement[m]),f}},i8CU:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("Fm1+"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},iLNv:function(k,D){var n="\0__throttleOriginMethod",y="\0__throttleRate",p="\0__throttleType";function x(f,h,u){var a,i=0,t=0,o=null,e,l,r,s;h=h||0;function c(){t=new Date().getTime(),o=null,f.apply(l,r||[])}var d=function(){a=new Date().getTime(),l=this,r=arguments;var g=s||h,v=s||u;s=null,e=a-(v?i:t)-g,clearTimeout(o),v?o=setTimeout(c,g):e>=0?c():o=setTimeout(c,-e),i=a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(g){s=g},d}function A(f,h,u,a){var i=f[h];if(!i)return;var t=i[n]||i,o=i[p],e=i[y];if(e!==u||o!==a){if(u==null||!a)return f[h]=t;i=f[h]=x(t,u,a==="debounce"),i[n]=t,i[p]=a,i[y]=u}return i}function m(f,h){var u=f[h];u&&u[n]&&(f[h]=u[n])}D.throttle=x,D.createOrUpdate=A,D.clear=m},iPDy:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=p.createHashMap()},render:function(A,m,f){var h=this.markerGroupMap;h.each(function(a){a.__keep=!1});var u=this.type+"Model";m.eachSeries(function(a){var i=a[u];i&&this.renderSeries(a,i,m,f)},this),h.each(function(a){!a.__keep&&this.group.remove(a.group)},this)},renderSeries:function(){}});k.exports=x},iQDF:function(k,D,n){"use strict";var y=n("ZTW2"),p=n.n(y),x=n("+BJd"),A=n("+L6B")},iRjW:function(k,D,n){var y=n("bYtY"),p=n("Yl7c"),x=p.parseClassType,A=0;function m(u){return[u||"",A++,Math.random().toFixed(5)].join("_")}function f(u){var a={};return u.registerSubTypeDefaulter=function(i,t){i=x(i),a[i.main]=t},u.determineSubType=function(i,t){var o=t.type;if(!o){var e=x(i).main;u.hasSubTypes(i)&&a[e]&&(o=a[e](t))}return o},u}function h(u,a){u.topologicalTravel=function(e,l,r,s){if(!e.length)return;var c=i(l),d=c.graph,g=c.noEntryList,v={};for(y.each(e,function(T){v[T]=!0});g.length;){var b=g.pop(),S=d[b],E=!!v[b];E&&(r.call(s,b,S.originalDeps.slice()),delete v[b]),y.each(S.successor,E?_:C)}y.each(v,function(){throw new Error("Circle dependency may exists")});function C(T){d[T].entryCount--,d[T].entryCount===0&&g.push(T)}function _(T){v[T]=!0,C(T)}};function i(e){var l={},r=[];return y.each(e,function(s){var c=t(l,s),d=c.originalDeps=a(s),g=o(d,e);c.entryCount=g.length,c.entryCount===0&&r.push(s),y.each(g,function(v){y.indexOf(c.predecessor,v)<0&&c.predecessor.push(v);var b=t(l,v);y.indexOf(b.successor,v)<0&&b.successor.push(s)})}),{graph:l,noEntryList:r}}function t(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function o(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=h},iUHT:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function p(S,E){for(var C=0;C<E.length;C++){var _=E[C];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}function x(S,E,C){return E&&p(S.prototype,E),C&&p(S,C),S}var A=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=0,h,u,a,i,t,o;h=1<<16,u=1<<24,a=h|u,i=1<<2,t=1<<10,o=i|t;var e=[a|t,f|f,h|f,a|o,a|i,h|o,f|i,h|f,f|t,a|t,a|o,f|t,u|o,a|i,u|f,f|i,f|o,u|t,u|t,h|t,h|t,a|f,a|f,u|o,h|i,u|i,u|i,h|i,f|f,f|o,h|o,u|f,h|f,a|o,f|i,a|f,a|t,u|f,u|f,f|t,a|i,h|f,h|t,u|i,f|t,f|i,u|o,h|o,a|o,h|i,a|f,u|o,u|i,f|o,h|o,a|t,f|o,u|t,u|t,f|f,h|i,h|t,f|f,a|i];h=1<<20,u=1<<31,a=h|u,i=1<<5,t=1<<15,o=i|t;var l=[a|o,u|t,f|t,h|o,h|f,f|i,a|i,u|o,u|i,a|o,a|t,u|f,u|t,h|f,f|i,a|i,h|t,h|i,u|o,f|f,u|f,f|t,h|o,a|f,h|i,u|i,f|f,h|t,f|o,a|t,a|f,f|o,f|f,h|o,a|i,h|f,u|o,a|f,a|t,f|t,a|f,u|t,f|i,a|o,h|o,f|i,f|t,u|f,f|o,a|t,h|f,u|i,h|i,u|o,u|i,h|i,h|t,f|f,u|t,f|o,u|f,a|i,a|o,h|t];h=1<<17,u=1<<27,a=h|u,i=1<<3,t=1<<9,o=i|t;var r=[f|o,a|t,f|f,a|i,u|t,f|f,h|o,u|t,h|i,u|i,u|i,h|f,a|o,h|i,a|f,f|o,u|f,f|i,a|t,f|t,h|t,a|f,a|i,h|o,u|o,h|t,h|f,u|o,f|i,a|o,f|t,u|f,a|t,u|f,h|i,f|o,h|f,a|t,u|t,f|f,f|t,h|i,a|o,u|t,u|i,f|t,f|f,a|i,u|o,h|f,u|f,a|o,f|i,h|o,h|t,u|i,a|f,u|o,f|o,a|f,h|o,f|i,a|i,h|t];h=1<<13,u=1<<23,a=h|u,i=1<<0,t=1<<7,o=i|t;var s=[a|i,h|o,h|o,f|t,a|t,u|o,u|i,h|i,f|f,a|f,a|f,a|o,f|o,f|f,u|t,u|i,f|i,h|f,u|f,a|i,f|t,u|f,h|i,h|t,u|o,f|i,h|t,u|t,h|f,a|t,a|o,f|o,u|t,u|i,a|f,a|o,f|o,f|f,f|f,a|f,h|t,u|t,u|o,f|i,a|i,h|o,h|o,f|t,a|o,f|o,f|i,h|f,u|i,h|i,a|t,u|o,h|i,h|t,u|f,a|i,f|t,u|f,h|f,a|t];h=1<<25,u=1<<30,a=h|u,i=1<<8,t=1<<19,o=i|t;var c=[f|i,h|o,h|t,a|i,f|t,f|i,u|f,h|t,u|o,f|t,h|i,u|o,a|i,a|t,f|o,u|f,h|f,u|t,u|t,f|f,u|i,a|o,a|o,h|i,a|t,u|i,f|f,a|f,h|o,h|f,a|f,f|o,f|t,a|i,f|i,h|f,u|f,h|t,a|i,u|o,h|i,u|f,a|t,h|o,u|o,f|i,h|f,a|t,a|o,f|o,a|f,a|o,h|t,f|f,u|t,a|f,f|o,h|i,u|i,f|t,f|f,u|t,h|o,u|i];h=1<<22,u=1<<29,a=h|u,i=1<<4,t=1<<14,o=i|t;var d=[u|i,a|f,f|t,a|o,a|f,f|i,a|o,h|f,u|t,h|o,h|f,u|i,h|i,u|t,u|f,f|o,f|f,h|i,u|o,f|t,h|t,u|o,f|i,a|i,a|i,f|f,h|o,a|t,f|o,h|t,a|t,u|f,u|t,f|i,a|i,h|t,a|o,h|f,f|o,u|i,h|f,u|t,u|f,f|o,u|i,a|o,h|t,a|f,h|o,a|t,f|f,a|i,f|i,f|t,a|f,h|o,f|t,h|i,u|o,f|f,a|t,u|f,h|i,u|o];h=1<<21,u=1<<26,a=h|u,i=1<<1,t=1<<11,o=i|t;var g=[h|f,a|i,u|o,f|f,f|t,u|o,h|o,a|t,a|o,h|f,f|f,u|i,f|i,u|f,a|i,f|o,u|t,h|o,h|i,u|t,u|i,a|f,a|t,h|i,a|f,f|t,f|o,a|o,h|t,f|i,u|f,h|t,u|f,h|t,h|f,u|o,u|o,a|i,a|i,f|i,h|i,u|f,u|t,h|f,a|t,f|o,h|o,a|t,f|o,u|i,a|o,a|f,h|t,f|f,f|i,a|o,f|f,h|o,a|f,f|t,u|i,u|t,f|t,h|i];h=1<<18,u=1<<28,a=h|u,i=1<<6,t=1<<12,o=i|t;var v=[u|o,f|t,h|f,a|o,u|f,u|o,f|i,u|f,h|i,a|f,a|o,h|t,a|t,h|o,f|t,f|i,a|f,u|i,u|t,f|o,h|t,h|i,a|i,a|t,f|o,f|f,f|f,a|i,u|i,u|t,h|o,h|f,h|o,h|f,a|t,f|t,f|i,a|i,f|t,h|o,u|t,f|i,u|i,a|f,a|i,u|f,h|f,u|o,f|f,a|o,h|i,u|i,a|f,u|t,u|o,f|f,a|o,h|t,h|t,f|o,f|o,h|i,u|f,a|t],b=function(){function S(E){y(this,S),this.keys=[];for(var C=[],_=[],T=[],w=0,O=56;w<56;++w,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;C[w]=(E[O>>>3]&1<<I)!==0?1:0}for(var R=0;R<16;++R){var M=R<<1,F=M+1;T[M]=T[F]=0;for(var P=28;P<59;P+=28)for(var X=P-28;X<P;++X){var B=X+m[R];_[X]=B<P?C[B]:C[B-28]}for(var j=0;j<24;++j)_[A[j]]!==0&&(T[M]|=1<<23-j),_[A[j+24]]!==0&&(T[F]|=1<<23-j)}for(var W=0,z=0,V=0;W<16;++W){var Q=T[z++],G=T[z++];this.keys[V]=(Q&16515072)<<6,this.keys[V]|=(Q&4032)<<10,this.keys[V]|=(G&16515072)>>>10,this.keys[V]|=(G&4032)>>>6,++V,this.keys[V]=(Q&258048)<<12,this.keys[V]|=(Q&63)<<16,this.keys[V]|=(G&258048)>>>4,this.keys[V]|=G&63,++V}}return x(S,[{key:"enc8",value:function(C){var _=C.slice(),T=0,w,O,I;w=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],O=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],I=(w>>>4^O)&252645135,O^=I,w^=I<<4,I=(w>>>16^O)&65535,O^=I,w^=I<<16,I=(O>>>2^w)&858993459,w^=I,O^=I<<2,I=(O>>>8^w)&16711935,w^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<1|w>>>31&1;for(var R=0,M=0;R<8;++R){I=O<<28|O>>>4,I^=this.keys[M++];var F=g[I&63];F|=c[I>>>8&63],F|=r[I>>>16&63],F|=e[I>>>24&63],I=O^this.keys[M++],F|=v[I&63],F|=d[I>>>8&63],F|=s[I>>>16&63],F|=l[I>>>24&63],w^=F,I=w<<28|w>>>4,I^=this.keys[M++],F=g[I&63],F|=c[I>>>8&63],F|=r[I>>>16&63],F|=e[I>>>24&63],I=w^this.keys[M++],F|=v[I&63],F|=d[I>>>8&63],F|=s[I>>>16&63],F|=l[I>>>24&63],O^=F}for(O=O<<31|O>>>1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<31|w>>>1,I=(w>>>8^O)&16711935,O^=I,w^=I<<8,I=(w>>>2^O)&858993459,O^=I,w^=I<<2,I=(O>>>16^w)&65535,w^=I,O^=I<<16,I=(O>>>4^w)&252645135,w^=I,O^=I<<4,I=[O,w],T=0;T<8;T++)_[T]=(I[T>>>2]>>>8*(3-T%4))%256,_[T]<0&&(_[T]+=256);return _}},{key:"encrypt",value:function(C){return this.enc8(C.slice(0,8)).concat(this.enc8(C.slice(8,16)))}}]),S}();D.default=b},iXHM:function(k,D){var n="";typeof navigator!="undefined"&&(n=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.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,n){var y=n("ItGF"),p=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function x(A){return y.browser.ie&&y.browser.version>=11?function(){var m=this.__clipPaths,f=this.style,h;if(m)for(var u=0;u<m.length;u++){var a=m[u],i=a&&a.shape,t=a&&a.type;if(i&&(t==="sector"&&i.startAngle===i.endAngle||t==="rect"&&(!i.width||!i.height))){for(var o=0;o<p.length;o++)p[o][2]=f[p[o][0]],f[p[o][0]]=p[o][1];h=!0;break}}if(A.apply(this,arguments),h)for(var o=0;o<p.length;o++)f[p[o][0]]=p[o][2]}:A}k.exports=x},iYpf:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("ZLWo")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="FolderOpenOutlined";var i=A.forwardRef(a);D.default=i},ieMj:function(k,D,n){var y=n("OELB"),p=n("7aKB"),x=n("4NgU"),A=n("lE7J"),m=y.round,f=x.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(u,a){var i=this._extent;isNaN(u)||(i[0]=parseFloat(u)),isNaN(a)||(i[1]=parseFloat(a))},unionExtent:function(u){var a=this._extent;u[0]<a[0]&&(a[0]=u[0]),u[1]>a[1]&&(a[1]=u[1]),f.prototype.setExtent.call(this,a[0],a[1])},getInterval:function(){return this._interval},setInterval:function(u){this._interval=u,this._niceExtent=this._extent.slice(),this._intervalPrecision=A.getIntervalPrecision(u)},getTicks:function(u){var a=this._interval,i=this._extent,t=this._niceExtent,o=this._intervalPrecision,e=[];if(!a)return e;var l=1e4;i[0]<t[0]&&(u?e.push(m(t[0]-a,o)):e.push(i[0]));for(var r=t[0];r<=t[1]&&!(e.push(r),r=m(r+a,o),r===e[e.length-1]);)if(e.length>l)return[];var s=e.length?e[e.length-1]:t[1];return i[1]>s&&(u?e.push(m(s+a,o)):e.push(i[1])),e},getMinorTicks:function(u){for(var a=this.getTicks(!0),i=[],t=this.getExtent(),o=1;o<a.length;o++){for(var e=a[o],l=a[o-1],r=0,s=[],c=e-l,d=c/u;r<u-1;){var g=y.round(l+(r+1)*d);g>t[0]&&g<t[1]&&s.push(g),r++}i.push(s)}return i},getLabel:function(u,a){if(u==null)return"";var i=a&&a.precision;return i==null?i=y.getPrecisionSafe(u)||0:i==="auto"&&(i=this._intervalPrecision),u=m(u,i,!0),p.addCommas(u)},niceTicks:function(u,a,i){u=u||5;var t=this._extent,o=t[1]-t[0];if(!isFinite(o))return;o<0&&(o=-o,t.reverse());var e=A.intervalScaleNiceTicks(t,u,a,i);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(u){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var i=a[0];u.fixMax||(a[1]+=i/2),a[0]-=i/2}else a[1]=1;var t=a[1]-a[0];isFinite(t)||(a[0]=0,a[1]=1),this.niceTicks(u.splitNumber,u.minInterval,u.maxInterval);var o=this._interval;u.fixMin||(a[0]=m(Math.floor(a[0]/o)*o)),u.fixMax||(a[1]=m(Math.ceil(a[1]/o)*o))}});f.create=function(){return new f};var h=f;k.exports=h},j5sG:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=p(n("NohK"));function p(A){return A&&A.__esModule?A:{default:A}}var x=function(m){var f=void 0,h=[],u=(0,y.default)(function(){h.forEach(function(e){e(m)})}),a=function(){var l=new ResizeObserver(u);return l.observe(m),u(),l},i=function(l){f||(f=a()),h.indexOf(l)===-1&&h.push(l)},t=function(){f.disconnect(),h=[],f=void 0},o=function(l){var r=h.indexOf(l);r!==-1&&h.splice(r,1),h.length===0&&f&&t()};return{element:m,bind:i,destroy:t,unbind:o}};D.createSensor=x},jCoz:function(k,D,n){var y=n("bYtY"),p=n("4NgU"),x=n("OELB"),A=n("ieMj"),m=p.prototype,f=A.prototype,h=x.getPrecisionSafe,u=x.round,a=Math.floor,i=Math.ceil,t=Math.pow,o=Math.log,e=p.extend({type:"log",base:10,$constructor:function(){p.apply(this,arguments),this._originalScale=new A},getTicks:function(s){var c=this._originalScale,d=this._extent,g=c.getExtent();return y.map(f.getTicks.call(this,s),function(v){var b=x.round(t(this.base,v));return b=v===d[0]&&c.__fixMin?l(b,g[0]):b,b=v===d[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 d=this.base;s=o(s)/o(d),c=o(c)/o(d),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 d=this._originalScale,g=d.getExtent();return d.__fixMin&&(c[0]=l(c[0],g[0])),d.__fixMax&&(c[1]=l(c[1],g[1])),c},unionExtent:function(s){this._originalScale.unionExtent(s);var c=this.base;s[0]=o(s[0])/o(c),s[1]=o(s[1])/o(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,d=c[1]-c[0];if(d===Infinity||d<=0)return;var g=x.quantity(d),v=s/d*g;for(v<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[x.round(i(c[0]/g)*g),x.round(a(c[1]/g)*g)];this._interval=g,this._niceExtent=b},niceExtent:function(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=o(c)/o(this.base),m[s].call(this,c)}}),e.create=function(){return new e};function l(s,c){return u(s,h(c))}var r=e;k.exports=r},jN4g:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CloseCircleFilled";var h=D.a=p.forwardRef(f)},jO45:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="CheckCircleFilled";var h=D.a=p.forwardRef(f)},jO9C:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(x,A){x.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(x,A)},unpad:function(x){y.pad.ZeroPadding.unpad(x),x.sigBytes--}},y.pad.Iso97971})},jTL6:function(k,D,n){var y=n("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(A,m){var f=m.cx,h=m.cy,u=Math.max(m.r,0),a=m.startAngle,i=m.endAngle,t=m.clockwise,o=Math.cos(a),e=Math.sin(a);A.moveTo(o*u+f,e*u+h),A.arc(f,h,u,a,i,!t)}});k.exports=p},je13:function(k,D,n){var y=n("5nXd"),p=n("gRFJ"),x=[n("uQRt")];k.exports=y.createStore(p,x)},jett:function(k,D,n){var y=n("ProS");n("VSLf"),n("oBaM"),n("FGaS");var p=n("mOdp"),x=n("f5Yq"),A=n("hw6D"),m=n("0/Rx"),f=n("eJH7");y.registerVisual(p("radar")),y.registerVisual(x("radar","circle")),y.registerLayout(A),y.registerProcessor(m("radar")),y.registerPreprocessor(f)},jhfD:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ArrowLeftOutlined";var h=D.a=p.forwardRef(f)},jkPA:function(k,D,n){var y=n("bYtY"),p=y.createHashMap,x=y.isObject,A=y.map;function m(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this._map}m.createByAxisModel=function(i){var t=i.option,o=t.data,e=o&&A(o,u);return new m({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var f=m.prototype;f.getOrdinal=function(i){return h(this).get(i)},f.parseAndCollect=function(i){var t,o=this._needCollect;if(typeof i!="string"&&!o)return i;if(o&&!this._deduplication)return t=this.categories.length,this.categories[t]=i,t;var e=h(this);return t=e.get(i),t==null&&(o?(t=this.categories.length,this.categories[t]=i,e.set(i,t)):t=NaN),t};function h(i){return i._map||(i._map=p(i.categories))}function u(i){return x(i)&&i.value!=null?i.value:i+""}var a=m;k.exports=a},jndi:function(k,D,n){var y=n("bYtY"),p=n("Qe9p"),x=n("YXkt"),A=n("OELB"),m=n("IwbS"),f=n("kj2x"),h=n("iPDy"),u=function(r,s,c,d){var g=f.dataTransform(r,d[0]),v=f.dataTransform(r,d[1]),b=y.retrieve,S=g.coord,E=v.coord;S[0]=b(S[0],-Infinity),S[1]=b(S[1],-Infinity),E[0]=b(E[0],Infinity),E[1]=b(E[1],Infinity);var C=y.mergeAll([{},g,v]);return C.coord=[g.coord,v.coord],C.x0=g.x,C.y0=g.y,C.x1=v.x,C.y1=v.y,C};function a(r){return!isNaN(r)&&!isFinite(r)}function i(r,s,c,d){var g=1-r;return a(s[g])&&a(c[g])}function t(r,s){var c=s.coord[0],d=s.coord[1];return r.type==="cartesian2d"&&(c&&d&&(i(1,c,d,r)||i(0,c,d,r)))?!0:f.dataFilter(r,{coord:c,x:s.x0,y:s.y0})||f.dataFilter(r,{coord:d,x:s.x1,y:s.y1})}function o(r,s,c,d,g){var v=d.coordinateSystem,b=r.getItemModel(s),S,E=A.parsePercent(b.get(c[0]),g.getWidth()),C=A.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(E)&&!isNaN(C))S=[E,C];else{if(d.getMarkerPosition)S=d.getMarkerPosition(r.getValues(c,s));else{var _=r.get(c[0],s),T=r.get(c[1],s),w=[_,T];v.clampData&&v.clampData(w,w),S=v.dataToPoint(w,!0)}if(v.type==="cartesian2d"){var O=v.getAxis("x"),I=v.getAxis("y"),_=r.get(c[0],s),T=r.get(c[1],s);a(_)?S[0]=O.toGlobalCoord(O.getExtent()[c[0]==="x0"?0:1]):a(T)&&(S[1]=I.toGlobalCoord(I.getExtent()[c[1]==="y0"?0:1]))}isNaN(E)||(S[0]=E),isNaN(C)||(S[1]=C)}return S}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];h.extend({type:"markArea",updateTransform:function(r,s,c){s.eachSeries(function(d){var g=d.markAreaModel;if(g){var v=g.getData();v.each(function(b){var S=y.map(e,function(C){return o(v,b,C,d,c)});v.setItemLayout(b,S);var E=v.getItemGraphicEl(b);E.setShape("points",S)})}},this)},renderSeries:function(r,s,c,d){var g=r.coordinateSystem,v=r.id,b=r.getData(),S=this.markerGroupMap,E=S.get(v)||S.set(v,{group:new m.Group});this.group.add(E.group),E.__keep=!0;var C=l(g,r,s);s.setData(C),C.each(function(_){C.setItemLayout(_,y.map(e,function(T){return o(C,_,T,r,d)})),C.setItemVisual(_,{color:b.getVisual("color")})}),C.diff(E.__data).add(function(_){var T=new m.Polygon({shape:{points:C.getItemLayout(_)}});C.setItemGraphicEl(_,T),E.group.add(T)}).update(function(_,T){var w=E.__data.getItemGraphicEl(T);m.updateProps(w,{shape:{points:C.getItemLayout(_)}},s,_),E.group.add(w),C.setItemGraphicEl(_,w)}).remove(function(_){var T=E.__data.getItemGraphicEl(_);E.group.remove(T)}).execute(),C.eachItemGraphicEl(function(_,T){var w=C.getItemModel(T),O=w.getModel("label"),I=w.getModel("emphasis.label"),R=C.getItemVisual(T,"color");_.useStyle(y.defaults(w.getModel("itemStyle").getItemStyle(),{fill:p.modifyAlpha(R,.4),stroke:R})),_.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(_.style,_.hoverStyle,O,I,{labelFetcher:s,labelDataIndex:T,defaultText:C.getName(T)||"",isRectText:!0,autoColor:R}),m.setHoverStyle(_,{}),_.dataModel=s}),E.__data=C,E.group.silent=s.get("silent")||r.get("silent")}});function l(r,s,c){var d,g,v=["x0","y0","x1","y1"];r?(d=y.map(r&&r.dimensions,function(E){var C=s.getData(),_=C.getDimensionInfo(C.mapDimension(E))||{};return y.defaults({name:E},_)}),g=new x(y.map(v,function(E,C){return{name:E,type:d[C%2].type}}),c)):(d=[{name:"value",type:"float"}],g=new x(d,c));var b=y.map(c.get("data"),y.curry(u,s,r,c));r&&(b=y.filter(b,y.curry(t,r)));var S=r?function(E,C,_,T){return E.coord[Math.floor(T/2)][T%2]}:function(E){return E.value};return g.initData(b,null,S),g.hasItemOption=!0,g}},"jsU+":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IUWy"),A=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){A.superApply(this,"optionUpdated",arguments),p.each(this.option.feature,function(f,h){var u=x.get(h);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=A;k.exports=m},jtI2:function(k,D,n){n("SMc4");var y=n("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,n){n("P47w");var y=n("aX58"),p=y.registerPainter,x=n("3CBa");p("svg",x)},"k+1r":function(k,D,n){var y=n("QkVE");function p(x){var A=y(this,x).delete(x);return this.size-=A?1:0,A}k.exports=p},k5C7:function(k,D,n){n("0JAE"),n("g7p0"),n("7mYs")},k9D9:function(k,D){var n="original",y="arrayRows",p="objectRows",x="keyedColumns",A="unknown",m="typedArray",f="column",h="row";D.SOURCE_FORMAT_ORIGINAL=n,D.SOURCE_FORMAT_ARRAY_ROWS=y,D.SOURCE_FORMAT_OBJECT_ROWS=p,D.SOURCE_FORMAT_KEYED_COLUMNS=x,D.SOURCE_FORMAT_UNKNOWN=A,D.SOURCE_FORMAT_TYPED_ARRAY=m,D.SERIES_LAYOUT_BY_COLUMN=f,D.SERIES_LAYOUT_BY_ROW=h},kDyi:function(k,D){function n(y){var p=y.findComponents({mainType:"legend"});p&&p.length&&y.filterSeries(function(x){for(var A=0;A<p.length;A++)if(!p[A].isSelected(x.name))return!1;return!0})}k.exports=n},kGiB:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("ABKa"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},kMLO:function(k,D,n){var y=n("XxSj"),p=n("Qe9p"),x=n("bYtY"),A=x.isArray,m="itemStyle",f={seriesType:"treemap",reset:function(r,s,c,d){var g=r.getData().tree,v=g.root,b=r.getModel(m);if(v.isRemoved())return;var S=x.map(g.levelModels,function(E){return E?E.get(m):null});h(v,{},S,b,r.getViewRoot().getAncestors(),r)}};function h(r,s,c,d,g,v){var b=r.getModel(),S=r.getLayout();if(!S||S.invisible||!S.isInView)return;var E=r.getModel(m),C=c[r.depth],_=u(E,s,C,d),T=E.get("borderColor"),w=E.get("borderColorSaturation"),O;w!=null&&(O=a(_,r),T=i(w,O)),r.setVisual("borderColor",T);var I=r.viewChildren;if(!I||!I.length)O=a(_,r),r.setVisual("color",O);else{var R=o(r,b,S,E,_,I);x.each(I,function(M,F){if(M.depth>=g.length||M===g[M.depth]){var P=l(b,_,M,F,R,v);h(M,P,c,d,g,v)}})}}function u(r,s,c,d){var g=x.extend({},s);return x.each(["color","colorAlpha","colorSaturation"],function(v){var b=r.get(v,!0);b==null&&c&&(b=c[v]),b==null&&(b=s[v]),b==null&&(b=d.get(v)),b!=null&&(g[v]=b)}),g}function a(r){var s=t(r,"color");if(s){var c=t(r,"colorAlpha"),d=t(r,"colorSaturation");return d&&(s=p.modifyHSL(s,null,null,d)),c&&(s=p.modifyAlpha(s,c)),s}}function i(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 o(r,s,c,d,g,v){if(!v||!v.length)return;var b=e(s,"color")||g.color!=null&&g.color!=="none"&&(e(s,"colorAlpha")||e(s,"colorSaturation"));if(!b)return;var S=s.get("visualMin"),E=s.get("visualMax"),C=c.dataExtent.slice();S!=null&&S<C[0]&&(C[0]=S),E!=null&&E>C[1]&&(C[1]=E);var _=s.get("colorMappingBy"),T={type:b.name,dataExtent:C,visual:b.range};T.type==="color"&&(_==="index"||_==="id")?(T.mappingMethod="category",T.loop=!0):T.mappingMethod="linear";var w=new y(T);return w.__drColorMappingBy=_,w}function e(r,s){var c=r.get(s);return A(c)&&c.length?{name:s,range:c}:null}function l(r,s,c,d,g,v){var b=x.extend({},s);if(g){var S=g.type,E=S==="color"&&g.__drColorMappingBy,C=E==="index"?d:E==="id"?v.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[S]=g.mapValueToVisual(C)}return b}k.exports=f},"kVK+":function(k,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(n,y,p,x,A){var m,f,h=A*8-x-1,u=(1<<h)-1,a=u>>1,i=-7,t=p?A-1:0,o=p?-1:1,e=n[y+t];for(t+=o,m=e&(1<<-i)-1,e>>=-i,i+=h;i>0;m=m*256+n[y+t],t+=o,i-=8);for(f=m&(1<<-i)-1,m>>=-i,i+=x;i>0;f=f*256+n[y+t],t+=o,i-=8);if(m===0)m=1-a;else{if(m===u)return f?NaN:(e?-1:1)*Infinity;f=f+Math.pow(2,x),m=m-a}return(e?-1:1)*f*Math.pow(2,m-x)},D.write=function(n,y,p,x,A,m){var f,h,u,a=m*8-A-1,i=(1<<a)-1,t=i>>1,o=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=x?0:m-1,l=x?1:-1,r=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===Infinity?(h=isNaN(y)?1:0,f=i):(f=Math.floor(Math.log(y)/Math.LN2),y*(u=Math.pow(2,-f))<1&&(f--,u*=2),f+t>=1?y+=o/u:y+=o*Math.pow(2,1-t),y*u>=2&&(f++,u/=2),f+t>=i?(h=0,f=i):f+t>=1?(h=(y*u-1)*Math.pow(2,A),f=f+t):(h=y*Math.pow(2,t-1)*Math.pow(2,A),f=0));A>=8;n[p+e]=h&255,e+=l,h/=256,A-=8);for(f=f<<A|h,a+=A;a>0;n[p+e]=f&255,e+=l,f/=256,a-=8);n[p+e-l]|=r*128}},kekF:function(k,D){function n(y,p){return function(x){return y(p(x))}}k.exports=n},kj2x:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("7hqr"),A=x.isDimensionStacked,m=y.indexOf;function f(c){return!(isNaN(parseFloat(c.x))&&isNaN(parseFloat(c.y)))}function h(c){return!isNaN(parseFloat(c.x))&&!isNaN(parseFloat(c.y))}function u(c,d,g,v,b,S){var E=[],C=A(d,v),_=C?d.getCalculationInfo("stackResultDimension"):v,T=s(d,_,c),w=d.indicesOfNearest(_,T)[0];E[b]=d.get(g,w),E[S]=d.get(_,w);var O=d.get(v,w),I=p.getPrecision(d.get(v,w));return I=Math.min(I,20),I>=0&&(E[S]=+E[S].toFixed(I)),[E,O]}var a=y.curry,i={min:a(u,"min"),max:a(u,"max"),average:a(u,"average")};function t(c,d){var g=c.getData(),v=c.coordinateSystem;if(d&&!h(d)&&!y.isArray(d.coord)&&v){var b=v.dimensions,S=o(d,g,v,c);if(d=y.clone(d),d.type&&i[d.type]&&S.baseAxis&&S.valueAxis){var E=m(b,S.baseAxis.dim),C=m(b,S.valueAxis.dim),_=i[d.type](g,S.baseDataDim,S.valueDataDim,E,C);d.coord=_[0],d.value=_[1]}else{for(var T=[d.xAxis!=null?d.xAxis:d.radiusAxis,d.yAxis!=null?d.yAxis:d.angleAxis],w=0;w<2;w++)i[T[w]]&&(T[w]=s(g,g.mapDimension(b[w]),T[w]));d.coord=T}}return d}function o(c,d,g,v){var b={};return c.valueIndex!=null||c.valueDim!=null?(b.valueDataDim=c.valueIndex!=null?d.getDimension(c.valueIndex):c.valueDim,b.valueAxis=g.getAxis(e(v,b.valueDataDim)),b.baseAxis=g.getOtherAxis(b.valueAxis),b.baseDataDim=d.mapDimension(b.baseAxis.dim)):(b.baseAxis=v.getBaseAxis(),b.valueAxis=g.getOtherAxis(b.baseAxis),b.baseDataDim=d.mapDimension(b.baseAxis.dim),b.valueDataDim=d.mapDimension(b.valueAxis.dim)),b}function e(c,d){var g=c.getData(),v=g.dimensions;d=g.getDimension(d);for(var b=0;b<v.length;b++){var S=g.getDimensionInfo(v[b]);if(S.name===d)return S.coordDim}}function l(c,d){return c&&c.containData&&d.coord&&!f(d)?c.containData(d.coord):!0}function r(c,d,g,v){return v<2?c.coord&&c.coord[v]:c.value}function s(c,d,g){if(g==="average"){var v=0,b=0;return c.each(d,function(S,E){isNaN(S)||(v+=S,b++)}),v/b}else return g==="median"?c.getMedian(d):c.getDataExtent(d,!0)[g==="max"?1:0]}D.dataTransform=t,D.getAxisInfo=o,D.dataFilter=l,D.dimValueGetter=r,D.numCalculate=s},knOB:function(k,D,n){var y=n("bYtY"),p=n("hM6l");function x(m,f){p.call(this,"radius",m,f),this.type="category"}x.prototype={constructor:x,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(x,p);var A=x;k.exports=A},ko1b:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("Bsck"),A=n("Qxkt"),m=n("7aKB"),f=m.encodeHTML,h=m.addCommas,u=n("VaxA"),a=u.wrapTreePathInfo,i=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=o(s,l);var c=y.map(s||[],function(v){return new A(v,this,l)},this),d=x.createTree(r,this,null,g);function g(v){v.wrapMethod("getItemModel",function(b,S){var E=d.getNodeByDataIndex(S),C=c[E.depth];return C&&(b.parentModel=C),b})}return d.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),r=this.getRawValue(e),s=y.isArray(r)?h(r[0]):h(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=a(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 o(e,l){var r=l.get("color");if(!r)return;e=e||[];var s;if(y.each(e,function(d){var g=new A(d),v=g.get("color");(g.get("itemStyle.color")||v&&v!=="none")&&(s=!0)}),!s){var c=e[0]||(e[0]={});c.color=r.slice()}return e}k.exports=i},kzFp:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=D.pick=function(x,A){var m={};return A.forEach(function(f){m[f]=x[f]}),m}},kzvK:function(k,D,n){var y=n("sS/r"),p=y.extend({type:"timeline"});k.exports=p},"l+S1":function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="SearchOutlined";var h=D.a=p.forwardRef(f)},lE7J:function(k,D,n){var y=n("OELB"),p=y.round;function x(h,u,a,i){var t={},o=h[1]-h[0],e=t.interval=y.nice(o/u,!0);a!=null&&e<a&&(e=t.interval=a),i!=null&&e>i&&(e=t.interval=i);var l=t.intervalPrecision=A(e),r=t.niceTickExtent=[p(Math.ceil(h[0]/e)*e,l),p(Math.floor(h[1]/e)*e,l)];return f(r,h),t}function A(h){return y.getPrecisionSafe(h)+2}function m(h,u,a){h[u]=Math.max(Math.min(h[u],a[1]),a[0])}function f(h,u){!isFinite(h[0])&&(h[0]=u[0]),!isFinite(h[1])&&(h[1]=u[1]),m(h,0,u),m(h,1,u),h[0]>h[1]&&(h[0]=h[1])}D.intervalScaleNiceTicks=x,D.getIntervalPrecision=A,D.fixExtent=f},lELe:function(k,D,n){var y=n("bYtY");function p(x){var A=[];y.each(x.series,function(m){m&&m.type==="map"&&(A.push(m),m.map=m.map||m.mapType,y.defaults(m,m.mapLocation))})}k.exports=p},lLGD:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("nVfU"),A=x.layout,m=x.largeLayout;n("Wqna"),n("F7hV"),n("Z8zF"),n("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,p.curry(A,"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,n){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(ee){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ue){return typeof ue}:function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},y(ee)}var p=/^\s+/,x=/\s+$/;function A(ee,ue){if(ee=ee||"",ue=ue||{},ee instanceof A)return ee;if(!(this instanceof A))return new A(ee,ue);var $=m(ee);this._originalInput=ee,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=Math.round(100*this._a)/100,this._format=ue.format||$.format,this._gradientType=ue.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=$.ok}A.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 ue=this.toRgb();return(ue.r*299+ue.g*587+ue.b*114)/1e3},getLuminance:function(){var ue=this.toRgb(),$,be,_e,Ee,Xe,He;return $=ue.r/255,be=ue.g/255,_e=ue.b/255,$<=.03928?Ee=$/12.92:Ee=Math.pow(($+.055)/1.055,2.4),be<=.03928?Xe=be/12.92:Xe=Math.pow((be+.055)/1.055,2.4),_e<=.03928?He=_e/12.92:He=Math.pow((_e+.055)/1.055,2.4),.2126*Ee+.7152*Xe+.0722*He},setAlpha:function(ue){return this._a=I(ue),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var ue=a(this._r,this._g,this._b);return{h:ue.h*360,s:ue.s,v:ue.v,a:this._a}},toHsvString:function(){var ue=a(this._r,this._g,this._b),$=Math.round(ue.h*360),be=Math.round(ue.s*100),_e=Math.round(ue.v*100);return this._a==1?"hsv("+$+", "+be+"%, "+_e+"%)":"hsva("+$+", "+be+"%, "+_e+"%, "+this._roundA+")"},toHsl:function(){var ue=h(this._r,this._g,this._b);return{h:ue.h*360,s:ue.s,l:ue.l,a:this._a}},toHslString:function(){var ue=h(this._r,this._g,this._b),$=Math.round(ue.h*360),be=Math.round(ue.s*100),_e=Math.round(ue.l*100);return this._a==1?"hsl("+$+", "+be+"%, "+_e+"%)":"hsla("+$+", "+be+"%, "+_e+"%, "+this._roundA+")"},toHex:function(ue){return t(this._r,this._g,this._b,ue)},toHexString:function(ue){return"#"+this.toHex(ue)},toHex8:function(ue){return o(this._r,this._g,this._b,this._a,ue)},toHex8String:function(ue){return"#"+this.toHex8(ue)},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(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:w[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(ue){var $="#"+e(this._r,this._g,this._b,this._a),be=$,_e=this._gradientType?"GradientType = 1, ":"";if(ue){var Ee=A(ue);be="#"+e(Ee._r,Ee._g,Ee._b,Ee._a)}return"progid:DXImageTransform.Microsoft.gradient("+_e+"startColorstr="+$+",endColorstr="+be+")"},toString:function(ue){var $=!!ue;ue=ue||this._format;var be=!1,_e=this._a<1&&this._a>=0,Ee=!$&&_e&&(ue==="hex"||ue==="hex6"||ue==="hex3"||ue==="hex4"||ue==="hex8"||ue==="name");return Ee?ue==="name"&&this._a===0?this.toName():this.toRgbString():(ue==="rgb"&&(be=this.toRgbString()),ue==="prgb"&&(be=this.toPercentageRgbString()),(ue==="hex"||ue==="hex6")&&(be=this.toHexString()),ue==="hex3"&&(be=this.toHexString(!0)),ue==="hex4"&&(be=this.toHex8String(!0)),ue==="hex8"&&(be=this.toHex8String()),ue==="name"&&(be=this.toName()),ue==="hsl"&&(be=this.toHslString()),ue==="hsv"&&(be=this.toHsvString()),be||this.toHexString())},clone:function(){return A(this.toString())},_applyModification:function(ue,$){var be=ue.apply(null,[this].concat([].slice.call($)));return this._r=be._r,this._g=be._g,this._b=be._b,this.setAlpha(be._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(d,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(v,arguments)},_applyCombination:function(ue,$){return ue.apply(null,[this].concat([].slice.call($)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(_,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(S,[3])},tetrad:function(){return this._applyCombination(S,[4])}},A.fromRatio=function(ee,ue){if(y(ee)=="object"){var $={};for(var be in ee)ee.hasOwnProperty(be)&&(be==="a"?$[be]=ee[be]:$[be]=j(ee[be]));ee=$}return A(ee,ue)};function m(ee){var ue={r:0,g:0,b:0},$=1,be=null,_e=null,Ee=null,Xe=!1,He=!1;return typeof ee=="string"&&(ee=G(ee)),y(ee)=="object"&&(Q(ee.r)&&Q(ee.g)&&Q(ee.b)?(ue=f(ee.r,ee.g,ee.b),Xe=!0,He=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):Q(ee.h)&&Q(ee.s)&&Q(ee.v)?(be=j(ee.s),_e=j(ee.v),ue=i(ee.h,be,_e),Xe=!0,He="hsv"):Q(ee.h)&&Q(ee.s)&&Q(ee.l)&&(be=j(ee.s),Ee=j(ee.l),ue=u(ee.h,be,Ee),Xe=!0,He="hsl"),ee.hasOwnProperty("a")&&($=ee.a)),$=I($),{ok:Xe,format:ee.format||He,r:Math.min(255,Math.max(ue.r,0)),g:Math.min(255,Math.max(ue.g,0)),b:Math.min(255,Math.max(ue.b,0)),a:$}}function f(ee,ue,$){return{r:R(ee,255)*255,g:R(ue,255)*255,b:R($,255)*255}}function h(ee,ue,$){ee=R(ee,255),ue=R(ue,255),$=R($,255);var be=Math.max(ee,ue,$),_e=Math.min(ee,ue,$),Ee,Xe,He=(be+_e)/2;if(be==_e)Ee=Xe=0;else{var nt=be-_e;Xe=He>.5?nt/(2-be-_e):nt/(be+_e);switch(be){case ee:Ee=(ue-$)/nt+(ue<$?6:0);break;case ue:Ee=($-ee)/nt+2;break;case $:Ee=(ee-ue)/nt+4;break}Ee/=6}return{h:Ee,s:Xe,l:He}}function u(ee,ue,$){var be,_e,Ee;ee=R(ee,360),ue=R(ue,100),$=R($,100);function Xe(Ie,oe,ot){return ot<0&&(ot+=1),ot>1&&(ot-=1),ot<1/6?Ie+(oe-Ie)*6*ot:ot<1/2?oe:ot<2/3?Ie+(oe-Ie)*(2/3-ot)*6:Ie}if(ue===0)be=_e=Ee=$;else{var He=$<.5?$*(1+ue):$+ue-$*ue,nt=2*$-He;be=Xe(nt,He,ee+1/3),_e=Xe(nt,He,ee),Ee=Xe(nt,He,ee-1/3)}return{r:be*255,g:_e*255,b:Ee*255}}function a(ee,ue,$){ee=R(ee,255),ue=R(ue,255),$=R($,255);var be=Math.max(ee,ue,$),_e=Math.min(ee,ue,$),Ee,Xe,He=be,nt=be-_e;if(Xe=be===0?0:nt/be,be==_e)Ee=0;else{switch(be){case ee:Ee=(ue-$)/nt+(ue<$?6:0);break;case ue:Ee=($-ee)/nt+2;break;case $:Ee=(ee-ue)/nt+4;break}Ee/=6}return{h:Ee,s:Xe,v:He}}function i(ee,ue,$){ee=R(ee,360)*6,ue=R(ue,100),$=R($,100);var be=Math.floor(ee),_e=ee-be,Ee=$*(1-ue),Xe=$*(1-_e*ue),He=$*(1-(1-_e)*ue),nt=be%6,Ie=[$,Xe,Ee,Ee,He,$][nt],oe=[He,$,$,Xe,Ee,Ee][nt],ot=[Ee,Ee,He,$,$,Xe][nt];return{r:Ie*255,g:oe*255,b:ot*255}}function t(ee,ue,$,be){var _e=[B(Math.round(ee).toString(16)),B(Math.round(ue).toString(16)),B(Math.round($).toString(16))];return be&&_e[0].charAt(0)==_e[0].charAt(1)&&_e[1].charAt(0)==_e[1].charAt(1)&&_e[2].charAt(0)==_e[2].charAt(1)?_e[0].charAt(0)+_e[1].charAt(0)+_e[2].charAt(0):_e.join("")}function o(ee,ue,$,be,_e){var Ee=[B(Math.round(ee).toString(16)),B(Math.round(ue).toString(16)),B(Math.round($).toString(16)),B(W(be))];return _e&&Ee[0].charAt(0)==Ee[0].charAt(1)&&Ee[1].charAt(0)==Ee[1].charAt(1)&&Ee[2].charAt(0)==Ee[2].charAt(1)&&Ee[3].charAt(0)==Ee[3].charAt(1)?Ee[0].charAt(0)+Ee[1].charAt(0)+Ee[2].charAt(0)+Ee[3].charAt(0):Ee.join("")}function e(ee,ue,$,be){var _e=[B(W(be)),B(Math.round(ee).toString(16)),B(Math.round(ue).toString(16)),B(Math.round($).toString(16))];return _e.join("")}A.equals=function(ee,ue){return!ee||!ue?!1:A(ee).toRgbString()==A(ue).toRgbString()},A.random=function(){return A.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function l(ee,ue){ue=ue===0?0:ue||10;var $=A(ee).toHsl();return $.s-=ue/100,$.s=M($.s),A($)}function r(ee,ue){ue=ue===0?0:ue||10;var $=A(ee).toHsl();return $.s+=ue/100,$.s=M($.s),A($)}function s(ee){return A(ee).desaturate(100)}function c(ee,ue){ue=ue===0?0:ue||10;var $=A(ee).toHsl();return $.l+=ue/100,$.l=M($.l),A($)}function d(ee,ue){ue=ue===0?0:ue||10;var $=A(ee).toRgb();return $.r=Math.max(0,Math.min(255,$.r-Math.round(255*-(ue/100)))),$.g=Math.max(0,Math.min(255,$.g-Math.round(255*-(ue/100)))),$.b=Math.max(0,Math.min(255,$.b-Math.round(255*-(ue/100)))),A($)}function g(ee,ue){ue=ue===0?0:ue||10;var $=A(ee).toHsl();return $.l-=ue/100,$.l=M($.l),A($)}function v(ee,ue){var $=A(ee).toHsl(),be=($.h+ue)%360;return $.h=be<0?360+be:be,A($)}function b(ee){var ue=A(ee).toHsl();return ue.h=(ue.h+180)%360,A(ue)}function S(ee,ue){if(isNaN(ue)||ue<=0)throw new Error("Argument to polyad must be a positive number");for(var $=A(ee).toHsl(),be=[A(ee)],_e=360/ue,Ee=1;Ee<ue;Ee++)be.push(A({h:($.h+Ee*_e)%360,s:$.s,l:$.l}));return be}function E(ee){var ue=A(ee).toHsl(),$=ue.h;return[A(ee),A({h:($+72)%360,s:ue.s,l:ue.l}),A({h:($+216)%360,s:ue.s,l:ue.l})]}function C(ee,ue,$){ue=ue||6,$=$||30;var be=A(ee).toHsl(),_e=360/$,Ee=[A(ee)];for(be.h=(be.h-(_e*ue>>1)+720)%360;--ue;)be.h=(be.h+_e)%360,Ee.push(A(be));return Ee}function _(ee,ue){ue=ue||6;for(var $=A(ee).toHsv(),be=$.h,_e=$.s,Ee=$.v,Xe=[],He=1/ue;ue--;)Xe.push(A({h:be,s:_e,v:Ee})),Ee=(Ee+He)%1;return Xe}A.mix=function(ee,ue,$){$=$===0?0:$||50;var be=A(ee).toRgb(),_e=A(ue).toRgb(),Ee=$/100,Xe={r:(_e.r-be.r)*Ee+be.r,g:(_e.g-be.g)*Ee+be.g,b:(_e.b-be.b)*Ee+be.b,a:(_e.a-be.a)*Ee+be.a};return A(Xe)},A.readability=function(ee,ue){var $=A(ee),be=A(ue);return(Math.max($.getLuminance(),be.getLuminance())+.05)/(Math.min($.getLuminance(),be.getLuminance())+.05)},A.isReadable=function(ee,ue,$){var be=A.readability(ee,ue),_e,Ee;Ee=!1,_e=re($);switch(_e.level+_e.size){case"AAsmall":case"AAAlarge":Ee=be>=4.5;break;case"AAlarge":Ee=be>=3;break;case"AAAsmall":Ee=be>=7;break}return Ee},A.mostReadable=function(ee,ue,$){var be=null,_e=0,Ee,Xe,He,nt;$=$||{},Xe=$.includeFallbackColors,He=$.level,nt=$.size;for(var Ie=0;Ie<ue.length;Ie++)Ee=A.readability(ee,ue[Ie]),Ee>_e&&(_e=Ee,be=A(ue[Ie]));return A.isReadable(ee,be,{level:He,size:nt})||!Xe?be:($.includeFallbackColors=!1,A.mostReadable(ee,["#fff","#000"],$))};var T=A.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"},w=A.hexNames=O(T);function O(ee){var ue={};for(var $ in ee)ee.hasOwnProperty($)&&(ue[ee[$]]=$);return ue}function I(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function R(ee,ue){P(ee)&&(ee="100%");var $=X(ee);return ee=Math.min(ue,Math.max(0,parseFloat(ee))),$&&(ee=parseInt(ee*ue,10)/100),Math.abs(ee-ue)<1e-6?1:ee%ue/parseFloat(ue)}function M(ee){return Math.min(1,Math.max(0,ee))}function F(ee){return parseInt(ee,16)}function P(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function X(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function B(ee){return ee.length==1?"0"+ee:""+ee}function j(ee){return ee<=1&&(ee=ee*100+"%"),ee}function W(ee){return Math.round(parseFloat(ee)*255).toString(16)}function z(ee){return F(ee)/255}var V=function(){var ee="[-\\+]?\\d+%?",ue="[-\\+]?\\d*\\.\\d+%?",$="(?:"+ue+")|(?:"+ee+")",be="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",_e="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+be),rgba:new RegExp("rgba"+_e),hsl:new RegExp("hsl"+be),hsla:new RegExp("hsla"+_e),hsv:new RegExp("hsv"+be),hsva:new RegExp("hsva"+_e),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(ee){return!!V.CSS_UNIT.exec(ee)}function G(ee){ee=ee.replace(p,"").replace(x,"").toLowerCase();var ue=!1;if(T[ee])ee=T[ee],ue=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=V.rgb.exec(ee))?{r:$[1],g:$[2],b:$[3]}:($=V.rgba.exec(ee))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=V.hsl.exec(ee))?{h:$[1],s:$[2],l:$[3]}:($=V.hsla.exec(ee))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=V.hsv.exec(ee))?{h:$[1],s:$[2],v:$[3]}:($=V.hsva.exec(ee))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=V.hex8.exec(ee))?{r:F($[1]),g:F($[2]),b:F($[3]),a:z($[4]),format:ue?"name":"hex8"}:($=V.hex6.exec(ee))?{r:F($[1]),g:F($[2]),b:F($[3]),format:ue?"name":"hex"}:($=V.hex4.exec(ee))?{r:F($[1]+""+$[1]),g:F($[2]+""+$[2]),b:F($[3]+""+$[3]),a:z($[4]+""+$[4]),format:ue?"name":"hex8"}:($=V.hex3.exec(ee))?{r:F($[1]+""+$[1]),g:F($[2]+""+$[2]),b:F($[3]+""+$[3]),format:ue?"name":"hex"}:!1}function re(ee){var ue,$;return ee=ee||{level:"AA",size:"small"},ue=(ee.level||"AA").toUpperCase(),$=(ee.size||"small").toLowerCase(),ue!=="AA"&&ue!=="AAA"&&(ue="AA"),$!=="small"&&$!=="large"&&($="small"),{level:ue,size:$}}return A})},lNSK:function(k,D,n){"use strict";function y(de){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(er){return typeof er}:y=function(er){return er&&typeof Symbol=="function"&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er},y(de)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=Ge,D.deflateInit2=Xt,D.deflateReset=Gt,D.deflateResetKeep=hr,D.deflateSetHeader=Pt,D.deflate=pe,D.deflateEnd=se,D.deflateSetDictionary=lt,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=a(n("6BzB")),x=a(n("c5fP")),A=h(n("xlC8")),m=h(n("QV2g")),f=h(n("xSIq"));function h(de){return de&&de.__esModule?de:{default:de}}function u(){if(typeof WeakMap!="function")return null;var de=new WeakMap;return u=function(){return de},de}function a(de){if(de&&de.__esModule)return de;if(de===null||y(de)!=="object"&&typeof de!="function")return{default:de};var _t=u();if(_t&&_t.has(de))return _t.get(de);var er={},yt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ar in de)if(Object.prototype.hasOwnProperty.call(de,Ar)){var Sr=yt?Object.getOwnPropertyDescriptor(de,Ar):null;Sr&&(Sr.get||Sr.set)?Object.defineProperty(er,Ar,Sr):er[Ar]=de[Ar]}return er.default=de,_t&&_t.set(de,er),er}var i=0;D.Z_NO_FLUSH=i;var t=1;D.Z_PARTIAL_FLUSH=t;var o=3;D.Z_FULL_FLUSH=o;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 d=-3;D.Z_DATA_ERROR=d;var g=-5;D.Z_BUF_ERROR=g;var v=-1;D.Z_DEFAULT_COMPRESSION=v;var b=1;D.Z_FILTERED=b;var S=2;D.Z_HUFFMAN_ONLY=S;var E=3;D.Z_RLE=E;var C=4;D.Z_FIXED=C;var _=0;D.Z_DEFAULT_STRATEGY=_;var T=2;D.Z_UNKNOWN=T;var w=8;D.Z_DEFLATED=w;var O=9,I=15,R=8,M=29,F=256,P=F+1+M,X=30,B=19,j=2*P+1,W=15,z=3,V=258,Q=V+z+1,G=32,re=42,ee=69,ue=73,$=91,be=103,_e=113,Ee=666,Xe=1,He=2,nt=3,Ie=4,oe=3;function ot(de,_t){return de.msg=f.default[_t],_t}function he(de){return(de<<1)-(de>4?9:0)}function J(de){for(var _t=de.length;--_t>=0;)de[_t]=0}function Y(de){var _t=de.state,er=_t.pending;if(er>de.avail_out&&(er=de.avail_out),er===0)return;p.arraySet(de.output,_t.pending_buf,_t.pending_out,er,de.next_out),de.next_out+=er,_t.pending_out+=er,de.total_out+=er,de.avail_out-=er,_t.pending-=er,_t.pending===0&&(_t.pending_out=0)}function q(de,_t){x._tr_flush_block(de,de.block_start>=0?de.block_start:-1,de.strstart-de.block_start,_t),de.block_start=de.strstart,Y(de.strm)}function fe(de,_t){de.pending_buf[de.pending++]=_t}function we(de,_t){de.pending_buf[de.pending++]=_t>>>8&255,de.pending_buf[de.pending++]=_t&255}function Ne(de,_t,er,yt){var Ar=de.avail_in;return Ar>yt&&(Ar=yt),Ar===0?0:(de.avail_in-=Ar,p.arraySet(_t,de.input,de.next_in,Ar,er),de.state.wrap===1?de.adler=(0,A.default)(de.adler,_t,Ar,er):de.state.wrap===2&&(de.adler=(0,m.default)(de.adler,_t,Ar,er)),de.next_in+=Ar,de.total_in+=Ar,Ar)}function je(de,_t){var er=de.max_chain_length,yt=de.strstart,Ar,Sr,Cn=de.prev_length,mr=de.nice_match,Pr=de.strstart>de.w_size-Q?de.strstart-(de.w_size-Q):0,gr=de.window,Jt=de.w_mask,Dt=de.prev,dn=de.strstart+V,Fn=gr[yt+Cn-1],Zn=gr[yt+Cn];de.prev_length>=de.good_match&&(er>>=2),mr>de.lookahead&&(mr=de.lookahead);do{if(Ar=_t,gr[Ar+Cn]!==Zn||gr[Ar+Cn-1]!==Fn||gr[Ar]!==gr[yt]||gr[++Ar]!==gr[yt+1])continue;yt+=2,Ar++;do;while(gr[++yt]===gr[++Ar]&&gr[++yt]===gr[++Ar]&&gr[++yt]===gr[++Ar]&&gr[++yt]===gr[++Ar]&&gr[++yt]===gr[++Ar]&&gr[++yt]===gr[++Ar]&&gr[++yt]===gr[++Ar]&&gr[++yt]===gr[++Ar]&&yt<dn);if(Sr=V-(dn-yt),yt=dn-V,Sr>Cn){if(de.match_start=_t,Cn=Sr,Sr>=mr)break;Fn=gr[yt+Cn-1],Zn=gr[yt+Cn]}}while((_t=Dt[_t&Jt])>Pr&&--er!==0);return Cn<=de.lookahead?Cn:de.lookahead}function me(de){var _t=de.w_size,er,yt,Ar,Sr,Cn;do{if(Sr=de.window_size-de.lookahead-de.strstart,de.strstart>=_t+(_t-Q)){p.arraySet(de.window,de.window,_t,_t,0),de.match_start-=_t,de.strstart-=_t,de.block_start-=_t,yt=de.hash_size,er=yt;do Ar=de.head[--er],de.head[er]=Ar>=_t?Ar-_t:0;while(--yt);yt=_t,er=yt;do Ar=de.prev[--er],de.prev[er]=Ar>=_t?Ar-_t:0;while(--yt);Sr+=_t}if(de.strm.avail_in===0)break;if(yt=Ne(de.strm,de.window,de.strstart+de.lookahead,Sr),de.lookahead+=yt,de.lookahead+de.insert>=z)for(Cn=de.strstart-de.insert,de.ins_h=de.window[Cn],de.ins_h=(de.ins_h<<de.hash_shift^de.window[Cn+1])&de.hash_mask;de.insert&&!(de.ins_h=(de.ins_h<<de.hash_shift^de.window[Cn+z-1])&de.hash_mask,de.prev[Cn&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=Cn,Cn++,de.insert--,de.lookahead+de.insert<z););}while(de.lookahead<Q&&de.strm.avail_in!==0)}function Ce(de,_t){var er=65535;for(er>de.pending_buf_size-5&&(er=de.pending_buf_size-5);;){if(de.lookahead<=1){if(me(de),de.lookahead===0&&_t===i)return Xe;if(de.lookahead===0)break}de.strstart+=de.lookahead,de.lookahead=0;var yt=de.block_start+er;if((de.strstart===0||de.strstart>=yt)&&(de.lookahead=de.strstart-yt,de.strstart=yt,q(de,!1),de.strm.avail_out===0))return Xe;if(de.strstart-de.block_start>=de.w_size-Q&&(q(de,!1),de.strm.avail_out===0))return Xe}return de.insert=0,_t===e?(q(de,!0),de.strm.avail_out===0?nt:Ie):(de.strstart>de.block_start&&(q(de,!1),de.strm.avail_out===0),Xe)}function Fe(de,_t){for(var er,yt;;){if(de.lookahead<Q){if(me(de),de.lookahead<Q&&_t===i)return Xe;if(de.lookahead===0)break}if(er=0,de.lookahead>=z&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+z-1])&de.hash_mask,er=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),er!==0&&de.strstart-er<=de.w_size-Q&&(de.match_length=je(de,er)),de.match_length>=z)if(yt=x._tr_tally(de,de.strstart-de.match_start,de.match_length-z),de.lookahead-=de.match_length,de.match_length<=de.max_lazy_match&&de.lookahead>=z){de.match_length--;do de.strstart++,de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+z-1])&de.hash_mask,er=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart;while(--de.match_length!==0);de.strstart++}else de.strstart+=de.match_length,de.match_length=0,de.ins_h=de.window[de.strstart],de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+1])&de.hash_mask;else yt=x._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++;if(yt&&(q(de,!1),de.strm.avail_out===0))return Xe}return de.insert=de.strstart<z-1?de.strstart:z-1,_t===e?(q(de,!0),de.strm.avail_out===0?nt:Ie):de.last_lit&&(q(de,!1),de.strm.avail_out===0)?Xe:He}function it(de,_t){for(var er,yt,Ar;;){if(de.lookahead<Q){if(me(de),de.lookahead<Q&&_t===i)return Xe;if(de.lookahead===0)break}if(er=0,de.lookahead>=z&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+z-1])&de.hash_mask,er=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),de.prev_length=de.match_length,de.prev_match=de.match_start,de.match_length=z-1,er!==0&&de.prev_length<de.max_lazy_match&&de.strstart-er<=de.w_size-Q&&(de.match_length=je(de,er),de.match_length<=5&&(de.strategy===b||de.match_length===z&&de.strstart-de.match_start>4096)&&(de.match_length=z-1)),de.prev_length>=z&&de.match_length<=de.prev_length){Ar=de.strstart+de.lookahead-z,yt=x._tr_tally(de,de.strstart-1-de.prev_match,de.prev_length-z),de.lookahead-=de.prev_length-1,de.prev_length-=2;do++de.strstart<=Ar&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+z-1])&de.hash_mask,er=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart);while(--de.prev_length!==0);if(de.match_available=0,de.match_length=z-1,de.strstart++,yt&&(q(de,!1),de.strm.avail_out===0))return Xe}else if(de.match_available){if(yt=x._tr_tally(de,0,de.window[de.strstart-1]),yt&&q(de,!1),de.strstart++,de.lookahead--,de.strm.avail_out===0)return Xe}else de.match_available=1,de.strstart++,de.lookahead--}return de.match_available&&(yt=x._tr_tally(de,0,de.window[de.strstart-1]),de.match_available=0),de.insert=de.strstart<z-1?de.strstart:z-1,_t===e?(q(de,!0),de.strm.avail_out===0?nt:Ie):de.last_lit&&(q(de,!1),de.strm.avail_out===0)?Xe:He}function Ct(de,_t){for(var er,yt,Ar,Sr,Cn=de.window;;){if(de.lookahead<=V){if(me(de),de.lookahead<=V&&_t===i)return Xe;if(de.lookahead===0)break}if(de.match_length=0,de.lookahead>=z&&de.strstart>0&&(Ar=de.strstart-1,yt=Cn[Ar],yt===Cn[++Ar]&&yt===Cn[++Ar]&&yt===Cn[++Ar])){Sr=de.strstart+V;do;while(yt===Cn[++Ar]&&yt===Cn[++Ar]&&yt===Cn[++Ar]&&yt===Cn[++Ar]&&yt===Cn[++Ar]&&yt===Cn[++Ar]&&yt===Cn[++Ar]&&yt===Cn[++Ar]&&Ar<Sr);de.match_length=V-(Sr-Ar),de.match_length>de.lookahead&&(de.match_length=de.lookahead)}if(de.match_length>=z?(er=x._tr_tally(de,1,de.match_length-z),de.lookahead-=de.match_length,de.strstart+=de.match_length,de.match_length=0):(er=x._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++),er&&(q(de,!1),de.strm.avail_out===0))return Xe}return de.insert=0,_t===e?(q(de,!0),de.strm.avail_out===0?nt:Ie):de.last_lit&&(q(de,!1),de.strm.avail_out===0)?Xe:He}function mt(de,_t){for(var er;;){if(de.lookahead===0&&(me(de),de.lookahead===0)){if(_t===i)return Xe;break}if(de.match_length=0,er=x._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++,er&&(q(de,!1),de.strm.avail_out===0))return Xe}return de.insert=0,_t===e?(q(de,!0),de.strm.avail_out===0?nt:Ie):de.last_lit&&(q(de,!1),de.strm.avail_out===0)?Xe:He}function Ve(de,_t,er,yt,Ar){this.good_length=de,this.max_lazy=_t,this.nice_length=er,this.max_chain=yt,this.func=Ar}var or;or=[new Ve(0,0,0,0,Ce),new Ve(4,4,8,4,Fe),new Ve(4,5,16,8,Fe),new Ve(4,6,32,32,Fe),new Ve(4,4,16,16,it),new Ve(8,16,32,32,it),new Ve(8,16,128,128,it),new Ve(8,32,128,256,it),new Ve(32,128,258,1024,it),new Ve(32,258,258,4096,it)];function dt(de){de.window_size=2*de.w_size,J(de.head),de.max_lazy_match=or[de.level].max_lazy,de.good_match=or[de.level].good_length,de.nice_match=or[de.level].nice_length,de.max_chain_length=or[de.level].max_chain,de.strstart=0,de.block_start=0,de.lookahead=0,de.insert=0,de.match_length=de.prev_length=z-1,de.match_available=0,de.ins_h=0}function Yt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(j*2),this.dyn_dtree=new p.Buf16((2*X+1)*2),this.bl_tree=new p.Buf16((2*B+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(W+1),this.heap=new p.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*P+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function hr(de){var _t;return!de||!de.state?ot(de,c):(de.total_in=de.total_out=0,de.data_type=T,_t=de.state,_t.pending=0,_t.pending_out=0,_t.wrap<0&&(_t.wrap=-_t.wrap),_t.status=_t.wrap?re:_e,de.adler=_t.wrap===2?0:1,_t.last_flush=i,x._tr_init(_t),r)}function Gt(de){var _t=hr(de);return _t===r&&dt(de.state),_t}function Pt(de,_t){return!de||!de.state||de.state.wrap!==2?c:(de.state.gzhead=_t,r)}function Xt(de,_t,er,yt,Ar,Sr){if(!de)return c;var Cn=1;if(_t===v&&(_t=6),yt<0?(Cn=0,yt=-yt):yt>15&&(Cn=2,yt-=16),Ar<1||Ar>O||er!==w||yt<8||yt>15||_t<0||_t>9||Sr<0||Sr>C)return ot(de,c);yt===8&&(yt=9);var mr=new Yt;return de.state=mr,mr.strm=de,mr.wrap=Cn,mr.gzhead=null,mr.w_bits=yt,mr.w_size=1<<mr.w_bits,mr.w_mask=mr.w_size-1,mr.hash_bits=Ar+7,mr.hash_size=1<<mr.hash_bits,mr.hash_mask=mr.hash_size-1,mr.hash_shift=~~((mr.hash_bits+z-1)/z),mr.window=new p.Buf8(mr.w_size*2),mr.head=new p.Buf16(mr.hash_size),mr.prev=new p.Buf16(mr.w_size),mr.lit_bufsize=1<<Ar+6,mr.pending_buf_size=mr.lit_bufsize*4,mr.pending_buf=new p.Buf8(mr.pending_buf_size),mr.d_buf=1*mr.lit_bufsize,mr.l_buf=(1+2)*mr.lit_bufsize,mr.level=_t,mr.strategy=Sr,mr.method=er,Gt(de)}function Ge(de,_t){return Xt(de,_t,w,I,R,_)}function pe(de,_t){var er,yt,Ar,Sr;if(!de||!de.state||_t>l||_t<0)return de?ot(de,c):c;if(yt=de.state,!de.output||!de.input&&de.avail_in!==0||yt.status===Ee&&_t!==e)return ot(de,de.avail_out===0?g:c);if(yt.strm=de,er=yt.last_flush,yt.last_flush=_t,yt.status===re)if(yt.wrap===2)de.adler=0,fe(yt,31),fe(yt,139),fe(yt,8),yt.gzhead?(fe(yt,(yt.gzhead.text?1:0)+(yt.gzhead.hcrc?2:0)+(yt.gzhead.extra?4:0)+(yt.gzhead.name?8:0)+(yt.gzhead.comment?16:0)),fe(yt,yt.gzhead.time&255),fe(yt,yt.gzhead.time>>8&255),fe(yt,yt.gzhead.time>>16&255),fe(yt,yt.gzhead.time>>24&255),fe(yt,yt.level===9?2:yt.strategy>=S||yt.level<2?4:0),fe(yt,yt.gzhead.os&255),yt.gzhead.extra&&yt.gzhead.extra.length&&(fe(yt,yt.gzhead.extra.length&255),fe(yt,yt.gzhead.extra.length>>8&255)),yt.gzhead.hcrc&&(de.adler=(0,m.default)(de.adler,yt.pending_buf,yt.pending,0)),yt.gzindex=0,yt.status=ee):(fe(yt,0),fe(yt,0),fe(yt,0),fe(yt,0),fe(yt,0),fe(yt,yt.level===9?2:yt.strategy>=S||yt.level<2?4:0),fe(yt,oe),yt.status=_e);else{var Cn=w+(yt.w_bits-8<<4)<<8,mr=-1;yt.strategy>=S||yt.level<2?mr=0:yt.level<6?mr=1:yt.level===6?mr=2:mr=3,Cn|=mr<<6,yt.strstart!==0&&(Cn|=G),Cn+=31-Cn%31,yt.status=_e,we(yt,Cn),yt.strstart!==0&&(we(yt,de.adler>>>16),we(yt,de.adler&65535)),de.adler=1}if(yt.status===ee)if(yt.gzhead.extra){for(Ar=yt.pending;yt.gzindex<(yt.gzhead.extra.length&65535)&&!(yt.pending===yt.pending_buf_size&&(yt.gzhead.hcrc&&yt.pending>Ar&&(de.adler=(0,m.default)(de.adler,yt.pending_buf,yt.pending-Ar,Ar)),Y(de),Ar=yt.pending,yt.pending===yt.pending_buf_size));)fe(yt,yt.gzhead.extra[yt.gzindex]&255),yt.gzindex++;yt.gzhead.hcrc&&yt.pending>Ar&&(de.adler=(0,m.default)(de.adler,yt.pending_buf,yt.pending-Ar,Ar)),yt.gzindex===yt.gzhead.extra.length&&(yt.gzindex=0,yt.status=ue)}else yt.status=ue;if(yt.status===ue)if(yt.gzhead.name){Ar=yt.pending;do{if(yt.pending===yt.pending_buf_size&&(yt.gzhead.hcrc&&yt.pending>Ar&&(de.adler=(0,m.default)(de.adler,yt.pending_buf,yt.pending-Ar,Ar)),Y(de),Ar=yt.pending,yt.pending===yt.pending_buf_size)){Sr=1;break}yt.gzindex<yt.gzhead.name.length?Sr=yt.gzhead.name.charCodeAt(yt.gzindex++)&255:Sr=0,fe(yt,Sr)}while(Sr!==0);yt.gzhead.hcrc&&yt.pending>Ar&&(de.adler=(0,m.default)(de.adler,yt.pending_buf,yt.pending-Ar,Ar)),Sr===0&&(yt.gzindex=0,yt.status=$)}else yt.status=$;if(yt.status===$)if(yt.gzhead.comment){Ar=yt.pending;do{if(yt.pending===yt.pending_buf_size&&(yt.gzhead.hcrc&&yt.pending>Ar&&(de.adler=(0,m.default)(de.adler,yt.pending_buf,yt.pending-Ar,Ar)),Y(de),Ar=yt.pending,yt.pending===yt.pending_buf_size)){Sr=1;break}yt.gzindex<yt.gzhead.comment.length?Sr=yt.gzhead.comment.charCodeAt(yt.gzindex++)&255:Sr=0,fe(yt,Sr)}while(Sr!==0);yt.gzhead.hcrc&&yt.pending>Ar&&(de.adler=(0,m.default)(de.adler,yt.pending_buf,yt.pending-Ar,Ar)),Sr===0&&(yt.status=be)}else yt.status=be;if(yt.status===be&&(yt.gzhead.hcrc?(yt.pending+2>yt.pending_buf_size&&Y(de),yt.pending+2<=yt.pending_buf_size&&(fe(yt,de.adler&255),fe(yt,de.adler>>8&255),de.adler=0,yt.status=_e)):yt.status=_e),yt.pending!==0){if(Y(de),de.avail_out===0)return yt.last_flush=-1,r}else if(de.avail_in===0&&he(_t)<=he(er)&&_t!==e)return ot(de,g);if(yt.status===Ee&&de.avail_in!==0)return ot(de,g);if(de.avail_in!==0||yt.lookahead!==0||_t!==i&&yt.status!==Ee){var Pr=yt.strategy===S?mt(yt,_t):yt.strategy===E?Ct(yt,_t):or[yt.level].func(yt,_t);if((Pr===nt||Pr===Ie)&&(yt.status=Ee),Pr===Xe||Pr===nt)return de.avail_out===0&&(yt.last_flush=-1),r;if(Pr===He&&(_t===t?x._tr_align(yt):_t!==l&&(x._tr_stored_block(yt,0,0,!1),_t===o&&(J(yt.head),yt.lookahead===0&&(yt.strstart=0,yt.block_start=0,yt.insert=0))),Y(de),de.avail_out===0))return yt.last_flush=-1,r}return _t!==e?r:yt.wrap<=0?s:(yt.wrap===2?(fe(yt,de.adler&255),fe(yt,de.adler>>8&255),fe(yt,de.adler>>16&255),fe(yt,de.adler>>24&255),fe(yt,de.total_in&255),fe(yt,de.total_in>>8&255),fe(yt,de.total_in>>16&255),fe(yt,de.total_in>>24&255)):(we(yt,de.adler>>>16),we(yt,de.adler&65535)),Y(de),yt.wrap>0&&(yt.wrap=-yt.wrap),yt.pending!==0?r:s)}function se(de){var _t;return!de||!de.state?c:(_t=de.state.status,_t!==re&&_t!==ee&&_t!==ue&&_t!==$&&_t!==be&&_t!==_e&&_t!==Ee?ot(de,c):(de.state=null,_t===_e?ot(de,d):r))}function lt(de,_t){var er=_t.length,yt,Ar,Sr,Cn,mr,Pr,gr,Jt;if(!de||!de.state)return c;if(yt=de.state,Cn=yt.wrap,Cn===2||Cn===1&&yt.status!==re||yt.lookahead)return c;for(Cn===1&&(de.adler=(0,A.default)(de.adler,_t,er,0)),yt.wrap=0,er>=yt.w_size&&(Cn===0&&(J(yt.head),yt.strstart=0,yt.block_start=0,yt.insert=0),Jt=new p.Buf8(yt.w_size),p.arraySet(Jt,_t,er-yt.w_size,yt.w_size,0),_t=Jt,er=yt.w_size),mr=de.avail_in,Pr=de.next_in,gr=de.input,de.avail_in=er,de.next_in=0,de.input=_t,me(yt);yt.lookahead>=z;){Ar=yt.strstart,Sr=yt.lookahead-(z-1);do yt.ins_h=(yt.ins_h<<yt.hash_shift^yt.window[Ar+z-1])&yt.hash_mask,yt.prev[Ar&yt.w_mask]=yt.head[yt.ins_h],yt.head[yt.ins_h]=Ar,Ar++;while(--Sr);yt.strstart=Ar,yt.lookahead=z-1,me(yt)}return yt.strstart+=yt.lookahead,yt.block_start=yt.strstart,yt.insert=yt.lookahead,yt.lookahead=0,yt.match_length=yt.prev_length=z-1,yt.match_available=0,de.next_in=Pr,de.input=gr,de.avail_in=mr,yt.wrap=Cn,r}var Ze="pako deflate (from Nodeca project)";D.deflateInfo=Ze},lOQZ:function(k,D,n){var y=n("QBsz"),p=n("U/Mo"),x=p.getSymbolSize,A=p.getNodeGlobalScale,m=Math.PI,f=[];function h(a,i){var t=a.coordinateSystem;if(t&&t.type!=="view")return;var o=t.getBoundingRect(),e=a.getData(),l=e.graph,r=o.width/2+o.x,s=o.height/2+o.y,c=Math.min(o.width,o.height)/2,d=e.count();if(e.setLayout({cx:r,cy:s}),!d)return;u[i](a,t,l,e,c,r,s,d),l.eachEdge(function(g){var v=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),S=y.clone(g.node2.getLayout()),E,C=(b[0]+S[0])/2,_=(b[1]+S[1])/2;+v&&(v*=3,E=[r*v+C*(1-v),s*v+_*(1-v)]),g.setLayout([b,S,E])})}var u={value:function(a,i,t,o,e,l,r,s){var c=0,d=o.getSum("value"),g=Math.PI*2/(d||s);t.eachNode(function(v){var b=v.getValue("value"),S=g*(d?b:1)/2;c+=S,v.setLayout([e*Math.cos(c)+l,e*Math.sin(c)+r]),c+=S})},symbolSize:function(a,i,t,o,e,l,r,s){var c=0;f.length=s;var d=A(a);t.eachNode(function(b){var S=x(b);isNaN(S)&&(S=2),S<0&&(S=0),S*=d;var E=Math.asin(S/2/e);isNaN(E)&&(E=m/2),f[b.dataIndex]=E,c+=E*2});var g=(2*m-c)/s/2,v=0;t.eachNode(function(b){var S=g+f[b.dataIndex];v+=S,b.setLayout([e*Math.cos(v)+l,e*Math.sin(v)+r]),v+=S})}};D.circularLayout=h},lPiR:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(p){var x=y,A=x.lib,m=A.WordArray,f=A.Hasher,h=x.algo,u=[],a=[];(function(){function o(s){for(var c=p.sqrt(s),d=2;d<=c;d++)if(!(s%d))return!1;return!0}function e(s){return(s-(s|0))*4294967296|0}for(var l=2,r=0;r<64;)o(l)&&(r<8&&(u[r]=e(p.pow(l,1/2))),a[r]=e(p.pow(l,1/3)),r++),l++})();var i=[],t=h.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],d=r[2],g=r[3],v=r[4],b=r[5],S=r[6],E=r[7],C=0;C<64;C++){if(C<16)i[C]=e[l+C]|0;else{var _=i[C-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,w=i[C-2],O=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;i[C]=T+i[C-7]+O+i[C-16]}var I=v&b^~v&S,R=s&c^s&d^c&d,M=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),F=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),P=E+F+I+a[C]+i[C],X=M+R;E=S,S=b,b=v,v=g+P|0,g=d,d=c,c=s,s=P+X|0}r[0]=r[0]+s|0,r[1]=r[1]+c|0,r[2]=r[2]+d|0,r[3]=r[3]+g|0,r[4]=r[4]+v|0,r[5]=r[5]+b|0,r[6]=r[6]+S|0,r[7]=r[7]+E|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}});x.SHA256=f._createHelper(t),x.HmacSHA256=f._createHmacHelper(t)}(Math),y.SHA256})},lSCD:function(k,D,n){var y=n("NykK"),p=n("GoyQ"),x="[object AsyncFunction]",A="[object Function]",m="[object GeneratorFunction]",f="[object Proxy]";function h(u){if(!p(u))return!1;var a=y(u);return a==A||a==m||a==x||a==f}k.exports=h},lUTK:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("x54q"),A=n.n(x),m=n("5Dmo")},lZu9:function(k,D,n){(function(y){y(n("VrN/"),n("1eCo"),n("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(p,x){var A=y.getMode(p,"text/html"),m=A.name=="null";function f(W){if(y.findModeByName){var z=y.findModeByName(W);z&&(W=z.mime||z.mimes[0])}var V=y.getMode(p,W);return V.name=="null"?null:V}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.tokenTypeOverrides={});var h={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 h)h.hasOwnProperty(u)&&x.tokenTypeOverrides[u]&&(h[u]=x.tokenTypeOverrides[u]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,i=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,o=x.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]/,d=" ";function g(W,z,V){return z.f=z.inline=V,V(W,z)}function v(W,z,V){return z.f=z.block=V,V(W,z)}function b(W){return!W||!/\S/.test(W.string)}function S(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==C){var z=m;if(!z){var V=y.innerMode(A,W.htmlState);z=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}z&&(W.f=O,W.block=E,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function E(W,z){var V=W.column()===z.indentation,Q=b(z.prevLine.stream),G=z.indentedCode,re=z.prevLine.hr,ee=z.list!==!1,ue=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var $=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,ee)){for(z.list=null;$<z.listStack[z.listStack.length-1];)z.listStack.pop(),z.listStack.length?z.indentation=z.listStack[z.listStack.length-1]:z.list=!1;z.list!==!1&&(z.indentationDiff=$-z.listStack[z.listStack.length-1])}var be=!Q&&!re&&!z.prevLine.header&&(!ee||!G)&&!z.prevLine.fencedCodeEnd,_e=(z.list===!1||re||Q)&&z.indentation<=ue&&W.match(a),Ee=null;if(z.indentationDiff>=4&&(G||z.prevLine.fencedCodeEnd||z.prevLine.header||Q))return W.skipToEnd(),z.indentedCode=!0,h.code;if(W.eatSpace())return null;if(V&&z.indentation<=ue&&(Ee=W.match(o))&&Ee[1].length<=6)return z.quote=0,z.header=Ee[1].length,z.thisLine.header=!0,x.highlightFormatting&&(z.formatting="header"),z.f=z.inline,T(z);if(z.indentation<=ue&&W.eat(">"))return z.quote=V?1:z.quote+1,x.highlightFormatting&&(z.formatting="quote"),W.eatSpace(),T(z);if(!_e&&!z.setext&&V&&z.indentation<=ue&&(Ee=W.match(i))){var Xe=Ee[1]?"ol":"ul";return z.indentation=$+W.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,x.taskLists&&W.match(t,!1)&&(z.taskList=!0),z.f=z.inline,x.highlightFormatting&&(z.formatting=["list","list-"+Xe]),T(z)}else{if(V&&z.indentation<=ue&&(Ee=W.match(r,!0)))return z.quote=0,z.fencedEndRE=new RegExp(Ee[1]+"+ *$"),z.localMode=x.fencedCodeBlockHighlighting&&f(Ee[2]||x.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=y.startState(z.localMode)),z.f=z.block=_,x.highlightFormatting&&(z.formatting="code-block"),z.code=-1,T(z);if(z.setext||(!be||!ee)&&!z.quote&&z.list===!1&&!z.code&&!_e&&!s.test(W.string)&&(Ee=W.lookAhead(1))&&(Ee=Ee.match(e)))return z.setext?(z.header=z.setext,z.setext=0,W.skipToEnd(),x.highlightFormatting&&(z.formatting="header")):(z.header=Ee[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,T(z);if(_e)return W.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,h.hr;if(W.peek()==="[")return g(W,z,P)}return g(W,z,z.inline)}function C(W,z){var V=A.token(W,z.htmlState);if(!m){var Q=y.innerMode(A,z.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||z.md_inside&&W.current().indexOf(">")>-1)&&(z.f=O,z.block=E,z.htmlState=null)}return V}function _(W,z){var V=z.listStack[z.listStack.length-1]||0,Q=z.indentation<V,G=V+3;if(z.fencedEndRE&&z.indentation<=G&&(Q||W.match(z.fencedEndRE))){x.highlightFormatting&&(z.formatting="code-block");var re;return Q||(re=T(z)),z.localMode=z.localState=null,z.block=E,z.f=O,z.fencedEndRE=null,z.code=0,z.thisLine.fencedCodeEnd=!0,Q?v(W,z,z.block):re}else return z.localMode?z.localMode.token(W,z.localState):(W.skipToEnd(),h.code)}function T(W){var z=[];if(W.formatting){z.push(h.formatting),typeof W.formatting=="string"&&(W.formatting=[W.formatting]);for(var V=0;V<W.formatting.length;V++)z.push(h.formatting+"-"+W.formatting[V]),W.formatting[V]==="header"&&z.push(h.formatting+"-"+W.formatting[V]+"-"+W.header),W.formatting[V]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=W.quote?z.push(h.formatting+"-"+W.formatting[V]+"-"+W.quote):z.push("error"))}if(W.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(W.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(W.linkHref?z.push(h.linkHref,"url"):(W.strong&&z.push(h.strong),W.em&&z.push(h.em),W.strikethrough&&z.push(h.strikethrough),W.emoji&&z.push(h.emoji),W.linkText&&z.push(h.linkText),W.code&&z.push(h.code),W.image&&z.push(h.image),W.imageAltText&&z.push(h.imageAltText,"link"),W.imageMarker&&z.push(h.imageMarker)),W.header&&z.push(h.header,h.header+"-"+W.header),W.quote&&(z.push(h.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=W.quote?z.push(h.quote+"-"+W.quote):z.push(h.quote+"-"+x.maxBlockquoteDepth)),W.list!==!1){var Q=(W.listStack.length-1)%3;Q?Q===1?z.push(h.list2):z.push(h.list3):z.push(h.list1)}return W.trailingSpaceNewLine?z.push("trailing-space-new-line"):W.trailingSpace&&z.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function w(W,z){return W.match(l,!0)?T(z):void 0}function O(W,z){var V=z.text(W,z);if(typeof V!="undefined")return V;if(z.list)return z.list=null,T(z);if(z.taskList){var Q=W.match(t,!0)[1]===" ";return Q?z.taskOpen=!0:z.taskClosed=!0,x.highlightFormatting&&(z.formatting="task"),z.taskList=!1,T(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&W.match(/^#+$/,!0))return x.highlightFormatting&&(z.formatting="header"),T(z);var G=W.next();if(z.linkTitle){z.linkTitle=!1;var re=G;G==="("&&(re=")"),re=(re+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ee="^\\s*(?:[^"+re+"\\\\]+|\\\\\\\\|\\\\.)"+re;if(W.match(new RegExp(ee),!0))return h.linkHref}if(G==="`"){var ue=z.formatting;x.highlightFormatting&&(z.formatting="code"),W.eatWhile("`");var $=W.current().length;if(z.code==0&&(!z.quote||$==1))return z.code=$,T(z);if($==z.code){var be=T(z);return z.code=0,be}else return z.formatting=ue,T(z)}else if(z.code)return T(z);if(G==="\\"&&(W.next(),x.highlightFormatting)){var _e=T(z),Ee=h.formatting+"-escape";return _e?_e+" "+Ee:Ee}if(G==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="["&&z.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="]"&&z.imageAltText){x.highlightFormatting&&(z.formatting="image");var _e=T(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=R,_e}if(G==="["&&!z.image)return z.linkText&&W.match(/^.*?\]/)||(z.linkText=!0,x.highlightFormatting&&(z.formatting="link")),T(z);if(G==="]"&&z.linkText){x.highlightFormatting&&(z.formatting="link");var _e=T(z);return z.linkText=!1,z.inline=z.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?R:O,_e}if(G==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var _e=T(z);return _e?_e+=" ":_e="",_e+h.linkInline}if(G==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var _e=T(z);return _e?_e+=" ":_e="",_e+h.linkEmail}if(x.xml&&G==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Xe=W.string.indexOf(">",W.pos);if(Xe!=-1){var He=W.string.substring(W.start,Xe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(He)&&(z.md_inside=!0)}return W.backUp(1),z.htmlState=y.startState(A),v(W,z,C)}if(x.xml&&G==="<"&&W.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var nt=1,Ie=W.pos==1?" ":W.string.charAt(W.pos-2);nt<3&&W.eat(G);)nt++;var oe=W.peek()||" ",ot=!/\s/.test(oe)&&(!c.test(oe)||/\s/.test(Ie)||c.test(Ie)),he=!/\s/.test(Ie)&&(!c.test(Ie)||/\s/.test(oe)||c.test(oe)),J=null,Y=null;if(nt%2&&(!z.em&&ot&&(G==="*"||!he||c.test(Ie))?J=!0:z.em==G&&he&&(G==="*"||!ot||c.test(oe))&&(J=!1)),nt>1&&(!z.strong&&ot&&(G==="*"||!he||c.test(Ie))?Y=!0:z.strong==G&&he&&(G==="*"||!ot||c.test(oe))&&(Y=!1)),Y!=null||J!=null){x.highlightFormatting&&(z.formatting=J==null?"strong":Y==null?"em":"strong em"),J===!0&&(z.em=G),Y===!0&&(z.strong=G);var be=T(z);return J===!1&&(z.em=!1),Y===!1&&(z.strong=!1),be}}else if(G===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return T(z);W.backUp(1)}if(x.strikethrough){if(G==="~"&&W.eatWhile(G)){if(z.strikethrough){x.highlightFormatting&&(z.formatting="strikethrough");var be=T(z);return z.strikethrough=!1,be}else if(W.match(/^[^\s]/,!1))return z.strikethrough=!0,x.highlightFormatting&&(z.formatting="strikethrough"),T(z)}else if(G===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return T(z);W.backUp(2)}}if(x.emoji&&G===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,x.highlightFormatting&&(z.formatting="emoji");var q=T(z);return z.emoji=!1,q}return G===" "&&(W.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),T(z)}function I(W,z){var V=W.next();if(V===">"){z.f=z.inline=O,x.highlightFormatting&&(z.formatting="link");var Q=T(z);return Q?Q+=" ":Q="",Q+h.linkInline}return W.match(/^[^>]+/,!0),h.linkInline}function R(W,z){if(W.eatSpace())return null;var V=W.next();return V==="("||V==="["?(z.f=z.inline=F(V==="("?")":"]"),x.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,T(z)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function F(W){return function(z,V){var Q=z.next();if(Q===W){V.f=V.inline=O,x.highlightFormatting&&(V.formatting="link-string");var G=T(V);return V.linkHref=!1,G}return z.match(M[W]),V.linkHref=!0,T(V)}}function P(W,z){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=X,W.next(),x.highlightFormatting&&(z.formatting="link"),z.linkText=!0,T(z)):g(W,z,O)}function X(W,z){if(W.match(/^\]:/,!0)){z.f=z.inline=B,x.highlightFormatting&&(z.formatting="link");var V=T(z);return z.linkText=!1,V}return W.match(/^([^\]\\]|\\.)+/,!0),h.linkText}function B(W,z){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?z.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=O,h.linkHref+" url")}var j={startState:function(){return{f:E,prevLine:{stream:null},thisLine:{stream:null},block:E,htmlState:null,indentation:0,inline:O,text:w,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(z){return{f:z.f,prevLine:z.prevLine,thisLine:z.thisLine,block:z.block,htmlState:z.htmlState&&y.copyState(A,z.htmlState),indentation:z.indentation,localMode:z.localMode,localState:z.localMode?y.copyState(z.localMode,z.localState):null,inline:z.inline,text:z.text,formatting:!1,linkText:z.linkText,linkTitle:z.linkTitle,linkHref:z.linkHref,code:z.code,em:z.em,strong:z.strong,strikethrough:z.strikethrough,emoji:z.emoji,header:z.header,setext:z.setext,hr:z.hr,taskList:z.taskList,list:z.list,listStack:z.listStack.slice(0),quote:z.quote,indentedCode:z.indentedCode,trailingSpace:z.trailingSpace,trailingSpaceNewLine:z.trailingSpaceNewLine,md_inside:z.md_inside,fencedEndRE:z.fencedEndRE}},token:function(z,V){if(V.formatting=!1,z!=V.thisLine.stream){if(V.header=0,V.hr=!1,z.match(/^\s*$/,!0))return S(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:z},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=C)){var Q=z.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(z,V)},innerMode:function(z){return z.block==C?{state:z.htmlState,mode:A}:z.localState?{state:z.localState,mode:z.localMode}:{state:z,mode:j}},indent:function(z,V,Q){return z.block==C&&A.indent?A.indent(z.htmlState,V,Q):z.localState&&z.localMode.indent?z.localMode.indent(z.localState,V,Q):y.Pass},blankLine:S,getType:T,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(k,D,n){var y=n("ProS");n("GVMX"),n("MH26"),y.registerPreprocessor(function(p){p.markLine=p.markLine||{}})},ljhN:function(k,D){function n(y,p){return y===p||y!==y&&p!==p}k.exports=n},lnY3:function(k,D,n){},loD1:function(k,D){function n(y,p,x,A,m,f,h){if(m===0)return!1;var u=m,a=0,i=y;if(h>p+u&&h>A+u||h<p-u&&h<A-u||f>y+u&&f>x+u||f<y-u&&f<x-u)return!1;if(y!==x)a=(p-A)/(y-x),i=(y*A-x*p)/(y-x);else return Math.abs(f-y)<=u/2;var t=a*f-h+i,o=t*t/(a*a+1);return o<=u/2*u/2}D.containStroke=n},lr6o:function(k,D,n){"use strict";var y=n("rePB"),p=n("Ff2n"),x=n("VTBJ"),A=n("1OyB"),m=n("vuIU"),f=n("JX7q"),h=n("Ji7U"),u=n("LK+K"),a=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("FTAc"),e=n("wPhX"),l=function(C){var _=C.prefixCls,T=C.level,w=C.isStart,O=C.isEnd;if(!T)return null;for(var I="".concat(_,"-indent-unit"),R=[],M=0;M<T;M+=1){var F;R.push(a.createElement("span",{key:M,className:t()(I,(F={},Object(y.a)(F,"".concat(I,"-start"),w[M+1]),Object(y.a)(F,"".concat(I,"-end"),O[M+1]),Object(y.a)(F,"".concat(I,"-end-first-level"),!M&&O[0]),F))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},R)},r=l,s=n("c3jg"),c="open",d="close",g="---",v=function(E){Object(h.a)(_,E);var C=Object(u.a)(_);function _(){var T;return Object(A.a)(this,_),T=C.apply(this,arguments),T.state={dragNodeHighlight:!1},T.onSelectorClick=function(w){var O=T.props.context.onNodeClick;O(w,Object(s.b)(T.props)),T.isSelectable()?T.onSelect(w):T.onCheck(w)},T.onSelectorDoubleClick=function(w){var O=T.props.context.onNodeDoubleClick;O(w,Object(s.b)(T.props))},T.onSelect=function(w){if(T.isDisabled())return;var O=T.props.context.onNodeSelect;w.preventDefault(),O(w,Object(s.b)(T.props))},T.onCheck=function(w){if(T.isDisabled())return;var O=T.props,I=O.disableCheckbox,R=O.checked,M=T.props.context.onNodeCheck;if(!T.isCheckable()||I)return;w.preventDefault();var F=!R;M(w,Object(s.b)(T.props),F)},T.onMouseEnter=function(w){var O=T.props.context.onNodeMouseEnter;O(w,Object(s.b)(T.props))},T.onMouseLeave=function(w){var O=T.props.context.onNodeMouseLeave;O(w,Object(s.b)(T.props))},T.onContextMenu=function(w){var O=T.props.context.onNodeContextMenu;O(w,Object(s.b)(T.props))},T.onDragStart=function(w){var O=T.props.context.onNodeDragStart;w.stopPropagation(),T.setState({dragNodeHighlight:!0}),O(w,Object(f.a)(T));try{w.dataTransfer.setData("text/plain","")}catch(I){}},T.onDragEnter=function(w){var O=T.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragOver=function(w){var O=T.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragLeave=function(w){var O=T.props.context.onNodeDragLeave;w.stopPropagation(),O(w,Object(f.a)(T))},T.onDragEnd=function(w){var O=T.props.context.onNodeDragEnd;w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(T))},T.onDrop=function(w){var O=T.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(f.a)(T))},T.onExpand=function(w){var O=T.props.context.onNodeExpand;O(w,Object(s.b)(T.props))},T.setSelectHandle=function(w){T.selectHandle=w},T.getNodeState=function(){var w=T.props.expanded;return T.isLeaf()?null:w?c:d},T.hasChildren=function(){var w=T.props.eventKey,O=T.props.context.keyEntities,I=O[w]||{},R=I.children;return!!(R||[]).length},T.isLeaf=function(){var w=T.props,O=w.isLeaf,I=w.loaded,R=T.props.context.loadData,M=T.hasChildren();return O===!1?!1:O||!R&&!M||R&&I&&!M},T.isDisabled=function(){var w=T.props.disabled,O=T.props.context.disabled;return!!(O||w)},T.isCheckable=function(){var w=T.props.checkable,O=T.props.context.checkable;return!O||w===!1?!1:O},T.syncLoadData=function(w){var O=w.expanded,I=w.loading,R=w.loaded,M=T.props.context,F=M.loadData,P=M.onNodeLoad;if(I)return;F&&O&&!T.isLeaf()&&(!T.hasChildren()&&!R&&P(Object(s.b)(T.props)))},T.renderSwitcher=function(){var w=T.props,O=w.expanded,I=w.switcherIcon,R=T.props.context,M=R.prefixCls,F=R.switcherIcon,P=I||F;if(T.isLeaf())return a.createElement("span",{className:t()("".concat(M,"-switcher"),"".concat(M,"-switcher-noop"))},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!0})):P);var X=t()("".concat(M,"-switcher"),"".concat(M,"-switcher_").concat(O?c:d));return a.createElement("span",{onClick:T.onExpand,className:X},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!1})):P)},T.renderCheckbox=function(){var w=T.props,O=w.checked,I=w.halfChecked,R=w.disableCheckbox,M=T.props.context.prefixCls,F=T.isDisabled(),P=T.isCheckable();if(!P)return null;var X=typeof P!="boolean"?P:null;return a.createElement("span",{className:t()("".concat(M,"-checkbox"),O&&"".concat(M,"-checkbox-checked"),!O&&I&&"".concat(M,"-checkbox-indeterminate"),(F||R)&&"".concat(M,"-checkbox-disabled")),onClick:T.onCheck},X)},T.renderIcon=function(){var w=T.props.loading,O=T.props.context.prefixCls;return a.createElement("span",{className:t()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(T.getNodeState()||"docu"),w&&"".concat(O,"-icon_loading"))})},T.renderSelector=function(){var w=T.state.dragNodeHighlight,O=T.props,I=O.title,R=O.selected,M=O.icon,F=O.loading,P=O.data,X=T.props.context,B=X.prefixCls,j=X.showIcon,W=X.icon,z=X.draggable,V=X.loadData,Q=X.titleRender,G=T.isDisabled(),re="".concat(B,"-node-content-wrapper"),ee;if(j){var ue=M||W;ee=ue?a.createElement("span",{className:t()("".concat(B,"-iconEle"),"".concat(B,"-icon__customize"))},typeof ue=="function"?ue(T.props):ue):T.renderIcon()}else V&&F&&(ee=T.renderIcon());var $;typeof I=="function"?$=I(P):Q?$=Q(P):$=I;var be=a.createElement("span",{className:"".concat(B,"-title")},$);return a.createElement("span",{ref:T.setSelectHandle,title:typeof I=="string"?I:"",className:t()("".concat(re),"".concat(re,"-").concat(T.getNodeState()||"normal"),!G&&(R||w)&&"".concat(B,"-node-selected"),!G&&z&&"draggable"),draggable:!G&&z||void 0,"aria-grabbed":!G&&z||void 0,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onContextMenu:T.onContextMenu,onClick:T.onSelectorClick,onDoubleClick:T.onSelectorDoubleClick,onDragStart:z?T.onDragStart:void 0},ee,be)},T}return Object(m.a)(_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var w=this.props.selectable,O=this.props.context.selectable;return typeof w=="boolean"?w:O}},{key:"render",value:function(){var w,O=this.props,I=O.eventKey,R=O.className,M=O.style,F=O.dragOver,P=O.dragOverGapTop,X=O.dragOverGapBottom,B=O.isLeaf,j=O.isStart,W=O.isEnd,z=O.expanded,V=O.selected,Q=O.checked,G=O.halfChecked,re=O.loading,ee=O.domRef,ue=O.active,$=O.onMouseMove,be=Object(p.a)(O,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),_e=this.props.context,Ee=_e.prefixCls,Xe=_e.filterTreeNode,He=_e.draggable,nt=_e.keyEntities,Ie=this.isDisabled(),oe=Object(e.f)(be),ot=nt[I]||{},he=ot.level,J=W[W.length-1];return a.createElement("div",Object.assign({ref:ee,className:t()(R,"".concat(Ee,"-treenode"),(w={},Object(y.a)(w,"".concat(Ee,"-treenode-disabled"),Ie),Object(y.a)(w,"".concat(Ee,"-treenode-switcher-").concat(z?"open":"close"),!B),Object(y.a)(w,"".concat(Ee,"-treenode-checkbox-checked"),Q),Object(y.a)(w,"".concat(Ee,"-treenode-checkbox-indeterminate"),G),Object(y.a)(w,"".concat(Ee,"-treenode-selected"),V),Object(y.a)(w,"".concat(Ee,"-treenode-loading"),re),Object(y.a)(w,"".concat(Ee,"-treenode-active"),ue),Object(y.a)(w,"".concat(Ee,"-treenode-leaf-last"),J),Object(y.a)(w,"drag-over",!Ie&&F),Object(y.a)(w,"drag-over-gap-top",!Ie&&P),Object(y.a)(w,"drag-over-gap-bottom",!Ie&&X),Object(y.a)(w,"filter-node",Xe&&Xe(Object(s.b)(this.props))),w)),style:M,onDragEnter:He?this.onDragEnter:void 0,onDragOver:He?this.onDragOver:void 0,onDragLeave:He?this.onDragLeave:void 0,onDrop:He?this.onDrop:void 0,onDragEnd:He?this.onDragEnd:void 0,onMouseMove:$},oe),a.createElement(r,{prefixCls:Ee,level:he,isStart:j,isEnd:W}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(a.Component),b=function(C){return a.createElement(o.a.Consumer,null,function(_){return a.createElement(v,Object.assign({},C,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var S=D.a=b},lrIw:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("cDf5"),A=n.n(x),m=n("J4zp"),f=n.n(m),h=n("q1tI"),u=n.n(h),a=n("Zm9Q"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("2fM7"),l=n("H84U"),r=n("uaoM"),s=n("0n0R"),c=e.a.Option,d=e.a;function g(S){return S&&S.type&&(S.type.isSelectOption||S.type.isSelectOptGroup)}var v=function(E,C){var _=E.prefixCls,T=E.className,w=E.children,O=E.dataSource,I=Object(a.a)(w),R=h.useRef();h.useImperativeHandle(C,function(){return R.current});var M;if(I.length===1&&Object(s.b)(I[0])&&!g(I[0])){var F=f()(I,1);M=F[0]}var P=function(){return M},X;return I.length&&g(I[0])?X=w:X=O?O.map(function(B){if(Object(s.b)(B))return B;switch(A()(B)){case"string":return h.createElement(c,{key:B,value:B},B);case"object":{var j=B.value;return h.createElement(c,{key:j,value:j},B.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],h.useEffect(function(){Object(r.a)(!("dataSource"in E),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!M||!("size"in E),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),h.createElement(l.a,null,function(B){var j=B.getPrefixCls,W=j("select",_);return h.createElement(d,p()({ref:R},Object(o.default)(E,["dataSource"]),{prefixCls:W,className:t()(T,"".concat(W,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:P}),X)})},b=h.forwardRef(v);b.Option=c,D.a=b},lwQL:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("9wZj"),A=n("c8qY"),m=n("SgGq"),f=n("Ae+d"),h=n("xSat"),u=h.onIrrelevantElement,a=n("IwbS"),i=n("SA8n"),t=n("U/Mo"),o=t.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",r=["itemStyle","opacity"],s=["lineStyle","opacity"];function c(b,S){var E=b.getVisual("opacity");return E!=null?E:b.getModel().get(S)}function d(b,S,E){var C=b.getGraphicEl(),_=c(b,S);E!=null&&(_==null&&(_=1),_*=E),C.downplay&&C.downplay(),C.traverse(function(T){if(!T.isGroup){var w=T.lineLabelOriginalOpacity;(w==null||E!=null)&&(w=_),T.setStyle("opacity",w)}})}function g(b,S){var E=c(b,S),C=b.getGraphicEl();C.traverse(function(_){!_.isGroup&&_.setStyle("opacity",E)}),C.highlight&&C.highlight()}var v=y.extendChartView({type:"graph",init:function(b,S){var E=new x,C=new A,_=this.group;this._controller=new m(S.getZr()),this._controllerHost={target:_},_.add(E.group),_.add(C.group),this._symbolDraw=E,this._lineDraw=C,this._firstRender=!0},render:function(b,S,E){var C=this,_=b.coordinateSystem;this._model=b;var T=this._symbolDraw,w=this._lineDraw,O=this.group;if(_.type==="view"){var I={position:_.position,scale:_.scale};this._firstRender?O.attr(I):a.updateProps(O,I,b)}i(b.getGraph(),o(b));var R=b.getData();T.updateData(R);var M=b.getEdgeData();w.updateData(M),this._updateNodeAndLinkScale(),this._updateController(b,S,E),clearTimeout(this._layoutTimeout);var F=b.forceLayout,P=b.get("force.layoutAnimation");F&&this._startForceLayoutIteration(F,P),R.eachItemGraphicEl(function(W,z){var V=R.getItemModel(z);W.off("drag").off("dragend");var Q=V.get("draggable");Q&&W.on("drag",function(){F&&(F.warmUp(),!this._layouting&&this._startForceLayoutIteration(F,P),F.setFixed(z),R.setItemLayout(z,W.position))},this).on("dragend",function(){F&&F.setUnfixed(z)},this),W.setDraggable(Q&&F),W[e]&&W.off("mouseover",W[e]),W[l]&&W.off("mouseout",W[l]),V.get("focusNodeAdjacency")&&(W.on("mouseover",W[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:W.dataIndex})}),W.on("mouseout",W[l]=function(){C._dispatchUnfocus(E)}))},this),R.graph.eachEdge(function(W){var z=W.getGraphicEl();z[e]&&z.off("mouseover",z[e]),z[l]&&z.off("mouseout",z[l]),W.getModel().get("focusNodeAdjacency")&&(z.on("mouseover",z[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:W.dataIndex})}),z.on("mouseout",z[l]=function(){C._dispatchUnfocus(E)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),B=R.getLayout("cx"),j=R.getLayout("cy");R.eachItemGraphicEl(function(W,z){var V=R.getItemModel(z),Q=V.get("label.rotate")||0,G=W.getSymbolPath();if(X){var re=R.getItemLayout(z),ee=Math.atan2(re[1]-j,re[0]-B);ee<0&&(ee=Math.PI*2+ee);var ue=re[0]<B;ue&&(ee=ee-Math.PI);var $=ue?"left":"right";a.modifyLabelStyle(G,{textRotation:-ee,textPosition:$,textOrigin:"center"},{textPosition:$})}else a.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,S){var E=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){E._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:E._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,S,E,C){var _=b.getData(),T=_.graph,w=C.dataIndex,O=C.edgeDataIndex,I=T.getNodeByIndex(w),R=T.getEdgeByIndex(O);if(!I&&!R)return;T.eachNode(function(M){d(M,r,.1)}),T.eachEdge(function(M){d(M,s,.1)}),I&&(g(I,r),p.each(I.edges,function(M){if(M.dataIndex<0)return;g(M,s),g(M.node1,r),g(M.node2,r)})),R&&(g(R,s),g(R.node1,r),g(R.node2,r))},unfocusNodeAdjacency:function(b,S,E,C){var _=b.getData().graph;_.eachNode(function(T){d(T,r)}),_.eachEdge(function(T){d(T,s)})},_startForceLayoutIteration:function(b,S){var E=this;(function C(){b.step(function(_){E.updateLayout(E._model),(E._layouting=!_)&&(S?E._layoutTimeout=setTimeout(C,16):C())})})()},_updateController:function(b,S,E){var C=this._controller,_=this._controllerHost,T=this.group;if(C.setPointerChecker(function(w,O,I){var R=T.getBoundingRect();return R.applyTransform(T.transform),R.contain(O,I)&&!u(w,E,b)}),b.coordinateSystem.type!=="view"){C.disable();return}C.enable(b.get("roam")),_.zoomLimit=b.get("scaleLimit"),_.zoom=b.coordinateSystem.getZoom(),C.off("pan").off("zoom").on("pan",function(w){f.updateViewOnPan(_,w.dx,w.dy),E.dispatchAction({seriesId:b.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){f.updateViewOnZoom(_,w.scale,w.originX,w.originY),E.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),i(b.getGraph(),o(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,S=b.getData(),E=o(b),C=[E,E];S.eachItemGraphicEl(function(_,T){_.attr("scale",C)})},updateLayout:function(b){i(b.getGraph(),o(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,S){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});k.exports=v},m9t5:function(k,D,n){var y=n("KCsZ"),p=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),x={getAreaStyle:function(A,m){return p(this,A,m)}};k.exports=x},mFDi:function(k,D,n){var y=n("QBsz"),p=n("Fofx"),x=y.applyTransform,A=Math.min,m=Math.max;function f(u,a,i,t){i<0&&(u=u+i,i=-i),t<0&&(a=a+t,t=-t),this.x=u,this.y=a,this.width=i,this.height=t}f.prototype={constructor:f,union:function(a){var i=A(a.x,this.x),t=A(a.y,this.y);this.width=m(a.x+a.width,this.x+this.width)-i,this.height=m(a.y+a.height,this.y+this.height)-t,this.x=i,this.y=t},applyTransform:function(){var u=[],a=[],i=[],t=[];return function(o){if(!o)return;u[0]=i[0]=this.x,u[1]=t[1]=this.y,a[0]=t[0]=this.x+this.width,a[1]=i[1]=this.y+this.height,x(u,u,o),x(a,a,o),x(i,i,o),x(t,t,o),this.x=A(u[0],a[0],i[0],t[0]),this.y=A(u[1],a[1],i[1],t[1]);var e=m(u[0],a[0],i[0],t[0]),l=m(u[1],a[1],i[1],t[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(a){var i=this,t=a.width/i.width,o=a.height/i.height,e=p.create();return p.translate(e,e,[-i.x,-i.y]),p.scale(e,e,[t,o]),p.translate(e,e,[a.x,a.y]),e},intersect:function(a){if(!a)return!1;a instanceof f||(a=f.create(a));var i=this,t=i.x,o=i.x+i.width,e=i.y,l=i.y+i.height,r=a.x,s=a.x+a.width,c=a.y,d=a.y+a.height;return!(o<r||s<t||l<c||d<e)},contain:function(a,i){var t=this;return a>=t.x&&a<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(a){this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},f.create=function(u){return new f(u.x,u.y,u.width,u.height)};var h=f;k.exports=h},mHUz:function(k,D,n){"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 n=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=n},"mO/d":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("I9Y+"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},mOdp:function(k,D,n){var y=n("bYtY"),p=y.createHashMap;function x(A){return{getTargetSeries:function(m){var f={},h=p();return m.eachSeriesByType(A,function(u){u.__paletteScope=f,h.set(u.uid,u)}),h},reset:function(m,f){var h=m.getRawData(),u={},a=m.getData();a.each(function(i){var t=a.getRawIndex(i);u[t]=i}),h.each(function(i){var t=u[i],o=t!=null&&a.getItemVisual(t,"color",!0),e=t!=null&&a.getItemVisual(t,"borderColor",!0),l;if((!o||!e)&&(l=h.getItemModel(i)),!o){var r=l.get("itemStyle.color")||m.getColorFromPalette(h.getName(i)||i+"",m.__paletteScope,h.count());t!=null&&a.setItemVisual(t,"color",r)}if(!e){var s=l.get("itemStyle.borderColor");t!=null&&a.setItemVisual(t,"borderColor",s)}})}}}k.exports=x},mTgk:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("mHUz"));function p(u){return u&&u.__esModule?u:{default:u}}var x={};function A(u,a){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,a,a]}function m(u,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,i,a]}function f(u,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,a,i]}m("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),A("AltGraph",y.default.XK_ISO_Level3_Shift),A("CapsLock",y.default.XK_Caps_Lock),m("Control",y.default.XK_Control_L,y.default.XK_Control_R),m("Meta",y.default.XK_Super_L,y.default.XK_Super_R),A("NumLock",y.default.XK_Num_Lock),A("ScrollLock",y.default.XK_Scroll_Lock),m("Shift",y.default.XK_Shift_L,y.default.XK_Shift_R),f("Enter",y.default.XK_Return,y.default.XK_KP_Enter),A("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),A("Backspace",y.default.XK_BackSpace),f("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),A("Copy",y.default.XF86XK_Copy),A("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),A("Paste",y.default.XF86XK_Paste),A("Redo",y.default.XK_Redo),A("Undo",y.default.XK_Undo),A("Cancel",y.default.XK_Cancel),A("ContextMenu",y.default.XK_Menu),A("Escape",y.default.XK_Escape),A("Execute",y.default.XK_Execute),A("Find",y.default.XK_Find),A("Help",y.default.XK_Help),A("Pause",y.default.XK_Pause),A("Select",y.default.XK_Select),A("ZoomIn",y.default.XF86XK_ZoomIn),A("ZoomOut",y.default.XF86XK_ZoomOut),A("BrightnessDown",y.default.XF86XK_MonBrightnessDown),A("BrightnessUp",y.default.XF86XK_MonBrightnessUp),A("Eject",y.default.XF86XK_Eject),A("LogOff",y.default.XF86XK_LogOff),A("Power",y.default.XF86XK_PowerOff),A("PowerOff",y.default.XF86XK_PowerDown),A("PrintScreen",y.default.XK_Print),A("Hibernate",y.default.XF86XK_Hibernate),A("Standby",y.default.XF86XK_Standby),A("WakeUp",y.default.XF86XK_WakeUp),A("AllCandidates",y.default.XK_MultipleCandidate),A("Alphanumeric",y.default.XK_Eisu_Shift),A("CodeInput",y.default.XK_Codeinput),A("Compose",y.default.XK_Multi_key),A("Convert",y.default.XK_Henkan),A("GroupFirst",y.default.XK_ISO_First_Group),A("GroupLast",y.default.XK_ISO_Last_Group),A("GroupNext",y.default.XK_ISO_Next_Group),A("GroupPrevious",y.default.XK_ISO_Prev_Group),A("NonConvert",y.default.XK_Muhenkan),A("PreviousCandidate",y.default.XK_PreviousCandidate),A("SingleCandidate",y.default.XK_SingleCandidate),A("HangulMode",y.default.XK_Hangul),A("HanjaMode",y.default.XK_Hangul_Hanja),A("JunjuaMode",y.default.XK_Hangul_Jeonja),A("Eisu",y.default.XK_Eisu_toggle),A("Hankaku",y.default.XK_Hankaku),A("Hiragana",y.default.XK_Hiragana),A("HiraganaKatakana",y.default.XK_Hiragana_Katakana),A("KanaMode",y.default.XK_Kana_Shift),A("KanjiMode",y.default.XK_Kanji),A("Katakana",y.default.XK_Katakana),A("Romaji",y.default.XK_Romaji),A("Zenkaku",y.default.XK_Zenkaku),A("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),A("F1",y.default.XK_F1),A("F2",y.default.XK_F2),A("F3",y.default.XK_F3),A("F4",y.default.XK_F4),A("F5",y.default.XK_F5),A("F6",y.default.XK_F6),A("F7",y.default.XK_F7),A("F8",y.default.XK_F8),A("F9",y.default.XK_F9),A("F10",y.default.XK_F10),A("F11",y.default.XK_F11),A("F12",y.default.XK_F12),A("F13",y.default.XK_F13),A("F14",y.default.XK_F14),A("F15",y.default.XK_F15),A("F16",y.default.XK_F16),A("F17",y.default.XK_F17),A("F18",y.default.XK_F18),A("F19",y.default.XK_F19),A("F20",y.default.XK_F20),A("F21",y.default.XK_F21),A("F22",y.default.XK_F22),A("F23",y.default.XK_F23),A("F24",y.default.XK_F24),A("F25",y.default.XK_F25),A("F26",y.default.XK_F26),A("F27",y.default.XK_F27),A("F28",y.default.XK_F28),A("F29",y.default.XK_F29),A("F30",y.default.XK_F30),A("F31",y.default.XK_F31),A("F32",y.default.XK_F32),A("F33",y.default.XK_F33),A("F34",y.default.XK_F34),A("F35",y.default.XK_F35),A("Close",y.default.XF86XK_Close),A("MailForward",y.default.XF86XK_MailForward),A("MailReply",y.default.XF86XK_Reply),A("MailSend",y.default.XF86XK_Send),A("MediaFastForward",y.default.XF86XK_AudioForward),A("MediaPause",y.default.XF86XK_AudioPause),A("MediaPlay",y.default.XF86XK_AudioPlay),A("MediaRecord",y.default.XF86XK_AudioRecord),A("MediaRewind",y.default.XF86XK_AudioRewind),A("MediaStop",y.default.XF86XK_AudioStop),A("MediaTrackNext",y.default.XF86XK_AudioNext),A("MediaTrackPrevious",y.default.XF86XK_AudioPrev),A("New",y.default.XF86XK_New),A("Open",y.default.XF86XK_Open),A("Print",y.default.XK_Print),A("Save",y.default.XF86XK_Save),A("SpellCheck",y.default.XF86XK_Spell),A("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),A("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),A("AudioVolumeMute",y.default.XF86XK_AudioMute),A("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),A("LaunchApplication1",y.default.XF86XK_MyComputer),A("LaunchApplication2",y.default.XF86XK_Calculator),A("LaunchCalendar",y.default.XF86XK_Calendar),A("LaunchMail",y.default.XF86XK_Mail),A("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),A("LaunchMusicPlayer",y.default.XF86XK_Music),A("LaunchPhone",y.default.XF86XK_Phone),A("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),A("LaunchSpreadsheet",y.default.XF86XK_Excel),A("LaunchWebBrowser",y.default.XF86XK_WWW),A("LaunchWebCam",y.default.XF86XK_WebCam),A("LaunchWordProcessor",y.default.XF86XK_Word),A("BrowserBack",y.default.XF86XK_Back),A("BrowserFavorites",y.default.XF86XK_Favorites),A("BrowserForward",y.default.XF86XK_Forward),A("BrowserHome",y.default.XF86XK_HomePage),A("BrowserRefresh",y.default.XF86XK_Refresh),A("BrowserSearch",y.default.XF86XK_Search),A("BrowserStop",y.default.XF86XK_Stop),A("Dimmer",y.default.XF86XK_BrightnessAdjust),A("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),A("RandomToggle",y.default.XF86XK_AudioRandomPlay),A("SplitScreenToggle",y.default.XF86XK_SplitScreen),A("Subtitle",y.default.XF86XK_Subtitle),A("VideoModeNext",y.default.XF86XK_Next_VMode),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 h=x;D.default=h},mYwL:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("6GrX"),A=Math.PI;function m(f,h){h=h||{},y.defaults(h,{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,a=new p.Rect({style:{fill:h.maskColor},zlevel:h.zlevel,z:1e4});u.add(a);var i=h.fontSize+" sans-serif",t=new p.Rect({style:{fill:"none",text:h.text,font:i,textPosition:"right",textDistance:10,textFill:h.textColor},zlevel:h.zlevel,z:10001});if(u.add(t),h.showSpinner){var o=new p.Arc({shape:{startAngle:-A/2,endAngle:-A/2+.1,r:h.spinnerRadius},style:{stroke:h.color,lineCap:"round",lineWidth:h.lineWidth},zlevel:h.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:A*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:A*3/2}).delay(300).start("circularInOut"),u.add(o)}return u.resize=function(){var e=x.getWidth(h.text,i),l=h.showSpinner?h.spinnerRadius:0,r=(f.getWidth()-l*2-(h.showSpinner&&e?10:0)-e)/2-(h.showSpinner?0:e/2),s=f.getHeight()/2;h.showSpinner&&o.setShape({cx:r,cy:s}),t.setShape({x:r-l,y:s-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:f.getWidth(),height:f.getHeight()})},u.resize(),u}k.exports=m},mdPL:function(k,D,n){(function(y){var p=n("WFqU"),x=D&&!D.nodeType&&D,A=x&&typeof y=="object"&&y&&!y.nodeType&&y,m=A&&A.exports===x,f=m&&p.process,h=function(){try{var u=A&&A.require&&A.require("util").types;return u||f&&f.binding&&f.binding("util")}catch(a){}}();y.exports=h}).call(this,n("YuTi")(k))},mdZa:function(k,D,n){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(p,x){"use strict";if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(p),m=1;m<arguments.length;m++){var f=arguments[m];if(f!=null)for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(A[h]=f[h])}return A},writable:!0,configurable:!0}),function(){function y(p,x){x=x||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(p,x.bubbles,x.cancelable,x.detail),A}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}},"mh/l":function(k,D,n){"use strict";n.d(D,"b",function(){return S}),n.d(D,"d",function(){return E}),n.d(D,"c",function(){return C});var y=n("pVnL"),p=n.n(y),x=n("lwsE"),A=n.n(x),m=n("W8MJ"),f=n.n(m),h=n("7W2i"),u=n.n(h),a=n("LQ03"),i=n.n(a),t=n("lSNA"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("TSYQ"),s=n.n(r),c=n("BGR+"),d=n("LlR5"),g=n("H84U"),v=n("3Nzz"),b=n("uaoM");function S(T){return typeof T=="undefined"||T===null?"":T}function E(T,w,O){if(O){var I=w;if(w.type==="click"){I=Object.create(w),I.target=T,I.currentTarget=T;var R=T.value;T.value="",O(I),T.value=R;return}O(I)}}function C(T,w,O,I,R){var M;return s()(T,(M={},o()(M,"".concat(T,"-sm"),O==="small"),o()(M,"".concat(T,"-lg"),O==="large"),o()(M,"".concat(T,"-disabled"),I),o()(M,"".concat(T,"-rtl"),R==="rtl"),o()(M,"".concat(T,"-borderless"),!w),M))}var _=function(T){u()(O,T);var w=i()(O);function O(I){var R;A()(this,O),R=w.call(this,I),R.direction="ltr",R.focus=function(){R.input.focus()},R.saveClearableInput=function(F){R.clearableInput=F},R.saveInput=function(F){R.input=F},R.onFocus=function(F){var P=R.props.onFocus;R.setState({focused:!0},R.clearPasswordValueAttribute),P&&P(F)},R.onBlur=function(F){var P=R.props.onBlur;R.setState({focused:!1},R.clearPasswordValueAttribute),P&&P(F)},R.handleReset=function(F){R.setValue("",function(){R.focus()}),E(R.input,F,R.props.onChange)},R.renderInput=function(F,P,X){var B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=R.props,W=j.className,z=j.addonBefore,V=j.addonAfter,Q=j.size,G=j.disabled,re=Object(c.default)(R.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",p()({autoComplete:B.autoComplete},re,{onChange:R.handleChange,onFocus:R.onFocus,onBlur:R.onBlur,onKeyDown:R.handleKeyDown,className:s()(C(F,X,Q||P,G,R.direction),o()({},W,W&&!z&&!V)),ref:R.saveInput}))},R.clearPasswordValueAttribute=function(){R.removePasswordTimeout=setTimeout(function(){R.input&&R.input.getAttribute("type")==="password"&&R.input.hasAttribute("value")&&R.input.removeAttribute("value")})},R.handleChange=function(F){R.setValue(F.target.value,R.clearPasswordValueAttribute),E(R.input,F,R.props.onChange)},R.handleKeyDown=function(F){var P=R.props,X=P.onPressEnter,B=P.onKeyDown;F.keyCode===13&&X&&X(F),B&&B(F)},R.renderComponent=function(F){var P=F.getPrefixCls,X=F.direction,B=F.input,j=R.state,W=j.value,z=j.focused,V=R.props,Q=V.prefixCls,G=V.bordered,re=G===void 0?!0:G,ee=P("input",Q);return R.direction=X,e.createElement(v.b.Consumer,null,function(ue){return e.createElement(d.a,p()({size:ue},R.props,{prefixCls:ee,inputType:"input",value:S(W),element:R.renderInput(ee,ue,re,B),handleReset:R.handleReset,ref:R.saveClearableInput,direction:X,focused:z,triggerFocus:R.focus,bordered:re}))})};var M=typeof I.value=="undefined"?I.defaultValue:I.value;return R.state={value:M,focused:!1,prevValue:I.value},R}return f()(O,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(R){return Object(d.b)(R)!==Object(d.b)(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(R,M){this.props.value===void 0&&this.setState({value:R},M)}},{key:"render",value:function(){return e.createElement(g.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(R,M){var F=M.prevValue,P={prevValue:R.value};return(R.value!==void 0||F!==R.value)&&(P.value=R.value),P}}]),O}(e.Component);_.defaultProps={type:"text"},D.a=_},mr32:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("J4zp"),f=n.n(m),h=n("q1tI"),u=n("TSYQ"),a=n.n(u),i=n("BGR+"),t=n("V/uB"),o=n.n(t),e=n("H84U"),l=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},r=function(T){var w,O=h.useContext(e.b),I=O.getPrefixCls,R=function(z){var V=T.checked,Q=T.onChange,G=T.onClick;Q&&Q(!V),G&&G(z)},M=T.prefixCls,F=T.className,P=T.checked,X=l(T,["prefixCls","className","checked"]),B=I("tag",M),j=a()(B,(w={},p()(w,"".concat(B,"-checkable"),!0),p()(w,"".concat(B,"-checkable-checked"),P),w),F);return delete X.onChange,h.createElement("span",A()({},X,{className:j,onClick:R}))},s=r,c=n("09Wf"),d=n("g0mS"),g=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},v=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),S=function(T,w){var O,I=T.prefixCls,R=T.className,M=T.style,F=T.children,P=T.icon,X=T.color,B=T.onClose,j=T.closeIcon,W=T.closable,z=W===void 0?!1:W,V=g(T,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=h.useContext(e.b),G=Q.getPrefixCls,re=Q.direction,ee=h.useState(!0),ue=f()(ee,2),$=ue[0],be=ue[1];h.useEffect(function(){"visible"in V&&be(V.visible)},[V.visible]);var _e=function(){return X?v.test(X)||b.test(X):!1},Ee=A()({backgroundColor:X&&!_e()?X:void 0},M),Xe=_e(),He=G("tag",I),nt=a()(He,(O={},p()(O,"".concat(He,"-").concat(X),Xe),p()(O,"".concat(He,"-has-color"),X&&!Xe),p()(O,"".concat(He,"-hidden"),!$),p()(O,"".concat(He,"-rtl"),re==="rtl"),O),R),Ie=function(we){if(we.stopPropagation(),B&&B(we),we.defaultPrevented)return;"visible"in V||be(!1)},oe=function(){return z?j?h.createElement("div",{className:"".concat(He,"-close-icon"),onClick:Ie},j):h.createElement(o.a,{className:"".concat(He,"-close-icon"),onClick:Ie}):null},ot="onClick"in V||F&&F.type==="a",he=Object(i.default)(V,["visible"]),J=P||null,Y=J?h.createElement(h.Fragment,null,J,h.createElement("span",null,F)):F,q=h.createElement("span",A()({},he,{ref:w,className:nt,style:Ee}),Y,oe());return ot?h.createElement(d.a,null,q):q},E=h.forwardRef(S);E.displayName="Tag",E.CheckableTag=s;var C=D.a=E},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,n,y){function p(m,f){if(!n[m]){if(!D[m]){var h=typeof require=="function"&&require;if(!f&&h)return require(m,!0);if(x)return x(m,!0);var u=new Error("Cannot find module '"+m+"'");throw u.code="MODULE_NOT_FOUND",u}var a=n[m]={exports:{}};D[m][0].call(a.exports,function(i){var t=D[m][1][i];return p(t||i)},a,a.exports,k,D,n,y)}return n[m].exports}for(var x=typeof require=="function"&&require,A=0;A<y.length;A++)p(y[A]);return p}return k}()({1:[function(k,D,n){"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,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/promise"),A=a(x),m=k("babel-runtime/regenerator"),f=a(m),h=k("babel-runtime/core-js/object/assign"),u=a(h);function a(P){return P&&P.__esModule?P:{default:P}}var i=k("debug")("ali-oss"),t=k("copy-to"),o=k("xml2js"),e=k("agentkeepalive"),l=k("merge-descriptors"),r=k("url"),s=k("is-type-of"),c=k("platform"),d=k("utility"),g=k("urllib"),v=k("./version"),b=k("bowser"),S=k("../common/signUtils"),E=k("../common/utils/isIP"),C=E.isIP,_=k("../common/client/initOptions"),T=k("../common/utils/createRequest"),w=T.createRequest,O=new e;function I(){var P=c.name,X=c.version;P&&P.toLowerCase&&P.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function R(){return location&&location.protocol==="https:"}function M(P,X){if(I(),!(this instanceof M))return new M(P,X);P&&P.inited?this.options=P:this.options=M.initOptions(P),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||O),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=M,M.initOptions=function(X){X.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var B=(0,u.default)({secure:R(),useFetch:!1},X);return _(B)};var F=M.prototype;F.debug=i,l(F,k("./object")),l(F,k("../common/bucket/getBucketWebsite")),l(F,k("../common/bucket/putBucketWebsite")),l(F,k("../common/bucket/deleteBucketWebsite")),l(F,k("../common/bucket/getBucketLifecycle")),l(F,k("../common/bucket/putBucketLifecycle")),l(F,k("../common/bucket/deleteBucketLifecycle")),l(F,k("../common/bucket/putBucketVersioning")),l(F,k("../common/bucket/getBucketVersioning")),l(F,k("./managed-upload")),l(F,k("../common/multipart")),l(F,k("../common/parallel")),F.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),S.computeSignature(this.options.accessKeySecret,X)},F.authorization=function(X,B,j,W){var z=S.buildCanonicalString(X.toUpperCase(),B,{headers:W,parameters:j});return S.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},F.request=function(X){var B,j,W,z,V,Q;return f.default.async(function(re){for(;;)switch(re.prev=re.next){case 0:return B=w.call(this,X),this.options.useFetch||(B.params.mode="disable-fetch"),j=void 0,W=void 0,z=!!X.stream,re.prev=5,re.next=8,f.default.awrap(this.urllib.request(B.url,B.params));case 8:j=re.sent,this.debug("response %s %s, got %s, headers: %j",X.method,B.url,j.status,j.headers,"info"),re.next=15;break;case 12:re.prev=12,re.t0=re.catch(5),W=re.t0;case 15:if(V=void 0,!(j&&X.successStatuses&&X.successStatuses.indexOf(j.status)===-1)){re.next=28;break}return re.next=19,f.default.awrap(this.requestError(j));case 19:if(V=re.sent,!(V.code==="RequestTimeTooSkewed"&&!z)){re.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,re.next=24,f.default.awrap(this.request(X));case 24:return re.abrupt("return",re.sent);case 25:V.params=X,re.next=32;break;case 28:if(!W){re.next=32;break}return re.next=31,f.default.awrap(this.requestError(W));case 31:V=re.sent;case 32:if(!V){re.next=34;break}throw V;case 34:if(!X.xmlResponse){re.next=39;break}return re.next=37,f.default.awrap(this.parseXML(j.data));case 37:Q=re.sent,j.data=Q;case 39:return re.abrupt("return",j);case 40:case"end":return re.stop()}},null,this,[[5,12]])},F._getResource=function(X){var B="/";return X.bucket&&(B+=X.bucket+"/"),X.object&&(B+=X.object),B},F._isIP=C,F._escape=function(X){return d.encodeURIComponent(X).replace(/%2F/g,"/")},F._getReqUrl=function(X){var B={};t(this.options.endpoint).to(B);var j=this._isIP(B.hostname),W=this.options.cname;X.bucket&&!W&&!j&&(B.host=X.bucket+"."+B.host);var z="/";X.bucket&&j&&(z+=X.bucket+"/"),X.object&&(z+=this._escape(X.object).replace(/\+/g,"%2B")),B.pathname=z;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 B.query=V,r.format(B)},F._getUserAgent=function(){var X=p&&p.browser?"js":"nodejs",B="aliyun-sdk-"+X+"/"+v.version,j=c.description;return!j&&p&&(j="Node.js "+p.version.slice(1)+" on "+p.platform+" "+p.arch),this._checkUserAgent(B+" "+j)},F._checkUserAgent=function(X){var B=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return B},F.checkBrowserAndVersion=function(X,B){return b.name===X&&b.version.split(".")[0]===B},F.parseXML=function(X){return new A.default(function(B,j){y.isBuffer(X)&&(X=X.toString()),o.parseString(X,{explicitRoot:!1,explicitArray:!1},function(W,z){W?j(W):B(z)})})},F.requestError=function(X){var B,j,W,z;return f.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(B=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(B=new Error(X.message),B.name=X.name,B.status=X.status,B.code=X.name):(X.status===404?(B=new Error("Object not exists"),B.name="NoSuchKeyError",B.status=404,B.code="NoSuchKey"):X.status===412?(B=new Error("Pre condition failed"),B.name="PreconditionFailedError",B.status=412,B.code="PreconditionFailed"):(B=new Error("Unknow error, status: "+X.status),B.name="UnknowError",B.status=X.status),B.requestId=X.headers["x-oss-request-id"],B.host=""),Q.next=33;break;case 5:return j=String(X.data),this.debug("request response error data: %s",j,"error"),W=void 0,Q.prev=8,Q.next=11,f.default.awrap(this.parseXML(j));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(j,"error"),Q.t1.message+=`
raw xml: `+j,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:z=W.Message||"unknow request error, status: "+X.status,W.Condition&&(z+=" (condition: "+W.Condition+")"),B=new Error(z),B.name=W.Code?W.Code+"Error":"UnknowError",B.status=X.status,B.code=W.Code,B.requestId=W.RequestId,B.hostId=W.HostId,B.serverTime=W.ServerTime;case 33:return this.debug("generate error %j",B,"error"),Q.abrupt("return",B);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,n){(function(y){"use strict";var p=k("babel-runtime/core-js/array/from"),x=u(p),A=k("babel-runtime/core-js/promise"),m=u(A),f=k("babel-runtime/regenerator"),h=u(f);function u(S){return S&&S.__esModule?S:{default:S}}var a=k("is-type-of"),i=k("util"),t=k("path"),o=k("mime"),e=k("copy-to"),l=k("../common/utils/isBlob"),r=l.isBlob,s=k("../common/utils/isFile"),c=s.isFile,d=n;d.multipartUpload=function(E,C,_){var T,w,O,I,R,M,F,P,X;return h.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){j.next=6;break}return j.next=5,h.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return j.abrupt("return",j.sent);case 6:return T=100*1024,_.mime||(c(C)?_.mime=o.getType(t.extname(C.name)):r(C)?_.mime=C.type:_.mime=o.getType(t.extname(C))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),j.next=12,h.default.awrap(this._getFileSize(C));case 12:if(w=j.sent,!(w<T)){j.next=25;break}return O=this._createStream(C,0,w),_.contentLength=w,j.next=18,h.default.awrap(this.putStream(E,O,_));case 18:if(I=j.sent,!(_&&_.progress)){j.next=22;break}return j.next=22,h.default.awrap(_.progress(1));case 22:return R={res:I.res,bucket:this.options.bucket,name:E,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(R.data=I.data),j.abrupt("return",R);case 25:if(!(_.partSize&&!(parseInt(_.partSize,10)===_.partSize))){j.next=27;break}throw new Error("partSize must be int number");case 27:if(!(_.partSize&&_.partSize<T)){j.next=29;break}throw new Error("partSize must not be smaller than "+T);case 29:return j.next=31,h.default.awrap(this.initMultipartUpload(E,_));case 31:if(M=j.sent,F=M.uploadId,P=this._getPartSize(w,_.partSize),X={file:C,name:E,fileSize:w,partSize:P,uploadId:F,doneParts:[]},!(_&&_.progress)){j.next=38;break}return j.next=38,h.default.awrap(_.progress(0,X,M.res));case 38:return j.next=40,h.default.awrap(this._resumeMultipart(X,_));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},d._resumeMultipart=function(E,C){var _,T,w,O,I,R,M,F,P,X,B,j,W,z,V,Q,G,re;return h.default.async(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(_=this,!this.isCancel()){ue.next=3;break}throw this._makeCancelEvent();case 3:return T=E.file,w=E.fileSize,O=E.partSize,I=E.uploadId,R=E.doneParts,M=E.name,F=[],R.length>0&&e(R).to(F),P=this._divideParts(w,O),X=P.length,B=!1,j=function(be,_e){var Ee=this;return new m.default(function(He,nt){var Ie,oe,ot,he;return h.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,be.isCancel()){Y.next=18;break}return Ie=P[_e-1],oe={stream:be._createStream(T,Ie.start,Ie.end),size:Ie.end-Ie.start},Y.next=6,h.default.awrap(be._uploadPart(M,I,_e,oe));case 6:if(ot=Y.sent,!(!be.isCancel()&&!B)){Y.next=15;break}if(E.doneParts.push({number:_e,etag:ot.res.headers.etag}),!C.progress){Y.next=12;break}return Y.next=12,h.default.awrap(C.progress(R.length/X,E,ot.res));case 12:He({number:_e,etag:ot.res.headers.etag}),Y.next=16;break;case 15:He();case 16:Y.next=19;break;case 18:He();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),he=new Error,he.name=Y.t0.name,he.message=Y.t0.message,he.stack=Y.t0.stack,he.partNum=_e,e(Y.t0).to(he),nt(he);case 30:case"end":return Y.stop()}},null,Ee,[[0,21]])})},W=(0,x.default)(new Array(X),function($,be){return be+1}),z=F.map(function($){return $.number}),V=W.filter(function($){return z.indexOf($)<0}),Q=5,G=C.parallel||Q,ue.next=17,h.default.awrap(this._parallel(V,G,function($){return new m.default(function(be,_e){j(_,$).then(function(Ee){Ee&&F.push(Ee),be()}).catch(function(Ee){_e(Ee)})})}));case 17:if(re=ue.sent,B=!0,!this.isCancel()){ue.next=22;break}throw j=null,this._makeCancelEvent();case 22:if(!(re&&re.length>0)){ue.next=25;break}throw re[0].message="Failed to upload some parts with error: "+re[0].toString()+" part_num: "+re[0].partNum,re[0];case 25:return ue.next=27,h.default.awrap(this.completeMultipartUpload(M,I,F,C));case 27:return ue.abrupt("return",ue.sent);case 28:case"end":return ue.stop()}},null,this)},d._getFileSize=function(E){return h.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!a.buffer(E)){_.next=4;break}return _.abrupt("return",E.length);case 4:if(!(r(E)||c(E))){_.next=6;break}return _.abrupt("return",E.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _.stop()}},null,this)};var g=k("stream"),v=g.Readable;function b(S,E){if(!(this instanceof b))return new b(S,E);v.call(this,E),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}i.inherits(b,v),b.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var C=!0;C&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,T=_+E;T=T>this.fileBuffer.length?this.fileBuffer.length:T,this.start=T,C=this.push(this.fileBuffer.slice(_,T))}},b.prototype._read=function(E){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var C=16*1024;E=E||C;var _=this;this.reader.onload=function(w){_.fileBuffer=y.from(new Uint8Array(w.target.result)),_.file=null,_.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},d._createStream=function(E,C,_){if(r(E)||c(E))return new b(E.slice(C,_));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(E,C){var _=10*1e3,T=1024*1024;return C?Math.max(Math.ceil(E/_),C):T},d._divideParts=function(E,C){for(var _=Math.ceil(E/C),T=[],w=0;w<_;w++){var O=C*w,I=Math.min(O+C,E);T.push({start:O,end:I})}return T}}).call(this,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,n){"use strict";var y=k("babel-runtime/core-js/promise"),p=a(y),x=k("babel-runtime/core-js/object/keys"),A=a(x),m=k("babel-runtime/core-js/object/assign"),f=a(m),h=k("babel-runtime/regenerator"),u=a(h);function a(_){return _&&_.__esModule?_:{default:_}}var i=k("utility"),t=k("fs"),o=k("is-type-of"),e=k("url"),l=k("copy-to"),r=k("path"),s=k("mime"),c=k("../common/callback"),d=k("../common/signUtils"),g=k("merge-descriptors"),v=k("../common/utils/isBlob"),b=v.isBlob,S=k("../common/utils/isFile"),E=S.isFile,C=n;C.append=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",M.next=6,u.default.awrap(this.put(T,w,O));case 6:return I=M.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],M.abrupt("return",I);case 9:case"end":return M.stop()}},null,this)},C.put=function(T,w,O){var I,R,M,F,P,X,B;return u.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(I=void 0,O=O||{},T=this._objectName(T),!o.buffer(w)){W.next=7;break}I=w,W.next=33;break;case 7:if(!(b(w)||E(w))){W.next=32;break}return O.mime||(E(w)?O.mime=s.getType(r.extname(w.name)):O.mime=w.type),R=this._createStream(w,0,w.size),W.next=12,u.default.awrap(this._getFileSize(w));case 12:return O.contentLength=W.sent,W.prev=13,W.next=16,u.default.awrap(this.putStream(T,R,O));case 16:return M=W.sent,W.abrupt("return",M);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(T,w,O));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 O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),F=O.method||"PUT",P=this._objectRequestParams(F,T,O),c.encodeCallback(P,O),P.mime=O.mime,P.content=I,P.successStatuses=[200],W.next=43,u.default.awrap(this.request(P));case 43:return X=W.sent,B={name:T,url:this._objectUrl(T),res:X.res},P.headers&&P.headers["x-oss-callback"]&&(B.data=JSON.parse(X.data.toString())),W.abrupt("return",B);case 47:case"end":return W.stop()}},null,this,[[13,20]])},C.putStream=function(T,w,O){var I,R,M,F;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=O||{},O.headers=O.headers||{},T=this._objectName(T),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),I=O.method||"PUT",R=this._objectRequestParams(I,T,O),c.encodeCallback(R,O),R.mime=O.mime,R.stream=w,R.successStatuses=[200],X.next=13,u.default.awrap(this.request(R));case 13:return M=X.sent,F={name:T,url:this._objectUrl(T),res:M.res},R.headers&&R.headers["x-oss-callback"]&&(F.data=JSON.parse(M.data.toString())),X.abrupt("return",F);case 17:case"end":return X.stop()}},null,this)},g(C,k("../common/object/copyObject")),g(C,k("../common/object/getObjectTagging")),g(C,k("../common/object/putObjectTagging")),g(C,k("../common/object/deleteObjectTagging")),g(C,k("../common/image")),g(C,k("../common/object/getBucketVersions")),g(C,k("../common/object/getACL")),g(C,k("../common/object/putACL")),g(C,k("../common/object/head")),g(C,k("../common/object/delete")),g(C,k("../common/object/get")),g(C,k("../common/object/putSymlink")),g(C,k("../common/object/getSymlink")),g(C,k("../common/object/deleteMulti")),g(C,k("../common/object/getObjectMeta")),C.putMeta=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,u.default.awrap(this.copy(T,T,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return I=M.sent,M.abrupt("return",I);case 4:case"end":return M.stop()}},null,this)},C.list=function(T,w){var O,I,R,M,F;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=T,O.xmlResponse=!0,O.successStatuses=[200],X.next=6,u.default.awrap(this.request(O));case 6:return I=X.sent,R=I.data.Contents,M=this,R&&(Array.isArray(R)||(R=[R]),R=R.map(function(B){return{name:B.Key,url:M._objectUrl(B.Key),lastModified:B.LastModified,etag:B.ETag,type:B.Type,size:Number(B.Size),storageClass:B.StorageClass,owner:{id:B.Owner.ID,displayName:B.Owner.DisplayName}}})),F=I.data.CommonPrefixes||null,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(B){return B.Prefix})),X.abrupt("return",{res:I.res,objects:R,prefixes:F,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},C.restore=function(T,w){var O,I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return w=w||{},w.subres=(0,f.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),O=this._objectRequestParams("POST",T,w),O.successStatuses=[202],M.next=7,u.default.awrap(this.request(O));case 7:return I=M.sent,M.abrupt("return",{res:I.res});case 9:case"end":return M.stop()}},null,this)},C.signatureUrl=function(T,w){w=w||{},T=this._objectName(T),w.method=w.method||"GET";var O=i.timestamp()+(w.expires||1800),I={bucket:this.options.bucket,object:T},R=this._getResource(I);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var M=d._signatureForURL(this.options.accessKeySecret,w,R,O),F=e.parse(this._getReqUrl(I));return F.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:M.Signature},l(M.subResource).to(F.query),F.format()},C.getObjectUrl=function(T,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+this._escape(this._objectName(T))},C._objectUrl=function(T){return this._getReqUrl({bucket:this.options.bucket,object:T})},C.generateObjectUrl=function(_,T){if(T)T[T.length-1]!=="/"&&(T+="/");else{T=this.options.endpoint.format();var w=e.parse(T),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,T=w.format()}return T+this._escape(this._objectName(_))},C._objectRequestParams=function(T,w,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},w=this._objectName(w);var I={object:w,bucket:this.options.bucket,method:T,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},l(O.headers).to(I.headers)),I},C._objectName=function(T){return T.replace(/^\/+/,"")},C._convertMetaToHeaders=function(T,w){if(!T)return;(0,A.default)(T).forEach(function(O){w["x-oss-meta-"+O]=T[O]})},C._deleteFileSafe=function(T){var w=this;return new p.default(function(O){t.exists(T,function(I){I?t.unlink(T,function(R){R&&w.debug("unlink %j error: %s",T,R,"error"),O()}):O()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(k,D,n){"use strict";n.version="6.10.0"},{}],6:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=n;f.deleteBucketLifecycle=function(u,a){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"lifecycle",a),i.successStatuses=[204],e.next=5,p.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=n;f.deleteBucketWebsite=function(u,a){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"website",a),i.successStatuses=[204],e.next=5,p.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isArray"),h=f.isArray,u=k("../utils/formatObjKey"),a=u.formatObjKey,i=n;i.getBucketLifecycle=function(o,e){var l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return m(o),l=this._bucketRequestParams("GET",o,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,d.next=6,p.default.awrap(this.request(l));case 6:return r=d.sent,s=r.data.Rule||null,s&&(h(s)||(s=[s]),s=s.map(function(g){return g.ID&&(g.id=g.ID,delete g.ID),g.Tag&&!h(g.Tag)&&(g.Tag=[g.Tag]),a(g,"firstLowerCase")})),d.abrupt("return",{rules:s,res:r.res});case 10:case"end":return d.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=n;f.getBucketVersioning=function(u,a){var i,t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return m(u),i=this._bucketRequestParams("GET",u,"versioning",a),i.xmlResponse=!0,i.successStatuses=[200],l.next=6,p.default.awrap(this.request(i));case 6:return t=l.sent,o=t.data.Status,l.abrupt("return",{status:t.status,versionStatus:o,res:t.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isObject"),h=f.isObject,u=n;u.getBucketWebsite=function(i,t){var o,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return m(i),o=this._bucketRequestParams("GET",i,"website",t),o.successStatuses=[200],o.xmlResponse=!0,s.next=6,p.default.awrap(this.request(o));case 6:return e=s.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(h(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,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(E){return E&&E.__esModule?E:{default:E}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isArray"),h=f.isArray,u=k("../utils/deepCopy"),a=u.deepCopy,i=k("../utils/isObject"),t=i.isObject,o=k("../utils/obj2xml"),e=o.obj2xml,l=k("../utils/checkObjectTag"),r=l.checkObjectTag,s=k("../utils/getStrBytesCount"),c=s.getStrBytesCount,d=n;d.putBucketLifecycle=function(C,_,T){var w,O,I,R,M;return p.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(m(C),h(_)){P.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",C,"lifecycle",T),O=[],I={LifecycleConfiguration:{Rule:O}},_.forEach(function(X){g(X),S(X),X.id&&(X.ID=X.id,delete X.id),O.push(X)}),R=e(I,{headers:!0,firstUpperCase:!0}),w.content=R,w.mime="xml",w.successStatuses=[200],P.next=13,p.default.awrap(this.request(w));case 13:return M=P.sent,P.abrupt("return",{res:M.res});case 15:case"end":return P.stop()}},null,this)};function g(E){E.days&&(E.expiration={days:E.days}),E.date&&(E.expiration={createdBeforeDate:E.date})}function v(E,C){var _=E.days,T=E.createdBeforeDate;if(!_&&!T)throw new Error(C+" must includes days or createdBeforeDate");if(_&&!/^[1-9][0-9]*$/.test(_))throw new Error("days must be a positive integer");if(T&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(T))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(E){if(!h(E)&&!t(E))throw new Error("tag must be Object or Array");E=t(E)?[E]:E;var C={},_=a(E);_.forEach(function(T){C[T.key]=T.value}),r(C)}function S(E){if(E.id&&c(E.id)>255)throw new Error("ID is composed of 255 bytes at most");if(E.prefix===""||E.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(E.status))throw new Error("Status must be Enabled or Disabled");if(E.transition){if(!["IA","Archive"].includes(E.transition.storageClass))throw new Error("StorageClass must be IA or Archive");v(E.transition,"Transition")}if(E.expiration){if(!E.expiration.expiredObjectDeleteMarker)v(E.expiration,"Expiration");else if(E.expiration.days||E.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(E.abortMultipartUpload&&v(E.abortMultipartUpload,"AbortMultipartUpload"),!E.expiration&&!E.abortMultipartUpload&&!E.transition&&!E.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(E.tag){if(E.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(E.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/obj2xml"),h=f.obj2xml,u=n;u.putBucketVersioning=function(i,t){var o=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(i),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",i,"versioning",o),l={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=h(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,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/obj2xml"),h=f.obj2xml,u=k("../utils/isArray"),a=u.isArray,i=n;i.putBucketWebsite=function(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],r,s,c,d,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(m(o),r=this._bucketRequestParams("PUT",o,"website",l),s={Suffix:e.index||"index.html"},c={IndexDocument:s},d={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(a(e.routingRules)){b.next=11;break}throw new Error("RoutingRules must be Array");case 11:c.RoutingRules={RoutingRule:e.routingRules};case 12:return d=h(d),r.content=d,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,n){(function(y){"use strict";var p=k("babel-runtime/core-js/object/keys"),x=f(p),A=k("babel-runtime/core-js/json/stringify"),m=f(A);function f(h){return h&&h.__esModule?h:{default:h}}n.encodeCallback=function(u,a){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&a.callback){var i={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(i.callbackHost=a.callback.host),a.callback.contentType&&(i.callbackBodyType=a.callback.contentType);var t=y.from((0,m.default)(i)).toString("base64");if(u.headers["x-oss-callback"]=t,a.callback.customValue){var o={};(0,x.default)(a.callback.customValue).forEach(function(e){o["x:"+e]=a.callback.customValue[e]}),u.headers["x-oss-callback-var"]=y.from((0,m.default)(o)).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,n){"use strict";var y=k("babel-runtime/core-js/object/assign"),p=x(y);function x(i){return i&&i.__esModule?i:{default:i}}var A=k("humanize-ms"),m=k("url"),f=k("../utils/checkBucketName"),h=f.checkBucketName;function u(i,t){var o=m.parse(i);if(o.protocol||(o=m.parse("http"+(t?"s":"")+"://"+i)),o.protocol!=="http:"&&o.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return o}function a(i,t,o){var e=o?"https://":"http://",l=t?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return i.substr(0,r.length)===r&&(l=".aliyuncs.com"),m.parse(e+i+l)}D.exports=function(i){if(!i||!i.accessKeyId||!i.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");i.bucket&&h(i.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},i);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=A(t.timeout)),t.endpoint)t.endpoint=u(t.endpoint,t.secure);else if(t.region)t.endpoint=a(t.region,t.internal,t.secure);else throw new Error("require options.endpoint or options.region");return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,D,n){"use strict";var y=k("merge-descriptors"),p=n;y(p,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("querystring"),h=k("js-base64"),u=h.Base64.encode,a=n;a.processObjectSave=function(o,e,l,r){var s,c,d,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return i(o,"sourceObject"),i(e,"targetObject"),i(l,"process"),e=this._objectName(e),r&&m(r),s=this._objectRequestParams("POST",o,{subres:"x-oss-process"}),c=r?",b_"+u(r):"",e=u(e),d={"x-oss-process":l+"|sys/saveas,o_"+e+c},s.content=f.stringify(d),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 i(t,o){if(!t)throw new Error(o+" is required");if(typeof t!="string")throw new Error(o+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=k("copy-to"),m=k("./callback"),f=k("./utils/deepCopy"),h=f.deepCopy,u=n;u.listUploads=function(i,t){var o,e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},o={},A(t).to(o),o.subres="uploads",e=this._objectRequestParams("GET","",o),e.query=i,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(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.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(i,t,o,e){var l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return e=e||{},l={},A(e).to(l),l.subres={uploadId:t},r=this._objectRequestParams("GET",i,l),r.query=o,r.xmlResponse=!0,r.successStatuses=[200],d.next=10,p.default.awrap(this.request(r));case 10:return s=d.sent,d.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 d.stop()}},null,this)},u.abortMultipartUpload=function(i,t,o){var e,l,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),o=o||{},e={},A(o).to(e),e.subres={uploadId:t},l=this._objectRequestParams("DELETE",i,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(i,t){var o,e,l;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t=t||{},o={},A(t).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(t.meta,o.headers),o.subres="uploads",e=this._objectRequestParams("POST",i,o),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(i,t,o,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(i,t,o,c,s));case 3:return g.abrupt("return",g.sent);case 4:case"end":return g.stop()}},null,this)},u.completeMultipartUpload=function(i,t,o,e){var l,r,s,c,d,g,v,b;return p.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:for(l=o.concat().sort(function(C,_){return C.number-_.number}).filter(function(C,_,T){return!_||C.number!==T[_-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||{},d={},d=h(e),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:t},g=this._objectRequestParams("POST",i,d),m.encodeCallback(g,d),g.mime="xml",g.content=r,g.headers&&g.headers["x-oss-callback"]||(g.xmlResponse=!0),g.successStatuses=[200],E.next=17,p.default.awrap(this.request(g));case 17:return v=E.sent,b={res:v.res,bucket:g.bucket,name:i,etag:v.res.headers.etag},g.headers&&g.headers["x-oss-callback"]&&(b.data=JSON.parse(v.data.toString())),E.abrupt("return",b);case 21:case"end":return E.stop()}},null,this)},u._uploadPart=function(i,t,o,e,l){var r,s,c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return l=l||{},r={},A(l).to(r),r.headers={"Content-Length":e.size},r.subres={partNumber:o,uploadId:t},s=this._objectRequestParams("PUT",i,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:i,etag:c.res.headers.etag,res:c.res});case 17:case"end":return g.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=h(y),x=k("babel-runtime/core-js/object/keys"),A=h(x),m=k("babel-runtime/helpers/typeof"),f=h(m);function h(t){return t&&t.__esModule?t:{default:t}}var u=k("../utils/checkBucketName"),a=u.checkBucketName,i=n;i.copy=function(o,e,l,r){var s,c,d;return p.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return(typeof l=="undefined"?"undefined":(0,f.default)(l))==="object"&&(r=l),r=r||{},r.headers=r.headers||{},(0,A.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",o,r),s.xmlResponse=!0,s.successStatuses=[200,304],v.next=14,p.default.awrap(this.request(s));case 14:return c=v.sent,d=c.data,d&&(d={etag:d.ETag,lastModified:d.LastModified}),v.abrupt("return",{data:d,res:c.res});case 18:case"end":return v.stop()}},null,this)},i._getSourceName=function(o,e){return typeof e=="string"?o=this._objectName(o):o[0]!=="/"?e=this.options.bucket:(e=o.replace(/\/(.+?)(\/.*)/,"$1"),o=o.replace(/(\/.+?\/)(.*)/,"$2")),a(e),o=encodeURI(o),o="/"+e+"/"+o,o}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.delete=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("DELETE",u,a),i.successStatuses=[204],e.next=6,p.default.awrap(this.request(i));case 6:return t=e.sent,e.abrupt("return",{res:t.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(i){return i&&i.__esModule?i:{default:i}}var f=k("utility"),h=k("../utils/obj2xml"),u=h.obj2xml,a=n;a.deleteMulti=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,r,s,c,d,g,v,b,S,E,C;return p.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(e=[],!(!t||!t.length)){T.next=3;break}throw new Error("names is required");case 3:for(l=0;l<t.length;l++)r={},typeof t[l]=="string"?r.Key=f.escape(this._objectName(t[l])):(s=t[l],c=s.key,d=s.versionId,r.Key=f.escape(this._objectName(c)),r.VersionId=d),e.push(r);return g={Delete:{Quiet:!!o.quiet,Object:e}},v=u(g,{headers:!0}),o.subres=(0,A.default)({delete:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),b=this._objectRequestParams("POST","",o),b.mime="xml",b.content=v,b.xmlResponse=!0,b.successStatuses=[200],T.next=15,p.default.awrap(this.request(b));case 15:return S=T.sent,E=S.data,C=E&&E.Deleted||null,C&&(Array.isArray(C)||(C=[C])),T.abrupt("return",{res:S.res,deleted:C||[]});case 20:case"end":return T.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.deleteObjectTagging=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("DELETE",u,a),i.successStatuses=[204],e.next=7,p.default.awrap(this.request(i));case 7:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(a){return a&&a.__esModule?a:{default:a}}var f=k("fs"),h=k("is-type-of"),u=n;u.get=function(i,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return e=null,l=!1,h.writableStream(t)?e=t:h.string(t)?(e=f.createWriteStream(t),l=!0):o=t,o=o||{},o.subres=(0,A.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.process&&(o.subres["x-oss-process"]=o.process),r=void 0,d.prev=8,s=this._objectRequestParams("GET",i,o),s.writeStream=e,s.successStatuses=[200,206,304],d.next=14,p.default.awrap(this.request(s));case 14:r=d.sent,l&&e.destroy(),d.next=25;break;case 18:if(d.prev=18,d.t0=d.catch(8),!l){d.next=24;break}return e.destroy(),d.next=24,p.default.awrap(this._deleteFileSafe(t));case 24:throw d.t0;case 25:return d.abrupt("return",{res:r.res,content:r.data});case 26:case"end":return d.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,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.getACL=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,a),i.successStatuses=[200],i.xmlResponse=!0,e.next=8,p.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{acl:t.data.AccessControlList.Grant,owner:{id:t.data.Owner.ID,displayName:t.data.Owner.DisplayName},res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=h(y),x=k("babel-runtime/regenerator"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(s){return s&&s.__esModule?s:{default:s}}var u=n,a=k("../utils/isObject"),i=a.isObject,t=k("../utils/isArray"),o=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]:{},d,g,v,b,S,E;return A.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),d=this._objectRequestParams("GET","",c),d.xmlResponse=!0,d.successStatuses=[200],d.query=r(s),_.next=10,A.default.awrap(this.request(d));case 10:return g=_.sent,v=g.data.Version||[],b=g.data.DeleteMarker||[],S=this,v&&(Array.isArray(v)||(v=[v]),v=v.map(function(T){return{name:T.Key,url:S._objectUrl(T.Key),lastModified:T.LastModified,isLatest:T.IsLatest==="true",versionId:T.VersionId,etag:T.ETag,type:T.Type,size:Number(T.Size),storageClass:T.StorageClass,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),b&&(o(b)||(b=[b]),b=b.map(function(T){return{name:T.Key,lastModified:T.LastModified,versionId:T.VersionId,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),E=g.data.CommonPrefixes||null,E&&(o(E)||(E=[E]),E=E.map(function(T){return T.Prefix})),_.abrupt("return",{res:g.res,objects:v,deleteMarker:b,prefixes:E,nextMarker:g.data.NextMarker||null,NextVersionIdMarker:g.data.NextVersionIdMarker||null,isTruncated:g.data.IsTruncated==="true"});case 19:case"end":return _.stop()}},null,this)}function l(s){return s.replace(/([A-Z])/g,"-$1").toLowerCase()}function r(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return i(s)&&(0,p.default)(s).forEach(function(d){c[l(d)]=s[d]}),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,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.getObjectMeta=function(u,a){var i,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a=a||{},u=this._objectName(u),a.subres=(0,A.default)({objectMeta:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("HEAD",u,a),i.successStatuses=[200],e.next=8,p.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(a){return a&&a.__esModule?a:{default:a}}var f=n,h=k("../utils/isObject"),u=h.isObject;f.getObjectTagging=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,e,l,r,s;return p.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return t.subres=(0,A.default)({tagging:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),i=this._objectName(i),o=this._objectRequestParams("GET",i,t),o.successStatuses=[200],d.next=7,p.default.awrap(this.request(o));case 7:return e=d.sent,d.next=10,p.default.awrap(this.parseXML(e.data));case 10:return l=d.sent,r=l.TagSet.Tag,r=r&&u(r)?[r]:r||[],s={},r.forEach(function(g){s[g.Key]=g.Value}),d.abrupt("return",{status:e.status,res:e.res,tag:s});case 16:case"end":return d.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(k,D,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.getSymlink=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return a.subres=(0,A.default)({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,a),i.successStatuses=[200],l.next=7,p.default.awrap(this.request(i));case 7:return t=l.sent,o=t.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(o),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,n){"use strict";var y=k("babel-runtime/regenerator"),p=h(y),x=k("babel-runtime/core-js/object/keys"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(a){return a&&a.__esModule?a:{default:a}}var u=n;u.head=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,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),o=this._objectRequestParams("HEAD",i,t),o.successStatuses=[200,304],s.next=6,p.default.awrap(this.request(o));case 6:return e=s.sent,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.default)(e.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[c.substring(11)]=e.headers[c])}),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,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.putACL=function(u,a,i){var t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.subres=(0,A.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.headers=i.headers||{},i.headers["x-oss-object-acl"]=a,u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=10,p.default.awrap(this.request(t));case 10:return o=l.sent,l.abrupt("return",{res:o.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,n){"use strict";var y=k("babel-runtime/regenerator"),p=h(y),x=k("babel-runtime/core-js/object/keys"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(e){return e&&e.__esModule?e:{default:e}}var u=k("../utils/obj2xml"),a=u.obj2xml,i=k("../utils/checkObjectTag"),t=i.checkObjectTag,o=n;o.putObjectTagging=function(l,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,d,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,A.default)(r).map(function(S){return{Key:S,Value:r[S]}}),d={Tagging:{TagSet:{Tag:r}}},c.mime="xml",c.content=a(d),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,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/object/assign"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f.putSymlink=function(u,a,i){var t,o;return p.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.headers=i.headers||{},a=this._escape(this._objectName(a)),this._convertMetaToHeaders(i.meta,i.headers),i.headers["x-oss-symlink-target"]=a,i.subres=(0,A.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.storageClass&&(i.headers["x-oss-storage-class"]=i.storageClass),u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=13,p.default.awrap(this.request(t));case 13:return o=l.sent,l.abrupt("return",{res:o.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,n){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),x=k("babel-runtime/core-js/promise"),A=m(x);function m(h){return h&&h.__esModule?h:{default:h}}var f=n;f._parallelNode=function(u,a,i,t){var o,e,l,r,s,c,d,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:o=this,e=[],l=[],r=u.length/a,s=u.length%a,c=s===0?r:(u.length-s)/a+1,d=1,g=0;case 8:if(!(g<u.length)){b.next=26;break}if(!o.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?l.push(i(o,u[g],t)):l.push(i(o,u[g])),!(l.length===a||d===c&&g===u.length-1)){b.next=23;break}return b.prev=13,d+=1,b.next=17,p.default.awrap(A.default.all(l));case 17:b.next=22;break;case 19:b.prev=19,b.t0=b.catch(13),e.push(b.t0);case 22:l=[];case 23:g++,b.next=8;break;case 26:return b.abrupt("return",e);case 27:case"end":return b.stop()}},null,this,[[13,19]])},f._parallel=function(u,a,i){var t=this;return new A.default(function(o){var e=[];if(a<=0||!u){o(e);return}function l(E){return function(){if(E===null)throw new Error("Callback was already called.");var C=E;E=null;for(var _=arguments.length,T=Array(_),w=0;w<_;w++)T[w]=arguments[w];C.apply(this,T)}}function r(E){var C=-1,_=E.length;return function(){return++C<_&&!t.isCancel()?{value:E[C],key:C}:null}}var s=r(u),c=!1,d=0,g=!1;function v(E,C){d-=1,E?(c=!0,e.push(E),o(e)):C==={}||c&&d<=0?(c=!0,o(e)):g||(t.isCancel()?o(e):S())}function b(E,C){i(E).then(function(_){C(null,_)}).catch(function(_){C(_)})}function S(){for(g=!0;d<a&&!c&&!t.isCancel();){var E=s();if(E===null||e.length>0){c=!0,d<=0&&o(e);return}d+=1,b(E.value,l(v))}g=!1}S()})},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,n){(function(y){"use strict";var p=k("babel-runtime/core-js/json/stringify"),x=f(p),A=k("babel-runtime/core-js/object/keys"),m=f(A);function f(a){return a&&a.__esModule?a:{default:a}}var h=k("./../../shims/crypto/crypto.js"),u=k("is-type-of");n.buildCanonicalizedResource=function(i,t){var o=""+i,e="?";if(u.string(t)&&t.trim()!=="")o+=e+t;else if(u.array(t))t.sort(),o+=e+t.join("&");else if(t){var l=function(c,d){return c[0]>d[0]?1:c[0]<d[0]?-1:0},r=function(c){o+=e+c,t[c]&&(o+="="+t[c]),e="&"};(0,m.default)(t).sort(l).forEach(r)}return o},n.buildCanonicalString=function(i,t,o,e){o=o||{};var l=o.headers||{},r="x-oss-",s=[],c={},d=[i.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,m.default)(l).forEach(function(g){var v=g.toLowerCase();v.indexOf(r)===0&&(c[v]=String(l[g]).trim())}),(0,m.default)(c).sort().forEach(function(g){s.push(g+":"+c[g])}),d=d.concat(s),d.push(this.buildCanonicalizedResource(t,o.parameters)),d.join(`
`)},n.computeSignature=function(i,t){var o=h.createHmac("sha1",i);return o.update(y.from(t,"utf8")).digest("base64")},n.authorization=function(i,t,o){return"OSS "+i+":"+this.computeSignature(t,o)},n._signatureForURL=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=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 d="x-oss-traffic-limit";s[d]=t.trafficLimit}if(t.response&&(0,m.default)(t.response).forEach(function(S){var E="response-"+S.toLowerCase();s[E]=t.response[S]}),(0,m.default)(t).forEach(function(S){var E=S.toLowerCase(),C=t[S];E.indexOf("x-oss-")===0?l[E]=C:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(l[S]=C)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(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,x.default)(g)).toString("base64"),t.callback.customValue){var v={};(0,m.default)(t.callback.customValue).forEach(function(S){v["x:"+S]=t.callback.customValue[S]}),s["callback-var"]=y.from((0,x.default)(v)).toString("base64")}}var b=this.buildCanonicalString(t.method,o,{headers:l,parameters:s},e.toString());return{Signature:this.computeSignature(i,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,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(y,p){var x=p?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!x.test(y))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/entries"),p=x(y);function x(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var A=k("./checkValid"),m=A.checkValid,f=k("./isObject"),h=f.isObject,u=[{validator:function(o){if(typeof o!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],a={key:[].concat(u,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(u,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function i(t){if(!h(t))throw new Error("tag must be Object");var o=(0,p.default)(t);if(o.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];o.forEach(function(l){l.forEach(function(r,s){m(r,a[e[s]])})})}n.checkObjectTag=i},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0;function y(p,x){x.forEach(function(A){if(A.validator)A.validator(p);else if(A.pattern&&!A.pattern.test(p))throw new Error(A.msg)})}n.checkValid=y},{}],38:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/object/assign"),x=A(p);function A(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var m=k("./../../../shims/crypto/crypto.js"),f=k("debug")("ali-oss"),h=k("mime"),u=k("dateformat"),a=k("copy-to"),i=k("path");function t(l,r){return l[r]||l[r.toLowerCase()]}function o(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,x.default)(s,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(s["x-oss-security-token"]=this.options.stsToken),a(l.headers).to(s),t(s,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?s["Content-Type"]=l.mime:s["Content-Type"]=h.getType(l.mime||i.extname(l.object||""))),t(s,"Content-Type")||o(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 d=this._getReqUrl(l);f("request %s %s, with headers %j, !!stream: %s",l.method,d,s,!!l.stream);var g=l.timeout||this.options.timeout,v={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&&(v.agent=this.agent),this.httpsAgent&&(v.httpsAgent=this.httpsAgent),{url:d,params:v}}n.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,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/helpers/typeof"),A=m(x);function m(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopy=void 0,n.deepCopy=function(f){if(f===null||(typeof f=="undefined"?"undefined":(0,A.default)(f))!=="object")return f;var h=Array.isArray(f)?[]:{};return(0,p.default)(f).forEach(function(u){h[u]=n.deepCopy(f[u])}),h}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/helpers/typeof"),A=m(x);function m(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0}),n.formatObjKey=void 0;function f(u,a){if(u===null||(typeof u=="undefined"?"undefined":(0,A.default)(u))!=="object")return u;var i=void 0;if(Array.isArray(u)){i=[];for(var t=0;t<u.length;t++)i.push(f(u[t],a))}else i={},(0,p.default)(u).forEach(function(o){i[h(o,a)]=f(u[o],a)});return i}n.formatObjKey=f;function h(u,a){return a==="firstUpperCase"?u=u.replace(/^./,function(i){return i.toUpperCase()}):a==="firstLowerCase"&&(u=u.replace(/^./,function(i){return i.toLowerCase()})),u}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getStrBytesCount=void 0;function y(p){for(var x=0,A=0;A<p.length;A++){var m=p.charAt(A);/^[\u00-\uff]$/.test(m)?x+=1:x+=2}return x}n.getStrBytesCount=y},{}],42:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isBlob=void 0;function y(p){return typeof Blob!="undefined"&&p instanceof Blob}n.isBlob=y},{}],44:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFile=void 0,n.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIP=void 0,n.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}$/,x=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return p.test(y)||x.test(y)}},{}],46:[function(k,D,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isObject=void 0,n.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(n,"__esModule",{value:!0}),n.obj2xml=void 0;var A=k("./formatObjKey");function m(h){return Object.prototype.toString.call(h).replace(/(.*? |])/g,"").toLowerCase()}function f(h,u){var a="";return u&&u.headers&&(a=`<?xml version="1.0" encoding="UTF-8"?>
`),u&&u.firstUpperCase&&(h=A.formatObjKey(h,"firstUpperCase")),m(h)==="object"?(0,p.default)(h).forEach(function(i){m(h[i])==="string"||m(h[i])==="number"?a+="<"+i+">"+h[i]+"</"+i+">":m(h[i])==="object"?a+="<"+i+">"+f(h[i])+"</"+i+">":m(h[i])==="array"?a+=h[i].map(function(t){return"<"+i+">"+f(t)+"</"+i+">"}).join(""):a+="<"+i+">"+h[i].toString()+"</"+i+">"}):a+=h.toString(),a}n.obj2xml=f},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,D,n){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(k,D,n){D.exports=k("./register")().Promise},{"./register":51}],50:[function(k,D,n){"use strict";var y="@@any-promise/REGISTRATION",p=null;D.exports=function(x,A){return function(f,h){f=f||null,h=h||{};var u=h.global!==!1;if(p===null&&u&&(p=x[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 h.Promise!="undefined"?p={Promise:h.Promise,implementation:f}:p=A(f),u&&(x[y]=p)),p}}},{}],51:[function(k,D,n){"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,n){D.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,D,n){D.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,D,n){D.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,D,n){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,n){D.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,D,n){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,n){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,n){D.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,D,n){D.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,D,n){D.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,D,n){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,n){D.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,D,n){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,n){D.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,D,n){"use strict";n.__esModule=!0;var y=k("../core-js/symbol/iterator"),p=f(y),x=k("../core-js/symbol"),A=f(x),m=typeof A.default=="function"&&typeof p.default=="symbol"?function(h){return typeof h}:function(h){return h&&typeof A.default=="function"&&h.constructor===A.default&&h!==A.default.prototype?"symbol":typeof h};function f(h){return h&&h.__esModule?h:{default:h}}n.default=typeof A.default=="function"&&m(p.default)==="symbol"?function(h){return typeof h=="undefined"?"undefined":m(h)}:function(h){return h&&typeof A.default=="function"&&h.constructor===A.default&&h!==A.default.prototype?"symbol":typeof h=="undefined"?"undefined":m(h)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(k,D,n){D.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,D,n){"use strict";n.byteLength=u,n.toByteArray=i,n.fromByteArray=e;for(var y=[],p=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=A.length;m<f;++m)y[m]=A[m],p[A.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63;function h(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=h(l),s=r[0],c=r[1];return(s+c)*3/4-c}function a(l,r,s){return(r+s)*3/4-s}function i(l){var r,s=h(l),c=s[0],d=s[1],g=new x(a(l,c,d)),v=0,b=d>0?c-4:c,S;for(S=0;S<b;S+=4)r=p[l.charCodeAt(S)]<<18|p[l.charCodeAt(S+1)]<<12|p[l.charCodeAt(S+2)]<<6|p[l.charCodeAt(S+3)],g[v++]=r>>16&255,g[v++]=r>>8&255,g[v++]=r&255;return d===2&&(r=p[l.charCodeAt(S)]<<2|p[l.charCodeAt(S+1)]>>4,g[v++]=r&255),d===1&&(r=p[l.charCodeAt(S)]<<10|p[l.charCodeAt(S+1)]<<4|p[l.charCodeAt(S+2)]>>2,g[v++]=r>>8&255,g[v++]=r&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function o(l,r,s){for(var c,d=[],g=r;g<s;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),d.push(t(c));return d.join("")}function e(l){for(var r,s=l.length,c=s%3,d=[],g=16383,v=0,b=s-c;v<b;v+=g)d.push(o(l,v,v+g>b?b:v+g));return c===1?(r=l[s-1],d.push(y[r>>2]+y[r<<4&63]+"==")):c===2&&(r=(l[s-2]<<8)+l[s-1],d.push(y[r>>10]+y[r>>4&63]+y[r<<2&63]+"=")),d.join("")}},{}],70:[function(k,D,n){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(y,p,x){typeof D!="undefined"&&D.exports?D.exports=x():typeof define=="function"&&define.amd?define(p,x):y[p]=x()}(this,"bowser",function(){var y=!0;function p(a){function i(j){var W=a.match(j);return W&&W.length>1&&W[1]||""}function t(j){var W=a.match(j);return W&&W.length>1&&W[2]||""}var o=i(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(a),l=!e&&/android/i.test(a),r=/nexus\s*[0-6]\s*/i.test(a),s=!r&&/nexus\s*[0-9]+/i.test(a),c=/CrOS/.test(a),d=/silk/i.test(a),g=/sailfish/i.test(a),v=/tizen/i.test(a),b=/(web|hpw)(o|0)s/i.test(a),S=/windows phone/i.test(a),E=/SamsungBrowser/i.test(a),C=!S&&/windows/i.test(a),_=!o&&!d&&/macintosh/i.test(a),T=!l&&!g&&!v&&!b&&/linux/i.test(a),w=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=i(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(a)&&!/tablet pc/i.test(a),R=!I&&/[^-]mobi/i.test(a),M=/xbox/i.test(a),F;/opera/i.test(a)?F={name:"Opera",opera:y,version:O||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?F={name:"Opera",opera:y,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(a)?F={name:"Samsung Internet for Android",samsungBrowser:y,version:O||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(a)?F={name:"NAVER Whale browser",whale:y,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(a)?F={name:"MZ Browser",mzbrowser:y,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(a)?F={name:"Opera Coast",coast:y,version:O||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(a)?F={name:"Focus",focus:y,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(a)?F={name:"Yandex Browser",yandexbrowser:y,version:O||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?F={name:"UC Browser",ucbrowser:y,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?F={name:"Maxthon",maxthon:y,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?F={name:"Epiphany",epiphany:y,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?F={name:"Puffin",puffin:y,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?F={name:"Sleipnir",sleipnir:y,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?F={name:"K-Meleon",kMeleon:y,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:S?(F={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},w?(F.msedge=y,F.version=w):(F.msie=y,F.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?F={name:"Internet Explorer",msie:y,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?F={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?F={name:"Microsoft Edge",msedge:y,version:w}:/vivaldi/i.test(a)?F={name:"Vivaldi",vivaldi:y,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||O}:g?F={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?F={name:"SeaMonkey",seamonkey:y,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(F={name:"Firefox",firefox:y,version:i(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(F.firefoxos=y,F.osname="Firefox OS")):d?F={name:"Amazon Silk",silk:y,version:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?F={name:"PhantomJS",phantom:y,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?F={name:"SlimerJS",slimer:y,version:i(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?F={name:"BlackBerry",osname:"BlackBerry OS",blackberry:y,version:O||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(F={name:"WebOS",osname:"WebOS",webos:y,version:O||i(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(F.touchpad=y)):/bada/i.test(a)?F={name:"Bada",osname:"Bada",bada:y,version:i(/dolfin\/(\d+(\.\d+)?)/i)}:v?F={name:"Tizen",osname:"Tizen",tizen:y,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(a)?F={name:"QupZilla",qupzilla:y,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(a)?F={name:"Chromium",chromium:y,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(a)?F={name:"Chrome",chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?F={name:"Android",version:O}:/safari|applewebkit/i.test(a)?(F={name:"Safari",safari:y},O&&(F.version=O)):o?(F={name:o=="iphone"?"iPhone":o=="ipad"?"iPad":"iPod"},O&&(F.version=O)):/googlebot/i.test(a)?F={name:"Googlebot",googlebot:y,version:i(/googlebot\/(\d+(\.\d+))/i)||O}:F={name:i(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)},!F.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(F.name=F.name||"Blink",F.blink=y):(F.name=F.name||"Webkit",F.webkit=y),!F.version&&O&&(F.version=O)):!F.opera&&/gecko\//i.test(a)&&(F.name=F.name||"Gecko",F.gecko=y,F.version=F.version||i(/gecko\/(\d+(\.\d+)?)/i)),!F.windowsphone&&(l||F.silk)?(F.android=y,F.osname="Android"):!F.windowsphone&&o?(F[o]=y,F.ios=y,F.osname="iOS"):_?(F.mac=y,F.osname="macOS"):M?(F.xbox=y,F.osname="Xbox"):C?(F.windows=y,F.osname="Windows"):T&&(F.linux=y,F.osname="Linux");function P(j){switch(j){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var X="";F.windows?X=P(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):F.windowsphone?X=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):F.mac?(X=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):o?(X=i(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):l?X=i(/android[ \/-](\d+(\.\d+)*)/i):F.webos?X=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):F.blackberry?X=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):F.bada?X=i(/bada\/(\d+(\.\d+)*)/i):F.tizen&&(X=i(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(F.osversion=X);var B=!F.windows&&X.split(".")[0];return I||s||o=="ipad"||l&&(B==3||B>=4&&!R)||F.silk?F.tablet=y:(R||o=="iphone"||o=="ipod"||l||r||F.blackberry||F.webos||F.bada)&&(F.mobile=y),F.msedge||F.msie&&F.version>=10||F.yandexbrowser&&F.version>=15||F.vivaldi&&F.version>=1||F.chrome&&F.version>=20||F.samsungBrowser&&F.version>=4||F.whale&&f([F.version,"1.0"])===1||F.mzbrowser&&f([F.version,"6.0"])===1||F.focus&&f([F.version,"1.0"])===1||F.firefox&&F.version>=20||F.safari&&F.version>=6||F.opera&&F.version>=10||F.ios&&F.osversion&&F.osversion.split(".")[0]>=6||F.blackberry&&F.version>=10.1||F.chromium&&F.version>=20?F.a=y:F.msie&&F.version<10||F.chrome&&F.version<20||F.firefox&&F.version<20||F.safari&&F.version<6||F.opera&&F.version<10||F.ios&&F.osversion&&F.osversion.split(".")[0]<6||F.chromium&&F.version<20?F.c=y:F.x=y,F}var x=p(typeof navigator!="undefined"&&navigator.userAgent||"");x.test=function(a){for(var i=0;i<a.length;++i){var t=a[i];if(typeof t=="string"&&t in x)return!0}return!1};function A(a){return a.split(".").length}function m(a,i){var t=[],o;if(Array.prototype.map)return Array.prototype.map.call(a,i);for(o=0;o<a.length;o++)t.push(i(a[o]));return t}function f(a){for(var i=Math.max(A(a[0]),A(a[1])),t=m(a,function(o){var e=i-A(o);return o=o+new Array(e+1).join(".0"),m(o.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--i>=0;){if(t[0][i]>t[1][i])return 1;if(t[0][i]===t[1][i]){if(i===0)return 0}else return-1}}function h(a,i,t){var o=x;typeof i=="string"&&(t=i,i=void 0),i===void 0&&(i=!1),t&&(o=p(t));var e=""+o.version;for(var l in a)if(a.hasOwnProperty(l)&&o[l]){if(typeof a[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(a));return f([e,a[l]])<0}return i}function u(a,i,t){return!h(a,i,t)}return x.isUnsupportedBrowser=h,x.compareVersions=f,x.check=u,x._detect=p,x.detect=p,x})},{}],71:[function(k,D,n){},{}],72:[function(k,D,n){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 x(u){if(u&&!p(u))throw new Error("Unknown encoding: "+u)}var A=n.StringDecoder=function(u){this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),x(u);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=h;break;default:this.write=m;return}this.charBuffer=new y(6),this.charReceived=0,this.charLength=0};A.prototype.write=function(u){for(var a="";this.charLength;){var i=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";u=u.slice(i,u.length),a=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var o=a.charCodeAt(a.length-1);if(o>=55296&&o<=56319){this.charLength+=this.surrogateSize,a="";continue}if(this.charReceived=this.charLength=0,u.length===0)return a;break}this.detectIncompleteChar(u);var t=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,t),t-=this.charReceived),a+=u.toString(this.encoding,0,t);var t=a.length-1,o=a.charCodeAt(t);if(o>=55296&&o<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),u.copy(this.charBuffer,0,0,e),a.substring(0,t)}return a},A.prototype.detectIncompleteChar=function(u){for(var a=u.length>=3?3:u.length;a>0;a--){var i=u[u.length-a];if(a==1&&i>>5==6){this.charLength=2;break}if(a<=2&&i>>4==14){this.charLength=3;break}if(a<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=a},A.prototype.end=function(u){var a="";if(u&&u.length&&(a=this.write(u)),this.charReceived){var i=this.charReceived,t=this.charBuffer,o=this.encoding;a+=t.slice(0,i).toString(o)}return a};function m(u){return u.toString(this.encoding)}function f(u){this.charReceived=u.length%2,this.charLength=this.charReceived?2:0}function h(u){this.charReceived=u.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(k,D,n){(function(y,p){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var x=k("base64-js"),A=k("ieee754"),m=k("isarray");n.Buffer=p,n.SlowBuffer=d,n.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:f(),n.kMaxLength=h();function f(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(J){return!1}}function h(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(he,J){if(h()<J)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(J),he.__proto__=p.prototype):(he===null&&(he=new p(J)),he.length=J),he}function p(he,J,Y){if(!p.TYPED_ARRAY_SUPPORT&&!(this instanceof p))return new p(he,J,Y);if(typeof he=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return o(this,he)}return a(this,he,J,Y)}p.poolSize=8192,p._augment=function(he){return he.__proto__=p.prototype,he};function a(he,J,Y,q){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?r(he,J,Y,q):typeof J=="string"?e(he,J,Y):s(he,J)}p.from=function(he,J,Y){return a(null,he,J,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 i(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function t(he,J,Y,q){return i(J),J<=0?u(he,J):Y!==void 0?typeof q=="string"?u(he,J).fill(Y,q):u(he,J).fill(Y):u(he,J)}p.alloc=function(he,J,Y){return t(null,he,J,Y)};function o(he,J){if(i(J),he=u(he,J<0?0:c(J)|0),!p.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)he[Y]=0;return he}p.allocUnsafe=function(he){return o(null,he)},p.allocUnsafeSlow=function(he){return o(null,he)};function e(he,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var q=g(J,Y)|0;he=u(he,q);var fe=he.write(J,Y);return fe!==q&&(he=he.slice(0,fe)),he}function l(he,J){var Y=J.length<0?0:c(J.length)|0;he=u(he,Y);for(var q=0;q<Y;q+=1)he[q]=J[q]&255;return he}function r(he,J,Y,q){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+(q||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&q===void 0?J=new Uint8Array(J):q===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,q),p.TYPED_ARRAY_SUPPORT?(he=J,he.__proto__=p.prototype):he=l(he,J),he}function s(he,J){if(p.isBuffer(J)){var Y=c(J.length)|0;return he=u(he,Y),he.length===0||J.copy(he,0,0,Y),he}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||ot(J.length)?u(he,0):l(he,J);if(J.type==="Buffer"&&m(J.data))return l(he,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(he){if(he>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return he|0}function d(he){return+he!=he&&(he=0),p.alloc(+he)}p.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},p.compare=function(J,Y){if(!p.isBuffer(J)||!p.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var q=J.length,fe=Y.length,we=0,Ne=Math.min(q,fe);we<Ne;++we)if(J[we]!==Y[we]){q=J[we],fe=Y[we];break}return q<fe?-1:fe<q?1:0},p.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(J,Y){if(!m(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return p.alloc(0);var q;if(Y===void 0)for(Y=0,q=0;q<J.length;++q)Y+=J[q].length;var fe=p.allocUnsafe(Y),we=0;for(q=0;q<J.length;++q){var Ne=J[q];if(!p.isBuffer(Ne))throw new TypeError('"list" argument must be an Array of Buffers');Ne.copy(fe,we),we+=Ne.length}return fe};function g(he,J){if(p.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var Y=he.length;if(Y===0)return 0;for(var q=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Xe(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Ie(he).length;default:if(q)return Xe(he).length;J=(""+J).toLowerCase(),q=!0}}p.byteLength=g;function v(he,J,Y){var q=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(he||(he="utf8");;)switch(he){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return B(this,J,Y);case"base64":return R(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,J,Y);default:if(q)throw new TypeError("Unknown encoding: "+he);he=(he+"").toLowerCase(),q=!0}}p.prototype._isBuffer=!0;function b(he,J,Y){var q=he[J];he[J]=he[Y],he[Y]=q}p.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},p.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},p.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},p.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):v.apply(this,arguments)},p.prototype.equals=function(J){if(!p.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:p.compare(this,J)===0},p.prototype.inspect=function(){var J="",Y=n.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},p.prototype.compare=function(J,Y,q,fe,we){if(!p.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),q===void 0&&(q=J?J.length:0),fe===void 0&&(fe=0),we===void 0&&(we=this.length),Y<0||q>J.length||fe<0||we>this.length)throw new RangeError("out of range index");if(fe>=we&&Y>=q)return 0;if(fe>=we)return-1;if(Y>=q)return 1;if(Y>>>=0,q>>>=0,fe>>>=0,we>>>=0,this===J)return 0;for(var Ne=we-fe,je=q-Y,me=Math.min(Ne,je),Ce=this.slice(fe,we),Fe=J.slice(Y,q),it=0;it<me;++it)if(Ce[it]!==Fe[it]){Ne=Ce[it],je=Fe[it];break}return Ne<je?-1:je<Ne?1:0};function S(he,J,Y,q,fe){if(he.length===0)return-1;if(typeof Y=="string"?(q=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=fe?0:he.length-1),Y<0&&(Y=he.length+Y),Y>=he.length){if(fe)return-1;Y=he.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof J=="string"&&(J=p.from(J,q)),p.isBuffer(J))return J.length===0?-1:E(he,J,Y,q,fe);if(typeof J=="number")return J=J&255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(he,J,Y):Uint8Array.prototype.lastIndexOf.call(he,J,Y):E(he,[J],Y,q,fe);throw new TypeError("val must be string, number or Buffer")}function E(he,J,Y,q,fe){var we=1,Ne=he.length,je=J.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(he.length<2||J.length<2)return-1;we=2,Ne/=2,je/=2,Y/=2}function me(mt,Ve){return we===1?mt[Ve]:mt.readUInt16BE(Ve*we)}var Ce;if(fe){var Fe=-1;for(Ce=Y;Ce<Ne;Ce++)if(me(he,Ce)===me(J,Fe===-1?0:Ce-Fe)){if(Fe===-1&&(Fe=Ce),Ce-Fe+1===je)return Fe*we}else Fe!==-1&&(Ce-=Ce-Fe),Fe=-1}else for(Y+je>Ne&&(Y=Ne-je),Ce=Y;Ce>=0;Ce--){for(var it=!0,Ct=0;Ct<je;Ct++)if(me(he,Ce+Ct)!==me(J,Ct)){it=!1;break}if(it)return Ce}return-1}p.prototype.includes=function(J,Y,q){return this.indexOf(J,Y,q)!==-1},p.prototype.indexOf=function(J,Y,q){return S(this,J,Y,q,!0)},p.prototype.lastIndexOf=function(J,Y,q){return S(this,J,Y,q,!1)};function C(he,J,Y,q){Y=Number(Y)||0;var fe=he.length-Y;q?(q=Number(q),q>fe&&(q=fe)):q=fe;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");q>we/2&&(q=we/2);for(var Ne=0;Ne<q;++Ne){var je=parseInt(J.substr(Ne*2,2),16);if(isNaN(je))return Ne;he[Y+Ne]=je}return Ne}function _(he,J,Y,q){return oe(Xe(J,he.length-Y),he,Y,q)}function T(he,J,Y,q){return oe(He(J),he,Y,q)}function w(he,J,Y,q){return T(he,J,Y,q)}function O(he,J,Y,q){return oe(Ie(J),he,Y,q)}function I(he,J,Y,q){return oe(nt(J,he.length-Y),he,Y,q)}p.prototype.write=function(J,Y,q,fe){if(Y===void 0)fe="utf8",q=this.length,Y=0;else if(q===void 0&&typeof Y=="string")fe=Y,q=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(q)?(q=q|0,fe===void 0&&(fe="utf8")):(fe=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-Y;if((q===void 0||q>we)&&(q=we),J.length>0&&(q<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ne=!1;;)switch(fe){case"hex":return C(this,J,Y,q);case"utf8":case"utf-8":return _(this,J,Y,q);case"ascii":return T(this,J,Y,q);case"latin1":case"binary":return w(this,J,Y,q);case"base64":return O(this,J,Y,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,q);default:if(Ne)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ne=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(he,J,Y){return J===0&&Y===he.length?x.fromByteArray(he):x.fromByteArray(he.slice(J,Y))}function M(he,J,Y){Y=Math.min(he.length,Y);for(var q=[],fe=J;fe<Y;){var we=he[fe],Ne=null,je=we>239?4:we>223?3:we>191?2:1;if(fe+je<=Y){var me,Ce,Fe,it;switch(je){case 1:we<128&&(Ne=we);break;case 2:me=he[fe+1],(me&192)===128&&(it=(we&31)<<6|me&63,it>127&&(Ne=it));break;case 3:me=he[fe+1],Ce=he[fe+2],(me&192)===128&&(Ce&192)===128&&(it=(we&15)<<12|(me&63)<<6|Ce&63,it>2047&&(it<55296||it>57343)&&(Ne=it));break;case 4:me=he[fe+1],Ce=he[fe+2],Fe=he[fe+3],(me&192)===128&&(Ce&192)===128&&(Fe&192)===128&&(it=(we&15)<<18|(me&63)<<12|(Ce&63)<<6|Fe&63,it>65535&&it<1114112&&(Ne=it))}}Ne===null?(Ne=65533,je=1):Ne>65535&&(Ne-=65536,q.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),q.push(Ne),fe+=je}return P(q)}var F=4096;function P(he){var J=he.length;if(J<=F)return String.fromCharCode.apply(String,he);for(var Y="",q=0;q<J;)Y+=String.fromCharCode.apply(String,he.slice(q,q+=F));return Y}function X(he,J,Y){var q="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)q+=String.fromCharCode(he[fe]&127);return q}function B(he,J,Y){var q="";Y=Math.min(he.length,Y);for(var fe=J;fe<Y;++fe)q+=String.fromCharCode(he[fe]);return q}function j(he,J,Y){var q=he.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>q)&&(Y=q);for(var fe="",we=J;we<Y;++we)fe+=Ee(he[we]);return fe}function W(he,J,Y){for(var q=he.slice(J,Y),fe="",we=0;we<q.length;we+=2)fe+=String.fromCharCode(q[we]+q[we+1]*256);return fe}p.prototype.slice=function(J,Y){var q=this.length;J=~~J,Y=Y===void 0?q:~~Y,J<0?(J+=q,J<0&&(J=0)):J>q&&(J=q),Y<0?(Y+=q,Y<0&&(Y=0)):Y>q&&(Y=q),Y<J&&(Y=J);var fe;if(p.TYPED_ARRAY_SUPPORT)fe=this.subarray(J,Y),fe.__proto__=p.prototype;else{var we=Y-J;fe=new p(we,void 0);for(var Ne=0;Ne<we;++Ne)fe[Ne]=this[Ne+J]}return fe};function z(he,J,Y){if(he%1!==0||he<0)throw new RangeError("offset is not uint");if(he+J>Y)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUIntLE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return fe},p.prototype.readUIntBE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=this[J+--Y],we=1;Y>0&&(we*=256);)fe+=this[J+--Y]*we;return fe},p.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},p.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},p.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},p.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},p.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},p.prototype.readIntLE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=this[J],we=1,Ne=0;++Ne<Y&&(we*=256);)fe+=this[J+Ne]*we;return we*=128,fe>=we&&(fe-=Math.pow(2,8*Y)),fe},p.prototype.readIntBE=function(J,Y,q){J=J|0,Y=Y|0,q||z(J,Y,this.length);for(var fe=Y,we=1,Ne=this[J+--fe];fe>0&&(we*=256);)Ne+=this[J+--fe]*we;return we*=128,Ne>=we&&(Ne-=Math.pow(2,8*Y)),Ne},p.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},p.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var q=this[J]|this[J+1]<<8;return q&32768?q|4294901760:q},p.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var q=this[J+1]|this[J]<<8;return q&32768?q|4294901760:q},p.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},p.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},p.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),A.read(this,J,!0,23,4)},p.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),A.read(this,J,!1,23,4)},p.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),A.read(this,J,!0,52,8)},p.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),A.read(this,J,!1,52,8)};function V(he,J,Y,q,fe,we){if(!p.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>fe||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+q>he.length)throw new RangeError("Index out of range")}p.prototype.writeUIntLE=function(J,Y,q,fe){if(J=+J,Y=Y|0,q=q|0,!fe){var we=Math.pow(2,8*q)-1;V(this,J,Y,q,we,0)}var Ne=1,je=0;for(this[Y]=J&255;++je<q&&(Ne*=256);)this[Y+je]=J/Ne&255;return Y+q},p.prototype.writeUIntBE=function(J,Y,q,fe){if(J=+J,Y=Y|0,q=q|0,!fe){var we=Math.pow(2,8*q)-1;V(this,J,Y,q,we,0)}var Ne=q-1,je=1;for(this[Y+Ne]=J&255;--Ne>=0&&(je*=256);)this[Y+Ne]=J/je&255;return Y+q},p.prototype.writeUInt8=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,1,255,0),p.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(he,J,Y,q){J<0&&(J=65535+J+1);for(var fe=0,we=Math.min(he.length-Y,2);fe<we;++fe)he[Y+fe]=(J&255<<8*(q?fe:1-fe))>>>(q?fe:1-fe)*8}p.prototype.writeUInt16LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},p.prototype.writeUInt16BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(he,J,Y,q){J<0&&(J=4294967295+J+1);for(var fe=0,we=Math.min(he.length-Y,4);fe<we;++fe)he[Y+fe]=J>>>(q?fe:3-fe)*8&255}p.prototype.writeUInt32LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},p.prototype.writeUInt32BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},p.prototype.writeIntLE=function(J,Y,q,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*q-1);V(this,J,Y,q,we-1,-we)}var Ne=0,je=1,me=0;for(this[Y]=J&255;++Ne<q&&(je*=256);)J<0&&me===0&&this[Y+Ne-1]!==0&&(me=1),this[Y+Ne]=(J/je>>0)-me&255;return Y+q},p.prototype.writeIntBE=function(J,Y,q,fe){if(J=+J,Y=Y|0,!fe){var we=Math.pow(2,8*q-1);V(this,J,Y,q,we-1,-we)}var Ne=q-1,je=1,me=0;for(this[Y+Ne]=J&255;--Ne>=0&&(je*=256);)J<0&&me===0&&this[Y+Ne+1]!==0&&(me=1),this[Y+Ne]=(J/je>>0)-me&255;return Y+q},p.prototype.writeInt8=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,1,127,-128),p.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},p.prototype.writeInt16LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},p.prototype.writeInt16BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},p.prototype.writeInt32LE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},p.prototype.writeInt32BE=function(J,Y,q){return J=+J,Y=Y|0,q||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),p.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function re(he,J,Y,q,fe,we){if(Y+q>he.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function ee(he,J,Y,q,fe){return fe||re(he,J,Y,4,34028234663852886e22,-34028234663852886e22),A.write(he,J,Y,q,23,4),Y+4}p.prototype.writeFloatLE=function(J,Y,q){return ee(this,J,Y,!0,q)},p.prototype.writeFloatBE=function(J,Y,q){return ee(this,J,Y,!1,q)};function ue(he,J,Y,q,fe){return fe||re(he,J,Y,8,17976931348623157e292,-17976931348623157e292),A.write(he,J,Y,q,52,8),Y+8}p.prototype.writeDoubleLE=function(J,Y,q){return ue(this,J,Y,!0,q)},p.prototype.writeDoubleBE=function(J,Y,q){return ue(this,J,Y,!1,q)},p.prototype.copy=function(J,Y,q,fe){if(q||(q=0),!fe&&fe!==0&&(fe=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),fe>0&&fe<q&&(fe=q),fe===q)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),J.length-Y<fe-q&&(fe=J.length-Y+q);var we=fe-q,Ne;if(this===J&&q<Y&&Y<fe)for(Ne=we-1;Ne>=0;--Ne)J[Ne+Y]=this[Ne+q];else if(we<1e3||!p.TYPED_ARRAY_SUPPORT)for(Ne=0;Ne<we;++Ne)J[Ne+Y]=this[Ne+q];else Uint8Array.prototype.set.call(J,this.subarray(q,q+we),Y);return we},p.prototype.fill=function(J,Y,q,fe){if(typeof J=="string"){if(typeof Y=="string"?(fe=Y,Y=0,q=this.length):typeof q=="string"&&(fe=q,q=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!p.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<q)throw new RangeError("Out of range index");if(q<=Y)return this;Y=Y>>>0,q=q===void 0?this.length:q>>>0,J||(J=0);var Ne;if(typeof J=="number")for(Ne=Y;Ne<q;++Ne)this[Ne]=J;else{var je=p.isBuffer(J)?J:Xe(new p(J,fe).toString()),me=je.length;for(Ne=0;Ne<q-Y;++Ne)this[Ne+Y]=je[Ne%me]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function be(he){if(he=_e(he).replace($,""),he.length<2)return"";for(;he.length%4!==0;)he=he+"=";return he}function _e(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Ee(he){return he<16?"0"+he.toString(16):he.toString(16)}function Xe(he,J){J=J||Infinity;for(var Y,q=he.length,fe=null,we=[],Ne=0;Ne<q;++Ne){if(Y=he.charCodeAt(Ne),Y>55295&&Y<57344){if(!fe){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ne+1===q){(J-=3)>-1&&we.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((J-=3)>-1&&we.push(239,191,189));if(fe=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function He(he){for(var J=[],Y=0;Y<he.length;++Y)J.push(he.charCodeAt(Y)&255);return J}function nt(he,J){for(var Y,q,fe,we=[],Ne=0;Ne<he.length&&!((J-=2)<0);++Ne)Y=he.charCodeAt(Ne),q=Y>>8,fe=Y%256,we.push(fe),we.push(q);return we}function Ie(he){return x.toByteArray(be(he))}function oe(he,J,Y,q){for(var fe=0;fe<q&&!(fe+Y>=J.length||fe>=he.length);++fe)J[fe+Y]=he[fe];return fe}function ot(he){return he!==he}}).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,n){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,n){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,n){/*!
* 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(A,m){if(!(this instanceof p))return new p(A,m);this.src=A,this._withAccess=m}p.prototype.withAccess=function(A){return this._withAccess=A!==!1,this},p.prototype.pick=function(A){return Array.isArray(A)||(A=y.call(arguments)),A.length&&(this.keys=A),this},p.prototype.to=function(A){if(A=A||{},!this.src)return A;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var f=0;f<m.length;f++){if(h=m[f],A[h]!==void 0)continue;A[h]=this.src[h]}return A}for(var f=0;f<m.length;f++){var h=m[f];if(!x(A,h))continue;var u=this.src.__lookupGetter__(h),a=this.src.__lookupSetter__(h);u&&A.__defineGetter__(h,u),a&&A.__defineSetter__(h,a),!u&&!a&&(A[h]=this.src[h])}return A},p.prototype.toCover=function(A){for(var m=this.keys||Object.keys(this.src),f=0;f<m.length;f++){var h=m[f];delete A[h];var u=this.src.__lookupGetter__(h),a=this.src.__lookupSetter__(h);u&&A.__defineGetter__(h,u),a&&A.__defineSetter__(h,a),!u&&!a&&(A[h]=this.src[h])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(A){var m={};return this.to(m),this.src=A,this.to(m),this.src=m,this};function x(A,m){return A[m]===void 0&&A.__lookupGetter__(m)===void 0&&A.__lookupSetter__(m)===void 0}},{}],77:[function(k,D,n){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,n){var y=k("../../modules/_core"),p=y.JSON||(y.JSON={stringify:JSON.stringify});D.exports=function(A){return p.stringify.apply(p,arguments)}},{"../../modules/_core":99}],79:[function(k,D,n){k("../../modules/es6.object.assign"),D.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,D,n){k("../../modules/es6.object.create");var y=k("../../modules/_core").Object;D.exports=function(x,A){return y.create(x,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,D,n){k("../../modules/es6.object.define-property");var y=k("../../modules/_core").Object;D.exports=function(x,A,m){return y.defineProperty(x,A,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(k,D,n){k("../../modules/es7.object.entries"),D.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,D,n){k("../../modules/es6.object.get-own-property-names");var y=k("../../modules/_core").Object;D.exports=function(x){return y.getOwnPropertyNames(x)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,D,n){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,n){k("../../modules/es6.object.keys"),D.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,D,n){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,n){k("../modules/web.immediate"),D.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,D,n){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,n){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,n){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,n){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,n){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(k,D,n){D.exports=function(){}},{}],94:[function(k,D,n){D.exports=function(y,p,x,A){if(!(y instanceof p)||A!==void 0&&A in y)throw TypeError(x+": incorrect invocation!");return y}},{}],95:[function(k,D,n){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,n){var y=k("./_to-iobject"),p=k("./_to-length"),x=k("./_to-absolute-index");D.exports=function(A){return function(m,f,h){var u=y(m),a=p(u.length),i=x(h,a),t;if(A&&f!=f){for(;a>i;)if(t=u[i++],t!=t)return!0}else for(;a>i;i++)if((A||i in u)&&u[i]===f)return A||i||0;return!A&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,D,n){var y=k("./_cof"),p=k("./_wks")("toStringTag"),x=y(function(){return arguments}())=="Arguments",A=function(f,h){try{return f[h]}catch(u){}};D.exports=function(m){var f,h,u;return m===void 0?"Undefined":m===null?"Null":typeof(h=A(f=Object(m),p))=="string"?h:x?y(f):(u=y(f))=="Object"&&typeof f.callee=="function"?"Arguments":u}},{"./_cof":98,"./_wks":166}],98:[function(k,D,n){var y={}.toString;D.exports=function(p){return y.call(p).slice(8,-1)}},{}],99:[function(k,D,n){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(k,D,n){"use strict";var y=k("./_object-dp"),p=k("./_property-desc");D.exports=function(x,A,m){A in x?y.f(x,A,p(0,m)):x[A]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,D,n){var y=k("./_a-function");D.exports=function(p,x,A){if(y(p),x===void 0)return p;switch(A){case 1:return function(m){return p.call(x,m)};case 2:return function(m,f){return p.call(x,m,f)};case 3:return function(m,f,h){return p.call(x,m,f,h)}}return function(){return p.apply(x,arguments)}}},{"./_a-function":92}],102:[function(k,D,n){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(k,D,n){D.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,D,n){var y=k("./_is-object"),p=k("./_global").document,x=y(p)&&y(p.createElement);D.exports=function(A){return x?p.createElement(A):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,D,n){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,D,n){var y=k("./_object-keys"),p=k("./_object-gops"),x=k("./_object-pie");D.exports=function(A){var m=y(A),f=p.f;if(f)for(var h=f(A),u=x.f,a=0,i;h.length>a;)u.call(A,i=h[a++])&&m.push(i);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,D,n){var y=k("./_global"),p=k("./_core"),x=k("./_ctx"),A=k("./_hide"),m=k("./_has"),f="prototype",h=function u(a,i,t){var o=a&u.F,e=a&u.G,l=a&u.S,r=a&u.P,s=a&u.B,c=a&u.W,d=e?p:p[i]||(p[i]={}),g=d[f],v=e?y:l?y[i]:(y[i]||{})[f],b,S,E;e&&(t=i);for(b in t){if(S=!o&&v&&v[b]!==void 0,S&&m(d,b))continue;E=S?v[b]:t[b],d[b]=e&&typeof v[b]!="function"?t[b]:s&&S?x(E,y):c&&v[b]==E?function(C){var _=function(w,O,I){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(w);case 2:return new C(w,O)}return new C(w,O,I)}return C.apply(this,arguments)};return _[f]=C[f],_}(E):r&&typeof E=="function"?x(Function.call,E):E,r&&((d.virtual||(d.virtual={}))[b]=E,a&u.R&&g&&!g[b]&&A(g,b,E))}};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,D.exports=h},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,D,n){D.exports=function(y){try{return!!y()}catch(p){return!0}}},{}],109:[function(k,D,n){var y=k("./_ctx"),p=k("./_iter-call"),x=k("./_is-array-iter"),A=k("./_an-object"),m=k("./_to-length"),f=k("./core.get-iterator-method"),h={},u={},n=D.exports=function(a,i,t,o,e){var l=e?function(){return a}:f(a),r=y(t,o,i?2:1),s=0,c,d,g,v;if(typeof l!="function")throw TypeError(a+" is not iterable!");if(x(l)){for(c=m(a.length);c>s;s++)if(v=i?r(A(d=a[s])[0],d[1]):r(a[s]),v===h||v===u)return v}else for(g=l.call(a);!(d=g.next()).done;)if(v=p(g,r,d.value,i),v===h||v===u)return v};n.BREAK=h,n.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,n){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,n){var y={}.hasOwnProperty;D.exports=function(p,x){return y.call(p,x)}},{}],112:[function(k,D,n){var y=k("./_object-dp"),p=k("./_property-desc");D.exports=k("./_descriptors")?function(x,A,m){return y.f(x,A,p(1,m))}:function(x,A,m){return x[A]=m,x}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,D,n){var y=k("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(k,D,n){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,n){D.exports=function(y,p,x){var A=x===void 0;switch(p.length){case 0:return A?y():y.call(x);case 1:return A?y(p[0]):y.call(x,p[0]);case 2:return A?y(p[0],p[1]):y.call(x,p[0],p[1]);case 3:return A?y(p[0],p[1],p[2]):y.call(x,p[0],p[1],p[2]);case 4:return A?y(p[0],p[1],p[2],p[3]):y.call(x,p[0],p[1],p[2],p[3])}return y.apply(x,p)}},{}],116:[function(k,D,n){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,n){var y=k("./_iterators"),p=k("./_wks")("iterator"),x=Array.prototype;D.exports=function(A){return A!==void 0&&(y.Array===A||x[p]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(k,D,n){var y=k("./_cof");D.exports=Array.isArray||function(x){return y(x)=="Array"}},{"./_cof":98}],119:[function(k,D,n){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(k,D,n){var y=k("./_an-object");D.exports=function(p,x,A,m){try{return m?x(y(A)[0],A[1]):x(A)}catch(h){var f=p.return;throw f!==void 0&&y(f.call(p)),h}}},{"./_an-object":95}],121:[function(k,D,n){"use strict";var y=k("./_object-create"),p=k("./_property-desc"),x=k("./_set-to-string-tag"),A={};k("./_hide")(A,k("./_wks")("iterator"),function(){return this}),D.exports=function(m,f,h){m.prototype=y(A,{next:p(1,h)}),x(m,f+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,D,n){"use strict";var y=k("./_library"),p=k("./_export"),x=k("./_redefine"),A=k("./_hide"),m=k("./_iterators"),f=k("./_iter-create"),h=k("./_set-to-string-tag"),u=k("./_object-gpo"),a=k("./_wks")("iterator"),i=!([].keys&&"next"in[].keys()),t="@@iterator",o="keys",e="values",l=function(){return this};D.exports=function(r,s,c,d,g,v,b){f(c,s,d);var S=function(B){if(!i&&B in T)return T[B];switch(B){case o:return function(){return new c(this,B)};case e:return function(){return new c(this,B)}}return function(){return new c(this,B)}},E=s+" Iterator",C=g==e,_=!1,T=r.prototype,w=T[a]||T[t]||g&&T[g],O=w||S(g),I=g?C?S("entries"):O:void 0,R=s=="Array"&&T.entries||w,M,F,P;if(R&&(P=u(R.call(new r)),P!==Object.prototype&&P.next&&(h(P,E,!0),!y&&typeof P[a]!="function"&&A(P,a,l))),C&&w&&w.name!==e&&(_=!0,O=function(){return w.call(this)}),(!y||b)&&(i||_||!T[a])&&A(T,a,O),m[s]=O,m[E]=l,g)if(M={values:C?O:S(e),keys:v?O:S(o),entries:I},b)for(F in M)F in T||x(T,F,M[F]);else p(p.P+p.F*(i||_),s,M);return M}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(k,D,n){var y=k("./_wks")("iterator"),p=!1;try{var x=[7][y]();x.return=function(){p=!0},Array.from(x,function(){throw 2})}catch(A){}D.exports=function(A,m){if(!m&&!p)return!1;var f=!1;try{var h=[7],u=h[y]();u.next=function(){return{done:f=!0}},h[y]=function(){return u},A(h)}catch(a){}return f}},{"./_wks":166}],124:[function(k,D,n){D.exports=function(y,p){return{value:p,done:!!y}}},{}],125:[function(k,D,n){D.exports={}},{}],126:[function(k,D,n){D.exports=!0},{}],127:[function(k,D,n){var y=k("./_uid")("meta"),p=k("./_is-object"),x=k("./_has"),A=k("./_object-dp").f,m=0,f=Object.isExtensible||function(){return!0},h=!k("./_fails")(function(){return f(Object.preventExtensions({}))}),u=function(l){A(l,y,{value:{i:"O"+ ++m,w:{}}})},a=function(l,r){if(!p(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!x(l,y)){if(!f(l))return"F";if(!r)return"E";u(l)}return l[y].i},i=function(l,r){if(!x(l,y)){if(!f(l))return!0;if(!r)return!1;u(l)}return l[y].w},t=function(l){return h&&o.NEED&&f(l)&&!x(l,y)&&u(l),l},o=D.exports={KEY:y,NEED:!1,fastKey:a,getWeak:i,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,D,n){var y=k("./_global"),p=k("./_task").set,x=y.MutationObserver||y.WebKitMutationObserver,A=y.process,m=y.Promise,f=k("./_cof")(A)=="process";D.exports=function(){var h,u,a,i=function(){var r,s;for(f&&(r=A.domain)&&r.exit();h;){s=h.fn,h=h.next;try{s()}catch(c){throw h?a():u=void 0,c}}u=void 0,r&&r.enter()};if(f)a=function(){A.nextTick(i)};else if(x&&!(y.navigator&&y.navigator.standalone)){var t=!0,o=document.createTextNode("");new x(i).observe(o,{characterData:!0}),a=function(){o.data=t=!t}}else if(m&&m.resolve){var e=m.resolve(void 0);a=function(){e.then(i)}}else a=function(){p.call(y,i)};return function(l){var r={fn:l,next:void 0};u&&(u.next=r),h||(h=r,a()),u=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,D,n){"use strict";var y=k("./_a-function");function p(x){var A,m;this.promise=new x(function(f,h){if(A!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");A=f,m=h}),this.resolve=y(A),this.reject=y(m)}D.exports.f=function(x){return new p(x)}},{"./_a-function":92}],130:[function(k,D,n){"use strict";var y=k("./_descriptors"),p=k("./_object-keys"),x=k("./_object-gops"),A=k("./_object-pie"),m=k("./_to-object"),f=k("./_iobject"),h=Object.assign;D.exports=!h||k("./_fails")(function(){var u={},a={},i=Symbol(),t="abcdefghijklmnopqrst";return u[i]=7,t.split("").forEach(function(o){a[o]=o}),h({},u)[i]!=7||Object.keys(h({},a)).join("")!=t})?function(a,i){for(var t=m(a),o=arguments.length,e=1,l=x.f,r=A.f;o>e;)for(var s=f(arguments[e++]),c=l?p(s).concat(l(s)):p(s),d=c.length,g=0,v;d>g;)v=c[g++],(!y||r.call(s,v))&&(t[v]=s[v]);return t}:h},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,D,n){var y=k("./_an-object"),p=k("./_object-dps"),x=k("./_enum-bug-keys"),A=k("./_shared-key")("IE_PROTO"),m=function(){},f="prototype",h=function(){var a=k("./_dom-create")("iframe"),i=x.length,t="<",o=">",e;for(a.style.display="none",k("./_html").appendChild(a),a.src="javascript:",e=a.contentWindow.document,e.open(),e.write(t+"script"+o+"document.F=Object"+t+"/script"+o),e.close(),h=e.F;i--;)delete h[f][x[i]];return h()};D.exports=Object.create||function(a,i){var t;return a!==null?(m[f]=y(a),t=new m,m[f]=null,t[A]=a):t=h(),i===void 0?t:p(t,i)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,D,n){var y=k("./_an-object"),p=k("./_ie8-dom-define"),x=k("./_to-primitive"),A=Object.defineProperty;n.f=k("./_descriptors")?Object.defineProperty:function(f,h,u){if(y(f),h=x(h,!0),y(u),p)try{return A(f,h,u)}catch(a){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(f[h]=u.value),f}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,D,n){var y=k("./_object-dp"),p=k("./_an-object"),x=k("./_object-keys");D.exports=k("./_descriptors")?Object.defineProperties:function(m,f){p(m);for(var h=x(f),u=h.length,a=0,i;u>a;)y.f(m,i=h[a++],f[i]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,D,n){var y=k("./_object-pie"),p=k("./_property-desc"),x=k("./_to-iobject"),A=k("./_to-primitive"),m=k("./_has"),f=k("./_ie8-dom-define"),h=Object.getOwnPropertyDescriptor;n.f=k("./_descriptors")?h:function(a,i){if(a=x(a),i=A(i,!0),f)try{return h(a,i)}catch(t){}if(m(a,i))return p(!y.f.call(a,i),a[i])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,D,n){var y=k("./_to-iobject"),p=k("./_object-gopn").f,x={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(h){try{return p(h)}catch(u){return A.slice()}};D.exports.f=function(h){return A&&x.call(h)=="[object Window]"?m(h):p(y(h))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,D,n){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(A){return y(A,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,D,n){n.f=Object.getOwnPropertySymbols},{}],138:[function(k,D,n){var y=k("./_has"),p=k("./_to-object"),x=k("./_shared-key")("IE_PROTO"),A=Object.prototype;D.exports=Object.getPrototypeOf||function(m){return m=p(m),y(m,x)?m[x]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?A:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(k,D,n){var y=k("./_has"),p=k("./_to-iobject"),x=k("./_array-includes")(!1),A=k("./_shared-key")("IE_PROTO");D.exports=function(m,f){var h=p(m),u=0,a=[],i;for(i in h)i!=A&&(y(h,i)&&a.push(i));for(;f.length>u;)y(h,i=f[u++])&&(~x(a,i)||a.push(i));return a}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,D,n){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys");D.exports=Object.keys||function(A){return y(A,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,D,n){n.f={}.propertyIsEnumerable},{}],142:[function(k,D,n){var y=k("./_export"),p=k("./_core"),x=k("./_fails");D.exports=function(A,m){var f=(p.Object||{})[A]||Object[A],h={};h[A]=m(f),y(y.S+y.F*x(function(){f(1)}),"Object",h)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,D,n){var y=k("./_descriptors"),p=k("./_object-keys"),x=k("./_to-iobject"),A=k("./_object-pie").f;D.exports=function(m){return function(f){for(var h=x(f),u=p(h),a=u.length,i=0,t=[],o;a>i;)o=u[i++],(!y||A.call(h,o))&&t.push(m?[o,h[o]]:h[o]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,D,n){D.exports=function(y){try{return{e:!1,v:y()}}catch(p){return{e:!0,v:p}}}},{}],145:[function(k,D,n){var y=k("./_an-object"),p=k("./_is-object"),x=k("./_new-promise-capability");D.exports=function(A,m){if(y(A),p(m)&&m.constructor===A)return m;var f=x.f(A),h=f.resolve;return h(m),f.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,D,n){D.exports=function(y,p){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:p}}},{}],147:[function(k,D,n){var y=k("./_hide");D.exports=function(p,x,A){for(var m in x)A&&p[m]?p[m]=x[m]:y(p,m,x[m]);return p}},{"./_hide":112}],148:[function(k,D,n){D.exports=k("./_hide")},{"./_hide":112}],149:[function(k,D,n){"use strict";var y=k("./_global"),p=k("./_core"),x=k("./_object-dp"),A=k("./_descriptors"),m=k("./_wks")("species");D.exports=function(f){var h=typeof p[f]=="function"?p[f]:y[f];A&&h&&!h[m]&&x.f(h,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,D,n){var y=k("./_object-dp").f,p=k("./_has"),x=k("./_wks")("toStringTag");D.exports=function(A,m,f){A&&!p(A=f?A:A.prototype,x)&&y(A,x,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,D,n){var y=k("./_shared")("keys"),p=k("./_uid");D.exports=function(x){return y[x]||(y[x]=p(x))}},{"./_shared":152,"./_uid":162}],152:[function(k,D,n){var y=k("./_core"),p=k("./_global"),x="__core-js_shared__",A=p[x]||(p[x]={});(D.exports=function(m,f){return A[m]||(A[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,n){var y=k("./_an-object"),p=k("./_a-function"),x=k("./_wks")("species");D.exports=function(A,m){var f=y(A).constructor,h;return f===void 0||(h=y(f)[x])==null?m:p(h)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,D,n){var y=k("./_to-integer"),p=k("./_defined");D.exports=function(x){return function(A,m){var f=String(p(A)),h=y(m),u=f.length,a,i;return h<0||h>=u?x?"":void 0:(a=f.charCodeAt(h),a<55296||a>56319||h+1===u||(i=f.charCodeAt(h+1))<56320||i>57343?x?f.charAt(h):a:x?f.slice(h,h+2):(a-55296<<10)+(i-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,D,n){var y=k("./_ctx"),p=k("./_invoke"),x=k("./_html"),A=k("./_dom-create"),m=k("./_global"),f=m.process,h=m.setImmediate,u=m.clearImmediate,a=m.MessageChannel,i=m.Dispatch,t=0,o={},e="onreadystatechange",l,r,s,c=function(){var v=+this;if(o.hasOwnProperty(v)){var b=o[v];delete o[v],b()}},d=function(v){c.call(v.data)};(!h||!u)&&(h=function(v){for(var b=[],S=1;arguments.length>S;)b.push(arguments[S++]);return o[++t]=function(){p(typeof v=="function"?v:Function(v),b)},l(t),t},u=function(v){delete o[v]},k("./_cof")(f)=="process"?l=function(v){f.nextTick(y(c,v,1))}:i&&i.now?l=function(v){i.now(y(c,v,1))}:a?(r=new a,s=r.port2,r.port1.onmessage=d,l=y(s.postMessage,s,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(l=function(v){m.postMessage(v+"","*")},m.addEventListener("message",d,!1)):e in A("script")?l=function(v){x.appendChild(A("script"))[e]=function(){x.removeChild(this),c.call(v)}}:l=function(v){setTimeout(y(c,v,1),0)}),D.exports={set:h,clear:u}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,D,n){var y=k("./_to-integer"),p=Math.max,x=Math.min;D.exports=function(A,m){return A=y(A),A<0?p(A+m,0):x(A,m)}},{"./_to-integer":157}],157:[function(k,D,n){var y=Math.ceil,p=Math.floor;D.exports=function(x){return isNaN(x=+x)?0:(x>0?p:y)(x)}},{}],158:[function(k,D,n){var y=k("./_iobject"),p=k("./_defined");D.exports=function(x){return y(p(x))}},{"./_defined":102,"./_iobject":116}],159:[function(k,D,n){var y=k("./_to-integer"),p=Math.min;D.exports=function(x){return x>0?p(y(x),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,D,n){var y=k("./_defined");D.exports=function(p){return Object(y(p))}},{"./_defined":102}],161:[function(k,D,n){var y=k("./_is-object");D.exports=function(p,x){if(!y(p))return p;var A,m;if(x&&typeof(A=p.toString)=="function"&&!y(m=A.call(p)))return m;if(typeof(A=p.valueOf)=="function"&&!y(m=A.call(p)))return m;if(!x&&typeof(A=p.toString)=="function"&&!y(m=A.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,D,n){var y=0,p=Math.random();D.exports=function(x){return"Symbol(".concat(x===void 0?"":x,")_",(++y+p).toString(36))}},{}],163:[function(k,D,n){var y=k("./_global"),p=y.navigator;D.exports=p&&p.userAgent||""},{"./_global":110}],164:[function(k,D,n){var y=k("./_global"),p=k("./_core"),x=k("./_library"),A=k("./_wks-ext"),m=k("./_object-dp").f;D.exports=function(f){var h=p.Symbol||(p.Symbol=x?{}:y.Symbol||{});f.charAt(0)!="_"&&!(f in h)&&m(h,f,{value:A.f(f)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,D,n){n.f=k("./_wks")},{"./_wks":166}],166:[function(k,D,n){var y=k("./_shared")("wks"),p=k("./_uid"),x=k("./_global").Symbol,A=typeof x=="function",m=D.exports=function(f){return y[f]||(y[f]=A&&x[f]||(A?x:p)("Symbol."+f))};m.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,D,n){var y=k("./_classof"),p=k("./_wks")("iterator"),x=k("./_iterators");D.exports=k("./_core").getIteratorMethod=function(A){if(A!=null)return A[p]||A["@@iterator"]||x[y(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,D,n){"use strict";var y=k("./_ctx"),p=k("./_export"),x=k("./_to-object"),A=k("./_iter-call"),m=k("./_is-array-iter"),f=k("./_to-length"),h=k("./_create-property"),u=k("./core.get-iterator-method");p(p.S+p.F*!k("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(i){var t=x(i),o=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,r=l!==void 0,s=0,c=u(t),d,g,v,b;if(r&&(l=y(l,e>2?arguments[2]:void 0,2)),c!=null&&!(o==Array&&m(c)))for(b=c.call(t),g=new o;!(v=b.next()).done;s++)h(g,s,r?A(b,l,[v.value,s],!0):v.value);else for(d=f(t.length),g=new o(d);d>s;s++)h(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,n){"use strict";var y=k("./_add-to-unscopables"),p=k("./_iter-step"),x=k("./_iterators"),A=k("./_to-iobject");D.exports=k("./_iter-define")(Array,"Array",function(m,f){this._t=A(m),this._i=0,this._k=f},function(){var m=this._t,f=this._k,h=this._i++;return!m||h>=m.length?(this._t=void 0,p(1)):f=="keys"?p(0,h):f=="values"?p(0,m[h]):p(0,[h,m[h]])},"values"),x.Arguments=x.Array,y("keys"),y("values"),y("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,D,n){"use strict";var y=k("./_is-object"),p=k("./_object-gpo"),x=k("./_wks")("hasInstance"),A=Function.prototype;x in A||k("./_object-dp").f(A,x,{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,n){var y=k("./_export");y(y.S+y.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,D,n){var y=k("./_export");y(y.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,D,n){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,n){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,D,n){var y=k("./_to-object"),p=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(A){return p(y(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,D,n){var y=k("./_to-object"),p=k("./_object-keys");k("./_object-sap")("keys",function(){return function(A){return p(y(A))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,D,n){arguments[4][71][0].apply(n,arguments)},{dup:71}],178:[function(k,D,n){"use strict";var y=k("./_library"),p=k("./_global"),x=k("./_ctx"),A=k("./_classof"),m=k("./_export"),f=k("./_is-object"),h=k("./_a-function"),u=k("./_an-instance"),a=k("./_for-of"),i=k("./_species-constructor"),t=k("./_task").set,o=k("./_microtask")(),e=k("./_new-promise-capability"),l=k("./_perform"),r=k("./_user-agent"),s=k("./_promise-resolve"),c="Promise",d=p.TypeError,g=p.process,v=g&&g.versions,b=v&&v.v8||"",S=p[c],E=A(g)=="process",C=function(){},_,T,w,O,I=T=e.f,R=!!function(){try{var z=S.resolve(1),V=(z.constructor={})[k("./_wks")("species")]=function(Q){Q(C,C)};return(E||typeof PromiseRejectionEvent=="function")&&z.then(C)instanceof V&&b.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(Q){}}(),M=function(V){var Q;return f(V)&&typeof(Q=V.then)=="function"?Q:!1},F=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;o(function(){for(var re=V._v,ee=V._s==1,ue=0,$=function(_e){var Ee=ee?_e.ok:_e.fail,Xe=_e.resolve,He=_e.reject,nt=_e.domain,Ie,oe,ot;try{Ee?(ee||(V._h==2&&B(V),V._h=1),Ee===!0?Ie=re:(nt&&nt.enter(),Ie=Ee(re),nt&&(nt.exit(),ot=!0)),Ie===_e.promise?He(d("Promise-chain cycle")):(oe=M(Ie))?oe.call(Ie,Xe,He):Xe(Ie)):He(re)}catch(he){nt&&!ot&&nt.exit(),He(he)}};G.length>ue;)$(G[ue++]);V._c=[],V._n=!1,Q&&!V._h&&P(V)})},P=function(V){t.call(p,function(){var Q=V._v,G=X(V),re,ee,ue;if(G&&(re=l(function(){E?g.emit("unhandledRejection",Q,V):(ee=p.onunhandledrejection)?ee({promise:V,reason:Q}):(ue=p.console)&&ue.error&&ue.error("Unhandled promise rejection",Q)}),V._h=E||X(V)?2:1),V._a=void 0,G&&re.e)throw re.v})},X=function(V){return V._h!==1&&(V._a||V._c).length===0},B=function(V){t.call(p,function(){var Q;E?g.emit("rejectionHandled",V):(Q=p.onrejectionhandled)&&Q({promise:V,reason:V._v})})},j=function(V){var Q=this;if(Q._d)return;Q._d=!0,Q=Q._w||Q,Q._v=V,Q._s=2,Q._a||(Q._a=Q._c.slice()),F(Q,!0)},W=function z(V){var Q=this,G;if(Q._d)return;Q._d=!0,Q=Q._w||Q;try{if(Q===V)throw d("Promise can't be resolved itself");(G=M(V))?o(function(){var re={_w:Q,_d:!1};try{G.call(V,x(z,re,1),x(j,re,1))}catch(ee){j.call(re,ee)}}):(Q._v=V,Q._s=1,F(Q,!1))}catch(re){j.call({_w:Q,_d:!1},re)}};R||(S=function(V){u(this,S,c,"_h"),h(V),_.call(this);try{V(x(W,this,1),x(j,this,1))}catch(Q){j.call(this,Q)}},_=function(V){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},_.prototype=k("./_redefine-all")(S.prototype,{then:function(V,Q){var G=I(i(this,S));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=E?g.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&F(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),w=function(){var V=new _;this.promise=V,this.resolve=x(W,V,1),this.reject=x(j,V,1)},e.f=I=function(V){return V===S||V===O?new w(V):T(V)}),m(m.G+m.W+m.F*!R,{Promise:S}),k("./_set-to-string-tag")(S,c),k("./_set-species")(c),O=k("./_core")[c],m(m.S+m.F*!R,c,{reject:function(V){var Q=I(this),G=Q.reject;return G(V),Q.promise}}),m(m.S+m.F*(y||!R),c,{resolve:function(V){return s(y&&this===O?S:this,V)}}),m(m.S+m.F*!(R&&k("./_iter-detect")(function(z){S.all(z).catch(C)})),c,{all:function(V){var Q=this,G=I(Q),re=G.resolve,ee=G.reject,ue=l(function(){var $=[],be=0,_e=1;a(V,!1,function(Ee){var Xe=be++,He=!1;$.push(void 0),_e++,Q.resolve(Ee).then(function(nt){if(He)return;He=!0,$[Xe]=nt,--_e||re($)},ee)}),--_e||re($)});return ue.e&&ee(ue.v),G.promise},race:function(V){var Q=this,G=I(Q),re=G.reject,ee=l(function(){a(V,!1,function(ue){Q.resolve(ue).then(G.resolve,re)})});return ee.e&&re(ee.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,n){var y=k("./_export"),p=k("./_to-absolute-index"),x=String.fromCharCode,A=String.fromCodePoint;y(y.S+y.F*(!!A&&A.length!=1),"String",{fromCodePoint:function(f){for(var h=[],u=arguments.length,a=0,i;u>a;){if(i=+arguments[a++],p(i,1114111)!==i)throw RangeError(i+" is not a valid code point");h.push(i<65536?x(i):x(((i-=65536)>>10)+55296,i%1024+56320))}return h.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,D,n){"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,x=this._i,A;return x>=p.length?{value:void 0,done:!0}:(A=y(p,x),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,D,n){"use strict";var y=k("./_global"),p=k("./_has"),x=k("./_descriptors"),A=k("./_export"),m=k("./_redefine"),f=k("./_meta").KEY,h=k("./_fails"),u=k("./_shared"),a=k("./_set-to-string-tag"),i=k("./_uid"),t=k("./_wks"),o=k("./_wks-ext"),e=k("./_wks-define"),l=k("./_enum-keys"),r=k("./_is-array"),s=k("./_an-object"),c=k("./_is-object"),d=k("./_to-object"),g=k("./_to-iobject"),v=k("./_to-primitive"),b=k("./_property-desc"),S=k("./_object-create"),E=k("./_object-gopn-ext"),C=k("./_object-gopd"),_=k("./_object-gops"),T=k("./_object-dp"),w=k("./_object-keys"),O=C.f,I=T.f,R=E.f,M=y.Symbol,F=y.JSON,P=F&&F.stringify,X="prototype",B=t("_hidden"),j=t("toPrimitive"),W={}.propertyIsEnumerable,z=u("symbol-registry"),V=u("symbols"),Q=u("op-symbols"),G=Object[X],re=typeof M=="function"&&!!_.f,ee=y.QObject,ue=!ee||!ee[X]||!ee[X].findChild,$=x&&h(function(){return S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(we,Ne,je){var me=O(G,Ne);me&&delete G[Ne],I(we,Ne,je),me&&we!==G&&I(G,Ne,me)}:I,be=function(Ne){var je=V[Ne]=S(M[X]);return je._k=Ne,je},_e=re&&typeof M.iterator=="symbol"?function(we){return typeof we=="symbol"}:function(we){return we instanceof M},Ee=function(Ne,je,me){return Ne===G&&Ee(Q,je,me),s(Ne),je=v(je,!0),s(me),p(V,je)?(me.enumerable?(p(Ne,B)&&Ne[B][je]&&(Ne[B][je]=!1),me=S(me,{enumerable:b(0,!1)})):(p(Ne,B)||I(Ne,B,b(1,{})),Ne[B][je]=!0),$(Ne,je,me)):I(Ne,je,me)},Xe=function(Ne,je){s(Ne);for(var me=l(je=g(je)),Ce=0,Fe=me.length,it;Fe>Ce;)Ee(Ne,it=me[Ce++],je[it]);return Ne},He=function(Ne,je){return je===void 0?S(Ne):Xe(S(Ne),je)},nt=function(Ne){var je=W.call(this,Ne=v(Ne,!0));return this===G&&p(V,Ne)&&!p(Q,Ne)?!1:je||!p(this,Ne)||!p(V,Ne)||p(this,B)&&this[B][Ne]?je:!0},Ie=function(Ne,je){if(Ne=g(Ne),je=v(je,!0),Ne===G&&p(V,je)&&!p(Q,je))return;var me=O(Ne,je);return me&&p(V,je)&&!(p(Ne,B)&&Ne[B][je])&&(me.enumerable=!0),me},oe=function(Ne){for(var je=R(g(Ne)),me=[],Ce=0,Fe;je.length>Ce;)!p(V,Fe=je[Ce++])&&Fe!=B&&Fe!=f&&me.push(Fe);return me},ot=function(Ne){for(var je=Ne===G,me=R(je?Q:g(Ne)),Ce=[],Fe=0,it;me.length>Fe;)p(V,it=me[Fe++])&&(je?p(G,it):!0)&&Ce.push(V[it]);return Ce};re||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var Ne=i(arguments.length>0?arguments[0]:void 0),je=function me(Ce){this===G&&me.call(Q,Ce),p(this,B)&&p(this[B],Ne)&&(this[B][Ne]=!1),$(this,Ne,b(1,Ce))};return x&&ue&&$(G,Ne,{configurable:!0,set:je}),be(Ne)},m(M[X],"toString",function(){return this._k}),C.f=Ie,T.f=Ee,k("./_object-gopn").f=E.f=oe,k("./_object-pie").f=nt,_.f=ot,x&&!k("./_library")&&m(G,"propertyIsEnumerable",nt,!0),o.f=function(we){return be(t(we))}),A(A.G+A.W+A.F*!re,{Symbol:M});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;he.length>J;)t(he[J++]);for(var Y=w(t.store),q=0;Y.length>q;)e(Y[q++]);A(A.S+A.F*!re,"Symbol",{for:function(Ne){return p(z,Ne+="")?z[Ne]:z[Ne]=M(Ne)},keyFor:function(Ne){if(!_e(Ne))throw TypeError(Ne+" is not a symbol!");for(var je in z)if(z[je]===Ne)return je},useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),A(A.S+A.F*!re,"Object",{create:He,defineProperty:Ee,defineProperties:Xe,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:oe,getOwnPropertySymbols:ot});var fe=h(function(){_.f(1)});A(A.S+A.F*fe,"Object",{getOwnPropertySymbols:function(Ne){return _.f(d(Ne))}}),F&&A(A.S+A.F*(!re||h(function(){var we=M();return P([we])!="[null]"||P({a:we})!="{}"||P(Object(we))!="{}"})),"JSON",{stringify:function(Ne){for(var je=[Ne],me=1,Ce,Fe;arguments.length>me;)je.push(arguments[me++]);return Fe=Ce=je[1],!c(Ce)&&Ne===void 0||_e(Ne)?void 0:(r(Ce)||(Ce=function(Ct,mt){if(typeof Fe=="function"&&(mt=Fe.call(this,Ct,mt)),!_e(mt))return mt}),je[1]=Ce,P.apply(F,je))}}),M[X][j]||k("./_hide")(M[X],j,M[X].valueOf),a(M,"Symbol"),a(Math,"Math",!0),a(y.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(k,D,n){var y=k("./_export"),p=k("./_object-to-array")(!0);y(y.S,"Object",{entries:function(A){return p(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,D,n){"use strict";var y=k("./_export"),p=k("./_core"),x=k("./_global"),A=k("./_species-constructor"),m=k("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(h){var u=A(this,p.Promise||x.Promise),a=typeof h=="function";return this.then(a?function(i){return m(u,h()).then(function(){return i})}:h,a?function(i){return m(u,h()).then(function(){throw i})}:h)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,D,n){"use strict";var y=k("./_export"),p=k("./_new-promise-capability"),x=k("./_perform");y(y.S,"Promise",{try:function(m){var f=p.f(this),h=x(m);return(h.e?f.reject:f.resolve)(h.v),f.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,D,n){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,D,n){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,D,n){k("./es6.array.iterator");for(var y=k("./_global"),p=k("./_hide"),x=k("./_iterators"),A=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 h=m[f],u=y[h],a=u&&u.prototype;a&&!a[A]&&p(a,A,h),x[h]=x.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,D,n){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,n){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),x=A(p);function A(v){return v&&v.__esModule?v:{default:v}}function m(v){return Array.isArray?Array.isArray(v):g(v)==="[object Array]"}n.isArray=m;function f(v){return typeof v=="boolean"}n.isBoolean=f;function h(v){return v===null}n.isNull=h;function u(v){return v==null}n.isNullOrUndefined=u;function a(v){return typeof v=="number"}n.isNumber=a;function i(v){return typeof v=="string"}n.isString=i;function t(v){return(typeof v=="undefined"?"undefined":(0,x.default)(v))==="symbol"}n.isSymbol=t;function o(v){return v===void 0}n.isUndefined=o;function e(v){return g(v)==="[object RegExp]"}n.isRegExp=e;function l(v){return(typeof v=="undefined"?"undefined":(0,x.default)(v))==="object"&&v!==null}n.isObject=l;function r(v){return g(v)==="[object Date]"}n.isDate=r;function s(v){return g(v)==="[object Error]"||v instanceof Error}n.isError=s;function c(v){return typeof v=="function"}n.isFunction=c;function d(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||(typeof v=="undefined"?"undefined":(0,x.default)(v))==="symbol"||typeof v=="undefined"}n.isPrimitive=d,n.isBuffer=y.isBuffer;function g(v){return Object.prototype.toString.call(v)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,D,n){"use strict";var y=k("babel-runtime/helpers/typeof"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(A){"use strict";var m=function(){var i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,o=/[^-+\dA-Z]/g;return function(e,l,r,s){if(arguments.length===1&&a(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(m.masks[l]||l||m.masks.default);var c=l.slice(0,4);(c==="UTC:"||c==="GMT:")&&(l=l.slice(4),r=!0,c==="GMT:"&&(s=!0));var d=r?"getUTC":"get",g=e[d+"Date"](),v=e[d+"Day"](),b=e[d+"Month"](),S=e[d+"FullYear"](),E=e[d+"Hours"](),C=e[d+"Minutes"](),_=e[d+"Seconds"](),T=e[d+"Milliseconds"](),w=r?0:e.getTimezoneOffset(),O=h(e),I=u(e),R={d:g,dd:f(g),ddd:m.i18n.dayNames[v],dddd:m.i18n.dayNames[v+7],m:b+1,mm:f(b+1),mmm:m.i18n.monthNames[b],mmmm:m.i18n.monthNames[b+12],yy:String(S).slice(2),yyyy:S,h:E%12||12,hh:f(E%12||12),H:E,HH:f(E),M:C,MM:f(C),s:_,ss:f(_),l:f(T,3),L:f(Math.round(T/10)),t:E<12?"a":"p",tt:E<12?"am":"pm",T:E<12?"A":"P",TT:E<12?"AM":"PM",Z:s?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(o,""),o:(w>0?"-":"+")+f(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:O,N:I};return l.replace(i,function(M){return M in R?R[M]:M.slice(1,M.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function f(i,t){for(i=String(i),t=t||2;i.length<t;)i="0"+i;return i}function h(i){var t=new Date(i.getFullYear(),i.getMonth(),i.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);var e=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-e);var l=(t-o)/(864e5*7);return 1+Math.floor(l)}function u(i){var t=i.getDay();return t===0&&(t=7),t}function a(i){return i===null?"null":i===void 0?"undefined":(typeof i=="undefined"?"undefined":(0,p.default)(i))!=="object"?typeof i=="undefined"?"undefined":(0,p.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof n=="undefined"?"undefined":(0,p.default)(n))==="object"?D.exports=m:A.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,D,n){/*!
* 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(x){var A=""+x,m=y.exec(A);if(!m)return A;var f,h="",u=0,a=0;for(u=m.index;u<A.length;u++){switch(A.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}a!==u&&(h+=A.substring(a,u)),a=u+1,h+=f}return a!==u?h+A.substring(a,u):h}},{}],192:[function(k,D,n){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(!x(f)||f<0||isNaN(f))throw TypeError("n must be a positive number");return this._maxListeners=f,this},y.prototype.emit=function(f){var h,u,a,i,t,o;if(this._events||(this._events={}),f==="error"&&(!this._events.error||A(this._events.error)&&!this._events.error.length)){if(h=arguments[1],h instanceof Error)throw h;var e=new Error('Uncaught, unspecified "error" event. ('+h+")");throw e.context=h,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:i=Array.prototype.slice.call(arguments,1),u.apply(this,i)}else if(A(u))for(i=Array.prototype.slice.call(arguments,1),o=u.slice(),a=o.length,t=0;t<a;t++)o[t].apply(this,i);return!0},y.prototype.addListener=function(f,h){var u;if(!p(h))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",f,p(h.listener)?h.listener:h),this._events[f]?A(this._events[f])?this._events[f].push(h):this._events[f]=[this._events[f],h]:this._events[f]=h,A(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,h){if(!p(h))throw TypeError("listener must be a function");var u=!1;function a(){this.removeListener(f,a),u||(u=!0,h.apply(this,arguments))}return a.listener=h,this.on(f,a),this},y.prototype.removeListener=function(f,h){var u,a,i,t;if(!p(h))throw TypeError("listener must be a function");if(!this._events||!this._events[f])return this;if(u=this._events[f],i=u.length,a=-1,u===h||p(u.listener)&&u.listener===h)delete this._events[f],this._events.removeListener&&this.emit("removeListener",f,h);else if(A(u)){for(t=i;t-- >0;)if(u[t]===h||u[t].listener&&u[t].listener===h){a=t;break}if(a<0)return this;u.length===1?(u.length=0,delete this._events[f]):u.splice(a,1),this._events.removeListener&&this.emit("removeListener",f,h)}return this},y.prototype.removeAllListeners=function(f){var h,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(h in this._events){if(h==="removeListener")continue;this.removeAllListeners(h)}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 h;return!this._events||!this._events[f]?h=[]:p(this._events[f])?h=[this._events[f]]:h=this._events[f].slice(),h},y.prototype.listenerCount=function(f){if(this._events){var h=this._events[f];if(p(h))return 1;if(h)return h.length}return 0},y.listenerCount=function(f,h){return f.listenerCount(h)};function p(f){return typeof f=="function"}function x(f){return typeof f=="number"}function A(f){return typeof f=="object"&&f!==null}function m(f){return f===void 0}},{}],193:[function(k,D,n){var y=k("http"),p=D.exports;for(var x in y)y.hasOwnProperty(x)&&(p[x]=y[x]);p.request=function(A,m){return A||(A={}),A.scheme="https",A.protocol="https:",y.request.call(this,A,m)}},{http:231}],194:[function(k,D,n){/*!
* 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(x){if(typeof x=="number")return x;var A=p(x);if(A===void 0){var m=new Error(y.format("humanize-ms(%j) result undefined",x));console.warn(m.stack)}return A}},{ms:204,util:243}],195:[function(k,D,n){n.read=function(y,p,x,A,m){var f,h,u=m*8-A-1,a=(1<<u)-1,i=a>>1,t=-7,o=x?m-1:0,e=x?-1:1,l=y[p+o];for(o+=e,f=l&(1<<-t)-1,l>>=-t,t+=u;t>0;f=f*256+y[p+o],o+=e,t-=8);for(h=f&(1<<-t)-1,f>>=-t,t+=A;t>0;h=h*256+y[p+o],o+=e,t-=8);if(f===0)f=1-i;else{if(f===a)return h?NaN:(l?-1:1)*Infinity;h=h+Math.pow(2,A),f=f-i}return(l?-1:1)*h*Math.pow(2,f-A)},n.write=function(y,p,x,A,m,f){var h,u,a,i=f*8-m-1,t=(1<<i)-1,o=t>>1,e=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=A?0:f-1,r=A?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,h=t):(h=Math.floor(Math.log(p)/Math.LN2),p*(a=Math.pow(2,-h))<1&&(h--,a*=2),h+o>=1?p+=e/a:p+=e*Math.pow(2,1-o),p*a>=2&&(h++,a/=2),h+o>=t?(u=0,h=t):h+o>=1?(u=(p*a-1)*Math.pow(2,m),h=h+o):(u=p*Math.pow(2,o-1)*Math.pow(2,m),h=0));m>=8;y[x+l]=u&255,l+=r,u/=256,m-=8);for(h=h<<m|u,i+=m;i>0;y[x+l]=h&255,l+=r,h/=256,i-=8);y[x+l-r]|=s*128}},{}],196:[function(k,D,n){typeof Object.create=="function"?D.exports=function(p,x){x&&(p.super_=x,p.prototype=Object.create(x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(p,x){if(x){p.super_=x;var A=function(){};A.prototype=x.prototype,p.prototype=new A,p.prototype.constructor=p}}},{}],197:[function(k,D,n){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/D.exports=function(x){return x!=null&&(y(x)||p(x)||!!x._isBuffer)};function y(x){return!!x.constructor&&typeof x.constructor.isBuffer=="function"&&x.constructor.isBuffer(x)}function p(x){return typeof x.readFloatLE=="function"&&typeof x.slice=="function"&&y(x.slice(0,0))}},{}],198:[function(k,D,n){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={},n=0,y=k.length;n<y;n++)D[k.charAt(n)]=n;return D}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(D){if(D.length<2){var n=D.charCodeAt(0);return n<128?D:n<2048?fromCharCode(192|n>>>6)+fromCharCode(128|n&63):fromCharCode(224|n>>>12&15)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&63)}else{var n=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return fromCharCode(240|n>>>18&7)+fromCharCode(128|n>>>12&63)+fromCharCode(128|n>>>6&63)+fromCharCode(128|n&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 n=[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),n>=2?"=":b64chars.charAt(y>>>6&63),n>=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 n=Object.prototype.toString.call(D)==="[object Uint8Array]";return n?D.toString("base64"):btoa(utob(String(D)))},encode=function(D,n){return n?_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 n=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),y=n-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 n=D.length,y=n%4,p=(n>0?b64tab[D.charAt(0)]<<18:0)|(n>1?b64tab[D.charAt(1)]<<12:0)|(n>2?b64tab[D.charAt(2)]<<6:0)|(n>3?b64tab[D.charAt(3)]:0),x=[fromCharCode(p>>>16),fromCharCode(p>>>8&255),fromCharCode(p&255)];return x.length-=[0,0,2,1][y],x.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(n){return n=="-"?"+":"/"}).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,n){/*!
* 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(x,A,m){if(!x)throw new TypeError("argument dest is required");if(!A)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(A).forEach(function(h){if(!m&&y.call(x,h))return;var u=Object.getOwnPropertyDescriptor(A,h);Object.defineProperty(x,h,u)}),x}},{}],201:[function(k,D,n){"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,x){for(var A in p){var m=p[A].map(function(u){return u.toLowerCase()});A=A.toLowerCase();for(var f=0;f<m.length;f++){var h=m[f];if(h[0]=="*")continue;if(!x&&h in this._types)throw new Error('Attempt to change mapping for "'+h+'" extension from "'+this._types[h]+'" to "'+A+'". Pass `force=true` to allow this, otherwise remove "'+h+'" from the list of extensions for "'+A+'".');this._types[h]=A}if(x||!this._extensions[A]){var h=m[0];this._extensions[A]=h[0]!="*"?h:h.substr(1)}}},y.prototype.getType=function(p){p=String(p);var x=p.replace(/^.*[/\\]/,"").toLowerCase(),A=x.replace(/^.*\./,"").toLowerCase(),m=x.length<p.length,f=A.length<x.length-1;return(f||!m)&&this._types[A]||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,n){"use strict";var y=k("./Mime");D.exports=new y(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,D,n){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,n){var y=1e3,p=y*60,x=p*60,A=x*24,m=A*7,f=A*365.25;D.exports=function(t,o){o=o||{};var e=typeof t;if(e==="string"&&t.length>0)return h(t);if(e==="number"&&isFinite(t))return o.long?a(t):u(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function h(t){if(t=String(t),t.length>100)return;var o=/^(-?(?:\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(!o)return;var e=parseFloat(o[1]),l=(o[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*A;case"hours":case"hour":case"hrs":case"hr":case"h":return e*x;case"minutes":case"minute":case"mins":case"min":case"m":return e*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 o=Math.abs(t);return o>=A?Math.round(t/A)+"d":o>=x?Math.round(t/x)+"h":o>=p?Math.round(t/p)+"m":o>=y?Math.round(t/y)+"s":t+"ms"}function a(t){var o=Math.abs(t);return o>=A?i(t,o,A,"day"):o>=x?i(t,o,x,"hour"):o>=p?i(t,o,p,"minute"):o>=y?i(t,o,y,"second"):t+" ms"}function i(t,o,e,l){var r=o>=e*1.5;return Math.round(t/e)+" "+l+(r?"s":"")}},{}],205:[function(k,D,n){(function(y){function p(f,h){for(var u=0,a=f.length-1;a>=0;a--){var i=f[a];i==="."?f.splice(a,1):i===".."?(f.splice(a,1),u++):u&&(f.splice(a,1),u--)}if(h)for(;u--;u)f.unshift("..");return f}n.resolve=function(){for(var f="",h=!1,u=arguments.length-1;u>=-1&&!h;u--){var a=u>=0?arguments[u]:y.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)continue;f=a+"/"+f,h=a.charAt(0)==="/"}return f=p(A(f.split("/"),function(i){return!!i}),!h).join("/"),(h?"/":"")+f||"."},n.normalize=function(f){var h=n.isAbsolute(f),u=m(f,-1)==="/";return f=p(A(f.split("/"),function(a){return!!a}),!h).join("/"),!f&&!h&&(f="."),f&&u&&(f+="/"),(h?"/":"")+f},n.isAbsolute=function(f){return f.charAt(0)==="/"},n.join=function(){var f=Array.prototype.slice.call(arguments,0);return n.normalize(A(f,function(h,u){if(typeof h!="string")throw new TypeError("Arguments to path.join must be strings");return h}).join("/"))},n.relative=function(f,h){f=n.resolve(f).substr(1),h=n.resolve(h).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 a=u(f.split("/")),i=u(h.split("/")),t=Math.min(a.length,i.length),o=t,e=0;e<t;e++)if(a[e]!==i[e]){o=e;break}for(var l=[],e=o;e<a.length;e++)l.push("..");return l=l.concat(i.slice(o)),l.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(f){if(typeof f!="string"&&(f=f+""),f.length===0)return".";for(var h=f.charCodeAt(0),u=h===47,a=-1,i=!0,t=f.length-1;t>=1;--t)if(h=f.charCodeAt(t),h===47){if(!i){a=t;break}}else i=!1;return a===-1?u?"/":".":u&&a===1?"/":f.slice(0,a)};function x(f){typeof f!="string"&&(f=f+"");var h=0,u=-1,a=!0,i;for(i=f.length-1;i>=0;--i)if(f.charCodeAt(i)===47){if(!a){h=i+1;break}}else u===-1&&(a=!1,u=i+1);return u===-1?"":f.slice(h,u)}n.basename=function(f,h){var u=x(f);return h&&u.substr(-1*h.length)===h&&(u=u.substr(0,u.length-h.length)),u},n.extname=function(f){typeof f!="string"&&(f=f+"");for(var h=-1,u=0,a=-1,i=!0,t=0,o=f.length-1;o>=0;--o){var e=f.charCodeAt(o);if(e===47){if(!i){u=o+1;break}continue}a===-1&&(i=!1,a=o+1),e===46?h===-1?h=o:t!==1&&(t=1):h!==-1&&(t=-1)}return h===-1||a===-1||t===0||t===1&&h===a-1&&h===u+1?"":f.slice(h,a)};function A(f,h){if(f.filter)return f.filter(h);for(var u=[],a=0;a<f.length;a++)h(f[a],a,f)&&u.push(f[a]);return u}var m="ab".substr(-1)==="b"?function(f,h,u){return f.substr(h,u)}:function(f,h,u){return h<0&&(h=f.length+h),f.substr(h,u)}}).call(this,k("_process"))},{_process:208}],206:[function(k,D,n){(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},x=p[typeof window]&&window||this,A=x,m=p[typeof n]&&n,f=p[typeof D]&&D&&!D.nodeType&&D,h=m&&f&&typeof y=="object"&&y;h&&(h.global===h||h.window===h||h.self===h)&&(x=h);var u=Math.pow(2,53)-1,a=/\bOpera/,i=this,t=Object.prototype,o=t.hasOwnProperty,e=t.toString;function l(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function r(T,w,O){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return w&&O&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(I=I[/[\d.]+$/.exec(T)])&&(T="Windows "+I),T=String(T),w&&O&&(T=T.replace(RegExp(w,"i"),O)),T=c(T.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),T}function s(T,w){var O=-1,I=T?T.length:0;if(typeof I=="number"&&I>-1&&I<=u)for(;++O<I;)w(T[O],O,T);else d(T,w)}function c(T){return T=E(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:l(T)}function d(T,w){for(var O in T)o.call(T,O)&&w(T[O],O,T)}function g(T){return T==null?l(T):e.call(T).slice(8,-1)}function v(T,w){var O=T!=null?typeof T[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!T[w]:!0)}function b(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function S(T,w){var O=null;return s(T,function(I,R){O=w(O,I,R,T)}),O}function E(T){return String(T).replace(/^ +| +$/g,"")}function C(T){var w=x,O=T&&typeof T=="object"&&g(T)!="String";O&&(w=T,T=null);var I=w.navigator||{},R=I.userAgent||"";T||(T=R);var M=O||i==A,F=O?!!I.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(e.toString()),P="Object",X=O?P:"ScriptBridgingProxyObject",B=O?P:"Environment",j=O&&w.java?"JavaPackage":g(w.java),W=O?P:"RuntimeObject",z=/\bJava/.test(j)&&w.java,V=z&&g(w.environment)==B,Q=z?"a":"\u03B1",G=z?"b":"\u03B2",re=w.document||{},ee=w.operamini||w.opera,ue=a.test(ue=O&&ee?ee["[[Class]]"]:g(ee))?ue:ee=null,$,be=T,_e=[],Ee=null,Xe=T==R,He=Xe&&ee&&typeof ee.version=="function"&&ee.version(),nt,Ie=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),oe=fe(["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"]),ot=Ne([{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"]),he=q({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),J=we(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Y(Fe){return S(Fe,function(it,Ct){return it||RegExp("\\b"+(Ct.pattern||b(Ct))+"\\b","i").exec(T)&&(Ct.label||Ct)})}function q(Fe){return S(Fe,function(it,Ct,mt){return it||(Ct[ot]||Ct[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ot)]||RegExp("\\b"+b(mt)+"(?:\\b|\\w*\\d)","i").exec(T))&&mt})}function fe(Fe){return S(Fe,function(it,Ct){return it||RegExp("\\b"+(Ct.pattern||b(Ct))+"\\b","i").exec(T)&&(Ct.label||Ct)})}function we(Fe){return S(Fe,function(it,Ct){var mt=Ct.pattern||b(Ct);return!it&&(it=RegExp("\\b"+mt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(it=r(it,mt,Ct.label||Ct)),it})}function Ne(Fe){return S(Fe,function(it,Ct){var mt=Ct.pattern||b(Ct);return!it&&(it=RegExp("\\b"+mt+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+mt+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+mt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((it=String(Ct.label&&!RegExp(mt,"i").test(Ct.label)?Ct.label:it).split("/"))[1]&&!/[\d.]+/.test(it[0])&&(it[0]+=" "+it[1]),Ct=Ct.label||Ct,it=c(it[0].replace(RegExp(mt,"i"),Ct).replace(RegExp("; *(?:"+Ct+"[_-])?","i")," ").replace(RegExp("("+Ct+")[-_.]?(\\w)","i"),"$1 $2"))),it})}function je(Fe){return S(Fe,function(it,Ct){return it||(RegExp(Ct+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}function me(){return this.description||""}if(Ie&&(Ie=[Ie]),he&&!ot&&(ot=Ne([he])),($=/\bGoogle TV\b/.exec(ot))&&(ot=$[0]),/\bSimulator\b/i.test(T)&&(ot=(ot?ot+" ":"")+"Simulator"),oe=="Opera Mini"&&/\bOPiOS\b/.test(T)&&_e.push("running in Turbo/Uncompressed mode"),oe=="IE"&&/\blike iPhone OS\b/.test(T)?($=C(T.replace(/like iPhone OS/,"")),he=$.manufacturer,ot=$.product):/^iP/.test(ot)?(oe||(oe="Safari"),J="iOS"+(($=/ OS ([\d_]+)/i.exec(T))?" "+$[1].replace(/_/g,"."):"")):oe=="Konqueror"&&!/buntu/i.test(J)?J="Kubuntu":he&&he!="Google"&&(/Chrome/.test(oe)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(ot))||/\bAndroid\b/.test(J)&&/^Chrome/.test(oe)&&/\bVersion\//i.test(T)?(oe="Android Browser",J=/\bAndroid\b/.test(J)?J:"Android"):oe=="Silk"?(/\bMobi/i.test(T)||(J="Android",_e.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&_e.unshift("accelerated")):oe=="PaleMoon"&&($=/\bFirefox\/([\d.]+)\b/.exec(T))?_e.push("identifying as Firefox "+$[1]):oe=="Firefox"&&($=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(J||(J="Firefox OS"),ot||(ot=$[1])):!oe||($=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(oe))?(oe&&!ot&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf($+"/")+8))&&(oe=null),($=ot||he||J)&&(ot||he||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(J))&&(oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(J)?J:$)+" Browser")):oe=="Electron"&&($=(/\bChrome\/([\d.]+)\b/.exec(T)||0)[1])&&_e.push("Chromium "+$),He||(He=je(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(oe),"(?:Firefox|Minefield|NetFront)"])),($=Ie=="iCab"&&parseFloat(He)>3&&"WebKit"||/\bOpera\b/.test(oe)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test(Ie)&&"WebKit"||!Ie&&/\bMSIE\b/i.test(T)&&(J=="Mac OS"?"Tasman":"Trident")||Ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(oe)&&"NetFront")&&(Ie=[$]),oe=="IE"&&($=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(oe+=" Mobile",J="Windows Phone "+(/\+$/.test($)?$:$+".x"),_e.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(oe="IE Mobile",J="Windows Phone 8.x",_e.unshift("desktop mode"),He||(He=(/\brv:([\d.]+)/.exec(T)||0)[1])):oe!="IE"&&Ie=="Trident"&&($=/\brv:([\d.]+)/.exec(T))&&(oe&&_e.push("identifying as "+oe+(He?" "+He:"")),oe="IE",He=$[1]),Xe){if(v(w,"global"))if(z&&($=z.lang.System,be=$.getProperty("os.arch"),J=J||$.getProperty("os.name")+" "+$.getProperty("os.version")),V){try{He=w.require("ringo/engine").version.join("."),oe="RingoJS"}catch(Fe){($=w.system)&&$.global.system==w.system&&(oe="Narwhal",J||(J=$[0].os||null))}oe||(oe="Rhino")}else typeof w.process=="object"&&!w.process.browser&&($=w.process)&&(typeof $.versions=="object"&&(typeof $.versions.electron=="string"?(_e.push("Node "+$.versions.node),oe="Electron",He=$.versions.electron):typeof $.versions.nw=="string"&&(_e.push("Chromium "+He,"Node "+$.versions.node),oe="NW.js",He=$.versions.nw)),oe||(oe="Node.js",be=$.arch,J=$.platform,He=/[\d.]+/.exec($.version),He=He?He[0]:null));else g($=w.runtime)==X?(oe="Adobe AIR",J=$.flash.system.Capabilities.os):g($=w.phantom)==W?(oe="PhantomJS",He=($=$.version||null)&&$.major+"."+$.minor+"."+$.patch):typeof re.documentMode=="number"&&($=/\bTrident\/(\d+)/i.exec(T))?(He=[He,re.documentMode],($=+$[1]+4)!=He[1]&&(_e.push("IE "+He[1]+" mode"),Ie&&(Ie[1]=""),He[1]=$),He=oe=="IE"?String(He[1].toFixed(1)):He[0]):typeof re.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(oe)&&(_e.push("masking as "+oe+" "+He),oe="IE",He="11.0",Ie=["Trident"],J="Windows");J=J&&c(J)}if(He&&($=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(He)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+(Xe&&I.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(Ee=/b/i.test($)?"beta":"alpha",He=He.replace(RegExp($+"\\+?$"),"")+(Ee=="beta"?G:Q)+(/\d+\+?/.exec($)||"")),oe=="Fennec"||oe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(J))oe="Firefox Mobile";else if(oe=="Maxthon"&&He)He=He.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ot))ot=="Xbox 360"&&(J=null),ot=="Xbox 360"&&/\bIEMobile\b/.test(T)&&_e.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(oe)||oe&&!ot&&!/Browser|Mobi/.test(oe))&&(J=="Windows CE"||/Mobi/i.test(T)))oe+=" Mobile";else if(oe=="IE"&&Xe)try{w.external===null&&_e.unshift("platform preview")}catch(Fe){_e.unshift("embedded")}else(/\bBlackBerry\b/.test(ot)||/\bBB10\b/.test(T))&&($=(RegExp(ot.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||He)?($=[$,/BB10/.test(T)],J=($[1]?(ot=null,he="BlackBerry"):"Device Software")+" "+$[0],He=null):this!=d&&ot!="Wii"&&(Xe&&ee||/Opera/.test(oe)&&/\b(?:MSIE|Firefox)\b/i.test(T)||oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(J)||oe=="IE"&&(J&&!/^Win/.test(J)&&He>5.5||/\bWindows XP\b/.test(J)&&He>8||He==8&&!/\bTrident\b/.test(T)))&&!a.test($=C.call(d,T.replace(a,"")+";"))&&$.name&&($="ing as "+$.name+(($=$.version)?" "+$:""),a.test(oe)?(/\bIE\b/.test($)&&J=="Mac OS"&&(J=null),$="identify"+$):($="mask"+$,ue?oe=c(ue.replace(/([a-z])([A-Z])/g,"$1 $2")):oe="Opera",/\bIE\b/.test($)&&(J=null),Xe||(He=null)),Ie=["Presto"],_e.push($));($=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(T)||0)[1])&&($=[parseFloat($.replace(/\.(\d)$/,".0$1")),$],oe=="Safari"&&$[1].slice(-1)=="+"?(oe="WebKit Nightly",Ee="alpha",He=$[1].slice(0,-1)):(He==$[1]||He==($[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1]))&&(He=null),$[1]=(/\bChrome\/([\d.]+)/i.exec(T)||0)[1],$[0]==537.36&&$[2]==537.36&&parseFloat($[1])>=28&&Ie=="WebKit"&&(Ie=["Blink"]),!Xe||!F&&!$[1]?(Ie&&(Ie[1]="like Safari"),$=($=$[0],$<400?1:$<500?2:$<526?3:$<533?4:$<534?"4+":$<535?5:$<537?6:$<538?7:$<601?8:"8")):(Ie&&(Ie[1]="like Chrome"),$=$[1]||($=$[0],$<530?1:$<532?2:$<532.05?3:$<533?4:$<534.03?5:$<534.07?6:$<534.1?7:$<534.13?8:$<534.16?9:$<534.24?10:$<534.3?11:$<535.01?12:$<535.02?"13+":$<535.07?15:$<535.11?16:$<535.19?17:$<536.05?18:$<536.1?19:$<537.01?20:$<537.11?"21+":$<537.13?23:$<537.18?24:$<537.24?25:$<537.36?26:Ie!="Blink"?"27":"28")),Ie&&(Ie[1]+=" "+($+=typeof $=="number"?".x":/[.+]/.test($)?"":"+")),oe=="Safari"&&(!He||parseInt(He)>45)&&(He=$)),oe=="Opera"&&($=/\bzbov|zvav$/.exec(J))?(oe+=" ",_e.unshift("desktop mode"),$=="zvav"?(oe+="Mini",He=null):oe+="Mobile",J=J.replace(RegExp(" *"+$+"$"),"")):oe=="Safari"&&/\bChrome\b/.exec(Ie&&Ie[1])&&(_e.unshift("desktop mode"),oe="Chrome Mobile",He=null,/\bOS X\b/.test(J)?(he="Apple",J="iOS 4.3+"):J=null),He&&He.indexOf($=/[\d.]+$/.exec(J))==0&&T.indexOf("/"+$+"-")>-1&&(J=E(J.replace($,""))),Ie&&!/\b(?:Avant|Nook)\b/.test(oe)&&(/Browser|Lunascape|Maxthon/.test(oe)||oe!="Safari"&&/^iOS/.test(J)&&/\bSafari\b/.test(Ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(oe)&&Ie[1])&&(($=Ie[Ie.length-1])&&_e.push($)),_e.length&&(_e=["("+_e.join("; ")+")"]),he&&ot&&ot.indexOf(he)<0&&_e.push("on "+he),ot&&_e.push((/^on /.test(_e[_e.length-1])?"":"on ")+ot),J&&($=/ ([\d.+]+)$/.exec(J),nt=$&&J.charAt(J.length-$[0].length-1)=="/",J={architecture:32,family:$&&!nt?J.replace($[0],""):J,version:$?$[1]:null,toString:function(){var it=this.version;return this.family+(it&&!nt?" "+it:"")+(this.architecture==64?" 64-bit":"")}}),($=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+$),"")),oe&&(/\bWOW64\b/i.test(T)||Xe&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(T))&&_e.unshift("32-bit")):J&&/^OS X/.test(J.family)&&oe=="Chrome"&&parseFloat(He)>=39&&(J.architecture=64),T||(T=null);var Ce={};return Ce.description=T,Ce.layout=Ie&&Ie[0],Ce.manufacturer=he,Ce.name=oe,Ce.prerelease=Ee,Ce.product=ot,Ce.ua=T,Ce.version=oe&&He,Ce.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ce.parse=C,Ce.toString=me,Ce.version&&_e.unshift(He),Ce.name&&_e.unshift(oe),J&&oe&&!(J==String(J).split(" ")[0]&&(J==oe.split(" ")[0]||ot))&&_e.push(ot?"("+J+")":"on "+J),_e.length&&(Ce.description=_e.join(" ")),Ce}var _=C();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(x.platform=_,define(function(){return _})):m&&f?d(_,function(T,w){m[w]=T}):x.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,D,n){(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(x,A,m,f){if(typeof x!="function")throw new TypeError('"callback" argument must be a function');var h=arguments.length,u,a;switch(h){case 0:case 1:return y.nextTick(x);case 2:return y.nextTick(function(){x.call(null,A)});case 3:return y.nextTick(function(){x.call(null,A,m)});case 4:return y.nextTick(function(){x.call(null,A,m,f)});default:for(u=new Array(h-1),a=0;a<u.length;)u[a++]=arguments[a];return y.nextTick(function(){x.apply(null,u)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,D,n){var y=D.exports={},p,x;function A(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=A}catch(s){p=A}try{typeof clearTimeout=="function"?x=clearTimeout:x=m}catch(s){x=m}})();function f(s){if(p===setTimeout)return setTimeout(s,0);if((p===A||!p)&&setTimeout)return p=setTimeout,setTimeout(s,0);try{return p(s,0)}catch(c){try{return p.call(null,s,0)}catch(d){return p.call(this,s,0)}}}function h(s){if(x===clearTimeout)return clearTimeout(s);if((x===m||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(s);try{return x(s)}catch(c){try{return x.call(null,s)}catch(d){return x.call(this,s)}}}var u=[],a=!1,i,t=-1;function o(){if(!a||!i)return;a=!1,i.length?u=i.concat(u):t=-1,u.length&&e()}function e(){if(a)return;var s=f(o);a=!0;for(var c=u.length;c;){for(i=u,u=[];++t<c;)i&&i[t].run();t=-1,c=u.length}i=null,a=!1,h(s)}y.nextTick=function(s){var c=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)c[d-1]=arguments[d];u.push(new l(s,c)),u.length===1&&!a&&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,n){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(p){var x=typeof n=="object"&&n&&!n.nodeType&&n,A=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,h=2147483647,u=36,a=1,i=26,t=38,o=700,e=72,l=128,r="-",s=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=u-a,b=Math.floor,S=String.fromCharCode,E;function C(j){throw new RangeError(g[j])}function _(j,W){for(var z=j.length,V=[];z--;)V[z]=W(j[z]);return V}function T(j,W){var z=j.split("@"),V="";z.length>1&&(V=z[0]+"@",j=z[1]),j=j.replace(d,".");var Q=j.split("."),G=_(Q,W).join(".");return V+G}function w(j){for(var W=[],z=0,V=j.length,Q,G;z<V;)Q=j.charCodeAt(z++),Q>=55296&&Q<=56319&&z<V?(G=j.charCodeAt(z++),(G&64512)==56320?W.push(((Q&1023)<<10)+(G&1023)+65536):(W.push(Q),z--)):W.push(Q);return W}function O(j){return _(j,function(W){var z="";return W>65535&&(W-=65536,z+=S(W>>>10&1023|55296),W=56320|W&1023),z+=S(W),z}).join("")}function I(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:u}function R(j,W){return j+22+75*(j<26)-((W!=0)<<5)}function M(j,W,z){var V=0;for(j=z?b(j/o):j>>1,j+=b(j/W);j>v*i>>1;V+=u)j=b(j/v);return b(V+(v+1)*j/(j+t))}function F(j){var W=[],z=j.length,V,Q=0,G=l,re=e,ee,ue,$,be,_e,Ee,Xe,He,nt;for(ee=j.lastIndexOf(r),ee<0&&(ee=0),ue=0;ue<ee;++ue)j.charCodeAt(ue)>=128&&C("not-basic"),W.push(j.charCodeAt(ue));for($=ee>0?ee+1:0;$<z;){for(be=Q,_e=1,Ee=u;!($>=z&&C("invalid-input"),Xe=I(j.charCodeAt($++)),(Xe>=u||Xe>b((h-Q)/_e))&&C("overflow"),Q+=Xe*_e,He=Ee<=re?a:Ee>=re+i?i:Ee-re,Xe<He);Ee+=u)nt=u-He,_e>b(h/nt)&&C("overflow"),_e*=nt;V=W.length+1,re=M(Q-be,V,be==0),b(Q/V)>h-G&&C("overflow"),G+=b(Q/V),Q%=V,W.splice(Q++,0,G)}return O(W)}function P(j){var W,z,V,Q,G,re,ee,ue,$,be,_e,Ee=[],Xe,He,nt,Ie;for(j=w(j),Xe=j.length,W=l,z=0,G=e,re=0;re<Xe;++re)_e=j[re],_e<128&&Ee.push(S(_e));for(V=Q=Ee.length,Q&&Ee.push(r);V<Xe;){for(ee=h,re=0;re<Xe;++re)_e=j[re],_e>=W&&_e<ee&&(ee=_e);for(He=V+1,ee-W>b((h-z)/He)&&C("overflow"),z+=(ee-W)*He,W=ee,re=0;re<Xe;++re)if(_e=j[re],_e<W&&++z>h&&C("overflow"),_e==W){for(ue=z,$=u;!(be=$<=G?a:$>=G+i?i:$-G,ue<be);$+=u)Ie=ue-be,nt=u-be,Ee.push(S(R(be+Ie%nt,0))),ue=b(Ie/nt);Ee.push(S(R(ue,0))),G=M(z,He,V==Q),z=0,++V}++z,++W}return Ee.join("")}function X(j){return T(j,function(W){return s.test(W)?F(W.slice(4).toLowerCase()):W})}function B(j){return T(j,function(W){return c.test(W)?"xn--"+P(W):W})}if(f={version:"1.4.1",ucs2:{decode:w,encode:O},decode:F,encode:P,toASCII:B,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return f});else if(x&&A)if(D.exports==x)A.exports=f;else for(E in f)f.hasOwnProperty(E)&&(x[E]=f[E]);else p.punycode=f})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(k,D,n){"use strict";function y(x,A){return Object.prototype.hasOwnProperty.call(x,A)}D.exports=function(x,A,m,f){A=A||"&",m=m||"=";var h={};if(typeof x!="string"||x.length===0)return h;var u=/\+/g;x=x.split(A);var a=1e3;f&&typeof f.maxKeys=="number"&&(a=f.maxKeys);var i=x.length;a>0&&i>a&&(i=a);for(var t=0;t<i;++t){var o=x[t].replace(u,"%20"),e=o.indexOf(m),l,r,s,c;e>=0?(l=o.substr(0,e),r=o.substr(e+1)):(l=o,r=""),s=decodeURIComponent(l),c=decodeURIComponent(r),y(h,s)?p(h[s])?h[s].push(c):h[s]=[h[s],c]:h[s]=c}return h};var p=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{}],211:[function(k,D,n){"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,h,u){return f=f||"&",h=h||"=",m===null&&(m=void 0),typeof m=="object"?x(A(m),function(a){var i=encodeURIComponent(y(a))+h;return p(m[a])?x(m[a],function(t){return i+encodeURIComponent(y(t))}).join(f):i+encodeURIComponent(y(m[a]))}).join(f):u?encodeURIComponent(y(u))+h+encodeURIComponent(y(m)):""};var p=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};function x(m,f){if(m.map)return m.map(f);for(var h=[],u=0;u<m.length;u++)h.push(f(m[u],u));return h}var A=Object.keys||function(m){var f=[];for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&f.push(h);return f}},{}],212:[function(k,D,n){"use strict";n.decode=n.parse=k("./decode"),n.encode=n.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,D,n){D.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=m(y),x=k("babel-runtime/core-js/object/keys"),A=m(x);function m(c){return c&&c.__esModule?c:{default:c}}var f=k("process-nextick-args"),h=A.default||function(c){var d=[];for(var g in c)d.push(g);return d};D.exports=l;var u=(0,p.default)(k("core-util-is"));u.inherits=k("inherits");var a=k("./_stream_readable"),i=k("./_stream_writable");u.inherits(l,a);for(var t=h(i.prototype),o=0;o<t.length;o++){var e=t[o];l.prototype[e]||(l.prototype[e]=i.prototype[e])}function l(c){if(!(this instanceof l))return new l(c);a.call(this,c),i.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",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(d){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=d,this._writableState.destroyed=d}}),l.prototype._destroy=function(c,d){this.push(null),this.end(),f.nextTick(d,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,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(h){return h&&h.__esModule?h:{default:h}}D.exports=f;var A=k("./_stream_transform"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(f,A);function f(h){if(!(this instanceof f))return new f(h);A.call(this,h)}f.prototype._transform=function(h,u,a){a(null,h)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/object/get-prototype-of"),A=h(x),m=k("babel-runtime/core-js/object/create"),f=h(m);function h(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}var u=k("process-nextick-args");D.exports=w;var a=k("isarray"),i;w.ReadableState=T;var t=k("events").EventEmitter,o=function(oe,ot){return oe.listeners(ot).length},e=k("./internal/streams/stream"),l=k("safe-buffer").Buffer,r=p.Uint8Array||function(){};function s(Ie){return l.from(Ie)}function c(Ie){return l.isBuffer(Ie)||Ie instanceof r}var d=(0,f.default)(k("core-util-is"));d.inherits=k("inherits");var g=k("util"),v=void 0;g&&g.debuglog?v=g.debuglog("stream"):v=function(){};var b=k("./internal/streams/BufferList"),S=k("./internal/streams/destroy"),E;d.inherits(w,e);var C=["error","close","destroy","pause","resume"];function _(Ie,oe,ot){if(typeof Ie.prependListener=="function")return Ie.prependListener(oe,ot);!Ie._events||!Ie._events[oe]?Ie.on(oe,ot):a(Ie._events[oe])?Ie._events[oe].unshift(ot):Ie._events[oe]=[ot,Ie._events[oe]]}function T(Ie,oe){i=i||k("./_stream_duplex"),Ie=Ie||{};var ot=oe instanceof i;this.objectMode=!!Ie.objectMode,ot&&(this.objectMode=this.objectMode||!!Ie.readableObjectMode);var he=Ie.highWaterMark,J=Ie.readableHighWaterMark,Y=this.objectMode?16:16*1024;he||he===0?this.highWaterMark=he:ot&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Ie.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ie.encoding&&(E||(E=k("string_decoder/").StringDecoder),this.decoder=new E(Ie.encoding),this.encoding=Ie.encoding)}function w(Ie){if(i=i||k("./_stream_duplex"),!(this instanceof w))return new w(Ie);this._readableState=new T(Ie,this),this.readable=!0,Ie&&(typeof Ie.read=="function"&&(this._read=Ie.read),typeof Ie.destroy=="function"&&(this._destroy=Ie.destroy)),e.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(oe){if(!this._readableState)return;this._readableState.destroyed=oe}}),w.prototype.destroy=S.destroy,w.prototype._undestroy=S.undestroy,w.prototype._destroy=function(Ie,oe){this.push(null),oe(Ie)},w.prototype.push=function(Ie,oe){var ot=this._readableState,he;return ot.objectMode?he=!0:typeof Ie=="string"&&(oe=oe||ot.defaultEncoding,oe!==ot.encoding&&(Ie=l.from(Ie,oe),oe=""),he=!0),O(this,Ie,oe,!1,he)},w.prototype.unshift=function(Ie){return O(this,Ie,null,!0,!1)};function O(Ie,oe,ot,he,J){var Y=Ie._readableState;if(oe===null)Y.reading=!1,B(Ie,Y);else{var q;J||(q=R(Y,oe)),q?Ie.emit("error",q):Y.objectMode||oe&&oe.length>0?(typeof oe!="string"&&!Y.objectMode&&(0,A.default)(oe)!==l.prototype&&(oe=s(oe)),he?Y.endEmitted?Ie.emit("error",new Error("stream.unshift() after end event")):I(Ie,Y,oe,!0):Y.ended?Ie.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!ot?(oe=Y.decoder.write(oe),Y.objectMode||oe.length!==0?I(Ie,Y,oe,!1):z(Ie,Y)):I(Ie,Y,oe,!1))):he||(Y.reading=!1)}return M(Y)}function I(Ie,oe,ot,he){oe.flowing&&oe.length===0&&!oe.sync?(Ie.emit("data",ot),Ie.read(0)):(oe.length+=oe.objectMode?1:ot.length,he?oe.buffer.unshift(ot):oe.buffer.push(ot),oe.needReadable&&j(Ie)),z(Ie,oe)}function R(Ie,oe){var ot;return!c(oe)&&typeof oe!="string"&&oe!==void 0&&!Ie.objectMode&&(ot=new TypeError("Invalid non-string/buffer chunk")),ot}function M(Ie){return!Ie.ended&&(Ie.needReadable||Ie.length<Ie.highWaterMark||Ie.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(Ie){return E||(E=k("string_decoder/").StringDecoder),this._readableState.decoder=new E(Ie),this._readableState.encoding=Ie,this};var F=8388608;function P(Ie){return Ie>=F?Ie=F:(Ie--,Ie|=Ie>>>1,Ie|=Ie>>>2,Ie|=Ie>>>4,Ie|=Ie>>>8,Ie|=Ie>>>16,Ie++),Ie}function X(Ie,oe){return Ie<=0||oe.length===0&&oe.ended?0:oe.objectMode?1:Ie!==Ie?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:(Ie>oe.highWaterMark&&(oe.highWaterMark=P(Ie)),Ie<=oe.length?Ie:oe.ended?oe.length:(oe.needReadable=!0,0))}w.prototype.read=function(Ie){v("read",Ie),Ie=parseInt(Ie,10);var oe=this._readableState,ot=Ie;if(Ie!==0&&(oe.emittedReadable=!1),Ie===0&&oe.needReadable&&(oe.length>=oe.highWaterMark||oe.ended))return v("read: emitReadable",oe.length,oe.ended),oe.length===0&&oe.ended?Xe(this):j(this),null;if(Ie=X(Ie,oe),Ie===0&&oe.ended)return oe.length===0&&Xe(this),null;var he=oe.needReadable;v("need readable",he),(oe.length===0||oe.length-Ie<oe.highWaterMark)&&(he=!0,v("length less than watermark",he)),oe.ended||oe.reading?(he=!1,v("reading or ended",he)):he&&(v("do read"),oe.reading=!0,oe.sync=!0,oe.length===0&&(oe.needReadable=!0),this._read(oe.highWaterMark),oe.sync=!1,oe.reading||(Ie=X(ot,oe)));var J;return Ie>0?J=$(Ie,oe):J=null,J===null?(oe.needReadable=!0,Ie=0):oe.length-=Ie,oe.length===0&&(oe.ended||(oe.needReadable=!0),ot!==Ie&&oe.ended&&Xe(this)),J!==null&&this.emit("data",J),J};function B(Ie,oe){if(oe.ended)return;if(oe.decoder){var ot=oe.decoder.end();ot&&ot.length&&(oe.buffer.push(ot),oe.length+=oe.objectMode?1:ot.length)}oe.ended=!0,j(Ie)}function j(Ie){var oe=Ie._readableState;oe.needReadable=!1,oe.emittedReadable||(v("emitReadable",oe.flowing),oe.emittedReadable=!0,oe.sync?u.nextTick(W,Ie):W(Ie))}function W(Ie){v("emit readable"),Ie.emit("readable"),ue(Ie)}function z(Ie,oe){oe.readingMore||(oe.readingMore=!0,u.nextTick(V,Ie,oe))}function V(Ie,oe){for(var ot=oe.length;!oe.reading&&!oe.flowing&&!oe.ended&&oe.length<oe.highWaterMark&&!(v("maybeReadMore read 0"),Ie.read(0),ot===oe.length);)ot=oe.length;oe.readingMore=!1}w.prototype._read=function(Ie){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(Ie,oe){var ot=this,he=this._readableState;switch(he.pipesCount){case 0:he.pipes=Ie;break;case 1:he.pipes=[he.pipes,Ie];break;default:he.pipes.push(Ie);break}he.pipesCount+=1,v("pipe count=%d opts=%j",he.pipesCount,oe);var J=(!oe||oe.end!==!1)&&Ie!==y.stdout&&Ie!==y.stderr,Y=J?fe:mt;he.endEmitted?u.nextTick(Y):ot.once("end",Y),Ie.on("unpipe",q);function q(Ve,or){v("onunpipe"),Ve===ot&&(or&&or.hasUnpiped===!1&&(or.hasUnpiped=!0,je()))}function fe(){v("onend"),Ie.end()}var we=Q(ot);Ie.on("drain",we);var Ne=!1;function je(){v("cleanup"),Ie.removeListener("close",it),Ie.removeListener("finish",Ct),Ie.removeListener("drain",we),Ie.removeListener("error",Fe),Ie.removeListener("unpipe",q),ot.removeListener("end",fe),ot.removeListener("end",mt),ot.removeListener("data",Ce),Ne=!0,he.awaitDrain&&(!Ie._writableState||Ie._writableState.needDrain)&&we()}var me=!1;ot.on("data",Ce);function Ce(Ve){v("ondata"),me=!1;var or=Ie.write(Ve);or===!1&&!me&&((he.pipesCount===1&&he.pipes===Ie||he.pipesCount>1&&nt(he.pipes,Ie)!==-1)&&!Ne&&(v("false write response, pause",ot._readableState.awaitDrain),ot._readableState.awaitDrain++,me=!0),ot.pause())}function Fe(Ve){v("onerror",Ve),mt(),Ie.removeListener("error",Fe),o(Ie,"error")===0&&Ie.emit("error",Ve)}_(Ie,"error",Fe);function it(){Ie.removeListener("finish",Ct),mt()}Ie.once("close",it);function Ct(){v("onfinish"),Ie.removeListener("close",it),mt()}Ie.once("finish",Ct);function mt(){v("unpipe"),ot.unpipe(Ie)}return Ie.emit("pipe",ot),he.flowing||(v("pipe resume"),ot.resume()),Ie};function Q(Ie){return function(){var oe=Ie._readableState;v("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&o(Ie,"data")&&(oe.flowing=!0,ue(Ie))}}w.prototype.unpipe=function(Ie){var oe=this._readableState,ot={hasUnpiped:!1};if(oe.pipesCount===0)return this;if(oe.pipesCount===1)return Ie&&Ie!==oe.pipes?this:(Ie||(Ie=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,Ie&&Ie.emit("unpipe",this,ot),this);if(!Ie){var he=oe.pipes,J=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var Y=0;Y<J;Y++)he[Y].emit("unpipe",this,ot);return this}var q=nt(oe.pipes,Ie);return q===-1?this:(oe.pipes.splice(q,1),oe.pipesCount-=1,oe.pipesCount===1&&(oe.pipes=oe.pipes[0]),Ie.emit("unpipe",this,ot),this)},w.prototype.on=function(Ie,oe){var ot=e.prototype.on.call(this,Ie,oe);if(Ie==="data")this._readableState.flowing!==!1&&this.resume();else if(Ie==="readable"){var he=this._readableState;!he.endEmitted&&!he.readableListening&&(he.readableListening=he.needReadable=!0,he.emittedReadable=!1,he.reading?he.length&&j(this):u.nextTick(G,this))}return ot},w.prototype.addListener=w.prototype.on;function G(Ie){v("readable nexttick read 0"),Ie.read(0)}w.prototype.resume=function(){var Ie=this._readableState;return Ie.flowing||(v("resume"),Ie.flowing=!0,re(this,Ie)),this};function re(Ie,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,u.nextTick(ee,Ie,oe))}function ee(Ie,oe){oe.reading||(v("resume read 0"),Ie.read(0)),oe.resumeScheduled=!1,oe.awaitDrain=0,Ie.emit("resume"),ue(Ie),oe.flowing&&!oe.reading&&Ie.read(0)}w.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ue(Ie){var oe=Ie._readableState;for(v("flow",oe.flowing);oe.flowing&&Ie.read()!==null;);}w.prototype.wrap=function(Ie){var oe=this,ot=this._readableState,he=!1;Ie.on("end",function(){if(v("wrapped end"),ot.decoder&&!ot.ended){var q=ot.decoder.end();q&&q.length&&oe.push(q)}oe.push(null)}),Ie.on("data",function(q){if(v("wrapped data"),ot.decoder&&(q=ot.decoder.write(q)),ot.objectMode&&q==null)return;if(!ot.objectMode&&(!q||!q.length))return;var fe=oe.push(q);fe||(he=!0,Ie.pause())});for(var J in Ie)this[J]===void 0&&typeof Ie[J]=="function"&&(this[J]=function(q){return function(){return Ie[q].apply(Ie,arguments)}}(J));for(var Y=0;Y<C.length;Y++)Ie.on(C[Y],this.emit.bind(this,C[Y]));return this._read=function(q){v("wrapped _read",q),he&&(he=!1,Ie.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=$;function $(Ie,oe){if(oe.length===0)return null;var ot;return oe.objectMode?ot=oe.buffer.shift():!Ie||Ie>=oe.length?(oe.decoder?ot=oe.buffer.join(""):oe.buffer.length===1?ot=oe.buffer.head.data:ot=oe.buffer.concat(oe.length),oe.buffer.clear()):ot=be(Ie,oe.buffer,oe.decoder),ot}function be(Ie,oe,ot){var he;return Ie<oe.head.data.length?(he=oe.head.data.slice(0,Ie),oe.head.data=oe.head.data.slice(Ie)):Ie===oe.head.data.length?he=oe.shift():he=ot?_e(Ie,oe):Ee(Ie,oe),he}function _e(Ie,oe){var ot=oe.head,he=1,J=ot.data;for(Ie-=J.length;ot=ot.next;){var Y=ot.data,q=Ie>Y.length?Y.length:Ie;if(q===Y.length?J+=Y:J+=Y.slice(0,Ie),Ie-=q,Ie===0){q===Y.length?(++he,ot.next?oe.head=ot.next:oe.head=oe.tail=null):(oe.head=ot,ot.data=Y.slice(q));break}++he}return oe.length-=he,J}function Ee(Ie,oe){var ot=l.allocUnsafe(Ie),he=oe.head,J=1;for(he.data.copy(ot),Ie-=he.data.length;he=he.next;){var Y=he.data,q=Ie>Y.length?Y.length:Ie;if(Y.copy(ot,ot.length-Ie,0,q),Ie-=q,Ie===0){q===Y.length?(++J,he.next?oe.head=he.next:oe.head=oe.tail=null):(oe.head=he,he.data=Y.slice(q));break}++J}return oe.length-=J,ot}function Xe(Ie){var oe=Ie._readableState;if(oe.length>0)throw new Error('"endReadable()" called on non-empty stream');oe.endEmitted||(oe.ended=!0,u.nextTick(He,oe,Ie))}function He(Ie,oe){!Ie.endEmitted&&Ie.length===0&&(Ie.endEmitted=!0,oe.readable=!1,oe.emit("end"))}function nt(Ie,oe){for(var ot=0,he=Ie.length;ot<he;ot++)if(Ie[ot]===oe)return ot;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,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(i){return i&&i.__esModule?i:{default:i}}D.exports=h;var A=k("./_stream_duplex"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(h,A);function f(i,t){var o=this._transformState;o.transforming=!1;var e=o.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,t!=null&&this.push(t),e(i);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function h(i){if(!(this instanceof h))return new h(i);A.call(this,i),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",u)}function u(){var i=this;typeof this._flush=="function"?this._flush(function(t,o){a(i,t,o)}):a(this,null,null)}h.prototype.push=function(i,t){return this._transformState.needTransform=!1,A.prototype.push.call(this,i,t)},h.prototype._transform=function(i,t,o){throw new Error("_transform() is not implemented")},h.prototype._write=function(i,t,o){var e=this._transformState;if(e.writecb=o,e.writechunk=i,e.writeencoding=t,!e.transforming){var l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},h.prototype._read=function(i){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},h.prototype._destroy=function(i,t){var o=this;A.prototype._destroy.call(this,i,function(e){t(e),o.emit("close")})};function a(i,t,o){if(t)return i.emit("error",t);if(o!=null&&i.push(o),i._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(i._transformState.transforming)throw new Error("Calling transform done when still transforming");return i.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/object/define-property"),A=e(x),m=k("babel-runtime/core-js/symbol/has-instance"),f=e(m),h=k("babel-runtime/core-js/symbol"),u=e(h),a=k("babel-runtime/core-js/object/create"),i=e(a),t=k("babel-runtime/core-js/set-immediate"),o=e(t);function e(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}var l=k("process-nextick-args");D.exports=R;function r(Ee,Xe,He){this.chunk=Ee,this.encoding=Xe,this.callback=He,this.next=null}function s(Ee){var Xe=this;this.next=null,this.entry=null,this.finish=function(){_e(Xe,Ee)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?o.default:l.nextTick,d;R.WritableState=O;var g=(0,i.default)(k("core-util-is"));g.inherits=k("inherits");var v={deprecate:k("util-deprecate")},b=k("./internal/streams/stream"),S=k("safe-buffer").Buffer,E=p.Uint8Array||function(){};function C(Ee){return S.from(Ee)}function _(Ee){return S.isBuffer(Ee)||Ee instanceof E}var T=k("./internal/streams/destroy");g.inherits(R,b);function w(){}function O(Ee,Xe){d=d||k("./_stream_duplex"),Ee=Ee||{};var He=Xe instanceof d;this.objectMode=!!Ee.objectMode,He&&(this.objectMode=this.objectMode||!!Ee.writableObjectMode);var nt=Ee.highWaterMark,Ie=Ee.writableHighWaterMark,oe=this.objectMode?16:16*1024;nt||nt===0?this.highWaterMark=nt:He&&(Ie||Ie===0)?this.highWaterMark=Ie:this.highWaterMark=oe,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ot=Ee.decodeStrings===!1;this.decodeStrings=!ot,this.defaultEncoding=Ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(he){z(Xe,he)},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)}O.prototype.getBuffer=function(){for(var Xe=this.bufferedRequest,He=[];Xe;)He.push(Xe),Xe=Xe.next;return He},function(){try{Object.defineProperty(O.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ee){}}();var I;typeof u.default=="function"&&f.default&&typeof Function.prototype[f.default]=="function"?(I=Function.prototype[f.default],(0,A.default)(R,f.default,{value:function(Xe){return I.call(this,Xe)?!0:this!==R?!1:Xe&&Xe._writableState instanceof O}})):I=function(Xe){return Xe instanceof this};function R(Ee){if(d=d||k("./_stream_duplex"),!I.call(R,this)&&!(this instanceof d))return new R(Ee);this._writableState=new O(Ee,this),this.writable=!0,Ee&&(typeof Ee.write=="function"&&(this._write=Ee.write),typeof Ee.writev=="function"&&(this._writev=Ee.writev),typeof Ee.destroy=="function"&&(this._destroy=Ee.destroy),typeof Ee.final=="function"&&(this._final=Ee.final)),b.call(this)}R.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function M(Ee,Xe){var He=new Error("write after end");Ee.emit("error",He),l.nextTick(Xe,He)}function F(Ee,Xe,He,nt){var Ie=!0,oe=!1;return He===null?oe=new TypeError("May not write null values to stream"):typeof He!="string"&&He!==void 0&&!Xe.objectMode&&(oe=new TypeError("Invalid non-string/buffer chunk")),oe&&(Ee.emit("error",oe),l.nextTick(nt,oe),Ie=!1),Ie}R.prototype.write=function(Ee,Xe,He){var nt=this._writableState,Ie=!1,oe=!nt.objectMode&&_(Ee);return oe&&!S.isBuffer(Ee)&&(Ee=C(Ee)),typeof Xe=="function"&&(He=Xe,Xe=null),oe?Xe="buffer":Xe||(Xe=nt.defaultEncoding),typeof He!="function"&&(He=w),nt.ended?M(this,He):(oe||F(this,nt,Ee,He))&&(nt.pendingcb++,Ie=X(this,nt,oe,Ee,Xe,He)),Ie},R.prototype.cork=function(){var Ee=this._writableState;Ee.corked++},R.prototype.uncork=function(){var Ee=this._writableState;Ee.corked&&(Ee.corked--,!Ee.writing&&!Ee.corked&&!Ee.finished&&!Ee.bufferProcessing&&Ee.bufferedRequest&&G(this,Ee))},R.prototype.setDefaultEncoding=function(Xe){if(typeof Xe=="string"&&(Xe=Xe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Xe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Xe);return this._writableState.defaultEncoding=Xe,this};function P(Ee,Xe,He){return!Ee.objectMode&&Ee.decodeStrings!==!1&&typeof Xe=="string"&&(Xe=S.from(Xe,He)),Xe}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Ee,Xe,He,nt,Ie,oe){if(!He){var ot=P(Xe,nt,Ie);nt!==ot&&(He=!0,Ie="buffer",nt=ot)}var he=Xe.objectMode?1:nt.length;Xe.length+=he;var J=Xe.length<Xe.highWaterMark;if(J||(Xe.needDrain=!0),Xe.writing||Xe.corked){var Y=Xe.lastBufferedRequest;Xe.lastBufferedRequest={chunk:nt,encoding:Ie,isBuf:He,callback:oe,next:null},Y?Y.next=Xe.lastBufferedRequest:Xe.bufferedRequest=Xe.lastBufferedRequest,Xe.bufferedRequestCount+=1}else B(Ee,Xe,!1,he,nt,Ie,oe);return J}function B(Ee,Xe,He,nt,Ie,oe,ot){Xe.writelen=nt,Xe.writecb=ot,Xe.writing=!0,Xe.sync=!0,He?Ee._writev(Ie,Xe.onwrite):Ee._write(Ie,oe,Xe.onwrite),Xe.sync=!1}function j(Ee,Xe,He,nt,Ie){--Xe.pendingcb,He?(l.nextTick(Ie,nt),l.nextTick($,Ee,Xe),Ee._writableState.errorEmitted=!0,Ee.emit("error",nt)):(Ie(nt),Ee._writableState.errorEmitted=!0,Ee.emit("error",nt),$(Ee,Xe))}function W(Ee){Ee.writing=!1,Ee.writecb=null,Ee.length-=Ee.writelen,Ee.writelen=0}function z(Ee,Xe){var He=Ee._writableState,nt=He.sync,Ie=He.writecb;if(W(He),Xe)j(Ee,He,nt,Xe,Ie);else{var oe=re(He);!oe&&!He.corked&&!He.bufferProcessing&&He.bufferedRequest&&G(Ee,He),nt?c(V,Ee,He,oe,Ie):V(Ee,He,oe,Ie)}}function V(Ee,Xe,He,nt){He||Q(Ee,Xe),Xe.pendingcb--,nt(),$(Ee,Xe)}function Q(Ee,Xe){Xe.length===0&&Xe.needDrain&&(Xe.needDrain=!1,Ee.emit("drain"))}function G(Ee,Xe){Xe.bufferProcessing=!0;var He=Xe.bufferedRequest;if(Ee._writev&&He&&He.next){var nt=Xe.bufferedRequestCount,Ie=new Array(nt),oe=Xe.corkedRequestsFree;oe.entry=He;for(var ot=0,he=!0;He;)Ie[ot]=He,He.isBuf||(he=!1),He=He.next,ot+=1;Ie.allBuffers=he,B(Ee,Xe,!0,Xe.length,Ie,"",oe.finish),Xe.pendingcb++,Xe.lastBufferedRequest=null,oe.next?(Xe.corkedRequestsFree=oe.next,oe.next=null):Xe.corkedRequestsFree=new s(Xe),Xe.bufferedRequestCount=0}else{for(;He;){var J=He.chunk,Y=He.encoding,q=He.callback,fe=Xe.objectMode?1:J.length;if(B(Ee,Xe,!1,fe,J,Y,q),He=He.next,Xe.bufferedRequestCount--,Xe.writing)break}He===null&&(Xe.lastBufferedRequest=null)}Xe.bufferedRequest=He,Xe.bufferProcessing=!1}R.prototype._write=function(Ee,Xe,He){He(new Error("_write() is not implemented"))},R.prototype._writev=null,R.prototype.end=function(Ee,Xe,He){var nt=this._writableState;typeof Ee=="function"?(He=Ee,Ee=null,Xe=null):typeof Xe=="function"&&(He=Xe,Xe=null),Ee!=null&&this.write(Ee,Xe),nt.corked&&(nt.corked=1,this.uncork()),!nt.ending&&!nt.finished&&be(this,nt,He)};function re(Ee){return Ee.ending&&Ee.length===0&&Ee.bufferedRequest===null&&!Ee.finished&&!Ee.writing}function ee(Ee,Xe){Ee._final(function(He){Xe.pendingcb--,He&&Ee.emit("error",He),Xe.prefinished=!0,Ee.emit("prefinish"),$(Ee,Xe)})}function ue(Ee,Xe){!Xe.prefinished&&!Xe.finalCalled&&(typeof Ee._final=="function"?(Xe.pendingcb++,Xe.finalCalled=!0,l.nextTick(ee,Ee,Xe)):(Xe.prefinished=!0,Ee.emit("prefinish")))}function $(Ee,Xe){var He=re(Xe);return He&&(ue(Ee,Xe),Xe.pendingcb===0&&(Xe.finished=!0,Ee.emit("finish"))),He}function be(Ee,Xe,He){Xe.ending=!0,$(Ee,Xe),He&&(Xe.finished?l.nextTick(He):Ee.once("finish",He)),Xe.ended=!0,Ee.writable=!1}function _e(Ee,Xe,He){var nt=Ee.entry;for(Ee.entry=null;nt;){var Ie=nt.callback;Xe.pendingcb--,Ie(He),nt=nt.next}Xe.corkedRequestsFree?Xe.corkedRequestsFree.next=Ee:Xe.corkedRequestsFree=Ee}Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Xe){if(!this._writableState)return;this._writableState.destroyed=Xe}}),R.prototype.destroy=T.destroy,R.prototype._undestroy=T.undestroy,R.prototype._destroy=function(Ee,Xe){this.end(),Xe(Ee)}}).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,n){"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,x=k("util");function A(m,f,h){m.copy(f,h)}D.exports=function(){function m(){y(this,m),this.head=null,this.tail=null,this.length=0}return m.prototype.push=function(h){var u={data:h,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},m.prototype.unshift=function(h){var u={data:h,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length},m.prototype.shift=function(){if(this.length===0)return;var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h},m.prototype.clear=function(){this.head=this.tail=null,this.length=0},m.prototype.join=function(h){if(this.length===0)return"";for(var u=this.head,a=""+u.data;u=u.next;)a+=h+u.data;return a},m.prototype.concat=function(h){if(this.length===0)return p.alloc(0);if(this.length===1)return this.head.data;for(var u=p.allocUnsafe(h>>>0),a=this.head,i=0;a;)A(a.data,u,i),i+=a.data.length,a=a.next;return u},m}(),x&&x.inspect&&x.inspect.custom&&(D.exports.prototype[x.inspect.custom]=function(){var m=x.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(k,D,n){"use strict";var y=k("process-nextick-args");function p(m,f){var h=this,u=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return u||a?(f?f(m):m&&(!this._writableState||!this._writableState.errorEmitted)&&y.nextTick(A,this,m),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(m||null,function(i){!f&&i?(y.nextTick(A,h,i),h._writableState&&(h._writableState.errorEmitted=!0)):f&&f(i)}),this)}function x(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function A(m,f){m.emit("error",f)}D.exports={destroy:p,undestroy:x}},{"process-nextick-args":207}],221:[function(k,D,n){"use strict";D.exports=k("events").EventEmitter},{events:192}],222:[function(k,D,n){D.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,D,n){n=D.exports=k("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=k("./lib/_stream_writable.js"),n.Duplex=k("./lib/_stream_duplex.js"),n.Transform=k("./lib/_stream_transform.js"),n.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,n){D.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,D,n){D.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,D,n){var y=function(){return this}()||Function("return this")(),p=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,x=p&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,D.exports=k("./runtime"),p)y.regeneratorRuntime=x;else try{delete y.regeneratorRuntime}catch(A){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,D,n){!function(y){"use strict";var p=Object.prototype,x=p.hasOwnProperty,A,m=typeof Symbol=="function"?Symbol:{},f=m.iterator||"@@iterator",h=m.asyncIterator||"@@asyncIterator",u=m.toStringTag||"@@toStringTag",a=typeof D=="object",i=y.regeneratorRuntime;if(i){a&&(D.exports=i);return}i=y.regeneratorRuntime=a?D.exports:{};function t(X,B,j,W){var z=B&&B.prototype instanceof d?B:d,V=Object.create(z.prototype),Q=new M(W||[]);return V._invoke=w(X,j,Q),V}i.wrap=t;function o(X,B,j){try{return{type:"normal",arg:X.call(B,j)}}catch(W){return{type:"throw",arg:W}}}var e="suspendedStart",l="suspendedYield",r="executing",s="completed",c={};function d(){}function g(){}function v(){}var b={};b[f]=function(){return this};var S=Object.getPrototypeOf,E=S&&S(S(F([])));E&&E!==p&&x.call(E,f)&&(b=E);var C=v.prototype=d.prototype=Object.create(b);g.prototype=C.constructor=v,v.constructor=g,v[u]=g.displayName="GeneratorFunction";function _(X){["next","throw","return"].forEach(function(B){X[B]=function(j){return this._invoke(B,j)}})}i.isGeneratorFunction=function(X){var B=typeof X=="function"&&X.constructor;return B?B===g||(B.displayName||B.name)==="GeneratorFunction":!1},i.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,v):(X.__proto__=v,u in X||(X[u]="GeneratorFunction")),X.prototype=Object.create(C),X},i.awrap=function(X){return{__await:X}};function T(X){function B(z,V,Q,G){var re=o(X[z],X,V);if(re.type==="throw")G(re.arg);else{var ee=re.arg,ue=ee.value;return ue&&typeof ue=="object"&&x.call(ue,"__await")?Promise.resolve(ue.__await).then(function($){B("next",$,Q,G)},function($){B("throw",$,Q,G)}):Promise.resolve(ue).then(function($){ee.value=$,Q(ee)},G)}}var j;function W(z,V){function Q(){return new Promise(function(G,re){B(z,V,G,re)})}return j=j?j.then(Q,Q):Q()}this._invoke=W}_(T.prototype),T.prototype[h]=function(){return this},i.AsyncIterator=T,i.async=function(X,B,j,W){var z=new T(t(X,B,j,W));return i.isGeneratorFunction(B)?z:z.next().then(function(V){return V.done?V.value:z.next()})};function w(X,B,j){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(j.method=V,j.arg=Q;;){var G=j.delegate;if(G){var re=O(G,j);if(re){if(re===c)continue;return re}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(W===e)throw W=s,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);W=r;var ee=o(X,B,j);if(ee.type==="normal"){if(W=j.done?s:l,ee.arg===c)continue;return{value:ee.arg,done:j.done}}else ee.type==="throw"&&(W=s,j.method="throw",j.arg=ee.arg)}}}function O(X,B){var j=X.iterator[B.method];if(j===A){if(B.delegate=null,B.method==="throw"){if(X.iterator.return&&(B.method="return",B.arg=A,O(X,B),B.method==="throw"))return c;B.method="throw",B.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var W=o(j,X.iterator,B.arg);if(W.type==="throw")return B.method="throw",B.arg=W.arg,B.delegate=null,c;var z=W.arg;if(!z)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,c;if(z.done)B[X.resultName]=z.value,B.next=X.nextLoc,B.method!=="return"&&(B.method="next",B.arg=A);else return z;return B.delegate=null,c}_(C),C[u]="Generator",C[f]=function(){return this},C.toString=function(){return"[object Generator]"};function I(X){var B={tryLoc:X[0]};1 in X&&(B.catchLoc=X[1]),2 in X&&(B.finallyLoc=X[2],B.afterLoc=X[3]),this.tryEntries.push(B)}function R(X){var B=X.completion||{};B.type="normal",delete B.arg,X.completion=B}function M(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(I,this),this.reset(!0)}i.keys=function(X){var B=[];for(var j in X)B.push(j);return B.reverse(),function W(){for(;B.length;){var z=B.pop();if(z in X)return W.value=z,W.done=!1,W}return W.done=!0,W}};function F(X){if(X){var B=X[f];if(B)return B.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var j=-1,W=function z(){for(;++j<X.length;)if(x.call(X,j))return z.value=X[j],z.done=!1,z;return z.value=A,z.done=!0,z};return W.next=W}}return{next:P}}i.values=F;function P(){return{value:A,done:!0}}M.prototype={constructor:M,reset:function(B){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(R),!B)for(var j in this)j.charAt(0)==="t"&&x.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=A)},stop:function(){this.done=!0;var B=this.tryEntries[0],j=B.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(B){if(this.done)throw B;var j=this;function W(ee,ue){return Q.type="throw",Q.arg=B,j.next=ee,ue&&(j.method="next",j.arg=A),!!ue}for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z],Q=V.completion;if(V.tryLoc==="root")return W("end");if(V.tryLoc<=this.prev){var G=x.call(V,"catchLoc"),re=x.call(V,"finallyLoc");if(G&&re){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(re){if(this.prev<V.finallyLoc)return W(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(B,j){for(var W=this.tryEntries.length-1;W>=0;--W){var z=this.tryEntries[W];if(z.tryLoc<=this.prev&&x.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var V=z;break}}V&&(B==="break"||B==="continue")&&V.tryLoc<=j&&j<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=B,Q.arg=j,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(B,j){if(B.type==="throw")throw B.arg;return B.type==="break"||B.type==="continue"?this.next=B.arg:B.type==="return"?(this.rval=this.arg=B.arg,this.method="return",this.next="end"):B.type==="normal"&&j&&(this.next=j),c},finish:function(B){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.finallyLoc===B)return this.complete(W.completion,W.afterLoc),R(W),c}},catch:function(B){for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j];if(W.tryLoc===B){var z=W.completion;if(z.type==="throw"){var V=z.arg;R(W)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(B,j,W){return this.delegate={iterator:F(B),resultName:j,nextLoc:W},this.method==="next"&&(this.arg=A),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,D,n){var y=k("buffer"),p=y.Buffer;function x(m,f){for(var h in m)f[h]=m[h]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?D.exports=y:(x(y,n),n.Buffer=A);function A(m,f,h){return p(m,f,h)}x(p,A),A.from=function(m,f,h){if(typeof m=="number")throw new TypeError("Argument must not be a number");return p(m,f,h)},A.alloc=function(m,f,h){if(typeof m!="number")throw new TypeError("Argument must be a number");var u=p(m);return f!==void 0?typeof h=="string"?u.fill(f,h):u.fill(f):u.fill(0),u},A.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return p(m)},A.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(m)}},{buffer:73}],229:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/core-js/string/from-code-point"),x=l(p),A=k("babel-runtime/core-js/json/stringify"),m=l(A),f=k("babel-runtime/helpers/typeof"),h=l(f),u=k("babel-runtime/core-js/object/define-property"),a=l(u),i=k("babel-runtime/core-js/object/keys"),t=l(i),o=k("babel-runtime/core-js/object/create"),e=l(o);function l(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Y,q){return new c(Y,q)},r.SAXParser=c,r.SAXStream=C,r.createStream=E,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,q){if(!(this instanceof c))return new c(Y,q);var fe=this;g(fe),fe.q=fe.c="",fe.bufferCheckPosition=r.MAX_BUFFER_LENGTH,fe.opt=q||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!Y,fe.noscript=!!(Y||fe.opt.noscript),fe.state=V.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?(0,e.default)(r.XML_ENTITIES):(0,e.default)(r.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=(0,e.default)(I)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),G(fe,"onready")}e.default||(Object.create=function(Y){function q(){}q.prototype=Y;var fe=new q;return fe}),t.default||(Object.keys=function(Y){var q=[];for(var fe in Y)Y.hasOwnProperty(fe)&&q.push(fe);return q});function d(Y){for(var q=Math.max(r.MAX_BUFFER_LENGTH,10),fe=0,we=0,Ne=s.length;we<Ne;we++){var je=Y[s[we]].length;if(je>q)switch(s[we]){case"textNode":ee(Y);break;case"cdata":re(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":re(Y,"onscript",Y.script),Y.script="";break;default:$(Y,"Max buffer length exceeded: "+s[we])}fe=Math.max(fe,je)}var me=r.MAX_BUFFER_LENGTH-fe;Y.bufferCheckPosition=me+Y.position}function g(Y){for(var q=0,fe=s.length;q<fe;q++)Y[s[q]]=""}function v(Y){ee(Y),Y.cdata!==""&&(re(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(re(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){be(this)},write:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){v(this)}};var b;try{b=k("stream").Stream}catch(Y){b=function(){}}var S=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function E(Y,q){return new C(Y,q)}function C(Y,q){if(!(this instanceof C))return new C(Y,q);b.apply(this),this._parser=new c(Y,q),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(we){fe.emit("error",we),fe._parser.error=null},this._decoder=null,S.forEach(function(we){(0,a.default)(fe,"on"+we,{get:function(){return fe._parser["on"+we]},set:function(je){if(!je)return fe.removeAllListeners(we),fe._parser["on"+we]=je,je;fe.on(we,je)},enumerable:!0,configurable:!1})})}C.prototype=(0,e.default)(b.prototype,{constructor:{value:C}}),C.prototype.write=function(Y){if(typeof y=="function"&&typeof y.isBuffer=="function"&&y.isBuffer(Y)){if(!this._decoder){var q=k("string_decoder").StringDecoder;this._decoder=new q("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},C.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},C.prototype.on=function(Y,q){var fe=this;return!fe._parser["on"+Y]&&S.indexOf(Y)!==-1&&(fe._parser["on"+Y]=function(){var we=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);we.splice(0,0,Y),fe.emit.apply(fe,we)}),b.prototype.on.call(fe,Y,q)};var _="[CDATA[",T="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:O},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]/,M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,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]/,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 B(Y){return Y==='"'||Y==="'"}function j(Y){return Y===">"||X(Y)}function W(Y,q){return Y.test(q)}function z(Y,q){return!W(Y,q)}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 q=r.ENTITIES[Y],fe=typeof q=="number"?String.fromCharCode(q):q;r.ENTITIES[Y]=fe});for(var Q in r.STATE)r.STATE[r.STATE[Q]]=Q;V=r.STATE;function G(Y,q,fe){Y[q]&&Y[q](fe)}function re(Y,q,fe){Y.textNode&&ee(Y),G(Y,q,fe)}function ee(Y){Y.textNode=ue(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function ue(Y,q){return Y.trim&&(q=q.trim()),Y.normalize&&(q=q.replace(/\s+/g," ")),q}function $(Y,q){return ee(Y),Y.trackPosition&&(q+=`
Line: `+Y.line+`
Column: `+Y.column+`
Char: `+Y.c),q=new Error(q),Y.error=q,G(Y,"onerror",q),Y}function be(Y){return Y.sawRoot&&!Y.closedRoot&&_e(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&$(Y,"Unexpected end"),ee(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function _e(Y,q){if((typeof Y=="undefined"?"undefined":(0,h.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&$(Y,q)}function Ee(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var q=Y.tags[Y.tags.length-1]||Y,fe=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(fe.ns=q.ns),Y.attribList.length=0,re(Y,"onopentagstart",fe)}function Xe(Y,q){var fe=Y.indexOf(":"),we=fe<0?["",Y]:Y.split(":"),Ne=we[0],je=we[1];return q&&Y==="xmlns"&&(Ne="xmlns",je=""),{prefix:Ne,local:je}}function He(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 q=Xe(Y.attribName,!0),fe=q.prefix,we=q.local;if(fe==="xmlns")if(we==="xml"&&Y.attribValue!==w)_e(Y,"xml: prefix must be bound to "+w+`
Actual: `+Y.attribValue);else if(we==="xmlns"&&Y.attribValue!==O)_e(Y,"xmlns: prefix must be bound to "+O+`
Actual: `+Y.attribValue);else{var Ne=Y.tag,je=Y.tags[Y.tags.length-1]||Y;Ne.ns===je.ns&&(Ne.ns=(0,e.default)(je.ns)),Ne.ns[we]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,re(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function nt(Y,q){if(Y.opt.xmlns){var fe=Y.tag,we=Xe(Y.tagName);fe.prefix=we.prefix,fe.local=we.local,fe.uri=fe.ns[we.prefix]||"",fe.prefix&&!fe.uri&&(_e(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),fe.uri=we.prefix);var Ne=Y.tags[Y.tags.length-1]||Y;fe.ns&&Ne.ns!==fe.ns&&(0,t.default)(fe.ns).forEach(function(Yt){re(Y,"onopennamespace",{prefix:Yt,uri:fe.ns[Yt]})});for(var je=0,me=Y.attribList.length;je<me;je++){var Ce=Y.attribList[je],Fe=Ce[0],it=Ce[1],Ct=Xe(Fe,!0),mt=Ct.prefix,Ve=Ct.local,or=mt===""?"":fe.ns[mt]||"",dt={name:Fe,value:it,prefix:mt,local:Ve,uri:or};mt&&mt!=="xmlns"&&!or&&(_e(Y,"Unbound namespace prefix: "+(0,m.default)(mt)),dt.uri=mt),Y.tag.attributes[Fe]=dt,re(Y,"onattribute",dt)}Y.attribList.length=0}Y.tag.isSelfClosing=!!q,Y.sawRoot=!0,Y.tags.push(Y.tag),re(Y,"onopentag",Y.tag),q||(!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 Ie(Y){if(!Y.tagName){_e(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}re(Y,"onscript",Y.script),Y.script=""}var q=Y.tags.length,fe=Y.tagName;Y.strict||(fe=fe[Y.looseCase]());for(var we=fe;q--;){var Ne=Y.tags[q];if(Ne.name!==we)_e(Y,"Unexpected close tag");else break}if(q<0){_e(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=fe;for(var je=Y.tags.length;je-- >q;){var me=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,re(Y,"onclosetag",Y.tagName);var Ce={};for(var Fe in me.ns)Ce[Fe]=me.ns[Fe];var it=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&me.ns!==it.ns&&(0,t.default)(me.ns).forEach(function(Ct){var mt=me.ns[Ct];re(Y,"onclosenamespace",{prefix:Ct,uri:mt})})}q===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function oe(Y){var q=Y.entity,fe=q.toLowerCase(),we,Ne="";return Y.ENTITIES[q]?Y.ENTITIES[q]:Y.ENTITIES[fe]?Y.ENTITIES[fe]:(q=fe,q.charAt(0)==="#"&&(q.charAt(1)==="x"?(q=q.slice(2),we=parseInt(q,16),Ne=we.toString(16)):(q=q.slice(1),we=parseInt(q,10),Ne=we.toString(10))),q=q.replace(/^0+/,""),isNaN(we)||Ne.toLowerCase()!==q?(_e(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,x.default)(we))}function ot(Y,q){q==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X(q)||(_e(Y,"Non-whitespace before first tag."),Y.textNode=q,Y.state=V.TEXT)}function he(Y,q){var fe="";return q<Y.length&&(fe=Y.charAt(q)),fe}function J(Y){var q=this;if(this.error)throw this.error;if(q.closed)return $(q,"Cannot write after close. Assign an onready handler.");if(Y===null)return be(q);(typeof Y=="undefined"?"undefined":(0,h.default)(Y))==="object"&&(Y=Y.toString());for(var fe=0,we="";!(we=he(Y,fe++),q.c=we,!we);){q.trackPosition&&(q.position++,we===`
`?(q.line++,q.column=0):q.column++);switch(q.state){case V.BEGIN:if(q.state=V.BEGIN_WHITESPACE,we==="\uFEFF")continue;ot(q,we);continue;case V.BEGIN_WHITESPACE:ot(q,we);continue;case V.TEXT:if(q.sawRoot&&!q.closedRoot){for(var Ne=fe-1;we&&we!=="<"&&we!=="&";)we=he(Y,fe++),we&&q.trackPosition&&(q.position++,we===`
`?(q.line++,q.column=0):q.column++);q.textNode+=Y.substring(Ne,fe-1)}we==="<"&&!(q.sawRoot&&q.closedRoot&&!q.strict)?(q.state=V.OPEN_WAKA,q.startTagPosition=q.position):(!X(we)&&(!q.sawRoot||q.closedRoot)&&_e(q,"Text data outside of root node."),we==="&"?q.state=V.TEXT_ENTITY:q.textNode+=we);continue;case V.SCRIPT:we==="<"?q.state=V.SCRIPT_ENDING:q.script+=we;continue;case V.SCRIPT_ENDING:we==="/"?q.state=V.CLOSE_TAG:(q.script+="<"+we,q.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(we==="!")q.state=V.SGML_DECL,q.sgmlDecl="";else if(!X(we))if(W(R,we))q.state=V.OPEN_TAG,q.tagName=we;else if(we==="/")q.state=V.CLOSE_TAG,q.tagName="";else if(we==="?")q.state=V.PROC_INST,q.procInstName=q.procInstBody="";else{if(_e(q,"Unencoded <"),q.startTagPosition+1<q.position){var je=q.position-q.startTagPosition;we=new Array(je).join(" ")+we}q.textNode+="<"+we,q.state=V.TEXT}continue;case V.SGML_DECL:(q.sgmlDecl+we).toUpperCase()===_?(re(q,"onopencdata"),q.state=V.CDATA,q.sgmlDecl="",q.cdata=""):q.sgmlDecl+we==="--"?(q.state=V.COMMENT,q.comment="",q.sgmlDecl=""):(q.sgmlDecl+we).toUpperCase()===T?(q.state=V.DOCTYPE,(q.doctype||q.sawRoot)&&_e(q,"Inappropriately located doctype declaration"),q.doctype="",q.sgmlDecl=""):we===">"?(re(q,"onsgmldeclaration",q.sgmlDecl),q.sgmlDecl="",q.state=V.TEXT):(B(we)&&(q.state=V.SGML_DECL_QUOTED),q.sgmlDecl+=we);continue;case V.SGML_DECL_QUOTED:we===q.q&&(q.state=V.SGML_DECL,q.q=""),q.sgmlDecl+=we;continue;case V.DOCTYPE:we===">"?(q.state=V.TEXT,re(q,"ondoctype",q.doctype),q.doctype=!0):(q.doctype+=we,we==="["?q.state=V.DOCTYPE_DTD:B(we)&&(q.state=V.DOCTYPE_QUOTED,q.q=we));continue;case V.DOCTYPE_QUOTED:q.doctype+=we,we===q.q&&(q.q="",q.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:q.doctype+=we,we==="]"?q.state=V.DOCTYPE:B(we)&&(q.state=V.DOCTYPE_DTD_QUOTED,q.q=we);continue;case V.DOCTYPE_DTD_QUOTED:q.doctype+=we,we===q.q&&(q.state=V.DOCTYPE_DTD,q.q="");continue;case V.COMMENT:we==="-"?q.state=V.COMMENT_ENDING:q.comment+=we;continue;case V.COMMENT_ENDING:we==="-"?(q.state=V.COMMENT_ENDED,q.comment=ue(q.opt,q.comment),q.comment&&re(q,"oncomment",q.comment),q.comment=""):(q.comment+="-"+we,q.state=V.COMMENT);continue;case V.COMMENT_ENDED:we!==">"?(_e(q,"Malformed comment"),q.comment+="--"+we,q.state=V.COMMENT):q.state=V.TEXT;continue;case V.CDATA:we==="]"?q.state=V.CDATA_ENDING:q.cdata+=we;continue;case V.CDATA_ENDING:we==="]"?q.state=V.CDATA_ENDING_2:(q.cdata+="]"+we,q.state=V.CDATA);continue;case V.CDATA_ENDING_2:we===">"?(q.cdata&&re(q,"oncdata",q.cdata),re(q,"onclosecdata"),q.cdata="",q.state=V.TEXT):we==="]"?q.cdata+="]":(q.cdata+="]]"+we,q.state=V.CDATA);continue;case V.PROC_INST:we==="?"?q.state=V.PROC_INST_ENDING:X(we)?q.state=V.PROC_INST_BODY:q.procInstName+=we;continue;case V.PROC_INST_BODY:if(!q.procInstBody&&X(we))continue;we==="?"?q.state=V.PROC_INST_ENDING:q.procInstBody+=we;continue;case V.PROC_INST_ENDING:we===">"?(re(q,"onprocessinginstruction",{name:q.procInstName,body:q.procInstBody}),q.procInstName=q.procInstBody="",q.state=V.TEXT):(q.procInstBody+="?"+we,q.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:W(M,we)?q.tagName+=we:(Ee(q),we===">"?nt(q):we==="/"?q.state=V.OPEN_TAG_SLASH:(X(we)||_e(q,"Invalid character in tag name"),q.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:we===">"?(nt(q,!0),Ie(q)):(_e(q,"Forward-slash in opening tag not followed by >"),q.state=V.ATTRIB);continue;case V.ATTRIB:if(X(we))continue;we===">"?nt(q):we==="/"?q.state=V.OPEN_TAG_SLASH:W(R,we)?(q.attribName=we,q.attribValue="",q.state=V.ATTRIB_NAME):_e(q,"Invalid attribute name");continue;case V.ATTRIB_NAME:we==="="?q.state=V.ATTRIB_VALUE:we===">"?(_e(q,"Attribute without value"),q.attribValue=q.attribName,He(q),nt(q)):X(we)?q.state=V.ATTRIB_NAME_SAW_WHITE:W(M,we)?q.attribName+=we:_e(q,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(we==="=")q.state=V.ATTRIB_VALUE;else{if(X(we))continue;_e(q,"Attribute without value"),q.tag.attributes[q.attribName]="",q.attribValue="",re(q,"onattribute",{name:q.attribName,value:""}),q.attribName="",we===">"?nt(q):W(R,we)?(q.attribName=we,q.state=V.ATTRIB_NAME):(_e(q,"Invalid attribute name"),q.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(we))continue;B(we)?(q.q=we,q.state=V.ATTRIB_VALUE_QUOTED):(_e(q,"Unquoted attribute value"),q.state=V.ATTRIB_VALUE_UNQUOTED,q.attribValue=we);continue;case V.ATTRIB_VALUE_QUOTED:if(we!==q.q){we==="&"?q.state=V.ATTRIB_VALUE_ENTITY_Q:q.attribValue+=we;continue}He(q),q.q="",q.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(we)?q.state=V.ATTRIB:we===">"?nt(q):we==="/"?q.state=V.OPEN_TAG_SLASH:W(R,we)?(_e(q,"No whitespace between attributes"),q.attribName=we,q.attribValue="",q.state=V.ATTRIB_NAME):_e(q,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!j(we)){we==="&"?q.state=V.ATTRIB_VALUE_ENTITY_U:q.attribValue+=we;continue}He(q),we===">"?nt(q):q.state=V.ATTRIB;continue;case V.CLOSE_TAG:if(q.tagName)we===">"?Ie(q):W(M,we)?q.tagName+=we:q.script?(q.script+="</"+q.tagName,q.tagName="",q.state=V.SCRIPT):(X(we)||_e(q,"Invalid tagname in closing tag"),q.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(we))continue;z(R,we)?q.script?(q.script+="</"+we,q.state=V.SCRIPT):_e(q,"Invalid tagname in closing tag."):q.tagName=we}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(we))continue;we===">"?Ie(q):_e(q,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var me,Ce;switch(q.state){case V.TEXT_ENTITY:me=V.TEXT,Ce="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:me=V.ATTRIB_VALUE_QUOTED,Ce="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:me=V.ATTRIB_VALUE_UNQUOTED,Ce="attribValue";break}we===";"?(q[Ce]+=oe(q),q.entity="",q.state=me):W(q.entity.length?P:F,we)?q.entity+=we:(_e(q,"Invalid character in entity name"),q[Ce]+="&"+q.entity+we,q.entity="",q.state=me);continue;default:throw new Error(q,"Unknown state: "+q.state)}}return q.position>=q.bufferCheckPosition&&d(q),q}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */x.default||function(){var Y=String.fromCharCode,q=Math.floor,fe=function(){var Ne=16384,je=[],me,Ce,Fe=-1,it=arguments.length;if(!it)return"";for(var Ct="";++Fe<it;){var mt=Number(arguments[Fe]);if(!isFinite(mt)||mt<0||mt>1114111||q(mt)!==mt)throw RangeError("Invalid code point: "+mt);mt<=65535?je.push(mt):(mt-=65536,me=(mt>>10)+55296,Ce=mt%1024+56320,je.push(me,Ce)),(Fe+1===it||je.length>Ne)&&(Ct+=Y.apply(null,je),je.length=0)}return Ct};a.default?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof n=="undefined"?(void 0).sax={}:n)}).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,n){D.exports=x;var y=k("events").EventEmitter,p=k("inherits");p(x,y),x.Readable=k("readable-stream/readable.js"),x.Writable=k("readable-stream/writable.js"),x.Duplex=k("readable-stream/duplex.js"),x.Transform=k("readable-stream/transform.js"),x.PassThrough=k("readable-stream/passthrough.js"),x.Stream=x;function x(){y.call(this)}x.prototype.pipe=function(A,m){var f=this;function h(l){A.writable&&(A.write(l)===!1&&f.pause&&f.pause())}f.on("data",h);function u(){f.readable&&f.resume&&f.resume()}A.on("drain",u),!A._isStdio&&(!m||m.end!==!1)&&(f.on("end",i),f.on("close",t));var a=!1;function i(){if(a)return;a=!0,A.end()}function t(){if(a)return;a=!0,typeof A.destroy=="function"&&A.destroy()}function o(l){if(e(),y.listenerCount(this,"error")===0)throw l}f.on("error",o),A.on("error",o);function e(){f.removeListener("data",h),A.removeListener("drain",u),f.removeListener("end",i),f.removeListener("close",t),f.removeListener("error",o),A.removeListener("error",o),f.removeListener("end",e),f.removeListener("close",e),A.removeListener("close",e)}return f.on("end",e),f.on("close",e),A.on("close",e),A.emit("pipe",f),A}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(k,D,n){(function(y){var p=k("./lib/request"),x=k("./lib/response"),A=k("xtend"),m=k("builtin-status-codes"),f=k("url"),h=n;h.request=function(u,a){typeof u=="string"?u=f.parse(u):u=A(u);var i=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=u.protocol||i,o=u.hostname||u.host,e=u.port,l=u.path||"/";o&&o.indexOf(":")!==-1&&(o="["+o+"]"),u.url=(o?t+"//"+o:"")+(e?":"+e:"")+l,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var r=new p(u);return a&&r.on("response",a),r},h.get=function(a,i){var t=h.request(a,i);return t.end(),t},h.ClientRequest=p,h.IncomingMessage=x.IncomingMessage,h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.globalAgent=new h.Agent,h.STATUS_CODES=m,h.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,n){(function(y){"use strict";n.fetch=h(y.fetch)&&h(y.ReadableStream),n.writableStream=h(y.WritableStream),n.abortController=h(y.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(u){}var p;function x(){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 A(u){var a=x();if(!a)return!1;try{return a.responseType=u,a.responseType===u}catch(i){}return!1}var m=typeof y.ArrayBuffer!="undefined",f=m&&h(y.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||m&&A("arraybuffer"),n.msstream=!n.fetch&&f&&A("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&m&&A("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||(x()?h(x().overrideMimeType):!1),n.vbArray=h(y.VBArray);function h(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,n){(function(y,p,x){"use strict";var A=k("babel-runtime/core-js/object/keys"),m=f(A);function f(d){return d&&d.__esModule?d:{default:d}}var h=k("./capability"),u=k("inherits"),a=k("./response"),i=k("readable-stream"),t=k("to-arraybuffer"),o=a.IncomingMessage,e=a.readyStates;function l(d,g){return h.fetch&&g?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&d?"arraybuffer":h.vbArray&&d?"text:vbarray":"text"}var r=D.exports=function(d){var g=this;i.Writable.call(g),g._opts=d,g._body=[],g._headers={},d.auth&&g.setHeader("Authorization","Basic "+new x(d.auth).toString("base64")),(0,m.default)(d.headers).forEach(function(S){g.setHeader(S,d.headers[S])});var v,b=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!h.abortController)b=!1,v=!0;else if(d.mode==="prefer-streaming")v=!1;else if(d.mode==="allow-wrong-content-type")v=!h.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")v=!0;else throw new Error("Invalid value for opts.mode");g._mode=l(v,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};u(r,i.Writable),r.prototype.setHeader=function(d,g){var v=this,b=d.toLowerCase();if(c.indexOf(b)!==-1)return;v._headers[b]={name:d,value:g}},r.prototype.getHeader=function(d){var g=this._headers[d.toLowerCase()];return g?g.value:null},r.prototype.removeHeader=function(d){var g=this;delete g._headers[d.toLowerCase()]},r.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var g=d._opts,v=d._headers,b=null;g.method!=="GET"&&g.method!=="HEAD"&&(h.arraybuffer?b=t(x.concat(d._body)):h.blobConstructor?b=new p.Blob(d._body.map(function(w){return t(w)}),{type:(v["content-type"]||{}).value||""}):b=x.concat(d._body).toString());var S=[];if((0,m.default)(v).forEach(function(w){var O=v[w].name,I=v[w].value;Array.isArray(I)?I.forEach(function(R){S.push([O,R])}):S.push([O,I])}),d._mode==="fetch"){var E=null,C=null;if(h.abortController){var _=new AbortController;E=_.signal,d._fetchAbortController=_,"requestTimeout"in g&&g.requestTimeout!==0&&(d._fetchTimer=p.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},g.requestTimeout))}p.fetch(d._opts.url,{method:d._opts.method,headers:S,body:b||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:E}).then(function(w){d._fetchResponse=w,d._connect()},function(w){p.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",w)})}else{var T=d._xhr=new p.XMLHttpRequest;try{T.open(d._opts.method,d._opts.url,!0)}catch(w){y.nextTick(function(){d.emit("error",w)});return}"responseType"in T&&(T.responseType=d._mode.split(":")[0]),"withCredentials"in T&&(T.withCredentials=!!g.withCredentials),d._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(T.timeout=g.requestTimeout,T.ontimeout=function(){d.emit("requestTimeout")}),S.forEach(function(w){T.setRequestHeader(w[0],w[1])}),d._response=null,T.onreadystatechange=function(){switch(T.readyState){case e.LOADING:case e.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){d._onXHRProgress()}),T.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{T.send(b)}catch(w){y.nextTick(function(){d.emit("error",w)});return}}};function s(d){try{var g=d.status;return g!==null&&g!==0}catch(v){return!1}}r.prototype._onXHRProgress=function(){var d=this;if(!s(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},r.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new o(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(g){d.emit("error",g)}),d.emit("response",d._response)},r.prototype._write=function(d,g,v){var b=this;b._body.push(d),v()},r.prototype.abort=r.prototype.destroy=function(){var d=this;d._destroyed=!0,p.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},r.prototype.end=function(d,g,v){var b=this;typeof d=="function"&&(v=d,d=void 0),i.Writable.prototype.end.call(b,d,g,v)},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,n){(function(y,p,x){"use strict";var A=k("babel-runtime/core-js/promise"),m=f(A);function f(o){return o&&o.__esModule?o:{default:o}}var h=k("./capability"),u=k("inherits"),a=k("readable-stream"),i=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(o,e,l,r){var s=this;if(a.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 E(){g.read().then(function(C){if(s._destroyed)return;if(C.done){p.clearTimeout(r),s.push(null);return}s.push(new x(C.value)),E()}).catch(function(C){p.clearTimeout(r),s._destroyed||s.emit("error",C)})};if(s._fetchResponse=e,s.url=e.url,s.statusCode=e.status,s.statusMessage=e.statusText,e.headers.forEach(function(E,C){s.headers[C.toLowerCase()]=E,s.rawHeaders.push(C,E)}),h.writableStream){var d=new WritableStream({write:function(C){return new m.default(function(_,T){s._destroyed?T():s.push(new x(C))?_():s._resumeFetch=_})},close:function(){p.clearTimeout(r),s._destroyed||s.push(null)},abort:function(C){s._destroyed||s.emit("error",C)}});try{e.body.pipeTo(d).catch(function(E){p.clearTimeout(r),s._destroyed||s.emit("error",E)});return}catch(E){}}var g=e.body.getReader();c()}else{s._xhr=o,s._pos=0,s.url=o.responseURL,s.statusCode=o.status,s.statusMessage=o.statusText;var v=o.getAllResponseHeaders().split(/\r?\n/);if(v.forEach(function(E){var C=E.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(s.headers[_]===void 0&&(s.headers[_]=[]),s.headers[_].push(C[2])):s.headers[_]!==void 0?s.headers[_]+=", "+C[2]:s.headers[_]=C[2],s.rawHeaders.push(C[1],C[2])}}),s._charset="x-user-defined",!h.overrideMimeType){var b=s.rawHeaders["mime-type"];if(b){var S=b.match(/;\s*charset=([^;])(;|$)/);S&&(s._charset=S[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};u(t,a.Readable),t.prototype._read=function(){var o=this,e=o._resumeFetch;e&&(o._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var o=this,e=o._xhr,l=null;switch(o._mode){case"text:vbarray":if(e.readyState!==i.DONE)break;try{l=new p.VBArray(e.responseBody).toArray()}catch(g){}if(l!==null){o.push(new x(l));break}case"text":try{l=e.responseText}catch(g){o._mode="text:vbarray";break}if(l.length>o._pos){var r=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var s=new x(r.length),c=0;c<r.length;c++)s[c]=r.charCodeAt(c)&255;o.push(s)}else o.push(r,o._charset);o._pos=l.length}break;case"arraybuffer":if(e.readyState!==i.DONE||!e.response)break;l=e.response,o.push(new x(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==i.LOADING||!l)break;o.push(new x(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==i.LOADING)break;var d=new p.MSStreamReader;d.onprogress=function(){d.result.byteLength>o._pos&&(o.push(new x(new Uint8Array(d.result.slice(o._pos)))),o._pos=d.result.byteLength)},d.onload=function(){o.push(null)},d.readAsArrayBuffer(l);break}o._xhr.readyState===i.DONE&&o._mode!=="ms-stream"&&o.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,n){"use strict";var y=k("safe-buffer").Buffer,p=y.isEncoding||function(d){d=""+d;switch(d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(d){if(!d)return"utf8";for(var g;;)switch(d){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 d;default:if(g)return;d=(""+d).toLowerCase(),g=!0}}function A(d){var g=x(d);if(typeof g!="string"&&(y.isEncoding===p||!p(d)))throw new Error("Unknown encoding: "+d);return g||d}n.StringDecoder=m;function m(d){this.encoding=A(d);var g;switch(this.encoding){case"utf16le":this.text=o,this.end=e,g=4;break;case"utf8":this.fillLast=a,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(d){if(d.length===0)return"";var g,v;if(this.lastNeed){if(g=this.fillLast(d),g===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<d.length?g?g+this.text(d,v):this.text(d,v):g||""},m.prototype.end=t,m.prototype.text=i,m.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length};function f(d){return d<=127?0:d>>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function h(d,g,v){var b=g.length-1;if(b<v)return 0;var S=f(g[b]);return S>=0?(S>0&&(d.lastNeed=S-1),S):--b<v||S===-2?0:(S=f(g[b]),S>=0?(S>0&&(d.lastNeed=S-2),S):--b<v||S===-2?0:(S=f(g[b]),S>=0?(S>0&&(S===2?S=0:d.lastNeed=S-3),S):0))}function u(d,g,v){if((g[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function a(d){var g=this.lastTotal-this.lastNeed,v=u(this,d,g);if(v!==void 0)return v;if(this.lastNeed<=d.length)return d.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,g,0,d.length),this.lastNeed-=d.length}function i(d,g){var v=h(this,d,g);if(!this.lastNeed)return d.toString("utf8",g);this.lastTotal=v;var b=d.length-(v-this.lastNeed);return d.copy(this.lastChar,0,b),d.toString("utf8",g,b)}function t(d){var g=d&&d.length?this.write(d):"";return this.lastNeed?g+"\uFFFD":g}function o(d,g){if((d.length-g)%2===0){var v=d.toString("utf16le",g);if(v){var b=v.charCodeAt(v.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",g,d.length-1)}function e(d){var g=d&&d.length?this.write(d):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,v)}return g}function l(d,g){var v=(d.length-g)%3;return v===0?d.toString("base64",g):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",g,d.length-v))}function r(d){var g=d&&d.length?this.write(d):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function s(d){return d.toString(this.encoding)}function c(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(k,D,n){(function(y,p){var x=k("process/browser.js").nextTick,A=Function.prototype.apply,m=Array.prototype.slice,f={},h=0;n.setTimeout=function(){return new u(A.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(A.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(a){a.close()};function u(a,i){this._id=a,this._clearFn=i}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(a,i){clearTimeout(a._idleTimeoutId),a._idleTimeout=i},n.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},n._unrefActive=n.active=function(a){clearTimeout(a._idleTimeoutId);var i=a._idleTimeout;i>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},i))},n.setImmediate=typeof y=="function"?y:function(a){var i=h++,t=arguments.length<2?!1:m.call(arguments,1);return f[i]=!0,x(function(){f[i]&&(t?a.apply(null,t):a.call(null),n.clearImmediate(i))}),i},n.clearImmediate=typeof p=="function"?p:function(a){delete f[a]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,D,n){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 x=new Uint8Array(p.length),A=p.length,m=0;m<A;m++)x[m]=p[m];return x.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,D,n){"use strict";var y=k("punycode"),p=k("./util");n.parse=g,n.resolve=b,n.resolveObject=S,n.format=v,n.Url=x;function x(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var A=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r",`
`," "],u=["{","}","|","\\","^","`"].concat(h),a=["'"].concat(u),i=["%","/","?",";","#"].concat(a),t=["/","?","#"],o=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},d=k("querystring");function g(E,C,_){if(E&&p.isObject(E)&&E instanceof x)return E;var T=new x;return T.parse(E,C,_),T}x.prototype.parse=function(E,C,_){if(!p.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var T=E.indexOf("?"),w=T!==-1&&T<E.indexOf("#")?"?":"#",O=E.split(w),I=/\\/g;O[0]=O[0].replace(I,"/"),E=O.join(w);var R=E;if(R=R.trim(),!_&&E.split("#").length===1){var M=f.exec(R);if(M)return this.path=R,this.href=R,this.pathname=M[1],M[2]?(this.search=M[2],C?this.query=d.parse(this.search.substr(1)):this.query=this.search.substr(1)):C&&(this.search="",this.query={}),this}var F=A.exec(R);if(F){F=F[0];var P=F.toLowerCase();this.protocol=P,R=R.substr(F.length)}if(_||F||R.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=R.substr(0,2)==="//";X&&!(F&&s[F])&&(R=R.substr(2),this.slashes=!0)}if(!s[F]&&(X||F&&!c[F])){for(var B=-1,j=0;j<t.length;j++){var W=R.indexOf(t[j]);W!==-1&&(B===-1||W<B)&&(B=W)}var z,V;B===-1?V=R.lastIndexOf("@"):V=R.lastIndexOf("@",B),V!==-1&&(z=R.slice(0,V),R=R.slice(V+1),this.auth=decodeURIComponent(z)),B=-1;for(var j=0;j<i.length;j++){var W=R.indexOf(i[j]);W!==-1&&(B===-1||W<B)&&(B=W)}B===-1&&(B=R.length),this.host=R.slice(0,B),R=R.slice(B),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var G=this.hostname.split(/\./),j=0,re=G.length;j<re;j++){var ee=G[j];if(!ee)continue;if(!ee.match(e)){for(var ue="",$=0,be=ee.length;$<be;$++)ee.charCodeAt($)>127?ue+="x":ue+=ee[$];if(!ue.match(e)){var _e=G.slice(0,j),Ee=G.slice(j+1),Xe=ee.match(l);Xe&&(_e.push(Xe[1]),Ee.unshift(Xe[2])),Ee.length&&(R="/"+Ee.join(".")+R),this.hostname=_e.join(".");break}}}this.hostname.length>o?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var He=this.port?":"+this.port:"",nt=this.hostname||"";this.host=nt+He,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!r[P])for(var j=0,re=a.length;j<re;j++){var Ie=a[j];if(R.indexOf(Ie)===-1)continue;var oe=encodeURIComponent(Ie);oe===Ie&&(oe=escape(Ie)),R=R.split(Ie).join(oe)}var ot=R.indexOf("#");ot!==-1&&(this.hash=R.substr(ot),R=R.slice(0,ot));var he=R.indexOf("?");if(he!==-1?(this.search=R.substr(he),this.query=R.substr(he+1),C&&(this.query=d.parse(this.query)),R=R.slice(0,he)):C&&(this.search="",this.query={}),R&&(this.pathname=R),c[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var He=this.pathname||"",J=this.search||"";this.path=He+J}return this.href=this.format(),this};function v(E){return p.isString(E)&&(E=g(E)),E instanceof x?E.format():x.prototype.format.call(E)}x.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var C=this.protocol||"",_=this.pathname||"",T=this.hash||"",w=!1,O="";this.host?w=E+this.host:this.hostname&&(w=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(O=d.stringify(this.query));var I=this.search||O&&"?"+O||"";return C&&C.substr(-1)!==":"&&(C+=":"),this.slashes||(!C||c[C])&&w!==!1?(w="//"+(w||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):w||(w=""),T&&T.charAt(0)!=="#"&&(T="#"+T),I&&I.charAt(0)!=="?"&&(I="?"+I),_=_.replace(/[?#]/g,function(R){return encodeURIComponent(R)}),I=I.replace("#","%23"),C+w+_+I+T};function b(E,C){return g(E,!1,!0).resolve(C)}x.prototype.resolve=function(E){return this.resolveObject(g(E,!1,!0)).format()};function S(E,C){return E?g(E,!1,!0).resolveObject(C):C}x.prototype.resolveObject=function(E){if(p.isString(E)){var C=new x;C.parse(E,!1,!0),E=C}for(var _=new x,T=Object.keys(this),w=0;w<T.length;w++){var O=T[w];_[O]=this[O]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var I=Object.keys(E),R=0;R<I.length;R++){var M=I[R];M!=="protocol"&&(_[M]=E[M])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!c[E.protocol]){for(var F=Object.keys(E),P=0;P<F.length;P++){var X=F[P];_[X]=E[X]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!s[E.protocol]){for(var re=(E.pathname||"").split("/");re.length&&!(E.host=re.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),_.pathname=re.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var B=_.pathname||"",j=_.search||"";_.path=B+j}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var W=_.pathname&&_.pathname.charAt(0)==="/",z=E.host||E.pathname&&E.pathname.charAt(0)==="/",V=z||W||_.host&&E.pathname,Q=V,G=_.pathname&&_.pathname.split("/")||[],re=E.pathname&&E.pathname.split("/")||[],ee=_.protocol&&!c[_.protocol];if(ee&&(_.hostname="",_.port=null,_.host&&(G[0]===""?G[0]=_.host:G.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(re[0]===""?re[0]=E.host:re.unshift(E.host)),E.host=null),V=V&&(re[0]===""||G[0]==="")),z)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,G=re;else if(re.length)G||(G=[]),G.pop(),G=G.concat(re),_.search=E.search,_.query=E.query;else if(!p.isNullOrUndefined(E.search)){if(ee){_.hostname=_.host=G.shift();var ue=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;ue&&(_.auth=ue.shift(),_.host=_.hostname=ue.shift())}return _.search=E.search,_.query=E.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 $=G.slice(-1)[0],be=(_.host||E.host||G.length>1)&&($==="."||$==="..")||$==="",_e=0,Ee=G.length;Ee>=0;Ee--)$=G[Ee],$==="."?G.splice(Ee,1):$===".."?(G.splice(Ee,1),_e++):_e&&(G.splice(Ee,1),_e--);if(!V&&!Q)for(;_e--;_e)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),be&&G.join("/").substr(-1)!=="/"&&G.push("");var Xe=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(ee){_.hostname=_.host=Xe?"":G.length?G.shift():"";var ue=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;ue&&(_.auth=ue.shift(),_.host=_.hostname=ue.shift())}return V=V||_.host&&G.length,V&&!Xe&&G.unshift(""),G.length?_.pathname=G.join("/"):(_.pathname=null,_.path=null),(!p.isNull(_.pathname)||!p.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},x.prototype.parseHost=function(){var E=this.host,C=m.exec(E);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),E=E.substr(0,E.length-C.length)),E&&(this.hostname=E)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,D,n){"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,n){(function(y){D.exports=p;function p(A,m){if(x("noDeprecation"))return A;var f=!1;function h(){if(!f){if(x("throwDeprecation"))throw new Error(m);x("traceDeprecation")?console.trace(m):console.warn(m),f=!0}return A.apply(this,arguments)}return h}function x(A){try{if(!y.localStorage)return!1}catch(f){return!1}var m=y.localStorage[A];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(k,D,n){typeof Object.create=="function"?D.exports=function(p,x){p.super_=x,p.prototype=Object.create(x.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(p,x){p.super_=x;var A=function(){};A.prototype=x.prototype,p.prototype=new A,p.prototype.constructor=p}},{}],242:[function(k,D,n){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,n){(function(y,p){var x=/%[sdj%]/g;n.format=function(B){if(!b(B)){for(var j=[],W=0;W<arguments.length;W++)j.push(f(arguments[W]));return j.join(" ")}for(var W=1,z=arguments,V=z.length,Q=String(B).replace(x,function(re){if(re==="%%")return"%";if(W>=V)return re;switch(re){case"%s":return String(z[W++]);case"%d":return Number(z[W++]);case"%j":try{return JSON.stringify(z[W++])}catch(ee){return"[Circular]"}default:return re}}),G=z[W];W<V;G=z[++W])d(G)||!_(G)?Q+=" "+G:Q+=" "+f(G);return Q},n.deprecate=function(B,j){if(E(p.process))return function(){return n.deprecate(B,j).apply(this,arguments)};if(y.noDeprecation===!0)return B;var W=!1;function z(){if(!W){if(y.throwDeprecation)throw new Error(j);y.traceDeprecation?console.trace(j):console.error(j),W=!0}return B.apply(this,arguments)}return z};var A={},m;n.debuglog=function(B){if(E(m)&&(m=y.env.NODE_DEBUG||""),B=B.toUpperCase(),!A[B])if(new RegExp("\\b"+B+"\\b","i").test(m)){var j=y.pid;A[B]=function(){var W=n.format.apply(n,arguments);console.error("%s %d: %s",B,j,W)}}else A[B]=function(){};return A[B]};function f(B,j){var W={seen:[],stylize:u};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),c(j)?W.showHidden=j:j&&n._extend(W,j),E(W.showHidden)&&(W.showHidden=!1),E(W.depth)&&(W.depth=2),E(W.colors)&&(W.colors=!1),E(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=h),i(W,B,W.depth)}n.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 h(B,j){var W=f.styles[j];return W?"["+f.colors[W][0]+"m"+B+"["+f.colors[W][1]+"m":B}function u(B,j){return B}function a(B){var j={};return B.forEach(function(W,z){j[W]=!0}),j}function i(B,j,W){if(B.customInspect&&j&&O(j.inspect)&&j.inspect!==n.inspect&&!(j.constructor&&j.constructor.prototype===j)){var z=j.inspect(W,B);return b(z)||(z=i(B,z,W)),z}var V=t(B,j);if(V)return V;var Q=Object.keys(j),G=a(Q);if(B.showHidden&&(Q=Object.getOwnPropertyNames(j)),w(j)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return o(j);if(Q.length===0){if(O(j)){var re=j.name?": "+j.name:"";return B.stylize("[Function"+re+"]","special")}if(C(j))return B.stylize(RegExp.prototype.toString.call(j),"regexp");if(T(j))return B.stylize(Date.prototype.toString.call(j),"date");if(w(j))return o(j)}var ee="",ue=!1,$=["{","}"];if(s(j)&&(ue=!0,$=["[","]"]),O(j)){var be=j.name?": "+j.name:"";ee=" [Function"+be+"]"}if(C(j)&&(ee=" "+RegExp.prototype.toString.call(j)),T(j)&&(ee=" "+Date.prototype.toUTCString.call(j)),w(j)&&(ee=" "+o(j)),Q.length===0&&(!ue||j.length==0))return $[0]+ee+$[1];if(W<0)return C(j)?B.stylize(RegExp.prototype.toString.call(j),"regexp"):B.stylize("[Object]","special");B.seen.push(j);var _e;return ue?_e=e(B,j,W,G,Q):_e=Q.map(function(Ee){return l(B,j,W,G,Ee,ue)}),B.seen.pop(),r(_e,ee,$)}function t(B,j){if(E(j))return B.stylize("undefined","undefined");if(b(j)){var W="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(W,"string")}if(v(j))return B.stylize(""+j,"number");if(c(j))return B.stylize(""+j,"boolean");if(d(j))return B.stylize("null","null")}function o(B){return"["+Error.prototype.toString.call(B)+"]"}function e(B,j,W,z,V){for(var Q=[],G=0,re=j.length;G<re;++G)X(j,String(G))?Q.push(l(B,j,W,z,String(G),!0)):Q.push("");return V.forEach(function(ee){ee.match(/^\d+$/)||Q.push(l(B,j,W,z,ee,!0))}),Q}function l(B,j,W,z,V,Q){var G,re,ee;if(ee=Object.getOwnPropertyDescriptor(j,V)||{value:j[V]},ee.get?ee.set?re=B.stylize("[Getter/Setter]","special"):re=B.stylize("[Getter]","special"):ee.set&&(re=B.stylize("[Setter]","special")),X(z,V)||(G="["+V+"]"),re||(B.seen.indexOf(ee.value)<0?(d(W)?re=i(B,ee.value,null):re=i(B,ee.value,W-1),re.indexOf(`
`)>-1&&(Q?re=re.split(`
`).map(function(ue){return" "+ue}).join(`
`).substr(2):re=`
`+re.split(`
`).map(function(ue){return" "+ue}).join(`
`))):re=B.stylize("[Circular]","special")),E(G)){if(Q&&V.match(/^\d+$/))return re;G=JSON.stringify(""+V),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=B.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=B.stylize(G,"string"))}return G+": "+re}function r(B,j,W){var z=0,V=B.reduce(function(Q,G){return z++,G.indexOf(`
`)>=0&&z++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?W[0]+(j===""?"":j+`
`)+" "+B.join(`,
`)+" "+W[1]:W[0]+j+" "+B.join(", ")+" "+W[1]}function s(B){return Array.isArray(B)}n.isArray=s;function c(B){return typeof B=="boolean"}n.isBoolean=c;function d(B){return B===null}n.isNull=d;function g(B){return B==null}n.isNullOrUndefined=g;function v(B){return typeof B=="number"}n.isNumber=v;function b(B){return typeof B=="string"}n.isString=b;function S(B){return typeof B=="symbol"}n.isSymbol=S;function E(B){return B===void 0}n.isUndefined=E;function C(B){return _(B)&&R(B)==="[object RegExp]"}n.isRegExp=C;function _(B){return typeof B=="object"&&B!==null}n.isObject=_;function T(B){return _(B)&&R(B)==="[object Date]"}n.isDate=T;function w(B){return _(B)&&(R(B)==="[object Error]"||B instanceof Error)}n.isError=w;function O(B){return typeof B=="function"}n.isFunction=O;function I(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B=="undefined"}n.isPrimitive=I,n.isBuffer=k("./support/isBuffer");function R(B){return Object.prototype.toString.call(B)}function M(B){return B<10?"0"+B.toString(10):B.toString(10)}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var B=new Date,j=[M(B.getHours()),M(B.getMinutes()),M(B.getSeconds())].join(":");return[B.getDate(),F[B.getMonth()],j].join(" ")}n.log=function(){console.log("%s - %s",P(),n.format.apply(n,arguments))},n.inherits=k("inherits"),n._extend=function(B,j){if(!j||!_(j))return B;for(var W=Object.keys(j),z=W.length;z--;)B[W[z]]=j[W[z]];return B};function X(B,j){return Object.prototype.hasOwnProperty.call(B,j)}}).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,n){"use strict";(function(){"use strict";n.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(k,D,n){"use strict";var y=k("babel-runtime/helpers/typeof"),p=m(y),x=k("babel-runtime/core-js/object/keys"),A=m(x);function m(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,h,u,a,i,t={}.hasOwnProperty;f=k("xmlbuilder"),h=k("./defaults").defaults,a=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},i=function(e){return"<![CDATA["+u(e)+"]]>"},u=function(e){return e.replace("]]>","]]]]><![CDATA[>")},n.Builder=function(){function o(e){var l,r,s;this.options={},r=h["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 o.prototype.buildObject=function(e){var l,r,s,c,d;return l=this.options.attrkey,r=this.options.charkey,(0,A.default)(e).length===1&&this.options.rootName===h["0.2"].rootName?(d=(0,A.default)(e)[0],e=e[d]):d=this.options.rootName,s=function(g){return function(v,b){var S,E,C,_,T,w;if((typeof b=="undefined"?"undefined":(0,p.default)(b))!=="object")g.options.cdata&&a(b)?v.raw(i(b)):v.txt(b);else if(Array.isArray(b))for(_ in b){if(!t.call(b,_))continue;E=b[_];for(T in E)C=E[T],v=s(v.ele(T),C).up()}else for(T in b){if(!t.call(b,T))continue;if(E=b[T],T===l){if((typeof E=="undefined"?"undefined":(0,p.default)(E))==="object")for(S in E)w=E[S],v=v.att(S,w)}else if(T===r)g.options.cdata&&a(E)?v=v.raw(i(E)):v=v.txt(E);else if(Array.isArray(E))for(_ in E){if(!t.call(E,_))continue;C=E[_],typeof C=="string"?g.options.cdata&&a(C)?v=v.ele(T).raw(i(C)).up():v=v.ele(T,C).up():v=s(v.ele(T),C).up()}else(typeof E=="undefined"?"undefined":(0,p.default)(E))==="object"?v=s(v.ele(T),E).up():typeof E=="string"&&g.options.cdata&&a(E)?v=v.ele(T).raw(i(E)).up():(E==null&&(E=""),v=v.ele(T,E.toString()).up())}return v}}(this),c=f.create(d,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),s(c,e).end(this.options.renderOpts)},o}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(k,D,n){"use strict";(function(){n.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,n){"use strict";var y=k("babel-runtime/core-js/promise"),p=a(y),x=k("babel-runtime/core-js/object/get-own-property-names"),A=a(x),m=k("babel-runtime/core-js/object/keys"),f=a(m),h=k("babel-runtime/helpers/typeof"),u=a(h);function a(i){return i&&i.__esModule?i:{default:i}}(function(){"use strict";var i,t,o,e,l,r,s,c,d=function(S,E){return function(){return S.apply(E,arguments)}},g=function(S,E){for(var C in E)v.call(E,C)&&(S[C]=E[C]);function _(){this.constructor=S}return _.prototype=E.prototype,S.prototype=new _,S.__super__=E.prototype,S},v={}.hasOwnProperty;s=k("sax"),o=k("events"),i=k("./bom"),r=k("./processors"),c=k("timers").setImmediate,t=k("./defaults").defaults,e=function(S){return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&S!=null&&(0,f.default)(S).length===0},l=function(S,E,C){var _,T,w;for(_=0,T=S.length;_<T;_++)w=S[_],E=w(E,C);return E},n.Parser=function(b){g(S,b);function S(E){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var C,_,T;if(!(this instanceof n.Parser))return new n.Parser(E);this.options={},_=t["0.2"];for(C in _){if(!v.call(_,C))continue;T=_[C],this.options[C]=T}for(C in E){if(!v.call(E,C))continue;T=E[C],this.options[C]=T}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(r.normalize)),this.reset()}return S.prototype.processAsync=function(){var E,C;try{return this.remaining.length<=this.options.chunkSize?(E=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(E),this.saxParser.close()):(E=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(E),c(this.processAsync))}catch(_){if(C=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(C)}},S.prototype.assignOrPush=function(E,C,_){return C in E?(E[C]instanceof Array||(E[C]=[E[C]]),E[C].push(_)):this.options.explicitArray?E[C]=[_]:E[C]=_},S.prototype.reset=function(){var E,C,_,T;return this.removeAllListeners(),this.saxParser=s.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(w){return function(O){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",O)}}(this),this.saxParser.onend=function(w){return function(){if(!w.saxParser.ended)return w.saxParser.ended=!0,w.emit("end",w.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],E=this.options.attrkey,C=this.options.charkey,this.saxParser.onopentag=function(w){return function(O){var I,R,M,F,P;if(M={},M[C]="",!w.options.ignoreAttrs){P=O.attributes;for(I in P){if(!v.call(P,I))continue;!(E in M)&&!w.options.mergeAttrs&&(M[E]={}),R=w.options.attrValueProcessors?l(w.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],F=w.options.attrNameProcessors?l(w.options.attrNameProcessors,I):I,w.options.mergeAttrs?w.assignOrPush(M,F,R):M[E][F]=R}}return M["#name"]=w.options.tagNameProcessors?l(w.options.tagNameProcessors,O.name):O.name,w.options.xmlns&&(M[w.options.xmlnskey]={uri:O.uri,local:O.local}),T.push(M)}}(this),this.saxParser.onclosetag=function(w){return function(){var O,I,R,M,F,P,X,B,j,W;if(P=T.pop(),F=P["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete P["#name"],P.cdata===!0&&(O=P.cdata,delete P.cdata),j=T[T.length-1],P[C].match(/^\s*$/)&&!O?(I=P[C],delete P[C]):(w.options.trim&&(P[C]=P[C].trim()),w.options.normalize&&(P[C]=P[C].replace(/\s{2,}/g," ").trim()),P[C]=w.options.valueProcessors?l(w.options.valueProcessors,P[C],F):P[C],(0,f.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])),e(P)&&(P=w.options.emptyTag!==""?w.options.emptyTag:I),w.options.validator!=null&&(W="/"+function(){var z,V,Q;for(Q=[],z=0,V=T.length;z<V;z++)M=T[z],Q.push(M["#name"]);return Q}().concat(F).join("/"),function(){var z;try{return P=w.options.validator(W,j&&j[F],P)}catch(V){return z=V,w.emit("error",z)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof P=="undefined"?"undefined":(0,u.default)(P))==="object"){if(!w.options.preserveChildrenOrder)M={},w.options.attrkey in P&&(M[w.options.attrkey]=P[w.options.attrkey],delete P[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in P&&(M[w.options.charkey]=P[w.options.charkey],delete P[w.options.charkey]),(0,A.default)(P).length>0&&(M[w.options.childkey]=P),P=M;else if(j){j[w.options.childkey]=j[w.options.childkey]||[],X={};for(R in P){if(!v.call(P,R))continue;X[R]=P[R]}j[w.options.childkey].push(X),delete P["#name"],(0,f.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])}}return T.length>0?w.assignOrPush(j,F,P):(w.options.explicitRoot&&(B=P,P={},P[F]=B),w.resultObject=P,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),_=function(w){return function(O){var I,R;if(R=T[T.length-1],R)return R[C]+=O,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(R[w.options.childkey]=R[w.options.childkey]||[],I={"#name":"__text__"},I[C]=O,w.options.normalize&&(I[C]=I[C].replace(/\s{2,}/g," ").trim()),R[w.options.childkey].push(I)),R}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(w){return function(O){var I;if(I=_(O),I)return I.cdata=!0}}(this)},S.prototype.parseString=function(E,C){var _;C!=null&&typeof C=="function"&&(this.on("end",function(T){return this.reset(),C(null,T)}),this.on("error",function(T){return this.reset(),C(T)}));try{return E=E.toString(),E.trim()===""?(this.emit("end",null),!0):(E=i.stripBOM(E),this.options.async?(this.remaining=E,c(this.processAsync),this.saxParser):this.saxParser.write(E).close())}catch(T){if(_=T,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},S.prototype.parseStringPromise=function(E){return new p.default(function(C){return function(_,T){return C.parseString(E,function(w,O){return w?T(w):_(O)})}}(this))},S}(o),n.parseString=function(b,S,E){var C,_,T;return E!=null?(typeof E=="function"&&(C=E),(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(_=S)):(typeof S=="function"&&(C=S),_={}),T=new n.Parser(_),T.parseString(b,C)},n.parseStringPromise=function(b,S){var E,C;return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(E=S),C=new n.Parser(E),C.parseStringPromise(b)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(k,D,n){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),n.normalize=function(p){return p.toLowerCase()},n.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},n.stripPrefix=function(p){return p.replace(y,"")},n.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},n.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(void 0)},{}],249:[function(k,D,n){"use strict";(function(){"use strict";var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;p=k("./defaults"),y=k("./builder"),x=k("./parser"),A=k("./processors"),n.defaults=p.defaults,n.processors=A,n.ValidationError=function(h){m(u,h);function u(a){this.message=a}return u}(Error),n.Builder=y.Builder,n.Parser=x.Parser,n.parseString=x.parseString,n.parseStringPromise=x.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,D,n){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,D,n){"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,n){"use strict";var y=k("babel-runtime/core-js/object/get-prototype-of"),p=h(y),x=k("babel-runtime/helpers/typeof"),A=h(x),m=k("babel-runtime/core-js/object/assign"),f=h(m);function h(u){return u&&u.__esModule?u:{default:u}}(function(){var u,a,i,t,o,e,l,r=[].slice,s={}.hasOwnProperty;u=function(){var d,g,v,b,S,E;if(E=arguments[0],S=2<=arguments.length?r.call(arguments,1):[],o(f.default))f.default.apply(null,arguments);else for(d=0,v=S.length;d<v;d++)if(b=S[d],b!=null)for(g in b){if(!s.call(b,g))continue;E[g]=b[g]}return E},o=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},e=function(d){var g;return!!d&&((g=typeof d=="undefined"?"undefined":(0,A.default)(d))==="function"||g==="object")},i=function(d){return o(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},t=function(d){var g;if(i(d))return!d.length;for(g in d){if(!s.call(d,g))continue;return!1}return!0},l=function(d){var g,v;return e(d)&&(v=(0,p.default)(d))&&(g=v.constructor)&&typeof g=="function"&&g instanceof g&&Function.prototype.toString.call(g)===Function.prototype.toString.call(Object)},a=function(d){return o(d.valueOf)?d.valueOf():d},D.exports.assign=u,D.exports.isFunction=o,D.exports.isObject=e,D.exports.isArray=i,D.exports.isEmpty=t,D.exports.isPlainObject=l,D.exports.getValue=a}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(k,D,n){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f;A=k("./NodeType"),f=k("./XMLNode"),D.exports=m=function(){function h(u,a,i){if(this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(i),this.type=A.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(h.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(h.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(h.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(h.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(h.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(h.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"specified",{get:function(){return!0}}),h.prototype.clone=function(){return(0,p.default)(this)},h.prototype.toString=function(u){return this.options.writer.attribute(this,this.options.writer.filterOptions(u))},h.prototype.debugInfo=function(u){return u=u||this.name,u==null?"parent: <"+this.parent.name+">":"attribute: {"+u+"}, parent: <"+this.parent.name+">"},h.prototype.isEqualNode=function(u){return u.namespaceURI!==this.namespaceURI||(u.prefix!==this.prefix||u.localName!==this.localName)?!1:!(u.value!==this.value)},h}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),f=k("./XMLCharacterData"),D.exports=m=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=A.CData,this.value=this.stringify.cdata(o)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f=function(a,i){for(var t in i)h.call(i,t)&&(a[t]=i[t]);function o(){this.constructor=a}return o.prototype=i.prototype,a.prototype=new o,a.__super__=i.prototype,a},h={}.hasOwnProperty;m=k("./XMLNode"),D.exports=A=function(u){f(a,u);function a(i){a.__super__.constructor.call(this,i),this.value=""}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),a.prototype.clone=function(){return(0,p.default)(this)},a.prototype.substringData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.insertData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.deleteData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceData=function(i,t,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(i){return a.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.data!==this.data):!1},a}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=A.Comment,this.value=this.stringify.comment(o)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),x=k("babel-runtime/core-js/object/create"),A=m(x);function m(f){return f&&f.__esModule?f:{default:f}}(function(){var f,h,u;h=k("./XMLDOMErrorHandler"),u=k("./XMLDOMStringList"),D.exports=f=function(){function a(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new h,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=(0,A.default)(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new u((0,p.default)(this.defaultParams))}}),a.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},a.prototype.canSetParameter=function(i,t){return!0},a.prototype.setParameter=function(i,t){return t!=null?this.params[i]=t:delete this.params[i]},a}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.handleError=function(x){throw new Error(x)},p}()}).call(void 0)},{}],260:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.hasFeature=function(x,A){return!0},p.prototype.createDocumentType=function(x,A,m){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(x,A,m){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(x){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(x,A){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{}],261:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(x){this.arr=x||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(x){return this.arr[x]||null},p.prototype.contains=function(x){return this.arr.indexOf(x)!==-1},p}()}).call(void 0)},{}],262:[function(k,D,n){"use strict";(function(){var y,p,x,A=function(h,u){for(var a in u)m.call(u,a)&&(h[a]=u[a]);function i(){this.constructor=h}return i.prototype=u.prototype,h.prototype=new i,h.__super__=u.prototype,h},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(h,f);function h(u,a,i,t,o,e){if(h.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(i==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(o.indexOf("#")!==0&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(e&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.name(a),this.type=y.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=o}return h.prototype.toString=function(u){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(u))},h}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,D,n){"use strict";(function(){var y,p,x,A=function(h,u){for(var a in u)m.call(u,a)&&(h[a]=u[a]);function i(){this.constructor=h}return i.prototype=u.prototype,h.prototype=new i,h.__super__=u.prototype,h},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(h,f);function h(u,a,i){if(h.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(a),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return h.prototype.toString=function(u){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(u))},h}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,D,n){"use strict";(function(){var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;A=k("./Utility").isObject,x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(h){m(u,h);function u(a,i,t,o){if(u.__super__.constructor.call(this,a),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(o==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!i,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!A(o))this.value=this.stringify.dtdEntityValue(o),this.internal=!0;else{if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID)),o.nData!=null&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(t))}}return Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return null}}),u.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,D,n){"use strict";(function(){var y,p,x,A=function(h,u){for(var a in u)m.call(u,a)&&(h[a]=u[a]);function i(){this.constructor=h}return i.prototype=u.prototype,h.prototype=new i,h.__super__=u.prototype,h},m={}.hasOwnProperty;x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(h,f);function h(u,a,i){if(h.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=y.NotationDeclaration,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),h.prototype.toString=function(u){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(u))},h}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,D,n){"use strict";(function(){var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;A=k("./Utility").isObject,x=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(h){m(u,h);function u(a,i,t,o){var e;u.__super__.constructor.call(this,a),A(i)&&(e=i,i=e.version,t=e.encoding,o=e.standalone),i||(i="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(i),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),o!=null&&(this.standalone=this.stringify.xmlStandalone(o))}return u.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i=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;a=k("./Utility").isObject,u=k("./XMLNode"),y=k("./NodeType"),p=k("./XMLDTDAttList"),A=k("./XMLDTDEntity"),x=k("./XMLDTDElement"),m=k("./XMLDTDNotation"),h=k("./XMLNamedNodeMap"),D.exports=f=function(o){i(e,o);function e(l,r,s){var c,d,g,v,b,S;if(e.__super__.constructor.call(this,l),this.type=y.DocType,l.children){for(v=l.children,d=0,g=v.length;d<g;d++)if(c=v[d],c.type===y.Element){this.name=c.name;break}}this.documentObject=l,a(r)&&(b=r,r=b.pubID,s=b.sysID),s==null&&(S=[r,s],s=S[0],r=S[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,d,g;for(d={},g=this.children,s=0,c=g.length;s<c;s++)r=g[s],r.type===y.EntityDeclaration&&!r.pe&&(d[r.name]=r);return new h(d)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var r,s,c,d,g;for(d={},g=this.children,s=0,c=g.length;s<c;s++)r=g[s],r.type===y.NotationDeclaration&&(d[r.name]=r);return new h(d)}}),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 x(this,l,r),this.children.push(s),this},e.prototype.attList=function(l,r,s,c,d){var g;return g=new p(this,l,r,s,c,d),this.children.push(g),this},e.prototype.entity=function(l,r){var s;return s=new A(this,!1,l,r),this.children.push(s),this},e.prototype.pEntity=function(l,r){var s;return s=new A(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,d){return this.attList(l,r,s,c,d)},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,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a=function(o,e){for(var l in e)i.call(e,l)&&(o[l]=e[l]);function r(){this.constructor=o}return r.prototype=e.prototype,o.prototype=new r,o.__super__=e.prototype,o},i={}.hasOwnProperty;u=k("./Utility").isPlainObject,x=k("./XMLDOMImplementation"),p=k("./XMLDOMConfiguration"),m=k("./XMLNode"),y=k("./NodeType"),h=k("./XMLStringifier"),f=k("./XMLStringWriter"),D.exports=A=function(t){a(o,t);function o(e){o.__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 h(e)}return Object.defineProperty(o.prototype,"implementation",{value:new x}),Object.defineProperty(o.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(o.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(o.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(o.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(o.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(o.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(o.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(o.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(o.prototype,"origin",{get:function(){return null}}),Object.defineProperty(o.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(o.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(o.prototype,"contentType",{get:function(){return null}}),o.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))},o.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},o.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.renameNode=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createNodeIterator=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.createTreeWalker=function(e,l,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i,t,o,e,l,r,s,c,d,g,v,b,S,E,C,_={}.hasOwnProperty;C=k("./Utility"),S=C.isObject,b=C.isFunction,E=C.isPlainObject,v=C.getValue,y=k("./NodeType"),o=k("./XMLDocument"),l=k("./XMLElement"),A=k("./XMLCData"),m=k("./XMLComment"),s=k("./XMLRaw"),g=k("./XMLText"),r=k("./XMLProcessingInstruction"),i=k("./XMLDeclaration"),t=k("./XMLDocType"),f=k("./XMLDTDAttList"),u=k("./XMLDTDEntity"),h=k("./XMLDTDElement"),a=k("./XMLDTDNotation"),x=k("./XMLAttribute"),d=k("./XMLStringifier"),c=k("./XMLStringWriter"),p=k("./WriterState"),D.exports=e=function(){function T(w,O,I){var R;this.name="?xml",this.type=y.Document,w||(w={}),R={},w.writer?E(w.writer)&&(R=w.writer,w.writer=new c):w.writer=new c,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(R),this.stringify=new d(w),this.onDataCallback=O||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return T.prototype.createChildNode=function(w){var O,I,R,M,F,P,X,B;switch(w.type){case y.CData:this.cdata(w.value);break;case y.Comment:this.comment(w.value);break;case y.Element:R={},X=w.attribs;for(I in X){if(!_.call(X,I))continue;O=X[I],R[I]=O.value}this.node(w.name,R);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(w.value);break;case y.Text:this.text(w.value);break;case y.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(B=w.children,F=0,P=B.length;F<P;F++)M=B[F],this.createChildNode(M),M.type===y.Element&&this.up();return this},T.prototype.dummy=function(){return this},T.prototype.node=function(w,O,I){var R;if(w==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(w));return this.openCurrent(),w=v(w),O==null&&(O={}),O=v(O),S(O)||(R=[O,I],I=R[0],O=R[1]),this.currentNode=new l(this,w,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},T.prototype.element=function(w,O,I){var R,M,F,P,X,B;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||S(w)||b(w))for(P=this.options.noValidation,this.options.noValidation=!0,B=new o(this.options).element("TEMP_ROOT"),B.element(w),this.options.noValidation=P,X=B.children,M=0,F=X.length;M<F;M++)R=X[M],this.createChildNode(R),R.type===y.Element&&this.up();else this.node(w,O,I);return this},T.prototype.attribute=function(w,O){var I,R;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(w));if(w!=null&&(w=v(w)),S(w))for(I in w){if(!_.call(w,I))continue;R=w[I],this.attribute(I,R)}else b(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[w]=new x(this,w,""):O!=null&&(this.currentNode.attribs[w]=new x(this,w,O));return this},T.prototype.text=function(w){var O;return this.openCurrent(),O=new g(this,w),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.cdata=function(w){var O;return this.openCurrent(),O=new A(this,w),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.comment=function(w){var O;return this.openCurrent(),O=new m(this,w),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.raw=function(w){var O;return this.openCurrent(),O=new s(this,w),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.instruction=function(w,O){var I,R,M,F,P;if(this.openCurrent(),w!=null&&(w=v(w)),O!=null&&(O=v(O)),Array.isArray(w))for(I=0,F=w.length;I<F;I++)R=w[I],this.instruction(R);else if(S(w))for(R in w){if(!_.call(w,R))continue;M=w[R],this.instruction(R,M)}else b(O)&&(O=O.apply()),P=new r(this,w,O),this.onData(this.writer.processingInstruction(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},T.prototype.declaration=function(w,O,I){var R;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return R=new i(this,w,O,I),this.onData(this.writer.declaration(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.doctype=function(w,O,I){if(this.openCurrent(),w==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new t(this,O,I),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},T.prototype.dtdElement=function(w,O){var I;return this.openCurrent(),I=new h(this,w,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.attList=function(w,O,I,R,M){var F;return this.openCurrent(),F=new f(this,w,O,I,R,M),this.onData(this.writer.dtdAttList(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.entity=function(w,O){var I;return this.openCurrent(),I=new u(this,!1,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.pEntity=function(w,O){var I;return this.openCurrent(),I=new u(this,!0,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.notation=function(w,O){var I;return this.openCurrent(),I=new a(this,w,O),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},T.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},T.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},T.prototype.openNode=function(w){var O,I,R,M;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===y.Element&&(this.root=w),I="",w.type===y.Element){this.writerOptions.state=p.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,M=w.attribs;for(R in M){if(!_.call(M,R))continue;O=M[R],I+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}I+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children?(I+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,I+=">"),I+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),w.isOpen=!0}},T.prototype.closeNode=function(w){var O;if(!w.isClosed)return O="",this.writerOptions.state=p.CloseTag,w.type===y.Element?O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(O,this.currentLevel),w.isClosed=!0},T.prototype.onData=function(w,O){return this.documentStarted=!0,this.onDataCallback(w,O+1)},T.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},T.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},T.prototype.ele=function(){return this.element.apply(this,arguments)},T.prototype.nod=function(w,O,I){return this.node(w,O,I)},T.prototype.txt=function(w){return this.text(w)},T.prototype.dat=function(w){return this.cdata(w)},T.prototype.com=function(w){return this.comment(w)},T.prototype.ins=function(w,O){return this.instruction(w,O)},T.prototype.dec=function(w,O,I){return this.declaration(w,O,I)},T.prototype.dtd=function(w,O,I){return this.doctype(w,O,I)},T.prototype.e=function(w,O,I){return this.element(w,O,I)},T.prototype.n=function(w,O,I){return this.node(w,O,I)},T.prototype.t=function(w){return this.text(w)},T.prototype.d=function(w){return this.cdata(w)},T.prototype.c=function(w){return this.comment(w)},T.prototype.r=function(w){return this.raw(w)},T.prototype.i=function(w,O){return this.instruction(w,O)},T.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.ent=function(w,O){return this.entity(w,O)},T.prototype.pent=function(w,O){return this.pEntity(w,O)},T.prototype.not=function(w,O){return this.notation(w,O)},T}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;f=k("./XMLNode"),A=k("./NodeType"),D.exports=m=function(a){h(i,a);function i(t){i.__super__.constructor.call(this,t),this.type=A.Dummy}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return""},i}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h,u,a,i,t,o,e=function(s,c){for(var d in c)l.call(c,d)&&(s[d]=c[d]);function g(){this.constructor=s}return g.prototype=c.prototype,s.prototype=new g,s.__super__=c.prototype,s},l={}.hasOwnProperty;o=k("./Utility"),t=o.isObject,i=o.isFunction,a=o.getValue,u=k("./XMLNode"),A=k("./NodeType"),m=k("./XMLAttribute"),h=k("./XMLNamedNodeMap"),D.exports=f=function(r){e(s,r);function s(c,d,g){var v,b,S,E;if(s.__super__.constructor.call(this,c),d==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=A.Element,this.attribs={},this.schemaTypeInfo=null,g!=null&&this.attribute(g),c.type===A.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(E=c.children,b=0,S=E.length;b<S;b++)if(v=E[b],v.type===A.DocType){v.name=this.name;break}}}return Object.defineProperty(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 h(this.attribs)),this.attributeMap}}),s.prototype.clone=function(){var c,d,g,v;g=(0,p.default)(this),g.isRoot&&(g.documentObject=null),g.attribs={},v=this.attribs;for(d in v){if(!l.call(v,d))continue;c=v[d],g.attribs[d]=c.clone()}return g.children=[],this.children.forEach(function(b){var S;return S=b.clone(),S.parent=g,g.children.push(S)}),g},s.prototype.attribute=function(c,d){var g,v;if(c!=null&&(c=a(c)),t(c))for(g in c){if(!l.call(c,g))continue;v=c[g],this.attribute(g,v)}else i(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[c]=new m(this,c,""):d!=null&&(this.attribs[c]=new m(this,c,d));return this},s.prototype.removeAttribute=function(c){var d,g,v;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=a(c),Array.isArray(c))for(g=0,v=c.length;g<v;g++)d=c[g],delete this.attribs[d];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,d){return this.attribute(c,d)},s.prototype.a=function(c,d){return this.attribute(c,d)},s.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},s.prototype.setAttribute=function(c,d){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,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setAttributeNS=function(c,d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.removeAttributeNS=function(c,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getAttributeNodeNS=function(c,d){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,d){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,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttribute=function(c,d){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:d},s.prototype.setIdAttributeNS=function(c,d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.setIdAttributeNode=function(c,d){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,d){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 d,g,v;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(d=g=0,v=this.attribs.length-1;0<=v?g<=v:g>=v;d=0<=v?++g:--g)if(!this.attribs[d].isEqualNode(c.attribs[d]))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,n){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A;D.exports=A=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 h;return h=this.nodes[f.nodeName],this.nodes[f.nodeName]=f,h||null},m.prototype.removeNamedItem=function(f){var h;return h=this.nodes[f],delete this.nodes[f],h||null},m.prototype.item=function(f){return this.nodes[(0,p.default)(this.nodes)[f]]||null},m.prototype.getNamedItemNS=function(f,h){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,h){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i,t,o,e,l,r,s,c,d,g,v={}.hasOwnProperty;g=k("./Utility"),d=g.isObject,c=g.isFunction,s=g.isEmpty,r=g.getValue,u=null,x=null,A=null,m=null,f=null,e=null,l=null,o=null,h=null,p=null,t=null,a=null,y=null,D.exports=i=function(){function b(S){this.parent=S,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=k("./XMLElement"),x=k("./XMLCData"),A=k("./XMLComment"),m=k("./XMLDeclaration"),f=k("./XMLDocType"),e=k("./XMLRaw"),l=k("./XMLText"),o=k("./XMLProcessingInstruction"),h=k("./XMLDummy"),p=k("./NodeType"),t=k("./XMLNodeList"),a=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 E;return E=this.parent.children.indexOf(this),this.parent.children[E-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var E,C,_,T,w;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(w="",T=this.children,C=0,_=T.length;C<_;C++)E=T[C],E.textContent&&(w+=E.textContent);return w}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(S){var E,C,_,T,w;for(this.parent=S,S&&(this.options=S.options,this.stringify=S.stringify),T=this.children,w=[],C=0,_=T.length;C<_;C++)E=T[C],w.push(E.setParent(this));return w},b.prototype.element=function(S,E,C){var _,T,w,O,I,R,M,F,P,X,B;if(R=null,E===null&&C==null&&(P=[{},null],E=P[0],C=P[1]),E==null&&(E={}),E=r(E),d(E)||(X=[E,C],C=X[0],E=X[1]),S!=null&&(S=r(S)),Array.isArray(S))for(w=0,M=S.length;w<M;w++)T=S[w],R=this.element(T);else if(c(S))R=this.element(S.apply());else if(d(S))for(I in S){if(!v.call(S,I))continue;if(B=S[I],c(B)&&(B=B.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)R=this.attribute(I.substr(this.stringify.convertAttKey.length),B);else if(!this.options.separateArrayItems&&Array.isArray(B)&&s(B))R=this.dummy();else if(d(B)&&s(B))R=this.element(I);else if(!this.options.keepNullNodes&&B==null)R=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(B))for(O=0,F=B.length;O<F;O++)T=B[O],_={},_[I]=T,R=this.element(_);else d(B)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?R=this.element(B):(R=this.element(I),R.element(B)):R=this.element(I,B)}else!this.options.keepNullNodes&&C===null?R=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?R=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&S.indexOf(this.stringify.convertCDataKey)===0?R=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&S.indexOf(this.stringify.convertCommentKey)===0?R=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&S.indexOf(this.stringify.convertRawKey)===0?R=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&S.indexOf(this.stringify.convertPIKey)===0?R=this.instruction(S.substr(this.stringify.convertPIKey.length),C):R=this.node(S,E,C);if(R==null)throw new Error("Could not create any elements with: "+S+". "+this.debugInfo());return R},b.prototype.insertBefore=function(S,E,C){var _,T,w,O,I;if(S!=null?S.type:void 0)return w=S,O=E,w.setParent(this),O?(T=children.indexOf(O),I=children.splice(T),children.push(w),Array.prototype.push.apply(children,I)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),I=this.parent.children.splice(T),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,I),_},b.prototype.insertAfter=function(S,E,C){var _,T,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T+1),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,w),_},b.prototype.remove=function(){var S,E;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return S=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[S,S-S+1].concat(E=[])),this.parent},b.prototype.node=function(S,E,C){var _,T;return S!=null&&(S=r(S)),E||(E={}),E=r(E),d(E)||(T=[E,C],C=T[0],E=T[1]),_=new u(this,S,E),C!=null&&_.text(C),this.children.push(_),_},b.prototype.text=function(S){var E;return d(S)&&this.element(S),E=new l(this,S),this.children.push(E),this},b.prototype.cdata=function(S){var E;return E=new x(this,S),this.children.push(E),this},b.prototype.comment=function(S){var E;return E=new A(this,S),this.children.push(E),this},b.prototype.commentBefore=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C+1),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(S){var E;return E=new e(this,S),this.children.push(E),this},b.prototype.dummy=function(){var S;return S=new h(this),S},b.prototype.instruction=function(S,E){var C,_,T,w,O;if(S!=null&&(S=r(S)),E!=null&&(E=r(E)),Array.isArray(S))for(w=0,O=S.length;w<O;w++)C=S[w],this.instruction(C);else if(d(S))for(C in S){if(!v.call(S,C))continue;_=S[C],this.instruction(C,_)}else c(E)&&(E=E.apply()),T=new o(this,S,E),this.children.push(T);return this},b.prototype.instructionBefore=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.instructionAfter=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_+1),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.declaration=function(S,E,C){var _,T;return _=this.document(),T=new m(_,S,E,C),_.children.length===0?_.children.unshift(T):_.children[0].type===p.Declaration?_.children[0]=T:_.children.unshift(T),_.root()||_},b.prototype.dtd=function(S,E){var C,_,T,w,O,I,R,M,F,P;for(_=this.document(),T=new f(_,S,E),F=_.children,w=O=0,R=F.length;O<R;w=++O)if(C=F[w],C.type===p.DocType)return _.children[w]=T,T;for(P=_.children,w=I=0,M=P.length;I<M;w=++I)if(C=P[w],C.isRoot)return _.children.splice(w,0,T),T;return _.children.push(T),T},b.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},b.prototype.root=function(){var S;for(S=this;S;){if(S.type===p.Document)return S.rootObject;if(S.isRoot)return S;S=S.parent}},b.prototype.document=function(){var S;for(S=this;S;){if(S.type===p.Document)return S;S=S.parent}},b.prototype.end=function(S){return this.document().end(S)},b.prototype.prev=function(){var S;if(S=this.parent.children.indexOf(this),S<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[S-1]},b.prototype.next=function(){var S;if(S=this.parent.children.indexOf(this),S===-1||S===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[S+1]},b.prototype.importDocument=function(S){var E;return E=S.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},b.prototype.debugInfo=function(S){var E,C;return S=S||this.name,S==null&&!((E=this.parent)!=null?E.name:void 0)?"":S==null?"parent: <"+this.parent.name+">":((C=this.parent)!=null?C.name:void 0)?"node: <"+S+">, parent: <"+this.parent.name+">":"node: <"+S+">"},b.prototype.ele=function(S,E,C){return this.element(S,E,C)},b.prototype.nod=function(S,E,C){return this.node(S,E,C)},b.prototype.txt=function(S){return this.text(S)},b.prototype.dat=function(S){return this.cdata(S)},b.prototype.com=function(S){return this.comment(S)},b.prototype.ins=function(S,E){return this.instruction(S,E)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(S,E,C){return this.declaration(S,E,C)},b.prototype.e=function(S,E,C){return this.element(S,E,C)},b.prototype.n=function(S,E,C){return this.node(S,E,C)},b.prototype.t=function(S){return this.text(S)},b.prototype.d=function(S){return this.cdata(S)},b.prototype.c=function(S){return this.comment(S)},b.prototype.r=function(S){return this.raw(S)},b.prototype.i=function(S,E){return this.instruction(S,E)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(S){return this.importDocument(S)},b.prototype.replaceChild=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isSupported=function(S,E){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(S){var E,C;return E=this,E===S?0:this.document()!==S.document()?(C=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?C|=y.Preceding:C|=y.Following,C):E.isAncestor(S)?y.Contains|y.Preceding:E.isDescendant(S)?y.Contains|y.Following:E.isPreceding(S)?y.Preceding:y.Following},b.prototype.isSameNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(S){var E,C,_;if(S.nodeType!==this.nodeType)return!1;if(S.children.length!==this.children.length)return!1;for(E=C=0,_=this.children.length-1;0<=_?C<=_:C>=_;E=0<=_?++C:--C)if(!this.children[E].isEqualNode(S.children[E]))return!1;return!0},b.prototype.getFeature=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(S,E,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(S){return S?S===this||this.isDescendant(S):!1},b.prototype.isDescendant=function(S){var E,C,_,T,w;for(w=this.children,_=0,T=w.length;_<T;_++){if(E=w[_],S===E)return!0;if(C=E.isDescendant(S),C)return!0}return!1},b.prototype.isAncestor=function(S){return S.isDescendant(this)},b.prototype.isPreceding=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E<C},b.prototype.isFollowing=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E>C},b.prototype.treePosition=function(S){var E,C;return C=0,E=!1,this.foreachTreeNode(this.document(),function(_){if(C++,!E&&_===S)return E=!0}),E?C:-1},b.prototype.foreachTreeNode=function(S,E){var C,_,T,w,O;for(S||(S=this.document()),w=S.children,_=0,T=w.length;_<T;_++){if(C=w[_],O=E(C))return O;if(O=this.foreachTreeNode(C,E),O)return O}},b}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(k,D,n){"use strict";(function(){var y;D.exports=y=function(){function p(x){this.nodes=x}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(x){return this.nodes[x]||null},p}()}).call(void 0)},{}],275:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(a){h(i,a);function i(t,o,e){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=A.ProcessingInstruction,this.target=this.stringify.insTarget(o),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLNode"),D.exports=f=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=A.Raw,this.value=this.stringify.raw(o)}return i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,D,n){"use strict";(function(){var y,p,x,A,m=function(u,a){for(var i in a)f.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},f={}.hasOwnProperty;y=k("./NodeType"),A=k("./XMLWriterBase"),p=k("./WriterState"),D.exports=x=function(h){m(u,h);function u(a,i){this.stream=a,u.__super__.constructor.call(this,i)}return u.prototype.endline=function(a,i,t){return a.isLastRootNode&&i.state===p.CloseTag?"":u.__super__.endline.call(this,a,i,t)},u.prototype.document=function(a,i){var t,o,e,l,r,s,c,d,g;for(c=a.children,o=e=0,r=c.length;e<r;o=++e)t=c[o],t.isLastRootNode=o===a.children.length-1;for(i=this.filterOptions(i),d=a.children,g=[],l=0,s=d.length;l<s;l++)t=d[l],g.push(this.writeChildNode(t,i,0));return g},u.prototype.attribute=function(a,i,t){return this.stream.write(u.__super__.attribute.call(this,a,i,t))},u.prototype.cdata=function(a,i,t){return this.stream.write(u.__super__.cdata.call(this,a,i,t))},u.prototype.comment=function(a,i,t){return this.stream.write(u.__super__.comment.call(this,a,i,t))},u.prototype.declaration=function(a,i,t){return this.stream.write(u.__super__.declaration.call(this,a,i,t))},u.prototype.docType=function(a,i,t){var o,e,l,r;if(t||(t=0),this.openNode(a,i,t),i.state=p.OpenTag,this.stream.write(this.indent(a,i,t)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,i,t)),i.state=p.InsideTag,r=a.children,e=0,l=r.length;e<l;e++)o=r[e],this.writeChildNode(o,i,t+1);i.state=p.CloseTag,this.stream.write("]")}return i.state=p.CloseTag,this.stream.write(i.spaceBeforeSlash+">"),this.stream.write(this.endline(a,i,t)),i.state=p.None,this.closeNode(a,i,t)},u.prototype.element=function(a,i,t){var o,e,l,r,s,c,d,g,v,b;t||(t=0),this.openNode(a,i,t),i.state=p.OpenTag,this.stream.write(this.indent(a,i,t)+"<"+a.name),v=a.attribs;for(d in v){if(!f.call(v,d))continue;o=v[d],this.attribute(o,i,t)}if(l=a.children.length,r=l===0?null:a.children[0],l===0||a.children.every(function(S){return(S.type===y.Text||S.type===y.Raw)&&S.value===""}))i.allowEmpty?(this.stream.write(">"),i.state=p.CloseTag,this.stream.write("</"+a.name+">")):(i.state=p.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&l===1&&(r.type===y.Text||r.type===y.Raw)&&r.value!=null)this.stream.write(">"),i.state=p.InsideTag,i.suppressPrettyCount++,g=!0,this.writeChildNode(r,i,t+1),i.suppressPrettyCount--,g=!1,i.state=p.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,i,t)),i.state=p.InsideTag,b=a.children,s=0,c=b.length;s<c;s++)e=b[s],this.writeChildNode(e,i,t+1);i.state=p.CloseTag,this.stream.write(this.indent(a,i,t)+"</"+a.name+">")}return this.stream.write(this.endline(a,i,t)),i.state=p.None,this.closeNode(a,i,t)},u.prototype.processingInstruction=function(a,i,t){return this.stream.write(u.__super__.processingInstruction.call(this,a,i,t))},u.prototype.raw=function(a,i,t){return this.stream.write(u.__super__.raw.call(this,a,i,t))},u.prototype.text=function(a,i,t){return this.stream.write(u.__super__.text.call(this,a,i,t))},u.prototype.dtdAttList=function(a,i,t){return this.stream.write(u.__super__.dtdAttList.call(this,a,i,t))},u.prototype.dtdElement=function(a,i,t){return this.stream.write(u.__super__.dtdElement.call(this,a,i,t))},u.prototype.dtdEntity=function(a,i,t){return this.stream.write(u.__super__.dtdEntity.call(this,a,i,t))},u.prototype.dtdNotation=function(a,i,t){return this.stream.write(u.__super__.dtdNotation.call(this,a,i,t))},u}(A)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,D,n){"use strict";(function(){var y,p,x=function(f,h){for(var u in h)A.call(h,u)&&(f[u]=h[u]);function a(){this.constructor=f}return a.prototype=h.prototype,f.prototype=new a,f.__super__=h.prototype,f},A={}.hasOwnProperty;p=k("./XMLWriterBase"),D.exports=y=function(m){x(f,m);function f(h){f.__super__.constructor.call(this,h)}return f.prototype.document=function(h,u){var a,i,t,o,e;for(u=this.filterOptions(u),o="",e=h.children,i=0,t=e.length;i<t;i++)a=e[i],o+=this.writeChildNode(a,u,0);return u.pretty&&o.slice(-u.newline.length)===u.newline&&(o=o.slice(0,-u.newline.length)),o},f}(p)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,D,n){"use strict";(function(){var y,p=function(m,f){return function(){return m.apply(f,arguments)}},x={}.hasOwnProperty;D.exports=y=function(){function A(m){this.assertLegalName=p(this.assertLegalName,this),this.assertLegalChar=p(this.assertLegalChar,this);var f,h,u;m||(m={}),this.options=m,this.options.version||(this.options.version="1.0"),h=m.stringify||{};for(f in h){if(!x.call(h,f))continue;u=h[f],this[f]=u}}return A.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},A.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},A.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},A.prototype.comment=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+m);return this.assertLegalChar(m)},A.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},A.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},A.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.insValue=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/\?>/))throw new Error("Invalid processing instruction value: "+m);return this.assertLegalChar(m)},A.prototype.xmlVersion=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+m);return m},A.prototype.xmlEncoding=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+m);return this.assertLegalChar(m)},A.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},A.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.convertAttKey="@",A.prototype.convertPIKey="?",A.prototype.convertTextKey="#text",A.prototype.convertCDataKey="#cdata",A.prototype.convertCommentKey="#comment",A.prototype.convertRawKey="#raw",A.prototype.assertLegalChar=function(m){var f,h;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]/,h=m.match(f))throw new Error("Invalid character in string: "+m+" at index "+h.index)}else if(this.options.version==="1.1"&&(f=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=m.match(f)))throw new Error("Invalid character in string: "+m+" at index "+h.index);return m},A.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},A.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;"))},A.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;"))},A}()}).call(void 0)},{}],280:[function(k,D,n){"use strict";var y=k("babel-runtime/core-js/object/create"),p=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,h=function(i,t){for(var o in t)u.call(t,o)&&(i[o]=t[o]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(a){h(i,a);function i(t,o){if(i.__super__.constructor.call(this,t),o==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=A.Text,this.value=this.stringify.text(o)}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var o,e,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,o=this.nextSibling;o;)l=l+o.data,o=o.nextSibling;return l}}),i.prototype.clone=function(){return(0,p.default)(this)},i.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},i.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i,t,o,e,l,r,s,c,d={}.hasOwnProperty;c=k("./Utility").assign,y=k("./NodeType"),a=k("./XMLDeclaration"),i=k("./XMLDocType"),x=k("./XMLCData"),A=k("./XMLComment"),o=k("./XMLElement"),l=k("./XMLRaw"),r=k("./XMLText"),e=k("./XMLProcessingInstruction"),t=k("./XMLDummy"),m=k("./XMLDTDAttList"),f=k("./XMLDTDElement"),h=k("./XMLDTDEntity"),u=k("./XMLDTDNotation"),p=k("./WriterState"),D.exports=s=function(){function g(v){var b,S,E;v||(v={}),this.options=v,S=v.writer||{};for(b in S){if(!d.call(S,b))continue;E=S[b],this["_"+b]=this[b],this[b]=E}}return g.prototype.filterOptions=function(v){var b,S,E,C,_,T,w,O;return v||(v={}),v=c({},this.options,v),b={writer:this},b.pretty=v.pretty||!1,b.allowEmpty=v.allowEmpty||!1,b.indent=(S=v.indent)!=null?S:" ",b.newline=(E=v.newline)!=null?E:`
`,b.offset=(C=v.offset)!=null?C:0,b.dontPrettyTextNodes=(_=(T=v.dontPrettyTextNodes)!=null?T:v.dontprettytextnodes)!=null?_:0,b.spaceBeforeSlash=(w=(O=v.spaceBeforeSlash)!=null?O:v.spacebeforeslash)!=null?w:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=p.None,b},g.prototype.indent=function(v,b,S){var E;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(E=(S||0)+b.offset+1,E>0)?new Array(E).join(b.indent):""},g.prototype.endline=function(v,b,S){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(v,b,S){var E;return this.openAttribute(v,b,S),E=" "+v.name+'="'+v.value+'"',this.closeAttribute(v,b,S),E},g.prototype.cdata=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<![CDATA[",b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+="]]>"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.comment=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!-- ",b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+=" -->"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.declaration=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<?xml",b.state=p.InsideTag,E+=' version="'+v.version+'"',v.encoding!=null&&(E+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(E+=' standalone="'+v.standalone+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.docType=function(v,b,S){var E,C,_,T,w;if(S||(S=0),this.openNode(v,b,S),b.state=p.OpenTag,T=this.indent(v,b,S),T+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?T+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(T+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(T+=" [",T+=this.endline(v,b,S),b.state=p.InsideTag,w=v.children,C=0,_=w.length;C<_;C++)E=w[C],T+=this.writeChildNode(E,b,S+1);b.state=p.CloseTag,T+="]"}return b.state=p.CloseTag,T+=b.spaceBeforeSlash+">",T+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),T},g.prototype.element=function(v,b,S){var E,C,_,T,w,O,I,R,M,F,P,X,B,j;S||(S=0),F=!1,P="",this.openNode(v,b,S),b.state=p.OpenTag,P+=this.indent(v,b,S)+"<"+v.name,X=v.attribs;for(M in X){if(!d.call(X,M))continue;E=X[M],P+=this.attribute(E,b,S)}if(_=v.children.length,T=_===0?null:v.children[0],_===0||v.children.every(function(W){return(W.type===y.Text||W.type===y.Raw)&&W.value===""}))b.allowEmpty?(P+=">",b.state=p.CloseTag,P+="</"+v.name+">"+this.endline(v,b,S)):(b.state=p.CloseTag,P+=b.spaceBeforeSlash+"/>"+this.endline(v,b,S));else if(b.pretty&&_===1&&(T.type===y.Text||T.type===y.Raw)&&T.value!=null)P+=">",b.state=p.InsideTag,b.suppressPrettyCount++,F=!0,P+=this.writeChildNode(T,b,S+1),b.suppressPrettyCount--,F=!1,b.state=p.CloseTag,P+="</"+v.name+">"+this.endline(v,b,S);else{if(b.dontPrettyTextNodes){for(B=v.children,w=0,I=B.length;w<I;w++)if(C=B[w],(C.type===y.Text||C.type===y.Raw)&&C.value!=null){b.suppressPrettyCount++,F=!0;break}}for(P+=">"+this.endline(v,b,S),b.state=p.InsideTag,j=v.children,O=0,R=j.length;O<R;O++)C=j[O],P+=this.writeChildNode(C,b,S+1);b.state=p.CloseTag,P+=this.indent(v,b,S)+"</"+v.name+">",F&&b.suppressPrettyCount--,P+=this.endline(v,b,S),b.state=p.None}return this.closeNode(v,b,S),P},g.prototype.writeChildNode=function(v,b,S){switch(v.type){case y.CData:return this.cdata(v,b,S);case y.Comment:return this.comment(v,b,S);case y.Element:return this.element(v,b,S);case y.Raw:return this.raw(v,b,S);case y.Text:return this.text(v,b,S);case y.ProcessingInstruction:return this.processingInstruction(v,b,S);case y.Dummy:return"";case y.Declaration:return this.declaration(v,b,S);case y.DocType:return this.docType(v,b,S);case y.AttributeDeclaration:return this.dtdAttList(v,b,S);case y.ElementDeclaration:return this.dtdElement(v,b,S);case y.EntityDeclaration:return this.dtdEntity(v,b,S);case y.NotationDeclaration:return this.dtdNotation(v,b,S);default:throw new Error("Unknown XML node type: "+v.constructor.name)}},g.prototype.processingInstruction=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<?",b.state=p.InsideTag,E+=v.target,v.value&&(E+=" "+v.value),b.state=p.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.raw=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S),b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.text=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S),b.state=p.InsideTag,E+=v.value,b.state=p.CloseTag,E+=this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdAttList=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!ATTLIST",b.state=p.InsideTag,E+=" "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(E+=" "+v.defaultValueType),v.defaultValue&&(E+=' "'+v.defaultValue+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdElement=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!ELEMENT",b.state=p.InsideTag,E+=" "+v.name+" "+v.value,b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdEntity=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!ENTITY",b.state=p.InsideTag,v.pe&&(E+=" %"),E+=" "+v.name,v.value?E+=' "'+v.value+'"':(v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),v.nData&&(E+=" NDATA "+v.nData)),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.dtdNotation=function(v,b,S){var E;return this.openNode(v,b,S),b.state=p.OpenTag,E=this.indent(v,b,S)+"<!NOTATION",b.state=p.InsideTag,E+=" "+v.name,v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?E+=' PUBLIC "'+v.pubID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),b.state=p.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=p.None,this.closeNode(v,b,S),E},g.prototype.openNode=function(v,b,S){},g.prototype.closeNode=function(v,b,S){},g.prototype.openAttribute=function(v,b,S){},g.prototype.closeAttribute=function(v,b,S){},g}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(k,D,n){"use strict";(function(){var y,p,x,A,m,f,h,u,a,i;i=k("./Utility"),u=i.assign,a=i.isFunction,x=k("./XMLDOMImplementation"),A=k("./XMLDocument"),m=k("./XMLDocumentCB"),h=k("./XMLStringWriter"),f=k("./XMLStreamWriter"),y=k("./NodeType"),p=k("./WriterState"),D.exports.create=function(t,o,e,l){var r,s;if(t==null)throw new Error("Root element needs a name.");return l=u({},o,e,l),r=new A(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,o,e){var l;return a(t)&&(l=[t,o],o=l[0],e=l[1],t={}),o?new m(t,o,e):new A(t)},D.exports.stringWriter=function(t){return new h(t)},D.exports.streamWriter=function(t,o){return new f(t,o)},D.exports.implementation=new x,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,n){D.exports=p;var y=Object.prototype.hasOwnProperty;function p(){for(var x={},A=0;A<arguments.length;A++){var m=arguments[A];for(var f in m)y.call(m,f)&&(x[f]=m[f])}return x}},{}],284:[function(k,D,n){"use strict";var y=k("buffer").Buffer,p=k("./sha"),x=k("./md5"),A={sha1:p,md5:x},m=64,f=y.alloc(m);f.fill(0);function h(i,t,o){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(o)||(o=y.from(o)),t.length>m?t=i(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=i(y.concat([e,o]));return i(y.concat([l,s]))}function u(i,t){i=i||"sha1";var o=A[i],e=[],l=0;return o||a("algorithm:",i,"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),d=t?h(o,t,c):o(c);return e=null,s?d.toString(s):d}}}function a(){var i=[].slice.call(arguments).join(" ");throw new Error([i,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}n.createHash=function(i){return u(i)},n.createHmac=function(i,t){return u(i,t)},n.createCredentials=function(){a("sorry,createCredentials is not implemented yet")},n.createCipher=function(){a("sorry,createCipher is not implemented yet")},n.createCipheriv=function(){a("sorry,createCipheriv is not implemented yet")},n.createDecipher=function(){a("sorry,createDecipher is not implemented yet")},n.createDecipheriv=function(){a("sorry,createDecipheriv is not implemented yet")},n.createSign=function(){a("sorry,createSign is not implemented yet")},n.createVerify=function(){a("sorry,createVerify is not implemented yet")},n.createDiffieHellman=function(){a("sorry,createDiffieHellman is not implemented yet")},n.pbkdf2=function(){a("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,D,n){"use strict";var y=k("buffer").Buffer,p=4,x=y.alloc(p);x.fill(0);var A=8;function m(u,a){if(u.length%p!==0){var i=u.length+(p-u.length%p);u=y.concat([u,x],i)}for(var t=[],o=a?u.readInt32BE:u.readInt32LE,e=0;e<u.length;e+=p)t.push(o.call(u,e));return t}function f(u,a,i){for(var t=y.alloc(a),o=i?t.writeInt32BE:t.writeInt32LE,e=0;e<u.length;e++)o.call(t,u[e],e*4,!0);return t}function h(u,a,i,t){y.isBuffer(u)||(u=y.from(u));var o=a(m(u,t),u.length*A);return f(o,i,t)}D.exports={hash:h}},{buffer:73}],286:[function(k,D,n){"use strict";var y=k("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function x(t,o){t[o>>5]|=128<<o%32,t[(o+64>>>9<<4)+14]=o;for(var e=1732584193,l=-271733879,r=-1732584194,s=271733878,c=0;c<t.length;c+=16){var d=e,g=l,v=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=h(e,l,r,s,t[c+5],4,-378558),s=h(s,e,l,r,t[c+8],11,-2022574463),r=h(r,s,e,l,t[c+11],16,1839030562),l=h(l,r,s,e,t[c+14],23,-35309556),e=h(e,l,r,s,t[c+1],4,-1530992060),s=h(s,e,l,r,t[c+4],11,1272893353),r=h(r,s,e,l,t[c+7],16,-155497632),l=h(l,r,s,e,t[c+10],23,-1094730640),e=h(e,l,r,s,t[c+13],4,681279174),s=h(s,e,l,r,t[c+0],11,-358537222),r=h(r,s,e,l,t[c+3],16,-722521979),l=h(l,r,s,e,t[c+6],23,76029189),e=h(e,l,r,s,t[c+9],4,-640364487),s=h(s,e,l,r,t[c+12],11,-421815835),r=h(r,s,e,l,t[c+15],16,530742520),l=h(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=a(e,d),l=a(l,g),r=a(r,v),s=a(s,b)}return Array(e,l,r,s)}function A(t,o,e,l,r,s){return a(i(a(a(o,t),a(l,s)),r),e)}function m(t,o,e,l,r,s,c){return A(o&e|~o&l,t,o,r,s,c)}function f(t,o,e,l,r,s,c){return A(o&l|e&~l,t,o,r,s,c)}function h(t,o,e,l,r,s,c){return A(o^e^l,t,o,r,s,c)}function u(t,o,e,l,r,s,c){return A(e^(o|~l),t,o,r,s,c)}function a(t,o){var e=(t&65535)+(o&65535),l=(t>>16)+(o>>16)+(e>>16);return l<<16|e&65535}function i(t,o){return t<<o|t>>>32-o}D.exports=function(o){return y.hash(o,x,16)}},{"./helpers":285}],287:[function(k,D,n){"use strict";var y=k("./helpers");function p(h,u){h[u>>5]|=128<<24-u%32,h[(u+64>>9<<4)+15]=u;for(var a=Array(80),i=1732584193,t=-271733879,o=-1732584194,e=271733878,l=-1009589776,r=0;r<h.length;r+=16){for(var s=i,c=t,d=o,g=e,v=l,b=0;b<80;b++){b<16?a[b]=h[r+b]:a[b]=f(a[b-3]^a[b-8]^a[b-14]^a[b-16],1);var S=m(m(f(i,5),x(b,t,o,e)),m(m(l,a[b]),A(b)));l=e,e=o,o=f(t,30),t=i,i=S}i=m(i,s),t=m(t,c),o=m(o,d),e=m(e,g),l=m(l,v)}return Array(i,t,o,e,l)}function x(h,u,a,i){return h<20?u&a|~u&i:h<40?u^a^i:h<60?u&a|u&i|a&i:u^a^i}function A(h){return h<20?1518500249:h<40?1859775393:h<60?-1894007588:-899497514}function m(h,u){var a=(h&65535)+(u&65535),i=(h>>16)+(u>>16)+(a>>16);return i<<16|a&65535}function f(h,u){return h<<u|h>>>32-u}D.exports=function(u){return y.hash(u,p,20,!0)}},{"./helpers":285}],288:[function(k,D,n){"use strict";D.exports=function(){return function(){}}},{}],289:[function(k,D,n){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),x=A(p);function A(i){return i&&i.__esModule?i:{default:i}}var m=k("stream"),f=m.Stream,h=k("../lib/common/utils/isArray"),u=h.isArray;D.exports.string=function(t){return typeof t=="string"},D.exports.array=u,D.exports.buffer=y.isBuffer;function a(i){return i instanceof f}D.exports.writableStream=function(t){return a(t)&&typeof t._write=="function"&&(0,x.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,n){"use strict";n.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(p){return y}},n.escape=k("escape-html"),n.timestamp=function(p){if(p){var x=p;return typeof x=="string"&&(x=Number(x)),String(p).length===10&&(x*=1e3),new Date(x)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,D,n){(function(y,p){"use strict";var x=k("babel-runtime/core-js/json/stringify"),A=h(x),m=k("babel-runtime/helpers/typeof"),f=h(m);function h(b){return b&&b.__esModule?b:{default:b}}var u=k("util"),a=k("url"),i=k("http"),t=k("https"),o=k("debug")("urllib"),e=k("humanize-ms"),l,r=0,s=Math.pow(2,31)-10,c=/^https?:\/\//i;function d(b,S){return b===void 0?S:b}function g(b,S){return function(E,C,_){if(E)return S(E);b({data:C,status:_.statusCode,headers:_.headers,res:_})}}n.TIMEOUTS=[e("300s"),e("300s")];var v=["json","text"];n.request=function(S,E,C){return arguments.length===2&&typeof E=="function"&&(C=E,E=null),typeof C=="function"?n.requestWithCallback(S,E,C):(l||(l=k("any-promise")),new l(function(_,T){n.requestWithCallback(S,E,g(_,T))}))},n.requestWithCallback=function(S,E,C){if(!S||typeof S!="string"&&(typeof S=="undefined"?"undefined":(0,f.default)(S))!=="object"){var _=u.format("expect request url to be a string or a http request options, but got %j",S);throw new Error(_)}arguments.length===2&&typeof E=="function"&&(C=E,E=null),E=E||{},r>=s&&(r=0);var T=++r;E.requestUrls=E.requestUrls||[];var w={requestId:T,url:S,args:E,ctx:E.ctx};E.emitter&&E.emitter.emit("request",w),E.timeout=E.timeout||n.TIMEOUTS,E.maxRedirects=E.maxRedirects||10,E.streaming=E.streaming||E.customResponse;var O=Date.now(),I;typeof S=="string"?(c.test(S)||(S="http://"+S),I=a.parse(S)):I=S;var R=(E.type||E.method||I.method||"GET").toUpperCase(),M=I.port||80,F=i,P=d(E.agent,n.agent),X=E.fixJSONCtlChars;I.protocol==="https:"&&(F=t,P=d(E.httpsAgent,n.httpsAgent),I.port||(M=443));var B={host:I.hostname||I.host||"localhost",path:I.path||"/",method:R,port:M,agent:P,headers:E.headers||{},lookup:E.lookup};Array.isArray(E.timeout)?B.requestTimeout=E.timeout[E.timeout.length-1]:typeof E.timeout!="undefined"&&(B.requestTimeout=E.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],W=0;W<j.length;W++){var z=j[W];E.hasOwnProperty(z)&&(B[z]=E[z])}B.rejectUnauthorized===!1&&!B.hasOwnProperty("secureOptions")&&(B.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var V=E.auth||I.auth;V&&(B.auth=V);var Q=E.content||E.data,G=R==="GET"||R==="HEAD"||E.dataAsQueryString;if(!E.content&&(Q&&!(typeof Q=="string"||p.isBuffer(Q))))if(G)Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var re=B.headers["Content-Type"]||B.headers["content-type"];re||(E.contentType==="json"?re="application/json":re="application/x-www-form-urlencoded",B.headers["Content-Type"]=re),parseContentType(re).type==="application/json"?Q=(0,A.default)(Q):Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(B.path+=(I.query?"&":"?")+Q,Q=null);var ee=0;if(Q){var ue=Q.length;p.isBuffer(Q)||(ue=p.byteLength(Q)),ee=B.headers["Content-Length"]=ue}E.dataType==="json"&&(B.headers.Accept="application/json"),typeof E.beforeRequest=="function"&&E.beforeRequest(B);var $=null,be=null,_e=null,Ee=!1,Xe=!1,He=0,nt=-1,Ie=!1,oe="",ot="",he=null;E.timing&&(he={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function J(){$&&(clearTimeout($),$=null)}function Y(){be&&(clearTimeout(be),be=null)}function q(Ve,or,dt){if(Y(),!C){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),T,y.pid,B.method,S),Ve&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),T,y.pid,Ve.name,Ve.message,Ve.stack);return}var Yt=C;C=null;var hr={};if(dt&&(nt=dt.statusCode,hr=dt.headers),nt===401&&hr["www-authenticate"]&&(!E.headers||!E.headers.Authorization)&&E.digestAuth){var Gt=hr["www-authenticate"];if(Gt.indexOf("Digest ")>=0)return o("Request#%d %s: got digest auth header WWW-Authenticate: %s",T,S,Gt),E.headers=E.headers||{},E.headers.Authorization=digestAuthHeader(B.method,B.path,Gt,E.digestAuth),o("Request#%d %s: auth with digest header: %s",T,S,E.headers.Authorization),dt.headers["set-cookie"]&&(E.headers.Cookie=dt.headers["set-cookie"].join(";")),n.requestWithCallback(S,E,Yt)}var Pt=Date.now()-O;he&&(he.contentDownload=Pt),o("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Pt,He,nt,B.method,B.host,B.path,Xe,he);var Xt={status:nt,statusCode:nt,headers:hr,size:He,aborted:Ie,rt:Pt,keepAliveSocket:Xe,data:or,requestUrls:E.requestUrls,timing:he,remoteAddress:oe,remotePort:ot};if(Ve){var Ge="";P&&typeof P.getCurrentStatus=="function"&&(Ge=", agent status: "+(0,A.default)(P.getCurrentStatus())),Ve.message+=", "+B.method+" "+S+" "+nt+" (connected: "+Ee+", keepalive socket: "+Xe+Ge+`)
headers: `+(0,A.default)(hr),Ve.data=or,Ve.path=B.path,Ve.status=nt,Ve.headers=hr,Ve.res=Xt}Yt(Ve,or,E.streaming?dt:Xt),E.emitter&&(w.url=S,w.socket=Ct&&Ct.connection,w.options=B,w.size=ee,E.emitter.emit("response",{requestId:T,error:Ve,ctx:E.ctx,req:w,res:Xt}))}function fe(Ve){var or=null;if(E.followRedirect&&statuses.redirect[Ve.statusCode]){E._followRedirectCount=(E._followRedirectCount||0)+1;var dt=Ve.headers.location;if(!dt)or=new Error("Got statusCode "+Ve.statusCode+" but cannot resolve next location from headers"),or.name="FollowRedirectError";else if(E._followRedirectCount>E.maxRedirects)or=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),or.name="MaxRedirectError";else{var Yt=E.formatRedirectUrl?E.formatRedirectUrl(S,dt):a.resolve(S,dt);o("Request#%d %s: `redirected` from %s to %s",T,B.path,S,Yt),Y(),E.headers&&E.headers.Host&&c.test(dt)&&(E.headers.Host=null);var hr=C;return C=null,n.requestWithCallback(Yt,E,hr),{redirect:!0,error:null}}}return{redirect:!1,error:or}}!B.headers["User-Agent"]&&!B.headers["user-agent"]&&(B.headers["User-Agent"]=navigator.userAgent),E.gzip&&(!B.headers["Accept-Encoding"]&&!B.headers["accept-encoding"]&&(B.headers["Accept-Encoding"]="gzip"));function we(Ve,or,dt){var Yt=Ve.headers["content-encoding"];return dt(null,or,Yt)}var Ne=E.writeStream;o("Request#%d %s %s with headers %j, options.path: %s",T,R,S,B.headers,B.path),E.requestUrls.push(S);function je(Ve){if(he&&(he.waiting=Date.now()-O),o("Request#%d %s `req response` event emit: status %d, headers: %j",T,S,Ve.statusCode,Ve.headers),E.streaming){var or=fe(Ve);if(or.redirect){Ve.resume();return}return or.error?(Ve.resume(),q(or.error,null,Ve)):q(null,null,Ve)}if(Ve.on("close",function(){o("Request#%d %s: `res close` event emit, total size %d",T,S,He)}),Ve.on("error",function(){o("Request#%d %s: `res error` event emit, total size %d",T,S,He)}),Ve.on("aborted",function(){Ie=!0,o("Request#%d %s: `res aborted` event emit, total size %d",T,S,He)}),Ne){var or=fe(Ve);if(or.redirect){Ve.resume();return}return or.error?(Ve.resume(),Ne.end(),q(or.error,null,Ve)):(E.consumeWriteStream===!1?Ve.on("end",q.bind(null,null,null,Ve)):isNode010||isNode012?first([[Ne,"close"],[Ve,"aborted"]],function(hr,Gt,Pt){o("Request#%d %s: writeStream or res %s event emitted",T,S,Pt),q(_e||null,null,Ve)}):Ne.on("close",function(){o("Request#%d %s: writeStream close event emitted",T,S),q(_e||null,null,Ve)}),Ve.pipe(Ne))}var dt=[];Ve.on("data",function(Yt){o("Request#%d %s: `res data` event emit, size %d",T,S,Yt.length),He+=Yt.length,dt.push(Yt)}),Ve.on("end",function(){var Yt=p.concat(dt,He);if(o("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",T,S,He,Ve._dumped),_e)return q(_e,Yt,Ve);var hr=fe(Ve);if(hr.error)return q(hr.error,Yt,Ve);if(hr.redirect)return;we(Ve,Yt,function(Gt,Pt,Xt){if(Gt)return q(Gt,Yt,Ve);if(!Xt&&v.indexOf(E.dataType)>=0){try{Pt=decodeBodyByCharset(Pt,Ve)}catch(pe){return o("decodeBodyByCharset error: %s",pe),q(null,Pt,Ve)}if(E.dataType==="json")if(He===0)Pt=null;else{var Ge=parseJSON(Pt,X);Ge.error?Gt=Ge.error:Pt=Ge.data}}Ie&&o("Request#%d %s: Remote socket was terminated before `response.end()` was called",T,S),q(Gt,Pt,Ve)})})}var me,Ce;Array.isArray(E.timeout)?(me=e(E.timeout[0]),Ce=e(E.timeout[1])):me=Ce=e(E.timeout),o("ConnectTimeout: %d, ResponseTimeout: %d",me,Ce);function Fe(){o("Connect timer ticking, timeout: %d",me),$=setTimeout(function(){$=null,nt===-1&&(nt=-2);var Ve="Connect timeout for "+me+"ms",or="ConnectionTimeoutError";Ct.socket||(or="SocketAssignTimeoutError",Ve+=", working sockets is full"),_e=new Error(Ve),_e.name=or,_e.requestId=T,o("ConnectTimeout: Request#%d %s %s: %s, connected: %s",T,S,_e.name,Ve,Ee),mt()},me)}function it(){o("Response timer ticking, timeout: %d",Ce),be=setTimeout(function(){be=null;var Ve="Response timeout for "+Ce+"ms",or="ResponseTimeoutError";_e=new Error(Ve),_e.name=or,_e.requestId=T,o("ResponseTimeout: Request#%d %s %s: %s, connected: %s",T,S,_e.name,Ve,Ee),mt()},Ce)}var Ct;B.mode=E.mode?E.mode:"";try{Ct=F.request(B,je)}catch(Ve){return q(Ve)}typeof window=="undefined"?Fe():Ct.on("requestTimeout",function(){nt===-1&&(nt=-2);var Ve="Connect timeout for "+me+"ms",or="ConnectionTimeoutError";_e=new Error(Ve),_e.name=or,_e.requestId=T,mt()});function mt(){o("Request#%d %s abort, connected: %s",T,S,Ee),Ct.socket||(_e.noSocket=!0,q(_e)),Ct.abort()}return he&&Ct.on("finish",function(){he.requestSent=Date.now()-O}),Ct.once("socket",function(Ve){he&&(he.queuing=Date.now()-O),isNode010&&Ve.socket&&(Ve=Ve.socket);var or=Ve.readyState;if(or==="opening"){Ve.once("lookup",function(dt,Yt,hr){o("Request#%d %s lookup: %s, %s, %s",T,S,dt,Yt,hr),he&&(he.dnslookup=Date.now()-O),Yt&&(oe=Yt)}),Ve.once("connect",function(){he&&(he.connected=Date.now()-O),J(),it(),o("Request#%d %s new socket connected",T,S),Ee=!0,oe||(oe=Ve.remoteAddress),ot=Ve.remotePort});return}o("Request#%d %s reuse socket connected, readyState: %s",T,S,or),Ee=!0,Xe=!0,oe||(oe=Ve.remoteAddress),ot=Ve.remotePort,J(),it()}),Ct.on("error",function(Ve){(Ve.name==="Error"||Ve.name==="TypeError")&&(Ve.name=Ee?"ResponseError":"RequestError"),Ve.message+=' (req "error")',o("Request#%d %s `req error` event emit, %s: %s",T,S,Ve.name,Ve.message),q(_e||Ve)}),Ne&&Ne.once("error",function(Ve){Ve.message+=' (writeStream "error")',_e=Ve,o("Request#%d %s `writeStream error` event emit, %s: %s",T,S,Ve.name,Ve.message),mt()}),E.stream?(E.stream.pipe(Ct),E.stream.once("error",function(Ve){Ve.message+=' (stream "error")',_e=Ve,o("Request#%d %s `readStream error` event emit, %s: %s",T,S,Ve.name,Ve.message),mt()})):Ct.end(Q),Ct.requestId=T,Ct}}).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,n){var y=n("hX1E"),p=y.normalizeRadian,x=Math.PI*2;function A(m,f,h,u,a,i,t,o,e){if(t===0)return!1;var l=t;o-=m,e-=f;var r=Math.sqrt(o*o+e*e);if(r-l>h||r+l<h)return!1;if(Math.abs(u-a)%x<1e-4)return!0;if(i){var s=u;u=p(a),a=p(s)}else u=p(u),a=p(a);u>a&&(a+=x);var c=Math.atan2(e,o);return c<0&&(c+=x),c>=u&&c<=a||c+x>=u&&c+x<=a}D.containStroke=A},n4Lv:function(k,D,n){var y=n("7hqr"),p=y.isDimensionStacked,x=n("bYtY"),A=x.map;function m(u,a,i){var t=u.getBaseAxis(),o=u.getOtherAxis(t),e=f(o,i),l=t.dim,r=o.dim,s=a.mapDimension(r),c=a.mapDimension(l),d=r==="x"||r==="radius"?1:0,g=A(u.dimensions,function(S){return a.mapDimension(S)}),v,b=a.getCalculationInfo("stackResultDimension");return(v|=p(a,g[0]))&&(g[0]=b),(v|=p(a,g[1]))&&(g[1]=b),{dataDimsForPoint:g,valueStart:e,valueAxisDim:r,baseAxisDim:l,stacked:!!v,valueDim:s,baseDim:c,baseDataOffset:d,stackedOverDimension:a.getCalculationInfo("stackedOverDimension")}}function f(u,a){var i=0,t=u.scale.getExtent();return a==="start"?i=t[0]:a==="end"?i=t[1]:t[0]>0?i=t[0]:t[1]<0&&(i=t[1]),i}function h(u,a,i,t){var o=NaN;u.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),t)),isNaN(o)&&(o=u.valueStart);var e=u.baseDataOffset,l=[];return l[e]=i.get(u.baseDim,t),l[1-e]=o,a.dataToPoint(l)}D.prepareDataCoordInfo=m,D.getStackedOnPoint=h},n6Mw:function(k,D,n){var y=n("SrGk"),p=n("bYtY"),x=n("Fofx");function A(f,h){y.call(this,f,h,"clipPath","__clippath_in_use__")}p.inherits(A,y),A.prototype.update=function(f){var h=this.getSvgElement(f);h&&this.updateDom(h,f.__clipPaths,!1);var u=this.getTextSvgElement(f);u&&this.updateDom(u,f.__clipPaths,!0),this.markUsed(f)},A.prototype.updateDom=function(f,h,u){if(h&&h.length>0){var a=this.getDefs(!0),i=h[0],t,o,e=u?"_textDom":"_dom";i[e]?(o=i[e].getAttribute("id"),t=i[e],a.contains(t)||a.appendChild(t)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",o),a.appendChild(t),i[e]=t);var l=this.getSvgProxy(i);if(i.transform&&i.parent.invTransform&&!u){var r=Array.prototype.slice.call(i.transform);x.mul(i.transform,i.parent.invTransform,i.transform),l.brush(i),i.transform=r}else l.brush(i);var s=this.getSvgElement(i);t.innerHTML="",t.appendChild(s.cloneNode()),f.setAttribute("clip-path","url(#"+o+")"),h.length>1&&this.updateDom(t,h.slice(1),u)}else f&&f.setAttribute("clip-path","none")},A.prototype.markUsed=function(f){var h=this;f.__clipPaths&&p.each(f.__clipPaths,function(u){u._dom&&y.prototype.markUsed.call(h,u._dom),u._textDom&&y.prototype.markUsed.call(h,u._textDom)})};var m=A;k.exports=m},nCxF:function(k,D,n){var y=n("QBsz"),p=y.min,x=y.max,A=y.scale,m=y.distance,f=y.add,h=y.clone,u=y.sub;function a(i,t,o,e){var l=[],r=[],s=[],c=[],d,g,v,b;if(e){v=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var S=0,E=i.length;S<E;S++)p(v,v,i[S]),x(b,b,i[S]);p(v,v,e[0]),x(b,b,e[1])}for(var S=0,E=i.length;S<E;S++){var C=i[S];if(o)d=i[S?S-1:E-1],g=i[(S+1)%E];else if(S===0||S===E-1){l.push(h(i[S]));continue}else d=i[S-1],g=i[S+1];u(r,g,d),A(r,r,t);var _=m(C,d),T=m(C,g),w=_+T;w!==0&&(_/=w,T/=w),A(s,r,-_),A(c,r,T);var O=f([],C,s),I=f([],C,c);e&&(x(O,O,v),p(O,O,b),x(I,I,v),p(I,I,b)),l.push(O),l.push(I)}return o&&l.push(l.shift()),l}k.exports=a},nKiI:function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("OELB"),A=x.parsePercent,m=x.MAX_SAFE_INTEGER,f=n("+TT/"),h=n("VaxA"),u=Math.max,a=Math.min,i=y.retrieve,t=y.each,o=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],r=["upperLabel","height"],s={seriesType:"treemap",reset:function(O,I,R,M){var F=R.getWidth(),P=R.getHeight(),X=O.option,B=f.getLayoutRect(O.getBoxLayoutParams(),{width:R.getWidth(),height:R.getHeight()}),j=X.size||[],W=A(i(B.width,j[0]),F),z=A(i(B.height,j[1]),P),V=M&&M.type,Q=["treemapZoomToNode","treemapRootToNode"],G=h.retrieveTargetInfo(M,Q,O),re=V==="treemapRender"||V==="treemapMove"?M.rootRect:null,ee=O.getViewRoot(),ue=h.getPathToRoot(ee);if(V!=="treemapMove"){var $=V==="treemapZoomToNode"?C(O,G,ee,W,z):re?[re.width,re.height]:[W,z],be=X.sort;be&&be!=="asc"&&be!=="desc"&&(be="desc");var _e={squareRatio:X.squareRatio,sort:be,leafDepth:X.leafDepth};ee.hostTree.clearLayouts();var Ee={x:0,y:0,width:$[0],height:$[1],area:$[0]*$[1]};ee.setLayout(Ee),c(ee,_e,!1,0);var Ee=ee.getLayout();t(ue,function(He,nt){var Ie=(ue[nt+1]||ee).getValue();He.setLayout(y.extend({dataExtent:[Ie,Ie],borderWidth:0,upperHeight:0},Ee))})}var Xe=O.getData().tree.root;Xe.setLayout(_(B,re,G),!0),O.setLayoutInfo(B),T(Xe,new p(-B.x,-B.y,F,P),ue,ee,0)}};function c(O,I,R,M){var F,P;if(O.isRemoved())return;var X=O.getLayout();F=X.width,P=X.height;var B=O.getModel(),j=B.get(o),W=B.get(e)/2,z=w(B),V=Math.max(j,z),Q=j-W,G=V-W,B=O.getModel();O.setLayout({borderWidth:j,upperHeight:V,upperLabelHeight:z},!0),F=u(F-2*Q,0),P=u(P-Q-G,0);var re=F*P,ee=d(O,B,re,I,R,M);if(!ee.length)return;var ue={x:Q,y:G,width:F,height:P},$=a(F,P),be=Infinity,_e=[];_e.area=0;for(var Ee=0,Xe=ee.length;Ee<Xe;){var He=ee[Ee];_e.push(He),_e.area+=He.getLayout().area;var nt=S(_e,$,I.squareRatio);nt<=be?(Ee++,be=nt):(_e.area-=_e.pop().getLayout().area,E(_e,$,ue,W,!1),$=a(ue.width,ue.height),_e.length=_e.area=0,be=Infinity)}if(_e.length&&E(_e,$,ue,W,!0),!R){var Ie=B.get("childrenVisibleMin");Ie!=null&&re<Ie&&(R=!0)}for(var Ee=0,Xe=ee.length;Ee<Xe;Ee++)c(ee[Ee],I,R,M+1)}function d(O,I,R,M,F,P){var X=O.children||[],B=M.sort;B!=="asc"&&B!=="desc"&&(B=null);var j=M.leafDepth!=null&&M.leafDepth<=P;if(F&&!j)return O.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),v(X,B);var W=b(I,X,B);if(W.sum===0)return O.viewChildren=[];if(W.sum=g(I,R,W.sum,B,X),W.sum===0)return O.viewChildren=[];for(var z=0,V=X.length;z<V;z++){var Q=X[z].getValue()/W.sum*R;X[z].setLayout({area:Q})}return j&&(X.length&&O.setLayout({isLeafRoot:!0},!0),X.length=0),O.viewChildren=X,O.setLayout({dataExtent:W.dataExtent},!0),X}function g(O,I,R,M,F){if(!M)return R;for(var P=O.get("visibleMin"),X=F.length,B=X,j=X-1;j>=0;j--){var W=F[M==="asc"?X-j-1:j].getValue();W/R*I<P&&(B=j,R-=W)}return M==="asc"?F.splice(0,X-B):F.splice(B,X-B),R}function v(O,I){return I&&O.sort(function(R,M){var F=I==="asc"?R.getValue()-M.getValue():M.getValue()-R.getValue();return F===0?I==="asc"?R.dataIndex-M.dataIndex:M.dataIndex-R.dataIndex:F}),O}function b(O,I,R){for(var M=0,F=0,P=I.length;F<P;F++)M+=I[F].getValue();var X=O.get("visualDimension"),B;if(!I||!I.length)B=[NaN,NaN];else if(X==="value"&&R)B=[I[I.length-1].getValue(),I[0].getValue()],R==="asc"&&B.reverse();else{var B=[Infinity,-Infinity];t(I,function(W){var z=W.getValue(X);z<B[0]&&(B[0]=z),z>B[1]&&(B[1]=z)})}return{sum:M,dataExtent:B}}function S(O,I,R){for(var M=0,F=Infinity,P=0,X,B=O.length;P<B;P++)X=O[P].getLayout().area,X&&(X<F&&(F=X),X>M&&(M=X));var j=O.area*O.area,W=I*I*R;return j?u(W*M/j,j/(W*F)):Infinity}function E(O,I,R,M,F){var P=I===R.width?0:1,X=1-P,B=["x","y"],j=["width","height"],W=R[B[P]],z=I?O.area/I:0;(F||z>R[j[X]])&&(z=R[j[X]]);for(var V=0,Q=O.length;V<Q;V++){var G=O[V],re={},ee=z?G.getLayout().area/z:0,ue=re[j[X]]=u(z-2*M,0),$=R[B[P]]+R[j[P]]-W,be=V===Q-1||$<ee?$:ee,_e=re[j[P]]=u(be-2*M,0);re[B[X]]=R[B[X]]+a(M,ue/2),re[B[P]]=W+a(M,_e/2),W+=be,G.setLayout(re,!0)}R[B[X]]+=z,R[j[X]]-=z}function C(O,I,R,M,F){var P=(I||{}).node,X=[M,F];if(!P||P===R)return X;for(var B,j=M*F,W=j*O.option.zoomToNodeRatio;B=P.parentNode;){for(var z=0,V=B.children,Q=0,G=V.length;Q<G;Q++)z+=V[Q].getValue();var re=P.getValue();if(re===0)return X;W*=z/re;var ee=B.getModel(),ue=ee.get(o),$=Math.max(ue,w(ee,ue));W+=4*ue*ue+(3*ue+$)*Math.pow(W,.5),W>m&&(W=m),P=B}W<j&&(W=j);var be=Math.pow(W/j,.5);return[M*be,F*be]}function _(O,I,R){if(I)return{x:I.x,y:I.y};var M={x:0,y:0};if(!R)return M;var F=R.node,P=F.getLayout();if(!P)return M;for(var X=[P.width/2,P.height/2],B=F;B;){var j=B.getLayout();X[0]+=j.x,X[1]+=j.y,B=B.parentNode}return{x:O.width/2-X[0],y:O.height/2-X[1]}}function T(O,I,R,M,F){var P=O.getLayout(),X=R[F],B=X&&X===O;if(X&&!B||F===R.length&&O!==M)return;O.setLayout({isInView:!0,invisible:!B&&!I.intersect(P),isAboveViewRoot:B},!0);var j=new p(I.x-P.x,I.y-P.y,I.width,I.height);t(O.viewChildren||[],function(W){T(W,j,R,M,F+1)})}function w(O){return O.get(l)?O.get(r):0}k.exports=s},nPnh:function(k,D){var n=Math.round;function y(A,m,f){if(!m)return;var h=m.x1,u=m.x2,a=m.y1,i=m.y2;A.x1=h,A.x2=u,A.y1=a,A.y2=i;var t=f&&f.lineWidth;if(!t)return;n(h*2)===n(u*2)&&(A.x1=A.x2=x(h,t,!0)),n(a*2)===n(i*2)&&(A.y1=A.y2=x(a,t,!0))}function p(A,m,f){if(!m)return;var h=m.x,u=m.y,a=m.width,i=m.height;A.x=h,A.y=u,A.width=a,A.height=i;var t=f&&f.lineWidth;if(!t)return;A.x=x(h,t,!0),A.y=x(u,t,!0),A.width=Math.max(x(h+a,t,!1)-A.x,a===0?0:1),A.height=Math.max(x(u+i,t,!1)-A.y,i===0?0:1)}function x(A,m,f){if(!m)return A;var h=n(A*2);return(h+n(m))%2===0?h/2:(h+(f?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=p,D.subPixelOptimize=x},nRaC:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("0fbx"),A=n.n(x),m=n("OaEy"),f=n("R9oj")},nVfU:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=p.parsePercent,A=n("7hqr"),m=A.isDimensionStacked,f=n("zM3Q"),h="__ec_stack_",u=.5,a=typeof Float32Array!="undefined"?Float32Array:Array;function i(E){return E.get("stack")||h+E.seriesIndex}function t(E){return E.dim+E.index}function o(E){var C=[],_=E.axis,T="axis0";if(_.type!=="category")return;for(var w=_.getBandWidth(),O=0;O<E.count||0;O++)C.push(y.defaults({bandWidth:w,axisKey:T,stackId:h+O},E));for(var I=s(C),R=[],O=0;O<E.count;O++){var M=I[T][h+O];M.offsetCenter=M.offset+M.width/2,R.push(M)}return R}function e(E,C){var _=[];return C.eachSeriesByType(E,function(T){v(T)&&!b(T)&&_.push(T)}),_}function l(E){var C={};y.each(E,function(M){var F=M.coordinateSystem,P=F.getBaseAxis();if(P.type!=="time"&&P.type!=="value")return;for(var X=M.getData(),B=P.dim+"_"+P.index,j=X.mapDimension(P.dim),W=0,z=X.count();W<z;++W){var V=X.get(j,W);C[B]?C[B].push(V):C[B]=[V]}});var _=[];for(var T in C)if(C.hasOwnProperty(T)){var w=C[T];if(w){w.sort(function(M,F){return M-F});for(var O=null,I=1;I<w.length;++I){var R=w[I]-w[I-1];R>0&&(O=O===null?R:Math.min(O,R))}_[T]=O}}return _}function r(E){var C=l(E),_=[];return y.each(E,function(T){var w=T.coordinateSystem,O=w.getBaseAxis(),I=O.getExtent(),R;if(O.type==="category")R=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var M=O.dim+"_"+O.index,F=C[M],P=Math.abs(I[1]-I[0]),X=O.scale.getExtent(),B=Math.abs(X[1]-X[0]);R=F?P/B*F:P}else{var j=T.getData();R=Math.abs(I[1]-I[0])/j.count()}var W=x(T.get("barWidth"),R),z=x(T.get("barMaxWidth"),R),V=x(T.get("barMinWidth")||1,R),Q=T.get("barGap"),G=T.get("barCategoryGap");_.push({bandWidth:R,barWidth:W,barMaxWidth:z,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(O),stackId:i(T)})}),s(_)}function s(E){var C={};y.each(E,function(T,w){var O=T.axisKey,I=T.bandWidth,R=C[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},M=R.stacks;C[O]=R;var F=T.stackId;M[F]||R.autoWidthCount++,M[F]=M[F]||{width:0,maxWidth:0};var P=T.barWidth;P&&!M[F].width&&(M[F].width=P,P=Math.min(R.remainedWidth,P),R.remainedWidth-=P);var X=T.barMaxWidth;X&&(M[F].maxWidth=X);var B=T.barMinWidth;B&&(M[F].minWidth=B);var j=T.barGap;j!=null&&(R.gap=j);var W=T.barCategoryGap;W!=null&&(R.categoryGap=W)});var _={};return y.each(C,function(T,w){_[w]={};var O=T.stacks,I=T.bandWidth,R=x(T.categoryGap,I),M=x(T.gap,1),F=T.remainedWidth,P=T.autoWidthCount,X=(F-R)/(P+(P-1)*M);X=Math.max(X,0),y.each(O,function(z){var V=z.maxWidth,Q=z.minWidth;if(z.width){var G=z.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),z.width=G,F-=G+M*G,P--}else{var G=X;V&&V<G&&(G=Math.min(V,F)),Q&&Q>G&&(G=Q),G!==X&&(z.width=G,F-=G+M*G,P--)}}),X=(F-R)/(P+(P-1)*M),X=Math.max(X,0);var B=0,j;y.each(O,function(z,V){z.width||(z.width=X),j=z,B+=z.width*(1+M)}),j&&(B-=j.width*M);var W=-B/2;y.each(O,function(z,V){_[w][V]=_[w][V]||{bandWidth:I,offset:W,width:z.width},W+=z.width*(1+M)})}),_}function c(E,C,_){if(E&&C){var T=E[t(C)];return T!=null&&_!=null&&(T=T[i(_)]),T}}function d(E,C){var _=e(E,C),T=r(_),w={},O={};y.each(_,function(I){var R=I.getData(),M=I.coordinateSystem,F=M.getBaseAxis(),P=i(I),X=T[t(F)][P],B=X.offset,j=X.width,W=M.getOtherAxis(F),z=I.get("barMinHeight")||0;w[P]=w[P]||[],O[P]=O[P]||[],R.setLayout({bandWidth:X.bandWidth,offset:B,size:j});for(var V=R.mapDimension(W.dim),Q=R.mapDimension(F.dim),G=m(R,V),re=W.isHorizontal(),ee=S(F,W,G),ue=0,$=R.count();ue<$;ue++){var be=R.get(V,ue),_e=R.get(Q,ue),Ee=be>=0?"p":"n",Xe=ee;G&&(w[P][_e]||(w[P][_e]={p:ee,n:ee}),Xe=w[P][_e][Ee]);var He,nt,Ie,oe;if(re){var ot=M.dataToPoint([be,_e]);He=Xe,nt=ot[1]+B,Ie=ot[0]-ee,oe=j,Math.abs(Ie)<z&&(Ie=(Ie<0?-1:1)*z),isNaN(Ie)||G&&(w[P][_e][Ee]+=Ie)}else{var ot=M.dataToPoint([_e,be]);He=ot[0]+B,nt=Xe,Ie=j,oe=ot[1]-ee,Math.abs(oe)<z&&(oe=(oe<=0?-1:1)*z),isNaN(oe)||G&&(w[P][_e][Ee]+=oe)}R.setItemLayout(ue,{x:He,y:nt,width:Ie,height:oe})}},this)}var g={seriesType:"bar",plan:f(),reset:function(E){if(!v(E)||!b(E))return;var C=E.getData(),_=E.coordinateSystem,T=_.grid.getRect(),w=_.getBaseAxis(),O=_.getOtherAxis(w),I=C.mapDimension(O.dim),R=C.mapDimension(w.dim),M=O.isHorizontal(),F=M?0:1,P=c(r([E]),w,E).width;return P>u||(P=u),{progress:X};function X(B,j){for(var W=B.count,z=new a(W*2),V=new a(W*2),Q=new a(W),G,re=[],ee=[],ue=0,$=0;(G=B.next())!=null;)ee[F]=j.get(I,G),ee[1-F]=j.get(R,G),re=_.dataToPoint(ee,null,re),V[ue]=M?T.x+T.width:re[0],z[ue++]=re[0],V[ue]=M?re[1]:T.y+T.height,z[ue++]=re[1],Q[$++]=G;j.setLayout({largePoints:z,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:P,valueAxisStart:S(w,O,!1),backgroundStart:M?T.x:T.y,valueAxisHorizontal:M})}}};function v(E){return E.coordinateSystem&&E.coordinateSystem.type==="cartesian2d"}function b(E){return E.pipelineContext&&E.pipelineContext.large}function S(E,C,_){return C.toGlobalCoord(C.dataToCoord(C.type==="log"?1:0))}D.getLayoutOnAxis=o,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=d,D.largeLayout=g},ngQI:function(k,D,n){"use strict";n.d(D,"a",function(){return gu}),n.d(D,"b",function(){return Fs}),n.d(D,"c",function(){return an});var y=n("q1tI"),p=n.n(y),x=n("dI71"),A=n("wx14"),m=n("ANjH"),f=n("/MKj");function h(Be,ae){if(Be.length!==ae.length)return!1;for(var Oe=0;Oe<Be.length;Oe++)if(Be[Oe]!==ae[Oe])return!1;return!0}function u(Be,ae){var Oe=Object(y.useState)(function(){return{inputs:ae,result:Be()}})[0],qe=Object(y.useRef)(!0),At=Object(y.useRef)(Oe),Ut=qe.current||Boolean(ae&&At.current.inputs&&h(ae,At.current.inputs)),$t=Ut?At.current:{inputs:ae,result:Be()};return Object(y.useEffect)(function(){qe.current=!1,At.current=$t},[$t]),$t.result}function a(Be,ae){return u(function(){return Be},ae)}var i=u,t=a,o=n("9R94"),e=function(ae){var Oe=ae.top,qe=ae.right,At=ae.bottom,Ut=ae.left,$t=qe-Ut,rr=At-Oe,Wr={top:Oe,right:qe,bottom:At,left:Ut,width:$t,height:rr,x:Ut,y:Oe,center:{x:(qe+Ut)/2,y:(At+Oe)/2}};return Wr},l=function(ae,Oe){return{top:ae.top-Oe.top,left:ae.left-Oe.left,bottom:ae.bottom+Oe.bottom,right:ae.right+Oe.right}},r=function(ae,Oe){return{top:ae.top+Oe.top,left:ae.left+Oe.left,bottom:ae.bottom-Oe.bottom,right:ae.right-Oe.right}},s=function(ae,Oe){return{top:ae.top+Oe.y,left:ae.left+Oe.x,bottom:ae.bottom+Oe.y,right:ae.right+Oe.x}},c={top:0,right:0,bottom:0,left:0},d=function(ae){var Oe=ae.borderBox,qe=ae.margin,At=qe===void 0?c:qe,Ut=ae.border,$t=Ut===void 0?c:Ut,rr=ae.padding,Wr=rr===void 0?c:rr,cn=e(l(Oe,At)),Hr=e(r(Oe,$t)),Ur=e(r(Hr,Wr));return{marginBox:cn,borderBox:e(Oe),paddingBox:Hr,contentBox:Ur,margin:At,border:$t,padding:Wr}},g=function(ae){var Oe=ae.slice(0,-2),qe=ae.slice(-2);if(qe!=="px")return 0;var At=Number(Oe);return isNaN(At)&&Object(o.a)(!1),At},v=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(ae,Oe){var qe=ae.borderBox,At=ae.border,Ut=ae.margin,$t=ae.padding,rr=s(qe,Oe);return d({borderBox:rr,border:At,margin:Ut,padding:$t})},S=function(ae,Oe){return Oe===void 0&&(Oe=v()),b(ae,Oe)},E=function(ae,Oe){var qe={top:g(Oe.marginTop),right:g(Oe.marginRight),bottom:g(Oe.marginBottom),left:g(Oe.marginLeft)},At={top:g(Oe.paddingTop),right:g(Oe.paddingRight),bottom:g(Oe.paddingBottom),left:g(Oe.paddingLeft)},Ut={top:g(Oe.borderTopWidth),right:g(Oe.borderRightWidth),bottom:g(Oe.borderBottomWidth),left:g(Oe.borderLeftWidth)};return d({borderBox:ae,margin:qe,padding:At,border:Ut})},C=function(ae){var Oe=ae.getBoundingClientRect(),qe=window.getComputedStyle(ae);return E(Oe,qe)},_=Number.isNaN||function(ae){return typeof ae=="number"&&ae!==ae};function T(Be,ae){return Be===ae?!0:!!(_(Be)&&_(ae))}function w(Be,ae){if(Be.length!==ae.length)return!1;for(var Oe=0;Oe<Be.length;Oe++)if(!T(Be[Oe],ae[Oe]))return!1;return!0}function O(Be,ae){ae===void 0&&(ae=w);var Oe,qe=[],At,Ut=!1;function $t(){for(var rr=[],Wr=0;Wr<arguments.length;Wr++)rr[Wr]=arguments[Wr];return Ut&&Oe===this&&ae(rr,qe)||(At=Be.apply(this,rr),Ut=!0,Oe=this,qe=rr),At}return $t}var I=O,R=function(ae){var Oe=[],qe=null,At=function(){for(var $t=arguments.length,rr=new Array($t),Wr=0;Wr<$t;Wr++)rr[Wr]=arguments[Wr];if(Oe=rr,qe)return;qe=requestAnimationFrame(function(){qe=null,ae.apply(void 0,Oe)})};return At.cancel=function(){if(!qe)return;cancelAnimationFrame(qe),qe=null},At},M=R,F=n("i8i4"),P=n.n(F),X=!0,B=/[ \t]{2,}/g,j=/^[ \t]*/gm,W=function(ae){return ae.replace(B," ").replace(j,"").trim()},z=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[z(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(Be,ae){var Oe;if(X)return;if(typeof window!="undefined"&&window[Q])return;(Oe=console)[Be].apply(Oe,V(ae))}var re=G.bind(null,"warn"),ee=G.bind(null,"error");function ue(){}function $(Be,ae){return Object(A.a)({},Be,{},ae)}function be(Be,ae,Oe){var qe=ae.map(function(At){var Ut=$(Oe,At.options);return Be.addEventListener(At.eventName,At.fn,Ut),function(){Be.removeEventListener(At.eventName,At.fn,Ut)}});return function(){qe.forEach(function(Ut){Ut()})}}var _e=!0,Ee="Invariant failed";function Xe(Be){this.message=Be}Xe.prototype.toString=function(){return this.message};function He(Be,ae){if(Be)return;throw _e?new Xe(Ee):new Xe(Ee+": "+(ae||""))}var nt=function(Be){Object(x.a)(ae,Be);function ae(){for(var qe,At=arguments.length,Ut=new Array(At),$t=0;$t<At;$t++)Ut[$t]=arguments[$t];return qe=Be.call.apply(Be,[this].concat(Ut))||this,qe.callbacks=null,qe.unbind=ue,qe.onWindowError=function(rr){var Wr=qe.getCallbacks();Wr.isDragging()&&Wr.tryAbort();var cn=rr.error;cn instanceof Xe&&rr.preventDefault()},qe.getCallbacks=function(){if(!qe.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return qe.callbacks},qe.setCallbacks=function(rr){qe.callbacks=rr},qe}var Oe=ae.prototype;return Oe.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},Oe.componentWillUnmount=function(){this.unbind()},Oe.componentDidCatch=function(At){if(At instanceof Xe){this.setState({});return}throw At},Oe.render=function(){return this.props.children(this.setCallbacks)},ae}(p.a.Component),Ie=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,oe=function(ae){return ae+1},ot=function(ae){return`
You have lifted an item in position `+oe(ae.source.index)+`
`},he=function(ae,Oe){var qe=ae.droppableId===Oe.droppableId,At=oe(ae.index),Ut=oe(Oe.index);return qe?`
You have moved the item from position `+At+`
to position `+Ut+`
`:`
You have moved the item from position `+At+`
in list `+ae.droppableId+`
to list `+Oe.droppableId+`
in position `+Ut+`
`},J=function(ae,Oe,qe){var At=Oe.droppableId===qe.droppableId;return At?`
The item `+ae+`
has been combined with `+qe.draggableId:`
The item `+ae+`
in list `+Oe.droppableId+`
has been combined with `+qe.draggableId+`
in list `+qe.droppableId+`
`},Y=function(ae){var Oe=ae.destination;if(Oe)return he(ae.source,Oe);var qe=ae.combine;return qe?J(ae.draggableId,ae.source,qe):"You are over an area that cannot be dropped on"},q=function(ae){return`
The item has returned to its starting position
of `+oe(ae.index)+`
`},fe=function(ae){if(ae.reason==="CANCEL")return`
Movement cancelled.
`+q(ae.source)+`
`;var Oe=ae.destination,qe=ae.combine;return Oe?`
You have dropped the item.
`+he(ae.source,Oe)+`
`:qe?`
You have dropped the item.
`+J(ae.draggableId,ae.source,qe)+`
`:`
The item has been dropped while not over a drop area.
`+q(ae.source)+`
`},we={dragHandleUsageInstructions:Ie,onDragStart:ot,onDragUpdate:Y,onDragEnd:fe},Ne={x:0,y:0},je=function(ae,Oe){return{x:ae.x+Oe.x,y:ae.y+Oe.y}},me=function(ae,Oe){return{x:ae.x-Oe.x,y:ae.y-Oe.y}},Ce=function(ae,Oe){return ae.x===Oe.x&&ae.y===Oe.y},Fe=function(ae){return{x:ae.x!==0?-ae.x:0,y:ae.y!==0?-ae.y:0}},it=function(ae,Oe,qe){var At;return qe===void 0&&(qe=0),At={},At[ae]=Oe,At[ae==="x"?"y":"x"]=qe,At},Ct=function(ae,Oe){return Math.sqrt(Math.pow(Oe.x-ae.x,2)+Math.pow(Oe.y-ae.y,2))},mt=function(ae,Oe){return Math.min.apply(Math,Oe.map(function(qe){return Ct(ae,qe)}))},Ve=function(ae){return function(Oe){return{x:ae(Oe.x),y:ae(Oe.y)}}},or=function(ae,Oe){var qe=e({top:Math.max(Oe.top,ae.top),right:Math.min(Oe.right,ae.right),bottom:Math.min(Oe.bottom,ae.bottom),left:Math.max(Oe.left,ae.left)});return qe.width<=0||qe.height<=0?null:qe},dt=function(ae,Oe){return{top:ae.top+Oe.y,left:ae.left+Oe.x,bottom:ae.bottom+Oe.y,right:ae.right+Oe.x}},Yt=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}]},hr={top:0,right:0,bottom:0,left:0},Gt=function(ae,Oe){return Oe?dt(ae,Oe.scroll.diff.displacement):ae},Pt=function(ae,Oe,qe){if(qe&&qe.increasedBy){var At;return Object(A.a)({},ae,(At={},At[Oe.end]=ae[Oe.end]+qe.increasedBy[Oe.line],At))}return ae},Xt=function(ae,Oe){return Oe&&Oe.shouldClipSubject?or(Oe.pageMarginBox,ae):e(ae)},Ge=function(ae){var Oe=ae.page,qe=ae.withPlaceholder,At=ae.axis,Ut=ae.frame,$t=Gt(Oe.marginBox,Ut),rr=Pt($t,At,qe),Wr=Xt(rr,Ut);return{page:Oe,withPlaceholder:qe,active:Wr}},pe=function(ae,Oe){ae.frame||He(!1);var qe=ae.frame,At=me(Oe,qe.scroll.initial),Ut=Fe(At),$t=Object(A.a)({},qe,{scroll:{initial:qe.scroll.initial,current:Oe,diff:{value:At,displacement:Ut},max:qe.scroll.max}}),rr=Ge({page:ae.subject.page,withPlaceholder:ae.subject.withPlaceholder,axis:ae.axis,frame:$t}),Wr=Object(A.a)({},ae,{frame:$t,subject:rr});return Wr};function se(Be){return Number.isInteger?Number.isInteger(Be):typeof Be=="number"&&isFinite(Be)&&Math.floor(Be)===Be}function lt(Be){return Object.values?Object.values(Be):Object.keys(Be).map(function(ae){return Be[ae]})}function Ze(Be,ae){if(Be.findIndex)return Be.findIndex(ae);for(var Oe=0;Oe<Be.length;Oe++)if(ae(Be[Oe]))return Oe;return-1}function de(Be,ae){if(Be.find)return Be.find(ae);var Oe=Ze(Be,ae);return Oe!==-1?Be[Oe]:void 0}function _t(Be){return Array.prototype.slice.call(Be)}var er=I(function(Be){return Be.reduce(function(ae,Oe){return ae[Oe.descriptor.id]=Oe,ae},{})}),yt=I(function(Be){return Be.reduce(function(ae,Oe){return ae[Oe.descriptor.id]=Oe,ae},{})}),Ar=I(function(Be){return lt(Be)}),Sr=I(function(Be){return lt(Be)}),Cn=I(function(Be,ae){var Oe=Sr(ae).filter(function(qe){return Be===qe.descriptor.droppableId}).sort(function(qe,At){return qe.descriptor.index-At.descriptor.index});return Oe});function mr(Be){return Be.at&&Be.at.type==="REORDER"?Be.at.destination:null}function Pr(Be){return Be.at&&Be.at.type==="COMBINE"?Be.at.combine:null}var gr=I(function(Be,ae){return ae.filter(function(Oe){return Oe.descriptor.id!==Be.descriptor.id})}),Jt=function(ae){var Oe=ae.isMovingForward,qe=ae.draggable,At=ae.destination,Ut=ae.insideDestination,$t=ae.previousImpact;if(!At.isCombineEnabled)return null;var rr=mr($t);if(!rr)return null;function Wr(Ri){var da={type:"COMBINE",combine:{draggableId:Ri,droppableId:At.descriptor.id}};return Object(A.a)({},$t,{at:da})}var cn=$t.displaced.all,Hr=cn.length?cn[0]:null;if(Oe)return Hr?Wr(Hr):null;var Ur=gr(qe,Ut);if(!Hr){if(!Ur.length)return null;var on=Ur[Ur.length-1];return Wr(on.descriptor.id)}var gn=Ze(Ur,function(Ri){return Ri.descriptor.id===Hr});gn!==-1||He(!1);var Hn=gn-1;if(Hn<0)return null;var Oi=Ur[Hn];return Wr(Oi.descriptor.id)},Dt=function(ae,Oe){return ae.descriptor.droppableId===Oe.descriptor.id},dn={point:Ne,value:0},Fn={invisible:{},visible:{},all:[]},Zn={displaced:Fn,displacedBy:dn,at:null},ci=function(ae,Oe){return function(qe){return ae<=qe&&qe<=Oe}},Xi=function(ae){var Oe=ci(ae.top,ae.bottom),qe=ci(ae.left,ae.right);return function(At){var Ut=Oe(At.top)&&Oe(At.bottom)&&qe(At.left)&&qe(At.right);if(Ut)return!0;var $t=Oe(At.top)||Oe(At.bottom),rr=qe(At.left)||qe(At.right),Wr=$t&&rr;if(Wr)return!0;var cn=At.top<ae.top&&At.bottom>ae.bottom,Hr=At.left<ae.left&&At.right>ae.right,Ur=cn&&Hr;if(Ur)return!0;var on=cn&&rr||Hr&&$t;return on}},Gn=function(ae){var Oe=ci(ae.top,ae.bottom),qe=ci(ae.left,ae.right);return function(At){var Ut=Oe(At.top)&&Oe(At.bottom)&&qe(At.left)&&qe(At.right);return Ut}},ei={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Zt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Nt=function(ae){return function(Oe){var qe=ci(Oe.top,Oe.bottom),At=ci(Oe.left,Oe.right);return function(Ut){return ae===ei?qe(Ut.top)&&qe(Ut.bottom):At(Ut.left)&&At(Ut.right)}}},Me=function(ae,Oe){var qe=Oe.frame?Oe.frame.scroll.diff.displacement:Ne;return dt(ae,qe)},ke=function(ae,Oe,qe){return Oe.subject.active?qe(Oe.subject.active)(ae):!1},Pe=function(ae,Oe,qe){return qe(Oe)(ae)},tt=function(ae){var Oe=ae.target,qe=ae.destination,At=ae.viewport,Ut=ae.withDroppableDisplacement,$t=ae.isVisibleThroughFrameFn,rr=Ut?Me(Oe,qe):Oe;return ke(rr,qe,$t)&&Pe(rr,At,$t)},vt=function(ae){return tt(Object(A.a)({},ae,{isVisibleThroughFrameFn:Xi}))},St=function(ae){return tt(Object(A.a)({},ae,{isVisibleThroughFrameFn:Gn}))},Vt=function(ae){return tt(Object(A.a)({},ae,{isVisibleThroughFrameFn:Nt(ae.destination.axis)}))},Mr=function(ae,Oe,qe){if(typeof qe=="boolean")return qe;if(!Oe)return!0;var At=Oe.invisible,Ut=Oe.visible;if(At[ae])return!1;var $t=Ut[ae];return $t?$t.shouldAnimate:!0};function $r(Be,ae){var Oe=Be.page.marginBox,qe={top:ae.point.y,right:0,bottom:0,left:ae.point.x};return e(l(Oe,qe))}function vn(Be){var ae=Be.afterDragging,Oe=Be.destination,qe=Be.displacedBy,At=Be.viewport,Ut=Be.forceShouldAnimate,$t=Be.last;return ae.reduce(function(Wr,cn){var Hr=$r(cn,qe),Ur=cn.descriptor.id;Wr.all.push(Ur);var on=vt({target:Hr,destination:Oe,viewport:At,withDroppableDisplacement:!0});if(!on)return Wr.invisible[cn.descriptor.id]=!0,Wr;var gn=Mr(Ur,$t,Ut),Hn={draggableId:Ur,shouldAnimate:gn};return Wr.visible[Ur]=Hn,Wr},{all:[],visible:{},invisible:{}})}function jt(Be,ae){if(!Be.length)return 0;var Oe=Be[Be.length-1].descriptor.index;return ae.inHomeList?Oe:Oe+1}function gt(Be){var ae=Be.insideDestination,Oe=Be.inHomeList,qe=Be.displacedBy,At=Be.destination,Ut=jt(ae,{inHomeList:Oe});return{displaced:Fn,displacedBy:qe,at:{type:"REORDER",destination:{droppableId:At.descriptor.id,index:Ut}}}}function pt(Be){var ae=Be.draggable,Oe=Be.insideDestination,qe=Be.destination,At=Be.viewport,Ut=Be.displacedBy,$t=Be.last,rr=Be.index,Wr=Be.forceShouldAnimate,cn=Dt(ae,qe);if(rr==null)return gt({insideDestination:Oe,inHomeList:cn,displacedBy:Ut,destination:qe});var Hr=de(Oe,function(Oi){return Oi.descriptor.index===rr});if(!Hr)return gt({insideDestination:Oe,inHomeList:cn,displacedBy:Ut,destination:qe});var Ur=gr(ae,Oe),on=Oe.indexOf(Hr),gn=Ur.slice(on),Hn=vn({afterDragging:gn,destination:qe,displacedBy:Ut,last:$t,viewport:At.frame,forceShouldAnimate:Wr});return{displaced:Hn,displacedBy:Ut,at:{type:"REORDER",destination:{droppableId:qe.descriptor.id,index:rr}}}}function ar(Be,ae){return Boolean(ae.effected[Be])}var Ht=function(ae){var Oe=ae.isMovingForward,qe=ae.destination,At=ae.draggables,Ut=ae.combine,$t=ae.afterCritical;if(!qe.isCombineEnabled)return null;var rr=Ut.draggableId,Wr=At[rr],cn=Wr.descriptor.index,Hr=ar(rr,$t);return Hr?Oe?cn:cn-1:Oe?cn+1:cn},Mt=function(ae){var Oe=ae.isMovingForward,qe=ae.isInHomeList,At=ae.insideDestination,Ut=ae.location;if(!At.length)return null;var $t=Ut.index,rr=Oe?$t+1:$t-1,Wr=At[0].descriptor.index,cn=At[At.length-1].descriptor.index,Hr=qe?cn:cn+1;return rr<Wr||rr>Hr?null:rr},qt=function(ae){var Oe=ae.isMovingForward,qe=ae.isInHomeList,At=ae.draggable,Ut=ae.draggables,$t=ae.destination,rr=ae.insideDestination,Wr=ae.previousImpact,cn=ae.viewport,Hr=ae.afterCritical,Ur=Wr.at;if(Ur||He(!1),Ur.type==="REORDER"){var on=Mt({isMovingForward:Oe,isInHomeList:qe,location:Ur.destination,insideDestination:rr});return on==null?null:pt({draggable:At,insideDestination:rr,destination:$t,viewport:cn,last:Wr.displaced,displacedBy:Wr.displacedBy,index:on})}var gn=Ht({isMovingForward:Oe,destination:$t,displaced:Wr.displaced,draggables:Ut,combine:Ur.combine,afterCritical:Hr});return gn==null?null:pt({draggable:At,insideDestination:rr,destination:$t,viewport:cn,last:Wr.displaced,displacedBy:Wr.displacedBy,index:gn})},Rt=function(ae){var Oe=ae.displaced,qe=ae.afterCritical,At=ae.combineWith,Ut=ae.displacedBy,$t=Boolean(Oe.visible[At]||Oe.invisible[At]);return ar(At,qe)?$t?Ne:Fe(Ut.point):$t?Ut.point:Ne},Qt=function(ae){var Oe=ae.afterCritical,qe=ae.impact,At=ae.draggables,Ut=Pr(qe);Ut||He(!1);var $t=Ut.draggableId,rr=At[$t].page.borderBox.center,Wr=Rt({displaced:qe.displaced,afterCritical:Oe,combineWith:$t,displacedBy:qe.displacedBy});return je(rr,Wr)},jr=function(ae,Oe){return Oe.margin[ae.start]+Oe.borderBox[ae.size]/2},Nr=function(ae,Oe){return Oe.margin[ae.end]+Oe.borderBox[ae.size]/2},Lr=function(ae,Oe,qe){return Oe[ae.crossAxisStart]+qe.margin[ae.crossAxisStart]+qe.borderBox[ae.crossAxisSize]/2},ln=function(ae){var Oe=ae.axis,qe=ae.moveRelativeTo,At=ae.isMoving;return it(Oe.line,qe.marginBox[Oe.end]+jr(Oe,At),Lr(Oe,qe.marginBox,At))},mn=function(ae){var Oe=ae.axis,qe=ae.moveRelativeTo,At=ae.isMoving;return it(Oe.line,qe.marginBox[Oe.start]-Nr(Oe,At),Lr(Oe,qe.marginBox,At))},ti=function(ae){var Oe=ae.axis,qe=ae.moveInto,At=ae.isMoving;return it(Oe.line,qe.contentBox[Oe.start]+jr(Oe,At),Lr(Oe,qe.contentBox,At))},$n=function(ae){var Oe=ae.impact,qe=ae.draggable,At=ae.draggables,Ut=ae.droppable,$t=ae.afterCritical,rr=Cn(Ut.descriptor.id,At),Wr=qe.page,cn=Ut.axis;if(!rr.length)return ti({axis:cn,moveInto:Ut.page,isMoving:Wr});var Hr=Oe.displaced,Ur=Oe.displacedBy,on=Hr.all[0];if(on){var gn=At[on];if(ar(on,$t))return mn({axis:cn,moveRelativeTo:gn.page,isMoving:Wr});var Hn=b(gn.page,Ur.point);return mn({axis:cn,moveRelativeTo:Hn,isMoving:Wr})}var Oi=rr[rr.length-1];if(Oi.descriptor.id===qe.descriptor.id)return Wr.borderBox.center;if(ar(Oi.descriptor.id,$t)){var Ri=b(Oi.page,Fe($t.displacedBy.point));return ln({axis:cn,moveRelativeTo:Ri,isMoving:Wr})}return ln({axis:cn,moveRelativeTo:Oi.page,isMoving:Wr})},hi=function(ae,Oe){var qe=ae.frame;return qe?je(Oe,qe.scroll.diff.displacement):Oe},Ti=function(ae){var Oe=ae.impact,qe=ae.draggable,At=ae.droppable,Ut=ae.draggables,$t=ae.afterCritical,rr=qe.page.borderBox.center,Wr=Oe.at;return At&&Wr?Wr.type==="REORDER"?$n({impact:Oe,draggable:qe,draggables:Ut,droppable:At,afterCritical:$t}):Qt({impact:Oe,draggables:Ut,afterCritical:$t}):rr},Ni=function(ae){var Oe=Ti(ae),qe=ae.droppable,At=qe?hi(qe,Oe):Oe;return At},Wi=function(ae,Oe){var qe=me(Oe,ae.scroll.initial),At=Fe(qe),Ut=e({top:Oe.y,bottom:Oe.y+ae.frame.height,left:Oe.x,right:Oe.x+ae.frame.width}),$t={frame:Ut,scroll:{initial:ae.scroll.initial,max:ae.scroll.max,current:Oe,diff:{value:qe,displacement:At}}};return $t};function rt(Be,ae){return Be.map(function(Oe){return ae[Oe]})}function Re(Be,ae){for(var Oe=0;Oe<ae.length;Oe++){var qe=ae[Oe].visible[Be];if(qe)return qe}return null}var Ue=function(ae){var Oe=ae.impact,qe=ae.viewport,At=ae.destination,Ut=ae.draggables,$t=ae.maxScrollChange,rr=Wi(qe,je(qe.scroll.current,$t)),Wr=At.frame?pe(At,je(At.frame.scroll.current,$t)):At,cn=Oe.displaced,Hr=vn({afterDragging:rt(cn.all,Ut),destination:At,displacedBy:Oe.displacedBy,viewport:rr.frame,last:cn,forceShouldAnimate:!1}),Ur=vn({afterDragging:rt(cn.all,Ut),destination:Wr,displacedBy:Oe.displacedBy,viewport:qe.frame,last:cn,forceShouldAnimate:!1}),on={},gn={},Hn=[cn,Hr,Ur];cn.all.forEach(function(Ri){var da=Re(Ri,Hn);if(da){gn[Ri]=da;return}on[Ri]=!0});var Oi=Object(A.a)({},Oe,{displaced:{all:cn.all,invisible:on,visible:gn}});return Oi},Ye=function(ae,Oe){return je(ae.scroll.diff.displacement,Oe)},et=function(ae){var Oe=ae.pageBorderBoxCenter,qe=ae.draggable,At=ae.viewport,Ut=Ye(At,Oe),$t=me(Ut,qe.page.borderBox.center);return je(qe.client.borderBox.center,$t)},$e=function(ae){var Oe=ae.draggable,qe=ae.destination,At=ae.newPageBorderBoxCenter,Ut=ae.viewport,$t=ae.withDroppableDisplacement,rr=ae.onlyOnMainAxis,Wr=rr===void 0?!1:rr,cn=me(At,Oe.page.borderBox.center),Hr=dt(Oe.page.borderBox,cn),Ur={target:Hr,destination:qe,withDroppableDisplacement:$t,viewport:Ut};return Wr?Vt(Ur):St(Ur)},at=function(ae){var Oe=ae.isMovingForward,qe=ae.draggable,At=ae.destination,Ut=ae.draggables,$t=ae.previousImpact,rr=ae.viewport,Wr=ae.previousPageBorderBoxCenter,cn=ae.previousClientSelection,Hr=ae.afterCritical;if(!At.isEnabled)return null;var Ur=Cn(At.descriptor.id,Ut),on=Dt(qe,At),gn=Jt({isMovingForward:Oe,draggable:qe,destination:At,insideDestination:Ur,previousImpact:$t})||qt({isMovingForward:Oe,isInHomeList:on,draggable:qe,draggables:Ut,destination:At,insideDestination:Ur,previousImpact:$t,viewport:rr,afterCritical:Hr});if(!gn)return null;var Hn=Ni({impact:gn,draggable:qe,droppable:At,draggables:Ut,afterCritical:Hr}),Oi=$e({draggable:qe,destination:At,newPageBorderBoxCenter:Hn,viewport:rr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Oi){var Ri=et({pageBorderBoxCenter:Hn,draggable:qe,viewport:rr});return{clientSelection:Ri,impact:gn,scrollJumpRequest:null}}var da=me(Hn,Wr),Ji=Ue({impact:gn,viewport:rr,destination:At,draggables:Ut,maxScrollChange:da});return{clientSelection:cn,impact:Ji,scrollJumpRequest:da}},wt=function(ae){var Oe=ae.subject.active;return Oe||He(!1),Oe},ft=function(ae){var Oe=ae.isMovingForward,qe=ae.pageBorderBoxCenter,At=ae.source,Ut=ae.droppables,$t=ae.viewport,rr=At.subject.active;if(!rr)return null;var Wr=At.axis,cn=ci(rr[Wr.start],rr[Wr.end]),Hr=Ar(Ut).filter(function(on){return on!==At}).filter(function(on){return on.isEnabled}).filter(function(on){return Boolean(on.subject.active)}).filter(function(on){return Xi($t.frame)(wt(on))}).filter(function(on){var gn=wt(on);return Oe?rr[Wr.crossAxisEnd]<gn[Wr.crossAxisEnd]:gn[Wr.crossAxisStart]<rr[Wr.crossAxisStart]}).filter(function(on){var gn=wt(on),Hn=ci(gn[Wr.start],gn[Wr.end]);return cn(gn[Wr.start])||cn(gn[Wr.end])||Hn(rr[Wr.start])||Hn(rr[Wr.end])}).sort(function(on,gn){var Hn=wt(on)[Wr.crossAxisStart],Oi=wt(gn)[Wr.crossAxisStart];return Oe?Hn-Oi:Oi-Hn}).filter(function(on,gn,Hn){return wt(on)[Wr.crossAxisStart]===wt(Hn[0])[Wr.crossAxisStart]});if(!Hr.length)return null;if(Hr.length===1)return Hr[0];var Ur=Hr.filter(function(on){var gn=ci(wt(on)[Wr.start],wt(on)[Wr.end]);return gn(qe[Wr.line])});return Ur.length===1?Ur[0]:Ur.length>1?Ur.sort(function(on,gn){return wt(on)[Wr.start]-wt(gn)[Wr.start]})[0]:Hr.sort(function(on,gn){var Hn=mt(qe,Yt(wt(on))),Oi=mt(qe,Yt(wt(gn)));return Hn!==Oi?Hn-Oi:wt(on)[Wr.start]-wt(gn)[Wr.start]})[0]},cr=function(ae,Oe){var qe=ae.page.borderBox.center;return ar(ae.descriptor.id,Oe)?me(qe,Oe.displacedBy.point):qe},Jr=function(ae,Oe){var qe=ae.page.borderBox;return ar(ae.descriptor.id,Oe)?dt(qe,Fe(Oe.displacedBy.point)):qe},Qr=function(ae){var Oe=ae.pageBorderBoxCenter,qe=ae.viewport,At=ae.destination,Ut=ae.insideDestination,$t=ae.afterCritical,rr=Ut.filter(function(Wr){return St({target:Jr(Wr,$t),destination:At,viewport:qe.frame,withDroppableDisplacement:!0})}).sort(function(Wr,cn){var Hr=Ct(Oe,hi(At,cr(Wr,$t))),Ur=Ct(Oe,hi(At,cr(cn,$t)));return Hr<Ur?-1:Ur<Hr?1:Wr.descriptor.index-cn.descriptor.index});return rr[0]||null},fn=I(function(ae,Oe){var qe=Oe[ae.line];return{value:qe,point:it(ae.line,qe)}}),pr=function(ae,Oe,qe){var At=ae.axis;if(ae.descriptor.mode==="virtual")return it(At.line,Oe[At.line]);var Ut=ae.subject.page.contentBox[At.size],$t=Cn(ae.descriptor.id,qe),rr=$t.reduce(function(Hr,Ur){return Hr+Ur.client.marginBox[At.size]},0),Wr=rr+Oe[At.line],cn=Wr-Ut;return cn<=0?null:it(At.line,cn)},Wn=function(ae,Oe){return Object(A.a)({},ae,{scroll:Object(A.a)({},ae.scroll,{max:Oe})})},kr=function(ae,Oe,qe){var At=ae.frame;Dt(Oe,ae)&&He(!1),ae.subject.withPlaceholder&&He(!1);var Ut=fn(ae.axis,Oe.displaceBy).point,$t=pr(ae,Ut,qe),rr={placeholderSize:Ut,increasedBy:$t,oldFrameMaxScroll:ae.frame?ae.frame.scroll.max:null};if(!At){var Wr=Ge({page:ae.subject.page,withPlaceholder:rr,axis:ae.axis,frame:ae.frame});return Object(A.a)({},ae,{subject:Wr})}var cn=$t?je(At.scroll.max,$t):At.scroll.max,Hr=Wn(At,cn),Ur=Ge({page:ae.subject.page,withPlaceholder:rr,axis:ae.axis,frame:Hr});return Object(A.a)({},ae,{subject:Ur,frame:Hr})},kn=function(ae){var Oe=ae.subject.withPlaceholder;Oe||He(!1);var qe=ae.frame;if(!qe){var At=Ge({page:ae.subject.page,axis:ae.axis,frame:null,withPlaceholder:null});return Object(A.a)({},ae,{subject:At})}var Ut=Oe.oldFrameMaxScroll;Ut||He(!1);var $t=Wn(qe,Ut),rr=Ge({page:ae.subject.page,axis:ae.axis,frame:$t,withPlaceholder:null});return Object(A.a)({},ae,{subject:rr,frame:$t})},bn=function(ae){var Oe=ae.previousPageBorderBoxCenter,qe=ae.moveRelativeTo,At=ae.insideDestination,Ut=ae.draggable,$t=ae.draggables,rr=ae.destination,Wr=ae.viewport,cn=ae.afterCritical;if(!qe){if(At.length)return null;var Hr={displaced:Fn,displacedBy:dn,at:{type:"REORDER",destination:{droppableId:rr.descriptor.id,index:0}}},Ur=Ni({impact:Hr,draggable:Ut,droppable:rr,draggables:$t,afterCritical:cn}),on=Dt(Ut,rr)?rr:kr(rr,Ut,$t),gn=$e({draggable:Ut,destination:on,newPageBorderBoxCenter:Ur,viewport:Wr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return gn?Hr:null}var Hn=Boolean(Oe[rr.axis.line]<=qe.page.borderBox.center[rr.axis.line]),Oi=function(){var da=qe.descriptor.index;return qe.descriptor.id===Ut.descriptor.id||Hn?da:da+1}(),Ri=fn(rr.axis,Ut.displaceBy);return pt({draggable:Ut,insideDestination:At,destination:rr,viewport:Wr,displacedBy:Ri,last:Fn,index:Oi})},qr=function(ae){var Oe=ae.isMovingForward,qe=ae.previousPageBorderBoxCenter,At=ae.draggable,Ut=ae.isOver,$t=ae.draggables,rr=ae.droppables,Wr=ae.viewport,cn=ae.afterCritical,Hr=ft({isMovingForward:Oe,pageBorderBoxCenter:qe,source:Ut,droppables:rr,viewport:Wr});if(!Hr)return null;var Ur=Cn(Hr.descriptor.id,$t),on=Qr({pageBorderBoxCenter:qe,viewport:Wr,destination:Hr,insideDestination:Ur,afterCritical:cn}),gn=bn({previousPageBorderBoxCenter:qe,destination:Hr,draggable:At,draggables:$t,moveRelativeTo:on,insideDestination:Ur,viewport:Wr,afterCritical:cn});if(!gn)return null;var Hn=Ni({impact:gn,draggable:At,droppable:Hr,draggables:$t,afterCritical:cn}),Oi=et({pageBorderBoxCenter:Hn,draggable:At,viewport:Wr});return{clientSelection:Oi,impact:gn,scrollJumpRequest:null}},fi=function(ae){var Oe=ae.at;return Oe?Oe.type==="REORDER"?Oe.destination.droppableId:Oe.combine.droppableId:null},Mi=function(ae,Oe){var qe=fi(ae);return qe?Oe[qe]:null},Zi=function(ae){var Oe=ae.state,qe=ae.type,At=Mi(Oe.impact,Oe.dimensions.droppables),Ut=Boolean(At),$t=Oe.dimensions.droppables[Oe.critical.droppable.id],rr=At||$t,Wr=rr.axis.direction,cn=Wr==="vertical"&&(qe==="MOVE_UP"||qe==="MOVE_DOWN")||Wr==="horizontal"&&(qe==="MOVE_LEFT"||qe==="MOVE_RIGHT");if(cn&&!Ut)return null;var Hr=qe==="MOVE_DOWN"||qe==="MOVE_RIGHT",Ur=Oe.dimensions.draggables[Oe.critical.draggable.id],on=Oe.current.page.borderBoxCenter,gn=Oe.dimensions,Hn=gn.draggables,Oi=gn.droppables;return cn?at({isMovingForward:Hr,previousPageBorderBoxCenter:on,draggable:Ur,destination:rr,draggables:Hn,viewport:Oe.viewport,previousClientSelection:Oe.current.client.selection,previousImpact:Oe.impact,afterCritical:Oe.afterCritical}):qr({isMovingForward:Hr,previousPageBorderBoxCenter:on,draggable:Ur,isOver:rr,draggables:Hn,droppables:Oi,viewport:Oe.viewport,afterCritical:Oe.afterCritical})};function tn(Be){return Be.phase==="DRAGGING"||Be.phase==="COLLECTING"}function En(Be){var ae=ci(Be.top,Be.bottom),Oe=ci(Be.left,Be.right);return function(At){return ae(At.y)&&Oe(At.x)}}function Vn(Be,ae){return Be.left<ae.right&&Be.right>ae.left&&Be.top<ae.bottom&&Be.bottom>ae.top}function Wt(Be){var ae=Be.pageBorderBox,Oe=Be.draggable,qe=Be.candidates,At=Oe.page.borderBox.center,Ut=qe.map(function($t){var rr=$t.axis,Wr=it($t.axis.line,ae.center[rr.line],$t.page.borderBox.center[rr.crossAxisLine]);return{id:$t.descriptor.id,distance:Ct(At,Wr)}}).sort(function($t,rr){return rr.distance-$t.distance});return Ut[0]?Ut[0].id:null}function Et(Be){var ae=Be.pageBorderBox,Oe=Be.draggable,qe=Be.droppables,At=Ar(qe).filter(function(Ut){if(!Ut.isEnabled)return!1;var $t=Ut.subject.active;if(!$t)return!1;if(!Vn(ae,$t))return!1;if(En($t)(ae.center))return!0;var rr=Ut.axis,Wr=$t.center[rr.crossAxisLine],cn=ae[rr.crossAxisStart],Hr=ae[rr.crossAxisEnd],Ur=ci($t[rr.crossAxisStart],$t[rr.crossAxisEnd]),on=Ur(cn),gn=Ur(Hr);return!on&&!gn?!0:on?cn<Wr:Hr>Wr});return At.length?At.length===1?At[0].descriptor.id:Wt({pageBorderBox:ae,draggable:Oe,candidates:At}):null}var kt=function(ae,Oe){return e(dt(ae,Oe))},Bt=function(ae,Oe){var qe=ae.frame;return qe?kt(Oe,qe.scroll.diff.value):Oe};function Kt(Be){var ae=Be.displaced,Oe=Be.id;return Boolean(ae.visible[Oe]||ae.invisible[Oe])}function Ot(Be){var ae=Be.draggable,Oe=Be.closest,qe=Be.inHomeList;return Oe?qe&&Oe.descriptor.index>ae.descriptor.index?Oe.descriptor.index-1:Oe.descriptor.index:null}var sr=function(ae){var Oe=ae.pageBorderBoxWithDroppableScroll,qe=ae.draggable,At=ae.destination,Ut=ae.insideDestination,$t=ae.last,rr=ae.viewport,Wr=ae.afterCritical,cn=At.axis,Hr=fn(At.axis,qe.displaceBy),Ur=Hr.value,on=Oe[cn.start],gn=Oe[cn.end],Hn=gr(qe,Ut),Oi=de(Hn,function(da){var Ji=da.descriptor.id,Qa=da.page.borderBox.center[cn.line],ya=ar(Ji,Wr),fo=Kt({displaced:$t,id:Ji});return ya?fo?gn<=Qa:on<Qa-Ur:fo?gn<=Qa+Ur:on<Qa}),Ri=Ot({draggable:qe,closest:Oi,inHomeList:Dt(qe,At)});return pt({draggable:qe,insideDestination:Ut,destination:At,viewport:rr,last:$t,displacedBy:Hr,index:Ri})},fr=4,vr=function(ae){var Oe=ae.draggable,qe=ae.pageBorderBoxWithDroppableScroll,At=ae.previousImpact,Ut=ae.destination,$t=ae.insideDestination,rr=ae.afterCritical;if(!Ut.isCombineEnabled)return null;var Wr=Ut.axis,cn=fn(Ut.axis,Oe.displaceBy),Hr=cn.value,Ur=qe[Wr.start],on=qe[Wr.end],gn=gr(Oe,$t),Hn=de(gn,function(Ri){var da=Ri.descriptor.id,Ji=Ri.page.borderBox,Qa=Ji[Wr.size],ya=Qa/fr,fo=ar(da,rr),za=Kt({displaced:At.displaced,id:da});return fo?za?on>Ji[Wr.start]+ya&&on<Ji[Wr.end]-ya:Ur>Ji[Wr.start]-Hr+ya&&Ur<Ji[Wr.end]-Hr-ya:za?on>Ji[Wr.start]+Hr+ya&&on<Ji[Wr.end]+Hr-ya:Ur>Ji[Wr.start]+ya&&Ur<Ji[Wr.end]-ya});if(!Hn)return null;var Oi={displacedBy:cn,displaced:At.displaced,at:{type:"COMBINE",combine:{draggableId:Hn.descriptor.id,droppableId:Ut.descriptor.id}}};return Oi},Rr=function(ae){var Oe=ae.pageOffset,qe=ae.draggable,At=ae.draggables,Ut=ae.droppables,$t=ae.previousImpact,rr=ae.viewport,Wr=ae.afterCritical,cn=kt(qe.page.borderBox,Oe),Hr=Et({pageBorderBox:cn,draggable:qe,droppables:Ut});if(!Hr)return Zn;var Ur=Ut[Hr],on=Cn(Ur.descriptor.id,At),gn=Bt(Ur,cn);return vr({pageBorderBoxWithDroppableScroll:gn,draggable:qe,previousImpact:$t,destination:Ur,insideDestination:on,afterCritical:Wr})||sr({pageBorderBoxWithDroppableScroll:gn,draggable:qe,destination:Ur,insideDestination:on,last:$t.displaced,viewport:rr,afterCritical:Wr})},Kn=function(ae,Oe){var qe;return Object(A.a)({},ae,(qe={},qe[Oe.descriptor.id]=Oe,qe))},Dn=function(ae){var Oe=ae.previousImpact,qe=ae.impact,At=ae.droppables,Ut=fi(Oe),$t=fi(qe);if(!Ut)return At;if(Ut===$t)return At;var rr=At[Ut];if(!rr.subject.withPlaceholder)return At;var Wr=kn(rr);return Kn(At,Wr)},ui=function(ae){var Oe=ae.draggable,qe=ae.draggables,At=ae.droppables,Ut=ae.previousImpact,$t=ae.impact,rr=Dn({previousImpact:Ut,impact:$t,droppables:At}),Wr=fi($t);if(!Wr)return rr;var cn=At[Wr];if(Dt(Oe,cn))return rr;if(cn.subject.withPlaceholder)return rr;var Hr=kr(cn,Oe,qe);return Kn(rr,Hr)},pn=function(ae){var Oe=ae.state,qe=ae.clientSelection,At=ae.dimensions,Ut=ae.viewport,$t=ae.impact,rr=ae.scrollJumpRequest,Wr=Ut||Oe.viewport,cn=At||Oe.dimensions,Hr=qe||Oe.current.client.selection,Ur=me(Hr,Oe.initial.client.selection),on={offset:Ur,selection:Hr,borderBoxCenter:je(Oe.initial.client.borderBoxCenter,Ur)},gn={selection:je(on.selection,Wr.scroll.current),borderBoxCenter:je(on.borderBoxCenter,Wr.scroll.current),offset:je(on.offset,Wr.scroll.diff.value)},Hn={client:on,page:gn};if(Oe.phase==="COLLECTING")return Object(A.a)({phase:"COLLECTING"},Oe,{dimensions:cn,viewport:Wr,current:Hn});var Oi=cn.draggables[Oe.critical.draggable.id],Ri=$t||Rr({pageOffset:gn.offset,draggable:Oi,draggables:cn.draggables,droppables:cn.droppables,previousImpact:Oe.impact,viewport:Wr,afterCritical:Oe.afterCritical}),da=ui({draggable:Oi,impact:Ri,previousImpact:Oe.impact,draggables:cn.draggables,droppables:cn.droppables}),Ji=Object(A.a)({},Oe,{current:Hn,dimensions:{draggables:cn.draggables,droppables:da},impact:Ri,viewport:Wr,scrollJumpRequest:rr||null,forceShouldAnimate:rr?!1:null});return Ji};function Br(Be,ae){return Be.map(function(Oe){return ae[Oe]})}var Tn=function(ae){var Oe=ae.impact,qe=ae.viewport,At=ae.draggables,Ut=ae.destination,$t=ae.forceShouldAnimate,rr=Oe.displaced,Wr=Br(rr.all,At),cn=vn({afterDragging:Wr,destination:Ut,displacedBy:Oe.displacedBy,viewport:qe.frame,forceShouldAnimate:$t,last:rr});return Object(A.a)({},Oe,{displaced:cn})},zn=function(ae){var Oe=ae.impact,qe=ae.draggable,At=ae.droppable,Ut=ae.draggables,$t=ae.viewport,rr=ae.afterCritical,Wr=Ni({impact:Oe,draggable:qe,draggables:Ut,droppable:At,afterCritical:rr});return et({pageBorderBoxCenter:Wr,draggable:qe,viewport:$t})},Qn=function(ae){var Oe=ae.state,qe=ae.dimensions,At=ae.viewport;Oe.movementMode==="SNAP"||He(!1);var Ut=Oe.impact,$t=At||Oe.viewport,rr=qe||Oe.dimensions,Wr=rr.draggables,cn=rr.droppables,Hr=Wr[Oe.critical.draggable.id],Ur=fi(Ut);Ur||He(!1);var on=cn[Ur],gn=Tn({impact:Ut,viewport:$t,destination:on,draggables:Wr}),Hn=zn({impact:gn,draggable:Hr,droppable:on,draggables:Wr,viewport:$t,afterCritical:Oe.afterCritical});return pn({impact:gn,clientSelection:Hn,state:Oe,dimensions:rr,viewport:$t})},ii=function(ae){return{index:ae.index,droppableId:ae.droppableId}},xi=function(ae){var Oe=ae.draggable,qe=ae.home,At=ae.draggables,Ut=ae.viewport,$t=fn(qe.axis,Oe.displaceBy),rr=Cn(qe.descriptor.id,At),Wr=rr.indexOf(Oe);Wr!==-1||He(!1);var cn=rr.slice(Wr+1),Hr=cn.reduce(function(Hn,Oi){return Hn[Oi.descriptor.id]=!0,Hn},{}),Ur={inVirtualList:qe.descriptor.mode==="virtual",displacedBy:$t,effected:Hr},on=vn({afterDragging:cn,destination:qe,displacedBy:$t,last:null,viewport:Ut.frame,forceShouldAnimate:!1}),gn={displaced:on,displacedBy:$t,at:{type:"REORDER",destination:ii(Oe.descriptor)}};return{impact:gn,afterCritical:Ur}},Di=function(ae,Oe){return{draggables:ae.draggables,droppables:Kn(ae.droppables,Oe)}},Li=function(ae){},oa=function(ae){},ma=function(ae){var Oe=ae.draggable,qe=ae.offset,At=ae.initialWindowScroll,Ut=b(Oe.client,qe),$t=S(Ut,At),rr=Object(A.a)({},Oe,{placeholder:Object(A.a)({},Oe.placeholder,{client:Ut}),client:Ut,page:$t});return rr},ia=function(ae){var Oe=ae.frame;return Oe||He(!1),Oe},ba=function(ae){var Oe=ae.additions,qe=ae.updatedDroppables,At=ae.viewport,Ut=At.scroll.diff.value;return Oe.map(function($t){var rr=$t.descriptor.droppableId,Wr=qe[rr],cn=ia(Wr),Hr=cn.scroll.diff.value,Ur=je(Ut,Hr),on=ma({draggable:$t,offset:Ur,initialWindowScroll:At.scroll.initial});return on})},vi=function(ae){var Oe=ae.state,qe=ae.published;Li();var At=qe.modified.map(function(ya){var fo=Oe.dimensions.droppables[ya.droppableId],za=pe(fo,ya.scroll);return za}),Ut=Object(A.a)({},Oe.dimensions.droppables,{},er(At)),$t=yt(ba({additions:qe.additions,updatedDroppables:Ut,viewport:Oe.viewport})),rr=Object(A.a)({},Oe.dimensions.draggables,{},$t);qe.removals.forEach(function(ya){delete rr[ya]});var Wr={droppables:Ut,draggables:rr},cn=fi(Oe.impact),Hr=cn?Wr.droppables[cn]:null,Ur=Wr.draggables[Oe.critical.draggable.id],on=Wr.droppables[Oe.critical.droppable.id],gn=xi({draggable:Ur,home:on,draggables:rr,viewport:Oe.viewport}),Hn=gn.impact,Oi=gn.afterCritical,Ri=Hr&&Hr.isCombineEnabled?Oe.impact:Hn,da=Rr({pageOffset:Oe.current.page.offset,draggable:Wr.draggables[Oe.critical.draggable.id],draggables:Wr.draggables,droppables:Wr.droppables,previousImpact:Ri,viewport:Oe.viewport,afterCritical:Oi});oa();var Ji=Object(A.a)({phase:"DRAGGING"},Oe,{phase:"DRAGGING",impact:da,onLiftImpact:Hn,dimensions:Wr,afterCritical:Oi,forceShouldAnimate:!1});if(Oe.phase==="COLLECTING")return Ji;var Qa=Object(A.a)({phase:"DROP_PENDING"},Ji,{phase:"DROP_PENDING",reason:Oe.reason,isWaiting:!1});return Qa},Ln=function(ae){return ae.movementMode==="SNAP"},Fi=function(ae,Oe,qe){var At=Di(ae.dimensions,Oe);return!Ln(ae)||qe?pn({state:ae,dimensions:At}):Qn({state:ae,dimensions:At})};function ha(Be){return Be.isDragging&&Be.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},Be,{scrollJumpRequest:null}):Be}var ea={phase:"IDLE",completed:null,shouldFlush:!1},aa=function(ae,Oe){if(ae===void 0&&(ae=ea),Oe.type==="FLUSH")return Object(A.a)({},ea,{shouldFlush:!0});if(Oe.type==="INITIAL_PUBLISH"){ae.phase==="IDLE"||He(!1);var qe=Oe.payload,At=qe.critical,Ut=qe.clientSelection,$t=qe.viewport,rr=qe.dimensions,Wr=qe.movementMode,cn=rr.draggables[At.draggable.id],Hr=rr.droppables[At.droppable.id],Ur={selection:Ut,borderBoxCenter:cn.client.borderBox.center,offset:Ne},on={client:Ur,page:{selection:je(Ur.selection,$t.scroll.initial),borderBoxCenter:je(Ur.selection,$t.scroll.initial),offset:je(Ur.selection,$t.scroll.diff.value)}},gn=Ar(rr.droppables).every(function(Ss){return!Ss.isFixedOnPage}),Hn=xi({draggable:cn,home:Hr,draggables:rr.draggables,viewport:$t}),Oi=Hn.impact,Ri=Hn.afterCritical,da={phase:"DRAGGING",isDragging:!0,critical:At,movementMode:Wr,dimensions:rr,initial:on,current:on,isWindowScrollAllowed:gn,impact:Oi,afterCritical:Ri,onLiftImpact:Oi,viewport:$t,scrollJumpRequest:null,forceShouldAnimate:null};return da}if(Oe.type==="COLLECTION_STARTING"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||He(!1);var Ji=Object(A.a)({phase:"COLLECTING"},ae,{phase:"COLLECTING"});return Ji}if(Oe.type==="PUBLISH_WHILE_DRAGGING")return ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING"||He(!1),vi({state:ae,published:Oe.payload});if(Oe.type==="MOVE"){if(ae.phase==="DROP_PENDING")return ae;tn(ae)||He(!1);var Qa=Oe.payload.client;return Ce(Qa,ae.current.client.selection)?ae:pn({state:ae,clientSelection:Qa,impact:Ln(ae)?ae.impact:null})}if(Oe.type==="UPDATE_DROPPABLE_SCROLL"){if(ae.phase==="DROP_PENDING")return ha(ae);if(ae.phase==="COLLECTING")return ha(ae);tn(ae)||He(!1);var ya=Oe.payload,fo=ya.id,za=ya.newScroll,Xo=ae.dimensions.droppables[fo];if(!Xo)return ae;var ls=pe(Xo,za);return Fi(ae,ls,!1)}if(Oe.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;tn(ae)||He(!1);var N=Oe.payload,U=N.id,ie=N.isEnabled,le=ae.dimensions.droppables[U];le||He(!1),le.isEnabled!==ie||He(!1);var ge=Object(A.a)({},le,{isEnabled:ie});return Fi(ae,ge,!0)}if(Oe.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;tn(ae)||He(!1);var Ke=Oe.payload,Tt=Ke.id,tr=Ke.isCombineEnabled,yr=ae.dimensions.droppables[Tt];yr||He(!1),yr.isCombineEnabled!==tr||He(!1);var Cr=Object(A.a)({},yr,{isCombineEnabled:tr});return Fi(ae,Cr,!0)}if(Oe.type==="MOVE_BY_WINDOW_SCROLL"){if(ae.phase==="DROP_PENDING"||ae.phase==="DROP_ANIMATING")return ae;tn(ae)||He(!1),ae.isWindowScrollAllowed||He(!1);var Bn=Oe.payload.newScroll;if(Ce(ae.viewport.scroll.current,Bn))return ha(ae);var qn=Wi(ae.viewport,Bn);return Ln(ae)?Qn({state:ae,viewport:qn}):pn({state:ae,viewport:qn})}if(Oe.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!tn(ae))return ae;var Si=Oe.payload.maxScroll;if(Ce(Si,ae.viewport.scroll.max))return ae;var Ci=Object(A.a)({},ae.viewport,{scroll:Object(A.a)({},ae.viewport.scroll,{max:Si})});return Object(A.a)({phase:"DRAGGING"},ae,{viewport:Ci})}if(Oe.type==="MOVE_UP"||Oe.type==="MOVE_DOWN"||Oe.type==="MOVE_LEFT"||Oe.type==="MOVE_RIGHT"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||He(!1);var la=Zi({state:ae,type:Oe.type});return la?pn({state:ae,impact:la.impact,clientSelection:la.clientSelection,scrollJumpRequest:la.scrollJumpRequest}):ae}if(Oe.type==="DROP_PENDING"){var Ta=Oe.payload.reason;ae.phase==="COLLECTING"||He(!1);var Wa=Object(A.a)({phase:"DROP_PENDING"},ae,{phase:"DROP_PENDING",isWaiting:!0,reason:Ta});return Wa}if(Oe.type==="DROP_ANIMATE"){var ka=Oe.payload,Na=ka.completed,qa=ka.dropDuration,ho=ka.newHomeClientOffset;ae.phase==="DRAGGING"||ae.phase==="DROP_PENDING"||He(!1);var ns={phase:"DROP_ANIMATING",completed:Na,dropDuration:qa,newHomeClientOffset:ho,dimensions:ae.dimensions};return ns}if(Oe.type==="DROP_COMPLETE"){var Mo=Oe.payload.completed;return{phase:"IDLE",completed:Mo,shouldFlush:!1}}return ae},Ir=function(ae){return{type:"BEFORE_INITIAL_CAPTURE",payload:ae}},wr=function(ae){return{type:"LIFT",payload:ae}},xn=function(ae){return{type:"INITIAL_PUBLISH",payload:ae}},ur=function(ae){return{type:"PUBLISH_WHILE_DRAGGING",payload:ae}},Dr=function(){return{type:"COLLECTION_STARTING",payload:null}},Vr=function(ae){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ae}},sn=function(ae){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ae}},Rn=function(ae){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ae}},xt=function(ae){return{type:"MOVE",payload:ae}},_r=function(ae){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ae}},Or=function(ae){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ae}},en=function(){return{type:"MOVE_UP",payload:null}},wn=function(){return{type:"MOVE_DOWN",payload:null}},_n=function(){return{type:"MOVE_RIGHT",payload:null}},yn=function(){return{type:"MOVE_LEFT",payload:null}},Jn=function(){return{type:"FLUSH",payload:null}},Un=function(ae){return{type:"DROP_ANIMATE",payload:ae}},pi=function(ae){return{type:"DROP_COMPLETE",payload:ae}},ki=function(ae){return{type:"DROP",payload:ae}},yi=function(ae){return{type:"DROP_PENDING",payload:ae}},_i=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Ki(Be){if(Be.length<=1)return;for(var ae=Be.map(function(rr){return rr.descriptor.index}),Oe={},qe=1;qe<ae.length;qe++){var At=ae[qe],Ut=ae[qe-1];At!==Ut+1&&(Oe[At]=!0)}if(!Object.keys(Oe).length)return;var $t=ae.map(function(rr){var Wr=Boolean(Oe[rr]);return Wr?"[\u{1F525}"+rr+"]":""+rr}).join(", ")}function qi(Be,ae){if(!1)var Oe}var zi=function(ae){return function(Oe){var qe=Oe.getState,At=Oe.dispatch;return function(Ut){return function($t){if($t.type!=="LIFT"){Ut($t);return}var rr=$t.payload,Wr=rr.id,cn=rr.clientSelection,Hr=rr.movementMode,Ur=qe();Ur.phase==="DROP_ANIMATING"&&At(pi({completed:Ur.completed})),qe().phase==="IDLE"||He(!1),At(Jn()),At(Ir({draggableId:Wr,movementMode:Hr}));var on={shouldPublishImmediately:Hr==="SNAP"},gn={draggableId:Wr,scrollOptions:on},Hn=ae.startPublishing(gn),Oi=Hn.critical,Ri=Hn.dimensions,da=Hn.viewport;qi(Oi,Ri),At(xn({critical:Oi,dimensions:Ri,clientSelection:cn,movementMode:Hr,viewport:da}))}}}},Hi=function(ae){return function(){return function(Oe){return function(qe){qe.type==="INITIAL_PUBLISH"&&ae.dragging(),qe.type==="DROP_ANIMATE"&&ae.dropping(qe.payload.completed.result.reason),(qe.type==="FLUSH"||qe.type==="DROP_COMPLETE")&&ae.resting(),Oe(qe)}}}},Ui={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Qi={opacity:{drop:0,combining:.7},scale:{drop:.75}},ca={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ca=ca.outOfTheWay+"s "+Ui.outOfTheWay,ra={fluid:"opacity "+Ca,snap:"transform "+Ca+", opacity "+Ca,drop:function(ae){var Oe=ae+"s "+Ui.drop;return"transform "+Oe+", opacity "+Oe},outOfTheWay:"transform "+Ca,placeholder:"height "+Ca+", width "+Ca+", margin "+Ca},Ma=function(ae){return Ce(ae,Ne)?null:"translate("+ae.x+"px, "+ae.y+"px)"},La={moveTo:Ma,drop:function(ae,Oe){var qe=Ma(ae);return qe?Oe?qe+" scale("+Qi.scale.drop+")":qe:null}},va=ca.minDropTime,ga=ca.maxDropTime,Oa=ga-va,Aa=1500,Ga=.6,_a=function(ae){var Oe=ae.current,qe=ae.destination,At=ae.reason,Ut=Ct(Oe,qe);if(Ut<=0)return va;if(Ut>=Aa)return ga;var $t=Ut/Aa,rr=va+Oa*$t,Wr=At==="CANCEL"?rr*Ga:rr;return Number(Wr.toFixed(2))},Va=function(ae){var Oe=ae.impact,qe=ae.draggable,At=ae.dimensions,Ut=ae.viewport,$t=ae.afterCritical,rr=At.draggables,Wr=At.droppables,cn=fi(Oe),Hr=cn?Wr[cn]:null,Ur=Wr[qe.descriptor.droppableId],on=zn({impact:Oe,draggable:qe,draggables:rr,afterCritical:$t,droppable:Hr||Ur,viewport:Ut}),gn=me(on,qe.client.borderBox.center);return gn},Bi=function(ae){var Oe=ae.draggables,qe=ae.reason,At=ae.lastImpact,Ut=ae.home,$t=ae.viewport,rr=ae.onLiftImpact;if(!At.at||qe!=="DROP"){var Wr=Tn({draggables:Oe,impact:rr,destination:Ut,viewport:$t,forceShouldAnimate:!0});return{impact:Wr,didDropInsideDroppable:!1}}if(At.at.type==="REORDER")return{impact:At,didDropInsideDroppable:!0};var cn=Object(A.a)({},At,{displaced:Fn});return{impact:cn,didDropInsideDroppable:!0}},io=function(ae){var Oe=ae.getState,qe=ae.dispatch;return function(At){return function(Ut){if(Ut.type!=="DROP"){At(Ut);return}var $t=Oe(),rr=Ut.payload.reason;if($t.phase==="COLLECTING"){qe(yi({reason:rr}));return}if($t.phase==="IDLE")return;var Wr=$t.phase==="DROP_PENDING"&&$t.isWaiting;Wr&&He(!1),$t.phase==="DRAGGING"||$t.phase==="DROP_PENDING"||He(!1);var cn=$t.critical,Hr=$t.dimensions,Ur=Hr.draggables[$t.critical.draggable.id],on=Bi({reason:rr,lastImpact:$t.impact,afterCritical:$t.afterCritical,onLiftImpact:$t.onLiftImpact,home:$t.dimensions.droppables[$t.critical.droppable.id],viewport:$t.viewport,draggables:$t.dimensions.draggables}),gn=on.impact,Hn=on.didDropInsideDroppable,Oi=Hn?mr(gn):null,Ri=Hn?Pr(gn):null,da={index:cn.draggable.index,droppableId:cn.droppable.id},Ji={draggableId:Ur.descriptor.id,type:Ur.descriptor.type,source:da,reason:rr,mode:$t.movementMode,destination:Oi,combine:Ri},Qa=Va({impact:gn,draggable:Ur,dimensions:Hr,viewport:$t.viewport,afterCritical:$t.afterCritical}),ya={critical:$t.critical,afterCritical:$t.afterCritical,result:Ji,impact:gn},fo=!Ce($t.current.client.offset,Qa)||Boolean(Ji.combine);if(!fo){qe(pi({completed:ya}));return}var za=_a({current:$t.current.client.offset,destination:Qa,reason:rr}),Xo={newHomeClientOffset:Qa,dropDuration:za,completed:ya};qe(Un(Xo))}}},oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Qo(Be){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Oe){if(Oe.target!==window&&Oe.target!==window.document)return;Be()}}}function mo(Be){var ae=Be.onWindowScroll;function Oe(){ae(oo())}var qe=M(Oe),At=Qo(qe),Ut=ue;function $t(){return Ut!==ue}function rr(){$t()&&He(!1),Ut=be(window,[At])}function Wr(){$t()||He(!1),qe.cancel(),Ut(),Ut=ue}return{start:rr,stop:Wr,isActive:$t}}var To=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},ao=function(ae){var Oe=mo({onWindowScroll:function(At){ae.dispatch(_r({newScroll:At}))}});return function(qe){return function(At){!Oe.isActive()&&At.type==="INITIAL_PUBLISH"&&Oe.start(),Oe.isActive()&&To(At)&&Oe.stop(),qe(At)}}},So=function(ae){var Oe=!1,qe=!1,At=setTimeout(function(){qe=!0}),Ut=function(rr){if(Oe)return;if(qe)return;Oe=!0,ae(rr),clearTimeout(At)};return Ut.wasCalled=function(){return Oe},Ut},bo=function(){var ae=[],Oe=function($t){var rr=Ze(ae,function(Hr){return Hr.timerId===$t});rr!==-1||He(!1);var Wr=ae.splice(rr,1),cn=Wr[0];cn.callback()},qe=function($t){var rr=setTimeout(function(){return Oe(rr)}),Wr={timerId:rr,callback:$t};ae.push(Wr)},At=function(){if(!ae.length)return;var $t=[].concat(ae);ae.length=0,$t.forEach(function(rr){clearTimeout(rr.timerId),rr.callback()})};return{add:qe,flush:At}},to=function(ae,Oe){return ae==null&&Oe==null?!0:ae==null||Oe==null?!1:ae.droppableId===Oe.droppableId&&ae.index===Oe.index},Jo=function(ae,Oe){return ae==null&&Oe==null?!0:ae==null||Oe==null?!1:ae.draggableId===Oe.draggableId&&ae.droppableId===Oe.droppableId},Uo=function(ae,Oe){if(ae===Oe)return!0;var qe=ae.draggable.id===Oe.draggable.id&&ae.draggable.droppableId===Oe.draggable.droppableId&&ae.draggable.type===Oe.draggable.type&&ae.draggable.index===Oe.draggable.index,At=ae.droppable.id===Oe.droppable.id&&ae.droppable.type===Oe.droppable.type;return qe&&At},wo=function(ae,Oe){Li(),Oe(),oa()},ts=function(ae,Oe){return{draggableId:ae.draggable.id,type:ae.droppable.type,source:{droppableId:ae.droppable.id,index:ae.draggable.index},mode:Oe}},Ia=function(ae,Oe,qe,At){if(!ae){qe(At(Oe));return}var Ut=So(qe),$t={announce:Ut};ae(Oe,$t),Ut.wasCalled()||qe(At(Oe))},Oo=function(ae,Oe){var qe=bo(),At=null,Ut=function(gn,Hn){At&&He(!1),wo("onBeforeCapture",function(){var Oi=ae().onBeforeCapture;if(Oi){var Ri={draggableId:gn,mode:Hn};Oi(Ri)}})},$t=function(gn,Hn){At&&He(!1),wo("onBeforeDragStart",function(){var Oi=ae().onBeforeDragStart;Oi&&Oi(ts(gn,Hn))})},rr=function(gn,Hn){At&&He(!1);var Oi=ts(gn,Hn);At={mode:Hn,lastCritical:gn,lastLocation:Oi.source,lastCombine:null},qe.add(function(){wo("onDragStart",function(){return Ia(ae().onDragStart,Oi,Oe,we.onDragStart)})})},Wr=function(gn,Hn){var Oi=mr(Hn),Ri=Pr(Hn);At||He(!1);var da=!Uo(gn,At.lastCritical);da&&(At.lastCritical=gn);var Ji=!to(At.lastLocation,Oi);Ji&&(At.lastLocation=Oi);var Qa=!Jo(At.lastCombine,Ri);if(Qa&&(At.lastCombine=Ri),!da&&!Ji&&!Qa)return;var ya=Object(A.a)({},ts(gn,At.mode),{combine:Ri,destination:Oi});qe.add(function(){wo("onDragUpdate",function(){return Ia(ae().onDragUpdate,ya,Oe,we.onDragUpdate)})})},cn=function(){At||He(!1),qe.flush()},Hr=function(gn){At||He(!1),At=null,wo("onDragEnd",function(){return Ia(ae().onDragEnd,gn,Oe,we.onDragEnd)})},Ur=function(){if(!At)return;var gn=Object(A.a)({},ts(At.lastCritical,At.mode),{combine:null,destination:null,reason:"CANCEL"});Hr(gn)};return{beforeCapture:Ut,beforeStart:$t,start:rr,update:Wr,flush:cn,drop:Hr,abort:Ur}},Io=function(ae,Oe){var qe=Oo(ae,Oe);return function(At){return function(Ut){return function($t){if($t.type==="BEFORE_INITIAL_CAPTURE"){qe.beforeCapture($t.payload.draggableId,$t.payload.movementMode);return}if($t.type==="INITIAL_PUBLISH"){var rr=$t.payload.critical;qe.beforeStart(rr,$t.payload.movementMode),Ut($t),qe.start(rr,$t.payload.movementMode);return}if($t.type==="DROP_COMPLETE"){var Wr=$t.payload.completed.result;qe.flush(),Ut($t),qe.drop(Wr);return}if(Ut($t),$t.type==="FLUSH"){qe.abort();return}var cn=At.getState();cn.phase==="DRAGGING"&&qe.update(cn.critical,cn.impact)}}}},os=function(ae){return function(Oe){return function(qe){if(qe.type!=="DROP_ANIMATION_FINISHED"){Oe(qe);return}var At=ae.getState();At.phase==="DROP_ANIMATING"||He(!1),ae.dispatch(pi({completed:At.completed}))}}},xo=function(ae){var Oe=null,qe=null;function At(){qe&&(cancelAnimationFrame(qe),qe=null),Oe&&(Oe(),Oe=null)}return function(Ut){return function($t){if(($t.type==="FLUSH"||$t.type==="DROP_COMPLETE"||$t.type==="DROP_ANIMATION_FINISHED")&&At(),Ut($t),$t.type!=="DROP_ANIMATE")return;var rr={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var cn=ae.getState();cn.phase==="DROP_ANIMATING"&&ae.dispatch(_i())}};qe=requestAnimationFrame(function(){qe=null,Oe=be(window,[rr])})}}},rs=function(ae){return function(){return function(Oe){return function(qe){(qe.type==="DROP_COMPLETE"||qe.type==="FLUSH"||qe.type==="DROP_ANIMATE")&&ae.stopPublishing(),Oe(qe)}}}},Ho=function(ae){var Oe=!1;return function(){return function(qe){return function(At){if(At.type==="INITIAL_PUBLISH"){Oe=!0,ae.tryRecordFocus(At.payload.critical.draggable.id),qe(At),ae.tryRestoreFocusRecorded();return}if(qe(At),!Oe)return;if(At.type==="FLUSH"){Oe=!1,ae.tryRestoreFocusRecorded();return}if(At.type==="DROP_COMPLETE"){Oe=!1;var Ut=At.payload.completed.result;Ut.combine&&ae.tryShiftRecord(Ut.draggableId,Ut.combine.draggableId),ae.tryRestoreFocusRecorded()}}}}},_o=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},uo=function(ae){return function(Oe){return function(qe){return function(At){if(_o(At)){ae.stop(),qe(At);return}if(At.type==="INITIAL_PUBLISH"){qe(At);var Ut=Oe.getState();Ut.phase==="DRAGGING"||He(!1),ae.start(Ut);return}qe(At),ae.scroll(Oe.getState())}}}},Ha=function(ae){return function(Oe){return function(qe){if(Oe(qe),qe.type!=="PUBLISH_WHILE_DRAGGING")return;var At=ae.getState();if(At.phase!=="DROP_PENDING")return;if(At.isWaiting)return;ae.dispatch(ki({reason:At.reason}))}}},ht=m.d,Er=function(ae){var Oe=ae.dimensionMarshal,qe=ae.focusMarshal,At=ae.styleMarshal,Ut=ae.getResponders,$t=ae.announce,rr=ae.autoScroller;return Object(m.e)(aa,ht(Object(m.a)(Hi(At),rs(Oe),zi(Oe),io,os,xo,Ha,uo(rr),ao,Ho(qe),Io(Ut,$t))))},Zr=function(){return{additions:{},removals:{},modified:{}}};function Xr(Be){var ae=Be.registry,Oe=Be.callbacks,qe=Zr(),At=null,Ut=function(){if(At)return;Oe.collectionStarting(),At=requestAnimationFrame(function(){At=null,Li();var Hr=qe,Ur=Hr.additions,on=Hr.removals,gn=Hr.modified,Hn=Object.keys(Ur).map(function(da){return ae.draggable.getById(da).getDimension(Ne)}).sort(function(da,Ji){return da.descriptor.index-Ji.descriptor.index}),Oi=Object.keys(gn).map(function(da){var Ji=ae.droppable.getById(da),Qa=Ji.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Qa}}),Ri={additions:Hn,removals:Object.keys(on),modified:Oi};qe=Zr(),oa(),Oe.publish(Ri)})},$t=function(Hr){var Ur=Hr.descriptor.id;qe.additions[Ur]=Hr,qe.modified[Hr.descriptor.droppableId]=!0,qe.removals[Ur]&&delete qe.removals[Ur],Ut()},rr=function(Hr){var Ur=Hr.descriptor;qe.removals[Ur.id]=!0,qe.modified[Ur.droppableId]=!0,qe.additions[Ur.id]&&delete qe.additions[Ur.id],Ut()},Wr=function(){if(!At)return;cancelAnimationFrame(At),At=null,qe=Zr()};return{add:$t,remove:rr,stop:Wr}}var Xn=function(ae){var Oe=ae.scrollHeight,qe=ae.scrollWidth,At=ae.height,Ut=ae.width,$t=me({x:qe,y:Oe},{x:Ut,y:At}),rr={x:Math.max(0,$t.x),y:Math.max(0,$t.y)};return rr},un=function(){var ae=document.documentElement;return ae||He(!1),ae},Gr=function(){var ae=un(),Oe=Xn({scrollHeight:ae.scrollHeight,scrollWidth:ae.scrollWidth,width:ae.clientWidth,height:ae.clientHeight});return Oe},ri=function(){var ae=oo(),Oe=Gr(),qe=ae.y,At=ae.x,Ut=un(),$t=Ut.clientWidth,rr=Ut.clientHeight,Wr=At+$t,cn=qe+rr,Hr=e({top:qe,left:At,right:Wr,bottom:cn}),Ur={frame:Hr,scroll:{initial:ae,current:ae,max:Oe,diff:{value:Ne,displacement:Ne}}};return Ur},rn=function(ae){var Oe=ae.critical,qe=ae.scrollOptions,At=ae.registry;Li();var Ut=ri(),$t=Ut.scroll.current,rr=Oe.droppable,Wr=At.droppable.getAllByType(rr.type).map(function(on){return on.callbacks.getDimensionAndWatchScroll($t,qe)}),cn=At.draggable.getAllByType(Oe.draggable.type).map(function(on){return on.getDimension($t)}),Hr={draggables:yt(cn),droppables:er(Wr)};oa();var Ur={dimensions:Hr,critical:Oe,viewport:Ut};return Ur};function jn(Be,ae,Oe){if(Oe.descriptor.id===ae.id)return!1;if(Oe.descriptor.type!==ae.type)return!1;var qe=Be.droppable.getById(Oe.descriptor.droppableId);return!(qe.descriptor.mode!=="virtual")}var oi=function(ae,Oe){var qe=null,At=Xr({callbacks:{publish:Oe.publishWhileDragging,collectionStarting:Oe.collectionStarting},registry:ae}),Ut=function(Hn,Oi){if(ae.droppable.exists(Hn)||He(!1),!qe)return;Oe.updateDroppableIsEnabled({id:Hn,isEnabled:Oi})},$t=function(Hn,Oi){if(!qe)return;ae.droppable.exists(Hn)||He(!1),Oe.updateDroppableIsCombineEnabled({id:Hn,isCombineEnabled:Oi})},rr=function(Hn,Oi){if(!qe)return;ae.droppable.exists(Hn)||He(!1),Oe.updateDroppableScroll({id:Hn,newScroll:Oi})},Wr=function(Hn,Oi){if(!qe)return;ae.droppable.getById(Hn).callbacks.scroll(Oi)},cn=function(){if(!qe)return;At.stop();var Hn=qe.critical.droppable;ae.droppable.getAllByType(Hn.type).forEach(function(Oi){return Oi.callbacks.dragStopped()}),qe.unsubscribe(),qe=null},Hr=function(Hn){qe||He(!1);var Oi=qe.critical.draggable;Hn.type==="ADDITION"&&(jn(ae,Oi,Hn.value)&&At.add(Hn.value)),Hn.type==="REMOVAL"&&(jn(ae,Oi,Hn.value)&&At.remove(Hn.value))},Ur=function(Hn){qe&&He(!1);var Oi=ae.draggable.getById(Hn.draggableId),Ri=ae.droppable.getById(Oi.descriptor.droppableId),da={draggable:Oi.descriptor,droppable:Ri.descriptor},Ji=ae.subscribe(Hr);return qe={critical:da,unsubscribe:Ji},rn({critical:da,registry:ae,scrollOptions:Hn.scrollOptions})},on={updateDroppableIsEnabled:Ut,updateDroppableIsCombineEnabled:$t,scrollDroppable:Wr,updateDroppableScroll:rr,startPublishing:Ur,stopPublishing:cn};return on},li=function(ae,Oe){return ae.phase==="IDLE"?!0:ae.phase!=="DROP_ANIMATING"||ae.completed.result.draggableId===Oe?!1:ae.completed.result.reason==="DROP"},ai=function(ae){window.scrollBy(ae.x,ae.y)},Ei=I(function(Be){return Ar(Be).filter(function(ae){return ae.isEnabled?!!ae.frame:!1})}),mi=function(ae,Oe){var qe=de(Ei(Oe),function(At){return At.frame||He(!1),En(At.frame.pageMarginBox)(ae)});return qe},Ai=function(ae){var Oe=ae.center,qe=ae.destination,At=ae.droppables;if(qe){var Ut=At[qe];return Ut.frame?Ut:null}var $t=mi(Oe,At);return $t},Ii={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ae){return Math.pow(ae,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},na=function(ae,Oe){var qe=ae[Oe.size]*Ii.startFromPercentage,At=ae[Oe.size]*Ii.maxScrollAtPercentage,Ut={startScrollingFrom:qe,maxScrollValueAt:At};return Ut},ji=function(ae){var Oe=ae.startOfRange,qe=ae.endOfRange,At=ae.current,Ut=qe-Oe;if(Ut===0)return 0;var $t=At-Oe,rr=$t/Ut;return rr},fa=1,Xa=function(ae,Oe){if(ae>Oe.startScrollingFrom)return 0;if(ae<=Oe.maxScrollValueAt)return Ii.maxPixelScroll;if(ae===Oe.startScrollingFrom)return fa;var qe=ji({startOfRange:Oe.maxScrollValueAt,endOfRange:Oe.startScrollingFrom,current:ae}),At=1-qe,Ut=Ii.maxPixelScroll*Ii.ease(At);return Math.ceil(Ut)},xa=Ii.durationDampening.accelerateAt,wa=Ii.durationDampening.stopDampeningAt,Da=function(ae,Oe){var qe=Oe,At=wa,Ut=Date.now(),$t=Ut-qe;if($t>=wa)return ae;if($t<xa)return fa;var rr=ji({startOfRange:xa,endOfRange:At,current:$t}),Wr=ae*Ii.ease(rr);return Math.ceil(Wr)},ja=function(ae){var Oe=ae.distanceToEdge,qe=ae.thresholds,At=ae.dragStartTime,Ut=ae.shouldUseTimeDampening,$t=Xa(Oe,qe);return $t===0?0:Ut?Math.max(Da($t,At),fa):$t},ko=function(ae){var Oe=ae.container,qe=ae.distanceToEdges,At=ae.dragStartTime,Ut=ae.axis,$t=ae.shouldUseTimeDampening,rr=na(Oe,Ut),Wr=qe[Ut.end]<qe[Ut.start];return Wr?ja({distanceToEdge:qe[Ut.end],thresholds:rr,dragStartTime:At,shouldUseTimeDampening:$t}):-1*ja({distanceToEdge:qe[Ut.start],thresholds:rr,dragStartTime:At,shouldUseTimeDampening:$t})},ro=function(ae){var Oe=ae.container,qe=ae.subject,At=ae.proposedScroll,Ut=qe.height>Oe.height,$t=qe.width>Oe.width;return!$t&&!Ut?At:$t&&Ut?null:{x:$t?0:At.x,y:Ut?0:At.y}},pa=Ve(function(Be){return Be===0?0:Be}),Ea=function(ae){var Oe=ae.dragStartTime,qe=ae.container,At=ae.subject,Ut=ae.center,$t=ae.shouldUseTimeDampening,rr={top:Ut.y-qe.top,right:qe.right-Ut.x,bottom:qe.bottom-Ut.y,left:Ut.x-qe.left},Wr=ko({container:qe,distanceToEdges:rr,dragStartTime:Oe,axis:ei,shouldUseTimeDampening:$t}),cn=ko({container:qe,distanceToEdges:rr,dragStartTime:Oe,axis:Zt,shouldUseTimeDampening:$t}),Hr=pa({x:cn,y:Wr});if(Ce(Hr,Ne))return null;var Ur=ro({container:qe,subject:At,proposedScroll:Hr});return Ur?Ce(Ur,Ne)?null:Ur:null},Fa=Ve(function(Be){return Be===0?0:Be>0?1:-1}),Ka=function(){var Be=function(Oe,qe){return Oe<0?Oe:Oe>qe?Oe-qe:0};return function(ae){var Oe=ae.current,qe=ae.max,At=ae.change,Ut=je(Oe,At),$t={x:Be(Ut.x,qe.x),y:Be(Ut.y,qe.y)};return Ce($t,Ne)?null:$t}}(),lo=function(ae){var Oe=ae.max,qe=ae.current,At=ae.change,Ut={x:Math.max(qe.x,Oe.x),y:Math.max(qe.y,Oe.y)},$t=Fa(At),rr=Ka({max:Ut,current:qe,change:$t});return rr?$t.x!==0&&rr.x===0?!0:$t.y!==0&&rr.y===0:!0},so=function(ae,Oe){return lo({current:ae.scroll.current,max:ae.scroll.max,change:Oe})},Co=function(ae,Oe){if(!so(ae,Oe))return null;var qe=ae.scroll.max,At=ae.scroll.current;return Ka({current:At,max:qe,change:Oe})},Lo=function(ae,Oe){var qe=ae.frame;return qe?lo({current:qe.scroll.current,max:qe.scroll.max,change:Oe}):!1},is=function(ae,Oe){var qe=ae.frame;return qe&&Lo(ae,Oe)?Ka({current:qe.scroll.current,max:qe.scroll.max,change:Oe}):null},cs=function(ae){var Oe=ae.viewport,qe=ae.subject,At=ae.center,Ut=ae.dragStartTime,$t=ae.shouldUseTimeDampening,rr=Ea({dragStartTime:Ut,container:Oe.frame,subject:qe,center:At,shouldUseTimeDampening:$t});return rr&&so(Oe,rr)?rr:null},Rs=function(ae){var Oe=ae.droppable,qe=ae.subject,At=ae.center,Ut=ae.dragStartTime,$t=ae.shouldUseTimeDampening,rr=Oe.frame;if(!rr)return null;var Wr=Ea({dragStartTime:Ut,container:rr.pageMarginBox,subject:qe,center:At,shouldUseTimeDampening:$t});return Wr&&Lo(Oe,Wr)?Wr:null},Ko=function(ae){var Oe=ae.state,qe=ae.dragStartTime,At=ae.shouldUseTimeDampening,Ut=ae.scrollWindow,$t=ae.scrollDroppable,rr=Oe.current.page.borderBoxCenter,Wr=Oe.dimensions.draggables[Oe.critical.draggable.id],cn=Wr.page.marginBox;if(Oe.isWindowScrollAllowed){var Hr=Oe.viewport,Ur=cs({dragStartTime:qe,viewport:Hr,subject:cn,center:rr,shouldUseTimeDampening:At});if(Ur){Ut(Ur);return}}var on=Ai({center:rr,destination:fi(Oe.impact),droppables:Oe.dimensions.droppables});if(!on)return;var gn=Rs({dragStartTime:qe,droppable:on,subject:cn,center:rr,shouldUseTimeDampening:At});gn&&$t(on.descriptor.id,gn)},as=function(ae){var Oe=ae.scrollWindow,qe=ae.scrollDroppable,At=M(Oe),Ut=M(qe),$t=null,rr=function(Ur){$t||He(!1);var on=$t,gn=on.shouldUseTimeDampening,Hn=on.dragStartTime;Ko({state:Ur,scrollWindow:At,scrollDroppable:Ut,dragStartTime:Hn,shouldUseTimeDampening:gn})},Wr=function(Ur){Li(),$t&&He(!1);var on=Date.now(),gn=!1,Hn=function(){gn=!0};Ko({state:Ur,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Hn,scrollDroppable:Hn}),$t={dragStartTime:on,shouldUseTimeDampening:gn},oa(),gn&&rr(Ur)},cn=function(){if(!$t)return;At.cancel(),Ut.cancel(),$t=null};return{start:Wr,stop:cn,scroll:rr}},co=function(ae){var Oe=ae.move,qe=ae.scrollDroppable,At=ae.scrollWindow,Ut=function(Hr,Ur){var on=je(Hr.current.client.selection,Ur);Oe({client:on})},$t=function(Hr,Ur){if(!Lo(Hr,Ur))return Ur;var on=is(Hr,Ur);if(!on)return qe(Hr.descriptor.id,Ur),null;var gn=me(Ur,on);qe(Hr.descriptor.id,gn);var Hn=me(Ur,gn);return Hn},rr=function(Hr,Ur,on){if(!Hr)return on;if(!so(Ur,on))return on;var gn=Co(Ur,on);if(!gn)return At(on),null;var Hn=me(on,gn);At(Hn);var Oi=me(on,Hn);return Oi},Wr=function(Hr){var Ur=Hr.scrollJumpRequest;if(!Ur)return;var on=fi(Hr.impact);on||He(!1);var gn=$t(Hr.dimensions.droppables[on],Ur);if(!gn)return;var Hn=Hr.viewport,Oi=rr(Hr.isWindowScrollAllowed,Hn,gn);if(!Oi)return;Ut(Hr,Oi)};return Wr},Ao=function(ae){var Oe=ae.scrollDroppable,qe=ae.scrollWindow,At=ae.move,Ut=as({scrollWindow:qe,scrollDroppable:Oe}),$t=co({move:At,scrollWindow:qe,scrollDroppable:Oe}),rr=function(Hr){if(Hr.phase!=="DRAGGING")return;if(Hr.movementMode==="FLUID"){Ut.scroll(Hr);return}if(!Hr.scrollJumpRequest)return;$t(Hr)},Wr={scroll:rr,start:Ut.start,stop:Ut.stop};return Wr},$a="data-rbd",ss=function(){var Be=$a+"-drag-handle";return{base:Be,draggableId:Be+"-draggable-id",contextId:Be+"-context-id"}}(),Cs=function(){var Be=$a+"-draggable";return{base:Be,contextId:Be+"-context-id",id:Be+"-id"}}(),Fo=function(){var Be=$a+"-droppable";return{base:Be,contextId:Be+"-context-id",id:Be+"-id"}}(),il={contextId:$a+"-scroll-container-context-id"},Eo=function(ae){return function(Oe){return"["+Oe+'="'+ae+'"]'}},zo=function(ae,Oe){return ae.map(function(qe){var At=qe.styles[Oe];return At?qe.selector+" { "+At+" }":""}).join(" ")},Bs="pointer-events: none;",ms=function(ae){var Oe=Eo(ae),qe=function(){var Wr=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Oe(ss.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Wr,dragging:Bs,dropAnimating:Wr}}}(),At=function(){var Wr=`
transition: `+ra.outOfTheWay+`;
`;return{selector:Oe(Cs.contextId),styles:{dragging:Wr,dropAnimating:Wr,userCancel:Wr}}}(),Ut={selector:Oe(Fo.contextId),styles:{always:"overflow-anchor: none;"}},$t={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;
`}},rr=[At,qe,Ut,$t];return{always:zo(rr,"always"),resting:zo(rr,"resting"),dragging:zo(rr,"dragging"),dropAnimating:zo(rr,"dropAnimating"),userCancel:zo(rr,"userCancel")}},hs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,An=function(){var ae=document.querySelector("head");return ae||He(!1),ae},Ns=function(ae){var Oe=document.createElement("style");return ae&&Oe.setAttribute("nonce",ae),Oe.type="text/css",Oe};function Ll(Be,ae){var Oe=i(function(){return ms(Be)},[Be]),qe=Object(y.useRef)(null),At=Object(y.useRef)(null),Ut=t(I(function(Ur){var on=At.current;on||He(!1),on.textContent=Ur}),[]),$t=t(function(Ur){var on=qe.current;on||He(!1),on.textContent=Ur},[]);hs(function(){!qe.current&&!At.current||He(!1);var Ur=Ns(ae),on=Ns(ae);return qe.current=Ur,At.current=on,Ur.setAttribute($a+"-always",Be),on.setAttribute($a+"-dynamic",Be),An().appendChild(Ur),An().appendChild(on),$t(Oe.always),Ut(Oe.resting),function(){var gn=function(Oi){var Ri=Oi.current;Ri||He(!1),An().removeChild(Ri),Oi.current=null};gn(qe),gn(At)}},[ae,$t,Ut,Oe.always,Oe.resting,Be]);var rr=t(function(){return Ut(Oe.dragging)},[Ut,Oe.dragging]),Wr=t(function(Ur){if(Ur==="DROP"){Ut(Oe.dropAnimating);return}Ut(Oe.userCancel)},[Ut,Oe.dropAnimating,Oe.userCancel]),cn=t(function(){if(!At.current)return;Ut(Oe.resting)},[Ut,Oe.resting]),Hr=i(function(){return{dragging:rr,dropping:Wr,resting:cn}},[rr,Wr,cn]);return Hr}var el=function(ae){return ae&&ae.ownerDocument?ae.ownerDocument.defaultView:window};function Gs(Be){return Be instanceof el(Be).HTMLElement}function ds(Be,ae){var Oe="["+ss.contextId+'="'+Be+'"]',qe=_t(document.querySelectorAll(Oe));if(!qe.length)return null;var At=de(qe,function(Ut){return Ut.getAttribute(ss.draggableId)===ae});return At&&Gs(At)?At:null}function ks(Be){var ae=Object(y.useRef)({}),Oe=Object(y.useRef)(null),qe=Object(y.useRef)(null),At=Object(y.useRef)(!1),Ut=t(function(on,gn){var Hn={id:on,focus:gn};return ae.current[on]=Hn,function(){var Ri=ae.current,da=Ri[on];da!==Hn&&delete Ri[on]}},[]),$t=t(function(on){var gn=ds(Be,on);gn&&gn!==document.activeElement&&gn.focus()},[Be]),rr=t(function(on,gn){Oe.current===on&&(Oe.current=gn)},[]),Wr=t(function(){if(qe.current)return;if(!At.current)return;qe.current=requestAnimationFrame(function(){qe.current=null;var on=Oe.current;on&&$t(on)})},[$t]),cn=t(function(on){Oe.current=null;var gn=document.activeElement;if(!gn)return;if(gn.getAttribute(ss.draggableId)!==on)return;Oe.current=on},[]);hs(function(){return At.current=!0,function(){At.current=!1;var on=qe.current;on&&cancelAnimationFrame(on)}},[]);var Hr=i(function(){return{register:Ut,tryRecordFocus:cn,tryRestoreFocusRecorded:Wr,tryShiftRecord:rr}},[Ut,cn,Wr,rr]);return Hr}function Qs(){var Be={draggables:{},droppables:{}},ae=[];function Oe(Ur){return ae.push(Ur),function(){var gn=ae.indexOf(Ur);if(gn===-1)return;ae.splice(gn,1)}}function qe(Ur){ae.length&&ae.forEach(function(on){return on(Ur)})}function At(Ur){return Be.draggables[Ur]||null}function Ut(Ur){var on=At(Ur);return on||He(!1),on}var $t={register:function(on){Be.draggables[on.descriptor.id]=on,qe({type:"ADDITION",value:on})},update:function(on,gn){var Hn=Be.draggables[gn.descriptor.id];if(!Hn)return;if(Hn.uniqueId!==on.uniqueId)return;delete Be.draggables[gn.descriptor.id],Be.draggables[on.descriptor.id]=on},unregister:function(on){var gn=on.descriptor.id,Hn=At(gn);if(!Hn)return;if(on.uniqueId!==Hn.uniqueId)return;delete Be.draggables[gn],qe({type:"REMOVAL",value:on})},getById:Ut,findById:At,exists:function(on){return Boolean(At(on))},getAllByType:function(on){return lt(Be.draggables).filter(function(gn){return gn.descriptor.type===on})}};function rr(Ur){return Be.droppables[Ur]||null}function Wr(Ur){var on=rr(Ur);return on||He(!1),on}var cn={register:function(on){Be.droppables[on.descriptor.id]=on},unregister:function(on){var gn=rr(on.descriptor.id);if(!gn)return;if(on.uniqueId!==gn.uniqueId)return;delete Be.droppables[on.descriptor.id]},getById:Wr,findById:rr,exists:function(on){return Boolean(rr(on))},getAllByType:function(on){return lt(Be.droppables).filter(function(gn){return gn.descriptor.type===on})}};function Hr(){Be.draggables={},Be.droppables={},ae.length=0}return{draggable:$t,droppable:cn,subscribe:Oe,clean:Hr}}function tl(){var Be=i(Qs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(Be.clean)}},[Be]),Be}var xs=p.a.createContext(null),Us=function(){var ae=document.body;return ae||He(!1),ae},al={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=function(ae){return"rbd-announcement-"+ae};function Vo(Be){var ae=i(function(){return Js(Be)},[Be]),Oe=Object(y.useRef)(null);Object(y.useEffect)(function(){var Ut=document.createElement("div");return Oe.current=Ut,Ut.id=ae,Ut.setAttribute("aria-live","assertive"),Ut.setAttribute("aria-atomic","true"),Object(A.a)(Ut.style,al),Us().appendChild(Ut),function(){setTimeout(function(){var Wr=Us();Wr.contains(Ut)&&Wr.removeChild(Ut),Ut===Oe.current&&(Oe.current=null)})}},[ae]);var qe=t(function(At){var Ut=Oe.current;if(Ut){Ut.textContent=At;return}},[]);return qe}var No=0,fs={separator:"::"};function Ds(){No=0}function go(Be,ae){return ae===void 0&&(ae=fs),i(function(){return""+Be+ae.separator+No++},[ae.separator,Be])}function Ft(Be){var ae=Be.contextId,Oe=Be.uniqueId;return"rbd-hidden-text-"+ae+"-"+Oe}function nr(Be){var ae=Be.contextId,Oe=Be.text,qe=go("hidden-text",{separator:"-"}),At=i(function(){return Ft({contextId:ae,uniqueId:qe})},[qe,ae]);return Object(y.useEffect)(function(){var $t=document.createElement("div");return $t.id=At,$t.textContent=Oe,$t.style.display="none",Us().appendChild($t),function(){var Wr=Us();Wr.contains($t)&&Wr.removeChild($t)}},[At,Oe]),At}var On=p.a.createContext(null),di={react:"^16.8.5","react-dom":"^16.8.5"},It=/(\d+)\.(\d+)\.(\d+)/,ce=function(ae){var Oe=It.exec(ae);Oe!=null||He(!1);var qe=Number(Oe[1]),At=Number(Oe[2]),Ut=Number(Oe[3]);return{major:qe,minor:At,patch:Ut,raw:ae}},Se=function(ae,Oe){return Oe.major>ae.major?!0:Oe.major<ae.major?!1:Oe.minor>ae.minor?!0:Oe.minor<ae.minor?!1:Oe.patch>=ae.patch},Le=function(ae,Oe){var qe=ce(ae),At=ce(Oe);if(Se(qe,At))return},Qe=`
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
`,Lt=function(ae){var Oe=ae.doctype;if(!Oe)return;Oe.name.toLowerCase()!=="html",Oe.publicId!==""};function ir(Be){}function Yr(Be,ae){ir(function(){Object(y.useEffect)(function(){try{Be()}catch(Oe){ee(`
A setup problem was encountered.
> `+Oe.message+`
`)}},ae)})}function hn(){Yr(function(){Le(di.react,p.a.version),Lt(document)},[])}function In(Be){var ae=Object(y.useRef)(Be);return Object(y.useEffect)(function(){ae.current=Be}),ae}function si(){var Be=null;function ae(){return Boolean(Be)}function Oe($t){return $t===Be}function qe($t){Be&&He(!1);var rr={abandon:$t};return Be=rr,rr}function At(){Be||He(!1),Be=null}function Ut(){Be&&(Be.abandon(),At())}return{isClaimed:ae,isActive:Oe,claim:qe,release:At,tryAbandon:Ut}}var wi=9,gi=13,Gi=27,sa=32,Ua=33,no=34,Wo=35,Zo=36,Bo=37,Es=38,As=39,$o=40,Do,vo=(Do={},Do[gi]=!0,Do[wi]=!0,Do),Ms=function(ae){vo[ae.keyCode]&&ae.preventDefault()},rl=function(){var Be="visibilitychange";if(typeof document=="undefined")return Be;var ae=[Be,"ms"+Be,"webkit"+Be,"moz"+Be,"o"+Be],Oe=de(ae,function(qe){return"on"+qe in document});return Oe||Be}(),gs=0,Ra=5;function dl(Be,ae){return Math.abs(ae.x-Be.x)>=Ra||Math.abs(ae.y-Be.y)>=Ra}var fl={type:"IDLE"};function js(Be){var ae=Be.cancel,Oe=Be.completed,qe=Be.getPhase,At=Be.setPhase;return[{eventName:"mousemove",fn:function($t){var rr=$t.button,Wr=$t.clientX,cn=$t.clientY;if(rr!==gs)return;var Hr={x:Wr,y:cn},Ur=qe();if(Ur.type==="DRAGGING"){$t.preventDefault(),Ur.actions.move(Hr);return}Ur.type==="PENDING"||He(!1);var on=Ur.point;if(!dl(on,Hr))return;$t.preventDefault();var gn=Ur.actions.fluidLift(Hr);At({type:"DRAGGING",actions:gn})}},{eventName:"mouseup",fn:function($t){var rr=qe();if(rr.type!=="DRAGGING"){ae();return}$t.preventDefault(),rr.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"mousedown",fn:function($t){qe().type==="DRAGGING"&&$t.preventDefault(),ae()}},{eventName:"keydown",fn:function($t){var rr=qe();if(rr.type==="PENDING"){ae();return}if($t.keyCode===Gi){$t.preventDefault(),ae();return}Ms($t)}},{eventName:"resize",fn:ae},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){qe().type==="PENDING"&&ae()}},{eventName:"webkitmouseforcedown",fn:function($t){var rr=qe();if(rr.type!=="IDLE"||He(!1),rr.actions.shouldRespectForcePress()){ae();return}$t.preventDefault()}},{eventName:rl,fn:ae}]}function _s(Be){var ae=Object(y.useRef)(fl),Oe=Object(y.useRef)(ue),qe=i(function(){return{eventName:"mousedown",fn:function(Ur){if(Ur.defaultPrevented)return;if(Ur.button!==gs)return;if(Ur.ctrlKey||Ur.metaKey||Ur.shiftKey||Ur.altKey)return;var on=Be.findClosestDraggableId(Ur);if(!on)return;var gn=Be.tryGetLock(on,$t,{sourceEvent:Ur});if(!gn)return;Ur.preventDefault();var Hn={x:Ur.clientX,y:Ur.clientY};Oe.current(),cn(gn,Hn)}}},[Be]),At=i(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ur){if(Ur.defaultPrevented)return;var on=Be.findClosestDraggableId(Ur);if(!on)return;var gn=Be.findOptionsForDraggable(on);if(!gn)return;if(gn.shouldRespectForcePress)return;if(!Be.canGetLock(on))return;Ur.preventDefault()}}},[Be]),Ut=t(function(){var Ur={passive:!1,capture:!0};Oe.current=be(window,[At,qe],Ur)},[At,qe]),$t=t(function(){var Hr=ae.current;if(Hr.type==="IDLE")return;ae.current=fl,Oe.current(),Ut()},[Ut]),rr=t(function(){var Hr=ae.current;$t(),Hr.type==="DRAGGING"&&Hr.actions.cancel({shouldBlockNextClick:!0}),Hr.type==="PENDING"&&Hr.actions.abort()},[$t]),Wr=t(function(){var Ur={capture:!0,passive:!1},on=js({cancel:rr,completed:$t,getPhase:function(){return ae.current},setPhase:function(Hn){ae.current=Hn}});Oe.current=be(window,on,Ur)},[rr,$t]),cn=t(function(Ur,on){ae.current.type==="IDLE"||He(!1),ae.current={type:"PENDING",point:on,actions:Ur},Wr()},[Wr]);hs(function(){return Ut(),function(){Oe.current()}},[Ut])}var Xs;function Ql(){}var Ul=(Xs={},Xs[no]=!0,Xs[Ua]=!0,Xs[Zo]=!0,Xs[Wo]=!0,Xs);function wl(Be,ae){function Oe(){ae(),Be.cancel()}function qe(){ae(),Be.drop()}return[{eventName:"keydown",fn:function(Ut){if(Ut.keyCode===Gi){Ut.preventDefault(),Oe();return}if(Ut.keyCode===sa){Ut.preventDefault(),qe();return}if(Ut.keyCode===$o){Ut.preventDefault(),Be.moveDown();return}if(Ut.keyCode===Es){Ut.preventDefault(),Be.moveUp();return}if(Ut.keyCode===As){Ut.preventDefault(),Be.moveRight();return}if(Ut.keyCode===Bo){Ut.preventDefault(),Be.moveLeft();return}if(Ul[Ut.keyCode]){Ut.preventDefault();return}Ms(Ut)}},{eventName:"mousedown",fn:Oe},{eventName:"mouseup",fn:Oe},{eventName:"click",fn:Oe},{eventName:"touchstart",fn:Oe},{eventName:"resize",fn:Oe},{eventName:"wheel",fn:Oe,options:{passive:!0}},{eventName:rl,fn:Oe}]}function Ts(Be){var ae=Object(y.useRef)(Ql),Oe=i(function(){return{eventName:"keydown",fn:function(Ut){if(Ut.defaultPrevented)return;if(Ut.keyCode!==sa)return;var $t=Be.findClosestDraggableId(Ut);if(!$t)return;var rr=Be.tryGetLock($t,Hr,{sourceEvent:Ut});if(!rr)return;Ut.preventDefault();var Wr=!0,cn=rr.snapLift();ae.current();function Hr(){Wr||He(!1),Wr=!1,ae.current(),qe()}ae.current=be(window,wl(cn,Hr),{capture:!0,passive:!1})}}},[Be]),qe=t(function(){var Ut={passive:!1,capture:!0};ae.current=be(window,[Oe],Ut)},[Oe]);hs(function(){return qe(),function(){ae.current()}},[qe])}var Ks={type:"IDLE"},Tl=120,pl=.15;function jo(Be){var ae=Be.cancel,Oe=Be.getPhase;return[{eventName:"orientationchange",fn:ae},{eventName:"resize",fn:ae},{eventName:"contextmenu",fn:function(At){At.preventDefault()}},{eventName:"keydown",fn:function(At){if(Oe().type!=="DRAGGING"){ae();return}At.keyCode===Gi&&At.preventDefault(),ae()}},{eventName:rl,fn:ae}]}function yo(Be){var ae=Be.cancel,Oe=Be.completed,qe=Be.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ut){var $t=qe();if($t.type!=="DRAGGING"){ae();return}$t.hasMoved=!0;var rr=Ut.touches[0],Wr=rr.clientX,cn=rr.clientY,Hr={x:Wr,y:cn};Ut.preventDefault(),$t.actions.move(Hr)}},{eventName:"touchend",fn:function(Ut){var $t=qe();if($t.type!=="DRAGGING"){ae();return}Ut.preventDefault(),$t.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"touchcancel",fn:function(Ut){if(qe().type!=="DRAGGING"){ae();return}Ut.preventDefault(),ae()}},{eventName:"touchforcechange",fn:function(Ut){var $t=qe();$t.type!=="IDLE"||He(!1);var rr=Ut.touches[0];if(!rr)return;var Wr=rr.force>=pl;if(!Wr)return;var cn=$t.actions.shouldRespectForcePress();if($t.type==="PENDING"){cn&&ae();return}if(cn){if($t.hasMoved){Ut.preventDefault();return}ae();return}Ut.preventDefault()}},{eventName:rl,fn:ae}]}function qo(Be){var ae=Object(y.useRef)(Ks),Oe=Object(y.useRef)(ue),qe=t(function(){return ae.current},[]),At=t(function(gn){ae.current=gn},[]),Ut=i(function(){return{eventName:"touchstart",fn:function(gn){if(gn.defaultPrevented)return;var Hn=Be.findClosestDraggableId(gn);if(!Hn)return;var Oi=Be.tryGetLock(Hn,rr,{sourceEvent:gn});if(!Oi)return;var Ri=gn.touches[0],da=Ri.clientX,Ji=Ri.clientY,Qa={x:da,y:Ji};Oe.current(),Ur(Oi,Qa)}}},[Be]),$t=t(function(){var gn={capture:!0,passive:!1};Oe.current=be(window,[Ut],gn)},[Ut]),rr=t(function(){var on=ae.current;if(on.type==="IDLE")return;on.type==="PENDING"&&clearTimeout(on.longPressTimerId),At(Ks),Oe.current(),$t()},[$t,At]),Wr=t(function(){var on=ae.current;rr(),on.type==="DRAGGING"&&on.actions.cancel({shouldBlockNextClick:!0}),on.type==="PENDING"&&on.actions.abort()},[rr]),cn=t(function(){var gn={capture:!0,passive:!1},Hn={cancel:Wr,completed:rr,getPhase:qe},Oi=be(window,yo(Hn),gn),Ri=be(window,jo(Hn),gn);Oe.current=function(){Oi(),Ri()}},[Wr,qe,rr]),Hr=t(function(){var gn=qe();gn.type==="PENDING"||He(!1);var Hn=gn.actions.fluidLift(gn.point);At({type:"DRAGGING",actions:Hn,hasMoved:!1})},[qe,At]),Ur=t(function(gn,Hn){qe().type==="IDLE"||He(!1);var Oi=setTimeout(Hr,Tl);At({type:"PENDING",point:Hn,actions:gn,longPressTimerId:Oi}),cn()},[cn,qe,At,Hr]);hs(function(){return $t(),function(){Oe.current();var Hn=qe();Hn.type==="PENDING"&&(clearTimeout(Hn.longPressTimerId),At(Ks))}},[qe,$t,At]),hs(function(){var gn=be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return gn},[])}function ps(Be){ir(function(){var ae=In(Be);Yr(function(){ae.current.length===Be.length||He(!1)})})}var Os={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function es(Be,ae){if(ae==null)return!1;var Oe=Boolean(Os[ae.tagName.toLowerCase()]);if(Oe)return!0;var qe=ae.getAttribute("contenteditable");return qe==="true"||qe===""?!0:ae===Be?!1:es(Be,ae.parentElement)}function Is(Be,ae){var Oe=ae.target;return Gs(Oe)?es(Be,Oe):!1}var Ps=function(ae){return e(ae.getBoundingClientRect()).center};function ml(Be){return Be instanceof el(Be).Element}var Rl=function(){var Be="matches";if(typeof document=="undefined")return Be;var ae=[Be,"msMatchesSelector","webkitMatchesSelector"],Oe=de(ae,function(qe){return qe in Element.prototype});return Oe||Be}();function _l(Be,ae){return Be==null?null:Be[Rl](ae)?Be:_l(Be.parentElement,ae)}function Bl(Be,ae){return Be.closest?Be.closest(ae):_l(Be,ae)}function jl(Be){return"["+ss.contextId+'="'+Be+'"]'}function kl(Be,ae){var Oe=ae.target;if(!ml(Oe))return null;var qe=jl(Be),At=Bl(Oe,qe);return At&&Gs(At)?At:null}function Xl(Be,ae){var Oe=kl(Be,ae);return Oe?Oe.getAttribute(ss.draggableId):null}function ol(Be,ae){var Oe="["+Cs.contextId+'="'+Be+'"]',qe=_t(document.querySelectorAll(Oe)),At=de(qe,function(Ut){return Ut.getAttribute(Cs.id)===ae});return At&&Gs(At)?At:null}function Ys(Be){Be.preventDefault()}function sl(Be){var ae=Be.expected,Oe=Be.phase,qe=Be.isLockActive,At=Be.shouldWarn;return qe()?!(ae!==Oe):!1}function nl(Be){var ae=Be.lockAPI,Oe=Be.store,qe=Be.registry,At=Be.draggableId;if(ae.isClaimed())return!1;var Ut=qe.draggable.findById(At);return Ut&&Ut.options.isEnabled?!!li(Oe.getState(),At):!1}function xl(Be){var ae=Be.lockAPI,Oe=Be.contextId,qe=Be.store,At=Be.registry,Ut=Be.draggableId,$t=Be.forceSensorStop,rr=Be.sourceEvent,Wr=nl({lockAPI:ae,store:qe,registry:At,draggableId:Ut});if(!Wr)return null;var cn=At.draggable.getById(Ut),Hr=ol(Oe,cn.descriptor.id);if(!Hr)return null;if(rr&&!cn.options.canDragInteractiveElements&&Is(Hr,rr))return null;var Ur=ae.claim($t||ue),on="PRE_DRAG";function gn(){return cn.options.shouldRespectForcePress}function Hn(){return ae.isActive(Ur)}function Oi(za,Xo){sl({expected:za,phase:on,isLockActive:Hn,shouldWarn:!0})&&qe.dispatch(Xo())}var Ri=Oi.bind(null,"DRAGGING");function da(za){function Xo(){ae.release(),on="COMPLETED"}on!=="PRE_DRAG"&&(Xo(),on==="PRE_DRAG"||He(!1)),qe.dispatch(wr(za.liftActionArgs)),on="DRAGGING";function ls(N,U){if(U===void 0&&(U={shouldBlockNextClick:!1}),za.cleanup(),U.shouldBlockNextClick){var ie=be(window,[{eventName:"click",fn:Ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ie)}Xo(),qe.dispatch(ki({reason:N}))}return Object(A.a)({isActive:function(){return sl({expected:"DRAGGING",phase:on,isLockActive:Hn,shouldWarn:!1})},shouldRespectForcePress:gn,drop:function(U){return ls("DROP",U)},cancel:function(U){return ls("CANCEL",U)}},za.actions)}function Ji(za){var Xo=M(function(N){Ri(function(){return xt({client:N})})}),ls=da({liftActionArgs:{id:Ut,clientSelection:za,movementMode:"FLUID"},cleanup:function(){return Xo.cancel()},actions:{move:Xo}});return Object(A.a)({},ls,{move:Xo})}function Qa(){var za={moveUp:function(){return Ri(en)},moveRight:function(){return Ri(_n)},moveDown:function(){return Ri(wn)},moveLeft:function(){return Ri(yn)}};return da({liftActionArgs:{id:Ut,clientSelection:Ps(Hr),movementMode:"SNAP"},cleanup:ue,actions:za})}function ya(){var za=sl({expected:"PRE_DRAG",phase:on,isLockActive:Hn,shouldWarn:!0});za&&ae.release()}var fo={isActive:function(){return sl({expected:"PRE_DRAG",phase:on,isLockActive:Hn,shouldWarn:!1})},shouldRespectForcePress:gn,fluidLift:Ji,snapLift:Qa,abort:ya};return fo}var Ml=[_s,Ts,qo];function Wl(Be){var ae=Be.contextId,Oe=Be.store,qe=Be.registry,At=Be.customSensors,Ut=Be.enableDefaultSensors,$t=[].concat(Ut?Ml:[],At||[]),rr=Object(y.useState)(function(){return si()})[0],Wr=t(function(Ji,Qa){Ji.isDragging&&!Qa.isDragging&&rr.tryAbandon()},[rr]);hs(function(){var Ji=Oe.getState(),Qa=Oe.subscribe(function(){var ya=Oe.getState();Wr(Ji,ya),Ji=ya});return Qa},[rr,Oe,Wr]),hs(function(){return rr.tryAbandon},[rr.tryAbandon]);var cn=t(function(da){return nl({lockAPI:rr,registry:qe,store:Oe,draggableId:da})},[rr,qe,Oe]),Hr=t(function(da,Ji,Qa){return xl({lockAPI:rr,registry:qe,contextId:ae,store:Oe,draggableId:da,forceSensorStop:Ji,sourceEvent:Qa&&Qa.sourceEvent?Qa.sourceEvent:null})},[ae,rr,qe,Oe]),Ur=t(function(da){return Xl(ae,da)},[ae]),on=t(function(da){var Ji=qe.draggable.findById(da);return Ji?Ji.options:null},[qe.draggable]),gn=t(function(){if(!rr.isClaimed())return;rr.tryAbandon(),Oe.getState().phase!=="IDLE"&&Oe.dispatch(Jn())},[rr,Oe]),Hn=t(rr.isClaimed,[rr]),Oi=i(function(){return{canGetLock:cn,tryGetLock:Hr,findClosestDraggableId:Ur,findOptionsForDraggable:on,tryReleaseLock:gn,isLockClaimed:Hn}},[cn,Hr,Ur,on,gn,Hn]);ps($t);for(var Ri=0;Ri<$t.length;Ri++)$t[Ri](Oi)}var au=function(ae){return{onBeforeCapture:ae.onBeforeCapture,onBeforeDragStart:ae.onBeforeDragStart,onDragStart:ae.onDragStart,onDragEnd:ae.onDragEnd,onDragUpdate:ae.onDragUpdate}};function Nl(Be){return Be.current||He(!1),Be.current}function $l(Be){var ae=Be.contextId,Oe=Be.setCallbacks,qe=Be.sensors,At=Be.nonce,Ut=Be.dragHandleUsageInstructions,$t=Object(y.useRef)(null);hn();var rr=In(Be),Wr=t(function(){return au(rr.current)},[rr]),cn=Vo(ae),Hr=nr({contextId:ae,text:Ut}),Ur=Ll(ae,At),on=t(function(N){Nl($t).dispatch(N)},[]),gn=i(function(){return Object(m.b)({publishWhileDragging:ur,updateDroppableScroll:Vr,updateDroppableIsEnabled:sn,updateDroppableIsCombineEnabled:Rn,collectionStarting:Dr},on)},[on]),Hn=tl(),Oi=i(function(){return oi(Hn,gn)},[Hn,gn]),Ri=i(function(){return Ao(Object(A.a)({scrollWindow:ai,scrollDroppable:Oi.scrollDroppable},Object(m.b)({move:xt},on)))},[Oi.scrollDroppable,on]),da=ks(ae),Ji=i(function(){return Er({announce:cn,autoScroller:Ri,dimensionMarshal:Oi,focusMarshal:da,getResponders:Wr,styleMarshal:Ur})},[cn,Ri,Oi,da,Wr,Ur]);$t.current=Ji;var Qa=t(function(){var N=Nl($t),U=N.getState();U.phase!=="IDLE"&&N.dispatch(Jn())},[]),ya=t(function(){var N=Nl($t).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),fo=i(function(){return{isDragging:ya,tryAbort:Qa}},[ya,Qa]);Oe(fo);var za=t(function(N){return li(Nl($t).getState(),N)},[]),Xo=t(function(){return tn(Nl($t).getState())},[]),ls=i(function(){return{marshal:Oi,focus:da,contextId:ae,canLift:za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:Hr,registry:Hn}},[ae,Oi,Hr,da,za,Xo,Hn]);return Wl({contextId:ae,store:Ji,registry:Hn,customSensors:qe,enableDefaultSensors:Be.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Qa},[Qa]),p.a.createElement(On.Provider,{value:ls},p.a.createElement(f.a,{context:xs,store:Ji},Be.children))}var tu=0;function Iu(){tu=0}function pu(){return i(function(){return""+tu++},[])}function mu(){Iu(),Ds()}function gu(Be){var ae=pu(),Oe=Be.dragHandleUsageInstructions||we.dragHandleUsageInstructions;return p.a.createElement(nt,null,function(qe){return p.a.createElement($l,{nonce:Be.nonce,contextId:ae,setCallbacks:qe,dragHandleUsageInstructions:Oe,enableDefaultSensors:Be.enableDefaultSensors,sensors:Be.sensors,onBeforeCapture:Be.onBeforeCapture,onBeforeDragStart:Be.onBeforeDragStart,onDragStart:Be.onDragStart,onDragUpdate:Be.onDragUpdate,onDragEnd:Be.onDragEnd},Be.children)})}var ql=function(ae){return function(Oe){return ae===Oe}},Cl=ql("scroll"),ll=ql("auto"),Hl=ql("visible"),Sl=function(ae,Oe){return Oe(ae.overflowX)||Oe(ae.overflowY)},Su=function(ae,Oe){return Oe(ae.overflowX)&&Oe(ae.overflowY)},vu=function(ae){var Oe=window.getComputedStyle(ae),qe={overflowX:Oe.overflowX,overflowY:Oe.overflowY};return Sl(qe,Cl)||Sl(qe,ll)},Au=function(){return!1;var ae,Oe;if(!vu(ae))return!1;var qe,At;if(Su(At,Hl))return!1},Ol=function Be(ae){return ae==null?null:ae===document.body?Au()?ae:null:ae===document.documentElement?null:vu(ae)?ae:Be(ae.parentElement)},cu=function(ae){if(!ae)return;var Oe=Ol(ae.parentElement);if(!Oe)return},du=function(ae){return{x:ae.scrollLeft,y:ae.scrollTop}},Lu=function Be(ae){if(!ae)return!1;var Oe=window.getComputedStyle(ae);return Oe.position==="fixed"?!0:Be(ae.parentElement)},zl=function(ae){var Oe=Ol(ae),qe=Lu(ae);return{closestScrollable:Oe,isFixedOnPage:qe}},ru=function(ae){var Oe=ae.descriptor,qe=ae.isEnabled,At=ae.isCombineEnabled,Ut=ae.isFixedOnPage,$t=ae.direction,rr=ae.client,Wr=ae.page,cn=ae.closest,Hr=function(){if(!cn)return null;var Hn=cn.scrollSize,Oi=cn.client,Ri=Xn({scrollHeight:Hn.scrollHeight,scrollWidth:Hn.scrollWidth,height:Oi.paddingBox.height,width:Oi.paddingBox.width});return{pageMarginBox:cn.page.marginBox,frameClient:Oi,scrollSize:Hn,shouldClipSubject:cn.shouldClipSubject,scroll:{initial:cn.scroll,current:cn.scroll,max:Ri,diff:{value:Ne,displacement:Ne}}}}(),Ur=$t==="vertical"?ei:Zt,on=Ge({page:Wr,withPlaceholder:null,axis:Ur,frame:Hr}),gn={descriptor:Oe,isCombineEnabled:At,isFixedOnPage:Ut,axis:Ur,isEnabled:qe,client:rr,page:Wr,frame:Hr,subject:on};return gn},ou=function(ae,Oe){var qe=C(ae);if(!Oe)return qe;if(ae!==Oe)return qe;var At=qe.paddingBox.top-Oe.scrollTop,Ut=qe.paddingBox.left-Oe.scrollLeft,$t=At+Oe.scrollHeight,rr=Ut+Oe.scrollWidth,Wr={top:At,right:rr,bottom:$t,left:Ut},cn=l(Wr,qe.border),Hr=d({borderBox:cn,margin:qe.margin,border:qe.border,padding:qe.padding});return Hr},su=function(ae){var Oe=ae.ref,qe=ae.descriptor,At=ae.env,Ut=ae.windowScroll,$t=ae.direction,rr=ae.isDropDisabled,Wr=ae.isCombineEnabled,cn=ae.shouldClipSubject,Hr=At.closestScrollable,Ur=ou(Oe,Hr),on=S(Ur,Ut),gn=function(){if(!Hr)return null;var Oi=C(Hr),Ri={scrollHeight:Hr.scrollHeight,scrollWidth:Hr.scrollWidth};return{client:Oi,page:S(Oi,Ut),scroll:du(Hr),scrollSize:Ri,shouldClipSubject:cn}}(),Hn=ru({descriptor:qe,isEnabled:!rr,isCombineEnabled:Wr,isFixedOnPage:At.isFixedOnPage,direction:$t,client:Ur,page:on,closest:gn});return Hn},Jl={passive:!1},Du={passive:!0},Ru=function(ae){return ae.shouldPublishImmediately?Jl:Du};function Zl(Be){var ae=Object(y.useContext)(Be);return ae||He(!1),ae}var yu=function(ae){return ae&&ae.env.closestScrollable||null};function xu(Be){var ae=Object(y.useRef)(null),Oe=Zl(On),qe=go("droppable"),At=Oe.registry,Ut=Oe.marshal,$t=In(Be),rr=i(function(){return{id:Be.droppableId,type:Be.type,mode:Be.mode}},[Be.droppableId,Be.mode,Be.type]),Wr=Object(y.useRef)(rr),cn=i(function(){return I(function(ya,fo){ae.current||He(!1);var za={x:ya,y:fo};Ut.updateDroppableScroll(rr.id,za)})},[rr.id,Ut]),Hr=t(function(){var ya=ae.current;return!ya||!ya.env.closestScrollable?Ne:du(ya.env.closestScrollable)},[]),Ur=t(function(){var ya=Hr();cn(ya.x,ya.y)},[Hr,cn]),on=i(function(){return M(Ur)},[Ur]),gn=t(function(){var ya=ae.current,fo=yu(ya);ya&&fo||He(!1);var za=ya.scrollOptions;if(za.shouldPublishImmediately){Ur();return}on()},[on,Ur]),Hn=t(function(ya,fo){ae.current&&He(!1);var za=$t.current,Xo=za.getDroppableRef();Xo||He(!1);var ls=zl(Xo),N={ref:Xo,descriptor:rr,env:ls,scrollOptions:fo};ae.current=N;var U=su({ref:Xo,descriptor:rr,env:ls,windowScroll:ya,direction:za.direction,isDropDisabled:za.isDropDisabled,isCombineEnabled:za.isCombineEnabled,shouldClipSubject:!za.ignoreContainerClipping}),ie=ls.closestScrollable;return ie&&(ie.setAttribute(il.contextId,Oe.contextId),ie.addEventListener("scroll",gn,Ru(N.scrollOptions))),U},[Oe.contextId,rr,gn,$t]),Oi=t(function(){var ya=ae.current,fo=yu(ya);return ya&&fo||He(!1),du(fo)},[]),Ri=t(function(){var ya=ae.current;ya||He(!1);var fo=yu(ya);if(ae.current=null,!fo)return;on.cancel(),fo.removeAttribute(il.contextId),fo.removeEventListener("scroll",gn,Ru(ya.scrollOptions))},[gn,on]),da=t(function(ya){var fo=ae.current;fo||He(!1);var za=yu(fo);za||He(!1),za.scrollTop+=ya.y,za.scrollLeft+=ya.x},[]),Ji=i(function(){return{getDimensionAndWatchScroll:Hn,getScrollWhileDragging:Oi,dragStopped:Ri,scroll:da}},[Ri,Hn,Oi,da]),Qa=i(function(){return{uniqueId:qe,descriptor:rr,callbacks:Ji}},[Ji,rr,qe]);hs(function(){return Wr.current=Qa.descriptor,At.droppable.register(Qa),function(){ae.current&&Ri(),At.droppable.unregister(Qa)}},[Ji,rr,Ri,Qa,Ut,At.droppable]),hs(function(){if(!ae.current)return;Ut.updateDroppableIsEnabled(Wr.current.id,!Be.isDropDisabled)},[Be.isDropDisabled,Ut]),hs(function(){if(!ae.current)return;Ut.updateDroppableIsCombineEnabled(Wr.current.id,Be.isCombineEnabled)},[Be.isCombineEnabled,Ut])}function bu(){}var hl={width:0,height:0,margin:hr},Dl=function(ae){var Oe=ae.isAnimatingOpenOnMount,qe=ae.placeholder,At=ae.animate;return Oe||At==="close"?hl:{height:qe.client.borderBox.height,width:qe.client.borderBox.width,margin:qe.client.margin}},nu=function(ae){var Oe=ae.isAnimatingOpenOnMount,qe=ae.placeholder,At=ae.animate,Ut=Dl({isAnimatingOpenOnMount:Oe,placeholder:qe,animate:At});return{display:qe.display,boxSizing:"border-box",width:Ut.width,height:Ut.height,marginTop:Ut.margin.top,marginRight:Ut.margin.right,marginBottom:Ut.margin.bottom,marginLeft:Ut.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:At!=="none"?ra.placeholder:null}};function Nu(Be){var ae=Object(y.useRef)(null),Oe=t(function(){if(!ae.current)return;clearTimeout(ae.current),ae.current=null},[]),qe=Be.animate,At=Be.onTransitionEnd,Ut=Be.onClose,$t=Be.contextId,rr=Object(y.useState)(Be.animate==="open"),Wr=rr[0],cn=rr[1];Object(y.useEffect)(function(){return Wr?qe!=="open"?(Oe(),cn(!1),bu):ae.current?bu:(ae.current=setTimeout(function(){ae.current=null,cn(!1)}),Oe):bu},[qe,Wr,Oe]);var Hr=t(function(on){if(on.propertyName!=="height")return;At(),qe==="close"&&Ut()},[qe,Ut,At]),Ur=nu({isAnimatingOpenOnMount:Wr,animate:Be.animate,placeholder:Be.placeholder});return p.a.createElement(Be.placeholder.tagName,{style:Ur,"data-rbd-placeholder-context-id":$t,onTransitionEnd:Hr,ref:Be.innerRef})}var hu=p.a.memo(Nu),fu=p.a.createContext(null);function iu(Be){Be&&Gs(Be)||He(!1)}function ve(Be){return typeof Be=="boolean"}function te(Be,ae){ae.forEach(function(Oe){return Oe(Be)})}var L=[function(ae){var Oe=ae.props;Oe.droppableId||He(!1),typeof Oe.droppableId=="string"||He(!1)},function(ae){var Oe=ae.props;ve(Oe.isDropDisabled)||He(!1),ve(Oe.isCombineEnabled)||He(!1),ve(Oe.ignoreContainerClipping)||He(!1)},function(ae){var Oe=ae.getDroppableRef;iu(Oe())}],K=[function(ae){var Oe=ae.props,qe=ae.getPlaceholderRef;if(!Oe.placeholder)return;var At=qe();if(At)return}],H=[function(ae){var Oe=ae.props;Oe.renderClone||He(!1)},function(ae){var Oe=ae.getPlaceholderRef;Oe()&&He(!1)}];function Z(Be){Yr(function(){te(Be,L),Be.props.mode==="standard"&&te(Be,K),Be.props.mode==="virtual"&&te(Be,H)})}var ne=function(Be){Object(x.a)(ae,Be);function ae(){for(var qe,At=arguments.length,Ut=new Array(At),$t=0;$t<At;$t++)Ut[$t]=arguments[$t];return qe=Be.call.apply(Be,[this].concat(Ut))||this,qe.state={isVisible:Boolean(qe.props.on),data:qe.props.on,animate:qe.props.shouldAnimate&&qe.props.on?"open":"none"},qe.onClose=function(){if(qe.state.animate!=="close")return;qe.setState({isVisible:!1})},qe}ae.getDerivedStateFromProps=function(At,Ut){return At.shouldAnimate?At.on?{isVisible:!0,data:At.on,animate:"open"}:Ut.isVisible?{isVisible:!0,data:Ut.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(At.on),data:At.on,animate:"none"}};var Oe=ae.prototype;return Oe.render=function(){if(!this.state.isVisible)return null;var At={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(At)},ae}(p.a.PureComponent),Ae={dragging:5e3,dropAnimating:4500},Te=function(ae,Oe){return Oe?ra.drop(Oe.duration):ae?ra.snap:ra.fluid},ze=function(ae,Oe){return ae?Oe?Qi.opacity.drop:Qi.opacity.combining:null},st=function(ae){return ae.forceShouldAnimate!=null?ae.forceShouldAnimate:ae.mode==="SNAP"};function ct(Be){var ae=Be.dimension,Oe=ae.client,qe=Be.offset,At=Be.combineWith,Ut=Be.dropping,$t=Boolean(At),rr=st(Be),Wr=Boolean(Ut),cn=Wr?La.drop(qe,$t):La.moveTo(qe),Hr={position:"fixed",top:Oe.marginBox.top,left:Oe.marginBox.left,boxSizing:"border-box",width:Oe.borderBox.width,height:Oe.borderBox.height,transition:Te(rr,Ut),transform:cn,opacity:ze($t,Wr),zIndex:Wr?Ae.dropAnimating:Ae.dragging,pointerEvents:"none"};return Hr}function zt(Be){return{transform:La.moveTo(Be.offset),transition:Be.shouldAnimateDisplacement?null:"none"}}function Tr(Be){return Be.type==="DRAGGING"?ct(Be):zt(Be)}function br(Be,ae,Oe){Oe===void 0&&(Oe=Ne);var qe=window.getComputedStyle(ae),At=ae.getBoundingClientRect(),Ut=E(At,qe),$t=S(Ut,Oe),rr={client:Ut,tagName:ae.tagName.toLowerCase(),display:qe.display},Wr={x:Ut.marginBox.width,y:Ut.marginBox.height},cn={descriptor:Be,placeholder:rr,displaceBy:Wr,client:Ut,page:$t};return cn}function Kr(Be){var ae=go("draggable"),Oe=Be.descriptor,qe=Be.registry,At=Be.getDraggableRef,Ut=Be.canDragInteractiveElements,$t=Be.shouldRespectForcePress,rr=Be.isEnabled,Wr=i(function(){return{canDragInteractiveElements:Ut,shouldRespectForcePress:$t,isEnabled:rr}},[Ut,rr,$t]),cn=t(function(gn){var Hn=At();return Hn||He(!1),br(Oe,Hn,gn)},[Oe,At]),Hr=i(function(){return{uniqueId:ae,descriptor:Oe,options:Wr,getDimension:cn}},[Oe,cn,Wr,ae]),Ur=Object(y.useRef)(Hr),on=Object(y.useRef)(!0);hs(function(){return qe.draggable.register(Ur.current),function(){return qe.draggable.unregister(Ur.current)}},[qe.draggable]),hs(function(){if(on.current){on.current=!1;return}var gn=Ur.current;Ur.current=Hr,qe.draggable.update(Hr,gn)},[Hr,qe.draggable])}function zr(Be,ae,Oe){Yr(function(){function qe(Ut){return"Draggable[id: "+Ut+"]: "}var At=Be.draggableId;if(At||He(!1),typeof At=="string"||He(!1),se(Be.index)||He(!1),Be.mapped.type==="DRAGGING")return;iu(Oe()),Be.isEnabled&&(ds(ae,At)||He(!1))})}function Nn(Be){ir(function(){var ae=Object(y.useRef)(Be);Yr(function(){Be===ae.current||He(!1)},[Be])})}function Mn(Be){Be.preventDefault()}function Yn(Be){var ae=Object(y.useRef)(null),Oe=t(function(N){ae.current=N},[]),qe=t(function(){return ae.current},[]),At=Zl(On),Ut=At.contextId,$t=At.dragHandleUsageInstructionsId,rr=At.registry,Wr=Zl(fu),cn=Wr.type,Hr=Wr.droppableId,Ur=i(function(){return{id:Be.draggableId,index:Be.index,type:cn,droppableId:Hr}},[Be.draggableId,Be.index,cn,Hr]),on=Be.children,gn=Be.draggableId,Hn=Be.isEnabled,Oi=Be.shouldRespectForcePress,Ri=Be.canDragInteractiveElements,da=Be.isClone,Ji=Be.mapped,Qa=Be.dropAnimationFinished;if(zr(Be,Ut,qe),Nn(da),!da){var ya=i(function(){return{descriptor:Ur,registry:rr,getDraggableRef:qe,canDragInteractiveElements:Ri,shouldRespectForcePress:Oi,isEnabled:Hn}},[Ur,rr,qe,Ri,Oi,Hn]);Kr(ya)}var fo=i(function(){return Hn?{tabIndex:0,role:"button","aria-describedby":$t,"data-rbd-drag-handle-draggable-id":gn,"data-rbd-drag-handle-context-id":Ut,draggable:!1,onDragStart:Mn}:null},[Ut,$t,gn,Hn]),za=t(function(N){if(Ji.type!=="DRAGGING")return;if(!Ji.dropping)return;if(N.propertyName!=="transform")return;Qa()},[Qa,Ji]),Xo=i(function(){var N=Tr(Ji),U=Ji.type==="DRAGGING"&&Ji.dropping?za:null,ie={innerRef:Oe,draggableProps:{"data-rbd-draggable-context-id":Ut,"data-rbd-draggable-id":gn,style:N,onTransitionEnd:U},dragHandleProps:fo};return ie},[Ut,fo,gn,Ji,za,Oe]),ls=i(function(){return{draggableId:Ur.id,type:Ur.type,source:{index:Ur.index,droppableId:Ur.droppableId}}},[Ur.droppableId,Ur.id,Ur.index,Ur.type]);return on(Xo,Ji.snapshot,ls)}var bi=function(ae,Oe){return ae===Oe},ua=function(ae){var Oe=ae.combine,qe=ae.destination;return qe?qe.droppableId:Oe?Oe.droppableId:null},Yi=function(ae){return ae.combine?ae.combine.draggableId:null},ta=function(ae){return ae.at&&ae.at.type==="COMBINE"?ae.at.combine.draggableId:null};function Pa(){var Be=I(function(At,Ut){return{x:At,y:Ut}}),ae=I(function(At,Ut,$t,rr,Wr){return{isDragging:!0,isClone:Ut,isDropAnimating:Boolean(Wr),dropAnimation:Wr,mode:At,draggingOver:$t,combineWith:rr,combineTargetFor:null}}),Oe=I(function(At,Ut,$t,rr,Wr,cn,Hr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Wr,combineWith:cn,mode:Ut,offset:At,dimension:$t,forceShouldAnimate:Hr,snapshot:ae(Ut,rr,Wr,cn,null)}}}),qe=function(Ut,$t){if(Ut.isDragging){if(Ut.critical.draggable.id!==$t.draggableId)return null;var rr=Ut.current.client.offset,Wr=Ut.dimensions.draggables[$t.draggableId],cn=fi(Ut.impact),Hr=ta(Ut.impact),Ur=Ut.forceShouldAnimate;return Oe(Be(rr.x,rr.y),Ut.movementMode,Wr,$t.isClone,cn,Hr,Ur)}if(Ut.phase==="DROP_ANIMATING"){var on=Ut.completed;if(on.result.draggableId!==$t.draggableId)return null;var gn=$t.isClone,Hn=Ut.dimensions.draggables[$t.draggableId],Oi=on.result,Ri=Oi.mode,da=ua(Oi),Ji=Yi(Oi),Qa=Ut.dropDuration,ya={duration:Qa,curve:Ui.drop,moveTo:Ut.newHomeClientOffset,opacity:Ji?Qi.opacity.drop:null,scale:Ji?Qi.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ut.newHomeClientOffset,dimension:Hn,dropping:ya,draggingOver:da,combineWith:Ji,mode:Ri,forceShouldAnimate:null,snapshot:ae(Ri,gn,da,Ji,ya)}}}return null};return qe}function Ya(Be){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Be,combineWith:null}}var Ba={mapped:{type:"SECONDARY",offset:Ne,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ya(null)}};function Sa(){var Be=I(function($t,rr){return{x:$t,y:rr}}),ae=I(Ya),Oe=I(function($t,rr,Wr){return rr===void 0&&(rr=null),{mapped:{type:"SECONDARY",offset:$t,combineTargetFor:rr,shouldAnimateDisplacement:Wr,snapshot:ae(rr)}}}),qe=function(rr){return rr?Oe(Ne,rr,!0):null},At=function(rr,Wr,cn,Hr){var Ur=cn.displaced.visible[rr],on=Boolean(Hr.inVirtualList&&Hr.effected[rr]),gn=Pr(cn),Hn=gn&&gn.draggableId===rr?Wr:null;if(!Ur){if(!on)return qe(Hn);if(cn.displaced.invisible[rr])return null;var Oi=Fe(Hr.displacedBy.point),Ri=Be(Oi.x,Oi.y);return Oe(Ri,Hn,!0)}if(on)return qe(Hn);var da=cn.displacedBy.point,Ji=Be(da.x,da.y);return Oe(Ji,Hn,Ur.shouldAnimate)},Ut=function(rr,Wr){if(rr.isDragging)return rr.critical.draggable.id===Wr.draggableId?null:At(Wr.draggableId,rr.critical.draggable.id,rr.impact,rr.afterCritical);if(rr.phase==="DROP_ANIMATING"){var cn=rr.completed;return cn.result.draggableId===Wr.draggableId?null:At(Wr.draggableId,cn.result.draggableId,cn.impact,cn.afterCritical)}return null};return Ut}var Go=function(){var ae=Pa(),Oe=Sa(),qe=function(Ut,$t){return ae(Ut,$t)||Oe(Ut,$t)||Ba};return qe},Ls={dropAnimationFinished:_i},ys=Object(f.c)(Go,Ls,null,{context:xs,pure:!0,areStatePropsEqual:bi})(Yn);function bs(Be){var ae=Zl(fu),Oe=ae.isUsingCloneFor;return Oe===Be.draggableId&&!Be.isClone?null:p.a.createElement(ys,Be)}function Fs(Be){var ae=typeof Be.isDragDisabled=="boolean"?!Be.isDragDisabled:!0,Oe=Boolean(Be.disableInteractiveElementBlocking),qe=Boolean(Be.shouldRespectForcePress);return p.a.createElement(bs,Object(A.a)({},Be,{isClone:!1,isEnabled:ae,canDragInteractiveElements:Oe,shouldRespectForcePress:qe}))}function ws(Be){var ae=Object(y.useContext)(On);ae||He(!1);var Oe=ae.contextId,qe=ae.isMovementAllowed,At=Object(y.useRef)(null),Ut=Object(y.useRef)(null),$t=Be.children,rr=Be.droppableId,Wr=Be.type,cn=Be.mode,Hr=Be.direction,Ur=Be.ignoreContainerClipping,on=Be.isDropDisabled,gn=Be.isCombineEnabled,Hn=Be.snapshot,Oi=Be.useClone,Ri=Be.updateViewportMaxScroll,da=Be.getContainerForClone,Ji=t(function(){return At.current},[]),Qa=t(function(le){At.current=le},[]),ya=t(function(){return Ut.current},[]),fo=t(function(le){Ut.current=le},[]);Z({props:Be,getDroppableRef:Ji,getPlaceholderRef:ya});var za=t(function(){qe()&&Ri({maxScroll:Gr()})},[qe,Ri]);xu({droppableId:rr,type:Wr,mode:cn,direction:Hr,isDropDisabled:on,isCombineEnabled:gn,ignoreContainerClipping:Ur,getDroppableRef:Ji});var Xo=p.a.createElement(ne,{on:Be.placeholder,shouldAnimate:Be.shouldAnimatePlaceholder},function(le){var ge=le.onClose,Ke=le.data,Tt=le.animate;return p.a.createElement(hu,{placeholder:Ke,onClose:ge,innerRef:fo,animate:Tt,contextId:Oe,onTransitionEnd:za})}),ls=i(function(){return{innerRef:Qa,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":rr,"data-rbd-droppable-context-id":Oe}}},[Oe,rr,Xo,Qa]),N=Oi?Oi.dragging.draggableId:null,U=i(function(){return{droppableId:rr,type:Wr,isUsingCloneFor:N}},[rr,N,Wr]);function ie(){if(!Oi)return null;var le=Oi.dragging,ge=Oi.render,Ke=p.a.createElement(bs,{draggableId:le.draggableId,index:le.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Tt,tr){return ge(Tt,tr,le)});return P.a.createPortal(Ke,da())}return p.a.createElement(fu.Provider,{value:U},$t(ls,Hn),ie())}var Ws=function(ae,Oe){return ae===Oe.droppable.type},xe=function(ae,Oe){return Oe.draggables[ae.draggable.id]},Je=function(){var ae={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Oe=Object(A.a)({},ae,{shouldAnimatePlaceholder:!1}),qe=I(function($t){return{draggableId:$t.id,type:$t.type,source:{index:$t.index,droppableId:$t.droppableId}}}),At=I(function($t,rr,Wr,cn,Hr,Ur){var on=Hr.descriptor.id,gn=Hr.descriptor.droppableId===$t;if(gn){var Hn=Ur?{render:Ur,dragging:qe(Hr.descriptor)}:null,Oi={isDraggingOver:Wr,draggingOverWith:Wr?on:null,draggingFromThisWith:on,isUsingPlaceholder:!0};return{placeholder:Hr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Oi,useClone:Hn}}if(!rr)return Oe;if(!cn)return ae;var Ri={isDraggingOver:Wr,draggingOverWith:on,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Hr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ri,useClone:null}}),Ut=function(rr,Wr){var cn=Wr.droppableId,Hr=Wr.type,Ur=!Wr.isDropDisabled,on=Wr.renderClone;if(rr.isDragging){var gn=rr.critical;if(!Ws(Hr,gn))return Oe;var Hn=xe(gn,rr.dimensions),Oi=fi(rr.impact)===cn;return At(cn,Ur,Oi,Oi,Hn,on)}if(rr.phase==="DROP_ANIMATING"){var Ri=rr.completed;if(!Ws(Hr,Ri.critical))return Oe;var da=xe(Ri.critical,rr.dimensions);return At(cn,Ur,ua(Ri.result)===cn,fi(Ri.impact)===cn,da,on)}if(rr.phase==="IDLE"&&rr.completed&&!rr.shouldFlush){var Ji=rr.completed;if(!Ws(Hr,Ji.critical))return Oe;var Qa=fi(Ji.impact)===cn,ya=Boolean(Ji.impact.at&&Ji.impact.at.type==="COMBINE"),fo=Ji.critical.droppable.id===cn;return Qa?ya?ae:Oe:fo?ae:Oe}return Oe};return Ut},bt={updateViewportMaxScroll:Or};function lr(){return document.body||He(!1),document.body}var Fr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:lr},an=Object(f.c)(Je,bt,null,{context:xs,pure:!0,areStatePropsEqual:bi})(ws);an.defaultProps=Fr},ni6a:function(k,D,n){var y=n("pzxd"),p=n("mFDi"),x=n("gut8"),A=x.WILL_BE_RESTORED,m=new p,f=function(){};f.prototype={constructor:f,drawRectText:function(a,i){var t=this.style;i=t.textRect||i,this.__dirty&&y.normalizeTextStyle(t,!0);var o=t.text;if(o!=null&&(o+=""),!y.needDrawText(o,t))return;a.save();var e=this.transform;t.transformText?this.setTransform(a):e&&(m.copy(i),m.applyTransform(e),i=m),y.renderText(this,a,o,t,i,A),a.restore()}};var h=f;k.exports=h},nkfE:function(k,D,n){var y=n("bYtY"),p=n("ca2m"),x=n("bLfw"),A=n("+TT/"),m=A.getLayoutParams,f=A.mergeLayoutParam,h=n("jkPA"),u=["value","category","time","log"];function a(i,t,o,e){y.each(u,function(l){t.extend({type:i+"Axis."+l,mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,d=c?m(r):{},g=s.getTheme();y.merge(r,g.get(l+"Axis")),y.merge(r,this.getDefaultOption()),r.type=o(i,r),c&&f(r,d,c)},optionUpdated:function(){var r=this.option;r.type==="category"&&(this.__ordinalMeta=h.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)})}),x.registerSubTypeDefaulter(i+"Axis",y.curry(o,i))}k.exports=a},noeP:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("UOVi");y.registerAction("dataZoom",function(A,m){var f=x.createLinkedNodesFinder(p.bind(m.eachComponent,m,"dataZoom"),x.eachAxisDim,function(u,a){return u.get(a.axisIndex)}),h=[];m.eachComponent({mainType:"dataZoom",query:A},function(u,a){h.push.apply(h,f(u).nodes)}),p.each(h,function(u,a){u.setRawRange({start:A.start,end:A.end,startValue:A.startValue,endValue:A.endValue})})})},o40c:function(k,D,n){var y=n("IwbS"),p=n("OS9S"),x=n("loD1"),A=n("aKvl"),m=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(a,i){var t=i.segs,o=i.curveness;if(i.polyline)for(var e=0;e<t.length;){var l=t[e++];if(l>0){a.moveTo(t[e++],t[e++]);for(var r=1;r<l;r++)a.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var s=t[e++],c=t[e++],d=t[e++],g=t[e++];if(a.moveTo(s,c),o>0){var v=(s+d)/2-(c-g)*o,b=(c+g)/2-(d-s)*o;a.quadraticCurveTo(v,b,d,g)}else a.lineTo(d,g)}},findDataIndex:function(a,i){var t=this.shape,o=t.segs,e=t.curveness;if(t.polyline)for(var l=0,r=0;r<o.length;){var s=o[r++];if(s>0)for(var c=o[r++],d=o[r++],g=1;g<s;g++){var v=o[r++],b=o[r++];if(x.containStroke(c,d,v,b))return l}l++}else for(var l=0,r=0;r<o.length;){var c=o[r++],d=o[r++],v=o[r++],b=o[r++];if(e>0){var S=(c+v)/2-(d-b)*e,E=(d+b)/2-(v-c)*e;if(A.containStroke(c,d,S,E,v,b))return l}else if(x.containStroke(c,d,v,b))return l;l++}return-1}});function f(){this.group=new y.Group}var h=f.prototype;h.isPersistent=function(){return!this._incremental},h.updateData=function(a){this.group.removeAll();var i=new m({rectHover:!0,cursor:"default"});i.setShape({segs:a.getLayout("linesPoints")}),this._setCommon(i,a),this.group.add(i),this._incremental=null},h.incrementalPrepareUpdate=function(a){this.group.removeAll(),this._clearIncremental(),a.count()>5e5?(this._incremental||(this._incremental=new p({silent:!0})),this.group.add(this._incremental)):this._incremental=null},h.incrementalUpdate=function(a,i){var t=new m;t.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(t,i,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=a.start,this.group.add(t))},h.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},h._setCommon=function(a,i,t){var o=i.hostModel;a.setShape({polyline:o.get("polyline"),curveness:o.get("lineStyle.curveness")}),a.useStyle(o.getModel("lineStyle").getLineStyle()),a.style.strokeNoScale=!0;var e=i.getVisual("color");e&&a.setStyle("stroke",e),a.setStyle("fill"),t||(a.seriesIndex=o.seriesIndex,a.on("mousemove",function(l){a.dataIndex=null;var r=a.findDataIndex(l.offsetX,l.offsetY);r>0&&(a.dataIndex=r+a.__startIndex)}))},h._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};var u=f;k.exports=u},oBaM:function(k,D,n){var y=n("T4UG"),p=n("5GtS"),x=n("bYtY"),A=n("7aKB"),m=A.encodeHTML,f=n("xKMd"),h=y.extend({type:"series.radar",dependencies:["radar"],init:function(a){h.superApply(this,"init",arguments),this.legendVisualProvider=new f(x.bind(this.getData,this),x.bind(this.getRawData,this))},getInitialData:function(a,i){return p(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(a){var i=this.getData(),t=this.coordinateSystem,o=t.getIndicatorAxes(),e=this.getData().getName(a);return m(e===""?this.name:e)+"<br/>"+x.map(o,function(l,r){var s=i.get(i.mapDimension(l.dim),a);return m(l.name+" : "+s)}).join("<br />")},getTooltipPosition:function(a){if(a!=null){for(var i=this.getData(),t=this.coordinateSystem,o=i.getValues(x.map(t.dimensions,function(s){return i.mapDimension(s)}),a,!0),e=0,l=o.length;e<l;e++)if(!isNaN(o[e])){var r=t.getIndicatorAxes();return t.coordToPoint(r[e].dataToCoord(o[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=h;k.exports=u},oE7X:function(k,D,n){var y=n("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(k,D,n){},oRuE:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(x,A){var m=A*4,f=m-x.sigBytes%m;x.concat(y.lib.WordArray.random(f-1)).concat(y.lib.WordArray.create([f<<24],1))},unpad:function(x){var A=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=A}},y.pad.Iso10126})},oVpE:function(k,D,n){var y=n("bYtY"),p=n("IwbS"),x=n("mFDi"),A=n("6GrX"),m=A.calculateTextPosition,f=p.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var d=c.cx,g=c.cy,v=c.width/2,b=c.height/2;s.moveTo(d,g-b),s.lineTo(d+v,g+b),s.lineTo(d-v,g+b),s.closePath()}}),h=p.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var d=c.cx,g=c.cy,v=c.width/2,b=c.height/2;s.moveTo(d,g-b),s.lineTo(d+v,g),s.lineTo(d,g+b),s.lineTo(d-v,g),s.closePath()}}),u=p.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var d=c.x,g=c.y,v=c.width/5*3,b=Math.max(v,c.height),S=v/2,E=S*S/(b-S),C=g-b+S+E,_=Math.asin(E/S),T=Math.cos(_)*S,w=Math.sin(_),O=Math.cos(_),I=S*.6,R=S*.7;s.moveTo(d-T,C+E),s.arc(d,C,S,Math.PI-_,Math.PI*2+_),s.bezierCurveTo(d+T-w*I,C+E+O*I,d,g-R,d,g),s.bezierCurveTo(d,g-R,d-T+w*I,C+E+O*I,d-T,C+E),s.closePath()}}),a=p.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var d=c.height,g=c.width,v=c.x,b=c.y,S=g/3*2;s.moveTo(v,b),s.lineTo(v+S,b+d),s.lineTo(v,b+d/4*3),s.lineTo(v-S,b+d),s.lineTo(v,b),s.closePath()}}),i={line:p.Line,rect:p.Rect,roundRect:p.Rect,square:p.Rect,circle:p.Circle,diamond:h,pin:u,arrow:a,triangle:f},t={line:function(s,c,d,g,v){v.x1=s,v.y1=c+g/2,v.x2=s+d,v.y2=c+g/2},rect:function(s,c,d,g,v){v.x=s,v.y=c,v.width=d,v.height=g},roundRect:function(s,c,d,g,v){v.x=s,v.y=c,v.width=d,v.height=g,v.r=Math.min(d,g)/4},square:function(s,c,d,g,v){var b=Math.min(d,g);v.x=s,v.y=c,v.width=b,v.height=b},circle:function(s,c,d,g,v){v.cx=s+d/2,v.cy=c+g/2,v.r=Math.min(d,g)/2},diamond:function(s,c,d,g,v){v.cx=s+d/2,v.cy=c+g/2,v.width=d,v.height=g},pin:function(s,c,d,g,v){v.x=s+d/2,v.y=c+g/2,v.width=d,v.height=g},arrow:function(s,c,d,g,v){v.x=s+d/2,v.y=c+g/2,v.width=d,v.height=g},triangle:function(s,c,d,g,v){v.cx=s+d/2,v.cy=c+g/2,v.width=d,v.height=g}},o={};y.each(i,function(s,c){o[c]=new s});var e=p.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(s,c,d){var g=m(s,c,d),v=this.shape;return v&&v.symbolType==="pin"&&c.textPosition==="inside"&&(g.y=d.y+d.height*.4),g},buildPath:function(s,c,d){var g=c.symbolType;if(g!=="none"){var v=o[g];v||(g="rect",v=o[g]),t[g](c.x,c.y,c.width,c.height,v.shape),v.buildPath(s,v.shape,d)}}});function l(s,c){if(this.type!=="image"){var d=this.style,g=this.shape;g&&g.symbolType==="line"?d.stroke=s:this.__isEmptyBrush?(d.stroke=s,d.fill=c||"#fff"):(d.fill&&(d.fill=s),d.stroke&&(d.stroke=s)),this.dirty(!1)}}function r(s,c,d,g,v,b,S){var E=s.indexOf("empty")===0;E&&(s=s.substr(5,1).toLowerCase()+s.substr(6));var C;return s.indexOf("image://")===0?C=p.makeImage(s.slice(8),new x(c,d,g,v),S?"center":"cover"):s.indexOf("path://")===0?C=p.makePath(s.slice(7),{},new x(c,d,g,v),S?"center":"cover"):C=new e({shape:{symbolType:s,x:c,y:d,width:g,height:v}}),C.__isEmptyBrush=E,C.setColor=l,C.setColor(b),C}D.createSymbol=r},oY9F:function(k,D,n){var y=n("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,n){var y=n("1hJj"),p=n("QoRX"),x=n("xYSL"),A=1,m=2;function f(h,u,a,i,t,o){var e=a&A,l=h.length,r=u.length;if(l!=r&&!(e&&r>l))return!1;var s=o.get(h),c=o.get(u);if(s&&c)return s==u&&c==h;var d=-1,g=!0,v=a&m?new y:void 0;for(o.set(h,u),o.set(u,h);++d<l;){var b=h[d],S=u[d];if(i)var E=e?i(S,b,d,u,h,o):i(b,S,d,h,u,o);if(E!==void 0){if(E)continue;g=!1;break}if(v){if(!p(u,function(C,_){if(!x(v,_)&&(b===C||t(b,C,a,i,o)))return v.push(_)})){g=!1;break}}else if(!(b===S||t(b,S,a,i,o))){g=!1;break}}return o.delete(h),o.delete(u),g}k.exports=f},osHv:function(k,D,n){(function(y){y(n("VrN/"))})(function(y){"use strict";var p=y.Pos;function x(c,d){return c.line-d.line||c.ch-d.ch}var A="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",m=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f=new RegExp("<(/?)(["+A+"]["+m+"]*)","g");function h(c,d,g,v){this.line=d,this.ch=g,this.cm=c,this.text=c.getLine(d),this.min=v?Math.max(v.from,c.firstLine()):c.firstLine(),this.max=v?Math.min(v.to-1,c.lastLine()):c.lastLine()}function u(c,d){var g=c.cm.getTokenTypeAt(p(c.line,d));return g&&/\btag\b/.test(g)}function a(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function i(c){return c.line<=c.min?void 0:(c.text=c.cm.getLine(--c.line),c.ch=c.text.length,!0)}function t(c){for(;;){var d=c.text.indexOf(">",c.ch);if(d==-1){if(a(c))continue;return}if(!u(c,d+1)){c.ch=d+1;continue}var g=c.text.lastIndexOf("/",d),v=g>-1&&!/\S/.test(c.text.slice(g+1,d));return c.ch=d+1,v?"selfClose":"regular"}}function o(c){for(;;){var d=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(d==-1){if(i(c))continue;return}if(!u(c,d+1)){c.ch=d;continue}f.lastIndex=d,c.ch=d;var g=f.exec(c.text);if(g&&g.index==d)return g}}function e(c){for(;;){f.lastIndex=c.ch;var d=f.exec(c.text);if(!d){if(a(c))continue;return}if(!u(c,d.index+1)){c.ch=d.index+1;continue}return c.ch=d.index+d[0].length,d}}function l(c){for(;;){var d=c.ch?c.text.lastIndexOf(">",c.ch-1):-1;if(d==-1){if(i(c))continue;return}if(!u(c,d+1)){c.ch=d;continue}var g=c.text.lastIndexOf("/",d),v=g>-1&&!/\S/.test(c.text.slice(g+1,d));return c.ch=d+1,v?"selfClose":"regular"}}function r(c,d){for(var g=[];;){var v=e(c),b,S=c.line,E=c.ch-(v?v[0].length:0);if(!v||!(b=t(c)))return;if(b=="selfClose")continue;if(v[1]){for(var C=g.length-1;C>=0;--C)if(g[C]==v[2]){g.length=C;break}if(C<0&&(!d||d==v[2]))return{tag:v[2],from:p(S,E),to:p(c.line,c.ch)}}else g.push(v[2])}}function s(c,d){for(var g=[];;){var v=l(c);if(!v)return;if(v=="selfClose"){o(c);continue}var b=c.line,S=c.ch,E=o(c);if(!E)return;if(E[1])g.push(E[2]);else{for(var C=g.length-1;C>=0;--C)if(g[C]==E[2]){g.length=C;break}if(C<0&&(!d||d==E[2]))return{tag:E[2],from:p(c.line,c.ch),to:p(b,S)}}}}y.registerHelper("fold","xml",function(c,d){for(var g=new h(c,d.line,0);;){var v=e(g);if(!v||g.line!=d.line)return;var b=t(g);if(!b)return;if(!v[1]&&b!="selfClose"){var S=p(g.line,g.ch),E=r(g,v[2]);return E&&x(E.from,S)>0?{from:S,to:E.from}:null}}}),y.findMatchingTag=function(c,d,g){var v=new h(c,d.line,d.ch,g);if(v.text.indexOf(">")==-1&&v.text.indexOf("<")==-1)return;var b=t(v),S=b&&p(v.line,v.ch),E=b&&o(v);if(!b||!E||x(v,d)>0)return;var C={from:p(v.line,v.ch),to:S,tag:E[2]};return b=="selfClose"?{open:C,close:null,at:"open"}:E[1]?{open:s(v,E[2]),close:C,at:"close"}:(v=new h(c,S.line,S.ch,g),{open:C,close:r(v,E[2]),at:"open"})},y.findEnclosingTag=function(c,d,g,v){for(var b=new h(c,d.line,d.ch,g);;){var S=s(b,v);if(!S)break;var E=new h(c,d.line,d.ch,g),C=r(E,S.tag);if(C)return{open:S,close:C}}},y.scanForClosingTag=function(c,d,g,v){var b=new h(c,d.line,d.ch,v?{from:0,to:v}:null);return r(b,g)}})},ozfa:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("KxFI"),A=n.n(x)},"p+If":function(k,D,n){var y=n("ProS");n("cpOr"),n("rkZ5");var p=n("ZYIC"),x=n("7ph2");y.registerLayout(p),y.registerVisual(x)},"p/La":function(k,D){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(p,x){p==="china"&&x.name==="\u53F0\u6E7E"&&x.geometries.push({type:"polygon",exterior:n[0]})}k.exports=y},p1MT:function(k,D,n){var y=n("Hw7h"),p=n("IwbS"),x=n("6Ic6"),A=n("OELB"),m=A.parsePercent,f=A.round,h=A.linearMap;function u(e,l){var r=e.get("center"),s=l.getWidth(),c=l.getHeight(),d=Math.min(s,c),g=m(r[0],l.getWidth()),v=m(r[1],l.getHeight()),b=m(e.get("radius"),d/2);return{cx:g,cy:v,r:b}}function a(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var i=Math.PI*2,t=x.extend({type:"gauge",render:function(e,l,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 d=this.group,g=e.getModel("axisLine"),v=g.getModel("lineStyle"),b=e.get("clockwise"),S=-e.get("startAngle")/180*Math.PI,E=-e.get("endAngle")/180*Math.PI,C=(E-S)%i,_=S,T=v.get("width"),w=g.get("show"),O=0;w&&O<s.length;O++){var I=Math.min(Math.max(s[O][0],0),1),E=S+C*I,R=new p.Sector({shape:{startAngle:_,endAngle:E,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-T,r:c.r},silent:!0});R.setStyle({fill:s[O][1]}),R.setStyle(v.getLineStyle(["color","borderWidth","borderColor"])),d.add(R),_=E}var M=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 F=S;S=E,E=F}this._renderTicks(e,l,r,M,c,S,E,b),this._renderPointer(e,l,r,M,c,S,E,b),this._renderTitle(e,l,r,M,c),this._renderDetail(e,l,r,M,c)},_renderTicks:function(e,l,r,s,c,d,g,v){for(var b=this.group,S=c.cx,E=c.cy,C=c.r,_=+e.get("min"),T=+e.get("max"),w=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),R=e.get("splitNumber"),M=O.get("splitNumber"),F=m(w.get("length"),C),P=m(O.get("length"),C),X=d,B=(g-d)/R,j=B/M,W=w.getModel("lineStyle").getLineStyle(),z=O.getModel("lineStyle").getLineStyle(),V=0;V<=R;V++){var Q=Math.cos(X),G=Math.sin(X);if(w.get("show")){var re=new p.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-F)+S,y2:G*(C-F)+E},style:W,silent:!0});W.stroke==="auto"&&re.setStyle({stroke:s(V/R)}),b.add(re)}if(I.get("show")){var ee=a(f(V/R*(T-_)+_),I.get("formatter")),ue=I.get("distance"),$=s(V/R);b.add(new p.Text({style:p.setTextStyle({},I,{text:ee,x:Q*(C-F-ue)+S,y:G*(C-F-ue)+E,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:$}),silent:!0}))}if(O.get("show")&&V!==R){for(var be=0;be<=M;be++){var Q=Math.cos(X),G=Math.sin(X),_e=new p.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-P)+S,y2:G*(C-P)+E},silent:!0,style:z});z.stroke==="auto"&&_e.setStyle({stroke:s((V+be/M)/R)}),b.add(_e),X+=j}X-=j}else X+=B}},_renderPointer:function(e,l,r,s,c,d,g,v){var b=this.group,S=this._data;if(!e.get("pointer.show")){S&&S.eachItemGraphicEl(function(w){b.remove(w)});return}var E=[+e.get("min"),+e.get("max")],C=[d,g],_=e.getData(),T=_.mapDimension("value");_.diff(S).add(function(w){var O=new y({shape:{angle:d}});p.initProps(O,{shape:{angle:h(_.get(T,w),E,C,!0)}},e),b.add(O),_.setItemGraphicEl(w,O)}).update(function(w,O){var I=S.getItemGraphicEl(O);p.updateProps(I,{shape:{angle:h(_.get(T,w),E,C,!0)}},e),b.add(I),_.setItemGraphicEl(w,I)}).remove(function(w){var O=S.getItemGraphicEl(w);b.remove(O)}).execute(),_.eachItemGraphicEl(function(w,O){var I=_.getItemModel(O),R=I.getModel("pointer");w.setShape({x:c.cx,y:c.cy,width:m(R.get("width"),c.r),r:m(R.get("length"),c.r)}),w.useStyle(I.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",s(h(_.get(T,O),E,[0,1],!0))),p.setHoverStyle(w,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,l,r,s,c){var d=e.getData(),g=d.mapDimension("value"),v=e.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=+e.get("min"),_=+e.get("max"),T=e.getData().get(g,0),w=s(h(T,[C,_],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},v,{x:S,y:E,text:d.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(e,l,r,s,c){var d=e.getModel("detail"),g=+e.get("min"),v=+e.get("max");if(d.get("show")){var b=d.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=m(d.get("width"),c.r),_=m(d.get("height"),c.r),T=e.getData(),w=T.get(T.mapDimension("value"),0),O=s(h(w,[g,v],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},d,{x:S,y:E,text:a(w,d.get("formatter")),textWidth:isNaN(C)?null:C,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}}),o=t;k.exports=o},"p77/":function(k,D,n){},pA7S:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=x.BlockCipher,f=p.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],i=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=f.DES=m.extend({_doReset:function(){for(var c=this._key,d=c.words,g=[],v=0;v<56;v++){var b=h[v]-1;g[v]=d[b>>>5]>>>31-b%32&1}for(var S=this._subKeys=[],E=0;E<16;E++){for(var C=S[E]=[],_=a[E],v=0;v<24;v++)C[v/6|0]|=g[(u[v]-1+_)%28]<<31-v%6,C[4+(v/6|0)]|=g[28+(u[v+24]-1+_)%28]<<31-v%6;C[0]=C[0]<<1|C[0]>>>31;for(var v=1;v<7;v++)C[v]=C[v]>>>(v-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var T=this._invSubKeys=[],v=0;v<16;v++)T[v]=S[15-v]},encryptBlock:function(c,d){this._doCryptBlock(c,d,this._subKeys)},decryptBlock:function(c,d){this._doCryptBlock(c,d,this._invSubKeys)},_doCryptBlock:function(c,d,g){this._lBlock=c[d],this._rBlock=c[d+1],e.call(this,4,252645135),e.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),e.call(this,1,1431655765);for(var v=0;v<16;v++){for(var b=g[v],S=this._lBlock,E=this._rBlock,C=0,_=0;_<8;_++)C|=i[_][((E^b[_])&t[_])>>>0];this._lBlock=E,this._rBlock=S^C}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,e.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),c[d]=this._lBlock,c[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(s,c){var d=(this._lBlock>>>s^this._rBlock)&c;this._rBlock^=d,this._lBlock^=d<<s}function l(s,c){var d=(this._rBlock>>>s^this._lBlock)&c;this._lBlock^=d,this._rBlock^=d<<s}p.DES=m._createHelper(o);var r=f.TripleDES=m.extend({_doReset:function(){var c=this._key,d=c.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=d.slice(0,2),v=d.length<4?d.slice(0,2):d.slice(2,4),b=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=o.createEncryptor(A.create(g)),this._des2=o.createEncryptor(A.create(v)),this._des3=o.createEncryptor(A.create(b))},encryptBlock:function(c,d){this._des1.encryptBlock(c,d),this._des2.decryptBlock(c,d),this._des3.encryptBlock(c,d)},decryptBlock:function(c,d){this._des3.decryptBlock(c,d),this._des2.encryptBlock(c,d),this._des1.decryptBlock(c,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});p.TripleDES=m._createHelper(r)}(),y.TripleDES})},pC0b:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("xzDV"),A=n.n(x),m=n("5Dmo")},"pED+":function(k,D,n){},pG52:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("WXVj"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},pLH3:function(k,D,n){var y=n("ProS");n("ALo7"),n("TWL2");var p=n("mOdp"),x=n("JLnu"),A=n("0/Rx");y.registerVisual(p("funnel")),y.registerLayout(x),y.registerProcessor(A("funnel"))},pP6R:function(k,D,n){var y=n("ProS"),p="\0_ec_interaction_mutex";function x(h,u,a){var i=f(h);i[u]=a}function A(h,u,a){var i=f(h),t=i[u];t===a&&(i[u]=null)}function m(h,u){return!!f(h)[u]}function f(h){return h[p]||(h[p]={})}y.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),D.take=x,D.release=A,D.isTaken=m},pSRY:function(k,D,n){var y=n("QkVE");function p(x){return y(this,x).has(x)}k.exports=p},pWdF:function(k,D,n){"use strict";n.d(D,"a",function(){return iu});var y=n("oBTY"),p=n("rAM+"),x=n("tJVT"),A=n("tS8v"),m=n("oZsa"),f=n("iZzK");function h(ve){return Function.toString.call(ve).indexOf("[native code]")!==-1}var u=n("cHpt");function a(ve,te,L){return Object(u.a)()?a=Reflect.construct:a=function(H,Z,ne){var Ae=[null];Ae.push.apply(Ae,Z);var Te=Function.bind.apply(H,Ae),ze=new Te;return ne&&Object(f.a)(ze,ne.prototype),ze},a.apply(null,arguments)}function i(ve){var te=typeof Map=="function"?new Map:void 0;return i=function(K){if(K===null||!h(K))return K;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(typeof te!="undefined"){if(te.has(K))return te.get(K);te.set(K,H)}function H(){return a(K,arguments,Object(m.a)(this).constructor)}return H.prototype=Object.create(K.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Object(f.a)(H,K)},i(ve)}var t=n("w4Tj"),o=n("yKVA"),e=n("879j"),l=n("jrin"),r=n("fWQN"),s=n("mtLc");function c(ve){return ve&&ve.__esModule&&Object.prototype.hasOwnProperty.call(ve,"default")?ve.default:ve}var d={exports:{}};(function(ve,te){(function(L){var K=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,ne=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,Ae={buildAbsoluteURL:function(ze,st,ct){if(ct=ct||{},ze=ze.trim(),st=st.trim(),!st){if(!ct.alwaysNormalize)return ze;var zt=Ae.parseURL(ze);if(!zt)throw new Error("Error trying to parse base URL.");return zt.path=Ae.normalizePath(zt.path),Ae.buildURLFromParts(zt)}var Tr=Ae.parseURL(st);if(!Tr)throw new Error("Error trying to parse relative URL.");if(Tr.scheme)return ct.alwaysNormalize?(Tr.path=Ae.normalizePath(Tr.path),Ae.buildURLFromParts(Tr)):st;var br=Ae.parseURL(ze);if(!br)throw new Error("Error trying to parse base URL.");if(!br.netLoc&&br.path&&br.path[0]!=="/"){var Kr=H.exec(br.path);br.netLoc=Kr[1],br.path=Kr[2]}br.netLoc&&!br.path&&(br.path="/");var zr={scheme:br.scheme,netLoc:Tr.netLoc,path:null,params:Tr.params,query:Tr.query,fragment:Tr.fragment};if(!Tr.netLoc&&(zr.netLoc=br.netLoc,Tr.path[0]!=="/"))if(!Tr.path)zr.path=br.path,Tr.params||(zr.params=br.params,Tr.query||(zr.query=br.query));else{var Nn=br.path,Mn=Nn.substring(0,Nn.lastIndexOf("/")+1)+Tr.path;zr.path=Ae.normalizePath(Mn)}return zr.path===null&&(zr.path=ct.alwaysNormalize?Ae.normalizePath(Tr.path):Tr.path),Ae.buildURLFromParts(zr)},parseURL:function(ze){var st=K.exec(ze);return st?{scheme:st[1]||"",netLoc:st[2]||"",path:st[3]||"",params:st[4]||"",query:st[5]||"",fragment:st[6]||""}:null},normalizePath:function(ze){for(ze=ze.split("").reverse().join("").replace(Z,"");ze.length!==(ze=ze.replace(ne,"")).length;);return ze.split("").reverse().join("")},buildURLFromParts:function(ze){return ze.scheme+ze.netLoc+ze.path+ze.params+ze.query+ze.fragment}};ve.exports=Ae})()})(d);var g=d.exports;function v(ve,te){var L=Object.keys(ve);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ve);te&&(K=K.filter(function(H){return Object.getOwnPropertyDescriptor(ve,H).enumerable})),L.push.apply(L,K)}return L}function b(ve){for(var te=1;te<arguments.length;te++){var L=arguments[te]!=null?arguments[te]:{};te%2?v(Object(L),!0).forEach(function(K){S(ve,K,L[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ve,Object.getOwnPropertyDescriptors(L)):v(Object(L)).forEach(function(K){Object.defineProperty(ve,K,Object.getOwnPropertyDescriptor(L,K))})}return ve}function S(ve,te,L){return te=_(te),te in ve?Object.defineProperty(ve,te,{value:L,enumerable:!0,configurable:!0,writable:!0}):ve[te]=L,ve}function E(){return E=Object.assign?Object.assign.bind():function(ve){for(var te=1;te<arguments.length;te++){var L=arguments[te];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(ve[K]=L[K])}return ve},E.apply(this,arguments)}function C(ve,te){if(typeof ve!="object"||ve===null)return ve;var L=ve[Symbol.toPrimitive];if(L!==void 0){var K=L.call(ve,te||"default");if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(te==="string"?String:Number)(ve)}function _(ve){var te=C(ve,"string");return typeof te=="symbol"?te:String(te)}var T=Number.isFinite||function(ve){return typeof ve=="number"&&isFinite(ve)},w=function(ve){return ve.MEDIA_ATTACHING="hlsMediaAttaching",ve.MEDIA_ATTACHED="hlsMediaAttached",ve.MEDIA_DETACHING="hlsMediaDetaching",ve.MEDIA_DETACHED="hlsMediaDetached",ve.BUFFER_RESET="hlsBufferReset",ve.BUFFER_CODECS="hlsBufferCodecs",ve.BUFFER_CREATED="hlsBufferCreated",ve.BUFFER_APPENDING="hlsBufferAppending",ve.BUFFER_APPENDED="hlsBufferAppended",ve.BUFFER_EOS="hlsBufferEos",ve.BUFFER_FLUSHING="hlsBufferFlushing",ve.BUFFER_FLUSHED="hlsBufferFlushed",ve.MANIFEST_LOADING="hlsManifestLoading",ve.MANIFEST_LOADED="hlsManifestLoaded",ve.MANIFEST_PARSED="hlsManifestParsed",ve.LEVEL_SWITCHING="hlsLevelSwitching",ve.LEVEL_SWITCHED="hlsLevelSwitched",ve.LEVEL_LOADING="hlsLevelLoading",ve.LEVEL_LOADED="hlsLevelLoaded",ve.LEVEL_UPDATED="hlsLevelUpdated",ve.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",ve.LEVELS_UPDATED="hlsLevelsUpdated",ve.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",ve.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",ve.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",ve.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",ve.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",ve.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",ve.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",ve.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",ve.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",ve.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",ve.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",ve.CUES_PARSED="hlsCuesParsed",ve.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",ve.INIT_PTS_FOUND="hlsInitPtsFound",ve.FRAG_LOADING="hlsFragLoading",ve.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",ve.FRAG_LOADED="hlsFragLoaded",ve.FRAG_DECRYPTED="hlsFragDecrypted",ve.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",ve.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",ve.FRAG_PARSING_METADATA="hlsFragParsingMetadata",ve.FRAG_PARSED="hlsFragParsed",ve.FRAG_BUFFERED="hlsFragBuffered",ve.FRAG_CHANGED="hlsFragChanged",ve.FPS_DROP="hlsFpsDrop",ve.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",ve.ERROR="hlsError",ve.DESTROYING="hlsDestroying",ve.KEY_LOADING="hlsKeyLoading",ve.KEY_LOADED="hlsKeyLoaded",ve.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",ve.BACK_BUFFER_REACHED="hlsBackBufferReached",ve}({}),O=function(ve){return ve.NETWORK_ERROR="networkError",ve.MEDIA_ERROR="mediaError",ve.KEY_SYSTEM_ERROR="keySystemError",ve.MUX_ERROR="muxError",ve.OTHER_ERROR="otherError",ve}({}),I=function(ve){return ve.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",ve.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",ve.KEY_SYSTEM_NO_SESSION="keySystemNoSession",ve.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",ve.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",ve.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",ve.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",ve.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",ve.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",ve.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",ve.MANIFEST_LOAD_ERROR="manifestLoadError",ve.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",ve.MANIFEST_PARSING_ERROR="manifestParsingError",ve.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",ve.LEVEL_EMPTY_ERROR="levelEmptyError",ve.LEVEL_LOAD_ERROR="levelLoadError",ve.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",ve.LEVEL_PARSING_ERROR="levelParsingError",ve.LEVEL_SWITCH_ERROR="levelSwitchError",ve.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",ve.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",ve.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",ve.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",ve.FRAG_LOAD_ERROR="fragLoadError",ve.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",ve.FRAG_DECRYPT_ERROR="fragDecryptError",ve.FRAG_PARSING_ERROR="fragParsingError",ve.FRAG_GAP="fragGap",ve.REMUX_ALLOC_ERROR="remuxAllocError",ve.KEY_LOAD_ERROR="keyLoadError",ve.KEY_LOAD_TIMEOUT="keyLoadTimeOut",ve.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",ve.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",ve.BUFFER_APPEND_ERROR="bufferAppendError",ve.BUFFER_APPENDING_ERROR="bufferAppendingError",ve.BUFFER_STALLED_ERROR="bufferStalledError",ve.BUFFER_FULL_ERROR="bufferFullError",ve.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",ve.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",ve.INTERNAL_EXCEPTION="internalException",ve.INTERNAL_ABORTED="aborted",ve.UNKNOWN="unknown",ve}({}),R=function(){},M={trace:R,debug:R,log:R,warn:R,info:R,error:R},F=M;function P(ve){var te=self.console[ve];return te?te.bind(self.console,"[".concat(ve,"] >")):R}function X(ve){for(var te=arguments.length,L=new Array(te>1?te-1:0),K=1;K<te;K++)L[K-1]=arguments[K];L.forEach(function(H){F[H]=ve[H]?ve[H].bind(ve):P(H)})}function B(ve,te){if(self.console&&ve===!0||typeof ve=="object"){X(ve,"debug","log","info","warn","error");try{F.log('Debug logs enabled for "'.concat(te,'" in hls.js version ',"1.4.3"))}catch(L){F=M}}else F=M}var j=F,W=/^(\d+)x(\d+)$/,z=/(.+?)=(".*?"|.*?)(?:,|$)/g,V=function(){function ve(te){Object(r.a)(this,ve),typeof te=="string"&&(te=ve.parseAttrList(te));for(var L in te)te.hasOwnProperty(L)&&(L.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(L)),this[L]=te[L])}return Object(s.a)(ve,[{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 H=new Uint8Array(K.length/2),Z=0;Z<K.length/2;Z++)H[Z]=parseInt(K.slice(Z*2,Z*2+2),16);return H}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 H=this[L];return H?parseFloat(H):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=W.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,H={},Z='"';for(z.lastIndex=0;(K=z.exec(L))!==null;){var ne=K[2];ne.indexOf(Z)===0&&ne.lastIndexOf(Z)===ne.length-1&&(ne=ne.slice(1,-1));var Ae=K[1].trim();H[Ae]=ne}return H}}]),ve}();function Q(ve){return ve!=="ID"&&ve!=="CLASS"&&ve!=="START-DATE"&&ve!=="DURATION"&&ve!=="END-DATE"&&ve!=="END-ON-NEXT"}function G(ve){return ve==="SCTE35-OUT"||ve==="SCTE35-IN"}var re=function(){function ve(te,L){if(Object(r.a)(this,ve),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var K=L.attr;for(var H in K)if(Object.prototype.hasOwnProperty.call(te,H)&&te[H]!==K[H]){j.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(te.ID,'"')),this._badValueForSameId=H;break}te=E(new V({}),K,te)}if(this.attr=te,this._startDate=new Date(te["START-DATE"]),"END-DATE"in this.attr){var Z=new Date(this.attr["END-DATE"]);T(Z.getTime())&&(this._endDate=Z)}}return Object(s.a)(ve,[{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(T(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&&T(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),ve}(),ee=Object(s.a)(function ve(){Object(r.a)(this,ve),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}}),ue={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"},$=function(){function ve(te){var L;Object(r.a)(this,ve),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(L={},Object(l.a)(L,ue.AUDIO,null),Object(l.a)(L,ue.VIDEO,null),Object(l.a)(L,ue.AUDIOVIDEO,null),L),this.baseurl=te}return Object(s.a)(ve,[{key:"setByteRange",value:function(L,K){var H=L.split("@",2),Z=[];H.length===1?Z[0]=K?K.byteRangeEndOffset:0:Z[0]=parseInt(H[1]),Z[1]=parseInt(H[0])+Z[0],this._byteRange=Z}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=g.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(L){this._url=L}}]),ve}(),be=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=te.call(this,H),Z._decryptdata=null,Z.rawProgramDateTime=null,Z.programDateTime=null,Z.tagList=[],Z.duration=0,Z.sn=0,Z.levelkeys=void 0,Z.type=void 0,Z.loader=null,Z.keyLoader=null,Z.level=-1,Z.cc=0,Z.startPTS=void 0,Z.endPTS=void 0,Z.startDTS=void 0,Z.endDTS=void 0,Z.start=0,Z.deltaPTS=void 0,Z.maxStartPTS=void 0,Z.minEndPTS=void 0,Z.stats=new ee,Z.urlId=0,Z.data=void 0,Z.bitrateTest=!1,Z.title=null,Z.initSegment=null,Z.endList=void 0,Z.gap=void 0,Z.type=K,Z}return Object(s.a)(L,[{key:"decryptdata",get:function(){var H=this.levelkeys;if(!H&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var Z=this.levelkeys.identity;if(Z)this._decryptdata=Z.getDecryptData(this.sn);else{var ne=Object.keys(this.levelkeys);if(ne.length===1)return this._decryptdata=this.levelkeys[ne[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!T(this.programDateTime))return null;var H=T(this.duration)?this.duration:0;return this.programDateTime+H*1e3}},{key:"encrypted",get:function(){var H;if((H=this._decryptdata)!=null&&H.encrypted)return!0;if(this.levelkeys){var Z=Object.keys(this.levelkeys),ne=Z.length;if(ne>1||ne===1&&this.levelkeys[Z[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(H){if(this.levelkeys){var Z=this.levelkeys[H];Z&&!this._decryptdata&&(this._decryptdata=Z.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var H,Z;(H=this.loader)==null||H.abort(),(Z=this.keyLoader)==null||Z.abort()}},{key:"setElementaryStreamInfo",value:function(H,Z,ne,Ae,Te){var ze=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,st=this.elementaryStreams,ct=st[H];if(!ct){st[H]={startPTS:Z,endPTS:ne,startDTS:Ae,endDTS:Te,partial:ze};return}ct.startPTS=Math.min(ct.startPTS,Z),ct.endPTS=Math.max(ct.endPTS,ne),ct.startDTS=Math.min(ct.startDTS,Ae),ct.endDTS=Math.max(ct.endDTS,Te)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[ue.AUDIO]=null,H[ue.VIDEO]=null,H[ue.AUDIOVIDEO]=null}}]),L}($),_e=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H,Z,ne,Ae){var Te;Object(r.a)(this,L),Te=te.call(this,Z),Te.fragOffset=0,Te.duration=0,Te.gap=!1,Te.independent=!1,Te.relurl=void 0,Te.fragment=void 0,Te.index=void 0,Te.stats=new ee,Te.duration=K.decimalFloatingPoint("DURATION"),Te.gap=K.bool("GAP"),Te.independent=K.bool("INDEPENDENT"),Te.relurl=K.enumeratedString("URI"),Te.fragment=H,Te.index=ne;var ze=K.enumeratedString("BYTERANGE");return ze&&Te.setByteRange(ze,Ae),Ae&&(Te.fragOffset=Ae.fragOffset+Ae.duration),Te}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 H=this.elementaryStreams;return!!(H.audio||H.video||H.audiovideo)}}]),L}($),Ee=10,Xe=function(){function ve(te){Object(r.a)(this,ve),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=te}return Object(s.a)(ve,[{key:"reloaded",value:function(L){if(!L){this.advanced=!0,this.updated=!0;return}var K=this.lastPartSn-L.lastPartSn,H=this.lastPartIndex-L.lastPartIndex;this.updated=this.endSN!==L.endSN||!!H||!!K,this.advanced=this.endSN>L.endSN||K>0||K===0&&H>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?T(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Ee}},{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}}]),ve}();function He(ve){return Uint8Array.from(atob(ve),function(te){return te.charCodeAt(0)})}function nt(ve){var te=ot(ve).subarray(0,16),L=new Uint8Array(16);return L.set(te,16-te.length),L}function Ie(ve){var te=function(K,H,Z){var ne=K[H];K[H]=K[Z],K[Z]=ne};te(ve,0,3),te(ve,1,2),te(ve,4,5),te(ve,6,7)}function oe(ve){var te=ve.split(":"),L=null;if(te[0]==="data"&&te.length===2){var K=te[1].split(";"),H=K[K.length-1].split(",");if(H.length===2){var Z=H[0]==="base64",ne=H[1];Z?(K.splice(-1,1),L=He(ne)):L=nt(ne)}}return L}function ot(ve){return Uint8Array.from(unescape(encodeURIComponent(ve)),function(te){return te.charCodeAt(0)})}var he={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Y(ve){switch(ve){case J.FAIRPLAY:return he.FAIRPLAY;case J.PLAYREADY:return he.PLAYREADY;case J.WIDEVINE:return he.WIDEVINE;case J.CLEARKEY:return he.CLEARKEY}}var q={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function fe(ve){if(ve===q.WIDEVINE)return he.WIDEVINE}function we(ve){switch(ve){case he.FAIRPLAY:return J.FAIRPLAY;case he.PLAYREADY:return J.PLAYREADY;case he.WIDEVINE:return J.WIDEVINE;case he.CLEARKEY:return J.CLEARKEY}}function Ne(ve){var te=ve.drmSystems,L=ve.widevineLicenseUrl,K=te?[he.FAIRPLAY,he.WIDEVINE,he.PLAYREADY,he.CLEARKEY].filter(function(H){return!!te[H]}):[];return!K[he.WIDEVINE]&&L&&K.push(he.WIDEVINE),K}var je=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function me(ve,te,L,K){var H;switch(ve){case he.FAIRPLAY:H=["cenc","sinf"];break;case he.WIDEVINE:case he.PLAYREADY:H=["cenc"];break;case he.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(ve))}return Ce(H,te,L,K)}function Ce(ve,te,L,K){var H={initDataTypes:ve,persistentState:K.persistentState||"not-allowed",distinctiveIdentifier:K.distinctiveIdentifier||"not-allowed",sessionTypes:K.sessionTypes||[K.sessionType||"temporary"],audioCapabilities:te.map(function(Z){return{contentType:'audio/mp4; codecs="'.concat(Z,'"'),robustness:K.audioRobustness||"",encryptionScheme:K.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(Z){return{contentType:'video/mp4; codecs="'.concat(Z,'"'),robustness:K.videoRobustness||"",encryptionScheme:K.videoEncryptionScheme||null}})};return[H]}function Fe(ve,te,L){return Uint8Array.prototype.slice?ve.slice(te,L):new Uint8Array(Array.prototype.slice.call(ve,te,L))}var it=function(te,L){return L+10<=te.length&&(te[L]===73&&te[L+1]===68&&te[L+2]===51&&(te[L+3]<255&&te[L+4]<255&&(te[L+6]<128&&te[L+7]<128&&te[L+8]<128&&te[L+9]<128)))},Ct=function(te,L){return L+10<=te.length&&(te[L]===51&&te[L+1]===68&&te[L+2]===73&&(te[L+3]<255&&te[L+4]<255&&(te[L+6]<128&&te[L+7]<128&&te[L+8]<128&&te[L+9]<128)))},mt=function(te,L){for(var K=L,H=0;it(te,L);){H+=10;var Z=Ve(te,L+6);H+=Z,Ct(te,L+10)&&(H+=10),L+=H}return H>0?te.subarray(K,K+H):void 0},Ve=function(te,L){var K=0;return K=(te[L]&127)<<21,K|=(te[L+1]&127)<<14,K|=(te[L+2]&127)<<7,K|=te[L+3]&127,K},or=function(te,L){return it(te,L)&&Ve(te,L+6)+10<=te.length-L},dt=function(te){for(var L=Gt(te),K=0;K<L.length;K++){var H=L[K];if(Yt(H))return se(H)}return},Yt=function(te){return te&&te.key==="PRIV"&&te.info==="com.apple.streaming.transportStreamTimestamp"},hr=function(te){var L=String.fromCharCode(te[0],te[1],te[2],te[3]),K=Ve(te,4),H=10;return{type:L,size:K,data:te.subarray(H,H+K)}},Gt=function(te){for(var L=0,K=[];it(te,L);){var H=Ve(te,L+6);L+=10;for(var Z=L+H;L+8<Z;){var ne=hr(te.subarray(L)),Ae=Pt(ne);Ae&&K.push(Ae),L+=ne.size+10}Ct(te,L)&&(L+=10)}return K},Pt=function(te){return te.type==="PRIV"?Xt(te):te.type[0]==="W"?pe(te):Ge(te)},Xt=function(te){if(te.size<2)return;var L=lt(te.data,!0),K=new Uint8Array(te.data.subarray(L.length+1));return{key:te.type,info:L,data:K.buffer}},Ge=function(te){if(te.size<2)return;if(te.type==="TXXX"){var L=1,K=lt(te.data.subarray(L),!0);L+=K.length+1;var H=lt(te.data.subarray(L));return{key:te.type,info:K,data:H}}var Z=lt(te.data.subarray(1));return{key:te.type,data:Z}},pe=function(te){if(te.type==="WXXX"){if(te.size<2)return;var L=1,K=lt(te.data.subarray(L),!0);L+=K.length+1;var H=lt(te.data.subarray(L));return{key:te.type,info:K,data:H}}var Z=lt(te.data);return{key:te.type,data:Z}},se=function(te){if(te.data.byteLength===8){var L=new Uint8Array(te.data),K=L[3]&1,H=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return H/=45,K&&(H+=4772185884e-2),Math.round(H)}return},lt=function(te){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=de();if(K){var H=K.decode(te);if(L){var Z=H.indexOf("\0");return Z!==-1?H.substring(0,Z):H}return H.replace(/\0/g,"")}for(var ne=te.length,Ae,Te,ze,st="",ct=0;ct<ne;){if(Ae=te[ct++],Ae===0&&L)return st;if(Ae===0||Ae===3)continue;switch(Ae>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:st+=String.fromCharCode(Ae);break;case 12:case 13:Te=te[ct++],st+=String.fromCharCode((Ae&31)<<6|Te&63);break;case 14:Te=te[ct++],ze=te[ct++],st+=String.fromCharCode((Ae&15)<<12|(Te&63)<<6|(ze&63)<<0);break}}return st},Ze;function de(){return!Ze&&typeof self.TextDecoder!="undefined"&&(Ze=new self.TextDecoder("utf-8")),Ze}var _t={hexDump:function(te){for(var L="",K=0;K<te.length;K++){var H=te[K].toString(16);H.length<2&&(H="0"+H),L+=H}return L}},er=Math.pow(2,32)-1,yt=[].push,Ar={video:1,audio:2,id3:3,text:4};function Sr(ve){return String.fromCharCode.apply(null,ve)}function Cn(ve,te){var L=ve[te]<<8|ve[te+1];return L<0?65536+L:L}function mr(ve,te){var L=Pr(ve,te);return L<0?4294967296+L:L}function Pr(ve,te){return ve[te]<<24|ve[te+1]<<16|ve[te+2]<<8|ve[te+3]}function gr(ve,te,L){ve[te]=L>>24,ve[te+1]=L>>16&255,ve[te+2]=L>>8&255,ve[te+3]=L&255}function Jt(ve,te){var L=[];if(!te.length)return L;for(var K=ve.byteLength,H=0;H<K;){var Z=mr(ve,H),ne=Sr(ve.subarray(H+4,H+8)),Ae=Z>1?H+Z:K;if(ne===te[0])if(te.length===1)L.push(ve.subarray(H+8,Ae));else{var Te=Jt(ve.subarray(H+8,Ae),te.slice(1));Te.length&&yt.apply(L,Te)}H=Ae}return L}function Dt(ve){var te=[],L=ve[0],K=8,H=mr(ve,K);K+=4;var Z=0,ne=0;L===0?K+=8:K+=16,K+=2;var Ae=ve.length+ne,Te=Cn(ve,K);K+=2;for(var ze=0;ze<Te;ze++){var st=K,ct=mr(ve,st);st+=4;var zt=ct&2147483647,Tr=(ct&2147483648)>>>31;if(Tr===1)return j.warn("SIDX has hierarchical references (not supported)"),null;var br=mr(ve,st);st+=4,te.push({referenceSize:zt,subsegmentDuration:br,info:{duration:br/H,start:Ae,end:Ae+zt-1}}),Ae+=zt,st+=4,K=st}return{earliestPresentationTime:Z,timescale:H,version:L,referencesCount:Te,references:te}}function dn(ve){for(var te=[],L=Jt(ve,["moov","trak"]),K=0;K<L.length;K++){var H=L[K],Z=Jt(H,["tkhd"])[0];if(Z){var ne=Z[0],Ae=ne===0?12:20,Te=mr(Z,Ae),ze=Jt(H,["mdia","mdhd"])[0];if(ze){ne=ze[0],Ae=ne===0?12:20;var st=mr(ze,Ae),ct=Jt(H,["mdia","hdlr"])[0];if(ct){var zt=Sr(ct.subarray(8,12)),Tr={soun:ue.AUDIO,vide:ue.VIDEO}[zt];if(Tr){var br=Jt(H,["mdia","minf","stbl","stsd"])[0],Kr=void 0;br&&(Kr=Sr(br.subarray(12,16))),te[Te]={timescale:st,type:Tr},te[Tr]={timescale:st,id:Te,codec:Kr}}}}}}var zr=Jt(ve,["moov","mvex","trex"]);return zr.forEach(function(Nn){var Mn=mr(Nn,4),Yn=te[Mn];Yn&&(Yn.default={duration:mr(Nn,12),flags:mr(Nn,20)})}),te}function Fn(ve,te){if(!ve||!te)return ve;var L=te.keyId;if(L&&te.isCommonEncryption){var K=Jt(ve,["moov","trak"]);K.forEach(function(H){var Z=Jt(H,["mdia","minf","stbl","stsd"])[0],ne=Z.subarray(8),Ae=Jt(ne,["enca"]),Te=Ae.length>0;Te||(Ae=Jt(ne,["encv"])),Ae.forEach(function(ze){var st=Te?ze.subarray(28):ze.subarray(78),ct=Jt(st,["sinf"]);ct.forEach(function(zt){var Tr=Zn(zt);if(Tr){var br=Tr.subarray(8,24);br.some(function(Kr){return Kr!==0})||(j.log("[eme] Patching keyId in 'enc".concat(Te?"a":"v",">sinf>>tenc' box: ").concat(_t.hexDump(br)," -> ").concat(_t.hexDump(L))),Tr.set(L,8))}})})})}return ve}function Zn(ve){var te=Jt(ve,["schm"])[0];if(te){var L=Sr(te.subarray(4,8));if(L==="cbcs"||L==="cenc")return Jt(ve,["schi","tenc"])[0]}return j.error("[eme] missing 'schm' box"),null}function ci(ve,te){return Jt(te,["moof","traf"]).reduce(function(L,K){var H=Jt(K,["tfdt"])[0],Z=H[0],ne=Jt(K,["tfhd"]).reduce(function(Ae,Te){var ze=mr(Te,4),st=ve[ze];if(st){var ct=mr(H,4);if(Z===1){if(ct===er)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),Ae;ct*=er+1,ct+=mr(H,8)}var zt=st.timescale||9e4,Tr=ct/zt;if(isFinite(Tr)&&(Ae===null||Tr<Ae))return Tr}return Ae},null);return ne!==null&&isFinite(ne)&&(L===null||ne<L)?ne:L},null)}function Xi(ve,te){for(var L=0,K=0,H=0,Z=Jt(ve,["moof","traf"]),ne=0;ne<Z.length;ne++){var Ae=Z[ne],Te=Jt(Ae,["tfhd"])[0],ze=mr(Te,4),st=te[ze];if(!st)continue;var ct=st.default,zt=mr(Te,0)|(ct==null?void 0:ct.flags),Tr=ct==null?void 0:ct.duration;zt&8&&(zt&2?Tr=mr(Te,12):Tr=mr(Te,8));for(var br=st.timescale||9e4,Kr=Jt(Ae,["trun"]),zr=0;zr<Kr.length;zr++){if(L=Gn(Kr[zr]),!L&&Tr){var Nn=mr(Kr[zr],4);L=Tr*Nn}st.type===ue.VIDEO?K+=L/br:st.type===ue.AUDIO&&(H+=L/br)}}if(K===0&&H===0){for(var Mn=0,Yn=Jt(ve,["sidx"]),bi=0;bi<Yn.length;bi++){var ua=Dt(Yn[bi]);ua!=null&&ua.references&&(Mn+=ua.references.reduce(function(Yi,ta){return Yi+ta.info.duration||0},0))}return Mn}return K||H}function Gn(ve){var te=mr(ve,0),L=8;te&1&&(L+=4),te&4&&(L+=4);for(var K=0,H=mr(ve,4),Z=0;Z<H;Z++){if(te&256){var ne=mr(ve,L);K+=ne,L+=4}te&512&&(L+=4),te&1024&&(L+=4),te&2048&&(L+=4)}return K}function ei(ve,te,L){Jt(te,["moof","traf"]).forEach(function(K){Jt(K,["tfhd"]).forEach(function(H){var Z=mr(H,4),ne=ve[Z];if(!ne)return;var Ae=ne.timescale||9e4;Jt(K,["tfdt"]).forEach(function(Te){var ze=Te[0],st=mr(Te,4);if(ze===0)st-=L*Ae,st=Math.max(st,0),gr(Te,4,st);else{st*=Math.pow(2,32),st+=mr(Te,8),st-=L*Ae,st=Math.max(st,0);var ct=Math.floor(st/(er+1)),zt=Math.floor(st%(er+1));gr(Te,4,ct),gr(Te,8,zt)}})})})}function Zt(ve){var te={valid:null,remainder:null},L=Jt(ve,["moof"]);if(L){if(L.length<2)return te.remainder=ve,te}else return te;var K=L[L.length-1];return te.valid=Fe(ve,0,K.byteOffset-8),te.remainder=Fe(ve,K.byteOffset-8),te}function Nt(ve,te){var L=new Uint8Array(ve.length+te.length);return L.set(ve),L.set(te,ve.length),L}function Me(ve,te){var L=[],K=te.samples,H=te.timescale,Z=te.id,ne=!1,Ae=Jt(K,["moof"]);return Ae.map(function(Te){var ze=Te.byteOffset-8,st=Jt(Te,["traf"]);st.map(function(ct){var zt=Jt(ct,["tfdt"]).map(function(Tr){var br=Tr[0],Kr=mr(Tr,4);return br===1&&(Kr*=Math.pow(2,32),Kr+=mr(Tr,8)),Kr/H})[0];return zt!==void 0&&(ve=zt),Jt(ct,["tfhd"]).map(function(Tr){var br=mr(Tr,4),Kr=mr(Tr,0)&16777215,zr=(Kr&1)!==0,Nn=(Kr&2)!==0,Mn=(Kr&8)!==0,Yn=0,bi=(Kr&16)!==0,ua=0,Yi=(Kr&32)!==0,ta=8;br===Z&&(zr&&(ta+=8),Nn&&(ta+=4),Mn&&(Yn=mr(Tr,ta),ta+=4),bi&&(ua=mr(Tr,ta),ta+=4),Yi&&(ta+=4),te.type==="video"&&(ne=ke(te.codec)),Jt(ct,["trun"]).map(function(Pa){var Ya=Pa[0],Ba=mr(Pa,0)&16777215,Sa=(Ba&1)!==0,Go=0,Ls=(Ba&4)!==0,ys=(Ba&256)!==0,bs=0,Fs=(Ba&512)!==0,ws=0,Ws=(Ba&1024)!==0,xe=(Ba&2048)!==0,Je=0,bt=mr(Pa,4),lr=8;Sa&&(Go=mr(Pa,lr),lr+=4),Ls&&(lr+=4);for(var Fr=Go+ze,an=0;an<bt;an++){if(ys?(bs=mr(Pa,lr),lr+=4):bs=Yn,Fs?(ws=mr(Pa,lr),lr+=4):ws=ua,Ws&&(lr+=4),xe&&(Ya===0?Je=mr(Pa,lr):Je=Pr(Pa,lr),lr+=4),te.type===ue.VIDEO)for(var Be=0;Be<ws;){var ae=mr(K,Fr);if(Fr+=4,Pe(ne,K[Fr])){var Oe=K.subarray(Fr,Fr+ae);tt(Oe,ne?2:1,ve+Je/H,L)}Fr+=ae,Be+=ae+4}ve+=bs/H}}))})})}),L}function ke(ve){if(!ve)return!1;var te=ve.indexOf("."),L=te<0?ve:ve.substring(0,te);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function Pe(ve,te){if(ve){var L=te>>1&63;return L===39||L===40}else{var K=te&31;return K===6}}function tt(ve,te,L,K){var H=vt(ve),Z=0;Z+=te;for(var ne=0,Ae=0,Te=!1,ze=0;Z<H.length;){ne=0;do{if(Z>=H.length)break;ze=H[Z++],ne+=ze}while(ze===255);Ae=0;do{if(Z>=H.length)break;ze=H[Z++],Ae+=ze}while(ze===255);var st=H.length-Z;if(!Te&&ne===4&&Z<H.length){Te=!0;var ct=H[Z++];if(ct===181){var zt=Cn(H,Z);if(Z+=2,zt===49){var Tr=mr(H,Z);if(Z+=4,Tr===1195456820){var br=H[Z++];if(br===3){var Kr=H[Z++],zr=31&Kr,Nn=64&Kr,Mn=Nn?2+zr*3:0,Yn=new Uint8Array(Mn);if(Nn){Yn[0]=Kr;for(var bi=1;bi<Mn;bi++)Yn[bi]=H[Z++]}K.push({type:br,payloadType:ne,pts:L,bytes:Yn})}}}}}else if(ne===5&&Ae<st){if(Te=!0,Ae>16){for(var ua=[],Yi=0;Yi<16;Yi++){var ta=H[Z++].toString(16);ua.push(ta.length==1?"0"+ta:ta),(Yi===3||Yi===5||Yi===7||Yi===9)&&ua.push("-")}for(var Pa=Ae-16,Ya=new Uint8Array(Pa),Ba=0;Ba<Pa;Ba++)Ya[Ba]=H[Z++];K.push({payloadType:ne,pts:L,uuid:ua.join(""),userData:lt(Ya),userDataBytes:Ya})}}else if(Ae<st)Z+=Ae;else if(Ae>st)break}}function vt(ve){for(var te=ve.byteLength,L=[],K=1;K<te-2;)ve[K]===0&&ve[K+1]===0&&ve[K+2]===3?(L.push(K+2),K+=2):K++;if(L.length===0)return ve;var H=te-L.length,Z=new Uint8Array(H),ne=0;for(K=0;K<H;ne++,K++)ne===L[0]&&(ne++,L.shift()),Z[K]=ve[ne];return Z}function St(ve){var te=ve[0],L="",K="",H=0,Z=0,ne=0,Ae=0,Te=0,ze=0;if(te===0){for(;Sr(ve.subarray(ze,ze+1))!=="\0";)L+=Sr(ve.subarray(ze,ze+1)),ze+=1;for(L+=Sr(ve.subarray(ze,ze+1)),ze+=1;Sr(ve.subarray(ze,ze+1))!=="\0";)K+=Sr(ve.subarray(ze,ze+1)),ze+=1;K+=Sr(ve.subarray(ze,ze+1)),ze+=1,H=mr(ve,12),Z=mr(ve,16),Ae=mr(ve,20),Te=mr(ve,24),ze=28}else if(te===1){ze+=4,H=mr(ve,ze),ze+=4;var st=mr(ve,ze);ze+=4;var ct=mr(ve,ze);for(ze+=4,ne=Math.pow(2,32)*st+ct,Number.isSafeInteger(ne)||(ne=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),Ae=mr(ve,ze),ze+=4,Te=mr(ve,ze),ze+=4;Sr(ve.subarray(ze,ze+1))!=="\0";)L+=Sr(ve.subarray(ze,ze+1)),ze+=1;for(L+=Sr(ve.subarray(ze,ze+1)),ze+=1;Sr(ve.subarray(ze,ze+1))!=="\0";)K+=Sr(ve.subarray(ze,ze+1)),ze+=1;K+=Sr(ve.subarray(ze,ze+1)),ze+=1}var zt=ve.subarray(ze,ve.byteLength);return{schemeIdUri:L,value:K,timeScale:H,presentationTime:ne,presentationTimeDelta:Z,eventDuration:Ae,id:Te,payload:zt}}function Vt(ve){for(var te=arguments.length,L=new Array(te>1?te-1:0),K=1;K<te;K++)L[K-1]=arguments[K];for(var H=L.length,Z=8,ne=H;ne--;)Z+=L[ne].byteLength;var Ae=new Uint8Array(Z);for(Ae[0]=Z>>24&255,Ae[1]=Z>>16&255,Ae[2]=Z>>8&255,Ae[3]=Z&255,Ae.set(ve,4),ne=0,Z=8;ne<H;ne++)Ae.set(L[ne],Z),Z+=L[ne].byteLength;return Ae}function Mr(ve,te,L){if(ve.byteLength!==16)throw new RangeError("Invalid system id");var K,H;if(te){K=1,H=new Uint8Array(te.length*16);for(var Z=0;Z<te.length;Z++){var ne=te[Z];if(ne.byteLength!==16)throw new RangeError("Invalid key");H.set(ne,Z*16)}}else K=0,H=new Uint8Array;var Ae;K>0?(Ae=new Uint8Array(4),te.length>0&&new DataView(Ae.buffer).setUint32(0,te.length,!1)):Ae=new Uint8Array;var Te=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(Te.buffer).setUint32(0,L.byteLength,!1),Vt([112,115,115,104],new Uint8Array([K,0,0,0]),ve,Ae,H,Te,L||new Uint8Array)}function $r(ve){if(!(ve instanceof ArrayBuffer)||ve.byteLength<32)return null;var te={version:0,systemId:"",kids:null,data:null},L=new DataView(ve),K=L.getUint32(0);if(ve.byteLength!==K&&K>44)return null;var H=L.getUint32(4);if(H!==1886614376)return null;if(te.version=L.getUint32(8)>>>24,te.version>1)return null;te.systemId=_t.hexDump(new Uint8Array(ve,12,16));var Z=L.getUint32(28);if(te.version===0){if(K-32<Z)return null;te.data=new Uint8Array(ve,32,Z)}else if(te.version===1){te.kids=[];for(var ne=0;ne<Z;ne++)te.kids.push(new Uint8Array(ve,32+ne*16,16))}return te}var vn={},jt=function(){function ve(te,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,ve),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=te,this.uri=L,this.keyFormat=K,this.keyFormatVersions=H,this.iv=Z,this.encrypted=te?te!=="NONE":!1,this.isCommonEncryption=this.encrypted&&te!=="AES-128"}return Object(s.a)(ve,[{key:"isSupported",value:function(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case J.FAIRPLAY:case J.WIDEVINE:case J.PLAYREADY:case J.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}},{key:"getDecryptData",value:function(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&&j.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),L=0);var K=gt(L),H=new ve(this.method,this.uri,"identity",this.keyFormatVersions,K);return H}var Z=oe(this.uri);if(Z)switch(this.keyFormat){case J.WIDEVINE:this.pssh=Z,Z.length>=22&&(this.keyId=Z.subarray(Z.length-22,Z.length-6));break;case J.PLAYREADY:{var ne=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Mr(ne,null,Z);var Ae=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Te=String.fromCharCode.apply(null,Array.from(Ae)),ze=Te.substring(Te.indexOf("<"),Te.length),st=new DOMParser,ct=st.parseFromString(ze,"text/xml"),zt=ct.getElementsByTagName("KID")[0];if(zt){var Tr=zt.childNodes[0]?zt.childNodes[0].nodeValue:zt.getAttribute("VALUE");if(Tr){var br=He(Tr).subarray(0,16);Ie(br),this.keyId=br}}break}default:{var Kr=Z.subarray(0,16);if(Kr.length!==16){var zr=new Uint8Array(16);zr.set(Kr,16-Kr.length),Kr=zr}this.keyId=Kr;break}}if(!this.keyId||this.keyId.byteLength!==16){var Nn=vn[this.uri];if(!Nn){var Mn=Object.keys(vn).length%Number.MAX_SAFE_INTEGER;Nn=new Uint8Array(16);var Yn=new DataView(Nn.buffer,12,4);Yn.setUint32(0,Mn),vn[this.uri]=Nn}this.keyId=Nn}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){vn={}}}]),ve}();function gt(ve){for(var te=new Uint8Array(16),L=12;L<16;L++)te[L]=ve>>8*(15-L)&255;return te}var pt=/\{\$([a-zA-Z0-9-_]+)\}/g;function ar(ve){return pt.test(ve)}function Ht(ve,te,L){if(ve.variableList!==null||ve.hasVariableRefs)for(var K=L.length;K--;){var H=L[K],Z=te[H];Z&&(te[H]=Mt(ve,Z))}}function Mt(ve,te){if(ve.variableList!==null||ve.hasVariableRefs){var L=ve.variableList;return te.replace(pt,function(K){var H=K.substring(2,K.length-1),Z=L==null?void 0:L[H];return Z===void 0?(ve.playlistParsingError||(ve.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),K):Z})}return te}function qt(ve,te,L){var K=ve.variableList;K||(ve.variableList=K={});var H,Z;if("QUERYPARAM"in te){H=te.QUERYPARAM;try{var ne=new self.URL(L).searchParams;if(ne.has(H))Z=ne.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(Ae){ve.playlistParsingError||(ve.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(Ae.message)))}}else H=te.NAME,Z=te.VALUE;H in K?ve.playlistParsingError||(ve.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):K[H]=Z||""}function Rt(ve,te,L){var K=te.IMPORT;if(L&&K in L){var H=ve.variableList;H||(ve.variableList=H={}),H[K]=L[K]}else ve.playlistParsingError||(ve.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(K,'"')))}function Qt(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var jr={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}},Nr=Qt();function Lr(ve,te){var L=jr[te];return!!L&&L[ve.slice(0,4)]===!0}function ln(ve,te){var L;return(L=Nr==null?void 0:Nr.isTypeSupported("".concat(te||"video",'/mp4;codecs="').concat(ve,'"')))!=null?L:!1}var mn=/#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,ti=/#EXT-X-MEDIA:(.*)/g,$n=/^#EXT(?:INF|-X-TARGETDURATION):/m,hi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Ti=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("|")),Ni=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"findGroup",value:function(L,K){for(var H=0;H<L.length;H++){var Z=L[H];if(Z.id===K)return Z}}},{key:"convertAVC1ToAVCOTI",value:function(L){var K=L.split(".");if(K.length>2){var H=K.shift()+".";return H+=parseInt(K.shift()).toString(16),H+=("000"+parseInt(K.shift()).toString(16)).slice(-4),H}return L}},{key:"resolve",value:function(L,K){return g.buildAbsoluteURL(K,L,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(L){return $n.test(L)}},{key:"parseMasterPlaylist",value:function(L,K){var H=ar(L),Z={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},ne=[];mn.lastIndex=0;for(var Ae;(Ae=mn.exec(L))!=null;)if(Ae[1]){var Te,ze=new V(Ae[1]);Ht(Z,ze,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var st=Mt(Z,Ae[2]),ct={attrs:ze,bitrate:ze.decimalInteger("AVERAGE-BANDWIDTH")||ze.decimalInteger("BANDWIDTH"),name:ze.NAME,url:ve.resolve(st,K)},zt=ze.decimalResolution("RESOLUTION");zt&&(ct.width=zt.width,ct.height=zt.height),Re((ze.CODECS||"").split(/[ ,]+/).filter(function(ua){return ua}),ct),ct.videoCodec&&ct.videoCodec.indexOf("avc1")!==-1&&(ct.videoCodec=ve.convertAVC1ToAVCOTI(ct.videoCodec)),(Te=ct.unknownCodecs)!=null&&Te.length||ne.push(ct),Z.levels.push(ct)}else if(Ae[3]){var Tr=Ae[3],br=Ae[4];switch(Tr){case"SESSION-DATA":{var Kr=new V(br);Ht(Z,Kr,["DATA-ID","LANGUAGE","VALUE","URI"]);var zr=Kr["DATA-ID"];zr&&(Z.sessionData===null&&(Z.sessionData={}),Z.sessionData[zr]=Kr);break}case"SESSION-KEY":{var Nn=Wi(br,K,Z);Nn.encrypted&&Nn.isSupported()?(Z.sessionKeys===null&&(Z.sessionKeys=[]),Z.sessionKeys.push(Nn)):j.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(br,'"'));break}case"DEFINE":{{var Mn=new V(br);Ht(Z,Mn,["NAME","VALUE","QUERYPARAM"]),qt(Z,Mn,K)}break}case"CONTENT-STEERING":{var Yn=new V(br);Ht(Z,Yn,["SERVER-URI","PATHWAY-ID"]),Z.contentSteering={uri:ve.resolve(Yn["SERVER-URI"],K),pathwayId:Yn["PATHWAY-ID"]||"."};break}case"START":{Z.startTimeOffset=rt(br);break}}}var bi=ne.length>0&&ne.length<Z.levels.length;return Z.levels=bi?ne:Z.levels,Z.levels.length===0&&(Z.playlistParsingError=new Error("no levels found in manifest")),Z}},{key:"parseMasterPlaylistMedia",value:function(L,K,H){var Z,ne={},Ae=H.levels,Te={AUDIO:Ae.map(function(zr){return{id:zr.attrs.AUDIO,audioCodec:zr.audioCodec}}),SUBTITLES:Ae.map(function(zr){return{id:zr.attrs.SUBTITLES,textCodec:zr.textCodec}}),"CLOSED-CAPTIONS":[]},ze=0;for(ti.lastIndex=0;(Z=ti.exec(L))!==null;){var st=new V(Z[1]),ct=st.TYPE;if(ct){var zt=Te[ct],Tr=ne[ct]||[];ne[ct]=Tr,Ht(H,st,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var br={attrs:st,bitrate:0,id:ze++,groupId:st["GROUP-ID"]||"",instreamId:st["INSTREAM-ID"],name:st.NAME||st.LANGUAGE||"",type:ct,default:st.bool("DEFAULT"),autoselect:st.bool("AUTOSELECT"),forced:st.bool("FORCED"),lang:st.LANGUAGE,url:st.URI?ve.resolve(st.URI,K):""};if(zt!=null&&zt.length){var Kr=ve.findGroup(zt,br.groupId)||zt[0];Ue(br,Kr,"audioCodec"),Ue(br,Kr,"textCodec")}Tr.push(br)}}return ne}},{key:"parseLevelPlaylist",value:function(L,K,H,Z,ne,Ae){var Te=new Xe(K),ze=Te.fragments,st=null,ct=0,zt=0,Tr=0,br=0,Kr=null,zr=new be(Z,K),Nn,Mn,Yn,bi=-1,ua=!1;for(hi.lastIndex=0,Te.m3u8=L,Te.hasVariableRefs=ar(L);(Nn=hi.exec(L))!==null;){ua&&(ua=!1,zr=new be(Z,K),zr.start=Tr,zr.sn=ct,zr.cc=br,zr.level=H,st&&(zr.initSegment=st,zr.rawProgramDateTime=st.rawProgramDateTime,st.rawProgramDateTime=null));var Yi=Nn[1];if(Yi){zr.duration=parseFloat(Yi);var ta=(" "+Nn[2]).slice(1);zr.title=ta||null,zr.tagList.push(ta?["INF",Yi,ta]:["INF",Yi])}else if(Nn[3]){if(T(zr.duration)){zr.start=Tr,Yn&&at(zr,Yn,Te),zr.sn=ct,zr.level=H,zr.cc=br,zr.urlId=ne,ze.push(zr);var Pa=(" "+Nn[3]).slice(1);zr.relurl=Mt(Te,Pa),et(zr,Kr),Kr=zr,Tr+=zr.duration,ct++,zt=0,ua=!0}}else if(Nn[4]){var Ya=(" "+Nn[4]).slice(1);Kr?zr.setByteRange(Ya,Kr):zr.setByteRange(Ya)}else if(Nn[5])zr.rawProgramDateTime=(" "+Nn[5]).slice(1),zr.tagList.push(["PROGRAM-DATE-TIME",zr.rawProgramDateTime]),bi===-1&&(bi=ze.length);else{if(Nn=Nn[0].match(Ti),!Nn){j.warn("No matches on slow regex match for level playlist!");continue}for(Mn=1;Mn<Nn.length&&!(typeof Nn[Mn]!="undefined");Mn++);var Ba=(" "+Nn[Mn]).slice(1),Sa=(" "+Nn[Mn+1]).slice(1),Go=Nn[Mn+2]?(" "+Nn[Mn+2]).slice(1):"";switch(Ba){case"PLAYLIST-TYPE":Te.type=Sa.toUpperCase();break;case"MEDIA-SEQUENCE":ct=Te.startSN=parseInt(Sa);break;case"SKIP":{var Ls=new V(Sa);Ht(Te,Ls,["RECENTLY-REMOVED-DATERANGES"]);var ys=Ls.decimalInteger("SKIPPED-SEGMENTS");if(T(ys)){Te.skippedSegments=ys;for(var bs=ys;bs--;)ze.unshift(null);ct+=ys}var Fs=Ls.enumeratedString("RECENTLY-REMOVED-DATERANGES");Fs&&(Te.recentlyRemovedDateranges=Fs.split(" "));break}case"TARGETDURATION":Te.targetduration=Math.max(parseInt(Sa),1);break;case"VERSION":Te.version=parseInt(Sa);break;case"EXTM3U":break;case"ENDLIST":Te.live=!1;break;case"#":(Sa||Go)&&zr.tagList.push(Go?[Sa,Go]:[Sa]);break;case"DISCONTINUITY":br++,zr.tagList.push(["DIS"]);break;case"GAP":zr.gap=!0,zr.tagList.push([Ba]);break;case"BITRATE":zr.tagList.push([Ba,Sa]);break;case"DATERANGE":{var ws=new V(Sa);Ht(Te,ws,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Ht(Te,ws,ws.clientAttrs);var Ws=new re(ws,Te.dateRanges[ws.ID]);Ws.isValid||Te.skippedSegments?Te.dateRanges[Ws.id]=Ws:j.warn('Ignoring invalid DATERANGE tag: "'.concat(Sa,'"')),zr.tagList.push(["EXT-X-DATERANGE",Sa]);break}case"DEFINE":{{var xe=new V(Sa);Ht(Te,xe,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in xe?Rt(Te,xe,Ae):qt(Te,xe,K)}break}case"DISCONTINUITY-SEQUENCE":br=parseInt(Sa);break;case"KEY":{var Je=Wi(Sa,K,Te);if(Je.isSupported()){if(Je.method==="NONE"){Yn=void 0;break}Yn||(Yn={}),Yn[Je.keyFormat]&&(Yn=E({},Yn)),Yn[Je.keyFormat]=Je}else j.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(Sa,'"'));break}case"START":Te.startTimeOffset=rt(Sa);break;case"MAP":{var bt=new V(Sa);if(Ht(Te,bt,["BYTERANGE","URI"]),zr.duration){var lr=new be(Z,K);$e(lr,bt,H,Yn),st=lr,zr.initSegment=st,st.rawProgramDateTime&&!zr.rawProgramDateTime&&(zr.rawProgramDateTime=st.rawProgramDateTime)}else $e(zr,bt,H,Yn),st=zr,ua=!0;break}case"SERVER-CONTROL":{var Fr=new V(Sa);Te.canBlockReload=Fr.bool("CAN-BLOCK-RELOAD"),Te.canSkipUntil=Fr.optionalFloat("CAN-SKIP-UNTIL",0),Te.canSkipDateRanges=Te.canSkipUntil>0&&Fr.bool("CAN-SKIP-DATERANGES"),Te.partHoldBack=Fr.optionalFloat("PART-HOLD-BACK",0),Te.holdBack=Fr.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var an=new V(Sa);Te.partTarget=an.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Be=Te.partList;Be||(Be=Te.partList=[]);var ae=zt>0?Be[Be.length-1]:void 0,Oe=zt++,qe=new V(Sa);Ht(Te,qe,["BYTERANGE","URI"]);var At=new _e(qe,zr,K,Oe,ae);Be.push(At),zr.duration+=At.duration;break}case"PRELOAD-HINT":{var Ut=new V(Sa);Ht(Te,Ut,["URI"]),Te.preloadHint=Ut;break}case"RENDITION-REPORT":{var $t=new V(Sa);Ht(Te,$t,["URI"]),Te.renditionReports=Te.renditionReports||[],Te.renditionReports.push($t);break}default:j.warn("line parsed but not handled: ".concat(Nn));break}}}Kr&&!Kr.relurl?(ze.pop(),Tr-=Kr.duration,Te.partList&&(Te.fragmentHint=Kr)):Te.partList&&(et(zr,Kr),zr.cc=br,Te.fragmentHint=zr,Yn&&at(zr,Yn,Te));var rr=ze.length,Wr=ze[0],cn=ze[rr-1];if(Tr+=Te.skippedSegments*Te.targetduration,Tr>0&&rr&&cn){Te.averagetargetduration=Tr/rr;var Hr=cn.sn;Te.endSN=Hr!=="initSegment"?Hr:0,Te.live||(cn.endList=!0),Wr&&(Te.startCC=Wr.cc)}else Te.endSN=0,Te.startCC=0;return Te.fragmentHint&&(Tr+=Te.fragmentHint.duration),Te.totalduration=Tr,Te.endCC=br,bi>0&&Ye(ze,bi),Te}}]),ve}();function Wi(ve,te,L){var K,H,Z=new V(ve);Ht(L,Z,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var ne=(K=Z.METHOD)!=null?K:"",Ae=Z.URI,Te=Z.hexadecimalInteger("IV"),ze=Z.KEYFORMATVERSIONS,st=(H=Z.KEYFORMAT)!=null?H:"identity";Ae&&Z.IV&&!Te&&j.error("Invalid IV: ".concat(Z.IV));var ct=Ae?Ni.resolve(Ae,te):"",zt=(ze||"1").split("/").map(Number).filter(Number.isFinite);return new jt(ne,ct,st,zt,Te)}function rt(ve){var te=new V(ve),L=te.decimalFloatingPoint("TIME-OFFSET");return T(L)?L:null}function Re(ve,te){["video","audio","text"].forEach(function(L){var K=ve.filter(function(Z){return Lr(Z,L)});if(K.length){var H=K.filter(function(Z){return Z.lastIndexOf("avc1",0)===0||Z.lastIndexOf("mp4a",0)===0});te["".concat(L,"Codec")]=H.length>0?H[0]:K[0],ve=ve.filter(function(Z){return K.indexOf(Z)===-1})}}),te.unknownCodecs=ve}function Ue(ve,te,L){var K=te[L];K&&(ve[L]=K)}function Ye(ve,te){for(var L=ve[te],K=te;K--;){var H=ve[K];if(!H)return;H.programDateTime=L.programDateTime-H.duration*1e3,L=H}}function et(ve,te){ve.rawProgramDateTime?ve.programDateTime=Date.parse(ve.rawProgramDateTime):te!=null&&te.programDateTime&&(ve.programDateTime=te.endProgramDateTime),T(ve.programDateTime)||(ve.programDateTime=null,ve.rawProgramDateTime=null)}function $e(ve,te,L,K){ve.relurl=te.URI,te.BYTERANGE&&ve.setByteRange(te.BYTERANGE),ve.level=L,ve.sn="initSegment",K&&(ve.levelkeys=K),ve.initSegment=null}function at(ve,te,L){ve.levelkeys=te;var K=L.encryptedFragments;(!K.length||K[K.length-1].levelkeys!==te)&&Object.keys(te).some(function(H){return te[H].isCommonEncryption})&&K.push(ve)}var wt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},ft={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function cr(ve){var te=ve.type;switch(te){case wt.AUDIO_TRACK:return ft.AUDIO;case wt.SUBTITLE_TRACK:return ft.SUBTITLE;default:return ft.MAIN}}function Jr(ve,te){var L=ve.url;return(L===void 0||L.indexOf("data:")===0)&&(L=te.url),L}var Qr=function(){function ve(te){Object(r.a)(this,ve),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=te,this.registerListeners()}return Object(s.a)(ve,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.LEVEL_LOADING,this.onLevelLoading,this),L.on(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.LEVEL_LOADING,this.onLevelLoading,this),L.off(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var K=this.hls.config,H=K.pLoader,Z=K.loader,ne=H||Z,Ae=new ne(K);return this.loaders[L.type]=Ae,Ae}},{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 H=K.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:wt.MANIFEST,url:H,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(L,K){var H=K.id,Z=K.level,ne=K.url,Ae=K.deliveryDirectives;this.load({id:H,level:Z,responseType:"text",type:wt.LEVEL,url:ne,deliveryDirectives:Ae})}},{key:"onAudioTrackLoading",value:function(L,K){var H=K.id,Z=K.groupId,ne=K.url,Ae=K.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:wt.AUDIO_TRACK,url:ne,deliveryDirectives:Ae})}},{key:"onSubtitleTrackLoading",value:function(L,K){var H=K.id,Z=K.groupId,ne=K.url,Ae=K.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:wt.SUBTITLE_TRACK,url:ne,deliveryDirectives:Ae})}},{key:"load",value:function(L){var K=this,H,Z=this.hls.config,ne=this.getInternalLoader(L);if(ne){var Ae=ne.context;if(Ae&&Ae.url===L.url){j.trace("[playlist-loader]: playlist request ongoing");return}j.log("[playlist-loader]: aborting previous loader for type: ".concat(L.type)),ne.abort()}var Te;if(L.type===wt.MANIFEST?Te=Z.manifestLoadPolicy.default:Te=E({},Z.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),ne=this.createInternalLoader(L),(H=L.deliveryDirectives)!=null&&H.part){var ze;if(L.type===wt.LEVEL&&L.level!==null?ze=this.hls.levels[L.level].details:L.type===wt.AUDIO_TRACK&&L.id!==null?ze=this.hls.audioTracks[L.id].details:L.type===wt.SUBTITLE_TRACK&&L.id!==null&&(ze=this.hls.subtitleTracks[L.id].details),ze){var st=ze.partTarget,ct=ze.targetduration;if(st&&ct){var zt=Math.max(st*3,ct*.8)*1e3;Te=E({},Te,{maxTimeToFirstByteMs:Math.min(zt,Te.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(zt,Te.maxTimeToFirstByteMs)})}}}var Tr=Te.errorRetry||Te.timeoutRetry||{},br={loadPolicy:Te,timeout:Te.maxLoadTimeMs,maxRetry:Tr.maxNumRetry||0,retryDelay:Tr.retryDelayMs||0,maxRetryDelay:Tr.maxRetryDelayMs||0},Kr={onSuccess:function(Nn,Mn,Yn,bi){var ua=K.getInternalLoader(Yn);K.resetInternalLoader(Yn.type);var Yi=Nn.data;if(Yi.indexOf("#EXTM3U")!==0){K.handleManifestParsingError(Nn,Yn,new Error("no EXTM3U delimiter"),bi||null,Mn);return}Mn.parsing.start=performance.now(),Ni.isMediaPlaylist(Yi)?K.handleTrackOrLevelPlaylist(Nn,Mn,Yn,bi||null,ua):K.handleMasterPlaylist(Nn,Mn,Yn,bi)},onError:function(Nn,Mn,Yn,bi){K.handleNetworkError(Mn,Yn,!1,Nn,bi)},onTimeout:function(Nn,Mn,Yn){K.handleNetworkError(Mn,Yn,!0,void 0,Nn)}};ne.load(L,br,Kr)}},{key:"handleMasterPlaylist",value:function(L,K,H,Z){var ne=this.hls,Ae=L.data,Te=Jr(L,H),ze=Ni.parseMasterPlaylist(Ae,Te);if(ze.playlistParsingError){this.handleManifestParsingError(L,H,ze.playlistParsingError,Z,K);return}var st=ze.contentSteering,ct=ze.levels,zt=ze.sessionData,Tr=ze.sessionKeys,br=ze.startTimeOffset,Kr=ze.variableList;this.variableList=Kr;var zr=Ni.parseMasterPlaylistMedia(Ae,Te,ze),Nn=zr.AUDIO,Mn=Nn===void 0?[]:Nn,Yn=zr.SUBTITLES,bi=zr["CLOSED-CAPTIONS"];if(Mn.length){var ua=Mn.some(function(Yi){return!Yi.url});!ua&&ct[0].audioCodec&&!ct[0].attrs.AUDIO&&(j.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Mn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new V({}),bitrate:0,url:""}))}ne.trigger(w.MANIFEST_LOADED,{levels:ct,audioTracks:Mn,subtitles:Yn,captions:bi,contentSteering:st,url:Te,stats:K,networkDetails:Z,sessionData:zt,sessionKeys:Tr,startTimeOffset:br,variableList:Kr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,K,H,Z,ne){var Ae=this.hls,Te=H.id,ze=H.level,st=H.type,ct=Jr(L,H),zt=T(Te)?Te:0,Tr=T(ze)?ze:zt,br=cr(H),Kr=Ni.parseLevelPlaylist(L.data,ct,Tr,br,zt,this.variableList);if(st===wt.MANIFEST){var zr={attrs:new V({}),bitrate:0,details:Kr,name:"",url:ct};Ae.trigger(w.MANIFEST_LOADED,{levels:[zr],audioTracks:[],url:ct,stats:K,networkDetails:Z,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}K.parsing.end=performance.now(),H.levelDetails=Kr,this.handlePlaylistLoaded(Kr,L,K,H,Z,ne)}},{key:"handleManifestParsingError",value:function(L,K,H,Z,ne){this.hls.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.MANIFEST_PARSING_ERROR,fatal:K.type===wt.MANIFEST,url:L.url,err:H,error:H,reason:H.message,response:L,context:K,networkDetails:Z,stats:ne})}},{key:"handleNetworkError",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0,Ae="A network ".concat(H?"timeout":"error"+(Z?" (status "+Z.code+")":"")," occurred while loading ").concat(L.type);L.type===wt.LEVEL?Ae+=": ".concat(L.level," id: ").concat(L.id):(L.type===wt.AUDIO_TRACK||L.type===wt.SUBTITLE_TRACK)&&(Ae+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var Te=new Error(Ae);j.warn("[playlist-loader]: ".concat(Ae));var ze=I.UNKNOWN,st=!1,ct=this.getInternalLoader(L);switch(L.type){case wt.MANIFEST:ze=H?I.MANIFEST_LOAD_TIMEOUT:I.MANIFEST_LOAD_ERROR,st=!0;break;case wt.LEVEL:ze=H?I.LEVEL_LOAD_TIMEOUT:I.LEVEL_LOAD_ERROR,st=!1;break;case wt.AUDIO_TRACK:ze=H?I.AUDIO_TRACK_LOAD_TIMEOUT:I.AUDIO_TRACK_LOAD_ERROR,st=!1;break;case wt.SUBTITLE_TRACK:ze=H?I.SUBTITLE_TRACK_LOAD_TIMEOUT:I.SUBTITLE_LOAD_ERROR,st=!1;break}ct&&this.resetInternalLoader(L.type);var zt={type:O.NETWORK_ERROR,details:ze,fatal:st,url:L.url,loader:ct,context:L,error:Te,networkDetails:K,stats:ne};if(Z){var Tr=(K==null?void 0:K.url)||L.url;zt.response=b({url:Tr,data:void 0},Z)}this.hls.trigger(w.ERROR,zt)}},{key:"handlePlaylistLoaded",value:function(L,K,H,Z,ne,Ae){var Te=this.hls,ze=Z.type,st=Z.level,ct=Z.id,zt=Z.groupId,Tr=Z.deliveryDirectives,br=Jr(K,Z),Kr=cr(Z),zr=typeof Z.level=="number"&&Kr===ft.MAIN?st:void 0;if(!L.fragments.length){var Nn=new Error("No Segments found in Playlist");Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_EMPTY_ERROR,fatal:!1,url:br,error:Nn,reason:Nn.message,response:K,context:Z,level:zr,parent:Kr,networkDetails:ne,stats:H});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var Mn=L.playlistParsingError;if(Mn){Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_PARSING_ERROR,fatal:!1,url:br,error:Mn,reason:Mn.message,response:K,context:Z,level:zr,parent:Kr,networkDetails:ne,stats:H});return}L.live&&Ae&&(Ae.getCacheAge&&(L.ageHeader=Ae.getCacheAge()||0),(!Ae.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(ze){case wt.MANIFEST:case wt.LEVEL:Te.trigger(w.LEVEL_LOADED,{details:L,level:zr||0,id:ct||0,stats:H,networkDetails:ne,deliveryDirectives:Tr});break;case wt.AUDIO_TRACK:Te.trigger(w.AUDIO_TRACK_LOADED,{details:L,id:ct||0,groupId:zt||"",stats:H,networkDetails:ne,deliveryDirectives:Tr});break;case wt.SUBTITLE_TRACK:Te.trigger(w.SUBTITLE_TRACK_LOADED,{details:L,id:ct||0,groupId:zt||"",stats:H,networkDetails:ne,deliveryDirectives:Tr});break}}}]),ve}();function fn(ve,te){var L;try{L=new Event("addtrack")}catch(K){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=ve,te.dispatchEvent(L)}function pr(ve,te){var L=ve.mode;if(L==="disabled"&&(ve.mode="hidden"),ve.cues&&!ve.cues.getCueById(te.id))try{if(ve.addCue(te),!ve.cues.getCueById(te.id))throw new Error("addCue is failed for: ".concat(te))}catch(H){j.debug("[texttrack-utils]: ".concat(H));var K=new self.TextTrackCue(te.startTime,te.endTime,te.text);K.id=te.id,ve.addCue(K)}L==="disabled"&&(ve.mode=L)}function Wn(ve){var te=ve.mode;if(te==="disabled"&&(ve.mode="hidden"),ve.cues)for(var L=ve.cues.length;L--;)ve.removeCue(ve.cues[L]);te==="disabled"&&(ve.mode=te)}function kr(ve,te,L,K){var H=ve.mode;if(H==="disabled"&&(ve.mode="hidden"),ve.cues&&ve.cues.length>0)for(var Z=bn(ve.cues,te,L),ne=0;ne<Z.length;ne++)(!K||K(Z[ne]))&&ve.removeCue(Z[ne]);H==="disabled"&&(ve.mode=H)}function kn(ve,te){if(te<ve[0].startTime)return 0;var L=ve.length-1;if(te>ve[L].endTime)return-1;for(var K=0,H=L;K<=H;){var Z=Math.floor((H+K)/2);if(te<ve[Z].startTime)H=Z-1;else if(te>ve[Z].startTime&&K<L)K=Z+1;else return Z}return ve[K].startTime-te<te-ve[H].startTime?K:H}function bn(ve,te,L){var K=[],H=kn(ve,te);if(H>-1)for(var Z=H,ne=ve.length;Z<ne;Z++){var Ae=ve[Z];if(Ae.startTime>=te&&Ae.endTime<=L)K.push(Ae);else if(Ae.startTime>L)return K}return K}var qr={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},fi=.25;function Mi(){return typeof self=="undefined"?void 0:self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Zi=function(){var ve=Mi();try{new ve(0,Number.POSITIVE_INFINITY,"")}catch(te){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function tn(ve,te){return ve.getTime()/1e3-te}function En(ve){return Uint8Array.from(ve.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Vn=function(){function ve(te){Object(r.a)(this,ve),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=te,this._registerListeners()}return Object(s.a)(ve,[{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(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,K){this.media=K.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Wn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(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 H=L[K];if(H.kind==="metadata"&&H.label==="id3")return fn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,K){if(!this.media)return;var H=this.hls.config,Z=H.enableEmsgMetadataCues,ne=H.enableID3MetadataCues;if(!Z&&!ne)return;var Ae=K.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Te=Mi(),ze=0;ze<Ae.length;ze++){var st=Ae[ze].type;if(st===qr.emsg&&!Z||!ne)continue;var ct=Gt(Ae[ze].data);if(ct){var zt=Ae[ze].pts,Tr=zt+Ae[ze].duration;Tr>Zi&&(Tr=Zi);var br=Tr-zt;br<=0&&(Tr=zt+fi);for(var Kr=0;Kr<ct.length;Kr++){var zr=ct[Kr];if(!Yt(zr)){this.updateId3CueEnds(zt);var Nn=new Te(zt,Tr,"");Nn.value=zr,st&&(Nn.type=st),this.id3Track.addCue(Nn)}}}}}},{key:"updateId3CueEnds",value:function(L){var K,H=(K=this.id3Track)==null?void 0:K.cues;if(H)for(var Z=H.length;Z--;){var ne=H[Z];ne.startTime<L&&ne.endTime===Zi&&(ne.endTime=L)}}},{key:"onBufferFlushing",value:function(L,K){var H=K.startOffset,Z=K.endOffset,ne=K.type,Ae=this.id3Track,Te=this.hls;if(!Te)return;var ze=Te.config,st=ze.enableEmsgMetadataCues,ct=ze.enableID3MetadataCues;if(Ae&&(st||ct)){var zt;ne==="audio"?zt=function(br){return br.type===qr.audioId3&&ct}:ne==="video"?zt=function(br){return br.type===qr.emsg&&st}:zt=function(br){return br.type===qr.audioId3&&ct||br.type===qr.emsg&&st},kr(Ae,H,Z,zt)}}},{key:"onLevelUpdated",value:function(L,K){var H=this,Z=K.details;if(!this.media||!Z.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var ne=this.dateRangeCuesAppended,Ae=this.id3Track,Te=Z.dateRanges,ze=Object.keys(Te);if(Ae)for(var st=Object.keys(ne).filter(function(Mn){return!ze.includes(Mn)}),ct=function(){var Yn=st[zt];Object.keys(ne[Yn].cues).forEach(function(bi){Ae.removeCue(ne[Yn].cues[bi])}),delete ne[Yn]},zt=st.length;zt--;)ct();var Tr=Z.fragments[Z.fragments.length-1];if(ze.length===0||!T(Tr==null?void 0:Tr.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var br=Tr.programDateTime/1e3-Tr.start,Kr=Mi(),zr=function(){var Yn=ze[Nn],bi=Te[Yn],ua=ne[Yn],Yi=(ua==null?void 0:ua.cues)||{},ta=(ua==null?void 0:ua.durationKnown)||!1,Pa=tn(bi.startDate,br),Ya=Zi,Ba=bi.endDate;if(Ba)Ya=tn(Ba,br),ta=!0;else if(bi.endOnNext&&!ta){var Sa=ze.reduce(function(ws,Ws){var xe=Te[Ws];return xe.class===bi.class&&xe.id!==Ws&&xe.startDate>bi.startDate&&ws.push(xe),ws},[]).sort(function(ws,Ws){return ws.startDate.getTime()-Ws.startDate.getTime()})[0];Sa&&(Ya=tn(Sa.startDate,br),ta=!0)}for(var Go=Object.keys(bi.attr),Ls=0;Ls<Go.length;Ls++){var ys=Go[Ls];if(!Q(ys))continue;var bs=Yi[ys];if(bs)ta&&!ua.durationKnown&&(bs.endTime=Ya);else{var Fs=bi.attr[ys];bs=new Kr(Pa,Ya,""),G(ys)&&(Fs=En(Fs)),bs.value={key:ys,data:Fs},bs.type=qr.dateRange,bs.id=Yn,H.id3Track.addCue(bs),Yi[ys]=bs}}ne[Yn]={cues:Yi,dateRange:bi,durationKnown:ta}},Nn=0;Nn<ze.length;Nn++)zr()}}]),ve}(),Wt=function(){function ve(te){var L=this;Object(r.a)(this,ve),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=te,this.config=te.config,this.registerListeners()}return Object(s.a)(ve,[{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,H=L.partHoldBack,Z=L.targetduration,ne=this.config,Ae=ne.liveSyncDuration,Te=ne.liveSyncDurationCount,ze=ne.lowLatencyMode,st=this.hls.userConfig,ct=ze&&H||K;(st.liveSyncDuration||st.liveSyncDurationCount||ct===0)&&(ct=Ae!==void 0?Ae:Te*Z);var zt=Z,Tr=1;return ct+Math.min(this.stallCount*Tr,zt)}},{key:"liveSyncPosition",get:function(){var L=this.estimateLiveEdge(),K=this.targetLatency,H=this.levelDetails;if(L===null||K===null||H===null)return null;var Z=H.edge,ne=L-K-this.edgeStalled,Ae=Z-H.totalduration,Te=Z-(this.config.lowLatencyMode&&H.partTarget||H.targetduration);return Math.min(Math.max(Ae,ne),Te)}},{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 H=L.buffered.length;return(H?L.buffered.end(H-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(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(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 H=K.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,K){var H;if(K.details!==I.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&j.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,K=this.levelDetails;if(!L||!K)return;this.currentTime=L.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var Z=this.config,ne=Z.lowLatencyMode,Ae=Z.maxLiveSyncPlaybackRate;if(!ne||Ae===1)return;var Te=this.targetLatency;if(Te===null)return;var ze=H-Te,st=Math.min(this.maxLatency,Te+K.targetduration),ct=ze<st;if(K.live&&ct&&ze>.05&&this.forwardBufferLength>1){var zt=Math.min(2,Math.max(1,Ae)),Tr=Math.round(2/(1+Math.exp(-.75*ze-this.edgeStalled))*20)/20;L.playbackRate=Math.min(zt,Math.max(1,Tr))}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}}]),ve}(),Et=["NONE","TYPE-0","TYPE-1",null],kt={No:"",Yes:"YES",v2:"v2"};function Bt(ve,te){var L=ve.canSkipUntil,K=ve.canSkipDateRanges,H=ve.endSN,Z=te!==void 0?te-H:0;return L&&Z<L?K?kt.v2:kt.Yes:kt.No}var Kt=function(){function ve(te,L,K){Object(r.a)(this,ve),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=te,this.part=L,this.skip=K}return Object(s.a)(ve,[{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}}]),ve}(),Ot=function(){function ve(te){Object(r.a)(this,ve),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=[te.url],this._attrs=[te.attrs],this.bitrate=te.bitrate,te.details&&(this.details=te.details),this.id=te.id||0,this.name=te.name,this.width=te.width||0,this.height=te.height||0,this.audioCodec=te.audioCodec,this.videoCodec=te.videoCodec,this.unknownCodecs=te.unknownCodecs,this.codecSet=[te.videoCodec,te.audioCodec].filter(function(L){return L}).join(",").replace(/\.[^.,]+/g,"")}return Object(s.a)(ve,[{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)}}]),ve}();function sr(ve,te){var L=te.startPTS;if(T(L)){var K=0,H;te.sn>ve.sn?(K=L-ve.start,H=ve):(K=ve.start-L,H=te),H.duration!==K&&(H.duration=K)}else if(te.sn>ve.sn){var Z=ve.cc===te.cc;Z&&ve.minEndPTS?te.start=ve.start+(ve.minEndPTS-ve.start):te.start=ve.start+ve.duration}else te.start=Math.max(ve.start-te.duration,0)}function fr(ve,te,L,K,H,Z){var ne=K-L;ne<=0&&(j.warn("Fragment should have a positive duration",te),K=L+te.duration,Z=H+te.duration);var Ae=L,Te=K,ze=te.startPTS,st=te.endPTS;if(T(ze)){var ct=Math.abs(ze-L);T(te.deltaPTS)?te.deltaPTS=Math.max(ct,te.deltaPTS):te.deltaPTS=ct,Ae=Math.max(L,ze),L=Math.min(L,ze),H=Math.min(H,te.startDTS),Te=Math.min(K,st),K=Math.max(K,st),Z=Math.max(Z,te.endDTS)}var zt=L-te.start;te.start!==0&&(te.start=L),te.duration=K-te.start,te.startPTS=L,te.maxStartPTS=Ae,te.startDTS=H,te.endPTS=K,te.minEndPTS=Te,te.endDTS=Z;var Tr=te.sn;if(!ve||Tr<ve.startSN||Tr>ve.endSN)return 0;var br,Kr=Tr-ve.startSN,zr=ve.fragments;for(zr[Kr]=te,br=Kr;br>0;br--)sr(zr[br],zr[br-1]);for(br=Kr;br<zr.length-1;br++)sr(zr[br],zr[br+1]);return ve.fragmentHint&&sr(zr[zr.length-1],ve.fragmentHint),ve.PTSKnown=ve.alignedSliding=!0,zt}function vr(ve,te){for(var L=null,K=ve.fragments,H=K.length-1;H>=0;H--){var Z=K[H].initSegment;if(Z){L=Z;break}}ve.fragmentHint&&delete ve.fragmentHint.endPTS;var ne=0,Ae;if(Dn(ve,te,function(br,Kr){br.relurl&&(ne=br.cc-Kr.cc),T(br.startPTS)&&T(br.endPTS)&&(Kr.start=Kr.startPTS=br.startPTS,Kr.startDTS=br.startDTS,Kr.maxStartPTS=br.maxStartPTS,Kr.endPTS=br.endPTS,Kr.endDTS=br.endDTS,Kr.minEndPTS=br.minEndPTS,Kr.duration=br.endPTS-br.startPTS,Kr.duration&&(Ae=Kr),te.PTSKnown=te.alignedSliding=!0),Kr.elementaryStreams=br.elementaryStreams,Kr.loader=br.loader,Kr.stats=br.stats,Kr.urlId=br.urlId,br.initSegment&&(Kr.initSegment=br.initSegment,L=br.initSegment)}),L){var Te=te.fragmentHint?te.fragments.concat(te.fragmentHint):te.fragments;Te.forEach(function(br){var Kr;(!br.initSegment||br.initSegment.relurl===((Kr=L)==null?void 0:Kr.relurl))&&(br.initSegment=L)})}if(te.skippedSegments)if(te.deltaUpdateFailed=te.fragments.some(function(br){return!br}),te.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var ze=te.skippedSegments;ze--;)te.fragments.shift();te.startSN=te.fragments[0].sn,te.startCC=te.fragments[0].cc}else te.canSkipDateRanges&&(te.dateRanges=Rr(ve.dateRanges,te.dateRanges,te.recentlyRemovedDateranges));var st=te.fragments;if(ne){j.warn("discontinuity sliding from playlist, take drift into account");for(var ct=0;ct<st.length;ct++)st[ct].cc+=ne}te.skippedSegments&&(te.startCC=te.fragments[0].cc),Kn(ve.partList,te.partList,function(br,Kr){Kr.elementaryStreams=br.elementaryStreams,Kr.stats=br.stats}),Ae?fr(te,Ae,Ae.startPTS,Ae.endPTS,Ae.startDTS,Ae.endDTS):ui(ve,te),st.length&&(te.totalduration=te.edge-st[0].start),te.driftStartTime=ve.driftStartTime,te.driftStart=ve.driftStart;var zt=te.advancedDateTime;if(te.advanced&&zt){var Tr=te.edge;te.driftStart||(te.driftStartTime=zt,te.driftStart=Tr),te.driftEndTime=zt,te.driftEnd=Tr}else te.driftEndTime=ve.driftEndTime,te.driftEnd=ve.driftEnd,te.advancedDateTime=ve.advancedDateTime}function Rr(ve,te,L){var K=E({},ve);return L&&L.forEach(function(H){delete K[H]}),Object.keys(te).forEach(function(H){var Z=new re(te[H].attr,K[H]);Z.isValid?K[H]=Z:j.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(te[H].attr),'"'))}),K}function Kn(ve,te,L){if(ve&&te)for(var K=0,H=0,Z=ve.length;H<=Z;H++){var ne=ve[H],Ae=te[H+K];ne&&Ae&&ne.index===Ae.index&&ne.fragment.sn===Ae.fragment.sn?L(ne,Ae):K--}}function Dn(ve,te,L){for(var K=te.skippedSegments,H=Math.max(ve.startSN,te.startSN)-te.startSN,Z=(ve.fragmentHint?1:0)+(K?te.endSN:Math.min(ve.endSN,te.endSN))-te.startSN,ne=te.startSN-ve.startSN,Ae=te.fragmentHint?te.fragments.concat(te.fragmentHint):te.fragments,Te=ve.fragmentHint?ve.fragments.concat(ve.fragmentHint):ve.fragments,ze=H;ze<=Z;ze++){var st=Te[ne+ze],ct=Ae[ze];K&&!ct&&ze<K&&(ct=te.fragments[ze]=st),st&&ct&&L(st,ct)}}function ui(ve,te){var L=te.startSN+te.skippedSegments-ve.startSN,K=ve.fragments;if(L<0||L>=K.length)return;pn(te,K[L].start)}function pn(ve,te){if(te){for(var L=ve.fragments,K=ve.skippedSegments;K<L.length;K++)L[K].start+=te;ve.fragmentHint&&(ve.fragmentHint.start+=te)}}function Br(ve){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*ve.targetduration;if(ve.updated){var K=ve.fragments,H=4;if(K.length&&L*H>te){var Z=K[K.length-1].duration*1e3;Z<L&&(L=Z)}}else L/=2;return Math.round(L)}function Tn(ve,te,L){if(!(ve!=null&&ve.details))return null;var K=ve.details,H=K.fragments[te-K.startSN];return H||(H=K.fragmentHint,H&&H.sn===te?H:te<K.startSN&&L&&L.sn===te?L:null)}function zn(ve,te,L){var K;return ve!=null&&ve.details?Qn((K=ve.details)==null?void 0:K.partList,te,L):null}function Qn(ve,te,L){if(ve)for(var K=ve.length;K--;){var H=ve[K];if(H.index===L&&H.fragment.sn===te)return H}return null}function ii(ve){switch(ve.details){case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_TIMEOUT:case I.LEVEL_LOAD_TIMEOUT:case I.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function xi(ve,te){var L=ii(te);return ve.default["".concat(L?"timeout":"error","Retry")]}function Di(ve,te){var L=ve.backoff==="linear"?1:Math.pow(2,te);return Math.min(L*ve.retryDelayMs,ve.maxRetryDelayMs)}function Li(ve){return b(b({},ve),{errorRetry:null,timeoutRetry:null})}function oa(ve,te,L,K){return!!ve&&te<ve.maxNumRetry&&(ma(K)||!!L)}function ma(ve){return ve===0&&navigator.onLine===!1||!!ve&&(ve<400||ve>499)}var ia={search:function(te,L){for(var K=0,H=te.length-1,Z=null,ne=null;K<=H;){Z=(K+H)/2|0,ne=te[Z];var Ae=L(ne);if(Ae>0)K=Z+1;else if(Ae<0)H=Z-1;else return ne}return null}};function ba(ve,te,L){if(te===null||!Array.isArray(ve)||!ve.length||!T(te))return null;var K=ve[0].programDateTime;if(te<(K||0))return null;var H=ve[ve.length-1].endProgramDateTime;if(te>=(H||0))return null;L=L||0;for(var Z=0;Z<ve.length;++Z){var ne=ve[Z];if(Fi(te,L,ne))return ne}return null}function vi(ve,te){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(ve?H=te[ve.sn-te[0].sn+1]||null:L===0&&te[0].start===0&&(H=te[0]),H&&Ln(L,K,H)===0)return H;var Z=ia.search(te,Ln.bind(null,L,K));return Z&&(Z!==ve||!H)?Z:H}function Ln(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2?arguments[2]:void 0;if(L.start<=ve&&L.start+L.duration>ve)return 0;var K=Math.min(te,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-K<=ve?1:L.start-K>ve&&L.start?-1:0}function Fi(ve,te,L){var K=Math.min(te,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,H=L.endProgramDateTime||0;return H-K>ve}function ha(ve,te){return ia.search(ve,function(L){return L.cc<te?1:L.cc>te?-1:0})}var ea=3e5,aa={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ir={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},wr=function(){function ve(te){Object(r.a)(this,ve),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=te,this.log=j.log.bind(j,"[info]:"),this.warn=j.warn.bind(j,"[warning]:"),this.error=j.error.bind(j,"[error]:"),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.ERROR,this.onError,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.ERROR,this.onError,this),L.off(w.ERROR,this.onErrorOut,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,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)===ft.MAIN?L.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onError",value:function(L,K){var H;if(K.fatal)return;var Z=this.hls,ne=K.context;switch(K.details){case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:K.errorAction=this.getFragRetryOrSwitchAction(K);return;case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:{K.errorAction=this.getFragRetryOrSwitchAction(K),K.errorAction.action=aa.SendAlternateToPenaltyBox;return}case I.LEVEL_EMPTY_ERROR:case I.LEVEL_PARSING_ERROR:{var Ae,Te,ze=K.parent===ft.MAIN?K.level:Z.loadLevel;K.details===I.LEVEL_EMPTY_ERROR&&!!((Ae=K.context)!=null&&(Te=Ae.levelDetails)!=null&&Te.live)?K.errorAction=this.getPlaylistRetryOrSwitchAction(K,ze):(K.levelRetry=!1,K.errorAction=this.getLevelSwitchAction(K,ze))}return;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:typeof(ne==null?void 0:ne.level)=="number"&&(K.errorAction=this.getPlaylistRetryOrSwitchAction(K,ne.level));return;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.SUBTITLE_LOAD_ERROR:case I.SUBTITLE_TRACK_LOAD_TIMEOUT:if(ne){var st=Z.levels[Z.loadLevel];if(st&&(ne.type===wt.AUDIO_TRACK&&ne.groupId===st.audioGroupId||ne.type===wt.SUBTITLE_TRACK&&ne.groupId===st.textGroupId)){K.errorAction=this.getPlaylistRetryOrSwitchAction(K,Z.loadLevel),K.errorAction.action=aa.SendAlternateToPenaltyBox,K.errorAction.flags=Ir.MoveAllAlternatesMatchingHost;return}}return;case I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var ct=Z.levels[Z.loadLevel],zt=ct==null?void 0:ct.attrs["HDCP-LEVEL"];zt&&(K.errorAction={action:aa.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHDCP,hdcpLevel:zt})}return;case I.BUFFER_ADD_CODEC_ERROR:case I.REMUX_ALLOC_ERROR:K.errorAction=this.getLevelSwitchAction(K,(H=K.level)!=null?H:Z.loadLevel);return;case I.INTERNAL_EXCEPTION:case I.BUFFER_APPENDING_ERROR:case I.BUFFER_APPEND_ERROR:case I.BUFFER_FULL_ERROR:case I.LEVEL_SWITCH_ERROR:case I.BUFFER_STALLED_ERROR:case I.BUFFER_SEEK_OVER_HOLE:case I.BUFFER_NUDGE_ON_STALL:K.errorAction={action:aa.DoNothing,flags:Ir.None};return}if(K.type===O.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 H,Z=this.hls,ne=xi(Z.config.playlistLoadPolicy,L),Ae=this.playlistError++,Te=(H=L.response)==null?void 0:H.code,ze=oa(ne,Ae,ii(L),Te);if(ze)return{action:aa.RetryRequest,flags:Ir.None,retryConfig:ne,retryCount:Ae};var st=this.getLevelSwitchAction(L,K);return ne&&(st.retryConfig=ne,st.retryCount=Ae),st}},{key:"getFragRetryOrSwitchAction",value:function(L){var K=this.hls,H=this.getVariantLevelIndex(L.frag),Z=K.levels[H],ne=K.config,Ae=ne.fragLoadPolicy,Te=ne.keyLoadPolicy,ze=xi(L.details.startsWith("key")?Te:Ae,L),st=K.levels.reduce(function(Kr,zr){return Kr+zr.fragmentError},0);if(Z){var ct;L.details!==I.FRAG_GAP&&Z.fragmentError++;var zt=(ct=L.response)==null?void 0:ct.code,Tr=oa(ze,st,ii(L),zt);if(Tr)return{action:aa.RetryRequest,flags:Ir.None,retryConfig:ze,retryCount:st}}var br=this.getLevelSwitchAction(L,H);return ze&&(br.retryConfig=ze,br.retryCount=st),br}},{key:"getLevelSwitchAction",value:function(L,K){var H=this.hls;K==null&&(K=H.loadLevel);var Z=this.hls.levels[K];if(Z&&(Z.loadError++,H.autoLevelEnabled)){for(var ne,Ae,Te=-1,ze=H.levels,st=(ne=L.frag)==null?void 0:ne.type,ct=(Ae=L.context)!=null?Ae:{},zt=ct.type,Tr=ct.groupId,br=ze.length;br--;){var Kr=(br+H.loadLevel)%ze.length;if(Kr!==H.loadLevel&&ze[Kr].loadError===0){var zr=ze[Kr];if(L.details===I.FRAG_GAP&&L.frag){var Nn=ze[Kr].details;if(Nn){var Mn=vi(L.frag,Nn.fragments,L.frag.start);if(Mn!=null&&Mn.gap)continue}}else{if(zt===wt.AUDIO_TRACK&&Tr===zr.audioGroupId||zt===wt.SUBTITLE_TRACK&&Tr===zr.textGroupId)continue;if(st===ft.AUDIO&&Z.audioGroupId===zr.audioGroupId||st===ft.SUBTITLE&&Z.textGroupId===zr.textGroupId)continue}Te=Kr;break}}if(Te>-1&&H.loadLevel!==Te)return L.levelRetry=!0,{action:aa.SendAlternateToPenaltyBox,flags:Ir.None,nextAutoLevel:Te}}return{action:aa.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(L,K){var H;switch((H=K.errorAction)==null?void 0:H.action){case aa.DoNothing:break;case aa.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(K),!K.errorAction.resolved&&K.details!==I.FRAG_GAP&&(K.fatal=!0);break}if(K.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(L){var K=this.hls,H=L.errorAction;if(!H)return;var Z=H.flags,ne=H.hdcpLevel,Ae=H.nextAutoLevel;switch(Z){case Ir.None:this.switchLevel(L,Ae);break;case Ir.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(L));break;case Ir.MoveAllAlternatesMatchingHDCP:ne&&(K.maxHdcpLevel=Et[Et.indexOf(ne)-1],H.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(K.maxHdcpLevel,'" or lower'));break}H.resolved||this.switchLevel(L,Ae)}},{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,H=this.hls,Z=this.penalizedRenditions,ne=L.parent===ft.MAIN?L.level:H.loadLevel,Ae=H.levels[ne],Te=Ae.url.length,ze=L.frag?L.frag.urlId:Ae.urlId;Ae.urlId===ze&&(!L.frag||Ae.details)&&this.penalizeRendition(Ae,L);for(var st=function(){var br=(ze+ct)%Te,Kr=Z[br];if(!Kr||xn(Kr,L,Z[ze]))return K.warn("Switching to Redundant Stream ".concat(br+1,"/").concat(Te,': "').concat(Ae.url[br],'" after ').concat(L.details)),K.playlistError=0,H.levels.forEach(function(zr){zr.urlId=br}),H.nextLoadLevel=ne,{v:!0}},ct=1;ct<Te;ct++){var zt=st();if(typeof zt=="object")return zt.v}return!1}},{key:"penalizeRendition",value:function(L,K){var H=this.penalizedRenditions,Z=H[L.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};Z.lastErrorPerfMs=performance.now(),Z.errors.push(K),Z.details=L.details,H[L.urlId]=Z}}]),ve}();function xn(ve,te,L){if(performance.now()-ve.lastErrorPerfMs>ea)return!0;var K=ve.details;if(te.details===I.FRAG_GAP&&K&&te.frag){var H=te.frag.start,Z=vi(null,K.fragments,H);if(Z&&!Z.gap)return!0}if(L&&ve.errors.length<L.errors.length){var ne=ve.errors[ve.errors.length-1];if(K&&ne.frag&&te.frag&&Math.abs(ne.frag.start-te.frag.start)>K.targetduration*3)return!0}return!1}var ur=function(){function ve(te,L){Object(r.a)(this,ve),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=j.log.bind(j,"".concat(L,":")),this.warn=j.warn.bind(j,"".concat(L,":")),this.hls=te}return Object(s.a)(ve,[{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 H=K==null?void 0:K.renditionReports;if(H){for(var Z=-1,ne=0;ne<H.length;ne++){var Ae=H[ne],Te=void 0;try{Te=new self.URL(Ae.URI,K.url).href}catch(Tr){j.warn("Could not construct new URL for Rendition Report: ".concat(Tr)),Te=Ae.URI||""}if(Te===L){Z=ne;break}else Te===L.substring(0,Te.length)&&(Z=ne)}if(Z!==-1){var ze=H[Z],st=parseInt(ze["LAST-MSN"])||(K==null?void 0:K.lastPartSn),ct=parseInt(ze["LAST-PART"])||(K==null?void 0:K.lastPartIndex);if(this.hls.config.lowLatencyMode){var zt=Math.min(K.age-K.partTarget,K.targetduration);ct>=0&&zt>K.partTarget&&(ct+=1)}return new Kt(st,ct>=0?ct:void 0,kt.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,H){var Z=this,ne=K.details,Ae=K.stats,Te=self.performance.now(),ze=Ae.loading.first?Math.max(0,Te-Ae.loading.first):0;if(ne.advancedDateTime=Date.now()-ze,ne.live||H!=null&&H.live){if(ne.reloaded(H),H&&this.log("live playlist ".concat(L," ").concat(ne.advanced?"REFRESHED "+ne.lastPartSn+"-"+ne.lastPartIndex:"MISSED")),H&&ne.fragments.length>0&&vr(H,ne),!this.canLoad||!ne.live)return;var st,ct=void 0,zt=void 0;if(ne.canBlockReload&&ne.endSN&&ne.advanced){var Tr=this.hls.config.lowLatencyMode,br=ne.lastPartSn,Kr=ne.endSN,zr=ne.lastPartIndex,Nn=zr!==-1,Mn=br===Kr,Yn=Tr?0:zr;Nn?(ct=Mn?Kr+1:br,zt=Mn?Yn:zr+1):ct=Kr+1;var bi=ne.age,ua=bi+ne.ageHeader,Yi=Math.min(ua-ne.partTarget,ne.targetduration*1.5);if(Yi>0){if(H&&Yi>H.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(H.tuneInGoal," to: ").concat(Yi," with playlist age: ").concat(ne.age)),Yi=0;else{var ta=Math.floor(Yi/ne.targetduration);if(ct+=ta,zt!==void 0){var Pa=Math.round(Yi%ne.targetduration/ne.partTarget);zt+=Pa}this.log("CDN Tune-in age: ".concat(ne.ageHeader,"s last advanced ").concat(bi.toFixed(2),"s goal: ").concat(Yi," skip sn ").concat(ta," to part ").concat(zt))}ne.tuneInGoal=Yi}if(st=this.getDeliveryDirectives(ne,K.deliveryDirectives,ct,zt),Tr||!Mn){this.loadPlaylist(st);return}}else ne.canBlockReload&&(st=this.getDeliveryDirectives(ne,K.deliveryDirectives,ct,zt));var Ya=this.hls.mainForwardBufferInfo,Ba=Ya?Ya.end-Ya.len:0,Sa=(ne.edge-Ba)*1e3,Go=Br(ne,Sa);ne.updated&&Te>this.requestScheduled+Go&&(this.requestScheduled=Ae.loading.start),ct!==void 0&&ne.canBlockReload?this.requestScheduled=Ae.loading.first+Go-(ne.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+Go<Te?this.requestScheduled=Te:this.requestScheduled-Te<=0&&(this.requestScheduled+=Go);var Ls=this.requestScheduled-Te;Ls=Math.max(0,Ls),this.log("reload live playlist ".concat(L," in ").concat(Math.round(Ls)," ms")),this.timer=self.setTimeout(function(){return Z.loadPlaylist(st)},Ls)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(L,K,H,Z){var ne=Bt(L,H);return K!=null&&K.skip&&L.deltaUpdateFailed&&(H=K.msn,Z=K.part,ne=kt.No),new Kt(H,Z,ne)}},{key:"checkRetry",value:function(L){var K=this,H=L.details,Z=ii(L),ne=L.errorAction,Ae=ne||{},Te=Ae.action,ze=Ae.retryCount,st=ze===void 0?0:ze,ct=Ae.retryConfig,zt=!!ne&&!!ct&&(Te===aa.RetryRequest||!ne.resolved&&Te===aa.SendAlternateToPenaltyBox);if(zt){var Tr;if(this.requestScheduled=-1,Z&&(Tr=L.context)!=null&&Tr.deliveryDirectives)this.warn("Retrying playlist loading ".concat(st+1,"/").concat(ct.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var br=Di(ct,st);this.timer=self.setTimeout(function(){return K.loadPlaylist()},br),this.warn("Retrying playlist loading ".concat(st+1,"/").concat(ct.maxNumRetry,' after "').concat(H,'" in ').concat(br,"ms"))}L.levelRetry=!0,ne.resolved=!0}return zt}}]),ve}(),Dr,Vr=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=te.call(this,K,"[level-controller]"),Z._levels=[],Z._firstLevel=-1,Z._startLevel=void 0,Z.currentLevel=null,Z.currentLevelIndex=-1,Z.manualLevelIndex=-1,Z.steering=void 0,Z.onParsedComplete=void 0,Z.steering=H,Z._registerListeners(),Z}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.FRAG_LOADED,this.onFragLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.FRAG_LOADED,this.onFragLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"startLoad",value:function(){var H=this._levels;H.forEach(function(Z){Z.loadError=0,Z.fragmentError=0}),Object(t.a)(Object(m.a)(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(H,Z){this.resetLevels()}},{key:"onManifestLoaded",value:function(H,Z){var ne=[],Ae={},Te;Z.levels.forEach(function(ze){var st,ct=ze.attrs;((st=ze.audioCodec)==null?void 0:st.indexOf("mp4a.40.34"))!==-1&&(Dr||(Dr=/chrome|firefox/i.test(navigator.userAgent)),Dr&&(ze.audioCodec=void 0));var zt=ct.AUDIO,Tr=ct.CODECS,br=ct["FRAME-RATE"],Kr=ct["PATHWAY-ID"],zr=ct.RESOLUTION,Nn=ct.SUBTITLES,Mn="".concat(Kr||".","-"),Yn="".concat(Mn).concat(ze.bitrate,"-").concat(zr,"-").concat(br,"-").concat(Tr);Te=Ae[Yn],Te?Te.addFallback(ze):(Te=new Ot(ze),Ae[Yn]=Te,ne.push(Te)),sn(Te,"audio",zt),sn(Te,"text",Nn)}),this.filterAndSortMediaOptions(ne,Z)}},{key:"filterAndSortMediaOptions",value:function(H,Z){var ne=this,Ae=[],Te=[],ze=!1,st=!1,ct=!1,zt=H.filter(function(Yn){var bi=Yn.audioCodec,ua=Yn.videoCodec,Yi=Yn.width,ta=Yn.height,Pa=Yn.unknownCodecs;return ze||(ze=!!(Yi&&ta)),st||(st=!!ua),ct||(ct=!!bi),!(Pa!=null&&Pa.length)&&(!bi||ln(bi,"audio"))&&(!ua||ln(ua,"video"))});if((ze||st)&&ct&&(zt=zt.filter(function(Yn){var bi=Yn.videoCodec,ua=Yn.width,Yi=Yn.height;return!!bi||!!(ua&&Yi)})),zt.length===0){Promise.resolve().then(function(){if(ne.hls){var Yn=new Error("no level with compatible codecs found in manifest");ne.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:Z.url,error:Yn,reason:Yn.message})}});return}Z.audioTracks&&(Ae=Z.audioTracks.filter(function(Yn){return!Yn.audioCodec||ln(Yn.audioCodec,"audio")}),Rn(Ae)),Z.subtitles&&(Te=Z.subtitles,Rn(Te));var Tr=zt.slice(0);zt.sort(function(Yn,bi){return Yn.attrs["HDCP-LEVEL"]!==bi.attrs["HDCP-LEVEL"]?(Yn.attrs["HDCP-LEVEL"]||"")>(bi.attrs["HDCP-LEVEL"]||"")?1:-1:Yn.bitrate!==bi.bitrate?Yn.bitrate-bi.bitrate:Yn.attrs["FRAME-RATE"]!==bi.attrs["FRAME-RATE"]?Yn.attrs.decimalFloatingPoint("FRAME-RATE")-bi.attrs.decimalFloatingPoint("FRAME-RATE"):Yn.attrs.SCORE!==bi.attrs.SCORE?Yn.attrs.decimalFloatingPoint("SCORE")-bi.attrs.decimalFloatingPoint("SCORE"):ze&&Yn.height!==bi.height?Yn.height-bi.height:0});var br=Tr[0];if(this.steering&&(zt=this.steering.filterParsedLevels(zt),zt.length!==Tr.length)){for(var Kr=0;Kr<Tr.length;Kr++)if(Tr[Kr].pathwayId===zt[0].pathwayId){br=Tr[Kr];break}}this._levels=zt;for(var zr=0;zr<zt.length;zr++)if(zt[zr]===br){this._firstLevel=zr,this.log("manifest loaded, ".concat(zt.length," level(s) found, first bitrate: ").concat(br.bitrate));break}var Nn=ct&&!st,Mn={levels:zt,audioTracks:Ae,subtitleTracks:Te,sessionData:Z.sessionData,sessionKeys:Z.sessionKeys,firstLevel:this._firstLevel,stats:Z.stats,audio:ct,video:st,altAudio:!Nn&&Ae.some(function(Yn){return!!Yn.url})};this.hls.trigger(w.MANIFEST_PARSED,Mn),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}},{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(H){var Z=this._levels;if(Z.length===0)return;if(H<0||H>=Z.length){var ne=new Error("invalid level idx"),Ae=H<0;if(this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.LEVEL_SWITCH_ERROR,level:H,fatal:Ae,error:ne,reason:ne.message}),Ae)return;H=Math.min(H,Z.length-1)}var Te=this.currentLevelIndex,ze=this.currentLevel,st=ze?ze.attrs["PATHWAY-ID"]:void 0,ct=Z[H],zt=ct.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=ct,Te===H&&ct.details&&ze&&st===zt)return;this.log("Switching to level ".concat(H).concat(zt?" with Pathway "+zt:""," from level ").concat(Te).concat(st?" with Pathway "+st:""));var Tr=E({},ct,{level:H,maxBitrate:ct.maxBitrate,attrs:ct.attrs,uri:ct.uri,urlId:ct.urlId});delete Tr._attrs,delete Tr._urlId,this.hls.trigger(w.LEVEL_SWITCHING,Tr);var br=ct.details;if(!br||br.live){var Kr=this.switchParams(ct.uri,ze==null?void 0:ze.details);this.loadPlaylist(Kr)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(H){this.manualLevelIndex=H,this._startLevel===void 0&&(this._startLevel=H),H!==-1&&(this.level=H)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(H){this._firstLevel=H}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var H=this.hls.config.startLevel;return H!==void 0?H:this._firstLevel}else return this._startLevel},set:function(H){this._startLevel=H}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===wt.LEVEL&&Z.context.level===this.level&&this.checkRetry(Z)}},{key:"onFragLoaded",value:function(H,Z){var ne=Z.frag;if(ne!==void 0&&ne.type===ft.MAIN){var Ae=this._levels[ne.level];Ae!==void 0&&(Ae.loadError=0)}}},{key:"onLevelLoaded",value:function(H,Z){var ne,Ae=Z.level,Te=Z.details,ze=this._levels[Ae];if(!ze){var st;this.warn("Invalid level index ".concat(Ae)),(st=Z.deliveryDirectives)!=null&&st.skip&&(Te.deltaUpdateFailed=!0);return}Ae===this.currentLevelIndex?(ze.fragmentError===0&&(ze.loadError=0),this.playlistLoaded(Ae,Z,ze.details)):(ne=Z.deliveryDirectives)!=null&&ne.skip&&(Te.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=this.currentLevel;if(!ne)return;var Ae=this.hls.audioTracks[Z.id].groupId;if(ne.audioGroupIds&&ne.audioGroupId!==Ae){for(var Te=-1,ze=0;ze<ne.audioGroupIds.length;ze++)if(ne.audioGroupIds[ze]===Ae){Te=ze;break}Te!==-1&&Te!==ne.urlId&&(ne.urlId=Te,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.currentLevelIndex,ne=this.currentLevel;if(ne&&this.shouldLoadPlaylist(ne)){var Ae=ne.urlId,Te=ne.uri;if(H)try{Te=H.addDirectives(Te)}catch(st){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(st))}var ze=ne.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(Z).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(ze?" Pathway "+ze:""," URI ").concat(Ae+1,"/").concat(ne.url.length," ").concat(Te)),this.clearTimer(),this.hls.trigger(w.LEVEL_LOADING,{url:Te,level:Z,id:Ae,deliveryDirectives:H||null})}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(H){this.level=H,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=H)}},{key:"removeLevel",value:function(H,Z){var ne=this,Ae=function(st,ct){return ct!==Z},Te=this._levels.filter(function(ze,st){return st!==H?!0:ze.url.length>1&&Z!==void 0?(ze.url=ze.url.filter(Ae),ze.audioGroupIds&&(ze.audioGroupIds=ze.audioGroupIds.filter(Ae)),ze.textGroupIds&&(ze.textGroupIds=ze.textGroupIds.filter(Ae)),ze.urlId=0,!0):(ne.steering&&ne.steering.removeLevel(ze),!1)});this.hls.trigger(w.LEVELS_UPDATED,{levels:Te})}},{key:"onLevelsUpdated",value:function(H,Z){var ne=Z.levels;ne.forEach(function(Ae,Te){var ze=Ae.details;ze!=null&&ze.fragments&&ze.fragments.forEach(function(st){st.level=Te})}),this._levels=ne}}]),L}(ur);function sn(ve,te,L){if(!L)return;te==="audio"?(ve.audioGroupIds||(ve.audioGroupIds=[]),ve.audioGroupIds[ve.url.length-1]=L):te==="text"&&(ve.textGroupIds||(ve.textGroupIds=[]),ve.textGroupIds[ve.url.length-1]=L)}function Rn(ve){var te={};ve.forEach(function(L){var K=L.groupId||"";L.id=te[K]=te[K]||0,te[K]++})}var xt={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},_r=function(){function ve(te){Object(r.a)(this,ve),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=te,this._registerListeners()}return Object(s.a)(ve,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(w.BUFFER_APPENDED,this.onBufferAppended,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(w.BUFFER_APPENDED,this.onBufferAppended,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(L,K){var H=this.activePartLists[K];if(H)for(var Z=H.length;Z--;){var ne=H[Z];if(!ne)break;var Ae=ne.end;if(ne.start<=L&&Ae!==null&&L<=Ae)return ne}return this.getBufferedFrag(L,K)}},{key:"getBufferedFrag",value:function(L,K){for(var H=this.fragments,Z=Object.keys(H),ne=Z.length;ne--;){var Ae=H[Z[ne]];if((Ae==null?void 0:Ae.body.type)===K&&Ae.buffered){var Te=Ae.body;if(Te.start<=L&&L<=Te.end)return Te}}return null}},{key:"detectEvictedFragments",value:function(L,K,H,Z){var ne=this;this.timeRanges&&(this.timeRanges[L]=K);var Ae=(Z==null?void 0:Z.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(Te){var ze=ne.fragments[Te];if(!ze)return;if(Ae>=ze.body.sn)return;if(!ze.buffered&&!ze.loaded){ze.body.type===H&&ne.removeFragment(ze.body);return}var st=ze.range[L];if(!st)return;st.time.some(function(ct){var zt=!ne.isTimeBuffered(ct.startPTS,ct.endPTS,K);return zt&&ne.removeFragment(ze.body),zt})})}},{key:"detectPartialFragments",value:function(L){var K=this,H=this.timeRanges,Z=L.frag,ne=L.part;if(!H||Z.sn==="initSegment")return;var Ae=en(Z),Te=this.fragments[Ae];if(!Te)return;var ze=!Z.relurl;Object.keys(H).forEach(function(st){var ct=Z.elementaryStreams[st];if(!ct)return;var zt=H[st],Tr=ze||ct.partial===!0;Te.range[st]=K.getBufferedTimes(Z,ne,Tr,zt)}),Te.loaded=null,Object.keys(Te.range).length?(Te.buffered=!0,Te.body.endList&&(this.endListFragments[Te.body.type]=Te),Or(Te)||this.removeParts(Z.sn-1,Z.type)):this.removeFragment(Te.body)}},{key:"removeParts",value:function(L,K){var H=this.activePartLists[K];if(!H)return;this.activePartLists[K]=H.filter(function(Z){return Z.fragment.sn>=L})}},{key:"fragBuffered",value:function(L,K){var H=en(L),Z=this.fragments[H];!Z&&K&&(Z=this.fragments[H]={body:L,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},L.gap&&(this.hasGaps=!0)),Z&&(Z.loaded=null,Z.buffered=!0)}},{key:"getBufferedTimes",value:function(L,K,H,Z){for(var ne={time:[],partial:H},Ae=L.start,Te=L.end,ze=L.minEndPTS||Te,st=L.maxStartPTS||Ae,ct=0;ct<Z.length;ct++){var zt=Z.start(ct)-this.bufferPadding,Tr=Z.end(ct)+this.bufferPadding;if(st>=zt&&ze<=Tr){ne.time.push({startPTS:Math.max(Ae,Z.start(ct)),endPTS:Math.min(Te,Z.end(ct))});break}else if(Ae<Tr&&Te>zt)ne.partial=!0,ne.time.push({startPTS:Math.max(Ae,Z.start(ct)),endPTS:Math.min(Te,Z.end(ct))});else if(Te<=zt)break}return ne}},{key:"getPartialFragment",value:function(L){var K=null,H,Z,ne,Ae=0,Te=this.bufferPadding,ze=this.fragments;return Object.keys(ze).forEach(function(st){var ct=ze[st];if(!ct)return;Or(ct)&&(Z=ct.body.start-Te,ne=ct.body.end+Te,L>=Z&&L<=ne&&(H=Math.min(L-Z,ne-L),Ae<=H&&(K=ct.body,Ae=H)))}),K}},{key:"isEndListAppended",value:function(L){var K=this.endListFragments[L];return K!==void 0&&(K.buffered||Or(K))}},{key:"getState",value:function(L){var K=en(L),H=this.fragments[K];return H?H.buffered?Or(H)?xt.PARTIAL:xt.OK:xt.APPENDING:xt.NOT_LOADED}},{key:"isTimeBuffered",value:function(L,K,H){for(var Z,ne,Ae=0;Ae<H.length;Ae++){if(Z=H.start(Ae)-this.bufferPadding,ne=H.end(Ae)+this.bufferPadding,L>=Z&&K<=ne)return!0;if(K<=Z)return!1}return!1}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,Z=K.part;if(H.sn==="initSegment"||H.bitrateTest)return;var ne=Z?null:K,Ae=en(H);this.fragments[Ae]={body:H,appendedPTS:null,loaded:ne,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(L,K){var H=this,Z=K.frag,ne=K.part,Ae=K.timeRanges;if(Z.sn==="initSegment")return;var Te=Z.type;if(ne){var ze=this.activePartLists[Te];ze||(this.activePartLists[Te]=ze=[]),ze.push(ne)}this.timeRanges=Ae,Object.keys(Ae).forEach(function(st){var ct=Ae[st];H.detectEvictedFragments(st,ct,Te,ne)})}},{key:"onFragBuffered",value:function(L,K){this.detectPartialFragments(K)}},{key:"hasFragment",value:function(L){var K=en(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,H,Z,ne){var Ae=this;if(Z&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(Te){var ze=Ae.fragments[Te];if(!ze)return;var st=ze.body;if(st.type!==H||Z&&!st.gap)return;st.start<K&&st.end>L&&(ze.buffered||ne)&&Ae.removeFragment(st)})}},{key:"removeFragment",value:function(L){var K=en(L);L.stats.loaded=0,L.clearElementaryStreamInfo();var H=this.activePartLists[L.type];if(H){var Z=L.sn;this.activePartLists[L.type]=H.filter(function(ne){return ne.fragment.sn!==Z})}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}}]),ve}();function Or(ve){var te,L,K;return ve.buffered&&(ve.body.gap||((te=ve.range.video)==null?void 0:te.partial)||((L=ve.range.audio)==null?void 0:L.partial)||((K=ve.range.audiovideo)==null?void 0:K.partial))}function en(ve){return"".concat(ve.type,"_").concat(ve.level,"_").concat(ve.urlId,"_").concat(ve.sn)}var wn=Math.pow(2,17),_n=function(){function ve(te){Object(r.a)(this,ve),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=te}return Object(s.a)(ve,[{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 H=this,Z=L.url;if(!Z)return Promise.reject(new Un({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(Z?"part list":"url")),networkDetails:null}));this.abort();var ne=this.config,Ae=ne.fLoader,Te=ne.loader;return new Promise(function(ze,st){if(H.loader&&H.loader.destroy(),L.gap){st(Jn(L));return}var ct=H.loader=L.loader=Ae?new Ae(ne):new Te(ne),zt=yn(L),Tr=Li(ne.fragLoadPolicy.default),br={loadPolicy:Tr,timeout:Tr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:wn};L.stats=ct.stats,ct.load(zt,br,{onSuccess:function(zr,Nn,Mn,Yn){H.resetLoader(L,ct);var bi=zr.data;Mn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(bi.slice(0,16)),bi=bi.slice(16)),ze({frag:L,part:null,payload:bi,networkDetails:Yn})},onError:function(zr,Nn,Mn,Yn){H.resetLoader(L,ct),st(new Un({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:Z,data:void 0},zr),error:new Error("HTTP Error ".concat(zr.code," ").concat(zr.text)),networkDetails:Mn,stats:Yn}))},onAbort:function(zr,Nn,Mn){H.resetLoader(L,ct),st(new Un({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:Mn,stats:zr}))},onTimeout:function(zr,Nn,Mn){H.resetLoader(L,ct),st(new Un({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(br.timeout,"ms")),networkDetails:Mn,stats:zr}))},onProgress:function(zr,Nn,Mn,Yn){K&&K({frag:L,part:null,payload:Mn,networkDetails:Yn})}})})}},{key:"loadPart",value:function(L,K,H){var Z=this;this.abort();var ne=this.config,Ae=ne.fLoader,Te=ne.loader;return new Promise(function(ze,st){if(Z.loader&&Z.loader.destroy(),L.gap||K.gap){st(Jn(L,K));return}var ct=Z.loader=L.loader=Ae?new Ae(ne):new Te(ne),zt=yn(L,K),Tr=Li(ne.fragLoadPolicy.default),br={loadPolicy:Tr,timeout:Tr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:wn};K.stats=ct.stats,ct.load(zt,br,{onSuccess:function(zr,Nn,Mn,Yn){Z.resetLoader(L,ct),Z.updateStatsFromPart(L,K);var bi={frag:L,part:K,payload:zr.data,networkDetails:Yn};H(bi),ze(bi)},onError:function(zr,Nn,Mn,Yn){Z.resetLoader(L,ct),st(new Un({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:K,response:b({url:zt.url,data:void 0},zr),error:new Error("HTTP Error ".concat(zr.code," ").concat(zr.text)),networkDetails:Mn,stats:Yn}))},onAbort:function(zr,Nn,Mn){L.stats.aborted=K.stats.aborted,Z.resetLoader(L,ct),st(new Un({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:L,part:K,error:new Error("Aborted"),networkDetails:Mn,stats:zr}))},onTimeout:function(zr,Nn,Mn){Z.resetLoader(L,ct),st(new Un({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:K,error:new Error("Timeout after ".concat(br.timeout,"ms")),networkDetails:Mn,stats:zr}))}})})}},{key:"updateStatsFromPart",value:function(L,K){var H=L.stats,Z=K.stats,ne=Z.total;if(H.loaded+=Z.loaded,ne){var Ae=Math.round(L.duration/K.duration),Te=Math.min(Math.round(H.loaded/ne),Ae),ze=Ae-Te,st=ze*Math.round(H.loaded/Te);H.total=H.loaded+st}else H.total=Math.max(H.loaded,H.total);var ct=H.loading,zt=Z.loading;ct.start?ct.first+=zt.first-zt.start:(ct.start=zt.start,ct.first=zt.first),ct.end=zt.end}},{key:"resetLoader",value:function(L,K){L.loader=null,this.loader===K&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),K.destroy()}}]),ve}();function yn(ve){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=te||ve,K={frag:ve,part:te,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},H=L.byteRangeStartOffset,Z=L.byteRangeEndOffset;if(T(H)&&T(Z)){var ne,Ae=H,Te=Z;if(ve.sn==="initSegment"&&((ne=ve.decryptdata)==null?void 0:ne.method)==="AES-128"){var ze=Z-H;ze%16&&(Te=Z+(16-ze%16)),H!==0&&(K.resetIV=!0,Ae=H-16)}K.rangeStart=Ae,K.rangeEnd=Te}return K}function Jn(ve,te){var L=new Error("GAP ".concat(ve.gap?"tag":"attribute"," found")),K={type:O.MEDIA_ERROR,details:I.FRAG_GAP,fatal:!1,frag:ve,error:L,networkDetails:null};return te&&(K.part=te),(te||ve).stats.aborted=!0,new Un(K)}var Un=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=te.call(this,K.error.message),H.data=void 0,H.data=K,H}return Object(s.a)(L)}(i(Error)),pi=function(){function ve(te){Object(r.a)(this,ve),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=te}return Object(s.a)(ve,[{key:"abort",value:function(L){for(var K in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[K].loader;if(H){if(L&&L!==H.context.frag.type)return;H.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]:I.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,Z=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0;return new Un({type:O.NETWORK_ERROR,details:K,fatal:!1,frag:L,response:ne,error:H,networkDetails:Z})}},{key:"loadClear",value:function(L,K){var H=this;if(this.emeController&&this.config.emeEnabled)for(var Z=L.sn,ne=L.cc,Ae=function(){var ct=K[Te];if(ne<=ct.cc&&(Z==="initSegment"||ct.sn==="initSegment"||Z<ct.sn))return H.emeController.selectKeySystemFormat(ct).then(function(zt){ct.setKeyFormat(zt)}),"break"},Te=0;Te<K.length;Te++){var ze=Ae();if(ze==="break")break}}},{key:"load",value:function(L){var K=this;return!L.decryptdata&&L.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(L).then(function(H){return K.loadInternal(L,H)}):this.loadInternal(L)}},{key:"loadInternal",value:function(L,K){var H,Z;K&&L.setKeyFormat(K);var ne=L.decryptdata;if(!ne){var Ae=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,I.KEY_LOAD_ERROR,Ae))}var Te=ne.uri;if(!Te)return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(Te,'"'))));var ze=this.keyUriToKeyInfo[Te];if((H=ze)!=null&&H.decryptdata.key)return ne.key=ze.decryptdata.key,Promise.resolve({frag:L,keyInfo:ze});if((Z=ze)!=null&&Z.keyLoadPromise){var st;switch((st=ze.mediaKeySessionContext)==null?void 0:st.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return ze.keyLoadPromise.then(function(ct){return ne.key=ct.keyInfo.decryptdata.key,{frag:L,keyInfo:ze}})}}ze=this.keyUriToKeyInfo[Te]={decryptdata:ne,keyLoadPromise:null,loader:null,mediaKeySessionContext:null};switch(ne.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return ne.keyFormat==="identity"?this.loadKeyHTTP(ze,L):this.loadKeyEME(ze,L);case"AES-128":return this.loadKeyHTTP(ze,L);default:return Promise.reject(this.createKeyLoadError(L,I.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(ne.method,'"'))))}}},{key:"loadKeyEME",value:function(L,K){var H={frag:K,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var Z=this.emeController.loadKey(H);if(Z)return(L.keyLoadPromise=Z.then(function(ne){return L.mediaKeySessionContext=ne,H})).catch(function(ne){throw L.keyLoadPromise=null,ne})}return Promise.resolve(H)}},{key:"loadKeyHTTP",value:function(L,K){var H=this,Z=this.config,ne=Z.loader,Ae=new ne(Z);return K.keyLoader=L.loader=Ae,L.keyLoadPromise=new Promise(function(Te,ze){var st={keyInfo:L,frag:K,responseType:"arraybuffer",url:L.decryptdata.uri},ct=Z.keyLoadPolicy.default,zt={loadPolicy:ct,timeout:ct.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Tr={onSuccess:function(Kr,zr,Nn,Mn){var Yn=Nn.frag,bi=Nn.keyInfo,ua=Nn.url;if(!Yn.decryptdata||bi!==H.keyUriToKeyInfo[ua])return ze(H.createKeyLoadError(Yn,I.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Mn));bi.decryptdata.key=Yn.decryptdata.key=new Uint8Array(Kr.data),Yn.keyLoader=null,bi.loader=null,Te({frag:Yn,keyInfo:bi})},onError:function(Kr,zr,Nn,Mn){H.resetLoader(zr),ze(H.createKeyLoadError(K,I.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(Kr.code," loading key ").concat(Kr.text)),Nn,b({url:st.url,data:void 0},Kr)))},onTimeout:function(Kr,zr,Nn){H.resetLoader(zr),ze(H.createKeyLoadError(K,I.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Nn))},onAbort:function(Kr,zr,Nn){H.resetLoader(zr),ze(H.createKeyLoadError(K,I.INTERNAL_ABORTED,new Error("key loading aborted"),Nn))}};Ae.load(st,zt,Tr)})}},{key:"resetLoader",value:function(L){var K=L.frag,H=L.keyInfo,Z=L.url,ne=H.loader;K.keyLoader===ne&&(K.keyLoader=null,H.loader=null),delete this.keyUriToKeyInfo[Z],ne&&ne.destroy()}}]),ve}(),ki=function(){function ve(){Object(r.a)(this,ve),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(s.a)(ve,[{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(){}}]),ve}(),yi={length:0,start:function(){return 0},end:function(){return 0}},_i=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"isBuffered",value:function(L,K){try{if(L){for(var H=ve.getBuffered(L),Z=0;Z<H.length;Z++)if(K>=H.start(Z)&&K<=H.end(Z))return!0}}catch(ne){}return!1}},{key:"bufferInfo",value:function(L,K,H){try{if(L){var Z=ve.getBuffered(L),ne=[],Ae;for(Ae=0;Ae<Z.length;Ae++)ne.push({start:Z.start(Ae),end:Z.end(Ae)});return this.bufferedInfo(ne,K,H)}}catch(Te){}return{len:0,start:K,end:K,nextStart:void 0}}},{key:"bufferedInfo",value:function(L,K,H){K=Math.max(0,K),L.sort(function(zr,Nn){var Mn=zr.start-Nn.start;return Mn||Nn.end-zr.end});var Z=[];if(H)for(var ne=0;ne<L.length;ne++){var Ae=Z.length;if(Ae){var Te=Z[Ae-1].end;L[ne].start-Te<H?L[ne].end>Te&&(Z[Ae-1].end=L[ne].end):Z.push(L[ne])}else Z.push(L[ne])}else Z=L;for(var ze=0,st,ct=K,zt=K,Tr=0;Tr<Z.length;Tr++){var br=Z[Tr].start,Kr=Z[Tr].end;if(K+H>=br&&K<Kr)ct=br,zt=Kr,ze=zt-K;else if(K+H<br){st=br;break}}return{len:ze,start:ct||0,end:zt||0,nextStart:st}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(K){return j.log("failed to get media.buffered",K),yi}}}]),ve}(),Ki=Object(s.a)(function ve(te,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,ne=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(r.a)(this,ve),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=qi(),this.buffering={audio:qi(),video:qi(),audiovideo:qi()},this.level=te,this.sn=L,this.id=K,this.size=H,this.part=Z,this.partial=ne});function qi(){return{start:0,executeStart:0,executeEnd:0,end:0}}function zi(ve,te){for(var L=null,K=0,H=ve.length;K<H;K++){var Z=ve[K];if(Z&&Z.cc===te){L=Z;break}}return L}function Hi(ve,te,L){return!!(te.details&&(L.endCC>L.startCC||ve&&ve.cc<L.startCC))}function Ui(ve,te){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=ve.fragments,H=te.fragments;if(!H.length||!K.length){j.log("No fragments to align");return}var Z=zi(K,H[0].cc);if(!Z||Z&&!Z.startPTS){j.log("No frag in previous level to align on");return}return Z}function Qi(ve,te){if(ve){var L=ve.start+te;ve.start=ve.startPTS=L,ve.endPTS=L+ve.duration}}function ca(ve,te){for(var L=te.fragments,K=0,H=L.length;K<H;K++)Qi(L[K],ve);te.fragmentHint&&Qi(te.fragmentHint,ve),te.alignedSliding=!0}function Ca(ve,te,L){if(!te)return;ra(ve,L,te),!L.alignedSliding&&te.details&&Ma(L,te.details),!L.alignedSliding&&te.details&&!L.skippedSegments&&ui(te.details,L)}function ra(ve,te,L){if(Hi(ve,L,te)){var K=Ui(L.details,te);K&&T(K.start)&&(j.log("Adjusting PTS using last level due to CC increase within current level ".concat(te.url)),ca(K.start,te))}}function Ma(ve,te){if(!te.fragments.length||!ve.hasProgramDateTime||!te.hasProgramDateTime)return;var L=te.fragments[0].programDateTime,K=ve.fragments[0].programDateTime,H=(K-L)/1e3+te.fragments[0].start;H&&T(H)&&(j.log("Adjusting PTS using programDateTime delta ".concat(K-L,"ms, sliding:").concat(H.toFixed(3)," ").concat(ve.url," ")),ca(H,ve))}function La(ve,te){if(!ve.hasProgramDateTime||!te.hasProgramDateTime)return;var L=ve.fragments,K=te.fragments;if(!L.length||!K.length)return;var H=Math.round(K.length/2)-1,Z=K[H],ne=zi(L,Z.cc)||L[Math.round(L.length/2)-1],Ae=Z.programDateTime,Te=ne.programDateTime;if(Ae===null||Te===null)return;var ze=(Te-Ae)/1e3-(ne.start-Z.start);ca(ze,ve)}var va=function(){function ve(te,L){Object(r.a)(this,ve),this.subtle=void 0,this.aesIV=void 0,this.subtle=te,this.aesIV=L}return Object(s.a)(ve,[{key:"decrypt",value:function(L,K){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},K,L)}}]),ve}(),ga=function(){function ve(te,L){Object(r.a)(this,ve),this.subtle=void 0,this.key=void 0,this.subtle=te,this.key=L}return Object(s.a)(ve,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),ve}();function Oa(ve){var te=ve.byteLength,L=te&&new DataView(ve.buffer).getUint8(te-1);return L?Fe(ve,0,te-L):ve}var Aa=function(){function ve(){Object(r.a)(this,ve),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)(ve,[{key:"uint8ArrayToUint32Array_",value:function(L){for(var K=new DataView(L),H=new Uint32Array(4),Z=0;Z<4;Z++)H[Z]=K.getUint32(Z*4);return H}},{key:"initTable",value:function(){var L=this.sBox,K=this.invSBox,H=this.subMix,Z=H[0],ne=H[1],Ae=H[2],Te=H[3],ze=this.invSubMix,st=ze[0],ct=ze[1],zt=ze[2],Tr=ze[3],br=new Uint32Array(256),Kr=0,zr=0,Nn=0;for(Nn=0;Nn<256;Nn++)Nn<128?br[Nn]=Nn<<1:br[Nn]=Nn<<1^283;for(Nn=0;Nn<256;Nn++){var Mn=zr^zr<<1^zr<<2^zr<<3^zr<<4;Mn=Mn>>>8^Mn&255^99,L[Kr]=Mn,K[Mn]=Kr;var Yn=br[Kr],bi=br[Yn],ua=br[bi],Yi=br[Mn]*257^Mn*16843008;Z[Kr]=Yi<<24|Yi>>>8,ne[Kr]=Yi<<16|Yi>>>16,Ae[Kr]=Yi<<8|Yi>>>24,Te[Kr]=Yi,Yi=ua*16843009^bi*65537^Yn*257^Kr*16843008,st[Mn]=Yi<<24|Yi>>>8,ct[Mn]=Yi<<16|Yi>>>16,zt[Mn]=Yi<<8|Yi>>>24,Tr[Mn]=Yi,Kr?(Kr=Yn^br[br[br[ua^Yn]]],zr^=br[br[zr]]):Kr=zr=1}}},{key:"expandKey",value:function(L){for(var K=this.uint8ArrayToUint32Array_(L),H=!0,Z=0;Z<K.length&&H;)H=K[Z]===this.key[Z],Z++;if(H)return;this.key=K;var ne=this.keySize=K.length;if(ne!==4&&ne!==6&&ne!==8)throw new Error("Invalid aes key size="+ne);var Ae=this.ksRows=(ne+6+1)*4,Te,ze,st=this.keySchedule=new Uint32Array(Ae),ct=this.invKeySchedule=new Uint32Array(Ae),zt=this.sBox,Tr=this.rcon,br=this.invSubMix,Kr=br[0],zr=br[1],Nn=br[2],Mn=br[3],Yn,bi;for(Te=0;Te<Ae;Te++){if(Te<ne){Yn=st[Te]=K[Te];continue}bi=Yn,Te%ne===0?(bi=bi<<8|bi>>>24,bi=zt[bi>>>24]<<24|zt[bi>>>16&255]<<16|zt[bi>>>8&255]<<8|zt[bi&255],bi^=Tr[Te/ne|0]<<24):ne>6&&Te%ne===4&&(bi=zt[bi>>>24]<<24|zt[bi>>>16&255]<<16|zt[bi>>>8&255]<<8|zt[bi&255]),st[Te]=Yn=(st[Te-ne]^bi)>>>0}for(ze=0;ze<Ae;ze++)Te=Ae-ze,ze&3?bi=st[Te]:bi=st[Te-4],ze<4||Te<=4?ct[ze]=bi:ct[ze]=Kr[zt[bi>>>24]]^zr[zt[bi>>>16&255]]^Nn[zt[bi>>>8&255]]^Mn[zt[bi&255]],ct[ze]=ct[ze]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,K,H){for(var Z=this.keySize+6,ne=this.invKeySchedule,Ae=this.invSBox,Te=this.invSubMix,ze=Te[0],st=Te[1],ct=Te[2],zt=Te[3],Tr=this.uint8ArrayToUint32Array_(H),br=Tr[0],Kr=Tr[1],zr=Tr[2],Nn=Tr[3],Mn=new Int32Array(L),Yn=new Int32Array(Mn.length),bi,ua,Yi,ta,Pa,Ya,Ba,Sa,Go,Ls,ys,bs,Fs,ws,Ws=this.networkToHostOrderSwap;K<Mn.length;){for(Go=Ws(Mn[K]),Ls=Ws(Mn[K+1]),ys=Ws(Mn[K+2]),bs=Ws(Mn[K+3]),Pa=Go^ne[0],Ya=bs^ne[1],Ba=ys^ne[2],Sa=Ls^ne[3],Fs=4,ws=1;ws<Z;ws++)bi=ze[Pa>>>24]^st[Ya>>16&255]^ct[Ba>>8&255]^zt[Sa&255]^ne[Fs],ua=ze[Ya>>>24]^st[Ba>>16&255]^ct[Sa>>8&255]^zt[Pa&255]^ne[Fs+1],Yi=ze[Ba>>>24]^st[Sa>>16&255]^ct[Pa>>8&255]^zt[Ya&255]^ne[Fs+2],ta=ze[Sa>>>24]^st[Pa>>16&255]^ct[Ya>>8&255]^zt[Ba&255]^ne[Fs+3],Pa=bi,Ya=ua,Ba=Yi,Sa=ta,Fs=Fs+4;bi=Ae[Pa>>>24]<<24^Ae[Ya>>16&255]<<16^Ae[Ba>>8&255]<<8^Ae[Sa&255]^ne[Fs],ua=Ae[Ya>>>24]<<24^Ae[Ba>>16&255]<<16^Ae[Sa>>8&255]<<8^Ae[Pa&255]^ne[Fs+1],Yi=Ae[Ba>>>24]<<24^Ae[Sa>>16&255]<<16^Ae[Pa>>8&255]<<8^Ae[Ya&255]^ne[Fs+2],ta=Ae[Sa>>>24]<<24^Ae[Pa>>16&255]<<16^Ae[Ya>>8&255]<<8^Ae[Ba&255]^ne[Fs+3],Yn[K]=Ws(bi^br),Yn[K+1]=Ws(ta^Kr),Yn[K+2]=Ws(Yi^zr),Yn[K+3]=Ws(ua^Nn),br=Go,Kr=Ls,zr=ys,Nn=bs,K=K+4}return Yn.buffer}}]),ve}(),Ga=16,_a=function(){function ve(te){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=L.removePKCS7Padding,H=K===void 0?!0:K;if(Object(r.a)(this,ve),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=te.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var Z=self.crypto;Z&&(this.subtle=Z.subtle||Z.webkitSubtle)}catch(ne){}this.subtle===null&&(this.useSoftware=!0)}return Object(s.a)(ve,[{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 H=new Uint8Array(L);return this.reset(),this.removePKCS7Padding?Oa(H):H}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(L,K,H){var Z=this;return this.useSoftware?new Promise(function(ne,Ae){Z.softwareDecrypt(new Uint8Array(L),K,H);var Te=Z.flush();Te?ne(Te.buffer):Ae(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(L),K,H)}},{key:"softwareDecrypt",value:function(L,K,H){var Z=this.currentIV,ne=this.currentResult,Ae=this.remainderData;this.logOnce("JS AES decrypt"),Ae&&(L=Nt(Ae,L),this.remainderData=null);var Te=this.getValidChunk(L);if(!Te.length)return null;Z&&(H=Z);var ze=this.softwareDecrypter;ze||(ze=this.softwareDecrypter=new Aa),ze.expandKey(K);var st=ne;return this.currentResult=ze.decrypt(Te.buffer,0,H),this.currentIV=Fe(Te,-16).buffer,st||null}},{key:"webCryptoDecrypt",value:function(L,K,H){var Z=this,ne=this.subtle;return(this.key!==K||!this.fastAesKey)&&(this.key=K,this.fastAesKey=new ga(ne,K)),this.fastAesKey.expandKey().then(function(Ae){if(!ne)return Promise.reject(new Error("web crypto not initialized"));Z.logOnce("WebCrypto AES decrypt");var Te=new va(ne,new Uint8Array(H));return Te.decrypt(L.buffer,Ae)}).catch(function(Ae){return j.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(Ae.name,": ").concat(Ae.message)),Z.onWebCryptoError(L,K,H)})}},{key:"onWebCryptoError",value:function(L,K,H){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(L,K,H);var Z=this.flush();if(Z)return Z.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(L){var K=L,H=L.length-L.length%Ga;return H!==L.length&&(K=Fe(L,0,H),this.remainderData=Fe(L,H)),K}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;j.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),ve}(),Va={toString:function(te){for(var L="",K=te.length,H=0;H<K;H++)L+="[".concat(te.start(H).toFixed(3),"-").concat(te.end(H).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"},io=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H,Z,ne,Ae){var Te;return Object(r.a)(this,L),Te=te.call(this),Te.hls=void 0,Te.fragPrevious=null,Te.fragCurrent=null,Te.fragmentTracker=void 0,Te.transmuxer=null,Te._state=Bi.STOPPED,Te.playlistType=void 0,Te.media=null,Te.mediaBuffer=null,Te.config=void 0,Te.bitrateTest=!1,Te.lastCurrentTime=0,Te.nextLoadPosition=0,Te.startPosition=0,Te.startTimeOffset=null,Te.loadedmetadata=!1,Te.retryDate=0,Te.levels=null,Te.fragmentLoader=void 0,Te.keyLoader=void 0,Te.levelLastLoaded=null,Te.startFragRequested=!1,Te.decrypter=void 0,Te.initPTS=[],Te.onvseeking=null,Te.onvended=null,Te.logPrefix="",Te.log=void 0,Te.warn=void 0,Te.playlistType=Ae,Te.logPrefix=ne,Te.log=j.log.bind(j,"".concat(ne,":")),Te.warn=j.warn.bind(j,"".concat(ne,":")),Te.hls=K,Te.fragmentLoader=new _n(K.config),Te.keyLoader=Z,Te.fragmentTracker=H,Te.config=K.config,Te.decrypter=new _a(K.config),K.on(w.MANIFEST_LOADED,Te.onManifestLoaded,Object(A.a)(Te)),Te}return Object(s.a)(L,[{key:"doTick",value:function(){this.onTickEnd()}},{key:"onTickEnd",value:function(){}},{key:"startLoad",value:function(H){}},{key:"stopLoad",value:function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var H=this.fragCurrent;H!=null&&H.loader&&(H.abortRequests(),this.fragmentTracker.removeFragment(H)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Bi.STOPPED}},{key:"_streamEnded",value:function(H,Z){if(Z.live||H.nextStart||!H.end||!this.media)return!1;var ne=Z.partList;if(ne!=null&&ne.length){var Ae=ne[ne.length-1],Te=_i.isBuffered(this.media,Ae.start+Ae.duration/2);return Te}var ze=Z.fragments[Z.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(ze)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var H;return(H=this.levels[this.levelLastLoaded])==null?void 0:H.details}}},{key:"onMediaAttached",value:function(H,Z){var ne=this.media=this.mediaBuffer=Z.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),ne.addEventListener("seeking",this.onvseeking),ne.addEventListener("ended",this.onvended);var Ae=this.config;this.levels&&Ae.autoStartLoad&&this.state===Bi.STOPPED&&this.startLoad(Ae.startPosition)}},{key:"onMediaDetaching",value:function(){var H=this.media;H!=null&&H.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),H&&this.onvseeking&&this.onvended&&(H.removeEventListener("seeking",this.onvseeking),H.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},{key:"onMediaSeeking",value:function(){var H=this.config,Z=this.fragCurrent,ne=this.media,Ae=this.mediaBuffer,Te=this.state,ze=ne?ne.currentTime:0,st=_i.bufferInfo(Ae||ne,ze,H.maxBufferHole);if(this.log("media seeking to ".concat(T(ze)?ze.toFixed(3):ze,", state: ").concat(Te)),this.state===Bi.ENDED)this.resetLoadingState();else if(Z){var ct=H.maxFragLookUpTolerance,zt=Z.start-ct,Tr=Z.start+Z.duration+ct;if(!st.len||Tr<st.start||zt>st.end){var br=ze>Tr;(ze<zt||br)&&(br&&Z.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),Z.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}ne&&(this.fragmentTracker.removeFragmentsInRange(ze,Infinity,this.playlistType,!0),this.lastCurrentTime=ze),!this.loadedmetadata&&!st.len&&(this.nextLoadPosition=this.startPosition=ze),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,Z){this.startTimeOffset=Z.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(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(H,Z,ne){this._loadFragForPlayback(H,Z,ne)}},{key:"_loadFragForPlayback",value:function(H,Z,ne){var Ae=this,Te=function(st){if(Ae.fragContextChanged(H)){Ae.warn("Fragment ".concat(H.sn).concat(st.part?" p: "+st.part.index:""," of level ").concat(H.level," was dropped during download.")),Ae.fragmentTracker.removeFragment(H);return}H.stats.chunkCount++,Ae._handleFragmentLoadProgress(st)};this._doFragLoad(H,Z,ne,Te).then(function(ze){if(!ze)return;var st=Ae.state;if(Ae.fragContextChanged(H)){(st===Bi.FRAG_LOADING||!Ae.fragCurrent&&st===Bi.PARSING)&&(Ae.fragmentTracker.removeFragment(H),Ae.state=Bi.IDLE);return}"payload"in ze&&(Ae.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),Ae.hls.trigger(w.FRAG_LOADED,ze)),Ae._handleFragmentLoadComplete(ze)}).catch(function(ze){if(Ae.state===Bi.STOPPED||Ae.state===Bi.ERROR)return;Ae.warn(ze),Ae.resetFragmentLoading(H)})}},{key:"clearTrackerIfNeeded",value:function(H){var Z,ne=this.fragmentTracker,Ae=ne.getState(H);if(Ae===xt.APPENDING){var Te=H.type,ze=this.getFwdBufferInfo(this.mediaBuffer,Te),st=Math.max(H.duration,ze?ze.len:this.config.maxBufferLength);this.reduceMaxBufferLength(st)&&ne.removeFragment(H)}else((Z=this.mediaBuffer)==null?void 0:Z.buffered.length)===0?ne.removeAllFragments():ne.hasParts(H.type)&&(ne.detectPartialFragments({frag:H,part:null,stats:H.stats,id:H.type}),ne.getState(H)===xt.PARTIAL&&ne.removeFragment(H))}},{key:"flushMainBuffer",value:function(H,Z){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(H-Z))return;var Ae={startOffset:H,endOffset:Z,type:ne};this.hls.trigger(w.BUFFER_FLUSHING,Ae)}},{key:"_loadInitSegment",value:function(H,Z){var ne=this;this._doFragLoad(H,Z).then(function(Ae){if(!Ae||ne.fragContextChanged(H)||!ne.levels)throw new Error("init load aborted");return Ae}).then(function(Ae){var Te=ne.hls,ze=Ae.payload,st=H.decryptdata;if(ze&&ze.byteLength>0&&st&&st.key&&st.iv&&st.method==="AES-128"){var ct=self.performance.now();return ne.decrypter.decrypt(new Uint8Array(ze),st.key.buffer,st.iv.buffer).catch(function(zt){throw Te.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:zt,reason:zt.message,frag:H}),zt}).then(function(zt){var Tr=self.performance.now();return Te.trigger(w.FRAG_DECRYPTED,{frag:H,payload:zt,stats:{tstart:ct,tdecrypt:Tr}}),Ae.payload=zt,Ae})}return Ae}).then(function(Ae){var Te=ne.fragCurrent,ze=ne.hls,st=ne.levels;if(!st)throw new Error("init load aborted, missing levels");var ct=H.stats;ne.state=Bi.IDLE,Z.fragmentError=0,H.data=new Uint8Array(Ae.payload),ct.parsing.start=ct.buffering.start=self.performance.now(),ct.parsing.end=ct.buffering.end=self.performance.now(),Ae.frag===Te&&ze.trigger(w.FRAG_BUFFERED,{stats:ct,frag:Te,part:null,id:H.type}),ne.tick()}).catch(function(Ae){if(ne.state===Bi.STOPPED||ne.state===Bi.ERROR)return;ne.warn(Ae),ne.resetFragmentLoading(H)})}},{key:"fragContextChanged",value:function(H){var Z=this.fragCurrent;return!H||!Z||H.level!==Z.level||H.sn!==Z.sn||H.urlId!==Z.urlId}},{key:"fragBufferedComplete",value:function(H,Z){var ne,Ae,Te,ze,st=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(H.type," sn: ").concat(H.sn).concat(Z?" part: "+Z.index:""," of ").concat(this.playlistType===ft.MAIN?"level":"track"," ").concat(H.level," (frag:[").concat(((ne=H.startPTS)!=null?ne:NaN).toFixed(3),"-").concat(((Ae=H.endPTS)!=null?Ae:NaN).toFixed(3),"] > buffer:").concat(st?Va.toString(_i.getBuffered(st)):"(detached)",")")),this.state=Bi.IDLE,!st)return;!this.loadedmetadata&&H.type==ft.MAIN&&st.buffered.length&&((Te=this.fragCurrent)==null?void 0:Te.sn)===((ze=this.fragPrevious)==null?void 0:ze.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this.transmuxer;if(!Z)return;var ne=H.frag,Ae=H.part,Te=H.partsLoaded,ze=!Te||Te.length===0||Te.some(function(ct){return!ct}),st=new Ki(ne.level,ne.sn,ne.stats.chunkCount+1,0,Ae?Ae.index:-1,!ze);Z.flush(st)}},{key:"_handleFragmentLoadProgress",value:function(H){}},{key:"_doFragLoad",value:function(H,Z){var ne=this,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Te=arguments.length>3?arguments[3]:void 0,ze,st=Z==null?void 0:Z.details;if(!this.levels||!st)throw new Error("frag load aborted, missing level".concat(st?"":" detail","s"));var ct=null;if(H.encrypted&&!((ze=H.decryptdata)!=null&&ze.key)?(this.log("Loading key for ".concat(H.sn," of [").concat(st.startSN,"-").concat(st.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(H.level)),this.state=Bi.KEY_LOADING,this.fragCurrent=H,ct=this.keyLoader.load(H).then(function(Mn){if(!ne.fragContextChanged(Mn.frag))return ne.hls.trigger(w.KEY_LOADED,Mn),ne.state===Bi.KEY_LOADING&&(ne.state=Bi.IDLE),Mn}),this.hls.trigger(w.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(ct=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!H.encrypted&&st.encryptedFragments.length&&this.keyLoader.loadClear(H,st.encryptedFragments),Ae=Math.max(H.start,Ae||0),this.config.lowLatencyMode&&H.sn!=="initSegment"){var zt=st.partList;if(zt&&Te){Ae>H.end&&st.fragmentHint&&(H=st.fragmentHint);var Tr=this.getNextPart(zt,H,Ae);if(Tr>-1){var br=zt[Tr];this.log("Loading part sn: ".concat(H.sn," p: ").concat(br.index," cc: ").concat(H.cc," of playlist [").concat(st.startSN,"-").concat(st.endSN,"] parts [0-").concat(Tr,"-").concat(zt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(Ae.toFixed(3)))),this.nextLoadPosition=br.start+br.duration,this.state=Bi.FRAG_LOADING;var Kr;return ct?Kr=ct.then(function(Mn){return!Mn||ne.fragContextChanged(Mn.frag)?null:ne.doFragPartsLoad(H,br,Z,Te)}).catch(function(Mn){return ne.handleFragLoadError(Mn)}):Kr=this.doFragPartsLoad(H,br,Z,Te).catch(function(Mn){return ne.handleFragLoadError(Mn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,part:br,targetBufferTime:Ae}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Kr}else if(!H.url||this.loadedEndOfParts(zt,Ae))return Promise.resolve(null)}}this.log("Loading fragment ".concat(H.sn," cc: ").concat(H.cc," ").concat(st?"of ["+st.startSN+"-"+st.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(Ae.toFixed(3)))),T(H.sn)&&!this.bitrateTest&&(this.nextLoadPosition=H.start+H.duration),this.state=Bi.FRAG_LOADING;var zr=this.config.progressive,Nn;return zr&&ct?Nn=ct.then(function(Mn){return!Mn||ne.fragContextChanged(Mn==null?void 0:Mn.frag)?null:ne.fragmentLoader.load(H,Te)}).catch(function(Mn){return ne.handleFragLoadError(Mn)}):Nn=Promise.all([this.fragmentLoader.load(H,zr?Te:void 0),ct]).then(function(Mn){var Yn=Object(x.a)(Mn,1),bi=Yn[0];return!zr&&bi&&Te&&Te(bi),bi}).catch(function(Mn){return ne.handleFragLoadError(Mn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,targetBufferTime:Ae}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Nn}},{key:"doFragPartsLoad",value:function(H,Z,ne,Ae){var Te=this;return new Promise(function(ze,st){var ct,zt=[],Tr=(ct=ne.details)==null?void 0:ct.partList,br=function Kr(zr){Te.fragmentLoader.loadPart(H,zr,Ae).then(function(Nn){zt[zr.index]=Nn;var Mn=Nn.part;Te.hls.trigger(w.FRAG_LOADED,Nn);var Yn=zn(ne,H.sn,zr.index+1)||Qn(Tr,H.sn,zr.index+1);if(Yn)Kr(Yn);else return ze({frag:H,part:Mn,partsLoaded:zt})}).catch(st)};br(Z)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var Z=H.data;H.data&&Z.details===I.INTERNAL_ABORTED?this.handleFragLoadAborted(Z.frag,Z.part):this.hls.trigger(w.ERROR,Z)}else this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var Z=this.getCurrentContext(H);if(!Z||this.state!==Bi.PARSING){!this.fragCurrent&&this.state!==Bi.STOPPED&&this.state!==Bi.ERROR&&(this.state=Bi.IDLE);return}var ne=Z.frag,Ae=Z.part,Te=Z.level,ze=self.performance.now();ne.stats.parsing.end=ze,Ae&&(Ae.stats.parsing.end=ze),this.updateLevelTiming(ne,Ae,Te,H.partial)}},{key:"getCurrentContext",value:function(H){var Z=this.levels,ne=this.fragCurrent,Ae=H.level,Te=H.sn,ze=H.part;if(!(Z!=null&&Z[Ae]))return this.warn("Levels object was unset while buffering fragment ".concat(Te," of level ").concat(Ae,". The current chunk will not be buffered.")),null;var st=Z[Ae],ct=ze>-1?zn(st,Te,ze):null,zt=ct?ct.fragment:Tn(st,Te,ne);return zt?(ne&&ne!==zt&&(zt.stats=ne.stats),{frag:zt,part:ct,level:st}):null}},{key:"bufferFragmentData",value:function(H,Z,ne,Ae){var Te;if(!H||this.state!==Bi.PARSING)return;var ze=H.data1,st=H.data2,ct=ze;if(ze&&st&&(ct=Nt(ze,st)),!((Te=ct)!=null&&Te.length))return;var zt={type:H.type,frag:Z,part:ne,chunkMeta:Ae,parent:Z.type,data:ct};this.hls.trigger(w.BUFFER_APPENDING,zt),H.dropped&&H.independent&&!ne&&this.flushBufferGap(Z)}},{key:"flushBufferGap",value:function(H){var Z=this.media;if(!Z)return;if(!_i.isBuffered(Z,Z.currentTime)){this.flushMainBuffer(0,H.start);return}var ne=Z.currentTime,Ae=_i.bufferInfo(Z,ne,0),Te=H.duration,ze=Math.min(this.config.maxFragLookUpTolerance*2,Te*.25),st=Math.max(Math.min(H.start-ze,Ae.end-ze),ne+ze);H.start-st>ze&&this.flushMainBuffer(st,H.start)}},{key:"getFwdBufferInfo",value:function(H,Z){var ne=this.getLoadPosition();return T(ne)?this.getFwdBufferInfoAtPos(H,ne,Z):null}},{key:"getFwdBufferInfoAtPos",value:function(H,Z,ne){var Ae=this.config.maxBufferHole,Te=_i.bufferInfo(H,Z,Ae);if(Te.len===0&&Te.nextStart!==void 0){var ze=this.fragmentTracker.getBufferedFrag(Z,ne);if(ze&&Te.nextStart<ze.end)return _i.bufferInfo(H,Z,Math.max(Te.nextStart,Ae))}return Te}},{key:"getMaxBufferLength",value:function(H){var Z=this.config,ne;return H?ne=Math.max(8*Z.maxBufferSize/H,Z.maxBufferLength):ne=Z.maxBufferLength,Math.min(ne,Z.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(H){var Z=this.config,ne=H||Z.maxBufferLength;return Z.maxMaxBufferLength>=ne?(Z.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(Z.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(H){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ft.MAIN,ne=this.fragmentTracker.getAppendedFrag(H,ft.MAIN);return ne&&"fragment"in ne?ne.fragment:ne}},{key:"getNextFragment",value:function(H,Z){var ne=Z.fragments,Ae=ne.length;if(!Ae)return null;var Te=this.config,ze=ne[0].start,st;if(Z.live){var ct=Te.initialLiveManifestSize;if(Ae<ct)return this.warn("Not enough fragments to start playback (have: ".concat(Ae,", need: ").concat(ct,")")),null;!Z.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(st=this.getInitialLiveFragment(Z,ne),this.startPosition=st?this.hls.liveSyncPosition||st.start:H)}else H<=ze&&(st=ne[0]);if(!st){var zt=Te.lowLatencyMode?Z.partEnd:Z.fragmentEnd;st=this.getFragmentAtPosition(H,zt,Z)}return this.mapToInitFragWhenRequired(st)}},{key:"isLoopLoading",value:function(H,Z){var ne=this.fragmentTracker.getState(H);return(ne===xt.OK||ne===xt.PARTIAL&&!!H.gap)&&this.nextLoadPosition>Z}},{key:"getNextFragmentLoopLoading",value:function(H,Z,ne,Ae,Te){var ze=H.gap,st=this.getNextFragment(this.nextLoadPosition,Z);if(st===null)return st;if(H=st,ze&&H&&!H.gap&&ne.nextStart){var ct=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,ne.nextStart,Ae);if(ct!==null&&ne.len+ct.len>=Te)return this.log('buffer full after gaps in "'.concat(Ae,'" playlist starting at sn: ').concat(H.sn)),null}return H}},{key:"mapToInitFragWhenRequired",value:function(H){return H!=null&&H.initSegment&&!(H!=null&&H.initSegment.data)&&!this.bitrateTest?H.initSegment:H}},{key:"getNextPart",value:function(H,Z,ne){for(var Ae=-1,Te=!1,ze=!0,st=0,ct=H.length;st<ct;st++){var zt=H[st];if(ze=ze&&!zt.independent,Ae>-1&&ne<zt.start)break;var Tr=zt.loaded;Tr?Ae=-1:(Te||zt.independent||ze)&&zt.fragment===Z&&(Ae=st),Te=Tr}return Ae}},{key:"loadedEndOfParts",value:function(H,Z){var ne=H[H.length-1];return ne&&Z>ne.start&&ne.loaded}},{key:"getInitialLiveFragment",value:function(H,Z){var ne=this.fragPrevious,Ae=null;if(ne){if(H.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(ne.programDateTime)),Ae=ba(Z,ne.endProgramDateTime,this.config.maxFragLookUpTolerance)),!Ae){var Te=ne.sn+1;if(Te>=H.startSN&&Te<=H.endSN){var ze=Z[Te-H.startSN];ne.cc===ze.cc&&(Ae=ze,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(Ae.sn)))}Ae||(Ae=ha(Z,ne.cc),Ae&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(Ae.sn)))}}else{var st=this.hls.liveSyncPosition;st!==null&&(Ae=this.getFragmentAtPosition(st,this.bitrateTest?H.fragmentEnd:H.edge,H))}return Ae}},{key:"getFragmentAtPosition",value:function(H,Z,ne){var Ae=this.config,Te=this.fragPrevious,ze=ne.fragments,st=ne.endSN,ct=ne.fragmentHint,zt=Ae.maxFragLookUpTolerance,Tr=ne.partList,br=!!(Ae.lowLatencyMode&&Tr!=null&&Tr.length&&ct);br&&ct&&!this.bitrateTest&&(ze=ze.concat(ct),st=ct.sn);var Kr;if(H<Z){var zr=H>Z-zt?0:zt;Kr=vi(Te,ze,H,zr)}else Kr=ze[ze.length-1];if(Kr){var Nn=Kr.sn-ne.startSN,Mn=this.fragmentTracker.getState(Kr);if((Mn===xt.OK||Mn===xt.PARTIAL&&Kr.gap)&&(Te=Kr),Te&&Kr.sn===Te.sn&&(!br||Tr[0].fragment.sn>Kr.sn)){var Yn=Te&&Kr.level===Te.level;if(Yn){var bi=ze[Nn+1];Kr.sn<st&&this.fragmentTracker.getState(bi)!==xt.OK?Kr=bi:Kr=null}}}return Kr}},{key:"synchronizeToLiveEdge",value:function(H){var Z=this.config,ne=this.media;if(!ne)return;var Ae=this.hls.liveSyncPosition,Te=ne.currentTime,ze=H.fragments[0].start,st=H.edge,ct=Te>=ze-Z.maxFragLookUpTolerance&&Te<=st;if(Ae!==null&&ne.duration>Ae&&(Te<Ae||!ct)){var zt=Z.liveMaxLatencyDuration!==void 0?Z.liveMaxLatencyDuration:Z.liveMaxLatencyDurationCount*H.targetduration;(!ct&&ne.readyState<4||Te<st-zt)&&(this.loadedmetadata||(this.nextLoadPosition=Ae),ne.readyState&&(this.warn("Playback: ".concat(Te.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(st,", reset currentTime to : ").concat(Ae.toFixed(3))),ne.currentTime=Ae))}}},{key:"alignPlaylists",value:function(H,Z){var ne=this.levels,Ae=this.levelLastLoaded,Te=this.fragPrevious,ze=Ae!==null?ne[Ae]:null,st=H.fragments.length;if(!st)return this.warn("No fragments in live playlist"),0;var ct=H.fragments[0].start,zt=!Z,Tr=H.alignedSliding&&T(ct);if(zt||!Tr&&!ct){Ca(Te,ze,H);var br=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(br.toFixed(2)," start-sn: ").concat(Z?Z.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(Te?Te.sn:"na"," fragments: ").concat(st)),br}return ct}},{key:"waitForCdnTuneIn",value:function(H){var Z=3;return H.live&&H.canBlockReload&&H.partTarget&&H.tuneInGoal>Math.max(H.partHoldBack,H.partTarget*Z)}},{key:"setStartPosition",value:function(H,Z){var ne=this.startPosition;if(ne<Z&&(ne=-1),ne===-1||this.lastCurrentTime===-1){var Ae=this.startTimeOffset!==null,Te=Ae?this.startTimeOffset:H.startTimeOffset;Te!==null&&T(Te)?(ne=Z+Te,Te<0&&(ne+=H.totalduration),ne=Math.min(Math.max(Z,ne),Z+H.totalduration),this.log("Start time offset ".concat(Te," found in ").concat(Ae?"multivariant":"media"," playlist, adjust startPosition to ").concat(ne)),this.startPosition=ne):H.live?ne=this.hls.liveSyncPosition||Z:this.startPosition=ne=0,this.lastCurrentTime=ne}this.nextLoadPosition=ne}},{key:"getLoadPosition",value:function(){var H=this.media,Z=0;return this.loadedmetadata&&H?Z=H.currentTime:this.nextLoadPosition&&(Z=this.nextLoadPosition),Z}},{key:"handleFragLoadAborted",value:function(H,Z){this.transmuxer&&H.sn!=="initSegment"&&H.stats.aborted&&(this.warn("Fragment ".concat(H.sn).concat(Z?" part "+Z.index:""," of level ").concat(H.level," was aborted")),this.resetFragmentLoading(H))}},{key:"resetFragmentLoading",value:function(H){(!this.fragCurrent||!this.fragContextChanged(H)&&this.state!==Bi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Bi.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(H,Z){if(Z.chunkMeta&&!Z.frag){var ne=this.getCurrentContext(Z.chunkMeta);ne&&(Z.frag=ne.frag)}var Ae=Z.frag;if(!Ae||Ae.type!==H||!this.levels)return;if(this.fragContextChanged(Ae)){var Te;this.warn("Frag load error must match current frag to retry ".concat(Ae.url," > ").concat((Te=this.fragCurrent)==null?void 0:Te.url));return}var ze=Z.details===I.FRAG_GAP;ze&&this.fragmentTracker.fragBuffered(Ae,!0);var st=Z.errorAction,ct=st||{},zt=ct.action,Tr=ct.retryCount,br=Tr===void 0?0:Tr,Kr=ct.retryConfig;if(st&&zt===aa.RetryRequest&&Kr){this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition);var zr=Di(Kr,br);this.warn("Fragment ".concat(Ae.sn," of ").concat(H," ").concat(Ae.level," errored with ").concat(Z.details,", retrying loading ").concat(br+1,"/").concat(Kr.maxNumRetry," in ").concat(zr,"ms")),st.resolved=!0,this.retryDate=self.performance.now()+zr,this.state=Bi.FRAG_LOADING_WAITING_RETRY}else Kr&&st?(this.resetFragmentErrors(H),br<Kr.maxNumRetry?ze||(st.resolved=!0):j.warn("".concat(Z.details," reached or exceeded max retry (").concat(br,")"))):this.state=Bi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===Bi.PARSING||this.state===Bi.PARSED){var Z=H.parent,ne=this.getFwdBufferInfo(this.mediaBuffer,Z),Ae=ne&&ne.len>.5;Ae&&this.reduceMaxBufferLength(ne.len);var Te=!Ae;return Te&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(Z," buffer")),H.frag&&(this.fragmentTracker.removeFragment(H.frag),this.nextLoadPosition=H.frag.start),this.resetLoadingState(),Te}return!1}},{key:"resetFragmentErrors",value:function(H){H===ft.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE)}},{key:"afterBufferFlushed",value:function(H,Z,ne){if(!H)return;var Ae=_i.getBuffered(H);this.fragmentTracker.detectEvictedFragments(Z,Ae,ne),this.state===Bi.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Bi.IDLE}},{key:"resetStartWhenNotLoaded",value:function(H){if(!this.loadedmetadata){this.startFragRequested=!1;var Z=this.levels?this.levels[H].details:null;Z!=null&&Z.live?(this.startPosition=-1,this.setStartPosition(Z,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(H){this.warn("The loading context changed while buffering fragment ".concat(H.sn," of level ").concat(H.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(H.level),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(H,Infinity,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(H,Z,ne,Ae){var Te=this,ze,st=ne.details;if(!st){this.warn("level.details undefined");return}var ct=Object.keys(H.elementaryStreams).reduce(function(Tr,br){var Kr=H.elementaryStreams[br];if(Kr){var zr=Kr.endPTS-Kr.startPTS;if(zr<=0)return Te.warn("Could not parse fragment ".concat(H.sn," ").concat(br," duration reliably (").concat(zr,")")),Tr||!1;var Nn=Ae?0:fr(st,H,Kr.startPTS,Kr.endPTS,Kr.startDTS,Kr.endDTS);return Te.hls.trigger(w.LEVEL_PTS_UPDATED,{details:st,level:ne,drift:Nn,type:br,frag:H,start:Kr.startPTS,end:Kr.endPTS}),!0}return Tr},!1);if(ct)ne.fragmentError=0;else if(((ze=this.transmuxer)==null?void 0:ze.error)===null){var zt=new Error("Found no media in fragment ".concat(H.sn," of level ").concat(ne.id," resetting transmuxer to fallback to playlist timing"));if(this.warn(zt.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:zt,frag:H,reason:"Found no media in msn ".concat(H.sn,' of level "').concat(ne.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=Bi.PARSED,this.hls.trigger(w.FRAG_PARSED,{frag:H,part:Z})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){H.event==="demuxerWorker"&&(this.resetTransmuxer(),this.resetLoadingState())}},{key:"state",get:function(){return this._state},set:function(H){var Z=this._state;Z!==H&&(this._state=H,this.log("".concat(Z,"->").concat(H)))}}]),L}(ki);function oo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Qo(){var ve=Qt();if(!ve)return!1;var te=oo(),L=ve&&typeof ve.isTypeSupported=="function"&&ve.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),K=!te||te.prototype&&typeof te.prototype.appendBuffer=="function"&&typeof te.prototype.remove=="function";return!!L&&!!K}function mo(){var ve,te=oo();return typeof(te==null||(ve=te.prototype)==null?void 0:ve.changeType)=="function"}function To(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ao(){var ve=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"}),te=self.URL.createObjectURL(ve),L=new self.Worker(te);return{worker:L,objectURL:te}}function So(ve){var te=new self.URL(ve,self.location.href).href,L=new self.Worker(te);return{worker:L,scriptURL:te}}function bo(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:ve,id:-1,pid:-1,inputTimeScale:te,sequenceNumber:-1,samples:[],dropped:0}}var to=function(){function ve(){Object(r.a)(this,ve),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)(ve,[{key:"resetInitSegment",value:function(L,K,H,Z){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,H){}},{key:"demux",value:function(L,K){this.cachedData&&(L=Nt(this.cachedData,L),this.cachedData=null);var H=mt(L,0),Z=H?H.length:0,ne,Ae=this._audioTrack,Te=this._id3Track,ze=H?dt(H):void 0,st=L.length;for((this.basePTS===null||this.frameIndex===0&&T(ze))&&(this.basePTS=Jo(ze,K,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),H&&H.length>0&&Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:qr.audioId3,duration:Number.POSITIVE_INFINITY});Z<st;){if(this.canParse(L,Z)){var ct=this.appendFrame(Ae,L,Z);ct?(this.frameIndex++,this.lastPTS=ct.sample.pts,Z+=ct.length,ne=Z):Z=st}else or(L,Z)?(H=mt(L,Z),Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:qr.audioId3,duration:Number.POSITIVE_INFINITY}),Z+=H.length,ne=Z):Z++;if(Z===st&&ne!==st){var zt=Fe(L,ne);this.cachedData?this.cachedData=Nt(this.cachedData,zt):this.cachedData=zt}}return{audioTrack:Ae,videoTrack:bo(),id3Track:Te,textTrack:bo()}}},{key:"demuxSampleAes",value:function(L,K,H){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:bo(),id3Track:this._id3Track,textTrack:bo()}}},{key:"destroy",value:function(){}}]),ve}(),Jo=function(te,L,K){if(T(te))return te*90;var H=K?K.baseTime*9e4/K.timescale:0;return L*9e4+H};function Uo(ve,te,L,K){var H,Z,ne,Ae,Te=navigator.userAgent.toLowerCase(),ze=K,st=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];H=((te[L+2]&192)>>>6)+1;var ct=(te[L+2]&60)>>>2;if(ct>st.length-1){ve.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(ct)});return}return ne=(te[L+2]&1)<<2,ne|=(te[L+3]&192)>>>6,j.log("manifest codec:".concat(K,", ADTS type:").concat(H,", samplingIndex:").concat(ct)),/firefox/i.test(Te)?ct>=6?(H=5,Ae=new Array(4),Z=ct-3):(H=2,Ae=new Array(2),Z=ct):Te.indexOf("android")!==-1?(H=2,Ae=new Array(2),Z=ct):(H=5,Ae=new Array(4),K&&(K.indexOf("mp4a.40.29")!==-1||K.indexOf("mp4a.40.5")!==-1)||!K&&ct>=6?Z=ct-3:((K&&K.indexOf("mp4a.40.2")!==-1&&(ct>=6&&ne===1||/vivaldi/i.test(Te))||!K&&ne===1)&&(H=2,Ae=new Array(2)),Z=ct)),Ae[0]=H<<3,Ae[0]|=(ct&14)>>1,Ae[1]|=(ct&1)<<7,Ae[1]|=ne<<3,H===5&&(Ae[1]|=(Z&14)>>1,Ae[2]=(Z&1)<<7,Ae[2]|=2<<2,Ae[3]=0),{config:Ae,samplerate:st[ct],channelCount:ne,codec:"mp4a.40."+H,manifestCodec:ze}}function wo(ve,te){return ve[te]===255&&(ve[te+1]&246)===240}function ts(ve,te){return ve[te+1]&1?7:9}function Ia(ve,te){return(ve[te+3]&3)<<11|ve[te+4]<<3|(ve[te+5]&224)>>>5}function Oo(ve,te){return te+5<ve.length}function Io(ve,te){return te+1<ve.length&&wo(ve,te)}function os(ve,te){return Oo(ve,te)&&wo(ve,te)&&Ia(ve,te)<=ve.length-te}function xo(ve,te){if(Io(ve,te)){var L=ts(ve,te);if(te+L>=ve.length)return!1;var K=Ia(ve,te);if(K<=L)return!1;var H=te+K;return H===ve.length||Io(ve,H)}return!1}function rs(ve,te,L,K,H){if(!ve.samplerate){var Z=Uo(te,L,K,H);if(!Z)return;ve.config=Z.config,ve.samplerate=Z.samplerate,ve.channelCount=Z.channelCount,ve.codec=Z.codec,ve.manifestCodec=Z.manifestCodec,j.log("parsed codec:".concat(ve.codec,", rate:").concat(Z.samplerate,", channels:").concat(Z.channelCount))}}function Ho(ve){return 1024*9e4/ve}function _o(ve,te){var L=ts(ve,te);if(te+L<=ve.length){var K=Ia(ve,te)-L;if(K>0)return{headerLength:L,frameLength:K}}}function uo(ve,te,L,K,H){var Z=Ho(ve.samplerate),ne=K+H*Z,Ae=_o(te,L),Te;if(Ae){var ze=Ae.frameLength,st=Ae.headerLength,ct=st+ze,zt=Math.max(0,L+ct-te.length);zt?(Te=new Uint8Array(ct-st),Te.set(te.subarray(L+st,te.length),0)):Te=te.subarray(L+st,L+ct);var Tr={unit:Te,pts:ne};return zt||ve.samples.push(Tr),{sample:Tr,length:ct,missing:zt}}var br=te.length-L;Te=new Uint8Array(br),Te.set(te.subarray(L,te.length),0);var Kr={unit:Te,pts:ne};return{sample:Kr,length:br,missing:-1}}var Ha=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=te.call(this),Z.observer=void 0,Z.config=void 0,Z.observer=K,Z.config=H,Z}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,Z,ne,Ae){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,Ae),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:Z,duration:Ae,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return os(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){rs(H,this.observer,Z,ne,H.manifestCodec);var Ae=uo(H,Z,ne,this.basePTS,this.frameIndex);if(Ae&&Ae.missing===0)return Ae}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=mt(H,0)||[],ne=Z.length,Ae=H.length;ne<Ae;ne++)if(xo(H,ne))return j.log("ADTS sync word found !"),!0;return!1}}]),L}(to),ht=/\/emsg[-/]ID3/i,Er=function(){function ve(te,L){Object(r.a)(this,ve),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)(ve,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(L,K,H,Z){var ne=this.videoTrack=bo("video",1),Ae=this.audioTrack=bo("audio",1),Te=this.txtTrack=bo("text",1);if(this.id3Track=bo("id3",1),this.timeOffset=0,!(L!=null&&L.byteLength))return;var ze=dn(L);if(ze.video){var st=ze.video,ct=st.id,zt=st.timescale,Tr=st.codec;ne.id=ct,ne.timescale=Te.timescale=zt,ne.codec=Tr}if(ze.audio){var br=ze.audio,Kr=br.id,zr=br.timescale,Nn=br.codec;Ae.id=Kr,Ae.timescale=zr,Ae.codec=Nn}Te.id=Ar.text,ne.sampleDuration=0,ne.duration=Ae.duration=Z}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(L,K){this.timeOffset=K;var H=L,Z=this.videoTrack,ne=this.txtTrack;if(this.config.progressive){this.remainderData&&(H=Nt(this.remainderData,L));var Ae=Zt(H);this.remainderData=Ae.remainder,Z.samples=Ae.valid||new Uint8Array}else Z.samples=H;var Te=this.extractID3Track(Z,K);return ne.samples=Me(K,Z),{videoTrack:Z,audioTrack:this.audioTrack,id3Track:Te,textTrack:this.txtTrack}}},{key:"flush",value:function(){var L=this.timeOffset,K=this.videoTrack,H=this.txtTrack;K.samples=this.remainderData||new Uint8Array,this.remainderData=null;var Z=this.extractID3Track(K,this.timeOffset);return H.samples=Me(L,K),{videoTrack:K,audioTrack:bo(),id3Track:Z,textTrack:bo()}}},{key:"extractID3Track",value:function(L,K){var H=this.id3Track;if(L.samples.length){var Z=Jt(L.samples,["emsg"]);Z&&Z.forEach(function(ne){var Ae=St(ne);if(ht.test(Ae.schemeIdUri)){var Te=T(Ae.presentationTime)?Ae.presentationTime/Ae.timeScale:K+Ae.presentationTimeDelta/Ae.timeScale,ze=Ae.eventDuration===4294967295?Number.POSITIVE_INFINITY:Ae.eventDuration/Ae.timeScale;ze<=.001&&(ze=Number.POSITIVE_INFINITY);var st=Ae.payload;H.samples.push({data:st,len:st.byteLength,dts:Te,pts:Te,type:qr.emsg,duration:ze})}})}return H}},{key:"demuxSampleAes",value:function(L,K,H){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,Jt(L,["moof"]).length>0}}]),ve}(),Zr=null,Xr=[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],Xn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],un=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Gr=[0,1,1,4];function ri(ve,te,L,K,H){if(L+24>te.length)return;var Z=rn(te,L);if(Z&&L+Z.frameLength<=te.length){var ne=Z.samplesPerFrame*9e4/Z.sampleRate,Ae=K+H*ne,Te={unit:te.subarray(L,L+Z.frameLength),pts:Ae,dts:Ae};return ve.config=[],ve.channelCount=Z.channelCount,ve.samplerate=Z.sampleRate,ve.samples.push(Te),{sample:Te,length:Z.frameLength,missing:0}}}function rn(ve,te){var L=ve[te+1]>>3&3,K=ve[te+1]>>1&3,H=ve[te+2]>>4&15,Z=ve[te+2]>>2&3;if(L!==1&&H!==0&&H!==15&&Z!==3){var ne=ve[te+2]>>1&1,Ae=ve[te+3]>>6,Te=L===3?3-K:K===3?3:4,ze=Xr[Te*14+H-1]*1e3,st=L===3?0:L===2?1:2,ct=Xn[st*3+Z],zt=Ae===3?1:2,Tr=un[L][K],br=Gr[K],Kr=Tr*8*br,zr=Math.floor(Tr*ze/ct+ne)*br;if(Zr===null){var Nn=navigator.userAgent||"",Mn=Nn.match(/Chrome\/(\d+)/i);Zr=Mn?parseInt(Mn[1]):0}var Yn=!!Zr&&Zr<=87;return Yn&&K===2&&ze>=224e3&&Ae===0&&(ve[te+3]=ve[te+3]|128),{sampleRate:ct,channelCount:zt,frameLength:zr,samplesPerFrame:Kr}}}function jn(ve,te){return ve[te]===255&&(ve[te+1]&224)===224&&(ve[te+1]&6)!==0}function oi(ve,te){return te+1<ve.length&&jn(ve,te)}function li(ve,te){var L=4;return jn(ve,te)&&L<=ve.length-te}function ai(ve,te){if(te+1<ve.length&&jn(ve,te)){var L=4,K=rn(ve,te),H=L;K!=null&&K.frameLength&&(H=K.frameLength);var Z=te+H;return Z===ve.length||oi(ve,Z)}return!1}var Ei=function(){function ve(te){Object(r.a)(this,ve),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=te,this.bytesAvailable=te.byteLength,this.word=0,this.bitsAvailable=0}return Object(s.a)(ve,[{key:"loadWord",value:function(){var L=this.data,K=this.bytesAvailable,H=L.byteLength-K,Z=new Uint8Array(4),ne=Math.min(4,K);if(ne===0)throw new Error("no bytes available");Z.set(L.subarray(H,H+ne)),this.word=new DataView(Z.buffer).getUint32(0),this.bitsAvailable=ne*8,this.bytesAvailable-=ne}},{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),H=this.word>>>32-K;if(L>32&&j.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?H<<K|this.readBits(K):H}},{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,H=8,Z,ne=0;ne<L;ne++)H!==0&&(Z=this.readEG(),H=(K+Z+256)%256),K=H===0?K:H}},{key:"readSPS",value:function(){var L=0,K=0,H=0,Z=0,ne,Ae,Te,ze=this.readUByte.bind(this),st=this.readBits.bind(this),ct=this.readUEG.bind(this),zt=this.readBoolean.bind(this),Tr=this.skipBits.bind(this),br=this.skipEG.bind(this),Kr=this.skipUEG.bind(this),zr=this.skipScalingList.bind(this);ze();var Nn=ze();if(st(5),Tr(3),ze(),Kr(),Nn===100||Nn===110||Nn===122||Nn===244||Nn===44||Nn===83||Nn===86||Nn===118||Nn===128){var Mn=ct();if(Mn===3&&Tr(1),Kr(),Kr(),Tr(1),zt())for(Ae=Mn!==3?8:12,Te=0;Te<Ae;Te++)zt()&&(Te<6?zr(16):zr(64))}Kr();var Yn=ct();if(Yn===0)ct();else if(Yn===1)for(Tr(1),br(),br(),ne=ct(),Te=0;Te<ne;Te++)br();Kr(),Tr(1);var bi=ct(),ua=ct(),Yi=st(1);Yi===0&&Tr(1),Tr(1),zt()&&(L=ct(),K=ct(),H=ct(),Z=ct());var ta=[1,1];if(zt()&&zt()){var Pa=ze();switch(Pa){case 1:ta=[1,1];break;case 2:ta=[12,11];break;case 3:ta=[10,11];break;case 4:ta=[16,11];break;case 5:ta=[40,33];break;case 6:ta=[24,11];break;case 7:ta=[20,11];break;case 8:ta=[32,11];break;case 9:ta=[80,33];break;case 10:ta=[18,11];break;case 11:ta=[15,11];break;case 12:ta=[64,33];break;case 13:ta=[160,99];break;case 14:ta=[4,3];break;case 15:ta=[3,2];break;case 16:ta=[2,1];break;case 255:{ta=[ze()<<8|ze(),ze()<<8|ze()];break}}}return{width:Math.ceil((bi+1)*16-L*2-K*2),height:(2-Yi)*(ua+1)*16-(Yi?2:4)*(H+Z),pixelRatio:ta}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),ve}(),mi=function(){function ve(te,L,K){Object(r.a)(this,ve),this.keyData=void 0,this.decrypter=void 0,this.keyData=K,this.decrypter=new _a(L,{removePKCS7Padding:!1})}return Object(s.a)(ve,[{key:"decryptBuffer",value:function(L){return this.decrypter.decrypt(L,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(L,K,H){var Z=this,ne=L[K].unit;if(ne.length<=16)return;var Ae=ne.subarray(16,ne.length-ne.length%16),Te=Ae.buffer.slice(Ae.byteOffset,Ae.byteOffset+Ae.length);this.decryptBuffer(Te).then(function(ze){var st=new Uint8Array(ze);ne.set(st,16),Z.decrypter.isSync()||Z.decryptAacSamples(L,K+1,H)})}},{key:"decryptAacSamples",value:function(L,K,H){for(;;K++){if(K>=L.length){H();return}if(L[K].unit.length<32)continue;if(this.decryptAacSample(L,K,H),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(L){for(var K=Math.floor((L.length-48)/160)*16+16,H=new Int8Array(K),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)H.set(L.subarray(ne,ne+16),Z);return H}},{key:"getAvcDecryptedUnit",value:function(L,K){for(var H=new Uint8Array(K),Z=0,ne=32;ne<L.length-16;ne+=160,Z+=16)L.set(H.subarray(Z,Z+16),ne);return L}},{key:"decryptAvcSample",value:function(L,K,H,Z,ne){var Ae=this,Te=vt(ne.data),ze=this.getAvcEncryptedData(Te);this.decryptBuffer(ze.buffer).then(function(st){ne.data=Ae.getAvcDecryptedUnit(Te,st),Ae.decrypter.isSync()||Ae.decryptAvcSamples(L,K,H+1,Z)})}},{key:"decryptAvcSamples",value:function(L,K,H,Z){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;K++,H=0){if(K>=L.length){Z();return}for(var ne=L[K].units;!(H>=ne.length);H++){var Ae=ne[H];if(Ae.data.length<=48||Ae.type!==1&&Ae.type!==5)continue;if(this.decryptAvcSample(L,K,H,Z,Ae),!this.decrypter.isSync())return}}}}]),ve}(),Ai=188,Ii=function(){function ve(te,L,K){Object(r.a)(this,ve),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=te,this.config=L,this.typeSupported=K}return Object(s.a)(ve,[{key:"resetInitSegment",value:function(L,K,H,Z){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=ve.createTrack("video"),this._audioTrack=ve.createTrack("audio",Z),this._id3Track=ve.createTrack("id3"),this._txtTrack=ve.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=K,this.videoCodec=H,this._duration=Z}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var L=this._audioTrack,K=this._avcTrack,H=this._id3Track;L&&(L.pesData=null),K&&(K.pesData=null),H&&(H.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;H||(this.sampleAes=null);var ne,Ae=this._avcTrack,Te=this._audioTrack,ze=this._id3Track,st=this._txtTrack,ct=Ae.pid,zt=Ae.pesData,Tr=Te.pid,br=ze.pid,Kr=Te.pesData,zr=ze.pesData,Nn=null,Mn=this.pmtParsed,Yn=this._pmtId,bi=L.length;if(this.remainderData&&(L=Nt(this.remainderData,L),bi=L.length,this.remainderData=null),bi<Ai&&!Z)return this.remainderData=L,{audioTrack:Te,videoTrack:Ae,id3Track:ze,textTrack:st};var ua=Math.max(0,ve.syncOffset(L));bi-=(bi-ua)%Ai,bi<L.byteLength&&!Z&&(this.remainderData=new Uint8Array(L.buffer,bi,L.buffer.byteLength-bi));for(var Yi=0,ta=ua;ta<bi;ta+=Ai)if(L[ta]===71){var Pa=!!(L[ta+1]&64),Ya=ji(L,ta),Ba=(L[ta+3]&48)>>4,Sa=void 0;if(Ba>1){if(Sa=ta+5+L[ta+4],Sa===ta+Ai)continue}else Sa=ta+4;switch(Ya){case ct:Pa&&(zt&&(ne=xa(zt))&&this.parseAVCPES(Ae,st,ne,!1),zt={data:[],size:0}),zt&&(zt.data.push(L.subarray(Sa,ta+Ai)),zt.size+=ta+Ai-Sa);break;case Tr:if(Pa){if(Kr&&(ne=xa(Kr)))switch(Te.segmentCodec){case"aac":this.parseAACPES(Te,ne);break;case"mp3":this.parseMPEGPES(Te,ne);break}Kr={data:[],size:0}}Kr&&(Kr.data.push(L.subarray(Sa,ta+Ai)),Kr.size+=ta+Ai-Sa);break;case br:Pa&&(zr&&(ne=xa(zr))&&this.parseID3PES(ze,ne),zr={data:[],size:0}),zr&&(zr.data.push(L.subarray(Sa,ta+Ai)),zr.size+=ta+Ai-Sa);break;case 0:Pa&&(Sa+=L[Sa]+1),Yn=this._pmtId=fa(L,Sa);break;case Yn:{Pa&&(Sa+=L[Sa]+1);var Go=Xa(L,Sa,this.typeSupported,H);ct=Go.avc,ct>0&&(Ae.pid=ct),Tr=Go.audio,Tr>0&&(Te.pid=Tr,Te.segmentCodec=Go.segmentCodec),br=Go.id3,br>0&&(ze.pid=br),Nn!==null&&!Mn&&(j.warn("MPEG-TS PMT found at ".concat(ta," after unknown PID '").concat(Nn,"'. Backtracking to sync byte @").concat(ua," to parse all TS packets.")),Nn=null,ta=ua-188),Mn=this.pmtParsed=!0;break}case 17:case 8191:break;default:Nn=Ya;break}}else Yi++;if(Yi>0){var Ls=new Error("Found ".concat(Yi," TS packet/s that do not start with 0x47"));this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Ls,reason:Ls.message})}Ae.pesData=zt,Te.pesData=Kr,ze.pesData=zr;var ys={audioTrack:Te,videoTrack:Ae,id3Track:ze,textTrack:st};return Z&&this.extractRemainingSamples(ys),ys}},{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,H=L.videoTrack,Z=L.id3Track,ne=L.textTrack,Ae=H.pesData,Te=K.pesData,ze=Z.pesData,st;if(Ae&&(st=xa(Ae))?(this.parseAVCPES(H,ne,st,!0),H.pesData=null):H.pesData=Ae,Te&&(st=xa(Te))){switch(K.segmentCodec){case"aac":this.parseAACPES(K,st);break;case"mp3":this.parseMPEGPES(K,st);break}K.pesData=null}else Te!=null&&Te.size&&j.log("last AAC PES packet truncated,might overlap between fragments"),K.pesData=Te;ze&&(st=xa(ze))?(this.parseID3PES(Z,st),Z.pesData=null):Z.pesData=ze}},{key:"demuxSampleAes",value:function(L,K,H){var Z=this.demux(L,H,!0,!this.config.progressive),ne=this.sampleAes=new mi(this.observer,this.config,K);return this.decrypt(Z,ne)}},{key:"decrypt",value:function(L,K){return new Promise(function(H){var Z=L.audioTrack,ne=L.videoTrack;Z.samples&&Z.segmentCodec==="aac"?K.decryptAacSamples(Z.samples,0,function(){ne.samples?K.decryptAvcSamples(ne.samples,0,0,function(){H(L)}):H(L)}):ne.samples&&K.decryptAvcSamples(ne.samples,0,0,function(){H(L)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(L,K,H,Z){var ne=this,Ae=this.parseAVCNALu(L,H.data),Te=this.avcSample,ze,st=!1;H.data=null,Te&&Ae.length&&!L.audFound&&(wa(Te,L),Te=this.avcSample=na(!1,H.pts,H.dts,"")),Ae.forEach(function(ct){switch(ct.type){case 1:{ze=!0,Te||(Te=ne.avcSample=na(!0,H.pts,H.dts,"")),Te.frame=!0;var zt=ct.data;if(st&&zt.length>4){var Tr=new Ei(zt).readSliceType();(Tr===2||Tr===4||Tr===7||Tr===9)&&(Te.key=!0)}break}case 5:ze=!0,Te||(Te=ne.avcSample=na(!0,H.pts,H.dts,"")),Te.key=!0,Te.frame=!0;break;case 6:{ze=!0,tt(ct.data,1,H.pts,K.samples);break}case 7:if(ze=!0,st=!0,!L.sps){var br=ct.data,Kr=new Ei(br),zr=Kr.readSPS();L.width=zr.width,L.height=zr.height,L.pixelRatio=zr.pixelRatio,L.sps=[br],L.duration=ne._duration;for(var Nn=br.subarray(1,4),Mn="avc1.",Yn=0;Yn<3;Yn++){var bi=Nn[Yn].toString(16);bi.length<2&&(bi="0"+bi),Mn+=bi}L.codec=Mn}break;case 8:ze=!0,L.pps||(L.pps=[ct.data]);break;case 9:ze=!1,L.audFound=!0,Te&&wa(Te,L),Te=ne.avcSample=na(!1,H.pts,H.dts,"");break;case 12:ze=!0;break;default:ze=!1,Te&&(Te.debug+="unknown NAL "+ct.type+" ");break}if(Te&&ze){var ua=Te.units;ua.push(ct)}}),Z&&Te&&(wa(Te,L),this.avcSample=null)}},{key:"getLastNalUnit",value:function(L){var K,H=this.avcSample,Z;if((!H||H.units.length===0)&&(H=L[L.length-1]),(K=H)!=null&&K.units){var ne=H.units;Z=ne[ne.length-1]}return Z}},{key:"parseAVCNALu",value:function(L,K){var H=K.byteLength,Z=L.naluState||0,ne=Z,Ae=[],Te=0,ze,st,ct,zt=-1,Tr=0;for(Z===-1&&(zt=0,Tr=K[0]&31,Z=0,Te=1);Te<H;){if(ze=K[Te++],!Z){Z=ze?0:1;continue}if(Z===1){Z=ze?0:2;continue}if(!ze)Z=3;else if(ze===1){if(zt>=0){var br={data:K.subarray(zt,Te-Z-1),type:Tr};Ae.push(br)}else{var Kr=this.getLastNalUnit(L.samples);if(Kr&&(ne&&Te<=4-ne&&(Kr.state&&(Kr.data=Kr.data.subarray(0,Kr.data.byteLength-ne))),st=Te-Z-1,st>0)){var zr=new Uint8Array(Kr.data.byteLength+st);zr.set(Kr.data,0),zr.set(K.subarray(0,st),Kr.data.byteLength),Kr.data=zr,Kr.state=0}}Te<H?(ct=K[Te]&31,zt=Te,Tr=ct,Z=0):Z=-1}else Z=0}if(zt>=0&&Z>=0){var Nn={data:K.subarray(zt,H),type:Tr,state:Z};Ae.push(Nn)}if(Ae.length===0){var Mn=this.getLastNalUnit(L.samples);if(Mn){var Yn=new Uint8Array(Mn.data.byteLength+K.byteLength);Yn.set(Mn.data,0),Yn.set(K,Mn.data.byteLength),Mn.data=Yn}}return L.naluState=Z,Ae}},{key:"parseAACPES",value:function(L,K){var H=0,Z=this.aacOverFlow,ne=K.data;if(Z){this.aacOverFlow=null;var Ae=Z.missing,Te=Z.sample.unit.byteLength;if(Ae===-1){var ze=new Uint8Array(Te+ne.byteLength);ze.set(Z.sample.unit,0),ze.set(ne,Te),ne=ze}else{var st=Te-Ae;Z.sample.unit.set(ne.subarray(0,Ae),st),L.samples.push(Z.sample),H=Z.missing}}var ct,zt;for(ct=H,zt=ne.length;ct<zt-1&&!Io(ne,ct);ct++);if(ct!==H){var Tr,br=ct<zt-1;br?Tr="AAC PES did not start with ADTS header,offset:".concat(ct):Tr="No ADTS header found in AAC PES";var Kr=new Error(Tr);if(j.warn("parsing error: ".concat(Tr)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,levelRetry:br,error:Kr,reason:Tr}),!br)return}rs(L,this.observer,ne,ct,this.audioCodec);var zr;if(K.pts!==void 0)zr=K.pts;else if(Z){var Nn=Ho(L.samplerate);zr=Z.sample.pts+Nn}else{j.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Mn=0,Yn;ct<zt;)if(Yn=uo(L,ne,ct,zr,Mn),ct+=Yn.length,Yn.missing){this.aacOverFlow=Yn;break}else for(Mn++;ct<zt-1&&!Io(ne,ct);ct++);}},{key:"parseMPEGPES",value:function(L,K){var H=K.data,Z=H.length,ne=0,Ae=0,Te=K.pts;if(Te===void 0){j.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;Ae<Z;)if(oi(H,Ae)){var ze=ri(L,H,Ae,Te,ne);if(ze)Ae+=ze.length,ne++;else break}else Ae++}},{key:"parseID3PES",value:function(L,K){if(K.pts===void 0){j.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=E({},K,{type:this._avcTrack?qr.emsg:qr.audioId3,duration:Number.POSITIVE_INFINITY});L.samples.push(H)}}],[{key:"probe",value:function(L){var K=ve.syncOffset(L);return K>0&&j.warn("MPEG2-TS detected but first sync word found @ offset ".concat(K)),K!==-1}},{key:"syncOffset",value:function(L){for(var K=L.length,H=Math.min(Ai*5,L.length-Ai)+1,Z=0;Z<H;){for(var ne=!1,Ae=Z;Ae<K&&L[Ae]===71;Ae+=Ai)if(!ne&&ji(L,Ae)===0&&(ne=!0),ne&&Ae+Ai>H)return Z;Z++}return-1}},{key:"createTrack",value:function(L,K){return{container:L==="video"||L==="audio"?"video/mp2t":void 0,type:L,id:Ar[L],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:L==="audio"?K:void 0}}}]),ve}();function na(ve,te,L,K){return{key:ve,frame:!1,pts:te,dts:L,units:[],debug:K,length:0}}function ji(ve,te){return((ve[te+1]&31)<<8)+ve[te+2]}function fa(ve,te){return(ve[te+10]&31)<<8|ve[te+11]}function Xa(ve,te,L,K){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},Z=(ve[te+1]&15)<<8|ve[te+2],ne=te+3+Z-4,Ae=(ve[te+10]&15)<<8|ve[te+11];for(te+=12+Ae;te<ne;){var Te=ji(ve,te);switch(ve[te]){case 207:if(!K){j.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=Te);break;case 21:H.id3===-1&&(H.id3=Te);break;case 219:if(!K){j.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:H.avc===-1&&(H.avc=Te);break;case 3:case 4:L.mpeg!==!0&&L.mp3!==!0?j.log("MPEG audio found, not supported in this browser"):H.audio===-1&&(H.audio=Te,H.segmentCodec="mp3");break;case 36:j.warn("Unsupported HEVC stream type found");break}te+=((ve[te+3]&15)<<8|ve[te+4])+5}return H}function xa(ve){var te=0,L,K,H,Z,ne,Ae=ve.data;if(!ve||ve.size===0)return null;for(;Ae[0].length<19&&Ae.length>1;){var Te=new Uint8Array(Ae[0].length+Ae[1].length);Te.set(Ae[0]),Te.set(Ae[1],Ae[0].length),Ae[0]=Te,Ae.splice(1,1)}L=Ae[0];var ze=(L[0]<<16)+(L[1]<<8)+L[2];if(ze===1){if(K=(L[4]<<8)+L[5],K&&K>ve.size-6)return null;var st=L[7];st&192&&(Z=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,st&64?(ne=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,Z-ne>60*9e4&&(j.warn("".concat(Math.round((Z-ne)/9e4),"s delta between PTS and DTS, align them")),Z=ne)):ne=Z),H=L[8];var ct=H+9;if(ve.size<=ct)return null;ve.size-=ct;for(var zt=new Uint8Array(ve.size),Tr=0,br=Ae.length;Tr<br;Tr++){L=Ae[Tr];var Kr=L.byteLength;if(ct)if(ct>Kr){ct-=Kr;continue}else L=L.subarray(ct),Kr-=ct,ct=0;zt.set(L,te),te+=Kr}return K&&(K-=H+3),{data:zt,pts:Z,dts:ne,len:K}}return null}function wa(ve,te){if(ve.units.length&&ve.frame){if(ve.pts===void 0){var L=te.samples,K=L.length;if(K){var H=L[K-1];ve.pts=H.pts,ve.dts=H.dts}else{te.dropped++;return}}te.samples.push(ve)}ve.debug.length&&j.log(ve.pts+"/"+ve.dts+":"+ve.debug)}var Da=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(){return Object(r.a)(this,L),te.apply(this,arguments)}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,Z,ne,Ae){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,Z,ne,Ae),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:Z,duration:Ae,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return li(H,Z)}},{key:"appendFrame",value:function(H,Z,ne){return this.basePTS===null?void 0:ri(H,Z,ne,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=mt(H,0)||[],ne=Z.length,Ae=H.length;ne<Ae;ne++)if(ai(H,ne))return j.log("MPEG Audio sync word found !"),!0;return!1}}]),L}(to),ja=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,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}}]),ve}(),ko=Math.pow(2,32)-1,ro=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"init",value:function(){ve.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 ve.types)ve.types.hasOwnProperty(L)&&(ve.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]),H=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);ve.HDLR_TYPES={video:K,audio:H};var Z=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ne=new Uint8Array([0,0,0,0,0,0,0,0]);ve.STTS=ve.STSC=ve.STCO=ne,ve.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ve.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),ve.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ve.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var Ae=new Uint8Array([105,115,111,109]),Te=new Uint8Array([97,118,99,49]),ze=new Uint8Array([0,0,0,1]);ve.FTYP=ve.box(ve.types.ftyp,Ae,ze,Ae,Te),ve.DINF=ve.box(ve.types.dinf,ve.box(ve.types.dref,Z))}},{key:"box",value:function(L){for(var K=8,H=arguments.length,Z=new Array(H>1?H-1:0),ne=1;ne<H;ne++)Z[ne-1]=arguments[ne];for(var Ae=Z.length,Te=Ae;Ae--;)K+=Z[Ae].byteLength;var ze=new Uint8Array(K);for(ze[0]=K>>24&255,ze[1]=K>>16&255,ze[2]=K>>8&255,ze[3]=K&255,ze.set(L,4),Ae=0,K=8;Ae<Te;Ae++)ze.set(Z[Ae],K),K+=Z[Ae].byteLength;return ze}},{key:"hdlr",value:function(L){return ve.box(ve.types.hdlr,ve.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return ve.box(ve.types.mdat,L)}},{key:"mdhd",value:function(L,K){K*=L;var H=Math.floor(K/(ko+1)),Z=Math.floor(K%(ko+1));return ve.box(ve.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,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,85,196,0,0]))}},{key:"mdia",value:function(L){return ve.box(ve.types.mdia,ve.mdhd(L.timescale,L.duration),ve.hdlr(L.type),ve.minf(L))}},{key:"mfhd",value:function(L){return ve.box(ve.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"?ve.box(ve.types.minf,ve.box(ve.types.smhd,ve.SMHD),ve.DINF,ve.stbl(L)):ve.box(ve.types.minf,ve.box(ve.types.vmhd,ve.VMHD),ve.DINF,ve.stbl(L))}},{key:"moof",value:function(L,K,H){return ve.box(ve.types.moof,ve.mfhd(L),ve.traf(H,K))}},{key:"moov",value:function(L){for(var K=L.length,H=[];K--;)H[K]=ve.trak(L[K]);return ve.box.apply(null,[ve.types.moov,ve.mvhd(L[0].timescale,L[0].duration)].concat(H).concat(ve.mvex(L)))}},{key:"mvex",value:function(L){for(var K=L.length,H=[];K--;)H[K]=ve.trex(L[K]);return ve.box.apply(null,[ve.types.mvex].concat(H))}},{key:"mvhd",value:function(L,K){K*=L;var H=Math.floor(K/(ko+1)),Z=Math.floor(K%(ko+1)),ne=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,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return ve.box(ve.types.mvhd,ne)}},{key:"sdtp",value:function(L){var K=L.samples||[],H=new Uint8Array(4+K.length),Z,ne;for(Z=0;Z<K.length;Z++)ne=K[Z].flags,H[Z+4]=ne.dependsOn<<4|ne.isDependedOn<<2|ne.hasRedundancy;return ve.box(ve.types.sdtp,H)}},{key:"stbl",value:function(L){return ve.box(ve.types.stbl,ve.stsd(L),ve.box(ve.types.stts,ve.STTS),ve.box(ve.types.stsc,ve.STSC),ve.box(ve.types.stsz,ve.STSZ),ve.box(ve.types.stco,ve.STCO))}},{key:"avc1",value:function(L){var K=[],H=[],Z,ne,Ae;for(Z=0;Z<L.sps.length;Z++)ne=L.sps[Z],Ae=ne.byteLength,K.push(Ae>>>8&255),K.push(Ae&255),K=K.concat(Array.prototype.slice.call(ne));for(Z=0;Z<L.pps.length;Z++)ne=L.pps[Z],Ae=ne.byteLength,H.push(Ae>>>8&255),H.push(Ae&255),H=H.concat(Array.prototype.slice.call(ne));var Te=ve.box(ve.types.avcC,new Uint8Array([1,K[3],K[4],K[5],252|3,224|L.sps.length].concat(K).concat([L.pps.length]).concat(H))),ze=L.width,st=L.height,ct=L.pixelRatio[0],zt=L.pixelRatio[1];return ve.box(ve.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,ze>>8&255,ze&255,st>>8&255,st&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),Te,ve.box(ve.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ve.box(ve.types.pasp,new Uint8Array([ct>>24,ct>>16&255,ct>>8&255,ct&255,zt>>24,zt>>16&255,zt>>8&255,zt&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 ve.box(ve.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]),ve.box(ve.types.esds,ve.esds(L)))}},{key:"mp3",value:function(L){var K=L.samplerate;return ve.box(ve.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"?ve.box(ve.types.stsd,ve.STSD,ve.mp3(L)):ve.box(ve.types.stsd,ve.STSD,ve.mp4a(L)):ve.box(ve.types.stsd,ve.STSD,ve.avc1(L))}},{key:"tkhd",value:function(L){var K=L.id,H=L.duration*L.timescale,Z=L.width,ne=L.height,Ae=Math.floor(H/(ko+1)),Te=Math.floor(H%(ko+1));return ve.box(ve.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,Ae>>24,Ae>>16&255,Ae>>8&255,Ae&255,Te>>24,Te>>16&255,Te>>8&255,Te&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Z>>8&255,Z&255,0,0,ne>>8&255,ne&255,0,0]))}},{key:"traf",value:function(L,K){var H=ve.sdtp(L),Z=L.id,ne=Math.floor(K/(ko+1)),Ae=Math.floor(K%(ko+1));return ve.box(ve.types.traf,ve.box(ve.types.tfhd,new Uint8Array([0,0,0,0,Z>>24,Z>>16&255,Z>>8&255,Z&255])),ve.box(ve.types.tfdt,new Uint8Array([1,0,0,0,ne>>24,ne>>16&255,ne>>8&255,ne&255,Ae>>24,Ae>>16&255,Ae>>8&255,Ae&255])),ve.trun(L,H.length+16+20+8+16+8+8),H)}},{key:"trak",value:function(L){return L.duration=L.duration||4294967295,ve.box(ve.types.trak,ve.tkhd(L),ve.mdia(L))}},{key:"trex",value:function(L){var K=L.id;return ve.box(ve.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 H=L.samples||[],Z=H.length,ne=12+16*Z,Ae=new Uint8Array(ne),Te,ze,st,ct,zt,Tr;for(K+=8+ne,Ae.set([L.type==="video"?1:0,0,15,1,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,K>>>24&255,K>>>16&255,K>>>8&255,K&255],0),Te=0;Te<Z;Te++)ze=H[Te],st=ze.duration,ct=ze.size,zt=ze.flags,Tr=ze.cts,Ae.set([st>>>24&255,st>>>16&255,st>>>8&255,st&255,ct>>>24&255,ct>>>16&255,ct>>>8&255,ct&255,zt.isLeading<<2|zt.dependsOn,zt.isDependedOn<<6|zt.hasRedundancy<<4|zt.paddingValue<<1|zt.isNonSync,zt.degradPrio&240<<8,zt.degradPrio&15,Tr>>>24&255,Tr>>>16&255,Tr>>>8&255,Tr&255],12+16*Te);return ve.box(ve.types.trun,Ae)}},{key:"initSegment",value:function(L){ve.types||ve.init();var K=ve.moov(L),H=new Uint8Array(ve.FTYP.byteLength+K.byteLength);return H.set(ve.FTYP),H.set(K,ve.FTYP.byteLength),H}}]),ve}();ro.types=void 0,ro.HDLR_TYPES=void 0,ro.STTS=void 0,ro.STSC=void 0,ro.STCO=void 0,ro.STSZ=void 0,ro.VMHD=void 0,ro.SMHD=void 0,ro.STSD=void 0,ro.FTYP=void 0,ro.DINF=void 0;var pa=9e4;function Ea(ve,te){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=ve*te*L;return K?Math.round(H):H}function Fa(ve,te){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ea(ve,te,1/L,K)}function Ka(ve){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ea(ve,1e3,1/pa,te)}function lo(ve){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Ea(ve,pa,1/te)}var so=10*1e3,Co=1024,Lo=1152,is=null,cs=null,Rs=function(){function ve(te,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,ve),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=te,this.config=L,this.typeSupported=K,this.ISGenerated=!1,is===null){var Z=navigator.userAgent||"",ne=Z.match(/Chrome\/(\d+)/i);is=ne?parseInt(ne[1]):0}if(cs===null){var Ae=navigator.userAgent.match(/Safari\/(\d+)/i);cs=Ae?parseInt(Ae[1]):0}}return Object(s.a)(ve,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){j.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L}},{key:"resetNextTimestamp",value:function(){j.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){j.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(L){var K=!1,H=L.reduce(function(Z,ne){var Ae=ne.pts-Z;return Ae<-4294967296?(K=!0,Ko(Z,ne.pts)):Ae>0?Z:ne.pts},L[0].pts);return K&&j.debug("PTS rollover detected"),H}},{key:"remux",value:function(L,K,H,Z,ne,Ae,Te,ze){var st,ct,zt,Tr,br,Kr,zr=ne,Nn=ne,Mn=L.pid>-1,Yn=K.pid>-1,bi=K.samples.length,ua=L.samples.length>0,Yi=Te&&bi>0||bi>1,ta=(!Mn||ua)&&(!Yn||Yi)||this.ISGenerated||Te;if(ta){this.ISGenerated||(zt=this.generateIS(L,K,ne,Ae));var Pa=this.isVideoContiguous,Ya=-1,Ba;if(Yi&&(Ya=as(K.samples),!Pa&&this.config.forceKeyFrameOnDiscontinuity))if(Kr=!0,Ya>0){j.warn("[mp4-remuxer]: Dropped ".concat(Ya," out of ").concat(bi," video samples due to a missing keyframe"));var Sa=this.getVideoStartPts(K.samples);K.samples=K.samples.slice(Ya),K.dropped+=Ya,Nn+=(K.samples[0].pts-Sa)/K.inputTimeScale,Ba=Nn}else Ya===-1&&(j.warn("[mp4-remuxer]: No keyframe found out of ".concat(bi," video samples")),Kr=!1);if(this.ISGenerated){if(ua&&Yi){var Go=this.getVideoStartPts(K.samples),Ls=Ko(L.samples[0].pts,Go)-Go,ys=Ls/K.inputTimeScale;zr+=Math.max(0,ys),Nn+=Math.max(0,-ys)}if(ua){if(L.samplerate||(j.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),zt=this.generateIS(L,K,ne,Ae)),ct=this.remuxAudio(L,zr,this.isAudioContiguous,Ae,Yn||Yi||ze===ft.AUDIO?Nn:void 0),Yi){var bs=ct?ct.endPTS-ct.startPTS:0;K.inputTimeScale||(j.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),zt=this.generateIS(L,K,ne,Ae)),st=this.remuxVideo(K,Nn,Pa,bs)}}else Yi&&(st=this.remuxVideo(K,Nn,Pa,0));st&&(st.firstKeyFrame=Ya,st.independent=Ya!==-1,st.firstKeyFramePTS=Ba)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(br=co(H,ne,this._initPTS,this._initDTS)),Z.samples.length&&(Tr=Ao(Z,ne,this._initPTS))),{audio:ct,video:st,initSegment:zt,independent:Kr,text:Tr,id3:br}}},{key:"generateIS",value:function(L,K,H,Z){var ne=L.samples,Ae=K.samples,Te=this.typeSupported,ze={},st=this._initPTS,ct=!st||Z,zt="audio/mp4",Tr,br,Kr;if(ct&&(Tr=br=Infinity),L.config&&ne.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":Te.mpeg?(zt="audio/mpeg",L.codec=""):Te.mp3&&(L.codec="mp3");break}ze.audio={id:"audio",container:zt,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&Te.mpeg?new Uint8Array(0):ro.initSegment([L]),metadata:{channelCount:L.channelCount}},ct&&(Kr=L.inputTimeScale,!st||Kr!==st.timescale?Tr=br=ne[0].pts-Math.round(Kr*H):ct=!1)}if(K.sps&&K.pps&&Ae.length&&(K.timescale=K.inputTimeScale,ze.video={id:"main",container:"video/mp4",codec:K.codec,initSegment:ro.initSegment([K]),metadata:{width:K.width,height:K.height}},ct))if(Kr=K.inputTimeScale,!st||Kr!==st.timescale){var zr=this.getVideoStartPts(Ae),Nn=Math.round(Kr*H);br=Math.min(br,Ko(Ae[0].dts,zr)-Nn),Tr=Math.min(Tr,zr-Nn)}else ct=!1;if(Object.keys(ze).length)return this.ISGenerated=!0,ct?(this._initPTS={baseTime:Tr,timescale:Kr},this._initDTS={baseTime:br,timescale:Kr}):Tr=Kr=void 0,{tracks:ze,initPTS:Tr,timescale:Kr}}},{key:"remuxVideo",value:function(L,K,H,Z){var ne=L.inputTimeScale,Ae=L.samples,Te=[],ze=Ae.length,st=this._initPTS,ct=this.nextAvcDts,zt=8,Tr=this.videoSampleDuration,br,Kr,zr=Number.POSITIVE_INFINITY,Nn=Number.NEGATIVE_INFINITY,Mn=!1;if(!H||ct===null){var Yn=K*ne,bi=Ae[0].pts-Ko(Ae[0].dts,Ae[0].pts);ct=Yn-bi}for(var ua=st.baseTime*ne/st.timescale,Yi=0;Yi<ze;Yi++){var ta=Ae[Yi];ta.pts=Ko(ta.pts-ua,ct),ta.dts=Ko(ta.dts-ua,ct),ta.dts<Ae[Yi>0?Yi-1:Yi].dts&&(Mn=!0)}Mn&&Ae.sort(function(Ke,Tt){var tr=Ke.dts-Tt.dts,yr=Ke.pts-Tt.pts;return tr||yr}),br=Ae[0].dts,Kr=Ae[Ae.length-1].dts;var Pa=Kr-br,Ya=Pa?Math.round(Pa/(ze-1)):Tr||L.inputTimeScale/30;if(H){var Ba=br-ct,Sa=Ba>Ya,Go=Ba<-1;if((Sa||Go)&&(Sa?j.warn("AVC: ".concat(Ka(Ba,!0)," ms (").concat(Ba,"dts) hole between fragments detected, filling it")):j.warn("AVC: ".concat(Ka(-Ba,!0)," ms (").concat(Ba,"dts) overlapping between fragments detected")),!Go||ct>Ae[0].pts)){br=ct;var Ls=Ae[0].pts-Ba;Ae[0].dts=br,Ae[0].pts=Ls,j.log("Video: First PTS/DTS adjusted: ".concat(Ka(Ls,!0),"/").concat(Ka(br,!0),", delta: ").concat(Ka(Ba,!0)," ms"))}}br=Math.max(0,br);for(var ys=0,bs=0,Fs=0;Fs<ze;Fs++){for(var ws=Ae[Fs],Ws=ws.units,xe=Ws.length,Je=0,bt=0;bt<xe;bt++)Je+=Ws[bt].data.length;bs+=Je,ys+=xe,ws.length=Je,ws.dts=Math.max(ws.dts,br),zr=Math.min(ws.pts,zr),Nn=Math.max(ws.pts,Nn)}Kr=Ae[ze-1].dts;var lr=bs+4*ys+8,Fr;try{Fr=new Uint8Array(lr)}catch(Ke){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Ke,bytes:lr,reason:"fail allocating video mdat ".concat(lr)});return}var an=new DataView(Fr.buffer);an.setUint32(0,lr),Fr.set(ro.types.mdat,4);for(var Be=!1,ae=Number.POSITIVE_INFINITY,Oe=Number.POSITIVE_INFINITY,qe=Number.NEGATIVE_INFINITY,At=Number.NEGATIVE_INFINITY,Ut=0;Ut<ze;Ut++){for(var $t=Ae[Ut],rr=$t.units,Wr=0,cn=0,Hr=rr.length;cn<Hr;cn++){var Ur=rr[cn],on=Ur.data,gn=Ur.data.byteLength;an.setUint32(zt,gn),zt+=4,Fr.set(on,zt),zt+=gn,Wr+=4+gn}var Hn=void 0;if(Ut<ze-1)Tr=Ae[Ut+1].dts-$t.dts,Hn=Ae[Ut+1].pts-$t.pts;else{var Oi=this.config,Ri=Ut>0?$t.dts-Ae[Ut-1].dts:Ya;if(Hn=Ut>0?$t.pts-Ae[Ut-1].pts:Ya,Oi.stretchShortVideoTrack&&this.nextAudioPts!==null){var da=Math.floor(Oi.maxBufferHole*ne),Ji=(Z?zr+Z*ne:this.nextAudioPts)-$t.pts;Ji>da?(Tr=Ji-Ri,Tr<0?Tr=Ri:Be=!0,j.log("[mp4-remuxer]: It is approximately ".concat(Ji/90," ms to the next segment; using duration ").concat(Tr/90," ms for the last video frame."))):Tr=Ri}else Tr=Ri}var Qa=Math.round($t.pts-$t.dts);ae=Math.min(ae,Tr),qe=Math.max(qe,Tr),Oe=Math.min(Oe,Hn),At=Math.max(At,Hn),Te.push(new $a($t.key,Tr,Wr,Qa))}if(Te.length){if(is){if(is<70){var ya=Te[0].flags;ya.dependsOn=2,ya.isNonSync=0}}else if(cs&&(At-Oe<qe-ae&&Ya/qe<.025&&Te[0].cts===0)){j.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fo=br,za=0,Xo=Te.length;za<Xo;za++){var ls=fo+Te[za].duration,N=fo+Te[za].cts;if(za<Xo-1){var U=ls+Te[za+1].cts;Te[za].duration=U-N}else Te[za].duration=za?Te[za-1].duration:Ya;Te[za].cts=0,fo=ls}}}Tr=Be||!Tr?Ya:Tr,this.nextAvcDts=ct=Kr+Tr,this.videoSampleDuration=Tr,this.isVideoContiguous=!0;var ie=ro.moof(L.sequenceNumber++,br,E({},L,{samples:Te})),le="video",ge={data1:ie,data2:Fr,startPTS:zr/ne,endPTS:(Nn+Tr)/ne,startDTS:br/ne,endDTS:ct/ne,type:le,hasAudio:!1,hasVideo:!0,nb:Te.length,dropped:L.dropped};return L.samples=[],L.dropped=0,ge}},{key:"remuxAudio",value:function(L,K,H,Z,ne){var Ae=L.inputTimeScale,Te=L.samplerate?L.samplerate:Ae,ze=Ae/Te,st=L.segmentCodec==="aac"?Co:Lo,ct=st*ze,zt=this._initPTS,Tr=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,br=[],Kr=ne!==void 0,zr=L.samples,Nn=Tr?0:8,Mn=this.nextAudioPts||-1,Yn=K*Ae,bi=zt.baseTime*Ae/zt.timescale;if(this.isAudioContiguous=H=H||zr.length&&Mn>0&&(Z&&Math.abs(Yn-Mn)<9e3||Math.abs(Ko(zr[0].pts-bi,Yn)-Mn)<20*ct),zr.forEach(function(Ur){Ur.pts=Ko(Ur.pts-bi,Yn)}),!H||Mn<0){if(zr=zr.filter(function(Ur){return Ur.pts>=0}),!zr.length)return;ne===0?Mn=0:Z&&!Kr?Mn=Math.max(0,Yn):Mn=zr[0].pts}if(L.segmentCodec==="aac")for(var ua=this.config.maxAudioFramesDrift,Yi=0,ta=Mn;Yi<zr.length;Yi++){var Pa=zr[Yi],Ya=Pa.pts,Ba=Ya-ta,Sa=Math.abs(1e3*Ba/Ae);if(Ba<=-ua*ct&&Kr)Yi===0&&(j.warn("Audio frame @ ".concat((Ya/Ae).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ba/Ae)," ms.")),this.nextAudioPts=Mn=ta=Ya);else if(Ba>=ua*ct&&Sa<so&&Kr){var Go=Math.round(Ba/ct);ta=Ya-Go*ct,ta<0&&(Go--,ta+=ct),Yi===0&&(this.nextAudioPts=Mn=ta),j.warn("[mp4-remuxer]: Injecting ".concat(Go," audio frame @ ").concat((ta/Ae).toFixed(3),"s due to ").concat(Math.round(1e3*Ba/Ae)," ms gap."));for(var Ls=0;Ls<Go;Ls++){var ys=Math.max(ta,0),bs=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);bs||(j.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),bs=Pa.unit.subarray()),zr.splice(Yi,0,{unit:bs,pts:ys}),ta+=ct,Yi++}}Pa.pts=ta,ta+=ct}for(var Fs=null,ws=null,Ws,xe=0,Je=zr.length;Je--;)xe+=zr[Je].unit.byteLength;for(var bt=0,lr=zr.length;bt<lr;bt++){var Fr=zr[bt],an=Fr.unit,Be=Fr.pts;if(ws!==null){var ae=br[bt-1];ae.duration=Math.round((Be-ws)/ze)}else if(H&&L.segmentCodec==="aac"&&(Be=Mn),Fs=Be,xe>0){xe+=Nn;try{Ws=new Uint8Array(xe)}catch(Ur){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Ur,bytes:xe,reason:"fail allocating audio mdat ".concat(xe)});return}if(!Tr){var Oe=new DataView(Ws.buffer);Oe.setUint32(0,xe),Ws.set(ro.types.mdat,4)}}else return;Ws.set(an,Nn);var qe=an.byteLength;Nn+=qe,br.push(new $a(!0,st,qe,0)),ws=Be}var At=br.length;if(!At)return;var Ut=br[br.length-1];this.nextAudioPts=Mn=ws+ze*Ut.duration;var $t=Tr?new Uint8Array(0):ro.moof(L.sequenceNumber++,Fs/ze,E({},L,{samples:br}));L.samples=[];var rr=Fs/Ae,Wr=Mn/Ae,cn="audio",Hr={data1:$t,data2:Ws,startPTS:rr,endPTS:Wr,startDTS:rr,endDTS:Wr,type:cn,hasAudio:!0,hasVideo:!1,nb:At};return this.isAudioContiguous=!0,Hr}},{key:"remuxEmptyAudio",value:function(L,K,H,Z){var ne=L.inputTimeScale,Ae=L.samplerate?L.samplerate:ne,Te=ne/Ae,ze=this.nextAudioPts,st=this._initDTS,ct=st.baseTime*9e4/st.timescale,zt=(ze!==null?ze:Z.startDTS*ne)+ct,Tr=Z.endDTS*ne+ct,br=Te*Co,Kr=Math.ceil((Tr-zt)/br),zr=ja.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(j.warn("[mp4-remuxer]: remux empty Audio"),!zr){j.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Nn=[],Mn=0;Mn<Kr;Mn++){var Yn=zt+Mn*br;Nn.push({unit:zr,pts:Yn,dts:Yn})}return L.samples=Nn,this.remuxAudio(L,K,H,!1)}}]),ve}();function Ko(ve,te){var L;if(te===null)return ve;for(te<ve?L=-8589934592:L=8589934592;Math.abs(ve-te)>4294967296;)ve+=L;return ve}function as(ve){for(var te=0;te<ve.length;te++)if(ve[te].key)return te;return-1}function co(ve,te,L,K){var H=ve.samples.length;if(!H)return;for(var Z=ve.inputTimeScale,ne=0;ne<H;ne++){var Ae=ve.samples[ne];Ae.pts=Ko(Ae.pts-L.baseTime*9e4/L.timescale,te*Z)/Z,Ae.dts=Ko(Ae.dts-K.baseTime*9e4/K.timescale,te*Z)/Z}var Te=ve.samples;return ve.samples=[],{samples:Te}}function Ao(ve,te,L){var K=ve.samples.length;if(!K)return;for(var H=ve.inputTimeScale,Z=0;Z<K;Z++){var ne=ve.samples[Z];ne.pts=Ko(ne.pts-L.baseTime*9e4/L.timescale,te*H)/H}ve.samples.sort(function(Te,ze){return Te.pts-ze.pts});var Ae=ve.samples;return ve.samples=[],{samples:Ae}}var $a=Object(s.a)(function ve(te,L,K,H){Object(r.a)(this,ve),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=K,this.cts=H,this.flags=new ss(te)}),ss=Object(s.a)(function ve(te){Object(r.a)(this,ve),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=te?2:1,this.isNonSync=te?0:1}),Cs=function(){function ve(){Object(r.a)(this,ve),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)(ve,[{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,H,Z){this.audioCodec=K,this.videoCodec=H,this.generateInitSegment(Fn(L,Z)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(L){var K=this.audioCodec,H=this.videoCodec;if(!(L!=null&&L.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var Z=this.initData=dn(L);K||(K=il(Z.audio,ue.AUDIO)),H||(H=il(Z.video,ue.VIDEO));var ne={};Z.audio&&Z.video?ne.audiovideo={container:"video/mp4",codec:K+","+H,initSegment:L,id:"main"}:Z.audio?ne.audio={container:"audio/mp4",codec:K,initSegment:L,id:"audio"}:Z.video?ne.video={container:"video/mp4",codec:H,initSegment:L,id:"main"}:j.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=ne}},{key:"remux",value:function(L,K,H,Z,ne,Ae){var Te,ze,st=this.initPTS,ct=this.lastEndTime,zt={audio:void 0,video:void 0,text:Z,id3:H,initSegment:void 0};T(ct)||(ct=this.lastEndTime=ne||0);var Tr=K.samples;if(!(Tr!=null&&Tr.length))return zt;var br={initPTS:void 0,timescale:1},Kr=this.initData;if((Te=Kr)!=null&&Te.length||(this.generateInitSegment(Tr),Kr=this.initData),!((ze=Kr)!=null&&ze.length))return j.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),zt;this.emitInitSegment&&(br.tracks=this.initTracks,this.emitInitSegment=!1);var zr=Xi(Tr,Kr),Nn=ci(Kr,Tr),Mn=Nn===null?ne:Nn;(Fo(st,Mn,ne,zr)||br.timescale!==st.timescale&&Ae)&&(br.initPTS=Mn-ne,st&&st.timescale===1&&j.warn("Adjusting initPTS by ".concat(br.initPTS-st.baseTime)),this.initPTS=st={baseTime:br.initPTS,timescale:1});var Yn=L?Mn-st.baseTime/st.timescale:ct,bi=Yn+zr;ei(Kr,Tr,st.baseTime/st.timescale),zr>0?this.lastEndTime=bi:(j.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var ua=!!Kr.audio,Yi=!!Kr.video,ta="";ua&&(ta+="audio"),Yi&&(ta+="video");var Pa={data1:Tr,startPTS:Yn,startDTS:Yn,endPTS:bi,endDTS:bi,type:ta,hasAudio:ua,hasVideo:Yi,nb:1,dropped:0};return zt.audio=Pa.type==="audio"?Pa:void 0,zt.video=Pa.type!=="audio"?Pa:void 0,zt.initSegment=br,zt.id3=co(H,ne,st,st),Z.samples.length&&(zt.text=Ao(Z,ne,st)),zt}}]),ve}();function Fo(ve,te,L,K){if(ve===null)return!0;var H=Math.max(K,1),Z=te-ve.baseTime/ve.timescale;return Math.abs(Z-L)>H}function il(ve,te){var L=ve==null?void 0:ve.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||te===ue.VIDEO?"avc1.42e01e":"mp4a.40.5"}var Eo;try{Eo=self.performance.now.bind(self.performance)}catch(ve){j.debug("Unable to use Performance API on this environment"),Eo=typeof self!="undefined"&&self.Date.now}var zo=[{demux:Er,remux:Cs},{demux:Ii,remux:Rs},{demux:Ha,remux:Rs},{demux:Da,remux:Rs}],Bs=function(){function ve(te,L,K,H,Z){Object(r.a)(this,ve),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=te,this.typeSupported=L,this.config=K,this.vendor=H,this.id=Z}return Object(s.a)(ve,[{key:"configure",value:function(L){this.transmuxConfig=L,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(L,K,H,Z){var ne=this,Ae=H.transmuxing;Ae.executeStart=Eo();var Te=new Uint8Array(L),ze=this.currentTransmuxState,st=this.transmuxConfig;Z&&(this.currentTransmuxState=Z);var ct=Z||ze,zt=ct.contiguous,Tr=ct.discontinuity,br=ct.trackSwitch,Kr=ct.accurateTimeOffset,zr=ct.timeOffset,Nn=ct.initSegmentChange,Mn=st.audioCodec,Yn=st.videoCodec,bi=st.defaultInitPts,ua=st.duration,Yi=st.initSegmentData,ta=ms(Te,K);if(ta&&ta.method==="AES-128"){var Pa=this.getDecrypter();if(Pa.isSync()){var Ya=Pa.softwareDecrypt(Te,ta.key.buffer,ta.iv.buffer),Ba=H.part>-1;if(Ba&&(Ya=Pa.flush()),!Ya)return Ae.executeEnd=Eo(),hs(H);Te=new Uint8Array(Ya)}else return this.decryptionPromise=Pa.webCryptoDecrypt(Te,ta.key.buffer,ta.iv.buffer).then(function(bs){var Fs=ne.push(bs,null,H);return ne.decryptionPromise=null,Fs}),this.decryptionPromise}var Sa=this.needsProbing(Tr,br);if(Sa){var Go=this.configureTransmuxer(Te);if(Go)return j.warn("[transmuxer] ".concat(Go.message)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Go,reason:Go.message}),Ae.executeEnd=Eo(),hs(H)}(Tr||br||Nn||Sa)&&this.resetInitSegment(Yi,Mn,Yn,ua,K),(Tr||Nn||Sa)&&this.resetInitialTimestamp(bi),zt||this.resetContiguity();var Ls=this.transmux(Te,ta,zr,Kr,H),ys=this.currentTransmuxState;return ys.contiguous=!0,ys.discontinuity=!1,ys.trackSwitch=!1,Ae.executeEnd=Eo(),Ls}},{key:"flush",value:function(L){var K=this,H=L.transmuxing;H.executeStart=Eo();var Z=this.decrypter,ne=this.currentTransmuxState,Ae=this.decryptionPromise;if(Ae)return Ae.then(function(){return K.flush(L)});var Te=[],ze=ne.timeOffset;if(Z){var st=Z.flush();st&&Te.push(this.push(st,null,L))}var ct=this.demuxer,zt=this.remuxer;if(!ct||!zt)return H.executeEnd=Eo(),[hs(L)];var Tr=ct.flush(ze);return An(Tr)?Tr.then(function(br){return K.flushRemux(Te,br,L),Te}):(this.flushRemux(Te,Tr,L),Te)}},{key:"flushRemux",value:function(L,K,H){var Z=K.audioTrack,ne=K.videoTrack,Ae=K.id3Track,Te=K.textTrack,ze=this.currentTransmuxState,st=ze.accurateTimeOffset,ct=ze.timeOffset;j.log("[transmuxer.ts]: Flushed fragment ".concat(H.sn).concat(H.part>-1?" p: "+H.part:""," of level ").concat(H.level));var zt=this.remuxer.remux(Z,ne,Ae,Te,ct,st,!0,this.id);L.push({remuxResult:zt,chunkMeta:H}),H.transmuxing.executeEnd=Eo()}},{key:"resetInitialTimestamp",value:function(L){var K=this.demuxer,H=this.remuxer;if(!K||!H)return;K.resetTimeStamp(L),H.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,H,Z,ne){var Ae=this.demuxer,Te=this.remuxer;if(!Ae||!Te)return;Ae.resetInitSegment(L,K,H,Z),Te.resetInitSegment(L,K,H,ne)}},{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,H,Z,ne){var Ae;return K&&K.method==="SAMPLE-AES"?Ae=this.transmuxSampleAes(L,K,H,Z,ne):Ae=this.transmuxUnencrypted(L,H,Z,ne),Ae}},{key:"transmuxUnencrypted",value:function(L,K,H,Z){var ne=this.demuxer.demux(L,K,!1,!this.config.progressive),Ae=ne.audioTrack,Te=ne.videoTrack,ze=ne.id3Track,st=ne.textTrack,ct=this.remuxer.remux(Ae,Te,ze,st,K,H,!1,this.id);return{remuxResult:ct,chunkMeta:Z}}},{key:"transmuxSampleAes",value:function(L,K,H,Z,ne){var Ae=this;return this.demuxer.demuxSampleAes(L,K,H).then(function(Te){var ze=Ae.remuxer.remux(Te.audioTrack,Te.videoTrack,Te.id3Track,Te.textTrack,H,Z,!1,Ae.id);return{remuxResult:ze,chunkMeta:ne}})}},{key:"configureTransmuxer",value:function(L){for(var K=this.config,H=this.observer,Z=this.typeSupported,ne=this.vendor,Ae,Te=0,ze=zo.length;Te<ze;Te++)if(zo[Te].demux.probe(L)){Ae=zo[Te];break}if(!Ae)return new Error("Failed to find demuxer by probing fragment data");var st=this.demuxer,ct=this.remuxer,zt=Ae.remux,Tr=Ae.demux;(!ct||!(ct instanceof zt))&&(this.remuxer=new zt(H,K,Z,ne)),(!st||!(st instanceof Tr))&&(this.demuxer=new Tr(H,K,Z),this.probe=Tr.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 _a(this.config)),L}}]),ve}();function ms(ve,te){var L=null;return ve.byteLength>0&&te!=null&&te.key!=null&&te.iv!==null&&te.method!=null&&(L=te),L}var hs=function(te){return{remuxResult:{},chunkMeta:te}};function An(ve){return"then"in ve&&ve.then instanceof Function}var Ns=Object(s.a)(function ve(te,L,K,H,Z){Object(r.a)(this,ve),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=te,this.videoCodec=L,this.initSegmentData=K,this.duration=H,this.defaultInitPts=Z||null}),Ll=Object(s.a)(function ve(te,L,K,H,Z,ne){Object(r.a)(this,ve),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=te,this.contiguous=L,this.accurateTimeOffset=K,this.trackSwitch=H,this.timeOffset=Z,this.initSegmentChange=ne}),el={exports:{}};(function(ve){var te=Object.prototype.hasOwnProperty,L="~";function K(){}Object.create&&(K.prototype=Object.create(null),new K().__proto__||(L=!1));function H(Te,ze,st){this.fn=Te,this.context=ze,this.once=st||!1}function Z(Te,ze,st,ct,zt){if(typeof st!="function")throw new TypeError("The listener must be a function");var Tr=new H(st,ct||Te,zt),br=L?L+ze:ze;return Te._events[br]?Te._events[br].fn?Te._events[br]=[Te._events[br],Tr]:Te._events[br].push(Tr):(Te._events[br]=Tr,Te._eventsCount++),Te}function ne(Te,ze){--Te._eventsCount===0?Te._events=new K:delete Te._events[ze]}function Ae(){this._events=new K,this._eventsCount=0}Ae.prototype.eventNames=function(){var ze=[],st,ct;if(this._eventsCount===0)return ze;for(ct in st=this._events)te.call(st,ct)&&ze.push(L?ct.slice(1):ct);return Object.getOwnPropertySymbols?ze.concat(Object.getOwnPropertySymbols(st)):ze},Ae.prototype.listeners=function(ze){var st=L?L+ze:ze,ct=this._events[st];if(!ct)return[];if(ct.fn)return[ct.fn];for(var zt=0,Tr=ct.length,br=new Array(Tr);zt<Tr;zt++)br[zt]=ct[zt].fn;return br},Ae.prototype.listenerCount=function(ze){var st=L?L+ze:ze,ct=this._events[st];return ct?ct.fn?1:ct.length:0},Ae.prototype.emit=function(ze,st,ct,zt,Tr,br){var Kr=L?L+ze:ze;if(!this._events[Kr])return!1;var zr=this._events[Kr],Nn=arguments.length,Mn,Yn;if(zr.fn){zr.once&&this.removeListener(ze,zr.fn,void 0,!0);switch(Nn){case 1:return zr.fn.call(zr.context),!0;case 2:return zr.fn.call(zr.context,st),!0;case 3:return zr.fn.call(zr.context,st,ct),!0;case 4:return zr.fn.call(zr.context,st,ct,zt),!0;case 5:return zr.fn.call(zr.context,st,ct,zt,Tr),!0;case 6:return zr.fn.call(zr.context,st,ct,zt,Tr,br),!0}for(Yn=1,Mn=new Array(Nn-1);Yn<Nn;Yn++)Mn[Yn-1]=arguments[Yn];zr.fn.apply(zr.context,Mn)}else{var bi=zr.length,ua;for(Yn=0;Yn<bi;Yn++){zr[Yn].once&&this.removeListener(ze,zr[Yn].fn,void 0,!0);switch(Nn){case 1:zr[Yn].fn.call(zr[Yn].context);break;case 2:zr[Yn].fn.call(zr[Yn].context,st);break;case 3:zr[Yn].fn.call(zr[Yn].context,st,ct);break;case 4:zr[Yn].fn.call(zr[Yn].context,st,ct,zt);break;default:if(!Mn)for(ua=1,Mn=new Array(Nn-1);ua<Nn;ua++)Mn[ua-1]=arguments[ua];zr[Yn].fn.apply(zr[Yn].context,Mn)}}}return!0},Ae.prototype.on=function(ze,st,ct){return Z(this,ze,st,ct,!1)},Ae.prototype.once=function(ze,st,ct){return Z(this,ze,st,ct,!0)},Ae.prototype.removeListener=function(ze,st,ct,zt){var Tr=L?L+ze:ze;if(!this._events[Tr])return this;if(!st)return ne(this,Tr),this;var br=this._events[Tr];if(br.fn)br.fn===st&&(!zt||br.once)&&(!ct||br.context===ct)&&ne(this,Tr);else{for(var Kr=0,zr=[],Nn=br.length;Kr<Nn;Kr++)(br[Kr].fn!==st||zt&&!br[Kr].once||ct&&br[Kr].context!==ct)&&zr.push(br[Kr]);zr.length?this._events[Tr]=zr.length===1?zr[0]:zr:ne(this,Tr)}return this},Ae.prototype.removeAllListeners=function(ze){var st;return ze?(st=L?L+ze:ze,this._events[st]&&ne(this,st)):(this._events=new K,this._eventsCount=0),this},Ae.prototype.off=Ae.prototype.removeListener,Ae.prototype.addListener=Ae.prototype.on,Ae.prefixed=L,Ae.EventEmitter=Ae,ve.exports=Ae})(el);var Gs=el.exports,ds=c(Gs),ks=Qt()||{isTypeSupported:function(){return!1}},Qs=function(){function ve(te,L,K,H){var Z=this;Object(r.a)(this,ve),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 ne=te.config;this.hls=te,this.id=L,this.useWorker=!!ne.enableWorker,this.onTransmuxComplete=K,this.onFlush=H;var Ae=function(Tr,br){br=br||{},br.frag=Z.frag,br.id=Z.id,Tr===w.ERROR&&(Z.error=br.error),Z.hls.trigger(Tr,br)};this.observer=new ds,this.observer.on(w.FRAG_DECRYPTED,Ae),this.observer.on(w.ERROR,Ae);var Te={mp4:ks.isTypeSupported("video/mp4"),mpeg:ks.isTypeSupported("audio/mpeg"),mp3:ks.isTypeSupported('audio/mp4; codecs="mp3"')},ze=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var st=ne.workerPath||To();if(st){try{ne.workerPath?(j.log("loading Web Worker ".concat(ne.workerPath,' for "').concat(L,'"')),this.workerContext=So(ne.workerPath)):(j.log('injecting Web Worker for "'.concat(L,'"')),this.workerContext=ao()),this.onwmsg=function(zt){return Z.onWorkerMessage(zt)};var ct=this.workerContext.worker;ct.addEventListener("message",this.onwmsg),ct.onerror=function(zt){var Tr=new Error("".concat(zt.message," (").concat(zt.filename,":").concat(zt.lineno,")"));ne.enableWorker=!1,j.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),Z.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Tr})},ct.postMessage({cmd:"init",typeSupported:Te,vendor:ze,id:L,config:JSON.stringify(ne)})}catch(zt){j.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),zt),this.resetWorker(),this.error=null,this.transmuxer=new Bs(this.observer,Te,ne,ze,L)}return}}this.transmuxer=new Bs(this.observer,Te,ne,ze,L)}return Object(s.a)(ve,[{key:"resetWorker",value:function(){if(this.workerContext){var L=this.workerContext,K=L.worker,H=L.objectURL;H&&self.URL.revokeObjectURL(H),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,H,Z,ne,Ae,Te,ze,st,ct){var zt=this,Tr,br;st.transmuxing.start=self.performance.now();var Kr=this.transmuxer,zr=Ae?Ae.start:ne.start,Nn=ne.decryptdata,Mn=this.frag,Yn=!(Mn&&ne.cc===Mn.cc),bi=!(Mn&&st.level===Mn.level),ua=Mn?st.sn-Mn.sn:-1,Yi=this.part?st.part-this.part.index:-1,ta=ua===0&&st.id>1&&st.id===(Mn==null?void 0:Mn.stats.chunkCount),Pa=!bi&&(ua===1||ua===0&&(Yi===1||ta&&Yi<=0)),Ya=self.performance.now();(bi||ua||ne.stats.parsing.start===0)&&(ne.stats.parsing.start=Ya),Ae&&(Yi||!Pa)&&(Ae.stats.parsing.start=Ya);var Ba=!(Mn&&((Tr=ne.initSegment)==null?void 0:Tr.url)===((br=Mn.initSegment)==null?void 0:br.url)),Sa=new Ll(Yn,Pa,ze,bi,zr,Ba);if(!Pa||Yn||Ba){j.log("[transmuxer-interface, ".concat(ne.type,"]: Starting new transmux session for sn: ").concat(st.sn," p: ").concat(st.part," level: ").concat(st.level," id: ").concat(st.id,`
discontinuity: `).concat(Yn,`
trackSwitch: `).concat(bi,`
contiguous: `).concat(Pa,`
accurateTimeOffset: `).concat(ze,`
timeOffset: `).concat(zr,`
initSegmentChange: `).concat(Ba));var Go=new Ns(H,Z,K,Te,ct);this.configureTransmuxer(Go)}if(this.frag=ne,this.part=Ae,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:Nn,chunkMeta:st,state:Sa},L instanceof ArrayBuffer?[L]:[]);else if(Kr){var Ls=Kr.push(L,Nn,st,Sa);An(Ls)?(Kr.async=!0,Ls.then(function(ys){zt.handleTransmuxComplete(ys)}).catch(function(ys){zt.transmuxerError(ys,st,"transmuxer-interface push error")})):(Kr.async=!1,this.handleTransmuxComplete(Ls))}}},{key:"flush",value:function(L){var K=this;L.transmuxing.start=self.performance.now();var H=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:L});else if(H){var Z=H.flush(L),ne=An(Z);ne||H.async?(An(Z)||(Z=Promise.resolve(Z)),Z.then(function(Ae){K.handleFlushResult(Ae,L)}).catch(function(Ae){K.transmuxerError(Ae,L,"transmuxer-interface flush error")})):this.handleFlushResult(Z,L)}}},{key:"transmuxerError",value:function(L,K,H){if(!this.hls)return;this.error=L,this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,chunkMeta:K,fatal:!1,error:L,err:L,reason:H})}},{key:"handleFlushResult",value:function(L,K){var H=this;L.forEach(function(Z){H.handleTransmuxComplete(Z)}),this.onFlush(K)}},{key:"onWorkerMessage",value:function(L){var K=L.data,H=this.hls;switch(K.event){case"init":{var Z,ne=(Z=this.workerContext)==null?void 0:Z.objectURL;ne&&self.URL.revokeObjectURL(ne);break}case"transmuxComplete":{this.handleTransmuxComplete(K.data);break}case"flush":{this.onFlush(K.data);break}case"workerLog":j[K.data.logType]&&j[K.data.logType](K.data.message);break;default:{K.data=K.data||{},K.data.frag=this.frag,K.data.id=this.id,H.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)}}]),ve}(),tl=250,xs=2,Us=.1,al=.05,Js=function(){function ve(te,L,K,H){Object(r.a)(this,ve),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=te,this.media=L,this.fragmentTracker=K,this.hls=H}return Object(s.a)(ve,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(L,K){var H=this.config,Z=this.media,ne=this.stalled;if(Z===null)return;var Ae=Z.currentTime,Te=Z.seeking,ze=this.seeking&&!Te,st=!this.seeking&&Te;if(this.seeking=Te,Ae!==L){if(this.moved=!0,ne!==null){if(this.stallReported){var ct=self.performance.now()-ne;j.warn("playback not stuck anymore @".concat(Ae,", after ").concat(Math.round(ct),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(st||ze){this.stalled=null;return}if(Z.paused&&!Te||Z.ended||Z.playbackRate===0||!_i.getBuffered(Z).length)return;var zt=_i.bufferInfo(Z,Ae,0),Tr=zt.len>0,br=zt.nextStart||0;if(!Tr&&!br)return;if(Te){var Kr=zt.len>xs,zr=!br||K&&K.start<=Ae||br-Ae>xs&&!this.fragmentTracker.getPartialFragment(Ae);if(Kr||zr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Nn,Mn=Math.max(br,zt.start||0)-Ae,Yn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,bi=Yn==null||(Nn=Yn.details)==null?void 0:Nn.live,ua=bi?Yn.details.targetduration*2:xs,Yi=this.fragmentTracker.getPartialFragment(Ae);if(Mn>0&&(Mn<=ua||Yi)){this._trySkipBufferHole(Yi);return}}var ta=self.performance.now();if(ne===null){this.stalled=ta;return}var Pa=ta-ne;if(!Te&&Pa>=tl&&(this._reportStall(zt),!this.media))return;var Ya=_i.bufferInfo(Z,Ae,H.maxBufferHole);this._tryFixBufferStall(Ya,Pa)}},{key:"_tryFixBufferStall",value:function(L,K){var H=this.config,Z=this.fragmentTracker,ne=this.media;if(ne===null)return;var Ae=ne.currentTime,Te=Z.getPartialFragment(Ae);if(Te){var ze=this._trySkipBufferHole(Te);if(ze||!this.media)return}(L.len>H.maxBufferHole||L.nextStart&&L.nextStart-Ae<H.maxBufferHole)&&K>H.highBufferWatchdogPeriod*1e3&&(j.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var K=this.hls,H=this.media,Z=this.stallReported;if(!Z&&H){this.stallReported=!0;var ne=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));j.warn(ne.message),K.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,fatal:!1,error:ne,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var K=this.config,H=this.hls,Z=this.media;if(Z===null)return 0;var ne=Z.currentTime,Ae=_i.bufferInfo(Z,ne,0),Te=ne<Ae.start?Ae.start:Ae.nextStart;if(Te){var ze=Ae.len<=K.maxBufferHole,st=Ae.len>0&&Ae.len<1&&Z.readyState<3,ct=Te-ne;if(ct>0&&(ze||st)){if(ct>K.maxBufferHole){var zt=this.fragmentTracker,Tr=!1;if(ne===0){var br=zt.getAppendedFrag(0,ft.MAIN);br&&Te<br.end&&(Tr=!0)}if(!Tr){var Kr=L||zt.getAppendedFrag(ne,ft.MAIN);if(Kr){for(var zr=!1,Nn=Kr.end;Nn<Te;){var Mn=zt.getPartialFragment(Nn);if(Mn)Nn+=Mn.duration;else{zr=!0;break}}if(zr)return 0}}}var Yn=Math.max(Te+al,ne+Us);if(j.warn("skipping hole, adjusting currentTime from ".concat(ne," to ").concat(Yn)),this.moved=!0,this.stalled=null,Z.currentTime=Yn,L&&!L.gap){var bi=new Error("fragment loaded with buffer holes, seeking from ".concat(ne," to ").concat(Yn));H.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:bi,reason:bi.message,frag:L})}return Yn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,K=this.hls,H=this.media,Z=this.nudgeRetry;if(H===null)return;var ne=H.currentTime;if(this.nudgeRetry++,Z<L.nudgeMaxRetry){var Ae=ne+(Z+1)*L.nudgeOffset,Te=new Error("Nudging 'currentTime' from ".concat(ne," to ").concat(Ae));j.warn(Te.message),H.currentTime=Ae,K.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_NUDGE_ON_STALL,error:Te,fatal:!1})}else{var ze=new Error("Playhead still not moving while enough data buffered @".concat(ne," after ").concat(L.nudgeMaxRetry," nudges"));j.error(ze.message),K.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,error:ze,fatal:!0})}}}]),ve}(),Vo=100,No=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H,Z){var ne;return Object(r.a)(this,L),ne=te.call(this,K,H,Z,"[stream-controller]",ft.MAIN),ne.audioCodecSwap=!1,ne.gapController=null,ne.level=-1,ne._forceStartLoad=!1,ne.altAudio=!1,ne.audioOnly=!1,ne.fragPlaying=null,ne.onvplaying=null,ne.onvseeked=null,ne.fragLastKbps=0,ne.couldBacktrack=!1,ne.backtrackFragment=null,ne.audioCodecSwitch=!1,ne.videoBuffer=null,ne._registerListeners(),ne}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(w.ERROR,this.onError,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(w.ERROR,this.onError,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var Z=this.lastCurrentTime,ne=this.hls;if(this.stopLoad(),this.setInterval(Vo),this.level=-1,!this.startFragRequested){var Ae=ne.startLevel;Ae===-1&&(ne.config.testBandwidth&&this.levels.length>1?(Ae=0,this.bitrateTest=!0):Ae=ne.nextAutoLevel),this.level=ne.nextLoadLevel=Ae,this.loadedmetadata=!1}Z>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z),this.state=Bi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=Bi.STOPPED}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,Object(t.a)(Object(m.a)(L.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case Bi.WAITING_LEVEL:{var H,Z=this.levels,ne=this.level,Ae=Z==null||(H=Z[ne])==null?void 0:H.details;if(Ae&&(!Ae.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(Ae))break;this.state=Bi.IDLE;break}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=self.performance.now(),st=this.retryDate;(!st||ze>=st||(Te=this.media)!=null&&Te.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Bi.IDLE)}break}this.state===Bi.IDLE&&this.doTickIdle(),this.onTickEnd()}},{key:"onTickEnd",value:function(){Object(t.a)(Object(m.a)(L.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levelLastLoaded,ne=this.levels,Ae=this.media,Te=H.config,ze=H.nextLoadLevel;if(Z===null||!Ae&&(this.startFragRequested||!Te.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(ne!=null&&ne[ze]))return;var st=ne[ze],ct=this.getMainFwdBufferInfo();if(ct===null)return;var zt=this.getLevelDetails();if(zt&&this._streamEnded(ct,zt)){var Tr={};this.altAudio&&(Tr.type="video"),this.hls.trigger(w.BUFFER_EOS,Tr),this.state=Bi.ENDED;return}H.loadLevel!==ze&&H.manualLevel===-1&&this.log("Adapting to level ".concat(ze," from level ").concat(this.level)),this.level=H.nextLoadLevel=ze;var br=st.details;if(!br||this.state===Bi.WAITING_LEVEL||br.live&&this.levelLastLoaded!==ze){this.level=ze,this.state=Bi.WAITING_LEVEL;return}var Kr=ct.len,zr=this.getMaxBufferLength(st.maxBitrate);if(Kr>=zr)return;this.backtrackFragment&&this.backtrackFragment.start>ct.end&&(this.backtrackFragment=null);var Nn=this.backtrackFragment?this.backtrackFragment.start:ct.end,Mn=this.getNextFragment(Nn,br);if(this.couldBacktrack&&!this.fragPrevious&&Mn&&Mn.sn!=="initSegment"&&this.fragmentTracker.getState(Mn)!==xt.OK){var Yn,bi=((Yn=this.backtrackFragment)!=null?Yn:Mn).sn,ua=bi-br.startSN,Yi=br.fragments[ua-1];Yi&&Mn.cc===Yi.cc&&(Mn=Yi,this.fragmentTracker.removeFragment(Yi))}else this.backtrackFragment&&ct.len&&(this.backtrackFragment=null);if(Mn&&this.isLoopLoading(Mn,Nn)){var ta=Mn.gap;if(!ta){var Pa=this.audioOnly&&!this.altAudio?ue.AUDIO:ue.VIDEO,Ya=(Pa===ue.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ya&&this.afterBufferFlushed(Ya,Pa,ft.MAIN)}Mn=this.getNextFragmentLoopLoading(Mn,br,ct,ft.MAIN,zr)}if(!Mn)return;Mn.initSegment&&!Mn.initSegment.data&&!this.bitrateTest&&(Mn=Mn.initSegment),this.loadFragment(Mn,st,Nn)}},{key:"loadFragment",value:function(H,Z,ne){var Ae=this.fragmentTracker.getState(H);this.fragCurrent=H,Ae===xt.NOT_LOADED||Ae===xt.PARTIAL?H.sn==="initSegment"?this._loadInitSegment(H,Z):this.bitrateTest?(this.log("Fragment ".concat(H.sn," of level ").concat(H.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(H,Z)):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne)):this.clearTrackerIfNeeded(H)}},{key:"getBufferedFrag",value:function(H){return this.fragmentTracker.getBufferedFrag(H,ft.MAIN)}},{key:"followingBufferedFrag",value:function(H){return H?this.getBufferedFrag(H.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var H=this.levels,Z=this.media;if(Z!=null&&Z.readyState){var ne,Ae=this.getAppendedFrag(Z.currentTime);Ae&&Ae.start>1&&this.flushMainBuffer(0,Ae.start-1);var Te=this.getLevelDetails();if(Te!=null&&Te.live){var ze=this.getMainFwdBufferInfo();if(!ze||ze.len<Te.targetduration*2)return}if(!Z.paused&&H){var st=this.hls.nextLoadLevel,ct=H[st],zt=this.fragLastKbps;zt&&this.fragCurrent?ne=this.fragCurrent.duration*ct.maxBitrate/(1e3*zt)+1:ne=0}else ne=0;var Tr=this.getBufferedFrag(Z.currentTime+ne);if(Tr){var br=this.followingBufferedFrag(Tr);if(br){this.abortCurrentFrag();var Kr=br.maxStartPTS?br.maxStartPTS:br.start,zr=br.duration,Nn=Math.max(Tr.end,Kr+Math.min(Math.max(zr-this.config.maxFragLookUpTolerance,zr*.5),zr*.75));this.flushMainBuffer(Nn,Number.POSITIVE_INFINITY)}}}}},{key:"abortCurrentFrag",value:function(){var H=this.fragCurrent;this.fragCurrent=null,this.backtrackFragment=null,H&&(H.abortRequests(),this.fragmentTracker.removeFragment(H));switch(this.state){case Bi.KEY_LOADING:case Bi.FRAG_LOADING:case Bi.FRAG_LOADING_WAITING_RETRY:case Bi.PARSING:case Bi.PARSED:this.state=Bi.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,H,Z,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(H,Z){Object(t.a)(Object(m.a)(L.prototype),"onMediaAttached",this).call(this,H,Z);var ne=Z.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),ne.addEventListener("playing",this.onvplaying),ne.addEventListener("seeked",this.onvseeked),this.gapController=new Js(this.config,ne,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var H=this.media;H&&this.onvplaying&&this.onvseeked&&(H.removeEventListener("playing",this.onvplaying),H.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var H=this.media,Z=H?H.currentTime:null;T(Z)&&this.log("Media seeked to ".concat(Z.toFixed(3)));var ne=this.getMainFwdBufferInfo();if(ne===null||ne.len===0){this.warn('Main forward buffer length on "seeked" event '.concat(ne?ne.len:"empty",")"));return}this.tick()}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(w.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}},{key:"onManifestParsed",value:function(H,Z){var ne=!1,Ae=!1,Te;Z.levels.forEach(function(ze){Te=ze.audioCodec,Te&&(Te.indexOf("mp4a.40.2")!==-1&&(ne=!0),Te.indexOf("mp4a.40.5")!==-1&&(Ae=!0))}),this.audioCodecSwitch=ne&&Ae&&!mo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=Z.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(H,Z){var ne=this.levels;if(!ne||this.state!==Bi.IDLE)return;var Ae=ne[Z.level];(!Ae.details||Ae.details.live&&this.levelLastLoaded!==Z.level||this.waitForCdnTuneIn(Ae.details))&&(this.state=Bi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,Z){var ne,Ae=this.levels,Te=Z.level,ze=Z.details,st=ze.totalduration;if(!Ae){this.warn("Levels were reset while loading level ".concat(Te));return}this.log("Level ".concat(Te," loaded [").concat(ze.startSN,",").concat(ze.endSN,"]").concat(ze.lastPartSn?"[part-".concat(ze.lastPartSn,"-").concat(ze.lastPartIndex,"]"):"",", cc [").concat(ze.startCC,", ").concat(ze.endCC,"] duration:").concat(st));var ct=Ae[Te],zt=this.fragCurrent;zt&&(this.state===Bi.FRAG_LOADING||this.state===Bi.FRAG_LOADING_WAITING_RETRY)&&((zt.level!==Z.level||zt.urlId!==ct.urlId)&&zt.loader&&this.abortCurrentFrag());var Tr=0;if(ze.live||(ne=ct.details)!=null&&ne.live){if(ze.fragments[0]||(ze.deltaUpdateFailed=!0),ze.deltaUpdateFailed)return;Tr=this.alignPlaylists(ze,ct.details)}if(ct.details=ze,this.levelLastLoaded=Te,this.hls.trigger(w.LEVEL_UPDATED,{details:ze,level:Te}),this.state===Bi.WAITING_LEVEL){if(this.waitForCdnTuneIn(ze))return;this.state=Bi.IDLE}this.startFragRequested?ze.live&&this.synchronizeToLiveEdge(ze):this.setStartPosition(ze,Tr),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,Ae=H.part,Te=H.payload,ze=this.levels;if(!ze){this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(ne.sn," of level ").concat(ne.level," will not be buffered"));return}var st=ze[ne.level],ct=st.details;if(!ct){this.warn("Dropping fragment ".concat(ne.sn," of level ").concat(ne.level," after level details were reset")),this.fragmentTracker.removeFragment(ne);return}var zt=st.videoCodec,Tr=ct.PTSKnown||!ct.live,br=(Z=ne.initSegment)==null?void 0:Z.data,Kr=this._getAudioCodec(st),zr=this.transmuxer=this.transmuxer||new Qs(this.hls,ft.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Nn=Ae?Ae.index:-1,Mn=Nn!==-1,Yn=new Ki(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,Nn,Mn),bi=this.initPTS[ne.cc];zr.push(Te,br,Kr,zt,ne,Ae,ct.totalduration,Tr,Yn,bi)}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=this.altAudio,Ae=!!Z.url;if(!Ae){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var Te=this.fragCurrent;Te&&(this.log("Switching to main audio track, cancel main fragment load"),Te.abortRequests(),this.fragmentTracker.removeFragment(Te)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var ze=this.hls;ne&&(ze.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),ze.trigger(w.AUDIO_TRACK_SWITCHED,Z)}}},{key:"onAudioTrackSwitched",value:function(H,Z){var ne=Z.id,Ae=!!this.hls.audioTracks[ne].url;if(Ae){var Te=this.videoBuffer;Te&&this.mediaBuffer!==Te&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=Te)}this.altAudio=Ae,this.tick()}},{key:"onBufferCreated",value:function(H,Z){var ne=Z.tracks,Ae,Te,ze=!1;for(var st in ne){var ct=ne[st];if(ct.id==="main"){if(Te=st,Ae=ct,st==="video"){var zt=ne[st];zt&&(this.videoBuffer=zt.buffer)}}else ze=!0}ze&&Ae?(this.log("Alternate track found, use ".concat(Te,".buffered to schedule main fragment loading")),this.mediaBuffer=Ae.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,Ae=Z.part;if(ne&&ne.type!==ft.MAIN)return;if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(Ae?" p: "+Ae.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===Bi.PARSED&&(this.state=Bi.IDLE);return}var Te=Ae?Ae.stats:ne.stats;this.fragLastKbps=Math.round(8*Te.total/(Te.buffering.end-Te.loading.first)),ne.sn!=="initSegment"&&(this.fragPrevious=ne),this.fragBufferedComplete(ne,Ae)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ft.MAIN,Z);break;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_LEVEL&&((ne=Z.context)==null?void 0:ne.type)===wt.LEVEL&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="main")return;this.reduceLengthAndFlushBuffer(Z)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"checkBuffer",value:function(){var H=this.media,Z=this.gapController;if(!H||!Z||!H.readyState)return;if(this.loadedmetadata||!_i.getBuffered(H).length){var ne=this.state!==Bi.IDLE?this.fragCurrent:null;Z.poll(this.lastCurrentTime,ne)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Bi.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;if(ne!==ue.AUDIO||this.audioOnly&&!this.altAudio){var Ae=(ne===ue.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(Ae,ne,ft.MAIN)}}},{key:"onLevelsUpdated",value:function(H,Z){this.levels=Z.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var Z=H.currentTime,ne=this.startPosition;if(ne>=0&&Z<ne){if(H.seeking){this.log("could not seek to ".concat(ne,", already seeking at ").concat(Z));return}var Ae=_i.getBuffered(H),Te=Ae.length?Ae.start(0):0,ze=Te-ne;ze>0&&(ze<this.config.maxBufferHole||ze<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(ze," to match buffer start")),ne+=ze,this.startPosition=ne),this.log("seek to target start position ".concat(ne," from current time ").concat(Z)),H.currentTime=ne}}},{key:"_getAudioCodec",value:function(H){var Z=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&Z&&(this.log("Swapping audio codec"),Z.indexOf("mp4a.40.5")!==-1?Z="mp4a.40.2":Z="mp4a.40.5"),Z}},{key:"_loadBitrateTestFrag",value:function(H,Z){var ne=this;H.bitrateTest=!0,this._doFragLoad(H,Z).then(function(Ae){var Te=ne.hls;if(!Ae||ne.fragContextChanged(H))return;Z.fragmentError=0,ne.state=Bi.IDLE,ne.startFragRequested=!1,ne.bitrateTest=!1;var ze=H.stats;ze.parsing.start=ze.parsing.end=ze.buffering.start=ze.buffering.end=self.performance.now(),Te.trigger(w.FRAG_LOADED,Ae),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="main",Ae=this.hls,Te=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var ct=st.frag,zt=st.part,Tr=st.level,br=Te.video,Kr=Te.text,zr=Te.id3,Nn=Te.initSegment,Mn=Tr.details,Yn=this.altAudio?void 0:Te.audio;if(this.fragContextChanged(ct)){this.fragmentTracker.removeFragment(ct);return}if(this.state=Bi.PARSING,Nn){if(Nn!=null&&Nn.tracks){var bi=ct.initSegment||ct;this._bufferInitSegment(Tr,Nn.tracks,bi,ze),Ae.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:bi,id:ne,tracks:Nn.tracks})}var ua=Nn.initPTS,Yi=Nn.timescale;T(ua)&&(this.initPTS[ct.cc]={baseTime:ua,timescale:Yi},Ae.trigger(w.INIT_PTS_FOUND,{frag:ct,id:ne,initPTS:ua,timescale:Yi}))}if(br&&Te.independent!==!1){if(Mn){var ta=br.startPTS,Pa=br.endPTS,Ya=br.startDTS,Ba=br.endDTS;if(zt)zt.elementaryStreams[br.type]={startPTS:ta,endPTS:Pa,startDTS:Ya,endDTS:Ba};else if(br.firstKeyFrame&&br.independent&&ze.id===1&&(this.couldBacktrack=!0),br.dropped&&br.independent){var Sa=this.getMainFwdBufferInfo(),Go=(Sa?Sa.end:this.getLoadPosition())+this.config.maxBufferHole,Ls=br.firstKeyFramePTS?br.firstKeyFramePTS:ta;if(Go<Ls-this.config.maxBufferHole){this.backtrack(ct);return}ct.setElementaryStreamInfo(br.type,ct.start,Pa,ct.start,Ba,!0)}ct.setElementaryStreamInfo(br.type,ta,Pa,Ya,Ba),this.backtrackFragment&&(this.backtrackFragment=ct),this.bufferFragmentData(br,ct,zt,ze)}}else if(Te.independent===!1){this.backtrack(ct);return}if(Yn){var ys=Yn.startPTS,bs=Yn.endPTS,Fs=Yn.startDTS,ws=Yn.endDTS;zt&&(zt.elementaryStreams[ue.AUDIO]={startPTS:ys,endPTS:bs,startDTS:Fs,endDTS:ws}),ct.setElementaryStreamInfo(ue.AUDIO,ys,bs,Fs,ws),this.bufferFragmentData(Yn,ct,zt,ze)}if(Mn&&zr!=null&&(Z=zr.samples)!=null&&Z.length){var Ws={id:ne,frag:ct,details:Mn,samples:zr.samples};Ae.trigger(w.FRAG_PARSING_METADATA,Ws)}if(Mn&&Kr){var xe={id:ne,frag:ct,details:Mn,samples:Kr.samples};Ae.trigger(w.FRAG_PARSING_USERDATA,xe)}}},{key:"_bufferInitSegment",value:function(H,Z,ne,Ae){var Te=this;if(this.state!==Bi.PARSING)return;this.audioOnly=!!Z.audio&&!Z.video,this.altAudio&&!this.audioOnly&&delete Z.audio;var ze=Z.audio,st=Z.video,ct=Z.audiovideo;if(ze){var zt=H.audioCodec,Tr=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(zt&&(zt.indexOf("mp4a.40.5")!==-1?zt="mp4a.40.2":zt="mp4a.40.5"),ze.metadata.channelCount!==1&&Tr.indexOf("firefox")===-1&&(zt="mp4a.40.5")),Tr.indexOf("android")!==-1&&ze.container!=="audio/mpeg"&&(zt="mp4a.40.2",this.log("Android: force audio codec to ".concat(zt))),H.audioCodec&&H.audioCodec!==zt&&this.log('Swapping manifest audio codec "'.concat(H.audioCodec,'" for "').concat(zt,'"')),ze.levelCodec=zt,ze.id="main",this.log("Init audio buffer, container:".concat(ze.container,", codecs[selected/level/parsed]=[").concat(zt||"","/").concat(H.audioCodec||"","/").concat(ze.codec,"]"))}st&&(st.levelCodec=H.videoCodec,st.id="main",this.log("Init video buffer, container:".concat(st.container,", codecs[level/parsed]=[").concat(H.videoCodec||"","/").concat(st.codec,"]"))),ct&&this.log("Init audiovideo buffer, container:".concat(ct.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(ct.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,Z),Object.keys(Z).forEach(function(br){var Kr=Z[br],zr=Kr.initSegment;zr!=null&&zr.byteLength&&Te.hls.trigger(w.BUFFER_APPENDING,{type:br,data:zr,frag:ne,part:null,chunkMeta:Ae,parent:ne.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,ft.MAIN)}},{key:"backtrack",value:function(H){this.couldBacktrack=!0,this.backtrackFragment=H,this.resetTransmuxer(),this.flushBufferGap(H),this.fragmentTracker.removeFragment(H),this.fragPrevious=null,this.nextLoadPosition=H.start,this.state=Bi.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,Z=null;if(H&&H.readyState>1&&H.seeking===!1){var ne=H.currentTime;if(_i.isBuffered(H,ne)?Z=this.getAppendedFrag(ne):_i.isBuffered(H,ne+.1)&&(Z=this.getAppendedFrag(ne+.1)),Z){this.backtrackFragment=null;var Ae=this.fragPlaying,Te=Z.level;(!Ae||Z.sn!==Ae.sn||Ae.level!==Te||Z.urlId!==Ae.urlId)&&(this.fragPlaying=Z,this.hls.trigger(w.FRAG_CHANGED,{frag:Z}),(!Ae||Ae.level!==Te)&&this.hls.trigger(w.LEVEL_SWITCHED,{level:Te}))}}}},{key:"nextLevel",get:function(){var H=this.nextBufferedFrag;return H?H.level:-1}},{key:"currentFrag",get:function(){var H=this.media;return H?this.fragPlaying||this.getAppendedFrag(H.currentTime):null}},{key:"currentProgramDateTime",get:function(){var H=this.media;if(H){var Z=H.currentTime,ne=this.currentFrag;if(ne&&T(Z)&&T(ne.programDateTime)){var Ae=ne.programDateTime+(Z-ne.start)*1e3;return new Date(Ae)}}return null}},{key:"currentLevel",get:function(){var H=this.currentFrag;return H?H.level:-1}},{key:"nextBufferedFrag",get:function(){var H=this.currentFrag;return H?this.followingBufferedFrag(H):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),L}(io),fs=function(){function ve(te){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,ve),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=te,this.alpha_=te?Math.exp(Math.log(.5)/te):0,this.estimate_=L,this.totalWeight_=K}return Object(s.a)(ve,[{key:"sample",value:function(L,K){var H=Math.pow(this.alpha_,L);this.estimate_=K*(1-H)+H*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_}}]),ve}(),Ds=function(){function ve(te,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,ve),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 fs(te),this.fast_=new fs(L),this.defaultTTFB_=H,this.ttfb_=new fs(te)}return Object(s.a)(ve,[{key:"update",value:function(L,K){var H=this.slow_,Z=this.fast_,ne=this.ttfb_;H.halfLife!==L&&(this.slow_=new fs(L,H.getEstimate(),H.getTotalWeight())),Z.halfLife!==K&&(this.fast_=new fs(K,Z.getEstimate(),Z.getTotalWeight())),ne.halfLife!==L&&(this.ttfb_=new fs(L,ne.getEstimate(),ne.getTotalWeight()))}},{key:"sample",value:function(L,K){L=Math.max(L,this.minDelayMs_);var H=8*K,Z=L/1e3,ne=H/Z;this.fast_.sample(Z,ne),this.slow_.sample(Z,ne)}},{key:"sampleTTFB",value:function(L){var K=L/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(K,2)/2);this.ttfb_.sample(H,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(){}}]),ve}(),go=function(){function ve(te){Object(r.a)(this,ve),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=te;var L=te.config;this.bwEstimator=new Ds(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.FRAG_LOADING,this.onFragLoading,this),L.on(w.FRAG_LOADED,this.onFragLoaded,this),L.on(w.FRAG_BUFFERED,this.onFragBuffered,this),L.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_BUFFERED,this.onFragBuffered,this),L.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onFragLoading",value:function(L,K){var H,Z=K.frag;if(this.ignoreFragment(Z))return;this.fragCurrent=Z,this.partCurrent=(H=K.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,K){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,K,H,Z){var ne=L+H/K,Ae=Z?this.lastLevelLoadSec:0;return ne+Ae}},{key:"onLevelLoaded",value:function(L,K){var H=this.hls.config,Z=K.stats,ne=Z.total,Ae=Z.bwEstimate;T(ne)&&T(Ae)&&(this.lastLevelLoadSec=8*ne/Ae),K.details.live?this.bwEstimator.update(H.abrEwmaSlowLive,H.abrEwmaFastLive):this.bwEstimator.update(H.abrEwmaSlowVoD,H.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var L=this.fragCurrent,K=this.partCurrent,H=this.hls,Z=H.autoLevelEnabled,ne=H.media;if(!L||!ne)return;var Ae=performance.now(),Te=K?K.stats:L.stats,ze=K?K.duration:L.duration,st=Ae-Te.loading.start;if(Te.aborted||Te.loaded&&Te.loaded===Te.total||L.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!Z||ne.paused||!ne.playbackRate||!ne.readyState)return;var ct=H.mainForwardBufferInfo;if(ct===null)return;var zt=this.bwEstimator.getEstimateTTFB(),Tr=Math.abs(ne.playbackRate);if(st<=Math.max(zt,1e3*(ze/(Tr*2))))return;var br=ct.len/Tr;if(br>=2*ze/Tr)return;var Kr=Te.loading.first?Te.loading.first-Te.loading.start:-1,zr=Te.loaded&&Kr>-1,Nn=this.bwEstimator.getEstimate(),Mn=H.levels,Yn=H.minAutoLevel,bi=Mn[L.level],ua=Te.total||Math.max(Te.loaded,Math.round(ze*bi.maxBitrate/8)),Yi=st-Kr;Yi<1&&zr&&(Yi=Math.min(st,Te.loaded*8/Nn));var ta=zr?Te.loaded*1e3/Yi:0,Pa=ta?(ua-Te.loaded)/ta:ua*8/Nn+zt/1e3;if(Pa<=br)return;var Ya=ta?ta*8:Nn,Ba=Number.POSITIVE_INFINITY,Sa;for(Sa=L.level-1;Sa>Yn;Sa--){var Go=Mn[Sa].maxBitrate;if(Ba=this.getTimeToLoadFrag(zt/1e3,Ya,ze*Go,!Mn[Sa].details),Ba<br)break}if(Ba>=Pa)return;if(Ba>ze*10)return;H.nextLoadLevel=Sa,zr?this.bwEstimator.sample(st-Math.min(zt,Kr),Te.loaded):this.bwEstimator.sampleTTFB(st),this.clearTimer(),j.warn("[abr] Fragment ".concat(L.sn).concat(K?" part "+K.index:""," of level ").concat(L.level,` is loading too slowly;
Time to underbuffer: `).concat(br.toFixed(3),` s
Estimated load time for current fragment: `).concat(Pa.toFixed(3),` s
Estimated load time for down switch fragment: `).concat(Ba.toFixed(3),` s
TTFB estimate: `).concat(Kr,`
Current BW estimate: `).concat(T(Nn)?(Nn/1024).toFixed(3):"Unknown",` Kb/s
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
Aborting and switching to level `).concat(Sa)),L.loader&&(this.fragCurrent=this.partCurrent=null,L.abortRequests()),H.trigger(w.FRAG_LOAD_EMERGENCY_ABORTED,{frag:L,part:K,stats:Te})}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,Z=K.part,ne=Z?Z.stats:H.stats;if(H.type===ft.MAIN&&this.bwEstimator.sampleTTFB(ne.loading.first-ne.loading.start),this.ignoreFragment(H))return;if(this.clearTimer(),this.lastLoadedFragLevel=H.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var Ae=Z?Z.duration:H.duration,Te=this.hls.levels[H.level],ze=(Te.loaded?Te.loaded.bytes:0)+ne.loaded,st=(Te.loaded?Te.loaded.duration:0)+Ae;Te.loaded={bytes:ze,duration:st},Te.realBitrate=Math.round(8*ze/st)}if(H.bitrateTest){var ct={stats:ne,frag:H,part:Z,id:H.type};this.onFragBuffered(w.FRAG_BUFFERED,ct),H.bitrateTest=!1}}},{key:"onFragBuffered",value:function(L,K){var H=K.frag,Z=K.part,ne=Z!=null&&Z.stats.loaded?Z.stats:H.stats;if(ne.aborted)return;if(this.ignoreFragment(H))return;var Ae=ne.parsing.end-ne.loading.start-Math.min(ne.loading.first-ne.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(Ae,ne.loaded),ne.bwEstimate=this.bwEstimator.getEstimate(),H.bitrateTest?this.bitrateTestDelay=Ae/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(L){return L.type!==ft.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 H=this.getNextABRAutoLevel();if(L!==-1){var Z=this.hls.levels;if(Z.length>Math.max(L,H)&&Z[L].loadError<=Z[H].loadError)return L}return L!==-1&&(H=Math.min(L,H)),H},set:function(L){this._nextAutoLevel=L}},{key:"getNextABRAutoLevel",value:function(){var L=this.fragCurrent,K=this.partCurrent,H=this.hls,Z=H.maxAutoLevel,ne=H.config,Ae=H.minAutoLevel,Te=H.media,ze=K?K.duration:L?L.duration:0,st=Te&&Te.playbackRate!==0?Math.abs(Te.playbackRate):1,ct=this.bwEstimator?this.bwEstimator.getEstimate():ne.abrEwmaDefaultEstimate,zt=H.mainForwardBufferInfo,Tr=(zt?zt.len:0)/st,br=this.findBestLevel(ct,Ae,Z,Tr,ne.abrBandWidthFactor,ne.abrBandWidthUpFactor);if(br>=0)return br;j.trace("[abr] ".concat(Tr?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var Kr=ze?Math.min(ze,ne.maxStarvationDelay):ne.maxStarvationDelay,zr=ne.abrBandWidthFactor,Nn=ne.abrBandWidthUpFactor;if(!Tr){var Mn=this.bitrateTestDelay;if(Mn){var Yn=ze?Math.min(ze,ne.maxLoadingDelay):ne.maxLoadingDelay;Kr=Yn-Mn,j.trace("[abr] bitrate test took ".concat(Math.round(1e3*Mn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*Kr)," ms")),zr=Nn=1}}return br=this.findBestLevel(ct,Ae,Z,Tr+Kr,zr,Nn),Math.max(br,0)}},{key:"findBestLevel",value:function(L,K,H,Z,ne,Ae){for(var Te,ze=this.fragCurrent,st=this.partCurrent,ct=this.lastLoadedFragLevel,zt=this.hls.levels,Tr=zt[ct],br=!!(Tr!=null&&(Te=Tr.details)!=null&&Te.live),Kr=Tr==null?void 0:Tr.codecSet,zr=st?st.duration:ze?ze.duration:0,Nn=this.bwEstimator.getEstimateTTFB()/1e3,Mn=K,Yn=-1,bi=H;bi>=K;bi--){var ua=zt[bi];if(!ua||Kr&&ua.codecSet!==Kr){ua&&(Mn=Math.min(bi,Mn),Yn=Math.max(bi,Yn));continue}Yn!==-1&&j.trace("[abr] Skipped level(s) ".concat(Mn,"-").concat(Yn,' with CODECS:"').concat(zt[Yn].attrs.CODECS,'"; not compatible with "').concat(Tr.attrs.CODECS,'"'));var Yi=ua.details,ta=(st?Yi==null?void 0:Yi.partTarget:Yi==null?void 0:Yi.averagetargetduration)||zr,Pa=void 0;bi<=ct?Pa=ne*L:Pa=Ae*L;var Ya=zt[bi].maxBitrate,Ba=this.getTimeToLoadFrag(Nn,Pa,Ya*ta,Yi===void 0);if(j.trace("[abr] level:".concat(bi," adjustedbw-bitrate:").concat(Math.round(Pa-Ya)," avgDuration:").concat(ta.toFixed(1)," maxFetchDuration:").concat(Z.toFixed(1)," fetchDuration:").concat(Ba.toFixed(1))),Pa>Ya&&(Ba===0||!T(Ba)||br&&!this.bitrateTestDelay||Ba<Z))return bi}return-1}}]),ve}(),Ft=function(){function ve(){Object(r.a)(this,ve),this.chunks=[],this.dataLength=0}return Object(s.a)(ve,[{key:"push",value:function(L){this.chunks.push(L),this.dataLength+=L.length}},{key:"flush",value:function(){var L=this.chunks,K=this.dataLength,H;if(L.length)L.length===1?H=L[0]:H=nr(L,K);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),ve}();function nr(ve,te){for(var L=new Uint8Array(te),K=0,H=0;H<ve.length;H++){var Z=ve[H];L.set(Z,K),K+=Z.length}return L}var On=100,di=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H,Z){var ne;return Object(r.a)(this,L),ne=te.call(this,K,H,Z,"[audio-stream-controller]",ft.AUDIO),ne.videoBuffer=null,ne.videoTrackCC=-1,ne.waitingVideoCC=-1,ne.bufferedTrack=null,ne.switchingTrack=null,ne.trackId=-1,ne.waitingData=null,ne.mainDetails=null,ne.bufferFlushed=!1,ne.cachedTrackLoadedData=null,ne._registerListeners(),ne}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 H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.BUFFER_RESET,this.onBufferReset,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.BUFFER_RESET,this.onBufferReset,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,Z){var ne=Z.frag,Ae=Z.id,Te=Z.initPTS,ze=Z.timescale;if(Ae==="main"){var st=ne.cc;this.initPTS[ne.cc]={baseTime:Te,timescale:ze},this.log("InitPTS for cc: ".concat(st," found from main: ").concat(Te)),this.videoTrackCC=st,this.state===Bi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=Bi.STOPPED;return}var Z=this.lastCurrentTime;this.stopLoad(),this.setInterval(On),Z>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z,this.state=Bi.IDLE):(this.loadedmetadata=!1,this.state=Bi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Bi.IDLE:this.doTickIdle();break;case Bi.WAITING_TRACK:{var H,Z=this.levels,ne=this.trackId,Ae=Z==null||(H=Z[ne])==null?void 0:H.details;if(Ae){if(this.waitForCdnTuneIn(Ae))break;this.state=Bi.WAITING_INIT_PTS}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=performance.now(),st=this.retryDate;(!st||ze>=st||(Te=this.media)!=null&&Te.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Bi.IDLE);break}case Bi.WAITING_INIT_PTS:{var ct=this.waitingData;if(ct){var zt=ct.frag,Tr=ct.part,br=ct.cache,Kr=ct.complete;if(this.initPTS[zt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.FRAG_LOADING;var zr=br.flush(),Nn={frag:zt,part:Tr,payload:zr,networkDetails:null};this._handleFragmentLoadProgress(Nn),Kr&&Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,Nn)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(zt.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var Mn=this.getLoadPosition(),Yn=_i.bufferInfo(this.mediaBuffer,Mn,this.config.maxBufferHole),bi=Ln(Yn.end,this.config.maxFragLookUpTolerance,zt);bi<0&&(this.log("Waiting fragment cc (".concat(zt.cc,") @ ").concat(zt.start," cancelled because another fragment at ").concat(Yn.end," is needed")),this.clearWaitingFragment())}}else this.state=Bi.IDLE}}this.onTickEnd()}},{key:"clearWaitingFragment",value:function(){var H=this.waitingData;H&&(this.fragmentTracker.removeFragment(H.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.IDLE)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),Object(t.a)(Object(m.a)(L.prototype),"resetLoadingState",this).call(this)}},{key:"onTickEnd",value:function(){var H=this.media;if(!(H!=null&&H.readyState))return;this.lastCurrentTime=H.currentTime}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levels,ne=this.media,Ae=this.trackId,Te=H.config;if(!(Z!=null&&Z[Ae]))return;if(!ne&&(this.startFragRequested||!Te.startFragPrefetch))return;var ze=Z[Ae],st=ze.details;if(!st||st.live&&this.levelLastLoaded!==Ae||this.waitForCdnTuneIn(st)){this.state=Bi.WAITING_TRACK;return}var ct=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&ct&&(this.bufferFlushed=!1,this.afterBufferFlushed(ct,ue.AUDIO,ft.AUDIO));var zt=this.getFwdBufferInfo(ct,ft.AUDIO);if(zt===null)return;var Tr=this.bufferedTrack,br=this.switchingTrack;if(!br&&this._streamEnded(zt,st)){H.trigger(w.BUFFER_EOS,{type:"audio"}),this.state=Bi.ENDED;return}var Kr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,ft.MAIN),zr=zt.len,Nn=this.getMaxBufferLength(Kr==null?void 0:Kr.len);if(zr>=Nn&&!br)return;var Mn=st.fragments,Yn=Mn[0].start,bi=zt.end;if(br&&ne){var ua=this.getLoadPosition();Tr&&br.attrs!==Tr.attrs&&(bi=ua),st.PTSKnown&&ua<Yn&&((zt.end>Yn||zt.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),ne.currentTime=Yn+.05))}var Yi=this.getNextFragment(bi,st),ta=!1;if(Yi&&this.isLoopLoading(Yi,bi)&&(ta=!!Yi.gap,Yi=this.getNextFragmentLoopLoading(Yi,st,zt,ft.MAIN,Nn)),!Yi){this.bufferFlushed=!0;return}var Pa=Kr&&Yi.start>Kr.end+st.targetduration;if(Pa||!(Kr!=null&&Kr.len)&&zt.len){var Ya=this.getAppendedFrag(Yi.start,ft.MAIN);if(Ya===null)return;if(ta||(ta=!!Ya.gap||!!Pa&&Kr.len===0),Pa&&!ta||ta&&zt.nextStart&&zt.nextStart<Ya.end)return}this.loadFragment(Yi,ze,bi)}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.min(Math.max(Z,H),this.config.maxMaxBufferLength):Z}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(H,Z){var ne=Z.audioTracks;this.resetTransmuxer(),this.levels=ne.map(function(Ae){return new Ot(Ae)})}},{key:"onAudioTrackSwitching",value:function(H,Z){var ne=!!Z.url;this.trackId=Z.id;var Ae=this.fragCurrent;Ae&&(Ae.abortRequests(),this.removeUnbufferedFrags(Ae.start)),this.resetLoadingState(),ne?this.setInterval(On):this.resetTransmuxer(),ne?(this.switchingTrack=Z,this.state=Bi.IDLE):(this.switchingTrack=null,this.bufferedTrack=Z,this.state=Bi.STOPPED),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(w.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne;if(this.mainDetails==null){this.cachedTrackLoadedData=Z;return}var Ae=this.levels,Te=Z.details,ze=Z.id;if(!Ae){this.warn("Audio tracks were reset while loading level ".concat(ze));return}this.log("Track ".concat(ze," loaded [").concat(Te.startSN,",").concat(Te.endSN,"]").concat(Te.lastPartSn?"[part-".concat(Te.lastPartSn,"-").concat(Te.lastPartIndex,"]"):"",",duration:").concat(Te.totalduration));var st=Ae[ze],ct=0;if(Te.live||(ne=st.details)!=null&&ne.live){var zt=this.mainDetails;if(Te.fragments[0]||(Te.deltaUpdateFailed=!0),Te.deltaUpdateFailed||!zt)return;!st.details&&Te.hasProgramDateTime&&zt.hasProgramDateTime?(La(Te,zt),ct=Te.fragments[0].start):ct=this.alignPlaylists(Te,st.details)}st.details=Te,this.levelLastLoaded=ze,!this.startFragRequested&&(this.mainDetails||!Te.live)&&this.setStartPosition(st.details,ct),this.state===Bi.WAITING_TRACK&&!this.waitForCdnTuneIn(Te)&&(this.state=Bi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,ne=H.frag,Ae=H.part,Te=H.payload,ze=this.config,st=this.trackId,ct=this.levels;if(!ct){this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(ne.sn," of level ").concat(ne.level," will not be buffered"));return}var zt=ct[st];if(!zt){this.warn("Audio track is undefined on fragment load progress");return}var Tr=zt.details;if(!Tr){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(ne.start);return}var br=ze.defaultAudioCodec||zt.audioCodec||"mp4a.40.2",Kr=this.transmuxer;Kr||(Kr=this.transmuxer=new Qs(this.hls,ft.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var zr=this.initPTS[ne.cc],Nn=(Z=ne.initSegment)==null?void 0:Z.data;if(zr!==void 0){var Mn=!1,Yn=Ae?Ae.index:-1,bi=Yn!==-1,ua=new Ki(ne.level,ne.sn,ne.stats.chunkCount,Te.byteLength,Yn,bi);Kr.push(Te,Nn,br,"",ne,Ae,Tr.totalduration,Mn,ua,zr)}else{this.log("Unknown video PTS for cc ".concat(ne.cc,", waiting for video PTS before demuxing audio frag ").concat(ne.sn," of [").concat(Tr.startSN," ,").concat(Tr.endSN,"],track ").concat(st));var Yi=this.waitingData=this.waitingData||{frag:ne,part:Ae,cache:new Ft,complete:!1},ta=Yi.cache;ta.push(new Uint8Array(Te)),this.waitingVideoCC=this.videoTrackCC,this.state=Bi.WAITING_INIT_PTS}}},{key:"_handleFragmentLoadComplete",value:function(H){if(this.waitingData){this.waitingData.complete=!0;return}Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,H)}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(H,Z){var ne=Z.tracks.audio;ne&&(this.mediaBuffer=ne.buffer||null),Z.tracks.video&&(this.videoBuffer=Z.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(H,Z){var ne=Z.frag,Ae=Z.part;if(ne.type!==ft.AUDIO){if(!this.loadedmetadata&&ne.type===ft.MAIN){var Te;(Te=this.videoBuffer||this.media)!=null&&Te.buffered.length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(Ae?" p: "+Ae.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(ne.sn!=="initSegment"){this.fragPrevious=ne;var ze=this.switchingTrack;ze&&(this.bufferedTrack=ze,this.switchingTrack=null,this.hls.trigger(w.AUDIO_TRACK_SWITCHED,b({},ze)))}this.fragBufferedComplete(ne,Ae)}},{key:"onError",value:function(H,Z){var ne;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ft.AUDIO,Z);break;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_TRACK&&((ne=Z.context)==null?void 0:ne.type)===wt.AUDIO_TRACK&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="audio")return;this.reduceLengthAndFlushBuffer(Z)&&(this.bufferedTrack=null,Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"onBufferFlushed",value:function(H,Z){var ne=Z.type;ne===ue.AUDIO&&(this.bufferFlushed=!0,this.state===Bi.ENDED&&(this.state=Bi.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var Z,ne="audio",Ae=this.hls,Te=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var ct=st.frag,zt=st.part,Tr=st.level,br=Tr.details,Kr=Te.audio,zr=Te.text,Nn=Te.id3,Mn=Te.initSegment;if(this.fragContextChanged(ct)||!br){this.fragmentTracker.removeFragment(ct);return}if(this.state=Bi.PARSING,this.switchingTrack&&Kr&&this.completeAudioSwitch(this.switchingTrack),Mn!=null&&Mn.tracks){var Yn=ct.initSegment||ct;this._bufferInitSegment(Mn.tracks,Yn,ze),Ae.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:Yn,id:ne,tracks:Mn.tracks})}if(Kr){var bi=Kr.startPTS,ua=Kr.endPTS,Yi=Kr.startDTS,ta=Kr.endDTS;zt&&(zt.elementaryStreams[ue.AUDIO]={startPTS:bi,endPTS:ua,startDTS:Yi,endDTS:ta}),ct.setElementaryStreamInfo(ue.AUDIO,bi,ua,Yi,ta),this.bufferFragmentData(Kr,ct,zt,ze)}if(Nn!=null&&(Z=Nn.samples)!=null&&Z.length){var Pa=E({id:ne,frag:ct,details:br},Nn);Ae.trigger(w.FRAG_PARSING_METADATA,Pa)}if(zr){var Ya=E({id:ne,frag:ct,details:br},zr);Ae.trigger(w.FRAG_PARSING_USERDATA,Ya)}}},{key:"_bufferInitSegment",value:function(H,Z,ne){if(this.state!==Bi.PARSING)return;H.video&&delete H.video;var Ae=H.audio;if(!Ae)return;Ae.levelCodec=Ae.codec,Ae.id="audio",this.log("Init audio buffer, container:".concat(Ae.container,", codecs[parsed]=[").concat(Ae.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,H);var Te=Ae.initSegment;if(Te!=null&&Te.byteLength){var ze={type:"audio",frag:Z,part:null,chunkMeta:ne,parent:Z.type,data:Te};this.hls.trigger(w.BUFFER_APPENDING,ze)}this.tick()}},{key:"loadFragment",value:function(H,Z,ne){var Ae=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||Ae===xt.NOT_LOADED||Ae===xt.PARTIAL){var Te;H.sn==="initSegment"?this._loadInitSegment(H,Z):(Te=Z.details)!=null&&Te.live&&!this.initPTS[H.cc]?(this.log("Waiting for video PTS in continuity counter ".concat(H.cc," of live stream before loading audio fragment ").concat(H.sn," of level ").concat(this.trackId)),this.state=Bi.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}else this.clearTrackerIfNeeded(H)}},{key:"completeAudioSwitch",value:function(H){var Z=this.hls,ne=this.media,Ae=this.bufferedTrack,Te=Ae==null?void 0:Ae.attrs,ze=H.attrs;ne&&Te&&(Te.CHANNELS!==ze.CHANNELS||Te.NAME!==ze.NAME||Te.LANGUAGE!==ze.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=H,this.switchingTrack=null,Z.trigger(w.AUDIO_TRACK_SWITCHED,b({},H))}}]),L}(io),It=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=te.call(this,K,"[audio-track-controller]"),H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.currentTrack=null,H.selectDefaultTrack=!0,H.registerListeners(),H}return Object(s.a)(L,[{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,Object(t.a)(Object(m.a)(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(H,Z){this.tracks=Z.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(H,Z){var ne=Z.id,Ae=Z.groupId,Te=Z.details,ze=this.tracksInGroup[ne];if(!ze||ze.groupId!==Ae){this.warn("Track with id:".concat(ne," and group:").concat(Ae," not found in active group ").concat(ze.groupId));return}var st=ze.details;ze.details=Z.details,this.log("audio-track ".concat(ne,' "').concat(ze.name,'" lang:').concat(ze.lang," group:").concat(Ae," loaded [").concat(Te.startSN,"-").concat(Te.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.audioGroupIds))return;var ne=Z.audioGroupIds[Z.urlId];if(this.groupId!==ne){this.groupId=ne||null;var Ae=this.tracks.filter(function(ze){return!ne||ze.groupId===ne});this.selectDefaultTrack&&!Ae.some(function(ze){return ze.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=Ae;var Te={audioTracks:Ae};this.log("Updating audio tracks, ".concat(Ae.length," track(s) found in group:").concat(ne)),this.hls.trigger(w.AUDIO_TRACKS_UPDATED,Te),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===wt.AUDIO_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(Z))}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1,this.setAudioTrack(H)}},{key:"setAudioTrack",value:function(H){var Z=this.tracksInGroup;if(H<0||H>=Z.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var ne=this.currentTrack;Z[this.trackId];var Ae=Z[H],Te=Ae.groupId,ze=Ae.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(ze,'" lang:').concat(Ae.lang," group:").concat(Te)),this.trackId=H,this.currentTrack=Ae,this.selectDefaultTrack=!1,this.hls.trigger(w.AUDIO_TRACK_SWITCHING,b({},Ae)),Ae.details&&!Ae.details.live)return;var st=this.switchParams(Ae.url,ne==null?void 0:ne.details);this.loadPlaylist(st)}},{key:"selectInitialTrack",value:function(){var H=this.tracksInGroup,Z=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(Z!==-1)this.setAudioTrack(Z);else{var ne=new Error("No track found for running audio group-ID: ".concat(this.groupId," track count: ").concat(H.length));this.warn(ne.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:ne})}}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var Ae=Z[ne];if(!this.selectDefaultTrack||Ae.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===Ae.attrs["STABLE-RENDITION-ID"])return Ae.id;if(H.name===Ae.name&&H.lang===Ae.lang)return Ae.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,Ae=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("loading audio-track playlist ".concat(ne,' "').concat(Z.name,'" lang:').concat(Z.lang," group:").concat(Ae)),this.clearTimer(),this.hls.trigger(w.AUDIO_TRACK_LOADING,{url:Te,id:ne,groupId:Ae,deliveryDirectives:H||null})}}}]),L}(ur);function ce(ve,te){if(ve.length!==te.length)return!1;for(var L=0;L<ve.length;L++)if(!Se(ve[L].attrs,te[L].attrs))return!1;return!0}function Se(ve,te){var L=ve["STABLE-RENDITION-ID"];return L?L===te["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(K){return ve[K]!==te[K]})}var Le=500,Qe=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H,Z){var ne;return Object(r.a)(this,L),ne=te.call(this,K,H,Z,"[subtitle-stream-controller]",ft.SUBTITLE),ne.levels=[],ne.currentTrackId=-1,ne.tracksBuffered=[],ne.mainDetails=null,ne._registerListeners(),ne}return Object(s.a)(L,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=Bi.IDLE,this.setInterval(Le),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details}},{key:"onSubtitleFragProcessed",value:function(H,Z){var ne=Z.frag,Ae=Z.success;if(this.fragPrevious=ne,this.state=Bi.IDLE,!Ae)return;var Te=this.tracksBuffered[this.currentTrackId];if(!Te)return;for(var ze,st=ne.start,ct=0;ct<Te.length;ct++)if(st>=Te[ct].start&&st<=Te[ct].end){ze=Te[ct];break}var zt=ne.start+ne.duration;ze?ze.end=zt:(ze={start:st,end:zt},Te.push(ze)),this.fragmentTracker.fragBuffered(ne)}},{key:"onBufferFlushing",value:function(H,Z){var ne=Z.startOffset,Ae=Z.endOffset;if(ne===0&&Ae!==Number.POSITIVE_INFINITY){var Te=this.currentTrackId,ze=this.levels;if(!ze.length||!ze[Te]||!ze[Te].details)return;var st=ze[Te].details,ct=st.targetduration,zt=Ae-ct;if(zt<=0)return;Z.endOffsetSubtitles=Math.max(0,zt),this.tracksBuffered.forEach(function(Tr){for(var br=0;br<Tr.length;){if(Tr[br].end<=zt){Tr.shift();continue}else if(Tr[br].start<zt)Tr[br].start=zt;else break;br++}}),this.fragmentTracker.removeFragmentsInRange(ne,zt,ft.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,Z){if(!this.loadedmetadata&&Z.frag.type===ft.MAIN){var ne;(ne=this.media)!=null&&ne.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(H,Z){var ne=Z.frag;(ne==null?void 0:ne.type)===ft.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(H,Z){var ne=this,Ae=Z.subtitleTracks;if(ce(this.levels,Ae)){this.levels=Ae.map(function(Te){return new Ot(Te)});return}this.tracksBuffered=[],this.levels=Ae.map(function(Te){var ze=new Ot(Te);return ne.tracksBuffered[ze.id]=[],ze}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ft.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(H,Z){if(this.currentTrackId=Z.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var ne=this.levels[this.currentTrackId];ne!=null&&ne.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,ne&&this.setInterval(Le)}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne,Ae=Z.details,Te=Z.id,ze=this.currentTrackId,st=this.levels;if(!st.length)return;var ct=st[ze];if(Te>=st.length||Te!==ze||!ct)return;this.mediaBuffer=this.mediaBufferTimeRanges;var zt=0;if(Ae.live||(ne=ct.details)!=null&&ne.live){var Tr=this.mainDetails;if(Ae.deltaUpdateFailed||!Tr)return;var br=Tr.fragments[0];ct.details?(zt=this.alignPlaylists(Ae,ct.details),zt===0&&br&&(zt=br.start,pn(Ae,zt))):Ae.hasProgramDateTime&&Tr.hasProgramDateTime?(La(Ae,Tr),zt=Ae.fragments[0].start):br&&(zt=br.start,pn(Ae,zt))}if(ct.details=Ae,this.levelLastLoaded=Te,!this.startFragRequested&&(this.mainDetails||!Ae.live)&&this.setStartPosition(ct.details,zt),this.tick(),Ae.live&&!this.fragCurrent&&this.media&&this.state===Bi.IDLE){var Kr=vi(null,Ae.fragments,this.media.currentTime,0);Kr||(this.warn("Subtitle playlist not aligned with playback"),ct.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this,ne=H.frag,Ae=H.payload,Te=ne.decryptdata,ze=this.hls;if(this.fragContextChanged(ne))return;if(Ae&&Ae.byteLength>0&&Te&&Te.key&&Te.iv&&Te.method==="AES-128"){var st=performance.now();this.decrypter.decrypt(new Uint8Array(Ae),Te.key.buffer,Te.iv.buffer).catch(function(ct){throw ze.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:ct,reason:ct.message,frag:ne}),ct}).then(function(ct){var zt=performance.now();ze.trigger(w.FRAG_DECRYPTED,{frag:ne,payload:ct,stats:{tstart:st,tdecrypt:zt}})}).catch(function(ct){Z.warn("".concat(ct.name,": ").concat(ct.message)),Z.state=Bi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Bi.IDLE;return}if(this.state===Bi.IDLE){var H=this.currentTrackId,Z=this.levels,ne=Z[H];if(!Z.length||!ne||!ne.details)return;var Ae=ne.details,Te=Ae.targetduration,ze=this.config,st=this.getLoadPosition(),ct=_i.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],st-Te,ze.maxBufferHole),zt=ct.end,Tr=ct.len,br=this.getFwdBufferInfo(this.media,ft.MAIN),Kr=this.getMaxBufferLength(br==null?void 0:br.len)+Te;if(Tr>Kr)return;var zr=Ae.fragments,Nn=zr.length,Mn=Ae.edge,Yn=null,bi=this.fragPrevious;if(zt<Mn){var ua=ze.maxFragLookUpTolerance;Yn=vi(bi,zr,Math.max(zr[0].start,zt),ua),!Yn&&bi&&bi.start<zr[0].start&&(Yn=zr[0])}else Yn=zr[Nn-1];if(!Yn)return;Yn=this.mapToInitFragWhenRequired(Yn),this.fragmentTracker.getState(Yn)===xt.NOT_LOADED&&this.loadFragment(Yn,ne,zt)}}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.max(Z,H):Z}},{key:"loadFragment",value:function(H,Z,ne){this.fragCurrent=H,H.sn==="initSegment"?this._loadInitSegment(H,Z):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,Z,ne))}},{key:"mediaBufferTimeRanges",get:function(){return new Lt(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(io),Lt=Object(s.a)(function ve(te){Object(r.a)(this,ve),this.buffered=void 0;var L=function(H,Z,ne){if(Z=Z>>>0,Z>ne-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(Z,") is greater than the maximum bound (").concat(ne,")"));return te[Z][H]};this.buffered={get length(){return te.length},end:function(H){return L("end",H,te.length)},start:function(H){return L("start",H,te.length)}}}),ir=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=te.call(this,K,"[subtitle-track-controller]"),H.media=null,H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.selectDefaultTrack=!0,H.queuedDefaultTrack=-1,H.trackChangeListener=function(){return H.onTextTracksChanged()},H.asyncPollTrackChange=function(){return H.pollTrackChange(0)},H.useTextTrackPolling=!1,H.subtitlePollingInterval=-1,H._subtitleDisplay=!0,H.registerListeners(),H}return Object(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(H){this._subtitleDisplay=H,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,Z){if(this.media=Z.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)}},{key:"pollTrackChange",value:function(H){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,H)}},{key:"onMediaDetaching",value:function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var H=Yr(this.media.textTracks);H.forEach(function(Z){Wn(Z)}),this.subtitleTrack=-1,this.media=null}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var ne=Z.id,Ae=Z.details,Te=this.trackId,ze=this.tracksInGroup[Te];if(!ze){this.warn("Invalid subtitle track id ".concat(ne));return}var st=ze.details;ze.details=Z.details,this.log("subtitle track ".concat(ne," loaded [").concat(Ae.startSN,"-").concat(Ae.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.textGroupIds))return;var ne=Z.textGroupIds[Z.urlId],Ae=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==ne){var Te=this.tracks.filter(function(ct){return!ne||ct.groupId===ne});this.tracksInGroup=Te;var ze=this.findTrackId(Ae==null?void 0:Ae.name)||this.findTrackId();this.groupId=ne||null;var st={subtitleTracks:Te};this.log("Updating subtitle tracks, ".concat(Te.length,' track(s) found in "').concat(ne,'" group-id')),this.hls.trigger(w.SUBTITLE_TRACKS_UPDATED,st),ze!==-1&&this.setSubtitleTrack(ze,Ae)}else this.shouldReloadPlaylist(Ae)&&this.setSubtitleTrack(this.trackId,Ae)}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,ne=0;ne<Z.length;ne++){var Ae=Z[ne];if((!this.selectDefaultTrack||Ae.default)&&(!H||H===Ae.name))return Ae.id}return-1}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===wt.SUBTITLE_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&this.checkRetry(Z)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1;var Z=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(H,Z)}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var ne=Z.id,Ae=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("Loading subtitle playlist for id ".concat(ne)),this.hls.trigger(w.SUBTITLE_TRACK_LOADING,{url:Te,id:ne,groupId:Ae,deliveryDirectives:H||null})}}},{key:"toggleTrackModes",value:function(H){var Z=this,ne=this.media,Ae=this.trackId;if(!ne)return;var Te=Yr(ne.textTracks),ze=Te.filter(function(zt){return zt.groupId===Z.groupId});if(H===-1)[].slice.call(Te).forEach(function(zt){zt.mode="disabled"});else{var st=ze[Ae];st&&(st.mode="disabled")}var ct=ze[H];ct&&(ct.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(H,Z){var ne,Ae=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=H;return}if(this.trackId!==H&&this.toggleTrackModes(H),this.trackId===H&&(H===-1||(ne=Ae[H])!=null&&ne.details)||H<-1||H>=Ae.length)return;this.clearTimer();var Te=Ae[H];if(this.log("Switching to subtitle-track ".concat(H)+(Te?' "'.concat(Te.name,'" lang:').concat(Te.lang," group:").concat(Te.groupId):"")),this.trackId=H,Te){var ze=Te.id,st=Te.groupId,ct=st===void 0?"":st,zt=Te.name,Tr=Te.type,br=Te.url;this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:ze,groupId:ct,name:zt,type:Tr,url:br});var Kr=this.switchParams(Te.url,Z==null?void 0:Z.details);this.loadPlaylist(Kr)}else this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:H})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var H=-1,Z=Yr(this.media.textTracks),ne=0;ne<Z.length;ne++)if(Z[ne].mode==="hidden")H=ne;else if(Z[ne].mode==="showing"){H=ne;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),L}(ur);function Yr(ve){for(var te=[],L=0;L<ve.length;L++){var K=ve[L];(K.kind==="subtitles"||K.kind==="captions")&&K.label&&te.push(ve[L])}return te}var hn=function(){function ve(te){Object(r.a)(this,ve),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=te}return Object(s.a)(ve,[{key:"append",value:function(L,K){var H=this.queues[K];H.push(L),H.length===1&&this.buffers[K]&&this.executeNext(K)}},{key:"insertAbort",value:function(L,K){var H=this.queues[K];H.unshift(L),this.executeNext(K)}},{key:"appendBlocker",value:function(L){var K,H=new Promise(function(ne){K=ne}),Z={execute:K,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(Z,L),H}},{key:"executeNext",value:function(L){var K=this.buffers,H=this.queues,Z=K[L],ne=H[L];if(ne.length){var Ae=ne[0];try{Ae.execute()}catch(Te){j.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),Ae.onError(Te),Z!=null&&Z.updating||(ne.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]}}]),ve}(),In=Qt(),si=/([ha]vc.)(?:\.[^.,]+)+/,wi=function(){function ve(te){var L=this;Object(r.a)(this,ve),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,H=L.mediaSource;j.log("[buffer-controller]: Media source opened"),K&&(K.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(w.MEDIA_ATTACHED,{media:K})),H&&H.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){j.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){j.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var K=L.media,H=L._objectUrl;K&&K.src!==H&&j.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(K.src,")"))},this.hls=te,this._initSourceBuffer(),this.registerListeners()}return Object(s.a)(ve,[{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(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_RESET,this.onBufferReset,this),L.on(w.BUFFER_APPENDING,this.onBufferAppending,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.BUFFER_EOS,this.onBufferEos,this),L.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(w.FRAG_PARSED,this.onFragParsed,this),L.on(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_RESET,this.onBufferReset,this),L.off(w.BUFFER_APPENDING,this.onBufferAppending,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.BUFFER_EOS,this.onBufferEos,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(w.FRAG_PARSED,this.onFragParsed,this),L.off(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new hn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null}},{key:"onManifestLoading",value:function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}},{key:"onManifestParsed",value:function(L,K){var H=2;(K.audio&&!K.video||!K.altAudio||!1)&&(H=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=H,j.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(L,K){var H=this.media=K.media;if(H&&In){var Z=this.mediaSource=new In;Z.addEventListener("sourceopen",this._onMediaSourceOpen),Z.addEventListener("sourceended",this._onMediaSourceEnded),Z.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(Z),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,K=this.mediaSource,H=this._objectUrl;if(K){if(j.log("[buffer-controller]: media source detaching"),K.readyState==="open")try{K.endOfStream()}catch(Z){j.warn("[buffer-controller]: onMediaDetaching: ".concat(Z.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),H&&self.URL.revokeObjectURL(H),L.src===H?(L.removeAttribute("src"),L.load()):j.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(w.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(K){var H=L.sourceBuffer[K];try{H&&(L.removeBufferListeners(K),L.mediaSource&&L.mediaSource.removeSourceBuffer(H),L.sourceBuffer[K]=void 0)}catch(Z){j.warn("[buffer-controller]: Failed to reset the ".concat(K," buffer"),Z)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,K){var H=this,Z=this.getSourceBufferTypes().length;if(Object.keys(K).forEach(function(ne){if(Z){var Ae=H.tracks[ne];if(Ae&&typeof Ae.buffer.changeType=="function"){var Te=K[ne],ze=Te.id,st=Te.codec,ct=Te.levelCodec,zt=Te.container,Tr=Te.metadata,br=(Ae.levelCodec||Ae.codec).replace(si,"$1"),Kr=(ct||st).replace(si,"$1");if(br!==Kr){var zr="".concat(zt,";codecs=").concat(ct||st);H.appendChangeType(ne,zr),j.log("[buffer-controller]: switching codec ".concat(br," to ").concat(Kr)),H.tracks[ne]={buffer:Ae.buffer,codec:st,container:zt,levelCodec:ct,metadata:Tr,id:ze}}}}else H.pendingTracks[ne]=K[ne]}),Z)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,K){var H=this,Z=this.operationQueue,ne={execute:function(){var Te=H.sourceBuffer[L];Te&&(j.log("[buffer-controller]: changing ".concat(L," sourceBuffer type to ").concat(K)),Te.changeType(K)),Z.shiftAndExecuteNext(L)},onStart:function(){},onComplete:function(){},onError:function(Te){j.warn("[buffer-controller]: Failed to change ".concat(L," SourceBuffer type"),Te)}};Z.append(ne,L)}},{key:"onBufferAppending",value:function(L,K){var H=this,Z=this.hls,ne=this.operationQueue,Ae=this.tracks,Te=K.data,ze=K.type,st=K.frag,ct=K.part,zt=K.chunkMeta,Tr=zt.buffering[ze],br=self.performance.now();Tr.start=br;var Kr=st.stats.buffering,zr=ct?ct.stats.buffering:null;Kr.start===0&&(Kr.start=br),zr&&zr.start===0&&(zr.start=br);var Nn=Ae.audio,Mn=!1;ze==="audio"&&(Nn==null?void 0:Nn.container)==="audio/mpeg"&&(Mn=!this.lastMpegAudioChunk||zt.id===1||this.lastMpegAudioChunk.sn!==zt.sn,this.lastMpegAudioChunk=zt);var Yn=st.start,bi={execute:function(){if(Tr.executeStart=self.performance.now(),Mn){var Yi=H.sourceBuffer[ze];if(Yi){var ta=Yn-Yi.timestampOffset;Math.abs(ta)>=.1&&(j.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Yn," (delta: ").concat(ta,") sn: ").concat(st.sn,")")),Yi.timestampOffset=Yn)}}H.appendExecutor(Te,ze)},onStart:function(){},onComplete:function(){var Yi=self.performance.now();Tr.executeEnd=Tr.end=Yi,Kr.first===0&&(Kr.first=Yi),zr&&zr.first===0&&(zr.first=Yi);var ta=H.sourceBuffer,Pa={};for(var Ya in ta)Pa[Ya]=_i.getBuffered(ta[Ya]);H.appendError=0,H.hls.trigger(w.BUFFER_APPENDED,{type:ze,frag:st,part:ct,chunkMeta:zt,parent:st.type,timeRanges:Pa})},onError:function(Yi){j.error("[buffer-controller]: Error encountered while trying to append to the ".concat(ze," SourceBuffer"),Yi);var ta={type:O.MEDIA_ERROR,parent:st.type,details:I.BUFFER_APPEND_ERROR,frag:st,part:ct,chunkMeta:zt,error:Yi,err:Yi,fatal:!1};Yi.code===DOMException.QUOTA_EXCEEDED_ERR?ta.details=I.BUFFER_FULL_ERROR:(H.appendError++,ta.details=I.BUFFER_APPEND_ERROR,H.appendError>Z.config.appendErrorMaxRetry&&(j.error("[buffer-controller]: Failed ".concat(Z.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),ta.fatal=!0)),Z.trigger(w.ERROR,ta)}};ne.append(bi,ze)}},{key:"onBufferFlushing",value:function(L,K){var H=this,Z=this.operationQueue,ne=function(Te){return{execute:H.removeExecutor.bind(H,Te,K.startOffset,K.endOffset),onStart:function(){},onComplete:function(){H.hls.trigger(w.BUFFER_FLUSHED,{type:Te})},onError:function(st){j.warn("[buffer-controller]: Failed to remove from ".concat(Te," SourceBuffer"),st)}}};K.type?Z.append(ne(K.type),K.type):this.getSourceBufferTypes().forEach(function(Ae){Z.append(ne(Ae),Ae)})}},{key:"onFragParsed",value:function(L,K){var H=this,Z=K.frag,ne=K.part,Ae=[],Te=ne?ne.elementaryStreams:Z.elementaryStreams;Te[ue.AUDIOVIDEO]?Ae.push("audiovideo"):(Te[ue.AUDIO]&&Ae.push("audio"),Te[ue.VIDEO]&&Ae.push("video"));var ze=function(){var ct=self.performance.now();Z.stats.buffering.end=ct,ne&&(ne.stats.buffering.end=ct);var zt=ne?ne.stats:Z.stats;H.hls.trigger(w.FRAG_BUFFERED,{frag:Z,part:ne,stats:zt,id:Z.type})};Ae.length===0&&j.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(Z.type," level: ").concat(Z.level," sn: ").concat(Z.sn)),this.blockBuffers(ze,Ae)}},{key:"onFragChanged",value:function(L,K){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,K){var H=this,Z=this.getSourceBufferTypes().reduce(function(ne,Ae){var Te=H.sourceBuffer[Ae];return Te&&(!K.type||K.type===Ae)&&(Te.ending=!0,Te.ended||(Te.ended=!0,j.log("[buffer-controller]: ".concat(Ae," sourceBuffer now EOS")))),ne&&!!(!Te||Te.ended)},!0);Z&&(j.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){H.getSourceBufferTypes().forEach(function(Ae){var Te=H.sourceBuffer[Ae];Te&&(Te.ending=!1)});var ne=H.mediaSource;if(!ne||ne.readyState!=="open"){ne&&j.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(ne.readyState));return}j.log("[buffer-controller]: Calling mediaSource.endOfStream()"),ne.endOfStream()}))}},{key:"onLevelUpdated",value:function(L,K){var H=K.details;if(!H.fragments.length)return;this.details=H,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()}},{key:"flushBackBuffer",value:function(){var L=this.hls,K=this.details,H=this.media,Z=this.sourceBuffer;if(!H||K===null)return;var ne=this.getSourceBufferTypes();if(!ne.length)return;var Ae=K.live&&L.config.liveBackBufferLength!==null?L.config.liveBackBufferLength:L.config.backBufferLength;if(!T(Ae)||Ae<0)return;var Te=H.currentTime,ze=K.levelTargetDuration,st=Math.max(Ae,ze),ct=Math.floor(Te/ze)*ze-st;ne.forEach(function(zt){var Tr=Z[zt];if(Tr){var br=_i.getBuffered(Tr);if(br.length>0&&ct>br.start(0)){if(L.trigger(w.BACK_BUFFER_REACHED,{bufferEnd:ct}),K.live)L.trigger(w.LIVE_BACK_BUFFER_REACHED,{bufferEnd:ct});else if(Tr.ended&&br.end(br.length-1)-Te<ze*2){j.info("[buffer-controller]: Cannot flush ".concat(zt," back buffer while SourceBuffer is in ended state"));return}L.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:ct,type:zt})}}})}},{key:"updateMediaElementDuration",value:function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var L=this.details,K=this.hls,H=this.media,Z=this.mediaSource,ne=L.fragments[0].start+L.totalduration,Ae=H.duration,Te=T(Z.duration)?Z.duration:0;L.live&&K.config.liveDurationInfinity?(j.log("[buffer-controller]: Media Source duration is set to Infinity"),Z.duration=Infinity,this.updateSeekableRange(L)):(ne>Te&&ne>Ae||!T(Ae))&&(j.log("[buffer-controller]: Updating Media Source duration to ".concat(ne.toFixed(3))),Z.duration=ne)}},{key:"updateSeekableRange",value:function(L){var K=this.mediaSource,H=L.fragments,Z=H.length;if(Z&&L.live&&K!=null&&K.setLiveSeekableRange){var ne=Math.max(0,H[0].start),Ae=Math.max(ne,ne+L.totalduration);K.setLiveSeekableRange(ne,Ae)}}},{key:"checkPendingTracks",value:function(){var L=this.bufferCodecEventsExpected,K=this.operationQueue,H=this.pendingTracks,Z=Object.keys(H).length;if(Z&&!L||Z===2){this.createSourceBuffers(H),this.pendingTracks={};var ne=this.getSourceBufferTypes();if(ne.length)this.hls.trigger(w.BUFFER_CREATED,{tracks:this.tracks}),ne.forEach(function(Te){K.executeNext(Te)});else{var Ae=new Error("could not create source buffer for media codec(s)");this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:Ae,reason:Ae.message})}}}},{key:"createSourceBuffers",value:function(L){var K=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var Z in L)if(!K[Z]){var ne=L[Z];if(!ne)throw Error("source buffer exists for track ".concat(Z,", however track does not"));var Ae=ne.levelCodec||ne.codec,Te="".concat(ne.container,";codecs=").concat(Ae);j.log("[buffer-controller]: creating sourceBuffer(".concat(Te,")"));try{var ze=K[Z]=H.addSourceBuffer(Te),st=Z;this.addBufferListener(st,"updatestart",this._onSBUpdateStart),this.addBufferListener(st,"updateend",this._onSBUpdateEnd),this.addBufferListener(st,"error",this._onSBUpdateError),this.tracks[Z]={buffer:ze,codec:Ae,container:ne.container,levelCodec:ne.levelCodec,metadata:ne.metadata,id:ne.id}}catch(ct){j.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(ct.message)),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:ct,mimeType:Te})}}}},{key:"_onSBUpdateStart",value:function(L){var K=this.operationQueue,H=K.current(L);H.onStart()}},{key:"_onSBUpdateEnd",value:function(L){var K=this.operationQueue,H=K.current(L);H.onComplete(),K.shiftAndExecuteNext(L)}},{key:"_onSBUpdateError",value:function(L,K){var H=new Error("".concat(L," SourceBuffer error"));j.error("[buffer-controller]: ".concat(H),K),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var Z=this.operationQueue.current(L);Z&&Z.onError(K)}},{key:"removeExecutor",value:function(L,K,H){var Z=this.media,ne=this.mediaSource,Ae=this.operationQueue,Te=this.sourceBuffer,ze=Te[L];if(!Z||!ne||!ze){j.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),Ae.shiftAndExecuteNext(L);return}var st=T(Z.duration)?Z.duration:Infinity,ct=T(ne.duration)?ne.duration:Infinity,zt=Math.max(0,K),Tr=Math.min(H,st,ct);Tr>zt&&!ze.ending?(ze.ended=!1,j.log("[buffer-controller]: Removing [".concat(zt,",").concat(Tr,"] from the ").concat(L," SourceBuffer")),ze.remove(zt,Tr)):Ae.shiftAndExecuteNext(L)}},{key:"appendExecutor",value:function(L,K){var H=this.operationQueue,Z=this.sourceBuffer,ne=Z[K];if(!ne){j.warn("[buffer-controller]: Attempting to append to the ".concat(K," SourceBuffer, but it does not exist")),H.shiftAndExecuteNext(K);return}ne.ended=!1,ne.appendBuffer(L)}},{key:"blockBuffers",value:function(L){var K=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!H.length){j.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(L);return}var Z=this.operationQueue,ne=H.map(function(Ae){return Z.appendBlocker(Ae)});Promise.all(ne).then(function(){L(),H.forEach(function(Ae){var Te=K.sourceBuffer[Ae];Te!=null&&Te.updating||Z.shiftAndExecuteNext(Ae)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(L,K,H){var Z=this.sourceBuffer[L];if(!Z)return;var ne=H.bind(this,L);this.listeners[L].push({event:K,listener:ne}),Z.addEventListener(K,ne)}},{key:"removeBufferListeners",value:function(L){var K=this.sourceBuffer[L];if(!K)return;this.listeners[L].forEach(function(H){K.removeEventListener(H.event,H.listener)})}}]),ve}(),gi={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},Gi=function(te){var L=te;return gi.hasOwnProperty(te)&&(L=gi[te]),String.fromCharCode(L)},sa=15,Ua=100,no={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Wo={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Bo={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Es=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],As=function(){function ve(){Object(r.a)(this,ve),this.time=null,this.verboseLevel=0}return Object(s.a)(ve,[{key:"log",value:function(L,K){if(this.verboseLevel>=L){var H=typeof K=="function"?K():K;j.log("".concat(this.time," [").concat(L,"] ").concat(H))}}}]),ve}(),$o=function(te){for(var L=[],K=0;K<te.length;K++)L.push(te[K].toString(16));return L},Do=function(){function ve(te,L,K,H,Z){Object(r.a)(this,ve),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=te||"white",this.underline=L||!1,this.italics=K||!1,this.background=H||"black",this.flash=Z||!1}return Object(s.a)(ve,[{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"],H=0;H<K.length;H++){var Z=K[H];L.hasOwnProperty(Z)&&(this[Z]=L[Z])}}},{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}}]),ve}(),vo=function(){function ve(te,L,K,H,Z,ne){Object(r.a)(this,ve),this.uchar=void 0,this.penState=void 0,this.uchar=te||" ",this.penState=new Do(L,K,H,Z,ne)}return Object(s.a)(ve,[{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()}}]),ve}(),Ms=function(){function ve(te){Object(r.a)(this,ve),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<Ua;L++)this.chars.push(new vo);this.logger=te,this.pos=0,this.currPenState=new Do}return Object(s.a)(ve,[{key:"equals",value:function(L){for(var K=!0,H=0;H<Ua;H++)if(!this.chars[H].equals(L.chars[H])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<Ua;K++)this.chars[K].copy(L.chars[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<Ua;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>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}},{key:"moveCursor",value:function(L){var K=this.pos+L;if(L>1)for(var H=this.pos+1;H<K+1;H++)this.chars[H].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 H=Gi(L);if(this.pos>=Ua){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+H+") at position "+K.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var K;for(K=L;K<Ua;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,H=0;H<Ua;H++){var Z=this.chars[H].uchar;Z!==" "&&(K=!1),L.push(Z)}return K?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var K=this.chars[this.pos];K.setPenState(this.currPenState)}}]),ve}(),rl=function(){function ve(te){Object(r.a)(this,ve),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<sa;L++)this.rows.push(new Ms(te));this.logger=te,this.currRow=sa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(s.a)(ve,[{key:"reset",value:function(){for(var L=0;L<sa;L++)this.rows[L].clear();this.currRow=sa-1}},{key:"equals",value:function(L){for(var K=!0,H=0;H<sa;H++)if(!this.rows[H].equals(L.rows[H])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<sa;K++)this.rows[K].copy(L.rows[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<sa;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 H=0;H<sa;H++)this.rows[H].clear();var Z=this.currRow+1-this.nrRollUpRows,ne=this.lastOutputScreen;if(ne){var Ae=ne.rows[Z].cueStartTime,Te=this.logger.time;if(Ae&&Te!==null&&Ae<Te)for(var ze=0;ze<this.nrRollUpRows;ze++)this.rows[K-this.nrRollUpRows+ze+1].copy(ne.rows[Z+ze])}}this.currRow=K;var st=this.rows[this.currRow];if(L.indent!==null){var ct=L.indent,zt=Math.max(ct-1,0);st.setCursor(L.indent),L.color=st.chars[zt].penState.foreground}var Tr={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(Tr)}},{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,H=this.rows.splice(K,1)[0];H.clear(),this.rows.splice(this.currRow,0,H),this.logger.log(2,"Rolling up")}},{key:"getDisplayText",value:function(L){L=L||!1;for(var K=[],H="",Z=-1,ne=0;ne<sa;ne++){var Ae=this.rows[ne].getTextString();Ae&&(Z=ne+1,L?K.push("Row "+Z+": '"+Ae+"'"):K.push(Ae.trim()))}return K.length>0&&(L?H="["+K.join(" | ")+"]":H=K.join(`
`)),H}},{key:"getTextAndFormat",value:function(){return this.rows}}]),ve}(),gs=function(){function ve(te,L,K){Object(r.a)(this,ve),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=te,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new rl(K),this.nonDisplayedMemory=new rl(K),this.lastOutputScreen=new rl(K),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=K}return Object(s.a)(ve,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(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,H=0;H<L.length;H++)this.writeScreen.insertChar(L[H]);var Z=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return Z+": "+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 H=Math.floor(L/2)-16,Z=["white","green","blue","cyan","red","yellow","magenta"];K.foreground=Z[H]}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))}}]),ve}(),Ra=function(){function ve(te,L,K){Object(r.a)(this,ve),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new As;this.channels=[null,new gs(te,L,H),new gs(te+1,K,H)],this.cmdHistory=js(),this.logger=H}return Object(s.a)(ve,[{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 H,Z,ne,Ae=!1;this.logger.time=L;for(var Te=0;Te<K.length;Te+=2){if(Z=K[Te]&127,ne=K[Te+1]&127,Z===0&&ne===0)continue;if(this.logger.log(3,"["+$o([K[Te],K[Te+1]])+"] -> ("+$o([Z,ne])+")"),H=this.parseCmd(Z,ne),H||(H=this.parseMidrow(Z,ne)),H||(H=this.parsePAC(Z,ne)),H||(H=this.parseBackgroundAttributes(Z,ne)),!H&&(Ae=this.parseChars(Z,ne),Ae)){var ze=this.currentChannel;if(ze&&ze>0){var st=this.channels[ze];st.insertChars(Ae)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!H&&!Ae&&this.logger.log(2,"Couldn't parse cleaned data "+$o([Z,ne])+" orig: "+$o([K[Te],K[Te+1]]))}}},{key:"parseCmd",value:function(L,K){var H=this.cmdHistory,Z=(L===20||L===28||L===21||L===29)&&K>=32&&K<=47,ne=(L===23||L===31)&&K>=33&&K<=35;if(!(Z||ne))return!1;if(fl(L,K,H))return dl(null,null,H),this.logger.log(3,"Repeated command ("+$o([L,K])+") is dropped"),!0;var Ae=L===20||L===21||L===23?1:2,Te=this.channels[Ae];return L===20||L===21||L===28||L===29?K===32?Te.ccRCL():K===33?Te.ccBS():K===34?Te.ccAOF():K===35?Te.ccAON():K===36?Te.ccDER():K===37?Te.ccRU(2):K===38?Te.ccRU(3):K===39?Te.ccRU(4):K===40?Te.ccFON():K===41?Te.ccRDC():K===42?Te.ccTR():K===43?Te.ccRTD():K===44?Te.ccEDM():K===45?Te.ccCR():K===46?Te.ccENM():K===47&&Te.ccEOC():Te.ccTO(K-32),dl(L,K,H),this.currentChannel=Ae,!0}},{key:"parseMidrow",value:function(L,K){var H=0;if((L===17||L===25)&&K>=32&&K<=47){if(L===17?H=1:H=2,H!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var Z=this.channels[H];return Z?(Z.ccMIDROW(K),this.logger.log(3,"MIDROW ("+$o([L,K])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(L,K){var H,Z=this.cmdHistory,ne=(L>=17&&L<=23||L>=25&&L<=31)&&K>=64&&K<=127,Ae=(L===16||L===24)&&K>=64&&K<=95;if(!(ne||Ae))return!1;if(fl(L,K,Z))return dl(null,null,Z),!0;var Te=L<=23?1:2;K>=64&&K<=95?H=Te===1?no[L]:Zo[L]:H=Te===1?Wo[L]:Bo[L];var ze=this.channels[Te];return ze?(ze.setPAC(this.interpretPAC(H,K)),dl(L,K,Z),this.currentChannel=Te,!0):!1}},{key:"interpretPAC",value:function(L,K){var H,Z={color:null,italics:!1,indent:null,underline:!1,row:L};return K>95?H=K-96:H=K-64,Z.underline=(H&1)===1,H<=13?Z.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(H/2)]:H<=15?(Z.italics=!0,Z.color="white"):Z.indent=Math.floor((H-16)/2)*4,Z}},{key:"parseChars",value:function(L,K){var H,Z=null,ne=null;if(L>=25?(H=2,ne=L-8):(H=1,ne=L),ne>=17&&ne<=19){var Ae;ne===17?Ae=K+80:ne===18?Ae=K+112:Ae=K+144,this.logger.log(2,"Special char '"+Gi(Ae)+"' in channel "+H),Z=[Ae]}else L>=32&&L<=127&&(Z=K===0?[L]:[L,K]);if(Z){var Te=$o(Z);this.logger.log(3,"Char codes = "+Te.join(",")),dl(L,K,this.cmdHistory)}return Z}},{key:"parseBackgroundAttributes",value:function(L,K){var H=(L===16||L===24)&&K>=32&&K<=47,Z=(L===23||L===31)&&K>=45&&K<=47;if(!(H||Z))return!1;var ne,Ae={};L===16||L===24?(ne=Math.floor((K-32)/2),Ae.background=Es[ne],K%2===1&&(Ae.background=Ae.background+"_semi")):K===45?Ae.background="transparent":(Ae.foreground="black",K===47&&(Ae.underline=!0));var Te=L<=23?1:2,ze=this.channels[Te];return ze.setBkgData(Ae),dl(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=js()}},{key:"cueSplitAtTime",value:function(L){for(var K=0;K<this.channels.length;K++){var H=this.channels[K];H&&H.cueSplitAtTime(L)}}}]),ve}();function dl(ve,te,L){L.a=ve,L.b=te}function fl(ve,te,L){return L.a===ve&&L.b===te}function js(){return{a:null,b:null}}var _s=function(){function ve(te,L){Object(r.a)(this,ve),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=te,this.trackName=L}return Object(s.a)(ve,[{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,H){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=K,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),ve}(),Xs=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var ve=["","lr","rl"],te=["start","middle","end","left","right"];function L(Ae,Te){if(typeof Te!="string")return!1;if(!Array.isArray(Ae))return!1;var ze=Te.toLowerCase();return~Ae.indexOf(ze)?ze:!1}function K(Ae){return L(ve,Ae)}function H(Ae){return L(te,Ae)}function Z(Ae){for(var Te=arguments.length,ze=new Array(Te>1?Te-1:0),st=1;st<Te;st++)ze[st-1]=arguments[st];for(var ct=1;ct<arguments.length;ct++){var zt=arguments[ct];for(var Tr in zt)Ae[Tr]=zt[Tr]}return Ae}function ne(Ae,Te,ze){var st=this,ct={enumerable:!0};st.hasBeenReset=!1;var zt="",Tr=!1,br=Ae,Kr=Te,zr=ze,Nn=null,Mn="",Yn=!0,bi="auto",ua="start",Yi=50,ta="middle",Pa=50,Ya="middle";Object.defineProperty(st,"id",Z({},ct,{get:function(){return zt},set:function(Sa){zt=""+Sa}})),Object.defineProperty(st,"pauseOnExit",Z({},ct,{get:function(){return Tr},set:function(Sa){Tr=!!Sa}})),Object.defineProperty(st,"startTime",Z({},ct,{get:function(){return br},set:function(Sa){if(typeof Sa!="number")throw new TypeError("Start time must be set to a number.");br=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"endTime",Z({},ct,{get:function(){return Kr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("End time must be set to a number.");Kr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"text",Z({},ct,{get:function(){return zr},set:function(Sa){zr=""+Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"region",Z({},ct,{get:function(){return Nn},set:function(Sa){Nn=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"vertical",Z({},ct,{get:function(){return Mn},set:function(Sa){var Go=K(Sa);if(Go===!1)throw new SyntaxError("An invalid or illegal string was specified.");Mn=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"snapToLines",Z({},ct,{get:function(){return Yn},set:function(Sa){Yn=!!Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"line",Z({},ct,{get:function(){return bi},set:function(Sa){if(typeof Sa!="number"&&Sa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");bi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"lineAlign",Z({},ct,{get:function(){return ua},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ua=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"position",Z({},ct,{get:function(){return Yi},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Position must be between 0 and 100.");Yi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"positionAlign",Z({},ct,{get:function(){return ta},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ta=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"size",Z({},ct,{get:function(){return Pa},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Size must be between 0 and 100.");Pa=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"align",Z({},ct,{get:function(){return Ya},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Ya=Go,this.hasBeenReset=!0}})),st.displayState=void 0}return ne.prototype.getCueAsHTML=function(){var Ae=self.WebVTT;return Ae.convertCueToDOMTree(self,this.text)},ne}(),Ql=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,[{key:"decode",value:function(L,K){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),ve}();function Ul(ve){function te(K,H,Z,ne){return(K|0)*3600+(H|0)*60+(Z|0)+parseFloat(ne||0)}var L=ve.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?te(L[2],L[3],0,L[4]):te(L[1],L[2],L[3],L[4]):null}var wl=function(){function ve(){Object(r.a)(this,ve),this.values=Object.create(null)}return Object(s.a)(ve,[{key:"set",value:function(L,K){!this.get(L)&&K!==""&&(this.values[L]=K)}},{key:"get",value:function(L,K,H){return H?this.has(L)?this.values[L]:K[H]:this.has(L)?this.values[L]:K}},{key:"has",value:function(L){return L in this.values}},{key:"alt",value:function(L,K,H){for(var Z=0;Z<H.length;++Z)if(K===H[Z]){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 H=parseFloat(K);if(H>=0&&H<=100)return this.set(L,H),!0}return!1}}]),ve}();function Ts(ve,te,L,K){var H=K?ve.split(K):[ve];for(var Z in H){if(typeof H[Z]!="string")continue;var ne=H[Z].split(L);if(ne.length!==2)continue;var Ae=ne[0],Te=ne[1];te(Ae,Te)}}var Ks=new Xs(0,0,""),Tl=Ks.align==="middle"?"middle":"center";function pl(ve,te,L){var K=ve;function H(){var Ae=Ul(ve);if(Ae===null)throw new Error("Malformed timestamp: "+K);return ve=ve.replace(/^[^\sa-zA-Z-]+/,""),Ae}function Z(Ae,Te){var ze=new wl;Ts(Ae,function(zt,Tr){var br;switch(zt){case"region":for(var Kr=L.length-1;Kr>=0;Kr--)if(L[Kr].id===Tr){ze.set(zt,L[Kr].region);break}break;case"vertical":ze.alt(zt,Tr,["rl","lr"]);break;case"line":br=Tr.split(","),ze.integer(zt,br[0]),ze.percent(zt,br[0])&&ze.set("snapToLines",!1),ze.alt(zt,br[0],["auto"]),br.length===2&&ze.alt("lineAlign",br[1],["start",Tl,"end"]);break;case"position":br=Tr.split(","),ze.percent(zt,br[0]),br.length===2&&ze.alt("positionAlign",br[1],["start",Tl,"end","line-left","line-right","auto"]);break;case"size":ze.percent(zt,Tr);break;case"align":ze.alt(zt,Tr,["start",Tl,"end","left","right"]);break}},/:/,/\s/),Te.region=ze.get("region",null),Te.vertical=ze.get("vertical","");var st=ze.get("line","auto");st==="auto"&&Ks.line===-1&&(st=-1),Te.line=st,Te.lineAlign=ze.get("lineAlign","start"),Te.snapToLines=ze.get("snapToLines",!0),Te.size=ze.get("size",100),Te.align=ze.get("align",Tl);var ct=ze.get("position","auto");ct==="auto"&&Ks.position===50&&(ct=Te.align==="start"||Te.align==="left"?0:Te.align==="end"||Te.align==="right"?100:50),Te.position=ct}function ne(){ve=ve.replace(/^\s+/,"")}if(ne(),te.startTime=H(),ne(),ve.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+K);ve=ve.slice(3),ne(),te.endTime=H(),ne(),Z(ve,te)}function jo(ve){return ve.replace(/<br(?: \/)?>/gi,`
`)}var yo=function(){function ve(){Object(r.a)(this,ve),this.state="INITIAL",this.buffer="",this.decoder=new Ql,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(s.a)(ve,[{key:"parse",value:function(L){var K=this;L&&(K.buffer+=K.decoder.decode(L,{stream:!0}));function H(){var st=K.buffer,ct=0;for(st=jo(st);ct<st.length&&st[ct]!=="\r"&&st[ct]!==`
`;)++ct;var zt=st.slice(0,ct);return st[ct]==="\r"&&++ct,st[ct]===`
`&&++ct,K.buffer=st.slice(ct),zt}function Z(st){Ts(st,function(ct,zt){},/:/)}try{var ne="";if(K.state==="INITIAL"){if(!/\r\n|\n/.test(K.buffer))return this;ne=H();var Ae=ne.match(/^()?WEBVTT([ \t].*)?$/);if(!(Ae!=null&&Ae[0]))throw new Error("Malformed WebVTT signature.");K.state="HEADER"}for(var Te=!1;K.buffer;){if(!/\r\n|\n/.test(K.buffer))return this;Te?Te=!1:ne=H();switch(K.state){case"HEADER":/:/.test(ne)?Z(ne):ne||(K.state="ID");continue;case"NOTE":ne||(K.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(ne)){K.state="NOTE";break}if(!ne)continue;if(K.cue=new Xs(0,0,""),K.state="CUE",ne.indexOf("-->")===-1){K.cue.id=ne;continue}case"CUE":if(!K.cue){K.state="BADCUE";continue}try{pl(ne,K.cue,K.regionList)}catch(st){K.cue=null,K.state="BADCUE";continue}K.state="CUETEXT";continue;case"CUETEXT":{var ze=ne.indexOf("-->")!==-1;if(!ne||ze&&(Te=!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+=ne}continue;case"BADCUE":ne||(K.state="ID")}}}catch(st){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}}]),ve}(),qo=/\r\n|\n\r|\n|\r/g,ps=function(te,L){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return te.slice(K,K+L.length)===L},Os=function(te){var L=parseInt(te.slice(-3)),K=parseInt(te.slice(-6,-4)),H=parseInt(te.slice(-9,-7)),Z=te.length>9?parseInt(te.substring(0,te.indexOf(":"))):0;if(!T(L)||!T(K)||!T(H)||!T(Z))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(te));return L+=1e3*K,L+=60*1e3*H,L+=60*60*1e3*Z,L},es=function(te){for(var L=5381,K=te.length;K;)L=L*33^te.charCodeAt(--K);return(L>>>0).toString()};function Is(ve,te,L){return es(ve.toString())+es(te.toString())+es(L)}var Ps=function(te,L,K){var H=te[L],Z=te[H.prevCC];if(!Z||!Z.new&&H.new){te.ccOffset=te.presentationOffset=H.start,H.new=!1;return}for(;(ne=Z)!=null&&ne.new;){var ne;te.ccOffset+=H.start-Z.start,H.new=!1,H=Z,Z=te[H.prevCC]}te.presentationOffset=K};function ml(ve,te,L,K,H,Z,ne){var Ae=new yo,Te=lt(new Uint8Array(ve)).trim().replace(qo,`
`).split(`
`),ze=[],st=lo(te.baseTime,te.timescale),ct="00:00.000",zt=0,Tr=0,br,Kr=!0;Ae.oncue=function(zr){var Nn=L[K],Mn=L.ccOffset,Yn=(zt-st)/9e4;Nn!=null&&Nn.new&&(Tr!==void 0?Mn=L.ccOffset=Nn.start:Ps(L,K,Yn)),Yn&&(Mn=Yn-L.presentationOffset);var bi=zr.endTime-zr.startTime,ua=Ko((zr.startTime+Mn-Tr)*9e4,H*9e4)/9e4;zr.startTime=Math.max(ua,0),zr.endTime=Math.max(ua+bi,0);var Yi=zr.text.trim();zr.text=decodeURIComponent(encodeURIComponent(Yi)),zr.id||(zr.id=Is(zr.startTime,zr.endTime,Yi)),zr.endTime>0&&ze.push(zr)},Ae.onparsingerror=function(zr){br=zr},Ae.onflush=function(){if(br){ne(br);return}Z(ze)},Te.forEach(function(zr){if(Kr)if(ps(zr,"X-TIMESTAMP-MAP=")){Kr=!1,zr.slice(16).split(",").forEach(function(Nn){ps(Nn,"LOCAL:")?ct=Nn.slice(6):ps(Nn,"MPEGTS:")&&(zt=parseInt(Nn.slice(7)))});try{Tr=Os(ct)/1e3}catch(Nn){br=Nn}return}else zr===""&&(Kr=!1);Ae.parse(zr+`
`)}),Ae.flush()}var Rl="stpp.ttml.im1t",_l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,jl={left:"start",center:"center",right:"end",start:"start",end:"end"};function kl(ve,te,L,K){var H=Jt(new Uint8Array(ve),["mdat"]);if(H.length===0){K(new Error("Could not parse IMSC1 mdat"));return}var Z=H.map(function(Ae){return lt(Ae)}),ne=Fa(te.baseTime,1,te.timescale);try{Z.forEach(function(Ae){return L(Xl(Ae,ne))})}catch(Ae){K(Ae)}}function Xl(ve,te){var L=new DOMParser,K=L.parseFromString(ve,"text/xml"),H=K.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var Z={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},ne=Object.keys(Z).reduce(function(ct,zt){return ct[zt]=H.getAttribute("ttp:".concat(zt))||Z[zt],ct},{}),Ae=H.getAttribute("xml:space")!=="preserve",Te=Ys(ol(H,"styling","style")),ze=Ys(ol(H,"layout","region")),st=ol(H,"body","[begin]");return[].map.call(st,function(ct){var zt=sl(ct,Ae);if(!zt||!ct.hasAttribute("begin"))return null;var Tr=Wl(ct.getAttribute("begin"),ne),br=Wl(ct.getAttribute("dur"),ne),Kr=Wl(ct.getAttribute("end"),ne);if(Tr===null)throw Ml(ct);if(Kr===null){if(br===null)throw Ml(ct);Kr=Tr+br}var zr=new Xs(Tr-te,Kr-te,zt);zr.id=Is(zr.startTime,zr.endTime,zr.text);var Nn=ze[ct.getAttribute("region")],Mn=Te[ct.getAttribute("style")],Yn=nl(Nn,Mn,Te),bi=Yn.textAlign;if(bi){var ua=jl[bi];ua&&(zr.lineAlign=ua),zr.align=bi}return E(zr,Yn),zr}).filter(function(ct){return ct!==null})}function ol(ve,te,L){var K=ve.getElementsByTagName(te)[0];return K?[].slice.call(K.querySelectorAll(L)):[]}function Ys(ve){return ve.reduce(function(te,L){var K=L.getAttribute("xml:id");return K&&(te[K]=L),te},{})}function sl(ve,te){return[].slice.call(ve.childNodes).reduce(function(L,K,H){var Z;return K.nodeName==="br"&&H?L+`
`:(Z=K.childNodes)!=null&&Z.length?sl(K,te):te?L+K.textContent.trim().replace(/\s+/g," "):L+K.textContent},"")}function nl(ve,te,L){var K="http://www.w3.org/ns/ttml#styling",H=null,Z=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],ne=ve!=null&&ve.hasAttribute("style")?ve.getAttribute("style"):null;return ne&&L.hasOwnProperty(ne)&&(H=L[ne]),Z.reduce(function(Ae,Te){var ze=xl(te,K,Te)||xl(ve,K,Te)||xl(H,K,Te);return ze&&(Ae[Te]=ze),Ae},{})}function xl(ve,te,L){return ve&&ve.hasAttributeNS(te,L)?ve.getAttributeNS(te,L):null}function Ml(ve){return new Error("Could not parse ttml timestamp ".concat(ve))}function Wl(ve,te){if(!ve)return null;var L=Ul(ve);return L===null&&(_l.test(ve)?L=au(ve,te):Bl.test(ve)&&(L=Nl(ve,te))),L}function au(ve,te){var L=_l.exec(ve),K=(L[4]|0)+(L[5]|0)/te.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+K/te.frameRate}function Nl(ve,te){var L=Bl.exec(ve),K=Number(L[1]),H=L[2];switch(H){case"h":return K*3600;case"m":return K*60;case"ms":return K*1e3;case"f":return K/te.frameRate;case"t":return K/te.tickRate}return K}var $l=function(){function ve(te){if(Object(r.a)(this,ve),this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this.captionsProperties=void 0,this.hls=te,this.config=te.config,this.Cues=te.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 _s(this,"textTrack1"),K=new _s(this,"textTrack2"),H=new _s(this,"textTrack3"),Z=new _s(this,"textTrack4");this.cea608Parser1=new Ra(1,L,K),this.cea608Parser2=new Ra(3,H,Z)}te.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),te.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),te.on(w.MANIFEST_LOADING,this.onManifestLoading,this),te.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),te.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),te.on(w.FRAG_LOADING,this.onFragLoading,this),te.on(w.FRAG_LOADED,this.onFragLoaded,this),te.on(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),te.on(w.FRAG_DECRYPTED,this.onFragDecrypted,this),te.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),te.on(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),te.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(s.a)(ve,[{key:"destroy",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(w.FRAG_LOADING,this.onFragLoading,this),L.off(w.FRAG_LOADED,this.onFragLoaded,this),L.off(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(w.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,K,H,Z,ne){for(var Ae=!1,Te=ne.length;Te--;){var ze=ne[Te],st=Iu(ze[0],ze[1],K,H);if(st>=0&&(ze[0]=Math.min(ze[0],K),ze[1]=Math.max(ze[1],H),Ae=!0,st/(H-K)>.5))return}if(Ae||ne.push([K,H]),this.config.renderTextTracksNatively){var ct=this.captionsTracks[L];this.Cues.newCue(ct,K,H,Z)}else{var zt=this.Cues.newCue(null,K,H,Z);this.hls.trigger(w.CUES_PARSED,{type:"captions",cues:zt,track:L})}}},{key:"onInitPtsFound",value:function(L,K){var H=this,Z=K.frag,ne=K.id,Ae=K.initPTS,Te=K.timescale,ze=this.unparsedVttFrags;ne==="main"&&(this.initPTS[Z.cc]={baseTime:Ae,timescale:Te}),ze.length&&(this.unparsedVttFrags=[],ze.forEach(function(st){H.onFragLoaded(w.FRAG_LOADED,st)}))}},{key:"getExistingTrack",value:function(L){var K=this.media;if(K)for(var H=0;H<K.textTracks.length;H++){var Z=K.textTracks[H];if(Z[L])return Z}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,H=this.captionsTracks,Z=this.media,ne=K[L],Ae=ne.label,Te=ne.languageCode,ze=this.getExistingTrack(L);if(ze)H[L]=ze,Wn(H[L]),fn(H[L],Z);else{var st=this.createTextTrack("captions",Ae,Te);st&&(st[L]=!0,H[L]=st)}}},{key:"createNonNativeTrack",value:function(L){if(this.nonNativeCaptionsTracks[L])return;var K=this.captionsProperties[L];if(!K)return;var H=K.label,Z={_id:L,label:H,kind:"captions",default:K.media?!!K.media.default:!1,closedCaptions:K.media};this.nonNativeCaptionsTracks[L]=Z,this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[Z]})}},{key:"createTextTrack",value:function(L,K,H){var Z=this.media;return Z?Z.addTextTrack(L,K,H):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){Wn(L[K]),delete L[K]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.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 H=0;H<K.length;H++)Wn(K[H])}},{key:"onSubtitleTracksUpdated",value:function(L,K){var H=this,Z=K.subtitleTracks||[],ne=Z.some(function(st){return st.textCodec===Rl});if(this.config.enableWebVTT||ne&&this.config.enableIMSC1){var Ae=ce(this.tracks,Z);if(Ae){this.tracks=Z;return}if(this.textTracks=[],this.tracks=Z,this.config.renderTextTracksNatively){var Te=this.media?this.media.textTracks:null;this.tracks.forEach(function(st,ct){var zt;if(Te&&ct<Te.length){for(var Tr=null,br=0;br<Te.length;br++)if(tu(Te[br],st)){Tr=Te[br];break}Tr&&(zt=Tr)}if(zt)Wn(zt);else{var Kr=H._captionsOrSubtitlesFromCharacteristics(st);zt=H.createTextTrack(Kr,st.name,st.lang),zt&&(zt.mode="disabled")}zt&&(zt.groupId=st.groupId,H.textTracks.push(zt))})}else if(this.tracks.length){var ze=this.tracks.map(function(st){return{label:st.name,kind:st.type.toLowerCase(),default:st.default,subtitleTrack:st}});this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:ze})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var K=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(K&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,K){var H=this;this.config.enableCEA708Captions&&K.captions&&K.captions.forEach(function(Z){var ne=/(?:CC|SERVICE)([1-4])/.exec(Z.instreamId);if(!ne)return;var Ae="textTrack".concat(ne[1]),Te=H.captionsProperties[Ae];if(!Te)return;Te.label=Z.name,Z.lang&&(Te.languageCode=Z.lang),Te.media=Z})}},{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 H=this.cea608Parser1,Z=this.cea608Parser2,ne=this.lastSn,Ae=this.lastPartIndex;if(!this.enabled||!(H&&Z))return;if(K.frag.type===ft.MAIN){var Te,ze,st=K.frag.sn,ct=(Te=K==null||(ze=K.part)==null?void 0:ze.index)!=null?Te:-1;st===ne+1||st===ne&&ct===Ae+1||(H.reset(),Z.reset()),this.lastSn=st,this.lastPartIndex=ct}}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,Z=K.payload,ne=this.initPTS,Ae=this.unparsedVttFrags;if(H.type===ft.SUBTITLE)if(Z.byteLength){if(!ne[H.cc]){Ae.push(K),ne.length&&this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Missing initial subtitle PTS")});return}var Te=H.decryptdata,ze="stats"in K;if(Te==null||!Te.encrypted||ze){var st=this.tracks[H.level],ct=this.vttCCs;ct[H.cc]||(ct[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),st&&st.textCodec===Rl?this._parseIMSC1(H,Z):this._parseVTTs(H,Z,ct)}}else this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,K){var H=this,Z=this.hls;kl(K,this.initPTS[L.cc],function(ne){H._appendCues(ne,L.level),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(ne){j.log("Failed to parse IMSC1: ".concat(ne)),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:ne})})}},{key:"_parseVTTs",value:function(L,K,H){var Z=this,ne,Ae=this.hls,Te=(ne=L.initSegment)!=null&&ne.data?Nt(L.initSegment.data,new Uint8Array(K)):K;ml(Te,this.initPTS[L.cc],H,L.cc,L.start,function(ze){Z._appendCues(ze,L.level),Ae.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(ze){Z._fallbackToIMSC1(L,K),j.log("Failed to parse VTT cue: ".concat(ze)),Ae.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:ze})})}},{key:"_fallbackToIMSC1",value:function(L,K){var H=this,Z=this.tracks[L.level];Z.textCodec||kl(K,this.initPTS[L.cc],function(){Z.textCodec=Rl,H._parseIMSC1(L,K)},function(){Z.textCodec="wvtt"})}},{key:"_appendCues",value:function(L,K){var H=this.hls;if(this.config.renderTextTracksNatively){var Z=this.textTracks[K];if(!Z||Z.mode==="disabled")return;L.forEach(function(Te){return pr(Z,Te)})}else{var ne=this.tracks[K];if(!ne)return;var Ae=ne.default?"default":"subtitles"+K;H.trigger(w.CUES_PARSED,{type:"subtitles",cues:L,track:Ae})}}},{key:"onFragDecrypted",value:function(L,K){var H=K.frag;if(H.type===ft.SUBTITLE){if(!this.initPTS[H.cc]){this.unparsedVttFrags.push(K);return}this.onFragLoaded(w.FRAG_LOADED,K)}}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,K){var H=this.cea608Parser1,Z=this.cea608Parser2;if(!this.enabled||!(H&&Z))return;var ne=K.frag,Ae=K.samples;if(ne.type===ft.MAIN&&this.closedCaptionsForLevel(ne)==="NONE")return;for(var Te=0;Te<Ae.length;Te++){var ze=Ae[Te].bytes;if(ze){var st=this.extractCea608Data(ze);H.addData(Ae[Te].pts,st[0]),Z.addData(Ae[Te].pts,st[1])}}}},{key:"onBufferFlushing",value:function(L,K){var H=K.startOffset,Z=K.endOffset,ne=K.endOffsetSubtitles,Ae=K.type,Te=this.media;if(!Te||Te.currentTime<Z)return;if(!Ae||Ae==="video"){var ze=this.captionsTracks;Object.keys(ze).forEach(function(ct){return kr(ze[ct],H,Z)})}if(this.config.renderTextTracksNatively&&(H===0&&ne!==void 0)){var st=this.textTracks;Object.keys(st).forEach(function(ct){return kr(st[ct],H,ne)})}}},{key:"extractCea608Data",value:function(L){for(var K=[[],[]],H=L[0]&31,Z=2,ne=0;ne<H;ne++){var Ae=L[Z++],Te=127&L[Z++],ze=127&L[Z++];if(Te===0&&ze===0)continue;var st=(4&Ae)!==0;if(st){var ct=3&Ae;(ct===0||ct===1)&&(K[ct].push(Te),K[ct].push(ze))}}return K}}]),ve}();function tu(ve,te){return!!ve&&ve.label===te.name&&!(ve.textTrack1||ve.textTrack2)}function Iu(ve,te,L,K){return Math.min(te,K)-Math.max(ve,L)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var mu=function(){function ve(te){Object(r.a)(this,ve),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=te,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)(ve,[{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(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.BUFFER_CODECS,this.onBufferCodecs,this),L.on(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.BUFFER_CODECS,this.onBufferCodecs,this),L.off(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,K){var H=this.hls.levels[K.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.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 H=this.hls;this.restrictedLevels=[],this.firstLevel=K.firstLevel,H.config.capLevelToPlayerSize&&K.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,K){var H=this.hls;H.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,H=this.hls.levels;if(!H.length)return-1;var Z=H.filter(function(ne,Ae){return K.isLevelAllowed(ne)&&Ae<=L});return this.clientRect=null,ve.getMaxLevelByMediaSize(Z,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value:function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var L=this.media,K={width:0,height:0};if(L){var H=L.getBoundingClientRect();K.width=H.width,K.height=H.height,!K.width&&!K.height&&(K.width=H.right-H.left||L.width||0,K.height=H.bottom-H.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(H){return L.bitrate===H.bitrate&&L.width===H.width&&L.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,K,H){if(!(L!=null&&L.length))return-1;for(var Z=function(st,ct){return ct?st.width!==ct.width||st.height!==ct.height:!0},ne=L.length-1,Ae=0;Ae<L.length;Ae+=1){var Te=L[Ae];if((Te.width>=K||Te.height>=H)&&Z(Te,L[Ae+1])){ne=Ae;break}}return ne}}]),ve}(),gu=function(){function ve(te){Object(r.a)(this,ve),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=te,this.registerListeners()}return Object(s.a)(ve,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(L,K){var H=this.hls.config;if(H.capLevelOnFPSDrop){var Z=K.media instanceof self.HTMLVideoElement?K.media:null;this.media=Z,Z&&typeof Z.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,K,H){var Z=performance.now();if(K){if(this.lastTime){var ne=Z-this.lastTime,Ae=H-this.lastDroppedFrames,Te=K-this.lastDecodedFrames,ze=1e3*Ae/ne,st=this.hls;if(st.trigger(w.FPS_DROP,{currentDropped:Ae,currentDecoded:Te,totalDroppedFrames:H}),ze>0&&Ae>st.config.fpsDroppedMonitoringThreshold*Te){var ct=st.currentLevel;j.warn("drop FPS ratio greater than max allowed value for currentLevel: "+ct),ct>0&&(st.autoLevelCapping===-1||st.autoLevelCapping>=ct)&&(ct=ct-1,st.trigger(w.FPS_DROP_LEVEL_CAPPING,{level:ct,droppedLevel:st.currentLevel}),st.autoLevelCapping=ct,this.streamController.nextLevelSwitch())}}this.lastTime=Z,this.lastDroppedFrames=H,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)}}]),ve}(),ql="[eme]",Cl=function(){function ve(te){Object(r.a)(this,ve),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=ve.CDMCleanupPromise?[ve.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=j.debug.bind(j,ql),this.log=j.log.bind(j,ql),this.warn=j.warn.bind(j,ql),this.error=j.error.bind(j,ql),this.hls=te,this.config=te.config,this.registerListeners()}return Object(s.a)(ve,[{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(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var K=this.config,H=K.drmSystems,Z=K.widevineLicenseUrl,ne=H[L];if(ne)return ne.licenseUrl;if(L===he.WIDEVINE&&Z)return Z;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var K=this.config.drmSystems,H=K[L];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var K=this,H=this.hls.levels,Z=function(ze,st,ct){return!!ze&&ct.indexOf(ze)===st},ne=H.map(function(Te){return Te.audioCodec}).filter(Z),Ae=H.map(function(Te){return Te.videoCodec}).filter(Z);return ne.length+Ae.length===0&&Ae.push("avc1.42e01e"),new Promise(function(Te,ze){var st=function ct(zt){var Tr=zt.shift();K.getMediaKeysPromise(Tr,ne,Ae).then(function(br){return Te({keySystem:Tr,mediaKeys:br})}).catch(function(br){zt.length?ct(zt):br instanceof ll?ze(br):ze(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_ACCESS,error:br,fatal:!0},br.message))})};st(L)})}},{key:"requestMediaKeySystemAccess",value:function(L,K){var H=this.config.requestMediaKeySystemAccessFunc;if(!(typeof H=="function")){var Z="Configured requestMediaKeySystemAccess is not a function ".concat(H);return je===null&&self.location.protocol==="http:"&&(Z="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(Z))}return H(L,K)}},{key:"getMediaKeysPromise",value:function(L,K,H){var Z=this,ne=me(L,K,H,this.config.drmSystemOptions),Ae=this.keySystemAccessPromises[L],Te=Ae==null?void 0:Ae.keySystemAccess;if(!Te){this.log('Requesting encrypted media "'.concat(L,'" key-system access with config: ').concat(JSON.stringify(ne))),Te=this.requestMediaKeySystemAccess(L,ne);var ze=this.keySystemAccessPromises[L]={keySystemAccess:Te};return Te.catch(function(st){Z.log('Failed to obtain access to key-system "'.concat(L,'": ').concat(st))}),Te.then(function(st){Z.log('Access for key-system "'.concat(st.keySystem,'" obtained'));var ct=Z.fetchServerCertificate(L);return Z.log('Create media-keys for "'.concat(L,'"')),ze.mediaKeys=st.createMediaKeys().then(function(zt){return Z.log('Media-keys created for "'.concat(L,'"')),ct.then(function(Tr){return Tr?Z.setMediaKeysServerCertificate(zt,L,Tr):zt})}),ze.mediaKeys.catch(function(zt){Z.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(zt))}),ze.mediaKeys})}return Te.then(function(){return Ae.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(L){var K=L.decryptdata,H=L.keySystem,Z=L.mediaKeys;this.log('Creating key-system session "'.concat(H,'" keyId: ').concat(_t.hexDump(K.keyId||[])));var ne=Z.createSession(),Ae={decryptdata:K,keySystem:H,mediaKeys:Z,mediaKeysSession:ne,keyStatus:"status-pending"};return this.mediaKeySessions.push(Ae),Ae}},{key:"renewKeySession",value:function(L){var K=L.decryptdata;if(K.pssh){var H=this.createMediaKeySessionContext(L),Z=this.getKeyIdString(K),ne="cenc";this.keyIdToKeySessionPromise[Z]=this.generateRequestWithPreferredKeySession(H,ne,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 _t.hexDump(L.keyId)}},{key:"updateKeySession",value:function(L,K){var H,Z=L.mediaKeysSession;return this.log('Updating key-session "'.concat(Z.sessionId,'" for keyID ').concat(_t.hexDump(((H=L.decryptdata)==null?void 0:H.keyId)||[]),`
} (data length: `).concat(K&&K.byteLength,")")),Z.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(H,Z){var ne=Ne(K.config),Ae=L.map(Y).filter(function(Te){return!!Te&&ne.indexOf(Te)!==-1});return K.getKeySystemSelectionPromise(Ae).then(function(Te){var ze=Te.keySystem,st=we(ze);st?H(st):Z(new Error('Unable to find format for key-system "'.concat(ze,'"')))}).catch(Z)})}},{key:"loadKey",value:function(L){var K=this,H=L.keyInfo.decryptdata,Z=this.getKeyIdString(H),ne="(keyId: ".concat(Z,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(ne));var Ae=this.keyIdToKeySessionPromise[Z];return Ae||(Ae=this.keyIdToKeySessionPromise[Z]=this.getKeySystemForKeyPromise(H).then(function(Te){var ze=Te.keySystem,st=Te.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(ne)),K.attemptSetMediaKeys(ze,st).then(function(){K.throwIfDestroyed();var ct=K.createMediaKeySessionContext({keySystem:ze,mediaKeys:st,decryptdata:H}),zt="cenc";return K.generateRequestWithPreferredKeySession(ct,zt,H.pssh,"playlist-key")})}),Ae.catch(function(Te){return K.handleError(Te)})),Ae}},{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 ll?this.hls.trigger(w.ERROR,L.data):this.hls.trigger(w.ERROR,{type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var K=this.getKeyIdString(L),H=this.keyIdToKeySessionPromise[K];if(!H){var Z=Y(L.keyFormat),ne=Z?[Z]:Ne(this.config);return this.attemptKeySystemAccess(ne)}return H}},{key:"getKeySystemSelectionPromise",value:function(L){if(L.length||(L=Ne(this.config)),L.length===0)throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(JSON.stringify({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(L)}},{key:"_onMediaEncrypted",value:function(L){var K=this,H=L.initDataType,Z=L.initData;if(this.debug('"'.concat(L.type,'" event: init data type: "').concat(H,'"')),Z===null)return;var ne,Ae;if(H==="sinf"&&this.config.drmSystems[he.FAIRPLAY]){var Te=Sr(new Uint8Array(Z));try{var ze=He(JSON.parse(Te).sinf),st=Zn(new Uint8Array(ze));if(!st)return;ne=st.subarray(8,24),Ae=he.FAIRPLAY}catch(Yn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var ct=$r(Z);if(ct===null)return;ct.version===0&&ct.systemId===q.WIDEVINE&&ct.data&&(ne=ct.data.subarray(8,24)),Ae=fe(ct.systemId)}if(!Ae||!ne)return;for(var zt=_t.hexDump(ne),Tr=this.keyIdToKeySessionPromise,br=this.mediaKeySessions,Kr=Tr[zt],zr=function(){var bi=br[Nn],ua=bi.decryptdata;if(ua.pssh||!ua.keyId)return"continue";var Yi=_t.hexDump(ua.keyId);if(zt===Yi||ua.uri.replace(/-/g,"").indexOf(zt)!==-1)return Kr=Tr[Yi],delete Tr[Yi],ua.pssh=new Uint8Array(Z),ua.keyId=ne,Kr=Tr[zt]=Kr.then(function(){return K.generateRequestWithPreferredKeySession(bi,H,Z,"encrypted-event-key-match")}),"break"},Nn=0;Nn<br.length;Nn++){var Mn=zr();if(Mn==="continue")continue;if(Mn==="break")break}Kr||(Kr=Tr[zt]=this.getKeySystemSelectionPromise([Ae]).then(function(Yn){var bi=Yn.keySystem,ua=Yn.mediaKeys,Yi;K.throwIfDestroyed();var ta=new jt("ISO-23001-7",zt,(Yi=we(bi))!=null?Yi:"");return ta.pssh=new Uint8Array(Z),ta.keyId=ne,K.attemptSetMediaKeys(bi,ua).then(function(){K.throwIfDestroyed();var Pa=K.createMediaKeySessionContext({decryptdata:ta,keySystem:bi,mediaKeys:ua});return K.generateRequestWithPreferredKeySession(Pa,H,Z,"encrypted-event-no-match")})})),Kr.catch(function(Yn){return K.handleError(Yn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,K){var H=this,Z=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var ne=Promise.all(Z).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(K)});return this.setMediaKeysQueue.push(ne),ne.then(function(){H.log('Media-keys set for "'.concat(L,'"')),Z.push(ne),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(Ae){return Z.indexOf(Ae)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,K,H,Z){var ne=this,Ae,Te,ze=(Ae=this.config.drmSystems)==null||(Te=Ae[L.keySystem])==null?void 0:Te.generateRequest;if(ze)try{var st=ze.call(this.hls,K,H,L);if(!st)throw new Error("Invalid response from configured generateRequest filter");K=st.initDataType,H=L.decryptdata.pssh=st.initData?new Uint8Array(st.initData):null}catch(Kr){var ct;if(this.warn(Kr.message),(ct=this.hls)!=null&&ct.config.debug)throw Kr}if(H===null)return this.log('Skipping key-session request for "'.concat(Z,'" (no initData)')),Promise.resolve(L);var zt=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(Z,'": ').concat(zt," (init data type: ").concat(K," length: ").concat(H?H.byteLength:null,")"));var Tr=new ds;L.mediaKeysSession.onmessage=function(Kr){var zr=L.mediaKeysSession;if(!zr){Tr.emit("error",new Error("invalid state"));return}var Nn=Kr.messageType,Mn=Kr.message;ne.log('"'.concat(Nn,'" message event for session "').concat(zr.sessionId,'" message size: ').concat(Mn.byteLength)),Nn==="license-request"||Nn==="license-renewal"?ne.renewLicense(L,Mn).catch(function(Yn){ne.handleError(Yn),Tr.emit("error",Yn)}):Nn==="license-release"?L.keySystem===he.FAIRPLAY&&(ne.updateKeySession(L,ot("acknowledged")),ne.removeSession(L)):ne.warn('unhandled media key message type "'.concat(Nn,'"'))},L.mediaKeysSession.onkeystatuseschange=function(Kr){var zr=L.mediaKeysSession;if(!zr){Tr.emit("error",new Error("invalid state"));return}ne.onKeyStatusChange(L);var Nn=L.keyStatus;Tr.emit("keyStatus",Nn),Nn==="expired"&&(ne.warn("".concat(L.keySystem," expired for key ").concat(zt)),ne.renewKeySession(L))};var br=new Promise(function(Kr,zr){Tr.on("error",zr),Tr.on("keyStatus",function(Nn){Nn.startsWith("usable")?Kr():Nn==="output-restricted"?zr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Nn==="internal-error"?zr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(Nn,'"'))):Nn==="expired"?zr(new Error("key expired while generating request")):ne.warn('unhandled key status change "'.concat(Nn,'"'))})});return L.mediaKeysSession.generateRequest(K,H).then(function(){var Kr;ne.log('Request generated for key-session "'.concat((Kr=L.mediaKeysSession)==null?void 0:Kr.sessionId,'" keyId: ').concat(zt))}).catch(function(Kr){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_SESSION,error:Kr,fatal:!1},"Error generating key-session request: ".concat(Kr))}).then(function(){return br}).catch(function(Kr){throw Tr.removeAllListeners(),ne.removeSession(L),Kr}).then(function(){return Tr.removeAllListeners(),L})}},{key:"onKeyStatusChange",value:function(L){var K=this;L.mediaKeysSession.keyStatuses.forEach(function(H,Z){K.log('key status change "'.concat(H,'" for keyStatuses keyId: ').concat(_t.hexDump("buffer"in Z?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z))," session keyId: ").concat(_t.hexDump(new Uint8Array(L.decryptdata.keyId||[]))," uri: ").concat(L.decryptdata.uri)),L.keyStatus=H})}},{key:"fetchServerCertificate",value:function(L){var K=this.config,H=K.loader,Z=new H(K),ne=this.getServerCertificateUrl(L);return ne?(this.log('Fetching serverCertificate for "'.concat(L,'"')),new Promise(function(Ae,Te){var ze={responseType:"arraybuffer",url:ne},st=K.certLoadPolicy.default,ct={loadPolicy:st,timeout:st.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},zt={onSuccess:function(br,Kr,zr,Nn){Ae(br.data)},onError:function(br,Kr,zr,Nn){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:zr,response:b({url:ze.url,data:void 0},br)},'"'.concat(L,'" certificate request failed (').concat(ne,"). Status: ").concat(br.code," (").concat(br.text,")")))},onTimeout:function(br,Kr,zr){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:zr,response:{url:ze.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(ne,")")))},onAbort:function(br,Kr,zr){Te(new Error("aborted"))}};Z.load(ze,ct,zt)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(L,K,H){var Z=this;return new Promise(function(ne,Ae){L.setServerCertificate(H).then(function(Te){Z.log("setServerCertificate ".concat(Te?"success":"not supported by CDM"," (").concat(H==null?void 0:H.byteLength,') on "').concat(K,'"')),ne(L)}).catch(function(Te){Ae(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:Te,fatal:!0},Te.message))})})}},{key:"renewLicense",value:function(L,K){var H=this;return this.requestLicense(L,new Uint8Array(K)).then(function(Z){return H.updateKeySession(L,new Uint8Array(Z)).catch(function(ne){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:ne,fatal:!0},ne.message)})})}},{key:"setupLicenseXHR",value:function(L,K,H,Z){var ne=this,Ae=this.config.licenseXhrSetup;return Ae?Promise.resolve().then(function(){if(!H.decryptdata)throw new Error("Key removed");return Ae.call(ne.hls,L,K,H,Z)}).catch(function(Te){if(!H.decryptdata)throw Te;return L.open("POST",K,!0),Ae.call(ne.hls,L,K,H,Z)}).then(function(Te){L.readyState||L.open("POST",K,!0);var ze=Te||Z;return{xhr:L,licenseChallenge:ze}}):(L.open("POST",K,!0),Promise.resolve({xhr:L,licenseChallenge:Z}))}},{key:"requestLicense",value:function(L,K){var H=this,Z=this.config.keyLoadPolicy.default;return new Promise(function(ne,Ae){var Te=H.getLicenseServerUrl(L.keySystem);H.log("Sending license request to URL: ".concat(Te));var ze=new XMLHttpRequest;ze.responseType="arraybuffer",ze.onreadystatechange=function(){if(!H.hls||!L.mediaKeysSession)return Ae(new Error("invalid state"));if(ze.readyState===4)if(ze.status===200){H._requestLicenseFailureCount=0;var st=ze.response;H.log("License received ".concat(st instanceof ArrayBuffer?st.byteLength:st));var ct=H.config.licenseResponseCallback;if(ct)try{st=ct.call(H.hls,ze,Te,L)}catch(Kr){H.error(Kr)}ne(st)}else{var zt=Z.errorRetry,Tr=zt?zt.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Tr||ze.status>=400&&ze.status<500)Ae(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:ze,response:{url:Te,data:void 0,code:ze.status,text:ze.statusText}},"License Request XHR failed (".concat(Te,"). Status: ").concat(ze.status," (").concat(ze.statusText,")")));else{var br=Tr-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(br," attempts left")),H.requestLicense(L,K).then(ne,Ae)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=ze,H.setupLicenseXHR(ze,Te,L,K).then(function(st){var ct=st.xhr,zt=st.licenseChallenge;ct.send(zt)})})}},{key:"onMediaAttached",value:function(L,K){if(!this.config.emeEnabled)return;var H=K.media;this.media=H,H.addEventListener("encrypted",this.onMediaEncrypted),H.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var L=this,K=this.media,H=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={},jt.clearKeyUriToKeyIdMap();var Z=H.length;ve.CDMCleanupPromise=Promise.all(H.map(function(ne){return L.removeSession(ne)}).concat(K==null?void 0:K.setMediaKeys(null).catch(function(ne){L.log("Could not clear media keys: ".concat(ne,". media.src: ").concat(K==null?void 0:K.src))}))).then(function(){Z&&(L.log("finished closing key sessions and clearing media keys"),H.length=0)}).catch(function(ne){L.log("Could not close sessions and clear media keys: ".concat(ne,". media.src: ").concat(K==null?void 0:K.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(L,K){var H=K.sessionKeys;if(!H||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var Z=H.reduce(function(ne,Ae){return ne.indexOf(Ae.keyFormat)===-1&&ne.push(Ae.keyFormat),ne},[]);this.log("Selecting key-system from session-keys ".concat(Z.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(Z)}}},{key:"removeSession",value:function(L){var K=this,H=L.mediaKeysSession,Z=L.licenseXhr;if(H){this.log("Remove licenses and keys and close session ".concat(H.sessionId)),H.onmessage=null,H.onkeystatuseschange=null,Z&&Z.readyState!==XMLHttpRequest.DONE&&Z.abort(),L.mediaKeysSession=L.decryptdata=L.licenseXhr=void 0;var ne=this.mediaKeySessions.indexOf(L);return ne>-1&&this.mediaKeySessions.splice(ne,1),H.remove().catch(function(Ae){K.log("Could not remove session: ".concat(Ae))}).then(function(){return H.close()}).catch(function(Ae){K.log("Could not close session: ".concat(Ae))})}}}]),ve}();Cl.CDMCleanupPromise=void 0;var ll=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H){var Z;return Object(r.a)(this,L),Z=te.call(this,H),Z.data=void 0,K.error||(K.error=new Error(H)),Z.data=K,K.err=K.error,Z}return Object(s.a)(L)}(i(Error)),Hl=1,Sl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Su="h",vu=function(){function ve(te){var L=this;Object(r.a)(this,ve),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(Z){try{L.apply(Z,{ot:Sl.MANIFEST,su:!L.initialized})}catch(ne){j.warn("Could not generate manifest CMCD data.",ne)}},this.applyFragmentData=function(Z){try{var ne=Z.frag,Ae=L.hls.levels[ne.level],Te=L.getObjectType(ne),ze={d:ne.duration*1e3,ot:Te};(Te===Sl.VIDEO||Te===Sl.AUDIO||Te==Sl.MUXED)&&(ze.br=Ae.bitrate/1e3,ze.tb=L.getTopBandwidth(Te)/1e3,ze.bl=L.getBufferLength(Te)),L.apply(Z,ze)}catch(st){j.warn("Could not generate segment CMCD data.",st)}},this.hls=te;var K=this.config=te.config,H=K.cmcd;H!=null&&(K.pLoader=this.createPlaylistLoader(),K.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||ve.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(w.MEDIA_DETACHED,this.onMediaDetached,this),L.on(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(w.MEDIA_DETACHED,this.onMediaDetached,this),L.off(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}},{key:"onMediaAttached",value:function(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 H,Z;this.audioBuffer=(H=K.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(Z=K.tracks.video)==null?void 0:Z.buffer}},{key:"createData",value:function(){var L;return{v:Hl,sf:Su,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]:{};E(K,this.createData());var H=K.ot===Sl.INIT||K.ot===Sl.VIDEO||K.ot===Sl.MUXED;if(this.starved&&H&&(K.bs=!0,K.su=!0,this.starved=!1),K.su==null&&(K.su=this.buffering),this.useHeaders){var Z=ve.toHeaders(K);if(!Object.keys(Z).length)return;L.headers||(L.headers={}),E(L.headers,Z)}else{var ne=ve.toQuery(K);if(!ne)return;L.url=ve.appendQueryToUri(L.url,ne)}}},{key:"getObjectType",value:function(L){var K=L.type;return K==="subtitle"?Sl.TIMED_TEXT:L.sn==="initSegment"?Sl.INIT:K==="audio"?Sl.AUDIO:K==="main"?this.hls.audioTracks.length?Sl.VIDEO:Sl.MUXED:void 0}},{key:"getTopBandwidth",value:function(L){var K=0,H,Z=this.hls;if(L===Sl.AUDIO)H=Z.audioTracks;else{var ne=Z.maxAutoLevel,Ae=ne>-1?ne+1:Z.levels.length;H=Z.levels.slice(0,Ae)}var Te=Object(p.a)(H),ze;try{for(Te.s();!(ze=Te.n()).done;){var st=ze.value;st.bitrate>K&&(K=st.bitrate)}}catch(ct){Te.e(ct)}finally{Te.f()}return K>0?K:NaN}},{key:"getBufferLength",value:function(L){var K=this.hls.media,H=L===Sl.AUDIO?this.audioBuffer:this.videoBuffer;if(!H||!K)return NaN;var Z=_i.bufferInfo(H,K.currentTime,this.config.maxBufferHole);return Z.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,K=this.applyPlaylistData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(Ae,Te,ze){K(Ae),this.loader.load(Ae,Te,ze)}}]),Z}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,K=this.applyFragmentData,H=L||this.config.loader;return function(){function Z(ne){Object(r.a)(this,Z),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(Ae,Te,ze){K(Ae),this.loader.load(Ae,Te,ze)}}]),Z}()}}],[{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=[],H=function(Mn){return!Number.isNaN(Mn)&&Mn!=null&&Mn!==""&&Mn!==!1},Z=function(Mn){return Math.round(Mn)},ne=function(Mn){return Z(Mn/100)*100},Ae=function(Mn){return encodeURIComponent(Mn)},Te={br:Z,d:Z,bl:ne,dl:ne,mtp:ne,nor:Ae,rtp:ne,tb:Z},ze=Object.keys(L||{}).sort(),st=Object(p.a)(ze),ct;try{for(st.s();!(ct=st.n()).done;){var zt=ct.value,Tr=L[zt];if(!H(Tr))continue;if(zt==="v"&&Tr===1)continue;if(zt=="pr"&&Tr===1)continue;var br=Te[zt];br&&(Tr=br(Tr));var Kr=typeof Tr,zr=void 0;zt==="ot"||zt==="sf"||zt==="st"?zr="".concat(zt,"=").concat(Tr):Kr==="boolean"?zr=zt:Kr==="number"?zr="".concat(zt,"=").concat(Tr):zr="".concat(zt,"=").concat(JSON.stringify(Tr)),K.push(zr)}}catch(Nn){st.e(Nn)}finally{st.f()}return K.join(",")}},{key:"toHeaders",value:function(L){for(var K=Object.keys(L),H={},Z=["Object","Request","Session","Status"],ne=[{},{},{},{}],Ae={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},Te=0,ze=K;Te<ze.length;Te++){var st=ze[Te],ct=Ae[st]!=null?Ae[st]:1;ne[ct][st]=L[st]}for(var zt=0;zt<ne.length;zt++){var Tr=ve.serialize(ne[zt]);Tr&&(H["CMCD-".concat(Z[zt])]=Tr)}return H}},{key:"toQuery",value:function(L){return"CMCD=".concat(encodeURIComponent(ve.serialize(L)))}},{key:"appendQueryToUri",value:function(L,K){if(!K)return L;var H=L.includes("?")?"&":"?";return"".concat(L).concat(H).concat(K)}}]),ve}(),Au=3e5,Ol=function(){function ve(te){Object(r.a)(this,ve),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=te,this.log=j.log.bind(j,"[content-steering]:"),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(w.MANIFEST_LOADING,this.onManifestLoading,this),L.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(w.MANIFEST_PARSED,this.onManifestParsed,this),L.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(w.MANIFEST_LOADING,this.onManifestLoading,this),L.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(w.MANIFEST_PARSED,this.onManifestParsed,this),L.off(w.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var 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(H){return H!==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 H=K.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.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 H=K.errorAction;if((H==null?void 0:H.action)===aa.SendAlternateToPenaltyBox&&H.flags===Ir.MoveAllAlternatesMatchingHost){var Z=this.pathwayPriority,ne=this.pathwayId;this.penalizedPathways[ne]||(this.penalizedPathways[ne]=performance.now()),!Z&&this.levels&&(Z=this.levels.reduce(function(Ae,Te){return Ae.indexOf(Te.pathwayId)===-1&&Ae.push(Te.pathwayId),Ae},[])),Z&&Z.length>1&&(this.updatePathwayPriority(Z),H.resolved=this.pathwayId!==ne)}}},{key:"filterParsedLevels",value:function(L){this.levels=L;var K=this.getLevelsForPathway(this.pathwayId);if(K.length===0){var H=L[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(H,'"')),K=this.getLevelsForPathway(H),this.pathwayId=H}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,H=this.penalizedPathways,Z=performance.now();Object.keys(H).forEach(function(ct){Z-H[ct]>Au&&delete H[ct]});for(var ne=0;ne<L.length;ne++){var Ae=L[ne];if(H[Ae])continue;if(Ae===this.pathwayId)return;var Te=this.hls.nextLoadLevel,ze=this.hls.levels[Te];if(K=this.getLevelsForPathway(Ae),K.length>0){this.log('Setting Pathway to "'.concat(Ae,'"')),this.pathwayId=Ae,this.hls.trigger(w.LEVELS_UPDATED,{levels:K});var st=this.hls.levels[Te];ze&&st&&this.levels&&(st.attrs["STABLE-VARIANT-ID"]!==ze.attrs["STABLE-VARIANT-ID"]&&st.bitrate!==ze.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(ze.bitrate," to ").concat(st.bitrate)),this.hls.nextLoadLevel=Te);break}}}},{key:"clonePathways",value:function(L){var K=this,H=this.levels;if(!H)return;var Z={},ne={};L.forEach(function(Ae){var Te=Ae.ID,ze=Ae["BASE-ID"],st=Ae["URI-REPLACEMENT"];if(H.some(function(zt){return zt.pathwayId===Te}))return;var ct=K.getLevelsForPathway(ze).map(function(zt){var Tr=E({},zt);Tr.details=void 0,Tr.url=du(zt.uri,zt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",st);var br=new V(zt.attrs);br["PATHWAY-ID"]=Te;var Kr=br.AUDIO&&"".concat(br.AUDIO,"_clone_").concat(Te),zr=br.SUBTITLES&&"".concat(br.SUBTITLES,"_clone_").concat(Te);Kr&&(Z[br.AUDIO]=Kr,br.AUDIO=Kr),zr&&(ne[br.SUBTITLES]=zr,br.SUBTITLES=zr),Tr.attrs=br;var Nn=new Ot(Tr);return sn(Nn,"audio",Kr),sn(Nn,"text",zr),Nn});H.push.apply(H,Object(y.a)(ct)),cu(K.audioTracks,Z,st,Te),cu(K.subtitleTracks,ne,st,Te)})}},{key:"loadSteeringManifest",value:function(L){var K=this,H=this.hls.config,Z=H.loader;this.loader&&this.loader.destroy(),this.loader=new Z(H);var ne;try{ne=new self.URL(L)}catch(Tr){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(L));return}if(ne.protocol!=="data:"){var Ae=(this.hls.bandwidthEstimate||H.abrEwmaDefaultEstimate)|0;ne.searchParams.set("_HLS_pathway",this.pathwayId),ne.searchParams.set("_HLS_throughput",""+Ae)}var Te={responseType:"json",url:ne.href},ze=H.steeringManifestLoadPolicy.default,st=ze.errorRetry||ze.timeoutRetry||{},ct={loadPolicy:ze,timeout:ze.maxLoadTimeMs,maxRetry:st.maxNumRetry||0,retryDelay:st.retryDelayMs||0,maxRetryDelay:st.maxRetryDelayMs||0},zt={onSuccess:function(br,Kr,zr,Nn){K.log('Loaded steering manifest: "'.concat(ne,'"'));var Mn=br.data;if(Mn.VERSION!==1){K.log("Steering VERSION ".concat(Mn.VERSION," not supported!"));return}K.updated=performance.now(),K.timeToLoad=Mn.TTL;var Yn=Mn["RELOAD-URI"],bi=Mn["PATHWAY-CLONES"],ua=Mn["PATHWAY-PRIORITY"];if(Yn)try{K.uri=new self.URL(Yn,ne).href}catch(Yi){K.enabled=!1,K.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Yn));return}K.scheduleRefresh(K.uri||zr.url),bi&&K.clonePathways(bi),ua&&K.updatePathwayPriority(ua)},onError:function(br,Kr,zr,Nn){if(K.log("Error loading steering manifest: ".concat(br.code," ").concat(br.text," (").concat(Kr.url,")")),K.stopLoad(),br.code===410){K.enabled=!1,K.log("Steering manifest ".concat(Kr.url," no longer available"));return}var Mn=K.timeToLoad*1e3;if(br.code===429){var Yn=K.loader;if(typeof(Yn==null?void 0:Yn.getResponseHeader)=="function"){var bi=Yn.getResponseHeader("Retry-After");bi&&(Mn=parseFloat(bi)*1e3)}K.log("Steering manifest ".concat(Kr.url," rate limited"));return}K.scheduleRefresh(K.uri||Kr.url,Mn)},onTimeout:function(br,Kr,zr){K.log("Timeout loading steering manifest (".concat(Kr.url,")")),K.scheduleRefresh(K.uri||Kr.url)}};this.log("Requesting steering manifest: ".concat(ne)),this.loader.load(Te,ct,zt)}},{key:"scheduleRefresh",value:function(L){var K=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){K.loadSteeringManifest(L)},H)}}]),ve}();function cu(ve,te,L,K){if(!ve)return;Object.keys(te).forEach(function(H){var Z=ve.filter(function(ne){return ne.groupId===H}).map(function(ne){var Ae=E({},ne);return Ae.details=void 0,Ae.attrs=new V(Ae.attrs),Ae.url=Ae.attrs.URI=du(ne.url,ne.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),Ae.groupId=Ae.attrs["GROUP-ID"]=te[H],Ae.attrs["PATHWAY-ID"]=K,Ae});ve.push.apply(ve,Object(y.a)(Z))})}function du(ve,te,L,K){var H=K.HOST,Z=K.PARAMS,ne=K[L],Ae;te&&(Ae=ne==null?void 0:ne[te],Ae&&(ve=Ae));var Te=new self.URL(ve);return H&&!Ae&&(Te.host=H),Z&&Object.keys(Z).sort().forEach(function(ze){ze&&Te.searchParams.set(ze,Z[ze])}),Te.href}var Lu=/^age:\s*[\d.]+\s*$/im,zl=function(){function ve(te){Object(r.a)(this,ve),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=te&&te.xhrSetup||null,this.stats=new ee,this.retryDelay=0}return Object(s.a)(ve,[{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,H){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=H,this.loadInternal()}},{key:"loadInternal",value:function(){var L=this,K=this.config,H=this.context;if(!K)return;var Z=this.loader=new self.XMLHttpRequest,ne=this.stats;ne.loading.first=0,ne.loaded=0;var Ae=this.xhrSetup;Ae?Promise.resolve().then(function(){return L.stats.aborted?void 0:Ae(Z,H.url)}).catch(function(Te){return Z.open("GET",H.url,!0),Ae(Z,H.url)}).then(function(){if(L.stats.aborted)return;L.openAndSendXhr(Z,H,K)}).catch(function(Te){L.callbacks.onError({code:Z.status,text:Te.message},H,Z,ne);return}):this.openAndSendXhr(Z,H,K)}},{key:"openAndSendXhr",value:function(L,K,H){L.readyState||L.open("GET",K.url,!0);var Z=this.context.headers,ne=H.loadPolicy,Ae=ne.maxTimeToFirstByteMs,Te=ne.maxLoadTimeMs;if(Z)for(var ze in Z)L.setRequestHeader(ze,Z[ze]);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),H.timeout=Ae&&T(Ae)?Ae:Te,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),H.timeout),L.send()}},{key:"readystatechange",value:function(){var L=this.context,K=this.loader,H=this.stats;if(!L||!K)return;var Z=K.readyState,ne=this.config;if(H.aborted)return;if(Z>=2&&(H.loading.first===0&&(H.loading.first=Math.max(self.performance.now(),H.loading.start),ne.timeout!==ne.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),ne.timeout=ne.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),ne.loadPolicy.maxLoadTimeMs-(H.loading.first-H.loading.start)))),Z===4)){self.clearTimeout(this.requestTimeout),K.onreadystatechange=null,K.onprogress=null;var Ae=K.status,Te=K.responseType!=="text";if(Ae>=200&&Ae<300&&(Te&&K.response||K.responseText!==null)){H.loading.end=Math.max(self.performance.now(),H.loading.first);var ze=Te?K.response:K.responseText,st=K.responseType==="arraybuffer"?ze.byteLength:ze.length;if(H.loaded=H.total=st,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var ct=this.callbacks.onProgress;if(ct&&ct(H,L,ze,K),!this.callbacks)return;var zt={url:K.responseURL,data:ze,code:Ae};this.callbacks.onSuccess(zt,H,L,K)}else{var Tr=ne.loadPolicy.errorRetry,br=H.retry;oa(Tr,br,!1,Ae)?this.retry(Tr):(j.error("".concat(Ae," while loading ").concat(L.url)),this.callbacks.onError({code:Ae,text:K.statusText},L,K,H))}}}},{key:"loadtimeout",value:function(){var L,K=(L=this.config)==null?void 0:L.loadPolicy.timeoutRetry,H=this.stats.retry;if(oa(K,H,!0))this.retry(K);else{j.warn("timeout while loading ".concat(this.context.url));var Z=this.callbacks;Z&&(this.abortInternal(),Z.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(L){var K=this.context,H=this.stats;this.retryDelay=Di(L,H.retry),H.retry++,j.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(K.url,", retrying ").concat(H.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&&Lu.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}}]),ve}();function ru(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(ve){}return!1}var ou=/(\d+)-(\d+)\/(\d+)/,su=function(){function ve(te){Object(r.a)(this,ve),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=te.fetchSetup||Zl,this.controller=new self.AbortController,this.stats=new ee}return Object(s.a)(ve,[{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,H){var Z=this,ne=this.stats;if(ne.loading.start)throw new Error("Loader can only be used once.");ne.loading.start=self.performance.now();var Ae=Jl(L,this.controller.signal),Te=H.onProgress,ze=L.responseType==="arraybuffer",st=ze?"byteLength":"length",ct=K.loadPolicy,zt=ct.maxTimeToFirstByteMs,Tr=ct.maxLoadTimeMs;this.context=L,this.config=K,this.callbacks=H,this.request=this.fetchSetup(L,Ae),self.clearTimeout(this.requestTimeout),K.timeout=zt&&T(zt)?zt:Tr,this.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},K.timeout),self.fetch(this.request).then(function(br){Z.response=Z.loader=br;var Kr=Math.max(self.performance.now(),ne.loading.start);if(self.clearTimeout(Z.requestTimeout),K.timeout=Tr,Z.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(ne,L,Z.response)},Tr-(Kr-ne.loading.start)),!br.ok){var zr=br.status,Nn=br.statusText;throw new yu(Nn||"fetch, bad network response",zr,br)}return ne.loading.first=Kr,ne.total=Ru(br.headers)||ne.total,Te&&T(K.highWaterMark)?Z.loadProgressively(br,ne,L,K.highWaterMark,Te):ze?br.arrayBuffer():L.responseType==="json"?br.json():br.text()}).then(function(br){var Kr=Z.response;self.clearTimeout(Z.requestTimeout),ne.loading.end=Math.max(self.performance.now(),ne.loading.first);var zr=br[st];zr&&(ne.loaded=ne.total=zr);var Nn={url:Kr.url,data:br,code:Kr.status};Te&&!T(K.highWaterMark)&&Te(ne,L,br,Kr),H.onSuccess(Nn,ne,L,Kr)}).catch(function(br){if(self.clearTimeout(Z.requestTimeout),ne.aborted)return;var Kr=br&&br.code||0,zr=br?br.message:null;H.onError({code:Kr,text:zr},L,br?br.details:null,ne)})}},{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,H){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ne=arguments.length>4?arguments[4]:void 0,Ae=new Ft,Te=L.body.getReader(),ze=function st(){return Te.read().then(function(ct){if(ct.done)return Ae.dataLength&&ne(K,H,Ae.flush(),L),Promise.resolve(new ArrayBuffer(0));var zt=ct.value,Tr=zt.length;return K.loaded+=Tr,Tr<Z||Ae.dataLength?(Ae.push(zt),Ae.dataLength>=Z&&ne(K,H,Ae.flush(),L)):ne(K,H,zt,L),st()}).catch(function(){return Promise.reject()})};return ze()}}]),ve}();function Jl(ve,te){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:te,headers:new self.Headers(E({},ve.headers))};return ve.rangeEnd&&L.headers.set("Range","bytes="+ve.rangeStart+"-"+String(ve.rangeEnd-1)),L}function Du(ve){var te=ou.exec(ve);if(te)return parseInt(te[2])-parseInt(te[1])+1}function Ru(ve){var te=ve.get("Content-Range");if(te){var L=Du(te);if(T(L))return L}var K=ve.get("Content-Length");if(K)return parseInt(K)}function Zl(ve,te){return new self.Request(ve.url,te)}var yu=function(ve){Object(o.a)(L,ve);var te=Object(e.a)(L);function L(K,H,Z){var ne;return Object(r.a)(this,L),ne=te.call(this,K),ne.code=void 0,ne.details=void 0,ne.code=H,ne.details=Z,ne}return Object(s.a)(L)}(i(Error)),xu=/\s/,bu={newCue:function(te,L,K,H){for(var Z=[],ne,Ae,Te,ze,st,ct=self.VTTCue||self.TextTrackCue,zt=0;zt<H.rows.length;zt++)if(ne=H.rows[zt],Te=!0,ze=0,st="",!ne.isEmpty()){for(var Tr,br=0;br<ne.chars.length;br++)xu.test(ne.chars[br].uchar)&&Te?ze++:(st+=ne.chars[br].uchar,Te=!1);ne.cueStartTime=L,L===K&&(K+=1e-4),ze>=16?ze--:ze++;var Kr=jo(st.trim()),zr=Is(L,K,Kr);te!=null&&(Tr=te.cues)!=null&&Tr.getCueById(zr)||(Ae=new ct(L,K,Kr),Ae.id=zr,Ae.line=zt+1,Ae.align="left",Ae.position=10+Math.min(80,Math.floor(ze*8/32)*10),Z.push(Ae))}return te&&Z.length&&(Z.sort(function(Nn,Mn){return Nn.line==="auto"||Mn.line==="auto"?0:Nn.line>8&&Mn.line>8?Mn.line-Nn.line:Nn.line-Mn.line}),Z.forEach(function(Nn){return pr(te,Nn)})),Z}},hl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Dl=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:zl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:go,bufferController:wi,capLevelController:mu,errorController:wr,fpsController:gu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:je,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:hl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:Infinity,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},nu()),{},{subtitleStreamController:Qe,subtitleTrackController:ir,timelineController:$l,audioStreamController:di,audioTrackController:It,emeController:Cl,cmcdController:vu,contentSteeringController:Ol});function nu(){return{cueHandler:bu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Nu(ve,te){if((te.liveSyncDurationCount||te.liveMaxLatencyDurationCount)&&(te.liveSyncDuration||te.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(te.liveMaxLatencyDurationCount!==void 0&&(te.liveSyncDurationCount===void 0||te.liveMaxLatencyDurationCount<=te.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(te.liveMaxLatencyDuration!==void 0&&(te.liveSyncDuration===void 0||te.liveMaxLatencyDuration<=te.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var L=hu(ve),K=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return K.forEach(function(Z){var ne="".concat(Z==="level"?"playlist":Z,"LoadPolicy"),Ae=te[ne]===void 0,Te=[];H.forEach(function(ze){var st="".concat(Z,"Loading").concat(ze),ct=te[st];if(ct!==void 0&&Ae){Te.push(st);var zt=L[ne].default;te[ne]={default:zt};switch(ze){case"TimeOut":zt.maxLoadTimeMs=ct,zt.maxTimeToFirstByteMs=ct;break;case"MaxRetry":zt.errorRetry.maxNumRetry=ct,zt.timeoutRetry.maxNumRetry=ct;break;case"RetryDelay":zt.errorRetry.retryDelayMs=ct,zt.timeoutRetry.retryDelayMs=ct;break;case"MaxRetryTimeout":zt.errorRetry.maxRetryDelayMs=ct,zt.timeoutRetry.maxRetryDelayMs=ct;break}}}),Te.length&&j.warn('hls.js config: "'.concat(Te.join('", "'),'" setting(s) are deprecated, use "').concat(ne,'": ').concat(JSON.stringify(te[ne])))}),b(b({},L),te)}function hu(ve){return ve&&typeof ve=="object"?Array.isArray(ve)?ve.map(hu):Object.keys(ve).reduce(function(te,L){return te[L]=hu(ve[L]),te},{}):ve}function fu(ve){var te=ve.loader;if(te!==su&&te!==zl)j.log("[config]: Custom loader detected, cannot enable progressive streaming"),ve.progressive=!1;else{var L=ru();L&&(ve.loader=su,ve.progressive=!0,ve.enableSoftwareAES=!0,j.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var iu=function(){function ve(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,ve),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ds,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,B(te.debug||!1,"Hls instance");var L=this.config=Nu(ve.DefaultConfig,te);this.userConfig=te,this._autoLevelCapping=-1,L.progressive&&fu(L);var K=L.abrController,H=L.bufferController,Z=L.capLevelController,ne=L.errorController,Ae=L.fpsController,Te=new ne(this),ze=this.abrController=new K(this),st=this.bufferController=new H(this),ct=this.capLevelController=new Z(this),zt=new Ae(this),Tr=new Qr(this),br=new Vn(this),Kr=L.contentSteeringController,zr=Kr?new Kr(this):null,Nn=this.levelController=new Vr(this,zr),Mn=new _r(this),Yn=new pi(this.config),bi=this.streamController=new No(this,Mn,Yn);ct.setStreamController(bi),zt.setStreamController(bi);var ua=[Tr,Nn,bi];zr&&ua.splice(1,0,zr),this.networkControllers=ua;var Yi=[ze,st,ct,zt,br,Mn];this.audioTrackController=this.createController(L.audioTrackController,ua);var ta=L.audioStreamController;ta&&ua.push(new ta(this,Mn,Yn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,ua);var Pa=L.subtitleStreamController;Pa&&ua.push(new Pa(this,Mn,Yn)),this.createController(L.timelineController,Yi),Yn.emeController=this.emeController=this.createController(L.emeController,Yi),this.cmcdController=this.createController(L.cmcdController,Yi),this.latencyController=this.createController(Wt,Yi),this.coreComponents=Yi,ua.push(Te);var Ya=Te.onErrorOut;typeof Ya=="function"&&this.on(w.ERROR,Ya,Te)}return Object(s.a)(ve,[{key:"createController",value:function(L,K){if(L){var H=new L(this);return K&&K.push(H),H}return null}},{key:"on",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,K,H)}},{key:"once",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,K,H)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,Z=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,K,H,Z)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,K,H){return this._emitter.emit(L,K,H)}},{key:"trigger",value:function(L,K){if(this.config.debug)return this.emit(L,L,K);try{return this.emit(L,L,K)}catch(H){j.error("An internal error happened while handling event "+L+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:L,error:H})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){j.log("destroy"),this.trigger(w.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(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){j.log("attachMedia"),this._media=L,this.trigger(w.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){j.log("detachMedia"),this.trigger(w.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var K=this.media,H=this.url,Z=this.url=g.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});j.log("loadSource:".concat(Z)),K&&H&&(H!==Z||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(K)),this.trigger(w.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;j.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(K){K.startLoad(L)})}},{key:"stopLoad",value:function(){j.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){j.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){j.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){j.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){j.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){j.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){j.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){j.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&&(j.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){Et.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 H=L.length,Z=0;Z<H;Z++)if(L[Z].maxBitrate>=K)return Z;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,K=this.autoLevelCapping,H=this.maxHdcpLevel,Z;if(K===-1&&L&&L.length?Z=L.length-1:Z=K,H)for(var ne=Z;ne--;){var Ae=L[ne].attrs["HDCP-LEVEL"];if(Ae&&Ae<=H)return ne}return Z}},{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.3"}},{key:"isSupported",value:function(){return Qo()}},{key:"Events",get:function(){return w}},{key:"ErrorTypes",get:function(){return O}},{key:"ErrorDetails",get:function(){return I}},{key:"DefaultConfig",get:function(){return ve.defaultConfig?ve.defaultConfig:Dl},set:function(L){ve.defaultConfig=L}}]),ve}();iu.defaultConfig=void 0},pmaE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("DEFe"),m="__seriesMapHighDown",f="__seriesMapCallKey",h=y.extendChartView({type:"map",render:function(i,t,o,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),i.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===i.id){var r=this._mapDraw;r&&l.add(r.group)}else if(i.needsDrawMap){var r=this._mapDraw||new A(o,!0);l.add(r.group),r.draw(i,t,o,this,e),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;i.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(i,t,o)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(i,t,o){var e=i.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 d=c.point,g=c.offset,v=new x.Circle({style:{fill:i.getData().getVisual("color")},shape:{cx:d[0]+g*9,cy:d[1],r:3},silent:!0,z2:8+(g?0:x.Z2_EMPHASIS_LIFT+1)});if(!g){var b=i.mainSeries.getData(),S=e.getName(s),E=b.indexOfName(S),C=e.getItemModel(s),_=C.getModel("label"),T=C.getModel("emphasis.label"),w=b.getItemGraphicEl(E),O=p.retrieve2(i.getFormattedLabel(E,"normal"),S),I=p.retrieve2(i.getFormattedLabel(E,"emphasis"),O),R=w[m],M=Math.random();if(!R){R=w[m]={};var F=p.curry(u,!0),P=p.curry(u,!1);w.on("mouseover",F).on("mouseout",P).on("emphasis",F).on("normal",P)}w[f]=M,p.extend(R,{recordVersion:M,circle:v,labelModel:_,hoverLabelModel:T,emphasisText:I,normalText:O}),a(R,!1)}l.add(v)})}});function u(i){var t=this[m];t&&t.recordVersion===this[f]&&a(t,i)}function a(i,t){var o=i.circle,e=i.labelModel,l=i.hoverLabelModel,r=i.emphasisText,s=i.normalText;t?(o.style.extendFrom(x.setTextStyle({},l,{text:l.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),o.__mapOriginalZ2=o.z2,o.z2+=x.Z2_EMPHASIS_LIFT):(x.setTextStyle(o.style,e,{text:e.get("show")?s:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),o.dirty(!1),o.__mapOriginalZ2!=null&&(o.z2=o.__mapOriginalZ2,o.__mapOriginalZ2=null))}k.exports=h},pwpV:function(k,D,n){},pzxd:function(k,D,n){var y=n("bYtY"),p=y.retrieve2,x=y.retrieve3,A=y.each,m=y.normalizeCssArray,f=y.isString,h=y.isObject,u=n("6GrX"),a=n("VpOo"),i=n("Xnb7"),t=n("fW2E"),o=n("gut8"),e=o.ContextCachedBy,l=o.WILL_BE_RESTORED,r=u.DEFAULT_FONT,s={left:1,right:1,center:1},c={top:1,bottom:1,middle:1},d=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],g={},v={};function b(V){return S(V),A(V.rich,S),V}function S(V){if(V){V.font=u.makeFont(V);var Q=V.textAlign;Q==="middle"&&(Q="center"),V.textAlign=Q==null||s[Q]?Q:"left";var G=V.textVerticalAlign||V.textBaseline;G==="center"&&(G="middle"),V.textVerticalAlign=G==null||c[G]?G:"top";var re=V.textPadding;re&&(V.textPadding=m(V.textPadding))}}function E(V,Q,G,re,ee,ue){re.rich?_(V,Q,G,re,ee,ue):C(V,Q,G,re,ee,ue)}function C(V,Q,G,re,ee,ue){"use strict";var $=I(re),be,_e=!1,Ee=Q.__attrCachedBy===e.PLAIN_TEXT;ue!==l?(ue&&(be=ue.style,_e=!$&&Ee&&be),Q.__attrCachedBy=$?e.NONE:e.PLAIN_TEXT):Ee&&(Q.__attrCachedBy=e.NONE);var Xe=re.font||r;(!_e||Xe!==(be.font||r))&&(Q.font=Xe);var He=V.__computedFont;V.__styleFont!==Xe&&(V.__styleFont=Xe,He=V.__computedFont=Q.font);var nt=re.textPadding,Ie=re.textLineHeight,oe=V.__textCotentBlock;(!oe||V.__dirtyText)&&(oe=V.__textCotentBlock=u.parsePlainText(G,He,nt,Ie,re.truncate));var ot=oe.outerHeight,he=oe.lines,J=oe.lineHeight,Y=F(v,V,re,ee),q=Y.baseX,fe=Y.baseY,we=Y.textAlign||"left",Ne=Y.textVerticalAlign;w(Q,re,ee,q,fe);var je=u.adjustTextY(fe,ot,Ne),me=q,Ce=je;if($||nt){var Fe=u.getWidth(G,He),it=Fe;nt&&(it+=nt[1]+nt[3]);var Ct=u.adjustTextX(q,it,we);$&&R(V,Q,re,Ct,je,it,ot),nt&&(me=W(q,we,nt),Ce+=nt[0])}Q.textAlign=we,Q.textBaseline="middle",Q.globalAlpha=re.opacity||1;for(var mt=0;mt<d.length;mt++){var Ve=d[mt],or=Ve[0],dt=Ve[1],Yt=re[or];(!_e||Yt!==be[or])&&(Q[dt]=t(Q,dt,Yt||Ve[2]))}Ce+=J/2;var hr=re.textStrokeWidth,Gt=_e?be.textStrokeWidth:null,Pt=!_e||hr!==Gt,Xt=!_e||Pt||re.textStroke!==be.textStroke,Ge=X(re.textStroke,hr),pe=B(re.textFill);if(Ge&&(Pt&&(Q.lineWidth=hr),Xt&&(Q.strokeStyle=Ge)),pe&&((!_e||re.textFill!==be.textFill)&&(Q.fillStyle=pe)),he.length===1)Ge&&Q.strokeText(he[0],me,Ce),pe&&Q.fillText(he[0],me,Ce);else for(var mt=0;mt<he.length;mt++)Ge&&Q.strokeText(he[mt],me,Ce),pe&&Q.fillText(he[mt],me,Ce),Ce+=J}function _(V,Q,G,re,ee,ue){ue!==l&&(Q.__attrCachedBy=e.NONE);var $=V.__textCotentBlock;(!$||V.__dirtyText)&&($=V.__textCotentBlock=u.parseRichText(G,re)),T(V,Q,$,re,ee)}function T(V,Q,G,re,ee){var ue=G.width,$=G.outerWidth,be=G.outerHeight,_e=re.textPadding,Ee=F(v,V,re,ee),Xe=Ee.baseX,He=Ee.baseY,nt=Ee.textAlign,Ie=Ee.textVerticalAlign;w(Q,re,ee,Xe,He);var oe=u.adjustTextX(Xe,$,nt),ot=u.adjustTextY(He,be,Ie),he=oe,J=ot;_e&&(he+=_e[3],J+=_e[0]);var Y=he+ue;I(re)&&R(V,Q,re,oe,ot,$,be);for(var q=0;q<G.lines.length;q++){for(var fe=G.lines[q],we=fe.tokens,Ne=we.length,je=fe.lineHeight,me=fe.width,Ce=0,Fe=he,it=Y,Ct=Ne-1,mt;Ce<Ne&&(mt=we[Ce],!mt.textAlign||mt.textAlign==="left");)O(V,Q,mt,re,je,J,Fe,"left"),me-=mt.width,Fe+=mt.width,Ce++;for(;Ct>=0&&(mt=we[Ct],mt.textAlign==="right");)O(V,Q,mt,re,je,J,it,"right"),me-=mt.width,it-=mt.width,Ct--;for(Fe+=(ue-(Fe-he)-(Y-it)-me)/2;Ce<=Ct;)mt=we[Ce],O(V,Q,mt,re,je,J,Fe+mt.width/2,"center"),Fe+=mt.width,Ce++;J+=je}}function w(V,Q,G,re,ee){if(G&&Q.textRotation){var ue=Q.textOrigin;ue==="center"?(re=G.width/2+G.x,ee=G.height/2+G.y):ue&&(re=ue[0]+G.x,ee=ue[1]+G.y),V.translate(re,ee),V.rotate(-Q.textRotation),V.translate(-re,-ee)}}function O(V,Q,G,re,ee,ue,$,be){var _e=re.rich[G.styleName]||{};_e.text=G.text;var Ee=G.textVerticalAlign,Xe=ue+ee/2;Ee==="top"?Xe=ue+G.height/2:Ee==="bottom"&&(Xe=ue+ee-G.height/2),!G.isLineHolder&&I(_e)&&R(V,Q,_e,be==="right"?$-G.width:be==="center"?$-G.width/2:$,Xe-G.height/2,G.width,G.height);var He=G.textPadding;He&&($=W($,be,He),Xe-=G.height/2-He[2]-G.textHeight/2),P(Q,"shadowBlur",x(_e.textShadowBlur,re.textShadowBlur,0)),P(Q,"shadowColor",_e.textShadowColor||re.textShadowColor||"transparent"),P(Q,"shadowOffsetX",x(_e.textShadowOffsetX,re.textShadowOffsetX,0)),P(Q,"shadowOffsetY",x(_e.textShadowOffsetY,re.textShadowOffsetY,0)),P(Q,"textAlign",be),P(Q,"textBaseline","middle"),P(Q,"font",G.font||r);var nt=X(_e.textStroke||re.textStroke,oe),Ie=B(_e.textFill||re.textFill),oe=p(_e.textStrokeWidth,re.textStrokeWidth);nt&&(P(Q,"lineWidth",oe),P(Q,"strokeStyle",nt),Q.strokeText(G.text,$,Xe)),Ie&&(P(Q,"fillStyle",Ie),Q.fillText(G.text,$,Xe))}function I(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function R(V,Q,G,re,ee,ue,$){var be=G.textBackgroundColor,_e=G.textBorderWidth,Ee=G.textBorderColor,Xe=f(be);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),Xe||_e&&Ee){Q.beginPath();var He=G.textBorderRadius;He?a.buildPath(Q,{x:re,y:ee,width:ue,height:$,r:He}):Q.rect(re,ee,ue,$),Q.closePath()}if(Xe)if(P(Q,"fillStyle",be),G.fillOpacity!=null){var nt=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=nt}else Q.fill();else if(h(be)){var Ie=be.image;Ie=i.createOrUpdateImage(Ie,null,V,M,be),Ie&&i.isImageReady(Ie)&&Q.drawImage(Ie,re,ee,ue,$)}if(_e&&Ee)if(P(Q,"lineWidth",_e),P(Q,"strokeStyle",Ee),G.strokeOpacity!=null){var nt=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=nt}else Q.stroke()}function M(V,Q){Q.image=V}function F(V,Q,G,re){var ee=G.x||0,ue=G.y||0,$=G.textAlign,be=G.textVerticalAlign;if(re){var _e=G.textPosition;if(_e instanceof Array)ee=re.x+j(_e[0],re.width),ue=re.y+j(_e[1],re.height);else{var Ee=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,G,re):u.calculateTextPosition(g,G,re);ee=Ee.x,ue=Ee.y,$=$||Ee.textAlign,be=be||Ee.textVerticalAlign}var Xe=G.textOffset;Xe&&(ee+=Xe[0],ue+=Xe[1])}return V=V||{},V.baseX=ee,V.baseY=ue,V.textAlign=$,V.textVerticalAlign=be,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 B(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function j(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function W(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function z(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=E,D.getBoxPosition=F,D.getStroke=X,D.getFill=B,D.parsePercent=j,D.needDrawText=z},"q/+u":function(k,D,n){var y=n("ProS"),p=n("9wZj"),x=n("yWXo"),A=n("h8O9");y.extendChartView({type:"scatter",render:function(m,f,h){var u=m.getData(),a=this._updateSymbolDraw(u,m);a.updateData(u,{clipShape:this._getClipShape(m)}),this._finished=!0},incrementalPrepareRender:function(m,f,h){var u=m.getData(),a=this._updateSymbolDraw(u,m);a.incrementalPrepareUpdate(u),this._finished=!1},incrementalRender:function(m,f,h){this._symbolDraw.incrementalUpdate(m,f.getData(),{clipShape:this._getClipShape(f)}),this._finished=m.end===f.getData().count()},updateTransform:function(m,f,h){var u=m.getData();if(this.group.dirty(),!this._finished||u.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=A().reset(m);a.progress&&a.progress({start:0,end:u.count()},u),this._symbolDraw.updateLayout(u)},_getClipShape:function(m){var f=m.coordinateSystem,h=f&&f.getArea&&f.getArea();return m.get("clip",!0)?h:null},_updateSymbolDraw:function(m,f){var h=this._symbolDraw,u=f.pipelineContext,a=u.large;return(!h||a!==this._isLargeDraw)&&(h&&h.remove(),h=this._symbolDraw=a?new x:new p,this._isLargeDraw=a,this.group.removeAll()),this.group.add(h.group),h},remove:function(m,f){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(k,D){var n=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(p,x,A){var m=p.getModel("itemStyle"),f=p.getModel("lineStyle"),h=x.get("color"),u=f.get("color")||m.get("color")||h[p.seriesIndex%h.length],a=p.get("inactiveOpacity"),i=p.get("activeOpacity"),t=p.getModel("lineStyle").getLineStyle(),o=p.coordinateSystem,e=p.getData(),l={normal:t.opacity,active:i,inactive:a};e.setVisual("color",u);function r(s,c){o.eachActiveState(c,function(d,g){var v=l[d];if(d==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(n,!0);b!=null&&(v=b)}c.setItemVisual(g,"opacity",v)},s.start,s.end)}return{progress:r}}};k.exports=y},q4HE:function(k,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+p+x,m="\\ufe0e\\ufe0f",f="["+n+"]",h="["+A+"]",u="\\ud83c[\\udffb-\\udfff]",a="(?:"+h+"|"+u+")",i="[^"+n+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=a+"?",r="["+m+"]?",s="(?:"+e+"(?:"+[i,t,o].join("|")+")"+r+l+")*",c=r+l+s,d="(?:"+[i+h+"?",h,t,o,f].join("|")+")",g=RegExp(u+"(?="+u+")|"+d+c,"g");function v(b){for(var S=g.lastIndex=0;g.test(b);)++S;return S}k.exports=v},q7KB:function(k,D,n){},qBft:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(x,A){var m=x.sigBytes,f=A*4,h=f-m%f,u=m+h-1;x.clamp(),x.words[u>>>2]|=h<<24-u%4*8,x.sigBytes+=h},unpad:function(x){var A=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=A}},y.pad.Ansix923})},qH13:function(k,D,n){var y=n("ItGF"),p=n("QBsz"),x=p.applyTransform,A=n("mFDi"),m=n("Qe9p"),f=n("6GrX"),h=n("pzxd"),u=n("ni6a"),a=n("Gev7"),i=n("Dagg"),t=n("dqUG"),o=n("y+Vt"),e=n("IMiH"),l=n("QuXc"),r=n("06Qe"),s=e.CMD,c=Math.round,d=Math.sqrt,g=Math.abs,v=Math.cos,b=Math.sin,S=Math.max;if(!y.canvasSupported){var E=",",C="progid:DXImageTransform.Microsoft",_=21600,T=_/2,w=1e5,O=1e3,I=function(fe){fe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",fe.coordsize=_+","+_,fe.coordorigin="0,0"},R=function(fe){return String(fe).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},M=function(fe,we,Ne){return"rgb("+[fe,we,Ne].join(",")+")"},F=function(fe,we){we&&fe&&we.parentNode!==fe&&fe.appendChild(we)},P=function(fe,we){we&&fe&&we.parentNode===fe&&fe.removeChild(we)},X=function(fe,we,Ne){return(parseFloat(fe)||0)*w+(parseFloat(we)||0)*O+Ne},B=h.parsePercent,j=function(fe,we,Ne){var je=m.parse(we);Ne=+Ne,isNaN(Ne)&&(Ne=1),je&&(fe.color=M(je[0],je[1],je[2]),fe.opacity=Ne*je[3])},W=function(fe){var we=m.parse(fe);return[M(we[0],we[1],we[2]),we[3]]},z=function(fe,we,Ne){var je=we.fill;if(je!=null)if(je instanceof l){var me,Ce=0,Fe=[0,0],it=0,Ct=1,mt=Ne.getBoundingRect(),Ve=mt.width,or=mt.height;if(je.type==="linear"){me="gradient";var dt=Ne.transform,Yt=[je.x*Ve,je.y*or],hr=[je.x2*Ve,je.y2*or];dt&&(x(Yt,Yt,dt),x(hr,hr,dt));var Gt=hr[0]-Yt[0],Pt=hr[1]-Yt[1];Ce=Math.atan2(Gt,Pt)*180/Math.PI,Ce<0&&(Ce+=360),Ce<1e-6&&(Ce=0)}else{me="gradientradial";var Yt=[je.x*Ve,je.y*or],dt=Ne.transform,Xt=Ne.scale,Ge=Ve,pe=or;Fe=[(Yt[0]-mt.x)/Ge,(Yt[1]-mt.y)/pe],dt&&x(Yt,Yt,dt),Ge/=Xt[0]*_,pe/=Xt[1]*_;var se=S(Ge,pe);it=2*0/se,Ct=2*je.r/se-it}var lt=je.colorStops.slice();lt.sort(function(gr,Jt){return gr.offset-Jt.offset});for(var Ze=lt.length,de=[],_t=[],er=0;er<Ze;er++){var yt=lt[er],Ar=W(yt.color);_t.push(yt.offset*Ct+it+" "+Ar[0]),(er===0||er===Ze-1)&&de.push(Ar)}if(Ze>=2){var Sr=de[0][0],Cn=de[1][0],mr=de[0][1]*we.opacity,Pr=de[1][1]*we.opacity;fe.type=me,fe.method="none",fe.focus="100%",fe.angle=Ce,fe.color=Sr,fe.color2=Cn,fe.colors=_t.join(","),fe.opacity=Pr,fe.opacity2=mr}me==="radial"&&(fe.focusposition=Fe.join(","))}else j(fe,je,we.opacity)},V=function(fe,we){we.lineDash&&(fe.dashstyle=we.lineDash.join(" ")),we.stroke!=null&&!(we.stroke instanceof l)&&j(fe,we.stroke,we.opacity)},Q=function(fe,we,Ne,je){var me=we==="fill",Ce=fe.getElementsByTagName(we)[0];Ne[we]!=null&&Ne[we]!=="none"&&(me||!me&&Ne.lineWidth)?(fe[me?"filled":"stroked"]="true",Ne[we]instanceof l&&P(fe,Ce),Ce||(Ce=r.createNode(we)),me?z(Ce,Ne,je):V(Ce,Ne),F(fe,Ce)):(fe[me?"filled":"stroked"]="false",P(fe,Ce))},G=[[],[],[]],re=function(fe,we){var Ne=s.M,je=s.C,me=s.L,Ce=s.A,Fe=s.Q,it=[],Ct,mt,Ve,or,dt,Yt,hr=fe.data,Gt=fe.len();for(or=0;or<Gt;){Ve=hr[or++],mt="",Ct=0;switch(Ve){case Ne:mt=" m ",Ct=1,dt=hr[or++],Yt=hr[or++],G[0][0]=dt,G[0][1]=Yt;break;case me:mt=" l ",Ct=1,dt=hr[or++],Yt=hr[or++],G[0][0]=dt,G[0][1]=Yt;break;case Fe:case je:mt=" c ",Ct=3;var Pt=hr[or++],Xt=hr[or++],Ge=hr[or++],pe=hr[or++],se,lt;Ve===Fe?(se=Ge,lt=pe,Ge=(Ge+2*Pt)/3,pe=(pe+2*Xt)/3,Pt=(dt+2*Pt)/3,Xt=(Yt+2*Xt)/3):(se=hr[or++],lt=hr[or++]),G[0][0]=Pt,G[0][1]=Xt,G[1][0]=Ge,G[1][1]=pe,G[2][0]=se,G[2][1]=lt,dt=se,Yt=lt;break;case Ce:var Ze=0,de=0,_t=1,er=1,yt=0;we&&(Ze=we[4],de=we[5],_t=d(we[0]*we[0]+we[1]*we[1]),er=d(we[2]*we[2]+we[3]*we[3]),yt=Math.atan2(-we[1]/er,we[0]/_t));var Ar=hr[or++],Sr=hr[or++],Cn=hr[or++],mr=hr[or++],Pr=hr[or++]+yt,gr=hr[or++]+Pr+yt;or++;var Jt=hr[or++],Dt=Ar+v(Pr)*Cn,dn=Sr+b(Pr)*mr,Pt=Ar+v(gr)*Cn,Xt=Sr+b(gr)*mr,Fn=Jt?" wa ":" at ";Math.abs(Dt-Pt)<1e-4&&(Math.abs(gr-Pr)>.01?Jt&&(Dt+=270/_):Math.abs(dn-Sr)<1e-4?Jt&&Dt<Ar||!Jt&&Dt>Ar?Xt-=270/_:Xt+=270/_:Jt&&dn<Sr||!Jt&&dn>Sr?Pt+=270/_:Pt-=270/_),it.push(Fn,c(((Ar-Cn)*_t+Ze)*_-T),E,c(((Sr-mr)*er+de)*_-T),E,c(((Ar+Cn)*_t+Ze)*_-T),E,c(((Sr+mr)*er+de)*_-T),E,c((Dt*_t+Ze)*_-T),E,c((dn*er+de)*_-T),E,c((Pt*_t+Ze)*_-T),E,c((Xt*er+de)*_-T)),dt=Pt,Yt=Xt;break;case s.R:var Zn=G[0],ci=G[1];Zn[0]=hr[or++],Zn[1]=hr[or++],ci[0]=Zn[0]+hr[or++],ci[1]=Zn[1]+hr[or++],we&&(x(Zn,Zn,we),x(ci,ci,we)),Zn[0]=c(Zn[0]*_-T),ci[0]=c(ci[0]*_-T),Zn[1]=c(Zn[1]*_-T),ci[1]=c(ci[1]*_-T),it.push(" m ",Zn[0],E,Zn[1]," l ",ci[0],E,Zn[1]," l ",ci[0],E,ci[1]," l ",Zn[0],E,ci[1]);break;case s.Z:it.push(" x ")}if(Ct>0){it.push(mt);for(var Xi=0;Xi<Ct;Xi++){var Gn=G[Xi];we&&x(Gn,Gn,we),it.push(c(Gn[0]*_-T),E,c(Gn[1]*_-T),Xi<Ct-1?E:"")}}}return it.join("")};o.prototype.brushVML=function(q){var fe=this.style,we=this._vmlEl;we||(we=r.createNode("shape"),I(we),this._vmlEl=we),Q(we,"fill",fe,this),Q(we,"stroke",fe,this);var Ne=this.transform,je=Ne!=null,me=we.getElementsByTagName("stroke")[0];if(me){var Ce=fe.lineWidth;if(je&&!fe.strokeNoScale){var Fe=Ne[0]*Ne[3]-Ne[1]*Ne[2];Ce*=d(g(Fe))}me.weight=Ce+"px"}var it=this.path||(this.path=new e);this.__dirtyPath&&(it.beginPath(),it.subPixelOptimize=!1,this.buildPath(it,this.shape),it.toStatic(),this.__dirtyPath=!1),we.path=re(it,this.transform),we.style.zIndex=X(this.zlevel,this.z,this.z2),F(q,we),fe.text!=null?this.drawRectText(q,this.getBoundingRect()):this.removeRectText(q)},o.prototype.onRemove=function(q){P(q,this._vmlEl),this.removeRectText(q)},o.prototype.onAdd=function(q){F(q,this._vmlEl),this.appendRectText(q)};var ee=function(fe){return typeof fe=="object"&&fe.tagName&&fe.tagName.toUpperCase()==="IMG"};i.prototype.brushVML=function(q){var fe=this.style,we=fe.image,Ne,je;if(ee(we)){var me=we.src;if(me===this._imageSrc)Ne=this._imageWidth,je=this._imageHeight;else{var Ce=we.runtimeStyle,Fe=Ce.width,it=Ce.height;Ce.width="auto",Ce.height="auto",Ne=we.width,je=we.height,Ce.width=Fe,Ce.height=it,this._imageSrc=me,this._imageWidth=Ne,this._imageHeight=je}we=me}else we===this._imageSrc&&(Ne=this._imageWidth,je=this._imageHeight);if(!we)return;var Ct=fe.x||0,mt=fe.y||0,Ve=fe.width,or=fe.height,dt=fe.sWidth,Yt=fe.sHeight,hr=fe.sx||0,Gt=fe.sy||0,Pt=dt&&Yt,Xt=this._vmlEl;Xt||(Xt=r.doc.createElement("div"),I(Xt),this._vmlEl=Xt);var Ge=Xt.style,pe=!1,se,lt=1,Ze=1;if(this.transform&&(se=this.transform,lt=d(se[0]*se[0]+se[1]*se[1]),Ze=d(se[2]*se[2]+se[3]*se[3]),pe=se[1]||se[2]),pe){var de=[Ct,mt],_t=[Ct+Ve,mt],er=[Ct,mt+or],yt=[Ct+Ve,mt+or];x(de,de,se),x(_t,_t,se),x(er,er,se),x(yt,yt,se);var Ar=S(de[0],_t[0],er[0],yt[0]),Sr=S(de[1],_t[1],er[1],yt[1]),Cn=[];Cn.push("M11=",se[0]/lt,E,"M12=",se[2]/Ze,E,"M21=",se[1]/lt,E,"M22=",se[3]/Ze,E,"Dx=",c(Ct*lt+se[4]),E,"Dy=",c(mt*Ze+se[5])),Ge.padding="0 "+c(Ar)+"px "+c(Sr)+"px 0",Ge.filter=C+".Matrix("+Cn.join("")+", SizingMethod=clip)"}else se&&(Ct=Ct*lt+se[4],mt=mt*Ze+se[5]),Ge.filter="",Ge.left=c(Ct)+"px",Ge.top=c(mt)+"px";var mr=this._imageEl,Pr=this._cropEl;mr||(mr=r.doc.createElement("div"),this._imageEl=mr);var gr=mr.style;if(Pt){if(Ne&&je)gr.width=c(lt*Ne*Ve/dt)+"px",gr.height=c(Ze*je*or/Yt)+"px";else{var Jt=new Image,Dt=this;Jt.onload=function(){Jt.onload=null,Ne=Jt.width,je=Jt.height,gr.width=c(lt*Ne*Ve/dt)+"px",gr.height=c(Ze*je*or/Yt)+"px",Dt._imageWidth=Ne,Dt._imageHeight=je,Dt._imageSrc=we},Jt.src=we}Pr||(Pr=r.doc.createElement("div"),Pr.style.overflow="hidden",this._cropEl=Pr);var dn=Pr.style;dn.width=c((Ve+hr*Ve/dt)*lt),dn.height=c((or+Gt*or/Yt)*Ze),dn.filter=C+".Matrix(Dx="+-hr*Ve/dt*lt+",Dy="+-Gt*or/Yt*Ze+")",Pr.parentNode||Xt.appendChild(Pr),mr.parentNode!==Pr&&Pr.appendChild(mr)}else gr.width=c(lt*Ve)+"px",gr.height=c(Ze*or)+"px",Xt.appendChild(mr),Pr&&Pr.parentNode&&(Xt.removeChild(Pr),this._cropEl=null);var Fn="",Zn=fe.opacity;Zn<1&&(Fn+=".Alpha(opacity="+c(Zn*100)+") "),Fn+=C+".AlphaImageLoader(src="+we+", SizingMethod=scale)",gr.filter=Fn,Xt.style.zIndex=X(this.zlevel,this.z,this.z2),F(q,Xt),fe.text!=null&&this.drawRectText(q,this.getBoundingRect())},i.prototype.onRemove=function(q){P(q,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(q)},i.prototype.onAdd=function(q){F(q,this._vmlEl),this.appendRectText(q)};var ue="normal",$={},be=0,_e=100,Ee=document.createElement("div"),Xe=function(fe){var we=$[fe];if(!we){be>_e&&(be=0,$={});var Ne=Ee.style,je;try{Ne.font=fe,je=Ne.fontFamily.split(",")[0]}catch(me){}we={style:Ne.fontStyle||ue,variant:Ne.fontVariant||ue,weight:Ne.fontWeight||ue,size:parseFloat(Ne.fontSize||12)|0,family:je||"Microsoft YaHei"},$[fe]=we,be++}return we},He;f.$override("measureText",function(q,fe){var we=r.doc;He||(He=we.createElement("div"),He.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",r.doc.body.appendChild(He));try{He.style.font=fe}catch(Ne){}return He.innerHTML="",He.appendChild(we.createTextNode(q)),{width:He.offsetWidth}});for(var nt=new A,Ie=function(fe,we,Ne,je){var me=this.style;this.__dirty&&h.normalizeTextStyle(me,!0);var Ce=me.text;if(Ce!=null&&(Ce+=""),!Ce)return;if(me.rich){var Fe=f.parseRichText(Ce,me);Ce=[];for(var it=0;it<Fe.lines.length;it++){for(var Ct=Fe.lines[it].tokens,mt=[],Ve=0;Ve<Ct.length;Ve++)mt.push(Ct[Ve].text);Ce.push(mt.join(""))}Ce=Ce.join(`
`)}var or,dt,Yt=me.textAlign,hr=me.textVerticalAlign,Gt=Xe(me.font),Pt=Gt.style+" "+Gt.variant+" "+Gt.weight+" "+Gt.size+'px "'+Gt.family+'"';Ne=Ne||f.getBoundingRect(Ce,Pt,Yt,hr,me.textPadding,me.textLineHeight);var Xt=this.transform;if(Xt&&!je&&(nt.copy(we),nt.applyTransform(Xt),we=nt),je)or=we.x,dt=we.y;else{var Ge=me.textPosition;if(Ge instanceof Array)or=we.x+B(Ge[0],we.width),dt=we.y+B(Ge[1],we.height),Yt=Yt||"left";else{var pe=this.calculateTextPosition?this.calculateTextPosition({},me,we):f.calculateTextPosition({},me,we);or=pe.x,dt=pe.y,Yt=Yt||pe.textAlign,hr=hr||pe.textVerticalAlign}}or=f.adjustTextX(or,Ne.width,Yt),dt=f.adjustTextY(dt,Ne.height,hr),dt+=Ne.height/2;var se=r.createNode,lt=this._textVmlEl,Ze,de,_t;lt?(_t=lt.firstChild,Ze=_t.nextSibling,de=Ze.nextSibling):(lt=se("line"),Ze=se("path"),de=se("textpath"),_t=se("skew"),de.style["v-text-align"]="left",I(lt),Ze.textpathok=!0,de.on=!0,lt.from="0 0",lt.to="1000 0.05",F(lt,_t),F(lt,Ze),F(lt,de),this._textVmlEl=lt);var er=[or,dt],yt=lt.style;Xt&&je?(x(er,er,Xt),_t.on=!0,_t.matrix=Xt[0].toFixed(3)+E+Xt[2].toFixed(3)+E+Xt[1].toFixed(3)+E+Xt[3].toFixed(3)+",0,0",_t.offset=(c(er[0])||0)+","+(c(er[1])||0),_t.origin="0 0",yt.left="0px",yt.top="0px"):(_t.on=!1,yt.left=c(or)+"px",yt.top=c(dt)+"px"),de.string=R(Ce);try{de.style.font=Pt}catch(Ar){}Q(lt,"fill",{fill:me.textFill,opacity:me.opacity},this),Q(lt,"stroke",{stroke:me.textStroke,opacity:me.opacity,lineDash:me.lineDash||null},this),lt.style.zIndex=X(this.zlevel,this.z,this.z2),F(fe,lt)},oe=function(fe){P(fe,this._textVmlEl),this._textVmlEl=null},ot=function(fe){F(fe,this._textVmlEl)},he=[u,a,i,o,t],J=0;J<he.length;J++){var Y=he[J].prototype;Y.drawRectText=Ie,Y.removeRectText=oe,Y.appendRectText=ot}t.prototype.brushVML=function(q){var fe=this.style;fe.text!=null?this.drawRectText(q,{x:fe.x||0,y:fe.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(q)},t.prototype.onRemove=function(q){this.removeRectText(q)},t.prototype.onAdd=function(q){this.appendRectText(q)}}},qJCg:function(k,D,n){var y=n("BlVb"),p=n("mFDi"),x=n("IwbS"),A=x.linePolygonIntersect,m={lineX:f(0),lineY:f(1),rect:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,i,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])&&y.contain(t.range,a[0],a[1])},rect:function(a,i,t){var o=t.range;if(!a||o.length<=1)return!1;var e=a.x,l=a.y,r=a.width,s=a.height,c=o[0];if(y.contain(o,e,l)||y.contain(o,e+r,l)||y.contain(o,e,l+s)||y.contain(o,e+r,l+s)||p.create(a).contain(c[0],c[1])||A(e,l,e+r,l,o)||A(e,l,e,l+s,o)||A(e+r,l,e+r,l+s,o)||A(e,l+s,e+r,l+s,o))return!0}}};function f(a){var i=["x","y"],t=["width","height"];return{point:function(o,e,l){if(o){var r=l.range,s=o[a];return h(s,r)}},rect:function(o,e,l){if(o){var r=l.range,s=[o[i[a]],o[i[a]]+o[t[a]]];return s[1]<s[0]&&s.reverse(),h(s[0],r)||h(s[1],r)||h(r[0],s)||h(r[1],s)}}}}function h(a,i){return i[0]<=a&&a<=i[1]}var u=m;k.exports=u},qM6L:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.enc,f=m.Utf16=m.Utf16BE={stringify:function(a){for(var i=a.words,t=a.sigBytes,o=[],e=0;e<t;e+=2){var l=i[e>>>2]>>>16-e%4*8&65535;o.push(String.fromCharCode(l))}return o.join("")},parse:function(a){for(var i=a.length,t=[],o=0;o<i;o++)t[o>>>1]|=a.charCodeAt(o)<<16-o%2*16;return A.create(t,i*2)}};m.Utf16LE={stringify:function(a){for(var i=a.words,t=a.sigBytes,o=[],e=0;e<t;e+=2){var l=h(i[e>>>2]>>>16-e%4*8&65535);o.push(String.fromCharCode(l))}return o.join("")},parse:function(a){for(var i=a.length,t=[],o=0;o<i;o++)t[o>>>1]|=h(a.charCodeAt(o)<<16-o%2*16);return A.create(t,i*2)}};function h(u){return u<<8&4278255360|u>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(k,D,n){var y=n("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,n){"use strict";n.d(D,"a",function(){return f});var y=n("Kwbf");function p(h,u){var a=new Set;return h.forEach(function(i){u.has(i)||a.add(i)}),a}function x(h){var u=h||{},a=u.disabled,i=u.disableCheckbox,t=u.checkable;return!!(a||i)||t===!1}function A(h,u,a,i){for(var t=new Set(h),o=new Set,e=0;e<=a;e+=1){var l=u.get(e)||new Set;l.forEach(function(d){var g=d.key,v=d.node,b=d.children,S=b===void 0?[]:b;t.has(g)&&!i(v)&&S.filter(function(E){return!i(E.node)}).forEach(function(E){t.add(E.key)})})}for(var r=new Set,s=a;s>=0;s-=1){var c=u.get(s)||new Set;c.forEach(function(d){var g=d.parent,v=d.node;if(i(v)||!d.parent||r.has(d.parent.key))return;if(i(d.parent.node)){r.add(g.key);return}var b=!0,S=!1;(g.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var C=E.key,_=t.has(C);b&&!_&&(b=!1),!S&&(_||o.has(C))&&(S=!0)}),b&&t.add(g.key),S&&o.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(p(o,t))}}function m(h,u,a,i,t){for(var o=new Set(h),e=new Set(u),l=0;l<=i;l+=1){var r=a.get(l)||new Set;r.forEach(function(g){var v=g.key,b=g.node,S=g.children,E=S===void 0?[]:S;!o.has(v)&&!e.has(v)&&!t(b)&&E.filter(function(C){return!t(C.node)}).forEach(function(C){o.delete(C.key)})})}e=new Set;for(var s=new Set,c=i;c>=0;c-=1){var d=a.get(c)||new Set;d.forEach(function(g){var v=g.parent,b=g.node;if(t(b)||!g.parent||s.has(g.parent.key))return;if(t(g.parent.node)){s.add(v.key);return}var S=!0,E=!1;(v.children||[]).filter(function(C){return!t(C.node)}).forEach(function(C){var _=C.key,T=o.has(_);S&&!T&&(S=!1),!E&&(T||e.has(_))&&(E=!0)}),S||o.delete(v.key),E&&e.add(v.key),s.add(v.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(p(e,o))}}function f(h,u,a,i){var t=[],o;i?o=i:o=x;var e=new Set(h.filter(function(c){var d=!!a[c];return d||t.push(c),d})),l=new Map,r=0;Object.keys(a).forEach(function(c){var d=a[c],g=d.level,v=l.get(g);v||(v=new Set,l.set(g,v)),v.add(d),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=A(e,l,r,o):s=m(e,u.halfCheckedKeys,l,r,o),s}},qPY4:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("u4NN"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},qWUW:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("DL4k")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CaretDownOutlined";var i=A.forwardRef(a);D.default=i},qWt2:function(k,D,n){var y=n("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,n){var y=n("bYtY"),p=n("6GrX"),x=n("hM6l"),A=n("4NO4"),m=A.makeInner,f=m();function h(a,i){i=i||[0,360],x.call(this,"angle",a,i),this.type="category"}h.prototype={constructor:h,pointToData:function(a,i){return this.polar.pointToData(a,i)[this.dim==="radius"?0:1]},dataToAngle:x.prototype.dataToCoord,angleToData:x.prototype.coordToData,calculateCategoryInterval:function(){var a=this,i=a.getLabelModel(),t=a.scale,o=t.getExtent(),e=t.count();if(o[1]-o[0]<1)return 0;var l=o[0],r=a.dataToCoord(l+1)-a.dataToCoord(l),s=Math.abs(r),c=p.getBoundingRect(l,i.getFont(),"center","top"),d=Math.max(c.height,7),g=d/s;isNaN(g)&&(g=Infinity);var v=Math.max(0,Math.floor(g)),b=f(a.model),S=b.lastAutoInterval,E=b.lastTickCount;return S!=null&&E!=null&&Math.abs(S-v)<=1&&Math.abs(E-e)<=1&&S>v?v=S:(b.lastTickCount=e,b.lastAutoInterval=v),v}},y.inherits(h,x);var u=h;k.exports=u},qZTm:function(k,D,n){var y=n("fR/l"),p=n("MvSz"),x=n("7GkX");function A(m){return y(m,x,p)}k.exports=A},qgGe:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("Bsck"),A=n("VaxA"),m=A.wrapTreePathInfo,f=p.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(u,a){var i={name:u.name,children:u.data};h(i);var t=u.levels||[],o={};return o.levels=t,x.createTree(i,this,o).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(u){var a=p.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(u);return a.treePathInfo=m(i,this),a},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(u){u?this._viewRoot=u:u=this._viewRoot;var a=this.getRawData().tree.root;(!u||u!==a&&!a.contains(u))&&(this._viewRoot=a)}});function h(u){var a=0;y.each(u.children,function(t){h(t);var o=t.value;y.isArray(o)&&(o=o[0]),a+=o});var i=u.value;y.isArray(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=a),i<0&&(i=0),y.isArray(u.value)?u.value[0]=i:u.value=i}k.exports=f},qj72:function(k,D,n){var y=n("bYtY");function p(A,m){return m=m||[0,0],y.map(["x","y"],function(f,h){var u=this.getAxis(f),a=m[h],i=A[h]/2;return u.type==="category"?u.getBandWidth():Math.abs(u.dataToCoord(a-i)-u.dataToCoord(a+i))},this)}function x(A){var m=A.grid.getRect();return{coordSys:{type:"cartesian2d",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=x},"qt/9":function(k,D,n){var y=n("ProS"),p=n("bYtY");n("Wqna"),n("1tlw"),n("Mylv");var x=n("nVfU"),A=x.layout,m=n("f5Yq");n("Ae16"),y.registerLayout(p.curry(A,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("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 x(f){if((f>>24&255)===255){var h=f>>16&255,u=f>>8&255,a=f&255;h===255?(h=0,u===255?(u=0,a===255?a=0:++a):++u):++h,f=0,f+=h<<16,f+=u<<8,f+=a}else f+=1<<24;return f}function A(f){return(f[0]=x(f[0]))===0&&(f[1]=x(f[1])),f}var m=p.Encryptor=p.extend({processBlock:function(h,u){var a=this._cipher,i=a.blockSize,t=this._iv,o=this._counter;t&&(o=this._counter=t.slice(0),this._iv=void 0),A(o);var e=o.slice(0);a.encryptBlock(e,0);for(var l=0;l<i;l++)h[u+l]^=e[l]}});return p.Decryptor=m,p}(),y.mode.CTRGladman})},quyA:function(k,D){var n="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+p+x,m="\\ufe0e\\ufe0f",f="\\u200d",h=RegExp("["+f+n+A+m+"]");function u(a){return h.test(a)}k.exports=u},qwVE:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("K4ya"),A=n("XxSj"),m=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(m,{createOnAllSeries:!0,reset:function(h,u){var a=[];return u.eachComponent("visualMap",function(i){var t=h.pipelineContext;if(!i.isTargetSeries(h)||t&&t.large)return;a.push(x.incrementalApplyVisual(i.stateList,i.targetVisuals,p.bind(i.getValueState,i),i.getDataDimension(h.getData())))}),a}}),y.registerVisual(m,{createOnAllSeries:!0,reset:function(h,u){var a=h.getData(),i=[];u.eachComponent("visualMap",function(t){if(t.isTargetSeries(h)){var o=t.getVisualMeta(p.bind(f,null,h,t))||{stops:[],outerColors:[]},e=t.getDataDimension(a),l=a.getDimensionInfo(e);l!=null&&(o.dimension=l.index,i.push(o))}}),h.getData().setVisual("visualMeta",i)}});function f(h,u,a,i){for(var t=u.targetVisuals[i],o=A.prepareVisualTypes(t),e={color:h.getData().getVisual("color")},l=0,r=o.length;l<r;l++){var s=o[l],c=t[s==="opacity"?"__alphaForOpacity":s];c&&c.applyVisual(a,d,g)}return e.color;function d(v){return e[v]}function g(v,b){e[v]=b}}},"r+aA":function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("s2MQ")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="EyeInvisibleOutlined";var i=A.forwardRef(a);D.default=i},"r/2G":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("+Zaj"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},r6Bn:function(k,D,n){var y=n("bYtY"),p=n("ItGF"),x=n("4fz+"),A=n("BPZU");function m(u,a){return u.zlevel===a.zlevel?u.z===a.z?u.z2-a.z2:u.z-a.z:u.zlevel-a.zlevel}var f=function(){this._roots=[],this._displayList=[],this._displayListLen=0};f.prototype={constructor:f,traverse:function(a,i){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(a,i)},getDisplayList:function(a,i){return i=i||!1,a&&this.updateDisplayList(i),this._displayList},updateDisplayList:function(a){this._displayListLen=0;for(var i=this._roots,t=this._displayList,o=0,e=i.length;o<e;o++)this._updateAndAddDisplayable(i[o],null,a);t.length=this._displayListLen,p.canvasSupported&&A(t,m)},_updateAndAddDisplayable:function(a,i,t){if(a.ignore&&!t)return;a.beforeUpdate(),a.__dirty&&a.update(),a.afterUpdate();var o=a.clipPath;if(o){i?i=i.slice():i=[];for(var e=o,l=a;e;)e.parent=l,e.updateTransform(),i.push(e),l=e,e=e.clipPath}if(a.isGroup){for(var r=a._children,s=0;s<r.length;s++){var c=r[s];a.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,i,t)}a.__dirty=!1}else a.__clipPaths=i,this._displayList[this._displayListLen++]=a},addRoot:function(a){if(a.__storage===this)return;a instanceof x&&a.addChildrenToStorage(this),this.addToStorage(a),this._roots.push(a)},delRoot:function(a){if(a==null){for(var i=0;i<this._roots.length;i++){var t=this._roots[i];t instanceof x&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(a instanceof Array){for(var i=0,o=a.length;i<o;i++)this.delRoot(a[i]);return}var e=y.indexOf(this._roots,a);e>=0&&(this.delFromStorage(a),this._roots.splice(e,1),a instanceof x&&a.delChildrenFromStorage(this))},addToStorage:function(a){return a&&(a.__storage=this,a.dirty(!1)),this},delFromStorage:function(a){return a&&(a.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:m};var h=f;k.exports=h},rA99:function(k,D,n){var y=n("y+Vt"),p=n("QBsz"),x=n("Sj9i"),A=x.quadraticSubdivide,m=x.cubicSubdivide,f=x.quadraticAt,h=x.cubicAt,u=x.quadraticDerivativeAt,a=x.cubicDerivativeAt,i=[];function t(e,l,r){var s=e.cpx2,c=e.cpy2;return s===null||c===null?[(r?a:h)(e.x1,e.cpx1,e.cpx2,e.x2,l),(r?a:h)(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 o=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,d=r.x2,g=r.y2,v=r.cpx1,b=r.cpy1,S=r.cpx2,E=r.cpy2,C=r.percent;if(C===0)return;l.moveTo(s,c),S==null||E==null?(C<1&&(A(s,v,d,C,i),v=i[1],d=i[2],A(c,b,g,C,i),b=i[1],g=i[2]),l.quadraticCurveTo(v,b,d,g)):(C<1&&(m(s,v,S,d,C,i),v=i[1],S=i[2],d=i[3],m(c,b,E,g,C,i),b=i[1],E=i[2],g=i[3]),l.bezierCurveTo(v,b,S,E,d,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=o},"rAM+":function(k,D,n){"use strict";n.d(D,"a",function(){return p});var y=n("Qw5x");function p(x,A){var m;if(typeof Symbol=="undefined"||x[Symbol.iterator]==null){if(Array.isArray(x)||(m=Object(y.a)(x))||A&&x&&typeof x.length=="number"){m&&(x=m);var f=0,h=function(){};return{s:h,n:function(){return f>=x.length?{done:!0}:{done:!1,value:x[f++]}},e:function(o){throw o},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,a=!1,i;return{s:function(){m=x[Symbol.iterator]()},n:function(){var o=m.next();return u=o.done,o},e:function(o){a=!0,i=o},f:function(){try{!u&&m.return!=null&&m.return()}finally{if(a)throw i}}}}},rEGp:function(k,D){function n(y){var p=-1,x=Array(y.size);return y.forEach(function(A){x[++p]=A}),x}k.exports=n},rHrb:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=x(n("q1tI")),p=x(n("+QRC"));function x(g){return g&&g.__esModule?g:{default:g}}function A(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(b){return typeof b}:A=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},A(g)}function m(g,v){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(g);v&&(S=S.filter(function(E){return Object.getOwnPropertyDescriptor(g,E).enumerable})),b.push.apply(b,S)}return b}function f(g){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?m(b,!0).forEach(function(S){c(g,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):m(b).forEach(function(S){Object.defineProperty(g,S,Object.getOwnPropertyDescriptor(b,S))})}return g}function h(g,v){if(g==null)return{};var b=u(g,v),S,E;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);for(E=0;E<C.length;E++){if(S=C[E],v.indexOf(S)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,S))continue;b[S]=g[S]}}return b}function u(g,v){if(g==null)return{};var b={},S=Object.keys(g),E,C;for(C=0;C<S.length;C++){if(E=S[C],v.indexOf(E)>=0)continue;b[E]=g[E]}return b}function a(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function i(g,v){for(var b=0;b<v.length;b++){var S=v[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function t(g,v,b){return v&&i(g.prototype,v),b&&i(g,b),g}function o(g,v){return v&&(A(v)==="object"||typeof v=="function")?v:l(g)}function e(g){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},e(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function r(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),v&&s(g,v)}function s(g,v){return s=Object.setPrototypeOf||function(S,E){return S.__proto__=E,S},s(g,v)}function c(g,v,b){return v in g?Object.defineProperty(g,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[v]=b,g}var d=function(g){r(v,g);function v(){var b,S;a(this,v);for(var E=arguments.length,C=new Array(E),_=0;_<E;_++)C[_]=arguments[_];return S=o(this,(b=e(v)).call.apply(b,[this].concat(C))),c(l(S),"onClick",function(T){var w=S.props,O=w.text,I=w.onCopy,R=w.children,M=w.options,F=y.default.Children.only(R),P=(0,p.default)(O,M);I&&I(O,P),F&&F.props&&typeof F.props.onClick=="function"&&F.props.onClick(T)}),S}return t(v,[{key:"render",value:function(){var S=this.props,E=S.text,C=S.onCopy,_=S.options,T=S.children,w=h(S,["text","onCopy","options","children"]),O=y.default.Children.only(T);return y.default.cloneElement(O,f({},w,{onClick:this.onClick}))}}]),v}(y.default.PureComponent);D.CopyToClipboard=d,c(d,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ReloadOutlined";var h=D.a=p.forwardRef(f)},rUJ1:function(k,D){var n=/[&<>"']/,y=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,x=/[<>"']|&(?!#?\w+;)/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=function(T){return A[T]};function f(_,T){if(T){if(n.test(_))return _.replace(y,m)}else if(p.test(_))return _.replace(x,m);return _}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(_){return _.replace(h,function(T,w){return w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""})}var a=/(^|[^\[])\^/g;function i(_,T){_=_.source||_,T=T||"";var w={replace:function(I,R){return R=R.source||R,R=R.replace(a,"$1"),_=_.replace(I,R),w},getRegex:function(){return new RegExp(_,T)}};return w}var t=/[^\w:]/g,o=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(_,T,w){if(_){var O;try{O=decodeURIComponent(u(w)).replace(t,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.indexOf("data:")===0)return null}T&&!o.test(w)&&(w=d(T,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(I){return null}return w}var l={},r=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(_,T){l[" "+_]||(r.test(_)?l[" "+_]=_+"/":l[" "+_]=S(_,"/",!0)),_=l[" "+_];var w=_.indexOf(":")===-1;return T.substring(0,2)==="//"?w?T:_.replace(s,"$1")+T:T.charAt(0)==="/"?w?T:_.replace(c,"$1")+T:_+T}var g={exec:function(){}};function v(_){for(var T=1,w,O;T<arguments.length;T++){w=arguments[T];for(O in w)Object.prototype.hasOwnProperty.call(w,O)&&(_[O]=w[O])}return _}function b(_,T){var w=_.replace(/\|/g,function(R,M,F){for(var P=!1,X=M;--X>=0&&F[X]==="\\";)P=!P;return P?"|":" |"}),O=w.split(/ \|/),I=0;if(O.length>T)O.splice(T);else for(;O.length<T;)O.push("");for(;I<O.length;I++)O[I]=O[I].trim().replace(/\\\|/g,"|");return O}function S(_,T,w){var O=_.length;if(O===0)return"";for(var I=0;I<O;){var R=_.charAt(O-I-1);if(R===T&&!w)I++;else if(R!==T&&w)I++;else break}return _.substr(0,O-I)}function E(_,T){if(_.indexOf(T[1])===-1)return-1;for(var w=_.length,O=0,I=0;I<w;I++)if(_[I]==="\\")I++;else if(_[I]===T[0])O++;else if(_[I]===T[1]&&(O--,O<0))return I;return-1}function C(_){_&&_.sanitize&&!_.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}k.exports={escape:f,unescape:u,edit:i,cleanUrl:e,resolveUrl:d,noopTest:g,merge:v,splitCells:b,rtrim:S,findClosingBracket:E,checkSanitizeDeprecation:C}},rdUC:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"localStorage",read:A,write:m,each:f,remove:h,clearAll:u};function x(){return p.localStorage}function A(a){return x().getItem(a)}function m(a,i){return x().setItem(a,i)}function f(a){for(var i=x().length-1;i>=0;i--){var t=x().key(i);a(A(t),t)}}function h(a){return x().removeItem(a)}function u(){return x().clear()}},rdor:function(k,D,n){var y=n("lOQZ"),p=y.circularLayout;function x(A){A.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&p(m,"symbolSize")})}k.exports=x},rfSb:function(k,D,n){var y=n("T4UG"),p=n("sdST"),x=n("L0Ub"),A=x.getDimensionTypeByAxis,m=n("YXkt"),f=n("bYtY"),h=n("4NO4"),u=h.groupData,a=n("7aKB"),i=a.encodeHTML,t=n("xKMd"),o=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(F){return F[2]}),d=[];c.buckets.each(function(F,P){d.push({name:P,dataList:F})});for(var g=d.length,v=-1,b=-1,S=0;S<g;++S){var E=d[S].dataList.length;E>v&&(v=E,b=S)}for(var C=0;C<g;++C){if(C===b)continue;for(var _=d[C].name,T=0;T<v;++T){for(var w=d[b].dataList[T][0],O=d[C].dataList.length,I=-1,R=0;R<O;++R){var M=d[C].dataList[R][0];if(M===w){I=R;break}}I===-1&&(r[s]=[],r[s][0]=w,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],d=c.get("type"),g=f.filter(r.data,function(w){return w[2]!==void 0}),v=this.fixData(g||[]),b=[],S=this.nameMap=f.createHashMap(),E=0,C=0;C<v.length;++C)b.push(v[C][o]),S.get(v[C][o])||(S.set(v[C][o],E),E++);var _=p(v,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:A(d)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),T=new m(_,this);return T.initData(v),T},getLayerSeries:function(){for(var r=this.getData(),s=r.count(),c=[],d=0;d<s;++d)c[d]=d;var g=r.mapDimension("single"),v=u(c,function(S){return r.get("name",S)}),b=[];return v.buckets.each(function(S,E){S.sort(function(C,_){return r.get(g,C)-r.get(g,_)}),b.push({name:E,indices:S})}),b},getAxisTooltipData:function(r,s,c){f.isArray(r)||(r=r?[r]:[]);for(var d=this.getData(),g=this.getLayerSeries(),v=[],b=g.length,S,E=0;E<b;++E){for(var C=Number.MAX_VALUE,_=-1,T=g[E].indices.length,w=0;w<T;++w){var O=d.get(r[0],g[E].indices[w]),I=Math.abs(O-s);I<=C&&(S=O,C=I,_=g[E].indices[w])}v.push(_)}return{dataIndices:v,nestestValue:S}},formatTooltip:function(r){var s=this.getData(),c=s.getName(r),d=s.get(s.mapDimension("value"),r);return(isNaN(d)||d==null)&&(d="-"),i(c+" : "+d)},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,n){var y=n("Tghj"),p=y.__DEV__,x=n("ProS"),A=n("c8qY"),m=n("D9ME"),f=n("fls0"),h=n("RSch"),u=n("akwb"),a=n("o40c"),i=n("ZYIC"),t=n("sK/D"),o=t.createClipPath,e=x.extendChartView({type:"lines",init:function(){},render:function(l,r,s){var c=l.getData(),d=this._updateLineDraw(c,l),g=l.get("zlevel"),v=l.get("effect.trailLength"),b=s.getZr(),S=b.painter.getType()==="svg";S||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!S&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&v&&(S||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(v/10+.9,1),0)})),d.updateData(c);var E=l.get("clip",!0)&&o(l.coordinateSystem,!1,l);E?this.group.setClipPath(E):this.group.removeClipPath(),this._lastZlevel=g,this._finished=!0},incrementalPrepareRender:function(l,r,s){var c=l.getData(),d=this._updateLineDraw(c,l);d.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(),d=l.pipelineContext;if(!this._finished||d.large||d.progressiveRender)return{update:!0};var g=i.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),d=!!r.get("polyline"),g=r.pipelineContext,v=g.large;return(!s||c!==this._hasEffet||d!==this._isPolyline||v!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=v?new a:new A(d?c?u:h:c?m:f),this._hasEffet=c,this._isPolyline=d,this._isLargeDraw=v,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,n){var y=n("y+Vt"),p=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(A,m){var f=.5522848,h=m.cx,u=m.cy,a=m.rx,i=m.ry,t=a*f,o=i*f;A.moveTo(h-a,u),A.bezierCurveTo(h-a,u-o,h-t,u-i,h,u-i),A.bezierCurveTo(h+t,u-i,h+a,u-o,h+a,u),A.bezierCurveTo(h+a,u+o,h+t,u+i,h,u+i),A.bezierCurveTo(h-t,u+i,h-a,u+o,h-a,u),A.closePath()}});k.exports=p},rnVJ:function(k,D,n){var y=n("bYtY"),p=["rect","polygon","keep","clear"];function x(m,f){var h=m&&m.brush;if(y.isArray(h)||(h=h?[h]:[]),!h.length)return;var u=[];y.each(h,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(u=u.concat(l))});var a=m&&m.toolbox;y.isArray(a)&&(a=a[0]),a||(a={feature:{}},m.toolbox=[a]);var i=a.feature||(a.feature={}),t=i.brush||(i.brush={}),o=t.type||(t.type=[]);o.push.apply(o,u),A(o),f&&!o.length&&o.push.apply(o,p)}function A(m){var f={};y.each(m,function(h){f[h]=1}),m.length=0,y.each(f,function(h,u){m.push(u)})}k.exports=x},rwxt:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("GdRQ");function p(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function x(h,u){for(var a=0;a<u.length;a++){var i=u[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(h,i.key,i)}}function A(h,u,a){return u&&x(h.prototype,u),a&&x(h,a),h}var m=!y.supportsCursorURIs||y.isTouchDevice,f=function(){function h(){p(this,h),this._target=null,this._canvas=document.createElement("canvas"),m&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return A(h,[{key:"attach",value:function(a){if(this._target&&this.detach(),this._target=a,m){document.body.appendChild(this._canvas);var i={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,i),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,i),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,i),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,i)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(m){var a={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,a),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,a),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,a),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,a),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(a,i,t,o,e){if(o===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-i,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=i,this._hotSpot.y=t;var l=this._canvas.getContext("2d");this._canvas.width=o,this._canvas.height=e;var r;try{r=new ImageData(new Uint8ClampedArray(a),o,e)}catch(c){r=l.createImageData(o,e),r.data.set(new Uint8ClampedArray(a))}if(l.clearRect(0,0,o,e),l.putImageData(r,0,0),m)this._updatePosition();else{var s=this._canvas.toDataURL();this._target.style.cursor="url("+s+")"+i+" "+t+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(a,i){if(!m)return;window.visualViewport?(this._position.x=a+window.visualViewport.offsetLeft,this._position.y=i+window.visualViewport.offsetTop):(this._position.x=a,this._position.y=i),this._updatePosition();var t=document.elementFromPoint(a,i);this._updateVisibility(t)}},{key:"_handleMouseOver",value:function(a){this._handleMouseMove(a)}},{key:"_handleMouseLeave",value:function(a){this._updateVisibility(a.relatedTarget)}},{key:"_handleMouseMove",value:function(a){this._updateVisibility(a.target),this._position.x=a.clientX-this._hotSpot.x,this._position.y=a.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(a){var i=this,t=document.elementFromPoint(a.clientX,a.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!i._target)return;t=document.elementFromPoint(a.clientX,a.clientY),i._updateVisibility(t)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(a){return a?a===this._target?!0:this._target.contains(a)?!(window.getComputedStyle(a).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(a){this._captureIsActive()&&(a=document.captureElement),this._shouldShowCursor(a)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),h}();D.default=f},rySg:function(k,D,n){n("SMc4"),n("8nMs")},s2MQ:function(k,D,n){"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,n){var y=n("ProS"),p=n("bYtY"),x=n("IwbS"),A=n("gPAo"),m=n("VaxA"),f=n("9hCq"),h=n("SgGq"),u=n("mFDi"),a=n("Fofx"),i=n("5s0K"),t=n("KCsZ"),o=n("7aKB"),e=o.windowOpen,l=p.bind,r=x.Group,s=x.Rect,c=p.each,d=3,g=["label"],v=["emphasis","label"],b=["upperLabel"],S=["emphasis","upperLabel"],E=10,C=1,_=2,T=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(F){var P=T(F);return P.stroke=P.fill=P.lineWidth=null,P},O=y.extendChartView({type:"treemap",init:function(F,P){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(F,P,X,B){var j=P.findComponents({mainType:"series",subType:"treemap",query:B});if(p.indexOf(j,F)<0)return;this.seriesModel=F,this.api=X,this.ecModel=P;var W=["treemapZoomToNode","treemapRootToNode"],z=m.retrieveTargetInfo(B,W,F),V=B&&B.type,Q=F.layoutInfo,G=!this._oldTree,re=this._storage,ee=V==="treemapRootToNode"&&z&&re?{rootNodeGroup:re.nodeGroup[z.node.getRawIndex()],direction:B.direction}:null,ue=this._giveContainerGroup(Q),$=this._doRender(ue,F,ee);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(ue,$,F,ee):$.renderFinally(),this._resetController(X),this._renderBreadcrumb(F,X,z)},_giveContainerGroup:function(F){var P=this._containerGroup;return P||(P=this._containerGroup=new r,this._initEvents(P),this.group.add(P)),P.attr("position",[F.x,F.y]),P},_doRender:function(F,P,X){var B=P.getData().tree,j=this._oldTree,W=I(),z=I(),V=this._storage,Q=[],G=p.curry(R,P,z,V,X,W,Q);ee(B.root?[B.root]:[],j&&j.root?[j.root]:[],F,B===j||!j,0);var re=ue(V);return this._oldTree=B,this._storage=z,{lastsForAnimation:W,willDeleteEls:re,renderFinally:$};function ee(be,_e,Ee,Xe,He){Xe?(_e=be,c(be,function(oe,ot){!oe.isRemoved()&&Ie(ot,ot)})):new A(_e,be,nt,nt).add(Ie).update(Ie).remove(p.curry(Ie,null)).execute();function nt(oe){return oe.getId()}function Ie(oe,ot){var he=oe!=null?be[oe]:null,J=ot!=null?_e[ot]:null,Y=G(he,J,Ee,He);Y&&ee(he&&he.viewChildren||[],J&&J.viewChildren||[],Y,Xe,He+1)}}function ue(be){var _e=I();return be&&c(be,function(Ee,Xe){var He=_e[Xe];c(Ee,function(nt){nt&&(He.push(nt),nt.__tmWillDelete=1)})}),_e}function $(){c(re,function(be){c(be,function(_e){_e.parent&&_e.parent.remove(_e)})}),c(Q,function(be){be.invisible=!0,be.dirty()})}},_doAnimation:function(F,P,X,B){if(!X.get("animation"))return;var j=X.get("animationDurationUpdate"),W=X.get("animationEasing"),z=i.createWrap();c(P.willDeleteEls,function(V,Q){c(V,function(G,re){if(G.invisible)return;var ee=G.parent,ue;if(B&&B.direction==="drillDown")ue=ee===B.rootNodeGroup?{shape:{x:0,y:0,width:ee.__tmNodeWidth,height:ee.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var $=0,be=0;ee.__tmWillDelete||($=ee.__tmNodeWidth/2,be=ee.__tmNodeHeight/2),ue=Q==="nodeGroup"?{position:[$,be],style:{opacity:0}}:{shape:{x:$,y:be,width:0,height:0},style:{opacity:0}}}ue&&z.add(G,ue,j,W)})}),c(this._storage,function(V,Q){c(V,function(G,re){var ee=P.lastsForAnimation[Q][re],ue={};if(!ee)return;Q==="nodeGroup"?ee.old&&(ue.position=G.position.slice(),G.attr("position",ee.old)):(ee.old&&(ue.shape=p.extend({},G.shape),G.setShape(ee.old)),ee.fadein?(G.setStyle("opacity",0),ue.style={opacity:1}):G.style.opacity!==1&&(ue.style={opacity:1})),z.add(G,ue,j,W)})},this),this._state="animating",z.done(l(function(){this._state="ready",P.renderFinally()},this)).start()},_resetController:function(F){var P=this._controller;P||(P=this._controller=new h(F.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,F.getWidth(),F.getHeight());P.setPointerChecker(function(B,j,W){return X.contain(j,W)})},_clearController:function(){var F=this._controller;F&&(F.dispose(),F=null)},_onPan:function(F){if(this._state!=="animating"&&(Math.abs(F.dx)>d||Math.abs(F.dy)>d)){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+F.dx,y:X.y+F.dy,width:X.width,height:X.height}})}},_onZoom:function(F){var P=F.originX,X=F.originY;if(this._state!=="animating"){var B=this.seriesModel.getData().tree.root;if(!B)return;var j=B.getLayout();if(!j)return;var W=new u(j.x,j.y,j.width,j.height),z=this.seriesModel.layoutInfo;P-=z.x,X-=z.y;var V=a.create();a.translate(V,V,[-P,-X]),a.scale(V,V,[F.scale,F.scale]),a.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(F){F.on("click",function(P){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var B=this.findTarget(P.offsetX,P.offsetY);if(!B)return;var j=B.node;if(j.getLayout().isLeafRoot)this._rootToNode(B);else if(X==="zoomToNode")this._zoomToNode(B);else if(X==="link"){var W=j.hostTree.data.getItemModel(j.dataIndex),z=W.get("link",!0),V=W.get("target",!0)||"blank";z&&e(z,V)}},this)},_renderBreadcrumb:function(F,P,X){X||(X=F.get("leafDepth",!0)!=null?{node:F.getViewRoot()}:this.findTarget(P.getWidth()/2,P.getHeight()/2),X||(X={node:F.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new f(this.group))).render(F,P,X.node,l(B,this));function B(j){this._state!=="animating"&&(m.aboveViewRoot(F.getViewRoot(),j)?this._rootToNode({node:j}):this._zoomToNode({node:j}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(F){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:F.node})},_rootToNode:function(F){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:F.node})},findTarget:function(F,P){var X,B=this.seriesModel.getViewRoot();return B.eachNode({attr:"viewChildren",order:"preorder"},function(j){var W=this._storage.background[j.getRawIndex()];if(W){var z=W.transformCoordToLocal(F,P),V=W.shape;if(V.x<=z[0]&&z[0]<=V.x+V.width&&V.y<=z[1]&&z[1]<=V.y+V.height)X={node:j,offsetX:z[0],offsetY:z[1]};else return!1}},this),X}});function I(){return{nodeGroup:[],background:[],content:[]}}function R(F,P,X,B,j,W,z,V,Q,G){if(!z)return;var re=z.getLayout(),ee=F.getData();if(ee.setItemGraphicEl(z.dataIndex,null),!re||!re.isInView)return;var ue=re.width,$=re.height,be=re.borderWidth,_e=re.invisible,Ee=z.getRawIndex(),Xe=V&&V.getRawIndex(),He=z.viewChildren,nt=re.upperHeight,Ie=He&&He.length,oe=z.getModel("itemStyle"),ot=z.getModel("emphasis.itemStyle"),he=Ce("nodeGroup",r);if(!he)return;if(Q.add(he),he.attr("position",[re.x||0,re.y||0]),he.__tmNodeWidth=ue,he.__tmNodeHeight=$,re.isAboveViewRoot)return he;var J=z.getModel(),Y=Ce("background",s,G,C);if(Y&&fe(he,Y,Ie&&re.upperLabelHeight),Ie)x.isHighDownDispatcher(he)&&x.setAsHighDownDispatcher(he,!1),Y&&(x.setAsHighDownDispatcher(Y,!0),ee.setItemGraphicEl(z.dataIndex,Y));else{var q=Ce("content",s,G,_);q&&we(he,q),Y&&x.isHighDownDispatcher(Y)&&x.setAsHighDownDispatcher(Y,!1),x.setAsHighDownDispatcher(he,!0),ee.setItemGraphicEl(z.dataIndex,he)}return he;function fe(Ct,mt,Ve){if(mt.dataIndex=z.dataIndex,mt.seriesIndex=F.seriesIndex,mt.setShape({x:0,y:0,width:ue,height:$}),_e)Ne(mt);else{mt.invisible=!1;var or=z.getVisual("borderColor",!0),dt=ot.get("borderColor"),Yt=w(oe);Yt.fill=or;var hr=T(ot);if(hr.fill=dt,Ve){var Gt=ue-2*be;je(Yt,hr,or,Gt,nt,{x:be,y:0,width:Gt,height:nt})}else Yt.text=hr.text=null;mt.setStyle(Yt),x.setElementHoverStyle(mt,hr)}Ct.add(mt)}function we(Ct,mt){mt.dataIndex=z.dataIndex,mt.seriesIndex=F.seriesIndex;var Ve=Math.max(ue-2*be,0),or=Math.max($-2*be,0);if(mt.culling=!0,mt.setShape({x:be,y:be,width:Ve,height:or}),_e)Ne(mt);else{mt.invisible=!1;var dt=z.getVisual("color",!0),Yt=w(oe);Yt.fill=dt;var hr=T(ot);je(Yt,hr,dt,Ve,or),mt.setStyle(Yt),x.setElementHoverStyle(mt,hr)}Ct.add(mt)}function Ne(Ct){!Ct.invisible&&W.push(Ct)}function je(Ct,mt,Ve,or,dt,Yt){var hr=J.get("name"),Gt=J.getModel(Yt?b:g),Pt=J.getModel(Yt?S:v),Xt=Gt.getShallow("show");x.setLabelStyle(Ct,mt,Gt,Pt,{defaultText:Xt?hr:null,autoColor:Ve,isRectText:!0,labelFetcher:F,labelDataIndex:z.dataIndex,labelProp:Yt?"upperLabel":"label"}),me(Ct,Yt,re),me(mt,Yt,re),Yt&&(Ct.textRect=p.clone(Yt)),Ct.truncate=Xt&&Gt.get("ellipsis")?{outerWidth:or,outerHeight:dt,minChar:2}:null}function me(Ct,mt,Ve){var or=Ct.text;if(!mt&&Ve.isLeafRoot&&or!=null){var dt=F.get("drillDownIcon",!0);Ct.text=dt?dt+" "+or:or}}function Ce(Ct,mt,Ve,or){var dt=Xe!=null&&X[Ct][Xe],Yt=j[Ct];return dt?(X[Ct][Xe]=null,Fe(Yt,dt,Ct)):_e||(dt=new mt({z:M(Ve,or)}),dt.__tmDepth=Ve,dt.__tmStorageName=Ct,it(Yt,dt,Ct)),P[Ct][Ee]=dt}function Fe(Ct,mt,Ve){var or=Ct[Ee]={};or.old=Ve==="nodeGroup"?mt.position.slice():p.extend({},mt.shape)}function it(Ct,mt,Ve){var or=Ct[Ee]={},dt=z.parentNode;if(dt&&(!B||B.direction==="drillDown")){var Yt=0,hr=0,Gt=j.background[dt.getRawIndex()];!B&&Gt&&Gt.old&&(Yt=Gt.old.width,hr=Gt.old.height),or.old=Ve==="nodeGroup"?[0,hr]:{x:Yt,y:hr,width:0,height:0}}or.fadein=Ve!=="nodeGroup"}}function M(F,P){var X=F*E+P;return(X-1)/X}k.exports=O},sAZ8:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("+rIm"),A=n("/IIm"),m=n("9KIM"),f=n("IwbS"),h=["axisLine","axisTickLabel","axisName"],u=y.extendComponentView({type:"parallelAxis",init:function(e,l){u.superApply(this,"init",arguments),(this._brushController=new A(l.getZr())).on("brush",p.bind(this._onBrush,this))},render:function(e,l,r,s){if(a(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 d=t(e,l),g=d.coordinateSystem,v=e.getAreaSelectStyle(),b=v.width,S=e.axis.dim,E=g.getAxisLayout(S),C=p.extend({strokeContainThreshold:b},E),_=new x(e,C);p.each(h,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(C,v,e,d,b,r);var T=s&&s.animation===!1?null:e;f.groupTransition(c,this._axisGroup,T)},_refreshBrushController:function(e,l,r,s,c,d){var g=r.axis.getExtent(),v=g[1]-g[0],b=Math.min(30,Math.abs(v)*.1),S=f.BoundingRect.create({x:g[0],y:-c/2,width:v,height:c});S.x-=b,S.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:m.makeRectPanelClipPath(S),isTargetByCursor:m.makeRectIsTargetByCursor(S,d,s),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(S,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(i(r))},_onBrush:function(e,l){var r=this.axisModel,s=r.axis,c=p.map(e,function(d){return[s.coordToData(d.range[0],!0),s.coordToData(d.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 a(e,l,r){return r&&r.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:r})[0]===e}function i(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 o=u;k.exports=o},sE09:function(k,D,n){},sEf8:function(k,D){function n(y){return function(p){return y(p)}}k.exports=n},sGsY:function(k,D,n){"use strict";var y=n("lSNA"),p=n.n(y),x=n("pVnL"),A=n.n(x),m=n("q1tI"),f=n("TSYQ"),h=n.n(f),u=n("H84U"),a=n("B6l+"),i=n.n(a),t=function(z){var V=z.value,Q=z.formatter,G=z.precision,re=z.decimalSeparator,ee=z.groupSeparator,ue=ee===void 0?"":ee,$=z.prefixCls,be;if(typeof Q=="function")be=Q(V);else{var _e=String(V),Ee=_e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ee||_e==="-")be=_e;else{var Xe=Ee[1],He=Ee[2]||"0",nt=Ee[4]||"";He=He.replace(/\B(?=(\d{3})+(?!\d))/g,ue),typeof G=="number"&&(nt=i()(nt,G,"0").slice(0,G)),nt&&(nt="".concat(re).concat(nt)),be=[m.createElement("span",{key:"int",className:"".concat($,"-content-value-int")},Xe,He),nt&&m.createElement("span",{key:"decimal",className:"".concat($,"-content-value-decimal")},nt)]}}return m.createElement("span",{className:"".concat($,"-content-value")},be)},o=t,e=function(z){var V=z.prefixCls,Q=z.className,G=z.style,re=z.valueStyle,ee=z.value,ue=ee===void 0?0:ee,$=z.title,be=z.valueRender,_e=z.prefix,Ee=z.suffix,Xe=z.direction,He=z.onMouseEnter,nt=z.onMouseLeave,Ie=m.createElement(o,A()({},z,{value:ue})),oe=h()(V,Q,p()({},"".concat(V,"-rtl"),Xe==="rtl"));return m.createElement("div",{className:oe,style:G,onMouseEnter:He,onMouseLeave:nt},$&&m.createElement("div",{className:"".concat(V,"-title")},$),m.createElement("div",{style:re,className:"".concat(V,"-content")},_e&&m.createElement("span",{className:"".concat(V,"-content-prefix")},_e),be?be(Ie):Ie,Ee&&m.createElement("span",{className:"".concat(V,"-content-suffix")},Ee)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(u.c)({prefixCls:"statistic"})(e),r=l,s=n("lwsE"),c=n.n(s),d=n("W8MJ"),g=n.n(d),v=n("7W2i"),b=n.n(v),S=n("LQ03"),E=n.n(S),C=n("J4zp"),_=n.n(C),T=n("QQZ/"),w=n.n(T),O=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(W,z){var V=W,Q=/\[[^\]]*]/g,G=(z.match(Q)||[]).map(function($){return $.slice(1,-1)}),re=z.replace(Q,"[]"),ee=O.reduce(function($,be){var _e=_()(be,2),Ee=_e[0],Xe=_e[1];if($.indexOf(Ee)!==-1){var He=Math.floor(V/Xe);return V-=He*Xe,$.replace(new RegExp("".concat(Ee,"+"),"g"),function(nt){var Ie=nt.length;return w()(He.toString(),Ie,"0")})}return $},re),ue=0;return ee.replace(Q,function(){var $=G[ue];return ue+=1,$})}function R(W,z){var V=z.format,Q=V===void 0?"":V,G=new Date(W).getTime(),re=Date.now(),ee=Math.max(G-re,0);return I(ee,Q)}var M=n("0n0R"),F=1e3/30;function P(W){return new Date(W).getTime()}var X=function(W){b()(V,W);var z=E()(V);function V(){var Q;return c()(this,V),Q=z.apply(this,arguments),Q.syncTimer=function(){var G=Q.props.value,re=P(G);re>=Date.now()?Q.startTimer():Q.stopTimer()},Q.startTimer=function(){if(Q.countdownId)return;Q.countdownId=window.setInterval(function(){Q.forceUpdate()},F)},Q.stopTimer=function(){var G=Q.props,re=G.onFinish,ee=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var ue=P(ee);re&&ue<Date.now()&&re()}},Q.formatCountdown=function(G,re){var ee=Q.props.format;return R(G,A()(A()({},re),{format:ee}))},Q.valueRender=function(G){return Object(M.a)(G,{title:void 0})},Q}return g()(V,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return m.createElement(r,A()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);X.defaultProps={format:"HH:mm:ss"};var B=X;r.Countdown=B;var j=D.a=r},"sK/D":function(k,D,n){var y=n("IwbS"),p=n("OELB"),x=p.round;function A(h,u,a){var i=h.getArea(),t=h.getBaseAxis().isHorizontal(),o=i.x,e=i.y,l=i.width,r=i.height,s=a.get("lineStyle.width")||2;o-=s/2,e-=s/2,l+=s,r+=s,o=Math.floor(o),l=Math.round(l);var c=new y.Rect({shape:{x:o,y:e,width:l,height:r}});return u&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:l,height:r}},a)),c}function m(h,u,a){var i=h.getArea(),t=new y.Sector({shape:{cx:x(h.cx,1),cy:x(h.cy,1),r0:x(i.r0,1),r:x(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return u&&(t.shape.endAngle=i.startAngle,y.initProps(t,{shape:{endAngle:i.endAngle}},a)),t}function f(h,u,a){if(h){if(h.type==="polar")return m(h,u,a);if(h.type==="cartesian2d")return A(h,u,a)}else return null;return null}D.createGridClipPath=A,D.createPolarClipPath=m,D.createClipPath=f},sKgW:function(k,D){var n=9007199254740991,y=Math.floor;function p(x,A){var m="";if(!x||A<1||A>n)return m;do A%2&&(m+=x),A=y(A/2),A&&(x+=x);while(A);return m}k.exports=p},sPJy:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("AOa7"),A=n.n(x),m=n("lUTK"),f=n("qVdP")},sPtV:function(k,D,n){"use strict";n.d(D,"a",function(){return A});var y=n("q1tI"),p=n.n(y),x=n("hkKa");function A(m){var f=y.useRef(m),h=Object(x.a)();return[function(){return f.current},function(u){f.current=u,h()}]}},sRwP:function(k,D,n){n("jsU+"),n("2548"),n("Tp9H"),n("06DH"),n("dnwI"),n("fE02"),n("33Ds")},"sS/r":function(k,D,n){var y=n("4fz+"),p=n("iRjW"),x=n("Yl7c"),A=function(){this.group=new y,this.uid=p.getUID("viewComponent")};A.prototype={constructor:A,init:function(h,u){},render:function(h,u,a,i){},dispose:function(){},filterForExposedEvent:null};var m=A.prototype;m.updateView=m.updateLayout=m.updateVisual=function(h,u,a,i){},x.enableClassExtend(A),x.enableClassManagement(A,{registerWhenExtend:!0});var f=A;k.exports=f},"sW+o":function(k,D,n){var y=n("SrGk"),p=n("bYtY"),x=n("SUKs"),A=n("Qe9p");function m(h,u){y.call(this,h,u,["linearGradient","radialGradient"],"__gradient_in_use__")}p.inherits(m,y),m.prototype.addWithoutUpdate=function(h,u){if(u&&u.style){var a=this;p.each(["fill","stroke"],function(i){if(u.style[i]&&(u.style[i].type==="linear"||u.style[i].type==="radial")){var t=u.style[i],o=a.getDefs(!0),e;t._dom?(e=t._dom,o.contains(t._dom)||a.addDom(e)):e=a.add(t),a.markUsed(u);var l=e.getAttribute("id");h.setAttribute(i,"url(#"+l+")")}})}},m.prototype.add=function(h){var u;if(h.type==="linear")u=this.createElement("linearGradient");else if(h.type==="radial")u=this.createElement("radialGradient");else return x("Illegal gradient type."),null;return h.id=h.id||this.nextId++,u.setAttribute("id","zr"+this._zrId+"-gradient-"+h.id),this.updateDom(h,u),this.addDom(u),u},m.prototype.update=function(h){var u=this;y.prototype.update.call(this,h,function(){var a=h.type,i=h._dom.tagName;a==="linear"&&i==="linearGradient"||a==="radial"&&i==="radialGradient"?u.updateDom(h,h._dom):(u.removeDom(h),u.add(h))})},m.prototype.updateDom=function(h,u){if(h.type==="linear")u.setAttribute("x1",h.x),u.setAttribute("y1",h.y),u.setAttribute("x2",h.x2),u.setAttribute("y2",h.y2);else if(h.type==="radial")u.setAttribute("cx",h.x),u.setAttribute("cy",h.y),u.setAttribute("r",h.r);else{x("Illegal gradient type.");return}h.global?u.setAttribute("gradientUnits","userSpaceOnUse"):u.setAttribute("gradientUnits","objectBoundingBox"),u.innerHTML="";for(var a=h.colorStops,i=0,t=a.length;i<t;++i){var o=this.createElement("stop");o.setAttribute("offset",a[i].offset*100+"%");var e=a[i].color;if(e.indexOf("rgba">-1)){var l=A.parse(e)[3],r=A.toHex(e);o.setAttribute("stop-color","#"+r),o.setAttribute("stop-opacity",l)}else o.setAttribute("stop-color",a[i].color);u.appendChild(o)}h._dom=u},m.prototype.markUsed=function(h){if(h.style){var u=h.style.fill;u&&u._dom&&y.prototype.markUsed.call(this,u._dom),u=h.style.stroke,u&&u._dom&&y.prototype.markUsed.call(this,u._dom)}};var f=m;k.exports=f},sdST:function(k,D,n){var y=n("hi0g");function p(x,A){return A=A||{},y(A.coordDimensions||[],x,{dimsDef:A.dimensionsDefine||x.dimensionsDefine,encodeDef:A.encodeDefine||x.encodeDefine,dimCount:A.dimensionsCount,encodeDefaulter:A.encodeDefaulter,generateCoord:A.generateCoord,generateCoordCount:A.generateCoordCount})}k.exports=p},seXi:function(k,D,n){var y=n("qZTm"),p=1,x=Object.prototype,A=x.hasOwnProperty;function m(f,h,u,a,i,t){var o=u&p,e=y(f),l=e.length,r=y(h),s=r.length;if(l!=s&&!o)return!1;for(var c=l;c--;){var d=e[c];if(!(o?d in h:A.call(h,d)))return!1}var g=t.get(f),v=t.get(h);if(g&&v)return g==h&&v==f;var b=!0;t.set(f,h),t.set(h,f);for(var S=o;++c<l;){d=e[c];var E=f[d],C=h[d];if(a)var _=o?a(C,E,d,h,f,t):a(E,C,d,f,h,t);if(!(_===void 0?E===C||i(E,C,u,a,t):_)){b=!1;break}S||(S=d=="constructor")}if(b&&!S){var T=f.constructor,w=h.constructor;T!=w&&"constructor"in f&&"constructor"in h&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(b=!1)}return t.delete(f),t.delete(h),b}k.exports=m},shjB:function(k,D){var n=9007199254740991;function y(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=n}k.exports=y},sjKO:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=x;var y=30,p=12;function x(A,m){var f,h,u,a,i,t,o,e,l,r,s,c,d,g,v,b,S,E,C,_,T,w,O,I,R;f=A.state,h=A.next_in,I=A.input,u=h+(A.avail_in-5),a=A.next_out,R=A.output,i=a-(m-A.avail_out),t=a+(A.avail_out-257),o=f.dmax,e=f.wsize,l=f.whave,r=f.wnext,s=f.window,c=f.hold,d=f.bits,g=f.lencode,v=f.distcode,b=(1<<f.lenbits)-1,S=(1<<f.distbits)-1;e:do{d<15&&(c+=I[h++]<<d,d+=8,c+=I[h++]<<d,d+=8),E=g[c&b];t:for(;;){if(C=E>>>24,c>>>=C,d-=C,C=E>>>16&255,C===0)R[a++]=E&65535;else if(C&16){_=E&65535,C&=15,C&&(d<C&&(c+=I[h++]<<d,d+=8),_+=c&(1<<C)-1,c>>>=C,d-=C),d<15&&(c+=I[h++]<<d,d+=8,c+=I[h++]<<d,d+=8),E=v[c&S];r:for(;;){if(C=E>>>24,c>>>=C,d-=C,C=E>>>16&255,C&16){if(T=E&65535,C&=15,d<C&&(c+=I[h++]<<d,d+=8,d<C&&(c+=I[h++]<<d,d+=8)),T+=c&(1<<C)-1,T>o){A.msg="invalid distance too far back",f.mode=y;break e}if(c>>>=C,d-=C,C=a-i,T>C){if(C=T-C,C>l&&f.sane){A.msg="invalid distance too far back",f.mode=y;break e}if(w=0,O=s,r===0){if(w+=e-C,C<_){_-=C;do R[a++]=s[w++];while(--C);w=a-T,O=R}}else if(r<C){if(w+=e+r-C,C-=r,C<_){_-=C;do R[a++]=s[w++];while(--C);if(w=0,r<_){C=r,_-=C;do R[a++]=s[w++];while(--C);w=a-T,O=R}}}else if(w+=r-C,C<_){_-=C;do R[a++]=s[w++];while(--C);w=a-T,O=R}for(;_>2;)R[a++]=O[w++],R[a++]=O[w++],R[a++]=O[w++],_-=3;_&&(R[a++]=O[w++],_>1&&(R[a++]=O[w++]))}else{w=a-T;do R[a++]=R[w++],R[a++]=R[w++],R[a++]=R[w++],_-=3;while(_>2);_&&(R[a++]=R[w++],_>1&&(R[a++]=R[w++]))}}else if((C&64)===0){E=v[(E&65535)+(c&(1<<C)-1)];continue r}else{A.msg="invalid distance code",f.mode=y;break e}break}}else if((C&64)===0){E=g[(E&65535)+(c&(1<<C)-1)];continue t}else if(C&32){f.mode=p;break e}else{A.msg="invalid literal/length code",f.mode=y;break e}break}}while(h<u&&a<t);_=d>>3,h-=_,d-=_<<3,c&=(1<<d)-1,A.next_in=h,A.next_out=a,A.avail_in=h<u?5+(u-h):5-(h-u),A.avail_out=a<t?257+(t-a):257-(a-t),f.hold=c,f.bits=d;return}},szbU:function(k,D,n){var y=n("bYtY"),p=y.each;function x(m){var f=m&&m.visualMap;y.isArray(f)||(f=f?[f]:[]),p(f,function(h){if(!h)return;A(h,"splitList")&&!A(h,"pieces")&&(h.pieces=h.splitList,delete h.splitList);var u=h.pieces;u&&y.isArray(u)&&p(u,function(a){y.isObject(a)&&(A(a,"start")&&!A(a,"min")&&(a.min=a.start),A(a,"end")&&!A(a,"max")&&(a.max=a.end))})})}function A(m,f){return m&&m.hasOwnProperty&&m.hasOwnProperty(f)}k.exports=x},t23M:function(k,D,n){"use strict";var y=n("wx14"),p=n("q1tI"),x=n("Zm9Q"),A=n("Kwbf"),m=n("VTBJ"),f=n("c+Xe"),h=n("m+aA"),u=n("bdgK"),a=new Map;function i(R){R.forEach(function(M){var F,P=M.target;(F=a.get(P))===null||F===void 0||F.forEach(function(X){return X(P)})})}var t=new u.default(i),o=null,e=null;function l(R,M){a.has(R)||(a.set(R,new Set),t.observe(R)),a.get(R).add(M)}function r(R,M){a.has(R)&&(a.get(R).delete(M),a.get(R).size||(t.unobserve(R),a.delete(R)))}var s=n("1OyB"),c=n("vuIU"),d=n("Ji7U"),g=n("LK+K"),v=function(R){Object(d.a)(F,R);var M=Object(g.a)(F);function F(){return Object(s.a)(this,F),M.apply(this,arguments)}return Object(c.a)(F,[{key:"render",value:function(){return this.props.children}}]),F}(p.Component),b=p.createContext(null);function S(R){var M=R.children,F=R.onBatchResize,P=p.useRef(0),X=p.useRef([]),B=p.useContext(b),j=p.useCallback(function(W,z,V){P.current+=1;var Q=P.current;X.current.push({size:W,element:z,data:V}),Promise.resolve().then(function(){Q===P.current&&(F==null||F(X.current),X.current=[])}),B==null||B(W,z,V)},[F,B]);return p.createElement(b.Provider,{value:j},M)}function E(R,M){var F=R.children,P=R.disabled,X=p.useRef(null),B=p.useRef(null),j=p.useContext(b),W=typeof F=="function",z=W?F(X):F,V=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Q=!W&&p.isValidElement(z)&&Object(f.c)(z),G=Q?z.ref:null,re=p.useMemo(function(){return Object(f.a)(G,X)},[G,X]),ee=function(){return Object(h.a)(X.current)||Object(h.a)(B.current)};p.useImperativeHandle(M,function(){return ee()});var ue=p.useRef(R);ue.current=R;var $=p.useCallback(function(be){var _e=ue.current,Ee=_e.onResize,Xe=_e.data,He=be.getBoundingClientRect(),nt=He.width,Ie=He.height,oe=be.offsetWidth,ot=be.offsetHeight,he=Math.floor(nt),J=Math.floor(Ie);if(V.current.width!==he||V.current.height!==J||V.current.offsetWidth!==oe||V.current.offsetHeight!==ot){var Y={width:he,height:J,offsetWidth:oe,offsetHeight:ot};V.current=Y;var q=oe===Math.round(nt)?nt:oe,fe=ot===Math.round(Ie)?Ie:ot,we=Object(m.a)(Object(m.a)({},Y),{},{offsetWidth:q,offsetHeight:fe});j==null||j(we,be,Xe),Ee&&Promise.resolve().then(function(){Ee(we,be)})}},[]);return p.useEffect(function(){var be=ee();return be&&!P&&l(be,$),function(){return r(be,$)}},[X.current,P]),p.createElement(v,{ref:B},Q?p.cloneElement(z,{ref:re}):z)}var C=p.forwardRef(E),_=C,T="rc-observer-key";function w(R,M){var F=R.children,P=typeof F=="function"?[F]:Object(x.a)(F);return P.map(function(X,B){var j=(X==null?void 0:X.key)||"".concat(T,"-").concat(B);return p.createElement(_,Object(y.a)({},R,{key:j,ref:B===0?M:void 0}),X)})}var O=p.forwardRef(w);O.Collection=S;var I=D.a=O},t3Fx:function(k,D,n){"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 d=arguments[c];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(s[g]=d[g])}return s},p=function(){function s(c,d){for(var g=0;g<d.length;g++){var v=d[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}return function(c,d,g){return d&&s(c.prototype,d),g&&s(c,g),c}}(),x=n("q1tI"),A=t(x),m=n("17x9"),f=t(m),h=n("tkwv"),u=t(h),a=n("u3os"),i=n("kzFp");function t(s){return s&&s.__esModule?s:{default:s}}function o(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(d){o(this,c);var g=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,d));return g.getEchartsInstance=function(){return g.echartsLib.getInstanceByDom(g.echartsElement)||g.echartsLib.init(g.echartsElement,g.props.theme,g.props.opts)},g.dispose=function(){if(g.echartsElement){try{(0,a.clear)(g.echartsElement)}catch(v){console.warn(v)}g.echartsLib.dispose(g.echartsElement)}},g.rerender=function(){var v=g.props,b=v.onEvents,S=v.onChartReady,E=g.renderEchartDom();g.bindEvents(E,b||{}),typeof S=="function"&&g.props.onChartReady(E),g.echartsElement&&(0,a.bind)(g.echartsElement,function(){try{E.resize()}catch(C){console.warn(C)}})},g.bindEvents=function(v,b){var S=function(_,T){typeof _=="string"&&typeof T=="function"&&v.on(_,function(w){T(w,v)})};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&S(E,b[E])},g.renderEchartDom=function(){var v=g.getEchartsInstance();return v.setOption(g.props.option,g.props.notMerge||!1,g.props.lazyUpdate||!1),g.props.showLoading?v.showLoading(g.props.loadingOption||null):v.hideLoading(),v},g.echartsLib=d.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 v=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,u.default)((0,i.pick)(this.props,v),(0,i.pick)(g,v)))return;var b=this.renderEchartDom();if(!(0,u.default)(g.style,this.props.style)||!(0,u.default)(g.className,this.props.className))try{b.resize()}catch(S){console.warn(S)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var g=this,v=this.props,b=v.style,S=v.className,E=y({height:300},b);return A.default.createElement("div",{ref:function(_){g.echartsElement=_},style:E,className:"echarts-for-react "+S})}}]),c}(x.Component);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,n){var y=n("bYtY"),p=n("IwbS"),x=n("Qxkt"),A=n("Znkb"),m=n("+rIm"),f=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function h(t,o,e){o[1]>o[0]&&(o=o.slice().reverse());var l=t.coordToPoint([o[0],e]),r=t.coordToPoint([o[1],e]);return{x1:l[0],y1:l[1],x2:r[0],y2:r[1]}}function u(t){var o=t.getRadiusAxis();return o.inverse?0:1}function a(t){var o=t[0],e=t[t.length-1];o&&e&&Math.abs(Math.abs(o.coord-e.coord)-360)<1e-4&&t.pop()}var i=A.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,o){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(),d=y.map(e.getViewLabels(),function(g){var g=y.clone(g);return g.coord=e.dataToCoord(g.tickValue),g});a(d),a(s),y.each(f,function(g){t.get(g+".show")&&(!e.scale.isBlank()||g==="axisLine")&&this["_"+g](t,l,s,c,r,d)},this)},_axisLine:function(t,o,e,l,r){var s=t.getModel("axisLine.lineStyle"),c=u(o),d=c?0:1,g;r[d]===0?g=new p.Circle({shape:{cx:o.cx,cy:o.cy,r:r[c]},style:s.getLineStyle(),z2:1,silent:!0}):g=new p.Ring({shape:{cx:o.cx,cy:o.cy,r:r[c],r0:r[d]},style:s.getLineStyle(),z2:1,silent:!0}),g.style.fill=null,this.group.add(g)},_axisTick:function(t,o,e,l,r){var s=t.getModel("axisTick"),c=(s.get("inside")?-1:1)*s.get("length"),d=r[u(o)],g=y.map(e,function(v){return new p.Line({shape:h(o,[d,d+c],v.coord)})});this.group.add(p.mergePath(g,{style:y.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,o,e,l,r){if(!l.length)return;for(var s=t.getModel("axisTick"),c=t.getModel("minorTick"),d=(s.get("inside")?-1:1)*c.get("length"),g=r[u(o)],v=[],b=0;b<l.length;b++)for(var S=0;S<l[b].length;S++)v.push(new p.Line({shape:h(o,[g,g+d],l[b][S].coord)}));this.group.add(p.mergePath(v,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,o,e,l,r,s){var c=t.getCategories(!0),d=t.getModel("axisLabel"),g=d.get("margin"),v=t.get("triggerEvent");y.each(s,function(b,S){var E=d,C=b.tickValue,_=r[u(o)],T=o.coordToPoint([_+g,b.coord]),w=o.cx,O=o.cy,I=Math.abs(T[0]-w)/_<.3?"center":T[0]>w?"left":"right",R=Math.abs(T[1]-O)/_<.3?"middle":T[1]>O?"top":"bottom";c&&c[C]&&c[C].textStyle&&(E=new x(c[C].textStyle,d,d.ecModel));var M=new p.Text({silent:m.isLabelSilent(t)});this.group.add(M),p.setTextStyle(M.style,E,{x:T[0],y:T[1],textFill:E.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:I,textVerticalAlign:R}),v&&(M.eventData=m.makeAxisEventDataBase(t),M.eventData.targetType="axisLabel",M.eventData.value=b.rawLabel)},this)},_splitLine:function(t,o,e,l,r){var s=t.getModel("splitLine"),c=s.getModel("lineStyle"),d=c.get("color"),g=0;d=d instanceof Array?d:[d];for(var v=[],b=0;b<e.length;b++){var S=g++%d.length;v[S]=v[S]||[],v[S].push(new p.Line({shape:h(o,r,e[b].coord)}))}for(var b=0;b<v.length;b++)this.group.add(p.mergePath(v[b],{style:y.defaults({stroke:d[b%d.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,o,e,l,r){if(!l.length)return;for(var s=t.getModel("minorSplitLine"),c=s.getModel("lineStyle"),d=[],g=0;g<l.length;g++)for(var v=0;v<l[g].length;v++)d.push(new p.Line({shape:h(o,r,l[g][v].coord)}));this.group.add(p.mergePath(d,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,o,e,l,r){if(!e.length)return;var s=t.getModel("splitArea"),c=s.getModel("areaStyle"),d=c.get("color"),g=0;d=d instanceof Array?d:[d];for(var v=[],b=Math.PI/180,S=-e[0].coord*b,E=Math.min(r[0],r[1]),C=Math.max(r[0],r[1]),_=t.get("clockwise"),T=1;T<e.length;T++){var w=g++%d.length;v[w]=v[w]||[],v[w].push(new p.Sector({shape:{cx:o.cx,cy:o.cy,r0:E,r:C,startAngle:S,endAngle:-e[T].coord*b,clockwise:_},silent:!0})),S=-e[T].coord*b}for(var T=0;T<v.length;T++)this.group.add(p.mergePath(v[T],{style:y.defaults({fill:d[T%d.length]},c.getAreaStyle()),silent:!0}))}});k.exports=i},tMB7:function(k,D,n){var y=n("y1pI");function p(x){var A=this.__data__,m=y(A,x);return m<0?void 0:A[m][1]}k.exports=p},tSko:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("SRve")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PlusOutlined";var i=A.forwardRef(a);D.default=i},tadb:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"DataView");k.exports=x},tceW:function(k,D,n){var y=n("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getBarItemStyle:function(A){var m=p(this,A);if(this.getBorderLineDash){var f=this.getBorderLineDash();f&&(m.lineDash=f)}return m}};k.exports=x},tkwv:function(k,D,n){"use strict";var y=Array.isArray,p=Object.keys,x=Object.prototype.hasOwnProperty;k.exports=function A(m,f){if(m===f)return!0;if(m&&f&&typeof m=="object"&&typeof f=="object"){var h=y(m),u=y(f),a,i,t;if(h&&u){if(i=m.length,i!=f.length)return!1;for(a=i;a--!==0;)if(!A(m[a],f[a]))return!1;return!0}if(h!=u)return!1;var o=m instanceof Date,e=f instanceof Date;if(o!=e)return!1;if(o&&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(i=s.length,i!==p(f).length)return!1;for(a=i;a--!==0;)if(!x.call(f,s[a]))return!1;for(a=i;a--!==0;)if(t=s[a],!A(m[t],f[t]))return!1;return!0}return m!==m&&f!==f}},txkQ:function(k,D,n){var y=n("aX58");D.zrender=y;var p=n("Fofx");D.matrix=p;var x=n("QBsz");D.vector=x;var A=n("bYtY"),m=n("Qe9p");D.color=m;var f=n("IwbS"),h=n("OELB");D.number=h;var u=n("7aKB");D.format=u;var a=n("iLNv"),i=a.throttle;D.throttle=a.throttle;var t=n("FUi9");D.helper=t;var o=n("vafp");D.parseGeoJSON=o;var e=n("YXkt");D.List=e;var l=n("Qxkt");D.Model=l;var r=n("hM6l");D.Axis=r;var s=n("ItGF");D.env=s;var c=o,d={};A.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(v){d[v]=A[v]});var g={};A.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(v){g[v]=f[v]}),D.parseGeoJson=c,D.util=d,D.graphic=g},u3DP:function(k,D,n){var y=n("6GrX"),p=n("OELB"),x=p.parsePercent,A=Math.PI/180;function m(a,i,t,o,e,l,r,s,c,d){a.sort(function(I,R){return I.y-R.y});function g(I,R,M,F){for(var P=I;P<R&&!(a[P].y+M>c+r);P++)if(a[P].y+=M,P>I&&P+1<R&&a[P+1].y>a[P].y+a[P].height){v(P,M/2);return}v(R-1,M/2)}function v(I,R){for(var M=I;M>=0&&!(a[M].y-R<c);M--)if(a[M].y-=R,M>0&&a[M].y>a[M-1].y+a[M-1].height)break}function b(I,R,M,F,P,X){for(var B=(X>0,R?Number.MAX_VALUE:0),j=0,W=I.length;j<W;j++){if(I[j].labelAlignTo!=="none")continue;var z=Math.abs(I[j].y-F),V=I[j].len,Q=I[j].len2,G=z<P+V?Math.sqrt((P+V+Q)*(P+V+Q)-z*z):Math.abs(I[j].x-M);R&&G>=B&&(G=B-10),!R&&G<=B&&(G=B+10),I[j].x=M+G*X,B=G}}for(var S=0,E,C=a.length,_=[],T=[],w=0;w<C;w++){if(a[w].position==="outer"&&a[w].labelAlignTo==="labelLine"){var O=a[w].x-d;a[w].linePoints[1][0]+=O,a[w].x=d}E=a[w].y-S,E<0&&g(w,C,-E,e),S=a[w].y+a[w].height}r-S<0&&v(C-1,S-r);for(var w=0;w<C;w++)a[w].y>=t?T.push(a[w]):_.push(a[w]);b(_,!1,i,t,o,e),b(T,!0,i,t,o,e)}function f(a,i,t,o,e,l,r,s){for(var c=[],d=[],g=Number.MAX_VALUE,v=-Number.MAX_VALUE,b=0;b<a.length;b++){if(h(a[b]))continue;a[b].x<i?(g=Math.min(g,a[b].x),c.push(a[b])):(v=Math.max(v,a[b].x),d.push(a[b]))}m(d,i,t,o,1,e,l,r,s,v),m(c,i,t,o,-1,e,l,r,s,g);for(var b=0;b<a.length;b++){var S=a[b];if(h(S))continue;var E=S.linePoints;if(E){var C=S.labelAlignTo==="edge",_=S.textRect.width,T;C?S.x<i?T=E[2][0]-S.labelDistance-r-S.labelMargin:T=r+e-S.labelMargin-E[2][0]-S.labelDistance:S.x<i?T=S.x-r-S.bleedMargin:T=r+e-S.x-S.bleedMargin,T<S.textRect.width&&(S.text=y.truncateText(S.text,T,S.font),S.labelAlignTo==="edge"&&(_=y.getWidth(S.text,S.font)));var w=E[1][0]-E[2][0];C?S.x<i?E[2][0]=r+S.labelMargin+_+S.labelDistance:E[2][0]=r+e-S.labelMargin-_-S.labelDistance:(S.x<i?E[2][0]=S.x+S.labelDistance:E[2][0]=S.x-S.labelDistance,E[1][0]=E[2][0]+w),E[1][1]=E[2][1]=S.y}}}function h(a){return a.position==="center"}function u(a,i,t,o,e,l){var r=a.getData(),s=[],c,d,g=!1,v=(a.get("minShowLabelAngle")||0)*A;r.each(function(b){var S=r.getItemLayout(b),E=r.getItemModel(b),C=E.getModel("label"),_=C.get("position")||E.get("emphasis.label.position"),T=C.get("distanceToLabelLine"),w=C.get("alignTo"),O=x(C.get("margin"),t),I=C.get("bleedMargin"),R=C.getFont(),M=E.getModel("labelLine"),F=M.get("length");F=x(F,t);var P=M.get("length2");if(P=x(P,t),S.angle<v)return;var X=(S.startAngle+S.endAngle)/2,B=Math.cos(X),j=Math.sin(X),W,z,V,Q;c=S.cx,d=S.cy;var G=a.getFormattedLabel(b,"normal")||r.getName(b),re=y.getBoundingRect(G,R,Q,"top"),ee=_==="inside"||_==="inner";if(_==="center")W=S.cx,z=S.cy,Q="center";else{var ue=(ee?(S.r+S.r0)/2*B:S.r*B)+c,$=(ee?(S.r+S.r0)/2*j:S.r*j)+d;if(W=ue+B*3,z=$+j*3,!ee){var be=ue+B*(F+i-S.r),_e=$+j*(F+i-S.r),Ee=be+(B<0?-1:1)*P,Xe=_e;w==="edge"?W=B<0?e+O:e+t-O:W=Ee+(B<0?-T:T),z=Xe,V=[[ue,$],[be,_e],[Ee,Xe]]}Q=ee?"center":w==="edge"?B>0?"right":"left":B>0?"left":"right"}var He,nt=C.get("rotate");typeof nt=="number"?He=nt*(Math.PI/180):He=nt?B<0?-X+Math.PI:-X:0,g=!!He,S.label={x:W,y:z,position:_,height:re.height,len:F,len2:P,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:He,inside:ee,labelDistance:T,labelAlignTo:w,labelMargin:O,bleedMargin:I,textRect:re,text:G,font:R},ee||s.push(S.label)}),!g&&a.get("avoidLabelOverlap")&&f(s,c,d,i,t,o,e,l)}k.exports=u},u3os:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ver=D.clear=D.bind=void 0;var y=n("P4Qj"),p=function(f,h){var u=(0,y.getSensor)(f);return u.bind(h),function(){u.unbind(h)}};D.bind=p;var x=function(f){var h=(0,y.getSensor)(f);(0,y.removeSensor)(h)};D.clear=x;var A="1.0.1";D.ver=A},u4NN:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("Uc92")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="EyeOutlined";var i=A.forwardRef(a);D.default=i},u8Dt:function(k,D,n){var y=n("YESw"),p="__lodash_hash_undefined__",x=Object.prototype,A=x.hasOwnProperty;function m(f){var h=this.__data__;if(y){var u=h[f];return u===p?void 0:u}return A.call(h,f)?h[f]:void 0}k.exports=m},u9fO:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("b80e"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},uAnK:function(k,D,n){var y=n("bYtY"),p=n("Kagy"),x=n("KxfA"),A=x.retrieveRawValue;function m(f,h){var u=h.getModel("aria");if(u.get("show")){if(u.get("description")){f.setAttribute("aria-label",u.get("description"));return}}else return;var a=0;h.eachSeries(function(b,S){++a},this);var i=u.get("data.maxCount")||10,t=u.get("series.maxCount")||10,o=Math.min(a,t),e;if(a<1)return;var l=g();l?e=c(d("general.withTitle"),{title:l}):e=d("general.withoutTitle");var r=[],s=a>1?"series.multiple.prefix":"series.single.prefix";e+=c(d(s),{seriesCount:a}),h.eachSeries(function(b,S){if(S<o){var E,C=b.get("name"),_="series."+(a>1?"multiple":"single")+".";E=d(C?_+"withName":_+"withoutName"),E=c(E,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:v(b.subType)});var T=b.getData();window.data=T,T.count()>i?E+=c(d("data.partialData"),{displayCnt:i}):E+=d("data.allData");for(var w=[],O=0;O<T.count();O++)if(O<i){var I=T.getName(O),R=A(T,O);w.push(c(d(I?"data.withName":"data.withoutName"),{name:I,value:R}))}E+=w.join(d("data.separator.middle"))+d("data.separator.end"),r.push(E)}}),e+=r.join(d("series.multiple.separator.middle"))+d("series.multiple.separator.end"),f.setAttribute("aria-label",e);function c(b,S){if(typeof b!="string")return b;var E=b;return y.each(S,function(C,_){E=E.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),C)}),E}function d(b){var S=u.get(b);if(S==null){for(var E=b.split("."),C=p.aria,_=0;_<E.length;++_)C=C[E[_]];return C}else return S}function g(){var b=h.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function v(b){return p.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}k.exports=m},uGsb:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("MlIO"),n("1uat"))})(this,function(y){return function(){var p=y,x=p.x64,A=x.Word,m=x.WordArray,f=p.algo,h=f.SHA512,u=f.SHA384=h.extend({_doReset:function(){this._hash=new m.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)])},_doFinalize:function(){var i=h._doFinalize.call(this);return i.sigBytes-=16,i}});p.SHA384=h._createHelper(u),p.HmacSHA384=h._createHmacHelper(u)}(),y.SHA384})},uGxW:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(k,D,n){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(p,x,A){A=A||{},A.childrenKeyName=A.childrenKeyName||"children";var m=p||[],f=[],h=0;do{var u=m.filter(function(a){return x(a,h)})[0];if(!u)break;f.push(u),m=u[A.childrenKeyName]||[],h+=1}while(m.length>0);return f}return y})},uOyE:function(k,D,n){var y=n("ProS");y.registerAction({type:"brush",event:"brush"},function(p,x){x.eachComponent({mainType:"brush",query:p},function(A){A.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,n){k.exports=y;function y(){return n("gaXo"),{}}},uciX:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("wx14"),x=n("1OyB"),A=n("vuIU"),m=n("JX7q"),f=n("Ji7U"),h=n("LK+K"),u=n("rePB"),a=n("q1tI"),i=n("i8i4"),t=n.n(i),o=n("wgJM"),e=n("l4aY"),l=n("m+aA"),r=n("c+Xe"),s=n("zT1h"),c=n("QC+M"),d=n("TSYQ"),g=n.n(d);function v(oe,ot,he){return he?oe[0]===ot[0]:oe[0]===ot[0]&&oe[1]===ot[1]}function b(oe,ot,he){var J=oe[ot]||{};return Object(y.a)(Object(y.a)({},J),he)}function S(oe,ot,he,J){for(var Y=he.points,q=Object.keys(oe),fe=0;fe<q.length;fe+=1){var we=q[fe];if(v(oe[we].points,Y,J))return"".concat(ot,"-placement-").concat(we)}return""}var E=n("ODXe"),C=n("Ff2n"),_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var oe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(oe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(oe==null?void 0:oe.substr(0,4))},T=n("8XRh");function w(oe){var ot=oe.prefixCls,he=oe.motion,J=oe.animation,Y=oe.transitionName;return he||(J?{motionName:"".concat(ot,"-").concat(J)}:Y?{motionName:Y}:null)}function O(oe){var ot=oe.prefixCls,he=oe.visible,J=oe.zIndex,Y=oe.mask,q=oe.maskMotion,fe=oe.maskAnimation,we=oe.maskTransitionName;if(!Y)return null;var Ne={};return(q||we||fe)&&(Ne=Object(y.a)({motionAppear:!0},w({motion:q,prefixCls:ot,transitionName:we,animation:fe}))),a.createElement(T.b,Object(p.a)({},Ne,{visible:he,removeOnLeave:!0}),function(je){var me=je.className;return a.createElement("div",{style:{zIndex:J},className:g()("".concat(ot,"-mask"),me)})})}var I=n("9mu1"),R=n("TNol"),M=n("U8pU");function F(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */F=function(){return oe};var oe={},ot=Object.prototype,he=ot.hasOwnProperty,J=Object.defineProperty||function(Ze,de,_t){Ze[de]=_t.value},Y=typeof Symbol=="function"?Symbol:{},q=Y.iterator||"@@iterator",fe=Y.asyncIterator||"@@asyncIterator",we=Y.toStringTag||"@@toStringTag";function Ne(Ze,de,_t){return Object.defineProperty(Ze,de,{value:_t,enumerable:!0,configurable:!0,writable:!0}),Ze[de]}try{Ne({},"")}catch(Ze){Ne=function(_t,er,yt){return _t[er]=yt}}function je(Ze,de,_t,er){var yt=de&&de.prototype instanceof Fe?de:Fe,Ar=Object.create(yt.prototype),Sr=new pe(er||[]);return J(Ar,"_invoke",{value:Gt(Ze,_t,Sr)}),Ar}function me(Ze,de,_t){try{return{type:"normal",arg:Ze.call(de,_t)}}catch(er){return{type:"throw",arg:er}}}oe.wrap=je;var Ce={};function Fe(){}function it(){}function Ct(){}var mt={};Ne(mt,q,function(){return this});var Ve=Object.getPrototypeOf,or=Ve&&Ve(Ve(se([])));or&&or!==ot&&he.call(or,q)&&(mt=or);var dt=Ct.prototype=Fe.prototype=Object.create(mt);function Yt(Ze){["next","throw","return"].forEach(function(de){Ne(Ze,de,function(_t){return this._invoke(de,_t)})})}function hr(Ze,de){function _t(yt,Ar,Sr,Cn){var mr=me(Ze[yt],Ze,Ar);if(mr.type!=="throw"){var Pr=mr.arg,gr=Pr.value;return gr&&Object(M.a)(gr)=="object"&&he.call(gr,"__await")?de.resolve(gr.__await).then(function(Jt){_t("next",Jt,Sr,Cn)},function(Jt){_t("throw",Jt,Sr,Cn)}):de.resolve(gr).then(function(Jt){Pr.value=Jt,Sr(Pr)},function(Jt){return _t("throw",Jt,Sr,Cn)})}Cn(mr.arg)}var er;J(this,"_invoke",{value:function(Ar,Sr){function Cn(){return new de(function(mr,Pr){_t(Ar,Sr,mr,Pr)})}return er=er?er.then(Cn,Cn):Cn()}})}function Gt(Ze,de,_t){var er="suspendedStart";return function(yt,Ar){if(er==="executing")throw new Error("Generator is already running");if(er==="completed"){if(yt==="throw")throw Ar;return lt()}for(_t.method=yt,_t.arg=Ar;;){var Sr=_t.delegate;if(Sr){var Cn=Pt(Sr,_t);if(Cn){if(Cn===Ce)continue;return Cn}}if(_t.method==="next")_t.sent=_t._sent=_t.arg;else if(_t.method==="throw"){if(er==="suspendedStart")throw er="completed",_t.arg;_t.dispatchException(_t.arg)}else _t.method==="return"&&_t.abrupt("return",_t.arg);er="executing";var mr=me(Ze,de,_t);if(mr.type==="normal"){if(er=_t.done?"completed":"suspendedYield",mr.arg===Ce)continue;return{value:mr.arg,done:_t.done}}mr.type==="throw"&&(er="completed",_t.method="throw",_t.arg=mr.arg)}}}function Pt(Ze,de){var _t=de.method,er=Ze.iterator[_t];if(er===void 0)return de.delegate=null,_t==="throw"&&Ze.iterator.return&&(de.method="return",de.arg=void 0,Pt(Ze,de),de.method==="throw")||_t!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+_t+"' method")),Ce;var yt=me(er,Ze.iterator,de.arg);if(yt.type==="throw")return de.method="throw",de.arg=yt.arg,de.delegate=null,Ce;var Ar=yt.arg;return Ar?Ar.done?(de[Ze.resultName]=Ar.value,de.next=Ze.nextLoc,de.method!=="return"&&(de.method="next",de.arg=void 0),de.delegate=null,Ce):Ar:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,Ce)}function Xt(Ze){var de={tryLoc:Ze[0]};1 in Ze&&(de.catchLoc=Ze[1]),2 in Ze&&(de.finallyLoc=Ze[2],de.afterLoc=Ze[3]),this.tryEntries.push(de)}function Ge(Ze){var de=Ze.completion||{};de.type="normal",delete de.arg,Ze.completion=de}function pe(Ze){this.tryEntries=[{tryLoc:"root"}],Ze.forEach(Xt,this),this.reset(!0)}function se(Ze){if(Ze){var de=Ze[q];if(de)return de.call(Ze);if(typeof Ze.next=="function")return Ze;if(!isNaN(Ze.length)){var _t=-1,er=function yt(){for(;++_t<Ze.length;)if(he.call(Ze,_t))return yt.value=Ze[_t],yt.done=!1,yt;return yt.value=void 0,yt.done=!0,yt};return er.next=er}}return{next:lt}}function lt(){return{value:void 0,done:!0}}return it.prototype=Ct,J(dt,"constructor",{value:Ct,configurable:!0}),J(Ct,"constructor",{value:it,configurable:!0}),it.displayName=Ne(Ct,we,"GeneratorFunction"),oe.isGeneratorFunction=function(Ze){var de=typeof Ze=="function"&&Ze.constructor;return!!de&&(de===it||(de.displayName||de.name)==="GeneratorFunction")},oe.mark=function(Ze){return Object.setPrototypeOf?Object.setPrototypeOf(Ze,Ct):(Ze.__proto__=Ct,Ne(Ze,we,"GeneratorFunction")),Ze.prototype=Object.create(dt),Ze},oe.awrap=function(Ze){return{__await:Ze}},Yt(hr.prototype),Ne(hr.prototype,fe,function(){return this}),oe.AsyncIterator=hr,oe.async=function(Ze,de,_t,er,yt){yt===void 0&&(yt=Promise);var Ar=new hr(je(Ze,de,_t,er),yt);return oe.isGeneratorFunction(de)?Ar:Ar.next().then(function(Sr){return Sr.done?Sr.value:Ar.next()})},Yt(dt),Ne(dt,we,"Generator"),Ne(dt,q,function(){return this}),Ne(dt,"toString",function(){return"[object Generator]"}),oe.keys=function(Ze){var de=Object(Ze),_t=[];for(var er in de)_t.push(er);return _t.reverse(),function yt(){for(;_t.length;){var Ar=_t.pop();if(Ar in de)return yt.value=Ar,yt.done=!1,yt}return yt.done=!0,yt}},oe.values=se,pe.prototype={constructor:pe,reset:function(de){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Ge),!de)for(var _t in this)_t.charAt(0)==="t"&&he.call(this,_t)&&!isNaN(+_t.slice(1))&&(this[_t]=void 0)},stop:function(){this.done=!0;var de=this.tryEntries[0].completion;if(de.type==="throw")throw de.arg;return this.rval},dispatchException:function(de){if(this.done)throw de;var _t=this;function er(Pr,gr){return Sr.type="throw",Sr.arg=de,_t.next=Pr,gr&&(_t.method="next",_t.arg=void 0),!!gr}for(var yt=this.tryEntries.length-1;yt>=0;--yt){var Ar=this.tryEntries[yt],Sr=Ar.completion;if(Ar.tryLoc==="root")return er("end");if(Ar.tryLoc<=this.prev){var Cn=he.call(Ar,"catchLoc"),mr=he.call(Ar,"finallyLoc");if(Cn&&mr){if(this.prev<Ar.catchLoc)return er(Ar.catchLoc,!0);if(this.prev<Ar.finallyLoc)return er(Ar.finallyLoc)}else if(Cn){if(this.prev<Ar.catchLoc)return er(Ar.catchLoc,!0)}else{if(!mr)throw new Error("try statement without catch or finally");if(this.prev<Ar.finallyLoc)return er(Ar.finallyLoc)}}}},abrupt:function(de,_t){for(var er=this.tryEntries.length-1;er>=0;--er){var yt=this.tryEntries[er];if(yt.tryLoc<=this.prev&&he.call(yt,"finallyLoc")&&this.prev<yt.finallyLoc){var Ar=yt;break}}Ar&&(de==="break"||de==="continue")&&Ar.tryLoc<=_t&&_t<=Ar.finallyLoc&&(Ar=null);var Sr=Ar?Ar.completion:{};return Sr.type=de,Sr.arg=_t,Ar?(this.method="next",this.next=Ar.finallyLoc,Ce):this.complete(Sr)},complete:function(de,_t){if(de.type==="throw")throw de.arg;return de.type==="break"||de.type==="continue"?this.next=de.arg:de.type==="return"?(this.rval=this.arg=de.arg,this.method="return",this.next="end"):de.type==="normal"&&_t&&(this.next=_t),Ce},finish:function(de){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var er=this.tryEntries[_t];if(er.finallyLoc===de)return this.complete(er.completion,er.afterLoc),Ge(er),Ce}},catch:function(de){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var er=this.tryEntries[_t];if(er.tryLoc===de){var yt=er.completion;if(yt.type==="throw"){var Ar=yt.arg;Ge(er)}return Ar}}throw new Error("illegal catch attempt")},delegateYield:function(de,_t,er){return this.delegate={iterator:se(de),resultName:_t,nextLoc:er},this.method==="next"&&(this.arg=void 0),Ce}},oe}var P=n("HaE+"),X=n("dm2S"),B=["measure","alignPre","align",null,"motion"],j=function(oe,ot){var he=Object(X.a)(null),J=Object(E.a)(he,2),Y=J[0],q=J[1],fe=Object(a.useRef)();function we(me){q(me,!0)}function Ne(){o.a.cancel(fe.current)}function je(me){Ne(),fe.current=Object(o.a)(function(){we(function(Ce){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return Ce}),me==null||me()})}return Object(a.useEffect)(function(){we("measure")},[oe]),Object(a.useEffect)(function(){switch(Y){case"measure":ot();break;default:}Y&&(fe.current=Object(o.a)(Object(P.a)(F().mark(function me(){var Ce,Fe;return F().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:Ce=B.indexOf(Y),Fe=B[Ce+1],Fe&&Ce!==-1&&we(Fe);case 3:case"end":return Ct.stop()}},me)}))))},[Y]),Object(a.useEffect)(function(){return function(){Ne()}},[]),[Y,je]},W=function(oe){var ot=a.useState({width:0,height:0}),he=Object(E.a)(ot,2),J=he[0],Y=he[1];function q(we){var Ne=we.offsetWidth,je=we.offsetHeight,me=we.getBoundingClientRect(),Ce=me.width,Fe=me.height;Math.abs(Ne-Ce)<1&&Math.abs(je-Fe)<1&&(Ne=Ce,je=Fe),Y({width:Ne,height:je})}var fe=a.useMemo(function(){var we={};if(oe){var Ne=J.width,je=J.height;oe.indexOf("height")!==-1&&je?we.height=je:oe.indexOf("minHeight")!==-1&&je&&(we.minHeight=je),oe.indexOf("width")!==-1&&Ne?we.width=Ne:oe.indexOf("minWidth")!==-1&&Ne&&(we.minWidth=Ne)}return we},[oe,J]);return[fe,q]},z=a.forwardRef(function(oe,ot){var he=oe.visible,J=oe.prefixCls,Y=oe.className,q=oe.style,fe=oe.children,we=oe.zIndex,Ne=oe.stretch,je=oe.destroyPopupOnHide,me=oe.forceRender,Ce=oe.align,Fe=oe.point,it=oe.getRootDomNode,Ct=oe.getClassNameFromAlign,mt=oe.onAlign,Ve=oe.onMouseEnter,or=oe.onMouseLeave,dt=oe.onMouseDown,Yt=oe.onTouchStart,hr=oe.onClick,Gt=Object(a.useRef)(),Pt=Object(a.useRef)(),Xt=Object(a.useState)(),Ge=Object(E.a)(Xt,2),pe=Ge[0],se=Ge[1],lt=W(Ne),Ze=Object(E.a)(lt,2),de=Ze[0],_t=Ze[1];function er(){Ne&&_t(it())}var yt=j(he,er),Ar=Object(E.a)(yt,2),Sr=Ar[0],Cn=Ar[1],mr=Object(a.useState)(0),Pr=Object(E.a)(mr,2),gr=Pr[0],Jt=Pr[1],Dt=Object(a.useRef)();Object(R.a)(function(){Sr==="alignPre"&&Jt(0)},[Sr]);function dn(){return Fe||it}function Fn(){var Nt;(Nt=Gt.current)===null||Nt===void 0||Nt.forceAlign()}function Zn(Nt,Me){var ke=Ct(Me);pe!==ke&&se(ke),Jt(function(Pe){return Pe+1}),Sr==="align"&&(mt==null||mt(Nt,Me))}Object(R.a)(function(){Sr==="align"&&(gr<3?Fn():Cn(function(){var Nt;(Nt=Dt.current)===null||Nt===void 0||Nt.call(Dt)}))},[gr]);var ci=Object(y.a)({},w(oe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Nt){var Me=ci[Nt];ci[Nt]=function(ke,Pe){return Cn(),Me==null?void 0:Me(ke,Pe)}});function Xi(){return new Promise(function(Nt){Dt.current=Nt})}a.useEffect(function(){!ci.motionName&&Sr==="motion"&&Cn()},[ci.motionName,Sr]),a.useImperativeHandle(ot,function(){return{forceAlign:Fn,getElement:function(){return Pt.current}}});var Gn=Object(y.a)(Object(y.a)({},de),{},{zIndex:we,opacity:Sr==="motion"||Sr==="stable"||!he?void 0:0,pointerEvents:!he&&Sr!=="stable"?"none":void 0},q),ei=!0;Ce!=null&&Ce.points&&(Sr==="align"||Sr==="stable")&&(ei=!1);var Zt=fe;return a.Children.count(fe)>1&&(Zt=a.createElement("div",{className:"".concat(J,"-content")},fe)),a.createElement(T.b,Object(p.a)({visible:he,ref:Pt,leavedClassName:"".concat(J,"-hidden")},ci,{onAppearPrepare:Xi,onEnterPrepare:Xi,removeOnLeave:je,forceRender:me}),function(Nt,Me){var ke=Nt.className,Pe=Nt.style,tt=g()(J,Y,pe,ke);return a.createElement(I.a,{target:dn(),key:"popup",ref:Gt,monitorWindowResize:!0,disabled:ei,align:Ce,onAlign:Zn},a.createElement("div",{ref:Me,className:tt,onMouseEnter:Ve,onMouseLeave:or,onMouseDownCapture:dt,onTouchStartCapture:Yt,onClick:hr,style:Object(y.a)(Object(y.a)({},Pe),Gn)},Zt))})});z.displayName="PopupInner";var V=z,Q=a.forwardRef(function(oe,ot){var he=oe.prefixCls,J=oe.visible,Y=oe.zIndex,q=oe.children,fe=oe.mobile;fe=fe===void 0?{}:fe;var we=fe.popupClassName,Ne=fe.popupStyle,je=fe.popupMotion,me=je===void 0?{}:je,Ce=fe.popupRender,Fe=oe.onClick,it=a.useRef();a.useImperativeHandle(ot,function(){return{forceAlign:function(){},getElement:function(){return it.current}}});var Ct=Object(y.a)({zIndex:Y},Ne),mt=q;return a.Children.count(q)>1&&(mt=a.createElement("div",{className:"".concat(he,"-content")},q)),Ce&&(mt=Ce(mt)),a.createElement(T.b,Object(p.a)({visible:J,ref:it,removeOnLeave:!0},me),function(Ve,or){var dt=Ve.className,Yt=Ve.style,hr=g()(he,we,dt);return a.createElement("div",{ref:or,className:hr,onClick:Fe,style:Object(y.a)(Object(y.a)({},Yt),Ct)},mt)})});Q.displayName="MobilePopupInner";var G=Q,re=["visible","mobile"],ee=a.forwardRef(function(oe,ot){var he=oe.visible,J=oe.mobile,Y=Object(C.a)(oe,re),q=Object(a.useState)(he),fe=Object(E.a)(q,2),we=fe[0],Ne=fe[1],je=Object(a.useState)(!1),me=Object(E.a)(je,2),Ce=me[0],Fe=me[1],it=Object(y.a)(Object(y.a)({},Y),{},{visible:we});Object(a.useEffect)(function(){Ne(he),he&&J&&Fe(_())},[he,J]);var Ct=Ce?a.createElement(G,Object(p.a)({},it,{mobile:J,ref:ot})):a.createElement(V,Object(p.a)({},it,{ref:ot}));return a.createElement("div",null,a.createElement(O,it),Ct)});ee.displayName="Popup";var ue=ee,$=a.createContext(null),be=$;function _e(){}function Ee(){return""}function Xe(oe){return oe?oe.ownerDocument:window.document}var He=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function nt(oe){var ot=function(he){Object(f.a)(Y,he);var J=Object(h.a)(Y);function Y(q){var fe;Object(x.a)(this,Y),fe=J.call(this,q),Object(u.a)(Object(m.a)(fe),"popupRef",a.createRef()),Object(u.a)(Object(m.a)(fe),"triggerRef",a.createRef()),Object(u.a)(Object(m.a)(fe),"portalContainer",void 0),Object(u.a)(Object(m.a)(fe),"attachId",void 0),Object(u.a)(Object(m.a)(fe),"clickOutsideHandler",void 0),Object(u.a)(Object(m.a)(fe),"touchOutsideHandler",void 0),Object(u.a)(Object(m.a)(fe),"contextMenuOutsideHandler1",void 0),Object(u.a)(Object(m.a)(fe),"contextMenuOutsideHandler2",void 0),Object(u.a)(Object(m.a)(fe),"mouseDownTimeout",void 0),Object(u.a)(Object(m.a)(fe),"focusTime",void 0),Object(u.a)(Object(m.a)(fe),"preClickTime",void 0),Object(u.a)(Object(m.a)(fe),"preTouchTime",void 0),Object(u.a)(Object(m.a)(fe),"delayTimer",void 0),Object(u.a)(Object(m.a)(fe),"hasPopupMouseDown",void 0),Object(u.a)(Object(m.a)(fe),"onMouseEnter",function(Ne){var je=fe.props.mouseEnterDelay;fe.fireEvents("onMouseEnter",Ne),fe.delaySetPopupVisible(!0,je,je?null:Ne)}),Object(u.a)(Object(m.a)(fe),"onMouseMove",function(Ne){fe.fireEvents("onMouseMove",Ne),fe.setPoint(Ne)}),Object(u.a)(Object(m.a)(fe),"onMouseLeave",function(Ne){fe.fireEvents("onMouseLeave",Ne),fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(fe),"onPopupMouseEnter",function(){fe.clearDelayTimer()}),Object(u.a)(Object(m.a)(fe),"onPopupMouseLeave",function(Ne){var je;if(Ne.relatedTarget&&!Ne.relatedTarget.setTimeout&&Object(e.a)((je=fe.popupRef.current)===null||je===void 0?void 0:je.getElement(),Ne.relatedTarget))return;fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(fe),"onFocus",function(Ne){fe.fireEvents("onFocus",Ne),fe.clearDelayTimer(),fe.isFocusToShow()&&(fe.focusTime=Date.now(),fe.delaySetPopupVisible(!0,fe.props.focusDelay))}),Object(u.a)(Object(m.a)(fe),"onMouseDown",function(Ne){fe.fireEvents("onMouseDown",Ne),fe.preClickTime=Date.now()}),Object(u.a)(Object(m.a)(fe),"onTouchStart",function(Ne){fe.fireEvents("onTouchStart",Ne),fe.preTouchTime=Date.now()}),Object(u.a)(Object(m.a)(fe),"onBlur",function(Ne){fe.fireEvents("onBlur",Ne),fe.clearDelayTimer(),fe.isBlurToHide()&&fe.delaySetPopupVisible(!1,fe.props.blurDelay)}),Object(u.a)(Object(m.a)(fe),"onContextMenu",function(Ne){Ne.preventDefault(),fe.fireEvents("onContextMenu",Ne),fe.setPopupVisible(!0,Ne)}),Object(u.a)(Object(m.a)(fe),"onContextMenuClose",function(){fe.isContextMenuToShow()&&fe.close()}),Object(u.a)(Object(m.a)(fe),"onClick",function(Ne){if(fe.fireEvents("onClick",Ne),fe.focusTime){var je;if(fe.preClickTime&&fe.preTouchTime?je=Math.min(fe.preClickTime,fe.preTouchTime):fe.preClickTime?je=fe.preClickTime:fe.preTouchTime&&(je=fe.preTouchTime),Math.abs(je-fe.focusTime)<20)return;fe.focusTime=0}fe.preClickTime=0,fe.preTouchTime=0,fe.isClickToShow()&&(fe.isClickToHide()||fe.isBlurToHide())&&Ne&&Ne.preventDefault&&Ne.preventDefault();var me=!fe.state.popupVisible;(fe.isClickToHide()&&!me||me&&fe.isClickToShow())&&fe.setPopupVisible(!fe.state.popupVisible,Ne)}),Object(u.a)(Object(m.a)(fe),"onPopupMouseDown",function(){if(fe.hasPopupMouseDown=!0,clearTimeout(fe.mouseDownTimeout),fe.mouseDownTimeout=window.setTimeout(function(){fe.hasPopupMouseDown=!1},0),fe.context){var Ne;(Ne=fe.context).onPopupMouseDown.apply(Ne,arguments)}}),Object(u.a)(Object(m.a)(fe),"onDocumentClick",function(Ne){if(fe.props.mask&&!fe.props.maskClosable)return;var je=Ne.target,me=fe.getRootDomNode(),Ce=fe.getPopupDomNode();(!Object(e.a)(me,je)||fe.isContextMenuOnly())&&!Object(e.a)(Ce,je)&&!fe.hasPopupMouseDown&&fe.close()}),Object(u.a)(Object(m.a)(fe),"getRootDomNode",function(){var Ne=fe.props.getTriggerDOMNode;if(Ne)return Ne(fe.triggerRef.current);try{var je=Object(l.a)(fe.triggerRef.current);if(je)return je}catch(me){}return t.a.findDOMNode(Object(m.a)(fe))}),Object(u.a)(Object(m.a)(fe),"getPopupClassNameFromAlign",function(Ne){var je=[],me=fe.props,Ce=me.popupPlacement,Fe=me.builtinPlacements,it=me.prefixCls,Ct=me.alignPoint,mt=me.getPopupClassNameFromAlign;return Ce&&Fe&&je.push(S(Fe,it,Ne,Ct)),mt&&je.push(mt(Ne)),je.join(" ")}),Object(u.a)(Object(m.a)(fe),"getComponent",function(){var Ne=fe.props,je=Ne.prefixCls,me=Ne.destroyPopupOnHide,Ce=Ne.popupClassName,Fe=Ne.onPopupAlign,it=Ne.popupMotion,Ct=Ne.popupAnimation,mt=Ne.popupTransitionName,Ve=Ne.popupStyle,or=Ne.mask,dt=Ne.maskAnimation,Yt=Ne.maskTransitionName,hr=Ne.maskMotion,Gt=Ne.zIndex,Pt=Ne.popup,Xt=Ne.stretch,Ge=Ne.alignPoint,pe=Ne.mobile,se=Ne.forceRender,lt=Ne.onPopupClick,Ze=fe.state,de=Ze.popupVisible,_t=Ze.point,er=fe.getPopupAlign(),yt={};return fe.isMouseEnterToShow()&&(yt.onMouseEnter=fe.onPopupMouseEnter),fe.isMouseLeaveToHide()&&(yt.onMouseLeave=fe.onPopupMouseLeave),yt.onMouseDown=fe.onPopupMouseDown,yt.onTouchStart=fe.onPopupMouseDown,a.createElement(ue,Object(p.a)({prefixCls:je,destroyPopupOnHide:me,visible:de,point:Ge&&_t,className:Ce,align:er,onAlign:Fe,animation:Ct,getClassNameFromAlign:fe.getPopupClassNameFromAlign},yt,{stretch:Xt,getRootDomNode:fe.getRootDomNode,style:Ve,mask:or,zIndex:Gt,transitionName:mt,maskAnimation:dt,maskTransitionName:Yt,maskMotion:hr,ref:fe.popupRef,motion:it,mobile:pe,forceRender:se,onClick:lt}),typeof Pt=="function"?Pt():Pt)}),Object(u.a)(Object(m.a)(fe),"attachParent",function(Ne){o.a.cancel(fe.attachId);var je=fe.props,me=je.getPopupContainer,Ce=je.getDocument,Fe=fe.getRootDomNode(),it;me?(Fe||me.length===0)&&(it=me(Fe)):it=Ce(fe.getRootDomNode()).body,it?it.appendChild(Ne):fe.attachId=Object(o.a)(function(){fe.attachParent(Ne)})}),Object(u.a)(Object(m.a)(fe),"getContainer",function(){if(!fe.portalContainer){var Ne=fe.props.getDocument,je=Ne(fe.getRootDomNode()).createElement("div");je.style.position="absolute",je.style.top="0",je.style.left="0",je.style.width="100%",fe.portalContainer=je}return fe.attachParent(fe.portalContainer),fe.portalContainer}),Object(u.a)(Object(m.a)(fe),"setPoint",function(Ne){var je=fe.props.alignPoint;if(!je||!Ne)return;fe.setState({point:{pageX:Ne.pageX,pageY:Ne.pageY}})}),Object(u.a)(Object(m.a)(fe),"handlePortalUpdate",function(){fe.state.prevPopupVisible!==fe.state.popupVisible&&fe.props.afterPopupVisibleChange(fe.state.popupVisible)}),Object(u.a)(Object(m.a)(fe),"triggerContextValue",{onPopupMouseDown:fe.onPopupMouseDown});var we;return"popupVisible"in q?we=!!q.popupVisible:we=!!q.defaultPopupVisible,fe.state={prevPopupVisible:we,popupVisible:we},He.forEach(function(Ne){fe["fire".concat(Ne)]=function(je){fe.fireEvents(Ne,je)}}),fe}return Object(A.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var fe=this.props,we=this.state;if(we.popupVisible){var Ne;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ne=fe.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(s.a)(Ne,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ne=Ne||fe.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(s.a)(Ne,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ne=Ne||fe.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(s.a)(Ne,"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),o.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var fe;return((fe=this.popupRef.current)===null||fe===void 0?void 0:fe.getElement())||null}},{key:"getPopupAlign",value:function(){var fe=this.props,we=fe.popupPlacement,Ne=fe.popupAlign,je=fe.builtinPlacements;return we&&je?b(je,we,Ne):Ne}},{key:"setPopupVisible",value:function(fe,we){var Ne=this.props.alignPoint,je=this.state.popupVisible;this.clearDelayTimer(),je!==fe&&("popupVisible"in this.props||this.setState({popupVisible:fe,prevPopupVisible:je}),this.props.onPopupVisibleChange(fe)),Ne&&we&&fe&&this.setPoint(we)}},{key:"delaySetPopupVisible",value:function(fe,we,Ne){var je=this,me=we*1e3;if(this.clearDelayTimer(),me){var Ce=Ne?{pageX:Ne.pageX,pageY:Ne.pageY}:null;this.delayTimer=window.setTimeout(function(){je.setPopupVisible(fe,Ce),je.clearDelayTimer()},me)}else this.setPopupVisible(fe,Ne)}},{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(fe){var we=this.props.children.props,Ne=this.props;return we[fe]&&Ne[fe]?this["fire".concat(fe)]:we[fe]||Ne[fe]}},{key:"isClickToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("click")!==-1||Ne.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var fe=this.props.action;return fe==="contextMenu"||fe.length===1&&fe[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("contextMenu")!==-1||Ne.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var fe=this.props,we=fe.action,Ne=fe.hideAction;return we.indexOf("click")!==-1||Ne.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("hover")!==-1||Ne.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var fe=this.props,we=fe.action,Ne=fe.hideAction;return we.indexOf("hover")!==-1||Ne.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var fe=this.props,we=fe.action,Ne=fe.showAction;return we.indexOf("focus")!==-1||Ne.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var fe=this.props,we=fe.action,Ne=fe.hideAction;return we.indexOf("focus")!==-1||Ne.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var fe;(fe=this.popupRef.current)===null||fe===void 0||fe.forceAlign()}}},{key:"fireEvents",value:function(fe,we){var Ne=this.props.children.props[fe];Ne&&Ne(we);var je=this.props[fe];je&&je(we)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var fe=this.state.popupVisible,we=this.props,Ne=we.children,je=we.forceRender,me=we.alignPoint,Ce=we.className,Fe=we.autoDestroy,it=a.Children.only(Ne),Ct={key:"trigger"};this.isContextMenuToShow()?Ct.onContextMenu=this.onContextMenu:Ct.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ct.onClick=this.onClick,Ct.onMouseDown=this.onMouseDown,Ct.onTouchStart=this.onTouchStart):(Ct.onClick=this.createTwoChains("onClick"),Ct.onMouseDown=this.createTwoChains("onMouseDown"),Ct.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ct.onMouseEnter=this.onMouseEnter,me&&(Ct.onMouseMove=this.onMouseMove)):Ct.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ct.onMouseLeave=this.onMouseLeave:Ct.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ct.onFocus=this.onFocus,Ct.onBlur=this.onBlur):(Ct.onFocus=this.createTwoChains("onFocus"),Ct.onBlur=this.createTwoChains("onBlur"));var mt=g()(it&&it.props&&it.props.className,Ce);mt&&(Ct.className=mt);var Ve=Object(y.a)({},Ct);Object(r.c)(it)&&(Ve.ref=Object(r.a)(this.triggerRef,it.ref));var or=a.cloneElement(it,Ve),dt;return(fe||this.popupRef.current||je)&&(dt=a.createElement(oe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!fe&&Fe&&(dt=null),a.createElement(be.Provider,{value:this.triggerContextValue},or,dt)}}],[{key:"getDerivedStateFromProps",value:function(fe,we){var Ne=fe.popupVisible,je={};return Ne!==void 0&&we.popupVisible!==Ne&&(je.popupVisible=Ne,je.prevPopupVisible=we.popupVisible),je}}]),Y}(a.Component);return Object(u.a)(ot,"contextType",be),Object(u.a)(ot,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ee,getDocument:Xe,onPopupVisibleChange:_e,afterPopupVisibleChange:_e,onPopupAlign:_e,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),ot}var Ie=D.a=nt(c.a)},ugBc:function(k,D,n){"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,n){},v5uJ:function(k,D,n){var y=n("ProS"),p=n("2B6p"),x=p.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(f){var h=A.dataIndex,u=f.getData().tree,a=u.getNodeByDataIndex(h);a.isExpand=!a.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(f){var h=f.coordinateSystem,u=x(h,A);f.setCenter&&f.setCenter(u.center),f.setZoom&&f.setZoom(u.zoom)})})},"vF/C":function(k,D,n){var y=n("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,n){var y=n("SrGk"),p=n("bYtY");function x(f,h){y.call(this,f,h,["filter"],"__filter_in_use__","_shadowDom")}p.inherits(x,y),x.prototype.addWithoutUpdate=function(f,h){if(h&&A(h.style)){var u;if(h._shadowDom){u=h._shadowDom;var a=this.getDefs(!0);a.contains(h._shadowDom)||this.addDom(u)}else u=this.add(h);this.markUsed(h);var i=u.getAttribute("id");f.style.filter="url(#"+i+")"}},x.prototype.add=function(f){var h=this.createElement("filter");return f._shadowDomId=f._shadowDomId||this.nextId++,h.setAttribute("id","zr"+this._zrId+"-shadow-"+f._shadowDomId),this.updateDom(f,h),this.addDom(h),h},x.prototype.update=function(f,h){var u=h.style;if(A(u)){var a=this;y.prototype.update.call(this,h,function(){a.updateDom(h,h._shadowDom)})}else this.remove(f,h)},x.prototype.remove=function(f,h){h._shadowDomId!=null&&(this.removeDom(f),f.style.filter="")},x.prototype.updateDom=function(f,h){var u=h.getElementsByTagName("feDropShadow");u.length===0?u=this.createElement("feDropShadow"):u=u[0];var a=f.style,i=f.scale&&f.scale[0]||1,t=f.scale&&f.scale[1]||1,o,e,l,r;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)o=a.shadowOffsetX||0,e=a.shadowOffsetY||0,l=a.shadowBlur,r=a.shadowColor;else if(a.textShadowBlur)o=a.textShadowOffsetX||0,e=a.textShadowOffsetY||0,l=a.textShadowBlur,r=a.textShadowColor;else{this.removeDom(h,a);return}u.setAttribute("dx",o/i),u.setAttribute("dy",e/t),u.setAttribute("flood-color",r);var s=l/2/i,c=l/2/t,d=s+" "+c;u.setAttribute("stdDeviation",d),h.setAttribute("x","-100%"),h.setAttribute("y","-100%"),h.setAttribute("width",Math.ceil(l/2*200)+"%"),h.setAttribute("height",Math.ceil(l/2*200)+"%"),h.appendChild(u),f._shadowDom=h},x.prototype.markUsed=function(f){f._shadowDom&&y.prototype.markUsed.call(this,f._shadowDom)};function A(f){return f&&(f.shadowBlur||f.shadowOffsetX||f.shadowOffsetY||f.textShadowBlur||f.textShadowOffsetX||f.textShadowOffsetY)}var m=x;k.exports=m},vL6D:function(k,D,n){var y=n("bYtY"),p=n("+rIm"),x=n("IwbS"),A=n("7bkD"),m=n("Znkb"),f=n("WN+l"),h=f.rectCoordAxisBuildSplitArea,u=f.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine"],t=m.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,r,s){var c=this.group;c.removeAll();var d=this._axisGroup;this._axisGroup=new x.Group;var g=A.layout(e),v=new p(e,g);y.each(a,v.add,v),c.add(this._axisGroup),c.add(v.getGroup()),y.each(i,function(b){e.get(b+".show")&&this["_"+b](e)},this),x.groupTransition(d,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"),d=s.get("color");d=d instanceof Array?d:[d];for(var g=e.coordinateSystem.getRect(),v=l.isHorizontal(),b=[],S=0,E=l.getTicksCoords({tickModel:r}),C=[],_=[],T=0;T<E.length;++T){var w=l.toGlobalCoord(E[T].coord);v?(C[0]=w,C[1]=g.y,_[0]=w,_[1]=g.y+g.height):(C[0]=g.x,C[1]=w,_[0]=g.x+g.width,_[1]=w);var O=S++%d.length;b[O]=b[O]||[],b[O].push(new x.Line({subPixelOptimize:!0,shape:{x1:C[0],y1:C[1],x2:_[0],y2:_[1]},style:{lineWidth:c},silent:!0}))}for(var T=0;T<b.length;++T)this.group.add(x.mergePath(b[T],{style:{stroke:d[T%d.length],lineDash:s.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){h(this,this._axisGroup,e,e)}}),o=t;k.exports=o},vWvF:function(k,D,n){var y=n("Bq2U"),p=n("SUKs"),x=n("bYtY"),A=x.isString,m=x.isFunction,f=x.isObject,h=x.isArrayLike,u=x.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(r,s){var c,d=!1,g=this,v=this.__zr;if(r){var b=r.split("."),S=g;d=b[0]==="shape";for(var E=0,C=b.length;E<C;E++){if(!S)continue;S=S[b[E]]}S&&(c=S)}else c=g;if(!c){p('Property "'+r+'" is not existed in element '+g.id);return}var _=g.animators,T=new y(c,s);return T.during(function(w){g.dirty(d)}).done(function(){_.splice(u(_,T),1)}),_.push(T),v&&v.animation.addAnimator(T),T},stopAnimation:function(r){for(var s=this.animators,c=s.length,d=0;d<c;d++)s[d].stop(r);return s.length=0,this},animateTo:function(r,s,c,d,g,v){i(this,r,s,c,d,g,v)},animateFrom:function(r,s,c,d,g,v){i(this,r,s,c,d,g,v,!0)}};function i(l,r,s,c,d,g,v,b){A(c)?(g=d,d=c,c=0):m(d)?(g=d,d="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 S=l.animators.slice(),E=S.length;function C(){E--,E||g&&g()}E||g&&g();for(var _=0;_<S.length;_++)S[_].done(C).start(d,v)}function t(l,r,s,c,d,g,v){var b={},S=0;for(var E in c){if(!c.hasOwnProperty(E))continue;s[E]!=null?f(c[E])&&!h(c[E])?t(l,r?r+"."+E:E,s[E],c[E],d,g,v):(v?(b[E]=s[E],o(l,r,E,c[E])):b[E]=c[E],S++):c[E]!=null&&!v&&o(l,r,E,c[E])}S>0&&l.animate(r,!1).when(d==null?500:d,b).delay(g||0)}function o(l,r,s,c){if(!r)l.attr(s,c);else{var d={};d[r]={},d[r][s]=c,l.attr(d)}}var e=a;k.exports=e},vZ6x:function(k,D,n){var y=n("Tghj"),p=y.__DEV__,x=n("bYtY"),A=n("IwbS"),m=n("4NO4"),f=n("9KIM"),h=x.each,u=x.indexOf,a=x.curry,i=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function o(T,w,O){var I=this._targetInfoList=[],R={},M=r(w,T);h(s,function(F,P){(!O||!O.include||u(O.include,P)>=0)&&F(M,I,R)})}var e=o.prototype;e.setOutputRanges=function(T,w){this.matchOutputRanges(T,w,function(O,I,R){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var M=g[O.brushType](0,R,I);O.__rangeOffset={offset:b[O.brushType](M.values,O.range,[1,1]),xyMinMax:M.xyMinMax}}})},e.matchOutputRanges=function(T,w,O){h(T,function(I){var R=this.findTargetInfo(I,w);R&&R!==!0&&x.each(R.coordSyses,function(M){var F=g[I.brushType](1,M,I.range);O(I,F.values,M,w)})},this)},e.setInputRanges=function(T,w){h(T,function(O){var I=this.findTargetInfo(O,w);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var R=g[O.brushType](0,I.coordSys,O.coordRange),M=O.__rangeOffset;O.range=M?b[O.brushType](R.values,M.offset,E(R.xyMinMax,M.xyMinMax)):R.values}},this)},e.makePanelOpts=function(T,w){return x.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:w&&w(O),clipPath:f.makeRectPanelClipPath(I),isTargetByCursor:f.makeRectIsTargetByCursor(I,T,O.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(T,w,O){var I=this.findTargetInfo(T,O);return I===!0||I&&u(I.coordSyses,w.coordinateSystem)>=0},e.findTargetInfo=function(T,w){for(var O=this._targetInfoList,I=r(w,T),R=0;R<O.length;R++){var M=O[R],F=T.panelId;if(F){if(M.panelId===F)return M}else for(var R=0;R<c.length;R++)if(c[R](I,M))return M}return!0};function l(T){return T[0]>T[1]&&T.reverse(),T}function r(T,w){return m.parseFinder(T,w,{includeMainTypes:t})}var s={grid:function(T,w){var O=T.xAxisModels,I=T.yAxisModels,R=T.gridModels,M=x.createHashMap(),F={},P={};if(!O&&!I&&!R)return;h(O,function(X){var B=X.axis.grid.model;M.set(B.id,B),F[B.id]=!0}),h(I,function(X){var B=X.axis.grid.model;M.set(B.id,B),P[B.id]=!0}),h(R,function(X){M.set(X.id,X),F[X.id]=!0,P[X.id]=!0}),M.each(function(X){var B=X.coordinateSystem,j=[];h(B.getCartesians(),function(W,z){(u(O,W.getAxis("x").model)>=0||u(I,W.getAxis("y").model)>=0)&&j.push(W)}),w.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:j[0],coordSyses:j,getPanelRect:d.grid,xAxisDeclared:F[X.id],yAxisDeclared:P[X.id]})})},geo:function(T,w){h(T.geoModels,function(O){var I=O.coordinateSystem;w.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:d.geo})})}},c=[function(T,w){var O=T.xAxisModel,I=T.yAxisModel,R=T.gridModel;return!R&&O&&(R=O.axis.grid.model),!R&&I&&(R=I.axis.grid.model),R&&R===w.gridModel},function(T,w){var O=T.geoModel;return O&&O===w.geoModel}],d={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var T=this.coordSys,w=T.getBoundingRect().clone();return w.applyTransform(A.getTransform(T)),w}},g={lineX:a(v,0),lineY:a(v,1),rect:function(T,w,O){var I=w[i[T]]([O[0][0],O[1][0]]),R=w[i[T]]([O[0][1],O[1][1]]),M=[l([I[0],R[0]]),l([I[1],R[1]])];return{values:M,xyMinMax:M}},polygon:function(T,w,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],R=x.map(O,function(M){var F=w[i[T]](M);return I[0][0]=Math.min(I[0][0],F[0]),I[1][0]=Math.min(I[1][0],F[1]),I[0][1]=Math.max(I[0][1],F[0]),I[1][1]=Math.max(I[1][1],F[1]),F});return{values:R,xyMinMax:I}}};function v(T,w,O,I){var R=O.getAxis(["x","y"][T]),M=l(x.map([0,1],function(P){return w?R.coordToData(R.toLocalCoord(I[P])):R.toGlobalCoord(R.dataToCoord(I[P]))})),F=[];return F[T]=M,F[1-T]=[NaN,NaN],{values:M,xyMinMax:F}}var b={lineX:a(S,0),lineY:a(S,1),rect:function(T,w,O){return[[T[0][0]-O[0]*w[0][0],T[0][1]-O[0]*w[0][1]],[T[1][0]-O[1]*w[1][0],T[1][1]-O[1]*w[1][1]]]},polygon:function(T,w,O){return x.map(T,function(I,R){return[I[0]-O[0]*w[R][0],I[1]-O[1]*w[R][1]]})}};function S(T,w,O,I){return[w[0]-I[T]*O[0],w[1]-I[T]*O[1]]}function E(T,w){var O=C(T),I=C(w),R=[O[0]/I[0],O[1]/I[1]];return isNaN(R[0])&&(R[0]=1),isNaN(R[1])&&(R[1]=1),R}function C(T){return T?[T[0][1]-T[0][0],T[1][1]-T[1][0]]:[NaN,NaN]}var _=o;k.exports=_},vZI5:function(k,D,n){var y=n("bYtY"),p=n("T4UG"),x=n("5GhG"),A=x.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(h,u,a){var i=u.getItemLayout(h);return i&&a.rect(i.brushRect)}});y.mixin(m,A,!0);var f=m;k.exports=f},vafp:function(k,D,n){var y=n("bYtY"),p=n("8nly");function x(f){if(!f.UTF8Encoding)return f;var h=f.UTF8Scale;h==null&&(h=1024);for(var u=f.features,a=0;a<u.length;a++)for(var i=u[a],t=i.geometry,o=t.coordinates,e=t.encodeOffsets,l=0;l<o.length;l++){var r=o[l];if(t.type==="Polygon")o[l]=A(r,e[l],h);else if(t.type==="MultiPolygon")for(var s=0;s<r.length;s++){var c=r[s];r[s]=A(c,e[l][s],h)}}return f.UTF8Encoding=!1,f}function A(f,h,u){for(var a=[],i=h[0],t=h[1],o=0;o<f.length;o+=2){var e=f.charCodeAt(o)-64,l=f.charCodeAt(o+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=i,l+=t,i=e,t=l,a.push([e/u,l/u])}return a}function m(f,h){return x(f),y.map(y.filter(f.features,function(u){return u.geometry&&u.properties&&u.geometry.coordinates.length>0}),function(u){var a=u.properties,i=u.geometry,t=i.coordinates,o=[];i.type==="Polygon"&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),i.type==="MultiPolygon"&&y.each(t,function(l){l[0]&&o.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new p(a[h||"name"],o,a.cp);return e.properties=a,e})}k.exports=m},vcCh:function(k,D,n){var y=n("ProS");n("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(p,x){x.eachComponent({mainType:"series",subType:"sankey",query:p},function(A){A.setNodePosition(p.dataIndex,[p.localX,p.localY])})})},vewr:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getPointerEvent=y,D.stopEvent=p,D.setCapture=u,D.releaseCapture=a;function y(i){return i.changedTouches?i.changedTouches[0]:i.touches?i.touches[0]:i}function p(i){i.stopPropagation(),i.preventDefault()}var x=!1,A=null;document.captureElement=null;function m(i){if(x)return;var t=new i.constructor(i.type,i);x=!0,document.captureElement?document.captureElement.dispatchEvent(t):A.dispatchEvent(t),x=!1,i.stopPropagation(),t.defaultPrevented&&i.preventDefault(),i.type==="mouseup"&&a()}function f(){var i=document.getElementById("noVNC_mouse_capture_elem");i.style.cursor=window.getComputedStyle(document.captureElement).cursor}var h=new MutationObserver(f);function u(i){if(i.setCapture)i.setCapture(),document.captureElement=i,i.addEventListener("mouseup",a);else{a();var t=document.getElementById("noVNC_mouse_capture_elem");t===null&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",m),t.addEventListener("mousemove",m),t.addEventListener("mouseup",m)),document.captureElement=i,h.observe(i,{attributes:!0}),f(),t.style.display="",window.addEventListener("mousemove",m),window.addEventListener("mouseup",m)}}function a(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;A=document.captureElement,document.captureElement=null,h.disconnect();var i=document.getElementById("noVNC_mouse_capture_elem");i.style.display="none",window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",m)}}},vg9a:function(k,D,n){},"vk+C":function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("RZPm"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},w4Tj:function(k,D,n){"use strict";n.d(D,"a",function(){return x});var y=n("oZsa");function p(A,m){for(;!Object.prototype.hasOwnProperty.call(A,m)&&!(A=Object(y.a)(A),A===null););return A}function x(A,m,f){return typeof Reflect!="undefined"&&Reflect.get?x=Reflect.get:x=function(u,a,i){var t=p(u,a);if(!t)return;var o=Object.getOwnPropertyDescriptor(t,a);return o.get?o.get.call(i):o.value},x(A,m,f||A)}},w5pM:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PlusCircleOutlined";var h=D.a=p.forwardRef(f)},w6Tc:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("apAg"));function p(A){return A&&A.__esModule?A:{default:A}}var x=y;D.default=x,k.exports=x},w7YG:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.StreamCipher,m=p.algo,f=m.RC4=A.extend({_doReset:function(){for(var i=this._key,t=i.words,o=i.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,r=0;l<256;l++){var s=l%o,c=t[s>>>2]>>>24-s%4*8&255;r=(r+e[l]+c)%256;var d=e[l];e[l]=e[r],e[r]=d}this._i=this._j=0},_doProcessBlock:function(i,t){i[t]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var a=this._S,i=this._i,t=this._j,o=0,e=0;e<4;e++){i=(i+1)%256,t=(t+a[i])%256;var l=a[i];a[i]=a[t],a[t]=l,o|=a[(a[i]+a[t])%256]<<24-e*8}return this._i=i,this._j=t,o}p.RC4=A._createHelper(f);var u=m.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)h.call(this)}});p.RC4Drop=A._createHelper(u)}(),y.RC4})},wCAj:function(k,D,n){"use strict";var y=n("cDf5"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("J4zp"),f=n.n(m),h=n("pVnL"),u=n.n(h),a=n("q1tI"),i=n("TSYQ"),t=n.n(i),o=n("BGR+"),e=n("rePB"),l=n("VTBJ"),r=n("KQm4"),s=n("U8pU"),c=n("ODXe"),d=n("Gytx"),g=n.n(d),v=n("Kwbf"),b=n("1OyB"),S=n("vuIU"),E=n("Ji7U"),C=n("LK+K"),_=n("m+aA"),T=n("Zm9Q"),w=n("c+Xe"),O=n("bdgK"),I="rc-observer-key",R=function(xt){Object(E.a)(Or,xt);var _r=Object(C.a)(Or);function Or(){var en;return Object(b.a)(this,Or),en=_r.apply(this,arguments),en.resizeObserver=null,en.childNode=null,en.currentElement=null,en.state={width:0,height:0,offsetHeight:0,offsetWidth:0},en.onResize=function(wn){var _n=en.props.onResize,yn=wn[0].target,Jn=yn.getBoundingClientRect(),Un=Jn.width,pi=Jn.height,ki=yn.offsetWidth,yi=yn.offsetHeight,_i=Math.floor(Un),Ki=Math.floor(pi);if(en.state.width!==_i||en.state.height!==Ki||en.state.offsetWidth!==ki||en.state.offsetHeight!==yi){var qi={width:_i,height:Ki,offsetWidth:ki,offsetHeight:yi};en.setState(qi),_n&&Promise.resolve().then(function(){_n(Object(l.a)(Object(l.a)({},qi),{},{offsetWidth:ki,offsetHeight:yi}))})}},en.setChildNode=function(wn){en.childNode=wn},en}return Object(S.a)(Or,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var wn=this.props.disabled;if(wn){this.destroyObserver();return}var _n=Object(_.a)(this.childNode||this),yn=_n!==this.currentElement;yn&&(this.destroyObserver(),this.currentElement=_n),!this.resizeObserver&&_n&&(this.resizeObserver=new O.default(this.onResize),this.resizeObserver.observe(_n))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var wn=this.props.children,_n=Object(T.a)(wn);if(_n.length>1)Object(v.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(_n.length===0)return Object(v.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var yn=_n[0];if(a.isValidElement(yn)&&Object(w.c)(yn)){var Jn=yn.ref;_n[0]=a.cloneElement(yn,{ref:Object(w.a)(Jn,this.setChildNode)})}return _n.length===1?_n[0]:_n.map(function(Un,pi){return!a.isValidElement(Un)||"key"in Un&&Un.key!==null?Un:a.cloneElement(Un,{key:"".concat(I,"-").concat(pi)})})}}]),Or}(a.Component);R.displayName="ResizeObserver";var M=R,F=n("qx4F");function P(xt){return null}var X=P;function B(xt){return null}var j=B,W=n("Ff2n"),z="RC_TABLE_KEY";function V(xt){return xt==null?[]:Array.isArray(xt)?xt:[xt]}function Q(xt,_r){if(!_r&&typeof _r!="number")return xt;for(var Or=V(_r),en=xt,wn=0;wn<Or.length;wn+=1){if(!en)return null;var _n=Or[wn];en=en[_n]}return en}function G(xt){var _r=[],Or={};return xt.forEach(function(en){for(var wn=en||{},_n=wn.key,yn=wn.dataIndex,Jn=_n||V(yn).join("-")||z;Or[Jn];)Jn="".concat(Jn,"_next");Or[Jn]=!0,_r.push(Jn)}),_r}function re(){var xt={};function _r(_n,yn){yn&&Object.keys(yn).forEach(function(Jn){var Un=yn[Jn];Un&&Object(s.a)(Un)==="object"?(_n[Jn]=_n[Jn]||{},_r(_n[Jn],Un)):_n[Jn]=Un})}for(var Or=arguments.length,en=new Array(Or),wn=0;wn<Or;wn++)en[wn]=arguments[wn];return en.forEach(function(_n){_r(xt,_n)}),xt}function ee(xt){return xt!=null}function ue(xt){return xt&&Object(s.a)(xt)==="object"&&!Array.isArray(xt)&&!a.isValidElement(xt)}function $(xt){return typeof xt=="string"?!0:Object(w.c)(xt)}function be(xt,_r){var Or,en=xt.prefixCls,wn=xt.className,_n=xt.record,yn=xt.index,Jn=xt.dataIndex,Un=xt.render,pi=xt.children,ki=xt.component,yi=ki===void 0?"td":ki,_i=xt.colSpan,Ki=xt.rowSpan,qi=xt.fixLeft,zi=xt.fixRight,Hi=xt.firstFixLeft,Ui=xt.lastFixLeft,Qi=xt.firstFixRight,ca=xt.lastFixRight,Ca=xt.appendNode,ra=xt.additionalProps,Ma=ra===void 0?{}:ra,La=xt.ellipsis,va=xt.align,ga=xt.rowType,Oa=xt.isSticky,Aa="".concat(en,"-cell"),Ga,_a;if(pi)_a=pi;else{var Va=Q(_n,Jn);if(_a=Va,Un){var Bi=Un(Va,_n,yn);ue(Bi)?(_a=Bi.children,Ga=Bi.props):_a=Bi}}Object(s.a)(_a)==="object"&&!Array.isArray(_a)&&!a.isValidElement(_a)&&(_a=null),La&&(Ui||Qi)&&(_a=a.createElement("span",{className:"".concat(Aa,"-content")},_a));var io=Ga||{},oo=io.colSpan,Qo=io.rowSpan,mo=io.style,To=io.className,ao=Object(W.a)(io,["colSpan","rowSpan","style","className"]),So=oo!==void 0?oo:_i,bo=Qo!==void 0?Qo:Ki;if(So===0||bo===0)return null;var to={},Jo=typeof qi=="number",Uo=typeof zi=="number";Jo&&(to.position="sticky",to.left=qi),Uo&&(to.position="sticky",to.right=zi);var wo={};va&&(wo.textAlign=va);var ts,Ia=La===!0?{showTitle:!0}:La;Ia&&(Ia.showTitle||ga==="header")&&(typeof _a=="string"||typeof _a=="number"?ts=_a.toString():a.isValidElement(_a)&&typeof _a.props.children=="string"&&(ts=_a.props.children));var Oo=Object(l.a)(Object(l.a)(Object(l.a)({title:ts},ao),Ma),{},{colSpan:So&&So!==1?So:null,rowSpan:bo&&bo!==1?bo:null,className:t()(Aa,wn,(Or={},Object(e.a)(Or,"".concat(Aa,"-fix-left"),Jo),Object(e.a)(Or,"".concat(Aa,"-fix-left-first"),Hi),Object(e.a)(Or,"".concat(Aa,"-fix-left-last"),Ui),Object(e.a)(Or,"".concat(Aa,"-fix-right"),Uo),Object(e.a)(Or,"".concat(Aa,"-fix-right-first"),Qi),Object(e.a)(Or,"".concat(Aa,"-fix-right-last"),ca),Object(e.a)(Or,"".concat(Aa,"-ellipsis"),La),Object(e.a)(Or,"".concat(Aa,"-with-append"),Ca),Object(e.a)(Or,"".concat(Aa,"-fix-sticky"),(Jo||Uo)&&Oa),Or),Ma.className,To),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},Ma.style),wo),to),mo),ref:$(yi)?_r:null});return a.createElement(yi,Object.assign({},Oo),Ca,_a)}var _e=a.forwardRef(be);_e.displayName="Cell";var Ee=a.memo(_e,function(xt,_r){return _r.shouldCellUpdate?!_r.shouldCellUpdate(_r.record,xt.record):!1}),Xe=Ee,He=a.createContext(null),nt=He;function Ie(xt,_r,Or,en,wn){var _n=Or[xt]||{},yn=Or[_r]||{},Jn,Un;_n.fixed==="left"?Jn=en.left[xt]:yn.fixed==="right"&&(Un=en.right[_r]);var pi=!1,ki=!1,yi=!1,_i=!1,Ki=Or[_r+1],qi=Or[xt-1];if(wn==="rtl"){if(Jn!==void 0){var zi=qi&&qi.fixed==="left";_i=!zi}else if(Un!==void 0){var Hi=Ki&&Ki.fixed==="right";yi=!Hi}}else if(Jn!==void 0){var Ui=Ki&&Ki.fixed==="left";pi=!Ui}else if(Un!==void 0){var Qi=qi&&qi.fixed==="right";ki=!Qi}return{fixLeft:Jn,fixRight:Un,lastFixLeft:pi,firstFixRight:ki,lastFixRight:yi,firstFixLeft:_i,isSticky:en.isSticky}}function oe(xt){var _r=xt.cells,Or=xt.stickyOffsets,en=xt.flattenColumns,wn=xt.rowComponent,_n=xt.cellComponent,yn=xt.onHeaderRow,Jn=xt.index,Un=a.useContext(nt),pi=Un.prefixCls,ki=Un.direction,yi;yn&&(yi=yn(_r.map(function(Ki){return Ki.column}),Jn));var _i=G(_r.map(function(Ki){return Ki.column}));return a.createElement(wn,Object.assign({},yi),_r.map(function(Ki,qi){var zi=Ki.column,Hi=Ie(Ki.colStart,Ki.colEnd,en,Or,ki),Ui;return zi&&zi.onHeaderCell&&(Ui=Ki.column.onHeaderCell(zi)),a.createElement(Xe,Object.assign({},Ki,{ellipsis:zi.ellipsis,align:zi.align,component:_n,prefixCls:pi,key:_i[qi]},Hi,{additionalProps:Ui,rowType:"header"}))}))}oe.displayName="HeaderRow";var ot=oe;function he(xt){var _r=[];function Or(yn,Jn){var Un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;_r[Un]=_r[Un]||[];var pi=Jn,ki=yn.filter(Boolean).map(function(yi){var _i={key:yi.key,className:yi.className||"",children:yi.title,column:yi,colStart:pi},Ki=1,qi=yi.children;return qi&&qi.length>0&&(Ki=Or(qi,pi,Un+1).reduce(function(zi,Hi){return zi+Hi},0),_i.hasSubColumns=!0),"colSpan"in yi&&(Ki=yi.colSpan),"rowSpan"in yi&&(_i.rowSpan=yi.rowSpan),_i.colSpan=Ki,_i.colEnd=_i.colStart+Ki-1,_r[Un].push(_i),pi+=Ki,Ki});return ki}Or(xt,0);for(var en=_r.length,wn=function(Jn){_r[Jn].forEach(function(Un){!("rowSpan"in Un)&&!Un.hasSubColumns&&(Un.rowSpan=en-Jn)})},_n=0;_n<en;_n+=1)wn(_n);return _r}function J(xt){var _r=xt.stickyOffsets,Or=xt.columns,en=xt.flattenColumns,wn=xt.onHeaderRow,_n=a.useContext(nt),yn=_n.prefixCls,Jn=_n.getComponent,Un=a.useMemo(function(){return he(Or)},[Or]),pi=Jn(["header","wrapper"],"thead"),ki=Jn(["header","row"],"tr"),yi=Jn(["header","cell"],"th");return a.createElement(pi,{className:"".concat(yn,"-thead")},Un.map(function(_i,Ki){var qi=a.createElement(ot,{key:Ki,flattenColumns:en,cells:_i,stickyOffsets:_r,rowComponent:ki,cellComponent:yi,onHeaderRow:wn,index:Ki});return qi}))}var Y=J,q="RC_TABLE_INTERNAL_COL_DEFINE";function fe(xt){var _r=xt.expandable,Or=Object(W.a)(xt,["expandable"]);return"expandable"in xt?Object(l.a)(Object(l.a)({},Or),_r):Or}function we(xt){return Object.keys(xt).reduce(function(_r,Or){return(Or.substr(0,5)==="data-"||Or.substr(0,5)==="aria-")&&(_r[Or]=xt[Or]),_r},{})}function Ne(xt){for(var _r=xt.colWidths,Or=xt.columns,en=xt.columCount,wn=[],_n=en||Or.length,yn=!1,Jn=_n-1;Jn>=0;Jn-=1){var Un=_r[Jn],pi=Or&&Or[Jn],ki=pi&&pi[q];(Un||ki||yn)&&(wn.unshift(a.createElement("col",Object.assign({key:Jn,style:{width:Un,minWidth:Un}},ki))),yn=!0)}return a.createElement("colgroup",null,wn)}var je=Ne;function me(xt,_r){return Object(a.useMemo)(function(){for(var Or=[],en=0;en<_r;en+=1){var wn=xt[en];if(wn!==void 0)Or[en]=wn;else return null}return Or},[xt.join("_"),_r])}var Ce=a.forwardRef(function(xt,_r){var Or=xt.noData,en=xt.columns,wn=xt.flattenColumns,_n=xt.colWidths,yn=xt.columCount,Jn=xt.stickyOffsets,Un=xt.direction,pi=xt.fixHeader,ki=xt.offsetHeader,yi=xt.stickyClassName,_i=xt.onScroll,Ki=Object(W.a)(xt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),qi=a.useContext(nt),zi=qi.prefixCls,Hi=qi.scrollbarSize,Ui=qi.isSticky,Qi=Ui&&!pi?0:Hi,ca=a.useRef(null),Ca=a.useCallback(function(Aa){Object(w.b)(_r,Aa),Object(w.b)(ca,Aa)},[]);a.useEffect(function(){var Aa;function Ga(_a){var Va=_a.currentTarget,Bi=_a.deltaX;Bi&&(_i({currentTarget:Va,scrollLeft:Va.scrollLeft+Bi}),_a.preventDefault())}return(Aa=ca.current)===null||Aa===void 0||Aa.addEventListener("wheel",Ga),function(){var _a;(_a=ca.current)===null||_a===void 0||_a.removeEventListener("wheel",Ga)}},[]);var ra=wn[wn.length-1],Ma={fixed:ra?ra.fixed:null,onHeaderCell:function(){return{className:"".concat(zi,"-cell-scrollbar")}}},La=Object(a.useMemo)(function(){return Qi?[].concat(Object(r.a)(en),[Ma]):en},[Qi,en]),va=Object(a.useMemo)(function(){return Qi?[].concat(Object(r.a)(wn),[Ma]):wn},[Qi,wn]),ga=Object(a.useMemo)(function(){var Aa=Jn.right,Ga=Jn.left;return Object(l.a)(Object(l.a)({},Jn),{},{left:Un==="rtl"?[].concat(Object(r.a)(Ga.map(function(_a){return _a+Qi})),[0]):Ga,right:Un==="rtl"?Aa:[].concat(Object(r.a)(Aa.map(function(_a){return _a+Qi})),[0]),isSticky:Ui})},[Qi,Jn,Ui]),Oa=me(_n,yn);return a.createElement("div",{style:Object(l.a)({overflow:"hidden"},Ui?{top:ki}:{}),ref:Ca,className:t()("".concat(zi,"-header"),Object(e.a)({},yi,!!yi))},a.createElement("table",{style:{tableLayout:"fixed",visibility:Or||Oa?null:"hidden"}},a.createElement(je,{colWidths:Oa?[].concat(Object(r.a)(Oa),[Qi]):[],columCount:yn+1,columns:va}),a.createElement(Y,Object.assign({},Ki,{stickyOffsets:ga,columns:La,flattenColumns:va}))))});Ce.displayName="FixedHeader";var Fe=Ce,it=a.createContext(null),Ct=it;function mt(xt){var _r=xt.prefixCls,Or=xt.children,en=xt.component,wn=xt.cellComponent,_n=xt.fixHeader,yn=xt.fixColumn,Jn=xt.horizonScroll,Un=xt.className,pi=xt.expanded,ki=xt.componentWidth,yi=xt.colSpan,_i=a.useContext(nt),Ki=_i.scrollbarSize;return a.useMemo(function(){var qi=Or;return yn&&(qi=a.createElement("div",{style:{width:ki-(_n?Ki:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(_r,"-expanded-row-fixed")},qi)),a.createElement(en,{className:Un,style:{display:pi?null:"none"}},a.createElement(Xe,{component:wn,prefixCls:_r,colSpan:yi},qi))},[Or,en,_n,Jn,Un,pi,ki,yi,Ki])}var Ve=mt;function or(xt){var _r=xt.className,Or=xt.style,en=xt.record,wn=xt.index,_n=xt.rowKey,yn=xt.getRowKey,Jn=xt.rowExpandable,Un=xt.expandedKeys,pi=xt.onRow,ki=xt.indent,yi=ki===void 0?0:ki,_i=xt.rowComponent,Ki=xt.cellComponent,qi=xt.childrenColumnName,zi=a.useContext(nt),Hi=zi.prefixCls,Ui=zi.fixedInfoList,Qi=a.useContext(Ct),ca=Qi.fixHeader,Ca=Qi.fixColumn,ra=Qi.horizonScroll,Ma=Qi.componentWidth,La=Qi.flattenColumns,va=Qi.expandableType,ga=Qi.expandRowByClick,Oa=Qi.onTriggerExpand,Aa=Qi.rowClassName,Ga=Qi.expandedRowClassName,_a=Qi.indentSize,Va=Qi.expandIcon,Bi=Qi.expandedRowRender,io=Qi.expandIconColumnIndex,oo=a.useState(!1),Qo=Object(c.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Un&&Un.has(xt.recordKey);a.useEffect(function(){ao&&To(!0)},[ao]);var So=va==="row"&&(!Jn||Jn(en)),bo=va==="nest",to=qi&&en&&en[qi],Jo=So||bo,Uo;pi&&(Uo=pi(en,wn));var wo=function(_o){if(ga&&Jo&&Oa(en,_o),Uo&&Uo.onClick){for(var uo,Ha=arguments.length,ht=new Array(Ha>1?Ha-1:0),Er=1;Er<Ha;Er++)ht[Er-1]=arguments[Er];(uo=Uo).onClick.apply(uo,[_o].concat(ht))}},ts;typeof Aa=="string"?ts=Aa:typeof Aa=="function"&&(ts=Aa(en,wn,yi));var Ia=G(La),Oo=a.createElement(_i,Object.assign({},Uo,{"data-row-key":_n,className:t()(_r,"".concat(Hi,"-row"),"".concat(Hi,"-row-level-").concat(yi),ts,Uo&&Uo.className),style:Object(l.a)(Object(l.a)({},Or),Uo?Uo.style:null),onClick:wo}),La.map(function(Ho,_o){var uo=Ho.render,Ha=Ho.dataIndex,ht=Ho.className,Er=Ia[_o],Zr=Ui[_o],Xr;_o===(io||0)&&bo&&(Xr=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:"".concat(_a*yi,"px")},className:"".concat(Hi,"-row-indent indent-level-").concat(yi)}),Va({prefixCls:Hi,expanded:ao,expandable:to,record:en,onExpand:Oa})));var Xn;return Ho.onCell&&(Xn=Ho.onCell(en,wn)),a.createElement(Xe,Object.assign({className:ht,ellipsis:Ho.ellipsis,align:Ho.align,component:Ki,prefixCls:Hi,key:Er,record:en,index:wn,dataIndex:Ha,render:uo,shouldCellUpdate:Ho.shouldCellUpdate},Zr,{appendNode:Xr,additionalProps:Xn}))})),Io;if(So&&(mo||ao)){var os=Bi(en,wn,yi+1,ao),xo=Ga&&Ga(en,wn,yi);Io=a.createElement(Ve,{expanded:ao,className:t()("".concat(Hi,"-expanded-row"),"".concat(Hi,"-expanded-row-level-").concat(yi+1),xo),prefixCls:Hi,fixHeader:ca,fixColumn:Ca,horizonScroll:ra,component:_i,componentWidth:Ma,cellComponent:Ki,colSpan:La.length},os)}var rs;return to&&ao&&(rs=(en[qi]||[]).map(function(Ho,_o){var uo=yn(Ho,_o);return a.createElement(or,Object.assign({},xt,{key:uo,rowKey:uo,record:Ho,recordKey:uo,index:_o,indent:yi+1}))})),a.createElement(a.Fragment,null,Oo,Io,rs)}or.displayName="BodyRow";var dt=or,Yt=a.createContext(null),hr=Yt;function Gt(xt){var _r=xt.columnKey,Or=xt.onColumnResize,en=a.useRef();return a.useEffect(function(){en.current&&Or(_r,en.current.offsetWidth)},[]),a.createElement(M,{onResize:function(_n){var yn=_n.offsetWidth;Or(_r,yn)}},a.createElement("td",{ref:en,style:{padding:0,border:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Pt(xt){var _r=xt.data,Or=xt.getRowKey,en=xt.measureColumnWidth,wn=xt.expandedKeys,_n=xt.onRow,yn=xt.rowExpandable,Jn=xt.emptyNode,Un=xt.childrenColumnName,pi=a.useContext(hr),ki=pi.onColumnResize,yi=a.useContext(nt),_i=yi.prefixCls,Ki=yi.getComponent,qi=a.useContext(Ct),zi=qi.fixHeader,Hi=qi.horizonScroll,Ui=qi.flattenColumns,Qi=qi.componentWidth;return a.useMemo(function(){var ca=Ki(["body","wrapper"],"tbody"),Ca=Ki(["body","row"],"tr"),ra=Ki(["body","cell"],"td"),Ma;_r.length?Ma=_r.map(function(va,ga){var Oa=Or(va,ga);return a.createElement(dt,{key:Oa,rowKey:Oa,record:va,recordKey:Oa,index:ga,rowComponent:Ca,cellComponent:ra,expandedKeys:wn,onRow:_n,getRowKey:Or,rowExpandable:yn,childrenColumnName:Un})}):Ma=a.createElement(Ve,{expanded:!0,className:"".concat(_i,"-placeholder"),prefixCls:_i,fixHeader:zi,fixColumn:Hi,horizonScroll:Hi,component:Ca,componentWidth:Qi,cellComponent:ra,colSpan:Ui.length},Jn);var La=G(Ui);return a.createElement(ca,{className:"".concat(_i,"-tbody")},en&&a.createElement("tr",{"aria-hidden":"true",className:"".concat(_i,"-measure-row"),style:{height:0}},La.map(function(va){return a.createElement(Gt,{key:va,columnKey:va,onColumnResize:ki})})),Ma)},[_r,_i,_n,en,wn,Or,Ki,Qi,Jn,Ui])}var Xt=a.memo(Pt);Xt.displayName="Body";var Ge=Xt;function pe(xt){return Object(T.a)(xt).filter(function(_r){return a.isValidElement(_r)}).map(function(_r){var Or=_r.key,en=_r.props,wn=en.children,_n=Object(W.a)(en,["children"]),yn=Object(l.a)({key:Or},_n);return wn&&(yn.children=pe(wn)),yn})}function se(xt){return xt.reduce(function(_r,Or){var en=Or.fixed,wn=en===!0?"left":en,_n=Or.children;return _n&&_n.length>0?[].concat(Object(r.a)(_r),Object(r.a)(se(_n).map(function(yn){return Object(l.a)({fixed:wn},yn)}))):[].concat(Object(r.a)(_r),[Object(l.a)(Object(l.a)({},Or),{},{fixed:wn})])},[])}function lt(xt){for(var _r=!0,Or=0;Or<xt.length;Or+=1){var en=xt[Or];if(_r&&en.fixed!=="left")_r=!1;else if(!_r&&en.fixed==="left"){Object(v.a)(!1,"Index ".concat(Or-1," of `columns` missing `fixed='left'` prop."));break}}for(var wn=!0,_n=xt.length-1;_n>=0;_n-=1){var yn=xt[_n];if(wn&&yn.fixed!=="right")wn=!1;else if(!wn&&yn.fixed==="right"){Object(v.a)(!1,"Index ".concat(_n+1," of `columns` missing `fixed='right'` prop."));break}}}function Ze(xt){return xt.map(function(_r){var Or=_r.fixed,en=Object(W.a)(_r,["fixed"]),wn=Or;return Or==="left"?wn="right":Or==="right"&&(wn="left"),Object(l.a)({fixed:wn},en)})}function de(xt,_r){var Or=xt.prefixCls,en=xt.columns,wn=xt.children,_n=xt.expandable,yn=xt.expandedKeys,Jn=xt.getRowKey,Un=xt.onTriggerExpand,pi=xt.expandIcon,ki=xt.rowExpandable,yi=xt.expandIconColumnIndex,_i=xt.direction,Ki=xt.expandRowByClick,qi=a.useMemo(function(){return en||pe(wn)},[en,wn]),zi=a.useMemo(function(){if(_n){var Qi,ca=yi||0,Ca=qi[ca],ra=(Qi={},Object(e.a)(Qi,q,{className:"".concat(Or,"-expand-icon-col")}),Object(e.a)(Qi,"title",""),Object(e.a)(Qi,"fixed",Ca?Ca.fixed:null),Object(e.a)(Qi,"className","".concat(Or,"-row-expand-icon-cell")),Object(e.a)(Qi,"render",function(va,ga,Oa){var Aa=Jn(ga,Oa),Ga=yn.has(Aa),_a=ki?ki(ga):!0,Va=pi({prefixCls:Or,expanded:Ga,expandable:_a,record:ga,onExpand:Un});return Ki?a.createElement("span",{onClick:function(io){return io.stopPropagation()}},Va):Va}),Qi),Ma=qi.slice();return ca>=0&&Ma.splice(ca,0,ra),Ma}return qi},[_n,qi,Jn,yn,pi,_i]),Hi=a.useMemo(function(){var Qi=zi;return _r&&(Qi=_r(Qi)),Qi.length||(Qi=[{render:function(){return null}}]),Qi},[_r,zi,_i]),Ui=a.useMemo(function(){return _i==="rtl"?Ze(se(Hi)):se(Hi)},[Hi,_i]);return[Hi,Ui]}var _t=de,er=n("xEkU"),yt=n.n(er);function Ar(xt){var _r=Object(a.useRef)(xt),Or=Object(a.useState)({}),en=Object(c.a)(Or,2),wn=en[1],_n=Object(a.useRef)(null),yn=Object(a.useRef)([]);function Jn(Un){_n.current===null&&(yn.current=[],_n.current=yt()(function(){yn.current.forEach(function(pi){_r.current=pi(_r.current)}),_n.current=null,wn({})})),yn.current.push(Un)}return Object(a.useEffect)(function(){return function(){yt.a.cancel(_n.current)}},[]),[_r.current,Jn]}function Sr(xt){var _r=Object(a.useRef)(xt),Or=Object(a.useRef)(null);function en(){window.clearTimeout(Or.current)}function wn(yn){_r.current=yn,en(),Or.current=window.setTimeout(function(){_r.current=null,Or.current=null},100)}function _n(){return _r.current}return Object(a.useEffect)(function(){return en},[]),[wn,_n]}function Cn(xt,_r,Or){var en=Object(a.useMemo)(function(){for(var wn=[],_n=[],yn=0,Jn=0,Un=0;Un<_r;Un+=1)if(Or==="rtl"){_n[Un]=Jn,Jn+=xt[Un]||0;var pi=_r-Un-1;wn[pi]=yn,yn+=xt[pi]||0}else{wn[Un]=yn,yn+=xt[Un]||0;var ki=_r-Un-1;_n[ki]=Jn,Jn+=xt[ki]||0}return{left:wn,right:_n}},[xt,_r,Or]);return en}var mr=Cn;function Pr(xt){var _r=xt.className,Or=xt.children;return a.createElement("div",{className:_r},Or)}var gr=Pr;function Jt(xt){var _r=xt.className,Or=xt.index,en=xt.children,wn=xt.colSpan,_n=xt.rowSpan,yn=a.useContext(nt),Jn=yn.prefixCls,Un=yn.fixedInfoList,pi=Un[Or];return a.createElement(Xe,Object.assign({className:_r,index:Or,component:"td",prefixCls:Jn,record:null,dataIndex:null,render:function(){return{children:en,props:{colSpan:wn,rowSpan:_n}}}},pi))}function Dt(xt){return a.createElement("tr",Object.assign({},xt))}function dn(xt){var _r=xt.children,Or=a.useContext(nt),en=Or.prefixCls;return a.createElement("tfoot",{className:"".concat(en,"-summary")},_r)}var Fn=dn,Zn={Cell:Jt,Row:Dt};function ci(xt){var _r,Or=xt.prefixCls,en=xt.record,wn=xt.onExpand,_n=xt.expanded,yn=xt.expandable,Jn="".concat(Or,"-row-expand-icon");if(!yn)return a.createElement("span",{className:t()(Jn,"".concat(Or,"-row-spaced"))});var Un=function(ki){wn(en,ki),ki.stopPropagation()};return a.createElement("span",{className:t()(Jn,(_r={},Object(e.a)(_r,"".concat(Or,"-row-expanded"),_n),Object(e.a)(_r,"".concat(Or,"-row-collapsed"),!_n),_r)),onClick:Un})}function Xi(xt,_r,Or){var en=[];function wn(_n){(_n||[]).forEach(function(yn,Jn){en.push(_r(yn,Jn)),wn(yn[Or])})}return wn(xt),en}var Gn=n("zT1h"),ei=n("y0+3"),Zt=function(_r,Or){var en,wn,_n=_r.scrollBodyRef,yn=_r.onScroll,Jn=_r.offsetScroll,Un=a.useContext(nt),pi=Un.prefixCls,ki=((en=_n.current)===null||en===void 0?void 0:en.scrollWidth)||0,yi=((wn=_n.current)===null||wn===void 0?void 0:wn.clientWidth)||0,_i=ki&&yi*(yi/ki),Ki=a.useRef(),qi=Ar({scrollLeft:0,isHiddenScrollBar:!1}),zi=Object(c.a)(qi,2),Hi=zi[0],Ui=zi[1],Qi=a.useRef({delta:0,x:0}),ca=a.useState(!1),Ca=Object(c.a)(ca,2),ra=Ca[0],Ma=Ca[1],La=function(){Ma(!1)},va=function(_a){_a.persist(),Qi.current.delta=_a.pageX-Hi.scrollLeft,Qi.current.x=0,Ma(!0),_a.preventDefault()},ga=function(_a){var Va,Bi=_a||((Va=window)===null||Va===void 0?void 0:Va.event),io=Bi.buttons;if(!ra||io===0){ra&&Ma(!1);return}var oo=Qi.current.x+_a.pageX-Qi.current.x-Qi.current.delta;oo<=0&&(oo=0),oo+_i>=yi&&(oo=yi-_i),yn({scrollLeft:oo/yi*(ki+2)}),Qi.current.x=_a.pageX},Oa=function(){var _a=Object(ei.b)(_n.current).top,Va=_a+_n.current.offsetHeight,Bi=document.documentElement.scrollTop+window.innerHeight;Va-Object(F.a)()<=Bi||_a>=Bi-Jn?Ui(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!0})}):Ui(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!1})})},Aa=function(_a){Ui(function(Va){return Object(l.a)(Object(l.a)({},Va),{},{scrollLeft:_a/ki*yi||0})})};return a.useImperativeHandle(Or,function(){return{setScrollLeft:Aa}}),a.useEffect(function(){var Ga=Object(Gn.a)(document.body,"mouseup",La,!1),_a=Object(Gn.a)(document.body,"mousemove",ga,!1);return Oa(),function(){Ga.remove(),_a.remove()}},[_i,ra]),a.useEffect(function(){var Ga=Object(Gn.a)(window,"scroll",Oa,!1),_a=Object(Gn.a)(window,"resize",Oa,!1);return function(){Ga.remove(),_a.remove()}},[]),a.useEffect(function(){Hi.isHiddenScrollBar||Ui(function(Ga){var _a,Va;return Object(l.a)(Object(l.a)({},Ga),{},{scrollLeft:_n.current.scrollLeft/((_a=_n.current)===null||_a===void 0?void 0:_a.scrollWidth)*((Va=_n.current)===null||Va===void 0?void 0:Va.clientWidth)})})},[Hi.isHiddenScrollBar]),ki<=yi||!_i||Hi.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(F.a)(),width:yi,bottom:Jn},className:"".concat(pi,"-sticky-scroll")},a.createElement("div",{onMouseDown:va,ref:Ki,className:t()("".concat(pi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(pi,"-sticky-scroll-bar-active"),ra)),style:{width:"".concat(_i,"px"),transform:"translate3d(".concat(Hi.scrollLeft,"px, 0, 0)")}}))},Nt=a.forwardRef(Zt);function Me(xt,_r){return a.useMemo(function(){var Or=!!xt;return{isSticky:Or,stickyClassName:Or?"".concat(_r,"-sticky-header"):"",offsetHeader:Object(s.a)(xt)==="object"&&xt.offsetHeader||0,offsetScroll:Object(s.a)(xt)==="object"&&xt.offsetScroll||0}},[xt,_r])}var ke=[],Pe={},tt="rc-table-internal-hook",vt=a.memo(function(xt){var _r=xt.children;return _r},function(xt,_r){return g()(xt.props,_r.props)?xt.pingLeft!==_r.pingLeft||xt.pingRight!==_r.pingRight:!1});function St(xt){var _r,Or=xt.prefixCls,en=xt.className,wn=xt.rowClassName,_n=xt.style,yn=xt.data,Jn=xt.rowKey,Un=xt.scroll,pi=xt.tableLayout,ki=xt.direction,yi=xt.title,_i=xt.footer,Ki=xt.summary,qi=xt.id,zi=xt.showHeader,Hi=xt.components,Ui=xt.emptyText,Qi=xt.onRow,ca=xt.onHeaderRow,Ca=xt.internalHooks,ra=xt.transformColumns,Ma=xt.internalRefs,La=xt.sticky,va=yn||ke,ga=!!va.length,Oa=a.useState(0),Aa=Object(c.a)(Oa,2),Ga=Aa[0],_a=Aa[1];a.useEffect(function(){_a(Object(F.a)())});var Va=a.useMemo(function(){return re(Hi,{})},[Hi]),Bi=a.useCallback(function(Vo,No){return Q(Va,Vo)||No},[Va]),io=a.useMemo(function(){return typeof Jn=="function"?Jn:function(Vo){var No=Vo&&Vo[Jn];return No}},[Jn]),oo=fe(xt),Qo=oo.expandIcon,mo=oo.expandedRowKeys,To=oo.defaultExpandedRowKeys,ao=oo.defaultExpandAllRows,So=oo.expandedRowRender,bo=oo.onExpand,to=oo.onExpandedRowsChange,Jo=oo.expandRowByClick,Uo=oo.rowExpandable,wo=oo.expandIconColumnIndex,ts=oo.expandedRowClassName,Ia=oo.childrenColumnName,Oo=oo.indentSize,Io=Qo||ci,os=Ia||"children",xo=a.useMemo(function(){return So?"row":xt.expandable&&Ca===tt&&xt.expandable.__PARENT_RENDER_ICON__||va.some(function(Vo){return Vo&&Object(s.a)(Vo)==="object"&&Vo[os]})?"nest":!1},[!!So,va]),rs=a.useState(function(){return To||(ao?Xi(va,io,os):[])}),Ho=Object(c.a)(rs,2),_o=Ho[0],uo=Ho[1],Ha=a.useMemo(function(){return new Set(mo||_o||[])},[mo,_o]),ht=a.useCallback(function(Vo){var No=io(Vo,va.indexOf(Vo)),fs,Ds=Ha.has(No);Ds?(Ha.delete(No),fs=Object(r.a)(Ha)):fs=[].concat(Object(r.a)(Ha),[No]),uo(fs),bo&&bo(!Ds,Vo),to&&to(fs)},[io,Ha,va,bo,to]),Er=a.useState(0),Zr=Object(c.a)(Er,2),Xr=Zr[0],Xn=Zr[1],un=_t(Object(l.a)(Object(l.a)(Object(l.a)({},xt),oo),{},{expandable:!!So,expandedKeys:Ha,getRowKey:io,onTriggerExpand:ht,expandIcon:Io,expandIconColumnIndex:wo,direction:ki}),Ca===tt?ra:null),Gr=Object(c.a)(un,2),ri=Gr[0],rn=Gr[1],jn=a.useMemo(function(){return{columns:ri,flattenColumns:rn}},[ri,rn]),oi=a.useRef(),li=a.useRef(),ai=a.useRef(),Ei=a.useState(!1),mi=Object(c.a)(Ei,2),Ai=mi[0],Ii=mi[1],na=a.useState(!1),ji=Object(c.a)(na,2),fa=ji[0],Xa=ji[1],xa=Ar(new Map),wa=Object(c.a)(xa,2),Da=wa[0],ja=wa[1],ko=G(rn),ro=ko.map(function(Vo){return Da.get(Vo)}),pa=a.useMemo(function(){return ro},[ro.join("_")]),Ea=mr(pa,rn.length,ki),Fa=Un&&ee(Un.y),Ka=Un&&ee(Un.x),lo=Ka&&rn.some(function(Vo){var No=Vo.fixed;return No}),so=a.useRef(),Co=Me(La,Or),Lo=Co.isSticky,is=Co.offsetHeader,cs=Co.offsetScroll,Rs=Co.stickyClassName,Ko,as,co;Fa&&(as={overflowY:"scroll",maxHeight:Un.y}),Ka&&(Ko={overflowX:"auto"},Fa||(as={overflowY:"hidden"}),co={width:Un.x===!0?"auto":Un.x,minWidth:"100%"});var Ao=a.useCallback(function(Vo,No){ja(function(fs){var Ds=new Map(fs);return Ds.set(Vo,No),Ds})},[]),$a=Sr(null),ss=Object(c.a)($a,2),Cs=ss[0],Fo=ss[1];function il(Vo,No){if(!No)return;typeof No=="function"?No(Vo):No.scrollLeft!==Vo&&(No.scrollLeft=Vo)}var Eo=function(No){var fs=No.currentTarget,Ds=No.scrollLeft,go=typeof Ds=="number"?Ds:fs.scrollLeft,Ft=fs||Pe;if(!Fo()||Fo()===Ft){var nr;Cs(Ft),il(go,li.current),il(go,ai.current),il(go,(nr=so.current)===null||nr===void 0?void 0:nr.setScrollLeft)}if(fs){var On=fs.scrollWidth,di=fs.clientWidth;Ii(go>0),Xa(go<On-di)}},zo=function(){ai.current&&Eo({currentTarget:ai.current})},Bs=function(No){var fs=No.width;zo(),Xn(oi.current?oi.current.offsetWidth:fs)};a.useEffect(function(){return zo},[]),a.useEffect(function(){Ka&&zo()},[Ka]),a.useEffect(function(){Ca===tt&&Ma&&(Ma.body.current=ai.current)});var ms=Bi(["table"],"table"),hs=a.useMemo(function(){return pi||(lo?Un.x==="max-content"?"auto":"fixed":Fa||rn.some(function(Vo){var No=Vo.ellipsis;return No})?"fixed":"auto")},[Fa,lo,rn,pi]),An,Ns={colWidths:pa,columCount:rn.length,stickyOffsets:Ea,onHeaderRow:ca,fixHeader:Fa},Ll=a.useMemo(function(){return ga?null:typeof Ui=="function"?Ui():Ui},[ga,Ui]),el=a.createElement(Ge,{data:va,measureColumnWidth:Fa||Ka||Lo,expandedKeys:Ha,rowExpandable:Uo,getRowKey:io,onRow:Qi,emptyNode:Ll,childrenColumnName:os}),Gs=a.createElement(je,{colWidths:rn.map(function(Vo){var No=Vo.width;return No}),columns:rn}),ds=Ki&&a.createElement(Fn,null,Ki(va)),ks=Bi(["body"]);if(Fa||Lo){var Qs;typeof ks=="function"?(Qs=ks(va,{scrollbarSize:Ga,ref:ai,onScroll:Eo}),Ns.colWidths=rn.map(function(Vo,No){var fs=Vo.width,Ds=No===ri.length-1?fs-Ga:fs;return typeof Ds=="number"&&!Number.isNaN(Ds)?Ds:(Object(v.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Qs=a.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),onScroll:Eo,ref:ai,className:t()("".concat(Or,"-body"))},a.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,el,ds),Lo&&a.createElement(Nt,{ref:so,offsetScroll:cs,scrollBodyRef:ai,onScroll:Eo})),An=a.createElement(a.Fragment,null,zi!==!1&&a.createElement(Fe,Object.assign({noData:!va.length},Ns,jn,{direction:ki,offsetHeader:is,stickyClassName:Rs,ref:li,onScroll:Eo})),Qs)}else An=a.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),className:t()("".concat(Or,"-content")),onScroll:Eo,ref:ai},a.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,zi!==!1&&a.createElement(Y,Object.assign({},Ns,jn)),el,ds));var tl=we(xt),xs=a.createElement("div",Object.assign({className:t()(Or,en,(_r={},Object(e.a)(_r,"".concat(Or,"-rtl"),ki==="rtl"),Object(e.a)(_r,"".concat(Or,"-ping-left"),Ai),Object(e.a)(_r,"".concat(Or,"-ping-right"),fa),Object(e.a)(_r,"".concat(Or,"-layout-fixed"),pi==="fixed"),Object(e.a)(_r,"".concat(Or,"-fixed-header"),Fa),Object(e.a)(_r,"".concat(Or,"-fixed-column"),lo),Object(e.a)(_r,"".concat(Or,"-scroll-horizontal"),Ka),Object(e.a)(_r,"".concat(Or,"-has-fix-left"),rn[0]&&rn[0].fixed),Object(e.a)(_r,"".concat(Or,"-has-fix-right"),rn[rn.length-1]&&rn[rn.length-1].fixed==="right"),_r)),style:_n,id:qi,ref:oi},tl),a.createElement(vt,{pingLeft:Ai,pingRight:fa,props:Object(l.a)(Object(l.a)({},xt),{},{stickyOffsets:Ea,mergedExpandedKeys:Ha})},yi&&a.createElement(gr,{className:"".concat(Or,"-title")},yi(va)),a.createElement("div",{className:"".concat(Or,"-container")},An),_i&&a.createElement(gr,{className:"".concat(Or,"-footer")},_i(va))));Ka&&(xs=a.createElement(M,{onResize:Bs},xs));var Us=a.useMemo(function(){return{prefixCls:Or,getComponent:Bi,scrollbarSize:Ga,direction:ki,fixedInfoList:rn.map(function(Vo,No){return Ie(No,No,rn,Ea,ki)}),isSticky:Lo}},[Or,Bi,Ga,ki,rn,Ea,ki,Lo]),al=a.useMemo(function(){return Object(l.a)(Object(l.a)({},jn),{},{tableLayout:hs,rowClassName:wn,expandedRowClassName:ts,componentWidth:Xr,fixHeader:Fa,fixColumn:lo,horizonScroll:Ka,expandIcon:Io,expandableType:xo,expandRowByClick:Jo,expandedRowRender:So,onTriggerExpand:ht,expandIconColumnIndex:wo,indentSize:Oo})},[jn,hs,wn,ts,Xr,Fa,lo,Ka,Io,xo,Jo,So,ht,wo,Oo]),Js=a.useMemo(function(){return{onColumnResize:Ao}},[Ao]);return a.createElement(nt.Provider,{value:Us},a.createElement(Ct.Provider,{value:al},a.createElement(hr.Provider,{value:Js},xs)))}St.Column=j,St.ColumnGroup=X,St.Summary=Zn,St.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Vt=St,Mr=Vt,$r=n("W9HT"),vn=n("NUBc"),jt=n("H84U"),gt=function(xt,_r){var Or={};for(var en in xt)Object.prototype.hasOwnProperty.call(xt,en)&&_r.indexOf(en)<0&&(Or[en]=xt[en]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,en=Object.getOwnPropertySymbols(xt);wn<en.length;wn++)_r.indexOf(en[wn])<0&&Object.prototype.propertyIsEnumerable.call(xt,en[wn])&&(Or[en[wn]]=xt[en[wn]]);return Or},pt=10;function ar(xt,_r){var Or={current:_r.current,pageSize:_r.pageSize},en=xt&&p()(xt)==="object"?xt:{};return Object.keys(en).forEach(function(wn){var _n=_r[wn];typeof _n!="function"&&(Or[wn]=_n)}),Or}function Ht(){for(var xt={},_r=arguments.length,Or=new Array(_r),en=0;en<_r;en++)Or[en]=arguments[en];return Or.forEach(function(wn){wn&&Object.keys(wn).forEach(function(_n){var yn=wn[_n];yn!==void 0&&(xt[_n]=yn)})}),xt}function Mt(xt,_r,Or){var en=_r&&p()(_r)==="object"?_r:{},wn=en.total,_n=wn===void 0?0:wn,yn=gt(en,["total"]),Jn=Object(a.useState)(function(){return{current:"defaultCurrent"in yn?yn.defaultCurrent:1,pageSize:"defaultPageSize"in yn?yn.defaultPageSize:pt}}),Un=f()(Jn,2),pi=Un[0],ki=Un[1],yi=Ht(pi,yn,{total:_n>0?_n:xt});if(!_n){var _i=Math.ceil(xt/yi.pageSize);_i<yi.current&&(yi.current=1)}var Ki=function(){var Hi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Ui=arguments.length>1?arguments[1]:void 0;ki(u()(u()({},yi),{current:Hi,pageSize:Ui||yi.pageSize}))},qi=function(Hi,Ui){var Qi=yi==null?void 0:yi.pageSize;Ui&&Ui!==Qi&&(Hi=1,_r&&_r.onShowSizeChange&&_r.onShowSizeChange(Hi,Ui)),_r&&_r.onChange&&_r.onChange(Hi,Ui),Ki(Hi,Ui),Or(Hi,Ui||Qi)};return _r===!1?[{},function(){}]:[u()(u()({},yi),{onChange:qi}),Ki]}function qt(xt,_r,Or){var en=a.useRef({});function wn(_n){if(!en.current||en.current.data!==xt||en.current.childrenColumnName!==_r||en.current.getRowKey!==Or){var yn=function Un(pi){pi.forEach(function(ki,yi){var _i=Or(ki,yi);Jn.set(_i,ki),ki&&p()(ki)==="object"&&_r in ki&&Un(ki[_r]||[])})},Jn=new Map;yn(xt),en.current={data:xt,childrenColumnName:_r,kvMap:Jn,getRowKey:Or}}return en.current.kvMap.get(_n)}return[wn]}var Rt=n("SA+Z"),Qt=n.n(Rt),jr=n("RIqP"),Nr=n.n(jr),Lr=n("HQEm"),ln=n.n(Lr),mn=n("c3jg"),ti=n("qOx5"),$n=n("wPhX"),hi=n("6cGi"),Ti=n("kaz8"),Ni=n("jsC+"),Wi=n("BvKs"),rt=n("9yH6"),Re=n("uaoM"),Ue="SELECT_ALL",Ye="SELECT_INVERT";function et(xt){return xt&&xt.fixed}function $e(xt,_r){var Or=[];return(xt||[]).forEach(function(en){Or.push(en),en&&p()(en)==="object"&&_r in en&&(Or=[].concat(Nr()(Or),Nr()($e(en[_r],_r))))}),Or}function at(xt,_r){var Or=xt||{},en=Or.preserveSelectedRowKeys,wn=Or.selectedRowKeys,_n=Or.getCheckboxProps,yn=Or.onChange,Jn=Or.onSelect,Un=Or.onSelectAll,pi=Or.onSelectInvert,ki=Or.onSelectMultiple,yi=Or.columnWidth,_i=Or.type,Ki=Or.selections,qi=Or.fixed,zi=Or.renderCell,Hi=Or.hideSelectAll,Ui=Or.checkStrictly,Qi=Ui===void 0?!0:Ui,ca=_r.prefixCls,Ca=_r.data,ra=_r.pageData,Ma=_r.getRecordByKey,La=_r.getRowKey,va=_r.expandType,ga=_r.childrenColumnName,Oa=_r.locale,Aa=_r.expandIconColumnIndex,Ga=_r.getPopupContainer,_a=a.useRef(new Map),Va=Object(hi.a)(wn||[],{value:wn}),Bi=f()(Va,2),io=Bi[0],oo=Bi[1],Qo=Object(a.useMemo)(function(){return Qi?{keyEntities:null}:Object(mn.a)(Ca,void 0,La)},[Ca,La,Qi]),mo=Qo.keyEntities,To=Object(a.useMemo)(function(){return $e(ra,ga)},[ra,ga]),ao=Object(a.useMemo)(function(){var uo=new Map;return To.forEach(function(Ha,ht){var Er=La(Ha,ht),Zr=(_n?_n(Ha):null)||{};uo.set(Er,Zr)}),uo},[To,La,_n]),So=Object(a.useCallback)(function(uo){var Ha;return!!((Ha=ao.get(La(uo)))===null||Ha===void 0?void 0:Ha.disabled)},[ao,La]),bo=Object(a.useMemo)(function(){if(Qi)return[io,[]];var uo=Object(ti.a)(io,!0,mo,So),Ha=uo.checkedKeys,ht=uo.halfCheckedKeys;return[Ha,ht]},[io,Qi,mo,So]),to=f()(bo,2),Jo=to[0],Uo=to[1],wo=Object(a.useMemo)(function(){var uo=_i==="radio"?Jo.slice(0,1):Jo;return new Set(uo)},[Jo,_i]),ts=Object(a.useMemo)(function(){return _i==="radio"?new Set:new Set(Uo)},[Uo,_i]),Ia=Object(a.useState)(null),Oo=f()(Ia,2),Io=Oo[0],os=Oo[1];a.useEffect(function(){xt||oo([])},[!!xt]);var xo=Object(a.useCallback)(function(uo){var Ha,ht;if(en){var Er=new Map;Ha=uo,ht=uo.map(function(Zr){var Xr=Ma(Zr);return!Xr&&_a.current.has(Zr)&&(Xr=_a.current.get(Zr)),Er.set(Zr,Xr),Xr}),_a.current=Er}else Ha=[],ht=[],uo.forEach(function(Zr){var Xr=Ma(Zr);Xr!==void 0&&(Ha.push(Zr),ht.push(Xr))});oo(Ha),yn&&yn(Ha,ht)},[oo,Ma,yn,en]),rs=Object(a.useCallback)(function(uo,Ha,ht,Er){if(Jn){var Zr=ht.map(function(Xr){return Ma(Xr)});Jn(Ma(uo),Ha,Zr,Er)}xo(ht)},[Jn,Ma,xo]),Ho=Object(a.useMemo)(function(){if(!Ki||Hi)return null;var uo=Ki===!0?[Ue,Ye]:Ki;return uo.map(function(Ha){return Ha===Ue?{key:"all",text:Oa.selectionAll,onSelect:function(){xo(Ca.map(function(Er,Zr){return La(Er,Zr)}))}}:Ha===Ye?{key:"invert",text:Oa.selectInvert,onSelect:function(){var Er=new Set(wo);ra.forEach(function(Xr,Xn){var un=La(Xr,Xn);Er.has(un)?Er.delete(un):Er.add(un)});var Zr=Array.from(Er);xo(Zr),pi&&(Object(Re.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),pi(Zr))}}:Ha})},[Ki,wo,ra,La,pi,xo]),_o=Object(a.useCallback)(function(uo){if(!xt)return uo;var Ha=new Set(wo),ht=To.map(La).filter(function(Ai){return!ao.get(Ai).disabled}),Er=ht.every(function(Ai){return Ha.has(Ai)}),Zr=ht.some(function(Ai){return Ha.has(Ai)}),Xr=function(){var Ii=[];Er?ht.forEach(function(ji){Ha.delete(ji),Ii.push(ji)}):ht.forEach(function(ji){Ha.has(ji)||(Ha.add(ji),Ii.push(ji))});var na=Array.from(Ha);xo(na),Un&&Un(!Er,na.map(function(ji){return Ma(ji)}),Ii.map(function(ji){return Ma(ji)}))},Xn;if(_i!=="radio"){var un;if(Ho){var Gr=a.createElement(Wi.a,{getPopupContainer:Ga},Ho.map(function(Ai,Ii){var na=Ai.key,ji=Ai.text,fa=Ai.onSelect;return a.createElement(Wi.a.Item,{key:na||Ii,onClick:function(){fa&&fa(ht)}},ji)}));un=a.createElement("div",{className:"".concat(ca,"-selection-extra")},a.createElement(Ni.a,{overlay:Gr,getPopupContainer:Ga},a.createElement("span",null,a.createElement(ln.a,null))))}var ri=To.every(function(Ai,Ii){var na=La(Ai,Ii),ji=ao.get(na)||{};return ji.disabled});Xn=!Hi&&a.createElement("div",{className:"".concat(ca,"-selection")},a.createElement(Ti.a,{checked:!ri&&!!To.length&&Er,indeterminate:!Er&&Zr,onChange:Xr,disabled:To.length===0||ri}),un)}var rn;_i==="radio"?rn=function(Ii,na,ji){var fa=La(na,ji),Xa=Ha.has(fa);return{node:a.createElement(rt.a,u()({},ao.get(fa),{checked:Xa,onClick:function(wa){return wa.stopPropagation()},onChange:function(wa){Ha.has(fa)||rs(fa,!0,[fa],wa.nativeEvent)}})),checked:Xa}}:rn=function(Ii,na,ji){var fa,Xa=La(na,ji),xa=Ha.has(Xa),wa=ts.has(Xa),Da=ao.get(Xa),ja;return va==="nest"?(ja=wa,Object(Re.a)(!(typeof(Da==null?void 0:Da.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ja=(fa=Da==null?void 0:Da.indeterminate)!==null&&fa!==void 0?fa:wa,{node:a.createElement(Ti.a,u()({},Da,{indeterminate:ja,checked:xa,onClick:function(ro){return ro.stopPropagation()},onChange:function(ro){var pa=ro.nativeEvent,Ea=pa.shiftKey,Fa=-1,Ka=-1;if(Ea&&Qi){var lo=new Set([Io,Xa]);ht.some(function($a,ss){if(lo.has($a))if(Fa===-1)Fa=ss;else return Ka=ss,!0;return!1})}if(Ka!==-1&&Fa!==Ka&&Qi){var so=ht.slice(Fa,Ka+1),Co=[];xa?so.forEach(function($a){Ha.has($a)&&(Co.push($a),Ha.delete($a))}):so.forEach(function($a){Ha.has($a)||(Co.push($a),Ha.add($a))});var Lo=Array.from(Ha);xo(Lo),ki&&ki(!xa,Lo.map(function($a){return Ma($a)}),Co.map(function($a){return Ma($a)}))}else{var is=Jo;if(Qi){var cs=xa?Object($n.b)(is,Xa):Object($n.a)(is,Xa);rs(Xa,!xa,cs,pa)}else{var Rs=Object(ti.a)([].concat(Nr()(is),[Xa]),!0,mo,So),Ko=Rs.checkedKeys,as=Rs.halfCheckedKeys,co=Ko;if(xa){var Ao=new Set(Ko);Ao.delete(Xa),co=Object(ti.a)(Array.from(Ao),{checked:!1,halfCheckedKeys:as},mo,So).checkedKeys}rs(Xa,!xa,co,pa)}}os(Xa)}})),checked:xa}};var jn=function(Ii,na,ji){var fa=rn(Ii,na,ji),Xa=fa.node,xa=fa.checked;return zi?zi(xa,na,ji,Xa):Xa},oi=A()({width:yi,className:"".concat(ca,"-selection-column"),title:xt.columnTitle||Xn,render:jn},q,{className:"".concat(ca,"-selection-col")});if(va==="row"&&uo.length&&!Aa){var li=Qt()(uo),ai=li[0],Ei=li.slice(1),mi=qi||et(Ei[0]);return mi&&(ai.fixed=mi),[ai,u()(u()({},oi),{fixed:mi})].concat(Nr()(Ei))}return[u()(u()({},oi),{fixed:qi||et(uo[0])})].concat(Nr()(uo))},[La,To,xt,Jo,wo,ts,yi,Ho,va,Io,ao,ki,rs,So]);return[_o,wo]}var wt=n("6SEX"),ft=n.n(wt),cr=n("i8CU"),Jr=n.n(cr),Qr=n("3S7+");function fn(xt,_r){return"key"in xt&&xt.key!==void 0&&xt.key!==null?xt.key:xt.dataIndex?Array.isArray(xt.dataIndex)?xt.dataIndex.join("."):xt.dataIndex:_r}function pr(xt,_r){return _r?"".concat(_r,"-").concat(xt):"".concat(xt)}function Wn(xt,_r){return typeof xt=="function"?xt(_r):xt}var kr="ascend",kn="descend";function bn(xt){return p()(xt.sorter)==="object"&&typeof xt.sorter.multiple=="number"?xt.sorter.multiple:!1}function qr(xt){return typeof xt=="function"?xt:xt&&p()(xt)==="object"&&xt.compare?xt.compare:!1}function fi(xt,_r){return _r?xt[xt.indexOf(_r)+1]:xt[0]}function Mi(xt,_r,Or){var en=[];function wn(_n,yn){en.push({column:_n,key:fn(_n,yn),multiplePriority:bn(_n),sortOrder:_n.sortOrder})}return(xt||[]).forEach(function(_n,yn){var Jn=pr(yn,Or);_n.children?("sortOrder"in _n&&wn(_n,Jn),en=[].concat(Nr()(en),Nr()(Mi(_n.children,_r,Jn)))):_n.sorter&&("sortOrder"in _n?wn(_n,Jn):_r&&_n.defaultSortOrder&&en.push({column:_n,key:fn(_n,Jn),multiplePriority:bn(_n),sortOrder:_n.defaultSortOrder}))}),en}function Zi(xt,_r,Or,en,wn,_n,yn,Jn){return(_r||[]).map(function(Un,pi){var ki=pr(pi,Jn),yi=Un;if(yi.sorter){var _i=yi.sortDirections||wn,Ki=yi.showSorterTooltip===void 0?yn:yi.showSorterTooltip,qi=fn(yi,ki),zi=Or.find(function(ga){var Oa=ga.key;return Oa===qi}),Hi=zi?zi.sortOrder:null,Ui=fi(_i,Hi),Qi=_i.includes(kr)&&a.createElement(Jr.a,{className:t()("".concat(xt,"-column-sorter-up"),{active:Hi===kr})}),ca=_i.includes(kn)&&a.createElement(ft.a,{className:t()("".concat(xt,"-column-sorter-down"),{active:Hi===kn})}),Ca=_n||{},ra=Ca.cancelSort,Ma=Ca.triggerAsc,La=Ca.triggerDesc,va=ra;Ui===kn?va=La:Ui===kr&&(va=Ma),yi=u()(u()({},yi),{className:t()(yi.className,A()({},"".concat(xt,"-column-sort"),Hi)),title:function(Oa){var Aa=a.createElement("div",{className:"".concat(xt,"-column-sorters")},a.createElement("span",null,Wn(Un.title,Oa)),a.createElement("span",{className:t()("".concat(xt,"-column-sorter"),A()({},"".concat(xt,"-column-sorter-full"),Qi&&ca))},a.createElement("span",{className:"".concat(xt,"-column-sorter-inner")},Qi,ca)));return Ki?a.createElement(Qr.a,{title:va},a.createElement("div",{className:"".concat(xt,"-column-sorters-with-tooltip")},Aa)):Aa},onHeaderCell:function(Oa){var Aa=Un.onHeaderCell&&Un.onHeaderCell(Oa)||{},Ga=Aa.onClick;return Aa.onClick=function(_a){en({column:Un,key:qi,sortOrder:Ui,multiplePriority:bn(Un)}),Ga&&Ga(_a)},Aa.className=t()(Aa.className,"".concat(xt,"-column-has-sorters")),Aa}})}return"children"in yi&&(yi=u()(u()({},yi),{children:Zi(xt,yi.children,Or,en,wn,_n,yn,ki)})),yi})}function tn(xt){var _r=xt.column,Or=xt.sortOrder;return{column:_r,order:Or,field:_r.dataIndex,columnKey:_r.key}}function En(xt){var _r=xt.filter(function(Or){var en=Or.sortOrder;return en}).map(tn);return _r.length===0&&xt.length?u()(u()({},tn(xt[xt.length-1])),{column:void 0}):_r.length<=1?_r[0]||{}:_r}function Vn(xt,_r,Or){var en=_r.slice().sort(function(yn,Jn){return Jn.multiplePriority-yn.multiplePriority}),wn=xt.slice(),_n=en.filter(function(yn){var Jn=yn.column.sorter,Un=yn.sortOrder;return qr(Jn)&&Un});return _n.length?wn.sort(function(yn,Jn){for(var Un=0;Un<_n.length;Un+=1){var pi=_n[Un],ki=pi.column.sorter,yi=pi.sortOrder,_i=qr(ki);if(_i&&yi){var Ki=_i(yn,Jn,yi);if(Ki!==0)return yi===kr?Ki:-Ki}}return 0}).map(function(yn){var Jn=yn[Or];return Jn?u()(u()({},yn),A()({},Or,Vn(Jn,_r,Or))):yn}):wn}function Wt(xt){var _r=xt.prefixCls,Or=xt.mergedColumns,en=xt.onSorterChange,wn=xt.sortDirections,_n=xt.tableLocale,yn=xt.showSorterTooltip,Jn=a.useState(Mi(Or,!0)),Un=f()(Jn,2),pi=Un[0],ki=Un[1],yi=a.useMemo(function(){var Hi=!0,Ui=Mi(Or,!1);if(!Ui.length)return pi;var Qi=[];function ca(ra){Hi?Qi.push(ra):Qi.push(u()(u()({},ra),{sortOrder:null}))}var Ca=null;return Ui.forEach(function(ra){Ca===null?(ca(ra),ra.sortOrder&&(ra.multiplePriority===!1?Hi=!1:Ca=!0)):(Ca&&ra.multiplePriority!==!1||(Hi=!1),ca(ra))}),Qi},[Or,pi]),_i=a.useMemo(function(){var Hi=yi.map(function(Ui){var Qi=Ui.column,ca=Ui.sortOrder;return{column:Qi,order:ca}});return{sortColumns:Hi,sortColumn:Hi[0]&&Hi[0].column,sortOrder:Hi[0]&&Hi[0].order}},[yi]);function Ki(Hi){var Ui;Hi.multiplePriority===!1||!yi.length||yi[0].multiplePriority===!1?Ui=[Hi]:Ui=[].concat(Nr()(yi.filter(function(Qi){var ca=Qi.key;return ca!==Hi.key})),[Hi]),ki(Ui),en(En(Ui),Ui)}var qi=function(Ui){return Zi(_r,Ui,yi,Ki,wn,_n,yn)},zi=function(){return En(yi)};return[qi,yi,_i,zi]}var Et=n("Y+p1"),kt=n.n(Et),Bt=n("5Uyt"),Kt=n.n(Bt),Ot=n("2/Rp"),sr=n("ECub"),fr=function(_r){return a.createElement("div",{className:_r.className,onClick:function(en){return en.stopPropagation()}},_r.children)},vr=fr,Rr=n("sPtV"),Kn=Wi.a.SubMenu,Dn=Wi.a.Item;function ui(xt){return xt.some(function(_r){var Or=_r.children;return Or})}function pn(xt){var _r=xt.filters,Or=xt.prefixCls,en=xt.filteredKeys,wn=xt.filterMultiple,_n=xt.locale;return _r.length===0?a.createElement(a.Fragment,null,a.createElement(sr.a,{image:sr.a.PRESENTED_IMAGE_SIMPLE,description:_n.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):_r.map(function(yn,Jn){var Un=String(yn.value);if(yn.children)return a.createElement(Kn,{key:Un||Jn,title:yn.text,popupClassName:"".concat(Or,"-dropdown-submenu")},pn({filters:yn.children,prefixCls:Or,filteredKeys:en,filterMultiple:wn,locale:_n}));var pi=wn?Ti.a:rt.a;return a.createElement(Dn,{key:yn.value!==void 0?Un:Jn},a.createElement(pi,{checked:en.includes(Un)}),a.createElement("span",null,yn.text))})}function Br(xt){var _r,Or=xt.prefixCls,en=xt.column,wn=xt.dropdownPrefixCls,_n=xt.columnKey,yn=xt.filterMultiple,Jn=xt.filterState,Un=xt.triggerFilter,pi=xt.locale,ki=xt.children,yi=xt.getPopupContainer,_i=en.filterDropdownVisible,Ki=en.onFilterDropdownVisibleChange,qi=a.useState(!1),zi=f()(qi,2),Hi=zi[0],Ui=zi[1],Qi=!!(Jn&&(((_r=Jn.filteredKeys)===null||_r===void 0?void 0:_r.length)||Jn.forceFiltered)),ca=function(Oo){Ui(Oo),Ki&&Ki(Oo)},Ca=typeof _i=="boolean"?_i:Hi,ra=Jn&&Jn.filteredKeys,Ma=Object(Rr.a)(ra||[]),La=f()(Ma,2),va=La[0],ga=La[1],Oa=function(Oo){var Io=Oo.selectedKeys;ga(Io)};a.useEffect(function(){Oa({selectedKeys:ra||[]})},[ra]);var Aa=a.useState([]),Ga=f()(Aa,2),_a=Ga[0],Va=Ga[1],Bi=a.useRef(),io=function(Oo){Bi.current=window.setTimeout(function(){Va(Oo)})},oo=function(){window.clearTimeout(Bi.current)};a.useEffect(function(){return function(){window.clearTimeout(Bi.current)}},[]);var Qo=function(Oo){ca(!1);var Io=Oo&&Oo.length?Oo:null;if(Io===null&&(!Jn||!Jn.filteredKeys))return null;if(kt()(Io,Jn==null?void 0:Jn.filteredKeys))return null;Un({column:en,key:_n,filteredKeys:Io})},mo=function(){Qo(va())},To=function(){ga([]),Qo([])},ao=function(Oo){Oo&&ra!==void 0&&ga(ra||[]),ca(Oo),!Oo&&!en.filterDropdown&&mo()},So=t()(A()({},"".concat(wn,"-menu-without-submenu"),!ui(en.filters||[]))),bo;if(typeof en.filterDropdown=="function")bo=en.filterDropdown({prefixCls:"".concat(wn,"-custom"),setSelectedKeys:function(Oo){return Oa({selectedKeys:Oo})},selectedKeys:va(),confirm:mo,clearFilters:To,filters:en.filters,visible:Ca});else if(en.filterDropdown)bo=en.filterDropdown;else{var to=va()||[];bo=a.createElement(a.Fragment,null,a.createElement(Wi.a,{multiple:yn,prefixCls:"".concat(wn,"-menu"),className:So,onClick:oo,onSelect:Oa,onDeselect:Oa,selectedKeys:to,getPopupContainer:yi,openKeys:_a,onOpenChange:io},pn({filters:en.filters||[],prefixCls:Or,filteredKeys:va(),filterMultiple:yn,locale:pi})),a.createElement("div",{className:"".concat(Or,"-dropdown-btns")},a.createElement(Ot.a,{type:"link",size:"small",disabled:to.length===0,onClick:To},pi.filterReset),a.createElement(Ot.a,{type:"primary",size:"small",onClick:mo},pi.filterConfirm)))}var Jo=a.createElement(vr,{className:"".concat(Or,"-dropdown")},bo),Uo;typeof en.filterIcon=="function"?Uo=en.filterIcon(Qi):en.filterIcon?Uo=en.filterIcon:Uo=a.createElement(Kt.a,null);var wo=a.useContext(jt.b),ts=wo.direction;return a.createElement("div",{className:t()("".concat(Or,"-column"))},a.createElement("span",{className:"".concat(Or,"-column-title")},ki),a.createElement("span",{className:t()("".concat(Or,"-trigger-container"),A()({},"".concat(Or,"-trigger-container-open"),Ca)),onClick:function(Oo){Oo.stopPropagation()}},a.createElement(Ni.a,{overlay:Jo,trigger:["click"],visible:Ca,onVisibleChange:ao,getPopupContainer:yi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},a.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Or,"-trigger"),{active:Qi})},Uo))))}var Tn=Br;function zn(xt,_r,Or){var en=[];return(xt||[]).forEach(function(wn,_n){var yn=pr(_n,Or);"children"in wn?en=[].concat(Nr()(en),Nr()(zn(wn.children,_r,yn))):(wn.filters||"filterDropdown"in wn||"onFilter"in wn)&&("filteredValue"in wn?en.push({column:wn,key:fn(wn,yn),filteredKeys:wn.filteredValue,forceFiltered:wn.filtered}):en.push({column:wn,key:fn(wn,yn),filteredKeys:_r&&wn.defaultFilteredValue?wn.defaultFilteredValue:void 0,forceFiltered:wn.filtered}))}),en}function Qn(xt,_r,Or,en,wn,_n,yn,Jn){return Or.map(function(Un,pi){var ki=pr(pi,Jn),yi=Un.filterMultiple,_i=yi===void 0?!0:yi;if(Un.filters||"filterDropdown"in Un){var Ki=fn(Un,ki),qi=en.find(function(zi){var Hi=zi.key;return Ki===Hi});return u()(u()({},Un),{title:function(Hi){return a.createElement(Tn,{prefixCls:"".concat(xt,"-filter"),dropdownPrefixCls:_r,column:Un,columnKey:Ki,filterState:qi,filterMultiple:_i,triggerFilter:wn,locale:yn,getPopupContainer:_n},Wn(Un.title,Hi))}})}return"children"in Un?u()(u()({},Un),{children:Qn(xt,_r,Un.children,en,wn,_n,yn,ki)}):Un})}function ii(xt){var _r={};return xt.forEach(function(Or){var en=Or.key,wn=Or.filteredKeys;_r[en]=wn||null}),_r}function xi(xt){var _r=[];return(xt||[]).forEach(function(Or){var en=Or.value,wn=Or.children;_r.push(en),wn&&(_r=[].concat(Nr()(_r),Nr()(xi(wn))))}),_r}function Di(xt,_r){return _r.reduce(function(Or,en){var wn=en.column,_n=wn.onFilter,yn=wn.filters,Jn=en.filteredKeys;return _n&&Jn&&Jn.length?Or.filter(function(Un){return Jn.some(function(pi){var ki=xi(yn),yi=ki.findIndex(function(Ki){return String(Ki)===String(pi)}),_i=yi!==-1?ki[yi]:pi;return _n(_i,Un)})}):Or},xt)}function Li(xt){var _r=xt.prefixCls,Or=xt.dropdownPrefixCls,en=xt.mergedColumns,wn=xt.onFilterChange,_n=xt.getPopupContainer,yn=xt.locale,Jn=a.useState(zn(en,!0)),Un=f()(Jn,2),pi=Un[0],ki=Un[1],yi=a.useMemo(function(){var zi=zn(en,!1);return zi.every(function(Hi){var Ui=Hi.filteredKeys;return Ui===void 0})?pi:zi},[en,pi]),_i=a.useCallback(function(){return ii(yi)},[yi]),Ki=function(Hi){var Ui=yi.filter(function(Qi){var ca=Qi.key;return ca!==Hi.key});Ui.push(Hi),ki(Ui),wn(ii(Ui),Ui)},qi=function(Hi){return Qn(_r,Or,Hi,yi,Ki,_n,yn)};return[qi,yi,_i]}var oa=Li;function ma(xt,_r){return xt.map(function(Or){var en=u()({},Or);return en.title=Wn(Or.title,_r),"children"in en&&(en.children=ma(en.children,_r)),en})}function ia(xt){var _r=a.useCallback(function(Or){return ma(Or,xt)},[xt]);return[_r]}function ba(xt){return function(Or){var en,wn=Or.prefixCls,_n=Or.onExpand,yn=Or.record,Jn=Or.expanded,Un=Or.expandable,pi="".concat(wn,"-row-expand-icon");return a.createElement("button",{type:"button",onClick:function(yi){_n(yn,yi),yi.stopPropagation()},className:t()(pi,(en={},A()(en,"".concat(pi,"-spaced"),!Un),A()(en,"".concat(pi,"-expanded"),Un&&Jn),A()(en,"".concat(pi,"-collapsed"),Un&&!Jn),en)),"aria-label":Jn?xt.collapse:xt.expand})}}var vi=ba,Ln=n("zAh6"),Fi=n("ZvpZ"),ha=Fi.a,ea=n("3Nzz");function aa(xt){return null}var Ir=aa;function wr(xt){return null}var xn=wr,ur=n("5OYt"),Dr=[];function Vr(xt){var _r,Or=xt.prefixCls,en=xt.className,wn=xt.style,_n=xt.size,yn=xt.bordered,Jn=xt.dropdownPrefixCls,Un=xt.dataSource,pi=xt.pagination,ki=xt.rowSelection,yi=xt.rowKey,_i=xt.rowClassName,Ki=xt.columns,qi=xt.children,zi=xt.childrenColumnName,Hi=xt.onChange,Ui=xt.getPopupContainer,Qi=xt.loading,ca=xt.expandIcon,Ca=xt.expandable,ra=xt.expandedRowRender,Ma=xt.expandIconColumnIndex,La=xt.indentSize,va=xt.scroll,ga=xt.sortDirections,Oa=xt.locale,Aa=xt.showSorterTooltip,Ga=Aa===void 0?!0:Aa;Object(Re.a)(!(typeof yi=="function"&&yi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var _a=Object(ur.a)(),Va=a.useMemo(function(){var Ao=new Set(Object.keys(_a).filter(function($a){return _a[$a]}));return(Ki||pe(qi)).filter(function($a){return!$a.responsive||$a.responsive.some(function(ss){return Ao.has(ss)})})},[qi,Ki,_a]),Bi=Object(o.default)(xt,["className","style","columns"]),io=a.useContext(ea.b),oo=a.useContext(jt.b),Qo=oo.locale,mo=Qo===void 0?ha:Qo,To=oo.renderEmpty,ao=oo.direction,So=_n||io,bo=u()(u()({},mo.Table),Oa),to=Un||Dr,Jo=a.useContext(jt.b),Uo=Jo.getPrefixCls,wo=Uo("table",Or),ts=Uo("dropdown",Jn),Ia=u()({childrenColumnName:zi,expandIconColumnIndex:Ma},Ca),Oo=Ia.childrenColumnName,Io=Oo===void 0?"children":Oo,os=a.useMemo(function(){return to.some(function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[Io]})?"nest":ra||Ca&&Ca.expandedRowRender?"row":null},[to]),xo={body:a.useRef()},rs=a.useMemo(function(){return typeof yi=="function"?yi:function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[yi]}},[yi]),Ho=qt(to,Io,rs),_o=f()(Ho,1),uo=_o[0],Ha={},ht=function($a,ss){var Cs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fo=u()(u()({},Ha),$a);Cs&&(Ha.resetPagination(),Fo.pagination.current&&(Fo.pagination.current=1),pi&&pi.onChange&&pi.onChange(1,Fo.pagination.pageSize)),va&&va.scrollToFirstRowOnChange!==!1&&xo.body.current&&Object(Ln.a)(0,{getContainer:function(){return xo.body.current}}),Hi&&Hi(Fo.pagination,Fo.filters,Fo.sorter,{currentDataSource:Di(Vn(to,Fo.sorterStates,Io),Fo.filterStates),action:ss})},Er=function($a,ss){ht({sorter:$a,sorterStates:ss},"sort",!1)},Zr=Wt({prefixCls:wo,mergedColumns:Va,onSorterChange:Er,sortDirections:ga||["ascend","descend"],tableLocale:bo,showSorterTooltip:Ga}),Xr=f()(Zr,4),Xn=Xr[0],un=Xr[1],Gr=Xr[2],ri=Xr[3],rn=a.useMemo(function(){return Vn(to,un,Io)},[to,un]);Ha.sorter=ri(),Ha.sorterStates=un;var jn=function($a,ss){ht({filters:$a,filterStates:ss},"filter",!0)},oi=oa({prefixCls:wo,locale:bo,dropdownPrefixCls:ts,mergedColumns:Va,onFilterChange:jn,getPopupContainer:Ui}),li=f()(oi,3),ai=li[0],Ei=li[1],mi=li[2],Ai=Di(rn,Ei);Ha.filters=mi(),Ha.filterStates=Ei;var Ii=a.useMemo(function(){return u()({},Gr)},[Gr]),na=ia(Ii),ji=f()(na,1),fa=ji[0],Xa=function($a,ss){ht({pagination:u()(u()({},Ha.pagination),{current:$a,pageSize:ss})},"paginate")},xa=Mt(Ai.length,pi,Xa),wa=f()(xa,2),Da=wa[0],ja=wa[1];Ha.pagination=pi===!1?{}:ar(pi,Da),Ha.resetPagination=ja;var ko=a.useMemo(function(){if(pi===!1||!Da.pageSize)return Ai;var Ao=Da.current,$a=Ao===void 0?1:Ao,ss=Da.total,Cs=Da.pageSize,Fo=Cs===void 0?pt:Cs;return Ai.length<ss?Ai.length>Fo?(Object(Re.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."),Ai.slice(($a-1)*Fo,$a*Fo)):Ai:Ai.slice(($a-1)*Fo,$a*Fo)},[!!pi,Ai,Da&&Da.current,Da&&Da.pageSize,Da&&Da.total]),ro=at(ki,{prefixCls:wo,data:Ai,pageData:ko,getRowKey:rs,getRecordByKey:uo,expandType:os,childrenColumnName:Io,locale:bo,expandIconColumnIndex:Ia.expandIconColumnIndex,getPopupContainer:Ui}),pa=f()(ro,2),Ea=pa[0],Fa=pa[1],Ka=function($a,ss,Cs){var Fo;return typeof _i=="function"?Fo=t()(_i($a,ss,Cs)):Fo=t()(_i),t()(A()({},"".concat(wo,"-row-selected"),Fa.has(rs($a,ss))),Fo)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||ca||vi(bo),os==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=ki?1:0:Ia.expandIconColumnIndex>0&&ki&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof La=="number"?La:15);var lo=a.useCallback(function(Ao){return fa(Ea(ai(Xn(Ao))))},[Xn,ai,Ea]),so,Co;if(pi!==!1){var Lo;Da.size?Lo=Da.size:Lo=So==="small"||So==="middle"?"small":void 0;var is=function($a){return a.createElement(vn.a,u()({className:"".concat(wo,"-pagination ").concat(wo,"-pagination-").concat($a)},Da,{size:Lo}))},cs=ao==="rtl"?"left":"right";if(Da.position!==null&&Array.isArray(Da.position)){var Rs=Da.position.find(function(Ao){return Ao.indexOf("top")!==-1}),Ko=Da.position.find(function(Ao){return Ao.indexOf("bottom")!==-1});!Rs&&!Ko?Co=is(cs):(Rs&&(so=is(Rs.toLowerCase().replace("top",""))),Ko&&(Co=is(Ko.toLowerCase().replace("bottom",""))))}else Co=is(cs)}var as;typeof Qi=="boolean"?as={spinning:Qi}:p()(Qi)==="object"&&(as=u()({spinning:!0},Qi));var co=t()("".concat(wo,"-wrapper"),en,A()({},"".concat(wo,"-wrapper-rtl"),ao==="rtl"));return a.createElement("div",{className:co,style:wn},a.createElement($r.a,u()({spinning:!1},as),so,a.createElement(Mr,u()({},Bi,{columns:Va,direction:ao,expandable:Ia,prefixCls:wo,className:t()((_r={},A()(_r,"".concat(wo,"-middle"),So==="middle"),A()(_r,"".concat(wo,"-small"),So==="small"),A()(_r,"".concat(wo,"-bordered"),yn),A()(_r,"".concat(wo,"-empty"),to.length===0),_r)),data:ko,rowKey:rs,rowClassName:Ka,emptyText:Oa&&Oa.emptyText||To("Table"),internalHooks:tt,internalRefs:xo,transformColumns:lo})),Ai&&Ai.length>0&&Co))}Vr.defaultProps={rowKey:"key"},Vr.SELECTION_ALL=Ue,Vr.SELECTION_INVERT=Ye,Vr.Column=Ir,Vr.ColumnGroup=xn,Vr.Summary=Zn;var sn=Vr,Rn=D.a=sn},wDdD:function(k,D,n){var y=n("ProS"),p=n("bYtY");n("98bh"),n("GrNh");var x=n("d4KN"),A=n("mOdp"),m=n("KS52"),f=n("0/Rx");x("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(A("pie")),y.registerLayout(p.curry(m,"pie")),y.registerProcessor(f("pie"))},"wF/u":function(k,D,n){var y=n("e5cp"),p=n("ExA7");function x(A,m,f,h,u){return A===m?!0:A==null||m==null||!p(A)&&!p(m)?A!==A&&m!==m:y(A,m,f,h,x,u)}k.exports=x},wJg7:function(k,D){var n=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function p(x,A){var m=typeof x;return A=A==null?n:A,!!A&&(m=="number"||m!="symbol"&&y.test(x))&&(x>-1&&x%1==0)&&x<A}k.exports=p},wOnQ:function(k,D,n){/*!
* 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(ye,De){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,ut){We.__proto__=ut}||function(We,ut){for(var dr in ut)Object.prototype.hasOwnProperty.call(ut,dr)&&(We[dr]=ut[dr])},y(ye,De)};function p(xr,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Class extends value "+String(ye)+" is not a constructor or null");y(xr,ye);function De(){this.constructor=xr}xr.prototype=ye===null?Object.create(ye):(De.prototype=ye.prototype,new De)}var x=function(){return x=Object.assign||function(De){for(var We,ut=1,dr=arguments.length;ut<dr;ut++){We=arguments[ut];for(var nn in We)Object.prototype.hasOwnProperty.call(We,nn)&&(De[nn]=We[nn])}return De},x.apply(this,arguments)};function A(xr,ye,De,We){function ut(dr){return dr instanceof De?dr:new De(function(nn){nn(dr)})}return new(De||(De=Promise))(function(dr,nn){function Sn(Vi){try{ni(We.next(Vi))}catch(Pi){nn(Pi)}}function Pn(Vi){try{ni(We.throw(Vi))}catch(Pi){nn(Pi)}}function ni(Vi){Vi.done?dr(Vi.value):ut(Vi.value).then(Sn,Pn)}ni((We=We.apply(xr,ye||[])).next())})}function m(xr,ye){var De={label:0,sent:function(){if(dr[0]&1)throw dr[1];return dr[1]},trys:[],ops:[]},We,ut,dr,nn;return nn={next:Sn(0),throw:Sn(1),return:Sn(2)},typeof Symbol=="function"&&(nn[Symbol.iterator]=function(){return this}),nn;function Sn(ni){return function(Vi){return Pn([ni,Vi])}}function Pn(ni){if(We)throw new TypeError("Generator is already executing.");for(;De;)try{if(We=1,ut&&(dr=ni[0]&2?ut.return:ni[0]?ut.throw||((dr=ut.return)&&dr.call(ut),0):ut.next)&&!(dr=dr.call(ut,ni[1])).done)return dr;(ut=0,dr)&&(ni=[ni[0]&2,dr.value]);switch(ni[0]){case 0:case 1:dr=ni;break;case 4:return De.label++,{value:ni[1],done:!1};case 5:De.label++,ut=ni[1],ni=[0];continue;case 7:ni=De.ops.pop(),De.trys.pop();continue;default:if(!(dr=De.trys,dr=dr.length>0&&dr[dr.length-1])&&(ni[0]===6||ni[0]===2)){De=0;continue}if(ni[0]===3&&(!dr||ni[1]>dr[0]&&ni[1]<dr[3])){De.label=ni[1];break}if(ni[0]===6&&De.label<dr[1]){De.label=dr[1],dr=ni;break}if(dr&&De.label<dr[2]){De.label=dr[2],De.ops.push(ni);break}dr[2]&&De.ops.pop(),De.trys.pop();continue}ni=ye.call(xr,De)}catch(Vi){ni=[6,Vi],ut=0}finally{We=dr=0}if(ni[0]&5)throw ni[1];return{value:ni[0]?ni[1]:void 0,done:!0}}}function f(xr,ye,De){if(De||arguments.length===2)for(var We=0,ut=ye.length,dr;We<ut;We++)(dr||!(We in ye))&&(dr||(dr=Array.prototype.slice.call(ye,0,We)),dr[We]=ye[We]);return xr.concat(dr||ye)}for(var h=function(){function xr(ye,De,We,ut){this.left=ye,this.top=De,this.width=We,this.height=ut}return xr.prototype.add=function(ye,De,We,ut){return new xr(this.left+ye,this.top+De,this.width+We,this.height+ut)},xr.fromClientRect=function(ye,De){return new xr(De.left+ye.windowBounds.left,De.top+ye.windowBounds.top,De.width,De.height)},xr.fromDOMRectList=function(ye,De){var We=Array.from(De).find(function(ut){return ut.width!==0});return We?new xr(We.left+ye.windowBounds.left,We.top+ye.windowBounds.top,We.width,We.height):xr.EMPTY},xr.EMPTY=new xr(0,0,0,0),xr}(),u=function(ye,De){return h.fromClientRect(ye,De.getBoundingClientRect())},a=function(ye){var De=ye.body,We=ye.documentElement;if(!De||!We)throw new Error("Unable to get document size");var ut=Math.max(Math.max(De.scrollWidth,We.scrollWidth),Math.max(De.offsetWidth,We.offsetWidth),Math.max(De.clientWidth,We.clientWidth)),dr=Math.max(Math.max(De.scrollHeight,We.scrollHeight),Math.max(De.offsetHeight,We.offsetHeight),Math.max(De.clientHeight,We.clientHeight));return new h(0,0,ut,dr)},i=function(ye){for(var De=[],We=0,ut=ye.length;We<ut;){var dr=ye.charCodeAt(We++);if(dr>=55296&&dr<=56319&&We<ut){var nn=ye.charCodeAt(We++);(nn&64512)===56320?De.push(((dr&1023)<<10)+(nn&1023)+65536):(De.push(dr),We--)}else De.push(dr)}return De},t=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var ut=[],dr=-1,nn="";++dr<We;){var Sn=ye[dr];Sn<=65535?ut.push(Sn):(Sn-=65536,ut.push((Sn>>10)+55296,Sn%1024+56320)),(dr+1===We||ut.length>16384)&&(nn+=String.fromCharCode.apply(String,ut),ut.length=0)}return nn},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<o.length;l++)e[o.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 d=function(ye){var De=ye.length*.75,We=ye.length,ut,dr=0,nn,Sn,Pn,ni;ye[ye.length-1]==="="&&(De--,ye[ye.length-2]==="="&&De--);var Vi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Pi=Array.isArray(Vi)?Vi:new Uint8Array(Vi);for(ut=0;ut<We;ut+=4)nn=s[ye.charCodeAt(ut)],Sn=s[ye.charCodeAt(ut+1)],Pn=s[ye.charCodeAt(ut+2)],ni=s[ye.charCodeAt(ut+3)],Pi[dr++]=nn<<2|Sn>>4,Pi[dr++]=(Sn&15)<<4|Pn>>2,Pi[dr++]=(Pn&3)<<6|ni&63;return Vi},g=function(ye){for(var De=ye.length,We=[],ut=0;ut<De;ut+=2)We.push(ye[ut+1]<<8|ye[ut]);return We},v=function(ye){for(var De=ye.length,We=[],ut=0;ut<De;ut+=4)We.push(ye[ut+3]<<24|ye[ut+2]<<16|ye[ut+1]<<8|ye[ut]);return We},b=5,S=6+5,E=2,C=S-b,_=65536>>b,T=1<<b,w=T-1,O=1024>>b,I=_+O,R=I,M=2048>>6,F=R+M,P=65536>>S,X=1<<C,B=X-1,j=function(ye,De,We){return ye.slice?ye.slice(De,We):new Uint16Array(Array.prototype.slice.call(ye,De,We))},W=function(ye,De,We){return ye.slice?ye.slice(De,We):new Uint32Array(Array.prototype.slice.call(ye,De,We))},z=function(ye,De){var We=d(ye),ut=Array.isArray(We)?v(We):new Uint32Array(We),dr=Array.isArray(We)?g(We):new Uint16Array(We),nn=24,Sn=j(dr,nn/2,ut[4]/2),Pn=ut[5]===2?j(dr,(nn+ut[4])/2):W(ut,Math.ceil((nn+ut[4])/4));return new V(ut[0],ut[1],ut[2],ut[3],Sn,Pn)},V=function(){function xr(ye,De,We,ut,dr,nn){this.initialValue=ye,this.errorValue=De,this.highStart=We,this.highValueIndex=ut,this.index=dr,this.data=nn}return xr.prototype.get=function(ye){var De;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return De=this.index[ye>>b],De=(De<<E)+(ye&w),this.data[De];if(ye<=65535)return De=this.index[_+(ye-55296>>b)],De=(De<<E)+(ye&w),this.data[De];if(ye<this.highStart)return De=F-P+(ye>>S),De=this.index[De],De+=ye>>b&B,De=this.index[De],De=(De<<E)+(ye&w),this.data[De];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},xr}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),re=0;re<Q.length;re++)G[Q.charCodeAt(re)]=re;var ee="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==",ue=50,$=1,be=2,_e=3,Ee=4,Xe=5,He=7,nt=8,Ie=9,oe=10,ot=11,he=12,J=13,Y=14,q=15,fe=16,we=17,Ne=18,je=19,me=20,Ce=21,Fe=22,it=23,Ct=24,mt=25,Ve=26,or=27,dt=28,Yt=29,hr=30,Gt=31,Pt=32,Xt=33,Ge=34,pe=35,se=36,lt=37,Ze=38,de=39,_t=40,er=41,yt=42,Ar=43,Sr=[9001,65288],Cn="!",mr="\xD7",Pr="\xF7",gr=z(ee),Jt=[hr,se],Dt=[$,be,_e,Xe],dn=[oe,nt],Fn=[or,Ve],Zn=Dt.concat(dn),ci=[Ze,de,_t,Ge,pe],Xi=[q,J],Gn=function(ye,De){De===void 0&&(De="strict");var We=[],ut=[],dr=[];return ye.forEach(function(nn,Sn){var Pn=gr.get(nn);if(Pn>ue?(dr.push(!0),Pn-=ue):dr.push(!1),["normal","auto","loose"].indexOf(De)!==-1&&[8208,8211,12316,12448].indexOf(nn)!==-1)return ut.push(Sn),We.push(fe);if(Pn===Ee||Pn===ot){if(Sn===0)return ut.push(Sn),We.push(hr);var ni=We[Sn-1];return Zn.indexOf(ni)===-1?(ut.push(ut[Sn-1]),We.push(ni)):(ut.push(Sn),We.push(hr))}if(ut.push(Sn),Pn===Gt)return We.push(De==="strict"?Ce:lt);if(Pn===yt)return We.push(hr);if(Pn===Yt)return We.push(hr);if(Pn===Ar)return nn>=131072&&nn<=196605||nn>=196608&&nn<=262141?We.push(lt):We.push(hr);We.push(Pn)}),[ut,We,dr]},ei=function(ye,De,We,ut){var dr=ut[We];if(Array.isArray(ye)?ye.indexOf(dr)!==-1:ye===dr)for(var nn=We;nn<=ut.length;){nn++;var Sn=ut[nn];if(Sn===De)return!0;if(Sn!==oe)break}if(dr===oe)for(var nn=We;nn>0;){nn--;var Pn=ut[nn];if(Array.isArray(ye)?ye.indexOf(Pn)!==-1:ye===Pn)for(var ni=We;ni<=ut.length;){ni++;var Sn=ut[ni];if(Sn===De)return!0;if(Sn!==oe)break}if(Pn!==oe)break}return!1},Zt=function(ye,De){for(var We=ye;We>=0;){var ut=De[We];if(ut===oe)We--;else return ut}return 0},Nt=function(ye,De,We,ut,dr){if(We[ut]===0)return mr;var nn=ut-1;if(Array.isArray(dr)&&dr[nn]===!0)return mr;var Sn=nn-1,Pn=nn+1,ni=De[nn],Vi=Sn>=0?De[Sn]:0,Pi=De[Pn];if(ni===be&&Pi===_e)return mr;if(Dt.indexOf(ni)!==-1)return Cn;if(Dt.indexOf(Pi)!==-1)return mr;if(dn.indexOf(Pi)!==-1)return mr;if(Zt(nn,De)===nt)return Pr;if(gr.get(ye[nn])===ot)return mr;if((ni===Pt||ni===Xt)&&gr.get(ye[Pn])===ot)return mr;if(ni===He||Pi===He)return mr;if(ni===Ie)return mr;if([oe,J,q].indexOf(ni)===-1&&Pi===Ie)return mr;if([we,Ne,je,Ct,dt].indexOf(Pi)!==-1)return mr;if(Zt(nn,De)===Fe)return mr;if(ei(it,Fe,nn,De))return mr;if(ei([we,Ne],Ce,nn,De))return mr;if(ei(he,he,nn,De))return mr;if(ni===oe)return Pr;if(ni===it||Pi===it)return mr;if(Pi===fe||ni===fe)return Pr;if([J,q,Ce].indexOf(Pi)!==-1||ni===Y)return mr;if(Vi===se&&Xi.indexOf(ni)!==-1)return mr;if(ni===dt&&Pi===se)return mr;if(Pi===me)return mr;if(Jt.indexOf(Pi)!==-1&&ni===mt||Jt.indexOf(ni)!==-1&&Pi===mt)return mr;if(ni===or&&[lt,Pt,Xt].indexOf(Pi)!==-1||[lt,Pt,Xt].indexOf(ni)!==-1&&Pi===Ve)return mr;if(Jt.indexOf(ni)!==-1&&Fn.indexOf(Pi)!==-1||Fn.indexOf(ni)!==-1&&Jt.indexOf(Pi)!==-1)return mr;if([or,Ve].indexOf(ni)!==-1&&(Pi===mt||[Fe,q].indexOf(Pi)!==-1&&De[Pn+1]===mt)||[Fe,q].indexOf(ni)!==-1&&Pi===mt||ni===mt&&[mt,dt,Ct].indexOf(Pi)!==-1)return mr;if([mt,dt,Ct,we,Ne].indexOf(Pi)!==-1)for(var $i=nn;$i>=0;){var Za=De[$i];if(Za===mt)return mr;if([dt,Ct].indexOf(Za)!==-1)$i--;else break}if([or,Ve].indexOf(Pi)!==-1)for(var $i=[we,Ne].indexOf(ni)!==-1?Sn:nn;$i>=0;){var Za=De[$i];if(Za===mt)return mr;if([dt,Ct].indexOf(Za)!==-1)$i--;else break}if(Ze===ni&&[Ze,de,Ge,pe].indexOf(Pi)!==-1||[de,Ge].indexOf(ni)!==-1&&[de,_t].indexOf(Pi)!==-1||[_t,pe].indexOf(ni)!==-1&&Pi===_t)return mr;if(ci.indexOf(ni)!==-1&&[me,Ve].indexOf(Pi)!==-1||ci.indexOf(Pi)!==-1&&ni===or)return mr;if(Jt.indexOf(ni)!==-1&&Jt.indexOf(Pi)!==-1)return mr;if(ni===Ct&&Jt.indexOf(Pi)!==-1)return mr;if(Jt.concat(mt).indexOf(ni)!==-1&&Pi===Fe&&Sr.indexOf(ye[Pn])===-1||Jt.concat(mt).indexOf(Pi)!==-1&&ni===Ne)return mr;if(ni===er&&Pi===er){for(var eo=We[nn],po=1;eo>0&&(eo--,De[eo]===er);)po++;if(po%2!==0)return mr}return ni===Pt&&Pi===Xt?mr:Pr},Me=function(ye,De){De||(De={lineBreak:"normal",wordBreak:"normal"});var We=Gn(ye,De.lineBreak),ut=We[0],dr=We[1],nn=We[2];(De.wordBreak==="break-all"||De.wordBreak==="break-word")&&(dr=dr.map(function(Pn){return[mt,hr,yt].indexOf(Pn)!==-1?lt:Pn}));var Sn=De.wordBreak==="keep-all"?nn.map(function(Pn,ni){return Pn&&ye[ni]>=19968&&ye[ni]<=40959}):void 0;return[ut,dr,Sn]},ke=function(){function xr(ye,De,We,ut){this.codePoints=ye,this.required=De===Cn,this.start=We,this.end=ut}return xr.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},xr}(),Pe=function(ye,De){var We=i(ye),ut=Me(We,De),dr=ut[0],nn=ut[1],Sn=ut[2],Pn=We.length,ni=0,Vi=0;return{next:function(){if(Vi>=Pn)return{done:!0,value:null};for(var $i=mr;Vi<Pn&&($i=Nt(We,nn,dr,++Vi,Sn))===mr;);if($i!==mr||Vi===Pn){var Za=new ke(We,$i,ni,Vi);return ni=Vi,{value:Za,done:!1}}return{done:!0,value:null}}}},tt=1<<0,vt=1<<1,St=1<<2,Vt=1<<3,Mr=10,$r=47,vn=92,jt=9,gt=32,pt=34,ar=61,Ht=35,Mt=36,qt=37,Rt=39,Qt=40,jr=41,Nr=95,Lr=45,ln=33,mn=60,ti=62,$n=64,hi=91,Ti=93,Ni=61,Wi=123,rt=63,Re=125,Ue=124,Ye=126,et=128,$e=65533,at=42,wt=43,ft=44,cr=58,Jr=59,Qr=46,fn=0,pr=8,Wn=11,kr=14,kn=31,bn=127,qr=-1,fi=48,Mi=97,Zi=101,tn=102,En=117,Vn=122,Wt=65,Et=69,kt=70,Bt=85,Kt=90,Ot=function(ye){return ye>=fi&&ye<=57},sr=function(ye){return ye>=55296&&ye<=57343},fr=function(ye){return Ot(ye)||ye>=Wt&&ye<=kt||ye>=Mi&&ye<=tn},vr=function(ye){return ye>=Mi&&ye<=Vn},Rr=function(ye){return ye>=Wt&&ye<=Kt},Kn=function(ye){return vr(ye)||Rr(ye)},Dn=function(ye){return ye>=et},ui=function(ye){return ye===Mr||ye===jt||ye===gt},pn=function(ye){return Kn(ye)||Dn(ye)||ye===Nr},Br=function(ye){return pn(ye)||Ot(ye)||ye===Lr},Tn=function(ye){return ye>=fn&&ye<=pr||ye===Wn||ye>=kr&&ye<=kn||ye===bn},zn=function(ye,De){return ye!==vn?!1:De!==Mr},Qn=function(ye,De,We){return ye===Lr?pn(De)||zn(De,We):pn(ye)?!0:!!(ye===vn&&zn(ye,De))},ii=function(ye,De,We){return ye===wt||ye===Lr?Ot(De)?!0:De===Qr&&Ot(We):ye===Qr?Ot(De):Ot(ye)},xi=function(ye){var De=0,We=1;(ye[De]===wt||ye[De]===Lr)&&(ye[De]===Lr&&(We=-1),De++);for(var ut=[];Ot(ye[De]);)ut.push(ye[De++]);var dr=ut.length?parseInt(t.apply(void 0,ut),10):0;ye[De]===Qr&&De++;for(var nn=[];Ot(ye[De]);)nn.push(ye[De++]);var Sn=nn.length,Pn=Sn?parseInt(t.apply(void 0,nn),10):0;(ye[De]===Et||ye[De]===Zi)&&De++;var ni=1;(ye[De]===wt||ye[De]===Lr)&&(ye[De]===Lr&&(ni=-1),De++);for(var Vi=[];Ot(ye[De]);)Vi.push(ye[De++]);var Pi=Vi.length?parseInt(t.apply(void 0,Vi),10):0;return We*(dr+Pn*Math.pow(10,-Sn))*Math.pow(10,ni*Pi)},Di={type:2},Li={type:3},oa={type:4},ma={type:13},ia={type:8},ba={type:21},vi={type:9},Ln={type:10},Fi={type:11},ha={type:12},ea={type:14},aa={type:23},Ir={type:1},wr={type:25},xn={type:24},ur={type:26},Dr={type:27},Vr={type:28},sn={type:29},Rn={type:31},xt={type:32},_r=function(){function xr(){this._value=[]}return xr.prototype.write=function(ye){this._value=this._value.concat(i(ye))},xr.prototype.read=function(){for(var ye=[],De=this.consumeToken();De!==xt;)ye.push(De),De=this.consumeToken();return ye},xr.prototype.consumeToken=function(){var ye=this.consumeCodePoint();switch(ye){case pt:return this.consumeStringToken(pt);case Ht:var De=this.peekCodePoint(0),We=this.peekCodePoint(1),ut=this.peekCodePoint(2);if(Br(De)||zn(We,ut)){var dr=Qn(De,We,ut)?vt:tt,nn=this.consumeName();return{type:5,value:nn,flags:dr}}break;case Mt:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),ma;break;case Rt:return this.consumeStringToken(Rt);case Qt:return Di;case jr:return Li;case at:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),ea;break;case wt:if(ii(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case ft:return oa;case Lr:var Sn=ye,Pn=this.peekCodePoint(0),ni=this.peekCodePoint(1);if(ii(Sn,Pn,ni))return this.reconsumeCodePoint(ye),this.consumeNumericToken();if(Qn(Sn,Pn,ni))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();if(Pn===Lr&&ni===ti)return this.consumeCodePoint(),this.consumeCodePoint(),xn;break;case Qr:if(ii(ye,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ye),this.consumeNumericToken();break;case $r:if(this.peekCodePoint(0)===at)for(this.consumeCodePoint();;){var Vi=this.consumeCodePoint();if(Vi===at&&(Vi=this.consumeCodePoint(),Vi===$r))return this.consumeToken();if(Vi===qr)return this.consumeToken()}break;case cr:return ur;case Jr:return Dr;case mn:if(this.peekCodePoint(0)===ln&&this.peekCodePoint(1)===Lr&&this.peekCodePoint(2)===Lr)return this.consumeCodePoint(),this.consumeCodePoint(),wr;break;case $n:var Pi=this.peekCodePoint(0),$i=this.peekCodePoint(1),Za=this.peekCodePoint(2);if(Qn(Pi,$i,Za)){var nn=this.consumeName();return{type:7,value:nn}}break;case hi:return Vr;case vn:if(zn(ye,this.peekCodePoint(0)))return this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();break;case Ti:return sn;case Ni:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),ia;break;case Wi:return Fi;case Re:return ha;case En:case Bt:var eo=this.peekCodePoint(0),po=this.peekCodePoint(1);return eo===wt&&(fr(po)||po===rt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ye),this.consumeIdentLikeToken();case Ue:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),vi;if(this.peekCodePoint(0)===Ue)return this.consumeCodePoint(),ba;break;case Ye:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),Ln;break;case qr:return xt}return ui(ye)?(this.consumeWhiteSpace(),Rn):Ot(ye)?(this.reconsumeCodePoint(ye),this.consumeNumericToken()):pn(ye)?(this.reconsumeCodePoint(ye),this.consumeIdentLikeToken()):{type:6,value:t(ye)}},xr.prototype.consumeCodePoint=function(){var ye=this._value.shift();return typeof ye=="undefined"?-1:ye},xr.prototype.reconsumeCodePoint=function(ye){this._value.unshift(ye)},xr.prototype.peekCodePoint=function(ye){return ye>=this._value.length?-1:this._value[ye]},xr.prototype.consumeUnicodeRangeToken=function(){for(var ye=[],De=this.consumeCodePoint();fr(De)&&ye.length<6;)ye.push(De),De=this.consumeCodePoint();for(var We=!1;De===rt&&ye.length<6;)ye.push(De),De=this.consumeCodePoint(),We=!0;if(We){var ut=parseInt(t.apply(void 0,ye.map(function(Pn){return Pn===rt?fi:Pn})),16),dr=parseInt(t.apply(void 0,ye.map(function(Pn){return Pn===rt?kt:Pn})),16);return{type:30,start:ut,end:dr}}var nn=parseInt(t.apply(void 0,ye),16);if(this.peekCodePoint(0)===Lr&&fr(this.peekCodePoint(1))){this.consumeCodePoint(),De=this.consumeCodePoint();for(var Sn=[];fr(De)&&Sn.length<6;)Sn.push(De),De=this.consumeCodePoint();var dr=parseInt(t.apply(void 0,Sn),16);return{type:30,start:nn,end:dr}}else return{type:30,start:nn,end:nn}},xr.prototype.consumeIdentLikeToken=function(){var ye=this.consumeName();return ye.toLowerCase()==="url"&&this.peekCodePoint(0)===Qt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Qt?(this.consumeCodePoint(),{type:19,value:ye}):{type:20,value:ye}},xr.prototype.consumeUrlToken=function(){var ye=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===qr)return{type:22,value:""};var De=this.peekCodePoint(0);if(De===Rt||De===pt){var We=this.consumeStringToken(this.consumeCodePoint());return We.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===qr||this.peekCodePoint(0)===jr)?(this.consumeCodePoint(),{type:22,value:We.value}):(this.consumeBadUrlRemnants(),aa)}for(;;){var ut=this.consumeCodePoint();if(ut===qr||ut===jr)return{type:22,value:t.apply(void 0,ye)};if(ui(ut))return this.consumeWhiteSpace(),this.peekCodePoint(0)===qr||this.peekCodePoint(0)===jr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,ye)}):(this.consumeBadUrlRemnants(),aa);if(ut===pt||ut===Rt||ut===Qt||Tn(ut))return this.consumeBadUrlRemnants(),aa;if(ut===vn)if(zn(ut,this.peekCodePoint(0)))ye.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),aa;else ye.push(ut)}},xr.prototype.consumeWhiteSpace=function(){for(;ui(this.peekCodePoint(0));)this.consumeCodePoint()},xr.prototype.consumeBadUrlRemnants=function(){for(;;){var ye=this.consumeCodePoint();if(ye===jr||ye===qr)return;zn(ye,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},xr.prototype.consumeStringSlice=function(ye){for(var De=5e4,We="";ye>0;){var ut=Math.min(De,ye);We+=t.apply(void 0,this._value.splice(0,ut)),ye-=ut}return this._value.shift(),We},xr.prototype.consumeStringToken=function(ye){var De="",We=0;do{var ut=this._value[We];if(ut===qr||ut===void 0||ut===ye)return De+=this.consumeStringSlice(We),{type:0,value:De};if(ut===Mr)return this._value.splice(0,We),Ir;if(ut===vn){var dr=this._value[We+1];dr!==qr&&dr!==void 0&&(dr===Mr?(De+=this.consumeStringSlice(We),We=-1,this._value.shift()):zn(ut,dr)&&(De+=this.consumeStringSlice(We),De+=t(this.consumeEscapedCodePoint()),We=-1))}We++}while(!0)},xr.prototype.consumeNumber=function(){var ye=[],De=St,We=this.peekCodePoint(0);for((We===wt||We===Lr)&&ye.push(this.consumeCodePoint());Ot(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0);var ut=this.peekCodePoint(1);if(We===Qr&&Ot(ut))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),De=Vt;Ot(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());We=this.peekCodePoint(0),ut=this.peekCodePoint(1);var dr=this.peekCodePoint(2);if((We===Et||We===Zi)&&((ut===wt||ut===Lr)&&Ot(dr)||Ot(ut)))for(ye.push(this.consumeCodePoint(),this.consumeCodePoint()),De=Vt;Ot(this.peekCodePoint(0));)ye.push(this.consumeCodePoint());return[xi(ye),De]},xr.prototype.consumeNumericToken=function(){var ye=this.consumeNumber(),De=ye[0],We=ye[1],ut=this.peekCodePoint(0),dr=this.peekCodePoint(1),nn=this.peekCodePoint(2);if(Qn(ut,dr,nn)){var Sn=this.consumeName();return{type:15,number:De,flags:We,unit:Sn}}return ut===qt?(this.consumeCodePoint(),{type:16,number:De,flags:We}):{type:17,number:De,flags:We}},xr.prototype.consumeEscapedCodePoint=function(){var ye=this.consumeCodePoint();if(fr(ye)){for(var De=t(ye);fr(this.peekCodePoint(0))&&De.length<6;)De+=t(this.consumeCodePoint());ui(this.peekCodePoint(0))&&this.consumeCodePoint();var We=parseInt(De,16);return We===0||sr(We)||We>1114111?$e:We}return ye===qr?$e:ye},xr.prototype.consumeName=function(){for(var ye="";;){var De=this.consumeCodePoint();if(Br(De))ye+=t(De);else if(zn(De,this.peekCodePoint(0)))ye+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(De),ye}},xr}(),Or=function(){function xr(ye){this._tokens=ye}return xr.create=function(ye){var De=new _r;return De.write(ye),new xr(De.read())},xr.parseValue=function(ye){return xr.create(ye).parseComponentValue()},xr.parseValues=function(ye){return xr.create(ye).parseComponentValues()},xr.prototype.parseComponentValue=function(){for(var ye=this.consumeToken();ye.type===31;)ye=this.consumeToken();if(ye.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ye);var De=this.consumeComponentValue();do ye=this.consumeToken();while(ye.type===31);if(ye.type===32)return De;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},xr.prototype.parseComponentValues=function(){for(var ye=[];;){var De=this.consumeComponentValue();if(De.type===32)return ye;ye.push(De),ye.push()}},xr.prototype.consumeComponentValue=function(){var ye=this.consumeToken();switch(ye.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ye.type);case 19:return this.consumeFunction(ye)}return ye},xr.prototype.consumeSimpleBlock=function(ye){for(var De={type:ye,values:[]},We=this.consumeToken();;){if(We.type===32||yi(We,ye))return De;this.reconsumeToken(We),De.values.push(this.consumeComponentValue()),We=this.consumeToken()}},xr.prototype.consumeFunction=function(ye){for(var De={name:ye.value,values:[],type:18};;){var We=this.consumeToken();if(We.type===32||We.type===3)return De;this.reconsumeToken(We),De.values.push(this.consumeComponentValue())}},xr.prototype.consumeToken=function(){var ye=this._tokens.shift();return typeof ye=="undefined"?xt:ye},xr.prototype.reconsumeToken=function(ye){this._tokens.unshift(ye)},xr}(),en=function(ye){return ye.type===15},wn=function(ye){return ye.type===17},_n=function(ye){return ye.type===20},yn=function(ye){return ye.type===0},Jn=function(ye,De){return _n(ye)&&ye.value===De},Un=function(ye){return ye.type!==31},pi=function(ye){return ye.type!==31&&ye.type!==4},ki=function(ye){var De=[],We=[];return ye.forEach(function(ut){if(ut.type===4){if(We.length===0)throw new Error("Error parsing function args, zero tokens for arg");De.push(We),We=[];return}ut.type!==31&&We.push(ut)}),We.length&&De.push(We),De},yi=function(ye,De){return De===11&&ye.type===12||De===28&&ye.type===29?!0:De===2&&ye.type===3},_i=function(ye){return ye.type===17||ye.type===15},Ki=function(ye){return ye.type===16||_i(ye)},qi=function(ye){return ye.length>1?[ye[0],ye[1]]:[ye[0]]},zi={type:17,number:0,flags:St},Hi={type:16,number:50,flags:St},Ui={type:16,number:100,flags:St},Qi=function(ye,De,We){var ut=ye[0],dr=ye[1];return[ca(ut,De),ca(typeof dr!="undefined"?dr:ut,We)]},ca=function(ye,De){if(ye.type===16)return ye.number/100*De;if(en(ye))switch(ye.unit){case"rem":case"em":return 16*ye.number;case"px":default:return ye.number}return ye.number},Ca="deg",ra="grad",Ma="rad",La="turn",va={name:"angle",parse:function(ye,De){if(De.type===15)switch(De.unit){case Ca:return Math.PI*De.number/180;case ra:return Math.PI/200*De.number;case Ma:return De.number;case La:return Math.PI*2*De.number}throw new Error("Unsupported angle type")}},ga=function(ye){return ye.type===15&&(ye.unit===Ca||ye.unit===ra||ye.unit===Ma||ye.unit===La)},Oa=function(ye){var De=ye.filter(_n).map(function(We){return We.value}).join(" ");switch(De){case"to bottom right":case"to right bottom":case"left top":case"top left":return[zi,zi];case"to top":case"bottom":return Aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[zi,Ui];case"to right":case"left":return Aa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ui,Ui];case"to bottom":case"top":return Aa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ui,zi];case"to left":case"right":return Aa(270)}return 0},Aa=function(ye){return Math.PI*ye/180},Ga={name:"color",parse:function(ye,De){if(De.type===18){var We=To[De.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported color function "'+De.name+'"');return We(ye,De.values)}if(De.type===5){if(De.value.length===3){var ut=De.value.substring(0,1),dr=De.value.substring(1,2),nn=De.value.substring(2,3);return Bi(parseInt(ut+ut,16),parseInt(dr+dr,16),parseInt(nn+nn,16),1)}if(De.value.length===4){var ut=De.value.substring(0,1),dr=De.value.substring(1,2),nn=De.value.substring(2,3),Sn=De.value.substring(3,4);return Bi(parseInt(ut+ut,16),parseInt(dr+dr,16),parseInt(nn+nn,16),parseInt(Sn+Sn,16)/255)}if(De.value.length===6){var ut=De.value.substring(0,2),dr=De.value.substring(2,4),nn=De.value.substring(4,6);return Bi(parseInt(ut,16),parseInt(dr,16),parseInt(nn,16),1)}if(De.value.length===8){var ut=De.value.substring(0,2),dr=De.value.substring(2,4),nn=De.value.substring(4,6),Sn=De.value.substring(6,8);return Bi(parseInt(ut,16),parseInt(dr,16),parseInt(nn,16),parseInt(Sn,16)/255)}}if(De.type===20){var Pn=So[De.value.toUpperCase()];if(typeof Pn!="undefined")return Pn}return So.TRANSPARENT}},_a=function(ye){return(255&ye)===0},Va=function(ye){var De=255&ye,We=255&ye>>8,ut=255&ye>>16,dr=255&ye>>24;return De<255?"rgba("+dr+","+ut+","+We+","+De/255+")":"rgb("+dr+","+ut+","+We+")"},Bi=function(ye,De,We,ut){return(ye<<24|De<<16|We<<8|Math.round(ut*255)<<0)>>>0},io=function(ye,De){if(ye.type===17)return ye.number;if(ye.type===16){var We=De===3?1:255;return De===3?ye.number/100*We:Math.round(ye.number/100*We)}return 0},oo=function(ye,De){var We=De.filter(pi);if(We.length===3){var ut=We.map(io),dr=ut[0],nn=ut[1],Sn=ut[2];return Bi(dr,nn,Sn,1)}if(We.length===4){var Pn=We.map(io),dr=Pn[0],nn=Pn[1],Sn=Pn[2],ni=Pn[3];return Bi(dr,nn,Sn,ni)}return 0};function Qo(xr,ye,De){return De<0&&(De+=1),De>=1&&(De-=1),De<1/6?(ye-xr)*De*6+xr:De<1/2?ye:De<2/3?(ye-xr)*6*(2/3-De)+xr:xr}var mo=function(ye,De){var We=De.filter(pi),ut=We[0],dr=We[1],nn=We[2],Sn=We[3],Pn=(ut.type===17?Aa(ut.number):va.parse(ye,ut))/(Math.PI*2),ni=Ki(dr)?dr.number/100:0,Vi=Ki(nn)?nn.number/100:0,Pi=typeof Sn!="undefined"&&Ki(Sn)?ca(Sn,1):1;if(ni===0)return Bi(Vi*255,Vi*255,Vi*255,1);var $i=Vi<=.5?Vi*(ni+1):Vi+ni-Vi*ni,Za=Vi*2-$i,eo=Qo(Za,$i,Pn+1/3),po=Qo(Za,$i,Pn),us=Qo(Za,$i,Pn-1/3);return Bi(eo*255,po*255,us*255,Pi)},To={hsl:mo,hsla:mo,rgb:oo,rgba:oo},ao=function(ye,De){return Ga.parse(ye,Or.create(De).parseComponentValue())},So={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},bo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,De){return De.map(function(We){if(_n(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},to={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jo=function(ye,De){var We=Ga.parse(ye,De[0]),ut=De[1];return ut&&Ki(ut)?{color:We,stop:ut}:{color:We,stop:null}},Uo=function(ye,De){var We=ye[0],ut=ye[ye.length-1];We.stop===null&&(We.stop=zi),ut.stop===null&&(ut.stop=Ui);for(var dr=[],nn=0,Sn=0;Sn<ye.length;Sn++){var Pn=ye[Sn].stop;if(Pn!==null){var ni=ca(Pn,De);ni>nn?dr.push(ni):dr.push(nn),nn=ni}else dr.push(null)}for(var Vi=null,Sn=0;Sn<dr.length;Sn++){var Pi=dr[Sn];if(Pi===null)Vi===null&&(Vi=Sn);else if(Vi!==null){for(var $i=Sn-Vi,Za=dr[Vi-1],eo=(Pi-Za)/($i+1),po=1;po<=$i;po++)dr[Vi+po-1]=eo*po;Vi=null}}return ye.map(function(us,Yo){var Po=us.color;return{color:Po,stop:Math.max(Math.min(1,dr[Yo]/De),0)}})},wo=function(ye,De,We){var ut=De/2,dr=We/2,nn=ca(ye[0],De)-ut,Sn=dr-ca(ye[1],We);return(Math.atan2(Sn,nn)+Math.PI*2)%(Math.PI*2)},ts=function(ye,De,We){var ut=typeof ye=="number"?ye:wo(ye,De,We),dr=Math.abs(De*Math.sin(ut))+Math.abs(We*Math.cos(ut)),nn=De/2,Sn=We/2,Pn=dr/2,ni=Math.sin(ut-Math.PI/2)*Pn,Vi=Math.cos(ut-Math.PI/2)*Pn;return[dr,nn-Vi,nn+Vi,Sn-ni,Sn+ni]},Ia=function(ye,De){return Math.sqrt(ye*ye+De*De)},Oo=function(ye,De,We,ut,dr){var nn=[[0,0],[0,De],[ye,0],[ye,De]];return nn.reduce(function(Sn,Pn){var ni=Pn[0],Vi=Pn[1],Pi=Ia(We-ni,ut-Vi);return(dr?Pi<Sn.optimumDistance:Pi>Sn.optimumDistance)?{optimumCorner:Pn,optimumDistance:Pi}:Sn},{optimumDistance:dr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Io=function(ye,De,We,ut,dr){var nn=0,Sn=0;switch(ye.size){case 0:ye.shape===0?nn=Sn=Math.min(Math.abs(De),Math.abs(De-ut),Math.abs(We),Math.abs(We-dr)):ye.shape===1&&(nn=Math.min(Math.abs(De),Math.abs(De-ut)),Sn=Math.min(Math.abs(We),Math.abs(We-dr)));break;case 2:if(ye.shape===0)nn=Sn=Math.min(Ia(De,We),Ia(De,We-dr),Ia(De-ut,We),Ia(De-ut,We-dr));else if(ye.shape===1){var Pn=Math.min(Math.abs(We),Math.abs(We-dr))/Math.min(Math.abs(De),Math.abs(De-ut)),ni=Oo(ut,dr,De,We,!0),Vi=ni[0],Pi=ni[1];nn=Ia(Vi-De,(Pi-We)/Pn),Sn=Pn*nn}break;case 1:ye.shape===0?nn=Sn=Math.max(Math.abs(De),Math.abs(De-ut),Math.abs(We),Math.abs(We-dr)):ye.shape===1&&(nn=Math.max(Math.abs(De),Math.abs(De-ut)),Sn=Math.max(Math.abs(We),Math.abs(We-dr)));break;case 3:if(ye.shape===0)nn=Sn=Math.max(Ia(De,We),Ia(De,We-dr),Ia(De-ut,We),Ia(De-ut,We-dr));else if(ye.shape===1){var Pn=Math.max(Math.abs(We),Math.abs(We-dr))/Math.max(Math.abs(De),Math.abs(De-ut)),$i=Oo(ut,dr,De,We,!1),Vi=$i[0],Pi=$i[1];nn=Ia(Vi-De,(Pi-We)/Pn),Sn=Pn*nn}break}return Array.isArray(ye.size)&&(nn=ca(ye.size[0],ut),Sn=ye.size.length===2?ca(ye.size[1],dr):nn),[nn,Sn]},os=function(ye,De){var We=Aa(180),ut=[];return ki(De).forEach(function(dr,nn){if(nn===0){var Sn=dr[0];if(Sn.type===20&&Sn.value==="to"){We=Oa(dr);return}else if(ga(Sn)){We=va.parse(ye,Sn);return}}var Pn=Jo(ye,dr);ut.push(Pn)}),{angle:We,stops:ut,type:1}},xo=function(ye,De){var We=Aa(180),ut=[];return ki(De).forEach(function(dr,nn){if(nn===0){var Sn=dr[0];if(Sn.type===20&&["top","left","right","bottom"].indexOf(Sn.value)!==-1){We=Oa(dr);return}else if(ga(Sn)){We=(va.parse(ye,Sn)+Aa(270))%Aa(360);return}}var Pn=Jo(ye,dr);ut.push(Pn)}),{angle:We,stops:ut,type:1}},rs=function(ye,De){var We=Aa(180),ut=[],dr=1,nn=0,Sn=3,Pn=[];return ki(De).forEach(function(ni,Vi){var Pi=ni[0];if(Vi===0){if(_n(Pi)&&Pi.value==="linear"){dr=1;return}else if(_n(Pi)&&Pi.value==="radial"){dr=2;return}}if(Pi.type===18){if(Pi.name==="from"){var $i=Ga.parse(ye,Pi.values[0]);ut.push({stop:zi,color:$i})}else if(Pi.name==="to"){var $i=Ga.parse(ye,Pi.values[0]);ut.push({stop:Ui,color:$i})}else if(Pi.name==="color-stop"){var Za=Pi.values.filter(pi);if(Za.length===2){var $i=Ga.parse(ye,Za[1]),eo=Za[0];wn(eo)&&ut.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:$i})}}}}),dr===1?{angle:(We+Aa(180))%Aa(360),stops:ut,type:dr}:{size:Sn,shape:nn,stops:ut,position:Pn,type:dr}},Ho="closest-side",_o="farthest-side",uo="closest-corner",Ha="farthest-corner",ht="circle",Er="ellipse",Zr="cover",Xr="contain",Xn=function(ye,De){var We=0,ut=3,dr=[],nn=[];return ki(De).forEach(function(Sn,Pn){var ni=!0;if(Pn===0){var Vi=!1;ni=Sn.reduce(function($i,Za){if(Vi)if(_n(Za))switch(Za.value){case"center":return nn.push(Hi),$i;case"top":case"left":return nn.push(zi),$i;case"right":case"bottom":return nn.push(Ui),$i}else(Ki(Za)||_i(Za))&&nn.push(Za);else if(_n(Za))switch(Za.value){case ht:return We=0,!1;case Er:return We=1,!1;case"at":return Vi=!0,!1;case Ho:return ut=0,!1;case Zr:case _o:return ut=1,!1;case Xr:case uo:return ut=2,!1;case Ha:return ut=3,!1}else if(_i(Za)||Ki(Za))return Array.isArray(ut)||(ut=[]),ut.push(Za),!1;return $i},ni)}if(ni){var Pi=Jo(ye,Sn);dr.push(Pi)}}),{size:ut,shape:We,stops:dr,position:nn,type:2}},un=function(ye,De){var We=0,ut=3,dr=[],nn=[];return ki(De).forEach(function(Sn,Pn){var ni=!0;if(Pn===0?ni=Sn.reduce(function(Pi,$i){if(_n($i))switch($i.value){case"center":return nn.push(Hi),!1;case"top":case"left":return nn.push(zi),!1;case"right":case"bottom":return nn.push(Ui),!1}else if(Ki($i)||_i($i))return nn.push($i),!1;return Pi},ni):Pn===1&&(ni=Sn.reduce(function(Pi,$i){if(_n($i))switch($i.value){case ht:return We=0,!1;case Er:return We=1,!1;case Xr:case Ho:return ut=0,!1;case _o:return ut=1,!1;case uo:return ut=2,!1;case Zr:case Ha:return ut=3,!1}else if(_i($i)||Ki($i))return Array.isArray(ut)||(ut=[]),ut.push($i),!1;return Pi},ni)),ni){var Vi=Jo(ye,Sn);dr.push(Vi)}}),{size:ut,shape:We,stops:dr,position:nn,type:2}},Gr=function(ye){return ye.type===1},ri=function(ye){return ye.type===2},rn={name:"image",parse:function(ye,De){if(De.type===22){var We={url:De.value,type:0};return ye.cache.addImage(De.value),We}if(De.type===18){var ut=oi[De.name];if(typeof ut=="undefined")throw new Error('Attempting to parse an unsupported image function "'+De.name+'"');return ut(ye,De.values)}throw new Error("Unsupported image type "+De.type)}};function jn(xr){return!(xr.type===20&&xr.value==="none")&&(xr.type!==18||!!oi[xr.name])}var oi={"linear-gradient":os,"-moz-linear-gradient":xo,"-ms-linear-gradient":xo,"-o-linear-gradient":xo,"-webkit-linear-gradient":xo,"radial-gradient":Xn,"-moz-radial-gradient":un,"-ms-radial-gradient":un,"-o-radial-gradient":un,"-webkit-radial-gradient":un,"-webkit-gradient":rs},li={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){if(De.length===0)return[];var We=De[0];return We.type===20&&We.value==="none"?[]:De.filter(function(ut){return pi(ut)&&jn(ut)}).map(function(ut){return rn.parse(ye,ut)})}},ai={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ye,De){return De.map(function(We){if(_n(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ei={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ye,De){return ki(De).map(function(We){return We.filter(Ki)}).map(qi)}},mi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ye,De){return ki(De).map(function(We){return We.filter(_n).map(function(ut){return ut.value}).join(" ")}).map(Ai)}},Ai=function(ye){switch(ye){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}},Ii;(function(xr){xr.AUTO="auto",xr.CONTAIN="contain",xr.COVER="cover"})(Ii||(Ii={}));var na={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ye,De){return ki(De).map(function(We){return We.filter(ji)})}},ji=function(ye){return _n(ye)||Ki(ye)},fa=function(ye){return{name:"border-"+ye+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Xa=fa("top"),xa=fa("right"),wa=fa("bottom"),Da=fa("left"),ja=function(ye){return{name:"border-radius-"+ye,initialValue:"0 0",prefix:!1,type:1,parse:function(We,ut){return qi(ut.filter(Ki))}}},ko=ja("top-left"),ro=ja("top-right"),pa=ja("bottom-right"),Ea=ja("bottom-left"),Fa=function(ye){return{name:"border-"+ye+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(We,ut){switch(ut){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ka=Fa("top"),lo=Fa("right"),so=Fa("bottom"),Co=Fa("left"),Lo=function(ye){return{name:"border-"+ye+"-width",initialValue:"0",type:0,prefix:!1,parse:function(We,ut){return en(ut)?ut.number:0}}},is=Lo("top"),cs=Lo("right"),Rs=Lo("bottom"),Ko=Lo("left"),as={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},co={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ye,De){switch(De){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ye,De){return De.filter(_n).reduce(function(We,ut){return We|$a(ut.value)},0)}},$a=function(ye){switch(ye){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ss={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Cs={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ye,De){return De.type===20&&De.value==="normal"?0:De.type===17||De.type===15?De.number:0}},Fo;(function(xr){xr.NORMAL="normal",xr.STRICT="strict"})(Fo||(Fo={}));var il={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},Eo={name:"line-height",initialValue:"normal",prefix:!1,type:4},zo=function(ye,De){return _n(ye)&&ye.value==="normal"?1.2*De:ye.type===17?De*ye.number:Ki(ye)?ca(ye,De):De},Bs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ye,De){return De.type===20&&De.value==="none"?null:rn.parse(ye,De)}},ms={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ye,De){switch(De){case"inside":return 0;case"outside":default:return 1}}},hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},An=function(ye){return{name:"margin-"+ye,initialValue:"0",prefix:!1,type:4}},Ns=An("top"),Ll=An("right"),el=An("bottom"),Gs=An("left"),ds={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ye,De){return De.filter(_n).map(function(We){switch(We.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ks={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"break-word":return"break-word";case"normal":default:return"normal"}}},Qs=function(ye){return{name:"padding-"+ye,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tl=Qs("top"),xs=Qs("right"),Us=Qs("bottom"),al=Qs("left"),Js={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ye,De){switch(De){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Vo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ye,De){switch(De){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},No={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){return De.length===1&&Jn(De[0],"none")?[]:ki(De).map(function(We){for(var ut={color:So.TRANSPARENT,offsetX:zi,offsetY:zi,blur:zi},dr=0,nn=0;nn<We.length;nn++){var Sn=We[nn];_i(Sn)?(dr===0?ut.offsetX=Sn:dr===1?ut.offsetY=Sn:ut.blur=Sn,dr++):ut.color=Ga.parse(ye,Sn)}return ut})}},fs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ds={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ye,De){if(De.type===20&&De.value==="none")return null;if(De.type===18){var We=nr[De.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+De.name+'"');return We(De.values)}return null}},go=function(ye){var De=ye.filter(function(We){return We.type===17}).map(function(We){return We.number});return De.length===6?De:null},Ft=function(ye){var De=ye.filter(function(ni){return ni.type===17}).map(function(ni){return ni.number}),We=De[0],ut=De[1];De[2],De[3];var dr=De[4],nn=De[5];De[6],De[7],De[8],De[9],De[10],De[11];var Sn=De[12],Pn=De[13];return De[14],De[15],De.length===16?[We,ut,dr,nn,Sn,Pn]:null},nr={matrix:go,matrix3d:Ft},On={type:16,number:50,flags:St},di=[On,On],It={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ye,De){var We=De.filter(Ki);return We.length!==2?di:[We[0],We[1]]}},ce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ye,De){switch(De){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Se;(function(xr){xr.NORMAL="normal",xr.BREAK_ALL="break-all",xr.KEEP_ALL="keep-all"})(Se||(Se={}));for(var Le={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"break-all":return Se.BREAK_ALL;case"keep-all":return Se.KEEP_ALL;case"normal":default:return Se.NORMAL}}},Qe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ye,De){if(De.type===20)return{auto:!0,order:0};if(wn(De))return{auto:!1,order:De.number};throw new Error("Invalid z-index number parsed")}},Lt={name:"time",parse:function(ye,De){if(De.type===15)switch(De.unit.toLowerCase()){case"s":return 1e3*De.number;case"ms":return De.number}throw new Error("Unsupported time type")}},ir={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ye,De){return wn(De)?De.number:1}},Yr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ye,De){return De.filter(_n).map(function(We){switch(We.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(We){return We!==0})}},In={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ye,De){var We=[],ut=[];return De.forEach(function(dr){switch(dr.type){case 20:case 0:We.push(dr.value);break;case 17:We.push(dr.number.toString());break;case 4:ut.push(We.join(" ")),We.length=0;break}}),We.length&&ut.push(We.join(" ")),ut.map(function(dr){return dr.indexOf(" ")===-1?dr:"'"+dr+"'"})}},si={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},wi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ye,De){if(wn(De))return De.number;if(_n(De))switch(De.value){case"bold":return 700;case"normal":default:return 400}return 400}},gi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){return De.filter(_n).map(function(We){return We.value})}},Gi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ye,De){switch(De){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(ye,De){return(ye&De)!==0},Ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){if(De.length===0)return[];var We=De[0];return We.type===20&&We.value==="none"?[]:De}},no={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ye,De){if(De.length===0)return null;var We=De[0];if(We.type===20&&We.value==="none")return null;for(var ut=[],dr=De.filter(Un),nn=0;nn<dr.length;nn++){var Sn=dr[nn],Pn=dr[nn+1];if(Sn.type===20){var ni=Pn&&wn(Pn)?Pn.number:1;ut.push({counter:Sn.value,increment:ni})}}return ut}},Wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ye,De){if(De.length===0)return[];for(var We=[],ut=De.filter(Un),dr=0;dr<ut.length;dr++){var nn=ut[dr],Sn=ut[dr+1];if(_n(nn)&&nn.value!=="none"){var Pn=Sn&&wn(Sn)?Sn.number:0;We.push({counter:nn.value,reset:Pn})}}return We}},Zo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ye,De){return De.filter(en).map(function(We){return Lt.parse(ye,We)})}},Bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ye,De){if(De.length===0)return null;var We=De[0];if(We.type===20&&We.value==="none")return null;var ut=[],dr=De.filter(yn);if(dr.length%2!==0)return null;for(var nn=0;nn<dr.length;nn+=2){var Sn=dr[nn].value,Pn=dr[nn+1].value;ut.push({open:Sn,close:Pn})}return ut}},Es=function(ye,De,We){if(!ye)return"";var ut=ye[Math.min(De,ye.length-1)];return ut?We?ut.open:ut.close:""},As={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ye,De){return De.length===1&&Jn(De[0],"none")?[]:ki(De).map(function(We){for(var ut={color:255,offsetX:zi,offsetY:zi,blur:zi,spread:zi,inset:!1},dr=0,nn=0;nn<We.length;nn++){var Sn=We[nn];Jn(Sn,"inset")?ut.inset=!0:_i(Sn)?(dr===0?ut.offsetX=Sn:dr===1?ut.offsetY=Sn:dr===2?ut.blur=Sn:ut.spread=Sn,dr++):ut.color=Ga.parse(ye,Sn)}return ut})}},$o={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ye,De){var We=[0,1,2],ut=[];return De.filter(_n).forEach(function(dr){switch(dr.value){case"stroke":ut.push(1);break;case"fill":ut.push(0);break;case"markers":ut.push(2);break}}),We.forEach(function(dr){ut.indexOf(dr)===-1&&ut.push(dr)}),ut}},Do={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ye,De){return en(De)?De.number:0}},Ms=function(){function xr(ye,De){var We,ut;this.animationDuration=Ra(ye,Zo,De.animationDuration),this.backgroundClip=Ra(ye,bo,De.backgroundClip),this.backgroundColor=Ra(ye,to,De.backgroundColor),this.backgroundImage=Ra(ye,li,De.backgroundImage),this.backgroundOrigin=Ra(ye,ai,De.backgroundOrigin),this.backgroundPosition=Ra(ye,Ei,De.backgroundPosition),this.backgroundRepeat=Ra(ye,mi,De.backgroundRepeat),this.backgroundSize=Ra(ye,na,De.backgroundSize),this.borderTopColor=Ra(ye,Xa,De.borderTopColor),this.borderRightColor=Ra(ye,xa,De.borderRightColor),this.borderBottomColor=Ra(ye,wa,De.borderBottomColor),this.borderLeftColor=Ra(ye,Da,De.borderLeftColor),this.borderTopLeftRadius=Ra(ye,ko,De.borderTopLeftRadius),this.borderTopRightRadius=Ra(ye,ro,De.borderTopRightRadius),this.borderBottomRightRadius=Ra(ye,pa,De.borderBottomRightRadius),this.borderBottomLeftRadius=Ra(ye,Ea,De.borderBottomLeftRadius),this.borderTopStyle=Ra(ye,Ka,De.borderTopStyle),this.borderRightStyle=Ra(ye,lo,De.borderRightStyle),this.borderBottomStyle=Ra(ye,so,De.borderBottomStyle),this.borderLeftStyle=Ra(ye,Co,De.borderLeftStyle),this.borderTopWidth=Ra(ye,is,De.borderTopWidth),this.borderRightWidth=Ra(ye,cs,De.borderRightWidth),this.borderBottomWidth=Ra(ye,Rs,De.borderBottomWidth),this.borderLeftWidth=Ra(ye,Ko,De.borderLeftWidth),this.boxShadow=Ra(ye,As,De.boxShadow),this.color=Ra(ye,as,De.color),this.direction=Ra(ye,co,De.direction),this.display=Ra(ye,Ao,De.display),this.float=Ra(ye,ss,De.cssFloat),this.fontFamily=Ra(ye,In,De.fontFamily),this.fontSize=Ra(ye,si,De.fontSize),this.fontStyle=Ra(ye,Gi,De.fontStyle),this.fontVariant=Ra(ye,gi,De.fontVariant),this.fontWeight=Ra(ye,wi,De.fontWeight),this.letterSpacing=Ra(ye,Cs,De.letterSpacing),this.lineBreak=Ra(ye,il,De.lineBreak),this.lineHeight=Ra(ye,Eo,De.lineHeight),this.listStyleImage=Ra(ye,Bs,De.listStyleImage),this.listStylePosition=Ra(ye,ms,De.listStylePosition),this.listStyleType=Ra(ye,hs,De.listStyleType),this.marginTop=Ra(ye,Ns,De.marginTop),this.marginRight=Ra(ye,Ll,De.marginRight),this.marginBottom=Ra(ye,el,De.marginBottom),this.marginLeft=Ra(ye,Gs,De.marginLeft),this.opacity=Ra(ye,ir,De.opacity);var dr=Ra(ye,ds,De.overflow);this.overflowX=dr[0],this.overflowY=dr[dr.length>1?1:0],this.overflowWrap=Ra(ye,ks,De.overflowWrap),this.paddingTop=Ra(ye,tl,De.paddingTop),this.paddingRight=Ra(ye,xs,De.paddingRight),this.paddingBottom=Ra(ye,Us,De.paddingBottom),this.paddingLeft=Ra(ye,al,De.paddingLeft),this.paintOrder=Ra(ye,$o,De.paintOrder),this.position=Ra(ye,Vo,De.position),this.textAlign=Ra(ye,Js,De.textAlign),this.textDecorationColor=Ra(ye,Yr,(We=De.textDecorationColor)!==null&&We!==void 0?We:De.color),this.textDecorationLine=Ra(ye,hn,(ut=De.textDecorationLine)!==null&&ut!==void 0?ut:De.textDecoration),this.textShadow=Ra(ye,No,De.textShadow),this.textTransform=Ra(ye,fs,De.textTransform),this.transform=Ra(ye,Ds,De.transform),this.transformOrigin=Ra(ye,It,De.transformOrigin),this.visibility=Ra(ye,ce,De.visibility),this.webkitTextStrokeColor=Ra(ye,Do,De.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ra(ye,vo,De.webkitTextStrokeWidth),this.wordBreak=Ra(ye,Le,De.wordBreak),this.zIndex=Ra(ye,Qe,De.zIndex)}return xr.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},xr.prototype.isTransparent=function(){return _a(this.backgroundColor)},xr.prototype.isTransformed=function(){return this.transform!==null},xr.prototype.isPositioned=function(){return this.position!==0},xr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},xr.prototype.isFloating=function(){return this.float!==0},xr.prototype.isInlineLevel=function(){return sa(this.display,4)||sa(this.display,33554432)||sa(this.display,268435456)||sa(this.display,536870912)||sa(this.display,67108864)||sa(this.display,134217728)},xr}(),rl=function(){function xr(ye,De){this.content=Ra(ye,Ua,De.content),this.quotes=Ra(ye,Bo,De.quotes)}return xr}(),gs=function(){function xr(ye,De){this.counterIncrement=Ra(ye,no,De.counterIncrement),this.counterReset=Ra(ye,Wo,De.counterReset)}return xr}(),Ra=function(ye,De,We){var ut=new _r,dr=We!==null&&typeof We!="undefined"?We.toString():De.initialValue;ut.write(dr);var nn=new Or(ut.read());switch(De.type){case 2:var Sn=nn.parseComponentValue();return De.parse(ye,_n(Sn)?Sn.value:De.initialValue);case 0:return De.parse(ye,nn.parseComponentValue());case 1:return De.parse(ye,nn.parseComponentValues());case 4:return nn.parseComponentValue();case 3:switch(De.format){case"angle":return va.parse(ye,nn.parseComponentValue());case"color":return Ga.parse(ye,nn.parseComponentValue());case"image":return rn.parse(ye,nn.parseComponentValue());case"length":var Pn=nn.parseComponentValue();return _i(Pn)?Pn:zi;case"length-percentage":var ni=nn.parseComponentValue();return Ki(ni)?ni:zi;case"time":return Lt.parse(ye,nn.parseComponentValue())}break}},dl="data-html2canvas-debug",fl=function(ye){var De=ye.getAttribute(dl);switch(De){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},js=function(ye,De){var We=fl(ye);return We===1||De===We},_s=function(){function xr(ye,De){if(this.context=ye,this.textNodes=[],this.elements=[],this.flags=0,js(De,3))debugger;this.styles=new Ms(ye,window.getComputedStyle(De,null)),Fs(De)&&(this.styles.animationDuration.some(function(We){return We>0})&&(De.style.animationDuration="0s"),this.styles.transform!==null&&(De.style.transform="none")),this.bounds=u(this.context,De),js(De,4)&&(this.flags|=16)}return xr}(),Xs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),wl=0;wl<Ql.length;wl++)Ul[Ql.charCodeAt(wl)]=wl;for(var Ts=function(ye){var De=ye.length*.75,We=ye.length,ut,dr=0,nn,Sn,Pn,ni;ye[ye.length-1]==="="&&(De--,ye[ye.length-2]==="="&&De--);var Vi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Pi=Array.isArray(Vi)?Vi:new Uint8Array(Vi);for(ut=0;ut<We;ut+=4)nn=Ul[ye.charCodeAt(ut)],Sn=Ul[ye.charCodeAt(ut+1)],Pn=Ul[ye.charCodeAt(ut+2)],ni=Ul[ye.charCodeAt(ut+3)],Pi[dr++]=nn<<2|Sn>>4,Pi[dr++]=(Sn&15)<<4|Pn>>2,Pi[dr++]=(Pn&3)<<6|ni&63;return Vi},Ks=function(ye){for(var De=ye.length,We=[],ut=0;ut<De;ut+=2)We.push(ye[ut+1]<<8|ye[ut]);return We},Tl=function(ye){for(var De=ye.length,We=[],ut=0;ut<De;ut+=4)We.push(ye[ut+3]<<24|ye[ut+2]<<16|ye[ut+1]<<8|ye[ut]);return We},pl=5,jo=6+5,yo=2,qo=jo-pl,ps=65536>>pl,Os=1<<pl,es=Os-1,Is=1024>>pl,Ps=ps+Is,ml=Ps,Rl=2048>>6,_l=ml+Rl,Bl=65536>>jo,jl=1<<qo,kl=jl-1,Xl=function(ye,De,We){return ye.slice?ye.slice(De,We):new Uint16Array(Array.prototype.slice.call(ye,De,We))},ol=function(ye,De,We){return ye.slice?ye.slice(De,We):new Uint32Array(Array.prototype.slice.call(ye,De,We))},Ys=function(ye,De){var We=Ts(ye),ut=Array.isArray(We)?Tl(We):new Uint32Array(We),dr=Array.isArray(We)?Ks(We):new Uint16Array(We),nn=24,Sn=Xl(dr,nn/2,ut[4]/2),Pn=ut[5]===2?Xl(dr,(nn+ut[4])/2):ol(ut,Math.ceil((nn+ut[4])/4));return new sl(ut[0],ut[1],ut[2],ut[3],Sn,Pn)},sl=function(){function xr(ye,De,We,ut,dr,nn){this.initialValue=ye,this.errorValue=De,this.highStart=We,this.highValueIndex=ut,this.index=dr,this.data=nn}return xr.prototype.get=function(ye){var De;if(ye>=0){if(ye<55296||ye>56319&&ye<=65535)return De=this.index[ye>>pl],De=(De<<yo)+(ye&es),this.data[De];if(ye<=65535)return De=this.index[ps+(ye-55296>>pl)],De=(De<<yo)+(ye&es),this.data[De];if(ye<this.highStart)return De=_l-Bl+(ye>>jo),De=this.index[De],De+=ye>>pl&kl,De=this.index[De],De=(De<<yo)+(ye&es),this.data[De];if(ye<=1114111)return this.data[this.highValueIndex]}return this.errorValue},xr}(),nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ml=0;Ml<nl.length;Ml++)xl[nl.charCodeAt(Ml)]=Ml;var Wl=1,au=2,Nl=3,$l=4,tu=5,Iu=7,pu=8,mu=9,gu=10,ql=11,Cl=12,ll=13,Hl=14,Sl=15,Su=function(ye){for(var De=[],We=0,ut=ye.length;We<ut;){var dr=ye.charCodeAt(We++);if(dr>=55296&&dr<=56319&&We<ut){var nn=ye.charCodeAt(We++);(nn&64512)===56320?De.push(((dr&1023)<<10)+(nn&1023)+65536):(De.push(dr),We--)}else De.push(dr)}return De},vu=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ye);var We=ye.length;if(!We)return"";for(var ut=[],dr=-1,nn="";++dr<We;){var Sn=ye[dr];Sn<=65535?ut.push(Sn):(Sn-=65536,ut.push((Sn>>10)+55296,Sn%1024+56320)),(dr+1===We||ut.length>16384)&&(nn+=String.fromCharCode.apply(String,ut),ut.length=0)}return nn},Au=Ys(Xs),Ol="\xD7",cu="\xF7",du=function(ye){return Au.get(ye)},Lu=function(ye,De,We){var ut=We-2,dr=De[ut],nn=De[We-1],Sn=De[We];if(nn===au&&Sn===Nl)return Ol;if(nn===au||nn===Nl||nn===$l)return cu;if(Sn===au||Sn===Nl||Sn===$l)return cu;if(nn===pu&&[pu,mu,ql,Cl].indexOf(Sn)!==-1)return Ol;if((nn===ql||nn===mu)&&(Sn===mu||Sn===gu))return Ol;if((nn===Cl||nn===gu)&&Sn===gu)return Ol;if(Sn===ll||Sn===tu)return Ol;if(Sn===Iu)return Ol;if(nn===Wl)return Ol;if(nn===ll&&Sn===Hl){for(;dr===tu;)dr=De[--ut];if(dr===Hl)return Ol}if(nn===Sl&&Sn===Sl){for(var Pn=0;dr===Sl;)Pn++,dr=De[--ut];if(Pn%2===0)return Ol}return cu},zl=function(ye){var De=Su(ye),We=De.length,ut=0,dr=0,nn=De.map(du);return{next:function(){if(ut>=We)return{done:!0,value:null};for(var Pn=Ol;ut<We&&(Pn=Lu(De,nn,++ut))===Ol;);if(Pn!==Ol||ut===We){var ni=vu.apply(null,De.slice(dr,ut));return dr=ut,{value:ni,done:!1}}return{done:!0,value:null}}}},ru=function(ye){for(var De=zl(ye),We=[],ut;!(ut=De.next()).done;)ut.value&&We.push(ut.value.slice());return We},ou=function(ye){var De=123;if(ye.createRange){var We=ye.createRange();if(We.getBoundingClientRect){var ut=ye.createElement("boundtest");ut.style.height=De+"px",ut.style.display="block",ye.body.appendChild(ut),We.selectNode(ut);var dr=We.getBoundingClientRect(),nn=Math.round(dr.height);if(ye.body.removeChild(ut),nn===De)return!0}}return!1},su=function(ye){var De=ye.createElement("boundtest");De.style.width="50px",De.style.display="block",De.style.fontSize="12px",De.style.letterSpacing="0px",De.style.wordSpacing="0px",ye.body.appendChild(De);var We=ye.createRange();De.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var ut=De.firstChild,dr=i(ut.data).map(function(ni){return t(ni)}),nn=0,Sn={},Pn=dr.every(function(ni,Vi){We.setStart(ut,nn),We.setEnd(ut,nn+ni.length);var Pi=We.getBoundingClientRect();nn+=ni.length;var $i=Pi.x>Sn.x||Pi.y>Sn.y;return Sn=Pi,Vi===0?!0:$i});return ye.body.removeChild(De),Pn},Jl=function(){return typeof new Image().crossOrigin!="undefined"},Du=function(){return typeof new XMLHttpRequest().responseType=="string"},Ru=function(ye){var De=new Image,We=ye.createElement("canvas"),ut=We.getContext("2d");if(!ut)return!1;De.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{ut.drawImage(De,0,0),We.toDataURL()}catch(dr){return!1}return!0},Zl=function(ye){return ye[0]===0&&ye[1]===255&&ye[2]===0&&ye[3]===255},yu=function(ye){var De=ye.createElement("canvas"),We=100;De.width=We,De.height=We;var ut=De.getContext("2d");if(!ut)return Promise.reject(!1);ut.fillStyle="rgb(0, 255, 0)",ut.fillRect(0,0,We,We);var dr=new Image,nn=De.toDataURL();dr.src=nn;var Sn=xu(We,We,0,0,dr);return ut.fillStyle="red",ut.fillRect(0,0,We,We),bu(Sn).then(function(Pn){ut.drawImage(Pn,0,0);var ni=ut.getImageData(0,0,We,We).data;ut.fillStyle="red",ut.fillRect(0,0,We,We);var Vi=ye.createElement("div");return Vi.style.backgroundImage="url("+nn+")",Vi.style.height=We+"px",Zl(ni)?bu(xu(We,We,0,0,Vi)):Promise.reject(!1)}).then(function(Pn){return ut.drawImage(Pn,0,0),Zl(ut.getImageData(0,0,We,We).data)}).catch(function(){return!1})},xu=function(ye,De,We,ut,dr){var nn="http://www.w3.org/2000/svg",Sn=document.createElementNS(nn,"svg"),Pn=document.createElementNS(nn,"foreignObject");return Sn.setAttributeNS(null,"width",ye.toString()),Sn.setAttributeNS(null,"height",De.toString()),Pn.setAttributeNS(null,"width","100%"),Pn.setAttributeNS(null,"height","100%"),Pn.setAttributeNS(null,"x",We.toString()),Pn.setAttributeNS(null,"y",ut.toString()),Pn.setAttributeNS(null,"externalResourcesRequired","true"),Sn.appendChild(Pn),Pn.appendChild(dr),Sn},bu=function(ye){return new Promise(function(De,We){var ut=new Image;ut.onload=function(){return De(ut)},ut.onerror=We,ut.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},hl={get SUPPORT_RANGE_BOUNDS(){var xr=ou(document);return Object.defineProperty(hl,"SUPPORT_RANGE_BOUNDS",{value:xr}),xr},get SUPPORT_WORD_BREAKING(){var xr=hl.SUPPORT_RANGE_BOUNDS&&su(document);return Object.defineProperty(hl,"SUPPORT_WORD_BREAKING",{value:xr}),xr},get SUPPORT_SVG_DRAWING(){var xr=Ru(document);return Object.defineProperty(hl,"SUPPORT_SVG_DRAWING",{value:xr}),xr},get SUPPORT_FOREIGNOBJECT_DRAWING(){var xr=typeof Array.from=="function"&&typeof window.fetch=="function"?yu(document):Promise.resolve(!1);return Object.defineProperty(hl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:xr}),xr},get SUPPORT_CORS_IMAGES(){var xr=Jl();return Object.defineProperty(hl,"SUPPORT_CORS_IMAGES",{value:xr}),xr},get SUPPORT_RESPONSE_TYPE(){var xr=Du();return Object.defineProperty(hl,"SUPPORT_RESPONSE_TYPE",{value:xr}),xr},get SUPPORT_CORS_XHR(){var xr="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hl,"SUPPORT_CORS_XHR",{value:xr}),xr},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var xr=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(hl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:xr}),xr}},Dl=function(){function xr(ye,De){this.text=ye,this.bounds=De}return xr}(),nu=function(ye,De,We,ut){var dr=ve(De,We),nn=[],Sn=0;return dr.forEach(function(Pn){if(We.textDecorationLine.length||Pn.trim().length>0)if(hl.SUPPORT_RANGE_BOUNDS){var ni=hu(ut,Sn,Pn.length).getClientRects();if(ni.length>1){var Vi=fu(Pn),Pi=0;Vi.forEach(function(Za){nn.push(new Dl(Za,h.fromDOMRectList(ye,hu(ut,Pi+Sn,Za.length).getClientRects()))),Pi+=Za.length})}else nn.push(new Dl(Pn,h.fromDOMRectList(ye,ni)))}else{var $i=ut.splitText(Pn.length);nn.push(new Dl(Pn,Nu(ye,ut))),ut=$i}else hl.SUPPORT_RANGE_BOUNDS||(ut=ut.splitText(Pn.length));Sn+=Pn.length}),nn},Nu=function(ye,De){var We=De.ownerDocument;if(We){var ut=We.createElement("html2canvaswrapper");ut.appendChild(De.cloneNode(!0));var dr=De.parentNode;if(dr){dr.replaceChild(ut,De);var nn=u(ye,ut);return ut.firstChild&&dr.replaceChild(ut.firstChild,ut),nn}}return h.EMPTY},hu=function(ye,De,We){var ut=ye.ownerDocument;if(!ut)throw new Error("Node has no owner document");var dr=ut.createRange();return dr.setStart(ye,De),dr.setEnd(ye,De+We),dr},fu=function(ye){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var De=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(De.segment(ye)).map(function(We){return We.segment})}return ru(ye)},iu=function(ye,De){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var We=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(We.segment(ye)).map(function(ut){return ut.segment})}return L(ye,De)},ve=function(ye,De){return De.letterSpacing!==0?fu(ye):iu(ye,De)},te=[32,160,4961,65792,65793,4153,4241],L=function(ye,De){for(var We=Pe(ye,{lineBreak:De.lineBreak,wordBreak:De.overflowWrap==="break-word"?"break-word":De.wordBreak}),ut=[],dr,nn=function(){if(dr.value){var Pn=dr.value.slice(),ni=i(Pn),Vi="";ni.forEach(function(Pi){te.indexOf(Pi)===-1?Vi+=t(Pi):(Vi.length&&ut.push(Vi),ut.push(t(Pi)),Vi="")}),Vi.length&&ut.push(Vi)}};!(dr=We.next()).done;)nn();return ut},K=function(){function xr(ye,De,We){this.text=H(De.data,We.textTransform),this.textBounds=nu(ye,this.text,We,De)}return xr}(),H=function(ye,De){switch(De){case 1:return ye.toLowerCase();case 3:return ye.replace(Z,ne);case 2:return ye.toUpperCase();default:return ye}},Z=/(^|\s|:|-|\(|\))([a-z])/g,ne=function(ye,De,We){return ye.length>0?De+We.toUpperCase():ye},Ae=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;return ut.src=We.currentSrc||We.src,ut.intrinsicWidth=We.naturalWidth,ut.intrinsicHeight=We.naturalHeight,ut.context.cache.addImage(ut.src),ut}return ye}(_s),Te=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;return ut.canvas=We,ut.intrinsicWidth=We.width,ut.intrinsicHeight=We.height,ut}return ye}(_s),ze=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this,dr=new XMLSerializer,nn=u(De,We);return We.setAttribute("width",nn.width+"px"),We.setAttribute("height",nn.height+"px"),ut.svg="data:image/svg+xml,"+encodeURIComponent(dr.serializeToString(We)),ut.intrinsicWidth=We.width.baseVal.value,ut.intrinsicHeight=We.height.baseVal.value,ut.context.cache.addImage(ut.svg),ut}return ye}(_s),st=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;return ut.value=We.value,ut}return ye}(_s),ct=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;return ut.start=We.start,ut.reversed=typeof We.reversed=="boolean"&&We.reversed===!0,ut}return ye}(_s),zt=[{type:15,flags:0,unit:"px",number:3}],Tr=[{type:16,flags:0,number:50}],br=function(ye){return ye.width>ye.height?new h(ye.left+(ye.width-ye.height)/2,ye.top,ye.height,ye.height):ye.width<ye.height?new h(ye.left,ye.top+(ye.height-ye.width)/2,ye.width,ye.width):ye},Kr=function(ye){var De=ye.type===Mn?new Array(ye.value.length+1).join("\u2022"):ye.value;return De.length===0?ye.placeholder||"":De},zr="checkbox",Nn="radio",Mn="password",Yn=707406591,bi=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;ut.type=We.type.toLowerCase(),ut.checked=We.checked,ut.value=Kr(We),(ut.type===zr||ut.type===Nn)&&(ut.styles.backgroundColor=3739148031,ut.styles.borderTopColor=ut.styles.borderRightColor=ut.styles.borderBottomColor=ut.styles.borderLeftColor=2779096575,ut.styles.borderTopWidth=ut.styles.borderRightWidth=ut.styles.borderBottomWidth=ut.styles.borderLeftWidth=1,ut.styles.borderTopStyle=ut.styles.borderRightStyle=ut.styles.borderBottomStyle=ut.styles.borderLeftStyle=1,ut.styles.backgroundClip=[0],ut.styles.backgroundOrigin=[0],ut.bounds=br(ut.bounds));switch(ut.type){case zr:ut.styles.borderTopRightRadius=ut.styles.borderTopLeftRadius=ut.styles.borderBottomRightRadius=ut.styles.borderBottomLeftRadius=zt;break;case Nn:ut.styles.borderTopRightRadius=ut.styles.borderTopLeftRadius=ut.styles.borderBottomRightRadius=ut.styles.borderBottomLeftRadius=Tr;break}return ut}return ye}(_s),ua=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this,dr=We.options[We.selectedIndex||0];return ut.value=dr&&dr.text||"",ut}return ye}(_s),Yi=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;return ut.value=We.value,ut}return ye}(_s),ta=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;ut.src=We.src,ut.width=parseInt(We.width,10)||0,ut.height=parseInt(We.height,10)||0,ut.backgroundColor=ut.styles.backgroundColor;try{if(We.contentWindow&&We.contentWindow.document&&We.contentWindow.document.documentElement){ut.tree=Sa(De,We.contentWindow.document.documentElement);var dr=We.contentWindow.document.documentElement?ao(De,getComputedStyle(We.contentWindow.document.documentElement).backgroundColor):So.TRANSPARENT,nn=We.contentWindow.document.body?ao(De,getComputedStyle(We.contentWindow.document.body).backgroundColor):So.TRANSPARENT;ut.backgroundColor=_a(dr)?_a(nn)?ut.styles.backgroundColor:nn:dr}}catch(Sn){}return ut}return ye}(_s),Pa=["OL","UL","MENU"],Ya=function xr(ye,De,We,ut){for(var dr=De.firstChild,nn=void 0;dr;dr=nn)if(nn=dr.nextSibling,ys(dr)&&dr.data.trim().length>0)We.textNodes.push(new K(ye,dr,We.styles));else if(bs(dr))if(rr(dr)&&dr.assignedNodes)dr.assignedNodes().forEach(function(Pn){return xr(ye,Pn,We,ut)});else{var Sn=Ba(ye,dr);Sn.styles.isVisible()&&(Go(dr,Sn,ut)?Sn.flags|=4:Ls(Sn.styles)&&(Sn.flags|=2),Pa.indexOf(dr.tagName)!==-1&&(Sn.flags|=8),We.elements.push(Sn),dr.slot,dr.shadowRoot?xr(ye,dr.shadowRoot,Sn,ut):!Ut(dr)&&!lr(dr)&&!$t(dr)&&xr(ye,dr,Sn,ut))}},Ba=function(ye,De){return ae(De)?new Ae(ye,De):an(De)?new Te(ye,De):lr(De)?new ze(ye,De):Ws(De)?new st(ye,De):xe(De)?new ct(ye,De):Je(De)?new bi(ye,De):$t(De)?new ua(ye,De):Ut(De)?new Yi(ye,De):Oe(De)?new ta(ye,De):new _s(ye,De)},Sa=function(ye,De){var We=Ba(ye,De);return We.flags|=4,Ya(ye,De,We,We),We},Go=function(ye,De,We){return De.styles.isPositionedWithZIndex()||De.styles.opacity<1||De.styles.isTransformed()||Fr(ye)&&We.styles.isTransparent()},Ls=function(ye){return ye.isPositioned()||ye.isFloating()},ys=function(ye){return ye.nodeType===Node.TEXT_NODE},bs=function(ye){return ye.nodeType===Node.ELEMENT_NODE},Fs=function(ye){return bs(ye)&&typeof ye.style!="undefined"&&!ws(ye)},ws=function(ye){return typeof ye.className=="object"},Ws=function(ye){return ye.tagName==="LI"},xe=function(ye){return ye.tagName==="OL"},Je=function(ye){return ye.tagName==="INPUT"},bt=function(ye){return ye.tagName==="HTML"},lr=function(ye){return ye.tagName==="svg"},Fr=function(ye){return ye.tagName==="BODY"},an=function(ye){return ye.tagName==="CANVAS"},Be=function(ye){return ye.tagName==="VIDEO"},ae=function(ye){return ye.tagName==="IMG"},Oe=function(ye){return ye.tagName==="IFRAME"},qe=function(ye){return ye.tagName==="STYLE"},At=function(ye){return ye.tagName==="SCRIPT"},Ut=function(ye){return ye.tagName==="TEXTAREA"},$t=function(ye){return ye.tagName==="SELECT"},rr=function(ye){return ye.tagName==="SLOT"},Wr=function(ye){return ye.tagName.indexOf("-")>0},cn=function(){function xr(){this.counters={}}return xr.prototype.getCounterValue=function(ye){var De=this.counters[ye];return De&&De.length?De[De.length-1]:1},xr.prototype.getCounterValues=function(ye){var De=this.counters[ye];return De||[]},xr.prototype.pop=function(ye){var De=this;ye.forEach(function(We){return De.counters[We].pop()})},xr.prototype.parse=function(ye){var De=this,We=ye.counterIncrement,ut=ye.counterReset,dr=!0;We!==null&&We.forEach(function(Sn){var Pn=De.counters[Sn.counter];Pn&&Sn.increment!==0&&(dr=!1,Pn.length||Pn.push(1),Pn[Math.max(0,Pn.length-1)]+=Sn.increment)});var nn=[];return dr&&ut.forEach(function(Sn){var Pn=De.counters[Sn.counter];nn.push(Sn.counter),Pn||(Pn=De.counters[Sn.counter]=[]),Pn.push(Sn.reset)}),nn},xr}(),Hr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ur={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},on={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},gn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Hn=function(ye,De,We,ut,dr,nn){return ye<De||ye>We?ie(ye,dr,nn.length>0):ut.integers.reduce(function(Sn,Pn,ni){for(;ye>=Pn;)ye-=Pn,Sn+=ut.values[ni];return Sn},"")+nn},Oi=function(ye,De,We,ut){var dr="";do We||ye--,dr=ut(ye)+dr,ye/=De;while(ye*De>=De);return dr},Ri=function(ye,De,We,ut,dr){var nn=We-De+1;return(ye<0?"-":"")+(Oi(Math.abs(ye),nn,ut,function(Sn){return t(Math.floor(Sn%nn)+De)})+dr)},da=function(ye,De,We){We===void 0&&(We=". ");var ut=De.length;return Oi(Math.abs(ye),ut,!1,function(dr){return De[Math.floor(dr%ut)]})+We},Ji=1<<0,Qa=1<<1,ya=1<<2,fo=1<<3,za=function(ye,De,We,ut,dr,nn){if(ye<-9999||ye>9999)return ie(ye,4,dr.length>0);var Sn=Math.abs(ye),Pn=dr;if(Sn===0)return De[0]+Pn;for(var ni=0;Sn>0&&ni<=4;ni++){var Vi=Sn%10;Vi===0&&sa(nn,Ji)&&Pn!==""?Pn=De[Vi]+Pn:Vi>1||Vi===1&&ni===0||Vi===1&&ni===1&&sa(nn,Qa)||Vi===1&&ni===1&&sa(nn,ya)&&ye>100||Vi===1&&ni>1&&sa(nn,fo)?Pn=De[Vi]+(ni>0?We[ni-1]:"")+Pn:Vi===1&&ni>0&&(Pn=We[ni-1]+Pn),Sn=Math.floor(Sn/10)}return(ye<0?ut:"")+Pn},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",U="\uB9C8\uC774\uB108\uC2A4",ie=function(ye,De,We){var ut=We?". ":"",dr=We?"\u3001":"",nn=We?", ":"",Sn=We?" ":"";switch(De){case 0:return"\u2022"+Sn;case 1:return"\u25E6"+Sn;case 2:return"\u25FE"+Sn;case 5:var Pn=Ri(ye,48,57,!0,ut);return Pn.length<4?"0"+Pn:Pn;case 4:return da(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",dr);case 6:return Hn(ye,1,3999,Hr,3,ut).toLowerCase();case 7:return Hn(ye,1,3999,Hr,3,ut);case 8:return Ri(ye,945,969,!1,ut);case 9:return Ri(ye,97,122,!1,ut);case 10:return Ri(ye,65,90,!1,ut);case 11:return Ri(ye,1632,1641,!0,ut);case 12:case 49:return Hn(ye,1,9999,Ur,3,ut);case 35:return Hn(ye,1,9999,Ur,3,ut).toLowerCase();case 13:return Ri(ye,2534,2543,!0,ut);case 14:case 30:return Ri(ye,6112,6121,!0,ut);case 15:return da(ye,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",dr);case 16:return da(ye,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",dr);case 17:case 48:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",dr,Qa|ya|fo);case 47:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",dr,Ji|Qa|ya|fo);case 42:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",dr,Qa|ya|fo);case 41:return za(ye,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",dr,Ji|Qa|ya|fo);case 26:return za(ye,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,dr,0);case 25:return za(ye,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,dr,Ji|Qa|ya);case 31:return za(ye,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",U,nn,Ji|Qa|ya);case 33:return za(ye,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",U,nn,0);case 32:return za(ye,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",U,nn,Ji|Qa|ya);case 18:return Ri(ye,2406,2415,!0,ut);case 20:return Hn(ye,1,19999,gn,3,ut);case 21:return Ri(ye,2790,2799,!0,ut);case 22:return Ri(ye,2662,2671,!0,ut);case 22:return Hn(ye,1,10999,on,3,ut);case 23:return da(ye,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return da(ye,"\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 Ri(ye,3302,3311,!0,ut);case 28:return da(ye,"\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",dr);case 29:return da(ye,"\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",dr);case 34:return Ri(ye,3792,3801,!0,ut);case 37:return Ri(ye,6160,6169,!0,ut);case 38:return Ri(ye,4160,4169,!0,ut);case 39:return Ri(ye,2918,2927,!0,ut);case 40:return Ri(ye,1776,1785,!0,ut);case 43:return Ri(ye,3046,3055,!0,ut);case 44:return Ri(ye,3174,3183,!0,ut);case 45:return Ri(ye,3664,3673,!0,ut);case 46:return Ri(ye,3872,3881,!0,ut);case 3:default:return Ri(ye,48,57,!0,ut)}},le="data-html2canvas-ignore",ge=function(){function xr(ye,De,We){if(this.context=ye,this.options=We,this.scrolledElements=[],this.referenceElement=De,this.counters=new cn,this.quoteDepth=0,!De.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(De.ownerDocument.documentElement,!1)}return xr.prototype.toIFrame=function(ye,De){var We=this,ut=Tt(ye,De);if(!ut.contentWindow)return Promise.reject("Unable to find iframe window");var dr=ye.defaultView.pageXOffset,nn=ye.defaultView.pageYOffset,Sn=ut.contentWindow,Pn=Sn.document,ni=Cr(ut).then(function(){return A(We,void 0,void 0,function(){var Vi,Pi;return m(this,function($i){switch($i.label){case 0:return this.scrolledElements.forEach(la),Sn&&(Sn.scrollTo(De.left,De.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Sn.scrollY!==De.top||Sn.scrollX!==De.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Sn.scrollX-De.left,Sn.scrollY-De.top,0,0))),Vi=this.options.onclone,Pi=this.clonedReferenceElement,typeof Pi=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Pn.fonts&&Pn.fonts.ready?[4,Pn.fonts.ready]:[3,2];case 1:$i.sent(),$i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,yr(Pn)]:[3,4];case 3:$i.sent(),$i.label=4;case 4:return typeof Vi=="function"?[2,Promise.resolve().then(function(){return Vi(Pn,Pi)}).then(function(){return ut})]:[2,ut]}})})});return Pn.open(),Pn.write(Si(document.doctype)+"<html></html>"),Ci(this.referenceElement.ownerDocument,dr,nn),Pn.replaceChild(Pn.adoptNode(this.documentElement),Pn.documentElement),Pn.close(),ni},xr.prototype.createElementClone=function(ye){if(js(ye,2))debugger;if(an(ye))return this.createCanvasClone(ye);if(Be(ye))return this.createVideoClone(ye);if(qe(ye))return this.createStyleClone(ye);var De=ye.cloneNode(!1);return ae(De)&&(ae(ye)&&ye.currentSrc&&ye.currentSrc!==ye.src&&(De.src=ye.currentSrc,De.srcset=""),De.loading==="lazy"&&(De.loading="eager")),Wr(De)?this.createCustomElementClone(De):De},xr.prototype.createCustomElementClone=function(ye){var De=document.createElement("html2canvascustomelement");return qn(ye.style,De),De},xr.prototype.createStyleClone=function(ye){try{var De=ye.sheet;if(De&&De.cssRules){var We=[].slice.call(De.cssRules,0).reduce(function(dr,nn){return nn&&typeof nn.cssText=="string"?dr+nn.cssText:dr},""),ut=ye.cloneNode(!1);return ut.textContent=We,ut}}catch(dr){if(this.context.logger.error("Unable to access cssRules property",dr),dr.name!=="SecurityError")throw dr}return ye.cloneNode(!1)},xr.prototype.createCanvasClone=function(ye){var De;if(this.options.inlineImages&&ye.ownerDocument){var We=ye.ownerDocument.createElement("img");try{return We.src=ye.toDataURL(),We}catch(ni){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ye)}}var ut=ye.cloneNode(!1);try{ut.width=ye.width,ut.height=ye.height;var dr=ye.getContext("2d"),nn=ut.getContext("2d");if(nn)if(!this.options.allowTaint&&dr)nn.putImageData(dr.getImageData(0,0,ye.width,ye.height),0,0);else{var Sn=(De=ye.getContext("webgl2"))!==null&&De!==void 0?De:ye.getContext("webgl");if(Sn){var Pn=Sn.getContextAttributes();(Pn==null?void 0:Pn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ye)}nn.drawImage(ye,0,0)}return ut}catch(ni){this.context.logger.info("Unable to clone canvas as it is tainted",ye)}return ut},xr.prototype.createVideoClone=function(ye){var De=ye.ownerDocument.createElement("canvas");De.width=ye.offsetWidth,De.height=ye.offsetHeight;var We=De.getContext("2d");try{return We&&(We.drawImage(ye,0,0,De.width,De.height),this.options.allowTaint||We.getImageData(0,0,De.width,De.height)),De}catch(dr){this.context.logger.info("Unable to clone video as it is tainted",ye)}var ut=ye.ownerDocument.createElement("canvas");return ut.width=ye.offsetWidth,ut.height=ye.offsetHeight,ut},xr.prototype.appendChildNode=function(ye,De,We){(!bs(De)||!At(De)&&!De.hasAttribute(le)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(De)))&&((!this.options.copyStyles||!bs(De)||!qe(De))&&ye.appendChild(this.cloneNode(De,We)))},xr.prototype.cloneChildNodes=function(ye,De,We){for(var ut=this,dr=ye.shadowRoot?ye.shadowRoot.firstChild:ye.firstChild;dr;dr=dr.nextSibling)if(bs(dr)&&rr(dr)&&typeof dr.assignedNodes=="function"){var nn=dr.assignedNodes();nn.length&&nn.forEach(function(Sn){return ut.appendChildNode(De,Sn,We)})}else this.appendChildNode(De,dr,We)},xr.prototype.cloneNode=function(ye,De){if(ys(ye))return document.createTextNode(ye.data);if(!ye.ownerDocument)return ye.cloneNode(!1);var We=ye.ownerDocument.defaultView;if(We&&bs(ye)&&(Fs(ye)||ws(ye))){var ut=this.createElementClone(ye);ut.style.transitionProperty="none";var dr=We.getComputedStyle(ye),nn=We.getComputedStyle(ye,":before"),Sn=We.getComputedStyle(ye,":after");this.referenceElement===ye&&Fs(ut)&&(this.clonedReferenceElement=ut),Fr(ut)&&ho(ut);var Pn=this.counters.parse(new gs(this.context,dr)),ni=this.resolvePseudoContent(ye,ut,nn,Ke.BEFORE);Wr(ye)&&(De=!0),Be(ye)||this.cloneChildNodes(ye,ut,De),ni&&ut.insertBefore(ni,ut.firstChild);var Vi=this.resolvePseudoContent(ye,ut,Sn,Ke.AFTER);return Vi&&ut.appendChild(Vi),this.counters.pop(Pn),(dr&&(this.options.copyStyles||ws(ye))&&!Oe(ye)||De)&&qn(dr,ut),(ye.scrollTop!==0||ye.scrollLeft!==0)&&this.scrolledElements.push([ut,ye.scrollLeft,ye.scrollTop]),(Ut(ye)||$t(ye))&&(Ut(ut)||$t(ut))&&(ut.value=ye.value),ut}return ye.cloneNode(!1)},xr.prototype.resolvePseudoContent=function(ye,De,We,ut){var dr=this;if(!We)return;var nn=We.content,Sn=De.ownerDocument;if(!Sn||!nn||nn==="none"||nn==="-moz-alt-content"||We.display==="none")return;this.counters.parse(new gs(this.context,We));var Pn=new rl(this.context,We),ni=Sn.createElement("html2canvaspseudoelement");qn(We,ni),Pn.content.forEach(function(Pi){if(Pi.type===0)ni.appendChild(Sn.createTextNode(Pi.value));else if(Pi.type===22){var $i=Sn.createElement("img");$i.src=Pi.value,$i.style.opacity="1",ni.appendChild($i)}else if(Pi.type===18){if(Pi.name==="attr"){var Za=Pi.values.filter(_n);Za.length&&ni.appendChild(Sn.createTextNode(ye.getAttribute(Za[0].value)||""))}else if(Pi.name==="counter"){var eo=Pi.values.filter(pi),po=eo[0],us=eo[1];if(po&&_n(po)){var Yo=dr.counters.getCounterValue(po.value),Po=us&&_n(us)?hs.parse(dr.context,us.value):3;ni.appendChild(Sn.createTextNode(ie(Yo,Po,!1)))}}else if(Pi.name==="counters"){var $s=Pi.values.filter(pi),po=$s[0],cl=$s[1],us=$s[2];if(po&&_n(po)){var zs=dr.counters.getCounterValues(po.value),Ro=us&&_n(us)?hs.parse(dr.context,us.value):3,Al=cl&&cl.type===0?cl.value:"",bl=zs.map(function(Mu){return ie(Mu,Ro,!1)}).join(Al);ni.appendChild(Sn.createTextNode(bl))}}}else if(Pi.type===20)switch(Pi.value){case"open-quote":ni.appendChild(Sn.createTextNode(Es(Pn.quotes,dr.quoteDepth++,!0)));break;case"close-quote":ni.appendChild(Sn.createTextNode(Es(Pn.quotes,--dr.quoteDepth,!1)));break;default:ni.appendChild(Sn.createTextNode(Pi.value))}}),ni.className=ka+" "+Na;var Vi=ut===Ke.BEFORE?" "+ka:" "+Na;return ws(De)?De.className.baseValue+=Vi:De.className+=Vi,ni},xr.destroy=function(ye){return ye.parentNode?(ye.parentNode.removeChild(ye),!0):!1},xr}(),Ke;(function(xr){xr[xr.BEFORE=0]="BEFORE",xr[xr.AFTER=1]="AFTER"})(Ke||(Ke={}));var Tt=function(ye,De){var We=ye.createElement("iframe");return We.className="html2canvas-container",We.style.visibility="hidden",We.style.position="fixed",We.style.left="-10000px",We.style.top="0px",We.style.border="0",We.width=De.width.toString(),We.height=De.height.toString(),We.scrolling="no",We.setAttribute(le,"true"),ye.body.appendChild(We),We},tr=function(ye){return new Promise(function(De){if(ye.complete){De();return}if(!ye.src){De();return}ye.onload=De,ye.onerror=De})},yr=function(ye){return Promise.all([].slice.call(ye.images,0).map(tr))},Cr=function(ye){return new Promise(function(De,We){var ut=ye.contentWindow;if(!ut)return We("No window assigned for iframe");var dr=ut.document;ut.onload=ye.onload=function(){ut.onload=ye.onload=null;var nn=setInterval(function(){dr.body.childNodes.length>0&&dr.readyState==="complete"&&(clearInterval(nn),De(ye))},50)}})},Bn=["all","d","content"],qn=function(ye,De){for(var We=ye.length-1;We>=0;We--){var ut=ye.item(We);Bn.indexOf(ut)===-1&&De.style.setProperty(ut,ye.getPropertyValue(ut))}return De},Si=function(ye){var De="";return ye&&(De+="<!DOCTYPE ",ye.name&&(De+=ye.name),ye.internalSubset&&(De+=ye.internalSubset),ye.publicId&&(De+='"'+ye.publicId+'"'),ye.systemId&&(De+='"'+ye.systemId+'"'),De+=">"),De},Ci=function(ye,De,We){ye&&ye.defaultView&&(De!==ye.defaultView.pageXOffset||We!==ye.defaultView.pageYOffset)&&ye.defaultView.scrollTo(De,We)},la=function(ye){var De=ye[0],We=ye[1],ut=ye[2];De.scrollLeft=We,De.scrollTop=ut},Ta=":before",Wa=":after",ka="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",qa=`{
content: "" !important;
display: none !important;
}`,ho=function(ye){ns(ye,"."+ka+Ta+qa+`
.`+Na+Wa+qa)},ns=function(ye,De){var We=ye.ownerDocument;if(We){var ut=We.createElement("style");ut.textContent=De,ye.appendChild(ut)}},Mo=function(){function xr(){}return xr.getOrigin=function(ye){var De=xr._link;return De?(De.href=ye,De.href=De.href,De.protocol+De.hostname+De.port):"about:blank"},xr.isSameOrigin=function(ye){return xr.getOrigin(ye)===xr._origin},xr.setContext=function(ye){xr._link=ye.document.createElement("a"),xr._origin=xr.getOrigin(ye.location.href)},xr._origin="about:blank",xr}(),Ss=function(){function xr(ye,De){this.context=ye,this._options=De,this._cache={}}return xr.prototype.addImage=function(ye){var De=Promise.resolve();return this.has(ye)||(Gl(ye)||Pl(ye))&&(this._cache[ye]=this.loadImage(ye)).catch(function(){}),De},xr.prototype.match=function(ye){return this._cache[ye]},xr.prototype.loadImage=function(ye){return A(this,void 0,void 0,function(){var De,We,ut,dr,nn=this;return m(this,function(Sn){switch(Sn.label){case 0:return De=Mo.isSameOrigin(ye),We=!Vl(ye)&&this._options.useCORS===!0&&hl.SUPPORT_CORS_IMAGES&&!De,ut=!Vl(ye)&&!De&&!Gl(ye)&&typeof this._options.proxy=="string"&&hl.SUPPORT_CORS_XHR&&!We,!De&&this._options.allowTaint===!1&&!Vl(ye)&&!Gl(ye)&&!ut&&!We?[2]:(dr=ye,ut?[4,this.proxy(dr)]:[3,2]);case 1:dr=Sn.sent(),Sn.label=2;case 2:return this.context.logger.debug("Added image "+ye.substring(0,256)),[4,new Promise(function(Pn,ni){var Vi=new Image;Vi.onload=function(){return Pn(Vi)},Vi.onerror=ni,(Il(dr)||We)&&(Vi.crossOrigin="anonymous"),Vi.src=dr,Vi.complete===!0&&setTimeout(function(){return Pn(Vi)},500),nn._options.imageTimeout>0&&setTimeout(function(){return ni("Timed out ("+nn._options.imageTimeout+"ms) loading image")},nn._options.imageTimeout)})];case 3:return[2,Sn.sent()]}})})},xr.prototype.has=function(ye){return typeof this._cache[ye]!="undefined"},xr.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},xr.prototype.proxy=function(ye){var De=this,We=this._options.proxy;if(!We)throw new Error("No proxy defined");var ut=ye.substring(0,256);return new Promise(function(dr,nn){var Sn=hl.SUPPORT_RESPONSE_TYPE?"blob":"text",Pn=new XMLHttpRequest;Pn.onload=function(){if(Pn.status===200)if(Sn==="text")dr(Pn.response);else{var Pi=new FileReader;Pi.addEventListener("load",function(){return dr(Pi.result)},!1),Pi.addEventListener("error",function($i){return nn($i)},!1),Pi.readAsDataURL(Pn.response)}else nn("Failed to proxy resource "+ut+" with status code "+Pn.status)},Pn.onerror=nn;var ni=We.indexOf("?")>-1?"&":"?";if(Pn.open("GET",""+We+ni+"url="+encodeURIComponent(ye)+"&responseType="+Sn),Sn!=="text"&&Pn instanceof XMLHttpRequest&&(Pn.responseType=Sn),De._options.imageTimeout){var Vi=De._options.imageTimeout;Pn.timeout=Vi,Pn.ontimeout=function(){return nn("Timed out ("+Vi+"ms) proxying "+ut)}}Pn.send()})},xr}(),Zs=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,Pl=function(ye){return hl.SUPPORT_SVG_DRAWING||!Fl(ye)},Vl=function(ye){return ul.test(ye)},Il=function(ye){return yl.test(ye)},Gl=function(ye){return ye.substr(0,4)==="blob"},Fl=function(ye){return ye.substr(-3).toLowerCase()==="svg"||Zs.test(ye)},Ja=function(){function xr(ye,De){this.type=0,this.x=ye,this.y=De}return xr.prototype.add=function(ye,De){return new xr(this.x+ye,this.y+De)},xr}(),vl=function(ye,De,We){return new Ja(ye.x+(De.x-ye.x)*We,ye.y+(De.y-ye.y)*We)},gl=function(){function xr(ye,De,We,ut){this.type=1,this.start=ye,this.startControl=De,this.endControl=We,this.end=ut}return xr.prototype.subdivide=function(ye,De){var We=vl(this.start,this.startControl,ye),ut=vl(this.startControl,this.endControl,ye),dr=vl(this.endControl,this.end,ye),nn=vl(We,ut,ye),Sn=vl(ut,dr,ye),Pn=vl(nn,Sn,ye);return De?new xr(this.start,We,nn,Pn):new xr(Pn,Sn,dr,this.end)},xr.prototype.add=function(ye,De){return new xr(this.start.add(ye,De),this.startControl.add(ye,De),this.endControl.add(ye,De),this.end.add(ye,De))},xr.prototype.reverse=function(){return new xr(this.end,this.endControl,this.startControl,this.start)},xr}(),El=function(ye){return ye.type===1},Bu=function(){function xr(ye){var De=ye.styles,We=ye.bounds,ut=Qi(De.borderTopLeftRadius,We.width,We.height),dr=ut[0],nn=ut[1],Sn=Qi(De.borderTopRightRadius,We.width,We.height),Pn=Sn[0],ni=Sn[1],Vi=Qi(De.borderBottomRightRadius,We.width,We.height),Pi=Vi[0],$i=Vi[1],Za=Qi(De.borderBottomLeftRadius,We.width,We.height),eo=Za[0],po=Za[1],us=[];us.push((dr+Pn)/We.width),us.push((eo+Pi)/We.width),us.push((nn+po)/We.height),us.push((ni+$i)/We.height);var Yo=Math.max.apply(Math,us);Yo>1&&(dr/=Yo,nn/=Yo,Pn/=Yo,ni/=Yo,Pi/=Yo,$i/=Yo,eo/=Yo,po/=Yo);var Po=We.width-Pn,$s=We.height-$i,cl=We.width-Pi,zs=We.height-po,Ro=De.borderTopWidth,Al=De.borderRightWidth,bl=De.borderBottomWidth,Vs=De.borderLeftWidth,_u=ca(De.paddingTop,ye.bounds.width),Mu=ca(De.paddingRight,ye.bounds.width),Ou=ca(De.paddingBottom,ye.bounds.width),eu=ca(De.paddingLeft,ye.bounds.width);this.topLeftBorderDoubleOuterBox=dr>0||nn>0?vs(We.left+Vs/3,We.top+Ro/3,dr-Vs/3,nn-Ro/3,Hs.TOP_LEFT):new Ja(We.left+Vs/3,We.top+Ro/3),this.topRightBorderDoubleOuterBox=dr>0||nn>0?vs(We.left+Po,We.top+Ro/3,Pn-Al/3,ni-Ro/3,Hs.TOP_RIGHT):new Ja(We.left+We.width-Al/3,We.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Pi>0||$i>0?vs(We.left+cl,We.top+$s,Pi-Al/3,$i-bl/3,Hs.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/3,We.top+We.height-bl/3),this.bottomLeftBorderDoubleOuterBox=eo>0||po>0?vs(We.left+Vs/3,We.top+zs,eo-Vs/3,po-bl/3,Hs.BOTTOM_LEFT):new Ja(We.left+Vs/3,We.top+We.height-bl/3),this.topLeftBorderDoubleInnerBox=dr>0||nn>0?vs(We.left+Vs*2/3,We.top+Ro*2/3,dr-Vs*2/3,nn-Ro*2/3,Hs.TOP_LEFT):new Ja(We.left+Vs*2/3,We.top+Ro*2/3),this.topRightBorderDoubleInnerBox=dr>0||nn>0?vs(We.left+Po,We.top+Ro*2/3,Pn-Al*2/3,ni-Ro*2/3,Hs.TOP_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Pi>0||$i>0?vs(We.left+cl,We.top+$s,Pi-Al*2/3,$i-bl*2/3,Hs.BOTTOM_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+We.height-bl*2/3),this.bottomLeftBorderDoubleInnerBox=eo>0||po>0?vs(We.left+Vs*2/3,We.top+zs,eo-Vs*2/3,po-bl*2/3,Hs.BOTTOM_LEFT):new Ja(We.left+Vs*2/3,We.top+We.height-bl*2/3),this.topLeftBorderStroke=dr>0||nn>0?vs(We.left+Vs/2,We.top+Ro/2,dr-Vs/2,nn-Ro/2,Hs.TOP_LEFT):new Ja(We.left+Vs/2,We.top+Ro/2),this.topRightBorderStroke=dr>0||nn>0?vs(We.left+Po,We.top+Ro/2,Pn-Al/2,ni-Ro/2,Hs.TOP_RIGHT):new Ja(We.left+We.width-Al/2,We.top+Ro/2),this.bottomRightBorderStroke=Pi>0||$i>0?vs(We.left+cl,We.top+$s,Pi-Al/2,$i-bl/2,Hs.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/2,We.top+We.height-bl/2),this.bottomLeftBorderStroke=eo>0||po>0?vs(We.left+Vs/2,We.top+zs,eo-Vs/2,po-bl/2,Hs.BOTTOM_LEFT):new Ja(We.left+Vs/2,We.top+We.height-bl/2),this.topLeftBorderBox=dr>0||nn>0?vs(We.left,We.top,dr,nn,Hs.TOP_LEFT):new Ja(We.left,We.top),this.topRightBorderBox=Pn>0||ni>0?vs(We.left+Po,We.top,Pn,ni,Hs.TOP_RIGHT):new Ja(We.left+We.width,We.top),this.bottomRightBorderBox=Pi>0||$i>0?vs(We.left+cl,We.top+$s,Pi,$i,Hs.BOTTOM_RIGHT):new Ja(We.left+We.width,We.top+We.height),this.bottomLeftBorderBox=eo>0||po>0?vs(We.left,We.top+zs,eo,po,Hs.BOTTOM_LEFT):new Ja(We.left,We.top+We.height),this.topLeftPaddingBox=dr>0||nn>0?vs(We.left+Vs,We.top+Ro,Math.max(0,dr-Vs),Math.max(0,nn-Ro),Hs.TOP_LEFT):new Ja(We.left+Vs,We.top+Ro),this.topRightPaddingBox=Pn>0||ni>0?vs(We.left+Math.min(Po,We.width-Al),We.top+Ro,Po>We.width+Al?0:Math.max(0,Pn-Al),Math.max(0,ni-Ro),Hs.TOP_RIGHT):new Ja(We.left+We.width-Al,We.top+Ro),this.bottomRightPaddingBox=Pi>0||$i>0?vs(We.left+Math.min(cl,We.width-Vs),We.top+Math.min($s,We.height-bl),Math.max(0,Pi-Al),Math.max(0,$i-bl),Hs.BOTTOM_RIGHT):new Ja(We.left+We.width-Al,We.top+We.height-bl),this.bottomLeftPaddingBox=eo>0||po>0?vs(We.left+Vs,We.top+Math.min(zs,We.height-bl),Math.max(0,eo-Vs),Math.max(0,po-bl),Hs.BOTTOM_LEFT):new Ja(We.left+Vs,We.top+We.height-bl),this.topLeftContentBox=dr>0||nn>0?vs(We.left+Vs+eu,We.top+Ro+_u,Math.max(0,dr-(Vs+eu)),Math.max(0,nn-(Ro+_u)),Hs.TOP_LEFT):new Ja(We.left+Vs+eu,We.top+Ro+_u),this.topRightContentBox=Pn>0||ni>0?vs(We.left+Math.min(Po,We.width+Vs+eu),We.top+Ro+_u,Po>We.width+Vs+eu?0:Pn-Vs+eu,ni-(Ro+_u),Hs.TOP_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+Ro+_u),this.bottomRightContentBox=Pi>0||$i>0?vs(We.left+Math.min(cl,We.width-(Vs+eu)),We.top+Math.min($s,We.height+Ro+_u),Math.max(0,Pi-(Al+Mu)),$i-(bl+Ou),Hs.BOTTOM_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+We.height-(bl+Ou)),this.bottomLeftContentBox=eo>0||po>0?vs(We.left+Vs+eu,We.top+zs,Math.max(0,eo-(Vs+eu)),po-(bl+Ou),Hs.BOTTOM_LEFT):new Ja(We.left+Vs+eu,We.top+We.height-(bl+Ou))}return xr}(),Hs;(function(xr){xr[xr.TOP_LEFT=0]="TOP_LEFT",xr[xr.TOP_RIGHT=1]="TOP_RIGHT",xr[xr.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",xr[xr.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Hs||(Hs={}));var vs=function(ye,De,We,ut,dr){var nn=4*((Math.sqrt(2)-1)/3),Sn=We*nn,Pn=ut*nn,ni=ye+We,Vi=De+ut;switch(dr){case Hs.TOP_LEFT:return new gl(new Ja(ye,Vi),new Ja(ye,Vi-Pn),new Ja(ni-Sn,De),new Ja(ni,De));case Hs.TOP_RIGHT:return new gl(new Ja(ye,De),new Ja(ye+Sn,De),new Ja(ni,Vi-Pn),new Ja(ni,Vi));case Hs.BOTTOM_RIGHT:return new gl(new Ja(ni,De),new Ja(ni,De+Pn),new Ja(ye+Sn,Vi),new Ja(ye,Vi));case Hs.BOTTOM_LEFT:default:return new gl(new Ja(ni,Vi),new Ja(ni-Sn,Vi),new Ja(ye,De+Pn),new Ja(ye,De))}},lu=function(ye){return[ye.topLeftBorderBox,ye.topRightBorderBox,ye.bottomRightBorderBox,ye.bottomLeftBorderBox]},Kl=function(ye){return[ye.topLeftContentBox,ye.topRightContentBox,ye.bottomRightContentBox,ye.bottomLeftContentBox]},Uu=function(ye){return[ye.topLeftPaddingBox,ye.topRightPaddingBox,ye.bottomRightPaddingBox,ye.bottomLeftPaddingBox]},Eu=function(){function xr(ye,De,We){this.offsetX=ye,this.offsetY=De,this.matrix=We,this.type=0,this.target=2|4}return xr}(),uu=function(){function xr(ye,De){this.path=ye,this.target=De,this.type=1}return xr}(),ku=function(){function xr(ye){this.opacity=ye,this.type=2,this.target=2|4}return xr}(),Yl=function(ye){return ye.type===0},Tu=function(ye){return ye.type===1},Vu=function(ye){return ye.type===2},Ju=function(ye,De){return ye.length===De.length?ye.some(function(We,ut){return We===De[ut]}):!1},vc=function(ye,De,We,ut,dr){return ye.map(function(nn,Sn){switch(Sn){case 0:return nn.add(De,We);case 1:return nn.add(De+ut,We);case 2:return nn.add(De+ut,We+dr);case 3:return nn.add(De,We+dr)}return nn})},Ac=function(){function xr(ye){this.element=ye,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return xr}(),tc=function(){function xr(ye,De){if(this.container=ye,this.parent=De,this.effects=[],this.curves=new Bu(this.container),this.container.styles.opacity<1&&this.effects.push(new ku(this.container.styles.opacity)),this.container.styles.transform!==null){var We=this.container.bounds.left+this.container.styles.transformOrigin[0].number,ut=this.container.bounds.top+this.container.styles.transformOrigin[1].number,dr=this.container.styles.transform;this.effects.push(new Eu(We,ut,dr))}if(this.container.styles.overflowX!==0){var nn=lu(this.curves),Sn=Uu(this.curves);Ju(nn,Sn)?this.effects.push(new uu(nn,2|4)):(this.effects.push(new uu(nn,2)),this.effects.push(new uu(Sn,4)))}}return xr.prototype.getEffects=function(ye){for(var De=[2,3].indexOf(this.container.styles.position)===-1,We=this.parent,ut=this.effects.slice(0);We;){var dr=We.effects.filter(function(Pn){return!Tu(Pn)});if(De||We.container.styles.position!==0||!We.parent){if(ut.unshift.apply(ut,dr),De=[2,3].indexOf(We.container.styles.position)===-1,We.container.styles.overflowX!==0){var nn=lu(We.curves),Sn=Uu(We.curves);Ju(nn,Sn)||ut.unshift(new uu(Sn,2|4))}}else ut.unshift.apply(ut,dr);We=We.parent}return ut.filter(function(Pn){return sa(Pn.target,ye)})},xr}(),yc=function xr(ye,De,We,ut){ye.container.elements.forEach(function(dr){var nn=sa(dr.flags,4),Sn=sa(dr.flags,2),Pn=new tc(dr,ye);sa(dr.styles.display,2048)&&ut.push(Pn);var ni=sa(dr.flags,8)?[]:ut;if(nn||Sn){var Vi=nn||dr.styles.isPositioned()?We:De,Pi=new Ac(Pn);if(dr.styles.isPositioned()||dr.styles.opacity<1||dr.styles.isTransformed()){var $i=dr.styles.zIndex.order;if($i<0){var Za=0;Vi.negativeZIndex.some(function(po,us){return $i>po.element.container.styles.zIndex.order?(Za=us,!1):Za>0}),Vi.negativeZIndex.splice(Za,0,Pi)}else if($i>0){var eo=0;Vi.positiveZIndex.some(function(po,us){return $i>=po.element.container.styles.zIndex.order?(eo=us+1,!1):eo>0}),Vi.positiveZIndex.splice(eo,0,Pi)}else Vi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Pi)}else dr.styles.isFloating()?Vi.nonPositionedFloats.push(Pi):Vi.nonPositionedInlineLevel.push(Pi);xr(Pn,Pi,nn?Pi:We,ni)}else dr.styles.isInlineLevel()?De.inlineLevel.push(Pn):De.nonInlineLevel.push(Pn),xr(Pn,De,We,ni);sa(dr.flags,8)&&sc(dr,ni)})},sc=function(ye,De){for(var We=ye instanceof ct?ye.start:1,ut=ye instanceof ct?ye.reversed:!1,dr=0;dr<De.length;dr++){var nn=De[dr];nn.container instanceof st&&typeof nn.container.value=="number"&&nn.container.value!==0&&(We=nn.container.value),nn.listValue=ie(We,nn.container.styles.listStyleType,!0),We+=ut?-1:1}},ju=function(ye){var De=new tc(ye,null),We=new Ac(De),ut=[];return yc(De,We,We,ut),sc(De.container,ut),We},hc=function(ye,De){switch(De){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftPaddingBox,ye.topRightBorderBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightPaddingBox,ye.bottomRightBorderBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftPaddingBox,ye.topLeftBorderBox,ye.topLeftPaddingBox)}},bc=function(ye,De){switch(De){case 0:return Cu(ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox,ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox);case 1:return Cu(ye.topRightBorderBox,ye.topRightBorderDoubleOuterBox,ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox);case 2:return Cu(ye.bottomRightBorderBox,ye.bottomRightBorderDoubleOuterBox,ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox);case 3:default:return Cu(ye.bottomLeftBorderBox,ye.bottomLeftBorderDoubleOuterBox,ye.topLeftBorderBox,ye.topLeftBorderDoubleOuterBox)}},Tc=function(ye,De){switch(De){case 0:return Cu(ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox,ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox);case 1:return Cu(ye.topRightBorderDoubleInnerBox,ye.topRightPaddingBox,ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox);case 2:return Cu(ye.bottomRightBorderDoubleInnerBox,ye.bottomRightPaddingBox,ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox);case 3:default:return Cu(ye.bottomLeftBorderDoubleInnerBox,ye.bottomLeftPaddingBox,ye.topLeftBorderDoubleInnerBox,ye.topLeftPaddingBox)}},wc=function(ye,De){switch(De){case 0:return Pu(ye.topLeftBorderStroke,ye.topRightBorderStroke);case 1:return Pu(ye.topRightBorderStroke,ye.bottomRightBorderStroke);case 2:return Pu(ye.bottomRightBorderStroke,ye.bottomLeftBorderStroke);case 3:default:return Pu(ye.bottomLeftBorderStroke,ye.topLeftBorderStroke)}},Pu=function(ye,De){var We=[];return El(ye)?We.push(ye.subdivide(.5,!1)):We.push(ye),El(De)?We.push(De.subdivide(.5,!0)):We.push(De),We},Cu=function(ye,De,We,ut){var dr=[];return El(ye)?dr.push(ye.subdivide(.5,!1)):dr.push(ye),El(We)?dr.push(We.subdivide(.5,!0)):dr.push(We),El(ut)?dr.push(ut.subdivide(.5,!0).reverse()):dr.push(ut),El(De)?dr.push(De.subdivide(.5,!1).reverse()):dr.push(De),dr},fc=function(ye){var De=ye.bounds,We=ye.styles;return De.add(We.borderLeftWidth,We.borderTopWidth,-(We.borderRightWidth+We.borderLeftWidth),-(We.borderTopWidth+We.borderBottomWidth))},lc=function(ye){var De=ye.styles,We=ye.bounds,ut=ca(De.paddingLeft,We.width),dr=ca(De.paddingRight,We.width),nn=ca(De.paddingTop,We.width),Sn=ca(De.paddingBottom,We.width);return We.add(ut+De.borderLeftWidth,nn+De.borderTopWidth,-(De.borderRightWidth+De.borderLeftWidth+ut+dr),-(De.borderTopWidth+De.borderBottomWidth+nn+Sn))},Sc=function(ye,De){return ye===0?De.bounds:ye===2?lc(De):fc(De)},Cc=function(ye,De){return ye===0?De.bounds:ye===2?lc(De):fc(De)},Gu=function(ye,De,We){var ut=Sc(wu(ye.styles.backgroundOrigin,De),ye),dr=Cc(wu(ye.styles.backgroundClip,De),ye),nn=Fu(wu(ye.styles.backgroundSize,De),We,ut),Sn=nn[0],Pn=nn[1],ni=Qi(wu(ye.styles.backgroundPosition,De),ut.width-Sn,ut.height-Pn),Vi=Ku(wu(ye.styles.backgroundRepeat,De),ni,nn,ut,dr),Pi=Math.round(ut.left+ni[0]),$i=Math.round(ut.top+ni[1]);return[Vi,Pi,$i,Sn,Pn]},Hu=function(ye){return _n(ye)&&ye.value===Ii.AUTO},Xu=function(ye){return typeof ye=="number"},Fu=function(ye,De,We){var ut=De[0],dr=De[1],nn=De[2],Sn=ye[0],Pn=ye[1];if(!Sn)return[0,0];if(Ki(Sn)&&Pn&&Ki(Pn))return[ca(Sn,We.width),ca(Pn,We.height)];var ni=Xu(nn);if(_n(Sn)&&(Sn.value===Ii.CONTAIN||Sn.value===Ii.COVER)){if(Xu(nn)){var Vi=We.width/We.height;return Vi<nn!==(Sn.value===Ii.COVER)?[We.width,We.width/nn]:[We.height*nn,We.height]}return[We.width,We.height]}var Pi=Xu(ut),$i=Xu(dr),Za=Pi||$i;if(Hu(Sn)&&(!Pn||Hu(Pn))){if(Pi&&$i)return[ut,dr];if(!ni&&!Za)return[We.width,We.height];if(Za&&ni){var eo=Pi?ut:dr*nn,po=$i?dr:ut/nn;return[eo,po]}var us=Pi?ut:We.width,Yo=$i?dr:We.height;return[us,Yo]}if(ni){var Po=0,$s=0;return Ki(Sn)?Po=ca(Sn,We.width):Ki(Pn)&&($s=ca(Pn,We.height)),Hu(Sn)?Po=$s*nn:(!Pn||Hu(Pn))&&($s=Po/nn),[Po,$s]}var cl=null,zs=null;if(Ki(Sn)?cl=ca(Sn,We.width):Pn&&Ki(Pn)&&(zs=ca(Pn,We.height)),cl!==null&&(!Pn||Hu(Pn))&&(zs=Pi&&$i?cl/ut*dr:We.height),zs!==null&&Hu(Sn)&&(cl=Pi&&$i?zs/dr*ut:We.width),cl!==null&&zs!==null)return[cl,zs];throw new Error("Unable to calculate background-size for element")},wu=function(ye,De){var We=ye[De];return typeof We=="undefined"?ye[0]:We},Ku=function(ye,De,We,ut,dr){var nn=De[0],Sn=De[1],Pn=We[0],ni=We[1];switch(ye){case 2:return[new Ja(Math.round(ut.left),Math.round(ut.top+Sn)),new Ja(Math.round(ut.left+ut.width),Math.round(ut.top+Sn)),new Ja(Math.round(ut.left+ut.width),Math.round(ni+ut.top+Sn)),new Ja(Math.round(ut.left),Math.round(ni+ut.top+Sn))];case 3:return[new Ja(Math.round(ut.left+nn),Math.round(ut.top)),new Ja(Math.round(ut.left+nn+Pn),Math.round(ut.top)),new Ja(Math.round(ut.left+nn+Pn),Math.round(ut.height+ut.top)),new Ja(Math.round(ut.left+nn),Math.round(ut.height+ut.top))];case 1:return[new Ja(Math.round(ut.left+nn),Math.round(ut.top+Sn)),new Ja(Math.round(ut.left+nn+Pn),Math.round(ut.top+Sn)),new Ja(Math.round(ut.left+nn+Pn),Math.round(ut.top+Sn+ni)),new Ja(Math.round(ut.left+nn),Math.round(ut.top+Sn+ni))];default:return[new Ja(Math.round(dr.left),Math.round(dr.top)),new Ja(Math.round(dr.left+dr.width),Math.round(dr.top)),new Ja(Math.round(dr.left+dr.width),Math.round(dr.height+dr.top)),new Ja(Math.round(dr.left),Math.round(dr.height+dr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function xr(ye){this._data={},this._document=ye}return xr.prototype.parseMetrics=function(ye,De){var We=this._document.createElement("div"),ut=this._document.createElement("img"),dr=this._document.createElement("span"),nn=this._document.body;We.style.visibility="hidden",We.style.fontFamily=ye,We.style.fontSize=De,We.style.margin="0",We.style.padding="0",We.style.whiteSpace="nowrap",nn.appendChild(We),ut.src=uc,ut.width=1,ut.height=1,ut.style.margin="0",ut.style.padding="0",ut.style.verticalAlign="baseline",dr.style.fontFamily=ye,dr.style.fontSize=De,dr.style.margin="0",dr.style.padding="0",dr.appendChild(this._document.createTextNode(cc)),We.appendChild(dr),We.appendChild(ut);var Sn=ut.offsetTop-dr.offsetTop+2;We.removeChild(dr),We.appendChild(this._document.createTextNode(cc)),We.style.lineHeight="normal",ut.style.verticalAlign="super";var Pn=ut.offsetTop-We.offsetTop+2;return nn.removeChild(We),{baseline:Sn,middle:Pn}},xr.prototype.getMetrics=function(ye,De){var We=ye+" "+De;return typeof this._data[We]=="undefined"&&(this._data[We]=this.parseMetrics(ye,De)),this._data[We]},xr}(),Ec=function(){function xr(ye,De){this.context=ye,this.options=De}return xr}(),pc=1e4,mc=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;return ut._activeEffects=[],ut.canvas=We.canvas?We.canvas:document.createElement("canvas"),ut.ctx=ut.canvas.getContext("2d"),We.canvas||(ut.canvas.width=Math.floor(We.width*We.scale),ut.canvas.height=Math.floor(We.height*We.scale),ut.canvas.style.width=We.width+"px",ut.canvas.style.height=We.height+"px"),ut.fontMetrics=new xc(document),ut.ctx.scale(ut.options.scale,ut.options.scale),ut.ctx.translate(-We.x,-We.y),ut.ctx.textBaseline="bottom",ut._activeEffects=[],ut.context.logger.debug("Canvas renderer initialized ("+We.width+"x"+We.height+") with scale "+We.scale),ut}return ye.prototype.applyEffects=function(De){for(var We=this;this._activeEffects.length;)this.popEffect();De.forEach(function(ut){return We.applyEffect(ut)})},ye.prototype.applyEffect=function(De){this.ctx.save(),Vu(De)&&(this.ctx.globalAlpha=De.opacity),Yl(De)&&(this.ctx.translate(De.offsetX,De.offsetY),this.ctx.transform(De.matrix[0],De.matrix[1],De.matrix[2],De.matrix[3],De.matrix[4],De.matrix[5]),this.ctx.translate(-De.offsetX,-De.offsetY)),Tu(De)&&(this.path(De.path),this.ctx.clip()),this._activeEffects.push(De)},ye.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ye.prototype.renderStack=function(De){return A(this,void 0,void 0,function(){var We;return m(this,function(ut){switch(ut.label){case 0:return We=De.element.container.styles,We.isVisible()?[4,this.renderStackContent(De)]:[3,2];case 1:ut.sent(),ut.label=2;case 2:return[2]}})})},ye.prototype.renderNode=function(De){return A(this,void 0,void 0,function(){return m(this,function(We){switch(We.label){case 0:if(sa(De.container.flags,16))debugger;return De.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(De)]:[3,3];case 1:return We.sent(),[4,this.renderNodeContent(De)];case 2:We.sent(),We.label=3;case 3:return[2]}})})},ye.prototype.renderTextWithLetterSpacing=function(De,We,ut){var dr=this;if(We===0)this.ctx.fillText(De.text,De.bounds.left,De.bounds.top+ut);else{var nn=fu(De.text);nn.reduce(function(Sn,Pn){return dr.ctx.fillText(Pn,Sn,De.bounds.top+ut),Sn+dr.ctx.measureText(Pn).width},De.bounds.left)}},ye.prototype.createFontStyle=function(De){var We=De.fontVariant.filter(function(nn){return nn==="normal"||nn==="small-caps"}).join(""),ut=Nc(De.fontFamily).join(", "),dr=en(De.fontSize)?""+De.fontSize.number+De.fontSize.unit:De.fontSize.number+"px";return[[De.fontStyle,We,De.fontWeight,dr,ut].join(" "),ut,dr]},ye.prototype.renderTextNode=function(De,We){return A(this,void 0,void 0,function(){var ut,dr,nn,Sn,Pn,ni,Vi,Pi,$i=this;return m(this,function(Za){return ut=this.createFontStyle(We),dr=ut[0],nn=ut[1],Sn=ut[2],this.ctx.font=dr,this.ctx.direction=We.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Pn=this.fontMetrics.getMetrics(nn,Sn),ni=Pn.baseline,Vi=Pn.middle,Pi=We.paintOrder,De.textBounds.forEach(function(eo){Pi.forEach(function(po){switch(po){case 0:$i.ctx.fillStyle=Va(We.color),$i.renderTextWithLetterSpacing(eo,We.letterSpacing,ni);var us=We.textShadow;us.length&&eo.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){$i.ctx.shadowColor=Va(Yo.color),$i.ctx.shadowOffsetX=Yo.offsetX.number*$i.options.scale,$i.ctx.shadowOffsetY=Yo.offsetY.number*$i.options.scale,$i.ctx.shadowBlur=Yo.blur.number,$i.renderTextWithLetterSpacing(eo,We.letterSpacing,ni)}),$i.ctx.shadowColor="",$i.ctx.shadowOffsetX=0,$i.ctx.shadowOffsetY=0,$i.ctx.shadowBlur=0),We.textDecorationLine.length&&($i.ctx.fillStyle=Va(We.textDecorationColor||We.color),We.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:$i.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top+ni),eo.bounds.width,1);break;case 2:$i.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top),eo.bounds.width,1);break;case 3:$i.ctx.fillRect(eo.bounds.left,Math.ceil(eo.bounds.top+Vi),eo.bounds.width,1);break}}));break;case 1:We.webkitTextStrokeWidth&&eo.text.trim().length&&($i.ctx.strokeStyle=Va(We.webkitTextStrokeColor),$i.ctx.lineWidth=We.webkitTextStrokeWidth,$i.ctx.lineJoin=window.chrome?"miter":"round",$i.ctx.strokeText(eo.text,eo.bounds.left,eo.bounds.top+ni)),$i.ctx.strokeStyle="",$i.ctx.lineWidth=0,$i.ctx.lineJoin="miter";break}})}),[2]})})},ye.prototype.renderReplacedElement=function(De,We,ut){if(ut&&De.intrinsicWidth>0&&De.intrinsicHeight>0){var dr=lc(De),nn=Uu(We);this.path(nn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ut,0,0,De.intrinsicWidth,De.intrinsicHeight,dr.left,dr.top,dr.width,dr.height),this.ctx.restore()}},ye.prototype.renderNodeContent=function(De){return A(this,void 0,void 0,function(){var We,ut,dr,nn,Sn,Pn,ni,ni,Vi,Pi,$i,Za,eo,po,us,Yo,Po,$s,cl,ni,zs,eo,Yo;return m(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(De.getEffects(4)),We=De.container,ut=De.curves,dr=We.styles,nn=0,Sn=We.textNodes,Ro.label=1;case 1:return nn<Sn.length?(Pn=Sn[nn],[4,this.renderTextNode(Pn,dr)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return nn++,[3,1];case 4:if(!(We instanceof Ae))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(We.src)];case 6:return ni=Ro.sent(),this.renderReplacedElement(We,ut,ni),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+We.src),[3,8];case 8:if(We instanceof Te&&this.renderReplacedElement(We,ut,We.canvas),!(We instanceof ze))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(We.svg)];case 10:return ni=Ro.sent(),this.renderReplacedElement(We,ut,ni),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+We.svg.substring(0,255)),[3,12];case 12:return We instanceof ta&&We.tree?(Vi=new ye(this.context,{scale:this.options.scale,backgroundColor:We.backgroundColor,x:0,y:0,width:We.width,height:We.height}),[4,Vi.render(We.tree)]):[3,14];case 13:Pi=Ro.sent(),We.width&&We.height&&this.ctx.drawImage(Pi,0,0,We.width,We.height,We.bounds.left,We.bounds.top,We.bounds.width,We.bounds.height),Ro.label=14;case 14:if(We instanceof bi&&($i=Math.min(We.bounds.width,We.bounds.height),We.type===zr?We.checked&&(this.ctx.save(),this.path([new Ja(We.bounds.left+$i*.39363,We.bounds.top+$i*.79),new Ja(We.bounds.left+$i*.16,We.bounds.top+$i*.5549),new Ja(We.bounds.left+$i*.27347,We.bounds.top+$i*.44071),new Ja(We.bounds.left+$i*.39694,We.bounds.top+$i*.5649),new Ja(We.bounds.left+$i*.72983,We.bounds.top+$i*.23),new Ja(We.bounds.left+$i*.84,We.bounds.top+$i*.34085),new Ja(We.bounds.left+$i*.39363,We.bounds.top+$i*.79)]),this.ctx.fillStyle=Va(Yn),this.ctx.fill(),this.ctx.restore()):We.type===Nn&&(We.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(We.bounds.left+$i/2,We.bounds.top+$i/2,$i/4,0,Math.PI*2,!0),this.ctx.fillStyle=Va(Yn),this.ctx.fill(),this.ctx.restore()))),_c(We)&&We.value.length){Za=this.createFontStyle(dr),eo=Za[0],po=Za[1],us=this.fontMetrics.getMetrics(eo,po).baseline,this.ctx.font=eo,this.ctx.fillStyle=Va(dr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(We.styles.textAlign),Yo=lc(We),Po=0;switch(We.styles.textAlign){case 1:Po+=Yo.width/2;break;case 2:Po+=Yo.width;break}$s=Yo.add(Po,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Ja(Yo.left,Yo.top),new Ja(Yo.left+Yo.width,Yo.top),new Ja(Yo.left+Yo.width,Yo.top+Yo.height),new Ja(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dl(We.value,$s),dr.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(We.styles.display,2048))return[3,20];if(!(We.styles.listStyleImage!==null))return[3,19];if(cl=We.styles.listStyleImage,!(cl.type===0))return[3,18];ni=void 0,zs=cl.url,Ro.label=15;case 15:return Ro.trys.push([15,17,,18]),[4,this.context.cache.match(zs)];case 16:return ni=Ro.sent(),this.ctx.drawImage(ni,We.bounds.left-(ni.width+10),We.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+zs),[3,18];case 18:return[3,20];case 19:De.listValue&&We.styles.listStyleType!==-1&&(eo=this.createFontStyle(dr)[0],this.ctx.font=eo,this.ctx.fillStyle=Va(dr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new h(We.bounds.left,We.bounds.top+ca(We.styles.paddingTop,We.bounds.width),We.bounds.width,zo(dr.lineHeight,dr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dl(De.listValue,Yo),dr.letterSpacing,zo(dr.lineHeight,dr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},ye.prototype.renderStackContent=function(De){return A(this,void 0,void 0,function(){var We,ut,dr,nn,Sn,dr,Pn,ni,dr,Vi,Pi,dr,$i,Za,dr,eo,po,dr,us,Yo,dr;return m(this,function(Po){switch(Po.label){case 0:if(sa(De.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(De.element)];case 1:Po.sent(),We=0,ut=De.negativeZIndex,Po.label=2;case 2:return We<ut.length?(dr=ut[We],[4,this.renderStack(dr)]):[3,5];case 3:Po.sent(),Po.label=4;case 4:return We++,[3,2];case 5:return[4,this.renderNodeContent(De.element)];case 6:Po.sent(),nn=0,Sn=De.nonInlineLevel,Po.label=7;case 7:return nn<Sn.length?(dr=Sn[nn],[4,this.renderNode(dr)]):[3,10];case 8:Po.sent(),Po.label=9;case 9:return nn++,[3,7];case 10:Pn=0,ni=De.nonPositionedFloats,Po.label=11;case 11:return Pn<ni.length?(dr=ni[Pn],[4,this.renderStack(dr)]):[3,14];case 12:Po.sent(),Po.label=13;case 13:return Pn++,[3,11];case 14:Vi=0,Pi=De.nonPositionedInlineLevel,Po.label=15;case 15:return Vi<Pi.length?(dr=Pi[Vi],[4,this.renderStack(dr)]):[3,18];case 16:Po.sent(),Po.label=17;case 17:return Vi++,[3,15];case 18:$i=0,Za=De.inlineLevel,Po.label=19;case 19:return $i<Za.length?(dr=Za[$i],[4,this.renderNode(dr)]):[3,22];case 20:Po.sent(),Po.label=21;case 21:return $i++,[3,19];case 22:eo=0,po=De.zeroOrAutoZIndexOrTransformedOrOpacity,Po.label=23;case 23:return eo<po.length?(dr=po[eo],[4,this.renderStack(dr)]):[3,26];case 24:Po.sent(),Po.label=25;case 25:return eo++,[3,23];case 26:us=0,Yo=De.positiveZIndex,Po.label=27;case 27:return us<Yo.length?(dr=Yo[us],[4,this.renderStack(dr)]):[3,30];case 28:Po.sent(),Po.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},ye.prototype.mask=function(De){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(De.slice(0).reverse()),this.ctx.closePath()},ye.prototype.path=function(De){this.ctx.beginPath(),this.formatPath(De),this.ctx.closePath()},ye.prototype.formatPath=function(De){var We=this;De.forEach(function(ut,dr){var nn=El(ut)?ut.start:ut;dr===0?We.ctx.moveTo(nn.x,nn.y):We.ctx.lineTo(nn.x,nn.y),El(ut)&&We.ctx.bezierCurveTo(ut.startControl.x,ut.startControl.y,ut.endControl.x,ut.endControl.y,ut.end.x,ut.end.y)})},ye.prototype.renderRepeat=function(De,We,ut,dr){this.path(De),this.ctx.fillStyle=We,this.ctx.translate(ut,dr),this.ctx.fill(),this.ctx.translate(-ut,-dr)},ye.prototype.resizeImage=function(De,We,ut){var dr;if(De.width===We&&De.height===ut)return De;var nn=(dr=this.canvas.ownerDocument)!==null&&dr!==void 0?dr:document,Sn=nn.createElement("canvas");Sn.width=Math.max(1,We),Sn.height=Math.max(1,ut);var Pn=Sn.getContext("2d");return Pn.drawImage(De,0,0,De.width,De.height,0,0,We,ut),Sn},ye.prototype.renderBackgroundImage=function(De){return A(this,void 0,void 0,function(){var We,ut,dr,nn,Sn,Pn;return m(this,function(ni){switch(ni.label){case 0:We=De.styles.backgroundImage.length-1,ut=function(Pi){var $i,Za,eo,po,us,Yo,Po,$s,cl,zs,po,us,Yo,Po,$s,Ro,Al,bl,Vs,_u,Mu,Ou,eu,rc,cl,Wu,po,Zu,$u,Po,$s,qu,us,Yo,nc,zu,ec,ic,ac,Yu,oc,Qu;return m(this,function(dc){switch(dc.label){case 0:if(!(Pi.type===0))return[3,5];$i=void 0,Za=Pi.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,dr.context.cache.match(Za)];case 2:return $i=dc.sent(),[3,4];case 3:return dc.sent(),dr.context.logger.error("Error loading background-image "+Za),[3,4];case 4:return $i&&(eo=Gu(De,We,[$i.width,$i.height,$i.width/$i.height]),po=eo[0],us=eo[1],Yo=eo[2],Po=eo[3],$s=eo[4],cl=dr.ctx.createPattern(dr.resizeImage($i,Po,$s),"repeat"),dr.renderRepeat(po,cl,us,Yo)),[3,6];case 5:Gr(Pi)?(zs=Gu(De,We,[null,null,null]),po=zs[0],us=zs[1],Yo=zs[2],Po=zs[3],$s=zs[4],Ro=ts(Pi.angle,Po,$s),Al=Ro[0],bl=Ro[1],Vs=Ro[2],_u=Ro[3],Mu=Ro[4],Ou=document.createElement("canvas"),Ou.width=Po,Ou.height=$s,eu=Ou.getContext("2d"),rc=eu.createLinearGradient(bl,_u,Vs,Mu),Uo(Pi.stops,Al).forEach(function(gc){return rc.addColorStop(gc.stop,Va(gc.color))}),eu.fillStyle=rc,eu.fillRect(0,0,Po,$s),Po>0&&$s>0&&(cl=dr.ctx.createPattern(Ou,"repeat"),dr.renderRepeat(po,cl,us,Yo))):ri(Pi)&&(Wu=Gu(De,We,[null,null,null]),po=Wu[0],Zu=Wu[1],$u=Wu[2],Po=Wu[3],$s=Wu[4],qu=Pi.position.length===0?[Hi]:Pi.position,us=ca(qu[0],Po),Yo=ca(qu[qu.length-1],$s),nc=Io(Pi,us,Yo,Po,$s),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=dr.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),Uo(Pi.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Va(gc.color))}),dr.path(po),dr.ctx.fillStyle=ic,zu!==ec?(ac=De.bounds.left+.5*De.bounds.width,Yu=De.bounds.top+.5*De.bounds.height,oc=ec/zu,Qu=1/oc,dr.ctx.save(),dr.ctx.translate(ac,Yu),dr.ctx.transform(1,0,0,oc,0,0),dr.ctx.translate(-ac,-Yu),dr.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Po,$s*Qu),dr.ctx.restore()):dr.ctx.fill())),dc.label=6;case 6:return We--,[2]}})},dr=this,nn=0,Sn=De.styles.backgroundImage.slice(0).reverse(),ni.label=1;case 1:return nn<Sn.length?(Pn=Sn[nn],[5,ut(Pn)]):[3,4];case 2:ni.sent(),ni.label=3;case 3:return nn++,[3,1];case 4:return[2]}})})},ye.prototype.renderSolidBorder=function(De,We,ut){return A(this,void 0,void 0,function(){return m(this,function(dr){return this.path(hc(ut,We)),this.ctx.fillStyle=Va(De),this.ctx.fill(),[2]})})},ye.prototype.renderDoubleBorder=function(De,We,ut,dr){return A(this,void 0,void 0,function(){var nn,Sn;return m(this,function(Pn){switch(Pn.label){case 0:return We<3?[4,this.renderSolidBorder(De,ut,dr)]:[3,2];case 1:return Pn.sent(),[2];case 2:return nn=bc(dr,ut),this.path(nn),this.ctx.fillStyle=Va(De),this.ctx.fill(),Sn=Tc(dr,ut),this.path(Sn),this.ctx.fill(),[2]}})})},ye.prototype.renderNodeBackgroundAndBorders=function(De){return A(this,void 0,void 0,function(){var We,ut,dr,nn,Sn,Pn,ni,Vi,Pi=this;return m(this,function($i){switch($i.label){case 0:return this.applyEffects(De.getEffects(2)),We=De.container.styles,ut=!_a(We.backgroundColor)||We.backgroundImage.length,dr=[{style:We.borderTopStyle,color:We.borderTopColor,width:We.borderTopWidth},{style:We.borderRightStyle,color:We.borderRightColor,width:We.borderRightWidth},{style:We.borderBottomStyle,color:We.borderBottomColor,width:We.borderBottomWidth},{style:We.borderLeftStyle,color:We.borderLeftColor,width:We.borderLeftWidth}],nn=Oc(wu(We.backgroundClip,0),De.curves),ut||We.boxShadow.length?(this.ctx.save(),this.path(nn),this.ctx.clip(),_a(We.backgroundColor)||(this.ctx.fillStyle=Va(We.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(De.container)]):[3,2];case 1:$i.sent(),this.ctx.restore(),We.boxShadow.slice(0).reverse().forEach(function(Za){Pi.ctx.save();var eo=lu(De.curves),po=Za.inset?0:pc,us=vc(eo,-po+(Za.inset?1:-1)*Za.spread.number,(Za.inset?1:-1)*Za.spread.number,Za.spread.number*(Za.inset?-2:2),Za.spread.number*(Za.inset?-2:2));Za.inset?(Pi.path(eo),Pi.ctx.clip(),Pi.mask(us)):(Pi.mask(eo),Pi.ctx.clip(),Pi.path(us)),Pi.ctx.shadowOffsetX=Za.offsetX.number+po,Pi.ctx.shadowOffsetY=Za.offsetY.number,Pi.ctx.shadowColor=Va(Za.color),Pi.ctx.shadowBlur=Za.blur.number,Pi.ctx.fillStyle=Za.inset?Va(Za.color):"rgba(0,0,0,1)",Pi.ctx.fill(),Pi.ctx.restore()}),$i.label=2;case 2:Sn=0,Pn=0,ni=dr,$i.label=3;case 3:return Pn<ni.length?(Vi=ni[Pn],Vi.style!==0&&!_a(Vi.color)&&Vi.width>0?Vi.style===2?[4,this.renderDashedDottedBorder(Vi.color,Vi.width,Sn,De.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return $i.sent(),[3,11];case 5:return Vi.style===3?[4,this.renderDashedDottedBorder(Vi.color,Vi.width,Sn,De.curves,3)]:[3,7];case 6:return $i.sent(),[3,11];case 7:return Vi.style===4?[4,this.renderDoubleBorder(Vi.color,Vi.width,Sn,De.curves)]:[3,9];case 8:return $i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Vi.color,Sn,De.curves)];case 10:$i.sent(),$i.label=11;case 11:Sn++,$i.label=12;case 12:return Pn++,[3,3];case 13:return[2]}})})},ye.prototype.renderDashedDottedBorder=function(De,We,ut,dr,nn){return A(this,void 0,void 0,function(){var Sn,Pn,ni,Vi,Pi,$i,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,zs,Ro;return m(this,function(Al){return this.ctx.save(),Sn=wc(dr,ut),Pn=hc(dr,ut),nn===2&&(this.path(Pn),this.ctx.clip()),El(Pn[0])?(ni=Pn[0].start.x,Vi=Pn[0].start.y):(ni=Pn[0].x,Vi=Pn[0].y),El(Pn[1])?(Pi=Pn[1].end.x,$i=Pn[1].end.y):(Pi=Pn[1].x,$i=Pn[1].y),ut===0||ut===2?Za=Math.abs(ni-Pi):Za=Math.abs(Vi-$i),this.ctx.beginPath(),nn===3?this.formatPath(Sn):this.formatPath(Pn.slice(0,2)),eo=We<3?We*3:We*2,po=We<3?We*2:We,nn===3&&(eo=We,po=We),us=!0,Za<=eo*2?us=!1:Za<=eo*2+po?(Yo=Za/(2*eo+po),eo*=Yo,po*=Yo):(Po=Math.floor((Za+po)/(eo+po)),$s=(Za-Po*eo)/(Po-1),cl=(Za-(Po+1)*eo)/Po,po=cl<=0||Math.abs(po-$s)<Math.abs(po-cl)?$s:cl),us&&(nn===3?this.ctx.setLineDash([0,eo+po]):this.ctx.setLineDash([eo,po])),nn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=We):this.ctx.lineWidth=We*2+1.1,this.ctx.strokeStyle=Va(De),this.ctx.stroke(),this.ctx.setLineDash([]),nn===2&&(El(Pn[0])&&(zs=Pn[3],Ro=Pn[0],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke()),El(Pn[1])&&(zs=Pn[1],Ro=Pn[2],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ye.prototype.render=function(De){return A(this,void 0,void 0,function(){var We;return m(this,function(ut){switch(ut.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),We=ju(De),[4,this.renderStack(We)];case 1:return ut.sent(),this.applyEffects([]),[2,this.canvas]}})})},ye}(Ec),_c=function(ye){return ye instanceof Yi||ye instanceof ua?!0:ye instanceof bi&&ye.type!==Nn&&ye.type!==zr},Oc=function(ye,De){switch(ye){case 0:return lu(De);case 2:return Kl(De);case 1:default:return Uu(De)}},Ic=function(ye){switch(ye){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(ye){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ye.filter(function(De){return Lc.indexOf(De)===-1}):ye},Dc=function(xr){p(ye,xr);function ye(De,We){var ut=xr.call(this,De,We)||this;return ut.canvas=We.canvas?We.canvas:document.createElement("canvas"),ut.ctx=ut.canvas.getContext("2d"),ut.options=We,ut.canvas.width=Math.floor(We.width*We.scale),ut.canvas.height=Math.floor(We.height*We.scale),ut.canvas.style.width=We.width+"px",ut.canvas.style.height=We.height+"px",ut.ctx.scale(ut.options.scale,ut.options.scale),ut.ctx.translate(-We.x,-We.y),ut.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+We.width+"x"+We.height+" at "+We.x+","+We.y+") with scale "+We.scale),ut}return ye.prototype.render=function(De){return A(this,void 0,void 0,function(){var We,ut;return m(this,function(dr){switch(dr.label){case 0:return We=xu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,De),[4,Rc(We)];case 1:return ut=dr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(ut,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ye}(Ec),Rc=function(ye){return new Promise(function(De,We){var ut=new Image;ut.onload=function(){De(ut)},ut.onerror=We,ut.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ye))})},kc=function(){function xr(ye){var De=ye.id,We=ye.enabled;this.id=De,this.enabled=We,this.start=Date.now()}return xr.prototype.debug=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},xr.prototype.getTime=function(){return Date.now()-this.start},xr.prototype.info=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,f([this.id,this.getTime()+"ms"],ye)))},xr.prototype.warn=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},xr.prototype.error=function(){for(var ye=[],De=0;De<arguments.length;De++)ye[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,f([this.id,this.getTime()+"ms"],ye)):this.info.apply(this,ye))},xr.instances={},xr}(),Mc=function(){function xr(ye,De){var We;this.windowBounds=De,this.instanceName="#"+xr.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:ye.logging}),this.cache=(We=ye.cache)!==null&&We!==void 0?We:new Ss(this,ye)}return xr.instanceCount=1,xr}(),Pc=function(ye,De){return De===void 0&&(De={}),Fc(ye,De)};typeof window!="undefined"&&Mo.setContext(window);var Fc=function(ye,De){return A(void 0,void 0,void 0,function(){var We,ut,dr,nn,Sn,Pn,ni,Vi,Pi,$i,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,Al,bl,Al,Vs,_u,Mu,Ou,eu,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return m(this,function(Qu){switch(Qu.label){case 0:if(!ye||typeof ye!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(We=ye.ownerDocument,!We)throw new Error("Element is not attached to a Document");if(ut=We.defaultView,!ut)throw new Error("Document is not attached to a Window");return dr={allowTaint:(Vs=De.allowTaint)!==null&&Vs!==void 0?Vs:!1,imageTimeout:(_u=De.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:De.proxy,useCORS:(Mu=De.useCORS)!==null&&Mu!==void 0?Mu:!1},nn=x({logging:(Ou=De.logging)!==null&&Ou!==void 0?Ou:!0,cache:De.cache},dr),Sn={windowWidth:(eu=De.windowWidth)!==null&&eu!==void 0?eu:ut.innerWidth,windowHeight:(rc=De.windowHeight)!==null&&rc!==void 0?rc:ut.innerHeight,scrollX:(Wu=De.scrollX)!==null&&Wu!==void 0?Wu:ut.pageXOffset,scrollY:(Zu=De.scrollY)!==null&&Zu!==void 0?Zu:ut.pageYOffset},Pn=new h(Sn.scrollX,Sn.scrollY,Sn.windowWidth,Sn.windowHeight),ni=new Mc(nn,Pn),Vi=($u=De.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Pi={allowTaint:(qu=De.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:De.onclone,ignoreElements:De.ignoreElements,inlineImages:Vi,copyStyles:Vi},ni.logger.debug("Starting document clone with size "+Pn.width+"x"+Pn.height+" scrolled to "+-Pn.left+","+-Pn.top),$i=new ge(ni,ye,Pi),Za=$i.clonedReferenceElement,Za?[4,$i.toIFrame(We,Pn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return eo=Qu.sent(),po=Fr(Za)||bt(Za)?a(Za.ownerDocument):u(ni,Za),us=po.width,Yo=po.height,Po=po.left,$s=po.top,cl=Bc(ni,Za,De.backgroundColor),zs={canvas:De.canvas,backgroundColor:cl,scale:(zu=(nc=De.scale)!==null&&nc!==void 0?nc:ut.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=De.x)!==null&&ec!==void 0?ec:0)+Po,y:((ic=De.y)!==null&&ic!==void 0?ic:0)+$s,width:(ac=De.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=De.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Vi?(ni.logger.debug("Document cloned, using foreign object rendering"),Al=new Dc(ni,zs),[4,Al.render(Za)]):[3,3];case 2:return Ro=Qu.sent(),[3,5];case 3:return ni.logger.debug("Document cloned, element located at "+Po+","+$s+" with size "+us+"x"+Yo+" using computed rendering"),ni.logger.debug("Starting DOM parsing"),bl=Sa(ni,Za),cl===bl.styles.backgroundColor&&(bl.styles.backgroundColor=So.TRANSPARENT),ni.logger.debug("Starting renderer for element at "+zs.x+","+zs.y+" with size "+zs.width+"x"+zs.height),Al=new mc(ni,zs),[4,Al.render(bl)];case 4:Ro=Qu.sent(),Qu.label=5;case 5:return((oc=De.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ge.destroy(eo)||ni.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ni.logger.debug("Finished rendering"),[2,Ro]}})})},Bc=function(ye,De,We){var ut=De.ownerDocument,dr=ut.documentElement?ao(ye,getComputedStyle(ut.documentElement).backgroundColor):So.TRANSPARENT,nn=ut.body?ao(ye,getComputedStyle(ut.body).backgroundColor):So.TRANSPARENT,Sn=typeof We=="string"?ao(ye,We):We===null?So.TRANSPARENT:4294967295;return De===ut.documentElement?_a(dr)?_a(nn)?Sn:nn:dr:Sn};return Pc})},wPhX:function(k,D,n){"use strict";n.d(D,"b",function(){return i}),n.d(D,"a",function(){return t}),n.d(D,"k",function(){return o}),n.d(D,"h",function(){return e}),n.d(D,"i",function(){return l}),n.d(D,"g",function(){return r}),n.d(D,"c",function(){return s}),n.d(D,"d",function(){return c}),n.d(D,"j",function(){return v}),n.d(D,"e",function(){return b}),n.d(D,"f",function(){return S});var y=n("KQm4"),p=n("U8pU"),x=n("Ff2n"),A=n("q1tI"),m=n.n(A),f=n("Kwbf"),h=n("lr6o"),u=.25,a=2;function i(E,C){var _=E.slice(),T=_.indexOf(C);return T>=0&&_.splice(T,1),_}function t(E,C){var _=E.slice();return _.indexOf(C)===-1&&_.push(C),_}function o(E){return E.split("-")}function e(E,C){return"".concat(E,"-").concat(C)}function l(E){return E&&E.type&&E.type.isTreeNode}function r(E,C){var _=[E],T=C[E];function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(I){var R=I.key,M=I.children;_.push(R),w(M)})}return w(T.children),_}function s(E,C){var _=E.clientY,T=C.selectHandle.getBoundingClientRect(),w=T.top,O=T.bottom,I=T.height,R=Math.max(I*u,a);return _<=w+R?-1:_>=O-R?1:0}function c(E,C){if(!E)return;var _=C.multiple;return _?E.slice():E.length?[E[0]]:E}var d=function(C){return C};function g(E,C){if(!E)return[];var _=C||{},T=_.processProps,w=T===void 0?d:T,O=Array.isArray(E)?E:[E];return O.map(function(I){var R=I.children,M=Object(x.a)(I,["children"]),F=g(R,C);return m.a.createElement(h.a,Object.assign({},w(M)),F)})}function v(E){if(!E)return null;var C;if(Array.isArray(E))C={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(p.a)(E)==="object")C={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function b(E,C){var _=new Set;function T(w){if(_.has(w))return;var O=C[w];if(!O)return;_.add(w);var I=O.parent,R=O.node;if(R.disabled)return;I&&T(I.key)}return(E||[]).forEach(function(w){T(w)}),Object(y.a)(_)}function S(E){var C={};return Object.keys(E).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(C[_]=E[_])}),C}},wXyp:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("ygfH")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="CheckOutlined";var i=A.forwardRef(a);D.default=i},wYyv:function(k,D,n){"use strict";var y=n("R5yR"),p=n("5wUe"),x=function(f,h,u){var a=h<0?f.length+h:h;if(a>=0&&a<f.length){var i=u<0?f.length+u:u,t=f.splice(h,1),o=p(t,1),e=o[0];f.splice(i,0,e)}},A=function(f,h,u){return f=y(f),x(f,h,u),f};k.exports=A,k.exports.mutate=x},wZgz:function(k,D,n){(function(y,p,x){k.exports=D=p(n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.BlockCipher,m=p.algo,f=[],h=[],u=[],a=[],i=[],t=[],o=[],e=[],l=[],r=[];(function(){for(var d=[],g=0;g<256;g++)g<128?d[g]=g<<1:d[g]=g<<1^283;for(var v=0,b=0,g=0;g<256;g++){var S=b^b<<1^b<<2^b<<3^b<<4;S=S>>>8^S&255^99,f[v]=S,h[S]=v;var E=d[v],C=d[E],_=d[C],T=d[S]*257^S*16843008;u[v]=T<<24|T>>>8,a[v]=T<<16|T>>>16,i[v]=T<<8|T>>>24,t[v]=T;var T=_*16843009^C*65537^E*257^v*16843008;o[S]=T<<24|T>>>8,e[S]=T<<16|T>>>16,l[S]=T<<8|T>>>24,r[S]=T,v?(v=E^d[d[d[_^E]]],b^=d[d[b]]):v=b=1}})();var s=[0,1,2,4,8,16,32,64,128,27,54],c=m.AES=A.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var v=this._keyPriorReset=this._key,b=v.words,S=v.sigBytes/4,E=this._nRounds=S+6,C=(E+1)*4,_=this._keySchedule=[],T=0;T<C;T++)T<S?_[T]=b[T]:(g=_[T-1],T%S?S>6&&T%S==4&&(g=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[T/S|0]<<24),_[T]=_[T-S]^g);for(var w=this._invKeySchedule=[],O=0;O<C;O++){var T=C-O;if(O%4)var g=_[T];else var g=_[T-4];O<4||T<=4?w[O]=g:w[O]=o[f[g>>>24]]^e[f[g>>>16&255]]^l[f[g>>>8&255]]^r[f[g&255]]}},encryptBlock:function(g,v){this._doCryptBlock(g,v,this._keySchedule,u,a,i,t,f)},decryptBlock:function(g,v){var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b,this._doCryptBlock(g,v,this._invKeySchedule,o,e,l,r,h);var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b},_doCryptBlock:function(g,v,b,S,E,C,_,T){for(var w=this._nRounds,O=g[v]^b[0],I=g[v+1]^b[1],R=g[v+2]^b[2],M=g[v+3]^b[3],F=4,P=1;P<w;P++){var X=S[O>>>24]^E[I>>>16&255]^C[R>>>8&255]^_[M&255]^b[F++],B=S[I>>>24]^E[R>>>16&255]^C[M>>>8&255]^_[O&255]^b[F++],j=S[R>>>24]^E[M>>>16&255]^C[O>>>8&255]^_[I&255]^b[F++],W=S[M>>>24]^E[O>>>16&255]^C[I>>>8&255]^_[R&255]^b[F++];O=X,I=B,R=j,M=W}var X=(T[O>>>24]<<24|T[I>>>16&255]<<16|T[R>>>8&255]<<8|T[M&255])^b[F++],B=(T[I>>>24]<<24|T[R>>>16&255]<<16|T[M>>>8&255]<<8|T[O&255])^b[F++],j=(T[R>>>24]<<24|T[M>>>16&255]<<16|T[O>>>8&255]<<8|T[I&255])^b[F++],W=(T[M>>>24]<<24|T[O>>>16&255]<<16|T[I>>>8&255]<<8|T[R&255])^b[F++];g[v]=X,g[v+1]=B,g[v+2]=j,g[v+3]=W},keySize:256/32});p.AES=A._createHelper(c)}(),y.AES})},wbyO:function(k,D,n){(function(y,p){k.exports=D=p(n("Ib8C"))})(this,function(y){return function(){var p=y,x=p.lib,A=x.WordArray,m=p.enc,f=m.Base64url={stringify:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=a.words,o=a.sigBytes,e=i?this._safe_map:this._map;a.clamp();for(var l=[],r=0;r<o;r+=3)for(var s=t[r>>>2]>>>24-r%4*8&255,c=t[r+1>>>2]>>>24-(r+1)%4*8&255,d=t[r+2>>>2]>>>24-(r+2)%4*8&255,g=s<<16|c<<8|d,v=0;v<4&&r+v*.75<o;v++)l.push(e.charAt(g>>>6*(3-v)&63));var b=e.charAt(64);if(b)for(;l.length%4;)l.push(b);return l.join("")},parse:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=a.length,o=i?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<o.length;l++)e[o.charCodeAt(l)]=l}var r=o.charAt(64);if(r){var s=a.indexOf(r);s!==-1&&(t=s)}return h(a,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function h(u,a,i){for(var t=[],o=0,e=0;e<a;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,r=i[u.charCodeAt(e)]>>>6-e%4*2,s=l|r;t[o>>>2]|=s<<24-o%4*8,o++}return A.create(t,o)}}(),y.enc.Base64url})},wgjA:function(k,D,n){"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},whJP:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("lwsE"),f=n.n(m),h=n("W8MJ"),u=n.n(h),a=n("7W2i"),i=n.n(a),t=n("LQ03"),o=n.n(t),e=n("q1tI"),l=n.n(e),r=n("Y1PL"),s=n("BGR+"),c=n("TSYQ"),d=n.n(c),g=n("LlR5"),v=n("H84U"),b=n("mh/l"),S=function(E){i()(_,E);var C=o()(_);function _(T){var w;f()(this,_),w=C.call(this,T),w.focus=function(){w.resizableTextArea.textArea.focus()},w.saveTextArea=function(I){w.resizableTextArea=I==null?void 0:I.resizableTextArea},w.saveClearableInput=function(I){w.clearableInput=I},w.handleChange=function(I){w.setValue(I.target.value),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.handleReset=function(I){w.setValue("",function(){w.focus()}),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.renderTextArea=function(I,R){return e.createElement(r.default,p()({},Object(s.default)(w.props,["allowClear","bordered"]),{className:d()(w.props.className,A()({},"".concat(I,"-borderless"),!R)),prefixCls:I,onChange:w.handleChange,ref:w.saveTextArea}))},w.renderComponent=function(I){var R=I.getPrefixCls,M=I.direction,F=w.state.value,P=w.props,X=P.prefixCls,B=P.bordered,j=B===void 0?!0:B,W=R("input",X);return e.createElement(g.a,p()({},w.props,{prefixCls:W,direction:M,inputType:"text",value:Object(b.b)(F),element:w.renderTextArea(W,j),handleReset:w.handleReset,ref:w.saveClearableInput,triggerFocus:w.focus,bordered:j}))};var O=typeof T.value=="undefined"?T.defaultValue:T.value;return w.state={value:O},w}return u()(_,[{key:"setValue",value:function(w,O){this.props.value===void 0&&this.setState({value:w},O)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(v.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(w){return w.value!==void 0?{value:w.value}:null}}]),_}(e.Component);D.a=S},whVF:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=n("lNSK"),p=x(n("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function A(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function m(u,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function f(u,a,i){return a&&m(u.prototype,a),i&&m(u,i),u}var h=function(){function u(){A(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(i){this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),o=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=[o],l=o.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,d=0;d<e.length;d++)s.set(e[d],c),c+=e[d].length;o=s}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,o}}]),u}();D.default=h},wr5s:function(k,D,n){var y=n("IwbS"),p=y.extendShape,x=p({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(A,m){var f=m.cx,h=m.cy,u=Math.max(m.r0||0,0),a=Math.max(m.r,0),i=(a-u)*.5,t=u+i,o=m.startAngle,e=m.endAngle,l=m.clockwise,r=Math.cos(o),s=Math.sin(o),c=Math.cos(e),d=Math.sin(e),g=l?e-o<Math.PI*2:o-e<Math.PI*2;g&&(A.moveTo(r*u+f,s*u+h),A.arc(r*t+f,s*t+h,i,-Math.PI+o,o,!l)),A.arc(f,h,a,o,e,!l),A.moveTo(c*a+f,d*a+h),A.arc(c*t+f,d*t+h,i,e-Math.PI*2,e-Math.PI,!l),u!==0&&(A.arc(f,h,u,e,o,l),A.moveTo(r*u+f,d*u+h)),A.closePath()}});k.exports=x},wt3j:function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("/IIm"),A=n("EMyp"),m=A.layoutCovers,f=y.extendComponentView({type:"brush",init:function(u,a){this.ecModel=u,this.api=a,this.model,(this._brushController=new x(a.getZr())).on("brush",p.bind(this._onBrush,this)).mount()},render:function(u){return this.model=u,h.apply(this,arguments)},updateTransform:function(u,a){return m(a),h.apply(this,arguments)},updateView:h,dispose:function(){this._brushController.dispose()},_onBrush:function(u,a){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(u,this.ecModel),(!a.isEnd||a.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:p.clone(u),$from:i}),a.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:p.clone(u),$from:i})}});function h(u,a,i,t){(!t||t.$from!==u.id)&&this._brushController.setPanels(u.brushTargetManager.makePanelOpts(i)).enableBrush(u.brushOption).updateCovers(u.areas.slice())}k.exports=f},wy8a:function(k,D,n){var y=n("KxBF");function p(x,A,m){var f=x.length;return m=m===void 0?f:m,!A&&m>=f?x:y(x,A,m)}k.exports=p},x3X8:function(k,D,n){var y=n("KxfA"),p=y.retrieveRawValue;function x(A,m){var f=A.mapDimension("defaultedLabel",!0),h=f.length;if(h===1)return p(A,m,f[0]);if(h){for(var u=[],a=0;a<f.length;a++){var i=p(A,m,f[a]);u.push(i)}return u.join(" ")}}D.getDefaultLabel=x},x54q:function(k,D,n){},x6Kt:function(k,D,n){var y=n("y+Vt"),p=n("VpOo"),x=n("nPnh"),A=x.subPixelOptimizeRect,m={},f=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(u,a){var i,t,o,e;this.subPixelOptimize?(A(m,a,this.style),i=m.x,t=m.y,o=m.width,e=m.height,m.r=a.r,a=m):(i=a.x,t=a.y,o=a.width,e=a.height),a.r?p.buildPath(u,a):u.rect(i,t,o,e),u.closePath();return}});k.exports=f},xGfz:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PlusSquareOutlined";var h=D.a=p.forwardRef(f)},xKMd:function(k,D){function n(p,x){this.getAllNames=function(){var A=x();return A.mapArray(A.getName)},this.containName=function(A){var m=x();return m.indexOfName(A)>=0},this.indexOfName=function(A){var m=p();return m.indexOfName(A)},this.getItemVisual=function(A,m){var f=p();return f.getItemVisual(A,m)}}var y=n;k.exports=y},xO64:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(n("8K/p"));function p(r){return r&&r.__esModule?r:{default:r}}function x(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(c){return typeof c}:x=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},x(r)}function A(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 d=s[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(r,d.key,d)}}function f(r,s,c){return s&&m(r.prototype,s),c&&m(r,c),r}function h(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(d,g){return d.__proto__=g,d},u(r,s)}function a(r){var s=o();return function(){var d=e(r),g;if(s){var v=e(this).constructor;g=Reflect.construct(d,arguments,v)}else g=d.apply(this,arguments);return i(this,g)}}function i(r,s){return s&&(x(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 o(){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){h(c,r);var s=a(c);function c(){return A(this,c),s.apply(this,arguments)}return f(c,[{key:"_pngRect",value:function(g,v,b,S,E,C,_){var T=this._readData(E);return T===null?!1:(C.imageRect(g,v,b,S,"image/png",T),!0)}},{key:"_basicRect",value:function(g,v,b,S,E,C,_,T){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=l},xOOu:function(k,D,n){(function(y,p,x){var A,A;/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/!function(m){k.exports=m()}(function(){return function m(f,h,u){function a(o,e){if(!h[o]){if(!f[o]){var l=typeof A=="function"&&A;if(!e&&l)return A(o,!0);if(i)return i(o,!0);var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r}var s=h[o]={exports:{}};f[o][0].call(s.exports,function(c){var d=f[o][1][c];return a(d||c)},s,s.exports,m,f,h,u)}return h[o].exports}for(var i=typeof A=="function"&&A,t=0;t<u.length;t++)a(u[t]);return a}({1:[function(m,f,h){"use strict";var u=m("./utils"),a=m("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";h.encode=function(t){for(var o,e,l,r,s,c,d,g=[],v=0,b=t.length,S=b,E=u.getTypeOf(t)!=="string";v<t.length;)S=b-v,l=E?(o=t[v++],e=v<b?t[v++]:0,v<b?t[v++]:0):(o=t.charCodeAt(v++),e=v<b?t.charCodeAt(v++):0,v<b?t.charCodeAt(v++):0),r=o>>2,s=(3&o)<<4|e>>4,c=1<S?(15&e)<<2|l>>6:64,d=2<S?63&l:64,g.push(i.charAt(r)+i.charAt(s)+i.charAt(c)+i.charAt(d));return g.join("")},h.decode=function(t){var o,e,l,r,s,c,d=0,g=0,v="data:";if(t.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var b,S=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===i.charAt(64)&&S--,t.charAt(t.length-2)===i.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=a.uint8array?new Uint8Array(0|S):new Array(0|S);d<t.length;)o=i.indexOf(t.charAt(d++))<<2|(r=i.indexOf(t.charAt(d++)))>>4,e=(15&r)<<4|(s=i.indexOf(t.charAt(d++)))>>2,l=(3&s)<<6|(c=i.indexOf(t.charAt(d++))),b[g++]=o,s!==64&&(b[g++]=e),c!==64&&(b[g++]=l);return b}},{"./support":30,"./utils":32}],2:[function(m,f,h){"use strict";var u=m("./external"),a=m("./stream/DataWorker"),i=m("./stream/Crc32Probe"),t=m("./stream/DataLengthProbe");function o(e,l,r,s,c){this.compressedSize=e,this.uncompressedSize=l,this.crc32=r,this.compression=s,this.compressedContent=c}o.prototype={getContentWorker:function(){var l=new a(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 a(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,l,r){return e.pipe(new i).pipe(new t("uncompressedSize")).pipe(l.compressWorker(r)).pipe(new t("compressedSize")).withStreamInfo("compression",l)},f.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,f,h){"use strict";var u=m("./stream/GenericWorker");h.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},h.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,f,h){"use strict";var u=m("./utils"),a=function(){for(var i,t=[],o=0;o<256;o++){i=o;for(var e=0;e<8;e++)i=1&i?3988292384^i>>>1:i>>>1;t[o]=i}return t}();f.exports=function(i,t){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(o,e,l,r){var s=a,c=r+l;o^=-1;for(var d=r;d<c;d++)o=o>>>8^s[255&(o^e[d])];return-1^o}(0|t,i,i.length,0):function(o,e,l,r){var s=a,c=r+l;o^=-1;for(var d=r;d<c;d++)o=o>>>8^s[255&(o^e.charCodeAt(d))];return-1^o}(0|t,i,i.length,0):0}},{"./utils":32}],5:[function(m,f,h){"use strict";h.base64=!1,h.binary=!1,h.dir=!1,h.createFolders=!0,h.date=null,h.compression=null,h.compressionOptions=null,h.comment=null,h.unixPermissions=null,h.dosPermissions=null},{}],6:[function(m,f,h){"use strict";var u=null;u=typeof Promise!="undefined"?Promise:m("lie"),f.exports={Promise:u}},{lie:37}],7:[function(m,f,h){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=m("pako"),i=m("./utils"),t=m("./stream/GenericWorker"),o=u?"uint8array":"array";function e(l,r){t.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=r,this.meta={}}h.magic="\b\0",i.inherits(e,t),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(o,l.data),!1)},e.prototype.flush=function(){t.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(r){l.push({data:r,meta:l.meta})}},h.compressWorker=function(l){return new e("Deflate",l)},h.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,f,h){"use strict";function u(s,c){var d,g="";for(d=0;d<c;d++)g+=String.fromCharCode(255&s),s>>>=8;return g}function a(s,c,d,g,v,b){var S,E,C=s.file,_=s.compression,T=b!==o.utf8encode,w=i.transformTo("string",b(C.name)),O=i.transformTo("string",o.utf8encode(C.name)),I=C.comment,R=i.transformTo("string",b(I)),M=i.transformTo("string",o.utf8encode(I)),F=O.length!==C.name.length,P=M.length!==I.length,X="",B="",j="",W=C.dir,z=C.date,V={crc32:0,compressedSize:0,uncompressedSize:0};c&&!d||(V.crc32=s.crc32,V.compressedSize=s.compressedSize,V.uncompressedSize=s.uncompressedSize);var Q=0;c&&(Q|=8),T||!F&&!P||(Q|=2048);var G=0,re=0;W&&(G|=16),v==="UNIX"?(re=798,G|=function(ue,$){var be=ue;return ue||(be=$?16893:33204),(65535&be)<<16}(C.unixPermissions,W)):(re=20,G|=function(ue){return 63&(ue||0)}(C.dosPermissions)),S=z.getUTCHours(),S<<=6,S|=z.getUTCMinutes(),S<<=5,S|=z.getUTCSeconds()/2,E=z.getUTCFullYear()-1980,E<<=4,E|=z.getUTCMonth()+1,E<<=5,E|=z.getUTCDate(),F&&(B=u(1,1)+u(e(w),4)+O,X+="up"+u(B.length,2)+B),P&&(j=u(1,1)+u(e(R),4)+M,X+="uc"+u(j.length,2)+j);var ee="";return ee+=`
\0`,ee+=u(Q,2),ee+=_.magic,ee+=u(S,2),ee+=u(E,2),ee+=u(V.crc32,4),ee+=u(V.compressedSize,4),ee+=u(V.uncompressedSize,4),ee+=u(w.length,2),ee+=u(X.length,2),{fileRecord:l.LOCAL_FILE_HEADER+ee+w+X,dirRecord:l.CENTRAL_FILE_HEADER+u(re,2)+ee+u(R.length,2)+"\0\0\0\0"+u(G,4)+u(g,4)+w+X+R}}var i=m("../utils"),t=m("../stream/GenericWorker"),o=m("../utf8"),e=m("../crc32"),l=m("../signature");function r(s,c,d,g){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=d,this.encodeFileName=g,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(r,t),r.prototype.push=function(s){var c=s.meta.percent||0,d=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:d?(c+100*(d-g-1))/d: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 d=a(s,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:d.fileRecord,meta:{percent:0}})}else this.accumulate=!0},r.prototype.closedSource=function(s){this.accumulate=!1;var c=this.streamFiles&&!s.file.dir,d=a(s,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(d.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:d.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 d=this.bytesWritten-s,g=function(v,b,S,E,C){var _=i.transformTo("string",C(E));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(v,2)+u(v,2)+u(b,4)+u(S,4)+u(_.length,2)+_}(this.dirRecords.length,d,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(d){c.processChunk(d)}),s.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),s.on("error",function(d){c.error(d)}),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 d=0;d<c.length;d++)try{c[d].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,h){"use strict";var u=m("../compressions"),a=m("./ZipFileWorker");h.generateWorker=function(i,t,o){var e=new a(t.streamFiles,o,t.platform,t.encodeFileName),l=0;try{i.forEach(function(r,s){l++;var c=function(b,S){var E=b||S,C=u[E];if(!C)throw new Error(E+" is not a valid compression method !");return C}(s.options.compression,t.compression),d=s.options.compressionOptions||t.compressionOptions||{},g=s.dir,v=s.date;s._compressWorker(c,d).withStreamInfo("file",{name:r,dir:g,date:v,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,h){"use strict";function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new u;for(var i in this)typeof this[i]!="function"&&(a[i]=this[i]);return a}}(u.prototype=m("./object")).loadAsync=m("./load"),u.support=m("./support"),u.defaults=m("./defaults"),u.version="3.10.1",u.loadAsync=function(a,i){return new u().loadAsync(a,i)},u.external=m("./external"),f.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,f,h){"use strict";var u=m("./utils"),a=m("./external"),i=m("./utf8"),t=m("./zipEntries"),o=m("./stream/Crc32Probe"),e=m("./nodejsUtils");function l(r){return new a.Promise(function(s,c){var d=r.decompressed.getContentWorker().pipe(new o);d.on("error",function(g){c(g)}).on("end",function(){d.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:i.utf8decode}),e.isNode&&e.isStream(r)?a.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(d){var g=new t(s);return g.load(d),g}).then(function(d){var g=[a.Promise.resolve(d)],v=d.files;if(s.checkCRC32)for(var b=0;b<v.length;b++)g.push(l(v[b]));return a.Promise.all(g)}).then(function(d){for(var g=d.shift(),v=g.files,b=0;b<v.length;b++){var S=v[b],E=S.fileNameStr,C=u.resolve(S.fileNameStr);c.file(C,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:s.createFolders}),S.dir||(c.file(C).unsafeOriginalName=E)}return g.zipComment.length&&(c.comment=g.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(m,f,h){"use strict";var u=m("../utils"),a=m("../stream/GenericWorker");function i(t,o){a.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(o)}u.inherits(i,a),i.prototype._bindStream=function(t){var o=this;(this._stream=t).pause(),t.on("data",function(e){o.push({data:e,meta:{percent:0}})}).on("error",function(e){o.isPaused?this.generatedError=e:o.error(e)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},f.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,f,h){"use strict";var u=m("readable-stream").Readable;function a(i,t,o){u.call(this,t),this._helper=i;var e=this;i.on("data",function(l,r){e.push(l)||e._helper.pause(),o&&o(r)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}m("../utils").inherits(a,u),a.prototype._read=function(){this._helper.resume()},f.exports=a},{"../utils":32,"readable-stream":16}],14:[function(m,f,h){"use strict";f.exports={isNode:typeof y!="undefined",newBufferFrom:function(a,i){if(y.from&&y.from!==Uint8Array.from)return y.from(a,i);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new y(a,i)},allocBuffer:function(a){if(y.alloc)return y.alloc(a);var i=new y(a);return i.fill(0),i},isBuffer:function(a){return y.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(m,f,h){"use strict";function u(C,_,T){var w,O=i.getTypeOf(_),I=i.extend(T||{},e);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(C=v(C)),I.createFolders&&(w=g(C))&&b.call(this,w,!0);var R=O==="string"&&I.binary===!1&&I.base64===!1;T&&T.binary!==void 0||(I.binary=!R),(_ instanceof l&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",O="string");var M=null;M=_ instanceof l||_ instanceof t?_:c.isNode&&c.isStream(_)?new d(C,_):i.prepareContent(C,_,I.binary,I.optimizedBinaryString,I.base64);var F=new r(C,M,I);this.files[C]=F}var a=m("./utf8"),i=m("./utils"),t=m("./stream/GenericWorker"),o=m("./stream/StreamHelper"),e=m("./defaults"),l=m("./compressedObject"),r=m("./zipObject"),s=m("./generate"),c=m("./nodejsUtils"),d=m("./nodejs/NodejsStreamInputAdapter"),g=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var T=_.lastIndexOf("/");return 0<T?_.substring(0,T):""},v=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},b=function(_,T){return T=T!==void 0?T:e.createFolders,_=v(_),this.files[_]||u.call(this,_,null,{dir:!0,createFolders:T}),this.files[_]};function S(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var T,w,O;for(T in this.files)O=this.files[T],(w=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&_(w,O)},filter:function(_){var T=[];return this.forEach(function(w,O){_(w,O)&&T.push(O)}),T},file:function(_,T,w){if(arguments.length!==1)return _=this.root+_,u.call(this,_,T,w),this;if(S(_)){var O=_;return this.filter(function(R,M){return!M.dir&&O.test(R)})}var I=this.files[this.root+_];return I&&!I.dir?I:null},folder:function(_){if(!_)return this;if(S(_))return this.filter(function(I,R){return R.dir&&_.test(I)});var T=this.root+_,w=b.call(this,T),O=this.clone();return O.root=w.name,O},remove:function(_){_=this.root+_;var T=this.files[_];if(T||(_.slice(-1)!=="/"&&(_+="/"),T=this.files[_]),T&&!T.dir)delete this.files[_];else for(var w=this.filter(function(I,R){return R.name.slice(0,_.length)===_}),O=0;O<w.length;O++)delete this.files[w[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var T,w={};try{if((w=i.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");i.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var O=w.comment||this.comment||"";T=s.generateWorker(this,w,O)}catch(I){(T=new t("error")).error(I)}return new o(T,w.type||"string",w.mimeType)},generateAsync:function(_,T){return this.generateInternalStream(_).accumulate(T)},generateNodeStream:function(_,T){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(T)}};f.exports=E},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(m,f,h){"use strict";f.exports=m("stream")},{stream:void 0}],17:[function(m,f,h){"use strict";var u=m("./DataReader");function a(i){u.call(this,i);for(var t=0;t<this.data.length;t++)i[t]=255&i[t]}m("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data[this.zero+i]},a.prototype.lastIndexOfSignature=function(i){for(var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===o&&this.data[r+2]===e&&this.data[r+3]===l)return r-this.zero;return-1},a.prototype.readAndCheckSignature=function(i){var t=i.charCodeAt(0),o=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),r=this.readData(4);return t===r[0]&&o===r[1]&&e===r[2]&&l===r[3]},a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./DataReader":18}],18:[function(m,f,h){"use strict";var u=m("../utils");function a(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var o,e=0;for(this.checkOffset(t),o=this.index+t-1;o>=this.index;o--)e=(e<<8)+this.byteAt(o);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=a},{"../utils":32}],19:[function(m,f,h){"use strict";var u=m("./Uint8ArrayReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,f,h){"use strict";var u=m("./DataReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},a.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},a.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./DataReader":18}],21:[function(m,f,h){"use strict";var u=m("./ArrayReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},f.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(m,f,h){"use strict";var u=m("../utils"),a=m("../support"),i=m("./ArrayReader"),t=m("./StringReader"),o=m("./NodeBufferReader"),e=m("./Uint8ArrayReader");f.exports=function(l){var r=u.getTypeOf(l);return u.checkSupport(r),r!=="string"||a.uint8array?r==="nodebuffer"?new o(l):a.uint8array?new e(u.transformTo("uint8array",l)):new i(u.transformTo("array",l)):new t(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,f,h){"use strict";h.LOCAL_FILE_HEADER="PK",h.CENTRAL_FILE_HEADER="PK",h.CENTRAL_DIRECTORY_END="PK",h.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",h.ZIP64_CENTRAL_DIRECTORY_END="PK",h.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(m,f,h){"use strict";var u=m("./GenericWorker"),a=m("../utils");function i(t){u.call(this,"ConvertWorker to "+t),this.destType=t}a.inherits(i,u),i.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},f.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(m,f,h){"use strict";var u=m("./GenericWorker"),a=m("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(i,u),i.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},f.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,f,h){"use strict";var u=m("../utils"),a=m("./GenericWorker");function i(t){a.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}u.inherits(i,a),i.prototype.processChunk=function(t){if(t){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+t.data.length}a.prototype.processChunk.call(this,t)},f.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(m,f,h){"use strict";var u=m("../utils"),a=m("./GenericWorker");function i(t){a.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){o.dataIsReady=!0,o.data=e,o.max=e&&e.length||0,o.type=u.getTypeOf(e),o.isPaused||o._tickAndRepeat()},function(e){o.error(e)})}u.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,o=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,o);break;case"uint8array":t=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":t=this.data.slice(this.index,o)}return this.index=o,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},f.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(m,f,h){"use strict";function u(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,t){return this._listeners[i].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,t){if(this._listeners[i])for(var o=0;o<this._listeners[i].length;o++)this._listeners[i][o].call(this,t)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var t=this;return i.on("data",function(o){t.processChunk(o)}),i.on("end",function(){t.end()}),i.on("error",function(o){t.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,t){return this.extraStreamInfo[i]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},f.exports=u},{}],29:[function(m,f,h){"use strict";var u=m("../utils"),a=m("./ConvertWorker"),i=m("./GenericWorker"),t=m("../base64"),o=m("../support"),e=m("../external"),l=null;if(o.nodestream)try{l=m("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function r(c,d){return new e.Promise(function(g,v){var b=[],S=c._internalType,E=c._outputType,C=c._mimeType;c.on("data",function(_,T){b.push(_),d&&d(T)}).on("error",function(_){b=[],v(_)}).on("end",function(){try{var _=function(T,w,O){switch(T){case"blob":return u.newBlob(u.transformTo("arraybuffer",w),O);case"base64":return t.encode(w);default:return u.transformTo(T,w)}}(E,function(T,w){var O,I=0,R=null,M=0;for(O=0;O<w.length;O++)M+=w[O].length;switch(T){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(R=new Uint8Array(M),O=0;O<w.length;O++)R.set(w[O],I),I+=w[O].length;return R;case"nodebuffer":return y.concat(w);default:throw new Error("concat : unsupported type '"+T+"'")}}(S,b),C);g(_)}catch(T){v(T)}b=[]}).resume()})}function s(c,d,g){var v=d;switch(d){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=d,this._mimeType=g,u.checkSupport(v),this._worker=c.pipe(new a(v)),c.lock()}catch(b){this._worker=new i("error"),this._worker.error(b)}}s.prototype={accumulate:function(d){return r(this,d)},on:function(d,g){var v=this;return d==="data"?this._worker.on(d,function(b){g.call(v,b.data,b.meta)}):this._worker.on(d,function(){u.delay(g,arguments,v)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){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"},d)}},f.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(m,f,h){"use strict";if(h.base64=!0,h.array=!0,h.string=!0,h.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",h.nodebuffer=typeof y!="undefined",h.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")h.blob=!1;else{var u=new ArrayBuffer(0);try{h.blob=new Blob([u],{type:"application/zip"}).size===0}catch(i){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(u),h.blob=a.getBlob("application/zip").size===0}catch(t){h.blob=!1}}}try{h.nodestream=!!m("readable-stream").Readable}catch(i){h.nodestream=!1}},{"readable-stream":16}],31:[function(m,f,h){"use strict";for(var u=m("./utils"),a=m("./support"),i=m("./nodejsUtils"),t=m("./stream/GenericWorker"),o=new Array(256),e=0;e<256;e++)o[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;o[254]=o[254]=1;function l(){t.call(this,"utf-8 decode"),this.leftOver=null}function r(){t.call(this,"utf-8 encode")}h.utf8encode=function(s){return a.nodebuffer?i.newBufferFrom(s,"utf-8"):function(c){var d,g,v,b,S,E=c.length,C=0;for(b=0;b<E;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),C+=g<128?1:g<2048?2:g<65536?3:4;for(d=a.uint8array?new Uint8Array(C):new Array(C),b=S=0;S<C;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),g<128?d[S++]=g:(g<2048?d[S++]=192|g>>>6:(g<65536?d[S++]=224|g>>>12:(d[S++]=240|g>>>18,d[S++]=128|g>>>12&63),d[S++]=128|g>>>6&63),d[S++]=128|63&g);return d}(s)},h.utf8decode=function(s){return a.nodebuffer?u.transformTo("nodebuffer",s).toString("utf-8"):function(c){var d,g,v,b,S=c.length,E=new Array(2*S);for(d=g=0;d<S;)if((v=c[d++])<128)E[g++]=v;else if(4<(b=o[v]))E[g++]=65533,d+=b-1;else{for(v&=b===2?31:b===3?15:7;1<b&&d<S;)v=v<<6|63&c[d++],b--;1<b?E[g++]=65533:v<65536?E[g++]=v:(v-=65536,E[g++]=55296|v>>10&1023,E[g++]=56320|1023&v)}return E.length!==g&&(E.subarray?E=E.subarray(0,g):E.length=g),u.applyFromCharCode(E)}(s=u.transformTo(a.uint8array?"uint8array":"array",s))},u.inherits(l,t),l.prototype.processChunk=function(s){var c=u.transformTo(a.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var d=c;(c=new Uint8Array(d.length+this.leftOver.length)).set(this.leftOver,0),c.set(d,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=function(b,S){var E;for((S=S||b.length)>b.length&&(S=b.length),E=S-1;0<=E&&(192&b[E])==128;)E--;return E<0||E===0?S:E+o[b[E]]>S?E:S}(c),v=c;g!==c.length&&(a.uint8array?(v=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(v=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:h.utf8decode(v),meta:s.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:h.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},h.Utf8DecodeWorker=l,u.inherits(r,t),r.prototype.processChunk=function(s){this.push({data:h.utf8encode(s.data),meta:s.meta})},h.Utf8EncodeWorker=r},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,f,h){"use strict";var u=m("./support"),a=m("./base64"),i=m("./nodejsUtils"),t=m("./external");function o(d){return d}function e(d,g){for(var v=0;v<d.length;++v)g[v]=255&d.charCodeAt(v);return g}m("setimmediate"),h.newBlob=function(d,g){h.checkSupport("blob");try{return new Blob([d],{type:g})}catch(b){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(d),v.getBlob(g)}catch(S){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(g,v,b){var S=[],E=0,C=g.length;if(C<=b)return String.fromCharCode.apply(null,g);for(;E<C;)v==="array"||v==="nodebuffer"?S.push(String.fromCharCode.apply(null,g.slice(E,Math.min(E+b,C)))):S.push(String.fromCharCode.apply(null,g.subarray(E,Math.min(E+b,C)))),E+=b;return S.join("")},stringifyByChar:function(g){for(var v="",b=0;b<g.length;b++)v+=String.fromCharCode(g[b]);return v},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(d){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(d){return!1}}()}};function r(d){var g=65536,v=h.getTypeOf(d),b=!0;if(v==="uint8array"?b=l.applyCanBeUsed.uint8array:v==="nodebuffer"&&(b=l.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return l.stringifyByChunk(d,v,g)}catch(S){g=Math.floor(g/2)}return l.stringifyByChar(d)}function s(d,g){for(var v=0;v<d.length;v++)g[v]=d[v];return g}h.applyFromCharCode=r;var c={};c.string={string:o,array:function(g){return e(g,new Array(g.length))},arraybuffer:function(g){return c.string.uint8array(g).buffer},uint8array:function(g){return e(g,new Uint8Array(g.length))},nodebuffer:function(g){return e(g,i.allocBuffer(g.length))}},c.array={string:r,array:o,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(g)}},c.arraybuffer={string:function(g){return r(new Uint8Array(g))},array:function(g){return s(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:o,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.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:o,nodebuffer:function(g){return i.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:o},h.transformTo=function(d,g){if(g=g||"",!d)return g;h.checkSupport(d);var v=h.getTypeOf(g);return c[v][d](g)},h.resolve=function(d){for(var g=d.split("/"),v=[],b=0;b<g.length;b++){var S=g[b];S==="."||S===""&&b!==0&&b!==g.length-1||(S===".."?v.pop():v.push(S))}return v.join("/")},h.getTypeOf=function(d){return typeof d=="string"?"string":Object.prototype.toString.call(d)==="[object Array]"?"array":u.nodebuffer&&i.isBuffer(d)?"nodebuffer":u.uint8array&&d instanceof Uint8Array?"uint8array":u.arraybuffer&&d instanceof ArrayBuffer?"arraybuffer":void 0},h.checkSupport=function(d){if(!u[d.toLowerCase()])throw new Error(d+" is not supported by this platform")},h.MAX_VALUE_16BITS=65535,h.MAX_VALUE_32BITS=-1,h.pretty=function(d){var g,v,b="";for(v=0;v<(d||"").length;v++)b+="\\x"+((g=d.charCodeAt(v))<16?"0":"")+g.toString(16).toUpperCase();return b},h.delay=function(d,g,v){setImmediate(function(){d.apply(v||null,g||[])})},h.inherits=function(d,g){function v(){}v.prototype=g.prototype,d.prototype=new v},h.extend=function(){var d,g,v={};for(d=0;d<arguments.length;d++)for(g in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],g)&&v[g]===void 0&&(v[g]=arguments[d][g]);return v},h.prepareContent=function(d,g,v,b,S){return t.Promise.resolve(g).then(function(E){return u.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(C,_){var T=new FileReader;T.onload=function(w){C(w.target.result)},T.onerror=function(w){_(w.target.error)},T.readAsArrayBuffer(E)}):E}).then(function(E){var C=h.getTypeOf(E);return C?(C==="arraybuffer"?E=h.transformTo("uint8array",E):C==="string"&&(S?E=a.decode(E):v&&b!==!0&&(E=function(_){return e(_,u.uint8array?new Uint8Array(_.length):new Array(_.length))}(E))),E):t.Promise.reject(new Error("Can't read the data of '"+d+"'. 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,h){"use strict";var u=m("./reader/readerFor"),a=m("./utils"),i=m("./signature"),t=m("./zipEntry"),o=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 ("+a.pretty(s)+", expected "+a.pretty(r)+")")}},isSignature:function(r,s){var c=this.reader.index;this.reader.setIndex(r);var d=this.reader.readString(4)===s;return this.reader.setIndex(c),d},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=o.uint8array?"uint8array":"array",c=a.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,d=this.zip64EndOfCentralSize-44;0<d;)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(i.LOCAL_FILE_HEADER),s.readLocalPart(this.reader),s.handleUTF8(),s.processAttributes()},readCentralDir:function(){var r;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.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(i.CENTRAL_DIRECTORY_END);if(r<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(r);var s=r;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(r=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(r),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=s-c;if(0<d)this.isSignature(s,i.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" 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,h){"use strict";var u=m("./reader/readerFor"),a=m("./utils"),i=m("./compressedObject"),t=m("./crc32"),o=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 d,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((d=function(v){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===v)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,d,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 d=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(d),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=u(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var d,g,v,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)d=c.readInt(2),g=c.readInt(2),v=c.readData(g),this.extraFields[d]={id:d,length:g,value:v};c.setIndex(b)},handleUTF8:function(){var c=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var g=a.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var b=a.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var d=u(c.value);return d.readInt(1)!==1||t(this.fileName)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var d=u(c.value);return d.readInt(1)!==1||t(this.fileComment)!==d.readInt(4)?null:o.utf8decode(d.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,h){"use strict";function u(c,d,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=d,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var a=m("./stream/StreamHelper"),i=m("./stream/DataWorker"),t=m("./utf8"),o=m("./compressedObject"),e=m("./stream/GenericWorker");u.prototype={internalStream:function(d){var g=null,v="string";try{if(!d)throw new Error("No output type specified.");var b=(v=d.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var S=!this._dataBinary;S&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!S&&b&&(g=g.pipe(new t.Utf8DecodeWorker))}catch(E){(g=new e("error")).error(E)}return new a(g,v,"")},async:function(d,g){return this.internalStream(d).accumulate(g)},nodeStream:function(d,g){return this.internalStream(d||"nodebuffer").toNodejsStream(g)},_compressWorker:function(d,g){if(this._data instanceof o&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new t.Utf8EncodeWorker)),o.createWorkerFrom(v,d,g)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof e?this._data:new i(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,h){(function(u){"use strict";var a,i,t=u.MutationObserver||u.WebKitMutationObserver;if(t){var o=0,e=new t(c),l=u.document.createTextNode("");e.observe(l,{characterData:!0}),a=function(){l.data=o=++o%2}}else if(u.setImmediate||u.MessageChannel===void 0)a="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var d=u.document.createElement("script");d.onreadystatechange=function(){c(),d.onreadystatechange=null,d.parentNode.removeChild(d),d=null},u.document.documentElement.appendChild(d)}:function(){setTimeout(c,0)};else{var r=new u.MessageChannel;r.port1.onmessage=c,a=function(){r.port2.postMessage(0)}}var s=[];function c(){var d,g;i=!0;for(var v=s.length;v;){for(g=s,s=[],d=-1;++d<v;)g[d]();v=s.length}i=!1}f.exports=function(d){s.push(d)!==1||i||a()}}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,f,h){"use strict";var u=m("immediate");function a(){}var i={},t=["REJECTED"],o=["FULFILLED"],e=["PENDING"];function l(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,v!==a&&d(this,v)}function r(v,b,S){this.promise=v,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function s(v,b,S){u(function(){var E;try{E=b(S)}catch(C){return i.reject(v,C)}E===v?i.reject(v,new TypeError("Cannot resolve promise with itself")):i.resolve(v,E)})}function c(v){var b=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof b=="function")return function(){b.apply(v,arguments)}}function d(v,b){var S=!1;function E(T){S||(S=!0,i.reject(v,T))}function C(T){S||(S=!0,i.resolve(v,T))}var _=g(function(){b(C,E)});_.status==="error"&&E(_.value)}function g(v,b){var S={};try{S.value=v(b),S.status="success"}catch(E){S.status="error",S.value=E}return S}(f.exports=l).prototype.finally=function(v){if(typeof v!="function")return this;var b=this.constructor;return this.then(function(S){return b.resolve(v()).then(function(){return S})},function(S){return b.resolve(v()).then(function(){throw S})})},l.prototype.catch=function(v){return this.then(null,v)},l.prototype.then=function(v,b){if(typeof v!="function"&&this.state===o||typeof b!="function"&&this.state===t)return this;var S=new this.constructor(a);return this.state!==e?s(S,this.state===o?v:b,this.outcome):this.queue.push(new r(S,v,b)),S},r.prototype.callFulfilled=function(v){i.resolve(this.promise,v)},r.prototype.otherCallFulfilled=function(v){s(this.promise,this.onFulfilled,v)},r.prototype.callRejected=function(v){i.reject(this.promise,v)},r.prototype.otherCallRejected=function(v){s(this.promise,this.onRejected,v)},i.resolve=function(v,b){var S=g(c,b);if(S.status==="error")return i.reject(v,S.value);var E=S.value;if(E)d(v,E);else{v.state=o,v.outcome=b;for(var C=-1,_=v.queue.length;++C<_;)v.queue[C].callFulfilled(b)}return v},i.reject=function(v,b){v.state=t,v.outcome=b;for(var S=-1,E=v.queue.length;++S<E;)v.queue[S].callRejected(b);return v},l.resolve=function(v){return v instanceof this?v:i.resolve(new this(a),v)},l.reject=function(v){var b=new this(a);return i.reject(b,v)},l.all=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,E=!1;if(!S)return this.resolve([]);for(var C=new Array(S),_=0,T=-1,w=new this(a);++T<S;)O(v[T],T);return w;function O(I,R){b.resolve(I).then(function(M){C[R]=M,++_!==S||E||(E=!0,i.resolve(w,C))},function(M){E||(E=!0,i.reject(w,M))})}},l.race=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,E=!1;if(!S)return this.resolve([]);for(var C=-1,_=new this(a);++C<S;)T=v[C],b.resolve(T).then(function(w){E||(E=!0,i.resolve(_,w))},function(w){E||(E=!0,i.reject(_,w))});var T;return _}},{immediate:36}],38:[function(m,f,h){"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,h){"use strict";var u=m("./zlib/deflate"),a=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/messages"),o=m("./zlib/zstream"),e=Object.prototype.toString,l=0,r=-1,s=0,c=8;function d(v){if(!(this instanceof d))return new d(v);this.options=a.assign({level:r,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},v||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var S=u.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(S!==l)throw new Error(t[S]);if(b.header&&u.deflateSetHeader(this.strm,b.header),b.dictionary){var E;if(E=typeof b.dictionary=="string"?i.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(S=u.deflateSetDictionary(this.strm,E))!==l)throw new Error(t[S]);this._dict_set=!0}}function g(v,b){var S=new d(b);if(S.push(v,!0),S.err)throw S.msg||t[S.err];return S.result}d.prototype.push=function(v,b){var S,E,C=this.strm,_=this.options.chunkSize;if(this.ended)return!1;E=b===~~b?b:b===!0?4:0,typeof v=="string"?C.input=i.string2buf(v):e.call(v)==="[object ArrayBuffer]"?C.input=new Uint8Array(v):C.input=v,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new a.Buf8(_),C.next_out=0,C.avail_out=_),(S=u.deflate(C,E))!==1&&S!==l)return this.onEnd(S),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(a.shrinkBuf(C.output,C.next_out))):this.onData(a.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&S!==1);return E===4?(S=u.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===l):E!==2||(this.onEnd(l),!(C.avail_out=0))},d.prototype.onData=function(v){this.chunks.push(v)},d.prototype.onEnd=function(v){v===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},h.Deflate=d,h.deflate=g,h.deflateRaw=function(v,b){return(b=b||{}).raw=!0,g(v,b)},h.gzip=function(v,b){return(b=b||{}).gzip=!0,g(v,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,f,h){"use strict";var u=m("./zlib/inflate"),a=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/constants"),o=m("./zlib/messages"),e=m("./zlib/zstream"),l=m("./zlib/gzheader"),r=Object.prototype.toString;function s(d){if(!(this instanceof s))return new s(d);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},d||{});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)||d&&d.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var v=u.inflateInit2(this.strm,g.windowBits);if(v!==t.Z_OK)throw new Error(o[v]);this.header=new l,u.inflateGetHeader(this.strm,this.header)}function c(d,g){var v=new s(g);if(v.push(d,!0),v.err)throw v.msg||o[v.err];return v.result}s.prototype.push=function(d,g){var v,b,S,E,C,_,T=this.strm,w=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof d=="string"?T.input=i.binstring2buf(d):r.call(d)==="[object ArrayBuffer]"?T.input=new Uint8Array(d):T.input=d,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new a.Buf8(w),T.next_out=0,T.avail_out=w),(v=u.inflate(T,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&O&&(_=typeof O=="string"?i.string2buf(O):r.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,v=u.inflateSetDictionary(this.strm,_)),v===t.Z_BUF_ERROR&&I===!0&&(v=t.Z_OK,I=!1),v!==t.Z_STREAM_END&&v!==t.Z_OK)return this.onEnd(v),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&v!==t.Z_STREAM_END&&(T.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=i.utf8border(T.output,T.next_out),E=T.next_out-S,C=i.buf2string(T.output,S),T.next_out=E,T.avail_out=w-E,E&&a.arraySet(T.output,T.output,S,E,0),this.onData(C)):this.onData(a.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(I=!0)}while((0<T.avail_in||T.avail_out===0)&&v!==t.Z_STREAM_END);return v===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(v=u.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(T.avail_out=0))},s.prototype.onData=function(d){this.chunks.push(d)},s.prototype.onEnd=function(d){d===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},h.Inflate=s,h.inflate=c,h.inflateRaw=function(d,g){return(g=g||{}).raw=!0,c(d,g)},h.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,h){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";h.assign=function(t){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var e=o.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},h.shrinkBuf=function(t,o){return t.length===o?t:t.subarray?t.subarray(0,o):(t.length=o,t)};var a={arraySet:function(o,e,l,r,s){if(e.subarray&&o.subarray)o.set(e.subarray(l,l+r),s);else for(var c=0;c<r;c++)o[s+c]=e[l+c]},flattenChunks:function(o){var e,l,r,s,c,d;for(e=r=0,l=o.length;e<l;e++)r+=o[e].length;for(d=new Uint8Array(r),e=s=0,l=o.length;e<l;e++)c=o[e],d.set(c,s),s+=c.length;return d}},i={arraySet:function(o,e,l,r,s){for(var c=0;c<r;c++)o[s+c]=e[l+c]},flattenChunks:function(o){return[].concat.apply([],o)}};h.setTyped=function(t){t?(h.Buf8=Uint8Array,h.Buf16=Uint16Array,h.Buf32=Int32Array,h.assign(h,a)):(h.Buf8=Array,h.Buf16=Array,h.Buf32=Array,h.assign(h,i))},h.setTyped(u)},{}],42:[function(m,f,h){"use strict";var u=m("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var t=new u.Buf8(256),o=0;o<256;o++)t[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function e(l,r){if(r<65537&&(l.subarray&&i||!l.subarray&&a))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,h.string2buf=function(l){var r,s,c,d,g,v=l.length,b=0;for(d=0;d<v;d++)(64512&(s=l.charCodeAt(d)))==55296&&d+1<v&&(64512&(c=l.charCodeAt(d+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),d++),b+=s<128?1:s<2048?2:s<65536?3:4;for(r=new u.Buf8(b),d=g=0;g<b;d++)(64512&(s=l.charCodeAt(d)))==55296&&d+1<v&&(64512&(c=l.charCodeAt(d+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),d++),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},h.buf2binstring=function(l){return e(l,l.length)},h.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},h.buf2string=function(l,r){var s,c,d,g,v=r||l.length,b=new Array(2*v);for(s=c=0;s<v;)if((d=l[s++])<128)b[c++]=d;else if(4<(g=t[d]))b[c++]=65533,s+=g-1;else{for(d&=g===2?31:g===3?15:7;1<g&&s<v;)d=d<<6|63&l[s++],g--;1<g?b[c++]=65533:d<65536?b[c++]=d:(d-=65536,b[c++]=55296|d>>10&1023,b[c++]=56320|1023&d)}return e(b,c)},h.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,h){"use strict";f.exports=function(u,a,i,t){for(var o=65535&u|0,e=u>>>16&65535|0,l=0;i!==0;){for(i-=l=2e3<i?2e3:i;e=e+(o=o+a[t++]|0)|0,--l;);o%=65521,e%=65521}return o|e<<16|0}},{}],44:[function(m,f,h){"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,h){"use strict";var u=function(){for(var a,i=[],t=0;t<256;t++){a=t;for(var o=0;o<8;o++)a=1&a?3988292384^a>>>1:a>>>1;i[t]=a}return i}();f.exports=function(a,i,t,o){var e=u,l=o+t;a^=-1;for(var r=o;r<l;r++)a=a>>>8^e[255&(a^i[r])];return-1^a}},{}],46:[function(m,f,h){"use strict";var u,a=m("../utils/common"),i=m("./trees"),t=m("./adler32"),o=m("./crc32"),e=m("./messages"),l=0,r=4,s=0,c=-2,d=-1,g=4,v=2,b=8,S=9,E=286,C=30,_=19,T=2*E+1,w=15,O=3,I=258,R=I+O+1,M=42,F=113,P=1,X=2,B=3,j=4;function W(oe,ot){return oe.msg=e[ot],ot}function z(oe){return(oe<<1)-(4<oe?9:0)}function V(oe){for(var ot=oe.length;0<=--ot;)oe[ot]=0}function Q(oe){var ot=oe.state,he=ot.pending;he>oe.avail_out&&(he=oe.avail_out),he!==0&&(a.arraySet(oe.output,ot.pending_buf,ot.pending_out,he,oe.next_out),oe.next_out+=he,ot.pending_out+=he,oe.total_out+=he,oe.avail_out-=he,ot.pending-=he,ot.pending===0&&(ot.pending_out=0))}function G(oe,ot){i._tr_flush_block(oe,0<=oe.block_start?oe.block_start:-1,oe.strstart-oe.block_start,ot),oe.block_start=oe.strstart,Q(oe.strm)}function re(oe,ot){oe.pending_buf[oe.pending++]=ot}function ee(oe,ot){oe.pending_buf[oe.pending++]=ot>>>8&255,oe.pending_buf[oe.pending++]=255&ot}function ue(oe,ot){var he,J,Y=oe.max_chain_length,q=oe.strstart,fe=oe.prev_length,we=oe.nice_match,Ne=oe.strstart>oe.w_size-R?oe.strstart-(oe.w_size-R):0,je=oe.window,me=oe.w_mask,Ce=oe.prev,Fe=oe.strstart+I,it=je[q+fe-1],Ct=je[q+fe];oe.prev_length>=oe.good_match&&(Y>>=2),we>oe.lookahead&&(we=oe.lookahead);do if(je[(he=ot)+fe]===Ct&&je[he+fe-1]===it&&je[he]===je[q]&&je[++he]===je[q+1]){q+=2,he++;do;while(je[++q]===je[++he]&&je[++q]===je[++he]&&je[++q]===je[++he]&&je[++q]===je[++he]&&je[++q]===je[++he]&&je[++q]===je[++he]&&je[++q]===je[++he]&&je[++q]===je[++he]&&q<Fe);if(J=I-(Fe-q),q=Fe-I,fe<J){if(oe.match_start=ot,we<=(fe=J))break;it=je[q+fe-1],Ct=je[q+fe]}}while((ot=Ce[ot&me])>Ne&&--Y!=0);return fe<=oe.lookahead?fe:oe.lookahead}function $(oe){var ot,he,J,Y,q,fe,we,Ne,je,me,Ce=oe.w_size;do{if(Y=oe.window_size-oe.lookahead-oe.strstart,oe.strstart>=Ce+(Ce-R)){for(a.arraySet(oe.window,oe.window,Ce,Ce,0),oe.match_start-=Ce,oe.strstart-=Ce,oe.block_start-=Ce,ot=he=oe.hash_size;J=oe.head[--ot],oe.head[ot]=Ce<=J?J-Ce:0,--he;);for(ot=he=Ce;J=oe.prev[--ot],oe.prev[ot]=Ce<=J?J-Ce:0,--he;);Y+=Ce}if(oe.strm.avail_in===0)break;if(fe=oe.strm,we=oe.window,Ne=oe.strstart+oe.lookahead,je=Y,me=void 0,me=fe.avail_in,je<me&&(me=je),he=me===0?0:(fe.avail_in-=me,a.arraySet(we,fe.input,fe.next_in,me,Ne),fe.state.wrap===1?fe.adler=t(fe.adler,we,me,Ne):fe.state.wrap===2&&(fe.adler=o(fe.adler,we,me,Ne)),fe.next_in+=me,fe.total_in+=me,me),oe.lookahead+=he,oe.lookahead+oe.insert>=O)for(q=oe.strstart-oe.insert,oe.ins_h=oe.window[q],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[q+1])&oe.hash_mask;oe.insert&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[q+O-1])&oe.hash_mask,oe.prev[q&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=q,q++,oe.insert--,!(oe.lookahead+oe.insert<O)););}while(oe.lookahead<R&&oe.strm.avail_in!==0)}function be(oe,ot){for(var he,J;;){if(oe.lookahead<R){if($(oe),oe.lookahead<R&&ot===l)return P;if(oe.lookahead===0)break}if(he=0,oe.lookahead>=O&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),he!==0&&oe.strstart-he<=oe.w_size-R&&(oe.match_length=ue(oe,he)),oe.match_length>=O)if(J=i._tr_tally(oe,oe.strstart-oe.match_start,oe.match_length-O),oe.lookahead-=oe.match_length,oe.match_length<=oe.max_lazy_match&&oe.lookahead>=O){for(oe.match_length--;oe.strstart++,oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart,--oe.match_length!=0;);oe.strstart++}else oe.strstart+=oe.match_length,oe.match_length=0,oe.ins_h=oe.window[oe.strstart],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+1])&oe.hash_mask;else J=i._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++;if(J&&(G(oe,!1),oe.strm.avail_out===0))return P}return oe.insert=oe.strstart<O-1?oe.strstart:O-1,ot===r?(G(oe,!0),oe.strm.avail_out===0?B:j):oe.last_lit&&(G(oe,!1),oe.strm.avail_out===0)?P:X}function _e(oe,ot){for(var he,J,Y;;){if(oe.lookahead<R){if($(oe),oe.lookahead<R&&ot===l)return P;if(oe.lookahead===0)break}if(he=0,oe.lookahead>=O&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),oe.prev_length=oe.match_length,oe.prev_match=oe.match_start,oe.match_length=O-1,he!==0&&oe.prev_length<oe.max_lazy_match&&oe.strstart-he<=oe.w_size-R&&(oe.match_length=ue(oe,he),oe.match_length<=5&&(oe.strategy===1||oe.match_length===O&&4096<oe.strstart-oe.match_start)&&(oe.match_length=O-1)),oe.prev_length>=O&&oe.match_length<=oe.prev_length){for(Y=oe.strstart+oe.lookahead-O,J=i._tr_tally(oe,oe.strstart-1-oe.prev_match,oe.prev_length-O),oe.lookahead-=oe.prev_length-1,oe.prev_length-=2;++oe.strstart<=Y&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,he=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),--oe.prev_length!=0;);if(oe.match_available=0,oe.match_length=O-1,oe.strstart++,J&&(G(oe,!1),oe.strm.avail_out===0))return P}else if(oe.match_available){if((J=i._tr_tally(oe,0,oe.window[oe.strstart-1]))&&G(oe,!1),oe.strstart++,oe.lookahead--,oe.strm.avail_out===0)return P}else oe.match_available=1,oe.strstart++,oe.lookahead--}return oe.match_available&&(J=i._tr_tally(oe,0,oe.window[oe.strstart-1]),oe.match_available=0),oe.insert=oe.strstart<O-1?oe.strstart:O-1,ot===r?(G(oe,!0),oe.strm.avail_out===0?B:j):oe.last_lit&&(G(oe,!1),oe.strm.avail_out===0)?P:X}function Ee(oe,ot,he,J,Y){this.good_length=oe,this.max_lazy=ot,this.nice_length=he,this.max_chain=J,this.func=Y}function Xe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*T),this.dyn_dtree=new a.Buf16(2*(2*C+1)),this.bl_tree=new a.Buf16(2*(2*_+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(w+1),this.heap=new a.Buf16(2*E+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*E+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function He(oe){var ot;return oe&&oe.state?(oe.total_in=oe.total_out=0,oe.data_type=v,(ot=oe.state).pending=0,ot.pending_out=0,ot.wrap<0&&(ot.wrap=-ot.wrap),ot.status=ot.wrap?M:F,oe.adler=ot.wrap===2?0:1,ot.last_flush=l,i._tr_init(ot),s):W(oe,c)}function nt(oe){var ot=He(oe);return ot===s&&function(he){he.window_size=2*he.w_size,V(he.head),he.max_lazy_match=u[he.level].max_lazy,he.good_match=u[he.level].good_length,he.nice_match=u[he.level].nice_length,he.max_chain_length=u[he.level].max_chain,he.strstart=0,he.block_start=0,he.lookahead=0,he.insert=0,he.match_length=he.prev_length=O-1,he.match_available=0,he.ins_h=0}(oe.state),ot}function Ie(oe,ot,he,J,Y,q){if(!oe)return c;var fe=1;if(ot===d&&(ot=6),J<0?(fe=0,J=-J):15<J&&(fe=2,J-=16),Y<1||S<Y||he!==b||J<8||15<J||ot<0||9<ot||q<0||g<q)return W(oe,c);J===8&&(J=9);var we=new Xe;return(oe.state=we).strm=oe,we.wrap=fe,we.gzhead=null,we.w_bits=J,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=Y+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+O-1)/O),we.window=new a.Buf8(2*we.w_size),we.head=new a.Buf16(we.hash_size),we.prev=new a.Buf16(we.w_size),we.lit_bufsize=1<<Y+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new a.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=ot,we.strategy=q,we.method=he,nt(oe)}u=[new Ee(0,0,0,0,function(oe,ot){var he=65535;for(he>oe.pending_buf_size-5&&(he=oe.pending_buf_size-5);;){if(oe.lookahead<=1){if($(oe),oe.lookahead===0&&ot===l)return P;if(oe.lookahead===0)break}oe.strstart+=oe.lookahead,oe.lookahead=0;var J=oe.block_start+he;if((oe.strstart===0||oe.strstart>=J)&&(oe.lookahead=oe.strstart-J,oe.strstart=J,G(oe,!1),oe.strm.avail_out===0))return P;if(oe.strstart-oe.block_start>=oe.w_size-R&&(G(oe,!1),oe.strm.avail_out===0))return P}return oe.insert=0,ot===r?(G(oe,!0),oe.strm.avail_out===0?B:j):(oe.strstart>oe.block_start&&(G(oe,!1),oe.strm.avail_out),P)}),new Ee(4,4,8,4,be),new Ee(4,5,16,8,be),new Ee(4,6,32,32,be),new Ee(4,4,16,16,_e),new Ee(8,16,32,32,_e),new Ee(8,16,128,128,_e),new Ee(8,32,128,256,_e),new Ee(32,128,258,1024,_e),new Ee(32,258,258,4096,_e)],h.deflateInit=function(oe,ot){return Ie(oe,ot,b,15,8,0)},h.deflateInit2=Ie,h.deflateReset=nt,h.deflateResetKeep=He,h.deflateSetHeader=function(oe,ot){return oe&&oe.state?oe.state.wrap!==2?c:(oe.state.gzhead=ot,s):c},h.deflate=function(oe,ot){var he,J,Y,q;if(!oe||!oe.state||5<ot||ot<0)return oe?W(oe,c):c;if(J=oe.state,!oe.output||!oe.input&&oe.avail_in!==0||J.status===666&&ot!==r)return W(oe,oe.avail_out===0?-5:c);if(J.strm=oe,he=J.last_flush,J.last_flush=ot,J.status===M)if(J.wrap===2)oe.adler=0,re(J,31),re(J,139),re(J,8),J.gzhead?(re(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),re(J,255&J.gzhead.time),re(J,J.gzhead.time>>8&255),re(J,J.gzhead.time>>16&255),re(J,J.gzhead.time>>24&255),re(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),re(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(re(J,255&J.gzhead.extra.length),re(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(oe.adler=o(oe.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(re(J,0),re(J,0),re(J,0),re(J,0),re(J,0),re(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),re(J,3),J.status=F);else{var fe=b+(J.w_bits-8<<4)<<8;fe|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(fe|=32),fe+=31-fe%31,J.status=F,ee(J,fe),J.strstart!==0&&(ee(J,oe.adler>>>16),ee(J,65535&oe.adler)),oe.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending!==J.pending_buf_size));)re(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending===J.pending_buf_size)){q=1;break}q=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,re(J,q)}while(q!==0);J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),q===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending===J.pending_buf_size)){q=1;break}q=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,re(J,q)}while(q!==0);J.gzhead.hcrc&&J.pending>Y&&(oe.adler=o(oe.adler,J.pending_buf,J.pending-Y,Y)),q===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Q(oe),J.pending+2<=J.pending_buf_size&&(re(J,255&oe.adler),re(J,oe.adler>>8&255),oe.adler=0,J.status=F)):J.status=F),J.pending!==0){if(Q(oe),oe.avail_out===0)return J.last_flush=-1,s}else if(oe.avail_in===0&&z(ot)<=z(he)&&ot!==r)return W(oe,-5);if(J.status===666&&oe.avail_in!==0)return W(oe,-5);if(oe.avail_in!==0||J.lookahead!==0||ot!==l&&J.status!==666){var we=J.strategy===2?function(Ne,je){for(var me;;){if(Ne.lookahead===0&&($(Ne),Ne.lookahead===0)){if(je===l)return P;break}if(Ne.match_length=0,me=i._tr_tally(Ne,0,Ne.window[Ne.strstart]),Ne.lookahead--,Ne.strstart++,me&&(G(Ne,!1),Ne.strm.avail_out===0))return P}return Ne.insert=0,je===r?(G(Ne,!0),Ne.strm.avail_out===0?B:j):Ne.last_lit&&(G(Ne,!1),Ne.strm.avail_out===0)?P:X}(J,ot):J.strategy===3?function(Ne,je){for(var me,Ce,Fe,it,Ct=Ne.window;;){if(Ne.lookahead<=I){if($(Ne),Ne.lookahead<=I&&je===l)return P;if(Ne.lookahead===0)break}if(Ne.match_length=0,Ne.lookahead>=O&&0<Ne.strstart&&(Ce=Ct[Fe=Ne.strstart-1])===Ct[++Fe]&&Ce===Ct[++Fe]&&Ce===Ct[++Fe]){it=Ne.strstart+I;do;while(Ce===Ct[++Fe]&&Ce===Ct[++Fe]&&Ce===Ct[++Fe]&&Ce===Ct[++Fe]&&Ce===Ct[++Fe]&&Ce===Ct[++Fe]&&Ce===Ct[++Fe]&&Ce===Ct[++Fe]&&Fe<it);Ne.match_length=I-(it-Fe),Ne.match_length>Ne.lookahead&&(Ne.match_length=Ne.lookahead)}if(Ne.match_length>=O?(me=i._tr_tally(Ne,1,Ne.match_length-O),Ne.lookahead-=Ne.match_length,Ne.strstart+=Ne.match_length,Ne.match_length=0):(me=i._tr_tally(Ne,0,Ne.window[Ne.strstart]),Ne.lookahead--,Ne.strstart++),me&&(G(Ne,!1),Ne.strm.avail_out===0))return P}return Ne.insert=0,je===r?(G(Ne,!0),Ne.strm.avail_out===0?B:j):Ne.last_lit&&(G(Ne,!1),Ne.strm.avail_out===0)?P:X}(J,ot):u[J.level].func(J,ot);if(we!==B&&we!==j||(J.status=666),we===P||we===B)return oe.avail_out===0&&(J.last_flush=-1),s;if(we===X&&(ot===1?i._tr_align(J):ot!==5&&(i._tr_stored_block(J,0,0,!1),ot===3&&(V(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),Q(oe),oe.avail_out===0))return J.last_flush=-1,s}return ot!==r?s:J.wrap<=0?1:(J.wrap===2?(re(J,255&oe.adler),re(J,oe.adler>>8&255),re(J,oe.adler>>16&255),re(J,oe.adler>>24&255),re(J,255&oe.total_in),re(J,oe.total_in>>8&255),re(J,oe.total_in>>16&255),re(J,oe.total_in>>24&255)):(ee(J,oe.adler>>>16),ee(J,65535&oe.adler)),Q(oe),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?s:1)},h.deflateEnd=function(oe){var ot;return oe&&oe.state?(ot=oe.state.status)!==M&&ot!==69&&ot!==73&&ot!==91&&ot!==103&&ot!==F&&ot!==666?W(oe,c):(oe.state=null,ot===F?W(oe,-3):s):c},h.deflateSetDictionary=function(oe,ot){var he,J,Y,q,fe,we,Ne,je,me=ot.length;if(!oe||!oe.state)return c;if((q=(he=oe.state).wrap)===2||q===1&&he.status!==M||he.lookahead)return c;for(q===1&&(oe.adler=t(oe.adler,ot,me,0)),he.wrap=0,me>=he.w_size&&(q===0&&(V(he.head),he.strstart=0,he.block_start=0,he.insert=0),je=new a.Buf8(he.w_size),a.arraySet(je,ot,me-he.w_size,he.w_size,0),ot=je,me=he.w_size),fe=oe.avail_in,we=oe.next_in,Ne=oe.input,oe.avail_in=me,oe.next_in=0,oe.input=ot,$(he);he.lookahead>=O;){for(J=he.strstart,Y=he.lookahead-(O-1);he.ins_h=(he.ins_h<<he.hash_shift^he.window[J+O-1])&he.hash_mask,he.prev[J&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=J,J++,--Y;);he.strstart=J,he.lookahead=O-1,$(he)}return he.strstart+=he.lookahead,he.block_start=he.strstart,he.insert=he.lookahead,he.lookahead=0,he.match_length=he.prev_length=O-1,he.match_available=0,oe.next_in=we,oe.input=Ne,oe.avail_in=fe,he.wrap=q,s},h.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,f,h){"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,h){"use strict";f.exports=function(u,a){var i,t,o,e,l,r,s,c,d,g,v,b,S,E,C,_,T,w,O,I,R,M,F,P,X;i=u.state,t=u.next_in,P=u.input,o=t+(u.avail_in-5),e=u.next_out,X=u.output,l=e-(a-u.avail_out),r=e+(u.avail_out-257),s=i.dmax,c=i.wsize,d=i.whave,g=i.wnext,v=i.window,b=i.hold,S=i.bits,E=i.lencode,C=i.distcode,_=(1<<i.lenbits)-1,T=(1<<i.distbits)-1;e:do{S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=E[b&_];t:for(;;){if(b>>>=O=w>>>24,S-=O,(O=w>>>16&255)===0)X[e++]=65535&w;else{if(!(16&O)){if((64&O)==0){w=E[(65535&w)+(b&(1<<O)-1)];continue t}if(32&O){i.mode=12;break e}u.msg="invalid literal/length code",i.mode=30;break e}I=65535&w,(O&=15)&&(S<O&&(b+=P[t++]<<S,S+=8),I+=b&(1<<O)-1,b>>>=O,S-=O),S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=C[b&T];r:for(;;){if(b>>>=O=w>>>24,S-=O,!(16&(O=w>>>16&255))){if((64&O)==0){w=C[(65535&w)+(b&(1<<O)-1)];continue r}u.msg="invalid distance code",i.mode=30;break e}if(R=65535&w,S<(O&=15)&&(b+=P[t++]<<S,(S+=8)<O&&(b+=P[t++]<<S,S+=8)),s<(R+=b&(1<<O)-1)){u.msg="invalid distance too far back",i.mode=30;break e}if(b>>>=O,S-=O,(O=e-l)<R){if(d<(O=R-O)&&i.sane){u.msg="invalid distance too far back",i.mode=30;break e}if(F=v,(M=0)===g){if(M+=c-O,O<I){for(I-=O;X[e++]=v[M++],--O;);M=e-R,F=X}}else if(g<O){if(M+=c+g-O,(O-=g)<I){for(I-=O;X[e++]=v[M++],--O;);if(M=0,g<I){for(I-=O=g;X[e++]=v[M++],--O;);M=e-R,F=X}}}else if(M+=g-O,O<I){for(I-=O;X[e++]=v[M++],--O;);M=e-R,F=X}for(;2<I;)X[e++]=F[M++],X[e++]=F[M++],X[e++]=F[M++],I-=3;I&&(X[e++]=F[M++],1<I&&(X[e++]=F[M++]))}else{for(M=e-R;X[e++]=X[M++],X[e++]=X[M++],X[e++]=X[M++],2<(I-=3););I&&(X[e++]=X[M++],1<I&&(X[e++]=X[M++]))}break}}break}}while(t<o&&e<r);t-=I=S>>3,b&=(1<<(S-=I<<3))-1,u.next_in=t,u.next_out=e,u.avail_in=t<o?o-t+5:5-(t-o),u.avail_out=e<r?r-e+257:257-(e-r),i.hold=b,i.bits=S}},{}],49:[function(m,f,h){"use strict";var u=m("../utils/common"),a=m("./adler32"),i=m("./crc32"),t=m("./inffast"),o=m("./inftrees"),e=1,l=2,r=0,s=-2,c=1,d=852,g=592;function v(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(M){var F;return M&&M.state?(F=M.state,M.total_in=M.total_out=F.total=0,M.msg="",F.wrap&&(M.adler=1&F.wrap),F.mode=c,F.last=0,F.havedict=0,F.dmax=32768,F.head=null,F.hold=0,F.bits=0,F.lencode=F.lendyn=new u.Buf32(d),F.distcode=F.distdyn=new u.Buf32(g),F.sane=1,F.back=-1,r):s}function E(M){var F;return M&&M.state?((F=M.state).wsize=0,F.whave=0,F.wnext=0,S(M)):s}function C(M,F){var P,X;return M&&M.state?(X=M.state,F<0?(P=0,F=-F):(P=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?s:(X.window!==null&&X.wbits!==F&&(X.window=null),X.wrap=P,X.wbits=F,E(M))):s}function _(M,F){var P,X;return M?(X=new b,(M.state=X).window=null,(P=C(M,F))!==r&&(M.state=null),P):s}var T,w,O=!0;function I(M){if(O){var F;for(T=new u.Buf32(512),w=new u.Buf32(32),F=0;F<144;)M.lens[F++]=8;for(;F<256;)M.lens[F++]=9;for(;F<280;)M.lens[F++]=7;for(;F<288;)M.lens[F++]=8;for(o(e,M.lens,0,288,T,0,M.work,{bits:9}),F=0;F<32;)M.lens[F++]=5;o(l,M.lens,0,32,w,0,M.work,{bits:5}),O=!1}M.lencode=T,M.lenbits=9,M.distcode=w,M.distbits=5}function R(M,F,P,X){var B,j=M.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new u.Buf8(j.wsize)),X>=j.wsize?(u.arraySet(j.window,F,P-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(X<(B=j.wsize-j.wnext)&&(B=X),u.arraySet(j.window,F,P-X,B,j.wnext),(X-=B)?(u.arraySet(j.window,F,P-X,X,0),j.wnext=X,j.whave=j.wsize):(j.wnext+=B,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=B))),0}h.inflateReset=E,h.inflateReset2=C,h.inflateResetKeep=S,h.inflateInit=function(M){return _(M,15)},h.inflateInit2=_,h.inflate=function(M,F){var P,X,B,j,W,z,V,Q,G,re,ee,ue,$,be,_e,Ee,Xe,He,nt,Ie,oe,ot,he,J,Y=0,q=new u.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return s;(P=M.state).mode===12&&(P.mode=13),W=M.next_out,B=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,re=z,ee=V,ot=r;e:for(;;)switch(P.mode){case c:if(P.wrap===0){P.mode=13;break}for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(2&P.wrap&&Q===35615){q[P.check=0]=255&Q,q[1]=Q>>>8&255,P.check=i(P.check,q,2,0),G=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){M.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){M.msg="unknown compression method",P.mode=30;break}if(G-=4,oe=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=oe;else if(oe>P.wbits){M.msg="invalid window size",P.mode=30;break}P.dmax=1<<oe,M.adler=P.check=1,P.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.flags=Q,(255&P.flags)!=8){M.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){M.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&(q[0]=255&Q,q[1]=Q>>>8&255,P.check=i(P.check,q,2,0)),G=Q=0,P.mode=3;case 3:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.time=Q),512&P.flags&&(q[0]=255&Q,q[1]=Q>>>8&255,q[2]=Q>>>16&255,q[3]=Q>>>24&255,P.check=i(P.check,q,4,0)),G=Q=0,P.mode=4;case 4:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&(q[0]=255&Q,q[1]=Q>>>8&255,P.check=i(P.check,q,2,0)),G=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&(q[0]=255&Q,q[1]=Q>>>8&255,P.check=i(P.check,q,2,0)),G=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(z<(ue=P.length)&&(ue=z),ue&&(P.head&&(oe=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),u.arraySet(P.head.extra,X,j,ue,oe)),512&P.flags&&(P.check=i(P.check,X,ue,j)),z-=ue,j+=ue,P.length-=ue),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(z===0)break e;for(ue=0;oe=X[j+ue++],P.head&&oe&&P.length<65536&&(P.head.name+=String.fromCharCode(oe)),oe&&ue<z;);if(512&P.flags&&(P.check=i(P.check,X,ue,j)),z-=ue,j+=ue,oe)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(z===0)break e;for(ue=0;oe=X[j+ue++],P.head&&oe&&P.length<65536&&(P.head.comment+=String.fromCharCode(oe)),oe&&ue<z;);if(512&P.flags&&(P.check=i(P.check,X,ue,j)),z-=ue,j+=ue,oe)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(65535&P.check)){M.msg="header crc mismatch",P.mode=30;break}G=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),M.adler=P.check=0,P.mode=12;break;case 10:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}M.adler=P.check=v(Q),G=Q=0,P.mode=11;case 11:if(P.havedict===0)return M.next_out=W,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,2;M.adler=P.check=1,P.mode=12;case 12:if(F===5||F===6)break e;case 13:if(P.last){Q>>>=7&G,G-=7&G,P.mode=27;break}for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}switch(P.last=1&Q,G-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(I(P),P.mode=20,F!==6)break;Q>>>=2,G-=2;break e;case 2:P.mode=17;break;case 3:M.msg="invalid block type",P.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){M.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,G=Q=0,P.mode=15,F===6)break e;case 15:P.mode=16;case 16:if(ue=P.length){if(z<ue&&(ue=z),V<ue&&(ue=V),ue===0)break e;u.arraySet(B,X,j,ue,W),z-=ue,j+=ue,V-=ue,W+=ue,P.length-=ue;break}P.mode=12;break;case 17:for(;G<14;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.nlen=257+(31&Q),Q>>>=5,G-=5,P.ndist=1+(31&Q),Q>>>=5,G-=5,P.ncode=4+(15&Q),Q>>>=4,G-=4,286<P.nlen||30<P.ndist){M.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.lens[fe[P.have++]]=7&Q,Q>>>=3,G-=3}for(;P.have<19;)P.lens[fe[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,he={bits:P.lenbits},ot=o(0,P.lens,0,19,P.lencode,0,P.work,he),P.lenbits=he.bits,ot){M.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;Ee=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Xe=65535&Y,!((_e=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Xe<16)Q>>>=_e,G-=_e,P.lens[P.have++]=Xe;else{if(Xe===16){for(J=_e+2;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q>>>=_e,G-=_e,P.have===0){M.msg="invalid bit length repeat",P.mode=30;break}oe=P.lens[P.have-1],ue=3+(3&Q),Q>>>=2,G-=2}else if(Xe===17){for(J=_e+3;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=_e,oe=0,ue=3+(7&(Q>>>=_e)),Q>>>=3,G-=3}else{for(J=_e+7;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=_e,oe=0,ue=11+(127&(Q>>>=_e)),Q>>>=7,G-=7}if(P.have+ue>P.nlen+P.ndist){M.msg="invalid bit length repeat",P.mode=30;break}for(;ue--;)P.lens[P.have++]=oe}}if(P.mode===30)break;if(P.lens[256]===0){M.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,he={bits:P.lenbits},ot=o(e,P.lens,0,P.nlen,P.lencode,0,P.work,he),P.lenbits=he.bits,ot){M.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,he={bits:P.distbits},ot=o(l,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,he),P.distbits=he.bits,ot){M.msg="invalid distances set",P.mode=30;break}if(P.mode=20,F===6)break e;case 20:P.mode=21;case 21:if(6<=z&&258<=V){M.next_out=W,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,t(M,ee),W=M.next_out,B=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Ee=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,Xe=65535&Y,!((_e=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Ee&&(240&Ee)==0){for(He=_e,nt=Ee,Ie=Xe;Ee=(Y=P.lencode[Ie+((Q&(1<<He+nt)-1)>>He)])>>>16&255,Xe=65535&Y,!(He+(_e=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=He,G-=He,P.back+=He}if(Q>>>=_e,G-=_e,P.back+=_e,P.length=Xe,Ee===0){P.mode=26;break}if(32&Ee){P.back=-1,P.mode=12;break}if(64&Ee){M.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Ee,P.mode=22;case 22:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;Ee=(Y=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,Xe=65535&Y,!((_e=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((240&Ee)==0){for(He=_e,nt=Ee,Ie=Xe;Ee=(Y=P.distcode[Ie+((Q&(1<<He+nt)-1)>>He)])>>>16&255,Xe=65535&Y,!(He+(_e=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=He,G-=He,P.back+=He}if(Q>>>=_e,G-=_e,P.back+=_e,64&Ee){M.msg="invalid distance code",P.mode=30;break}P.offset=Xe,P.extra=15&Ee,P.mode=24;case 24:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){M.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(V===0)break e;if(ue=ee-V,P.offset>ue){if((ue=P.offset-ue)>P.whave&&P.sane){M.msg="invalid distance too far back",P.mode=30;break}$=ue>P.wnext?(ue-=P.wnext,P.wsize-ue):P.wnext-ue,ue>P.length&&(ue=P.length),be=P.window}else be=B,$=W-P.offset,ue=P.length;for(V<ue&&(ue=V),V-=ue,P.length-=ue;B[W++]=be[$++],--ue;);P.length===0&&(P.mode=21);break;case 26:if(V===0)break e;B[W++]=P.length,V--,P.mode=21;break;case 27:if(P.wrap){for(;G<32;){if(z===0)break e;z--,Q|=X[j++]<<G,G+=8}if(ee-=V,M.total_out+=ee,P.total+=ee,ee&&(M.adler=P.check=P.flags?i(P.check,B,ee,W-ee):a(P.check,B,ee,W-ee)),ee=V,(P.flags?Q:v(Q))!==P.check){M.msg="incorrect data check",P.mode=30;break}G=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(4294967295&P.total)){M.msg="incorrect length check",P.mode=30;break}G=Q=0}P.mode=29;case 29:ot=1;break e;case 30:ot=-3;break e;case 31:return-4;case 32:default:return s}return M.next_out=W,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,(P.wsize||ee!==M.avail_out&&P.mode<30&&(P.mode<27||F!==4))&&R(M,M.output,M.next_out,ee-M.avail_out)?(P.mode=31,-4):(re-=M.avail_in,ee-=M.avail_out,M.total_in+=re,M.total_out+=ee,P.total+=ee,P.wrap&&ee&&(M.adler=P.check=P.flags?i(P.check,B,ee,M.next_out-ee):a(P.check,B,ee,M.next_out-ee)),M.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(re==0&&ee===0||F===4)&&ot===r&&(ot=-5),ot)},h.inflateEnd=function(M){if(!M||!M.state)return s;var F=M.state;return F.window&&(F.window=null),M.state=null,r},h.inflateGetHeader=function(M,F){var P;return M&&M.state?(2&(P=M.state).wrap)==0?s:((P.head=F).done=!1,r):s},h.inflateSetDictionary=function(M,F){var P,X=F.length;return M&&M.state?(P=M.state).wrap!==0&&P.mode!==11?s:P.mode===11&&a(1,F,X,0)!==P.check?-3:R(M,F,X,X)?(P.mode=31,-4):(P.havedict=1,r):s},h.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,f,h){"use strict";var u=m("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[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,d,g,v){var b,S,E,C,_,T,w,O,I,R=v.bits,M=0,F=0,P=0,X=0,B=0,j=0,W=0,z=0,V=0,Q=0,G=null,re=0,ee=new u.Buf16(16),ue=new u.Buf16(16),$=null,be=0;for(M=0;M<=15;M++)ee[M]=0;for(F=0;F<s;F++)ee[l[r+F]]++;for(B=R,X=15;1<=X&&ee[X]===0;X--);if(X<B&&(B=X),X===0)return c[d++]=20971520,c[d++]=20971520,v.bits=1,0;for(P=1;P<X&&ee[P]===0;P++);for(B<P&&(B=P),M=z=1;M<=15;M++)if(z<<=1,(z-=ee[M])<0)return-1;if(0<z&&(e===0||X!==1))return-1;for(ue[1]=0,M=1;M<15;M++)ue[M+1]=ue[M]+ee[M];for(F=0;F<s;F++)l[r+F]!==0&&(g[ue[l[r+F]]++]=F);if(T=e===0?(G=$=g,19):e===1?(G=a,re-=257,$=i,be-=257,256):(G=t,$=o,-1),M=P,_=d,W=F=Q=0,E=-1,C=(V=1<<(j=B))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(w=M-W,I=g[F]<T?(O=0,g[F]):g[F]>T?(O=$[be+g[F]],G[re+g[F]]):(O=96,0),b=1<<M-W,P=S=1<<j;c[_+(Q>>W)+(S-=b)]=w<<24|O<<16|I|0,S!==0;);for(b=1<<M-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,F++,--ee[M]==0){if(M===X)break;M=l[r+g[F]]}if(B<M&&(Q&C)!==E){for(W===0&&(W=B),_+=P,z=1<<(j=M-W);j+W<X&&!((z-=ee[j+W])<=0);)j++,z<<=1;if(V+=1<<j,e===1&&852<V||e===2&&592<V)return 1;c[E=Q&C]=B<<24|j<<16|_-d|0}}return Q!==0&&(c[_+Q]=M-W<<24|64<<16|0),v.bits=B,0}},{"../utils/common":41}],51:[function(m,f,h){"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,h){"use strict";var u=m("../utils/common"),a=0,i=1;function t(Y){for(var q=Y.length;0<=--q;)Y[q]=0}var o=0,e=29,l=256,r=l+1+e,s=30,c=19,d=2*r+1,g=15,v=16,b=7,S=256,E=16,C=17,_=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(r+2));t(R);var M=new Array(2*s);t(M);var F=new Array(512);t(F);var P=new Array(256);t(P);var X=new Array(e);t(X);var B,j,W,z=new Array(s);function V(Y,q,fe,we,Ne){this.static_tree=Y,this.extra_bits=q,this.extra_base=fe,this.elems=we,this.max_length=Ne,this.has_stree=Y&&Y.length}function Q(Y,q){this.dyn_tree=Y,this.max_code=0,this.stat_desc=q}function G(Y){return Y<256?F[Y]:F[256+(Y>>>7)]}function re(Y,q){Y.pending_buf[Y.pending++]=255&q,Y.pending_buf[Y.pending++]=q>>>8&255}function ee(Y,q,fe){Y.bi_valid>v-fe?(Y.bi_buf|=q<<Y.bi_valid&65535,re(Y,Y.bi_buf),Y.bi_buf=q>>v-Y.bi_valid,Y.bi_valid+=fe-v):(Y.bi_buf|=q<<Y.bi_valid&65535,Y.bi_valid+=fe)}function ue(Y,q,fe){ee(Y,fe[2*q],fe[2*q+1])}function $(Y,q){for(var fe=0;fe|=1&Y,Y>>>=1,fe<<=1,0<--q;);return fe>>>1}function be(Y,q,fe){var we,Ne,je=new Array(g+1),me=0;for(we=1;we<=g;we++)je[we]=me=me+fe[we-1]<<1;for(Ne=0;Ne<=q;Ne++){var Ce=Y[2*Ne+1];Ce!==0&&(Y[2*Ne]=$(je[Ce]++,Ce))}}function _e(Y){var q;for(q=0;q<r;q++)Y.dyn_ltree[2*q]=0;for(q=0;q<s;q++)Y.dyn_dtree[2*q]=0;for(q=0;q<c;q++)Y.bl_tree[2*q]=0;Y.dyn_ltree[2*S]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Ee(Y){8<Y.bi_valid?re(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 Xe(Y,q,fe,we){var Ne=2*q,je=2*fe;return Y[Ne]<Y[je]||Y[Ne]===Y[je]&&we[q]<=we[fe]}function He(Y,q,fe){for(var we=Y.heap[fe],Ne=fe<<1;Ne<=Y.heap_len&&(Ne<Y.heap_len&&Xe(q,Y.heap[Ne+1],Y.heap[Ne],Y.depth)&&Ne++,!Xe(q,we,Y.heap[Ne],Y.depth));)Y.heap[fe]=Y.heap[Ne],fe=Ne,Ne<<=1;Y.heap[fe]=we}function nt(Y,q,fe){var we,Ne,je,me,Ce=0;if(Y.last_lit!==0)for(;we=Y.pending_buf[Y.d_buf+2*Ce]<<8|Y.pending_buf[Y.d_buf+2*Ce+1],Ne=Y.pending_buf[Y.l_buf+Ce],Ce++,we===0?ue(Y,Ne,q):(ue(Y,(je=P[Ne])+l+1,q),(me=T[je])!==0&&ee(Y,Ne-=X[je],me),ue(Y,je=G(--we),fe),(me=w[je])!==0&&ee(Y,we-=z[je],me)),Ce<Y.last_lit;);ue(Y,S,q)}function Ie(Y,q){var fe,we,Ne,je=q.dyn_tree,me=q.stat_desc.static_tree,Ce=q.stat_desc.has_stree,Fe=q.stat_desc.elems,it=-1;for(Y.heap_len=0,Y.heap_max=d,fe=0;fe<Fe;fe++)je[2*fe]!==0?(Y.heap[++Y.heap_len]=it=fe,Y.depth[fe]=0):je[2*fe+1]=0;for(;Y.heap_len<2;)je[2*(Ne=Y.heap[++Y.heap_len]=it<2?++it:0)]=1,Y.depth[Ne]=0,Y.opt_len--,Ce&&(Y.static_len-=me[2*Ne+1]);for(q.max_code=it,fe=Y.heap_len>>1;1<=fe;fe--)He(Y,je,fe);for(Ne=Fe;fe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],He(Y,je,1),we=Y.heap[1],Y.heap[--Y.heap_max]=fe,Y.heap[--Y.heap_max]=we,je[2*Ne]=je[2*fe]+je[2*we],Y.depth[Ne]=(Y.depth[fe]>=Y.depth[we]?Y.depth[fe]:Y.depth[we])+1,je[2*fe+1]=je[2*we+1]=Ne,Y.heap[1]=Ne++,He(Y,je,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(Ct,mt){var Ve,or,dt,Yt,hr,Gt,Pt=mt.dyn_tree,Xt=mt.max_code,Ge=mt.stat_desc.static_tree,pe=mt.stat_desc.has_stree,se=mt.stat_desc.extra_bits,lt=mt.stat_desc.extra_base,Ze=mt.stat_desc.max_length,de=0;for(Yt=0;Yt<=g;Yt++)Ct.bl_count[Yt]=0;for(Pt[2*Ct.heap[Ct.heap_max]+1]=0,Ve=Ct.heap_max+1;Ve<d;Ve++)Ze<(Yt=Pt[2*Pt[2*(or=Ct.heap[Ve])+1]+1]+1)&&(Yt=Ze,de++),Pt[2*or+1]=Yt,Xt<or||(Ct.bl_count[Yt]++,hr=0,lt<=or&&(hr=se[or-lt]),Gt=Pt[2*or],Ct.opt_len+=Gt*(Yt+hr),pe&&(Ct.static_len+=Gt*(Ge[2*or+1]+hr)));if(de!==0){do{for(Yt=Ze-1;Ct.bl_count[Yt]===0;)Yt--;Ct.bl_count[Yt]--,Ct.bl_count[Yt+1]+=2,Ct.bl_count[Ze]--,de-=2}while(0<de);for(Yt=Ze;Yt!==0;Yt--)for(or=Ct.bl_count[Yt];or!==0;)Xt<(dt=Ct.heap[--Ve])||(Pt[2*dt+1]!==Yt&&(Ct.opt_len+=(Yt-Pt[2*dt+1])*Pt[2*dt],Pt[2*dt+1]=Yt),or--)}}(Y,q),be(je,it,Y.bl_count)}function oe(Y,q,fe){var we,Ne,je=-1,me=q[1],Ce=0,Fe=7,it=4;for(me===0&&(Fe=138,it=3),q[2*(fe+1)+1]=65535,we=0;we<=fe;we++)Ne=me,me=q[2*(we+1)+1],++Ce<Fe&&Ne===me||(Ce<it?Y.bl_tree[2*Ne]+=Ce:Ne!==0?(Ne!==je&&Y.bl_tree[2*Ne]++,Y.bl_tree[2*E]++):Ce<=10?Y.bl_tree[2*C]++:Y.bl_tree[2*_]++,je=Ne,it=(Ce=0)===me?(Fe=138,3):Ne===me?(Fe=6,3):(Fe=7,4))}function ot(Y,q,fe){var we,Ne,je=-1,me=q[1],Ce=0,Fe=7,it=4;for(me===0&&(Fe=138,it=3),we=0;we<=fe;we++)if(Ne=me,me=q[2*(we+1)+1],!(++Ce<Fe&&Ne===me)){if(Ce<it)for(;ue(Y,Ne,Y.bl_tree),--Ce!=0;);else Ne!==0?(Ne!==je&&(ue(Y,Ne,Y.bl_tree),Ce--),ue(Y,E,Y.bl_tree),ee(Y,Ce-3,2)):Ce<=10?(ue(Y,C,Y.bl_tree),ee(Y,Ce-3,3)):(ue(Y,_,Y.bl_tree),ee(Y,Ce-11,7));je=Ne,it=(Ce=0)===me?(Fe=138,3):Ne===me?(Fe=6,3):(Fe=7,4)}}t(z);var he=!1;function J(Y,q,fe,we){ee(Y,(o<<1)+(we?1:0),3),function(Ne,je,me,Ce){Ee(Ne),Ce&&(re(Ne,me),re(Ne,~me)),u.arraySet(Ne.pending_buf,Ne.window,je,me,Ne.pending),Ne.pending+=me}(Y,q,fe,!0)}h._tr_init=function(Y){he||(function(){var q,fe,we,Ne,je,me=new Array(g+1);for(Ne=we=0;Ne<e-1;Ne++)for(X[Ne]=we,q=0;q<1<<T[Ne];q++)P[we++]=Ne;for(P[we-1]=Ne,Ne=je=0;Ne<16;Ne++)for(z[Ne]=je,q=0;q<1<<w[Ne];q++)F[je++]=Ne;for(je>>=7;Ne<s;Ne++)for(z[Ne]=je<<7,q=0;q<1<<w[Ne]-7;q++)F[256+je++]=Ne;for(fe=0;fe<=g;fe++)me[fe]=0;for(q=0;q<=143;)R[2*q+1]=8,q++,me[8]++;for(;q<=255;)R[2*q+1]=9,q++,me[9]++;for(;q<=279;)R[2*q+1]=7,q++,me[7]++;for(;q<=287;)R[2*q+1]=8,q++,me[8]++;for(be(R,r+1,me),q=0;q<s;q++)M[2*q+1]=5,M[2*q]=$(q,5);B=new V(R,T,l+1,r,g),j=new V(M,w,0,s,g),W=new V(new Array(0),O,0,c,b)}(),he=!0),Y.l_desc=new Q(Y.dyn_ltree,B),Y.d_desc=new Q(Y.dyn_dtree,j),Y.bl_desc=new Q(Y.bl_tree,W),Y.bi_buf=0,Y.bi_valid=0,_e(Y)},h._tr_stored_block=J,h._tr_flush_block=function(Y,q,fe,we){var Ne,je,me=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(Ce){var Fe,it=4093624447;for(Fe=0;Fe<=31;Fe++,it>>>=1)if(1&it&&Ce.dyn_ltree[2*Fe]!==0)return a;if(Ce.dyn_ltree[18]!==0||Ce.dyn_ltree[20]!==0||Ce.dyn_ltree[26]!==0)return i;for(Fe=32;Fe<l;Fe++)if(Ce.dyn_ltree[2*Fe]!==0)return i;return a}(Y)),Ie(Y,Y.l_desc),Ie(Y,Y.d_desc),me=function(Ce){var Fe;for(oe(Ce,Ce.dyn_ltree,Ce.l_desc.max_code),oe(Ce,Ce.dyn_dtree,Ce.d_desc.max_code),Ie(Ce,Ce.bl_desc),Fe=c-1;3<=Fe&&Ce.bl_tree[2*I[Fe]+1]===0;Fe--);return Ce.opt_len+=3*(Fe+1)+5+5+4,Fe}(Y),Ne=Y.opt_len+3+7>>>3,(je=Y.static_len+3+7>>>3)<=Ne&&(Ne=je)):Ne=je=fe+5,fe+4<=Ne&&q!==-1?J(Y,q,fe,we):Y.strategy===4||je===Ne?(ee(Y,2+(we?1:0),3),nt(Y,R,M)):(ee(Y,4+(we?1:0),3),function(Ce,Fe,it,Ct){var mt;for(ee(Ce,Fe-257,5),ee(Ce,it-1,5),ee(Ce,Ct-4,4),mt=0;mt<Ct;mt++)ee(Ce,Ce.bl_tree[2*I[mt]+1],3);ot(Ce,Ce.dyn_ltree,Fe-1),ot(Ce,Ce.dyn_dtree,it-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,me+1),nt(Y,Y.dyn_ltree,Y.dyn_dtree)),_e(Y),we&&Ee(Y)},h._tr_tally=function(Y,q,fe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=q>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&q,Y.pending_buf[Y.l_buf+Y.last_lit]=255&fe,Y.last_lit++,q===0?Y.dyn_ltree[2*fe]++:(Y.matches++,q--,Y.dyn_ltree[2*(P[fe]+l+1)]++,Y.dyn_dtree[2*G(q)]++),Y.last_lit===Y.lit_bufsize-1},h._tr_align=function(Y){ee(Y,2,3),ue(Y,S,R),function(q){q.bi_valid===16?(re(q,q.bi_buf),q.bi_buf=0,q.bi_valid=0):8<=q.bi_valid&&(q.pending_buf[q.pending++]=255&q.bi_buf,q.bi_buf>>=8,q.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(m,f,h){"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,h){(function(u){!function(a,i){"use strict";if(!a.setImmediate){var t,o,e,l,r=1,s={},c=!1,d=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,t={}.toString.call(a.process)==="[object process]"?function(E){x.nextTick(function(){b(E)})}:function(){if(a.postMessage&&!a.importScripts){var E=!0,C=a.onmessage;return a.onmessage=function(){E=!1},a.postMessage("","*"),a.onmessage=C,E}}()?(l="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),function(E){a.postMessage(l+E,"*")}):a.MessageChannel?((e=new MessageChannel).port1.onmessage=function(E){b(E.data)},function(E){e.port2.postMessage(E)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,function(E){var C=d.createElement("script");C.onreadystatechange=function(){b(E),C.onreadystatechange=null,o.removeChild(C),C=null},o.appendChild(C)}):function(E){setTimeout(b,0,E)},g.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var C=new Array(arguments.length-1),_=0;_<C.length;_++)C[_]=arguments[_+1];var T={callback:E,args:C};return s[r]=T,t(r),r++},g.clearImmediate=v}function v(E){delete s[E]}function b(E){if(c)setTimeout(b,0,E);else{var C=s[E];if(C){c=!0;try{!function(_){var T=_.callback,w=_.args;switch(w.length){case 0:T();break;case 1:T(w[0]);break;case 2:T(w[0],w[1]);break;case 3:T(w[0],w[1],w[2]);break;default:T.apply(i,w)}}(C)}finally{v(E),c=!1}}}}function S(E){E.source===a&&typeof E.data=="string"&&E.data.indexOf(l)===0&&b(+E.data.slice(l.length))}}(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,n("HDXh").Buffer,n("yLpj"),n("Q2Ig"))},xRUu:function(k,D,n){n("hJvP"),n("hFmY"),n("sAZ8")},xSIq:function(k,D,n){"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 n={axisPointer:1,tooltip:1,brush:1};function y(p,x,A){var m=x.getComponentByElement(p.topTarget),f=m&&m.coordinateSystem;return m&&m!==A&&!n[m.mainType]&&f&&f.model!==A}D.onIrrelevantElement=y},xTNl:function(k,D){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};k.exports=y},xYSL:function(k,D){function n(y,p){return y.has(p)}k.exports=n},xb2K:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("5yev")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="RedoOutlined";var i=A.forwardRef(a);D.default=i},xiyX:function(k,D,n){var y=n("bYtY"),p=n("bLfw"),x=n("nkfE"),A=n("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 h(a,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,A),x("single",m,h,f);var u=m;k.exports=u},xlC8:function(k,D,n){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(p,x,A,m){for(var f=p&65535|0,h=p>>>16&65535|0,u=0;A!==0;){u=A>2e3?2e3:A,A-=u;do f=f+x[m++]|0,h=h+f|0;while(--u);f%=65521,h%=65521}return f|h<<16|0}},xvlK:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="PlusOutlined";var h=D.a=p.forwardRef(f)},xzDV:function(k,D,n){},"y+Vt":function(k,D,n){var y=n("Gev7"),p=n("bYtY"),x=n("IMiH"),A=n("2DNl"),m=n("3C/r"),f=m.prototype.getCanvasPattern,h=Math.abs,u=new x(!0);function a(t){y.call(this,t),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(o,e){var l=this.style,r=this.path||u,s=l.hasStroke(),c=l.hasFill(),d=l.fill,g=l.stroke,v=c&&!!d.colorStops,b=s&&!!g.colorStops,S=c&&!!d.image,E=s&&!!g.image;if(l.bind(o,this,e),this.setTransform(o),this.__dirty){var C;v&&(C=C||this.getBoundingRect(),this._fillGradient=l.getGradient(o,d,C)),b&&(C=C||this.getBoundingRect(),this._strokeGradient=l.getGradient(o,g,C))}v?o.fillStyle=this._fillGradient:S&&(o.fillStyle=f.call(d,o)),b?o.strokeStyle=this._strokeGradient:E&&(o.strokeStyle=f.call(g,o));var _=l.lineDash,T=l.lineDashOffset,w=!!o.setLineDash,O=this.getGlobalScale();if(r.setScale(O[0],O[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!w&&s?(r.beginPath(o),_&&!w&&(r.setLineDash(_),r.setLineDashOffset(T)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(o.beginPath(),this.path.rebuildPath(o)),c)if(l.fillOpacity!=null){var I=o.globalAlpha;o.globalAlpha=l.fillOpacity*l.opacity,r.fill(o),o.globalAlpha=I}else r.fill(o);if(_&&w&&(o.setLineDash(_),o.lineDashOffset=T),s)if(l.strokeOpacity!=null){var I=o.globalAlpha;o.globalAlpha=l.strokeOpacity*l.opacity,r.stroke(o),o.globalAlpha=I}else r.stroke(o);_&&w&&o.setLineDash([]),l.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},buildPath:function(o,e,l){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var o=this._rect,e=this.style,l=!o;if(l){var r=this.path;r||(r=this.path=new x),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),o=r.getBoundingRect()}if(this._rect=o,e.hasStroke()){var s=this._rectWithStroke||(this._rectWithStroke=o.clone());if(this.__dirty||l){s.copy(o);var c=e.lineWidth,d=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),d>1e-10&&(s.width+=c/d,s.height+=c/d,s.x-=c/d/2,s.y-=c/d/2)}return s}return o},contain:function(o,e){var l=this.transformCoordToLocal(o,e),r=this.getBoundingRect(),s=this.style;if(o=l[0],e=l[1],r.contain(o,e)){var c=this.path.data;if(s.hasStroke()){var d=s.lineWidth,g=s.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(s.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),A.containStroke(c,d/g,o,e)))return!0}if(s.hasFill())return A.contain(c,o,e)}return!1},dirty:function(o){o==null&&(o=!0),o&&(this.__dirtyPath=o,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(o){return this.animate("shape",o)},attrKV:function(o,e){o==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,o,e)},setShape:function(o,e){var l=this.shape;if(l){if(p.isObject(o))for(var r in o)o.hasOwnProperty(r)&&(l[r]=o[r]);else l[o]=e;this.dirty(!0)}return this},getLineScale:function(){var o=this.transform;return o&&h(o[0]-1)>1e-10&&h(o[3]-1)>1e-10?Math.sqrt(h(o[0]*o[3]-o[2]*o[1])):1}},a.extend=function(t){var o=function(r){a.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 d in s)!c.hasOwnProperty(d)&&s.hasOwnProperty(d)&&(c[d]=s[d])}t.init&&t.init.call(this,r)};p.inherits(o,a);for(var e in t)e!=="style"&&e!=="shape"&&(o.prototype[e]=t[e]);return o},p.inherits(a,y);var i=a;k.exports=i},"y+lR":function(k,D,n){var y=n("bYtY"),p=n("mFDi"),x=n("z35g");function A(f){x.call(this,f)}A.prototype={constructor:A,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(f){var h=this.getAxis("x"),u=this.getAxis("y");return h.contain(h.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,h,u){var a=this.getAxis("x"),i=this.getAxis("y");return u=u||[],u[0]=a.toGlobalCoord(a.dataToCoord(f[0])),u[1]=i.toGlobalCoord(i.dataToCoord(f[1])),u},clampData:function(f,h){var u=this.getAxis("x").scale,a=this.getAxis("y").scale,i=u.getExtent(),t=a.getExtent(),o=u.parse(f[0]),e=a.parse(f[1]);return h=h||[],h[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),h[1]=Math.min(Math.max(Math.min(t[0],t[1]),e),Math.max(t[0],t[1])),h},pointToData:function(f,h){var u=this.getAxis("x"),a=this.getAxis("y");return h=h||[],h[0]=u.coordToData(u.toLocalCoord(f[0])),h[1]=a.coordToData(a.toLocalCoord(f[1])),h},getOtherAxis:function(f){return this.getAxis(f.dim==="x"?"y":"x")},getArea:function(){var f=this.getAxis("x").getGlobalExtent(),h=this.getAxis("y").getGlobalExtent(),u=Math.min(f[0],f[1]),a=Math.min(h[0],h[1]),i=Math.max(f[0],f[1])-u,t=Math.max(h[0],h[1])-a,o=new p(u,a,i,t);return o}},y.inherits(A,x);var m=A;k.exports=m},"y0+3":function(k,D,n){"use strict";n.d(D,"a",function(){return t}),n.d(D,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function A(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function m(l,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=A(l);return r=x[r]?"cssFloat"in l.style?"cssFloat":"styleFloat":r,s===1?c:m(l,r,c[r]||l.style[r])}function h(l,r,s){var c=arguments.length;if(r=x[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 d in r)r.hasOwnProperty(d)&&h(l,d,r[d]);return A(l)}function u(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function a(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function i(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),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 o(){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,n){var y=n("ljhN");function p(x,A){for(var m=x.length;m--;)if(y(x[m][0],A))return m;return-1}k.exports=p},y23F:function(k,D){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}n.prototype={constructor:n,_dragStart:function(A){for(var m=A.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=A.offsetX,this._y=A.offsetY,this.dispatchToElement(y(m,A),"dragstart",A.event))},_drag:function(A){var m=this._draggingTarget;if(m){var f=A.offsetX,h=A.offsetY,u=f-this._x,a=h-this._y;this._x=f,this._y=h,m.drift(u,a,A),this.dispatchToElement(y(m,A),"drag",A.event);var i=this.findHover(f,h,m).target,t=this._dropTarget;this._dropTarget=i,m!==i&&(t&&i!==t&&this.dispatchToElement(y(t,A),"dragleave",A.event),i&&i!==t&&this.dispatchToElement(y(i,A),"dragenter",A.event))}},_dragEnd:function(A){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(y(m,A),"dragend",A.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,A),"drop",A.event),this._draggingTarget=null,this._dropTarget=null}};function y(x,A){return{target:x,topTarget:A&&A.topTarget}}var p=n;k.exports=p},y2l5:function(k,D,n){var y=n("MwEJ"),p=n("T4UG"),x=p.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var A=this.option.progressive;return A==null?this.option.large?5e3:this.get("progressive"):A},getProgressiveThreshold:function(){var A=this.option.progressiveThreshold;return A==null?this.option.large?1e4:this.get("progressiveThreshold"):A},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});k.exports=x},y3Kf:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="UpOutlined";var h=D.a=p.forwardRef(f)},y3NT:function(k,D,n){var y=n("OELB"),p=y.parsePercent,x=n("bYtY"),A=Math.PI/180;function m(u,a,i,t){a.eachSeriesByType(u,function(o){var e=o.get("center"),l=o.get("radius");x.isArray(l)||(l=[0,l]),x.isArray(e)||(e=[e,e]);var r=i.getWidth(),s=i.getHeight(),c=Math.min(r,s),d=p(e[0],r),g=p(e[1],s),v=p(l[0],c/2),b=p(l[1],c/2),S=-o.get("startAngle")*A,E=o.get("minAngle")*A,C=o.getData().tree.root,_=o.getViewRoot(),T=_.depth,w=o.get("sort");w!=null&&f(_,w);var O=0;x.each(_.children,function(G){!isNaN(G.getValue())&&O++});var I=_.getValue(),R=Math.PI/(I||O)*2,M=_.depth>0,F=_.height-(M?-1:1),P=(b-v)/(F||1),X=o.get("clockwise"),B=o.get("stillShowZeroSum"),j=X?1:-1,W=function(G,re){if(!G)return;var ee=re;if(G!==C){var ue=G.getValue(),$=I===0&&B?R:ue*R;$<E&&($=E),ee=re+j*$;var be=G.depth-T-(M?-1:1),_e=v+P*be,Ee=v+P*(be+1),Xe=G.getModel();Xe.get("r0")!=null&&(_e=p(Xe.get("r0"),c/2)),Xe.get("r")!=null&&(Ee=p(Xe.get("r"),c/2)),G.setLayout({angle:$,startAngle:re,endAngle:ee,clockwise:X,cx:d,cy:g,r0:_e,r:Ee})}if(G.children&&G.children.length){var He=0;x.each(G.children,function(nt){He+=W(nt,re+He)})}return ee-re};if(M){var z=v,V=v+P,Q=Math.PI*2;C.setLayout({angle:Q,startAngle:S,endAngle:S+Q,clockwise:X,cx:d,cy:g,r0:z,r:V})}W(_,S)})}function f(u,a){var i=u.children||[];u.children=h(i,a),i.length&&x.each(u.children,function(t){f(t,a)})}function h(u,a){if(typeof a=="function")return u.sort(a);var i=a==="asc";return u.sort(function(t,o){var e=(t.getValue()-o.getValue())*(i?1:-1);return e===0?(t.dataIndex-o.dataIndex)*(i?-1:1):e})}k.exports=m},y3Yb:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("HBhm")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="PaperClipOutlined";var i=A.forwardRef(a);D.default=i},"y4/Y":function(k,D,n){var y=n("ProS"),p=n("bYtY"),x=n("zTMp"),A=n("62sa");n("SKx+"),n("1LEl"),n("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=x.collect(m,f)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(k,D,n){var y=n("bYtY"),p=n("+TT/"),x=p.getLayoutRect;function A(f,h,u){var a=f.option,i=a.align;if(i!=null&&i!=="auto")return i;for(var t={width:h.getWidth(),height:h.getHeight()},o=a.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[o],r=[0,null,10],s={},c=0;c<3;c++)s[e[1-o][c]]=r[c],s[l[c]]=c===2?u[0]:a[l[c]];var d=[["x","width",3],["y","height",0]][o],g=x(s,t,a.padding);return l[(g.margin[d[2]]||0)+g[d[0]]+g[d[1]]*.5<t[d[1]]*.5?0:1]}function m(f,h){return y.each(f||[],function(u){u.dataIndex!=null&&(u.dataIndexInside=u.dataIndex,u.dataIndex=null),u.highlightKey="visualMap"+(h?h.componentIndex:"")}),f}D.getItemAlign=A,D.makeHighDownBatch=m},y8nQ:function(k,D,n){"use strict";var y=n("cIOH"),p=n.n(y),x=n("gwTy"),A=n.n(x),m=n("1GLa")},yEEn:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="ArrowDownOutlined";var h=D.a=p.forwardRef(f)},yGk4:function(k,D,n){var y=n("Cwc5"),p=n("Kz5y"),x=y(p,"Set");k.exports=x},yO87:function(k,D,n){var y=n("bYtY"),p=n("oVpE"),x=p.createSymbol,A=n("IwbS"),m=A.Group,f=n("OELB"),h=f.parsePercent,u=n("FBjb"),a=3;function i(r){return y.isArray(r)||(r=[+r,+r]),r}function t(r,s){var c=s.rippleEffectColor||s.color;r.eachChild(function(d){d.attr({z:s.z,zlevel:s.zlevel,style:{stroke:s.brushType==="stroke"?c:null,fill:s.brushType==="fill"?c:null}})})}function o(r,s){m.call(this);var c=new u(r,s),d=new m;this.add(c),this.add(d),d.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(r,s)}var e=o.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(r){for(var s=r.symbolType,c=r.color,d=this.childAt(1),g=0;g<a;g++){var v=x(s,-1,-1,2,2,c);v.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-g/a*r.period+r.effectOffset;v.animate("",!0).when(r.period,{scale:[r.rippleScale/2,r.rippleScale/2]}).delay(b).start(),v.animateStyle(!0).when(r.period,{opacity:0}).delay(b).start(),d.add(v)}t(d,r)},e.updateEffectAnimation=function(r){for(var s=this._effectCfg,c=this.childAt(1),d=["symbolType","period","rippleScale"],g=0;g<d.length;g++){var v=d[g];if(s[v]!==r[v]){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 d=this.childAt(1),g=r.getItemModel(s),v=r.getItemVisual(s,"symbol"),b=i(r.getItemVisual(s,"symbolSize")),S=r.getItemVisual(s,"color");d.attr("scale",b),d.traverse(function(R){R.attr({fill:S})});var E=g.getShallow("symbolOffset");if(E){var C=d.position;C[0]=h(E[0],b[0]),C[1]=h(E[1],b[1])}var _=r.getItemVisual(s,"symbolRotate");d.rotation=(_||0)*Math.PI/180||0;var T={};if(T.showEffectOn=c.get("showEffectOn"),T.rippleScale=g.get("rippleEffect.scale"),T.brushType=g.get("rippleEffect.brushType"),T.period=g.get("rippleEffect.period")*1e3,T.effectOffset=s/r.count(),T.z=g.getShallow("z")||0,T.zlevel=g.getShallow("zlevel")||0,T.symbolType=v,T.color=S,T.rippleEffectColor=g.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),T.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(T):this.startEffectAnimation(T),this._effectCfg=T;else{this._effectCfg=null,this.stopEffectAnimation();var w=this.childAt(0),O=function(){w.highlight(),T.showEffectOn!=="render"&&this.startEffectAnimation(T)},I=function(){w.downplay(),T.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",O,this).on("mouseout",I,this).on("emphasis",O,this).on("normal",I,this)}this._effectCfg=T},e.fadeOut=function(r){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),r&&r()},y.inherits(o,m);var l=o;k.exports=l},yS9w:function(k,D,n){var y=n("MEGo"),p=y.parseSVG,x=y.makeViewBoxTransform,A=n("4fz+"),m=n("x6Kt"),f=n("bYtY"),h=f.assert,u=f.createHashMap,a=n("mFDi"),i=n("4NO4"),t=i.makeInner,o=t(),e={load:function(r,s){var c=o(s).originRoot;if(c)return{root:c,boundingRect:o(s).boundingRect};var d=l(s);return o(s).originRoot=d.root,o(s).boundingRect=d.boundingRect,d},makeGraphic:function(r,s,c){var d=o(s),g=d.rootMap||(d.rootMap=u()),v=g.get(c);if(v)return v;var b=d.originRoot,S=d.boundingRect;return d.originRootHostKey?v=l(s,S).root:(d.originRootHostKey=c,v=b),g.set(c,v)},removeGraphic:function(r,s,c){var d=o(s),g=d.rootMap;g&&g.removeKey(c),c===d.originRootHostKey&&(d.originRootHostKey=null)}};function l(r,s){var c=r.svgXML,d,g;try{d=c&&p(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},g=d.root,h(g!=null)}catch(_){throw new Error(`Invalid svg format
`+_.message)}var v=d.width,b=d.height,S=d.viewBoxRect;if(s||(s=v==null||b==null?g.getBoundingRect():new a(0,0,0,0),v!=null&&(s.width=v),b!=null&&(s.height=b)),S){var E=x(S,s.width,s.height),C=g;g=new A,g.add(C),C.scale=E.scale,C.position=E.position}return g.setClipPath(new m({shape:s.plain()})),{root:g,boundingRect:s}}k.exports=e},yWXo:function(k,D,n){var y=n("IwbS"),p=n("oVpE"),x=p.createSymbol,A=n("OS9S"),m=4,f=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(i,t){var o=t.points,e=t.size,l=this.symbolProxy,r=l.shape,s=i.getContext?i.getContext():i,c=s&&e[0]<m;if(c)return;for(var d=0;d<o.length;){var g=o[d++],v=o[d++];if(isNaN(g)||isNaN(v))continue;if(this.softClipShape&&!this.softClipShape.contain(g,v))continue;r.x=g-e[0]/2,r.y=v-e[1]/2,r.width=e[0],r.height=e[1],l.buildPath(i,r,!0)}},afterBrush:function(i){var t=this.shape,o=t.points,e=t.size,l=e[0]<m;if(!l)return;this.setTransform(i);for(var r=0;r<o.length;){var s=o[r++],c=o[r++];if(isNaN(s)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(s,c))continue;i.fillRect(s-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(i)},findDataIndex:function(i,t){for(var o=this.shape,e=o.points,l=o.size,r=Math.max(l[0],4),s=Math.max(l[1],4),c=e.length/2-1;c>=0;c--){var d=c*2,g=e[d]-r/2,v=e[d+1]-s/2;if(i>=g&&t>=v&&i<=g+r&&t<=v+s)return c}return-1}});function h(){this.group=new y.Group}var u=h.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(i,t){this.group.removeAll();var o=new f({rectHover:!0,cursor:"default"});o.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(o,i,!1,t),this.group.add(o),this._incremental=null},u.updateLayout=function(i){if(this._incremental)return;var t=i.getLayout("symbolPoints");this.group.eachChild(function(o){if(o.startIndex!=null){var e=(o.endIndex-o.startIndex)*2,l=o.startIndex*4*2;t=new Float32Array(t.buffer,l,e)}o.setShape("points",t)})},u.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new A({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(i,t,o){var e;this._incremental?(e=new f,this._incremental.addDisplayable(e,!0)):(e=new f({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,o)},u._setCommon=function(i,t,o,e){var l=t.hostModel;e=e||{};var r=t.getVisual("symbolSize");i.setShape("size",r instanceof Array?r:[r,r]),i.softClipShape=e.clipShape||null,i.symbolProxy=x(t.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var s=i.shape.size[0]<m;i.useStyle(l.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&i.setColor(c),o||(i.seriesIndex=l.seriesIndex,i.on("mousemove",function(d){i.dataIndex=null;var g=i.findDataIndex(d.offsetX,d.offsetY);g>=0&&(i.dataIndex=g+(i.startIndex||0))}))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};var a=h;k.exports=a},ycre:function(k,D,n){var y=n("711d"),p=y("length");k.exports=p},ye1Q:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="LoadingOutlined";var h=D.a=p.forwardRef(f)},ygfH:function(k,D,n){"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,n){var y=n("bZqE"),p=y.eachAfter,x=y.eachBefore,A=n("Itpr"),m=A.init,f=A.firstWalk,h=A.secondWalk,u=A.separation,a=A.radialCoordinate,i=A.getViewRect;function t(e,l){e.eachSeriesByType("tree",function(r){o(r,l)})}function o(e,l){var r=i(e,l);e.layoutInfo=r;var s=e.get("layout"),c=0,d=0,g=null;s==="radial"?(c=2*Math.PI,d=Math.min(r.height,r.width)/2,g=u(function(F,P){return(F.parentNode===P.parentNode?1:2)/F.depth})):(c=r.width,d=r.height,g=u());var v=e.getData().tree.root,b=v.children[0];if(b){m(v),p(b,f,g),v.hierNode.modifier=-b.hierNode.prelim,x(b,h);var S=b,E=b,C=b;x(b,function(F){var P=F.getLayout().x;P<S.getLayout().x&&(S=F),P>E.getLayout().x&&(E=F),F.depth>C.depth&&(C=F)});var _=S===E?1:g(S,E)/2,T=_-S.getLayout().x,w=0,O=0,I=0,R=0;if(s==="radial")w=c/(E.getLayout().x+_+T),O=d/(C.depth-1||1),x(b,function(F){I=(F.getLayout().x+T)*w,R=(F.depth-1)*O;var P=a(I,R);F.setLayout({x:P.x,y:P.y,rawX:I,rawY:R},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(O=d/(E.getLayout().x+_+T),w=c/(C.depth-1||1),x(b,function(F){R=(F.getLayout().x+T)*O,I=M==="LR"?(F.depth-1)*w:c-(F.depth-1)*w,F.setLayout({x:I,y:R},!0)})):(M==="TB"||M==="BT")&&(w=c/(E.getLayout().x+_+T),O=d/(C.depth-1||1),x(b,function(F){I=(F.getLayout().x+T)*w,R=M==="TB"?(F.depth-1)*O:d-(F.depth-1)*O,F.setLayout({x:I,y:R},!0)}))}}}k.exports=t},ynwM:function(k,D,n){var y=n("MFOe"),p=y.Global;k.exports={name:"oldFF-globalStorage",read:A,write:m,each:f,remove:h,clearAll:u};var x=p.globalStorage;function A(a){return x[a]}function m(a,i){x[a]=i}function f(a){for(var i=x.length-1;i>=0;i--){var t=x.key(i);a(x[t],t)}}function h(a){return x.removeItem(a)}function u(){f(function(a,i){delete x[a]})}},ypgQ:function(k,D,n){var y=n("bYtY"),p=n("4NO4"),x=n("bLfw"),A=y.each,m=y.clone,f=y.map,h=y.merge,u=/^(min|max)?(.+)$/;function a(s){this._api=s,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}a.prototype={constructor:a,setOption:function(s,c){s&&y.each(p.normalizeToArray(s.series),function(v){v&&v.data&&y.isTypedArray(v.data)&&y.setAsPrimitive(v.data)}),s=m(s);var d=this._optionBackup,g=i.call(this,s,c,!d);this._newBaseOption=g.baseOption,d?(l(d.baseOption,g.baseOption),g.timelineOptions.length&&(d.timelineOptions=g.timelineOptions),g.mediaList.length&&(d.mediaList=g.mediaList),g.mediaDefault&&(d.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,d=this._timelineOptions;if(d.length){var g=s.getComponent("timeline");g&&(c=m(d[g.getCurrentIndex()],!0))}return c},getMediaOption:function(s){var c=this._api.getWidth(),d=this._api.getHeight(),g=this._mediaList,v=this._mediaDefault,b=[],S=[];if(!g.length&&!v)return S;for(var E=0,C=g.length;E<C;E++)t(g[E].query,c,d)&&b.push(E);return!b.length&&v&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(S=f(b,function(_){return m(_===-1?v.option:g[_].option)})),this._currentMediaIndices=b,S}};function i(s,c,d){var g=[],v=[],b,S,E=s.timeline;if(s.baseOption&&(S=s.baseOption),(E||s.options)&&(S=S||{},g=(s.options||[]).slice()),s.media){S=S||{};var C=s.media;A(C,function(_){_&&_.option&&(_.query?v.push(_):b||(b=_))})}return S||(S=s),S.timeline||(S.timeline=E),A([S].concat(g).concat(y.map(v,function(_){return _.option})),function(_){A(c,function(T){T(_,d)})}),{baseOption:S,timelineOptions:g,mediaDefault:b,mediaList:v}}function t(s,c,d){var g={width:c,height:d,aspectratio:c/d},v=!0;return y.each(s,function(b,S){var E=S.match(u);if(!E||!E[1]||!E[2])return;var C=E[1],_=E[2].toLowerCase();o(g[_],b,C)||(v=!1)}),v}function o(s,c,d){return d==="min"?s>=c:d==="max"?s<=c:s===c}function e(s,c){return s.join(",")===c.join(",")}function l(s,c){c=c||{},A(c,function(d,g){if(d==null)return;var v=s[g];if(!x.hasClass(g))s[g]=h(v,d,!0);else{d=p.normalizeToArray(d),v=p.normalizeToArray(v);var b=p.mappingToExists(v,d);s[g]=f(b,function(S){return S.option&&S.exist?h(S.exist,S.option,!0):S.exist||S.option})}})}var r=a;k.exports=r},yxFR:function(k,D,n){var y=n("y+Vt"),p=n("nPnh"),x=p.subPixelOptimizeLine,A={},m=y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(h,u){var a,i,t,o;this.subPixelOptimize?(x(A,u,this.style),a=A.x1,i=A.y1,t=A.x2,o=A.y2):(a=u.x1,i=u.y1,t=u.x2,o=u.y2);var e=u.percent;if(e===0)return;h.moveTo(a,i),e<1&&(t=a*(1-e)+t*e,o=i*(1-e)+o*e),h.lineTo(t,o)},pointAt:function(h){var u=this.shape;return[u.x1*(1-h)+u.x2*h,u.y1*(1-h)+u.y2*h]}});k.exports=m},z35g:function(k,D,n){var y=n("bYtY");function p(m){return this._axes[m]}var x=function(m){this._axes={},this._dimList=[],this.name=m||""};x.prototype={constructor:x,type:"cartesian",getAxis:function(m){return this._axes[m]},getAxes:function(){return y.map(this._dimList,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 h=this._dimList,u=m instanceof Array?[]:{},a=0;a<h.length;a++){var i=h[a],t=this._axes[i];u[i]=t[f](m[i])}return u}};var A=x;k.exports=A},z7Xi:function(k,D,n){"use strict";var y=n("VTBJ"),p=n("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},A=x,m=n("6VBw"),f=function(a,i){return p.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};f.displayName="UploadOutlined";var h=D.a=p.forwardRef(f)},zAh6:function(k,D,n){"use strict";n.d(D,"a",function(){return m});var y=n("xEkU"),p=n.n(y),x=n("i6bk");function A(f,h,u,a){var i=u-h;return f/=a/2,f<1?i/2*f*f*f+h:i/2*((f-=2)*f*f+2)+h}function m(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=h.getContainer,a=u===void 0?function(){return window}:u,i=h.callback,t=h.duration,o=t===void 0?450:t,e=a(),l=Object(x.a)(e,!0),r=Date.now(),s=function c(){var d=Date.now(),g=d-r,v=A(g>o?o:g,l,f,o);Object(x.b)(e)?e.scrollTo(window.pageXOffset,v):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=v:e.scrollTop=v,g<o?p()(c):typeof i=="function"&&i()};p()(s)}},zDms:function(k,D,n){var y=n("bYtY"),p=n("OELB"),x=n("UOVi"),A=n("72pK"),m=y.each,f=p.asc,h=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};h.prototype={constructor:h,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(x.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,d;s?(d="gridIndex",c=e==="x"?"y":"x"):(d="polarIndex",c=e==="angle"?"radius":"angle");var g;return l.eachComponent(c+"Axis",function(v){(v.get(d)||0)===(r.get(d)||0)&&(g=v)}),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(),d=[0,100],g=[],v=[],b;m(["start","end"],function(C,_){var T=e[C],w=e[C+"Value"];c[_]==="percent"?(T==null&&(T=d[_]),w=s.parse(p.linearMap(T,d,l))):(b=!0,w=w==null?l[_]:s.parse(w),T=p.linearMap(w,l,d)),v[_]=w,g[_]=T}),f(v),f(g);var S=this._minMaxSpan;b?E(v,g,l,d,!1):E(g,v,d,l,!0);function E(C,_,T,w,O){var I=O?"Span":"ValueSpan";A(0,C,T,"all",S["min"+I],S["max"+I]);for(var R=0;R<2;R++)_[R]=p.linearMap(C[R],T,w,!0),O&&(_[R]=s.parse(_[R]))}return{valueWindow:v,percentWindow:g}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,l),t(this);var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,i(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,i(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var r=this._dimName,s=this.getTargetSeriesModels(),c=e.get("filterMode"),d=this._valueWindow;if(c==="none")return;m(s,function(v){var b=v.getData(),S=b.mapDimension(r,!0);if(!S.length)return;c==="weakFilter"?b.filterSelf(function(E){for(var C,_,T,w=0;w<S.length;w++){var O=b.get(S[w],E),I=!isNaN(O),R=O<d[0],M=O>d[1];if(I&&!R&&!M)return!0;I&&(T=!0),R&&(C=!0),M&&(_=!0)}return T&&C&&_}):m(S,function(E){if(c==="empty")v.setData(b=b.map(E,function(_){return g(_)?_:NaN}));else{var C={};C[E]=d,b.selectRange(C)}}),m(S,function(E){b.setApproximateExtent(d,E)})});function g(v){return v>=d[0]&&v<=d[1]}}};function u(e,l,r){var s=[Infinity,-Infinity];return m(r,function(c){var d=c.getData();d&&m(d.mapDimension(l,!0),function(g){var v=d.getApproximateExtent(g);v[0]<s[0]&&(s[0]=v[0]),v[1]>s[1]&&(s[1]=v[1])})}),s[1]<s[0]&&(s=[NaN,NaN]),a(e,s),s}function a(e,l){var r=e.getAxisModel(),s=r.getMin(!0),c=r.get("type")==="category",d=c&&r.getCategories().length;s!=null&&s!=="dataMin"&&typeof s!="function"?l[0]=s:c&&(l[0]=d>0?0:NaN);var g=r.getMax(!0);return g!=null&&g!=="dataMax"&&typeof g!="function"?l[1]=g:c&&(l[1]=d>0?d-1:NaN),r.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function i(e,l){var r=e.getAxisModel(),s=e._percentWindow,c=e._valueWindow;if(!s)return;var d=p.getPixelPrecision(c,[0,500]);d=Math.min(d,20);var g=l||s[0]===0&&s[1]===100;r.setRange(g?null:+c[0].toFixed(d),g?null:+c[1].toFixed(d))}function t(e){var l=e._minMaxSpan={},r=e._dataZoomModel,s=e._dataExtent;m(["min","max"],function(c){var d=r.get(c+"Span"),g=r.get(c+"ValueSpan");g!=null&&(g=e.getAxisModel().axis.scale.parse(g)),g!=null?d=p.linearMap(s[0]+g,s,[0,100],!0):d!=null&&(g=p.linearMap(d,[0,100],s,!0)-s[0]),l[c+"Span"]=d,l[c+"ValueSpan"]=g})}var o=h;k.exports=o},zM3Q:function(k,D,n){var y=n("4NO4"),p=y.makeInner;function x(){var A=p();return function(m){var f=A(m),h=m.pipelineContext,u=f.large,a=f.progressiveRender,i=f.large=h&&h.large,t=f.progressiveRender=h&&h.progressiveRender;return!!(u^i||a^t)&&"reset"}}k.exports=x},zRKj:function(k,D,n){n("Ae16"),n("Sp2Z"),n("y4/Y")},zTMp:function(k,D,n){var y=n("bYtY"),p=n("Qxkt"),x=y.each,A=y.curry;function m(s,c){var d={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return f(d,s,c),d.seriesInvolved&&u(d,s),d}function f(s,c,d){var g=c.getComponent("tooltip"),v=c.getComponent("axisPointer"),b=v.get("link",!0)||[],S=[];x(d.getCoordinateSystems(),function(E){if(!E.axisPointerEnabled)return;var C=r(E.model),_=s.coordSysAxesInfo[C]={};s.coordSysMap[C]=E;var T=E.model,w=T.getModel("tooltip",g);if(x(E.getAxes(),A(M,!1,null)),E.getTooltipAxes&&g&&w.get("show")){var O=w.get("trigger")==="axis",I=w.get("axisPointer.type")==="cross",R=E.getTooltipAxes(w.get("axisPointer.axis"));(O||I)&&x(R.baseAxes,A(M,I?"cross":!0,O)),I&&x(R.otherAxes,A(M,"cross",!1))}function M(F,P,X){var B=X.model.getModel("axisPointer",v),j=B.get("show");if(!j||j==="auto"&&!F&&!l(B))return;P==null&&(P=B.get("triggerTooltip")),B=F?h(X,w,v,c,F,P):B;var W=B.get("snap"),z=r(X.model),V=P||W||X.type==="category",Q=s.axesInfo[z]={key:z,axis:X,coordSys:E,axisPointerModel:B,triggerTooltip:P,involveSeries:V,snap:W,useHandle:l(B),seriesModels:[]};_[z]=Q,s.seriesInvolved|=V;var G=a(b,X);if(G!=null){var re=S[G]||(S[G]={axesInfo:{}});re.axesInfo[z]=Q,re.mapper=b[G].mapper,Q.linkGroup=re}}})}function h(s,c,d,g,v,b){var S=c.getModel("axisPointer"),E={};x(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){E[w]=y.clone(S.get(w))}),E.snap=s.type!=="category"&&!!b,S.get("type")==="cross"&&(E.type="line");var C=E.label||(E.label={});if(C.show==null&&(C.show=!1),v==="cross"){var _=S.get("label.show");if(C.show=_!=null?_:!0,!b){var T=E.lineStyle=S.get("crossStyle");T&&y.defaults(C,T.textStyle)}}return s.model.getModel("axisPointer",new p(E,d,g))}function u(s,c){c.eachSeries(function(d){var g=d.coordinateSystem,v=d.get("tooltip.trigger",!0),b=d.get("tooltip.show",!0);if(!g||v==="none"||v===!1||v==="item"||b===!1||d.get("axisPointer.show",!0)===!1)return;x(s.coordSysAxesInfo[r(g.model)],function(S){var E=S.axis;g.getAxis(E.dim)===E&&(S.seriesModels.push(d),S.seriesDataCount==null&&(S.seriesDataCount=0),S.seriesDataCount+=d.getData().count())})},this)}function a(s,c){for(var d=c.model,g=c.dim,v=0;v<s.length;v++){var b=s[v]||{};if(i(b[g+"AxisId"],d.id)||i(b[g+"AxisIndex"],d.componentIndex)||i(b[g+"AxisName"],d.name))return v}}function i(s,c){return s==="all"||y.isArray(s)&&y.indexOf(s,c)>=0||s===c}function t(s){var c=o(s);if(!c)return;var d=c.axisPointerModel,g=c.axis.scale,v=d.option,b=d.get("status"),S=d.get("value");S!=null&&(S=g.parse(S));var E=l(d);b==null&&(v.status=E?"show":"hide");var C=g.getExtent().slice();C[0]>C[1]&&C.reverse(),(S==null||S>C[1])&&(S=C[1]),S<C[0]&&(S=C[0]),v.value=S,E&&(v.status=c.axis.scale.isBlank()?"hide":"show")}function o(s){var c=(s.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[r(s)]}function e(s){var c=o(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=o,D.getAxisPointerModel=e,D.makeKey=r},zYTA:function(k,D,n){var y=n("bYtY"),p=256;function x(){var m=y.createCanvas();this.canvas=m,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}x.prototype={update:function(m,f,h,u,a,i){var t=this._getBrush(),o=this._getGradient(m,a,"inRange"),e=this._getGradient(m,a,"outOfRange"),l=this.pointSize+this.blurSize,r=this.canvas,s=r.getContext("2d"),c=m.length;r.width=f,r.height=h;for(var d=0;d<c;++d){var g=m[d],v=g[0],b=g[1],S=g[2],E=u(S);s.globalAlpha=E,s.drawImage(t,v-l,b-l)}if(!r.width||!r.height)return r;for(var C=s.getImageData(0,0,r.width,r.height),_=C.data,T=0,w=_.length,O=this.minOpacity,I=this.maxOpacity,R=I-O;T<w;){var E=_[T+3]/256,M=Math.floor(E*(p-1))*4;if(E>0){var F=i(E)?o:e;E>0&&(E=E*R+O),_[T++]=F[M],_[T++]=F[M+1],_[T++]=F[M+2],_[T++]=F[M+3]*E*256}else T+=4}return s.putImageData(C,0,0),r},_getBrush:function(){var m=this._brushCanvas||(this._brushCanvas=y.createCanvas()),f=this.pointSize+this.blurSize,h=f*2;m.width=h,m.height=h;var u=m.getContext("2d");return u.clearRect(0,0,h,h),u.shadowOffsetX=h,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,h){for(var u=this._gradientPixels,a=u[h]||(u[h]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],t=0,o=0;o<256;o++)f[h](o/255,!0,i),a[t++]=i[0],a[t++]=i[1],a[t++]=i[2],a[t++]=i[3];return a}};var A=x;k.exports=A},zarK:function(k,D,n){var y=n("YH21"),p=y.addEventListener,x=y.removeEventListener,A=y.normalizeEvent,m=y.getNativeEvent,f=n("bYtY"),h=n("H6uX"),u=n("ItGF"),a=300,i=u.domSupported,t=function(){var F=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},B=f.map(F,function(j){var W=j.replace("mouse","pointer");return X.hasOwnProperty(W)?W:j});return{mouse:F,touch:P,pointer:B}}(),o={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(F){return F==="mousewheel"&&u.browser.firefox?"DOMMouseScroll":F}function l(F){var P=F.pointerType;return P==="pen"||P==="touch"}function r(F){F.touching=!0,F.touchTimer!=null&&(clearTimeout(F.touchTimer),F.touchTimer=null),F.touchTimer=setTimeout(function(){F.touching=!1,F.touchTimer=null},700)}function s(F){F&&(F.zrByTouch=!0)}function c(F,P){return A(F.dom,new g(F,P),!0)}function d(F,P){for(var X=P,B=!1;X&&X.nodeType!==9&&!(B=X.domBelongToZr||X!==P&&X===F.painterRoot);)X=X.parentNode;return B}function g(F,P){this.type=P.type,this.target=this.currentTarget=F.dom,this.pointerType=P.pointerType,this.clientX=P.clientX,this.clientY=P.clientY}var v=g.prototype;v.stopPropagation=v.stopImmediatePropagation=v.preventDefault=f.noop;var b={mousedown:function(P){P=A(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=A(this.dom,P);var X=this._mayPointerCapture;X&&(P.zrX!==X[0]||P.zrY!==X[1])&&w(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=A(this.dom,P),w(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=A(this.dom,P),this._pointerCapturing&&(P.zrEventControl="no_globalout");var X=P.toElement||P.relatedTarget;P.zrIsToLocalDOM=d(this,X),this.trigger("mouseout",P)},touchstart:function(P){P=A(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=A(this.dom,P),s(P),this.handler.processGesture(P,"change"),b.mousemove.call(this,P)},touchend:function(P){P=A(this.dom,P),s(P),this.handler.processGesture(P,"end"),b.mouseup.call(this,P),+new Date-this._lastTouchMoment<a&&b.click.call(this,P)},pointerdown:function(P){b.mousedown.call(this,P)},pointermove:function(P){l(P)||b.mousemove.call(this,P)},pointerup:function(P){b.mouseup.call(this,P)},pointerout:function(P){l(P)||b.mouseout.call(this,P)}};f.each(["click","mousewheel","dblclick","contextmenu"],function(F){b[F]=function(P){P=A(this.dom,P),this.trigger(F,P)}});var S={pointermove:function(P){l(P)||S.mousemove.call(this,P)},pointerup:function(P){S.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var X=this._pointerCapturing;w(this,!1),this.trigger("mouseup",P),X&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function E(F,P){var X=P.domHandlers;u.pointerEventsSupported?f.each(t.pointer,function(B){_(P,B,function(j){X[B].call(F,j)})}):(u.touchEventsSupported&&f.each(t.touch,function(B){_(P,B,function(j){X[B].call(F,j),r(P)})}),f.each(t.mouse,function(B){_(P,B,function(j){j=m(j),P.touching||X[B].call(F,j)})}))}function C(F,P){u.pointerEventsSupported?f.each(o.pointer,X):u.touchEventsSupported||f.each(o.mouse,X);function X(B){function j(W){W=m(W),d(F,W.target)||(W=c(F,W),P.domHandlers[B].call(F,W))}_(P,B,j,{capture:!0})}}function _(F,P,X,B){F.mounted[P]=X,F.listenerOpts[P]=B,p(F.domTarget,e(P),X,B)}function T(F){var P=F.mounted;for(var X in P)P.hasOwnProperty(X)&&x(F.domTarget,e(X),P[X],F.listenerOpts[X]);F.mounted={}}function w(F,P){if(F._mayPointerCapture=null,i&&F._pointerCapturing^P){F._pointerCapturing=P;var X=F._globalHandlerScope;P?C(F,X):T(X)}}function O(F,P){this.domTarget=F,this.domHandlers=P,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(F,P){h.call(this),this.dom=F,this.painterRoot=P,this._localHandlerScope=new O(F,b),i&&(this._globalHandlerScope=new O(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,E(this,this._localHandlerScope)}var R=I.prototype;R.dispose=function(){T(this._localHandlerScope),i&&T(this._globalHandlerScope)},R.setCursor=function(F){this.dom.style&&(this.dom.style.cursor=F||"default")},f.mixin(I,h);var M=I;k.exports=M},zdCA:function(k,D,n){"use strict";var y=n("TqRt"),p=n("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var x=y(n("3tO9")),A=u(n("q1tI")),m=y(n("PSzr")),f=y(n("KQxl"));function h(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(h=function(r){return r?e:o})(t)}function u(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=h(o);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 a=function(o,e){return A.createElement(f.default,(0,x.default)((0,x.default)({},o),{},{ref:e,icon:m.default}))};a.displayName="BarsOutlined";var i=A.forwardRef(a);D.default=i},zeV3:function(k,D,n){"use strict";var y=n("pVnL"),p=n.n(y),x=n("lSNA"),A=n.n(x),m=n("q1tI"),f=n.n(m),h=n("TSYQ"),u=n.n(h),a=n("H84U"),i=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},o=function(l){var r,s=m.useContext(a.b),c=s.getPrefixCls,d=s.space,g=s.direction,v=l.size,b=v===void 0?(d==null?void 0:d.size)||"small":v,S=l.align,E=l.className,C=l.children,_=l.direction,T=_===void 0?"horizontal":_,w=l.prefixCls,O=i(l,["size","align","className","children","direction","prefixCls"]),I=m.Children.count(C);if(I===0)return null;var R=S===void 0&&T==="horizontal"?"center":S,M=c("space",w),F=u()(M,"".concat(M,"-").concat(T),(r={},A()(r,"".concat(M,"-rtl"),g==="rtl"),A()(r,"".concat(M,"-align-").concat(R),R),r),E),P="".concat(M,"-item"),X=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",p()({className:F},O),m.Children.map(C,function(B,j){return m.createElement("div",{className:P,key:"".concat(P,"-").concat(j),style:j===I-1||B===null||B===void 0?{}:A()({},T==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},B)}))};D.a=o},zoYe:function(k,D,n){var y=n("nmnc"),p=n("eUgh"),x=n("Z0cm"),A=n("/9aa"),m=1/0,f=y?y.prototype:void 0,h=f?f.toString:void 0;function u(a){if(typeof a=="string")return a;if(x(a))return p(a,u)+"";if(A(a))return h?h.call(a):"";var i=a+"";return i=="0"&&1/a==-m?"-0":i}k.exports=u},zuHt:function(k,D,n){var y=n("bYtY");function p(x){var A={};x.eachSeriesByType("map",function(m){var f=m.getMapType();if(m.getHostGeoModel()||A[f])return;var h={};y.each(m.seriesGroup,function(a){var i=a.coordinateSystem,t=a.originalData;a.get("showLegendSymbol")&&x.getComponent("legend")&&t.each(t.mapDimension("value"),function(o,e){var l=t.getName(e),r=i.getRegion(l);if(!r||isNaN(o))return;var s=h[l]||0,c=i.dataToPoint(r.center);h[l]=s+1,t.setItemLayout(e,{point:c,offset:s})})});var u=m.getData();u.each(function(a){var i=u.getName(a),t=u.getItemLayout(a)||{};t.showLabel=!h[i],u.setItemLayout(a,t)}),A[f]=!0})}k.exports=p}}]);